diff --git a/shared/package-files/08/0802392a2a1c49abdd877f290daf0f0f7ed8670051c793672ff8e3dd167c860d/_sparse_softmax_compositeexplicitautograd_dispatch.h b/shared/package-files/08/0802392a2a1c49abdd877f290daf0f0f7ed8670051c793672ff8e3dd167c860d/_sparse_softmax_compositeexplicitautograd_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..be8e79e8d780c2e3a5e63639831f83c54620018d --- /dev/null +++ b/shared/package-files/08/0802392a2a1c49abdd877f290daf0f0f7ed8670051c793672ff8e3dd167c860d/_sparse_softmax_compositeexplicitautograd_dispatch.h @@ -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 compositeexplicitautograd { + +TORCH_API at::Tensor & _sparse_softmax_out(at::Tensor & out, const at::Tensor & self, int64_t dim, bool half_to_float); +TORCH_API at::Tensor & _sparse_softmax_outf(const at::Tensor & self, int64_t dim, bool half_to_float, at::Tensor & out); + +} // namespace compositeexplicitautograd +} // namespace at diff --git a/shared/package-files/08/080568ed7a3da54d12410ffe081a28a8b6cc6948e0aae82daaf4145c07262eb3/models.pyi b/shared/package-files/08/080568ed7a3da54d12410ffe081a28a8b6cc6948e0aae82daaf4145c07262eb3/models.pyi new file mode 100644 index 0000000000000000000000000000000000000000..385c35d723cc7b97c07f7fadf827817b287165f5 --- /dev/null +++ b/shared/package-files/08/080568ed7a3da54d12410ffe081a28a8b6cc6948e0aae82daaf4145c07262eb3/models.pyi @@ -0,0 +1,21 @@ +from typing import Any, Optional, Tuple, Type + +from django.http.request import HttpRequest + +from django.db import models + +SITE_CACHE: Any + +class SiteManager(models.Manager["Site"]): + def get_current(self, request: Optional[HttpRequest] = ...) -> Site: ... + def clear_cache(self) -> None: ... + def get_by_natural_key(self, domain: str) -> Site: ... + +class Site(models.Model): + objects: SiteManager + + domain = models.CharField(max_length=100) + name = models.CharField(max_length=50) + def natural_key(self) -> Tuple[str]: ... + +def clear_site_cache(sender: Type[Site], **kwargs: Any) -> None: ... diff --git a/shared/package-files/08/0806ef3662b840225106c5f6e7fca2d887bd241dfbc600ec6219a67b2dfe11ff/quantize_per_tensor_native.h b/shared/package-files/08/0806ef3662b840225106c5f6e7fca2d887bd241dfbc600ec6219a67b2dfe11ff/quantize_per_tensor_native.h new file mode 100644 index 0000000000000000000000000000000000000000..d47bb8a2978f8b2f435852fb98dbcba65bfe1a16 --- /dev/null +++ b/shared/package-files/08/0806ef3662b840225106c5f6e7fca2d887bd241dfbc600ec6219a67b2dfe11ff/quantize_per_tensor_native.h @@ -0,0 +1,26 @@ +#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 & quantize_per_tensor_out(const at::Tensor & self, double scale, int64_t zero_point, at::ScalarType dtype, at::Tensor & out); +TORCH_API at::Tensor quantize_per_tensor(const at::Tensor & self, double scale, int64_t zero_point, at::ScalarType dtype); +TORCH_API at::Tensor & quantize_per_tensor_tensor_qparams_out(const at::Tensor & self, const at::Tensor & scale, const at::Tensor & zero_point, at::ScalarType dtype, at::Tensor & out); +TORCH_API at::Tensor quantize_per_tensor_tensor_qparams(const at::Tensor & self, const at::Tensor & scale, const at::Tensor & zero_point, at::ScalarType dtype); +TORCH_API void quantize_per_tensor_tensors_out(at::TensorList tensors, const at::Tensor & scales, const at::Tensor & zero_points, at::ScalarType dtype, at::TensorList out); +TORCH_API ::std::vector quantize_per_tensor_list_cpu(at::TensorList tensors, const at::Tensor & scales, const at::Tensor & zero_points, at::ScalarType dtype); +} // namespace native +} // namespace at diff --git a/shared/package-files/08/08199dfe00ed822a87d9276841094e05bb4e11ea6b5ad33af18ddfd6c4aa3df2/fontchooser.tcl b/shared/package-files/08/08199dfe00ed822a87d9276841094e05bb4e11ea6b5ad33af18ddfd6c4aa3df2/fontchooser.tcl new file mode 100644 index 0000000000000000000000000000000000000000..fb6c6d3b2648761e79db93eada59964482d6053a --- /dev/null +++ b/shared/package-files/08/08199dfe00ed822a87d9276841094e05bb4e11ea6b5ad33af18ddfd6c4aa3df2/fontchooser.tcl @@ -0,0 +1,456 @@ +# fontchooser.tcl - +# +# A themeable Tk font selection dialog. See TIP #324. +# +# Copyright (C) 2008 Keith Vetter +# Copyright (C) 2008 Pat Thoyts +# +# See the file "license.terms" for information on usage and redistribution +# of this file, and for a DISCLAIMER OF ALL WARRANTIES. + +namespace eval ::tk::fontchooser { + variable S + + set S(W) .__tk__fontchooser + set S(fonts) [lsort -dictionary [font families]] + set S(styles) [list \ + [::msgcat::mc "Regular"] \ + [::msgcat::mc "Italic"] \ + [::msgcat::mc "Bold"] \ + [::msgcat::mc "Bold Italic"] \ + ] + + set S(sizes) {8 9 10 11 12 14 16 18 20 22 24 26 28 36 48 72} + set S(strike) 0 + set S(under) 0 + set S(first) 1 + set S(sampletext) [::msgcat::mc "AaBbYyZz01"] + set S(-parent) . + set S(-title) [::msgcat::mc "Font"] + set S(-command) "" + set S(-font) TkDefaultFont +} + +proc ::tk::fontchooser::Setup {} { + variable S + + # Canonical versions of font families, styles, etc. for easier searching + set S(fonts,lcase) {} + foreach font $S(fonts) {lappend S(fonts,lcase) [string tolower $font]} + set S(styles,lcase) {} + foreach style $S(styles) {lappend S(styles,lcase) [string tolower $style]} + set S(sizes,lcase) $S(sizes) + + ::ttk::style layout FontchooserFrame { + Entry.field -sticky news -border true -children { + FontchooserFrame.padding -sticky news + } + } + bind [winfo class .] <> \ + [list +ttk::style layout FontchooserFrame \ + [ttk::style layout FontchooserFrame]] + + namespace ensemble create -map { + show ::tk::fontchooser::Show + hide ::tk::fontchooser::Hide + configure ::tk::fontchooser::Configure + } +} +::tk::fontchooser::Setup + +proc ::tk::fontchooser::Show {} { + variable S + if {![winfo exists $S(W)]} { + Create + wm transient $S(W) [winfo toplevel $S(-parent)] + tk::PlaceWindow $S(W) widget $S(-parent) + } + set S(fonts) [lsort -dictionary [font families]] + set S(fonts,lcase) {} + foreach font $S(fonts) { lappend S(fonts,lcase) [string tolower $font]} + wm deiconify $S(W) +} + +proc ::tk::fontchooser::Hide {} { + variable S + wm withdraw $S(W) +} + +proc ::tk::fontchooser::Configure {args} { + variable S + + set specs { + {-parent "" "" . } + {-title "" "" ""} + {-font "" "" ""} + {-command "" "" ""} + } + + if {[llength $args] == 0} { + set result {} + foreach spec $specs { + foreach {name xx yy default} $spec break + lappend result $name \ + [expr {[info exists S($name)] ? $S($name) : $default}] + } + lappend result -visible \ + [expr {[winfo exists $S(W)] && [winfo ismapped $S(W)]}] + return $result + } + if {[llength $args] == 1} { + set option [lindex $args 0] + if {[string equal $option "-visible"]} { + return [expr {[winfo exists $S(W)] && [winfo ismapped $S(W)]}] + } elseif {[info exists S($option)]} { + return $S($option) + } + return -code error -errorcode [list TK LOOKUP OPTION $option] \ + "bad option \"$option\": must be\ + -command, -font, -parent, -title or -visible" + } + + set cache [dict create -parent $S(-parent) -title $S(-title) \ + -font $S(-font) -command $S(-command)] + set r [tclParseConfigSpec [namespace which -variable S] $specs DONTSETDEFAULTS $args] + if {![winfo exists $S(-parent)]} { + set code [list TK LOOKUP WINDOW $S(-parent)] + set err "bad window path name \"$S(-parent)\"" + array set S $cache + return -code error -errorcode $code $err + } + if {[string trim $S(-title)] eq ""} { + set S(-title) [::msgcat::mc "Font"] + } + if {[winfo exists $S(W)] && ("-font" in $args)} { + Init $S(-font) + event generate $S(-parent) <> + } + return $r +} + +proc ::tk::fontchooser::Create {} { + variable S + set windowName __tk__fontchooser + if {$S(-parent) eq "."} { + set S(W) .$windowName + } else { + set S(W) $S(-parent).$windowName + } + + # Now build the dialog + if {![winfo exists $S(W)]} { + toplevel $S(W) -class TkFontDialog + if {[package provide tcltest] ne {}} {set ::tk_dialog $S(W)} + wm withdraw $S(W) + wm title $S(W) $S(-title) + wm transient $S(W) [winfo toplevel $S(-parent)] + + set scaling [tk scaling] + set sizeWidth [expr {int([string length [::msgcat::mc "&Size:"]] * $scaling)}] + + set outer [::ttk::frame $S(W).outer -padding {10 10}] + ::tk::AmpWidget ::ttk::label $S(W).font -text [::msgcat::mc "&Font:"] + ::tk::AmpWidget ::ttk::label $S(W).style -text [::msgcat::mc "Font st&yle:"] + ::tk::AmpWidget ::ttk::label $S(W).size -text [::msgcat::mc "&Size:"] -width $sizeWidth + ttk::entry $S(W).efont -width 18 \ + -textvariable [namespace which -variable S](font) + ttk::entry $S(W).estyle -width 10 \ + -textvariable [namespace which -variable S](style) + ttk::entry $S(W).esize -textvariable [namespace which -variable S](size) \ + -width 3 -validate key -validatecommand {string is double %P} + + ttk_slistbox $S(W).lfonts -height 7 -exportselection 0 \ + -selectmode browse -activestyle none \ + -listvariable [namespace which -variable S](fonts) + ttk_slistbox $S(W).lstyles -width 5 -height 7 -exportselection 0 \ + -selectmode browse -activestyle none \ + -listvariable [namespace which -variable S](styles) + ttk_slistbox $S(W).lsizes -width 4 -height 7 -exportselection 0 \ + -selectmode browse -activestyle none \ + -listvariable [namespace which -variable S](sizes) + + set WE $S(W).effects + ::ttk::labelframe $WE -text [::msgcat::mc "Effects"] + ::tk::AmpWidget ::ttk::checkbutton $WE.strike \ + -variable [namespace which -variable S](strike) \ + -text [::msgcat::mc "Stri&keout"] \ + -command [namespace code [list Click strike]] + ::tk::AmpWidget ::ttk::checkbutton $WE.under \ + -variable [namespace which -variable S](under) \ + -text [::msgcat::mc "&Underline"] \ + -command [namespace code [list Click under]] + + set bbox [::ttk::frame $S(W).bbox] + ::ttk::button $S(W).ok -text [::msgcat::mc OK] -default active\ + -command [namespace code [list Done 1]] + ::ttk::button $S(W).cancel -text [::msgcat::mc Cancel] \ + -command [namespace code [list Done 0]] + ::tk::AmpWidget ::ttk::button $S(W).apply -text [::msgcat::mc "&Apply"] \ + -command [namespace code [list Apply]] + wm protocol $S(W) WM_DELETE_WINDOW [namespace code [list Done 0]] + + # Calculate minimum sizes + ttk::scrollbar $S(W).tmpvs + set scroll_width [winfo reqwidth $S(W).tmpvs] + destroy $S(W).tmpvs + set minsize(gap) 10 + set minsize(bbox) [winfo reqwidth $S(W).ok] + set minsize(fonts) \ + [expr {[font measure TkDefaultFont "Helvetica"] + $scroll_width}] + set minsize(styles) \ + [expr {[font measure TkDefaultFont "Bold Italic"] + $scroll_width}] + set minsize(sizes) \ + [expr {[font measure TkDefaultFont "-99"] + $scroll_width}] + set min [expr {$minsize(gap) * 4}] + foreach {what width} [array get minsize] {incr min $width} + wm minsize $S(W) $min 260 + + bind $S(W) [namespace code [list Done 1]] + bind $S(W) [namespace code [list Done 0]] + bind $S(W) [namespace code [list Visibility %W 1]] + bind $S(W) [namespace code [list Visibility %W 0]] + bind $S(W) [namespace code [list Visibility %W 0]] + bind $S(W).lfonts.list <> [namespace code [list Click font]] + bind $S(W).lstyles.list <> [namespace code [list Click style]] + bind $S(W).lsizes.list <> [namespace code [list Click size]] + bind $S(W) [list ::tk::AltKeyInDialog $S(W) %A] + bind $S(W).font <> [list ::focus $S(W).efont] + bind $S(W).style <> [list ::focus $S(W).estyle] + bind $S(W).size <> [list ::focus $S(W).esize] + bind $S(W).apply <> [namespace code [list Apply]] + bind $WE.strike <> [list $WE.strike invoke] + bind $WE.under <> [list $WE.under invoke] + + set WS $S(W).sample + ::ttk::labelframe $WS -text [::msgcat::mc "Sample"] + ::ttk::label $WS.sample -relief sunken -anchor center \ + -textvariable [namespace which -variable S](sampletext) + set S(sample) $WS.sample + grid $WS.sample -sticky news -padx 6 -pady 4 + grid rowconfigure $WS 0 -weight 1 + grid columnconfigure $WS 0 -weight 1 + grid propagate $WS 0 + + grid $S(W).ok -in $bbox -sticky new -pady {0 2} + grid $S(W).cancel -in $bbox -sticky new -pady 2 + if {$S(-command) ne ""} { + grid $S(W).apply -in $bbox -sticky new -pady 2 + } + grid columnconfigure $bbox 0 -weight 1 + + grid $WE.strike -sticky w -padx 10 + grid $WE.under -sticky w -padx 10 -pady {0 30} + grid columnconfigure $WE 1 -weight 1 + + grid $S(W).font x $S(W).style x $S(W).size x -in $outer -sticky w + grid $S(W).efont x $S(W).estyle x $S(W).esize x $bbox -in $outer -sticky ew + grid $S(W).lfonts x $S(W).lstyles x $S(W).lsizes x ^ -in $outer -sticky news + grid $WE x $WS - - x ^ -in $outer -sticky news -pady {15 30} + grid configure $bbox -sticky n + grid rowconfigure $outer 2 -weight 1 + grid columnconfigure $outer {1 3 5} -minsize $minsize(gap) + grid columnconfigure $outer {0 2 4} -weight 1 + grid columnconfigure $outer 0 -minsize $minsize(fonts) + grid columnconfigure $outer 2 -minsize $minsize(styles) + grid columnconfigure $outer 4 -minsize $minsize(sizes) + grid columnconfigure $outer 6 -minsize $minsize(bbox) + + grid $outer -sticky news + grid rowconfigure $S(W) 0 -weight 1 + grid columnconfigure $S(W) 0 -weight 1 + + Init $S(-font) + + trace add variable [namespace which -variable S](size) \ + write [namespace code [list Tracer]] + trace add variable [namespace which -variable S](style) \ + write [namespace code [list Tracer]] + trace add variable [namespace which -variable S](font) \ + write [namespace code [list Tracer]] + } else { + Init $S(-font) + } + + return +} + +# ::tk::fontchooser::Done -- +# +# Handles teardown of the dialog, calling -command if needed +# +# Arguments: +# ok true if user pressed OK +# +proc ::tk::fontchooser::Done {ok} { + variable S + + if {! $ok} { + set S(result) "" + } + trace vdelete S(size) w [namespace code [list Tracer]] + trace vdelete S(style) w [namespace code [list Tracer]] + trace vdelete S(font) w [namespace code [list Tracer]] + destroy $S(W) + if {$ok && $S(-command) ne ""} { + uplevel #0 $S(-command) [list $S(result)] + } +} + +# ::tk::fontchooser::Apply -- +# +# Call the -command procedure appending the current font +# Errors are reported via the background error mechanism +# +proc ::tk::fontchooser::Apply {} { + variable S + if {$S(-command) ne ""} { + if {[catch {uplevel #0 $S(-command) [list $S(result)]} err]} { + ::bgerror $err + } + } + event generate $S(-parent) <> +} + +# ::tk::fontchooser::Init -- +# +# Initializes dialog to a default font +# +# Arguments: +# defaultFont font to use as the default +# +proc ::tk::fontchooser::Init {{defaultFont ""}} { + variable S + + if {$S(first) || $defaultFont ne ""} { + if {$defaultFont eq ""} { + set defaultFont [[entry .___e] cget -font] + destroy .___e + } + array set F [font actual $defaultFont] + set S(font) $F(-family) + set S(size) $F(-size) + set S(strike) $F(-overstrike) + set S(under) $F(-underline) + set S(style) [::msgcat::mc "Regular"] + if {$F(-weight) eq "bold" && $F(-slant) eq "italic"} { + set S(style) [::msgcat::mc "Bold Italic"] + } elseif {$F(-weight) eq "bold"} { + set S(style) [::msgcat::mc "Bold"] + } elseif {$F(-slant) eq "italic"} { + set S(style) [::msgcat::mc "Italic"] + } + + set S(first) 0 + } + + Tracer a b c + Update +} + +# ::tk::fontchooser::Click -- +# +# Handles all button clicks, updating the appropriate widgets +# +# Arguments: +# who which widget got pressed +# +proc ::tk::fontchooser::Click {who} { + variable S + + if {$who eq "font"} { + set S(font) [$S(W).lfonts get [$S(W).lfonts curselection]] + } elseif {$who eq "style"} { + set S(style) [$S(W).lstyles get [$S(W).lstyles curselection]] + } elseif {$who eq "size"} { + set S(size) [$S(W).lsizes get [$S(W).lsizes curselection]] + } + Update +} + +# ::tk::fontchooser::Tracer -- +# +# Handles traces on key variables, updating the appropriate widgets +# +# Arguments: +# standard trace arguments (not used) +# +proc ::tk::fontchooser::Tracer {var1 var2 op} { + variable S + + set bad 0 + set nstate normal + # Make selection in each listbox + foreach var {font style size} { + set value [string tolower $S($var)] + $S(W).l${var}s selection clear 0 end + set n [lsearch -exact $S(${var}s,lcase) $value] + $S(W).l${var}s selection set $n + if {$n >= 0} { + set S($var) [lindex $S(${var}s) $n] + $S(W).e$var icursor end + $S(W).e$var selection clear + } else { ;# No match, try prefix + # Size is weird: valid numbers are legal but don't display + # unless in the font size list + set n [lsearch -glob $S(${var}s,lcase) "$value*"] + set bad 1 + if {$var ne "size" || ! [string is double -strict $value]} { + set nstate disabled + } + } + $S(W).l${var}s see $n + } + if {!$bad} {Update} + $S(W).ok configure -state $nstate +} + +# ::tk::fontchooser::Update -- +# +# Shows a sample of the currently selected font +# +proc ::tk::fontchooser::Update {} { + variable S + + set S(result) [list $S(font) $S(size)] + if {$S(style) eq [::msgcat::mc "Bold"]} {lappend S(result) bold} + if {$S(style) eq [::msgcat::mc "Italic"]} {lappend S(result) italic} + if {$S(style) eq [::msgcat::mc "Bold Italic"]} {lappend S(result) bold italic} + if {$S(strike)} {lappend S(result) overstrike} + if {$S(under)} {lappend S(result) underline} + + $S(sample) configure -font $S(result) +} + +# ::tk::fontchooser::Visibility -- +# +# Notify the parent when the dialog visibility changes +# +proc ::tk::fontchooser::Visibility {w visible} { + variable S + if {$w eq $S(W)} { + event generate $S(-parent) <> + } +} + +# ::tk::fontchooser::ttk_listbox -- +# +# Create a properly themed scrolled listbox. +# This is exactly right on XP but may need adjusting on other platforms. +# +proc ::tk::fontchooser::ttk_slistbox {w args} { + set f [ttk::frame $w -style FontchooserFrame -padding 2] + if {[catch { + listbox $f.list -relief flat -highlightthickness 0 -borderwidth 0 {*}$args + ttk::scrollbar $f.vs -command [list $f.list yview] + $f.list configure -yscrollcommand [list $f.vs set] + grid $f.list $f.vs -sticky news + grid rowconfigure $f 0 -weight 1 + grid columnconfigure $f 0 -weight 1 + interp hide {} $w + interp alias {} $w {} $f.list + } err opt]} { + destroy $f + return -options $opt $err + } + return $w +} diff --git a/shared/package-files/08/081ee3b785d24720ac3ab9bbaf7ef597fcb7c9af7e00ddb017b048b575d06825/code.py b/shared/package-files/08/081ee3b785d24720ac3ab9bbaf7ef597fcb7c9af7e00ddb017b048b575d06825/code.py new file mode 100644 index 0000000000000000000000000000000000000000..65ba52b8bbf609d08d84a142eb6bab19b9cf2d4f --- /dev/null +++ b/shared/package-files/08/081ee3b785d24720ac3ab9bbaf7ef597fcb7c9af7e00ddb017b048b575d06825/code.py @@ -0,0 +1,755 @@ +"""Implementation of code management magic functions. +""" +#----------------------------------------------------------------------------- +# Copyright (c) 2012 The IPython Development Team. +# +# Distributed under the terms of the Modified BSD License. +# +# The full license is in the file COPYING.txt, distributed with this software. +#----------------------------------------------------------------------------- + +#----------------------------------------------------------------------------- +# Imports +#----------------------------------------------------------------------------- + +# Stdlib +import inspect +import io +import os +import re +import sys +import ast +from itertools import chain +from urllib.request import Request, urlopen +from urllib.parse import urlencode +from pathlib import Path + +# Our own packages +from IPython.core.error import TryNext, StdinNotImplementedError, UsageError +from IPython.core.macro import Macro +from IPython.core.magic import Magics, magics_class, line_magic +from IPython.core.oinspect import find_file, find_source_lines +from IPython.core.release import version +from IPython.testing.skipdoctest import skip_doctest +from IPython.utils.contexts import preserve_keys +from IPython.utils.path import get_py_filename +from warnings import warn +from logging import error +from IPython.utils.text import get_text_list + +#----------------------------------------------------------------------------- +# Magic implementation classes +#----------------------------------------------------------------------------- + +# Used for exception handling in magic_edit +class MacroToEdit(ValueError): pass + +ipython_input_pat = re.compile(r"$") + +# To match, e.g. 8-10 1:5 :10 3- +range_re = re.compile(r""" +(?P\d+)? +((?P[\-:]) + (?P\d+)?)? +$""", re.VERBOSE) + + +def extract_code_ranges(ranges_str): + """Turn a string of range for %%load into 2-tuples of (start, stop) + ready to use as a slice of the content split by lines. + + Examples + -------- + list(extract_input_ranges("5-10 2")) + [(4, 10), (1, 2)] + """ + for range_str in ranges_str.split(): + rmatch = range_re.match(range_str) + if not rmatch: + continue + sep = rmatch.group("sep") + start = rmatch.group("start") + end = rmatch.group("end") + + if sep == '-': + start = int(start) - 1 if start else None + end = int(end) if end else None + elif sep == ':': + start = int(start) - 1 if start else None + end = int(end) - 1 if end else None + else: + end = int(start) + start = int(start) - 1 + yield (start, end) + + +def extract_symbols(code, symbols): + """ + Return a tuple (blocks, not_found) + where ``blocks`` is a list of code fragments + for each symbol parsed from code, and ``not_found`` are + symbols not found in the code. + + For example:: + + In [1]: code = '''a = 10 + ...: def b(): return 42 + ...: class A: pass''' + + In [2]: extract_symbols(code, 'A,b,z') + Out[2]: (['class A: pass\\n', 'def b(): return 42\\n'], ['z']) + """ + symbols = symbols.split(',') + + # this will raise SyntaxError if code isn't valid Python + py_code = ast.parse(code) + + marks = [(getattr(s, 'name', None), s.lineno) for s in py_code.body] + code = code.split('\n') + + symbols_lines = {} + + # we already know the start_lineno of each symbol (marks). + # To find each end_lineno, we traverse in reverse order until each + # non-blank line + end = len(code) + for name, start in reversed(marks): + while not code[end - 1].strip(): + end -= 1 + if name: + symbols_lines[name] = (start - 1, end) + end = start - 1 + + # Now symbols_lines is a map + # {'symbol_name': (start_lineno, end_lineno), ...} + + # fill a list with chunks of codes for each requested symbol + blocks = [] + not_found = [] + for symbol in symbols: + if symbol in symbols_lines: + start, end = symbols_lines[symbol] + blocks.append('\n'.join(code[start:end]) + '\n') + else: + not_found.append(symbol) + + return blocks, not_found + +def strip_initial_indent(lines): + """For %load, strip indent from lines until finding an unindented line. + + https://github.com/ipython/ipython/issues/9775 + """ + indent_re = re.compile(r'\s+') + + it = iter(lines) + first_line = next(it) + indent_match = indent_re.match(first_line) + + if indent_match: + # First line was indented + indent = indent_match.group() + yield first_line[len(indent):] + + for line in it: + if line.startswith(indent): + yield line[len(indent):] + else: + # Less indented than the first line - stop dedenting + yield line + break + else: + yield first_line + + # Pass the remaining lines through without dedenting + for line in it: + yield line + + +class InteractivelyDefined(Exception): + """Exception for interactively defined variable in magic_edit""" + def __init__(self, index): + self.index = index + + +@magics_class +class CodeMagics(Magics): + """Magics related to code management (loading, saving, editing, ...).""" + + def __init__(self, *args, **kwargs): + self._knowntemps = set() + super(CodeMagics, self).__init__(*args, **kwargs) + + @line_magic + def save(self, parameter_s=''): + """Save a set of lines or a macro to a given filename. + + Usage:\\ + %save [options] filename [history] + + Options: + + -r: use 'raw' input. By default, the 'processed' history is used, + so that magics are loaded in their transformed version to valid + Python. If this option is given, the raw input as typed as the + command line is used instead. + + -f: force overwrite. If file exists, %save will prompt for overwrite + unless -f is given. + + -a: append to the file instead of overwriting it. + + The history argument uses the same syntax as %history for input ranges, + then saves the lines to the filename you specify. + + If no ranges are specified, saves history of the current session up to + this point. + + It adds a '.py' extension to the file if you don't do so yourself, and + it asks for confirmation before overwriting existing files. + + If `-r` option is used, the default extension is `.ipy`. + """ + + opts,args = self.parse_options(parameter_s,'fra',mode='list') + if not args: + raise UsageError('Missing filename.') + raw = 'r' in opts + force = 'f' in opts + append = 'a' in opts + mode = 'a' if append else 'w' + ext = '.ipy' if raw else '.py' + fname, codefrom = args[0], " ".join(args[1:]) + if not fname.endswith(('.py','.ipy')): + fname += ext + fname = os.path.expanduser(fname) + file_exists = os.path.isfile(fname) + if file_exists and not force and not append: + try: + overwrite = self.shell.ask_yes_no('File `%s` exists. Overwrite (y/[N])? ' % fname, default='n') + except StdinNotImplementedError: + print("File `%s` exists. Use `%%save -f %s` to force overwrite" % (fname, parameter_s)) + return + if not overwrite : + print('Operation cancelled.') + return + try: + cmds = self.shell.find_user_code(codefrom,raw) + except (TypeError, ValueError) as e: + print(e.args[0]) + return + with io.open(fname, mode, encoding="utf-8") as f: + if not file_exists or not append: + f.write("# coding: utf-8\n") + f.write(cmds) + # make sure we end on a newline + if not cmds.endswith('\n'): + f.write('\n') + print('The following commands were written to file `%s`:' % fname) + print(cmds) + + @line_magic + def pastebin(self, parameter_s=''): + """Upload code to dpaste.com, returning the URL. + + Usage:\\ + %pastebin [-d "Custom description"][-e 24] 1-7 + + The argument can be an input history range, a filename, or the name of a + string or macro. + + If no arguments are given, uploads the history of this session up to + this point. + + Options: + + -d: Pass a custom description. The default will say + "Pasted from IPython". + -e: Pass number of days for the link to be expired. + The default will be 7 days. + """ + opts, args = self.parse_options(parameter_s, "d:e:") + + try: + code = self.shell.find_user_code(args) + except (ValueError, TypeError) as e: + print(e.args[0]) + return + + expiry_days = 7 + try: + expiry_days = int(opts.get("e", 7)) + except ValueError as e: + print(e.args[0].capitalize()) + return + if expiry_days < 1 or expiry_days > 365: + print("Expiry days should be in range of 1 to 365") + return + + post_data = urlencode( + { + "title": opts.get("d", "Pasted from IPython"), + "syntax": "python", + "content": code, + "expiry_days": expiry_days, + } + ).encode("utf-8") + + request = Request( + "https://dpaste.com/api/v2/", + headers={"User-Agent": "IPython v{}".format(version)}, + ) + response = urlopen(request, post_data) + return response.headers.get('Location') + + @line_magic + def loadpy(self, arg_s): + """Alias of `%load` + + `%loadpy` has gained some flexibility and dropped the requirement of a `.py` + extension. So it has been renamed simply into %load. You can look at + `%load`'s docstring for more info. + """ + self.load(arg_s) + + @line_magic + def load(self, arg_s): + """Load code into the current frontend. + + Usage:\\ + %load [options] source + + where source can be a filename, URL, input history range, macro, or + element in the user namespace + + If no arguments are given, loads the history of this session up to this + point. + + Options: + + -r : Specify lines or ranges of lines to load from the source. + Ranges could be specified as x-y (x..y) or in python-style x:y + (x..(y-1)). Both limits x and y can be left blank (meaning the + beginning and end of the file, respectively). + + -s : Specify function or classes to load from python source. + + -y : Don't ask confirmation for loading source above 200 000 characters. + + -n : Include the user's namespace when searching for source code. + + This magic command can either take a local filename, a URL, an history + range (see %history) or a macro as argument, it will prompt for + confirmation before loading source with more than 200 000 characters, unless + -y flag is passed or if the frontend does not support raw_input:: + + %load + %load myscript.py + %load 7-27 + %load myMacro + %load http://www.example.com/myscript.py + %load -r 5-10 myscript.py + %load -r 10-20,30,40: foo.py + %load -s MyClass,wonder_function myscript.py + %load -n MyClass + %load -n my_module.wonder_function + """ + opts,args = self.parse_options(arg_s,'yns:r:') + search_ns = 'n' in opts + contents = self.shell.find_user_code(args, search_ns=search_ns) + + if 's' in opts: + try: + blocks, not_found = extract_symbols(contents, opts['s']) + except SyntaxError: + # non python code + error("Unable to parse the input as valid Python code") + return + + if len(not_found) == 1: + warn('The symbol `%s` was not found' % not_found[0]) + elif len(not_found) > 1: + warn('The symbols %s were not found' % get_text_list(not_found, + wrap_item_with='`') + ) + + contents = '\n'.join(blocks) + + if 'r' in opts: + ranges = opts['r'].replace(',', ' ') + lines = contents.split('\n') + slices = extract_code_ranges(ranges) + contents = [lines[slice(*slc)] for slc in slices] + contents = '\n'.join(strip_initial_indent(chain.from_iterable(contents))) + + l = len(contents) + + # 200 000 is ~ 2500 full 80 character lines + # so in average, more than 5000 lines + if l > 200000 and 'y' not in opts: + try: + ans = self.shell.ask_yes_no(("The text you're trying to load seems pretty big"\ + " (%d characters). Continue (y/[N]) ?" % l), default='n' ) + except StdinNotImplementedError: + #assume yes if raw input not implemented + ans = True + + if ans is False : + print('Operation cancelled.') + return + + contents = "# %load {}\n".format(arg_s) + contents + + self.shell.set_next_input(contents, replace=True) + + @staticmethod + def _find_edit_target(shell, args, opts, last_call): + """Utility method used by magic_edit to find what to edit.""" + + def make_filename(arg): + "Make a filename from the given args" + try: + filename = get_py_filename(arg) + except IOError: + # If it ends with .py but doesn't already exist, assume we want + # a new file. + if arg.endswith('.py'): + filename = arg + else: + filename = None + return filename + + # Set a few locals from the options for convenience: + opts_prev = 'p' in opts + opts_raw = 'r' in opts + + # custom exceptions + class DataIsObject(Exception): pass + + # Default line number value + lineno = opts.get('n',None) + + if opts_prev: + args = '_%s' % last_call[0] + if args not in shell.user_ns: + args = last_call[1] + + # by default this is done with temp files, except when the given + # arg is a filename + use_temp = True + + data = '' + + # First, see if the arguments should be a filename. + filename = make_filename(args) + if filename: + use_temp = False + elif args: + # Mode where user specifies ranges of lines, like in %macro. + data = shell.extract_input_lines(args, opts_raw) + if not data: + try: + # Load the parameter given as a variable. If not a string, + # process it as an object instead (below) + + #print '*** args',args,'type',type(args) # dbg + data = eval(args, shell.user_ns) + if not isinstance(data, str): + raise DataIsObject + + except (NameError,SyntaxError): + # given argument is not a variable, try as a filename + filename = make_filename(args) + if filename is None: + warn("Argument given (%s) can't be found as a variable " + "or as a filename." % args) + return (None, None, None) + use_temp = False + + except DataIsObject as e: + # macros have a special edit function + if isinstance(data, Macro): + raise MacroToEdit(data) from e + + # For objects, try to edit the file where they are defined + filename = find_file(data) + if filename: + if 'fakemodule' in filename.lower() and \ + inspect.isclass(data): + # class created by %edit? Try to find source + # by looking for method definitions instead, the + # __module__ in those classes is FakeModule. + attrs = [getattr(data, aname) for aname in dir(data)] + for attr in attrs: + if not inspect.ismethod(attr): + continue + filename = find_file(attr) + if filename and \ + 'fakemodule' not in filename.lower(): + # change the attribute to be the edit + # target instead + data = attr + break + + m = ipython_input_pat.match(os.path.basename(filename)) + if m: + raise InteractivelyDefined(int(m.groups()[0])) from e + + datafile = 1 + if filename is None: + filename = make_filename(args) + datafile = 1 + if filename is not None: + # only warn about this if we get a real name + warn('Could not find file where `%s` is defined.\n' + 'Opening a file named `%s`' % (args, filename)) + # Now, make sure we can actually read the source (if it was + # in a temp file it's gone by now). + if datafile: + if lineno is None: + lineno = find_source_lines(data) + if lineno is None: + filename = make_filename(args) + if filename is None: + warn('The file where `%s` was defined ' + 'cannot be read or found.' % data) + return (None, None, None) + use_temp = False + + if use_temp: + filename = shell.mktempfile(data) + print('IPython will make a temporary file named:',filename) + + # use last_call to remember the state of the previous call, but don't + # let it be clobbered by successive '-p' calls. + try: + last_call[0] = shell.displayhook.prompt_count + if not opts_prev: + last_call[1] = args + except: + pass + + + return filename, lineno, use_temp + + def _edit_macro(self,mname,macro): + """open an editor with the macro data in a file""" + filename = self.shell.mktempfile(macro.value) + self.shell.hooks.editor(filename) + + # and make a new macro object, to replace the old one + mvalue = Path(filename).read_text(encoding="utf-8") + self.shell.user_ns[mname] = Macro(mvalue) + + @skip_doctest + @line_magic + def edit(self, parameter_s='',last_call=['','']): + """Bring up an editor and execute the resulting code. + + Usage: + %edit [options] [args] + + %edit runs IPython's editor hook. The default version of this hook is + set to call the editor specified by your $EDITOR environment variable. + If this isn't found, it will default to vi under Linux/Unix and to + notepad under Windows. See the end of this docstring for how to change + the editor hook. + + You can also set the value of this editor via the + ``TerminalInteractiveShell.editor`` option in your configuration file. + This is useful if you wish to use a different editor from your typical + default with IPython (and for Windows users who typically don't set + environment variables). + + This command allows you to conveniently edit multi-line code right in + your IPython session. + + If called without arguments, %edit opens up an empty editor with a + temporary file and will execute the contents of this file when you + close it (don't forget to save it!). + + + Options: + + -n : open the editor at a specified line number. By default, + the IPython editor hook uses the unix syntax 'editor +N filename', but + you can configure this by providing your own modified hook if your + favorite editor supports line-number specifications with a different + syntax. + + -p: this will call the editor with the same data as the previous time + it was used, regardless of how long ago (in your current session) it + was. + + -r: use 'raw' input. This option only applies to input taken from the + user's history. By default, the 'processed' history is used, so that + magics are loaded in their transformed version to valid Python. If + this option is given, the raw input as typed as the command line is + used instead. When you exit the editor, it will be executed by + IPython's own processor. + + -x: do not execute the edited code immediately upon exit. This is + mainly useful if you are editing programs which need to be called with + command line arguments, which you can then do using %run. + + + Arguments: + + If arguments are given, the following possibilities exist: + + - If the argument is a filename, IPython will load that into the + editor. It will execute its contents with execfile() when you exit, + loading any code in the file into your interactive namespace. + + - The arguments are ranges of input history, e.g. "7 ~1/4-6". + The syntax is the same as in the %history magic. + + - If the argument is a string variable, its contents are loaded + into the editor. You can thus edit any string which contains + python code (including the result of previous edits). + + - If the argument is the name of an object (other than a string), + IPython will try to locate the file where it was defined and open the + editor at the point where it is defined. You can use `%edit function` + to load an editor exactly at the point where 'function' is defined, + edit it and have the file be executed automatically. + + - If the object is a macro (see %macro for details), this opens up your + specified editor with a temporary file containing the macro's data. + Upon exit, the macro is reloaded with the contents of the file. + + Note: opening at an exact line is only supported under Unix, and some + editors (like kedit and gedit up to Gnome 2.8) do not understand the + '+NUMBER' parameter necessary for this feature. Good editors like + (X)Emacs, vi, jed, pico and joe all do. + + After executing your code, %edit will return as output the code you + typed in the editor (except when it was an existing file). This way + you can reload the code in further invocations of %edit as a variable, + via _ or Out[], where is the prompt number of + the output. + + Note that %edit is also available through the alias %ed. + + This is an example of creating a simple function inside the editor and + then modifying it. First, start up the editor:: + + In [1]: edit + Editing... done. Executing edited code... + Out[1]: 'def foo():\\n print "foo() was defined in an editing + session"\\n' + + We can then call the function foo():: + + In [2]: foo() + foo() was defined in an editing session + + Now we edit foo. IPython automatically loads the editor with the + (temporary) file where foo() was previously defined:: + + In [3]: edit foo + Editing... done. Executing edited code... + + And if we call foo() again we get the modified version:: + + In [4]: foo() + foo() has now been changed! + + Here is an example of how to edit a code snippet successive + times. First we call the editor:: + + In [5]: edit + Editing... done. Executing edited code... + hello + Out[5]: "print 'hello'\\n" + + Now we call it again with the previous output (stored in _):: + + In [6]: edit _ + Editing... done. Executing edited code... + hello world + Out[6]: "print 'hello world'\\n" + + Now we call it with the output #8 (stored in _8, also as Out[8]):: + + In [7]: edit _8 + Editing... done. Executing edited code... + hello again + Out[7]: "print 'hello again'\\n" + + + Changing the default editor hook: + + If you wish to write your own editor hook, you can put it in a + configuration file which you load at startup time. The default hook + is defined in the IPython.core.hooks module, and you can use that as a + starting example for further modifications. That file also has + general instructions on how to set a new hook for use once you've + defined it.""" + opts,args = self.parse_options(parameter_s,'prxn:') + + try: + filename, lineno, is_temp = self._find_edit_target(self.shell, + args, opts, last_call) + except MacroToEdit as e: + self._edit_macro(args, e.args[0]) + return + except InteractivelyDefined as e: + print("Editing In[%i]" % e.index) + args = str(e.index) + filename, lineno, is_temp = self._find_edit_target(self.shell, + args, opts, last_call) + if filename is None: + # nothing was found, warnings have already been issued, + # just give up. + return + + if is_temp: + self._knowntemps.add(filename) + elif (filename in self._knowntemps): + is_temp = True + + + # do actual editing here + print('Editing...', end=' ') + sys.stdout.flush() + filepath = Path(filename) + try: + # Quote filenames that may have spaces in them when opening + # the editor + quoted = filename = str(filepath.absolute()) + if " " in quoted: + quoted = "'%s'" % quoted + self.shell.hooks.editor(quoted, lineno) + except TryNext: + warn('Could not open editor') + return + + # XXX TODO: should this be generalized for all string vars? + # For now, this is special-cased to blocks created by cpaste + if args.strip() == "pasted_block": + self.shell.user_ns["pasted_block"] = filepath.read_text(encoding="utf-8") + + if 'x' in opts: # -x prevents actual execution + print() + else: + print('done. Executing edited code...') + with preserve_keys(self.shell.user_ns, '__file__'): + if not is_temp: + self.shell.user_ns["__file__"] = filename + if "r" in opts: # Untranslated IPython code + source = filepath.read_text(encoding="utf-8") + self.shell.run_cell(source, store_history=False) + else: + self.shell.safe_execfile(filename, self.shell.user_ns, + self.shell.user_ns) + + if is_temp: + try: + return filepath.read_text(encoding="utf-8") + except IOError as msg: + if Path(msg.filename) == filepath: + warn('File not found. Did you forget to save?') + return + else: + self.shell.showtraceback() diff --git a/shared/package-files/08/081ef817a8a64aebd16fb7dfceda03dd5a0884c67a72e8add1416bf9da318a69/grammar_analysis.py b/shared/package-files/08/081ef817a8a64aebd16fb7dfceda03dd5a0884c67a72e8add1416bf9da318a69/grammar_analysis.py new file mode 100644 index 0000000000000000000000000000000000000000..3aa4e94f3a6ca42685230fba064f004d0f3232a2 --- /dev/null +++ b/shared/package-files/08/081ef817a8a64aebd16fb7dfceda03dd5a0884c67a72e8add1416bf9da318a69/grammar_analysis.py @@ -0,0 +1,203 @@ +"Provides for superficial grammar analysis." + +from collections import Counter, defaultdict +from typing import List, Dict, Iterator, FrozenSet, Set + +from ..utils import bfs, fzset, classify +from ..exceptions import GrammarError +from ..grammar import Rule, Terminal, NonTerminal, Symbol +from ..common import ParserConf + + +class RulePtr: + __slots__ = ('rule', 'index') + rule: Rule + index: int + + def __init__(self, rule: Rule, index: int): + assert isinstance(rule, Rule) + assert index <= len(rule.expansion) + self.rule = rule + self.index = index + + def __repr__(self): + before = [x.name for x in self.rule.expansion[:self.index]] + after = [x.name for x in self.rule.expansion[self.index:]] + return '<%s : %s * %s>' % (self.rule.origin.name, ' '.join(before), ' '.join(after)) + + @property + def next(self) -> Symbol: + return self.rule.expansion[self.index] + + def advance(self, sym: Symbol) -> 'RulePtr': + assert self.next == sym + return RulePtr(self.rule, self.index+1) + + @property + def is_satisfied(self) -> bool: + return self.index == len(self.rule.expansion) + + def __eq__(self, other) -> bool: + if not isinstance(other, RulePtr): + return NotImplemented + return self.rule == other.rule and self.index == other.index + + def __hash__(self) -> int: + return hash((self.rule, self.index)) + + +State = FrozenSet[RulePtr] + +# state generation ensures no duplicate LR0ItemSets +class LR0ItemSet: + __slots__ = ('kernel', 'closure', 'transitions', 'lookaheads') + + kernel: State + closure: State + transitions: Dict[Symbol, 'LR0ItemSet'] + lookaheads: Dict[Symbol, Set[Rule]] + + def __init__(self, kernel, closure): + self.kernel = fzset(kernel) + self.closure = fzset(closure) + self.transitions = {} + self.lookaheads = defaultdict(set) + + def __repr__(self): + return '{%s | %s}' % (', '.join([repr(r) for r in self.kernel]), ', '.join([repr(r) for r in self.closure])) + + +def update_set(set1, set2): + if not set2 or set1 > set2: + return False + + copy = set(set1) + set1 |= set2 + return set1 != copy + +def calculate_sets(rules): + """Calculate FOLLOW sets. + + Adapted from: http://lara.epfl.ch/w/cc09:algorithm_for_first_and_follow_sets""" + symbols = {sym for rule in rules for sym in rule.expansion} | {rule.origin for rule in rules} + + # foreach grammar rule X ::= Y(1) ... Y(k) + # if k=0 or {Y(1),...,Y(k)} subset of NULLABLE then + # NULLABLE = NULLABLE union {X} + # for i = 1 to k + # if i=1 or {Y(1),...,Y(i-1)} subset of NULLABLE then + # FIRST(X) = FIRST(X) union FIRST(Y(i)) + # for j = i+1 to k + # if i=k or {Y(i+1),...Y(k)} subset of NULLABLE then + # FOLLOW(Y(i)) = FOLLOW(Y(i)) union FOLLOW(X) + # if i+1=j or {Y(i+1),...,Y(j-1)} subset of NULLABLE then + # FOLLOW(Y(i)) = FOLLOW(Y(i)) union FIRST(Y(j)) + # until none of NULLABLE,FIRST,FOLLOW changed in last iteration + + NULLABLE = set() + FIRST = {} + FOLLOW = {} + for sym in symbols: + FIRST[sym]={sym} if sym.is_term else set() + FOLLOW[sym]=set() + + # Calculate NULLABLE and FIRST + changed = True + while changed: + changed = False + + for rule in rules: + if set(rule.expansion) <= NULLABLE: + if update_set(NULLABLE, {rule.origin}): + changed = True + + for i, sym in enumerate(rule.expansion): + if set(rule.expansion[:i]) <= NULLABLE: + if update_set(FIRST[rule.origin], FIRST[sym]): + changed = True + else: + break + + # Calculate FOLLOW + changed = True + while changed: + changed = False + + for rule in rules: + for i, sym in enumerate(rule.expansion): + if i==len(rule.expansion)-1 or set(rule.expansion[i+1:]) <= NULLABLE: + if update_set(FOLLOW[sym], FOLLOW[rule.origin]): + changed = True + + for j in range(i+1, len(rule.expansion)): + if set(rule.expansion[i+1:j]) <= NULLABLE: + if update_set(FOLLOW[sym], FIRST[rule.expansion[j]]): + changed = True + + return FIRST, FOLLOW, NULLABLE + + +class GrammarAnalyzer: + def __init__(self, parser_conf: ParserConf, debug: bool=False, strict: bool=False): + self.debug = debug + self.strict = strict + + root_rules = {start: Rule(NonTerminal('$root_' + start), [NonTerminal(start), Terminal('$END')]) + for start in parser_conf.start} + + rules = parser_conf.rules + list(root_rules.values()) + self.rules_by_origin: Dict[NonTerminal, List[Rule]] = classify(rules, lambda r: r.origin) + + if len(rules) != len(set(rules)): + duplicates = [item for item, count in Counter(rules).items() if count > 1] + raise GrammarError("Rules defined twice: %s" % ', '.join(str(i) for i in duplicates)) + + for r in rules: + for sym in r.expansion: + if not (sym.is_term or sym in self.rules_by_origin): + raise GrammarError("Using an undefined rule: %s" % sym) + + self.start_states = {start: self.expand_rule(root_rule.origin) + for start, root_rule in root_rules.items()} + + self.end_states = {start: fzset({RulePtr(root_rule, len(root_rule.expansion))}) + for start, root_rule in root_rules.items()} + + lr0_root_rules = {start: Rule(NonTerminal('$root_' + start), [NonTerminal(start)]) + for start in parser_conf.start} + + lr0_rules = parser_conf.rules + list(lr0_root_rules.values()) + assert(len(lr0_rules) == len(set(lr0_rules))) + + self.lr0_rules_by_origin = classify(lr0_rules, lambda r: r.origin) + + # cache RulePtr(r, 0) in r (no duplicate RulePtr objects) + self.lr0_start_states = {start: LR0ItemSet([RulePtr(root_rule, 0)], self.expand_rule(root_rule.origin, self.lr0_rules_by_origin)) + for start, root_rule in lr0_root_rules.items()} + + self.FIRST, self.FOLLOW, self.NULLABLE = calculate_sets(rules) + + def expand_rule(self, source_rule: NonTerminal, rules_by_origin=None) -> State: + "Returns all init_ptrs accessible by rule (recursive)" + + if rules_by_origin is None: + rules_by_origin = self.rules_by_origin + + init_ptrs = set() + def _expand_rule(rule: NonTerminal) -> Iterator[NonTerminal]: + assert not rule.is_term, rule + + for r in rules_by_origin[rule]: + init_ptr = RulePtr(r, 0) + init_ptrs.add(init_ptr) + + if r.expansion: # if not empty rule + new_r = init_ptr.next + if not new_r.is_term: + assert isinstance(new_r, NonTerminal) + yield new_r + + for _ in bfs([source_rule], _expand_rule): + pass + + return fzset(init_ptrs) diff --git a/shared/package-files/08/0824daa4f11e187f7b88ab15b0f4855f441195175d4e353f4b9f31ac72f5f5b4/executionengine.py b/shared/package-files/08/0824daa4f11e187f7b88ab15b0f4855f441195175d4e353f4b9f31ac72f5f5b4/executionengine.py new file mode 100644 index 0000000000000000000000000000000000000000..956254b39fc10b15f66e17e5cafc5d610963c336 --- /dev/null +++ b/shared/package-files/08/0824daa4f11e187f7b88ab15b0f4855f441195175d4e353f4b9f31ac72f5f5b4/executionengine.py @@ -0,0 +1,330 @@ +import platform +from ctypes import (POINTER, c_char_p, c_bool, c_void_p, + c_int, c_uint64, c_size_t, CFUNCTYPE, string_at, cast, + py_object, Structure) + +from llvmlite.binding import ffi, targets, object_file + + +# Just check these weren't optimized out of the DLL. +ffi.lib.LLVMPY_LinkInMCJIT + + +def create_mcjit_compiler(module, target_machine, use_lmm=None): + """ + Create a MCJIT ExecutionEngine from the given *module* and + *target_machine*. + + *lmm* controls whether the llvmlite memory manager is used. If not supplied, + the default choice for the platform will be used (``True`` on 64-bit ARM + systems, ``False`` otherwise). + """ + if use_lmm is None: + use_lmm = platform.machine().lower() in ('arm64', 'aarch64') + + with ffi.OutputString() as outerr: + engine = ffi.lib.LLVMPY_CreateMCJITCompiler( + module, target_machine, use_lmm, outerr) + if not engine: + raise RuntimeError(str(outerr)) + + target_machine._owned = True + return ExecutionEngine(engine, module=module) + + +def check_jit_execution(): + """ + Check the system allows execution of in-memory JITted functions. + An exception is raised otherwise. + """ + errno = ffi.lib.LLVMPY_TryAllocateExecutableMemory() + if errno != 0: + raise OSError(errno, + "cannot allocate executable memory. " + "This may be due to security restrictions on your " + "system, such as SELinux or similar mechanisms." + ) + + +class ExecutionEngine(ffi.ObjectRef): + """An ExecutionEngine owns all Modules associated with it. + Deleting the engine will remove all associated modules. + It is an error to delete the associated modules. + """ + _object_cache = None + + def __init__(self, ptr, module): + """ + Module ownership is transferred to the EE + """ + self._modules = set([module]) + self._td = None + module._owned = True + ffi.ObjectRef.__init__(self, ptr) + + def get_function_address(self, name): + """ + Return the address of the function named *name* as an integer. + + It's a fatal error in LLVM if the symbol of *name* doesn't exist. + """ + return ffi.lib.LLVMPY_GetFunctionAddress(self, name.encode("ascii")) + + def get_global_value_address(self, name): + """ + Return the address of the global value named *name* as an integer. + + It's a fatal error in LLVM if the symbol of *name* doesn't exist. + """ + return ffi.lib.LLVMPY_GetGlobalValueAddress(self, name.encode("ascii")) + + def add_global_mapping(self, gv, addr): + ffi.lib.LLVMPY_AddGlobalMapping(self, gv, addr) + + def add_module(self, module): + """ + Ownership of module is transferred to the execution engine + """ + if module in self._modules: + raise KeyError("module already added to this engine") + ffi.lib.LLVMPY_AddModule(self, module) + module._owned = True + self._modules.add(module) + + def finalize_object(self): + """ + Make sure all modules owned by the execution engine are fully processed + and "usable" for execution. + """ + ffi.lib.LLVMPY_FinalizeObject(self) + + def run_static_constructors(self): + """ + Run static constructors which initialize module-level static objects. + """ + ffi.lib.LLVMPY_RunStaticConstructors(self) + + def run_static_destructors(self): + """ + Run static destructors which perform module-level cleanup of static + resources. + """ + ffi.lib.LLVMPY_RunStaticDestructors(self) + + def remove_module(self, module): + """ + Ownership of module is returned + """ + with ffi.OutputString() as outerr: + if ffi.lib.LLVMPY_RemoveModule(self, module, outerr): + raise RuntimeError(str(outerr)) + self._modules.remove(module) + module._owned = False + + @property + def target_data(self): + """ + The TargetData for this execution engine. + """ + if self._td is not None: + return self._td + ptr = ffi.lib.LLVMPY_GetExecutionEngineTargetData(self) + self._td = targets.TargetData(ptr) + self._td._owned = True + return self._td + + def enable_jit_events(self): + """ + Enable JIT events for profiling of generated code. + Return value indicates whether connection to profiling tool + was successful. + """ + ret = ffi.lib.LLVMPY_EnableJITEvents(self) + return ret + + def _find_module_ptr(self, module_ptr): + """ + Find the ModuleRef corresponding to the given pointer. + """ + ptr = cast(module_ptr, c_void_p).value + for module in self._modules: + if cast(module._ptr, c_void_p).value == ptr: + return module + return None + + def add_object_file(self, obj_file): + """ + Add object file to the jit. object_file can be instance of + :class:ObjectFile or a string representing file system path + """ + if isinstance(obj_file, str): + obj_file = object_file.ObjectFileRef.from_path(obj_file) + + ffi.lib.LLVMPY_MCJITAddObjectFile(self, obj_file) + + def set_object_cache(self, notify_func=None, getbuffer_func=None): + """ + Set the object cache "notifyObjectCompiled" and "getBuffer" + callbacks to the given Python functions. + """ + self._object_cache_notify = notify_func + self._object_cache_getbuffer = getbuffer_func + # Lifetime of the object cache is managed by us. + self._object_cache = _ObjectCacheRef(self) + # Note this doesn't keep a reference to self, to avoid reference + # cycles. + ffi.lib.LLVMPY_SetObjectCache(self, self._object_cache) + + def _raw_object_cache_notify(self, data): + """ + Low-level notify hook. + """ + if self._object_cache_notify is None: + return + module_ptr = data.contents.module_ptr + buf_ptr = data.contents.buf_ptr + buf_len = data.contents.buf_len + buf = string_at(buf_ptr, buf_len) + module = self._find_module_ptr(module_ptr) + if module is None: + # The LLVM EE should only give notifications for modules + # known by us. + raise RuntimeError("object compilation notification " + "for unknown module %s" % (module_ptr,)) + self._object_cache_notify(module, buf) + + def _raw_object_cache_getbuffer(self, data): + """ + Low-level getbuffer hook. + """ + if self._object_cache_getbuffer is None: + return + module_ptr = data.contents.module_ptr + module = self._find_module_ptr(module_ptr) + if module is None: + # The LLVM EE should only give notifications for modules + # known by us. + raise RuntimeError("object compilation notification " + "for unknown module %s" % (module_ptr,)) + + buf = self._object_cache_getbuffer(module) + if buf is not None: + # Create a copy, which will be freed by the caller + data[0].buf_ptr = ffi.lib.LLVMPY_CreateByteString(buf, len(buf)) + data[0].buf_len = len(buf) + + def _dispose(self): + # The modules will be cleaned up by the EE + for mod in self._modules: + mod.detach() + if self._td is not None: + self._td.detach() + self._modules.clear() + self._object_cache = None + self._capi.LLVMPY_DisposeExecutionEngine(self) + + +class _ObjectCacheRef(ffi.ObjectRef): + """ + Internal: an ObjectCache instance for use within an ExecutionEngine. + """ + + def __init__(self, obj): + ptr = ffi.lib.LLVMPY_CreateObjectCache(_notify_c_hook, + _getbuffer_c_hook, + obj) + ffi.ObjectRef.__init__(self, ptr) + + def _dispose(self): + self._capi.LLVMPY_DisposeObjectCache(self) + + +# ============================================================================ +# FFI + + +ffi.lib.LLVMPY_CreateMCJITCompiler.argtypes = [ + ffi.LLVMModuleRef, + ffi.LLVMTargetMachineRef, + c_bool, + POINTER(c_char_p), +] +ffi.lib.LLVMPY_CreateMCJITCompiler.restype = ffi.LLVMExecutionEngineRef + +ffi.lib.LLVMPY_RemoveModule.argtypes = [ + ffi.LLVMExecutionEngineRef, + ffi.LLVMModuleRef, + POINTER(c_char_p), +] +ffi.lib.LLVMPY_RemoveModule.restype = c_bool + +ffi.lib.LLVMPY_AddModule.argtypes = [ + ffi.LLVMExecutionEngineRef, + ffi.LLVMModuleRef +] + +ffi.lib.LLVMPY_AddGlobalMapping.argtypes = [ffi.LLVMExecutionEngineRef, + ffi.LLVMValueRef, + c_void_p] + +ffi.lib.LLVMPY_FinalizeObject.argtypes = [ffi.LLVMExecutionEngineRef] + +ffi.lib.LLVMPY_GetExecutionEngineTargetData.argtypes = [ + ffi.LLVMExecutionEngineRef +] +ffi.lib.LLVMPY_GetExecutionEngineTargetData.restype = ffi.LLVMTargetDataRef + +ffi.lib.LLVMPY_TryAllocateExecutableMemory.argtypes = [] +ffi.lib.LLVMPY_TryAllocateExecutableMemory.restype = c_int + +ffi.lib.LLVMPY_GetFunctionAddress.argtypes = [ + ffi.LLVMExecutionEngineRef, + c_char_p +] +ffi.lib.LLVMPY_GetFunctionAddress.restype = c_uint64 + +ffi.lib.LLVMPY_GetGlobalValueAddress.argtypes = [ + ffi.LLVMExecutionEngineRef, + c_char_p +] +ffi.lib.LLVMPY_GetGlobalValueAddress.restype = c_uint64 + +ffi.lib.LLVMPY_MCJITAddObjectFile.argtypes = [ + ffi.LLVMExecutionEngineRef, + ffi.LLVMObjectFileRef +] + + +class _ObjectCacheData(Structure): + _fields_ = [ + ('module_ptr', ffi.LLVMModuleRef), + ('buf_ptr', c_void_p), + ('buf_len', c_size_t), + ] + + +_ObjectCacheNotifyFunc = CFUNCTYPE(None, py_object, + POINTER(_ObjectCacheData)) +_ObjectCacheGetBufferFunc = CFUNCTYPE(None, py_object, + POINTER(_ObjectCacheData)) + +# XXX The ctypes function wrappers are created at the top-level, otherwise +# there are issues when creating CFUNCTYPEs in child processes on CentOS 5 +# 32 bits. +_notify_c_hook = _ObjectCacheNotifyFunc( + ExecutionEngine._raw_object_cache_notify) +_getbuffer_c_hook = _ObjectCacheGetBufferFunc( + ExecutionEngine._raw_object_cache_getbuffer) + +ffi.lib.LLVMPY_CreateObjectCache.argtypes = [_ObjectCacheNotifyFunc, + _ObjectCacheGetBufferFunc, + py_object] +ffi.lib.LLVMPY_CreateObjectCache.restype = ffi.LLVMObjectCacheRef + +ffi.lib.LLVMPY_DisposeObjectCache.argtypes = [ffi.LLVMObjectCacheRef] + +ffi.lib.LLVMPY_SetObjectCache.argtypes = [ffi.LLVMExecutionEngineRef, + ffi.LLVMObjectCacheRef] + +ffi.lib.LLVMPY_CreateByteString.restype = c_void_p +ffi.lib.LLVMPY_CreateByteString.argtypes = [c_void_p, c_size_t] diff --git a/shared/package-files/08/0824e40a2e60f1757e0c94f1f125c26a2111d250d97d98e672afac7da09a27ec/add_cuda_dispatch.h b/shared/package-files/08/0824e40a2e60f1757e0c94f1f125c26a2111d250d97d98e672afac7da09a27ec/add_cuda_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..ce96b40c3dc3ece19c59c1be2ea5ebaed063678e --- /dev/null +++ b/shared/package-files/08/0824e40a2e60f1757e0c94f1f125c26a2111d250d97d98e672afac7da09a27ec/add_cuda_dispatch.h @@ -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 add(const at::Tensor & self, const at::Tensor & other, const at::Scalar & alpha=1); +TORCH_API at::Tensor & add_out(at::Tensor & out, const at::Tensor & self, const at::Tensor & other, const at::Scalar & alpha=1); +TORCH_API at::Tensor & add_outf(const at::Tensor & self, const at::Tensor & other, const at::Scalar & alpha, at::Tensor & out); +TORCH_API at::Tensor & add_(at::Tensor & self, const at::Tensor & other, const at::Scalar & alpha=1); + +} // namespace cuda +} // namespace at diff --git a/shared/package-files/08/0827b1cd3d6592c4c6fd6bc6bc79faf82b9677f657a05be23469c165dfe113b6/test_mstats_extras.py b/shared/package-files/08/0827b1cd3d6592c4c6fd6bc6bc79faf82b9677f657a05be23469c165dfe113b6/test_mstats_extras.py new file mode 100644 index 0000000000000000000000000000000000000000..4b9fd0d80a6e05652c5151f5dfece2c5979dbfe5 --- /dev/null +++ b/shared/package-files/08/0827b1cd3d6592c4c6fd6bc6bc79faf82b9677f657a05be23469c165dfe113b6/test_mstats_extras.py @@ -0,0 +1,172 @@ +import numpy as np +import numpy.ma as ma +import scipy.stats.mstats as ms + +from numpy.testing import (assert_equal, assert_almost_equal, assert_, + assert_allclose) + + +def test_compare_medians_ms(): + x = np.arange(7) + y = x + 10 + assert_almost_equal(ms.compare_medians_ms(x, y), 0) + + y2 = np.linspace(0, 1, num=10) + assert_almost_equal(ms.compare_medians_ms(x, y2), 0.017116406778) + + +def test_hdmedian(): + # 1-D array + x = ma.arange(11) + assert_allclose(ms.hdmedian(x), 5, rtol=1e-14) + x.mask = ma.make_mask(x) + x.mask[:7] = False + assert_allclose(ms.hdmedian(x), 3, rtol=1e-14) + + # Check that `var` keyword returns a value. TODO: check whether returned + # value is actually correct. + assert_(ms.hdmedian(x, var=True).size == 2) + + # 2-D array + x2 = ma.arange(22).reshape((11, 2)) + assert_allclose(ms.hdmedian(x2, axis=0), [10, 11]) + x2.mask = ma.make_mask(x2) + x2.mask[:7, :] = False + assert_allclose(ms.hdmedian(x2, axis=0), [6, 7]) + + +def test_rsh(): + np.random.seed(132345) + x = np.random.randn(100) + res = ms.rsh(x) + # Just a sanity check that the code runs and output shape is correct. + # TODO: check that implementation is correct. + assert_(res.shape == x.shape) + + # Check points keyword + res = ms.rsh(x, points=[0, 1.]) + assert_(res.size == 2) + + +def test_mjci(): + # Tests the Marits-Jarrett estimator + data = ma.array([77, 87, 88,114,151,210,219,246,253,262, + 296,299,306,376,428,515,666,1310,2611]) + assert_almost_equal(ms.mjci(data),[55.76819,45.84028,198.87875],5) + + +def test_trimmed_mean_ci(): + # Tests the confidence intervals of the trimmed mean. + data = ma.array([545,555,558,572,575,576,578,580, + 594,605,635,651,653,661,666]) + assert_almost_equal(ms.trimmed_mean(data,0.2), 596.2, 1) + assert_equal(np.round(ms.trimmed_mean_ci(data,(0.2,0.2)),1), + [561.8, 630.6]) + + +def test_idealfourths(): + # Tests ideal-fourths + test = np.arange(100) + assert_almost_equal(np.asarray(ms.idealfourths(test)), + [24.416667,74.583333],6) + test_2D = test.repeat(3).reshape(-1,3) + assert_almost_equal(ms.idealfourths(test_2D, axis=0), + [[24.416667,24.416667,24.416667], + [74.583333,74.583333,74.583333]],6) + assert_almost_equal(ms.idealfourths(test_2D, axis=1), + test.repeat(2).reshape(-1,2)) + test = [0, 0] + _result = ms.idealfourths(test) + assert_(np.isnan(_result).all()) + + +class TestQuantiles: + data = [0.706560797,0.727229578,0.990399276,0.927065621,0.158953014, + 0.887764025,0.239407086,0.349638551,0.972791145,0.149789972, + 0.936947700,0.132359948,0.046041972,0.641675031,0.945530547, + 0.224218684,0.771450991,0.820257774,0.336458052,0.589113496, + 0.509736129,0.696838829,0.491323573,0.622767425,0.775189248, + 0.641461450,0.118455200,0.773029450,0.319280007,0.752229111, + 0.047841438,0.466295911,0.583850781,0.840581845,0.550086491, + 0.466470062,0.504765074,0.226855960,0.362641207,0.891620942, + 0.127898691,0.490094097,0.044882048,0.041441695,0.317976349, + 0.504135618,0.567353033,0.434617473,0.636243375,0.231803616, + 0.230154113,0.160011327,0.819464108,0.854706985,0.438809221, + 0.487427267,0.786907310,0.408367937,0.405534192,0.250444460, + 0.995309248,0.144389588,0.739947527,0.953543606,0.680051621, + 0.388382017,0.863530727,0.006514031,0.118007779,0.924024803, + 0.384236354,0.893687694,0.626534881,0.473051932,0.750134705, + 0.241843555,0.432947602,0.689538104,0.136934797,0.150206859, + 0.474335206,0.907775349,0.525869295,0.189184225,0.854284286, + 0.831089744,0.251637345,0.587038213,0.254475554,0.237781276, + 0.827928620,0.480283781,0.594514455,0.213641488,0.024194386, + 0.536668589,0.699497811,0.892804071,0.093835427,0.731107772] + + def test_hdquantiles(self): + data = self.data + assert_almost_equal(ms.hdquantiles(data,[0., 1.]), + [0.006514031, 0.995309248]) + hdq = ms.hdquantiles(data,[0.25, 0.5, 0.75]) + assert_almost_equal(hdq, [0.253210762, 0.512847491, 0.762232442,]) + + data = np.array(data).reshape(10,10) + hdq = ms.hdquantiles(data,[0.25,0.5,0.75],axis=0) + assert_almost_equal(hdq[:,0], ms.hdquantiles(data[:,0],[0.25,0.5,0.75])) + assert_almost_equal(hdq[:,-1], ms.hdquantiles(data[:,-1],[0.25,0.5,0.75])) + hdq = ms.hdquantiles(data,[0.25,0.5,0.75],axis=0,var=True) + assert_almost_equal(hdq[...,0], + ms.hdquantiles(data[:,0],[0.25,0.5,0.75],var=True)) + assert_almost_equal(hdq[...,-1], + ms.hdquantiles(data[:,-1],[0.25,0.5,0.75], var=True)) + + def test_hdquantiles_sd(self): + # Standard deviation is a jackknife estimator, so we can check if + # the efficient version (hdquantiles_sd) matches a rudimentary, + # but clear version here. + + hd_std_errs = ms.hdquantiles_sd(self.data) + + # jacknnife standard error, Introduction to the Bootstrap Eq. 11.5 + n = len(self.data) + jdata = np.broadcast_to(self.data, (n, n)) + jselector = np.logical_not(np.eye(n)) # leave out one sample each row + jdata = jdata[jselector].reshape(n, n-1) + jdist = ms.hdquantiles(jdata, axis=1) + jdist_mean = np.mean(jdist, axis=0) + jstd = ((n-1)/n * np.sum((jdist - jdist_mean)**2, axis=0))**.5 + + assert_almost_equal(hd_std_errs, jstd) + # Test actual values for good measure + assert_almost_equal(hd_std_errs, [0.0379258, 0.0380656, 0.0380013]) + + two_data_points = ms.hdquantiles_sd([1, 2]) + assert_almost_equal(two_data_points, [0.5, 0.5, 0.5]) + + def test_mquantiles_cimj(self): + # Only test that code runs, implementation not checked for correctness + ci_lower, ci_upper = ms.mquantiles_cimj(self.data) + assert_(ci_lower.size == ci_upper.size == 3) + + +def test_median_cihs(): + # Basic test against R library EnvStats function `eqnpar`, e.g. + # library(EnvStats) + # options(digits=8) + # x = c(0.88612955, 0.35242375, 0.66240904, 0.94617974, 0.10929913, + # 0.76699506, 0.88550655, 0.62763754, 0.76818588, 0.68506508, + # 0.88043148, 0.03911248, 0.93805564, 0.95326961, 0.25291112, + # 0.16128487, 0.49784577, 0.24588924, 0.6597, 0.92239679) + # eqnpar(x, p=0.5, + # ci.method = "interpolate", approx.conf.level = 0.95, ci = TRUE) + rng = np.random.default_rng(8824288259505800535) + x = rng.random(size=20) + assert_allclose(ms.median_cihs(x), (0.38663198, 0.88431272)) + + # SciPy's 90% CI upper limit doesn't match that of EnvStats eqnpar. SciPy + # doesn't look wrong, and it agrees with a different reference, + # `median_confint_hs` from `hoehleatsu/quantileCI`. + # In (e.g.) Colab with R runtime: + # devtools::install_github("hoehleatsu/quantileCI") + # library(quantileCI) + # median_confint_hs(x=x, conf.level=0.90, interpolate=TRUE) + assert_allclose(ms.median_cihs(x, 0.1), (0.48319773366, 0.88094268050)) diff --git a/shared/package-files/08/08291913035c258ae6872b8156bf782b03058c7b1b2fa98e259d9fe5a19c0115/diffgeom.py b/shared/package-files/08/08291913035c258ae6872b8156bf782b03058c7b1b2fa98e259d9fe5a19c0115/diffgeom.py new file mode 100644 index 0000000000000000000000000000000000000000..3c7c3feec9f7add1109e56901bdc9973007384cf --- /dev/null +++ b/shared/package-files/08/08291913035c258ae6872b8156bf782b03058c7b1b2fa98e259d9fe5a19c0115/diffgeom.py @@ -0,0 +1,2273 @@ +from __future__ import annotations +from typing import Any + +from functools import reduce +from itertools import permutations + +from sympy.combinatorics import Permutation +from sympy.core import ( + Basic, Expr, Function, diff, + Pow, Mul, Add, Lambda, S, Tuple, Dict +) +from sympy.core.cache import cacheit + +from sympy.core.symbol import Symbol, Dummy +from sympy.core.symbol import Str +from sympy.core.sympify import _sympify +from sympy.functions import factorial +from sympy.matrices import ImmutableDenseMatrix as Matrix +from sympy.solvers import solve + +from sympy.utilities.exceptions import (sympy_deprecation_warning, + SymPyDeprecationWarning, + ignore_warnings) + + +# TODO you are a bit excessive in the use of Dummies +# TODO dummy point, literal field +# TODO too often one needs to call doit or simplify on the output, check the +# tests and find out why +from sympy.tensor.array import ImmutableDenseNDimArray + + +class Manifold(Basic): + """ + A mathematical manifold. + + Explanation + =========== + + A manifold is a topological space that locally resembles + Euclidean space near each point [1]. + This class does not provide any means to study the topological + characteristics of the manifold that it represents, though. + + Parameters + ========== + + name : str + The name of the manifold. + + dim : int + The dimension of the manifold. + + Examples + ======== + + >>> from sympy.diffgeom import Manifold + >>> m = Manifold('M', 2) + >>> m + M + >>> m.dim + 2 + + References + ========== + + .. [1] https://en.wikipedia.org/wiki/Manifold + """ + + def __new__(cls, name, dim, **kwargs): + if not isinstance(name, Str): + name = Str(name) + dim = _sympify(dim) + obj = super().__new__(cls, name, dim) + + obj.patches = _deprecated_list( + """ + Manifold.patches is deprecated. The Manifold object is now + immutable. Instead use a separate list to keep track of the + patches. + """, []) + return obj + + @property + def name(self): + return self.args[0] + + @property + def dim(self): + return self.args[1] + + +class Patch(Basic): + """ + A patch on a manifold. + + Explanation + =========== + + Coordinate patch, or patch in short, is a simply-connected open set around + a point in the manifold [1]. On a manifold one can have many patches that + do not always include the whole manifold. On these patches coordinate + charts can be defined that permit the parameterization of any point on the + patch in terms of a tuple of real numbers (the coordinates). + + This class does not provide any means to study the topological + characteristics of the patch that it represents. + + Parameters + ========== + + name : str + The name of the patch. + + manifold : Manifold + The manifold on which the patch is defined. + + Examples + ======== + + >>> from sympy.diffgeom import Manifold, Patch + >>> m = Manifold('M', 2) + >>> p = Patch('P', m) + >>> p + P + >>> p.dim + 2 + + References + ========== + + .. [1] G. Sussman, J. Wisdom, W. Farr, Functional Differential Geometry + (2013) + + """ + def __new__(cls, name, manifold, **kwargs): + if not isinstance(name, Str): + name = Str(name) + obj = super().__new__(cls, name, manifold) + + obj.manifold.patches.append(obj) # deprecated + obj.coord_systems = _deprecated_list( + """ + Patch.coord_systms is deprecated. The Patch class is now + immutable. Instead use a separate list to keep track of coordinate + systems. + """, []) + return obj + + @property + def name(self): + return self.args[0] + + @property + def manifold(self): + return self.args[1] + + @property + def dim(self): + return self.manifold.dim + + +class CoordSystem(Basic): + """ + A coordinate system defined on the patch. + + Explanation + =========== + + Coordinate system is a system that uses one or more coordinates to uniquely + determine the position of the points or other geometric elements on a + manifold [1]. + + By passing ``Symbols`` to *symbols* parameter, user can define the name and + assumptions of coordinate symbols of the coordinate system. If not passed, + these symbols are generated automatically and are assumed to be real valued. + + By passing *relations* parameter, user can define the transform relations of + coordinate systems. Inverse transformation and indirect transformation can + be found automatically. If this parameter is not passed, coordinate + transformation cannot be done. + + Parameters + ========== + + name : str + The name of the coordinate system. + + patch : Patch + The patch where the coordinate system is defined. + + symbols : list of Symbols, optional + Defines the names and assumptions of coordinate symbols. + + relations : dict, optional + Key is a tuple of two strings, who are the names of the systems where + the coordinates transform from and transform to. + Value is a tuple of the symbols before transformation and a tuple of + the expressions after transformation. + + Examples + ======== + + We define two-dimensional Cartesian coordinate system and polar coordinate + system. + + >>> from sympy import symbols, pi, sqrt, atan2, cos, sin + >>> from sympy.diffgeom import Manifold, Patch, CoordSystem + >>> m = Manifold('M', 2) + >>> p = Patch('P', m) + >>> x, y = symbols('x y', real=True) + >>> r, theta = symbols('r theta', nonnegative=True) + >>> relation_dict = { + ... ('Car2D', 'Pol'): [(x, y), (sqrt(x**2 + y**2), atan2(y, x))], + ... ('Pol', 'Car2D'): [(r, theta), (r*cos(theta), r*sin(theta))] + ... } + >>> Car2D = CoordSystem('Car2D', p, (x, y), relation_dict) + >>> Pol = CoordSystem('Pol', p, (r, theta), relation_dict) + + ``symbols`` property returns ``CoordinateSymbol`` instances. These symbols + are not same with the symbols used to construct the coordinate system. + + >>> Car2D + Car2D + >>> Car2D.dim + 2 + >>> Car2D.symbols + (x, y) + >>> _[0].func + + + ``transformation()`` method returns the transformation function from + one coordinate system to another. ``transform()`` method returns the + transformed coordinates. + + >>> Car2D.transformation(Pol) + Lambda((x, y), Matrix([ + [sqrt(x**2 + y**2)], + [ atan2(y, x)]])) + >>> Car2D.transform(Pol) + Matrix([ + [sqrt(x**2 + y**2)], + [ atan2(y, x)]]) + >>> Car2D.transform(Pol, [1, 2]) + Matrix([ + [sqrt(5)], + [atan(2)]]) + + ``jacobian()`` method returns the Jacobian matrix of coordinate + transformation between two systems. ``jacobian_determinant()`` method + returns the Jacobian determinant of coordinate transformation between two + systems. + + >>> Pol.jacobian(Car2D) + Matrix([ + [cos(theta), -r*sin(theta)], + [sin(theta), r*cos(theta)]]) + >>> Pol.jacobian(Car2D, [1, pi/2]) + Matrix([ + [0, -1], + [1, 0]]) + >>> Car2D.jacobian_determinant(Pol) + 1/sqrt(x**2 + y**2) + >>> Car2D.jacobian_determinant(Pol, [1,0]) + 1 + + References + ========== + + .. [1] https://en.wikipedia.org/wiki/Coordinate_system + + """ + def __new__(cls, name, patch, symbols=None, relations={}, **kwargs): + if not isinstance(name, Str): + name = Str(name) + + # canonicallize the symbols + if symbols is None: + names = kwargs.get('names', None) + if names is None: + symbols = Tuple( + *[Symbol('%s_%s' % (name.name, i), real=True) + for i in range(patch.dim)] + ) + else: + sympy_deprecation_warning( + f""" +The 'names' argument to CoordSystem is deprecated. Use 'symbols' instead. That +is, replace + + CoordSystem(..., names={names}) + +with + + CoordSystem(..., symbols=[{', '.join(["Symbol(" + repr(n) + ", real=True)" for n in names])}]) + """, + deprecated_since_version="1.7", + active_deprecations_target="deprecated-diffgeom-mutable", + ) + symbols = Tuple( + *[Symbol(n, real=True) for n in names] + ) + else: + syms = [] + for s in symbols: + if isinstance(s, Symbol): + syms.append(Symbol(s.name, **s._assumptions.generator)) + elif isinstance(s, str): + sympy_deprecation_warning( + f""" + +Passing a string as the coordinate symbol name to CoordSystem is deprecated. +Pass a Symbol with the appropriate name and assumptions instead. + +That is, replace {s} with Symbol({s!r}, real=True). + """, + + deprecated_since_version="1.7", + active_deprecations_target="deprecated-diffgeom-mutable", + ) + syms.append(Symbol(s, real=True)) + symbols = Tuple(*syms) + + # canonicallize the relations + rel_temp = {} + for k,v in relations.items(): + s1, s2 = k + if not isinstance(s1, Str): + s1 = Str(s1) + if not isinstance(s2, Str): + s2 = Str(s2) + key = Tuple(s1, s2) + + # Old version used Lambda as a value. + if isinstance(v, Lambda): + v = (tuple(v.signature), tuple(v.expr)) + else: + v = (tuple(v[0]), tuple(v[1])) + rel_temp[key] = v + relations = Dict(rel_temp) + + # construct the object + obj = super().__new__(cls, name, patch, symbols, relations) + + # Add deprecated attributes + obj.transforms = _deprecated_dict( + """ + CoordSystem.transforms is deprecated. The CoordSystem class is now + immutable. Use the 'relations' keyword argument to the + CoordSystems() constructor to specify relations. + """, {}) + obj._names = [str(n) for n in symbols] + obj.patch.coord_systems.append(obj) # deprecated + obj._dummies = [Dummy(str(n)) for n in symbols] # deprecated + obj._dummy = Dummy() + + return obj + + @property + def name(self): + return self.args[0] + + @property + def patch(self): + return self.args[1] + + @property + def manifold(self): + return self.patch.manifold + + @property + def symbols(self): + return tuple(CoordinateSymbol(self, i, **s._assumptions.generator) + for i,s in enumerate(self.args[2])) + + @property + def relations(self): + return self.args[3] + + @property + def dim(self): + return self.patch.dim + + ########################################################################## + # Finding transformation relation + ########################################################################## + + def transformation(self, sys): + """ + Return coordinate transformation function from *self* to *sys*. + + Parameters + ========== + + sys : CoordSystem + + Returns + ======= + + sympy.Lambda + + Examples + ======== + + >>> from sympy.diffgeom.rn import R2_r, R2_p + >>> R2_r.transformation(R2_p) + Lambda((x, y), Matrix([ + [sqrt(x**2 + y**2)], + [ atan2(y, x)]])) + + """ + signature = self.args[2] + + key = Tuple(self.name, sys.name) + if self == sys: + expr = Matrix(self.symbols) + elif key in self.relations: + expr = Matrix(self.relations[key][1]) + elif key[::-1] in self.relations: + expr = Matrix(self._inverse_transformation(sys, self)) + else: + expr = Matrix(self._indirect_transformation(self, sys)) + return Lambda(signature, expr) + + @staticmethod + def _solve_inverse(sym1, sym2, exprs, sys1_name, sys2_name): + ret = solve( + [t[0] - t[1] for t in zip(sym2, exprs)], + list(sym1), dict=True) + + if len(ret) == 0: + temp = "Cannot solve inverse relation from {} to {}." + raise NotImplementedError(temp.format(sys1_name, sys2_name)) + elif len(ret) > 1: + temp = "Obtained multiple inverse relation from {} to {}." + raise ValueError(temp.format(sys1_name, sys2_name)) + + return ret[0] + + @classmethod + def _inverse_transformation(cls, sys1, sys2): + # Find the transformation relation from sys2 to sys1 + forward = sys1.transform(sys2) + inv_results = cls._solve_inverse(sys1.symbols, sys2.symbols, forward, + sys1.name, sys2.name) + signature = tuple(sys1.symbols) + return [inv_results[s] for s in signature] + + @classmethod + @cacheit + def _indirect_transformation(cls, sys1, sys2): + # Find the transformation relation between two indirectly connected + # coordinate systems + rel = sys1.relations + path = cls._dijkstra(sys1, sys2) + + transforms = [] + for s1, s2 in zip(path, path[1:]): + if (s1, s2) in rel: + transforms.append(rel[(s1, s2)]) + else: + sym2, inv_exprs = rel[(s2, s1)] + sym1 = tuple(Dummy() for i in sym2) + ret = cls._solve_inverse(sym2, sym1, inv_exprs, s2, s1) + ret = tuple(ret[s] for s in sym2) + transforms.append((sym1, ret)) + syms = sys1.args[2] + exprs = syms + for newsyms, newexprs in transforms: + exprs = tuple(e.subs(zip(newsyms, exprs)) for e in newexprs) + return exprs + + @staticmethod + def _dijkstra(sys1, sys2): + # Use Dijkstra algorithm to find the shortest path between two indirectly-connected + # coordinate systems + # return value is the list of the names of the systems. + relations = sys1.relations + graph = {} + for s1, s2 in relations.keys(): + if s1 not in graph: + graph[s1] = {s2} + else: + graph[s1].add(s2) + if s2 not in graph: + graph[s2] = {s1} + else: + graph[s2].add(s1) + + path_dict = {sys:[0, [], 0] for sys in graph} # minimum distance, path, times of visited + + def visit(sys): + path_dict[sys][2] = 1 + for newsys in graph[sys]: + distance = path_dict[sys][0] + 1 + if path_dict[newsys][0] >= distance or not path_dict[newsys][1]: + path_dict[newsys][0] = distance + path_dict[newsys][1] = list(path_dict[sys][1]) + path_dict[newsys][1].append(sys) + + visit(sys1.name) + + while True: + min_distance = max(path_dict.values(), key=lambda x:x[0])[0] + newsys = None + for sys, lst in path_dict.items(): + if 0 < lst[0] <= min_distance and not lst[2]: + min_distance = lst[0] + newsys = sys + if newsys is None: + break + visit(newsys) + + result = path_dict[sys2.name][1] + result.append(sys2.name) + + if result == [sys2.name]: + raise KeyError("Two coordinate systems are not connected.") + return result + + def connect_to(self, to_sys, from_coords, to_exprs, inverse=True, fill_in_gaps=False): + sympy_deprecation_warning( + """ + The CoordSystem.connect_to() method is deprecated. Instead, + generate a new instance of CoordSystem with the 'relations' + keyword argument (CoordSystem classes are now immutable). + """, + deprecated_since_version="1.7", + active_deprecations_target="deprecated-diffgeom-mutable", + ) + + from_coords, to_exprs = dummyfy(from_coords, to_exprs) + self.transforms[to_sys] = Matrix(from_coords), Matrix(to_exprs) + + if inverse: + to_sys.transforms[self] = self._inv_transf(from_coords, to_exprs) + + if fill_in_gaps: + self._fill_gaps_in_transformations() + + @staticmethod + def _inv_transf(from_coords, to_exprs): + # Will be removed when connect_to is removed + inv_from = [i.as_dummy() for i in from_coords] + inv_to = solve( + [t[0] - t[1] for t in zip(inv_from, to_exprs)], + list(from_coords), dict=True)[0] + inv_to = [inv_to[fc] for fc in from_coords] + return Matrix(inv_from), Matrix(inv_to) + + @staticmethod + def _fill_gaps_in_transformations(): + # Will be removed when connect_to is removed + raise NotImplementedError + + ########################################################################## + # Coordinate transformations + ########################################################################## + + def transform(self, sys, coordinates=None): + """ + Return the result of coordinate transformation from *self* to *sys*. + If coordinates are not given, coordinate symbols of *self* are used. + + Parameters + ========== + + sys : CoordSystem + + coordinates : Any iterable, optional. + + Returns + ======= + + sympy.ImmutableDenseMatrix containing CoordinateSymbol + + Examples + ======== + + >>> from sympy.diffgeom.rn import R2_r, R2_p + >>> R2_r.transform(R2_p) + Matrix([ + [sqrt(x**2 + y**2)], + [ atan2(y, x)]]) + >>> R2_r.transform(R2_p, [0, 1]) + Matrix([ + [ 1], + [pi/2]]) + + """ + if coordinates is None: + coordinates = self.symbols + if self != sys: + transf = self.transformation(sys) + coordinates = transf(*coordinates) + else: + coordinates = Matrix(coordinates) + return coordinates + + def coord_tuple_transform_to(self, to_sys, coords): + """Transform ``coords`` to coord system ``to_sys``.""" + sympy_deprecation_warning( + """ + The CoordSystem.coord_tuple_transform_to() method is deprecated. + Use the CoordSystem.transform() method instead. + """, + deprecated_since_version="1.7", + active_deprecations_target="deprecated-diffgeom-mutable", + ) + + coords = Matrix(coords) + if self != to_sys: + with ignore_warnings(SymPyDeprecationWarning): + transf = self.transforms[to_sys] + coords = transf[1].subs(list(zip(transf[0], coords))) + return coords + + def jacobian(self, sys, coordinates=None): + """ + Return the jacobian matrix of a transformation on given coordinates. + If coordinates are not given, coordinate symbols of *self* are used. + + Parameters + ========== + + sys : CoordSystem + + coordinates : Any iterable, optional. + + Returns + ======= + + sympy.ImmutableDenseMatrix + + Examples + ======== + + >>> from sympy.diffgeom.rn import R2_r, R2_p + >>> R2_p.jacobian(R2_r) + Matrix([ + [cos(theta), -rho*sin(theta)], + [sin(theta), rho*cos(theta)]]) + >>> R2_p.jacobian(R2_r, [1, 0]) + Matrix([ + [1, 0], + [0, 1]]) + + """ + result = self.transform(sys).jacobian(self.symbols) + if coordinates is not None: + result = result.subs(list(zip(self.symbols, coordinates))) + return result + jacobian_matrix = jacobian + + def jacobian_determinant(self, sys, coordinates=None): + """ + Return the jacobian determinant of a transformation on given + coordinates. If coordinates are not given, coordinate symbols of *self* + are used. + + Parameters + ========== + + sys : CoordSystem + + coordinates : Any iterable, optional. + + Returns + ======= + + sympy.Expr + + Examples + ======== + + >>> from sympy.diffgeom.rn import R2_r, R2_p + >>> R2_r.jacobian_determinant(R2_p) + 1/sqrt(x**2 + y**2) + >>> R2_r.jacobian_determinant(R2_p, [1, 0]) + 1 + + """ + return self.jacobian(sys, coordinates).det() + + + ########################################################################## + # Points + ########################################################################## + + def point(self, coords): + """Create a ``Point`` with coordinates given in this coord system.""" + return Point(self, coords) + + def point_to_coords(self, point): + """Calculate the coordinates of a point in this coord system.""" + return point.coords(self) + + ########################################################################## + # Base fields. + ########################################################################## + + def base_scalar(self, coord_index): + """Return ``BaseScalarField`` that takes a point and returns one of the coordinates.""" + return BaseScalarField(self, coord_index) + coord_function = base_scalar + + def base_scalars(self): + """Returns a list of all coordinate functions. + For more details see the ``base_scalar`` method of this class.""" + return [self.base_scalar(i) for i in range(self.dim)] + coord_functions = base_scalars + + def base_vector(self, coord_index): + """Return a basis vector field. + The basis vector field for this coordinate system. It is also an + operator on scalar fields.""" + return BaseVectorField(self, coord_index) + + def base_vectors(self): + """Returns a list of all base vectors. + For more details see the ``base_vector`` method of this class.""" + return [self.base_vector(i) for i in range(self.dim)] + + def base_oneform(self, coord_index): + """Return a basis 1-form field. + The basis one-form field for this coordinate system. It is also an + operator on vector fields.""" + return Differential(self.coord_function(coord_index)) + + def base_oneforms(self): + """Returns a list of all base oneforms. + For more details see the ``base_oneform`` method of this class.""" + return [self.base_oneform(i) for i in range(self.dim)] + + +class CoordinateSymbol(Symbol): + """A symbol which denotes an abstract value of i-th coordinate of + the coordinate system with given context. + + Explanation + =========== + + Each coordinates in coordinate system are represented by unique symbol, + such as x, y, z in Cartesian coordinate system. + + You may not construct this class directly. Instead, use `symbols` method + of CoordSystem. + + Parameters + ========== + + coord_sys : CoordSystem + + index : integer + + Examples + ======== + + >>> from sympy import symbols, Lambda, Matrix, sqrt, atan2, cos, sin + >>> from sympy.diffgeom import Manifold, Patch, CoordSystem + >>> m = Manifold('M', 2) + >>> p = Patch('P', m) + >>> x, y = symbols('x y', real=True) + >>> r, theta = symbols('r theta', nonnegative=True) + >>> relation_dict = { + ... ('Car2D', 'Pol'): Lambda((x, y), Matrix([sqrt(x**2 + y**2), atan2(y, x)])), + ... ('Pol', 'Car2D'): Lambda((r, theta), Matrix([r*cos(theta), r*sin(theta)])) + ... } + >>> Car2D = CoordSystem('Car2D', p, [x, y], relation_dict) + >>> Pol = CoordSystem('Pol', p, [r, theta], relation_dict) + >>> x, y = Car2D.symbols + + ``CoordinateSymbol`` contains its coordinate symbol and index. + + >>> x.name + 'x' + >>> x.coord_sys == Car2D + True + >>> x.index + 0 + >>> x.is_real + True + + You can transform ``CoordinateSymbol`` into other coordinate system using + ``rewrite()`` method. + + >>> x.rewrite(Pol) + r*cos(theta) + >>> sqrt(x**2 + y**2).rewrite(Pol).simplify() + r + + """ + def __new__(cls, coord_sys, index, **assumptions): + name = coord_sys.args[2][index].name + obj = super().__new__(cls, name, **assumptions) + obj.coord_sys = coord_sys + obj.index = index + return obj + + def __getnewargs__(self): + return (self.coord_sys, self.index) + + def _hashable_content(self): + return ( + self.coord_sys, self.index + ) + tuple(sorted(self.assumptions0.items())) + + def _eval_rewrite(self, rule, args, **hints): + if isinstance(rule, CoordSystem): + return rule.transform(self.coord_sys)[self.index] + return super()._eval_rewrite(rule, args, **hints) + + +class Point(Basic): + """Point defined in a coordinate system. + + Explanation + =========== + + Mathematically, point is defined in the manifold and does not have any coordinates + by itself. Coordinate system is what imbues the coordinates to the point by coordinate + chart. However, due to the difficulty of realizing such logic, you must supply + a coordinate system and coordinates to define a Point here. + + The usage of this object after its definition is independent of the + coordinate system that was used in order to define it, however due to + limitations in the simplification routines you can arrive at complicated + expressions if you use inappropriate coordinate systems. + + Parameters + ========== + + coord_sys : CoordSystem + + coords : list + The coordinates of the point. + + Examples + ======== + + >>> from sympy import pi + >>> from sympy.diffgeom import Point + >>> from sympy.diffgeom.rn import R2, R2_r, R2_p + >>> rho, theta = R2_p.symbols + + >>> p = Point(R2_p, [rho, 3*pi/4]) + + >>> p.manifold == R2 + True + + >>> p.coords() + Matrix([ + [ rho], + [3*pi/4]]) + >>> p.coords(R2_r) + Matrix([ + [-sqrt(2)*rho/2], + [ sqrt(2)*rho/2]]) + + """ + + def __new__(cls, coord_sys, coords, **kwargs): + coords = Matrix(coords) + obj = super().__new__(cls, coord_sys, coords) + obj._coord_sys = coord_sys + obj._coords = coords + return obj + + @property + def patch(self): + return self._coord_sys.patch + + @property + def manifold(self): + return self._coord_sys.manifold + + @property + def dim(self): + return self.manifold.dim + + def coords(self, sys=None): + """ + Coordinates of the point in given coordinate system. If coordinate system + is not passed, it returns the coordinates in the coordinate system in which + the poin was defined. + """ + if sys is None: + return self._coords + else: + return self._coord_sys.transform(sys, self._coords) + + @property + def free_symbols(self): + return self._coords.free_symbols + + +class BaseScalarField(Expr): + """Base scalar field over a manifold for a given coordinate system. + + Explanation + =========== + + A scalar field takes a point as an argument and returns a scalar. + A base scalar field of a coordinate system takes a point and returns one of + the coordinates of that point in the coordinate system in question. + + To define a scalar field you need to choose the coordinate system and the + index of the coordinate. + + The use of the scalar field after its definition is independent of the + coordinate system in which it was defined, however due to limitations in + the simplification routines you may arrive at more complicated + expression if you use unappropriate coordinate systems. + You can build complicated scalar fields by just building up SymPy + expressions containing ``BaseScalarField`` instances. + + Parameters + ========== + + coord_sys : CoordSystem + + index : integer + + Examples + ======== + + >>> from sympy import Function, pi + >>> from sympy.diffgeom import BaseScalarField + >>> from sympy.diffgeom.rn import R2_r, R2_p + >>> rho, _ = R2_p.symbols + >>> point = R2_p.point([rho, 0]) + >>> fx, fy = R2_r.base_scalars() + >>> ftheta = BaseScalarField(R2_r, 1) + + >>> fx(point) + rho + >>> fy(point) + 0 + + >>> (fx**2+fy**2).rcall(point) + rho**2 + + >>> g = Function('g') + >>> fg = g(ftheta-pi) + >>> fg.rcall(point) + g(-pi) + + """ + + is_commutative = True + + def __new__(cls, coord_sys, index, **kwargs): + index = _sympify(index) + obj = super().__new__(cls, coord_sys, index) + obj._coord_sys = coord_sys + obj._index = index + return obj + + @property + def coord_sys(self): + return self.args[0] + + @property + def index(self): + return self.args[1] + + @property + def patch(self): + return self.coord_sys.patch + + @property + def manifold(self): + return self.coord_sys.manifold + + @property + def dim(self): + return self.manifold.dim + + def __call__(self, *args): + """Evaluating the field at a point or doing nothing. + If the argument is a ``Point`` instance, the field is evaluated at that + point. The field is returned itself if the argument is any other + object. It is so in order to have working recursive calling mechanics + for all fields (check the ``__call__`` method of ``Expr``). + """ + point = args[0] + if len(args) != 1 or not isinstance(point, Point): + return self + coords = point.coords(self._coord_sys) + # XXX Calling doit is necessary with all the Subs expressions + # XXX Calling simplify is necessary with all the trig expressions + return simplify(coords[self._index]).doit() + + # XXX Workaround for limitations on the content of args + free_symbols: set[Any] = set() + + +class BaseVectorField(Expr): + r"""Base vector field over a manifold for a given coordinate system. + + Explanation + =========== + + A vector field is an operator taking a scalar field and returning a + directional derivative (which is also a scalar field). + A base vector field is the same type of operator, however the derivation is + specifically done with respect to a chosen coordinate. + + To define a base vector field you need to choose the coordinate system and + the index of the coordinate. + + The use of the vector field after its definition is independent of the + coordinate system in which it was defined, however due to limitations in the + simplification routines you may arrive at more complicated expression if you + use unappropriate coordinate systems. + + Parameters + ========== + coord_sys : CoordSystem + + index : integer + + Examples + ======== + + >>> from sympy import Function + >>> from sympy.diffgeom.rn import R2_p, R2_r + >>> from sympy.diffgeom import BaseVectorField + >>> from sympy import pprint + + >>> x, y = R2_r.symbols + >>> rho, theta = R2_p.symbols + >>> fx, fy = R2_r.base_scalars() + >>> point_p = R2_p.point([rho, theta]) + >>> point_r = R2_r.point([x, y]) + + >>> g = Function('g') + >>> s_field = g(fx, fy) + + >>> v = BaseVectorField(R2_r, 1) + >>> pprint(v(s_field)) + / d \| + |---(g(x, xi))|| + \dxi /|xi=y + >>> pprint(v(s_field).rcall(point_r).doit()) + d + --(g(x, y)) + dy + >>> pprint(v(s_field).rcall(point_p)) + / d \| + |---(g(rho*cos(theta), xi))|| + \dxi /|xi=rho*sin(theta) + + """ + + is_commutative = False + + def __new__(cls, coord_sys, index, **kwargs): + index = _sympify(index) + obj = super().__new__(cls, coord_sys, index) + obj._coord_sys = coord_sys + obj._index = index + return obj + + @property + def coord_sys(self): + return self.args[0] + + @property + def index(self): + return self.args[1] + + @property + def patch(self): + return self.coord_sys.patch + + @property + def manifold(self): + return self.coord_sys.manifold + + @property + def dim(self): + return self.manifold.dim + + def __call__(self, scalar_field): + """Apply on a scalar field. + The action of a vector field on a scalar field is a directional + differentiation. + If the argument is not a scalar field an error is raised. + """ + if covariant_order(scalar_field) or contravariant_order(scalar_field): + raise ValueError('Only scalar fields can be supplied as arguments to vector fields.') + + if scalar_field is None: + return self + + base_scalars = list(scalar_field.atoms(BaseScalarField)) + + # First step: e_x(x+r**2) -> e_x(x) + 2*r*e_x(r) + d_var = self._coord_sys._dummy + # TODO: you need a real dummy function for the next line + d_funcs = [Function('_#_%s' % i)(d_var) for i, + b in enumerate(base_scalars)] + d_result = scalar_field.subs(list(zip(base_scalars, d_funcs))) + d_result = d_result.diff(d_var) + + # Second step: e_x(x) -> 1 and e_x(r) -> cos(atan2(x, y)) + coords = self._coord_sys.symbols + d_funcs_deriv = [f.diff(d_var) for f in d_funcs] + d_funcs_deriv_sub = [] + for b in base_scalars: + jac = self._coord_sys.jacobian(b._coord_sys, coords) + d_funcs_deriv_sub.append(jac[b._index, self._index]) + d_result = d_result.subs(list(zip(d_funcs_deriv, d_funcs_deriv_sub))) + + # Remove the dummies + result = d_result.subs(list(zip(d_funcs, base_scalars))) + result = result.subs(list(zip(coords, self._coord_sys.coord_functions()))) + return result.doit() + + +def _find_coords(expr): + # Finds CoordinateSystems existing in expr + fields = expr.atoms(BaseScalarField, BaseVectorField) + result = set() + for f in fields: + result.add(f._coord_sys) + return result + + +class Commutator(Expr): + r"""Commutator of two vector fields. + + Explanation + =========== + + The commutator of two vector fields `v_1` and `v_2` is defined as the + vector field `[v_1, v_2]` that evaluated on each scalar field `f` is equal + to `v_1(v_2(f)) - v_2(v_1(f))`. + + Examples + ======== + + + >>> from sympy.diffgeom.rn import R2_p, R2_r + >>> from sympy.diffgeom import Commutator + >>> from sympy import simplify + + >>> fx, fy = R2_r.base_scalars() + >>> e_x, e_y = R2_r.base_vectors() + >>> e_r = R2_p.base_vector(0) + + >>> c_xy = Commutator(e_x, e_y) + >>> c_xr = Commutator(e_x, e_r) + >>> c_xy + 0 + + Unfortunately, the current code is not able to compute everything: + + >>> c_xr + Commutator(e_x, e_rho) + >>> simplify(c_xr(fy**2)) + -2*cos(theta)*y**2/(x**2 + y**2) + + """ + def __new__(cls, v1, v2): + if (covariant_order(v1) or contravariant_order(v1) != 1 + or covariant_order(v2) or contravariant_order(v2) != 1): + raise ValueError( + 'Only commutators of vector fields are supported.') + if v1 == v2: + return S.Zero + coord_sys = set().union(*[_find_coords(v) for v in (v1, v2)]) + if len(coord_sys) == 1: + # Only one coordinate systems is used, hence it is easy enough to + # actually evaluate the commutator. + if all(isinstance(v, BaseVectorField) for v in (v1, v2)): + return S.Zero + bases_1, bases_2 = [list(v.atoms(BaseVectorField)) + for v in (v1, v2)] + coeffs_1 = [v1.expand().coeff(b) for b in bases_1] + coeffs_2 = [v2.expand().coeff(b) for b in bases_2] + res = 0 + for c1, b1 in zip(coeffs_1, bases_1): + for c2, b2 in zip(coeffs_2, bases_2): + res += c1*b1(c2)*b2 - c2*b2(c1)*b1 + return res + else: + obj = super().__new__(cls, v1, v2) + obj._v1 = v1 # deprecated assignment + obj._v2 = v2 # deprecated assignment + return obj + + @property + def v1(self): + return self.args[0] + + @property + def v2(self): + return self.args[1] + + def __call__(self, scalar_field): + """Apply on a scalar field. + If the argument is not a scalar field an error is raised. + """ + return self.v1(self.v2(scalar_field)) - self.v2(self.v1(scalar_field)) + + +class Differential(Expr): + r"""Return the differential (exterior derivative) of a form field. + + Explanation + =========== + + The differential of a form (i.e. the exterior derivative) has a complicated + definition in the general case. + The differential `df` of the 0-form `f` is defined for any vector field `v` + as `df(v) = v(f)`. + + Examples + ======== + + >>> from sympy import Function + >>> from sympy.diffgeom.rn import R2_r + >>> from sympy.diffgeom import Differential + >>> from sympy import pprint + + >>> fx, fy = R2_r.base_scalars() + >>> e_x, e_y = R2_r.base_vectors() + >>> g = Function('g') + >>> s_field = g(fx, fy) + >>> dg = Differential(s_field) + + >>> dg + d(g(x, y)) + >>> pprint(dg(e_x)) + / d \| + |---(g(xi, y))|| + \dxi /|xi=x + >>> pprint(dg(e_y)) + / d \| + |---(g(x, xi))|| + \dxi /|xi=y + + Applying the exterior derivative operator twice always results in: + + >>> Differential(dg) + 0 + """ + + is_commutative = False + + def __new__(cls, form_field): + if contravariant_order(form_field): + raise ValueError( + 'A vector field was supplied as an argument to Differential.') + if isinstance(form_field, Differential): + return S.Zero + else: + obj = super().__new__(cls, form_field) + obj._form_field = form_field # deprecated assignment + return obj + + @property + def form_field(self): + return self.args[0] + + def __call__(self, *vector_fields): + """Apply on a list of vector_fields. + + Explanation + =========== + + If the number of vector fields supplied is not equal to 1 + the order of + the form field inside the differential the result is undefined. + + For 1-forms (i.e. differentials of scalar fields) the evaluation is + done as `df(v)=v(f)`. However if `v` is ``None`` instead of a vector + field, the differential is returned unchanged. This is done in order to + permit partial contractions for higher forms. + + In the general case the evaluation is done by applying the form field + inside the differential on a list with one less elements than the number + of elements in the original list. Lowering the number of vector fields + is achieved through replacing each pair of fields by their + commutator. + + If the arguments are not vectors or ``None``s an error is raised. + """ + if any((contravariant_order(a) != 1 or covariant_order(a)) and a is not None + for a in vector_fields): + raise ValueError('The arguments supplied to Differential should be vector fields or Nones.') + k = len(vector_fields) + if k == 1: + if vector_fields[0]: + return vector_fields[0].rcall(self._form_field) + return self + else: + # For higher form it is more complicated: + # Invariant formula: + # https://en.wikipedia.org/wiki/Exterior_derivative#Invariant_formula + # df(v1, ... vn) = +/- vi(f(v1..no i..vn)) + # +/- f([vi,vj],v1..no i, no j..vn) + f = self._form_field + v = vector_fields + ret = 0 + for i in range(k): + t = v[i].rcall(f.rcall(*v[:i] + v[i + 1:])) + ret += (-1)**i*t + for j in range(i + 1, k): + c = Commutator(v[i], v[j]) + if c: # TODO this is ugly - the Commutator can be Zero and + # this causes the next line to fail + t = f.rcall(*(c,) + v[:i] + v[i + 1:j] + v[j + 1:]) + ret += (-1)**(i + j)*t + return ret + + +class TensorProduct(Expr): + """Tensor product of forms. + + Explanation + =========== + + The tensor product permits the creation of multilinear functionals (i.e. + higher order tensors) out of lower order fields (e.g. 1-forms and vector + fields). However, the higher tensors thus created lack the interesting + features provided by the other type of product, the wedge product, namely + they are not antisymmetric and hence are not form fields. + + Examples + ======== + + >>> from sympy.diffgeom.rn import R2_r + >>> from sympy.diffgeom import TensorProduct + + >>> fx, fy = R2_r.base_scalars() + >>> e_x, e_y = R2_r.base_vectors() + >>> dx, dy = R2_r.base_oneforms() + + >>> TensorProduct(dx, dy)(e_x, e_y) + 1 + >>> TensorProduct(dx, dy)(e_y, e_x) + 0 + >>> TensorProduct(dx, fx*dy)(fx*e_x, e_y) + x**2 + >>> TensorProduct(e_x, e_y)(fx**2, fy**2) + 4*x*y + >>> TensorProduct(e_y, dx)(fy) + dx + + You can nest tensor products. + + >>> tp1 = TensorProduct(dx, dy) + >>> TensorProduct(tp1, dx)(e_x, e_y, e_x) + 1 + + You can make partial contraction for instance when 'raising an index'. + Putting ``None`` in the second argument of ``rcall`` means that the + respective position in the tensor product is left as it is. + + >>> TP = TensorProduct + >>> metric = TP(dx, dx) + 3*TP(dy, dy) + >>> metric.rcall(e_y, None) + 3*dy + + Or automatically pad the args with ``None`` without specifying them. + + >>> metric.rcall(e_y) + 3*dy + + """ + def __new__(cls, *args): + scalar = Mul(*[m for m in args if covariant_order(m) + contravariant_order(m) == 0]) + multifields = [m for m in args if covariant_order(m) + contravariant_order(m)] + if multifields: + if len(multifields) == 1: + return scalar*multifields[0] + return scalar*super().__new__(cls, *multifields) + else: + return scalar + + def __call__(self, *fields): + """Apply on a list of fields. + + If the number of input fields supplied is not equal to the order of + the tensor product field, the list of arguments is padded with ``None``'s. + + The list of arguments is divided in sublists depending on the order of + the forms inside the tensor product. The sublists are provided as + arguments to these forms and the resulting expressions are given to the + constructor of ``TensorProduct``. + + """ + tot_order = covariant_order(self) + contravariant_order(self) + tot_args = len(fields) + if tot_args != tot_order: + fields = list(fields) + [None]*(tot_order - tot_args) + orders = [covariant_order(f) + contravariant_order(f) for f in self._args] + indices = [sum(orders[:i + 1]) for i in range(len(orders) - 1)] + fields = [fields[i:j] for i, j in zip([0] + indices, indices + [None])] + multipliers = [t[0].rcall(*t[1]) for t in zip(self._args, fields)] + return TensorProduct(*multipliers) + + +class WedgeProduct(TensorProduct): + """Wedge product of forms. + + Explanation + =========== + + In the context of integration only completely antisymmetric forms make + sense. The wedge product permits the creation of such forms. + + Examples + ======== + + >>> from sympy.diffgeom.rn import R2_r + >>> from sympy.diffgeom import WedgeProduct + + >>> fx, fy = R2_r.base_scalars() + >>> e_x, e_y = R2_r.base_vectors() + >>> dx, dy = R2_r.base_oneforms() + + >>> WedgeProduct(dx, dy)(e_x, e_y) + 1 + >>> WedgeProduct(dx, dy)(e_y, e_x) + -1 + >>> WedgeProduct(dx, fx*dy)(fx*e_x, e_y) + x**2 + >>> WedgeProduct(e_x, e_y)(fy, None) + -e_x + + You can nest wedge products. + + >>> wp1 = WedgeProduct(dx, dy) + >>> WedgeProduct(wp1, dx)(e_x, e_y, e_x) + 0 + + """ + # TODO the calculation of signatures is slow + # TODO you do not need all these permutations (neither the prefactor) + def __call__(self, *fields): + """Apply on a list of vector_fields. + The expression is rewritten internally in terms of tensor products and evaluated.""" + orders = (covariant_order(e) + contravariant_order(e) for e in self.args) + mul = 1/Mul(*(factorial(o) for o in orders)) + perms = permutations(fields) + perms_par = (Permutation( + p).signature() for p in permutations(range(len(fields)))) + tensor_prod = TensorProduct(*self.args) + return mul*Add(*[tensor_prod(*p[0])*p[1] for p in zip(perms, perms_par)]) + + +class LieDerivative(Expr): + """Lie derivative with respect to a vector field. + + Explanation + =========== + + The transport operator that defines the Lie derivative is the pushforward of + the field to be derived along the integral curve of the field with respect + to which one derives. + + Examples + ======== + + >>> from sympy.diffgeom.rn import R2_r, R2_p + >>> from sympy.diffgeom import (LieDerivative, TensorProduct) + + >>> fx, fy = R2_r.base_scalars() + >>> e_x, e_y = R2_r.base_vectors() + >>> e_rho, e_theta = R2_p.base_vectors() + >>> dx, dy = R2_r.base_oneforms() + + >>> LieDerivative(e_x, fy) + 0 + >>> LieDerivative(e_x, fx) + 1 + >>> LieDerivative(e_x, e_x) + 0 + + The Lie derivative of a tensor field by another tensor field is equal to + their commutator: + + >>> LieDerivative(e_x, e_rho) + Commutator(e_x, e_rho) + >>> LieDerivative(e_x + e_y, fx) + 1 + + >>> tp = TensorProduct(dx, dy) + >>> LieDerivative(e_x, tp) + LieDerivative(e_x, TensorProduct(dx, dy)) + >>> LieDerivative(e_x, tp) + LieDerivative(e_x, TensorProduct(dx, dy)) + + """ + def __new__(cls, v_field, expr): + expr_form_ord = covariant_order(expr) + if contravariant_order(v_field) != 1 or covariant_order(v_field): + raise ValueError('Lie derivatives are defined only with respect to' + ' vector fields. The supplied argument was not a ' + 'vector field.') + if expr_form_ord > 0: + obj = super().__new__(cls, v_field, expr) + # deprecated assignments + obj._v_field = v_field + obj._expr = expr + return obj + if expr.atoms(BaseVectorField): + return Commutator(v_field, expr) + else: + return v_field.rcall(expr) + + @property + def v_field(self): + return self.args[0] + + @property + def expr(self): + return self.args[1] + + def __call__(self, *args): + v = self.v_field + expr = self.expr + lead_term = v(expr(*args)) + rest = Add(*[Mul(*args[:i] + (Commutator(v, args[i]),) + args[i + 1:]) + for i in range(len(args))]) + return lead_term - rest + + +class BaseCovarDerivativeOp(Expr): + """Covariant derivative operator with respect to a base vector. + + Examples + ======== + + >>> from sympy.diffgeom.rn import R2_r + >>> from sympy.diffgeom import BaseCovarDerivativeOp + >>> from sympy.diffgeom import metric_to_Christoffel_2nd, TensorProduct + + >>> TP = TensorProduct + >>> fx, fy = R2_r.base_scalars() + >>> e_x, e_y = R2_r.base_vectors() + >>> dx, dy = R2_r.base_oneforms() + + >>> ch = metric_to_Christoffel_2nd(TP(dx, dx) + TP(dy, dy)) + >>> ch + [[[0, 0], [0, 0]], [[0, 0], [0, 0]]] + >>> cvd = BaseCovarDerivativeOp(R2_r, 0, ch) + >>> cvd(fx) + 1 + >>> cvd(fx*e_x) + e_x + """ + + def __new__(cls, coord_sys, index, christoffel): + index = _sympify(index) + christoffel = ImmutableDenseNDimArray(christoffel) + obj = super().__new__(cls, coord_sys, index, christoffel) + # deprecated assignments + obj._coord_sys = coord_sys + obj._index = index + obj._christoffel = christoffel + return obj + + @property + def coord_sys(self): + return self.args[0] + + @property + def index(self): + return self.args[1] + + @property + def christoffel(self): + return self.args[2] + + def __call__(self, field): + """Apply on a scalar field. + + The action of a vector field on a scalar field is a directional + differentiation. + If the argument is not a scalar field the behaviour is undefined. + """ + if covariant_order(field) != 0: + raise NotImplementedError() + + field = vectors_in_basis(field, self._coord_sys) + + wrt_vector = self._coord_sys.base_vector(self._index) + wrt_scalar = self._coord_sys.coord_function(self._index) + vectors = list(field.atoms(BaseVectorField)) + + # First step: replace all vectors with something susceptible to + # derivation and do the derivation + # TODO: you need a real dummy function for the next line + d_funcs = [Function('_#_%s' % i)(wrt_scalar) for i, + b in enumerate(vectors)] + d_result = field.subs(list(zip(vectors, d_funcs))) + d_result = wrt_vector(d_result) + + # Second step: backsubstitute the vectors in + d_result = d_result.subs(list(zip(d_funcs, vectors))) + + # Third step: evaluate the derivatives of the vectors + derivs = [] + for v in vectors: + d = Add(*[(self._christoffel[k, wrt_vector._index, v._index] + *v._coord_sys.base_vector(k)) + for k in range(v._coord_sys.dim)]) + derivs.append(d) + to_subs = [wrt_vector(d) for d in d_funcs] + # XXX: This substitution can fail when there are Dummy symbols and the + # cache is disabled: https://github.com/sympy/sympy/issues/17794 + result = d_result.subs(list(zip(to_subs, derivs))) + + # Remove the dummies + result = result.subs(list(zip(d_funcs, vectors))) + return result.doit() + + +class CovarDerivativeOp(Expr): + """Covariant derivative operator. + + Examples + ======== + + >>> from sympy.diffgeom.rn import R2_r + >>> from sympy.diffgeom import CovarDerivativeOp + >>> from sympy.diffgeom import metric_to_Christoffel_2nd, TensorProduct + >>> TP = TensorProduct + >>> fx, fy = R2_r.base_scalars() + >>> e_x, e_y = R2_r.base_vectors() + >>> dx, dy = R2_r.base_oneforms() + >>> ch = metric_to_Christoffel_2nd(TP(dx, dx) + TP(dy, dy)) + + >>> ch + [[[0, 0], [0, 0]], [[0, 0], [0, 0]]] + >>> cvd = CovarDerivativeOp(fx*e_x, ch) + >>> cvd(fx) + x + >>> cvd(fx*e_x) + x*e_x + + """ + + def __new__(cls, wrt, christoffel): + if len({v._coord_sys for v in wrt.atoms(BaseVectorField)}) > 1: + raise NotImplementedError() + if contravariant_order(wrt) != 1 or covariant_order(wrt): + raise ValueError('Covariant derivatives are defined only with ' + 'respect to vector fields. The supplied argument ' + 'was not a vector field.') + christoffel = ImmutableDenseNDimArray(christoffel) + obj = super().__new__(cls, wrt, christoffel) + # deprecated assignments + obj._wrt = wrt + obj._christoffel = christoffel + return obj + + @property + def wrt(self): + return self.args[0] + + @property + def christoffel(self): + return self.args[1] + + def __call__(self, field): + vectors = list(self._wrt.atoms(BaseVectorField)) + base_ops = [BaseCovarDerivativeOp(v._coord_sys, v._index, self._christoffel) + for v in vectors] + return self._wrt.subs(list(zip(vectors, base_ops))).rcall(field) + + +############################################################################### +# Integral curves on vector fields +############################################################################### +def intcurve_series(vector_field, param, start_point, n=6, coord_sys=None, coeffs=False): + r"""Return the series expansion for an integral curve of the field. + + Explanation + =========== + + Integral curve is a function `\gamma` taking a parameter in `R` to a point + in the manifold. It verifies the equation: + + `V(f)\big(\gamma(t)\big) = \frac{d}{dt}f\big(\gamma(t)\big)` + + where the given ``vector_field`` is denoted as `V`. This holds for any + value `t` for the parameter and any scalar field `f`. + + This equation can also be decomposed of a basis of coordinate functions + `V(f_i)\big(\gamma(t)\big) = \frac{d}{dt}f_i\big(\gamma(t)\big) \quad \forall i` + + This function returns a series expansion of `\gamma(t)` in terms of the + coordinate system ``coord_sys``. The equations and expansions are necessarily + done in coordinate-system-dependent way as there is no other way to + represent movement between points on the manifold (i.e. there is no such + thing as a difference of points for a general manifold). + + Parameters + ========== + vector_field + the vector field for which an integral curve will be given + + param + the argument of the function `\gamma` from R to the curve + + start_point + the point which corresponds to `\gamma(0)` + + n + the order to which to expand + + coord_sys + the coordinate system in which to expand + coeffs (default False) - if True return a list of elements of the expansion + + Examples + ======== + + Use the predefined R2 manifold: + + >>> from sympy.abc import t, x, y + >>> from sympy.diffgeom.rn import R2_p, R2_r + >>> from sympy.diffgeom import intcurve_series + + Specify a starting point and a vector field: + + >>> start_point = R2_r.point([x, y]) + >>> vector_field = R2_r.e_x + + Calculate the series: + + >>> intcurve_series(vector_field, t, start_point, n=3) + Matrix([ + [t + x], + [ y]]) + + Or get the elements of the expansion in a list: + + >>> series = intcurve_series(vector_field, t, start_point, n=3, coeffs=True) + >>> series[0] + Matrix([ + [x], + [y]]) + >>> series[1] + Matrix([ + [t], + [0]]) + >>> series[2] + Matrix([ + [0], + [0]]) + + The series in the polar coordinate system: + + >>> series = intcurve_series(vector_field, t, start_point, + ... n=3, coord_sys=R2_p, coeffs=True) + >>> series[0] + Matrix([ + [sqrt(x**2 + y**2)], + [ atan2(y, x)]]) + >>> series[1] + Matrix([ + [t*x/sqrt(x**2 + y**2)], + [ -t*y/(x**2 + y**2)]]) + >>> series[2] + Matrix([ + [t**2*(-x**2/(x**2 + y**2)**(3/2) + 1/sqrt(x**2 + y**2))/2], + [ t**2*x*y/(x**2 + y**2)**2]]) + + See Also + ======== + + intcurve_diffequ + + """ + if contravariant_order(vector_field) != 1 or covariant_order(vector_field): + raise ValueError('The supplied field was not a vector field.') + + def iter_vfield(scalar_field, i): + """Return ``vector_field`` called `i` times on ``scalar_field``.""" + return reduce(lambda s, v: v.rcall(s), [vector_field, ]*i, scalar_field) + + def taylor_terms_per_coord(coord_function): + """Return the series for one of the coordinates.""" + return [param**i*iter_vfield(coord_function, i).rcall(start_point)/factorial(i) + for i in range(n)] + coord_sys = coord_sys if coord_sys else start_point._coord_sys + coord_functions = coord_sys.coord_functions() + taylor_terms = [taylor_terms_per_coord(f) for f in coord_functions] + if coeffs: + return [Matrix(t) for t in zip(*taylor_terms)] + else: + return Matrix([sum(c) for c in taylor_terms]) + + +def intcurve_diffequ(vector_field, param, start_point, coord_sys=None): + r"""Return the differential equation for an integral curve of the field. + + Explanation + =========== + + Integral curve is a function `\gamma` taking a parameter in `R` to a point + in the manifold. It verifies the equation: + + `V(f)\big(\gamma(t)\big) = \frac{d}{dt}f\big(\gamma(t)\big)` + + where the given ``vector_field`` is denoted as `V`. This holds for any + value `t` for the parameter and any scalar field `f`. + + This function returns the differential equation of `\gamma(t)` in terms of the + coordinate system ``coord_sys``. The equations and expansions are necessarily + done in coordinate-system-dependent way as there is no other way to + represent movement between points on the manifold (i.e. there is no such + thing as a difference of points for a general manifold). + + Parameters + ========== + + vector_field + the vector field for which an integral curve will be given + + param + the argument of the function `\gamma` from R to the curve + + start_point + the point which corresponds to `\gamma(0)` + + coord_sys + the coordinate system in which to give the equations + + Returns + ======= + + a tuple of (equations, initial conditions) + + Examples + ======== + + Use the predefined R2 manifold: + + >>> from sympy.abc import t + >>> from sympy.diffgeom.rn import R2, R2_p, R2_r + >>> from sympy.diffgeom import intcurve_diffequ + + Specify a starting point and a vector field: + + >>> start_point = R2_r.point([0, 1]) + >>> vector_field = -R2.y*R2.e_x + R2.x*R2.e_y + + Get the equation: + + >>> equations, init_cond = intcurve_diffequ(vector_field, t, start_point) + >>> equations + [f_1(t) + Derivative(f_0(t), t), -f_0(t) + Derivative(f_1(t), t)] + >>> init_cond + [f_0(0), f_1(0) - 1] + + The series in the polar coordinate system: + + >>> equations, init_cond = intcurve_diffequ(vector_field, t, start_point, R2_p) + >>> equations + [Derivative(f_0(t), t), Derivative(f_1(t), t) - 1] + >>> init_cond + [f_0(0) - 1, f_1(0) - pi/2] + + See Also + ======== + + intcurve_series + + """ + if contravariant_order(vector_field) != 1 or covariant_order(vector_field): + raise ValueError('The supplied field was not a vector field.') + coord_sys = coord_sys if coord_sys else start_point._coord_sys + gammas = [Function('f_%d' % i)(param) for i in range( + start_point._coord_sys.dim)] + arbitrary_p = Point(coord_sys, gammas) + coord_functions = coord_sys.coord_functions() + equations = [simplify(diff(cf.rcall(arbitrary_p), param) - vector_field.rcall(cf).rcall(arbitrary_p)) + for cf in coord_functions] + init_cond = [simplify(cf.rcall(arbitrary_p).subs(param, 0) - cf.rcall(start_point)) + for cf in coord_functions] + return equations, init_cond + + +############################################################################### +# Helpers +############################################################################### +def dummyfy(args, exprs): + # TODO Is this a good idea? + d_args = Matrix([s.as_dummy() for s in args]) + reps = dict(zip(args, d_args)) + d_exprs = Matrix([_sympify(expr).subs(reps) for expr in exprs]) + return d_args, d_exprs + +############################################################################### +# Helpers +############################################################################### +def contravariant_order(expr, _strict=False): + """Return the contravariant order of an expression. + + Examples + ======== + + >>> from sympy.diffgeom import contravariant_order + >>> from sympy.diffgeom.rn import R2 + >>> from sympy.abc import a + + >>> contravariant_order(a) + 0 + >>> contravariant_order(a*R2.x + 2) + 0 + >>> contravariant_order(a*R2.x*R2.e_y + R2.e_x) + 1 + + """ + # TODO move some of this to class methods. + # TODO rewrite using the .as_blah_blah methods + if isinstance(expr, Add): + orders = [contravariant_order(e) for e in expr.args] + if len(set(orders)) != 1: + raise ValueError('Misformed expression containing contravariant fields of varying order.') + return orders[0] + elif isinstance(expr, Mul): + orders = [contravariant_order(e) for e in expr.args] + not_zero = [o for o in orders if o != 0] + if len(not_zero) > 1: + raise ValueError('Misformed expression containing multiplication between vectors.') + return 0 if not not_zero else not_zero[0] + elif isinstance(expr, Pow): + if covariant_order(expr.base) or covariant_order(expr.exp): + raise ValueError( + 'Misformed expression containing a power of a vector.') + return 0 + elif isinstance(expr, BaseVectorField): + return 1 + elif isinstance(expr, TensorProduct): + return sum(contravariant_order(a) for a in expr.args) + elif not _strict or expr.atoms(BaseScalarField): + return 0 + else: # If it does not contain anything related to the diffgeom module and it is _strict + return -1 + + +def covariant_order(expr, _strict=False): + """Return the covariant order of an expression. + + Examples + ======== + + >>> from sympy.diffgeom import covariant_order + >>> from sympy.diffgeom.rn import R2 + >>> from sympy.abc import a + + >>> covariant_order(a) + 0 + >>> covariant_order(a*R2.x + 2) + 0 + >>> covariant_order(a*R2.x*R2.dy + R2.dx) + 1 + + """ + # TODO move some of this to class methods. + # TODO rewrite using the .as_blah_blah methods + if isinstance(expr, Add): + orders = [covariant_order(e) for e in expr.args] + if len(set(orders)) != 1: + raise ValueError('Misformed expression containing form fields of varying order.') + return orders[0] + elif isinstance(expr, Mul): + orders = [covariant_order(e) for e in expr.args] + not_zero = [o for o in orders if o != 0] + if len(not_zero) > 1: + raise ValueError('Misformed expression containing multiplication between forms.') + return 0 if not not_zero else not_zero[0] + elif isinstance(expr, Pow): + if covariant_order(expr.base) or covariant_order(expr.exp): + raise ValueError( + 'Misformed expression containing a power of a form.') + return 0 + elif isinstance(expr, Differential): + return covariant_order(*expr.args) + 1 + elif isinstance(expr, TensorProduct): + return sum(covariant_order(a) for a in expr.args) + elif not _strict or expr.atoms(BaseScalarField): + return 0 + else: # If it does not contain anything related to the diffgeom module and it is _strict + return -1 + + +############################################################################### +# Coordinate transformation functions +############################################################################### +def vectors_in_basis(expr, to_sys): + """Transform all base vectors in base vectors of a specified coord basis. + While the new base vectors are in the new coordinate system basis, any + coefficients are kept in the old system. + + Examples + ======== + + >>> from sympy.diffgeom import vectors_in_basis + >>> from sympy.diffgeom.rn import R2_r, R2_p + + >>> vectors_in_basis(R2_r.e_x, R2_p) + -y*e_theta/(x**2 + y**2) + x*e_rho/sqrt(x**2 + y**2) + >>> vectors_in_basis(R2_p.e_r, R2_r) + sin(theta)*e_y + cos(theta)*e_x + + """ + vectors = list(expr.atoms(BaseVectorField)) + new_vectors = [] + for v in vectors: + cs = v._coord_sys + jac = cs.jacobian(to_sys, cs.coord_functions()) + new = (jac.T*Matrix(to_sys.base_vectors()))[v._index] + new_vectors.append(new) + return expr.subs(list(zip(vectors, new_vectors))) + + +############################################################################### +# Coordinate-dependent functions +############################################################################### +def twoform_to_matrix(expr): + """Return the matrix representing the twoform. + + For the twoform `w` return the matrix `M` such that `M[i,j]=w(e_i, e_j)`, + where `e_i` is the i-th base vector field for the coordinate system in + which the expression of `w` is given. + + Examples + ======== + + >>> from sympy.diffgeom.rn import R2 + >>> from sympy.diffgeom import twoform_to_matrix, TensorProduct + >>> TP = TensorProduct + + >>> twoform_to_matrix(TP(R2.dx, R2.dx) + TP(R2.dy, R2.dy)) + Matrix([ + [1, 0], + [0, 1]]) + >>> twoform_to_matrix(R2.x*TP(R2.dx, R2.dx) + TP(R2.dy, R2.dy)) + Matrix([ + [x, 0], + [0, 1]]) + >>> twoform_to_matrix(TP(R2.dx, R2.dx) + TP(R2.dy, R2.dy) - TP(R2.dx, R2.dy)/2) + Matrix([ + [ 1, 0], + [-1/2, 1]]) + + """ + if covariant_order(expr) != 2 or contravariant_order(expr): + raise ValueError('The input expression is not a two-form.') + coord_sys = _find_coords(expr) + if len(coord_sys) != 1: + raise ValueError('The input expression concerns more than one ' + 'coordinate systems, hence there is no unambiguous ' + 'way to choose a coordinate system for the matrix.') + coord_sys = coord_sys.pop() + vectors = coord_sys.base_vectors() + expr = expr.expand() + matrix_content = [[expr.rcall(v1, v2) for v1 in vectors] + for v2 in vectors] + return Matrix(matrix_content) + + +def metric_to_Christoffel_1st(expr): + """Return the nested list of Christoffel symbols for the given metric. + This returns the Christoffel symbol of first kind that represents the + Levi-Civita connection for the given metric. + + Examples + ======== + + >>> from sympy.diffgeom.rn import R2 + >>> from sympy.diffgeom import metric_to_Christoffel_1st, TensorProduct + >>> TP = TensorProduct + + >>> metric_to_Christoffel_1st(TP(R2.dx, R2.dx) + TP(R2.dy, R2.dy)) + [[[0, 0], [0, 0]], [[0, 0], [0, 0]]] + >>> metric_to_Christoffel_1st(R2.x*TP(R2.dx, R2.dx) + TP(R2.dy, R2.dy)) + [[[1/2, 0], [0, 0]], [[0, 0], [0, 0]]] + + """ + matrix = twoform_to_matrix(expr) + if not matrix.is_symmetric(): + raise ValueError( + 'The two-form representing the metric is not symmetric.') + coord_sys = _find_coords(expr).pop() + deriv_matrices = [matrix.applyfunc(d) for d in coord_sys.base_vectors()] + indices = list(range(coord_sys.dim)) + christoffel = [[[(deriv_matrices[k][i, j] + deriv_matrices[j][i, k] - deriv_matrices[i][j, k])/2 + for k in indices] + for j in indices] + for i in indices] + return ImmutableDenseNDimArray(christoffel) + + +def metric_to_Christoffel_2nd(expr): + """Return the nested list of Christoffel symbols for the given metric. + This returns the Christoffel symbol of second kind that represents the + Levi-Civita connection for the given metric. + + Examples + ======== + + >>> from sympy.diffgeom.rn import R2 + >>> from sympy.diffgeom import metric_to_Christoffel_2nd, TensorProduct + >>> TP = TensorProduct + + >>> metric_to_Christoffel_2nd(TP(R2.dx, R2.dx) + TP(R2.dy, R2.dy)) + [[[0, 0], [0, 0]], [[0, 0], [0, 0]]] + >>> metric_to_Christoffel_2nd(R2.x*TP(R2.dx, R2.dx) + TP(R2.dy, R2.dy)) + [[[1/(2*x), 0], [0, 0]], [[0, 0], [0, 0]]] + + """ + ch_1st = metric_to_Christoffel_1st(expr) + coord_sys = _find_coords(expr).pop() + indices = list(range(coord_sys.dim)) + # XXX workaround, inverting a matrix does not work if it contains non + # symbols + #matrix = twoform_to_matrix(expr).inv() + matrix = twoform_to_matrix(expr) + s_fields = set() + for e in matrix: + s_fields.update(e.atoms(BaseScalarField)) + s_fields = list(s_fields) + dums = coord_sys.symbols + matrix = matrix.subs(list(zip(s_fields, dums))).inv().subs(list(zip(dums, s_fields))) + # XXX end of workaround + christoffel = [[[Add(*[matrix[i, l]*ch_1st[l, j, k] for l in indices]) + for k in indices] + for j in indices] + for i in indices] + return ImmutableDenseNDimArray(christoffel) + + +def metric_to_Riemann_components(expr): + """Return the components of the Riemann tensor expressed in a given basis. + + Given a metric it calculates the components of the Riemann tensor in the + canonical basis of the coordinate system in which the metric expression is + given. + + Examples + ======== + + >>> from sympy import exp + >>> from sympy.diffgeom.rn import R2 + >>> from sympy.diffgeom import metric_to_Riemann_components, TensorProduct + >>> TP = TensorProduct + + >>> metric_to_Riemann_components(TP(R2.dx, R2.dx) + TP(R2.dy, R2.dy)) + [[[[0, 0], [0, 0]], [[0, 0], [0, 0]]], [[[0, 0], [0, 0]], [[0, 0], [0, 0]]]] + >>> non_trivial_metric = exp(2*R2.r)*TP(R2.dr, R2.dr) + \ + R2.r**2*TP(R2.dtheta, R2.dtheta) + >>> non_trivial_metric + exp(2*rho)*TensorProduct(drho, drho) + rho**2*TensorProduct(dtheta, dtheta) + >>> riemann = metric_to_Riemann_components(non_trivial_metric) + >>> riemann[0, :, :, :] + [[[0, 0], [0, 0]], [[0, exp(-2*rho)*rho], [-exp(-2*rho)*rho, 0]]] + >>> riemann[1, :, :, :] + [[[0, -1/rho], [1/rho, 0]], [[0, 0], [0, 0]]] + + """ + ch_2nd = metric_to_Christoffel_2nd(expr) + coord_sys = _find_coords(expr).pop() + indices = list(range(coord_sys.dim)) + deriv_ch = [[[[d(ch_2nd[i, j, k]) + for d in coord_sys.base_vectors()] + for k in indices] + for j in indices] + for i in indices] + riemann_a = [[[[deriv_ch[rho][sig][nu][mu] - deriv_ch[rho][sig][mu][nu] + for nu in indices] + for mu in indices] + for sig in indices] + for rho in indices] + riemann_b = [[[[Add(*[ch_2nd[rho, l, mu]*ch_2nd[l, sig, nu] - ch_2nd[rho, l, nu]*ch_2nd[l, sig, mu] for l in indices]) + for nu in indices] + for mu in indices] + for sig in indices] + for rho in indices] + riemann = [[[[riemann_a[rho][sig][mu][nu] + riemann_b[rho][sig][mu][nu] + for nu in indices] + for mu in indices] + for sig in indices] + for rho in indices] + return ImmutableDenseNDimArray(riemann) + + +def metric_to_Ricci_components(expr): + + """Return the components of the Ricci tensor expressed in a given basis. + + Given a metric it calculates the components of the Ricci tensor in the + canonical basis of the coordinate system in which the metric expression is + given. + + Examples + ======== + + >>> from sympy import exp + >>> from sympy.diffgeom.rn import R2 + >>> from sympy.diffgeom import metric_to_Ricci_components, TensorProduct + >>> TP = TensorProduct + + >>> metric_to_Ricci_components(TP(R2.dx, R2.dx) + TP(R2.dy, R2.dy)) + [[0, 0], [0, 0]] + >>> non_trivial_metric = exp(2*R2.r)*TP(R2.dr, R2.dr) + \ + R2.r**2*TP(R2.dtheta, R2.dtheta) + >>> non_trivial_metric + exp(2*rho)*TensorProduct(drho, drho) + rho**2*TensorProduct(dtheta, dtheta) + >>> metric_to_Ricci_components(non_trivial_metric) + [[1/rho, 0], [0, exp(-2*rho)*rho]] + + """ + riemann = metric_to_Riemann_components(expr) + coord_sys = _find_coords(expr).pop() + indices = list(range(coord_sys.dim)) + ricci = [[Add(*[riemann[k, i, k, j] for k in indices]) + for j in indices] + for i in indices] + return ImmutableDenseNDimArray(ricci) + +############################################################################### +# Classes for deprecation +############################################################################### + +class _deprecated_container: + # This class gives deprecation warning. + # When deprecated features are completely deleted, this should be removed as well. + # See https://github.com/sympy/sympy/pull/19368 + def __init__(self, message, data): + super().__init__(data) + self.message = message + + def warn(self): + sympy_deprecation_warning( + self.message, + deprecated_since_version="1.7", + active_deprecations_target="deprecated-diffgeom-mutable", + stacklevel=4 + ) + + def __iter__(self): + self.warn() + return super().__iter__() + + def __getitem__(self, key): + self.warn() + return super().__getitem__(key) + + def __contains__(self, key): + self.warn() + return super().__contains__(key) + + +class _deprecated_list(_deprecated_container, list): + pass + + +class _deprecated_dict(_deprecated_container, dict): + pass + + +# Import at end to avoid cyclic imports +from sympy.simplify.simplify import simplify diff --git a/shared/package-files/08/0831778a6e88c5d63732ee9fc114269121019974b79105489d0e29957b285fd7/_datasource.py b/shared/package-files/08/0831778a6e88c5d63732ee9fc114269121019974b79105489d0e29957b285fd7/_datasource.py new file mode 100644 index 0000000000000000000000000000000000000000..613733fa51675360caf33fd97b0b038c6fb6dfa2 --- /dev/null +++ b/shared/package-files/08/0831778a6e88c5d63732ee9fc114269121019974b79105489d0e29957b285fd7/_datasource.py @@ -0,0 +1,704 @@ +"""A file interface for handling local and remote data files. + +The goal of datasource is to abstract some of the file system operations +when dealing with data files so the researcher doesn't have to know all the +low-level details. Through datasource, a researcher can obtain and use a +file with one function call, regardless of location of the file. + +DataSource is meant to augment standard python libraries, not replace them. +It should work seamlessly with standard file IO operations and the os +module. + +DataSource files can originate locally or remotely: + +- local files : '/home/guido/src/local/data.txt' +- URLs (http, ftp, ...) : 'http://www.scipy.org/not/real/data.txt' + +DataSource files can also be compressed or uncompressed. Currently only +gzip, bz2 and xz are supported. + +Example:: + + >>> # Create a DataSource, use os.curdir (default) for local storage. + >>> from numpy import DataSource + >>> ds = DataSource() + >>> + >>> # Open a remote file. + >>> # DataSource downloads the file, stores it locally in: + >>> # './www.google.com/index.html' + >>> # opens the file and returns a file object. + >>> fp = ds.open('http://www.google.com/') # doctest: +SKIP + >>> + >>> # Use the file as you normally would + >>> fp.read() # doctest: +SKIP + >>> fp.close() # doctest: +SKIP + +""" +import os +import io + +from .._utils import set_module + + +_open = open + + +def _check_mode(mode, encoding, newline): + """Check mode and that encoding and newline are compatible. + + Parameters + ---------- + mode : str + File open mode. + encoding : str + File encoding. + newline : str + Newline for text files. + + """ + if "t" in mode: + if "b" in mode: + raise ValueError("Invalid mode: %r" % (mode,)) + else: + if encoding is not None: + raise ValueError("Argument 'encoding' not supported in binary mode") + if newline is not None: + raise ValueError("Argument 'newline' not supported in binary mode") + + +# Using a class instead of a module-level dictionary +# to reduce the initial 'import numpy' overhead by +# deferring the import of lzma, bz2 and gzip until needed + +# TODO: .zip support, .tar support? +class _FileOpeners: + """ + Container for different methods to open (un-)compressed files. + + `_FileOpeners` contains a dictionary that holds one method for each + supported file format. Attribute lookup is implemented in such a way + that an instance of `_FileOpeners` itself can be indexed with the keys + of that dictionary. Currently uncompressed files as well as files + compressed with ``gzip``, ``bz2`` or ``xz`` compression are supported. + + Notes + ----- + `_file_openers`, an instance of `_FileOpeners`, is made available for + use in the `_datasource` module. + + Examples + -------- + >>> import gzip + >>> np.lib._datasource._file_openers.keys() + [None, '.bz2', '.gz', '.xz', '.lzma'] + >>> np.lib._datasource._file_openers['.gz'] is gzip.open + True + + """ + + def __init__(self): + self._loaded = False + self._file_openers = {None: io.open} + + def _load(self): + if self._loaded: + return + + try: + import bz2 + self._file_openers[".bz2"] = bz2.open + except ImportError: + pass + + try: + import gzip + self._file_openers[".gz"] = gzip.open + except ImportError: + pass + + try: + import lzma + self._file_openers[".xz"] = lzma.open + self._file_openers[".lzma"] = lzma.open + except (ImportError, AttributeError): + # There are incompatible backports of lzma that do not have the + # lzma.open attribute, so catch that as well as ImportError. + pass + + self._loaded = True + + def keys(self): + """ + Return the keys of currently supported file openers. + + Parameters + ---------- + None + + Returns + ------- + keys : list + The keys are None for uncompressed files and the file extension + strings (i.e. ``'.gz'``, ``'.xz'``) for supported compression + methods. + + """ + self._load() + return list(self._file_openers.keys()) + + def __getitem__(self, key): + self._load() + return self._file_openers[key] + +_file_openers = _FileOpeners() + +def open(path, mode='r', destpath=os.curdir, encoding=None, newline=None): + """ + Open `path` with `mode` and return the file object. + + If ``path`` is an URL, it will be downloaded, stored in the + `DataSource` `destpath` directory and opened from there. + + Parameters + ---------- + path : str + Local file path or URL to open. + mode : str, optional + Mode to open `path`. Mode 'r' for reading, 'w' for writing, 'a' to + append. Available modes depend on the type of object specified by + path. Default is 'r'. + destpath : str, optional + Path to the directory where the source file gets downloaded to for + use. If `destpath` is None, a temporary directory will be created. + The default path is the current directory. + encoding : {None, str}, optional + Open text file with given encoding. The default encoding will be + what `io.open` uses. + newline : {None, str}, optional + Newline to use when reading text file. + + Returns + ------- + out : file object + The opened file. + + Notes + ----- + This is a convenience function that instantiates a `DataSource` and + returns the file object from ``DataSource.open(path)``. + + """ + + ds = DataSource(destpath) + return ds.open(path, mode, encoding=encoding, newline=newline) + + +@set_module('numpy') +class DataSource: + """ + DataSource(destpath='.') + + A generic data source file (file, http, ftp, ...). + + DataSources can be local files or remote files/URLs. The files may + also be compressed or uncompressed. DataSource hides some of the + low-level details of downloading the file, allowing you to simply pass + in a valid file path (or URL) and obtain a file object. + + Parameters + ---------- + destpath : str or None, optional + Path to the directory where the source file gets downloaded to for + use. If `destpath` is None, a temporary directory will be created. + The default path is the current directory. + + Notes + ----- + URLs require a scheme string (``http://``) to be used, without it they + will fail:: + + >>> repos = np.DataSource() + >>> repos.exists('www.google.com/index.html') + False + >>> repos.exists('http://www.google.com/index.html') + True + + Temporary directories are deleted when the DataSource is deleted. + + Examples + -------- + :: + + >>> ds = np.DataSource('/home/guido') + >>> urlname = 'http://www.google.com/' + >>> gfile = ds.open('http://www.google.com/') + >>> ds.abspath(urlname) + '/home/guido/www.google.com/index.html' + + >>> ds = np.DataSource(None) # use with temporary file + >>> ds.open('/home/guido/foobar.txt') + + >>> ds.abspath('/home/guido/foobar.txt') + '/tmp/.../home/guido/foobar.txt' + + """ + + def __init__(self, destpath=os.curdir): + """Create a DataSource with a local path at destpath.""" + if destpath: + self._destpath = os.path.abspath(destpath) + self._istmpdest = False + else: + import tempfile # deferring import to improve startup time + self._destpath = tempfile.mkdtemp() + self._istmpdest = True + + def __del__(self): + # Remove temp directories + if hasattr(self, '_istmpdest') and self._istmpdest: + import shutil + + shutil.rmtree(self._destpath) + + def _iszip(self, filename): + """Test if the filename is a zip file by looking at the file extension. + + """ + fname, ext = os.path.splitext(filename) + return ext in _file_openers.keys() + + def _iswritemode(self, mode): + """Test if the given mode will open a file for writing.""" + + # Currently only used to test the bz2 files. + _writemodes = ("w", "+") + for c in mode: + if c in _writemodes: + return True + return False + + def _splitzipext(self, filename): + """Split zip extension from filename and return filename. + + Returns + ------- + base, zip_ext : {tuple} + + """ + + if self._iszip(filename): + return os.path.splitext(filename) + else: + return filename, None + + def _possible_names(self, filename): + """Return a tuple containing compressed filename variations.""" + names = [filename] + if not self._iszip(filename): + for zipext in _file_openers.keys(): + if zipext: + names.append(filename+zipext) + return names + + def _isurl(self, path): + """Test if path is a net location. Tests the scheme and netloc.""" + + # We do this here to reduce the 'import numpy' initial import time. + from urllib.parse import urlparse + + # BUG : URLs require a scheme string ('http://') to be used. + # www.google.com will fail. + # Should we prepend the scheme for those that don't have it and + # test that also? Similar to the way we append .gz and test for + # for compressed versions of files. + + scheme, netloc, upath, uparams, uquery, ufrag = urlparse(path) + return bool(scheme and netloc) + + def _cache(self, path): + """Cache the file specified by path. + + Creates a copy of the file in the datasource cache. + + """ + # We import these here because importing them is slow and + # a significant fraction of numpy's total import time. + import shutil + from urllib.request import urlopen + + upath = self.abspath(path) + + # ensure directory exists + if not os.path.exists(os.path.dirname(upath)): + os.makedirs(os.path.dirname(upath)) + + # TODO: Doesn't handle compressed files! + if self._isurl(path): + with urlopen(path) as openedurl: + with _open(upath, 'wb') as f: + shutil.copyfileobj(openedurl, f) + else: + shutil.copyfile(path, upath) + return upath + + def _findfile(self, path): + """Searches for ``path`` and returns full path if found. + + If path is an URL, _findfile will cache a local copy and return the + path to the cached file. If path is a local file, _findfile will + return a path to that local file. + + The search will include possible compressed versions of the file + and return the first occurrence found. + + """ + + # Build list of possible local file paths + if not self._isurl(path): + # Valid local paths + filelist = self._possible_names(path) + # Paths in self._destpath + filelist += self._possible_names(self.abspath(path)) + else: + # Cached URLs in self._destpath + filelist = self._possible_names(self.abspath(path)) + # Remote URLs + filelist = filelist + self._possible_names(path) + + for name in filelist: + if self.exists(name): + if self._isurl(name): + name = self._cache(name) + return name + return None + + def abspath(self, path): + """ + Return absolute path of file in the DataSource directory. + + If `path` is an URL, then `abspath` will return either the location + the file exists locally or the location it would exist when opened + using the `open` method. + + Parameters + ---------- + path : str + Can be a local file or a remote URL. + + Returns + ------- + out : str + Complete path, including the `DataSource` destination directory. + + Notes + ----- + The functionality is based on `os.path.abspath`. + + """ + # We do this here to reduce the 'import numpy' initial import time. + from urllib.parse import urlparse + + # TODO: This should be more robust. Handles case where path includes + # the destpath, but not other sub-paths. Failing case: + # path = /home/guido/datafile.txt + # destpath = /home/alex/ + # upath = self.abspath(path) + # upath == '/home/alex/home/guido/datafile.txt' + + # handle case where path includes self._destpath + splitpath = path.split(self._destpath, 2) + if len(splitpath) > 1: + path = splitpath[1] + scheme, netloc, upath, uparams, uquery, ufrag = urlparse(path) + netloc = self._sanitize_relative_path(netloc) + upath = self._sanitize_relative_path(upath) + return os.path.join(self._destpath, netloc, upath) + + def _sanitize_relative_path(self, path): + """Return a sanitised relative path for which + os.path.abspath(os.path.join(base, path)).startswith(base) + """ + last = None + path = os.path.normpath(path) + while path != last: + last = path + # Note: os.path.join treats '/' as os.sep on Windows + path = path.lstrip(os.sep).lstrip('/') + path = path.lstrip(os.pardir).lstrip('..') + drive, path = os.path.splitdrive(path) # for Windows + return path + + def exists(self, path): + """ + Test if path exists. + + Test if `path` exists as (and in this order): + + - a local file. + - a remote URL that has been downloaded and stored locally in the + `DataSource` directory. + - a remote URL that has not been downloaded, but is valid and + accessible. + + Parameters + ---------- + path : str + Can be a local file or a remote URL. + + Returns + ------- + out : bool + True if `path` exists. + + Notes + ----- + When `path` is an URL, `exists` will return True if it's either + stored locally in the `DataSource` directory, or is a valid remote + URL. `DataSource` does not discriminate between the two, the file + is accessible if it exists in either location. + + """ + + # First test for local path + if os.path.exists(path): + return True + + # We import this here because importing urllib is slow and + # a significant fraction of numpy's total import time. + from urllib.request import urlopen + from urllib.error import URLError + + # Test cached url + upath = self.abspath(path) + if os.path.exists(upath): + return True + + # Test remote url + if self._isurl(path): + try: + netfile = urlopen(path) + netfile.close() + del(netfile) + return True + except URLError: + return False + return False + + def open(self, path, mode='r', encoding=None, newline=None): + """ + Open and return file-like object. + + If `path` is an URL, it will be downloaded, stored in the + `DataSource` directory and opened from there. + + Parameters + ---------- + path : str + Local file path or URL to open. + mode : {'r', 'w', 'a'}, optional + Mode to open `path`. Mode 'r' for reading, 'w' for writing, + 'a' to append. Available modes depend on the type of object + specified by `path`. Default is 'r'. + encoding : {None, str}, optional + Open text file with given encoding. The default encoding will be + what `io.open` uses. + newline : {None, str}, optional + Newline to use when reading text file. + + Returns + ------- + out : file object + File object. + + """ + + # TODO: There is no support for opening a file for writing which + # doesn't exist yet (creating a file). Should there be? + + # TODO: Add a ``subdir`` parameter for specifying the subdirectory + # used to store URLs in self._destpath. + + if self._isurl(path) and self._iswritemode(mode): + raise ValueError("URLs are not writeable") + + # NOTE: _findfile will fail on a new file opened for writing. + found = self._findfile(path) + if found: + _fname, ext = self._splitzipext(found) + if ext == 'bz2': + mode.replace("+", "") + return _file_openers[ext](found, mode=mode, + encoding=encoding, newline=newline) + else: + raise FileNotFoundError(f"{path} not found.") + + +class Repository (DataSource): + """ + Repository(baseurl, destpath='.') + + A data repository where multiple DataSource's share a base + URL/directory. + + `Repository` extends `DataSource` by prepending a base URL (or + directory) to all the files it handles. Use `Repository` when you will + be working with multiple files from one base URL. Initialize + `Repository` with the base URL, then refer to each file by its filename + only. + + Parameters + ---------- + baseurl : str + Path to the local directory or remote location that contains the + data files. + destpath : str or None, optional + Path to the directory where the source file gets downloaded to for + use. If `destpath` is None, a temporary directory will be created. + The default path is the current directory. + + Examples + -------- + To analyze all files in the repository, do something like this + (note: this is not self-contained code):: + + >>> repos = np.lib._datasource.Repository('/home/user/data/dir/') + >>> for filename in filelist: + ... fp = repos.open(filename) + ... fp.analyze() + ... fp.close() + + Similarly you could use a URL for a repository:: + + >>> repos = np.lib._datasource.Repository('http://www.xyz.edu/data') + + """ + + def __init__(self, baseurl, destpath=os.curdir): + """Create a Repository with a shared url or directory of baseurl.""" + DataSource.__init__(self, destpath=destpath) + self._baseurl = baseurl + + def __del__(self): + DataSource.__del__(self) + + def _fullpath(self, path): + """Return complete path for path. Prepends baseurl if necessary.""" + splitpath = path.split(self._baseurl, 2) + if len(splitpath) == 1: + result = os.path.join(self._baseurl, path) + else: + result = path # path contains baseurl already + return result + + def _findfile(self, path): + """Extend DataSource method to prepend baseurl to ``path``.""" + return DataSource._findfile(self, self._fullpath(path)) + + def abspath(self, path): + """ + Return absolute path of file in the Repository directory. + + If `path` is an URL, then `abspath` will return either the location + the file exists locally or the location it would exist when opened + using the `open` method. + + Parameters + ---------- + path : str + Can be a local file or a remote URL. This may, but does not + have to, include the `baseurl` with which the `Repository` was + initialized. + + Returns + ------- + out : str + Complete path, including the `DataSource` destination directory. + + """ + return DataSource.abspath(self, self._fullpath(path)) + + def exists(self, path): + """ + Test if path exists prepending Repository base URL to path. + + Test if `path` exists as (and in this order): + + - a local file. + - a remote URL that has been downloaded and stored locally in the + `DataSource` directory. + - a remote URL that has not been downloaded, but is valid and + accessible. + + Parameters + ---------- + path : str + Can be a local file or a remote URL. This may, but does not + have to, include the `baseurl` with which the `Repository` was + initialized. + + Returns + ------- + out : bool + True if `path` exists. + + Notes + ----- + When `path` is an URL, `exists` will return True if it's either + stored locally in the `DataSource` directory, or is a valid remote + URL. `DataSource` does not discriminate between the two, the file + is accessible if it exists in either location. + + """ + return DataSource.exists(self, self._fullpath(path)) + + def open(self, path, mode='r', encoding=None, newline=None): + """ + Open and return file-like object prepending Repository base URL. + + If `path` is an URL, it will be downloaded, stored in the + DataSource directory and opened from there. + + Parameters + ---------- + path : str + Local file path or URL to open. This may, but does not have to, + include the `baseurl` with which the `Repository` was + initialized. + mode : {'r', 'w', 'a'}, optional + Mode to open `path`. Mode 'r' for reading, 'w' for writing, + 'a' to append. Available modes depend on the type of object + specified by `path`. Default is 'r'. + encoding : {None, str}, optional + Open text file with given encoding. The default encoding will be + what `io.open` uses. + newline : {None, str}, optional + Newline to use when reading text file. + + Returns + ------- + out : file object + File object. + + """ + return DataSource.open(self, self._fullpath(path), mode, + encoding=encoding, newline=newline) + + def listdir(self): + """ + List files in the source Repository. + + Returns + ------- + files : list of str + List of file names (not containing a directory part). + + Notes + ----- + Does not currently work for remote repositories. + + """ + if self._isurl(self._baseurl): + raise NotImplementedError( + "Directory listing of URLs, not supported yet.") + else: + return os.listdir(self._baseurl) diff --git a/shared/package-files/08/08343747764e4a5814262793cf4d652057a7913863c5950d43297e8e1fdac5b6/content b/shared/package-files/08/08343747764e4a5814262793cf4d652057a7913863c5950d43297e8e1fdac5b6/content new file mode 100644 index 0000000000000000000000000000000000000000..2f6e056a9ac2399582eaf05985a26acf9161f213 --- /dev/null +++ b/shared/package-files/08/08343747764e4a5814262793cf4d652057a7913863c5950d43297e8e1fdac5b6/content @@ -0,0 +1,17 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://json-schema.org/draft/2020-12/meta/content", + "$vocabulary": { + "https://json-schema.org/draft/2020-12/vocab/content": true + }, + "$dynamicAnchor": "meta", + + "title": "Content vocabulary meta-schema", + + "type": ["object", "boolean"], + "properties": { + "contentEncoding": { "type": "string" }, + "contentMediaType": { "type": "string" }, + "contentSchema": { "$dynamicRef": "#meta" } + } +} diff --git a/shared/package-files/08/08356ef929f04501b2ccaa77effb8f1f36c200703c6a68952f2b86813558c723/__init__.py b/shared/package-files/08/08356ef929f04501b2ccaa77effb8f1f36c200703c6a68952f2b86813558c723/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..3ed1b42cbe1582f3b974ccbb1befc90637ba18e0 --- /dev/null +++ b/shared/package-files/08/08356ef929f04501b2ccaa77effb8f1f36c200703c6a68952f2b86813558c723/__init__.py @@ -0,0 +1,4 @@ +import torch +if torch.distributed.rpc.is_available(): + from .api.remote_module import RemoteModule +from .functional import * # noqa: F403 diff --git a/shared/package-files/08/08358a652ec2a49cb967f8a7aaee8b2cf0d5a67856a2e216864ef0e3e335c0c3/test_numpy_generators.py b/shared/package-files/08/08358a652ec2a49cb967f8a7aaee8b2cf0d5a67856a2e216864ef0e3e335c0c3/test_numpy_generators.py new file mode 100644 index 0000000000000000000000000000000000000000..e10266d07e03f4a38a969c20da7fe923742f0086 --- /dev/null +++ b/shared/package-files/08/08358a652ec2a49cb967f8a7aaee8b2cf0d5a67856a2e216864ef0e3e335c0c3/test_numpy_generators.py @@ -0,0 +1,38 @@ +# "magictoken" is used for markers as beginning and ending of example text. + +import unittest +import numpy as np +import numba + + +class NumpyGeneratorUsageTest(unittest.TestCase): + + def test_numpy_gen_usage(self): + # magictoken.npgen_usage.begin + x = np.random.default_rng(1) + y = np.random.default_rng(1) + + size = 10 + + @numba.njit + def do_stuff(gen): + return gen.random(size=int(size / 2)) + + original = x.random(size=size) + # [0.51182162 0.9504637 0.14415961 0.94864945 0.31183145 + # 0.42332645 0.82770259 0.40919914 0.54959369 0.02755911] + + numba_func_res = do_stuff(y) + # [0.51182162 0.9504637 0.14415961 0.94864945 0.31183145] + + after_numba = y.random(size=int(size / 2)) + # [0.42332645 0.82770259 0.40919914 0.54959369 0.02755911] + + # magictoken.npgen_usage.end + numba_res = np.concatenate((numba_func_res, after_numba)) + for _np_res, _nb_res in zip(original, numba_res): + self.assertEqual(_np_res, _nb_res) + + +if __name__ == '__main__': + unittest.main() diff --git a/shared/package-files/08/083853b6609e1e609b4a6ed178271ec92f73d841a2bdf6ecfe905b34be04ebb2/istft.h b/shared/package-files/08/083853b6609e1e609b4a6ed178271ec92f73d841a2bdf6ecfe905b34be04ebb2/istft.h new file mode 100644 index 0000000000000000000000000000000000000000..97744e4cd48ac0f5494c2c197f01d4663d407519 --- /dev/null +++ b/shared/package-files/08/083853b6609e1e609b4a6ed178271ec92f73d841a2bdf6ecfe905b34be04ebb2/istft.h @@ -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::istft(Tensor self, int n_fft, int? hop_length=None, int? win_length=None, Tensor? window=None, bool center=True, bool normalized=False, bool? onesided=None, int? length=None, bool return_complex=False) -> Tensor +inline at::Tensor istft(const at::Tensor & self, int64_t n_fft, c10::optional hop_length=c10::nullopt, c10::optional win_length=c10::nullopt, const c10::optional & window={}, bool center=true, bool normalized=false, c10::optional onesided=c10::nullopt, c10::optional length=c10::nullopt, bool return_complex=false) { + return at::_ops::istft::call(self, n_fft, hop_length, win_length, window, center, normalized, onesided, length, return_complex); +} + +} diff --git a/shared/package-files/08/083afd847ede83d6e66eb74533613f08ea57e1e3fc22418ea5a41e38d025c9bb/__init__.py b/shared/package-files/08/083afd847ede83d6e66eb74533613f08ea57e1e3fc22418ea5a41e38d025c9bb/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..1701f1eee08e03b36b45d231d4563ec4a41e91bd --- /dev/null +++ b/shared/package-files/08/083afd847ede83d6e66eb74533613f08ea57e1e3fc22418ea5a41e38d025c9bb/__init__.py @@ -0,0 +1,7 @@ +from .base_data_sparsifier import BaseDataSparsifier +from .data_norm_sparsifier import DataNormSparsifier + +__all__ = [ + "BaseDataSparsifier", + "DataNormSparsifier", +] diff --git a/shared/package-files/08/083e8c7f3213c8279ab0b5010c25f3265c911ca7489c234cd04ed01a6017fc56/topk_cuda_dispatch.h b/shared/package-files/08/083e8c7f3213c8279ab0b5010c25f3265c911ca7489c234cd04ed01a6017fc56/topk_cuda_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..3b4c4f5d5e18220c58c72d8c5b8947d0a9022c8d --- /dev/null +++ b/shared/package-files/08/083e8c7f3213c8279ab0b5010c25f3265c911ca7489c234cd04ed01a6017fc56/topk_cuda_dispatch.h @@ -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 ::std::tuple topk(const at::Tensor & self, int64_t k, int64_t dim=-1, bool largest=true, bool sorted=true); +TORCH_API ::std::tuple topk_symint(const at::Tensor & self, c10::SymInt k, int64_t dim=-1, bool largest=true, bool sorted=true); +TORCH_API ::std::tuple topk_out(at::Tensor & values, at::Tensor & indices, const at::Tensor & self, int64_t k, int64_t dim=-1, bool largest=true, bool sorted=true); +TORCH_API ::std::tuple topk_outf(const at::Tensor & self, int64_t k, int64_t dim, bool largest, bool sorted, at::Tensor & values, at::Tensor & indices); +TORCH_API ::std::tuple topk_symint_out(at::Tensor & values, at::Tensor & indices, const at::Tensor & self, c10::SymInt k, int64_t dim=-1, bool largest=true, bool sorted=true); +TORCH_API ::std::tuple topk_symint_outf(const at::Tensor & self, c10::SymInt k, int64_t dim, bool largest, bool sorted, at::Tensor & values, at::Tensor & indices); + +} // namespace cuda +} // namespace at diff --git a/shared/package-files/08/0841783816f8f9bc8425953ff5e25b67b58d59231b24eedda06037c95c0d0eee/torchbind.py b/shared/package-files/08/0841783816f8f9bc8425953ff5e25b67b58d59231b24eedda06037c95c0d0eee/torchbind.py new file mode 100644 index 0000000000000000000000000000000000000000..6ca866ee3d8b99dbd4b73b9790845eff995b23e9 --- /dev/null +++ b/shared/package-files/08/0841783816f8f9bc8425953ff5e25b67b58d59231b24eedda06037c95c0d0eee/torchbind.py @@ -0,0 +1,94 @@ +from contextlib import contextmanager + +import torch +from torch._C import DispatchKey # @manual +from torch._functorch._aot_autograd.utils import KNOWN_TYPES +from torch._higher_order_ops.utils import autograd_not_implemented +from torch._ops import HigherOrderOperator +from torch._subclasses.fake_tensor import FakeTensorMode +from torch.fx.experimental.proxy_tensor import ProxyTorchDispatchMode, track_tensor_tree +from torch.fx.node import has_side_effect +from torch.utils import _pytree as pytree + +# The call_torchbind operator represents a method invocation on a torchbind +# object. The calling convention is: +# call_torchbind(self: ScriptObject, method_name: str, *method_args, **method_kwargs) +# We do not expect users to write this operator directly. Instead it will be +# emitted by Dynamo when tracing encounters a torchbind object. +call_torchbind = HigherOrderOperator("call_torchbind") + +# Register this operator as side-effectful with FX. +# TODO: this is not really sufficient. While passes (hopefully) check +# Node.is_impure() and make good decisions, we also assume we can execute the +# graph as many times as we want without changing behavior, which is NOT true of +# ops that mutate torchbind object state. +has_side_effect(call_torchbind) + +_orig_scriptmethod_call = torch.ScriptMethod.__call__ + + +def torchbind_method_redispatch(self, *args, **kwargs): + if isinstance(self.raw_owner, torch.ScriptObject): + return call_torchbind(self.raw_owner, self.name, *args, **kwargs) + return _orig_scriptmethod_call(self, *args, **kwargs) + + +@contextmanager +def enable_torchbind_tracing(): + """Context manager that acts as a feature flag to enable torchbind tracing + behavior. Once torchbind tracing has been stabilized, we can remove this and + turn it always on. + """ + try: + KNOWN_TYPES.append(torch.ScriptObject) + torch.ScriptMethod.__call__ = torchbind_method_redispatch # type: ignore[method-assign] + yield + finally: + assert ( + KNOWN_TYPES.pop() is torch.ScriptObject + ), "Someone else messed with KNOWN_TYPES during tracing, exploding." + torch.ScriptMethod.__call__ = _orig_scriptmethod_call # type: ignore[method-assign] + + +@call_torchbind.py_impl(DispatchKey.CompositeExplicitAutograd) +def call_torchbind_impl(obj, method, *args, **kwargs): + return _orig_scriptmethod_call(getattr(obj, method), *args, **kwargs) + + +@call_torchbind.py_impl(ProxyTorchDispatchMode) +def inner(mode, *args, **kwargs): + if mode.enable_tracing: + proxy_args = pytree.tree_map(mode.tracer.unwrap_proxy, args) + proxy_kwargs = pytree.tree_map(mode.tracer.unwrap_proxy, kwargs) + + out_proxy = mode.tracer.create_proxy( + "call_function", + call_torchbind, + proxy_args, + proxy_kwargs, + ) + out = call_torchbind_impl(*args, **kwargs) + + return track_tensor_tree(out, out_proxy, constant=None, tracer=mode.tracer) + else: + return call_torchbind(*args, **kwargs) + + +# TODO: currently we just run the C++ implementation with fake tensors. +# But we should make it possible to register a fake torchbind implementation. +@call_torchbind.py_impl(FakeTensorMode) +def call_torchbind_fake(mode, *args, **kwargs): + with mode: + return call_torchbind_impl(*args, **kwargs) + + +call_torchbind.py_impl(DispatchKey.Autograd)( + autograd_not_implemented(call_torchbind, deferred_error=True) +) + + +@call_torchbind.py_functionalize_impl +def call_torchbind_func(ctx, *args, **kwargs): + args = ctx.unwrap_tensors(args) + with ctx.redispatch_to_next(): + return ctx.wrap_tensors(call_torchbind(*args, **kwargs)) diff --git a/shared/package-files/08/0847db444a04894a6cb0c849c235498b49c8eb1ec6647e28c51abc1ff26e42bd/_kalman_smoother.pxd b/shared/package-files/08/0847db444a04894a6cb0c849c235498b49c8eb1ec6647e28c51abc1ff26e42bd/_kalman_smoother.pxd new file mode 100644 index 0000000000000000000000000000000000000000..19d57f9b58a9c6cfd4a5e5328cb9419b0976f340 --- /dev/null +++ b/shared/package-files/08/0847db444a04894a6cb0c849c235498b49c8eb1ec6647e28c51abc1ff26e42bd/_kalman_smoother.pxd @@ -0,0 +1,491 @@ +#cython: boundscheck=False +#cython: wraparound=False +#cython: cdivision=False +""" +State Space Model Smoother declarations + +Author: Chad Fulton +License: Simplified-BSD +""" + +cdef int SMOOTHER_STATE # Durbin and Koopman (2012), Chapter 4.4.2 +cdef int SMOOTHER_STATE_COV # Durbin and Koopman (2012), Chapter 4.4.3 +cdef int SMOOTHER_DISTURBANCE # Durbin and Koopman (2012), Chapter 4.5 +cdef int SMOOTHER_DISTURBANCE_COV # Durbin and Koopman (2012), Chapter 4.5 +cdef int SMOOTHER_STATE_AUTOCOV # Durbin and Koopman (2012), Chapter 4.7 +cdef int SMOOTHER_ALL + +cdef int SMOOTH_CONVENTIONAL +cdef int SMOOTH_CLASSICAL +cdef int SMOOTH_ALTERNATIVE +cdef int SMOOTH_UNIVARIATE + +# Typical imports + +cimport numpy as np + +from statsmodels.tsa.statespace._kalman_filter cimport ( + cKalmanFilter, + dKalmanFilter, + sKalmanFilter, + zKalmanFilter, +) +from statsmodels.tsa.statespace._representation cimport ( + cStatespace, + dStatespace, + sStatespace, + zStatespace, +) + + +# Single precision +cdef class sKalmanSmoother(object): + # Statespace object + cdef readonly sStatespace model + # Kalman filter + cdef readonly sKalmanFilter kfilter + + cdef readonly int t + cdef readonly int smoother_output + cdef readonly int smooth_method + cdef readonly int _smooth_method + cdef readonly int filter_method + + cdef readonly np.float32_t [::1,:] scaled_smoothed_estimator + cdef readonly np.float32_t [::1,:,:] scaled_smoothed_estimator_cov + cdef readonly np.float32_t [::1,:] smoothing_error + cdef readonly np.float32_t [::1,:] smoothed_state + cdef readonly np.float32_t [::1,:,:] smoothed_state_cov + cdef readonly np.float32_t [::1,:] smoothed_measurement_disturbance + cdef readonly np.float32_t [::1,:] smoothed_state_disturbance + cdef readonly np.float32_t [::1,:,:] smoothed_measurement_disturbance_cov + cdef readonly np.float32_t [::1,:,:] smoothed_state_disturbance_cov + + cdef readonly np.float32_t [::1,:,:] smoothed_state_autocov, innovations_transition + cdef readonly np.float32_t [::1,:] tmp_autocov + + cdef readonly np.float32_t [::1,:] scaled_smoothed_diffuse_estimator + cdef readonly np.float32_t [::1,:,:] scaled_smoothed_diffuse1_estimator_cov + cdef readonly np.float32_t [::1,:,:] scaled_smoothed_diffuse2_estimator_cov + + cdef readonly np.float32_t [:] selected_design + cdef readonly np.float32_t [:] selected_obs_cov + + cdef readonly np.float32_t [::1,:] tmpL, tmpL2, tmp0, tmp00, tmp000 + + # Statespace + # cdef np.float32_t * _design + # cdef np.float32_t * _obs_cov + # cdef np.float32_t * _transition + # cdef np.float32_t * _selection + # cdef np.float32_t * _state_cov + + # Kalman filter + # cdef np.float32_t * _predicted_state + # cdef np.float32_t * _predicted_state_cov + # cdef np.float32_t * _kalman_gain + + # cdef np.float32_t * _tmp1 + # cdef np.float32_t * _tmp2 + # cdef np.float32_t * _tmp3 + # cdef np.float32_t * _tmp4 + + # Kalman smoother + cdef np.float32_t * _input_scaled_smoothed_estimator + cdef np.float32_t * _input_scaled_smoothed_estimator_cov + + cdef np.float32_t * _scaled_smoothed_estimator + cdef np.float32_t * _scaled_smoothed_estimator_cov + cdef np.float32_t * _smoothing_error + cdef np.float32_t * _smoothed_state + cdef np.float32_t * _smoothed_state_cov + cdef np.float32_t * _smoothed_measurement_disturbance + cdef np.float32_t * _smoothed_state_disturbance + cdef np.float32_t * _smoothed_measurement_disturbance_cov + cdef np.float32_t * _smoothed_state_disturbance_cov + + cdef np.float32_t * _innovations_transition + cdef np.float32_t * _smoothed_state_autocov + cdef np.float32_t * _tmp_autocov + + cdef np.float32_t * _input_scaled_smoothed_diffuse_estimator + cdef np.float32_t * _input_scaled_smoothed_diffuse1_estimator_cov + cdef np.float32_t * _input_scaled_smoothed_diffuse2_estimator_cov + cdef np.float32_t * _scaled_smoothed_diffuse_estimator + cdef np.float32_t * _scaled_smoothed_diffuse1_estimator_cov + cdef np.float32_t * _scaled_smoothed_diffuse2_estimator_cov + + # Temporary + cdef np.float32_t * _tmpL + cdef np.float32_t * _tmpL2 + cdef np.float32_t * _tmp0 + cdef np.float32_t * _tmp00 + cdef np.float32_t * _tmp000 + + # Functions + cdef int (*smooth_estimators_measurement)( + sKalmanSmoother, sKalmanFilter, sStatespace + ) except * + cdef int (*smooth_estimators_time)( + sKalmanSmoother, sKalmanFilter, sStatespace + ) + cdef int (*smooth_state)( + sKalmanSmoother, sKalmanFilter, sStatespace + ) + cdef int (*smooth_disturbances)( + sKalmanSmoother, sKalmanFilter, sStatespace + ) + + # cdef readonly int k_endog, k_states, k_posdef, k_endog2, k_states2, k_posdef2, k_endogstates, k_statesposdef + + cdef allocate_arrays(self) + cdef int check_filter_method_changed(self) + cdef int reset_filter_method(self, int force_reset=*) + cpdef set_smoother_output(self, int smoother_output, int force_reset=*) + cpdef set_smooth_method(self, int smooth_method) + cpdef reset(self, int force_reset=*) + cpdef seek(self, unsigned int t) + cdef void initialize_statespace_object_pointers(self) except * + cdef void initialize_filter_object_pointers(self) + cdef void initialize_smoother_object_pointers(self) except * + cdef void initialize_function_pointers(self) except * + cdef void _initialize_temp_pointers(self) except * + +# Double precision +cdef class dKalmanSmoother(object): + # Statespace object + cdef readonly dStatespace model + # Kalman filter + cdef readonly dKalmanFilter kfilter + + cdef readonly int t + cdef readonly int smoother_output + cdef readonly int smooth_method + cdef readonly int _smooth_method + cdef readonly int filter_method + + cdef readonly np.float64_t [::1,:] scaled_smoothed_estimator + cdef readonly np.float64_t [::1,:,:] scaled_smoothed_estimator_cov + cdef readonly np.float64_t [::1,:] smoothing_error + cdef readonly np.float64_t [::1,:] smoothed_state + cdef readonly np.float64_t [::1,:,:] smoothed_state_cov + cdef readonly np.float64_t [::1,:] smoothed_measurement_disturbance + cdef readonly np.float64_t [::1,:] smoothed_state_disturbance + cdef readonly np.float64_t [::1,:,:] smoothed_measurement_disturbance_cov + cdef readonly np.float64_t [::1,:,:] smoothed_state_disturbance_cov + + cdef readonly np.float64_t [::1,:,:] smoothed_state_autocov, innovations_transition + cdef readonly np.float64_t [::1,:] tmp_autocov + + cdef readonly np.float64_t [::1,:] scaled_smoothed_diffuse_estimator + cdef readonly np.float64_t [::1,:,:] scaled_smoothed_diffuse1_estimator_cov + cdef readonly np.float64_t [::1,:,:] scaled_smoothed_diffuse2_estimator_cov + + cdef readonly np.float64_t [:] selected_design + cdef readonly np.float64_t [:] selected_obs_cov + + cdef readonly np.float64_t [::1,:] tmpL, tmpL2, tmp0, tmp00, tmp000 + + # Statespace + # cdef np.float64_t * _design + # cdef np.float64_t * _obs_cov + # cdef np.float64_t * _transition + # cdef np.float64_t * _selection + # cdef np.float64_t * _state_cov + + # Kalman filter + # cdef np.float64_t * _predicted_state + # cdef np.float64_t * _predicted_state_cov + # cdef np.float64_t * _kalman_gain + + # cdef np.float64_t * _tmp1 + # cdef np.float64_t * _tmp2 + # cdef np.float64_t * _tmp3 + # cdef np.float64_t * _tmp4 + + # Kalman smoother + cdef np.float64_t * _input_scaled_smoothed_estimator + cdef np.float64_t * _input_scaled_smoothed_estimator_cov + + cdef np.float64_t * _scaled_smoothed_estimator + cdef np.float64_t * _scaled_smoothed_estimator_cov + cdef np.float64_t * _smoothing_error + cdef np.float64_t * _smoothed_state + cdef np.float64_t * _smoothed_state_cov + cdef np.float64_t * _smoothed_measurement_disturbance + cdef np.float64_t * _smoothed_state_disturbance + cdef np.float64_t * _smoothed_measurement_disturbance_cov + cdef np.float64_t * _smoothed_state_disturbance_cov + + cdef np.float64_t * _innovations_transition + cdef np.float64_t * _smoothed_state_autocov + cdef np.float64_t * _tmp_autocov + + cdef np.float64_t * _input_scaled_smoothed_diffuse_estimator + cdef np.float64_t * _input_scaled_smoothed_diffuse1_estimator_cov + cdef np.float64_t * _input_scaled_smoothed_diffuse2_estimator_cov + cdef np.float64_t * _scaled_smoothed_diffuse_estimator + cdef np.float64_t * _scaled_smoothed_diffuse1_estimator_cov + cdef np.float64_t * _scaled_smoothed_diffuse2_estimator_cov + + # Temporary + cdef np.float64_t * _tmpL + cdef np.float64_t * _tmpL2 + cdef np.float64_t * _tmp0 + cdef np.float64_t * _tmp00 + cdef np.float64_t * _tmp000 + + # Functions + cdef int (*smooth_estimators_measurement)( + dKalmanSmoother, dKalmanFilter, dStatespace + ) except * + cdef int (*smooth_estimators_time)( + dKalmanSmoother, dKalmanFilter, dStatespace + ) + cdef int (*smooth_state)( + dKalmanSmoother, dKalmanFilter, dStatespace + ) + cdef int (*smooth_disturbances)( + dKalmanSmoother, dKalmanFilter, dStatespace + ) + + # cdef readonly int k_endog, k_states, k_posdef, k_endog2, k_states2, k_posdef2, k_endogstates, k_statesposdef + + cdef allocate_arrays(self) + cdef int check_filter_method_changed(self) + cdef int reset_filter_method(self, int force_reset=*) + cpdef set_smoother_output(self, int smoother_output, int force_reset=*) + cpdef set_smooth_method(self, int smooth_method) + cpdef reset(self, int force_reset=*) + cpdef seek(self, unsigned int t) + cdef void initialize_statespace_object_pointers(self) except * + cdef void initialize_filter_object_pointers(self) + cdef void initialize_smoother_object_pointers(self) except * + cdef void initialize_function_pointers(self) except * + cdef void _initialize_temp_pointers(self) except * + +# Single precision complex +cdef class cKalmanSmoother(object): + # Statespace object + cdef readonly cStatespace model + # Kalman filter + cdef readonly cKalmanFilter kfilter + + cdef readonly int t + cdef readonly int smoother_output + cdef readonly int smooth_method + cdef readonly int _smooth_method + cdef readonly int filter_method + + cdef readonly np.complex64_t [::1,:] scaled_smoothed_estimator + cdef readonly np.complex64_t [::1,:,:] scaled_smoothed_estimator_cov + cdef readonly np.complex64_t [::1,:] smoothing_error + cdef readonly np.complex64_t [::1,:] smoothed_state + cdef readonly np.complex64_t [::1,:,:] smoothed_state_cov + cdef readonly np.complex64_t [::1,:] smoothed_measurement_disturbance + cdef readonly np.complex64_t [::1,:] smoothed_state_disturbance + cdef readonly np.complex64_t [::1,:,:] smoothed_measurement_disturbance_cov + cdef readonly np.complex64_t [::1,:,:] smoothed_state_disturbance_cov + + cdef readonly np.complex64_t [::1,:,:] smoothed_state_autocov, innovations_transition + cdef readonly np.complex64_t [::1,:] tmp_autocov + + cdef readonly np.complex64_t [::1,:] scaled_smoothed_diffuse_estimator + cdef readonly np.complex64_t [::1,:,:] scaled_smoothed_diffuse1_estimator_cov + cdef readonly np.complex64_t [::1,:,:] scaled_smoothed_diffuse2_estimator_cov + + cdef readonly np.complex64_t [:] selected_design + cdef readonly np.complex64_t [:] selected_obs_cov + + cdef readonly np.complex64_t [::1,:] tmpL, tmpL2, tmp0, tmp00, tmp000 + + # Statespace + # cdef np.complex64_t * _design + # cdef np.complex64_t * _obs_cov + # cdef np.complex64_t * _transition + # cdef np.complex64_t * _selection + # cdef np.complex64_t * _state_cov + + # Kalman filter + # cdef np.complex64_t * _predicted_state + # cdef np.complex64_t * _predicted_state_cov + # cdef np.complex64_t * _kalman_gain + + # cdef np.complex64_t * _tmp1 + # cdef np.complex64_t * _tmp2 + # cdef np.complex64_t * _tmp3 + # cdef np.complex64_t * _tmp4 + + # Kalman smoother + cdef np.complex64_t * _input_scaled_smoothed_estimator + cdef np.complex64_t * _input_scaled_smoothed_estimator_cov + + cdef np.complex64_t * _scaled_smoothed_estimator + cdef np.complex64_t * _scaled_smoothed_estimator_cov + cdef np.complex64_t * _smoothing_error + cdef np.complex64_t * _smoothed_state + cdef np.complex64_t * _smoothed_state_cov + cdef np.complex64_t * _smoothed_measurement_disturbance + cdef np.complex64_t * _smoothed_state_disturbance + cdef np.complex64_t * _smoothed_measurement_disturbance_cov + cdef np.complex64_t * _smoothed_state_disturbance_cov + + cdef np.complex64_t * _innovations_transition + cdef np.complex64_t * _smoothed_state_autocov + cdef np.complex64_t * _tmp_autocov + + cdef np.complex64_t * _input_scaled_smoothed_diffuse_estimator + cdef np.complex64_t * _input_scaled_smoothed_diffuse1_estimator_cov + cdef np.complex64_t * _input_scaled_smoothed_diffuse2_estimator_cov + cdef np.complex64_t * _scaled_smoothed_diffuse_estimator + cdef np.complex64_t * _scaled_smoothed_diffuse1_estimator_cov + cdef np.complex64_t * _scaled_smoothed_diffuse2_estimator_cov + + # Temporary + cdef np.complex64_t * _tmpL + cdef np.complex64_t * _tmpL2 + cdef np.complex64_t * _tmp0 + cdef np.complex64_t * _tmp00 + cdef np.complex64_t * _tmp000 + + # Functions + cdef int (*smooth_estimators_measurement)( + cKalmanSmoother, cKalmanFilter, cStatespace + ) except * + cdef int (*smooth_estimators_time)( + cKalmanSmoother, cKalmanFilter, cStatespace + ) + cdef int (*smooth_state)( + cKalmanSmoother, cKalmanFilter, cStatespace + ) + cdef int (*smooth_disturbances)( + cKalmanSmoother, cKalmanFilter, cStatespace + ) + + # cdef readonly int k_endog, k_states, k_posdef, k_endog2, k_states2, k_posdef2, k_endogstates, k_statesposdef + + cdef allocate_arrays(self) + cdef int check_filter_method_changed(self) + cdef int reset_filter_method(self, int force_reset=*) + cpdef set_smoother_output(self, int smoother_output, int force_reset=*) + cpdef set_smooth_method(self, int smooth_method) + cpdef reset(self, int force_reset=*) + cpdef seek(self, unsigned int t) + cdef void initialize_statespace_object_pointers(self) except * + cdef void initialize_filter_object_pointers(self) + cdef void initialize_smoother_object_pointers(self) except * + cdef void initialize_function_pointers(self) except * + cdef void _initialize_temp_pointers(self) except * + +# Double precision complex +cdef class zKalmanSmoother(object): + # Statespace object + cdef readonly zStatespace model + # Kalman filter + cdef readonly zKalmanFilter kfilter + + cdef readonly int t + cdef readonly int smoother_output + cdef readonly int smooth_method + cdef readonly int _smooth_method + cdef readonly int filter_method + + cdef readonly np.complex128_t [::1,:] scaled_smoothed_estimator + cdef readonly np.complex128_t [::1,:,:] scaled_smoothed_estimator_cov + cdef readonly np.complex128_t [::1,:] smoothing_error + cdef readonly np.complex128_t [::1,:] smoothed_state + cdef readonly np.complex128_t [::1,:,:] smoothed_state_cov + cdef readonly np.complex128_t [::1,:] smoothed_measurement_disturbance + cdef readonly np.complex128_t [::1,:] smoothed_state_disturbance + cdef readonly np.complex128_t [::1,:,:] smoothed_measurement_disturbance_cov + cdef readonly np.complex128_t [::1,:,:] smoothed_state_disturbance_cov + + cdef readonly np.complex128_t [::1,:,:] smoothed_state_autocov, innovations_transition + cdef readonly np.complex128_t [::1,:] tmp_autocov + + cdef readonly np.complex128_t [::1,:] scaled_smoothed_diffuse_estimator + cdef readonly np.complex128_t [::1,:,:] scaled_smoothed_diffuse1_estimator_cov + cdef readonly np.complex128_t [::1,:,:] scaled_smoothed_diffuse2_estimator_cov + + cdef readonly np.complex128_t [:] selected_design + cdef readonly np.complex128_t [:] selected_obs_cov + + cdef readonly np.complex128_t [::1,:] tmpL, tmpL2, tmp0, tmp00, tmp000 + + # Statespace + # cdef np.complex128_t * _design + # cdef np.complex128_t * _obs_cov + # cdef np.complex128_t * _transition + # cdef np.complex128_t * _selection + # cdef np.complex128_t * _state_cov + + # Kalman filter + # cdef np.complex128_t * _predicted_state + # cdef np.complex128_t * _predicted_state_cov + # cdef np.complex128_t * _kalman_gain + + # cdef np.complex128_t * _tmp1 + # cdef np.complex128_t * _tmp2 + # cdef np.complex128_t * _tmp3 + # cdef np.complex128_t * _tmp4 + + # Kalman smoother + cdef np.complex128_t * _input_scaled_smoothed_estimator + cdef np.complex128_t * _input_scaled_smoothed_estimator_cov + + cdef np.complex128_t * _scaled_smoothed_estimator + cdef np.complex128_t * _scaled_smoothed_estimator_cov + cdef np.complex128_t * _smoothing_error + cdef np.complex128_t * _smoothed_state + cdef np.complex128_t * _smoothed_state_cov + cdef np.complex128_t * _smoothed_measurement_disturbance + cdef np.complex128_t * _smoothed_state_disturbance + cdef np.complex128_t * _smoothed_measurement_disturbance_cov + cdef np.complex128_t * _smoothed_state_disturbance_cov + + cdef np.complex128_t * _innovations_transition + cdef np.complex128_t * _smoothed_state_autocov + cdef np.complex128_t * _tmp_autocov + + cdef np.complex128_t * _input_scaled_smoothed_diffuse_estimator + cdef np.complex128_t * _input_scaled_smoothed_diffuse1_estimator_cov + cdef np.complex128_t * _input_scaled_smoothed_diffuse2_estimator_cov + cdef np.complex128_t * _scaled_smoothed_diffuse_estimator + cdef np.complex128_t * _scaled_smoothed_diffuse1_estimator_cov + cdef np.complex128_t * _scaled_smoothed_diffuse2_estimator_cov + + # Temporary + cdef np.complex128_t * _tmpL + cdef np.complex128_t * _tmpL2 + cdef np.complex128_t * _tmp0 + cdef np.complex128_t * _tmp00 + cdef np.complex128_t * _tmp000 + + # Functions + cdef int (*smooth_estimators_measurement)( + zKalmanSmoother, zKalmanFilter, zStatespace + ) except * + cdef int (*smooth_estimators_time)( + zKalmanSmoother, zKalmanFilter, zStatespace + ) + cdef int (*smooth_state)( + zKalmanSmoother, zKalmanFilter, zStatespace + ) + cdef int (*smooth_disturbances)( + zKalmanSmoother, zKalmanFilter, zStatespace + ) + + # cdef readonly int k_endog, k_states, k_posdef, k_endog2, k_states2, k_posdef2, k_endogstates, k_statesposdef + + cdef allocate_arrays(self) + cdef int check_filter_method_changed(self) + cdef int reset_filter_method(self, int force_reset=*) + cpdef set_smoother_output(self, int smoother_output, int force_reset=*) + cpdef set_smooth_method(self, int smooth_method) + cpdef reset(self, int force_reset=*) + cpdef seek(self, unsigned int t) + cdef void initialize_statespace_object_pointers(self) except * + cdef void initialize_filter_object_pointers(self) + cdef void initialize_smoother_object_pointers(self) except * + cdef void initialize_function_pointers(self) except * + cdef void _initialize_temp_pointers(self) except * diff --git a/shared/package-files/08/084a5c8a445afd8f9267fa05b12695aef9c74b5cfdf58482fed17b56e8ac2d59/registry.py b/shared/package-files/08/084a5c8a445afd8f9267fa05b12695aef9c74b5cfdf58482fed17b56e8ac2d59/registry.py new file mode 100644 index 0000000000000000000000000000000000000000..b455bf1a869c9268cd9e45b5d54e85cc97db9164 --- /dev/null +++ b/shared/package-files/08/084a5c8a445afd8f9267fa05b12695aef9c74b5cfdf58482fed17b56e8ac2d59/registry.py @@ -0,0 +1,141 @@ +r""" +Utilities for Windows Registry manipulation + +Notes: + +winreg.SetValue -> sets _keys_ with default ("") values +winreg.SetValueEx -> sets values with named contents + +This is important when the argument has backslashes. +SetValue will process the backslashes into a path of keys +SetValueEx will create a value with name "path\with\keys" + + +Mnemonic: SetValueEx for "excalars" (scalars, named values) +""" +import winreg +from logging import getLogger + +from ...utils import logged_run + +log = getLogger(__name__) + + +def _reg_exe(*args, check=True): + return logged_run(["reg.exe", *args, "/f"], check=True) + + +def register_file_extension(extension, identifier, command, icon=None, mode="user"): + """ + We want to achieve this. Entries ending in / denote keys; no trailing / means named value. + If the item has a value attached to it, it's written after the : symbol. + + HKEY_*/ # current user or local machine + Software/ + Classes/ + ./ + OpenWithProgids/ + + ... + /: "a description of the file being handled" + DefaultIcon: "path to the app icon" + shell/ + open/ + command/: "the command to be executed when opening a file with this extension" + """ + with winreg.OpenKeyEx( + winreg.HKEY_LOCAL_MACHINE # HKLM + if mode == "system" + else winreg.HKEY_CURRENT_USER, # HKCU + r"Software\Classes", + ) as key: + # First we associate an extension with a handler + winreg.SetValueEx( + winreg.CreateKey(key, fr"{extension}\OpenWithProgids"), + identifier, + 0, + winreg.REG_SZ, + "", # presence of the key is enough + ) + log.debug("Created registry entry for extension '%s'", extension) + + # Now we register the handler + handler_desc = f"{extension} {identifier} handler" + winreg.SetValue(key, identifier, winreg.REG_SZ, handler_desc) + log.debug("Created registry entry for handler '%s'", identifier) + + # and set the 'open' command + subkey = rf"{identifier}\shell\open\command" + # Use SetValue to create subkeys as necessary + winreg.SetValue(key, subkey, winreg.REG_SZ, command) + log.debug("Created registry entry for command '%s'", command) + + if icon: + subkey = winreg.OpenKey(key, identifier) + winreg.SetValueEx(subkey, "DefaultIcon", 0, winreg.REG_SZ, icon) + log.debug("Created registry entry for icon '%s'", icon) + + # TODO: We can add contextual menu items too + # via f"{handler_key}\shell\\command" + + +def unregister_file_extension(extension, identifier, mode="user"): + root, root_str = ( + (winreg.HKEY_LOCAL_MACHINE, "HKLM") + if mode == "system" + else (winreg.HKEY_CURRENT_USER, "HKCU") + ) + _reg_exe("delete", fr"{root_str}\Software\Classes\{identifier}") + + try: + with winreg.OpenKey( + root, fr"Software\Classes\{extension}\OpenWithProgids", 0, winreg.KEY_ALL_ACCESS + ) as key: + try: + winreg.QueryValueEx(key, identifier) + except FileNotFoundError: + log.debug( + "Handler '%s' is not associated with extension '%s'", identifier, extension + ) + else: + winreg.DeleteValue(key, identifier) + except Exception as exc: + log.exception("Could not check key '%s' for deletion", extension, exc_info=exc) + raise + + +def register_url_protocol(protocol, command, identifier=None, icon=None, mode="user"): + if mode == "system": + key = winreg.CreateKey(winreg.HKEY_CLASSES_ROOT, protocol) + else: + key = winreg.CreateKey(winreg.HKEY_CURRENT_USER, fr"Software\Classes\{protocol}") + with key: + winreg.SetValueEx(key, "", 0, winreg.REG_SZ, f"URL:{protocol.title()}") + winreg.SetValueEx(key, "URL Protocol", 0, winreg.REG_SZ, "") + # SetValue creates sub keys when slashes are present; + # SetValueEx creates a value with backslashes - we don't want that here + winreg.SetValue(key, r"shell\open\command", winreg.REG_SZ, command) + if icon: + winreg.SetValueEx(key, "DefaultIcon", 0, winreg.REG_SZ, icon) + if identifier: + # We add this one value for traceability; not required + winreg.SetValueEx(key, "_menuinst", 0, winreg.REG_SZ, identifier) + + +def unregister_url_protocol(protocol, identifier=None, mode="user"): + if mode == "system": + key_tuple = winreg.HKEY_CLASSES_ROOT, protocol + key_str = fr"HKCR\{protocol}" + else: + key_tuple = winreg.HKEY_CURRENT_USER, fr"Software\Classes\{protocol}" + key_str = fr"HKCU\Software\Classes\{protocol}" + try: + with winreg.OpenKey(*key_tuple) as key: + value, _ = winreg.QueryValueEx(key, "_menuinst") + delete = identifier is None or value == identifier + except OSError as exc: + log.exception("Could not check key %s for deletion", protocol, exc_info=exc) + return + + if delete: + _reg_exe("delete", key_str, check=False) diff --git a/shared/package-files/08/084af1309d3205fbbf72f0a828932ef568ea51aa212c8aaa7f6dbc1a6f575892/__init__.py b/shared/package-files/08/084af1309d3205fbbf72f0a828932ef568ea51aa212c8aaa7f6dbc1a6f575892/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..a44a8c133b674aea416efeb4da469241b50a547f --- /dev/null +++ b/shared/package-files/08/084af1309d3205fbbf72f0a828932ef568ea51aa212c8aaa7f6dbc1a6f575892/__init__.py @@ -0,0 +1,131 @@ +""" +================================================= +Orthogonal distance regression (:mod:`scipy.odr`) +================================================= + +.. currentmodule:: scipy.odr + +Package Content +=============== + +.. autosummary:: + :toctree: generated/ + + Data -- The data to fit. + RealData -- Data with weights as actual std. dev.s and/or covariances. + Model -- Stores information about the function to be fit. + ODR -- Gathers all info & manages the main fitting routine. + Output -- Result from the fit. + odr -- Low-level function for ODR. + + OdrWarning -- Warning about potential problems when running ODR. + OdrError -- Error exception. + OdrStop -- Stop exception. + + polynomial -- Factory function for a general polynomial model. + exponential -- Exponential model + multilinear -- Arbitrary-dimensional linear model + unilinear -- Univariate linear model + quadratic -- Quadratic model + +Usage information +================= + +Introduction +------------ + +Why Orthogonal Distance Regression (ODR)? Sometimes one has +measurement errors in the explanatory (a.k.a., "independent") +variable(s), not just the response (a.k.a., "dependent") variable(s). +Ordinary Least Squares (OLS) fitting procedures treat the data for +explanatory variables as fixed, i.e., not subject to error of any kind. +Furthermore, OLS procedures require that the response variables be an +explicit function of the explanatory variables; sometimes making the +equation explicit is impractical and/or introduces errors. ODR can +handle both of these cases with ease, and can even reduce to the OLS +case if that is sufficient for the problem. + +ODRPACK is a FORTRAN-77 library for performing ODR with possibly +non-linear fitting functions. It uses a modified trust-region +Levenberg-Marquardt-type algorithm [1]_ to estimate the function +parameters. The fitting functions are provided by Python functions +operating on NumPy arrays. The required derivatives may be provided +by Python functions as well, or may be estimated numerically. ODRPACK +can do explicit or implicit ODR fits, or it can do OLS. Input and +output variables may be multidimensional. Weights can be provided to +account for different variances of the observations, and even +covariances between dimensions of the variables. + +The `scipy.odr` package offers an object-oriented interface to +ODRPACK, in addition to the low-level `odr` function. + +Additional background information about ODRPACK can be found in the +`ODRPACK User's Guide +`_, reading +which is recommended. + +Basic usage +----------- + +1. Define the function you want to fit against.:: + + def f(B, x): + '''Linear function y = m*x + b''' + # B is a vector of the parameters. + # x is an array of the current x values. + # x is in the same format as the x passed to Data or RealData. + # + # Return an array in the same format as y passed to Data or RealData. + return B[0]*x + B[1] + +2. Create a Model.:: + + linear = Model(f) + +3. Create a Data or RealData instance.:: + + mydata = Data(x, y, wd=1./power(sx,2), we=1./power(sy,2)) + + or, when the actual covariances are known:: + + mydata = RealData(x, y, sx=sx, sy=sy) + +4. Instantiate ODR with your data, model and initial parameter estimate.:: + + myodr = ODR(mydata, linear, beta0=[1., 2.]) + +5. Run the fit.:: + + myoutput = myodr.run() + +6. Examine output.:: + + myoutput.pprint() + + +References +---------- +.. [1] P. T. Boggs and J. E. Rogers, "Orthogonal Distance Regression," + in "Statistical analysis of measurement error models and + applications: proceedings of the AMS-IMS-SIAM joint summer research + conference held June 10-16, 1989," Contemporary Mathematics, + vol. 112, pg. 186, 1990. + +""" +# version: 0.7 +# author: Robert Kern +# date: 2006-09-21 + +from ._odrpack import * +from ._models import * +from . import _add_newdocs + +# Deprecated namespaces, to be removed in v2.0.0 +from . import models, odrpack + +__all__ = [s for s in dir() + if not (s.startswith('_') or s in ('odr_stop', 'odr_error'))] + +from scipy._lib._testutils import PytestTester +test = PytestTester(__name__) +del PytestTester diff --git a/shared/package-files/08/084bc0c7c2c9f3dd30b251dddfcccdd19971b76cbe369689f4245ecadb510eaf/RECORD b/shared/package-files/08/084bc0c7c2c9f3dd30b251dddfcccdd19971b76cbe369689f4245ecadb510eaf/RECORD new file mode 100644 index 0000000000000000000000000000000000000000..e9854b618efc367bf57dd8e8dc75834816ac009c --- /dev/null +++ b/shared/package-files/08/084bc0c7c2c9f3dd30b251dddfcccdd19971b76cbe369689f4245ecadb510eaf/RECORD @@ -0,0 +1,42 @@ +contourpy-1.3.2.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4 +contourpy-1.3.2.dist-info/LICENSE,sha256=NBcJefxk9PXm36Zu8n3sMU___FhSAAxg9INuwd-_FW4,1534 +contourpy-1.3.2.dist-info/METADATA,sha256=DYYPfLivjoUAXCCUmeDKJdqFFbS2eRXui4i4hSwxbAg,5461 +contourpy-1.3.2.dist-info/RECORD,, +contourpy-1.3.2.dist-info/WHEEL,sha256=sZM_NeUMz2G4fDenMf11eikcCxcLaQWiYRmjwQBavQs,137 +contourpy/__init__.py,sha256=Vi2YbtUhM9VxYPY3PBvxfu0xZYr6fBysl5gQPJEo88k,11831 +contourpy/__pycache__/__init__.cpython-310.pyc,, +contourpy/__pycache__/_version.cpython-310.pyc,, +contourpy/__pycache__/array.cpython-310.pyc,, +contourpy/__pycache__/chunk.cpython-310.pyc,, +contourpy/__pycache__/convert.cpython-310.pyc,, +contourpy/__pycache__/dechunk.cpython-310.pyc,, +contourpy/__pycache__/enum_util.cpython-310.pyc,, +contourpy/__pycache__/typecheck.cpython-310.pyc,, +contourpy/__pycache__/types.cpython-310.pyc,, +contourpy/_contourpy.cpython-310-x86_64-linux-gnu.so,sha256=8it_MHwflBYc2jRua5KVBXY14gZO7MuH6GAuQVm8V-E,854312 +contourpy/_contourpy.pyi,sha256=fvtccxkiZwGb6qYag7Fp4E8bsFmAIjAmobf8LNxqfgc,7122 +contourpy/_version.py,sha256=HgKA3RqZvC7slo8MgLyffCGwJbQ3cY6I7oUMFvGLWps,22 +contourpy/array.py,sha256=4WwLuiZe30rizn_raymmY13OzE6hlCsDOO8kuVFOP18,8979 +contourpy/chunk.py,sha256=8njDQqlpuD22RjaaCyA75FXQsSQDY5hZGJSrxFpvGGU,3279 +contourpy/convert.py,sha256=mhyn7prEoWCnf0igaH-VqDwlk-CegFsZ4qOy2LL-hpU,26154 +contourpy/dechunk.py,sha256=EgFL6hw5H54ccuof4tJ2ehdnktT7trgZjiZqppsH8QI,7756 +contourpy/enum_util.py,sha256=o8MItJRs08oqzwPP3IwC75BBAY9Qq95saIzjkXBXwqA,1519 +contourpy/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +contourpy/typecheck.py,sha256=t1nvvCuKMYva1Zx4fc30EpdKFcO0Enz3n_UFfXBsq9o,10747 +contourpy/types.py,sha256=2K4T5tJpMIjYrkkg1Lqh3C2ZKlnOhnMtYmtwz92l_y8,247 +contourpy/util/__init__.py,sha256=eVhJ_crOHL7nkG4Kb0dOo7NL4WHMy_Px665aAN_3d-8,118 +contourpy/util/__pycache__/__init__.cpython-310.pyc,, +contourpy/util/__pycache__/_build_config.cpython-310.pyc,, +contourpy/util/__pycache__/bokeh_renderer.cpython-310.pyc,, +contourpy/util/__pycache__/bokeh_util.cpython-310.pyc,, +contourpy/util/__pycache__/data.cpython-310.pyc,, +contourpy/util/__pycache__/mpl_renderer.cpython-310.pyc,, +contourpy/util/__pycache__/mpl_util.cpython-310.pyc,, +contourpy/util/__pycache__/renderer.cpython-310.pyc,, +contourpy/util/_build_config.py,sha256=uFmEfpQ4-HVkN0zZi7c2060J1i2uoaPsvkS4pf0XdiY,1848 +contourpy/util/bokeh_renderer.py,sha256=sOAZKyN11296muuLQ4uhQYCM4eaMwjnxUFrbbIxucmY,13959 +contourpy/util/bokeh_util.py,sha256=wc-S3ewBUYWyIkEv9jkhFySIergjLQl4Z0UEVnE0HhA,2804 +contourpy/util/data.py,sha256=-7SSGMLX_gN-1H2JzpNSEB_EcEF_uMtYdOo_ePRIcg8,2586 +contourpy/util/mpl_renderer.py,sha256=qPWMxDL_n-4dg9gOIHX-Va2UQz6n98eJdIRszpYr2AU,20125 +contourpy/util/mpl_util.py,sha256=0Jz5f-aA9XMWlpO2pDnHbkVgxIiw4SY_ysxf_gACWEo,3452 +contourpy/util/renderer.py,sha256=8CBHzPmVsFPfqsWxqrxGBhqFpJhVeFHFeDzVXAgT8Fc,5118 diff --git a/shared/package-files/08/0852d8ea2cf5f5d00d3e56060c05a8c5ca0d03060290e1a0e4c83b02d7a93615/nord.py b/shared/package-files/08/0852d8ea2cf5f5d00d3e56060c05a8c5ca0d03060290e1a0e4c83b02d7a93615/nord.py new file mode 100644 index 0000000000000000000000000000000000000000..883c954bb699a129da9aca72410badf0313263d0 --- /dev/null +++ b/shared/package-files/08/0852d8ea2cf5f5d00d3e56060c05a8c5ca0d03060290e1a0e4c83b02d7a93615/nord.py @@ -0,0 +1,150 @@ +""" + pygments.styles.nord + ~~~~~~~~~~~~~~~~~~~~ + + pygments version of the "nord" theme by Arctic Ice Studio + https://www.nordtheme.com/ + + :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS. + :license: BSD, see LICENSE for details. +""" + +from pygments.style import Style +from pygments.token import Keyword, Name, Comment, String, Error, Number, \ + Operator, Generic, Whitespace, Punctuation, Text, Token + + +class NordStyle(Style): + """ + Pygments version of the "nord" theme by Arctic Ice Studio. + """ + + line_number_color = "#D8DEE9" + line_number_background_color = "#242933" + line_number_special_color = "#242933" + line_number_special_background_color = "#D8DEE9" + + background_color = "#2E3440" + highlight_color = "#3B4252" + + styles = { + Token: "#d8dee9", + + Whitespace: '#d8dee9', + Punctuation: '#eceff4', + + Comment: 'italic #616e87', + Comment.Preproc: '#5e81ac', + + Keyword: 'bold #81a1c1', + Keyword.Pseudo: 'nobold #81a1c1', + Keyword.Type: 'nobold #81a1c1', + + Operator: 'bold #81a1c1', + Operator.Word: 'bold #81a1c1', + + Name: '#d8dee9', + Name.Builtin: '#81a1c1', + Name.Function: '#88c0d0', + Name.Class: '#8fbcbb', + Name.Namespace: '#8fbcbb', + Name.Exception: '#bf616a', + Name.Variable: '#d8dee9', + Name.Constant: '#8fbcbb', + Name.Entity: '#d08770', + Name.Attribute: '#8fbcbb', + Name.Tag: '#81a1c1', + Name.Decorator: '#d08770', + + String: '#a3be8c', + String.Doc: '#616e87', + String.Interpol: '#a3be8c', + String.Escape: '#ebcb8b', + String.Regex: '#ebcb8b', + String.Symbol: '#a3be8c', + String.Other: '#a3be8c', + + Number: '#b48ead', + + Generic.Heading: 'bold #88c0d0', + Generic.Subheading: 'bold #88c0d0', + Generic.Deleted: '#bf616a', + Generic.Inserted: '#a3be8c', + Generic.Error: '#bf616a', + Generic.Emph: 'italic', + Generic.Strong: 'bold', + Generic.Prompt: 'bold #616e88', + Generic.Output: '#d8dee9', + Generic.Traceback: '#bf616a', + + Error: '#bf616a', + Text: '#d8dee9', + } + + +class NordDarkerStyle(Style): + """ + Pygments version of a darker "nord" theme by Arctic Ice Studio + """ + + line_number_color = "#D8DEE9" + line_number_background_color = "#242933" + line_number_special_color = "#242933" + line_number_special_background_color = "#D8DEE9" + + background_color = "#242933" + highlight_color = "#3B4252" + + styles = { + Token: "#d8dee9", + + Whitespace: '#d8dee9', + Punctuation: '#eceff4', + + Comment: 'italic #616e87', + Comment.Preproc: '#5e81ac', + + Keyword: 'bold #81a1c1', + Keyword.Pseudo: 'nobold #81a1c1', + Keyword.Type: 'nobold #81a1c1', + + Operator: 'bold #81a1c1', + Operator.Word: 'bold #81a1c1', + + Name: '#d8dee9', + Name.Builtin: '#81a1c1', + Name.Function: '#88c0d0', + Name.Class: '#8fbcbb', + Name.Namespace: '#8fbcbb', + Name.Exception: '#bf616a', + Name.Variable: '#d8dee9', + Name.Constant: '#8fbcbb', + Name.Entity: '#d08770', + Name.Attribute: '#8fbcbb', + Name.Tag: '#81a1c1', + Name.Decorator: '#d08770', + + String: '#a3be8c', + String.Doc: '#616e87', + String.Interpol: '#a3be8c', + String.Escape: '#ebcb8b', + String.Regex: '#ebcb8b', + String.Symbol: '#a3be8c', + String.Other: '#a3be8c', + + Number: '#b48ead', + + Generic.Heading: 'bold #88c0d0', + Generic.Subheading: 'bold #88c0d0', + Generic.Deleted: '#bf616a', + Generic.Inserted: '#a3be8c', + Generic.Error: '#bf616a', + Generic.Emph: 'italic', + Generic.Strong: 'bold', + Generic.Prompt: 'bold #616e88', + Generic.Output: '#d8dee9', + Generic.Traceback: '#bf616a', + + Error: '#bf616a', + Text: '#d8dee9', + } diff --git a/shared/package-files/08/0855dea48aac25c054c60c36c9f871d630aee355cf8269f977ffba3ade02e35e/minitel12-80 b/shared/package-files/08/0855dea48aac25c054c60c36c9f871d630aee355cf8269f977ffba3ade02e35e/minitel12-80 new file mode 100644 index 0000000000000000000000000000000000000000..1fba4d7ff2a57c72f5ecb320db96ecc51d0bc45d Binary files /dev/null and b/shared/package-files/08/0855dea48aac25c054c60c36c9f871d630aee355cf8269f977ffba3ade02e35e/minitel12-80 differ diff --git a/shared/package-files/08/085adcca077cb9d7b9c7a384b5f33f0f0d0a607a31a4f3f3ab8e8aa075718e37/Famagusta b/shared/package-files/08/085adcca077cb9d7b9c7a384b5f33f0f0d0a607a31a4f3f3ab8e8aa075718e37/Famagusta new file mode 100644 index 0000000000000000000000000000000000000000..653b146a60e5e5641a07bfc82f9590dad1ed69f5 Binary files /dev/null and b/shared/package-files/08/085adcca077cb9d7b9c7a384b5f33f0f0d0a607a31a4f3f3ab8e8aa075718e37/Famagusta differ diff --git a/shared/package-files/08/085b2fe38a29f41c6927adb16d3be8763153f9822fe5980b0fe8db83c1b20a1c/jit_exception.h b/shared/package-files/08/085b2fe38a29f41c6927adb16d3be8763153f9822fe5980b0fe8db83c1b20a1c/jit_exception.h new file mode 100644 index 0000000000000000000000000000000000000000..728675ed7841835aba35771b4b1ba5e827d2c5d5 --- /dev/null +++ b/shared/package-files/08/085b2fe38a29f41c6927adb16d3be8763153f9822fe5980b0fe8db83c1b20a1c/jit_exception.h @@ -0,0 +1,38 @@ +#pragma once + +#include + +#include +#include +#include + +namespace torch::jit { + +struct TORCH_API JITException : public std::runtime_error { + explicit JITException( + const std::string& msg, + c10::optional python_class_name = c10::nullopt, + c10::optional original_msg = c10::nullopt); + + c10::optional getPythonClassName() const { + return python_class_name_; + } + + // the original msg if this is from a python exception. The interpretor has + // changed the original message by adding "The following operation failed in + // the TorchScript interpreter." in front of it in the handleError function. + c10::optional getOriginalMsg() const { + return original_msg_; + } + + static const std::string& getCaughtOriginalMsg(); + static const std::string& getCaughtPythonClassName(); + static void setCaughtOriginalMsg(const std::string& msg); + static void setCaughtPythonClassName(const std::string& pythonClassName); + + private: + c10::optional python_class_name_; + c10::optional original_msg_; +}; + +} // namespace torch::jit diff --git a/shared/package-files/08/085bbee935f102d83dec053bfb5ebc6b6982e5d5fbe91e8fd8605124d1c71e39/empty_like.h b/shared/package-files/08/085bbee935f102d83dec053bfb5ebc6b6982e5d5fbe91e8fd8605124d1c71e39/empty_like.h new file mode 100644 index 0000000000000000000000000000000000000000..f60e0b8776ff5d4fe7ac355b7b9319a5b2d8c2a5 --- /dev/null +++ b/shared/package-files/08/085bbee935f102d83dec053bfb5ebc6b6982e5d5fbe91e8fd8605124d1c71e39/empty_like.h @@ -0,0 +1,43 @@ +#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::empty_like(Tensor self, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, MemoryFormat? memory_format=None) -> Tensor +inline at::Tensor empty_like(const at::Tensor & self, at::TensorOptions options={}, c10::optional memory_format=c10::nullopt) { + return at::_ops::empty_like::call(self, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt(), c10::impl::check_tensor_options_and_extract_memory_format(options, memory_format)); +} +// aten::empty_like(Tensor self, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, MemoryFormat? memory_format=None) -> Tensor +inline at::Tensor empty_like(const at::Tensor & self, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory, c10::optional memory_format) { + return at::_ops::empty_like::call(self, dtype, layout, device, pin_memory, memory_format); +} + +// aten::empty_like.out(Tensor self, *, MemoryFormat? memory_format=None, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & empty_like_out(at::Tensor & out, const at::Tensor & self, c10::optional memory_format=c10::nullopt) { + return at::_ops::empty_like_out::call(self, memory_format, out); +} +// aten::empty_like.out(Tensor self, *, MemoryFormat? memory_format=None, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & empty_like_outf(const at::Tensor & self, c10::optional memory_format, at::Tensor & out) { + return at::_ops::empty_like_out::call(self, memory_format, out); +} + +} diff --git a/shared/package-files/08/085de63724bef7a53ede2061593f9693dd992eb92f5b1b51bcb6d7cd77f8b613/mach-gnu-color b/shared/package-files/08/085de63724bef7a53ede2061593f9693dd992eb92f5b1b51bcb6d7cd77f8b613/mach-gnu-color new file mode 100644 index 0000000000000000000000000000000000000000..b4a03898d01de3f3e4ce7823fe7abae8d041e4f5 Binary files /dev/null and b/shared/package-files/08/085de63724bef7a53ede2061593f9693dd992eb92f5b1b51bcb6d7cd77f8b613/mach-gnu-color differ diff --git a/shared/package-files/08/08630ec45901fcdf4d9a6e97dacf70c57a4c4be5c6e81c738d226588b7c71fdf/pyshell.py b/shared/package-files/08/08630ec45901fcdf4d9a6e97dacf70c57a4c4be5c6e81c738d226588b7c71fdf/pyshell.py new file mode 100644 index 0000000000000000000000000000000000000000..e7fef5f69daa303ae6f5dc8d4729159d9d034b56 --- /dev/null +++ b/shared/package-files/08/08630ec45901fcdf4d9a6e97dacf70c57a4c4be5c6e81c738d226588b7c71fdf/pyshell.py @@ -0,0 +1,1713 @@ +#! /usr/bin/env python3 + +import sys +if __name__ == "__main__": + sys.modules['idlelib.pyshell'] = sys.modules['__main__'] + +try: + from tkinter import * +except ImportError: + print("** IDLE can't import Tkinter.\n" + "Your Python may not be configured for Tk. **", file=sys.__stderr__) + raise SystemExit(1) + +# Valid arguments for the ...Awareness call below are defined in the following. +# https://msdn.microsoft.com/en-us/library/windows/desktop/dn280512(v=vs.85).aspx +if sys.platform == 'win32': + try: + import ctypes + PROCESS_SYSTEM_DPI_AWARE = 1 # Int required. + ctypes.OleDLL('shcore').SetProcessDpiAwareness(PROCESS_SYSTEM_DPI_AWARE) + except (ImportError, AttributeError, OSError): + pass + +from tkinter import messagebox +if TkVersion < 8.5: + root = Tk() # otherwise create root in main + root.withdraw() + from idlelib.run import fix_scaling + fix_scaling(root) + messagebox.showerror("Idle Cannot Start", + "Idle requires tcl/tk 8.5+, not %s." % TkVersion, + parent=root) + raise SystemExit(1) + +from code import InteractiveInterpreter +import itertools +import linecache +import os +import os.path +from platform import python_version +import re +import socket +import subprocess +from textwrap import TextWrapper +import threading +import time +import tokenize +import warnings + +from idlelib.colorizer import ColorDelegator +from idlelib.config import idleConf +from idlelib.delegator import Delegator +from idlelib import debugger +from idlelib import debugger_r +from idlelib.editor import EditorWindow, fixwordbreaks +from idlelib.filelist import FileList +from idlelib.outwin import OutputWindow +from idlelib import replace +from idlelib import rpc +from idlelib.run import idle_formatwarning, StdInputFile, StdOutputFile +from idlelib.undo import UndoDelegator + +# Default for testing; defaults to True in main() for running. +use_subprocess = False + +HOST = '127.0.0.1' # python execution server on localhost loopback +PORT = 0 # someday pass in host, port for remote debug capability + +try: # In case IDLE started with -n. + eof = 'Ctrl-D (end-of-file)' + exit.eof = eof + quit.eof = eof +except NameError: # In case python started with -S. + pass + +# Override warnings module to write to warning_stream. Initialize to send IDLE +# internal warnings to the console. ScriptBinding.check_syntax() will +# temporarily redirect the stream to the shell window to display warnings when +# checking user's code. +warning_stream = sys.__stderr__ # None, at least on Windows, if no console. + +def idle_showwarning( + message, category, filename, lineno, file=None, line=None): + """Show Idle-format warning (after replacing warnings.showwarning). + + The differences are the formatter called, the file=None replacement, + which can be None, the capture of the consequence AttributeError, + and the output of a hard-coded prompt. + """ + if file is None: + file = warning_stream + try: + file.write(idle_formatwarning( + message, category, filename, lineno, line=line)) + file.write(">>> ") + except (AttributeError, OSError): + pass # if file (probably __stderr__) is invalid, skip warning. + +_warnings_showwarning = None + +def capture_warnings(capture): + "Replace warning.showwarning with idle_showwarning, or reverse." + + global _warnings_showwarning + if capture: + if _warnings_showwarning is None: + _warnings_showwarning = warnings.showwarning + warnings.showwarning = idle_showwarning + else: + if _warnings_showwarning is not None: + warnings.showwarning = _warnings_showwarning + _warnings_showwarning = None + +capture_warnings(True) + +def extended_linecache_checkcache(filename=None, + orig_checkcache=linecache.checkcache): + """Extend linecache.checkcache to preserve the entries + + Rather than repeating the linecache code, patch it to save the + entries, call the original linecache.checkcache() + (skipping them), and then restore the saved entries. + + orig_checkcache is bound at definition time to the original + method, allowing it to be patched. + """ + cache = linecache.cache + save = {} + for key in list(cache): + if key[:1] + key[-1:] == '<>': + save[key] = cache.pop(key) + orig_checkcache(filename) + cache.update(save) + +# Patch linecache.checkcache(): +linecache.checkcache = extended_linecache_checkcache + + +class PyShellEditorWindow(EditorWindow): + "Regular text edit window in IDLE, supports breakpoints" + + def __init__(self, *args): + self.breakpoints = [] + EditorWindow.__init__(self, *args) + self.text.bind("<>", self.set_breakpoint_here) + self.text.bind("<>", self.clear_breakpoint_here) + self.text.bind("<>", self.flist.open_shell) + + #TODO: don't read/write this from/to .idlerc when testing + self.breakpointPath = os.path.join( + idleConf.userdir, 'breakpoints.lst') + # whenever a file is changed, restore breakpoints + def filename_changed_hook(old_hook=self.io.filename_change_hook, + self=self): + self.restore_file_breaks() + old_hook() + self.io.set_filename_change_hook(filename_changed_hook) + if self.io.filename: + self.restore_file_breaks() + self.color_breakpoint_text() + + rmenu_specs = [ + ("Cut", "<>", "rmenu_check_cut"), + ("Copy", "<>", "rmenu_check_copy"), + ("Paste", "<>", "rmenu_check_paste"), + (None, None, None), + ("Set Breakpoint", "<>", None), + ("Clear Breakpoint", "<>", None) + ] + + def color_breakpoint_text(self, color=True): + "Turn colorizing of breakpoint text on or off" + if self.io is None: + # possible due to update in restore_file_breaks + return + if color: + theme = idleConf.CurrentTheme() + cfg = idleConf.GetHighlight(theme, "break") + else: + cfg = {'foreground': '', 'background': ''} + self.text.tag_config('BREAK', cfg) + + def set_breakpoint(self, lineno): + text = self.text + filename = self.io.filename + text.tag_add("BREAK", "%d.0" % lineno, "%d.0" % (lineno+1)) + try: + self.breakpoints.index(lineno) + except ValueError: # only add if missing, i.e. do once + self.breakpoints.append(lineno) + try: # update the subprocess debugger + debug = self.flist.pyshell.interp.debugger + debug.set_breakpoint_here(filename, lineno) + except: # but debugger may not be active right now.... + pass + + def set_breakpoint_here(self, event=None): + text = self.text + filename = self.io.filename + if not filename: + text.bell() + return + lineno = int(float(text.index("insert"))) + self.set_breakpoint(lineno) + + def clear_breakpoint_here(self, event=None): + text = self.text + filename = self.io.filename + if not filename: + text.bell() + return + lineno = int(float(text.index("insert"))) + try: + self.breakpoints.remove(lineno) + except: + pass + text.tag_remove("BREAK", "insert linestart",\ + "insert lineend +1char") + try: + debug = self.flist.pyshell.interp.debugger + debug.clear_breakpoint_here(filename, lineno) + except: + pass + + def clear_file_breaks(self): + if self.breakpoints: + text = self.text + filename = self.io.filename + if not filename: + text.bell() + return + self.breakpoints = [] + text.tag_remove("BREAK", "1.0", END) + try: + debug = self.flist.pyshell.interp.debugger + debug.clear_file_breaks(filename) + except: + pass + + def store_file_breaks(self): + "Save breakpoints when file is saved" + # XXX 13 Dec 2002 KBK Currently the file must be saved before it can + # be run. The breaks are saved at that time. If we introduce + # a temporary file save feature the save breaks functionality + # needs to be re-verified, since the breaks at the time the + # temp file is created may differ from the breaks at the last + # permanent save of the file. Currently, a break introduced + # after a save will be effective, but not persistent. + # This is necessary to keep the saved breaks synched with the + # saved file. + # + # Breakpoints are set as tagged ranges in the text. + # Since a modified file has to be saved before it is + # run, and since self.breakpoints (from which the subprocess + # debugger is loaded) is updated during the save, the visible + # breaks stay synched with the subprocess even if one of these + # unexpected breakpoint deletions occurs. + breaks = self.breakpoints + filename = self.io.filename + try: + with open(self.breakpointPath, "r") as fp: + lines = fp.readlines() + except OSError: + lines = [] + try: + with open(self.breakpointPath, "w") as new_file: + for line in lines: + if not line.startswith(filename + '='): + new_file.write(line) + self.update_breakpoints() + breaks = self.breakpoints + if breaks: + new_file.write(filename + '=' + str(breaks) + '\n') + except OSError as err: + if not getattr(self.root, "breakpoint_error_displayed", False): + self.root.breakpoint_error_displayed = True + messagebox.showerror(title='IDLE Error', + message='Unable to update breakpoint list:\n%s' + % str(err), + parent=self.text) + + def restore_file_breaks(self): + self.text.update() # this enables setting "BREAK" tags to be visible + if self.io is None: + # can happen if IDLE closes due to the .update() call + return + filename = self.io.filename + if filename is None: + return + if os.path.isfile(self.breakpointPath): + with open(self.breakpointPath, "r") as fp: + lines = fp.readlines() + for line in lines: + if line.startswith(filename + '='): + breakpoint_linenumbers = eval(line[len(filename)+1:]) + for breakpoint_linenumber in breakpoint_linenumbers: + self.set_breakpoint(breakpoint_linenumber) + + def update_breakpoints(self): + "Retrieves all the breakpoints in the current window" + text = self.text + ranges = text.tag_ranges("BREAK") + linenumber_list = self.ranges_to_linenumbers(ranges) + self.breakpoints = linenumber_list + + def ranges_to_linenumbers(self, ranges): + lines = [] + for index in range(0, len(ranges), 2): + lineno = int(float(ranges[index].string)) + end = int(float(ranges[index+1].string)) + while lineno < end: + lines.append(lineno) + lineno += 1 + return lines + +# XXX 13 Dec 2002 KBK Not used currently +# def saved_change_hook(self): +# "Extend base method - clear breaks if module is modified" +# if not self.get_saved(): +# self.clear_file_breaks() +# EditorWindow.saved_change_hook(self) + + def _close(self): + "Extend base method - clear breaks when module is closed" + self.clear_file_breaks() + EditorWindow._close(self) + + +class PyShellFileList(FileList): + "Extend base class: IDLE supports a shell and breakpoints" + + # override FileList's class variable, instances return PyShellEditorWindow + # instead of EditorWindow when new edit windows are created. + EditorWindow = PyShellEditorWindow + + pyshell = None + + def open_shell(self, event=None): + if self.pyshell: + self.pyshell.top.wakeup() + else: + self.pyshell = PyShell(self) + if self.pyshell: + if not self.pyshell.begin(): + return None + return self.pyshell + + +class ModifiedColorDelegator(ColorDelegator): + "Extend base class: colorizer for the shell window itself" + def recolorize_main(self): + self.tag_remove("TODO", "1.0", "iomark") + self.tag_add("SYNC", "1.0", "iomark") + ColorDelegator.recolorize_main(self) + + def removecolors(self): + # Don't remove shell color tags before "iomark" + for tag in self.tagdefs: + self.tag_remove(tag, "iomark", "end") + + +class ModifiedUndoDelegator(UndoDelegator): + "Extend base class: forbid insert/delete before the I/O mark" + def insert(self, index, chars, tags=None): + try: + if self.delegate.compare(index, "<", "iomark"): + self.delegate.bell() + return + except TclError: + pass + UndoDelegator.insert(self, index, chars, tags) + + def delete(self, index1, index2=None): + try: + if self.delegate.compare(index1, "<", "iomark"): + self.delegate.bell() + return + except TclError: + pass + UndoDelegator.delete(self, index1, index2) + + def undo_event(self, event): + # Temporarily monkey-patch the delegate's .insert() method to + # always use the "stdin" tag. This is needed for undo-ing + # deletions to preserve the "stdin" tag, because UndoDelegator + # doesn't preserve tags for deleted text. + orig_insert = self.delegate.insert + self.delegate.insert = \ + lambda index, chars: orig_insert(index, chars, "stdin") + try: + super().undo_event(event) + finally: + self.delegate.insert = orig_insert + + +class UserInputTaggingDelegator(Delegator): + """Delegator used to tag user input with "stdin".""" + def insert(self, index, chars, tags=None): + if tags is None: + tags = "stdin" + self.delegate.insert(index, chars, tags) + + +class MyRPCClient(rpc.RPCClient): + + def handle_EOF(self): + "Override the base class - just re-raise EOFError" + raise EOFError + +def restart_line(width, filename): # See bpo-38141. + """Return width long restart line formatted with filename. + + Fill line with balanced '='s, with any extras and at least one at + the beginning. Do not end with a trailing space. + """ + tag = f"= RESTART: {filename or 'Shell'} =" + if width >= len(tag): + div, mod = divmod((width -len(tag)), 2) + return f"{(div+mod)*'='}{tag}{div*'='}" + else: + return tag[:-2] # Remove ' ='. + + +class ModifiedInterpreter(InteractiveInterpreter): + + def __init__(self, tkconsole): + self.tkconsole = tkconsole + locals = sys.modules['__main__'].__dict__ + InteractiveInterpreter.__init__(self, locals=locals) + self.restarting = False + self.subprocess_arglist = None + self.port = PORT + self.original_compiler_flags = self.compile.compiler.flags + + _afterid = None + rpcclt = None + rpcsubproc = None + + def spawn_subprocess(self): + if self.subprocess_arglist is None: + self.subprocess_arglist = self.build_subprocess_arglist() + self.rpcsubproc = subprocess.Popen(self.subprocess_arglist) + + def build_subprocess_arglist(self): + assert (self.port!=0), ( + "Socket should have been assigned a port number.") + w = ['-W' + s for s in sys.warnoptions] + # Maybe IDLE is installed and is being accessed via sys.path, + # or maybe it's not installed and the idle.py script is being + # run from the IDLE source directory. + del_exitf = idleConf.GetOption('main', 'General', 'delete-exitfunc', + default=False, type='bool') + command = "__import__('idlelib.run').run.main(%r)" % (del_exitf,) + return [sys.executable] + w + ["-c", command, str(self.port)] + + def start_subprocess(self): + addr = (HOST, self.port) + # GUI makes several attempts to acquire socket, listens for connection + for i in range(3): + time.sleep(i) + try: + self.rpcclt = MyRPCClient(addr) + break + except OSError: + pass + else: + self.display_port_binding_error() + return None + # if PORT was 0, system will assign an 'ephemeral' port. Find it out: + self.port = self.rpcclt.listening_sock.getsockname()[1] + # if PORT was not 0, probably working with a remote execution server + if PORT != 0: + # To allow reconnection within the 2MSL wait (cf. Stevens TCP + # V1, 18.6), set SO_REUSEADDR. Note that this can be problematic + # on Windows since the implementation allows two active sockets on + # the same address! + self.rpcclt.listening_sock.setsockopt(socket.SOL_SOCKET, + socket.SO_REUSEADDR, 1) + self.spawn_subprocess() + #time.sleep(20) # test to simulate GUI not accepting connection + # Accept the connection from the Python execution server + self.rpcclt.listening_sock.settimeout(10) + try: + self.rpcclt.accept() + except TimeoutError: + self.display_no_subprocess_error() + return None + self.rpcclt.register("console", self.tkconsole) + self.rpcclt.register("stdin", self.tkconsole.stdin) + self.rpcclt.register("stdout", self.tkconsole.stdout) + self.rpcclt.register("stderr", self.tkconsole.stderr) + self.rpcclt.register("flist", self.tkconsole.flist) + self.rpcclt.register("linecache", linecache) + self.rpcclt.register("interp", self) + self.transfer_path(with_cwd=True) + self.poll_subprocess() + return self.rpcclt + + def restart_subprocess(self, with_cwd=False, filename=''): + if self.restarting: + return self.rpcclt + self.restarting = True + # close only the subprocess debugger + debug = self.getdebugger() + if debug: + try: + # Only close subprocess debugger, don't unregister gui_adap! + debugger_r.close_subprocess_debugger(self.rpcclt) + except: + pass + # Kill subprocess, spawn a new one, accept connection. + self.rpcclt.close() + self.terminate_subprocess() + console = self.tkconsole + was_executing = console.executing + console.executing = False + self.spawn_subprocess() + try: + self.rpcclt.accept() + except TimeoutError: + self.display_no_subprocess_error() + return None + self.transfer_path(with_cwd=with_cwd) + console.stop_readline() + # annotate restart in shell window and mark it + console.text.delete("iomark", "end-1c") + console.write('\n') + console.write(restart_line(console.width, filename)) + console.text.mark_set("restart", "end-1c") + console.text.mark_gravity("restart", "left") + if not filename: + console.showprompt() + # restart subprocess debugger + if debug: + # Restarted debugger connects to current instance of debug GUI + debugger_r.restart_subprocess_debugger(self.rpcclt) + # reload remote debugger breakpoints for all PyShellEditWindows + debug.load_breakpoints() + self.compile.compiler.flags = self.original_compiler_flags + self.restarting = False + return self.rpcclt + + def __request_interrupt(self): + self.rpcclt.remotecall("exec", "interrupt_the_server", (), {}) + + def interrupt_subprocess(self): + threading.Thread(target=self.__request_interrupt).start() + + def kill_subprocess(self): + if self._afterid is not None: + self.tkconsole.text.after_cancel(self._afterid) + try: + self.rpcclt.listening_sock.close() + except AttributeError: # no socket + pass + try: + self.rpcclt.close() + except AttributeError: # no socket + pass + self.terminate_subprocess() + self.tkconsole.executing = False + self.rpcclt = None + + def terminate_subprocess(self): + "Make sure subprocess is terminated" + try: + self.rpcsubproc.kill() + except OSError: + # process already terminated + return + else: + try: + self.rpcsubproc.wait() + except OSError: + return + + def transfer_path(self, with_cwd=False): + if with_cwd: # Issue 13506 + path = [''] # include Current Working Directory + path.extend(sys.path) + else: + path = sys.path + + self.runcommand("""if 1: + import sys as _sys + _sys.path = %r + del _sys + \n""" % (path,)) + + active_seq = None + + def poll_subprocess(self): + clt = self.rpcclt + if clt is None: + return + try: + response = clt.pollresponse(self.active_seq, wait=0.05) + except (EOFError, OSError, KeyboardInterrupt): + # lost connection or subprocess terminated itself, restart + # [the KBI is from rpc.SocketIO.handle_EOF()] + if self.tkconsole.closing: + return + response = None + self.restart_subprocess() + if response: + self.tkconsole.resetoutput() + self.active_seq = None + how, what = response + console = self.tkconsole.console + if how == "OK": + if what is not None: + print(repr(what), file=console) + elif how == "EXCEPTION": + if self.tkconsole.getvar("<>"): + self.remote_stack_viewer() + elif how == "ERROR": + errmsg = "pyshell.ModifiedInterpreter: Subprocess ERROR:\n" + print(errmsg, what, file=sys.__stderr__) + print(errmsg, what, file=console) + # we received a response to the currently active seq number: + try: + self.tkconsole.endexecuting() + except AttributeError: # shell may have closed + pass + # Reschedule myself + if not self.tkconsole.closing: + self._afterid = self.tkconsole.text.after( + self.tkconsole.pollinterval, self.poll_subprocess) + + debugger = None + + def setdebugger(self, debugger): + self.debugger = debugger + + def getdebugger(self): + return self.debugger + + def open_remote_stack_viewer(self): + """Initiate the remote stack viewer from a separate thread. + + This method is called from the subprocess, and by returning from this + method we allow the subprocess to unblock. After a bit the shell + requests the subprocess to open the remote stack viewer which returns a + static object looking at the last exception. It is queried through + the RPC mechanism. + + """ + self.tkconsole.text.after(300, self.remote_stack_viewer) + return + + def remote_stack_viewer(self): + from idlelib import debugobj_r + oid = self.rpcclt.remotequeue("exec", "stackviewer", ("flist",), {}) + if oid is None: + self.tkconsole.root.bell() + return + item = debugobj_r.StubObjectTreeItem(self.rpcclt, oid) + from idlelib.tree import ScrolledCanvas, TreeNode + top = Toplevel(self.tkconsole.root) + theme = idleConf.CurrentTheme() + background = idleConf.GetHighlight(theme, 'normal')['background'] + sc = ScrolledCanvas(top, bg=background, highlightthickness=0) + sc.frame.pack(expand=1, fill="both") + node = TreeNode(sc.canvas, None, item) + node.expand() + # XXX Should GC the remote tree when closing the window + + gid = 0 + + def execsource(self, source): + "Like runsource() but assumes complete exec source" + filename = self.stuffsource(source) + self.execfile(filename, source) + + def execfile(self, filename, source=None): + "Execute an existing file" + if source is None: + with tokenize.open(filename) as fp: + source = fp.read() + if use_subprocess: + source = (f"__file__ = r'''{os.path.abspath(filename)}'''\n" + + source + "\ndel __file__") + try: + code = compile(source, filename, "exec") + except (OverflowError, SyntaxError): + self.tkconsole.resetoutput() + print('*** Error in script or command!\n' + 'Traceback (most recent call last):', + file=self.tkconsole.stderr) + InteractiveInterpreter.showsyntaxerror(self, filename) + self.tkconsole.showprompt() + else: + self.runcode(code) + + def runsource(self, source): + "Extend base class method: Stuff the source in the line cache first" + filename = self.stuffsource(source) + # at the moment, InteractiveInterpreter expects str + assert isinstance(source, str) + # InteractiveInterpreter.runsource() calls its runcode() method, + # which is overridden (see below) + return InteractiveInterpreter.runsource(self, source, filename) + + def stuffsource(self, source): + "Stuff source in the filename cache" + filename = "" % self.gid + self.gid = self.gid + 1 + lines = source.split("\n") + linecache.cache[filename] = len(source)+1, 0, lines, filename + return filename + + def prepend_syspath(self, filename): + "Prepend sys.path with file's directory if not already included" + self.runcommand("""if 1: + _filename = %r + import sys as _sys + from os.path import dirname as _dirname + _dir = _dirname(_filename) + if not _dir in _sys.path: + _sys.path.insert(0, _dir) + del _filename, _sys, _dirname, _dir + \n""" % (filename,)) + + def showsyntaxerror(self, filename=None): + """Override Interactive Interpreter method: Use Colorizing + + Color the offending position instead of printing it and pointing at it + with a caret. + + """ + tkconsole = self.tkconsole + text = tkconsole.text + text.tag_remove("ERROR", "1.0", "end") + type, value, tb = sys.exc_info() + msg = getattr(value, 'msg', '') or value or "" + lineno = getattr(value, 'lineno', '') or 1 + offset = getattr(value, 'offset', '') or 0 + if offset == 0: + lineno += 1 #mark end of offending line + if lineno == 1: + pos = "iomark + %d chars" % (offset-1) + else: + pos = "iomark linestart + %d lines + %d chars" % \ + (lineno-1, offset-1) + tkconsole.colorize_syntax_error(text, pos) + tkconsole.resetoutput() + self.write("SyntaxError: %s\n" % msg) + tkconsole.showprompt() + + def showtraceback(self): + "Extend base class method to reset output properly" + self.tkconsole.resetoutput() + self.checklinecache() + InteractiveInterpreter.showtraceback(self) + if self.tkconsole.getvar("<>"): + self.tkconsole.open_stack_viewer() + + def checklinecache(self): + c = linecache.cache + for key in list(c.keys()): + if key[:1] + key[-1:] != "<>": + del c[key] + + def runcommand(self, code): + "Run the code without invoking the debugger" + # The code better not raise an exception! + if self.tkconsole.executing: + self.display_executing_dialog() + return 0 + if self.rpcclt: + self.rpcclt.remotequeue("exec", "runcode", (code,), {}) + else: + exec(code, self.locals) + return 1 + + def runcode(self, code): + "Override base class method" + if self.tkconsole.executing: + self.restart_subprocess() + self.checklinecache() + debugger = self.debugger + try: + self.tkconsole.beginexecuting() + if not debugger and self.rpcclt is not None: + self.active_seq = self.rpcclt.asyncqueue("exec", "runcode", + (code,), {}) + elif debugger: + debugger.run(code, self.locals) + else: + exec(code, self.locals) + except SystemExit: + if not self.tkconsole.closing: + if messagebox.askyesno( + "Exit?", + "Do you want to exit altogether?", + default="yes", + parent=self.tkconsole.text): + raise + else: + self.showtraceback() + else: + raise + except: + if use_subprocess: + print("IDLE internal error in runcode()", + file=self.tkconsole.stderr) + self.showtraceback() + self.tkconsole.endexecuting() + else: + if self.tkconsole.canceled: + self.tkconsole.canceled = False + print("KeyboardInterrupt", file=self.tkconsole.stderr) + else: + self.showtraceback() + finally: + if not use_subprocess: + try: + self.tkconsole.endexecuting() + except AttributeError: # shell may have closed + pass + + def write(self, s): + "Override base class method" + return self.tkconsole.stderr.write(s) + + def display_port_binding_error(self): + messagebox.showerror( + "Port Binding Error", + "IDLE can't bind to a TCP/IP port, which is necessary to " + "communicate with its Python execution server. This might be " + "because no networking is installed on this computer. " + "Run IDLE with the -n command line switch to start without a " + "subprocess and refer to Help/IDLE Help 'Running without a " + "subprocess' for further details.", + parent=self.tkconsole.text) + + def display_no_subprocess_error(self): + messagebox.showerror( + "Subprocess Connection Error", + "IDLE's subprocess didn't make connection.\n" + "See the 'Startup failure' section of the IDLE doc, online at\n" + "https://docs.python.org/3/library/idle.html#startup-failure", + parent=self.tkconsole.text) + + def display_executing_dialog(self): + messagebox.showerror( + "Already executing", + "The Python Shell window is already executing a command; " + "please wait until it is finished.", + parent=self.tkconsole.text) + + +class PyShell(OutputWindow): + from idlelib.squeezer import Squeezer + + shell_title = "IDLE Shell " + python_version() + + # Override classes + ColorDelegator = ModifiedColorDelegator + UndoDelegator = ModifiedUndoDelegator + + # Override menus + menu_specs = [ + ("file", "_File"), + ("edit", "_Edit"), + ("debug", "_Debug"), + ("options", "_Options"), + ("window", "_Window"), + ("help", "_Help"), + ] + + # Extend right-click context menu + rmenu_specs = OutputWindow.rmenu_specs + [ + ("Squeeze", "<>"), + ] + _idx = 1 + len(list(itertools.takewhile( + lambda rmenu_item: rmenu_item[0] != "Copy", rmenu_specs) + )) + rmenu_specs.insert(_idx, ("Copy with prompts", + "<>", + "rmenu_check_copy")) + del _idx + + allow_line_numbers = False + user_input_insert_tags = "stdin" + + # New classes + from idlelib.history import History + from idlelib.sidebar import ShellSidebar + + def __init__(self, flist=None): + if use_subprocess: + ms = self.menu_specs + if ms[2][0] != "shell": + ms.insert(2, ("shell", "She_ll")) + self.interp = ModifiedInterpreter(self) + if flist is None: + root = Tk() + fixwordbreaks(root) + root.withdraw() + flist = PyShellFileList(root) + + self.shell_sidebar = None # initialized below + + OutputWindow.__init__(self, flist, None, None) + + self.usetabs = False + # indentwidth must be 8 when using tabs. See note in EditorWindow: + self.indentwidth = 4 + + self.sys_ps1 = sys.ps1 if hasattr(sys, 'ps1') else '>>>\n' + self.prompt_last_line = self.sys_ps1.split('\n')[-1] + self.prompt = self.sys_ps1 # Changes when debug active + + text = self.text + text.configure(wrap="char") + text.bind("<>", self.enter_callback) + text.bind("<>", self.linefeed_callback) + text.bind("<>", self.cancel_callback) + text.bind("<>", self.eof_callback) + text.bind("<>", self.open_stack_viewer) + text.bind("<>", self.toggle_debugger) + text.bind("<>", self.toggle_jit_stack_viewer) + text.bind("<>", self.copy_with_prompts_callback) + if use_subprocess: + text.bind("<>", self.view_restart_mark) + text.bind("<>", self.restart_shell) + self.squeezer = self.Squeezer(self) + text.bind("<>", + self.squeeze_current_text_event) + + self.save_stdout = sys.stdout + self.save_stderr = sys.stderr + self.save_stdin = sys.stdin + from idlelib import iomenu + self.stdin = StdInputFile(self, "stdin", + iomenu.encoding, iomenu.errors) + self.stdout = StdOutputFile(self, "stdout", + iomenu.encoding, iomenu.errors) + self.stderr = StdOutputFile(self, "stderr", + iomenu.encoding, "backslashreplace") + self.console = StdOutputFile(self, "console", + iomenu.encoding, iomenu.errors) + if not use_subprocess: + sys.stdout = self.stdout + sys.stderr = self.stderr + sys.stdin = self.stdin + try: + # page help() text to shell. + import pydoc # import must be done here to capture i/o rebinding. + # XXX KBK 27Dec07 use text viewer someday, but must work w/o subproc + pydoc.pager = pydoc.plainpager + except: + sys.stderr = sys.__stderr__ + raise + # + self.history = self.History(self.text) + # + self.pollinterval = 50 # millisec + + self.shell_sidebar = self.ShellSidebar(self) + + # Insert UserInputTaggingDelegator at the top of the percolator, + # but make calls to text.insert() skip it. This causes only insert + # events generated in Tcl/Tk to go through this delegator. + self.text.insert = self.per.top.insert + self.per.insertfilter(UserInputTaggingDelegator()) + + def ResetFont(self): + super().ResetFont() + + if self.shell_sidebar is not None: + self.shell_sidebar.update_font() + + def ResetColorizer(self): + super().ResetColorizer() + + theme = idleConf.CurrentTheme() + tag_colors = { + "stdin": {'background': None, 'foreground': None}, + "stdout": idleConf.GetHighlight(theme, "stdout"), + "stderr": idleConf.GetHighlight(theme, "stderr"), + "console": idleConf.GetHighlight(theme, "normal"), + } + for tag, tag_colors_config in tag_colors.items(): + self.text.tag_configure(tag, **tag_colors_config) + + if self.shell_sidebar is not None: + self.shell_sidebar.update_colors() + + def replace_event(self, event): + replace.replace(self.text, insert_tags="stdin") + return "break" + + def get_standard_extension_names(self): + return idleConf.GetExtensions(shell_only=True) + + def get_prompt_text(self, first, last): + """Return text between first and last with prompts added.""" + text = self.text.get(first, last) + lineno_range = range( + int(float(first)), + int(float(last)) + ) + prompts = [ + self.shell_sidebar.line_prompts.get(lineno) + for lineno in lineno_range + ] + return "\n".join( + line if prompt is None else f"{prompt} {line}" + for prompt, line in zip(prompts, text.splitlines()) + ) + "\n" + + + def copy_with_prompts_callback(self, event=None): + """Copy selected lines to the clipboard, with prompts. + + This makes the copied text useful for doc-tests and interactive + shell code examples. + + This always copies entire lines, even if only part of the first + and/or last lines is selected. + """ + text = self.text + selfirst = text.index('sel.first linestart') + if selfirst is None: # Should not be possible. + return # No selection, do nothing. + sellast = text.index('sel.last') + if sellast[-1] != '0': + sellast = text.index("sel.last+1line linestart") + text.clipboard_clear() + prompt_text = self.get_prompt_text(selfirst, sellast) + text.clipboard_append(prompt_text) + + reading = False + executing = False + canceled = False + endoffile = False + closing = False + _stop_readline_flag = False + + def set_warning_stream(self, stream): + global warning_stream + warning_stream = stream + + def get_warning_stream(self): + return warning_stream + + def toggle_debugger(self, event=None): + if self.executing: + messagebox.showerror("Don't debug now", + "You can only toggle the debugger when idle", + parent=self.text) + self.set_debugger_indicator() + return "break" + else: + db = self.interp.getdebugger() + if db: + self.close_debugger() + else: + self.open_debugger() + + def set_debugger_indicator(self): + db = self.interp.getdebugger() + self.setvar("<>", not not db) + + def toggle_jit_stack_viewer(self, event=None): + pass # All we need is the variable + + def close_debugger(self): + db = self.interp.getdebugger() + if db: + self.interp.setdebugger(None) + db.close() + if self.interp.rpcclt: + debugger_r.close_remote_debugger(self.interp.rpcclt) + self.resetoutput() + self.console.write("[DEBUG OFF]\n") + self.prompt = self.sys_ps1 + self.showprompt() + self.set_debugger_indicator() + + def open_debugger(self): + if self.interp.rpcclt: + dbg_gui = debugger_r.start_remote_debugger(self.interp.rpcclt, + self) + else: + dbg_gui = debugger.Debugger(self) + self.interp.setdebugger(dbg_gui) + dbg_gui.load_breakpoints() + self.prompt = "[DEBUG ON]\n" + self.sys_ps1 + self.showprompt() + self.set_debugger_indicator() + + def debug_menu_postcommand(self): + state = 'disabled' if self.executing else 'normal' + self.update_menu_state('debug', '*tack*iewer', state) + + def beginexecuting(self): + "Helper for ModifiedInterpreter" + self.resetoutput() + self.executing = True + + def endexecuting(self): + "Helper for ModifiedInterpreter" + self.executing = False + self.canceled = False + self.showprompt() + + def close(self): + "Extend EditorWindow.close()" + if self.executing: + response = messagebox.askokcancel( + "Kill?", + "Your program is still running!\n Do you want to kill it?", + default="ok", + parent=self.text) + if response is False: + return "cancel" + self.stop_readline() + self.canceled = True + self.closing = True + return EditorWindow.close(self) + + def _close(self): + "Extend EditorWindow._close(), shut down debugger and execution server" + self.close_debugger() + if use_subprocess: + self.interp.kill_subprocess() + # Restore std streams + sys.stdout = self.save_stdout + sys.stderr = self.save_stderr + sys.stdin = self.save_stdin + # Break cycles + self.interp = None + self.console = None + self.flist.pyshell = None + self.history = None + EditorWindow._close(self) + + def ispythonsource(self, filename): + "Override EditorWindow method: never remove the colorizer" + return True + + def short_title(self): + return self.shell_title + + COPYRIGHT = \ + 'Type "help", "copyright", "credits" or "license()" for more information.' + + def begin(self): + self.text.mark_set("iomark", "insert") + self.resetoutput() + if use_subprocess: + nosub = '' + client = self.interp.start_subprocess() + if not client: + self.close() + return False + else: + nosub = ("==== No Subprocess ====\n\n" + + "WARNING: Running IDLE without a Subprocess is deprecated\n" + + "and will be removed in a later version. See Help/IDLE Help\n" + + "for details.\n\n") + sys.displayhook = rpc.displayhook + + self.write("Python %s on %s\n%s\n%s" % + (sys.version, sys.platform, self.COPYRIGHT, nosub)) + self.text.focus_force() + self.showprompt() + # User code should use separate default Tk root window + import tkinter + tkinter._support_default_root = True + tkinter._default_root = None + return True + + def stop_readline(self): + if not self.reading: # no nested mainloop to exit. + return + self._stop_readline_flag = True + self.top.quit() + + def readline(self): + save = self.reading + try: + self.reading = True + self.top.mainloop() # nested mainloop() + finally: + self.reading = save + if self._stop_readline_flag: + self._stop_readline_flag = False + return "" + line = self.text.get("iomark", "end-1c") + if len(line) == 0: # may be EOF if we quit our mainloop with Ctrl-C + line = "\n" + self.resetoutput() + if self.canceled: + self.canceled = False + if not use_subprocess: + raise KeyboardInterrupt + if self.endoffile: + self.endoffile = False + line = "" + return line + + def isatty(self): + return True + + def cancel_callback(self, event=None): + try: + if self.text.compare("sel.first", "!=", "sel.last"): + return # Active selection -- always use default binding + except: + pass + if not (self.executing or self.reading): + self.resetoutput() + self.interp.write("KeyboardInterrupt\n") + self.showprompt() + return "break" + self.endoffile = False + self.canceled = True + if (self.executing and self.interp.rpcclt): + if self.interp.getdebugger(): + self.interp.restart_subprocess() + else: + self.interp.interrupt_subprocess() + if self.reading: + self.top.quit() # exit the nested mainloop() in readline() + return "break" + + def eof_callback(self, event): + if self.executing and not self.reading: + return # Let the default binding (delete next char) take over + if not (self.text.compare("iomark", "==", "insert") and + self.text.compare("insert", "==", "end-1c")): + return # Let the default binding (delete next char) take over + if not self.executing: + self.resetoutput() + self.close() + else: + self.canceled = False + self.endoffile = True + self.top.quit() + return "break" + + def linefeed_callback(self, event): + # Insert a linefeed without entering anything (still autoindented) + if self.reading: + self.text.insert("insert", "\n") + self.text.see("insert") + else: + self.newline_and_indent_event(event) + return "break" + + def enter_callback(self, event): + if self.executing and not self.reading: + return # Let the default binding (insert '\n') take over + # If some text is selected, recall the selection + # (but only if this before the I/O mark) + try: + sel = self.text.get("sel.first", "sel.last") + if sel: + if self.text.compare("sel.last", "<=", "iomark"): + self.recall(sel, event) + return "break" + except: + pass + # If we're strictly before the line containing iomark, recall + # the current line, less a leading prompt, less leading or + # trailing whitespace + if self.text.compare("insert", "<", "iomark linestart"): + # Check if there's a relevant stdin range -- if so, use it. + # Note: "stdin" blocks may include several successive statements, + # so look for "console" tags on the newline before each statement + # (and possibly on prompts). + prev = self.text.tag_prevrange("stdin", "insert") + if ( + prev and + self.text.compare("insert", "<", prev[1]) and + # The following is needed to handle empty statements. + "console" not in self.text.tag_names("insert") + ): + prev_cons = self.text.tag_prevrange("console", "insert") + if prev_cons and self.text.compare(prev_cons[1], ">=", prev[0]): + prev = (prev_cons[1], prev[1]) + next_cons = self.text.tag_nextrange("console", "insert") + if next_cons and self.text.compare(next_cons[0], "<", prev[1]): + prev = (prev[0], self.text.index(next_cons[0] + "+1c")) + self.recall(self.text.get(prev[0], prev[1]), event) + return "break" + next = self.text.tag_nextrange("stdin", "insert") + if next and self.text.compare("insert lineend", ">=", next[0]): + next_cons = self.text.tag_nextrange("console", "insert lineend") + if next_cons and self.text.compare(next_cons[0], "<", next[1]): + next = (next[0], self.text.index(next_cons[0] + "+1c")) + self.recall(self.text.get(next[0], next[1]), event) + return "break" + # No stdin mark -- just get the current line, less any prompt + indices = self.text.tag_nextrange("console", "insert linestart") + if indices and \ + self.text.compare(indices[0], "<=", "insert linestart"): + self.recall(self.text.get(indices[1], "insert lineend"), event) + else: + self.recall(self.text.get("insert linestart", "insert lineend"), event) + return "break" + # If we're between the beginning of the line and the iomark, i.e. + # in the prompt area, move to the end of the prompt + if self.text.compare("insert", "<", "iomark"): + self.text.mark_set("insert", "iomark") + # If we're in the current input and there's only whitespace + # beyond the cursor, erase that whitespace first + s = self.text.get("insert", "end-1c") + if s and not s.strip(): + self.text.delete("insert", "end-1c") + # If we're in the current input before its last line, + # insert a newline right at the insert point + if self.text.compare("insert", "<", "end-1c linestart"): + self.newline_and_indent_event(event) + return "break" + # We're in the last line; append a newline and submit it + self.text.mark_set("insert", "end-1c") + if self.reading: + self.text.insert("insert", "\n") + self.text.see("insert") + else: + self.newline_and_indent_event(event) + self.text.update_idletasks() + if self.reading: + self.top.quit() # Break out of recursive mainloop() + else: + self.runit() + return "break" + + def recall(self, s, event): + # remove leading and trailing empty or whitespace lines + s = re.sub(r'^\s*\n', '', s) + s = re.sub(r'\n\s*$', '', s) + lines = s.split('\n') + self.text.undo_block_start() + try: + self.text.tag_remove("sel", "1.0", "end") + self.text.mark_set("insert", "end-1c") + prefix = self.text.get("insert linestart", "insert") + if prefix.rstrip().endswith(':'): + self.newline_and_indent_event(event) + prefix = self.text.get("insert linestart", "insert") + self.text.insert("insert", lines[0].strip(), + self.user_input_insert_tags) + if len(lines) > 1: + orig_base_indent = re.search(r'^([ \t]*)', lines[0]).group(0) + new_base_indent = re.search(r'^([ \t]*)', prefix).group(0) + for line in lines[1:]: + if line.startswith(orig_base_indent): + # replace orig base indentation with new indentation + line = new_base_indent + line[len(orig_base_indent):] + self.text.insert('insert', '\n' + line.rstrip(), + self.user_input_insert_tags) + finally: + self.text.see("insert") + self.text.undo_block_stop() + + _last_newline_re = re.compile(r"[ \t]*(\n[ \t]*)?\Z") + def runit(self): + index_before = self.text.index("end-2c") + line = self.text.get("iomark", "end-1c") + # Strip off last newline and surrounding whitespace. + # (To allow you to hit return twice to end a statement.) + line = self._last_newline_re.sub("", line) + input_is_complete = self.interp.runsource(line) + if not input_is_complete: + if self.text.get(index_before) == '\n': + self.text.tag_remove(self.user_input_insert_tags, index_before) + self.shell_sidebar.update_sidebar() + + def open_stack_viewer(self, event=None): + if self.interp.rpcclt: + return self.interp.remote_stack_viewer() + try: + sys.last_traceback + except: + messagebox.showerror("No stack trace", + "There is no stack trace yet.\n" + "(sys.last_traceback is not defined)", + parent=self.text) + return + from idlelib.stackviewer import StackBrowser + StackBrowser(self.root, self.flist) + + def view_restart_mark(self, event=None): + self.text.see("iomark") + self.text.see("restart") + + def restart_shell(self, event=None): + "Callback for Run/Restart Shell Cntl-F6" + self.interp.restart_subprocess(with_cwd=True) + + def showprompt(self): + self.resetoutput() + + prompt = self.prompt + if self.sys_ps1 and prompt.endswith(self.sys_ps1): + prompt = prompt[:-len(self.sys_ps1)] + self.text.tag_add("console", "iomark-1c") + self.console.write(prompt) + + self.shell_sidebar.update_sidebar() + self.text.mark_set("insert", "end-1c") + self.set_line_and_column() + self.io.reset_undo() + + def show_warning(self, msg): + width = self.interp.tkconsole.width + wrapper = TextWrapper(width=width, tabsize=8, expand_tabs=True) + wrapped_msg = '\n'.join(wrapper.wrap(msg)) + if not wrapped_msg.endswith('\n'): + wrapped_msg += '\n' + self.per.bottom.insert("iomark linestart", wrapped_msg, "stderr") + + def resetoutput(self): + source = self.text.get("iomark", "end-1c") + if self.history: + self.history.store(source) + if self.text.get("end-2c") != "\n": + self.text.insert("end-1c", "\n") + self.text.mark_set("iomark", "end-1c") + self.set_line_and_column() + self.ctip.remove_calltip_window() + + def write(self, s, tags=()): + try: + self.text.mark_gravity("iomark", "right") + count = OutputWindow.write(self, s, tags, "iomark") + self.text.mark_gravity("iomark", "left") + except: + raise ###pass # ### 11Aug07 KBK if we are expecting exceptions + # let's find out what they are and be specific. + if self.canceled: + self.canceled = False + if not use_subprocess: + raise KeyboardInterrupt + return count + + def rmenu_check_cut(self): + try: + if self.text.compare('sel.first', '<', 'iomark'): + return 'disabled' + except TclError: # no selection, so the index 'sel.first' doesn't exist + return 'disabled' + return super().rmenu_check_cut() + + def rmenu_check_paste(self): + if self.text.compare('insert','<','iomark'): + return 'disabled' + return super().rmenu_check_paste() + + def squeeze_current_text_event(self, event=None): + self.squeezer.squeeze_current_text() + self.shell_sidebar.update_sidebar() + + def on_squeezed_expand(self, index, text, tags): + self.shell_sidebar.update_sidebar() + + +def fix_x11_paste(root): + "Make paste replace selection on x11. See issue #5124." + if root._windowingsystem == 'x11': + for cls in 'Text', 'Entry', 'Spinbox': + root.bind_class( + cls, + '<>', + 'catch {%W delete sel.first sel.last}\n' + + root.bind_class(cls, '<>')) + + +usage_msg = """\ + +USAGE: idle [-deins] [-t title] [file]* + idle [-dns] [-t title] (-c cmd | -r file) [arg]* + idle [-dns] [-t title] - [arg]* + + -h print this help message and exit + -n run IDLE without a subprocess (DEPRECATED, + see Help/IDLE Help for details) + +The following options will override the IDLE 'settings' configuration: + + -e open an edit window + -i open a shell window + +The following options imply -i and will open a shell: + + -c cmd run the command in a shell, or + -r file run script from file + + -d enable the debugger + -s run $IDLESTARTUP or $PYTHONSTARTUP before anything else + -t title set title of shell window + +A default edit window will be bypassed when -c, -r, or - are used. + +[arg]* are passed to the command (-c) or script (-r) in sys.argv[1:]. + +Examples: + +idle + Open an edit window or shell depending on IDLE's configuration. + +idle foo.py foobar.py + Edit the files, also open a shell if configured to start with shell. + +idle -est "Baz" foo.py + Run $IDLESTARTUP or $PYTHONSTARTUP, edit foo.py, and open a shell + window with the title "Baz". + +idle -c "import sys; print(sys.argv)" "foo" + Open a shell window and run the command, passing "-c" in sys.argv[0] + and "foo" in sys.argv[1]. + +idle -d -s -r foo.py "Hello World" + Open a shell window, run a startup script, enable the debugger, and + run foo.py, passing "foo.py" in sys.argv[0] and "Hello World" in + sys.argv[1]. + +echo "import sys; print(sys.argv)" | idle - "foobar" + Open a shell window, run the script piped in, passing '' in sys.argv[0] + and "foobar" in sys.argv[1]. +""" + +def main(): + import getopt + from platform import system + from idlelib import testing # bool value + from idlelib import macosx + + global flist, root, use_subprocess + + capture_warnings(True) + use_subprocess = True + enable_shell = False + enable_edit = False + debug = False + cmd = None + script = None + startup = False + try: + opts, args = getopt.getopt(sys.argv[1:], "c:deihnr:st:") + except getopt.error as msg: + print("Error: %s\n%s" % (msg, usage_msg), file=sys.stderr) + sys.exit(2) + for o, a in opts: + if o == '-c': + cmd = a + enable_shell = True + if o == '-d': + debug = True + enable_shell = True + if o == '-e': + enable_edit = True + if o == '-h': + sys.stdout.write(usage_msg) + sys.exit() + if o == '-i': + enable_shell = True + if o == '-n': + print(" Warning: running IDLE without a subprocess is deprecated.", + file=sys.stderr) + use_subprocess = False + if o == '-r': + script = a + if os.path.isfile(script): + pass + else: + print("No script file: ", script) + sys.exit() + enable_shell = True + if o == '-s': + startup = True + enable_shell = True + if o == '-t': + PyShell.shell_title = a + enable_shell = True + if args and args[0] == '-': + cmd = sys.stdin.read() + enable_shell = True + # process sys.argv and sys.path: + for i in range(len(sys.path)): + sys.path[i] = os.path.abspath(sys.path[i]) + if args and args[0] == '-': + sys.argv = [''] + args[1:] + elif cmd: + sys.argv = ['-c'] + args + elif script: + sys.argv = [script] + args + elif args: + enable_edit = True + pathx = [] + for filename in args: + pathx.append(os.path.dirname(filename)) + for dir in pathx: + dir = os.path.abspath(dir) + if not dir in sys.path: + sys.path.insert(0, dir) + else: + dir = os.getcwd() + if dir not in sys.path: + sys.path.insert(0, dir) + # check the IDLE settings configuration (but command line overrides) + edit_start = idleConf.GetOption('main', 'General', + 'editor-on-startup', type='bool') + enable_edit = enable_edit or edit_start + enable_shell = enable_shell or not enable_edit + + # Setup root. Don't break user code run in IDLE process. + # Don't change environment when testing. + if use_subprocess and not testing: + NoDefaultRoot() + root = Tk(className="Idle") + root.withdraw() + from idlelib.run import fix_scaling + fix_scaling(root) + + # set application icon + icondir = os.path.join(os.path.dirname(__file__), 'Icons') + if system() == 'Windows': + iconfile = os.path.join(icondir, 'idle.ico') + root.wm_iconbitmap(default=iconfile) + elif not macosx.isAquaTk(): + if TkVersion >= 8.6: + ext = '.png' + sizes = (16, 32, 48, 256) + else: + ext = '.gif' + sizes = (16, 32, 48) + iconfiles = [os.path.join(icondir, 'idle_%d%s' % (size, ext)) + for size in sizes] + icons = [PhotoImage(master=root, file=iconfile) + for iconfile in iconfiles] + root.wm_iconphoto(True, *icons) + + # start editor and/or shell windows: + fixwordbreaks(root) + fix_x11_paste(root) + flist = PyShellFileList(root) + macosx.setupApp(root, flist) + + if enable_edit: + if not (cmd or script): + for filename in args[:]: + if flist.open(filename) is None: + # filename is a directory actually, disconsider it + args.remove(filename) + if not args: + flist.new() + + if enable_shell: + shell = flist.open_shell() + if not shell: + return # couldn't open shell + if macosx.isAquaTk() and flist.dict: + # On OSX: when the user has double-clicked on a file that causes + # IDLE to be launched the shell window will open just in front of + # the file she wants to see. Lower the interpreter window when + # there are open files. + shell.top.lower() + else: + shell = flist.pyshell + + # Handle remaining options. If any of these are set, enable_shell + # was set also, so shell must be true to reach here. + if debug: + shell.open_debugger() + if startup: + filename = os.environ.get("IDLESTARTUP") or \ + os.environ.get("PYTHONSTARTUP") + if filename and os.path.isfile(filename): + shell.interp.execfile(filename) + if cmd or script: + shell.interp.runcommand("""if 1: + import sys as _sys + _sys.argv = %r + del _sys + \n""" % (sys.argv,)) + if cmd: + shell.interp.execsource(cmd) + elif script: + shell.interp.prepend_syspath(script) + shell.interp.execfile(script) + elif shell: + # If there is a shell window and no cmd or script in progress, + # check for problematic issues and print warning message(s) in + # the IDLE shell window; this is less intrusive than always + # opening a separate window. + + # Warn if using a problematic OS X Tk version. + tkversionwarning = macosx.tkVersionWarning(root) + if tkversionwarning: + shell.show_warning(tkversionwarning) + + # Warn if the "Prefer tabs when opening documents" system + # preference is set to "Always". + prefer_tabs_preference_warning = macosx.preferTabsPreferenceWarning() + if prefer_tabs_preference_warning: + shell.show_warning(prefer_tabs_preference_warning) + + while flist.inversedict: # keep IDLE running while files are open. + root.mainloop() + root.destroy() + capture_warnings(False) + +if __name__ == "__main__": + main() + +capture_warnings(False) # Make sure turned off; see issue 18081 diff --git a/shared/package-files/08/08633c6992181e578f0dd027475c97dcc7c31aed0e71e66952223f638b5919a5/test_example.txt b/shared/package-files/08/08633c6992181e578f0dd027475c97dcc7c31aed0e71e66952223f638b5919a5/test_example.txt new file mode 100644 index 0000000000000000000000000000000000000000..f8b681eb4ff4410bc9d66a66ba77ee2c6dea6d12 --- /dev/null +++ b/shared/package-files/08/08633c6992181e578f0dd027475c97dcc7c31aed0e71e66952223f638b5919a5/test_example.txt @@ -0,0 +1,24 @@ +===================================== + Tests in example form - pure python +===================================== + +This file contains doctest examples embedded as code blocks, using normal +Python prompts. See the accompanying file for similar examples using IPython +prompts (you can't mix both types within one file). The following will be run +as a test:: + + >>> 1+1 + 2 + >>> print ("hello") + hello + +More than one example works:: + + >>> s="Hello World" + + >>> s.upper() + 'HELLO WORLD' + +but you should note that the *entire* test file is considered to be a single +test. Individual code blocks that fail are printed separately as ``example +failures``, but the whole file is still counted and reported as one test. diff --git a/shared/package-files/08/086bf2e7d296995f7cc7b486a62ae430fc9949314867e01d65ccf960e0056a4c/_sparse_compressed_tensor_unsafe.h b/shared/package-files/08/086bf2e7d296995f7cc7b486a62ae430fc9949314867e01d65ccf960e0056a4c/_sparse_compressed_tensor_unsafe.h new file mode 100644 index 0000000000000000000000000000000000000000..f7dc573a514232f2ddf88874d8f7a6827afb2cd8 --- /dev/null +++ b/shared/package-files/08/086bf2e7d296995f7cc7b486a62ae430fc9949314867e01d65ccf960e0056a4c/_sparse_compressed_tensor_unsafe.h @@ -0,0 +1,69 @@ +#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::_sparse_compressed_tensor_unsafe(Tensor compressed_indices, Tensor plain_indices, Tensor values, SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor +inline at::Tensor _sparse_compressed_tensor_unsafe(const at::Tensor & compressed_indices, const at::Tensor & plain_indices, const at::Tensor & values, at::IntArrayRef size, at::TensorOptions options={}) { + return at::_ops::_sparse_compressed_tensor_unsafe::call(compressed_indices, plain_indices, values, c10::fromIntArrayRefSlow(size), c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); +} +namespace symint { + template ::value>> + at::Tensor _sparse_compressed_tensor_unsafe(const at::Tensor & compressed_indices, const at::Tensor & plain_indices, const at::Tensor & values, at::IntArrayRef size, at::TensorOptions options={}) { + return at::_ops::_sparse_compressed_tensor_unsafe::call(compressed_indices, plain_indices, values, c10::fromIntArrayRefSlow(size), c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } +} + +// aten::_sparse_compressed_tensor_unsafe(Tensor compressed_indices, Tensor plain_indices, Tensor values, SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor +inline at::Tensor _sparse_compressed_tensor_unsafe(const at::Tensor & compressed_indices, const at::Tensor & plain_indices, const at::Tensor & values, at::IntArrayRef size, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::_sparse_compressed_tensor_unsafe::call(compressed_indices, plain_indices, values, c10::fromIntArrayRefSlow(size), dtype, layout, device, pin_memory); +} +namespace symint { + template ::value>> + at::Tensor _sparse_compressed_tensor_unsafe(const at::Tensor & compressed_indices, const at::Tensor & plain_indices, const at::Tensor & values, at::IntArrayRef size, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::_sparse_compressed_tensor_unsafe::call(compressed_indices, plain_indices, values, c10::fromIntArrayRefSlow(size), dtype, layout, device, pin_memory); + } +} + +// aten::_sparse_compressed_tensor_unsafe(Tensor compressed_indices, Tensor plain_indices, Tensor values, SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor +inline at::Tensor _sparse_compressed_tensor_unsafe_symint(const at::Tensor & compressed_indices, const at::Tensor & plain_indices, const at::Tensor & values, c10::SymIntArrayRef size, at::TensorOptions options={}) { + return at::_ops::_sparse_compressed_tensor_unsafe::call(compressed_indices, plain_indices, values, size, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); +} +namespace symint { + template ::value>> + at::Tensor _sparse_compressed_tensor_unsafe(const at::Tensor & compressed_indices, const at::Tensor & plain_indices, const at::Tensor & values, c10::SymIntArrayRef size, at::TensorOptions options={}) { + return at::_ops::_sparse_compressed_tensor_unsafe::call(compressed_indices, plain_indices, values, size, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } +} + +// aten::_sparse_compressed_tensor_unsafe(Tensor compressed_indices, Tensor plain_indices, Tensor values, SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor +inline at::Tensor _sparse_compressed_tensor_unsafe_symint(const at::Tensor & compressed_indices, const at::Tensor & plain_indices, const at::Tensor & values, c10::SymIntArrayRef size, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::_sparse_compressed_tensor_unsafe::call(compressed_indices, plain_indices, values, size, dtype, layout, device, pin_memory); +} +namespace symint { + template ::value>> + at::Tensor _sparse_compressed_tensor_unsafe(const at::Tensor & compressed_indices, const at::Tensor & plain_indices, const at::Tensor & values, c10::SymIntArrayRef size, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::_sparse_compressed_tensor_unsafe::call(compressed_indices, plain_indices, values, size, dtype, layout, device, pin_memory); + } +} + +} diff --git a/shared/package-files/08/086e47ff149bb7065a9232f32fe10483e4fd8f618e5329425396202ec6c79b60/test_powsimp.py b/shared/package-files/08/086e47ff149bb7065a9232f32fe10483e4fd8f618e5329425396202ec6c79b60/test_powsimp.py new file mode 100644 index 0000000000000000000000000000000000000000..fdae6bfc1b26e560abdfca626b059a1ce77aa0a5 --- /dev/null +++ b/shared/package-files/08/086e47ff149bb7065a9232f32fe10483e4fd8f618e5329425396202ec6c79b60/test_powsimp.py @@ -0,0 +1,366 @@ +from sympy.core.function import Function +from sympy.core.mul import Mul +from sympy.core.numbers import (E, I, Rational, oo, pi) +from sympy.core.singleton import S +from sympy.core.symbol import (Dummy, Symbol, symbols) +from sympy.functions.elementary.exponential import (exp, log) +from sympy.functions.elementary.miscellaneous import (root, sqrt) +from sympy.functions.elementary.trigonometric import sin +from sympy.functions.special.gamma_functions import gamma +from sympy.functions.special.hyper import hyper +from sympy.matrices.expressions.matexpr import MatrixSymbol +from sympy.simplify.powsimp import (powdenest, powsimp) +from sympy.simplify.simplify import (signsimp, simplify) +from sympy.core.symbol import Str + +from sympy.abc import x, y, z, a, b + + +def test_powsimp(): + x, y, z, n = symbols('x,y,z,n') + f = Function('f') + assert powsimp( 4**x * 2**(-x) * 2**(-x) ) == 1 + assert powsimp( (-4)**x * (-2)**(-x) * 2**(-x) ) == 1 + + assert powsimp( + f(4**x * 2**(-x) * 2**(-x)) ) == f(4**x * 2**(-x) * 2**(-x)) + assert powsimp( f(4**x * 2**(-x) * 2**(-x)), deep=True ) == f(1) + assert exp(x)*exp(y) == exp(x)*exp(y) + assert powsimp(exp(x)*exp(y)) == exp(x + y) + assert powsimp(exp(x)*exp(y)*2**x*2**y) == (2*E)**(x + y) + assert powsimp(exp(x)*exp(y)*2**x*2**y, combine='exp') == \ + exp(x + y)*2**(x + y) + assert powsimp(exp(x)*exp(y)*exp(2)*sin(x) + sin(y) + 2**x*2**y) == \ + exp(2 + x + y)*sin(x) + sin(y) + 2**(x + y) + assert powsimp(sin(exp(x)*exp(y))) == sin(exp(x)*exp(y)) + assert powsimp(sin(exp(x)*exp(y)), deep=True) == sin(exp(x + y)) + assert powsimp(x**2*x**y) == x**(2 + y) + # This should remain factored, because 'exp' with deep=True is supposed + # to act like old automatic exponent combining. + assert powsimp((1 + E*exp(E))*exp(-E), combine='exp', deep=True) == \ + (1 + exp(1 + E))*exp(-E) + assert powsimp((1 + E*exp(E))*exp(-E), deep=True) == \ + (1 + exp(1 + E))*exp(-E) + assert powsimp((1 + E*exp(E))*exp(-E)) == (1 + exp(1 + E))*exp(-E) + assert powsimp((1 + E*exp(E))*exp(-E), combine='exp') == \ + (1 + exp(1 + E))*exp(-E) + assert powsimp((1 + E*exp(E))*exp(-E), combine='base') == \ + (1 + E*exp(E))*exp(-E) + x, y = symbols('x,y', nonnegative=True) + n = Symbol('n', real=True) + assert powsimp(y**n * (y/x)**(-n)) == x**n + assert powsimp(x**(x**(x*y)*y**(x*y))*y**(x**(x*y)*y**(x*y)), deep=True) \ + == (x*y)**(x*y)**(x*y) + assert powsimp(2**(2**(2*x)*x), deep=False) == 2**(2**(2*x)*x) + assert powsimp(2**(2**(2*x)*x), deep=True) == 2**(x*4**x) + assert powsimp( + exp(-x + exp(-x)*exp(-x*log(x))), deep=False, combine='exp') == \ + exp(-x + exp(-x)*exp(-x*log(x))) + assert powsimp( + exp(-x + exp(-x)*exp(-x*log(x))), deep=False, combine='exp') == \ + exp(-x + exp(-x)*exp(-x*log(x))) + assert powsimp((x + y)/(3*z), deep=False, combine='exp') == (x + y)/(3*z) + assert powsimp((x/3 + y/3)/z, deep=True, combine='exp') == (x/3 + y/3)/z + assert powsimp(exp(x)/(1 + exp(x)*exp(y)), deep=True) == \ + exp(x)/(1 + exp(x + y)) + assert powsimp(x*y**(z**x*z**y), deep=True) == x*y**(z**(x + y)) + assert powsimp((z**x*z**y)**x, deep=True) == (z**(x + y))**x + assert powsimp(x*(z**x*z**y)**x, deep=True) == x*(z**(x + y))**x + p = symbols('p', positive=True) + assert powsimp((1/x)**log(2)/x) == (1/x)**(1 + log(2)) + assert powsimp((1/p)**log(2)/p) == p**(-1 - log(2)) + + # coefficient of exponent can only be simplified for positive bases + assert powsimp(2**(2*x)) == 4**x + assert powsimp((-1)**(2*x)) == (-1)**(2*x) + i = symbols('i', integer=True) + assert powsimp((-1)**(2*i)) == 1 + assert powsimp((-1)**(-x)) != (-1)**x # could be 1/((-1)**x), but is not + # force=True overrides assumptions + assert powsimp((-1)**(2*x), force=True) == 1 + + # rational exponents allow combining of negative terms + w, n, m = symbols('w n m', negative=True) + e = i/a # not a rational exponent if `a` is unknown + ex = w**e*n**e*m**e + assert powsimp(ex) == m**(i/a)*n**(i/a)*w**(i/a) + e = i/3 + ex = w**e*n**e*m**e + assert powsimp(ex) == (-1)**i*(-m*n*w)**(i/3) + e = (3 + i)/i + ex = w**e*n**e*m**e + assert powsimp(ex) == (-1)**(3*e)*(-m*n*w)**e + + eq = x**(a*Rational(2, 3)) + # eq != (x**a)**(2/3) (try x = -1 and a = 3 to see) + assert powsimp(eq).exp == eq.exp == a*Rational(2, 3) + # powdenest goes the other direction + assert powsimp(2**(2*x)) == 4**x + + assert powsimp(exp(p/2)) == exp(p/2) + + # issue 6368 + eq = Mul(*[sqrt(Dummy(imaginary=True)) for i in range(3)]) + assert powsimp(eq) == eq and eq.is_Mul + + assert all(powsimp(e) == e for e in (sqrt(x**a), sqrt(x**2))) + + # issue 8836 + assert str( powsimp(exp(I*pi/3)*root(-1,3)) ) == '(-1)**(2/3)' + + # issue 9183 + assert powsimp(-0.1**x) == -0.1**x + + # issue 10095 + assert powsimp((1/(2*E))**oo) == (exp(-1)/2)**oo + + # PR 13131 + eq = sin(2*x)**2*sin(2.0*x)**2 + assert powsimp(eq) == eq + + # issue 14615 + assert powsimp(x**2*y**3*(x*y**2)**Rational(3, 2) + ) == x*y*(x*y**2)**Rational(5, 2) + + +def test_powsimp_negated_base(): + assert powsimp((-x + y)/sqrt(x - y)) == -sqrt(x - y) + assert powsimp((-x + y)*(-z + y)/sqrt(x - y)/sqrt(z - y)) == sqrt(x - y)*sqrt(z - y) + p = symbols('p', positive=True) + reps = {p: 2, a: S.Half} + assert powsimp((-p)**a/p**a).subs(reps) == ((-1)**a).subs(reps) + assert powsimp((-p)**a*p**a).subs(reps) == ((-p**2)**a).subs(reps) + n = symbols('n', negative=True) + reps = {p: -2, a: S.Half} + assert powsimp((-n)**a/n**a).subs(reps) == (-1)**(-a).subs(a, S.Half) + assert powsimp((-n)**a*n**a).subs(reps) == ((-n**2)**a).subs(reps) + # if x is 0 then the lhs is 0**a*oo**a which is not (-1)**a + eq = (-x)**a/x**a + assert powsimp(eq) == eq + + +def test_powsimp_nc(): + x, y, z = symbols('x,y,z') + A, B, C = symbols('A B C', commutative=False) + + assert powsimp(A**x*A**y, combine='all') == A**(x + y) + assert powsimp(A**x*A**y, combine='base') == A**x*A**y + assert powsimp(A**x*A**y, combine='exp') == A**(x + y) + + assert powsimp(A**x*B**x, combine='all') == A**x*B**x + assert powsimp(A**x*B**x, combine='base') == A**x*B**x + assert powsimp(A**x*B**x, combine='exp') == A**x*B**x + + assert powsimp(B**x*A**x, combine='all') == B**x*A**x + assert powsimp(B**x*A**x, combine='base') == B**x*A**x + assert powsimp(B**x*A**x, combine='exp') == B**x*A**x + + assert powsimp(A**x*A**y*A**z, combine='all') == A**(x + y + z) + assert powsimp(A**x*A**y*A**z, combine='base') == A**x*A**y*A**z + assert powsimp(A**x*A**y*A**z, combine='exp') == A**(x + y + z) + + assert powsimp(A**x*B**x*C**x, combine='all') == A**x*B**x*C**x + assert powsimp(A**x*B**x*C**x, combine='base') == A**x*B**x*C**x + assert powsimp(A**x*B**x*C**x, combine='exp') == A**x*B**x*C**x + + assert powsimp(B**x*A**x*C**x, combine='all') == B**x*A**x*C**x + assert powsimp(B**x*A**x*C**x, combine='base') == B**x*A**x*C**x + assert powsimp(B**x*A**x*C**x, combine='exp') == B**x*A**x*C**x + + +def test_issue_6440(): + assert powsimp(16*2**a*8**b) == 2**(a + 3*b + 4) + + +def test_powdenest(): + x, y = symbols('x,y') + p, q = symbols('p q', positive=True) + i, j = symbols('i,j', integer=True) + + assert powdenest(x) == x + assert powdenest(x + 2*(x**(a*Rational(2, 3)))**(3*x)) == (x + 2*(x**(a*Rational(2, 3)))**(3*x)) + assert powdenest((exp(a*Rational(2, 3)))**(3*x)) # -X-> (exp(a/3))**(6*x) + assert powdenest((x**(a*Rational(2, 3)))**(3*x)) == ((x**(a*Rational(2, 3)))**(3*x)) + assert powdenest(exp(3*x*log(2))) == 2**(3*x) + assert powdenest(sqrt(p**2)) == p + eq = p**(2*i)*q**(4*i) + assert powdenest(eq) == (p*q**2)**(2*i) + # -X-> (x**x)**i*(x**x)**j == x**(x*(i + j)) + assert powdenest((x**x)**(i + j)) + assert powdenest(exp(3*y*log(x))) == x**(3*y) + assert powdenest(exp(y*(log(a) + log(b)))) == (a*b)**y + assert powdenest(exp(3*(log(a) + log(b)))) == a**3*b**3 + assert powdenest(((x**(2*i))**(3*y))**x) == ((x**(2*i))**(3*y))**x + assert powdenest(((x**(2*i))**(3*y))**x, force=True) == x**(6*i*x*y) + assert powdenest(((x**(a*Rational(2, 3)))**(3*y/i))**x) == \ + (((x**(a*Rational(2, 3)))**(3*y/i))**x) + assert powdenest((x**(2*i)*y**(4*i))**z, force=True) == (x*y**2)**(2*i*z) + assert powdenest((p**(2*i)*q**(4*i))**j) == (p*q**2)**(2*i*j) + e = ((p**(2*a))**(3*y))**x + assert powdenest(e) == e + e = ((x**2*y**4)**a)**(x*y) + assert powdenest(e) == e + e = (((x**2*y**4)**a)**(x*y))**3 + assert powdenest(e) == ((x**2*y**4)**a)**(3*x*y) + assert powdenest((((x**2*y**4)**a)**(x*y)), force=True) == \ + (x*y**2)**(2*a*x*y) + assert powdenest((((x**2*y**4)**a)**(x*y))**3, force=True) == \ + (x*y**2)**(6*a*x*y) + assert powdenest((x**2*y**6)**i) != (x*y**3)**(2*i) + x, y = symbols('x,y', positive=True) + assert powdenest((x**2*y**6)**i) == (x*y**3)**(2*i) + + assert powdenest((x**(i*Rational(2, 3))*y**(i/2))**(2*i)) == (x**Rational(4, 3)*y)**(i**2) + assert powdenest(sqrt(x**(2*i)*y**(6*i))) == (x*y**3)**i + + assert powdenest(4**x) == 2**(2*x) + assert powdenest((4**x)**y) == 2**(2*x*y) + assert powdenest(4**x*y) == 2**(2*x)*y + + +def test_powdenest_polar(): + x, y, z = symbols('x y z', polar=True) + a, b, c = symbols('a b c') + assert powdenest((x*y*z)**a) == x**a*y**a*z**a + assert powdenest((x**a*y**b)**c) == x**(a*c)*y**(b*c) + assert powdenest(((x**a)**b*y**c)**c) == x**(a*b*c)*y**(c**2) + + +def test_issue_5805(): + arg = ((gamma(x)*hyper((), (), x))*pi)**2 + assert powdenest(arg) == (pi*gamma(x)*hyper((), (), x))**2 + assert arg.is_positive is None + + +def test_issue_9324_powsimp_on_matrix_symbol(): + M = MatrixSymbol('M', 10, 10) + expr = powsimp(M, deep=True) + assert expr == M + assert expr.args[0] == Str('M') + + +def test_issue_6367(): + z = -5*sqrt(2)/(2*sqrt(2*sqrt(29) + 29)) + sqrt(-sqrt(29)/29 + S.Half) + assert Mul(*[powsimp(a) for a in Mul.make_args(z.normal())]) == 0 + assert powsimp(z.normal()) == 0 + assert simplify(z) == 0 + assert powsimp(sqrt(2 + sqrt(3))*sqrt(2 - sqrt(3)) + 1) == 2 + assert powsimp(z) != 0 + + +def test_powsimp_polar(): + from sympy.functions.elementary.complexes import polar_lift + from sympy.functions.elementary.exponential import exp_polar + x, y, z = symbols('x y z') + p, q, r = symbols('p q r', polar=True) + + assert (polar_lift(-1))**(2*x) == exp_polar(2*pi*I*x) + assert powsimp(p**x * q**x) == (p*q)**x + assert p**x * (1/p)**x == 1 + assert (1/p)**x == p**(-x) + + assert exp_polar(x)*exp_polar(y) == exp_polar(x)*exp_polar(y) + assert powsimp(exp_polar(x)*exp_polar(y)) == exp_polar(x + y) + assert powsimp(exp_polar(x)*exp_polar(y)*p**x*p**y) == \ + (p*exp_polar(1))**(x + y) + assert powsimp(exp_polar(x)*exp_polar(y)*p**x*p**y, combine='exp') == \ + exp_polar(x + y)*p**(x + y) + assert powsimp( + exp_polar(x)*exp_polar(y)*exp_polar(2)*sin(x) + sin(y) + p**x*p**y) \ + == p**(x + y) + sin(x)*exp_polar(2 + x + y) + sin(y) + assert powsimp(sin(exp_polar(x)*exp_polar(y))) == \ + sin(exp_polar(x)*exp_polar(y)) + assert powsimp(sin(exp_polar(x)*exp_polar(y)), deep=True) == \ + sin(exp_polar(x + y)) + + +def test_issue_5728(): + b = x*sqrt(y) + a = sqrt(b) + c = sqrt(sqrt(x)*y) + assert powsimp(a*b) == sqrt(b)**3 + assert powsimp(a*b**2*sqrt(y)) == sqrt(y)*a**5 + assert powsimp(a*x**2*c**3*y) == c**3*a**5 + assert powsimp(a*x*c**3*y**2) == c**7*a + assert powsimp(x*c**3*y**2) == c**7 + assert powsimp(x*c**3*y) == x*y*c**3 + assert powsimp(sqrt(x)*c**3*y) == c**5 + assert powsimp(sqrt(x)*a**3*sqrt(y)) == sqrt(x)*sqrt(y)*a**3 + assert powsimp(Mul(sqrt(x)*c**3*sqrt(y), y, evaluate=False)) == \ + sqrt(x)*sqrt(y)**3*c**3 + assert powsimp(a**2*a*x**2*y) == a**7 + + # symbolic powers work, too + b = x**y*y + a = b*sqrt(b) + assert a.is_Mul is True + assert powsimp(a) == sqrt(b)**3 + + # as does exp + a = x*exp(y*Rational(2, 3)) + assert powsimp(a*sqrt(a)) == sqrt(a)**3 + assert powsimp(a**2*sqrt(a)) == sqrt(a)**5 + assert powsimp(a**2*sqrt(sqrt(a))) == sqrt(sqrt(a))**9 + + +def test_issue_from_PR1599(): + n1, n2, n3, n4 = symbols('n1 n2 n3 n4', negative=True) + assert (powsimp(sqrt(n1)*sqrt(n2)*sqrt(n3)) == + -I*sqrt(-n1)*sqrt(-n2)*sqrt(-n3)) + assert (powsimp(root(n1, 3)*root(n2, 3)*root(n3, 3)*root(n4, 3)) == + -(-1)**Rational(1, 3)* + (-n1)**Rational(1, 3)*(-n2)**Rational(1, 3)*(-n3)**Rational(1, 3)*(-n4)**Rational(1, 3)) + + +def test_issue_10195(): + a = Symbol('a', integer=True) + l = Symbol('l', even=True, nonzero=True) + n = Symbol('n', odd=True) + e_x = (-1)**(n/2 - S.Half) - (-1)**(n*Rational(3, 2) - S.Half) + assert powsimp((-1)**(l/2)) == I**l + assert powsimp((-1)**(n/2)) == I**n + assert powsimp((-1)**(n*Rational(3, 2))) == -I**n + assert powsimp(e_x) == (-1)**(n/2 - S.Half) + (-1)**(n*Rational(3, 2) + + S.Half) + assert powsimp((-1)**(a*Rational(3, 2))) == (-I)**a + +def test_issue_15709(): + assert powsimp(3**x*Rational(2, 3)) == 2*3**(x-1) + assert powsimp(2*3**x/3) == 2*3**(x-1) + + +def test_issue_11981(): + x, y = symbols('x y', commutative=False) + assert powsimp((x*y)**2 * (y*x)**2) == (x*y)**2 * (y*x)**2 + + +def test_issue_17524(): + a = symbols("a", real=True) + e = (-1 - a**2)*sqrt(1 + a**2) + assert signsimp(powsimp(e)) == signsimp(e) == -(a**2 + 1)**(S(3)/2) + + +def test_issue_19627(): + # if you use force the user must verify + assert powdenest(sqrt(sin(x)**2), force=True) == sin(x) + assert powdenest((x**(S.Half/y))**(2*y), force=True) == x + from sympy.core.function import expand_power_base + e = 1 - a + expr = (exp(z/e)*x**(b/e)*y**((1 - b)/e))**e + assert powdenest(expand_power_base(expr, force=True), force=True + ) == x**b*y**(1 - b)*exp(z) + + +def test_issue_22546(): + p1, p2 = symbols('p1, p2', positive=True) + ref = powsimp(p1**z/p2**z) + e = z + 1 + ans = ref.subs(z, e) + assert ans.is_Pow + assert powsimp(p1**e/p2**e) == ans + i = symbols('i', integer=True) + ref = powsimp(x**i/y**i) + e = i + 1 + ans = ref.subs(i, e) + assert ans.is_Pow + assert powsimp(x**e/y**e) == ans diff --git a/shared/package-files/08/08811d886039522efb63296f01f62f90614d6a0a92a8060e8a5747724f16a3cd/_sfdp_pattern_14.py b/shared/package-files/08/08811d886039522efb63296f01f62f90614d6a0a92a8060e8a5747724f16a3cd/_sfdp_pattern_14.py new file mode 100644 index 0000000000000000000000000000000000000000..b4271e0c5ee50c533d86b50be243a8efa41c78a4 --- /dev/null +++ b/shared/package-files/08/08811d886039522efb63296f01f62f90614d6a0a92a8060e8a5747724f16a3cd/_sfdp_pattern_14.py @@ -0,0 +1,218 @@ +# 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, +) +permute_default = CallFunction(aten.permute.default, KeywordArg('query'), Ignored()) +expand_default = CallFunction(aten.expand.default, permute_default, Ignored()) +clone_default = CallFunction(aten.clone.default, expand_default, memory_format=torch.contiguous_format) +view_default = CallFunction(aten.view.default, clone_default, Ignored(), _users=2) +permute_default_1 = CallFunction(aten.permute.default, KeywordArg('key'), Ignored()) +permute_default_2 = CallFunction(aten.permute.default, permute_default_1, Ignored()) +expand_default_1 = CallFunction(aten.expand.default, permute_default_2, Ignored()) +clone_default_1 = CallFunction(aten.clone.default, expand_default_1, memory_format=torch.contiguous_format) +view_default_1 = CallFunction(aten.view.default, clone_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, KeywordArg('inv_scale')) +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) +expand_default_2 = CallFunction(aten.expand.default, div_Tensor_1, Ignored()) +view_default_3 = CallFunction(aten.view.default, expand_default_2, Ignored(), _users=2) +permute_default_3 = CallFunction(aten.permute.default, KeywordArg('value'), Ignored()) +expand_default_3 = CallFunction(aten.expand.default, permute_default_3, Ignored()) +clone_default_2 = CallFunction(aten.clone.default, expand_default_3, memory_format=torch.contiguous_format) +view_default_4 = CallFunction(aten.view.default, clone_default_2, 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_4 = CallFunction(aten.permute.default, view_default_4, Ignored()) +bmm_default_2 = CallFunction(aten.bmm.default, view_default_6, permute_default_4) +view_default_7 = CallFunction(aten.view.default, bmm_default_2, Ignored()) +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 = CallFunction(aten.mul.Tensor, view_default_7, alias_default_3, _users=2) +sum_dim_IntList_1 = CallFunction(aten.sum.dim_IntList, mul_Tensor, Ignored(), True) +mul_Tensor_1 = CallFunction(aten.mul.Tensor, alias_default_3, sum_dim_IntList_1) +sub_Tensor_1 = CallFunction(aten.sub.Tensor, mul_Tensor, mul_Tensor_1) +div_Tensor_2 = CallFunction(aten.div.Tensor, sub_Tensor_1, KeywordArg('inv_scale')) +view_default_8 = CallFunction(aten.view.default, div_Tensor_2, Ignored(), _users=2) +permute_default_5 = CallFunction(aten.permute.default, view_default_1, Ignored()) +bmm_default_3 = CallFunction(aten.bmm.default, view_default_8, permute_default_5) +view_default_9 = CallFunction(aten.view.default, bmm_default_3, Ignored()) +permute_default_6 = CallFunction(aten.permute.default, view_default_9, Ignored()) +permute_default_7 = CallFunction(aten.permute.default, view_default, Ignored()) +bmm_default_4 = CallFunction(aten.bmm.default, permute_default_7, view_default_8) +view_default_10 = CallFunction(aten.view.default, bmm_default_4, Ignored()) +permute_default_8 = CallFunction(aten.permute.default, view_default_10, Ignored()) +permute_default_9 = CallFunction(aten.permute.default, permute_default_8, Ignored()) +permute_default_10 = CallFunction(aten.permute.default, view_default_3, Ignored()) +bmm_default_5 = CallFunction(aten.bmm.default, permute_default_10, view_default_6) +view_default_11 = CallFunction(aten.view.default, bmm_default_5, Ignored()) +permute_default_11 = CallFunction(aten.permute.default, view_default_11, Ignored()) +_sfdp_pattern_14_training = MultiOutputPattern([view_default_5, + permute_default_6, + permute_default_9, + permute_default_11, + None, + None +]) + + +permute_default = CallFunction(aten.permute.default, KeywordArg('query'), Ignored()) +expand_default = CallFunction(aten.expand.default, permute_default, Ignored()) +clone_default = CallFunction(aten.clone.default, expand_default, memory_format=torch.contiguous_format) +view_default = CallFunction(aten.view.default, clone_default, Ignored()) +permute_default_1 = CallFunction(aten.permute.default, KeywordArg('key'), Ignored()) +permute_default_2 = CallFunction(aten.permute.default, permute_default_1, Ignored()) +expand_default_1 = CallFunction(aten.expand.default, permute_default_2, Ignored()) +clone_default_1 = CallFunction(aten.clone.default, expand_default_1, memory_format=torch.contiguous_format) +view_default_1 = CallFunction(aten.view.default, clone_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, KeywordArg('inv_scale')) +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) +expand_default_2 = CallFunction(aten.expand.default, div_Tensor_1, Ignored()) +view_default_3 = CallFunction(aten.view.default, expand_default_2, Ignored()) +permute_default_3 = CallFunction(aten.permute.default, KeywordArg('value'), Ignored()) +expand_default_3 = CallFunction(aten.expand.default, permute_default_3, Ignored()) +clone_default_2 = CallFunction(aten.clone.default, expand_default_3, memory_format=torch.contiguous_format) +view_default_4 = CallFunction(aten.view.default, clone_default_2, Ignored()) +bmm_default_1 = CallFunction(aten.bmm.default, view_default_3, view_default_4) +_sfdp_pattern_14_inference = CallFunction(aten.view.default, bmm_default_1, Ignored()) + + +permute_default = CallFunction(aten.permute.default, KeywordArg('query'), Ignored()) +expand_default = CallFunction(aten.expand.default, permute_default, Ignored()) +clone_default = CallFunction(aten.clone.default, expand_default, memory_format=torch.contiguous_format) +view_default = CallFunction(aten.view.default, clone_default, Ignored(), _users=2) +permute_default_1 = CallFunction(aten.permute.default, KeywordArg('key'), Ignored()) +permute_default_2 = CallFunction(aten.permute.default, permute_default_1, Ignored()) +expand_default_1 = CallFunction(aten.expand.default, permute_default_2, Ignored()) +clone_default_1 = CallFunction(aten.clone.default, expand_default_1, memory_format=torch.contiguous_format) +view_default_1 = CallFunction(aten.view.default, clone_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, KeywordArg('inv_scale')) +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) +expand_default_2 = CallFunction(aten.expand.default, convert_element_type_default_1, Ignored()) +view_default_3 = CallFunction(aten.view.default, expand_default_2, Ignored(), _users=2) +permute_default_3 = CallFunction(aten.permute.default, KeywordArg('value'), Ignored()) +expand_default_3 = CallFunction(aten.expand.default, permute_default_3, Ignored()) +clone_default_2 = CallFunction(aten.clone.default, expand_default_3, memory_format=torch.contiguous_format) +view_default_4 = CallFunction(aten.view.default, clone_default_2, 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_4 = CallFunction(aten.permute.default, view_default_4, Ignored()) +bmm_default_2 = CallFunction(aten.bmm.default, view_default_6, permute_default_4) +view_default_7 = CallFunction(aten.view.default, bmm_default_2, Ignored()) +convert_element_type_default_2 = CallFunction(prims.convert_element_type.default, view_default_7, 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_3 = CallFunction(prims.convert_element_type.default, alias_default_3, Ignored(), _users=2) +mul_Tensor = CallFunction(aten.mul.Tensor, convert_element_type_default_2, convert_element_type_default_3, _users=2) +sum_dim_IntList_1 = CallFunction(aten.sum.dim_IntList, mul_Tensor, Ignored(), True) +mul_Tensor_1 = CallFunction(aten.mul.Tensor, convert_element_type_default_3, sum_dim_IntList_1) +sub_Tensor_1 = CallFunction(aten.sub.Tensor, mul_Tensor, mul_Tensor_1) +convert_element_type_default_4 = CallFunction(prims.convert_element_type.default, sub_Tensor_1, Ignored()) +div_Tensor_2 = CallFunction(aten.div.Tensor, convert_element_type_default_4, KeywordArg('inv_scale')) +view_default_8 = CallFunction(aten.view.default, div_Tensor_2, Ignored(), _users=2) +permute_default_5 = CallFunction(aten.permute.default, view_default_1, Ignored()) +bmm_default_3 = CallFunction(aten.bmm.default, view_default_8, permute_default_5) +view_default_9 = CallFunction(aten.view.default, bmm_default_3, Ignored()) +permute_default_6 = CallFunction(aten.permute.default, view_default_9, Ignored()) +permute_default_7 = CallFunction(aten.permute.default, view_default, Ignored()) +bmm_default_4 = CallFunction(aten.bmm.default, permute_default_7, view_default_8) +view_default_10 = CallFunction(aten.view.default, bmm_default_4, Ignored()) +permute_default_8 = CallFunction(aten.permute.default, view_default_10, Ignored()) +permute_default_9 = CallFunction(aten.permute.default, permute_default_8, Ignored()) +permute_default_10 = CallFunction(aten.permute.default, view_default_3, Ignored()) +bmm_default_5 = CallFunction(aten.bmm.default, permute_default_10, view_default_6) +view_default_11 = CallFunction(aten.view.default, bmm_default_5, Ignored()) +permute_default_11 = CallFunction(aten.permute.default, view_default_11, Ignored()) +_sfdp_pattern_14_half_training = MultiOutputPattern([view_default_5, + permute_default_6, + permute_default_9, + permute_default_11, + None, + None +]) + + +permute_default = CallFunction(aten.permute.default, KeywordArg('query'), Ignored()) +expand_default = CallFunction(aten.expand.default, permute_default, Ignored()) +clone_default = CallFunction(aten.clone.default, expand_default, memory_format=torch.contiguous_format) +view_default = CallFunction(aten.view.default, clone_default, Ignored()) +permute_default_1 = CallFunction(aten.permute.default, KeywordArg('key'), Ignored()) +permute_default_2 = CallFunction(aten.permute.default, permute_default_1, Ignored()) +expand_default_1 = CallFunction(aten.expand.default, permute_default_2, Ignored()) +clone_default_1 = CallFunction(aten.clone.default, expand_default_1, memory_format=torch.contiguous_format) +view_default_1 = CallFunction(aten.view.default, clone_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, KeywordArg('inv_scale')) +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()) +expand_default_2 = CallFunction(aten.expand.default, convert_element_type_default_1, Ignored()) +view_default_3 = CallFunction(aten.view.default, expand_default_2, Ignored()) +permute_default_3 = CallFunction(aten.permute.default, KeywordArg('value'), Ignored()) +expand_default_3 = CallFunction(aten.expand.default, permute_default_3, Ignored()) +clone_default_2 = CallFunction(aten.clone.default, expand_default_3, memory_format=torch.contiguous_format) +view_default_4 = CallFunction(aten.view.default, clone_default_2, Ignored()) +bmm_default_1 = CallFunction(aten.bmm.default, view_default_3, view_default_4) +_sfdp_pattern_14_half_inference = CallFunction(aten.view.default, bmm_default_1, Ignored()) diff --git a/shared/package-files/08/088221112d40daa0dc7aefcd59b4379d2a45816d1f91c1a7c930265b219b1f18/linalg_eigvalsh_native.h b/shared/package-files/08/088221112d40daa0dc7aefcd59b4379d2a45816d1f91c1a7c930265b219b1f18/linalg_eigvalsh_native.h new file mode 100644 index 0000000000000000000000000000000000000000..4eb86cde18ee3475bbe1bf528bc6dfa0ce8e50ae --- /dev/null +++ b/shared/package-files/08/088221112d40daa0dc7aefcd59b4379d2a45816d1f91c1a7c930265b219b1f18/linalg_eigvalsh_native.h @@ -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 linalg_eigvalsh(const at::Tensor & self, c10::string_view UPLO="L"); +TORCH_API at::Tensor & linalg_eigvalsh_out(const at::Tensor & self, c10::string_view UPLO, at::Tensor & out); +} // namespace native +} // namespace at diff --git a/shared/package-files/08/08879f4a4a4dd1d76913bbea6e59db37e743f9236c94f665b851b4030e42620c/_to_sparse_csc_cuda_dispatch.h b/shared/package-files/08/08879f4a4a4dd1d76913bbea6e59db37e743f9236c94f665b851b4030e42620c/_to_sparse_csc_cuda_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..45df9288b586c35a04528c38cec7478a5c50df61 --- /dev/null +++ b/shared/package-files/08/08879f4a4a4dd1d76913bbea6e59db37e743f9236c94f665b851b4030e42620c/_to_sparse_csc_cuda_dispatch.h @@ -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 _to_sparse_csc(const at::Tensor & self, c10::optional dense_dim=c10::nullopt); + +} // namespace cuda +} // namespace at diff --git a/shared/package-files/08/0896100ee277cb6b6f25c5ed03b32246387133fdd354f9a756e030738b30bad5/erfc_meta_dispatch.h b/shared/package-files/08/0896100ee277cb6b6f25c5ed03b32246387133fdd354f9a756e030738b30bad5/erfc_meta_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..6e0b4dec8808e4052cc11f4d927cbffdccaf25be --- /dev/null +++ b/shared/package-files/08/0896100ee277cb6b6f25c5ed03b32246387133fdd354f9a756e030738b30bad5/erfc_meta_dispatch.h @@ -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 erfc(const at::Tensor & self); +TORCH_API at::Tensor & erfc_out(at::Tensor & out, const at::Tensor & self); +TORCH_API at::Tensor & erfc_outf(const at::Tensor & self, at::Tensor & out); +TORCH_API at::Tensor & erfc_(at::Tensor & self); + +} // namespace meta +} // namespace at diff --git a/shared/package-files/08/0896c48a43618468c73effc245d088849cd6651819167bd75a89f6ad237337f3/guru+rv b/shared/package-files/08/0896c48a43618468c73effc245d088849cd6651819167bd75a89f6ad237337f3/guru+rv new file mode 100644 index 0000000000000000000000000000000000000000..f2c32c03ba0625753ec89f2fa1eb385c1b26ea17 Binary files /dev/null and b/shared/package-files/08/0896c48a43618468c73effc245d088849cd6651819167bd75a89f6ad237337f3/guru+rv differ diff --git a/shared/package-files/08/0897b0a6c7147a1b7aa79ed5cc0cdfe026c9623cfa00dafac0f86386b19c3ed8/_cufft_get_plan_cache_size_ops.h b/shared/package-files/08/0897b0a6c7147a1b7aa79ed5cc0cdfe026c9623cfa00dafac0f86386b19c3ed8/_cufft_get_plan_cache_size_ops.h new file mode 100644 index 0000000000000000000000000000000000000000..5fafbcdec1593de4b5a5509005a806efbeb4fbcd --- /dev/null +++ b/shared/package-files/08/0897b0a6c7147a1b7aa79ed5cc0cdfe026c9623cfa00dafac0f86386b19c3ed8/_cufft_get_plan_cache_size_ops.h @@ -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 _cufft_get_plan_cache_size { + using schema = int64_t (at::DeviceIndex); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::_cufft_get_plan_cache_size") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "_cufft_get_plan_cache_size(DeviceIndex device_index) -> int") + static int64_t call(at::DeviceIndex device_index); + static int64_t redispatch(c10::DispatchKeySet dispatchKeySet, at::DeviceIndex device_index); +}; + +}} // namespace at::_ops diff --git a/shared/package-files/08/0899037850bf916ff6a2d07c638822698d6140674e8f73f8c4643d6999deb041/cauchy.py b/shared/package-files/08/0899037850bf916ff6a2d07c638822698d6140674e8f73f8c4643d6999deb041/cauchy.py new file mode 100644 index 0000000000000000000000000000000000000000..1a95dfe0d762d8cec467aca366f7ba13f1cb82a3 --- /dev/null +++ b/shared/package-files/08/0899037850bf916ff6a2d07c638822698d6140674e8f73f8c4643d6999deb041/cauchy.py @@ -0,0 +1,90 @@ +import math +from numbers import Number + +import torch +from torch import inf, nan +from torch.distributions import constraints +from torch.distributions.distribution import Distribution +from torch.distributions.utils import broadcast_all + +__all__ = ["Cauchy"] + + +class Cauchy(Distribution): + r""" + Samples from a Cauchy (Lorentz) distribution. The distribution of the ratio of + independent normally distributed random variables with means `0` follows a + Cauchy distribution. + + Example:: + + >>> # xdoctest: +IGNORE_WANT("non-deterministic") + >>> m = Cauchy(torch.tensor([0.0]), torch.tensor([1.0])) + >>> m.sample() # sample from a Cauchy distribution with loc=0 and scale=1 + tensor([ 2.3214]) + + Args: + loc (float or Tensor): mode or median of the distribution. + scale (float or Tensor): half width at half maximum. + """ + arg_constraints = {"loc": constraints.real, "scale": constraints.positive} + support = constraints.real + has_rsample = True + + def __init__(self, loc, scale, validate_args=None): + self.loc, self.scale = broadcast_all(loc, scale) + if isinstance(loc, Number) and isinstance(scale, Number): + batch_shape = torch.Size() + else: + batch_shape = self.loc.size() + super().__init__(batch_shape, validate_args=validate_args) + + def expand(self, batch_shape, _instance=None): + new = self._get_checked_instance(Cauchy, _instance) + batch_shape = torch.Size(batch_shape) + new.loc = self.loc.expand(batch_shape) + new.scale = self.scale.expand(batch_shape) + super(Cauchy, new).__init__(batch_shape, validate_args=False) + new._validate_args = self._validate_args + return new + + @property + def mean(self): + return torch.full( + self._extended_shape(), nan, dtype=self.loc.dtype, device=self.loc.device + ) + + @property + def mode(self): + return self.loc + + @property + def variance(self): + return torch.full( + self._extended_shape(), inf, dtype=self.loc.dtype, device=self.loc.device + ) + + def rsample(self, sample_shape=torch.Size()): + shape = self._extended_shape(sample_shape) + eps = self.loc.new(shape).cauchy_() + return self.loc + eps * self.scale + + def log_prob(self, value): + if self._validate_args: + self._validate_sample(value) + return ( + -math.log(math.pi) + - self.scale.log() + - (((value - self.loc) / self.scale) ** 2).log1p() + ) + + def cdf(self, value): + if self._validate_args: + self._validate_sample(value) + return torch.atan((value - self.loc) / self.scale) / math.pi + 0.5 + + def icdf(self, value): + return torch.tan(math.pi * (value - 0.5)) * self.scale + self.loc + + def entropy(self): + return math.log(4 * math.pi) + self.scale.log() diff --git a/shared/package-files/08/089949de76f7625218c9bba31312d31054f670ee6422da886b2e5081ce929b7b/target_extension.py b/shared/package-files/08/089949de76f7625218c9bba31312d31054f670ee6422da886b2e5081ce929b7b/target_extension.py new file mode 100644 index 0000000000000000000000000000000000000000..91e5df09985b75f4971466efb07aa9c965decc1b --- /dev/null +++ b/shared/package-files/08/089949de76f7625218c9bba31312d31054f670ee6422da886b2e5081ce929b7b/target_extension.py @@ -0,0 +1,169 @@ +from abc import ABC, abstractmethod +from numba.core.registry import DelayedRegistry, CPUDispatcher +from numba.core.decorators import jit +from numba.core.errors import (InternalTargetMismatchError, + NonexistentTargetError) +from threading import local as tls + + +_active_context = tls() +_active_context_default = 'cpu' + + +class _TargetRegistry(DelayedRegistry): + + def __getitem__(self, item): + try: + return super().__getitem__(item) + except KeyError: + msg = "No target is registered against '{}', known targets:\n{}" + known = '\n'.join([f"{k: <{10}} -> {v}" + for k, v in target_registry.items()]) + raise NonexistentTargetError(msg.format(item, known)) from None + + +# Registry mapping target name strings to Target classes +target_registry = _TargetRegistry() + +# Registry mapping Target classes the @jit decorator for that target +jit_registry = DelayedRegistry() + + +class target_override(object): + """Context manager to temporarily override the current target with that + prescribed.""" + def __init__(self, name): + self._orig_target = getattr(_active_context, 'target', + _active_context_default) + self.target = name + + def __enter__(self): + _active_context.target = self.target + + def __exit__(self, ty, val, tb): + _active_context.target = self._orig_target + + +def current_target(): + """Returns the current target + """ + return getattr(_active_context, 'target', _active_context_default) + + +def get_local_target(context): + """ + Gets the local target from the call stack if available and the TLS + override if not. + """ + # TODO: Should this logic be reversed to prefer TLS override? + if len(context.callstack._stack) > 0: + target = context.callstack[0].target + else: + target = target_registry.get(current_target(), None) + if target is None: + msg = ("The target found is not registered." + "Given target was {}.") + raise ValueError(msg.format(target)) + else: + return target + + +def resolve_target_str(target_str): + """Resolves a target specified as a string to its Target class.""" + return target_registry[target_str] + + +def resolve_dispatcher_from_str(target_str): + """Returns the dispatcher associated with a target string""" + target_hw = resolve_target_str(target_str) + return dispatcher_registry[target_hw] + + +def _get_local_target_checked(tyctx, hwstr, reason): + """Returns the local target if it is compatible with the given target + name during a type resolution; otherwise, raises an exception. + + Parameters + ---------- + tyctx: typing context + hwstr: str + target name to check against + reason: str + Reason for the resolution. Expects a noun. + Returns + ------- + target_hw : Target + + Raises + ------ + InternalTargetMismatchError + """ + # Get the class for the target declared by the function + hw_clazz = resolve_target_str(hwstr) + # get the local target + target_hw = get_local_target(tyctx) + # make sure the target_hw is in the MRO for hw_clazz else bail + if not target_hw.inherits_from(hw_clazz): + raise InternalTargetMismatchError(reason, target_hw, hw_clazz) + return target_hw + + +class JitDecorator(ABC): + + @abstractmethod + def __call__(self): + return NotImplemented + + +class Target(ABC): + """ Implements a target """ + + @classmethod + def inherits_from(cls, other): + """Returns True if this target inherits from 'other' False otherwise""" + return issubclass(cls, other) + + +class Generic(Target): + """Mark the target as generic, i.e. suitable for compilation on + any target. All must inherit from this. + """ + + +class CPU(Generic): + """Mark the target as CPU. + """ + + +class GPU(Generic): + """Mark the target as GPU, i.e. suitable for compilation on a GPU + target. + """ + + +class CUDA(GPU): + """Mark the target as CUDA. + """ + + +class NPyUfunc(Target): + """Mark the target as a ufunc + """ + + +target_registry['generic'] = Generic +target_registry['CPU'] = CPU +target_registry['cpu'] = CPU +target_registry['GPU'] = GPU +target_registry['gpu'] = GPU +target_registry['CUDA'] = CUDA +target_registry['cuda'] = CUDA +target_registry['npyufunc'] = NPyUfunc + +dispatcher_registry = DelayedRegistry(key_type=Target) + + +# Register the cpu target token with its dispatcher and jit +cpu_target = target_registry['cpu'] +dispatcher_registry[cpu_target] = CPUDispatcher +jit_registry[cpu_target] = jit diff --git a/shared/package-files/08/089a161bb4d6291676b4cec9577aac657a40625076891cdfa20b3bef6d711a5d/_ufuncs.py b/shared/package-files/08/089a161bb4d6291676b4cec9577aac657a40625076891cdfa20b3bef6d711a5d/_ufuncs.py new file mode 100644 index 0000000000000000000000000000000000000000..0543aad2f7a6ba551d8ce7483e1dc8e0474ac57e --- /dev/null +++ b/shared/package-files/08/089a161bb4d6291676b4cec9577aac657a40625076891cdfa20b3bef6d711a5d/_ufuncs.py @@ -0,0 +1,334 @@ +# mypy: ignore-errors + +from __future__ import annotations + +from typing import Optional + +import torch + +from . import _binary_ufuncs_impl, _dtypes_impl, _unary_ufuncs_impl, _util +from ._normalizations import ( + ArrayLike, + ArrayLikeOrScalar, + CastingModes, + DTypeLike, + normalizer, + NotImplementedType, + OutArray, +) + + +def _ufunc_postprocess(result, out, casting): + if out is not None: + result = _util.typecast_tensor(result, out.dtype.torch_dtype, casting) + result = torch.broadcast_to(result, out.shape) + return result + + +# ############# Binary ufuncs ###################### + +_binary = [ + name + for name in dir(_binary_ufuncs_impl) + if not name.startswith("_") and name not in ["torch", "matmul", "divmod", "ldexp"] +] + + +NEP50_FUNCS = ( + "add", + "subtract", + "multiply", + "floor_divide", + "true_divide", + "divide", + "remainder", + "bitwise_and", + "bitwise_or", + "bitwise_xor", + "bitwise_left_shift", + "bitwise_right_shift", + "hypot", + "arctan2", + "logaddexp", + "logaddexp2", + "heaviside", + "copysign", + "fmax", + "minimum", + "fmin", + "maximum", + "fmod", + "gcd", + "lcm", + "pow", +) + + +def deco_binary_ufunc(torch_func): + """Common infra for binary ufuncs. + + Normalize arguments, sort out type casting, broadcasting and delegate to + the pytorch functions for the actual work. + """ + + @normalizer + def wrapped( + x1: ArrayLikeOrScalar, + x2: ArrayLikeOrScalar, + /, + out: Optional[OutArray] = None, + *, + where: NotImplementedType = True, + casting: Optional[CastingModes] = "same_kind", + order: NotImplementedType = "K", + dtype: Optional[DTypeLike] = None, + subok: NotImplementedType = False, + signature: NotImplementedType = None, + extobj: NotImplementedType = None, + ): + if dtype is not None: + + def cast(x, dtype): + if isinstance(x, torch.Tensor): + return _util.typecast_tensor(x, dtype, casting) + else: + return torch.as_tensor(x, dtype=dtype) + + x1 = cast(x1, dtype) + x2 = cast(x2, dtype) + elif isinstance(x1, torch.Tensor) and isinstance(x2, torch.Tensor): + dtype = _dtypes_impl.result_type_impl(x1, x2) + x1, x2 = _util.typecast_tensors((x1, x2), dtype, casting) + else: + x1, x2 = _dtypes_impl.nep50_to_tensors( + x1, x2, torch_func.__name__ in NEP50_FUNCS, torch_func.__name__ + ) + + result = torch_func(x1, x2) + + return _ufunc_postprocess(result, out, casting) + + wrapped.__qualname__ = torch_func.__name__ + wrapped.__name__ = torch_func.__name__ + + return wrapped + + +# matmul's signature is _slightly_ different from other ufuncs: +# - no where=... +# - additional axis=..., axes=... +# - no NEP50 scalars in or out +@normalizer +def matmul( + x1: ArrayLike, + x2: ArrayLike, + /, + out: Optional[OutArray] = None, + *, + casting: Optional[CastingModes] = "same_kind", + order: NotImplementedType = "K", + dtype: Optional[DTypeLike] = None, + subok: NotImplementedType = False, + signature: NotImplementedType = None, + extobj: NotImplementedType = None, + axes: NotImplementedType = None, + axis: NotImplementedType = None, +): + if dtype is None: + dtype = _dtypes_impl.result_type_impl(x1, x2) + x1, x2 = _util.typecast_tensors((x1, x2), dtype, casting) + + result = _binary_ufuncs_impl.matmul(x1, x2) + + result = _ufunc_postprocess(result, out, casting) + return result + + +# ldexp casting is special : the dtype of the result == dtype of the 1st arg +@normalizer +def ldexp( + x1: ArrayLikeOrScalar, + x2: ArrayLikeOrScalar, + /, + out: Optional[OutArray] = None, + *, + where: NotImplementedType = True, + casting: Optional[CastingModes] = "same_kind", + order: NotImplementedType = "K", + dtype: Optional[DTypeLike] = None, + subok: NotImplementedType = False, + signature: NotImplementedType = None, + extobj: NotImplementedType = None, +): + if dtype is not None: + if isinstance(x1, torch.Tensor): + x1 = _util.typecast_tensor(x1, dtype, casting) + else: + x1 = torch.as_tensor(x1, dtype=dtype) + else: + if not isinstance(x1, torch.Tensor): + x1 = torch.as_tensor(x1) + x1 = _util.cast_int_to_float(x1) + + x2 = torch.as_tensor(x2) + # the second arg must be integer + if _dtypes_impl._category(x2.dtype) != 1: + raise ValueError("ldexp 2nd arg must be integer") + + result = _binary_ufuncs_impl.ldexp(x1, x2) + + if x1.dtype == torch.float16: + # torch.ldexp(f16, int) -> f32, undo it + result = result.to(torch.float16) + + return _ufunc_postprocess(result, out, casting) + + +# nin=2, nout=2 +@normalizer +def divmod( + x1: ArrayLike, + x2: ArrayLike, + out1: Optional[OutArray] = None, + out2: Optional[OutArray] = None, + /, + out: tuple[Optional[OutArray], Optional[OutArray]] = (None, None), + *, + where: NotImplementedType = True, + casting: Optional[CastingModes] = "same_kind", + order: NotImplementedType = "K", + dtype: Optional[DTypeLike] = None, + subok: NotImplementedType = False, + signature: NotImplementedType = None, + extobj: NotImplementedType = None, +): + # make sure we either have no out arrays at all, or there is either + # out1, out2, or out=tuple, but not both + num_outs = sum(x is not None for x in [out1, out2]) + if num_outs == 1: + raise ValueError("both out1 and out2 need to be provided") + elif num_outs == 2: + o1, o2 = out + if o1 is not None or o2 is not None: + raise TypeError( + "cannot specify 'out' as both a positional and keyword argument" + ) + else: + out1, out2 = out + + if dtype is None: + dtype = _dtypes_impl.result_type_impl(x1, x2) + x1, x2 = _util.typecast_tensors((x1, x2), dtype, casting) + + quot, rem = _binary_ufuncs_impl.divmod(x1, x2) + + quot = _ufunc_postprocess(quot, out1, casting) + rem = _ufunc_postprocess(rem, out2, casting) + return quot, rem + + +# +# Attach ufuncs to this module, for a further export to the public namespace in __init__.py +# +for name in _binary: + ufunc = getattr(_binary_ufuncs_impl, name) + vars()[name] = deco_binary_ufunc(ufunc) + + +def modf(x, /, *args, **kwds): + quot, rem = divmod(x, 1, *args, **kwds) + return rem, quot + + +_binary = _binary + ["divmod", "modf", "matmul", "ldexp"] + + +# ############# Unary ufuncs ###################### + + +_unary = [ + name + for name in dir(_unary_ufuncs_impl) + if not name.startswith("_") and name != "torch" +] + + +# these are ufunc(int) -> float +_fp_unary = [ + "arccos", + "arccosh", + "arcsin", + "arcsinh", + "arctan", + "arctanh", + "cbrt", + "cos", + "cosh", + "deg2rad", + "degrees", + "exp", + "exp2", + "expm1", + "log", + "log10", + "log1p", + "log2", + "rad2deg", + "radians", + "reciprocal", + "sin", + "sinh", + "sqrt", + "square", + "tan", + "tanh", + "trunc", +] + + +def deco_unary_ufunc(torch_func): + """Common infra for unary ufuncs. + + Normalize arguments, sort out type casting, broadcasting and delegate to + the pytorch functions for the actual work. + """ + + @normalizer + def wrapped( + x: ArrayLike, + /, + out: Optional[OutArray] = None, + *, + where=True, + casting: Optional[CastingModes] = "same_kind", + order="K", + dtype: Optional[DTypeLike] = None, + subok: NotImplementedType = False, + signature=None, + extobj=None, + ): + if dtype is not None: + x = _util.typecast_tensor(x, dtype, casting) + + if torch_func.__name__ in _fp_unary: + x = _util.cast_int_to_float(x) + + result = torch_func(x) + result = _ufunc_postprocess(result, out, casting) + return result + + wrapped.__qualname__ = torch_func.__name__ + wrapped.__name__ = torch_func.__name__ + + return wrapped + + +# +# Attach ufuncs to this module, for a further export to the public namespace in __init__.py +# +for name in _unary: + ufunc = getattr(_unary_ufuncs_impl, name) + vars()[name] = deco_unary_ufunc(ufunc) + + +__all__ = _binary + _unary # noqa: PLE0605 diff --git a/shared/package-files/08/089a4fea064faa4a714c1353f230cf17d7dc49fa1c4ba20023ae61989661efdc/split_with_sizes_copy.h b/shared/package-files/08/089a4fea064faa4a714c1353f230cf17d7dc49fa1c4ba20023ae61989661efdc/split_with_sizes_copy.h new file mode 100644 index 0000000000000000000000000000000000000000..11f2845cc2cc8a7c627d0af04691fe4411068660 --- /dev/null +++ b/shared/package-files/08/089a4fea064faa4a714c1353f230cf17d7dc49fa1c4ba20023ae61989661efdc/split_with_sizes_copy.h @@ -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::split_with_sizes_copy(Tensor self, SymInt[] split_sizes, int dim=0) -> Tensor[] +inline ::std::vector split_with_sizes_copy(const at::Tensor & self, at::IntArrayRef split_sizes, int64_t dim=0) { + return at::_ops::split_with_sizes_copy::call(self, c10::fromIntArrayRefSlow(split_sizes), dim); +} +namespace symint { + template ::value>> + ::std::vector split_with_sizes_copy(const at::Tensor & self, at::IntArrayRef split_sizes, int64_t dim=0) { + return at::_ops::split_with_sizes_copy::call(self, c10::fromIntArrayRefSlow(split_sizes), dim); + } +} + +// aten::split_with_sizes_copy(Tensor self, SymInt[] split_sizes, int dim=0) -> Tensor[] +inline ::std::vector split_with_sizes_copy_symint(const at::Tensor & self, c10::SymIntArrayRef split_sizes, int64_t dim=0) { + return at::_ops::split_with_sizes_copy::call(self, split_sizes, dim); +} +namespace symint { + template ::value>> + ::std::vector split_with_sizes_copy(const at::Tensor & self, c10::SymIntArrayRef split_sizes, int64_t dim=0) { + return at::_ops::split_with_sizes_copy::call(self, split_sizes, dim); + } +} + +// aten::split_with_sizes_copy.out(Tensor self, SymInt[] split_sizes, int dim=0, *, Tensor(a!)[] out) -> () +inline void split_with_sizes_copy_out(at::TensorList out, const at::Tensor & self, at::IntArrayRef split_sizes, int64_t dim=0) { + return at::_ops::split_with_sizes_copy_out::call(self, c10::fromIntArrayRefSlow(split_sizes), dim, out); +} +namespace symint { + template ::value>> + void split_with_sizes_copy_out(at::TensorList out, const at::Tensor & self, at::IntArrayRef split_sizes, int64_t dim=0) { + return at::_ops::split_with_sizes_copy_out::call(self, c10::fromIntArrayRefSlow(split_sizes), dim, out); + } +} + +// aten::split_with_sizes_copy.out(Tensor self, SymInt[] split_sizes, int dim=0, *, Tensor(a!)[] out) -> () +inline void split_with_sizes_copy_outf(const at::Tensor & self, at::IntArrayRef split_sizes, int64_t dim, at::TensorList out) { + return at::_ops::split_with_sizes_copy_out::call(self, c10::fromIntArrayRefSlow(split_sizes), dim, out); +} +namespace symint { + template ::value>> + void split_with_sizes_copy_outf(const at::Tensor & self, at::IntArrayRef split_sizes, int64_t dim, at::TensorList out) { + return at::_ops::split_with_sizes_copy_out::call(self, c10::fromIntArrayRefSlow(split_sizes), dim, out); + } +} + +// aten::split_with_sizes_copy.out(Tensor self, SymInt[] split_sizes, int dim=0, *, Tensor(a!)[] out) -> () +inline void split_with_sizes_copy_symint_out(at::TensorList out, const at::Tensor & self, c10::SymIntArrayRef split_sizes, int64_t dim=0) { + return at::_ops::split_with_sizes_copy_out::call(self, split_sizes, dim, out); +} +namespace symint { + template ::value>> + void split_with_sizes_copy_out(at::TensorList out, const at::Tensor & self, c10::SymIntArrayRef split_sizes, int64_t dim=0) { + return at::_ops::split_with_sizes_copy_out::call(self, split_sizes, dim, out); + } +} + +// aten::split_with_sizes_copy.out(Tensor self, SymInt[] split_sizes, int dim=0, *, Tensor(a!)[] out) -> () +inline void split_with_sizes_copy_symint_outf(const at::Tensor & self, c10::SymIntArrayRef split_sizes, int64_t dim, at::TensorList out) { + return at::_ops::split_with_sizes_copy_out::call(self, split_sizes, dim, out); +} +namespace symint { + template ::value>> + void split_with_sizes_copy_outf(const at::Tensor & self, c10::SymIntArrayRef split_sizes, int64_t dim, at::TensorList out) { + return at::_ops::split_with_sizes_copy_out::call(self, split_sizes, dim, out); + } +} + +} diff --git a/shared/package-files/08/089b96d30e927700cfb659360e5d788347b0b8272c20a3f0b6798830149812e7/test_scalar_compat.py b/shared/package-files/08/089b96d30e927700cfb659360e5d788347b0b8272c20a3f0b6798830149812e7/test_scalar_compat.py new file mode 100644 index 0000000000000000000000000000000000000000..d8afd29ff31c558a7e99861852b08d86deaa9fac --- /dev/null +++ b/shared/package-files/08/089b96d30e927700cfb659360e5d788347b0b8272c20a3f0b6798830149812e7/test_scalar_compat.py @@ -0,0 +1,38 @@ +"""Tests for PeriodIndex behaving like a vectorized Period scalar""" + +import pytest + +from pandas import ( + Timedelta, + date_range, + period_range, +) +import pandas._testing as tm + + +class TestPeriodIndexOps: + def test_start_time(self): + # GH#17157 + index = period_range(freq="M", start="2016-01-01", end="2016-05-31") + expected_index = date_range("2016-01-01", end="2016-05-31", freq="MS") + tm.assert_index_equal(index.start_time, expected_index) + + def test_end_time(self): + # GH#17157 + index = period_range(freq="M", start="2016-01-01", end="2016-05-31") + expected_index = date_range("2016-01-01", end="2016-05-31", freq="ME") + expected_index += Timedelta(1, "D") - Timedelta(1, "ns") + tm.assert_index_equal(index.end_time, expected_index) + + @pytest.mark.filterwarnings(r"ignore:PeriodDtype\[B\] is deprecated:FutureWarning") + @pytest.mark.filterwarnings( + "ignore:Period with BDay freq is deprecated:FutureWarning" + ) + def test_end_time_business_friday(self): + # GH#34449 + pi = period_range("1990-01-05", freq="B", periods=1) + result = pi.end_time + + dti = date_range("1990-01-05", freq="D", periods=1)._with_freq(None) + expected = dti + Timedelta(days=1, nanoseconds=-1) + tm.assert_index_equal(result, expected) diff --git a/shared/package-files/08/089d0e4c21c88d6034648552e2fa0e440b27d91e11d9c40112d3ec6442690126/_collections.py b/shared/package-files/08/089d0e4c21c88d6034648552e2fa0e440b27d91e11d9c40112d3ec6442690126/_collections.py new file mode 100644 index 0000000000000000000000000000000000000000..cf0954e1a30546d781bf25781ec716ef92a77e32 --- /dev/null +++ b/shared/package-files/08/089d0e4c21c88d6034648552e2fa0e440b27d91e11d9c40112d3ec6442690126/_collections.py @@ -0,0 +1,30 @@ +import collections + + +# from jaraco.collections 3.3 +class FreezableDefaultDict(collections.defaultdict): + """ + Often it is desirable to prevent the mutation of + a default dict after its initial construction, such + as to prevent mutation during iteration. + + >>> dd = FreezableDefaultDict(list) + >>> dd[0].append('1') + >>> dd.freeze() + >>> dd[1] + [] + >>> len(dd) + 1 + """ + + def __missing__(self, key): + return getattr(self, '_frozen', super().__missing__)(key) + + def freeze(self): + self._frozen = lambda key: self.default_factory() + + +class Pair(collections.namedtuple('Pair', 'name value')): + @classmethod + def parse(cls, text): + return cls(*map(str.strip, text.split("=", 1))) diff --git a/shared/package-files/08/089d2351ad72aee4786bf715a9c151a4e441a5819e6bd0b9bd0e65c067d65192/pyre_extensions.pyi b/shared/package-files/08/089d2351ad72aee4786bf715a9c151a4e441a5819e6bd0b9bd0e65c067d65192/pyre_extensions.pyi new file mode 100644 index 0000000000000000000000000000000000000000..742b880132561e7631ab643accc54c07a61924cc --- /dev/null +++ b/shared/package-files/08/089d2351ad72aee4786bf715a9c151a4e441a5819e6bd0b9bd0e65c067d65192/pyre_extensions.pyi @@ -0,0 +1,7 @@ +from typing import Any, List, Optional, Type, TypeVar + +_T = TypeVar("_T") + +def none_throws(optional: Optional[_T], message: str = ...) -> _T: ... +def safe_cast(new_type: Type[_T], value: Any) -> _T: ... +def ParameterSpecification(__name: str) -> List[Type[Any]]: ... diff --git a/shared/package-files/08/089dabe5ceebc1d17ea056c605db3f6e4a63e9c91a3d37b1a7eabd8897147aa8/_dirichlet_grad_compositeexplicitautograd_dispatch.h b/shared/package-files/08/089dabe5ceebc1d17ea056c605db3f6e4a63e9c91a3d37b1a7eabd8897147aa8/_dirichlet_grad_compositeexplicitautograd_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..f5bba09c28ab025abe774d899e68f19924a7f914 --- /dev/null +++ b/shared/package-files/08/089dabe5ceebc1d17ea056c605db3f6e4a63e9c91a3d37b1a7eabd8897147aa8/_dirichlet_grad_compositeexplicitautograd_dispatch.h @@ -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 compositeexplicitautograd { + +TORCH_API at::Tensor & _dirichlet_grad_out(at::Tensor & out, const at::Tensor & x, const at::Tensor & alpha, const at::Tensor & total); +TORCH_API at::Tensor & _dirichlet_grad_outf(const at::Tensor & x, const at::Tensor & alpha, const at::Tensor & total, at::Tensor & out); + +} // namespace compositeexplicitautograd +} // namespace at diff --git a/shared/package-files/08/08a1238a4ed855f48918be1a6ee72d92696421484086ffb1d9a51c5e24d1f5bd/test_fcompiler_nagfor.py b/shared/package-files/08/08a1238a4ed855f48918be1a6ee72d92696421484086ffb1d9a51c5e24d1f5bd/test_fcompiler_nagfor.py new file mode 100644 index 0000000000000000000000000000000000000000..2e04f5266dc1e9c5a15f130af5f9c596f8bd7ef9 --- /dev/null +++ b/shared/package-files/08/08a1238a4ed855f48918be1a6ee72d92696421484086ffb1d9a51c5e24d1f5bd/test_fcompiler_nagfor.py @@ -0,0 +1,22 @@ +from numpy.testing import assert_ +import numpy.distutils.fcompiler + +nag_version_strings = [('nagfor', 'NAG Fortran Compiler Release ' + '6.2(Chiyoda) Build 6200', '6.2'), + ('nagfor', 'NAG Fortran Compiler Release ' + '6.1(Tozai) Build 6136', '6.1'), + ('nagfor', 'NAG Fortran Compiler Release ' + '6.0(Hibiya) Build 1021', '6.0'), + ('nagfor', 'NAG Fortran Compiler Release ' + '5.3.2(971)', '5.3.2'), + ('nag', 'NAGWare Fortran 95 compiler Release 5.1' + '(347,355-367,375,380-383,389,394,399,401-402,407,' + '431,435,437,446,459-460,463,472,494,496,503,508,' + '511,517,529,555,557,565)', '5.1')] + +class TestNagFCompilerVersions: + def test_version_match(self): + for comp, vs, version in nag_version_strings: + fc = numpy.distutils.fcompiler.new_fcompiler(compiler=comp) + v = fc.version_match(vs) + assert_(v == version) diff --git a/shared/package-files/08/08a1a12eacafc58d26966cbcfc76f85b391275660f51a536c99621cfed22679c/rewritingsystem_fsm.py b/shared/package-files/08/08a1a12eacafc58d26966cbcfc76f85b391275660f51a536c99621cfed22679c/rewritingsystem_fsm.py new file mode 100644 index 0000000000000000000000000000000000000000..21916530040ac321180692d1a0811da4ae36a056 --- /dev/null +++ b/shared/package-files/08/08a1a12eacafc58d26966cbcfc76f85b391275660f51a536c99621cfed22679c/rewritingsystem_fsm.py @@ -0,0 +1,60 @@ +class State: + ''' + A representation of a state managed by a ``StateMachine``. + + Attributes: + name (instance of FreeGroupElement or string) -- State name which is also assigned to the Machine. + transisitons (OrderedDict) -- Represents all the transitions of the state object. + state_type (string) -- Denotes the type (accept/start/dead) of the state. + rh_rule (instance of FreeGroupElement) -- right hand rule for dead state. + state_machine (instance of StateMachine object) -- The finite state machine that the state belongs to. + ''' + + def __init__(self, name, state_machine, state_type=None, rh_rule=None): + self.name = name + self.transitions = {} + self.state_machine = state_machine + self.state_type = state_type[0] + self.rh_rule = rh_rule + + def add_transition(self, letter, state): + ''' + Add a transition from the current state to a new state. + + Keyword Arguments: + letter -- The alphabet element the current state reads to make the state transition. + state -- This will be an instance of the State object which represents a new state after in the transition after the alphabet is read. + + ''' + self.transitions[letter] = state + +class StateMachine: + ''' + Representation of a finite state machine the manages the states and the transitions of the automaton. + + Attributes: + states (dictionary) -- Collection of all registered `State` objects. + name (str) -- Name of the state machine. + ''' + + def __init__(self, name, automaton_alphabet): + self.name = name + self.automaton_alphabet = automaton_alphabet + self.states = {} # Contains all the states in the machine. + self.add_state('start', state_type='s') + + def add_state(self, state_name, state_type=None, rh_rule=None): + ''' + Instantiate a state object and stores it in the 'states' dictionary. + + Arguments: + state_name (instance of FreeGroupElement or string) -- name of the new states. + state_type (string) -- Denotes the type (accept/start/dead) of the state added. + rh_rule (instance of FreeGroupElement) -- right hand rule for dead state. + + ''' + new_state = State(state_name, self, state_type, rh_rule) + self.states[state_name] = new_state + + def __repr__(self): + return "%s" % (self.name) diff --git a/shared/package-files/08/08a22cd6886ea1ae62ab72dbd00f8510cc2a92eb8e122c3a4c8a04c0cffafc10/_use_cudnn_rnn_flatten_weight.h b/shared/package-files/08/08a22cd6886ea1ae62ab72dbd00f8510cc2a92eb8e122c3a4c8a04c0cffafc10/_use_cudnn_rnn_flatten_weight.h new file mode 100644 index 0000000000000000000000000000000000000000..edc4b0590568cbfc02a6fbfb9f9a3e7cc10d6fc1 --- /dev/null +++ b/shared/package-files/08/08a22cd6886ea1ae62ab72dbd00f8510cc2a92eb8e122c3a4c8a04c0cffafc10/_use_cudnn_rnn_flatten_weight.h @@ -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::_use_cudnn_rnn_flatten_weight() -> bool +inline bool _use_cudnn_rnn_flatten_weight() { + return at::_ops::_use_cudnn_rnn_flatten_weight::call(); +} + +} diff --git a/shared/package-files/08/08b8092063fe3c24ed22c342ce4a83171d76028507d2b36a2619f6fe90b076fd/Caffe2Config.cmake b/shared/package-files/08/08b8092063fe3c24ed22c342ce4a83171d76028507d2b36a2619f6fe90b076fd/Caffe2Config.cmake new file mode 100644 index 0000000000000000000000000000000000000000..bd1dbd8529bfd596fcae684f2790bce0b961cdfc --- /dev/null +++ b/shared/package-files/08/08b8092063fe3c24ed22c342ce4a83171d76028507d2b36a2619f6fe90b076fd/Caffe2Config.cmake @@ -0,0 +1,140 @@ +# - Config file for the Caffe2 package +# It defines the following variable(s) +# CAFFE2_INCLUDE_DIRS - include directories for FooBar +# as well as Caffe2 targets for other cmake libraries to use. + +# library version information + +# Utils functions. +include("${CMAKE_CURRENT_LIST_DIR}/public/utils.cmake") + +# Depending on whether Caffe2 uses gflags during compile time or +# not, invoke gflags. +if(OFF) + include("${CMAKE_CURRENT_LIST_DIR}/public/gflags.cmake") + if(NOT TARGET gflags) + message(FATAL_ERROR + "Your installed Caffe2 version uses gflags but the gflags library " + "cannot be found. Did you accidentally remove it, or have you set " + "the right CMAKE_PREFIX_PATH and/or GFLAGS_ROOT_DIR? If you do not " + "have gflags, you will need to install gflags and set the library " + "path accordingly.") + endif() +endif() + +# Depending on whether Caffe2 uses glog during compile time or +# not, invoke glog. +if(OFF) + include("${CMAKE_CURRENT_LIST_DIR}/public/glog.cmake") + if(NOT TARGET glog::glog) + message(FATAL_ERROR + "Your installed Caffe2 version uses glog but the glog library " + "cannot be found. Did you accidentally remove it, or have you set " + "the right CMAKE_PREFIX_PATH and/or GFLAGS_ROOT_DIR? If you do not " + "have glog, you will need to install glog and set the library " + "path accordingly.") + endif() +endif() + +# Protobuf +if(ON) + if(NOT TARGET protobuf::libprotobuf) + # Define protobuf::libprotobuf as a dummy target to resolve references to + # protobuf::libprotobuf in Caffe2Targets.cmake. + add_library(dummy INTERFACE) + add_library(protobuf::libprotobuf ALIAS dummy) + endif() +else() + include("${CMAKE_CURRENT_LIST_DIR}/public/protobuf.cmake") + if(NOT TARGET protobuf::libprotobuf) + message(FATAL_ERROR + "Your installed Caffe2 version uses protobuf but the protobuf library " + "cannot be found. Did you accidentally remove it, or have you set " + "the right CMAKE_PREFIX_PATH? If you do not have protobuf, you will " + "need to install protobuf and set the library path accordingly.") + endif() + message(STATUS "Caffe2: Protobuf version " ${Protobuf_VERSION}) + # If during build time we know the protobuf version, we will also do a sanity + # check to ensure that the protobuf library that Caffe2 found is consistent + # with the compiled version. + if(FALSE) + if(NOT (${Protobuf_VERSION} VERSION_EQUAL Protobuf_VERSION_NOTFOUND)) + message(FATAL_ERROR + "Your installed Caffe2 is built with protobuf " + "Protobuf_VERSION_NOTFOUND" + ", while your current cmake setting discovers protobuf version " + ${Protobuf_VERSION} + ". Please specify a protobuf version that is the same as the built " + "version.") + endif() + endif() +endif() + +if (OFF) + include("${CMAKE_CURRENT_LIST_DIR}/public/LoadHIP.cmake") +endif() + +if(ON) + # The file public/cuda.cmake exclusively uses CAFFE2_USE_*. + # If Caffe2 was compiled with the libraries below, they must + # be found again when including the Caffe2 target. + set(CAFFE2_USE_CUDA ON) + set(CAFFE2_USE_TENSORRT OFF) + + # Add current directory to module path so we pick up FindCUDAToolkit.cmake + set(old_CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH}") + list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}") + include("${CMAKE_CURRENT_LIST_DIR}/public/cuda.cmake") + set(CMAKE_MODULE_PATH "${old_CMAKE_MODULE_PATH}") + + if(ON AND NOT CAFFE2_USE_CUDA) + message(FATAL_ERROR + "Your installed Caffe2 version uses CUDA but I cannot find the CUDA " + "libraries. Please set the proper CUDA prefixes and / or install " + "CUDA.") + endif() + if(OFF AND NOT CAFFE2_USE_TENSORRT) + message(FATAL_ERROR + "Your installed Caffe2 version uses TensorRT but I cannot find the TensorRT " + "libraries. Please set the proper TensorRT prefixes and / or install " + "TensorRT.") + endif() +endif() + +if(OFF) + # Add current directory to module path so we pick up FindSYCLToolkit.cmake + set(old_CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH}") + list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}") + include("${CMAKE_CURRENT_LIST_DIR}/public/xpu.cmake") + set(CMAKE_MODULE_PATH "${old_CMAKE_MODULE_PATH}") +endif() + +if(ON) + include("${CMAKE_CURRENT_LIST_DIR}/public/mkl.cmake") +endif() + +if(ON) + include("${CMAKE_CURRENT_LIST_DIR}/public/mkldnn.cmake") +endif() + +# import targets +include ("${CMAKE_CURRENT_LIST_DIR}/Caffe2Targets.cmake") + +# Interface libraries, that allows one to build proper link flags. +# We will also define a helper variable, Caffe2_MAIN_LIBS, that resolves to +# the main caffe2 libraries in cases of cuda presence / absence. +set(Caffe2_MAIN_LIBS torch_library) + +# include directory. +# +# Newer versions of CMake set the INTERFACE_INCLUDE_DIRECTORIES property +# of the imported targets. It is hence not necessary to add this path +# manually to the include search path for targets which link to gflags. +# The following lines are here for backward compatibility, in case one +# would like to use the old-style include path. +get_filename_component( + CMAKE_CURRENT_LIST_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH) +# Note: the current list dir is _INSTALL_PREFIX/share/cmake/Gloo. +get_filename_component( + _INSTALL_PREFIX "${CMAKE_CURRENT_LIST_DIR}/../../../" ABSOLUTE) +set(CAFFE2_INCLUDE_DIRS "${_INSTALL_PREFIX}/include") diff --git a/shared/package-files/08/08c9feda6b4a9318af52b6858aefee128074c932b8d991dba0cfeec85ed8850b/training_provenance.json b/shared/package-files/08/08c9feda6b4a9318af52b6858aefee128074c932b8d991dba0cfeec85ed8850b/training_provenance.json new file mode 100644 index 0000000000000000000000000000000000000000..6370c6cb19f27aa29b000ec642f42796ef37861d --- /dev/null +++ b/shared/package-files/08/08c9feda6b4a9318af52b6858aefee128074c932b8d991dba0cfeec85ed8850b/training_provenance.json @@ -0,0 +1,35013 @@ +{ + "initialization": { + "distribution": "Normal(0,0.01)", + "seed": 20261021, + "pretrained_weights": false + }, + "training_data": "all 19880 supplied training shots per condition; all 130 conditions", + "train_manifest_sha256": "ce46c21e3595cfc5885bbe2b6481105317d2e6267498ec4572601469825914b8", + "validation_manifest_sha256": "482bb7268c6c827ebbf1f756ee6994750acfcd011adab08eaa2ada703e5faea1", + "calibration_exception": "Supplied even-fitted DEMs include validation syndromes but no logical labels or test data.", + "optimizer": "L-BFGS-B binary cross entropy plus 1e-5 L2, maximum 300 iterations", + "selection": "First trained candidate; validation reported without parameter fitting or hyperparameter selection", + "test_data_used": false, + "released_per_shot_predictions_used": false, + "history": [ + { + "group": "d3_bX_center_3_5", + "train_loss": 0.49244210477855016, + "iterations": 88, + "failure": 0.26941105769230766, + "plain_failure": 0.2847205528846154, + "correlated_failure": 0.2704326923076923, + "coset_failure": 0.2847205528846154, + "optimizer_success": true + }, + { + "group": "d3_bX_center_5_3", + "train_loss": 0.4947914557869911, + "iterations": 85, + "failure": 0.2706430288461538, + "plain_failure": 0.29103064903846154, + "correlated_failure": 0.27076322115384616, + "coset_failure": 0.29103064903846154, + "optimizer_success": true + }, + { + "group": "d3_bX_center_5_7", + "train_loss": 0.4786369068642458, + "iterations": 79, + "failure": 0.25964543269230766, + "plain_failure": 0.2741887019230769, + "correlated_failure": 0.2598106971153846, + "coset_failure": 0.2741887019230769, + "optimizer_success": true + }, + { + "group": "d3_bX_center_7_5", + "train_loss": 0.48299120621578956, + "iterations": 81, + "failure": 0.26062199519230766, + "plain_failure": 0.2762920673076923, + "correlated_failure": 0.2615234375, + "coset_failure": 0.2762920673076923, + "optimizer_success": true + }, + { + "group": "d3_bZ_center_3_5", + "train_loss": 0.4903180822446507, + "iterations": 62, + "failure": 0.2718299278846154, + "plain_failure": 0.2878605769230769, + "correlated_failure": 0.2736778846153846, + "coset_failure": 0.2878605769230769, + "optimizer_success": true + }, + { + "group": "d3_bZ_center_5_3", + "train_loss": 0.4886621962442568, + "iterations": 90, + "failure": 0.25896935096153845, + "plain_failure": 0.27548076923076925, + "correlated_failure": 0.2588942307692308, + "coset_failure": 0.27548076923076925, + "optimizer_success": true + }, + { + "group": "d3_bZ_center_5_7", + "train_loss": 0.4822654448634678, + "iterations": 71, + "failure": 0.2594200721153846, + "plain_failure": 0.2823016826923077, + "correlated_failure": 0.25961538461538464, + "coset_failure": 0.2823016826923077, + "optimizer_success": true + }, + { + "group": "d3_bZ_center_7_5", + "train_loss": 0.47379411844328495, + "iterations": 69, + "failure": 0.2542067307692308, + "plain_failure": 0.27393329326923077, + "correlated_failure": 0.2547776442307692, + "coset_failure": 0.27393329326923077, + "optimizer_success": true + }, + { + "group": "d5_bX_center_5_5", + "train_loss": 0.4801955727360068, + "iterations": 85, + "failure": 0.2616887019230769, + "plain_failure": 0.293359375, + "correlated_failure": 0.2609375, + "coset_failure": 0.293359375, + "optimizer_success": true + }, + { + "group": "d5_bZ_center_5_5", + "train_loss": 0.4661361209861219, + "iterations": 87, + "failure": 0.2465294471153846, + "plain_failure": 0.2799729567307692, + "correlated_failure": 0.24618389423076922, + "coset_failure": 0.2799729567307692, + "optimizer_success": true + } + ], + "elapsed_seconds": 30.247901678085327, + "experiment_2": { + "method": "Exact contraction of supplied DEM for d3; learned logistic mixture with matching features", + "initialization": { + "distribution": "Normal(0,0.01)", + "seed": 20261022, + "pretrained_weights": false + }, + "selection": "Minimum validation condition-mean failure per group among raw exact, calibrated exact, exact plus matching ensemble", + "history": [ + { + "group": "d3_bX_center_3_5", + "candidates": { + "exact_raw": { + "failure": 0.253125 + }, + "exact_calibrated": { + "failure": 0.25378605769230766, + "train_loss": 0.46127817271552574, + "iterations": 8 + }, + "exact_ensemble": { + "failure": 0.2522686298076923, + "train_loss": 0.459112999306209, + "iterations": 115 + } + }, + "selected": "exact_ensemble" + }, + { + "group": "d3_bX_center_5_3", + "candidates": { + "exact_raw": { + "failure": 0.2569711538461538 + }, + "exact_calibrated": { + "failure": 0.25790264423076925, + "train_loss": 0.46654812103904, + "iterations": 8 + }, + "exact_ensemble": { + "failure": 0.257421875, + "train_loss": 0.4647701206688181, + "iterations": 80 + } + }, + "selected": "exact_raw" + }, + { + "group": "d3_bX_center_5_7", + "candidates": { + "exact_raw": { + "failure": 0.23622295673076923 + }, + "exact_calibrated": { + "failure": 0.23608774038461539, + "train_loss": 0.43883548729746, + "iterations": 8 + }, + "exact_ensemble": { + "failure": 0.2357421875, + "train_loss": 0.43779428254411507, + "iterations": 82 + } + }, + "selected": "exact_ensemble" + }, + { + "group": "d3_bX_center_7_5", + "candidates": { + "exact_raw": { + "failure": 0.24507211538461537 + }, + "exact_calibrated": { + "failure": 0.24541766826923078, + "train_loss": 0.4551514021617466, + "iterations": 8 + }, + "exact_ensemble": { + "failure": 0.24453125, + "train_loss": 0.4531701181347552, + "iterations": 87 + } + }, + "selected": "exact_ensemble" + }, + { + "group": "d3_bZ_center_3_5", + "candidates": { + "exact_raw": { + "failure": 0.25402644230769234 + }, + "exact_calibrated": { + "failure": 0.2541316105769231, + "train_loss": 0.4629309494609537, + "iterations": 8 + }, + "exact_ensemble": { + "failure": 0.25310997596153845, + "train_loss": 0.45978815429050657, + "iterations": 96 + } + }, + "selected": "exact_ensemble" + }, + { + "group": "d3_bZ_center_5_3", + "candidates": { + "exact_raw": { + "failure": 0.24298377403846153 + }, + "exact_calibrated": { + "failure": 0.24182692307692308, + "train_loss": 0.4539302799880139, + "iterations": 8 + }, + "exact_ensemble": { + "failure": 0.2408203125, + "train_loss": 0.45299183982324187, + "iterations": 100 + } + }, + "selected": "exact_ensemble" + }, + { + "group": "d3_bZ_center_5_7", + "candidates": { + "exact_raw": { + "failure": 0.24226262019230768 + }, + "exact_calibrated": { + "failure": 0.24166165865384615, + "train_loss": 0.4465993958308988, + "iterations": 8 + }, + "exact_ensemble": { + "failure": 0.24064002403846155, + "train_loss": 0.4446921891727968, + "iterations": 121 + } + }, + "selected": "exact_ensemble" + }, + { + "group": "d3_bZ_center_7_5", + "candidates": { + "exact_raw": { + "failure": 0.23793569711538462 + }, + "exact_calibrated": { + "failure": 0.2377253605769231, + "train_loss": 0.43773570264641537, + "iterations": 8 + }, + "exact_ensemble": { + "failure": 0.2367638221153846, + "train_loss": 0.4363258121838859, + "iterations": 103 + } + }, + "selected": "exact_ensemble" + } + ], + "numerical_check": "r01 all syndromes agrees with exhaustive enumeration to 1.2e-7" + }, + "experiment_3": { + "method": "Exact complementary CSS edge posterior marginals reweight joint error probabilities before relevant CSS exact contraction; induced correlations are factorized", + "initialization": { + "distribution": "Normal(0,0.01)", + "seed": 20261024, + "pretrained_weights": false + }, + "training": "4096 training shots sampled without replacement from each of all 26 d5 conditions, RNG seed 20261023; original matching components retain their all-training-shot fit", + "selection": "Minimum full-validation condition-mean failure per group among previous matching, raw conditional (strength 1), calibrated conditional, and learned combination of strengths 0/.5/1 with matching", + "history": [ + { + "group": "d5_bX_center_5_5", + "candidates": { + "matching": { + "failure": 0.2616887019230769 + }, + "conditional_raw": { + "failure": 0.24053485576923078 + }, + "conditional_calibrated": { + "failure": 0.24064002403846155, + "train_loss": 0.4375296643032495, + "iterations": 8 + }, + "conditional_ensemble": { + "failure": 0.24024939903846154, + "train_loss": 0.43518462432711086, + "iterations": 107 + } + }, + "selected": "conditional_ensemble" + }, + { + "group": "d5_bZ_center_5_5", + "candidates": { + "matching": { + "failure": 0.2465294471153846 + }, + "conditional_raw": { + "failure": 0.229296875 + }, + "conditional_calibrated": { + "failure": 0.22944711538461537, + "train_loss": 0.42155058672043744, + "iterations": 9 + }, + "conditional_ensemble": { + "failure": 0.22627704326923076, + "train_loss": 0.4183033939719488, + "iterations": 150 + } + }, + "selected": "conditional_ensemble" + } + ], + "approximation": "Complementary-check conditioning induces error dependencies. This candidate uses their marginal probabilities independently; d5 contraction is therefore approximate." + }, + "contextual_d3_pilot": { + "training": { + "initialization": "Random variance-scaled normal first two layers, random Normal(0,.001) output; zero biases; seed 20261025", + "architecture": "Two 32-unit SiLU layers, output 2*tanh correction to original hyperedge logit; 40 local detection bits and 57 static error/geometry features", + "training": "Uniform condition sampling from all 104 d3 conditions; batch drawn from the supplied training split only", + "steps": 512, + "batch_size": 128, + "optimizer": "AdamW 1e-3, weight decay 1e-4, global gradient norm clip 1", + "loss": "Binary conditional logical likelihood computed by exact frontier elimination", + "validation_shots_per_condition": 512, + "test_data_used": false, + "log": [ + { + "step": 1, + "loss": 0.5264908075332642, + "error": 0.2578125, + "gradient_norm": 0.06699763983488083, + "elapsed": 432.866411447525 + }, + { + "step": 16, + "loss": 0.3703196942806244, + "error": 0.1484375, + "gradient_norm": 0.030896008014678955, + "elapsed": 437.98383259773254 + }, + { + "step": 32, + "loss": 0.5410848259925842, + "error": 0.3125, + "gradient_norm": 0.023287978023290634, + "elapsed": 443.36136960983276 + }, + { + "step": 48, + "loss": 0.6548658609390259, + "error": 0.3984375, + "gradient_norm": 0.08600008487701416, + "elapsed": 448.5753285884857 + }, + { + "step": 64, + "loss": 0.3396199345588684, + "error": 0.1875, + "gradient_norm": 0.09408964961767197, + "elapsed": 453.55865502357483 + }, + { + "step": 80, + "loss": 0.22403547167778015, + "error": 0.09375, + "gradient_norm": 0.11353142559528351, + "elapsed": 458.8852906227112 + }, + { + "step": 96, + "loss": 0.5754531621932983, + "error": 0.34375, + "gradient_norm": 0.10487920045852661, + "elapsed": 466.05401706695557 + }, + { + "step": 112, + "loss": 0.6411566734313965, + "error": 0.4609375, + "gradient_norm": 0.0897318571805954, + "elapsed": 472.25429010391235 + }, + { + "step": 128, + "loss": 0.4312451481819153, + "error": 0.1875, + "gradient_norm": 0.024307778105139732, + "elapsed": 477.15532541275024 + }, + { + "step": 144, + "loss": 0.18217915296554565, + "error": 0.0625, + "gradient_norm": 0.02471880242228508, + "elapsed": 481.5596089363098 + }, + { + "step": 160, + "loss": 0.3044101595878601, + "error": 0.140625, + "gradient_norm": 0.11279744654893875, + "elapsed": 485.47020196914673 + }, + { + "step": 176, + "loss": 0.6485109329223633, + "error": 0.421875, + "gradient_norm": 0.09296684712171555, + "elapsed": 489.5691695213318 + }, + { + "step": 192, + "loss": 0.2566836178302765, + "error": 0.09375, + "gradient_norm": 0.03372751921415329, + "elapsed": 493.5000331401825 + }, + { + "step": 208, + "loss": 0.5453524589538574, + "error": 0.296875, + "gradient_norm": 0.09404441714286804, + "elapsed": 497.62110686302185 + }, + { + "step": 224, + "loss": 0.19316628575325012, + "error": 0.0859375, + "gradient_norm": 0.03877737745642662, + "elapsed": 501.7119605541229 + }, + { + "step": 240, + "loss": 0.5537517070770264, + "error": 0.328125, + "gradient_norm": 0.030214278027415276, + "elapsed": 505.71154594421387 + }, + { + "step": 256, + "loss": 0.5224764347076416, + "error": 0.2734375, + "gradient_norm": 0.13780595362186432, + "elapsed": 509.65054631233215 + }, + { + "step": 272, + "loss": 0.5350009202957153, + "error": 0.3046875, + "gradient_norm": 0.08942794054746628, + "elapsed": 553.2619364261627 + }, + { + "step": 288, + "loss": 0.4561898112297058, + "error": 0.21875, + "gradient_norm": 0.02774384245276451, + "elapsed": 557.1897430419922 + }, + { + "step": 304, + "loss": 0.6102809309959412, + "error": 0.390625, + "gradient_norm": 0.04374801740050316, + "elapsed": 561.1394822597504 + }, + { + "step": 320, + "loss": 0.37536823749542236, + "error": 0.171875, + "gradient_norm": 0.10325513035058975, + "elapsed": 565.0790395736694 + }, + { + "step": 336, + "loss": 0.419940710067749, + "error": 0.2265625, + "gradient_norm": 0.04723379388451576, + "elapsed": 569.050211429596 + }, + { + "step": 352, + "loss": 0.6458156108856201, + "error": 0.4609375, + "gradient_norm": 0.04816316068172455, + "elapsed": 573.0114912986755 + }, + { + "step": 368, + "loss": 0.5628451108932495, + "error": 0.328125, + "gradient_norm": 0.09256711602210999, + "elapsed": 576.9429559707642 + }, + { + "step": 384, + "loss": 0.5773618221282959, + "error": 0.359375, + "gradient_norm": 0.16693103313446045, + "elapsed": 580.8791544437408 + }, + { + "step": 400, + "loss": 0.12261693179607391, + "error": 0.046875, + "gradient_norm": 0.06734084337949753, + "elapsed": 584.8116250038147 + }, + { + "step": 416, + "loss": 0.33368560671806335, + "error": 0.125, + "gradient_norm": 0.04156317561864853, + "elapsed": 588.7308163642883 + }, + { + "step": 432, + "loss": 0.2161063849925995, + "error": 0.109375, + "gradient_norm": 0.06895668804645538, + "elapsed": 592.6584475040436 + }, + { + "step": 448, + "loss": 0.6331151723861694, + "error": 0.3828125, + "gradient_norm": 0.12380247563123703, + "elapsed": 596.5997920036316 + }, + { + "step": 464, + "loss": 0.28776052594184875, + "error": 0.1484375, + "gradient_norm": 0.03920985758304596, + "elapsed": 600.5359675884247 + }, + { + "step": 480, + "loss": 0.639541745185852, + "error": 0.421875, + "gradient_norm": 0.029632505029439926, + "elapsed": 604.4547488689423 + }, + { + "step": 496, + "loss": 0.5919073820114136, + "error": 0.359375, + "gradient_norm": 0.11676646769046783, + "elapsed": 608.3825929164886 + }, + { + "step": 512, + "loss": 0.5479233264923096, + "error": 0.265625, + "gradient_norm": 0.03692208230495453, + "elapsed": 612.3190803527832 + } + ] + }, + "selection": "Per-group minimum failure among previous decoder and pilot steps 256 and 512, using all 532480 d3 validation shots", + "history": [ + { + "group": "d3_bX_center_3_5", + "candidates": { + "previous": 0.25226862980769227, + "256": 0.2515625, + "512": 0.2510216346153846 + }, + "selected": "512" + }, + { + "group": "d3_bX_center_5_3", + "candidates": { + "previous": 0.2569711538461539, + "256": 0.2557542067307692, + "512": 0.256640625 + }, + "selected": "256" + }, + { + "group": "d3_bX_center_5_7", + "candidates": { + "previous": 0.23574218750000003, + "256": 0.2356820913461538, + "512": 0.23511117788461539 + }, + "selected": "512" + }, + { + "group": "d3_bX_center_7_5", + "candidates": { + "previous": 0.24453125000000003, + "256": 0.24275841346153845, + "512": 0.24224759615384617 + }, + "selected": "512" + }, + { + "group": "d3_bZ_center_3_5", + "candidates": { + "previous": 0.25310997596153845, + "256": 0.2524188701923077, + "512": 0.2513822115384615 + }, + "selected": "512" + }, + { + "group": "d3_bZ_center_5_3", + "candidates": { + "previous": 0.24082031250000002, + "256": 0.2387469951923077, + "512": 0.23933293269230768 + }, + "selected": "256" + }, + { + "group": "d3_bZ_center_5_7", + "candidates": { + "previous": 0.24064002403846155, + "256": 0.24053485576923073, + "512": 0.24002403846153844 + }, + "selected": "512" + }, + { + "group": "d3_bZ_center_7_5", + "candidates": { + "previous": 0.2367638221153846, + "256": 0.23635817307692306, + "512": 0.23584735576923077 + }, + "selected": "512" + } + ], + "initial_validation_subset": "First 512 validation rows/condition; then both trained checkpoints evaluated on full validation", + "features": "40 detection bits within five frames and 57 static error/geometry features; detector indices come from the ideal geometry/DEM; sample IDs are not features", + "derivative_check": "Relative error 1.16e-7 versus automatic differentiation on a small d3 example" + }, + "previous_package_validation": { + "performance": 0.7672100360576923, + "failure_by_distance": { + "d3": 0.2398212139423077, + "d5": 0.2257587139423077 + }, + "scorer": "Supplied qecbench.scoring on all 130 validation conditions and 665600 shots", + "contract_checks": [ + { + "condition": "surface_code_bX_d3_r01_center_3_5", + "shots": 1, + "maximum_probability_difference": 0.0 + }, + { + "condition": "surface_code_bX_d3_r25_center_5_3", + "shots": 37, + "maximum_probability_difference": 0.0 + }, + { + "condition": "surface_code_bZ_d3_r13_center_5_7", + "shots": 1025, + "maximum_probability_difference": 0.0 + }, + { + "condition": "surface_code_bX_d5_r01_center_5_5", + "shots": 7, + "maximum_probability_difference": 0.0 + }, + { + "condition": "surface_code_bZ_d5_r09_center_5_5", + "shots": 257, + "maximum_probability_difference": 0.0 + }, + { + "condition": "surface_code_bX_d5_r25_center_5_5", + "shots": 17, + "maximum_probability_difference": 0.0 + } + ], + "prediction_generation": "All26 d5 conditions replayed from the assembled package; unchanged d3 predictions retained. Trusted scoring covers all130 conditions.", + "runtime_evidence": "Full133120-shot d5 replay took 312.38s on one H100; compatible physical/neural priors are shared. D3 paths unchanged from the recorded incumbent.", + "d5_validation_runtime_seconds": 312.38163661956787, + "contract_execution": { + "requested_verifier_uid": 10001, + "effective_uid": 1000, + "effective_gid": 1000, + "supplementary_groups": [], + "identity_status": "Development process is already unprivileged and cannot change UID; verifier UID10001 was not executed", + "model_and_input_copy": "Owned by development UID 1000,directories0555,files0444,relocated under a fresh accessible temporary parent", + "output_directory": "Owned by execution UID 1000,mode0700", + "PYTHONPATH": "", + "backend": "Runtime default; full selected subset cases", + "scope": "Local contract check; not a Docker/network/mount-isolation test" + } + }, + "previous_model_manifest_sha256": "d8bed57d4619a87ad756d2347796e396b3169d4146f69ab426f99f9934ef1a8f", + "contextual_updates": [ + { + "name": "large512", + "training": { + "initialization": "This session's pilot checkpoint 512; original random initialization seed 20261025", + "run_config": { + "steps": 2048, + "batch": 2048, + "output": "/run-state/workspace/research/learned_exact/continuation1", + "validation_shots": 1024, + "init_weights": "/workspace/research/learned_exact/pilot/weights-512.npz", + "learning_rate": 0.001, + "eval_every": 512, + "seed": 20261028, + "validation_batch": 1024, + "uniform_validation": true, + "original_random_seed": 20261025, + "starting_checkpoint_sha256": "b14f7bf663b0484b9a79a759455ad09aca456f83a7cc29ed2e9e1d210683c180", + "train_manifest_sha256": "ce46c21e3595cfc5885bbe2b6481105317d2e6267498ec4572601469825914b8", + "validation_manifest_sha256": "482bb7268c6c827ebbf1f756ee6994750acfcd011adab08eaa2ada703e5faea1" + }, + "completed_checkpoint_steps": 512, + "new_sampled_training_shots": 1048576, + "optimizer": "AdamW 1e-3, weight decay 1e-4, global norm clip 1; optimizer reset at phase start", + "data": "Uniform sampling over all 104 d3 training conditions; training rows only", + "selection": "Checkpoint 512 evaluated on all 532480 d3 validation shots", + "full_validation_failure": 0.2428973858173077, + "termination": "Saved checkpoint 512, then stopped to restart with corrected validation NLL reporting. Any later in-flight updates were discarded.", + "reporting_correction": "Recomputed with float labels from the full checkpoint predictions; original in-flight diagnostic negated uint8 labels. Training loss and failure metrics were unaffected.", + "test_data_used": false + }, + "selection": "Minimum full validation mean failure per group between the incumbent and this trained checkpoint", + "history": [ + { + "group": "d3_bX_center_3_5", + "previous_failure": 0.2510216346153846, + "candidate_failure": 0.2491436298076923, + "selected_new": true + }, + { + "group": "d3_bX_center_5_3", + "previous_failure": 0.2557542067307692, + "candidate_failure": 0.256640625, + "selected_new": false + }, + { + "group": "d3_bX_center_5_7", + "previous_failure": 0.23511117788461539, + "candidate_failure": 0.23515625, + "selected_new": false + }, + { + "group": "d3_bX_center_7_5", + "previous_failure": 0.24224759615384617, + "candidate_failure": 0.2403996394230769, + "selected_new": true + }, + { + "group": "d3_bZ_center_3_5", + "previous_failure": 0.2513822115384615, + "candidate_failure": 0.24893329326923078, + "selected_new": true + }, + { + "group": "d3_bZ_center_5_3", + "previous_failure": 0.2387469951923077, + "candidate_failure": 0.23925781249999997, + "selected_new": false + }, + { + "group": "d3_bZ_center_5_7", + "previous_failure": 0.24002403846153844, + "candidate_failure": 0.23885216346153845, + "selected_new": true + }, + { + "group": "d3_bZ_center_7_5", + "previous_failure": 0.23584735576923077, + "candidate_failure": 0.23479567307692306, + "selected_new": true + }, + { + "group": "d5_bX_center_5_5", + "previous_failure": 0.24024939903846157, + "candidate_failure": 0.24024939903846157, + "selected_new": false + }, + { + "group": "d5_bZ_center_5_5", + "previous_failure": 0.22627704326923076, + "candidate_failure": 0.22627704326923076, + "selected_new": false + } + ], + "source_checkpoint_sha256": "7a7579b1bded95bcea7b1d26b2cf26de333c1a0f417fac6a0143eeb3a0c93aa2" + }, + { + "name": "continuation2", + "training_run": { + "initialization": "Continue from this session's trained checkpoint", + "original_initialization": "Random variance-scaled normal first two layers, random Normal(0,.001) output; zero biases; seed 20261025", + "architecture": "Two 32-unit SiLU layers, output 2*tanh correction to original hyperedge logit; 40 local detection bits and 57 static error/geometry features", + "training": "Uniform condition sampling from all 104 d3 conditions; batch drawn from the supplied training split only", + "steps": 1536, + "batch_size": 2048, + "optimizer": "AdamW, weight decay 1e-4, global gradient norm clip 1", + "learning_rate": 0.001, + "sampling_seed": 20261028, + "optimizer_restored": true, + "rng_restored": true, + "session_trained_starting_checkpoint": "/workspace/research/learned_exact/continuation1/weights-512.npz", + "starting_checkpoint_sha256": "7a7579b1bded95bcea7b1d26b2cf26de333c1a0f417fac6a0143eeb3a0c93aa2", + "loss": "Binary conditional logical likelihood computed by exact frontier elimination", + "validation_shots_per_condition": 1024, + "uniform_validation": true, + "uniform_validation_seed": 20261028, + "test_data_used": false, + "log": [ + { + "step": 1, + "loss": 0.05675870552659035, + "error": 0.0166015625, + "gradient_norm": 0.007466103881597519, + "elapsed": 30.636001586914062 + }, + { + "step": 16, + "loss": 0.44421544671058655, + "error": 0.22412109375, + "gradient_norm": 0.029868461191654205, + "elapsed": 35.424378871917725 + }, + { + "step": 32, + "loss": 0.46525052189826965, + "error": 0.23681640625, + "gradient_norm": 0.022205814719200134, + "elapsed": 40.526121854782104 + }, + { + "step": 48, + "loss": 0.6177924871444702, + "error": 0.3544921875, + "gradient_norm": 0.022866439074277878, + "elapsed": 45.67929220199585 + }, + { + "step": 64, + "loss": 0.5046484470367432, + "error": 0.2666015625, + "gradient_norm": 0.0222865492105484, + "elapsed": 50.80926203727722 + }, + { + "step": 80, + "loss": 0.638379693031311, + "error": 0.41064453125, + "gradient_norm": 0.012645655311644077, + "elapsed": 55.93321657180786 + }, + { + "step": 96, + "loss": 0.18619170784950256, + "error": 0.0732421875, + "gradient_norm": 0.012208878062665462, + "elapsed": 61.002137899398804 + }, + { + "step": 112, + "loss": 0.4269826412200928, + "error": 0.2109375, + "gradient_norm": 0.021279584616422653, + "elapsed": 66.13066720962524 + }, + { + "step": 128, + "loss": 0.47232550382614136, + "error": 0.25244140625, + "gradient_norm": 0.03405005484819412, + "elapsed": 85.5297167301178 + }, + { + "step": 144, + "loss": 0.2528073787689209, + "error": 0.11279296875, + "gradient_norm": 0.013145577162504196, + "elapsed": 90.68786001205444 + }, + { + "step": 160, + "loss": 0.5877531170845032, + "error": 0.35595703125, + "gradient_norm": 0.019021881744265556, + "elapsed": 95.76396131515503 + }, + { + "step": 176, + "loss": 0.45082807540893555, + "error": 0.2314453125, + "gradient_norm": 0.023904386907815933, + "elapsed": 100.9375216960907 + }, + { + "step": 192, + "loss": 0.4175146222114563, + "error": 0.19921875, + "gradient_norm": 0.021031895652413368, + "elapsed": 105.98947334289551 + }, + { + "step": 208, + "loss": 0.5424385070800781, + "error": 0.30078125, + "gradient_norm": 0.01396750845015049, + "elapsed": 111.17936706542969 + }, + { + "step": 224, + "loss": 0.29304587841033936, + "error": 0.1259765625, + "gradient_norm": 0.014725692570209503, + "elapsed": 116.36282753944397 + }, + { + "step": 240, + "loss": 0.056691475212574005, + "error": 0.015625, + "gradient_norm": 0.002859376836568117, + "elapsed": 121.54807162284851 + }, + { + "step": 256, + "loss": 0.17413178086280823, + "error": 0.06689453125, + "gradient_norm": 0.02666049636900425, + "elapsed": 126.718514919281 + }, + { + "step": 272, + "loss": 0.6115483641624451, + "error": 0.3466796875, + "gradient_norm": 0.03685307130217552, + "elapsed": 131.77990794181824 + }, + { + "step": 288, + "loss": 0.5973552465438843, + "error": 0.3349609375, + "gradient_norm": 0.02574622817337513, + "elapsed": 138.0202260017395 + }, + { + "step": 304, + "loss": 0.18595321476459503, + "error": 0.0732421875, + "gradient_norm": 0.012303492985665798, + "elapsed": 144.16412949562073 + }, + { + "step": 320, + "loss": 0.5418114066123962, + "error": 0.30126953125, + "gradient_norm": 0.018640751019120216, + "elapsed": 150.969500541687 + }, + { + "step": 336, + "loss": 0.5024716258049011, + "error": 0.26708984375, + "gradient_norm": 0.011490182019770145, + "elapsed": 158.32421374320984 + }, + { + "step": 352, + "loss": 0.5002061128616333, + "error": 0.255859375, + "gradient_norm": 0.03905056416988373, + "elapsed": 165.20316648483276 + }, + { + "step": 368, + "loss": 0.5892350077629089, + "error": 0.33837890625, + "gradient_norm": 0.046964384615421295, + "elapsed": 171.98852562904358 + }, + { + "step": 384, + "loss": 0.526427149772644, + "error": 0.2900390625, + "gradient_norm": 0.021478066220879555, + "elapsed": 178.02048754692078 + }, + { + "step": 400, + "loss": 0.5563177466392517, + "error": 0.306640625, + "gradient_norm": 0.024061864241957664, + "elapsed": 184.09671759605408 + }, + { + "step": 416, + "loss": 0.060019996017217636, + "error": 0.0205078125, + "gradient_norm": 0.006343841087073088, + "elapsed": 190.31260657310486 + }, + { + "step": 432, + "loss": 0.5484405755996704, + "error": 0.3115234375, + "gradient_norm": 0.020139696076512337, + "elapsed": 195.41702342033386 + }, + { + "step": 448, + "loss": 0.6163954138755798, + "error": 0.37646484375, + "gradient_norm": 0.011381164193153381, + "elapsed": 200.53582382202148 + }, + { + "step": 464, + "loss": 0.47678378224372864, + "error": 0.25927734375, + "gradient_norm": 0.03807748854160309, + "elapsed": 205.69636607170105 + }, + { + "step": 480, + "loss": 0.5176759362220764, + "error": 0.2705078125, + "gradient_norm": 0.017451826483011246, + "elapsed": 210.7581787109375 + }, + { + "step": 496, + "loss": 0.3626214563846588, + "error": 0.16455078125, + "gradient_norm": 0.019456032663583755, + "elapsed": 215.82069444656372 + }, + { + "step": 512, + "loss": 0.6202600598335266, + "error": 0.35302734375, + "gradient_norm": 0.013814727775752544, + "elapsed": 220.93863129615784 + }, + { + "step": 528, + "loss": 0.5610182285308838, + "error": 0.29833984375, + "gradient_norm": 0.03955027833580971, + "elapsed": 238.0407817363739 + }, + { + "step": 544, + "loss": 0.332148015499115, + "error": 0.15380859375, + "gradient_norm": 0.013710199855268002, + "elapsed": 243.12822461128235 + }, + { + "step": 560, + "loss": 0.4678276777267456, + "error": 0.23974609375, + "gradient_norm": 0.016155347228050232, + "elapsed": 248.3209776878357 + }, + { + "step": 576, + "loss": 0.6166238784790039, + "error": 0.3740234375, + "gradient_norm": 0.017382115125656128, + "elapsed": 253.49981307983398 + }, + { + "step": 592, + "loss": 0.6137416362762451, + "error": 0.373046875, + "gradient_norm": 0.007819767110049725, + "elapsed": 258.68269968032837 + }, + { + "step": 608, + "loss": 0.2780998647212982, + "error": 0.126953125, + "gradient_norm": 0.03436559438705444, + "elapsed": 263.82615661621094 + }, + { + "step": 624, + "loss": 0.6059691309928894, + "error": 0.3623046875, + "gradient_norm": 0.010842837393283844, + "elapsed": 268.9659583568573 + }, + { + "step": 640, + "loss": 0.058036163449287415, + "error": 0.02001953125, + "gradient_norm": 0.004723707213997841, + "elapsed": 274.09823632240295 + }, + { + "step": 656, + "loss": 0.6149133443832397, + "error": 0.37255859375, + "gradient_norm": 0.008533184416592121, + "elapsed": 279.26951336860657 + }, + { + "step": 672, + "loss": 0.3015868663787842, + "error": 0.1318359375, + "gradient_norm": 0.012536457739770412, + "elapsed": 284.41987442970276 + }, + { + "step": 688, + "loss": 0.16231489181518555, + "error": 0.06494140625, + "gradient_norm": 0.0067833056673407555, + "elapsed": 289.56297039985657 + }, + { + "step": 704, + "loss": 0.04929213970899582, + "error": 0.015625, + "gradient_norm": 0.005747381132096052, + "elapsed": 294.6839826107025 + }, + { + "step": 720, + "loss": 0.5615487098693848, + "error": 0.31689453125, + "gradient_norm": 0.02115021087229252, + "elapsed": 299.8546531200409 + }, + { + "step": 736, + "loss": 0.6306260228157043, + "error": 0.3759765625, + "gradient_norm": 0.02629203163087368, + "elapsed": 305.0923271179199 + }, + { + "step": 752, + "loss": 0.03828414902091026, + "error": 0.0126953125, + "gradient_norm": 0.008905005641281605, + "elapsed": 310.5417342185974 + }, + { + "step": 768, + "loss": 0.48764050006866455, + "error": 0.2626953125, + "gradient_norm": 0.024667929857969284, + "elapsed": 316.01200103759766 + }, + { + "step": 784, + "loss": 0.5836235284805298, + "error": 0.3505859375, + "gradient_norm": 0.023319393396377563, + "elapsed": 321.33294105529785 + }, + { + "step": 800, + "loss": 0.5693534016609192, + "error": 0.31396484375, + "gradient_norm": 0.048126742243766785, + "elapsed": 326.52227997779846 + }, + { + "step": 816, + "loss": 0.5710973739624023, + "error": 0.33349609375, + "gradient_norm": 0.022565416991710663, + "elapsed": 331.62225437164307 + }, + { + "step": 832, + "loss": 0.2818760275840759, + "error": 0.11865234375, + "gradient_norm": 0.025756066665053368, + "elapsed": 336.7874104976654 + }, + { + "step": 848, + "loss": 0.6127357482910156, + "error": 0.3583984375, + "gradient_norm": 0.020077377557754517, + "elapsed": 341.92783546447754 + }, + { + "step": 864, + "loss": 0.5109728574752808, + "error": 0.26171875, + "gradient_norm": 0.022484255954623222, + "elapsed": 347.0137662887573 + }, + { + "step": 880, + "loss": 0.16892661154270172, + "error": 0.06103515625, + "gradient_norm": 0.01363676693290472, + "elapsed": 352.0768094062805 + }, + { + "step": 896, + "loss": 0.593660831451416, + "error": 0.34423828125, + "gradient_norm": 0.01379447989165783, + "elapsed": 357.1796865463257 + }, + { + "step": 912, + "loss": 0.635499119758606, + "error": 0.39306640625, + "gradient_norm": 0.012278803624212742, + "elapsed": 362.29547691345215 + }, + { + "step": 928, + "loss": 0.3966389000415802, + "error": 0.19482421875, + "gradient_norm": 0.019856182858347893, + "elapsed": 367.3532474040985 + }, + { + "step": 944, + "loss": 0.05235423520207405, + "error": 0.01611328125, + "gradient_norm": 0.005415339022874832, + "elapsed": 372.4516806602478 + }, + { + "step": 960, + "loss": 0.5913074612617493, + "error": 0.3330078125, + "gradient_norm": 0.021171825006604195, + "elapsed": 377.5324194431305 + }, + { + "step": 976, + "loss": 0.6479356288909912, + "error": 0.41650390625, + "gradient_norm": 0.02845155820250511, + "elapsed": 382.5862877368927 + }, + { + "step": 992, + "loss": 0.5470497608184814, + "error": 0.30908203125, + "gradient_norm": 0.02726798877120018, + "elapsed": 387.6820628643036 + }, + { + "step": 1008, + "loss": 0.5729615688323975, + "error": 0.32861328125, + "gradient_norm": 0.011548872105777264, + "elapsed": 392.7741017341614 + }, + { + "step": 1024, + "loss": 0.0691118910908699, + "error": 0.0205078125, + "gradient_norm": 0.009204022586345673, + "elapsed": 397.8671176433563 + }, + { + "step": 1040, + "loss": 0.5171630382537842, + "error": 0.2685546875, + "gradient_norm": 0.015718232840299606, + "elapsed": 415.6616735458374 + }, + { + "step": 1056, + "loss": 0.6505192518234253, + "error": 0.39990234375, + "gradient_norm": 0.023937702178955078, + "elapsed": 420.7646098136902 + }, + { + "step": 1072, + "loss": 0.5660485625267029, + "error": 0.32666015625, + "gradient_norm": 0.026201115921139717, + "elapsed": 426.09313225746155 + }, + { + "step": 1088, + "loss": 0.4945259094238281, + "error": 0.25048828125, + "gradient_norm": 0.014495921321213245, + "elapsed": 431.2104251384735 + }, + { + "step": 1104, + "loss": 0.5695121884346008, + "error": 0.33837890625, + "gradient_norm": 0.029924258589744568, + "elapsed": 436.3099756240845 + }, + { + "step": 1120, + "loss": 0.3591366112232208, + "error": 0.16015625, + "gradient_norm": 0.017803259193897247, + "elapsed": 441.4024531841278 + }, + { + "step": 1136, + "loss": 0.3302019536495209, + "error": 0.1572265625, + "gradient_norm": 0.01632549799978733, + "elapsed": 446.55403757095337 + }, + { + "step": 1152, + "loss": 0.6093119382858276, + "error": 0.35107421875, + "gradient_norm": 0.014888457022607327, + "elapsed": 451.6241090297699 + }, + { + "step": 1168, + "loss": 0.3500004708766937, + "error": 0.1650390625, + "gradient_norm": 0.011492405086755753, + "elapsed": 456.7753965854645 + }, + { + "step": 1184, + "loss": 0.3738429844379425, + "error": 0.1845703125, + "gradient_norm": 0.015336514450609684, + "elapsed": 461.90868854522705 + }, + { + "step": 1200, + "loss": 0.2892451882362366, + "error": 0.12890625, + "gradient_norm": 0.010124214924871922, + "elapsed": 467.1151931285858 + }, + { + "step": 1216, + "loss": 0.45089617371559143, + "error": 0.23046875, + "gradient_norm": 0.03627275303006172, + "elapsed": 472.30455207824707 + }, + { + "step": 1232, + "loss": 0.6207081079483032, + "error": 0.36376953125, + "gradient_norm": 0.028164058923721313, + "elapsed": 477.4041998386383 + }, + { + "step": 1248, + "loss": 0.6022387742996216, + "error": 0.32470703125, + "gradient_norm": 0.05243176594376564, + "elapsed": 482.5445365905762 + }, + { + "step": 1264, + "loss": 0.6383136510848999, + "error": 0.38818359375, + "gradient_norm": 0.021598732098937035, + "elapsed": 488.21457719802856 + }, + { + "step": 1280, + "loss": 0.28611207008361816, + "error": 0.13037109375, + "gradient_norm": 0.010211448185145855, + "elapsed": 494.3161232471466 + }, + { + "step": 1296, + "loss": 0.5970274209976196, + "error": 0.35009765625, + "gradient_norm": 0.025076791644096375, + "elapsed": 500.2585813999176 + }, + { + "step": 1312, + "loss": 0.48383909463882446, + "error": 0.2529296875, + "gradient_norm": 0.02830139547586441, + "elapsed": 505.9930474758148 + }, + { + "step": 1328, + "loss": 0.6087884902954102, + "error": 0.365234375, + "gradient_norm": 0.01881619170308113, + "elapsed": 512.0680301189423 + }, + { + "step": 1344, + "loss": 0.49332645535469055, + "error": 0.25634765625, + "gradient_norm": 0.02215457707643509, + "elapsed": 517.9840953350067 + }, + { + "step": 1360, + "loss": 0.6202782392501831, + "error": 0.36767578125, + "gradient_norm": 0.018839120864868164, + "elapsed": 524.07217669487 + }, + { + "step": 1376, + "loss": 0.5857731699943542, + "error": 0.3330078125, + "gradient_norm": 0.015682006254792213, + "elapsed": 529.8370056152344 + }, + { + "step": 1392, + "loss": 0.52056485414505, + "error": 0.263671875, + "gradient_norm": 0.02431550808250904, + "elapsed": 535.9721219539642 + }, + { + "step": 1408, + "loss": 0.6433448791503906, + "error": 0.40625, + "gradient_norm": 0.016954610124230385, + "elapsed": 542.0041825771332 + }, + { + "step": 1424, + "loss": 0.6105660200119019, + "error": 0.35107421875, + "gradient_norm": 0.007737957406789064, + "elapsed": 547.4241607189178 + }, + { + "step": 1440, + "loss": 0.27237576246261597, + "error": 0.12451171875, + "gradient_norm": 0.01314462162554264, + "elapsed": 553.5436873435974 + }, + { + "step": 1456, + "loss": 0.5954712629318237, + "error": 0.3623046875, + "gradient_norm": 0.03746134042739868, + "elapsed": 558.7123465538025 + }, + { + "step": 1472, + "loss": 0.4519508481025696, + "error": 0.2255859375, + "gradient_norm": 0.010652865283191204, + "elapsed": 563.8585436344147 + }, + { + "step": 1488, + "loss": 0.41647869348526, + "error": 0.212890625, + "gradient_norm": 0.028575479984283447, + "elapsed": 569.0573513507843 + }, + { + "step": 1504, + "loss": 0.4384400248527527, + "error": 0.21337890625, + "gradient_norm": 0.017627721652388573, + "elapsed": 574.296462059021 + }, + { + "step": 1520, + "loss": 0.6105232238769531, + "error": 0.37109375, + "gradient_norm": 0.016302449628710747, + "elapsed": 579.4641361236572 + }, + { + "step": 1536, + "loss": 0.6215546131134033, + "error": 0.39013671875, + "gradient_norm": 0.032154034823179245, + "elapsed": 584.5684258937836 + } + ] + }, + "selected_checkpoint_steps": [ + 512, + 1024, + 1536 + ], + "checkpoint_records": { + "1536": { + "step": 1536, + "new_training_shots": 3145728, + "weights": "weights-1536.npz", + "weights_sha256": "785132032c12fa38abbb1103774d91b41828fdc5027e1fe4d42053476eb28199", + "validation": "validation-1536.json", + "complete": true + }, + "512": { + "step": 512, + "new_training_shots": 1048576, + "weights": "weights-512.npz", + "weights_sha256": "e9ebeb958eec680c5458b3a5c39aecf0a21c926aee816517b5f9d3bac5815d7f", + "validation": "validation-512.json", + "complete": true + }, + "1024": { + "step": 1024, + "new_training_shots": 2097152, + "weights": "weights-1024.npz", + "weights_sha256": "f45c568b13c92eb4e768146debbc8c50a8ad51882523938932ba26f4afde66f2", + "validation": "validation-1024.json", + "complete": true + } + }, + "selection": "Minimum full-validation mean failure per group among incumbent and listed session-trained checkpoints", + "history": [ + { + "group": "d3_bX_center_3_5", + "candidates": { + "incumbent": 0.2491436298076923, + "512": 0.2478215144230769, + "1024": 0.24774639423076922, + "1536": 0.2476862980769231 + }, + "selected": "1536" + }, + { + "group": "d3_bX_center_5_3", + "candidates": { + "incumbent": 0.2557542067307692, + "512": 0.2544320913461538, + "1024": 0.2548527644230769, + "1536": 0.2545673076923076 + }, + "selected": "512" + }, + { + "group": "d3_bX_center_5_7", + "candidates": { + "incumbent": 0.23511117788461539, + "512": 0.23602764423076927, + "1024": 0.23553185096153847, + "1536": 0.2345402644230769 + }, + "selected": "1536" + }, + { + "group": "d3_bX_center_7_5", + "candidates": { + "incumbent": 0.2403996394230769, + "512": 0.23999399038461539, + "1024": 0.24008413461538464, + "1536": 0.2401141826923077 + }, + "selected": "512" + }, + { + "group": "d3_bZ_center_3_5", + "candidates": { + "incumbent": 0.24893329326923078, + "512": 0.24894831730769235, + "1024": 0.24735576923076924, + "1536": 0.24664963942307694 + }, + "selected": "1536" + }, + { + "group": "d3_bZ_center_5_3", + "candidates": { + "incumbent": 0.2387469951923077, + "512": 0.23849158653846156, + "1024": 0.23789062500000002, + "1536": 0.2381610576923077 + }, + "selected": "1024" + }, + { + "group": "d3_bZ_center_5_7", + "candidates": { + "incumbent": 0.23885216346153845, + "512": 0.23807091346153844, + "1024": 0.2377704326923077, + "1536": 0.23733473557692303 + }, + "selected": "1536" + }, + { + "group": "d3_bZ_center_7_5", + "candidates": { + "incumbent": 0.23479567307692306, + "512": 0.2340895432692308, + "1024": 0.2340444711538461, + "1536": 0.23431490384615386 + }, + "selected": "1024" + }, + { + "group": "d5_bX_center_5_5", + "candidates": { + "incumbent": 0.24024939903846157 + }, + "selected": "incumbent" + }, + { + "group": "d5_bZ_center_5_5", + "candidates": { + "incumbent": 0.22627704326923076 + }, + "selected": "incumbent" + } + ] + }, + { + "name": "rich1", + "training_run": { + "initialization": "Random initialization in this session", + "original_initialization": "Random variance-scaled normal first two layers, random Normal(0,.001) output; zero biases; seed 20261030", + "architecture": "Two 128-unit SiLU layers, output 4*tanh correction to original hyperedge logit; 40 local events, 40 reconstructed measurements, 8 per-stabilizer full-shot densities and 57 static features", + "training": "Uniform condition sampling from all 104 d3 conditions; batch drawn from the supplied training split only", + "steps": 1024, + "batch_size": 1024, + "optimizer": "AdamW, weight decay 1e-4, global gradient norm clip 1", + "learning_rate": 0.001, + "sampling_seed": 20261030, + "optimizer_restored": false, + "rng_restored": false, + "session_trained_starting_checkpoint": null, + "starting_checkpoint_sha256": null, + "loss": "Binary conditional logical likelihood computed by exact frontier elimination", + "validation_shots_per_condition": 1024, + "uniform_validation": true, + "uniform_validation_seed": 20261028, + "test_data_used": false, + "log": [ + { + "step": 1, + "loss": 0.1747799664735794, + "error": 0.068359375, + "gradient_norm": 0.03163275867700577, + "elapsed": 30.666016340255737 + }, + { + "step": 16, + "loss": 0.5729950666427612, + "error": 0.30859375, + "gradient_norm": 0.03532477840781212, + "elapsed": 34.992138385772705 + }, + { + "step": 32, + "loss": 0.33759093284606934, + "error": 0.1435546875, + "gradient_norm": 0.03938521817326546, + "elapsed": 40.51379442214966 + }, + { + "step": 48, + "loss": 0.574704647064209, + "error": 0.3212890625, + "gradient_norm": 0.03584429249167442, + "elapsed": 46.82174754142761 + }, + { + "step": 64, + "loss": 0.6351712942123413, + "error": 0.4072265625, + "gradient_norm": 0.027485841885209084, + "elapsed": 52.75151348114014 + }, + { + "step": 80, + "loss": 0.36342084407806396, + "error": 0.1708984375, + "gradient_norm": 0.040388718247413635, + "elapsed": 58.42134428024292 + }, + { + "step": 96, + "loss": 0.613252580165863, + "error": 0.3525390625, + "gradient_norm": 0.035148631781339645, + "elapsed": 64.40935254096985 + }, + { + "step": 112, + "loss": 0.6042842864990234, + "error": 0.3564453125, + "gradient_norm": 0.06634438037872314, + "elapsed": 70.4053041934967 + }, + { + "step": 128, + "loss": 0.4366868734359741, + "error": 0.20703125, + "gradient_norm": 0.040233220905065536, + "elapsed": 76.10137701034546 + }, + { + "step": 144, + "loss": 0.340861976146698, + "error": 0.154296875, + "gradient_norm": 0.03881179168820381, + "elapsed": 81.10126686096191 + }, + { + "step": 160, + "loss": 0.5801218748092651, + "error": 0.32421875, + "gradient_norm": 0.06090407446026802, + "elapsed": 86.1252555847168 + }, + { + "step": 176, + "loss": 0.37582841515541077, + "error": 0.19140625, + "gradient_norm": 0.06935373693704605, + "elapsed": 91.53376078605652 + }, + { + "step": 192, + "loss": 0.5213879346847534, + "error": 0.291015625, + "gradient_norm": 0.038788966834545135, + "elapsed": 96.78960609436035 + }, + { + "step": 208, + "loss": 0.26441627740859985, + "error": 0.115234375, + "gradient_norm": 0.04845435172319412, + "elapsed": 101.85743975639343 + }, + { + "step": 224, + "loss": 0.4369240701198578, + "error": 0.2119140625, + "gradient_norm": 0.098305843770504, + "elapsed": 106.94148802757263 + }, + { + "step": 240, + "loss": 0.5520763397216797, + "error": 0.3037109375, + "gradient_norm": 0.04845161736011505, + "elapsed": 112.27297902107239 + }, + { + "step": 256, + "loss": 0.595374345779419, + "error": 0.3369140625, + "gradient_norm": 0.03840416297316551, + "elapsed": 117.4812536239624 + }, + { + "step": 272, + "loss": 0.2569020390510559, + "error": 0.103515625, + "gradient_norm": 0.050126779824495316, + "elapsed": 137.86142945289612 + }, + { + "step": 288, + "loss": 0.32830360531806946, + "error": 0.1455078125, + "gradient_norm": 0.035532038658857346, + "elapsed": 142.83670139312744 + }, + { + "step": 304, + "loss": 0.6040379405021667, + "error": 0.36328125, + "gradient_norm": 0.0313950814306736, + "elapsed": 148.05078554153442 + }, + { + "step": 320, + "loss": 0.35434311628341675, + "error": 0.1748046875, + "gradient_norm": 0.03184249624609947, + "elapsed": 153.22213292121887 + }, + { + "step": 336, + "loss": 0.2326659858226776, + "error": 0.099609375, + "gradient_norm": 0.06624855101108551, + "elapsed": 158.455664396286 + }, + { + "step": 352, + "loss": 0.06233043968677521, + "error": 0.017578125, + "gradient_norm": 0.02635284699499607, + "elapsed": 163.10541248321533 + }, + { + "step": 368, + "loss": 0.31427502632141113, + "error": 0.1435546875, + "gradient_norm": 0.04170582816004753, + "elapsed": 167.78928112983704 + }, + { + "step": 384, + "loss": 0.41268765926361084, + "error": 0.19921875, + "gradient_norm": 0.10103361308574677, + "elapsed": 172.34387755393982 + }, + { + "step": 400, + "loss": 0.42649346590042114, + "error": 0.2119140625, + "gradient_norm": 0.03481302782893181, + "elapsed": 176.83626103401184 + }, + { + "step": 416, + "loss": 0.6373635530471802, + "error": 0.4013671875, + "gradient_norm": 0.06979350745677948, + "elapsed": 181.35168766975403 + }, + { + "step": 432, + "loss": 0.17961856722831726, + "error": 0.072265625, + "gradient_norm": 0.018565824255347252, + "elapsed": 185.80416321754456 + }, + { + "step": 448, + "loss": 0.5501771569252014, + "error": 0.287109375, + "gradient_norm": 0.04828835278749466, + "elapsed": 190.30530858039856 + }, + { + "step": 464, + "loss": 0.5648394823074341, + "error": 0.2978515625, + "gradient_norm": 0.07398489862680435, + "elapsed": 194.7985327243805 + }, + { + "step": 480, + "loss": 0.5675262212753296, + "error": 0.3125, + "gradient_norm": 0.036255236715078354, + "elapsed": 199.30496096611023 + }, + { + "step": 496, + "loss": 0.6156162023544312, + "error": 0.3779296875, + "gradient_norm": 0.02318546548485756, + "elapsed": 203.8355917930603 + }, + { + "step": 512, + "loss": 0.0660151019692421, + "error": 0.021484375, + "gradient_norm": 0.020883027464151382, + "elapsed": 208.32652711868286 + }, + { + "step": 528, + "loss": 0.6096083521842957, + "error": 0.37890625, + "gradient_norm": 0.04742306470870972, + "elapsed": 225.1866319179535 + }, + { + "step": 544, + "loss": 0.3829265236854553, + "error": 0.18359375, + "gradient_norm": 0.05981605872511864, + "elapsed": 229.68251276016235 + }, + { + "step": 560, + "loss": 0.537099301815033, + "error": 0.2900390625, + "gradient_norm": 0.0949595719575882, + "elapsed": 234.20215129852295 + }, + { + "step": 576, + "loss": 0.5903713703155518, + "error": 0.3447265625, + "gradient_norm": 0.06430540233850479, + "elapsed": 238.70998644828796 + }, + { + "step": 592, + "loss": 0.5619152188301086, + "error": 0.298828125, + "gradient_norm": 0.03404757007956505, + "elapsed": 243.21307158470154 + }, + { + "step": 608, + "loss": 0.5997255444526672, + "error": 0.3623046875, + "gradient_norm": 0.03946321830153465, + "elapsed": 247.7153992652893 + }, + { + "step": 624, + "loss": 0.5695509910583496, + "error": 0.310546875, + "gradient_norm": 0.02815800905227661, + "elapsed": 252.3102250099182 + }, + { + "step": 640, + "loss": 0.5901973247528076, + "error": 0.34765625, + "gradient_norm": 0.04673359915614128, + "elapsed": 256.89224338531494 + }, + { + "step": 656, + "loss": 0.621924877166748, + "error": 0.37890625, + "gradient_norm": 0.04227908328175545, + "elapsed": 261.43869185447693 + }, + { + "step": 672, + "loss": 0.610299825668335, + "error": 0.35546875, + "gradient_norm": 0.036825064569711685, + "elapsed": 265.97225284576416 + }, + { + "step": 688, + "loss": 0.5249245166778564, + "error": 0.2841796875, + "gradient_norm": 0.0948338434100151, + "elapsed": 270.4997045993805 + }, + { + "step": 704, + "loss": 0.2573642134666443, + "error": 0.111328125, + "gradient_norm": 0.055987801402807236, + "elapsed": 275.0399034023285 + }, + { + "step": 720, + "loss": 0.04867870360612869, + "error": 0.0146484375, + "gradient_norm": 0.03132430091500282, + "elapsed": 279.55093908309937 + }, + { + "step": 736, + "loss": 0.24808242917060852, + "error": 0.1015625, + "gradient_norm": 0.051910530775785446, + "elapsed": 284.08127522468567 + }, + { + "step": 752, + "loss": 0.4981001615524292, + "error": 0.2529296875, + "gradient_norm": 0.06427812576293945, + "elapsed": 288.70672821998596 + }, + { + "step": 768, + "loss": 0.5241370797157288, + "error": 0.28125, + "gradient_norm": 0.10227487236261368, + "elapsed": 293.331086397171 + }, + { + "step": 784, + "loss": 0.6427845358848572, + "error": 0.400390625, + "gradient_norm": 0.08984753489494324, + "elapsed": 311.0226716995239 + }, + { + "step": 800, + "loss": 0.5990085601806641, + "error": 0.3544921875, + "gradient_norm": 0.08950027078390121, + "elapsed": 315.6725699901581 + }, + { + "step": 816, + "loss": 0.5930870771408081, + "error": 0.353515625, + "gradient_norm": 0.03096434287726879, + "elapsed": 320.38578844070435 + }, + { + "step": 832, + "loss": 0.5945324897766113, + "error": 0.359375, + "gradient_norm": 0.052297625690698624, + "elapsed": 325.3292770385742 + }, + { + "step": 848, + "loss": 0.6031227111816406, + "error": 0.3642578125, + "gradient_norm": 0.032976675778627396, + "elapsed": 330.2292652130127 + }, + { + "step": 864, + "loss": 0.3953525125980377, + "error": 0.1748046875, + "gradient_norm": 0.07015999406576157, + "elapsed": 335.1212799549103 + }, + { + "step": 880, + "loss": 0.4324202835559845, + "error": 0.2080078125, + "gradient_norm": 0.1018647849559784, + "elapsed": 339.9696366786957 + }, + { + "step": 896, + "loss": 0.5024446249008179, + "error": 0.265625, + "gradient_norm": 0.03973893076181412, + "elapsed": 344.8794775009155 + }, + { + "step": 912, + "loss": 0.5731178522109985, + "error": 0.33203125, + "gradient_norm": 0.047838907688856125, + "elapsed": 349.57729148864746 + }, + { + "step": 928, + "loss": 0.6279090642929077, + "error": 0.412109375, + "gradient_norm": 0.030738679692149162, + "elapsed": 354.4736604690552 + }, + { + "step": 944, + "loss": 0.6028326153755188, + "error": 0.341796875, + "gradient_norm": 0.04459983482956886, + "elapsed": 359.2764792442322 + }, + { + "step": 960, + "loss": 0.19082097709178925, + "error": 0.0791015625, + "gradient_norm": 0.02478513866662979, + "elapsed": 364.1252644062042 + }, + { + "step": 976, + "loss": 0.443341463804245, + "error": 0.2197265625, + "gradient_norm": 0.14411240816116333, + "elapsed": 368.8472623825073 + }, + { + "step": 992, + "loss": 0.5665505528450012, + "error": 0.3125, + "gradient_norm": 0.06498897075653076, + "elapsed": 373.6812598705292 + }, + { + "step": 1008, + "loss": 0.4306175112724304, + "error": 0.1875, + "gradient_norm": 0.04873151704668999, + "elapsed": 378.56014752388 + }, + { + "step": 1024, + "loss": 0.46258389949798584, + "error": 0.244140625, + "gradient_norm": 0.09452047199010849, + "elapsed": 383.46526074409485 + } + ] + }, + "selected_checkpoint_steps": [ + 1024 + ], + "checkpoint_records": { + "1024": { + "step": 1024, + "new_training_shots": 1048576, + "weights": "weights-1024.npz", + "weights_sha256": "04fea2cf8c598cd5587d450b50cdce58aee9a8c770a2c2da57d7a48e3bf3e2a6", + "validation": "validation-1024.json", + "complete": true + } + }, + "selection": "Minimum full-validation mean failure per group among incumbent and listed session-trained checkpoints; when listed, blend candidates average incumbent and new probabilities equally", + "history": [ + { + "group": "d3_bX_center_3_5", + "candidates": { + "incumbent": 0.2476862980769231, + "512": 0.24981971153846153, + "1024": 0.24861778846153845, + "blend-512": 0.24816706730769234, + "blend-1024": 0.24764122596153845 + }, + "selected": "blend-1024" + }, + { + "group": "d3_bX_center_5_3", + "candidates": { + "incumbent": 0.2544320913461538, + "512": 0.25530348557692306, + "1024": 0.2538461538461539, + "blend-512": 0.2550330528846154, + "blend-1024": 0.25369591346153847 + }, + "selected": "blend-1024" + }, + { + "group": "d3_bX_center_5_7", + "candidates": { + "incumbent": 0.2345402644230769, + "512": 0.2346905048076923, + "1024": 0.23502103365384613, + "blend-512": 0.23520132211538458, + "blend-1024": 0.23484074519230771 + }, + "selected": "incumbent" + }, + { + "group": "d3_bX_center_7_5", + "candidates": { + "incumbent": 0.23999399038461539, + "512": 0.24036959134615385, + "1024": 0.23987379807692305, + "blend-512": 0.240234375, + "blend-1024": 0.24008413461538464 + }, + "selected": "1024" + }, + { + "group": "d3_bZ_center_3_5", + "candidates": { + "incumbent": 0.24664963942307694, + "512": 0.24878305288461539, + "1024": 0.24810697115384614, + "blend-512": 0.2468900240384615, + "blend-1024": 0.24661959134615385 + }, + "selected": "blend-1024" + }, + { + "group": "d3_bZ_center_5_3", + "candidates": { + "incumbent": 0.23789062500000002, + "512": 0.23919771634615386, + "1024": 0.23847656250000002, + "blend-512": 0.23802584134615382, + "blend-1024": 0.2378155048076923 + }, + "selected": "blend-1024" + }, + { + "group": "d3_bZ_center_5_7", + "candidates": { + "incumbent": 0.23733473557692303, + "512": 0.23939302884615382, + "1024": 0.2384465144230769, + "blend-512": 0.23829627403846151, + "blend-1024": 0.23727463942307694 + }, + "selected": "blend-1024" + }, + { + "group": "d3_bZ_center_7_5", + "candidates": { + "incumbent": 0.2340444711538461, + "512": 0.23482572115384615, + "1024": 0.23378906249999998, + "blend-512": 0.23434495192307692, + "blend-1024": 0.23345853365384614 + }, + "selected": "blend-1024" + }, + { + "group": "d5_bX_center_5_5", + "candidates": { + "incumbent": 0.24024939903846157 + }, + "selected": "incumbent" + }, + { + "group": "d5_bZ_center_5_5", + "candidates": { + "incumbent": 0.22627704326923076 + }, + "selected": "incumbent" + } + ] + }, + { + "name": "temporal1", + "training_run": { + "initialization": "Continue from rich weights trained from random initialization in this session; new temporal parameters randomly initialized now", + "original_initialization": "Rich network random seed20261030; new 32-channel temporal network random seed20261104; rich parameters retained, new input rows Normal(0,.001)", + "rich_starting_checkpoint": "/run-state/workspace/research/learned_exact/rich1/weights-1024.npz", + "rich_checkpoint_sha256": "04fea2cf8c598cd5587d450b50cdce58aee9a8c770a2c2da57d7a48e3bf3e2a6", + "architecture": "Rich 128-unit MLP plus 32-channel temporal encoder: four residual kernel3 convolutions with dilations1/2/4/8 and channel normalization. Receptive field31 rounds. Encoder sees events, measurements and presence masks. Per-edge 177 input features. Output4*tanh.", + "training": "Uniform condition sampling from all 104 d3 conditions; batch drawn from the supplied training split only", + "steps": 2048, + "batch_size": 1024, + "optimizer": "AdamW, weight decay 1e-4, global gradient norm clip 1", + "learning_rate": 0.001, + "sampling_seed": 20261111, + "optimizer_restored": false, + "rng_restored": false, + "session_trained_starting_checkpoint": null, + "starting_checkpoint_sha256": null, + "loss": "Binary conditional logical likelihood computed by exact frontier elimination", + "validation_shots_per_condition": 1024, + "uniform_validation": true, + "uniform_validation_seed": 20261028, + "test_data_used": false, + "log": [ + { + "step": 1, + "loss": 0.6317505836486816, + "error": 0.3681640625, + "gradient_norm": 0.04013459011912346, + "elapsed": 30.971998691558838 + }, + { + "step": 16, + "loss": 0.5091081857681274, + "error": 0.291015625, + "gradient_norm": 0.042228709906339645, + "elapsed": 35.17463397979736 + }, + { + "step": 32, + "loss": 0.626472532749176, + "error": 0.3642578125, + "gradient_norm": 0.05872415751218796, + "elapsed": 39.678136110305786 + }, + { + "step": 48, + "loss": 0.6005369424819946, + "error": 0.3515625, + "gradient_norm": 0.03848014399409294, + "elapsed": 44.16946887969971 + }, + { + "step": 64, + "loss": 0.5523768663406372, + "error": 0.302734375, + "gradient_norm": 0.06031862646341324, + "elapsed": 48.65217089653015 + }, + { + "step": 80, + "loss": 0.3981674611568451, + "error": 0.19921875, + "gradient_norm": 0.0542079322040081, + "elapsed": 53.21601867675781 + }, + { + "step": 96, + "loss": 0.5601426362991333, + "error": 0.2978515625, + "gradient_norm": 0.04770371690392494, + "elapsed": 57.81089663505554 + }, + { + "step": 112, + "loss": 0.5878150463104248, + "error": 0.34765625, + "gradient_norm": 0.10699950158596039, + "elapsed": 62.42190766334534 + }, + { + "step": 128, + "loss": 0.5232458114624023, + "error": 0.2861328125, + "gradient_norm": 0.0911584198474884, + "elapsed": 67.00223755836487 + }, + { + "step": 144, + "loss": 0.6119767427444458, + "error": 0.3623046875, + "gradient_norm": 0.062474437057971954, + "elapsed": 71.54070782661438 + }, + { + "step": 160, + "loss": 0.3037984371185303, + "error": 0.1474609375, + "gradient_norm": 0.05718141421675682, + "elapsed": 76.08167362213135 + }, + { + "step": 176, + "loss": 0.6038273572921753, + "error": 0.3662109375, + "gradient_norm": 0.0437164381146431, + "elapsed": 80.71864247322083 + }, + { + "step": 192, + "loss": 0.3304370641708374, + "error": 0.1572265625, + "gradient_norm": 0.05684761330485344, + "elapsed": 85.54437017440796 + }, + { + "step": 208, + "loss": 0.5785484313964844, + "error": 0.3251953125, + "gradient_norm": 0.09597272425889969, + "elapsed": 91.51522874832153 + }, + { + "step": 224, + "loss": 0.3110499978065491, + "error": 0.13671875, + "gradient_norm": 0.04815748706459999, + "elapsed": 97.1228940486908 + }, + { + "step": 240, + "loss": 0.6213864684104919, + "error": 0.3623046875, + "gradient_norm": 0.0540502592921257, + "elapsed": 102.90286135673523 + }, + { + "step": 256, + "loss": 0.2535272240638733, + "error": 0.1064453125, + "gradient_norm": 0.029962118715047836, + "elapsed": 108.39288640022278 + }, + { + "step": 272, + "loss": 0.6126939058303833, + "error": 0.3671875, + "gradient_norm": 0.06887879222631454, + "elapsed": 113.83897161483765 + }, + { + "step": 288, + "loss": 0.4556676149368286, + "error": 0.2236328125, + "gradient_norm": 0.16127081215381622, + "elapsed": 119.93085813522339 + }, + { + "step": 304, + "loss": 0.4973585605621338, + "error": 0.255859375, + "gradient_norm": 0.08082302659749985, + "elapsed": 125.90891909599304 + }, + { + "step": 320, + "loss": 0.6455868482589722, + "error": 0.419921875, + "gradient_norm": 0.04339660331606865, + "elapsed": 131.20537638664246 + }, + { + "step": 336, + "loss": 0.5343132615089417, + "error": 0.2880859375, + "gradient_norm": 0.07518009096384048, + "elapsed": 136.59086871147156 + }, + { + "step": 352, + "loss": 0.6505346894264221, + "error": 0.4033203125, + "gradient_norm": 0.03800992667675018, + "elapsed": 142.21085906028748 + }, + { + "step": 368, + "loss": 0.4882712960243225, + "error": 0.251953125, + "gradient_norm": 0.08170920610427856, + "elapsed": 146.95903658866882 + }, + { + "step": 384, + "loss": 0.5292021036148071, + "error": 0.296875, + "gradient_norm": 0.08454013615846634, + "elapsed": 151.6385259628296 + }, + { + "step": 400, + "loss": 0.6272899508476257, + "error": 0.3837890625, + "gradient_norm": 0.051436979323625565, + "elapsed": 156.3343904018402 + }, + { + "step": 416, + "loss": 0.052130259573459625, + "error": 0.0166015625, + "gradient_norm": 0.02377190627157688, + "elapsed": 160.92345547676086 + }, + { + "step": 432, + "loss": 0.5256737470626831, + "error": 0.3046875, + "gradient_norm": 0.07986386120319366, + "elapsed": 165.52879118919373 + }, + { + "step": 448, + "loss": 0.15193665027618408, + "error": 0.0576171875, + "gradient_norm": 0.06491660326719284, + "elapsed": 170.14827823638916 + }, + { + "step": 464, + "loss": 0.6418055295944214, + "error": 0.40625, + "gradient_norm": 0.07290885597467422, + "elapsed": 174.64974284172058 + }, + { + "step": 480, + "loss": 0.6055159568786621, + "error": 0.357421875, + "gradient_norm": 0.0795595794916153, + "elapsed": 179.17218685150146 + }, + { + "step": 496, + "loss": 0.6372283697128296, + "error": 0.3916015625, + "gradient_norm": 0.04387903958559036, + "elapsed": 183.77568197250366 + }, + { + "step": 512, + "loss": 0.637977123260498, + "error": 0.408203125, + "gradient_norm": 0.060665905475616455, + "elapsed": 188.31205368041992 + }, + { + "step": 528, + "loss": 0.4668862223625183, + "error": 0.2451171875, + "gradient_norm": 0.08566711097955704, + "elapsed": 206.40719985961914 + }, + { + "step": 544, + "loss": 0.4584413170814514, + "error": 0.244140625, + "gradient_norm": 0.08538200706243515, + "elapsed": 211.02819895744324 + }, + { + "step": 560, + "loss": 0.5615692138671875, + "error": 0.3291015625, + "gradient_norm": 0.043748609721660614, + "elapsed": 215.66470766067505 + }, + { + "step": 576, + "loss": 0.5151895880699158, + "error": 0.2880859375, + "gradient_norm": 0.05164863541722298, + "elapsed": 220.18949556350708 + }, + { + "step": 592, + "loss": 0.5618112087249756, + "error": 0.3291015625, + "gradient_norm": 0.05998719856142998, + "elapsed": 224.7216100692749 + }, + { + "step": 608, + "loss": 0.659294843673706, + "error": 0.431640625, + "gradient_norm": 0.09910348802804947, + "elapsed": 229.26827573776245 + }, + { + "step": 624, + "loss": 0.5895233154296875, + "error": 0.3447265625, + "gradient_norm": 0.045334093272686005, + "elapsed": 233.83731055259705 + }, + { + "step": 640, + "loss": 0.6081801056861877, + "error": 0.3388671875, + "gradient_norm": 0.06578423827886581, + "elapsed": 238.36345624923706 + }, + { + "step": 656, + "loss": 0.5349816083908081, + "error": 0.2939453125, + "gradient_norm": 0.09989562630653381, + "elapsed": 242.95086026191711 + }, + { + "step": 672, + "loss": 0.5871994495391846, + "error": 0.328125, + "gradient_norm": 0.08132346719503403, + "elapsed": 247.67088556289673 + }, + { + "step": 688, + "loss": 0.06012660637497902, + "error": 0.0146484375, + "gradient_norm": 0.012170507572591305, + "elapsed": 252.3202247619629 + }, + { + "step": 704, + "loss": 0.42179757356643677, + "error": 0.21484375, + "gradient_norm": 0.08384513854980469, + "elapsed": 256.91991782188416 + }, + { + "step": 720, + "loss": 0.6111758947372437, + "error": 0.3720703125, + "gradient_norm": 0.06689880788326263, + "elapsed": 261.56407928466797 + }, + { + "step": 736, + "loss": 0.29969727993011475, + "error": 0.1318359375, + "gradient_norm": 0.0743367150425911, + "elapsed": 266.22199630737305 + }, + { + "step": 752, + "loss": 0.051849883049726486, + "error": 0.0166015625, + "gradient_norm": 0.017005126923322678, + "elapsed": 270.8602342605591 + }, + { + "step": 768, + "loss": 0.6178420186042786, + "error": 0.3759765625, + "gradient_norm": 0.027732960879802704, + "elapsed": 275.47888374328613 + }, + { + "step": 784, + "loss": 0.45798996090888977, + "error": 0.228515625, + "gradient_norm": 0.0630083829164505, + "elapsed": 280.1709156036377 + }, + { + "step": 800, + "loss": 0.5104988813400269, + "error": 0.2724609375, + "gradient_norm": 0.041733670979738235, + "elapsed": 286.17937707901 + }, + { + "step": 816, + "loss": 0.6336112022399902, + "error": 0.3837890625, + "gradient_norm": 0.0755191296339035, + "elapsed": 291.7506103515625 + }, + { + "step": 832, + "loss": 0.6260952353477478, + "error": 0.3603515625, + "gradient_norm": 0.0318005345761776, + "elapsed": 297.31094622612 + }, + { + "step": 848, + "loss": 0.5870074033737183, + "error": 0.3525390625, + "gradient_norm": 0.12073405832052231, + "elapsed": 303.11089158058167 + }, + { + "step": 864, + "loss": 0.5125640034675598, + "error": 0.26953125, + "gradient_norm": 0.038650237023830414, + "elapsed": 308.7288725376129 + }, + { + "step": 880, + "loss": 0.19194915890693665, + "error": 0.0703125, + "gradient_norm": 0.061878547072410583, + "elapsed": 314.37042355537415 + }, + { + "step": 896, + "loss": 0.5409250259399414, + "error": 0.2919921875, + "gradient_norm": 0.06288820505142212, + "elapsed": 319.9398190975189 + }, + { + "step": 912, + "loss": 0.6164936423301697, + "error": 0.3701171875, + "gradient_norm": 0.043224163353443146, + "elapsed": 325.361323595047 + }, + { + "step": 928, + "loss": 0.16032151877880096, + "error": 0.0625, + "gradient_norm": 0.030957572162151337, + "elapsed": 331.21752285957336 + }, + { + "step": 944, + "loss": 0.646601676940918, + "error": 0.3818359375, + "gradient_norm": 0.05670839175581932, + "elapsed": 336.7825517654419 + }, + { + "step": 960, + "loss": 0.402952641248703, + "error": 0.1865234375, + "gradient_norm": 0.07500886172056198, + "elapsed": 342.6888346672058 + }, + { + "step": 976, + "loss": 0.5537433624267578, + "error": 0.2939453125, + "gradient_norm": 0.04955969750881195, + "elapsed": 348.5554690361023 + }, + { + "step": 992, + "loss": 0.559626579284668, + "error": 0.294921875, + "gradient_norm": 0.048295993357896805, + "elapsed": 354.3531894683838 + }, + { + "step": 1008, + "loss": 0.5034694671630859, + "error": 0.2705078125, + "gradient_norm": 0.05729879066348076, + "elapsed": 360.0949149131775 + }, + { + "step": 1024, + "loss": 0.3119734525680542, + "error": 0.1259765625, + "gradient_norm": 0.052326612174510956, + "elapsed": 365.7881224155426 + }, + { + "step": 1040, + "loss": 0.35799849033355713, + "error": 0.173828125, + "gradient_norm": 0.03801804035902023, + "elapsed": 386.5749418735504 + }, + { + "step": 1056, + "loss": 0.6178948879241943, + "error": 0.3515625, + "gradient_norm": 0.03620661422610283, + "elapsed": 391.48247838020325 + }, + { + "step": 1072, + "loss": 0.49231401085853577, + "error": 0.24609375, + "gradient_norm": 0.04391559213399887, + "elapsed": 396.08718824386597 + }, + { + "step": 1088, + "loss": 0.4119300842285156, + "error": 0.2001953125, + "gradient_norm": 0.1104700043797493, + "elapsed": 400.5326828956604 + }, + { + "step": 1104, + "loss": 0.4926626682281494, + "error": 0.265625, + "gradient_norm": 0.04246886447072029, + "elapsed": 404.95741271972656 + }, + { + "step": 1120, + "loss": 0.5027930736541748, + "error": 0.2607421875, + "gradient_norm": 0.0547240674495697, + "elapsed": 409.40319633483887 + }, + { + "step": 1136, + "loss": 0.5948058366775513, + "error": 0.3544921875, + "gradient_norm": 0.06810063123703003, + "elapsed": 413.8514006137848 + }, + { + "step": 1152, + "loss": 0.26567256450653076, + "error": 0.125, + "gradient_norm": 0.06689104437828064, + "elapsed": 418.29868721961975 + }, + { + "step": 1168, + "loss": 0.2866836190223694, + "error": 0.1240234375, + "gradient_norm": 0.029536213725805283, + "elapsed": 422.75131845474243 + }, + { + "step": 1184, + "loss": 0.6342021822929382, + "error": 0.4091796875, + "gradient_norm": 0.0704190731048584, + "elapsed": 427.1991722583771 + }, + { + "step": 1200, + "loss": 0.41626787185668945, + "error": 0.212890625, + "gradient_norm": 0.04480795934796333, + "elapsed": 431.6600706577301 + }, + { + "step": 1216, + "loss": 0.28460952639579773, + "error": 0.1337890625, + "gradient_norm": 0.03666983172297478, + "elapsed": 436.14414525032043 + }, + { + "step": 1232, + "loss": 0.044482216238975525, + "error": 0.0146484375, + "gradient_norm": 0.04537617415189743, + "elapsed": 440.6220428943634 + }, + { + "step": 1248, + "loss": 0.42564862966537476, + "error": 0.2119140625, + "gradient_norm": 0.03382417559623718, + "elapsed": 445.06736421585083 + }, + { + "step": 1264, + "loss": 0.27150213718414307, + "error": 0.123046875, + "gradient_norm": 0.033046118915081024, + "elapsed": 449.544029712677 + }, + { + "step": 1280, + "loss": 0.4927375912666321, + "error": 0.255859375, + "gradient_norm": 0.06812550127506256, + "elapsed": 454.07198667526245 + }, + { + "step": 1296, + "loss": 0.5541940927505493, + "error": 0.28125, + "gradient_norm": 0.1435294896364212, + "elapsed": 458.6031415462494 + }, + { + "step": 1312, + "loss": 0.5575842261314392, + "error": 0.2958984375, + "gradient_norm": 0.03811952844262123, + "elapsed": 463.1806228160858 + }, + { + "step": 1328, + "loss": 0.3479428291320801, + "error": 0.1591796875, + "gradient_norm": 0.0709012895822525, + "elapsed": 467.84689688682556 + }, + { + "step": 1344, + "loss": 0.1685580611228943, + "error": 0.0693359375, + "gradient_norm": 0.05423415079712868, + "elapsed": 472.6908576488495 + }, + { + "step": 1360, + "loss": 0.18506410717964172, + "error": 0.0771484375, + "gradient_norm": 0.03418596833944321, + "elapsed": 477.4269769191742 + }, + { + "step": 1376, + "loss": 0.5654555559158325, + "error": 0.3173828125, + "gradient_norm": 0.0685155838727951, + "elapsed": 482.08285188674927 + }, + { + "step": 1392, + "loss": 0.6116407513618469, + "error": 0.3603515625, + "gradient_norm": 0.05198948457837105, + "elapsed": 486.7167499065399 + }, + { + "step": 1408, + "loss": 0.4014682471752167, + "error": 0.19140625, + "gradient_norm": 0.1024075523018837, + "elapsed": 491.4308760166168 + }, + { + "step": 1424, + "loss": 0.051035866141319275, + "error": 0.0166015625, + "gradient_norm": 0.010207361541688442, + "elapsed": 496.1818380355835 + }, + { + "step": 1440, + "loss": 0.4725648760795593, + "error": 0.2412109375, + "gradient_norm": 0.03977378085255623, + "elapsed": 500.8668632507324 + }, + { + "step": 1456, + "loss": 0.5407818555831909, + "error": 0.2939453125, + "gradient_norm": 0.088577501475811, + "elapsed": 505.49274134635925 + }, + { + "step": 1472, + "loss": 0.5655064582824707, + "error": 0.3076171875, + "gradient_norm": 0.04452778398990631, + "elapsed": 510.2188584804535 + }, + { + "step": 1488, + "loss": 0.5799556374549866, + "error": 0.30859375, + "gradient_norm": 0.03976206108927727, + "elapsed": 514.9319434165955 + }, + { + "step": 1504, + "loss": 0.4660354256629944, + "error": 0.25390625, + "gradient_norm": 0.04365506023168564, + "elapsed": 519.5848798751831 + }, + { + "step": 1520, + "loss": 0.5505894422531128, + "error": 0.30859375, + "gradient_norm": 0.057772211730480194, + "elapsed": 524.3388590812683 + }, + { + "step": 1536, + "loss": 0.6251416206359863, + "error": 0.400390625, + "gradient_norm": 0.09649194777011871, + "elapsed": 529.483047246933 + }, + { + "step": 1552, + "loss": 0.05424533039331436, + "error": 0.0185546875, + "gradient_norm": 0.011683990247547626, + "elapsed": 548.1828610897064 + }, + { + "step": 1568, + "loss": 0.33612310886383057, + "error": 0.1611328125, + "gradient_norm": 0.051817383617162704, + "elapsed": 553.4256420135498 + }, + { + "step": 1584, + "loss": 0.045015305280685425, + "error": 0.0166015625, + "gradient_norm": 0.022604886442422867, + "elapsed": 558.6308543682098 + }, + { + "step": 1600, + "loss": 0.2701840102672577, + "error": 0.119140625, + "gradient_norm": 0.02910422720015049, + "elapsed": 563.8571691513062 + }, + { + "step": 1616, + "loss": 0.18982334434986115, + "error": 0.0849609375, + "gradient_norm": 0.025524422526359558, + "elapsed": 568.8628678321838 + }, + { + "step": 1632, + "loss": 0.3950161337852478, + "error": 0.185546875, + "gradient_norm": 0.08419577777385712, + "elapsed": 574.0815451145172 + }, + { + "step": 1648, + "loss": 0.49384528398513794, + "error": 0.255859375, + "gradient_norm": 0.08879344165325165, + "elapsed": 579.1229114532471 + }, + { + "step": 1664, + "loss": 0.5671384930610657, + "error": 0.3115234375, + "gradient_norm": 0.05374513566493988, + "elapsed": 584.114851474762 + }, + { + "step": 1680, + "loss": 0.6192574501037598, + "error": 0.37890625, + "gradient_norm": 0.043836336582899094, + "elapsed": 589.0708522796631 + }, + { + "step": 1696, + "loss": 0.2619469463825226, + "error": 0.1171875, + "gradient_norm": 0.040093280375003815, + "elapsed": 594.2814819812775 + }, + { + "step": 1712, + "loss": 0.33178141713142395, + "error": 0.162109375, + "gradient_norm": 0.04902712255716324, + "elapsed": 599.3068840503693 + }, + { + "step": 1728, + "loss": 0.385281503200531, + "error": 0.171875, + "gradient_norm": 0.03541380167007446, + "elapsed": 604.5308682918549 + }, + { + "step": 1744, + "loss": 0.1628715693950653, + "error": 0.0693359375, + "gradient_norm": 0.06111741065979004, + "elapsed": 609.309522151947 + }, + { + "step": 1760, + "loss": 0.5239119529724121, + "error": 0.2861328125, + "gradient_norm": 0.08513613045215607, + "elapsed": 614.0396001338959 + }, + { + "step": 1776, + "loss": 0.35721707344055176, + "error": 0.150390625, + "gradient_norm": 0.06337940692901611, + "elapsed": 618.6857132911682 + }, + { + "step": 1792, + "loss": 0.5985626578330994, + "error": 0.33203125, + "gradient_norm": 0.035725343972444534, + "elapsed": 623.3352344036102 + }, + { + "step": 1808, + "loss": 0.34676820039749146, + "error": 0.15234375, + "gradient_norm": 0.08163885772228241, + "elapsed": 627.9495220184326 + }, + { + "step": 1824, + "loss": 0.5633711814880371, + "error": 0.3037109375, + "gradient_norm": 0.05938677117228508, + "elapsed": 632.5820379257202 + }, + { + "step": 1840, + "loss": 0.6256523132324219, + "error": 0.384765625, + "gradient_norm": 0.04545137286186218, + "elapsed": 637.205274105072 + }, + { + "step": 1856, + "loss": 0.28091639280319214, + "error": 0.1298828125, + "gradient_norm": 0.04705077037215233, + "elapsed": 641.883561372757 + }, + { + "step": 1872, + "loss": 0.516182541847229, + "error": 0.263671875, + "gradient_norm": 0.08828777819871902, + "elapsed": 646.5188939571381 + }, + { + "step": 1888, + "loss": 0.48386621475219727, + "error": 0.25390625, + "gradient_norm": 0.05322824418544769, + "elapsed": 651.148512840271 + }, + { + "step": 1904, + "loss": 0.6141921281814575, + "error": 0.388671875, + "gradient_norm": 0.050139278173446655, + "elapsed": 655.7796437740326 + }, + { + "step": 1920, + "loss": 0.18002840876579285, + "error": 0.0712890625, + "gradient_norm": 0.04201133921742439, + "elapsed": 660.4064948558807 + }, + { + "step": 1936, + "loss": 0.17531852424144745, + "error": 0.0732421875, + "gradient_norm": 0.024726318195462227, + "elapsed": 664.9991583824158 + }, + { + "step": 1952, + "loss": 0.5088322758674622, + "error": 0.2744140625, + "gradient_norm": 0.04693225398659706, + "elapsed": 669.5544555187225 + }, + { + "step": 1968, + "loss": 0.5684165358543396, + "error": 0.3310546875, + "gradient_norm": 0.031029095873236656, + "elapsed": 674.2354445457458 + }, + { + "step": 1984, + "loss": 0.06459524482488632, + "error": 0.017578125, + "gradient_norm": 0.03600892797112465, + "elapsed": 678.7982559204102 + }, + { + "step": 2000, + "loss": 0.3614455461502075, + "error": 0.1748046875, + "gradient_norm": 0.07060294598340988, + "elapsed": 683.2650325298309 + }, + { + "step": 2016, + "loss": 0.35535523295402527, + "error": 0.166015625, + "gradient_norm": 0.05873403698205948, + "elapsed": 687.7125518321991 + }, + { + "step": 2032, + "loss": 0.5638720989227295, + "error": 0.3232421875, + "gradient_norm": 0.07380504906177521, + "elapsed": 692.1461188793182 + }, + { + "step": 2048, + "loss": 0.5301838517189026, + "error": 0.2919921875, + "gradient_norm": 0.05435395985841751, + "elapsed": 696.6235508918762 + } + ] + }, + "selected_checkpoint_steps": [ + 1024, + 1536, + 2048 + ], + "checkpoint_records": { + "2048": { + "step": 2048, + "new_training_shots": 2097152, + "weights": "weights-2048.npz", + "weights_sha256": "26be9e0259b69a5870bf73e80a5a29fcf3519a3ff63e1d219c57a2113d9d34be", + "validation": "validation-2048.json", + "complete": true + }, + "1024": { + "step": 1024, + "new_training_shots": 1048576, + "weights": "weights-1024.npz", + "weights_sha256": "6ab63cf2443420bfa5f2a817a90432dfc969348a8b23b0e6ccf3ffad3c381672", + "validation": "validation-1024.json", + "complete": true + }, + "1536": { + "step": 1536, + "new_training_shots": 1572864, + "weights": "weights-1536.npz", + "weights_sha256": "a4c6152c3b8f2f8ab8cdda41e92045ebc7eb944f9931a7937bf49c404bf96668", + "validation": "validation-1536.json", + "complete": true + } + }, + "selection": "Minimum full-validation mean failure per group among incumbent and listed session-trained checkpoints; when listed, blend candidates average the recorded small-contextual reference and new probabilities equally", + "blend_reference": "/run-state/workspace/research/context_upgrades/continuation2/predictions", + "history": [ + { + "group": "d3_bX_center_3_5", + "candidates": { + "incumbent": 0.24764122596153845, + "512": 0.24836237980769232, + "1024": 0.24783653846153847, + "1536": 0.24682992788461539, + "2048": 0.246875, + "blend-512": 0.24767127403846154, + "blend-1024": 0.24747596153846155, + "blend-1536": 0.24684495192307693, + "blend-2048": 0.24672475961538465 + }, + "selected": "blend-2048" + }, + { + "group": "d3_bX_center_5_3", + "candidates": { + "incumbent": 0.25369591346153847, + "512": 0.25387620192307697, + "1024": 0.25365084134615384, + "1536": 0.25392127403846154, + "2048": 0.2531550480769231, + "blend-512": 0.25429687500000003, + "blend-1024": 0.25419170673076924, + "blend-1536": 0.25338040865384615, + "blend-2048": 0.2532301682692308 + }, + "selected": "2048" + }, + { + "group": "d3_bX_center_5_7", + "candidates": { + "incumbent": 0.2345402644230769, + "512": 0.23535156250000003, + "1024": 0.23467548076923078, + "1536": 0.23575721153846152, + "2048": 0.23529146634615386, + "blend-512": 0.23494591346153842, + "blend-1024": 0.2351862980769231, + "blend-1536": 0.23535156249999997, + "blend-2048": 0.23446514423076925 + }, + "selected": "blend-2048" + }, + { + "group": "d3_bX_center_7_5", + "candidates": { + "incumbent": 0.23987379807692305, + "512": 0.2393028846153846, + "1024": 0.2391676682692308, + "1536": 0.2397686298076923, + "2048": 0.23969350961538463, + "blend-512": 0.23972355769230771, + "blend-1024": 0.23967848557692312, + "blend-1536": 0.24044471153846153, + "blend-2048": 0.24048978365384613 + }, + "selected": "1024" + }, + { + "group": "d3_bZ_center_3_5", + "candidates": { + "incumbent": 0.24661959134615385, + "512": 0.24767127403846156, + "1024": 0.24747596153846155, + "1536": 0.24658954326923077, + "2048": 0.2467397836538462, + "blend-512": 0.24634915865384613, + "blend-1024": 0.24684495192307693, + "blend-1536": 0.24640925480769232, + "blend-2048": 0.24625901442307693 + }, + "selected": "blend-2048" + }, + { + "group": "d3_bZ_center_5_3", + "candidates": { + "incumbent": 0.2378155048076923, + "512": 0.23912259615384615, + "1024": 0.23805588942307693, + "1536": 0.2381610576923077, + "2048": 0.2376802884615385, + "blend-512": 0.2378155048076923, + "blend-1024": 0.23765024038461538, + "blend-1536": 0.23783052884615388, + "blend-2048": 0.23760516826923078 + }, + "selected": "blend-2048" + }, + { + "group": "d3_bZ_center_5_7", + "candidates": { + "incumbent": 0.23727463942307694, + "512": 0.23766526442307695, + "1024": 0.23789062500000005, + "1536": 0.23713942307692307, + "2048": 0.23778545673076923, + "blend-512": 0.2376201923076923, + "blend-1024": 0.23743990384615382, + "blend-1536": 0.2375, + "blend-2048": 0.2376201923076923 + }, + "selected": "1536" + }, + { + "group": "d3_bZ_center_7_5", + "candidates": { + "incumbent": 0.23345853365384614, + "512": 0.2344200721153846, + "1024": 0.23431490384615386, + "1536": 0.23435997596153843, + "2048": 0.23390925480769229, + "blend-512": 0.23448016826923074, + "blend-1024": 0.2340895432692308, + "blend-1536": 0.23360877403846156, + "blend-2048": 0.2338792067307692 + }, + "selected": "incumbent" + }, + { + "group": "d5_bX_center_5_5", + "candidates": { + "incumbent": 0.2338341346153846 + }, + "selected": "incumbent" + }, + { + "group": "d5_bZ_center_5_5", + "candidates": { + "incumbent": 0.22182992788461542 + }, + "selected": "incumbent" + } + ] + }, + { + "name": "temporal2", + "training_run": { + "initialization": "Continue from this session's trained checkpoint", + "original_initialization": "Rich network random seed20261030; new 32-channel temporal network random seed20261104; rich parameters retained, new input rows Normal(0,.001)", + "rich_starting_checkpoint": "/run-state/workspace/research/learned_exact/rich1/weights-1024.npz", + "rich_checkpoint_sha256": "04fea2cf8c598cd5587d450b50cdce58aee9a8c770a2c2da57d7a48e3bf3e2a6", + "architecture": "Rich 128-unit MLP plus 32-channel temporal encoder: four residual kernel3 convolutions with dilations1/2/4/8 and channel normalization. Receptive field31 rounds. Encoder sees events, measurements and presence masks. Per-edge 177 input features. Output4*tanh.", + "training": "Uniform condition sampling from all 104 d3 conditions; batch drawn from the supplied training split only", + "training_source_sha256": { + "learned_exact__temporal_train.py": "7d48d2fc7f62d0bec3023b3df1c2ac28537d0417966131ae3a156697a34cda5f", + "learned_exact__temporal_model.py": "76fd01d5ae50f7d0b5790800898e7103ddb86db8f6a2ace883407515add2e186", + "learned_exact__data.py": "6f88582230aec7bbf35170a672ff615cac0cf18c0a690b2983874bb4c02c75e6", + "learned_exact__gradient.py": "ecb6b45698480386fa124fe878db7dbfa246d1969fd720ec26daff9547da2001", + "exact_d3__exact.py": "869dfacb295c419c156d1070fc2afdd6e20d02ac1840e45e72346b2b289f4825" + }, + "runtime_versions": { + "jax": "0.7.2", + "numpy": "2.3.3", + "optax": "0.2.6" + }, + "eligible_training_shots": 2067520, + "unique_training_rows_seen_in_this_phase": 1778773, + "unique_rows_by_condition": { + "surface_code_bX_d3_r01_center_3_5": 18357, + "surface_code_bX_d3_r03_center_3_5": 16816, + "surface_code_bX_d3_r05_center_3_5": 17999, + "surface_code_bX_d3_r07_center_3_5": 15225, + "surface_code_bX_d3_r09_center_3_5": 16132, + "surface_code_bX_d3_r11_center_3_5": 17041, + "surface_code_bX_d3_r13_center_3_5": 18477, + "surface_code_bX_d3_r15_center_3_5": 18214, + "surface_code_bX_d3_r17_center_3_5": 16505, + "surface_code_bX_d3_r19_center_3_5": 17120, + "surface_code_bX_d3_r21_center_3_5": 17563, + "surface_code_bX_d3_r23_center_3_5": 16681, + "surface_code_bX_d3_r25_center_3_5": 18379, + "surface_code_bX_d3_r01_center_5_3": 17450, + "surface_code_bX_d3_r03_center_5_3": 17161, + "surface_code_bX_d3_r05_center_5_3": 15797, + "surface_code_bX_d3_r07_center_5_3": 17800, + "surface_code_bX_d3_r09_center_5_3": 17190, + "surface_code_bX_d3_r11_center_5_3": 15840, + "surface_code_bX_d3_r13_center_5_3": 15178, + "surface_code_bX_d3_r15_center_5_3": 14897, + "surface_code_bX_d3_r17_center_5_3": 18252, + "surface_code_bX_d3_r19_center_5_3": 17083, + "surface_code_bX_d3_r21_center_5_3": 17229, + "surface_code_bX_d3_r23_center_5_3": 14735, + "surface_code_bX_d3_r25_center_5_3": 17949, + "surface_code_bX_d3_r01_center_5_7": 17431, + "surface_code_bX_d3_r03_center_5_7": 16583, + "surface_code_bX_d3_r05_center_5_7": 16891, + "surface_code_bX_d3_r07_center_5_7": 17969, + "surface_code_bX_d3_r09_center_5_7": 17966, + "surface_code_bX_d3_r11_center_5_7": 14424, + "surface_code_bX_d3_r13_center_5_7": 16930, + "surface_code_bX_d3_r15_center_5_7": 15205, + "surface_code_bX_d3_r17_center_5_7": 18252, + "surface_code_bX_d3_r19_center_5_7": 17077, + "surface_code_bX_d3_r21_center_5_7": 16770, + "surface_code_bX_d3_r23_center_5_7": 17308, + "surface_code_bX_d3_r25_center_5_7": 17481, + "surface_code_bX_d3_r01_center_7_5": 16630, + "surface_code_bX_d3_r03_center_7_5": 17439, + "surface_code_bX_d3_r05_center_7_5": 15811, + "surface_code_bX_d3_r07_center_7_5": 16637, + "surface_code_bX_d3_r09_center_7_5": 18306, + "surface_code_bX_d3_r11_center_7_5": 18327, + "surface_code_bX_d3_r13_center_7_5": 17974, + "surface_code_bX_d3_r15_center_7_5": 16106, + "surface_code_bX_d3_r17_center_7_5": 15834, + "surface_code_bX_d3_r19_center_7_5": 17242, + "surface_code_bX_d3_r21_center_7_5": 17889, + "surface_code_bX_d3_r23_center_7_5": 17440, + "surface_code_bX_d3_r25_center_7_5": 17087, + "surface_code_bZ_d3_r01_center_3_5": 16236, + "surface_code_bZ_d3_r03_center_3_5": 17278, + "surface_code_bZ_d3_r05_center_3_5": 16577, + "surface_code_bZ_d3_r07_center_3_5": 17376, + "surface_code_bZ_d3_r09_center_3_5": 16000, + "surface_code_bZ_d3_r11_center_3_5": 15634, + "surface_code_bZ_d3_r13_center_3_5": 14950, + "surface_code_bZ_d3_r15_center_3_5": 16600, + "surface_code_bZ_d3_r17_center_3_5": 15381, + "surface_code_bZ_d3_r19_center_3_5": 16823, + "surface_code_bZ_d3_r21_center_3_5": 18789, + "surface_code_bZ_d3_r23_center_3_5": 15616, + "surface_code_bZ_d3_r25_center_3_5": 17088, + "surface_code_bZ_d3_r01_center_5_3": 17935, + "surface_code_bZ_d3_r03_center_5_3": 16256, + "surface_code_bZ_d3_r05_center_5_3": 17959, + "surface_code_bZ_d3_r07_center_5_3": 18401, + "surface_code_bZ_d3_r09_center_5_3": 16405, + "surface_code_bZ_d3_r11_center_5_3": 17274, + "surface_code_bZ_d3_r13_center_5_3": 18172, + "surface_code_bZ_d3_r15_center_5_3": 17525, + "surface_code_bZ_d3_r17_center_5_3": 18643, + "surface_code_bZ_d3_r19_center_5_3": 17816, + "surface_code_bZ_d3_r21_center_5_3": 17404, + "surface_code_bZ_d3_r23_center_5_3": 17253, + "surface_code_bZ_d3_r25_center_5_3": 17667, + "surface_code_bZ_d3_r01_center_5_7": 16203, + "surface_code_bZ_d3_r03_center_5_7": 17214, + "surface_code_bZ_d3_r05_center_5_7": 16799, + "surface_code_bZ_d3_r07_center_5_7": 17896, + "surface_code_bZ_d3_r09_center_5_7": 16411, + "surface_code_bZ_d3_r11_center_5_7": 17726, + "surface_code_bZ_d3_r13_center_5_7": 16313, + "surface_code_bZ_d3_r15_center_5_7": 17824, + "surface_code_bZ_d3_r17_center_5_7": 15656, + "surface_code_bZ_d3_r19_center_5_7": 17169, + "surface_code_bZ_d3_r21_center_5_7": 17194, + "surface_code_bZ_d3_r23_center_5_7": 16779, + "surface_code_bZ_d3_r25_center_5_7": 16970, + "surface_code_bZ_d3_r01_center_7_5": 16762, + "surface_code_bZ_d3_r03_center_7_5": 17320, + "surface_code_bZ_d3_r05_center_7_5": 17522, + "surface_code_bZ_d3_r07_center_7_5": 17914, + "surface_code_bZ_d3_r09_center_7_5": 18439, + "surface_code_bZ_d3_r11_center_7_5": 18218, + "surface_code_bZ_d3_r13_center_7_5": 17907, + "surface_code_bZ_d3_r15_center_7_5": 17597, + "surface_code_bZ_d3_r17_center_7_5": 18252, + "surface_code_bZ_d3_r19_center_7_5": 18379, + "surface_code_bZ_d3_r21_center_7_5": 16818, + "surface_code_bZ_d3_r23_center_7_5": 18430, + "surface_code_bZ_d3_r25_center_7_5": 17924 + }, + "steps": 4096, + "batch_size": 1024, + "optimizer": "AdamW, weight decay 1e-4, global gradient norm clip 1", + "learning_rate": 0.0005, + "sampling_seed": 20261121, + "optimizer_restored": true, + "rng_restored": true, + "sampling_state_source": "/run-state/workspace/research/learned_exact/temporal1/rng-2048.json", + "session_trained_starting_checkpoint": "/run-state/workspace/research/learned_exact/temporal1/weights-2048.npz", + "starting_checkpoint_sha256": "26be9e0259b69a5870bf73e80a5a29fcf3519a3ff63e1d219c57a2113d9d34be", + "starting_training_provenance": { + "initialization": "Continue from rich weights trained from random initialization in this session; new temporal parameters randomly initialized now", + "original_initialization": "Rich network random seed20261030; new 32-channel temporal network random seed20261104; rich parameters retained, new input rows Normal(0,.001)", + "rich_starting_checkpoint": "/run-state/workspace/research/learned_exact/rich1/weights-1024.npz", + "rich_checkpoint_sha256": "04fea2cf8c598cd5587d450b50cdce58aee9a8c770a2c2da57d7a48e3bf3e2a6", + "architecture": "Rich 128-unit MLP plus 32-channel temporal encoder: four residual kernel3 convolutions with dilations1/2/4/8 and channel normalization. Receptive field31 rounds. Encoder sees events, measurements and presence masks. Per-edge 177 input features. Output4*tanh.", + "training": "Uniform condition sampling from all 104 d3 conditions; batch drawn from the supplied training split only", + "steps": 2048, + "batch_size": 1024, + "optimizer": "AdamW, weight decay 1e-4, global gradient norm clip 1", + "learning_rate": 0.001, + "sampling_seed": 20261111, + "optimizer_restored": false, + "rng_restored": false, + "session_trained_starting_checkpoint": null, + "starting_checkpoint_sha256": null, + "loss": "Binary conditional logical likelihood computed by exact frontier elimination", + "validation_shots_per_condition": 1024, + "uniform_validation": true, + "uniform_validation_seed": 20261028, + "test_data_used": false, + "log": [ + { + "step": 1, + "loss": 0.6317505836486816, + "error": 0.3681640625, + "gradient_norm": 0.04013459011912346, + "elapsed": 30.971998691558838 + }, + { + "step": 16, + "loss": 0.5091081857681274, + "error": 0.291015625, + "gradient_norm": 0.042228709906339645, + "elapsed": 35.17463397979736 + }, + { + "step": 32, + "loss": 0.626472532749176, + "error": 0.3642578125, + "gradient_norm": 0.05872415751218796, + "elapsed": 39.678136110305786 + }, + { + "step": 48, + "loss": 0.6005369424819946, + "error": 0.3515625, + "gradient_norm": 0.03848014399409294, + "elapsed": 44.16946887969971 + }, + { + "step": 64, + "loss": 0.5523768663406372, + "error": 0.302734375, + "gradient_norm": 0.06031862646341324, + "elapsed": 48.65217089653015 + }, + { + "step": 80, + "loss": 0.3981674611568451, + "error": 0.19921875, + "gradient_norm": 0.0542079322040081, + "elapsed": 53.21601867675781 + }, + { + "step": 96, + "loss": 0.5601426362991333, + "error": 0.2978515625, + "gradient_norm": 0.04770371690392494, + "elapsed": 57.81089663505554 + }, + { + "step": 112, + "loss": 0.5878150463104248, + "error": 0.34765625, + "gradient_norm": 0.10699950158596039, + "elapsed": 62.42190766334534 + }, + { + "step": 128, + "loss": 0.5232458114624023, + "error": 0.2861328125, + "gradient_norm": 0.0911584198474884, + "elapsed": 67.00223755836487 + }, + { + "step": 144, + "loss": 0.6119767427444458, + "error": 0.3623046875, + "gradient_norm": 0.062474437057971954, + "elapsed": 71.54070782661438 + }, + { + "step": 160, + "loss": 0.3037984371185303, + "error": 0.1474609375, + "gradient_norm": 0.05718141421675682, + "elapsed": 76.08167362213135 + }, + { + "step": 176, + "loss": 0.6038273572921753, + "error": 0.3662109375, + "gradient_norm": 0.0437164381146431, + "elapsed": 80.71864247322083 + }, + { + "step": 192, + "loss": 0.3304370641708374, + "error": 0.1572265625, + "gradient_norm": 0.05684761330485344, + "elapsed": 85.54437017440796 + }, + { + "step": 208, + "loss": 0.5785484313964844, + "error": 0.3251953125, + "gradient_norm": 0.09597272425889969, + "elapsed": 91.51522874832153 + }, + { + "step": 224, + "loss": 0.3110499978065491, + "error": 0.13671875, + "gradient_norm": 0.04815748706459999, + "elapsed": 97.1228940486908 + }, + { + "step": 240, + "loss": 0.6213864684104919, + "error": 0.3623046875, + "gradient_norm": 0.0540502592921257, + "elapsed": 102.90286135673523 + }, + { + "step": 256, + "loss": 0.2535272240638733, + "error": 0.1064453125, + "gradient_norm": 0.029962118715047836, + "elapsed": 108.39288640022278 + }, + { + "step": 272, + "loss": 0.6126939058303833, + "error": 0.3671875, + "gradient_norm": 0.06887879222631454, + "elapsed": 113.83897161483765 + }, + { + "step": 288, + "loss": 0.4556676149368286, + "error": 0.2236328125, + "gradient_norm": 0.16127081215381622, + "elapsed": 119.93085813522339 + }, + { + "step": 304, + "loss": 0.4973585605621338, + "error": 0.255859375, + "gradient_norm": 0.08082302659749985, + "elapsed": 125.90891909599304 + }, + { + "step": 320, + "loss": 0.6455868482589722, + "error": 0.419921875, + "gradient_norm": 0.04339660331606865, + "elapsed": 131.20537638664246 + }, + { + "step": 336, + "loss": 0.5343132615089417, + "error": 0.2880859375, + "gradient_norm": 0.07518009096384048, + "elapsed": 136.59086871147156 + }, + { + "step": 352, + "loss": 0.6505346894264221, + "error": 0.4033203125, + "gradient_norm": 0.03800992667675018, + "elapsed": 142.21085906028748 + }, + { + "step": 368, + "loss": 0.4882712960243225, + "error": 0.251953125, + "gradient_norm": 0.08170920610427856, + "elapsed": 146.95903658866882 + }, + { + "step": 384, + "loss": 0.5292021036148071, + "error": 0.296875, + "gradient_norm": 0.08454013615846634, + "elapsed": 151.6385259628296 + }, + { + "step": 400, + "loss": 0.6272899508476257, + "error": 0.3837890625, + "gradient_norm": 0.051436979323625565, + "elapsed": 156.3343904018402 + }, + { + "step": 416, + "loss": 0.052130259573459625, + "error": 0.0166015625, + "gradient_norm": 0.02377190627157688, + "elapsed": 160.92345547676086 + }, + { + "step": 432, + "loss": 0.5256737470626831, + "error": 0.3046875, + "gradient_norm": 0.07986386120319366, + "elapsed": 165.52879118919373 + }, + { + "step": 448, + "loss": 0.15193665027618408, + "error": 0.0576171875, + "gradient_norm": 0.06491660326719284, + "elapsed": 170.14827823638916 + }, + { + "step": 464, + "loss": 0.6418055295944214, + "error": 0.40625, + "gradient_norm": 0.07290885597467422, + "elapsed": 174.64974284172058 + }, + { + "step": 480, + "loss": 0.6055159568786621, + "error": 0.357421875, + "gradient_norm": 0.0795595794916153, + "elapsed": 179.17218685150146 + }, + { + "step": 496, + "loss": 0.6372283697128296, + "error": 0.3916015625, + "gradient_norm": 0.04387903958559036, + "elapsed": 183.77568197250366 + }, + { + "step": 512, + "loss": 0.637977123260498, + "error": 0.408203125, + "gradient_norm": 0.060665905475616455, + "elapsed": 188.31205368041992 + }, + { + "step": 528, + "loss": 0.4668862223625183, + "error": 0.2451171875, + "gradient_norm": 0.08566711097955704, + "elapsed": 206.40719985961914 + }, + { + "step": 544, + "loss": 0.4584413170814514, + "error": 0.244140625, + "gradient_norm": 0.08538200706243515, + "elapsed": 211.02819895744324 + }, + { + "step": 560, + "loss": 0.5615692138671875, + "error": 0.3291015625, + "gradient_norm": 0.043748609721660614, + "elapsed": 215.66470766067505 + }, + { + "step": 576, + "loss": 0.5151895880699158, + "error": 0.2880859375, + "gradient_norm": 0.05164863541722298, + "elapsed": 220.18949556350708 + }, + { + "step": 592, + "loss": 0.5618112087249756, + "error": 0.3291015625, + "gradient_norm": 0.05998719856142998, + "elapsed": 224.7216100692749 + }, + { + "step": 608, + "loss": 0.659294843673706, + "error": 0.431640625, + "gradient_norm": 0.09910348802804947, + "elapsed": 229.26827573776245 + }, + { + "step": 624, + "loss": 0.5895233154296875, + "error": 0.3447265625, + "gradient_norm": 0.045334093272686005, + "elapsed": 233.83731055259705 + }, + { + "step": 640, + "loss": 0.6081801056861877, + "error": 0.3388671875, + "gradient_norm": 0.06578423827886581, + "elapsed": 238.36345624923706 + }, + { + "step": 656, + "loss": 0.5349816083908081, + "error": 0.2939453125, + "gradient_norm": 0.09989562630653381, + "elapsed": 242.95086026191711 + }, + { + "step": 672, + "loss": 0.5871994495391846, + "error": 0.328125, + "gradient_norm": 0.08132346719503403, + "elapsed": 247.67088556289673 + }, + { + "step": 688, + "loss": 0.06012660637497902, + "error": 0.0146484375, + "gradient_norm": 0.012170507572591305, + "elapsed": 252.3202247619629 + }, + { + "step": 704, + "loss": 0.42179757356643677, + "error": 0.21484375, + "gradient_norm": 0.08384513854980469, + "elapsed": 256.91991782188416 + }, + { + "step": 720, + "loss": 0.6111758947372437, + "error": 0.3720703125, + "gradient_norm": 0.06689880788326263, + "elapsed": 261.56407928466797 + }, + { + "step": 736, + "loss": 0.29969727993011475, + "error": 0.1318359375, + "gradient_norm": 0.0743367150425911, + "elapsed": 266.22199630737305 + }, + { + "step": 752, + "loss": 0.051849883049726486, + "error": 0.0166015625, + "gradient_norm": 0.017005126923322678, + "elapsed": 270.8602342605591 + }, + { + "step": 768, + "loss": 0.6178420186042786, + "error": 0.3759765625, + "gradient_norm": 0.027732960879802704, + "elapsed": 275.47888374328613 + }, + { + "step": 784, + "loss": 0.45798996090888977, + "error": 0.228515625, + "gradient_norm": 0.0630083829164505, + "elapsed": 280.1709156036377 + }, + { + "step": 800, + "loss": 0.5104988813400269, + "error": 0.2724609375, + "gradient_norm": 0.041733670979738235, + "elapsed": 286.17937707901 + }, + { + "step": 816, + "loss": 0.6336112022399902, + "error": 0.3837890625, + "gradient_norm": 0.0755191296339035, + "elapsed": 291.7506103515625 + }, + { + "step": 832, + "loss": 0.6260952353477478, + "error": 0.3603515625, + "gradient_norm": 0.0318005345761776, + "elapsed": 297.31094622612 + }, + { + "step": 848, + "loss": 0.5870074033737183, + "error": 0.3525390625, + "gradient_norm": 0.12073405832052231, + "elapsed": 303.11089158058167 + }, + { + "step": 864, + "loss": 0.5125640034675598, + "error": 0.26953125, + "gradient_norm": 0.038650237023830414, + "elapsed": 308.7288725376129 + }, + { + "step": 880, + "loss": 0.19194915890693665, + "error": 0.0703125, + "gradient_norm": 0.061878547072410583, + "elapsed": 314.37042355537415 + }, + { + "step": 896, + "loss": 0.5409250259399414, + "error": 0.2919921875, + "gradient_norm": 0.06288820505142212, + "elapsed": 319.9398190975189 + }, + { + "step": 912, + "loss": 0.6164936423301697, + "error": 0.3701171875, + "gradient_norm": 0.043224163353443146, + "elapsed": 325.361323595047 + }, + { + "step": 928, + "loss": 0.16032151877880096, + "error": 0.0625, + "gradient_norm": 0.030957572162151337, + "elapsed": 331.21752285957336 + }, + { + "step": 944, + "loss": 0.646601676940918, + "error": 0.3818359375, + "gradient_norm": 0.05670839175581932, + "elapsed": 336.7825517654419 + }, + { + "step": 960, + "loss": 0.402952641248703, + "error": 0.1865234375, + "gradient_norm": 0.07500886172056198, + "elapsed": 342.6888346672058 + }, + { + "step": 976, + "loss": 0.5537433624267578, + "error": 0.2939453125, + "gradient_norm": 0.04955969750881195, + "elapsed": 348.5554690361023 + }, + { + "step": 992, + "loss": 0.559626579284668, + "error": 0.294921875, + "gradient_norm": 0.048295993357896805, + "elapsed": 354.3531894683838 + }, + { + "step": 1008, + "loss": 0.5034694671630859, + "error": 0.2705078125, + "gradient_norm": 0.05729879066348076, + "elapsed": 360.0949149131775 + }, + { + "step": 1024, + "loss": 0.3119734525680542, + "error": 0.1259765625, + "gradient_norm": 0.052326612174510956, + "elapsed": 365.7881224155426 + }, + { + "step": 1040, + "loss": 0.35799849033355713, + "error": 0.173828125, + "gradient_norm": 0.03801804035902023, + "elapsed": 386.5749418735504 + }, + { + "step": 1056, + "loss": 0.6178948879241943, + "error": 0.3515625, + "gradient_norm": 0.03620661422610283, + "elapsed": 391.48247838020325 + }, + { + "step": 1072, + "loss": 0.49231401085853577, + "error": 0.24609375, + "gradient_norm": 0.04391559213399887, + "elapsed": 396.08718824386597 + }, + { + "step": 1088, + "loss": 0.4119300842285156, + "error": 0.2001953125, + "gradient_norm": 0.1104700043797493, + "elapsed": 400.5326828956604 + }, + { + "step": 1104, + "loss": 0.4926626682281494, + "error": 0.265625, + "gradient_norm": 0.04246886447072029, + "elapsed": 404.95741271972656 + }, + { + "step": 1120, + "loss": 0.5027930736541748, + "error": 0.2607421875, + "gradient_norm": 0.0547240674495697, + "elapsed": 409.40319633483887 + }, + { + "step": 1136, + "loss": 0.5948058366775513, + "error": 0.3544921875, + "gradient_norm": 0.06810063123703003, + "elapsed": 413.8514006137848 + }, + { + "step": 1152, + "loss": 0.26567256450653076, + "error": 0.125, + "gradient_norm": 0.06689104437828064, + "elapsed": 418.29868721961975 + }, + { + "step": 1168, + "loss": 0.2866836190223694, + "error": 0.1240234375, + "gradient_norm": 0.029536213725805283, + "elapsed": 422.75131845474243 + }, + { + "step": 1184, + "loss": 0.6342021822929382, + "error": 0.4091796875, + "gradient_norm": 0.0704190731048584, + "elapsed": 427.1991722583771 + }, + { + "step": 1200, + "loss": 0.41626787185668945, + "error": 0.212890625, + "gradient_norm": 0.04480795934796333, + "elapsed": 431.6600706577301 + }, + { + "step": 1216, + "loss": 0.28460952639579773, + "error": 0.1337890625, + "gradient_norm": 0.03666983172297478, + "elapsed": 436.14414525032043 + }, + { + "step": 1232, + "loss": 0.044482216238975525, + "error": 0.0146484375, + "gradient_norm": 0.04537617415189743, + "elapsed": 440.6220428943634 + }, + { + "step": 1248, + "loss": 0.42564862966537476, + "error": 0.2119140625, + "gradient_norm": 0.03382417559623718, + "elapsed": 445.06736421585083 + }, + { + "step": 1264, + "loss": 0.27150213718414307, + "error": 0.123046875, + "gradient_norm": 0.033046118915081024, + "elapsed": 449.544029712677 + }, + { + "step": 1280, + "loss": 0.4927375912666321, + "error": 0.255859375, + "gradient_norm": 0.06812550127506256, + "elapsed": 454.07198667526245 + }, + { + "step": 1296, + "loss": 0.5541940927505493, + "error": 0.28125, + "gradient_norm": 0.1435294896364212, + "elapsed": 458.6031415462494 + }, + { + "step": 1312, + "loss": 0.5575842261314392, + "error": 0.2958984375, + "gradient_norm": 0.03811952844262123, + "elapsed": 463.1806228160858 + }, + { + "step": 1328, + "loss": 0.3479428291320801, + "error": 0.1591796875, + "gradient_norm": 0.0709012895822525, + "elapsed": 467.84689688682556 + }, + { + "step": 1344, + "loss": 0.1685580611228943, + "error": 0.0693359375, + "gradient_norm": 0.05423415079712868, + "elapsed": 472.6908576488495 + }, + { + "step": 1360, + "loss": 0.18506410717964172, + "error": 0.0771484375, + "gradient_norm": 0.03418596833944321, + "elapsed": 477.4269769191742 + }, + { + "step": 1376, + "loss": 0.5654555559158325, + "error": 0.3173828125, + "gradient_norm": 0.0685155838727951, + "elapsed": 482.08285188674927 + }, + { + "step": 1392, + "loss": 0.6116407513618469, + "error": 0.3603515625, + "gradient_norm": 0.05198948457837105, + "elapsed": 486.7167499065399 + }, + { + "step": 1408, + "loss": 0.4014682471752167, + "error": 0.19140625, + "gradient_norm": 0.1024075523018837, + "elapsed": 491.4308760166168 + }, + { + "step": 1424, + "loss": 0.051035866141319275, + "error": 0.0166015625, + "gradient_norm": 0.010207361541688442, + "elapsed": 496.1818380355835 + }, + { + "step": 1440, + "loss": 0.4725648760795593, + "error": 0.2412109375, + "gradient_norm": 0.03977378085255623, + "elapsed": 500.8668632507324 + }, + { + "step": 1456, + "loss": 0.5407818555831909, + "error": 0.2939453125, + "gradient_norm": 0.088577501475811, + "elapsed": 505.49274134635925 + }, + { + "step": 1472, + "loss": 0.5655064582824707, + "error": 0.3076171875, + "gradient_norm": 0.04452778398990631, + "elapsed": 510.2188584804535 + }, + { + "step": 1488, + "loss": 0.5799556374549866, + "error": 0.30859375, + "gradient_norm": 0.03976206108927727, + "elapsed": 514.9319434165955 + }, + { + "step": 1504, + "loss": 0.4660354256629944, + "error": 0.25390625, + "gradient_norm": 0.04365506023168564, + "elapsed": 519.5848798751831 + }, + { + "step": 1520, + "loss": 0.5505894422531128, + "error": 0.30859375, + "gradient_norm": 0.057772211730480194, + "elapsed": 524.3388590812683 + }, + { + "step": 1536, + "loss": 0.6251416206359863, + "error": 0.400390625, + "gradient_norm": 0.09649194777011871, + "elapsed": 529.483047246933 + }, + { + "step": 1552, + "loss": 0.05424533039331436, + "error": 0.0185546875, + "gradient_norm": 0.011683990247547626, + "elapsed": 548.1828610897064 + }, + { + "step": 1568, + "loss": 0.33612310886383057, + "error": 0.1611328125, + "gradient_norm": 0.051817383617162704, + "elapsed": 553.4256420135498 + }, + { + "step": 1584, + "loss": 0.045015305280685425, + "error": 0.0166015625, + "gradient_norm": 0.022604886442422867, + "elapsed": 558.6308543682098 + }, + { + "step": 1600, + "loss": 0.2701840102672577, + "error": 0.119140625, + "gradient_norm": 0.02910422720015049, + "elapsed": 563.8571691513062 + }, + { + "step": 1616, + "loss": 0.18982334434986115, + "error": 0.0849609375, + "gradient_norm": 0.025524422526359558, + "elapsed": 568.8628678321838 + }, + { + "step": 1632, + "loss": 0.3950161337852478, + "error": 0.185546875, + "gradient_norm": 0.08419577777385712, + "elapsed": 574.0815451145172 + }, + { + "step": 1648, + "loss": 0.49384528398513794, + "error": 0.255859375, + "gradient_norm": 0.08879344165325165, + "elapsed": 579.1229114532471 + }, + { + "step": 1664, + "loss": 0.5671384930610657, + "error": 0.3115234375, + "gradient_norm": 0.05374513566493988, + "elapsed": 584.114851474762 + }, + { + "step": 1680, + "loss": 0.6192574501037598, + "error": 0.37890625, + "gradient_norm": 0.043836336582899094, + "elapsed": 589.0708522796631 + }, + { + "step": 1696, + "loss": 0.2619469463825226, + "error": 0.1171875, + "gradient_norm": 0.040093280375003815, + "elapsed": 594.2814819812775 + }, + { + "step": 1712, + "loss": 0.33178141713142395, + "error": 0.162109375, + "gradient_norm": 0.04902712255716324, + "elapsed": 599.3068840503693 + }, + { + "step": 1728, + "loss": 0.385281503200531, + "error": 0.171875, + "gradient_norm": 0.03541380167007446, + "elapsed": 604.5308682918549 + }, + { + "step": 1744, + "loss": 0.1628715693950653, + "error": 0.0693359375, + "gradient_norm": 0.06111741065979004, + "elapsed": 609.309522151947 + }, + { + "step": 1760, + "loss": 0.5239119529724121, + "error": 0.2861328125, + "gradient_norm": 0.08513613045215607, + "elapsed": 614.0396001338959 + }, + { + "step": 1776, + "loss": 0.35721707344055176, + "error": 0.150390625, + "gradient_norm": 0.06337940692901611, + "elapsed": 618.6857132911682 + }, + { + "step": 1792, + "loss": 0.5985626578330994, + "error": 0.33203125, + "gradient_norm": 0.035725343972444534, + "elapsed": 623.3352344036102 + }, + { + "step": 1808, + "loss": 0.34676820039749146, + "error": 0.15234375, + "gradient_norm": 0.08163885772228241, + "elapsed": 627.9495220184326 + }, + { + "step": 1824, + "loss": 0.5633711814880371, + "error": 0.3037109375, + "gradient_norm": 0.05938677117228508, + "elapsed": 632.5820379257202 + }, + { + "step": 1840, + "loss": 0.6256523132324219, + "error": 0.384765625, + "gradient_norm": 0.04545137286186218, + "elapsed": 637.205274105072 + }, + { + "step": 1856, + "loss": 0.28091639280319214, + "error": 0.1298828125, + "gradient_norm": 0.04705077037215233, + "elapsed": 641.883561372757 + }, + { + "step": 1872, + "loss": 0.516182541847229, + "error": 0.263671875, + "gradient_norm": 0.08828777819871902, + "elapsed": 646.5188939571381 + }, + { + "step": 1888, + "loss": 0.48386621475219727, + "error": 0.25390625, + "gradient_norm": 0.05322824418544769, + "elapsed": 651.148512840271 + }, + { + "step": 1904, + "loss": 0.6141921281814575, + "error": 0.388671875, + "gradient_norm": 0.050139278173446655, + "elapsed": 655.7796437740326 + }, + { + "step": 1920, + "loss": 0.18002840876579285, + "error": 0.0712890625, + "gradient_norm": 0.04201133921742439, + "elapsed": 660.4064948558807 + }, + { + "step": 1936, + "loss": 0.17531852424144745, + "error": 0.0732421875, + "gradient_norm": 0.024726318195462227, + "elapsed": 664.9991583824158 + }, + { + "step": 1952, + "loss": 0.5088322758674622, + "error": 0.2744140625, + "gradient_norm": 0.04693225398659706, + "elapsed": 669.5544555187225 + }, + { + "step": 1968, + "loss": 0.5684165358543396, + "error": 0.3310546875, + "gradient_norm": 0.031029095873236656, + "elapsed": 674.2354445457458 + }, + { + "step": 1984, + "loss": 0.06459524482488632, + "error": 0.017578125, + "gradient_norm": 0.03600892797112465, + "elapsed": 678.7982559204102 + }, + { + "step": 2000, + "loss": 0.3614455461502075, + "error": 0.1748046875, + "gradient_norm": 0.07060294598340988, + "elapsed": 683.2650325298309 + }, + { + "step": 2016, + "loss": 0.35535523295402527, + "error": 0.166015625, + "gradient_norm": 0.05873403698205948, + "elapsed": 687.7125518321991 + }, + { + "step": 2032, + "loss": 0.5638720989227295, + "error": 0.3232421875, + "gradient_norm": 0.07380504906177521, + "elapsed": 692.1461188793182 + }, + { + "step": 2048, + "loss": 0.5301838517189026, + "error": 0.2919921875, + "gradient_norm": 0.05435395985841751, + "elapsed": 696.6235508918762 + } + ] + }, + "loss": "Binary conditional logical likelihood computed by exact frontier elimination", + "validation_shots_per_condition": 1024, + "uniform_validation": true, + "uniform_validation_seed": 20261028, + "test_data_used": false, + "log": [ + { + "step": 1, + "loss": 0.250907301902771, + "error": 0.1083984375, + "gradient_norm": 0.07171476632356644, + "elapsed": 44.811134576797485 + }, + { + "step": 16, + "loss": 0.5958679914474487, + "error": 0.3662109375, + "gradient_norm": 0.07673005014657974, + "elapsed": 49.90856671333313 + }, + { + "step": 32, + "loss": 0.47648972272872925, + "error": 0.2421875, + "gradient_norm": 0.08561501652002335, + "elapsed": 55.179388761520386 + }, + { + "step": 48, + "loss": 0.06145006790757179, + "error": 0.0234375, + "gradient_norm": 0.01556467730551958, + "elapsed": 61.0339195728302 + }, + { + "step": 64, + "loss": 0.3687053918838501, + "error": 0.1884765625, + "gradient_norm": 0.08752371370792389, + "elapsed": 65.95811891555786 + }, + { + "step": 80, + "loss": 0.6481984853744507, + "error": 0.4140625, + "gradient_norm": 0.05311283841729164, + "elapsed": 70.56021332740784 + }, + { + "step": 96, + "loss": 0.42319929599761963, + "error": 0.2138671875, + "gradient_norm": 0.05047478526830673, + "elapsed": 75.11613631248474 + }, + { + "step": 112, + "loss": 0.47527259588241577, + "error": 0.24609375, + "gradient_norm": 0.038366906344890594, + "elapsed": 79.53446984291077 + }, + { + "step": 128, + "loss": 0.5996723175048828, + "error": 0.3369140625, + "gradient_norm": 0.1213272362947464, + "elapsed": 83.97515749931335 + }, + { + "step": 144, + "loss": 0.04971993714570999, + "error": 0.0146484375, + "gradient_norm": 0.008080735802650452, + "elapsed": 88.44039463996887 + }, + { + "step": 160, + "loss": 0.35900360345840454, + "error": 0.162109375, + "gradient_norm": 0.03359593451023102, + "elapsed": 92.89548206329346 + }, + { + "step": 176, + "loss": 0.5342063903808594, + "error": 0.2978515625, + "gradient_norm": 0.04794691130518913, + "elapsed": 97.35658049583435 + }, + { + "step": 192, + "loss": 0.6300076246261597, + "error": 0.369140625, + "gradient_norm": 0.081769198179245, + "elapsed": 101.81493759155273 + }, + { + "step": 208, + "loss": 0.6191903948783875, + "error": 0.3828125, + "gradient_norm": 0.07145775109529495, + "elapsed": 106.2480263710022 + }, + { + "step": 224, + "loss": 0.5155678391456604, + "error": 0.28515625, + "gradient_norm": 0.06772179156541824, + "elapsed": 110.71284222602844 + }, + { + "step": 240, + "loss": 0.634708046913147, + "error": 0.3857421875, + "gradient_norm": 0.09493093192577362, + "elapsed": 115.14978742599487 + }, + { + "step": 256, + "loss": 0.1840895414352417, + "error": 0.0751953125, + "gradient_norm": 0.025586696341633797, + "elapsed": 119.61202120780945 + }, + { + "step": 272, + "loss": 0.2775103449821472, + "error": 0.12890625, + "gradient_norm": 0.06913147866725922, + "elapsed": 124.02584528923035 + }, + { + "step": 288, + "loss": 0.6163080334663391, + "error": 0.3642578125, + "gradient_norm": 0.05895426496863365, + "elapsed": 128.46512532234192 + }, + { + "step": 304, + "loss": 0.5276986360549927, + "error": 0.287109375, + "gradient_norm": 0.06955187022686005, + "elapsed": 132.89240765571594 + }, + { + "step": 320, + "loss": 0.44859516620635986, + "error": 0.22265625, + "gradient_norm": 0.07272452116012573, + "elapsed": 137.32864713668823 + }, + { + "step": 336, + "loss": 0.48315611481666565, + "error": 0.2626953125, + "gradient_norm": 0.03321139141917229, + "elapsed": 141.80009770393372 + }, + { + "step": 352, + "loss": 0.6107717752456665, + "error": 0.3544921875, + "gradient_norm": 0.05243214592337608, + "elapsed": 146.36439752578735 + }, + { + "step": 368, + "loss": 0.6215153932571411, + "error": 0.357421875, + "gradient_norm": 0.04383325204253197, + "elapsed": 150.99996852874756 + }, + { + "step": 384, + "loss": 0.6130329966545105, + "error": 0.35546875, + "gradient_norm": 0.04113119840621948, + "elapsed": 155.62374639511108 + }, + { + "step": 400, + "loss": 0.30471885204315186, + "error": 0.142578125, + "gradient_norm": 0.04447556659579277, + "elapsed": 160.17594957351685 + }, + { + "step": 416, + "loss": 0.6154489517211914, + "error": 0.37109375, + "gradient_norm": 0.04456057772040367, + "elapsed": 164.7639675140381 + }, + { + "step": 432, + "loss": 0.6134694218635559, + "error": 0.337890625, + "gradient_norm": 0.04219559207558632, + "elapsed": 169.32792139053345 + }, + { + "step": 448, + "loss": 0.5463185906410217, + "error": 0.2939453125, + "gradient_norm": 0.07746092975139618, + "elapsed": 173.88445162773132 + }, + { + "step": 464, + "loss": 0.06016772612929344, + "error": 0.01953125, + "gradient_norm": 0.01364185381680727, + "elapsed": 178.42725706100464 + }, + { + "step": 480, + "loss": 0.388141393661499, + "error": 0.18359375, + "gradient_norm": 0.04870256036520004, + "elapsed": 182.99062085151672 + }, + { + "step": 496, + "loss": 0.44524821639060974, + "error": 0.2216796875, + "gradient_norm": 0.03453445807099342, + "elapsed": 187.56396961212158 + }, + { + "step": 512, + "loss": 0.34312355518341064, + "error": 0.154296875, + "gradient_norm": 0.06794509291648865, + "elapsed": 192.27511191368103 + }, + { + "step": 528, + "loss": 0.19467462599277496, + "error": 0.0771484375, + "gradient_norm": 0.042381469160318375, + "elapsed": 197.7108268737793 + }, + { + "step": 544, + "loss": 0.46226584911346436, + "error": 0.2421875, + "gradient_norm": 0.06073570251464844, + "elapsed": 202.97405791282654 + }, + { + "step": 560, + "loss": 0.525318443775177, + "error": 0.2822265625, + "gradient_norm": 0.06954885274171829, + "elapsed": 208.69676971435547 + }, + { + "step": 576, + "loss": 0.6158387064933777, + "error": 0.349609375, + "gradient_norm": 0.07587578892707825, + "elapsed": 214.80397653579712 + }, + { + "step": 592, + "loss": 0.5515886545181274, + "error": 0.298828125, + "gradient_norm": 0.04969338700175285, + "elapsed": 220.27399611473083 + }, + { + "step": 608, + "loss": 0.18365338444709778, + "error": 0.0654296875, + "gradient_norm": 0.08657706528902054, + "elapsed": 224.81246256828308 + }, + { + "step": 624, + "loss": 0.4578855633735657, + "error": 0.2421875, + "gradient_norm": 0.04942100867629051, + "elapsed": 229.45902252197266 + }, + { + "step": 640, + "loss": 0.37826013565063477, + "error": 0.1865234375, + "gradient_norm": 0.047499872744083405, + "elapsed": 233.9695644378662 + }, + { + "step": 656, + "loss": 0.40863412618637085, + "error": 0.2001953125, + "gradient_norm": 0.07845330238342285, + "elapsed": 238.584894657135 + }, + { + "step": 672, + "loss": 0.5640332698822021, + "error": 0.2880859375, + "gradient_norm": 0.057469289749860764, + "elapsed": 243.0929844379425 + }, + { + "step": 688, + "loss": 0.030216243118047714, + "error": 0.0078125, + "gradient_norm": 0.04682641476392746, + "elapsed": 247.581125497818 + }, + { + "step": 704, + "loss": 0.375002384185791, + "error": 0.1826171875, + "gradient_norm": 0.04864194989204407, + "elapsed": 252.1564691066742 + }, + { + "step": 720, + "loss": 0.5145515203475952, + "error": 0.2744140625, + "gradient_norm": 0.052671682089567184, + "elapsed": 256.6466488838196 + }, + { + "step": 736, + "loss": 0.067174531519413, + "error": 0.0224609375, + "gradient_norm": 0.019299577921628952, + "elapsed": 261.1185076236725 + }, + { + "step": 752, + "loss": 0.24909992516040802, + "error": 0.111328125, + "gradient_norm": 0.06907463818788528, + "elapsed": 265.61960339546204 + }, + { + "step": 768, + "loss": 0.5088074207305908, + "error": 0.2744140625, + "gradient_norm": 0.06963017582893372, + "elapsed": 270.07474064826965 + }, + { + "step": 784, + "loss": 0.3783387839794159, + "error": 0.1826171875, + "gradient_norm": 0.05537794530391693, + "elapsed": 274.52722239494324 + }, + { + "step": 800, + "loss": 0.6107200980186462, + "error": 0.3623046875, + "gradient_norm": 0.0470259003341198, + "elapsed": 279.0401859283447 + }, + { + "step": 816, + "loss": 0.5778236389160156, + "error": 0.3212890625, + "gradient_norm": 0.10146680474281311, + "elapsed": 283.5114622116089 + }, + { + "step": 832, + "loss": 0.576002299785614, + "error": 0.3076171875, + "gradient_norm": 0.07760787010192871, + "elapsed": 288.04797434806824 + }, + { + "step": 848, + "loss": 0.6179666519165039, + "error": 0.3740234375, + "gradient_norm": 0.07383852452039719, + "elapsed": 292.60600209236145 + }, + { + "step": 864, + "loss": 0.3105512857437134, + "error": 0.1455078125, + "gradient_norm": 0.052953749895095825, + "elapsed": 297.12180352211 + }, + { + "step": 880, + "loss": 0.4802623987197876, + "error": 0.2548828125, + "gradient_norm": 0.07736275345087051, + "elapsed": 301.6091134548187 + }, + { + "step": 896, + "loss": 0.5572722554206848, + "error": 0.318359375, + "gradient_norm": 0.053303152322769165, + "elapsed": 306.1978073120117 + }, + { + "step": 912, + "loss": 0.34814420342445374, + "error": 0.1669921875, + "gradient_norm": 0.037726350128650665, + "elapsed": 310.78571581840515 + }, + { + "step": 928, + "loss": 0.41743016242980957, + "error": 0.21875, + "gradient_norm": 0.05238872766494751, + "elapsed": 315.24156188964844 + }, + { + "step": 944, + "loss": 0.5757850408554077, + "error": 0.3173828125, + "gradient_norm": 0.05837905779480934, + "elapsed": 319.78475165367126 + }, + { + "step": 960, + "loss": 0.40727972984313965, + "error": 0.197265625, + "gradient_norm": 0.059294261038303375, + "elapsed": 324.2090265750885 + }, + { + "step": 976, + "loss": 0.32715001702308655, + "error": 0.1533203125, + "gradient_norm": 0.11543179303407669, + "elapsed": 328.6462152004242 + }, + { + "step": 992, + "loss": 0.5578742623329163, + "error": 0.314453125, + "gradient_norm": 0.06282714009284973, + "elapsed": 333.0712504386902 + }, + { + "step": 1008, + "loss": 0.5052692294120789, + "error": 0.265625, + "gradient_norm": 0.04039420187473297, + "elapsed": 337.5182821750641 + }, + { + "step": 1024, + "loss": 0.18790806829929352, + "error": 0.08203125, + "gradient_norm": 0.028905188664793968, + "elapsed": 342.08340406417847 + }, + { + "step": 1040, + "loss": 0.6317684650421143, + "error": 0.3681640625, + "gradient_norm": 0.03441835194826126, + "elapsed": 358.8279616832733 + }, + { + "step": 1056, + "loss": 0.40474164485931396, + "error": 0.2021484375, + "gradient_norm": 0.036449309438467026, + "elapsed": 363.30218267440796 + }, + { + "step": 1072, + "loss": 0.518299400806427, + "error": 0.2666015625, + "gradient_norm": 0.0886964276432991, + "elapsed": 367.87997555732727 + }, + { + "step": 1088, + "loss": 0.2522922158241272, + "error": 0.099609375, + "gradient_norm": 0.07553310692310333, + "elapsed": 372.4414882659912 + }, + { + "step": 1104, + "loss": 0.6214810609817505, + "error": 0.3701171875, + "gradient_norm": 0.10188957303762436, + "elapsed": 376.9120502471924 + }, + { + "step": 1120, + "loss": 0.6307054162025452, + "error": 0.3720703125, + "gradient_norm": 0.07353860139846802, + "elapsed": 381.3824534416199 + }, + { + "step": 1136, + "loss": 0.5259381532669067, + "error": 0.2763671875, + "gradient_norm": 0.05779678374528885, + "elapsed": 385.8413143157959 + }, + { + "step": 1152, + "loss": 0.4995541572570801, + "error": 0.259765625, + "gradient_norm": 0.046648140996694565, + "elapsed": 390.28326058387756 + }, + { + "step": 1168, + "loss": 0.6075694561004639, + "error": 0.3701171875, + "gradient_norm": 0.10612073540687561, + "elapsed": 394.8162364959717 + }, + { + "step": 1184, + "loss": 0.2105136513710022, + "error": 0.080078125, + "gradient_norm": 0.0716402605175972, + "elapsed": 399.2960283756256 + }, + { + "step": 1200, + "loss": 0.6371631026268005, + "error": 0.3857421875, + "gradient_norm": 0.0549108125269413, + "elapsed": 403.7899103164673 + }, + { + "step": 1216, + "loss": 0.5450670719146729, + "error": 0.2939453125, + "gradient_norm": 0.11688558012247086, + "elapsed": 408.34677600860596 + }, + { + "step": 1232, + "loss": 0.035783201456069946, + "error": 0.01171875, + "gradient_norm": 0.02951689623296261, + "elapsed": 412.8558337688446 + }, + { + "step": 1248, + "loss": 0.5582903623580933, + "error": 0.3046875, + "gradient_norm": 0.055107031017541885, + "elapsed": 417.29854226112366 + }, + { + "step": 1264, + "loss": 0.5154441595077515, + "error": 0.27734375, + "gradient_norm": 0.04474929720163345, + "elapsed": 421.7792055606842 + }, + { + "step": 1280, + "loss": 0.35227546095848083, + "error": 0.16015625, + "gradient_norm": 0.05024837702512741, + "elapsed": 426.54427456855774 + }, + { + "step": 1296, + "loss": 0.19417589902877808, + "error": 0.0830078125, + "gradient_norm": 0.026926057413220406, + "elapsed": 431.320588350296 + }, + { + "step": 1312, + "loss": 0.4768218398094177, + "error": 0.248046875, + "gradient_norm": 0.15099607408046722, + "elapsed": 435.96817326545715 + }, + { + "step": 1328, + "loss": 0.48580923676490784, + "error": 0.2509765625, + "gradient_norm": 0.08925126492977142, + "elapsed": 440.64917039871216 + }, + { + "step": 1344, + "loss": 0.42041274905204773, + "error": 0.1982421875, + "gradient_norm": 0.08321093022823334, + "elapsed": 445.34370946884155 + }, + { + "step": 1360, + "loss": 0.06403929740190506, + "error": 0.0185546875, + "gradient_norm": 0.03817005455493927, + "elapsed": 449.98669385910034 + }, + { + "step": 1376, + "loss": 0.463126003742218, + "error": 0.2275390625, + "gradient_norm": 0.08894515782594681, + "elapsed": 454.6478977203369 + }, + { + "step": 1392, + "loss": 0.5995306968688965, + "error": 0.373046875, + "gradient_norm": 0.06733685731887817, + "elapsed": 459.35924530029297 + }, + { + "step": 1408, + "loss": 0.49053263664245605, + "error": 0.25, + "gradient_norm": 0.10475508868694305, + "elapsed": 464.100093126297 + }, + { + "step": 1424, + "loss": 0.6220744848251343, + "error": 0.3818359375, + "gradient_norm": 0.03653963655233383, + "elapsed": 468.89601135253906 + }, + { + "step": 1440, + "loss": 0.39706122875213623, + "error": 0.2021484375, + "gradient_norm": 0.04344598576426506, + "elapsed": 474.03999519348145 + }, + { + "step": 1456, + "loss": 0.5386708974838257, + "error": 0.3095703125, + "gradient_norm": 0.12589037418365479, + "elapsed": 478.8600504398346 + }, + { + "step": 1472, + "loss": 0.49776726961135864, + "error": 0.271484375, + "gradient_norm": 0.058137863874435425, + "elapsed": 483.5920066833496 + }, + { + "step": 1488, + "loss": 0.4757428765296936, + "error": 0.2412109375, + "gradient_norm": 0.050453316420316696, + "elapsed": 488.4611999988556 + }, + { + "step": 1504, + "loss": 0.5694847702980042, + "error": 0.337890625, + "gradient_norm": 0.052419569343328476, + "elapsed": 493.26151037216187 + }, + { + "step": 1520, + "loss": 0.5997745990753174, + "error": 0.3603515625, + "gradient_norm": 0.04338108375668526, + "elapsed": 498.0421245098114 + }, + { + "step": 1536, + "loss": 0.6195274591445923, + "error": 0.3876953125, + "gradient_norm": 0.04848463833332062, + "elapsed": 502.8808298110962 + }, + { + "step": 1552, + "loss": 0.46315908432006836, + "error": 0.2353515625, + "gradient_norm": 0.06380566209554672, + "elapsed": 507.5519721508026 + }, + { + "step": 1568, + "loss": 0.605262041091919, + "error": 0.36328125, + "gradient_norm": 0.05077619478106499, + "elapsed": 512.457685470581 + }, + { + "step": 1584, + "loss": 0.48782041668891907, + "error": 0.232421875, + "gradient_norm": 0.09017211943864822, + "elapsed": 517.2960062026978 + }, + { + "step": 1600, + "loss": 0.3881351947784424, + "error": 0.1875, + "gradient_norm": 0.07205695658922195, + "elapsed": 522.0911631584167 + }, + { + "step": 1616, + "loss": 0.4966873526573181, + "error": 0.24609375, + "gradient_norm": 0.0582038015127182, + "elapsed": 526.8861901760101 + }, + { + "step": 1632, + "loss": 0.5844199657440186, + "error": 0.33203125, + "gradient_norm": 0.05101500824093819, + "elapsed": 531.6640138626099 + }, + { + "step": 1648, + "loss": 0.31010180711746216, + "error": 0.1318359375, + "gradient_norm": 0.053135693073272705, + "elapsed": 536.4960391521454 + }, + { + "step": 1664, + "loss": 0.6174807548522949, + "error": 0.3779296875, + "gradient_norm": 0.04161194711923599, + "elapsed": 541.2560484409332 + }, + { + "step": 1680, + "loss": 0.18213607370853424, + "error": 0.0751953125, + "gradient_norm": 0.07171957194805145, + "elapsed": 546.0000085830688 + }, + { + "step": 1696, + "loss": 0.5445692539215088, + "error": 0.2998046875, + "gradient_norm": 0.054499462246894836, + "elapsed": 551.1221191883087 + }, + { + "step": 1712, + "loss": 0.05744167044758797, + "error": 0.017578125, + "gradient_norm": 0.013108699582517147, + "elapsed": 556.5286149978638 + }, + { + "step": 1728, + "loss": 0.6381571292877197, + "error": 0.3896484375, + "gradient_norm": 0.05157556012272835, + "elapsed": 561.8000066280365 + }, + { + "step": 1744, + "loss": 0.5301004648208618, + "error": 0.28125, + "gradient_norm": 0.04218568280339241, + "elapsed": 567.2760035991669 + }, + { + "step": 1760, + "loss": 0.5275102257728577, + "error": 0.26953125, + "gradient_norm": 0.06798839569091797, + "elapsed": 572.5601994991302 + }, + { + "step": 1776, + "loss": 0.6443773508071899, + "error": 0.4091796875, + "gradient_norm": 0.07035460323095322, + "elapsed": 577.9789206981659 + }, + { + "step": 1792, + "loss": 0.6012362241744995, + "error": 0.337890625, + "gradient_norm": 0.05189951881766319, + "elapsed": 583.028017282486 + }, + { + "step": 1808, + "loss": 0.2939091920852661, + "error": 0.12109375, + "gradient_norm": 0.05555355176329613, + "elapsed": 588.0501506328583 + }, + { + "step": 1824, + "loss": 0.2059091478586197, + "error": 0.08984375, + "gradient_norm": 0.045679714530706406, + "elapsed": 593.2120039463043 + }, + { + "step": 1840, + "loss": 0.6289581060409546, + "error": 0.349609375, + "gradient_norm": 0.04742642492055893, + "elapsed": 598.7767763137817 + }, + { + "step": 1856, + "loss": 0.5532636642456055, + "error": 0.294921875, + "gradient_norm": 0.05997413396835327, + "elapsed": 604.0475382804871 + }, + { + "step": 1872, + "loss": 0.45995670557022095, + "error": 0.228515625, + "gradient_norm": 0.05674462765455246, + "elapsed": 609.292379617691 + }, + { + "step": 1888, + "loss": 0.6178656816482544, + "error": 0.359375, + "gradient_norm": 0.08857566863298416, + "elapsed": 614.5639882087708 + }, + { + "step": 1904, + "loss": 0.5531284213066101, + "error": 0.287109375, + "gradient_norm": 0.10257937759160995, + "elapsed": 619.5600035190582 + }, + { + "step": 1920, + "loss": 0.04184349626302719, + "error": 0.013671875, + "gradient_norm": 0.04087059944868088, + "elapsed": 624.6679775714874 + }, + { + "step": 1936, + "loss": 0.5924860239028931, + "error": 0.3505859375, + "gradient_norm": 0.036822713911533356, + "elapsed": 629.936680316925 + }, + { + "step": 1952, + "loss": 0.46996980905532837, + "error": 0.2421875, + "gradient_norm": 0.034442272037267685, + "elapsed": 635.1109762191772 + }, + { + "step": 1968, + "loss": 0.17859068512916565, + "error": 0.0712890625, + "gradient_norm": 0.03440066799521446, + "elapsed": 640.32000207901 + }, + { + "step": 1984, + "loss": 0.6192275285720825, + "error": 0.3701171875, + "gradient_norm": 0.04386439174413681, + "elapsed": 645.6040184497833 + }, + { + "step": 2000, + "loss": 0.6160917282104492, + "error": 0.35546875, + "gradient_norm": 0.06268990784883499, + "elapsed": 650.7723731994629 + }, + { + "step": 2016, + "loss": 0.6343611478805542, + "error": 0.388671875, + "gradient_norm": 0.04243326932191849, + "elapsed": 655.972663640976 + }, + { + "step": 2032, + "loss": 0.062292590737342834, + "error": 0.021484375, + "gradient_norm": 0.016680095344781876, + "elapsed": 660.8079733848572 + }, + { + "step": 2048, + "loss": 0.5316072702407837, + "error": 0.26953125, + "gradient_norm": 0.057860780507326126, + "elapsed": 665.5760209560394 + }, + { + "step": 2064, + "loss": 0.605312705039978, + "error": 0.3623046875, + "gradient_norm": 0.04028146713972092, + "elapsed": 682.7294294834137 + }, + { + "step": 2080, + "loss": 0.56633460521698, + "error": 0.3330078125, + "gradient_norm": 0.09528280049562454, + "elapsed": 687.4644649028778 + }, + { + "step": 2096, + "loss": 0.3905397057533264, + "error": 0.1943359375, + "gradient_norm": 0.049456462264060974, + "elapsed": 692.1492264270782 + }, + { + "step": 2112, + "loss": 0.28124868869781494, + "error": 0.1259765625, + "gradient_norm": 0.059239838272333145, + "elapsed": 696.8701393604279 + }, + { + "step": 2128, + "loss": 0.6364338994026184, + "error": 0.392578125, + "gradient_norm": 0.08667811006307602, + "elapsed": 701.683988571167 + }, + { + "step": 2144, + "loss": 0.20683243870735168, + "error": 0.07421875, + "gradient_norm": 0.1100710779428482, + "elapsed": 706.4000360965729 + }, + { + "step": 2160, + "loss": 0.5912737250328064, + "error": 0.341796875, + "gradient_norm": 0.05641854554414749, + "elapsed": 711.2359964847565 + }, + { + "step": 2176, + "loss": 0.27793264389038086, + "error": 0.12109375, + "gradient_norm": 0.0893034040927887, + "elapsed": 715.9508004188538 + }, + { + "step": 2192, + "loss": 0.6474133133888245, + "error": 0.4072265625, + "gradient_norm": 0.06980258971452713, + "elapsed": 720.651974439621 + }, + { + "step": 2208, + "loss": 0.5961858630180359, + "error": 0.35546875, + "gradient_norm": 0.06530112773180008, + "elapsed": 725.496098279953 + }, + { + "step": 2224, + "loss": 0.47581571340560913, + "error": 0.263671875, + "gradient_norm": 0.04470043256878853, + "elapsed": 730.2880010604858 + }, + { + "step": 2240, + "loss": 0.577988862991333, + "error": 0.318359375, + "gradient_norm": 0.07201159745454788, + "elapsed": 735.006133556366 + }, + { + "step": 2256, + "loss": 0.28444671630859375, + "error": 0.1181640625, + "gradient_norm": 0.048656050115823746, + "elapsed": 739.6868116855621 + }, + { + "step": 2272, + "loss": 0.2776409089565277, + "error": 0.1201171875, + "gradient_norm": 0.05783981829881668, + "elapsed": 744.3517308235168 + }, + { + "step": 2288, + "loss": 0.621599555015564, + "error": 0.37109375, + "gradient_norm": 0.09731200337409973, + "elapsed": 749.0351710319519 + }, + { + "step": 2304, + "loss": 0.3333754539489746, + "error": 0.1513671875, + "gradient_norm": 0.07069239765405655, + "elapsed": 753.7588081359863 + }, + { + "step": 2320, + "loss": 0.4687051773071289, + "error": 0.2490234375, + "gradient_norm": 0.044891707599163055, + "elapsed": 758.4588432312012 + }, + { + "step": 2336, + "loss": 0.19801637530326843, + "error": 0.078125, + "gradient_norm": 0.10036595165729523, + "elapsed": 763.256409406662 + }, + { + "step": 2352, + "loss": 0.6186277866363525, + "error": 0.388671875, + "gradient_norm": 0.09069584310054779, + "elapsed": 767.9986386299133 + }, + { + "step": 2368, + "loss": 0.6177258491516113, + "error": 0.373046875, + "gradient_norm": 0.049019571393728256, + "elapsed": 772.730831861496 + }, + { + "step": 2384, + "loss": 0.17707547545433044, + "error": 0.0673828125, + "gradient_norm": 0.045190781354904175, + "elapsed": 777.4072704315186 + }, + { + "step": 2400, + "loss": 0.20144733786582947, + "error": 0.08203125, + "gradient_norm": 0.04537162929773331, + "elapsed": 782.0841658115387 + }, + { + "step": 2416, + "loss": 0.6151775121688843, + "error": 0.365234375, + "gradient_norm": 0.050534047186374664, + "elapsed": 786.762966632843 + }, + { + "step": 2432, + "loss": 0.5533859133720398, + "error": 0.314453125, + "gradient_norm": 0.06006559729576111, + "elapsed": 791.4656012058258 + }, + { + "step": 2448, + "loss": 0.5329082012176514, + "error": 0.2880859375, + "gradient_norm": 0.04018115997314453, + "elapsed": 796.1704161167145 + }, + { + "step": 2464, + "loss": 0.6338047981262207, + "error": 0.4140625, + "gradient_norm": 0.06069163978099823, + "elapsed": 800.9180119037628 + }, + { + "step": 2480, + "loss": 0.1603008508682251, + "error": 0.0673828125, + "gradient_norm": 0.040350593626499176, + "elapsed": 805.6127603054047 + }, + { + "step": 2496, + "loss": 0.505940318107605, + "error": 0.2568359375, + "gradient_norm": 0.05209952965378761, + "elapsed": 810.3740313053131 + }, + { + "step": 2512, + "loss": 0.5528728365898132, + "error": 0.298828125, + "gradient_norm": 0.11757992953062057, + "elapsed": 815.1708807945251 + }, + { + "step": 2528, + "loss": 0.5028313994407654, + "error": 0.2666015625, + "gradient_norm": 0.08823780715465546, + "elapsed": 819.8585045337677 + }, + { + "step": 2544, + "loss": 0.5002262592315674, + "error": 0.2783203125, + "gradient_norm": 0.04888603836297989, + "elapsed": 824.5714073181152 + }, + { + "step": 2560, + "loss": 0.6007894277572632, + "error": 0.328125, + "gradient_norm": 0.05186954140663147, + "elapsed": 829.3080432415009 + }, + { + "step": 2576, + "loss": 0.18641480803489685, + "error": 0.076171875, + "gradient_norm": 0.03799928352236748, + "elapsed": 834.044020652771 + }, + { + "step": 2592, + "loss": 0.3050769865512848, + "error": 0.1396484375, + "gradient_norm": 0.10119257122278214, + "elapsed": 838.8401296138763 + }, + { + "step": 2608, + "loss": 0.6063439846038818, + "error": 0.361328125, + "gradient_norm": 0.04979367554187775, + "elapsed": 844.3572654724121 + }, + { + "step": 2624, + "loss": 0.5751967430114746, + "error": 0.3369140625, + "gradient_norm": 0.04269539937376976, + "elapsed": 849.0660374164581 + }, + { + "step": 2640, + "loss": 0.3902108669281006, + "error": 0.193359375, + "gradient_norm": 0.10029696673154831, + "elapsed": 853.8638062477112 + }, + { + "step": 2656, + "loss": 0.15081660449504852, + "error": 0.0625, + "gradient_norm": 0.0303852129727602, + "elapsed": 858.9793758392334 + }, + { + "step": 2672, + "loss": 0.6503090858459473, + "error": 0.400390625, + "gradient_norm": 0.12611964344978333, + "elapsed": 863.9151141643524 + }, + { + "step": 2688, + "loss": 0.5587317943572998, + "error": 0.31640625, + "gradient_norm": 0.10028114914894104, + "elapsed": 868.7600305080414 + }, + { + "step": 2704, + "loss": 0.4399867355823517, + "error": 0.21484375, + "gradient_norm": 0.06889455020427704, + "elapsed": 873.4544236660004 + }, + { + "step": 2720, + "loss": 0.5865127444267273, + "error": 0.337890625, + "gradient_norm": 0.03671631962060928, + "elapsed": 878.0982644557953 + }, + { + "step": 2736, + "loss": 0.6078637838363647, + "error": 0.3701171875, + "gradient_norm": 0.04679318517446518, + "elapsed": 883.0424642562866 + }, + { + "step": 2752, + "loss": 0.5825340151786804, + "error": 0.337890625, + "gradient_norm": 0.05619681254029274, + "elapsed": 887.908124923706 + }, + { + "step": 2768, + "loss": 0.5970422029495239, + "error": 0.3369140625, + "gradient_norm": 0.041302867233753204, + "elapsed": 892.6760206222534 + }, + { + "step": 2784, + "loss": 0.3870226740837097, + "error": 0.1826171875, + "gradient_norm": 0.05731065198779106, + "elapsed": 897.6246056556702 + }, + { + "step": 2800, + "loss": 0.38130277395248413, + "error": 0.1943359375, + "gradient_norm": 0.059244755655527115, + "elapsed": 902.3360238075256 + }, + { + "step": 2816, + "loss": 0.2617901563644409, + "error": 0.1064453125, + "gradient_norm": 0.041736964136362076, + "elapsed": 907.1600468158722 + }, + { + "step": 2832, + "loss": 0.5819337368011475, + "error": 0.314453125, + "gradient_norm": 0.04097156226634979, + "elapsed": 912.0244295597076 + }, + { + "step": 2848, + "loss": 0.41393283009529114, + "error": 0.2001953125, + "gradient_norm": 0.10456771403551102, + "elapsed": 916.8225846290588 + }, + { + "step": 2864, + "loss": 0.5019145011901855, + "error": 0.2548828125, + "gradient_norm": 0.04843736067414284, + "elapsed": 921.538754940033 + }, + { + "step": 2880, + "loss": 0.04561338573694229, + "error": 0.0146484375, + "gradient_norm": 0.025407327339053154, + "elapsed": 926.2588667869568 + }, + { + "step": 2896, + "loss": 0.4338858723640442, + "error": 0.205078125, + "gradient_norm": 0.09900517761707306, + "elapsed": 930.9781975746155 + }, + { + "step": 2912, + "loss": 0.33922863006591797, + "error": 0.162109375, + "gradient_norm": 0.10189604014158249, + "elapsed": 935.6816267967224 + }, + { + "step": 2928, + "loss": 0.5294322967529297, + "error": 0.2822265625, + "gradient_norm": 0.09060791879892349, + "elapsed": 940.4373068809509 + }, + { + "step": 2944, + "loss": 0.037007369101047516, + "error": 0.01171875, + "gradient_norm": 0.05506489425897598, + "elapsed": 945.1270468235016 + }, + { + "step": 2960, + "loss": 0.6096771359443665, + "error": 0.349609375, + "gradient_norm": 0.04987221211194992, + "elapsed": 949.8300130367279 + }, + { + "step": 2976, + "loss": 0.6157823801040649, + "error": 0.373046875, + "gradient_norm": 0.03614233434200287, + "elapsed": 954.5701997280121 + }, + { + "step": 2992, + "loss": 0.1978239268064499, + "error": 0.080078125, + "gradient_norm": 0.05847112461924553, + "elapsed": 959.2756471633911 + }, + { + "step": 3008, + "loss": 0.5237340927124023, + "error": 0.2841796875, + "gradient_norm": 0.06993591040372849, + "elapsed": 963.9875864982605 + }, + { + "step": 3024, + "loss": 0.4559935927391052, + "error": 0.2373046875, + "gradient_norm": 0.05698448419570923, + "elapsed": 968.7997305393219 + }, + { + "step": 3040, + "loss": 0.5025208592414856, + "error": 0.259765625, + "gradient_norm": 0.14909739792346954, + "elapsed": 973.6042547225952 + }, + { + "step": 3056, + "loss": 0.3223109245300293, + "error": 0.1416015625, + "gradient_norm": 0.032974764704704285, + "elapsed": 978.4760546684265 + }, + { + "step": 3072, + "loss": 0.06682582199573517, + "error": 0.021484375, + "gradient_norm": 0.04433188587427139, + "elapsed": 983.2894048690796 + }, + { + "step": 3088, + "loss": 0.5919550061225891, + "error": 0.34765625, + "gradient_norm": 0.06721373647451401, + "elapsed": 1000.9520287513733 + }, + { + "step": 3104, + "loss": 0.5988063812255859, + "error": 0.3642578125, + "gradient_norm": 0.05654948577284813, + "elapsed": 1005.7442932128906 + }, + { + "step": 3120, + "loss": 0.4922299385070801, + "error": 0.2470703125, + "gradient_norm": 0.07545466721057892, + "elapsed": 1010.4616096019745 + }, + { + "step": 3136, + "loss": 0.4533671736717224, + "error": 0.236328125, + "gradient_norm": 0.06288722902536392, + "elapsed": 1015.3559956550598 + }, + { + "step": 3152, + "loss": 0.5070517063140869, + "error": 0.2666015625, + "gradient_norm": 0.07274917513132095, + "elapsed": 1020.0764343738556 + }, + { + "step": 3168, + "loss": 0.5999464988708496, + "error": 0.3408203125, + "gradient_norm": 0.05777016654610634, + "elapsed": 1024.9410600662231 + }, + { + "step": 3184, + "loss": 0.5758363008499146, + "error": 0.3427734375, + "gradient_norm": 0.051027461886405945, + "elapsed": 1029.7082171440125 + }, + { + "step": 3200, + "loss": 0.05016190931200981, + "error": 0.017578125, + "gradient_norm": 0.009175656363368034, + "elapsed": 1034.3982915878296 + }, + { + "step": 3216, + "loss": 0.5471057295799255, + "error": 0.318359375, + "gradient_norm": 0.07572721689939499, + "elapsed": 1039.117841243744 + }, + { + "step": 3232, + "loss": 0.4141446352005005, + "error": 0.193359375, + "gradient_norm": 0.10056859254837036, + "elapsed": 1043.880026102066 + }, + { + "step": 3248, + "loss": 0.5812438726425171, + "error": 0.3212890625, + "gradient_norm": 0.05781616270542145, + "elapsed": 1048.6406455039978 + }, + { + "step": 3264, + "loss": 0.19184701144695282, + "error": 0.078125, + "gradient_norm": 0.05367236211895943, + "elapsed": 1053.5672237873077 + }, + { + "step": 3280, + "loss": 0.5420833826065063, + "error": 0.28515625, + "gradient_norm": 0.052405405789613724, + "elapsed": 1058.3841104507446 + }, + { + "step": 3296, + "loss": 0.4419598877429962, + "error": 0.2177734375, + "gradient_norm": 0.05814693495631218, + "elapsed": 1063.1880333423615 + }, + { + "step": 3312, + "loss": 0.4525642991065979, + "error": 0.208984375, + "gradient_norm": 0.1061021164059639, + "elapsed": 1068.1370933055878 + }, + { + "step": 3328, + "loss": 0.32664671540260315, + "error": 0.154296875, + "gradient_norm": 0.05649850144982338, + "elapsed": 1073.1963467597961 + }, + { + "step": 3344, + "loss": 0.2655770182609558, + "error": 0.1220703125, + "gradient_norm": 0.04070372134447098, + "elapsed": 1078.2698318958282 + }, + { + "step": 3360, + "loss": 0.5894330739974976, + "error": 0.3544921875, + "gradient_norm": 0.0643400028347969, + "elapsed": 1083.0184152126312 + }, + { + "step": 3376, + "loss": 0.6118791103363037, + "error": 0.361328125, + "gradient_norm": 0.08537904173135757, + "elapsed": 1087.834038734436 + }, + { + "step": 3392, + "loss": 0.40694907307624817, + "error": 0.19921875, + "gradient_norm": 0.11411692947149277, + "elapsed": 1092.8119947910309 + }, + { + "step": 3408, + "loss": 0.04629015550017357, + "error": 0.0146484375, + "gradient_norm": 0.017204072326421738, + "elapsed": 1097.5751783847809 + }, + { + "step": 3424, + "loss": 0.20639702677726746, + "error": 0.0849609375, + "gradient_norm": 0.04801144450902939, + "elapsed": 1102.2970931529999 + }, + { + "step": 3440, + "loss": 0.6051071286201477, + "error": 0.33984375, + "gradient_norm": 0.045392412692308426, + "elapsed": 1107.1080610752106 + }, + { + "step": 3456, + "loss": 0.6553700566291809, + "error": 0.40625, + "gradient_norm": 0.05593863129615784, + "elapsed": 1111.8409752845764 + }, + { + "step": 3472, + "loss": 0.591402530670166, + "error": 0.3515625, + "gradient_norm": 0.051181379705667496, + "elapsed": 1116.5800333023071 + }, + { + "step": 3488, + "loss": 0.30494624376296997, + "error": 0.12109375, + "gradient_norm": 0.05175542086362839, + "elapsed": 1121.276373386383 + }, + { + "step": 3504, + "loss": 0.5065370798110962, + "error": 0.279296875, + "gradient_norm": 0.10419930517673492, + "elapsed": 1125.9883344173431 + }, + { + "step": 3520, + "loss": 0.3915700614452362, + "error": 0.1953125, + "gradient_norm": 0.060416825115680695, + "elapsed": 1130.7958455085754 + }, + { + "step": 3536, + "loss": 0.624374270439148, + "error": 0.3759765625, + "gradient_norm": 0.06069556251168251, + "elapsed": 1135.5360939502716 + }, + { + "step": 3552, + "loss": 0.5830206274986267, + "error": 0.3359375, + "gradient_norm": 0.046013280749320984, + "elapsed": 1140.312029838562 + }, + { + "step": 3568, + "loss": 0.4201379716396332, + "error": 0.2119140625, + "gradient_norm": 0.06909621506929398, + "elapsed": 1145.0904593467712 + }, + { + "step": 3584, + "loss": 0.28215405344963074, + "error": 0.1181640625, + "gradient_norm": 0.07625982910394669, + "elapsed": 1149.8156151771545 + }, + { + "step": 3600, + "loss": 0.5229164361953735, + "error": 0.275390625, + "gradient_norm": 0.055048178881406784, + "elapsed": 1154.5280592441559 + }, + { + "step": 3616, + "loss": 0.47238075733184814, + "error": 0.2314453125, + "gradient_norm": 0.06473162025213242, + "elapsed": 1159.2720873355865 + }, + { + "step": 3632, + "loss": 0.46245503425598145, + "error": 0.228515625, + "gradient_norm": 0.07382887601852417, + "elapsed": 1164.0119998455048 + }, + { + "step": 3648, + "loss": 0.37509745359420776, + "error": 0.171875, + "gradient_norm": 0.051260266453027725, + "elapsed": 1168.7440350055695 + }, + { + "step": 3664, + "loss": 0.1948484629392624, + "error": 0.080078125, + "gradient_norm": 0.059623416513204575, + "elapsed": 1173.3906588554382 + }, + { + "step": 3680, + "loss": 0.5552756786346436, + "error": 0.3115234375, + "gradient_norm": 0.08073585480451584, + "elapsed": 1178.0645008087158 + }, + { + "step": 3696, + "loss": 0.6405904293060303, + "error": 0.39453125, + "gradient_norm": 0.05899551138281822, + "elapsed": 1182.730489730835 + }, + { + "step": 3712, + "loss": 0.2767012119293213, + "error": 0.119140625, + "gradient_norm": 0.06593579798936844, + "elapsed": 1187.377315044403 + }, + { + "step": 3728, + "loss": 0.315812885761261, + "error": 0.134765625, + "gradient_norm": 0.035905495285987854, + "elapsed": 1192.0582301616669 + }, + { + "step": 3744, + "loss": 0.6033951640129089, + "error": 0.3544921875, + "gradient_norm": 0.05226197466254234, + "elapsed": 1196.7101175785065 + }, + { + "step": 3760, + "loss": 0.5202592611312866, + "error": 0.275390625, + "gradient_norm": 0.06367512047290802, + "elapsed": 1201.3543090820312 + }, + { + "step": 3776, + "loss": 0.24639368057250977, + "error": 0.1083984375, + "gradient_norm": 0.09370873868465424, + "elapsed": 1206.0717165470123 + }, + { + "step": 3792, + "loss": 0.6175658702850342, + "error": 0.375, + "gradient_norm": 0.06221585348248482, + "elapsed": 1210.754029750824 + }, + { + "step": 3808, + "loss": 0.41153696179389954, + "error": 0.2119140625, + "gradient_norm": 0.05355365574359894, + "elapsed": 1215.4374370574951 + }, + { + "step": 3824, + "loss": 0.28002214431762695, + "error": 0.1123046875, + "gradient_norm": 0.03846330568194389, + "elapsed": 1220.1207013130188 + }, + { + "step": 3840, + "loss": 0.0484195351600647, + "error": 0.013671875, + "gradient_norm": 0.03470242768526077, + "elapsed": 1224.8153104782104 + }, + { + "step": 3856, + "loss": 0.1407160609960556, + "error": 0.0458984375, + "gradient_norm": 0.04061700031161308, + "elapsed": 1229.5512235164642 + }, + { + "step": 3872, + "loss": 0.5881794691085815, + "error": 0.3427734375, + "gradient_norm": 0.062013477087020874, + "elapsed": 1234.3750183582306 + }, + { + "step": 3888, + "loss": 0.17833612859249115, + "error": 0.06640625, + "gradient_norm": 0.038856204599142075, + "elapsed": 1239.110375881195 + }, + { + "step": 3904, + "loss": 0.06211477518081665, + "error": 0.0224609375, + "gradient_norm": 0.02150108851492405, + "elapsed": 1243.800644159317 + }, + { + "step": 3920, + "loss": 0.06039723381400108, + "error": 0.01953125, + "gradient_norm": 0.019367367029190063, + "elapsed": 1248.4831748008728 + }, + { + "step": 3936, + "loss": 0.6010214686393738, + "error": 0.3525390625, + "gradient_norm": 0.051659151911735535, + "elapsed": 1253.1423478126526 + }, + { + "step": 3952, + "loss": 0.5867137312889099, + "error": 0.3388671875, + "gradient_norm": 0.058528851717710495, + "elapsed": 1257.9799931049347 + }, + { + "step": 3968, + "loss": 0.5231834650039673, + "error": 0.2578125, + "gradient_norm": 0.10128334909677505, + "elapsed": 1262.6990082263947 + }, + { + "step": 3984, + "loss": 0.6251651644706726, + "error": 0.353515625, + "gradient_norm": 0.06211795285344124, + "elapsed": 1267.4289934635162 + }, + { + "step": 4000, + "loss": 0.06667037308216095, + "error": 0.01953125, + "gradient_norm": 0.048018258064985275, + "elapsed": 1272.132089138031 + }, + { + "step": 4016, + "loss": 0.5286938548088074, + "error": 0.2744140625, + "gradient_norm": 0.05509360507130623, + "elapsed": 1276.8878977298737 + }, + { + "step": 4032, + "loss": 0.34016552567481995, + "error": 0.1591796875, + "gradient_norm": 0.07597329467535019, + "elapsed": 1281.7364926338196 + }, + { + "step": 4048, + "loss": 0.17750494182109833, + "error": 0.078125, + "gradient_norm": 0.06314503401517868, + "elapsed": 1286.5033600330353 + }, + { + "step": 4064, + "loss": 0.5882893800735474, + "error": 0.34375, + "gradient_norm": 0.10986580699682236, + "elapsed": 1291.1944887638092 + }, + { + "step": 4080, + "loss": 0.4923543930053711, + "error": 0.2568359375, + "gradient_norm": 0.050325747579336166, + "elapsed": 1295.9372322559357 + }, + { + "step": 4096, + "loss": 0.44146978855133057, + "error": 0.2236328125, + "gradient_norm": 0.06535191088914871, + "elapsed": 1300.641023159027 + } + ] + }, + "training_source_snapshot": "training_sources/temporal2", + "selected_checkpoint_steps": [ + "1024", + "2048", + "4096" + ], + "checkpoint_records": { + "1024": { + "step": 1024, + "new_training_shots": 1048576, + "unique_training_rows_seen_in_this_phase": 804757, + "weights": "weights-1024.npz", + "weights_sha256": "0d809362d5afe1dc781f716e3aee1a9bc5a8f75fed6cc0ff6339b9abcf600ada", + "validation": "validation-1024.json", + "complete": true + }, + "2048": { + "step": 2048, + "new_training_shots": 2097152, + "unique_training_rows_seen_in_this_phase": 1293629, + "weights": "weights-2048.npz", + "weights_sha256": "ab1175f9ef7ed52106ce1127b7da91bfc3d91782c0a2fec2f8189f661e3679db", + "validation": "validation-2048.json", + "complete": true + }, + "4096": { + "step": 4096, + "new_training_shots": 4194304, + "unique_training_rows_seen_in_this_phase": 1778773, + "weights": "weights-4096.npz", + "weights_sha256": "5ca716cd5632c9b717bb167d187387483b5485fead55f45b25cc44325d5d18ea", + "validation": "validation-4096.json", + "complete": true + } + }, + "selection": "Minimum full-validation mean failure per group among incumbent and listed session-trained checkpoints; when listed, blend candidates average the recorded small-contextual reference and new probabilities equally", + "blend_reference": "/run-state/workspace/research/context_upgrades/continuation2/predictions", + "history": [ + { + "group": "d3_bX_center_3_5", + "candidates": { + "incumbent": 0.24672475961538465, + "1024": 0.24571814903846154, + "2048": 0.24504206730769232, + "3072": 0.2456129807692308, + "4096": 0.2445763221153846, + "blend-1024": 0.2469501201923077, + "blend-2048": 0.24583834134615387, + "blend-3072": 0.2458984375, + "blend-4096": 0.2456580528846154 + }, + "selected": "4096" + }, + { + "group": "d3_bX_center_5_3", + "candidates": { + "incumbent": 0.2530348557692308, + "1024": 0.2528545673076923, + "2048": 0.25342548076923077, + "3072": 0.25369591346153847, + "4096": 0.25446213942307694, + "blend-1024": 0.2531550480769231, + "blend-2048": 0.2536658653846154, + "blend-3072": 0.25329026442307695, + "blend-4096": 0.2540264423076923 + }, + "selected": "1024" + }, + { + "group": "d3_bX_center_5_7", + "candidates": { + "incumbent": 0.23442007211538465, + "1024": 0.23445012019230768, + "2048": 0.2340895432692308, + "3072": 0.23431490384615383, + "4096": 0.23366887019230773, + "blend-1024": 0.23440504807692308, + "blend-2048": 0.2341496394230769, + "blend-3072": 0.23416466346153844, + "blend-4096": 0.23413461538461536 + }, + "selected": "4096" + }, + { + "group": "d3_bX_center_7_5", + "candidates": { + "incumbent": 0.2392427884615385, + "1024": 0.23949819711538464, + "2048": 0.23907752403846155, + "3072": 0.24014423076923078, + "4096": 0.24064002403846152, + "blend-1024": 0.23916766826923075, + "blend-2048": 0.23886718750000002, + "blend-3072": 0.2392578125, + "blend-4096": 0.23900240384615387 + }, + "selected": "blend-2048" + }, + { + "group": "d3_bZ_center_3_5", + "candidates": { + "incumbent": 0.24630408653846156, + "1024": 0.24649939903846152, + "2048": 0.2460486778846154, + "3072": 0.24523737980769228, + "4096": 0.24463641826923077, + "blend-1024": 0.24615384615384614, + "blend-2048": 0.2456580528846154, + "blend-3072": 0.24583834134615384, + "blend-4096": 0.24576322115384613 + }, + "selected": "4096" + }, + { + "group": "d3_bZ_center_5_3", + "candidates": { + "incumbent": 0.23760516826923078, + "1024": 0.23733473557692308, + "2048": 0.23652343749999996, + "3072": 0.23795072115384613, + "4096": 0.2379807692307692, + "blend-1024": 0.23713942307692307, + "blend-2048": 0.23740985576923077, + "blend-3072": 0.23811598557692307, + "blend-4096": 0.23780048076923077 + }, + "selected": "2048" + }, + { + "group": "d3_bZ_center_5_7", + "candidates": { + "incumbent": 0.2371694711538461, + "1024": 0.23689903846153845, + "2048": 0.2371243990384615, + "3072": 0.2371844951923077, + "4096": 0.23562199519230764, + "blend-1024": 0.23715444711538464, + "blend-2048": 0.23662860576923078, + "blend-3072": 0.23712439903846153, + "blend-4096": 0.23643329326923077 + }, + "selected": "4096" + }, + { + "group": "d3_bZ_center_7_5", + "candidates": { + "incumbent": 0.23342848557692306, + "1024": 0.23353365384615385, + "2048": 0.23429987980769232, + "3072": 0.2335637019230769, + "4096": 0.2329627403846154, + "blend-1024": 0.23350360576923074, + "blend-2048": 0.23383413461538463, + "blend-3072": 0.23357872596153847, + "blend-4096": 0.2333533653846154 + }, + "selected": "4096" + }, + { + "group": "d5_bX_center_5_5", + "candidates": { + "incumbent": 0.2325420673076923 + }, + "selected": "incumbent" + }, + { + "group": "d5_bZ_center_5_5", + "candidates": { + "incumbent": 0.22017728365384615 + }, + "selected": "incumbent" + } + ] + }, + { + "name": "temporal2_swa", + "training_run": { + "initialization": "Uniform averages of the same session-trained temporal trajectory; no external weights", + "optimizer_updates_in_derived_run": 0, + "source_training_provenance": { + "initialization": "Continue from this session's trained checkpoint", + "original_initialization": "Rich network random seed20261030; new 32-channel temporal network random seed20261104; rich parameters retained, new input rows Normal(0,.001)", + "rich_starting_checkpoint": "/run-state/workspace/research/learned_exact/rich1/weights-1024.npz", + "rich_checkpoint_sha256": "04fea2cf8c598cd5587d450b50cdce58aee9a8c770a2c2da57d7a48e3bf3e2a6", + "architecture": "Rich 128-unit MLP plus 32-channel temporal encoder: four residual kernel3 convolutions with dilations1/2/4/8 and channel normalization. Receptive field31 rounds. Encoder sees events, measurements and presence masks. Per-edge 177 input features. Output4*tanh.", + "training": "Uniform condition sampling from all 104 d3 conditions; batch drawn from the supplied training split only", + "training_source_sha256": { + "learned_exact__temporal_train.py": "7d48d2fc7f62d0bec3023b3df1c2ac28537d0417966131ae3a156697a34cda5f", + "learned_exact__temporal_model.py": "76fd01d5ae50f7d0b5790800898e7103ddb86db8f6a2ace883407515add2e186", + "learned_exact__data.py": "6f88582230aec7bbf35170a672ff615cac0cf18c0a690b2983874bb4c02c75e6", + "learned_exact__gradient.py": "ecb6b45698480386fa124fe878db7dbfa246d1969fd720ec26daff9547da2001", + "exact_d3__exact.py": "869dfacb295c419c156d1070fc2afdd6e20d02ac1840e45e72346b2b289f4825" + }, + "runtime_versions": { + "jax": "0.7.2", + "numpy": "2.3.3", + "optax": "0.2.6" + }, + "eligible_training_shots": 2067520, + "unique_training_rows_seen_in_this_phase": 1778773, + "unique_rows_by_condition": { + "surface_code_bX_d3_r01_center_3_5": 18357, + "surface_code_bX_d3_r03_center_3_5": 16816, + "surface_code_bX_d3_r05_center_3_5": 17999, + "surface_code_bX_d3_r07_center_3_5": 15225, + "surface_code_bX_d3_r09_center_3_5": 16132, + "surface_code_bX_d3_r11_center_3_5": 17041, + "surface_code_bX_d3_r13_center_3_5": 18477, + "surface_code_bX_d3_r15_center_3_5": 18214, + "surface_code_bX_d3_r17_center_3_5": 16505, + "surface_code_bX_d3_r19_center_3_5": 17120, + "surface_code_bX_d3_r21_center_3_5": 17563, + "surface_code_bX_d3_r23_center_3_5": 16681, + "surface_code_bX_d3_r25_center_3_5": 18379, + "surface_code_bX_d3_r01_center_5_3": 17450, + "surface_code_bX_d3_r03_center_5_3": 17161, + "surface_code_bX_d3_r05_center_5_3": 15797, + "surface_code_bX_d3_r07_center_5_3": 17800, + "surface_code_bX_d3_r09_center_5_3": 17190, + "surface_code_bX_d3_r11_center_5_3": 15840, + "surface_code_bX_d3_r13_center_5_3": 15178, + "surface_code_bX_d3_r15_center_5_3": 14897, + "surface_code_bX_d3_r17_center_5_3": 18252, + "surface_code_bX_d3_r19_center_5_3": 17083, + "surface_code_bX_d3_r21_center_5_3": 17229, + "surface_code_bX_d3_r23_center_5_3": 14735, + "surface_code_bX_d3_r25_center_5_3": 17949, + "surface_code_bX_d3_r01_center_5_7": 17431, + "surface_code_bX_d3_r03_center_5_7": 16583, + "surface_code_bX_d3_r05_center_5_7": 16891, + "surface_code_bX_d3_r07_center_5_7": 17969, + "surface_code_bX_d3_r09_center_5_7": 17966, + "surface_code_bX_d3_r11_center_5_7": 14424, + "surface_code_bX_d3_r13_center_5_7": 16930, + "surface_code_bX_d3_r15_center_5_7": 15205, + "surface_code_bX_d3_r17_center_5_7": 18252, + "surface_code_bX_d3_r19_center_5_7": 17077, + "surface_code_bX_d3_r21_center_5_7": 16770, + "surface_code_bX_d3_r23_center_5_7": 17308, + "surface_code_bX_d3_r25_center_5_7": 17481, + "surface_code_bX_d3_r01_center_7_5": 16630, + "surface_code_bX_d3_r03_center_7_5": 17439, + "surface_code_bX_d3_r05_center_7_5": 15811, + "surface_code_bX_d3_r07_center_7_5": 16637, + "surface_code_bX_d3_r09_center_7_5": 18306, + "surface_code_bX_d3_r11_center_7_5": 18327, + "surface_code_bX_d3_r13_center_7_5": 17974, + "surface_code_bX_d3_r15_center_7_5": 16106, + "surface_code_bX_d3_r17_center_7_5": 15834, + "surface_code_bX_d3_r19_center_7_5": 17242, + "surface_code_bX_d3_r21_center_7_5": 17889, + "surface_code_bX_d3_r23_center_7_5": 17440, + "surface_code_bX_d3_r25_center_7_5": 17087, + "surface_code_bZ_d3_r01_center_3_5": 16236, + "surface_code_bZ_d3_r03_center_3_5": 17278, + "surface_code_bZ_d3_r05_center_3_5": 16577, + "surface_code_bZ_d3_r07_center_3_5": 17376, + "surface_code_bZ_d3_r09_center_3_5": 16000, + "surface_code_bZ_d3_r11_center_3_5": 15634, + "surface_code_bZ_d3_r13_center_3_5": 14950, + "surface_code_bZ_d3_r15_center_3_5": 16600, + "surface_code_bZ_d3_r17_center_3_5": 15381, + "surface_code_bZ_d3_r19_center_3_5": 16823, + "surface_code_bZ_d3_r21_center_3_5": 18789, + "surface_code_bZ_d3_r23_center_3_5": 15616, + "surface_code_bZ_d3_r25_center_3_5": 17088, + "surface_code_bZ_d3_r01_center_5_3": 17935, + "surface_code_bZ_d3_r03_center_5_3": 16256, + "surface_code_bZ_d3_r05_center_5_3": 17959, + "surface_code_bZ_d3_r07_center_5_3": 18401, + "surface_code_bZ_d3_r09_center_5_3": 16405, + "surface_code_bZ_d3_r11_center_5_3": 17274, + "surface_code_bZ_d3_r13_center_5_3": 18172, + "surface_code_bZ_d3_r15_center_5_3": 17525, + "surface_code_bZ_d3_r17_center_5_3": 18643, + "surface_code_bZ_d3_r19_center_5_3": 17816, + "surface_code_bZ_d3_r21_center_5_3": 17404, + "surface_code_bZ_d3_r23_center_5_3": 17253, + "surface_code_bZ_d3_r25_center_5_3": 17667, + "surface_code_bZ_d3_r01_center_5_7": 16203, + "surface_code_bZ_d3_r03_center_5_7": 17214, + "surface_code_bZ_d3_r05_center_5_7": 16799, + "surface_code_bZ_d3_r07_center_5_7": 17896, + "surface_code_bZ_d3_r09_center_5_7": 16411, + "surface_code_bZ_d3_r11_center_5_7": 17726, + "surface_code_bZ_d3_r13_center_5_7": 16313, + "surface_code_bZ_d3_r15_center_5_7": 17824, + "surface_code_bZ_d3_r17_center_5_7": 15656, + "surface_code_bZ_d3_r19_center_5_7": 17169, + "surface_code_bZ_d3_r21_center_5_7": 17194, + "surface_code_bZ_d3_r23_center_5_7": 16779, + "surface_code_bZ_d3_r25_center_5_7": 16970, + "surface_code_bZ_d3_r01_center_7_5": 16762, + "surface_code_bZ_d3_r03_center_7_5": 17320, + "surface_code_bZ_d3_r05_center_7_5": 17522, + "surface_code_bZ_d3_r07_center_7_5": 17914, + "surface_code_bZ_d3_r09_center_7_5": 18439, + "surface_code_bZ_d3_r11_center_7_5": 18218, + "surface_code_bZ_d3_r13_center_7_5": 17907, + "surface_code_bZ_d3_r15_center_7_5": 17597, + "surface_code_bZ_d3_r17_center_7_5": 18252, + "surface_code_bZ_d3_r19_center_7_5": 18379, + "surface_code_bZ_d3_r21_center_7_5": 16818, + "surface_code_bZ_d3_r23_center_7_5": 18430, + "surface_code_bZ_d3_r25_center_7_5": 17924 + }, + "steps": 4096, + "batch_size": 1024, + "optimizer": "AdamW, weight decay 1e-4, global gradient norm clip 1", + "learning_rate": 0.0005, + "sampling_seed": 20261121, + "optimizer_restored": true, + "rng_restored": true, + "sampling_state_source": "/run-state/workspace/research/learned_exact/temporal1/rng-2048.json", + "session_trained_starting_checkpoint": "/run-state/workspace/research/learned_exact/temporal1/weights-2048.npz", + "starting_checkpoint_sha256": "26be9e0259b69a5870bf73e80a5a29fcf3519a3ff63e1d219c57a2113d9d34be", + "starting_training_provenance": { + "initialization": "Continue from rich weights trained from random initialization in this session; new temporal parameters randomly initialized now", + "original_initialization": "Rich network random seed20261030; new 32-channel temporal network random seed20261104; rich parameters retained, new input rows Normal(0,.001)", + "rich_starting_checkpoint": "/run-state/workspace/research/learned_exact/rich1/weights-1024.npz", + "rich_checkpoint_sha256": "04fea2cf8c598cd5587d450b50cdce58aee9a8c770a2c2da57d7a48e3bf3e2a6", + "architecture": "Rich 128-unit MLP plus 32-channel temporal encoder: four residual kernel3 convolutions with dilations1/2/4/8 and channel normalization. Receptive field31 rounds. Encoder sees events, measurements and presence masks. Per-edge 177 input features. Output4*tanh.", + "training": "Uniform condition sampling from all 104 d3 conditions; batch drawn from the supplied training split only", + "steps": 2048, + "batch_size": 1024, + "optimizer": "AdamW, weight decay 1e-4, global gradient norm clip 1", + "learning_rate": 0.001, + "sampling_seed": 20261111, + "optimizer_restored": false, + "rng_restored": false, + "session_trained_starting_checkpoint": null, + "starting_checkpoint_sha256": null, + "loss": "Binary conditional logical likelihood computed by exact frontier elimination", + "validation_shots_per_condition": 1024, + "uniform_validation": true, + "uniform_validation_seed": 20261028, + "test_data_used": false, + "log": [ + { + "step": 1, + "loss": 0.6317505836486816, + "error": 0.3681640625, + "gradient_norm": 0.04013459011912346, + "elapsed": 30.971998691558838 + }, + { + "step": 16, + "loss": 0.5091081857681274, + "error": 0.291015625, + "gradient_norm": 0.042228709906339645, + "elapsed": 35.17463397979736 + }, + { + "step": 32, + "loss": 0.626472532749176, + "error": 0.3642578125, + "gradient_norm": 0.05872415751218796, + "elapsed": 39.678136110305786 + }, + { + "step": 48, + "loss": 0.6005369424819946, + "error": 0.3515625, + "gradient_norm": 0.03848014399409294, + "elapsed": 44.16946887969971 + }, + { + "step": 64, + "loss": 0.5523768663406372, + "error": 0.302734375, + "gradient_norm": 0.06031862646341324, + "elapsed": 48.65217089653015 + }, + { + "step": 80, + "loss": 0.3981674611568451, + "error": 0.19921875, + "gradient_norm": 0.0542079322040081, + "elapsed": 53.21601867675781 + }, + { + "step": 96, + "loss": 0.5601426362991333, + "error": 0.2978515625, + "gradient_norm": 0.04770371690392494, + "elapsed": 57.81089663505554 + }, + { + "step": 112, + "loss": 0.5878150463104248, + "error": 0.34765625, + "gradient_norm": 0.10699950158596039, + "elapsed": 62.42190766334534 + }, + { + "step": 128, + "loss": 0.5232458114624023, + "error": 0.2861328125, + "gradient_norm": 0.0911584198474884, + "elapsed": 67.00223755836487 + }, + { + "step": 144, + "loss": 0.6119767427444458, + "error": 0.3623046875, + "gradient_norm": 0.062474437057971954, + "elapsed": 71.54070782661438 + }, + { + "step": 160, + "loss": 0.3037984371185303, + "error": 0.1474609375, + "gradient_norm": 0.05718141421675682, + "elapsed": 76.08167362213135 + }, + { + "step": 176, + "loss": 0.6038273572921753, + "error": 0.3662109375, + "gradient_norm": 0.0437164381146431, + "elapsed": 80.71864247322083 + }, + { + "step": 192, + "loss": 0.3304370641708374, + "error": 0.1572265625, + "gradient_norm": 0.05684761330485344, + "elapsed": 85.54437017440796 + }, + { + "step": 208, + "loss": 0.5785484313964844, + "error": 0.3251953125, + "gradient_norm": 0.09597272425889969, + "elapsed": 91.51522874832153 + }, + { + "step": 224, + "loss": 0.3110499978065491, + "error": 0.13671875, + "gradient_norm": 0.04815748706459999, + "elapsed": 97.1228940486908 + }, + { + "step": 240, + "loss": 0.6213864684104919, + "error": 0.3623046875, + "gradient_norm": 0.0540502592921257, + "elapsed": 102.90286135673523 + }, + { + "step": 256, + "loss": 0.2535272240638733, + "error": 0.1064453125, + "gradient_norm": 0.029962118715047836, + "elapsed": 108.39288640022278 + }, + { + "step": 272, + "loss": 0.6126939058303833, + "error": 0.3671875, + "gradient_norm": 0.06887879222631454, + "elapsed": 113.83897161483765 + }, + { + "step": 288, + "loss": 0.4556676149368286, + "error": 0.2236328125, + "gradient_norm": 0.16127081215381622, + "elapsed": 119.93085813522339 + }, + { + "step": 304, + "loss": 0.4973585605621338, + "error": 0.255859375, + "gradient_norm": 0.08082302659749985, + "elapsed": 125.90891909599304 + }, + { + "step": 320, + "loss": 0.6455868482589722, + "error": 0.419921875, + "gradient_norm": 0.04339660331606865, + "elapsed": 131.20537638664246 + }, + { + "step": 336, + "loss": 0.5343132615089417, + "error": 0.2880859375, + "gradient_norm": 0.07518009096384048, + "elapsed": 136.59086871147156 + }, + { + "step": 352, + "loss": 0.6505346894264221, + "error": 0.4033203125, + "gradient_norm": 0.03800992667675018, + "elapsed": 142.21085906028748 + }, + { + "step": 368, + "loss": 0.4882712960243225, + "error": 0.251953125, + "gradient_norm": 0.08170920610427856, + "elapsed": 146.95903658866882 + }, + { + "step": 384, + "loss": 0.5292021036148071, + "error": 0.296875, + "gradient_norm": 0.08454013615846634, + "elapsed": 151.6385259628296 + }, + { + "step": 400, + "loss": 0.6272899508476257, + "error": 0.3837890625, + "gradient_norm": 0.051436979323625565, + "elapsed": 156.3343904018402 + }, + { + "step": 416, + "loss": 0.052130259573459625, + "error": 0.0166015625, + "gradient_norm": 0.02377190627157688, + "elapsed": 160.92345547676086 + }, + { + "step": 432, + "loss": 0.5256737470626831, + "error": 0.3046875, + "gradient_norm": 0.07986386120319366, + "elapsed": 165.52879118919373 + }, + { + "step": 448, + "loss": 0.15193665027618408, + "error": 0.0576171875, + "gradient_norm": 0.06491660326719284, + "elapsed": 170.14827823638916 + }, + { + "step": 464, + "loss": 0.6418055295944214, + "error": 0.40625, + "gradient_norm": 0.07290885597467422, + "elapsed": 174.64974284172058 + }, + { + "step": 480, + "loss": 0.6055159568786621, + "error": 0.357421875, + "gradient_norm": 0.0795595794916153, + "elapsed": 179.17218685150146 + }, + { + "step": 496, + "loss": 0.6372283697128296, + "error": 0.3916015625, + "gradient_norm": 0.04387903958559036, + "elapsed": 183.77568197250366 + }, + { + "step": 512, + "loss": 0.637977123260498, + "error": 0.408203125, + "gradient_norm": 0.060665905475616455, + "elapsed": 188.31205368041992 + }, + { + "step": 528, + "loss": 0.4668862223625183, + "error": 0.2451171875, + "gradient_norm": 0.08566711097955704, + "elapsed": 206.40719985961914 + }, + { + "step": 544, + "loss": 0.4584413170814514, + "error": 0.244140625, + "gradient_norm": 0.08538200706243515, + "elapsed": 211.02819895744324 + }, + { + "step": 560, + "loss": 0.5615692138671875, + "error": 0.3291015625, + "gradient_norm": 0.043748609721660614, + "elapsed": 215.66470766067505 + }, + { + "step": 576, + "loss": 0.5151895880699158, + "error": 0.2880859375, + "gradient_norm": 0.05164863541722298, + "elapsed": 220.18949556350708 + }, + { + "step": 592, + "loss": 0.5618112087249756, + "error": 0.3291015625, + "gradient_norm": 0.05998719856142998, + "elapsed": 224.7216100692749 + }, + { + "step": 608, + "loss": 0.659294843673706, + "error": 0.431640625, + "gradient_norm": 0.09910348802804947, + "elapsed": 229.26827573776245 + }, + { + "step": 624, + "loss": 0.5895233154296875, + "error": 0.3447265625, + "gradient_norm": 0.045334093272686005, + "elapsed": 233.83731055259705 + }, + { + "step": 640, + "loss": 0.6081801056861877, + "error": 0.3388671875, + "gradient_norm": 0.06578423827886581, + "elapsed": 238.36345624923706 + }, + { + "step": 656, + "loss": 0.5349816083908081, + "error": 0.2939453125, + "gradient_norm": 0.09989562630653381, + "elapsed": 242.95086026191711 + }, + { + "step": 672, + "loss": 0.5871994495391846, + "error": 0.328125, + "gradient_norm": 0.08132346719503403, + "elapsed": 247.67088556289673 + }, + { + "step": 688, + "loss": 0.06012660637497902, + "error": 0.0146484375, + "gradient_norm": 0.012170507572591305, + "elapsed": 252.3202247619629 + }, + { + "step": 704, + "loss": 0.42179757356643677, + "error": 0.21484375, + "gradient_norm": 0.08384513854980469, + "elapsed": 256.91991782188416 + }, + { + "step": 720, + "loss": 0.6111758947372437, + "error": 0.3720703125, + "gradient_norm": 0.06689880788326263, + "elapsed": 261.56407928466797 + }, + { + "step": 736, + "loss": 0.29969727993011475, + "error": 0.1318359375, + "gradient_norm": 0.0743367150425911, + "elapsed": 266.22199630737305 + }, + { + "step": 752, + "loss": 0.051849883049726486, + "error": 0.0166015625, + "gradient_norm": 0.017005126923322678, + "elapsed": 270.8602342605591 + }, + { + "step": 768, + "loss": 0.6178420186042786, + "error": 0.3759765625, + "gradient_norm": 0.027732960879802704, + "elapsed": 275.47888374328613 + }, + { + "step": 784, + "loss": 0.45798996090888977, + "error": 0.228515625, + "gradient_norm": 0.0630083829164505, + "elapsed": 280.1709156036377 + }, + { + "step": 800, + "loss": 0.5104988813400269, + "error": 0.2724609375, + "gradient_norm": 0.041733670979738235, + "elapsed": 286.17937707901 + }, + { + "step": 816, + "loss": 0.6336112022399902, + "error": 0.3837890625, + "gradient_norm": 0.0755191296339035, + "elapsed": 291.7506103515625 + }, + { + "step": 832, + "loss": 0.6260952353477478, + "error": 0.3603515625, + "gradient_norm": 0.0318005345761776, + "elapsed": 297.31094622612 + }, + { + "step": 848, + "loss": 0.5870074033737183, + "error": 0.3525390625, + "gradient_norm": 0.12073405832052231, + "elapsed": 303.11089158058167 + }, + { + "step": 864, + "loss": 0.5125640034675598, + "error": 0.26953125, + "gradient_norm": 0.038650237023830414, + "elapsed": 308.7288725376129 + }, + { + "step": 880, + "loss": 0.19194915890693665, + "error": 0.0703125, + "gradient_norm": 0.061878547072410583, + "elapsed": 314.37042355537415 + }, + { + "step": 896, + "loss": 0.5409250259399414, + "error": 0.2919921875, + "gradient_norm": 0.06288820505142212, + "elapsed": 319.9398190975189 + }, + { + "step": 912, + "loss": 0.6164936423301697, + "error": 0.3701171875, + "gradient_norm": 0.043224163353443146, + "elapsed": 325.361323595047 + }, + { + "step": 928, + "loss": 0.16032151877880096, + "error": 0.0625, + "gradient_norm": 0.030957572162151337, + "elapsed": 331.21752285957336 + }, + { + "step": 944, + "loss": 0.646601676940918, + "error": 0.3818359375, + "gradient_norm": 0.05670839175581932, + "elapsed": 336.7825517654419 + }, + { + "step": 960, + "loss": 0.402952641248703, + "error": 0.1865234375, + "gradient_norm": 0.07500886172056198, + "elapsed": 342.6888346672058 + }, + { + "step": 976, + "loss": 0.5537433624267578, + "error": 0.2939453125, + "gradient_norm": 0.04955969750881195, + "elapsed": 348.5554690361023 + }, + { + "step": 992, + "loss": 0.559626579284668, + "error": 0.294921875, + "gradient_norm": 0.048295993357896805, + "elapsed": 354.3531894683838 + }, + { + "step": 1008, + "loss": 0.5034694671630859, + "error": 0.2705078125, + "gradient_norm": 0.05729879066348076, + "elapsed": 360.0949149131775 + }, + { + "step": 1024, + "loss": 0.3119734525680542, + "error": 0.1259765625, + "gradient_norm": 0.052326612174510956, + "elapsed": 365.7881224155426 + }, + { + "step": 1040, + "loss": 0.35799849033355713, + "error": 0.173828125, + "gradient_norm": 0.03801804035902023, + "elapsed": 386.5749418735504 + }, + { + "step": 1056, + "loss": 0.6178948879241943, + "error": 0.3515625, + "gradient_norm": 0.03620661422610283, + "elapsed": 391.48247838020325 + }, + { + "step": 1072, + "loss": 0.49231401085853577, + "error": 0.24609375, + "gradient_norm": 0.04391559213399887, + "elapsed": 396.08718824386597 + }, + { + "step": 1088, + "loss": 0.4119300842285156, + "error": 0.2001953125, + "gradient_norm": 0.1104700043797493, + "elapsed": 400.5326828956604 + }, + { + "step": 1104, + "loss": 0.4926626682281494, + "error": 0.265625, + "gradient_norm": 0.04246886447072029, + "elapsed": 404.95741271972656 + }, + { + "step": 1120, + "loss": 0.5027930736541748, + "error": 0.2607421875, + "gradient_norm": 0.0547240674495697, + "elapsed": 409.40319633483887 + }, + { + "step": 1136, + "loss": 0.5948058366775513, + "error": 0.3544921875, + "gradient_norm": 0.06810063123703003, + "elapsed": 413.8514006137848 + }, + { + "step": 1152, + "loss": 0.26567256450653076, + "error": 0.125, + "gradient_norm": 0.06689104437828064, + "elapsed": 418.29868721961975 + }, + { + "step": 1168, + "loss": 0.2866836190223694, + "error": 0.1240234375, + "gradient_norm": 0.029536213725805283, + "elapsed": 422.75131845474243 + }, + { + "step": 1184, + "loss": 0.6342021822929382, + "error": 0.4091796875, + "gradient_norm": 0.0704190731048584, + "elapsed": 427.1991722583771 + }, + { + "step": 1200, + "loss": 0.41626787185668945, + "error": 0.212890625, + "gradient_norm": 0.04480795934796333, + "elapsed": 431.6600706577301 + }, + { + "step": 1216, + "loss": 0.28460952639579773, + "error": 0.1337890625, + "gradient_norm": 0.03666983172297478, + "elapsed": 436.14414525032043 + }, + { + "step": 1232, + "loss": 0.044482216238975525, + "error": 0.0146484375, + "gradient_norm": 0.04537617415189743, + "elapsed": 440.6220428943634 + }, + { + "step": 1248, + "loss": 0.42564862966537476, + "error": 0.2119140625, + "gradient_norm": 0.03382417559623718, + "elapsed": 445.06736421585083 + }, + { + "step": 1264, + "loss": 0.27150213718414307, + "error": 0.123046875, + "gradient_norm": 0.033046118915081024, + "elapsed": 449.544029712677 + }, + { + "step": 1280, + "loss": 0.4927375912666321, + "error": 0.255859375, + "gradient_norm": 0.06812550127506256, + "elapsed": 454.07198667526245 + }, + { + "step": 1296, + "loss": 0.5541940927505493, + "error": 0.28125, + "gradient_norm": 0.1435294896364212, + "elapsed": 458.6031415462494 + }, + { + "step": 1312, + "loss": 0.5575842261314392, + "error": 0.2958984375, + "gradient_norm": 0.03811952844262123, + "elapsed": 463.1806228160858 + }, + { + "step": 1328, + "loss": 0.3479428291320801, + "error": 0.1591796875, + "gradient_norm": 0.0709012895822525, + "elapsed": 467.84689688682556 + }, + { + "step": 1344, + "loss": 0.1685580611228943, + "error": 0.0693359375, + "gradient_norm": 0.05423415079712868, + "elapsed": 472.6908576488495 + }, + { + "step": 1360, + "loss": 0.18506410717964172, + "error": 0.0771484375, + "gradient_norm": 0.03418596833944321, + "elapsed": 477.4269769191742 + }, + { + "step": 1376, + "loss": 0.5654555559158325, + "error": 0.3173828125, + "gradient_norm": 0.0685155838727951, + "elapsed": 482.08285188674927 + }, + { + "step": 1392, + "loss": 0.6116407513618469, + "error": 0.3603515625, + "gradient_norm": 0.05198948457837105, + "elapsed": 486.7167499065399 + }, + { + "step": 1408, + "loss": 0.4014682471752167, + "error": 0.19140625, + "gradient_norm": 0.1024075523018837, + "elapsed": 491.4308760166168 + }, + { + "step": 1424, + "loss": 0.051035866141319275, + "error": 0.0166015625, + "gradient_norm": 0.010207361541688442, + "elapsed": 496.1818380355835 + }, + { + "step": 1440, + "loss": 0.4725648760795593, + "error": 0.2412109375, + "gradient_norm": 0.03977378085255623, + "elapsed": 500.8668632507324 + }, + { + "step": 1456, + "loss": 0.5407818555831909, + "error": 0.2939453125, + "gradient_norm": 0.088577501475811, + "elapsed": 505.49274134635925 + }, + { + "step": 1472, + "loss": 0.5655064582824707, + "error": 0.3076171875, + "gradient_norm": 0.04452778398990631, + "elapsed": 510.2188584804535 + }, + { + "step": 1488, + "loss": 0.5799556374549866, + "error": 0.30859375, + "gradient_norm": 0.03976206108927727, + "elapsed": 514.9319434165955 + }, + { + "step": 1504, + "loss": 0.4660354256629944, + "error": 0.25390625, + "gradient_norm": 0.04365506023168564, + "elapsed": 519.5848798751831 + }, + { + "step": 1520, + "loss": 0.5505894422531128, + "error": 0.30859375, + "gradient_norm": 0.057772211730480194, + "elapsed": 524.3388590812683 + }, + { + "step": 1536, + "loss": 0.6251416206359863, + "error": 0.400390625, + "gradient_norm": 0.09649194777011871, + "elapsed": 529.483047246933 + }, + { + "step": 1552, + "loss": 0.05424533039331436, + "error": 0.0185546875, + "gradient_norm": 0.011683990247547626, + "elapsed": 548.1828610897064 + }, + { + "step": 1568, + "loss": 0.33612310886383057, + "error": 0.1611328125, + "gradient_norm": 0.051817383617162704, + "elapsed": 553.4256420135498 + }, + { + "step": 1584, + "loss": 0.045015305280685425, + "error": 0.0166015625, + "gradient_norm": 0.022604886442422867, + "elapsed": 558.6308543682098 + }, + { + "step": 1600, + "loss": 0.2701840102672577, + "error": 0.119140625, + "gradient_norm": 0.02910422720015049, + "elapsed": 563.8571691513062 + }, + { + "step": 1616, + "loss": 0.18982334434986115, + "error": 0.0849609375, + "gradient_norm": 0.025524422526359558, + "elapsed": 568.8628678321838 + }, + { + "step": 1632, + "loss": 0.3950161337852478, + "error": 0.185546875, + "gradient_norm": 0.08419577777385712, + "elapsed": 574.0815451145172 + }, + { + "step": 1648, + "loss": 0.49384528398513794, + "error": 0.255859375, + "gradient_norm": 0.08879344165325165, + "elapsed": 579.1229114532471 + }, + { + "step": 1664, + "loss": 0.5671384930610657, + "error": 0.3115234375, + "gradient_norm": 0.05374513566493988, + "elapsed": 584.114851474762 + }, + { + "step": 1680, + "loss": 0.6192574501037598, + "error": 0.37890625, + "gradient_norm": 0.043836336582899094, + "elapsed": 589.0708522796631 + }, + { + "step": 1696, + "loss": 0.2619469463825226, + "error": 0.1171875, + "gradient_norm": 0.040093280375003815, + "elapsed": 594.2814819812775 + }, + { + "step": 1712, + "loss": 0.33178141713142395, + "error": 0.162109375, + "gradient_norm": 0.04902712255716324, + "elapsed": 599.3068840503693 + }, + { + "step": 1728, + "loss": 0.385281503200531, + "error": 0.171875, + "gradient_norm": 0.03541380167007446, + "elapsed": 604.5308682918549 + }, + { + "step": 1744, + "loss": 0.1628715693950653, + "error": 0.0693359375, + "gradient_norm": 0.06111741065979004, + "elapsed": 609.309522151947 + }, + { + "step": 1760, + "loss": 0.5239119529724121, + "error": 0.2861328125, + "gradient_norm": 0.08513613045215607, + "elapsed": 614.0396001338959 + }, + { + "step": 1776, + "loss": 0.35721707344055176, + "error": 0.150390625, + "gradient_norm": 0.06337940692901611, + "elapsed": 618.6857132911682 + }, + { + "step": 1792, + "loss": 0.5985626578330994, + "error": 0.33203125, + "gradient_norm": 0.035725343972444534, + "elapsed": 623.3352344036102 + }, + { + "step": 1808, + "loss": 0.34676820039749146, + "error": 0.15234375, + "gradient_norm": 0.08163885772228241, + "elapsed": 627.9495220184326 + }, + { + "step": 1824, + "loss": 0.5633711814880371, + "error": 0.3037109375, + "gradient_norm": 0.05938677117228508, + "elapsed": 632.5820379257202 + }, + { + "step": 1840, + "loss": 0.6256523132324219, + "error": 0.384765625, + "gradient_norm": 0.04545137286186218, + "elapsed": 637.205274105072 + }, + { + "step": 1856, + "loss": 0.28091639280319214, + "error": 0.1298828125, + "gradient_norm": 0.04705077037215233, + "elapsed": 641.883561372757 + }, + { + "step": 1872, + "loss": 0.516182541847229, + "error": 0.263671875, + "gradient_norm": 0.08828777819871902, + "elapsed": 646.5188939571381 + }, + { + "step": 1888, + "loss": 0.48386621475219727, + "error": 0.25390625, + "gradient_norm": 0.05322824418544769, + "elapsed": 651.148512840271 + }, + { + "step": 1904, + "loss": 0.6141921281814575, + "error": 0.388671875, + "gradient_norm": 0.050139278173446655, + "elapsed": 655.7796437740326 + }, + { + "step": 1920, + "loss": 0.18002840876579285, + "error": 0.0712890625, + "gradient_norm": 0.04201133921742439, + "elapsed": 660.4064948558807 + }, + { + "step": 1936, + "loss": 0.17531852424144745, + "error": 0.0732421875, + "gradient_norm": 0.024726318195462227, + "elapsed": 664.9991583824158 + }, + { + "step": 1952, + "loss": 0.5088322758674622, + "error": 0.2744140625, + "gradient_norm": 0.04693225398659706, + "elapsed": 669.5544555187225 + }, + { + "step": 1968, + "loss": 0.5684165358543396, + "error": 0.3310546875, + "gradient_norm": 0.031029095873236656, + "elapsed": 674.2354445457458 + }, + { + "step": 1984, + "loss": 0.06459524482488632, + "error": 0.017578125, + "gradient_norm": 0.03600892797112465, + "elapsed": 678.7982559204102 + }, + { + "step": 2000, + "loss": 0.3614455461502075, + "error": 0.1748046875, + "gradient_norm": 0.07060294598340988, + "elapsed": 683.2650325298309 + }, + { + "step": 2016, + "loss": 0.35535523295402527, + "error": 0.166015625, + "gradient_norm": 0.05873403698205948, + "elapsed": 687.7125518321991 + }, + { + "step": 2032, + "loss": 0.5638720989227295, + "error": 0.3232421875, + "gradient_norm": 0.07380504906177521, + "elapsed": 692.1461188793182 + }, + { + "step": 2048, + "loss": 0.5301838517189026, + "error": 0.2919921875, + "gradient_norm": 0.05435395985841751, + "elapsed": 696.6235508918762 + } + ] + }, + "loss": "Binary conditional logical likelihood computed by exact frontier elimination", + "validation_shots_per_condition": 1024, + "uniform_validation": true, + "uniform_validation_seed": 20261028, + "test_data_used": false, + "log": [ + { + "step": 1, + "loss": 0.250907301902771, + "error": 0.1083984375, + "gradient_norm": 0.07171476632356644, + "elapsed": 44.811134576797485 + }, + { + "step": 16, + "loss": 0.5958679914474487, + "error": 0.3662109375, + "gradient_norm": 0.07673005014657974, + "elapsed": 49.90856671333313 + }, + { + "step": 32, + "loss": 0.47648972272872925, + "error": 0.2421875, + "gradient_norm": 0.08561501652002335, + "elapsed": 55.179388761520386 + }, + { + "step": 48, + "loss": 0.06145006790757179, + "error": 0.0234375, + "gradient_norm": 0.01556467730551958, + "elapsed": 61.0339195728302 + }, + { + "step": 64, + "loss": 0.3687053918838501, + "error": 0.1884765625, + "gradient_norm": 0.08752371370792389, + "elapsed": 65.95811891555786 + }, + { + "step": 80, + "loss": 0.6481984853744507, + "error": 0.4140625, + "gradient_norm": 0.05311283841729164, + "elapsed": 70.56021332740784 + }, + { + "step": 96, + "loss": 0.42319929599761963, + "error": 0.2138671875, + "gradient_norm": 0.05047478526830673, + "elapsed": 75.11613631248474 + }, + { + "step": 112, + "loss": 0.47527259588241577, + "error": 0.24609375, + "gradient_norm": 0.038366906344890594, + "elapsed": 79.53446984291077 + }, + { + "step": 128, + "loss": 0.5996723175048828, + "error": 0.3369140625, + "gradient_norm": 0.1213272362947464, + "elapsed": 83.97515749931335 + }, + { + "step": 144, + "loss": 0.04971993714570999, + "error": 0.0146484375, + "gradient_norm": 0.008080735802650452, + "elapsed": 88.44039463996887 + }, + { + "step": 160, + "loss": 0.35900360345840454, + "error": 0.162109375, + "gradient_norm": 0.03359593451023102, + "elapsed": 92.89548206329346 + }, + { + "step": 176, + "loss": 0.5342063903808594, + "error": 0.2978515625, + "gradient_norm": 0.04794691130518913, + "elapsed": 97.35658049583435 + }, + { + "step": 192, + "loss": 0.6300076246261597, + "error": 0.369140625, + "gradient_norm": 0.081769198179245, + "elapsed": 101.81493759155273 + }, + { + "step": 208, + "loss": 0.6191903948783875, + "error": 0.3828125, + "gradient_norm": 0.07145775109529495, + "elapsed": 106.2480263710022 + }, + { + "step": 224, + "loss": 0.5155678391456604, + "error": 0.28515625, + "gradient_norm": 0.06772179156541824, + "elapsed": 110.71284222602844 + }, + { + "step": 240, + "loss": 0.634708046913147, + "error": 0.3857421875, + "gradient_norm": 0.09493093192577362, + "elapsed": 115.14978742599487 + }, + { + "step": 256, + "loss": 0.1840895414352417, + "error": 0.0751953125, + "gradient_norm": 0.025586696341633797, + "elapsed": 119.61202120780945 + }, + { + "step": 272, + "loss": 0.2775103449821472, + "error": 0.12890625, + "gradient_norm": 0.06913147866725922, + "elapsed": 124.02584528923035 + }, + { + "step": 288, + "loss": 0.6163080334663391, + "error": 0.3642578125, + "gradient_norm": 0.05895426496863365, + "elapsed": 128.46512532234192 + }, + { + "step": 304, + "loss": 0.5276986360549927, + "error": 0.287109375, + "gradient_norm": 0.06955187022686005, + "elapsed": 132.89240765571594 + }, + { + "step": 320, + "loss": 0.44859516620635986, + "error": 0.22265625, + "gradient_norm": 0.07272452116012573, + "elapsed": 137.32864713668823 + }, + { + "step": 336, + "loss": 0.48315611481666565, + "error": 0.2626953125, + "gradient_norm": 0.03321139141917229, + "elapsed": 141.80009770393372 + }, + { + "step": 352, + "loss": 0.6107717752456665, + "error": 0.3544921875, + "gradient_norm": 0.05243214592337608, + "elapsed": 146.36439752578735 + }, + { + "step": 368, + "loss": 0.6215153932571411, + "error": 0.357421875, + "gradient_norm": 0.04383325204253197, + "elapsed": 150.99996852874756 + }, + { + "step": 384, + "loss": 0.6130329966545105, + "error": 0.35546875, + "gradient_norm": 0.04113119840621948, + "elapsed": 155.62374639511108 + }, + { + "step": 400, + "loss": 0.30471885204315186, + "error": 0.142578125, + "gradient_norm": 0.04447556659579277, + "elapsed": 160.17594957351685 + }, + { + "step": 416, + "loss": 0.6154489517211914, + "error": 0.37109375, + "gradient_norm": 0.04456057772040367, + "elapsed": 164.7639675140381 + }, + { + "step": 432, + "loss": 0.6134694218635559, + "error": 0.337890625, + "gradient_norm": 0.04219559207558632, + "elapsed": 169.32792139053345 + }, + { + "step": 448, + "loss": 0.5463185906410217, + "error": 0.2939453125, + "gradient_norm": 0.07746092975139618, + "elapsed": 173.88445162773132 + }, + { + "step": 464, + "loss": 0.06016772612929344, + "error": 0.01953125, + "gradient_norm": 0.01364185381680727, + "elapsed": 178.42725706100464 + }, + { + "step": 480, + "loss": 0.388141393661499, + "error": 0.18359375, + "gradient_norm": 0.04870256036520004, + "elapsed": 182.99062085151672 + }, + { + "step": 496, + "loss": 0.44524821639060974, + "error": 0.2216796875, + "gradient_norm": 0.03453445807099342, + "elapsed": 187.56396961212158 + }, + { + "step": 512, + "loss": 0.34312355518341064, + "error": 0.154296875, + "gradient_norm": 0.06794509291648865, + "elapsed": 192.27511191368103 + }, + { + "step": 528, + "loss": 0.19467462599277496, + "error": 0.0771484375, + "gradient_norm": 0.042381469160318375, + "elapsed": 197.7108268737793 + }, + { + "step": 544, + "loss": 0.46226584911346436, + "error": 0.2421875, + "gradient_norm": 0.06073570251464844, + "elapsed": 202.97405791282654 + }, + { + "step": 560, + "loss": 0.525318443775177, + "error": 0.2822265625, + "gradient_norm": 0.06954885274171829, + "elapsed": 208.69676971435547 + }, + { + "step": 576, + "loss": 0.6158387064933777, + "error": 0.349609375, + "gradient_norm": 0.07587578892707825, + "elapsed": 214.80397653579712 + }, + { + "step": 592, + "loss": 0.5515886545181274, + "error": 0.298828125, + "gradient_norm": 0.04969338700175285, + "elapsed": 220.27399611473083 + }, + { + "step": 608, + "loss": 0.18365338444709778, + "error": 0.0654296875, + "gradient_norm": 0.08657706528902054, + "elapsed": 224.81246256828308 + }, + { + "step": 624, + "loss": 0.4578855633735657, + "error": 0.2421875, + "gradient_norm": 0.04942100867629051, + "elapsed": 229.45902252197266 + }, + { + "step": 640, + "loss": 0.37826013565063477, + "error": 0.1865234375, + "gradient_norm": 0.047499872744083405, + "elapsed": 233.9695644378662 + }, + { + "step": 656, + "loss": 0.40863412618637085, + "error": 0.2001953125, + "gradient_norm": 0.07845330238342285, + "elapsed": 238.584894657135 + }, + { + "step": 672, + "loss": 0.5640332698822021, + "error": 0.2880859375, + "gradient_norm": 0.057469289749860764, + "elapsed": 243.0929844379425 + }, + { + "step": 688, + "loss": 0.030216243118047714, + "error": 0.0078125, + "gradient_norm": 0.04682641476392746, + "elapsed": 247.581125497818 + }, + { + "step": 704, + "loss": 0.375002384185791, + "error": 0.1826171875, + "gradient_norm": 0.04864194989204407, + "elapsed": 252.1564691066742 + }, + { + "step": 720, + "loss": 0.5145515203475952, + "error": 0.2744140625, + "gradient_norm": 0.052671682089567184, + "elapsed": 256.6466488838196 + }, + { + "step": 736, + "loss": 0.067174531519413, + "error": 0.0224609375, + "gradient_norm": 0.019299577921628952, + "elapsed": 261.1185076236725 + }, + { + "step": 752, + "loss": 0.24909992516040802, + "error": 0.111328125, + "gradient_norm": 0.06907463818788528, + "elapsed": 265.61960339546204 + }, + { + "step": 768, + "loss": 0.5088074207305908, + "error": 0.2744140625, + "gradient_norm": 0.06963017582893372, + "elapsed": 270.07474064826965 + }, + { + "step": 784, + "loss": 0.3783387839794159, + "error": 0.1826171875, + "gradient_norm": 0.05537794530391693, + "elapsed": 274.52722239494324 + }, + { + "step": 800, + "loss": 0.6107200980186462, + "error": 0.3623046875, + "gradient_norm": 0.0470259003341198, + "elapsed": 279.0401859283447 + }, + { + "step": 816, + "loss": 0.5778236389160156, + "error": 0.3212890625, + "gradient_norm": 0.10146680474281311, + "elapsed": 283.5114622116089 + }, + { + "step": 832, + "loss": 0.576002299785614, + "error": 0.3076171875, + "gradient_norm": 0.07760787010192871, + "elapsed": 288.04797434806824 + }, + { + "step": 848, + "loss": 0.6179666519165039, + "error": 0.3740234375, + "gradient_norm": 0.07383852452039719, + "elapsed": 292.60600209236145 + }, + { + "step": 864, + "loss": 0.3105512857437134, + "error": 0.1455078125, + "gradient_norm": 0.052953749895095825, + "elapsed": 297.12180352211 + }, + { + "step": 880, + "loss": 0.4802623987197876, + "error": 0.2548828125, + "gradient_norm": 0.07736275345087051, + "elapsed": 301.6091134548187 + }, + { + "step": 896, + "loss": 0.5572722554206848, + "error": 0.318359375, + "gradient_norm": 0.053303152322769165, + "elapsed": 306.1978073120117 + }, + { + "step": 912, + "loss": 0.34814420342445374, + "error": 0.1669921875, + "gradient_norm": 0.037726350128650665, + "elapsed": 310.78571581840515 + }, + { + "step": 928, + "loss": 0.41743016242980957, + "error": 0.21875, + "gradient_norm": 0.05238872766494751, + "elapsed": 315.24156188964844 + }, + { + "step": 944, + "loss": 0.5757850408554077, + "error": 0.3173828125, + "gradient_norm": 0.05837905779480934, + "elapsed": 319.78475165367126 + }, + { + "step": 960, + "loss": 0.40727972984313965, + "error": 0.197265625, + "gradient_norm": 0.059294261038303375, + "elapsed": 324.2090265750885 + }, + { + "step": 976, + "loss": 0.32715001702308655, + "error": 0.1533203125, + "gradient_norm": 0.11543179303407669, + "elapsed": 328.6462152004242 + }, + { + "step": 992, + "loss": 0.5578742623329163, + "error": 0.314453125, + "gradient_norm": 0.06282714009284973, + "elapsed": 333.0712504386902 + }, + { + "step": 1008, + "loss": 0.5052692294120789, + "error": 0.265625, + "gradient_norm": 0.04039420187473297, + "elapsed": 337.5182821750641 + }, + { + "step": 1024, + "loss": 0.18790806829929352, + "error": 0.08203125, + "gradient_norm": 0.028905188664793968, + "elapsed": 342.08340406417847 + }, + { + "step": 1040, + "loss": 0.6317684650421143, + "error": 0.3681640625, + "gradient_norm": 0.03441835194826126, + "elapsed": 358.8279616832733 + }, + { + "step": 1056, + "loss": 0.40474164485931396, + "error": 0.2021484375, + "gradient_norm": 0.036449309438467026, + "elapsed": 363.30218267440796 + }, + { + "step": 1072, + "loss": 0.518299400806427, + "error": 0.2666015625, + "gradient_norm": 0.0886964276432991, + "elapsed": 367.87997555732727 + }, + { + "step": 1088, + "loss": 0.2522922158241272, + "error": 0.099609375, + "gradient_norm": 0.07553310692310333, + "elapsed": 372.4414882659912 + }, + { + "step": 1104, + "loss": 0.6214810609817505, + "error": 0.3701171875, + "gradient_norm": 0.10188957303762436, + "elapsed": 376.9120502471924 + }, + { + "step": 1120, + "loss": 0.6307054162025452, + "error": 0.3720703125, + "gradient_norm": 0.07353860139846802, + "elapsed": 381.3824534416199 + }, + { + "step": 1136, + "loss": 0.5259381532669067, + "error": 0.2763671875, + "gradient_norm": 0.05779678374528885, + "elapsed": 385.8413143157959 + }, + { + "step": 1152, + "loss": 0.4995541572570801, + "error": 0.259765625, + "gradient_norm": 0.046648140996694565, + "elapsed": 390.28326058387756 + }, + { + "step": 1168, + "loss": 0.6075694561004639, + "error": 0.3701171875, + "gradient_norm": 0.10612073540687561, + "elapsed": 394.8162364959717 + }, + { + "step": 1184, + "loss": 0.2105136513710022, + "error": 0.080078125, + "gradient_norm": 0.0716402605175972, + "elapsed": 399.2960283756256 + }, + { + "step": 1200, + "loss": 0.6371631026268005, + "error": 0.3857421875, + "gradient_norm": 0.0549108125269413, + "elapsed": 403.7899103164673 + }, + { + "step": 1216, + "loss": 0.5450670719146729, + "error": 0.2939453125, + "gradient_norm": 0.11688558012247086, + "elapsed": 408.34677600860596 + }, + { + "step": 1232, + "loss": 0.035783201456069946, + "error": 0.01171875, + "gradient_norm": 0.02951689623296261, + "elapsed": 412.8558337688446 + }, + { + "step": 1248, + "loss": 0.5582903623580933, + "error": 0.3046875, + "gradient_norm": 0.055107031017541885, + "elapsed": 417.29854226112366 + }, + { + "step": 1264, + "loss": 0.5154441595077515, + "error": 0.27734375, + "gradient_norm": 0.04474929720163345, + "elapsed": 421.7792055606842 + }, + { + "step": 1280, + "loss": 0.35227546095848083, + "error": 0.16015625, + "gradient_norm": 0.05024837702512741, + "elapsed": 426.54427456855774 + }, + { + "step": 1296, + "loss": 0.19417589902877808, + "error": 0.0830078125, + "gradient_norm": 0.026926057413220406, + "elapsed": 431.320588350296 + }, + { + "step": 1312, + "loss": 0.4768218398094177, + "error": 0.248046875, + "gradient_norm": 0.15099607408046722, + "elapsed": 435.96817326545715 + }, + { + "step": 1328, + "loss": 0.48580923676490784, + "error": 0.2509765625, + "gradient_norm": 0.08925126492977142, + "elapsed": 440.64917039871216 + }, + { + "step": 1344, + "loss": 0.42041274905204773, + "error": 0.1982421875, + "gradient_norm": 0.08321093022823334, + "elapsed": 445.34370946884155 + }, + { + "step": 1360, + "loss": 0.06403929740190506, + "error": 0.0185546875, + "gradient_norm": 0.03817005455493927, + "elapsed": 449.98669385910034 + }, + { + "step": 1376, + "loss": 0.463126003742218, + "error": 0.2275390625, + "gradient_norm": 0.08894515782594681, + "elapsed": 454.6478977203369 + }, + { + "step": 1392, + "loss": 0.5995306968688965, + "error": 0.373046875, + "gradient_norm": 0.06733685731887817, + "elapsed": 459.35924530029297 + }, + { + "step": 1408, + "loss": 0.49053263664245605, + "error": 0.25, + "gradient_norm": 0.10475508868694305, + "elapsed": 464.100093126297 + }, + { + "step": 1424, + "loss": 0.6220744848251343, + "error": 0.3818359375, + "gradient_norm": 0.03653963655233383, + "elapsed": 468.89601135253906 + }, + { + "step": 1440, + "loss": 0.39706122875213623, + "error": 0.2021484375, + "gradient_norm": 0.04344598576426506, + "elapsed": 474.03999519348145 + }, + { + "step": 1456, + "loss": 0.5386708974838257, + "error": 0.3095703125, + "gradient_norm": 0.12589037418365479, + "elapsed": 478.8600504398346 + }, + { + "step": 1472, + "loss": 0.49776726961135864, + "error": 0.271484375, + "gradient_norm": 0.058137863874435425, + "elapsed": 483.5920066833496 + }, + { + "step": 1488, + "loss": 0.4757428765296936, + "error": 0.2412109375, + "gradient_norm": 0.050453316420316696, + "elapsed": 488.4611999988556 + }, + { + "step": 1504, + "loss": 0.5694847702980042, + "error": 0.337890625, + "gradient_norm": 0.052419569343328476, + "elapsed": 493.26151037216187 + }, + { + "step": 1520, + "loss": 0.5997745990753174, + "error": 0.3603515625, + "gradient_norm": 0.04338108375668526, + "elapsed": 498.0421245098114 + }, + { + "step": 1536, + "loss": 0.6195274591445923, + "error": 0.3876953125, + "gradient_norm": 0.04848463833332062, + "elapsed": 502.8808298110962 + }, + { + "step": 1552, + "loss": 0.46315908432006836, + "error": 0.2353515625, + "gradient_norm": 0.06380566209554672, + "elapsed": 507.5519721508026 + }, + { + "step": 1568, + "loss": 0.605262041091919, + "error": 0.36328125, + "gradient_norm": 0.05077619478106499, + "elapsed": 512.457685470581 + }, + { + "step": 1584, + "loss": 0.48782041668891907, + "error": 0.232421875, + "gradient_norm": 0.09017211943864822, + "elapsed": 517.2960062026978 + }, + { + "step": 1600, + "loss": 0.3881351947784424, + "error": 0.1875, + "gradient_norm": 0.07205695658922195, + "elapsed": 522.0911631584167 + }, + { + "step": 1616, + "loss": 0.4966873526573181, + "error": 0.24609375, + "gradient_norm": 0.0582038015127182, + "elapsed": 526.8861901760101 + }, + { + "step": 1632, + "loss": 0.5844199657440186, + "error": 0.33203125, + "gradient_norm": 0.05101500824093819, + "elapsed": 531.6640138626099 + }, + { + "step": 1648, + "loss": 0.31010180711746216, + "error": 0.1318359375, + "gradient_norm": 0.053135693073272705, + "elapsed": 536.4960391521454 + }, + { + "step": 1664, + "loss": 0.6174807548522949, + "error": 0.3779296875, + "gradient_norm": 0.04161194711923599, + "elapsed": 541.2560484409332 + }, + { + "step": 1680, + "loss": 0.18213607370853424, + "error": 0.0751953125, + "gradient_norm": 0.07171957194805145, + "elapsed": 546.0000085830688 + }, + { + "step": 1696, + "loss": 0.5445692539215088, + "error": 0.2998046875, + "gradient_norm": 0.054499462246894836, + "elapsed": 551.1221191883087 + }, + { + "step": 1712, + "loss": 0.05744167044758797, + "error": 0.017578125, + "gradient_norm": 0.013108699582517147, + "elapsed": 556.5286149978638 + }, + { + "step": 1728, + "loss": 0.6381571292877197, + "error": 0.3896484375, + "gradient_norm": 0.05157556012272835, + "elapsed": 561.8000066280365 + }, + { + "step": 1744, + "loss": 0.5301004648208618, + "error": 0.28125, + "gradient_norm": 0.04218568280339241, + "elapsed": 567.2760035991669 + }, + { + "step": 1760, + "loss": 0.5275102257728577, + "error": 0.26953125, + "gradient_norm": 0.06798839569091797, + "elapsed": 572.5601994991302 + }, + { + "step": 1776, + "loss": 0.6443773508071899, + "error": 0.4091796875, + "gradient_norm": 0.07035460323095322, + "elapsed": 577.9789206981659 + }, + { + "step": 1792, + "loss": 0.6012362241744995, + "error": 0.337890625, + "gradient_norm": 0.05189951881766319, + "elapsed": 583.028017282486 + }, + { + "step": 1808, + "loss": 0.2939091920852661, + "error": 0.12109375, + "gradient_norm": 0.05555355176329613, + "elapsed": 588.0501506328583 + }, + { + "step": 1824, + "loss": 0.2059091478586197, + "error": 0.08984375, + "gradient_norm": 0.045679714530706406, + "elapsed": 593.2120039463043 + }, + { + "step": 1840, + "loss": 0.6289581060409546, + "error": 0.349609375, + "gradient_norm": 0.04742642492055893, + "elapsed": 598.7767763137817 + }, + { + "step": 1856, + "loss": 0.5532636642456055, + "error": 0.294921875, + "gradient_norm": 0.05997413396835327, + "elapsed": 604.0475382804871 + }, + { + "step": 1872, + "loss": 0.45995670557022095, + "error": 0.228515625, + "gradient_norm": 0.05674462765455246, + "elapsed": 609.292379617691 + }, + { + "step": 1888, + "loss": 0.6178656816482544, + "error": 0.359375, + "gradient_norm": 0.08857566863298416, + "elapsed": 614.5639882087708 + }, + { + "step": 1904, + "loss": 0.5531284213066101, + "error": 0.287109375, + "gradient_norm": 0.10257937759160995, + "elapsed": 619.5600035190582 + }, + { + "step": 1920, + "loss": 0.04184349626302719, + "error": 0.013671875, + "gradient_norm": 0.04087059944868088, + "elapsed": 624.6679775714874 + }, + { + "step": 1936, + "loss": 0.5924860239028931, + "error": 0.3505859375, + "gradient_norm": 0.036822713911533356, + "elapsed": 629.936680316925 + }, + { + "step": 1952, + "loss": 0.46996980905532837, + "error": 0.2421875, + "gradient_norm": 0.034442272037267685, + "elapsed": 635.1109762191772 + }, + { + "step": 1968, + "loss": 0.17859068512916565, + "error": 0.0712890625, + "gradient_norm": 0.03440066799521446, + "elapsed": 640.32000207901 + }, + { + "step": 1984, + "loss": 0.6192275285720825, + "error": 0.3701171875, + "gradient_norm": 0.04386439174413681, + "elapsed": 645.6040184497833 + }, + { + "step": 2000, + "loss": 0.6160917282104492, + "error": 0.35546875, + "gradient_norm": 0.06268990784883499, + "elapsed": 650.7723731994629 + }, + { + "step": 2016, + "loss": 0.6343611478805542, + "error": 0.388671875, + "gradient_norm": 0.04243326932191849, + "elapsed": 655.972663640976 + }, + { + "step": 2032, + "loss": 0.062292590737342834, + "error": 0.021484375, + "gradient_norm": 0.016680095344781876, + "elapsed": 660.8079733848572 + }, + { + "step": 2048, + "loss": 0.5316072702407837, + "error": 0.26953125, + "gradient_norm": 0.057860780507326126, + "elapsed": 665.5760209560394 + }, + { + "step": 2064, + "loss": 0.605312705039978, + "error": 0.3623046875, + "gradient_norm": 0.04028146713972092, + "elapsed": 682.7294294834137 + }, + { + "step": 2080, + "loss": 0.56633460521698, + "error": 0.3330078125, + "gradient_norm": 0.09528280049562454, + "elapsed": 687.4644649028778 + }, + { + "step": 2096, + "loss": 0.3905397057533264, + "error": 0.1943359375, + "gradient_norm": 0.049456462264060974, + "elapsed": 692.1492264270782 + }, + { + "step": 2112, + "loss": 0.28124868869781494, + "error": 0.1259765625, + "gradient_norm": 0.059239838272333145, + "elapsed": 696.8701393604279 + }, + { + "step": 2128, + "loss": 0.6364338994026184, + "error": 0.392578125, + "gradient_norm": 0.08667811006307602, + "elapsed": 701.683988571167 + }, + { + "step": 2144, + "loss": 0.20683243870735168, + "error": 0.07421875, + "gradient_norm": 0.1100710779428482, + "elapsed": 706.4000360965729 + }, + { + "step": 2160, + "loss": 0.5912737250328064, + "error": 0.341796875, + "gradient_norm": 0.05641854554414749, + "elapsed": 711.2359964847565 + }, + { + "step": 2176, + "loss": 0.27793264389038086, + "error": 0.12109375, + "gradient_norm": 0.0893034040927887, + "elapsed": 715.9508004188538 + }, + { + "step": 2192, + "loss": 0.6474133133888245, + "error": 0.4072265625, + "gradient_norm": 0.06980258971452713, + "elapsed": 720.651974439621 + }, + { + "step": 2208, + "loss": 0.5961858630180359, + "error": 0.35546875, + "gradient_norm": 0.06530112773180008, + "elapsed": 725.496098279953 + }, + { + "step": 2224, + "loss": 0.47581571340560913, + "error": 0.263671875, + "gradient_norm": 0.04470043256878853, + "elapsed": 730.2880010604858 + }, + { + "step": 2240, + "loss": 0.577988862991333, + "error": 0.318359375, + "gradient_norm": 0.07201159745454788, + "elapsed": 735.006133556366 + }, + { + "step": 2256, + "loss": 0.28444671630859375, + "error": 0.1181640625, + "gradient_norm": 0.048656050115823746, + "elapsed": 739.6868116855621 + }, + { + "step": 2272, + "loss": 0.2776409089565277, + "error": 0.1201171875, + "gradient_norm": 0.05783981829881668, + "elapsed": 744.3517308235168 + }, + { + "step": 2288, + "loss": 0.621599555015564, + "error": 0.37109375, + "gradient_norm": 0.09731200337409973, + "elapsed": 749.0351710319519 + }, + { + "step": 2304, + "loss": 0.3333754539489746, + "error": 0.1513671875, + "gradient_norm": 0.07069239765405655, + "elapsed": 753.7588081359863 + }, + { + "step": 2320, + "loss": 0.4687051773071289, + "error": 0.2490234375, + "gradient_norm": 0.044891707599163055, + "elapsed": 758.4588432312012 + }, + { + "step": 2336, + "loss": 0.19801637530326843, + "error": 0.078125, + "gradient_norm": 0.10036595165729523, + "elapsed": 763.256409406662 + }, + { + "step": 2352, + "loss": 0.6186277866363525, + "error": 0.388671875, + "gradient_norm": 0.09069584310054779, + "elapsed": 767.9986386299133 + }, + { + "step": 2368, + "loss": 0.6177258491516113, + "error": 0.373046875, + "gradient_norm": 0.049019571393728256, + "elapsed": 772.730831861496 + }, + { + "step": 2384, + "loss": 0.17707547545433044, + "error": 0.0673828125, + "gradient_norm": 0.045190781354904175, + "elapsed": 777.4072704315186 + }, + { + "step": 2400, + "loss": 0.20144733786582947, + "error": 0.08203125, + "gradient_norm": 0.04537162929773331, + "elapsed": 782.0841658115387 + }, + { + "step": 2416, + "loss": 0.6151775121688843, + "error": 0.365234375, + "gradient_norm": 0.050534047186374664, + "elapsed": 786.762966632843 + }, + { + "step": 2432, + "loss": 0.5533859133720398, + "error": 0.314453125, + "gradient_norm": 0.06006559729576111, + "elapsed": 791.4656012058258 + }, + { + "step": 2448, + "loss": 0.5329082012176514, + "error": 0.2880859375, + "gradient_norm": 0.04018115997314453, + "elapsed": 796.1704161167145 + }, + { + "step": 2464, + "loss": 0.6338047981262207, + "error": 0.4140625, + "gradient_norm": 0.06069163978099823, + "elapsed": 800.9180119037628 + }, + { + "step": 2480, + "loss": 0.1603008508682251, + "error": 0.0673828125, + "gradient_norm": 0.040350593626499176, + "elapsed": 805.6127603054047 + }, + { + "step": 2496, + "loss": 0.505940318107605, + "error": 0.2568359375, + "gradient_norm": 0.05209952965378761, + "elapsed": 810.3740313053131 + }, + { + "step": 2512, + "loss": 0.5528728365898132, + "error": 0.298828125, + "gradient_norm": 0.11757992953062057, + "elapsed": 815.1708807945251 + }, + { + "step": 2528, + "loss": 0.5028313994407654, + "error": 0.2666015625, + "gradient_norm": 0.08823780715465546, + "elapsed": 819.8585045337677 + }, + { + "step": 2544, + "loss": 0.5002262592315674, + "error": 0.2783203125, + "gradient_norm": 0.04888603836297989, + "elapsed": 824.5714073181152 + }, + { + "step": 2560, + "loss": 0.6007894277572632, + "error": 0.328125, + "gradient_norm": 0.05186954140663147, + "elapsed": 829.3080432415009 + }, + { + "step": 2576, + "loss": 0.18641480803489685, + "error": 0.076171875, + "gradient_norm": 0.03799928352236748, + "elapsed": 834.044020652771 + }, + { + "step": 2592, + "loss": 0.3050769865512848, + "error": 0.1396484375, + "gradient_norm": 0.10119257122278214, + "elapsed": 838.8401296138763 + }, + { + "step": 2608, + "loss": 0.6063439846038818, + "error": 0.361328125, + "gradient_norm": 0.04979367554187775, + "elapsed": 844.3572654724121 + }, + { + "step": 2624, + "loss": 0.5751967430114746, + "error": 0.3369140625, + "gradient_norm": 0.04269539937376976, + "elapsed": 849.0660374164581 + }, + { + "step": 2640, + "loss": 0.3902108669281006, + "error": 0.193359375, + "gradient_norm": 0.10029696673154831, + "elapsed": 853.8638062477112 + }, + { + "step": 2656, + "loss": 0.15081660449504852, + "error": 0.0625, + "gradient_norm": 0.0303852129727602, + "elapsed": 858.9793758392334 + }, + { + "step": 2672, + "loss": 0.6503090858459473, + "error": 0.400390625, + "gradient_norm": 0.12611964344978333, + "elapsed": 863.9151141643524 + }, + { + "step": 2688, + "loss": 0.5587317943572998, + "error": 0.31640625, + "gradient_norm": 0.10028114914894104, + "elapsed": 868.7600305080414 + }, + { + "step": 2704, + "loss": 0.4399867355823517, + "error": 0.21484375, + "gradient_norm": 0.06889455020427704, + "elapsed": 873.4544236660004 + }, + { + "step": 2720, + "loss": 0.5865127444267273, + "error": 0.337890625, + "gradient_norm": 0.03671631962060928, + "elapsed": 878.0982644557953 + }, + { + "step": 2736, + "loss": 0.6078637838363647, + "error": 0.3701171875, + "gradient_norm": 0.04679318517446518, + "elapsed": 883.0424642562866 + }, + { + "step": 2752, + "loss": 0.5825340151786804, + "error": 0.337890625, + "gradient_norm": 0.05619681254029274, + "elapsed": 887.908124923706 + }, + { + "step": 2768, + "loss": 0.5970422029495239, + "error": 0.3369140625, + "gradient_norm": 0.041302867233753204, + "elapsed": 892.6760206222534 + }, + { + "step": 2784, + "loss": 0.3870226740837097, + "error": 0.1826171875, + "gradient_norm": 0.05731065198779106, + "elapsed": 897.6246056556702 + }, + { + "step": 2800, + "loss": 0.38130277395248413, + "error": 0.1943359375, + "gradient_norm": 0.059244755655527115, + "elapsed": 902.3360238075256 + }, + { + "step": 2816, + "loss": 0.2617901563644409, + "error": 0.1064453125, + "gradient_norm": 0.041736964136362076, + "elapsed": 907.1600468158722 + }, + { + "step": 2832, + "loss": 0.5819337368011475, + "error": 0.314453125, + "gradient_norm": 0.04097156226634979, + "elapsed": 912.0244295597076 + }, + { + "step": 2848, + "loss": 0.41393283009529114, + "error": 0.2001953125, + "gradient_norm": 0.10456771403551102, + "elapsed": 916.8225846290588 + }, + { + "step": 2864, + "loss": 0.5019145011901855, + "error": 0.2548828125, + "gradient_norm": 0.04843736067414284, + "elapsed": 921.538754940033 + }, + { + "step": 2880, + "loss": 0.04561338573694229, + "error": 0.0146484375, + "gradient_norm": 0.025407327339053154, + "elapsed": 926.2588667869568 + }, + { + "step": 2896, + "loss": 0.4338858723640442, + "error": 0.205078125, + "gradient_norm": 0.09900517761707306, + "elapsed": 930.9781975746155 + }, + { + "step": 2912, + "loss": 0.33922863006591797, + "error": 0.162109375, + "gradient_norm": 0.10189604014158249, + "elapsed": 935.6816267967224 + }, + { + "step": 2928, + "loss": 0.5294322967529297, + "error": 0.2822265625, + "gradient_norm": 0.09060791879892349, + "elapsed": 940.4373068809509 + }, + { + "step": 2944, + "loss": 0.037007369101047516, + "error": 0.01171875, + "gradient_norm": 0.05506489425897598, + "elapsed": 945.1270468235016 + }, + { + "step": 2960, + "loss": 0.6096771359443665, + "error": 0.349609375, + "gradient_norm": 0.04987221211194992, + "elapsed": 949.8300130367279 + }, + { + "step": 2976, + "loss": 0.6157823801040649, + "error": 0.373046875, + "gradient_norm": 0.03614233434200287, + "elapsed": 954.5701997280121 + }, + { + "step": 2992, + "loss": 0.1978239268064499, + "error": 0.080078125, + "gradient_norm": 0.05847112461924553, + "elapsed": 959.2756471633911 + }, + { + "step": 3008, + "loss": 0.5237340927124023, + "error": 0.2841796875, + "gradient_norm": 0.06993591040372849, + "elapsed": 963.9875864982605 + }, + { + "step": 3024, + "loss": 0.4559935927391052, + "error": 0.2373046875, + "gradient_norm": 0.05698448419570923, + "elapsed": 968.7997305393219 + }, + { + "step": 3040, + "loss": 0.5025208592414856, + "error": 0.259765625, + "gradient_norm": 0.14909739792346954, + "elapsed": 973.6042547225952 + }, + { + "step": 3056, + "loss": 0.3223109245300293, + "error": 0.1416015625, + "gradient_norm": 0.032974764704704285, + "elapsed": 978.4760546684265 + }, + { + "step": 3072, + "loss": 0.06682582199573517, + "error": 0.021484375, + "gradient_norm": 0.04433188587427139, + "elapsed": 983.2894048690796 + }, + { + "step": 3088, + "loss": 0.5919550061225891, + "error": 0.34765625, + "gradient_norm": 0.06721373647451401, + "elapsed": 1000.9520287513733 + }, + { + "step": 3104, + "loss": 0.5988063812255859, + "error": 0.3642578125, + "gradient_norm": 0.05654948577284813, + "elapsed": 1005.7442932128906 + }, + { + "step": 3120, + "loss": 0.4922299385070801, + "error": 0.2470703125, + "gradient_norm": 0.07545466721057892, + "elapsed": 1010.4616096019745 + }, + { + "step": 3136, + "loss": 0.4533671736717224, + "error": 0.236328125, + "gradient_norm": 0.06288722902536392, + "elapsed": 1015.3559956550598 + }, + { + "step": 3152, + "loss": 0.5070517063140869, + "error": 0.2666015625, + "gradient_norm": 0.07274917513132095, + "elapsed": 1020.0764343738556 + }, + { + "step": 3168, + "loss": 0.5999464988708496, + "error": 0.3408203125, + "gradient_norm": 0.05777016654610634, + "elapsed": 1024.9410600662231 + }, + { + "step": 3184, + "loss": 0.5758363008499146, + "error": 0.3427734375, + "gradient_norm": 0.051027461886405945, + "elapsed": 1029.7082171440125 + }, + { + "step": 3200, + "loss": 0.05016190931200981, + "error": 0.017578125, + "gradient_norm": 0.009175656363368034, + "elapsed": 1034.3982915878296 + }, + { + "step": 3216, + "loss": 0.5471057295799255, + "error": 0.318359375, + "gradient_norm": 0.07572721689939499, + "elapsed": 1039.117841243744 + }, + { + "step": 3232, + "loss": 0.4141446352005005, + "error": 0.193359375, + "gradient_norm": 0.10056859254837036, + "elapsed": 1043.880026102066 + }, + { + "step": 3248, + "loss": 0.5812438726425171, + "error": 0.3212890625, + "gradient_norm": 0.05781616270542145, + "elapsed": 1048.6406455039978 + }, + { + "step": 3264, + "loss": 0.19184701144695282, + "error": 0.078125, + "gradient_norm": 0.05367236211895943, + "elapsed": 1053.5672237873077 + }, + { + "step": 3280, + "loss": 0.5420833826065063, + "error": 0.28515625, + "gradient_norm": 0.052405405789613724, + "elapsed": 1058.3841104507446 + }, + { + "step": 3296, + "loss": 0.4419598877429962, + "error": 0.2177734375, + "gradient_norm": 0.05814693495631218, + "elapsed": 1063.1880333423615 + }, + { + "step": 3312, + "loss": 0.4525642991065979, + "error": 0.208984375, + "gradient_norm": 0.1061021164059639, + "elapsed": 1068.1370933055878 + }, + { + "step": 3328, + "loss": 0.32664671540260315, + "error": 0.154296875, + "gradient_norm": 0.05649850144982338, + "elapsed": 1073.1963467597961 + }, + { + "step": 3344, + "loss": 0.2655770182609558, + "error": 0.1220703125, + "gradient_norm": 0.04070372134447098, + "elapsed": 1078.2698318958282 + }, + { + "step": 3360, + "loss": 0.5894330739974976, + "error": 0.3544921875, + "gradient_norm": 0.0643400028347969, + "elapsed": 1083.0184152126312 + }, + { + "step": 3376, + "loss": 0.6118791103363037, + "error": 0.361328125, + "gradient_norm": 0.08537904173135757, + "elapsed": 1087.834038734436 + }, + { + "step": 3392, + "loss": 0.40694907307624817, + "error": 0.19921875, + "gradient_norm": 0.11411692947149277, + "elapsed": 1092.8119947910309 + }, + { + "step": 3408, + "loss": 0.04629015550017357, + "error": 0.0146484375, + "gradient_norm": 0.017204072326421738, + "elapsed": 1097.5751783847809 + }, + { + "step": 3424, + "loss": 0.20639702677726746, + "error": 0.0849609375, + "gradient_norm": 0.04801144450902939, + "elapsed": 1102.2970931529999 + }, + { + "step": 3440, + "loss": 0.6051071286201477, + "error": 0.33984375, + "gradient_norm": 0.045392412692308426, + "elapsed": 1107.1080610752106 + }, + { + "step": 3456, + "loss": 0.6553700566291809, + "error": 0.40625, + "gradient_norm": 0.05593863129615784, + "elapsed": 1111.8409752845764 + }, + { + "step": 3472, + "loss": 0.591402530670166, + "error": 0.3515625, + "gradient_norm": 0.051181379705667496, + "elapsed": 1116.5800333023071 + }, + { + "step": 3488, + "loss": 0.30494624376296997, + "error": 0.12109375, + "gradient_norm": 0.05175542086362839, + "elapsed": 1121.276373386383 + }, + { + "step": 3504, + "loss": 0.5065370798110962, + "error": 0.279296875, + "gradient_norm": 0.10419930517673492, + "elapsed": 1125.9883344173431 + }, + { + "step": 3520, + "loss": 0.3915700614452362, + "error": 0.1953125, + "gradient_norm": 0.060416825115680695, + "elapsed": 1130.7958455085754 + }, + { + "step": 3536, + "loss": 0.624374270439148, + "error": 0.3759765625, + "gradient_norm": 0.06069556251168251, + "elapsed": 1135.5360939502716 + }, + { + "step": 3552, + "loss": 0.5830206274986267, + "error": 0.3359375, + "gradient_norm": 0.046013280749320984, + "elapsed": 1140.312029838562 + }, + { + "step": 3568, + "loss": 0.4201379716396332, + "error": 0.2119140625, + "gradient_norm": 0.06909621506929398, + "elapsed": 1145.0904593467712 + }, + { + "step": 3584, + "loss": 0.28215405344963074, + "error": 0.1181640625, + "gradient_norm": 0.07625982910394669, + "elapsed": 1149.8156151771545 + }, + { + "step": 3600, + "loss": 0.5229164361953735, + "error": 0.275390625, + "gradient_norm": 0.055048178881406784, + "elapsed": 1154.5280592441559 + }, + { + "step": 3616, + "loss": 0.47238075733184814, + "error": 0.2314453125, + "gradient_norm": 0.06473162025213242, + "elapsed": 1159.2720873355865 + }, + { + "step": 3632, + "loss": 0.46245503425598145, + "error": 0.228515625, + "gradient_norm": 0.07382887601852417, + "elapsed": 1164.0119998455048 + }, + { + "step": 3648, + "loss": 0.37509745359420776, + "error": 0.171875, + "gradient_norm": 0.051260266453027725, + "elapsed": 1168.7440350055695 + }, + { + "step": 3664, + "loss": 0.1948484629392624, + "error": 0.080078125, + "gradient_norm": 0.059623416513204575, + "elapsed": 1173.3906588554382 + }, + { + "step": 3680, + "loss": 0.5552756786346436, + "error": 0.3115234375, + "gradient_norm": 0.08073585480451584, + "elapsed": 1178.0645008087158 + }, + { + "step": 3696, + "loss": 0.6405904293060303, + "error": 0.39453125, + "gradient_norm": 0.05899551138281822, + "elapsed": 1182.730489730835 + }, + { + "step": 3712, + "loss": 0.2767012119293213, + "error": 0.119140625, + "gradient_norm": 0.06593579798936844, + "elapsed": 1187.377315044403 + }, + { + "step": 3728, + "loss": 0.315812885761261, + "error": 0.134765625, + "gradient_norm": 0.035905495285987854, + "elapsed": 1192.0582301616669 + }, + { + "step": 3744, + "loss": 0.6033951640129089, + "error": 0.3544921875, + "gradient_norm": 0.05226197466254234, + "elapsed": 1196.7101175785065 + }, + { + "step": 3760, + "loss": 0.5202592611312866, + "error": 0.275390625, + "gradient_norm": 0.06367512047290802, + "elapsed": 1201.3543090820312 + }, + { + "step": 3776, + "loss": 0.24639368057250977, + "error": 0.1083984375, + "gradient_norm": 0.09370873868465424, + "elapsed": 1206.0717165470123 + }, + { + "step": 3792, + "loss": 0.6175658702850342, + "error": 0.375, + "gradient_norm": 0.06221585348248482, + "elapsed": 1210.754029750824 + }, + { + "step": 3808, + "loss": 0.41153696179389954, + "error": 0.2119140625, + "gradient_norm": 0.05355365574359894, + "elapsed": 1215.4374370574951 + }, + { + "step": 3824, + "loss": 0.28002214431762695, + "error": 0.1123046875, + "gradient_norm": 0.03846330568194389, + "elapsed": 1220.1207013130188 + }, + { + "step": 3840, + "loss": 0.0484195351600647, + "error": 0.013671875, + "gradient_norm": 0.03470242768526077, + "elapsed": 1224.8153104782104 + }, + { + "step": 3856, + "loss": 0.1407160609960556, + "error": 0.0458984375, + "gradient_norm": 0.04061700031161308, + "elapsed": 1229.5512235164642 + }, + { + "step": 3872, + "loss": 0.5881794691085815, + "error": 0.3427734375, + "gradient_norm": 0.062013477087020874, + "elapsed": 1234.3750183582306 + }, + { + "step": 3888, + "loss": 0.17833612859249115, + "error": 0.06640625, + "gradient_norm": 0.038856204599142075, + "elapsed": 1239.110375881195 + }, + { + "step": 3904, + "loss": 0.06211477518081665, + "error": 0.0224609375, + "gradient_norm": 0.02150108851492405, + "elapsed": 1243.800644159317 + }, + { + "step": 3920, + "loss": 0.06039723381400108, + "error": 0.01953125, + "gradient_norm": 0.019367367029190063, + "elapsed": 1248.4831748008728 + }, + { + "step": 3936, + "loss": 0.6010214686393738, + "error": 0.3525390625, + "gradient_norm": 0.051659151911735535, + "elapsed": 1253.1423478126526 + }, + { + "step": 3952, + "loss": 0.5867137312889099, + "error": 0.3388671875, + "gradient_norm": 0.058528851717710495, + "elapsed": 1257.9799931049347 + }, + { + "step": 3968, + "loss": 0.5231834650039673, + "error": 0.2578125, + "gradient_norm": 0.10128334909677505, + "elapsed": 1262.6990082263947 + }, + { + "step": 3984, + "loss": 0.6251651644706726, + "error": 0.353515625, + "gradient_norm": 0.06211795285344124, + "elapsed": 1267.4289934635162 + }, + { + "step": 4000, + "loss": 0.06667037308216095, + "error": 0.01953125, + "gradient_norm": 0.048018258064985275, + "elapsed": 1272.132089138031 + }, + { + "step": 4016, + "loss": 0.5286938548088074, + "error": 0.2744140625, + "gradient_norm": 0.05509360507130623, + "elapsed": 1276.8878977298737 + }, + { + "step": 4032, + "loss": 0.34016552567481995, + "error": 0.1591796875, + "gradient_norm": 0.07597329467535019, + "elapsed": 1281.7364926338196 + }, + { + "step": 4048, + "loss": 0.17750494182109833, + "error": 0.078125, + "gradient_norm": 0.06314503401517868, + "elapsed": 1286.5033600330353 + }, + { + "step": 4064, + "loss": 0.5882893800735474, + "error": 0.34375, + "gradient_norm": 0.10986580699682236, + "elapsed": 1291.1944887638092 + }, + { + "step": 4080, + "loss": 0.4923543930053711, + "error": 0.2568359375, + "gradient_norm": 0.050325747579336166, + "elapsed": 1295.9372322559357 + }, + { + "step": 4096, + "loss": 0.44146978855133057, + "error": 0.2236328125, + "gradient_norm": 0.06535191088914871, + "elapsed": 1300.641023159027 + } + ] + }, + "derived_checkpoints": { + "mean3": { + "checkpoint_label": "mean3", + "kind": "uniform_parameter_average", + "optimizer_updates_in_derived_run": 0, + "source_optimizer_steps": [ + 2048, + 3072, + 4096 + ], + "source_training_run": "temporal2", + "source_weights_sha256": { + "2048": "ab1175f9ef7ed52106ce1127b7da91bfc3d91782c0a2fec2f8189f661e3679db", + "3072": "fabbb42432fb0975023f0a367a366b8db591c6866719b4c7efb85cfe91934c65", + "4096": "5ca716cd5632c9b717bb167d187387483b5485fead55f45b25cc44325d5d18ea" + }, + "source_checkpoint_records": { + "2048": { + "step": 2048, + "new_training_shots": 2097152, + "unique_training_rows_seen_in_this_phase": 1293629, + "weights": "weights-2048.npz", + "weights_sha256": "ab1175f9ef7ed52106ce1127b7da91bfc3d91782c0a2fec2f8189f661e3679db", + "validation": "validation-2048.json", + "complete": true + }, + "3072": { + "step": 3072, + "new_training_shots": 3145728, + "unique_training_rows_seen_in_this_phase": 1594502, + "weights": "weights-3072.npz", + "weights_sha256": "fabbb42432fb0975023f0a367a366b8db591c6866719b4c7efb85cfe91934c65", + "validation": "validation-3072.json", + "complete": true + }, + "4096": { + "step": 4096, + "new_training_shots": 4194304, + "unique_training_rows_seen_in_this_phase": 1778773, + "weights": "weights-4096.npz", + "weights_sha256": "5ca716cd5632c9b717bb167d187387483b5485fead55f45b25cc44325d5d18ea", + "validation": "validation-4096.json", + "complete": true + } + }, + "weights_sha256": "a61fb22f803b795c2a39b6c19dc3a368d536cb21419ba773778601b28e4403fe", + "complete": true + }, + "mean4": { + "checkpoint_label": "mean4", + "kind": "uniform_parameter_average", + "optimizer_updates_in_derived_run": 0, + "source_optimizer_steps": [ + 1024, + 2048, + 3072, + 4096 + ], + "source_training_run": "temporal2", + "source_weights_sha256": { + "1024": "0d809362d5afe1dc781f716e3aee1a9bc5a8f75fed6cc0ff6339b9abcf600ada", + "2048": "ab1175f9ef7ed52106ce1127b7da91bfc3d91782c0a2fec2f8189f661e3679db", + "3072": "fabbb42432fb0975023f0a367a366b8db591c6866719b4c7efb85cfe91934c65", + "4096": "5ca716cd5632c9b717bb167d187387483b5485fead55f45b25cc44325d5d18ea" + }, + "source_checkpoint_records": { + "1024": { + "step": 1024, + "new_training_shots": 1048576, + "unique_training_rows_seen_in_this_phase": 804757, + "weights": "weights-1024.npz", + "weights_sha256": "0d809362d5afe1dc781f716e3aee1a9bc5a8f75fed6cc0ff6339b9abcf600ada", + "validation": "validation-1024.json", + "complete": true + }, + "2048": { + "step": 2048, + "new_training_shots": 2097152, + "unique_training_rows_seen_in_this_phase": 1293629, + "weights": "weights-2048.npz", + "weights_sha256": "ab1175f9ef7ed52106ce1127b7da91bfc3d91782c0a2fec2f8189f661e3679db", + "validation": "validation-2048.json", + "complete": true + }, + "3072": { + "step": 3072, + "new_training_shots": 3145728, + "unique_training_rows_seen_in_this_phase": 1594502, + "weights": "weights-3072.npz", + "weights_sha256": "fabbb42432fb0975023f0a367a366b8db591c6866719b4c7efb85cfe91934c65", + "validation": "validation-3072.json", + "complete": true + }, + "4096": { + "step": 4096, + "new_training_shots": 4194304, + "unique_training_rows_seen_in_this_phase": 1778773, + "weights": "weights-4096.npz", + "weights_sha256": "5ca716cd5632c9b717bb167d187387483b5485fead55f45b25cc44325d5d18ea", + "validation": "validation-4096.json", + "complete": true + } + }, + "weights_sha256": "ff4595e8f3eb7cfaa8da5a58a31e106d9684c7b8437f330573a1291f19f5777a", + "complete": true + } + }, + "selection": "Predefined last-three and all-four noninitial temporal2 checkpoint means; every validation condition evaluated before group selection", + "test_data_used": false, + "derivation_source_sha256": "b68813c7dab697a554185020c430ef05f1c35bedcda5b85b7d165af75461e914" + }, + "training_source_snapshot": "training_sources/temporal2_swa", + "selected_checkpoint_steps": [ + "mean3" + ], + "checkpoint_records": { + "mean3": { + "checkpoint_label": "mean3", + "kind": "uniform_parameter_average", + "optimizer_updates_in_derived_run": 0, + "source_optimizer_steps": [ + 2048, + 3072, + 4096 + ], + "source_training_run": "temporal2", + "source_weights_sha256": { + "2048": "ab1175f9ef7ed52106ce1127b7da91bfc3d91782c0a2fec2f8189f661e3679db", + "3072": "fabbb42432fb0975023f0a367a366b8db591c6866719b4c7efb85cfe91934c65", + "4096": "5ca716cd5632c9b717bb167d187387483b5485fead55f45b25cc44325d5d18ea" + }, + "source_checkpoint_records": { + "2048": { + "step": 2048, + "new_training_shots": 2097152, + "unique_training_rows_seen_in_this_phase": 1293629, + "weights": "weights-2048.npz", + "weights_sha256": "ab1175f9ef7ed52106ce1127b7da91bfc3d91782c0a2fec2f8189f661e3679db", + "validation": "validation-2048.json", + "complete": true + }, + "3072": { + "step": 3072, + "new_training_shots": 3145728, + "unique_training_rows_seen_in_this_phase": 1594502, + "weights": "weights-3072.npz", + "weights_sha256": "fabbb42432fb0975023f0a367a366b8db591c6866719b4c7efb85cfe91934c65", + "validation": "validation-3072.json", + "complete": true + }, + "4096": { + "step": 4096, + "new_training_shots": 4194304, + "unique_training_rows_seen_in_this_phase": 1778773, + "weights": "weights-4096.npz", + "weights_sha256": "5ca716cd5632c9b717bb167d187387483b5485fead55f45b25cc44325d5d18ea", + "validation": "validation-4096.json", + "complete": true + } + }, + "weights_sha256": "a61fb22f803b795c2a39b6c19dc3a368d536cb21419ba773778601b28e4403fe", + "complete": true + } + }, + "selection": "Minimum full-validation mean failure per group among incumbent and listed session-trained checkpoints; when listed, blend candidates average the recorded small-contextual reference and new probabilities equally", + "blend_reference": "/run-state/workspace/research/context_upgrades/continuation2/predictions", + "history": [ + { + "group": "d3_bX_center_3_5", + "candidates": { + "incumbent": 0.2445763221153846, + "mean3": 0.24451622596153846, + "mean4": 0.24484675480769236, + "blend-mean3": 0.24570312499999997, + "blend-mean4": 0.24591346153846153 + }, + "selected": "mean3" + }, + { + "group": "d3_bX_center_5_3", + "candidates": { + "incumbent": 0.2528545673076923, + "mean3": 0.25321514423076924, + "mean4": 0.2538611778846154, + "blend-mean3": 0.25310997596153845, + "blend-mean4": 0.2530498798076923 + }, + "selected": "incumbent" + }, + { + "group": "d3_bX_center_5_7", + "candidates": { + "incumbent": 0.23366887019230773, + "mean3": 0.23392427884615385, + "mean4": 0.234375, + "blend-mean3": 0.2338792067307692, + "blend-mean4": 0.23404447115384613 + }, + "selected": "incumbent" + }, + { + "group": "d3_bX_center_7_5", + "candidates": { + "incumbent": 0.23886718750000002, + "mean3": 0.23937800480769234, + "mean4": 0.2393780048076923, + "blend-mean3": 0.23942307692307693, + "blend-mean4": 0.2392578125 + }, + "selected": "incumbent" + }, + { + "group": "d3_bZ_center_3_5", + "candidates": { + "incumbent": 0.24463641826923077, + "mean3": 0.24471153846153845, + "mean4": 0.24505709134615386, + "blend-mean3": 0.24580829326923076, + "blend-mean4": 0.2457782451923077 + }, + "selected": "incumbent" + }, + { + "group": "d3_bZ_center_5_3", + "candidates": { + "incumbent": 0.23652343749999996, + "mean3": 0.2379957932692308, + "mean4": 0.23756009615384613, + "blend-mean3": 0.23751502403846153, + "blend-mean4": 0.23737980769230768 + }, + "selected": "incumbent" + }, + { + "group": "d3_bZ_center_5_7", + "candidates": { + "incumbent": 0.23562199519230764, + "mean3": 0.23643329326923077, + "mean4": 0.2361177884615384, + "blend-mean3": 0.23662860576923078, + "blend-mean4": 0.23634314903846157 + }, + "selected": "incumbent" + }, + { + "group": "d3_bZ_center_7_5", + "candidates": { + "incumbent": 0.2329627403846154, + "mean3": 0.2335186298076923, + "mean4": 0.23344350961538457, + "blend-mean3": 0.23333834134615383, + "blend-mean4": 0.2334134615384615 + }, + "selected": "incumbent" + }, + { + "group": "d5_bX_center_5_5", + "candidates": { + "incumbent": 0.2325420673076923 + }, + "selected": "incumbent" + }, + { + "group": "d5_bZ_center_5_5", + "candidates": { + "incumbent": 0.22017728365384615 + }, + "selected": "incumbent" + } + ] + }, + { + "name": "condition_same1", + "training_run": { + "initialization": "Continue from this session's trained checkpoint", + "original_initialization": "Rich network random seed20261030; new 32-channel temporal network random seed20261104; rich parameters retained, new input rows Normal(0,.001)", + "rich_starting_checkpoint": "/run-state/workspace/research/learned_exact/rich1/weights-1024.npz", + "rich_checkpoint_sha256": "04fea2cf8c598cd5587d450b50cdce58aee9a8c770a2c2da57d7a48e3bf3e2a6", + "architecture": "Rich 128-unit MLP plus 32-channel temporal encoder: four residual kernel3 convolutions with dilations1/2/4/8 and channel normalization. Receptive field31 rounds. Encoder sees events, measurements and presence masks. Per-edge 177 input features. Output4*tanh.", + "training": "Uniform condition sampling from all 104 d3 conditions; batch drawn from the supplied training split only", + "training_source_sha256": { + "learned_exact__temporal_accumulate_train.py": "9f672468a8b72966b3aa04fd22e5d40b47b0768f1c802c267a1da08244c4323b", + "learned_exact__temporal_model.py": "76fd01d5ae50f7d0b5790800898e7103ddb86db8f6a2ace883407515add2e186", + "learned_exact__data.py": "6f88582230aec7bbf35170a672ff615cac0cf18c0a690b2983874bb4c02c75e6", + "learned_exact__gradient.py": "ecb6b45698480386fa124fe878db7dbfa246d1969fd720ec26daff9547da2001", + "exact_d3__exact.py": "869dfacb295c419c156d1070fc2afdd6e20d02ac1840e45e72346b2b289f4825" + }, + "runtime_versions": { + "jax": "0.7.2", + "numpy": "2.3.3", + "optax": "0.2.6" + }, + "eligible_training_shots": 2067520, + "unique_training_rows_seen_in_this_phase": 803777, + "unique_rows_by_condition": { + "surface_code_bX_d3_r01_center_3_5": 11639, + "surface_code_bX_d3_r03_center_3_5": 10232, + "surface_code_bX_d3_r05_center_3_5": 9180, + "surface_code_bX_d3_r07_center_3_5": 10239, + "surface_code_bX_d3_r09_center_3_5": 6051, + "surface_code_bX_d3_r11_center_3_5": 8012, + "surface_code_bX_d3_r13_center_3_5": 6713, + "surface_code_bX_d3_r15_center_3_5": 6022, + "surface_code_bX_d3_r17_center_3_5": 7425, + "surface_code_bX_d3_r19_center_3_5": 8635, + "surface_code_bX_d3_r21_center_3_5": 10217, + "surface_code_bX_d3_r23_center_3_5": 6026, + "surface_code_bX_d3_r25_center_3_5": 4490, + "surface_code_bX_d3_r01_center_5_3": 7371, + "surface_code_bX_d3_r03_center_5_3": 5992, + "surface_code_bX_d3_r05_center_5_3": 6712, + "surface_code_bX_d3_r07_center_5_3": 6716, + "surface_code_bX_d3_r09_center_5_3": 7941, + "surface_code_bX_d3_r11_center_5_3": 6001, + "surface_code_bX_d3_r13_center_5_3": 8037, + "surface_code_bX_d3_r15_center_5_3": 8542, + "surface_code_bX_d3_r17_center_5_3": 10153, + "surface_code_bX_d3_r19_center_5_3": 10675, + "surface_code_bX_d3_r21_center_5_3": 7993, + "surface_code_bX_d3_r23_center_5_3": 6652, + "surface_code_bX_d3_r25_center_5_3": 8608, + "surface_code_bX_d3_r01_center_5_7": 8590, + "surface_code_bX_d3_r03_center_5_7": 11633, + "surface_code_bX_d3_r05_center_5_7": 8588, + "surface_code_bX_d3_r07_center_5_7": 10695, + "surface_code_bX_d3_r09_center_5_7": 7964, + "surface_code_bX_d3_r11_center_5_7": 11658, + "surface_code_bX_d3_r13_center_5_7": 6021, + "surface_code_bX_d3_r15_center_5_7": 9727, + "surface_code_bX_d3_r17_center_5_7": 4526, + "surface_code_bX_d3_r19_center_5_7": 9642, + "surface_code_bX_d3_r21_center_5_7": 3708, + "surface_code_bX_d3_r23_center_5_7": 6687, + "surface_code_bX_d3_r25_center_5_7": 7972, + "surface_code_bX_d3_r01_center_7_5": 6757, + "surface_code_bX_d3_r03_center_7_5": 6726, + "surface_code_bX_d3_r05_center_7_5": 4504, + "surface_code_bX_d3_r07_center_7_5": 8034, + "surface_code_bX_d3_r09_center_7_5": 8633, + "surface_code_bX_d3_r11_center_7_5": 11109, + "surface_code_bX_d3_r13_center_7_5": 9695, + "surface_code_bX_d3_r15_center_7_5": 7370, + "surface_code_bX_d3_r17_center_7_5": 7323, + "surface_code_bX_d3_r19_center_7_5": 10247, + "surface_code_bX_d3_r21_center_7_5": 6718, + "surface_code_bX_d3_r23_center_7_5": 8064, + "surface_code_bX_d3_r25_center_7_5": 8018, + "surface_code_bZ_d3_r01_center_3_5": 2856, + "surface_code_bZ_d3_r03_center_3_5": 6780, + "surface_code_bZ_d3_r05_center_3_5": 8610, + "surface_code_bZ_d3_r07_center_3_5": 9152, + "surface_code_bZ_d3_r09_center_3_5": 4522, + "surface_code_bZ_d3_r11_center_3_5": 3703, + "surface_code_bZ_d3_r13_center_3_5": 6001, + "surface_code_bZ_d3_r15_center_3_5": 7377, + "surface_code_bZ_d3_r17_center_3_5": 4517, + "surface_code_bZ_d3_r19_center_3_5": 10242, + "surface_code_bZ_d3_r21_center_3_5": 6747, + "surface_code_bZ_d3_r23_center_3_5": 7422, + "surface_code_bZ_d3_r25_center_3_5": 10606, + "surface_code_bZ_d3_r01_center_5_3": 5272, + "surface_code_bZ_d3_r03_center_5_3": 11200, + "surface_code_bZ_d3_r05_center_5_3": 4514, + "surface_code_bZ_d3_r07_center_5_3": 8002, + "surface_code_bZ_d3_r09_center_5_3": 8008, + "surface_code_bZ_d3_r11_center_5_3": 8689, + "surface_code_bZ_d3_r13_center_5_3": 8604, + "surface_code_bZ_d3_r15_center_5_3": 5981, + "surface_code_bZ_d3_r17_center_5_3": 5307, + "surface_code_bZ_d3_r19_center_5_3": 6713, + "surface_code_bZ_d3_r21_center_5_3": 8570, + "surface_code_bZ_d3_r23_center_5_3": 6700, + "surface_code_bZ_d3_r25_center_5_3": 10199, + "surface_code_bZ_d3_r01_center_5_7": 6730, + "surface_code_bZ_d3_r03_center_5_7": 7959, + "surface_code_bZ_d3_r05_center_5_7": 9741, + "surface_code_bZ_d3_r07_center_5_7": 10727, + "surface_code_bZ_d3_r09_center_5_7": 11979, + "surface_code_bZ_d3_r11_center_5_7": 3694, + "surface_code_bZ_d3_r13_center_5_7": 6746, + "surface_code_bZ_d3_r15_center_5_7": 6686, + "surface_code_bZ_d3_r17_center_5_7": 10647, + "surface_code_bZ_d3_r19_center_5_7": 8011, + "surface_code_bZ_d3_r21_center_5_7": 6000, + "surface_code_bZ_d3_r23_center_5_7": 9176, + "surface_code_bZ_d3_r25_center_5_7": 6009, + "surface_code_bZ_d3_r01_center_7_5": 9076, + "surface_code_bZ_d3_r03_center_7_5": 9182, + "surface_code_bZ_d3_r05_center_7_5": 6769, + "surface_code_bZ_d3_r07_center_7_5": 11140, + "surface_code_bZ_d3_r09_center_7_5": 7359, + "surface_code_bZ_d3_r11_center_7_5": 8582, + "surface_code_bZ_d3_r13_center_7_5": 5284, + "surface_code_bZ_d3_r15_center_7_5": 6694, + "surface_code_bZ_d3_r17_center_7_5": 5965, + "surface_code_bZ_d3_r19_center_7_5": 6016, + "surface_code_bZ_d3_r21_center_7_5": 9225, + "surface_code_bZ_d3_r23_center_7_5": 4509, + "surface_code_bZ_d3_r25_center_7_5": 6694 + }, + "steps": 1024, + "batch_size": 256, + "accumulate_conditions": 4, + "effective_batch_size": 1024, + "condition_policy": "same", + "training_draws": 1048576, + "condition_sampling": "Draw one condition index per microbatch in both arms; same-condition control reuses the first index while mixed arm uses all indices. Both arms consume identical RNG draws with equal-sized condition pools.", + "optimizer": "AdamW, weight decay 1e-4, global gradient norm clip 1", + "learning_rate": 0.00025, + "sampling_seed": 20261190, + "optimizer_restored": false, + "rng_restored": false, + "explicit_optimizer_reset": true, + "explicit_rng_reset": true, + "sampling_state_source": "Fresh NumPy default_rng seed 20261190", + "session_trained_starting_checkpoint": "/run-state/workspace/research/learned_exact/temporal2_swa/weights-mean3.npz", + "starting_checkpoint_sha256": "a61fb22f803b795c2a39b6c19dc3a368d536cb21419ba773778601b28e4403fe", + "starting_training_provenance": { + "initialization": "Uniform averages of the same session-trained temporal trajectory; no external weights", + "optimizer_updates_in_derived_run": 0, + "source_training_provenance": { + "initialization": "Continue from this session's trained checkpoint", + "original_initialization": "Rich network random seed20261030; new 32-channel temporal network random seed20261104; rich parameters retained, new input rows Normal(0,.001)", + "rich_starting_checkpoint": "/run-state/workspace/research/learned_exact/rich1/weights-1024.npz", + "rich_checkpoint_sha256": "04fea2cf8c598cd5587d450b50cdce58aee9a8c770a2c2da57d7a48e3bf3e2a6", + "architecture": "Rich 128-unit MLP plus 32-channel temporal encoder: four residual kernel3 convolutions with dilations1/2/4/8 and channel normalization. Receptive field31 rounds. Encoder sees events, measurements and presence masks. Per-edge 177 input features. Output4*tanh.", + "training": "Uniform condition sampling from all 104 d3 conditions; batch drawn from the supplied training split only", + "training_source_sha256": { + "learned_exact__temporal_train.py": "7d48d2fc7f62d0bec3023b3df1c2ac28537d0417966131ae3a156697a34cda5f", + "learned_exact__temporal_model.py": "76fd01d5ae50f7d0b5790800898e7103ddb86db8f6a2ace883407515add2e186", + "learned_exact__data.py": "6f88582230aec7bbf35170a672ff615cac0cf18c0a690b2983874bb4c02c75e6", + "learned_exact__gradient.py": "ecb6b45698480386fa124fe878db7dbfa246d1969fd720ec26daff9547da2001", + "exact_d3__exact.py": "869dfacb295c419c156d1070fc2afdd6e20d02ac1840e45e72346b2b289f4825" + }, + "runtime_versions": { + "jax": "0.7.2", + "numpy": "2.3.3", + "optax": "0.2.6" + }, + "eligible_training_shots": 2067520, + "unique_training_rows_seen_in_this_phase": 1778773, + "unique_rows_by_condition": { + "surface_code_bX_d3_r01_center_3_5": 18357, + "surface_code_bX_d3_r03_center_3_5": 16816, + "surface_code_bX_d3_r05_center_3_5": 17999, + "surface_code_bX_d3_r07_center_3_5": 15225, + "surface_code_bX_d3_r09_center_3_5": 16132, + "surface_code_bX_d3_r11_center_3_5": 17041, + "surface_code_bX_d3_r13_center_3_5": 18477, + "surface_code_bX_d3_r15_center_3_5": 18214, + "surface_code_bX_d3_r17_center_3_5": 16505, + "surface_code_bX_d3_r19_center_3_5": 17120, + "surface_code_bX_d3_r21_center_3_5": 17563, + "surface_code_bX_d3_r23_center_3_5": 16681, + "surface_code_bX_d3_r25_center_3_5": 18379, + "surface_code_bX_d3_r01_center_5_3": 17450, + "surface_code_bX_d3_r03_center_5_3": 17161, + "surface_code_bX_d3_r05_center_5_3": 15797, + "surface_code_bX_d3_r07_center_5_3": 17800, + "surface_code_bX_d3_r09_center_5_3": 17190, + "surface_code_bX_d3_r11_center_5_3": 15840, + "surface_code_bX_d3_r13_center_5_3": 15178, + "surface_code_bX_d3_r15_center_5_3": 14897, + "surface_code_bX_d3_r17_center_5_3": 18252, + "surface_code_bX_d3_r19_center_5_3": 17083, + "surface_code_bX_d3_r21_center_5_3": 17229, + "surface_code_bX_d3_r23_center_5_3": 14735, + "surface_code_bX_d3_r25_center_5_3": 17949, + "surface_code_bX_d3_r01_center_5_7": 17431, + "surface_code_bX_d3_r03_center_5_7": 16583, + "surface_code_bX_d3_r05_center_5_7": 16891, + "surface_code_bX_d3_r07_center_5_7": 17969, + "surface_code_bX_d3_r09_center_5_7": 17966, + "surface_code_bX_d3_r11_center_5_7": 14424, + "surface_code_bX_d3_r13_center_5_7": 16930, + "surface_code_bX_d3_r15_center_5_7": 15205, + "surface_code_bX_d3_r17_center_5_7": 18252, + "surface_code_bX_d3_r19_center_5_7": 17077, + "surface_code_bX_d3_r21_center_5_7": 16770, + "surface_code_bX_d3_r23_center_5_7": 17308, + "surface_code_bX_d3_r25_center_5_7": 17481, + "surface_code_bX_d3_r01_center_7_5": 16630, + "surface_code_bX_d3_r03_center_7_5": 17439, + "surface_code_bX_d3_r05_center_7_5": 15811, + "surface_code_bX_d3_r07_center_7_5": 16637, + "surface_code_bX_d3_r09_center_7_5": 18306, + "surface_code_bX_d3_r11_center_7_5": 18327, + "surface_code_bX_d3_r13_center_7_5": 17974, + "surface_code_bX_d3_r15_center_7_5": 16106, + "surface_code_bX_d3_r17_center_7_5": 15834, + "surface_code_bX_d3_r19_center_7_5": 17242, + "surface_code_bX_d3_r21_center_7_5": 17889, + "surface_code_bX_d3_r23_center_7_5": 17440, + "surface_code_bX_d3_r25_center_7_5": 17087, + "surface_code_bZ_d3_r01_center_3_5": 16236, + "surface_code_bZ_d3_r03_center_3_5": 17278, + "surface_code_bZ_d3_r05_center_3_5": 16577, + "surface_code_bZ_d3_r07_center_3_5": 17376, + "surface_code_bZ_d3_r09_center_3_5": 16000, + "surface_code_bZ_d3_r11_center_3_5": 15634, + "surface_code_bZ_d3_r13_center_3_5": 14950, + "surface_code_bZ_d3_r15_center_3_5": 16600, + "surface_code_bZ_d3_r17_center_3_5": 15381, + "surface_code_bZ_d3_r19_center_3_5": 16823, + "surface_code_bZ_d3_r21_center_3_5": 18789, + "surface_code_bZ_d3_r23_center_3_5": 15616, + "surface_code_bZ_d3_r25_center_3_5": 17088, + "surface_code_bZ_d3_r01_center_5_3": 17935, + "surface_code_bZ_d3_r03_center_5_3": 16256, + "surface_code_bZ_d3_r05_center_5_3": 17959, + "surface_code_bZ_d3_r07_center_5_3": 18401, + "surface_code_bZ_d3_r09_center_5_3": 16405, + "surface_code_bZ_d3_r11_center_5_3": 17274, + "surface_code_bZ_d3_r13_center_5_3": 18172, + "surface_code_bZ_d3_r15_center_5_3": 17525, + "surface_code_bZ_d3_r17_center_5_3": 18643, + "surface_code_bZ_d3_r19_center_5_3": 17816, + "surface_code_bZ_d3_r21_center_5_3": 17404, + "surface_code_bZ_d3_r23_center_5_3": 17253, + "surface_code_bZ_d3_r25_center_5_3": 17667, + "surface_code_bZ_d3_r01_center_5_7": 16203, + "surface_code_bZ_d3_r03_center_5_7": 17214, + "surface_code_bZ_d3_r05_center_5_7": 16799, + "surface_code_bZ_d3_r07_center_5_7": 17896, + "surface_code_bZ_d3_r09_center_5_7": 16411, + "surface_code_bZ_d3_r11_center_5_7": 17726, + "surface_code_bZ_d3_r13_center_5_7": 16313, + "surface_code_bZ_d3_r15_center_5_7": 17824, + "surface_code_bZ_d3_r17_center_5_7": 15656, + "surface_code_bZ_d3_r19_center_5_7": 17169, + "surface_code_bZ_d3_r21_center_5_7": 17194, + "surface_code_bZ_d3_r23_center_5_7": 16779, + "surface_code_bZ_d3_r25_center_5_7": 16970, + "surface_code_bZ_d3_r01_center_7_5": 16762, + "surface_code_bZ_d3_r03_center_7_5": 17320, + "surface_code_bZ_d3_r05_center_7_5": 17522, + "surface_code_bZ_d3_r07_center_7_5": 17914, + "surface_code_bZ_d3_r09_center_7_5": 18439, + "surface_code_bZ_d3_r11_center_7_5": 18218, + "surface_code_bZ_d3_r13_center_7_5": 17907, + "surface_code_bZ_d3_r15_center_7_5": 17597, + "surface_code_bZ_d3_r17_center_7_5": 18252, + "surface_code_bZ_d3_r19_center_7_5": 18379, + "surface_code_bZ_d3_r21_center_7_5": 16818, + "surface_code_bZ_d3_r23_center_7_5": 18430, + "surface_code_bZ_d3_r25_center_7_5": 17924 + }, + "steps": 4096, + "batch_size": 1024, + "optimizer": "AdamW, weight decay 1e-4, global gradient norm clip 1", + "learning_rate": 0.0005, + "sampling_seed": 20261121, + "optimizer_restored": true, + "rng_restored": true, + "sampling_state_source": "/run-state/workspace/research/learned_exact/temporal1/rng-2048.json", + "session_trained_starting_checkpoint": "/run-state/workspace/research/learned_exact/temporal1/weights-2048.npz", + "starting_checkpoint_sha256": "26be9e0259b69a5870bf73e80a5a29fcf3519a3ff63e1d219c57a2113d9d34be", + "starting_training_provenance": { + "initialization": "Continue from rich weights trained from random initialization in this session; new temporal parameters randomly initialized now", + "original_initialization": "Rich network random seed20261030; new 32-channel temporal network random seed20261104; rich parameters retained, new input rows Normal(0,.001)", + "rich_starting_checkpoint": "/run-state/workspace/research/learned_exact/rich1/weights-1024.npz", + "rich_checkpoint_sha256": "04fea2cf8c598cd5587d450b50cdce58aee9a8c770a2c2da57d7a48e3bf3e2a6", + "architecture": "Rich 128-unit MLP plus 32-channel temporal encoder: four residual kernel3 convolutions with dilations1/2/4/8 and channel normalization. Receptive field31 rounds. Encoder sees events, measurements and presence masks. Per-edge 177 input features. Output4*tanh.", + "training": "Uniform condition sampling from all 104 d3 conditions; batch drawn from the supplied training split only", + "steps": 2048, + "batch_size": 1024, + "optimizer": "AdamW, weight decay 1e-4, global gradient norm clip 1", + "learning_rate": 0.001, + "sampling_seed": 20261111, + "optimizer_restored": false, + "rng_restored": false, + "session_trained_starting_checkpoint": null, + "starting_checkpoint_sha256": null, + "loss": "Binary conditional logical likelihood computed by exact frontier elimination", + "validation_shots_per_condition": 1024, + "uniform_validation": true, + "uniform_validation_seed": 20261028, + "test_data_used": false, + "log": [ + { + "step": 1, + "loss": 0.6317505836486816, + "error": 0.3681640625, + "gradient_norm": 0.04013459011912346, + "elapsed": 30.971998691558838 + }, + { + "step": 16, + "loss": 0.5091081857681274, + "error": 0.291015625, + "gradient_norm": 0.042228709906339645, + "elapsed": 35.17463397979736 + }, + { + "step": 32, + "loss": 0.626472532749176, + "error": 0.3642578125, + "gradient_norm": 0.05872415751218796, + "elapsed": 39.678136110305786 + }, + { + "step": 48, + "loss": 0.6005369424819946, + "error": 0.3515625, + "gradient_norm": 0.03848014399409294, + "elapsed": 44.16946887969971 + }, + { + "step": 64, + "loss": 0.5523768663406372, + "error": 0.302734375, + "gradient_norm": 0.06031862646341324, + "elapsed": 48.65217089653015 + }, + { + "step": 80, + "loss": 0.3981674611568451, + "error": 0.19921875, + "gradient_norm": 0.0542079322040081, + "elapsed": 53.21601867675781 + }, + { + "step": 96, + "loss": 0.5601426362991333, + "error": 0.2978515625, + "gradient_norm": 0.04770371690392494, + "elapsed": 57.81089663505554 + }, + { + "step": 112, + "loss": 0.5878150463104248, + "error": 0.34765625, + "gradient_norm": 0.10699950158596039, + "elapsed": 62.42190766334534 + }, + { + "step": 128, + "loss": 0.5232458114624023, + "error": 0.2861328125, + "gradient_norm": 0.0911584198474884, + "elapsed": 67.00223755836487 + }, + { + "step": 144, + "loss": 0.6119767427444458, + "error": 0.3623046875, + "gradient_norm": 0.062474437057971954, + "elapsed": 71.54070782661438 + }, + { + "step": 160, + "loss": 0.3037984371185303, + "error": 0.1474609375, + "gradient_norm": 0.05718141421675682, + "elapsed": 76.08167362213135 + }, + { + "step": 176, + "loss": 0.6038273572921753, + "error": 0.3662109375, + "gradient_norm": 0.0437164381146431, + "elapsed": 80.71864247322083 + }, + { + "step": 192, + "loss": 0.3304370641708374, + "error": 0.1572265625, + "gradient_norm": 0.05684761330485344, + "elapsed": 85.54437017440796 + }, + { + "step": 208, + "loss": 0.5785484313964844, + "error": 0.3251953125, + "gradient_norm": 0.09597272425889969, + "elapsed": 91.51522874832153 + }, + { + "step": 224, + "loss": 0.3110499978065491, + "error": 0.13671875, + "gradient_norm": 0.04815748706459999, + "elapsed": 97.1228940486908 + }, + { + "step": 240, + "loss": 0.6213864684104919, + "error": 0.3623046875, + "gradient_norm": 0.0540502592921257, + "elapsed": 102.90286135673523 + }, + { + "step": 256, + "loss": 0.2535272240638733, + "error": 0.1064453125, + "gradient_norm": 0.029962118715047836, + "elapsed": 108.39288640022278 + }, + { + "step": 272, + "loss": 0.6126939058303833, + "error": 0.3671875, + "gradient_norm": 0.06887879222631454, + "elapsed": 113.83897161483765 + }, + { + "step": 288, + "loss": 0.4556676149368286, + "error": 0.2236328125, + "gradient_norm": 0.16127081215381622, + "elapsed": 119.93085813522339 + }, + { + "step": 304, + "loss": 0.4973585605621338, + "error": 0.255859375, + "gradient_norm": 0.08082302659749985, + "elapsed": 125.90891909599304 + }, + { + "step": 320, + "loss": 0.6455868482589722, + "error": 0.419921875, + "gradient_norm": 0.04339660331606865, + "elapsed": 131.20537638664246 + }, + { + "step": 336, + "loss": 0.5343132615089417, + "error": 0.2880859375, + "gradient_norm": 0.07518009096384048, + "elapsed": 136.59086871147156 + }, + { + "step": 352, + "loss": 0.6505346894264221, + "error": 0.4033203125, + "gradient_norm": 0.03800992667675018, + "elapsed": 142.21085906028748 + }, + { + "step": 368, + "loss": 0.4882712960243225, + "error": 0.251953125, + "gradient_norm": 0.08170920610427856, + "elapsed": 146.95903658866882 + }, + { + "step": 384, + "loss": 0.5292021036148071, + "error": 0.296875, + "gradient_norm": 0.08454013615846634, + "elapsed": 151.6385259628296 + }, + { + "step": 400, + "loss": 0.6272899508476257, + "error": 0.3837890625, + "gradient_norm": 0.051436979323625565, + "elapsed": 156.3343904018402 + }, + { + "step": 416, + "loss": 0.052130259573459625, + "error": 0.0166015625, + "gradient_norm": 0.02377190627157688, + "elapsed": 160.92345547676086 + }, + { + "step": 432, + "loss": 0.5256737470626831, + "error": 0.3046875, + "gradient_norm": 0.07986386120319366, + "elapsed": 165.52879118919373 + }, + { + "step": 448, + "loss": 0.15193665027618408, + "error": 0.0576171875, + "gradient_norm": 0.06491660326719284, + "elapsed": 170.14827823638916 + }, + { + "step": 464, + "loss": 0.6418055295944214, + "error": 0.40625, + "gradient_norm": 0.07290885597467422, + "elapsed": 174.64974284172058 + }, + { + "step": 480, + "loss": 0.6055159568786621, + "error": 0.357421875, + "gradient_norm": 0.0795595794916153, + "elapsed": 179.17218685150146 + }, + { + "step": 496, + "loss": 0.6372283697128296, + "error": 0.3916015625, + "gradient_norm": 0.04387903958559036, + "elapsed": 183.77568197250366 + }, + { + "step": 512, + "loss": 0.637977123260498, + "error": 0.408203125, + "gradient_norm": 0.060665905475616455, + "elapsed": 188.31205368041992 + }, + { + "step": 528, + "loss": 0.4668862223625183, + "error": 0.2451171875, + "gradient_norm": 0.08566711097955704, + "elapsed": 206.40719985961914 + }, + { + "step": 544, + "loss": 0.4584413170814514, + "error": 0.244140625, + "gradient_norm": 0.08538200706243515, + "elapsed": 211.02819895744324 + }, + { + "step": 560, + "loss": 0.5615692138671875, + "error": 0.3291015625, + "gradient_norm": 0.043748609721660614, + "elapsed": 215.66470766067505 + }, + { + "step": 576, + "loss": 0.5151895880699158, + "error": 0.2880859375, + "gradient_norm": 0.05164863541722298, + "elapsed": 220.18949556350708 + }, + { + "step": 592, + "loss": 0.5618112087249756, + "error": 0.3291015625, + "gradient_norm": 0.05998719856142998, + "elapsed": 224.7216100692749 + }, + { + "step": 608, + "loss": 0.659294843673706, + "error": 0.431640625, + "gradient_norm": 0.09910348802804947, + "elapsed": 229.26827573776245 + }, + { + "step": 624, + "loss": 0.5895233154296875, + "error": 0.3447265625, + "gradient_norm": 0.045334093272686005, + "elapsed": 233.83731055259705 + }, + { + "step": 640, + "loss": 0.6081801056861877, + "error": 0.3388671875, + "gradient_norm": 0.06578423827886581, + "elapsed": 238.36345624923706 + }, + { + "step": 656, + "loss": 0.5349816083908081, + "error": 0.2939453125, + "gradient_norm": 0.09989562630653381, + "elapsed": 242.95086026191711 + }, + { + "step": 672, + "loss": 0.5871994495391846, + "error": 0.328125, + "gradient_norm": 0.08132346719503403, + "elapsed": 247.67088556289673 + }, + { + "step": 688, + "loss": 0.06012660637497902, + "error": 0.0146484375, + "gradient_norm": 0.012170507572591305, + "elapsed": 252.3202247619629 + }, + { + "step": 704, + "loss": 0.42179757356643677, + "error": 0.21484375, + "gradient_norm": 0.08384513854980469, + "elapsed": 256.91991782188416 + }, + { + "step": 720, + "loss": 0.6111758947372437, + "error": 0.3720703125, + "gradient_norm": 0.06689880788326263, + "elapsed": 261.56407928466797 + }, + { + "step": 736, + "loss": 0.29969727993011475, + "error": 0.1318359375, + "gradient_norm": 0.0743367150425911, + "elapsed": 266.22199630737305 + }, + { + "step": 752, + "loss": 0.051849883049726486, + "error": 0.0166015625, + "gradient_norm": 0.017005126923322678, + "elapsed": 270.8602342605591 + }, + { + "step": 768, + "loss": 0.6178420186042786, + "error": 0.3759765625, + "gradient_norm": 0.027732960879802704, + "elapsed": 275.47888374328613 + }, + { + "step": 784, + "loss": 0.45798996090888977, + "error": 0.228515625, + "gradient_norm": 0.0630083829164505, + "elapsed": 280.1709156036377 + }, + { + "step": 800, + "loss": 0.5104988813400269, + "error": 0.2724609375, + "gradient_norm": 0.041733670979738235, + "elapsed": 286.17937707901 + }, + { + "step": 816, + "loss": 0.6336112022399902, + "error": 0.3837890625, + "gradient_norm": 0.0755191296339035, + "elapsed": 291.7506103515625 + }, + { + "step": 832, + "loss": 0.6260952353477478, + "error": 0.3603515625, + "gradient_norm": 0.0318005345761776, + "elapsed": 297.31094622612 + }, + { + "step": 848, + "loss": 0.5870074033737183, + "error": 0.3525390625, + "gradient_norm": 0.12073405832052231, + "elapsed": 303.11089158058167 + }, + { + "step": 864, + "loss": 0.5125640034675598, + "error": 0.26953125, + "gradient_norm": 0.038650237023830414, + "elapsed": 308.7288725376129 + }, + { + "step": 880, + "loss": 0.19194915890693665, + "error": 0.0703125, + "gradient_norm": 0.061878547072410583, + "elapsed": 314.37042355537415 + }, + { + "step": 896, + "loss": 0.5409250259399414, + "error": 0.2919921875, + "gradient_norm": 0.06288820505142212, + "elapsed": 319.9398190975189 + }, + { + "step": 912, + "loss": 0.6164936423301697, + "error": 0.3701171875, + "gradient_norm": 0.043224163353443146, + "elapsed": 325.361323595047 + }, + { + "step": 928, + "loss": 0.16032151877880096, + "error": 0.0625, + "gradient_norm": 0.030957572162151337, + "elapsed": 331.21752285957336 + }, + { + "step": 944, + "loss": 0.646601676940918, + "error": 0.3818359375, + "gradient_norm": 0.05670839175581932, + "elapsed": 336.7825517654419 + }, + { + "step": 960, + "loss": 0.402952641248703, + "error": 0.1865234375, + "gradient_norm": 0.07500886172056198, + "elapsed": 342.6888346672058 + }, + { + "step": 976, + "loss": 0.5537433624267578, + "error": 0.2939453125, + "gradient_norm": 0.04955969750881195, + "elapsed": 348.5554690361023 + }, + { + "step": 992, + "loss": 0.559626579284668, + "error": 0.294921875, + "gradient_norm": 0.048295993357896805, + "elapsed": 354.3531894683838 + }, + { + "step": 1008, + "loss": 0.5034694671630859, + "error": 0.2705078125, + "gradient_norm": 0.05729879066348076, + "elapsed": 360.0949149131775 + }, + { + "step": 1024, + "loss": 0.3119734525680542, + "error": 0.1259765625, + "gradient_norm": 0.052326612174510956, + "elapsed": 365.7881224155426 + }, + { + "step": 1040, + "loss": 0.35799849033355713, + "error": 0.173828125, + "gradient_norm": 0.03801804035902023, + "elapsed": 386.5749418735504 + }, + { + "step": 1056, + "loss": 0.6178948879241943, + "error": 0.3515625, + "gradient_norm": 0.03620661422610283, + "elapsed": 391.48247838020325 + }, + { + "step": 1072, + "loss": 0.49231401085853577, + "error": 0.24609375, + "gradient_norm": 0.04391559213399887, + "elapsed": 396.08718824386597 + }, + { + "step": 1088, + "loss": 0.4119300842285156, + "error": 0.2001953125, + "gradient_norm": 0.1104700043797493, + "elapsed": 400.5326828956604 + }, + { + "step": 1104, + "loss": 0.4926626682281494, + "error": 0.265625, + "gradient_norm": 0.04246886447072029, + "elapsed": 404.95741271972656 + }, + { + "step": 1120, + "loss": 0.5027930736541748, + "error": 0.2607421875, + "gradient_norm": 0.0547240674495697, + "elapsed": 409.40319633483887 + }, + { + "step": 1136, + "loss": 0.5948058366775513, + "error": 0.3544921875, + "gradient_norm": 0.06810063123703003, + "elapsed": 413.8514006137848 + }, + { + "step": 1152, + "loss": 0.26567256450653076, + "error": 0.125, + "gradient_norm": 0.06689104437828064, + "elapsed": 418.29868721961975 + }, + { + "step": 1168, + "loss": 0.2866836190223694, + "error": 0.1240234375, + "gradient_norm": 0.029536213725805283, + "elapsed": 422.75131845474243 + }, + { + "step": 1184, + "loss": 0.6342021822929382, + "error": 0.4091796875, + "gradient_norm": 0.0704190731048584, + "elapsed": 427.1991722583771 + }, + { + "step": 1200, + "loss": 0.41626787185668945, + "error": 0.212890625, + "gradient_norm": 0.04480795934796333, + "elapsed": 431.6600706577301 + }, + { + "step": 1216, + "loss": 0.28460952639579773, + "error": 0.1337890625, + "gradient_norm": 0.03666983172297478, + "elapsed": 436.14414525032043 + }, + { + "step": 1232, + "loss": 0.044482216238975525, + "error": 0.0146484375, + "gradient_norm": 0.04537617415189743, + "elapsed": 440.6220428943634 + }, + { + "step": 1248, + "loss": 0.42564862966537476, + "error": 0.2119140625, + "gradient_norm": 0.03382417559623718, + "elapsed": 445.06736421585083 + }, + { + "step": 1264, + "loss": 0.27150213718414307, + "error": 0.123046875, + "gradient_norm": 0.033046118915081024, + "elapsed": 449.544029712677 + }, + { + "step": 1280, + "loss": 0.4927375912666321, + "error": 0.255859375, + "gradient_norm": 0.06812550127506256, + "elapsed": 454.07198667526245 + }, + { + "step": 1296, + "loss": 0.5541940927505493, + "error": 0.28125, + "gradient_norm": 0.1435294896364212, + "elapsed": 458.6031415462494 + }, + { + "step": 1312, + "loss": 0.5575842261314392, + "error": 0.2958984375, + "gradient_norm": 0.03811952844262123, + "elapsed": 463.1806228160858 + }, + { + "step": 1328, + "loss": 0.3479428291320801, + "error": 0.1591796875, + "gradient_norm": 0.0709012895822525, + "elapsed": 467.84689688682556 + }, + { + "step": 1344, + "loss": 0.1685580611228943, + "error": 0.0693359375, + "gradient_norm": 0.05423415079712868, + "elapsed": 472.6908576488495 + }, + { + "step": 1360, + "loss": 0.18506410717964172, + "error": 0.0771484375, + "gradient_norm": 0.03418596833944321, + "elapsed": 477.4269769191742 + }, + { + "step": 1376, + "loss": 0.5654555559158325, + "error": 0.3173828125, + "gradient_norm": 0.0685155838727951, + "elapsed": 482.08285188674927 + }, + { + "step": 1392, + "loss": 0.6116407513618469, + "error": 0.3603515625, + "gradient_norm": 0.05198948457837105, + "elapsed": 486.7167499065399 + }, + { + "step": 1408, + "loss": 0.4014682471752167, + "error": 0.19140625, + "gradient_norm": 0.1024075523018837, + "elapsed": 491.4308760166168 + }, + { + "step": 1424, + "loss": 0.051035866141319275, + "error": 0.0166015625, + "gradient_norm": 0.010207361541688442, + "elapsed": 496.1818380355835 + }, + { + "step": 1440, + "loss": 0.4725648760795593, + "error": 0.2412109375, + "gradient_norm": 0.03977378085255623, + "elapsed": 500.8668632507324 + }, + { + "step": 1456, + "loss": 0.5407818555831909, + "error": 0.2939453125, + "gradient_norm": 0.088577501475811, + "elapsed": 505.49274134635925 + }, + { + "step": 1472, + "loss": 0.5655064582824707, + "error": 0.3076171875, + "gradient_norm": 0.04452778398990631, + "elapsed": 510.2188584804535 + }, + { + "step": 1488, + "loss": 0.5799556374549866, + "error": 0.30859375, + "gradient_norm": 0.03976206108927727, + "elapsed": 514.9319434165955 + }, + { + "step": 1504, + "loss": 0.4660354256629944, + "error": 0.25390625, + "gradient_norm": 0.04365506023168564, + "elapsed": 519.5848798751831 + }, + { + "step": 1520, + "loss": 0.5505894422531128, + "error": 0.30859375, + "gradient_norm": 0.057772211730480194, + "elapsed": 524.3388590812683 + }, + { + "step": 1536, + "loss": 0.6251416206359863, + "error": 0.400390625, + "gradient_norm": 0.09649194777011871, + "elapsed": 529.483047246933 + }, + { + "step": 1552, + "loss": 0.05424533039331436, + "error": 0.0185546875, + "gradient_norm": 0.011683990247547626, + "elapsed": 548.1828610897064 + }, + { + "step": 1568, + "loss": 0.33612310886383057, + "error": 0.1611328125, + "gradient_norm": 0.051817383617162704, + "elapsed": 553.4256420135498 + }, + { + "step": 1584, + "loss": 0.045015305280685425, + "error": 0.0166015625, + "gradient_norm": 0.022604886442422867, + "elapsed": 558.6308543682098 + }, + { + "step": 1600, + "loss": 0.2701840102672577, + "error": 0.119140625, + "gradient_norm": 0.02910422720015049, + "elapsed": 563.8571691513062 + }, + { + "step": 1616, + "loss": 0.18982334434986115, + "error": 0.0849609375, + "gradient_norm": 0.025524422526359558, + "elapsed": 568.8628678321838 + }, + { + "step": 1632, + "loss": 0.3950161337852478, + "error": 0.185546875, + "gradient_norm": 0.08419577777385712, + "elapsed": 574.0815451145172 + }, + { + "step": 1648, + "loss": 0.49384528398513794, + "error": 0.255859375, + "gradient_norm": 0.08879344165325165, + "elapsed": 579.1229114532471 + }, + { + "step": 1664, + "loss": 0.5671384930610657, + "error": 0.3115234375, + "gradient_norm": 0.05374513566493988, + "elapsed": 584.114851474762 + }, + { + "step": 1680, + "loss": 0.6192574501037598, + "error": 0.37890625, + "gradient_norm": 0.043836336582899094, + "elapsed": 589.0708522796631 + }, + { + "step": 1696, + "loss": 0.2619469463825226, + "error": 0.1171875, + "gradient_norm": 0.040093280375003815, + "elapsed": 594.2814819812775 + }, + { + "step": 1712, + "loss": 0.33178141713142395, + "error": 0.162109375, + "gradient_norm": 0.04902712255716324, + "elapsed": 599.3068840503693 + }, + { + "step": 1728, + "loss": 0.385281503200531, + "error": 0.171875, + "gradient_norm": 0.03541380167007446, + "elapsed": 604.5308682918549 + }, + { + "step": 1744, + "loss": 0.1628715693950653, + "error": 0.0693359375, + "gradient_norm": 0.06111741065979004, + "elapsed": 609.309522151947 + }, + { + "step": 1760, + "loss": 0.5239119529724121, + "error": 0.2861328125, + "gradient_norm": 0.08513613045215607, + "elapsed": 614.0396001338959 + }, + { + "step": 1776, + "loss": 0.35721707344055176, + "error": 0.150390625, + "gradient_norm": 0.06337940692901611, + "elapsed": 618.6857132911682 + }, + { + "step": 1792, + "loss": 0.5985626578330994, + "error": 0.33203125, + "gradient_norm": 0.035725343972444534, + "elapsed": 623.3352344036102 + }, + { + "step": 1808, + "loss": 0.34676820039749146, + "error": 0.15234375, + "gradient_norm": 0.08163885772228241, + "elapsed": 627.9495220184326 + }, + { + "step": 1824, + "loss": 0.5633711814880371, + "error": 0.3037109375, + "gradient_norm": 0.05938677117228508, + "elapsed": 632.5820379257202 + }, + { + "step": 1840, + "loss": 0.6256523132324219, + "error": 0.384765625, + "gradient_norm": 0.04545137286186218, + "elapsed": 637.205274105072 + }, + { + "step": 1856, + "loss": 0.28091639280319214, + "error": 0.1298828125, + "gradient_norm": 0.04705077037215233, + "elapsed": 641.883561372757 + }, + { + "step": 1872, + "loss": 0.516182541847229, + "error": 0.263671875, + "gradient_norm": 0.08828777819871902, + "elapsed": 646.5188939571381 + }, + { + "step": 1888, + "loss": 0.48386621475219727, + "error": 0.25390625, + "gradient_norm": 0.05322824418544769, + "elapsed": 651.148512840271 + }, + { + "step": 1904, + "loss": 0.6141921281814575, + "error": 0.388671875, + "gradient_norm": 0.050139278173446655, + "elapsed": 655.7796437740326 + }, + { + "step": 1920, + "loss": 0.18002840876579285, + "error": 0.0712890625, + "gradient_norm": 0.04201133921742439, + "elapsed": 660.4064948558807 + }, + { + "step": 1936, + "loss": 0.17531852424144745, + "error": 0.0732421875, + "gradient_norm": 0.024726318195462227, + "elapsed": 664.9991583824158 + }, + { + "step": 1952, + "loss": 0.5088322758674622, + "error": 0.2744140625, + "gradient_norm": 0.04693225398659706, + "elapsed": 669.5544555187225 + }, + { + "step": 1968, + "loss": 0.5684165358543396, + "error": 0.3310546875, + "gradient_norm": 0.031029095873236656, + "elapsed": 674.2354445457458 + }, + { + "step": 1984, + "loss": 0.06459524482488632, + "error": 0.017578125, + "gradient_norm": 0.03600892797112465, + "elapsed": 678.7982559204102 + }, + { + "step": 2000, + "loss": 0.3614455461502075, + "error": 0.1748046875, + "gradient_norm": 0.07060294598340988, + "elapsed": 683.2650325298309 + }, + { + "step": 2016, + "loss": 0.35535523295402527, + "error": 0.166015625, + "gradient_norm": 0.05873403698205948, + "elapsed": 687.7125518321991 + }, + { + "step": 2032, + "loss": 0.5638720989227295, + "error": 0.3232421875, + "gradient_norm": 0.07380504906177521, + "elapsed": 692.1461188793182 + }, + { + "step": 2048, + "loss": 0.5301838517189026, + "error": 0.2919921875, + "gradient_norm": 0.05435395985841751, + "elapsed": 696.6235508918762 + } + ] + }, + "loss": "Binary conditional logical likelihood computed by exact frontier elimination", + "validation_shots_per_condition": 1024, + "uniform_validation": true, + "uniform_validation_seed": 20261028, + "test_data_used": false, + "log": [ + { + "step": 1, + "loss": 0.250907301902771, + "error": 0.1083984375, + "gradient_norm": 0.07171476632356644, + "elapsed": 44.811134576797485 + }, + { + "step": 16, + "loss": 0.5958679914474487, + "error": 0.3662109375, + "gradient_norm": 0.07673005014657974, + "elapsed": 49.90856671333313 + }, + { + "step": 32, + "loss": 0.47648972272872925, + "error": 0.2421875, + "gradient_norm": 0.08561501652002335, + "elapsed": 55.179388761520386 + }, + { + "step": 48, + "loss": 0.06145006790757179, + "error": 0.0234375, + "gradient_norm": 0.01556467730551958, + "elapsed": 61.0339195728302 + }, + { + "step": 64, + "loss": 0.3687053918838501, + "error": 0.1884765625, + "gradient_norm": 0.08752371370792389, + "elapsed": 65.95811891555786 + }, + { + "step": 80, + "loss": 0.6481984853744507, + "error": 0.4140625, + "gradient_norm": 0.05311283841729164, + "elapsed": 70.56021332740784 + }, + { + "step": 96, + "loss": 0.42319929599761963, + "error": 0.2138671875, + "gradient_norm": 0.05047478526830673, + "elapsed": 75.11613631248474 + }, + { + "step": 112, + "loss": 0.47527259588241577, + "error": 0.24609375, + "gradient_norm": 0.038366906344890594, + "elapsed": 79.53446984291077 + }, + { + "step": 128, + "loss": 0.5996723175048828, + "error": 0.3369140625, + "gradient_norm": 0.1213272362947464, + "elapsed": 83.97515749931335 + }, + { + "step": 144, + "loss": 0.04971993714570999, + "error": 0.0146484375, + "gradient_norm": 0.008080735802650452, + "elapsed": 88.44039463996887 + }, + { + "step": 160, + "loss": 0.35900360345840454, + "error": 0.162109375, + "gradient_norm": 0.03359593451023102, + "elapsed": 92.89548206329346 + }, + { + "step": 176, + "loss": 0.5342063903808594, + "error": 0.2978515625, + "gradient_norm": 0.04794691130518913, + "elapsed": 97.35658049583435 + }, + { + "step": 192, + "loss": 0.6300076246261597, + "error": 0.369140625, + "gradient_norm": 0.081769198179245, + "elapsed": 101.81493759155273 + }, + { + "step": 208, + "loss": 0.6191903948783875, + "error": 0.3828125, + "gradient_norm": 0.07145775109529495, + "elapsed": 106.2480263710022 + }, + { + "step": 224, + "loss": 0.5155678391456604, + "error": 0.28515625, + "gradient_norm": 0.06772179156541824, + "elapsed": 110.71284222602844 + }, + { + "step": 240, + "loss": 0.634708046913147, + "error": 0.3857421875, + "gradient_norm": 0.09493093192577362, + "elapsed": 115.14978742599487 + }, + { + "step": 256, + "loss": 0.1840895414352417, + "error": 0.0751953125, + "gradient_norm": 0.025586696341633797, + "elapsed": 119.61202120780945 + }, + { + "step": 272, + "loss": 0.2775103449821472, + "error": 0.12890625, + "gradient_norm": 0.06913147866725922, + "elapsed": 124.02584528923035 + }, + { + "step": 288, + "loss": 0.6163080334663391, + "error": 0.3642578125, + "gradient_norm": 0.05895426496863365, + "elapsed": 128.46512532234192 + }, + { + "step": 304, + "loss": 0.5276986360549927, + "error": 0.287109375, + "gradient_norm": 0.06955187022686005, + "elapsed": 132.89240765571594 + }, + { + "step": 320, + "loss": 0.44859516620635986, + "error": 0.22265625, + "gradient_norm": 0.07272452116012573, + "elapsed": 137.32864713668823 + }, + { + "step": 336, + "loss": 0.48315611481666565, + "error": 0.2626953125, + "gradient_norm": 0.03321139141917229, + "elapsed": 141.80009770393372 + }, + { + "step": 352, + "loss": 0.6107717752456665, + "error": 0.3544921875, + "gradient_norm": 0.05243214592337608, + "elapsed": 146.36439752578735 + }, + { + "step": 368, + "loss": 0.6215153932571411, + "error": 0.357421875, + "gradient_norm": 0.04383325204253197, + "elapsed": 150.99996852874756 + }, + { + "step": 384, + "loss": 0.6130329966545105, + "error": 0.35546875, + "gradient_norm": 0.04113119840621948, + "elapsed": 155.62374639511108 + }, + { + "step": 400, + "loss": 0.30471885204315186, + "error": 0.142578125, + "gradient_norm": 0.04447556659579277, + "elapsed": 160.17594957351685 + }, + { + "step": 416, + "loss": 0.6154489517211914, + "error": 0.37109375, + "gradient_norm": 0.04456057772040367, + "elapsed": 164.7639675140381 + }, + { + "step": 432, + "loss": 0.6134694218635559, + "error": 0.337890625, + "gradient_norm": 0.04219559207558632, + "elapsed": 169.32792139053345 + }, + { + "step": 448, + "loss": 0.5463185906410217, + "error": 0.2939453125, + "gradient_norm": 0.07746092975139618, + "elapsed": 173.88445162773132 + }, + { + "step": 464, + "loss": 0.06016772612929344, + "error": 0.01953125, + "gradient_norm": 0.01364185381680727, + "elapsed": 178.42725706100464 + }, + { + "step": 480, + "loss": 0.388141393661499, + "error": 0.18359375, + "gradient_norm": 0.04870256036520004, + "elapsed": 182.99062085151672 + }, + { + "step": 496, + "loss": 0.44524821639060974, + "error": 0.2216796875, + "gradient_norm": 0.03453445807099342, + "elapsed": 187.56396961212158 + }, + { + "step": 512, + "loss": 0.34312355518341064, + "error": 0.154296875, + "gradient_norm": 0.06794509291648865, + "elapsed": 192.27511191368103 + }, + { + "step": 528, + "loss": 0.19467462599277496, + "error": 0.0771484375, + "gradient_norm": 0.042381469160318375, + "elapsed": 197.7108268737793 + }, + { + "step": 544, + "loss": 0.46226584911346436, + "error": 0.2421875, + "gradient_norm": 0.06073570251464844, + "elapsed": 202.97405791282654 + }, + { + "step": 560, + "loss": 0.525318443775177, + "error": 0.2822265625, + "gradient_norm": 0.06954885274171829, + "elapsed": 208.69676971435547 + }, + { + "step": 576, + "loss": 0.6158387064933777, + "error": 0.349609375, + "gradient_norm": 0.07587578892707825, + "elapsed": 214.80397653579712 + }, + { + "step": 592, + "loss": 0.5515886545181274, + "error": 0.298828125, + "gradient_norm": 0.04969338700175285, + "elapsed": 220.27399611473083 + }, + { + "step": 608, + "loss": 0.18365338444709778, + "error": 0.0654296875, + "gradient_norm": 0.08657706528902054, + "elapsed": 224.81246256828308 + }, + { + "step": 624, + "loss": 0.4578855633735657, + "error": 0.2421875, + "gradient_norm": 0.04942100867629051, + "elapsed": 229.45902252197266 + }, + { + "step": 640, + "loss": 0.37826013565063477, + "error": 0.1865234375, + "gradient_norm": 0.047499872744083405, + "elapsed": 233.9695644378662 + }, + { + "step": 656, + "loss": 0.40863412618637085, + "error": 0.2001953125, + "gradient_norm": 0.07845330238342285, + "elapsed": 238.584894657135 + }, + { + "step": 672, + "loss": 0.5640332698822021, + "error": 0.2880859375, + "gradient_norm": 0.057469289749860764, + "elapsed": 243.0929844379425 + }, + { + "step": 688, + "loss": 0.030216243118047714, + "error": 0.0078125, + "gradient_norm": 0.04682641476392746, + "elapsed": 247.581125497818 + }, + { + "step": 704, + "loss": 0.375002384185791, + "error": 0.1826171875, + "gradient_norm": 0.04864194989204407, + "elapsed": 252.1564691066742 + }, + { + "step": 720, + "loss": 0.5145515203475952, + "error": 0.2744140625, + "gradient_norm": 0.052671682089567184, + "elapsed": 256.6466488838196 + }, + { + "step": 736, + "loss": 0.067174531519413, + "error": 0.0224609375, + "gradient_norm": 0.019299577921628952, + "elapsed": 261.1185076236725 + }, + { + "step": 752, + "loss": 0.24909992516040802, + "error": 0.111328125, + "gradient_norm": 0.06907463818788528, + "elapsed": 265.61960339546204 + }, + { + "step": 768, + "loss": 0.5088074207305908, + "error": 0.2744140625, + "gradient_norm": 0.06963017582893372, + "elapsed": 270.07474064826965 + }, + { + "step": 784, + "loss": 0.3783387839794159, + "error": 0.1826171875, + "gradient_norm": 0.05537794530391693, + "elapsed": 274.52722239494324 + }, + { + "step": 800, + "loss": 0.6107200980186462, + "error": 0.3623046875, + "gradient_norm": 0.0470259003341198, + "elapsed": 279.0401859283447 + }, + { + "step": 816, + "loss": 0.5778236389160156, + "error": 0.3212890625, + "gradient_norm": 0.10146680474281311, + "elapsed": 283.5114622116089 + }, + { + "step": 832, + "loss": 0.576002299785614, + "error": 0.3076171875, + "gradient_norm": 0.07760787010192871, + "elapsed": 288.04797434806824 + }, + { + "step": 848, + "loss": 0.6179666519165039, + "error": 0.3740234375, + "gradient_norm": 0.07383852452039719, + "elapsed": 292.60600209236145 + }, + { + "step": 864, + "loss": 0.3105512857437134, + "error": 0.1455078125, + "gradient_norm": 0.052953749895095825, + "elapsed": 297.12180352211 + }, + { + "step": 880, + "loss": 0.4802623987197876, + "error": 0.2548828125, + "gradient_norm": 0.07736275345087051, + "elapsed": 301.6091134548187 + }, + { + "step": 896, + "loss": 0.5572722554206848, + "error": 0.318359375, + "gradient_norm": 0.053303152322769165, + "elapsed": 306.1978073120117 + }, + { + "step": 912, + "loss": 0.34814420342445374, + "error": 0.1669921875, + "gradient_norm": 0.037726350128650665, + "elapsed": 310.78571581840515 + }, + { + "step": 928, + "loss": 0.41743016242980957, + "error": 0.21875, + "gradient_norm": 0.05238872766494751, + "elapsed": 315.24156188964844 + }, + { + "step": 944, + "loss": 0.5757850408554077, + "error": 0.3173828125, + "gradient_norm": 0.05837905779480934, + "elapsed": 319.78475165367126 + }, + { + "step": 960, + "loss": 0.40727972984313965, + "error": 0.197265625, + "gradient_norm": 0.059294261038303375, + "elapsed": 324.2090265750885 + }, + { + "step": 976, + "loss": 0.32715001702308655, + "error": 0.1533203125, + "gradient_norm": 0.11543179303407669, + "elapsed": 328.6462152004242 + }, + { + "step": 992, + "loss": 0.5578742623329163, + "error": 0.314453125, + "gradient_norm": 0.06282714009284973, + "elapsed": 333.0712504386902 + }, + { + "step": 1008, + "loss": 0.5052692294120789, + "error": 0.265625, + "gradient_norm": 0.04039420187473297, + "elapsed": 337.5182821750641 + }, + { + "step": 1024, + "loss": 0.18790806829929352, + "error": 0.08203125, + "gradient_norm": 0.028905188664793968, + "elapsed": 342.08340406417847 + }, + { + "step": 1040, + "loss": 0.6317684650421143, + "error": 0.3681640625, + "gradient_norm": 0.03441835194826126, + "elapsed": 358.8279616832733 + }, + { + "step": 1056, + "loss": 0.40474164485931396, + "error": 0.2021484375, + "gradient_norm": 0.036449309438467026, + "elapsed": 363.30218267440796 + }, + { + "step": 1072, + "loss": 0.518299400806427, + "error": 0.2666015625, + "gradient_norm": 0.0886964276432991, + "elapsed": 367.87997555732727 + }, + { + "step": 1088, + "loss": 0.2522922158241272, + "error": 0.099609375, + "gradient_norm": 0.07553310692310333, + "elapsed": 372.4414882659912 + }, + { + "step": 1104, + "loss": 0.6214810609817505, + "error": 0.3701171875, + "gradient_norm": 0.10188957303762436, + "elapsed": 376.9120502471924 + }, + { + "step": 1120, + "loss": 0.6307054162025452, + "error": 0.3720703125, + "gradient_norm": 0.07353860139846802, + "elapsed": 381.3824534416199 + }, + { + "step": 1136, + "loss": 0.5259381532669067, + "error": 0.2763671875, + "gradient_norm": 0.05779678374528885, + "elapsed": 385.8413143157959 + }, + { + "step": 1152, + "loss": 0.4995541572570801, + "error": 0.259765625, + "gradient_norm": 0.046648140996694565, + "elapsed": 390.28326058387756 + }, + { + "step": 1168, + "loss": 0.6075694561004639, + "error": 0.3701171875, + "gradient_norm": 0.10612073540687561, + "elapsed": 394.8162364959717 + }, + { + "step": 1184, + "loss": 0.2105136513710022, + "error": 0.080078125, + "gradient_norm": 0.0716402605175972, + "elapsed": 399.2960283756256 + }, + { + "step": 1200, + "loss": 0.6371631026268005, + "error": 0.3857421875, + "gradient_norm": 0.0549108125269413, + "elapsed": 403.7899103164673 + }, + { + "step": 1216, + "loss": 0.5450670719146729, + "error": 0.2939453125, + "gradient_norm": 0.11688558012247086, + "elapsed": 408.34677600860596 + }, + { + "step": 1232, + "loss": 0.035783201456069946, + "error": 0.01171875, + "gradient_norm": 0.02951689623296261, + "elapsed": 412.8558337688446 + }, + { + "step": 1248, + "loss": 0.5582903623580933, + "error": 0.3046875, + "gradient_norm": 0.055107031017541885, + "elapsed": 417.29854226112366 + }, + { + "step": 1264, + "loss": 0.5154441595077515, + "error": 0.27734375, + "gradient_norm": 0.04474929720163345, + "elapsed": 421.7792055606842 + }, + { + "step": 1280, + "loss": 0.35227546095848083, + "error": 0.16015625, + "gradient_norm": 0.05024837702512741, + "elapsed": 426.54427456855774 + }, + { + "step": 1296, + "loss": 0.19417589902877808, + "error": 0.0830078125, + "gradient_norm": 0.026926057413220406, + "elapsed": 431.320588350296 + }, + { + "step": 1312, + "loss": 0.4768218398094177, + "error": 0.248046875, + "gradient_norm": 0.15099607408046722, + "elapsed": 435.96817326545715 + }, + { + "step": 1328, + "loss": 0.48580923676490784, + "error": 0.2509765625, + "gradient_norm": 0.08925126492977142, + "elapsed": 440.64917039871216 + }, + { + "step": 1344, + "loss": 0.42041274905204773, + "error": 0.1982421875, + "gradient_norm": 0.08321093022823334, + "elapsed": 445.34370946884155 + }, + { + "step": 1360, + "loss": 0.06403929740190506, + "error": 0.0185546875, + "gradient_norm": 0.03817005455493927, + "elapsed": 449.98669385910034 + }, + { + "step": 1376, + "loss": 0.463126003742218, + "error": 0.2275390625, + "gradient_norm": 0.08894515782594681, + "elapsed": 454.6478977203369 + }, + { + "step": 1392, + "loss": 0.5995306968688965, + "error": 0.373046875, + "gradient_norm": 0.06733685731887817, + "elapsed": 459.35924530029297 + }, + { + "step": 1408, + "loss": 0.49053263664245605, + "error": 0.25, + "gradient_norm": 0.10475508868694305, + "elapsed": 464.100093126297 + }, + { + "step": 1424, + "loss": 0.6220744848251343, + "error": 0.3818359375, + "gradient_norm": 0.03653963655233383, + "elapsed": 468.89601135253906 + }, + { + "step": 1440, + "loss": 0.39706122875213623, + "error": 0.2021484375, + "gradient_norm": 0.04344598576426506, + "elapsed": 474.03999519348145 + }, + { + "step": 1456, + "loss": 0.5386708974838257, + "error": 0.3095703125, + "gradient_norm": 0.12589037418365479, + "elapsed": 478.8600504398346 + }, + { + "step": 1472, + "loss": 0.49776726961135864, + "error": 0.271484375, + "gradient_norm": 0.058137863874435425, + "elapsed": 483.5920066833496 + }, + { + "step": 1488, + "loss": 0.4757428765296936, + "error": 0.2412109375, + "gradient_norm": 0.050453316420316696, + "elapsed": 488.4611999988556 + }, + { + "step": 1504, + "loss": 0.5694847702980042, + "error": 0.337890625, + "gradient_norm": 0.052419569343328476, + "elapsed": 493.26151037216187 + }, + { + "step": 1520, + "loss": 0.5997745990753174, + "error": 0.3603515625, + "gradient_norm": 0.04338108375668526, + "elapsed": 498.0421245098114 + }, + { + "step": 1536, + "loss": 0.6195274591445923, + "error": 0.3876953125, + "gradient_norm": 0.04848463833332062, + "elapsed": 502.8808298110962 + }, + { + "step": 1552, + "loss": 0.46315908432006836, + "error": 0.2353515625, + "gradient_norm": 0.06380566209554672, + "elapsed": 507.5519721508026 + }, + { + "step": 1568, + "loss": 0.605262041091919, + "error": 0.36328125, + "gradient_norm": 0.05077619478106499, + "elapsed": 512.457685470581 + }, + { + "step": 1584, + "loss": 0.48782041668891907, + "error": 0.232421875, + "gradient_norm": 0.09017211943864822, + "elapsed": 517.2960062026978 + }, + { + "step": 1600, + "loss": 0.3881351947784424, + "error": 0.1875, + "gradient_norm": 0.07205695658922195, + "elapsed": 522.0911631584167 + }, + { + "step": 1616, + "loss": 0.4966873526573181, + "error": 0.24609375, + "gradient_norm": 0.0582038015127182, + "elapsed": 526.8861901760101 + }, + { + "step": 1632, + "loss": 0.5844199657440186, + "error": 0.33203125, + "gradient_norm": 0.05101500824093819, + "elapsed": 531.6640138626099 + }, + { + "step": 1648, + "loss": 0.31010180711746216, + "error": 0.1318359375, + "gradient_norm": 0.053135693073272705, + "elapsed": 536.4960391521454 + }, + { + "step": 1664, + "loss": 0.6174807548522949, + "error": 0.3779296875, + "gradient_norm": 0.04161194711923599, + "elapsed": 541.2560484409332 + }, + { + "step": 1680, + "loss": 0.18213607370853424, + "error": 0.0751953125, + "gradient_norm": 0.07171957194805145, + "elapsed": 546.0000085830688 + }, + { + "step": 1696, + "loss": 0.5445692539215088, + "error": 0.2998046875, + "gradient_norm": 0.054499462246894836, + "elapsed": 551.1221191883087 + }, + { + "step": 1712, + "loss": 0.05744167044758797, + "error": 0.017578125, + "gradient_norm": 0.013108699582517147, + "elapsed": 556.5286149978638 + }, + { + "step": 1728, + "loss": 0.6381571292877197, + "error": 0.3896484375, + "gradient_norm": 0.05157556012272835, + "elapsed": 561.8000066280365 + }, + { + "step": 1744, + "loss": 0.5301004648208618, + "error": 0.28125, + "gradient_norm": 0.04218568280339241, + "elapsed": 567.2760035991669 + }, + { + "step": 1760, + "loss": 0.5275102257728577, + "error": 0.26953125, + "gradient_norm": 0.06798839569091797, + "elapsed": 572.5601994991302 + }, + { + "step": 1776, + "loss": 0.6443773508071899, + "error": 0.4091796875, + "gradient_norm": 0.07035460323095322, + "elapsed": 577.9789206981659 + }, + { + "step": 1792, + "loss": 0.6012362241744995, + "error": 0.337890625, + "gradient_norm": 0.05189951881766319, + "elapsed": 583.028017282486 + }, + { + "step": 1808, + "loss": 0.2939091920852661, + "error": 0.12109375, + "gradient_norm": 0.05555355176329613, + "elapsed": 588.0501506328583 + }, + { + "step": 1824, + "loss": 0.2059091478586197, + "error": 0.08984375, + "gradient_norm": 0.045679714530706406, + "elapsed": 593.2120039463043 + }, + { + "step": 1840, + "loss": 0.6289581060409546, + "error": 0.349609375, + "gradient_norm": 0.04742642492055893, + "elapsed": 598.7767763137817 + }, + { + "step": 1856, + "loss": 0.5532636642456055, + "error": 0.294921875, + "gradient_norm": 0.05997413396835327, + "elapsed": 604.0475382804871 + }, + { + "step": 1872, + "loss": 0.45995670557022095, + "error": 0.228515625, + "gradient_norm": 0.05674462765455246, + "elapsed": 609.292379617691 + }, + { + "step": 1888, + "loss": 0.6178656816482544, + "error": 0.359375, + "gradient_norm": 0.08857566863298416, + "elapsed": 614.5639882087708 + }, + { + "step": 1904, + "loss": 0.5531284213066101, + "error": 0.287109375, + "gradient_norm": 0.10257937759160995, + "elapsed": 619.5600035190582 + }, + { + "step": 1920, + "loss": 0.04184349626302719, + "error": 0.013671875, + "gradient_norm": 0.04087059944868088, + "elapsed": 624.6679775714874 + }, + { + "step": 1936, + "loss": 0.5924860239028931, + "error": 0.3505859375, + "gradient_norm": 0.036822713911533356, + "elapsed": 629.936680316925 + }, + { + "step": 1952, + "loss": 0.46996980905532837, + "error": 0.2421875, + "gradient_norm": 0.034442272037267685, + "elapsed": 635.1109762191772 + }, + { + "step": 1968, + "loss": 0.17859068512916565, + "error": 0.0712890625, + "gradient_norm": 0.03440066799521446, + "elapsed": 640.32000207901 + }, + { + "step": 1984, + "loss": 0.6192275285720825, + "error": 0.3701171875, + "gradient_norm": 0.04386439174413681, + "elapsed": 645.6040184497833 + }, + { + "step": 2000, + "loss": 0.6160917282104492, + "error": 0.35546875, + "gradient_norm": 0.06268990784883499, + "elapsed": 650.7723731994629 + }, + { + "step": 2016, + "loss": 0.6343611478805542, + "error": 0.388671875, + "gradient_norm": 0.04243326932191849, + "elapsed": 655.972663640976 + }, + { + "step": 2032, + "loss": 0.062292590737342834, + "error": 0.021484375, + "gradient_norm": 0.016680095344781876, + "elapsed": 660.8079733848572 + }, + { + "step": 2048, + "loss": 0.5316072702407837, + "error": 0.26953125, + "gradient_norm": 0.057860780507326126, + "elapsed": 665.5760209560394 + }, + { + "step": 2064, + "loss": 0.605312705039978, + "error": 0.3623046875, + "gradient_norm": 0.04028146713972092, + "elapsed": 682.7294294834137 + }, + { + "step": 2080, + "loss": 0.56633460521698, + "error": 0.3330078125, + "gradient_norm": 0.09528280049562454, + "elapsed": 687.4644649028778 + }, + { + "step": 2096, + "loss": 0.3905397057533264, + "error": 0.1943359375, + "gradient_norm": 0.049456462264060974, + "elapsed": 692.1492264270782 + }, + { + "step": 2112, + "loss": 0.28124868869781494, + "error": 0.1259765625, + "gradient_norm": 0.059239838272333145, + "elapsed": 696.8701393604279 + }, + { + "step": 2128, + "loss": 0.6364338994026184, + "error": 0.392578125, + "gradient_norm": 0.08667811006307602, + "elapsed": 701.683988571167 + }, + { + "step": 2144, + "loss": 0.20683243870735168, + "error": 0.07421875, + "gradient_norm": 0.1100710779428482, + "elapsed": 706.4000360965729 + }, + { + "step": 2160, + "loss": 0.5912737250328064, + "error": 0.341796875, + "gradient_norm": 0.05641854554414749, + "elapsed": 711.2359964847565 + }, + { + "step": 2176, + "loss": 0.27793264389038086, + "error": 0.12109375, + "gradient_norm": 0.0893034040927887, + "elapsed": 715.9508004188538 + }, + { + "step": 2192, + "loss": 0.6474133133888245, + "error": 0.4072265625, + "gradient_norm": 0.06980258971452713, + "elapsed": 720.651974439621 + }, + { + "step": 2208, + "loss": 0.5961858630180359, + "error": 0.35546875, + "gradient_norm": 0.06530112773180008, + "elapsed": 725.496098279953 + }, + { + "step": 2224, + "loss": 0.47581571340560913, + "error": 0.263671875, + "gradient_norm": 0.04470043256878853, + "elapsed": 730.2880010604858 + }, + { + "step": 2240, + "loss": 0.577988862991333, + "error": 0.318359375, + "gradient_norm": 0.07201159745454788, + "elapsed": 735.006133556366 + }, + { + "step": 2256, + "loss": 0.28444671630859375, + "error": 0.1181640625, + "gradient_norm": 0.048656050115823746, + "elapsed": 739.6868116855621 + }, + { + "step": 2272, + "loss": 0.2776409089565277, + "error": 0.1201171875, + "gradient_norm": 0.05783981829881668, + "elapsed": 744.3517308235168 + }, + { + "step": 2288, + "loss": 0.621599555015564, + "error": 0.37109375, + "gradient_norm": 0.09731200337409973, + "elapsed": 749.0351710319519 + }, + { + "step": 2304, + "loss": 0.3333754539489746, + "error": 0.1513671875, + "gradient_norm": 0.07069239765405655, + "elapsed": 753.7588081359863 + }, + { + "step": 2320, + "loss": 0.4687051773071289, + "error": 0.2490234375, + "gradient_norm": 0.044891707599163055, + "elapsed": 758.4588432312012 + }, + { + "step": 2336, + "loss": 0.19801637530326843, + "error": 0.078125, + "gradient_norm": 0.10036595165729523, + "elapsed": 763.256409406662 + }, + { + "step": 2352, + "loss": 0.6186277866363525, + "error": 0.388671875, + "gradient_norm": 0.09069584310054779, + "elapsed": 767.9986386299133 + }, + { + "step": 2368, + "loss": 0.6177258491516113, + "error": 0.373046875, + "gradient_norm": 0.049019571393728256, + "elapsed": 772.730831861496 + }, + { + "step": 2384, + "loss": 0.17707547545433044, + "error": 0.0673828125, + "gradient_norm": 0.045190781354904175, + "elapsed": 777.4072704315186 + }, + { + "step": 2400, + "loss": 0.20144733786582947, + "error": 0.08203125, + "gradient_norm": 0.04537162929773331, + "elapsed": 782.0841658115387 + }, + { + "step": 2416, + "loss": 0.6151775121688843, + "error": 0.365234375, + "gradient_norm": 0.050534047186374664, + "elapsed": 786.762966632843 + }, + { + "step": 2432, + "loss": 0.5533859133720398, + "error": 0.314453125, + "gradient_norm": 0.06006559729576111, + "elapsed": 791.4656012058258 + }, + { + "step": 2448, + "loss": 0.5329082012176514, + "error": 0.2880859375, + "gradient_norm": 0.04018115997314453, + "elapsed": 796.1704161167145 + }, + { + "step": 2464, + "loss": 0.6338047981262207, + "error": 0.4140625, + "gradient_norm": 0.06069163978099823, + "elapsed": 800.9180119037628 + }, + { + "step": 2480, + "loss": 0.1603008508682251, + "error": 0.0673828125, + "gradient_norm": 0.040350593626499176, + "elapsed": 805.6127603054047 + }, + { + "step": 2496, + "loss": 0.505940318107605, + "error": 0.2568359375, + "gradient_norm": 0.05209952965378761, + "elapsed": 810.3740313053131 + }, + { + "step": 2512, + "loss": 0.5528728365898132, + "error": 0.298828125, + "gradient_norm": 0.11757992953062057, + "elapsed": 815.1708807945251 + }, + { + "step": 2528, + "loss": 0.5028313994407654, + "error": 0.2666015625, + "gradient_norm": 0.08823780715465546, + "elapsed": 819.8585045337677 + }, + { + "step": 2544, + "loss": 0.5002262592315674, + "error": 0.2783203125, + "gradient_norm": 0.04888603836297989, + "elapsed": 824.5714073181152 + }, + { + "step": 2560, + "loss": 0.6007894277572632, + "error": 0.328125, + "gradient_norm": 0.05186954140663147, + "elapsed": 829.3080432415009 + }, + { + "step": 2576, + "loss": 0.18641480803489685, + "error": 0.076171875, + "gradient_norm": 0.03799928352236748, + "elapsed": 834.044020652771 + }, + { + "step": 2592, + "loss": 0.3050769865512848, + "error": 0.1396484375, + "gradient_norm": 0.10119257122278214, + "elapsed": 838.8401296138763 + }, + { + "step": 2608, + "loss": 0.6063439846038818, + "error": 0.361328125, + "gradient_norm": 0.04979367554187775, + "elapsed": 844.3572654724121 + }, + { + "step": 2624, + "loss": 0.5751967430114746, + "error": 0.3369140625, + "gradient_norm": 0.04269539937376976, + "elapsed": 849.0660374164581 + }, + { + "step": 2640, + "loss": 0.3902108669281006, + "error": 0.193359375, + "gradient_norm": 0.10029696673154831, + "elapsed": 853.8638062477112 + }, + { + "step": 2656, + "loss": 0.15081660449504852, + "error": 0.0625, + "gradient_norm": 0.0303852129727602, + "elapsed": 858.9793758392334 + }, + { + "step": 2672, + "loss": 0.6503090858459473, + "error": 0.400390625, + "gradient_norm": 0.12611964344978333, + "elapsed": 863.9151141643524 + }, + { + "step": 2688, + "loss": 0.5587317943572998, + "error": 0.31640625, + "gradient_norm": 0.10028114914894104, + "elapsed": 868.7600305080414 + }, + { + "step": 2704, + "loss": 0.4399867355823517, + "error": 0.21484375, + "gradient_norm": 0.06889455020427704, + "elapsed": 873.4544236660004 + }, + { + "step": 2720, + "loss": 0.5865127444267273, + "error": 0.337890625, + "gradient_norm": 0.03671631962060928, + "elapsed": 878.0982644557953 + }, + { + "step": 2736, + "loss": 0.6078637838363647, + "error": 0.3701171875, + "gradient_norm": 0.04679318517446518, + "elapsed": 883.0424642562866 + }, + { + "step": 2752, + "loss": 0.5825340151786804, + "error": 0.337890625, + "gradient_norm": 0.05619681254029274, + "elapsed": 887.908124923706 + }, + { + "step": 2768, + "loss": 0.5970422029495239, + "error": 0.3369140625, + "gradient_norm": 0.041302867233753204, + "elapsed": 892.6760206222534 + }, + { + "step": 2784, + "loss": 0.3870226740837097, + "error": 0.1826171875, + "gradient_norm": 0.05731065198779106, + "elapsed": 897.6246056556702 + }, + { + "step": 2800, + "loss": 0.38130277395248413, + "error": 0.1943359375, + "gradient_norm": 0.059244755655527115, + "elapsed": 902.3360238075256 + }, + { + "step": 2816, + "loss": 0.2617901563644409, + "error": 0.1064453125, + "gradient_norm": 0.041736964136362076, + "elapsed": 907.1600468158722 + }, + { + "step": 2832, + "loss": 0.5819337368011475, + "error": 0.314453125, + "gradient_norm": 0.04097156226634979, + "elapsed": 912.0244295597076 + }, + { + "step": 2848, + "loss": 0.41393283009529114, + "error": 0.2001953125, + "gradient_norm": 0.10456771403551102, + "elapsed": 916.8225846290588 + }, + { + "step": 2864, + "loss": 0.5019145011901855, + "error": 0.2548828125, + "gradient_norm": 0.04843736067414284, + "elapsed": 921.538754940033 + }, + { + "step": 2880, + "loss": 0.04561338573694229, + "error": 0.0146484375, + "gradient_norm": 0.025407327339053154, + "elapsed": 926.2588667869568 + }, + { + "step": 2896, + "loss": 0.4338858723640442, + "error": 0.205078125, + "gradient_norm": 0.09900517761707306, + "elapsed": 930.9781975746155 + }, + { + "step": 2912, + "loss": 0.33922863006591797, + "error": 0.162109375, + "gradient_norm": 0.10189604014158249, + "elapsed": 935.6816267967224 + }, + { + "step": 2928, + "loss": 0.5294322967529297, + "error": 0.2822265625, + "gradient_norm": 0.09060791879892349, + "elapsed": 940.4373068809509 + }, + { + "step": 2944, + "loss": 0.037007369101047516, + "error": 0.01171875, + "gradient_norm": 0.05506489425897598, + "elapsed": 945.1270468235016 + }, + { + "step": 2960, + "loss": 0.6096771359443665, + "error": 0.349609375, + "gradient_norm": 0.04987221211194992, + "elapsed": 949.8300130367279 + }, + { + "step": 2976, + "loss": 0.6157823801040649, + "error": 0.373046875, + "gradient_norm": 0.03614233434200287, + "elapsed": 954.5701997280121 + }, + { + "step": 2992, + "loss": 0.1978239268064499, + "error": 0.080078125, + "gradient_norm": 0.05847112461924553, + "elapsed": 959.2756471633911 + }, + { + "step": 3008, + "loss": 0.5237340927124023, + "error": 0.2841796875, + "gradient_norm": 0.06993591040372849, + "elapsed": 963.9875864982605 + }, + { + "step": 3024, + "loss": 0.4559935927391052, + "error": 0.2373046875, + "gradient_norm": 0.05698448419570923, + "elapsed": 968.7997305393219 + }, + { + "step": 3040, + "loss": 0.5025208592414856, + "error": 0.259765625, + "gradient_norm": 0.14909739792346954, + "elapsed": 973.6042547225952 + }, + { + "step": 3056, + "loss": 0.3223109245300293, + "error": 0.1416015625, + "gradient_norm": 0.032974764704704285, + "elapsed": 978.4760546684265 + }, + { + "step": 3072, + "loss": 0.06682582199573517, + "error": 0.021484375, + "gradient_norm": 0.04433188587427139, + "elapsed": 983.2894048690796 + }, + { + "step": 3088, + "loss": 0.5919550061225891, + "error": 0.34765625, + "gradient_norm": 0.06721373647451401, + "elapsed": 1000.9520287513733 + }, + { + "step": 3104, + "loss": 0.5988063812255859, + "error": 0.3642578125, + "gradient_norm": 0.05654948577284813, + "elapsed": 1005.7442932128906 + }, + { + "step": 3120, + "loss": 0.4922299385070801, + "error": 0.2470703125, + "gradient_norm": 0.07545466721057892, + "elapsed": 1010.4616096019745 + }, + { + "step": 3136, + "loss": 0.4533671736717224, + "error": 0.236328125, + "gradient_norm": 0.06288722902536392, + "elapsed": 1015.3559956550598 + }, + { + "step": 3152, + "loss": 0.5070517063140869, + "error": 0.2666015625, + "gradient_norm": 0.07274917513132095, + "elapsed": 1020.0764343738556 + }, + { + "step": 3168, + "loss": 0.5999464988708496, + "error": 0.3408203125, + "gradient_norm": 0.05777016654610634, + "elapsed": 1024.9410600662231 + }, + { + "step": 3184, + "loss": 0.5758363008499146, + "error": 0.3427734375, + "gradient_norm": 0.051027461886405945, + "elapsed": 1029.7082171440125 + }, + { + "step": 3200, + "loss": 0.05016190931200981, + "error": 0.017578125, + "gradient_norm": 0.009175656363368034, + "elapsed": 1034.3982915878296 + }, + { + "step": 3216, + "loss": 0.5471057295799255, + "error": 0.318359375, + "gradient_norm": 0.07572721689939499, + "elapsed": 1039.117841243744 + }, + { + "step": 3232, + "loss": 0.4141446352005005, + "error": 0.193359375, + "gradient_norm": 0.10056859254837036, + "elapsed": 1043.880026102066 + }, + { + "step": 3248, + "loss": 0.5812438726425171, + "error": 0.3212890625, + "gradient_norm": 0.05781616270542145, + "elapsed": 1048.6406455039978 + }, + { + "step": 3264, + "loss": 0.19184701144695282, + "error": 0.078125, + "gradient_norm": 0.05367236211895943, + "elapsed": 1053.5672237873077 + }, + { + "step": 3280, + "loss": 0.5420833826065063, + "error": 0.28515625, + "gradient_norm": 0.052405405789613724, + "elapsed": 1058.3841104507446 + }, + { + "step": 3296, + "loss": 0.4419598877429962, + "error": 0.2177734375, + "gradient_norm": 0.05814693495631218, + "elapsed": 1063.1880333423615 + }, + { + "step": 3312, + "loss": 0.4525642991065979, + "error": 0.208984375, + "gradient_norm": 0.1061021164059639, + "elapsed": 1068.1370933055878 + }, + { + "step": 3328, + "loss": 0.32664671540260315, + "error": 0.154296875, + "gradient_norm": 0.05649850144982338, + "elapsed": 1073.1963467597961 + }, + { + "step": 3344, + "loss": 0.2655770182609558, + "error": 0.1220703125, + "gradient_norm": 0.04070372134447098, + "elapsed": 1078.2698318958282 + }, + { + "step": 3360, + "loss": 0.5894330739974976, + "error": 0.3544921875, + "gradient_norm": 0.0643400028347969, + "elapsed": 1083.0184152126312 + }, + { + "step": 3376, + "loss": 0.6118791103363037, + "error": 0.361328125, + "gradient_norm": 0.08537904173135757, + "elapsed": 1087.834038734436 + }, + { + "step": 3392, + "loss": 0.40694907307624817, + "error": 0.19921875, + "gradient_norm": 0.11411692947149277, + "elapsed": 1092.8119947910309 + }, + { + "step": 3408, + "loss": 0.04629015550017357, + "error": 0.0146484375, + "gradient_norm": 0.017204072326421738, + "elapsed": 1097.5751783847809 + }, + { + "step": 3424, + "loss": 0.20639702677726746, + "error": 0.0849609375, + "gradient_norm": 0.04801144450902939, + "elapsed": 1102.2970931529999 + }, + { + "step": 3440, + "loss": 0.6051071286201477, + "error": 0.33984375, + "gradient_norm": 0.045392412692308426, + "elapsed": 1107.1080610752106 + }, + { + "step": 3456, + "loss": 0.6553700566291809, + "error": 0.40625, + "gradient_norm": 0.05593863129615784, + "elapsed": 1111.8409752845764 + }, + { + "step": 3472, + "loss": 0.591402530670166, + "error": 0.3515625, + "gradient_norm": 0.051181379705667496, + "elapsed": 1116.5800333023071 + }, + { + "step": 3488, + "loss": 0.30494624376296997, + "error": 0.12109375, + "gradient_norm": 0.05175542086362839, + "elapsed": 1121.276373386383 + }, + { + "step": 3504, + "loss": 0.5065370798110962, + "error": 0.279296875, + "gradient_norm": 0.10419930517673492, + "elapsed": 1125.9883344173431 + }, + { + "step": 3520, + "loss": 0.3915700614452362, + "error": 0.1953125, + "gradient_norm": 0.060416825115680695, + "elapsed": 1130.7958455085754 + }, + { + "step": 3536, + "loss": 0.624374270439148, + "error": 0.3759765625, + "gradient_norm": 0.06069556251168251, + "elapsed": 1135.5360939502716 + }, + { + "step": 3552, + "loss": 0.5830206274986267, + "error": 0.3359375, + "gradient_norm": 0.046013280749320984, + "elapsed": 1140.312029838562 + }, + { + "step": 3568, + "loss": 0.4201379716396332, + "error": 0.2119140625, + "gradient_norm": 0.06909621506929398, + "elapsed": 1145.0904593467712 + }, + { + "step": 3584, + "loss": 0.28215405344963074, + "error": 0.1181640625, + "gradient_norm": 0.07625982910394669, + "elapsed": 1149.8156151771545 + }, + { + "step": 3600, + "loss": 0.5229164361953735, + "error": 0.275390625, + "gradient_norm": 0.055048178881406784, + "elapsed": 1154.5280592441559 + }, + { + "step": 3616, + "loss": 0.47238075733184814, + "error": 0.2314453125, + "gradient_norm": 0.06473162025213242, + "elapsed": 1159.2720873355865 + }, + { + "step": 3632, + "loss": 0.46245503425598145, + "error": 0.228515625, + "gradient_norm": 0.07382887601852417, + "elapsed": 1164.0119998455048 + }, + { + "step": 3648, + "loss": 0.37509745359420776, + "error": 0.171875, + "gradient_norm": 0.051260266453027725, + "elapsed": 1168.7440350055695 + }, + { + "step": 3664, + "loss": 0.1948484629392624, + "error": 0.080078125, + "gradient_norm": 0.059623416513204575, + "elapsed": 1173.3906588554382 + }, + { + "step": 3680, + "loss": 0.5552756786346436, + "error": 0.3115234375, + "gradient_norm": 0.08073585480451584, + "elapsed": 1178.0645008087158 + }, + { + "step": 3696, + "loss": 0.6405904293060303, + "error": 0.39453125, + "gradient_norm": 0.05899551138281822, + "elapsed": 1182.730489730835 + }, + { + "step": 3712, + "loss": 0.2767012119293213, + "error": 0.119140625, + "gradient_norm": 0.06593579798936844, + "elapsed": 1187.377315044403 + }, + { + "step": 3728, + "loss": 0.315812885761261, + "error": 0.134765625, + "gradient_norm": 0.035905495285987854, + "elapsed": 1192.0582301616669 + }, + { + "step": 3744, + "loss": 0.6033951640129089, + "error": 0.3544921875, + "gradient_norm": 0.05226197466254234, + "elapsed": 1196.7101175785065 + }, + { + "step": 3760, + "loss": 0.5202592611312866, + "error": 0.275390625, + "gradient_norm": 0.06367512047290802, + "elapsed": 1201.3543090820312 + }, + { + "step": 3776, + "loss": 0.24639368057250977, + "error": 0.1083984375, + "gradient_norm": 0.09370873868465424, + "elapsed": 1206.0717165470123 + }, + { + "step": 3792, + "loss": 0.6175658702850342, + "error": 0.375, + "gradient_norm": 0.06221585348248482, + "elapsed": 1210.754029750824 + }, + { + "step": 3808, + "loss": 0.41153696179389954, + "error": 0.2119140625, + "gradient_norm": 0.05355365574359894, + "elapsed": 1215.4374370574951 + }, + { + "step": 3824, + "loss": 0.28002214431762695, + "error": 0.1123046875, + "gradient_norm": 0.03846330568194389, + "elapsed": 1220.1207013130188 + }, + { + "step": 3840, + "loss": 0.0484195351600647, + "error": 0.013671875, + "gradient_norm": 0.03470242768526077, + "elapsed": 1224.8153104782104 + }, + { + "step": 3856, + "loss": 0.1407160609960556, + "error": 0.0458984375, + "gradient_norm": 0.04061700031161308, + "elapsed": 1229.5512235164642 + }, + { + "step": 3872, + "loss": 0.5881794691085815, + "error": 0.3427734375, + "gradient_norm": 0.062013477087020874, + "elapsed": 1234.3750183582306 + }, + { + "step": 3888, + "loss": 0.17833612859249115, + "error": 0.06640625, + "gradient_norm": 0.038856204599142075, + "elapsed": 1239.110375881195 + }, + { + "step": 3904, + "loss": 0.06211477518081665, + "error": 0.0224609375, + "gradient_norm": 0.02150108851492405, + "elapsed": 1243.800644159317 + }, + { + "step": 3920, + "loss": 0.06039723381400108, + "error": 0.01953125, + "gradient_norm": 0.019367367029190063, + "elapsed": 1248.4831748008728 + }, + { + "step": 3936, + "loss": 0.6010214686393738, + "error": 0.3525390625, + "gradient_norm": 0.051659151911735535, + "elapsed": 1253.1423478126526 + }, + { + "step": 3952, + "loss": 0.5867137312889099, + "error": 0.3388671875, + "gradient_norm": 0.058528851717710495, + "elapsed": 1257.9799931049347 + }, + { + "step": 3968, + "loss": 0.5231834650039673, + "error": 0.2578125, + "gradient_norm": 0.10128334909677505, + "elapsed": 1262.6990082263947 + }, + { + "step": 3984, + "loss": 0.6251651644706726, + "error": 0.353515625, + "gradient_norm": 0.06211795285344124, + "elapsed": 1267.4289934635162 + }, + { + "step": 4000, + "loss": 0.06667037308216095, + "error": 0.01953125, + "gradient_norm": 0.048018258064985275, + "elapsed": 1272.132089138031 + }, + { + "step": 4016, + "loss": 0.5286938548088074, + "error": 0.2744140625, + "gradient_norm": 0.05509360507130623, + "elapsed": 1276.8878977298737 + }, + { + "step": 4032, + "loss": 0.34016552567481995, + "error": 0.1591796875, + "gradient_norm": 0.07597329467535019, + "elapsed": 1281.7364926338196 + }, + { + "step": 4048, + "loss": 0.17750494182109833, + "error": 0.078125, + "gradient_norm": 0.06314503401517868, + "elapsed": 1286.5033600330353 + }, + { + "step": 4064, + "loss": 0.5882893800735474, + "error": 0.34375, + "gradient_norm": 0.10986580699682236, + "elapsed": 1291.1944887638092 + }, + { + "step": 4080, + "loss": 0.4923543930053711, + "error": 0.2568359375, + "gradient_norm": 0.050325747579336166, + "elapsed": 1295.9372322559357 + }, + { + "step": 4096, + "loss": 0.44146978855133057, + "error": 0.2236328125, + "gradient_norm": 0.06535191088914871, + "elapsed": 1300.641023159027 + } + ] + }, + "derived_checkpoints": { + "mean3": { + "checkpoint_label": "mean3", + "kind": "uniform_parameter_average", + "optimizer_updates_in_derived_run": 0, + "source_optimizer_steps": [ + 2048, + 3072, + 4096 + ], + "source_training_run": "temporal2", + "source_weights_sha256": { + "2048": "ab1175f9ef7ed52106ce1127b7da91bfc3d91782c0a2fec2f8189f661e3679db", + "3072": "fabbb42432fb0975023f0a367a366b8db591c6866719b4c7efb85cfe91934c65", + "4096": "5ca716cd5632c9b717bb167d187387483b5485fead55f45b25cc44325d5d18ea" + }, + "source_checkpoint_records": { + "2048": { + "step": 2048, + "new_training_shots": 2097152, + "unique_training_rows_seen_in_this_phase": 1293629, + "weights": "weights-2048.npz", + "weights_sha256": "ab1175f9ef7ed52106ce1127b7da91bfc3d91782c0a2fec2f8189f661e3679db", + "validation": "validation-2048.json", + "complete": true + }, + "3072": { + "step": 3072, + "new_training_shots": 3145728, + "unique_training_rows_seen_in_this_phase": 1594502, + "weights": "weights-3072.npz", + "weights_sha256": "fabbb42432fb0975023f0a367a366b8db591c6866719b4c7efb85cfe91934c65", + "validation": "validation-3072.json", + "complete": true + }, + "4096": { + "step": 4096, + "new_training_shots": 4194304, + "unique_training_rows_seen_in_this_phase": 1778773, + "weights": "weights-4096.npz", + "weights_sha256": "5ca716cd5632c9b717bb167d187387483b5485fead55f45b25cc44325d5d18ea", + "validation": "validation-4096.json", + "complete": true + } + }, + "weights_sha256": "a61fb22f803b795c2a39b6c19dc3a368d536cb21419ba773778601b28e4403fe", + "complete": true + }, + "mean4": { + "checkpoint_label": "mean4", + "kind": "uniform_parameter_average", + "optimizer_updates_in_derived_run": 0, + "source_optimizer_steps": [ + 1024, + 2048, + 3072, + 4096 + ], + "source_training_run": "temporal2", + "source_weights_sha256": { + "1024": "0d809362d5afe1dc781f716e3aee1a9bc5a8f75fed6cc0ff6339b9abcf600ada", + "2048": "ab1175f9ef7ed52106ce1127b7da91bfc3d91782c0a2fec2f8189f661e3679db", + "3072": "fabbb42432fb0975023f0a367a366b8db591c6866719b4c7efb85cfe91934c65", + "4096": "5ca716cd5632c9b717bb167d187387483b5485fead55f45b25cc44325d5d18ea" + }, + "source_checkpoint_records": { + "1024": { + "step": 1024, + "new_training_shots": 1048576, + "unique_training_rows_seen_in_this_phase": 804757, + "weights": "weights-1024.npz", + "weights_sha256": "0d809362d5afe1dc781f716e3aee1a9bc5a8f75fed6cc0ff6339b9abcf600ada", + "validation": "validation-1024.json", + "complete": true + }, + "2048": { + "step": 2048, + "new_training_shots": 2097152, + "unique_training_rows_seen_in_this_phase": 1293629, + "weights": "weights-2048.npz", + "weights_sha256": "ab1175f9ef7ed52106ce1127b7da91bfc3d91782c0a2fec2f8189f661e3679db", + "validation": "validation-2048.json", + "complete": true + }, + "3072": { + "step": 3072, + "new_training_shots": 3145728, + "unique_training_rows_seen_in_this_phase": 1594502, + "weights": "weights-3072.npz", + "weights_sha256": "fabbb42432fb0975023f0a367a366b8db591c6866719b4c7efb85cfe91934c65", + "validation": "validation-3072.json", + "complete": true + }, + "4096": { + "step": 4096, + "new_training_shots": 4194304, + "unique_training_rows_seen_in_this_phase": 1778773, + "weights": "weights-4096.npz", + "weights_sha256": "5ca716cd5632c9b717bb167d187387483b5485fead55f45b25cc44325d5d18ea", + "validation": "validation-4096.json", + "complete": true + } + }, + "weights_sha256": "ff4595e8f3eb7cfaa8da5a58a31e106d9684c7b8437f330573a1291f19f5777a", + "complete": true + } + }, + "selection": "Predefined last-three and all-four noninitial temporal2 checkpoint means; every validation condition evaluated before group selection", + "test_data_used": false, + "derivation_source_sha256": "b68813c7dab697a554185020c430ef05f1c35bedcda5b85b7d165af75461e914" + }, + "loss": "Binary conditional logical likelihood computed by exact frontier elimination", + "validation_shots_per_condition": 1024, + "uniform_validation": true, + "uniform_validation_seed": 20261028, + "test_data_used": false, + "log": [ + { + "step": 1, + "loss": 0.5063965320587158, + "error": 0.263671875, + "gradient_norm": 0.05583755671977997, + "elapsed": 33.61826181411743 + }, + { + "step": 16, + "loss": 0.5231766700744629, + "error": 0.2822265625, + "gradient_norm": 0.05158894136548042, + "elapsed": 48.65802335739136 + }, + { + "step": 32, + "loss": 0.2955678701400757, + "error": 0.1376953125, + "gradient_norm": 0.0717208981513977, + "elapsed": 64.75103712081909 + }, + { + "step": 48, + "loss": 0.5808531045913696, + "error": 0.337890625, + "gradient_norm": 0.0497879758477211, + "elapsed": 81.12590050697327 + }, + { + "step": 64, + "loss": 0.6466071605682373, + "error": 0.3955078125, + "gradient_norm": 0.05340445786714554, + "elapsed": 97.40131282806396 + }, + { + "step": 80, + "loss": 0.43967077136039734, + "error": 0.2197265625, + "gradient_norm": 0.05488451197743416, + "elapsed": 113.68819904327393 + }, + { + "step": 96, + "loss": 0.3481931686401367, + "error": 0.166015625, + "gradient_norm": 0.08198399841785431, + "elapsed": 129.79422783851624 + }, + { + "step": 112, + "loss": 0.37728914618492126, + "error": 0.177734375, + "gradient_norm": 0.04957005754113197, + "elapsed": 146.01310849189758 + }, + { + "step": 128, + "loss": 0.19336706399917603, + "error": 0.07421875, + "gradient_norm": 0.03228567913174629, + "elapsed": 162.3233504295349 + }, + { + "step": 144, + "loss": 0.05673666670918465, + "error": 0.013671875, + "gradient_norm": 0.010086167603731155, + "elapsed": 178.27910375595093 + }, + { + "step": 160, + "loss": 0.05576886981725693, + "error": 0.0185546875, + "gradient_norm": 0.015833213925361633, + "elapsed": 194.4404194355011 + }, + { + "step": 176, + "loss": 0.6271512508392334, + "error": 0.39453125, + "gradient_norm": 0.0890795886516571, + "elapsed": 210.55058026313782 + }, + { + "step": 192, + "loss": 0.5520341992378235, + "error": 0.2998046875, + "gradient_norm": 0.12568876147270203, + "elapsed": 226.60093927383423 + }, + { + "step": 208, + "loss": 0.5262938737869263, + "error": 0.2822265625, + "gradient_norm": 0.055265434086322784, + "elapsed": 244.85273218154907 + }, + { + "step": 224, + "loss": 0.5956001281738281, + "error": 0.3369140625, + "gradient_norm": 0.06895016878843307, + "elapsed": 264.53393387794495 + }, + { + "step": 240, + "loss": 0.25704875588417053, + "error": 0.1259765625, + "gradient_norm": 0.11300098150968552, + "elapsed": 283.89024353027344 + }, + { + "step": 256, + "loss": 0.6143664121627808, + "error": 0.369140625, + "gradient_norm": 0.05419369786977768, + "elapsed": 300.05279064178467 + }, + { + "step": 272, + "loss": 0.5590812563896179, + "error": 0.294921875, + "gradient_norm": 0.06284675002098083, + "elapsed": 315.92391777038574 + }, + { + "step": 288, + "loss": 0.6163386106491089, + "error": 0.353515625, + "gradient_norm": 0.06826888024806976, + "elapsed": 331.96330738067627 + }, + { + "step": 304, + "loss": 0.6250298619270325, + "error": 0.37890625, + "gradient_norm": 0.0710018053650856, + "elapsed": 348.11866188049316 + }, + { + "step": 320, + "loss": 0.3802686631679535, + "error": 0.1796875, + "gradient_norm": 0.05896822363138199, + "elapsed": 364.3013961315155 + }, + { + "step": 336, + "loss": 0.2594846487045288, + "error": 0.1123046875, + "gradient_norm": 0.0468285046517849, + "elapsed": 380.80411195755005 + }, + { + "step": 352, + "loss": 0.19520026445388794, + "error": 0.076171875, + "gradient_norm": 0.032125141471624374, + "elapsed": 396.8971872329712 + }, + { + "step": 368, + "loss": 0.621718168258667, + "error": 0.37890625, + "gradient_norm": 0.0545712448656559, + "elapsed": 412.920996427536 + }, + { + "step": 384, + "loss": 0.6092393398284912, + "error": 0.349609375, + "gradient_norm": 0.04697328060865402, + "elapsed": 428.92249155044556 + }, + { + "step": 400, + "loss": 0.33656495809555054, + "error": 0.171875, + "gradient_norm": 0.04851065203547478, + "elapsed": 444.8614237308502 + }, + { + "step": 416, + "loss": 0.563441812992096, + "error": 0.302734375, + "gradient_norm": 0.06761237233877182, + "elapsed": 460.89916157722473 + }, + { + "step": 432, + "loss": 0.41032207012176514, + "error": 0.205078125, + "gradient_norm": 0.07552587240934372, + "elapsed": 476.91754388809204 + }, + { + "step": 448, + "loss": 0.6176105737686157, + "error": 0.3583984375, + "gradient_norm": 0.03991354629397392, + "elapsed": 492.909494638443 + }, + { + "step": 464, + "loss": 0.47970300912857056, + "error": 0.26171875, + "gradient_norm": 0.08514834195375443, + "elapsed": 508.9842050075531 + }, + { + "step": 480, + "loss": 0.6145294904708862, + "error": 0.3779296875, + "gradient_norm": 0.04053078964352608, + "elapsed": 525.0681574344635 + }, + { + "step": 496, + "loss": 0.5232605934143066, + "error": 0.28125, + "gradient_norm": 0.07535209506750107, + "elapsed": 541.048586845398 + }, + { + "step": 512, + "loss": 0.06574343144893646, + "error": 0.01953125, + "gradient_norm": 0.038100212812423706, + "elapsed": 557.0923149585724 + }, + { + "step": 528, + "loss": 0.052529145032167435, + "error": 0.021484375, + "gradient_norm": 0.017167840152978897, + "elapsed": 588.7646441459656 + }, + { + "step": 544, + "loss": 0.5886420011520386, + "error": 0.3447265625, + "gradient_norm": 0.04695608466863632, + "elapsed": 607.2257866859436 + }, + { + "step": 560, + "loss": 0.6055985689163208, + "error": 0.3466796875, + "gradient_norm": 0.032950498163700104, + "elapsed": 625.9134004116058 + }, + { + "step": 576, + "loss": 0.4632350206375122, + "error": 0.2431640625, + "gradient_norm": 0.07214360684156418, + "elapsed": 642.5683023929596 + }, + { + "step": 592, + "loss": 0.5995157361030579, + "error": 0.33984375, + "gradient_norm": 0.05927892401814461, + "elapsed": 659.0285487174988 + }, + { + "step": 608, + "loss": 0.2751845121383667, + "error": 0.1171875, + "gradient_norm": 0.06076137721538544, + "elapsed": 675.2659955024719 + }, + { + "step": 624, + "loss": 0.0518009215593338, + "error": 0.0205078125, + "gradient_norm": 0.017002176493406296, + "elapsed": 691.3256914615631 + }, + { + "step": 640, + "loss": 0.6293823719024658, + "error": 0.4013671875, + "gradient_norm": 0.07381543517112732, + "elapsed": 707.3796145915985 + }, + { + "step": 656, + "loss": 0.2956032454967499, + "error": 0.126953125, + "gradient_norm": 0.06658996641635895, + "elapsed": 723.4796185493469 + }, + { + "step": 672, + "loss": 0.5275129079818726, + "error": 0.28125, + "gradient_norm": 0.0742238238453865, + "elapsed": 739.52592253685 + }, + { + "step": 688, + "loss": 0.48426946997642517, + "error": 0.251953125, + "gradient_norm": 0.08587855845689774, + "elapsed": 755.599978685379 + }, + { + "step": 704, + "loss": 0.5284034013748169, + "error": 0.298828125, + "gradient_norm": 0.07507473230361938, + "elapsed": 771.6798233985901 + }, + { + "step": 720, + "loss": 0.45124661922454834, + "error": 0.2333984375, + "gradient_norm": 0.040898919105529785, + "elapsed": 787.8532867431641 + }, + { + "step": 736, + "loss": 0.04965062811970711, + "error": 0.0146484375, + "gradient_norm": 0.013609266839921474, + "elapsed": 804.1182470321655 + }, + { + "step": 752, + "loss": 0.04790960252285004, + "error": 0.01171875, + "gradient_norm": 0.01157061941921711, + "elapsed": 820.3099284172058 + }, + { + "step": 768, + "loss": 0.046329010277986526, + "error": 0.0146484375, + "gradient_norm": 0.013687756843864918, + "elapsed": 836.2443821430206 + }, + { + "step": 784, + "loss": 0.20798391103744507, + "error": 0.0830078125, + "gradient_norm": 0.10879658162593842, + "elapsed": 853.994068145752 + }, + { + "step": 800, + "loss": 0.3236527144908905, + "error": 0.1494140625, + "gradient_norm": 0.04277466610074043, + "elapsed": 872.6724886894226 + }, + { + "step": 816, + "loss": 0.5978351831436157, + "error": 0.3310546875, + "gradient_norm": 0.09687308222055435, + "elapsed": 890.0722959041595 + }, + { + "step": 832, + "loss": 0.5914890766143799, + "error": 0.3515625, + "gradient_norm": 0.05389918386936188, + "elapsed": 907.574702501297 + }, + { + "step": 848, + "loss": 0.3500230312347412, + "error": 0.154296875, + "gradient_norm": 0.05182121321558952, + "elapsed": 925.516667842865 + }, + { + "step": 864, + "loss": 0.3173527717590332, + "error": 0.126953125, + "gradient_norm": 0.10333289951086044, + "elapsed": 943.2102818489075 + }, + { + "step": 880, + "loss": 0.6407152414321899, + "error": 0.41015625, + "gradient_norm": 0.03933756425976753, + "elapsed": 960.0137810707092 + }, + { + "step": 896, + "loss": 0.3448338210582733, + "error": 0.1591796875, + "gradient_norm": 0.048397257924079895, + "elapsed": 976.2672023773193 + }, + { + "step": 912, + "loss": 0.2199687361717224, + "error": 0.0830078125, + "gradient_norm": 0.11513829976320267, + "elapsed": 992.4728758335114 + }, + { + "step": 928, + "loss": 0.16880497336387634, + "error": 0.072265625, + "gradient_norm": 0.031767718493938446, + "elapsed": 1008.5988037586212 + }, + { + "step": 944, + "loss": 0.053500816226005554, + "error": 0.017578125, + "gradient_norm": 0.014627245254814625, + "elapsed": 1024.7008044719696 + }, + { + "step": 960, + "loss": 0.5974152684211731, + "error": 0.341796875, + "gradient_norm": 0.09594274312257767, + "elapsed": 1040.908540725708 + }, + { + "step": 976, + "loss": 0.34772756695747375, + "error": 0.1572265625, + "gradient_norm": 0.04134370759129524, + "elapsed": 1056.9926254749298 + }, + { + "step": 992, + "loss": 0.4953954815864563, + "error": 0.2744140625, + "gradient_norm": 0.09671331197023392, + "elapsed": 1073.0582761764526 + }, + { + "step": 1008, + "loss": 0.6424463987350464, + "error": 0.4013671875, + "gradient_norm": 0.13621115684509277, + "elapsed": 1089.2002465724945 + }, + { + "step": 1024, + "loss": 0.1914748251438141, + "error": 0.0771484375, + "gradient_norm": 0.05097605288028717, + "elapsed": 1105.341599225998 + } + ], + "condition_mixing_plan": { + "hypothesis": "Mixing uniformly sampled geometry/basis/duration conditions in each gradient update reduces condition-gradient fluctuations", + "parent": "temporal2_swa/weights-mean3.npz", + "new_random_parameter_initializations": 0, + "sampling_seed": 20261190, + "arms": [ + "same", + "mixed" + ], + "microbatches_per_update": 4, + "microbatch_size": 256, + "effective_batch_size": 1024, + "optimizer_updates": 1024, + "learning_rate": 0.00025, + "optimizer": "Fresh AdamW state, weight decay1e-4, global gradient norm clip1 after averaging gradients", + "sampling_control": "Both arms draw four condition indices then four256-row batches per update. Same arm reuses the first condition index; mixed uses all four. Equal-sized condition pools make RNG states identical.", + "training": "All104 d3 conditions and all supplied training rows eligible;1,048,576 training draws in each arm", + "selection": "Full validation checkpoints512/1024, per-group mean across all13 durations; raw or equal blend with recorded small contextual reference; incumbent retained on ties", + "test_data_used": false + }, + "accumulation_numerical_control": { + "status": "passed", + "device": "cpu", + "condition": "surface_code_bZ_d3_r13_center_5_7", + "parent_checkpoint_sha256": "a61fb22f803b795c2a39b6c19dc3a368d536cb21419ba773778601b28e4403fe", + "trainer_source_sha256": "9f672468a8b72966b3aa04fd22e5d40b47b0768f1c802c267a1da08244c4323b", + "gradient_relative_l2_difference": 1.0312139158546257e-06, + "maximum_gradient_difference": 4.023313522338867e-07, + "mean_loss_difference": 0.0, + "maximum_optimizer_update_difference": 1.0697840480133891e-06, + "matched_rng_state_after_1024_updates": true, + "precision_audit": { + "float64_full_vs_accumulated_gradient_relative_l2": 2.4022986924332267e-15, + "float64_full_vs_accumulated_update_maximum_difference": 1.6631390275384517e-15, + "float32_full_gradient_relative_l2_vs_float64": 1.1454018534911662e-06, + "float32_accumulated_gradient_relative_l2_vs_float64": 9.16593382832008e-07, + "float32_full_update_maximum_difference_vs_float64": 6.5271394129382524e-06, + "float32_accumulated_update_maximum_difference_vs_float64": 7.5969234609516415e-06, + "initial_failed_check": { + "maximum_float32_update_difference": 1.0697840480133891e-06, + "original_tolerance": 1e-06 + }, + "interpretation": "Float64 audit checks accumulation algebra independently of float32 reduction rounding and first-Adam-step sensitivity near zero gradients. Original failure is retained; production model/gradient precision and optimizer are unchanged." + }, + "training_draws_each_arm": 1048576, + "draws_by_condition": { + "same": [ + 17408, + 14336, + 12288, + 14336, + 7168, + 10240, + 8192, + 7168, + 9216, + 11264, + 14336, + 7168, + 5120, + 9216, + 7168, + 8192, + 8192, + 10240, + 7168, + 10240, + 11264, + 14336, + 15360, + 10240, + 8192, + 11264, + 11264, + 17408, + 11264, + 15360, + 10240, + 17408, + 7168, + 13312, + 5120, + 13312, + 4096, + 8192, + 10240, + 8192, + 8192, + 5120, + 10240, + 11264, + 16384, + 13312, + 9216, + 9216, + 14336, + 8192, + 10240, + 10240, + 3072, + 8192, + 11264, + 12288, + 5120, + 4096, + 7168, + 9216, + 5120, + 14336, + 8192, + 9216, + 15360, + 6144, + 16384, + 5120, + 10240, + 10240, + 11264, + 11264, + 7168, + 6144, + 8192, + 11264, + 8192, + 14336, + 8192, + 10240, + 13312, + 15360, + 18432, + 4096, + 8192, + 8192, + 15360, + 10240, + 7168, + 12288, + 7168, + 12288, + 12288, + 8192, + 16384, + 9216, + 11264, + 6144, + 8192, + 7168, + 7168, + 12288, + 5120, + 8192 + ], + "mixed": [ + 14336, + 9472, + 8448, + 12032, + 8960, + 11776, + 9984, + 8448, + 9216, + 11264, + 12288, + 11008, + 7936, + 11008, + 9984, + 8448, + 11776, + 9984, + 9984, + 10752, + 8448, + 9984, + 9728, + 10240, + 8704, + 8448, + 8192, + 10496, + 8704, + 11008, + 9984, + 13824, + 8960, + 11264, + 9984, + 11008, + 13824, + 11264, + 9984, + 9216, + 9472, + 11008, + 9472, + 11776, + 12800, + 10240, + 8192, + 8192, + 9728, + 11008, + 8960, + 11264, + 8704, + 10496, + 10240, + 11776, + 7936, + 9216, + 9472, + 10752, + 8448, + 12288, + 9216, + 9728, + 11008, + 9472, + 11008, + 10240, + 8704, + 8448, + 9216, + 9728, + 9728, + 8960, + 10496, + 11520, + 9216, + 8704, + 6400, + 12032, + 11008, + 12288, + 12288, + 7936, + 10752, + 7936, + 12032, + 9216, + 8448, + 9472, + 9472, + 10752, + 10752, + 10752, + 12800, + 10496, + 10496, + 12032, + 8448, + 8960, + 7680, + 9472, + 11008, + 8448 + ] + }, + "scope": "Numerical and sampling controls only. All gradient/update probes are discarded; no trained candidate checkpoint or validation score is produced.", + "test_data_used": false + } + }, + "training_source_snapshot": "training_sources/condition_same1", + "selected_checkpoint_steps": [ + "1024", + "512" + ], + "checkpoint_records": { + "512": { + "step": 512, + "new_training_shots": 524288, + "unique_training_rows_seen_in_this_phase": 451734, + "weights": "weights-512.npz", + "weights_sha256": "4cf3ebae65f19ed882d90aac2157db4127d715f9c688c987280c9aac28efad84", + "validation": "validation-512.json", + "complete": true + }, + "1024": { + "step": 1024, + "new_training_shots": 1048576, + "unique_training_rows_seen_in_this_phase": 803777, + "weights": "weights-1024.npz", + "weights_sha256": "c515815d285cc2eafe52d8ced2df1c754ac578ba54786b98770e15238dc4eaad", + "validation": "validation-1024.json", + "complete": true + } + }, + "selection": "Minimum full-validation mean failure per group among incumbent and listed session-trained checkpoints; when listed, blend candidates average the recorded small-contextual reference and new probabilities equally", + "blend_reference": "/run-state/workspace/research/context_upgrades/continuation2/predictions", + "history": [ + { + "group": "d3_bX_center_3_5", + "candidates": { + "incumbent": 0.24451622596153846, + "512": 0.24528245192307693, + "1024": 0.24529747596153847, + "blend-512": 0.24562800480769229, + "blend-1024": 0.24574819711538462 + }, + "selected": "incumbent" + }, + { + "group": "d3_bX_center_5_3", + "candidates": { + "incumbent": 0.2527794471153846, + "512": 0.25326021634615387, + "1024": 0.252734375, + "blend-512": 0.2533954326923077, + "blend-1024": 0.25307992788461536 + }, + "selected": "1024" + }, + { + "group": "d3_bX_center_5_7", + "candidates": { + "incumbent": 0.23366887019230773, + "512": 0.23359375, + "1024": 0.2334435096153846, + "blend-512": 0.23426983173076926, + "blend-1024": 0.23384915865384612 + }, + "selected": "1024" + }, + { + "group": "d3_bX_center_7_5", + "candidates": { + "incumbent": 0.23889723557692305, + "512": 0.23933293269230774, + "1024": 0.23951322115384613, + "blend-512": 0.23915264423076918, + "blend-1024": 0.239453125 + }, + "selected": "incumbent" + }, + { + "group": "d3_bZ_center_3_5", + "candidates": { + "incumbent": 0.2446213942307692, + "512": 0.2444561298076923, + "1024": 0.24489182692307693, + "blend-512": 0.24508713942307692, + "blend-1024": 0.24568810096153845 + }, + "selected": "512" + }, + { + "group": "d3_bZ_center_5_3", + "candidates": { + "incumbent": 0.23652343749999996, + "512": 0.23765024038461538, + "1024": 0.2379206730769231, + "blend-512": 0.23787560096153845, + "blend-1024": 0.23759014423076924 + }, + "selected": "incumbent" + }, + { + "group": "d3_bZ_center_5_7", + "candidates": { + "incumbent": 0.2356670673076923, + "512": 0.23619290865384618, + "1024": 0.23629807692307692, + "blend-512": 0.23610276442307693, + "blend-1024": 0.23593750000000002 + }, + "selected": "incumbent" + }, + { + "group": "d3_bZ_center_7_5", + "candidates": { + "incumbent": 0.23294771634615385, + "512": 0.23398437499999997, + "1024": 0.23342848557692308, + "blend-512": 0.2337590144230769, + "blend-1024": 0.2334435096153846 + }, + "selected": "incumbent" + }, + { + "group": "d5_bX_center_5_5", + "candidates": { + "incumbent": 0.23228665865384618 + }, + "selected": "incumbent" + }, + { + "group": "d5_bZ_center_5_5", + "candidates": { + "incumbent": 0.21953124999999998 + }, + "selected": "incumbent" + } + ] + }, + { + "name": "group_specialize1", + "training_run": { + "experiment": "group-specific d3 continuation", + "groups": { + "d3_bX_center_3_5": { + "initialization": "Continue the temporal component of the selected session-trained group decoder; no new random parameters", + "original_initialization": "Base rich network seed20261030 and temporal encoder seed20261104; all fitting occurred in this session", + "group": "d3_bX_center_3_5", + "parent_model": { + "weights": "weights/contextual-temporal2_swa-mean3.npz", + "training_checkpoint": "temporal2_swa/mean3" + }, + "parent_weights_sha256": "a61fb22f803b795c2a39b6c19dc3a368d536cb21419ba773778601b28e4403fe", + "parent_provenance_sha256": "7c76c4ba7b6bb90ddb1ac3fa9cd5d27788fdad2bf6bc6f95e8187824c971bdfb", + "parent_record": "training_sources/group_specialize1/parent_training_provenance.json", + "training": "Uniform sampling over all13 odd round counts for this geometry/basis group, supplied training labels only", + "eligible_training_shots": 258440, + "training_draws": 262144, + "unique_training_rows_seen_in_this_phase": 162496, + "unique_rows_by_condition": { + "surface_code_bX_d3_r01_center_3_5": 11586, + "surface_code_bX_d3_r03_center_3_5": 13164, + "surface_code_bX_d3_r05_center_3_5": 14692, + "surface_code_bX_d3_r07_center_3_5": 12423, + "surface_code_bX_d3_r09_center_3_5": 13507, + "surface_code_bX_d3_r11_center_3_5": 9165, + "surface_code_bX_d3_r13_center_3_5": 14569, + "surface_code_bX_d3_r15_center_3_5": 11563, + "surface_code_bX_d3_r17_center_3_5": 14132, + "surface_code_bX_d3_r19_center_3_5": 9704, + "surface_code_bX_d3_r21_center_3_5": 12014, + "surface_code_bX_d3_r23_center_3_5": 13117, + "surface_code_bX_d3_r25_center_3_5": 12860 + }, + "steps": 256, + "batch_size": 1024, + "learning_rate": 0.0001, + "optimizer": "Fresh AdamW moments for every group, weight decay1e-4, global norm clip1", + "optimizer_restored": false, + "rng_restored": false, + "sampling_seed": 20261200, + "validation": "Fixed random screen per condition using seed20261028; full validation is used by the separate selector", + "validation_shots_requested_per_condition": 1024, + "loss": "Uniform binary conditional logical likelihood through exact frontier contraction", + "training_source_sha256": { + "learned_exact__specialize_train.py": "5a2e7ba25969f4599cb65d60cbd53544fd77d7a6926ec0d03662b72b151acf95", + "learned_exact__temporal_model.py": "76fd01d5ae50f7d0b5790800898e7103ddb86db8f6a2ace883407515add2e186", + "learned_exact__data.py": "6f88582230aec7bbf35170a672ff615cac0cf18c0a690b2983874bb4c02c75e6", + "learned_exact__gradient.py": "ecb6b45698480386fa124fe878db7dbfa246d1969fd720ec26daff9547da2001", + "exact_d3__exact.py": "869dfacb295c419c156d1070fc2afdd6e20d02ac1840e45e72346b2b289f4825" + }, + "test_data_used": false, + "log": [ + { + "group": "d3_bX_center_3_5", + "step": 1, + "loss": 0.5817165970802307, + "error": 0.3388671875, + "gradient_norm": 0.07810031622648239, + "elapsed": 23.888731479644775 + }, + { + "group": "d3_bX_center_3_5", + "step": 16, + "loss": 0.43716299533843994, + "error": 0.2177734375, + "gradient_norm": 0.05689458176493645, + "elapsed": 28.204753398895264 + }, + { + "group": "d3_bX_center_3_5", + "step": 32, + "loss": 0.44627559185028076, + "error": 0.208984375, + "gradient_norm": 0.056756604462862015, + "elapsed": 32.84233617782593 + }, + { + "group": "d3_bX_center_3_5", + "step": 48, + "loss": 0.4319554567337036, + "error": 0.234375, + "gradient_norm": 0.05750993266701698, + "elapsed": 37.434494495391846 + }, + { + "group": "d3_bX_center_3_5", + "step": 64, + "loss": 0.2955609858036041, + "error": 0.1279296875, + "gradient_norm": 0.07982950657606125, + "elapsed": 42.03733849525452 + }, + { + "group": "d3_bX_center_3_5", + "step": 80, + "loss": 0.051099054515361786, + "error": 0.01953125, + "gradient_norm": 0.01472504436969757, + "elapsed": 46.64323449134827 + }, + { + "group": "d3_bX_center_3_5", + "step": 96, + "loss": 0.3553770184516907, + "error": 0.1767578125, + "gradient_norm": 0.04556305333971977, + "elapsed": 51.289584159851074 + }, + { + "group": "d3_bX_center_3_5", + "step": 112, + "loss": 0.49853652715682983, + "error": 0.255859375, + "gradient_norm": 0.05837372690439224, + "elapsed": 55.921807527542114 + }, + { + "group": "d3_bX_center_3_5", + "step": 128, + "loss": 0.6128357648849487, + "error": 0.3759765625, + "gradient_norm": 0.04268687590956688, + "elapsed": 60.54293370246887 + }, + { + "group": "d3_bX_center_3_5", + "step": 144, + "loss": 0.40158310532569885, + "error": 0.2109375, + "gradient_norm": 0.06899380683898926, + "elapsed": 66.70903372764587 + }, + { + "group": "d3_bX_center_3_5", + "step": 160, + "loss": 0.6189148426055908, + "error": 0.369140625, + "gradient_norm": 0.049649614840745926, + "elapsed": 71.31301522254944 + }, + { + "group": "d3_bX_center_3_5", + "step": 176, + "loss": 0.5736979246139526, + "error": 0.3271484375, + "gradient_norm": 0.06365907937288284, + "elapsed": 75.90330648422241 + }, + { + "group": "d3_bX_center_3_5", + "step": 192, + "loss": 0.5324695706367493, + "error": 0.294921875, + "gradient_norm": 0.05174271762371063, + "elapsed": 80.51115894317627 + }, + { + "group": "d3_bX_center_3_5", + "step": 208, + "loss": 0.6137855052947998, + "error": 0.3623046875, + "gradient_norm": 0.04891493543982506, + "elapsed": 85.1122133731842 + }, + { + "group": "d3_bX_center_3_5", + "step": 224, + "loss": 0.6262054443359375, + "error": 0.400390625, + "gradient_norm": 0.0478600338101387, + "elapsed": 89.77170705795288 + }, + { + "group": "d3_bX_center_3_5", + "step": 240, + "loss": 0.5114355087280273, + "error": 0.2802734375, + "gradient_norm": 0.06124471500515938, + "elapsed": 94.34836196899414 + }, + { + "group": "d3_bX_center_3_5", + "step": 256, + "loss": 0.3812999129295349, + "error": 0.181640625, + "gradient_norm": 0.050427597016096115, + "elapsed": 98.88006901741028 + } + ] + }, + "d3_bX_center_5_3": { + "initialization": "Continue the temporal component of the selected session-trained group decoder; no new random parameters", + "original_initialization": "Base rich network seed20261030 and temporal encoder seed20261104; all fitting occurred in this session", + "group": "d3_bX_center_5_3", + "parent_model": { + "weights": "weights/contextual-condition_same1-1024.npz", + "training_checkpoint": "condition_same1/1024" + }, + "parent_weights_sha256": "c515815d285cc2eafe52d8ced2df1c754ac578ba54786b98770e15238dc4eaad", + "parent_provenance_sha256": "7c76c4ba7b6bb90ddb1ac3fa9cd5d27788fdad2bf6bc6f95e8187824c971bdfb", + "parent_record": "training_sources/group_specialize1/parent_training_provenance.json", + "training": "Uniform sampling over all13 odd round counts for this geometry/basis group, supplied training labels only", + "eligible_training_shots": 258440, + "training_draws": 262144, + "unique_training_rows_seen_in_this_phase": 161233, + "unique_rows_by_condition": { + "surface_code_bX_d3_r01_center_5_3": 11129, + "surface_code_bX_d3_r03_center_5_3": 15369, + "surface_code_bX_d3_r05_center_5_3": 14677, + "surface_code_bX_d3_r07_center_5_3": 9707, + "surface_code_bX_d3_r09_center_5_3": 11152, + "surface_code_bX_d3_r11_center_5_3": 12800, + "surface_code_bX_d3_r13_center_5_3": 13443, + "surface_code_bX_d3_r15_center_5_3": 12388, + "surface_code_bX_d3_r17_center_5_3": 15158, + "surface_code_bX_d3_r19_center_5_3": 10218, + "surface_code_bX_d3_r21_center_5_3": 10711, + "surface_code_bX_d3_r23_center_5_3": 13773, + "surface_code_bX_d3_r25_center_5_3": 10708 + }, + "steps": 256, + "batch_size": 1024, + "learning_rate": 0.0001, + "optimizer": "Fresh AdamW moments for every group, weight decay1e-4, global norm clip1", + "optimizer_restored": false, + "rng_restored": false, + "sampling_seed": 20261201, + "validation": "Fixed random screen per condition using seed20261028; full validation is used by the separate selector", + "validation_shots_requested_per_condition": 1024, + "loss": "Uniform binary conditional logical likelihood through exact frontier contraction", + "training_source_sha256": { + "learned_exact__specialize_train.py": "5a2e7ba25969f4599cb65d60cbd53544fd77d7a6926ec0d03662b72b151acf95", + "learned_exact__temporal_model.py": "76fd01d5ae50f7d0b5790800898e7103ddb86db8f6a2ace883407515add2e186", + "learned_exact__data.py": "6f88582230aec7bbf35170a672ff615cac0cf18c0a690b2983874bb4c02c75e6", + "learned_exact__gradient.py": "ecb6b45698480386fa124fe878db7dbfa246d1969fd720ec26daff9547da2001", + "exact_d3__exact.py": "869dfacb295c419c156d1070fc2afdd6e20d02ac1840e45e72346b2b289f4825" + }, + "test_data_used": false, + "log": [ + { + "group": "d3_bX_center_5_3", + "step": 1, + "loss": 0.4805193245410919, + "error": 0.2578125, + "gradient_norm": 0.05444623902440071, + "elapsed": 102.3664813041687 + }, + { + "group": "d3_bX_center_5_3", + "step": 16, + "loss": 0.2784017324447632, + "error": 0.11328125, + "gradient_norm": 0.08824625611305237, + "elapsed": 106.75308656692505 + }, + { + "group": "d3_bX_center_5_3", + "step": 32, + "loss": 0.6410393118858337, + "error": 0.412109375, + "gradient_norm": 0.03859763592481613, + "elapsed": 111.4091112613678 + }, + { + "group": "d3_bX_center_5_3", + "step": 48, + "loss": 0.42605704069137573, + "error": 0.2099609375, + "gradient_norm": 0.050592850893735886, + "elapsed": 116.04315447807312 + }, + { + "group": "d3_bX_center_5_3", + "step": 64, + "loss": 0.5663277506828308, + "error": 0.298828125, + "gradient_norm": 0.055698245763778687, + "elapsed": 120.68257761001587 + }, + { + "group": "d3_bX_center_5_3", + "step": 80, + "loss": 0.6572779417037964, + "error": 0.4267578125, + "gradient_norm": 0.07223570346832275, + "elapsed": 125.41016721725464 + }, + { + "group": "d3_bX_center_5_3", + "step": 96, + "loss": 0.5440086126327515, + "error": 0.2998046875, + "gradient_norm": 0.08954599499702454, + "elapsed": 130.22392392158508 + }, + { + "group": "d3_bX_center_5_3", + "step": 112, + "loss": 0.5094837546348572, + "error": 0.2548828125, + "gradient_norm": 0.06551362574100494, + "elapsed": 134.7945008277893 + }, + { + "group": "d3_bX_center_5_3", + "step": 128, + "loss": 0.5803394317626953, + "error": 0.3193359375, + "gradient_norm": 0.06082230061292648, + "elapsed": 139.35728001594543 + }, + { + "group": "d3_bX_center_5_3", + "step": 144, + "loss": 0.616602897644043, + "error": 0.375, + "gradient_norm": 0.050001099705696106, + "elapsed": 145.55171418190002 + }, + { + "group": "d3_bX_center_5_3", + "step": 160, + "loss": 0.5520708560943604, + "error": 0.2880859375, + "gradient_norm": 0.06085196137428284, + "elapsed": 150.15428566932678 + }, + { + "group": "d3_bX_center_5_3", + "step": 176, + "loss": 0.6117234230041504, + "error": 0.3740234375, + "gradient_norm": 0.0825766772031784, + "elapsed": 154.74532389640808 + }, + { + "group": "d3_bX_center_5_3", + "step": 192, + "loss": 0.5692043304443359, + "error": 0.3203125, + "gradient_norm": 0.07800327241420746, + "elapsed": 159.3635880947113 + }, + { + "group": "d3_bX_center_5_3", + "step": 208, + "loss": 0.30638742446899414, + "error": 0.130859375, + "gradient_norm": 0.049805574119091034, + "elapsed": 163.99608540534973 + }, + { + "group": "d3_bX_center_5_3", + "step": 224, + "loss": 0.5141903758049011, + "error": 0.28515625, + "gradient_norm": 0.06405262649059296, + "elapsed": 168.6415627002716 + }, + { + "group": "d3_bX_center_5_3", + "step": 240, + "loss": 0.5797978639602661, + "error": 0.34765625, + "gradient_norm": 0.10031016170978546, + "elapsed": 173.26013374328613 + }, + { + "group": "d3_bX_center_5_3", + "step": 256, + "loss": 0.2809719741344452, + "error": 0.12890625, + "gradient_norm": 0.04573458060622215, + "elapsed": 177.8879518508911 + } + ] + }, + "d3_bX_center_5_7": { + "initialization": "Continue the temporal component of the selected session-trained group decoder; no new random parameters", + "original_initialization": "Base rich network seed20261030 and temporal encoder seed20261104; all fitting occurred in this session", + "group": "d3_bX_center_5_7", + "parent_model": { + "weights": "weights/contextual-condition_same1-1024.npz", + "training_checkpoint": "condition_same1/1024" + }, + "parent_weights_sha256": "c515815d285cc2eafe52d8ced2df1c754ac578ba54786b98770e15238dc4eaad", + "parent_provenance_sha256": "7c76c4ba7b6bb90ddb1ac3fa9cd5d27788fdad2bf6bc6f95e8187824c971bdfb", + "parent_record": "training_sources/group_specialize1/parent_training_provenance.json", + "training": "Uniform sampling over all13 odd round counts for this geometry/basis group, supplied training labels only", + "eligible_training_shots": 258440, + "training_draws": 262144, + "unique_training_rows_seen_in_this_phase": 162612, + "unique_rows_by_condition": { + "surface_code_bX_d3_r01_center_5_7": 13532, + "surface_code_bX_d3_r03_center_5_7": 12060, + "surface_code_bX_d3_r05_center_5_7": 14744, + "surface_code_bX_d3_r07_center_5_7": 11642, + "surface_code_bX_d3_r09_center_5_7": 13167, + "surface_code_bX_d3_r11_center_5_7": 8639, + "surface_code_bX_d3_r13_center_5_7": 14627, + "surface_code_bX_d3_r15_center_5_7": 11178, + "surface_code_bX_d3_r17_center_5_7": 10160, + "surface_code_bX_d3_r19_center_5_7": 13125, + "surface_code_bX_d3_r21_center_5_7": 13464, + "surface_code_bX_d3_r23_center_5_7": 13143, + "surface_code_bX_d3_r25_center_5_7": 13131 + }, + "steps": 256, + "batch_size": 1024, + "learning_rate": 0.0001, + "optimizer": "Fresh AdamW moments for every group, weight decay1e-4, global norm clip1", + "optimizer_restored": false, + "rng_restored": false, + "sampling_seed": 20261202, + "validation": "Fixed random screen per condition using seed20261028; full validation is used by the separate selector", + "validation_shots_requested_per_condition": 1024, + "loss": "Uniform binary conditional logical likelihood through exact frontier contraction", + "training_source_sha256": { + "learned_exact__specialize_train.py": "5a2e7ba25969f4599cb65d60cbd53544fd77d7a6926ec0d03662b72b151acf95", + "learned_exact__temporal_model.py": "76fd01d5ae50f7d0b5790800898e7103ddb86db8f6a2ace883407515add2e186", + "learned_exact__data.py": "6f88582230aec7bbf35170a672ff615cac0cf18c0a690b2983874bb4c02c75e6", + "learned_exact__gradient.py": "ecb6b45698480386fa124fe878db7dbfa246d1969fd720ec26daff9547da2001", + "exact_d3__exact.py": "869dfacb295c419c156d1070fc2afdd6e20d02ac1840e45e72346b2b289f4825" + }, + "test_data_used": false, + "log": [ + { + "group": "d3_bX_center_5_7", + "step": 1, + "loss": 0.18060244619846344, + "error": 0.0712890625, + "gradient_norm": 0.035179879516363144, + "elapsed": 181.32161450386047 + }, + { + "group": "d3_bX_center_5_7", + "step": 16, + "loss": 0.5082811117172241, + "error": 0.2705078125, + "gradient_norm": 0.07098715752363205, + "elapsed": 185.63990426063538 + }, + { + "group": "d3_bX_center_5_7", + "step": 32, + "loss": 0.5253040790557861, + "error": 0.2880859375, + "gradient_norm": 0.16328570246696472, + "elapsed": 190.24219703674316 + }, + { + "group": "d3_bX_center_5_7", + "step": 48, + "loss": 0.631301760673523, + "error": 0.3994140625, + "gradient_norm": 0.057355962693691254, + "elapsed": 194.84725713729858 + }, + { + "group": "d3_bX_center_5_7", + "step": 64, + "loss": 0.27920418977737427, + "error": 0.1240234375, + "gradient_norm": 0.06183589994907379, + "elapsed": 199.47137212753296 + }, + { + "group": "d3_bX_center_5_7", + "step": 80, + "loss": 0.611309289932251, + "error": 0.3544921875, + "gradient_norm": 0.07737621665000916, + "elapsed": 204.0849051475525 + }, + { + "group": "d3_bX_center_5_7", + "step": 96, + "loss": 0.2803115248680115, + "error": 0.1279296875, + "gradient_norm": 0.05086443945765495, + "elapsed": 208.7057957649231 + }, + { + "group": "d3_bX_center_5_7", + "step": 112, + "loss": 0.5856442451477051, + "error": 0.330078125, + "gradient_norm": 0.09568645805120468, + "elapsed": 213.3731656074524 + }, + { + "group": "d3_bX_center_5_7", + "step": 128, + "loss": 0.6120781898498535, + "error": 0.3486328125, + "gradient_norm": 0.07464266568422318, + "elapsed": 218.0141613483429 + }, + { + "group": "d3_bX_center_5_7", + "step": 144, + "loss": 0.4921022355556488, + "error": 0.24609375, + "gradient_norm": 0.04171774536371231, + "elapsed": 224.291086435318 + }, + { + "group": "d3_bX_center_5_7", + "step": 160, + "loss": 0.6169480085372925, + "error": 0.375, + "gradient_norm": 0.06097063049674034, + "elapsed": 229.43670320510864 + }, + { + "group": "d3_bX_center_5_7", + "step": 176, + "loss": 0.6014459729194641, + "error": 0.3720703125, + "gradient_norm": 0.049403320997953415, + "elapsed": 235.6041157245636 + }, + { + "group": "d3_bX_center_5_7", + "step": 192, + "loss": 0.5643549561500549, + "error": 0.3076171875, + "gradient_norm": 0.034399617463350296, + "elapsed": 242.02996158599854 + }, + { + "group": "d3_bX_center_5_7", + "step": 208, + "loss": 0.04667453467845917, + "error": 0.0146484375, + "gradient_norm": 0.021298106759786606, + "elapsed": 247.37174129486084 + }, + { + "group": "d3_bX_center_5_7", + "step": 224, + "loss": 0.5067787170410156, + "error": 0.2607421875, + "gradient_norm": 0.056687332689762115, + "elapsed": 251.9976110458374 + }, + { + "group": "d3_bX_center_5_7", + "step": 240, + "loss": 0.42991048097610474, + "error": 0.2255859375, + "gradient_norm": 0.061536215245723724, + "elapsed": 256.75613379478455 + }, + { + "group": "d3_bX_center_5_7", + "step": 256, + "loss": 0.47317343950271606, + "error": 0.2529296875, + "gradient_norm": 0.060076676309108734, + "elapsed": 261.4124813079834 + } + ] + }, + "d3_bX_center_7_5": { + "initialization": "Continue the temporal component of the selected session-trained group decoder; no new random parameters", + "original_initialization": "Base rich network seed20261030 and temporal encoder seed20261104; all fitting occurred in this session", + "group": "d3_bX_center_7_5", + "parent_model": { + "weights": "weights/contextual-temporal2-2048.npz", + "training_checkpoint": "temporal2/2048", + "blend_contextual": true + }, + "parent_weights_sha256": "ab1175f9ef7ed52106ce1127b7da91bfc3d91782c0a2fec2f8189f661e3679db", + "parent_provenance_sha256": "7c76c4ba7b6bb90ddb1ac3fa9cd5d27788fdad2bf6bc6f95e8187824c971bdfb", + "parent_record": "training_sources/group_specialize1/parent_training_provenance.json", + "training": "Uniform sampling over all13 odd round counts for this geometry/basis group, supplied training labels only", + "eligible_training_shots": 258440, + "training_draws": 262144, + "unique_training_rows_seen_in_this_phase": 162880, + "unique_rows_by_condition": { + "surface_code_bX_d3_r01_center_7_5": 13450, + "surface_code_bX_d3_r03_center_7_5": 11109, + "surface_code_bX_d3_r05_center_7_5": 14012, + "surface_code_bX_d3_r07_center_7_5": 13898, + "surface_code_bX_d3_r09_center_7_5": 12398, + "surface_code_bX_d3_r11_center_7_5": 9664, + "surface_code_bX_d3_r13_center_7_5": 11550, + "surface_code_bX_d3_r15_center_7_5": 12809, + "surface_code_bX_d3_r17_center_7_5": 10673, + "surface_code_bX_d3_r19_center_7_5": 13751, + "surface_code_bX_d3_r21_center_7_5": 13442, + "surface_code_bX_d3_r23_center_7_5": 13774, + "surface_code_bX_d3_r25_center_7_5": 12350 + }, + "steps": 256, + "batch_size": 1024, + "learning_rate": 0.0001, + "optimizer": "Fresh AdamW moments for every group, weight decay1e-4, global norm clip1", + "optimizer_restored": false, + "rng_restored": false, + "sampling_seed": 20261203, + "validation": "Fixed random screen per condition using seed20261028; full validation is used by the separate selector", + "validation_shots_requested_per_condition": 1024, + "loss": "Uniform binary conditional logical likelihood through exact frontier contraction", + "training_source_sha256": { + "learned_exact__specialize_train.py": "5a2e7ba25969f4599cb65d60cbd53544fd77d7a6926ec0d03662b72b151acf95", + "learned_exact__temporal_model.py": "76fd01d5ae50f7d0b5790800898e7103ddb86db8f6a2ace883407515add2e186", + "learned_exact__data.py": "6f88582230aec7bbf35170a672ff615cac0cf18c0a690b2983874bb4c02c75e6", + "learned_exact__gradient.py": "ecb6b45698480386fa124fe878db7dbfa246d1969fd720ec26daff9547da2001", + "exact_d3__exact.py": "869dfacb295c419c156d1070fc2afdd6e20d02ac1840e45e72346b2b289f4825" + }, + "test_data_used": false, + "log": [ + { + "group": "d3_bX_center_7_5", + "step": 1, + "loss": 0.6286593675613403, + "error": 0.3916015625, + "gradient_norm": 0.048550695180892944, + "elapsed": 264.77757954597473 + }, + { + "group": "d3_bX_center_7_5", + "step": 16, + "loss": 0.5998052954673767, + "error": 0.3564453125, + "gradient_norm": 0.04667327180504799, + "elapsed": 269.1457931995392 + }, + { + "group": "d3_bX_center_7_5", + "step": 32, + "loss": 0.6372991800308228, + "error": 0.3984375, + "gradient_norm": 0.03931272402405739, + "elapsed": 273.81044721603394 + }, + { + "group": "d3_bX_center_7_5", + "step": 48, + "loss": 0.32325083017349243, + "error": 0.1455078125, + "gradient_norm": 0.053585249930620193, + "elapsed": 278.48719453811646 + }, + { + "group": "d3_bX_center_7_5", + "step": 64, + "loss": 0.6184052228927612, + "error": 0.3974609375, + "gradient_norm": 0.04405878111720085, + "elapsed": 283.16093349456787 + }, + { + "group": "d3_bX_center_7_5", + "step": 80, + "loss": 0.30300217866897583, + "error": 0.1318359375, + "gradient_norm": 0.03475452959537506, + "elapsed": 287.8628993034363 + }, + { + "group": "d3_bX_center_7_5", + "step": 96, + "loss": 0.4532725214958191, + "error": 0.23828125, + "gradient_norm": 0.053579334169626236, + "elapsed": 292.54087567329407 + }, + { + "group": "d3_bX_center_7_5", + "step": 112, + "loss": 0.5722991824150085, + "error": 0.333984375, + "gradient_norm": 0.05200285091996193, + "elapsed": 297.2698106765747 + }, + { + "group": "d3_bX_center_7_5", + "step": 128, + "loss": 0.47720301151275635, + "error": 0.248046875, + "gradient_norm": 0.08435481041669846, + "elapsed": 301.9647386074066 + }, + { + "group": "d3_bX_center_7_5", + "step": 144, + "loss": 0.49832063913345337, + "error": 0.2666015625, + "gradient_norm": 0.06509781628847122, + "elapsed": 308.208101272583 + }, + { + "group": "d3_bX_center_7_5", + "step": 160, + "loss": 0.05153600126504898, + "error": 0.015625, + "gradient_norm": 0.018944455310702324, + "elapsed": 312.88946986198425 + }, + { + "group": "d3_bX_center_7_5", + "step": 176, + "loss": 0.3049379885196686, + "error": 0.1376953125, + "gradient_norm": 0.03572608530521393, + "elapsed": 317.5962097644806 + }, + { + "group": "d3_bX_center_7_5", + "step": 192, + "loss": 0.4833422899246216, + "error": 0.2275390625, + "gradient_norm": 0.11588290333747864, + "elapsed": 322.2771329879761 + }, + { + "group": "d3_bX_center_7_5", + "step": 208, + "loss": 0.5812653303146362, + "error": 0.34765625, + "gradient_norm": 0.04924288019537926, + "elapsed": 326.9544439315796 + }, + { + "group": "d3_bX_center_7_5", + "step": 224, + "loss": 0.5518968105316162, + "error": 0.2919921875, + "gradient_norm": 0.049676258116960526, + "elapsed": 331.7683095932007 + }, + { + "group": "d3_bX_center_7_5", + "step": 240, + "loss": 0.599678099155426, + "error": 0.353515625, + "gradient_norm": 0.09019427001476288, + "elapsed": 337.0053963661194 + }, + { + "group": "d3_bX_center_7_5", + "step": 256, + "loss": 0.6168051362037659, + "error": 0.373046875, + "gradient_norm": 0.045873139053583145, + "elapsed": 342.27088832855225 + } + ] + }, + "d3_bZ_center_3_5": { + "initialization": "Continue the temporal component of the selected session-trained group decoder; no new random parameters", + "original_initialization": "Base rich network seed20261030 and temporal encoder seed20261104; all fitting occurred in this session", + "group": "d3_bZ_center_3_5", + "parent_model": { + "weights": "weights/contextual-condition_same1-512.npz", + "training_checkpoint": "condition_same1/512" + }, + "parent_weights_sha256": "4cf3ebae65f19ed882d90aac2157db4127d715f9c688c987280c9aac28efad84", + "parent_provenance_sha256": "7c76c4ba7b6bb90ddb1ac3fa9cd5d27788fdad2bf6bc6f95e8187824c971bdfb", + "parent_record": "training_sources/group_specialize1/parent_training_provenance.json", + "training": "Uniform sampling over all13 odd round counts for this geometry/basis group, supplied training labels only", + "eligible_training_shots": 258440, + "training_draws": 262144, + "unique_training_rows_seen_in_this_phase": 162257, + "unique_rows_by_condition": { + "surface_code_bZ_d3_r01_center_3_5": 13149, + "surface_code_bZ_d3_r03_center_3_5": 12112, + "surface_code_bZ_d3_r05_center_3_5": 12434, + "surface_code_bZ_d3_r07_center_3_5": 13778, + "surface_code_bZ_d3_r09_center_3_5": 12830, + "surface_code_bZ_d3_r11_center_3_5": 6034, + "surface_code_bZ_d3_r13_center_3_5": 13524, + "surface_code_bZ_d3_r15_center_3_5": 13160, + "surface_code_bZ_d3_r17_center_3_5": 12823, + "surface_code_bZ_d3_r19_center_3_5": 11129, + "surface_code_bZ_d3_r21_center_3_5": 13793, + "surface_code_bZ_d3_r23_center_3_5": 14080, + "surface_code_bZ_d3_r25_center_3_5": 13411 + }, + "steps": 256, + "batch_size": 1024, + "learning_rate": 0.0001, + "optimizer": "Fresh AdamW moments for every group, weight decay1e-4, global norm clip1", + "optimizer_restored": false, + "rng_restored": false, + "sampling_seed": 20261204, + "validation": "Fixed random screen per condition using seed20261028; full validation is used by the separate selector", + "validation_shots_requested_per_condition": 1024, + "loss": "Uniform binary conditional logical likelihood through exact frontier contraction", + "training_source_sha256": { + "learned_exact__specialize_train.py": "5a2e7ba25969f4599cb65d60cbd53544fd77d7a6926ec0d03662b72b151acf95", + "learned_exact__temporal_model.py": "76fd01d5ae50f7d0b5790800898e7103ddb86db8f6a2ace883407515add2e186", + "learned_exact__data.py": "6f88582230aec7bbf35170a672ff615cac0cf18c0a690b2983874bb4c02c75e6", + "learned_exact__gradient.py": "ecb6b45698480386fa124fe878db7dbfa246d1969fd720ec26daff9547da2001", + "exact_d3__exact.py": "869dfacb295c419c156d1070fc2afdd6e20d02ac1840e45e72346b2b289f4825" + }, + "test_data_used": false, + "log": [ + { + "group": "d3_bZ_center_3_5", + "step": 1, + "loss": 0.36515435576438904, + "error": 0.17578125, + "gradient_norm": 0.068653903901577, + "elapsed": 346.68829584121704 + }, + { + "group": "d3_bZ_center_3_5", + "step": 16, + "loss": 0.2806941568851471, + "error": 0.1318359375, + "gradient_norm": 0.06498919427394867, + "elapsed": 352.6486053466797 + }, + { + "group": "d3_bZ_center_3_5", + "step": 32, + "loss": 0.5172728300094604, + "error": 0.2578125, + "gradient_norm": 0.06919123977422714, + "elapsed": 358.0916488170624 + }, + { + "group": "d3_bZ_center_3_5", + "step": 48, + "loss": 0.5654157400131226, + "error": 0.3134765625, + "gradient_norm": 0.062110695987939835, + "elapsed": 364.1197271347046 + }, + { + "group": "d3_bZ_center_3_5", + "step": 64, + "loss": 0.5950935482978821, + "error": 0.349609375, + "gradient_norm": 0.06901932507753372, + "elapsed": 370.44589829444885 + }, + { + "group": "d3_bZ_center_3_5", + "step": 80, + "loss": 0.3655591607093811, + "error": 0.1865234375, + "gradient_norm": 0.06035780534148216, + "elapsed": 376.3442976474762 + }, + { + "group": "d3_bZ_center_3_5", + "step": 96, + "loss": 0.5849340558052063, + "error": 0.345703125, + "gradient_norm": 0.0669141560792923, + "elapsed": 381.8527054786682 + }, + { + "group": "d3_bZ_center_3_5", + "step": 112, + "loss": 0.04215944558382034, + "error": 0.013671875, + "gradient_norm": 0.029389331117272377, + "elapsed": 386.54820346832275 + }, + { + "group": "d3_bZ_center_3_5", + "step": 128, + "loss": 0.619553804397583, + "error": 0.3876953125, + "gradient_norm": 0.053926873952150345, + "elapsed": 391.31534695625305 + }, + { + "group": "d3_bZ_center_3_5", + "step": 144, + "loss": 0.3793254494667053, + "error": 0.1923828125, + "gradient_norm": 0.07844529300928116, + "elapsed": 397.51641821861267 + }, + { + "group": "d3_bZ_center_3_5", + "step": 160, + "loss": 0.3429756164550781, + "error": 0.1572265625, + "gradient_norm": 0.06213530898094177, + "elapsed": 402.1174716949463 + }, + { + "group": "d3_bZ_center_3_5", + "step": 176, + "loss": 0.2883482277393341, + "error": 0.1416015625, + "gradient_norm": 0.07786665111780167, + "elapsed": 406.72908902168274 + }, + { + "group": "d3_bZ_center_3_5", + "step": 192, + "loss": 0.03280383348464966, + "error": 0.0087890625, + "gradient_norm": 0.035463444888591766, + "elapsed": 411.33272552490234 + }, + { + "group": "d3_bZ_center_3_5", + "step": 208, + "loss": 0.6251656413078308, + "error": 0.38671875, + "gradient_norm": 0.08498021215200424, + "elapsed": 415.93534207344055 + }, + { + "group": "d3_bZ_center_3_5", + "step": 224, + "loss": 0.43049943447113037, + "error": 0.232421875, + "gradient_norm": 0.08405832201242447, + "elapsed": 420.54495644569397 + }, + { + "group": "d3_bZ_center_3_5", + "step": 240, + "loss": 0.5978946089744568, + "error": 0.3349609375, + "gradient_norm": 0.06633604317903519, + "elapsed": 425.1712546348572 + }, + { + "group": "d3_bZ_center_3_5", + "step": 256, + "loss": 0.5690029859542847, + "error": 0.341796875, + "gradient_norm": 0.06171220913529396, + "elapsed": 430.0519812107086 + } + ] + }, + "d3_bZ_center_5_3": { + "initialization": "Continue the temporal component of the selected session-trained group decoder; no new random parameters", + "original_initialization": "Base rich network seed20261030 and temporal encoder seed20261104; all fitting occurred in this session", + "group": "d3_bZ_center_5_3", + "parent_model": { + "weights": "weights/contextual-temporal2-2048.npz", + "training_checkpoint": "temporal2/2048" + }, + "parent_weights_sha256": "ab1175f9ef7ed52106ce1127b7da91bfc3d91782c0a2fec2f8189f661e3679db", + "parent_provenance_sha256": "7c76c4ba7b6bb90ddb1ac3fa9cd5d27788fdad2bf6bc6f95e8187824c971bdfb", + "parent_record": "training_sources/group_specialize1/parent_training_provenance.json", + "training": "Uniform sampling over all13 odd round counts for this geometry/basis group, supplied training labels only", + "eligible_training_shots": 258440, + "training_draws": 262144, + "unique_training_rows_seen_in_this_phase": 162569, + "unique_rows_by_condition": { + "surface_code_bZ_d3_r01_center_5_3": 11619, + "surface_code_bZ_d3_r03_center_5_3": 13126, + "surface_code_bZ_d3_r05_center_5_3": 12742, + "surface_code_bZ_d3_r07_center_5_3": 9136, + "surface_code_bZ_d3_r09_center_5_3": 15337, + "surface_code_bZ_d3_r11_center_5_3": 11996, + "surface_code_bZ_d3_r13_center_5_3": 12732, + "surface_code_bZ_d3_r15_center_5_3": 13128, + "surface_code_bZ_d3_r17_center_5_3": 14689, + "surface_code_bZ_d3_r19_center_5_3": 11983, + "surface_code_bZ_d3_r21_center_5_3": 11992, + "surface_code_bZ_d3_r23_center_5_3": 11625, + "surface_code_bZ_d3_r25_center_5_3": 12464 + }, + "steps": 256, + "batch_size": 1024, + "learning_rate": 0.0001, + "optimizer": "Fresh AdamW moments for every group, weight decay1e-4, global norm clip1", + "optimizer_restored": false, + "rng_restored": false, + "sampling_seed": 20261205, + "validation": "Fixed random screen per condition using seed20261028; full validation is used by the separate selector", + "validation_shots_requested_per_condition": 1024, + "loss": "Uniform binary conditional logical likelihood through exact frontier contraction", + "training_source_sha256": { + "learned_exact__specialize_train.py": "5a2e7ba25969f4599cb65d60cbd53544fd77d7a6926ec0d03662b72b151acf95", + "learned_exact__temporal_model.py": "76fd01d5ae50f7d0b5790800898e7103ddb86db8f6a2ace883407515add2e186", + "learned_exact__data.py": "6f88582230aec7bbf35170a672ff615cac0cf18c0a690b2983874bb4c02c75e6", + "learned_exact__gradient.py": "ecb6b45698480386fa124fe878db7dbfa246d1969fd720ec26daff9547da2001", + "exact_d3__exact.py": "869dfacb295c419c156d1070fc2afdd6e20d02ac1840e45e72346b2b289f4825" + }, + "test_data_used": false, + "log": [ + { + "group": "d3_bZ_center_5_3", + "step": 1, + "loss": 0.6346971988677979, + "error": 0.3818359375, + "gradient_norm": 0.046160198748111725, + "elapsed": 433.7457048892975 + }, + { + "group": "d3_bZ_center_5_3", + "step": 16, + "loss": 0.46678581833839417, + "error": 0.23828125, + "gradient_norm": 0.04110230877995491, + "elapsed": 438.16989040374756 + }, + { + "group": "d3_bZ_center_5_3", + "step": 32, + "loss": 0.17910712957382202, + "error": 0.064453125, + "gradient_norm": 0.030056120827794075, + "elapsed": 442.8582558631897 + }, + { + "group": "d3_bZ_center_5_3", + "step": 48, + "loss": 0.5041052103042603, + "error": 0.27734375, + "gradient_norm": 0.045486729592084885, + "elapsed": 447.66860795021057 + }, + { + "group": "d3_bZ_center_5_3", + "step": 64, + "loss": 0.5663014054298401, + "error": 0.310546875, + "gradient_norm": 0.04649529233574867, + "elapsed": 452.51550030708313 + }, + { + "group": "d3_bZ_center_5_3", + "step": 80, + "loss": 0.5388609766960144, + "error": 0.2841796875, + "gradient_norm": 0.05346957594156265, + "elapsed": 457.18010997772217 + }, + { + "group": "d3_bZ_center_5_3", + "step": 96, + "loss": 0.6176578998565674, + "error": 0.375, + "gradient_norm": 0.08028864115476608, + "elapsed": 461.89074301719666 + }, + { + "group": "d3_bZ_center_5_3", + "step": 112, + "loss": 0.6225342750549316, + "error": 0.36328125, + "gradient_norm": 0.030471889302134514, + "elapsed": 466.5776717662811 + }, + { + "group": "d3_bZ_center_5_3", + "step": 128, + "loss": 0.2725566625595093, + "error": 0.111328125, + "gradient_norm": 0.05236189067363739, + "elapsed": 471.32313442230225 + }, + { + "group": "d3_bZ_center_5_3", + "step": 144, + "loss": 0.6361372470855713, + "error": 0.3984375, + "gradient_norm": 0.07191100716590881, + "elapsed": 478.3580629825592 + }, + { + "group": "d3_bZ_center_5_3", + "step": 160, + "loss": 0.2549514174461365, + "error": 0.1025390625, + "gradient_norm": 0.0485384576022625, + "elapsed": 484.5399954319 + }, + { + "group": "d3_bZ_center_5_3", + "step": 176, + "loss": 0.06202135607600212, + "error": 0.0205078125, + "gradient_norm": 0.01821581833064556, + "elapsed": 490.2966978549957 + }, + { + "group": "d3_bZ_center_5_3", + "step": 192, + "loss": 0.5546645522117615, + "error": 0.296875, + "gradient_norm": 0.07931670546531677, + "elapsed": 496.1227023601532 + }, + { + "group": "d3_bZ_center_5_3", + "step": 208, + "loss": 0.2724062502384186, + "error": 0.1220703125, + "gradient_norm": 0.0482773631811142, + "elapsed": 501.8398952484131 + }, + { + "group": "d3_bZ_center_5_3", + "step": 224, + "loss": 0.6230898499488831, + "error": 0.3671875, + "gradient_norm": 0.05214303359389305, + "elapsed": 508.2803044319153 + }, + { + "group": "d3_bZ_center_5_3", + "step": 240, + "loss": 0.4187527894973755, + "error": 0.2080078125, + "gradient_norm": 0.046042900532484055, + "elapsed": 513.7485942840576 + }, + { + "group": "d3_bZ_center_5_3", + "step": 256, + "loss": 0.5760256052017212, + "error": 0.3271484375, + "gradient_norm": 0.03505929186940193, + "elapsed": 519.0282807350159 + } + ] + }, + "d3_bZ_center_5_7": { + "initialization": "Continue the temporal component of the selected session-trained group decoder; no new random parameters", + "original_initialization": "Base rich network seed20261030 and temporal encoder seed20261104; all fitting occurred in this session", + "group": "d3_bZ_center_5_7", + "parent_model": { + "weights": "weights/contextual-temporal2-4096.npz", + "training_checkpoint": "temporal2/4096" + }, + "parent_weights_sha256": "5ca716cd5632c9b717bb167d187387483b5485fead55f45b25cc44325d5d18ea", + "parent_provenance_sha256": "7c76c4ba7b6bb90ddb1ac3fa9cd5d27788fdad2bf6bc6f95e8187824c971bdfb", + "parent_record": "training_sources/group_specialize1/parent_training_provenance.json", + "training": "Uniform sampling over all13 odd round counts for this geometry/basis group, supplied training labels only", + "eligible_training_shots": 258440, + "training_draws": 262144, + "unique_training_rows_seen_in_this_phase": 163281, + "unique_rows_by_condition": { + "surface_code_bZ_d3_r01_center_5_7": 11175, + "surface_code_bZ_d3_r03_center_5_7": 13171, + "surface_code_bZ_d3_r05_center_5_7": 12697, + "surface_code_bZ_d3_r07_center_5_7": 11648, + "surface_code_bZ_d3_r09_center_5_7": 14077, + "surface_code_bZ_d3_r11_center_5_7": 13454, + "surface_code_bZ_d3_r13_center_5_7": 11564, + "surface_code_bZ_d3_r15_center_5_7": 12728, + "surface_code_bZ_d3_r17_center_5_7": 12048, + "surface_code_bZ_d3_r19_center_5_7": 14459, + "surface_code_bZ_d3_r21_center_5_7": 14010, + "surface_code_bZ_d3_r23_center_5_7": 10239, + "surface_code_bZ_d3_r25_center_5_7": 12011 + }, + "steps": 256, + "batch_size": 1024, + "learning_rate": 0.0001, + "optimizer": "Fresh AdamW moments for every group, weight decay1e-4, global norm clip1", + "optimizer_restored": false, + "rng_restored": false, + "sampling_seed": 20261206, + "validation": "Fixed random screen per condition using seed20261028; full validation is used by the separate selector", + "validation_shots_requested_per_condition": 1024, + "loss": "Uniform binary conditional logical likelihood through exact frontier contraction", + "training_source_sha256": { + "learned_exact__specialize_train.py": "5a2e7ba25969f4599cb65d60cbd53544fd77d7a6926ec0d03662b72b151acf95", + "learned_exact__temporal_model.py": "76fd01d5ae50f7d0b5790800898e7103ddb86db8f6a2ace883407515add2e186", + "learned_exact__data.py": "6f88582230aec7bbf35170a672ff615cac0cf18c0a690b2983874bb4c02c75e6", + "learned_exact__gradient.py": "ecb6b45698480386fa124fe878db7dbfa246d1969fd720ec26daff9547da2001", + "exact_d3__exact.py": "869dfacb295c419c156d1070fc2afdd6e20d02ac1840e45e72346b2b289f4825" + }, + "test_data_used": false, + "log": [ + { + "group": "d3_bZ_center_5_7", + "step": 1, + "loss": 0.5979939103126526, + "error": 0.357421875, + "gradient_norm": 0.0660991370677948, + "elapsed": 523.6322765350342 + }, + { + "group": "d3_bZ_center_5_7", + "step": 16, + "loss": 0.6150602102279663, + "error": 0.3701171875, + "gradient_norm": 0.04266919568181038, + "elapsed": 528.4157238006592 + }, + { + "group": "d3_bZ_center_5_7", + "step": 32, + "loss": 0.44577696919441223, + "error": 0.2099609375, + "gradient_norm": 0.06689892709255219, + "elapsed": 533.0822012424469 + }, + { + "group": "d3_bZ_center_5_7", + "step": 48, + "loss": 0.4075019657611847, + "error": 0.1884765625, + "gradient_norm": 0.05801992863416672, + "elapsed": 537.763840675354 + }, + { + "group": "d3_bZ_center_5_7", + "step": 64, + "loss": 0.5356203317642212, + "error": 0.2939453125, + "gradient_norm": 0.0543823316693306, + "elapsed": 542.4880893230438 + }, + { + "group": "d3_bZ_center_5_7", + "step": 80, + "loss": 0.45208629965782166, + "error": 0.2275390625, + "gradient_norm": 0.05819695070385933, + "elapsed": 547.1561362743378 + }, + { + "group": "d3_bZ_center_5_7", + "step": 96, + "loss": 0.4151451587677002, + "error": 0.2119140625, + "gradient_norm": 0.07201892882585526, + "elapsed": 551.8683395385742 + }, + { + "group": "d3_bZ_center_5_7", + "step": 112, + "loss": 0.5576318502426147, + "error": 0.31640625, + "gradient_norm": 0.04457806423306465, + "elapsed": 556.642165184021 + }, + { + "group": "d3_bZ_center_5_7", + "step": 128, + "loss": 0.20078304409980774, + "error": 0.08984375, + "gradient_norm": 0.040219370275735855, + "elapsed": 561.4243121147156 + }, + { + "group": "d3_bZ_center_5_7", + "step": 144, + "loss": 0.45917582511901855, + "error": 0.2236328125, + "gradient_norm": 0.0707971602678299, + "elapsed": 567.7284438610077 + }, + { + "group": "d3_bZ_center_5_7", + "step": 160, + "loss": 0.5936293601989746, + "error": 0.345703125, + "gradient_norm": 0.12180078029632568, + "elapsed": 572.3563349246979 + }, + { + "group": "d3_bZ_center_5_7", + "step": 176, + "loss": 0.24654456973075867, + "error": 0.1044921875, + "gradient_norm": 0.04859209433197975, + "elapsed": 577.008533000946 + }, + { + "group": "d3_bZ_center_5_7", + "step": 192, + "loss": 0.4809238612651825, + "error": 0.2509765625, + "gradient_norm": 0.09741280972957611, + "elapsed": 581.7403192520142 + }, + { + "group": "d3_bZ_center_5_7", + "step": 208, + "loss": 0.36378931999206543, + "error": 0.166015625, + "gradient_norm": 0.04881134256720543, + "elapsed": 586.367921590805 + }, + { + "group": "d3_bZ_center_5_7", + "step": 224, + "loss": 0.5131937265396118, + "error": 0.279296875, + "gradient_norm": 0.08562120050191879, + "elapsed": 591.1944098472595 + }, + { + "group": "d3_bZ_center_5_7", + "step": 240, + "loss": 0.4193183183670044, + "error": 0.2099609375, + "gradient_norm": 0.0680096298456192, + "elapsed": 595.8478200435638 + }, + { + "group": "d3_bZ_center_5_7", + "step": 256, + "loss": 0.467867910861969, + "error": 0.24609375, + "gradient_norm": 0.07342159003019333, + "elapsed": 600.4172458648682 + } + ] + }, + "d3_bZ_center_7_5": { + "initialization": "Continue the temporal component of the selected session-trained group decoder; no new random parameters", + "original_initialization": "Base rich network seed20261030 and temporal encoder seed20261104; all fitting occurred in this session", + "group": "d3_bZ_center_7_5", + "parent_model": { + "weights": "weights/contextual-temporal2-4096.npz", + "training_checkpoint": "temporal2/4096" + }, + "parent_weights_sha256": "5ca716cd5632c9b717bb167d187387483b5485fead55f45b25cc44325d5d18ea", + "parent_provenance_sha256": "7c76c4ba7b6bb90ddb1ac3fa9cd5d27788fdad2bf6bc6f95e8187824c971bdfb", + "parent_record": "training_sources/group_specialize1/parent_training_provenance.json", + "training": "Uniform sampling over all13 odd round counts for this geometry/basis group, supplied training labels only", + "eligible_training_shots": 258440, + "training_draws": 262144, + "unique_training_rows_seen_in_this_phase": 159856, + "unique_rows_by_condition": { + "surface_code_bZ_d3_r01_center_7_5": 10637, + "surface_code_bZ_d3_r03_center_7_5": 13460, + "surface_code_bZ_d3_r05_center_7_5": 12002, + "surface_code_bZ_d3_r07_center_7_5": 8000, + "surface_code_bZ_d3_r09_center_7_5": 10743, + "surface_code_bZ_d3_r11_center_7_5": 16789, + "surface_code_bZ_d3_r13_center_7_5": 12364, + "surface_code_bZ_d3_r15_center_7_5": 15213, + "surface_code_bZ_d3_r17_center_7_5": 14167, + "surface_code_bZ_d3_r19_center_7_5": 11099, + "surface_code_bZ_d3_r21_center_7_5": 13178, + "surface_code_bZ_d3_r23_center_7_5": 12014, + "surface_code_bZ_d3_r25_center_7_5": 10190 + }, + "steps": 256, + "batch_size": 1024, + "learning_rate": 0.0001, + "optimizer": "Fresh AdamW moments for every group, weight decay1e-4, global norm clip1", + "optimizer_restored": false, + "rng_restored": false, + "sampling_seed": 20261207, + "validation": "Fixed random screen per condition using seed20261028; full validation is used by the separate selector", + "validation_shots_requested_per_condition": 1024, + "loss": "Uniform binary conditional logical likelihood through exact frontier contraction", + "training_source_sha256": { + "learned_exact__specialize_train.py": "5a2e7ba25969f4599cb65d60cbd53544fd77d7a6926ec0d03662b72b151acf95", + "learned_exact__temporal_model.py": "76fd01d5ae50f7d0b5790800898e7103ddb86db8f6a2ace883407515add2e186", + "learned_exact__data.py": "6f88582230aec7bbf35170a672ff615cac0cf18c0a690b2983874bb4c02c75e6", + "learned_exact__gradient.py": "ecb6b45698480386fa124fe878db7dbfa246d1969fd720ec26daff9547da2001", + "exact_d3__exact.py": "869dfacb295c419c156d1070fc2afdd6e20d02ac1840e45e72346b2b289f4825" + }, + "test_data_used": false, + "log": [ + { + "group": "d3_bZ_center_7_5", + "step": 1, + "loss": 0.4038092792034149, + "error": 0.197265625, + "gradient_norm": 0.05896063148975372, + "elapsed": 603.840416431427 + }, + { + "group": "d3_bZ_center_7_5", + "step": 16, + "loss": 0.6033527851104736, + "error": 0.3515625, + "gradient_norm": 0.05784430727362633, + "elapsed": 608.1250426769257 + }, + { + "group": "d3_bZ_center_7_5", + "step": 32, + "loss": 0.5283372402191162, + "error": 0.283203125, + "gradient_norm": 0.050800539553165436, + "elapsed": 612.7134759426117 + }, + { + "group": "d3_bZ_center_7_5", + "step": 48, + "loss": 0.5995811820030212, + "error": 0.3291015625, + "gradient_norm": 0.05547967553138733, + "elapsed": 617.2784404754639 + }, + { + "group": "d3_bZ_center_7_5", + "step": 64, + "loss": 0.40154707431793213, + "error": 0.205078125, + "gradient_norm": 0.06852669268846512, + "elapsed": 621.8420352935791 + }, + { + "group": "d3_bZ_center_7_5", + "step": 80, + "loss": 0.4995174705982208, + "error": 0.2763671875, + "gradient_norm": 0.061341386288404465, + "elapsed": 626.40260887146 + }, + { + "group": "d3_bZ_center_7_5", + "step": 96, + "loss": 0.5751184225082397, + "error": 0.3251953125, + "gradient_norm": 0.07929262518882751, + "elapsed": 630.9725329875946 + }, + { + "group": "d3_bZ_center_7_5", + "step": 112, + "loss": 0.624832808971405, + "error": 0.369140625, + "gradient_norm": 0.045014865696430206, + "elapsed": 635.5494453907013 + }, + { + "group": "d3_bZ_center_7_5", + "step": 128, + "loss": 0.4616764783859253, + "error": 0.224609375, + "gradient_norm": 0.0743650421500206, + "elapsed": 640.093489408493 + }, + { + "group": "d3_bZ_center_7_5", + "step": 144, + "loss": 0.5214440822601318, + "error": 0.2724609375, + "gradient_norm": 0.05418862774968147, + "elapsed": 646.2130215167999 + }, + { + "group": "d3_bZ_center_7_5", + "step": 160, + "loss": 0.27278852462768555, + "error": 0.12109375, + "gradient_norm": 0.059856753796339035, + "elapsed": 650.7696936130524 + }, + { + "group": "d3_bZ_center_7_5", + "step": 176, + "loss": 0.5251824259757996, + "error": 0.2734375, + "gradient_norm": 0.0982872024178505, + "elapsed": 655.3179745674133 + }, + { + "group": "d3_bZ_center_7_5", + "step": 192, + "loss": 0.510776937007904, + "error": 0.2744140625, + "gradient_norm": 0.0638406053185463, + "elapsed": 659.8532302379608 + }, + { + "group": "d3_bZ_center_7_5", + "step": 208, + "loss": 0.4173796772956848, + "error": 0.20703125, + "gradient_norm": 0.0652337446808815, + "elapsed": 664.3970146179199 + }, + { + "group": "d3_bZ_center_7_5", + "step": 224, + "loss": 0.42136240005493164, + "error": 0.203125, + "gradient_norm": 0.04171523451805115, + "elapsed": 668.9384174346924 + }, + { + "group": "d3_bZ_center_7_5", + "step": 240, + "loss": 0.2494639754295349, + "error": 0.1201171875, + "gradient_norm": 0.06969694793224335, + "elapsed": 673.4954979419708 + }, + { + "group": "d3_bZ_center_7_5", + "step": 256, + "loss": 0.26821407675743103, + "error": 0.1181640625, + "gradient_norm": 0.04254033416509628, + "elapsed": 678.0544662475586 + } + ] + } + }, + "initialization": "Continue session-trained selected temporal components; no new random parameters", + "training": "Each group samples uniformly over its own13 durations; supplied training labels only", + "eligible_training_shots": 2067520, + "steps": 2048, + "steps_per_group": 256, + "batch_size": 1024, + "learning_rate": 0.0001, + "optimizer_restored": false, + "rng_restored": false, + "training_source_sha256": { + "learned_exact__specialize_train.py": "5a2e7ba25969f4599cb65d60cbd53544fd77d7a6926ec0d03662b72b151acf95", + "learned_exact__temporal_model.py": "76fd01d5ae50f7d0b5790800898e7103ddb86db8f6a2ace883407515add2e186", + "learned_exact__data.py": "6f88582230aec7bbf35170a672ff615cac0cf18c0a690b2983874bb4c02c75e6", + "learned_exact__gradient.py": "ecb6b45698480386fa124fe878db7dbfa246d1969fd720ec26daff9547da2001", + "exact_d3__exact.py": "869dfacb295c419c156d1070fc2afdd6e20d02ac1840e45e72346b2b289f4825" + }, + "run_config": { + "package": "/run-state/workspace/research/context_upgrades/short_categorical3/package", + "output": "/run-state/workspace/research/learned_exact/group_specialize1", + "steps": 256, + "eval_every": 128, + "batch": 1024, + "validation_shots": 1024, + "validation_batch": 1024, + "learning_rate": 0.0001, + "seed": 20261200, + "groups": [ + "d3_bX_center_3_5", + "d3_bX_center_5_3", + "d3_bX_center_5_7", + "d3_bX_center_7_5", + "d3_bZ_center_3_5", + "d3_bZ_center_5_3", + "d3_bZ_center_5_7", + "d3_bZ_center_7_5" + ], + "training_source_sha256": { + "learned_exact__specialize_train.py": "5a2e7ba25969f4599cb65d60cbd53544fd77d7a6926ec0d03662b72b151acf95", + "learned_exact__temporal_model.py": "76fd01d5ae50f7d0b5790800898e7103ddb86db8f6a2ace883407515add2e186", + "learned_exact__data.py": "6f88582230aec7bbf35170a672ff615cac0cf18c0a690b2983874bb4c02c75e6", + "learned_exact__gradient.py": "ecb6b45698480386fa124fe878db7dbfa246d1969fd720ec26daff9547da2001", + "exact_d3__exact.py": "869dfacb295c419c156d1070fc2afdd6e20d02ac1840e45e72346b2b289f4825" + }, + "runtime_versions": { + "jax": "0.7.2", + "numpy": "2.3.3", + "optax": "0.2.6" + }, + "parent_config_sha256": "50123b5d6a4515814bb74a93963e83d17c2d3eb47af4d12b7757f523ac7c2f6a", + "parent_provenance_sha256": "7c76c4ba7b6bb90ddb1ac3fa9cd5d27788fdad2bf6bc6f95e8187824c971bdfb", + "train_manifest_sha256": "ce46c21e3595cfc5885bbe2b6481105317d2e6267498ec4572601469825914b8", + "validation_manifest_sha256": "482bb7268c6c827ebbf1f756ee6994750acfcd011adab08eaa2ada703e5faea1" + }, + "parent_record": "training_sources/group_specialize1/parent_training_provenance.json", + "new_random_parameters": 0, + "training_draws": 2097152, + "test_data_used": false, + "declared_plan": { + "hypothesis": "Group-specific fine-tuning may reduce conflicting updates across d3 geometries and bases", + "parents": "The temporal component selected for each of the8 groups in CURRENT after fresh2_continuation_finished.json", + "new_random_parameters": 0, + "sampling_seeds": "20261200 plus lexicographic group rank0..7", + "training": "256 updates per group,B1024,LR.0001; uniform sampling of all13 durations and all258440 training rows per group", + "optimizer": "Fresh AdamW moments for every group, weight decay1e-4, global gradient norm clip1", + "total_optimizer_updates": 2048, + "total_training_draws": 2097152, + "validation": "Screen at0/128/256. Full validation at0/128/256; step0 is a diagnostic, excluded from new checkpoint selection", + "selection": "Per-group mean failure over all13 durations: incumbent, raw128/256, or equal small-contextual blend128/256; retain incumbent on ties", + "short_model_followup": "Recheck the previously training-fitted categorical1 heads after group replacement", + "test_data_used": false + }, + "pipeline_control": { + "status": "passed", + "backend": "CPU", + "selection_eligible": false, + "submission_eligible": false, + "trainer_sha256": "5a2e7ba25969f4599cb65d60cbd53544fd77d7a6926ec0d03662b72b151acf95", + "run": "/run-state/workspace/research/learned_exact/specialize_smoke2", + "checks": [ + { + "group": "d3_bX_center_3_5", + "parent_exact": true, + "fresh_zero_optimizer": true, + "one_update_changes_parameters": true, + "sampling_replay_exact": true, + "all13_durations_evaluated": true + }, + { + "group": "d3_bZ_center_7_5", + "parent_exact": true, + "fresh_zero_optimizer": true, + "one_update_changes_parameters": true, + "sampling_replay_exact": true, + "all13_durations_evaluated": true + } + ], + "test_data_used": false + } + }, + "training_source_snapshot": "training_sources/group_specialize1", + "selected_checkpoints": { + "d3_bX_center_3_5": 128, + "d3_bX_center_5_7": 256, + "d3_bX_center_7_5": 128, + "d3_bZ_center_7_5": 128 + }, + "checkpoint_records": { + "d3_bX_center_3_5": { + "group": "d3_bX_center_3_5", + "step": 128, + "training_draws": 131072, + "unique_training_rows_seen_in_this_phase": 101608, + "unique_rows_by_condition": { + "surface_code_bX_d3_r01_center_3_5": 7393, + "surface_code_bX_d3_r03_center_3_5": 9191, + "surface_code_bX_d3_r05_center_3_5": 9634, + "surface_code_bX_d3_r07_center_3_5": 9218, + "surface_code_bX_d3_r09_center_3_5": 6691, + "surface_code_bX_d3_r11_center_3_5": 6028, + "surface_code_bX_d3_r13_center_3_5": 9122, + "surface_code_bX_d3_r15_center_3_5": 5301, + "surface_code_bX_d3_r17_center_3_5": 8630, + "surface_code_bX_d3_r19_center_3_5": 5276, + "surface_code_bX_d3_r21_center_3_5": 8553, + "surface_code_bX_d3_r23_center_3_5": 7977, + "surface_code_bX_d3_r25_center_3_5": 8594 + }, + "weights": "weights-128.npz", + "weights_sha256": "90c6cb7fd3be8d363318f45257de6670ba19d9336d096dc3efb309bac88b2bf9", + "complete": true + }, + "d3_bX_center_5_7": { + "group": "d3_bX_center_5_7", + "step": 256, + "training_draws": 262144, + "unique_training_rows_seen_in_this_phase": 162612, + "unique_rows_by_condition": { + "surface_code_bX_d3_r01_center_5_7": 13532, + "surface_code_bX_d3_r03_center_5_7": 12060, + "surface_code_bX_d3_r05_center_5_7": 14744, + "surface_code_bX_d3_r07_center_5_7": 11642, + "surface_code_bX_d3_r09_center_5_7": 13167, + "surface_code_bX_d3_r11_center_5_7": 8639, + "surface_code_bX_d3_r13_center_5_7": 14627, + "surface_code_bX_d3_r15_center_5_7": 11178, + "surface_code_bX_d3_r17_center_5_7": 10160, + "surface_code_bX_d3_r19_center_5_7": 13125, + "surface_code_bX_d3_r21_center_5_7": 13464, + "surface_code_bX_d3_r23_center_5_7": 13143, + "surface_code_bX_d3_r25_center_5_7": 13131 + }, + "weights": "weights-256.npz", + "weights_sha256": "7dc5b5ed51423bae023bb2c15de420850fef4fedb82760a7bcd993393301e038", + "complete": true + }, + "d3_bX_center_7_5": { + "group": "d3_bX_center_7_5", + "step": 128, + "training_draws": 131072, + "unique_training_rows_seen_in_this_phase": 101875, + "unique_rows_by_condition": { + "surface_code_bX_d3_r01_center_7_5": 7327, + "surface_code_bX_d3_r03_center_7_5": 6711, + "surface_code_bX_d3_r05_center_7_5": 9068, + "surface_code_bX_d3_r07_center_7_5": 9212, + "surface_code_bX_d3_r09_center_7_5": 6001, + "surface_code_bX_d3_r11_center_7_5": 7353, + "surface_code_bX_d3_r13_center_7_5": 7373, + "surface_code_bX_d3_r15_center_7_5": 8580, + "surface_code_bX_d3_r17_center_7_5": 6713, + "surface_code_bX_d3_r19_center_7_5": 9686, + "surface_code_bX_d3_r21_center_7_5": 8553, + "surface_code_bX_d3_r23_center_7_5": 7325, + "surface_code_bX_d3_r25_center_7_5": 7973 + }, + "weights": "weights-128.npz", + "weights_sha256": "1dc16b14813ebfd874acf9c907870144bc6ac98c8de8b4e8c47e41cdcfb3f1c3", + "complete": true + }, + "d3_bZ_center_7_5": { + "group": "d3_bZ_center_7_5", + "step": 128, + "training_draws": 131072, + "unique_training_rows_seen_in_this_phase": 101460, + "unique_rows_by_condition": { + "surface_code_bZ_d3_r01_center_7_5": 7386, + "surface_code_bZ_d3_r03_center_7_5": 7382, + "surface_code_bZ_d3_r05_center_7_5": 7375, + "surface_code_bZ_d3_r07_center_7_5": 4523, + "surface_code_bZ_d3_r09_center_7_5": 6016, + "surface_code_bZ_d3_r11_center_7_5": 10680, + "surface_code_bZ_d3_r13_center_7_5": 9644, + "surface_code_bZ_d3_r15_center_7_5": 7341, + "surface_code_bZ_d3_r17_center_7_5": 9210, + "surface_code_bZ_d3_r19_center_7_5": 8536, + "surface_code_bZ_d3_r21_center_7_5": 7410, + "surface_code_bZ_d3_r23_center_7_5": 8625, + "surface_code_bZ_d3_r25_center_7_5": 7332 + }, + "weights": "weights-128.npz", + "weights_sha256": "8f78092b6539927132aebd28deb0e0d1b72f43596b79e074e3206f4a784dd000", + "complete": true + } + }, + "selection": "Minimum full-validation mean failure across all13 durations per group among incumbent, specialized128/256 and equal small-contextual blends; retain incumbent on ties", + "blend_reference": "/run-state/workspace/research/context_upgrades/continuation2/predictions", + "history": [ + { + "group": "d3_bX_center_3_5", + "candidates": { + "incumbent": 0.24451622596153846, + "128": 0.2444110576923077, + "blend-128": 0.24523737980769234, + "256": 0.24468149038461534, + "blend-256": 0.24532752403846156 + }, + "selected": "128" + }, + { + "group": "d3_bX_center_5_3", + "candidates": { + "incumbent": 0.2526592548076923, + "128": 0.2528094951923077, + "blend-128": 0.25312499999999993, + "256": 0.2532001201923077, + "blend-256": 0.25318509615384616 + }, + "selected": "incumbent" + }, + { + "group": "d3_bX_center_5_7", + "candidates": { + "incumbent": 0.2333984375, + "128": 0.23329326923076926, + "blend-128": 0.23414963942307693, + "256": 0.233203125, + "blend-256": 0.2338641826923077 + }, + "selected": "256" + }, + { + "group": "d3_bX_center_7_5", + "candidates": { + "incumbent": 0.23889723557692305, + "128": 0.23933293269230768, + "blend-128": 0.23880709134615385, + "256": 0.23907752403846153, + "blend-256": 0.23888221153846154 + }, + "selected": "blend-128" + }, + { + "group": "d3_bZ_center_3_5", + "candidates": { + "incumbent": 0.24447115384615387, + "128": 0.24456129807692306, + "blend-128": 0.24534254807692307, + "256": 0.24462139423076923, + "blend-256": 0.24505709134615386 + }, + "selected": "incumbent" + }, + { + "group": "d3_bZ_center_5_3", + "candidates": { + "incumbent": 0.23652343749999996, + "128": 0.2371394230769231, + "blend-128": 0.23753004807692307, + "256": 0.2373347355769231, + "blend-256": 0.23728966346153849 + }, + "selected": "incumbent" + }, + { + "group": "d3_bZ_center_5_7", + "candidates": { + "incumbent": 0.2356670673076923, + "128": 0.23635817307692306, + "blend-128": 0.23662860576923073, + "256": 0.23571213942307687, + "blend-256": 0.23638822115384614 + }, + "selected": "incumbent" + }, + { + "group": "d3_bZ_center_7_5", + "candidates": { + "incumbent": 0.23294771634615385, + "128": 0.23282752403846158, + "blend-128": 0.2331280048076923, + "256": 0.23348858173076922, + "blend-256": 0.23336838942307692 + }, + "selected": "128" + }, + { + "group": "d5_bX_center_5_5", + "candidates": { + "incumbent": 0.23228665865384618 + }, + "selected": "incumbent" + }, + { + "group": "d5_bZ_center_5_5", + "candidates": { + "incumbent": 0.21953124999999998 + }, + "selected": "incumbent" + } + ] + } + ], + "turbo_d5_experiment": { + "method": "Three passes of extrinsic log-odds feedback between complementary exact CSS syndrome-likelihood contractions, damping 1, messages clipped to [-8,8]. Induced dependencies are approximated.", + "initialization": "Logistic coefficients randomly initialized Normal(0,.01), seed 20261103; all underlying states built in this session from permitted even-fitted DEMs.", + "training": "4096 uniformly sampled training rows per all 26 d5 conditions (sample seed 20261023); BCE plus 1e-5 L2, L-BFGS-B up to 300 iterations.", + "screen": { + "scope": "Diagnostic screen only: both d5 bases, rounds 5/13/25, 1024 uniform validation samples per condition", + "sample_seed": 20261031, + "results": [ + { + "condition": "surface_code_bX_d5_r05_center_5_5", + "rounds": 5, + "basis": "X", + "shots": 1024, + "batch": 192, + "damping": 0.5, + "seconds": 5.466358661651611, + "elapsed": 7.00129771232605, + "first_pass_max_delta": 8.940696716308594e-07, + "failure": [ + 0.1025390625, + 0.1044921875, + 0.1025390625 + ], + "peak_gpu_bytes": 4742925056 + }, + { + "condition": "surface_code_bX_d5_r05_center_5_5", + "rounds": 5, + "basis": "X", + "shots": 1024, + "batch": 192, + "damping": 1.0, + "seconds": 1.1764235496520996, + "elapsed": 8.178237438201904, + "first_pass_max_delta": 8.940696716308594e-07, + "failure": [ + 0.1025390625, + 0.0966796875, + 0.1005859375 + ], + "peak_gpu_bytes": 4742925056 + }, + { + "condition": "surface_code_bX_d5_r13_center_5_5", + "rounds": 13, + "basis": "X", + "shots": 1024, + "batch": 192, + "damping": 0.5, + "seconds": 7.137438058853149, + "elapsed": 16.021901607513428, + "first_pass_max_delta": 1.1324882507324219e-06, + "failure": [ + 0.2548828125, + 0.2490234375, + 0.25 + ], + "peak_gpu_bytes": 11611887104 + }, + { + "condition": "surface_code_bX_d5_r13_center_5_5", + "rounds": 13, + "basis": "X", + "shots": 1024, + "batch": 192, + "damping": 1.0, + "seconds": 3.088695526123047, + "elapsed": 19.11112403869629, + "first_pass_max_delta": 1.1324882507324219e-06, + "failure": [ + 0.2548828125, + 0.2490234375, + 0.2412109375 + ], + "peak_gpu_bytes": 11611887104 + }, + { + "condition": "surface_code_bX_d5_r25_center_5_5", + "rounds": 25, + "basis": "X", + "shots": 1024, + "batch": 192, + "damping": 0.5, + "seconds": 10.504217624664307, + "elapsed": 30.677946090698242, + "first_pass_max_delta": 1.5497207641601562e-06, + "failure": [ + 0.3916015625, + 0.38671875, + 0.3896484375 + ], + "peak_gpu_bytes": 21913887488 + }, + { + "condition": "surface_code_bX_d5_r25_center_5_5", + "rounds": 25, + "basis": "X", + "shots": 1024, + "batch": 192, + "damping": 1.0, + "seconds": 5.937381267547607, + "elapsed": 36.615668296813965, + "first_pass_max_delta": 1.5497207641601562e-06, + "failure": [ + 0.3916015625, + 0.3857421875, + 0.3896484375 + ], + "peak_gpu_bytes": 21913887488 + }, + { + "condition": "surface_code_bZ_d5_r05_center_5_5", + "rounds": 5, + "basis": "Z", + "shots": 1024, + "batch": 192, + "damping": 0.5, + "seconds": 4.611798286437988, + "elapsed": 41.71111083030701, + "first_pass_max_delta": 2.0265579223632812e-06, + "failure": [ + 0.1005859375, + 0.1015625, + 0.09765625 + ], + "peak_gpu_bytes": 21913887488 + }, + { + "condition": "surface_code_bZ_d5_r05_center_5_5", + "rounds": 5, + "basis": "Z", + "shots": 1024, + "batch": 192, + "damping": 1.0, + "seconds": 1.1570250988006592, + "elapsed": 42.86858010292053, + "first_pass_max_delta": 2.0265579223632812e-06, + "failure": [ + 0.1005859375, + 0.0986328125, + 0.095703125 + ], + "peak_gpu_bytes": 21913887488 + }, + { + "condition": "surface_code_bZ_d5_r13_center_5_5", + "rounds": 13, + "basis": "Z", + "shots": 1024, + "batch": 192, + "damping": 0.5, + "seconds": 6.715797185897827, + "elapsed": 50.234126567840576, + "first_pass_max_delta": 1.0132789611816406e-06, + "failure": [ + 0.236328125, + 0.234375, + 0.2314453125 + ], + "peak_gpu_bytes": 21913887488 + }, + { + "condition": "surface_code_bZ_d5_r13_center_5_5", + "rounds": 13, + "basis": "Z", + "shots": 1024, + "batch": 192, + "damping": 1.0, + "seconds": 3.08017635345459, + "elapsed": 53.31461310386658, + "first_pass_max_delta": 1.0132789611816406e-06, + "failure": [ + 0.236328125, + 0.23828125, + 0.234375 + ], + "peak_gpu_bytes": 21913887488 + }, + { + "condition": "surface_code_bZ_d5_r25_center_5_5", + "rounds": 25, + "basis": "Z", + "shots": 1024, + "batch": 192, + "damping": 0.5, + "seconds": 9.802945375442505, + "elapsed": 64.01536726951599, + "first_pass_max_delta": 1.4901161193847656e-06, + "failure": [ + 0.384765625, + 0.3857421875, + 0.38671875 + ], + "peak_gpu_bytes": 21913887488 + }, + { + "condition": "surface_code_bZ_d5_r25_center_5_5", + "rounds": 25, + "basis": "Z", + "shots": 1024, + "batch": 192, + "damping": 1.0, + "seconds": 5.927323341369629, + "elapsed": 69.9429976940155, + "first_pass_max_delta": 1.4901161193847656e-06, + "failure": [ + 0.384765625, + 0.3701171875, + 0.361328125 + ], + "peak_gpu_bytes": 21913887488 + } + ] + }, + "cache": { + "method": "Three extrinsic-message passes between exact CSS likelihoods, damping 1, extrinsic clipping [-8,8]", + "scope": "All 26 d5 conditions. Full validation and 4096 training shots per condition.", + "training_selection": "Same uniformly sampled training indices as d5_cache, seed 20261023; labels are only used downstream in ensemble fitting.", + "model_selection": "Damping 1 and three passes chosen from a six-condition, 1024-validation-shot diagnostic screen of .5/1 damping and 1/2/3 passes.", + "batch": 384, + "test_data_used": false, + "resume_note": "Initial dynamic allocator failed at X/r21 after saving X/r1 through r19. Those complete records are retained; remaining conditions resumed with a 90 percent preallocated pool.", + "records": [ + { + "condition": "surface_code_bX_d5_r01_center_5_5", + "batch": 384, + "validation": { + "seconds": 0.0023708343505859375, + "shots": 5120, + "first_pass_max_delta": 0.0, + "failure": [ + 0.0080078125, + 0.0080078125, + 0.0080078125 + ] + }, + "train": { + "seconds": 0.00203704833984375, + "shots": 4096, + "first_pass_max_delta": 0.0, + "failure": [ + 0.00830078125, + 0.00830078125, + 0.00830078125 + ] + }, + "elapsed": 0.031897783279418945, + "peak_gpu_bytes": 0 + }, + { + "condition": "surface_code_bX_d5_r03_center_5_5", + "batch": 384, + "validation": { + "seconds": 6.5025129318237305, + "shots": 5120, + "first_pass_max_delta": 1.1622905731201172e-06, + "failure": [ + 0.05390625, + 0.05234375, + 0.0515625 + ] + }, + "train": { + "seconds": 1.8498849868774414, + "shots": 4096, + "first_pass_max_delta": 1.0728836059570312e-06, + "failure": [ + 0.056640625, + 0.056884765625, + 0.057373046875 + ] + }, + "elapsed": 9.963430881500244, + "peak_gpu_bytes": 6053389568 + }, + { + "condition": "surface_code_bX_d5_r05_center_5_5", + "batch": 384, + "validation": { + "seconds": 7.887800455093384, + "shots": 5120, + "first_pass_max_delta": 1.1920928955078125e-06, + "failure": [ + 0.1111328125, + 0.1078125, + 0.1078125 + ] + }, + "train": { + "seconds": 3.1277287006378174, + "shots": 4096, + "first_pass_max_delta": 1.5497207641601562e-06, + "failure": [ + 0.110595703125, + 0.1044921875, + 0.106689453125 + ] + }, + "elapsed": 21.591607809066772, + "peak_gpu_bytes": 9485051136 + }, + { + "condition": "surface_code_bX_d5_r07_center_5_5", + "batch": 384, + "validation": { + "seconds": 9.284316062927246, + "shots": 5120, + "first_pass_max_delta": 1.0728836059570312e-06, + "failure": [ + 0.1638671875, + 0.16328125, + 0.16328125 + ] + }, + "train": { + "seconds": 4.408588647842407, + "shots": 4096, + "first_pass_max_delta": 3.2186508178710938e-06, + "failure": [ + 0.165771484375, + 0.15966796875, + 0.160888671875 + ] + }, + "elapsed": 35.83207678794861, + "peak_gpu_bytes": 12921052416 + }, + { + "condition": "surface_code_bX_d5_r09_center_5_5", + "batch": 384, + "validation": { + "seconds": 10.81107211112976, + "shots": 5120, + "first_pass_max_delta": 4.172325134277344e-06, + "failure": [ + 0.1994140625, + 0.1947265625, + 0.192578125 + ] + }, + "train": { + "seconds": 5.6971564292907715, + "shots": 4096, + "first_pass_max_delta": 1.9073486328125e-06, + "failure": [ + 0.193603515625, + 0.190185546875, + 0.1865234375 + ] + }, + "elapsed": 52.94058084487915, + "peak_gpu_bytes": 16355555584 + }, + { + "condition": "surface_code_bX_d5_r11_center_5_5", + "batch": 384, + "validation": { + "seconds": 13.042934894561768, + "shots": 5120, + "first_pass_max_delta": 1.2516975402832031e-06, + "failure": [ + 0.2330078125, + 0.229296875, + 0.2283203125 + ] + }, + "train": { + "seconds": 6.935072898864746, + "shots": 4096, + "first_pass_max_delta": 1.043081283569336e-06, + "failure": [ + 0.237060546875, + 0.2373046875, + 0.23388671875 + ] + }, + "elapsed": 73.53631615638733, + "peak_gpu_bytes": 19787549696 + }, + { + "condition": "surface_code_bX_d5_r13_center_5_5", + "batch": 384, + "validation": { + "seconds": 14.011132955551147, + "shots": 5120, + "first_pass_max_delta": 1.430511474609375e-06, + "failure": [ + 0.251953125, + 0.243359375, + 0.2427734375 + ] + }, + "train": { + "seconds": 8.214681386947632, + "shots": 4096, + "first_pass_max_delta": 1.6689300537109375e-06, + "failure": [ + 0.261962890625, + 0.257080078125, + 0.254150390625 + ] + }, + "elapsed": 96.39840364456177, + "peak_gpu_bytes": 23221127680 + }, + { + "condition": "surface_code_bX_d5_r15_center_5_5", + "batch": 384, + "validation": { + "seconds": 15.821684837341309, + "shots": 5120, + "first_pass_max_delta": 2.3245811462402344e-06, + "failure": [ + 0.2822265625, + 0.286328125, + 0.2798828125 + ] + }, + "train": { + "seconds": 9.5097815990448, + "shots": 4096, + "first_pass_max_delta": 1.8477439880371094e-06, + "failure": [ + 0.294677734375, + 0.28515625, + 0.2861328125 + ] + }, + "elapsed": 122.39457035064697, + "peak_gpu_bytes": 26659319552 + }, + { + "condition": "surface_code_bX_d5_r17_center_5_5", + "batch": 384, + "validation": { + "seconds": 18.90661311149597, + "shots": 5120, + "first_pass_max_delta": 2.3245811462402344e-06, + "failure": [ + 0.329296875, + 0.323828125, + 0.3169921875 + ] + }, + "train": { + "seconds": 11.201237440109253, + "shots": 4096, + "first_pass_max_delta": 1.0728836059570312e-06, + "failure": [ + 0.3046875, + 0.304931640625, + 0.302978515625 + ] + }, + "elapsed": 153.40053129196167, + "peak_gpu_bytes": 30096252672 + }, + { + "condition": "surface_code_bX_d5_r19_center_5_5", + "batch": 384, + "validation": { + "seconds": 22.513427734375, + "shots": 5120, + "first_pass_max_delta": 1.4007091522216797e-06, + "failure": [ + 0.3560546875, + 0.3458984375, + 0.3455078125 + ] + }, + "train": { + "seconds": 16.373472213745117, + "shots": 4096, + "first_pass_max_delta": 1.430511474609375e-06, + "failure": [ + 0.350341796875, + 0.3447265625, + 0.339111328125 + ] + }, + "elapsed": 193.22454714775085, + "peak_gpu_bytes": 33531435520 + }, + { + "condition": "surface_code_bX_d5_r21_center_5_5", + "batch": 384, + "gpu_allocation": "90 percent preallocated contiguous pool", + "validation": { + "seconds": 20.595962524414062, + "shots": 5120, + "first_pass_max_delta": 1.1920928955078125e-06, + "failure": [ + 0.3640625, + 0.3626953125, + 0.3607421875 + ] + }, + "train": { + "seconds": 13.13056755065918, + "shots": 4096, + "first_pass_max_delta": 1.6689300537109375e-06, + "failure": [ + 0.366455078125, + 0.364013671875, + 0.3603515625 + ] + }, + "elapsed": 36.23082995414734, + "peak_gpu_bytes": 36971696384 + }, + { + "condition": "surface_code_bX_d5_r23_center_5_5", + "batch": 384, + "gpu_allocation": "90 percent preallocated contiguous pool", + "validation": { + "seconds": 21.875932693481445, + "shots": 5120, + "first_pass_max_delta": 1.2516975402832031e-06, + "failure": [ + 0.3857421875, + 0.3837890625, + 0.3794921875 + ] + }, + "train": { + "seconds": 14.333576440811157, + "shots": 4096, + "first_pass_max_delta": 1.1920928955078125e-06, + "failure": [ + 0.37841796875, + 0.380859375, + 0.378173828125 + ] + }, + "elapsed": 73.29396986961365, + "peak_gpu_bytes": 40408369664 + }, + { + "condition": "surface_code_bX_d5_r25_center_5_5", + "batch": 384, + "gpu_allocation": "90 percent preallocated contiguous pool", + "validation": { + "seconds": 23.68450117111206, + "shots": 5120, + "first_pass_max_delta": 1.7285346984863281e-06, + "failure": [ + 0.38828125, + 0.39140625, + 0.390234375 + ] + }, + "train": { + "seconds": 15.625046253204346, + "shots": 4096, + "first_pass_max_delta": 2.3543834686279297e-06, + "failure": [ + 0.401611328125, + 0.3984375, + 0.3896484375 + ] + }, + "elapsed": 113.62051224708557, + "peak_gpu_bytes": 43842280448 + }, + { + "condition": "surface_code_bZ_d5_r01_center_5_5", + "batch": 384, + "gpu_allocation": "90 percent preallocated contiguous pool", + "validation": { + "seconds": 0.0020935535430908203, + "shots": 5120, + "first_pass_max_delta": 0.0, + "failure": [ + 0.0078125, + 0.0078125, + 0.0078125 + ] + }, + "train": { + "seconds": 0.0018491744995117188, + "shots": 4096, + "first_pass_max_delta": 0.0, + "failure": [ + 0.006103515625, + 0.006103515625, + 0.006103515625 + ] + }, + "elapsed": 113.74299573898315, + "peak_gpu_bytes": 43842280448 + }, + { + "condition": "surface_code_bZ_d5_r03_center_5_5", + "batch": 384, + "gpu_allocation": "90 percent preallocated contiguous pool", + "validation": { + "seconds": 6.421818256378174, + "shots": 5120, + "first_pass_max_delta": 9.5367431640625e-07, + "failure": [ + 0.0474609375, + 0.0466796875, + 0.04609375 + ] + }, + "train": { + "seconds": 2.009964942932129, + "shots": 4096, + "first_pass_max_delta": 1.6093254089355469e-06, + "failure": [ + 0.05224609375, + 0.050537109375, + 0.050537109375 + ] + }, + "elapsed": 122.82617926597595, + "peak_gpu_bytes": 43842280448 + }, + { + "condition": "surface_code_bZ_d5_r05_center_5_5", + "batch": 384, + "gpu_allocation": "90 percent preallocated contiguous pool", + "validation": { + "seconds": 8.133492231369019, + "shots": 5120, + "first_pass_max_delta": 2.115964889526367e-06, + "failure": [ + 0.1037109375, + 0.1029296875, + 0.102734375 + ] + }, + "train": { + "seconds": 3.179387331008911, + "shots": 4096, + "first_pass_max_delta": 1.6689300537109375e-06, + "failure": [ + 0.108642578125, + 0.1044921875, + 0.10595703125 + ] + }, + "elapsed": 134.6406970024109, + "peak_gpu_bytes": 43842280448 + }, + { + "condition": "surface_code_bZ_d5_r07_center_5_5", + "batch": 384, + "gpu_allocation": "90 percent preallocated contiguous pool", + "validation": { + "seconds": 13.694931983947754, + "shots": 5120, + "first_pass_max_delta": 2.3245811462402344e-06, + "failure": [ + 0.1484375, + 0.14765625, + 0.1494140625 + ] + }, + "train": { + "seconds": 6.147953748703003, + "shots": 4096, + "first_pass_max_delta": 2.0563602447509766e-06, + "failure": [ + 0.147705078125, + 0.144775390625, + 0.143310546875 + ] + }, + "elapsed": 155.0307319164276, + "peak_gpu_bytes": 43842280448 + }, + { + "condition": "surface_code_bZ_d5_r09_center_5_5", + "batch": 384, + "gpu_allocation": "90 percent preallocated contiguous pool", + "validation": { + "seconds": 14.462661504745483, + "shots": 5120, + "first_pass_max_delta": 1.4901161193847656e-06, + "failure": [ + 0.181640625, + 0.1765625, + 0.1734375 + ] + }, + "train": { + "seconds": 6.59630274772644, + "shots": 4096, + "first_pass_max_delta": 1.7285346984863281e-06, + "failure": [ + 0.181640625, + 0.173583984375, + 0.17431640625 + ] + }, + "elapsed": 176.9893820285797, + "peak_gpu_bytes": 43842280448 + }, + { + "condition": "surface_code_bZ_d5_r11_center_5_5", + "batch": 384, + "gpu_allocation": "90 percent preallocated contiguous pool", + "validation": { + "seconds": 15.458272933959961, + "shots": 5120, + "first_pass_max_delta": 1.430511474609375e-06, + "failure": [ + 0.2208984375, + 0.2169921875, + 0.2189453125 + ] + }, + "train": { + "seconds": 8.347567081451416, + "shots": 4096, + "first_pass_max_delta": 1.7285346984863281e-06, + "failure": [ + 0.2216796875, + 0.214111328125, + 0.209716796875 + ] + }, + "elapsed": 201.48220419883728, + "peak_gpu_bytes": 43842280448 + }, + { + "condition": "surface_code_bZ_d5_r13_center_5_5", + "batch": 384, + "gpu_allocation": "90 percent preallocated contiguous pool", + "validation": { + "seconds": 16.03638219833374, + "shots": 5120, + "first_pass_max_delta": 1.0728836059570312e-06, + "failure": [ + 0.2439453125, + 0.2349609375, + 0.2333984375 + ] + }, + "train": { + "seconds": 8.29888391494751, + "shots": 4096, + "first_pass_max_delta": 8.344650268554688e-07, + "failure": [ + 0.24365234375, + 0.248046875, + 0.2451171875 + ] + }, + "elapsed": 226.75215530395508, + "peak_gpu_bytes": 43842280448 + }, + { + "condition": "surface_code_bZ_d5_r15_center_5_5", + "batch": 384, + "gpu_allocation": "90 percent preallocated contiguous pool", + "validation": { + "seconds": 16.009416103363037, + "shots": 5120, + "first_pass_max_delta": 1.341104507446289e-06, + "failure": [ + 0.271875, + 0.264453125, + 0.2638671875 + ] + }, + "train": { + "seconds": 9.500921726226807, + "shots": 4096, + "first_pass_max_delta": 1.0728836059570312e-06, + "failure": [ + 0.28076171875, + 0.267333984375, + 0.267333984375 + ] + }, + "elapsed": 252.95993447303772, + "peak_gpu_bytes": 43842280448 + }, + { + "condition": "surface_code_bZ_d5_r17_center_5_5", + "batch": 384, + "gpu_allocation": "90 percent preallocated contiguous pool", + "validation": { + "seconds": 17.426681518554688, + "shots": 5120, + "first_pass_max_delta": 1.6242265701293945e-06, + "failure": [ + 0.31484375, + 0.3056640625, + 0.3087890625 + ] + }, + "train": { + "seconds": 10.742947816848755, + "shots": 4096, + "first_pass_max_delta": 1.430511474609375e-06, + "failure": [ + 0.310791015625, + 0.309814453125, + 0.31103515625 + ] + }, + "elapsed": 281.84620356559753, + "peak_gpu_bytes": 43842280448 + }, + { + "condition": "surface_code_bZ_d5_r19_center_5_5", + "batch": 384, + "gpu_allocation": "90 percent preallocated contiguous pool", + "validation": { + "seconds": 18.49993872642517, + "shots": 5120, + "first_pass_max_delta": 1.9073486328125e-06, + "failure": [ + 0.334375, + 0.334765625, + 0.33515625 + ] + }, + "train": { + "seconds": 11.90273404121399, + "shots": 4096, + "first_pass_max_delta": 1.3113021850585938e-06, + "failure": [ + 0.327880859375, + 0.315673828125, + 0.310546875 + ] + }, + "elapsed": 313.02247071266174, + "peak_gpu_bytes": 43842280448 + }, + { + "condition": "surface_code_bZ_d5_r21_center_5_5", + "batch": 384, + "gpu_allocation": "90 percent preallocated contiguous pool", + "validation": { + "seconds": 20.121089458465576, + "shots": 5120, + "first_pass_max_delta": 1.2516975402832031e-06, + "failure": [ + 0.34609375, + 0.342578125, + 0.344140625 + ] + }, + "train": { + "seconds": 13.077136278152466, + "shots": 4096, + "first_pass_max_delta": 1.6391277313232422e-06, + "failure": [ + 0.349853515625, + 0.34765625, + 0.352294921875 + ] + }, + "elapsed": 347.0259063243866, + "peak_gpu_bytes": 43842280448 + }, + { + "condition": "surface_code_bZ_d5_r23_center_5_5", + "batch": 384, + "gpu_allocation": "90 percent preallocated contiguous pool", + "validation": { + "seconds": 22.116555213928223, + "shots": 5120, + "first_pass_max_delta": 1.6689300537109375e-06, + "failure": [ + 0.3625, + 0.3625, + 0.3564453125 + ] + }, + "train": { + "seconds": 14.53529953956604, + "shots": 4096, + "first_pass_max_delta": 1.7285346984863281e-06, + "failure": [ + 0.361572265625, + 0.36083984375, + 0.35205078125 + ] + }, + "elapsed": 384.53587651252747, + "peak_gpu_bytes": 43842280448 + }, + { + "condition": "surface_code_bZ_d5_r25_center_5_5", + "batch": 384, + "gpu_allocation": "90 percent preallocated contiguous pool", + "validation": { + "seconds": 24.039794921875, + "shots": 5120, + "first_pass_max_delta": 1.2516975402832031e-06, + "failure": [ + 0.397265625, + 0.3810546875, + 0.3755859375 + ] + }, + "train": { + "seconds": 15.72797179222107, + "shots": 4096, + "first_pass_max_delta": 1.1920928955078125e-06, + "failure": [ + 0.378662109375, + 0.370849609375, + 0.369384765625 + ] + }, + "elapsed": 425.2448420524597, + "peak_gpu_bytes": 43842280448 + } + ] + }, + "selection": "Full-validation mean failure per basis group, comparing incumbent, raw pass3, calibrated pass3, confidence ensemble, and confidence+matching ensemble.", + "history": [ + { + "group": "d5_bX_center_5_5", + "candidates": { + "incumbent": { + "failure": 0.24024939903846157 + }, + "turbo_raw": { + "failure": 0.2359375 + }, + "turbo_calibrated": { + "failure": 0.23592247596153845, + "train_loss": 0.4342440304618462, + "iterations": 8, + "optimizer_success": true + }, + "turbo_confidence": { + "failure": 0.23646334134615385, + "train_loss": 0.4325824823965761, + "iterations": 31, + "optimizer_success": true + }, + "turbo_ensemble": { + "failure": 0.23825120192307692, + "train_loss": 0.43104343457008354, + "iterations": 128, + "optimizer_success": true + } + }, + "selected": "turbo_calibrated" + }, + { + "group": "d5_bZ_center_5_5", + "candidates": { + "incumbent": { + "failure": 0.22627704326923076 + }, + "turbo_raw": { + "failure": 0.2242938701923077 + }, + "turbo_calibrated": { + "failure": 0.22444411057692307, + "train_loss": 0.41862854651685183, + "iterations": 8, + "optimizer_success": true + }, + "turbo_confidence": { + "failure": 0.22463942307692308, + "train_loss": 0.4165407454935999, + "iterations": 28, + "optimizer_success": true + }, + "turbo_ensemble": { + "failure": 0.22291165865384616, + "train_loss": 0.4143765903988058, + "iterations": 153, + "optimizer_success": true + } + }, + "selected": "turbo_ensemble" + } + ], + "test_data_used": false, + "memory_optimization": { + "method": "Logical parity retained in forward state, marginalized out of stored histories and backward syndrome-likelihood messages; half the on-partition history size.", + "equivalence_checks": [ + { + "condition": "surface_code_bX_d5_r03_center_5_5", + "log_likelihood_max_delta": 0.0, + "logical_max_delta": 0.0, + "edge_posterior_max_delta": 3.2687214002180554e-07 + }, + { + "condition": "surface_code_bZ_d5_r03_center_5_5", + "log_likelihood_max_delta": 0.0, + "logical_max_delta": 0.0, + "edge_posterior_max_delta": 3.698800981055683e-07 + }, + { + "condition": "surface_code_bX_d5_r25_center_5_5", + "log_likelihood_max_delta": 0.0, + "logical_max_delta": 0.0, + "edge_posterior_max_delta": 4.061699030444288e-07 + }, + { + "condition": "surface_code_bZ_d5_r25_center_5_5", + "log_likelihood_max_delta": 0.0, + "logical_max_delta": 0.0, + "edge_posterior_max_delta": 4.5500107148654934e-07 + } + ], + "runtime_batch": 512, + "gpu_pool": "90 percent preallocated before JAX backend initialization" + } + }, + "neural_d5_history": [ + { + "training": { + "initialization": "All parameters initialized in this session: variance-scaled normal hidden layers, Normal(0,.001) output weights, zero biases, seed 20261101", + "architecture": "Two 64-unit SiLU layers; 394 features; bounded 2*tanh correction to exact complementary-CSS-conditioned relevant-edge logits; exact width-14 contraction predicts logical probability", + "training": "4096 training shots per each of all 26 d5 conditions, sampled without replacement with seed 20261023. Uniform condition and within-condition sampling for optimizer batches.", + "loss": "Conditional logical binary cross entropy, differentiated through exact relevant-CSS contraction; complementary conditioning held fixed", + "steps": 512, + "batch": 256, + "learning_rate": 0.001, + "sampling_seed": 20261101, + "optimizer": "AdamW, weight decay 1e-4, global gradient norm clip 1", + "optimizer_restored": false, + "starting_checkpoint": null, + "validation": "Uniform subset per all 26 conditions, sample seed 20261102; full validation required before publication", + "validation_shots_per_condition": 512, + "test_data_used": false, + "records": [ + { + "step": 1, + "loss": 0.12617039680480957, + "error": 0.0390625, + "gradient_norm": 0.04250018671154976, + "elapsed": 18.675416231155396 + }, + { + "step": 16, + "loss": 0.6377020478248596, + "error": 0.4140625, + "gradient_norm": 0.09590183943510056, + "elapsed": 23.17981266975403 + }, + { + "step": 32, + "loss": 0.29977816343307495, + "error": 0.12109375, + "gradient_norm": 0.07157808542251587, + "elapsed": 28.000701189041138 + }, + { + "step": 48, + "loss": 0.34505343437194824, + "error": 0.1484375, + "gradient_norm": 0.07669594883918762, + "elapsed": 32.97374606132507 + }, + { + "step": 64, + "loss": 0.5405071973800659, + "error": 0.29296875, + "gradient_norm": 0.08529861271381378, + "elapsed": 37.794785499572754 + }, + { + "step": 80, + "loss": 0.5131822228431702, + "error": 0.28515625, + "gradient_norm": 0.12556222081184387, + "elapsed": 42.73275876045227 + }, + { + "step": 96, + "loss": 0.6790875196456909, + "error": 0.421875, + "gradient_norm": 0.19858981668949127, + "elapsed": 47.55139684677124 + }, + { + "step": 112, + "loss": 0.4744196832180023, + "error": 0.2421875, + "gradient_norm": 0.14321450889110565, + "elapsed": 52.42716360092163 + }, + { + "step": 128, + "loss": 0.01264211069792509, + "error": 0.00390625, + "gradient_norm": 0.007236324716359377, + "elapsed": 57.2592077255249 + }, + { + "step": 144, + "loss": 0.35788118839263916, + "error": 0.15234375, + "gradient_norm": 0.07203944772481918, + "elapsed": 64.91656231880188 + }, + { + "step": 160, + "loss": 0.6330419778823853, + "error": 0.3671875, + "gradient_norm": 0.08350329101085663, + "elapsed": 69.75011849403381 + }, + { + "step": 176, + "loss": 0.6195905208587646, + "error": 0.4140625, + "gradient_norm": 0.11415330320596695, + "elapsed": 74.56864047050476 + }, + { + "step": 192, + "loss": 0.5832147598266602, + "error": 0.37109375, + "gradient_norm": 0.3569585978984833, + "elapsed": 79.38981986045837 + }, + { + "step": 208, + "loss": 0.6469261646270752, + "error": 0.4296875, + "gradient_norm": 0.18999285995960236, + "elapsed": 84.23919153213501 + }, + { + "step": 224, + "loss": 0.5015400648117065, + "error": 0.26171875, + "gradient_norm": 0.14661277830600739, + "elapsed": 89.08856391906738 + }, + { + "step": 240, + "loss": 0.5771075487136841, + "error": 0.30859375, + "gradient_norm": 0.16081298887729645, + "elapsed": 94.75072908401489 + }, + { + "step": 256, + "loss": 0.4888438582420349, + "error": 0.265625, + "gradient_norm": 0.0695391371846199, + "elapsed": 101.01203680038452 + }, + { + "step": 272, + "loss": 0.4024130702018738, + "error": 0.171875, + "gradient_norm": 0.12405848503112793, + "elapsed": 110.68109226226807 + }, + { + "step": 288, + "loss": 0.5895810723304749, + "error": 0.34375, + "gradient_norm": 0.11818791180849075, + "elapsed": 117.13554787635803 + }, + { + "step": 304, + "loss": 0.4740591049194336, + "error": 0.23828125, + "gradient_norm": 0.12323135882616043, + "elapsed": 123.14409065246582 + }, + { + "step": 320, + "loss": 0.007106379605829716, + "error": 0.0, + "gradient_norm": 0.011303205043077469, + "elapsed": 129.3651967048645 + }, + { + "step": 336, + "loss": 0.11020991206169128, + "error": 0.046875, + "gradient_norm": 0.09031850099563599, + "elapsed": 135.01193165779114 + }, + { + "step": 352, + "loss": 0.47800248861312866, + "error": 0.23046875, + "gradient_norm": 0.09636854380369186, + "elapsed": 141.10205006599426 + }, + { + "step": 368, + "loss": 0.4062168598175049, + "error": 0.203125, + "gradient_norm": 0.17921771109104156, + "elapsed": 146.6507167816162 + }, + { + "step": 384, + "loss": 0.24366013705730438, + "error": 0.12109375, + "gradient_norm": 0.11793741583824158, + "elapsed": 152.7517864704132 + }, + { + "step": 400, + "loss": 0.4949762225151062, + "error": 0.28515625, + "gradient_norm": 0.09550267457962036, + "elapsed": 160.96661829948425 + }, + { + "step": 416, + "loss": 0.21066513657569885, + "error": 0.08984375, + "gradient_norm": 0.07445460557937622, + "elapsed": 165.83068180084229 + }, + { + "step": 432, + "loss": 0.4017776548862457, + "error": 0.18359375, + "gradient_norm": 0.1278357356786728, + "elapsed": 170.6406123638153 + }, + { + "step": 448, + "loss": 0.11823543906211853, + "error": 0.04296875, + "gradient_norm": 0.09968453645706177, + "elapsed": 175.4701704978943 + }, + { + "step": 464, + "loss": 0.47654634714126587, + "error": 0.2265625, + "gradient_norm": 0.18101797997951508, + "elapsed": 180.26738119125366 + }, + { + "step": 480, + "loss": 0.4916652739048004, + "error": 0.24609375, + "gradient_norm": 0.08958703279495239, + "elapsed": 185.08883357048035 + }, + { + "step": 496, + "loss": 0.5418418645858765, + "error": 0.3515625, + "gradient_norm": 0.08218713104724884, + "elapsed": 189.9677882194519 + }, + { + "step": 512, + "loss": 0.5470219850540161, + "error": 0.359375, + "gradient_norm": 0.07939601689577103, + "elapsed": 194.77887177467346 + } + ] + }, + "selection": "Minimum full-validation condition-mean failure per basis group over incumbent, listed neural checkpoints and equal probability averages with incumbent.", + "history": [ + { + "group": "d5_bX_center_5_5", + "candidates": { + "incumbent": 0.23592247596153845, + "128": 0.23888221153846154, + "blend-128": 0.23536658653846151, + "256": 0.23865685096153846, + "blend-256": 0.23538161057692308, + "384": 0.23852163461538461, + "blend-384": 0.23487079326923077, + "512": 0.23870192307692306, + "blend-512": 0.23482572115384615 + }, + "selected": "blend-512" + }, + { + "group": "d5_bZ_center_5_5", + "candidates": { + "incumbent": 0.22291165865384616, + "128": 0.2279897836538462, + "blend-128": 0.22366286057692308, + "256": 0.2274188701923077, + "blend-256": 0.22304687500000003, + "384": 0.22729867788461536, + "blend-384": 0.22337740384615384, + "512": 0.22662259615384617, + "blend-512": 0.22355769230769235 + }, + "selected": "incumbent" + } + ], + "checkpoints": { + "512": { + "step": 512, + "training_samples": 131072, + "weights_sha256": "86aa65455686eb06a430030bd4b8242ac78521dccf4e9b07f1e93b2aa2ec40af", + "complete": true + } + }, + "runtime": "Shared initial complementary-CSS priors between neural and physical branches in blended groups. Last-only physical branches omit logical tracking in intermediate passes when intermediate probabilities are unused.", + "last_only_equivalence_controls": [ + { + "condition": "surface_code_bX_d5_r03_center_5_5", + "maximum_probability_difference": 7.450580596923828e-07 + }, + { + "condition": "surface_code_bZ_d5_r03_center_5_5", + "maximum_probability_difference": 5.960464477539063e-08 + }, + { + "condition": "surface_code_bX_d5_r25_center_5_5", + "maximum_probability_difference": 5.960464477539063e-08 + }, + { + "condition": "surface_code_bZ_d5_r25_center_5_5", + "maximum_probability_difference": 1.7881393432617188e-07 + } + ], + "test_data_used": false + }, + { + "training": { + "initialization": "All parameters initialized in this session: variance-scaled normal hidden layers, Normal(0,.001) output weights, zero biases, seed 20261108", + "prior_pass": 3, + "initial_seed": 20261108, + "architecture": "Two 64-unit SiLU layers; 394 features; bounded 2*tanh correction to relevant-CSS edge logits from the recorded physical feedback pass; exact width-14 contraction predicts logical probability. D5 joint conditioning remains approximate.", + "training": "4096 training shots per each of all 26 d5 conditions, sampled without replacement with seed 20261023. Uniform condition and within-condition sampling for optimizer batches.", + "loss": "Conditional logical binary cross entropy, differentiated through exact relevant-CSS contraction; physical CSS feedback prior held fixed", + "steps": 1024, + "batch": 256, + "learning_rate": 0.001, + "sampling_seed": 20261108, + "optimizer": "AdamW, weight decay 1e-4, global gradient norm clip 1", + "optimizer_restored": false, + "starting_checkpoint": null, + "validation": "Uniform subset per all 26 conditions, sample seed 20261102; full validation required before publication", + "validation_shots_per_condition": 1024, + "test_data_used": false, + "records": [ + { + "step": 1, + "loss": 0.011146659031510353, + "error": 0.00390625, + "gradient_norm": 0.011240893043577671, + "elapsed": 21.276997089385986 + }, + { + "step": 16, + "loss": 0.645737886428833, + "error": 0.40625, + "gradient_norm": 0.1628236621618271, + "elapsed": 25.872907638549805 + }, + { + "step": 32, + "loss": 0.574029803276062, + "error": 0.35546875, + "gradient_norm": 0.3000081777572632, + "elapsed": 30.761418342590332 + }, + { + "step": 48, + "loss": 0.574467122554779, + "error": 0.296875, + "gradient_norm": 0.24150623381137848, + "elapsed": 35.67650651931763 + }, + { + "step": 64, + "loss": 0.6003620624542236, + "error": 0.35546875, + "gradient_norm": 0.07430054992437363, + "elapsed": 40.60572576522827 + }, + { + "step": 80, + "loss": 0.5429091453552246, + "error": 0.33203125, + "gradient_norm": 0.15341751277446747, + "elapsed": 45.546849727630615 + }, + { + "step": 96, + "loss": 0.368771493434906, + "error": 0.1640625, + "gradient_norm": 0.08923184871673584, + "elapsed": 50.49156332015991 + }, + { + "step": 112, + "loss": 0.516342043876648, + "error": 0.265625, + "gradient_norm": 0.10965219140052795, + "elapsed": 55.45058846473694 + }, + { + "step": 128, + "loss": 0.5925382971763611, + "error": 0.37109375, + "gradient_norm": 0.055406324565410614, + "elapsed": 60.40891766548157 + }, + { + "step": 144, + "loss": 0.19184258580207825, + "error": 0.07421875, + "gradient_norm": 0.07042146474123001, + "elapsed": 65.33323669433594 + }, + { + "step": 160, + "loss": 0.5202382206916809, + "error": 0.25390625, + "gradient_norm": 0.14782382547855377, + "elapsed": 70.26605796813965 + }, + { + "step": 176, + "loss": 0.46083134412765503, + "error": 0.22265625, + "gradient_norm": 0.09074779599905014, + "elapsed": 75.18221640586853 + }, + { + "step": 192, + "loss": 0.3054918646812439, + "error": 0.14453125, + "gradient_norm": 0.0588168129324913, + "elapsed": 80.1186010837555 + }, + { + "step": 208, + "loss": 0.4836011230945587, + "error": 0.27734375, + "gradient_norm": 0.09208947420120239, + "elapsed": 85.05764293670654 + }, + { + "step": 224, + "loss": 0.6640600562095642, + "error": 0.38671875, + "gradient_norm": 0.22026506066322327, + "elapsed": 89.98808217048645 + }, + { + "step": 240, + "loss": 0.02421322464942932, + "error": 0.00390625, + "gradient_norm": 0.008131005801260471, + "elapsed": 94.90194272994995 + }, + { + "step": 256, + "loss": 0.6302106976509094, + "error": 0.4296875, + "gradient_norm": 0.09762304276227951, + "elapsed": 99.82612204551697 + }, + { + "step": 272, + "loss": 0.5092596411705017, + "error": 0.27734375, + "gradient_norm": 0.11407691985368729, + "elapsed": 110.44065999984741 + }, + { + "step": 288, + "loss": 0.452798455953598, + "error": 0.2265625, + "gradient_norm": 0.1105576679110527, + "elapsed": 115.36984539031982 + }, + { + "step": 304, + "loss": 0.3378596305847168, + "error": 0.18359375, + "gradient_norm": 0.0841713547706604, + "elapsed": 120.29337763786316 + }, + { + "step": 320, + "loss": 0.6271854639053345, + "error": 0.38671875, + "gradient_norm": 0.1972702294588089, + "elapsed": 125.2231035232544 + }, + { + "step": 336, + "loss": 0.04562236741185188, + "error": 0.01171875, + "gradient_norm": 0.027922745794057846, + "elapsed": 130.14725255966187 + }, + { + "step": 352, + "loss": 0.5342530608177185, + "error": 0.26953125, + "gradient_norm": 0.09031179547309875, + "elapsed": 135.08111095428467 + }, + { + "step": 368, + "loss": 0.49785488843917847, + "error": 0.2578125, + "gradient_norm": 0.19366280734539032, + "elapsed": 140.00699138641357 + }, + { + "step": 384, + "loss": 0.5673326253890991, + "error": 0.30859375, + "gradient_norm": 0.20644932985305786, + "elapsed": 144.92276740074158 + }, + { + "step": 400, + "loss": 0.5581298470497131, + "error": 0.3203125, + "gradient_norm": 0.17668266594409943, + "elapsed": 149.86573243141174 + }, + { + "step": 416, + "loss": 0.5564071536064148, + "error": 0.30078125, + "gradient_norm": 0.0821610689163208, + "elapsed": 154.7953712940216 + }, + { + "step": 432, + "loss": 0.5540086030960083, + "error": 0.34765625, + "gradient_norm": 0.1438807100057602, + "elapsed": 159.72657418251038 + }, + { + "step": 448, + "loss": 0.540939450263977, + "error": 0.29296875, + "gradient_norm": 0.17986361682415009, + "elapsed": 164.6689453125 + }, + { + "step": 464, + "loss": 0.45807865262031555, + "error": 0.25, + "gradient_norm": 0.14453186094760895, + "elapsed": 169.58739304542542 + }, + { + "step": 480, + "loss": 0.5191650390625, + "error": 0.22265625, + "gradient_norm": 0.07955105602741241, + "elapsed": 174.5444438457489 + }, + { + "step": 496, + "loss": 0.1692925989627838, + "error": 0.0703125, + "gradient_norm": 0.07875128090381622, + "elapsed": 179.48035550117493 + }, + { + "step": 512, + "loss": 0.5580664873123169, + "error": 0.3125, + "gradient_norm": 0.27090802788734436, + "elapsed": 184.42834162712097 + }, + { + "step": 528, + "loss": 0.26402050256729126, + "error": 0.13671875, + "gradient_norm": 0.13135771453380585, + "elapsed": 195.17691040039062 + }, + { + "step": 544, + "loss": 0.4352915287017822, + "error": 0.1953125, + "gradient_norm": 0.15959712862968445, + "elapsed": 200.0421543121338 + }, + { + "step": 560, + "loss": 0.22861814498901367, + "error": 0.1015625, + "gradient_norm": 0.08776932209730148, + "elapsed": 204.95144605636597 + }, + { + "step": 576, + "loss": 0.28309381008148193, + "error": 0.1328125, + "gradient_norm": 0.11050742119550705, + "elapsed": 209.8526291847229 + }, + { + "step": 592, + "loss": 0.6409220695495605, + "error": 0.41015625, + "gradient_norm": 0.19826626777648926, + "elapsed": 214.84447717666626 + }, + { + "step": 608, + "loss": 0.25090643763542175, + "error": 0.109375, + "gradient_norm": 0.05864342302083969, + "elapsed": 219.72637391090393 + }, + { + "step": 624, + "loss": 0.11423969268798828, + "error": 0.05078125, + "gradient_norm": 0.05318564549088478, + "elapsed": 224.6331377029419 + }, + { + "step": 640, + "loss": 0.32663431763648987, + "error": 0.1328125, + "gradient_norm": 0.06877780705690384, + "elapsed": 229.5065622329712 + }, + { + "step": 656, + "loss": 0.24196995794773102, + "error": 0.10546875, + "gradient_norm": 0.07683655619621277, + "elapsed": 234.4042534828186 + }, + { + "step": 672, + "loss": 0.5349344611167908, + "error": 0.296875, + "gradient_norm": 0.15214307606220245, + "elapsed": 239.26656579971313 + }, + { + "step": 688, + "loss": 0.26759713888168335, + "error": 0.1171875, + "gradient_norm": 0.14698348939418793, + "elapsed": 244.21049737930298 + }, + { + "step": 704, + "loss": 0.37338894605636597, + "error": 0.18359375, + "gradient_norm": 0.10210632532835007, + "elapsed": 249.13519072532654 + }, + { + "step": 720, + "loss": 0.36807945370674133, + "error": 0.17578125, + "gradient_norm": 0.09668388962745667, + "elapsed": 254.06281065940857 + }, + { + "step": 736, + "loss": 0.3736685514450073, + "error": 0.15625, + "gradient_norm": 0.10987236350774765, + "elapsed": 259.01695108413696 + }, + { + "step": 752, + "loss": 0.5266942977905273, + "error": 0.29296875, + "gradient_norm": 0.09041415899991989, + "elapsed": 263.9530746936798 + }, + { + "step": 768, + "loss": 0.360038161277771, + "error": 0.1640625, + "gradient_norm": 0.10391079634428024, + "elapsed": 268.9019305706024 + }, + { + "step": 784, + "loss": 0.5700286626815796, + "error": 0.34375, + "gradient_norm": 0.12206032127141953, + "elapsed": 279.4174163341522 + }, + { + "step": 800, + "loss": 0.42533689737319946, + "error": 0.20703125, + "gradient_norm": 0.06605375558137894, + "elapsed": 284.3391351699829 + }, + { + "step": 816, + "loss": 0.12355346977710724, + "error": 0.046875, + "gradient_norm": 0.06571663916110992, + "elapsed": 289.2815272808075 + }, + { + "step": 832, + "loss": 0.6411258578300476, + "error": 0.3984375, + "gradient_norm": 0.160088911652565, + "elapsed": 294.2048614025116 + }, + { + "step": 848, + "loss": 0.5756919980049133, + "error": 0.3515625, + "gradient_norm": 0.0962308868765831, + "elapsed": 299.15635418891907 + }, + { + "step": 864, + "loss": 0.2706402540206909, + "error": 0.1171875, + "gradient_norm": 0.11391306668519974, + "elapsed": 304.09321761131287 + }, + { + "step": 880, + "loss": 0.33621329069137573, + "error": 0.1640625, + "gradient_norm": 0.09049320220947266, + "elapsed": 309.0412187576294 + }, + { + "step": 896, + "loss": 0.44343245029449463, + "error": 0.23828125, + "gradient_norm": 0.12484703958034515, + "elapsed": 313.98498797416687 + }, + { + "step": 912, + "loss": 0.5987736582756042, + "error": 0.359375, + "gradient_norm": 0.07541236281394958, + "elapsed": 318.9334623813629 + }, + { + "step": 928, + "loss": 0.38585522770881653, + "error": 0.1875, + "gradient_norm": 0.09290861338376999, + "elapsed": 323.86884689331055 + }, + { + "step": 944, + "loss": 0.4820440113544464, + "error": 0.234375, + "gradient_norm": 0.22198310494422913, + "elapsed": 328.7963180541992 + }, + { + "step": 960, + "loss": 0.07455944269895554, + "error": 0.015625, + "gradient_norm": 0.055282026529312134, + "elapsed": 333.75238251686096 + }, + { + "step": 976, + "loss": 0.013475366868078709, + "error": 0.0078125, + "gradient_norm": 0.009843004867434502, + "elapsed": 338.6403331756592 + }, + { + "step": 992, + "loss": 0.4429199695587158, + "error": 0.2265625, + "gradient_norm": 0.09489083290100098, + "elapsed": 343.5606532096863 + }, + { + "step": 1008, + "loss": 0.4892328381538391, + "error": 0.234375, + "gradient_norm": 0.1342826634645462, + "elapsed": 348.5243353843689 + }, + { + "step": 1024, + "loss": 0.6096819043159485, + "error": 0.32421875, + "gradient_norm": 0.17938998341560364, + "elapsed": 353.36506962776184 + } + ] + }, + "selection": "Minimum full-validation condition-mean failure per basis group over incumbent, listed neural checkpoints and equal probability averages with the recorded physical decoder.", + "physical_prediction_reference": "/run-state/workspace/research/context_upgrades/turbo1/predictions", + "prior_pass": 3, + "history": [ + { + "group": "d5_bX_center_5_5", + "candidates": { + "incumbent": 0.23482572115384615, + "256": 0.2346754807692308, + "blend-256": 0.23484074519230771, + "512": 0.23569711538461538, + "blend-512": 0.2338341346153846, + "768": 0.23470552884615387, + "blend-768": 0.23464543269230764, + "1024": 0.23653846153846153, + "blend-1024": 0.23445012019230768 + }, + "selected": "blend-512" + }, + { + "group": "d5_bZ_center_5_5", + "candidates": { + "incumbent": 0.22291165865384616, + "256": 0.2231520432692308, + "blend-256": 0.2219951923076923, + "512": 0.22303185096153846, + "blend-512": 0.22211538461538463, + "768": 0.22279146634615382, + "blend-768": 0.2219501201923077, + "1024": 0.22291165865384616, + "blend-1024": 0.22182992788461542 + }, + "selected": "blend-1024" + } + ], + "checkpoints": { + "512": { + "step": 512, + "training_samples": 131072, + "weights_sha256": "6109f95c51d7b8803085c84b6bb34e3f199cc349bd846d6007c8f9a4f2a0c4fe", + "complete": true + }, + "1024": { + "step": 1024, + "training_samples": 262144, + "weights_sha256": "46aa01e703f38fa153206c54ff0ce7083d839de7aeb51bf14c8e732d52d5bd2d", + "complete": true + } + }, + "runtime": "Share physical priors when the conditioning pass and regime agree; otherwise recompute the neural prior independently. Last-only physical branches omit logical tracking in intermediate passes when intermediate probabilities are unused.", + "last_only_equivalence_controls": [ + { + "condition": "surface_code_bX_d5_r03_center_5_5", + "maximum_probability_difference": 7.450580596923828e-07 + }, + { + "condition": "surface_code_bZ_d5_r03_center_5_5", + "maximum_probability_difference": 5.960464477539063e-08 + }, + { + "condition": "surface_code_bX_d5_r25_center_5_5", + "maximum_probability_difference": 5.960464477539063e-08 + }, + { + "condition": "surface_code_bZ_d5_r25_center_5_5", + "maximum_probability_difference": 1.7881393432617188e-07 + } + ], + "test_data_used": false + }, + { + "training": { + "initialization": "Continue from the recorded session-trained checkpoint; original random initialization seed 20261108", + "prior_pass": 3, + "initial_seed": 20261108, + "training_source_sha256": { + "learned_d5__train.py": "b73af9da21332dee9a43f653b514695b020fbc3516604b2e721d8cf0ea876d53", + "learned_d5__data.py": "9e3bcfe9d45f6af60b86a580cdc9374043758a1a6f10564aef9eb344f7a6b364", + "learned_d5__model.py": "5e9420df1f6dd56518925e910096fb9bc93bd796a5933b13bf894a1a96256cdf", + "learned_exact__gradient.py": "ecb6b45698480386fa124fe878db7dbfa246d1969fd720ec26daff9547da2001", + "learned_exact__checkpoint_gradient.py": "7ece6b3f45e009727fd104a3d39e2816a8c3437f737c3d98131d3a5d7d60e9b8", + "exact_d3__exact.py": "869dfacb295c419c156d1070fc2afdd6e20d02ac1840e45e72346b2b289f4825" + }, + "runtime_versions": { + "jax": "0.7.2", + "numpy": "2.3.3", + "optax": "0.2.6" + }, + "architecture": "Two 64-unit SiLU layers; 394 features; bounded 2*tanh correction to relevant-CSS edge logits from the recorded physical feedback pass; exact width-14 contraction predicts logical probability. D5 joint conditioning remains approximate.", + "training": "All supplied training shots per each of all26 d5 conditions; uniform condition and within-condition sampling for optimizer batches.", + "training_cache": "/run-state/workspace/research/learned_d5/full_training_priors3", + "training_cache_provenance": { + "method": "Three undamped physical CSS extrinsic-message passes, clipping8, pass1/pass3 priors captured before logical readout", + "scope": "All supplied training rows in all26 d5 conditions; no validation or test labels used in cache generation", + "reused_rows": "4096 rows per condition from feedback5_cache, sampled with seed20261023; same first three passes", + "remaining_rows": "Computed now with last-only logical tracking; previously controlled against full logical tracking", + "train_manifest_sha256": "ce46c21e3595cfc5885bbe2b6481105317d2e6267498ec4572601469825914b8", + "records": [ + { + "condition": "surface_code_bX_d5_r25_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 44.93641114234924, + "elapsed": 45.15474009513855, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r25_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 43.11551070213318, + "elapsed": 88.52458453178406, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r23_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 39.70699763298035, + "elapsed": 128.4802794456482, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r23_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 41.178571701049805, + "elapsed": 169.95510387420654, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r21_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 41.53053879737854, + "elapsed": 211.7576286792755, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r21_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 43.43117809295654, + "elapsed": 255.62733364105225, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r19_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 33.84876799583435, + "elapsed": 289.70106053352356, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r19_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 32.88018870353699, + "elapsed": 322.7981607913971, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r17_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 29.585307836532593, + "elapsed": 352.58776783943176, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r17_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 29.854028463363647, + "elapsed": 382.6393291950226, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r15_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 26.721288919448853, + "elapsed": 409.54919600486755, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r15_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 29.810269832611084, + "elapsed": 439.6440734863281, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r13_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 29.79407238960266, + "elapsed": 469.7887041568756, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r13_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 28.757604837417603, + "elapsed": 498.71140813827515, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r11_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 25.38013219833374, + "elapsed": 524.2447266578674, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r11_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 25.378958225250244, + "elapsed": 549.8600506782532, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r09_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 21.241567850112915, + "elapsed": 571.2600774765015, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r09_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 18.780335664749146, + "elapsed": 590.304051399231, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r07_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 14.346807956695557, + "elapsed": 604.8041462898254, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r07_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 14.03441047668457, + "elapsed": 618.9537570476532, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r05_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 10.811666488647461, + "elapsed": 629.8610434532166, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r05_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 10.982703924179077, + "elapsed": 640.9919559955597, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r03_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 7.846271991729736, + "elapsed": 648.9624857902527, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r03_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 7.83586859703064, + "elapsed": 656.9065537452698, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r01_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 0.7685718536376953, + "elapsed": 657.7747800350189, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r01_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 0.748960018157959, + "elapsed": 658.5666444301605, + "peak_gpu_bytes": 58661028096 + } + ], + "test_data_used": false + }, + "training_shots": 516880, + "training_pool_interpretation": "Eligible training rows; optimizer samples conditions and rows with replacement. Distinct rows used in this phase are recorded separately.", + "unique_training_rows_seen_in_this_phase": 507282, + "unique_rows_by_condition": { + "surface_code_bX_d5_r01_center_5_5": 19592, + "surface_code_bX_d5_r03_center_5_5": 19646, + "surface_code_bX_d5_r05_center_5_5": 19513, + "surface_code_bX_d5_r07_center_5_5": 19341, + "surface_code_bX_d5_r09_center_5_5": 19211, + "surface_code_bX_d5_r11_center_5_5": 19239, + "surface_code_bX_d5_r13_center_5_5": 19679, + "surface_code_bX_d5_r15_center_5_5": 19455, + "surface_code_bX_d5_r17_center_5_5": 19479, + "surface_code_bX_d5_r19_center_5_5": 19479, + "surface_code_bX_d5_r21_center_5_5": 19551, + "surface_code_bX_d5_r23_center_5_5": 19586, + "surface_code_bX_d5_r25_center_5_5": 19526, + "surface_code_bZ_d5_r01_center_5_5": 19652, + "surface_code_bZ_d5_r03_center_5_5": 19732, + "surface_code_bZ_d5_r05_center_5_5": 19754, + "surface_code_bZ_d5_r07_center_5_5": 19194, + "surface_code_bZ_d5_r09_center_5_5": 19641, + "surface_code_bZ_d5_r11_center_5_5": 19611, + "surface_code_bZ_d5_r13_center_5_5": 19424, + "surface_code_bZ_d5_r15_center_5_5": 19380, + "surface_code_bZ_d5_r17_center_5_5": 19384, + "surface_code_bZ_d5_r19_center_5_5": 19684, + "surface_code_bZ_d5_r21_center_5_5": 19559, + "surface_code_bZ_d5_r23_center_5_5": 19524, + "surface_code_bZ_d5_r25_center_5_5": 19446 + }, + "gradient_block_size": 32, + "bucket_operations": true, + "accumulate_conditions": 1, + "effective_batch_size": 1024, + "uncertainty_weight_floor": 1.0, + "example_weighting": "Uniform BCE", + "loss": "Conditional logical binary cross entropy, differentiated through exact relevant-CSS contraction; physical CSS feedback prior held fixed", + "steps": 2048, + "batch": 1024, + "learning_rate": 0.0005, + "sampling_seed": 20261113, + "optimizer": "AdamW, weight decay 1e-4, global gradient norm clip 1", + "optimizer_restored": true, + "rng_restored": true, + "sampling_state_source": "/run-state/workspace/research/learned_d5/feedback3_pilot/rng-768.json", + "starting_checkpoint": "/run-state/workspace/research/learned_d5/feedback3_pilot/weights-768.npz", + "starting_checkpoint_sha256": "bc2ba1c529317ce1b5b661efae4707eca49c6995d6f22b04193fe7642662fed8", + "starting_training_provenance": { + "initialization": "All parameters initialized in this session: variance-scaled normal hidden layers, Normal(0,.001) output weights, zero biases, seed 20261108", + "prior_pass": 3, + "initial_seed": 20261108, + "architecture": "Two 64-unit SiLU layers; 394 features; bounded 2*tanh correction to relevant-CSS edge logits from the recorded physical feedback pass; exact width-14 contraction predicts logical probability. D5 joint conditioning remains approximate.", + "training": "4096 training shots per each of all 26 d5 conditions, sampled without replacement with seed 20261023. Uniform condition and within-condition sampling for optimizer batches.", + "loss": "Conditional logical binary cross entropy, differentiated through exact relevant-CSS contraction; physical CSS feedback prior held fixed", + "steps": 1024, + "batch": 256, + "learning_rate": 0.001, + "sampling_seed": 20261108, + "optimizer": "AdamW, weight decay 1e-4, global gradient norm clip 1", + "optimizer_restored": false, + "starting_checkpoint": null, + "validation": "Uniform subset per all 26 conditions, sample seed 20261102; full validation required before publication", + "validation_shots_per_condition": 1024, + "test_data_used": false, + "records": [ + { + "step": 1, + "loss": 0.011146659031510353, + "error": 0.00390625, + "gradient_norm": 0.011240893043577671, + "elapsed": 21.276997089385986 + }, + { + "step": 16, + "loss": 0.645737886428833, + "error": 0.40625, + "gradient_norm": 0.1628236621618271, + "elapsed": 25.872907638549805 + }, + { + "step": 32, + "loss": 0.574029803276062, + "error": 0.35546875, + "gradient_norm": 0.3000081777572632, + "elapsed": 30.761418342590332 + }, + { + "step": 48, + "loss": 0.574467122554779, + "error": 0.296875, + "gradient_norm": 0.24150623381137848, + "elapsed": 35.67650651931763 + }, + { + "step": 64, + "loss": 0.6003620624542236, + "error": 0.35546875, + "gradient_norm": 0.07430054992437363, + "elapsed": 40.60572576522827 + }, + { + "step": 80, + "loss": 0.5429091453552246, + "error": 0.33203125, + "gradient_norm": 0.15341751277446747, + "elapsed": 45.546849727630615 + }, + { + "step": 96, + "loss": 0.368771493434906, + "error": 0.1640625, + "gradient_norm": 0.08923184871673584, + "elapsed": 50.49156332015991 + }, + { + "step": 112, + "loss": 0.516342043876648, + "error": 0.265625, + "gradient_norm": 0.10965219140052795, + "elapsed": 55.45058846473694 + }, + { + "step": 128, + "loss": 0.5925382971763611, + "error": 0.37109375, + "gradient_norm": 0.055406324565410614, + "elapsed": 60.40891766548157 + }, + { + "step": 144, + "loss": 0.19184258580207825, + "error": 0.07421875, + "gradient_norm": 0.07042146474123001, + "elapsed": 65.33323669433594 + }, + { + "step": 160, + "loss": 0.5202382206916809, + "error": 0.25390625, + "gradient_norm": 0.14782382547855377, + "elapsed": 70.26605796813965 + }, + { + "step": 176, + "loss": 0.46083134412765503, + "error": 0.22265625, + "gradient_norm": 0.09074779599905014, + "elapsed": 75.18221640586853 + }, + { + "step": 192, + "loss": 0.3054918646812439, + "error": 0.14453125, + "gradient_norm": 0.0588168129324913, + "elapsed": 80.1186010837555 + }, + { + "step": 208, + "loss": 0.4836011230945587, + "error": 0.27734375, + "gradient_norm": 0.09208947420120239, + "elapsed": 85.05764293670654 + }, + { + "step": 224, + "loss": 0.6640600562095642, + "error": 0.38671875, + "gradient_norm": 0.22026506066322327, + "elapsed": 89.98808217048645 + }, + { + "step": 240, + "loss": 0.02421322464942932, + "error": 0.00390625, + "gradient_norm": 0.008131005801260471, + "elapsed": 94.90194272994995 + }, + { + "step": 256, + "loss": 0.6302106976509094, + "error": 0.4296875, + "gradient_norm": 0.09762304276227951, + "elapsed": 99.82612204551697 + }, + { + "step": 272, + "loss": 0.5092596411705017, + "error": 0.27734375, + "gradient_norm": 0.11407691985368729, + "elapsed": 110.44065999984741 + }, + { + "step": 288, + "loss": 0.452798455953598, + "error": 0.2265625, + "gradient_norm": 0.1105576679110527, + "elapsed": 115.36984539031982 + }, + { + "step": 304, + "loss": 0.3378596305847168, + "error": 0.18359375, + "gradient_norm": 0.0841713547706604, + "elapsed": 120.29337763786316 + }, + { + "step": 320, + "loss": 0.6271854639053345, + "error": 0.38671875, + "gradient_norm": 0.1972702294588089, + "elapsed": 125.2231035232544 + }, + { + "step": 336, + "loss": 0.04562236741185188, + "error": 0.01171875, + "gradient_norm": 0.027922745794057846, + "elapsed": 130.14725255966187 + }, + { + "step": 352, + "loss": 0.5342530608177185, + "error": 0.26953125, + "gradient_norm": 0.09031179547309875, + "elapsed": 135.08111095428467 + }, + { + "step": 368, + "loss": 0.49785488843917847, + "error": 0.2578125, + "gradient_norm": 0.19366280734539032, + "elapsed": 140.00699138641357 + }, + { + "step": 384, + "loss": 0.5673326253890991, + "error": 0.30859375, + "gradient_norm": 0.20644932985305786, + "elapsed": 144.92276740074158 + }, + { + "step": 400, + "loss": 0.5581298470497131, + "error": 0.3203125, + "gradient_norm": 0.17668266594409943, + "elapsed": 149.86573243141174 + }, + { + "step": 416, + "loss": 0.5564071536064148, + "error": 0.30078125, + "gradient_norm": 0.0821610689163208, + "elapsed": 154.7953712940216 + }, + { + "step": 432, + "loss": 0.5540086030960083, + "error": 0.34765625, + "gradient_norm": 0.1438807100057602, + "elapsed": 159.72657418251038 + }, + { + "step": 448, + "loss": 0.540939450263977, + "error": 0.29296875, + "gradient_norm": 0.17986361682415009, + "elapsed": 164.6689453125 + }, + { + "step": 464, + "loss": 0.45807865262031555, + "error": 0.25, + "gradient_norm": 0.14453186094760895, + "elapsed": 169.58739304542542 + }, + { + "step": 480, + "loss": 0.5191650390625, + "error": 0.22265625, + "gradient_norm": 0.07955105602741241, + "elapsed": 174.5444438457489 + }, + { + "step": 496, + "loss": 0.1692925989627838, + "error": 0.0703125, + "gradient_norm": 0.07875128090381622, + "elapsed": 179.48035550117493 + }, + { + "step": 512, + "loss": 0.5580664873123169, + "error": 0.3125, + "gradient_norm": 0.27090802788734436, + "elapsed": 184.42834162712097 + }, + { + "step": 528, + "loss": 0.26402050256729126, + "error": 0.13671875, + "gradient_norm": 0.13135771453380585, + "elapsed": 195.17691040039062 + }, + { + "step": 544, + "loss": 0.4352915287017822, + "error": 0.1953125, + "gradient_norm": 0.15959712862968445, + "elapsed": 200.0421543121338 + }, + { + "step": 560, + "loss": 0.22861814498901367, + "error": 0.1015625, + "gradient_norm": 0.08776932209730148, + "elapsed": 204.95144605636597 + }, + { + "step": 576, + "loss": 0.28309381008148193, + "error": 0.1328125, + "gradient_norm": 0.11050742119550705, + "elapsed": 209.8526291847229 + }, + { + "step": 592, + "loss": 0.6409220695495605, + "error": 0.41015625, + "gradient_norm": 0.19826626777648926, + "elapsed": 214.84447717666626 + }, + { + "step": 608, + "loss": 0.25090643763542175, + "error": 0.109375, + "gradient_norm": 0.05864342302083969, + "elapsed": 219.72637391090393 + }, + { + "step": 624, + "loss": 0.11423969268798828, + "error": 0.05078125, + "gradient_norm": 0.05318564549088478, + "elapsed": 224.6331377029419 + }, + { + "step": 640, + "loss": 0.32663431763648987, + "error": 0.1328125, + "gradient_norm": 0.06877780705690384, + "elapsed": 229.5065622329712 + }, + { + "step": 656, + "loss": 0.24196995794773102, + "error": 0.10546875, + "gradient_norm": 0.07683655619621277, + "elapsed": 234.4042534828186 + }, + { + "step": 672, + "loss": 0.5349344611167908, + "error": 0.296875, + "gradient_norm": 0.15214307606220245, + "elapsed": 239.26656579971313 + }, + { + "step": 688, + "loss": 0.26759713888168335, + "error": 0.1171875, + "gradient_norm": 0.14698348939418793, + "elapsed": 244.21049737930298 + }, + { + "step": 704, + "loss": 0.37338894605636597, + "error": 0.18359375, + "gradient_norm": 0.10210632532835007, + "elapsed": 249.13519072532654 + }, + { + "step": 720, + "loss": 0.36807945370674133, + "error": 0.17578125, + "gradient_norm": 0.09668388962745667, + "elapsed": 254.06281065940857 + }, + { + "step": 736, + "loss": 0.3736685514450073, + "error": 0.15625, + "gradient_norm": 0.10987236350774765, + "elapsed": 259.01695108413696 + }, + { + "step": 752, + "loss": 0.5266942977905273, + "error": 0.29296875, + "gradient_norm": 0.09041415899991989, + "elapsed": 263.9530746936798 + }, + { + "step": 768, + "loss": 0.360038161277771, + "error": 0.1640625, + "gradient_norm": 0.10391079634428024, + "elapsed": 268.9019305706024 + }, + { + "step": 784, + "loss": 0.5700286626815796, + "error": 0.34375, + "gradient_norm": 0.12206032127141953, + "elapsed": 279.4174163341522 + }, + { + "step": 800, + "loss": 0.42533689737319946, + "error": 0.20703125, + "gradient_norm": 0.06605375558137894, + "elapsed": 284.3391351699829 + }, + { + "step": 816, + "loss": 0.12355346977710724, + "error": 0.046875, + "gradient_norm": 0.06571663916110992, + "elapsed": 289.2815272808075 + }, + { + "step": 832, + "loss": 0.6411258578300476, + "error": 0.3984375, + "gradient_norm": 0.160088911652565, + "elapsed": 294.2048614025116 + }, + { + "step": 848, + "loss": 0.5756919980049133, + "error": 0.3515625, + "gradient_norm": 0.0962308868765831, + "elapsed": 299.15635418891907 + }, + { + "step": 864, + "loss": 0.2706402540206909, + "error": 0.1171875, + "gradient_norm": 0.11391306668519974, + "elapsed": 304.09321761131287 + }, + { + "step": 880, + "loss": 0.33621329069137573, + "error": 0.1640625, + "gradient_norm": 0.09049320220947266, + "elapsed": 309.0412187576294 + }, + { + "step": 896, + "loss": 0.44343245029449463, + "error": 0.23828125, + "gradient_norm": 0.12484703958034515, + "elapsed": 313.98498797416687 + }, + { + "step": 912, + "loss": 0.5987736582756042, + "error": 0.359375, + "gradient_norm": 0.07541236281394958, + "elapsed": 318.9334623813629 + }, + { + "step": 928, + "loss": 0.38585522770881653, + "error": 0.1875, + "gradient_norm": 0.09290861338376999, + "elapsed": 323.86884689331055 + }, + { + "step": 944, + "loss": 0.4820440113544464, + "error": 0.234375, + "gradient_norm": 0.22198310494422913, + "elapsed": 328.7963180541992 + }, + { + "step": 960, + "loss": 0.07455944269895554, + "error": 0.015625, + "gradient_norm": 0.055282026529312134, + "elapsed": 333.75238251686096 + }, + { + "step": 976, + "loss": 0.013475366868078709, + "error": 0.0078125, + "gradient_norm": 0.009843004867434502, + "elapsed": 338.6403331756592 + }, + { + "step": 992, + "loss": 0.4429199695587158, + "error": 0.2265625, + "gradient_norm": 0.09489083290100098, + "elapsed": 343.5606532096863 + }, + { + "step": 1008, + "loss": 0.4892328381538391, + "error": 0.234375, + "gradient_norm": 0.1342826634645462, + "elapsed": 348.5243353843689 + }, + { + "step": 1024, + "loss": 0.6096819043159485, + "error": 0.32421875, + "gradient_norm": 0.17938998341560364, + "elapsed": 353.36506962776184 + } + ] + }, + "validation": "Uniform subset per all 26 conditions, sample seed 20261102; full validation required before publication", + "validation_shots_per_condition": 1024, + "test_data_used": false, + "records": [ + { + "step": 1, + "loss": 0.4341062307357788, + "objective": 0.4341062307357788, + "error": 0.208984375, + "gradient_norm": 0.07617632299661636, + "elapsed": 31.45817995071411 + }, + { + "step": 16, + "loss": 0.5996706485748291, + "objective": 0.5996706485748291, + "error": 0.359375, + "gradient_norm": 0.05249844491481781, + "elapsed": 56.34200572967529 + }, + { + "step": 32, + "loss": 0.4388691186904907, + "objective": 0.4388691186904907, + "error": 0.2041015625, + "gradient_norm": 0.0376109778881073, + "elapsed": 67.83739852905273 + }, + { + "step": 48, + "loss": 0.5373439788818359, + "objective": 0.5373439788818359, + "error": 0.2919921875, + "gradient_norm": 0.06261218339204788, + "elapsed": 76.69065475463867 + }, + { + "step": 64, + "loss": 0.24871854484081268, + "objective": 0.24871854484081268, + "error": 0.1162109375, + "gradient_norm": 0.05284671485424042, + "elapsed": 86.3852767944336 + }, + { + "step": 80, + "loss": 0.26628297567367554, + "objective": 0.26628297567367554, + "error": 0.123046875, + "gradient_norm": 0.04054367542266846, + "elapsed": 95.77356100082397 + }, + { + "step": 96, + "loss": 0.48436349630355835, + "objective": 0.48436349630355835, + "error": 0.259765625, + "gradient_norm": 0.05399860441684723, + "elapsed": 107.06293416023254 + }, + { + "step": 112, + "loss": 0.41063767671585083, + "objective": 0.41063767671585083, + "error": 0.1943359375, + "gradient_norm": 0.043602071702480316, + "elapsed": 116.78119611740112 + }, + { + "step": 128, + "loss": 0.3990316390991211, + "objective": 0.3990316390991211, + "error": 0.1865234375, + "gradient_norm": 0.0424419641494751, + "elapsed": 125.6915397644043 + }, + { + "step": 144, + "loss": 0.5119550228118896, + "objective": 0.5119550228118896, + "error": 0.2646484375, + "gradient_norm": 0.07688591629266739, + "elapsed": 136.20711088180542 + }, + { + "step": 160, + "loss": 0.3388235569000244, + "objective": 0.3388235569000244, + "error": 0.1630859375, + "gradient_norm": 0.07015731930732727, + "elapsed": 145.3505516052246 + }, + { + "step": 176, + "loss": 0.5952156186103821, + "objective": 0.5952156186103821, + "error": 0.3369140625, + "gradient_norm": 0.039373140782117844, + "elapsed": 154.77994871139526 + }, + { + "step": 192, + "loss": 0.15157413482666016, + "objective": 0.15157413482666016, + "error": 0.0634765625, + "gradient_norm": 0.029710670933127403, + "elapsed": 164.46801733970642 + }, + { + "step": 208, + "loss": 0.3120684027671814, + "objective": 0.3120684027671814, + "error": 0.1474609375, + "gradient_norm": 0.035548821091651917, + "elapsed": 173.24825358390808 + }, + { + "step": 224, + "loss": 0.5486405491828918, + "objective": 0.5486405491828918, + "error": 0.2900390625, + "gradient_norm": 0.0503678023815155, + "elapsed": 185.29849314689636 + }, + { + "step": 240, + "loss": 0.6046283841133118, + "objective": 0.6046283841133118, + "error": 0.3349609375, + "gradient_norm": 0.05043461173772812, + "elapsed": 197.54880928993225 + }, + { + "step": 256, + "loss": 0.5926339626312256, + "objective": 0.5926339626312256, + "error": 0.3359375, + "gradient_norm": 0.051241543143987656, + "elapsed": 211.79861068725586 + }, + { + "step": 272, + "loss": 0.4018518924713135, + "objective": 0.4018518924713135, + "error": 0.1943359375, + "gradient_norm": 0.0772147998213768, + "elapsed": 222.41974115371704 + }, + { + "step": 288, + "loss": 0.13863243162631989, + "objective": 0.13863243162631989, + "error": 0.0556640625, + "gradient_norm": 0.03334609419107437, + "elapsed": 234.04247426986694 + }, + { + "step": 304, + "loss": 0.562490701675415, + "objective": 0.562490701675415, + "error": 0.337890625, + "gradient_norm": 0.04585934057831764, + "elapsed": 242.65421533584595 + }, + { + "step": 320, + "loss": 0.5352796316146851, + "objective": 0.5352796316146851, + "error": 0.294921875, + "gradient_norm": 0.0837635025382042, + "elapsed": 252.10656356811523 + }, + { + "step": 336, + "loss": 0.26082637906074524, + "objective": 0.26082637906074524, + "error": 0.1220703125, + "gradient_norm": 0.048336997628211975, + "elapsed": 262.33449625968933 + }, + { + "step": 352, + "loss": 0.5959363579750061, + "objective": 0.5959363579750061, + "error": 0.3388671875, + "gradient_norm": 0.06797357648611069, + "elapsed": 271.9942307472229 + }, + { + "step": 368, + "loss": 0.48994284868240356, + "objective": 0.48994284868240356, + "error": 0.2587890625, + "gradient_norm": 0.06296153366565704, + "elapsed": 283.0493588447571 + }, + { + "step": 384, + "loss": 0.5710494518280029, + "objective": 0.5710494518280029, + "error": 0.3134765625, + "gradient_norm": 0.045333269983530045, + "elapsed": 294.64637446403503 + }, + { + "step": 400, + "loss": 0.5957783460617065, + "objective": 0.5957783460617065, + "error": 0.349609375, + "gradient_norm": 0.03918786719441414, + "elapsed": 307.6200888156891 + }, + { + "step": 416, + "loss": 0.27521568536758423, + "objective": 0.27521568536758423, + "error": 0.1220703125, + "gradient_norm": 0.038001637905836105, + "elapsed": 317.01610231399536 + }, + { + "step": 432, + "loss": 0.02379823848605156, + "objective": 0.02379823848605156, + "error": 0.0078125, + "gradient_norm": 0.007661945186555386, + "elapsed": 326.9360330104828 + }, + { + "step": 448, + "loss": 0.56734299659729, + "objective": 0.56734299659729, + "error": 0.3271484375, + "gradient_norm": 0.057416290044784546, + "elapsed": 339.6289041042328 + }, + { + "step": 464, + "loss": 0.10715995728969574, + "objective": 0.10715995728969574, + "error": 0.0380859375, + "gradient_norm": 0.02532491274178028, + "elapsed": 349.8584108352661 + }, + { + "step": 480, + "loss": 0.6143364310264587, + "objective": 0.6143364310264587, + "error": 0.36328125, + "gradient_norm": 0.08023032546043396, + "elapsed": 360.36362075805664 + }, + { + "step": 496, + "loss": 0.44069671630859375, + "objective": 0.44069671630859375, + "error": 0.2197265625, + "gradient_norm": 0.048025116324424744, + "elapsed": 369.48225808143616 + }, + { + "step": 512, + "loss": 0.019900165498256683, + "objective": 0.019900165498256683, + "error": 0.0107421875, + "gradient_norm": 0.0038635791279375553, + "elapsed": 378.59970593452454 + }, + { + "step": 528, + "loss": 0.033316534012556076, + "objective": 0.033316534012556076, + "error": 0.009765625, + "gradient_norm": 0.009174940176308155, + "elapsed": 393.4021761417389 + }, + { + "step": 544, + "loss": 0.41130945086479187, + "objective": 0.41130945086479187, + "error": 0.20703125, + "gradient_norm": 0.04695262759923935, + "elapsed": 402.8586280345917 + }, + { + "step": 560, + "loss": 0.5885373950004578, + "objective": 0.5885373950004578, + "error": 0.3544921875, + "gradient_norm": 0.08534500002861023, + "elapsed": 416.98661041259766 + }, + { + "step": 576, + "loss": 0.3804720640182495, + "objective": 0.3804720640182495, + "error": 0.19140625, + "gradient_norm": 0.05163278803229332, + "elapsed": 427.7550480365753 + }, + { + "step": 592, + "loss": 0.6101120710372925, + "objective": 0.6101120710372925, + "error": 0.3525390625, + "gradient_norm": 0.05593184754252434, + "elapsed": 441.05026268959045 + }, + { + "step": 608, + "loss": 0.5586092472076416, + "objective": 0.5586092472076416, + "error": 0.302734375, + "gradient_norm": 0.07458740472793579, + "elapsed": 452.95383286476135 + }, + { + "step": 624, + "loss": 0.5992780923843384, + "objective": 0.5992780923843384, + "error": 0.357421875, + "gradient_norm": 0.03618372976779938, + "elapsed": 466.1582691669464 + }, + { + "step": 640, + "loss": 0.3536975383758545, + "objective": 0.3536975383758545, + "error": 0.1650390625, + "gradient_norm": 0.05353165790438652, + "elapsed": 477.166255235672 + }, + { + "step": 656, + "loss": 0.4926893711090088, + "objective": 0.4926893711090088, + "error": 0.2626953125, + "gradient_norm": 0.05201377719640732, + "elapsed": 491.1417751312256 + }, + { + "step": 672, + "loss": 0.5754991173744202, + "objective": 0.5754991173744202, + "error": 0.3271484375, + "gradient_norm": 0.08167096972465515, + "elapsed": 501.630366563797 + }, + { + "step": 688, + "loss": 0.5685014724731445, + "objective": 0.5685014724731445, + "error": 0.333984375, + "gradient_norm": 0.043775107711553574, + "elapsed": 514.2880456447601 + }, + { + "step": 704, + "loss": 0.022465089336037636, + "objective": 0.022465089336037636, + "error": 0.0068359375, + "gradient_norm": 0.010172540321946144, + "elapsed": 522.9173214435577 + }, + { + "step": 720, + "loss": 0.035460107028484344, + "objective": 0.035460107028484344, + "error": 0.0107421875, + "gradient_norm": 0.010515578091144562, + "elapsed": 532.8470129966736 + }, + { + "step": 736, + "loss": 0.44765588641166687, + "objective": 0.44765588641166687, + "error": 0.2138671875, + "gradient_norm": 0.09050357341766357, + "elapsed": 541.9488840103149 + }, + { + "step": 752, + "loss": 0.5933939218521118, + "objective": 0.5933939218521118, + "error": 0.3359375, + "gradient_norm": 0.0665116235613823, + "elapsed": 552.9967355728149 + }, + { + "step": 768, + "loss": 0.6100764870643616, + "objective": 0.6100764870643616, + "error": 0.3515625, + "gradient_norm": 0.0821211114525795, + "elapsed": 563.7709202766418 + }, + { + "step": 784, + "loss": 0.02964692935347557, + "objective": 0.02964692935347557, + "error": 0.009765625, + "gradient_norm": 0.012663272209465504, + "elapsed": 573.1517221927643 + }, + { + "step": 800, + "loss": 0.38091832399368286, + "objective": 0.38091832399368286, + "error": 0.1904296875, + "gradient_norm": 0.060622021555900574, + "elapsed": 582.5687477588654 + }, + { + "step": 816, + "loss": 0.552335262298584, + "objective": 0.552335262298584, + "error": 0.3076171875, + "gradient_norm": 0.14419035613536835, + "elapsed": 594.4292685985565 + }, + { + "step": 832, + "loss": 0.5943340063095093, + "objective": 0.5943340063095093, + "error": 0.34375, + "gradient_norm": 0.0633513554930687, + "elapsed": 605.2052299976349 + }, + { + "step": 848, + "loss": 0.6074100732803345, + "objective": 0.6074100732803345, + "error": 0.3486328125, + "gradient_norm": 0.04225531220436096, + "elapsed": 614.8996202945709 + }, + { + "step": 864, + "loss": 0.6198879480361938, + "objective": 0.6198879480361938, + "error": 0.361328125, + "gradient_norm": 0.04208856821060181, + "elapsed": 625.4266908168793 + }, + { + "step": 880, + "loss": 0.6151762008666992, + "objective": 0.6151762008666992, + "error": 0.369140625, + "gradient_norm": 0.06261089444160461, + "elapsed": 636.0696911811829 + }, + { + "step": 896, + "loss": 0.49680083990097046, + "objective": 0.49680083990097046, + "error": 0.25390625, + "gradient_norm": 0.0827067643404007, + "elapsed": 644.6893246173859 + }, + { + "step": 912, + "loss": 0.4610927402973175, + "objective": 0.4610927402973175, + "error": 0.23828125, + "gradient_norm": 0.06652095168828964, + "elapsed": 655.969132900238 + }, + { + "step": 928, + "loss": 0.5218505859375, + "objective": 0.5218505859375, + "error": 0.2685546875, + "gradient_norm": 0.07188194245100021, + "elapsed": 667.5352523326874 + }, + { + "step": 944, + "loss": 0.33009427785873413, + "objective": 0.33009427785873413, + "error": 0.1533203125, + "gradient_norm": 0.05718810483813286, + "elapsed": 677.8397319316864 + }, + { + "step": 960, + "loss": 0.5703234672546387, + "objective": 0.5703234672546387, + "error": 0.3193359375, + "gradient_norm": 0.11168288439512253, + "elapsed": 687.8742904663086 + }, + { + "step": 976, + "loss": 0.025548014789819717, + "objective": 0.025548014789819717, + "error": 0.0107421875, + "gradient_norm": 0.009453393518924713, + "elapsed": 698.294285774231 + }, + { + "step": 992, + "loss": 0.45398157835006714, + "objective": 0.45398157835006714, + "error": 0.2412109375, + "gradient_norm": 0.04607952758669853, + "elapsed": 707.903199672699 + }, + { + "step": 1008, + "loss": 0.3412189781665802, + "objective": 0.3412189781665802, + "error": 0.1513671875, + "gradient_norm": 0.0432075597345829, + "elapsed": 718.5662748813629 + }, + { + "step": 1024, + "loss": 0.4376429319381714, + "objective": 0.4376429319381714, + "error": 0.2275390625, + "gradient_norm": 0.07974351197481155, + "elapsed": 728.8954858779907 + }, + { + "step": 1040, + "loss": 0.33512815833091736, + "objective": 0.33512815833091736, + "error": 0.150390625, + "gradient_norm": 0.04476875811815262, + "elapsed": 744.0822694301605 + }, + { + "step": 1056, + "loss": 0.5214208364486694, + "objective": 0.5214208364486694, + "error": 0.283203125, + "gradient_norm": 0.08898192644119263, + "elapsed": 755.1484262943268 + }, + { + "step": 1072, + "loss": 0.13849599659442902, + "objective": 0.13849599659442902, + "error": 0.052734375, + "gradient_norm": 0.028359953314065933, + "elapsed": 764.3303108215332 + }, + { + "step": 1088, + "loss": 0.323838472366333, + "objective": 0.323838472366333, + "error": 0.1435546875, + "gradient_norm": 0.04081716760993004, + "elapsed": 773.2739362716675 + }, + { + "step": 1104, + "loss": 0.5627881288528442, + "objective": 0.5627881288528442, + "error": 0.3125, + "gradient_norm": 0.08322097361087799, + "elapsed": 784.7223973274231 + }, + { + "step": 1120, + "loss": 0.44111010432243347, + "objective": 0.44111010432243347, + "error": 0.2216796875, + "gradient_norm": 0.05700977146625519, + "elapsed": 795.085648059845 + }, + { + "step": 1136, + "loss": 0.6395992040634155, + "objective": 0.6395992040634155, + "error": 0.39453125, + "gradient_norm": 0.0744553729891777, + "elapsed": 805.7942585945129 + }, + { + "step": 1152, + "loss": 0.5433304309844971, + "objective": 0.5433304309844971, + "error": 0.287109375, + "gradient_norm": 0.04814797267317772, + "elapsed": 817.3382890224457 + }, + { + "step": 1168, + "loss": 0.5708576440811157, + "objective": 0.5708576440811157, + "error": 0.3203125, + "gradient_norm": 0.051331400871276855, + "elapsed": 829.288791179657 + }, + { + "step": 1184, + "loss": 0.5447035431861877, + "objective": 0.5447035431861877, + "error": 0.2939453125, + "gradient_norm": 0.10116687417030334, + "elapsed": 839.6822843551636 + }, + { + "step": 1200, + "loss": 0.6125671863555908, + "objective": 0.6125671863555908, + "error": 0.3642578125, + "gradient_norm": 0.04368080571293831, + "elapsed": 850.2262740135193 + }, + { + "step": 1216, + "loss": 0.5002380609512329, + "objective": 0.5002380609512329, + "error": 0.259765625, + "gradient_norm": 0.04939017817378044, + "elapsed": 862.3783452510834 + }, + { + "step": 1232, + "loss": 0.5698772668838501, + "objective": 0.5698772668838501, + "error": 0.3173828125, + "gradient_norm": 0.04916854575276375, + "elapsed": 871.4622664451599 + }, + { + "step": 1248, + "loss": 0.6046518683433533, + "objective": 0.6046518683433533, + "error": 0.341796875, + "gradient_norm": 0.04919794574379921, + "elapsed": 883.3905737400055 + }, + { + "step": 1264, + "loss": 0.5913128852844238, + "objective": 0.5913128852844238, + "error": 0.357421875, + "gradient_norm": 0.046917904168367386, + "elapsed": 892.4264807701111 + }, + { + "step": 1280, + "loss": 0.5027461051940918, + "objective": 0.5027461051940918, + "error": 0.2626953125, + "gradient_norm": 0.04705750197172165, + "elapsed": 902.5875842571259 + }, + { + "step": 1296, + "loss": 0.13519814610481262, + "objective": 0.13519814610481262, + "error": 0.052734375, + "gradient_norm": 0.02625490538775921, + "elapsed": 912.4087471961975 + }, + { + "step": 1312, + "loss": 0.5862359404563904, + "objective": 0.5862359404563904, + "error": 0.3271484375, + "gradient_norm": 0.05441493168473244, + "elapsed": 923.992555141449 + }, + { + "step": 1328, + "loss": 0.6031408309936523, + "objective": 0.6031408309936523, + "error": 0.3505859375, + "gradient_norm": 0.05901554971933365, + "elapsed": 933.3936491012573 + }, + { + "step": 1344, + "loss": 0.5823733806610107, + "objective": 0.5823733806610107, + "error": 0.3310546875, + "gradient_norm": 0.0842989832162857, + "elapsed": 941.979998588562 + }, + { + "step": 1360, + "loss": 0.6241492033004761, + "objective": 0.6241492033004761, + "error": 0.3720703125, + "gradient_norm": 0.04446673393249512, + "elapsed": 954.969649553299 + }, + { + "step": 1376, + "loss": 0.5829156637191772, + "objective": 0.5829156637191772, + "error": 0.361328125, + "gradient_norm": 0.06615480780601501, + "elapsed": 966.0245676040649 + }, + { + "step": 1392, + "loss": 0.5968320369720459, + "objective": 0.5968320369720459, + "error": 0.34765625, + "gradient_norm": 0.05093541368842125, + "elapsed": 975.1022663116455 + }, + { + "step": 1408, + "loss": 0.045559000223875046, + "objective": 0.045559000223875046, + "error": 0.01171875, + "gradient_norm": 0.02514980360865593, + "elapsed": 987.2391452789307 + }, + { + "step": 1424, + "loss": 0.22601813077926636, + "objective": 0.22601813077926636, + "error": 0.09765625, + "gradient_norm": 0.04834206402301788, + "elapsed": 996.4583384990692 + }, + { + "step": 1440, + "loss": 0.23011144995689392, + "objective": 0.23011144995689392, + "error": 0.111328125, + "gradient_norm": 0.050687842071056366, + "elapsed": 1007.1440904140472 + }, + { + "step": 1456, + "loss": 0.018240466713905334, + "objective": 0.018240466713905334, + "error": 0.0078125, + "gradient_norm": 0.005604141391813755, + "elapsed": 1016.4502851963043 + }, + { + "step": 1472, + "loss": 0.4498720169067383, + "objective": 0.4498720169067383, + "error": 0.232421875, + "gradient_norm": 0.08179625123739243, + "elapsed": 1028.8303294181824 + }, + { + "step": 1488, + "loss": 0.24151627719402313, + "objective": 0.24151627719402313, + "error": 0.107421875, + "gradient_norm": 0.03838668763637543, + "elapsed": 1037.8867321014404 + }, + { + "step": 1504, + "loss": 0.46122002601623535, + "objective": 0.46122002601623535, + "error": 0.232421875, + "gradient_norm": 0.0726623386144638, + "elapsed": 1047.7258644104004 + }, + { + "step": 1520, + "loss": 0.5085602402687073, + "objective": 0.5085602402687073, + "error": 0.2705078125, + "gradient_norm": 0.06673175096511841, + "elapsed": 1059.352120399475 + }, + { + "step": 1536, + "loss": 0.6105246543884277, + "objective": 0.6105246543884277, + "error": 0.3818359375, + "gradient_norm": 0.04271261766552925, + "elapsed": 1070.1413230895996 + }, + { + "step": 1552, + "loss": 0.4792126417160034, + "objective": 0.4792126417160034, + "error": 0.2578125, + "gradient_norm": 0.05200039595365524, + "elapsed": 1086.444006204605 + }, + { + "step": 1568, + "loss": 0.5814266204833984, + "objective": 0.5814266204833984, + "error": 0.330078125, + "gradient_norm": 0.05867309868335724, + "elapsed": 1097.2902619838715 + }, + { + "step": 1584, + "loss": 0.6321226358413696, + "objective": 0.6321226358413696, + "error": 0.3798828125, + "gradient_norm": 0.05418067052960396, + "elapsed": 1107.9767682552338 + }, + { + "step": 1600, + "loss": 0.5931253433227539, + "objective": 0.5931253433227539, + "error": 0.3603515625, + "gradient_norm": 0.06396215409040451, + "elapsed": 1121.782609462738 + }, + { + "step": 1616, + "loss": 0.6411516666412354, + "objective": 0.6411516666412354, + "error": 0.38671875, + "gradient_norm": 0.05035768821835518, + "elapsed": 1132.7197887897491 + }, + { + "step": 1632, + "loss": 0.4267754852771759, + "objective": 0.4267754852771759, + "error": 0.2080078125, + "gradient_norm": 0.09109894186258316, + "elapsed": 1139.1667578220367 + }, + { + "step": 1648, + "loss": 0.21246182918548584, + "objective": 0.21246182918548584, + "error": 0.095703125, + "gradient_norm": 0.04478950425982475, + "elapsed": 1149.1183021068573 + }, + { + "step": 1664, + "loss": 0.46360665559768677, + "objective": 0.46360665559768677, + "error": 0.251953125, + "gradient_norm": 0.07668188214302063, + "elapsed": 1161.1197745800018 + }, + { + "step": 1680, + "loss": 0.46281397342681885, + "objective": 0.46281397342681885, + "error": 0.236328125, + "gradient_norm": 0.07954126596450806, + "elapsed": 1171.8474535942078 + }, + { + "step": 1696, + "loss": 0.2484058141708374, + "objective": 0.2484058141708374, + "error": 0.12109375, + "gradient_norm": 0.047261305153369904, + "elapsed": 1185.6542596817017 + }, + { + "step": 1712, + "loss": 0.24310235679149628, + "objective": 0.24310235679149628, + "error": 0.1064453125, + "gradient_norm": 0.07262872904539108, + "elapsed": 1197.8986082077026 + }, + { + "step": 1728, + "loss": 0.009729458019137383, + "objective": 0.009729458019137383, + "error": 0.001953125, + "gradient_norm": 0.01146845705807209, + "elapsed": 1208.495581150055 + }, + { + "step": 1744, + "loss": 0.24568752944469452, + "objective": 0.24568752944469452, + "error": 0.10546875, + "gradient_norm": 0.05830742046236992, + "elapsed": 1219.9394850730896 + }, + { + "step": 1760, + "loss": 0.022546378895640373, + "objective": 0.022546378895640373, + "error": 0.0068359375, + "gradient_norm": 0.007667526602745056, + "elapsed": 1229.5703229904175 + }, + { + "step": 1776, + "loss": 0.5848401784896851, + "objective": 0.5848401784896851, + "error": 0.3271484375, + "gradient_norm": 0.061901818960905075, + "elapsed": 1238.750280380249 + }, + { + "step": 1792, + "loss": 0.6031335592269897, + "objective": 0.6031335592269897, + "error": 0.3671875, + "gradient_norm": 0.0676632970571518, + "elapsed": 1247.7468683719635 + }, + { + "step": 1808, + "loss": 0.6210961937904358, + "objective": 0.6210961937904358, + "error": 0.3603515625, + "gradient_norm": 0.0718468651175499, + "elapsed": 1256.1821897029877 + }, + { + "step": 1824, + "loss": 0.570877730846405, + "objective": 0.570877730846405, + "error": 0.3212890625, + "gradient_norm": 0.05575930327177048, + "elapsed": 1266.4091975688934 + }, + { + "step": 1840, + "loss": 0.5711429119110107, + "objective": 0.5711429119110107, + "error": 0.31640625, + "gradient_norm": 0.0691002607345581, + "elapsed": 1277.4722146987915 + }, + { + "step": 1856, + "loss": 0.36046335101127625, + "objective": 0.36046335101127625, + "error": 0.16796875, + "gradient_norm": 0.04694395884871483, + "elapsed": 1287.1420249938965 + }, + { + "step": 1872, + "loss": 0.4688999652862549, + "objective": 0.4688999652862549, + "error": 0.2216796875, + "gradient_norm": 0.07401346415281296, + "elapsed": 1297.3945078849792 + }, + { + "step": 1888, + "loss": 0.46385282278060913, + "objective": 0.46385282278060913, + "error": 0.2373046875, + "gradient_norm": 0.05608939751982689, + "elapsed": 1305.9779334068298 + }, + { + "step": 1904, + "loss": 0.60875403881073, + "objective": 0.60875403881073, + "error": 0.365234375, + "gradient_norm": 0.05085878074169159, + "elapsed": 1317.3097081184387 + }, + { + "step": 1920, + "loss": 0.12223530560731888, + "objective": 0.12223530560731888, + "error": 0.0458984375, + "gradient_norm": 0.024870412424206734, + "elapsed": 1328.6486887931824 + }, + { + "step": 1936, + "loss": 0.3486189544200897, + "objective": 0.3486189544200897, + "error": 0.16796875, + "gradient_norm": 0.04780663549900055, + "elapsed": 1336.6701011657715 + }, + { + "step": 1952, + "loss": 0.5777363777160645, + "objective": 0.5777363777160645, + "error": 0.3427734375, + "gradient_norm": 0.0571451336145401, + "elapsed": 1346.9158833026886 + }, + { + "step": 1968, + "loss": 0.39320266246795654, + "objective": 0.39320266246795654, + "error": 0.1884765625, + "gradient_norm": 0.05673858895897865, + "elapsed": 1354.9182631969452 + }, + { + "step": 1984, + "loss": 0.5900611281394958, + "objective": 0.5900611281394958, + "error": 0.3349609375, + "gradient_norm": 0.06593932211399078, + "elapsed": 1364.2754452228546 + }, + { + "step": 2000, + "loss": 0.6212430000305176, + "objective": 0.6212430000305176, + "error": 0.3857421875, + "gradient_norm": 0.040818918496370316, + "elapsed": 1374.7192046642303 + }, + { + "step": 2016, + "loss": 0.15605247020721436, + "objective": 0.15605247020721436, + "error": 0.0556640625, + "gradient_norm": 0.03108786791563034, + "elapsed": 1386.2740807533264 + }, + { + "step": 2032, + "loss": 0.22049596905708313, + "objective": 0.22049596905708313, + "error": 0.1015625, + "gradient_norm": 0.042733557522296906, + "elapsed": 1396.6422457695007 + }, + { + "step": 2048, + "loss": 0.5642613172531128, + "objective": 0.5642613172531128, + "error": 0.306640625, + "gradient_norm": 0.07527482509613037, + "elapsed": 1407.6688070297241 + } + ] + }, + "training_source_snapshot": "training_sources/full3_1", + "selection": "Minimum full-validation condition-mean failure per basis group over incumbent, listed neural checkpoints and equal probability averages with the recorded physical decoder.", + "physical_prediction_reference": "/run-state/workspace/research/context_upgrades/turbo1/predictions", + "prior_pass": 3, + "history": [ + { + "group": "d5_bX_center_5_5", + "candidates": { + "incumbent": 0.2338341346153846, + "512": 0.2336688701923077, + "blend-512": 0.23399939903846154, + "1024": 0.23329326923076923, + "blend-1024": 0.23342848557692306, + "1536": 0.2330679086538462, + "blend-1536": 0.23291766826923077, + "2048": 0.2335186298076923, + "blend-2048": 0.23290264423076928 + }, + "selected": "blend-2048" + }, + { + "group": "d5_bZ_center_5_5", + "candidates": { + "incumbent": 0.22182992788461542, + "512": 0.22143930288461539, + "blend-512": 0.22125901442307694, + "1024": 0.22104867788461538, + "blend-1024": 0.22079326923076922, + "1536": 0.22017728365384615, + "blend-1536": 0.22095853365384618, + "2048": 0.22076322115384617, + "blend-2048": 0.22025240384615385 + }, + "selected": "1536" + } + ], + "checkpoints": { + "2048": { + "step": 2048, + "training_samples": 2097152, + "unique_training_rows_seen_in_this_phase": 507282, + "weights_sha256": "b93c1367dfeb0e32b2add76b1abeb3f12d4d9f8145d0f13d8d5b17ca882ba3b5", + "complete": true + }, + "1536": { + "step": 1536, + "training_samples": 1572864, + "unique_training_rows_seen_in_this_phase": 490266, + "weights_sha256": "fb250c19cf7bb00741b6d862b8f646a2c8ab88397bb03c7bafc9085f9347eca5", + "complete": true + } + }, + "runtime": "Share physical priors when the conditioning pass and regime agree; otherwise recompute the neural prior independently. Last-only physical branches omit logical tracking in intermediate passes when intermediate probabilities are unused.", + "last_only_equivalence_controls": [ + { + "condition": "surface_code_bX_d5_r03_center_5_5", + "maximum_probability_difference": 7.450580596923828e-07 + }, + { + "condition": "surface_code_bZ_d5_r03_center_5_5", + "maximum_probability_difference": 5.960464477539063e-08 + }, + { + "condition": "surface_code_bX_d5_r25_center_5_5", + "maximum_probability_difference": 5.960464477539063e-08 + }, + { + "condition": "surface_code_bZ_d5_r25_center_5_5", + "maximum_probability_difference": 1.7881393432617188e-07 + } + ], + "test_data_used": false, + "numerical_controls": { + "gpu_gradient_control.json": { + "condition": "surface_code_bZ_d5_r25_center_5_5", + "data": "First1024 rows of the authorized4096 training sample; no validation labels", + "weights": "Random scratch parameters, seed20261112; gradients only, no parameter update", + "block_size": 32, + "records": [ + { + "batch": 256, + "seconds_per_gradient": 0.38611968358357746, + "shots_per_second": 663.0068625977924, + "memory_stats": { + "num_allocs": 694, + "bytes_in_use": 306432, + "peak_bytes_in_use": 3054084608, + "largest_alloc_size": 3047267584, + "bytes_limit": 76526240993, + "bytes_reserved": 0, + "peak_bytes_reserved": 0, + "largest_free_block_bytes": 0, + "pool_bytes": 76526240768, + "peak_pool_bytes": 76526240768 + } + }, + { + "batch": 512, + "seconds_per_gradient": 0.6622018814086914, + "shots_per_second": 773.178111350017, + "memory_stats": { + "num_allocs": 1332, + "bytes_in_use": 308480, + "peak_bytes_in_use": 6079704832, + "largest_alloc_size": 6069432576, + "bytes_limit": 76526240993, + "bytes_reserved": 0, + "peak_bytes_reserved": 0, + "largest_free_block_bytes": 0, + "pool_bytes": 76526240768, + "peak_pool_bytes": 76526240768 + } + }, + { + "batch": 1024, + "seconds_per_gradient": 1.117707888285319, + "shots_per_second": 916.1606630252231, + "memory_stats": { + "num_allocs": 1970, + "bytes_in_use": 312576, + "peak_bytes_in_use": 12138994176, + "largest_alloc_size": 12122019840, + "bytes_limit": 76526240993, + "bytes_reserved": 0, + "peak_bytes_reserved": 0, + "largest_free_block_bytes": 0, + "pool_bytes": 76526240768, + "peak_pool_bytes": 76526240768 + } + } + ], + "original_gradient_gpu_control": { + "loss_max_difference": 1.6689300537109375e-06, + "prediction_max_difference": 1.0132789611816406e-06, + "neural_gradient_relative_difference": 5.505155786522664e-05, + "float64_precision_audit": "/run-state/workspace/research/learned_d5/full3_1/gpu_gradient_precision.json", + "tolerance_rationale": "Original3e-5 GPU gradient threshold failed at5.51e-5. Independent float64 audits of both float32 algorithms across six X/Z durations found comparable relative rounding errors up to5.72e-5, with probability errors below6.2e-7. Use1e-4 relative for this accumulated derivative." + } + }, + "gpu_gradient_precision.json": { + "data": "First16 supplied training rows per listed condition; no parameter updates", + "weights": "full3_1/weights-1536.npz", + "reference": "Original unblocked algorithm in float64, fixed float32 neural edge probabilities", + "source_sha256": { + "gradient.py": "ecb6b45698480386fa124fe878db7dbfa246d1969fd720ec26daff9547da2001", + "checkpoint_gradient.py": "7ece6b3f45e009727fd104a3d39e2816a8c3437f737c3d98131d3a5d7d60e9b8" + }, + "initial_gpu_control_failure": { + "relative_neural_gradient_difference": 5.505155786522664e-05, + "original_tolerance": 3e-05, + "maximum_loss_difference": 1.6689300537109375e-06, + "maximum_prediction_difference": 1.0132789611816406e-06 + }, + "records": [ + { + "condition": "surface_code_bX_d5_r03_center_5_5", + "training_rows": 16, + "reference_neural_gradient_norm": 0.30205945019442737, + "unblocked_float32": { + "maximum_loss_error": 2.966804864001915e-07, + "maximum_probability_error": 9.592670685565352e-08, + "neural_gradient_maximum_absolute_error": 1.6391277313232422e-07, + "neural_gradient_relative_error": 3.6604459916077934e-06, + "neural_gradient_cosine": 0.9999999999933656 + }, + "blocked_float32": { + "maximum_loss_error": 1.7747119684941026e-07, + "maximum_probability_error": 8.879568846875685e-08, + "neural_gradient_maximum_absolute_error": 1.7881393432617188e-07, + "neural_gradient_relative_error": 4.366049097416422e-06, + "neural_gradient_cosine": 0.9999999999904692 + } + }, + { + "condition": "surface_code_bZ_d5_r03_center_5_5", + "training_rows": 16, + "reference_neural_gradient_norm": 0.22069588396473294, + "unblocked_float32": { + "maximum_loss_error": 5.498523059088711e-07, + "maximum_probability_error": 9.703680636796719e-08, + "neural_gradient_maximum_absolute_error": 6.686605047434568e-08, + "neural_gradient_relative_error": 2.392500410145668e-06, + "neural_gradient_cosine": 0.999999999997144 + }, + "blocked_float32": { + "maximum_loss_error": 8.745212829311194e-08, + "maximum_probability_error": 6.418482079162402e-08, + "neural_gradient_maximum_absolute_error": 6.705522537231445e-08, + "neural_gradient_relative_error": 1.7739189351699108e-06, + "neural_gradient_cosine": 0.9999999999984265 + } + }, + { + "condition": "surface_code_bX_d5_r13_center_5_5", + "training_rows": 16, + "reference_neural_gradient_norm": 0.4664494516878606, + "unblocked_float32": { + "maximum_loss_error": 3.922858555771569e-07, + "maximum_probability_error": 2.581999101192167e-07, + "neural_gradient_maximum_absolute_error": 1.7015263438224792e-06, + "neural_gradient_relative_error": 2.234804892316077e-05, + "neural_gradient_cosine": 0.9999999997509151 + }, + "blocked_float32": { + "maximum_loss_error": 3.3479861938356947e-07, + "maximum_probability_error": 1.4954284288659636e-07, + "neural_gradient_maximum_absolute_error": 1.6633421182632446e-06, + "neural_gradient_relative_error": 2.4167285966292737e-05, + "neural_gradient_cosine": 0.9999999997089409 + } + }, + { + "condition": "surface_code_bZ_d5_r13_center_5_5", + "training_rows": 16, + "reference_neural_gradient_norm": 0.438354906018253, + "unblocked_float32": { + "maximum_loss_error": 6.361644384611509e-07, + "maximum_probability_error": 3.6173952677742705e-07, + "neural_gradient_maximum_absolute_error": 1.9436702132225037e-06, + "neural_gradient_relative_error": 5.252014500992631e-05, + "neural_gradient_cosine": 0.9999999986254251 + }, + "blocked_float32": { + "maximum_loss_error": 5.060161181180689e-07, + "maximum_probability_error": 2.589724067414423e-07, + "neural_gradient_maximum_absolute_error": 1.946929842233658e-06, + "neural_gradient_relative_error": 5.71756656511251e-05, + "neural_gradient_cosine": 0.999999998372327 + } + }, + { + "condition": "surface_code_bX_d5_r25_center_5_5", + "training_rows": 16, + "reference_neural_gradient_norm": 0.3057787329709659, + "unblocked_float32": { + "maximum_loss_error": 6.74491174690317e-07, + "maximum_probability_error": 4.3885854938974234e-07, + "neural_gradient_maximum_absolute_error": 8.174683898687363e-07, + "neural_gradient_relative_error": 4.090547224844183e-05, + "neural_gradient_cosine": 0.9999999991633716 + }, + "blocked_float32": { + "maximum_loss_error": 6.643292806973733e-07, + "maximum_probability_error": 4.835620329712853e-07, + "neural_gradient_maximum_absolute_error": 1.1210795491933823e-06, + "neural_gradient_relative_error": 5.584921905818847e-05, + "neural_gradient_cosine": 0.9999999984491473 + } + }, + { + "condition": "surface_code_bZ_d5_r25_center_5_5", + "training_rows": 16, + "reference_neural_gradient_norm": 0.2501411033127809, + "unblocked_float32": { + "maximum_loss_error": 1.167099820564843e-06, + "maximum_probability_error": 4.921027032533942e-07, + "neural_gradient_maximum_absolute_error": 7.14324414730072e-07, + "neural_gradient_relative_error": 4.528117886548381e-05, + "neural_gradient_cosine": 0.9999999989770499 + }, + "blocked_float32": { + "maximum_loss_error": 1.4055183996664056e-06, + "maximum_probability_error": 6.113119928041755e-07, + "neural_gradient_maximum_absolute_error": 7.075723260641098e-07, + "neural_gradient_relative_error": 5.112087336342683e-05, + "neural_gradient_cosine": 0.9999999986947755 + } + } + ], + "status": "passed" + } + } + }, + { + "training": { + "initialization": "Uniform parameter averages of checkpoints from the same session-initialized training trajectory; no external weights", + "prior_pass": 3, + "architecture": "Two 64-unit SiLU layers; 394 features; bounded 2*tanh correction to relevant-CSS edge logits from the recorded physical feedback pass; exact width-14 contraction predicts logical probability. D5 joint conditioning remains approximate.", + "hidden_width": 64, + "training": "No new optimizer updates; all learning comes from the recorded source trajectory and its session-trained parent", + "optimizer_updates_in_derived_run": 0, + "source_training_provenance": { + "initialization": "Continue from the recorded session-trained checkpoint; original random initialization seed 20261108", + "prior_pass": 3, + "initial_seed": 20261108, + "training_source_sha256": { + "learned_d5__train.py": "b73af9da21332dee9a43f653b514695b020fbc3516604b2e721d8cf0ea876d53", + "learned_d5__data.py": "9e3bcfe9d45f6af60b86a580cdc9374043758a1a6f10564aef9eb344f7a6b364", + "learned_d5__model.py": "5e9420df1f6dd56518925e910096fb9bc93bd796a5933b13bf894a1a96256cdf", + "learned_exact__gradient.py": "ecb6b45698480386fa124fe878db7dbfa246d1969fd720ec26daff9547da2001", + "learned_exact__checkpoint_gradient.py": "7ece6b3f45e009727fd104a3d39e2816a8c3437f737c3d98131d3a5d7d60e9b8", + "exact_d3__exact.py": "869dfacb295c419c156d1070fc2afdd6e20d02ac1840e45e72346b2b289f4825" + }, + "runtime_versions": { + "jax": "0.7.2", + "numpy": "2.3.3", + "optax": "0.2.6" + }, + "architecture": "Two 64-unit SiLU layers; 394 features; bounded 2*tanh correction to relevant-CSS edge logits from the recorded physical feedback pass; exact width-14 contraction predicts logical probability. D5 joint conditioning remains approximate.", + "training": "All supplied training shots per each of all26 d5 conditions; uniform condition and within-condition sampling for optimizer batches.", + "training_cache": "/run-state/workspace/research/learned_d5/full_training_priors3", + "training_cache_provenance": { + "method": "Three undamped physical CSS extrinsic-message passes, clipping8, pass1/pass3 priors captured before logical readout", + "scope": "All supplied training rows in all26 d5 conditions; no validation or test labels used in cache generation", + "reused_rows": "4096 rows per condition from feedback5_cache, sampled with seed20261023; same first three passes", + "remaining_rows": "Computed now with last-only logical tracking; previously controlled against full logical tracking", + "train_manifest_sha256": "ce46c21e3595cfc5885bbe2b6481105317d2e6267498ec4572601469825914b8", + "records": [ + { + "condition": "surface_code_bX_d5_r25_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 44.93641114234924, + "elapsed": 45.15474009513855, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r25_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 43.11551070213318, + "elapsed": 88.52458453178406, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r23_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 39.70699763298035, + "elapsed": 128.4802794456482, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r23_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 41.178571701049805, + "elapsed": 169.95510387420654, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r21_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 41.53053879737854, + "elapsed": 211.7576286792755, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r21_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 43.43117809295654, + "elapsed": 255.62733364105225, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r19_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 33.84876799583435, + "elapsed": 289.70106053352356, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r19_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 32.88018870353699, + "elapsed": 322.7981607913971, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r17_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 29.585307836532593, + "elapsed": 352.58776783943176, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r17_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 29.854028463363647, + "elapsed": 382.6393291950226, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r15_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 26.721288919448853, + "elapsed": 409.54919600486755, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r15_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 29.810269832611084, + "elapsed": 439.6440734863281, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r13_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 29.79407238960266, + "elapsed": 469.7887041568756, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r13_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 28.757604837417603, + "elapsed": 498.71140813827515, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r11_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 25.38013219833374, + "elapsed": 524.2447266578674, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r11_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 25.378958225250244, + "elapsed": 549.8600506782532, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r09_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 21.241567850112915, + "elapsed": 571.2600774765015, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r09_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 18.780335664749146, + "elapsed": 590.304051399231, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r07_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 14.346807956695557, + "elapsed": 604.8041462898254, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r07_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 14.03441047668457, + "elapsed": 618.9537570476532, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r05_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 10.811666488647461, + "elapsed": 629.8610434532166, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r05_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 10.982703924179077, + "elapsed": 640.9919559955597, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r03_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 7.846271991729736, + "elapsed": 648.9624857902527, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r03_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 7.83586859703064, + "elapsed": 656.9065537452698, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r01_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 0.7685718536376953, + "elapsed": 657.7747800350189, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r01_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 0.748960018157959, + "elapsed": 658.5666444301605, + "peak_gpu_bytes": 58661028096 + } + ], + "test_data_used": false + }, + "training_shots": 516880, + "training_pool_interpretation": "Eligible training rows; optimizer samples conditions and rows with replacement. Distinct rows used in this phase are recorded separately.", + "unique_training_rows_seen_in_this_phase": 507282, + "unique_rows_by_condition": { + "surface_code_bX_d5_r01_center_5_5": 19592, + "surface_code_bX_d5_r03_center_5_5": 19646, + "surface_code_bX_d5_r05_center_5_5": 19513, + "surface_code_bX_d5_r07_center_5_5": 19341, + "surface_code_bX_d5_r09_center_5_5": 19211, + "surface_code_bX_d5_r11_center_5_5": 19239, + "surface_code_bX_d5_r13_center_5_5": 19679, + "surface_code_bX_d5_r15_center_5_5": 19455, + "surface_code_bX_d5_r17_center_5_5": 19479, + "surface_code_bX_d5_r19_center_5_5": 19479, + "surface_code_bX_d5_r21_center_5_5": 19551, + "surface_code_bX_d5_r23_center_5_5": 19586, + "surface_code_bX_d5_r25_center_5_5": 19526, + "surface_code_bZ_d5_r01_center_5_5": 19652, + "surface_code_bZ_d5_r03_center_5_5": 19732, + "surface_code_bZ_d5_r05_center_5_5": 19754, + "surface_code_bZ_d5_r07_center_5_5": 19194, + "surface_code_bZ_d5_r09_center_5_5": 19641, + "surface_code_bZ_d5_r11_center_5_5": 19611, + "surface_code_bZ_d5_r13_center_5_5": 19424, + "surface_code_bZ_d5_r15_center_5_5": 19380, + "surface_code_bZ_d5_r17_center_5_5": 19384, + "surface_code_bZ_d5_r19_center_5_5": 19684, + "surface_code_bZ_d5_r21_center_5_5": 19559, + "surface_code_bZ_d5_r23_center_5_5": 19524, + "surface_code_bZ_d5_r25_center_5_5": 19446 + }, + "gradient_block_size": 32, + "bucket_operations": true, + "accumulate_conditions": 1, + "effective_batch_size": 1024, + "uncertainty_weight_floor": 1.0, + "example_weighting": "Uniform BCE", + "loss": "Conditional logical binary cross entropy, differentiated through exact relevant-CSS contraction; physical CSS feedback prior held fixed", + "steps": 2048, + "batch": 1024, + "learning_rate": 0.0005, + "sampling_seed": 20261113, + "optimizer": "AdamW, weight decay 1e-4, global gradient norm clip 1", + "optimizer_restored": true, + "rng_restored": true, + "sampling_state_source": "/run-state/workspace/research/learned_d5/feedback3_pilot/rng-768.json", + "starting_checkpoint": "/run-state/workspace/research/learned_d5/feedback3_pilot/weights-768.npz", + "starting_checkpoint_sha256": "bc2ba1c529317ce1b5b661efae4707eca49c6995d6f22b04193fe7642662fed8", + "starting_training_provenance": { + "initialization": "All parameters initialized in this session: variance-scaled normal hidden layers, Normal(0,.001) output weights, zero biases, seed 20261108", + "prior_pass": 3, + "initial_seed": 20261108, + "architecture": "Two 64-unit SiLU layers; 394 features; bounded 2*tanh correction to relevant-CSS edge logits from the recorded physical feedback pass; exact width-14 contraction predicts logical probability. D5 joint conditioning remains approximate.", + "training": "4096 training shots per each of all 26 d5 conditions, sampled without replacement with seed 20261023. Uniform condition and within-condition sampling for optimizer batches.", + "loss": "Conditional logical binary cross entropy, differentiated through exact relevant-CSS contraction; physical CSS feedback prior held fixed", + "steps": 1024, + "batch": 256, + "learning_rate": 0.001, + "sampling_seed": 20261108, + "optimizer": "AdamW, weight decay 1e-4, global gradient norm clip 1", + "optimizer_restored": false, + "starting_checkpoint": null, + "validation": "Uniform subset per all 26 conditions, sample seed 20261102; full validation required before publication", + "validation_shots_per_condition": 1024, + "test_data_used": false, + "records": [ + { + "step": 1, + "loss": 0.011146659031510353, + "error": 0.00390625, + "gradient_norm": 0.011240893043577671, + "elapsed": 21.276997089385986 + }, + { + "step": 16, + "loss": 0.645737886428833, + "error": 0.40625, + "gradient_norm": 0.1628236621618271, + "elapsed": 25.872907638549805 + }, + { + "step": 32, + "loss": 0.574029803276062, + "error": 0.35546875, + "gradient_norm": 0.3000081777572632, + "elapsed": 30.761418342590332 + }, + { + "step": 48, + "loss": 0.574467122554779, + "error": 0.296875, + "gradient_norm": 0.24150623381137848, + "elapsed": 35.67650651931763 + }, + { + "step": 64, + "loss": 0.6003620624542236, + "error": 0.35546875, + "gradient_norm": 0.07430054992437363, + "elapsed": 40.60572576522827 + }, + { + "step": 80, + "loss": 0.5429091453552246, + "error": 0.33203125, + "gradient_norm": 0.15341751277446747, + "elapsed": 45.546849727630615 + }, + { + "step": 96, + "loss": 0.368771493434906, + "error": 0.1640625, + "gradient_norm": 0.08923184871673584, + "elapsed": 50.49156332015991 + }, + { + "step": 112, + "loss": 0.516342043876648, + "error": 0.265625, + "gradient_norm": 0.10965219140052795, + "elapsed": 55.45058846473694 + }, + { + "step": 128, + "loss": 0.5925382971763611, + "error": 0.37109375, + "gradient_norm": 0.055406324565410614, + "elapsed": 60.40891766548157 + }, + { + "step": 144, + "loss": 0.19184258580207825, + "error": 0.07421875, + "gradient_norm": 0.07042146474123001, + "elapsed": 65.33323669433594 + }, + { + "step": 160, + "loss": 0.5202382206916809, + "error": 0.25390625, + "gradient_norm": 0.14782382547855377, + "elapsed": 70.26605796813965 + }, + { + "step": 176, + "loss": 0.46083134412765503, + "error": 0.22265625, + "gradient_norm": 0.09074779599905014, + "elapsed": 75.18221640586853 + }, + { + "step": 192, + "loss": 0.3054918646812439, + "error": 0.14453125, + "gradient_norm": 0.0588168129324913, + "elapsed": 80.1186010837555 + }, + { + "step": 208, + "loss": 0.4836011230945587, + "error": 0.27734375, + "gradient_norm": 0.09208947420120239, + "elapsed": 85.05764293670654 + }, + { + "step": 224, + "loss": 0.6640600562095642, + "error": 0.38671875, + "gradient_norm": 0.22026506066322327, + "elapsed": 89.98808217048645 + }, + { + "step": 240, + "loss": 0.02421322464942932, + "error": 0.00390625, + "gradient_norm": 0.008131005801260471, + "elapsed": 94.90194272994995 + }, + { + "step": 256, + "loss": 0.6302106976509094, + "error": 0.4296875, + "gradient_norm": 0.09762304276227951, + "elapsed": 99.82612204551697 + }, + { + "step": 272, + "loss": 0.5092596411705017, + "error": 0.27734375, + "gradient_norm": 0.11407691985368729, + "elapsed": 110.44065999984741 + }, + { + "step": 288, + "loss": 0.452798455953598, + "error": 0.2265625, + "gradient_norm": 0.1105576679110527, + "elapsed": 115.36984539031982 + }, + { + "step": 304, + "loss": 0.3378596305847168, + "error": 0.18359375, + "gradient_norm": 0.0841713547706604, + "elapsed": 120.29337763786316 + }, + { + "step": 320, + "loss": 0.6271854639053345, + "error": 0.38671875, + "gradient_norm": 0.1972702294588089, + "elapsed": 125.2231035232544 + }, + { + "step": 336, + "loss": 0.04562236741185188, + "error": 0.01171875, + "gradient_norm": 0.027922745794057846, + "elapsed": 130.14725255966187 + }, + { + "step": 352, + "loss": 0.5342530608177185, + "error": 0.26953125, + "gradient_norm": 0.09031179547309875, + "elapsed": 135.08111095428467 + }, + { + "step": 368, + "loss": 0.49785488843917847, + "error": 0.2578125, + "gradient_norm": 0.19366280734539032, + "elapsed": 140.00699138641357 + }, + { + "step": 384, + "loss": 0.5673326253890991, + "error": 0.30859375, + "gradient_norm": 0.20644932985305786, + "elapsed": 144.92276740074158 + }, + { + "step": 400, + "loss": 0.5581298470497131, + "error": 0.3203125, + "gradient_norm": 0.17668266594409943, + "elapsed": 149.86573243141174 + }, + { + "step": 416, + "loss": 0.5564071536064148, + "error": 0.30078125, + "gradient_norm": 0.0821610689163208, + "elapsed": 154.7953712940216 + }, + { + "step": 432, + "loss": 0.5540086030960083, + "error": 0.34765625, + "gradient_norm": 0.1438807100057602, + "elapsed": 159.72657418251038 + }, + { + "step": 448, + "loss": 0.540939450263977, + "error": 0.29296875, + "gradient_norm": 0.17986361682415009, + "elapsed": 164.6689453125 + }, + { + "step": 464, + "loss": 0.45807865262031555, + "error": 0.25, + "gradient_norm": 0.14453186094760895, + "elapsed": 169.58739304542542 + }, + { + "step": 480, + "loss": 0.5191650390625, + "error": 0.22265625, + "gradient_norm": 0.07955105602741241, + "elapsed": 174.5444438457489 + }, + { + "step": 496, + "loss": 0.1692925989627838, + "error": 0.0703125, + "gradient_norm": 0.07875128090381622, + "elapsed": 179.48035550117493 + }, + { + "step": 512, + "loss": 0.5580664873123169, + "error": 0.3125, + "gradient_norm": 0.27090802788734436, + "elapsed": 184.42834162712097 + }, + { + "step": 528, + "loss": 0.26402050256729126, + "error": 0.13671875, + "gradient_norm": 0.13135771453380585, + "elapsed": 195.17691040039062 + }, + { + "step": 544, + "loss": 0.4352915287017822, + "error": 0.1953125, + "gradient_norm": 0.15959712862968445, + "elapsed": 200.0421543121338 + }, + { + "step": 560, + "loss": 0.22861814498901367, + "error": 0.1015625, + "gradient_norm": 0.08776932209730148, + "elapsed": 204.95144605636597 + }, + { + "step": 576, + "loss": 0.28309381008148193, + "error": 0.1328125, + "gradient_norm": 0.11050742119550705, + "elapsed": 209.8526291847229 + }, + { + "step": 592, + "loss": 0.6409220695495605, + "error": 0.41015625, + "gradient_norm": 0.19826626777648926, + "elapsed": 214.84447717666626 + }, + { + "step": 608, + "loss": 0.25090643763542175, + "error": 0.109375, + "gradient_norm": 0.05864342302083969, + "elapsed": 219.72637391090393 + }, + { + "step": 624, + "loss": 0.11423969268798828, + "error": 0.05078125, + "gradient_norm": 0.05318564549088478, + "elapsed": 224.6331377029419 + }, + { + "step": 640, + "loss": 0.32663431763648987, + "error": 0.1328125, + "gradient_norm": 0.06877780705690384, + "elapsed": 229.5065622329712 + }, + { + "step": 656, + "loss": 0.24196995794773102, + "error": 0.10546875, + "gradient_norm": 0.07683655619621277, + "elapsed": 234.4042534828186 + }, + { + "step": 672, + "loss": 0.5349344611167908, + "error": 0.296875, + "gradient_norm": 0.15214307606220245, + "elapsed": 239.26656579971313 + }, + { + "step": 688, + "loss": 0.26759713888168335, + "error": 0.1171875, + "gradient_norm": 0.14698348939418793, + "elapsed": 244.21049737930298 + }, + { + "step": 704, + "loss": 0.37338894605636597, + "error": 0.18359375, + "gradient_norm": 0.10210632532835007, + "elapsed": 249.13519072532654 + }, + { + "step": 720, + "loss": 0.36807945370674133, + "error": 0.17578125, + "gradient_norm": 0.09668388962745667, + "elapsed": 254.06281065940857 + }, + { + "step": 736, + "loss": 0.3736685514450073, + "error": 0.15625, + "gradient_norm": 0.10987236350774765, + "elapsed": 259.01695108413696 + }, + { + "step": 752, + "loss": 0.5266942977905273, + "error": 0.29296875, + "gradient_norm": 0.09041415899991989, + "elapsed": 263.9530746936798 + }, + { + "step": 768, + "loss": 0.360038161277771, + "error": 0.1640625, + "gradient_norm": 0.10391079634428024, + "elapsed": 268.9019305706024 + }, + { + "step": 784, + "loss": 0.5700286626815796, + "error": 0.34375, + "gradient_norm": 0.12206032127141953, + "elapsed": 279.4174163341522 + }, + { + "step": 800, + "loss": 0.42533689737319946, + "error": 0.20703125, + "gradient_norm": 0.06605375558137894, + "elapsed": 284.3391351699829 + }, + { + "step": 816, + "loss": 0.12355346977710724, + "error": 0.046875, + "gradient_norm": 0.06571663916110992, + "elapsed": 289.2815272808075 + }, + { + "step": 832, + "loss": 0.6411258578300476, + "error": 0.3984375, + "gradient_norm": 0.160088911652565, + "elapsed": 294.2048614025116 + }, + { + "step": 848, + "loss": 0.5756919980049133, + "error": 0.3515625, + "gradient_norm": 0.0962308868765831, + "elapsed": 299.15635418891907 + }, + { + "step": 864, + "loss": 0.2706402540206909, + "error": 0.1171875, + "gradient_norm": 0.11391306668519974, + "elapsed": 304.09321761131287 + }, + { + "step": 880, + "loss": 0.33621329069137573, + "error": 0.1640625, + "gradient_norm": 0.09049320220947266, + "elapsed": 309.0412187576294 + }, + { + "step": 896, + "loss": 0.44343245029449463, + "error": 0.23828125, + "gradient_norm": 0.12484703958034515, + "elapsed": 313.98498797416687 + }, + { + "step": 912, + "loss": 0.5987736582756042, + "error": 0.359375, + "gradient_norm": 0.07541236281394958, + "elapsed": 318.9334623813629 + }, + { + "step": 928, + "loss": 0.38585522770881653, + "error": 0.1875, + "gradient_norm": 0.09290861338376999, + "elapsed": 323.86884689331055 + }, + { + "step": 944, + "loss": 0.4820440113544464, + "error": 0.234375, + "gradient_norm": 0.22198310494422913, + "elapsed": 328.7963180541992 + }, + { + "step": 960, + "loss": 0.07455944269895554, + "error": 0.015625, + "gradient_norm": 0.055282026529312134, + "elapsed": 333.75238251686096 + }, + { + "step": 976, + "loss": 0.013475366868078709, + "error": 0.0078125, + "gradient_norm": 0.009843004867434502, + "elapsed": 338.6403331756592 + }, + { + "step": 992, + "loss": 0.4429199695587158, + "error": 0.2265625, + "gradient_norm": 0.09489083290100098, + "elapsed": 343.5606532096863 + }, + { + "step": 1008, + "loss": 0.4892328381538391, + "error": 0.234375, + "gradient_norm": 0.1342826634645462, + "elapsed": 348.5243353843689 + }, + { + "step": 1024, + "loss": 0.6096819043159485, + "error": 0.32421875, + "gradient_norm": 0.17938998341560364, + "elapsed": 353.36506962776184 + } + ] + }, + "validation": "Uniform subset per all 26 conditions, sample seed 20261102; full validation required before publication", + "validation_shots_per_condition": 1024, + "test_data_used": false, + "records": [ + { + "step": 1, + "loss": 0.4341062307357788, + "objective": 0.4341062307357788, + "error": 0.208984375, + "gradient_norm": 0.07617632299661636, + "elapsed": 31.45817995071411 + }, + { + "step": 16, + "loss": 0.5996706485748291, + "objective": 0.5996706485748291, + "error": 0.359375, + "gradient_norm": 0.05249844491481781, + "elapsed": 56.34200572967529 + }, + { + "step": 32, + "loss": 0.4388691186904907, + "objective": 0.4388691186904907, + "error": 0.2041015625, + "gradient_norm": 0.0376109778881073, + "elapsed": 67.83739852905273 + }, + { + "step": 48, + "loss": 0.5373439788818359, + "objective": 0.5373439788818359, + "error": 0.2919921875, + "gradient_norm": 0.06261218339204788, + "elapsed": 76.69065475463867 + }, + { + "step": 64, + "loss": 0.24871854484081268, + "objective": 0.24871854484081268, + "error": 0.1162109375, + "gradient_norm": 0.05284671485424042, + "elapsed": 86.3852767944336 + }, + { + "step": 80, + "loss": 0.26628297567367554, + "objective": 0.26628297567367554, + "error": 0.123046875, + "gradient_norm": 0.04054367542266846, + "elapsed": 95.77356100082397 + }, + { + "step": 96, + "loss": 0.48436349630355835, + "objective": 0.48436349630355835, + "error": 0.259765625, + "gradient_norm": 0.05399860441684723, + "elapsed": 107.06293416023254 + }, + { + "step": 112, + "loss": 0.41063767671585083, + "objective": 0.41063767671585083, + "error": 0.1943359375, + "gradient_norm": 0.043602071702480316, + "elapsed": 116.78119611740112 + }, + { + "step": 128, + "loss": 0.3990316390991211, + "objective": 0.3990316390991211, + "error": 0.1865234375, + "gradient_norm": 0.0424419641494751, + "elapsed": 125.6915397644043 + }, + { + "step": 144, + "loss": 0.5119550228118896, + "objective": 0.5119550228118896, + "error": 0.2646484375, + "gradient_norm": 0.07688591629266739, + "elapsed": 136.20711088180542 + }, + { + "step": 160, + "loss": 0.3388235569000244, + "objective": 0.3388235569000244, + "error": 0.1630859375, + "gradient_norm": 0.07015731930732727, + "elapsed": 145.3505516052246 + }, + { + "step": 176, + "loss": 0.5952156186103821, + "objective": 0.5952156186103821, + "error": 0.3369140625, + "gradient_norm": 0.039373140782117844, + "elapsed": 154.77994871139526 + }, + { + "step": 192, + "loss": 0.15157413482666016, + "objective": 0.15157413482666016, + "error": 0.0634765625, + "gradient_norm": 0.029710670933127403, + "elapsed": 164.46801733970642 + }, + { + "step": 208, + "loss": 0.3120684027671814, + "objective": 0.3120684027671814, + "error": 0.1474609375, + "gradient_norm": 0.035548821091651917, + "elapsed": 173.24825358390808 + }, + { + "step": 224, + "loss": 0.5486405491828918, + "objective": 0.5486405491828918, + "error": 0.2900390625, + "gradient_norm": 0.0503678023815155, + "elapsed": 185.29849314689636 + }, + { + "step": 240, + "loss": 0.6046283841133118, + "objective": 0.6046283841133118, + "error": 0.3349609375, + "gradient_norm": 0.05043461173772812, + "elapsed": 197.54880928993225 + }, + { + "step": 256, + "loss": 0.5926339626312256, + "objective": 0.5926339626312256, + "error": 0.3359375, + "gradient_norm": 0.051241543143987656, + "elapsed": 211.79861068725586 + }, + { + "step": 272, + "loss": 0.4018518924713135, + "objective": 0.4018518924713135, + "error": 0.1943359375, + "gradient_norm": 0.0772147998213768, + "elapsed": 222.41974115371704 + }, + { + "step": 288, + "loss": 0.13863243162631989, + "objective": 0.13863243162631989, + "error": 0.0556640625, + "gradient_norm": 0.03334609419107437, + "elapsed": 234.04247426986694 + }, + { + "step": 304, + "loss": 0.562490701675415, + "objective": 0.562490701675415, + "error": 0.337890625, + "gradient_norm": 0.04585934057831764, + "elapsed": 242.65421533584595 + }, + { + "step": 320, + "loss": 0.5352796316146851, + "objective": 0.5352796316146851, + "error": 0.294921875, + "gradient_norm": 0.0837635025382042, + "elapsed": 252.10656356811523 + }, + { + "step": 336, + "loss": 0.26082637906074524, + "objective": 0.26082637906074524, + "error": 0.1220703125, + "gradient_norm": 0.048336997628211975, + "elapsed": 262.33449625968933 + }, + { + "step": 352, + "loss": 0.5959363579750061, + "objective": 0.5959363579750061, + "error": 0.3388671875, + "gradient_norm": 0.06797357648611069, + "elapsed": 271.9942307472229 + }, + { + "step": 368, + "loss": 0.48994284868240356, + "objective": 0.48994284868240356, + "error": 0.2587890625, + "gradient_norm": 0.06296153366565704, + "elapsed": 283.0493588447571 + }, + { + "step": 384, + "loss": 0.5710494518280029, + "objective": 0.5710494518280029, + "error": 0.3134765625, + "gradient_norm": 0.045333269983530045, + "elapsed": 294.64637446403503 + }, + { + "step": 400, + "loss": 0.5957783460617065, + "objective": 0.5957783460617065, + "error": 0.349609375, + "gradient_norm": 0.03918786719441414, + "elapsed": 307.6200888156891 + }, + { + "step": 416, + "loss": 0.27521568536758423, + "objective": 0.27521568536758423, + "error": 0.1220703125, + "gradient_norm": 0.038001637905836105, + "elapsed": 317.01610231399536 + }, + { + "step": 432, + "loss": 0.02379823848605156, + "objective": 0.02379823848605156, + "error": 0.0078125, + "gradient_norm": 0.007661945186555386, + "elapsed": 326.9360330104828 + }, + { + "step": 448, + "loss": 0.56734299659729, + "objective": 0.56734299659729, + "error": 0.3271484375, + "gradient_norm": 0.057416290044784546, + "elapsed": 339.6289041042328 + }, + { + "step": 464, + "loss": 0.10715995728969574, + "objective": 0.10715995728969574, + "error": 0.0380859375, + "gradient_norm": 0.02532491274178028, + "elapsed": 349.8584108352661 + }, + { + "step": 480, + "loss": 0.6143364310264587, + "objective": 0.6143364310264587, + "error": 0.36328125, + "gradient_norm": 0.08023032546043396, + "elapsed": 360.36362075805664 + }, + { + "step": 496, + "loss": 0.44069671630859375, + "objective": 0.44069671630859375, + "error": 0.2197265625, + "gradient_norm": 0.048025116324424744, + "elapsed": 369.48225808143616 + }, + { + "step": 512, + "loss": 0.019900165498256683, + "objective": 0.019900165498256683, + "error": 0.0107421875, + "gradient_norm": 0.0038635791279375553, + "elapsed": 378.59970593452454 + }, + { + "step": 528, + "loss": 0.033316534012556076, + "objective": 0.033316534012556076, + "error": 0.009765625, + "gradient_norm": 0.009174940176308155, + "elapsed": 393.4021761417389 + }, + { + "step": 544, + "loss": 0.41130945086479187, + "objective": 0.41130945086479187, + "error": 0.20703125, + "gradient_norm": 0.04695262759923935, + "elapsed": 402.8586280345917 + }, + { + "step": 560, + "loss": 0.5885373950004578, + "objective": 0.5885373950004578, + "error": 0.3544921875, + "gradient_norm": 0.08534500002861023, + "elapsed": 416.98661041259766 + }, + { + "step": 576, + "loss": 0.3804720640182495, + "objective": 0.3804720640182495, + "error": 0.19140625, + "gradient_norm": 0.05163278803229332, + "elapsed": 427.7550480365753 + }, + { + "step": 592, + "loss": 0.6101120710372925, + "objective": 0.6101120710372925, + "error": 0.3525390625, + "gradient_norm": 0.05593184754252434, + "elapsed": 441.05026268959045 + }, + { + "step": 608, + "loss": 0.5586092472076416, + "objective": 0.5586092472076416, + "error": 0.302734375, + "gradient_norm": 0.07458740472793579, + "elapsed": 452.95383286476135 + }, + { + "step": 624, + "loss": 0.5992780923843384, + "objective": 0.5992780923843384, + "error": 0.357421875, + "gradient_norm": 0.03618372976779938, + "elapsed": 466.1582691669464 + }, + { + "step": 640, + "loss": 0.3536975383758545, + "objective": 0.3536975383758545, + "error": 0.1650390625, + "gradient_norm": 0.05353165790438652, + "elapsed": 477.166255235672 + }, + { + "step": 656, + "loss": 0.4926893711090088, + "objective": 0.4926893711090088, + "error": 0.2626953125, + "gradient_norm": 0.05201377719640732, + "elapsed": 491.1417751312256 + }, + { + "step": 672, + "loss": 0.5754991173744202, + "objective": 0.5754991173744202, + "error": 0.3271484375, + "gradient_norm": 0.08167096972465515, + "elapsed": 501.630366563797 + }, + { + "step": 688, + "loss": 0.5685014724731445, + "objective": 0.5685014724731445, + "error": 0.333984375, + "gradient_norm": 0.043775107711553574, + "elapsed": 514.2880456447601 + }, + { + "step": 704, + "loss": 0.022465089336037636, + "objective": 0.022465089336037636, + "error": 0.0068359375, + "gradient_norm": 0.010172540321946144, + "elapsed": 522.9173214435577 + }, + { + "step": 720, + "loss": 0.035460107028484344, + "objective": 0.035460107028484344, + "error": 0.0107421875, + "gradient_norm": 0.010515578091144562, + "elapsed": 532.8470129966736 + }, + { + "step": 736, + "loss": 0.44765588641166687, + "objective": 0.44765588641166687, + "error": 0.2138671875, + "gradient_norm": 0.09050357341766357, + "elapsed": 541.9488840103149 + }, + { + "step": 752, + "loss": 0.5933939218521118, + "objective": 0.5933939218521118, + "error": 0.3359375, + "gradient_norm": 0.0665116235613823, + "elapsed": 552.9967355728149 + }, + { + "step": 768, + "loss": 0.6100764870643616, + "objective": 0.6100764870643616, + "error": 0.3515625, + "gradient_norm": 0.0821211114525795, + "elapsed": 563.7709202766418 + }, + { + "step": 784, + "loss": 0.02964692935347557, + "objective": 0.02964692935347557, + "error": 0.009765625, + "gradient_norm": 0.012663272209465504, + "elapsed": 573.1517221927643 + }, + { + "step": 800, + "loss": 0.38091832399368286, + "objective": 0.38091832399368286, + "error": 0.1904296875, + "gradient_norm": 0.060622021555900574, + "elapsed": 582.5687477588654 + }, + { + "step": 816, + "loss": 0.552335262298584, + "objective": 0.552335262298584, + "error": 0.3076171875, + "gradient_norm": 0.14419035613536835, + "elapsed": 594.4292685985565 + }, + { + "step": 832, + "loss": 0.5943340063095093, + "objective": 0.5943340063095093, + "error": 0.34375, + "gradient_norm": 0.0633513554930687, + "elapsed": 605.2052299976349 + }, + { + "step": 848, + "loss": 0.6074100732803345, + "objective": 0.6074100732803345, + "error": 0.3486328125, + "gradient_norm": 0.04225531220436096, + "elapsed": 614.8996202945709 + }, + { + "step": 864, + "loss": 0.6198879480361938, + "objective": 0.6198879480361938, + "error": 0.361328125, + "gradient_norm": 0.04208856821060181, + "elapsed": 625.4266908168793 + }, + { + "step": 880, + "loss": 0.6151762008666992, + "objective": 0.6151762008666992, + "error": 0.369140625, + "gradient_norm": 0.06261089444160461, + "elapsed": 636.0696911811829 + }, + { + "step": 896, + "loss": 0.49680083990097046, + "objective": 0.49680083990097046, + "error": 0.25390625, + "gradient_norm": 0.0827067643404007, + "elapsed": 644.6893246173859 + }, + { + "step": 912, + "loss": 0.4610927402973175, + "objective": 0.4610927402973175, + "error": 0.23828125, + "gradient_norm": 0.06652095168828964, + "elapsed": 655.969132900238 + }, + { + "step": 928, + "loss": 0.5218505859375, + "objective": 0.5218505859375, + "error": 0.2685546875, + "gradient_norm": 0.07188194245100021, + "elapsed": 667.5352523326874 + }, + { + "step": 944, + "loss": 0.33009427785873413, + "objective": 0.33009427785873413, + "error": 0.1533203125, + "gradient_norm": 0.05718810483813286, + "elapsed": 677.8397319316864 + }, + { + "step": 960, + "loss": 0.5703234672546387, + "objective": 0.5703234672546387, + "error": 0.3193359375, + "gradient_norm": 0.11168288439512253, + "elapsed": 687.8742904663086 + }, + { + "step": 976, + "loss": 0.025548014789819717, + "objective": 0.025548014789819717, + "error": 0.0107421875, + "gradient_norm": 0.009453393518924713, + "elapsed": 698.294285774231 + }, + { + "step": 992, + "loss": 0.45398157835006714, + "objective": 0.45398157835006714, + "error": 0.2412109375, + "gradient_norm": 0.04607952758669853, + "elapsed": 707.903199672699 + }, + { + "step": 1008, + "loss": 0.3412189781665802, + "objective": 0.3412189781665802, + "error": 0.1513671875, + "gradient_norm": 0.0432075597345829, + "elapsed": 718.5662748813629 + }, + { + "step": 1024, + "loss": 0.4376429319381714, + "objective": 0.4376429319381714, + "error": 0.2275390625, + "gradient_norm": 0.07974351197481155, + "elapsed": 728.8954858779907 + }, + { + "step": 1040, + "loss": 0.33512815833091736, + "objective": 0.33512815833091736, + "error": 0.150390625, + "gradient_norm": 0.04476875811815262, + "elapsed": 744.0822694301605 + }, + { + "step": 1056, + "loss": 0.5214208364486694, + "objective": 0.5214208364486694, + "error": 0.283203125, + "gradient_norm": 0.08898192644119263, + "elapsed": 755.1484262943268 + }, + { + "step": 1072, + "loss": 0.13849599659442902, + "objective": 0.13849599659442902, + "error": 0.052734375, + "gradient_norm": 0.028359953314065933, + "elapsed": 764.3303108215332 + }, + { + "step": 1088, + "loss": 0.323838472366333, + "objective": 0.323838472366333, + "error": 0.1435546875, + "gradient_norm": 0.04081716760993004, + "elapsed": 773.2739362716675 + }, + { + "step": 1104, + "loss": 0.5627881288528442, + "objective": 0.5627881288528442, + "error": 0.3125, + "gradient_norm": 0.08322097361087799, + "elapsed": 784.7223973274231 + }, + { + "step": 1120, + "loss": 0.44111010432243347, + "objective": 0.44111010432243347, + "error": 0.2216796875, + "gradient_norm": 0.05700977146625519, + "elapsed": 795.085648059845 + }, + { + "step": 1136, + "loss": 0.6395992040634155, + "objective": 0.6395992040634155, + "error": 0.39453125, + "gradient_norm": 0.0744553729891777, + "elapsed": 805.7942585945129 + }, + { + "step": 1152, + "loss": 0.5433304309844971, + "objective": 0.5433304309844971, + "error": 0.287109375, + "gradient_norm": 0.04814797267317772, + "elapsed": 817.3382890224457 + }, + { + "step": 1168, + "loss": 0.5708576440811157, + "objective": 0.5708576440811157, + "error": 0.3203125, + "gradient_norm": 0.051331400871276855, + "elapsed": 829.288791179657 + }, + { + "step": 1184, + "loss": 0.5447035431861877, + "objective": 0.5447035431861877, + "error": 0.2939453125, + "gradient_norm": 0.10116687417030334, + "elapsed": 839.6822843551636 + }, + { + "step": 1200, + "loss": 0.6125671863555908, + "objective": 0.6125671863555908, + "error": 0.3642578125, + "gradient_norm": 0.04368080571293831, + "elapsed": 850.2262740135193 + }, + { + "step": 1216, + "loss": 0.5002380609512329, + "objective": 0.5002380609512329, + "error": 0.259765625, + "gradient_norm": 0.04939017817378044, + "elapsed": 862.3783452510834 + }, + { + "step": 1232, + "loss": 0.5698772668838501, + "objective": 0.5698772668838501, + "error": 0.3173828125, + "gradient_norm": 0.04916854575276375, + "elapsed": 871.4622664451599 + }, + { + "step": 1248, + "loss": 0.6046518683433533, + "objective": 0.6046518683433533, + "error": 0.341796875, + "gradient_norm": 0.04919794574379921, + "elapsed": 883.3905737400055 + }, + { + "step": 1264, + "loss": 0.5913128852844238, + "objective": 0.5913128852844238, + "error": 0.357421875, + "gradient_norm": 0.046917904168367386, + "elapsed": 892.4264807701111 + }, + { + "step": 1280, + "loss": 0.5027461051940918, + "objective": 0.5027461051940918, + "error": 0.2626953125, + "gradient_norm": 0.04705750197172165, + "elapsed": 902.5875842571259 + }, + { + "step": 1296, + "loss": 0.13519814610481262, + "objective": 0.13519814610481262, + "error": 0.052734375, + "gradient_norm": 0.02625490538775921, + "elapsed": 912.4087471961975 + }, + { + "step": 1312, + "loss": 0.5862359404563904, + "objective": 0.5862359404563904, + "error": 0.3271484375, + "gradient_norm": 0.05441493168473244, + "elapsed": 923.992555141449 + }, + { + "step": 1328, + "loss": 0.6031408309936523, + "objective": 0.6031408309936523, + "error": 0.3505859375, + "gradient_norm": 0.05901554971933365, + "elapsed": 933.3936491012573 + }, + { + "step": 1344, + "loss": 0.5823733806610107, + "objective": 0.5823733806610107, + "error": 0.3310546875, + "gradient_norm": 0.0842989832162857, + "elapsed": 941.979998588562 + }, + { + "step": 1360, + "loss": 0.6241492033004761, + "objective": 0.6241492033004761, + "error": 0.3720703125, + "gradient_norm": 0.04446673393249512, + "elapsed": 954.969649553299 + }, + { + "step": 1376, + "loss": 0.5829156637191772, + "objective": 0.5829156637191772, + "error": 0.361328125, + "gradient_norm": 0.06615480780601501, + "elapsed": 966.0245676040649 + }, + { + "step": 1392, + "loss": 0.5968320369720459, + "objective": 0.5968320369720459, + "error": 0.34765625, + "gradient_norm": 0.05093541368842125, + "elapsed": 975.1022663116455 + }, + { + "step": 1408, + "loss": 0.045559000223875046, + "objective": 0.045559000223875046, + "error": 0.01171875, + "gradient_norm": 0.02514980360865593, + "elapsed": 987.2391452789307 + }, + { + "step": 1424, + "loss": 0.22601813077926636, + "objective": 0.22601813077926636, + "error": 0.09765625, + "gradient_norm": 0.04834206402301788, + "elapsed": 996.4583384990692 + }, + { + "step": 1440, + "loss": 0.23011144995689392, + "objective": 0.23011144995689392, + "error": 0.111328125, + "gradient_norm": 0.050687842071056366, + "elapsed": 1007.1440904140472 + }, + { + "step": 1456, + "loss": 0.018240466713905334, + "objective": 0.018240466713905334, + "error": 0.0078125, + "gradient_norm": 0.005604141391813755, + "elapsed": 1016.4502851963043 + }, + { + "step": 1472, + "loss": 0.4498720169067383, + "objective": 0.4498720169067383, + "error": 0.232421875, + "gradient_norm": 0.08179625123739243, + "elapsed": 1028.8303294181824 + }, + { + "step": 1488, + "loss": 0.24151627719402313, + "objective": 0.24151627719402313, + "error": 0.107421875, + "gradient_norm": 0.03838668763637543, + "elapsed": 1037.8867321014404 + }, + { + "step": 1504, + "loss": 0.46122002601623535, + "objective": 0.46122002601623535, + "error": 0.232421875, + "gradient_norm": 0.0726623386144638, + "elapsed": 1047.7258644104004 + }, + { + "step": 1520, + "loss": 0.5085602402687073, + "objective": 0.5085602402687073, + "error": 0.2705078125, + "gradient_norm": 0.06673175096511841, + "elapsed": 1059.352120399475 + }, + { + "step": 1536, + "loss": 0.6105246543884277, + "objective": 0.6105246543884277, + "error": 0.3818359375, + "gradient_norm": 0.04271261766552925, + "elapsed": 1070.1413230895996 + }, + { + "step": 1552, + "loss": 0.4792126417160034, + "objective": 0.4792126417160034, + "error": 0.2578125, + "gradient_norm": 0.05200039595365524, + "elapsed": 1086.444006204605 + }, + { + "step": 1568, + "loss": 0.5814266204833984, + "objective": 0.5814266204833984, + "error": 0.330078125, + "gradient_norm": 0.05867309868335724, + "elapsed": 1097.2902619838715 + }, + { + "step": 1584, + "loss": 0.6321226358413696, + "objective": 0.6321226358413696, + "error": 0.3798828125, + "gradient_norm": 0.05418067052960396, + "elapsed": 1107.9767682552338 + }, + { + "step": 1600, + "loss": 0.5931253433227539, + "objective": 0.5931253433227539, + "error": 0.3603515625, + "gradient_norm": 0.06396215409040451, + "elapsed": 1121.782609462738 + }, + { + "step": 1616, + "loss": 0.6411516666412354, + "objective": 0.6411516666412354, + "error": 0.38671875, + "gradient_norm": 0.05035768821835518, + "elapsed": 1132.7197887897491 + }, + { + "step": 1632, + "loss": 0.4267754852771759, + "objective": 0.4267754852771759, + "error": 0.2080078125, + "gradient_norm": 0.09109894186258316, + "elapsed": 1139.1667578220367 + }, + { + "step": 1648, + "loss": 0.21246182918548584, + "objective": 0.21246182918548584, + "error": 0.095703125, + "gradient_norm": 0.04478950425982475, + "elapsed": 1149.1183021068573 + }, + { + "step": 1664, + "loss": 0.46360665559768677, + "objective": 0.46360665559768677, + "error": 0.251953125, + "gradient_norm": 0.07668188214302063, + "elapsed": 1161.1197745800018 + }, + { + "step": 1680, + "loss": 0.46281397342681885, + "objective": 0.46281397342681885, + "error": 0.236328125, + "gradient_norm": 0.07954126596450806, + "elapsed": 1171.8474535942078 + }, + { + "step": 1696, + "loss": 0.2484058141708374, + "objective": 0.2484058141708374, + "error": 0.12109375, + "gradient_norm": 0.047261305153369904, + "elapsed": 1185.6542596817017 + }, + { + "step": 1712, + "loss": 0.24310235679149628, + "objective": 0.24310235679149628, + "error": 0.1064453125, + "gradient_norm": 0.07262872904539108, + "elapsed": 1197.8986082077026 + }, + { + "step": 1728, + "loss": 0.009729458019137383, + "objective": 0.009729458019137383, + "error": 0.001953125, + "gradient_norm": 0.01146845705807209, + "elapsed": 1208.495581150055 + }, + { + "step": 1744, + "loss": 0.24568752944469452, + "objective": 0.24568752944469452, + "error": 0.10546875, + "gradient_norm": 0.05830742046236992, + "elapsed": 1219.9394850730896 + }, + { + "step": 1760, + "loss": 0.022546378895640373, + "objective": 0.022546378895640373, + "error": 0.0068359375, + "gradient_norm": 0.007667526602745056, + "elapsed": 1229.5703229904175 + }, + { + "step": 1776, + "loss": 0.5848401784896851, + "objective": 0.5848401784896851, + "error": 0.3271484375, + "gradient_norm": 0.061901818960905075, + "elapsed": 1238.750280380249 + }, + { + "step": 1792, + "loss": 0.6031335592269897, + "objective": 0.6031335592269897, + "error": 0.3671875, + "gradient_norm": 0.0676632970571518, + "elapsed": 1247.7468683719635 + }, + { + "step": 1808, + "loss": 0.6210961937904358, + "objective": 0.6210961937904358, + "error": 0.3603515625, + "gradient_norm": 0.0718468651175499, + "elapsed": 1256.1821897029877 + }, + { + "step": 1824, + "loss": 0.570877730846405, + "objective": 0.570877730846405, + "error": 0.3212890625, + "gradient_norm": 0.05575930327177048, + "elapsed": 1266.4091975688934 + }, + { + "step": 1840, + "loss": 0.5711429119110107, + "objective": 0.5711429119110107, + "error": 0.31640625, + "gradient_norm": 0.0691002607345581, + "elapsed": 1277.4722146987915 + }, + { + "step": 1856, + "loss": 0.36046335101127625, + "objective": 0.36046335101127625, + "error": 0.16796875, + "gradient_norm": 0.04694395884871483, + "elapsed": 1287.1420249938965 + }, + { + "step": 1872, + "loss": 0.4688999652862549, + "objective": 0.4688999652862549, + "error": 0.2216796875, + "gradient_norm": 0.07401346415281296, + "elapsed": 1297.3945078849792 + }, + { + "step": 1888, + "loss": 0.46385282278060913, + "objective": 0.46385282278060913, + "error": 0.2373046875, + "gradient_norm": 0.05608939751982689, + "elapsed": 1305.9779334068298 + }, + { + "step": 1904, + "loss": 0.60875403881073, + "objective": 0.60875403881073, + "error": 0.365234375, + "gradient_norm": 0.05085878074169159, + "elapsed": 1317.3097081184387 + }, + { + "step": 1920, + "loss": 0.12223530560731888, + "objective": 0.12223530560731888, + "error": 0.0458984375, + "gradient_norm": 0.024870412424206734, + "elapsed": 1328.6486887931824 + }, + { + "step": 1936, + "loss": 0.3486189544200897, + "objective": 0.3486189544200897, + "error": 0.16796875, + "gradient_norm": 0.04780663549900055, + "elapsed": 1336.6701011657715 + }, + { + "step": 1952, + "loss": 0.5777363777160645, + "objective": 0.5777363777160645, + "error": 0.3427734375, + "gradient_norm": 0.0571451336145401, + "elapsed": 1346.9158833026886 + }, + { + "step": 1968, + "loss": 0.39320266246795654, + "objective": 0.39320266246795654, + "error": 0.1884765625, + "gradient_norm": 0.05673858895897865, + "elapsed": 1354.9182631969452 + }, + { + "step": 1984, + "loss": 0.5900611281394958, + "objective": 0.5900611281394958, + "error": 0.3349609375, + "gradient_norm": 0.06593932211399078, + "elapsed": 1364.2754452228546 + }, + { + "step": 2000, + "loss": 0.6212430000305176, + "objective": 0.6212430000305176, + "error": 0.3857421875, + "gradient_norm": 0.040818918496370316, + "elapsed": 1374.7192046642303 + }, + { + "step": 2016, + "loss": 0.15605247020721436, + "objective": 0.15605247020721436, + "error": 0.0556640625, + "gradient_norm": 0.03108786791563034, + "elapsed": 1386.2740807533264 + }, + { + "step": 2032, + "loss": 0.22049596905708313, + "objective": 0.22049596905708313, + "error": 0.1015625, + "gradient_norm": 0.042733557522296906, + "elapsed": 1396.6422457695007 + }, + { + "step": 2048, + "loss": 0.5642613172531128, + "objective": 0.5642613172531128, + "error": 0.306640625, + "gradient_norm": 0.07527482509613037, + "elapsed": 1407.6688070297241 + } + ] + }, + "derived_checkpoints": { + "mean3": { + "checkpoint_label": "mean3", + "kind": "uniform_parameter_average", + "optimizer_updates_in_derived_run": 0, + "source_run": "full3_1", + "source_optimizer_steps": [ + 1024, + 1536, + 2048 + ], + "source_weights_sha256": { + "1024": "22adf2425bbfb872e814227799b725f78618bccf68410935470e6c37d159a6b7", + "1536": "fb250c19cf7bb00741b6d862b8f646a2c8ab88397bb03c7bafc9085f9347eca5", + "2048": "b93c1367dfeb0e32b2add76b1abeb3f12d4d9f8145d0f13d8d5b17ca882ba3b5" + }, + "source_checkpoint_records": { + "1024": { + "step": 1024, + "training_samples": 1048576, + "unique_training_rows_seen_in_this_phase": 446179, + "weights_sha256": "22adf2425bbfb872e814227799b725f78618bccf68410935470e6c37d159a6b7", + "complete": true + }, + "1536": { + "step": 1536, + "training_samples": 1572864, + "unique_training_rows_seen_in_this_phase": 490266, + "weights_sha256": "fb250c19cf7bb00741b6d862b8f646a2c8ab88397bb03c7bafc9085f9347eca5", + "complete": true + }, + "2048": { + "step": 2048, + "training_samples": 2097152, + "unique_training_rows_seen_in_this_phase": 507282, + "weights_sha256": "b93c1367dfeb0e32b2add76b1abeb3f12d4d9f8145d0f13d8d5b17ca882ba3b5", + "complete": true + } + }, + "weights_sha256": "ce5951e7095a9912dc74719254f2fcf9654f219078392b7acf7a8545e6f9f3f4", + "complete": true + }, + "mean4": { + "checkpoint_label": "mean4", + "kind": "uniform_parameter_average", + "optimizer_updates_in_derived_run": 0, + "source_run": "full3_1", + "source_optimizer_steps": [ + 512, + 1024, + 1536, + 2048 + ], + "source_weights_sha256": { + "512": "d4194b40470453e5df9b75e12326cbbd0e6845946870bb0d53a2cbbdd6ea32dc", + "1024": "22adf2425bbfb872e814227799b725f78618bccf68410935470e6c37d159a6b7", + "1536": "fb250c19cf7bb00741b6d862b8f646a2c8ab88397bb03c7bafc9085f9347eca5", + "2048": "b93c1367dfeb0e32b2add76b1abeb3f12d4d9f8145d0f13d8d5b17ca882ba3b5" + }, + "source_checkpoint_records": { + "512": { + "step": 512, + "training_samples": 524288, + "unique_training_rows_seen_in_this_phase": 324661, + "weights_sha256": "d4194b40470453e5df9b75e12326cbbd0e6845946870bb0d53a2cbbdd6ea32dc", + "complete": true + }, + "1024": { + "step": 1024, + "training_samples": 1048576, + "unique_training_rows_seen_in_this_phase": 446179, + "weights_sha256": "22adf2425bbfb872e814227799b725f78618bccf68410935470e6c37d159a6b7", + "complete": true + }, + "1536": { + "step": 1536, + "training_samples": 1572864, + "unique_training_rows_seen_in_this_phase": 490266, + "weights_sha256": "fb250c19cf7bb00741b6d862b8f646a2c8ab88397bb03c7bafc9085f9347eca5", + "complete": true + }, + "2048": { + "step": 2048, + "training_samples": 2097152, + "unique_training_rows_seen_in_this_phase": 507282, + "weights_sha256": "b93c1367dfeb0e32b2add76b1abeb3f12d4d9f8145d0f13d8d5b17ca882ba3b5", + "complete": true + } + }, + "weights_sha256": "ff5a023ce2c18be7c29f810a3788a450e3ad3ad2237d6e9448923aa6a28c5074", + "complete": true + } + }, + "selection": "Predefined averages of the last3 or all4 saved noninitial full3_1 checkpoints; evaluate every validation condition before selecting", + "test_data_used": false, + "derivation_source_sha256": "08c498d6952b0380e001371df9a0461a483631a301f93747b821e529e72b349d" + }, + "training_source_snapshot": "training_sources/full3_swa", + "selection": "Minimum full-validation condition-mean failure per basis group over incumbent, listed neural checkpoints and equal probability averages with the recorded physical decoder.", + "physical_prediction_reference": "/run-state/workspace/research/context_upgrades/turbo1/predictions", + "prior_pass": 3, + "history": [ + { + "group": "d5_bX_center_5_5", + "candidates": { + "incumbent": 0.23290264423076928, + "mean3": 0.2335186298076923, + "blend-mean3": 0.2325420673076923, + "mean4": 0.23326322115384618, + "blend-mean4": 0.23300781250000002 + }, + "selected": "blend-mean3" + }, + { + "group": "d5_bZ_center_5_5", + "candidates": { + "incumbent": 0.22017728365384615, + "mean3": 0.22037259615384613, + "blend-mean3": 0.22091346153846153, + "mean4": 0.2205528846153846, + "blend-mean4": 0.22100360576923078 + }, + "selected": "incumbent" + } + ], + "checkpoints": { + "mean3": { + "checkpoint_label": "mean3", + "kind": "uniform_parameter_average", + "optimizer_updates_in_derived_run": 0, + "source_run": "full3_1", + "source_optimizer_steps": [ + 1024, + 1536, + 2048 + ], + "source_weights_sha256": { + "1024": "22adf2425bbfb872e814227799b725f78618bccf68410935470e6c37d159a6b7", + "1536": "fb250c19cf7bb00741b6d862b8f646a2c8ab88397bb03c7bafc9085f9347eca5", + "2048": "b93c1367dfeb0e32b2add76b1abeb3f12d4d9f8145d0f13d8d5b17ca882ba3b5" + }, + "source_checkpoint_records": { + "1024": { + "step": 1024, + "training_samples": 1048576, + "unique_training_rows_seen_in_this_phase": 446179, + "weights_sha256": "22adf2425bbfb872e814227799b725f78618bccf68410935470e6c37d159a6b7", + "complete": true + }, + "1536": { + "step": 1536, + "training_samples": 1572864, + "unique_training_rows_seen_in_this_phase": 490266, + "weights_sha256": "fb250c19cf7bb00741b6d862b8f646a2c8ab88397bb03c7bafc9085f9347eca5", + "complete": true + }, + "2048": { + "step": 2048, + "training_samples": 2097152, + "unique_training_rows_seen_in_this_phase": 507282, + "weights_sha256": "b93c1367dfeb0e32b2add76b1abeb3f12d4d9f8145d0f13d8d5b17ca882ba3b5", + "complete": true + } + }, + "weights_sha256": "ce5951e7095a9912dc74719254f2fcf9654f219078392b7acf7a8545e6f9f3f4", + "complete": true + } + }, + "runtime": "Share physical priors when the conditioning pass and regime agree; otherwise recompute the neural prior independently. Last-only physical branches omit logical tracking in intermediate passes when intermediate probabilities are unused.", + "last_only_equivalence_controls": [ + { + "condition": "surface_code_bX_d5_r03_center_5_5", + "maximum_probability_difference": 7.450580596923828e-07 + }, + { + "condition": "surface_code_bZ_d5_r03_center_5_5", + "maximum_probability_difference": 5.960464477539063e-08 + }, + { + "condition": "surface_code_bX_d5_r25_center_5_5", + "maximum_probability_difference": 5.960464477539063e-08 + }, + { + "condition": "surface_code_bZ_d5_r25_center_5_5", + "maximum_probability_difference": 1.7881393432617188e-07 + } + ], + "test_data_used": false + }, + { + "training": { + "initialization": "Continue from the recorded session-trained checkpoint; original random initialization seed 20261134", + "prior_pass": 3, + "initial_seed": 20261134, + "training_source_sha256": { + "learned_d5__train.py": "1f66b75e34e385a6d2654021f3fd124c9d8a359da1f677369e3e774728f83168", + "learned_d5__data.py": "9e3bcfe9d45f6af60b86a580cdc9374043758a1a6f10564aef9eb344f7a6b364", + "learned_d5__model.py": "3b2d4b34a8945ddfe82d76e28b4aa917f11933ed885c0cdcd2bc389448a871fb", + "learned_exact__gradient.py": "ecb6b45698480386fa124fe878db7dbfa246d1969fd720ec26daff9547da2001", + "learned_exact__checkpoint_gradient.py": "7ece6b3f45e009727fd104a3d39e2816a8c3437f737c3d98131d3a5d7d60e9b8", + "exact_d3__exact.py": "869dfacb295c419c156d1070fc2afdd6e20d02ac1840e45e72346b2b289f4825" + }, + "runtime_versions": { + "jax": "0.7.2", + "numpy": "2.3.3", + "optax": "0.2.6" + }, + "hidden_width": 64, + "input_features": 394, + "feature_mode": "local events, reconstructed measurements, shot densities, physical edge support and conditioned prior", + "architecture": "Two 64-unit SiLU layers; 394 features; bounded 2*tanh correction to relevant-CSS edge logits from the recorded physical feedback pass; exact width-14 contraction predicts logical probability. D5 joint conditioning remains approximate.", + "training": "All supplied training shots per each of all26 d5 conditions; uniform condition and within-condition sampling for optimizer batches.", + "training_cache": "/run-state/workspace/research/learned_d5/full_training_priors3", + "training_cache_provenance": { + "method": "Three undamped physical CSS extrinsic-message passes, clipping8, pass1/pass3 priors captured before logical readout", + "scope": "All supplied training rows in all26 d5 conditions; no validation or test labels used in cache generation", + "reused_rows": "4096 rows per condition from feedback5_cache, sampled with seed20261023; same first three passes", + "remaining_rows": "Computed now with last-only logical tracking; previously controlled against full logical tracking", + "train_manifest_sha256": "ce46c21e3595cfc5885bbe2b6481105317d2e6267498ec4572601469825914b8", + "records": [ + { + "condition": "surface_code_bX_d5_r25_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 44.93641114234924, + "elapsed": 45.15474009513855, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r25_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 43.11551070213318, + "elapsed": 88.52458453178406, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r23_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 39.70699763298035, + "elapsed": 128.4802794456482, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r23_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 41.178571701049805, + "elapsed": 169.95510387420654, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r21_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 41.53053879737854, + "elapsed": 211.7576286792755, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r21_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 43.43117809295654, + "elapsed": 255.62733364105225, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r19_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 33.84876799583435, + "elapsed": 289.70106053352356, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r19_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 32.88018870353699, + "elapsed": 322.7981607913971, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r17_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 29.585307836532593, + "elapsed": 352.58776783943176, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r17_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 29.854028463363647, + "elapsed": 382.6393291950226, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r15_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 26.721288919448853, + "elapsed": 409.54919600486755, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r15_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 29.810269832611084, + "elapsed": 439.6440734863281, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r13_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 29.79407238960266, + "elapsed": 469.7887041568756, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r13_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 28.757604837417603, + "elapsed": 498.71140813827515, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r11_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 25.38013219833374, + "elapsed": 524.2447266578674, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r11_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 25.378958225250244, + "elapsed": 549.8600506782532, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r09_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 21.241567850112915, + "elapsed": 571.2600774765015, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r09_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 18.780335664749146, + "elapsed": 590.304051399231, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r07_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 14.346807956695557, + "elapsed": 604.8041462898254, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r07_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 14.03441047668457, + "elapsed": 618.9537570476532, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r05_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 10.811666488647461, + "elapsed": 629.8610434532166, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r05_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 10.982703924179077, + "elapsed": 640.9919559955597, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r03_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 7.846271991729736, + "elapsed": 648.9624857902527, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r03_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 7.83586859703064, + "elapsed": 656.9065537452698, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r01_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 0.7685718536376953, + "elapsed": 657.7747800350189, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r01_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 0.748960018157959, + "elapsed": 658.5666444301605, + "peak_gpu_bytes": 58661028096 + } + ], + "test_data_used": false + }, + "training_shots": 516880, + "training_pool_interpretation": "Eligible training rows; optimizer samples conditions and rows with replacement. Distinct rows used in this phase are recorded separately.", + "unique_training_rows_seen_in_this_phase": 491030, + "unique_rows_by_condition": { + "surface_code_bX_d5_r01_center_5_5": 18670, + "surface_code_bX_d5_r03_center_5_5": 18940, + "surface_code_bX_d5_r05_center_5_5": 19128, + "surface_code_bX_d5_r07_center_5_5": 18988, + "surface_code_bX_d5_r09_center_5_5": 18523, + "surface_code_bX_d5_r11_center_5_5": 19227, + "surface_code_bX_d5_r13_center_5_5": 18816, + "surface_code_bX_d5_r15_center_5_5": 18107, + "surface_code_bX_d5_r17_center_5_5": 18728, + "surface_code_bX_d5_r19_center_5_5": 18983, + "surface_code_bX_d5_r21_center_5_5": 18959, + "surface_code_bX_d5_r23_center_5_5": 19079, + "surface_code_bX_d5_r25_center_5_5": 19193, + "surface_code_bZ_d5_r01_center_5_5": 18828, + "surface_code_bZ_d5_r03_center_5_5": 18896, + "surface_code_bZ_d5_r05_center_5_5": 19011, + "surface_code_bZ_d5_r07_center_5_5": 18806, + "surface_code_bZ_d5_r09_center_5_5": 18268, + "surface_code_bZ_d5_r11_center_5_5": 18927, + "surface_code_bZ_d5_r13_center_5_5": 19399, + "surface_code_bZ_d5_r15_center_5_5": 19358, + "surface_code_bZ_d5_r17_center_5_5": 18634, + "surface_code_bZ_d5_r19_center_5_5": 19126, + "surface_code_bZ_d5_r21_center_5_5": 18603, + "surface_code_bZ_d5_r23_center_5_5": 18626, + "surface_code_bZ_d5_r25_center_5_5": 19207 + }, + "gradient_block_size": 32, + "bucket_operations": true, + "accumulate_conditions": 1, + "effective_batch_size": 1024, + "uncertainty_weight_floor": 1.0, + "example_weighting": "Uniform BCE", + "loss": "Conditional logical binary cross entropy, differentiated through exact relevant-CSS contraction; physical CSS feedback prior held fixed", + "steps": 1536, + "batch": 1024, + "learning_rate": 0.0005, + "sampling_seed": 20261135, + "optimizer": "AdamW, weight decay 1e-4, global gradient norm clip 1", + "optimizer_restored": true, + "rng_restored": true, + "explicit_optimizer_reset": false, + "explicit_rng_reset": false, + "sampling_state_source": "/run-state/workspace/research/learned_d5/fresh2_warm/rng-512.json", + "starting_checkpoint": "/run-state/workspace/research/learned_d5/fresh2_warm/weights-512.npz", + "starting_checkpoint_sha256": "d3e3abba07693bd7fd3d17be2dd981d5b803a496e76ba230ed94afeb51f26f4f", + "starting_training_provenance": { + "initialization": "All parameters initialized in this session: variance-scaled normal hidden layers, Normal(0,.001) output weights, zero biases, seed 20261134", + "prior_pass": 3, + "initial_seed": 20261134, + "training_source_sha256": { + "learned_d5__train.py": "1f66b75e34e385a6d2654021f3fd124c9d8a359da1f677369e3e774728f83168", + "learned_d5__data.py": "9e3bcfe9d45f6af60b86a580cdc9374043758a1a6f10564aef9eb344f7a6b364", + "learned_d5__model.py": "3b2d4b34a8945ddfe82d76e28b4aa917f11933ed885c0cdcd2bc389448a871fb", + "learned_exact__gradient.py": "ecb6b45698480386fa124fe878db7dbfa246d1969fd720ec26daff9547da2001", + "learned_exact__checkpoint_gradient.py": "7ece6b3f45e009727fd104a3d39e2816a8c3437f737c3d98131d3a5d7d60e9b8", + "exact_d3__exact.py": "869dfacb295c419c156d1070fc2afdd6e20d02ac1840e45e72346b2b289f4825" + }, + "runtime_versions": { + "jax": "0.7.2", + "numpy": "2.3.3", + "optax": "0.2.6" + }, + "hidden_width": 64, + "input_features": 394, + "feature_mode": "local events, reconstructed measurements, shot densities, physical edge support and conditioned prior", + "architecture": "Two 64-unit SiLU layers; 394 features; bounded 2*tanh correction to relevant-CSS edge logits from the recorded physical feedback pass; exact width-14 contraction predicts logical probability. D5 joint conditioning remains approximate.", + "training": "All supplied training shots per each of all26 d5 conditions; uniform condition and within-condition sampling for optimizer batches.", + "training_cache": "/run-state/workspace/research/learned_d5/full_training_priors3", + "training_cache_provenance": { + "method": "Three undamped physical CSS extrinsic-message passes, clipping8, pass1/pass3 priors captured before logical readout", + "scope": "All supplied training rows in all26 d5 conditions; no validation or test labels used in cache generation", + "reused_rows": "4096 rows per condition from feedback5_cache, sampled with seed20261023; same first three passes", + "remaining_rows": "Computed now with last-only logical tracking; previously controlled against full logical tracking", + "train_manifest_sha256": "ce46c21e3595cfc5885bbe2b6481105317d2e6267498ec4572601469825914b8", + "records": [ + { + "condition": "surface_code_bX_d5_r25_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 44.93641114234924, + "elapsed": 45.15474009513855, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r25_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 43.11551070213318, + "elapsed": 88.52458453178406, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r23_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 39.70699763298035, + "elapsed": 128.4802794456482, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r23_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 41.178571701049805, + "elapsed": 169.95510387420654, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r21_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 41.53053879737854, + "elapsed": 211.7576286792755, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r21_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 43.43117809295654, + "elapsed": 255.62733364105225, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r19_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 33.84876799583435, + "elapsed": 289.70106053352356, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r19_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 32.88018870353699, + "elapsed": 322.7981607913971, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r17_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 29.585307836532593, + "elapsed": 352.58776783943176, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r17_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 29.854028463363647, + "elapsed": 382.6393291950226, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r15_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 26.721288919448853, + "elapsed": 409.54919600486755, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r15_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 29.810269832611084, + "elapsed": 439.6440734863281, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r13_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 29.79407238960266, + "elapsed": 469.7887041568756, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r13_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 28.757604837417603, + "elapsed": 498.71140813827515, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r11_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 25.38013219833374, + "elapsed": 524.2447266578674, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r11_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 25.378958225250244, + "elapsed": 549.8600506782532, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r09_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 21.241567850112915, + "elapsed": 571.2600774765015, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r09_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 18.780335664749146, + "elapsed": 590.304051399231, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r07_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 14.346807956695557, + "elapsed": 604.8041462898254, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r07_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 14.03441047668457, + "elapsed": 618.9537570476532, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r05_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 10.811666488647461, + "elapsed": 629.8610434532166, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r05_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 10.982703924179077, + "elapsed": 640.9919559955597, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r03_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 7.846271991729736, + "elapsed": 648.9624857902527, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r03_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 7.83586859703064, + "elapsed": 656.9065537452698, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r01_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 0.7685718536376953, + "elapsed": 657.7747800350189, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r01_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 0.748960018157959, + "elapsed": 658.5666444301605, + "peak_gpu_bytes": 58661028096 + } + ], + "test_data_used": false + }, + "training_shots": 516880, + "training_pool_interpretation": "Eligible training rows; optimizer samples conditions and rows with replacement. Distinct rows used in this phase are recorded separately.", + "unique_training_rows_seen_in_this_phase": 325678, + "unique_rows_by_condition": { + "surface_code_bX_d5_r01_center_5_5": 11962, + "surface_code_bX_d5_r03_center_5_5": 10232, + "surface_code_bX_d5_r05_center_5_5": 14014, + "surface_code_bX_d5_r07_center_5_5": 11594, + "surface_code_bX_d5_r09_center_5_5": 12805, + "surface_code_bX_d5_r11_center_5_5": 11644, + "surface_code_bX_d5_r13_center_5_5": 13845, + "surface_code_bX_d5_r15_center_5_5": 10703, + "surface_code_bX_d5_r17_center_5_5": 15460, + "surface_code_bX_d5_r19_center_5_5": 14156, + "surface_code_bX_d5_r21_center_5_5": 11568, + "surface_code_bX_d5_r23_center_5_5": 14156, + "surface_code_bX_d5_r25_center_5_5": 12021, + "surface_code_bZ_d5_r01_center_5_5": 10601, + "surface_code_bZ_d5_r03_center_5_5": 14135, + "surface_code_bZ_d5_r05_center_5_5": 11975, + "surface_code_bZ_d5_r07_center_5_5": 13841, + "surface_code_bZ_d5_r09_center_5_5": 12024, + "surface_code_bZ_d5_r11_center_5_5": 11151, + "surface_code_bZ_d5_r13_center_5_5": 10640, + "surface_code_bZ_d5_r15_center_5_5": 11089, + "surface_code_bZ_d5_r17_center_5_5": 13788, + "surface_code_bZ_d5_r19_center_5_5": 12350, + "surface_code_bZ_d5_r21_center_5_5": 12797, + "surface_code_bZ_d5_r23_center_5_5": 12809, + "surface_code_bZ_d5_r25_center_5_5": 14318 + }, + "gradient_block_size": 32, + "bucket_operations": true, + "accumulate_conditions": 1, + "effective_batch_size": 1024, + "uncertainty_weight_floor": 1.0, + "example_weighting": "Uniform BCE", + "loss": "Conditional logical binary cross entropy, differentiated through exact relevant-CSS contraction; physical CSS feedback prior held fixed", + "steps": 512, + "batch": 1024, + "learning_rate": 0.001, + "sampling_seed": 20261135, + "optimizer": "AdamW, weight decay 1e-4, global gradient norm clip 1", + "optimizer_restored": false, + "rng_restored": false, + "explicit_optimizer_reset": false, + "explicit_rng_reset": false, + "sampling_state_source": "Fresh NumPy default_rng seed 20261135", + "starting_checkpoint": null, + "starting_checkpoint_sha256": null, + "starting_training_provenance": null, + "validation": "Uniform subset per all 26 conditions, sample seed 20261102; full validation required before publication", + "validation_shots_per_condition": 1024, + "test_data_used": false, + "records": [ + { + "step": 1, + "loss": 0.6522030830383301, + "objective": 0.6522030830383301, + "error": 0.375, + "gradient_norm": 0.11649785190820694, + "elapsed": 30.089841604232788 + }, + { + "step": 16, + "loss": 0.5927819609642029, + "objective": 0.5927819609642029, + "error": 0.3466796875, + "gradient_norm": 0.07945127785205841, + "elapsed": 48.85365080833435 + }, + { + "step": 32, + "loss": 0.3115929663181305, + "objective": 0.3115929663181305, + "error": 0.13671875, + "gradient_norm": 0.039320655167102814, + "elapsed": 63.60312819480896 + }, + { + "step": 48, + "loss": 0.2456369698047638, + "objective": 0.2456369698047638, + "error": 0.1015625, + "gradient_norm": 0.029398636892437935, + "elapsed": 73.71074151992798 + }, + { + "step": 64, + "loss": 0.6231744885444641, + "objective": 0.6231744885444641, + "error": 0.3759765625, + "gradient_norm": 0.06867238879203796, + "elapsed": 83.75580954551697 + }, + { + "step": 80, + "loss": 0.3674217164516449, + "objective": 0.3674217164516449, + "error": 0.1572265625, + "gradient_norm": 0.0557992123067379, + "elapsed": 94.6383364200592 + }, + { + "step": 96, + "loss": 0.5152362585067749, + "objective": 0.5152362585067749, + "error": 0.2568359375, + "gradient_norm": 0.08284599334001541, + "elapsed": 106.90000939369202 + }, + { + "step": 112, + "loss": 0.020773420110344887, + "objective": 0.020773420110344887, + "error": 0.0048828125, + "gradient_norm": 0.008813572116196156, + "elapsed": 117.77558088302612 + }, + { + "step": 128, + "loss": 0.02593131735920906, + "objective": 0.02593131735920906, + "error": 0.0087890625, + "gradient_norm": 0.00872033555060625, + "elapsed": 128.93439435958862 + }, + { + "step": 144, + "loss": 0.5852900743484497, + "objective": 0.5852900743484497, + "error": 0.3291015625, + "gradient_norm": 0.04771002382040024, + "elapsed": 139.5588686466217 + }, + { + "step": 160, + "loss": 0.46074625849723816, + "objective": 0.46074625849723816, + "error": 0.232421875, + "gradient_norm": 0.08834747970104218, + "elapsed": 151.5595977306366 + }, + { + "step": 176, + "loss": 0.6310865879058838, + "objective": 0.6310865879058838, + "error": 0.376953125, + "gradient_norm": 0.14084596931934357, + "elapsed": 163.7892107963562 + }, + { + "step": 192, + "loss": 0.246865376830101, + "objective": 0.246865376830101, + "error": 0.1103515625, + "gradient_norm": 0.041402049362659454, + "elapsed": 174.28971648216248 + }, + { + "step": 208, + "loss": 0.3103577196598053, + "objective": 0.3103577196598053, + "error": 0.15625, + "gradient_norm": 0.04525696486234665, + "elapsed": 187.03909611701965 + }, + { + "step": 224, + "loss": 0.4523138999938965, + "objective": 0.4523138999938965, + "error": 0.208984375, + "gradient_norm": 0.09180521965026855, + "elapsed": 199.56195068359375 + }, + { + "step": 240, + "loss": 0.02241751179099083, + "objective": 0.02241751179099083, + "error": 0.009765625, + "gradient_norm": 0.009998111054301262, + "elapsed": 212.35500597953796 + }, + { + "step": 256, + "loss": 0.5487150549888611, + "objective": 0.5487150549888611, + "error": 0.294921875, + "gradient_norm": 0.12748055160045624, + "elapsed": 223.03854608535767 + }, + { + "step": 272, + "loss": 0.023057367652654648, + "objective": 0.023057367652654648, + "error": 0.0078125, + "gradient_norm": 0.006953821517527103, + "elapsed": 244.6508972644806 + }, + { + "step": 288, + "loss": 0.5845386981964111, + "objective": 0.5845386981964111, + "error": 0.330078125, + "gradient_norm": 0.06542652100324631, + "elapsed": 256.78167748451233 + }, + { + "step": 304, + "loss": 0.442532479763031, + "objective": 0.442532479763031, + "error": 0.232421875, + "gradient_norm": 0.10874580591917038, + "elapsed": 269.1364529132843 + }, + { + "step": 320, + "loss": 0.3264174163341522, + "objective": 0.3264174163341522, + "error": 0.15625, + "gradient_norm": 0.06276191771030426, + "elapsed": 282.38969564437866 + }, + { + "step": 336, + "loss": 0.386960506439209, + "objective": 0.386960506439209, + "error": 0.177734375, + "gradient_norm": 0.06561421602964401, + "elapsed": 292.9079031944275 + }, + { + "step": 352, + "loss": 0.23919886350631714, + "objective": 0.23919886350631714, + "error": 0.107421875, + "gradient_norm": 0.02755703590810299, + "elapsed": 304.16068935394287 + }, + { + "step": 368, + "loss": 0.5029175281524658, + "objective": 0.5029175281524658, + "error": 0.259765625, + "gradient_norm": 0.0378776490688324, + "elapsed": 315.11088514328003 + }, + { + "step": 384, + "loss": 0.565666675567627, + "objective": 0.565666675567627, + "error": 0.322265625, + "gradient_norm": 0.11368246376514435, + "elapsed": 324.3651068210602 + }, + { + "step": 400, + "loss": 0.5846428275108337, + "objective": 0.5846428275108337, + "error": 0.3408203125, + "gradient_norm": 0.08116643130779266, + "elapsed": 334.70786476135254 + }, + { + "step": 416, + "loss": 0.025111017748713493, + "objective": 0.025111017748713493, + "error": 0.0078125, + "gradient_norm": 0.008838560432195663, + "elapsed": 345.56963562965393 + }, + { + "step": 432, + "loss": 0.628488302230835, + "objective": 0.628488302230835, + "error": 0.3818359375, + "gradient_norm": 0.04001976177096367, + "elapsed": 355.3310384750366 + }, + { + "step": 448, + "loss": 0.4569575786590576, + "objective": 0.4569575786590576, + "error": 0.2578125, + "gradient_norm": 0.06344135850667953, + "elapsed": 367.05255675315857 + }, + { + "step": 464, + "loss": 0.49193111062049866, + "objective": 0.49193111062049866, + "error": 0.24609375, + "gradient_norm": 0.06022385507822037, + "elapsed": 377.38399291038513 + }, + { + "step": 480, + "loss": 0.5920064449310303, + "objective": 0.5920064449310303, + "error": 0.3466796875, + "gradient_norm": 0.036063045263290405, + "elapsed": 387.7266733646393 + }, + { + "step": 496, + "loss": 0.22157302498817444, + "objective": 0.22157302498817444, + "error": 0.09375, + "gradient_norm": 0.04071022942662239, + "elapsed": 397.78643012046814 + }, + { + "step": 512, + "loss": 0.39216887950897217, + "objective": 0.39216887950897217, + "error": 0.1728515625, + "gradient_norm": 0.09079446643590927, + "elapsed": 407.0137679576874 + } + ] + }, + "validation": "Uniform subset per all 26 conditions, sample seed 20261102; full validation required before publication", + "validation_shots_per_condition": 1024, + "test_data_used": false, + "records": [ + { + "step": 1, + "loss": 0.6092928647994995, + "objective": 0.6092928647994995, + "error": 0.3583984375, + "gradient_norm": 0.08161187171936035, + "elapsed": 27.421262741088867 + }, + { + "step": 16, + "loss": 0.4709879755973816, + "objective": 0.4709879755973816, + "error": 0.2529296875, + "gradient_norm": 0.0541619211435318, + "elapsed": 48.74575757980347 + }, + { + "step": 32, + "loss": 0.5842419862747192, + "objective": 0.5842419862747192, + "error": 0.34375, + "gradient_norm": 0.09450904279947281, + "elapsed": 60.68022179603577 + }, + { + "step": 48, + "loss": 0.5840846300125122, + "objective": 0.5840846300125122, + "error": 0.32421875, + "gradient_norm": 0.04569687321782112, + "elapsed": 74.63272476196289 + }, + { + "step": 64, + "loss": 0.5139708518981934, + "objective": 0.5139708518981934, + "error": 0.2646484375, + "gradient_norm": 0.16111725568771362, + "elapsed": 91.88426613807678 + }, + { + "step": 80, + "loss": 0.49099838733673096, + "objective": 0.49099838733673096, + "error": 0.251953125, + "gradient_norm": 0.04431874305009842, + "elapsed": 105.08457684516907 + }, + { + "step": 96, + "loss": 0.30287861824035645, + "objective": 0.30287861824035645, + "error": 0.14453125, + "gradient_norm": 0.03792181238532066, + "elapsed": 118.16054177284241 + }, + { + "step": 112, + "loss": 0.6026535630226135, + "objective": 0.6026535630226135, + "error": 0.359375, + "gradient_norm": 0.043088704347610474, + "elapsed": 134.6414511203766 + }, + { + "step": 128, + "loss": 0.5983598828315735, + "objective": 0.5983598828315735, + "error": 0.328125, + "gradient_norm": 0.06492504477500916, + "elapsed": 148.38875198364258 + }, + { + "step": 144, + "loss": 0.616276204586029, + "objective": 0.616276204586029, + "error": 0.3857421875, + "gradient_norm": 0.05420554056763649, + "elapsed": 164.11315298080444 + }, + { + "step": 160, + "loss": 0.017882924526929855, + "objective": 0.017882924526929855, + "error": 0.0048828125, + "gradient_norm": 0.004682278726249933, + "elapsed": 178.31525373458862 + }, + { + "step": 176, + "loss": 0.5279660820960999, + "objective": 0.5279660820960999, + "error": 0.271484375, + "gradient_norm": 0.03895021602511406, + "elapsed": 192.20261907577515 + }, + { + "step": 192, + "loss": 0.5794406533241272, + "objective": 0.5794406533241272, + "error": 0.34375, + "gradient_norm": 0.041880734264850616, + "elapsed": 200.32051873207092 + }, + { + "step": 208, + "loss": 0.3353561758995056, + "objective": 0.3353561758995056, + "error": 0.1513671875, + "gradient_norm": 0.07022152841091156, + "elapsed": 212.5193521976471 + }, + { + "step": 224, + "loss": 0.47239983081817627, + "objective": 0.47239983081817627, + "error": 0.23828125, + "gradient_norm": 0.044771477580070496, + "elapsed": 223.36571788787842 + }, + { + "step": 240, + "loss": 0.6235381364822388, + "objective": 0.6235381364822388, + "error": 0.3779296875, + "gradient_norm": 0.047636937350034714, + "elapsed": 233.90032649040222 + }, + { + "step": 256, + "loss": 0.516319751739502, + "objective": 0.516319751739502, + "error": 0.271484375, + "gradient_norm": 0.087476447224617, + "elapsed": 245.52193427085876 + }, + { + "step": 272, + "loss": 0.23385891318321228, + "objective": 0.23385891318321228, + "error": 0.091796875, + "gradient_norm": 0.05921977758407593, + "elapsed": 254.38622951507568 + }, + { + "step": 288, + "loss": 0.31280556321144104, + "objective": 0.31280556321144104, + "error": 0.1318359375, + "gradient_norm": 0.03548427298665047, + "elapsed": 263.25871300697327 + }, + { + "step": 304, + "loss": 0.6208417415618896, + "objective": 0.6208417415618896, + "error": 0.361328125, + "gradient_norm": 0.10255666077136993, + "elapsed": 273.5115919113159 + }, + { + "step": 320, + "loss": 0.5985375642776489, + "objective": 0.5985375642776489, + "error": 0.3603515625, + "gradient_norm": 0.04024764895439148, + "elapsed": 285.4135670661926 + }, + { + "step": 336, + "loss": 0.028151696547865868, + "objective": 0.028151696547865868, + "error": 0.009765625, + "gradient_norm": 0.008847440592944622, + "elapsed": 295.0800693035126 + }, + { + "step": 352, + "loss": 0.6147637963294983, + "objective": 0.6147637963294983, + "error": 0.3603515625, + "gradient_norm": 0.05709920823574066, + "elapsed": 305.32019686698914 + }, + { + "step": 368, + "loss": 0.5955979824066162, + "objective": 0.5955979824066162, + "error": 0.3486328125, + "gradient_norm": 0.04276399686932564, + "elapsed": 316.3869025707245 + }, + { + "step": 384, + "loss": 0.23504304885864258, + "objective": 0.23504304885864258, + "error": 0.1025390625, + "gradient_norm": 0.03205326199531555, + "elapsed": 325.7849349975586 + }, + { + "step": 400, + "loss": 0.13460804522037506, + "objective": 0.13460804522037506, + "error": 0.0546875, + "gradient_norm": 0.03109711967408657, + "elapsed": 335.72691917419434 + }, + { + "step": 416, + "loss": 0.5798783302307129, + "objective": 0.5798783302307129, + "error": 0.322265625, + "gradient_norm": 0.053542010486125946, + "elapsed": 345.7052640914917 + }, + { + "step": 432, + "loss": 0.3892784118652344, + "objective": 0.3892784118652344, + "error": 0.19140625, + "gradient_norm": 0.052194178104400635, + "elapsed": 357.38475036621094 + }, + { + "step": 448, + "loss": 0.23582103848457336, + "objective": 0.23582103848457336, + "error": 0.1181640625, + "gradient_norm": 0.032037943601608276, + "elapsed": 369.5841510295868 + }, + { + "step": 464, + "loss": 0.5408849716186523, + "objective": 0.5408849716186523, + "error": 0.2900390625, + "gradient_norm": 0.07508285343647003, + "elapsed": 379.84099793434143 + }, + { + "step": 480, + "loss": 0.3894873559474945, + "objective": 0.3894873559474945, + "error": 0.19140625, + "gradient_norm": 0.03977999836206436, + "elapsed": 390.9687530994415 + }, + { + "step": 496, + "loss": 0.6059300899505615, + "objective": 0.6059300899505615, + "error": 0.361328125, + "gradient_norm": 0.06041429564356804, + "elapsed": 403.2380111217499 + }, + { + "step": 512, + "loss": 0.2117740511894226, + "objective": 0.2117740511894226, + "error": 0.0908203125, + "gradient_norm": 0.05693414434790611, + "elapsed": 414.4854781627655 + }, + { + "step": 528, + "loss": 0.4666211009025574, + "objective": 0.4666211009025574, + "error": 0.2470703125, + "gradient_norm": 0.0764947235584259, + "elapsed": 433.42368054389954 + }, + { + "step": 544, + "loss": 0.22636458277702332, + "objective": 0.22636458277702332, + "error": 0.1083984375, + "gradient_norm": 0.03683016076683998, + "elapsed": 442.92575907707214 + }, + { + "step": 560, + "loss": 0.23172692954540253, + "objective": 0.23172692954540253, + "error": 0.1083984375, + "gradient_norm": 0.034071482717990875, + "elapsed": 453.3129711151123 + }, + { + "step": 576, + "loss": 0.4768703579902649, + "objective": 0.4768703579902649, + "error": 0.2529296875, + "gradient_norm": 0.06308378279209137, + "elapsed": 462.4127457141876 + }, + { + "step": 592, + "loss": 0.5165150165557861, + "objective": 0.5165150165557861, + "error": 0.291015625, + "gradient_norm": 0.07674732059240341, + "elapsed": 473.8309862613678 + }, + { + "step": 608, + "loss": 0.5919064283370972, + "objective": 0.5919064283370972, + "error": 0.3359375, + "gradient_norm": 0.06379934400320053, + "elapsed": 484.3733870983124 + }, + { + "step": 624, + "loss": 0.01804366335272789, + "objective": 0.01804366335272789, + "error": 0.0068359375, + "gradient_norm": 0.005318541545420885, + "elapsed": 495.94076347351074 + }, + { + "step": 640, + "loss": 0.41747498512268066, + "objective": 0.41747498512268066, + "error": 0.1962890625, + "gradient_norm": 0.052116431295871735, + "elapsed": 506.73559165000916 + }, + { + "step": 656, + "loss": 0.6140056848526001, + "objective": 0.6140056848526001, + "error": 0.3896484375, + "gradient_norm": 0.05376415699720383, + "elapsed": 517.2397899627686 + }, + { + "step": 672, + "loss": 0.4098930358886719, + "objective": 0.4098930358886719, + "error": 0.197265625, + "gradient_norm": 0.04737741872668266, + "elapsed": 525.7957897186279 + }, + { + "step": 688, + "loss": 0.3499884009361267, + "objective": 0.3499884009361267, + "error": 0.1650390625, + "gradient_norm": 0.0714973583817482, + "elapsed": 534.9302124977112 + }, + { + "step": 704, + "loss": 0.552291989326477, + "objective": 0.552291989326477, + "error": 0.3095703125, + "gradient_norm": 0.10188189148902893, + "elapsed": 545.4470670223236 + }, + { + "step": 720, + "loss": 0.4040689468383789, + "objective": 0.4040689468383789, + "error": 0.1943359375, + "gradient_norm": 0.06630362570285797, + "elapsed": 554.2920794487 + }, + { + "step": 736, + "loss": 0.3191133439540863, + "objective": 0.3191133439540863, + "error": 0.15625, + "gradient_norm": 0.060587506741285324, + "elapsed": 562.335791349411 + }, + { + "step": 752, + "loss": 0.5949387550354004, + "objective": 0.5949387550354004, + "error": 0.330078125, + "gradient_norm": 0.051291145384311676, + "elapsed": 570.9363489151001 + }, + { + "step": 768, + "loss": 0.4783790409564972, + "objective": 0.4783790409564972, + "error": 0.244140625, + "gradient_norm": 0.08808670938014984, + "elapsed": 581.1555306911469 + }, + { + "step": 784, + "loss": 0.4414710998535156, + "objective": 0.4414710998535156, + "error": 0.20703125, + "gradient_norm": 0.06632383912801743, + "elapsed": 590.4109175205231 + }, + { + "step": 800, + "loss": 0.2536136507987976, + "objective": 0.2536136507987976, + "error": 0.1142578125, + "gradient_norm": 0.03191893920302391, + "elapsed": 601.43274974823 + }, + { + "step": 816, + "loss": 0.22448071837425232, + "objective": 0.22448071837425232, + "error": 0.1015625, + "gradient_norm": 0.04966023191809654, + "elapsed": 612.7252013683319 + }, + { + "step": 832, + "loss": 0.5342355966567993, + "objective": 0.5342355966567993, + "error": 0.2783203125, + "gradient_norm": 0.05757307633757591, + "elapsed": 623.6647284030914 + }, + { + "step": 848, + "loss": 0.2506354749202728, + "objective": 0.2506354749202728, + "error": 0.109375, + "gradient_norm": 0.03991081938147545, + "elapsed": 635.1636409759521 + }, + { + "step": 864, + "loss": 0.40698009729385376, + "objective": 0.40698009729385376, + "error": 0.1953125, + "gradient_norm": 0.09155476838350296, + "elapsed": 645.2128469944 + }, + { + "step": 880, + "loss": 0.563283383846283, + "objective": 0.563283383846283, + "error": 0.3134765625, + "gradient_norm": 0.11409252882003784, + "elapsed": 659.2946681976318 + }, + { + "step": 896, + "loss": 0.13591040670871735, + "objective": 0.13591040670871735, + "error": 0.064453125, + "gradient_norm": 0.02692740224301815, + "elapsed": 668.6167254447937 + }, + { + "step": 912, + "loss": 0.5798318982124329, + "objective": 0.5798318982124329, + "error": 0.3310546875, + "gradient_norm": 0.06674209237098694, + "elapsed": 680.6492185592651 + }, + { + "step": 928, + "loss": 0.6140691041946411, + "objective": 0.6140691041946411, + "error": 0.3857421875, + "gradient_norm": 0.06117575615644455, + "elapsed": 693.1704411506653 + }, + { + "step": 944, + "loss": 0.3964633643627167, + "objective": 0.3964633643627167, + "error": 0.1865234375, + "gradient_norm": 0.08617512136697769, + "elapsed": 708.2128443717957 + }, + { + "step": 960, + "loss": 0.5512299537658691, + "objective": 0.5512299537658691, + "error": 0.2861328125, + "gradient_norm": 0.05705108866095543, + "elapsed": 720.2417063713074 + }, + { + "step": 976, + "loss": 0.454137921333313, + "objective": 0.454137921333313, + "error": 0.216796875, + "gradient_norm": 0.07962293922901154, + "elapsed": 730.2567391395569 + }, + { + "step": 992, + "loss": 0.5681213140487671, + "objective": 0.5681213140487671, + "error": 0.3017578125, + "gradient_norm": 0.09802286326885223, + "elapsed": 742.7380962371826 + }, + { + "step": 1008, + "loss": 0.13060352206230164, + "objective": 0.13060352206230164, + "error": 0.0537109375, + "gradient_norm": 0.04271279275417328, + "elapsed": 750.8077793121338 + }, + { + "step": 1024, + "loss": 0.6129879355430603, + "objective": 0.6129879355430603, + "error": 0.3603515625, + "gradient_norm": 0.04127912223339081, + "elapsed": 761.0585849285126 + }, + { + "step": 1040, + "loss": 0.31361687183380127, + "objective": 0.31361687183380127, + "error": 0.1455078125, + "gradient_norm": 0.04341907799243927, + "elapsed": 776.3491418361664 + }, + { + "step": 1056, + "loss": 0.6326502561569214, + "objective": 0.6326502561569214, + "error": 0.365234375, + "gradient_norm": 0.07518075406551361, + "elapsed": 786.0424168109894 + }, + { + "step": 1072, + "loss": 0.537599503993988, + "objective": 0.537599503993988, + "error": 0.2958984375, + "gradient_norm": 0.08455493301153183, + "elapsed": 795.1607735157013 + }, + { + "step": 1088, + "loss": 0.5953108072280884, + "objective": 0.5953108072280884, + "error": 0.337890625, + "gradient_norm": 0.06973882764577866, + "elapsed": 804.0053510665894 + }, + { + "step": 1104, + "loss": 0.36860400438308716, + "objective": 0.36860400438308716, + "error": 0.1923828125, + "gradient_norm": 0.04828036576509476, + "elapsed": 813.4029138088226 + }, + { + "step": 1120, + "loss": 0.5423247218132019, + "objective": 0.5423247218132019, + "error": 0.28125, + "gradient_norm": 0.04841453209519386, + "elapsed": 823.626978635788 + }, + { + "step": 1136, + "loss": 0.4766136407852173, + "objective": 0.4766136407852173, + "error": 0.236328125, + "gradient_norm": 0.07564551383256912, + "elapsed": 832.4641265869141 + }, + { + "step": 1152, + "loss": 0.5473434925079346, + "objective": 0.5473434925079346, + "error": 0.2958984375, + "gradient_norm": 0.13677075505256653, + "elapsed": 844.9307618141174 + }, + { + "step": 1168, + "loss": 0.3040686249732971, + "objective": 0.3040686249732971, + "error": 0.150390625, + "gradient_norm": 0.045926257967948914, + "elapsed": 854.336992263794 + }, + { + "step": 1184, + "loss": 0.6298375129699707, + "objective": 0.6298375129699707, + "error": 0.3798828125, + "gradient_norm": 0.06807851791381836, + "elapsed": 864.5731596946716 + }, + { + "step": 1200, + "loss": 0.6272540092468262, + "objective": 0.6272540092468262, + "error": 0.37890625, + "gradient_norm": 0.139838308095932, + "elapsed": 877.8357374668121 + }, + { + "step": 1216, + "loss": 0.5224937200546265, + "objective": 0.5224937200546265, + "error": 0.287109375, + "gradient_norm": 0.0647057592868805, + "elapsed": 887.8107197284698 + }, + { + "step": 1232, + "loss": 0.02408422902226448, + "objective": 0.02408422902226448, + "error": 0.0107421875, + "gradient_norm": 0.007562167476862669, + "elapsed": 902.201171875 + }, + { + "step": 1248, + "loss": 0.01936865597963333, + "objective": 0.01936865597963333, + "error": 0.0048828125, + "gradient_norm": 0.006423021201044321, + "elapsed": 914.0247437953949 + }, + { + "step": 1264, + "loss": 0.47522181272506714, + "objective": 0.47522181272506714, + "error": 0.2490234375, + "gradient_norm": 0.04962826892733574, + "elapsed": 927.0462884902954 + }, + { + "step": 1280, + "loss": 0.019577551633119583, + "objective": 0.019577551633119583, + "error": 0.0068359375, + "gradient_norm": 0.008308992721140385, + "elapsed": 939.3647270202637 + }, + { + "step": 1296, + "loss": 0.5085430145263672, + "objective": 0.5085430145263672, + "error": 0.2734375, + "gradient_norm": 0.06214233115315437, + "elapsed": 949.4259700775146 + }, + { + "step": 1312, + "loss": 0.23232896625995636, + "objective": 0.23232896625995636, + "error": 0.1015625, + "gradient_norm": 0.05894213914871216, + "elapsed": 961.3636543750763 + }, + { + "step": 1328, + "loss": 0.5330536365509033, + "objective": 0.5330536365509033, + "error": 0.2861328125, + "gradient_norm": 0.11579663306474686, + "elapsed": 972.1607241630554 + }, + { + "step": 1344, + "loss": 0.019525721669197083, + "objective": 0.019525721669197083, + "error": 0.0087890625, + "gradient_norm": 0.008134250529110432, + "elapsed": 983.0828921794891 + }, + { + "step": 1360, + "loss": 0.22790294885635376, + "objective": 0.22790294885635376, + "error": 0.103515625, + "gradient_norm": 0.04187086224555969, + "elapsed": 991.3167304992676 + }, + { + "step": 1376, + "loss": 0.48713046312332153, + "objective": 0.48713046312332153, + "error": 0.2666015625, + "gradient_norm": 0.06267429888248444, + "elapsed": 1003.5033710002899 + }, + { + "step": 1392, + "loss": 0.6043434143066406, + "objective": 0.6043434143066406, + "error": 0.369140625, + "gradient_norm": 0.037880122661590576, + "elapsed": 1017.8567223548889 + }, + { + "step": 1408, + "loss": 0.034499723464250565, + "objective": 0.034499723464250565, + "error": 0.0068359375, + "gradient_norm": 0.013505477458238602, + "elapsed": 1027.3547134399414 + }, + { + "step": 1424, + "loss": 0.5320160388946533, + "objective": 0.5320160388946533, + "error": 0.306640625, + "gradient_norm": 0.07510018348693848, + "elapsed": 1036.9454221725464 + }, + { + "step": 1440, + "loss": 0.3451523780822754, + "objective": 0.3451523780822754, + "error": 0.171875, + "gradient_norm": 0.06453985720872879, + "elapsed": 1046.1805095672607 + }, + { + "step": 1456, + "loss": 0.21541815996170044, + "objective": 0.21541815996170044, + "error": 0.08984375, + "gradient_norm": 0.043503839522600174, + "elapsed": 1055.850379705429 + }, + { + "step": 1472, + "loss": 0.43667086958885193, + "objective": 0.43667086958885193, + "error": 0.22265625, + "gradient_norm": 0.07311506569385529, + "elapsed": 1066.6324400901794 + }, + { + "step": 1488, + "loss": 0.6163139939308167, + "objective": 0.6163139939308167, + "error": 0.3779296875, + "gradient_norm": 0.06406569480895996, + "elapsed": 1075.7883398532867 + }, + { + "step": 1504, + "loss": 0.23901250958442688, + "objective": 0.23901250958442688, + "error": 0.10546875, + "gradient_norm": 0.04792191833257675, + "elapsed": 1085.4756922721863 + }, + { + "step": 1520, + "loss": 0.3817014694213867, + "objective": 0.3817014694213867, + "error": 0.18359375, + "gradient_norm": 0.046061187982559204, + "elapsed": 1095.974383354187 + }, + { + "step": 1536, + "loss": 0.5593156814575195, + "objective": 0.5593156814575195, + "error": 0.3017578125, + "gradient_norm": 0.0735388696193695, + "elapsed": 1105.913155078888 + } + ] + }, + "training_source_snapshot": "training_sources/fresh2_full", + "selection": "Minimum full-validation condition-mean failure per basis group over incumbent, listed neural checkpoints and equal probability averages with the recorded physical decoder.", + "physical_prediction_reference": "/run-state/workspace/research/context_upgrades/turbo1/predictions", + "prior_pass": 3, + "history": [ + { + "group": "d5_bX_center_5_5", + "candidates": { + "incumbent": 0.2325420673076923, + "0": 0.23359374999999996, + "blend-0": 0.23372896634615387, + "512": 0.23342848557692306, + "blend-512": 0.23329326923076926, + "1024": 0.23315805288461536, + "blend-1024": 0.23309795673076922, + "1536": 0.2326923076923077, + "blend-1536": 0.23278245192307695 + }, + "selected": "incumbent" + }, + { + "group": "d5_bZ_center_5_5", + "candidates": { + "incumbent": 0.22017728365384615, + "0": 0.22125901442307688, + "blend-0": 0.22125901442307694, + "512": 0.22080829326923082, + "blend-512": 0.2211838942307692, + "1024": 0.22052283653846153, + "blend-1024": 0.22031249999999997, + "1536": 0.21953124999999998, + "blend-1536": 0.21998197115384616 + }, + "selected": "1536" + } + ], + "checkpoints": { + "1536": { + "step": 1536, + "training_samples": 1572864, + "unique_training_rows_seen_in_this_phase": 491030, + "weights_sha256": "20746e71c276e720074318b0978e6ea0ddc0df206954834f13c7f36354933cea", + "complete": true + } + }, + "runtime": "Share physical priors when the conditioning pass and regime agree; otherwise recompute the neural prior independently. Last-only physical branches omit unused intermediate logical tracking; raw neural branches also omit the unused final physical readout.", + "last_only_equivalence_controls": [ + { + "condition": "surface_code_bX_d5_r03_center_5_5", + "maximum_probability_difference": 7.450580596923828e-07 + }, + { + "condition": "surface_code_bZ_d5_r03_center_5_5", + "maximum_probability_difference": 5.960464477539063e-08 + }, + { + "condition": "surface_code_bX_d5_r25_center_5_5", + "maximum_probability_difference": 5.960464477539063e-08 + }, + { + "condition": "surface_code_bZ_d5_r25_center_5_5", + "maximum_probability_difference": 1.7881393432617188e-07 + } + ], + "test_data_used": false, + "numerical_controls": { + "packaged_runtime_control_cpu": { + "device": "cpu", + "condition": "surface_code_bX_d5_r03_center_5_5", + "shots": 7, + "same_cpu_old_vs_new_maximum_difference": 0.0, + "old_cpu_vs_original_gpu_evaluation_maximum_difference": 4.971027374267578e-05, + "new_cpu_vs_original_gpu_evaluation_maximum_difference": 4.971027374267578e-05, + "cpu_vs_reconstructed_old_gpu_runtime_maximum_difference": 4.976987838745117e-05, + "original_gpu_evaluation_vs_reconstructed_gpu_runtime_maximum_difference": 7.748603820800781e-07, + "initial_failed_control": { + "comparison": "CPU runtime against original GPU evaluator", + "observed_maximum_difference": 4.971027374267578e-05, + "original_tolerance": 3e-06 + }, + "sources": { + "d5_base_context_model.py": "3b2d4b34a8945ddfe82d76e28b4aa917f11933ed885c0cdcd2bc389448a871fb", + "d5_context_model.py": "d58bcfe01767228d18ce2078d555abf13037b5df63edf38273ba66f0966ee445", + "d5_contextual.py": "59d6c85dc4bd61e26cf7243baf0e2637c3de1d35327b2c763707badd19446550", + "turbo.py": "c07dce8d7098142f5cd550d594b948290287a8cb2221f70acaeff3965c3dac0b" + }, + "scope": "Same-device compatibility check. Reconstructed GPU runtime removes the recorded equal physical blend; that reconstruction has floating-point rounding uncertainty.", + "status": "passed_same_device_compatibility" + }, + "cpu_probability_precision": { + "condition": "surface_code_bX_d5_r03_center_5_5", + "validation_syndromes": 7, + "logical_labels_used": false, + "parameter_updates": 0, + "reference": "Float64 neural forward and exact contraction from the same stored weights and fixed float32 input logits, on CPU", + "cpu_float32_vs_float64_maximum_difference": 7.624897924163321e-08, + "cpu_float32_edges_float64_contraction_vs_float64_maximum_difference": 4.725248914372315e-08, + "gpu_float32_vs_float64_maximum_difference": 4.964999121059854e-05, + "cpu_vs_gpu_float32_maximum_difference": 4.971027374267578e-05, + "maximum_neural_edge_probability_difference": 2.6330936014895556e-08, + "float32_edge_values_above_one_minus_1e6": 0, + "scope": "Precision diagnostic only; the published model is unchanged. Same-device old/new packaged-code compatibility was independently exact." + }, + "priors_only_control_cpu": { + "status": "passed", + "device": "cpu", + "source_sha256": "c07dce8d7098142f5cd550d594b948290287a8cb2221f70acaeff3965c3dac0b", + "records": [ + { + "condition": "surface_code_bX_d5_r03_center_5_5", + "shots": 3, + "priors_bitwise_identical": true, + "normal_seconds_including_compilation": 2.7116777896881104, + "priors_only_seconds_warm": 0.13569164276123047 + }, + { + "condition": "surface_code_bZ_d5_r25_center_5_5", + "shots": 3, + "priors_bitwise_identical": true, + "normal_seconds_including_compilation": 3.557781457901001, + "priors_only_seconds_warm": 1.7711329460144043 + } + ], + "scope": "CPU numerical equivalence on supplied training syndromes; timings are not a controlled speed comparison." + } + } + }, + { + "training": { + "initialization": "Continue from the recorded session-trained checkpoint; original random initialization seed 20261271", + "prior_pass": 3, + "initial_seed": 20261271, + "training_source_sha256": { + "learned_d5__reserved_train.py": "f1789039eb1500b30f716864237b9c564887ccb615f117fb9fb1a0ff15f54ff0", + "learned_d5__reserved_split.py": "69f3d3741a9625b1d70490f45202f101b6cd61b6bf332977559ec14307597456", + "learned_d5__data.py": "9e3bcfe9d45f6af60b86a580cdc9374043758a1a6f10564aef9eb344f7a6b364", + "learned_d5__model.py": "3b2d4b34a8945ddfe82d76e28b4aa917f11933ed885c0cdcd2bc389448a871fb", + "learned_exact__gradient.py": "ecb6b45698480386fa124fe878db7dbfa246d1969fd720ec26daff9547da2001", + "learned_exact__checkpoint_gradient.py": "7ece6b3f45e009727fd104a3d39e2816a8c3437f737c3d98131d3a5d7d60e9b8", + "exact_d3__exact.py": "869dfacb295c419c156d1070fc2afdd6e20d02ac1840e45e72346b2b289f4825" + }, + "runtime_versions": { + "jax": "0.7.2", + "numpy": "2.3.3", + "optax": "0.2.6" + }, + "hidden_width": 64, + "input_features": 394, + "feature_mode": "local events, reconstructed measurements, shot densities, physical edge support and conditioned prior", + "architecture": "Two 64-unit SiLU layers; 394 features; bounded 2*tanh correction to relevant-CSS edge logits from the recorded physical feedback pass; exact width-14 contraction predicts logical probability. D5 joint conditioning remains approximate.", + "training": "Only the18856 declared fit rows per each of26 d5 conditions; both512-row gate and512-row audit partitions excluded from every optimizer update. Uniform condition/within-condition sampling.", + "reserved_training_partition": { + "manifest": "/run-state/workspace/research/learned_d5/reserved_split1/manifest.json", + "manifest_sha256": "241221ce16d1d4fc634bdfef691aa2a40d888f6cb75e981485c570905056257b", + "selected_part": "fit", + "details": { + "schema": "qecbench-training-reserved-split/v1", + "seed": 20261270, + "train_manifest_sha256": "ce46c21e3595cfc5885bbe2b6481105317d2e6267498ec4572601469825914b8", + "source_sha256": "69f3d3741a9625b1d70490f45202f101b6cd61b6bf332977559ec14307597456", + "conditions": [ + { + "condition": "surface_code_bX_d5_r01_center_5_5", + "file": "surface_code_bX_d5_r01_center_5_5.npz", + "sha256": "c72d5c5ee3daf1b128e0c226f2815009daf6127e8b028004e86cebd6047ac474", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r03_center_5_5", + "file": "surface_code_bX_d5_r03_center_5_5.npz", + "sha256": "3a59636161c80fbbf326cf1919817ce5f60ec9e6d3e4b6223579cb6a36e12e31", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r05_center_5_5", + "file": "surface_code_bX_d5_r05_center_5_5.npz", + "sha256": "e808936ef0cb32869e0944ab70a3026ef96d0f31fe0fe9967c6d87a15b85abb5", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r07_center_5_5", + "file": "surface_code_bX_d5_r07_center_5_5.npz", + "sha256": "cd0f71459448a41af10e4399637d02e8d8193dea16ab300f839cb56ad8b08203", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r09_center_5_5", + "file": "surface_code_bX_d5_r09_center_5_5.npz", + "sha256": "56648e2b93499736d40f6aa5e9e8a568f150cbc8589929578f57c1e839c92d76", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r11_center_5_5", + "file": "surface_code_bX_d5_r11_center_5_5.npz", + "sha256": "ce2dcc2bfcb57bbfcb2291105a9a011a2a3113ad92348dfa7c76076f1fb3cacf", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r13_center_5_5", + "file": "surface_code_bX_d5_r13_center_5_5.npz", + "sha256": "968b14d4d948474afd0e182d9c60cd577297d4b7bb331e916058e41692d7c9d2", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r15_center_5_5", + "file": "surface_code_bX_d5_r15_center_5_5.npz", + "sha256": "8d73808a777d81c2acc2f6aab924cc11690a94136bc666fbf11f78292a47615d", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r17_center_5_5", + "file": "surface_code_bX_d5_r17_center_5_5.npz", + "sha256": "0ab49c9dc61605d43f0c03427352af0ee230ecf7360927f75de60519d707c7ee", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r19_center_5_5", + "file": "surface_code_bX_d5_r19_center_5_5.npz", + "sha256": "27594cc6e0943860d828ebde2c76fdde64ccf2a357f896d551f3d4606e74fec4", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r21_center_5_5", + "file": "surface_code_bX_d5_r21_center_5_5.npz", + "sha256": "1b1fdcf280ca7c8ba94476f9c54b6ab70eee59b63b3be406a534014132295b7e", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r23_center_5_5", + "file": "surface_code_bX_d5_r23_center_5_5.npz", + "sha256": "d31e0ca2ce6a6d04ed7bbd80113aec8cca40526b643752d8f429ece168736759", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r25_center_5_5", + "file": "surface_code_bX_d5_r25_center_5_5.npz", + "sha256": "f45a5978d77b1ef450f2ffd9fa19413c9d647448a3d61dfafd7590671dcace19", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r01_center_5_5", + "file": "surface_code_bZ_d5_r01_center_5_5.npz", + "sha256": "647e82ac0721a7245b3deb831a5a73eb555a3cb3e58b460774ffb96dc99c3b64", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r03_center_5_5", + "file": "surface_code_bZ_d5_r03_center_5_5.npz", + "sha256": "b64be8c7883b921bd57d5eefcc53656c2dad484833e5533e499b19b45be90158", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r05_center_5_5", + "file": "surface_code_bZ_d5_r05_center_5_5.npz", + "sha256": "63361e091640a4d506fc372bd0764ad248f6551d77cdf57550405b2624ca97b1", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r07_center_5_5", + "file": "surface_code_bZ_d5_r07_center_5_5.npz", + "sha256": "c50d26a58c1fb6b5a20f5737b94c3bac9182fe703bafa221532b8b012064f655", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r09_center_5_5", + "file": "surface_code_bZ_d5_r09_center_5_5.npz", + "sha256": "d62ecb975d63f13664bc6b02d30499a3fb10f0c22f1068b28bbbc31d1ec91fcc", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r11_center_5_5", + "file": "surface_code_bZ_d5_r11_center_5_5.npz", + "sha256": "724c7dc2c4cf2b551abf4f75e230f5aa04a74eebba79c25c845f14d15863de5e", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r13_center_5_5", + "file": "surface_code_bZ_d5_r13_center_5_5.npz", + "sha256": "0e618a998fb591a85dd365eead741a91b6560ed1a3987046286a67a2c754fa83", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r15_center_5_5", + "file": "surface_code_bZ_d5_r15_center_5_5.npz", + "sha256": "e1f8c6f812dc98c48402b69a08b09b520d1374e9f2e51b3e681b67bf306e17be", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r17_center_5_5", + "file": "surface_code_bZ_d5_r17_center_5_5.npz", + "sha256": "aa23a51a79677a8ac43cc31b72fe07e73c827f935c632c29b09924fc88242d0d", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r19_center_5_5", + "file": "surface_code_bZ_d5_r19_center_5_5.npz", + "sha256": "8420b79a8d7324f41dfd1cccacfd1fae9b27b370f40c60059e9de187864dba2b", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r21_center_5_5", + "file": "surface_code_bZ_d5_r21_center_5_5.npz", + "sha256": "088b92610c90dc1a180b2eca8b16e8f225d191ec7fc11355c85e6959f35e7073", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r23_center_5_5", + "file": "surface_code_bZ_d5_r23_center_5_5.npz", + "sha256": "b1484c581cbd5439c74befabbd7c1c12e7cb38db099c793dfb3cf748df20fc3b", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r25_center_5_5", + "file": "surface_code_bZ_d5_r25_center_5_5.npz", + "sha256": "92f552059b6c197b53ff1030d9ba0fe03cf22ea1f116e5280be944ad60f04be3", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + } + ], + "counts": { + "fit": 490256, + "gate": 13312, + "audit": 13312 + }, + "split_features": "Only array lengths and seeded random permutations; IDs verify alignment and are never model features", + "gate_use": "Fit a small combiner on gate labels only after experts exclude both reserved parts", + "audit_use": "Diagnostic only; no parameter fitting, checkpoint selection, or hyperparameter selection", + "validation_use": "Supplied validation selects checkpoints and candidates; no validation labels fit parameters", + "test_data_used": false + } + }, + "training_cache": "/run-state/workspace/research/learned_d5/full_training_priors3", + "training_cache_provenance": { + "method": "Three undamped physical CSS extrinsic-message passes, clipping8, pass1/pass3 priors captured before logical readout", + "scope": "All supplied training rows in all26 d5 conditions; no validation or test labels used in cache generation", + "reused_rows": "4096 rows per condition from feedback5_cache, sampled with seed20261023; same first three passes", + "remaining_rows": "Computed now with last-only logical tracking; previously controlled against full logical tracking", + "train_manifest_sha256": "ce46c21e3595cfc5885bbe2b6481105317d2e6267498ec4572601469825914b8", + "records": [ + { + "condition": "surface_code_bX_d5_r25_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 44.93641114234924, + "elapsed": 45.15474009513855, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r25_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 43.11551070213318, + "elapsed": 88.52458453178406, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r23_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 39.70699763298035, + "elapsed": 128.4802794456482, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r23_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 41.178571701049805, + "elapsed": 169.95510387420654, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r21_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 41.53053879737854, + "elapsed": 211.7576286792755, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r21_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 43.43117809295654, + "elapsed": 255.62733364105225, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r19_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 33.84876799583435, + "elapsed": 289.70106053352356, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r19_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 32.88018870353699, + "elapsed": 322.7981607913971, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r17_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 29.585307836532593, + "elapsed": 352.58776783943176, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r17_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 29.854028463363647, + "elapsed": 382.6393291950226, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r15_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 26.721288919448853, + "elapsed": 409.54919600486755, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r15_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 29.810269832611084, + "elapsed": 439.6440734863281, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r13_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 29.79407238960266, + "elapsed": 469.7887041568756, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r13_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 28.757604837417603, + "elapsed": 498.71140813827515, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r11_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 25.38013219833374, + "elapsed": 524.2447266578674, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r11_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 25.378958225250244, + "elapsed": 549.8600506782532, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r09_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 21.241567850112915, + "elapsed": 571.2600774765015, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r09_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 18.780335664749146, + "elapsed": 590.304051399231, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r07_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 14.346807956695557, + "elapsed": 604.8041462898254, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r07_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 14.03441047668457, + "elapsed": 618.9537570476532, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r05_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 10.811666488647461, + "elapsed": 629.8610434532166, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r05_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 10.982703924179077, + "elapsed": 640.9919559955597, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r03_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 7.846271991729736, + "elapsed": 648.9624857902527, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r03_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 7.83586859703064, + "elapsed": 656.9065537452698, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r01_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 0.7685718536376953, + "elapsed": 657.7747800350189, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r01_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 0.748960018157959, + "elapsed": 658.5666444301605, + "peak_gpu_bytes": 58661028096 + } + ], + "test_data_used": false + }, + "training_shots": 490256, + "training_pool_interpretation": "Eligible training rows; optimizer samples conditions and rows with replacement. Distinct rows used in this phase are recorded separately.", + "unique_training_rows_seen_in_this_phase": 466919, + "unique_rows_by_condition": { + "surface_code_bX_d5_r01_center_5_5": 18000, + "surface_code_bX_d5_r03_center_5_5": 18251, + "surface_code_bX_d5_r05_center_5_5": 18224, + "surface_code_bX_d5_r07_center_5_5": 17881, + "surface_code_bX_d5_r09_center_5_5": 18247, + "surface_code_bX_d5_r11_center_5_5": 17452, + "surface_code_bX_d5_r13_center_5_5": 17982, + "surface_code_bX_d5_r15_center_5_5": 17498, + "surface_code_bX_d5_r17_center_5_5": 18487, + "surface_code_bX_d5_r19_center_5_5": 18100, + "surface_code_bX_d5_r21_center_5_5": 17622, + "surface_code_bX_d5_r23_center_5_5": 17449, + "surface_code_bX_d5_r25_center_5_5": 17739, + "surface_code_bZ_d5_r01_center_5_5": 16689, + "surface_code_bZ_d5_r03_center_5_5": 18119, + "surface_code_bZ_d5_r05_center_5_5": 18146, + "surface_code_bZ_d5_r07_center_5_5": 18185, + "surface_code_bZ_d5_r09_center_5_5": 18473, + "surface_code_bZ_d5_r11_center_5_5": 18636, + "surface_code_bZ_d5_r13_center_5_5": 18474, + "surface_code_bZ_d5_r15_center_5_5": 17779, + "surface_code_bZ_d5_r17_center_5_5": 18474, + "surface_code_bZ_d5_r19_center_5_5": 17306, + "surface_code_bZ_d5_r21_center_5_5": 17165, + "surface_code_bZ_d5_r23_center_5_5": 18616, + "surface_code_bZ_d5_r25_center_5_5": 17925 + }, + "gradient_block_size": 32, + "bucket_operations": true, + "accumulate_conditions": 1, + "effective_batch_size": 1024, + "uncertainty_weight_floor": 1.0, + "example_weighting": "Uniform BCE", + "loss": "Conditional logical binary cross entropy, differentiated through exact relevant-CSS contraction; physical CSS feedback prior held fixed", + "steps": 1536, + "batch": 1024, + "learning_rate": 0.0005, + "sampling_seed": 20261272, + "optimizer": "AdamW, weight decay 1e-4, global gradient norm clip 1", + "optimizer_restored": true, + "rng_restored": true, + "explicit_optimizer_reset": false, + "explicit_rng_reset": false, + "sampling_state_source": "/run-state/workspace/research/learned_d5/reserved1_warm/rng-512.json", + "starting_checkpoint": "/run-state/workspace/research/learned_d5/reserved1_warm/weights-512.npz", + "starting_checkpoint_sha256": "1adc47acc35148d4260df25e25384124609d2b1e098ffcf30a1eccea55ef8712", + "starting_training_provenance": { + "initialization": "All parameters initialized in this session: variance-scaled normal hidden layers, Normal(0,.001) output weights, zero biases, seed 20261271", + "prior_pass": 3, + "initial_seed": 20261271, + "training_source_sha256": { + "learned_d5__reserved_train.py": "f1789039eb1500b30f716864237b9c564887ccb615f117fb9fb1a0ff15f54ff0", + "learned_d5__reserved_split.py": "69f3d3741a9625b1d70490f45202f101b6cd61b6bf332977559ec14307597456", + "learned_d5__data.py": "9e3bcfe9d45f6af60b86a580cdc9374043758a1a6f10564aef9eb344f7a6b364", + "learned_d5__model.py": "3b2d4b34a8945ddfe82d76e28b4aa917f11933ed885c0cdcd2bc389448a871fb", + "learned_exact__gradient.py": "ecb6b45698480386fa124fe878db7dbfa246d1969fd720ec26daff9547da2001", + "learned_exact__checkpoint_gradient.py": "7ece6b3f45e009727fd104a3d39e2816a8c3437f737c3d98131d3a5d7d60e9b8", + "exact_d3__exact.py": "869dfacb295c419c156d1070fc2afdd6e20d02ac1840e45e72346b2b289f4825" + }, + "runtime_versions": { + "jax": "0.7.2", + "numpy": "2.3.3", + "optax": "0.2.6" + }, + "hidden_width": 64, + "input_features": 394, + "feature_mode": "local events, reconstructed measurements, shot densities, physical edge support and conditioned prior", + "architecture": "Two 64-unit SiLU layers; 394 features; bounded 2*tanh correction to relevant-CSS edge logits from the recorded physical feedback pass; exact width-14 contraction predicts logical probability. D5 joint conditioning remains approximate.", + "training": "Only the18856 declared fit rows per each of26 d5 conditions; both512-row gate and512-row audit partitions excluded from every optimizer update. Uniform condition/within-condition sampling.", + "reserved_training_partition": { + "manifest": "/run-state/workspace/research/learned_d5/reserved_split1/manifest.json", + "manifest_sha256": "241221ce16d1d4fc634bdfef691aa2a40d888f6cb75e981485c570905056257b", + "selected_part": "fit", + "details": { + "schema": "qecbench-training-reserved-split/v1", + "seed": 20261270, + "train_manifest_sha256": "ce46c21e3595cfc5885bbe2b6481105317d2e6267498ec4572601469825914b8", + "source_sha256": "69f3d3741a9625b1d70490f45202f101b6cd61b6bf332977559ec14307597456", + "conditions": [ + { + "condition": "surface_code_bX_d5_r01_center_5_5", + "file": "surface_code_bX_d5_r01_center_5_5.npz", + "sha256": "c72d5c5ee3daf1b128e0c226f2815009daf6127e8b028004e86cebd6047ac474", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r03_center_5_5", + "file": "surface_code_bX_d5_r03_center_5_5.npz", + "sha256": "3a59636161c80fbbf326cf1919817ce5f60ec9e6d3e4b6223579cb6a36e12e31", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r05_center_5_5", + "file": "surface_code_bX_d5_r05_center_5_5.npz", + "sha256": "e808936ef0cb32869e0944ab70a3026ef96d0f31fe0fe9967c6d87a15b85abb5", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r07_center_5_5", + "file": "surface_code_bX_d5_r07_center_5_5.npz", + "sha256": "cd0f71459448a41af10e4399637d02e8d8193dea16ab300f839cb56ad8b08203", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r09_center_5_5", + "file": "surface_code_bX_d5_r09_center_5_5.npz", + "sha256": "56648e2b93499736d40f6aa5e9e8a568f150cbc8589929578f57c1e839c92d76", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r11_center_5_5", + "file": "surface_code_bX_d5_r11_center_5_5.npz", + "sha256": "ce2dcc2bfcb57bbfcb2291105a9a011a2a3113ad92348dfa7c76076f1fb3cacf", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r13_center_5_5", + "file": "surface_code_bX_d5_r13_center_5_5.npz", + "sha256": "968b14d4d948474afd0e182d9c60cd577297d4b7bb331e916058e41692d7c9d2", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r15_center_5_5", + "file": "surface_code_bX_d5_r15_center_5_5.npz", + "sha256": "8d73808a777d81c2acc2f6aab924cc11690a94136bc666fbf11f78292a47615d", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r17_center_5_5", + "file": "surface_code_bX_d5_r17_center_5_5.npz", + "sha256": "0ab49c9dc61605d43f0c03427352af0ee230ecf7360927f75de60519d707c7ee", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r19_center_5_5", + "file": "surface_code_bX_d5_r19_center_5_5.npz", + "sha256": "27594cc6e0943860d828ebde2c76fdde64ccf2a357f896d551f3d4606e74fec4", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r21_center_5_5", + "file": "surface_code_bX_d5_r21_center_5_5.npz", + "sha256": "1b1fdcf280ca7c8ba94476f9c54b6ab70eee59b63b3be406a534014132295b7e", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r23_center_5_5", + "file": "surface_code_bX_d5_r23_center_5_5.npz", + "sha256": "d31e0ca2ce6a6d04ed7bbd80113aec8cca40526b643752d8f429ece168736759", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r25_center_5_5", + "file": "surface_code_bX_d5_r25_center_5_5.npz", + "sha256": "f45a5978d77b1ef450f2ffd9fa19413c9d647448a3d61dfafd7590671dcace19", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r01_center_5_5", + "file": "surface_code_bZ_d5_r01_center_5_5.npz", + "sha256": "647e82ac0721a7245b3deb831a5a73eb555a3cb3e58b460774ffb96dc99c3b64", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r03_center_5_5", + "file": "surface_code_bZ_d5_r03_center_5_5.npz", + "sha256": "b64be8c7883b921bd57d5eefcc53656c2dad484833e5533e499b19b45be90158", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r05_center_5_5", + "file": "surface_code_bZ_d5_r05_center_5_5.npz", + "sha256": "63361e091640a4d506fc372bd0764ad248f6551d77cdf57550405b2624ca97b1", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r07_center_5_5", + "file": "surface_code_bZ_d5_r07_center_5_5.npz", + "sha256": "c50d26a58c1fb6b5a20f5737b94c3bac9182fe703bafa221532b8b012064f655", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r09_center_5_5", + "file": "surface_code_bZ_d5_r09_center_5_5.npz", + "sha256": "d62ecb975d63f13664bc6b02d30499a3fb10f0c22f1068b28bbbc31d1ec91fcc", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r11_center_5_5", + "file": "surface_code_bZ_d5_r11_center_5_5.npz", + "sha256": "724c7dc2c4cf2b551abf4f75e230f5aa04a74eebba79c25c845f14d15863de5e", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r13_center_5_5", + "file": "surface_code_bZ_d5_r13_center_5_5.npz", + "sha256": "0e618a998fb591a85dd365eead741a91b6560ed1a3987046286a67a2c754fa83", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r15_center_5_5", + "file": "surface_code_bZ_d5_r15_center_5_5.npz", + "sha256": "e1f8c6f812dc98c48402b69a08b09b520d1374e9f2e51b3e681b67bf306e17be", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r17_center_5_5", + "file": "surface_code_bZ_d5_r17_center_5_5.npz", + "sha256": "aa23a51a79677a8ac43cc31b72fe07e73c827f935c632c29b09924fc88242d0d", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r19_center_5_5", + "file": "surface_code_bZ_d5_r19_center_5_5.npz", + "sha256": "8420b79a8d7324f41dfd1cccacfd1fae9b27b370f40c60059e9de187864dba2b", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r21_center_5_5", + "file": "surface_code_bZ_d5_r21_center_5_5.npz", + "sha256": "088b92610c90dc1a180b2eca8b16e8f225d191ec7fc11355c85e6959f35e7073", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r23_center_5_5", + "file": "surface_code_bZ_d5_r23_center_5_5.npz", + "sha256": "b1484c581cbd5439c74befabbd7c1c12e7cb38db099c793dfb3cf748df20fc3b", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r25_center_5_5", + "file": "surface_code_bZ_d5_r25_center_5_5.npz", + "sha256": "92f552059b6c197b53ff1030d9ba0fe03cf22ea1f116e5280be944ad60f04be3", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + } + ], + "counts": { + "fit": 490256, + "gate": 13312, + "audit": 13312 + }, + "split_features": "Only array lengths and seeded random permutations; IDs verify alignment and are never model features", + "gate_use": "Fit a small combiner on gate labels only after experts exclude both reserved parts", + "audit_use": "Diagnostic only; no parameter fitting, checkpoint selection, or hyperparameter selection", + "validation_use": "Supplied validation selects checkpoints and candidates; no validation labels fit parameters", + "test_data_used": false + } + }, + "training_cache": "/run-state/workspace/research/learned_d5/full_training_priors3", + "training_cache_provenance": { + "method": "Three undamped physical CSS extrinsic-message passes, clipping8, pass1/pass3 priors captured before logical readout", + "scope": "All supplied training rows in all26 d5 conditions; no validation or test labels used in cache generation", + "reused_rows": "4096 rows per condition from feedback5_cache, sampled with seed20261023; same first three passes", + "remaining_rows": "Computed now with last-only logical tracking; previously controlled against full logical tracking", + "train_manifest_sha256": "ce46c21e3595cfc5885bbe2b6481105317d2e6267498ec4572601469825914b8", + "records": [ + { + "condition": "surface_code_bX_d5_r25_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 44.93641114234924, + "elapsed": 45.15474009513855, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r25_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 43.11551070213318, + "elapsed": 88.52458453178406, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r23_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 39.70699763298035, + "elapsed": 128.4802794456482, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r23_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 41.178571701049805, + "elapsed": 169.95510387420654, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r21_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 41.53053879737854, + "elapsed": 211.7576286792755, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r21_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 43.43117809295654, + "elapsed": 255.62733364105225, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r19_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 33.84876799583435, + "elapsed": 289.70106053352356, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r19_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 32.88018870353699, + "elapsed": 322.7981607913971, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r17_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 29.585307836532593, + "elapsed": 352.58776783943176, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r17_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 29.854028463363647, + "elapsed": 382.6393291950226, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r15_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 26.721288919448853, + "elapsed": 409.54919600486755, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r15_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 29.810269832611084, + "elapsed": 439.6440734863281, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r13_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 29.79407238960266, + "elapsed": 469.7887041568756, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r13_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 28.757604837417603, + "elapsed": 498.71140813827515, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r11_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 25.38013219833374, + "elapsed": 524.2447266578674, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r11_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 25.378958225250244, + "elapsed": 549.8600506782532, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r09_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 21.241567850112915, + "elapsed": 571.2600774765015, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r09_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 18.780335664749146, + "elapsed": 590.304051399231, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r07_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 14.346807956695557, + "elapsed": 604.8041462898254, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r07_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 14.03441047668457, + "elapsed": 618.9537570476532, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r05_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 10.811666488647461, + "elapsed": 629.8610434532166, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r05_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 10.982703924179077, + "elapsed": 640.9919559955597, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r03_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 7.846271991729736, + "elapsed": 648.9624857902527, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r03_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 7.83586859703064, + "elapsed": 656.9065537452698, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r01_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 0.7685718536376953, + "elapsed": 657.7747800350189, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r01_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 0.748960018157959, + "elapsed": 658.5666444301605, + "peak_gpu_bytes": 58661028096 + } + ], + "test_data_used": false + }, + "training_shots": 490256, + "training_pool_interpretation": "Eligible training rows; optimizer samples conditions and rows with replacement. Distinct rows used in this phase are recorded separately.", + "unique_training_rows_seen_in_this_phase": 317613, + "unique_rows_by_condition": { + "surface_code_bX_d5_r01_center_5_5": 14297, + "surface_code_bX_d5_r03_center_5_5": 11305, + "surface_code_bX_d5_r05_center_5_5": 12479, + "surface_code_bX_d5_r07_center_5_5": 10433, + "surface_code_bX_d5_r09_center_5_5": 10919, + "surface_code_bX_d5_r11_center_5_5": 12516, + "surface_code_bX_d5_r13_center_5_5": 12043, + "surface_code_bX_d5_r15_center_5_5": 12143, + "surface_code_bX_d5_r17_center_5_5": 11354, + "surface_code_bX_d5_r19_center_5_5": 13660, + "surface_code_bX_d5_r21_center_5_5": 13753, + "surface_code_bX_d5_r23_center_5_5": 12161, + "surface_code_bX_d5_r25_center_5_5": 12531, + "surface_code_bZ_d5_r01_center_5_5": 11397, + "surface_code_bZ_d5_r03_center_5_5": 9053, + "surface_code_bZ_d5_r05_center_5_5": 13723, + "surface_code_bZ_d5_r07_center_5_5": 14763, + "surface_code_bZ_d5_r09_center_5_5": 10969, + "surface_code_bZ_d5_r11_center_5_5": 12129, + "surface_code_bZ_d5_r13_center_5_5": 10020, + "surface_code_bZ_d5_r15_center_5_5": 13170, + "surface_code_bZ_d5_r17_center_5_5": 14946, + "surface_code_bZ_d5_r19_center_5_5": 10579, + "surface_code_bZ_d5_r21_center_5_5": 11745, + "surface_code_bZ_d5_r23_center_5_5": 12426, + "surface_code_bZ_d5_r25_center_5_5": 13099 + }, + "gradient_block_size": 32, + "bucket_operations": true, + "accumulate_conditions": 1, + "effective_batch_size": 1024, + "uncertainty_weight_floor": 1.0, + "example_weighting": "Uniform BCE", + "loss": "Conditional logical binary cross entropy, differentiated through exact relevant-CSS contraction; physical CSS feedback prior held fixed", + "steps": 512, + "batch": 1024, + "learning_rate": 0.001, + "sampling_seed": 20261272, + "optimizer": "AdamW, weight decay 1e-4, global gradient norm clip 1", + "optimizer_restored": false, + "rng_restored": false, + "explicit_optimizer_reset": false, + "explicit_rng_reset": false, + "sampling_state_source": "Fresh NumPy default_rng seed 20261272", + "starting_checkpoint": null, + "starting_checkpoint_sha256": null, + "starting_training_provenance": null, + "validation": "Uniform subset per all 26 conditions, sample seed 20261102; full validation required before publication", + "validation_shots_per_condition": 1024, + "test_data_used": false, + "records": [ + { + "step": 1, + "loss": 0.1412775069475174, + "objective": 0.1412775069475174, + "error": 0.0595703125, + "gradient_norm": 0.030735325068235397, + "elapsed": 28.457472801208496 + }, + { + "step": 16, + "loss": 0.6315727233886719, + "objective": 0.6315727233886719, + "error": 0.384765625, + "gradient_norm": 0.06563512235879898, + "elapsed": 47.886730670928955 + }, + { + "step": 32, + "loss": 0.5130410194396973, + "objective": 0.5130410194396973, + "error": 0.263671875, + "gradient_norm": 0.10626910626888275, + "elapsed": 60.16136598587036 + }, + { + "step": 48, + "loss": 0.6413166522979736, + "objective": 0.6413166522979736, + "error": 0.408203125, + "gradient_norm": 0.03790846839547157, + "elapsed": 70.9611382484436 + }, + { + "step": 64, + "loss": 0.5491592884063721, + "objective": 0.5491592884063721, + "error": 0.2939453125, + "gradient_norm": 0.093081034719944, + "elapsed": 81.46673464775085 + }, + { + "step": 80, + "loss": 0.6315242648124695, + "objective": 0.6315242648124695, + "error": 0.359375, + "gradient_norm": 0.0384257510304451, + "elapsed": 91.71172666549683 + }, + { + "step": 96, + "loss": 0.6311566829681396, + "objective": 0.6311566829681396, + "error": 0.3798828125, + "gradient_norm": 0.03731638938188553, + "elapsed": 100.83252763748169 + }, + { + "step": 112, + "loss": 0.5327925682067871, + "objective": 0.5327925682067871, + "error": 0.29296875, + "gradient_norm": 0.11202990263700485, + "elapsed": 111.35073852539062 + }, + { + "step": 128, + "loss": 0.6284654140472412, + "objective": 0.6284654140472412, + "error": 0.3740234375, + "gradient_norm": 0.03215613588690758, + "elapsed": 121.32994651794434 + }, + { + "step": 144, + "loss": 0.33964547514915466, + "objective": 0.33964547514915466, + "error": 0.1259765625, + "gradient_norm": 0.05133189633488655, + "elapsed": 131.2744882106781 + }, + { + "step": 160, + "loss": 0.14193454384803772, + "objective": 0.14193454384803772, + "error": 0.0478515625, + "gradient_norm": 0.03264402225613594, + "elapsed": 139.58473920822144 + }, + { + "step": 176, + "loss": 0.14203950762748718, + "objective": 0.14203950762748718, + "error": 0.0654296875, + "gradient_norm": 0.022548990324139595, + "elapsed": 148.9861602783203 + }, + { + "step": 192, + "loss": 0.6307225227355957, + "objective": 0.6307225227355957, + "error": 0.3955078125, + "gradient_norm": 0.08607082068920135, + "elapsed": 162.27514505386353 + }, + { + "step": 208, + "loss": 0.16193106770515442, + "objective": 0.16193106770515442, + "error": 0.064453125, + "gradient_norm": 0.023293493315577507, + "elapsed": 173.59824013710022 + }, + { + "step": 224, + "loss": 0.5426318049430847, + "objective": 0.5426318049430847, + "error": 0.3037109375, + "gradient_norm": 0.03944721072912216, + "elapsed": 182.70232272148132 + }, + { + "step": 240, + "loss": 0.6270365715026855, + "objective": 0.6270365715026855, + "error": 0.3896484375, + "gradient_norm": 0.14661568403244019, + "elapsed": 193.759183883667 + }, + { + "step": 256, + "loss": 0.4933152198791504, + "objective": 0.4933152198791504, + "error": 0.2724609375, + "gradient_norm": 0.1065438985824585, + "elapsed": 205.62959718704224 + }, + { + "step": 272, + "loss": 0.3671969473361969, + "objective": 0.3671969473361969, + "error": 0.177734375, + "gradient_norm": 0.05156548321247101, + "elapsed": 222.249596118927 + }, + { + "step": 288, + "loss": 0.5478869676589966, + "objective": 0.5478869676589966, + "error": 0.3203125, + "gradient_norm": 0.08357688039541245, + "elapsed": 232.2198715209961 + }, + { + "step": 304, + "loss": 0.21171918511390686, + "objective": 0.21171918511390686, + "error": 0.0849609375, + "gradient_norm": 0.06231697276234627, + "elapsed": 241.07631373405457 + }, + { + "step": 320, + "loss": 0.5333335995674133, + "objective": 0.5333335995674133, + "error": 0.2861328125, + "gradient_norm": 0.08931853622198105, + "elapsed": 251.28962755203247 + }, + { + "step": 336, + "loss": 0.12485946714878082, + "objective": 0.12485946714878082, + "error": 0.046875, + "gradient_norm": 0.018839582800865173, + "elapsed": 262.3605041503906 + }, + { + "step": 352, + "loss": 0.2334863245487213, + "objective": 0.2334863245487213, + "error": 0.09765625, + "gradient_norm": 0.03669576346874237, + "elapsed": 273.16373229026794 + }, + { + "step": 368, + "loss": 0.5818328857421875, + "objective": 0.5818328857421875, + "error": 0.3232421875, + "gradient_norm": 0.09833699464797974, + "elapsed": 282.8677294254303 + }, + { + "step": 384, + "loss": 0.6228232383728027, + "objective": 0.6228232383728027, + "error": 0.3671875, + "gradient_norm": 0.033418990671634674, + "elapsed": 295.04902839660645 + }, + { + "step": 400, + "loss": 0.5749450922012329, + "objective": 0.5749450922012329, + "error": 0.333984375, + "gradient_norm": 0.04644288495182991, + "elapsed": 306.67032837867737 + }, + { + "step": 416, + "loss": 0.46251457929611206, + "objective": 0.46251457929611206, + "error": 0.2216796875, + "gradient_norm": 0.06633804738521576, + "elapsed": 317.759464263916 + }, + { + "step": 432, + "loss": 0.5577508211135864, + "objective": 0.5577508211135864, + "error": 0.30859375, + "gradient_norm": 0.0970199704170227, + "elapsed": 327.4626543521881 + }, + { + "step": 448, + "loss": 0.11625733226537704, + "objective": 0.11625733226537704, + "error": 0.0419921875, + "gradient_norm": 0.020417485386133194, + "elapsed": 336.3522970676422 + }, + { + "step": 464, + "loss": 0.23657961189746857, + "objective": 0.23657961189746857, + "error": 0.1025390625, + "gradient_norm": 0.03908605873584747, + "elapsed": 344.3832321166992 + }, + { + "step": 480, + "loss": 0.011504358612000942, + "objective": 0.011504358612000942, + "error": 0.00390625, + "gradient_norm": 0.006708688102662563, + "elapsed": 355.18855381011963 + }, + { + "step": 496, + "loss": 0.3410624563694, + "objective": 0.3410624563694, + "error": 0.1533203125, + "gradient_norm": 0.05804387852549553, + "elapsed": 366.2978138923645 + }, + { + "step": 512, + "loss": 0.034005306661129, + "objective": 0.034005306661129, + "error": 0.0107421875, + "gradient_norm": 0.01019973959773779, + "elapsed": 375.73491764068604 + } + ], + "reserved_sampling_audit": { + "status": "passed", + "run": "/run-state/workspace/research/learned_d5/reserved1_warm", + "partition_manifest_sha256": "241221ce16d1d4fc634bdfef691aa2a40d888f6cb75e981485c570905056257b", + "source_sha256": "0b474c57cd4d84ef86c631af7473eac8a956f03b7e4c9859efc1fbf2dbd0bca6", + "training_config_sha256": "b31e8f5ee2b5ea1b661e6bf8b5649bec45b7ab5da74fe9de46e4d06846356b87", + "fit_pool": 490256, + "gate_rows_excluded": 13312, + "audit_rows_excluded": 13312, + "sampling_replayed_checkpoints": [ + 256, + 512 + ], + "training_draws": 524288, + "distinct_phase_training_rows": 317613, + "distinct_by_condition": { + "surface_code_bX_d5_r01_center_5_5": 14297, + "surface_code_bX_d5_r03_center_5_5": 11305, + "surface_code_bX_d5_r05_center_5_5": 12479, + "surface_code_bX_d5_r07_center_5_5": 10433, + "surface_code_bX_d5_r09_center_5_5": 10919, + "surface_code_bX_d5_r11_center_5_5": 12516, + "surface_code_bX_d5_r13_center_5_5": 12043, + "surface_code_bX_d5_r15_center_5_5": 12143, + "surface_code_bX_d5_r17_center_5_5": 11354, + "surface_code_bX_d5_r19_center_5_5": 13660, + "surface_code_bX_d5_r21_center_5_5": 13753, + "surface_code_bX_d5_r23_center_5_5": 12161, + "surface_code_bX_d5_r25_center_5_5": 12531, + "surface_code_bZ_d5_r01_center_5_5": 11397, + "surface_code_bZ_d5_r03_center_5_5": 9053, + "surface_code_bZ_d5_r05_center_5_5": 13723, + "surface_code_bZ_d5_r07_center_5_5": 14763, + "surface_code_bZ_d5_r09_center_5_5": 10969, + "surface_code_bZ_d5_r11_center_5_5": 12129, + "surface_code_bZ_d5_r13_center_5_5": 10020, + "surface_code_bZ_d5_r15_center_5_5": 13170, + "surface_code_bZ_d5_r17_center_5_5": 14946, + "surface_code_bZ_d5_r19_center_5_5": 10579, + "surface_code_bZ_d5_r21_center_5_5": 11745, + "surface_code_bZ_d5_r23_center_5_5": 12426, + "surface_code_bZ_d5_r25_center_5_5": 13099 + }, + "initial_optimizer_count": 0, + "last_optimizer_count": 512, + "parent_checkpoint_sha256": null, + "test_data_used": false + }, + "declared_study_plan": { + "hypothesis": "Fresh independent experts with an excluded training partition permit an honest combiner fit and an independent training-period diagnostic", + "experts": [ + { + "name": "reserved1", + "initial_seed": 20261271, + "sampling_seed": 20261272 + }, + { + "name": "reserved2", + "initial_seed": 20261273, + "sampling_seed": 20261274 + } + ], + "partition_manifest_sha256": "241221ce16d1d4fc634bdfef691aa2a40d888f6cb75e981485c570905056257b", + "partition": "Per26 d5 conditions:18856 fit,512 combiner,512 diagnostic rows; uniformly random partition seed20261270; sample IDs only check alignment", + "architecture": "Unchanged394-input64-unit neural correction, bound2, fixed physical pass3 priors, exact relevant-CSS contraction", + "training": "Each new expert:512 updates B1024 LR.001 from random initialization;1536 updates LR.0005 restoring own Adam/RNG state. Uniform eligible condition and row sampling, BCE, clip1,AdamW decay1e-4", + "validation_selection": "All26conditions/13durations: main-phase0/512/1024/1536, raw and equal-physical options versus incumbent, then fixed original/new ensembles with physical fractions0/.25/.5. Full replay/contract verification required before publication", + "combiner_expert_selection": "For each new expert and basis, minimum raw full-validation mean failure across0/512/1024/1536; earlier listed checkpoint wins ties. Freeze before using reserved labels", + "combiner_plan": "Fit small regularized syndrome-dependent mixtures using only the512 gate rows/condition. Diagnostic512 rows/condition must not fit or select weights/checkpoints/hyperparameters", + "holdout_prediction_generation": "Both reserved parts predicted without accessing label NPZ members; diagnostics only after final combiner selection is frozen", + "test_data_used": false + }, + "pipeline_control": { + "status": "passed", + "backend": "CPU", + "training_source_sha256": { + "learned_d5__reserved_train.py": "f1789039eb1500b30f716864237b9c564887ccb615f117fb9fb1a0ff15f54ff0", + "learned_d5__reserved_split.py": "69f3d3741a9625b1d70490f45202f101b6cd61b6bf332977559ec14307597456", + "learned_d5__data.py": "9e3bcfe9d45f6af60b86a580cdc9374043758a1a6f10564aef9eb344f7a6b364", + "learned_d5__model.py": "3b2d4b34a8945ddfe82d76e28b4aa917f11933ed885c0cdcd2bc389448a871fb", + "learned_exact__gradient.py": "ecb6b45698480386fa124fe878db7dbfa246d1969fd720ec26daff9547da2001", + "learned_exact__checkpoint_gradient.py": "7ece6b3f45e009727fd104a3d39e2816a8c3437f737c3d98131d3a5d7d60e9b8", + "exact_d3__exact.py": "869dfacb295c419c156d1070fc2afdd6e20d02ac1840e45e72346b2b289f4825" + }, + "control_sha256": "0302573e82d5113dfe1f63080b21b6976cc05b2ddb3677a640b005fc6050aa66", + "audits": [ + { + "status": "passed", + "run": "/run-state/workspace/research/learned_d5/reserved_smoke1", + "partition_manifest_sha256": "241221ce16d1d4fc634bdfef691aa2a40d888f6cb75e981485c570905056257b", + "source_sha256": "0b474c57cd4d84ef86c631af7473eac8a956f03b7e4c9859efc1fbf2dbd0bca6", + "training_config_sha256": "ad3b3170d682b103f82456476e4a4f7c3096707269b72c242ec43d820dc06856", + "fit_pool": 490256, + "gate_rows_excluded": 13312, + "audit_rows_excluded": 13312, + "sampling_replayed_checkpoints": [ + 1 + ], + "training_draws": 2, + "distinct_phase_training_rows": 2, + "distinct_by_condition": { + "surface_code_bX_d5_r01_center_5_5": 0, + "surface_code_bX_d5_r03_center_5_5": 0, + "surface_code_bX_d5_r05_center_5_5": 0, + "surface_code_bX_d5_r07_center_5_5": 0, + "surface_code_bX_d5_r09_center_5_5": 0, + "surface_code_bX_d5_r11_center_5_5": 0, + "surface_code_bX_d5_r13_center_5_5": 0, + "surface_code_bX_d5_r15_center_5_5": 0, + "surface_code_bX_d5_r17_center_5_5": 0, + "surface_code_bX_d5_r19_center_5_5": 0, + "surface_code_bX_d5_r21_center_5_5": 0, + "surface_code_bX_d5_r23_center_5_5": 0, + "surface_code_bX_d5_r25_center_5_5": 0, + "surface_code_bZ_d5_r01_center_5_5": 0, + "surface_code_bZ_d5_r03_center_5_5": 2, + "surface_code_bZ_d5_r05_center_5_5": 0, + "surface_code_bZ_d5_r07_center_5_5": 0, + "surface_code_bZ_d5_r09_center_5_5": 0, + "surface_code_bZ_d5_r11_center_5_5": 0, + "surface_code_bZ_d5_r13_center_5_5": 0, + "surface_code_bZ_d5_r15_center_5_5": 0, + "surface_code_bZ_d5_r17_center_5_5": 0, + "surface_code_bZ_d5_r19_center_5_5": 0, + "surface_code_bZ_d5_r21_center_5_5": 0, + "surface_code_bZ_d5_r23_center_5_5": 0, + "surface_code_bZ_d5_r25_center_5_5": 0 + }, + "initial_optimizer_count": 0, + "last_optimizer_count": 1, + "parent_checkpoint_sha256": null, + "test_data_used": false + }, + { + "status": "passed", + "run": "/run-state/workspace/research/learned_d5/reserved_smoke2", + "partition_manifest_sha256": "241221ce16d1d4fc634bdfef691aa2a40d888f6cb75e981485c570905056257b", + "source_sha256": "0b474c57cd4d84ef86c631af7473eac8a956f03b7e4c9859efc1fbf2dbd0bca6", + "training_config_sha256": "ea2e649b4880641cb0c7e7b7a349d4174ce4dd276c4cdbac376e9c087f00ea1f", + "fit_pool": 490256, + "gate_rows_excluded": 13312, + "audit_rows_excluded": 13312, + "sampling_replayed_checkpoints": [ + 1 + ], + "training_draws": 2, + "distinct_phase_training_rows": 2, + "distinct_by_condition": { + "surface_code_bX_d5_r01_center_5_5": 0, + "surface_code_bX_d5_r03_center_5_5": 0, + "surface_code_bX_d5_r05_center_5_5": 0, + "surface_code_bX_d5_r07_center_5_5": 0, + "surface_code_bX_d5_r09_center_5_5": 0, + "surface_code_bX_d5_r11_center_5_5": 0, + "surface_code_bX_d5_r13_center_5_5": 0, + "surface_code_bX_d5_r15_center_5_5": 0, + "surface_code_bX_d5_r17_center_5_5": 0, + "surface_code_bX_d5_r19_center_5_5": 0, + "surface_code_bX_d5_r21_center_5_5": 0, + "surface_code_bX_d5_r23_center_5_5": 0, + "surface_code_bX_d5_r25_center_5_5": 0, + "surface_code_bZ_d5_r01_center_5_5": 0, + "surface_code_bZ_d5_r03_center_5_5": 0, + "surface_code_bZ_d5_r05_center_5_5": 0, + "surface_code_bZ_d5_r07_center_5_5": 0, + "surface_code_bZ_d5_r09_center_5_5": 0, + "surface_code_bZ_d5_r11_center_5_5": 0, + "surface_code_bZ_d5_r13_center_5_5": 0, + "surface_code_bZ_d5_r15_center_5_5": 0, + "surface_code_bZ_d5_r17_center_5_5": 0, + "surface_code_bZ_d5_r19_center_5_5": 0, + "surface_code_bZ_d5_r21_center_5_5": 2, + "surface_code_bZ_d5_r23_center_5_5": 0, + "surface_code_bZ_d5_r25_center_5_5": 0 + }, + "initial_optimizer_count": 1, + "last_optimizer_count": 2, + "parent_checkpoint_sha256": "faf01476f397259640c31a761f9774af9c0592e9118c38ffdce9502acdfcfb31", + "test_data_used": false + } + ], + "initialization_exact": true, + "parameters_updated": true, + "smoke_runs_excluded_from_selection_and_submission": true, + "test_data_used": false + } + }, + "validation": "Uniform subset per all 26 conditions, sample seed 20261102; full validation required before publication", + "validation_shots_per_condition": 1024, + "test_data_used": false, + "records": [ + { + "step": 1, + "loss": 0.5523660182952881, + "objective": 0.5523660182952881, + "error": 0.30859375, + "gradient_norm": 0.05200070142745972, + "elapsed": 30.08410096168518 + }, + { + "step": 16, + "loss": 0.5380295515060425, + "objective": 0.5380295515060425, + "error": 0.306640625, + "gradient_norm": 0.0804876759648323, + "elapsed": 50.77648210525513 + }, + { + "step": 32, + "loss": 0.6359301805496216, + "objective": 0.6359301805496216, + "error": 0.3837890625, + "gradient_norm": 0.059380218386650085, + "elapsed": 59.453776836395264 + }, + { + "step": 48, + "loss": 0.2540435492992401, + "objective": 0.2540435492992401, + "error": 0.1083984375, + "gradient_norm": 0.04367281496524811, + "elapsed": 67.29314041137695 + }, + { + "step": 64, + "loss": 0.5867692232131958, + "objective": 0.5867692232131958, + "error": 0.3447265625, + "gradient_norm": 0.053885214030742645, + "elapsed": 78.74847197532654 + }, + { + "step": 80, + "loss": 0.6015321016311646, + "objective": 0.6015321016311646, + "error": 0.365234375, + "gradient_norm": 0.04807985574007034, + "elapsed": 90.48145818710327 + }, + { + "step": 96, + "loss": 0.49287766218185425, + "objective": 0.49287766218185425, + "error": 0.271484375, + "gradient_norm": 0.07899080961942673, + "elapsed": 101.65468978881836 + }, + { + "step": 112, + "loss": 0.3271353542804718, + "objective": 0.3271353542804718, + "error": 0.15234375, + "gradient_norm": 0.049542222172021866, + "elapsed": 111.14713263511658 + }, + { + "step": 128, + "loss": 0.50013667345047, + "objective": 0.50013667345047, + "error": 0.271484375, + "gradient_norm": 0.06454745680093765, + "elapsed": 121.21207547187805 + }, + { + "step": 144, + "loss": 0.028576843440532684, + "objective": 0.028576843440532684, + "error": 0.0087890625, + "gradient_norm": 0.010781333781778812, + "elapsed": 130.69302248954773 + }, + { + "step": 160, + "loss": 0.5668779015541077, + "objective": 0.5668779015541077, + "error": 0.330078125, + "gradient_norm": 0.06098390743136406, + "elapsed": 142.14290237426758 + }, + { + "step": 176, + "loss": 0.3986494839191437, + "objective": 0.3986494839191437, + "error": 0.1884765625, + "gradient_norm": 0.042795032262802124, + "elapsed": 152.75753688812256 + }, + { + "step": 192, + "loss": 0.31897079944610596, + "objective": 0.31897079944610596, + "error": 0.142578125, + "gradient_norm": 0.040675707161426544, + "elapsed": 160.04981398582458 + }, + { + "step": 208, + "loss": 0.5092275142669678, + "objective": 0.5092275142669678, + "error": 0.255859375, + "gradient_norm": 0.07929783314466476, + "elapsed": 169.85345673561096 + }, + { + "step": 224, + "loss": 0.35782667994499207, + "objective": 0.35782667994499207, + "error": 0.1748046875, + "gradient_norm": 0.05785144120454788, + "elapsed": 179.90323066711426 + }, + { + "step": 240, + "loss": 0.5660895109176636, + "objective": 0.5660895109176636, + "error": 0.3349609375, + "gradient_norm": 0.10684454441070557, + "elapsed": 191.3668942451477 + }, + { + "step": 256, + "loss": 0.6265910863876343, + "objective": 0.6265910863876343, + "error": 0.3779296875, + "gradient_norm": 0.034383758902549744, + "elapsed": 200.3055775165558 + }, + { + "step": 272, + "loss": 0.6210677623748779, + "objective": 0.6210677623748779, + "error": 0.369140625, + "gradient_norm": 0.04434216767549515, + "elapsed": 210.09376430511475 + }, + { + "step": 288, + "loss": 0.4892377257347107, + "objective": 0.4892377257347107, + "error": 0.2490234375, + "gradient_norm": 0.1040654331445694, + "elapsed": 220.45881819725037 + }, + { + "step": 304, + "loss": 0.6407739520072937, + "objective": 0.6407739520072937, + "error": 0.3916015625, + "gradient_norm": 0.07782924920320511, + "elapsed": 233.3719048500061 + }, + { + "step": 320, + "loss": 0.4752756953239441, + "objective": 0.4752756953239441, + "error": 0.263671875, + "gradient_norm": 0.051829319447278976, + "elapsed": 244.25844407081604 + }, + { + "step": 336, + "loss": 0.6482080221176147, + "objective": 0.6482080221176147, + "error": 0.41015625, + "gradient_norm": 0.04979892820119858, + "elapsed": 253.1897099018097 + }, + { + "step": 352, + "loss": 0.34022292494773865, + "objective": 0.34022292494773865, + "error": 0.1708984375, + "gradient_norm": 0.09951864182949066, + "elapsed": 264.0781395435333 + }, + { + "step": 368, + "loss": 0.3494992256164551, + "objective": 0.3494992256164551, + "error": 0.15625, + "gradient_norm": 0.10392706841230392, + "elapsed": 275.8111581802368 + }, + { + "step": 384, + "loss": 0.47191378474235535, + "objective": 0.47191378474235535, + "error": 0.25, + "gradient_norm": 0.07366786152124405, + "elapsed": 283.9459602832794 + }, + { + "step": 400, + "loss": 0.583655595779419, + "objective": 0.583655595779419, + "error": 0.3623046875, + "gradient_norm": 0.10394527018070221, + "elapsed": 294.3349726200104 + }, + { + "step": 416, + "loss": 0.6212975978851318, + "objective": 0.6212975978851318, + "error": 0.37109375, + "gradient_norm": 0.054796766489744186, + "elapsed": 304.7477548122406 + }, + { + "step": 432, + "loss": 0.4719577431678772, + "objective": 0.4719577431678772, + "error": 0.2431640625, + "gradient_norm": 0.05418012663722038, + "elapsed": 315.91914200782776 + }, + { + "step": 448, + "loss": 0.5696494579315186, + "objective": 0.5696494579315186, + "error": 0.3330078125, + "gradient_norm": 0.047046076506376266, + "elapsed": 324.96326184272766 + }, + { + "step": 464, + "loss": 0.613875687122345, + "objective": 0.613875687122345, + "error": 0.34765625, + "gradient_norm": 0.05237002298235893, + "elapsed": 334.7670781612396 + }, + { + "step": 480, + "loss": 0.28741705417633057, + "objective": 0.28741705417633057, + "error": 0.1240234375, + "gradient_norm": 0.05365394428372383, + "elapsed": 344.03080439567566 + }, + { + "step": 496, + "loss": 0.3729455769062042, + "objective": 0.3729455769062042, + "error": 0.1875, + "gradient_norm": 0.05905403569340706, + "elapsed": 356.01581716537476 + }, + { + "step": 512, + "loss": 0.38685142993927, + "objective": 0.38685142993927, + "error": 0.17578125, + "gradient_norm": 0.048455506563186646, + "elapsed": 367.7296392917633 + }, + { + "step": 528, + "loss": 0.6062720417976379, + "objective": 0.6062720417976379, + "error": 0.369140625, + "gradient_norm": 0.07544548809528351, + "elapsed": 385.4480962753296 + }, + { + "step": 544, + "loss": 0.520085871219635, + "objective": 0.520085871219635, + "error": 0.279296875, + "gradient_norm": 0.08394371718168259, + "elapsed": 397.71993708610535 + }, + { + "step": 560, + "loss": 0.5944540500640869, + "objective": 0.5944540500640869, + "error": 0.3544921875, + "gradient_norm": 0.05468091368675232, + "elapsed": 406.9417428970337 + }, + { + "step": 576, + "loss": 0.34102559089660645, + "objective": 0.34102559089660645, + "error": 0.1611328125, + "gradient_norm": 0.07333917915821075, + "elapsed": 417.0068130493164 + }, + { + "step": 592, + "loss": 0.47373664379119873, + "objective": 0.47373664379119873, + "error": 0.2412109375, + "gradient_norm": 0.05662858858704567, + "elapsed": 425.1176447868347 + }, + { + "step": 608, + "loss": 0.48517894744873047, + "objective": 0.48517894744873047, + "error": 0.25, + "gradient_norm": 0.08127480745315552, + "elapsed": 434.92080903053284 + }, + { + "step": 624, + "loss": 0.39865612983703613, + "objective": 0.39865612983703613, + "error": 0.1904296875, + "gradient_norm": 0.07332058995962143, + "elapsed": 446.6602101325989 + }, + { + "step": 640, + "loss": 0.41867297887802124, + "objective": 0.41867297887802124, + "error": 0.2177734375, + "gradient_norm": 0.07386308163404465, + "elapsed": 457.0243580341339 + }, + { + "step": 656, + "loss": 0.5108687877655029, + "objective": 0.5108687877655029, + "error": 0.2822265625, + "gradient_norm": 0.052080318331718445, + "elapsed": 469.5842761993408 + }, + { + "step": 672, + "loss": 0.5043742656707764, + "objective": 0.5043742656707764, + "error": 0.2734375, + "gradient_norm": 0.047204963862895966, + "elapsed": 479.356397151947 + }, + { + "step": 688, + "loss": 0.5550935864448547, + "objective": 0.5550935864448547, + "error": 0.30078125, + "gradient_norm": 0.04080262407660484, + "elapsed": 489.9912152290344 + }, + { + "step": 704, + "loss": 0.5698974132537842, + "objective": 0.5698974132537842, + "error": 0.322265625, + "gradient_norm": 0.10692963004112244, + "elapsed": 500.3283371925354 + }, + { + "step": 720, + "loss": 0.45870622992515564, + "objective": 0.45870622992515564, + "error": 0.2255859375, + "gradient_norm": 0.06705734878778458, + "elapsed": 509.82279753685 + }, + { + "step": 736, + "loss": 0.555386483669281, + "objective": 0.555386483669281, + "error": 0.31640625, + "gradient_norm": 0.05112688988447189, + "elapsed": 518.507036447525 + }, + { + "step": 752, + "loss": 0.14282986521720886, + "objective": 0.14282986521720886, + "error": 0.056640625, + "gradient_norm": 0.03209136053919792, + "elapsed": 529.1373023986816 + }, + { + "step": 768, + "loss": 0.5362129807472229, + "objective": 0.5362129807472229, + "error": 0.2841796875, + "gradient_norm": 0.049996186047792435, + "elapsed": 538.9186007976532 + }, + { + "step": 784, + "loss": 0.5071826577186584, + "objective": 0.5071826577186584, + "error": 0.2744140625, + "gradient_norm": 0.04826078191399574, + "elapsed": 549.5225830078125 + }, + { + "step": 800, + "loss": 0.24775367975234985, + "objective": 0.24775367975234985, + "error": 0.107421875, + "gradient_norm": 0.06889795511960983, + "elapsed": 560.7170543670654 + }, + { + "step": 816, + "loss": 0.17432856559753418, + "objective": 0.17432856559753418, + "error": 0.06640625, + "gradient_norm": 0.05147368833422661, + "elapsed": 570.7887880802155 + }, + { + "step": 832, + "loss": 0.5410823822021484, + "objective": 0.5410823822021484, + "error": 0.3115234375, + "gradient_norm": 0.11862928420305252, + "elapsed": 581.9721121788025 + }, + { + "step": 848, + "loss": 0.5555508732795715, + "objective": 0.5555508732795715, + "error": 0.296875, + "gradient_norm": 0.060369592159986496, + "elapsed": 592.2823219299316 + }, + { + "step": 864, + "loss": 0.31839215755462646, + "objective": 0.31839215755462646, + "error": 0.1552734375, + "gradient_norm": 0.063877172768116, + "elapsed": 603.1910541057587 + }, + { + "step": 880, + "loss": 0.481766939163208, + "objective": 0.481766939163208, + "error": 0.2470703125, + "gradient_norm": 0.1623816341161728, + "elapsed": 614.4277107715607 + }, + { + "step": 896, + "loss": 0.5780366659164429, + "objective": 0.5780366659164429, + "error": 0.3037109375, + "gradient_norm": 0.06694691628217697, + "elapsed": 623.9365792274475 + }, + { + "step": 912, + "loss": 0.4794909358024597, + "objective": 0.4794909358024597, + "error": 0.2314453125, + "gradient_norm": 0.07813122123479843, + "elapsed": 633.9845306873322 + }, + { + "step": 928, + "loss": 0.6279138922691345, + "objective": 0.6279138922691345, + "error": 0.380859375, + "gradient_norm": 0.047679927200078964, + "elapsed": 643.7766675949097 + }, + { + "step": 944, + "loss": 0.6401606798171997, + "objective": 0.6401606798171997, + "error": 0.3994140625, + "gradient_norm": 0.07329051941633224, + "elapsed": 655.2369928359985 + }, + { + "step": 960, + "loss": 0.4340277910232544, + "objective": 0.4340277910232544, + "error": 0.2158203125, + "gradient_norm": 0.11762503534555435, + "elapsed": 666.9884371757507 + }, + { + "step": 976, + "loss": 0.44496864080429077, + "objective": 0.44496864080429077, + "error": 0.2236328125, + "gradient_norm": 0.05260347202420235, + "elapsed": 677.3464586734772 + }, + { + "step": 992, + "loss": 0.13230293989181519, + "objective": 0.13230293989181519, + "error": 0.05078125, + "gradient_norm": 0.030240925028920174, + "elapsed": 685.7275724411011 + }, + { + "step": 1008, + "loss": 0.2971688508987427, + "objective": 0.2971688508987427, + "error": 0.1171875, + "gradient_norm": 0.05503479763865471, + "elapsed": 694.1270356178284 + }, + { + "step": 1024, + "loss": 0.5688735246658325, + "objective": 0.5688735246658325, + "error": 0.314453125, + "gradient_norm": 0.06526188552379608, + "elapsed": 703.9192817211151 + }, + { + "step": 1040, + "loss": 0.42805811762809753, + "objective": 0.42805811762809753, + "error": 0.2080078125, + "gradient_norm": 0.13000032305717468, + "elapsed": 720.145961523056 + }, + { + "step": 1056, + "loss": 0.5543602705001831, + "objective": 0.5543602705001831, + "error": 0.298828125, + "gradient_norm": 0.15922385454177856, + "elapsed": 733.5112845897675 + }, + { + "step": 1072, + "loss": 0.031130114570260048, + "objective": 0.031130114570260048, + "error": 0.013671875, + "gradient_norm": 0.008926023729145527, + "elapsed": 742.4467866420746 + }, + { + "step": 1088, + "loss": 0.14947748184204102, + "objective": 0.14947748184204102, + "error": 0.056640625, + "gradient_norm": 0.03975249081850052, + "elapsed": 751.8575854301453 + }, + { + "step": 1104, + "loss": 0.6275734901428223, + "objective": 0.6275734901428223, + "error": 0.3671875, + "gradient_norm": 0.08096148073673248, + "elapsed": 761.5625903606415 + }, + { + "step": 1120, + "loss": 0.23923414945602417, + "objective": 0.23923414945602417, + "error": 0.0966796875, + "gradient_norm": 0.03325376287102699, + "elapsed": 773.9633615016937 + }, + { + "step": 1136, + "loss": 0.570243239402771, + "objective": 0.570243239402771, + "error": 0.31640625, + "gradient_norm": 0.07534287869930267, + "elapsed": 783.1533136367798 + }, + { + "step": 1152, + "loss": 0.4264270067214966, + "objective": 0.4264270067214966, + "error": 0.2119140625, + "gradient_norm": 0.08900073170661926, + "elapsed": 792.1710996627808 + }, + { + "step": 1168, + "loss": 0.5958121418952942, + "objective": 0.5958121418952942, + "error": 0.3583984375, + "gradient_norm": 0.08239343762397766, + "elapsed": 803.1175289154053 + }, + { + "step": 1184, + "loss": 0.2909137010574341, + "objective": 0.2909137010574341, + "error": 0.1416015625, + "gradient_norm": 0.05281354859471321, + "elapsed": 812.6055159568787 + }, + { + "step": 1200, + "loss": 0.6119058728218079, + "objective": 0.6119058728218079, + "error": 0.36328125, + "gradient_norm": 0.056254416704177856, + "elapsed": 823.2276427745819 + }, + { + "step": 1216, + "loss": 0.13595536351203918, + "objective": 0.13595536351203918, + "error": 0.0556640625, + "gradient_norm": 0.04057573154568672, + "elapsed": 834.1696293354034 + }, + { + "step": 1232, + "loss": 0.5840731263160706, + "objective": 0.5840731263160706, + "error": 0.328125, + "gradient_norm": 0.054566267877817154, + "elapsed": 845.3501887321472 + }, + { + "step": 1248, + "loss": 0.3053072690963745, + "objective": 0.3053072690963745, + "error": 0.1337890625, + "gradient_norm": 0.04617297649383545, + "elapsed": 854.9564871788025 + }, + { + "step": 1264, + "loss": 0.6288673281669617, + "objective": 0.6288673281669617, + "error": 0.3994140625, + "gradient_norm": 0.08229745179414749, + "elapsed": 864.8914043903351 + }, + { + "step": 1280, + "loss": 0.5586361289024353, + "objective": 0.5586361289024353, + "error": 0.2958984375, + "gradient_norm": 0.05713959410786629, + "elapsed": 877.0349607467651 + }, + { + "step": 1296, + "loss": 0.3648858666419983, + "objective": 0.3648858666419983, + "error": 0.16796875, + "gradient_norm": 0.08502963185310364, + "elapsed": 888.5764675140381 + }, + { + "step": 1312, + "loss": 0.4747084081172943, + "objective": 0.4747084081172943, + "error": 0.244140625, + "gradient_norm": 0.08609883487224579, + "elapsed": 899.7598609924316 + }, + { + "step": 1328, + "loss": 0.15583917498588562, + "objective": 0.15583917498588562, + "error": 0.05859375, + "gradient_norm": 0.027793049812316895, + "elapsed": 909.47514295578 + }, + { + "step": 1344, + "loss": 0.47515708208084106, + "objective": 0.47515708208084106, + "error": 0.263671875, + "gradient_norm": 0.07668807357549667, + "elapsed": 919.7640328407288 + }, + { + "step": 1360, + "loss": 0.5173689126968384, + "objective": 0.5173689126968384, + "error": 0.2744140625, + "gradient_norm": 0.05054212734103203, + "elapsed": 930.6309463977814 + }, + { + "step": 1376, + "loss": 0.46629998087882996, + "objective": 0.46629998087882996, + "error": 0.24609375, + "gradient_norm": 0.051172077655792236, + "elapsed": 939.0202586650848 + }, + { + "step": 1392, + "loss": 0.11312969774007797, + "objective": 0.11312969774007797, + "error": 0.044921875, + "gradient_norm": 0.05863805115222931, + "elapsed": 949.1451416015625 + }, + { + "step": 1408, + "loss": 0.5750841498374939, + "objective": 0.5750841498374939, + "error": 0.322265625, + "gradient_norm": 0.051106806844472885, + "elapsed": 959.94162940979 + }, + { + "step": 1424, + "loss": 0.5937192440032959, + "objective": 0.5937192440032959, + "error": 0.3408203125, + "gradient_norm": 0.05014815554022789, + "elapsed": 969.5868306159973 + }, + { + "step": 1440, + "loss": 0.5292985439300537, + "objective": 0.5292985439300537, + "error": 0.2958984375, + "gradient_norm": 0.057068243622779846, + "elapsed": 982.6692054271698 + }, + { + "step": 1456, + "loss": 0.5959951877593994, + "objective": 0.5959951877593994, + "error": 0.3408203125, + "gradient_norm": 0.0703694075345993, + "elapsed": 995.0066986083984 + }, + { + "step": 1472, + "loss": 0.018453411757946014, + "objective": 0.018453411757946014, + "error": 0.00390625, + "gradient_norm": 0.012016087770462036, + "elapsed": 1004.0057821273804 + }, + { + "step": 1488, + "loss": 0.5711684823036194, + "objective": 0.5711684823036194, + "error": 0.3095703125, + "gradient_norm": 0.07746906578540802, + "elapsed": 1016.1701967716217 + }, + { + "step": 1504, + "loss": 0.3114882707595825, + "objective": 0.3114882707595825, + "error": 0.1455078125, + "gradient_norm": 0.05321609228849411, + "elapsed": 1026.6053586006165 + }, + { + "step": 1520, + "loss": 0.6433392763137817, + "objective": 0.6433392763137817, + "error": 0.4072265625, + "gradient_norm": 0.05683734640479088, + "elapsed": 1036.1535296440125 + }, + { + "step": 1536, + "loss": 0.38409170508384705, + "objective": 0.38409170508384705, + "error": 0.19140625, + "gradient_norm": 0.07577994465827942, + "elapsed": 1046.9508447647095 + } + ], + "reserved_sampling_audit": { + "status": "passed", + "run": "/run-state/workspace/research/learned_d5/reserved1_full", + "partition_manifest_sha256": "241221ce16d1d4fc634bdfef691aa2a40d888f6cb75e981485c570905056257b", + "source_sha256": "0b474c57cd4d84ef86c631af7473eac8a956f03b7e4c9859efc1fbf2dbd0bca6", + "training_config_sha256": "7b45252d6bb77a39c003c8f34f040d0d672e9dd1a1338a14126e1fe07a02c8c9", + "fit_pool": 490256, + "gate_rows_excluded": 13312, + "audit_rows_excluded": 13312, + "sampling_replayed_checkpoints": [ + 512, + 1024, + 1536 + ], + "training_draws": 1572864, + "distinct_phase_training_rows": 466919, + "distinct_by_condition": { + "surface_code_bX_d5_r01_center_5_5": 18000, + "surface_code_bX_d5_r03_center_5_5": 18251, + "surface_code_bX_d5_r05_center_5_5": 18224, + "surface_code_bX_d5_r07_center_5_5": 17881, + "surface_code_bX_d5_r09_center_5_5": 18247, + "surface_code_bX_d5_r11_center_5_5": 17452, + "surface_code_bX_d5_r13_center_5_5": 17982, + "surface_code_bX_d5_r15_center_5_5": 17498, + "surface_code_bX_d5_r17_center_5_5": 18487, + "surface_code_bX_d5_r19_center_5_5": 18100, + "surface_code_bX_d5_r21_center_5_5": 17622, + "surface_code_bX_d5_r23_center_5_5": 17449, + "surface_code_bX_d5_r25_center_5_5": 17739, + "surface_code_bZ_d5_r01_center_5_5": 16689, + "surface_code_bZ_d5_r03_center_5_5": 18119, + "surface_code_bZ_d5_r05_center_5_5": 18146, + "surface_code_bZ_d5_r07_center_5_5": 18185, + "surface_code_bZ_d5_r09_center_5_5": 18473, + "surface_code_bZ_d5_r11_center_5_5": 18636, + "surface_code_bZ_d5_r13_center_5_5": 18474, + "surface_code_bZ_d5_r15_center_5_5": 17779, + "surface_code_bZ_d5_r17_center_5_5": 18474, + "surface_code_bZ_d5_r19_center_5_5": 17306, + "surface_code_bZ_d5_r21_center_5_5": 17165, + "surface_code_bZ_d5_r23_center_5_5": 18616, + "surface_code_bZ_d5_r25_center_5_5": 17925 + }, + "initial_optimizer_count": 512, + "last_optimizer_count": 2048, + "parent_checkpoint_sha256": "1adc47acc35148d4260df25e25384124609d2b1e098ffcf30a1eccea55ef8712", + "test_data_used": false + }, + "declared_study_plan": { + "hypothesis": "Fresh independent experts with an excluded training partition permit an honest combiner fit and an independent training-period diagnostic", + "experts": [ + { + "name": "reserved1", + "initial_seed": 20261271, + "sampling_seed": 20261272 + }, + { + "name": "reserved2", + "initial_seed": 20261273, + "sampling_seed": 20261274 + } + ], + "partition_manifest_sha256": "241221ce16d1d4fc634bdfef691aa2a40d888f6cb75e981485c570905056257b", + "partition": "Per26 d5 conditions:18856 fit,512 combiner,512 diagnostic rows; uniformly random partition seed20261270; sample IDs only check alignment", + "architecture": "Unchanged394-input64-unit neural correction, bound2, fixed physical pass3 priors, exact relevant-CSS contraction", + "training": "Each new expert:512 updates B1024 LR.001 from random initialization;1536 updates LR.0005 restoring own Adam/RNG state. Uniform eligible condition and row sampling, BCE, clip1,AdamW decay1e-4", + "validation_selection": "All26conditions/13durations: main-phase0/512/1024/1536, raw and equal-physical options versus incumbent, then fixed original/new ensembles with physical fractions0/.25/.5. Full replay/contract verification required before publication", + "combiner_expert_selection": "For each new expert and basis, minimum raw full-validation mean failure across0/512/1024/1536; earlier listed checkpoint wins ties. Freeze before using reserved labels", + "combiner_plan": "Fit small regularized syndrome-dependent mixtures using only the512 gate rows/condition. Diagnostic512 rows/condition must not fit or select weights/checkpoints/hyperparameters", + "holdout_prediction_generation": "Both reserved parts predicted without accessing label NPZ members; diagnostics only after final combiner selection is frozen", + "test_data_used": false + }, + "pipeline_control": { + "status": "passed", + "backend": "CPU", + "training_source_sha256": { + "learned_d5__reserved_train.py": "f1789039eb1500b30f716864237b9c564887ccb615f117fb9fb1a0ff15f54ff0", + "learned_d5__reserved_split.py": "69f3d3741a9625b1d70490f45202f101b6cd61b6bf332977559ec14307597456", + "learned_d5__data.py": "9e3bcfe9d45f6af60b86a580cdc9374043758a1a6f10564aef9eb344f7a6b364", + "learned_d5__model.py": "3b2d4b34a8945ddfe82d76e28b4aa917f11933ed885c0cdcd2bc389448a871fb", + "learned_exact__gradient.py": "ecb6b45698480386fa124fe878db7dbfa246d1969fd720ec26daff9547da2001", + "learned_exact__checkpoint_gradient.py": "7ece6b3f45e009727fd104a3d39e2816a8c3437f737c3d98131d3a5d7d60e9b8", + "exact_d3__exact.py": "869dfacb295c419c156d1070fc2afdd6e20d02ac1840e45e72346b2b289f4825" + }, + "control_sha256": "0302573e82d5113dfe1f63080b21b6976cc05b2ddb3677a640b005fc6050aa66", + "audits": [ + { + "status": "passed", + "run": "/run-state/workspace/research/learned_d5/reserved_smoke1", + "partition_manifest_sha256": "241221ce16d1d4fc634bdfef691aa2a40d888f6cb75e981485c570905056257b", + "source_sha256": "0b474c57cd4d84ef86c631af7473eac8a956f03b7e4c9859efc1fbf2dbd0bca6", + "training_config_sha256": "ad3b3170d682b103f82456476e4a4f7c3096707269b72c242ec43d820dc06856", + "fit_pool": 490256, + "gate_rows_excluded": 13312, + "audit_rows_excluded": 13312, + "sampling_replayed_checkpoints": [ + 1 + ], + "training_draws": 2, + "distinct_phase_training_rows": 2, + "distinct_by_condition": { + "surface_code_bX_d5_r01_center_5_5": 0, + "surface_code_bX_d5_r03_center_5_5": 0, + "surface_code_bX_d5_r05_center_5_5": 0, + "surface_code_bX_d5_r07_center_5_5": 0, + "surface_code_bX_d5_r09_center_5_5": 0, + "surface_code_bX_d5_r11_center_5_5": 0, + "surface_code_bX_d5_r13_center_5_5": 0, + "surface_code_bX_d5_r15_center_5_5": 0, + "surface_code_bX_d5_r17_center_5_5": 0, + "surface_code_bX_d5_r19_center_5_5": 0, + "surface_code_bX_d5_r21_center_5_5": 0, + "surface_code_bX_d5_r23_center_5_5": 0, + "surface_code_bX_d5_r25_center_5_5": 0, + "surface_code_bZ_d5_r01_center_5_5": 0, + "surface_code_bZ_d5_r03_center_5_5": 2, + "surface_code_bZ_d5_r05_center_5_5": 0, + "surface_code_bZ_d5_r07_center_5_5": 0, + "surface_code_bZ_d5_r09_center_5_5": 0, + "surface_code_bZ_d5_r11_center_5_5": 0, + "surface_code_bZ_d5_r13_center_5_5": 0, + "surface_code_bZ_d5_r15_center_5_5": 0, + "surface_code_bZ_d5_r17_center_5_5": 0, + "surface_code_bZ_d5_r19_center_5_5": 0, + "surface_code_bZ_d5_r21_center_5_5": 0, + "surface_code_bZ_d5_r23_center_5_5": 0, + "surface_code_bZ_d5_r25_center_5_5": 0 + }, + "initial_optimizer_count": 0, + "last_optimizer_count": 1, + "parent_checkpoint_sha256": null, + "test_data_used": false + }, + { + "status": "passed", + "run": "/run-state/workspace/research/learned_d5/reserved_smoke2", + "partition_manifest_sha256": "241221ce16d1d4fc634bdfef691aa2a40d888f6cb75e981485c570905056257b", + "source_sha256": "0b474c57cd4d84ef86c631af7473eac8a956f03b7e4c9859efc1fbf2dbd0bca6", + "training_config_sha256": "ea2e649b4880641cb0c7e7b7a349d4174ce4dd276c4cdbac376e9c087f00ea1f", + "fit_pool": 490256, + "gate_rows_excluded": 13312, + "audit_rows_excluded": 13312, + "sampling_replayed_checkpoints": [ + 1 + ], + "training_draws": 2, + "distinct_phase_training_rows": 2, + "distinct_by_condition": { + "surface_code_bX_d5_r01_center_5_5": 0, + "surface_code_bX_d5_r03_center_5_5": 0, + "surface_code_bX_d5_r05_center_5_5": 0, + "surface_code_bX_d5_r07_center_5_5": 0, + "surface_code_bX_d5_r09_center_5_5": 0, + "surface_code_bX_d5_r11_center_5_5": 0, + "surface_code_bX_d5_r13_center_5_5": 0, + "surface_code_bX_d5_r15_center_5_5": 0, + "surface_code_bX_d5_r17_center_5_5": 0, + "surface_code_bX_d5_r19_center_5_5": 0, + "surface_code_bX_d5_r21_center_5_5": 0, + "surface_code_bX_d5_r23_center_5_5": 0, + "surface_code_bX_d5_r25_center_5_5": 0, + "surface_code_bZ_d5_r01_center_5_5": 0, + "surface_code_bZ_d5_r03_center_5_5": 0, + "surface_code_bZ_d5_r05_center_5_5": 0, + "surface_code_bZ_d5_r07_center_5_5": 0, + "surface_code_bZ_d5_r09_center_5_5": 0, + "surface_code_bZ_d5_r11_center_5_5": 0, + "surface_code_bZ_d5_r13_center_5_5": 0, + "surface_code_bZ_d5_r15_center_5_5": 0, + "surface_code_bZ_d5_r17_center_5_5": 0, + "surface_code_bZ_d5_r19_center_5_5": 0, + "surface_code_bZ_d5_r21_center_5_5": 2, + "surface_code_bZ_d5_r23_center_5_5": 0, + "surface_code_bZ_d5_r25_center_5_5": 0 + }, + "initial_optimizer_count": 1, + "last_optimizer_count": 2, + "parent_checkpoint_sha256": "faf01476f397259640c31a761f9774af9c0592e9118c38ffdce9502acdfcfb31", + "test_data_used": false + } + ], + "initialization_exact": true, + "parameters_updated": true, + "smoke_runs_excluded_from_selection_and_submission": true, + "test_data_used": false + } + }, + "training_source_snapshot": "training_sources/reserved1_full", + "selection": "Minimum full-validation condition-mean failure per basis group over incumbent, listed neural checkpoints and equal probability averages with the recorded physical decoder.", + "physical_prediction_reference": "/run-state/workspace/research/context_upgrades/turbo1/predictions", + "prior_pass": 3, + "history": [ + { + "group": "d5_bX_center_5_5", + "candidates": { + "incumbent": 0.23228665865384618, + "0": 0.2337439903846154, + "blend-0": 0.23366887019230773, + "512": 0.23284254807692306, + "blend-512": 0.23275240384615387, + "1024": 0.23356370192307693, + "blend-1024": 0.23315805288461536, + "1536": 0.23218149038461539, + "blend-1536": 0.2330378605769231 + }, + "selected": "1536" + }, + { + "group": "d5_bZ_center_5_5", + "candidates": { + "incumbent": 0.21953124999999998, + "0": 0.2206580528846154, + "blend-0": 0.2208683894230769, + "512": 0.22100360576923078, + "blend-512": 0.2208984375, + "1024": 0.22104867788461538, + "blend-1024": 0.22019230769230771, + "1536": 0.22264122596153849, + "blend-1536": 0.22032752403846154 + }, + "selected": "incumbent" + } + ], + "checkpoints": { + "1536": { + "step": 1536, + "training_samples": 1572864, + "unique_training_rows_seen_in_this_phase": 466919, + "weights_sha256": "65a762bc0623024c3fbc416ff5df00d8ea275f6c7d691a54c6e0492f459a362f", + "complete": true + } + }, + "runtime": "Share physical priors when the conditioning pass and regime agree; otherwise recompute the neural prior independently. Last-only physical branches omit unused intermediate logical tracking; raw neural branches also omit the unused final physical readout.", + "last_only_equivalence_controls": [ + { + "condition": "surface_code_bX_d5_r03_center_5_5", + "maximum_probability_difference": 7.450580596923828e-07 + }, + { + "condition": "surface_code_bZ_d5_r03_center_5_5", + "maximum_probability_difference": 5.960464477539063e-08 + }, + { + "condition": "surface_code_bX_d5_r25_center_5_5", + "maximum_probability_difference": 5.960464477539063e-08 + }, + { + "condition": "surface_code_bZ_d5_r25_center_5_5", + "maximum_probability_difference": 1.7881393432617188e-07 + } + ], + "test_data_used": false, + "numerical_controls": { + "packaged_runtime_control_cpu": { + "device": "cpu", + "condition": "surface_code_bX_d5_r03_center_5_5", + "shots": 7, + "same_cpu_old_vs_new_maximum_difference": 0.0, + "old_cpu_vs_original_gpu_evaluation_maximum_difference": 4.971027374267578e-05, + "new_cpu_vs_original_gpu_evaluation_maximum_difference": 4.971027374267578e-05, + "cpu_vs_reconstructed_old_gpu_runtime_maximum_difference": 4.976987838745117e-05, + "original_gpu_evaluation_vs_reconstructed_gpu_runtime_maximum_difference": 7.748603820800781e-07, + "initial_failed_control": { + "comparison": "CPU runtime against original GPU evaluator", + "observed_maximum_difference": 4.971027374267578e-05, + "original_tolerance": 3e-06 + }, + "sources": { + "d5_base_context_model.py": "3b2d4b34a8945ddfe82d76e28b4aa917f11933ed885c0cdcd2bc389448a871fb", + "d5_context_model.py": "53342e15dcbb8bc2dd0b288d75ea115fb504be99a33bc283a518b9d76232cd99", + "d5_temporal_context_model.py": "d58bcfe01767228d18ce2078d555abf13037b5df63edf38273ba66f0966ee445", + "d5_history_context_model.py": "4cc383b4909ff740bccfd20b687f8ee46866e67f93f82fe6c4bace162149ffb4", + "d5_history_features.py": "d709cd54225aa1b14707afa436314c8392f59f748a0007d988c6d18dedd275ee", + "d5_contextual.py": "59d6c85dc4bd61e26cf7243baf0e2637c3de1d35327b2c763707badd19446550", + "turbo.py": "c07dce8d7098142f5cd550d594b948290287a8cb2221f70acaeff3965c3dac0b" + }, + "scope": "Same-device compatibility check. Reconstructed GPU runtime removes the recorded equal physical blend; that reconstruction has floating-point rounding uncertainty.", + "status": "passed_same_device_compatibility" + }, + "dispatcher_control_cpu": { + "status": "passed", + "device": "cpu", + "sources": { + "d5_context_model.py": "53342e15dcbb8bc2dd0b288d75ea115fb504be99a33bc283a518b9d76232cd99", + "d5_base_context_model.py": "3b2d4b34a8945ddfe82d76e28b4aa917f11933ed885c0cdcd2bc389448a871fb", + "d5_temporal_context_model.py": "d58bcfe01767228d18ce2078d555abf13037b5df63edf38273ba66f0966ee445", + "d5_history_context_model.py": "4cc383b4909ff740bccfd20b687f8ee46866e67f93f82fe6c4bace162149ffb4", + "d5_history_features.py": "d709cd54225aa1b14707afa436314c8392f59f748a0007d988c6d18dedd275ee" + }, + "cases": [ + { + "condition": "surface_code_bX_d5_r03_center_5_5", + "architecture": "base64", + "weights_sha256": "fb250c19cf7bb00741b6d862b8f646a2c8ab88397bb03c7bafc9085f9347eca5", + "maximum_edge_probability_difference": 0.0 + }, + { + "condition": "surface_code_bX_d5_r03_center_5_5", + "architecture": "base128", + "weights_sha256": "2a21869e7669492fac8252131434b2e09c97f1def2714988382ab7f127371bd8", + "maximum_edge_probability_difference": 0.0 + }, + { + "condition": "surface_code_bX_d5_r03_center_5_5", + "architecture": "temporal", + "weights_sha256": "9446a1e6dc46e1bcae540531e4f124930bb151ebfa600746ca77bc8f5b2aaa7c", + "maximum_edge_probability_difference": 0.0 + }, + { + "condition": "surface_code_bX_d5_r03_center_5_5", + "architecture": "history", + "weights_sha256": "c508d8968ffa143be4219a207fb54ece3e1bfe144b8a880e4ed4f3d13f092c1e", + "maximum_edge_probability_difference": 0.0 + }, + { + "condition": "surface_code_bZ_d5_r25_center_5_5", + "architecture": "base64", + "weights_sha256": "fb250c19cf7bb00741b6d862b8f646a2c8ab88397bb03c7bafc9085f9347eca5", + "maximum_edge_probability_difference": 0.0 + }, + { + "condition": "surface_code_bZ_d5_r25_center_5_5", + "architecture": "base128", + "weights_sha256": "2a21869e7669492fac8252131434b2e09c97f1def2714988382ab7f127371bd8", + "maximum_edge_probability_difference": 0.0 + }, + { + "condition": "surface_code_bZ_d5_r25_center_5_5", + "architecture": "temporal", + "weights_sha256": "9446a1e6dc46e1bcae540531e4f124930bb151ebfa600746ca77bc8f5b2aaa7c", + "maximum_edge_probability_difference": 0.0 + }, + { + "condition": "surface_code_bZ_d5_r25_center_5_5", + "architecture": "history", + "weights_sha256": "c508d8968ffa143be4219a207fb54ece3e1bfe144b8a880e4ed4f3d13f092c1e", + "maximum_edge_probability_difference": 0.0 + } + ], + "scope": "Routing and code-copy check against each direct model implementation, using training detector inputs without labels. Tiny trained temporal/history smoke weights test nonzero feature couplings; they are excluded from model selection and submission.", + "test_data_used": false + }, + "cpu_probability_precision": { + "condition": "surface_code_bX_d5_r03_center_5_5", + "validation_syndromes": 7, + "logical_labels_used": false, + "parameter_updates": 0, + "reference": "Float64 neural forward and exact contraction from the same stored weights and fixed float32 input logits, on CPU", + "cpu_float32_vs_float64_maximum_difference": 7.624897924163321e-08, + "cpu_float32_edges_float64_contraction_vs_float64_maximum_difference": 4.725248914372315e-08, + "gpu_float32_vs_float64_maximum_difference": 4.964999121059854e-05, + "cpu_vs_gpu_float32_maximum_difference": 4.971027374267578e-05, + "maximum_neural_edge_probability_difference": 2.6330936014895556e-08, + "float32_edge_values_above_one_minus_1e6": 0, + "scope": "Precision diagnostic only; the published model is unchanged. Same-device old/new packaged-code compatibility was independently exact." + }, + "priors_only_control_cpu": { + "status": "passed", + "device": "cpu", + "source_sha256": "c07dce8d7098142f5cd550d594b948290287a8cb2221f70acaeff3965c3dac0b", + "records": [ + { + "condition": "surface_code_bX_d5_r03_center_5_5", + "shots": 3, + "priors_bitwise_identical": true, + "normal_seconds_including_compilation": 2.7116777896881104, + "priors_only_seconds_warm": 0.13569164276123047 + }, + { + "condition": "surface_code_bZ_d5_r25_center_5_5", + "shots": 3, + "priors_bitwise_identical": true, + "normal_seconds_including_compilation": 3.557781457901001, + "priors_only_seconds_warm": 1.7711329460144043 + } + ], + "scope": "CPU numerical equivalence on supplied training syndromes; timings are not a controlled speed comparison." + } + } + } + ], + "short_syndrome_updates": [ + { + "training": { + "initialization": "256 residual logits per condition initialized independently Normal(0,.01), seeds20261126 through20261133; optimized in this session", + "architecture": "One categorical residual per possible8-bit detection syndrome, added to an exact physical DEM logit; no sample IDs or row indices are model features", + "loss": "Binomial logical BCE sufficient statistics plus strength times cross entropy to the fixed physical prior; damped Newton optimization from random residual initialization", + "fixed_prior": "Exact full-DEM probabilities for all256 possible input syndromes, computed now from the authorized packaged even-fitted DEM plans; no external trained weights or decoder answers", + "training": "All19880 supplied training labels for each of eight d3 one-round conditions; only aggregate counts by detection syndrome enter fitting", + "data_scope": "This is a finite categorical classifier, indexed by detection events, not a per-shot answer table. Other122 conditions retain the incumbent in any candidate benchmark.", + "selection": "One common strength and optional equal probability blend for all eight geometries/bases, minimizing full validation mean; all other conditions unchanged", + "base_package": { + "package": "/run-state/workspace/research/context_upgrades/neural_d5_full3_swa/package", + "predictions": "/run-state/workspace/research/context_upgrades/neural_d5_full3_swa/predictions", + "score": "/run-state/workspace/research/context_upgrades/neural_d5_full3_swa/score.json", + "P": 0.7663217397836538 + }, + "test_data_used": false, + "training_records": [ + { + "condition": "surface_code_bX_d3_r01_center_3_5", + "training_shots": 19880, + "observed_syndromes": 149, + "initial_seed": 20261126, + "physical_plan_sha256": "640c371577096ba08c799b70fd16d03a06a37004feaa15c85c4cb6ef87529080", + "training_arrays_sha256": "a7acd6f6e5372873cf2d34946876a791996238efdea39f7fa33f7d2eabc1c10f" + }, + { + "condition": "surface_code_bX_d3_r01_center_5_3", + "training_shots": 19880, + "observed_syndromes": 157, + "initial_seed": 20261127, + "physical_plan_sha256": "4a0f8f630b7f34fba620a4e03bd77e14fb80149e70b7da80b6176dbd24d9ddc8", + "training_arrays_sha256": "0e2267afc5dc4e761d3b9e09288875f2077215fac2f902ce4151699c38c24531" + }, + { + "condition": "surface_code_bX_d3_r01_center_5_7", + "training_shots": 19880, + "observed_syndromes": 152, + "initial_seed": 20261128, + "physical_plan_sha256": "de8914194be7689d70e9424540923197a5c0465fb42ec96556df97b73ba250c1", + "training_arrays_sha256": "0542609248a5d2c8b410666bb901361b60c39cb8b32b3b46fdd24a6c7913db56" + }, + { + "condition": "surface_code_bX_d3_r01_center_7_5", + "training_shots": 19880, + "observed_syndromes": 147, + "initial_seed": 20261129, + "physical_plan_sha256": "bc1a6888cc5a854f0348cab463b8879c2d176d9509176b944b7f4265e0772ab3", + "training_arrays_sha256": "ccd43f09fba55b2138a5401e6f5c89cc7b4c4ec470a07cd037d9f715acaa1188" + }, + { + "condition": "surface_code_bZ_d3_r01_center_3_5", + "training_shots": 19880, + "observed_syndromes": 153, + "initial_seed": 20261130, + "physical_plan_sha256": "1931b5b85d0014c2a928a40c3ec502316ff30ea1632a25c5f64e2694f828434b", + "training_arrays_sha256": "aa27eee730c88b2071b5fd97f9d47a0f3ad010e29202415f786babc073d405e4" + }, + { + "condition": "surface_code_bZ_d3_r01_center_5_3", + "training_shots": 19880, + "observed_syndromes": 159, + "initial_seed": 20261131, + "physical_plan_sha256": "6d231f857bbe85040c91af1160c2dda16557a67851deaedc8092412f6abeb294", + "training_arrays_sha256": "569131ce49a2c1060ebd472c0290fc0c1de6e522cd7cd7aa92b10e17cdd1783c" + }, + { + "condition": "surface_code_bZ_d3_r01_center_5_7", + "training_shots": 19880, + "observed_syndromes": 158, + "initial_seed": 20261132, + "physical_plan_sha256": "ef285cea44ad63e0452596d4be65c8844ea8a7dcc49fb31b6a6241d367ed63eb", + "training_arrays_sha256": "6928ade685b05f76b7a3a9dc6423504d0bdce09742603c24978aa21fcf106f88" + }, + { + "condition": "surface_code_bZ_d3_r01_center_7_5", + "training_shots": 19880, + "observed_syndromes": 160, + "initial_seed": 20261133, + "physical_plan_sha256": "82bee01cf3e00079270a27cb79472322867548df5c9dc4db3252e4c6ec89e6a6", + "training_arrays_sha256": "afbc73fc5ca8e3b8e996377ab3df5a5b9397f36362e72c01feea7848ea1995f3" + } + ], + "records": [ + { + "condition": "surface_code_bX_d3_r01_center_3_5", + "prior_strength": 16, + "seed": 20261126, + "iterations": 8, + "failure": 0.0134765625, + "blended_failure": 0.013671875, + "incumbent_failure": 0.0134765625, + "negative_log_likelihood": 0.04649575086997129, + "weights_sha256": "d985985dedbe644bfae165330f4f46da14d04efbc4cad1af81c5510115380701" + }, + { + "condition": "surface_code_bX_d3_r01_center_3_5", + "prior_strength": 64, + "seed": 20261126, + "iterations": 6, + "failure": 0.0140625, + "blended_failure": 0.0140625, + "incumbent_failure": 0.0134765625, + "negative_log_likelihood": 0.04591998541695955, + "weights_sha256": "17383d153dd1dfef62b3d4f6c5b7549c3209150faf0714e78fede09b941ecc3a" + }, + { + "condition": "surface_code_bX_d3_r01_center_3_5", + "prior_strength": 256, + "seed": 20261126, + "iterations": 5, + "failure": 0.0140625, + "blended_failure": 0.0140625, + "incumbent_failure": 0.0134765625, + "negative_log_likelihood": 0.0458401737684183, + "weights_sha256": "f863a64ca698135f6fac6ac184d3c689db684a15d73bf0565418b240d76b5c58" + }, + { + "condition": "surface_code_bX_d3_r01_center_3_5", + "prior_strength": 1024, + "seed": 20261126, + "iterations": 5, + "failure": 0.0140625, + "blended_failure": 0.0140625, + "incumbent_failure": 0.0134765625, + "negative_log_likelihood": 0.045887733186657405, + "weights_sha256": "ded1a941e0dfc58e55ced6523720445fb70032d2d15c9929b0c93544f7c567f8" + }, + { + "condition": "surface_code_bX_d3_r01_center_5_3", + "prior_strength": 16, + "seed": 20261127, + "iterations": 8, + "failure": 0.0177734375, + "blended_failure": 0.0177734375, + "incumbent_failure": 0.0193359375, + "negative_log_likelihood": 0.05532273244895745, + "weights_sha256": "02950043334a38d3e7980cc97685904338553746653bd2d6a4c9be88ae845270" + }, + { + "condition": "surface_code_bX_d3_r01_center_5_3", + "prior_strength": 64, + "seed": 20261127, + "iterations": 6, + "failure": 0.01875, + "blended_failure": 0.0193359375, + "incumbent_failure": 0.0193359375, + "negative_log_likelihood": 0.055166841080990084, + "weights_sha256": "412ee1f453695e4f3534dbe8d7eb1ca565d06fd7c718b52fe9a306b35e845d9d" + }, + { + "condition": "surface_code_bX_d3_r01_center_5_3", + "prior_strength": 256, + "seed": 20261127, + "iterations": 5, + "failure": 0.01953125, + "blended_failure": 0.0193359375, + "incumbent_failure": 0.0193359375, + "negative_log_likelihood": 0.055186840974757456, + "weights_sha256": "12d8f72c2ee5cb837145aaf9a1b485d8517e4374721eebcbea9803d3bfdc8fcd" + }, + { + "condition": "surface_code_bX_d3_r01_center_5_3", + "prior_strength": 1024, + "seed": 20261127, + "iterations": 4, + "failure": 0.01953125, + "blended_failure": 0.0193359375, + "incumbent_failure": 0.0193359375, + "negative_log_likelihood": 0.05544033886527203, + "weights_sha256": "d1daa90794c1c3c8cd00134d9b22a7173aee4dd9b139b86f6d3f9b8f2131056d" + }, + { + "condition": "surface_code_bX_d3_r01_center_5_7", + "prior_strength": 16, + "seed": 20261128, + "iterations": 7, + "failure": 0.015234375, + "blended_failure": 0.0158203125, + "incumbent_failure": 0.0158203125, + "negative_log_likelihood": 0.049592331750930654, + "weights_sha256": "ad21a8640e2fe7bbd550225e354dedcbad8cb70433b892f45d28fa2346ab88de" + }, + { + "condition": "surface_code_bX_d3_r01_center_5_7", + "prior_strength": 64, + "seed": 20261128, + "iterations": 6, + "failure": 0.015234375, + "blended_failure": 0.0158203125, + "incumbent_failure": 0.0158203125, + "negative_log_likelihood": 0.04900882633372332, + "weights_sha256": "4664564f60149b00b1754a3f9e91c8b04b29ef819b231bf17ea7588346433a57" + }, + { + "condition": "surface_code_bX_d3_r01_center_5_7", + "prior_strength": 256, + "seed": 20261128, + "iterations": 6, + "failure": 0.015234375, + "blended_failure": 0.0158203125, + "incumbent_failure": 0.0158203125, + "negative_log_likelihood": 0.04861554683295004, + "weights_sha256": "cad51322361a95020501afa64e356f2a49dd02afa0cd91294d4498f7eb0c5a8d" + }, + { + "condition": "surface_code_bX_d3_r01_center_5_7", + "prior_strength": 1024, + "seed": 20261128, + "iterations": 6, + "failure": 0.015234375, + "blended_failure": 0.0158203125, + "incumbent_failure": 0.0158203125, + "negative_log_likelihood": 0.04843255984360956, + "weights_sha256": "5fe850e6313cb9ed6631697684afeeb7b7c5857a5c74fad66189cfcf8a08218b" + }, + { + "condition": "surface_code_bX_d3_r01_center_7_5", + "prior_strength": 16, + "seed": 20261129, + "iterations": 7, + "failure": 0.0158203125, + "blended_failure": 0.0158203125, + "incumbent_failure": 0.01484375, + "negative_log_likelihood": 0.05156220348280275, + "weights_sha256": "56c2fd4a7c35033084020cd1f5c9dcc2ab1cf2c631d0e88cc87ac4c715c6af17" + }, + { + "condition": "surface_code_bX_d3_r01_center_7_5", + "prior_strength": 64, + "seed": 20261129, + "iterations": 6, + "failure": 0.0154296875, + "blended_failure": 0.0154296875, + "incumbent_failure": 0.01484375, + "negative_log_likelihood": 0.05139675960346585, + "weights_sha256": "0bf66368e18c8d1baecaa614d4c0cec16304ac14bcd29d22d1cdb2a0ff6c0173" + }, + { + "condition": "surface_code_bX_d3_r01_center_7_5", + "prior_strength": 256, + "seed": 20261129, + "iterations": 6, + "failure": 0.0154296875, + "blended_failure": 0.0154296875, + "incumbent_failure": 0.01484375, + "negative_log_likelihood": 0.05135569004239689, + "weights_sha256": "d9581a6f29f9d3ea54d482c17995a37b55e3b4253d36e1d49cfce95b398eb5c2" + }, + { + "condition": "surface_code_bX_d3_r01_center_7_5", + "prior_strength": 1024, + "seed": 20261129, + "iterations": 6, + "failure": 0.0154296875, + "blended_failure": 0.0154296875, + "incumbent_failure": 0.01484375, + "negative_log_likelihood": 0.05141882723288258, + "weights_sha256": "2c4e4592067fcbbe69d6ede68c4494209652a2d510e74aa2ea3b4420c3cdd741" + }, + { + "condition": "surface_code_bZ_d3_r01_center_3_5", + "prior_strength": 16, + "seed": 20261130, + "iterations": 7, + "failure": 0.0173828125, + "blended_failure": 0.0173828125, + "incumbent_failure": 0.016796875, + "negative_log_likelihood": 0.054216247940585036, + "weights_sha256": "7b12f028f764293a9496d9fd2ddbf92ba9c23653d7889a602a9ec23f8cde3d6b" + }, + { + "condition": "surface_code_bZ_d3_r01_center_3_5", + "prior_strength": 64, + "seed": 20261130, + "iterations": 6, + "failure": 0.017578125, + "blended_failure": 0.0171875, + "incumbent_failure": 0.016796875, + "negative_log_likelihood": 0.05364509063427466, + "weights_sha256": "1ad2ffaafa33009129a0953d79fe2d30ad62308eb9dbf8da0b76eca018a5b55a" + }, + { + "condition": "surface_code_bZ_d3_r01_center_3_5", + "prior_strength": 256, + "seed": 20261130, + "iterations": 5, + "failure": 0.0171875, + "blended_failure": 0.016796875, + "incumbent_failure": 0.016796875, + "negative_log_likelihood": 0.05368896256105915, + "weights_sha256": "64619c9b7bd40a14651bcd056d58f5b55e79eb334a4e5105ff12cb7ff6f2400a" + }, + { + "condition": "surface_code_bZ_d3_r01_center_3_5", + "prior_strength": 1024, + "seed": 20261130, + "iterations": 6, + "failure": 0.0171875, + "blended_failure": 0.016796875, + "incumbent_failure": 0.016796875, + "negative_log_likelihood": 0.05387292464104988, + "weights_sha256": "b1490702e212d7cdcc936f55186b15411ced3a8928a1a32f2d4ac1212706fabf" + }, + { + "condition": "surface_code_bZ_d3_r01_center_5_3", + "prior_strength": 16, + "seed": 20261131, + "iterations": 8, + "failure": 0.0125, + "blended_failure": 0.0125, + "incumbent_failure": 0.0125, + "negative_log_likelihood": 0.04709647994869577, + "weights_sha256": "eb56715dfc5e8c6b8866ceeb2636422acad9992dd2c625355dc21b94c25351f0" + }, + { + "condition": "surface_code_bZ_d3_r01_center_5_3", + "prior_strength": 64, + "seed": 20261131, + "iterations": 6, + "failure": 0.0125, + "blended_failure": 0.0125, + "incumbent_failure": 0.0125, + "negative_log_likelihood": 0.046679107084477436, + "weights_sha256": "320cd10cc8cd9d13d20d9ce0ea90413ed8343587f0c77abb0e1c8c84503aa2d8" + }, + { + "condition": "surface_code_bZ_d3_r01_center_5_3", + "prior_strength": 256, + "seed": 20261131, + "iterations": 5, + "failure": 0.0125, + "blended_failure": 0.0125, + "incumbent_failure": 0.0125, + "negative_log_likelihood": 0.04621785858320204, + "weights_sha256": "c7e63309de0668bd4d5c05169ecd6af1879c88be10947d0fdb958ca37068d433" + }, + { + "condition": "surface_code_bZ_d3_r01_center_5_3", + "prior_strength": 1024, + "seed": 20261131, + "iterations": 4, + "failure": 0.0125, + "blended_failure": 0.0125, + "incumbent_failure": 0.0125, + "negative_log_likelihood": 0.04577880173787941, + "weights_sha256": "494824e979e52fbf0302e706ff6786d89ce60b607afd6b376cad9700f328feda" + }, + { + "condition": "surface_code_bZ_d3_r01_center_5_7", + "prior_strength": 16, + "seed": 20261132, + "iterations": 7, + "failure": 0.01484375, + "blended_failure": 0.014453125, + "incumbent_failure": 0.014453125, + "negative_log_likelihood": 0.05068038016752655, + "weights_sha256": "0b4c35df1d44c9353a2ea505205f3def95bb28de0c7052ded18cf599bef2709b" + }, + { + "condition": "surface_code_bZ_d3_r01_center_5_7", + "prior_strength": 64, + "seed": 20261132, + "iterations": 6, + "failure": 0.014453125, + "blended_failure": 0.014453125, + "incumbent_failure": 0.014453125, + "negative_log_likelihood": 0.049663607204405706, + "weights_sha256": "b18deed32b51a58789873a1b45718f5c40d1d9500b57e113520b700a66902f1a" + }, + { + "condition": "surface_code_bZ_d3_r01_center_5_7", + "prior_strength": 256, + "seed": 20261132, + "iterations": 5, + "failure": 0.014453125, + "blended_failure": 0.014453125, + "incumbent_failure": 0.014453125, + "negative_log_likelihood": 0.04918133832768282, + "weights_sha256": "12e71625e223602cbc9f7ae150473a1dad2c32f2d9221a4b88ccb93babc2c41d" + }, + { + "condition": "surface_code_bZ_d3_r01_center_5_7", + "prior_strength": 1024, + "seed": 20261132, + "iterations": 6, + "failure": 0.014453125, + "blended_failure": 0.014453125, + "incumbent_failure": 0.014453125, + "negative_log_likelihood": 0.049002647954447996, + "weights_sha256": "e909b83698caba60ad01e28027b28005544cd8e795f88574fc6f81bcf56b2add" + }, + { + "condition": "surface_code_bZ_d3_r01_center_7_5", + "prior_strength": 16, + "seed": 20261133, + "iterations": 7, + "failure": 0.016015625, + "blended_failure": 0.016015625, + "incumbent_failure": 0.01640625, + "negative_log_likelihood": 0.05204562159505248, + "weights_sha256": "b03b071238dda333574a4da2d9b2bb999cf362a83b9194b1c53871e9438f9f45" + }, + { + "condition": "surface_code_bZ_d3_r01_center_7_5", + "prior_strength": 64, + "seed": 20261133, + "iterations": 6, + "failure": 0.016015625, + "blended_failure": 0.016015625, + "incumbent_failure": 0.01640625, + "negative_log_likelihood": 0.05177096705064832, + "weights_sha256": "2a4c8113ee9a1dadcfc0f1b7ff8d164e7c8771d5764b0512ee1a5de2a8aaa395" + }, + { + "condition": "surface_code_bZ_d3_r01_center_7_5", + "prior_strength": 256, + "seed": 20261133, + "iterations": 6, + "failure": 0.016015625, + "blended_failure": 0.01640625, + "incumbent_failure": 0.01640625, + "negative_log_likelihood": 0.051861030681133645, + "weights_sha256": "f201491af84870ffa8c1b59e16dea1fea910e7fda32f0e3d82863943222b57ee" + }, + { + "condition": "surface_code_bZ_d3_r01_center_7_5", + "prior_strength": 1024, + "seed": 20261133, + "iterations": 6, + "failure": 0.01640625, + "blended_failure": 0.01640625, + "incumbent_failure": 0.01640625, + "negative_log_likelihood": 0.05206536190640361, + "weights_sha256": "b7cfd76b6574457626306868e31ab5327a1950cbbca41f6384eb2c4bc759e800" + } + ], + "choices": { + "incumbent": 0.0154541015625, + "16": 0.015380859375, + "blend-16": 0.015429687499999999, + "64": 0.0155029296875, + "blend-64": 0.015600585937500001, + "256": 0.0155517578125, + "blend-256": 0.015600585937500001, + "1024": 0.0156005859375, + "blend-1024": 0.015600585937500001 + }, + "selected": "16", + "expected_full_P": 0.7663245567908653, + "validation_P_gain": 2.817007211538435e-06, + "source_sha256": "7e75f14190b18b05e9af540a8ef0f75522060e78c30b05475686ea18faf0035f", + "seconds": 3.316046953201294 + }, + "packaging_selection": { + "incumbent": 0.0154541015625, + "16": 0.015380859375, + "64": 0.0155029296875, + "256": 0.0155517578125, + "1024": 0.0156005859375 + }, + "selected": "16", + "selection_scope": "One common prior strength for all eight short conditions; other122 condition predictions retained", + "runtime_source_sha256": "451ce740551f9e13348064f2e726e7e31a611b64bcf5d95def601deb78e854af" + }, + { + "training": { + "initialization": "256 residual logits per condition initialized independently Normal(0,.01), seeds20261126 through20261133; optimized in this session", + "architecture": "One categorical residual per possible8-bit detection syndrome, added to an exact physical DEM logit; no sample IDs or row indices are model features", + "loss": "Binomial logical BCE sufficient statistics plus strength times cross entropy to the fixed physical prior; damped Newton optimization from random residual initialization", + "fixed_prior": "Exact full-DEM probabilities for all256 possible input syndromes, computed now from the authorized packaged even-fitted DEM plans; no external trained weights or decoder answers", + "training": "All19880 supplied training labels for each of eight d3 one-round conditions; only aggregate counts by detection syndrome enter fitting", + "data_scope": "This is a finite categorical classifier, indexed by detection events, not a per-shot answer table. Other122 conditions retain the incumbent in any candidate benchmark.", + "selection": "One common strength and optional equal probability blend for all eight geometries/bases, minimizing full validation mean; all other conditions unchanged", + "base_package": { + "package": "/run-state/workspace/research/context_upgrades/neural_d5_full3_swa/package", + "predictions": "/run-state/workspace/research/context_upgrades/neural_d5_full3_swa/predictions", + "score": "/run-state/workspace/research/context_upgrades/neural_d5_full3_swa/score.json", + "P": 0.7663217397836538 + }, + "test_data_used": false, + "training_records": [ + { + "condition": "surface_code_bX_d3_r01_center_3_5", + "training_shots": 19880, + "observed_syndromes": 149, + "initial_seed": 20261126, + "physical_plan_sha256": "640c371577096ba08c799b70fd16d03a06a37004feaa15c85c4cb6ef87529080", + "training_arrays_sha256": "a7acd6f6e5372873cf2d34946876a791996238efdea39f7fa33f7d2eabc1c10f" + }, + { + "condition": "surface_code_bX_d3_r01_center_5_3", + "training_shots": 19880, + "observed_syndromes": 157, + "initial_seed": 20261127, + "physical_plan_sha256": "4a0f8f630b7f34fba620a4e03bd77e14fb80149e70b7da80b6176dbd24d9ddc8", + "training_arrays_sha256": "0e2267afc5dc4e761d3b9e09288875f2077215fac2f902ce4151699c38c24531" + }, + { + "condition": "surface_code_bX_d3_r01_center_5_7", + "training_shots": 19880, + "observed_syndromes": 152, + "initial_seed": 20261128, + "physical_plan_sha256": "de8914194be7689d70e9424540923197a5c0465fb42ec96556df97b73ba250c1", + "training_arrays_sha256": "0542609248a5d2c8b410666bb901361b60c39cb8b32b3b46fdd24a6c7913db56" + }, + { + "condition": "surface_code_bX_d3_r01_center_7_5", + "training_shots": 19880, + "observed_syndromes": 147, + "initial_seed": 20261129, + "physical_plan_sha256": "bc1a6888cc5a854f0348cab463b8879c2d176d9509176b944b7f4265e0772ab3", + "training_arrays_sha256": "ccd43f09fba55b2138a5401e6f5c89cc7b4c4ec470a07cd037d9f715acaa1188" + }, + { + "condition": "surface_code_bZ_d3_r01_center_3_5", + "training_shots": 19880, + "observed_syndromes": 153, + "initial_seed": 20261130, + "physical_plan_sha256": "1931b5b85d0014c2a928a40c3ec502316ff30ea1632a25c5f64e2694f828434b", + "training_arrays_sha256": "aa27eee730c88b2071b5fd97f9d47a0f3ad010e29202415f786babc073d405e4" + }, + { + "condition": "surface_code_bZ_d3_r01_center_5_3", + "training_shots": 19880, + "observed_syndromes": 159, + "initial_seed": 20261131, + "physical_plan_sha256": "6d231f857bbe85040c91af1160c2dda16557a67851deaedc8092412f6abeb294", + "training_arrays_sha256": "569131ce49a2c1060ebd472c0290fc0c1de6e522cd7cd7aa92b10e17cdd1783c" + }, + { + "condition": "surface_code_bZ_d3_r01_center_5_7", + "training_shots": 19880, + "observed_syndromes": 158, + "initial_seed": 20261132, + "physical_plan_sha256": "ef285cea44ad63e0452596d4be65c8844ea8a7dcc49fb31b6a6241d367ed63eb", + "training_arrays_sha256": "6928ade685b05f76b7a3a9dc6423504d0bdce09742603c24978aa21fcf106f88" + }, + { + "condition": "surface_code_bZ_d3_r01_center_7_5", + "training_shots": 19880, + "observed_syndromes": 160, + "initial_seed": 20261133, + "physical_plan_sha256": "82bee01cf3e00079270a27cb79472322867548df5c9dc4db3252e4c6ec89e6a6", + "training_arrays_sha256": "afbc73fc5ca8e3b8e996377ab3df5a5b9397f36362e72c01feea7848ea1995f3" + } + ], + "records": [ + { + "condition": "surface_code_bX_d3_r01_center_3_5", + "prior_strength": 16, + "seed": 20261126, + "iterations": 8, + "failure": 0.0134765625, + "blended_failure": 0.013671875, + "incumbent_failure": 0.0134765625, + "negative_log_likelihood": 0.04649575086997129, + "weights_sha256": "d985985dedbe644bfae165330f4f46da14d04efbc4cad1af81c5510115380701" + }, + { + "condition": "surface_code_bX_d3_r01_center_3_5", + "prior_strength": 64, + "seed": 20261126, + "iterations": 6, + "failure": 0.0140625, + "blended_failure": 0.0140625, + "incumbent_failure": 0.0134765625, + "negative_log_likelihood": 0.04591998541695955, + "weights_sha256": "17383d153dd1dfef62b3d4f6c5b7549c3209150faf0714e78fede09b941ecc3a" + }, + { + "condition": "surface_code_bX_d3_r01_center_3_5", + "prior_strength": 256, + "seed": 20261126, + "iterations": 5, + "failure": 0.0140625, + "blended_failure": 0.0140625, + "incumbent_failure": 0.0134765625, + "negative_log_likelihood": 0.0458401737684183, + "weights_sha256": "f863a64ca698135f6fac6ac184d3c689db684a15d73bf0565418b240d76b5c58" + }, + { + "condition": "surface_code_bX_d3_r01_center_3_5", + "prior_strength": 1024, + "seed": 20261126, + "iterations": 5, + "failure": 0.0140625, + "blended_failure": 0.0140625, + "incumbent_failure": 0.0134765625, + "negative_log_likelihood": 0.045887733186657405, + "weights_sha256": "ded1a941e0dfc58e55ced6523720445fb70032d2d15c9929b0c93544f7c567f8" + }, + { + "condition": "surface_code_bX_d3_r01_center_5_3", + "prior_strength": 16, + "seed": 20261127, + "iterations": 8, + "failure": 0.0177734375, + "blended_failure": 0.0177734375, + "incumbent_failure": 0.0193359375, + "negative_log_likelihood": 0.05532273244895745, + "weights_sha256": "02950043334a38d3e7980cc97685904338553746653bd2d6a4c9be88ae845270" + }, + { + "condition": "surface_code_bX_d3_r01_center_5_3", + "prior_strength": 64, + "seed": 20261127, + "iterations": 6, + "failure": 0.01875, + "blended_failure": 0.0193359375, + "incumbent_failure": 0.0193359375, + "negative_log_likelihood": 0.055166841080990084, + "weights_sha256": "412ee1f453695e4f3534dbe8d7eb1ca565d06fd7c718b52fe9a306b35e845d9d" + }, + { + "condition": "surface_code_bX_d3_r01_center_5_3", + "prior_strength": 256, + "seed": 20261127, + "iterations": 5, + "failure": 0.01953125, + "blended_failure": 0.0193359375, + "incumbent_failure": 0.0193359375, + "negative_log_likelihood": 0.055186840974757456, + "weights_sha256": "12d8f72c2ee5cb837145aaf9a1b485d8517e4374721eebcbea9803d3bfdc8fcd" + }, + { + "condition": "surface_code_bX_d3_r01_center_5_3", + "prior_strength": 1024, + "seed": 20261127, + "iterations": 4, + "failure": 0.01953125, + "blended_failure": 0.0193359375, + "incumbent_failure": 0.0193359375, + "negative_log_likelihood": 0.05544033886527203, + "weights_sha256": "d1daa90794c1c3c8cd00134d9b22a7173aee4dd9b139b86f6d3f9b8f2131056d" + }, + { + "condition": "surface_code_bX_d3_r01_center_5_7", + "prior_strength": 16, + "seed": 20261128, + "iterations": 7, + "failure": 0.015234375, + "blended_failure": 0.0158203125, + "incumbent_failure": 0.0158203125, + "negative_log_likelihood": 0.049592331750930654, + "weights_sha256": "ad21a8640e2fe7bbd550225e354dedcbad8cb70433b892f45d28fa2346ab88de" + }, + { + "condition": "surface_code_bX_d3_r01_center_5_7", + "prior_strength": 64, + "seed": 20261128, + "iterations": 6, + "failure": 0.015234375, + "blended_failure": 0.0158203125, + "incumbent_failure": 0.0158203125, + "negative_log_likelihood": 0.04900882633372332, + "weights_sha256": "4664564f60149b00b1754a3f9e91c8b04b29ef819b231bf17ea7588346433a57" + }, + { + "condition": "surface_code_bX_d3_r01_center_5_7", + "prior_strength": 256, + "seed": 20261128, + "iterations": 6, + "failure": 0.015234375, + "blended_failure": 0.0158203125, + "incumbent_failure": 0.0158203125, + "negative_log_likelihood": 0.04861554683295004, + "weights_sha256": "cad51322361a95020501afa64e356f2a49dd02afa0cd91294d4498f7eb0c5a8d" + }, + { + "condition": "surface_code_bX_d3_r01_center_5_7", + "prior_strength": 1024, + "seed": 20261128, + "iterations": 6, + "failure": 0.015234375, + "blended_failure": 0.0158203125, + "incumbent_failure": 0.0158203125, + "negative_log_likelihood": 0.04843255984360956, + "weights_sha256": "5fe850e6313cb9ed6631697684afeeb7b7c5857a5c74fad66189cfcf8a08218b" + }, + { + "condition": "surface_code_bX_d3_r01_center_7_5", + "prior_strength": 16, + "seed": 20261129, + "iterations": 7, + "failure": 0.0158203125, + "blended_failure": 0.0158203125, + "incumbent_failure": 0.01484375, + "negative_log_likelihood": 0.05156220348280275, + "weights_sha256": "56c2fd4a7c35033084020cd1f5c9dcc2ab1cf2c631d0e88cc87ac4c715c6af17" + }, + { + "condition": "surface_code_bX_d3_r01_center_7_5", + "prior_strength": 64, + "seed": 20261129, + "iterations": 6, + "failure": 0.0154296875, + "blended_failure": 0.0154296875, + "incumbent_failure": 0.01484375, + "negative_log_likelihood": 0.05139675960346585, + "weights_sha256": "0bf66368e18c8d1baecaa614d4c0cec16304ac14bcd29d22d1cdb2a0ff6c0173" + }, + { + "condition": "surface_code_bX_d3_r01_center_7_5", + "prior_strength": 256, + "seed": 20261129, + "iterations": 6, + "failure": 0.0154296875, + "blended_failure": 0.0154296875, + "incumbent_failure": 0.01484375, + "negative_log_likelihood": 0.05135569004239689, + "weights_sha256": "d9581a6f29f9d3ea54d482c17995a37b55e3b4253d36e1d49cfce95b398eb5c2" + }, + { + "condition": "surface_code_bX_d3_r01_center_7_5", + "prior_strength": 1024, + "seed": 20261129, + "iterations": 6, + "failure": 0.0154296875, + "blended_failure": 0.0154296875, + "incumbent_failure": 0.01484375, + "negative_log_likelihood": 0.05141882723288258, + "weights_sha256": "2c4e4592067fcbbe69d6ede68c4494209652a2d510e74aa2ea3b4420c3cdd741" + }, + { + "condition": "surface_code_bZ_d3_r01_center_3_5", + "prior_strength": 16, + "seed": 20261130, + "iterations": 7, + "failure": 0.0173828125, + "blended_failure": 0.0173828125, + "incumbent_failure": 0.016796875, + "negative_log_likelihood": 0.054216247940585036, + "weights_sha256": "7b12f028f764293a9496d9fd2ddbf92ba9c23653d7889a602a9ec23f8cde3d6b" + }, + { + "condition": "surface_code_bZ_d3_r01_center_3_5", + "prior_strength": 64, + "seed": 20261130, + "iterations": 6, + "failure": 0.017578125, + "blended_failure": 0.0171875, + "incumbent_failure": 0.016796875, + "negative_log_likelihood": 0.05364509063427466, + "weights_sha256": "1ad2ffaafa33009129a0953d79fe2d30ad62308eb9dbf8da0b76eca018a5b55a" + }, + { + "condition": "surface_code_bZ_d3_r01_center_3_5", + "prior_strength": 256, + "seed": 20261130, + "iterations": 5, + "failure": 0.0171875, + "blended_failure": 0.016796875, + "incumbent_failure": 0.016796875, + "negative_log_likelihood": 0.05368896256105915, + "weights_sha256": "64619c9b7bd40a14651bcd056d58f5b55e79eb334a4e5105ff12cb7ff6f2400a" + }, + { + "condition": "surface_code_bZ_d3_r01_center_3_5", + "prior_strength": 1024, + "seed": 20261130, + "iterations": 6, + "failure": 0.0171875, + "blended_failure": 0.016796875, + "incumbent_failure": 0.016796875, + "negative_log_likelihood": 0.05387292464104988, + "weights_sha256": "b1490702e212d7cdcc936f55186b15411ced3a8928a1a32f2d4ac1212706fabf" + }, + { + "condition": "surface_code_bZ_d3_r01_center_5_3", + "prior_strength": 16, + "seed": 20261131, + "iterations": 8, + "failure": 0.0125, + "blended_failure": 0.0125, + "incumbent_failure": 0.0125, + "negative_log_likelihood": 0.04709647994869577, + "weights_sha256": "eb56715dfc5e8c6b8866ceeb2636422acad9992dd2c625355dc21b94c25351f0" + }, + { + "condition": "surface_code_bZ_d3_r01_center_5_3", + "prior_strength": 64, + "seed": 20261131, + "iterations": 6, + "failure": 0.0125, + "blended_failure": 0.0125, + "incumbent_failure": 0.0125, + "negative_log_likelihood": 0.046679107084477436, + "weights_sha256": "320cd10cc8cd9d13d20d9ce0ea90413ed8343587f0c77abb0e1c8c84503aa2d8" + }, + { + "condition": "surface_code_bZ_d3_r01_center_5_3", + "prior_strength": 256, + "seed": 20261131, + "iterations": 5, + "failure": 0.0125, + "blended_failure": 0.0125, + "incumbent_failure": 0.0125, + "negative_log_likelihood": 0.04621785858320204, + "weights_sha256": "c7e63309de0668bd4d5c05169ecd6af1879c88be10947d0fdb958ca37068d433" + }, + { + "condition": "surface_code_bZ_d3_r01_center_5_3", + "prior_strength": 1024, + "seed": 20261131, + "iterations": 4, + "failure": 0.0125, + "blended_failure": 0.0125, + "incumbent_failure": 0.0125, + "negative_log_likelihood": 0.04577880173787941, + "weights_sha256": "494824e979e52fbf0302e706ff6786d89ce60b607afd6b376cad9700f328feda" + }, + { + "condition": "surface_code_bZ_d3_r01_center_5_7", + "prior_strength": 16, + "seed": 20261132, + "iterations": 7, + "failure": 0.01484375, + "blended_failure": 0.014453125, + "incumbent_failure": 0.014453125, + "negative_log_likelihood": 0.05068038016752655, + "weights_sha256": "0b4c35df1d44c9353a2ea505205f3def95bb28de0c7052ded18cf599bef2709b" + }, + { + "condition": "surface_code_bZ_d3_r01_center_5_7", + "prior_strength": 64, + "seed": 20261132, + "iterations": 6, + "failure": 0.014453125, + "blended_failure": 0.014453125, + "incumbent_failure": 0.014453125, + "negative_log_likelihood": 0.049663607204405706, + "weights_sha256": "b18deed32b51a58789873a1b45718f5c40d1d9500b57e113520b700a66902f1a" + }, + { + "condition": "surface_code_bZ_d3_r01_center_5_7", + "prior_strength": 256, + "seed": 20261132, + "iterations": 5, + "failure": 0.014453125, + "blended_failure": 0.014453125, + "incumbent_failure": 0.014453125, + "negative_log_likelihood": 0.04918133832768282, + "weights_sha256": "12e71625e223602cbc9f7ae150473a1dad2c32f2d9221a4b88ccb93babc2c41d" + }, + { + "condition": "surface_code_bZ_d3_r01_center_5_7", + "prior_strength": 1024, + "seed": 20261132, + "iterations": 6, + "failure": 0.014453125, + "blended_failure": 0.014453125, + "incumbent_failure": 0.014453125, + "negative_log_likelihood": 0.049002647954447996, + "weights_sha256": "e909b83698caba60ad01e28027b28005544cd8e795f88574fc6f81bcf56b2add" + }, + { + "condition": "surface_code_bZ_d3_r01_center_7_5", + "prior_strength": 16, + "seed": 20261133, + "iterations": 7, + "failure": 0.016015625, + "blended_failure": 0.016015625, + "incumbent_failure": 0.01640625, + "negative_log_likelihood": 0.05204562159505248, + "weights_sha256": "b03b071238dda333574a4da2d9b2bb999cf362a83b9194b1c53871e9438f9f45" + }, + { + "condition": "surface_code_bZ_d3_r01_center_7_5", + "prior_strength": 64, + "seed": 20261133, + "iterations": 6, + "failure": 0.016015625, + "blended_failure": 0.016015625, + "incumbent_failure": 0.01640625, + "negative_log_likelihood": 0.05177096705064832, + "weights_sha256": "2a4c8113ee9a1dadcfc0f1b7ff8d164e7c8771d5764b0512ee1a5de2a8aaa395" + }, + { + "condition": "surface_code_bZ_d3_r01_center_7_5", + "prior_strength": 256, + "seed": 20261133, + "iterations": 6, + "failure": 0.016015625, + "blended_failure": 0.01640625, + "incumbent_failure": 0.01640625, + "negative_log_likelihood": 0.051861030681133645, + "weights_sha256": "f201491af84870ffa8c1b59e16dea1fea910e7fda32f0e3d82863943222b57ee" + }, + { + "condition": "surface_code_bZ_d3_r01_center_7_5", + "prior_strength": 1024, + "seed": 20261133, + "iterations": 6, + "failure": 0.01640625, + "blended_failure": 0.01640625, + "incumbent_failure": 0.01640625, + "negative_log_likelihood": 0.05206536190640361, + "weights_sha256": "b7cfd76b6574457626306868e31ab5327a1950cbbca41f6384eb2c4bc759e800" + } + ], + "choices": { + "incumbent": 0.0154541015625, + "16": 0.015380859375, + "blend-16": 0.015429687499999999, + "64": 0.0155029296875, + "blend-64": 0.015600585937500001, + "256": 0.0155517578125, + "blend-256": 0.015600585937500001, + "1024": 0.0156005859375, + "blend-1024": 0.015600585937500001 + }, + "selected": "16", + "expected_full_P": 0.7663245567908653, + "validation_P_gain": 2.817007211538435e-06, + "source_sha256": "7e75f14190b18b05e9af540a8ef0f75522060e78c30b05475686ea18faf0035f", + "seconds": 3.316046953201294 + }, + "packaging_selection": { + "incumbent": 0.0154296875, + "16": 0.015380859375, + "64": 0.0155029296875, + "256": 0.0155517578125, + "1024": 0.0156005859375 + }, + "selected": "16", + "new_optimizer_updates": 0, + "selection_scope": "One common prior strength for all eight short conditions; other122 condition predictions retained", + "runtime_source_sha256": "451ce740551f9e13348064f2e726e7e31a611b64bcf5d95def601deb78e854af" + }, + { + "training": { + "initialization": "256 residual logits per condition initialized independently Normal(0,.01), seeds20261126 through20261133; optimized in this session", + "architecture": "One categorical residual per possible8-bit detection syndrome, added to an exact physical DEM logit; no sample IDs or row indices are model features", + "loss": "Binomial logical BCE sufficient statistics plus strength times cross entropy to the fixed physical prior; damped Newton optimization from random residual initialization", + "fixed_prior": "Exact full-DEM probabilities for all256 possible input syndromes, computed now from the authorized packaged even-fitted DEM plans; no external trained weights or decoder answers", + "training": "All19880 supplied training labels for each of eight d3 one-round conditions; only aggregate counts by detection syndrome enter fitting", + "data_scope": "This is a finite categorical classifier, indexed by detection events, not a per-shot answer table. Other122 conditions retain the incumbent in any candidate benchmark.", + "selection": "One common strength and optional equal probability blend for all eight geometries/bases, minimizing full validation mean; all other conditions unchanged", + "base_package": { + "package": "/run-state/workspace/research/context_upgrades/neural_d5_full3_swa/package", + "predictions": "/run-state/workspace/research/context_upgrades/neural_d5_full3_swa/predictions", + "score": "/run-state/workspace/research/context_upgrades/neural_d5_full3_swa/score.json", + "P": 0.7663217397836538 + }, + "test_data_used": false, + "training_records": [ + { + "condition": "surface_code_bX_d3_r01_center_3_5", + "training_shots": 19880, + "observed_syndromes": 149, + "initial_seed": 20261126, + "physical_plan_sha256": "640c371577096ba08c799b70fd16d03a06a37004feaa15c85c4cb6ef87529080", + "training_arrays_sha256": "a7acd6f6e5372873cf2d34946876a791996238efdea39f7fa33f7d2eabc1c10f" + }, + { + "condition": "surface_code_bX_d3_r01_center_5_3", + "training_shots": 19880, + "observed_syndromes": 157, + "initial_seed": 20261127, + "physical_plan_sha256": "4a0f8f630b7f34fba620a4e03bd77e14fb80149e70b7da80b6176dbd24d9ddc8", + "training_arrays_sha256": "0e2267afc5dc4e761d3b9e09288875f2077215fac2f902ce4151699c38c24531" + }, + { + "condition": "surface_code_bX_d3_r01_center_5_7", + "training_shots": 19880, + "observed_syndromes": 152, + "initial_seed": 20261128, + "physical_plan_sha256": "de8914194be7689d70e9424540923197a5c0465fb42ec96556df97b73ba250c1", + "training_arrays_sha256": "0542609248a5d2c8b410666bb901361b60c39cb8b32b3b46fdd24a6c7913db56" + }, + { + "condition": "surface_code_bX_d3_r01_center_7_5", + "training_shots": 19880, + "observed_syndromes": 147, + "initial_seed": 20261129, + "physical_plan_sha256": "bc1a6888cc5a854f0348cab463b8879c2d176d9509176b944b7f4265e0772ab3", + "training_arrays_sha256": "ccd43f09fba55b2138a5401e6f5c89cc7b4c4ec470a07cd037d9f715acaa1188" + }, + { + "condition": "surface_code_bZ_d3_r01_center_3_5", + "training_shots": 19880, + "observed_syndromes": 153, + "initial_seed": 20261130, + "physical_plan_sha256": "1931b5b85d0014c2a928a40c3ec502316ff30ea1632a25c5f64e2694f828434b", + "training_arrays_sha256": "aa27eee730c88b2071b5fd97f9d47a0f3ad010e29202415f786babc073d405e4" + }, + { + "condition": "surface_code_bZ_d3_r01_center_5_3", + "training_shots": 19880, + "observed_syndromes": 159, + "initial_seed": 20261131, + "physical_plan_sha256": "6d231f857bbe85040c91af1160c2dda16557a67851deaedc8092412f6abeb294", + "training_arrays_sha256": "569131ce49a2c1060ebd472c0290fc0c1de6e522cd7cd7aa92b10e17cdd1783c" + }, + { + "condition": "surface_code_bZ_d3_r01_center_5_7", + "training_shots": 19880, + "observed_syndromes": 158, + "initial_seed": 20261132, + "physical_plan_sha256": "ef285cea44ad63e0452596d4be65c8844ea8a7dcc49fb31b6a6241d367ed63eb", + "training_arrays_sha256": "6928ade685b05f76b7a3a9dc6423504d0bdce09742603c24978aa21fcf106f88" + }, + { + "condition": "surface_code_bZ_d3_r01_center_7_5", + "training_shots": 19880, + "observed_syndromes": 160, + "initial_seed": 20261133, + "physical_plan_sha256": "82bee01cf3e00079270a27cb79472322867548df5c9dc4db3252e4c6ec89e6a6", + "training_arrays_sha256": "afbc73fc5ca8e3b8e996377ab3df5a5b9397f36362e72c01feea7848ea1995f3" + } + ], + "records": [ + { + "condition": "surface_code_bX_d3_r01_center_3_5", + "prior_strength": 16, + "seed": 20261126, + "iterations": 8, + "failure": 0.0134765625, + "blended_failure": 0.013671875, + "incumbent_failure": 0.0134765625, + "negative_log_likelihood": 0.04649575086997129, + "weights_sha256": "d985985dedbe644bfae165330f4f46da14d04efbc4cad1af81c5510115380701" + }, + { + "condition": "surface_code_bX_d3_r01_center_3_5", + "prior_strength": 64, + "seed": 20261126, + "iterations": 6, + "failure": 0.0140625, + "blended_failure": 0.0140625, + "incumbent_failure": 0.0134765625, + "negative_log_likelihood": 0.04591998541695955, + "weights_sha256": "17383d153dd1dfef62b3d4f6c5b7549c3209150faf0714e78fede09b941ecc3a" + }, + { + "condition": "surface_code_bX_d3_r01_center_3_5", + "prior_strength": 256, + "seed": 20261126, + "iterations": 5, + "failure": 0.0140625, + "blended_failure": 0.0140625, + "incumbent_failure": 0.0134765625, + "negative_log_likelihood": 0.0458401737684183, + "weights_sha256": "f863a64ca698135f6fac6ac184d3c689db684a15d73bf0565418b240d76b5c58" + }, + { + "condition": "surface_code_bX_d3_r01_center_3_5", + "prior_strength": 1024, + "seed": 20261126, + "iterations": 5, + "failure": 0.0140625, + "blended_failure": 0.0140625, + "incumbent_failure": 0.0134765625, + "negative_log_likelihood": 0.045887733186657405, + "weights_sha256": "ded1a941e0dfc58e55ced6523720445fb70032d2d15c9929b0c93544f7c567f8" + }, + { + "condition": "surface_code_bX_d3_r01_center_5_3", + "prior_strength": 16, + "seed": 20261127, + "iterations": 8, + "failure": 0.0177734375, + "blended_failure": 0.0177734375, + "incumbent_failure": 0.0193359375, + "negative_log_likelihood": 0.05532273244895745, + "weights_sha256": "02950043334a38d3e7980cc97685904338553746653bd2d6a4c9be88ae845270" + }, + { + "condition": "surface_code_bX_d3_r01_center_5_3", + "prior_strength": 64, + "seed": 20261127, + "iterations": 6, + "failure": 0.01875, + "blended_failure": 0.0193359375, + "incumbent_failure": 0.0193359375, + "negative_log_likelihood": 0.055166841080990084, + "weights_sha256": "412ee1f453695e4f3534dbe8d7eb1ca565d06fd7c718b52fe9a306b35e845d9d" + }, + { + "condition": "surface_code_bX_d3_r01_center_5_3", + "prior_strength": 256, + "seed": 20261127, + "iterations": 5, + "failure": 0.01953125, + "blended_failure": 0.0193359375, + "incumbent_failure": 0.0193359375, + "negative_log_likelihood": 0.055186840974757456, + "weights_sha256": "12d8f72c2ee5cb837145aaf9a1b485d8517e4374721eebcbea9803d3bfdc8fcd" + }, + { + "condition": "surface_code_bX_d3_r01_center_5_3", + "prior_strength": 1024, + "seed": 20261127, + "iterations": 4, + "failure": 0.01953125, + "blended_failure": 0.0193359375, + "incumbent_failure": 0.0193359375, + "negative_log_likelihood": 0.05544033886527203, + "weights_sha256": "d1daa90794c1c3c8cd00134d9b22a7173aee4dd9b139b86f6d3f9b8f2131056d" + }, + { + "condition": "surface_code_bX_d3_r01_center_5_7", + "prior_strength": 16, + "seed": 20261128, + "iterations": 7, + "failure": 0.015234375, + "blended_failure": 0.0158203125, + "incumbent_failure": 0.0158203125, + "negative_log_likelihood": 0.049592331750930654, + "weights_sha256": "ad21a8640e2fe7bbd550225e354dedcbad8cb70433b892f45d28fa2346ab88de" + }, + { + "condition": "surface_code_bX_d3_r01_center_5_7", + "prior_strength": 64, + "seed": 20261128, + "iterations": 6, + "failure": 0.015234375, + "blended_failure": 0.0158203125, + "incumbent_failure": 0.0158203125, + "negative_log_likelihood": 0.04900882633372332, + "weights_sha256": "4664564f60149b00b1754a3f9e91c8b04b29ef819b231bf17ea7588346433a57" + }, + { + "condition": "surface_code_bX_d3_r01_center_5_7", + "prior_strength": 256, + "seed": 20261128, + "iterations": 6, + "failure": 0.015234375, + "blended_failure": 0.0158203125, + "incumbent_failure": 0.0158203125, + "negative_log_likelihood": 0.04861554683295004, + "weights_sha256": "cad51322361a95020501afa64e356f2a49dd02afa0cd91294d4498f7eb0c5a8d" + }, + { + "condition": "surface_code_bX_d3_r01_center_5_7", + "prior_strength": 1024, + "seed": 20261128, + "iterations": 6, + "failure": 0.015234375, + "blended_failure": 0.0158203125, + "incumbent_failure": 0.0158203125, + "negative_log_likelihood": 0.04843255984360956, + "weights_sha256": "5fe850e6313cb9ed6631697684afeeb7b7c5857a5c74fad66189cfcf8a08218b" + }, + { + "condition": "surface_code_bX_d3_r01_center_7_5", + "prior_strength": 16, + "seed": 20261129, + "iterations": 7, + "failure": 0.0158203125, + "blended_failure": 0.0158203125, + "incumbent_failure": 0.01484375, + "negative_log_likelihood": 0.05156220348280275, + "weights_sha256": "56c2fd4a7c35033084020cd1f5c9dcc2ab1cf2c631d0e88cc87ac4c715c6af17" + }, + { + "condition": "surface_code_bX_d3_r01_center_7_5", + "prior_strength": 64, + "seed": 20261129, + "iterations": 6, + "failure": 0.0154296875, + "blended_failure": 0.0154296875, + "incumbent_failure": 0.01484375, + "negative_log_likelihood": 0.05139675960346585, + "weights_sha256": "0bf66368e18c8d1baecaa614d4c0cec16304ac14bcd29d22d1cdb2a0ff6c0173" + }, + { + "condition": "surface_code_bX_d3_r01_center_7_5", + "prior_strength": 256, + "seed": 20261129, + "iterations": 6, + "failure": 0.0154296875, + "blended_failure": 0.0154296875, + "incumbent_failure": 0.01484375, + "negative_log_likelihood": 0.05135569004239689, + "weights_sha256": "d9581a6f29f9d3ea54d482c17995a37b55e3b4253d36e1d49cfce95b398eb5c2" + }, + { + "condition": "surface_code_bX_d3_r01_center_7_5", + "prior_strength": 1024, + "seed": 20261129, + "iterations": 6, + "failure": 0.0154296875, + "blended_failure": 0.0154296875, + "incumbent_failure": 0.01484375, + "negative_log_likelihood": 0.05141882723288258, + "weights_sha256": "2c4e4592067fcbbe69d6ede68c4494209652a2d510e74aa2ea3b4420c3cdd741" + }, + { + "condition": "surface_code_bZ_d3_r01_center_3_5", + "prior_strength": 16, + "seed": 20261130, + "iterations": 7, + "failure": 0.0173828125, + "blended_failure": 0.0173828125, + "incumbent_failure": 0.016796875, + "negative_log_likelihood": 0.054216247940585036, + "weights_sha256": "7b12f028f764293a9496d9fd2ddbf92ba9c23653d7889a602a9ec23f8cde3d6b" + }, + { + "condition": "surface_code_bZ_d3_r01_center_3_5", + "prior_strength": 64, + "seed": 20261130, + "iterations": 6, + "failure": 0.017578125, + "blended_failure": 0.0171875, + "incumbent_failure": 0.016796875, + "negative_log_likelihood": 0.05364509063427466, + "weights_sha256": "1ad2ffaafa33009129a0953d79fe2d30ad62308eb9dbf8da0b76eca018a5b55a" + }, + { + "condition": "surface_code_bZ_d3_r01_center_3_5", + "prior_strength": 256, + "seed": 20261130, + "iterations": 5, + "failure": 0.0171875, + "blended_failure": 0.016796875, + "incumbent_failure": 0.016796875, + "negative_log_likelihood": 0.05368896256105915, + "weights_sha256": "64619c9b7bd40a14651bcd056d58f5b55e79eb334a4e5105ff12cb7ff6f2400a" + }, + { + "condition": "surface_code_bZ_d3_r01_center_3_5", + "prior_strength": 1024, + "seed": 20261130, + "iterations": 6, + "failure": 0.0171875, + "blended_failure": 0.016796875, + "incumbent_failure": 0.016796875, + "negative_log_likelihood": 0.05387292464104988, + "weights_sha256": "b1490702e212d7cdcc936f55186b15411ced3a8928a1a32f2d4ac1212706fabf" + }, + { + "condition": "surface_code_bZ_d3_r01_center_5_3", + "prior_strength": 16, + "seed": 20261131, + "iterations": 8, + "failure": 0.0125, + "blended_failure": 0.0125, + "incumbent_failure": 0.0125, + "negative_log_likelihood": 0.04709647994869577, + "weights_sha256": "eb56715dfc5e8c6b8866ceeb2636422acad9992dd2c625355dc21b94c25351f0" + }, + { + "condition": "surface_code_bZ_d3_r01_center_5_3", + "prior_strength": 64, + "seed": 20261131, + "iterations": 6, + "failure": 0.0125, + "blended_failure": 0.0125, + "incumbent_failure": 0.0125, + "negative_log_likelihood": 0.046679107084477436, + "weights_sha256": "320cd10cc8cd9d13d20d9ce0ea90413ed8343587f0c77abb0e1c8c84503aa2d8" + }, + { + "condition": "surface_code_bZ_d3_r01_center_5_3", + "prior_strength": 256, + "seed": 20261131, + "iterations": 5, + "failure": 0.0125, + "blended_failure": 0.0125, + "incumbent_failure": 0.0125, + "negative_log_likelihood": 0.04621785858320204, + "weights_sha256": "c7e63309de0668bd4d5c05169ecd6af1879c88be10947d0fdb958ca37068d433" + }, + { + "condition": "surface_code_bZ_d3_r01_center_5_3", + "prior_strength": 1024, + "seed": 20261131, + "iterations": 4, + "failure": 0.0125, + "blended_failure": 0.0125, + "incumbent_failure": 0.0125, + "negative_log_likelihood": 0.04577880173787941, + "weights_sha256": "494824e979e52fbf0302e706ff6786d89ce60b607afd6b376cad9700f328feda" + }, + { + "condition": "surface_code_bZ_d3_r01_center_5_7", + "prior_strength": 16, + "seed": 20261132, + "iterations": 7, + "failure": 0.01484375, + "blended_failure": 0.014453125, + "incumbent_failure": 0.014453125, + "negative_log_likelihood": 0.05068038016752655, + "weights_sha256": "0b4c35df1d44c9353a2ea505205f3def95bb28de0c7052ded18cf599bef2709b" + }, + { + "condition": "surface_code_bZ_d3_r01_center_5_7", + "prior_strength": 64, + "seed": 20261132, + "iterations": 6, + "failure": 0.014453125, + "blended_failure": 0.014453125, + "incumbent_failure": 0.014453125, + "negative_log_likelihood": 0.049663607204405706, + "weights_sha256": "b18deed32b51a58789873a1b45718f5c40d1d9500b57e113520b700a66902f1a" + }, + { + "condition": "surface_code_bZ_d3_r01_center_5_7", + "prior_strength": 256, + "seed": 20261132, + "iterations": 5, + "failure": 0.014453125, + "blended_failure": 0.014453125, + "incumbent_failure": 0.014453125, + "negative_log_likelihood": 0.04918133832768282, + "weights_sha256": "12e71625e223602cbc9f7ae150473a1dad2c32f2d9221a4b88ccb93babc2c41d" + }, + { + "condition": "surface_code_bZ_d3_r01_center_5_7", + "prior_strength": 1024, + "seed": 20261132, + "iterations": 6, + "failure": 0.014453125, + "blended_failure": 0.014453125, + "incumbent_failure": 0.014453125, + "negative_log_likelihood": 0.049002647954447996, + "weights_sha256": "e909b83698caba60ad01e28027b28005544cd8e795f88574fc6f81bcf56b2add" + }, + { + "condition": "surface_code_bZ_d3_r01_center_7_5", + "prior_strength": 16, + "seed": 20261133, + "iterations": 7, + "failure": 0.016015625, + "blended_failure": 0.016015625, + "incumbent_failure": 0.01640625, + "negative_log_likelihood": 0.05204562159505248, + "weights_sha256": "b03b071238dda333574a4da2d9b2bb999cf362a83b9194b1c53871e9438f9f45" + }, + { + "condition": "surface_code_bZ_d3_r01_center_7_5", + "prior_strength": 64, + "seed": 20261133, + "iterations": 6, + "failure": 0.016015625, + "blended_failure": 0.016015625, + "incumbent_failure": 0.01640625, + "negative_log_likelihood": 0.05177096705064832, + "weights_sha256": "2a4c8113ee9a1dadcfc0f1b7ff8d164e7c8771d5764b0512ee1a5de2a8aaa395" + }, + { + "condition": "surface_code_bZ_d3_r01_center_7_5", + "prior_strength": 256, + "seed": 20261133, + "iterations": 6, + "failure": 0.016015625, + "blended_failure": 0.01640625, + "incumbent_failure": 0.01640625, + "negative_log_likelihood": 0.051861030681133645, + "weights_sha256": "f201491af84870ffa8c1b59e16dea1fea910e7fda32f0e3d82863943222b57ee" + }, + { + "condition": "surface_code_bZ_d3_r01_center_7_5", + "prior_strength": 1024, + "seed": 20261133, + "iterations": 6, + "failure": 0.01640625, + "blended_failure": 0.01640625, + "incumbent_failure": 0.01640625, + "negative_log_likelihood": 0.05206536190640361, + "weights_sha256": "b7cfd76b6574457626306868e31ab5327a1950cbbca41f6384eb2c4bc759e800" + } + ], + "choices": { + "incumbent": 0.0154541015625, + "16": 0.015380859375, + "blend-16": 0.015429687499999999, + "64": 0.0155029296875, + "blend-64": 0.015600585937500001, + "256": 0.0155517578125, + "blend-256": 0.015600585937500001, + "1024": 0.0156005859375, + "blend-1024": 0.015600585937500001 + }, + "selected": "16", + "expected_full_P": 0.7663245567908653, + "validation_P_gain": 2.817007211538435e-06, + "source_sha256": "7e75f14190b18b05e9af540a8ef0f75522060e78c30b05475686ea18faf0035f", + "seconds": 3.316046953201294 + }, + "packaging_selection": { + "incumbent": 0.0155517578125, + "16": 0.015380859375, + "64": 0.0155029296875, + "256": 0.0155517578125, + "1024": 0.0156005859375 + }, + "selected": "16", + "new_optimizer_updates": 0, + "selection_scope": "One common prior strength for all eight short conditions; other122 condition predictions retained", + "runtime_source_sha256": "451ce740551f9e13348064f2e726e7e31a611b64bcf5d95def601deb78e854af" + } + ], + "research_selection_history": { + "path": "selection_history.json", + "sha256": "46cdb96e1e8663328d17de14e7cbbdaa58fa7261cd94467496613ab0086f5986", + "completed_training_runs": 50, + "assembled_candidates": 39 + }, + "runtime_projection": { + "measured_full_validation_seconds_by_distance": { + "d3": 68.0347409248352, + "d5": 322.1027355194092 + }, + "validation_shots_per_condition": 5120, + "benchmark_shots_per_condition": 25000, + "workload_source": "Supplied data/README.md declares 25000 benchmark rows per condition; no benchmark examples accessed", + "linear_scale": 4.8828125, + "projected_total_seconds": 1904.968146700412, + "limit_seconds": 3600, + "interpretation": "Projection from complete validation replays, scaling startup/compilation overhead as well as shot work. Retained-path timings are inherited; one-round categorical replacements only remove contractions. This is not a timed benchmark-split run." + }, + "neural_probability_ensemble": { + "new_optimizer_updates": 0, + "new_trainable_parameters": 0, + "initialization": "Constituents trained from random initialization in this session; this step only averages their predicted probabilities.", + "new_training": { + "initialization": "Continue from the recorded session-trained checkpoint; original random initialization seed 20261273", + "prior_pass": 3, + "initial_seed": 20261273, + "training_source_sha256": { + "learned_d5__reserved_train.py": "f1789039eb1500b30f716864237b9c564887ccb615f117fb9fb1a0ff15f54ff0", + "learned_d5__reserved_split.py": "69f3d3741a9625b1d70490f45202f101b6cd61b6bf332977559ec14307597456", + "learned_d5__data.py": "9e3bcfe9d45f6af60b86a580cdc9374043758a1a6f10564aef9eb344f7a6b364", + "learned_d5__model.py": "3b2d4b34a8945ddfe82d76e28b4aa917f11933ed885c0cdcd2bc389448a871fb", + "learned_exact__gradient.py": "ecb6b45698480386fa124fe878db7dbfa246d1969fd720ec26daff9547da2001", + "learned_exact__checkpoint_gradient.py": "7ece6b3f45e009727fd104a3d39e2816a8c3437f737c3d98131d3a5d7d60e9b8", + "exact_d3__exact.py": "869dfacb295c419c156d1070fc2afdd6e20d02ac1840e45e72346b2b289f4825" + }, + "runtime_versions": { + "jax": "0.7.2", + "numpy": "2.3.3", + "optax": "0.2.6" + }, + "hidden_width": 64, + "input_features": 394, + "feature_mode": "local events, reconstructed measurements, shot densities, physical edge support and conditioned prior", + "architecture": "Two 64-unit SiLU layers; 394 features; bounded 2*tanh correction to relevant-CSS edge logits from the recorded physical feedback pass; exact width-14 contraction predicts logical probability. D5 joint conditioning remains approximate.", + "training": "Only the18856 declared fit rows per each of26 d5 conditions; both512-row gate and512-row audit partitions excluded from every optimizer update. Uniform condition/within-condition sampling.", + "reserved_training_partition": { + "manifest": "/run-state/workspace/research/learned_d5/reserved_split1/manifest.json", + "manifest_sha256": "241221ce16d1d4fc634bdfef691aa2a40d888f6cb75e981485c570905056257b", + "selected_part": "fit", + "details": { + "schema": "qecbench-training-reserved-split/v1", + "seed": 20261270, + "train_manifest_sha256": "ce46c21e3595cfc5885bbe2b6481105317d2e6267498ec4572601469825914b8", + "source_sha256": "69f3d3741a9625b1d70490f45202f101b6cd61b6bf332977559ec14307597456", + "conditions": [ + { + "condition": "surface_code_bX_d5_r01_center_5_5", + "file": "surface_code_bX_d5_r01_center_5_5.npz", + "sha256": "c72d5c5ee3daf1b128e0c226f2815009daf6127e8b028004e86cebd6047ac474", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r03_center_5_5", + "file": "surface_code_bX_d5_r03_center_5_5.npz", + "sha256": "3a59636161c80fbbf326cf1919817ce5f60ec9e6d3e4b6223579cb6a36e12e31", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r05_center_5_5", + "file": "surface_code_bX_d5_r05_center_5_5.npz", + "sha256": "e808936ef0cb32869e0944ab70a3026ef96d0f31fe0fe9967c6d87a15b85abb5", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r07_center_5_5", + "file": "surface_code_bX_d5_r07_center_5_5.npz", + "sha256": "cd0f71459448a41af10e4399637d02e8d8193dea16ab300f839cb56ad8b08203", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r09_center_5_5", + "file": "surface_code_bX_d5_r09_center_5_5.npz", + "sha256": "56648e2b93499736d40f6aa5e9e8a568f150cbc8589929578f57c1e839c92d76", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r11_center_5_5", + "file": "surface_code_bX_d5_r11_center_5_5.npz", + "sha256": "ce2dcc2bfcb57bbfcb2291105a9a011a2a3113ad92348dfa7c76076f1fb3cacf", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r13_center_5_5", + "file": "surface_code_bX_d5_r13_center_5_5.npz", + "sha256": "968b14d4d948474afd0e182d9c60cd577297d4b7bb331e916058e41692d7c9d2", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r15_center_5_5", + "file": "surface_code_bX_d5_r15_center_5_5.npz", + "sha256": "8d73808a777d81c2acc2f6aab924cc11690a94136bc666fbf11f78292a47615d", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r17_center_5_5", + "file": "surface_code_bX_d5_r17_center_5_5.npz", + "sha256": "0ab49c9dc61605d43f0c03427352af0ee230ecf7360927f75de60519d707c7ee", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r19_center_5_5", + "file": "surface_code_bX_d5_r19_center_5_5.npz", + "sha256": "27594cc6e0943860d828ebde2c76fdde64ccf2a357f896d551f3d4606e74fec4", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r21_center_5_5", + "file": "surface_code_bX_d5_r21_center_5_5.npz", + "sha256": "1b1fdcf280ca7c8ba94476f9c54b6ab70eee59b63b3be406a534014132295b7e", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r23_center_5_5", + "file": "surface_code_bX_d5_r23_center_5_5.npz", + "sha256": "d31e0ca2ce6a6d04ed7bbd80113aec8cca40526b643752d8f429ece168736759", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r25_center_5_5", + "file": "surface_code_bX_d5_r25_center_5_5.npz", + "sha256": "f45a5978d77b1ef450f2ffd9fa19413c9d647448a3d61dfafd7590671dcace19", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r01_center_5_5", + "file": "surface_code_bZ_d5_r01_center_5_5.npz", + "sha256": "647e82ac0721a7245b3deb831a5a73eb555a3cb3e58b460774ffb96dc99c3b64", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r03_center_5_5", + "file": "surface_code_bZ_d5_r03_center_5_5.npz", + "sha256": "b64be8c7883b921bd57d5eefcc53656c2dad484833e5533e499b19b45be90158", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r05_center_5_5", + "file": "surface_code_bZ_d5_r05_center_5_5.npz", + "sha256": "63361e091640a4d506fc372bd0764ad248f6551d77cdf57550405b2624ca97b1", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r07_center_5_5", + "file": "surface_code_bZ_d5_r07_center_5_5.npz", + "sha256": "c50d26a58c1fb6b5a20f5737b94c3bac9182fe703bafa221532b8b012064f655", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r09_center_5_5", + "file": "surface_code_bZ_d5_r09_center_5_5.npz", + "sha256": "d62ecb975d63f13664bc6b02d30499a3fb10f0c22f1068b28bbbc31d1ec91fcc", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r11_center_5_5", + "file": "surface_code_bZ_d5_r11_center_5_5.npz", + "sha256": "724c7dc2c4cf2b551abf4f75e230f5aa04a74eebba79c25c845f14d15863de5e", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r13_center_5_5", + "file": "surface_code_bZ_d5_r13_center_5_5.npz", + "sha256": "0e618a998fb591a85dd365eead741a91b6560ed1a3987046286a67a2c754fa83", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r15_center_5_5", + "file": "surface_code_bZ_d5_r15_center_5_5.npz", + "sha256": "e1f8c6f812dc98c48402b69a08b09b520d1374e9f2e51b3e681b67bf306e17be", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r17_center_5_5", + "file": "surface_code_bZ_d5_r17_center_5_5.npz", + "sha256": "aa23a51a79677a8ac43cc31b72fe07e73c827f935c632c29b09924fc88242d0d", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r19_center_5_5", + "file": "surface_code_bZ_d5_r19_center_5_5.npz", + "sha256": "8420b79a8d7324f41dfd1cccacfd1fae9b27b370f40c60059e9de187864dba2b", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r21_center_5_5", + "file": "surface_code_bZ_d5_r21_center_5_5.npz", + "sha256": "088b92610c90dc1a180b2eca8b16e8f225d191ec7fc11355c85e6959f35e7073", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r23_center_5_5", + "file": "surface_code_bZ_d5_r23_center_5_5.npz", + "sha256": "b1484c581cbd5439c74befabbd7c1c12e7cb38db099c793dfb3cf748df20fc3b", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r25_center_5_5", + "file": "surface_code_bZ_d5_r25_center_5_5.npz", + "sha256": "92f552059b6c197b53ff1030d9ba0fe03cf22ea1f116e5280be944ad60f04be3", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + } + ], + "counts": { + "fit": 490256, + "gate": 13312, + "audit": 13312 + }, + "split_features": "Only array lengths and seeded random permutations; IDs verify alignment and are never model features", + "gate_use": "Fit a small combiner on gate labels only after experts exclude both reserved parts", + "audit_use": "Diagnostic only; no parameter fitting, checkpoint selection, or hyperparameter selection", + "validation_use": "Supplied validation selects checkpoints and candidates; no validation labels fit parameters", + "test_data_used": false + } + }, + "training_cache": "/run-state/workspace/research/learned_d5/full_training_priors3", + "training_cache_provenance": { + "method": "Three undamped physical CSS extrinsic-message passes, clipping8, pass1/pass3 priors captured before logical readout", + "scope": "All supplied training rows in all26 d5 conditions; no validation or test labels used in cache generation", + "reused_rows": "4096 rows per condition from feedback5_cache, sampled with seed20261023; same first three passes", + "remaining_rows": "Computed now with last-only logical tracking; previously controlled against full logical tracking", + "train_manifest_sha256": "ce46c21e3595cfc5885bbe2b6481105317d2e6267498ec4572601469825914b8", + "records": [ + { + "condition": "surface_code_bX_d5_r25_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 44.93641114234924, + "elapsed": 45.15474009513855, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r25_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 43.11551070213318, + "elapsed": 88.52458453178406, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r23_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 39.70699763298035, + "elapsed": 128.4802794456482, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r23_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 41.178571701049805, + "elapsed": 169.95510387420654, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r21_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 41.53053879737854, + "elapsed": 211.7576286792755, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r21_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 43.43117809295654, + "elapsed": 255.62733364105225, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r19_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 33.84876799583435, + "elapsed": 289.70106053352356, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r19_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 32.88018870353699, + "elapsed": 322.7981607913971, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r17_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 29.585307836532593, + "elapsed": 352.58776783943176, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r17_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 29.854028463363647, + "elapsed": 382.6393291950226, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r15_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 26.721288919448853, + "elapsed": 409.54919600486755, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r15_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 29.810269832611084, + "elapsed": 439.6440734863281, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r13_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 29.79407238960266, + "elapsed": 469.7887041568756, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r13_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 28.757604837417603, + "elapsed": 498.71140813827515, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r11_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 25.38013219833374, + "elapsed": 524.2447266578674, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r11_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 25.378958225250244, + "elapsed": 549.8600506782532, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r09_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 21.241567850112915, + "elapsed": 571.2600774765015, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r09_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 18.780335664749146, + "elapsed": 590.304051399231, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r07_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 14.346807956695557, + "elapsed": 604.8041462898254, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r07_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 14.03441047668457, + "elapsed": 618.9537570476532, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r05_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 10.811666488647461, + "elapsed": 629.8610434532166, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r05_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 10.982703924179077, + "elapsed": 640.9919559955597, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r03_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 7.846271991729736, + "elapsed": 648.9624857902527, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r03_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 7.83586859703064, + "elapsed": 656.9065537452698, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r01_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 0.7685718536376953, + "elapsed": 657.7747800350189, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r01_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 0.748960018157959, + "elapsed": 658.5666444301605, + "peak_gpu_bytes": 58661028096 + } + ], + "test_data_used": false + }, + "training_shots": 490256, + "training_pool_interpretation": "Eligible training rows; optimizer samples conditions and rows with replacement. Distinct rows used in this phase are recorded separately.", + "unique_training_rows_seen_in_this_phase": 467790, + "unique_rows_by_condition": { + "surface_code_bX_d5_r01_center_5_5": 18254, + "surface_code_bX_d5_r03_center_5_5": 18525, + "surface_code_bX_d5_r05_center_5_5": 18175, + "surface_code_bX_d5_r07_center_5_5": 18005, + "surface_code_bX_d5_r09_center_5_5": 18067, + "surface_code_bX_d5_r11_center_5_5": 18445, + "surface_code_bX_d5_r13_center_5_5": 18673, + "surface_code_bX_d5_r15_center_5_5": 17345, + "surface_code_bX_d5_r17_center_5_5": 17898, + "surface_code_bX_d5_r19_center_5_5": 18359, + "surface_code_bX_d5_r21_center_5_5": 18036, + "surface_code_bX_d5_r23_center_5_5": 17255, + "surface_code_bX_d5_r25_center_5_5": 18057, + "surface_code_bZ_d5_r01_center_5_5": 17596, + "surface_code_bZ_d5_r03_center_5_5": 18333, + "surface_code_bZ_d5_r05_center_5_5": 18250, + "surface_code_bZ_d5_r07_center_5_5": 18210, + "surface_code_bZ_d5_r09_center_5_5": 17447, + "surface_code_bZ_d5_r11_center_5_5": 18120, + "surface_code_bZ_d5_r13_center_5_5": 18224, + "surface_code_bZ_d5_r15_center_5_5": 17857, + "surface_code_bZ_d5_r17_center_5_5": 18359, + "surface_code_bZ_d5_r19_center_5_5": 17398, + "surface_code_bZ_d5_r21_center_5_5": 18235, + "surface_code_bZ_d5_r23_center_5_5": 16653, + "surface_code_bZ_d5_r25_center_5_5": 18014 + }, + "gradient_block_size": 32, + "bucket_operations": true, + "accumulate_conditions": 1, + "effective_batch_size": 1024, + "uncertainty_weight_floor": 1.0, + "example_weighting": "Uniform BCE", + "loss": "Conditional logical binary cross entropy, differentiated through exact relevant-CSS contraction; physical CSS feedback prior held fixed", + "steps": 1536, + "batch": 1024, + "learning_rate": 0.0005, + "sampling_seed": 20261274, + "optimizer": "AdamW, weight decay 1e-4, global gradient norm clip 1", + "optimizer_restored": true, + "rng_restored": true, + "explicit_optimizer_reset": false, + "explicit_rng_reset": false, + "sampling_state_source": "/run-state/workspace/research/learned_d5/reserved2_warm/rng-512.json", + "starting_checkpoint": "/run-state/workspace/research/learned_d5/reserved2_warm/weights-512.npz", + "starting_checkpoint_sha256": "2b00e3f258886b5c4ecf69f36fd5463a205eefc84bd10c550acc391e84515c24", + "starting_training_provenance": { + "initialization": "All parameters initialized in this session: variance-scaled normal hidden layers, Normal(0,.001) output weights, zero biases, seed 20261273", + "prior_pass": 3, + "initial_seed": 20261273, + "training_source_sha256": { + "learned_d5__reserved_train.py": "f1789039eb1500b30f716864237b9c564887ccb615f117fb9fb1a0ff15f54ff0", + "learned_d5__reserved_split.py": "69f3d3741a9625b1d70490f45202f101b6cd61b6bf332977559ec14307597456", + "learned_d5__data.py": "9e3bcfe9d45f6af60b86a580cdc9374043758a1a6f10564aef9eb344f7a6b364", + "learned_d5__model.py": "3b2d4b34a8945ddfe82d76e28b4aa917f11933ed885c0cdcd2bc389448a871fb", + "learned_exact__gradient.py": "ecb6b45698480386fa124fe878db7dbfa246d1969fd720ec26daff9547da2001", + "learned_exact__checkpoint_gradient.py": "7ece6b3f45e009727fd104a3d39e2816a8c3437f737c3d98131d3a5d7d60e9b8", + "exact_d3__exact.py": "869dfacb295c419c156d1070fc2afdd6e20d02ac1840e45e72346b2b289f4825" + }, + "runtime_versions": { + "jax": "0.7.2", + "numpy": "2.3.3", + "optax": "0.2.6" + }, + "hidden_width": 64, + "input_features": 394, + "feature_mode": "local events, reconstructed measurements, shot densities, physical edge support and conditioned prior", + "architecture": "Two 64-unit SiLU layers; 394 features; bounded 2*tanh correction to relevant-CSS edge logits from the recorded physical feedback pass; exact width-14 contraction predicts logical probability. D5 joint conditioning remains approximate.", + "training": "Only the18856 declared fit rows per each of26 d5 conditions; both512-row gate and512-row audit partitions excluded from every optimizer update. Uniform condition/within-condition sampling.", + "reserved_training_partition": { + "manifest": "/run-state/workspace/research/learned_d5/reserved_split1/manifest.json", + "manifest_sha256": "241221ce16d1d4fc634bdfef691aa2a40d888f6cb75e981485c570905056257b", + "selected_part": "fit", + "details": { + "schema": "qecbench-training-reserved-split/v1", + "seed": 20261270, + "train_manifest_sha256": "ce46c21e3595cfc5885bbe2b6481105317d2e6267498ec4572601469825914b8", + "source_sha256": "69f3d3741a9625b1d70490f45202f101b6cd61b6bf332977559ec14307597456", + "conditions": [ + { + "condition": "surface_code_bX_d5_r01_center_5_5", + "file": "surface_code_bX_d5_r01_center_5_5.npz", + "sha256": "c72d5c5ee3daf1b128e0c226f2815009daf6127e8b028004e86cebd6047ac474", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r03_center_5_5", + "file": "surface_code_bX_d5_r03_center_5_5.npz", + "sha256": "3a59636161c80fbbf326cf1919817ce5f60ec9e6d3e4b6223579cb6a36e12e31", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r05_center_5_5", + "file": "surface_code_bX_d5_r05_center_5_5.npz", + "sha256": "e808936ef0cb32869e0944ab70a3026ef96d0f31fe0fe9967c6d87a15b85abb5", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r07_center_5_5", + "file": "surface_code_bX_d5_r07_center_5_5.npz", + "sha256": "cd0f71459448a41af10e4399637d02e8d8193dea16ab300f839cb56ad8b08203", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r09_center_5_5", + "file": "surface_code_bX_d5_r09_center_5_5.npz", + "sha256": "56648e2b93499736d40f6aa5e9e8a568f150cbc8589929578f57c1e839c92d76", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r11_center_5_5", + "file": "surface_code_bX_d5_r11_center_5_5.npz", + "sha256": "ce2dcc2bfcb57bbfcb2291105a9a011a2a3113ad92348dfa7c76076f1fb3cacf", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r13_center_5_5", + "file": "surface_code_bX_d5_r13_center_5_5.npz", + "sha256": "968b14d4d948474afd0e182d9c60cd577297d4b7bb331e916058e41692d7c9d2", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r15_center_5_5", + "file": "surface_code_bX_d5_r15_center_5_5.npz", + "sha256": "8d73808a777d81c2acc2f6aab924cc11690a94136bc666fbf11f78292a47615d", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r17_center_5_5", + "file": "surface_code_bX_d5_r17_center_5_5.npz", + "sha256": "0ab49c9dc61605d43f0c03427352af0ee230ecf7360927f75de60519d707c7ee", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r19_center_5_5", + "file": "surface_code_bX_d5_r19_center_5_5.npz", + "sha256": "27594cc6e0943860d828ebde2c76fdde64ccf2a357f896d551f3d4606e74fec4", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r21_center_5_5", + "file": "surface_code_bX_d5_r21_center_5_5.npz", + "sha256": "1b1fdcf280ca7c8ba94476f9c54b6ab70eee59b63b3be406a534014132295b7e", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r23_center_5_5", + "file": "surface_code_bX_d5_r23_center_5_5.npz", + "sha256": "d31e0ca2ce6a6d04ed7bbd80113aec8cca40526b643752d8f429ece168736759", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r25_center_5_5", + "file": "surface_code_bX_d5_r25_center_5_5.npz", + "sha256": "f45a5978d77b1ef450f2ffd9fa19413c9d647448a3d61dfafd7590671dcace19", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r01_center_5_5", + "file": "surface_code_bZ_d5_r01_center_5_5.npz", + "sha256": "647e82ac0721a7245b3deb831a5a73eb555a3cb3e58b460774ffb96dc99c3b64", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r03_center_5_5", + "file": "surface_code_bZ_d5_r03_center_5_5.npz", + "sha256": "b64be8c7883b921bd57d5eefcc53656c2dad484833e5533e499b19b45be90158", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r05_center_5_5", + "file": "surface_code_bZ_d5_r05_center_5_5.npz", + "sha256": "63361e091640a4d506fc372bd0764ad248f6551d77cdf57550405b2624ca97b1", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r07_center_5_5", + "file": "surface_code_bZ_d5_r07_center_5_5.npz", + "sha256": "c50d26a58c1fb6b5a20f5737b94c3bac9182fe703bafa221532b8b012064f655", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r09_center_5_5", + "file": "surface_code_bZ_d5_r09_center_5_5.npz", + "sha256": "d62ecb975d63f13664bc6b02d30499a3fb10f0c22f1068b28bbbc31d1ec91fcc", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r11_center_5_5", + "file": "surface_code_bZ_d5_r11_center_5_5.npz", + "sha256": "724c7dc2c4cf2b551abf4f75e230f5aa04a74eebba79c25c845f14d15863de5e", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r13_center_5_5", + "file": "surface_code_bZ_d5_r13_center_5_5.npz", + "sha256": "0e618a998fb591a85dd365eead741a91b6560ed1a3987046286a67a2c754fa83", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r15_center_5_5", + "file": "surface_code_bZ_d5_r15_center_5_5.npz", + "sha256": "e1f8c6f812dc98c48402b69a08b09b520d1374e9f2e51b3e681b67bf306e17be", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r17_center_5_5", + "file": "surface_code_bZ_d5_r17_center_5_5.npz", + "sha256": "aa23a51a79677a8ac43cc31b72fe07e73c827f935c632c29b09924fc88242d0d", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r19_center_5_5", + "file": "surface_code_bZ_d5_r19_center_5_5.npz", + "sha256": "8420b79a8d7324f41dfd1cccacfd1fae9b27b370f40c60059e9de187864dba2b", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r21_center_5_5", + "file": "surface_code_bZ_d5_r21_center_5_5.npz", + "sha256": "088b92610c90dc1a180b2eca8b16e8f225d191ec7fc11355c85e6959f35e7073", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r23_center_5_5", + "file": "surface_code_bZ_d5_r23_center_5_5.npz", + "sha256": "b1484c581cbd5439c74befabbd7c1c12e7cb38db099c793dfb3cf748df20fc3b", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r25_center_5_5", + "file": "surface_code_bZ_d5_r25_center_5_5.npz", + "sha256": "92f552059b6c197b53ff1030d9ba0fe03cf22ea1f116e5280be944ad60f04be3", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + } + ], + "counts": { + "fit": 490256, + "gate": 13312, + "audit": 13312 + }, + "split_features": "Only array lengths and seeded random permutations; IDs verify alignment and are never model features", + "gate_use": "Fit a small combiner on gate labels only after experts exclude both reserved parts", + "audit_use": "Diagnostic only; no parameter fitting, checkpoint selection, or hyperparameter selection", + "validation_use": "Supplied validation selects checkpoints and candidates; no validation labels fit parameters", + "test_data_used": false + } + }, + "training_cache": "/run-state/workspace/research/learned_d5/full_training_priors3", + "training_cache_provenance": { + "method": "Three undamped physical CSS extrinsic-message passes, clipping8, pass1/pass3 priors captured before logical readout", + "scope": "All supplied training rows in all26 d5 conditions; no validation or test labels used in cache generation", + "reused_rows": "4096 rows per condition from feedback5_cache, sampled with seed20261023; same first three passes", + "remaining_rows": "Computed now with last-only logical tracking; previously controlled against full logical tracking", + "train_manifest_sha256": "ce46c21e3595cfc5885bbe2b6481105317d2e6267498ec4572601469825914b8", + "records": [ + { + "condition": "surface_code_bX_d5_r25_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 44.93641114234924, + "elapsed": 45.15474009513855, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r25_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 43.11551070213318, + "elapsed": 88.52458453178406, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r23_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 39.70699763298035, + "elapsed": 128.4802794456482, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r23_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 41.178571701049805, + "elapsed": 169.95510387420654, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r21_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 41.53053879737854, + "elapsed": 211.7576286792755, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r21_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 43.43117809295654, + "elapsed": 255.62733364105225, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r19_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 33.84876799583435, + "elapsed": 289.70106053352356, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r19_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 32.88018870353699, + "elapsed": 322.7981607913971, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r17_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 29.585307836532593, + "elapsed": 352.58776783943176, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r17_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 29.854028463363647, + "elapsed": 382.6393291950226, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r15_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 26.721288919448853, + "elapsed": 409.54919600486755, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r15_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 29.810269832611084, + "elapsed": 439.6440734863281, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r13_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 29.79407238960266, + "elapsed": 469.7887041568756, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r13_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 28.757604837417603, + "elapsed": 498.71140813827515, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r11_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 25.38013219833374, + "elapsed": 524.2447266578674, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r11_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 25.378958225250244, + "elapsed": 549.8600506782532, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r09_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 21.241567850112915, + "elapsed": 571.2600774765015, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r09_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 18.780335664749146, + "elapsed": 590.304051399231, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r07_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 14.346807956695557, + "elapsed": 604.8041462898254, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r07_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 14.03441047668457, + "elapsed": 618.9537570476532, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r05_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 10.811666488647461, + "elapsed": 629.8610434532166, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r05_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 10.982703924179077, + "elapsed": 640.9919559955597, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r03_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 7.846271991729736, + "elapsed": 648.9624857902527, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r03_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 7.83586859703064, + "elapsed": 656.9065537452698, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r01_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 0.7685718536376953, + "elapsed": 657.7747800350189, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r01_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 0.748960018157959, + "elapsed": 658.5666444301605, + "peak_gpu_bytes": 58661028096 + } + ], + "test_data_used": false + }, + "training_shots": 490256, + "training_pool_interpretation": "Eligible training rows; optimizer samples conditions and rows with replacement. Distinct rows used in this phase are recorded separately.", + "unique_training_rows_seen_in_this_phase": 317635, + "unique_rows_by_condition": { + "surface_code_bX_d5_r01_center_5_5": 13700, + "surface_code_bX_d5_r03_center_5_5": 10036, + "surface_code_bX_d5_r05_center_5_5": 11768, + "surface_code_bX_d5_r07_center_5_5": 10917, + "surface_code_bX_d5_r09_center_5_5": 13458, + "surface_code_bX_d5_r11_center_5_5": 11764, + "surface_code_bX_d5_r13_center_5_5": 14018, + "surface_code_bX_d5_r15_center_5_5": 10968, + "surface_code_bX_d5_r17_center_5_5": 13469, + "surface_code_bX_d5_r19_center_5_5": 11340, + "surface_code_bX_d5_r21_center_5_5": 11327, + "surface_code_bX_d5_r23_center_5_5": 13970, + "surface_code_bX_d5_r25_center_5_5": 10500, + "surface_code_bZ_d5_r01_center_5_5": 12079, + "surface_code_bZ_d5_r03_center_5_5": 12160, + "surface_code_bZ_d5_r05_center_5_5": 9494, + "surface_code_bZ_d5_r07_center_5_5": 10910, + "surface_code_bZ_d5_r09_center_5_5": 10064, + "surface_code_bZ_d5_r11_center_5_5": 10969, + "surface_code_bZ_d5_r13_center_5_5": 13419, + "surface_code_bZ_d5_r15_center_5_5": 12842, + "surface_code_bZ_d5_r17_center_5_5": 13694, + "surface_code_bZ_d5_r19_center_5_5": 13449, + "surface_code_bZ_d5_r21_center_5_5": 13799, + "surface_code_bZ_d5_r23_center_5_5": 12754, + "surface_code_bZ_d5_r25_center_5_5": 14767 + }, + "gradient_block_size": 32, + "bucket_operations": true, + "accumulate_conditions": 1, + "effective_batch_size": 1024, + "uncertainty_weight_floor": 1.0, + "example_weighting": "Uniform BCE", + "loss": "Conditional logical binary cross entropy, differentiated through exact relevant-CSS contraction; physical CSS feedback prior held fixed", + "steps": 512, + "batch": 1024, + "learning_rate": 0.001, + "sampling_seed": 20261274, + "optimizer": "AdamW, weight decay 1e-4, global gradient norm clip 1", + "optimizer_restored": false, + "rng_restored": false, + "explicit_optimizer_reset": false, + "explicit_rng_reset": false, + "sampling_state_source": "Fresh NumPy default_rng seed 20261274", + "starting_checkpoint": null, + "starting_checkpoint_sha256": null, + "starting_training_provenance": null, + "validation": "Uniform subset per all 26 conditions, sample seed 20261102; full validation required before publication", + "validation_shots_per_condition": 1024, + "test_data_used": false, + "records": [ + { + "step": 1, + "loss": 0.2600052058696747, + "objective": 0.2600052058696747, + "error": 0.1123046875, + "gradient_norm": 0.06799795478582382, + "elapsed": 27.333195447921753 + }, + { + "step": 16, + "loss": 0.0312246885150671, + "objective": 0.0312246885150671, + "error": 0.01171875, + "gradient_norm": 0.004962741397321224, + "elapsed": 48.383540868759155 + }, + { + "step": 32, + "loss": 0.22698244452476501, + "objective": 0.22698244452476501, + "error": 0.08984375, + "gradient_norm": 0.06353150308132172, + "elapsed": 57.04609966278076 + }, + { + "step": 48, + "loss": 0.5861443281173706, + "objective": 0.5861443281173706, + "error": 0.3486328125, + "gradient_norm": 0.04095375910401344, + "elapsed": 69.08654689788818 + }, + { + "step": 64, + "loss": 0.6103856563568115, + "objective": 0.6103856563568115, + "error": 0.3662109375, + "gradient_norm": 0.04155975207686424, + "elapsed": 81.63970494270325 + }, + { + "step": 80, + "loss": 0.5673234462738037, + "objective": 0.5673234462738037, + "error": 0.3125, + "gradient_norm": 0.1773851364850998, + "elapsed": 92.5357596874237 + }, + { + "step": 96, + "loss": 0.3763846755027771, + "objective": 0.3763846755027771, + "error": 0.1875, + "gradient_norm": 0.0951203852891922, + "elapsed": 103.12279391288757 + }, + { + "step": 112, + "loss": 0.45539408922195435, + "objective": 0.45539408922195435, + "error": 0.22265625, + "gradient_norm": 0.056369006633758545, + "elapsed": 112.61882042884827 + }, + { + "step": 128, + "loss": 0.015473627485334873, + "objective": 0.015473627485334873, + "error": 0.005859375, + "gradient_norm": 0.005696057807654142, + "elapsed": 125.16960310935974 + }, + { + "step": 144, + "loss": 0.03449750319123268, + "objective": 0.03449750319123268, + "error": 0.0107421875, + "gradient_norm": 0.008358650840818882, + "elapsed": 135.8080232143402 + }, + { + "step": 160, + "loss": 0.5731935501098633, + "objective": 0.5731935501098633, + "error": 0.31640625, + "gradient_norm": 0.056162577122449875, + "elapsed": 145.0349259376526 + }, + { + "step": 176, + "loss": 0.5626271963119507, + "objective": 0.5626271963119507, + "error": 0.314453125, + "gradient_norm": 0.048817526549100876, + "elapsed": 154.84093379974365 + }, + { + "step": 192, + "loss": 0.5507581233978271, + "objective": 0.5507581233978271, + "error": 0.3173828125, + "gradient_norm": 0.06503377854824066, + "elapsed": 164.7195086479187 + }, + { + "step": 208, + "loss": 0.5725968480110168, + "objective": 0.5725968480110168, + "error": 0.3251953125, + "gradient_norm": 0.047704510390758514, + "elapsed": 175.38803815841675 + }, + { + "step": 224, + "loss": 0.5249365568161011, + "objective": 0.5249365568161011, + "error": 0.2802734375, + "gradient_norm": 0.10021239519119263, + "elapsed": 187.0162854194641 + }, + { + "step": 240, + "loss": 0.2526492476463318, + "objective": 0.2526492476463318, + "error": 0.1103515625, + "gradient_norm": 0.06751289963722229, + "elapsed": 196.51696944236755 + }, + { + "step": 256, + "loss": 0.5214780569076538, + "objective": 0.5214780569076538, + "error": 0.275390625, + "gradient_norm": 0.14627203345298767, + "elapsed": 208.2405219078064 + }, + { + "step": 272, + "loss": 0.59315025806427, + "objective": 0.59315025806427, + "error": 0.341796875, + "gradient_norm": 0.03693874180316925, + "elapsed": 224.87874341011047 + }, + { + "step": 288, + "loss": 0.37350377440452576, + "objective": 0.37350377440452576, + "error": 0.169921875, + "gradient_norm": 0.05035478249192238, + "elapsed": 235.2427306175232 + }, + { + "step": 304, + "loss": 0.6201726198196411, + "objective": 0.6201726198196411, + "error": 0.3798828125, + "gradient_norm": 0.04230104014277458, + "elapsed": 244.4733214378357 + }, + { + "step": 320, + "loss": 0.5781067609786987, + "objective": 0.5781067609786987, + "error": 0.3291015625, + "gradient_norm": 0.06764703243970871, + "elapsed": 256.96991300582886 + }, + { + "step": 336, + "loss": 0.13824111223220825, + "objective": 0.13824111223220825, + "error": 0.0556640625, + "gradient_norm": 0.02330971322953701, + "elapsed": 268.097412109375 + }, + { + "step": 352, + "loss": 0.6141752004623413, + "objective": 0.6141752004623413, + "error": 0.37890625, + "gradient_norm": 0.08660273998975754, + "elapsed": 282.79302310943604 + }, + { + "step": 368, + "loss": 0.3470626473426819, + "objective": 0.3470626473426819, + "error": 0.1611328125, + "gradient_norm": 0.05711895599961281, + "elapsed": 293.79467129707336 + }, + { + "step": 384, + "loss": 0.6023644208908081, + "objective": 0.6023644208908081, + "error": 0.3466796875, + "gradient_norm": 0.08649417012929916, + "elapsed": 305.9786322116852 + }, + { + "step": 400, + "loss": 0.03022841364145279, + "objective": 0.03022841364145279, + "error": 0.0087890625, + "gradient_norm": 0.009741511195898056, + "elapsed": 315.06104922294617 + }, + { + "step": 416, + "loss": 0.23827238380908966, + "objective": 0.23827238380908966, + "error": 0.1015625, + "gradient_norm": 0.03526044636964798, + "elapsed": 325.6410942077637 + }, + { + "step": 432, + "loss": 0.43375664949417114, + "objective": 0.43375664949417114, + "error": 0.201171875, + "gradient_norm": 0.03940205276012421, + "elapsed": 336.9890570640564 + }, + { + "step": 448, + "loss": 0.5915575623512268, + "objective": 0.5915575623512268, + "error": 0.3359375, + "gradient_norm": 0.04364592209458351, + "elapsed": 346.9254243373871 + }, + { + "step": 464, + "loss": 0.5641118288040161, + "objective": 0.5641118288040161, + "error": 0.3076171875, + "gradient_norm": 0.052896615117788315, + "elapsed": 356.9816539287567 + }, + { + "step": 480, + "loss": 0.5682889223098755, + "objective": 0.5682889223098755, + "error": 0.322265625, + "gradient_norm": 0.07130409777164459, + "elapsed": 369.16103172302246 + }, + { + "step": 496, + "loss": 0.37034764885902405, + "objective": 0.37034764885902405, + "error": 0.181640625, + "gradient_norm": 0.11464523524045944, + "elapsed": 381.041054725647 + }, + { + "step": 512, + "loss": 0.5398496389389038, + "objective": 0.5398496389389038, + "error": 0.3076171875, + "gradient_norm": 0.05673467367887497, + "elapsed": 394.5030150413513 + } + ], + "reserved_sampling_audit": { + "status": "passed", + "run": "/run-state/workspace/research/learned_d5/reserved2_warm", + "partition_manifest_sha256": "241221ce16d1d4fc634bdfef691aa2a40d888f6cb75e981485c570905056257b", + "source_sha256": "0b474c57cd4d84ef86c631af7473eac8a956f03b7e4c9859efc1fbf2dbd0bca6", + "training_config_sha256": "db182d721768f832e1c83f6258b31bef0d8bf2ded239a8ab5a45cbb76378fd30", + "fit_pool": 490256, + "gate_rows_excluded": 13312, + "audit_rows_excluded": 13312, + "sampling_replayed_checkpoints": [ + 256, + 512 + ], + "training_draws": 524288, + "distinct_phase_training_rows": 317635, + "distinct_by_condition": { + "surface_code_bX_d5_r01_center_5_5": 13700, + "surface_code_bX_d5_r03_center_5_5": 10036, + "surface_code_bX_d5_r05_center_5_5": 11768, + "surface_code_bX_d5_r07_center_5_5": 10917, + "surface_code_bX_d5_r09_center_5_5": 13458, + "surface_code_bX_d5_r11_center_5_5": 11764, + "surface_code_bX_d5_r13_center_5_5": 14018, + "surface_code_bX_d5_r15_center_5_5": 10968, + "surface_code_bX_d5_r17_center_5_5": 13469, + "surface_code_bX_d5_r19_center_5_5": 11340, + "surface_code_bX_d5_r21_center_5_5": 11327, + "surface_code_bX_d5_r23_center_5_5": 13970, + "surface_code_bX_d5_r25_center_5_5": 10500, + "surface_code_bZ_d5_r01_center_5_5": 12079, + "surface_code_bZ_d5_r03_center_5_5": 12160, + "surface_code_bZ_d5_r05_center_5_5": 9494, + "surface_code_bZ_d5_r07_center_5_5": 10910, + "surface_code_bZ_d5_r09_center_5_5": 10064, + "surface_code_bZ_d5_r11_center_5_5": 10969, + "surface_code_bZ_d5_r13_center_5_5": 13419, + "surface_code_bZ_d5_r15_center_5_5": 12842, + "surface_code_bZ_d5_r17_center_5_5": 13694, + "surface_code_bZ_d5_r19_center_5_5": 13449, + "surface_code_bZ_d5_r21_center_5_5": 13799, + "surface_code_bZ_d5_r23_center_5_5": 12754, + "surface_code_bZ_d5_r25_center_5_5": 14767 + }, + "initial_optimizer_count": 0, + "last_optimizer_count": 512, + "parent_checkpoint_sha256": null, + "test_data_used": false + }, + "declared_study_plan": { + "hypothesis": "Fresh independent experts with an excluded training partition permit an honest combiner fit and an independent training-period diagnostic", + "experts": [ + { + "name": "reserved1", + "initial_seed": 20261271, + "sampling_seed": 20261272 + }, + { + "name": "reserved2", + "initial_seed": 20261273, + "sampling_seed": 20261274 + } + ], + "partition_manifest_sha256": "241221ce16d1d4fc634bdfef691aa2a40d888f6cb75e981485c570905056257b", + "partition": "Per26 d5 conditions:18856 fit,512 combiner,512 diagnostic rows; uniformly random partition seed20261270; sample IDs only check alignment", + "architecture": "Unchanged394-input64-unit neural correction, bound2, fixed physical pass3 priors, exact relevant-CSS contraction", + "training": "Each new expert:512 updates B1024 LR.001 from random initialization;1536 updates LR.0005 restoring own Adam/RNG state. Uniform eligible condition and row sampling, BCE, clip1,AdamW decay1e-4", + "validation_selection": "All26conditions/13durations: main-phase0/512/1024/1536, raw and equal-physical options versus incumbent, then fixed original/new ensembles with physical fractions0/.25/.5. Full replay/contract verification required before publication", + "combiner_expert_selection": "For each new expert and basis, minimum raw full-validation mean failure across0/512/1024/1536; earlier listed checkpoint wins ties. Freeze before using reserved labels", + "combiner_plan": "Fit small regularized syndrome-dependent mixtures using only the512 gate rows/condition. Diagnostic512 rows/condition must not fit or select weights/checkpoints/hyperparameters", + "holdout_prediction_generation": "Both reserved parts predicted without accessing label NPZ members; diagnostics only after final combiner selection is frozen", + "test_data_used": false + }, + "pipeline_control": { + "status": "passed", + "backend": "CPU", + "training_source_sha256": { + "learned_d5__reserved_train.py": "f1789039eb1500b30f716864237b9c564887ccb615f117fb9fb1a0ff15f54ff0", + "learned_d5__reserved_split.py": "69f3d3741a9625b1d70490f45202f101b6cd61b6bf332977559ec14307597456", + "learned_d5__data.py": "9e3bcfe9d45f6af60b86a580cdc9374043758a1a6f10564aef9eb344f7a6b364", + "learned_d5__model.py": "3b2d4b34a8945ddfe82d76e28b4aa917f11933ed885c0cdcd2bc389448a871fb", + "learned_exact__gradient.py": "ecb6b45698480386fa124fe878db7dbfa246d1969fd720ec26daff9547da2001", + "learned_exact__checkpoint_gradient.py": "7ece6b3f45e009727fd104a3d39e2816a8c3437f737c3d98131d3a5d7d60e9b8", + "exact_d3__exact.py": "869dfacb295c419c156d1070fc2afdd6e20d02ac1840e45e72346b2b289f4825" + }, + "control_sha256": "0302573e82d5113dfe1f63080b21b6976cc05b2ddb3677a640b005fc6050aa66", + "audits": [ + { + "status": "passed", + "run": "/run-state/workspace/research/learned_d5/reserved_smoke1", + "partition_manifest_sha256": "241221ce16d1d4fc634bdfef691aa2a40d888f6cb75e981485c570905056257b", + "source_sha256": "0b474c57cd4d84ef86c631af7473eac8a956f03b7e4c9859efc1fbf2dbd0bca6", + "training_config_sha256": "ad3b3170d682b103f82456476e4a4f7c3096707269b72c242ec43d820dc06856", + "fit_pool": 490256, + "gate_rows_excluded": 13312, + "audit_rows_excluded": 13312, + "sampling_replayed_checkpoints": [ + 1 + ], + "training_draws": 2, + "distinct_phase_training_rows": 2, + "distinct_by_condition": { + "surface_code_bX_d5_r01_center_5_5": 0, + "surface_code_bX_d5_r03_center_5_5": 0, + "surface_code_bX_d5_r05_center_5_5": 0, + "surface_code_bX_d5_r07_center_5_5": 0, + "surface_code_bX_d5_r09_center_5_5": 0, + "surface_code_bX_d5_r11_center_5_5": 0, + "surface_code_bX_d5_r13_center_5_5": 0, + "surface_code_bX_d5_r15_center_5_5": 0, + "surface_code_bX_d5_r17_center_5_5": 0, + "surface_code_bX_d5_r19_center_5_5": 0, + "surface_code_bX_d5_r21_center_5_5": 0, + "surface_code_bX_d5_r23_center_5_5": 0, + "surface_code_bX_d5_r25_center_5_5": 0, + "surface_code_bZ_d5_r01_center_5_5": 0, + "surface_code_bZ_d5_r03_center_5_5": 2, + "surface_code_bZ_d5_r05_center_5_5": 0, + "surface_code_bZ_d5_r07_center_5_5": 0, + "surface_code_bZ_d5_r09_center_5_5": 0, + "surface_code_bZ_d5_r11_center_5_5": 0, + "surface_code_bZ_d5_r13_center_5_5": 0, + "surface_code_bZ_d5_r15_center_5_5": 0, + "surface_code_bZ_d5_r17_center_5_5": 0, + "surface_code_bZ_d5_r19_center_5_5": 0, + "surface_code_bZ_d5_r21_center_5_5": 0, + "surface_code_bZ_d5_r23_center_5_5": 0, + "surface_code_bZ_d5_r25_center_5_5": 0 + }, + "initial_optimizer_count": 0, + "last_optimizer_count": 1, + "parent_checkpoint_sha256": null, + "test_data_used": false + }, + { + "status": "passed", + "run": "/run-state/workspace/research/learned_d5/reserved_smoke2", + "partition_manifest_sha256": "241221ce16d1d4fc634bdfef691aa2a40d888f6cb75e981485c570905056257b", + "source_sha256": "0b474c57cd4d84ef86c631af7473eac8a956f03b7e4c9859efc1fbf2dbd0bca6", + "training_config_sha256": "ea2e649b4880641cb0c7e7b7a349d4174ce4dd276c4cdbac376e9c087f00ea1f", + "fit_pool": 490256, + "gate_rows_excluded": 13312, + "audit_rows_excluded": 13312, + "sampling_replayed_checkpoints": [ + 1 + ], + "training_draws": 2, + "distinct_phase_training_rows": 2, + "distinct_by_condition": { + "surface_code_bX_d5_r01_center_5_5": 0, + "surface_code_bX_d5_r03_center_5_5": 0, + "surface_code_bX_d5_r05_center_5_5": 0, + "surface_code_bX_d5_r07_center_5_5": 0, + "surface_code_bX_d5_r09_center_5_5": 0, + "surface_code_bX_d5_r11_center_5_5": 0, + "surface_code_bX_d5_r13_center_5_5": 0, + "surface_code_bX_d5_r15_center_5_5": 0, + "surface_code_bX_d5_r17_center_5_5": 0, + "surface_code_bX_d5_r19_center_5_5": 0, + "surface_code_bX_d5_r21_center_5_5": 0, + "surface_code_bX_d5_r23_center_5_5": 0, + "surface_code_bX_d5_r25_center_5_5": 0, + "surface_code_bZ_d5_r01_center_5_5": 0, + "surface_code_bZ_d5_r03_center_5_5": 0, + "surface_code_bZ_d5_r05_center_5_5": 0, + "surface_code_bZ_d5_r07_center_5_5": 0, + "surface_code_bZ_d5_r09_center_5_5": 0, + "surface_code_bZ_d5_r11_center_5_5": 0, + "surface_code_bZ_d5_r13_center_5_5": 0, + "surface_code_bZ_d5_r15_center_5_5": 0, + "surface_code_bZ_d5_r17_center_5_5": 0, + "surface_code_bZ_d5_r19_center_5_5": 0, + "surface_code_bZ_d5_r21_center_5_5": 2, + "surface_code_bZ_d5_r23_center_5_5": 0, + "surface_code_bZ_d5_r25_center_5_5": 0 + }, + "initial_optimizer_count": 1, + "last_optimizer_count": 2, + "parent_checkpoint_sha256": "faf01476f397259640c31a761f9774af9c0592e9118c38ffdce9502acdfcfb31", + "test_data_used": false + } + ], + "initialization_exact": true, + "parameters_updated": true, + "smoke_runs_excluded_from_selection_and_submission": true, + "test_data_used": false + } + }, + "validation": "Uniform subset per all 26 conditions, sample seed 20261102; full validation required before publication", + "validation_shots_per_condition": 1024, + "test_data_used": false, + "records": [ + { + "step": 1, + "loss": 0.30839407444000244, + "objective": 0.30839407444000244, + "error": 0.130859375, + "gradient_norm": 0.053425733000040054, + "elapsed": 28.537403345108032 + }, + { + "step": 16, + "loss": 0.021987520158290863, + "objective": 0.021987520158290863, + "error": 0.0078125, + "gradient_norm": 0.01397851575165987, + "elapsed": 48.18276286125183 + }, + { + "step": 32, + "loss": 0.5041587352752686, + "objective": 0.5041587352752686, + "error": 0.2724609375, + "gradient_norm": 0.0528741292655468, + "elapsed": 58.27348470687866 + }, + { + "step": 48, + "loss": 0.4326452612876892, + "objective": 0.4326452612876892, + "error": 0.21484375, + "gradient_norm": 0.0559566393494606, + "elapsed": 68.90473222732544 + }, + { + "step": 64, + "loss": 0.4804917275905609, + "objective": 0.4804917275905609, + "error": 0.248046875, + "gradient_norm": 0.0669105276465416, + "elapsed": 77.87249231338501 + }, + { + "step": 80, + "loss": 0.2889654338359833, + "objective": 0.2889654338359833, + "error": 0.1328125, + "gradient_norm": 0.08293467015028, + "elapsed": 86.87973022460938 + }, + { + "step": 96, + "loss": 0.5135385990142822, + "objective": 0.5135385990142822, + "error": 0.271484375, + "gradient_norm": 0.06412295252084732, + "elapsed": 95.98773431777954 + }, + { + "step": 112, + "loss": 0.31248384714126587, + "objective": 0.31248384714126587, + "error": 0.1357421875, + "gradient_norm": 0.03881710395216942, + "elapsed": 106.47444081306458 + }, + { + "step": 128, + "loss": 0.23868557810783386, + "objective": 0.23868557810783386, + "error": 0.091796875, + "gradient_norm": 0.03896595537662506, + "elapsed": 117.72143626213074 + }, + { + "step": 144, + "loss": 0.5315916538238525, + "objective": 0.5315916538238525, + "error": 0.2890625, + "gradient_norm": 0.09184520691633224, + "elapsed": 126.97882843017578 + }, + { + "step": 160, + "loss": 0.604732096195221, + "objective": 0.604732096195221, + "error": 0.3603515625, + "gradient_norm": 0.044600710272789, + "elapsed": 137.403742313385 + }, + { + "step": 176, + "loss": 0.032417282462120056, + "objective": 0.032417282462120056, + "error": 0.0107421875, + "gradient_norm": 0.010968778282403946, + "elapsed": 147.58081603050232 + }, + { + "step": 192, + "loss": 0.24050910770893097, + "objective": 0.24050910770893097, + "error": 0.087890625, + "gradient_norm": 0.052534136921167374, + "elapsed": 156.545964717865 + }, + { + "step": 208, + "loss": 0.3183761537075043, + "objective": 0.3183761537075043, + "error": 0.1435546875, + "gradient_norm": 0.05253623053431511, + "elapsed": 166.62695455551147 + }, + { + "step": 224, + "loss": 0.6407097578048706, + "objective": 0.6407097578048706, + "error": 0.3837890625, + "gradient_norm": 0.08772490173578262, + "elapsed": 174.46970582008362 + }, + { + "step": 240, + "loss": 0.597212553024292, + "objective": 0.597212553024292, + "error": 0.36328125, + "gradient_norm": 0.13039150834083557, + "elapsed": 184.2768793106079 + }, + { + "step": 256, + "loss": 0.3317721486091614, + "objective": 0.3317721486091614, + "error": 0.14453125, + "gradient_norm": 0.03749232366681099, + "elapsed": 194.6345317363739 + }, + { + "step": 272, + "loss": 0.6330116987228394, + "objective": 0.6330116987228394, + "error": 0.3955078125, + "gradient_norm": 0.06468097865581512, + "elapsed": 205.8717017173767 + }, + { + "step": 288, + "loss": 0.3141757845878601, + "objective": 0.3141757845878601, + "error": 0.138671875, + "gradient_norm": 0.046496689319610596, + "elapsed": 215.2117359638214 + }, + { + "step": 304, + "loss": 0.5782994031906128, + "objective": 0.5782994031906128, + "error": 0.345703125, + "gradient_norm": 0.06487675756216049, + "elapsed": 225.47403240203857 + }, + { + "step": 320, + "loss": 0.45729100704193115, + "objective": 0.45729100704193115, + "error": 0.2255859375, + "gradient_norm": 0.04169687256217003, + "elapsed": 233.03686332702637 + }, + { + "step": 336, + "loss": 0.49350813031196594, + "objective": 0.49350813031196594, + "error": 0.24609375, + "gradient_norm": 0.08623651415109634, + "elapsed": 244.53246903419495 + }, + { + "step": 352, + "loss": 0.25660067796707153, + "objective": 0.25660067796707153, + "error": 0.1103515625, + "gradient_norm": 0.03029652312397957, + "elapsed": 254.88137793540955 + }, + { + "step": 368, + "loss": 0.2295728325843811, + "objective": 0.2295728325843811, + "error": 0.0966796875, + "gradient_norm": 0.042884912341833115, + "elapsed": 262.7415475845337 + }, + { + "step": 384, + "loss": 0.6214326620101929, + "objective": 0.6214326620101929, + "error": 0.3759765625, + "gradient_norm": 0.08176509290933609, + "elapsed": 271.72958397865295 + }, + { + "step": 400, + "loss": 0.6463049650192261, + "objective": 0.6463049650192261, + "error": 0.3984375, + "gradient_norm": 0.08226390928030014, + "elapsed": 281.51069259643555 + }, + { + "step": 416, + "loss": 0.024987798184156418, + "objective": 0.024987798184156418, + "error": 0.0078125, + "gradient_norm": 0.0075854891911149025, + "elapsed": 291.0118627548218 + }, + { + "step": 432, + "loss": 0.5520929098129272, + "objective": 0.5520929098129272, + "error": 0.3125, + "gradient_norm": 0.09755270183086395, + "elapsed": 301.23231768608093 + }, + { + "step": 448, + "loss": 0.6077401638031006, + "objective": 0.6077401638031006, + "error": 0.361328125, + "gradient_norm": 0.04908076301217079, + "elapsed": 312.93572759628296 + }, + { + "step": 464, + "loss": 0.016434211283922195, + "objective": 0.016434211283922195, + "error": 0.005859375, + "gradient_norm": 0.007213531993329525, + "elapsed": 323.8330478668213 + }, + { + "step": 480, + "loss": 0.1582300364971161, + "objective": 0.1582300364971161, + "error": 0.064453125, + "gradient_norm": 0.028335656970739365, + "elapsed": 334.6112554073334 + }, + { + "step": 496, + "loss": 0.5916742086410522, + "objective": 0.5916742086410522, + "error": 0.35546875, + "gradient_norm": 0.08213689178228378, + "elapsed": 345.8490369319916 + }, + { + "step": 512, + "loss": 0.11447565257549286, + "objective": 0.11447565257549286, + "error": 0.04296875, + "gradient_norm": 0.028994916006922722, + "elapsed": 358.71793270111084 + }, + { + "step": 528, + "loss": 0.3011414408683777, + "objective": 0.3011414408683777, + "error": 0.1435546875, + "gradient_norm": 0.04305516928434372, + "elapsed": 373.143226146698 + }, + { + "step": 544, + "loss": 0.3099900782108307, + "objective": 0.3099900782108307, + "error": 0.130859375, + "gradient_norm": 0.06152835488319397, + "elapsed": 380.42762184143066 + }, + { + "step": 560, + "loss": 0.42917633056640625, + "objective": 0.42917633056640625, + "error": 0.203125, + "gradient_norm": 0.051812849938869476, + "elapsed": 390.78397703170776 + }, + { + "step": 576, + "loss": 0.4895544648170471, + "objective": 0.4895544648170471, + "error": 0.2451171875, + "gradient_norm": 0.059052009135484695, + "elapsed": 400.29374146461487 + }, + { + "step": 592, + "loss": 0.5950886011123657, + "objective": 0.5950886011123657, + "error": 0.328125, + "gradient_norm": 0.1449151188135147, + "elapsed": 410.06920647621155 + }, + { + "step": 608, + "loss": 0.3282078504562378, + "objective": 0.3282078504562378, + "error": 0.1484375, + "gradient_norm": 0.06495015323162079, + "elapsed": 420.5240683555603 + }, + { + "step": 624, + "loss": 0.6034166812896729, + "objective": 0.6034166812896729, + "error": 0.3388671875, + "gradient_norm": 0.05658626928925514, + "elapsed": 430.7997169494629 + }, + { + "step": 640, + "loss": 0.590431809425354, + "objective": 0.590431809425354, + "error": 0.3447265625, + "gradient_norm": 0.046094730496406555, + "elapsed": 441.8197224140167 + }, + { + "step": 656, + "loss": 0.2260439246892929, + "objective": 0.2260439246892929, + "error": 0.1015625, + "gradient_norm": 0.06323576718568802, + "elapsed": 450.76086831092834 + }, + { + "step": 672, + "loss": 0.26158156991004944, + "objective": 0.26158156991004944, + "error": 0.1162109375, + "gradient_norm": 0.08324819058179855, + "elapsed": 459.1986529827118 + }, + { + "step": 688, + "loss": 0.4871026873588562, + "objective": 0.4871026873588562, + "error": 0.244140625, + "gradient_norm": 0.051720812916755676, + "elapsed": 470.4437210559845 + }, + { + "step": 704, + "loss": 0.5861694812774658, + "objective": 0.5861694812774658, + "error": 0.341796875, + "gradient_norm": 0.05766218528151512, + "elapsed": 483.85575103759766 + }, + { + "step": 720, + "loss": 0.4168863296508789, + "objective": 0.4168863296508789, + "error": 0.21484375, + "gradient_norm": 0.05056491494178772, + "elapsed": 494.63891077041626 + }, + { + "step": 736, + "loss": 0.42054638266563416, + "objective": 0.42054638266563416, + "error": 0.21875, + "gradient_norm": 0.07021808624267578, + "elapsed": 505.4899232387543 + }, + { + "step": 752, + "loss": 0.2022928148508072, + "objective": 0.2022928148508072, + "error": 0.0849609375, + "gradient_norm": 0.0765448734164238, + "elapsed": 516.2925503253937 + }, + { + "step": 768, + "loss": 0.026398655027151108, + "objective": 0.026398655027151108, + "error": 0.0068359375, + "gradient_norm": 0.00973521638661623, + "elapsed": 524.7940125465393 + }, + { + "step": 784, + "loss": 0.5843480825424194, + "objective": 0.5843480825424194, + "error": 0.345703125, + "gradient_norm": 0.04805552959442139, + "elapsed": 535.345025062561 + }, + { + "step": 800, + "loss": 0.3102012872695923, + "objective": 0.3102012872695923, + "error": 0.134765625, + "gradient_norm": 0.09761057049036026, + "elapsed": 544.4683487415314 + }, + { + "step": 816, + "loss": 0.5332639217376709, + "objective": 0.5332639217376709, + "error": 0.30078125, + "gradient_norm": 0.10398133844137192, + "elapsed": 554.8217175006866 + }, + { + "step": 832, + "loss": 0.4870310425758362, + "objective": 0.4870310425758362, + "error": 0.2685546875, + "gradient_norm": 0.05754273384809494, + "elapsed": 564.9130115509033 + }, + { + "step": 848, + "loss": 0.1336989849805832, + "objective": 0.1336989849805832, + "error": 0.0498046875, + "gradient_norm": 0.02862304449081421, + "elapsed": 573.6143791675568 + }, + { + "step": 864, + "loss": 0.5794297456741333, + "objective": 0.5794297456741333, + "error": 0.3427734375, + "gradient_norm": 0.05002075806260109, + "elapsed": 584.2565310001373 + }, + { + "step": 880, + "loss": 0.6150081753730774, + "objective": 0.6150081753730774, + "error": 0.341796875, + "gradient_norm": 0.0605069138109684, + "elapsed": 596.845867395401 + }, + { + "step": 896, + "loss": 0.3804032504558563, + "objective": 0.3804032504558563, + "error": 0.18359375, + "gradient_norm": 0.057405781000852585, + "elapsed": 606.0786938667297 + }, + { + "step": 912, + "loss": 0.5734928846359253, + "objective": 0.5734928846359253, + "error": 0.2958984375, + "gradient_norm": 0.06807747483253479, + "elapsed": 616.9755277633667 + }, + { + "step": 928, + "loss": 0.23615539073944092, + "objective": 0.23615539073944092, + "error": 0.107421875, + "gradient_norm": 0.04033413156867027, + "elapsed": 625.9104406833649 + }, + { + "step": 944, + "loss": 0.5668450593948364, + "objective": 0.5668450593948364, + "error": 0.3134765625, + "gradient_norm": 0.04825817048549652, + "elapsed": 635.4241654872894 + }, + { + "step": 960, + "loss": 0.1369795948266983, + "objective": 0.1369795948266983, + "error": 0.0537109375, + "gradient_norm": 0.029475854709744453, + "elapsed": 646.0763671398163 + }, + { + "step": 976, + "loss": 0.026218727231025696, + "objective": 0.026218727231025696, + "error": 0.009765625, + "gradient_norm": 0.0067830472253263, + "elapsed": 656.7150173187256 + }, + { + "step": 992, + "loss": 0.6016548871994019, + "objective": 0.6016548871994019, + "error": 0.3564453125, + "gradient_norm": 0.04935981705784798, + "elapsed": 668.9989516735077 + }, + { + "step": 1008, + "loss": 0.1370980143547058, + "objective": 0.1370980143547058, + "error": 0.0546875, + "gradient_norm": 0.04418199881911278, + "elapsed": 677.3821382522583 + }, + { + "step": 1024, + "loss": 0.4085504412651062, + "objective": 0.4085504412651062, + "error": 0.19921875, + "gradient_norm": 0.07943295687437057, + "elapsed": 688.8395888805389 + }, + { + "step": 1040, + "loss": 0.34129297733306885, + "objective": 0.34129297733306885, + "error": 0.15625, + "gradient_norm": 0.04551500454545021, + "elapsed": 703.4613966941833 + }, + { + "step": 1056, + "loss": 0.5297085046768188, + "objective": 0.5297085046768188, + "error": 0.2705078125, + "gradient_norm": 0.06177444010972977, + "elapsed": 714.0862259864807 + }, + { + "step": 1072, + "loss": 0.3833361268043518, + "objective": 0.3833361268043518, + "error": 0.185546875, + "gradient_norm": 0.053057629615068436, + "elapsed": 724.1480000019073 + }, + { + "step": 1088, + "loss": 0.6497273445129395, + "objective": 0.6497273445129395, + "error": 0.421875, + "gradient_norm": 0.10790837556123734, + "elapsed": 735.8740057945251 + }, + { + "step": 1104, + "loss": 0.5393906831741333, + "objective": 0.5393906831741333, + "error": 0.2998046875, + "gradient_norm": 0.06015805900096893, + "elapsed": 743.9961709976196 + }, + { + "step": 1120, + "loss": 0.38553956151008606, + "objective": 0.38553956151008606, + "error": 0.1875, + "gradient_norm": 0.05357081815600395, + "elapsed": 753.2208635807037 + }, + { + "step": 1136, + "loss": 0.5478834509849548, + "objective": 0.5478834509849548, + "error": 0.2900390625, + "gradient_norm": 0.05761478468775749, + "elapsed": 761.3359644412994 + }, + { + "step": 1152, + "loss": 0.5732287168502808, + "objective": 0.5732287168502808, + "error": 0.341796875, + "gradient_norm": 0.07881136238574982, + "elapsed": 771.133172750473 + }, + { + "step": 1168, + "loss": 0.5174047946929932, + "objective": 0.5174047946929932, + "error": 0.29296875, + "gradient_norm": 0.07794999331235886, + "elapsed": 783.7084786891937 + }, + { + "step": 1184, + "loss": 0.5022754669189453, + "objective": 0.5022754669189453, + "error": 0.265625, + "gradient_norm": 0.05175226181745529, + "elapsed": 793.499255657196 + }, + { + "step": 1200, + "loss": 0.5698775053024292, + "objective": 0.5698775053024292, + "error": 0.34375, + "gradient_norm": 0.06385946273803711, + "elapsed": 804.970814704895 + }, + { + "step": 1216, + "loss": 0.6203033924102783, + "objective": 0.6203033924102783, + "error": 0.37109375, + "gradient_norm": 0.07393646240234375, + "elapsed": 816.1773698329926 + }, + { + "step": 1232, + "loss": 0.6154648065567017, + "objective": 0.6154648065567017, + "error": 0.3857421875, + "gradient_norm": 0.04278155043721199, + "elapsed": 827.3619928359985 + }, + { + "step": 1248, + "loss": 0.5948328971862793, + "objective": 0.5948328971862793, + "error": 0.3291015625, + "gradient_norm": 0.062024734914302826, + "elapsed": 838.8370804786682 + }, + { + "step": 1264, + "loss": 0.5644958019256592, + "objective": 0.5644958019256592, + "error": 0.3212890625, + "gradient_norm": 0.12030917406082153, + "elapsed": 849.5000331401825 + }, + { + "step": 1280, + "loss": 0.028782427310943604, + "objective": 0.028782427310943604, + "error": 0.0087890625, + "gradient_norm": 0.009096251800656319, + "elapsed": 857.8837285041809 + }, + { + "step": 1296, + "loss": 0.5129679441452026, + "objective": 0.5129679441452026, + "error": 0.2626953125, + "gradient_norm": 0.12833116948604584, + "elapsed": 868.5195860862732 + }, + { + "step": 1312, + "loss": 0.4095553159713745, + "objective": 0.4095553159713745, + "error": 0.193359375, + "gradient_norm": 0.09977155178785324, + "elapsed": 877.4712297916412 + }, + { + "step": 1328, + "loss": 0.2850862741470337, + "objective": 0.2850862741470337, + "error": 0.1240234375, + "gradient_norm": 0.05365074798464775, + "elapsed": 887.5133347511292 + }, + { + "step": 1344, + "loss": 0.41809165477752686, + "objective": 0.41809165477752686, + "error": 0.19140625, + "gradient_norm": 0.10622142255306244, + "elapsed": 895.0828025341034 + }, + { + "step": 1360, + "loss": 0.3627069890499115, + "objective": 0.3627069890499115, + "error": 0.1650390625, + "gradient_norm": 0.049557290971279144, + "elapsed": 906.2595431804657 + }, + { + "step": 1376, + "loss": 0.023341629654169083, + "objective": 0.023341629654169083, + "error": 0.0068359375, + "gradient_norm": 0.008970360271632671, + "elapsed": 916.6110022068024 + }, + { + "step": 1392, + "loss": 0.519214391708374, + "objective": 0.519214391708374, + "error": 0.26953125, + "gradient_norm": 0.052287619560956955, + "elapsed": 926.660523891449 + }, + { + "step": 1408, + "loss": 0.6152850389480591, + "objective": 0.6152850389480591, + "error": 0.3662109375, + "gradient_norm": 0.049617987126111984, + "elapsed": 936.7533056735992 + }, + { + "step": 1424, + "loss": 0.020841240882873535, + "objective": 0.020841240882873535, + "error": 0.0068359375, + "gradient_norm": 0.008459246717393398, + "elapsed": 946.8231542110443 + }, + { + "step": 1440, + "loss": 0.5963407754898071, + "objective": 0.5963407754898071, + "error": 0.3525390625, + "gradient_norm": 0.08714025467634201, + "elapsed": 956.0344398021698 + }, + { + "step": 1456, + "loss": 0.44305220246315, + "objective": 0.44305220246315, + "error": 0.2099609375, + "gradient_norm": 0.061915796250104904, + "elapsed": 967.506050825119 + }, + { + "step": 1472, + "loss": 0.5292993783950806, + "objective": 0.5292993783950806, + "error": 0.2939453125, + "gradient_norm": 0.10089804977178574, + "elapsed": 977.855934381485 + }, + { + "step": 1488, + "loss": 0.6087026596069336, + "objective": 0.6087026596069336, + "error": 0.345703125, + "gradient_norm": 0.05276322737336159, + "elapsed": 986.2705359458923 + }, + { + "step": 1504, + "loss": 0.3670162558555603, + "objective": 0.3670162558555603, + "error": 0.1796875, + "gradient_norm": 0.0575372576713562, + "elapsed": 995.2220902442932 + }, + { + "step": 1520, + "loss": 0.33479321002960205, + "objective": 0.33479321002960205, + "error": 0.1435546875, + "gradient_norm": 0.056317709386348724, + "elapsed": 1005.2168045043945 + }, + { + "step": 1536, + "loss": 0.5869293212890625, + "objective": 0.5869293212890625, + "error": 0.337890625, + "gradient_norm": 0.07419256865978241, + "elapsed": 1016.8691458702087 + } + ], + "reserved_sampling_audit": { + "status": "passed", + "run": "/run-state/workspace/research/learned_d5/reserved2_full", + "partition_manifest_sha256": "241221ce16d1d4fc634bdfef691aa2a40d888f6cb75e981485c570905056257b", + "source_sha256": "0b474c57cd4d84ef86c631af7473eac8a956f03b7e4c9859efc1fbf2dbd0bca6", + "training_config_sha256": "0f5926c94bb1aa83840c6d257757b80c081835affc2cb34bf9246ba18e00266a", + "fit_pool": 490256, + "gate_rows_excluded": 13312, + "audit_rows_excluded": 13312, + "sampling_replayed_checkpoints": [ + 512, + 1024, + 1536 + ], + "training_draws": 1572864, + "distinct_phase_training_rows": 467790, + "distinct_by_condition": { + "surface_code_bX_d5_r01_center_5_5": 18254, + "surface_code_bX_d5_r03_center_5_5": 18525, + "surface_code_bX_d5_r05_center_5_5": 18175, + "surface_code_bX_d5_r07_center_5_5": 18005, + "surface_code_bX_d5_r09_center_5_5": 18067, + "surface_code_bX_d5_r11_center_5_5": 18445, + "surface_code_bX_d5_r13_center_5_5": 18673, + "surface_code_bX_d5_r15_center_5_5": 17345, + "surface_code_bX_d5_r17_center_5_5": 17898, + "surface_code_bX_d5_r19_center_5_5": 18359, + "surface_code_bX_d5_r21_center_5_5": 18036, + "surface_code_bX_d5_r23_center_5_5": 17255, + "surface_code_bX_d5_r25_center_5_5": 18057, + "surface_code_bZ_d5_r01_center_5_5": 17596, + "surface_code_bZ_d5_r03_center_5_5": 18333, + "surface_code_bZ_d5_r05_center_5_5": 18250, + "surface_code_bZ_d5_r07_center_5_5": 18210, + "surface_code_bZ_d5_r09_center_5_5": 17447, + "surface_code_bZ_d5_r11_center_5_5": 18120, + "surface_code_bZ_d5_r13_center_5_5": 18224, + "surface_code_bZ_d5_r15_center_5_5": 17857, + "surface_code_bZ_d5_r17_center_5_5": 18359, + "surface_code_bZ_d5_r19_center_5_5": 17398, + "surface_code_bZ_d5_r21_center_5_5": 18235, + "surface_code_bZ_d5_r23_center_5_5": 16653, + "surface_code_bZ_d5_r25_center_5_5": 18014 + }, + "initial_optimizer_count": 512, + "last_optimizer_count": 2048, + "parent_checkpoint_sha256": "2b00e3f258886b5c4ecf69f36fd5463a205eefc84bd10c550acc391e84515c24", + "test_data_used": false + }, + "declared_study_plan": { + "hypothesis": "Fresh independent experts with an excluded training partition permit an honest combiner fit and an independent training-period diagnostic", + "experts": [ + { + "name": "reserved1", + "initial_seed": 20261271, + "sampling_seed": 20261272 + }, + { + "name": "reserved2", + "initial_seed": 20261273, + "sampling_seed": 20261274 + } + ], + "partition_manifest_sha256": "241221ce16d1d4fc634bdfef691aa2a40d888f6cb75e981485c570905056257b", + "partition": "Per26 d5 conditions:18856 fit,512 combiner,512 diagnostic rows; uniformly random partition seed20261270; sample IDs only check alignment", + "architecture": "Unchanged394-input64-unit neural correction, bound2, fixed physical pass3 priors, exact relevant-CSS contraction", + "training": "Each new expert:512 updates B1024 LR.001 from random initialization;1536 updates LR.0005 restoring own Adam/RNG state. Uniform eligible condition and row sampling, BCE, clip1,AdamW decay1e-4", + "validation_selection": "All26conditions/13durations: main-phase0/512/1024/1536, raw and equal-physical options versus incumbent, then fixed original/new ensembles with physical fractions0/.25/.5. Full replay/contract verification required before publication", + "combiner_expert_selection": "For each new expert and basis, minimum raw full-validation mean failure across0/512/1024/1536; earlier listed checkpoint wins ties. Freeze before using reserved labels", + "combiner_plan": "Fit small regularized syndrome-dependent mixtures using only the512 gate rows/condition. Diagnostic512 rows/condition must not fit or select weights/checkpoints/hyperparameters", + "holdout_prediction_generation": "Both reserved parts predicted without accessing label NPZ members; diagnostics only after final combiner selection is frozen", + "test_data_used": false + }, + "pipeline_control": { + "status": "passed", + "backend": "CPU", + "training_source_sha256": { + "learned_d5__reserved_train.py": "f1789039eb1500b30f716864237b9c564887ccb615f117fb9fb1a0ff15f54ff0", + "learned_d5__reserved_split.py": "69f3d3741a9625b1d70490f45202f101b6cd61b6bf332977559ec14307597456", + "learned_d5__data.py": "9e3bcfe9d45f6af60b86a580cdc9374043758a1a6f10564aef9eb344f7a6b364", + "learned_d5__model.py": "3b2d4b34a8945ddfe82d76e28b4aa917f11933ed885c0cdcd2bc389448a871fb", + "learned_exact__gradient.py": "ecb6b45698480386fa124fe878db7dbfa246d1969fd720ec26daff9547da2001", + "learned_exact__checkpoint_gradient.py": "7ece6b3f45e009727fd104a3d39e2816a8c3437f737c3d98131d3a5d7d60e9b8", + "exact_d3__exact.py": "869dfacb295c419c156d1070fc2afdd6e20d02ac1840e45e72346b2b289f4825" + }, + "control_sha256": "0302573e82d5113dfe1f63080b21b6976cc05b2ddb3677a640b005fc6050aa66", + "audits": [ + { + "status": "passed", + "run": "/run-state/workspace/research/learned_d5/reserved_smoke1", + "partition_manifest_sha256": "241221ce16d1d4fc634bdfef691aa2a40d888f6cb75e981485c570905056257b", + "source_sha256": "0b474c57cd4d84ef86c631af7473eac8a956f03b7e4c9859efc1fbf2dbd0bca6", + "training_config_sha256": "ad3b3170d682b103f82456476e4a4f7c3096707269b72c242ec43d820dc06856", + "fit_pool": 490256, + "gate_rows_excluded": 13312, + "audit_rows_excluded": 13312, + "sampling_replayed_checkpoints": [ + 1 + ], + "training_draws": 2, + "distinct_phase_training_rows": 2, + "distinct_by_condition": { + "surface_code_bX_d5_r01_center_5_5": 0, + "surface_code_bX_d5_r03_center_5_5": 0, + "surface_code_bX_d5_r05_center_5_5": 0, + "surface_code_bX_d5_r07_center_5_5": 0, + "surface_code_bX_d5_r09_center_5_5": 0, + "surface_code_bX_d5_r11_center_5_5": 0, + "surface_code_bX_d5_r13_center_5_5": 0, + "surface_code_bX_d5_r15_center_5_5": 0, + "surface_code_bX_d5_r17_center_5_5": 0, + "surface_code_bX_d5_r19_center_5_5": 0, + "surface_code_bX_d5_r21_center_5_5": 0, + "surface_code_bX_d5_r23_center_5_5": 0, + "surface_code_bX_d5_r25_center_5_5": 0, + "surface_code_bZ_d5_r01_center_5_5": 0, + "surface_code_bZ_d5_r03_center_5_5": 2, + "surface_code_bZ_d5_r05_center_5_5": 0, + "surface_code_bZ_d5_r07_center_5_5": 0, + "surface_code_bZ_d5_r09_center_5_5": 0, + "surface_code_bZ_d5_r11_center_5_5": 0, + "surface_code_bZ_d5_r13_center_5_5": 0, + "surface_code_bZ_d5_r15_center_5_5": 0, + "surface_code_bZ_d5_r17_center_5_5": 0, + "surface_code_bZ_d5_r19_center_5_5": 0, + "surface_code_bZ_d5_r21_center_5_5": 0, + "surface_code_bZ_d5_r23_center_5_5": 0, + "surface_code_bZ_d5_r25_center_5_5": 0 + }, + "initial_optimizer_count": 0, + "last_optimizer_count": 1, + "parent_checkpoint_sha256": null, + "test_data_used": false + }, + { + "status": "passed", + "run": "/run-state/workspace/research/learned_d5/reserved_smoke2", + "partition_manifest_sha256": "241221ce16d1d4fc634bdfef691aa2a40d888f6cb75e981485c570905056257b", + "source_sha256": "0b474c57cd4d84ef86c631af7473eac8a956f03b7e4c9859efc1fbf2dbd0bca6", + "training_config_sha256": "ea2e649b4880641cb0c7e7b7a349d4174ce4dd276c4cdbac376e9c087f00ea1f", + "fit_pool": 490256, + "gate_rows_excluded": 13312, + "audit_rows_excluded": 13312, + "sampling_replayed_checkpoints": [ + 1 + ], + "training_draws": 2, + "distinct_phase_training_rows": 2, + "distinct_by_condition": { + "surface_code_bX_d5_r01_center_5_5": 0, + "surface_code_bX_d5_r03_center_5_5": 0, + "surface_code_bX_d5_r05_center_5_5": 0, + "surface_code_bX_d5_r07_center_5_5": 0, + "surface_code_bX_d5_r09_center_5_5": 0, + "surface_code_bX_d5_r11_center_5_5": 0, + "surface_code_bX_d5_r13_center_5_5": 0, + "surface_code_bX_d5_r15_center_5_5": 0, + "surface_code_bX_d5_r17_center_5_5": 0, + "surface_code_bX_d5_r19_center_5_5": 0, + "surface_code_bX_d5_r21_center_5_5": 0, + "surface_code_bX_d5_r23_center_5_5": 0, + "surface_code_bX_d5_r25_center_5_5": 0, + "surface_code_bZ_d5_r01_center_5_5": 0, + "surface_code_bZ_d5_r03_center_5_5": 0, + "surface_code_bZ_d5_r05_center_5_5": 0, + "surface_code_bZ_d5_r07_center_5_5": 0, + "surface_code_bZ_d5_r09_center_5_5": 0, + "surface_code_bZ_d5_r11_center_5_5": 0, + "surface_code_bZ_d5_r13_center_5_5": 0, + "surface_code_bZ_d5_r15_center_5_5": 0, + "surface_code_bZ_d5_r17_center_5_5": 0, + "surface_code_bZ_d5_r19_center_5_5": 0, + "surface_code_bZ_d5_r21_center_5_5": 2, + "surface_code_bZ_d5_r23_center_5_5": 0, + "surface_code_bZ_d5_r25_center_5_5": 0 + }, + "initial_optimizer_count": 1, + "last_optimizer_count": 2, + "parent_checkpoint_sha256": "faf01476f397259640c31a761f9774af9c0592e9118c38ffdce9502acdfcfb31", + "test_data_used": false + } + ], + "initialization_exact": true, + "parameters_updated": true, + "smoke_runs_excluded_from_selection_and_submission": true, + "test_data_used": false + } + }, + "source_reference_package": "/run-state/workspace/research/context_upgrades/neural_d5_full3_swa/package", + "original_training_provenance": { + "training": { + "initialization": "Uniform parameter averages of checkpoints from the same session-initialized training trajectory; no external weights", + "prior_pass": 3, + "architecture": "Two 64-unit SiLU layers; 394 features; bounded 2*tanh correction to relevant-CSS edge logits from the recorded physical feedback pass; exact width-14 contraction predicts logical probability. D5 joint conditioning remains approximate.", + "hidden_width": 64, + "training": "No new optimizer updates; all learning comes from the recorded source trajectory and its session-trained parent", + "optimizer_updates_in_derived_run": 0, + "source_training_provenance": { + "initialization": "Continue from the recorded session-trained checkpoint; original random initialization seed 20261108", + "prior_pass": 3, + "initial_seed": 20261108, + "training_source_sha256": { + "learned_d5__train.py": "b73af9da21332dee9a43f653b514695b020fbc3516604b2e721d8cf0ea876d53", + "learned_d5__data.py": "9e3bcfe9d45f6af60b86a580cdc9374043758a1a6f10564aef9eb344f7a6b364", + "learned_d5__model.py": "5e9420df1f6dd56518925e910096fb9bc93bd796a5933b13bf894a1a96256cdf", + "learned_exact__gradient.py": "ecb6b45698480386fa124fe878db7dbfa246d1969fd720ec26daff9547da2001", + "learned_exact__checkpoint_gradient.py": "7ece6b3f45e009727fd104a3d39e2816a8c3437f737c3d98131d3a5d7d60e9b8", + "exact_d3__exact.py": "869dfacb295c419c156d1070fc2afdd6e20d02ac1840e45e72346b2b289f4825" + }, + "runtime_versions": { + "jax": "0.7.2", + "numpy": "2.3.3", + "optax": "0.2.6" + }, + "architecture": "Two 64-unit SiLU layers; 394 features; bounded 2*tanh correction to relevant-CSS edge logits from the recorded physical feedback pass; exact width-14 contraction predicts logical probability. D5 joint conditioning remains approximate.", + "training": "All supplied training shots per each of all26 d5 conditions; uniform condition and within-condition sampling for optimizer batches.", + "training_cache": "/run-state/workspace/research/learned_d5/full_training_priors3", + "training_cache_provenance": { + "method": "Three undamped physical CSS extrinsic-message passes, clipping8, pass1/pass3 priors captured before logical readout", + "scope": "All supplied training rows in all26 d5 conditions; no validation or test labels used in cache generation", + "reused_rows": "4096 rows per condition from feedback5_cache, sampled with seed20261023; same first three passes", + "remaining_rows": "Computed now with last-only logical tracking; previously controlled against full logical tracking", + "train_manifest_sha256": "ce46c21e3595cfc5885bbe2b6481105317d2e6267498ec4572601469825914b8", + "records": [ + { + "condition": "surface_code_bX_d5_r25_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 44.93641114234924, + "elapsed": 45.15474009513855, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r25_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 43.11551070213318, + "elapsed": 88.52458453178406, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r23_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 39.70699763298035, + "elapsed": 128.4802794456482, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r23_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 41.178571701049805, + "elapsed": 169.95510387420654, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r21_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 41.53053879737854, + "elapsed": 211.7576286792755, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r21_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 43.43117809295654, + "elapsed": 255.62733364105225, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r19_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 33.84876799583435, + "elapsed": 289.70106053352356, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r19_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 32.88018870353699, + "elapsed": 322.7981607913971, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r17_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 29.585307836532593, + "elapsed": 352.58776783943176, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r17_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 29.854028463363647, + "elapsed": 382.6393291950226, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r15_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 26.721288919448853, + "elapsed": 409.54919600486755, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r15_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 29.810269832611084, + "elapsed": 439.6440734863281, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r13_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 29.79407238960266, + "elapsed": 469.7887041568756, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r13_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 28.757604837417603, + "elapsed": 498.71140813827515, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r11_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 25.38013219833374, + "elapsed": 524.2447266578674, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r11_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 25.378958225250244, + "elapsed": 549.8600506782532, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r09_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 21.241567850112915, + "elapsed": 571.2600774765015, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r09_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 18.780335664749146, + "elapsed": 590.304051399231, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r07_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 14.346807956695557, + "elapsed": 604.8041462898254, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r07_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 14.03441047668457, + "elapsed": 618.9537570476532, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r05_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 10.811666488647461, + "elapsed": 629.8610434532166, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r05_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 10.982703924179077, + "elapsed": 640.9919559955597, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r03_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 7.846271991729736, + "elapsed": 648.9624857902527, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r03_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 7.83586859703064, + "elapsed": 656.9065537452698, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r01_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 0.7685718536376953, + "elapsed": 657.7747800350189, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r01_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 0.748960018157959, + "elapsed": 658.5666444301605, + "peak_gpu_bytes": 58661028096 + } + ], + "test_data_used": false + }, + "training_shots": 516880, + "training_pool_interpretation": "Eligible training rows; optimizer samples conditions and rows with replacement. Distinct rows used in this phase are recorded separately.", + "unique_training_rows_seen_in_this_phase": 507282, + "unique_rows_by_condition": { + "surface_code_bX_d5_r01_center_5_5": 19592, + "surface_code_bX_d5_r03_center_5_5": 19646, + "surface_code_bX_d5_r05_center_5_5": 19513, + "surface_code_bX_d5_r07_center_5_5": 19341, + "surface_code_bX_d5_r09_center_5_5": 19211, + "surface_code_bX_d5_r11_center_5_5": 19239, + "surface_code_bX_d5_r13_center_5_5": 19679, + "surface_code_bX_d5_r15_center_5_5": 19455, + "surface_code_bX_d5_r17_center_5_5": 19479, + "surface_code_bX_d5_r19_center_5_5": 19479, + "surface_code_bX_d5_r21_center_5_5": 19551, + "surface_code_bX_d5_r23_center_5_5": 19586, + "surface_code_bX_d5_r25_center_5_5": 19526, + "surface_code_bZ_d5_r01_center_5_5": 19652, + "surface_code_bZ_d5_r03_center_5_5": 19732, + "surface_code_bZ_d5_r05_center_5_5": 19754, + "surface_code_bZ_d5_r07_center_5_5": 19194, + "surface_code_bZ_d5_r09_center_5_5": 19641, + "surface_code_bZ_d5_r11_center_5_5": 19611, + "surface_code_bZ_d5_r13_center_5_5": 19424, + "surface_code_bZ_d5_r15_center_5_5": 19380, + "surface_code_bZ_d5_r17_center_5_5": 19384, + "surface_code_bZ_d5_r19_center_5_5": 19684, + "surface_code_bZ_d5_r21_center_5_5": 19559, + "surface_code_bZ_d5_r23_center_5_5": 19524, + "surface_code_bZ_d5_r25_center_5_5": 19446 + }, + "gradient_block_size": 32, + "bucket_operations": true, + "accumulate_conditions": 1, + "effective_batch_size": 1024, + "uncertainty_weight_floor": 1.0, + "example_weighting": "Uniform BCE", + "loss": "Conditional logical binary cross entropy, differentiated through exact relevant-CSS contraction; physical CSS feedback prior held fixed", + "steps": 2048, + "batch": 1024, + "learning_rate": 0.0005, + "sampling_seed": 20261113, + "optimizer": "AdamW, weight decay 1e-4, global gradient norm clip 1", + "optimizer_restored": true, + "rng_restored": true, + "sampling_state_source": "/run-state/workspace/research/learned_d5/feedback3_pilot/rng-768.json", + "starting_checkpoint": "/run-state/workspace/research/learned_d5/feedback3_pilot/weights-768.npz", + "starting_checkpoint_sha256": "bc2ba1c529317ce1b5b661efae4707eca49c6995d6f22b04193fe7642662fed8", + "starting_training_provenance": { + "initialization": "All parameters initialized in this session: variance-scaled normal hidden layers, Normal(0,.001) output weights, zero biases, seed 20261108", + "prior_pass": 3, + "initial_seed": 20261108, + "architecture": "Two 64-unit SiLU layers; 394 features; bounded 2*tanh correction to relevant-CSS edge logits from the recorded physical feedback pass; exact width-14 contraction predicts logical probability. D5 joint conditioning remains approximate.", + "training": "4096 training shots per each of all 26 d5 conditions, sampled without replacement with seed 20261023. Uniform condition and within-condition sampling for optimizer batches.", + "loss": "Conditional logical binary cross entropy, differentiated through exact relevant-CSS contraction; physical CSS feedback prior held fixed", + "steps": 1024, + "batch": 256, + "learning_rate": 0.001, + "sampling_seed": 20261108, + "optimizer": "AdamW, weight decay 1e-4, global gradient norm clip 1", + "optimizer_restored": false, + "starting_checkpoint": null, + "validation": "Uniform subset per all 26 conditions, sample seed 20261102; full validation required before publication", + "validation_shots_per_condition": 1024, + "test_data_used": false, + "records": [ + { + "step": 1, + "loss": 0.011146659031510353, + "error": 0.00390625, + "gradient_norm": 0.011240893043577671, + "elapsed": 21.276997089385986 + }, + { + "step": 16, + "loss": 0.645737886428833, + "error": 0.40625, + "gradient_norm": 0.1628236621618271, + "elapsed": 25.872907638549805 + }, + { + "step": 32, + "loss": 0.574029803276062, + "error": 0.35546875, + "gradient_norm": 0.3000081777572632, + "elapsed": 30.761418342590332 + }, + { + "step": 48, + "loss": 0.574467122554779, + "error": 0.296875, + "gradient_norm": 0.24150623381137848, + "elapsed": 35.67650651931763 + }, + { + "step": 64, + "loss": 0.6003620624542236, + "error": 0.35546875, + "gradient_norm": 0.07430054992437363, + "elapsed": 40.60572576522827 + }, + { + "step": 80, + "loss": 0.5429091453552246, + "error": 0.33203125, + "gradient_norm": 0.15341751277446747, + "elapsed": 45.546849727630615 + }, + { + "step": 96, + "loss": 0.368771493434906, + "error": 0.1640625, + "gradient_norm": 0.08923184871673584, + "elapsed": 50.49156332015991 + }, + { + "step": 112, + "loss": 0.516342043876648, + "error": 0.265625, + "gradient_norm": 0.10965219140052795, + "elapsed": 55.45058846473694 + }, + { + "step": 128, + "loss": 0.5925382971763611, + "error": 0.37109375, + "gradient_norm": 0.055406324565410614, + "elapsed": 60.40891766548157 + }, + { + "step": 144, + "loss": 0.19184258580207825, + "error": 0.07421875, + "gradient_norm": 0.07042146474123001, + "elapsed": 65.33323669433594 + }, + { + "step": 160, + "loss": 0.5202382206916809, + "error": 0.25390625, + "gradient_norm": 0.14782382547855377, + "elapsed": 70.26605796813965 + }, + { + "step": 176, + "loss": 0.46083134412765503, + "error": 0.22265625, + "gradient_norm": 0.09074779599905014, + "elapsed": 75.18221640586853 + }, + { + "step": 192, + "loss": 0.3054918646812439, + "error": 0.14453125, + "gradient_norm": 0.0588168129324913, + "elapsed": 80.1186010837555 + }, + { + "step": 208, + "loss": 0.4836011230945587, + "error": 0.27734375, + "gradient_norm": 0.09208947420120239, + "elapsed": 85.05764293670654 + }, + { + "step": 224, + "loss": 0.6640600562095642, + "error": 0.38671875, + "gradient_norm": 0.22026506066322327, + "elapsed": 89.98808217048645 + }, + { + "step": 240, + "loss": 0.02421322464942932, + "error": 0.00390625, + "gradient_norm": 0.008131005801260471, + "elapsed": 94.90194272994995 + }, + { + "step": 256, + "loss": 0.6302106976509094, + "error": 0.4296875, + "gradient_norm": 0.09762304276227951, + "elapsed": 99.82612204551697 + }, + { + "step": 272, + "loss": 0.5092596411705017, + "error": 0.27734375, + "gradient_norm": 0.11407691985368729, + "elapsed": 110.44065999984741 + }, + { + "step": 288, + "loss": 0.452798455953598, + "error": 0.2265625, + "gradient_norm": 0.1105576679110527, + "elapsed": 115.36984539031982 + }, + { + "step": 304, + "loss": 0.3378596305847168, + "error": 0.18359375, + "gradient_norm": 0.0841713547706604, + "elapsed": 120.29337763786316 + }, + { + "step": 320, + "loss": 0.6271854639053345, + "error": 0.38671875, + "gradient_norm": 0.1972702294588089, + "elapsed": 125.2231035232544 + }, + { + "step": 336, + "loss": 0.04562236741185188, + "error": 0.01171875, + "gradient_norm": 0.027922745794057846, + "elapsed": 130.14725255966187 + }, + { + "step": 352, + "loss": 0.5342530608177185, + "error": 0.26953125, + "gradient_norm": 0.09031179547309875, + "elapsed": 135.08111095428467 + }, + { + "step": 368, + "loss": 0.49785488843917847, + "error": 0.2578125, + "gradient_norm": 0.19366280734539032, + "elapsed": 140.00699138641357 + }, + { + "step": 384, + "loss": 0.5673326253890991, + "error": 0.30859375, + "gradient_norm": 0.20644932985305786, + "elapsed": 144.92276740074158 + }, + { + "step": 400, + "loss": 0.5581298470497131, + "error": 0.3203125, + "gradient_norm": 0.17668266594409943, + "elapsed": 149.86573243141174 + }, + { + "step": 416, + "loss": 0.5564071536064148, + "error": 0.30078125, + "gradient_norm": 0.0821610689163208, + "elapsed": 154.7953712940216 + }, + { + "step": 432, + "loss": 0.5540086030960083, + "error": 0.34765625, + "gradient_norm": 0.1438807100057602, + "elapsed": 159.72657418251038 + }, + { + "step": 448, + "loss": 0.540939450263977, + "error": 0.29296875, + "gradient_norm": 0.17986361682415009, + "elapsed": 164.6689453125 + }, + { + "step": 464, + "loss": 0.45807865262031555, + "error": 0.25, + "gradient_norm": 0.14453186094760895, + "elapsed": 169.58739304542542 + }, + { + "step": 480, + "loss": 0.5191650390625, + "error": 0.22265625, + "gradient_norm": 0.07955105602741241, + "elapsed": 174.5444438457489 + }, + { + "step": 496, + "loss": 0.1692925989627838, + "error": 0.0703125, + "gradient_norm": 0.07875128090381622, + "elapsed": 179.48035550117493 + }, + { + "step": 512, + "loss": 0.5580664873123169, + "error": 0.3125, + "gradient_norm": 0.27090802788734436, + "elapsed": 184.42834162712097 + }, + { + "step": 528, + "loss": 0.26402050256729126, + "error": 0.13671875, + "gradient_norm": 0.13135771453380585, + "elapsed": 195.17691040039062 + }, + { + "step": 544, + "loss": 0.4352915287017822, + "error": 0.1953125, + "gradient_norm": 0.15959712862968445, + "elapsed": 200.0421543121338 + }, + { + "step": 560, + "loss": 0.22861814498901367, + "error": 0.1015625, + "gradient_norm": 0.08776932209730148, + "elapsed": 204.95144605636597 + }, + { + "step": 576, + "loss": 0.28309381008148193, + "error": 0.1328125, + "gradient_norm": 0.11050742119550705, + "elapsed": 209.8526291847229 + }, + { + "step": 592, + "loss": 0.6409220695495605, + "error": 0.41015625, + "gradient_norm": 0.19826626777648926, + "elapsed": 214.84447717666626 + }, + { + "step": 608, + "loss": 0.25090643763542175, + "error": 0.109375, + "gradient_norm": 0.05864342302083969, + "elapsed": 219.72637391090393 + }, + { + "step": 624, + "loss": 0.11423969268798828, + "error": 0.05078125, + "gradient_norm": 0.05318564549088478, + "elapsed": 224.6331377029419 + }, + { + "step": 640, + "loss": 0.32663431763648987, + "error": 0.1328125, + "gradient_norm": 0.06877780705690384, + "elapsed": 229.5065622329712 + }, + { + "step": 656, + "loss": 0.24196995794773102, + "error": 0.10546875, + "gradient_norm": 0.07683655619621277, + "elapsed": 234.4042534828186 + }, + { + "step": 672, + "loss": 0.5349344611167908, + "error": 0.296875, + "gradient_norm": 0.15214307606220245, + "elapsed": 239.26656579971313 + }, + { + "step": 688, + "loss": 0.26759713888168335, + "error": 0.1171875, + "gradient_norm": 0.14698348939418793, + "elapsed": 244.21049737930298 + }, + { + "step": 704, + "loss": 0.37338894605636597, + "error": 0.18359375, + "gradient_norm": 0.10210632532835007, + "elapsed": 249.13519072532654 + }, + { + "step": 720, + "loss": 0.36807945370674133, + "error": 0.17578125, + "gradient_norm": 0.09668388962745667, + "elapsed": 254.06281065940857 + }, + { + "step": 736, + "loss": 0.3736685514450073, + "error": 0.15625, + "gradient_norm": 0.10987236350774765, + "elapsed": 259.01695108413696 + }, + { + "step": 752, + "loss": 0.5266942977905273, + "error": 0.29296875, + "gradient_norm": 0.09041415899991989, + "elapsed": 263.9530746936798 + }, + { + "step": 768, + "loss": 0.360038161277771, + "error": 0.1640625, + "gradient_norm": 0.10391079634428024, + "elapsed": 268.9019305706024 + }, + { + "step": 784, + "loss": 0.5700286626815796, + "error": 0.34375, + "gradient_norm": 0.12206032127141953, + "elapsed": 279.4174163341522 + }, + { + "step": 800, + "loss": 0.42533689737319946, + "error": 0.20703125, + "gradient_norm": 0.06605375558137894, + "elapsed": 284.3391351699829 + }, + { + "step": 816, + "loss": 0.12355346977710724, + "error": 0.046875, + "gradient_norm": 0.06571663916110992, + "elapsed": 289.2815272808075 + }, + { + "step": 832, + "loss": 0.6411258578300476, + "error": 0.3984375, + "gradient_norm": 0.160088911652565, + "elapsed": 294.2048614025116 + }, + { + "step": 848, + "loss": 0.5756919980049133, + "error": 0.3515625, + "gradient_norm": 0.0962308868765831, + "elapsed": 299.15635418891907 + }, + { + "step": 864, + "loss": 0.2706402540206909, + "error": 0.1171875, + "gradient_norm": 0.11391306668519974, + "elapsed": 304.09321761131287 + }, + { + "step": 880, + "loss": 0.33621329069137573, + "error": 0.1640625, + "gradient_norm": 0.09049320220947266, + "elapsed": 309.0412187576294 + }, + { + "step": 896, + "loss": 0.44343245029449463, + "error": 0.23828125, + "gradient_norm": 0.12484703958034515, + "elapsed": 313.98498797416687 + }, + { + "step": 912, + "loss": 0.5987736582756042, + "error": 0.359375, + "gradient_norm": 0.07541236281394958, + "elapsed": 318.9334623813629 + }, + { + "step": 928, + "loss": 0.38585522770881653, + "error": 0.1875, + "gradient_norm": 0.09290861338376999, + "elapsed": 323.86884689331055 + }, + { + "step": 944, + "loss": 0.4820440113544464, + "error": 0.234375, + "gradient_norm": 0.22198310494422913, + "elapsed": 328.7963180541992 + }, + { + "step": 960, + "loss": 0.07455944269895554, + "error": 0.015625, + "gradient_norm": 0.055282026529312134, + "elapsed": 333.75238251686096 + }, + { + "step": 976, + "loss": 0.013475366868078709, + "error": 0.0078125, + "gradient_norm": 0.009843004867434502, + "elapsed": 338.6403331756592 + }, + { + "step": 992, + "loss": 0.4429199695587158, + "error": 0.2265625, + "gradient_norm": 0.09489083290100098, + "elapsed": 343.5606532096863 + }, + { + "step": 1008, + "loss": 0.4892328381538391, + "error": 0.234375, + "gradient_norm": 0.1342826634645462, + "elapsed": 348.5243353843689 + }, + { + "step": 1024, + "loss": 0.6096819043159485, + "error": 0.32421875, + "gradient_norm": 0.17938998341560364, + "elapsed": 353.36506962776184 + } + ] + }, + "validation": "Uniform subset per all 26 conditions, sample seed 20261102; full validation required before publication", + "validation_shots_per_condition": 1024, + "test_data_used": false, + "records": [ + { + "step": 1, + "loss": 0.4341062307357788, + "objective": 0.4341062307357788, + "error": 0.208984375, + "gradient_norm": 0.07617632299661636, + "elapsed": 31.45817995071411 + }, + { + "step": 16, + "loss": 0.5996706485748291, + "objective": 0.5996706485748291, + "error": 0.359375, + "gradient_norm": 0.05249844491481781, + "elapsed": 56.34200572967529 + }, + { + "step": 32, + "loss": 0.4388691186904907, + "objective": 0.4388691186904907, + "error": 0.2041015625, + "gradient_norm": 0.0376109778881073, + "elapsed": 67.83739852905273 + }, + { + "step": 48, + "loss": 0.5373439788818359, + "objective": 0.5373439788818359, + "error": 0.2919921875, + "gradient_norm": 0.06261218339204788, + "elapsed": 76.69065475463867 + }, + { + "step": 64, + "loss": 0.24871854484081268, + "objective": 0.24871854484081268, + "error": 0.1162109375, + "gradient_norm": 0.05284671485424042, + "elapsed": 86.3852767944336 + }, + { + "step": 80, + "loss": 0.26628297567367554, + "objective": 0.26628297567367554, + "error": 0.123046875, + "gradient_norm": 0.04054367542266846, + "elapsed": 95.77356100082397 + }, + { + "step": 96, + "loss": 0.48436349630355835, + "objective": 0.48436349630355835, + "error": 0.259765625, + "gradient_norm": 0.05399860441684723, + "elapsed": 107.06293416023254 + }, + { + "step": 112, + "loss": 0.41063767671585083, + "objective": 0.41063767671585083, + "error": 0.1943359375, + "gradient_norm": 0.043602071702480316, + "elapsed": 116.78119611740112 + }, + { + "step": 128, + "loss": 0.3990316390991211, + "objective": 0.3990316390991211, + "error": 0.1865234375, + "gradient_norm": 0.0424419641494751, + "elapsed": 125.6915397644043 + }, + { + "step": 144, + "loss": 0.5119550228118896, + "objective": 0.5119550228118896, + "error": 0.2646484375, + "gradient_norm": 0.07688591629266739, + "elapsed": 136.20711088180542 + }, + { + "step": 160, + "loss": 0.3388235569000244, + "objective": 0.3388235569000244, + "error": 0.1630859375, + "gradient_norm": 0.07015731930732727, + "elapsed": 145.3505516052246 + }, + { + "step": 176, + "loss": 0.5952156186103821, + "objective": 0.5952156186103821, + "error": 0.3369140625, + "gradient_norm": 0.039373140782117844, + "elapsed": 154.77994871139526 + }, + { + "step": 192, + "loss": 0.15157413482666016, + "objective": 0.15157413482666016, + "error": 0.0634765625, + "gradient_norm": 0.029710670933127403, + "elapsed": 164.46801733970642 + }, + { + "step": 208, + "loss": 0.3120684027671814, + "objective": 0.3120684027671814, + "error": 0.1474609375, + "gradient_norm": 0.035548821091651917, + "elapsed": 173.24825358390808 + }, + { + "step": 224, + "loss": 0.5486405491828918, + "objective": 0.5486405491828918, + "error": 0.2900390625, + "gradient_norm": 0.0503678023815155, + "elapsed": 185.29849314689636 + }, + { + "step": 240, + "loss": 0.6046283841133118, + "objective": 0.6046283841133118, + "error": 0.3349609375, + "gradient_norm": 0.05043461173772812, + "elapsed": 197.54880928993225 + }, + { + "step": 256, + "loss": 0.5926339626312256, + "objective": 0.5926339626312256, + "error": 0.3359375, + "gradient_norm": 0.051241543143987656, + "elapsed": 211.79861068725586 + }, + { + "step": 272, + "loss": 0.4018518924713135, + "objective": 0.4018518924713135, + "error": 0.1943359375, + "gradient_norm": 0.0772147998213768, + "elapsed": 222.41974115371704 + }, + { + "step": 288, + "loss": 0.13863243162631989, + "objective": 0.13863243162631989, + "error": 0.0556640625, + "gradient_norm": 0.03334609419107437, + "elapsed": 234.04247426986694 + }, + { + "step": 304, + "loss": 0.562490701675415, + "objective": 0.562490701675415, + "error": 0.337890625, + "gradient_norm": 0.04585934057831764, + "elapsed": 242.65421533584595 + }, + { + "step": 320, + "loss": 0.5352796316146851, + "objective": 0.5352796316146851, + "error": 0.294921875, + "gradient_norm": 0.0837635025382042, + "elapsed": 252.10656356811523 + }, + { + "step": 336, + "loss": 0.26082637906074524, + "objective": 0.26082637906074524, + "error": 0.1220703125, + "gradient_norm": 0.048336997628211975, + "elapsed": 262.33449625968933 + }, + { + "step": 352, + "loss": 0.5959363579750061, + "objective": 0.5959363579750061, + "error": 0.3388671875, + "gradient_norm": 0.06797357648611069, + "elapsed": 271.9942307472229 + }, + { + "step": 368, + "loss": 0.48994284868240356, + "objective": 0.48994284868240356, + "error": 0.2587890625, + "gradient_norm": 0.06296153366565704, + "elapsed": 283.0493588447571 + }, + { + "step": 384, + "loss": 0.5710494518280029, + "objective": 0.5710494518280029, + "error": 0.3134765625, + "gradient_norm": 0.045333269983530045, + "elapsed": 294.64637446403503 + }, + { + "step": 400, + "loss": 0.5957783460617065, + "objective": 0.5957783460617065, + "error": 0.349609375, + "gradient_norm": 0.03918786719441414, + "elapsed": 307.6200888156891 + }, + { + "step": 416, + "loss": 0.27521568536758423, + "objective": 0.27521568536758423, + "error": 0.1220703125, + "gradient_norm": 0.038001637905836105, + "elapsed": 317.01610231399536 + }, + { + "step": 432, + "loss": 0.02379823848605156, + "objective": 0.02379823848605156, + "error": 0.0078125, + "gradient_norm": 0.007661945186555386, + "elapsed": 326.9360330104828 + }, + { + "step": 448, + "loss": 0.56734299659729, + "objective": 0.56734299659729, + "error": 0.3271484375, + "gradient_norm": 0.057416290044784546, + "elapsed": 339.6289041042328 + }, + { + "step": 464, + "loss": 0.10715995728969574, + "objective": 0.10715995728969574, + "error": 0.0380859375, + "gradient_norm": 0.02532491274178028, + "elapsed": 349.8584108352661 + }, + { + "step": 480, + "loss": 0.6143364310264587, + "objective": 0.6143364310264587, + "error": 0.36328125, + "gradient_norm": 0.08023032546043396, + "elapsed": 360.36362075805664 + }, + { + "step": 496, + "loss": 0.44069671630859375, + "objective": 0.44069671630859375, + "error": 0.2197265625, + "gradient_norm": 0.048025116324424744, + "elapsed": 369.48225808143616 + }, + { + "step": 512, + "loss": 0.019900165498256683, + "objective": 0.019900165498256683, + "error": 0.0107421875, + "gradient_norm": 0.0038635791279375553, + "elapsed": 378.59970593452454 + }, + { + "step": 528, + "loss": 0.033316534012556076, + "objective": 0.033316534012556076, + "error": 0.009765625, + "gradient_norm": 0.009174940176308155, + "elapsed": 393.4021761417389 + }, + { + "step": 544, + "loss": 0.41130945086479187, + "objective": 0.41130945086479187, + "error": 0.20703125, + "gradient_norm": 0.04695262759923935, + "elapsed": 402.8586280345917 + }, + { + "step": 560, + "loss": 0.5885373950004578, + "objective": 0.5885373950004578, + "error": 0.3544921875, + "gradient_norm": 0.08534500002861023, + "elapsed": 416.98661041259766 + }, + { + "step": 576, + "loss": 0.3804720640182495, + "objective": 0.3804720640182495, + "error": 0.19140625, + "gradient_norm": 0.05163278803229332, + "elapsed": 427.7550480365753 + }, + { + "step": 592, + "loss": 0.6101120710372925, + "objective": 0.6101120710372925, + "error": 0.3525390625, + "gradient_norm": 0.05593184754252434, + "elapsed": 441.05026268959045 + }, + { + "step": 608, + "loss": 0.5586092472076416, + "objective": 0.5586092472076416, + "error": 0.302734375, + "gradient_norm": 0.07458740472793579, + "elapsed": 452.95383286476135 + }, + { + "step": 624, + "loss": 0.5992780923843384, + "objective": 0.5992780923843384, + "error": 0.357421875, + "gradient_norm": 0.03618372976779938, + "elapsed": 466.1582691669464 + }, + { + "step": 640, + "loss": 0.3536975383758545, + "objective": 0.3536975383758545, + "error": 0.1650390625, + "gradient_norm": 0.05353165790438652, + "elapsed": 477.166255235672 + }, + { + "step": 656, + "loss": 0.4926893711090088, + "objective": 0.4926893711090088, + "error": 0.2626953125, + "gradient_norm": 0.05201377719640732, + "elapsed": 491.1417751312256 + }, + { + "step": 672, + "loss": 0.5754991173744202, + "objective": 0.5754991173744202, + "error": 0.3271484375, + "gradient_norm": 0.08167096972465515, + "elapsed": 501.630366563797 + }, + { + "step": 688, + "loss": 0.5685014724731445, + "objective": 0.5685014724731445, + "error": 0.333984375, + "gradient_norm": 0.043775107711553574, + "elapsed": 514.2880456447601 + }, + { + "step": 704, + "loss": 0.022465089336037636, + "objective": 0.022465089336037636, + "error": 0.0068359375, + "gradient_norm": 0.010172540321946144, + "elapsed": 522.9173214435577 + }, + { + "step": 720, + "loss": 0.035460107028484344, + "objective": 0.035460107028484344, + "error": 0.0107421875, + "gradient_norm": 0.010515578091144562, + "elapsed": 532.8470129966736 + }, + { + "step": 736, + "loss": 0.44765588641166687, + "objective": 0.44765588641166687, + "error": 0.2138671875, + "gradient_norm": 0.09050357341766357, + "elapsed": 541.9488840103149 + }, + { + "step": 752, + "loss": 0.5933939218521118, + "objective": 0.5933939218521118, + "error": 0.3359375, + "gradient_norm": 0.0665116235613823, + "elapsed": 552.9967355728149 + }, + { + "step": 768, + "loss": 0.6100764870643616, + "objective": 0.6100764870643616, + "error": 0.3515625, + "gradient_norm": 0.0821211114525795, + "elapsed": 563.7709202766418 + }, + { + "step": 784, + "loss": 0.02964692935347557, + "objective": 0.02964692935347557, + "error": 0.009765625, + "gradient_norm": 0.012663272209465504, + "elapsed": 573.1517221927643 + }, + { + "step": 800, + "loss": 0.38091832399368286, + "objective": 0.38091832399368286, + "error": 0.1904296875, + "gradient_norm": 0.060622021555900574, + "elapsed": 582.5687477588654 + }, + { + "step": 816, + "loss": 0.552335262298584, + "objective": 0.552335262298584, + "error": 0.3076171875, + "gradient_norm": 0.14419035613536835, + "elapsed": 594.4292685985565 + }, + { + "step": 832, + "loss": 0.5943340063095093, + "objective": 0.5943340063095093, + "error": 0.34375, + "gradient_norm": 0.0633513554930687, + "elapsed": 605.2052299976349 + }, + { + "step": 848, + "loss": 0.6074100732803345, + "objective": 0.6074100732803345, + "error": 0.3486328125, + "gradient_norm": 0.04225531220436096, + "elapsed": 614.8996202945709 + }, + { + "step": 864, + "loss": 0.6198879480361938, + "objective": 0.6198879480361938, + "error": 0.361328125, + "gradient_norm": 0.04208856821060181, + "elapsed": 625.4266908168793 + }, + { + "step": 880, + "loss": 0.6151762008666992, + "objective": 0.6151762008666992, + "error": 0.369140625, + "gradient_norm": 0.06261089444160461, + "elapsed": 636.0696911811829 + }, + { + "step": 896, + "loss": 0.49680083990097046, + "objective": 0.49680083990097046, + "error": 0.25390625, + "gradient_norm": 0.0827067643404007, + "elapsed": 644.6893246173859 + }, + { + "step": 912, + "loss": 0.4610927402973175, + "objective": 0.4610927402973175, + "error": 0.23828125, + "gradient_norm": 0.06652095168828964, + "elapsed": 655.969132900238 + }, + { + "step": 928, + "loss": 0.5218505859375, + "objective": 0.5218505859375, + "error": 0.2685546875, + "gradient_norm": 0.07188194245100021, + "elapsed": 667.5352523326874 + }, + { + "step": 944, + "loss": 0.33009427785873413, + "objective": 0.33009427785873413, + "error": 0.1533203125, + "gradient_norm": 0.05718810483813286, + "elapsed": 677.8397319316864 + }, + { + "step": 960, + "loss": 0.5703234672546387, + "objective": 0.5703234672546387, + "error": 0.3193359375, + "gradient_norm": 0.11168288439512253, + "elapsed": 687.8742904663086 + }, + { + "step": 976, + "loss": 0.025548014789819717, + "objective": 0.025548014789819717, + "error": 0.0107421875, + "gradient_norm": 0.009453393518924713, + "elapsed": 698.294285774231 + }, + { + "step": 992, + "loss": 0.45398157835006714, + "objective": 0.45398157835006714, + "error": 0.2412109375, + "gradient_norm": 0.04607952758669853, + "elapsed": 707.903199672699 + }, + { + "step": 1008, + "loss": 0.3412189781665802, + "objective": 0.3412189781665802, + "error": 0.1513671875, + "gradient_norm": 0.0432075597345829, + "elapsed": 718.5662748813629 + }, + { + "step": 1024, + "loss": 0.4376429319381714, + "objective": 0.4376429319381714, + "error": 0.2275390625, + "gradient_norm": 0.07974351197481155, + "elapsed": 728.8954858779907 + }, + { + "step": 1040, + "loss": 0.33512815833091736, + "objective": 0.33512815833091736, + "error": 0.150390625, + "gradient_norm": 0.04476875811815262, + "elapsed": 744.0822694301605 + }, + { + "step": 1056, + "loss": 0.5214208364486694, + "objective": 0.5214208364486694, + "error": 0.283203125, + "gradient_norm": 0.08898192644119263, + "elapsed": 755.1484262943268 + }, + { + "step": 1072, + "loss": 0.13849599659442902, + "objective": 0.13849599659442902, + "error": 0.052734375, + "gradient_norm": 0.028359953314065933, + "elapsed": 764.3303108215332 + }, + { + "step": 1088, + "loss": 0.323838472366333, + "objective": 0.323838472366333, + "error": 0.1435546875, + "gradient_norm": 0.04081716760993004, + "elapsed": 773.2739362716675 + }, + { + "step": 1104, + "loss": 0.5627881288528442, + "objective": 0.5627881288528442, + "error": 0.3125, + "gradient_norm": 0.08322097361087799, + "elapsed": 784.7223973274231 + }, + { + "step": 1120, + "loss": 0.44111010432243347, + "objective": 0.44111010432243347, + "error": 0.2216796875, + "gradient_norm": 0.05700977146625519, + "elapsed": 795.085648059845 + }, + { + "step": 1136, + "loss": 0.6395992040634155, + "objective": 0.6395992040634155, + "error": 0.39453125, + "gradient_norm": 0.0744553729891777, + "elapsed": 805.7942585945129 + }, + { + "step": 1152, + "loss": 0.5433304309844971, + "objective": 0.5433304309844971, + "error": 0.287109375, + "gradient_norm": 0.04814797267317772, + "elapsed": 817.3382890224457 + }, + { + "step": 1168, + "loss": 0.5708576440811157, + "objective": 0.5708576440811157, + "error": 0.3203125, + "gradient_norm": 0.051331400871276855, + "elapsed": 829.288791179657 + }, + { + "step": 1184, + "loss": 0.5447035431861877, + "objective": 0.5447035431861877, + "error": 0.2939453125, + "gradient_norm": 0.10116687417030334, + "elapsed": 839.6822843551636 + }, + { + "step": 1200, + "loss": 0.6125671863555908, + "objective": 0.6125671863555908, + "error": 0.3642578125, + "gradient_norm": 0.04368080571293831, + "elapsed": 850.2262740135193 + }, + { + "step": 1216, + "loss": 0.5002380609512329, + "objective": 0.5002380609512329, + "error": 0.259765625, + "gradient_norm": 0.04939017817378044, + "elapsed": 862.3783452510834 + }, + { + "step": 1232, + "loss": 0.5698772668838501, + "objective": 0.5698772668838501, + "error": 0.3173828125, + "gradient_norm": 0.04916854575276375, + "elapsed": 871.4622664451599 + }, + { + "step": 1248, + "loss": 0.6046518683433533, + "objective": 0.6046518683433533, + "error": 0.341796875, + "gradient_norm": 0.04919794574379921, + "elapsed": 883.3905737400055 + }, + { + "step": 1264, + "loss": 0.5913128852844238, + "objective": 0.5913128852844238, + "error": 0.357421875, + "gradient_norm": 0.046917904168367386, + "elapsed": 892.4264807701111 + }, + { + "step": 1280, + "loss": 0.5027461051940918, + "objective": 0.5027461051940918, + "error": 0.2626953125, + "gradient_norm": 0.04705750197172165, + "elapsed": 902.5875842571259 + }, + { + "step": 1296, + "loss": 0.13519814610481262, + "objective": 0.13519814610481262, + "error": 0.052734375, + "gradient_norm": 0.02625490538775921, + "elapsed": 912.4087471961975 + }, + { + "step": 1312, + "loss": 0.5862359404563904, + "objective": 0.5862359404563904, + "error": 0.3271484375, + "gradient_norm": 0.05441493168473244, + "elapsed": 923.992555141449 + }, + { + "step": 1328, + "loss": 0.6031408309936523, + "objective": 0.6031408309936523, + "error": 0.3505859375, + "gradient_norm": 0.05901554971933365, + "elapsed": 933.3936491012573 + }, + { + "step": 1344, + "loss": 0.5823733806610107, + "objective": 0.5823733806610107, + "error": 0.3310546875, + "gradient_norm": 0.0842989832162857, + "elapsed": 941.979998588562 + }, + { + "step": 1360, + "loss": 0.6241492033004761, + "objective": 0.6241492033004761, + "error": 0.3720703125, + "gradient_norm": 0.04446673393249512, + "elapsed": 954.969649553299 + }, + { + "step": 1376, + "loss": 0.5829156637191772, + "objective": 0.5829156637191772, + "error": 0.361328125, + "gradient_norm": 0.06615480780601501, + "elapsed": 966.0245676040649 + }, + { + "step": 1392, + "loss": 0.5968320369720459, + "objective": 0.5968320369720459, + "error": 0.34765625, + "gradient_norm": 0.05093541368842125, + "elapsed": 975.1022663116455 + }, + { + "step": 1408, + "loss": 0.045559000223875046, + "objective": 0.045559000223875046, + "error": 0.01171875, + "gradient_norm": 0.02514980360865593, + "elapsed": 987.2391452789307 + }, + { + "step": 1424, + "loss": 0.22601813077926636, + "objective": 0.22601813077926636, + "error": 0.09765625, + "gradient_norm": 0.04834206402301788, + "elapsed": 996.4583384990692 + }, + { + "step": 1440, + "loss": 0.23011144995689392, + "objective": 0.23011144995689392, + "error": 0.111328125, + "gradient_norm": 0.050687842071056366, + "elapsed": 1007.1440904140472 + }, + { + "step": 1456, + "loss": 0.018240466713905334, + "objective": 0.018240466713905334, + "error": 0.0078125, + "gradient_norm": 0.005604141391813755, + "elapsed": 1016.4502851963043 + }, + { + "step": 1472, + "loss": 0.4498720169067383, + "objective": 0.4498720169067383, + "error": 0.232421875, + "gradient_norm": 0.08179625123739243, + "elapsed": 1028.8303294181824 + }, + { + "step": 1488, + "loss": 0.24151627719402313, + "objective": 0.24151627719402313, + "error": 0.107421875, + "gradient_norm": 0.03838668763637543, + "elapsed": 1037.8867321014404 + }, + { + "step": 1504, + "loss": 0.46122002601623535, + "objective": 0.46122002601623535, + "error": 0.232421875, + "gradient_norm": 0.0726623386144638, + "elapsed": 1047.7258644104004 + }, + { + "step": 1520, + "loss": 0.5085602402687073, + "objective": 0.5085602402687073, + "error": 0.2705078125, + "gradient_norm": 0.06673175096511841, + "elapsed": 1059.352120399475 + }, + { + "step": 1536, + "loss": 0.6105246543884277, + "objective": 0.6105246543884277, + "error": 0.3818359375, + "gradient_norm": 0.04271261766552925, + "elapsed": 1070.1413230895996 + }, + { + "step": 1552, + "loss": 0.4792126417160034, + "objective": 0.4792126417160034, + "error": 0.2578125, + "gradient_norm": 0.05200039595365524, + "elapsed": 1086.444006204605 + }, + { + "step": 1568, + "loss": 0.5814266204833984, + "objective": 0.5814266204833984, + "error": 0.330078125, + "gradient_norm": 0.05867309868335724, + "elapsed": 1097.2902619838715 + }, + { + "step": 1584, + "loss": 0.6321226358413696, + "objective": 0.6321226358413696, + "error": 0.3798828125, + "gradient_norm": 0.05418067052960396, + "elapsed": 1107.9767682552338 + }, + { + "step": 1600, + "loss": 0.5931253433227539, + "objective": 0.5931253433227539, + "error": 0.3603515625, + "gradient_norm": 0.06396215409040451, + "elapsed": 1121.782609462738 + }, + { + "step": 1616, + "loss": 0.6411516666412354, + "objective": 0.6411516666412354, + "error": 0.38671875, + "gradient_norm": 0.05035768821835518, + "elapsed": 1132.7197887897491 + }, + { + "step": 1632, + "loss": 0.4267754852771759, + "objective": 0.4267754852771759, + "error": 0.2080078125, + "gradient_norm": 0.09109894186258316, + "elapsed": 1139.1667578220367 + }, + { + "step": 1648, + "loss": 0.21246182918548584, + "objective": 0.21246182918548584, + "error": 0.095703125, + "gradient_norm": 0.04478950425982475, + "elapsed": 1149.1183021068573 + }, + { + "step": 1664, + "loss": 0.46360665559768677, + "objective": 0.46360665559768677, + "error": 0.251953125, + "gradient_norm": 0.07668188214302063, + "elapsed": 1161.1197745800018 + }, + { + "step": 1680, + "loss": 0.46281397342681885, + "objective": 0.46281397342681885, + "error": 0.236328125, + "gradient_norm": 0.07954126596450806, + "elapsed": 1171.8474535942078 + }, + { + "step": 1696, + "loss": 0.2484058141708374, + "objective": 0.2484058141708374, + "error": 0.12109375, + "gradient_norm": 0.047261305153369904, + "elapsed": 1185.6542596817017 + }, + { + "step": 1712, + "loss": 0.24310235679149628, + "objective": 0.24310235679149628, + "error": 0.1064453125, + "gradient_norm": 0.07262872904539108, + "elapsed": 1197.8986082077026 + }, + { + "step": 1728, + "loss": 0.009729458019137383, + "objective": 0.009729458019137383, + "error": 0.001953125, + "gradient_norm": 0.01146845705807209, + "elapsed": 1208.495581150055 + }, + { + "step": 1744, + "loss": 0.24568752944469452, + "objective": 0.24568752944469452, + "error": 0.10546875, + "gradient_norm": 0.05830742046236992, + "elapsed": 1219.9394850730896 + }, + { + "step": 1760, + "loss": 0.022546378895640373, + "objective": 0.022546378895640373, + "error": 0.0068359375, + "gradient_norm": 0.007667526602745056, + "elapsed": 1229.5703229904175 + }, + { + "step": 1776, + "loss": 0.5848401784896851, + "objective": 0.5848401784896851, + "error": 0.3271484375, + "gradient_norm": 0.061901818960905075, + "elapsed": 1238.750280380249 + }, + { + "step": 1792, + "loss": 0.6031335592269897, + "objective": 0.6031335592269897, + "error": 0.3671875, + "gradient_norm": 0.0676632970571518, + "elapsed": 1247.7468683719635 + }, + { + "step": 1808, + "loss": 0.6210961937904358, + "objective": 0.6210961937904358, + "error": 0.3603515625, + "gradient_norm": 0.0718468651175499, + "elapsed": 1256.1821897029877 + }, + { + "step": 1824, + "loss": 0.570877730846405, + "objective": 0.570877730846405, + "error": 0.3212890625, + "gradient_norm": 0.05575930327177048, + "elapsed": 1266.4091975688934 + }, + { + "step": 1840, + "loss": 0.5711429119110107, + "objective": 0.5711429119110107, + "error": 0.31640625, + "gradient_norm": 0.0691002607345581, + "elapsed": 1277.4722146987915 + }, + { + "step": 1856, + "loss": 0.36046335101127625, + "objective": 0.36046335101127625, + "error": 0.16796875, + "gradient_norm": 0.04694395884871483, + "elapsed": 1287.1420249938965 + }, + { + "step": 1872, + "loss": 0.4688999652862549, + "objective": 0.4688999652862549, + "error": 0.2216796875, + "gradient_norm": 0.07401346415281296, + "elapsed": 1297.3945078849792 + }, + { + "step": 1888, + "loss": 0.46385282278060913, + "objective": 0.46385282278060913, + "error": 0.2373046875, + "gradient_norm": 0.05608939751982689, + "elapsed": 1305.9779334068298 + }, + { + "step": 1904, + "loss": 0.60875403881073, + "objective": 0.60875403881073, + "error": 0.365234375, + "gradient_norm": 0.05085878074169159, + "elapsed": 1317.3097081184387 + }, + { + "step": 1920, + "loss": 0.12223530560731888, + "objective": 0.12223530560731888, + "error": 0.0458984375, + "gradient_norm": 0.024870412424206734, + "elapsed": 1328.6486887931824 + }, + { + "step": 1936, + "loss": 0.3486189544200897, + "objective": 0.3486189544200897, + "error": 0.16796875, + "gradient_norm": 0.04780663549900055, + "elapsed": 1336.6701011657715 + }, + { + "step": 1952, + "loss": 0.5777363777160645, + "objective": 0.5777363777160645, + "error": 0.3427734375, + "gradient_norm": 0.0571451336145401, + "elapsed": 1346.9158833026886 + }, + { + "step": 1968, + "loss": 0.39320266246795654, + "objective": 0.39320266246795654, + "error": 0.1884765625, + "gradient_norm": 0.05673858895897865, + "elapsed": 1354.9182631969452 + }, + { + "step": 1984, + "loss": 0.5900611281394958, + "objective": 0.5900611281394958, + "error": 0.3349609375, + "gradient_norm": 0.06593932211399078, + "elapsed": 1364.2754452228546 + }, + { + "step": 2000, + "loss": 0.6212430000305176, + "objective": 0.6212430000305176, + "error": 0.3857421875, + "gradient_norm": 0.040818918496370316, + "elapsed": 1374.7192046642303 + }, + { + "step": 2016, + "loss": 0.15605247020721436, + "objective": 0.15605247020721436, + "error": 0.0556640625, + "gradient_norm": 0.03108786791563034, + "elapsed": 1386.2740807533264 + }, + { + "step": 2032, + "loss": 0.22049596905708313, + "objective": 0.22049596905708313, + "error": 0.1015625, + "gradient_norm": 0.042733557522296906, + "elapsed": 1396.6422457695007 + }, + { + "step": 2048, + "loss": 0.5642613172531128, + "objective": 0.5642613172531128, + "error": 0.306640625, + "gradient_norm": 0.07527482509613037, + "elapsed": 1407.6688070297241 + } + ] + }, + "derived_checkpoints": { + "mean3": { + "checkpoint_label": "mean3", + "kind": "uniform_parameter_average", + "optimizer_updates_in_derived_run": 0, + "source_run": "full3_1", + "source_optimizer_steps": [ + 1024, + 1536, + 2048 + ], + "source_weights_sha256": { + "1024": "22adf2425bbfb872e814227799b725f78618bccf68410935470e6c37d159a6b7", + "1536": "fb250c19cf7bb00741b6d862b8f646a2c8ab88397bb03c7bafc9085f9347eca5", + "2048": "b93c1367dfeb0e32b2add76b1abeb3f12d4d9f8145d0f13d8d5b17ca882ba3b5" + }, + "source_checkpoint_records": { + "1024": { + "step": 1024, + "training_samples": 1048576, + "unique_training_rows_seen_in_this_phase": 446179, + "weights_sha256": "22adf2425bbfb872e814227799b725f78618bccf68410935470e6c37d159a6b7", + "complete": true + }, + "1536": { + "step": 1536, + "training_samples": 1572864, + "unique_training_rows_seen_in_this_phase": 490266, + "weights_sha256": "fb250c19cf7bb00741b6d862b8f646a2c8ab88397bb03c7bafc9085f9347eca5", + "complete": true + }, + "2048": { + "step": 2048, + "training_samples": 2097152, + "unique_training_rows_seen_in_this_phase": 507282, + "weights_sha256": "b93c1367dfeb0e32b2add76b1abeb3f12d4d9f8145d0f13d8d5b17ca882ba3b5", + "complete": true + } + }, + "weights_sha256": "ce5951e7095a9912dc74719254f2fcf9654f219078392b7acf7a8545e6f9f3f4", + "complete": true + }, + "mean4": { + "checkpoint_label": "mean4", + "kind": "uniform_parameter_average", + "optimizer_updates_in_derived_run": 0, + "source_run": "full3_1", + "source_optimizer_steps": [ + 512, + 1024, + 1536, + 2048 + ], + "source_weights_sha256": { + "512": "d4194b40470453e5df9b75e12326cbbd0e6845946870bb0d53a2cbbdd6ea32dc", + "1024": "22adf2425bbfb872e814227799b725f78618bccf68410935470e6c37d159a6b7", + "1536": "fb250c19cf7bb00741b6d862b8f646a2c8ab88397bb03c7bafc9085f9347eca5", + "2048": "b93c1367dfeb0e32b2add76b1abeb3f12d4d9f8145d0f13d8d5b17ca882ba3b5" + }, + "source_checkpoint_records": { + "512": { + "step": 512, + "training_samples": 524288, + "unique_training_rows_seen_in_this_phase": 324661, + "weights_sha256": "d4194b40470453e5df9b75e12326cbbd0e6845946870bb0d53a2cbbdd6ea32dc", + "complete": true + }, + "1024": { + "step": 1024, + "training_samples": 1048576, + "unique_training_rows_seen_in_this_phase": 446179, + "weights_sha256": "22adf2425bbfb872e814227799b725f78618bccf68410935470e6c37d159a6b7", + "complete": true + }, + "1536": { + "step": 1536, + "training_samples": 1572864, + "unique_training_rows_seen_in_this_phase": 490266, + "weights_sha256": "fb250c19cf7bb00741b6d862b8f646a2c8ab88397bb03c7bafc9085f9347eca5", + "complete": true + }, + "2048": { + "step": 2048, + "training_samples": 2097152, + "unique_training_rows_seen_in_this_phase": 507282, + "weights_sha256": "b93c1367dfeb0e32b2add76b1abeb3f12d4d9f8145d0f13d8d5b17ca882ba3b5", + "complete": true + } + }, + "weights_sha256": "ff5a023ce2c18be7c29f810a3788a450e3ad3ad2237d6e9448923aa6a28c5074", + "complete": true + } + }, + "selection": "Predefined averages of the last3 or all4 saved noninitial full3_1 checkpoints; evaluate every validation condition before selecting", + "test_data_used": false, + "derivation_source_sha256": "08c498d6952b0380e001371df9a0461a483631a301f93747b821e529e72b349d" + }, + "training_source_snapshot": "training_sources/full3_swa", + "selection": "Minimum full-validation condition-mean failure per basis group over incumbent, listed neural checkpoints and equal probability averages with the recorded physical decoder.", + "physical_prediction_reference": "/run-state/workspace/research/context_upgrades/turbo1/predictions", + "prior_pass": 3, + "history": [ + { + "group": "d5_bX_center_5_5", + "candidates": { + "incumbent": 0.23290264423076928, + "mean3": 0.2335186298076923, + "blend-mean3": 0.2325420673076923, + "mean4": 0.23326322115384618, + "blend-mean4": 0.23300781250000002 + }, + "selected": "blend-mean3" + }, + { + "group": "d5_bZ_center_5_5", + "candidates": { + "incumbent": 0.22017728365384615, + "mean3": 0.22037259615384613, + "blend-mean3": 0.22091346153846153, + "mean4": 0.2205528846153846, + "blend-mean4": 0.22100360576923078 + }, + "selected": "incumbent" + } + ], + "checkpoints": { + "mean3": { + "checkpoint_label": "mean3", + "kind": "uniform_parameter_average", + "optimizer_updates_in_derived_run": 0, + "source_run": "full3_1", + "source_optimizer_steps": [ + 1024, + 1536, + 2048 + ], + "source_weights_sha256": { + "1024": "22adf2425bbfb872e814227799b725f78618bccf68410935470e6c37d159a6b7", + "1536": "fb250c19cf7bb00741b6d862b8f646a2c8ab88397bb03c7bafc9085f9347eca5", + "2048": "b93c1367dfeb0e32b2add76b1abeb3f12d4d9f8145d0f13d8d5b17ca882ba3b5" + }, + "source_checkpoint_records": { + "1024": { + "step": 1024, + "training_samples": 1048576, + "unique_training_rows_seen_in_this_phase": 446179, + "weights_sha256": "22adf2425bbfb872e814227799b725f78618bccf68410935470e6c37d159a6b7", + "complete": true + }, + "1536": { + "step": 1536, + "training_samples": 1572864, + "unique_training_rows_seen_in_this_phase": 490266, + "weights_sha256": "fb250c19cf7bb00741b6d862b8f646a2c8ab88397bb03c7bafc9085f9347eca5", + "complete": true + }, + "2048": { + "step": 2048, + "training_samples": 2097152, + "unique_training_rows_seen_in_this_phase": 507282, + "weights_sha256": "b93c1367dfeb0e32b2add76b1abeb3f12d4d9f8145d0f13d8d5b17ca882ba3b5", + "complete": true + } + }, + "weights_sha256": "ce5951e7095a9912dc74719254f2fcf9654f219078392b7acf7a8545e6f9f3f4", + "complete": true + } + }, + "runtime": "Share physical priors when the conditioning pass and regime agree; otherwise recompute the neural prior independently. Last-only physical branches omit logical tracking in intermediate passes when intermediate probabilities are unused.", + "last_only_equivalence_controls": [ + { + "condition": "surface_code_bX_d5_r03_center_5_5", + "maximum_probability_difference": 7.450580596923828e-07 + }, + { + "condition": "surface_code_bZ_d5_r03_center_5_5", + "maximum_probability_difference": 5.960464477539063e-08 + }, + { + "condition": "surface_code_bX_d5_r25_center_5_5", + "maximum_probability_difference": 5.960464477539063e-08 + }, + { + "condition": "surface_code_bZ_d5_r25_center_5_5", + "maximum_probability_difference": 1.7881393432617188e-07 + } + ], + "test_data_used": false + }, + "checkpoints": { + "1536": { + "step": 1536, + "training_samples": 1572864, + "unique_training_rows_seen_in_this_phase": 467790, + "weights_sha256": "6ebe606c36cfd41862e589568878e67b2c2accafeb093b1fee3a0955d5948f0d", + "complete": true + } + }, + "selection": "Per-basis minimum full-validation mean over the incumbent and equal old/new neural probability averages, optionally blended with physical probability at fractions 0, .25, or .5. All 13 durations included.", + "history": [ + { + "group": "d5_bX_center_5_5", + "candidates": { + "incumbent": 0.2319861778846154, + "0-physical-0": 0.23278245192307695, + "0-physical-0.25": 0.23291766826923077, + "0-physical-0.5": 0.23315805288461539, + "512-physical-0": 0.2319110576923077, + "512-physical-0.25": 0.23314302884615387, + "512-physical-0.5": 0.2329477163461538, + "1024-physical-0": 0.2325721153846154, + "1024-physical-0.25": 0.23218149038461536, + "1024-physical-0.5": 0.2329627403846154, + "1536-physical-0": 0.23186598557692306, + "1536-physical-0.25": 0.23234675480769235, + "1536-physical-0.5": 0.2330829326923077 + }, + "selected": "1536-physical-0", + "original_checkpoint": "full3_swa/mean3" + }, + { + "group": "d5_bZ_center_5_5", + "candidates": { + "incumbent": 0.21953124999999998, + "0-physical-0": 0.22029747596153845, + "0-physical-0.25": 0.22067307692307694, + "0-physical-0.5": 0.22079326923076922, + "512-physical-0": 0.22034254807692305, + "512-physical-0.25": 0.22050781249999998, + "512-physical-0.5": 0.2203725961538462, + "1024-physical-0": 0.21998197115384613, + "1024-physical-0.25": 0.22049278846153844, + "1024-physical-0.5": 0.22031250000000002, + "1536-physical-0": 0.2204026442307692, + "1536-physical-0.25": 0.2201923076923077, + "1536-physical-0.5": 0.22061298076923078 + }, + "selected": "incumbent", + "original_checkpoint": "full3_1/1536" + } + ], + "control": { + "status": "passed", + "device": "cpu", + "source_sha256": "59d6c85dc4bd61e26cf7243baf0e2637c3de1d35327b2c763707badd19446550", + "reference_package": "/run-state/workspace/research/context_upgrades/short_categorical2/package", + "members": [ + { + "weights": "weights/neural-d5-neural_d5_full3_swa-mean3.npz", + "coefficient": 1.0 + }, + { + "weights": "weights/neural-d5-neural_d5_full3_1-1536.npz", + "coefficient": 3.0 + } + ], + "cases": [ + { + "condition": "surface_code_bX_d5_r01_center_5_5", + "shots": 1, + "single_path_exact": true, + "shared_mixture_exact": true, + "cpu_recomputed_vs_gpu_cached_prior_max_difference": null + }, + { + "condition": "surface_code_bX_d5_r03_center_5_5", + "shots": 7, + "single_path_exact": true, + "shared_mixture_exact": true, + "cpu_recomputed_vs_gpu_cached_prior_max_difference": 1.7881393432617188e-07 + } + ], + "seconds": 4.879673480987549, + "scope": "Runtime probability aggregation and prior reuse; no model fitting or validation selection." + }, + "test_data_used": false + }, + "neural_d5": { + "training": { + "initialization": "Continue from the recorded session-trained checkpoint; original random initialization seed 20261273", + "prior_pass": 3, + "initial_seed": 20261273, + "training_source_sha256": { + "learned_d5__reserved_train.py": "f1789039eb1500b30f716864237b9c564887ccb615f117fb9fb1a0ff15f54ff0", + "learned_d5__reserved_split.py": "69f3d3741a9625b1d70490f45202f101b6cd61b6bf332977559ec14307597456", + "learned_d5__data.py": "9e3bcfe9d45f6af60b86a580cdc9374043758a1a6f10564aef9eb344f7a6b364", + "learned_d5__model.py": "3b2d4b34a8945ddfe82d76e28b4aa917f11933ed885c0cdcd2bc389448a871fb", + "learned_exact__gradient.py": "ecb6b45698480386fa124fe878db7dbfa246d1969fd720ec26daff9547da2001", + "learned_exact__checkpoint_gradient.py": "7ece6b3f45e009727fd104a3d39e2816a8c3437f737c3d98131d3a5d7d60e9b8", + "exact_d3__exact.py": "869dfacb295c419c156d1070fc2afdd6e20d02ac1840e45e72346b2b289f4825" + }, + "runtime_versions": { + "jax": "0.7.2", + "numpy": "2.3.3", + "optax": "0.2.6" + }, + "hidden_width": 64, + "input_features": 394, + "feature_mode": "local events, reconstructed measurements, shot densities, physical edge support and conditioned prior", + "architecture": "Two 64-unit SiLU layers; 394 features; bounded 2*tanh correction to relevant-CSS edge logits from the recorded physical feedback pass; exact width-14 contraction predicts logical probability. D5 joint conditioning remains approximate.", + "training": "Only the18856 declared fit rows per each of26 d5 conditions; both512-row gate and512-row audit partitions excluded from every optimizer update. Uniform condition/within-condition sampling.", + "reserved_training_partition": { + "manifest": "/run-state/workspace/research/learned_d5/reserved_split1/manifest.json", + "manifest_sha256": "241221ce16d1d4fc634bdfef691aa2a40d888f6cb75e981485c570905056257b", + "selected_part": "fit", + "details": { + "schema": "qecbench-training-reserved-split/v1", + "seed": 20261270, + "train_manifest_sha256": "ce46c21e3595cfc5885bbe2b6481105317d2e6267498ec4572601469825914b8", + "source_sha256": "69f3d3741a9625b1d70490f45202f101b6cd61b6bf332977559ec14307597456", + "conditions": [ + { + "condition": "surface_code_bX_d5_r01_center_5_5", + "file": "surface_code_bX_d5_r01_center_5_5.npz", + "sha256": "c72d5c5ee3daf1b128e0c226f2815009daf6127e8b028004e86cebd6047ac474", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r03_center_5_5", + "file": "surface_code_bX_d5_r03_center_5_5.npz", + "sha256": "3a59636161c80fbbf326cf1919817ce5f60ec9e6d3e4b6223579cb6a36e12e31", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r05_center_5_5", + "file": "surface_code_bX_d5_r05_center_5_5.npz", + "sha256": "e808936ef0cb32869e0944ab70a3026ef96d0f31fe0fe9967c6d87a15b85abb5", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r07_center_5_5", + "file": "surface_code_bX_d5_r07_center_5_5.npz", + "sha256": "cd0f71459448a41af10e4399637d02e8d8193dea16ab300f839cb56ad8b08203", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r09_center_5_5", + "file": "surface_code_bX_d5_r09_center_5_5.npz", + "sha256": "56648e2b93499736d40f6aa5e9e8a568f150cbc8589929578f57c1e839c92d76", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r11_center_5_5", + "file": "surface_code_bX_d5_r11_center_5_5.npz", + "sha256": "ce2dcc2bfcb57bbfcb2291105a9a011a2a3113ad92348dfa7c76076f1fb3cacf", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r13_center_5_5", + "file": "surface_code_bX_d5_r13_center_5_5.npz", + "sha256": "968b14d4d948474afd0e182d9c60cd577297d4b7bb331e916058e41692d7c9d2", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r15_center_5_5", + "file": "surface_code_bX_d5_r15_center_5_5.npz", + "sha256": "8d73808a777d81c2acc2f6aab924cc11690a94136bc666fbf11f78292a47615d", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r17_center_5_5", + "file": "surface_code_bX_d5_r17_center_5_5.npz", + "sha256": "0ab49c9dc61605d43f0c03427352af0ee230ecf7360927f75de60519d707c7ee", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r19_center_5_5", + "file": "surface_code_bX_d5_r19_center_5_5.npz", + "sha256": "27594cc6e0943860d828ebde2c76fdde64ccf2a357f896d551f3d4606e74fec4", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r21_center_5_5", + "file": "surface_code_bX_d5_r21_center_5_5.npz", + "sha256": "1b1fdcf280ca7c8ba94476f9c54b6ab70eee59b63b3be406a534014132295b7e", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r23_center_5_5", + "file": "surface_code_bX_d5_r23_center_5_5.npz", + "sha256": "d31e0ca2ce6a6d04ed7bbd80113aec8cca40526b643752d8f429ece168736759", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r25_center_5_5", + "file": "surface_code_bX_d5_r25_center_5_5.npz", + "sha256": "f45a5978d77b1ef450f2ffd9fa19413c9d647448a3d61dfafd7590671dcace19", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r01_center_5_5", + "file": "surface_code_bZ_d5_r01_center_5_5.npz", + "sha256": "647e82ac0721a7245b3deb831a5a73eb555a3cb3e58b460774ffb96dc99c3b64", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r03_center_5_5", + "file": "surface_code_bZ_d5_r03_center_5_5.npz", + "sha256": "b64be8c7883b921bd57d5eefcc53656c2dad484833e5533e499b19b45be90158", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r05_center_5_5", + "file": "surface_code_bZ_d5_r05_center_5_5.npz", + "sha256": "63361e091640a4d506fc372bd0764ad248f6551d77cdf57550405b2624ca97b1", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r07_center_5_5", + "file": "surface_code_bZ_d5_r07_center_5_5.npz", + "sha256": "c50d26a58c1fb6b5a20f5737b94c3bac9182fe703bafa221532b8b012064f655", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r09_center_5_5", + "file": "surface_code_bZ_d5_r09_center_5_5.npz", + "sha256": "d62ecb975d63f13664bc6b02d30499a3fb10f0c22f1068b28bbbc31d1ec91fcc", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r11_center_5_5", + "file": "surface_code_bZ_d5_r11_center_5_5.npz", + "sha256": "724c7dc2c4cf2b551abf4f75e230f5aa04a74eebba79c25c845f14d15863de5e", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r13_center_5_5", + "file": "surface_code_bZ_d5_r13_center_5_5.npz", + "sha256": "0e618a998fb591a85dd365eead741a91b6560ed1a3987046286a67a2c754fa83", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r15_center_5_5", + "file": "surface_code_bZ_d5_r15_center_5_5.npz", + "sha256": "e1f8c6f812dc98c48402b69a08b09b520d1374e9f2e51b3e681b67bf306e17be", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r17_center_5_5", + "file": "surface_code_bZ_d5_r17_center_5_5.npz", + "sha256": "aa23a51a79677a8ac43cc31b72fe07e73c827f935c632c29b09924fc88242d0d", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r19_center_5_5", + "file": "surface_code_bZ_d5_r19_center_5_5.npz", + "sha256": "8420b79a8d7324f41dfd1cccacfd1fae9b27b370f40c60059e9de187864dba2b", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r21_center_5_5", + "file": "surface_code_bZ_d5_r21_center_5_5.npz", + "sha256": "088b92610c90dc1a180b2eca8b16e8f225d191ec7fc11355c85e6959f35e7073", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r23_center_5_5", + "file": "surface_code_bZ_d5_r23_center_5_5.npz", + "sha256": "b1484c581cbd5439c74befabbd7c1c12e7cb38db099c793dfb3cf748df20fc3b", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r25_center_5_5", + "file": "surface_code_bZ_d5_r25_center_5_5.npz", + "sha256": "92f552059b6c197b53ff1030d9ba0fe03cf22ea1f116e5280be944ad60f04be3", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + } + ], + "counts": { + "fit": 490256, + "gate": 13312, + "audit": 13312 + }, + "split_features": "Only array lengths and seeded random permutations; IDs verify alignment and are never model features", + "gate_use": "Fit a small combiner on gate labels only after experts exclude both reserved parts", + "audit_use": "Diagnostic only; no parameter fitting, checkpoint selection, or hyperparameter selection", + "validation_use": "Supplied validation selects checkpoints and candidates; no validation labels fit parameters", + "test_data_used": false + } + }, + "training_cache": "/run-state/workspace/research/learned_d5/full_training_priors3", + "training_cache_provenance": { + "method": "Three undamped physical CSS extrinsic-message passes, clipping8, pass1/pass3 priors captured before logical readout", + "scope": "All supplied training rows in all26 d5 conditions; no validation or test labels used in cache generation", + "reused_rows": "4096 rows per condition from feedback5_cache, sampled with seed20261023; same first three passes", + "remaining_rows": "Computed now with last-only logical tracking; previously controlled against full logical tracking", + "train_manifest_sha256": "ce46c21e3595cfc5885bbe2b6481105317d2e6267498ec4572601469825914b8", + "records": [ + { + "condition": "surface_code_bX_d5_r25_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 44.93641114234924, + "elapsed": 45.15474009513855, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r25_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 43.11551070213318, + "elapsed": 88.52458453178406, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r23_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 39.70699763298035, + "elapsed": 128.4802794456482, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r23_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 41.178571701049805, + "elapsed": 169.95510387420654, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r21_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 41.53053879737854, + "elapsed": 211.7576286792755, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r21_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 43.43117809295654, + "elapsed": 255.62733364105225, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r19_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 33.84876799583435, + "elapsed": 289.70106053352356, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r19_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 32.88018870353699, + "elapsed": 322.7981607913971, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r17_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 29.585307836532593, + "elapsed": 352.58776783943176, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r17_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 29.854028463363647, + "elapsed": 382.6393291950226, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r15_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 26.721288919448853, + "elapsed": 409.54919600486755, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r15_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 29.810269832611084, + "elapsed": 439.6440734863281, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r13_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 29.79407238960266, + "elapsed": 469.7887041568756, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r13_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 28.757604837417603, + "elapsed": 498.71140813827515, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r11_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 25.38013219833374, + "elapsed": 524.2447266578674, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r11_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 25.378958225250244, + "elapsed": 549.8600506782532, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r09_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 21.241567850112915, + "elapsed": 571.2600774765015, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r09_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 18.780335664749146, + "elapsed": 590.304051399231, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r07_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 14.346807956695557, + "elapsed": 604.8041462898254, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r07_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 14.03441047668457, + "elapsed": 618.9537570476532, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r05_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 10.811666488647461, + "elapsed": 629.8610434532166, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r05_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 10.982703924179077, + "elapsed": 640.9919559955597, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r03_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 7.846271991729736, + "elapsed": 648.9624857902527, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r03_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 7.83586859703064, + "elapsed": 656.9065537452698, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r01_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 0.7685718536376953, + "elapsed": 657.7747800350189, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r01_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 0.748960018157959, + "elapsed": 658.5666444301605, + "peak_gpu_bytes": 58661028096 + } + ], + "test_data_used": false + }, + "training_shots": 490256, + "training_pool_interpretation": "Eligible training rows; optimizer samples conditions and rows with replacement. Distinct rows used in this phase are recorded separately.", + "unique_training_rows_seen_in_this_phase": 467790, + "unique_rows_by_condition": { + "surface_code_bX_d5_r01_center_5_5": 18254, + "surface_code_bX_d5_r03_center_5_5": 18525, + "surface_code_bX_d5_r05_center_5_5": 18175, + "surface_code_bX_d5_r07_center_5_5": 18005, + "surface_code_bX_d5_r09_center_5_5": 18067, + "surface_code_bX_d5_r11_center_5_5": 18445, + "surface_code_bX_d5_r13_center_5_5": 18673, + "surface_code_bX_d5_r15_center_5_5": 17345, + "surface_code_bX_d5_r17_center_5_5": 17898, + "surface_code_bX_d5_r19_center_5_5": 18359, + "surface_code_bX_d5_r21_center_5_5": 18036, + "surface_code_bX_d5_r23_center_5_5": 17255, + "surface_code_bX_d5_r25_center_5_5": 18057, + "surface_code_bZ_d5_r01_center_5_5": 17596, + "surface_code_bZ_d5_r03_center_5_5": 18333, + "surface_code_bZ_d5_r05_center_5_5": 18250, + "surface_code_bZ_d5_r07_center_5_5": 18210, + "surface_code_bZ_d5_r09_center_5_5": 17447, + "surface_code_bZ_d5_r11_center_5_5": 18120, + "surface_code_bZ_d5_r13_center_5_5": 18224, + "surface_code_bZ_d5_r15_center_5_5": 17857, + "surface_code_bZ_d5_r17_center_5_5": 18359, + "surface_code_bZ_d5_r19_center_5_5": 17398, + "surface_code_bZ_d5_r21_center_5_5": 18235, + "surface_code_bZ_d5_r23_center_5_5": 16653, + "surface_code_bZ_d5_r25_center_5_5": 18014 + }, + "gradient_block_size": 32, + "bucket_operations": true, + "accumulate_conditions": 1, + "effective_batch_size": 1024, + "uncertainty_weight_floor": 1.0, + "example_weighting": "Uniform BCE", + "loss": "Conditional logical binary cross entropy, differentiated through exact relevant-CSS contraction; physical CSS feedback prior held fixed", + "steps": 1536, + "batch": 1024, + "learning_rate": 0.0005, + "sampling_seed": 20261274, + "optimizer": "AdamW, weight decay 1e-4, global gradient norm clip 1", + "optimizer_restored": true, + "rng_restored": true, + "explicit_optimizer_reset": false, + "explicit_rng_reset": false, + "sampling_state_source": "/run-state/workspace/research/learned_d5/reserved2_warm/rng-512.json", + "starting_checkpoint": "/run-state/workspace/research/learned_d5/reserved2_warm/weights-512.npz", + "starting_checkpoint_sha256": "2b00e3f258886b5c4ecf69f36fd5463a205eefc84bd10c550acc391e84515c24", + "starting_training_provenance": { + "initialization": "All parameters initialized in this session: variance-scaled normal hidden layers, Normal(0,.001) output weights, zero biases, seed 20261273", + "prior_pass": 3, + "initial_seed": 20261273, + "training_source_sha256": { + "learned_d5__reserved_train.py": "f1789039eb1500b30f716864237b9c564887ccb615f117fb9fb1a0ff15f54ff0", + "learned_d5__reserved_split.py": "69f3d3741a9625b1d70490f45202f101b6cd61b6bf332977559ec14307597456", + "learned_d5__data.py": "9e3bcfe9d45f6af60b86a580cdc9374043758a1a6f10564aef9eb344f7a6b364", + "learned_d5__model.py": "3b2d4b34a8945ddfe82d76e28b4aa917f11933ed885c0cdcd2bc389448a871fb", + "learned_exact__gradient.py": "ecb6b45698480386fa124fe878db7dbfa246d1969fd720ec26daff9547da2001", + "learned_exact__checkpoint_gradient.py": "7ece6b3f45e009727fd104a3d39e2816a8c3437f737c3d98131d3a5d7d60e9b8", + "exact_d3__exact.py": "869dfacb295c419c156d1070fc2afdd6e20d02ac1840e45e72346b2b289f4825" + }, + "runtime_versions": { + "jax": "0.7.2", + "numpy": "2.3.3", + "optax": "0.2.6" + }, + "hidden_width": 64, + "input_features": 394, + "feature_mode": "local events, reconstructed measurements, shot densities, physical edge support and conditioned prior", + "architecture": "Two 64-unit SiLU layers; 394 features; bounded 2*tanh correction to relevant-CSS edge logits from the recorded physical feedback pass; exact width-14 contraction predicts logical probability. D5 joint conditioning remains approximate.", + "training": "Only the18856 declared fit rows per each of26 d5 conditions; both512-row gate and512-row audit partitions excluded from every optimizer update. Uniform condition/within-condition sampling.", + "reserved_training_partition": { + "manifest": "/run-state/workspace/research/learned_d5/reserved_split1/manifest.json", + "manifest_sha256": "241221ce16d1d4fc634bdfef691aa2a40d888f6cb75e981485c570905056257b", + "selected_part": "fit", + "details": { + "schema": "qecbench-training-reserved-split/v1", + "seed": 20261270, + "train_manifest_sha256": "ce46c21e3595cfc5885bbe2b6481105317d2e6267498ec4572601469825914b8", + "source_sha256": "69f3d3741a9625b1d70490f45202f101b6cd61b6bf332977559ec14307597456", + "conditions": [ + { + "condition": "surface_code_bX_d5_r01_center_5_5", + "file": "surface_code_bX_d5_r01_center_5_5.npz", + "sha256": "c72d5c5ee3daf1b128e0c226f2815009daf6127e8b028004e86cebd6047ac474", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r03_center_5_5", + "file": "surface_code_bX_d5_r03_center_5_5.npz", + "sha256": "3a59636161c80fbbf326cf1919817ce5f60ec9e6d3e4b6223579cb6a36e12e31", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r05_center_5_5", + "file": "surface_code_bX_d5_r05_center_5_5.npz", + "sha256": "e808936ef0cb32869e0944ab70a3026ef96d0f31fe0fe9967c6d87a15b85abb5", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r07_center_5_5", + "file": "surface_code_bX_d5_r07_center_5_5.npz", + "sha256": "cd0f71459448a41af10e4399637d02e8d8193dea16ab300f839cb56ad8b08203", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r09_center_5_5", + "file": "surface_code_bX_d5_r09_center_5_5.npz", + "sha256": "56648e2b93499736d40f6aa5e9e8a568f150cbc8589929578f57c1e839c92d76", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r11_center_5_5", + "file": "surface_code_bX_d5_r11_center_5_5.npz", + "sha256": "ce2dcc2bfcb57bbfcb2291105a9a011a2a3113ad92348dfa7c76076f1fb3cacf", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r13_center_5_5", + "file": "surface_code_bX_d5_r13_center_5_5.npz", + "sha256": "968b14d4d948474afd0e182d9c60cd577297d4b7bb331e916058e41692d7c9d2", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r15_center_5_5", + "file": "surface_code_bX_d5_r15_center_5_5.npz", + "sha256": "8d73808a777d81c2acc2f6aab924cc11690a94136bc666fbf11f78292a47615d", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r17_center_5_5", + "file": "surface_code_bX_d5_r17_center_5_5.npz", + "sha256": "0ab49c9dc61605d43f0c03427352af0ee230ecf7360927f75de60519d707c7ee", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r19_center_5_5", + "file": "surface_code_bX_d5_r19_center_5_5.npz", + "sha256": "27594cc6e0943860d828ebde2c76fdde64ccf2a357f896d551f3d4606e74fec4", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r21_center_5_5", + "file": "surface_code_bX_d5_r21_center_5_5.npz", + "sha256": "1b1fdcf280ca7c8ba94476f9c54b6ab70eee59b63b3be406a534014132295b7e", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r23_center_5_5", + "file": "surface_code_bX_d5_r23_center_5_5.npz", + "sha256": "d31e0ca2ce6a6d04ed7bbd80113aec8cca40526b643752d8f429ece168736759", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bX_d5_r25_center_5_5", + "file": "surface_code_bX_d5_r25_center_5_5.npz", + "sha256": "f45a5978d77b1ef450f2ffd9fa19413c9d647448a3d61dfafd7590671dcace19", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r01_center_5_5", + "file": "surface_code_bZ_d5_r01_center_5_5.npz", + "sha256": "647e82ac0721a7245b3deb831a5a73eb555a3cb3e58b460774ffb96dc99c3b64", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r03_center_5_5", + "file": "surface_code_bZ_d5_r03_center_5_5.npz", + "sha256": "b64be8c7883b921bd57d5eefcc53656c2dad484833e5533e499b19b45be90158", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r05_center_5_5", + "file": "surface_code_bZ_d5_r05_center_5_5.npz", + "sha256": "63361e091640a4d506fc372bd0764ad248f6551d77cdf57550405b2624ca97b1", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r07_center_5_5", + "file": "surface_code_bZ_d5_r07_center_5_5.npz", + "sha256": "c50d26a58c1fb6b5a20f5737b94c3bac9182fe703bafa221532b8b012064f655", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r09_center_5_5", + "file": "surface_code_bZ_d5_r09_center_5_5.npz", + "sha256": "d62ecb975d63f13664bc6b02d30499a3fb10f0c22f1068b28bbbc31d1ec91fcc", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r11_center_5_5", + "file": "surface_code_bZ_d5_r11_center_5_5.npz", + "sha256": "724c7dc2c4cf2b551abf4f75e230f5aa04a74eebba79c25c845f14d15863de5e", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r13_center_5_5", + "file": "surface_code_bZ_d5_r13_center_5_5.npz", + "sha256": "0e618a998fb591a85dd365eead741a91b6560ed1a3987046286a67a2c754fa83", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r15_center_5_5", + "file": "surface_code_bZ_d5_r15_center_5_5.npz", + "sha256": "e1f8c6f812dc98c48402b69a08b09b520d1374e9f2e51b3e681b67bf306e17be", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r17_center_5_5", + "file": "surface_code_bZ_d5_r17_center_5_5.npz", + "sha256": "aa23a51a79677a8ac43cc31b72fe07e73c827f935c632c29b09924fc88242d0d", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r19_center_5_5", + "file": "surface_code_bZ_d5_r19_center_5_5.npz", + "sha256": "8420b79a8d7324f41dfd1cccacfd1fae9b27b370f40c60059e9de187864dba2b", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r21_center_5_5", + "file": "surface_code_bZ_d5_r21_center_5_5.npz", + "sha256": "088b92610c90dc1a180b2eca8b16e8f225d191ec7fc11355c85e6959f35e7073", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r23_center_5_5", + "file": "surface_code_bZ_d5_r23_center_5_5.npz", + "sha256": "b1484c581cbd5439c74befabbd7c1c12e7cb38db099c793dfb3cf748df20fc3b", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + }, + { + "condition": "surface_code_bZ_d5_r25_center_5_5", + "file": "surface_code_bZ_d5_r25_center_5_5.npz", + "sha256": "92f552059b6c197b53ff1030d9ba0fe03cf22ea1f116e5280be944ad60f04be3", + "counts": { + "fit": 18856, + "gate": 512, + "audit": 512 + } + } + ], + "counts": { + "fit": 490256, + "gate": 13312, + "audit": 13312 + }, + "split_features": "Only array lengths and seeded random permutations; IDs verify alignment and are never model features", + "gate_use": "Fit a small combiner on gate labels only after experts exclude both reserved parts", + "audit_use": "Diagnostic only; no parameter fitting, checkpoint selection, or hyperparameter selection", + "validation_use": "Supplied validation selects checkpoints and candidates; no validation labels fit parameters", + "test_data_used": false + } + }, + "training_cache": "/run-state/workspace/research/learned_d5/full_training_priors3", + "training_cache_provenance": { + "method": "Three undamped physical CSS extrinsic-message passes, clipping8, pass1/pass3 priors captured before logical readout", + "scope": "All supplied training rows in all26 d5 conditions; no validation or test labels used in cache generation", + "reused_rows": "4096 rows per condition from feedback5_cache, sampled with seed20261023; same first three passes", + "remaining_rows": "Computed now with last-only logical tracking; previously controlled against full logical tracking", + "train_manifest_sha256": "ce46c21e3595cfc5885bbe2b6481105317d2e6267498ec4572601469825914b8", + "records": [ + { + "condition": "surface_code_bX_d5_r25_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 44.93641114234924, + "elapsed": 45.15474009513855, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r25_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 43.11551070213318, + "elapsed": 88.52458453178406, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r23_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 39.70699763298035, + "elapsed": 128.4802794456482, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r23_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 41.178571701049805, + "elapsed": 169.95510387420654, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r21_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 41.53053879737854, + "elapsed": 211.7576286792755, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r21_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 43.43117809295654, + "elapsed": 255.62733364105225, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r19_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 33.84876799583435, + "elapsed": 289.70106053352356, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r19_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 32.88018870353699, + "elapsed": 322.7981607913971, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r17_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 29.585307836532593, + "elapsed": 352.58776783943176, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r17_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 29.854028463363647, + "elapsed": 382.6393291950226, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r15_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 26.721288919448853, + "elapsed": 409.54919600486755, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r15_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 29.810269832611084, + "elapsed": 439.6440734863281, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r13_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 29.79407238960266, + "elapsed": 469.7887041568756, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r13_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 28.757604837417603, + "elapsed": 498.71140813827515, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r11_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 25.38013219833374, + "elapsed": 524.2447266578674, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r11_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 25.378958225250244, + "elapsed": 549.8600506782532, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r09_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 21.241567850112915, + "elapsed": 571.2600774765015, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r09_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 18.780335664749146, + "elapsed": 590.304051399231, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r07_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 14.346807956695557, + "elapsed": 604.8041462898254, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r07_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 14.03441047668457, + "elapsed": 618.9537570476532, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r05_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 10.811666488647461, + "elapsed": 629.8610434532166, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r05_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 10.982703924179077, + "elapsed": 640.9919559955597, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r03_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 7.846271991729736, + "elapsed": 648.9624857902527, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r03_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 7.83586859703064, + "elapsed": 656.9065537452698, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bX_d5_r01_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 0.7685718536376953, + "elapsed": 657.7747800350189, + "peak_gpu_bytes": 58661028096 + }, + { + "condition": "surface_code_bZ_d5_r01_center_5_5", + "shots": 19880, + "reused_training_rows": 4096, + "new_rows": 15784, + "seconds": 0.748960018157959, + "elapsed": 658.5666444301605, + "peak_gpu_bytes": 58661028096 + } + ], + "test_data_used": false + }, + "training_shots": 490256, + "training_pool_interpretation": "Eligible training rows; optimizer samples conditions and rows with replacement. Distinct rows used in this phase are recorded separately.", + "unique_training_rows_seen_in_this_phase": 317635, + "unique_rows_by_condition": { + "surface_code_bX_d5_r01_center_5_5": 13700, + "surface_code_bX_d5_r03_center_5_5": 10036, + "surface_code_bX_d5_r05_center_5_5": 11768, + "surface_code_bX_d5_r07_center_5_5": 10917, + "surface_code_bX_d5_r09_center_5_5": 13458, + "surface_code_bX_d5_r11_center_5_5": 11764, + "surface_code_bX_d5_r13_center_5_5": 14018, + "surface_code_bX_d5_r15_center_5_5": 10968, + "surface_code_bX_d5_r17_center_5_5": 13469, + "surface_code_bX_d5_r19_center_5_5": 11340, + "surface_code_bX_d5_r21_center_5_5": 11327, + "surface_code_bX_d5_r23_center_5_5": 13970, + "surface_code_bX_d5_r25_center_5_5": 10500, + "surface_code_bZ_d5_r01_center_5_5": 12079, + "surface_code_bZ_d5_r03_center_5_5": 12160, + "surface_code_bZ_d5_r05_center_5_5": 9494, + "surface_code_bZ_d5_r07_center_5_5": 10910, + "surface_code_bZ_d5_r09_center_5_5": 10064, + "surface_code_bZ_d5_r11_center_5_5": 10969, + "surface_code_bZ_d5_r13_center_5_5": 13419, + "surface_code_bZ_d5_r15_center_5_5": 12842, + "surface_code_bZ_d5_r17_center_5_5": 13694, + "surface_code_bZ_d5_r19_center_5_5": 13449, + "surface_code_bZ_d5_r21_center_5_5": 13799, + "surface_code_bZ_d5_r23_center_5_5": 12754, + "surface_code_bZ_d5_r25_center_5_5": 14767 + }, + "gradient_block_size": 32, + "bucket_operations": true, + "accumulate_conditions": 1, + "effective_batch_size": 1024, + "uncertainty_weight_floor": 1.0, + "example_weighting": "Uniform BCE", + "loss": "Conditional logical binary cross entropy, differentiated through exact relevant-CSS contraction; physical CSS feedback prior held fixed", + "steps": 512, + "batch": 1024, + "learning_rate": 0.001, + "sampling_seed": 20261274, + "optimizer": "AdamW, weight decay 1e-4, global gradient norm clip 1", + "optimizer_restored": false, + "rng_restored": false, + "explicit_optimizer_reset": false, + "explicit_rng_reset": false, + "sampling_state_source": "Fresh NumPy default_rng seed 20261274", + "starting_checkpoint": null, + "starting_checkpoint_sha256": null, + "starting_training_provenance": null, + "validation": "Uniform subset per all 26 conditions, sample seed 20261102; full validation required before publication", + "validation_shots_per_condition": 1024, + "test_data_used": false, + "records": [ + { + "step": 1, + "loss": 0.2600052058696747, + "objective": 0.2600052058696747, + "error": 0.1123046875, + "gradient_norm": 0.06799795478582382, + "elapsed": 27.333195447921753 + }, + { + "step": 16, + "loss": 0.0312246885150671, + "objective": 0.0312246885150671, + "error": 0.01171875, + "gradient_norm": 0.004962741397321224, + "elapsed": 48.383540868759155 + }, + { + "step": 32, + "loss": 0.22698244452476501, + "objective": 0.22698244452476501, + "error": 0.08984375, + "gradient_norm": 0.06353150308132172, + "elapsed": 57.04609966278076 + }, + { + "step": 48, + "loss": 0.5861443281173706, + "objective": 0.5861443281173706, + "error": 0.3486328125, + "gradient_norm": 0.04095375910401344, + "elapsed": 69.08654689788818 + }, + { + "step": 64, + "loss": 0.6103856563568115, + "objective": 0.6103856563568115, + "error": 0.3662109375, + "gradient_norm": 0.04155975207686424, + "elapsed": 81.63970494270325 + }, + { + "step": 80, + "loss": 0.5673234462738037, + "objective": 0.5673234462738037, + "error": 0.3125, + "gradient_norm": 0.1773851364850998, + "elapsed": 92.5357596874237 + }, + { + "step": 96, + "loss": 0.3763846755027771, + "objective": 0.3763846755027771, + "error": 0.1875, + "gradient_norm": 0.0951203852891922, + "elapsed": 103.12279391288757 + }, + { + "step": 112, + "loss": 0.45539408922195435, + "objective": 0.45539408922195435, + "error": 0.22265625, + "gradient_norm": 0.056369006633758545, + "elapsed": 112.61882042884827 + }, + { + "step": 128, + "loss": 0.015473627485334873, + "objective": 0.015473627485334873, + "error": 0.005859375, + "gradient_norm": 0.005696057807654142, + "elapsed": 125.16960310935974 + }, + { + "step": 144, + "loss": 0.03449750319123268, + "objective": 0.03449750319123268, + "error": 0.0107421875, + "gradient_norm": 0.008358650840818882, + "elapsed": 135.8080232143402 + }, + { + "step": 160, + "loss": 0.5731935501098633, + "objective": 0.5731935501098633, + "error": 0.31640625, + "gradient_norm": 0.056162577122449875, + "elapsed": 145.0349259376526 + }, + { + "step": 176, + "loss": 0.5626271963119507, + "objective": 0.5626271963119507, + "error": 0.314453125, + "gradient_norm": 0.048817526549100876, + "elapsed": 154.84093379974365 + }, + { + "step": 192, + "loss": 0.5507581233978271, + "objective": 0.5507581233978271, + "error": 0.3173828125, + "gradient_norm": 0.06503377854824066, + "elapsed": 164.7195086479187 + }, + { + "step": 208, + "loss": 0.5725968480110168, + "objective": 0.5725968480110168, + "error": 0.3251953125, + "gradient_norm": 0.047704510390758514, + "elapsed": 175.38803815841675 + }, + { + "step": 224, + "loss": 0.5249365568161011, + "objective": 0.5249365568161011, + "error": 0.2802734375, + "gradient_norm": 0.10021239519119263, + "elapsed": 187.0162854194641 + }, + { + "step": 240, + "loss": 0.2526492476463318, + "objective": 0.2526492476463318, + "error": 0.1103515625, + "gradient_norm": 0.06751289963722229, + "elapsed": 196.51696944236755 + }, + { + "step": 256, + "loss": 0.5214780569076538, + "objective": 0.5214780569076538, + "error": 0.275390625, + "gradient_norm": 0.14627203345298767, + "elapsed": 208.2405219078064 + }, + { + "step": 272, + "loss": 0.59315025806427, + "objective": 0.59315025806427, + "error": 0.341796875, + "gradient_norm": 0.03693874180316925, + "elapsed": 224.87874341011047 + }, + { + "step": 288, + "loss": 0.37350377440452576, + "objective": 0.37350377440452576, + "error": 0.169921875, + "gradient_norm": 0.05035478249192238, + "elapsed": 235.2427306175232 + }, + { + "step": 304, + "loss": 0.6201726198196411, + "objective": 0.6201726198196411, + "error": 0.3798828125, + "gradient_norm": 0.04230104014277458, + "elapsed": 244.4733214378357 + }, + { + "step": 320, + "loss": 0.5781067609786987, + "objective": 0.5781067609786987, + "error": 0.3291015625, + "gradient_norm": 0.06764703243970871, + "elapsed": 256.96991300582886 + }, + { + "step": 336, + "loss": 0.13824111223220825, + "objective": 0.13824111223220825, + "error": 0.0556640625, + "gradient_norm": 0.02330971322953701, + "elapsed": 268.097412109375 + }, + { + "step": 352, + "loss": 0.6141752004623413, + "objective": 0.6141752004623413, + "error": 0.37890625, + "gradient_norm": 0.08660273998975754, + "elapsed": 282.79302310943604 + }, + { + "step": 368, + "loss": 0.3470626473426819, + "objective": 0.3470626473426819, + "error": 0.1611328125, + "gradient_norm": 0.05711895599961281, + "elapsed": 293.79467129707336 + }, + { + "step": 384, + "loss": 0.6023644208908081, + "objective": 0.6023644208908081, + "error": 0.3466796875, + "gradient_norm": 0.08649417012929916, + "elapsed": 305.9786322116852 + }, + { + "step": 400, + "loss": 0.03022841364145279, + "objective": 0.03022841364145279, + "error": 0.0087890625, + "gradient_norm": 0.009741511195898056, + "elapsed": 315.06104922294617 + }, + { + "step": 416, + "loss": 0.23827238380908966, + "objective": 0.23827238380908966, + "error": 0.1015625, + "gradient_norm": 0.03526044636964798, + "elapsed": 325.6410942077637 + }, + { + "step": 432, + "loss": 0.43375664949417114, + "objective": 0.43375664949417114, + "error": 0.201171875, + "gradient_norm": 0.03940205276012421, + "elapsed": 336.9890570640564 + }, + { + "step": 448, + "loss": 0.5915575623512268, + "objective": 0.5915575623512268, + "error": 0.3359375, + "gradient_norm": 0.04364592209458351, + "elapsed": 346.9254243373871 + }, + { + "step": 464, + "loss": 0.5641118288040161, + "objective": 0.5641118288040161, + "error": 0.3076171875, + "gradient_norm": 0.052896615117788315, + "elapsed": 356.9816539287567 + }, + { + "step": 480, + "loss": 0.5682889223098755, + "objective": 0.5682889223098755, + "error": 0.322265625, + "gradient_norm": 0.07130409777164459, + "elapsed": 369.16103172302246 + }, + { + "step": 496, + "loss": 0.37034764885902405, + "objective": 0.37034764885902405, + "error": 0.181640625, + "gradient_norm": 0.11464523524045944, + "elapsed": 381.041054725647 + }, + { + "step": 512, + "loss": 0.5398496389389038, + "objective": 0.5398496389389038, + "error": 0.3076171875, + "gradient_norm": 0.05673467367887497, + "elapsed": 394.5030150413513 + } + ], + "reserved_sampling_audit": { + "status": "passed", + "run": "/run-state/workspace/research/learned_d5/reserved2_warm", + "partition_manifest_sha256": "241221ce16d1d4fc634bdfef691aa2a40d888f6cb75e981485c570905056257b", + "source_sha256": "0b474c57cd4d84ef86c631af7473eac8a956f03b7e4c9859efc1fbf2dbd0bca6", + "training_config_sha256": "db182d721768f832e1c83f6258b31bef0d8bf2ded239a8ab5a45cbb76378fd30", + "fit_pool": 490256, + "gate_rows_excluded": 13312, + "audit_rows_excluded": 13312, + "sampling_replayed_checkpoints": [ + 256, + 512 + ], + "training_draws": 524288, + "distinct_phase_training_rows": 317635, + "distinct_by_condition": { + "surface_code_bX_d5_r01_center_5_5": 13700, + "surface_code_bX_d5_r03_center_5_5": 10036, + "surface_code_bX_d5_r05_center_5_5": 11768, + "surface_code_bX_d5_r07_center_5_5": 10917, + "surface_code_bX_d5_r09_center_5_5": 13458, + "surface_code_bX_d5_r11_center_5_5": 11764, + "surface_code_bX_d5_r13_center_5_5": 14018, + "surface_code_bX_d5_r15_center_5_5": 10968, + "surface_code_bX_d5_r17_center_5_5": 13469, + "surface_code_bX_d5_r19_center_5_5": 11340, + "surface_code_bX_d5_r21_center_5_5": 11327, + "surface_code_bX_d5_r23_center_5_5": 13970, + "surface_code_bX_d5_r25_center_5_5": 10500, + "surface_code_bZ_d5_r01_center_5_5": 12079, + "surface_code_bZ_d5_r03_center_5_5": 12160, + "surface_code_bZ_d5_r05_center_5_5": 9494, + "surface_code_bZ_d5_r07_center_5_5": 10910, + "surface_code_bZ_d5_r09_center_5_5": 10064, + "surface_code_bZ_d5_r11_center_5_5": 10969, + "surface_code_bZ_d5_r13_center_5_5": 13419, + "surface_code_bZ_d5_r15_center_5_5": 12842, + "surface_code_bZ_d5_r17_center_5_5": 13694, + "surface_code_bZ_d5_r19_center_5_5": 13449, + "surface_code_bZ_d5_r21_center_5_5": 13799, + "surface_code_bZ_d5_r23_center_5_5": 12754, + "surface_code_bZ_d5_r25_center_5_5": 14767 + }, + "initial_optimizer_count": 0, + "last_optimizer_count": 512, + "parent_checkpoint_sha256": null, + "test_data_used": false + }, + "declared_study_plan": { + "hypothesis": "Fresh independent experts with an excluded training partition permit an honest combiner fit and an independent training-period diagnostic", + "experts": [ + { + "name": "reserved1", + "initial_seed": 20261271, + "sampling_seed": 20261272 + }, + { + "name": "reserved2", + "initial_seed": 20261273, + "sampling_seed": 20261274 + } + ], + "partition_manifest_sha256": "241221ce16d1d4fc634bdfef691aa2a40d888f6cb75e981485c570905056257b", + "partition": "Per26 d5 conditions:18856 fit,512 combiner,512 diagnostic rows; uniformly random partition seed20261270; sample IDs only check alignment", + "architecture": "Unchanged394-input64-unit neural correction, bound2, fixed physical pass3 priors, exact relevant-CSS contraction", + "training": "Each new expert:512 updates B1024 LR.001 from random initialization;1536 updates LR.0005 restoring own Adam/RNG state. Uniform eligible condition and row sampling, BCE, clip1,AdamW decay1e-4", + "validation_selection": "All26conditions/13durations: main-phase0/512/1024/1536, raw and equal-physical options versus incumbent, then fixed original/new ensembles with physical fractions0/.25/.5. Full replay/contract verification required before publication", + "combiner_expert_selection": "For each new expert and basis, minimum raw full-validation mean failure across0/512/1024/1536; earlier listed checkpoint wins ties. Freeze before using reserved labels", + "combiner_plan": "Fit small regularized syndrome-dependent mixtures using only the512 gate rows/condition. Diagnostic512 rows/condition must not fit or select weights/checkpoints/hyperparameters", + "holdout_prediction_generation": "Both reserved parts predicted without accessing label NPZ members; diagnostics only after final combiner selection is frozen", + "test_data_used": false + }, + "pipeline_control": { + "status": "passed", + "backend": "CPU", + "training_source_sha256": { + "learned_d5__reserved_train.py": "f1789039eb1500b30f716864237b9c564887ccb615f117fb9fb1a0ff15f54ff0", + "learned_d5__reserved_split.py": "69f3d3741a9625b1d70490f45202f101b6cd61b6bf332977559ec14307597456", + "learned_d5__data.py": "9e3bcfe9d45f6af60b86a580cdc9374043758a1a6f10564aef9eb344f7a6b364", + "learned_d5__model.py": "3b2d4b34a8945ddfe82d76e28b4aa917f11933ed885c0cdcd2bc389448a871fb", + "learned_exact__gradient.py": "ecb6b45698480386fa124fe878db7dbfa246d1969fd720ec26daff9547da2001", + "learned_exact__checkpoint_gradient.py": "7ece6b3f45e009727fd104a3d39e2816a8c3437f737c3d98131d3a5d7d60e9b8", + "exact_d3__exact.py": "869dfacb295c419c156d1070fc2afdd6e20d02ac1840e45e72346b2b289f4825" + }, + "control_sha256": "0302573e82d5113dfe1f63080b21b6976cc05b2ddb3677a640b005fc6050aa66", + "audits": [ + { + "status": "passed", + "run": "/run-state/workspace/research/learned_d5/reserved_smoke1", + "partition_manifest_sha256": "241221ce16d1d4fc634bdfef691aa2a40d888f6cb75e981485c570905056257b", + "source_sha256": "0b474c57cd4d84ef86c631af7473eac8a956f03b7e4c9859efc1fbf2dbd0bca6", + "training_config_sha256": "ad3b3170d682b103f82456476e4a4f7c3096707269b72c242ec43d820dc06856", + "fit_pool": 490256, + "gate_rows_excluded": 13312, + "audit_rows_excluded": 13312, + "sampling_replayed_checkpoints": [ + 1 + ], + "training_draws": 2, + "distinct_phase_training_rows": 2, + "distinct_by_condition": { + "surface_code_bX_d5_r01_center_5_5": 0, + "surface_code_bX_d5_r03_center_5_5": 0, + "surface_code_bX_d5_r05_center_5_5": 0, + "surface_code_bX_d5_r07_center_5_5": 0, + "surface_code_bX_d5_r09_center_5_5": 0, + "surface_code_bX_d5_r11_center_5_5": 0, + "surface_code_bX_d5_r13_center_5_5": 0, + "surface_code_bX_d5_r15_center_5_5": 0, + "surface_code_bX_d5_r17_center_5_5": 0, + "surface_code_bX_d5_r19_center_5_5": 0, + "surface_code_bX_d5_r21_center_5_5": 0, + "surface_code_bX_d5_r23_center_5_5": 0, + "surface_code_bX_d5_r25_center_5_5": 0, + "surface_code_bZ_d5_r01_center_5_5": 0, + "surface_code_bZ_d5_r03_center_5_5": 2, + "surface_code_bZ_d5_r05_center_5_5": 0, + "surface_code_bZ_d5_r07_center_5_5": 0, + "surface_code_bZ_d5_r09_center_5_5": 0, + "surface_code_bZ_d5_r11_center_5_5": 0, + "surface_code_bZ_d5_r13_center_5_5": 0, + "surface_code_bZ_d5_r15_center_5_5": 0, + "surface_code_bZ_d5_r17_center_5_5": 0, + "surface_code_bZ_d5_r19_center_5_5": 0, + "surface_code_bZ_d5_r21_center_5_5": 0, + "surface_code_bZ_d5_r23_center_5_5": 0, + "surface_code_bZ_d5_r25_center_5_5": 0 + }, + "initial_optimizer_count": 0, + "last_optimizer_count": 1, + "parent_checkpoint_sha256": null, + "test_data_used": false + }, + { + "status": "passed", + "run": "/run-state/workspace/research/learned_d5/reserved_smoke2", + "partition_manifest_sha256": "241221ce16d1d4fc634bdfef691aa2a40d888f6cb75e981485c570905056257b", + "source_sha256": "0b474c57cd4d84ef86c631af7473eac8a956f03b7e4c9859efc1fbf2dbd0bca6", + "training_config_sha256": "ea2e649b4880641cb0c7e7b7a349d4174ce4dd276c4cdbac376e9c087f00ea1f", + "fit_pool": 490256, + "gate_rows_excluded": 13312, + "audit_rows_excluded": 13312, + "sampling_replayed_checkpoints": [ + 1 + ], + "training_draws": 2, + "distinct_phase_training_rows": 2, + "distinct_by_condition": { + "surface_code_bX_d5_r01_center_5_5": 0, + "surface_code_bX_d5_r03_center_5_5": 0, + "surface_code_bX_d5_r05_center_5_5": 0, + "surface_code_bX_d5_r07_center_5_5": 0, + "surface_code_bX_d5_r09_center_5_5": 0, + "surface_code_bX_d5_r11_center_5_5": 0, + "surface_code_bX_d5_r13_center_5_5": 0, + "surface_code_bX_d5_r15_center_5_5": 0, + "surface_code_bX_d5_r17_center_5_5": 0, + "surface_code_bX_d5_r19_center_5_5": 0, + "surface_code_bX_d5_r21_center_5_5": 0, + "surface_code_bX_d5_r23_center_5_5": 0, + "surface_code_bX_d5_r25_center_5_5": 0, + "surface_code_bZ_d5_r01_center_5_5": 0, + "surface_code_bZ_d5_r03_center_5_5": 0, + "surface_code_bZ_d5_r05_center_5_5": 0, + "surface_code_bZ_d5_r07_center_5_5": 0, + "surface_code_bZ_d5_r09_center_5_5": 0, + "surface_code_bZ_d5_r11_center_5_5": 0, + "surface_code_bZ_d5_r13_center_5_5": 0, + "surface_code_bZ_d5_r15_center_5_5": 0, + "surface_code_bZ_d5_r17_center_5_5": 0, + "surface_code_bZ_d5_r19_center_5_5": 0, + "surface_code_bZ_d5_r21_center_5_5": 2, + "surface_code_bZ_d5_r23_center_5_5": 0, + "surface_code_bZ_d5_r25_center_5_5": 0 + }, + "initial_optimizer_count": 1, + "last_optimizer_count": 2, + "parent_checkpoint_sha256": "faf01476f397259640c31a761f9774af9c0592e9118c38ffdce9502acdfcfb31", + "test_data_used": false + } + ], + "initialization_exact": true, + "parameters_updated": true, + "smoke_runs_excluded_from_selection_and_submission": true, + "test_data_used": false + } + }, + "validation": "Uniform subset per all 26 conditions, sample seed 20261102; full validation required before publication", + "validation_shots_per_condition": 1024, + "test_data_used": false, + "records": [ + { + "step": 1, + "loss": 0.30839407444000244, + "objective": 0.30839407444000244, + "error": 0.130859375, + "gradient_norm": 0.053425733000040054, + "elapsed": 28.537403345108032 + }, + { + "step": 16, + "loss": 0.021987520158290863, + "objective": 0.021987520158290863, + "error": 0.0078125, + "gradient_norm": 0.01397851575165987, + "elapsed": 48.18276286125183 + }, + { + "step": 32, + "loss": 0.5041587352752686, + "objective": 0.5041587352752686, + "error": 0.2724609375, + "gradient_norm": 0.0528741292655468, + "elapsed": 58.27348470687866 + }, + { + "step": 48, + "loss": 0.4326452612876892, + "objective": 0.4326452612876892, + "error": 0.21484375, + "gradient_norm": 0.0559566393494606, + "elapsed": 68.90473222732544 + }, + { + "step": 64, + "loss": 0.4804917275905609, + "objective": 0.4804917275905609, + "error": 0.248046875, + "gradient_norm": 0.0669105276465416, + "elapsed": 77.87249231338501 + }, + { + "step": 80, + "loss": 0.2889654338359833, + "objective": 0.2889654338359833, + "error": 0.1328125, + "gradient_norm": 0.08293467015028, + "elapsed": 86.87973022460938 + }, + { + "step": 96, + "loss": 0.5135385990142822, + "objective": 0.5135385990142822, + "error": 0.271484375, + "gradient_norm": 0.06412295252084732, + "elapsed": 95.98773431777954 + }, + { + "step": 112, + "loss": 0.31248384714126587, + "objective": 0.31248384714126587, + "error": 0.1357421875, + "gradient_norm": 0.03881710395216942, + "elapsed": 106.47444081306458 + }, + { + "step": 128, + "loss": 0.23868557810783386, + "objective": 0.23868557810783386, + "error": 0.091796875, + "gradient_norm": 0.03896595537662506, + "elapsed": 117.72143626213074 + }, + { + "step": 144, + "loss": 0.5315916538238525, + "objective": 0.5315916538238525, + "error": 0.2890625, + "gradient_norm": 0.09184520691633224, + "elapsed": 126.97882843017578 + }, + { + "step": 160, + "loss": 0.604732096195221, + "objective": 0.604732096195221, + "error": 0.3603515625, + "gradient_norm": 0.044600710272789, + "elapsed": 137.403742313385 + }, + { + "step": 176, + "loss": 0.032417282462120056, + "objective": 0.032417282462120056, + "error": 0.0107421875, + "gradient_norm": 0.010968778282403946, + "elapsed": 147.58081603050232 + }, + { + "step": 192, + "loss": 0.24050910770893097, + "objective": 0.24050910770893097, + "error": 0.087890625, + "gradient_norm": 0.052534136921167374, + "elapsed": 156.545964717865 + }, + { + "step": 208, + "loss": 0.3183761537075043, + "objective": 0.3183761537075043, + "error": 0.1435546875, + "gradient_norm": 0.05253623053431511, + "elapsed": 166.62695455551147 + }, + { + "step": 224, + "loss": 0.6407097578048706, + "objective": 0.6407097578048706, + "error": 0.3837890625, + "gradient_norm": 0.08772490173578262, + "elapsed": 174.46970582008362 + }, + { + "step": 240, + "loss": 0.597212553024292, + "objective": 0.597212553024292, + "error": 0.36328125, + "gradient_norm": 0.13039150834083557, + "elapsed": 184.2768793106079 + }, + { + "step": 256, + "loss": 0.3317721486091614, + "objective": 0.3317721486091614, + "error": 0.14453125, + "gradient_norm": 0.03749232366681099, + "elapsed": 194.6345317363739 + }, + { + "step": 272, + "loss": 0.6330116987228394, + "objective": 0.6330116987228394, + "error": 0.3955078125, + "gradient_norm": 0.06468097865581512, + "elapsed": 205.8717017173767 + }, + { + "step": 288, + "loss": 0.3141757845878601, + "objective": 0.3141757845878601, + "error": 0.138671875, + "gradient_norm": 0.046496689319610596, + "elapsed": 215.2117359638214 + }, + { + "step": 304, + "loss": 0.5782994031906128, + "objective": 0.5782994031906128, + "error": 0.345703125, + "gradient_norm": 0.06487675756216049, + "elapsed": 225.47403240203857 + }, + { + "step": 320, + "loss": 0.45729100704193115, + "objective": 0.45729100704193115, + "error": 0.2255859375, + "gradient_norm": 0.04169687256217003, + "elapsed": 233.03686332702637 + }, + { + "step": 336, + "loss": 0.49350813031196594, + "objective": 0.49350813031196594, + "error": 0.24609375, + "gradient_norm": 0.08623651415109634, + "elapsed": 244.53246903419495 + }, + { + "step": 352, + "loss": 0.25660067796707153, + "objective": 0.25660067796707153, + "error": 0.1103515625, + "gradient_norm": 0.03029652312397957, + "elapsed": 254.88137793540955 + }, + { + "step": 368, + "loss": 0.2295728325843811, + "objective": 0.2295728325843811, + "error": 0.0966796875, + "gradient_norm": 0.042884912341833115, + "elapsed": 262.7415475845337 + }, + { + "step": 384, + "loss": 0.6214326620101929, + "objective": 0.6214326620101929, + "error": 0.3759765625, + "gradient_norm": 0.08176509290933609, + "elapsed": 271.72958397865295 + }, + { + "step": 400, + "loss": 0.6463049650192261, + "objective": 0.6463049650192261, + "error": 0.3984375, + "gradient_norm": 0.08226390928030014, + "elapsed": 281.51069259643555 + }, + { + "step": 416, + "loss": 0.024987798184156418, + "objective": 0.024987798184156418, + "error": 0.0078125, + "gradient_norm": 0.0075854891911149025, + "elapsed": 291.0118627548218 + }, + { + "step": 432, + "loss": 0.5520929098129272, + "objective": 0.5520929098129272, + "error": 0.3125, + "gradient_norm": 0.09755270183086395, + "elapsed": 301.23231768608093 + }, + { + "step": 448, + "loss": 0.6077401638031006, + "objective": 0.6077401638031006, + "error": 0.361328125, + "gradient_norm": 0.04908076301217079, + "elapsed": 312.93572759628296 + }, + { + "step": 464, + "loss": 0.016434211283922195, + "objective": 0.016434211283922195, + "error": 0.005859375, + "gradient_norm": 0.007213531993329525, + "elapsed": 323.8330478668213 + }, + { + "step": 480, + "loss": 0.1582300364971161, + "objective": 0.1582300364971161, + "error": 0.064453125, + "gradient_norm": 0.028335656970739365, + "elapsed": 334.6112554073334 + }, + { + "step": 496, + "loss": 0.5916742086410522, + "objective": 0.5916742086410522, + "error": 0.35546875, + "gradient_norm": 0.08213689178228378, + "elapsed": 345.8490369319916 + }, + { + "step": 512, + "loss": 0.11447565257549286, + "objective": 0.11447565257549286, + "error": 0.04296875, + "gradient_norm": 0.028994916006922722, + "elapsed": 358.71793270111084 + }, + { + "step": 528, + "loss": 0.3011414408683777, + "objective": 0.3011414408683777, + "error": 0.1435546875, + "gradient_norm": 0.04305516928434372, + "elapsed": 373.143226146698 + }, + { + "step": 544, + "loss": 0.3099900782108307, + "objective": 0.3099900782108307, + "error": 0.130859375, + "gradient_norm": 0.06152835488319397, + "elapsed": 380.42762184143066 + }, + { + "step": 560, + "loss": 0.42917633056640625, + "objective": 0.42917633056640625, + "error": 0.203125, + "gradient_norm": 0.051812849938869476, + "elapsed": 390.78397703170776 + }, + { + "step": 576, + "loss": 0.4895544648170471, + "objective": 0.4895544648170471, + "error": 0.2451171875, + "gradient_norm": 0.059052009135484695, + "elapsed": 400.29374146461487 + }, + { + "step": 592, + "loss": 0.5950886011123657, + "objective": 0.5950886011123657, + "error": 0.328125, + "gradient_norm": 0.1449151188135147, + "elapsed": 410.06920647621155 + }, + { + "step": 608, + "loss": 0.3282078504562378, + "objective": 0.3282078504562378, + "error": 0.1484375, + "gradient_norm": 0.06495015323162079, + "elapsed": 420.5240683555603 + }, + { + "step": 624, + "loss": 0.6034166812896729, + "objective": 0.6034166812896729, + "error": 0.3388671875, + "gradient_norm": 0.05658626928925514, + "elapsed": 430.7997169494629 + }, + { + "step": 640, + "loss": 0.590431809425354, + "objective": 0.590431809425354, + "error": 0.3447265625, + "gradient_norm": 0.046094730496406555, + "elapsed": 441.8197224140167 + }, + { + "step": 656, + "loss": 0.2260439246892929, + "objective": 0.2260439246892929, + "error": 0.1015625, + "gradient_norm": 0.06323576718568802, + "elapsed": 450.76086831092834 + }, + { + "step": 672, + "loss": 0.26158156991004944, + "objective": 0.26158156991004944, + "error": 0.1162109375, + "gradient_norm": 0.08324819058179855, + "elapsed": 459.1986529827118 + }, + { + "step": 688, + "loss": 0.4871026873588562, + "objective": 0.4871026873588562, + "error": 0.244140625, + "gradient_norm": 0.051720812916755676, + "elapsed": 470.4437210559845 + }, + { + "step": 704, + "loss": 0.5861694812774658, + "objective": 0.5861694812774658, + "error": 0.341796875, + "gradient_norm": 0.05766218528151512, + "elapsed": 483.85575103759766 + }, + { + "step": 720, + "loss": 0.4168863296508789, + "objective": 0.4168863296508789, + "error": 0.21484375, + "gradient_norm": 0.05056491494178772, + "elapsed": 494.63891077041626 + }, + { + "step": 736, + "loss": 0.42054638266563416, + "objective": 0.42054638266563416, + "error": 0.21875, + "gradient_norm": 0.07021808624267578, + "elapsed": 505.4899232387543 + }, + { + "step": 752, + "loss": 0.2022928148508072, + "objective": 0.2022928148508072, + "error": 0.0849609375, + "gradient_norm": 0.0765448734164238, + "elapsed": 516.2925503253937 + }, + { + "step": 768, + "loss": 0.026398655027151108, + "objective": 0.026398655027151108, + "error": 0.0068359375, + "gradient_norm": 0.00973521638661623, + "elapsed": 524.7940125465393 + }, + { + "step": 784, + "loss": 0.5843480825424194, + "objective": 0.5843480825424194, + "error": 0.345703125, + "gradient_norm": 0.04805552959442139, + "elapsed": 535.345025062561 + }, + { + "step": 800, + "loss": 0.3102012872695923, + "objective": 0.3102012872695923, + "error": 0.134765625, + "gradient_norm": 0.09761057049036026, + "elapsed": 544.4683487415314 + }, + { + "step": 816, + "loss": 0.5332639217376709, + "objective": 0.5332639217376709, + "error": 0.30078125, + "gradient_norm": 0.10398133844137192, + "elapsed": 554.8217175006866 + }, + { + "step": 832, + "loss": 0.4870310425758362, + "objective": 0.4870310425758362, + "error": 0.2685546875, + "gradient_norm": 0.05754273384809494, + "elapsed": 564.9130115509033 + }, + { + "step": 848, + "loss": 0.1336989849805832, + "objective": 0.1336989849805832, + "error": 0.0498046875, + "gradient_norm": 0.02862304449081421, + "elapsed": 573.6143791675568 + }, + { + "step": 864, + "loss": 0.5794297456741333, + "objective": 0.5794297456741333, + "error": 0.3427734375, + "gradient_norm": 0.05002075806260109, + "elapsed": 584.2565310001373 + }, + { + "step": 880, + "loss": 0.6150081753730774, + "objective": 0.6150081753730774, + "error": 0.341796875, + "gradient_norm": 0.0605069138109684, + "elapsed": 596.845867395401 + }, + { + "step": 896, + "loss": 0.3804032504558563, + "objective": 0.3804032504558563, + "error": 0.18359375, + "gradient_norm": 0.057405781000852585, + "elapsed": 606.0786938667297 + }, + { + "step": 912, + "loss": 0.5734928846359253, + "objective": 0.5734928846359253, + "error": 0.2958984375, + "gradient_norm": 0.06807747483253479, + "elapsed": 616.9755277633667 + }, + { + "step": 928, + "loss": 0.23615539073944092, + "objective": 0.23615539073944092, + "error": 0.107421875, + "gradient_norm": 0.04033413156867027, + "elapsed": 625.9104406833649 + }, + { + "step": 944, + "loss": 0.5668450593948364, + "objective": 0.5668450593948364, + "error": 0.3134765625, + "gradient_norm": 0.04825817048549652, + "elapsed": 635.4241654872894 + }, + { + "step": 960, + "loss": 0.1369795948266983, + "objective": 0.1369795948266983, + "error": 0.0537109375, + "gradient_norm": 0.029475854709744453, + "elapsed": 646.0763671398163 + }, + { + "step": 976, + "loss": 0.026218727231025696, + "objective": 0.026218727231025696, + "error": 0.009765625, + "gradient_norm": 0.0067830472253263, + "elapsed": 656.7150173187256 + }, + { + "step": 992, + "loss": 0.6016548871994019, + "objective": 0.6016548871994019, + "error": 0.3564453125, + "gradient_norm": 0.04935981705784798, + "elapsed": 668.9989516735077 + }, + { + "step": 1008, + "loss": 0.1370980143547058, + "objective": 0.1370980143547058, + "error": 0.0546875, + "gradient_norm": 0.04418199881911278, + "elapsed": 677.3821382522583 + }, + { + "step": 1024, + "loss": 0.4085504412651062, + "objective": 0.4085504412651062, + "error": 0.19921875, + "gradient_norm": 0.07943295687437057, + "elapsed": 688.8395888805389 + }, + { + "step": 1040, + "loss": 0.34129297733306885, + "objective": 0.34129297733306885, + "error": 0.15625, + "gradient_norm": 0.04551500454545021, + "elapsed": 703.4613966941833 + }, + { + "step": 1056, + "loss": 0.5297085046768188, + "objective": 0.5297085046768188, + "error": 0.2705078125, + "gradient_norm": 0.06177444010972977, + "elapsed": 714.0862259864807 + }, + { + "step": 1072, + "loss": 0.3833361268043518, + "objective": 0.3833361268043518, + "error": 0.185546875, + "gradient_norm": 0.053057629615068436, + "elapsed": 724.1480000019073 + }, + { + "step": 1088, + "loss": 0.6497273445129395, + "objective": 0.6497273445129395, + "error": 0.421875, + "gradient_norm": 0.10790837556123734, + "elapsed": 735.8740057945251 + }, + { + "step": 1104, + "loss": 0.5393906831741333, + "objective": 0.5393906831741333, + "error": 0.2998046875, + "gradient_norm": 0.06015805900096893, + "elapsed": 743.9961709976196 + }, + { + "step": 1120, + "loss": 0.38553956151008606, + "objective": 0.38553956151008606, + "error": 0.1875, + "gradient_norm": 0.05357081815600395, + "elapsed": 753.2208635807037 + }, + { + "step": 1136, + "loss": 0.5478834509849548, + "objective": 0.5478834509849548, + "error": 0.2900390625, + "gradient_norm": 0.05761478468775749, + "elapsed": 761.3359644412994 + }, + { + "step": 1152, + "loss": 0.5732287168502808, + "objective": 0.5732287168502808, + "error": 0.341796875, + "gradient_norm": 0.07881136238574982, + "elapsed": 771.133172750473 + }, + { + "step": 1168, + "loss": 0.5174047946929932, + "objective": 0.5174047946929932, + "error": 0.29296875, + "gradient_norm": 0.07794999331235886, + "elapsed": 783.7084786891937 + }, + { + "step": 1184, + "loss": 0.5022754669189453, + "objective": 0.5022754669189453, + "error": 0.265625, + "gradient_norm": 0.05175226181745529, + "elapsed": 793.499255657196 + }, + { + "step": 1200, + "loss": 0.5698775053024292, + "objective": 0.5698775053024292, + "error": 0.34375, + "gradient_norm": 0.06385946273803711, + "elapsed": 804.970814704895 + }, + { + "step": 1216, + "loss": 0.6203033924102783, + "objective": 0.6203033924102783, + "error": 0.37109375, + "gradient_norm": 0.07393646240234375, + "elapsed": 816.1773698329926 + }, + { + "step": 1232, + "loss": 0.6154648065567017, + "objective": 0.6154648065567017, + "error": 0.3857421875, + "gradient_norm": 0.04278155043721199, + "elapsed": 827.3619928359985 + }, + { + "step": 1248, + "loss": 0.5948328971862793, + "objective": 0.5948328971862793, + "error": 0.3291015625, + "gradient_norm": 0.062024734914302826, + "elapsed": 838.8370804786682 + }, + { + "step": 1264, + "loss": 0.5644958019256592, + "objective": 0.5644958019256592, + "error": 0.3212890625, + "gradient_norm": 0.12030917406082153, + "elapsed": 849.5000331401825 + }, + { + "step": 1280, + "loss": 0.028782427310943604, + "objective": 0.028782427310943604, + "error": 0.0087890625, + "gradient_norm": 0.009096251800656319, + "elapsed": 857.8837285041809 + }, + { + "step": 1296, + "loss": 0.5129679441452026, + "objective": 0.5129679441452026, + "error": 0.2626953125, + "gradient_norm": 0.12833116948604584, + "elapsed": 868.5195860862732 + }, + { + "step": 1312, + "loss": 0.4095553159713745, + "objective": 0.4095553159713745, + "error": 0.193359375, + "gradient_norm": 0.09977155178785324, + "elapsed": 877.4712297916412 + }, + { + "step": 1328, + "loss": 0.2850862741470337, + "objective": 0.2850862741470337, + "error": 0.1240234375, + "gradient_norm": 0.05365074798464775, + "elapsed": 887.5133347511292 + }, + { + "step": 1344, + "loss": 0.41809165477752686, + "objective": 0.41809165477752686, + "error": 0.19140625, + "gradient_norm": 0.10622142255306244, + "elapsed": 895.0828025341034 + }, + { + "step": 1360, + "loss": 0.3627069890499115, + "objective": 0.3627069890499115, + "error": 0.1650390625, + "gradient_norm": 0.049557290971279144, + "elapsed": 906.2595431804657 + }, + { + "step": 1376, + "loss": 0.023341629654169083, + "objective": 0.023341629654169083, + "error": 0.0068359375, + "gradient_norm": 0.008970360271632671, + "elapsed": 916.6110022068024 + }, + { + "step": 1392, + "loss": 0.519214391708374, + "objective": 0.519214391708374, + "error": 0.26953125, + "gradient_norm": 0.052287619560956955, + "elapsed": 926.660523891449 + }, + { + "step": 1408, + "loss": 0.6152850389480591, + "objective": 0.6152850389480591, + "error": 0.3662109375, + "gradient_norm": 0.049617987126111984, + "elapsed": 936.7533056735992 + }, + { + "step": 1424, + "loss": 0.020841240882873535, + "objective": 0.020841240882873535, + "error": 0.0068359375, + "gradient_norm": 0.008459246717393398, + "elapsed": 946.8231542110443 + }, + { + "step": 1440, + "loss": 0.5963407754898071, + "objective": 0.5963407754898071, + "error": 0.3525390625, + "gradient_norm": 0.08714025467634201, + "elapsed": 956.0344398021698 + }, + { + "step": 1456, + "loss": 0.44305220246315, + "objective": 0.44305220246315, + "error": 0.2099609375, + "gradient_norm": 0.061915796250104904, + "elapsed": 967.506050825119 + }, + { + "step": 1472, + "loss": 0.5292993783950806, + "objective": 0.5292993783950806, + "error": 0.2939453125, + "gradient_norm": 0.10089804977178574, + "elapsed": 977.855934381485 + }, + { + "step": 1488, + "loss": 0.6087026596069336, + "objective": 0.6087026596069336, + "error": 0.345703125, + "gradient_norm": 0.05276322737336159, + "elapsed": 986.2705359458923 + }, + { + "step": 1504, + "loss": 0.3670162558555603, + "objective": 0.3670162558555603, + "error": 0.1796875, + "gradient_norm": 0.0575372576713562, + "elapsed": 995.2220902442932 + }, + { + "step": 1520, + "loss": 0.33479321002960205, + "objective": 0.33479321002960205, + "error": 0.1435546875, + "gradient_norm": 0.056317709386348724, + "elapsed": 1005.2168045043945 + }, + { + "step": 1536, + "loss": 0.5869293212890625, + "objective": 0.5869293212890625, + "error": 0.337890625, + "gradient_norm": 0.07419256865978241, + "elapsed": 1016.8691458702087 + } + ], + "reserved_sampling_audit": { + "status": "passed", + "run": "/run-state/workspace/research/learned_d5/reserved2_full", + "partition_manifest_sha256": "241221ce16d1d4fc634bdfef691aa2a40d888f6cb75e981485c570905056257b", + "source_sha256": "0b474c57cd4d84ef86c631af7473eac8a956f03b7e4c9859efc1fbf2dbd0bca6", + "training_config_sha256": "0f5926c94bb1aa83840c6d257757b80c081835affc2cb34bf9246ba18e00266a", + "fit_pool": 490256, + "gate_rows_excluded": 13312, + "audit_rows_excluded": 13312, + "sampling_replayed_checkpoints": [ + 512, + 1024, + 1536 + ], + "training_draws": 1572864, + "distinct_phase_training_rows": 467790, + "distinct_by_condition": { + "surface_code_bX_d5_r01_center_5_5": 18254, + "surface_code_bX_d5_r03_center_5_5": 18525, + "surface_code_bX_d5_r05_center_5_5": 18175, + "surface_code_bX_d5_r07_center_5_5": 18005, + "surface_code_bX_d5_r09_center_5_5": 18067, + "surface_code_bX_d5_r11_center_5_5": 18445, + "surface_code_bX_d5_r13_center_5_5": 18673, + "surface_code_bX_d5_r15_center_5_5": 17345, + "surface_code_bX_d5_r17_center_5_5": 17898, + "surface_code_bX_d5_r19_center_5_5": 18359, + "surface_code_bX_d5_r21_center_5_5": 18036, + "surface_code_bX_d5_r23_center_5_5": 17255, + "surface_code_bX_d5_r25_center_5_5": 18057, + "surface_code_bZ_d5_r01_center_5_5": 17596, + "surface_code_bZ_d5_r03_center_5_5": 18333, + "surface_code_bZ_d5_r05_center_5_5": 18250, + "surface_code_bZ_d5_r07_center_5_5": 18210, + "surface_code_bZ_d5_r09_center_5_5": 17447, + "surface_code_bZ_d5_r11_center_5_5": 18120, + "surface_code_bZ_d5_r13_center_5_5": 18224, + "surface_code_bZ_d5_r15_center_5_5": 17857, + "surface_code_bZ_d5_r17_center_5_5": 18359, + "surface_code_bZ_d5_r19_center_5_5": 17398, + "surface_code_bZ_d5_r21_center_5_5": 18235, + "surface_code_bZ_d5_r23_center_5_5": 16653, + "surface_code_bZ_d5_r25_center_5_5": 18014 + }, + "initial_optimizer_count": 512, + "last_optimizer_count": 2048, + "parent_checkpoint_sha256": "2b00e3f258886b5c4ecf69f36fd5463a205eefc84bd10c550acc391e84515c24", + "test_data_used": false + }, + "declared_study_plan": { + "hypothesis": "Fresh independent experts with an excluded training partition permit an honest combiner fit and an independent training-period diagnostic", + "experts": [ + { + "name": "reserved1", + "initial_seed": 20261271, + "sampling_seed": 20261272 + }, + { + "name": "reserved2", + "initial_seed": 20261273, + "sampling_seed": 20261274 + } + ], + "partition_manifest_sha256": "241221ce16d1d4fc634bdfef691aa2a40d888f6cb75e981485c570905056257b", + "partition": "Per26 d5 conditions:18856 fit,512 combiner,512 diagnostic rows; uniformly random partition seed20261270; sample IDs only check alignment", + "architecture": "Unchanged394-input64-unit neural correction, bound2, fixed physical pass3 priors, exact relevant-CSS contraction", + "training": "Each new expert:512 updates B1024 LR.001 from random initialization;1536 updates LR.0005 restoring own Adam/RNG state. Uniform eligible condition and row sampling, BCE, clip1,AdamW decay1e-4", + "validation_selection": "All26conditions/13durations: main-phase0/512/1024/1536, raw and equal-physical options versus incumbent, then fixed original/new ensembles with physical fractions0/.25/.5. Full replay/contract verification required before publication", + "combiner_expert_selection": "For each new expert and basis, minimum raw full-validation mean failure across0/512/1024/1536; earlier listed checkpoint wins ties. Freeze before using reserved labels", + "combiner_plan": "Fit small regularized syndrome-dependent mixtures using only the512 gate rows/condition. Diagnostic512 rows/condition must not fit or select weights/checkpoints/hyperparameters", + "holdout_prediction_generation": "Both reserved parts predicted without accessing label NPZ members; diagnostics only after final combiner selection is frozen", + "test_data_used": false + }, + "pipeline_control": { + "status": "passed", + "backend": "CPU", + "training_source_sha256": { + "learned_d5__reserved_train.py": "f1789039eb1500b30f716864237b9c564887ccb615f117fb9fb1a0ff15f54ff0", + "learned_d5__reserved_split.py": "69f3d3741a9625b1d70490f45202f101b6cd61b6bf332977559ec14307597456", + "learned_d5__data.py": "9e3bcfe9d45f6af60b86a580cdc9374043758a1a6f10564aef9eb344f7a6b364", + "learned_d5__model.py": "3b2d4b34a8945ddfe82d76e28b4aa917f11933ed885c0cdcd2bc389448a871fb", + "learned_exact__gradient.py": "ecb6b45698480386fa124fe878db7dbfa246d1969fd720ec26daff9547da2001", + "learned_exact__checkpoint_gradient.py": "7ece6b3f45e009727fd104a3d39e2816a8c3437f737c3d98131d3a5d7d60e9b8", + "exact_d3__exact.py": "869dfacb295c419c156d1070fc2afdd6e20d02ac1840e45e72346b2b289f4825" + }, + "control_sha256": "0302573e82d5113dfe1f63080b21b6976cc05b2ddb3677a640b005fc6050aa66", + "audits": [ + { + "status": "passed", + "run": "/run-state/workspace/research/learned_d5/reserved_smoke1", + "partition_manifest_sha256": "241221ce16d1d4fc634bdfef691aa2a40d888f6cb75e981485c570905056257b", + "source_sha256": "0b474c57cd4d84ef86c631af7473eac8a956f03b7e4c9859efc1fbf2dbd0bca6", + "training_config_sha256": "ad3b3170d682b103f82456476e4a4f7c3096707269b72c242ec43d820dc06856", + "fit_pool": 490256, + "gate_rows_excluded": 13312, + "audit_rows_excluded": 13312, + "sampling_replayed_checkpoints": [ + 1 + ], + "training_draws": 2, + "distinct_phase_training_rows": 2, + "distinct_by_condition": { + "surface_code_bX_d5_r01_center_5_5": 0, + "surface_code_bX_d5_r03_center_5_5": 0, + "surface_code_bX_d5_r05_center_5_5": 0, + "surface_code_bX_d5_r07_center_5_5": 0, + "surface_code_bX_d5_r09_center_5_5": 0, + "surface_code_bX_d5_r11_center_5_5": 0, + "surface_code_bX_d5_r13_center_5_5": 0, + "surface_code_bX_d5_r15_center_5_5": 0, + "surface_code_bX_d5_r17_center_5_5": 0, + "surface_code_bX_d5_r19_center_5_5": 0, + "surface_code_bX_d5_r21_center_5_5": 0, + "surface_code_bX_d5_r23_center_5_5": 0, + "surface_code_bX_d5_r25_center_5_5": 0, + "surface_code_bZ_d5_r01_center_5_5": 0, + "surface_code_bZ_d5_r03_center_5_5": 2, + "surface_code_bZ_d5_r05_center_5_5": 0, + "surface_code_bZ_d5_r07_center_5_5": 0, + "surface_code_bZ_d5_r09_center_5_5": 0, + "surface_code_bZ_d5_r11_center_5_5": 0, + "surface_code_bZ_d5_r13_center_5_5": 0, + "surface_code_bZ_d5_r15_center_5_5": 0, + "surface_code_bZ_d5_r17_center_5_5": 0, + "surface_code_bZ_d5_r19_center_5_5": 0, + "surface_code_bZ_d5_r21_center_5_5": 0, + "surface_code_bZ_d5_r23_center_5_5": 0, + "surface_code_bZ_d5_r25_center_5_5": 0 + }, + "initial_optimizer_count": 0, + "last_optimizer_count": 1, + "parent_checkpoint_sha256": null, + "test_data_used": false + }, + { + "status": "passed", + "run": "/run-state/workspace/research/learned_d5/reserved_smoke2", + "partition_manifest_sha256": "241221ce16d1d4fc634bdfef691aa2a40d888f6cb75e981485c570905056257b", + "source_sha256": "0b474c57cd4d84ef86c631af7473eac8a956f03b7e4c9859efc1fbf2dbd0bca6", + "training_config_sha256": "ea2e649b4880641cb0c7e7b7a349d4174ce4dd276c4cdbac376e9c087f00ea1f", + "fit_pool": 490256, + "gate_rows_excluded": 13312, + "audit_rows_excluded": 13312, + "sampling_replayed_checkpoints": [ + 1 + ], + "training_draws": 2, + "distinct_phase_training_rows": 2, + "distinct_by_condition": { + "surface_code_bX_d5_r01_center_5_5": 0, + "surface_code_bX_d5_r03_center_5_5": 0, + "surface_code_bX_d5_r05_center_5_5": 0, + "surface_code_bX_d5_r07_center_5_5": 0, + "surface_code_bX_d5_r09_center_5_5": 0, + "surface_code_bX_d5_r11_center_5_5": 0, + "surface_code_bX_d5_r13_center_5_5": 0, + "surface_code_bX_d5_r15_center_5_5": 0, + "surface_code_bX_d5_r17_center_5_5": 0, + "surface_code_bX_d5_r19_center_5_5": 0, + "surface_code_bX_d5_r21_center_5_5": 0, + "surface_code_bX_d5_r23_center_5_5": 0, + "surface_code_bX_d5_r25_center_5_5": 0, + "surface_code_bZ_d5_r01_center_5_5": 0, + "surface_code_bZ_d5_r03_center_5_5": 0, + "surface_code_bZ_d5_r05_center_5_5": 0, + "surface_code_bZ_d5_r07_center_5_5": 0, + "surface_code_bZ_d5_r09_center_5_5": 0, + "surface_code_bZ_d5_r11_center_5_5": 0, + "surface_code_bZ_d5_r13_center_5_5": 0, + "surface_code_bZ_d5_r15_center_5_5": 0, + "surface_code_bZ_d5_r17_center_5_5": 0, + "surface_code_bZ_d5_r19_center_5_5": 0, + "surface_code_bZ_d5_r21_center_5_5": 2, + "surface_code_bZ_d5_r23_center_5_5": 0, + "surface_code_bZ_d5_r25_center_5_5": 0 + }, + "initial_optimizer_count": 1, + "last_optimizer_count": 2, + "parent_checkpoint_sha256": "faf01476f397259640c31a761f9774af9c0592e9118c38ffdce9502acdfcfb31", + "test_data_used": false + } + ], + "initialization_exact": true, + "parameters_updated": true, + "smoke_runs_excluded_from_selection_and_submission": true, + "test_data_used": false + } + }, + "training_source_snapshot": "training_sources/reserved2_full", + "selection": "Minimum full-validation condition-mean failure per basis group over incumbent, listed neural checkpoints and equal probability averages with the recorded physical decoder.", + "physical_prediction_reference": "/run-state/workspace/research/context_upgrades/turbo1/predictions", + "prior_pass": 3, + "history": [ + { + "group": "d5_bX_center_5_5", + "candidates": { + "incumbent": 0.23212139423076927, + "0": 0.23353365384615382, + "blend-0": 0.23306790865384613, + "512": 0.23380408653846152, + "blend-512": 0.23366887019230773, + "1024": 0.23197115384615388, + "blend-1024": 0.23299278846153842, + "1536": 0.23206129807692305, + "blend-1536": 0.2329326923076923 + }, + "selected": "1024" + }, + { + "group": "d5_bZ_center_5_5", + "candidates": { + "incumbent": 0.21953124999999998, + "0": 0.22103365384615387, + "blend-0": 0.2211388221153846, + "512": 0.22092848557692304, + "blend-512": 0.22094350961538464, + "1024": 0.2204326923076923, + "blend-1024": 0.22046274038461539, + "1536": 0.22086838942307688, + "blend-1536": 0.22059795673076926 + }, + "selected": "incumbent" + } + ], + "checkpoints": { + "1024": { + "step": 1024, + "training_samples": 1048576, + "unique_training_rows_seen_in_this_phase": 428858, + "weights_sha256": "a346f535004381e2e0b628fac8ff7c58282a2447b9704638e46232dff46e511f", + "complete": true + } + }, + "runtime": "Share physical priors when the conditioning pass and regime agree; otherwise recompute the neural prior independently. Last-only physical branches omit unused intermediate logical tracking; raw neural branches also omit the unused final physical readout.", + "last_only_equivalence_controls": [ + { + "condition": "surface_code_bX_d5_r03_center_5_5", + "maximum_probability_difference": 7.450580596923828e-07 + }, + { + "condition": "surface_code_bZ_d5_r03_center_5_5", + "maximum_probability_difference": 5.960464477539063e-08 + }, + { + "condition": "surface_code_bX_d5_r25_center_5_5", + "maximum_probability_difference": 5.960464477539063e-08 + }, + { + "condition": "surface_code_bZ_d5_r25_center_5_5", + "maximum_probability_difference": 1.7881393432617188e-07 + } + ], + "test_data_used": false, + "numerical_controls": { + "packaged_runtime_control_cpu": { + "device": "cpu", + "condition": "surface_code_bX_d5_r03_center_5_5", + "shots": 7, + "same_cpu_old_vs_new_maximum_difference": 0.0, + "old_cpu_vs_original_gpu_evaluation_maximum_difference": 4.971027374267578e-05, + "new_cpu_vs_original_gpu_evaluation_maximum_difference": 4.971027374267578e-05, + "cpu_vs_reconstructed_old_gpu_runtime_maximum_difference": 4.976987838745117e-05, + "original_gpu_evaluation_vs_reconstructed_gpu_runtime_maximum_difference": 7.748603820800781e-07, + "initial_failed_control": { + "comparison": "CPU runtime against original GPU evaluator", + "observed_maximum_difference": 4.971027374267578e-05, + "original_tolerance": 3e-06 + }, + "sources": { + "d5_base_context_model.py": "3b2d4b34a8945ddfe82d76e28b4aa917f11933ed885c0cdcd2bc389448a871fb", + "d5_context_model.py": "53342e15dcbb8bc2dd0b288d75ea115fb504be99a33bc283a518b9d76232cd99", + "d5_temporal_context_model.py": "d58bcfe01767228d18ce2078d555abf13037b5df63edf38273ba66f0966ee445", + "d5_history_context_model.py": "4cc383b4909ff740bccfd20b687f8ee46866e67f93f82fe6c4bace162149ffb4", + "d5_history_features.py": "d709cd54225aa1b14707afa436314c8392f59f748a0007d988c6d18dedd275ee", + "d5_contextual.py": "59d6c85dc4bd61e26cf7243baf0e2637c3de1d35327b2c763707badd19446550", + "turbo.py": "c07dce8d7098142f5cd550d594b948290287a8cb2221f70acaeff3965c3dac0b" + }, + "scope": "Same-device compatibility check. Reconstructed GPU runtime removes the recorded equal physical blend; that reconstruction has floating-point rounding uncertainty.", + "status": "passed_same_device_compatibility" + }, + "dispatcher_control_cpu": { + "status": "passed", + "device": "cpu", + "sources": { + "d5_context_model.py": "53342e15dcbb8bc2dd0b288d75ea115fb504be99a33bc283a518b9d76232cd99", + "d5_base_context_model.py": "3b2d4b34a8945ddfe82d76e28b4aa917f11933ed885c0cdcd2bc389448a871fb", + "d5_temporal_context_model.py": "d58bcfe01767228d18ce2078d555abf13037b5df63edf38273ba66f0966ee445", + "d5_history_context_model.py": "4cc383b4909ff740bccfd20b687f8ee46866e67f93f82fe6c4bace162149ffb4", + "d5_history_features.py": "d709cd54225aa1b14707afa436314c8392f59f748a0007d988c6d18dedd275ee" + }, + "cases": [ + { + "condition": "surface_code_bX_d5_r03_center_5_5", + "architecture": "base64", + "weights_sha256": "fb250c19cf7bb00741b6d862b8f646a2c8ab88397bb03c7bafc9085f9347eca5", + "maximum_edge_probability_difference": 0.0 + }, + { + "condition": "surface_code_bX_d5_r03_center_5_5", + "architecture": "base128", + "weights_sha256": "2a21869e7669492fac8252131434b2e09c97f1def2714988382ab7f127371bd8", + "maximum_edge_probability_difference": 0.0 + }, + { + "condition": "surface_code_bX_d5_r03_center_5_5", + "architecture": "temporal", + "weights_sha256": "9446a1e6dc46e1bcae540531e4f124930bb151ebfa600746ca77bc8f5b2aaa7c", + "maximum_edge_probability_difference": 0.0 + }, + { + "condition": "surface_code_bX_d5_r03_center_5_5", + "architecture": "history", + "weights_sha256": "c508d8968ffa143be4219a207fb54ece3e1bfe144b8a880e4ed4f3d13f092c1e", + "maximum_edge_probability_difference": 0.0 + }, + { + "condition": "surface_code_bZ_d5_r25_center_5_5", + "architecture": "base64", + "weights_sha256": "fb250c19cf7bb00741b6d862b8f646a2c8ab88397bb03c7bafc9085f9347eca5", + "maximum_edge_probability_difference": 0.0 + }, + { + "condition": "surface_code_bZ_d5_r25_center_5_5", + "architecture": "base128", + "weights_sha256": "2a21869e7669492fac8252131434b2e09c97f1def2714988382ab7f127371bd8", + "maximum_edge_probability_difference": 0.0 + }, + { + "condition": "surface_code_bZ_d5_r25_center_5_5", + "architecture": "temporal", + "weights_sha256": "9446a1e6dc46e1bcae540531e4f124930bb151ebfa600746ca77bc8f5b2aaa7c", + "maximum_edge_probability_difference": 0.0 + }, + { + "condition": "surface_code_bZ_d5_r25_center_5_5", + "architecture": "history", + "weights_sha256": "c508d8968ffa143be4219a207fb54ece3e1bfe144b8a880e4ed4f3d13f092c1e", + "maximum_edge_probability_difference": 0.0 + } + ], + "scope": "Routing and code-copy check against each direct model implementation, using training detector inputs without labels. Tiny trained temporal/history smoke weights test nonzero feature couplings; they are excluded from model selection and submission.", + "test_data_used": false + }, + "cpu_probability_precision": { + "condition": "surface_code_bX_d5_r03_center_5_5", + "validation_syndromes": 7, + "logical_labels_used": false, + "parameter_updates": 0, + "reference": "Float64 neural forward and exact contraction from the same stored weights and fixed float32 input logits, on CPU", + "cpu_float32_vs_float64_maximum_difference": 7.624897924163321e-08, + "cpu_float32_edges_float64_contraction_vs_float64_maximum_difference": 4.725248914372315e-08, + "gpu_float32_vs_float64_maximum_difference": 4.964999121059854e-05, + "cpu_vs_gpu_float32_maximum_difference": 4.971027374267578e-05, + "maximum_neural_edge_probability_difference": 2.6330936014895556e-08, + "float32_edge_values_above_one_minus_1e6": 0, + "scope": "Precision diagnostic only; the published model is unchanged. Same-device old/new packaged-code compatibility was independently exact." + }, + "priors_only_control_cpu": { + "status": "passed", + "device": "cpu", + "source_sha256": "c07dce8d7098142f5cd550d594b948290287a8cb2221f70acaeff3965c3dac0b", + "records": [ + { + "condition": "surface_code_bX_d5_r03_center_5_5", + "shots": 3, + "priors_bitwise_identical": true, + "normal_seconds_including_compilation": 2.7116777896881104, + "priors_only_seconds_warm": 0.13569164276123047 + }, + { + "condition": "surface_code_bZ_d5_r25_center_5_5", + "shots": 3, + "priors_bitwise_identical": true, + "normal_seconds_including_compilation": 3.557781457901001, + "priors_only_seconds_warm": 1.7711329460144043 + } + ], + "scope": "CPU numerical equivalence on supplied training syndromes; timings are not a controlled speed comparison." + } + } + }, + "package_validation": { + "performance": 0.7672400841346154, + "failure_by_distance": { + "d3": 0.2398212139423077, + "d5": 0.22569861778846154 + }, + "scorer": "Supplied qecbench.scoring on all 130 validation conditions and 665600 shots", + "contract_checks": [ + { + "condition": "surface_code_bX_d3_r01_center_3_5", + "shots": 1, + "maximum_probability_difference": 0.0 + }, + { + "condition": "surface_code_bX_d3_r25_center_5_3", + "shots": 37, + "maximum_probability_difference": 0.0 + }, + { + "condition": "surface_code_bZ_d3_r13_center_5_7", + "shots": 1025, + "maximum_probability_difference": 0.0 + }, + { + "condition": "surface_code_bX_d5_r01_center_5_5", + "shots": 7, + "maximum_probability_difference": 0.0 + }, + { + "condition": "surface_code_bZ_d5_r09_center_5_5", + "shots": 257, + "maximum_probability_difference": 0.0 + }, + { + "condition": "surface_code_bX_d5_r25_center_5_5", + "shots": 17, + "maximum_probability_difference": 0.0 + } + ], + "prediction_generation": "All26 d5 conditions replayed from the assembled package; unchanged d3 predictions retained. Full trusted scoring and relocated arbitrary-ID/subset checks.", + "runtime_evidence": "Full133120-shot d5 replay took 322.10s on one H100; d3 paths unchanged from the recorded incumbent.", + "d5_validation_runtime_seconds": 322.1027355194092, + "runtime_vs_cached": { + "scope": "Assembled runtime versus cached candidate predictions, including physical-prior recomputation and compilation/batching differences; descriptive, not a causal precision attribution", + "maximum_probability_difference": 4.285573959350586e-05, + "decision_differences": 0, + "source_sha256": "2e3e81d122f9d626d486d050c38d86bfd3e55bc6cd8e0e270b9e8eabbf69539a" + }, + "contract_execution": { + "requested_verifier_uid": 10001, + "effective_uid": 1000, + "effective_gid": 1000, + "supplementary_groups": [], + "identity_status": "Development process is already unprivileged and cannot change UID; verifier UID10001 was not executed", + "model_and_input_copy": "Owned by development UID 1000,directories0555,files0444,relocated under a fresh accessible temporary parent", + "output_directory": "Owned by execution UID 1000,mode0700", + "PYTHONPATH": "", + "backend": "Runtime default; full selected subset cases", + "scope": "Local contract check; not a Docker/network/mount-isolation test" + } + } +} diff --git a/shared/package-files/08/08cd45a2ba20e85242ff9618e08b9e8967d0f5c0139520c9e21176dd14e78814/__init__.py b/shared/package-files/08/08cd45a2ba20e85242ff9618e08b9e8967d0f5c0139520c9e21176dd14e78814/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e361726dc6f80d41cb4975641b44624427b489d6 --- /dev/null +++ b/shared/package-files/08/08cd45a2ba20e85242ff9618e08b9e8967d0f5c0139520c9e21176dd14e78814/__init__.py @@ -0,0 +1,12 @@ +# ruff: noqa: TCH004 +from typing import TYPE_CHECKING + +if TYPE_CHECKING: + # import modules that have public classes/functions: + from pandas.tseries import ( + frequencies, + offsets, + ) + + # and mark only those modules as public + __all__ = ["frequencies", "offsets"] diff --git a/shared/package-files/08/08cd4c031952588ed911f4a3c8b4c3d426b4df77bdce47f4ebcaa1142e538571/_embedding_bag_backward_ops.h b/shared/package-files/08/08cd4c031952588ed911f4a3c8b4c3d426b4df77bdce47f4ebcaa1142e538571/_embedding_bag_backward_ops.h new file mode 100644 index 0000000000000000000000000000000000000000..327d4612ee4c22149de11a457f94c84a76ac9c6d --- /dev/null +++ b/shared/package-files/08/08cd4c031952588ed911f4a3c8b4c3d426b4df77bdce47f4ebcaa1142e538571/_embedding_bag_backward_ops.h @@ -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 _embedding_bag_backward { + using schema = at::Tensor (const at::Tensor &, const at::Tensor &, const at::Tensor &, const at::Tensor &, const at::Tensor &, const at::Tensor &, c10::SymInt, bool, int64_t, bool, const c10::optional &, int64_t); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::_embedding_bag_backward") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "_embedding_bag_backward(Tensor grad, Tensor indices, Tensor offsets, Tensor offset2bag, Tensor bag_size, Tensor maximum_indices, SymInt num_weights, bool scale_grad_by_freq, int mode, bool sparse, Tensor? per_sample_weights, int padding_idx=-1) -> Tensor") + static at::Tensor call(const at::Tensor & grad, const at::Tensor & indices, const at::Tensor & offsets, const at::Tensor & offset2bag, const at::Tensor & bag_size, const at::Tensor & maximum_indices, c10::SymInt num_weights, bool scale_grad_by_freq, int64_t mode, bool sparse, const c10::optional & per_sample_weights, int64_t padding_idx); + static at::Tensor redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad, const at::Tensor & indices, const at::Tensor & offsets, const at::Tensor & offset2bag, const at::Tensor & bag_size, const at::Tensor & maximum_indices, c10::SymInt num_weights, bool scale_grad_by_freq, int64_t mode, bool sparse, const c10::optional & per_sample_weights, int64_t padding_idx); +}; + +}} // namespace at::_ops diff --git a/shared/package-files/08/08cfa007e5dc66a6fe08a52a844b743622bef6c95cff252cb43958cb389b6aac/ufuncbuilding_usecases.py b/shared/package-files/08/08cfa007e5dc66a6fe08a52a844b743622bef6c95cff252cb43958cb389b6aac/ufuncbuilding_usecases.py new file mode 100644 index 0000000000000000000000000000000000000000..0e96dc300cf3642ee3a042bf55cda4885a98c547 --- /dev/null +++ b/shared/package-files/08/08cfa007e5dc66a6fe08a52a844b743622bef6c95cff252cb43958cb389b6aac/ufuncbuilding_usecases.py @@ -0,0 +1,69 @@ +from numba import vectorize + + +def add(a, b): + """An addition""" + return a + b + + +def equals(a, b): + return a == b + + +def mul(a, b): + """A multiplication""" + return a * b + + +def guadd(a, b, c): + """A generalized addition""" + x, y = c.shape + for i in range(x): + for j in range(y): + c[i, j] = a[i, j] + b[i, j] + + +@vectorize(nopython=True) +def inner(a, b): + return a + b + + +@vectorize(["int64(int64, int64)"], nopython=True) +def inner_explicit(a, b): + return a + b + + +def outer(a, b): + return inner(a, b) + + +def outer_explicit(a, b): + return inner_explicit(a, b) + + +class Dummy: + pass + + +def guadd_obj(a, b, c): + Dummy() # to force object mode + x, y = c.shape + for i in range(x): + for j in range(y): + c[i, j] = a[i, j] + b[i, j] + + +def guadd_scalar_obj(a, b, c): + Dummy() # to force object mode + x, y = c.shape + for i in range(x): + for j in range(y): + c[i, j] = a[i, j] + b + + +class MyException(Exception): + pass + + +def guerror(a, b, c): + raise MyException diff --git a/shared/package-files/08/08d0994b6daec7b24862fd269bd286275b0f5a4e3ece2c0dd7748a002d2edfa3/string.pyi b/shared/package-files/08/08d0994b6daec7b24862fd269bd286275b0f5a4e3ece2c0dd7748a002d2edfa3/string.pyi new file mode 100644 index 0000000000000000000000000000000000000000..a39e64dd32cae46b459f92ad4326099c25ad4b28 --- /dev/null +++ b/shared/package-files/08/08d0994b6daec7b24862fd269bd286275b0f5a4e3ece2c0dd7748a002d2edfa3/string.pyi @@ -0,0 +1,30 @@ +from typing import Any, Iterable, Mapping, Optional, Sequence, Tuple, Union + +ascii_letters: str +ascii_lowercase: str +ascii_uppercase: str +digits: str +hexdigits: str +octdigits: str +punctuation: str +printable: str +whitespace: str + +def capwords(s: str, sep: Optional[str] = ...) -> str: ... + +class Template: + template: str + def __init__(self, template: str) -> None: ... + def substitute(self, __mapping: Mapping[str, object] = ..., **kwds: object) -> str: ... + def safe_substitute(self, __mapping: Mapping[str, object] = ..., **kwds: object) -> str: ... + +# TODO(MichalPokorny): This is probably badly and/or loosely typed. +class Formatter: + def format(self, __format_string: str, *args: Any, **kwargs: Any) -> str: ... + def vformat(self, format_string: str, args: Sequence[Any], kwargs: Mapping[str, Any]) -> str: ... + def parse(self, format_string: str) -> Iterable[Tuple[str, Optional[str], Optional[str], Optional[str]]]: ... + def get_field(self, field_name: str, args: Sequence[Any], kwargs: Mapping[str, Any]) -> Any: ... + def get_value(self, key: Union[int, str], args: Sequence[Any], kwargs: Mapping[str, Any]) -> Any: ... + def check_unused_args(self, used_args: Sequence[Union[int, str]], args: Sequence[Any], kwargs: Mapping[str, Any]) -> None: ... + def format_field(self, value: Any, format_spec: str) -> Any: ... + def convert_field(self, value: Any, conversion: str) -> Any: ... diff --git a/shared/package-files/08/08e768f35d2af2f8d5c8788e62c803e537001381b76d0533417944ae80d6b23d/test_comb_numbers.py b/shared/package-files/08/08e768f35d2af2f8d5c8788e62c803e537001381b76d0533417944ae80d6b23d/test_comb_numbers.py new file mode 100644 index 0000000000000000000000000000000000000000..37f08011d662026eab1089948c37dc5af38f9b79 --- /dev/null +++ b/shared/package-files/08/08e768f35d2af2f8d5c8788e62c803e537001381b76d0533417944ae80d6b23d/test_comb_numbers.py @@ -0,0 +1,852 @@ +import string + +from sympy.concrete.products import Product +from sympy.concrete.summations import Sum +from sympy.core.function import (diff, expand_func) +from sympy.core import (EulerGamma, TribonacciConstant) +from sympy.core.numbers import (Float, I, Rational, oo, pi) +from sympy.core.singleton import S +from sympy.core.symbol import (Dummy, Symbol, symbols) +from sympy.functions.combinatorial.numbers import carmichael +from sympy.functions.elementary.complexes import (im, re) +from sympy.functions.elementary.integers import floor +from sympy.polys.polytools import cancel +from sympy.series.limits import limit, Limit +from sympy.series.order import O +from sympy.functions import ( + bernoulli, harmonic, bell, fibonacci, tribonacci, lucas, euler, catalan, + genocchi, andre, partition, motzkin, binomial, gamma, sqrt, cbrt, hyper, log, digamma, + trigamma, polygamma, factorial, sin, cos, cot, polylog, zeta, dirichlet_eta) +from sympy.functions.combinatorial.numbers import _nT + +from sympy.core.expr import unchanged +from sympy.core.numbers import GoldenRatio, Integer + +from sympy.testing.pytest import raises, nocache_fail, warns_deprecated_sympy +from sympy.abc import x + + +def test_carmichael(): + assert carmichael.find_carmichael_numbers_in_range(0, 561) == [] + assert carmichael.find_carmichael_numbers_in_range(561, 562) == [561] + assert carmichael.find_carmichael_numbers_in_range(561, 1105) == carmichael.find_carmichael_numbers_in_range(561, + 562) + assert carmichael.find_first_n_carmichaels(5) == [561, 1105, 1729, 2465, 2821] + raises(ValueError, lambda: carmichael.is_carmichael(-2)) + raises(ValueError, lambda: carmichael.find_carmichael_numbers_in_range(-2, 2)) + raises(ValueError, lambda: carmichael.find_carmichael_numbers_in_range(22, 2)) + with warns_deprecated_sympy(): + assert carmichael.is_prime(2821) == False + + +def test_bernoulli(): + assert bernoulli(0) == 1 + assert bernoulli(1) == Rational(1, 2) + assert bernoulli(2) == Rational(1, 6) + assert bernoulli(3) == 0 + assert bernoulli(4) == Rational(-1, 30) + assert bernoulli(5) == 0 + assert bernoulli(6) == Rational(1, 42) + assert bernoulli(7) == 0 + assert bernoulli(8) == Rational(-1, 30) + assert bernoulli(10) == Rational(5, 66) + assert bernoulli(1000001) == 0 + + assert bernoulli(0, x) == 1 + assert bernoulli(1, x) == x - S.Half + assert bernoulli(2, x) == x**2 - x + Rational(1, 6) + assert bernoulli(3, x) == x**3 - (3*x**2)/2 + x/2 + + # Should be fast; computed with mpmath + b = bernoulli(1000) + assert b.p % 10**10 == 7950421099 + assert b.q == 342999030 + + b = bernoulli(10**6, evaluate=False).evalf() + assert str(b) == '-2.23799235765713e+4767529' + + # Issue #8527 + l = Symbol('l', integer=True) + m = Symbol('m', integer=True, nonnegative=True) + n = Symbol('n', integer=True, positive=True) + assert isinstance(bernoulli(2 * l + 1), bernoulli) + assert isinstance(bernoulli(2 * m + 1), bernoulli) + assert bernoulli(2 * n + 1) == 0 + + assert bernoulli(x, 1) == bernoulli(x) + + assert str(bernoulli(0.0, 2.3).evalf(n=10)) == '1.000000000' + assert str(bernoulli(1.0).evalf(n=10)) == '0.5000000000' + assert str(bernoulli(1.2).evalf(n=10)) == '0.4195995367' + assert str(bernoulli(1.2, 0.8).evalf(n=10)) == '0.2144830348' + assert str(bernoulli(1.2, -0.8).evalf(n=10)) == '-1.158865646 - 0.6745558744*I' + assert str(bernoulli(3.0, 1j).evalf(n=10)) == '1.5 - 0.5*I' + assert str(bernoulli(I).evalf(n=10)) == '0.9268485643 - 0.5821580598*I' + assert str(bernoulli(I, I).evalf(n=10)) == '0.1267792071 + 0.01947413152*I' + assert bernoulli(x).evalf() == bernoulli(x) + + +def test_bernoulli_rewrite(): + from sympy.functions.elementary.piecewise import Piecewise + n = Symbol('n', integer=True, nonnegative=True) + + assert bernoulli(-1).rewrite(zeta) == pi**2/6 + assert bernoulli(-2).rewrite(zeta) == 2*zeta(3) + assert not bernoulli(n, -3).rewrite(zeta).has(harmonic) + assert bernoulli(-4, x).rewrite(zeta) == 4*zeta(5, x) + assert isinstance(bernoulli(n, x).rewrite(zeta), Piecewise) + assert bernoulli(n+1, x).rewrite(zeta) == -(n+1) * zeta(-n, x) + + +def test_fibonacci(): + assert [fibonacci(n) for n in range(-3, 5)] == [2, -1, 1, 0, 1, 1, 2, 3] + assert fibonacci(100) == 354224848179261915075 + assert [lucas(n) for n in range(-3, 5)] == [-4, 3, -1, 2, 1, 3, 4, 7] + assert lucas(100) == 792070839848372253127 + + assert fibonacci(1, x) == 1 + assert fibonacci(2, x) == x + assert fibonacci(3, x) == x**2 + 1 + assert fibonacci(4, x) == x**3 + 2*x + + # issue #8800 + n = Dummy('n') + assert fibonacci(n).limit(n, S.Infinity) is S.Infinity + assert lucas(n).limit(n, S.Infinity) is S.Infinity + + assert fibonacci(n).rewrite(sqrt) == \ + 2**(-n)*sqrt(5)*((1 + sqrt(5))**n - (-sqrt(5) + 1)**n) / 5 + assert fibonacci(n).rewrite(sqrt).subs(n, 10).expand() == fibonacci(10) + assert fibonacci(n).rewrite(GoldenRatio).subs(n,10).evalf() == \ + Float(fibonacci(10)) + assert lucas(n).rewrite(sqrt) == \ + (fibonacci(n-1).rewrite(sqrt) + fibonacci(n+1).rewrite(sqrt)).simplify() + assert lucas(n).rewrite(sqrt).subs(n, 10).expand() == lucas(10) + raises(ValueError, lambda: fibonacci(-3, x)) + + +def test_tribonacci(): + assert [tribonacci(n) for n in range(8)] == [0, 1, 1, 2, 4, 7, 13, 24] + assert tribonacci(100) == 98079530178586034536500564 + + assert tribonacci(0, x) == 0 + assert tribonacci(1, x) == 1 + assert tribonacci(2, x) == x**2 + assert tribonacci(3, x) == x**4 + x + assert tribonacci(4, x) == x**6 + 2*x**3 + 1 + assert tribonacci(5, x) == x**8 + 3*x**5 + 3*x**2 + + n = Dummy('n') + assert tribonacci(n).limit(n, S.Infinity) is S.Infinity + + w = (-1 + S.ImaginaryUnit * sqrt(3)) / 2 + a = (1 + cbrt(19 + 3*sqrt(33)) + cbrt(19 - 3*sqrt(33))) / 3 + b = (1 + w*cbrt(19 + 3*sqrt(33)) + w**2*cbrt(19 - 3*sqrt(33))) / 3 + c = (1 + w**2*cbrt(19 + 3*sqrt(33)) + w*cbrt(19 - 3*sqrt(33))) / 3 + assert tribonacci(n).rewrite(sqrt) == \ + (a**(n + 1)/((a - b)*(a - c)) + + b**(n + 1)/((b - a)*(b - c)) + + c**(n + 1)/((c - a)*(c - b))) + assert tribonacci(n).rewrite(sqrt).subs(n, 4).simplify() == tribonacci(4) + assert tribonacci(n).rewrite(GoldenRatio).subs(n,10).evalf() == \ + Float(tribonacci(10)) + assert tribonacci(n).rewrite(TribonacciConstant) == floor( + 3*TribonacciConstant**n*(102*sqrt(33) + 586)**Rational(1, 3)/ + (-2*(102*sqrt(33) + 586)**Rational(1, 3) + 4 + (102*sqrt(33) + + 586)**Rational(2, 3)) + S.Half) + raises(ValueError, lambda: tribonacci(-1, x)) + + +@nocache_fail +def test_bell(): + assert [bell(n) for n in range(8)] == [1, 1, 2, 5, 15, 52, 203, 877] + + assert bell(0, x) == 1 + assert bell(1, x) == x + assert bell(2, x) == x**2 + x + assert bell(5, x) == x**5 + 10*x**4 + 25*x**3 + 15*x**2 + x + assert bell(oo) is S.Infinity + raises(ValueError, lambda: bell(oo, x)) + + raises(ValueError, lambda: bell(-1)) + raises(ValueError, lambda: bell(S.Half)) + + X = symbols('x:6') + # X = (x0, x1, .. x5) + # at the same time: X[1] = x1, X[2] = x2 for standard readablity. + # but we must supply zero-based indexed object X[1:] = (x1, .. x5) + + assert bell(6, 2, X[1:]) == 6*X[5]*X[1] + 15*X[4]*X[2] + 10*X[3]**2 + assert bell( + 6, 3, X[1:]) == 15*X[4]*X[1]**2 + 60*X[3]*X[2]*X[1] + 15*X[2]**3 + + X = (1, 10, 100, 1000, 10000) + assert bell(6, 2, X) == (6 + 15 + 10)*10000 + + X = (1, 2, 3, 3, 5) + assert bell(6, 2, X) == 6*5 + 15*3*2 + 10*3**2 + + X = (1, 2, 3, 5) + assert bell(6, 3, X) == 15*5 + 60*3*2 + 15*2**3 + + # Dobinski's formula + n = Symbol('n', integer=True, nonnegative=True) + # For large numbers, this is too slow + # For nonintegers, there are significant precision errors + for i in [0, 2, 3, 7, 13, 42, 55]: + # Running without the cache this is either very slow or goes into an + # infinite loop. + assert bell(i).evalf() == bell(n).rewrite(Sum).evalf(subs={n: i}) + + m = Symbol("m") + assert bell(m).rewrite(Sum) == bell(m) + assert bell(n, m).rewrite(Sum) == bell(n, m) + # issue 9184 + n = Dummy('n') + assert bell(n).limit(n, S.Infinity) is S.Infinity + + +def test_harmonic(): + n = Symbol("n") + m = Symbol("m") + + assert harmonic(n, 0) == n + assert harmonic(n).evalf() == harmonic(n) + assert harmonic(n, 1) == harmonic(n) + assert harmonic(1, n) == 1 + + assert harmonic(0, 1) == 0 + assert harmonic(1, 1) == 1 + assert harmonic(2, 1) == Rational(3, 2) + assert harmonic(3, 1) == Rational(11, 6) + assert harmonic(4, 1) == Rational(25, 12) + assert harmonic(0, 2) == 0 + assert harmonic(1, 2) == 1 + assert harmonic(2, 2) == Rational(5, 4) + assert harmonic(3, 2) == Rational(49, 36) + assert harmonic(4, 2) == Rational(205, 144) + assert harmonic(0, 3) == 0 + assert harmonic(1, 3) == 1 + assert harmonic(2, 3) == Rational(9, 8) + assert harmonic(3, 3) == Rational(251, 216) + assert harmonic(4, 3) == Rational(2035, 1728) + + assert harmonic(oo, -1) is S.NaN + assert harmonic(oo, 0) is oo + assert harmonic(oo, S.Half) is oo + assert harmonic(oo, 1) is oo + assert harmonic(oo, 2) == (pi**2)/6 + assert harmonic(oo, 3) == zeta(3) + assert harmonic(oo, Dummy(negative=True)) is S.NaN + ip = Dummy(integer=True, positive=True) + if (1/ip <= 1) is True: #---------------------------------+ + assert None, 'delete this if-block and the next line' #| + ip = Dummy(even=True, positive=True) #--------------------+ + assert harmonic(oo, 1/ip) is oo + assert harmonic(oo, 1 + ip) is zeta(1 + ip) + + assert harmonic(0, m) == 0 + assert harmonic(-1, -1) == 0 + assert harmonic(-1, 0) == -1 + assert harmonic(-1, 1) is S.ComplexInfinity + assert harmonic(-1, 2) is S.NaN + assert harmonic(-3, -2) == -5 + assert harmonic(-3, -3) == 9 + + +def test_harmonic_rational(): + ne = S(6) + no = S(5) + pe = S(8) + po = S(9) + qe = S(10) + qo = S(13) + + Heee = harmonic(ne + pe/qe) + Aeee = (-log(10) + 2*(Rational(-1, 4) + sqrt(5)/4)*log(sqrt(-sqrt(5)/8 + Rational(5, 8))) + + 2*(-sqrt(5)/4 - Rational(1, 4))*log(sqrt(sqrt(5)/8 + Rational(5, 8))) + + pi*sqrt(2*sqrt(5)/5 + 1)/2 + Rational(13944145, 4720968)) + + Heeo = harmonic(ne + pe/qo) + Aeeo = (-log(26) + 2*log(sin(pi*Rational(3, 13)))*cos(pi*Rational(4, 13)) + 2*log(sin(pi*Rational(2, 13)))*cos(pi*Rational(32, 13)) + + 2*log(sin(pi*Rational(5, 13)))*cos(pi*Rational(80, 13)) - 2*log(sin(pi*Rational(6, 13)))*cos(pi*Rational(5, 13)) + - 2*log(sin(pi*Rational(4, 13)))*cos(pi/13) + pi*cot(pi*Rational(5, 13))/2 - 2*log(sin(pi/13))*cos(pi*Rational(3, 13)) + + Rational(2422020029, 702257080)) + + Heoe = harmonic(ne + po/qe) + Aeoe = (-log(20) + 2*(Rational(1, 4) + sqrt(5)/4)*log(Rational(-1, 4) + sqrt(5)/4) + + 2*(Rational(-1, 4) + sqrt(5)/4)*log(sqrt(-sqrt(5)/8 + Rational(5, 8))) + + 2*(-sqrt(5)/4 - Rational(1, 4))*log(sqrt(sqrt(5)/8 + Rational(5, 8))) + + 2*(-sqrt(5)/4 + Rational(1, 4))*log(Rational(1, 4) + sqrt(5)/4) + + Rational(11818877030, 4286604231) + pi*sqrt(2*sqrt(5) + 5)/2) + + Heoo = harmonic(ne + po/qo) + Aeoo = (-log(26) + 2*log(sin(pi*Rational(3, 13)))*cos(pi*Rational(54, 13)) + 2*log(sin(pi*Rational(4, 13)))*cos(pi*Rational(6, 13)) + + 2*log(sin(pi*Rational(6, 13)))*cos(pi*Rational(108, 13)) - 2*log(sin(pi*Rational(5, 13)))*cos(pi/13) + - 2*log(sin(pi/13))*cos(pi*Rational(5, 13)) + pi*cot(pi*Rational(4, 13))/2 + - 2*log(sin(pi*Rational(2, 13)))*cos(pi*Rational(3, 13)) + Rational(11669332571, 3628714320)) + + Hoee = harmonic(no + pe/qe) + Aoee = (-log(10) + 2*(Rational(-1, 4) + sqrt(5)/4)*log(sqrt(-sqrt(5)/8 + Rational(5, 8))) + + 2*(-sqrt(5)/4 - Rational(1, 4))*log(sqrt(sqrt(5)/8 + Rational(5, 8))) + + pi*sqrt(2*sqrt(5)/5 + 1)/2 + Rational(779405, 277704)) + + Hoeo = harmonic(no + pe/qo) + Aoeo = (-log(26) + 2*log(sin(pi*Rational(3, 13)))*cos(pi*Rational(4, 13)) + 2*log(sin(pi*Rational(2, 13)))*cos(pi*Rational(32, 13)) + + 2*log(sin(pi*Rational(5, 13)))*cos(pi*Rational(80, 13)) - 2*log(sin(pi*Rational(6, 13)))*cos(pi*Rational(5, 13)) + - 2*log(sin(pi*Rational(4, 13)))*cos(pi/13) + pi*cot(pi*Rational(5, 13))/2 + - 2*log(sin(pi/13))*cos(pi*Rational(3, 13)) + Rational(53857323, 16331560)) + + Hooe = harmonic(no + po/qe) + Aooe = (-log(20) + 2*(Rational(1, 4) + sqrt(5)/4)*log(Rational(-1, 4) + sqrt(5)/4) + + 2*(Rational(-1, 4) + sqrt(5)/4)*log(sqrt(-sqrt(5)/8 + Rational(5, 8))) + + 2*(-sqrt(5)/4 - Rational(1, 4))*log(sqrt(sqrt(5)/8 + Rational(5, 8))) + + 2*(-sqrt(5)/4 + Rational(1, 4))*log(Rational(1, 4) + sqrt(5)/4) + + Rational(486853480, 186374097) + pi*sqrt(2*sqrt(5) + 5)/2) + + Hooo = harmonic(no + po/qo) + Aooo = (-log(26) + 2*log(sin(pi*Rational(3, 13)))*cos(pi*Rational(54, 13)) + 2*log(sin(pi*Rational(4, 13)))*cos(pi*Rational(6, 13)) + + 2*log(sin(pi*Rational(6, 13)))*cos(pi*Rational(108, 13)) - 2*log(sin(pi*Rational(5, 13)))*cos(pi/13) + - 2*log(sin(pi/13))*cos(pi*Rational(5, 13)) + pi*cot(pi*Rational(4, 13))/2 + - 2*log(sin(pi*Rational(2, 13)))*cos(3*pi/13) + Rational(383693479, 125128080)) + + H = [Heee, Heeo, Heoe, Heoo, Hoee, Hoeo, Hooe, Hooo] + A = [Aeee, Aeeo, Aeoe, Aeoo, Aoee, Aoeo, Aooe, Aooo] + for h, a in zip(H, A): + e = expand_func(h).doit() + assert cancel(e/a) == 1 + assert abs(h.n() - a.n()) < 1e-12 + + +def test_harmonic_evalf(): + assert str(harmonic(1.5).evalf(n=10)) == '1.280372306' + assert str(harmonic(1.5, 2).evalf(n=10)) == '1.154576311' # issue 7443 + assert str(harmonic(4.0, -3).evalf(n=10)) == '100.0000000' + assert str(harmonic(7.0, 1.0).evalf(n=10)) == '2.592857143' + assert str(harmonic(1, pi).evalf(n=10)) == '1.000000000' + assert str(harmonic(2, pi).evalf(n=10)) == '1.113314732' + assert str(harmonic(1000.0, pi).evalf(n=10)) == '1.176241563' + assert str(harmonic(I).evalf(n=10)) == '0.6718659855 + 1.076674047*I' + assert str(harmonic(I, I).evalf(n=10)) == '-0.3970915266 + 1.9629689*I' + + assert harmonic(-1.0, 1).evalf() is S.NaN + assert harmonic(-2.0, 2.0).evalf() is S.NaN + +def test_harmonic_rewrite(): + from sympy.functions.elementary.piecewise import Piecewise + n = Symbol("n") + m = Symbol("m", integer=True, positive=True) + x1 = Symbol("x1", positive=True) + x2 = Symbol("x2", negative=True) + + assert harmonic(n).rewrite(digamma) == polygamma(0, n + 1) + EulerGamma + assert harmonic(n).rewrite(trigamma) == polygamma(0, n + 1) + EulerGamma + assert harmonic(n).rewrite(polygamma) == polygamma(0, n + 1) + EulerGamma + + assert harmonic(n,3).rewrite(polygamma) == polygamma(2, n + 1)/2 - polygamma(2, 1)/2 + assert isinstance(harmonic(n,m).rewrite(polygamma), Piecewise) + + assert expand_func(harmonic(n+4)) == harmonic(n) + 1/(n + 4) + 1/(n + 3) + 1/(n + 2) + 1/(n + 1) + assert expand_func(harmonic(n-4)) == harmonic(n) - 1/(n - 1) - 1/(n - 2) - 1/(n - 3) - 1/n + + assert harmonic(n, m).rewrite("tractable") == harmonic(n, m).rewrite(polygamma) + assert harmonic(n, x1).rewrite("tractable") == harmonic(n, x1) + assert harmonic(n, x1 + 1).rewrite("tractable") == zeta(x1 + 1) - zeta(x1 + 1, n + 1) + assert harmonic(n, x2).rewrite("tractable") == zeta(x2) - zeta(x2, n + 1) + + _k = Dummy("k") + assert harmonic(n).rewrite(Sum).dummy_eq(Sum(1/_k, (_k, 1, n))) + assert harmonic(n, m).rewrite(Sum).dummy_eq(Sum(_k**(-m), (_k, 1, n))) + + +def test_harmonic_calculus(): + y = Symbol("y", positive=True) + z = Symbol("z", negative=True) + assert harmonic(x, 1).limit(x, 0) == 0 + assert harmonic(x, y).limit(x, 0) == 0 + assert harmonic(x, 1).series(x, y, 2) == \ + harmonic(y) + (x - y)*zeta(2, y + 1) + O((x - y)**2, (x, y)) + assert limit(harmonic(x, y), x, oo) == harmonic(oo, y) + assert limit(harmonic(x, y + 1), x, oo) == zeta(y + 1) + assert limit(harmonic(x, y - 1), x, oo) == harmonic(oo, y - 1) + assert limit(harmonic(x, z), x, oo) == Limit(harmonic(x, z), x, oo, dir='-') + assert limit(harmonic(x, z + 1), x, oo) == oo + assert limit(harmonic(x, z + 2), x, oo) == harmonic(oo, z + 2) + assert limit(harmonic(x, z - 1), x, oo) == Limit(harmonic(x, z - 1), x, oo, dir='-') + + +def test_euler(): + assert euler(0) == 1 + assert euler(1) == 0 + assert euler(2) == -1 + assert euler(3) == 0 + assert euler(4) == 5 + assert euler(6) == -61 + assert euler(8) == 1385 + + assert euler(20, evaluate=False) != 370371188237525 + + n = Symbol('n', integer=True) + assert euler(n) != -1 + assert euler(n).subs(n, 2) == -1 + + assert euler(-1) == S.Pi / 2 + assert euler(-1, 1) == 2*log(2) + assert euler(-2).evalf() == (2*S.Catalan).evalf() + assert euler(-3).evalf() == (S.Pi**3 / 16).evalf() + assert str(euler(2.3).evalf(n=10)) == '-1.052850274' + assert str(euler(1.2, 3.4).evalf(n=10)) == '3.575613489' + assert str(euler(I).evalf(n=10)) == '1.248446443 - 0.7675445124*I' + assert str(euler(I, I).evalf(n=10)) == '0.04812930469 + 0.01052411008*I' + + assert euler(20).evalf() == 370371188237525.0 + assert euler(20, evaluate=False).evalf() == 370371188237525.0 + + assert euler(n).rewrite(Sum) == euler(n) + n = Symbol('n', integer=True, nonnegative=True) + assert euler(2*n + 1).rewrite(Sum) == 0 + _j = Dummy('j') + _k = Dummy('k') + assert euler(2*n).rewrite(Sum).dummy_eq( + I*Sum((-1)**_j*2**(-_k)*I**(-_k)*(-2*_j + _k)**(2*n + 1)* + binomial(_k, _j)/_k, (_j, 0, _k), (_k, 1, 2*n + 1))) + + +def test_euler_odd(): + n = Symbol('n', odd=True, positive=True) + assert euler(n) == 0 + n = Symbol('n', odd=True) + assert euler(n) != 0 + + +def test_euler_polynomials(): + assert euler(0, x) == 1 + assert euler(1, x) == x - S.Half + assert euler(2, x) == x**2 - x + assert euler(3, x) == x**3 - (3*x**2)/2 + Rational(1, 4) + m = Symbol('m') + assert isinstance(euler(m, x), euler) + from sympy.core.numbers import Float + A = Float('-0.46237208575048694923364757452876131e8') # from Maple + B = euler(19, S.Pi).evalf(32) + assert abs((A - B)/A) < 1e-31 + + +def test_euler_polynomial_rewrite(): + m = Symbol('m') + A = euler(m, x).rewrite('Sum'); + assert A.subs({m:3, x:5}).doit() == euler(3, 5) + + +def test_catalan(): + n = Symbol('n', integer=True) + m = Symbol('m', integer=True, positive=True) + k = Symbol('k', integer=True, nonnegative=True) + p = Symbol('p', nonnegative=True) + + catalans = [1, 1, 2, 5, 14, 42, 132, 429, 1430, 4862, 16796, 58786] + for i, c in enumerate(catalans): + assert catalan(i) == c + assert catalan(n).rewrite(factorial).subs(n, i) == c + assert catalan(n).rewrite(Product).subs(n, i).doit() == c + + assert unchanged(catalan, x) + assert catalan(2*x).rewrite(binomial) == binomial(4*x, 2*x)/(2*x + 1) + assert catalan(S.Half).rewrite(gamma) == 8/(3*pi) + assert catalan(S.Half).rewrite(factorial).rewrite(gamma) ==\ + 8 / (3 * pi) + assert catalan(3*x).rewrite(gamma) == 4**( + 3*x)*gamma(3*x + S.Half)/(sqrt(pi)*gamma(3*x + 2)) + assert catalan(x).rewrite(hyper) == hyper((-x + 1, -x), (2,), 1) + + assert catalan(n).rewrite(factorial) == factorial(2*n) / (factorial(n + 1) + * factorial(n)) + assert isinstance(catalan(n).rewrite(Product), catalan) + assert isinstance(catalan(m).rewrite(Product), Product) + + assert diff(catalan(x), x) == (polygamma( + 0, x + S.Half) - polygamma(0, x + 2) + log(4))*catalan(x) + + assert catalan(x).evalf() == catalan(x) + c = catalan(S.Half).evalf() + assert str(c) == '0.848826363156775' + c = catalan(I).evalf(3) + assert str((re(c), im(c))) == '(0.398, -0.0209)' + + # Assumptions + assert catalan(p).is_positive is True + assert catalan(k).is_integer is True + assert catalan(m+3).is_composite is True + + +def test_genocchi(): + genocchis = [0, -1, -1, 0, 1, 0, -3, 0, 17] + for n, g in enumerate(genocchis): + assert genocchi(n) == g + + m = Symbol('m', integer=True) + n = Symbol('n', integer=True, positive=True) + assert unchanged(genocchi, m) + assert genocchi(2*n + 1) == 0 + gn = 2 * (1 - 2**n) * bernoulli(n) + assert genocchi(n).rewrite(bernoulli).factor() == gn.factor() + gnx = 2 * (bernoulli(n, x) - 2**n * bernoulli(n, (x+1) / 2)) + assert genocchi(n, x).rewrite(bernoulli).factor() == gnx.factor() + assert genocchi(2 * n).is_odd + assert genocchi(2 * n).is_even is False + assert genocchi(2 * n + 1).is_even + assert genocchi(n).is_integer + assert genocchi(4 * n).is_positive + # these are the only 2 prime Genocchi numbers + assert genocchi(6, evaluate=False).is_prime == S(-3).is_prime + assert genocchi(8, evaluate=False).is_prime + assert genocchi(4 * n + 2).is_negative + assert genocchi(4 * n + 1).is_negative is False + assert genocchi(4 * n - 2).is_negative + + g0 = genocchi(0, evaluate=False) + assert g0.is_positive is False + assert g0.is_negative is False + assert g0.is_even is True + assert g0.is_odd is False + + assert genocchi(0, x) == 0 + assert genocchi(1, x) == -1 + assert genocchi(2, x) == 1 - 2*x + assert genocchi(3, x) == 3*x - 3*x**2 + assert genocchi(4, x) == -1 + 6*x**2 - 4*x**3 + y = Symbol("y") + assert genocchi(5, (x+y)**100) == -5*(x+y)**400 + 10*(x+y)**300 - 5*(x+y)**100 + + assert str(genocchi(5.0, 4.0).evalf(n=10)) == '-660.0000000' + assert str(genocchi(Rational(5, 4)).evalf(n=10)) == '-1.104286457' + assert str(genocchi(-2).evalf(n=10)) == '3.606170709' + assert str(genocchi(1.3, 3.7).evalf(n=10)) == '-1.847375373' + assert str(genocchi(I, 1.0).evalf(n=10)) == '-0.3161917278 - 1.45311955*I' + + n = Symbol('n') + assert genocchi(n, x).rewrite(dirichlet_eta) == -2*n * dirichlet_eta(1-n, x) + + +def test_andre(): + nums = [1, 1, 1, 2, 5, 16, 61, 272, 1385, 7936, 50521] + for n, a in enumerate(nums): + assert andre(n) == a + assert andre(S.Infinity) == S.Infinity + assert andre(-1) == -log(2) + assert andre(-2) == -2*S.Catalan + assert andre(-3) == 3*zeta(3)/16 + assert andre(-5) == -15*zeta(5)/256 + # In fact andre(-2*n) is related to the Dirichlet *beta* function + # at 2*n, but SymPy doesn't implement that (or general L-functions) + assert unchanged(andre, -4) + + n = Symbol('n', integer=True, nonnegative=True) + assert unchanged(andre, n) + assert andre(n).is_integer is True + assert andre(n).is_positive is True + + assert str(andre(10, evaluate=False).evalf(n=10)) == '50521.00000' + assert str(andre(-1, evaluate=False).evalf(n=10)) == '-0.6931471806' + assert str(andre(-2, evaluate=False).evalf(n=10)) == '-1.831931188' + assert str(andre(-4, evaluate=False).evalf(n=10)) == '1.977889103' + assert str(andre(I, evaluate=False).evalf(n=10)) == '2.378417833 + 0.6343322845*I' + + assert andre(x).rewrite(polylog) == \ + (-I)**(x+1) * polylog(-x, I) + I**(x+1) * polylog(-x, -I) + assert andre(x).rewrite(zeta) == \ + 2 * gamma(x+1) / (2*pi)**(x+1) * \ + (zeta(x+1, Rational(1,4)) - cos(pi*x) * zeta(x+1, Rational(3,4))) + + +@nocache_fail +def test_partition(): + partition_nums = [1, 1, 2, 3, 5, 7, 11, 15, 22] + for n, p in enumerate(partition_nums): + assert partition(n) == p + + x = Symbol('x') + y = Symbol('y', real=True) + m = Symbol('m', integer=True) + n = Symbol('n', integer=True, negative=True) + p = Symbol('p', integer=True, nonnegative=True) + assert partition(m).is_integer + assert not partition(m).is_negative + assert partition(m).is_nonnegative + assert partition(n).is_zero + assert partition(p).is_positive + assert partition(x).subs(x, 7) == 15 + assert partition(y).subs(y, 8) == 22 + raises(ValueError, lambda: partition(Rational(5, 4))) + + +def test__nT(): + assert [_nT(i, j) for i in range(5) for j in range(i + 2)] == [ + 1, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 0, 1, 2, 1, 1, 0] + check = [_nT(10, i) for i in range(11)] + assert check == [0, 1, 5, 8, 9, 7, 5, 3, 2, 1, 1] + assert all(type(i) is int for i in check) + assert _nT(10, 5) == 7 + assert _nT(100, 98) == 2 + assert _nT(100, 100) == 1 + assert _nT(10, 3) == 8 + + +def test_nC_nP_nT(): + from sympy.utilities.iterables import ( + multiset_permutations, multiset_combinations, multiset_partitions, + partitions, subsets, permutations) + from sympy.functions.combinatorial.numbers import ( + nP, nC, nT, stirling, _stirling1, _stirling2, _multiset_histogram, _AOP_product) + + from sympy.combinatorics.permutations import Permutation + from sympy.core.random import choice + + c = string.ascii_lowercase + for i in range(100): + s = ''.join(choice(c) for i in range(7)) + u = len(s) == len(set(s)) + try: + tot = 0 + for i in range(8): + check = nP(s, i) + tot += check + assert len(list(multiset_permutations(s, i))) == check + if u: + assert nP(len(s), i) == check + assert nP(s) == tot + except AssertionError: + print(s, i, 'failed perm test') + raise ValueError() + + for i in range(100): + s = ''.join(choice(c) for i in range(7)) + u = len(s) == len(set(s)) + try: + tot = 0 + for i in range(8): + check = nC(s, i) + tot += check + assert len(list(multiset_combinations(s, i))) == check + if u: + assert nC(len(s), i) == check + assert nC(s) == tot + if u: + assert nC(len(s)) == tot + except AssertionError: + print(s, i, 'failed combo test') + raise ValueError() + + for i in range(1, 10): + tot = 0 + for j in range(1, i + 2): + check = nT(i, j) + assert check.is_Integer + tot += check + assert sum(1 for p in partitions(i, j, size=True) if p[0] == j) == check + assert nT(i) == tot + + for i in range(1, 10): + tot = 0 + for j in range(1, i + 2): + check = nT(range(i), j) + tot += check + assert len(list(multiset_partitions(list(range(i)), j))) == check + assert nT(range(i)) == tot + + for i in range(100): + s = ''.join(choice(c) for i in range(7)) + u = len(s) == len(set(s)) + try: + tot = 0 + for i in range(1, 8): + check = nT(s, i) + tot += check + assert len(list(multiset_partitions(s, i))) == check + if u: + assert nT(range(len(s)), i) == check + if u: + assert nT(range(len(s))) == tot + assert nT(s) == tot + except AssertionError: + print(s, i, 'failed partition test') + raise ValueError() + + # tests for Stirling numbers of the first kind that are not tested in the + # above + assert [stirling(9, i, kind=1) for i in range(11)] == [ + 0, 40320, 109584, 118124, 67284, 22449, 4536, 546, 36, 1, 0] + perms = list(permutations(range(4))) + assert [sum(1 for p in perms if Permutation(p).cycles == i) + for i in range(5)] == [0, 6, 11, 6, 1] == [ + stirling(4, i, kind=1) for i in range(5)] + # http://oeis.org/A008275 + assert [stirling(n, k, signed=1) + for n in range(10) for k in range(1, n + 1)] == [ + 1, -1, + 1, 2, -3, + 1, -6, 11, -6, + 1, 24, -50, 35, -10, + 1, -120, 274, -225, 85, -15, + 1, 720, -1764, 1624, -735, 175, -21, + 1, -5040, 13068, -13132, 6769, -1960, 322, -28, + 1, 40320, -109584, 118124, -67284, 22449, -4536, 546, -36, 1] + # https://en.wikipedia.org/wiki/Stirling_numbers_of_the_first_kind + assert [stirling(n, k, kind=1) + for n in range(10) for k in range(n+1)] == [ + 1, + 0, 1, + 0, 1, 1, + 0, 2, 3, 1, + 0, 6, 11, 6, 1, + 0, 24, 50, 35, 10, 1, + 0, 120, 274, 225, 85, 15, 1, + 0, 720, 1764, 1624, 735, 175, 21, 1, + 0, 5040, 13068, 13132, 6769, 1960, 322, 28, 1, + 0, 40320, 109584, 118124, 67284, 22449, 4536, 546, 36, 1] + # https://en.wikipedia.org/wiki/Stirling_numbers_of_the_second_kind + assert [stirling(n, k, kind=2) + for n in range(10) for k in range(n+1)] == [ + 1, + 0, 1, + 0, 1, 1, + 0, 1, 3, 1, + 0, 1, 7, 6, 1, + 0, 1, 15, 25, 10, 1, + 0, 1, 31, 90, 65, 15, 1, + 0, 1, 63, 301, 350, 140, 21, 1, + 0, 1, 127, 966, 1701, 1050, 266, 28, 1, + 0, 1, 255, 3025, 7770, 6951, 2646, 462, 36, 1] + assert stirling(3, 4, kind=1) == stirling(3, 4, kind=1) == 0 + raises(ValueError, lambda: stirling(-2, 2)) + + # Assertion that the return type is SymPy Integer. + assert isinstance(_stirling1(6, 3), Integer) + assert isinstance(_stirling2(6, 3), Integer) + + def delta(p): + if len(p) == 1: + return oo + return min(abs(i[0] - i[1]) for i in subsets(p, 2)) + parts = multiset_partitions(range(5), 3) + d = 2 + assert (sum(1 for p in parts if all(delta(i) >= d for i in p)) == + stirling(5, 3, d=d) == 7) + + # other coverage tests + assert nC('abb', 2) == nC('aab', 2) == 2 + assert nP(3, 3, replacement=True) == nP('aabc', 3, replacement=True) == 27 + assert nP(3, 4) == 0 + assert nP('aabc', 5) == 0 + assert nC(4, 2, replacement=True) == nC('abcdd', 2, replacement=True) == \ + len(list(multiset_combinations('aabbccdd', 2))) == 10 + assert nC('abcdd') == sum(nC('abcdd', i) for i in range(6)) == 24 + assert nC(list('abcdd'), 4) == 4 + assert nT('aaaa') == nT(4) == len(list(partitions(4))) == 5 + assert nT('aaab') == len(list(multiset_partitions('aaab'))) == 7 + assert nC('aabb'*3, 3) == 4 # aaa, bbb, abb, baa + assert dict(_AOP_product((4,1,1,1))) == { + 0: 1, 1: 4, 2: 7, 3: 8, 4: 8, 5: 7, 6: 4, 7: 1} + # the following was the first t that showed a problem in a previous form of + # the function, so it's not as random as it may appear + t = (3, 9, 4, 6, 6, 5, 5, 2, 10, 4) + assert sum(_AOP_product(t)[i] for i in range(55)) == 58212000 + raises(ValueError, lambda: _multiset_histogram({1:'a'})) + + +def test_PR_14617(): + from sympy.functions.combinatorial.numbers import nT + for n in (0, []): + for k in (-1, 0, 1): + if k == 0: + assert nT(n, k) == 1 + else: + assert nT(n, k) == 0 + + +def test_issue_8496(): + n = Symbol("n") + k = Symbol("k") + + raises(TypeError, lambda: catalan(n, k)) + + +def test_issue_8601(): + n = Symbol('n', integer=True, negative=True) + + assert catalan(n - 1) is S.Zero + assert catalan(Rational(-1, 2)) is S.ComplexInfinity + assert catalan(-S.One) == Rational(-1, 2) + c1 = catalan(-5.6).evalf() + assert str(c1) == '6.93334070531408e-5' + c2 = catalan(-35.4).evalf() + assert str(c2) == '-4.14189164517449e-24' + + +def test_motzkin(): + assert motzkin.is_motzkin(4) == True + assert motzkin.is_motzkin(9) == True + assert motzkin.is_motzkin(10) == False + assert motzkin.find_motzkin_numbers_in_range(10,200) == [21, 51, 127] + assert motzkin.find_motzkin_numbers_in_range(10,400) == [21, 51, 127, 323] + assert motzkin.find_motzkin_numbers_in_range(10,1600) == [21, 51, 127, 323, 835] + assert motzkin.find_first_n_motzkins(5) == [1, 1, 2, 4, 9] + assert motzkin.find_first_n_motzkins(7) == [1, 1, 2, 4, 9, 21, 51] + assert motzkin.find_first_n_motzkins(10) == [1, 1, 2, 4, 9, 21, 51, 127, 323, 835] + raises(ValueError, lambda: motzkin.eval(77.58)) + raises(ValueError, lambda: motzkin.eval(-8)) + raises(ValueError, lambda: motzkin.find_motzkin_numbers_in_range(-2,7)) + raises(ValueError, lambda: motzkin.find_motzkin_numbers_in_range(13,7)) + raises(ValueError, lambda: motzkin.find_first_n_motzkins(112.8)) + + +def test_nD_derangements(): + from sympy.utilities.iterables import (partitions, multiset, + multiset_derangements, multiset_permutations) + from sympy.functions.combinatorial.numbers import nD + + got = [] + for i in partitions(8, k=4): + s = [] + it = 0 + for k, v in i.items(): + for i in range(v): + s.extend([it]*k) + it += 1 + ms = multiset(s) + c1 = sum(1 for i in multiset_permutations(s) if + all(i != j for i, j in zip(i, s))) + assert c1 == nD(ms) == nD(ms, 0) == nD(ms, 1) + v = [tuple(i) for i in multiset_derangements(s)] + c2 = len(v) + assert c2 == len(set(v)) + assert c1 == c2 + got.append(c1) + assert got == [1, 4, 6, 12, 24, 24, 61, 126, 315, 780, 297, 772, + 2033, 5430, 14833] + + assert nD('1112233456', brute=True) == nD('1112233456') == 16356 + assert nD('') == nD([]) == nD({}) == 0 + assert nD({1: 0}) == 0 + raises(ValueError, lambda: nD({1: -1})) + assert nD('112') == 0 + assert nD(i='112') == 0 + assert [nD(n=i) for i in range(6)] == [0, 0, 1, 2, 9, 44] + assert nD((i for i in range(4))) == nD('0123') == 9 + assert nD(m=(i for i in range(4))) == 3 + assert nD(m={0: 1, 1: 1, 2: 1, 3: 1}) == 3 + assert nD(m=[0, 1, 2, 3]) == 3 + raises(TypeError, lambda: nD(m=0)) + raises(TypeError, lambda: nD(-1)) + assert nD({-1: 1, -2: 1}) == 1 + assert nD(m={0: 3}) == 0 + raises(ValueError, lambda: nD(i='123', n=3)) + raises(ValueError, lambda: nD(i='123', m=(1,2))) + raises(ValueError, lambda: nD(n=0, m=(1,2))) + raises(ValueError, lambda: nD({1: -1})) + raises(ValueError, lambda: nD(m={-1: 1, 2: 1})) + raises(ValueError, lambda: nD(m={1: -1, 2: 1})) + raises(ValueError, lambda: nD(m=[-1, 2])) + raises(TypeError, lambda: nD({1: x})) + raises(TypeError, lambda: nD(m={1: x})) + raises(TypeError, lambda: nD(m={x: 1})) diff --git a/shared/package-files/08/08ea83077299fd21f6a14a1c9ba90da7d66162b6506d07c4471c4096ad8f1cd8/LICENSE.txt b/shared/package-files/08/08ea83077299fd21f6a14a1c9ba90da7d66162b6506d07c4471c4096ad8f1cd8/LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..68b8104db50f9210e5d83e3c0702f87351189871 --- /dev/null +++ b/shared/package-files/08/08ea83077299fd21f6a14a1c9ba90da7d66162b6506d07c4471c4096ad8f1cd8/LICENSE.txt @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2009 Agendaless Consulting, Inc. + +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/08/08ec1d9800855d7ba9307ed55447f92661e7a9582824c7bcd58b8a44222e3191/bdist_wheel.py b/shared/package-files/08/08ec1d9800855d7ba9307ed55447f92661e7a9582824c7bcd58b8a44222e3191/bdist_wheel.py new file mode 100644 index 0000000000000000000000000000000000000000..586d876b08d6e729b6bc5365abfaf1b117331c2d --- /dev/null +++ b/shared/package-files/08/08ec1d9800855d7ba9307ed55447f92661e7a9582824c7bcd58b8a44222e3191/bdist_wheel.py @@ -0,0 +1,593 @@ +""" +Create a wheel (.whl) distribution. + +A wheel is a built archive format. +""" + +from __future__ import annotations + +import os +import re +import shutil +import stat +import struct +import sys +import sysconfig +import warnings +from email.generator import BytesGenerator, Generator +from email.policy import EmailPolicy +from glob import iglob +from io import BytesIO +from shutil import rmtree +from zipfile import ZIP_DEFLATED, ZIP_STORED + +import setuptools +from setuptools import Command + +from . import __version__ as wheel_version +from .macosx_libfile import calculate_macosx_platform_tag +from .metadata import pkginfo_to_metadata +from .util import log +from .vendored.packaging import tags +from .vendored.packaging import version as _packaging_version +from .wheelfile import WheelFile + + +def safe_name(name): + """Convert an arbitrary string to a standard distribution name + Any runs of non-alphanumeric/. characters are replaced with a single '-'. + """ + return re.sub("[^A-Za-z0-9.]+", "-", name) + + +def safe_version(version): + """ + Convert an arbitrary string to a standard version string + """ + try: + # normalize the version + return str(_packaging_version.Version(version)) + except _packaging_version.InvalidVersion: + version = version.replace(" ", ".") + return re.sub("[^A-Za-z0-9.]+", "-", version) + + +setuptools_major_version = int(setuptools.__version__.split(".")[0]) + +PY_LIMITED_API_PATTERN = r"cp3\d" + + +def _is_32bit_interpreter(): + return struct.calcsize("P") == 4 + + +def python_tag(): + return f"py{sys.version_info[0]}" + + +def get_platform(archive_root): + """Return our platform name 'win32', 'linux_x86_64'""" + result = sysconfig.get_platform() + if result.startswith("macosx") and archive_root is not None: + result = calculate_macosx_platform_tag(archive_root, result) + elif _is_32bit_interpreter(): + if result == "linux-x86_64": + # pip pull request #3497 + result = "linux-i686" + elif result == "linux-aarch64": + # packaging pull request #234 + # TODO armv8l, packaging pull request #690 => this did not land + # in pip/packaging yet + result = "linux-armv7l" + + return result.replace("-", "_") + + +def get_flag(var, fallback, expected=True, warn=True): + """Use a fallback value for determining SOABI flags if the needed config + var is unset or unavailable.""" + val = sysconfig.get_config_var(var) + if val is None: + if warn: + warnings.warn( + f"Config variable '{var}' is unset, Python ABI tag may " "be incorrect", + RuntimeWarning, + stacklevel=2, + ) + return fallback + return val == expected + + +def get_abi_tag(): + """Return the ABI tag based on SOABI (if available) or emulate SOABI (PyPy2).""" + soabi = sysconfig.get_config_var("SOABI") + impl = tags.interpreter_name() + if not soabi and impl in ("cp", "pp") and hasattr(sys, "maxunicode"): + d = "" + m = "" + u = "" + if get_flag("Py_DEBUG", hasattr(sys, "gettotalrefcount"), warn=(impl == "cp")): + d = "d" + + if get_flag( + "WITH_PYMALLOC", + impl == "cp", + warn=(impl == "cp" and sys.version_info < (3, 8)), + ) and sys.version_info < (3, 8): + m = "m" + + abi = f"{impl}{tags.interpreter_version()}{d}{m}{u}" + elif soabi and impl == "cp": + abi = "cp" + soabi.split("-")[1] + elif soabi and impl == "pp": + # we want something like pypy36-pp73 + abi = "-".join(soabi.split("-")[:2]) + abi = abi.replace(".", "_").replace("-", "_") + elif soabi and impl == "graalpy": + abi = "-".join(soabi.split("-")[:3]) + abi = abi.replace(".", "_").replace("-", "_") + elif soabi: + abi = soabi.replace(".", "_").replace("-", "_") + else: + abi = None + + return abi + + +def safer_name(name): + return safe_name(name).replace("-", "_") + + +def safer_version(version): + return safe_version(version).replace("-", "_") + + +def remove_readonly(func, path, excinfo): + remove_readonly_exc(func, path, excinfo[1]) + + +def remove_readonly_exc(func, path, exc): + os.chmod(path, stat.S_IWRITE) + func(path) + + +class bdist_wheel(Command): + description = "create a wheel distribution" + + supported_compressions = { + "stored": ZIP_STORED, + "deflated": ZIP_DEFLATED, + } + + user_options = [ + ("bdist-dir=", "b", "temporary directory for creating the distribution"), + ( + "plat-name=", + "p", + "platform name to embed in generated filenames " + "(default: %s)" % get_platform(None), + ), + ( + "keep-temp", + "k", + "keep the pseudo-installation tree around after " + "creating the distribution archive", + ), + ("dist-dir=", "d", "directory to put final built distributions in"), + ("skip-build", None, "skip rebuilding everything (for testing/debugging)"), + ( + "relative", + None, + "build the archive using relative paths " "(default: false)", + ), + ( + "owner=", + "u", + "Owner name used when creating a tar file" " [default: current user]", + ), + ( + "group=", + "g", + "Group name used when creating a tar file" " [default: current group]", + ), + ("universal", None, "make a universal wheel" " (default: false)"), + ( + "compression=", + None, + "zipfile compression (one of: {})" + " (default: 'deflated')".format(", ".join(supported_compressions)), + ), + ( + "python-tag=", + None, + "Python implementation compatibility tag" + " (default: '%s')" % (python_tag()), + ), + ( + "build-number=", + None, + "Build number for this particular version. " + "As specified in PEP-0427, this must start with a digit. " + "[default: None]", + ), + ( + "py-limited-api=", + None, + "Python tag (cp32|cp33|cpNN) for abi3 wheel tag" " (default: false)", + ), + ] + + boolean_options = ["keep-temp", "skip-build", "relative", "universal"] + + def initialize_options(self): + self.bdist_dir = None + self.data_dir = None + self.plat_name = None + self.plat_tag = None + self.format = "zip" + self.keep_temp = False + self.dist_dir = None + self.egginfo_dir = None + self.root_is_pure = None + self.skip_build = None + self.relative = False + self.owner = None + self.group = None + self.universal = False + self.compression = "deflated" + self.python_tag = python_tag() + self.build_number = None + self.py_limited_api = False + self.plat_name_supplied = False + + def finalize_options(self): + if self.bdist_dir is None: + bdist_base = self.get_finalized_command("bdist").bdist_base + self.bdist_dir = os.path.join(bdist_base, "wheel") + + egg_info = self.distribution.get_command_obj("egg_info") + egg_info.ensure_finalized() # needed for correct `wheel_dist_name` + + self.data_dir = self.wheel_dist_name + ".data" + self.plat_name_supplied = self.plat_name is not None + + try: + self.compression = self.supported_compressions[self.compression] + except KeyError: + raise ValueError(f"Unsupported compression: {self.compression}") from None + + need_options = ("dist_dir", "plat_name", "skip_build") + + self.set_undefined_options("bdist", *zip(need_options, need_options)) + + self.root_is_pure = not ( + self.distribution.has_ext_modules() or self.distribution.has_c_libraries() + ) + + if self.py_limited_api and not re.match( + PY_LIMITED_API_PATTERN, self.py_limited_api + ): + raise ValueError("py-limited-api must match '%s'" % PY_LIMITED_API_PATTERN) + + # Support legacy [wheel] section for setting universal + wheel = self.distribution.get_option_dict("wheel") + if "universal" in wheel: + # please don't define this in your global configs + log.warning( + "The [wheel] section is deprecated. Use [bdist_wheel] instead.", + ) + val = wheel["universal"][1].strip() + if val.lower() in ("1", "true", "yes"): + self.universal = True + + if self.build_number is not None and not self.build_number[:1].isdigit(): + raise ValueError("Build tag (build-number) must start with a digit.") + + @property + def wheel_dist_name(self): + """Return distribution full name with - replaced with _""" + components = ( + safer_name(self.distribution.get_name()), + safer_version(self.distribution.get_version()), + ) + if self.build_number: + components += (self.build_number,) + return "-".join(components) + + def get_tag(self): + # bdist sets self.plat_name if unset, we should only use it for purepy + # wheels if the user supplied it. + if self.plat_name_supplied: + plat_name = self.plat_name + elif self.root_is_pure: + plat_name = "any" + else: + # macosx contains system version in platform name so need special handle + if self.plat_name and not self.plat_name.startswith("macosx"): + plat_name = self.plat_name + else: + # on macosx always limit the platform name to comply with any + # c-extension modules in bdist_dir, since the user can specify + # a higher MACOSX_DEPLOYMENT_TARGET via tools like CMake + + # on other platforms, and on macosx if there are no c-extension + # modules, use the default platform name. + plat_name = get_platform(self.bdist_dir) + + if _is_32bit_interpreter(): + if plat_name in ("linux-x86_64", "linux_x86_64"): + plat_name = "linux_i686" + if plat_name in ("linux-aarch64", "linux_aarch64"): + # TODO armv8l, packaging pull request #690 => this did not land + # in pip/packaging yet + plat_name = "linux_armv7l" + + plat_name = ( + plat_name.lower().replace("-", "_").replace(".", "_").replace(" ", "_") + ) + + if self.root_is_pure: + if self.universal: + impl = "py2.py3" + else: + impl = self.python_tag + tag = (impl, "none", plat_name) + else: + impl_name = tags.interpreter_name() + impl_ver = tags.interpreter_version() + impl = impl_name + impl_ver + # We don't work on CPython 3.1, 3.0. + if self.py_limited_api and (impl_name + impl_ver).startswith("cp3"): + impl = self.py_limited_api + abi_tag = "abi3" + else: + abi_tag = str(get_abi_tag()).lower() + tag = (impl, abi_tag, plat_name) + # issue gh-374: allow overriding plat_name + supported_tags = [ + (t.interpreter, t.abi, plat_name) for t in tags.sys_tags() + ] + assert ( + tag in supported_tags + ), f"would build wheel with unsupported tag {tag}" + return tag + + def run(self): + build_scripts = self.reinitialize_command("build_scripts") + build_scripts.executable = "python" + build_scripts.force = True + + build_ext = self.reinitialize_command("build_ext") + build_ext.inplace = False + + if not self.skip_build: + self.run_command("build") + + install = self.reinitialize_command("install", reinit_subcommands=True) + install.root = self.bdist_dir + install.compile = False + install.skip_build = self.skip_build + install.warn_dir = False + + # A wheel without setuptools scripts is more cross-platform. + # Use the (undocumented) `no_ep` option to setuptools' + # install_scripts command to avoid creating entry point scripts. + install_scripts = self.reinitialize_command("install_scripts") + install_scripts.no_ep = True + + # Use a custom scheme for the archive, because we have to decide + # at installation time which scheme to use. + for key in ("headers", "scripts", "data", "purelib", "platlib"): + setattr(install, "install_" + key, os.path.join(self.data_dir, key)) + + basedir_observed = "" + + if os.name == "nt": + # win32 barfs if any of these are ''; could be '.'? + # (distutils.command.install:change_roots bug) + basedir_observed = os.path.normpath(os.path.join(self.data_dir, "..")) + self.install_libbase = self.install_lib = basedir_observed + + setattr( + install, + "install_purelib" if self.root_is_pure else "install_platlib", + basedir_observed, + ) + + log.info(f"installing to {self.bdist_dir}") + + self.run_command("install") + + impl_tag, abi_tag, plat_tag = self.get_tag() + archive_basename = f"{self.wheel_dist_name}-{impl_tag}-{abi_tag}-{plat_tag}" + if not self.relative: + archive_root = self.bdist_dir + else: + archive_root = os.path.join( + self.bdist_dir, self._ensure_relative(install.install_base) + ) + + self.set_undefined_options("install_egg_info", ("target", "egginfo_dir")) + distinfo_dirname = "{}-{}.dist-info".format( + safer_name(self.distribution.get_name()), + safer_version(self.distribution.get_version()), + ) + distinfo_dir = os.path.join(self.bdist_dir, distinfo_dirname) + self.egg2dist(self.egginfo_dir, distinfo_dir) + + self.write_wheelfile(distinfo_dir) + + # Make the archive + if not os.path.exists(self.dist_dir): + os.makedirs(self.dist_dir) + + wheel_path = os.path.join(self.dist_dir, archive_basename + ".whl") + with WheelFile(wheel_path, "w", self.compression) as wf: + wf.write_files(archive_root) + + # Add to 'Distribution.dist_files' so that the "upload" command works + getattr(self.distribution, "dist_files", []).append( + ( + "bdist_wheel", + "{}.{}".format(*sys.version_info[:2]), # like 3.7 + wheel_path, + ) + ) + + if not self.keep_temp: + log.info(f"removing {self.bdist_dir}") + if not self.dry_run: + if sys.version_info < (3, 12): + rmtree(self.bdist_dir, onerror=remove_readonly) + else: + rmtree(self.bdist_dir, onexc=remove_readonly_exc) + + def write_wheelfile( + self, wheelfile_base, generator="bdist_wheel (" + wheel_version + ")" + ): + from email.message import Message + + msg = Message() + msg["Wheel-Version"] = "1.0" # of the spec + msg["Generator"] = generator + msg["Root-Is-Purelib"] = str(self.root_is_pure).lower() + if self.build_number is not None: + msg["Build"] = self.build_number + + # Doesn't work for bdist_wininst + impl_tag, abi_tag, plat_tag = self.get_tag() + for impl in impl_tag.split("."): + for abi in abi_tag.split("."): + for plat in plat_tag.split("."): + msg["Tag"] = "-".join((impl, abi, plat)) + + wheelfile_path = os.path.join(wheelfile_base, "WHEEL") + log.info(f"creating {wheelfile_path}") + buffer = BytesIO() + BytesGenerator(buffer, maxheaderlen=0).flatten(msg) + with open(wheelfile_path, "wb") as f: + f.write(buffer.getvalue().replace(b"\r\n", b"\r")) + + def _ensure_relative(self, path): + # copied from dir_util, deleted + drive, path = os.path.splitdrive(path) + if path[0:1] == os.sep: + path = drive + path[1:] + return path + + @property + def license_paths(self): + if setuptools_major_version >= 57: + # Setuptools has resolved any patterns to actual file names + return self.distribution.metadata.license_files or () + + files = set() + metadata = self.distribution.get_option_dict("metadata") + if setuptools_major_version >= 42: + # Setuptools recognizes the license_files option but does not do globbing + patterns = self.distribution.metadata.license_files + else: + # Prior to those, wheel is entirely responsible for handling license files + if "license_files" in metadata: + patterns = metadata["license_files"][1].split() + else: + patterns = () + + if "license_file" in metadata: + warnings.warn( + 'The "license_file" option is deprecated. Use "license_files" instead.', + DeprecationWarning, + stacklevel=2, + ) + files.add(metadata["license_file"][1]) + + if not files and not patterns and not isinstance(patterns, list): + patterns = ("LICEN[CS]E*", "COPYING*", "NOTICE*", "AUTHORS*") + + for pattern in patterns: + for path in iglob(pattern): + if path.endswith("~"): + log.debug( + f'ignoring license file "{path}" as it looks like a backup' + ) + continue + + if path not in files and os.path.isfile(path): + log.info( + f'adding license file "{path}" (matched pattern "{pattern}")' + ) + files.add(path) + + return files + + def egg2dist(self, egginfo_path, distinfo_path): + """Convert an .egg-info directory into a .dist-info directory""" + + def adios(p): + """Appropriately delete directory, file or link.""" + if os.path.exists(p) and not os.path.islink(p) and os.path.isdir(p): + shutil.rmtree(p) + elif os.path.exists(p): + os.unlink(p) + + adios(distinfo_path) + + if not os.path.exists(egginfo_path): + # There is no egg-info. This is probably because the egg-info + # file/directory is not named matching the distribution name used + # to name the archive file. Check for this case and report + # accordingly. + import glob + + pat = os.path.join(os.path.dirname(egginfo_path), "*.egg-info") + possible = glob.glob(pat) + err = f"Egg metadata expected at {egginfo_path} but not found" + if possible: + alt = os.path.basename(possible[0]) + err += f" ({alt} found - possible misnamed archive file?)" + + raise ValueError(err) + + if os.path.isfile(egginfo_path): + # .egg-info is a single file + pkginfo_path = egginfo_path + pkg_info = pkginfo_to_metadata(egginfo_path, egginfo_path) + os.mkdir(distinfo_path) + else: + # .egg-info is a directory + pkginfo_path = os.path.join(egginfo_path, "PKG-INFO") + pkg_info = pkginfo_to_metadata(egginfo_path, pkginfo_path) + + # ignore common egg metadata that is useless to wheel + shutil.copytree( + egginfo_path, + distinfo_path, + ignore=lambda x, y: { + "PKG-INFO", + "requires.txt", + "SOURCES.txt", + "not-zip-safe", + }, + ) + + # delete dependency_links if it is only whitespace + dependency_links_path = os.path.join(distinfo_path, "dependency_links.txt") + with open(dependency_links_path, encoding="utf-8") as dependency_links_file: + dependency_links = dependency_links_file.read().strip() + if not dependency_links: + adios(dependency_links_path) + + pkg_info_path = os.path.join(distinfo_path, "METADATA") + serialization_policy = EmailPolicy( + utf8=True, + mangle_from_=False, + max_line_length=0, + ) + with open(pkg_info_path, "w", encoding="utf-8") as out: + Generator(out, policy=serialization_policy).flatten(pkg_info) + + for license_path in self.license_paths: + filename = os.path.basename(license_path) + shutil.copy(license_path, os.path.join(distinfo_path, filename)) + + adios(egginfo_path) diff --git a/shared/package-files/08/08f563075f3eab9ba6d200d8f48cca4e9fbd5b2270092b811e359d9c3237caa6/iris-ansi b/shared/package-files/08/08f563075f3eab9ba6d200d8f48cca4e9fbd5b2270092b811e359d9c3237caa6/iris-ansi new file mode 100644 index 0000000000000000000000000000000000000000..f011423b4136aa8340ee948e83cd7e6a37d16543 Binary files /dev/null and b/shared/package-files/08/08f563075f3eab9ba6d200d8f48cca4e9fbd5b2270092b811e359d9c3237caa6/iris-ansi differ diff --git a/shared/package-files/08/08f563075f3eab9ba6d200d8f48cca4e9fbd5b2270092b811e359d9c3237caa6/iris-ansi-net b/shared/package-files/08/08f563075f3eab9ba6d200d8f48cca4e9fbd5b2270092b811e359d9c3237caa6/iris-ansi-net new file mode 100644 index 0000000000000000000000000000000000000000..f011423b4136aa8340ee948e83cd7e6a37d16543 Binary files /dev/null and b/shared/package-files/08/08f563075f3eab9ba6d200d8f48cca4e9fbd5b2270092b811e359d9c3237caa6/iris-ansi-net differ diff --git a/shared/package-files/08/08ff644bca4315de17c8941d808941a77a53217f66343d4bbe1f39adee080bcc/builder_base.h b/shared/package-files/08/08ff644bca4315de17c8941d808941a77a53217f66343d4bbe1f39adee080bcc/builder_base.h new file mode 100644 index 0000000000000000000000000000000000000000..ecd2136f5d20ba126bd359977ea17f76c4fe23ed --- /dev/null +++ b/shared/package-files/08/08ff644bca4315de17c8941d808941a77a53217f66343d4bbe1f39adee080bcc/builder_base.h @@ -0,0 +1,371 @@ +// 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: keep +#include +#include +#include +#include +#include + +#include "arrow/array/array_base.h" +#include "arrow/array/array_primitive.h" +#include "arrow/buffer.h" +#include "arrow/buffer_builder.h" +#include "arrow/result.h" +#include "arrow/status.h" +#include "arrow/type_fwd.h" +#include "arrow/util/macros.h" +#include "arrow/util/visibility.h" + +namespace arrow { + +namespace internal { + +template +class ArrayBuilderExtraOps { + public: + /// \brief Append a value from an optional or null if it has no value. + Status AppendOrNull(const std::optional& value) { + auto* self = static_cast(this); + return value.has_value() ? self->Append(*value) : self->AppendNull(); + } + + /// \brief Append a value from an optional or null if it has no value. + /// + /// Unsafe methods don't check existing size. + void UnsafeAppendOrNull(const std::optional& value) { + auto* self = static_cast(this); + return value.has_value() ? self->UnsafeAppend(*value) : self->UnsafeAppendNull(); + } +}; + +} // namespace internal + +/// \defgroup numeric-builders Concrete builder subclasses for numeric types +/// @{ +/// @} + +/// \defgroup temporal-builders Concrete builder subclasses for temporal types +/// @{ +/// @} + +/// \defgroup binary-builders Concrete builder subclasses for binary types +/// @{ +/// @} + +/// \defgroup nested-builders Concrete builder subclasses for nested types +/// @{ +/// @} + +/// \defgroup dictionary-builders Concrete builder subclasses for dictionary types +/// @{ +/// @} + +/// \defgroup run-end-encoded-builders Concrete builder subclasses for run-end encoded +/// arrays +/// @{ +/// @} + +constexpr int64_t kMinBuilderCapacity = 1 << 5; +constexpr int64_t kListMaximumElements = std::numeric_limits::max() - 1; + +/// Base class for all data array builders. +/// +/// This class provides a facilities for incrementally building the null bitmap +/// (see Append methods) and as a side effect the current number of slots and +/// the null count. +/// +/// \note Users are expected to use builders as one of the concrete types below. +/// For example, ArrayBuilder* pointing to BinaryBuilder should be downcast before use. +class ARROW_EXPORT ArrayBuilder { + public: + explicit ArrayBuilder(MemoryPool* pool, int64_t alignment = kDefaultBufferAlignment) + : pool_(pool), alignment_(alignment), null_bitmap_builder_(pool, alignment) {} + + ARROW_DEFAULT_MOVE_AND_ASSIGN(ArrayBuilder); + + virtual ~ArrayBuilder() = default; + + /// For nested types. Since the objects are owned by this class instance, we + /// skip shared pointers and just return a raw pointer + ArrayBuilder* child(int i) { return children_[i].get(); } + + const std::shared_ptr& child_builder(int i) const { return children_[i]; } + + int num_children() const { return static_cast(children_.size()); } + + virtual int64_t length() const { return length_; } + int64_t null_count() const { return null_count_; } + int64_t capacity() const { return capacity_; } + + /// \brief Ensure that enough memory has been allocated to fit the indicated + /// number of total elements in the builder, including any that have already + /// been appended. Does not account for reallocations that may be due to + /// variable size data, like binary values. To make space for incremental + /// appends, use Reserve instead. + /// + /// \param[in] capacity the minimum number of total array values to + /// accommodate. Must be greater than the current capacity. + /// \return Status + virtual Status Resize(int64_t capacity); + + /// \brief Ensure that there is enough space allocated to append the indicated + /// number of elements without any further reallocation. Overallocation is + /// used in order to minimize the impact of incremental Reserve() calls. + /// Note that additional_capacity is relative to the current number of elements + /// rather than to the current capacity, so calls to Reserve() which are not + /// interspersed with addition of new elements may not increase the capacity. + /// + /// \param[in] additional_capacity the number of additional array values + /// \return Status + Status Reserve(int64_t additional_capacity) { + auto current_capacity = capacity(); + auto min_capacity = length() + additional_capacity; + if (min_capacity <= current_capacity) return Status::OK(); + + // leave growth factor up to BufferBuilder + auto new_capacity = BufferBuilder::GrowByFactor(current_capacity, min_capacity); + return Resize(new_capacity); + } + + /// Reset the builder. + virtual void Reset(); + + /// \brief Append a null value to builder + virtual Status AppendNull() = 0; + /// \brief Append a number of null values to builder + virtual Status AppendNulls(int64_t length) = 0; + + /// \brief Append a non-null value to builder + /// + /// The appended value is an implementation detail, but the corresponding + /// memory slot is guaranteed to be initialized. + /// This method is useful when appending a null value to a parent nested type. + virtual Status AppendEmptyValue() = 0; + + /// \brief Append a number of non-null values to builder + /// + /// The appended values are an implementation detail, but the corresponding + /// memory slot is guaranteed to be initialized. + /// This method is useful when appending null values to a parent nested type. + virtual Status AppendEmptyValues(int64_t length) = 0; + + /// \brief Append a value from a scalar + Status AppendScalar(const Scalar& scalar) { return AppendScalar(scalar, 1); } + virtual Status AppendScalar(const Scalar& scalar, int64_t n_repeats); + virtual Status AppendScalars(const ScalarVector& scalars); + + /// \brief Append a range of values from an array. + /// + /// The given array must be the same type as the builder. + virtual Status AppendArraySlice(const ArraySpan& ARROW_ARG_UNUSED(array), + int64_t ARROW_ARG_UNUSED(offset), + int64_t ARROW_ARG_UNUSED(length)) { + return Status::NotImplemented("AppendArraySlice for builder for ", *type()); + } + + /// \brief Return result of builder as an internal generic ArrayData + /// object. Resets builder except for dictionary builder + /// + /// \param[out] out the finalized ArrayData object + /// \return Status + virtual Status FinishInternal(std::shared_ptr* out) = 0; + + /// \brief Return result of builder as an Array object. + /// + /// The builder is reset except for DictionaryBuilder. + /// + /// \param[out] out the finalized Array object + /// \return Status + Status Finish(std::shared_ptr* out); + + /// \brief Return result of builder as an Array object. + /// + /// The builder is reset except for DictionaryBuilder. + /// + /// \return The finalized Array object + Result> Finish(); + + /// \brief Return the type of the built Array + virtual std::shared_ptr type() const = 0; + + protected: + /// Append to null bitmap + Status AppendToBitmap(bool is_valid); + + /// Vector append. Treat each zero byte as a null. If valid_bytes is null + /// assume all of length bits are valid. + Status AppendToBitmap(const uint8_t* valid_bytes, int64_t length); + + /// Uniform append. Append N times the same validity bit. + Status AppendToBitmap(int64_t num_bits, bool value); + + /// Set the next length bits to not null (i.e. valid). + Status SetNotNull(int64_t length); + + // Unsafe operations (don't check capacity/don't resize) + + void UnsafeAppendNull() { UnsafeAppendToBitmap(false); } + + // Append to null bitmap, update the length + void UnsafeAppendToBitmap(bool is_valid) { + null_bitmap_builder_.UnsafeAppend(is_valid); + ++length_; + if (!is_valid) ++null_count_; + } + + // Vector append. Treat each zero byte as a nullzero. If valid_bytes is null + // assume all of length bits are valid. + void UnsafeAppendToBitmap(const uint8_t* valid_bytes, int64_t length) { + if (valid_bytes == NULLPTR) { + return UnsafeSetNotNull(length); + } + null_bitmap_builder_.UnsafeAppend(valid_bytes, length); + length_ += length; + null_count_ = null_bitmap_builder_.false_count(); + } + + // Vector append. Copy from a given bitmap. If bitmap is null assume + // all of length bits are valid. + void UnsafeAppendToBitmap(const uint8_t* bitmap, int64_t offset, int64_t length) { + if (bitmap == NULLPTR) { + return UnsafeSetNotNull(length); + } + null_bitmap_builder_.UnsafeAppend(bitmap, offset, length); + length_ += length; + null_count_ = null_bitmap_builder_.false_count(); + } + + // Append the same validity value a given number of times. + void UnsafeAppendToBitmap(const int64_t num_bits, bool value) { + if (value) { + UnsafeSetNotNull(num_bits); + } else { + UnsafeSetNull(num_bits); + } + } + + void UnsafeAppendToBitmap(const std::vector& is_valid); + + // Set the next validity bits to not null (i.e. valid). + void UnsafeSetNotNull(int64_t length); + + // Set the next validity bits to null (i.e. invalid). + void UnsafeSetNull(int64_t length); + + static Status TrimBuffer(const int64_t bytes_filled, ResizableBuffer* buffer); + + /// \brief Finish to an array of the specified ArrayType + template + Status FinishTyped(std::shared_ptr* out) { + std::shared_ptr out_untyped; + ARROW_RETURN_NOT_OK(Finish(&out_untyped)); + *out = std::static_pointer_cast(std::move(out_untyped)); + return Status::OK(); + } + + // Check the requested capacity for validity + Status CheckCapacity(int64_t new_capacity) { + if (ARROW_PREDICT_FALSE(new_capacity < 0)) { + return Status::Invalid( + "Resize capacity must be positive (requested: ", new_capacity, ")"); + } + + if (ARROW_PREDICT_FALSE(new_capacity < length_)) { + return Status::Invalid("Resize cannot downsize (requested: ", new_capacity, + ", current length: ", length_, ")"); + } + + return Status::OK(); + } + + // Check for array type + Status CheckArrayType(const std::shared_ptr& expected_type, + const Array& array, const char* message); + Status CheckArrayType(Type::type expected_type, const Array& array, + const char* message); + + MemoryPool* pool_; + int64_t alignment_; + + TypedBufferBuilder null_bitmap_builder_; + int64_t null_count_ = 0; + + // Array length, so far. Also, the index of the next element to be added + int64_t length_ = 0; + int64_t capacity_ = 0; + + // Child value array builders. These are owned by this class + std::vector> children_; + + private: + ARROW_DISALLOW_COPY_AND_ASSIGN(ArrayBuilder); +}; + +/// \brief Construct an empty ArrayBuilder corresponding to the data +/// type +/// \param[in] pool the MemoryPool to use for allocations +/// \param[in] type the data type to create the builder for +/// \param[out] out the created ArrayBuilder +ARROW_EXPORT +Status MakeBuilder(MemoryPool* pool, const std::shared_ptr& type, + std::unique_ptr* out); + +inline Result> MakeBuilder( + const std::shared_ptr& type, MemoryPool* pool = default_memory_pool()) { + std::unique_ptr out; + ARROW_RETURN_NOT_OK(MakeBuilder(pool, type, &out)); + return out; +} + +/// \brief Construct an empty ArrayBuilder corresponding to the data +/// type, where any top-level or nested dictionary builders return the +/// exact index type specified by the type. +ARROW_EXPORT +Status MakeBuilderExactIndex(MemoryPool* pool, const std::shared_ptr& type, + std::unique_ptr* out); + +inline Result> MakeBuilderExactIndex( + const std::shared_ptr& type, MemoryPool* pool = default_memory_pool()) { + std::unique_ptr out; + ARROW_RETURN_NOT_OK(MakeBuilderExactIndex(pool, type, &out)); + return out; +} + +/// \brief Construct an empty DictionaryBuilder initialized optionally +/// with a preexisting dictionary +/// \param[in] pool the MemoryPool to use for allocations +/// \param[in] type the dictionary type to create the builder for +/// \param[in] dictionary the initial dictionary, if any. May be nullptr +/// \param[out] out the created ArrayBuilder +ARROW_EXPORT +Status MakeDictionaryBuilder(MemoryPool* pool, const std::shared_ptr& type, + const std::shared_ptr& dictionary, + std::unique_ptr* out); + +inline Result> MakeDictionaryBuilder( + const std::shared_ptr& type, const std::shared_ptr& dictionary, + MemoryPool* pool = default_memory_pool()) { + std::unique_ptr out; + ARROW_RETURN_NOT_OK(MakeDictionaryBuilder(pool, type, dictionary, &out)); + return out; +} + +} // namespace arrow diff --git a/shared/package-files/0a/0a032a9f949ded654938328a7949425ced3d602fa61ee191851f7b716fa512d5/randint_like_ops.h b/shared/package-files/0a/0a032a9f949ded654938328a7949425ced3d602fa61ee191851f7b716fa512d5/randint_like_ops.h new file mode 100644 index 0000000000000000000000000000000000000000..3df082405352489d96a7744348b466a84231a459 --- /dev/null +++ b/shared/package-files/0a/0a032a9f949ded654938328a7949425ced3d602fa61ee191851f7b716fa512d5/randint_like_ops.h @@ -0,0 +1,61 @@ +#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 randint_like { + using schema = at::Tensor (const at::Tensor &, c10::SymInt, 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::randint_like") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "randint_like(Tensor self, SymInt high, *, 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, c10::SymInt high, 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, c10::SymInt high, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory, c10::optional memory_format); +}; + +struct TORCH_API randint_like_low_dtype { + using schema = at::Tensor (const at::Tensor &, c10::SymInt, c10::SymInt, 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::randint_like") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "low_dtype") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "randint_like.low_dtype(Tensor self, SymInt low, SymInt high, *, 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, c10::SymInt low, c10::SymInt high, 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, c10::SymInt low, c10::SymInt high, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory, c10::optional memory_format); +}; + +struct TORCH_API randint_like_out { + using schema = at::Tensor & (const at::Tensor &, c10::SymInt, 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::randint_like") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "out") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "randint_like.out(Tensor self, SymInt high, *, MemoryFormat? memory_format=None, Tensor(a!) out) -> Tensor(a!)") + static at::Tensor & call(const at::Tensor & self, c10::SymInt high, c10::optional memory_format, at::Tensor & out); + static at::Tensor & redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymInt high, c10::optional memory_format, at::Tensor & out); +}; + +struct TORCH_API randint_like_low_dtype_out { + using schema = at::Tensor & (const at::Tensor &, c10::SymInt, c10::SymInt, 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::randint_like") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "low_dtype_out") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "randint_like.low_dtype_out(Tensor self, SymInt low, SymInt high, *, MemoryFormat? memory_format=None, Tensor(a!) out) -> Tensor(a!)") + static at::Tensor & call(const at::Tensor & self, c10::SymInt low, c10::SymInt high, c10::optional memory_format, at::Tensor & out); + static at::Tensor & redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymInt low, c10::SymInt high, c10::optional memory_format, at::Tensor & out); +}; + +}} // namespace at::_ops diff --git a/shared/package-files/0a/0a0589b4b09c8aeaa092945e74efb4c6f218b047be006531b3993d0066e594f8/BdfFontFile.py b/shared/package-files/0a/0a0589b4b09c8aeaa092945e74efb4c6f218b047be006531b3993d0066e594f8/BdfFontFile.py new file mode 100644 index 0000000000000000000000000000000000000000..e3eda4fe98c025117b94349d99d32a1b8e46331f --- /dev/null +++ b/shared/package-files/0a/0a0589b4b09c8aeaa092945e74efb4c6f218b047be006531b3993d0066e594f8/BdfFontFile.py @@ -0,0 +1,133 @@ +# +# The Python Imaging Library +# $Id$ +# +# bitmap distribution font (bdf) file parser +# +# history: +# 1996-05-16 fl created (as bdf2pil) +# 1997-08-25 fl converted to FontFile driver +# 2001-05-25 fl removed bogus __init__ call +# 2002-11-20 fl robustification (from Kevin Cazabon, Dmitry Vasiliev) +# 2003-04-22 fl more robustification (from Graham Dumpleton) +# +# Copyright (c) 1997-2003 by Secret Labs AB. +# Copyright (c) 1997-2003 by Fredrik Lundh. +# +# See the README file for information on usage and redistribution. +# + +""" +Parse X Bitmap Distribution Format (BDF) +""" +from __future__ import annotations + +from typing import BinaryIO + +from . import FontFile, Image + +bdf_slant = { + "R": "Roman", + "I": "Italic", + "O": "Oblique", + "RI": "Reverse Italic", + "RO": "Reverse Oblique", + "OT": "Other", +} + +bdf_spacing = {"P": "Proportional", "M": "Monospaced", "C": "Cell"} + + +def bdf_char( + f: BinaryIO, +) -> ( + tuple[ + str, + int, + tuple[tuple[int, int], tuple[int, int, int, int], tuple[int, int, int, int]], + Image.Image, + ] + | None +): + # skip to STARTCHAR + while True: + s = f.readline() + if not s: + return None + if s[:9] == b"STARTCHAR": + break + id = s[9:].strip().decode("ascii") + + # load symbol properties + props = {} + while True: + s = f.readline() + if not s or s[:6] == b"BITMAP": + break + i = s.find(b" ") + props[s[:i].decode("ascii")] = s[i + 1 : -1].decode("ascii") + + # load bitmap + bitmap = bytearray() + while True: + s = f.readline() + if not s or s[:7] == b"ENDCHAR": + break + bitmap += s[:-1] + + # The word BBX + # followed by the width in x (BBw), height in y (BBh), + # and x and y displacement (BBxoff0, BByoff0) + # of the lower left corner from the origin of the character. + width, height, x_disp, y_disp = (int(p) for p in props["BBX"].split()) + + # The word DWIDTH + # followed by the width in x and y of the character in device pixels. + dwx, dwy = (int(p) for p in props["DWIDTH"].split()) + + bbox = ( + (dwx, dwy), + (x_disp, -y_disp - height, width + x_disp, -y_disp), + (0, 0, width, height), + ) + + try: + im = Image.frombytes("1", (width, height), bitmap, "hex", "1") + except ValueError: + # deal with zero-width characters + im = Image.new("1", (width, height)) + + return id, int(props["ENCODING"]), bbox, im + + +class BdfFontFile(FontFile.FontFile): + """Font file plugin for the X11 BDF format.""" + + def __init__(self, fp: BinaryIO): + super().__init__() + + s = fp.readline() + if s[:13] != b"STARTFONT 2.1": + msg = "not a valid BDF file" + raise SyntaxError(msg) + + props = {} + comments = [] + + while True: + s = fp.readline() + if not s or s[:13] == b"ENDPROPERTIES": + break + i = s.find(b" ") + props[s[:i].decode("ascii")] = s[i + 1 : -1].decode("ascii") + if s[:i] in [b"COMMENT", b"COPYRIGHT"]: + if s.find(b"LogicalFontDescription") < 0: + comments.append(s[i + 1 : -1].decode("ascii")) + + while True: + c = bdf_char(fp) + if not c: + break + id, ch, (xy, dst, src), im = c + if 0 <= ch < len(self.glyph): + self.glyph[ch] = xy, dst, src, im diff --git a/shared/package-files/0a/0a07ff79847369ccc3c9d1081b1877e707c1059005e17e9f26df821548539b03/NativeFunctions.h b/shared/package-files/0a/0a07ff79847369ccc3c9d1081b1877e707c1059005e17e9f26df821548539b03/NativeFunctions.h new file mode 100644 index 0000000000000000000000000000000000000000..d6d7205b5793ba91c720757cdac7168a4a16dbc0 --- /dev/null +++ b/shared/package-files/0a/0a07ff79847369ccc3c9d1081b1877e707c1059005e17e9f26df821548539b03/NativeFunctions.h @@ -0,0 +1,33 @@ +#pragma once + +// ${generated_comment} + +#ifdef TORCH_ASSERT_NO_OPERATORS +#error This change adds a dependency on native_functions.yaml, \ + meaning the file will need to be re-compiled every time an operator \ + is changed or added. Consider if your change would be better placed in \ + another file, or if a more specific header might achieve the same goal. \ + See NOTE: [Tensor vs. TensorBase] +#endif + +#if defined(AT_PER_OPERATOR_HEADERS) && defined(TORCH_ASSERT_ONLY_METHOD_OPERATORS) +#error This change adds a dependency on all pytorch operators, meaning the \ + file will need to be re-compiled every time an operator is changed or added. \ + Consider including a specific operator from \ + and see NOTE [TORCH_ASSERT_ONLY_METHOD_OPERATORS]. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +${NativeFunctions_includes} + +${NativeFunctions_declarations} diff --git a/shared/package-files/0a/0a0847531efff4977d0aa274a19737e286968c9456834e3ff90d06faf9bba786/CUDAPluggableAllocator.h b/shared/package-files/0a/0a0847531efff4977d0aa274a19737e286968c9456834e3ff90d06faf9bba786/CUDAPluggableAllocator.h new file mode 100644 index 0000000000000000000000000000000000000000..22a61e48e4a24b31ad55ff21b199750512dafe95 --- /dev/null +++ b/shared/package-files/0a/0a0847531efff4977d0aa274a19737e286968c9456834e3ff90d06faf9bba786/CUDAPluggableAllocator.h @@ -0,0 +1,152 @@ +#pragma once + +#include +#include +#include +#include + +#include + +#include + +namespace torch::cuda::CUDAPluggableAllocator { + +#if defined(TORCH_HIP_VERSION) +using streamType = c10::hip::HIPStream; +#else +using streamType = c10::cuda::CUDAStream; +#endif + +std::shared_ptr +getCurrentAllocator(); +std::shared_ptr +createCustomAllocator( + std::function alloc_fn, + std::function free_fn); +void changeCurrentAllocator( + const std::shared_ptr& + allocator); + +struct _AllocationMetadata { + _AllocationMetadata(); + _AllocationMetadata( + size_t size, + c10::DeviceIndex device_idx, + cudaStream_t stream); + size_t size; + c10::DeviceIndex device_idx; + cudaStream_t stream; +}; + +struct CUDAPluggableAllocator + : public c10::cuda::CUDACachingAllocator::CUDAAllocator { + CUDAPluggableAllocator( + std::function alloc_fn, + std::function free_fn); + + CUDAPluggableAllocator(CUDAPluggableAllocator& other); + + void set_init_fn(std::function init_fn); + + void set_reset_fn(std::function reset_fn); + + void set_memory_fraction_fn( + std::function memory_fraction_fn); + + void set_base_alloc_fn(std::function base_alloc_fn); + + void set_record_stream_fn( + std::function record_stream_fn); + + void set_begin_allocate_to_pool( + std::function< + void(int, c10::cuda::MempoolId_t, std::function)> + capture_begin_fn); + + void set_end_allocate_to_pool_fn( + std::function capture_about_to_end_fn); + + void set_release_pool( + std::function capture_destroy_fn); + + void* malloc(size_t size, c10::DeviceIndex device, cudaStream_t stream); + + c10::DataPtr allocate(size_t size) override; + c10::DeleterFnPtr raw_deleter() const override; + + void* raw_alloc(size_t nbytes) override; + void* raw_alloc_with_stream(size_t nbytes, cudaStream_t stream) override; + void raw_delete(void* ptr) override; + void init(int device_count) override; + bool initialized() override; + void setMemoryFraction(double fraction, c10::DeviceIndex device) override; + void emptyCache() override; + void cacheInfo(c10::DeviceIndex device, size_t* largestBlock) override; + void* getBaseAllocation(void* ptr, size_t* size) override; + + void recordStream(const c10::DataPtr&, streamType stream) override; + + c10::cuda::CUDACachingAllocator::DeviceStats getDeviceStats( + c10::DeviceIndex device) override; + void resetAccumulatedStats(c10::DeviceIndex device) override; + void resetPeakStats(c10::DeviceIndex device) override; + c10::cuda::CUDACachingAllocator::SnapshotInfo snapshot() override; + void beginAllocateToPool( + c10::DeviceIndex device, + c10::cuda::MempoolId_t mempool_id, + std::function) override; + void endAllocateToPool( + c10::DeviceIndex device, + c10::cuda::MempoolId_t mempool_id) override; + void releasePool(c10::DeviceIndex device, c10::cuda::MempoolId_t mempool_id) + override; + std::shared_ptr getIpcDevPtr(std::string handle) override; + void recordHistory( + bool enabled, + c10::cuda::CUDACachingAllocator::CreateContextFn context_recorder, + size_t alloc_trace_max_entries, + c10::cuda::CUDACachingAllocator::RecordContext when) override; + void attachOutOfMemoryObserver( + c10::cuda::CUDACachingAllocator::OutOfMemoryObserver observer) override; + void attachAllocatorTraceTracker( + c10::cuda::CUDACachingAllocator::AllocatorTraceTracker tracker) override; + std::shared_ptr + getCheckpointState(c10::DeviceIndex device, at::cuda::MempoolId_t id) + override; + c10::cuda::CUDACachingAllocator::CheckpointDelta setCheckpointPoolState( + c10::DeviceIndex device, + std::shared_ptr pps) + override; + void enablePeerAccess(c10::DeviceIndex dev, c10::DeviceIndex dev_to_access) + override; + cudaError_t memcpyAsync( + void* dst, + int dstDevice, + const void* src, + int srcDevice, + size_t count, + cudaStream_t stream, + bool p2p_enabled) override; + std::string name() override; + void copy_data(void* dest, const void* src, std::size_t count) const final; + + protected: + std::function alloc_fn_; + std::function free_fn_; + std::function init_fn_; + std::function reset_fn_; + std::function memory_fraction_fn_; + std::function base_alloc_fn_; + std::function record_stream_fn_; + std::function< + void(int, c10::cuda::MempoolId_t, std::function)> + begin_allocate_to_pool_fn_; + std::function end_allocate_to_pool_fn_; + std::function relase_pool_fn_; + std::mutex allocator_mutex_; + // We do the bookeeping here in order to simplify custom allocators + std::unordered_map allocation_metadata_; + + bool initialized_ = false; +}; +} // namespace torch::cuda::CUDAPluggableAllocator diff --git a/shared/package-files/0a/0a09db57e7fab7061c01a61778feea6e2b6bb02ccbc150332f2960b05258ef95/popen_fork.py b/shared/package-files/0a/0a09db57e7fab7061c01a61778feea6e2b6bb02ccbc150332f2960b05258ef95/popen_fork.py new file mode 100644 index 0000000000000000000000000000000000000000..625981cf47627cab9d03cae4d3c6d8224a9375cc --- /dev/null +++ b/shared/package-files/0a/0a09db57e7fab7061c01a61778feea6e2b6bb02ccbc150332f2960b05258ef95/popen_fork.py @@ -0,0 +1,83 @@ +import os +import signal + +from . import util + +__all__ = ['Popen'] + +# +# Start child process using fork +# + +class Popen(object): + method = 'fork' + + def __init__(self, process_obj): + util._flush_std_streams() + self.returncode = None + self.finalizer = None + self._launch(process_obj) + + def duplicate_for_child(self, fd): + return fd + + def poll(self, flag=os.WNOHANG): + if self.returncode is None: + try: + pid, sts = os.waitpid(self.pid, flag) + except OSError: + # Child process not yet created. See #1731717 + # e.errno == errno.ECHILD == 10 + return None + if pid == self.pid: + self.returncode = os.waitstatus_to_exitcode(sts) + return self.returncode + + def wait(self, timeout=None): + if self.returncode is None: + if timeout is not None: + from multiprocessing.connection import wait + if not wait([self.sentinel], timeout): + return None + # This shouldn't block if wait() returned successfully. + return self.poll(os.WNOHANG if timeout == 0.0 else 0) + return self.returncode + + def _send_signal(self, sig): + if self.returncode is None: + try: + os.kill(self.pid, sig) + except ProcessLookupError: + pass + except OSError: + if self.wait(timeout=0.1) is None: + raise + + def terminate(self): + self._send_signal(signal.SIGTERM) + + def kill(self): + self._send_signal(signal.SIGKILL) + + def _launch(self, process_obj): + code = 1 + parent_r, child_w = os.pipe() + child_r, parent_w = os.pipe() + self.pid = os.fork() + if self.pid == 0: + try: + os.close(parent_r) + os.close(parent_w) + code = process_obj._bootstrap(parent_sentinel=child_r) + finally: + os._exit(code) + else: + os.close(child_w) + os.close(child_r) + self.finalizer = util.Finalize(self, util.close_fds, + (parent_r, parent_w,)) + self.sentinel = parent_r + + def close(self): + if self.finalizer is not None: + self.finalizer() diff --git a/shared/package-files/0a/0a0b8ca5aba6ca33825d98185ee2cd53ef1724790f28a6557c342ad6bea6696f/norm_meta_dispatch.h b/shared/package-files/0a/0a0b8ca5aba6ca33825d98185ee2cd53ef1724790f28a6557c342ad6bea6696f/norm_meta_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..1855d87c2d525d910ac31ce4e4e90ce4a7ee651b --- /dev/null +++ b/shared/package-files/0a/0a0b8ca5aba6ca33825d98185ee2cd53ef1724790f28a6557c342ad6bea6696f/norm_meta_dispatch.h @@ -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 norm(const at::Tensor & self, const c10::optional & p, at::IntArrayRef dim, bool keepdim, at::ScalarType dtype); +TORCH_API at::Tensor & norm_out(at::Tensor & out, const at::Tensor & self, const c10::optional & p, at::IntArrayRef dim, bool keepdim, at::ScalarType dtype); +TORCH_API at::Tensor & norm_outf(const at::Tensor & self, const c10::optional & p, at::IntArrayRef dim, bool keepdim, at::ScalarType dtype, at::Tensor & out); +TORCH_API at::Tensor norm(const at::Tensor & self, const c10::optional & p, at::IntArrayRef dim, bool keepdim=false); +TORCH_API at::Tensor & norm_out(at::Tensor & out, const at::Tensor & self, const c10::optional & p, at::IntArrayRef dim, bool keepdim=false); +TORCH_API at::Tensor & norm_outf(const at::Tensor & self, const c10::optional & p, at::IntArrayRef dim, bool keepdim, at::Tensor & out); + +} // namespace meta +} // namespace at diff --git a/shared/package-files/0a/0a0d6ac2af300129cc78e759e7fc28c2b20b2fa7b5653fe3f26fab20e930ae48/test_reductions.py b/shared/package-files/0a/0a0d6ac2af300129cc78e759e7fc28c2b20b2fa7b5653fe3f26fab20e930ae48/test_reductions.py new file mode 100644 index 0000000000000000000000000000000000000000..a941546b13a567b705f61a3a667119cd55a2f0e4 --- /dev/null +++ b/shared/package-files/0a/0a0d6ac2af300129cc78e759e7fc28c2b20b2fa7b5653fe3f26fab20e930ae48/test_reductions.py @@ -0,0 +1,183 @@ +import numpy as np +import pytest + +from pandas.core.dtypes.dtypes import DatetimeTZDtype + +import pandas as pd +from pandas import NaT +import pandas._testing as tm +from pandas.core.arrays import DatetimeArray + + +class TestReductions: + @pytest.fixture(params=["s", "ms", "us", "ns"]) + def unit(self, request): + return request.param + + @pytest.fixture + def arr1d(self, tz_naive_fixture): + """Fixture returning DatetimeArray with parametrized timezones""" + tz = tz_naive_fixture + dtype = DatetimeTZDtype(tz=tz) if tz is not None else np.dtype("M8[ns]") + arr = DatetimeArray._from_sequence( + [ + "2000-01-03", + "2000-01-03", + "NaT", + "2000-01-02", + "2000-01-05", + "2000-01-04", + ], + dtype=dtype, + ) + return arr + + def test_min_max(self, arr1d, unit): + arr = arr1d + arr = arr.as_unit(unit) + tz = arr.tz + + result = arr.min() + expected = pd.Timestamp("2000-01-02", tz=tz).as_unit(unit) + assert result == expected + assert result.unit == expected.unit + + result = arr.max() + expected = pd.Timestamp("2000-01-05", tz=tz).as_unit(unit) + assert result == expected + assert result.unit == expected.unit + + result = arr.min(skipna=False) + assert result is NaT + + result = arr.max(skipna=False) + assert result is NaT + + @pytest.mark.parametrize("tz", [None, "US/Central"]) + @pytest.mark.parametrize("skipna", [True, False]) + def test_min_max_empty(self, skipna, tz): + dtype = DatetimeTZDtype(tz=tz) if tz is not None else np.dtype("M8[ns]") + arr = DatetimeArray._from_sequence([], dtype=dtype) + result = arr.min(skipna=skipna) + assert result is NaT + + result = arr.max(skipna=skipna) + assert result is NaT + + @pytest.mark.parametrize("tz", [None, "US/Central"]) + @pytest.mark.parametrize("skipna", [True, False]) + def test_median_empty(self, skipna, tz): + dtype = DatetimeTZDtype(tz=tz) if tz is not None else np.dtype("M8[ns]") + arr = DatetimeArray._from_sequence([], dtype=dtype) + result = arr.median(skipna=skipna) + assert result is NaT + + arr = arr.reshape(0, 3) + result = arr.median(axis=0, skipna=skipna) + expected = type(arr)._from_sequence([NaT, NaT, NaT], dtype=arr.dtype) + tm.assert_equal(result, expected) + + result = arr.median(axis=1, skipna=skipna) + expected = type(arr)._from_sequence([], dtype=arr.dtype) + tm.assert_equal(result, expected) + + def test_median(self, arr1d): + arr = arr1d + + result = arr.median() + assert result == arr[0] + result = arr.median(skipna=False) + assert result is NaT + + result = arr.dropna().median(skipna=False) + assert result == arr[0] + + result = arr.median(axis=0) + assert result == arr[0] + + def test_median_axis(self, arr1d): + arr = arr1d + assert arr.median(axis=0) == arr.median() + assert arr.median(axis=0, skipna=False) is NaT + + msg = r"abs\(axis\) must be less than ndim" + with pytest.raises(ValueError, match=msg): + arr.median(axis=1) + + @pytest.mark.filterwarnings("ignore:All-NaN slice encountered:RuntimeWarning") + def test_median_2d(self, arr1d): + arr = arr1d.reshape(1, -1) + + # axis = None + assert arr.median() == arr1d.median() + assert arr.median(skipna=False) is NaT + + # axis = 0 + result = arr.median(axis=0) + expected = arr1d + tm.assert_equal(result, expected) + + # Since column 3 is all-NaT, we get NaT there with or without skipna + result = arr.median(axis=0, skipna=False) + expected = arr1d + tm.assert_equal(result, expected) + + # axis = 1 + result = arr.median(axis=1) + expected = type(arr)._from_sequence([arr1d.median()], dtype=arr.dtype) + tm.assert_equal(result, expected) + + result = arr.median(axis=1, skipna=False) + expected = type(arr)._from_sequence([NaT], dtype=arr.dtype) + tm.assert_equal(result, expected) + + def test_mean(self, arr1d): + arr = arr1d + + # manually verified result + expected = arr[0] + 0.4 * pd.Timedelta(days=1) + + result = arr.mean() + assert result == expected + result = arr.mean(skipna=False) + assert result is NaT + + result = arr.dropna().mean(skipna=False) + assert result == expected + + result = arr.mean(axis=0) + assert result == expected + + def test_mean_2d(self): + dti = pd.date_range("2016-01-01", periods=6, tz="US/Pacific") + dta = dti._data.reshape(3, 2) + + result = dta.mean(axis=0) + expected = dta[1] + tm.assert_datetime_array_equal(result, expected) + + result = dta.mean(axis=1) + expected = dta[:, 0] + pd.Timedelta(hours=12) + tm.assert_datetime_array_equal(result, expected) + + result = dta.mean(axis=None) + expected = dti.mean() + assert result == expected + + @pytest.mark.parametrize("skipna", [True, False]) + def test_mean_empty(self, arr1d, skipna): + arr = arr1d[:0] + + assert arr.mean(skipna=skipna) is NaT + + arr2d = arr.reshape(0, 3) + result = arr2d.mean(axis=0, skipna=skipna) + expected = DatetimeArray._from_sequence([NaT, NaT, NaT], dtype=arr.dtype) + tm.assert_datetime_array_equal(result, expected) + + result = arr2d.mean(axis=1, skipna=skipna) + expected = arr # i.e. 1D, empty + tm.assert_datetime_array_equal(result, expected) + + result = arr2d.mean(axis=None, skipna=skipna) + assert result is NaT diff --git a/shared/package-files/0a/0a11c8f71962d7c51684b9dd0c013e56b66d9410e5eb4f66b1785fb289a7453e/exp2_cpu_dispatch.h b/shared/package-files/0a/0a11c8f71962d7c51684b9dd0c013e56b66d9410e5eb4f66b1785fb289a7453e/exp2_cpu_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..8a8599208b31217cae97fa3f801065dd67c0b7a9 --- /dev/null +++ b/shared/package-files/0a/0a11c8f71962d7c51684b9dd0c013e56b66d9410e5eb4f66b1785fb289a7453e/exp2_cpu_dispatch.h @@ -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 exp2(const at::Tensor & self); +TORCH_API at::Tensor & exp2_out(at::Tensor & out, const at::Tensor & self); +TORCH_API at::Tensor & exp2_outf(const at::Tensor & self, at::Tensor & out); +TORCH_API at::Tensor & exp2_(at::Tensor & self); + +} // namespace cpu +} // namespace at diff --git a/shared/package-files/0a/0a12eeeeed181133fc75ba076a7b12d197231aab617c1c2514a2df38d97d117b/apply.py b/shared/package-files/0a/0a12eeeeed181133fc75ba076a7b12d197231aab617c1c2514a2df38d97d117b/apply.py new file mode 100644 index 0000000000000000000000000000000000000000..fafc9ee1b69283f75c9aa4b72768d1fd92f5a70a --- /dev/null +++ b/shared/package-files/0a/0a12eeeeed181133fc75ba076a7b12d197231aab617c1c2514a2df38d97d117b/apply.py @@ -0,0 +1,2057 @@ +from __future__ import annotations + +import abc +from collections import defaultdict +import functools +from functools import partial +import inspect +from typing import ( + TYPE_CHECKING, + Any, + Callable, + Literal, + cast, +) +import warnings + +import numpy as np + +from pandas._config import option_context + +from pandas._libs import lib +from pandas._libs.internals import BlockValuesRefs +from pandas._typing import ( + AggFuncType, + AggFuncTypeBase, + AggFuncTypeDict, + AggObjType, + Axis, + AxisInt, + NDFrameT, + npt, +) +from pandas.compat._optional import import_optional_dependency +from pandas.errors import SpecificationError +from pandas.util._decorators import cache_readonly +from pandas.util._exceptions import find_stack_level + +from pandas.core.dtypes.cast import is_nested_object +from pandas.core.dtypes.common import ( + is_dict_like, + is_extension_array_dtype, + is_list_like, + is_numeric_dtype, + is_sequence, +) +from pandas.core.dtypes.dtypes import ( + CategoricalDtype, + ExtensionDtype, +) +from pandas.core.dtypes.generic import ( + ABCDataFrame, + ABCNDFrame, + ABCSeries, +) + +from pandas.core._numba.executor import generate_apply_looper +import pandas.core.common as com +from pandas.core.construction import ensure_wrapped_if_datetimelike + +if TYPE_CHECKING: + from collections.abc import ( + Generator, + Hashable, + Iterable, + MutableMapping, + Sequence, + ) + + from pandas import ( + DataFrame, + Index, + Series, + ) + from pandas.core.groupby import GroupBy + from pandas.core.resample import Resampler + from pandas.core.window.rolling import BaseWindow + + +ResType = dict[int, Any] + + +def frame_apply( + obj: DataFrame, + func: AggFuncType, + axis: Axis = 0, + raw: bool = False, + result_type: str | None = None, + by_row: Literal[False, "compat"] = "compat", + engine: str = "python", + engine_kwargs: dict[str, bool] | None = None, + args=None, + kwargs=None, +) -> FrameApply: + """construct and return a row or column based frame apply object""" + axis = obj._get_axis_number(axis) + klass: type[FrameApply] + if axis == 0: + klass = FrameRowApply + elif axis == 1: + klass = FrameColumnApply + + _, func, _, _ = reconstruct_func(func, **kwargs) + assert func is not None + + return klass( + obj, + func, + raw=raw, + result_type=result_type, + by_row=by_row, + engine=engine, + engine_kwargs=engine_kwargs, + args=args, + kwargs=kwargs, + ) + + +class Apply(metaclass=abc.ABCMeta): + axis: AxisInt + + def __init__( + self, + obj: AggObjType, + func: AggFuncType, + raw: bool, + result_type: str | None, + *, + by_row: Literal[False, "compat", "_compat"] = "compat", + engine: str = "python", + engine_kwargs: dict[str, bool] | None = None, + args, + kwargs, + ) -> None: + self.obj = obj + self.raw = raw + + assert by_row is False or by_row in ["compat", "_compat"] + self.by_row = by_row + + self.args = args or () + self.kwargs = kwargs or {} + + self.engine = engine + self.engine_kwargs = {} if engine_kwargs is None else engine_kwargs + + if result_type not in [None, "reduce", "broadcast", "expand"]: + raise ValueError( + "invalid value for result_type, must be one " + "of {None, 'reduce', 'broadcast', 'expand'}" + ) + + self.result_type = result_type + + self.func = func + + @abc.abstractmethod + def apply(self) -> DataFrame | Series: + pass + + @abc.abstractmethod + def agg_or_apply_list_like( + self, op_name: Literal["agg", "apply"] + ) -> DataFrame | Series: + pass + + @abc.abstractmethod + def agg_or_apply_dict_like( + self, op_name: Literal["agg", "apply"] + ) -> DataFrame | Series: + pass + + def agg(self) -> DataFrame | Series | None: + """ + Provide an implementation for the aggregators. + + Returns + ------- + Result of aggregation, or None if agg cannot be performed by + this method. + """ + obj = self.obj + func = self.func + args = self.args + kwargs = self.kwargs + + if isinstance(func, str): + return self.apply_str() + + if is_dict_like(func): + return self.agg_dict_like() + elif is_list_like(func): + # we require a list, but not a 'str' + return self.agg_list_like() + + if callable(func): + f = com.get_cython_func(func) + if f and not args and not kwargs: + warn_alias_replacement(obj, func, f) + return getattr(obj, f)() + + # caller can react + return None + + def transform(self) -> DataFrame | Series: + """ + Transform a DataFrame or Series. + + Returns + ------- + DataFrame or Series + Result of applying ``func`` along the given axis of the + Series or DataFrame. + + Raises + ------ + ValueError + If the transform function fails or does not transform. + """ + obj = self.obj + func = self.func + axis = self.axis + args = self.args + kwargs = self.kwargs + + is_series = obj.ndim == 1 + + if obj._get_axis_number(axis) == 1: + assert not is_series + return obj.T.transform(func, 0, *args, **kwargs).T + + if is_list_like(func) and not is_dict_like(func): + func = cast(list[AggFuncTypeBase], func) + # Convert func equivalent dict + if is_series: + func = {com.get_callable_name(v) or v: v for v in func} + else: + func = {col: func for col in obj} + + if is_dict_like(func): + func = cast(AggFuncTypeDict, func) + return self.transform_dict_like(func) + + # func is either str or callable + func = cast(AggFuncTypeBase, func) + try: + result = self.transform_str_or_callable(func) + except TypeError: + raise + except Exception as err: + raise ValueError("Transform function failed") from err + + # Functions that transform may return empty Series/DataFrame + # when the dtype is not appropriate + if ( + isinstance(result, (ABCSeries, ABCDataFrame)) + and result.empty + and not obj.empty + ): + raise ValueError("Transform function failed") + # error: Argument 1 to "__get__" of "AxisProperty" has incompatible type + # "Union[Series, DataFrame, GroupBy[Any], SeriesGroupBy, + # DataFrameGroupBy, BaseWindow, Resampler]"; expected "Union[DataFrame, + # Series]" + if not isinstance(result, (ABCSeries, ABCDataFrame)) or not result.index.equals( + obj.index # type: ignore[arg-type] + ): + raise ValueError("Function did not transform") + + return result + + def transform_dict_like(self, func) -> DataFrame: + """ + Compute transform in the case of a dict-like func + """ + from pandas.core.reshape.concat import concat + + obj = self.obj + args = self.args + kwargs = self.kwargs + + # transform is currently only for Series/DataFrame + assert isinstance(obj, ABCNDFrame) + + if len(func) == 0: + raise ValueError("No transform functions were provided") + + func = self.normalize_dictlike_arg("transform", obj, func) + + results: dict[Hashable, DataFrame | Series] = {} + for name, how in func.items(): + colg = obj._gotitem(name, ndim=1) + results[name] = colg.transform(how, 0, *args, **kwargs) + return concat(results, axis=1) + + def transform_str_or_callable(self, func) -> DataFrame | Series: + """ + Compute transform in the case of a string or callable func + """ + obj = self.obj + args = self.args + kwargs = self.kwargs + + if isinstance(func, str): + return self._apply_str(obj, func, *args, **kwargs) + + if not args and not kwargs: + f = com.get_cython_func(func) + if f: + warn_alias_replacement(obj, func, f) + return getattr(obj, f)() + + # Two possible ways to use a UDF - apply or call directly + try: + return obj.apply(func, args=args, **kwargs) + except Exception: + return func(obj, *args, **kwargs) + + def agg_list_like(self) -> DataFrame | Series: + """ + Compute aggregation in the case of a list-like argument. + + Returns + ------- + Result of aggregation. + """ + return self.agg_or_apply_list_like(op_name="agg") + + def compute_list_like( + self, + op_name: Literal["agg", "apply"], + selected_obj: Series | DataFrame, + kwargs: dict[str, Any], + ) -> tuple[list[Hashable] | Index, list[Any]]: + """ + Compute agg/apply results for like-like input. + + Parameters + ---------- + op_name : {"agg", "apply"} + Operation being performed. + selected_obj : Series or DataFrame + Data to perform operation on. + kwargs : dict + Keyword arguments to pass to the functions. + + Returns + ------- + keys : list[Hashable] or Index + Index labels for result. + results : list + Data for result. When aggregating with a Series, this can contain any + Python objects. + """ + func = cast(list[AggFuncTypeBase], self.func) + obj = self.obj + + results = [] + keys = [] + + # degenerate case + if selected_obj.ndim == 1: + for a in func: + colg = obj._gotitem(selected_obj.name, ndim=1, subset=selected_obj) + args = ( + [self.axis, *self.args] + if include_axis(op_name, colg) + else self.args + ) + new_res = getattr(colg, op_name)(a, *args, **kwargs) + results.append(new_res) + + # make sure we find a good name + name = com.get_callable_name(a) or a + keys.append(name) + + else: + indices = [] + for index, col in enumerate(selected_obj): + colg = obj._gotitem(col, ndim=1, subset=selected_obj.iloc[:, index]) + args = ( + [self.axis, *self.args] + if include_axis(op_name, colg) + else self.args + ) + new_res = getattr(colg, op_name)(func, *args, **kwargs) + results.append(new_res) + indices.append(index) + # error: Incompatible types in assignment (expression has type "Any | + # Index", variable has type "list[Any | Callable[..., Any] | str]") + keys = selected_obj.columns.take(indices) # type: ignore[assignment] + + return keys, results + + def wrap_results_list_like( + self, keys: Iterable[Hashable], results: list[Series | DataFrame] + ): + from pandas.core.reshape.concat import concat + + obj = self.obj + + try: + return concat(results, keys=keys, axis=1, sort=False) + except TypeError as err: + # we are concatting non-NDFrame objects, + # e.g. a list of scalars + from pandas import Series + + result = Series(results, index=keys, name=obj.name) + if is_nested_object(result): + raise ValueError( + "cannot combine transform and aggregation operations" + ) from err + return result + + def agg_dict_like(self) -> DataFrame | Series: + """ + Compute aggregation in the case of a dict-like argument. + + Returns + ------- + Result of aggregation. + """ + return self.agg_or_apply_dict_like(op_name="agg") + + def compute_dict_like( + self, + op_name: Literal["agg", "apply"], + selected_obj: Series | DataFrame, + selection: Hashable | Sequence[Hashable], + kwargs: dict[str, Any], + ) -> tuple[list[Hashable], list[Any]]: + """ + Compute agg/apply results for dict-like input. + + Parameters + ---------- + op_name : {"agg", "apply"} + Operation being performed. + selected_obj : Series or DataFrame + Data to perform operation on. + selection : hashable or sequence of hashables + Used by GroupBy, Window, and Resample if selection is applied to the object. + kwargs : dict + Keyword arguments to pass to the functions. + + Returns + ------- + keys : list[hashable] + Index labels for result. + results : list + Data for result. When aggregating with a Series, this can contain any + Python object. + """ + from pandas.core.groupby.generic import ( + DataFrameGroupBy, + SeriesGroupBy, + ) + + obj = self.obj + is_groupby = isinstance(obj, (DataFrameGroupBy, SeriesGroupBy)) + func = cast(AggFuncTypeDict, self.func) + func = self.normalize_dictlike_arg(op_name, selected_obj, func) + + is_non_unique_col = ( + selected_obj.ndim == 2 + and selected_obj.columns.nunique() < len(selected_obj.columns) + ) + + if selected_obj.ndim == 1: + # key only used for output + colg = obj._gotitem(selection, ndim=1) + results = [getattr(colg, op_name)(how, **kwargs) for _, how in func.items()] + keys = list(func.keys()) + elif not is_groupby and is_non_unique_col: + # key used for column selection and output + # GH#51099 + results = [] + keys = [] + for key, how in func.items(): + indices = selected_obj.columns.get_indexer_for([key]) + labels = selected_obj.columns.take(indices) + label_to_indices = defaultdict(list) + for index, label in zip(indices, labels): + label_to_indices[label].append(index) + + key_data = [ + getattr(selected_obj._ixs(indice, axis=1), op_name)(how, **kwargs) + for label, indices in label_to_indices.items() + for indice in indices + ] + + keys += [key] * len(key_data) + results += key_data + else: + # key used for column selection and output + results = [ + getattr(obj._gotitem(key, ndim=1), op_name)(how, **kwargs) + for key, how in func.items() + ] + keys = list(func.keys()) + + return keys, results + + def wrap_results_dict_like( + self, + selected_obj: Series | DataFrame, + result_index: list[Hashable], + result_data: list, + ): + from pandas import Index + from pandas.core.reshape.concat import concat + + obj = self.obj + + # Avoid making two isinstance calls in all and any below + is_ndframe = [isinstance(r, ABCNDFrame) for r in result_data] + + if all(is_ndframe): + results = dict(zip(result_index, result_data)) + keys_to_use: Iterable[Hashable] + keys_to_use = [k for k in result_index if not results[k].empty] + # Have to check, if at least one DataFrame is not empty. + keys_to_use = keys_to_use if keys_to_use != [] else result_index + if selected_obj.ndim == 2: + # keys are columns, so we can preserve names + ktu = Index(keys_to_use) + ktu._set_names(selected_obj.columns.names) + keys_to_use = ktu + + axis: AxisInt = 0 if isinstance(obj, ABCSeries) else 1 + result = concat( + {k: results[k] for k in keys_to_use}, + axis=axis, + keys=keys_to_use, + ) + elif any(is_ndframe): + # There is a mix of NDFrames and scalars + raise ValueError( + "cannot perform both aggregation " + "and transformation operations " + "simultaneously" + ) + else: + from pandas import Series + + # we have a list of scalars + # GH 36212 use name only if obj is a series + if obj.ndim == 1: + obj = cast("Series", obj) + name = obj.name + else: + name = None + + result = Series(result_data, index=result_index, name=name) + + return result + + def apply_str(self) -> DataFrame | Series: + """ + Compute apply in case of a string. + + Returns + ------- + result: Series or DataFrame + """ + # Caller is responsible for checking isinstance(self.f, str) + func = cast(str, self.func) + + obj = self.obj + + from pandas.core.groupby.generic import ( + DataFrameGroupBy, + SeriesGroupBy, + ) + + # Support for `frame.transform('method')` + # Some methods (shift, etc.) require the axis argument, others + # don't, so inspect and insert if necessary. + method = getattr(obj, func, None) + if callable(method): + sig = inspect.getfullargspec(method) + arg_names = (*sig.args, *sig.kwonlyargs) + if self.axis != 0 and ( + "axis" not in arg_names or func in ("corrwith", "skew") + ): + raise ValueError(f"Operation {func} does not support axis=1") + if "axis" in arg_names: + if isinstance(obj, (SeriesGroupBy, DataFrameGroupBy)): + # Try to avoid FutureWarning for deprecated axis keyword; + # If self.axis matches the axis we would get by not passing + # axis, we safely exclude the keyword. + + default_axis = 0 + if func in ["idxmax", "idxmin"]: + # DataFrameGroupBy.idxmax, idxmin axis defaults to self.axis, + # whereas other axis keywords default to 0 + default_axis = self.obj.axis + + if default_axis != self.axis: + self.kwargs["axis"] = self.axis + else: + self.kwargs["axis"] = self.axis + return self._apply_str(obj, func, *self.args, **self.kwargs) + + def apply_list_or_dict_like(self) -> DataFrame | Series: + """ + Compute apply in case of a list-like or dict-like. + + Returns + ------- + result: Series, DataFrame, or None + Result when self.func is a list-like or dict-like, None otherwise. + """ + + if self.engine == "numba": + raise NotImplementedError( + "The 'numba' engine doesn't support list-like/" + "dict likes of callables yet." + ) + + if self.axis == 1 and isinstance(self.obj, ABCDataFrame): + return self.obj.T.apply(self.func, 0, args=self.args, **self.kwargs).T + + func = self.func + kwargs = self.kwargs + + if is_dict_like(func): + result = self.agg_or_apply_dict_like(op_name="apply") + else: + result = self.agg_or_apply_list_like(op_name="apply") + + result = reconstruct_and_relabel_result(result, func, **kwargs) + + return result + + def normalize_dictlike_arg( + self, how: str, obj: DataFrame | Series, func: AggFuncTypeDict + ) -> AggFuncTypeDict: + """ + Handler for dict-like argument. + + Ensures that necessary columns exist if obj is a DataFrame, and + that a nested renamer is not passed. Also normalizes to all lists + when values consists of a mix of list and non-lists. + """ + assert how in ("apply", "agg", "transform") + + # Can't use func.values(); wouldn't work for a Series + if ( + how == "agg" + and isinstance(obj, ABCSeries) + and any(is_list_like(v) for _, v in func.items()) + ) or (any(is_dict_like(v) for _, v in func.items())): + # GH 15931 - deprecation of renaming keys + raise SpecificationError("nested renamer is not supported") + + if obj.ndim != 1: + # Check for missing columns on a frame + from pandas import Index + + cols = Index(list(func.keys())).difference(obj.columns, sort=True) + if len(cols) > 0: + raise KeyError(f"Column(s) {list(cols)} do not exist") + + aggregator_types = (list, tuple, dict) + + # if we have a dict of any non-scalars + # eg. {'A' : ['mean']}, normalize all to + # be list-likes + # Cannot use func.values() because arg may be a Series + if any(isinstance(x, aggregator_types) for _, x in func.items()): + new_func: AggFuncTypeDict = {} + for k, v in func.items(): + if not isinstance(v, aggregator_types): + new_func[k] = [v] + else: + new_func[k] = v + func = new_func + return func + + def _apply_str(self, obj, func: str, *args, **kwargs): + """ + if arg is a string, then try to operate on it: + - try to find a function (or attribute) on obj + - try to find a numpy function + - raise + """ + assert isinstance(func, str) + + if hasattr(obj, func): + f = getattr(obj, func) + if callable(f): + return f(*args, **kwargs) + + # people may aggregate on a non-callable attribute + # but don't let them think they can pass args to it + assert len(args) == 0 + assert len([kwarg for kwarg in kwargs if kwarg not in ["axis"]]) == 0 + return f + elif hasattr(np, func) and hasattr(obj, "__array__"): + # in particular exclude Window + f = getattr(np, func) + return f(obj, *args, **kwargs) + else: + msg = f"'{func}' is not a valid function for '{type(obj).__name__}' object" + raise AttributeError(msg) + + +class NDFrameApply(Apply): + """ + Methods shared by FrameApply and SeriesApply but + not GroupByApply or ResamplerWindowApply + """ + + obj: DataFrame | Series + + @property + def index(self) -> Index: + return self.obj.index + + @property + def agg_axis(self) -> Index: + return self.obj._get_agg_axis(self.axis) + + def agg_or_apply_list_like( + self, op_name: Literal["agg", "apply"] + ) -> DataFrame | Series: + obj = self.obj + kwargs = self.kwargs + + if op_name == "apply": + if isinstance(self, FrameApply): + by_row = self.by_row + + elif isinstance(self, SeriesApply): + by_row = "_compat" if self.by_row else False + else: + by_row = False + kwargs = {**kwargs, "by_row": by_row} + + if getattr(obj, "axis", 0) == 1: + raise NotImplementedError("axis other than 0 is not supported") + + keys, results = self.compute_list_like(op_name, obj, kwargs) + result = self.wrap_results_list_like(keys, results) + return result + + def agg_or_apply_dict_like( + self, op_name: Literal["agg", "apply"] + ) -> DataFrame | Series: + assert op_name in ["agg", "apply"] + obj = self.obj + + kwargs = {} + if op_name == "apply": + by_row = "_compat" if self.by_row else False + kwargs.update({"by_row": by_row}) + + if getattr(obj, "axis", 0) == 1: + raise NotImplementedError("axis other than 0 is not supported") + + selection = None + result_index, result_data = self.compute_dict_like( + op_name, obj, selection, kwargs + ) + result = self.wrap_results_dict_like(obj, result_index, result_data) + return result + + +class FrameApply(NDFrameApply): + obj: DataFrame + + def __init__( + self, + obj: AggObjType, + func: AggFuncType, + raw: bool, + result_type: str | None, + *, + by_row: Literal[False, "compat"] = False, + engine: str = "python", + engine_kwargs: dict[str, bool] | None = None, + args, + kwargs, + ) -> None: + if by_row is not False and by_row != "compat": + raise ValueError(f"by_row={by_row} not allowed") + super().__init__( + obj, + func, + raw, + result_type, + by_row=by_row, + engine=engine, + engine_kwargs=engine_kwargs, + args=args, + kwargs=kwargs, + ) + + # --------------------------------------------------------------- + # Abstract Methods + + @property + @abc.abstractmethod + def result_index(self) -> Index: + pass + + @property + @abc.abstractmethod + def result_columns(self) -> Index: + pass + + @property + @abc.abstractmethod + def series_generator(self) -> Generator[Series, None, None]: + pass + + @staticmethod + @functools.cache + @abc.abstractmethod + def generate_numba_apply_func( + func, nogil=True, nopython=True, parallel=False + ) -> Callable[[npt.NDArray, Index, Index], dict[int, Any]]: + pass + + @abc.abstractmethod + def apply_with_numba(self): + pass + + def validate_values_for_numba(self): + # Validate column dtyps all OK + for colname, dtype in self.obj.dtypes.items(): + if not is_numeric_dtype(dtype): + raise ValueError( + f"Column {colname} must have a numeric dtype. " + f"Found '{dtype}' instead" + ) + if is_extension_array_dtype(dtype): + raise ValueError( + f"Column {colname} is backed by an extension array, " + f"which is not supported by the numba engine." + ) + + @abc.abstractmethod + def wrap_results_for_axis( + self, results: ResType, res_index: Index + ) -> DataFrame | Series: + pass + + # --------------------------------------------------------------- + + @property + def res_columns(self) -> Index: + return self.result_columns + + @property + def columns(self) -> Index: + return self.obj.columns + + @cache_readonly + def values(self): + return self.obj.values + + def apply(self) -> DataFrame | Series: + """compute the results""" + + # dispatch to handle list-like or dict-like + if is_list_like(self.func): + if self.engine == "numba": + raise NotImplementedError( + "the 'numba' engine doesn't support lists of callables yet" + ) + return self.apply_list_or_dict_like() + + # all empty + if len(self.columns) == 0 and len(self.index) == 0: + return self.apply_empty_result() + + # string dispatch + if isinstance(self.func, str): + if self.engine == "numba": + raise NotImplementedError( + "the 'numba' engine doesn't support using " + "a string as the callable function" + ) + return self.apply_str() + + # ufunc + elif isinstance(self.func, np.ufunc): + if self.engine == "numba": + raise NotImplementedError( + "the 'numba' engine doesn't support " + "using a numpy ufunc as the callable function" + ) + with np.errstate(all="ignore"): + results = self.obj._mgr.apply("apply", func=self.func) + # _constructor will retain self.index and self.columns + return self.obj._constructor_from_mgr(results, axes=results.axes) + + # broadcasting + if self.result_type == "broadcast": + if self.engine == "numba": + raise NotImplementedError( + "the 'numba' engine doesn't support result_type='broadcast'" + ) + return self.apply_broadcast(self.obj) + + # one axis empty + elif not all(self.obj.shape): + return self.apply_empty_result() + + # raw + elif self.raw: + return self.apply_raw(engine=self.engine, engine_kwargs=self.engine_kwargs) + + return self.apply_standard() + + def agg(self): + obj = self.obj + axis = self.axis + + # TODO: Avoid having to change state + self.obj = self.obj if self.axis == 0 else self.obj.T + self.axis = 0 + + result = None + try: + result = super().agg() + finally: + self.obj = obj + self.axis = axis + + if axis == 1: + result = result.T if result is not None else result + + if result is None: + result = self.obj.apply(self.func, axis, args=self.args, **self.kwargs) + + return result + + def apply_empty_result(self): + """ + we have an empty result; at least 1 axis is 0 + + we will try to apply the function to an empty + series in order to see if this is a reduction function + """ + assert callable(self.func) + + # we are not asked to reduce or infer reduction + # so just return a copy of the existing object + if self.result_type not in ["reduce", None]: + return self.obj.copy() + + # we may need to infer + should_reduce = self.result_type == "reduce" + + from pandas import Series + + if not should_reduce: + try: + if self.axis == 0: + r = self.func( + Series([], dtype=np.float64), *self.args, **self.kwargs + ) + else: + r = self.func( + Series(index=self.columns, dtype=np.float64), + *self.args, + **self.kwargs, + ) + except Exception: + pass + else: + should_reduce = not isinstance(r, Series) + + if should_reduce: + if len(self.agg_axis): + r = self.func(Series([], dtype=np.float64), *self.args, **self.kwargs) + else: + r = np.nan + + return self.obj._constructor_sliced(r, index=self.agg_axis) + else: + return self.obj.copy() + + def apply_raw(self, engine="python", engine_kwargs=None): + """apply to the values as a numpy array""" + + def wrap_function(func): + """ + Wrap user supplied function to work around numpy issue. + + see https://github.com/numpy/numpy/issues/8352 + """ + + def wrapper(*args, **kwargs): + result = func(*args, **kwargs) + if isinstance(result, str): + result = np.array(result, dtype=object) + return result + + return wrapper + + if engine == "numba": + engine_kwargs = {} if engine_kwargs is None else engine_kwargs + + # error: Argument 1 to "__call__" of "_lru_cache_wrapper" has + # incompatible type "Callable[..., Any] | str | list[Callable + # [..., Any] | str] | dict[Hashable,Callable[..., Any] | str | + # list[Callable[..., Any] | str]]"; expected "Hashable" + nb_looper = generate_apply_looper( + self.func, **engine_kwargs # type: ignore[arg-type] + ) + result = nb_looper(self.values, self.axis) + # If we made the result 2-D, squeeze it back to 1-D + result = np.squeeze(result) + else: + result = np.apply_along_axis( + wrap_function(self.func), + self.axis, + self.values, + *self.args, + **self.kwargs, + ) + + # TODO: mixed type case + if result.ndim == 2: + return self.obj._constructor(result, index=self.index, columns=self.columns) + else: + return self.obj._constructor_sliced(result, index=self.agg_axis) + + def apply_broadcast(self, target: DataFrame) -> DataFrame: + assert callable(self.func) + + result_values = np.empty_like(target.values) + + # axis which we want to compare compliance + result_compare = target.shape[0] + + for i, col in enumerate(target.columns): + res = self.func(target[col], *self.args, **self.kwargs) + ares = np.asarray(res).ndim + + # must be a scalar or 1d + if ares > 1: + raise ValueError("too many dims to broadcast") + if ares == 1: + # must match return dim + if result_compare != len(res): + raise ValueError("cannot broadcast result") + + result_values[:, i] = res + + # we *always* preserve the original index / columns + result = self.obj._constructor( + result_values, index=target.index, columns=target.columns + ) + return result + + def apply_standard(self): + if self.engine == "python": + results, res_index = self.apply_series_generator() + else: + results, res_index = self.apply_series_numba() + + # wrap results + return self.wrap_results(results, res_index) + + def apply_series_generator(self) -> tuple[ResType, Index]: + assert callable(self.func) + + series_gen = self.series_generator + res_index = self.result_index + + results = {} + + with option_context("mode.chained_assignment", None): + for i, v in enumerate(series_gen): + # ignore SettingWithCopy here in case the user mutates + results[i] = self.func(v, *self.args, **self.kwargs) + if isinstance(results[i], ABCSeries): + # If we have a view on v, we need to make a copy because + # series_generator will swap out the underlying data + results[i] = results[i].copy(deep=False) + + return results, res_index + + def apply_series_numba(self): + if self.engine_kwargs.get("parallel", False): + raise NotImplementedError( + "Parallel apply is not supported when raw=False and engine='numba'" + ) + if not self.obj.index.is_unique or not self.columns.is_unique: + raise NotImplementedError( + "The index/columns must be unique when raw=False and engine='numba'" + ) + self.validate_values_for_numba() + results = self.apply_with_numba() + return results, self.result_index + + def wrap_results(self, results: ResType, res_index: Index) -> DataFrame | Series: + from pandas import Series + + # see if we can infer the results + if len(results) > 0 and 0 in results and is_sequence(results[0]): + return self.wrap_results_for_axis(results, res_index) + + # dict of scalars + + # the default dtype of an empty Series is `object`, but this + # code can be hit by df.mean() where the result should have dtype + # float64 even if it's an empty Series. + constructor_sliced = self.obj._constructor_sliced + if len(results) == 0 and constructor_sliced is Series: + result = constructor_sliced(results, dtype=np.float64) + else: + result = constructor_sliced(results) + result.index = res_index + + return result + + def apply_str(self) -> DataFrame | Series: + # Caller is responsible for checking isinstance(self.func, str) + # TODO: GH#39993 - Avoid special-casing by replacing with lambda + if self.func == "size": + # Special-cased because DataFrame.size returns a single scalar + obj = self.obj + value = obj.shape[self.axis] + return obj._constructor_sliced(value, index=self.agg_axis) + return super().apply_str() + + +class FrameRowApply(FrameApply): + axis: AxisInt = 0 + + @property + def series_generator(self) -> Generator[Series, None, None]: + return (self.obj._ixs(i, axis=1) for i in range(len(self.columns))) + + @staticmethod + @functools.cache + def generate_numba_apply_func( + func, nogil=True, nopython=True, parallel=False + ) -> Callable[[npt.NDArray, Index, Index], dict[int, Any]]: + numba = import_optional_dependency("numba") + from pandas import Series + + # Import helper from extensions to cast string object -> np strings + # Note: This also has the side effect of loading our numba extensions + from pandas.core._numba.extensions import maybe_cast_str + + jitted_udf = numba.extending.register_jitable(func) + + # Currently the parallel argument doesn't get passed through here + # (it's disabled) since the dicts in numba aren't thread-safe. + @numba.jit(nogil=nogil, nopython=nopython, parallel=parallel) + def numba_func(values, col_names, df_index): + results = {} + for j in range(values.shape[1]): + # Create the series + ser = Series( + values[:, j], index=df_index, name=maybe_cast_str(col_names[j]) + ) + results[j] = jitted_udf(ser) + return results + + return numba_func + + def apply_with_numba(self) -> dict[int, Any]: + nb_func = self.generate_numba_apply_func( + cast(Callable, self.func), **self.engine_kwargs + ) + from pandas.core._numba.extensions import set_numba_data + + index = self.obj.index + columns = self.obj.columns + + # Convert from numba dict to regular dict + # Our isinstance checks in the df constructor don't pass for numbas typed dict + with set_numba_data(index) as index, set_numba_data(columns) as columns: + res = dict(nb_func(self.values, columns, index)) + return res + + @property + def result_index(self) -> Index: + return self.columns + + @property + def result_columns(self) -> Index: + return self.index + + def wrap_results_for_axis( + self, results: ResType, res_index: Index + ) -> DataFrame | Series: + """return the results for the rows""" + + if self.result_type == "reduce": + # e.g. test_apply_dict GH#8735 + res = self.obj._constructor_sliced(results) + res.index = res_index + return res + + elif self.result_type is None and all( + isinstance(x, dict) for x in results.values() + ): + # Our operation was a to_dict op e.g. + # test_apply_dict GH#8735, test_apply_reduce_to_dict GH#25196 #37544 + res = self.obj._constructor_sliced(results) + res.index = res_index + return res + + try: + result = self.obj._constructor(data=results) + except ValueError as err: + if "All arrays must be of the same length" in str(err): + # e.g. result = [[2, 3], [1.5], ['foo', 'bar']] + # see test_agg_listlike_result GH#29587 + res = self.obj._constructor_sliced(results) + res.index = res_index + return res + else: + raise + + if not isinstance(results[0], ABCSeries): + if len(result.index) == len(self.res_columns): + result.index = self.res_columns + + if len(result.columns) == len(res_index): + result.columns = res_index + + return result + + +class FrameColumnApply(FrameApply): + axis: AxisInt = 1 + + def apply_broadcast(self, target: DataFrame) -> DataFrame: + result = super().apply_broadcast(target.T) + return result.T + + @property + def series_generator(self) -> Generator[Series, None, None]: + values = self.values + values = ensure_wrapped_if_datetimelike(values) + assert len(values) > 0 + + # We create one Series object, and will swap out the data inside + # of it. Kids: don't do this at home. + ser = self.obj._ixs(0, axis=0) + mgr = ser._mgr + + is_view = mgr.blocks[0].refs.has_reference() # type: ignore[union-attr] + + if isinstance(ser.dtype, ExtensionDtype): + # values will be incorrect for this block + # TODO(EA2D): special case would be unnecessary with 2D EAs + obj = self.obj + for i in range(len(obj)): + yield obj._ixs(i, axis=0) + + else: + for arr, name in zip(values, self.index): + # GH#35462 re-pin mgr in case setitem changed it + ser._mgr = mgr + mgr.set_values(arr) + object.__setattr__(ser, "_name", name) + if not is_view: + # In apply_series_generator we store the a shallow copy of the + # result, which potentially increases the ref count of this reused + # `ser` object (depending on the result of the applied function) + # -> if that happened and `ser` is already a copy, then we reset + # the refs here to avoid triggering a unnecessary CoW inside the + # applied function (https://github.com/pandas-dev/pandas/pull/56212) + mgr.blocks[0].refs = BlockValuesRefs(mgr.blocks[0]) # type: ignore[union-attr] + yield ser + + @staticmethod + @functools.cache + def generate_numba_apply_func( + func, nogil=True, nopython=True, parallel=False + ) -> Callable[[npt.NDArray, Index, Index], dict[int, Any]]: + numba = import_optional_dependency("numba") + from pandas import Series + from pandas.core._numba.extensions import maybe_cast_str + + jitted_udf = numba.extending.register_jitable(func) + + @numba.jit(nogil=nogil, nopython=nopython, parallel=parallel) + def numba_func(values, col_names_index, index): + results = {} + # Currently the parallel argument doesn't get passed through here + # (it's disabled) since the dicts in numba aren't thread-safe. + for i in range(values.shape[0]): + # Create the series + # TODO: values corrupted without the copy + ser = Series( + values[i].copy(), + index=col_names_index, + name=maybe_cast_str(index[i]), + ) + results[i] = jitted_udf(ser) + + return results + + return numba_func + + def apply_with_numba(self) -> dict[int, Any]: + nb_func = self.generate_numba_apply_func( + cast(Callable, self.func), **self.engine_kwargs + ) + + from pandas.core._numba.extensions import set_numba_data + + # Convert from numba dict to regular dict + # Our isinstance checks in the df constructor don't pass for numbas typed dict + with set_numba_data(self.obj.index) as index, set_numba_data( + self.columns + ) as columns: + res = dict(nb_func(self.values, columns, index)) + + return res + + @property + def result_index(self) -> Index: + return self.index + + @property + def result_columns(self) -> Index: + return self.columns + + def wrap_results_for_axis( + self, results: ResType, res_index: Index + ) -> DataFrame | Series: + """return the results for the columns""" + result: DataFrame | Series + + # we have requested to expand + if self.result_type == "expand": + result = self.infer_to_same_shape(results, res_index) + + # we have a non-series and don't want inference + elif not isinstance(results[0], ABCSeries): + result = self.obj._constructor_sliced(results) + result.index = res_index + + # we may want to infer results + else: + result = self.infer_to_same_shape(results, res_index) + + return result + + def infer_to_same_shape(self, results: ResType, res_index: Index) -> DataFrame: + """infer the results to the same shape as the input object""" + result = self.obj._constructor(data=results) + result = result.T + + # set the index + result.index = res_index + + # infer dtypes + result = result.infer_objects(copy=False) + + return result + + +class SeriesApply(NDFrameApply): + obj: Series + axis: AxisInt = 0 + by_row: Literal[False, "compat", "_compat"] # only relevant for apply() + + def __init__( + self, + obj: Series, + func: AggFuncType, + *, + convert_dtype: bool | lib.NoDefault = lib.no_default, + by_row: Literal[False, "compat", "_compat"] = "compat", + args, + kwargs, + ) -> None: + if convert_dtype is lib.no_default: + convert_dtype = True + else: + warnings.warn( + "the convert_dtype parameter is deprecated and will be removed in a " + "future version. Do ``ser.astype(object).apply()`` " + "instead if you want ``convert_dtype=False``.", + FutureWarning, + stacklevel=find_stack_level(), + ) + self.convert_dtype = convert_dtype + + super().__init__( + obj, + func, + raw=False, + result_type=None, + by_row=by_row, + args=args, + kwargs=kwargs, + ) + + def apply(self) -> DataFrame | Series: + obj = self.obj + + if len(obj) == 0: + return self.apply_empty_result() + + # dispatch to handle list-like or dict-like + if is_list_like(self.func): + return self.apply_list_or_dict_like() + + if isinstance(self.func, str): + # if we are a string, try to dispatch + return self.apply_str() + + if self.by_row == "_compat": + return self.apply_compat() + + # self.func is Callable + return self.apply_standard() + + def agg(self): + result = super().agg() + if result is None: + obj = self.obj + func = self.func + # string, list-like, and dict-like are entirely handled in super + assert callable(func) + + # GH53325: The setup below is just to keep current behavior while emitting a + # deprecation message. In the future this will all be replaced with a simple + # `result = f(self.obj, *self.args, **self.kwargs)`. + try: + result = obj.apply(func, args=self.args, **self.kwargs) + except (ValueError, AttributeError, TypeError): + result = func(obj, *self.args, **self.kwargs) + else: + msg = ( + f"using {func} in {type(obj).__name__}.agg cannot aggregate and " + f"has been deprecated. Use {type(obj).__name__}.transform to " + f"keep behavior unchanged." + ) + warnings.warn(msg, FutureWarning, stacklevel=find_stack_level()) + + return result + + def apply_empty_result(self) -> Series: + obj = self.obj + return obj._constructor(dtype=obj.dtype, index=obj.index).__finalize__( + obj, method="apply" + ) + + def apply_compat(self): + """compat apply method for funcs in listlikes and dictlikes. + + Used for each callable when giving listlikes and dictlikes of callables to + apply. Needed for compatibility with Pandas < v2.1. + + .. versionadded:: 2.1.0 + """ + obj = self.obj + func = self.func + + if callable(func): + f = com.get_cython_func(func) + if f and not self.args and not self.kwargs: + return obj.apply(func, by_row=False) + + try: + result = obj.apply(func, by_row="compat") + except (ValueError, AttributeError, TypeError): + result = obj.apply(func, by_row=False) + return result + + def apply_standard(self) -> DataFrame | Series: + # caller is responsible for ensuring that f is Callable + func = cast(Callable, self.func) + obj = self.obj + + if isinstance(func, np.ufunc): + with np.errstate(all="ignore"): + return func(obj, *self.args, **self.kwargs) + elif not self.by_row: + return func(obj, *self.args, **self.kwargs) + + if self.args or self.kwargs: + # _map_values does not support args/kwargs + def curried(x): + return func(x, *self.args, **self.kwargs) + + else: + curried = func + + # row-wise access + # apply doesn't have a `na_action` keyword and for backward compat reasons + # we need to give `na_action="ignore"` for categorical data. + # TODO: remove the `na_action="ignore"` when that default has been changed in + # Categorical (GH51645). + action = "ignore" if isinstance(obj.dtype, CategoricalDtype) else None + mapped = obj._map_values( + mapper=curried, na_action=action, convert=self.convert_dtype + ) + + if len(mapped) and isinstance(mapped[0], ABCSeries): + # GH#43986 Need to do list(mapped) in order to get treated as nested + # See also GH#25959 regarding EA support + return obj._constructor_expanddim(list(mapped), index=obj.index) + else: + return obj._constructor(mapped, index=obj.index).__finalize__( + obj, method="apply" + ) + + +class GroupByApply(Apply): + obj: GroupBy | Resampler | BaseWindow + + def __init__( + self, + obj: GroupBy[NDFrameT], + func: AggFuncType, + *, + args, + kwargs, + ) -> None: + kwargs = kwargs.copy() + self.axis = obj.obj._get_axis_number(kwargs.get("axis", 0)) + super().__init__( + obj, + func, + raw=False, + result_type=None, + args=args, + kwargs=kwargs, + ) + + def apply(self): + raise NotImplementedError + + def transform(self): + raise NotImplementedError + + def agg_or_apply_list_like( + self, op_name: Literal["agg", "apply"] + ) -> DataFrame | Series: + obj = self.obj + kwargs = self.kwargs + if op_name == "apply": + kwargs = {**kwargs, "by_row": False} + + if getattr(obj, "axis", 0) == 1: + raise NotImplementedError("axis other than 0 is not supported") + + if obj._selected_obj.ndim == 1: + # For SeriesGroupBy this matches _obj_with_exclusions + selected_obj = obj._selected_obj + else: + selected_obj = obj._obj_with_exclusions + + # Only set as_index=True on groupby objects, not Window or Resample + # that inherit from this class. + with com.temp_setattr( + obj, "as_index", True, condition=hasattr(obj, "as_index") + ): + keys, results = self.compute_list_like(op_name, selected_obj, kwargs) + result = self.wrap_results_list_like(keys, results) + return result + + def agg_or_apply_dict_like( + self, op_name: Literal["agg", "apply"] + ) -> DataFrame | Series: + from pandas.core.groupby.generic import ( + DataFrameGroupBy, + SeriesGroupBy, + ) + + assert op_name in ["agg", "apply"] + + obj = self.obj + kwargs = {} + if op_name == "apply": + by_row = "_compat" if self.by_row else False + kwargs.update({"by_row": by_row}) + + if getattr(obj, "axis", 0) == 1: + raise NotImplementedError("axis other than 0 is not supported") + + selected_obj = obj._selected_obj + selection = obj._selection + + is_groupby = isinstance(obj, (DataFrameGroupBy, SeriesGroupBy)) + + # Numba Groupby engine/engine-kwargs passthrough + if is_groupby: + engine = self.kwargs.get("engine", None) + engine_kwargs = self.kwargs.get("engine_kwargs", None) + kwargs.update({"engine": engine, "engine_kwargs": engine_kwargs}) + + with com.temp_setattr( + obj, "as_index", True, condition=hasattr(obj, "as_index") + ): + result_index, result_data = self.compute_dict_like( + op_name, selected_obj, selection, kwargs + ) + result = self.wrap_results_dict_like(selected_obj, result_index, result_data) + return result + + +class ResamplerWindowApply(GroupByApply): + axis: AxisInt = 0 + obj: Resampler | BaseWindow + + def __init__( + self, + obj: Resampler | BaseWindow, + func: AggFuncType, + *, + args, + kwargs, + ) -> None: + super(GroupByApply, self).__init__( + obj, + func, + raw=False, + result_type=None, + args=args, + kwargs=kwargs, + ) + + def apply(self): + raise NotImplementedError + + def transform(self): + raise NotImplementedError + + +def reconstruct_func( + func: AggFuncType | None, **kwargs +) -> tuple[bool, AggFuncType, tuple[str, ...] | None, npt.NDArray[np.intp] | None]: + """ + This is the internal function to reconstruct func given if there is relabeling + or not and also normalize the keyword to get new order of columns. + + If named aggregation is applied, `func` will be None, and kwargs contains the + column and aggregation function information to be parsed; + If named aggregation is not applied, `func` is either string (e.g. 'min') or + Callable, or list of them (e.g. ['min', np.max]), or the dictionary of column name + and str/Callable/list of them (e.g. {'A': 'min'}, or {'A': [np.min, lambda x: x]}) + + If relabeling is True, will return relabeling, reconstructed func, column + names, and the reconstructed order of columns. + If relabeling is False, the columns and order will be None. + + Parameters + ---------- + func: agg function (e.g. 'min' or Callable) or list of agg functions + (e.g. ['min', np.max]) or dictionary (e.g. {'A': ['min', np.max]}). + **kwargs: dict, kwargs used in is_multi_agg_with_relabel and + normalize_keyword_aggregation function for relabelling + + Returns + ------- + relabelling: bool, if there is relabelling or not + func: normalized and mangled func + columns: tuple of column names + order: array of columns indices + + Examples + -------- + >>> reconstruct_func(None, **{"foo": ("col", "min")}) + (True, defaultdict(, {'col': ['min']}), ('foo',), array([0])) + + >>> reconstruct_func("min") + (False, 'min', None, None) + """ + relabeling = func is None and is_multi_agg_with_relabel(**kwargs) + columns: tuple[str, ...] | None = None + order: npt.NDArray[np.intp] | None = None + + if not relabeling: + if isinstance(func, list) and len(func) > len(set(func)): + # GH 28426 will raise error if duplicated function names are used and + # there is no reassigned name + raise SpecificationError( + "Function names must be unique if there is no new column names " + "assigned" + ) + if func is None: + # nicer error message + raise TypeError("Must provide 'func' or tuples of '(column, aggfunc).") + + if relabeling: + # error: Incompatible types in assignment (expression has type + # "MutableMapping[Hashable, list[Callable[..., Any] | str]]", variable has type + # "Callable[..., Any] | str | list[Callable[..., Any] | str] | + # MutableMapping[Hashable, Callable[..., Any] | str | list[Callable[..., Any] | + # str]] | None") + func, columns, order = normalize_keyword_aggregation( # type: ignore[assignment] + kwargs + ) + assert func is not None + + return relabeling, func, columns, order + + +def is_multi_agg_with_relabel(**kwargs) -> bool: + """ + Check whether kwargs passed to .agg look like multi-agg with relabeling. + + Parameters + ---------- + **kwargs : dict + + Returns + ------- + bool + + Examples + -------- + >>> is_multi_agg_with_relabel(a="max") + False + >>> is_multi_agg_with_relabel(a_max=("a", "max"), a_min=("a", "min")) + True + >>> is_multi_agg_with_relabel() + False + """ + return all(isinstance(v, tuple) and len(v) == 2 for v in kwargs.values()) and ( + len(kwargs) > 0 + ) + + +def normalize_keyword_aggregation( + kwargs: dict, +) -> tuple[ + MutableMapping[Hashable, list[AggFuncTypeBase]], + tuple[str, ...], + npt.NDArray[np.intp], +]: + """ + Normalize user-provided "named aggregation" kwargs. + Transforms from the new ``Mapping[str, NamedAgg]`` style kwargs + to the old Dict[str, List[scalar]]]. + + Parameters + ---------- + kwargs : dict + + Returns + ------- + aggspec : dict + The transformed kwargs. + columns : tuple[str, ...] + The user-provided keys. + col_idx_order : List[int] + List of columns indices. + + Examples + -------- + >>> normalize_keyword_aggregation({"output": ("input", "sum")}) + (defaultdict(, {'input': ['sum']}), ('output',), array([0])) + """ + from pandas.core.indexes.base import Index + + # Normalize the aggregation functions as Mapping[column, List[func]], + # process normally, then fixup the names. + # TODO: aggspec type: typing.Dict[str, List[AggScalar]] + aggspec = defaultdict(list) + order = [] + columns, pairs = list(zip(*kwargs.items())) + + for column, aggfunc in pairs: + aggspec[column].append(aggfunc) + order.append((column, com.get_callable_name(aggfunc) or aggfunc)) + + # uniquify aggfunc name if duplicated in order list + uniquified_order = _make_unique_kwarg_list(order) + + # GH 25719, due to aggspec will change the order of assigned columns in aggregation + # uniquified_aggspec will store uniquified order list and will compare it with order + # based on index + aggspec_order = [ + (column, com.get_callable_name(aggfunc) or aggfunc) + for column, aggfuncs in aggspec.items() + for aggfunc in aggfuncs + ] + uniquified_aggspec = _make_unique_kwarg_list(aggspec_order) + + # get the new index of columns by comparison + col_idx_order = Index(uniquified_aggspec).get_indexer(uniquified_order) + return aggspec, columns, col_idx_order + + +def _make_unique_kwarg_list( + seq: Sequence[tuple[Any, Any]] +) -> Sequence[tuple[Any, Any]]: + """ + Uniquify aggfunc name of the pairs in the order list + + Examples: + -------- + >>> kwarg_list = [('a', ''), ('a', ''), ('b', '')] + >>> _make_unique_kwarg_list(kwarg_list) + [('a', '_0'), ('a', '_1'), ('b', '')] + """ + return [ + (pair[0], f"{pair[1]}_{seq[:i].count(pair)}") if seq.count(pair) > 1 else pair + for i, pair in enumerate(seq) + ] + + +def relabel_result( + result: DataFrame | Series, + func: dict[str, list[Callable | str]], + columns: Iterable[Hashable], + order: Iterable[int], +) -> dict[Hashable, Series]: + """ + Internal function to reorder result if relabelling is True for + dataframe.agg, and return the reordered result in dict. + + Parameters: + ---------- + result: Result from aggregation + func: Dict of (column name, funcs) + columns: New columns name for relabelling + order: New order for relabelling + + Examples + -------- + >>> from pandas.core.apply import relabel_result + >>> result = pd.DataFrame( + ... {"A": [np.nan, 2, np.nan], "C": [6, np.nan, np.nan], "B": [np.nan, 4, 2.5]}, + ... index=["max", "mean", "min"] + ... ) + >>> funcs = {"A": ["max"], "C": ["max"], "B": ["mean", "min"]} + >>> columns = ("foo", "aab", "bar", "dat") + >>> order = [0, 1, 2, 3] + >>> result_in_dict = relabel_result(result, funcs, columns, order) + >>> pd.DataFrame(result_in_dict, index=columns) + A C B + foo 2.0 NaN NaN + aab NaN 6.0 NaN + bar NaN NaN 4.0 + dat NaN NaN 2.5 + """ + from pandas.core.indexes.base import Index + + reordered_indexes = [ + pair[0] for pair in sorted(zip(columns, order), key=lambda t: t[1]) + ] + reordered_result_in_dict: dict[Hashable, Series] = {} + idx = 0 + + reorder_mask = not isinstance(result, ABCSeries) and len(result.columns) > 1 + for col, fun in func.items(): + s = result[col].dropna() + + # In the `_aggregate`, the callable names are obtained and used in `result`, and + # these names are ordered alphabetically. e.g. + # C2 C1 + # 1 NaN + # amax NaN 4.0 + # max NaN 4.0 + # sum 18.0 6.0 + # Therefore, the order of functions for each column could be shuffled + # accordingly so need to get the callable name if it is not parsed names, and + # reorder the aggregated result for each column. + # e.g. if df.agg(c1=("C2", sum), c2=("C2", lambda x: min(x))), correct order is + # [sum, ], but in `result`, it will be [, sum], and we need to + # reorder so that aggregated values map to their functions regarding the order. + + # However there is only one column being used for aggregation, not need to + # reorder since the index is not sorted, and keep as is in `funcs`, e.g. + # A + # min 1.0 + # mean 1.5 + # mean 1.5 + if reorder_mask: + fun = [ + com.get_callable_name(f) if not isinstance(f, str) else f for f in fun + ] + col_idx_order = Index(s.index).get_indexer(fun) + s = s.iloc[col_idx_order] + + # assign the new user-provided "named aggregation" as index names, and reindex + # it based on the whole user-provided names. + s.index = reordered_indexes[idx : idx + len(fun)] + reordered_result_in_dict[col] = s.reindex(columns, copy=False) + idx = idx + len(fun) + return reordered_result_in_dict + + +def reconstruct_and_relabel_result(result, func, **kwargs) -> DataFrame | Series: + from pandas import DataFrame + + relabeling, func, columns, order = reconstruct_func(func, **kwargs) + + if relabeling: + # This is to keep the order to columns occurrence unchanged, and also + # keep the order of new columns occurrence unchanged + + # For the return values of reconstruct_func, if relabeling is + # False, columns and order will be None. + assert columns is not None + assert order is not None + + result_in_dict = relabel_result(result, func, columns, order) + result = DataFrame(result_in_dict, index=columns) + + return result + + +# TODO: Can't use, because mypy doesn't like us setting __name__ +# error: "partial[Any]" has no attribute "__name__" +# the type is: +# typing.Sequence[Callable[..., ScalarResult]] +# -> typing.Sequence[Callable[..., ScalarResult]]: + + +def _managle_lambda_list(aggfuncs: Sequence[Any]) -> Sequence[Any]: + """ + Possibly mangle a list of aggfuncs. + + Parameters + ---------- + aggfuncs : Sequence + + Returns + ------- + mangled: list-like + A new AggSpec sequence, where lambdas have been converted + to have unique names. + + Notes + ----- + If just one aggfunc is passed, the name will not be mangled. + """ + if len(aggfuncs) <= 1: + # don't mangle for .agg([lambda x: .]) + return aggfuncs + i = 0 + mangled_aggfuncs = [] + for aggfunc in aggfuncs: + if com.get_callable_name(aggfunc) == "": + aggfunc = partial(aggfunc) + aggfunc.__name__ = f"" + i += 1 + mangled_aggfuncs.append(aggfunc) + + return mangled_aggfuncs + + +def maybe_mangle_lambdas(agg_spec: Any) -> Any: + """ + Make new lambdas with unique names. + + Parameters + ---------- + agg_spec : Any + An argument to GroupBy.agg. + Non-dict-like `agg_spec` are pass through as is. + For dict-like `agg_spec` a new spec is returned + with name-mangled lambdas. + + Returns + ------- + mangled : Any + Same type as the input. + + Examples + -------- + >>> maybe_mangle_lambdas('sum') + 'sum' + >>> maybe_mangle_lambdas([lambda: 1, lambda: 2]) # doctest: +SKIP + [, + .f(*args, **kwargs)>] + """ + is_dict = is_dict_like(agg_spec) + if not (is_dict or is_list_like(agg_spec)): + return agg_spec + mangled_aggspec = type(agg_spec)() # dict or OrderedDict + + if is_dict: + for key, aggfuncs in agg_spec.items(): + if is_list_like(aggfuncs) and not is_dict_like(aggfuncs): + mangled_aggfuncs = _managle_lambda_list(aggfuncs) + else: + mangled_aggfuncs = aggfuncs + + mangled_aggspec[key] = mangled_aggfuncs + else: + mangled_aggspec = _managle_lambda_list(agg_spec) + + return mangled_aggspec + + +def validate_func_kwargs( + kwargs: dict, +) -> tuple[list[str], list[str | Callable[..., Any]]]: + """ + Validates types of user-provided "named aggregation" kwargs. + `TypeError` is raised if aggfunc is not `str` or callable. + + Parameters + ---------- + kwargs : dict + + Returns + ------- + columns : List[str] + List of user-provided keys. + func : List[Union[str, callable[...,Any]]] + List of user-provided aggfuncs + + Examples + -------- + >>> validate_func_kwargs({'one': 'min', 'two': 'max'}) + (['one', 'two'], ['min', 'max']) + """ + tuple_given_message = "func is expected but received {} in **kwargs." + columns = list(kwargs) + func = [] + for col_func in kwargs.values(): + if not (isinstance(col_func, str) or callable(col_func)): + raise TypeError(tuple_given_message.format(type(col_func).__name__)) + func.append(col_func) + if not columns: + no_arg_message = "Must provide 'func' or named aggregation **kwargs." + raise TypeError(no_arg_message) + return columns, func + + +def include_axis(op_name: Literal["agg", "apply"], colg: Series | DataFrame) -> bool: + return isinstance(colg, ABCDataFrame) or ( + isinstance(colg, ABCSeries) and op_name == "agg" + ) + + +def warn_alias_replacement( + obj: AggObjType, + func: Callable, + alias: str, +) -> None: + if alias.startswith("np."): + full_alias = alias + else: + full_alias = f"{type(obj).__name__}.{alias}" + alias = f'"{alias}"' + warnings.warn( + f"The provided callable {func} is currently using " + f"{full_alias}. In a future version of pandas, " + f"the provided callable will be used directly. To keep current " + f"behavior pass the string {alias} instead.", + category=FutureWarning, + stacklevel=find_stack_level(), + ) diff --git a/shared/package-files/0a/0a199ef5f591a984737c86cbc3b57fc9e88859ddc5e1d15e1ba2261c7af85eac/windows_compatibility.h b/shared/package-files/0a/0a199ef5f591a984737c86cbc3b57fc9e88859ddc5e1d15e1ba2261c7af85eac/windows_compatibility.h new file mode 100644 index 0000000000000000000000000000000000000000..810a91201f3352d0c99a673d653ed21431c1c721 --- /dev/null +++ b/shared/package-files/0a/0a199ef5f591a984737c86cbc3b57fc9e88859ddc5e1d15e1ba2261c7af85eac/windows_compatibility.h @@ -0,0 +1,39 @@ +// 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. + +#ifdef _WIN32 + +// Windows defines min and max macros that mess up std::min/max +# ifndef NOMINMAX +# define NOMINMAX +# endif + +# define WIN32_LEAN_AND_MEAN + +// Set Windows 7 as a conservative minimum for Apache Arrow +# if defined(_WIN32_WINNT) && _WIN32_WINNT < 0x601 +# undef _WIN32_WINNT +# endif +# ifndef _WIN32_WINNT +# define _WIN32_WINNT 0x601 +# endif + +# include + +# include "arrow/util/windows_fixup.h" + +#endif // _WIN32 diff --git a/shared/package-files/0a/0a1b85826854d35863e31808f0668abfabdf33606e8f06bd8bb7761401e3edc0/serializer.py b/shared/package-files/0a/0a1b85826854d35863e31808f0668abfabdf33606e8f06bd8bb7761401e3edc0/serializer.py new file mode 100644 index 0000000000000000000000000000000000000000..fe911e67ae7a739abb491fbbc6834b9c37bbda4b --- /dev/null +++ b/shared/package-files/0a/0a1b85826854d35863e31808f0668abfabdf33606e8f06bd8bb7761401e3edc0/serializer.py @@ -0,0 +1,111 @@ + +__all__ = ['Serializer', 'SerializerError'] + +from .error import YAMLError +from .events import * +from .nodes import * + +class SerializerError(YAMLError): + pass + +class Serializer: + + ANCHOR_TEMPLATE = 'id%03d' + + def __init__(self, encoding=None, + explicit_start=None, explicit_end=None, version=None, tags=None): + self.use_encoding = encoding + self.use_explicit_start = explicit_start + self.use_explicit_end = explicit_end + self.use_version = version + self.use_tags = tags + self.serialized_nodes = {} + self.anchors = {} + self.last_anchor_id = 0 + self.closed = None + + def open(self): + if self.closed is None: + self.emit(StreamStartEvent(encoding=self.use_encoding)) + self.closed = False + elif self.closed: + raise SerializerError("serializer is closed") + else: + raise SerializerError("serializer is already opened") + + def close(self): + if self.closed is None: + raise SerializerError("serializer is not opened") + elif not self.closed: + self.emit(StreamEndEvent()) + self.closed = True + + #def __del__(self): + # self.close() + + def serialize(self, node): + if self.closed is None: + raise SerializerError("serializer is not opened") + elif self.closed: + raise SerializerError("serializer is closed") + self.emit(DocumentStartEvent(explicit=self.use_explicit_start, + version=self.use_version, tags=self.use_tags)) + self.anchor_node(node) + self.serialize_node(node, None, None) + self.emit(DocumentEndEvent(explicit=self.use_explicit_end)) + self.serialized_nodes = {} + self.anchors = {} + self.last_anchor_id = 0 + + def anchor_node(self, node): + if node in self.anchors: + if self.anchors[node] is None: + self.anchors[node] = self.generate_anchor(node) + else: + self.anchors[node] = None + if isinstance(node, SequenceNode): + for item in node.value: + self.anchor_node(item) + elif isinstance(node, MappingNode): + for key, value in node.value: + self.anchor_node(key) + self.anchor_node(value) + + def generate_anchor(self, node): + self.last_anchor_id += 1 + return self.ANCHOR_TEMPLATE % self.last_anchor_id + + def serialize_node(self, node, parent, index): + alias = self.anchors[node] + if node in self.serialized_nodes: + self.emit(AliasEvent(alias)) + else: + self.serialized_nodes[node] = True + self.descend_resolver(parent, index) + if isinstance(node, ScalarNode): + detected_tag = self.resolve(ScalarNode, node.value, (True, False)) + default_tag = self.resolve(ScalarNode, node.value, (False, True)) + implicit = (node.tag == detected_tag), (node.tag == default_tag) + self.emit(ScalarEvent(alias, node.tag, implicit, node.value, + style=node.style)) + elif isinstance(node, SequenceNode): + implicit = (node.tag + == self.resolve(SequenceNode, node.value, True)) + self.emit(SequenceStartEvent(alias, node.tag, implicit, + flow_style=node.flow_style)) + index = 0 + for item in node.value: + self.serialize_node(item, node, index) + index += 1 + self.emit(SequenceEndEvent()) + elif isinstance(node, MappingNode): + implicit = (node.tag + == self.resolve(MappingNode, node.value, True)) + self.emit(MappingStartEvent(alias, node.tag, implicit, + flow_style=node.flow_style)) + for key, value in node.value: + self.serialize_node(key, node, None) + self.serialize_node(value, node, key) + self.emit(MappingEndEvent()) + self.ascend_resolver() + diff --git a/shared/package-files/0a/0a1c4f6354278a834eb757c4aa16802ffd50df45385f064820a6bd6add82849c/__init__.py b/shared/package-files/0a/0a1c4f6354278a834eb757c4aa16802ffd50df45385f064820a6bd6add82849c/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..05d58662da794990d63d39e9ca72afc2c4de0b7b --- /dev/null +++ b/shared/package-files/0a/0a1c4f6354278a834eb757c4aa16802ffd50df45385f064820a6bd6add82849c/__init__.py @@ -0,0 +1,96 @@ +import torch +from . import convert_frame, eval_frame, resume_execution +from .backends.registry import list_backends, lookup_backend, register_backend +from .callback import callback_handler, on_compile_end, on_compile_start +from .code_context import code_context +from .convert_frame import replay +from .decorators import ( + allow_in_graph, + assume_constant_result, + disable, + disallow_in_graph, + forbid_in_graph, + graph_break, + mark_dynamic, + mark_static, + mark_static_address, + maybe_mark_dynamic, + run, +) +from .eval_frame import ( + _reset_guarded_backend_cache, + explain, + export, + is_dynamo_supported, + is_inductor_supported, + optimize, + optimize_assert, + OptimizedModule, + reset_code, +) +from .external_utils import is_compiling +from .utils import graph_break_reasons, guard_failures, orig_code_map, reset_frame_count + +__all__ = [ + "allow_in_graph", + "assume_constant_result", + "disallow_in_graph", + "forbid_in_graph", + "graph_break", + "mark_dynamic", + "maybe_mark_dynamic", + "mark_static", + "mark_static_address", + "optimize", + "optimize_assert", + "export", + "explain", + "run", + "replay", + "disable", + "reset", + "OptimizedModule", + "is_compiling", + "register_backend", + "list_backends", + "lookup_backend", +] + +if torch.manual_seed is torch.random.manual_seed: + import torch.jit._builtins + + # Wrap manual_seed with the disable decorator. + # Can't do it at its implementation due to dependency issues. + torch.manual_seed = disable(torch.manual_seed) + # Add the new manual_seed to the builtin registry. + torch.jit._builtins._register_builtin(torch.manual_seed, "aten::manual_seed") + + +def reset() -> None: + """Clear all compile caches and restore initial state""" + with convert_frame.compile_lock: + reset_code_caches() + convert_frame.input_codes.clear() + convert_frame.output_codes.clear() + orig_code_map.clear() + guard_failures.clear() + graph_break_reasons.clear() + resume_execution.ContinueExecutionCache.cache.clear() + _reset_guarded_backend_cache() + reset_frame_count() + torch._C._dynamo.compiled_autograd.clear_cache() + convert_frame.FRAME_COUNTER = 0 + convert_frame.FRAME_COMPILE_COUNTER.clear() + callback_handler.clear() + + +def reset_code_caches() -> None: + """Clear compile caches that are keyed by code objects""" + with convert_frame.compile_lock: + for weak_code in ( + convert_frame.input_codes.seen + convert_frame.output_codes.seen + ): + code = weak_code() + if code: + reset_code(code) + code_context.clear() diff --git a/shared/package-files/0a/0a1e588b3691ac27ccca412e65d1c5d11688cafb56be84972f8bfa1350aef856/__init__.py b/shared/package-files/0a/0a1e588b3691ac27ccca412e65d1c5d11688cafb56be84972f8bfa1350aef856/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..710e03e4fe0e37ea1bbd3fbbc09933db4e120f4a --- /dev/null +++ b/shared/package-files/0a/0a1e588b3691ac27ccca412e65d1c5d11688cafb56be84972f8bfa1350aef856/__init__.py @@ -0,0 +1,1973 @@ +# mypy: allow-untyped-defs +"""Command line options, ini-file and conftest.py processing.""" + +from __future__ import annotations + +import argparse +import collections.abc +import copy +import dataclasses +import enum +from functools import lru_cache +import glob +import importlib.metadata +import inspect +import os +import pathlib +import re +import shlex +import sys +from textwrap import dedent +import types +from types import FunctionType +from typing import Any +from typing import Callable +from typing import cast +from typing import Final +from typing import final +from typing import Generator +from typing import IO +from typing import Iterable +from typing import Iterator +from typing import Sequence +from typing import TextIO +from typing import Type +from typing import TYPE_CHECKING +import warnings + +import pluggy +from pluggy import HookimplMarker +from pluggy import HookimplOpts +from pluggy import HookspecMarker +from pluggy import HookspecOpts +from pluggy import PluginManager + +from .compat import PathAwareHookProxy +from .exceptions import PrintHelp as PrintHelp +from .exceptions import UsageError as UsageError +from .findpaths import determine_setup +from _pytest import __version__ +import _pytest._code +from _pytest._code import ExceptionInfo +from _pytest._code import filter_traceback +from _pytest._code.code import TracebackStyle +from _pytest._io import TerminalWriter +from _pytest.config.argparsing import Argument +from _pytest.config.argparsing import Parser +import _pytest.deprecated +import _pytest.hookspec +from _pytest.outcomes import fail +from _pytest.outcomes import Skipped +from _pytest.pathlib import absolutepath +from _pytest.pathlib import bestrelpath +from _pytest.pathlib import import_path +from _pytest.pathlib import ImportMode +from _pytest.pathlib import resolve_package_path +from _pytest.pathlib import safe_exists +from _pytest.stash import Stash +from _pytest.warning_types import PytestConfigWarning +from _pytest.warning_types import warn_explicit_for + + +if TYPE_CHECKING: + from _pytest.cacheprovider import Cache + from _pytest.terminal import TerminalReporter + + +_PluggyPlugin = object +"""A type to represent plugin objects. + +Plugins can be any namespace, so we can't narrow it down much, but we use an +alias to make the intent clear. + +Ideally this type would be provided by pluggy itself. +""" + + +hookimpl = HookimplMarker("pytest") +hookspec = HookspecMarker("pytest") + + +@final +class ExitCode(enum.IntEnum): + """Encodes the valid exit codes by pytest. + + Currently users and plugins may supply other exit codes as well. + + .. versionadded:: 5.0 + """ + + #: Tests passed. + OK = 0 + #: Tests failed. + TESTS_FAILED = 1 + #: pytest was interrupted. + INTERRUPTED = 2 + #: An internal error got in the way. + INTERNAL_ERROR = 3 + #: pytest was misused. + USAGE_ERROR = 4 + #: pytest couldn't find tests. + NO_TESTS_COLLECTED = 5 + + +class ConftestImportFailure(Exception): + def __init__( + self, + path: pathlib.Path, + *, + cause: Exception, + ) -> None: + self.path = path + self.cause = cause + + def __str__(self) -> str: + return f"{type(self.cause).__name__}: {self.cause} (from {self.path})" + + +def filter_traceback_for_conftest_import_failure( + entry: _pytest._code.TracebackEntry, +) -> bool: + """Filter tracebacks entries which point to pytest internals or importlib. + + Make a special case for importlib because we use it to import test modules and conftest files + in _pytest.pathlib.import_path. + """ + return filter_traceback(entry) and "importlib" not in str(entry.path).split(os.sep) + + +def main( + args: list[str] | os.PathLike[str] | None = None, + plugins: Sequence[str | _PluggyPlugin] | None = None, +) -> int | ExitCode: + """Perform an in-process test run. + + :param args: + List of command line arguments. If `None` or not given, defaults to reading + arguments directly from the process command line (:data:`sys.argv`). + :param plugins: List of plugin objects to be auto-registered during initialization. + + :returns: An exit code. + """ + old_pytest_version = os.environ.get("PYTEST_VERSION") + try: + os.environ["PYTEST_VERSION"] = __version__ + try: + config = _prepareconfig(args, plugins) + except ConftestImportFailure as e: + exc_info = ExceptionInfo.from_exception(e.cause) + tw = TerminalWriter(sys.stderr) + tw.line(f"ImportError while loading conftest '{e.path}'.", red=True) + exc_info.traceback = exc_info.traceback.filter( + filter_traceback_for_conftest_import_failure + ) + exc_repr = ( + exc_info.getrepr(style="short", chain=False) + if exc_info.traceback + else exc_info.exconly() + ) + formatted_tb = str(exc_repr) + for line in formatted_tb.splitlines(): + tw.line(line.rstrip(), red=True) + return ExitCode.USAGE_ERROR + else: + try: + ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) + try: + return ExitCode(ret) + except ValueError: + return ret + finally: + config._ensure_unconfigure() + except UsageError as e: + tw = TerminalWriter(sys.stderr) + for msg in e.args: + tw.line(f"ERROR: {msg}\n", red=True) + return ExitCode.USAGE_ERROR + finally: + if old_pytest_version is None: + os.environ.pop("PYTEST_VERSION", None) + else: + os.environ["PYTEST_VERSION"] = old_pytest_version + + +def console_main() -> int: + """The CLI entry point of pytest. + + This function is not meant for programmable use; use `main()` instead. + """ + # https://docs.python.org/3/library/signal.html#note-on-sigpipe + try: + code = main() + sys.stdout.flush() + return code + except BrokenPipeError: + # Python flushes standard streams on exit; redirect remaining output + # to devnull to avoid another BrokenPipeError at shutdown + devnull = os.open(os.devnull, os.O_WRONLY) + os.dup2(devnull, sys.stdout.fileno()) + return 1 # Python exits with error code 1 on EPIPE + + +class cmdline: # compatibility namespace + main = staticmethod(main) + + +def filename_arg(path: str, optname: str) -> str: + """Argparse type validator for filename arguments. + + :path: Path of filename. + :optname: Name of the option. + """ + if os.path.isdir(path): + raise UsageError(f"{optname} must be a filename, given: {path}") + return path + + +def directory_arg(path: str, optname: str) -> str: + """Argparse type validator for directory arguments. + + :path: Path of directory. + :optname: Name of the option. + """ + if not os.path.isdir(path): + raise UsageError(f"{optname} must be a directory, given: {path}") + return path + + +# Plugins that cannot be disabled via "-p no:X" currently. +essential_plugins = ( + "mark", + "main", + "runner", + "fixtures", + "helpconfig", # Provides -p. +) + +default_plugins = ( + *essential_plugins, + "python", + "terminal", + "debugging", + "unittest", + "capture", + "skipping", + "legacypath", + "tmpdir", + "monkeypatch", + "recwarn", + "pastebin", + "assertion", + "junitxml", + "doctest", + "cacheprovider", + "freeze_support", + "setuponly", + "setupplan", + "stepwise", + "warnings", + "logging", + "reports", + "python_path", + "unraisableexception", + "threadexception", + "faulthandler", +) + +builtin_plugins = set(default_plugins) +builtin_plugins.add("pytester") +builtin_plugins.add("pytester_assertions") + + +def get_config( + args: list[str] | None = None, + plugins: Sequence[str | _PluggyPlugin] | None = None, +) -> Config: + # subsequent calls to main will create a fresh instance + pluginmanager = PytestPluginManager() + config = Config( + pluginmanager, + invocation_params=Config.InvocationParams( + args=args or (), + plugins=plugins, + dir=pathlib.Path.cwd(), + ), + ) + + if args is not None: + # Handle any "-p no:plugin" args. + pluginmanager.consider_preparse(args, exclude_only=True) + + for spec in default_plugins: + pluginmanager.import_plugin(spec) + + return config + + +def get_plugin_manager() -> PytestPluginManager: + """Obtain a new instance of the + :py:class:`pytest.PytestPluginManager`, with default plugins + already loaded. + + This function can be used by integration with other tools, like hooking + into pytest to run tests into an IDE. + """ + return get_config().pluginmanager + + +def _prepareconfig( + args: list[str] | os.PathLike[str] | None = None, + plugins: Sequence[str | _PluggyPlugin] | None = None, +) -> Config: + if args is None: + args = sys.argv[1:] + elif isinstance(args, os.PathLike): + args = [os.fspath(args)] + elif not isinstance(args, list): + msg = ( # type:ignore[unreachable] + "`args` parameter expected to be a list of strings, got: {!r} (type: {})" + ) + raise TypeError(msg.format(args, type(args))) + + config = get_config(args, plugins) + pluginmanager = config.pluginmanager + try: + if plugins: + for plugin in plugins: + if isinstance(plugin, str): + pluginmanager.consider_pluginarg(plugin) + else: + pluginmanager.register(plugin) + config = pluginmanager.hook.pytest_cmdline_parse( + pluginmanager=pluginmanager, args=args + ) + return config + except BaseException: + config._ensure_unconfigure() + raise + + +def _get_directory(path: pathlib.Path) -> pathlib.Path: + """Get the directory of a path - itself if already a directory.""" + if path.is_file(): + return path.parent + else: + return path + + +def _get_legacy_hook_marks( + method: Any, + hook_type: str, + opt_names: tuple[str, ...], +) -> dict[str, bool]: + if TYPE_CHECKING: + # abuse typeguard from importlib to avoid massive method type union that's lacking an alias + assert inspect.isroutine(method) + known_marks: set[str] = {m.name for m in getattr(method, "pytestmark", [])} + must_warn: list[str] = [] + opts: dict[str, bool] = {} + for opt_name in opt_names: + opt_attr = getattr(method, opt_name, AttributeError) + if opt_attr is not AttributeError: + must_warn.append(f"{opt_name}={opt_attr}") + opts[opt_name] = True + elif opt_name in known_marks: + must_warn.append(f"{opt_name}=True") + opts[opt_name] = True + else: + opts[opt_name] = False + if must_warn: + hook_opts = ", ".join(must_warn) + message = _pytest.deprecated.HOOK_LEGACY_MARKING.format( + type=hook_type, + fullname=method.__qualname__, + hook_opts=hook_opts, + ) + warn_explicit_for(cast(FunctionType, method), message) + return opts + + +@final +class PytestPluginManager(PluginManager): + """A :py:class:`pluggy.PluginManager ` with + additional pytest-specific functionality: + + * Loading plugins from the command line, ``PYTEST_PLUGINS`` env variable and + ``pytest_plugins`` global variables found in plugins being loaded. + * ``conftest.py`` loading during start-up. + """ + + def __init__(self) -> None: + import _pytest.assertion + + super().__init__("pytest") + + # -- State related to local conftest plugins. + # All loaded conftest modules. + self._conftest_plugins: set[types.ModuleType] = set() + # All conftest modules applicable for a directory. + # This includes the directory's own conftest modules as well + # as those of its parent directories. + self._dirpath2confmods: dict[pathlib.Path, list[types.ModuleType]] = {} + # Cutoff directory above which conftests are no longer discovered. + self._confcutdir: pathlib.Path | None = None + # If set, conftest loading is skipped. + self._noconftest = False + + # _getconftestmodules()'s call to _get_directory() causes a stat + # storm when it's called potentially thousands of times in a test + # session (#9478), often with the same path, so cache it. + self._get_directory = lru_cache(256)(_get_directory) + + # plugins that were explicitly skipped with pytest.skip + # list of (module name, skip reason) + # previously we would issue a warning when a plugin was skipped, but + # since we refactored warnings as first citizens of Config, they are + # just stored here to be used later. + self.skipped_plugins: list[tuple[str, str]] = [] + + self.add_hookspecs(_pytest.hookspec) + self.register(self) + if os.environ.get("PYTEST_DEBUG"): + err: IO[str] = sys.stderr + encoding: str = getattr(err, "encoding", "utf8") + try: + err = open( + os.dup(err.fileno()), + mode=err.mode, + buffering=1, + encoding=encoding, + ) + except Exception: + pass + self.trace.root.setwriter(err.write) + self.enable_tracing() + + # Config._consider_importhook will set a real object if required. + self.rewrite_hook = _pytest.assertion.DummyRewriteHook() + # Used to know when we are importing conftests after the pytest_configure stage. + self._configured = False + + def parse_hookimpl_opts( + self, plugin: _PluggyPlugin, name: str + ) -> HookimplOpts | None: + """:meta private:""" + # pytest hooks are always prefixed with "pytest_", + # so we avoid accessing possibly non-readable attributes + # (see issue #1073). + if not name.startswith("pytest_"): + return None + # Ignore names which cannot be hooks. + if name == "pytest_plugins": + return None + + opts = super().parse_hookimpl_opts(plugin, name) + if opts is not None: + return opts + + method = getattr(plugin, name) + # Consider only actual functions for hooks (#3775). + if not inspect.isroutine(method): + return None + # Collect unmarked hooks as long as they have the `pytest_' prefix. + return _get_legacy_hook_marks( # type: ignore[return-value] + method, "impl", ("tryfirst", "trylast", "optionalhook", "hookwrapper") + ) + + def parse_hookspec_opts(self, module_or_class, name: str) -> HookspecOpts | None: + """:meta private:""" + opts = super().parse_hookspec_opts(module_or_class, name) + if opts is None: + method = getattr(module_or_class, name) + if name.startswith("pytest_"): + opts = _get_legacy_hook_marks( # type: ignore[assignment] + method, + "spec", + ("firstresult", "historic"), + ) + return opts + + def register(self, plugin: _PluggyPlugin, name: str | None = None) -> str | None: + if name in _pytest.deprecated.DEPRECATED_EXTERNAL_PLUGINS: + warnings.warn( + PytestConfigWarning( + "{} plugin has been merged into the core, " + "please remove it from your requirements.".format( + name.replace("_", "-") + ) + ) + ) + return None + plugin_name = super().register(plugin, name) + if plugin_name is not None: + self.hook.pytest_plugin_registered.call_historic( + kwargs=dict( + plugin=plugin, + plugin_name=plugin_name, + manager=self, + ) + ) + + if isinstance(plugin, types.ModuleType): + self.consider_module(plugin) + return plugin_name + + def getplugin(self, name: str): + # Support deprecated naming because plugins (xdist e.g.) use it. + plugin: _PluggyPlugin | None = self.get_plugin(name) + return plugin + + def hasplugin(self, name: str) -> bool: + """Return whether a plugin with the given name is registered.""" + return bool(self.get_plugin(name)) + + def pytest_configure(self, config: Config) -> None: + """:meta private:""" + # XXX now that the pluginmanager exposes hookimpl(tryfirst...) + # we should remove tryfirst/trylast as markers. + config.addinivalue_line( + "markers", + "tryfirst: mark a hook implementation function such that the " + "plugin machinery will try to call it first/as early as possible. " + "DEPRECATED, use @pytest.hookimpl(tryfirst=True) instead.", + ) + config.addinivalue_line( + "markers", + "trylast: mark a hook implementation function such that the " + "plugin machinery will try to call it last/as late as possible. " + "DEPRECATED, use @pytest.hookimpl(trylast=True) instead.", + ) + self._configured = True + + # + # Internal API for local conftest plugin handling. + # + def _set_initial_conftests( + self, + args: Sequence[str | pathlib.Path], + pyargs: bool, + noconftest: bool, + rootpath: pathlib.Path, + confcutdir: pathlib.Path | None, + invocation_dir: pathlib.Path, + importmode: ImportMode | str, + *, + consider_namespace_packages: bool, + ) -> None: + """Load initial conftest files given a preparsed "namespace". + + As conftest files may add their own command line options which have + arguments ('--my-opt somepath') we might get some false positives. + All builtin and 3rd party plugins will have been loaded, however, so + common options will not confuse our logic here. + """ + self._confcutdir = ( + absolutepath(invocation_dir / confcutdir) if confcutdir else None + ) + self._noconftest = noconftest + self._using_pyargs = pyargs + foundanchor = False + for initial_path in args: + path = str(initial_path) + # remove node-id syntax + i = path.find("::") + if i != -1: + path = path[:i] + anchor = absolutepath(invocation_dir / path) + + # Ensure we do not break if what appears to be an anchor + # is in fact a very long option (#10169, #11394). + if safe_exists(anchor): + self._try_load_conftest( + anchor, + importmode, + rootpath, + consider_namespace_packages=consider_namespace_packages, + ) + foundanchor = True + if not foundanchor: + self._try_load_conftest( + invocation_dir, + importmode, + rootpath, + consider_namespace_packages=consider_namespace_packages, + ) + + def _is_in_confcutdir(self, path: pathlib.Path) -> bool: + """Whether to consider the given path to load conftests from.""" + if self._confcutdir is None: + return True + # The semantics here are literally: + # Do not load a conftest if it is found upwards from confcut dir. + # But this is *not* the same as: + # Load only conftests from confcutdir or below. + # At first glance they might seem the same thing, however we do support use cases where + # we want to load conftests that are not found in confcutdir or below, but are found + # in completely different directory hierarchies like packages installed + # in out-of-source trees. + # (see #9767 for a regression where the logic was inverted). + return path not in self._confcutdir.parents + + def _try_load_conftest( + self, + anchor: pathlib.Path, + importmode: str | ImportMode, + rootpath: pathlib.Path, + *, + consider_namespace_packages: bool, + ) -> None: + self._loadconftestmodules( + anchor, + importmode, + rootpath, + consider_namespace_packages=consider_namespace_packages, + ) + # let's also consider test* subdirs + if anchor.is_dir(): + for x in anchor.glob("test*"): + if x.is_dir(): + self._loadconftestmodules( + x, + importmode, + rootpath, + consider_namespace_packages=consider_namespace_packages, + ) + + def _loadconftestmodules( + self, + path: pathlib.Path, + importmode: str | ImportMode, + rootpath: pathlib.Path, + *, + consider_namespace_packages: bool, + ) -> None: + if self._noconftest: + return + + directory = self._get_directory(path) + + # Optimization: avoid repeated searches in the same directory. + # Assumes always called with same importmode and rootpath. + if directory in self._dirpath2confmods: + return + + clist = [] + for parent in reversed((directory, *directory.parents)): + if self._is_in_confcutdir(parent): + conftestpath = parent / "conftest.py" + if conftestpath.is_file(): + mod = self._importconftest( + conftestpath, + importmode, + rootpath, + consider_namespace_packages=consider_namespace_packages, + ) + clist.append(mod) + self._dirpath2confmods[directory] = clist + + def _getconftestmodules(self, path: pathlib.Path) -> Sequence[types.ModuleType]: + directory = self._get_directory(path) + return self._dirpath2confmods.get(directory, ()) + + def _rget_with_confmod( + self, + name: str, + path: pathlib.Path, + ) -> tuple[types.ModuleType, Any]: + modules = self._getconftestmodules(path) + for mod in reversed(modules): + try: + return mod, getattr(mod, name) + except AttributeError: + continue + raise KeyError(name) + + def _importconftest( + self, + conftestpath: pathlib.Path, + importmode: str | ImportMode, + rootpath: pathlib.Path, + *, + consider_namespace_packages: bool, + ) -> types.ModuleType: + conftestpath_plugin_name = str(conftestpath) + existing = self.get_plugin(conftestpath_plugin_name) + if existing is not None: + return cast(types.ModuleType, existing) + + # conftest.py files there are not in a Python package all have module + # name "conftest", and thus conflict with each other. Clear the existing + # before loading the new one, otherwise the existing one will be + # returned from the module cache. + pkgpath = resolve_package_path(conftestpath) + if pkgpath is None: + try: + del sys.modules[conftestpath.stem] + except KeyError: + pass + + try: + mod = import_path( + conftestpath, + mode=importmode, + root=rootpath, + consider_namespace_packages=consider_namespace_packages, + ) + except Exception as e: + assert e.__traceback__ is not None + raise ConftestImportFailure(conftestpath, cause=e) from e + + self._check_non_top_pytest_plugins(mod, conftestpath) + + self._conftest_plugins.add(mod) + dirpath = conftestpath.parent + if dirpath in self._dirpath2confmods: + for path, mods in self._dirpath2confmods.items(): + if dirpath in path.parents or path == dirpath: + if mod in mods: + raise AssertionError( + f"While trying to load conftest path {conftestpath!s}, " + f"found that the module {mod} is already loaded with path {mod.__file__}. " + "This is not supposed to happen. Please report this issue to pytest." + ) + mods.append(mod) + self.trace(f"loading conftestmodule {mod!r}") + self.consider_conftest(mod, registration_name=conftestpath_plugin_name) + return mod + + def _check_non_top_pytest_plugins( + self, + mod: types.ModuleType, + conftestpath: pathlib.Path, + ) -> None: + if ( + hasattr(mod, "pytest_plugins") + and self._configured + and not self._using_pyargs + ): + msg = ( + "Defining 'pytest_plugins' in a non-top-level conftest is no longer supported:\n" + "It affects the entire test suite instead of just below the conftest as expected.\n" + " {}\n" + "Please move it to a top level conftest file at the rootdir:\n" + " {}\n" + "For more information, visit:\n" + " https://docs.pytest.org/en/stable/deprecations.html#pytest-plugins-in-non-top-level-conftest-files" + ) + fail(msg.format(conftestpath, self._confcutdir), pytrace=False) + + # + # API for bootstrapping plugin loading + # + # + + def consider_preparse( + self, args: Sequence[str], *, exclude_only: bool = False + ) -> None: + """:meta private:""" + i = 0 + n = len(args) + while i < n: + opt = args[i] + i += 1 + if isinstance(opt, str): + if opt == "-p": + try: + parg = args[i] + except IndexError: + return + i += 1 + elif opt.startswith("-p"): + parg = opt[2:] + else: + continue + parg = parg.strip() + if exclude_only and not parg.startswith("no:"): + continue + self.consider_pluginarg(parg) + + def consider_pluginarg(self, arg: str) -> None: + """:meta private:""" + if arg.startswith("no:"): + name = arg[3:] + if name in essential_plugins: + raise UsageError(f"plugin {name} cannot be disabled") + + # PR #4304: remove stepwise if cacheprovider is blocked. + if name == "cacheprovider": + self.set_blocked("stepwise") + self.set_blocked("pytest_stepwise") + + self.set_blocked(name) + if not name.startswith("pytest_"): + self.set_blocked("pytest_" + name) + else: + name = arg + # Unblock the plugin. + self.unblock(name) + if not name.startswith("pytest_"): + self.unblock("pytest_" + name) + self.import_plugin(arg, consider_entry_points=True) + + def consider_conftest( + self, conftestmodule: types.ModuleType, registration_name: str + ) -> None: + """:meta private:""" + self.register(conftestmodule, name=registration_name) + + def consider_env(self) -> None: + """:meta private:""" + self._import_plugin_specs(os.environ.get("PYTEST_PLUGINS")) + + def consider_module(self, mod: types.ModuleType) -> None: + """:meta private:""" + self._import_plugin_specs(getattr(mod, "pytest_plugins", [])) + + def _import_plugin_specs( + self, spec: None | types.ModuleType | str | Sequence[str] + ) -> None: + plugins = _get_plugin_specs_as_list(spec) + for import_spec in plugins: + self.import_plugin(import_spec) + + def import_plugin(self, modname: str, consider_entry_points: bool = False) -> None: + """Import a plugin with ``modname``. + + If ``consider_entry_points`` is True, entry point names are also + considered to find a plugin. + """ + # Most often modname refers to builtin modules, e.g. "pytester", + # "terminal" or "capture". Those plugins are registered under their + # basename for historic purposes but must be imported with the + # _pytest prefix. + assert isinstance( + modname, str + ), f"module name as text required, got {modname!r}" + if self.is_blocked(modname) or self.get_plugin(modname) is not None: + return + + importspec = "_pytest." + modname if modname in builtin_plugins else modname + self.rewrite_hook.mark_rewrite(importspec) + + if consider_entry_points: + loaded = self.load_setuptools_entrypoints("pytest11", name=modname) + if loaded: + return + + try: + __import__(importspec) + except ImportError as e: + raise ImportError( + f'Error importing plugin "{modname}": {e.args[0]}' + ).with_traceback(e.__traceback__) from e + + except Skipped as e: + self.skipped_plugins.append((modname, e.msg or "")) + else: + mod = sys.modules[importspec] + self.register(mod, modname) + + +def _get_plugin_specs_as_list( + specs: None | types.ModuleType | str | Sequence[str], +) -> list[str]: + """Parse a plugins specification into a list of plugin names.""" + # None means empty. + if specs is None: + return [] + # Workaround for #3899 - a submodule which happens to be called "pytest_plugins". + if isinstance(specs, types.ModuleType): + return [] + # Comma-separated list. + if isinstance(specs, str): + return specs.split(",") if specs else [] + # Direct specification. + if isinstance(specs, collections.abc.Sequence): + return list(specs) + raise UsageError( + f"Plugins may be specified as a sequence or a ','-separated string of plugin names. Got: {specs!r}" + ) + + +class Notset: + def __repr__(self): + return "" + + +notset = Notset() + + +def _iter_rewritable_modules(package_files: Iterable[str]) -> Iterator[str]: + """Given an iterable of file names in a source distribution, return the "names" that should + be marked for assertion rewrite. + + For example the package "pytest_mock/__init__.py" should be added as "pytest_mock" in + the assertion rewrite mechanism. + + This function has to deal with dist-info based distributions and egg based distributions + (which are still very much in use for "editable" installs). + + Here are the file names as seen in a dist-info based distribution: + + pytest_mock/__init__.py + pytest_mock/_version.py + pytest_mock/plugin.py + pytest_mock.egg-info/PKG-INFO + + Here are the file names as seen in an egg based distribution: + + src/pytest_mock/__init__.py + src/pytest_mock/_version.py + src/pytest_mock/plugin.py + src/pytest_mock.egg-info/PKG-INFO + LICENSE + setup.py + + We have to take in account those two distribution flavors in order to determine which + names should be considered for assertion rewriting. + + More information: + https://github.com/pytest-dev/pytest-mock/issues/167 + """ + package_files = list(package_files) + seen_some = False + for fn in package_files: + is_simple_module = "/" not in fn and fn.endswith(".py") + is_package = fn.count("/") == 1 and fn.endswith("__init__.py") + if is_simple_module: + module_name, _ = os.path.splitext(fn) + # we ignore "setup.py" at the root of the distribution + # as well as editable installation finder modules made by setuptools + if module_name != "setup" and not module_name.startswith("__editable__"): + seen_some = True + yield module_name + elif is_package: + package_name = os.path.dirname(fn) + seen_some = True + yield package_name + + if not seen_some: + # At this point we did not find any packages or modules suitable for assertion + # rewriting, so we try again by stripping the first path component (to account for + # "src" based source trees for example). + # This approach lets us have the common case continue to be fast, as egg-distributions + # are rarer. + new_package_files = [] + for fn in package_files: + parts = fn.split("/") + new_fn = "/".join(parts[1:]) + if new_fn: + new_package_files.append(new_fn) + if new_package_files: + yield from _iter_rewritable_modules(new_package_files) + + +@final +class Config: + """Access to configuration values, pluginmanager and plugin hooks. + + :param PytestPluginManager pluginmanager: + A pytest PluginManager. + + :param InvocationParams invocation_params: + Object containing parameters regarding the :func:`pytest.main` + invocation. + """ + + @final + @dataclasses.dataclass(frozen=True) + class InvocationParams: + """Holds parameters passed during :func:`pytest.main`. + + The object attributes are read-only. + + .. versionadded:: 5.1 + + .. note:: + + Note that the environment variable ``PYTEST_ADDOPTS`` and the ``addopts`` + ini option are handled by pytest, not being included in the ``args`` attribute. + + Plugins accessing ``InvocationParams`` must be aware of that. + """ + + args: tuple[str, ...] + """The command-line arguments as passed to :func:`pytest.main`.""" + plugins: Sequence[str | _PluggyPlugin] | None + """Extra plugins, might be `None`.""" + dir: pathlib.Path + """The directory from which :func:`pytest.main` was invoked. :type: pathlib.Path""" + + def __init__( + self, + *, + args: Iterable[str], + plugins: Sequence[str | _PluggyPlugin] | None, + dir: pathlib.Path, + ) -> None: + object.__setattr__(self, "args", tuple(args)) + object.__setattr__(self, "plugins", plugins) + object.__setattr__(self, "dir", dir) + + class ArgsSource(enum.Enum): + """Indicates the source of the test arguments. + + .. versionadded:: 7.2 + """ + + #: Command line arguments. + ARGS = enum.auto() + #: Invocation directory. + INVOCATION_DIR = enum.auto() + INCOVATION_DIR = INVOCATION_DIR # backwards compatibility alias + #: 'testpaths' configuration value. + TESTPATHS = enum.auto() + + # Set by cacheprovider plugin. + cache: Cache + + def __init__( + self, + pluginmanager: PytestPluginManager, + *, + invocation_params: InvocationParams | None = None, + ) -> None: + from .argparsing import FILE_OR_DIR + from .argparsing import Parser + + if invocation_params is None: + invocation_params = self.InvocationParams( + args=(), plugins=None, dir=pathlib.Path.cwd() + ) + + self.option = argparse.Namespace() + """Access to command line option as attributes. + + :type: argparse.Namespace + """ + + self.invocation_params = invocation_params + """The parameters with which pytest was invoked. + + :type: InvocationParams + """ + + _a = FILE_OR_DIR + self._parser = Parser( + usage=f"%(prog)s [options] [{_a}] [{_a}] [...]", + processopt=self._processopt, + _ispytest=True, + ) + self.pluginmanager = pluginmanager + """The plugin manager handles plugin registration and hook invocation. + + :type: PytestPluginManager + """ + + self.stash = Stash() + """A place where plugins can store information on the config for their + own use. + + :type: Stash + """ + # Deprecated alias. Was never public. Can be removed in a few releases. + self._store = self.stash + + self.trace = self.pluginmanager.trace.root.get("config") + self.hook: pluggy.HookRelay = PathAwareHookProxy(self.pluginmanager.hook) # type: ignore[assignment] + self._inicache: dict[str, Any] = {} + self._override_ini: Sequence[str] = () + self._opt2dest: dict[str, str] = {} + self._cleanup: list[Callable[[], None]] = [] + self.pluginmanager.register(self, "pytestconfig") + self._configured = False + self.hook.pytest_addoption.call_historic( + kwargs=dict(parser=self._parser, pluginmanager=self.pluginmanager) + ) + self.args_source = Config.ArgsSource.ARGS + self.args: list[str] = [] + + @property + def rootpath(self) -> pathlib.Path: + """The path to the :ref:`rootdir `. + + :type: pathlib.Path + + .. versionadded:: 6.1 + """ + return self._rootpath + + @property + def inipath(self) -> pathlib.Path | None: + """The path to the :ref:`configfile `. + + .. versionadded:: 6.1 + """ + return self._inipath + + def add_cleanup(self, func: Callable[[], None]) -> None: + """Add a function to be called when the config object gets out of + use (usually coinciding with pytest_unconfigure).""" + self._cleanup.append(func) + + def _do_configure(self) -> None: + assert not self._configured + self._configured = True + with warnings.catch_warnings(): + warnings.simplefilter("default") + self.hook.pytest_configure.call_historic(kwargs=dict(config=self)) + + def _ensure_unconfigure(self) -> None: + if self._configured: + self._configured = False + self.hook.pytest_unconfigure(config=self) + self.hook.pytest_configure._call_history = [] + while self._cleanup: + fin = self._cleanup.pop() + fin() + + def get_terminal_writer(self) -> TerminalWriter: + terminalreporter: TerminalReporter | None = self.pluginmanager.get_plugin( + "terminalreporter" + ) + assert terminalreporter is not None + return terminalreporter._tw + + def pytest_cmdline_parse( + self, pluginmanager: PytestPluginManager, args: list[str] + ) -> Config: + try: + self.parse(args) + except UsageError: + # Handle --version and --help here in a minimal fashion. + # This gets done via helpconfig normally, but its + # pytest_cmdline_main is not called in case of errors. + if getattr(self.option, "version", False) or "--version" in args: + from _pytest.helpconfig import showversion + + showversion(self) + elif ( + getattr(self.option, "help", False) or "--help" in args or "-h" in args + ): + self._parser._getparser().print_help() + sys.stdout.write( + "\nNOTE: displaying only minimal help due to UsageError.\n\n" + ) + + raise + + return self + + def notify_exception( + self, + excinfo: ExceptionInfo[BaseException], + option: argparse.Namespace | None = None, + ) -> None: + if option and getattr(option, "fulltrace", False): + style: TracebackStyle = "long" + else: + style = "native" + excrepr = excinfo.getrepr( + funcargs=True, showlocals=getattr(option, "showlocals", False), style=style + ) + res = self.hook.pytest_internalerror(excrepr=excrepr, excinfo=excinfo) + if not any(res): + for line in str(excrepr).split("\n"): + sys.stderr.write(f"INTERNALERROR> {line}\n") + sys.stderr.flush() + + def cwd_relative_nodeid(self, nodeid: str) -> str: + # nodeid's are relative to the rootpath, compute relative to cwd. + if self.invocation_params.dir != self.rootpath: + base_path_part, *nodeid_part = nodeid.split("::") + # Only process path part + fullpath = self.rootpath / base_path_part + relative_path = bestrelpath(self.invocation_params.dir, fullpath) + + nodeid = "::".join([relative_path, *nodeid_part]) + return nodeid + + @classmethod + def fromdictargs(cls, option_dict, args) -> Config: + """Constructor usable for subprocesses.""" + config = get_config(args) + config.option.__dict__.update(option_dict) + config.parse(args, addopts=False) + for x in config.option.plugins: + config.pluginmanager.consider_pluginarg(x) + return config + + def _processopt(self, opt: Argument) -> None: + for name in opt._short_opts + opt._long_opts: + self._opt2dest[name] = opt.dest + + if hasattr(opt, "default"): + if not hasattr(self.option, opt.dest): + setattr(self.option, opt.dest, opt.default) + + @hookimpl(trylast=True) + def pytest_load_initial_conftests(self, early_config: Config) -> None: + # We haven't fully parsed the command line arguments yet, so + # early_config.args it not set yet. But we need it for + # discovering the initial conftests. So "pre-run" the logic here. + # It will be done for real in `parse()`. + args, args_source = early_config._decide_args( + args=early_config.known_args_namespace.file_or_dir, + pyargs=early_config.known_args_namespace.pyargs, + testpaths=early_config.getini("testpaths"), + invocation_dir=early_config.invocation_params.dir, + rootpath=early_config.rootpath, + warn=False, + ) + self.pluginmanager._set_initial_conftests( + args=args, + pyargs=early_config.known_args_namespace.pyargs, + noconftest=early_config.known_args_namespace.noconftest, + rootpath=early_config.rootpath, + confcutdir=early_config.known_args_namespace.confcutdir, + invocation_dir=early_config.invocation_params.dir, + importmode=early_config.known_args_namespace.importmode, + consider_namespace_packages=early_config.getini( + "consider_namespace_packages" + ), + ) + + def _initini(self, args: Sequence[str]) -> None: + ns, unknown_args = self._parser.parse_known_and_unknown_args( + args, namespace=copy.copy(self.option) + ) + rootpath, inipath, inicfg = determine_setup( + inifile=ns.inifilename, + args=ns.file_or_dir + unknown_args, + rootdir_cmd_arg=ns.rootdir or None, + invocation_dir=self.invocation_params.dir, + ) + self._rootpath = rootpath + self._inipath = inipath + self.inicfg = inicfg + self._parser.extra_info["rootdir"] = str(self.rootpath) + self._parser.extra_info["inifile"] = str(self.inipath) + self._parser.addini("addopts", "Extra command line options", "args") + self._parser.addini("minversion", "Minimally required pytest version") + self._parser.addini( + "required_plugins", + "Plugins that must be present for pytest to run", + type="args", + default=[], + ) + self._override_ini = ns.override_ini or () + + def _consider_importhook(self, args: Sequence[str]) -> None: + """Install the PEP 302 import hook if using assertion rewriting. + + Needs to parse the --assert= option from the commandline + and find all the installed plugins to mark them for rewriting + by the importhook. + """ + ns, unknown_args = self._parser.parse_known_and_unknown_args(args) + mode = getattr(ns, "assertmode", "plain") + if mode == "rewrite": + import _pytest.assertion + + try: + hook = _pytest.assertion.install_importhook(self) + except SystemError: + mode = "plain" + else: + self._mark_plugins_for_rewrite(hook) + self._warn_about_missing_assertion(mode) + + def _mark_plugins_for_rewrite(self, hook) -> None: + """Given an importhook, mark for rewrite any top-level + modules or packages in the distribution package for + all pytest plugins.""" + self.pluginmanager.rewrite_hook = hook + + if os.environ.get("PYTEST_DISABLE_PLUGIN_AUTOLOAD"): + # We don't autoload from distribution package entry points, + # no need to continue. + return + + package_files = ( + str(file) + for dist in importlib.metadata.distributions() + if any(ep.group == "pytest11" for ep in dist.entry_points) + for file in dist.files or [] + ) + + for name in _iter_rewritable_modules(package_files): + hook.mark_rewrite(name) + + def _validate_args(self, args: list[str], via: str) -> list[str]: + """Validate known args.""" + self._parser._config_source_hint = via # type: ignore + try: + self._parser.parse_known_and_unknown_args( + args, namespace=copy.copy(self.option) + ) + finally: + del self._parser._config_source_hint # type: ignore + + return args + + def _decide_args( + self, + *, + args: list[str], + pyargs: bool, + testpaths: list[str], + invocation_dir: pathlib.Path, + rootpath: pathlib.Path, + warn: bool, + ) -> tuple[list[str], ArgsSource]: + """Decide the args (initial paths/nodeids) to use given the relevant inputs. + + :param warn: Whether can issue warnings. + + :returns: The args and the args source. Guaranteed to be non-empty. + """ + if args: + source = Config.ArgsSource.ARGS + result = args + else: + if invocation_dir == rootpath: + source = Config.ArgsSource.TESTPATHS + if pyargs: + result = testpaths + else: + result = [] + for path in testpaths: + result.extend(sorted(glob.iglob(path, recursive=True))) + if testpaths and not result: + if warn: + warning_text = ( + "No files were found in testpaths; " + "consider removing or adjusting your testpaths configuration. " + "Searching recursively from the current directory instead." + ) + self.issue_config_time_warning( + PytestConfigWarning(warning_text), stacklevel=3 + ) + else: + result = [] + if not result: + source = Config.ArgsSource.INVOCATION_DIR + result = [str(invocation_dir)] + return result, source + + def _preparse(self, args: list[str], addopts: bool = True) -> None: + if addopts: + env_addopts = os.environ.get("PYTEST_ADDOPTS", "") + if len(env_addopts): + args[:] = ( + self._validate_args(shlex.split(env_addopts), "via PYTEST_ADDOPTS") + + args + ) + self._initini(args) + if addopts: + args[:] = ( + self._validate_args(self.getini("addopts"), "via addopts config") + args + ) + + self.known_args_namespace = self._parser.parse_known_args( + args, namespace=copy.copy(self.option) + ) + self._checkversion() + self._consider_importhook(args) + self.pluginmanager.consider_preparse(args, exclude_only=False) + if not os.environ.get("PYTEST_DISABLE_PLUGIN_AUTOLOAD"): + # Don't autoload from distribution package entry point. Only + # explicitly specified plugins are going to be loaded. + self.pluginmanager.load_setuptools_entrypoints("pytest11") + self.pluginmanager.consider_env() + + self.known_args_namespace = self._parser.parse_known_args( + args, namespace=copy.copy(self.known_args_namespace) + ) + + self._validate_plugins() + self._warn_about_skipped_plugins() + + if self.known_args_namespace.confcutdir is None: + if self.inipath is not None: + confcutdir = str(self.inipath.parent) + else: + confcutdir = str(self.rootpath) + self.known_args_namespace.confcutdir = confcutdir + try: + self.hook.pytest_load_initial_conftests( + early_config=self, args=args, parser=self._parser + ) + except ConftestImportFailure as e: + if self.known_args_namespace.help or self.known_args_namespace.version: + # we don't want to prevent --help/--version to work + # so just let is pass and print a warning at the end + self.issue_config_time_warning( + PytestConfigWarning(f"could not load initial conftests: {e.path}"), + stacklevel=2, + ) + else: + raise + + @hookimpl(wrapper=True) + def pytest_collection(self) -> Generator[None, object, object]: + # Validate invalid ini keys after collection is done so we take in account + # options added by late-loading conftest files. + try: + return (yield) + finally: + self._validate_config_options() + + def _checkversion(self) -> None: + import pytest + + minver = self.inicfg.get("minversion", None) + if minver: + # Imported lazily to improve start-up time. + from packaging.version import Version + + if not isinstance(minver, str): + raise pytest.UsageError( + f"{self.inipath}: 'minversion' must be a single value" + ) + + if Version(minver) > Version(pytest.__version__): + raise pytest.UsageError( + f"{self.inipath}: 'minversion' requires pytest-{minver}, actual pytest-{pytest.__version__}'" + ) + + def _validate_config_options(self) -> None: + for key in sorted(self._get_unknown_ini_keys()): + self._warn_or_fail_if_strict(f"Unknown config option: {key}\n") + + def _validate_plugins(self) -> None: + required_plugins = sorted(self.getini("required_plugins")) + if not required_plugins: + return + + # Imported lazily to improve start-up time. + from packaging.requirements import InvalidRequirement + from packaging.requirements import Requirement + from packaging.version import Version + + plugin_info = self.pluginmanager.list_plugin_distinfo() + plugin_dist_info = {dist.project_name: dist.version for _, dist in plugin_info} + + missing_plugins = [] + for required_plugin in required_plugins: + try: + req = Requirement(required_plugin) + except InvalidRequirement: + missing_plugins.append(required_plugin) + continue + + if req.name not in plugin_dist_info: + missing_plugins.append(required_plugin) + elif not req.specifier.contains( + Version(plugin_dist_info[req.name]), prereleases=True + ): + missing_plugins.append(required_plugin) + + if missing_plugins: + raise UsageError( + "Missing required plugins: {}".format(", ".join(missing_plugins)), + ) + + def _warn_or_fail_if_strict(self, message: str) -> None: + if self.known_args_namespace.strict_config: + raise UsageError(message) + + self.issue_config_time_warning(PytestConfigWarning(message), stacklevel=3) + + def _get_unknown_ini_keys(self) -> list[str]: + parser_inicfg = self._parser._inidict + return [name for name in self.inicfg if name not in parser_inicfg] + + def parse(self, args: list[str], addopts: bool = True) -> None: + # Parse given cmdline arguments into this config object. + assert ( + self.args == [] + ), "can only parse cmdline args at most once per Config object" + self.hook.pytest_addhooks.call_historic( + kwargs=dict(pluginmanager=self.pluginmanager) + ) + self._preparse(args, addopts=addopts) + self._parser.after_preparse = True # type: ignore + try: + args = self._parser.parse_setoption( + args, self.option, namespace=self.option + ) + self.args, self.args_source = self._decide_args( + args=args, + pyargs=self.known_args_namespace.pyargs, + testpaths=self.getini("testpaths"), + invocation_dir=self.invocation_params.dir, + rootpath=self.rootpath, + warn=True, + ) + except PrintHelp: + pass + + def issue_config_time_warning(self, warning: Warning, stacklevel: int) -> None: + """Issue and handle a warning during the "configure" stage. + + During ``pytest_configure`` we can't capture warnings using the ``catch_warnings_for_item`` + function because it is not possible to have hook wrappers around ``pytest_configure``. + + This function is mainly intended for plugins that need to issue warnings during + ``pytest_configure`` (or similar stages). + + :param warning: The warning instance. + :param stacklevel: stacklevel forwarded to warnings.warn. + """ + if self.pluginmanager.is_blocked("warnings"): + return + + cmdline_filters = self.known_args_namespace.pythonwarnings or [] + config_filters = self.getini("filterwarnings") + + with warnings.catch_warnings(record=True) as records: + warnings.simplefilter("always", type(warning)) + apply_warning_filters(config_filters, cmdline_filters) + warnings.warn(warning, stacklevel=stacklevel) + + if records: + frame = sys._getframe(stacklevel - 1) + location = frame.f_code.co_filename, frame.f_lineno, frame.f_code.co_name + self.hook.pytest_warning_recorded.call_historic( + kwargs=dict( + warning_message=records[0], + when="config", + nodeid="", + location=location, + ) + ) + + def addinivalue_line(self, name: str, line: str) -> None: + """Add a line to an ini-file option. The option must have been + declared but might not yet be set in which case the line becomes + the first line in its value.""" + x = self.getini(name) + assert isinstance(x, list) + x.append(line) # modifies the cached list inline + + def getini(self, name: str): + """Return configuration value from an :ref:`ini file `. + + If a configuration value is not defined in an + :ref:`ini file `, then the ``default`` value provided while + registering the configuration through + :func:`parser.addini ` will be returned. + Please note that you can even provide ``None`` as a valid + default value. + + If ``default`` is not provided while registering using + :func:`parser.addini `, then a default value + based on the ``type`` parameter passed to + :func:`parser.addini ` will be returned. + The default values based on ``type`` are: + ``paths``, ``pathlist``, ``args`` and ``linelist`` : empty list ``[]`` + ``bool`` : ``False`` + ``string`` : empty string ``""`` + + If neither the ``default`` nor the ``type`` parameter is passed + while registering the configuration through + :func:`parser.addini `, then the configuration + is treated as a string and a default empty string '' is returned. + + If the specified name hasn't been registered through a prior + :func:`parser.addini ` call (usually from a + plugin), a ValueError is raised. + """ + try: + return self._inicache[name] + except KeyError: + self._inicache[name] = val = self._getini(name) + return val + + # Meant for easy monkeypatching by legacypath plugin. + # Can be inlined back (with no cover removed) once legacypath is gone. + def _getini_unknown_type(self, name: str, type: str, value: str | list[str]): + msg = f"unknown configuration type: {type}" + raise ValueError(msg, value) # pragma: no cover + + def _getini(self, name: str): + try: + description, type, default = self._parser._inidict[name] + except KeyError as e: + raise ValueError(f"unknown configuration value: {name!r}") from e + override_value = self._get_override_ini_value(name) + if override_value is None: + try: + value = self.inicfg[name] + except KeyError: + return default + else: + value = override_value + # Coerce the values based on types. + # + # Note: some coercions are only required if we are reading from .ini files, because + # the file format doesn't contain type information, but when reading from toml we will + # get either str or list of str values (see _parse_ini_config_from_pyproject_toml). + # For example: + # + # ini: + # a_line_list = "tests acceptance" + # in this case, we need to split the string to obtain a list of strings. + # + # toml: + # a_line_list = ["tests", "acceptance"] + # in this case, we already have a list ready to use. + # + if type == "paths": + dp = ( + self.inipath.parent + if self.inipath is not None + else self.invocation_params.dir + ) + input_values = shlex.split(value) if isinstance(value, str) else value + return [dp / x for x in input_values] + elif type == "args": + return shlex.split(value) if isinstance(value, str) else value + elif type == "linelist": + if isinstance(value, str): + return [t for t in map(lambda x: x.strip(), value.split("\n")) if t] + else: + return value + elif type == "bool": + return _strtobool(str(value).strip()) + elif type == "string": + return value + elif type is None: + return value + else: + return self._getini_unknown_type(name, type, value) + + def _getconftest_pathlist( + self, name: str, path: pathlib.Path + ) -> list[pathlib.Path] | None: + try: + mod, relroots = self.pluginmanager._rget_with_confmod(name, path) + except KeyError: + return None + assert mod.__file__ is not None + modpath = pathlib.Path(mod.__file__).parent + values: list[pathlib.Path] = [] + for relroot in relroots: + if isinstance(relroot, os.PathLike): + relroot = pathlib.Path(relroot) + else: + relroot = relroot.replace("/", os.sep) + relroot = absolutepath(modpath / relroot) + values.append(relroot) + return values + + def _get_override_ini_value(self, name: str) -> str | None: + value = None + # override_ini is a list of "ini=value" options. + # Always use the last item if multiple values are set for same ini-name, + # e.g. -o foo=bar1 -o foo=bar2 will set foo to bar2. + for ini_config in self._override_ini: + try: + key, user_ini_value = ini_config.split("=", 1) + except ValueError as e: + raise UsageError( + f"-o/--override-ini expects option=value style (got: {ini_config!r})." + ) from e + else: + if key == name: + value = user_ini_value + return value + + def getoption(self, name: str, default=notset, skip: bool = False): + """Return command line option value. + + :param name: Name of the option. You may also specify + the literal ``--OPT`` option instead of the "dest" option name. + :param default: Fallback value if no option of that name is **declared** via :hook:`pytest_addoption`. + Note this parameter will be ignored when the option is **declared** even if the option's value is ``None``. + :param skip: If ``True``, raise :func:`pytest.skip` if option is undeclared or has a ``None`` value. + Note that even if ``True``, if a default was specified it will be returned instead of a skip. + """ + name = self._opt2dest.get(name, name) + try: + val = getattr(self.option, name) + if val is None and skip: + raise AttributeError(name) + return val + except AttributeError as e: + if default is not notset: + return default + if skip: + import pytest + + pytest.skip(f"no {name!r} option found") + raise ValueError(f"no option named {name!r}") from e + + def getvalue(self, name: str, path=None): + """Deprecated, use getoption() instead.""" + return self.getoption(name) + + def getvalueorskip(self, name: str, path=None): + """Deprecated, use getoption(skip=True) instead.""" + return self.getoption(name, skip=True) + + #: Verbosity type for failed assertions (see :confval:`verbosity_assertions`). + VERBOSITY_ASSERTIONS: Final = "assertions" + #: Verbosity type for test case execution (see :confval:`verbosity_test_cases`). + VERBOSITY_TEST_CASES: Final = "test_cases" + _VERBOSITY_INI_DEFAULT: Final = "auto" + + def get_verbosity(self, verbosity_type: str | None = None) -> int: + r"""Retrieve the verbosity level for a fine-grained verbosity type. + + :param verbosity_type: Verbosity type to get level for. If a level is + configured for the given type, that value will be returned. If the + given type is not a known verbosity type, the global verbosity + level will be returned. If the given type is None (default), the + global verbosity level will be returned. + + To configure a level for a fine-grained verbosity type, the + configuration file should have a setting for the configuration name + and a numeric value for the verbosity level. A special value of "auto" + can be used to explicitly use the global verbosity level. + + Example: + + .. code-block:: ini + + # content of pytest.ini + [pytest] + verbosity_assertions = 2 + + .. code-block:: console + + pytest -v + + .. code-block:: python + + print(config.get_verbosity()) # 1 + print(config.get_verbosity(Config.VERBOSITY_ASSERTIONS)) # 2 + """ + global_level = self.getoption("verbose", default=0) + assert isinstance(global_level, int) + if verbosity_type is None: + return global_level + + ini_name = Config._verbosity_ini_name(verbosity_type) + if ini_name not in self._parser._inidict: + return global_level + + level = self.getini(ini_name) + if level == Config._VERBOSITY_INI_DEFAULT: + return global_level + + return int(level) + + @staticmethod + def _verbosity_ini_name(verbosity_type: str) -> str: + return f"verbosity_{verbosity_type}" + + @staticmethod + def _add_verbosity_ini(parser: Parser, verbosity_type: str, help: str) -> None: + """Add a output verbosity configuration option for the given output type. + + :param parser: Parser for command line arguments and ini-file values. + :param verbosity_type: Fine-grained verbosity category. + :param help: Description of the output this type controls. + + The value should be retrieved via a call to + :py:func:`config.get_verbosity(type) `. + """ + parser.addini( + Config._verbosity_ini_name(verbosity_type), + help=help, + type="string", + default=Config._VERBOSITY_INI_DEFAULT, + ) + + def _warn_about_missing_assertion(self, mode: str) -> None: + if not _assertion_supported(): + if mode == "plain": + warning_text = ( + "ASSERTIONS ARE NOT EXECUTED" + " and FAILING TESTS WILL PASS. Are you" + " using python -O?" + ) + else: + warning_text = ( + "assertions not in test modules or" + " plugins will be ignored" + " because assert statements are not executed " + "by the underlying Python interpreter " + "(are you using python -O?)\n" + ) + self.issue_config_time_warning( + PytestConfigWarning(warning_text), + stacklevel=3, + ) + + def _warn_about_skipped_plugins(self) -> None: + for module_name, msg in self.pluginmanager.skipped_plugins: + self.issue_config_time_warning( + PytestConfigWarning(f"skipped plugin {module_name!r}: {msg}"), + stacklevel=2, + ) + + +def _assertion_supported() -> bool: + try: + assert False + except AssertionError: + return True + else: + return False # type: ignore[unreachable] + + +def create_terminal_writer( + config: Config, file: TextIO | None = None +) -> TerminalWriter: + """Create a TerminalWriter instance configured according to the options + in the config object. + + Every code which requires a TerminalWriter object and has access to a + config object should use this function. + """ + tw = TerminalWriter(file=file) + + if config.option.color == "yes": + tw.hasmarkup = True + elif config.option.color == "no": + tw.hasmarkup = False + + if config.option.code_highlight == "yes": + tw.code_highlight = True + elif config.option.code_highlight == "no": + tw.code_highlight = False + + return tw + + +def _strtobool(val: str) -> bool: + """Convert a string representation of truth to True or False. + + True values are 'y', 'yes', 't', 'true', 'on', and '1'; false values + are 'n', 'no', 'f', 'false', 'off', and '0'. Raises ValueError if + 'val' is anything else. + + .. note:: Copied from distutils.util. + """ + val = val.lower() + if val in ("y", "yes", "t", "true", "on", "1"): + return True + elif val in ("n", "no", "f", "false", "off", "0"): + return False + else: + raise ValueError(f"invalid truth value {val!r}") + + +@lru_cache(maxsize=50) +def parse_warning_filter( + arg: str, *, escape: bool +) -> tuple[warnings._ActionKind, str, type[Warning], str, int]: + """Parse a warnings filter string. + + This is copied from warnings._setoption with the following changes: + + * Does not apply the filter. + * Escaping is optional. + * Raises UsageError so we get nice error messages on failure. + """ + __tracebackhide__ = True + error_template = dedent( + f"""\ + while parsing the following warning configuration: + + {arg} + + This error occurred: + + {{error}} + """ + ) + + parts = arg.split(":") + if len(parts) > 5: + doc_url = ( + "https://docs.python.org/3/library/warnings.html#describing-warning-filters" + ) + error = dedent( + f"""\ + Too many fields ({len(parts)}), expected at most 5 separated by colons: + + action:message:category:module:line + + For more information please consult: {doc_url} + """ + ) + raise UsageError(error_template.format(error=error)) + + while len(parts) < 5: + parts.append("") + action_, message, category_, module, lineno_ = (s.strip() for s in parts) + try: + action: warnings._ActionKind = warnings._getaction(action_) # type: ignore[attr-defined] + except warnings._OptionError as e: + raise UsageError(error_template.format(error=str(e))) from None + try: + category: type[Warning] = _resolve_warning_category(category_) + except Exception: + exc_info = ExceptionInfo.from_current() + exception_text = exc_info.getrepr(style="native") + raise UsageError(error_template.format(error=exception_text)) from None + if message and escape: + message = re.escape(message) + if module and escape: + module = re.escape(module) + r"\Z" + if lineno_: + try: + lineno = int(lineno_) + if lineno < 0: + raise ValueError("number is negative") + except ValueError as e: + raise UsageError( + error_template.format(error=f"invalid lineno {lineno_!r}: {e}") + ) from None + else: + lineno = 0 + return action, message, category, module, lineno + + +def _resolve_warning_category(category: str) -> type[Warning]: + """ + Copied from warnings._getcategory, but changed so it lets exceptions (specially ImportErrors) + propagate so we can get access to their tracebacks (#9218). + """ + __tracebackhide__ = True + if not category: + return Warning + + if "." not in category: + import builtins as m + + klass = category + else: + module, _, klass = category.rpartition(".") + m = __import__(module, None, None, [klass]) + cat = getattr(m, klass) + if not issubclass(cat, Warning): + raise UsageError(f"{cat} is not a Warning subclass") + return cast(Type[Warning], cat) + + +def apply_warning_filters( + config_filters: Iterable[str], cmdline_filters: Iterable[str] +) -> None: + """Applies pytest-configured filters to the warnings module""" + # Filters should have this precedence: cmdline options, config. + # Filters should be applied in the inverse order of precedence. + for arg in config_filters: + warnings.filterwarnings(*parse_warning_filter(arg, escape=False)) + + for arg in cmdline_filters: + warnings.filterwarnings(*parse_warning_filter(arg, escape=True)) diff --git a/shared/package-files/0a/0a20f5855db93061f04df1c66a869e8460f7889e25a8d622f998b045e3ba0959/test_random_matrix.py b/shared/package-files/0a/0a20f5855db93061f04df1c66a869e8460f7889e25a8d622f998b045e3ba0959/test_random_matrix.py new file mode 100644 index 0000000000000000000000000000000000000000..ba570a16bc42620d53bce19be71e7d125965ede1 --- /dev/null +++ b/shared/package-files/0a/0a20f5855db93061f04df1c66a869e8460f7889e25a8d622f998b045e3ba0959/test_random_matrix.py @@ -0,0 +1,135 @@ +from sympy.concrete.products import Product +from sympy.core.function import Lambda +from sympy.core.numbers import (I, Rational, pi) +from sympy.core.singleton import S +from sympy.core.symbol import Dummy +from sympy.functions.elementary.complexes import Abs +from sympy.functions.elementary.exponential import exp +from sympy.functions.elementary.miscellaneous import sqrt +from sympy.integrals.integrals import Integral +from sympy.matrices.dense import Matrix +from sympy.matrices.expressions.matexpr import MatrixSymbol +from sympy.matrices.expressions.trace import Trace +from sympy.tensor.indexed import IndexedBase +from sympy.stats import (GaussianUnitaryEnsemble as GUE, density, + GaussianOrthogonalEnsemble as GOE, + GaussianSymplecticEnsemble as GSE, + joint_eigen_distribution, + CircularUnitaryEnsemble as CUE, + CircularOrthogonalEnsemble as COE, + CircularSymplecticEnsemble as CSE, + JointEigenDistribution, + level_spacing_distribution, + Normal, Beta) +from sympy.stats.joint_rv_types import JointDistributionHandmade +from sympy.stats.rv import RandomMatrixSymbol +from sympy.stats.random_matrix_models import GaussianEnsemble, RandomMatrixPSpace +from sympy.testing.pytest import raises + +def test_GaussianEnsemble(): + G = GaussianEnsemble('G', 3) + assert density(G) == G.pspace.model + raises(ValueError, lambda: GaussianEnsemble('G', 3.5)) + +def test_GaussianUnitaryEnsemble(): + H = RandomMatrixSymbol('H', 3, 3) + G = GUE('U', 3) + assert density(G)(H) == sqrt(2)*exp(-3*Trace(H**2)/2)/(4*pi**Rational(9, 2)) + i, j = (Dummy('i', integer=True, positive=True), + Dummy('j', integer=True, positive=True)) + l = IndexedBase('l') + assert joint_eigen_distribution(G).dummy_eq( + Lambda((l[1], l[2], l[3]), + 27*sqrt(6)*exp(-3*(l[1]**2)/2 - 3*(l[2]**2)/2 - 3*(l[3]**2)/2)* + Product(Abs(l[i] - l[j])**2, (j, i + 1, 3), (i, 1, 2))/(16*pi**Rational(3, 2)))) + s = Dummy('s') + assert level_spacing_distribution(G).dummy_eq(Lambda(s, 32*s**2*exp(-4*s**2/pi)/pi**2)) + + +def test_GaussianOrthogonalEnsemble(): + H = RandomMatrixSymbol('H', 3, 3) + _H = MatrixSymbol('_H', 3, 3) + G = GOE('O', 3) + assert density(G)(H) == exp(-3*Trace(H**2)/4)/Integral(exp(-3*Trace(_H**2)/4), _H) + i, j = (Dummy('i', integer=True, positive=True), + Dummy('j', integer=True, positive=True)) + l = IndexedBase('l') + assert joint_eigen_distribution(G).dummy_eq( + Lambda((l[1], l[2], l[3]), + 9*sqrt(2)*exp(-3*l[1]**2/2 - 3*l[2]**2/2 - 3*l[3]**2/2)* + Product(Abs(l[i] - l[j]), (j, i + 1, 3), (i, 1, 2))/(32*pi))) + s = Dummy('s') + assert level_spacing_distribution(G).dummy_eq(Lambda(s, s*pi*exp(-s**2*pi/4)/2)) + +def test_GaussianSymplecticEnsemble(): + H = RandomMatrixSymbol('H', 3, 3) + _H = MatrixSymbol('_H', 3, 3) + G = GSE('O', 3) + assert density(G)(H) == exp(-3*Trace(H**2))/Integral(exp(-3*Trace(_H**2)), _H) + i, j = (Dummy('i', integer=True, positive=True), + Dummy('j', integer=True, positive=True)) + l = IndexedBase('l') + assert joint_eigen_distribution(G).dummy_eq( + Lambda((l[1], l[2], l[3]), + 162*sqrt(3)*exp(-3*l[1]**2/2 - 3*l[2]**2/2 - 3*l[3]**2/2)* + Product(Abs(l[i] - l[j])**4, (j, i + 1, 3), (i, 1, 2))/(5*pi**Rational(3, 2)))) + s = Dummy('s') + assert level_spacing_distribution(G).dummy_eq(Lambda(s, S(262144)*s**4*exp(-64*s**2/(9*pi))/(729*pi**3))) + +def test_CircularUnitaryEnsemble(): + CU = CUE('U', 3) + j, k = (Dummy('j', integer=True, positive=True), + Dummy('k', integer=True, positive=True)) + t = IndexedBase('t') + assert joint_eigen_distribution(CU).dummy_eq( + Lambda((t[1], t[2], t[3]), + Product(Abs(exp(I*t[j]) - exp(I*t[k]))**2, + (j, k + 1, 3), (k, 1, 2))/(48*pi**3)) + ) + +def test_CircularOrthogonalEnsemble(): + CO = COE('U', 3) + j, k = (Dummy('j', integer=True, positive=True), + Dummy('k', integer=True, positive=True)) + t = IndexedBase('t') + assert joint_eigen_distribution(CO).dummy_eq( + Lambda((t[1], t[2], t[3]), + Product(Abs(exp(I*t[j]) - exp(I*t[k])), + (j, k + 1, 3), (k, 1, 2))/(48*pi**2)) + ) + +def test_CircularSymplecticEnsemble(): + CS = CSE('U', 3) + j, k = (Dummy('j', integer=True, positive=True), + Dummy('k', integer=True, positive=True)) + t = IndexedBase('t') + assert joint_eigen_distribution(CS).dummy_eq( + Lambda((t[1], t[2], t[3]), + Product(Abs(exp(I*t[j]) - exp(I*t[k]))**4, + (j, k + 1, 3), (k, 1, 2))/(720*pi**3)) + ) + +def test_JointEigenDistribution(): + A = Matrix([[Normal('A00', 0, 1), Normal('A01', 1, 1)], + [Beta('A10', 1, 1), Beta('A11', 1, 1)]]) + assert JointEigenDistribution(A) == \ + JointDistributionHandmade(-sqrt(A[0, 0]**2 - 2*A[0, 0]*A[1, 1] + 4*A[0, 1]*A[1, 0] + A[1, 1]**2)/2 + + A[0, 0]/2 + A[1, 1]/2, sqrt(A[0, 0]**2 - 2*A[0, 0]*A[1, 1] + 4*A[0, 1]*A[1, 0] + A[1, 1]**2)/2 + A[0, 0]/2 + A[1, 1]/2) + raises(ValueError, lambda: JointEigenDistribution(Matrix([[1, 0], [2, 1]]))) + +def test_issue_19841(): + G1 = GUE('U', 2) + G2 = G1.xreplace({2: 2}) + assert G1.args == G2.args + + X = MatrixSymbol('X', 2, 2) + G = GSE('U', 2) + h_pspace = RandomMatrixPSpace('P', model=density(G)) + H = RandomMatrixSymbol('H', 2, 2, pspace=h_pspace) + H2 = RandomMatrixSymbol('H', 2, 2, pspace=None) + assert H.doit() == H + + assert (2*H).xreplace({H: X}) == 2*X + assert (2*H).xreplace({H2: X}) == 2*H + assert (2*H2).xreplace({H: X}) == 2*H2 + assert (2*H2).xreplace({H2: X}) == 2*X diff --git a/shared/package-files/0a/0a2253d344e9d25060f63ff5116f9debfa68ba6b47a0fd939844150e57f7713b/jsonnet.py b/shared/package-files/0a/0a2253d344e9d25060f63ff5116f9debfa68ba6b47a0fd939844150e57f7713b/jsonnet.py new file mode 100644 index 0000000000000000000000000000000000000000..3905f88718404f8f6df6f527bf5ce07839a3e88f --- /dev/null +++ b/shared/package-files/0a/0a2253d344e9d25060f63ff5116f9debfa68ba6b47a0fd939844150e57f7713b/jsonnet.py @@ -0,0 +1,168 @@ +""" + pygments.lexers.jsonnet + ~~~~~~~~~~~~~~~~~~~~~~~ + + Lexer for Jsonnet data templating language. + + :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS. + :license: BSD, see LICENSE for details. +""" + +from pygments.lexer import include, RegexLexer, words +from pygments.token import Comment, Keyword, Name, Number, Operator, \ + Punctuation, String, Text, Whitespace + +__all__ = ['JsonnetLexer'] + +jsonnet_token = r'[^\W\d]\w*' +jsonnet_function_token = jsonnet_token + r'(?=\()' + + +def string_rules(quote_mark): + return [ + (r"[^{}\\]".format(quote_mark), String), + (r"\\.", String.Escape), + (quote_mark, String, '#pop'), + ] + + +def quoted_field_name(quote_mark): + return [ + (r'([^{quote}\\]|\\.)*{quote}'.format(quote=quote_mark), + Name.Variable, 'field_separator') + ] + + +class JsonnetLexer(RegexLexer): + """Lexer for Jsonnet source code.""" + + name = 'Jsonnet' + aliases = ['jsonnet'] + filenames = ['*.jsonnet', '*.libsonnet'] + url = "https://jsonnet.org" + tokens = { + # Not used by itself + '_comments': [ + (r'(//|#).*\n', Comment.Single), + (r'/\*\*([^/]|/(?!\*))*\*/', String.Doc), + (r'/\*([^/]|/(?!\*))*\*/', Comment), + ], + 'root': [ + include('_comments'), + (r"@'.*'", String), + (r'@".*"', String), + (r"'", String, 'singlestring'), + (r'"', String, 'doublestring'), + (r'\|\|\|(.|\n)*\|\|\|', String), + # Jsonnet has no integers, only an IEEE754 64-bit float + (r'[+-]?[0-9]+(.[0-9])?', Number.Float), + # Omit : despite spec because it appears to be used as a field + # separator + (r'[!$~+\-&|^=<>*/%]', Operator), + (r'\{', Punctuation, 'object'), + (r'\[', Punctuation, 'array'), + (r'local\b', Keyword, ('local_name')), + (r'assert\b', Keyword, 'assert'), + (words([ + 'assert', 'else', 'error', 'false', 'for', 'if', 'import', + 'importstr', 'in', 'null', 'tailstrict', 'then', 'self', + 'super', 'true', + ], suffix=r'\b'), Keyword), + (r'\s+', Whitespace), + (r'function(?=\()', Keyword, 'function_params'), + (r'std\.' + jsonnet_function_token, Name.Builtin, 'function_args'), + (jsonnet_function_token, Name.Function, 'function_args'), + (jsonnet_token, Name.Variable), + (r'[\.()]', Punctuation), + ], + 'singlestring': string_rules("'"), + 'doublestring': string_rules('"'), + 'array': [ + (r',', Punctuation), + (r'\]', Punctuation, '#pop'), + include('root'), + ], + 'local_name': [ + (jsonnet_function_token, Name.Function, 'function_params'), + (jsonnet_token, Name.Variable), + (r'\s+', Whitespace), + ('(?==)', Whitespace, ('#pop', 'local_value')), + ], + 'local_value': [ + (r'=', Operator), + (r';', Punctuation, '#pop'), + include('root'), + ], + 'assert': [ + (r':', Punctuation), + (r';', Punctuation, '#pop'), + include('root'), + ], + 'function_params': [ + (jsonnet_token, Name.Variable), + (r'\(', Punctuation), + (r'\)', Punctuation, '#pop'), + (r',', Punctuation), + (r'\s+', Whitespace), + (r'=', Operator, 'function_param_default'), + ], + 'function_args': [ + (r'\(', Punctuation), + (r'\)', Punctuation, '#pop'), + (r',', Punctuation), + (r'\s+', Whitespace), + include('root'), + ], + 'object': [ + (r'\s+', Whitespace), + (r'local\b', Keyword, 'object_local_name'), + (r'assert\b', Keyword, 'object_assert'), + (r'\[', Operator, 'field_name_expr'), + (fr'(?={jsonnet_token})', Text, 'field_name'), + (r'\}', Punctuation, '#pop'), + (r'"', Name.Variable, 'double_field_name'), + (r"'", Name.Variable, 'single_field_name'), + include('_comments'), + ], + 'field_name': [ + (jsonnet_function_token, Name.Function, + ('field_separator', 'function_params') + ), + (jsonnet_token, Name.Variable, 'field_separator'), + ], + 'double_field_name': quoted_field_name('"'), + 'single_field_name': quoted_field_name("'"), + 'field_name_expr': [ + (r'\]', Operator, 'field_separator'), + include('root'), + ], + 'function_param_default': [ + (r'(?=[,\)])', Whitespace, '#pop'), + include('root'), + ], + 'field_separator': [ + (r'\s+', Whitespace), + (r'\+?::?:?', Punctuation, ('#pop', '#pop', 'field_value')), + include('_comments'), + ], + 'field_value': [ + (r',', Punctuation, '#pop'), + (r'\}', Punctuation, '#pop:2'), + include('root'), + ], + 'object_assert': [ + (r':', Punctuation), + (r',', Punctuation, '#pop'), + include('root'), + ], + 'object_local_name': [ + (jsonnet_token, Name.Variable, ('#pop', 'object_local_value')), + (r'\s+', Whitespace), + ], + 'object_local_value': [ + (r'=', Operator), + (r',', Punctuation, '#pop'), + (r'\}', Punctuation, '#pop:2'), + include('root'), + ], + } diff --git a/shared/package-files/0a/0a26891939da91cf3c5bd39c74c850b7509208f9b372aeff437ca7fef503cbd0/mish_backward_ops.h b/shared/package-files/0a/0a26891939da91cf3c5bd39c74c850b7509208f9b372aeff437ca7fef503cbd0/mish_backward_ops.h new file mode 100644 index 0000000000000000000000000000000000000000..99acafa87fbd766cd2e3238da338cbb097ba60ba --- /dev/null +++ b/shared/package-files/0a/0a26891939da91cf3c5bd39c74c850b7509208f9b372aeff437ca7fef503cbd0/mish_backward_ops.h @@ -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 mish_backward { + 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::mish_backward") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "mish_backward(Tensor grad_output, Tensor self) -> Tensor") + static at::Tensor call(const at::Tensor & grad_output, const at::Tensor & self); + static at::Tensor redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self); +}; + +}} // namespace at::_ops diff --git a/shared/package-files/0a/0a29461f271247399212708c42f4d127927f2d6c4cb3efbe52a9156ce990dab0/_version.py b/shared/package-files/0a/0a29461f271247399212708c42f4d127927f2d6c4cb3efbe52a9156ce990dab0/_version.py new file mode 100644 index 0000000000000000000000000000000000000000..95f926f450cbeb86f541e73327bbd2e15ba7eea8 --- /dev/null +++ b/shared/package-files/0a/0a29461f271247399212708c42f4d127927f2d6c4cb3efbe52a9156ce990dab0/_version.py @@ -0,0 +1,4 @@ +# file generated by setuptools_scm +# don't change, don't track in version control +__version__ = version = '1.2.0' +__version_tuple__ = version_tuple = (1, 2, 0) diff --git a/shared/package-files/0a/0a294e8a02563a74c184000e46229e0b48de726f05bf7393635b886647aa9f6c/QuantUtils.h b/shared/package-files/0a/0a294e8a02563a74c184000e46229e0b48de726f05bf7393635b886647aa9f6c/QuantUtils.h new file mode 100644 index 0000000000000000000000000000000000000000..0b026c739786a0b68ccf779f2724c1c4607998e1 --- /dev/null +++ b/shared/package-files/0a/0a294e8a02563a74c184000e46229e0b48de726f05bf7393635b886647aa9f6c/QuantUtils.h @@ -0,0 +1,239 @@ +#pragma once + +#include +#include +#include +#include +#include +#include + +#ifndef AT_PER_OPERATOR_HEADERS +#include +#include +#else +#include +#include +#include +#endif + +namespace quant_utils { +namespace { + float RawUint16ToFp16(unsigned short value) { + // Convert raw 16 bits half precision floating point number + // to single precision floating point number. + const unsigned short sign_bits = value >> 15; + const unsigned short exponent_bits = value >> 10 & 0x1f; + const unsigned short significand_bits = value & 0x3ff; + + const float sign = sign_bits ? -1 : 1; + const float significand = + 1 + significand_bits * 0.0009765625f; // 0.0009765625f = 0x1p-10 = 2^-10; + const float exponent = exponent_bits - 0xf; + + return sign * std::ldexp(significand, exponent); +} + +template +bool CheckAndSaturate(T max_val, T* element) { + if (*element > max_val) { + *element = max_val; + return true; + } + if (*element < -max_val) { + *element = -max_val; + return true; + } + return false; +} +} +using namespace std; +// A structure to hold quantization parameters 'scale' and 'zero_point'. +// The meaning of these values is as the constants in the quantization equation +// +// real_value = scale * (quantized_value - zero_point) +// +// In other words, 'zero_point' is the quantized value that corresponds +// to the real value 0, and 'scale' is the difference of real values +// corresponding to consecutive quantized values. +struct TensorQuantizationParams { + double scale; + std::int32_t zero_point; + int precision; +}; + +// Use fp16_min as the small scale cutoff because we don't want to use scales in +// fp16 subnormal range. This is to be consistent with Glow and FakeLowP +// implementation for NNPI. +constexpr float SMALL_SCALE_THRESHOLD = 6.1e-5f; + +// Following implementation should be identical to fbgemm::ChooseQuantizationParams +inline TensorQuantizationParams ChooseQuantizationParams( + float min, + float max, + int32_t qmin, + int32_t qmax, + bool preserve_sparsity = false, + bool force_scale_power_of_two = false, + bool reduce_range = false) { + TORCH_CHECK( + min <= max, + "In ChooseQuantizationParams, min should be less than or equal to max"); + + if (reduce_range) { + qmin = qmin/2; + qmax = qmax/2; + } + if (min < 0 && max > 0 && preserve_sparsity) { + int symmetric_qmin = -((qmax - qmin) / 2 + 1); + int symmetric_qmax = (qmax - qmin) / 2; + double max_scale = + std::max(fabs(min / symmetric_qmin), fabs(max / symmetric_qmax)); + min = max_scale * symmetric_qmin; + max = max_scale * symmetric_qmax; + } + + // We extend the [min, max] interval to ensure that it contains 0. + // Otherwise, we would not meet the requirement that 0 be an exactly + // representable value. + min = std::min(min, 0.f); + max = std::max(max, 0.f); + + TORCH_CHECK( + qmin < qmax, + "In ChooseQuantizationParams, qmin should be less than qmax"); + + // Use double precision for intermediate computation but use single precision + // in final number to reflect the actual number used during quantization. + double scale = (static_cast(max) - min) / (qmax - qmin); + // If scale is 0 or too small so its reciprocal is infinity, we arbitrary + // adjust the scale to 0.1 . We want to avoid scale's reciprocal being + // infinity because some of fbgemm code pre-computes scale's reciprocal to do + // multiplication instead of division in the time critical part of code. + if (float(scale) == 0.0f || std::isinf(1.0f / float(scale))) { + scale = 0.1; + } + TORCH_CHECK(scale > 0, "quantization scale should be > 0"); + + if (force_scale_power_of_two) { + if (scale < 1) { + scale = 1.0 / (1 << static_cast(floor(log(1.0 / scale) / log(2)))); + } else { + scale = 1 << static_cast(ceil(log(scale) / log(2))); + } + } + + // Cut off small scale + if (scale < SMALL_SCALE_THRESHOLD) { + float org_scale = scale; + scale = SMALL_SCALE_THRESHOLD; + // Adjust the min and max based on the new scale + if (min == 0.0f) { + max = SMALL_SCALE_THRESHOLD * (qmax - qmin); + } else if (max == 0.0f) { + min = -SMALL_SCALE_THRESHOLD * (qmax - qmin); + } else { + float amplifier = SMALL_SCALE_THRESHOLD / org_scale; + min *= amplifier; + max *= amplifier; + } + } + + // Zero-point computation. + // First the initial floating-point computation. The zero-point can be + // determined from solving an affine equation for any known pair + // (real value, corresponding quantized value). + // We know two such pairs: (rmin, qmin) and (rmax, qmax). + // The arithmetic error on the zero point computed from either pair + // will be roughly machine_epsilon * (sum of absolute values of terms) + // so we want to use the variant that adds the smaller terms. + double zero_point_from_min = qmin - min / static_cast(scale); + double zero_point_from_max = qmax - max / static_cast(scale); + double zero_point_from_min_error = + std::abs(qmin) - std::abs(min / static_cast(scale)); + double zero_point_from_max_error = + std::abs(qmax) - std::abs(max / static_cast(scale)); + double initial_zero_point = + zero_point_from_min_error < zero_point_from_max_error + ? zero_point_from_min + : zero_point_from_max; + + // for symmetric quantization (preserve_sparsity == true), we force zero_point + // to be a middle value between qmin and qmax. + // If either min or max is 0, then we just use 0 as zero_point. + if (min < 0 && max > 0 && preserve_sparsity) { + initial_zero_point = static_cast(qmin + qmax) / 2; + } + + // Now we need to nudge the zero point to be an integer + // (our zero points are integer, and this is motivated by the requirement + // to be able to represent the real value "0" exactly as a quantized value, + // which is required in multiple places, for example in Im2col with zero + // padding). + int32_t nudged_zero_point = 0; + if (initial_zero_point < qmin) { + nudged_zero_point = qmin; + } else if (initial_zero_point > qmax) { + nudged_zero_point = qmax; + } else { + nudged_zero_point = nearbyint(initial_zero_point); + } + + TensorQuantizationParams result; + result.scale = scale; + result.zero_point = nudged_zero_point; + return result; +} + +// This function helps to convert the Conv1D dimensions usable by the Conv2d op. +constexpr int64_t kConv1dSqueezeDim = 0; +static C10_UNUSED torch::List MakeArgForConv1d(const torch::List& arg, + int64_t base_value) { + TORCH_CHECK(!arg.empty(), "Argument must have elements."); + torch::List result({arg.get(0), base_value}); + if (arg.size() == 1) { + result[1] = arg.get(0); + } else { + result[1] = arg.get(1); + } + result[kConv1dSqueezeDim] = base_value; + return result; +} + +// The range for using FP16 quantization of weights requires that the elements +// should be in the range of [5.96e-8, 65504]. If it is out of range, then the +// number will be saturated to max or min representable values by FP16. +inline void HandleWeightsSaturation(int64_t N, float* weight) { + const float kFp16Max = RawUint16ToFp16(0x7BFF); + bool found_out_of_range = false; + for (const auto i : c10::irange(N)) { + bool saturate = CheckAndSaturate(kFp16Max, weight + i); + if (saturate) { + found_out_of_range = true; + } + } + if (found_out_of_range) { + TORCH_WARN("FOUND weight out of range "); + } +} + +// Util function for quantizing bias. +inline at::Tensor QuantizeBias( + bool is_per_channel, + const at::Tensor& bias, + const at::Tensor& weight_contig, + double input_scale) { + at::Tensor qbias; + if (is_per_channel) { + auto bias_quant_scales = + weight_contig.q_per_channel_scales() * input_scale; + auto bias_zp = at::zeros(bias_quant_scales.sizes(), c10::kInt); + qbias = at::native::quantize_per_channel( + bias, bias_quant_scales, bias_zp, 0, c10::kQInt32); + } else { + qbias = at::native::quantize_per_tensor( + bias, weight_contig.q_scale() * input_scale, 0, c10::kQInt32); + } + return qbias; +} + +} // namespace quant_utils diff --git a/shared/package-files/0a/0a2959e7f65fae3c6bc5cd821c3971fed33e3b603dfc23e9e68e40a4d379f808/series.py b/shared/package-files/0a/0a2959e7f65fae3c6bc5cd821c3971fed33e3b603dfc23e9e68e40a4d379f808/series.py new file mode 100644 index 0000000000000000000000000000000000000000..da402aa909882c1cc9737d8da730ba946e2bece9 --- /dev/null +++ b/shared/package-files/0a/0a2959e7f65fae3c6bc5cd821c3971fed33e3b603dfc23e9e68e40a4d379f808/series.py @@ -0,0 +1,1362 @@ +from __future__ import annotations + +import operator +import warnings +from typing import TYPE_CHECKING, Any, Literal, overload + +from narwhals._compliant import EagerSeries, EagerSeriesHist +from narwhals._pandas_like.series_cat import PandasLikeSeriesCatNamespace +from narwhals._pandas_like.series_dt import PandasLikeSeriesDateTimeNamespace +from narwhals._pandas_like.series_list import PandasLikeSeriesListNamespace +from narwhals._pandas_like.series_str import PandasLikeSeriesStringNamespace +from narwhals._pandas_like.series_struct import PandasLikeSeriesStructNamespace +from narwhals._pandas_like.utils import ( + NUMPY_VERSION, + PANDAS_VERSION, + align_and_extract_native, + binary_string_sum_fallback, + broadcast_series_to_index, + floordiv_null_on_zero, + get_dtype_backend, + import_array_module, + is_dtype_pyarrow, + is_pandas_or_modin, + narwhals_to_native_dtype, + native_to_narwhals_dtype, + object_native_to_narwhals_dtype, + rename, + select_columns_by_name, + set_index, +) +from narwhals._typing_compat import assert_never +from narwhals._utils import NO_DEFAULT, Implementation, is_list_of +from narwhals.dependencies import is_numpy_array_1d, is_pandas_like_series +from narwhals.dtypes import String +from narwhals.exceptions import InvalidOperationError + +if TYPE_CHECKING: + from collections.abc import Callable, Hashable, Iterable, Iterator, Sequence + from types import ModuleType + from typing import TypeAlias + + import pandas as pd + import polars as pl + import pyarrow as pa + from typing_extensions import Self, TypeIs + + from narwhals._arrow.typing import ChunkedArrayAny + from narwhals._compliant.series import HistData + from narwhals._pandas_like.dataframe import PandasLikeDataFrame + from narwhals._pandas_like.namespace import PandasLikeNamespace + from narwhals._pandas_like.typing import NativeSeriesT + from narwhals._typing import NoDefault + from narwhals._utils import Version, _LimitedContext + from narwhals.dtypes import DType + from narwhals.typing import ( + ClosedInterval, + FillNullStrategy, + Into1DArray, + IntoDType, + ModeKeepStrategy, + NonNestedLiteral, + PythonLiteral, + RankMethod, + RollingInterpolationMethod, + SizedMultiIndexSelector, + _1DArray, + _SliceIndex, + ) + + PandasHistData: TypeAlias = "HistData[pd.Series[Any], list[float]]" + + +PANDAS_TO_NUMPY_DTYPE_NO_MISSING = { + "Int64": "int64", + "int64[pyarrow]": "int64", + "Int32": "int32", + "int32[pyarrow]": "int32", + "Int16": "int16", + "int16[pyarrow]": "int16", + "Int8": "int8", + "int8[pyarrow]": "int8", + "UInt64": "uint64", + "uint64[pyarrow]": "uint64", + "UInt32": "uint32", + "uint32[pyarrow]": "uint32", + "UInt16": "uint16", + "uint16[pyarrow]": "uint16", + "UInt8": "uint8", + "uint8[pyarrow]": "uint8", + "Float64": "float64", + "float64[pyarrow]": "float64", + "Float32": "float32", + "float32[pyarrow]": "float32", + "halffloat[pyarrow]": "float16", +} +PANDAS_TO_NUMPY_DTYPE_MISSING = { + "Int64": "float64", + "int64[pyarrow]": "float64", + "Int32": "float64", + "int32[pyarrow]": "float64", + "Int16": "float64", + "int16[pyarrow]": "float64", + "Int8": "float64", + "int8[pyarrow]": "float64", + "UInt64": "float64", + "uint64[pyarrow]": "float64", + "UInt32": "float64", + "uint32[pyarrow]": "float64", + "UInt16": "float64", + "uint16[pyarrow]": "float64", + "UInt8": "float64", + "uint8[pyarrow]": "float64", + "Float64": "float64", + "float64[pyarrow]": "float64", + "Float32": "float32", + "float32[pyarrow]": "float32", + "halffloat[pyarrow]": "float16", +} + + +class PandasLikeSeries(EagerSeries[Any]): + def __init__( + self, native_series: Any, *, implementation: Implementation, version: Version + ) -> None: + self._name = native_series.name + self._native_series = native_series + self._implementation = implementation + self._version = version + # Flag which indicates if, in the final step before applying an operation, + # the single value behind the PandasLikeSeries should be extract and treated + # as a Scalar. For example, in `nw.col('a') - nw.lit(3)`, the latter would + # become a Series of length 1. Rather that doing a full broadcast so it matches + # the length of the whole dataframe, we just extract the scalar. + self._broadcast = False + + @property + def native(self) -> Any: + return self._native_series + + def __native_namespace__(self) -> ModuleType: + if self._implementation.is_pandas_like(): + return self._implementation.to_native_namespace() + + msg = f"Expected pandas/modin/cudf, got: {type(self._implementation)}" # pragma: no cover + raise AssertionError(msg) + + def __narwhals_namespace__(self) -> PandasLikeNamespace: + from narwhals._pandas_like.namespace import PandasLikeNamespace + + return PandasLikeNamespace(self._implementation, self._version) + + def _gather(self, rows: SizedMultiIndexSelector[pd.Series[Any]]) -> Self: + rows = list(rows) if isinstance(rows, tuple) else rows + return self._with_native(self.native.iloc[rows]) + + def _gather_slice(self, rows: _SliceIndex | range) -> Self: + return self._with_native( + self.native.iloc[slice(rows.start, rows.stop, rows.step)] + ) + + def _with_version(self, version: Version) -> Self: + return self.__class__( + self.native, implementation=self._implementation, version=version + ) + + def _with_native(self, series: Any, *, preserve_broadcast: bool = False) -> Self: + result = self.__class__( + series, implementation=self._implementation, version=self._version + ) + if preserve_broadcast: + result._broadcast = self._broadcast + return result + + @classmethod + def from_iterable( + cls, + data: Iterable[Any], + *, + context: _LimitedContext, + name: str = "", + dtype: IntoDType | None = None, + index: Any = None, + ) -> Self: + implementation = context._implementation + version = context._version + ns = implementation.to_native_namespace() + kwds: dict[str, Any] = {} + if dtype: + kwds["dtype"] = narwhals_to_native_dtype(dtype, None, implementation, version) + else: + if implementation.is_pandas(): + kwds["copy"] = False + else: # pragma: no cover + pass + if index is not None and len(index): + kwds["index"] = index + return cls.from_native(ns.Series(data, name=name, **kwds), context=context) + + @staticmethod + def _is_native(obj: Any) -> TypeIs[Any]: + return is_pandas_like_series(obj) # pragma: no cover + + @classmethod + def from_native(cls, data: Any, /, *, context: _LimitedContext) -> Self: + return cls(data, implementation=context._implementation, version=context._version) + + @classmethod + def from_numpy(cls, data: Into1DArray, /, *, context: _LimitedContext) -> Self: + implementation = context._implementation + arr = data if is_numpy_array_1d(data) else [data] + native = implementation.to_native_namespace().Series(arr, name="") + return cls.from_native(native, context=context) + + @classmethod + def _align_full_broadcast(cls, *series: Self) -> Sequence[Self]: + Series = series[0].__native_namespace__().Series + lengths = [len(s) for s in series] + target_length = max( + length for length, s in zip(lengths, series, strict=False) if not s._broadcast + ) + idx = series[lengths.index(target_length)].native.index + reindexed = [] + for s in series: + if s._broadcast: + native = broadcast_series_to_index( + s.native, idx, is_nested=s.dtype.is_nested(), series_class=Series + ) + compliant = s._with_native(native) + elif s.native.index is not idx: + native = set_index(s.native, idx, implementation=s._implementation) + compliant = s._with_native(native) + else: + compliant = s + reindexed.append(compliant) + return reindexed + + @property + def name(self) -> str: + return self._name + + @property + def dtype(self) -> DType: + native_dtype = self.native.dtype + return ( + native_to_narwhals_dtype(native_dtype, self._version, self._implementation) + if native_dtype != "object" + else object_native_to_narwhals_dtype( + self.native, self._version, self._implementation + ) + ) + + @property + def _array_funcs(self): # type: ignore[no-untyped-def] # noqa: ANN202 + if TYPE_CHECKING: + import numpy as np + + return np + return import_array_module(self._implementation) + + def ewm_mean( + self, + *, + com: float | None, + span: float | None, + half_life: float | None, + alpha: float | None, + adjust: bool, + min_samples: int, + ignore_nulls: bool, + ) -> Self: + ser = self.native + mask_na = ser.isna() + if self._implementation is Implementation.CUDF: + if (min_samples == 0 and not ignore_nulls) or (not mask_na.any()): + result = ser.ewm( + com=com, span=span, halflife=half_life, alpha=alpha, adjust=adjust + ).mean() + else: + msg = ( + "cuDF only supports `ewm_mean` when there are no missing values " + "or when both `min_period=0` and `ignore_nulls=False`" + ) + raise NotImplementedError(msg) + else: + result = ser.ewm( + com, span, half_life, alpha, min_samples, adjust, ignore_na=ignore_nulls + ).mean() + result[mask_na] = None + return self._with_native(result) + + @overload + def scatter( + self, indices: Self, values: Self, *, in_place: Literal[True] + ) -> None: ... + @overload + def scatter( + self, indices: Self, values: Self, *, in_place: Literal[False] = False + ) -> Self: ... + + def scatter( + self, indices: Self, values: Self, *, in_place: bool = False + ) -> Self | None: + # !NOTE: See conversation at https://github.com/narwhals-dev/narwhals/pull/3444#discussion_r2787546529 + # to understand why signature differs from `CompliantSeries` + impl = self._implementation + native_series, indices_native = self.native, indices.native + values_native = set_index( + values.native, native_series.index[indices_native], implementation=impl + ) + series = native_series if in_place else native_series.copy(deep=True) + + if impl.is_pandas() and in_place and NUMPY_VERSION < (2,): # pragma: no cover + values_native = values_native.copy() + + series.iloc[indices_native] = values_native + + return None if in_place else self._with_native(series) + + def cast(self, dtype: IntoDType) -> Self: + if self.dtype == dtype and self.native.dtype != "object": + # Avoid dealing with pandas' type-system if we can. Note that it's only + # safe to do this if we're not starting with object dtype, see tests/expr_and_series/cast_test.py::test_cast_object_pandas + # for an example of why. + return self._with_native(self.native, preserve_broadcast=True) + pd_dtype = narwhals_to_native_dtype( + dtype, + dtype_backend=get_dtype_backend(self.native.dtype, self._implementation), + implementation=self._implementation, + version=self._version, + ) + result = self.native.astype(pd_dtype) + if ( + pd_dtype is str + and is_pandas_or_modin(self._implementation) + and PANDAS_VERSION < (3,) + and (null_mask := self.native.isna()).any() + ): + # NOTE: pandas<3.0.0, `astype(str)` renders nulls as `'None'` / `'nan'` + # instead of keeping them null. Newer versions cast to a string dtype which + # preserves them, and cuDF's string conversions keep the null mask, + # so in neither case is there anything to restore. + # NOTE: `astype` already returned a new object, so mask it in place. + result.mask(null_mask, None, inplace=True) # noqa: PD002 + return self._with_native(result, preserve_broadcast=True) + + def item(self, index: int | None = None) -> Any: + # cuDF doesn't have Series.item(). + if index is None: + if len(self) != 1: + msg = ( + "can only call '.item()' if the Series is of length 1," + f" or an explicit index is provided (Series is of length {len(self)})" + ) + raise ValueError(msg) + return self.native.iloc[0] + return self.native.iloc[index] + + def to_frame(self) -> PandasLikeDataFrame: + from narwhals._pandas_like.dataframe import PandasLikeDataFrame + + return PandasLikeDataFrame( + self.native.to_frame(), + implementation=self._implementation, + version=self._version, + validate_column_names=False, + ) + + def to_list(self) -> list[Any]: + is_cudf = self._implementation.is_cudf() + return self.native.to_arrow().to_pylist() if is_cudf else self.native.to_list() + + def is_between( + self, lower_bound: Any, upper_bound: Any, closed: ClosedInterval + ) -> Self: + ser = self.native + _, lower_bound = align_and_extract_native(self, lower_bound) + _, upper_bound = align_and_extract_native(self, upper_bound) + if closed == "left": + res = ser.ge(lower_bound) & ser.lt(upper_bound) + elif closed == "right": + res = ser.gt(lower_bound) & ser.le(upper_bound) + elif closed == "none": + res = ser.gt(lower_bound) & ser.lt(upper_bound) + elif closed == "both": + res = ser.ge(lower_bound) & ser.le(upper_bound) + else: + assert_never(closed) + return self._with_native(res).alias(ser.name) + + def is_in(self, other: Any) -> Self: + ser = self.native + res = ser.isin(other) + dtype_backend = get_dtype_backend(ser.dtype, self._implementation) + if dtype_backend is not None: + res = res.convert_dtypes(dtype_backend=dtype_backend) + if self._implementation.is_pandas() and self._backend_version < (3, 0): + res.mask(ser.isna(), inplace=True) # noqa: PD002 + else: + res = res.mask(ser.isna()) + return self._with_native(res) + + def arg_true(self) -> Self: + ser = self.native + size = len(ser) + data = self._array_funcs.arange(size) + result = ser.__class__(data, name=ser.name, index=ser.index).loc[ser] + return self._with_native(result) + + def arg_min(self) -> int: + return self.native.argmin() + + def arg_max(self) -> int: + return self.native.argmax() + + # Binary comparisons + + def filter(self, predicate: Any) -> Self: + if not is_list_of(predicate, bool): + _, other_native = align_and_extract_native(self, predicate) + else: + other_native = predicate + return self._with_native(self.native.loc[other_native]).alias(self.name) + + def first(self) -> PythonLiteral: + return self.native.iloc[0] if len(self.native) else None + + def last(self) -> PythonLiteral: + return self.native.iloc[-1] if len(self.native) else None + + def _with_binary(self, op: Callable[..., pd.Series], other: Any) -> Self: + ser, other_native = align_and_extract_native(self, other) + preserve_broadcast = self._broadcast and getattr(other, "_broadcast", True) + try: + res = op(ser, other_native) + except TypeError: # pragma: no cover + # Fixed in pandas 3.0.3 + if ( + op.__name__ == "add" + and self.dtype == String + and ( + isinstance(other, str) + or (isinstance(other, self.__class__) and other.dtype == String) + ) + ): + pdx = self.__native_namespace__() + res = binary_string_sum_fallback(ser, other_native, pdx) + else: + raise + return self._with_native(res, preserve_broadcast=preserve_broadcast).alias( + self.name + ) + + def _with_binary_right(self, op: Callable[..., pd.Series], other: Any) -> Self: + return self._with_binary(lambda x, y: op(y, x), other).alias(self.name) + + def __eq__(self, other: object) -> Self: # type: ignore[override] + return self._with_binary(operator.eq, other) + + def __ne__(self, other: object) -> Self: # type: ignore[override] + return self._with_binary(operator.ne, other) + + def __ge__(self, other: Any) -> Self: + return self._with_binary(operator.ge, other) + + def __gt__(self, other: Any) -> Self: + return self._with_binary(operator.gt, other) + + def __le__(self, other: Any) -> Self: + return self._with_binary(operator.le, other) + + def __lt__(self, other: Any) -> Self: + return self._with_binary(operator.lt, other) + + def __and__(self, other: Any) -> Self: + return self._with_binary(operator.and_, other) + + def __rand__(self, other: Any) -> Self: + return self._with_binary_right(operator.and_, other) + + def __or__(self, other: Any) -> Self: + return self._with_binary(operator.or_, other) + + def __ror__(self, other: Any) -> Self: + return self._with_binary_right(operator.or_, other) + + def __add__(self, other: Any) -> Self: + return self._with_binary(operator.add, other) + + def __radd__(self, other: Any) -> Self: + return self._with_binary_right(operator.add, other) + + def __sub__(self, other: Any) -> Self: + return self._with_binary(operator.sub, other) + + def __rsub__(self, other: Any) -> Self: + return self._with_binary_right(operator.sub, other) + + def __mul__(self, other: Any) -> Self: + return self._with_binary(operator.mul, other) + + def __rmul__(self, other: Any) -> Self: + return self._with_binary_right(operator.mul, other) + + def __truediv__(self, other: Any) -> Self: + return self._with_binary(operator.truediv, other) + + def __rtruediv__(self, other: Any) -> Self: + return self._with_binary_right(operator.truediv, other) + + def __floordiv__(self, other: Any) -> Self: + return self._with_binary(floordiv_null_on_zero, other) + + def __rfloordiv__(self, other: Any) -> Self: + return self._with_binary_right(floordiv_null_on_zero, other) + + def __pow__(self, other: Any) -> Self: + return self._with_binary(operator.pow, other) + + def __rpow__(self, other: Any) -> Self: + return self._with_binary_right(operator.pow, other) + + def __mod__(self, other: Any) -> Self: + return self._with_binary(operator.mod, other) + + def __rmod__(self, other: Any) -> Self: + return self._with_binary_right(operator.mod, other) + + # Unary + + def __invert__(self) -> Self: + return self._with_native(~self.native) + + def __neg__(self) -> Self: + return self._with_native(-self.native) + + # Reductions + + def any(self) -> bool: + return self.native.any() + + def all(self) -> bool: + return self.native.all() + + def min(self) -> Any: + return self.native.min() + + def max(self) -> Any: + return self.native.max() + + def sum(self) -> float: + return self.native.sum() + + def count(self) -> int: + return self.native.count() + + def mean(self) -> float: + return self.native.mean() + + def median(self) -> float: + if not self.dtype.is_numeric(): + msg = "`median` operation not supported for non-numeric input type." + raise InvalidOperationError(msg) + return self.native.median() + + def std(self, *, ddof: int) -> float: + return self.native.std(ddof=ddof) + + def var(self, *, ddof: int) -> float: + return self.native.var(ddof=ddof) + + def skew(self) -> float | None: + ser_not_null = self.native.dropna() + if len(ser_not_null) == 0: + return None + if len(ser_not_null) == 1: + return float("nan") + if len(ser_not_null) == 2: + return 0.0 + m = ser_not_null - ser_not_null.mean() + m_squared = m * m + m2 = m_squared.mean() + m3 = (m_squared * m).mean() + return m3 / (m2**1.5) if m2 != 0 else float("nan") + + def kurtosis(self) -> float | None: + ser_not_null = self.native.dropna() + if len(ser_not_null) == 0: + return None + if len(ser_not_null) == 1: + return float("nan") + m = ser_not_null - ser_not_null.mean() + m_squared = m * m + m2 = m_squared.mean() + m4 = (m_squared * m_squared).mean() + return m4 / (m2**2) - 3.0 if m2 != 0 else float("nan") + + def len(self) -> int: + return len(self.native) + + # Transformations + + def is_null(self) -> Self: + return self._with_native(self.native.isna(), preserve_broadcast=True) + + def is_nan(self) -> Self: + ser = self.native + if not self.dtype.is_numeric(): + msg = f"`.is_nan` only supported for numeric dtype and not {self.dtype}, did you mean `.is_null`?" + raise InvalidOperationError(msg) + # TODO(Unassigned): If/when pandas exposes an API which distinguishes NaN vs null, use that. + return self._with_native(ser != ser, preserve_broadcast=True) # noqa: PLR0124 + + def fill_null( + self, + value: Self | NonNestedLiteral, + strategy: FillNullStrategy | None, + limit: int | None, + ) -> Self: + ser = self.native + kwargs = ( + {"downcast": False} + if self._implementation is Implementation.PANDAS + and self._backend_version < (3,) + else {} + ) + with warnings.catch_warnings(): + warnings.filterwarnings( + "ignore", "The 'downcast' keyword .*is deprecated", category=FutureWarning + ) + if value is not None: + _, native_value = align_and_extract_native(self, value) + res_ser = self._with_native( + ser.fillna(value=native_value, **kwargs), preserve_broadcast=True + ) + else: + res_ser = self._with_native( + ser.ffill(limit=limit, **kwargs) + if strategy == "forward" + else ser.bfill(limit=limit, **kwargs), + preserve_broadcast=True, + ) + return res_ser + + def fill_nan(self, value: float | None) -> Self: + impl = self._implementation + if impl.is_cudf() and (value is None): + # TODO(Unassigned): https://github.com/narwhals-dev/narwhals/issues/3231 + msg = "`fill_nan(value=None)` is not support for CuDF backend" + raise NotImplementedError(msg) + if not self.dtype.is_numeric(): # pragma: no cover + msg = f"`.fill_nan` only supported for numeric dtype and not {self.dtype}, did you mean `.fill_null`?" + raise InvalidOperationError(msg) + s = self.native + fill = s.array.dtype.na_value if value is None else value + # If/when pandas exposes an API which distinguishes NaN vs null, use that. + mask = s != s # noqa: PLR0124 + backend_version = impl._backend_version() + if impl.is_pandas() and backend_version < (3, 0): # pragma: no cover + # Carefully use `inplace`, as `mask` isn't provided by the user. + mask.fillna(False, inplace=True) # noqa: PD002 + else: + mask = mask.fillna(False) + + return self._with_native(s.mask(mask, fill), preserve_broadcast=True) + + def drop_nulls(self) -> Self: + return self._with_native(self.native.dropna()) + + def n_unique(self) -> int: + return self.native.nunique(dropna=False) + + def sample(self, n: int, *, with_replacement: bool, seed: int | None) -> Self: + return self._with_native( + self.native.sample(n=n, replace=with_replacement, random_state=seed) + ) + + def abs(self) -> Self: + return self._with_native(self.native.abs()) + + def cum_sum(self, *, reverse: bool) -> Self: + native = self.native + dtype = native.dtype + # pyarrow-backed accumulation keeps the input width and raises on overflow. + if ( + is_dtype_pyarrow(dtype) + and dtype.kind in "iu" + and dtype.pyarrow_dtype.bit_width < 64 + ): + native = native.astype("int64[pyarrow]") + result = ( + native.cumsum(skipna=True) + if not reverse + else native[::-1].cumsum(skipna=True)[::-1] + ) + return self._with_native(result) + + def unique(self, *, maintain_order: bool = True) -> Self: + """Pandas always maintains order, as per its docstring. + + > Uniques are returned in order of appearance. + """ + return self._with_native(type(self.native)(self.native.unique(), name=self.name)) + + def diff(self) -> Self: + return self._with_native(self.native.diff()) + + def shift(self, n: int) -> Self: + return self._with_native(self.native.shift(n)) + + def replace_strict( + self, + default: PandasLikeSeries | NoDefault, + old: Sequence[Any], + new: Sequence[Any], + *, + return_dtype: IntoDType | None, + ) -> PandasLikeSeries: + namespace = self.__native_namespace__() + array_funcs = self._array_funcs + native = self.native + impl = self._implementation + + dtype_backend = get_dtype_backend(native.dtype, impl) + dtype = ( + narwhals_to_native_dtype(return_dtype, dtype_backend, impl, self._version) + if return_dtype + else None + ) + + # Use pandas Index.get_indexer to find positions of values in old + idxs = namespace.Index(old).get_indexer(native) + was_matched = idxs >= 0 + + new_series = namespace.Series(new, dtype=dtype, name=self.name) + if return_dtype is None and dtype_backend is not None: + new_series = new_series.convert_dtypes(dtype_backend=dtype_backend) + + # Take values from new_series, using index or 0 (will be masked for unmatched) + native_result = new_series.iloc[array_funcs.where(was_matched, idxs, 0)] + native_result.index = native.index + + if default is NO_DEFAULT: + # Check that all non-null input values were matched + unmatched_mask = native.notna() & (~was_matched) + if unmatched_mask.any(): + unmatched_values = ( + self._with_native(native[unmatched_mask]) + .unique(maintain_order=False) + .to_list() + ) + msg = ( + "replace_strict did not replace all non-null values.\n\n" + f"The following did not get replaced: {unmatched_values}" + ) + raise InvalidOperationError(msg) + # For unmatched values (nulls in original), set to null + native_result = native_result.where(was_matched, None) + else: + # For unmatched values, use default + _, default_native = align_and_extract_native(self, default) + native_result = native_result.where(was_matched, default_native) + + return self._with_native(native_result) + + def sort(self, *, descending: bool, nulls_last: bool) -> PandasLikeSeries: + na_position = "last" if nulls_last else "first" + return self._with_native( + self.native.sort_values(ascending=not descending, na_position=na_position) + ).alias(self.name) + + def alias(self, name: str | Hashable) -> Self: + if name != self.name: + return self._with_native( + rename(self.native, name, implementation=self._implementation), + preserve_broadcast=True, + ) + return self + + def __array__(self, dtype: Any, *, copy: bool | None) -> _1DArray: + # pandas used to always return object dtype for nullable dtypes. + # So, we intercept __array__ and pass to `to_numpy` ourselves to make + # sure an appropriate numpy dtype is returned. + return self.to_numpy(dtype=dtype, copy=copy) + + def to_numpy(self, dtype: Any = None, *, copy: bool | None = None) -> _1DArray: + # the default is meant to be None, but pandas doesn't allow it? + # https://numpy.org/doc/stable/reference/generated/numpy.ndarray.__array__.html + dtypes = self._version.dtypes + self_dtype = self.dtype + if isinstance(self_dtype, dtypes.Datetime) and self_dtype.time_zone is not None: + s = self.dt.convert_time_zone("UTC").dt.replace_time_zone(None).native + else: + s = self.native + + kwargs: dict[Any, Any] = {"copy": copy or self._implementation.is_cudf()} + dtype_str = str(s.dtype) + if ( + dtype_str in PANDAS_TO_NUMPY_DTYPE_MISSING + or dtype_str in PANDAS_TO_NUMPY_DTYPE_NO_MISSING + ): + has_missing = s.isna().any() + if has_missing and dtype_str in PANDAS_TO_NUMPY_DTYPE_MISSING: + kwargs.update({"na_value": float("nan")}) + dtype = dtype or PANDAS_TO_NUMPY_DTYPE_MISSING[dtype_str] + if not has_missing and dtype_str in PANDAS_TO_NUMPY_DTYPE_NO_MISSING: + dtype = dtype or PANDAS_TO_NUMPY_DTYPE_NO_MISSING[dtype_str] + return s.to_numpy(dtype=dtype, **kwargs) + + def to_pandas(self) -> pd.Series[Any]: + if self._implementation is Implementation.PANDAS: + return self.native + if self._implementation is Implementation.CUDF: # pragma: no cover + return self.native.to_pandas() + if self._implementation is Implementation.MODIN: + return self.native._to_pandas() + msg = f"Unknown implementation: {self._implementation}" # pragma: no cover + raise AssertionError(msg) + + def to_polars(self) -> pl.Series: + import polars as pl # ignore-banned-import + + return pl.from_pandas(self.to_pandas()) + + # --- descriptive --- + def is_unique(self) -> Self: + return self._with_native(~self.native.duplicated(keep=False)).alias(self.name) + + def null_count(self) -> int: + return self.native.isna().sum() + + def is_first_distinct(self) -> Self: + return self._with_native(~self.native.duplicated(keep="first")).alias(self.name) + + def is_last_distinct(self) -> Self: + return self._with_native(~self.native.duplicated(keep="last")).alias(self.name) + + def is_sorted(self, *, descending: bool) -> bool: + if not isinstance(descending, bool): + msg = f"argument 'descending' should be boolean, found {type(descending)}" + raise TypeError(msg) + + if descending: + return self.native.is_monotonic_decreasing + return self.native.is_monotonic_increasing + + def value_counts( + self, *, sort: bool, parallel: bool, name: str | None, normalize: bool + ) -> PandasLikeDataFrame: + """Parallel is unused, exists for compatibility.""" + from narwhals._pandas_like.dataframe import PandasLikeDataFrame + + index_name_ = "index" if self._name is None else self._name + value_name_ = name or ("proportion" if normalize else "count") + val_count = self.native.value_counts( + dropna=False, sort=False, normalize=normalize + ).reset_index() + + val_count.columns = [index_name_, value_name_] + + if sort: + val_count = val_count.sort_values(value_name_, ascending=False) + + return PandasLikeDataFrame.from_native(val_count, context=self) + + def quantile( + self, quantile: float, interpolation: RollingInterpolationMethod + ) -> float: + return self.native.quantile(q=quantile, interpolation=interpolation) + + def zip_with(self, mask: Any, other: Any) -> Self: + ser = self.native + _, mask = align_and_extract_native(self, mask) + _, other = align_and_extract_native(self, other) + res = ser.where(mask, other) + return self._with_native(res) + + def head(self, n: int) -> Self: + return self._with_native(self.native.head(n)) + + def tail(self, n: int) -> Self: + return self._with_native(self.native.tail(n)) + + def round(self, decimals: int) -> Self: + return self._with_native(self.native.round(decimals=decimals)) + + def floor(self) -> Self: + native = self.native + if self.is_native_dtype_pyarrow(native.dtype): + import pyarrow.compute as pc + + result_native = self._apply_pyarrow_compute_func(native, pc.floor) + else: + array_func = self._array_funcs.floor + result_native = self._apply_array_func(native, array_func) + return self._with_native(result_native) + + def ceil(self) -> Self: + native = self.native + if self.is_native_dtype_pyarrow(native.dtype): + import pyarrow.compute as pc + + result_native = self._apply_pyarrow_compute_func(native, pc.ceil) + else: + array_func = self._array_funcs.ceil + result_native = self._apply_array_func(native, array_func) + return self._with_native(result_native) + + def to_dummies(self, *, separator: str, drop_first: bool) -> PandasLikeDataFrame: + from narwhals._pandas_like.dataframe import PandasLikeDataFrame + + plx = self.__native_namespace__() + series = self.native + name = str(self._name) if self._name else "" + + null_col_pl = f"{name}{separator}null" + + has_nulls = series.isna().any() + result = plx.get_dummies( + series, + prefix=name, + prefix_sep=separator, + drop_first=drop_first, + # Adds a null column at the end, depending on whether or not there are any. + dummy_na=has_nulls, + dtype="int8", + ) + if has_nulls: + *cols, null_col_pd = list(result.columns) + output_order = [null_col_pd, *cols] + result = rename( + select_columns_by_name(result, output_order, self._implementation), + columns={null_col_pd: null_col_pl}, + implementation=self._implementation, + ) + return PandasLikeDataFrame.from_native(result, context=self) + + def gather_every(self, n: int, offset: int) -> Self: + return self._with_native(self.native.iloc[offset::n]) + + def clip(self, lower_bound: Self, upper_bound: Self) -> Self: + _, lower = align_and_extract_native(self, lower_bound) + _, upper = align_and_extract_native(self, upper_bound) + impl = self._implementation + kwargs: dict[str, Any] = {"axis": 0} if impl.is_modin() else {} + result = self.native + + if not impl.is_pandas(): # pragma: no cover + # Workaround for both cudf and modin when clipping with a series + # * cudf: https://github.com/rapidsai/cudf/issues/17682 + # * modin: https://github.com/modin-project/modin/issues/7415 + if self._is_native(lower): + result = result.where(result >= lower, lower) + lower = None + if self._is_native(upper): + result = result.where(result <= upper, upper) + upper = None + + return self._with_native(result.clip(lower, upper, **kwargs)) + + def clip_lower(self, lower_bound: Self) -> Self: + _, lower = align_and_extract_native(self, lower_bound) + impl = self._implementation + kwargs: dict[str, Any] = {"axis": 0} if impl.is_modin() else {} + result = self.native + + if not impl.is_pandas() and self._is_native(lower): # pragma: no cover + # Workaround for both cudf and modin when clipping with a series + # * cudf: https://github.com/rapidsai/cudf/issues/17682 + # * modin: https://github.com/modin-project/modin/issues/7415 + result = result.where(result >= lower, lower) + lower = None + + return self._with_native(result.clip(lower, **kwargs)) + + def clip_upper(self, upper_bound: Self) -> Self: + _, upper = align_and_extract_native(self, upper_bound) + impl = self._implementation + kwargs: dict[str, Any] = {"axis": 0} if impl.is_modin() else {} + result = self.native + + if not impl.is_pandas() and self._is_native(upper): # pragma: no cover + # Workaround for both cudf and modin when clipping with a series + # * cudf: https://github.com/rapidsai/cudf/issues/17682 + # * modin: https://github.com/modin-project/modin/issues/7415 + result = result.where(result <= upper, upper) + upper = None + + return self._with_native(result.clip(upper=upper, **kwargs)) + + def to_arrow(self) -> pa.Array[Any]: + if self._implementation is Implementation.CUDF: + return self.native.to_arrow() + + import pyarrow as pa # ignore-banned-import() + + return pa.Array.from_pandas(self.native) + + def mode(self, *, keep: ModeKeepStrategy) -> Self: + result = self.native.mode() + result.name = self.name + return self._with_native(result.head(1) if keep == "any" else result) + + def cum_count(self, *, reverse: bool) -> Self: + not_na_series = ~self.native.isna() + result = ( + not_na_series.cumsum() + if not reverse + else not_na_series.sum() - not_na_series.cumsum() + not_na_series + ) + return self._with_native(result) + + def cum_min(self, *, reverse: bool) -> Self: + result = ( + self.native.cummin(skipna=True) + if not reverse + else self.native[::-1].cummin(skipna=True)[::-1] + ) + return self._with_native(result) + + def cum_max(self, *, reverse: bool) -> Self: + result = ( + self.native.cummax(skipna=True) + if not reverse + else self.native[::-1].cummax(skipna=True)[::-1] + ) + return self._with_native(result) + + def cum_prod(self, *, reverse: bool) -> Self: + result = ( + self.native.cumprod(skipna=True) + if not reverse + else self.native[::-1].cumprod(skipna=True)[::-1] + ) + return self._with_native(result) + + def rolling_sum(self, window_size: int, *, min_samples: int, center: bool) -> Self: + result = self.native.rolling( + window=window_size, min_periods=min_samples, center=center + ).sum() + return self._with_native(result) + + def rolling_mean(self, window_size: int, *, min_samples: int, center: bool) -> Self: + result = self.native.rolling( + window=window_size, min_periods=min_samples, center=center + ).mean() + return self._with_native(result) + + def rolling_var( + self, window_size: int, *, min_samples: int, center: bool, ddof: int + ) -> Self: + result = self.native.rolling( + window=window_size, min_periods=min_samples, center=center + ).var(ddof=ddof) + return self._with_native(result) + + def rolling_std( + self, window_size: int, *, min_samples: int, center: bool, ddof: int + ) -> Self: + result = self.native.rolling( + window=window_size, min_periods=min_samples, center=center + ).std(ddof=ddof) + return self._with_native(result) + + def __iter__(self) -> Iterator[Any]: + if self._implementation.is_cudf(): + msg = ( + "Iterating over a cuDF Series, DataFrame or Index is not supported. " + "For more information see: https://docs.rapids.ai/api/cudf/stable/user_guide/pandas-comparison/#iteration" + ) + raise NotImplementedError(msg) + + yield from self.native.__iter__() + + def __contains__(self, other: Any) -> bool: + return self.native.isna().any() if other is None else (self.native == other).any() + + def is_finite(self) -> Self: + native = self.native + if self.is_native_dtype_pyarrow(native.dtype): + import pyarrow.compute as pc + + result_native = self._apply_pyarrow_compute_func( + native, + pc.is_finite, # type: ignore[arg-type] + ) + else: + array_func = self._array_funcs.isfinite + result_native = self._apply_array_func(native, array_func) + return self._with_native(result_native) + + def rank(self, method: RankMethod, *, descending: bool) -> Self: + pd_method = "first" if method == "ordinal" else method + name = self.name + if ( + self._implementation is Implementation.PANDAS + and self._backend_version < (3,) + and get_dtype_backend(self.native.dtype, self._implementation) + == "numpy_nullable" + and self.dtype.is_integer() + and (null_mask := self.is_null()).any() + ): + # crazy workaround for the case of `na_option="keep"` and nullable + # integer dtypes. This should be supported in pandas > 3.0 + # https://github.com/pandas-dev/pandas/issues/56976 + mask_name = f"{name}_is_null" + plx = self.__narwhals_namespace__() + df = ( + self.to_frame() + .with_columns(plx._expr._from_series(null_mask).alias(mask_name)) + .native + ) + return self._with_native( + df.groupby(mask_name) + .rank( + method=pd_method, + na_option="keep", + ascending=not descending, + pct=False, + ) + .iloc[:, 0] + ).alias(self.name) + return self._with_native( + self.native.rank( + method=pd_method, na_option="keep", ascending=not descending, pct=False + ) + ) + + def hist_from_bins( + self, bins: list[float], *, include_breakpoint: bool + ) -> PandasLikeDataFrame: + return ( + _PandasHist.from_series(self, include_breakpoint=include_breakpoint) + .with_bins(bins) + .to_frame() + ) + + def hist_from_bin_count( + self, bin_count: int, *, include_breakpoint: bool + ) -> PandasLikeDataFrame: + return ( + _PandasHist.from_series(self, include_breakpoint=include_breakpoint) + .with_bin_count(bin_count) + .to_frame() + ) + + def log(self, base: float) -> Self: + native = self.native + if self.is_native_dtype_pyarrow(native.dtype): + import pyarrow.compute as pc + + def pc_log(ca: ChunkedArrayAny) -> ChunkedArrayAny: + return pc.logb(ca, base) # type: ignore[return-value] + + result_native = self._apply_pyarrow_compute_func(native, pc_log) + else: + log_func = self._array_funcs.log + + def array_log(arr: NativeSeriesT) -> NativeSeriesT: + return log_func(arr) / log_func(base) # pyright: ignore[reportArgumentType, reportCallIssue] + + result_native = self._apply_array_func(native, array_log) + return self._with_native(result_native) + + def exp(self) -> Self: + native = self.native + if self.is_native_dtype_pyarrow(native.dtype): + import pyarrow.compute as pc + + result_native = self._apply_pyarrow_compute_func(native, pc.exp) + else: + array_func = self._array_funcs.exp + result_native = self._apply_array_func(native, array_func) + + return self._with_native(result_native) + + def sqrt(self) -> Self: + native = self.native + if self.is_native_dtype_pyarrow(native.dtype): + import pyarrow as pa # ignore-banned-import() + import pyarrow.compute as pc + + def pc_sqrt(ca: ChunkedArrayAny) -> ChunkedArrayAny: + result = pc.sqrt(pc.cast(ca, pa.float64())) + null = pa.scalar(None, pa.float64()) + return pc.if_else(pc.is_nan(result), null, result) + + result_native = self._apply_pyarrow_compute_func(native, pc_sqrt) + else: + array_func = self._array_funcs.sqrt + result_native = self._apply_array_func(native, array_func) + return self._with_native(result_native) + + def sin(self) -> Self: + native = self.native + if self.is_native_dtype_pyarrow(native.dtype): + import pyarrow.compute as pc + + result_native = self._apply_pyarrow_compute_func( + native, + pc.sin, # type: ignore[arg-type] + ) + else: + array_func = self._array_funcs.sin + result_native = self._apply_array_func(native, array_func) + + return self._with_native(result_native) + + def cos(self) -> Self: + native = self.native + if self.is_native_dtype_pyarrow(native.dtype): + import pyarrow.compute as pc + + result_native = self._apply_pyarrow_compute_func( + native, + pc.cos, # type: ignore[arg-type] + ) + else: + array_func = self._array_funcs.cos + result_native = self._apply_array_func(native, array_func) + + return self._with_native(result_native) + + def is_native_dtype_pyarrow(self, native_dtype: Any) -> bool: + impl = self._implementation + return get_dtype_backend(native_dtype, implementation=impl) == "pyarrow" + + def _apply_pyarrow_compute_func( + self, native: NativeSeriesT, pc_func: Callable[[ChunkedArrayAny], ChunkedArrayAny] + ) -> NativeSeriesT: + from narwhals._arrow.utils import native_to_narwhals_dtype + + native_cls = type(native) + result_arr = pc_func(native.array._pa_array) # type: ignore[attr-defined] + nw_dtype = native_to_narwhals_dtype(result_arr.type, self._version) + out_dtype = narwhals_to_native_dtype( + nw_dtype, "pyarrow", self._implementation, self._version + ) + return native_cls( + result_arr, dtype=out_dtype, index=native.index, name=native.name + ) + + def _apply_array_func( + self, native: NativeSeriesT, array_func: Callable[[NativeSeriesT], NativeSeriesT] + ) -> NativeSeriesT: + native_cls = type(native) + result_arr = array_func(native) + return ( + native_cls(result_arr, index=native.index, name=native.name) + if self._implementation.is_cudf() + else result_arr + ) + + def any_value(self, *, ignore_nulls: bool) -> PythonLiteral: + return self.drop_nulls().first() if ignore_nulls else self.first() + + @property + def str(self) -> PandasLikeSeriesStringNamespace: + return PandasLikeSeriesStringNamespace(self) + + @property + def dt(self) -> PandasLikeSeriesDateTimeNamespace: + return PandasLikeSeriesDateTimeNamespace(self) + + @property + def cat(self) -> PandasLikeSeriesCatNamespace: + return PandasLikeSeriesCatNamespace(self) + + @property + def list(self) -> PandasLikeSeriesListNamespace: + if not hasattr(self.native, "list"): + msg = "Series must be of PyArrow List type to support list namespace." + raise TypeError(msg) + return PandasLikeSeriesListNamespace(self) + + @property + def struct(self) -> PandasLikeSeriesStructNamespace: + if not hasattr(self.native, "struct"): + msg = "Series must be of PyArrow Struct type to support struct namespace." + raise TypeError(msg) + return PandasLikeSeriesStructNamespace(self) + + +class _PandasHist(EagerSeriesHist["pd.Series[Any]", "list[float]"]): + _series: PandasLikeSeries + + def to_frame(self) -> PandasLikeDataFrame: + from_native = self._series.__narwhals_namespace__()._dataframe.from_native + DataFrame = self._series.__native_namespace__().DataFrame + return from_native(DataFrame(self._data), context=self._series) + + # NOTE: *Could* be handled at narwhals-level + def is_empty_series(self) -> bool: + return self._series.count() < 1 + + # NOTE: *Could* be handled at narwhals-level, **iff** we add `nw.repeat`, `nw.linear_space` + # See https://github.com/narwhals-dev/narwhals/pull/2839#discussion_r2215630696 + def series_empty(self, arg: int | list[float], /) -> PandasHistData: + count = self._zeros(arg) + if self._breakpoint: + return {"breakpoint": self._calculate_breakpoint(arg), "count": count} + return {"count": count} + + def _zeros(self, arg: int | list[float], /) -> _1DArray: + zeros = self._series._array_funcs.zeros + return zeros(arg) if isinstance(arg, int) else zeros(len(arg) - 1) + + # NOTE: Based on `pl.Expr.cut` + def _cut( + self, + breaks: list[float] | _1DArray, + *, + labels: Sequence[str] | None = None, + closed: Literal["left", "right"] = "right", + ) -> pd.Series[Any]: + # NOTE: Polars 1.27.0 always includes the lowest bin + cut = self._series.__native_namespace__().cut + return cut( + self.native, + bins=breaks, + right=closed == "right", + labels=labels, + include_lowest=True, + ) + + def _linear_space( + self, + start: float, + end: float, + num_samples: int, + *, + closed: Literal["both", "none"] = "both", + ) -> _1DArray: + return self._series._array_funcs.linspace( + start=start, stop=end, num=num_samples, endpoint=closed == "both" + ) + + def _calculate_bins(self, bin_count: int) -> _1DArray: + """Prepare bins for histogram calculation from bin_count.""" + lower, upper = self.native.min(), self.native.max() + if lower == upper: + lower -= 0.5 + upper += 0.5 + return self._linear_space(lower, upper, bin_count + 1) + + def _calculate_hist(self, bins: list[float] | _1DArray) -> PandasHistData: + # pandas (2.2.*) .value_counts(bins=[...]) adjusts the lowest bin which should not + # happen since the bins were explicitly passed in. + categories = self._cut(bins) + # modin (0.32.0) .value_counts(...) silently drops bins with empty observations, + # .reindex is necessary to restore these bins. + count = categories.value_counts(dropna=True, sort=False).reindex( + categories.cat.categories, fill_value=0 + ) + impl = self._series._implementation + if impl.is_pandas() and impl._backend_version() < (3, 0): # pragma: no cover + # NOTE: Keep `inplace=True` to avoid making a redundant copy. + count.reset_index(drop=True, inplace=True) # noqa: PD002 + else: + count = count.reset_index(drop=True) + if self._breakpoint: + return {"breakpoint": bins[1:], "count": count} + return {"count": count} diff --git a/shared/package-files/0a/0a2bb2b221c0dfd57951f702057148c7cdc8ac3a6ec1f37d45c4d482fdbc7ed4/hooks.py b/shared/package-files/0a/0a2bb2b221c0dfd57951f702057148c7cdc8ac3a6ec1f37d45c4d482fdbc7ed4/hooks.py new file mode 100644 index 0000000000000000000000000000000000000000..d181ba2ec2e55d274897315887b78fbdca757da8 --- /dev/null +++ b/shared/package-files/0a/0a2bb2b221c0dfd57951f702057148c7cdc8ac3a6ec1f37d45c4d482fdbc7ed4/hooks.py @@ -0,0 +1,33 @@ +""" +requests.hooks +~~~~~~~~~~~~~~ + +This module provides the capabilities for the Requests hooks system. + +Available hooks: + +``response``: + The response generated from a Request. +""" +HOOKS = ["response"] + + +def default_hooks(): + return {event: [] for event in HOOKS} + + +# TODO: response is the only one + + +def dispatch_hook(key, hooks, hook_data, **kwargs): + """Dispatches a hook dictionary on a given piece of data.""" + hooks = hooks or {} + hooks = hooks.get(key) + if hooks: + if hasattr(hooks, "__call__"): + hooks = [hooks] + for hook in hooks: + _hook_data = hook(hook_data, **kwargs) + if _hook_data is not None: + hook_data = _hook_data + return hook_data diff --git a/shared/package-files/0a/0a2d2c184688f2c80dde84389baddc23bfdf93a6fd61c40295ed52108a6430ba/adjustments.pyi b/shared/package-files/0a/0a2d2c184688f2c80dde84389baddc23bfdf93a6fd61c40295ed52108a6430ba/adjustments.pyi new file mode 100644 index 0000000000000000000000000000000000000000..54b15ee26da7fb03d40f16fa872ca790548cddd2 --- /dev/null +++ b/shared/package-files/0a/0a2d2c184688f2c80dde84389baddc23bfdf93a6fd61c40295ed52108a6430ba/adjustments.pyi @@ -0,0 +1,61 @@ +from socket import SocketType +from typing import Any, Dict, FrozenSet, Iterable, List, Optional, Sequence, Set, Tuple, Union + +from .compat import HAS_IPV6 as HAS_IPV6, PY2 as PY2, WIN as WIN, string_types as string_types +from .proxy_headers import PROXY_HEADERS as PROXY_HEADERS + +truthy: FrozenSet +KNOWN_PROXY_HEADERS: FrozenSet + +def asbool(s: Optional[Union[bool, str, int]]) -> bool: ... +def asoctal(s: str) -> int: ... +def aslist_cronly(value: str) -> List[str]: ... +def aslist(value: str) -> List[str]: ... +def asset(value: Optional[str]) -> Set[str]: ... +def slash_fixed_str(s: Optional[str]) -> str: ... +def str_iftruthy(s: Optional[str]) -> Optional[str]: ... +def as_socket_list(sockets: Sequence[object]) -> List[SocketType]: ... + +class _str_marker(str): ... +class _int_marker(int): ... +class _bool_marker: ... + +class Adjustments: + host: _str_marker = ... + port: _int_marker = ... + listen: List[str] = ... + threads: int = ... + trusted_proxy: Optional[str] = ... + trusted_proxy_count: Optional[int] = ... + trusted_proxy_headers: Set[str] = ... + log_untrusted_proxy_headers: bool = ... + clear_untrusted_proxy_headers: Union[_bool_marker, bool] = ... + url_scheme: str = ... + url_prefix: str = ... + ident: str = ... + backlog: int = ... + recv_bytes: int = ... + send_bytes: int = ... + outbuf_overflow: int = ... + outbuf_high_watermark: int = ... + inbuf_overflow: int = ... + connection_limit: int = ... + cleanup_interval: int = ... + channel_timeout: int = ... + log_socket_errors: bool = ... + max_request_header_size: int = ... + max_request_body_size: int = ... + expose_tracebacks: bool = ... + unix_socket: Optional[str] = ... + unix_socket_perms: int = ... + socket_options: List[Tuple[int, int, int]] = ... + asyncore_loop_timeout: int = ... + asyncore_use_poll: bool = ... + ipv4: bool = ... + ipv6: bool = ... + sockets: List[SocketType] = ... + def __init__(self, **kw: Any) -> None: ... + @classmethod + def parse_args(cls, argv: str) -> Tuple[Dict[str, Any], Any]: ... + @classmethod + def check_sockets(cls, sockets: Iterable[SocketType]) -> None: ... diff --git a/shared/package-files/0a/0a2fb7213396f460af4c8a582e673960f2713470bcf8b29ecf1065ff2a6580ae/ansi+rca2 b/shared/package-files/0a/0a2fb7213396f460af4c8a582e673960f2713470bcf8b29ecf1065ff2a6580ae/ansi+rca2 new file mode 100644 index 0000000000000000000000000000000000000000..2c1175943106ff4d0471189ff55b926c534bb8e0 Binary files /dev/null and b/shared/package-files/0a/0a2fb7213396f460af4c8a582e673960f2713470bcf8b29ecf1065ff2a6580ae/ansi+rca2 differ diff --git a/shared/package-files/0a/0a3318a6636bbd6afbeb3e5e90cd965544d1d8864ec267235fdfbef70447444c/special_laguerre_polynomial_l.h b/shared/package-files/0a/0a3318a6636bbd6afbeb3e5e90cd965544d1d8864ec267235fdfbef70447444c/special_laguerre_polynomial_l.h new file mode 100644 index 0000000000000000000000000000000000000000..fc12a5480a9ff6eabf3bc58e01a18338492621af --- /dev/null +++ b/shared/package-files/0a/0a3318a6636bbd6afbeb3e5e90cd965544d1d8864ec267235fdfbef70447444c/special_laguerre_polynomial_l.h @@ -0,0 +1,67 @@ +#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_laguerre_polynomial_l(Tensor x, Tensor n) -> Tensor +inline at::Tensor special_laguerre_polynomial_l(const at::Tensor & x, const at::Tensor & n) { + return at::_ops::special_laguerre_polynomial_l::call(x, n); +} + +// aten::special_laguerre_polynomial_l.x_scalar(Scalar x, Tensor n) -> Tensor +inline at::Tensor special_laguerre_polynomial_l(const at::Scalar & x, const at::Tensor & n) { + return at::_ops::special_laguerre_polynomial_l_x_scalar::call(x, n); +} + +// aten::special_laguerre_polynomial_l.n_scalar(Tensor x, Scalar n) -> Tensor +inline at::Tensor special_laguerre_polynomial_l(const at::Tensor & x, const at::Scalar & n) { + return at::_ops::special_laguerre_polynomial_l_n_scalar::call(x, n); +} + +// aten::special_laguerre_polynomial_l.out(Tensor x, Tensor n, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & special_laguerre_polynomial_l_out(at::Tensor & out, const at::Tensor & x, const at::Tensor & n) { + return at::_ops::special_laguerre_polynomial_l_out::call(x, n, out); +} +// aten::special_laguerre_polynomial_l.out(Tensor x, Tensor n, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & special_laguerre_polynomial_l_outf(const at::Tensor & x, const at::Tensor & n, at::Tensor & out) { + return at::_ops::special_laguerre_polynomial_l_out::call(x, n, out); +} + +// aten::special_laguerre_polynomial_l.x_scalar_out(Scalar x, Tensor n, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & special_laguerre_polynomial_l_out(at::Tensor & out, const at::Scalar & x, const at::Tensor & n) { + return at::_ops::special_laguerre_polynomial_l_x_scalar_out::call(x, n, out); +} +// aten::special_laguerre_polynomial_l.x_scalar_out(Scalar x, Tensor n, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & special_laguerre_polynomial_l_outf(const at::Scalar & x, const at::Tensor & n, at::Tensor & out) { + return at::_ops::special_laguerre_polynomial_l_x_scalar_out::call(x, n, out); +} + +// aten::special_laguerre_polynomial_l.n_scalar_out(Tensor x, Scalar n, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & special_laguerre_polynomial_l_out(at::Tensor & out, const at::Tensor & x, const at::Scalar & n) { + return at::_ops::special_laguerre_polynomial_l_n_scalar_out::call(x, n, out); +} +// aten::special_laguerre_polynomial_l.n_scalar_out(Tensor x, Scalar n, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & special_laguerre_polynomial_l_outf(const at::Tensor & x, const at::Scalar & n, at::Tensor & out) { + return at::_ops::special_laguerre_polynomial_l_n_scalar_out::call(x, n, out); +} + +} diff --git a/shared/package-files/0a/0a3661da2f5637955ea036cbab2eccd4066da29678dff0bd6e5586dce4f621f5/schema.h b/shared/package-files/0a/0a3661da2f5637955ea036cbab2eccd4066da29678dff0bd6e5586dce4f621f5/schema.h new file mode 100644 index 0000000000000000000000000000000000000000..1addc73bd367d38d517172602541bd978b6a0f8d --- /dev/null +++ b/shared/package-files/0a/0a3661da2f5637955ea036cbab2eccd4066da29678dff0bd6e5586dce4f621f5/schema.h @@ -0,0 +1,494 @@ +// 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 module contains the logical parquet-cpp types (independent of Thrift +// structures), schema nodes, and related type tools + +#pragma once + +#include +#include +#include +#include +#include +#include +#include + +#include "parquet/platform.h" +#include "parquet/types.h" +#include "parquet/windows_fixup.h" // for OPTIONAL + +namespace parquet { + +class SchemaDescriptor; + +namespace schema { + +class Node; + +// List encodings: using the terminology from Impala to define different styles +// of representing logical lists (a.k.a. ARRAY types) in Parquet schemas. Since +// the converted type named in the Parquet metadata is ConvertedType::LIST we +// use that terminology here. It also helps distinguish from the *_ARRAY +// primitive types. +// +// One-level encoding: Only allows required lists with required cells +// repeated value_type name +// +// Two-level encoding: Enables optional lists with only required cells +// group list +// repeated value_type item +// +// Three-level encoding: Enables optional lists with optional cells +// group bag +// repeated group list +// value_type item +// +// 2- and 1-level encoding are respectively equivalent to 3-level encoding with +// the non-repeated nodes set to required. +// +// The "official" encoding recommended in the Parquet spec is the 3-level, and +// we use that as the default when creating list types. For semantic completeness +// we allow the other two. Since all types of encodings will occur "in the +// wild" we need to be able to interpret the associated definition levels in +// the context of the actual encoding used in the file. +// +// NB: Some Parquet writers may not set ConvertedType::LIST on the repeated +// SchemaElement, which could make things challenging if we are trying to infer +// that a sequence of nodes semantically represents an array according to one +// of these encodings (versus a struct containing an array). We should refuse +// the temptation to guess, as they say. +struct ListEncoding { + enum type { ONE_LEVEL, TWO_LEVEL, THREE_LEVEL }; +}; + +class PARQUET_EXPORT ColumnPath { + public: + ColumnPath() : path_() {} + explicit ColumnPath(const std::vector& path) : path_(path) {} + explicit ColumnPath(std::vector&& path) : path_(std::move(path)) {} + + static std::shared_ptr FromDotString(const std::string& dotstring); + static std::shared_ptr FromNode(const Node& node); + + std::shared_ptr extend(const std::string& node_name) const; + std::string ToDotString() const; + const std::vector& ToDotVector() const; + + protected: + std::vector path_; +}; + +// Base class for logical schema types. A type has a name, repetition level, +// and optionally a logical type (ConvertedType in Parquet metadata parlance) +class PARQUET_EXPORT Node { + public: + enum type { PRIMITIVE, GROUP }; + + virtual ~Node() {} + + bool is_primitive() const { return type_ == Node::PRIMITIVE; } + + bool is_group() const { return type_ == Node::GROUP; } + + bool is_optional() const { return repetition_ == Repetition::OPTIONAL; } + + bool is_repeated() const { return repetition_ == Repetition::REPEATED; } + + bool is_required() const { return repetition_ == Repetition::REQUIRED; } + + virtual bool Equals(const Node* other) const = 0; + + const std::string& name() const { return name_; } + + Node::type node_type() const { return type_; } + + Repetition::type repetition() const { return repetition_; } + + ConvertedType::type converted_type() const { return converted_type_; } + + const std::shared_ptr& logical_type() const { return logical_type_; } + + /// \brief The field_id value for the serialized SchemaElement. If the + /// field_id is less than 0 (e.g. -1), it will not be set when serialized to + /// Thrift. + int field_id() const { return field_id_; } + + const Node* parent() const { return parent_; } + + const std::shared_ptr path() const; + + virtual void ToParquet(void* element) const = 0; + + // Node::Visitor abstract class for walking schemas with the visitor pattern + class Visitor { + public: + virtual ~Visitor() {} + + virtual void Visit(Node* node) = 0; + }; + class ConstVisitor { + public: + virtual ~ConstVisitor() {} + + virtual void Visit(const Node* node) = 0; + }; + + virtual void Visit(Visitor* visitor) = 0; + virtual void VisitConst(ConstVisitor* visitor) const = 0; + + protected: + friend class GroupNode; + + Node(Node::type type, const std::string& name, Repetition::type repetition, + ConvertedType::type converted_type = ConvertedType::NONE, int field_id = -1) + : type_(type), + name_(name), + repetition_(repetition), + converted_type_(converted_type), + field_id_(field_id), + parent_(NULLPTR) {} + + Node(Node::type type, const std::string& name, Repetition::type repetition, + std::shared_ptr logical_type, int field_id = -1) + : type_(type), + name_(name), + repetition_(repetition), + logical_type_(std::move(logical_type)), + field_id_(field_id), + parent_(NULLPTR) {} + + Node::type type_; + std::string name_; + Repetition::type repetition_; + ConvertedType::type converted_type_{ConvertedType::NONE}; + std::shared_ptr logical_type_; + int field_id_; + // Nodes should not be shared, they have a single parent. + const Node* parent_; + + bool EqualsInternal(const Node* other) const; + void SetParent(const Node* p_parent); + + private: + PARQUET_DISALLOW_COPY_AND_ASSIGN(Node); +}; + +// Save our breath all over the place with these typedefs +using NodePtr = std::shared_ptr; +using NodeVector = std::vector; + +// A type that is one of the primitive Parquet storage types. In addition to +// the other type metadata (name, repetition level, logical type), also has the +// physical storage type and their type-specific metadata (byte width, decimal +// parameters) +class PARQUET_EXPORT PrimitiveNode : public Node { + public: + static std::unique_ptr FromParquet(const void* opaque_element); + + // A field_id -1 (or any negative value) will be serialized as null in Thrift + static inline NodePtr Make(const std::string& name, Repetition::type repetition, + Type::type type, + ConvertedType::type converted_type = ConvertedType::NONE, + int length = -1, int precision = -1, int scale = -1, + int field_id = -1) { + return NodePtr(new PrimitiveNode(name, repetition, type, converted_type, length, + precision, scale, field_id)); + } + + // If no logical type, pass LogicalType::None() or nullptr + // A field_id -1 (or any negative value) will be serialized as null in Thrift + static inline NodePtr Make(const std::string& name, Repetition::type repetition, + std::shared_ptr logical_type, + Type::type primitive_type, int primitive_length = -1, + int field_id = -1) { + return NodePtr(new PrimitiveNode(name, repetition, std::move(logical_type), + primitive_type, primitive_length, field_id)); + } + + bool Equals(const Node* other) const override; + + Type::type physical_type() const { return physical_type_; } + + ColumnOrder column_order() const { return column_order_; } + + void SetColumnOrder(ColumnOrder column_order) { column_order_ = column_order; } + + int32_t type_length() const { return type_length_; } + + const DecimalMetadata& decimal_metadata() const { return decimal_metadata_; } + + void ToParquet(void* element) const override; + void Visit(Visitor* visitor) override; + void VisitConst(ConstVisitor* visitor) const override; + + private: + PrimitiveNode(const std::string& name, Repetition::type repetition, Type::type type, + ConvertedType::type converted_type = ConvertedType::NONE, int length = -1, + int precision = -1, int scale = -1, int field_id = -1); + + PrimitiveNode(const std::string& name, Repetition::type repetition, + std::shared_ptr logical_type, + Type::type primitive_type, int primitive_length = -1, int field_id = -1); + + Type::type physical_type_; + int32_t type_length_; + DecimalMetadata decimal_metadata_; + ColumnOrder column_order_; + + // For FIXED_LEN_BYTE_ARRAY + void SetTypeLength(int32_t length) { type_length_ = length; } + + bool EqualsInternal(const PrimitiveNode* other) const; + + FRIEND_TEST(TestPrimitiveNode, Attrs); + FRIEND_TEST(TestPrimitiveNode, Equals); + FRIEND_TEST(TestPrimitiveNode, PhysicalLogicalMapping); + FRIEND_TEST(TestPrimitiveNode, FromParquet); +}; + +class PARQUET_EXPORT GroupNode : public Node { + public: + static std::unique_ptr FromParquet(const void* opaque_element, + NodeVector fields = {}); + + // A field_id -1 (or any negative value) will be serialized as null in Thrift + static inline NodePtr Make(const std::string& name, Repetition::type repetition, + const NodeVector& fields, + ConvertedType::type converted_type = ConvertedType::NONE, + int field_id = -1) { + return NodePtr(new GroupNode(name, repetition, fields, converted_type, field_id)); + } + + // If no logical type, pass nullptr + // A field_id -1 (or any negative value) will be serialized as null in Thrift + static inline NodePtr Make(const std::string& name, Repetition::type repetition, + const NodeVector& fields, + std::shared_ptr logical_type, + int field_id = -1) { + return NodePtr( + new GroupNode(name, repetition, fields, std::move(logical_type), field_id)); + } + + bool Equals(const Node* other) const override; + + const NodePtr& field(int i) const { return fields_[i]; } + // Get the index of a field by its name, or negative value if not found. + // If several fields share the same name, it is unspecified which one + // is returned. + int FieldIndex(const std::string& name) const; + // Get the index of a field by its node, or negative value if not found. + int FieldIndex(const Node& node) const; + + int field_count() const { return static_cast(fields_.size()); } + + void ToParquet(void* element) const override; + void Visit(Visitor* visitor) override; + void VisitConst(ConstVisitor* visitor) const override; + + /// \brief Return true if this node or any child node has REPEATED repetition + /// type + bool HasRepeatedFields() const; + + private: + GroupNode(const std::string& name, Repetition::type repetition, + const NodeVector& fields, + ConvertedType::type converted_type = ConvertedType::NONE, int field_id = -1); + + GroupNode(const std::string& name, Repetition::type repetition, + const NodeVector& fields, std::shared_ptr logical_type, + int field_id = -1); + + NodeVector fields_; + bool EqualsInternal(const GroupNode* other) const; + + // Mapping between field name to the field index + std::unordered_multimap field_name_to_idx_; + + FRIEND_TEST(TestGroupNode, Attrs); + FRIEND_TEST(TestGroupNode, Equals); + FRIEND_TEST(TestGroupNode, FieldIndex); + FRIEND_TEST(TestGroupNode, FieldIndexDuplicateName); +}; + +// ---------------------------------------------------------------------- +// Convenience primitive type factory functions + +#define PRIMITIVE_FACTORY(FuncName, TYPE) \ + static inline NodePtr FuncName(const std::string& name, \ + Repetition::type repetition = Repetition::OPTIONAL, \ + int field_id = -1) { \ + return PrimitiveNode::Make(name, repetition, Type::TYPE, ConvertedType::NONE, \ + /*length=*/-1, /*precision=*/-1, /*scale=*/-1, field_id); \ + } + +PRIMITIVE_FACTORY(Boolean, BOOLEAN) +PRIMITIVE_FACTORY(Int32, INT32) +PRIMITIVE_FACTORY(Int64, INT64) +PRIMITIVE_FACTORY(Int96, INT96) +PRIMITIVE_FACTORY(Float, FLOAT) +PRIMITIVE_FACTORY(Double, DOUBLE) +PRIMITIVE_FACTORY(ByteArray, BYTE_ARRAY) + +void PARQUET_EXPORT PrintSchema(const schema::Node* schema, std::ostream& stream, + int indent_width = 2); + +} // namespace schema + +// The ColumnDescriptor encapsulates information necessary to interpret +// primitive column data in the context of a particular schema. We have to +// examine the node structure of a column's path to the root in the schema tree +// to be able to reassemble the nested structure from the repetition and +// definition levels. +class PARQUET_EXPORT ColumnDescriptor { + public: + ColumnDescriptor(schema::NodePtr node, int16_t max_definition_level, + int16_t max_repetition_level, + const SchemaDescriptor* schema_descr = NULLPTR); + + bool Equals(const ColumnDescriptor& other) const; + + int16_t max_definition_level() const { return max_definition_level_; } + + int16_t max_repetition_level() const { return max_repetition_level_; } + + Type::type physical_type() const { return primitive_node_->physical_type(); } + + ConvertedType::type converted_type() const { return primitive_node_->converted_type(); } + + const std::shared_ptr& logical_type() const { + return primitive_node_->logical_type(); + } + + ColumnOrder column_order() const { return primitive_node_->column_order(); } + + SortOrder::type sort_order() const { + const auto& la = logical_type(); + auto pt = physical_type(); + return la ? GetSortOrder(la, pt) : GetSortOrder(converted_type(), pt); + } + + const std::string& name() const { return primitive_node_->name(); } + + const std::shared_ptr path() const; + + const schema::NodePtr& schema_node() const { return node_; } + + std::string ToString() const; + + int type_length() const; + + int type_precision() const; + + int type_scale() const; + + private: + schema::NodePtr node_; + const schema::PrimitiveNode* primitive_node_; + + int16_t max_definition_level_; + int16_t max_repetition_level_; +}; + +// Container for the converted Parquet schema with a computed information from +// the schema analysis needed for file reading +// +// * Column index to Node +// * Max repetition / definition levels for each primitive node +// +// The ColumnDescriptor objects produced by this class can be used to assist in +// the reconstruction of fully materialized data structures from the +// repetition-definition level encoding of nested data +// +// TODO(wesm): this object can be recomputed from a Schema +class PARQUET_EXPORT SchemaDescriptor { + public: + SchemaDescriptor() = default; + ~SchemaDescriptor() = default; + + // Analyze the schema + void Init(std::unique_ptr schema); + void Init(schema::NodePtr schema); + + const ColumnDescriptor* Column(int i) const; + + // Get the index of a column by its dotstring path, or negative value if not found. + // If several columns share the same dotstring path, it is unspecified which one + // is returned. + int ColumnIndex(const std::string& node_path) const; + // Get the index of a column by its node, or negative value if not found. + int ColumnIndex(const schema::Node& node) const; + + bool Equals(const SchemaDescriptor& other, std::ostream* diff_output = NULLPTR) const; + + // The number of physical columns appearing in the file + int num_columns() const { return static_cast(leaves_.size()); } + + const schema::NodePtr& schema_root() const { return schema_; } + + const schema::GroupNode* group_node() const { return group_node_; } + + // Returns the root (child of the schema root) node of the leaf(column) node + const schema::Node* GetColumnRoot(int i) const; + + const std::string& name() const { return group_node_->name(); } + + std::string ToString() const; + + void updateColumnOrders(const std::vector& column_orders); + + /// \brief Return column index corresponding to a particular + /// PrimitiveNode. Returns -1 if not found + int GetColumnIndex(const schema::PrimitiveNode& node) const; + + /// \brief Return true if any field or their children have REPEATED repetition + /// type + bool HasRepeatedFields() const; + + private: + friend class ColumnDescriptor; + + // Root Node + schema::NodePtr schema_; + // Root Node + // Would never be NULLPTR. + const schema::GroupNode* group_node_; + + void BuildTree(const schema::NodePtr& node, int16_t max_def_level, + int16_t max_rep_level, const schema::NodePtr& base); + + // Result of leaf node / tree analysis + std::vector leaves_; + + std::unordered_map node_to_leaf_index_; + + // Mapping between leaf nodes and root group of leaf (first node + // below the schema's root group) + // + // For example, the leaf `a.b.c.d` would have a link back to `a` + // + // -- a <------ + // -- -- b | + // -- -- -- c | + // -- -- -- -- d + std::unordered_map leaf_to_base_; + + // Mapping between ColumnPath DotString to the leaf index + std::unordered_multimap leaf_to_idx_; +}; + +} // namespace parquet diff --git a/shared/package-files/0a/0a37bbb6475a6d9f1fa30cf3d5d5eb05c48eb51769060be902ae6d40150a9170/otBase.py b/shared/package-files/0a/0a37bbb6475a6d9f1fa30cf3d5d5eb05c48eb51769060be902ae6d40150a9170/otBase.py new file mode 100644 index 0000000000000000000000000000000000000000..1b252db193fecd339383d4838c366e55cd2ee948 --- /dev/null +++ b/shared/package-files/0a/0a37bbb6475a6d9f1fa30cf3d5d5eb05c48eb51769060be902ae6d40150a9170/otBase.py @@ -0,0 +1,1467 @@ +from fontTools.config import OPTIONS +from fontTools.misc.textTools import Tag, bytesjoin +from .DefaultTable import DefaultTable +from enum import IntEnum +import sys +import array +import struct +import logging +from functools import lru_cache +from typing import Iterator, NamedTuple, Optional, Tuple + +log = logging.getLogger(__name__) + +have_uharfbuzz = False +try: + import uharfbuzz as hb + + have_uharfbuzz = True +except ImportError: + pass + +USE_HARFBUZZ_REPACKER = OPTIONS[f"{__name__}:USE_HARFBUZZ_REPACKER"] + + +class OverflowErrorRecord(object): + def __init__(self, overflowTuple): + self.tableType = overflowTuple[0] + self.LookupListIndex = overflowTuple[1] + self.SubTableIndex = overflowTuple[2] + self.itemName = overflowTuple[3] + self.itemIndex = overflowTuple[4] + + def __repr__(self): + return str( + ( + self.tableType, + "LookupIndex:", + self.LookupListIndex, + "SubTableIndex:", + self.SubTableIndex, + "ItemName:", + self.itemName, + "ItemIndex:", + self.itemIndex, + ) + ) + + +class OTLOffsetOverflowError(Exception): + def __init__(self, overflowErrorRecord): + self.value = overflowErrorRecord + + def __str__(self): + return repr(self.value) + + +class RepackerState(IntEnum): + # Repacking control flow is implemnted using a state machine. The state machine table: + # + # State | Packing Success | Packing Failed | Exception Raised | + # ------------+-----------------+----------------+------------------+ + # PURE_FT | Return result | PURE_FT | Return failure | + # HB_FT | Return result | HB_FT | FT_FALLBACK | + # FT_FALLBACK | HB_FT | FT_FALLBACK | Return failure | + + # Pack only with fontTools, don't allow sharing between extensions. + PURE_FT = 1 + + # Attempt to pack with harfbuzz (allowing sharing between extensions) + # use fontTools to attempt overflow resolution. + HB_FT = 2 + + # Fallback if HB/FT packing gets stuck. Pack only with fontTools, don't allow sharing between + # extensions. + FT_FALLBACK = 3 + + +class BaseTTXConverter(DefaultTable): + """Generic base class for TTX table converters. It functions as an + adapter between the TTX (ttLib actually) table model and the model + we use for OpenType tables, which is necessarily subtly different. + """ + + def decompile(self, data, font): + """Create an object from the binary data. Called automatically on access.""" + from . import otTables + + reader = OTTableReader(data, tableTag=self.tableTag) + tableClass = getattr(otTables, self.tableTag) + self.table = tableClass() + self.table.decompile(reader, font) + + def compile(self, font): + """Compiles the table into binary. Called automatically on save.""" + + # General outline: + # Create a top-level OTTableWriter for the GPOS/GSUB table. + # Call the compile method for the the table + # for each 'converter' record in the table converter list + # call converter's write method for each item in the value. + # - For simple items, the write method adds a string to the + # writer's self.items list. + # - For Struct/Table/Subtable items, it add first adds new writer to the + # to the writer's self.items, then calls the item's compile method. + # This creates a tree of writers, rooted at the GUSB/GPOS writer, with + # each writer representing a table, and the writer.items list containing + # the child data strings and writers. + # call the getAllData method + # call _doneWriting, which removes duplicates + # call _gatherTables. This traverses the tables, adding unique occurences to a flat list of tables + # Traverse the flat list of tables, calling getDataLength on each to update their position + # Traverse the flat list of tables again, calling getData each get the data in the table, now that + # pos's and offset are known. + + # If a lookup subtable overflows an offset, we have to start all over. + overflowRecord = None + # this is 3-state option: default (None) means automatically use hb.repack or + # silently fall back if it fails; True, use it and raise error if not possible + # or it errors out; False, don't use it, even if you can. + use_hb_repack = font.cfg[USE_HARFBUZZ_REPACKER] + if self.tableTag in ("GSUB", "GPOS"): + if use_hb_repack is False: + log.debug( + "hb.repack disabled, compiling '%s' with pure-python serializer", + self.tableTag, + ) + elif not have_uharfbuzz: + if use_hb_repack is True: + raise ImportError("No module named 'uharfbuzz'") + else: + assert use_hb_repack is None + log.debug( + "uharfbuzz not found, compiling '%s' with pure-python serializer", + self.tableTag, + ) + + if ( + use_hb_repack in (None, True) + and have_uharfbuzz + and self.tableTag in ("GSUB", "GPOS") + ): + state = RepackerState.HB_FT + else: + state = RepackerState.PURE_FT + + hb_first_error_logged = False + lastOverflowRecord = None + while True: + try: + writer = OTTableWriter(tableTag=self.tableTag) + self.table.compile(writer, font) + if state == RepackerState.HB_FT: + return self.tryPackingHarfbuzz(writer, hb_first_error_logged) + elif state == RepackerState.PURE_FT: + return self.tryPackingFontTools(writer) + elif state == RepackerState.FT_FALLBACK: + # Run packing with FontTools only, but don't return the result as it will + # not be optimally packed. Once a successful packing has been found, state is + # changed back to harfbuzz packing to produce the final, optimal, packing. + self.tryPackingFontTools(writer) + log.debug( + "Re-enabling sharing between extensions and switching back to " + "harfbuzz+fontTools packing." + ) + state = RepackerState.HB_FT + + except OTLOffsetOverflowError as e: + hb_first_error_logged = True + ok = self.tryResolveOverflow(font, e, lastOverflowRecord) + lastOverflowRecord = e.value + + if ok: + continue + + if state is RepackerState.HB_FT: + log.debug( + "Harfbuzz packing out of resolutions, disabling sharing between extensions and " + "switching to fontTools only packing." + ) + state = RepackerState.FT_FALLBACK + else: + raise + + def tryPackingHarfbuzz(self, writer, hb_first_error_logged): + try: + log.debug("serializing '%s' with hb.repack", self.tableTag) + return writer.getAllDataUsingHarfbuzz(self.tableTag) + except (ValueError, MemoryError, hb.RepackerError) as e: + # Only log hb repacker errors the first time they occur in + # the offset-overflow resolution loop, they are just noisy. + # Maybe we can revisit this if/when uharfbuzz actually gives + # us more info as to why hb.repack failed... + if not hb_first_error_logged: + error_msg = f"{type(e).__name__}" + if str(e) != "": + error_msg += f": {e}" + log.warning( + "hb.repack failed to serialize '%s', attempting fonttools resolutions " + "; the error message was: %s", + self.tableTag, + error_msg, + ) + hb_first_error_logged = True + return writer.getAllData(remove_duplicate=False) + + def tryPackingFontTools(self, writer): + return writer.getAllData() + + def tryResolveOverflow(self, font, e, lastOverflowRecord): + ok = 0 + if lastOverflowRecord == e.value: + # Oh well... + return ok + + overflowRecord = e.value + log.info("Attempting to fix OTLOffsetOverflowError %s", e) + + if overflowRecord.itemName is None: + from .otTables import fixLookupOverFlows + + ok = fixLookupOverFlows(font, overflowRecord) + else: + from .otTables import fixSubTableOverFlows + + ok = fixSubTableOverFlows(font, overflowRecord) + + if ok: + return ok + + # Try upgrading lookup to Extension and hope + # that cross-lookup sharing not happening would + # fix overflow... + from .otTables import fixLookupOverFlows + + return fixLookupOverFlows(font, overflowRecord) + + def toXML(self, writer, font): + self.table.toXML2(writer, font) + + def fromXML(self, name, attrs, content, font): + from . import otTables + + if not hasattr(self, "table"): + tableClass = getattr(otTables, self.tableTag) + self.table = tableClass() + self.table.fromXML(name, attrs, content, font) + self.table.populateDefaults() + + def ensureDecompiled(self, recurse=True): + self.table.ensureDecompiled(recurse=recurse) + + +# https://github.com/fonttools/fonttools/pull/2285#issuecomment-834652928 +assert len(struct.pack("i", 0)) == 4 +assert array.array("i").itemsize == 4, "Oops, file a bug against fonttools." + + +class OTTableReader(object): + """Helper class to retrieve data from an OpenType table.""" + + __slots__ = ("data", "offset", "pos", "localState", "tableTag") + + def __init__(self, data, localState=None, offset=0, tableTag=None): + self.data = data + self.offset = offset + self.pos = offset + self.localState = localState + self.tableTag = tableTag + + def advance(self, count): + self.pos += count + + def seek(self, pos): + self.pos = pos + + def copy(self): + other = self.__class__(self.data, self.localState, self.offset, self.tableTag) + other.pos = self.pos + return other + + def getSubReader(self, offset): + offset = self.offset + offset + return self.__class__(self.data, self.localState, offset, self.tableTag) + + def readValue(self, typecode, staticSize): + pos = self.pos + newpos = pos + staticSize + (value,) = struct.unpack(f">{typecode}", self.data[pos:newpos]) + self.pos = newpos + return value + + def readArray(self, typecode, staticSize, count): + pos = self.pos + newpos = pos + count * staticSize + value = array.array(typecode, self.data[pos:newpos]) + if sys.byteorder != "big": + value.byteswap() + self.pos = newpos + return value.tolist() + + def readInt8(self): + return self.readValue("b", staticSize=1) + + def readInt8Array(self, count): + return self.readArray("b", staticSize=1, count=count) + + def readShort(self): + return self.readValue("h", staticSize=2) + + def readShortArray(self, count): + return self.readArray("h", staticSize=2, count=count) + + def readLong(self): + return self.readValue("i", staticSize=4) + + def readLongArray(self, count): + return self.readArray("i", staticSize=4, count=count) + + def readUInt8(self): + return self.readValue("B", staticSize=1) + + def readUInt8Array(self, count): + return self.readArray("B", staticSize=1, count=count) + + def readUShort(self): + return self.readValue("H", staticSize=2) + + def readUShortArray(self, count): + return self.readArray("H", staticSize=2, count=count) + + def readULong(self): + return self.readValue("I", staticSize=4) + + def readULongArray(self, count): + return self.readArray("I", staticSize=4, count=count) + + def readUInt24(self): + pos = self.pos + newpos = pos + 3 + (value,) = struct.unpack(">l", b"\0" + self.data[pos:newpos]) + self.pos = newpos + return value + + def readInt24(self): + pos = self.pos + newpos = pos + 3 + b = self.data[pos:newpos] + pad = b"\xff" if b[0] & 0x80 else b"\0" + (value,) = struct.unpack(">l", pad + b) + self.pos = newpos + return value + + def readUInt24Array(self, count): + return [self.readUInt24() for _ in range(count)] + + def readTag(self): + pos = self.pos + newpos = pos + 4 + value = Tag(self.data[pos:newpos]) + assert len(value) == 4, value + self.pos = newpos + return value + + def readData(self, count): + pos = self.pos + newpos = pos + count + value = self.data[pos:newpos] + self.pos = newpos + return value + + def __setitem__(self, name, value): + state = self.localState.copy() if self.localState else dict() + state[name] = value + self.localState = state + + def __getitem__(self, name): + return self.localState and self.localState[name] + + def __contains__(self, name): + return self.localState and name in self.localState + + +class OffsetToWriter(object): + def __init__(self, subWriter, offsetSize): + self.subWriter = subWriter + self.offsetSize = offsetSize + + def __eq__(self, other): + if type(self) != type(other): + return NotImplemented + return self.subWriter == other.subWriter and self.offsetSize == other.offsetSize + + def __hash__(self): + # only works after self._doneWriting() has been called + return hash((self.subWriter, self.offsetSize)) + + +class OTTableWriter(object): + """Helper class to gather and assemble data for OpenType tables.""" + + def __init__(self, localState=None, tableTag=None): + self.items = [] + self.pos = None + self.localState = localState + self.tableTag = tableTag + self.parent = None + self.name = "" + + def __setitem__(self, name, value): + state = self.localState.copy() if self.localState else dict() + state[name] = value + self.localState = state + + def __getitem__(self, name): + return self.localState[name] + + def __delitem__(self, name): + del self.localState[name] + + # assembler interface + + def getDataLength(self): + """Return the length of this table in bytes, without subtables.""" + l = 0 + for item in self.items: + if hasattr(item, "getCountData"): + l += item.size + elif hasattr(item, "subWriter"): + l += item.offsetSize + else: + l = l + len(item) + return l + + def getData(self): + """Assemble the data for this writer/table, without subtables.""" + items = list(self.items) # make a shallow copy + pos = self.pos + numItems = len(items) + for i in range(numItems): + item = items[i] + + if hasattr(item, "subWriter"): + if item.offsetSize == 4: + items[i] = packULong(item.subWriter.pos - pos) + elif item.offsetSize == 2: + try: + items[i] = packUShort(item.subWriter.pos - pos) + except struct.error: + # provide data to fix overflow problem. + overflowErrorRecord = self.getOverflowErrorRecord( + item.subWriter + ) + + raise OTLOffsetOverflowError(overflowErrorRecord) + elif item.offsetSize == 3: + items[i] = packUInt24(item.subWriter.pos - pos) + else: + raise ValueError(item.offsetSize) + + return bytesjoin(items) + + def getDataForHarfbuzz(self): + """Assemble the data for this writer/table with all offset field set to 0""" + items = list(self.items) + packFuncs = {2: packUShort, 3: packUInt24, 4: packULong} + for i, item in enumerate(items): + if hasattr(item, "subWriter"): + # Offset value is not needed in harfbuzz repacker, so setting offset to 0 to avoid overflow here + if item.offsetSize in packFuncs: + items[i] = packFuncs[item.offsetSize](0) + else: + raise ValueError(item.offsetSize) + + return bytesjoin(items) + + def __hash__(self): + # only works after self._doneWriting() has been called + return hash(self.items) + + def __ne__(self, other): + result = self.__eq__(other) + return result if result is NotImplemented else not result + + def __eq__(self, other): + if type(self) != type(other): + return NotImplemented + return self.items == other.items + + def _doneWriting(self, internedTables, shareExtension=False): + # Convert CountData references to data string items + # collapse duplicate table references to a unique entry + # "tables" are OTTableWriter objects. + + # For Extension Lookup types, we can + # eliminate duplicates only within the tree under the Extension Lookup, + # as offsets may exceed 64K even between Extension LookupTable subtables. + isExtension = hasattr(self, "Extension") + + # Certain versions of Uniscribe reject the font if the GSUB/GPOS top-level + # arrays (ScriptList, FeatureList, LookupList) point to the same, possibly + # empty, array. So, we don't share those. + # See: https://github.com/fonttools/fonttools/issues/518 + dontShare = hasattr(self, "DontShare") + + if isExtension and not shareExtension: + internedTables = {} + + items = self.items + for i, item in enumerate(items): + if hasattr(item, "getCountData"): + items[i] = item.getCountData() + elif hasattr(item, "subWriter"): + item.subWriter._doneWriting( + internedTables, shareExtension=shareExtension + ) + # At this point, all subwriters are hashable based on their items. + # (See hash and comparison magic methods above.) So the ``setdefault`` + # call here will return the first writer object we've seen with + # equal content, or store it in the dictionary if it's not been + # seen yet. We therefore replace the subwriter object with an equivalent + # object, which deduplicates the tree. + if not dontShare: + items[i].subWriter = internedTables.setdefault( + item.subWriter, item.subWriter + ) + self.items = tuple(items) + + def _gatherTables(self, tables, extTables, done): + # Convert table references in self.items tree to a flat + # list of tables in depth-first traversal order. + # "tables" are OTTableWriter objects. + # We do the traversal in reverse order at each level, in order to + # resolve duplicate references to be the last reference in the list of tables. + # For extension lookups, duplicate references can be merged only within the + # writer tree under the extension lookup. + + done[id(self)] = True + + numItems = len(self.items) + iRange = list(range(numItems)) + iRange.reverse() + + isExtension = hasattr(self, "Extension") + + selfTables = tables + + if isExtension: + assert ( + extTables is not None + ), "Program or XML editing error. Extension subtables cannot contain extensions subtables" + tables, extTables, done = extTables, None, {} + + # add Coverage table if it is sorted last. + sortCoverageLast = False + if hasattr(self, "sortCoverageLast"): + # Find coverage table + for i in range(numItems): + item = self.items[i] + if ( + hasattr(item, "subWriter") + and getattr(item.subWriter, "name", None) == "Coverage" + ): + sortCoverageLast = True + break + if id(item.subWriter) not in done: + item.subWriter._gatherTables(tables, extTables, done) + else: + # We're a new parent of item + pass + + for i in iRange: + item = self.items[i] + if not hasattr(item, "subWriter"): + continue + + if ( + sortCoverageLast + and (i == 1) + and getattr(item.subWriter, "name", None) == "Coverage" + ): + # we've already 'gathered' it above + continue + + if id(item.subWriter) not in done: + item.subWriter._gatherTables(tables, extTables, done) + else: + # Item is already written out by other parent + pass + + selfTables.append(self) + + def _gatherGraphForHarfbuzz(self, tables, obj_list, done, objidx, virtual_edges): + real_links = [] + virtual_links = [] + item_idx = objidx + + # Merge virtual_links from parent + for idx in virtual_edges: + virtual_links.append((0, 0, idx)) + + sortCoverageLast = False + coverage_idx = 0 + if hasattr(self, "sortCoverageLast"): + # Find coverage table + for i, item in enumerate(self.items): + if getattr(item, "name", None) == "Coverage": + sortCoverageLast = True + if id(item) not in done: + coverage_idx = item_idx = item._gatherGraphForHarfbuzz( + tables, obj_list, done, item_idx, virtual_edges + ) + else: + coverage_idx = done[id(item)] + virtual_edges.append(coverage_idx) + break + + child_idx = 0 + offset_pos = 0 + for i, item in enumerate(self.items): + if hasattr(item, "subWriter"): + pos = offset_pos + elif hasattr(item, "getCountData"): + offset_pos += item.size + continue + else: + offset_pos = offset_pos + len(item) + continue + + if id(item.subWriter) not in done: + child_idx = item_idx = item.subWriter._gatherGraphForHarfbuzz( + tables, obj_list, done, item_idx, virtual_edges + ) + else: + child_idx = done[id(item.subWriter)] + + real_edge = (pos, item.offsetSize, child_idx) + real_links.append(real_edge) + offset_pos += item.offsetSize + + tables.append(self) + obj_list.append((real_links, virtual_links)) + item_idx += 1 + done[id(self)] = item_idx + if sortCoverageLast: + virtual_edges.pop() + + return item_idx + + def getAllDataUsingHarfbuzz(self, tableTag): + """The Whole table is represented as a Graph. + Assemble graph data and call Harfbuzz repacker to pack the table. + Harfbuzz repacker is faster and retain as much sub-table sharing as possible, see also: + https://github.com/harfbuzz/harfbuzz/blob/main/docs/repacker.md + The input format for hb.repack() method is explained here: + https://github.com/harfbuzz/uharfbuzz/blob/main/src/uharfbuzz/_harfbuzz.pyx#L1149 + """ + internedTables = {} + self._doneWriting(internedTables, shareExtension=True) + tables = [] + obj_list = [] + done = {} + objidx = 0 + virtual_edges = [] + self._gatherGraphForHarfbuzz(tables, obj_list, done, objidx, virtual_edges) + # Gather all data in two passes: the absolute positions of all + # subtable are needed before the actual data can be assembled. + pos = 0 + for table in tables: + table.pos = pos + pos = pos + table.getDataLength() + + data = [] + for table in tables: + tableData = table.getDataForHarfbuzz() + data.append(tableData) + + return hb.serialize_with_tag(str(tableTag), data, obj_list) + + def getAllData(self, remove_duplicate=True): + """Assemble all data, including all subtables.""" + if remove_duplicate: + internedTables = {} + self._doneWriting(internedTables) + tables = [] + extTables = [] + done = {} + self._gatherTables(tables, extTables, done) + tables.reverse() + extTables.reverse() + # Gather all data in two passes: the absolute positions of all + # subtable are needed before the actual data can be assembled. + pos = 0 + for table in tables: + table.pos = pos + pos = pos + table.getDataLength() + + for table in extTables: + table.pos = pos + pos = pos + table.getDataLength() + + data = [] + for table in tables: + tableData = table.getData() + data.append(tableData) + + for table in extTables: + tableData = table.getData() + data.append(tableData) + + return bytesjoin(data) + + # interface for gathering data, as used by table.compile() + + def getSubWriter(self): + subwriter = self.__class__(self.localState, self.tableTag) + subwriter.parent = ( + self # because some subtables have idential values, we discard + ) + # the duplicates under the getAllData method. Hence some + # subtable writers can have more than one parent writer. + # But we just care about first one right now. + return subwriter + + def writeValue(self, typecode, value): + self.items.append(struct.pack(f">{typecode}", value)) + + def writeArray(self, typecode, values): + a = array.array(typecode, values) + if sys.byteorder != "big": + a.byteswap() + self.items.append(a.tobytes()) + + def writeInt8(self, value): + assert -128 <= value < 128, value + self.items.append(struct.pack(">b", value)) + + def writeInt8Array(self, values): + self.writeArray("b", values) + + def writeShort(self, value): + assert -32768 <= value < 32768, value + self.items.append(struct.pack(">h", value)) + + def writeShortArray(self, values): + self.writeArray("h", values) + + def writeLong(self, value): + self.items.append(struct.pack(">i", value)) + + def writeLongArray(self, values): + self.writeArray("i", values) + + def writeUInt8(self, value): + assert 0 <= value < 256, value + self.items.append(struct.pack(">B", value)) + + def writeUInt8Array(self, values): + self.writeArray("B", values) + + def writeUShort(self, value): + assert 0 <= value < 0x10000, value + self.items.append(struct.pack(">H", value)) + + def writeUShortArray(self, values): + self.writeArray("H", values) + + def writeULong(self, value): + self.items.append(struct.pack(">I", value)) + + def writeULongArray(self, values): + self.writeArray("I", values) + + def writeUInt24(self, value): + assert 0 <= value < 0x1000000, value + b = struct.pack(">L", value) + self.items.append(b[1:]) + + def writeUInt24Array(self, values): + for value in values: + self.writeUInt24(value) + + def writeTag(self, tag): + tag = Tag(tag).tobytes() + assert len(tag) == 4, tag + self.items.append(tag) + + def writeSubTable(self, subWriter, offsetSize): + self.items.append(OffsetToWriter(subWriter, offsetSize)) + + def writeCountReference(self, table, name, size=2, value=None): + ref = CountReference(table, name, size=size, value=value) + self.items.append(ref) + return ref + + def writeStruct(self, format, values): + data = struct.pack(*(format,) + values) + self.items.append(data) + + def writeData(self, data): + self.items.append(data) + + def getOverflowErrorRecord(self, item): + LookupListIndex = SubTableIndex = itemName = itemIndex = None + if self.name == "LookupList": + LookupListIndex = item.repeatIndex + elif self.name == "Lookup": + LookupListIndex = self.repeatIndex + SubTableIndex = item.repeatIndex + else: + itemName = getattr(item, "name", "") + if hasattr(item, "repeatIndex"): + itemIndex = item.repeatIndex + if self.name == "SubTable": + LookupListIndex = self.parent.repeatIndex + SubTableIndex = self.repeatIndex + elif self.name == "ExtSubTable": + LookupListIndex = self.parent.parent.repeatIndex + SubTableIndex = self.parent.repeatIndex + else: # who knows how far below the SubTable level we are! Climb back up to the nearest subtable. + itemName = ".".join([self.name, itemName]) + p1 = self.parent + while p1 and p1.name not in ["ExtSubTable", "SubTable"]: + itemName = ".".join([p1.name, itemName]) + p1 = p1.parent + if p1: + if p1.name == "ExtSubTable": + LookupListIndex = p1.parent.parent.repeatIndex + SubTableIndex = p1.parent.repeatIndex + else: + LookupListIndex = p1.parent.repeatIndex + SubTableIndex = p1.repeatIndex + + return OverflowErrorRecord( + (self.tableTag, LookupListIndex, SubTableIndex, itemName, itemIndex) + ) + + +class CountReference(object): + """A reference to a Count value, not a count of references.""" + + def __init__(self, table, name, size=None, value=None): + self.table = table + self.name = name + self.size = size + if value is not None: + self.setValue(value) + + def setValue(self, value): + table = self.table + name = self.name + if table[name] is None: + table[name] = value + else: + assert table[name] == value, (name, table[name], value) + + def getValue(self): + return self.table[self.name] + + def getCountData(self): + v = self.table[self.name] + if v is None: + v = 0 + return {1: packUInt8, 2: packUShort, 4: packULong}[self.size](v) + + +def packUInt8(value): + return struct.pack(">B", value) + + +def packUShort(value): + return struct.pack(">H", value) + + +def packULong(value): + assert 0 <= value < 0x100000000, value + return struct.pack(">I", value) + + +def packUInt24(value): + assert 0 <= value < 0x1000000, value + return struct.pack(">I", value)[1:] + + +class BaseTable(object): + """Generic base class for all OpenType (sub)tables.""" + + def __getattr__(self, attr): + reader = self.__dict__.get("reader") + if reader: + del self.reader + font = self.font + del self.font + self.decompile(reader, font) + return getattr(self, attr) + + raise AttributeError(attr) + + def ensureDecompiled(self, recurse=False): + reader = self.__dict__.get("reader") + if reader: + del self.reader + font = self.font + del self.font + self.decompile(reader, font) + if recurse: + for subtable in self.iterSubTables(): + subtable.value.ensureDecompiled(recurse) + + def __getstate__(self): + # before copying/pickling 'lazy' objects, make a shallow copy of OTTableReader + # https://github.com/fonttools/fonttools/issues/2965 + if "reader" in self.__dict__: + state = self.__dict__.copy() + state["reader"] = self.__dict__["reader"].copy() + return state + return self.__dict__ + + @classmethod + def getRecordSize(cls, reader): + totalSize = 0 + for conv in cls.converters: + size = conv.getRecordSize(reader) + if size is NotImplemented: + return NotImplemented + countValue = 1 + if conv.repeat: + if conv.repeat in reader: + countValue = reader[conv.repeat] + conv.aux + else: + return NotImplemented + totalSize += size * countValue + return totalSize + + def getConverters(self): + return self.converters + + def getConverterByName(self, name): + return self.convertersByName[name] + + def populateDefaults(self, propagator=None): + for conv in self.getConverters(): + if conv.repeat: + if not hasattr(self, conv.name): + setattr(self, conv.name, []) + countValue = len(getattr(self, conv.name)) - conv.aux + try: + count_conv = self.getConverterByName(conv.repeat) + setattr(self, conv.repeat, countValue) + except KeyError: + # conv.repeat is a propagated count + if propagator and conv.repeat in propagator: + propagator[conv.repeat].setValue(countValue) + else: + if conv.aux and not eval(conv.aux, None, self.__dict__): + continue + if hasattr(self, conv.name): + continue # Warn if it should NOT be present?! + if hasattr(conv, "writeNullOffset"): + setattr(self, conv.name, None) # Warn? + # elif not conv.isCount: + # # Warn? + # pass + if hasattr(conv, "DEFAULT"): + # OptionalValue converters (e.g. VarIndex) + setattr(self, conv.name, conv.DEFAULT) + + def decompile(self, reader, font): + self.readFormat(reader) + table = {} + self.__rawTable = table # for debugging + for conv in self.getConverters(): + if conv.name == "SubTable": + conv = conv.getConverter(reader.tableTag, table["LookupType"]) + if conv.name == "ExtSubTable": + conv = conv.getConverter(reader.tableTag, table["ExtensionLookupType"]) + if conv.name == "FeatureParams": + conv = conv.getConverter(reader["FeatureTag"]) + if conv.name == "SubStruct": + conv = conv.getConverter(reader.tableTag, table["MorphType"]) + try: + if conv.repeat: + if isinstance(conv.repeat, int): + countValue = conv.repeat + elif conv.repeat in table: + countValue = table[conv.repeat] + else: + # conv.repeat is a propagated count + countValue = reader[conv.repeat] + countValue += conv.aux + table[conv.name] = conv.readArray(reader, font, table, countValue) + else: + if conv.aux and not eval(conv.aux, None, table): + continue + table[conv.name] = conv.read(reader, font, table) + if conv.isPropagated: + reader[conv.name] = table[conv.name] + except Exception as e: + name = conv.name + e.args = e.args + (name,) + raise + + if hasattr(self, "postRead"): + self.postRead(table, font) + else: + self.__dict__.update(table) + + del self.__rawTable # succeeded, get rid of debugging info + + def compile(self, writer, font): + self.ensureDecompiled() + # TODO Following hack to be removed by rewriting how FormatSwitching tables + # are handled. + # https://github.com/fonttools/fonttools/pull/2238#issuecomment-805192631 + if hasattr(self, "preWrite"): + deleteFormat = not hasattr(self, "Format") + table = self.preWrite(font) + deleteFormat = deleteFormat and hasattr(self, "Format") + else: + deleteFormat = False + table = self.__dict__.copy() + + # some count references may have been initialized in a custom preWrite; we set + # these in the writer's state beforehand (instead of sequentially) so they will + # be propagated to all nested subtables even if the count appears in the current + # table only *after* the offset to the subtable that it is counting. + for conv in self.getConverters(): + if conv.isCount and conv.isPropagated: + value = table.get(conv.name) + if isinstance(value, CountReference): + writer[conv.name] = value + + if hasattr(self, "sortCoverageLast"): + writer.sortCoverageLast = 1 + + if hasattr(self, "DontShare"): + writer.DontShare = True + + if hasattr(self.__class__, "LookupType"): + writer["LookupType"].setValue(self.__class__.LookupType) + + self.writeFormat(writer) + for conv in self.getConverters(): + value = table.get( + conv.name + ) # TODO Handle defaults instead of defaulting to None! + if conv.repeat: + if value is None: + value = [] + countValue = len(value) - conv.aux + if isinstance(conv.repeat, int): + assert len(value) == conv.repeat, "expected %d values, got %d" % ( + conv.repeat, + len(value), + ) + elif conv.repeat in table: + CountReference(table, conv.repeat, value=countValue) + else: + # conv.repeat is a propagated count + writer[conv.repeat].setValue(countValue) + try: + conv.writeArray(writer, font, table, value) + except Exception as e: + e.args = e.args + (conv.name + "[]",) + raise + elif conv.isCount: + # Special-case Count values. + # Assumption: a Count field will *always* precede + # the actual array(s). + # We need a default value, as it may be set later by a nested + # table. We will later store it here. + # We add a reference: by the time the data is assembled + # the Count value will be filled in. + # We ignore the current count value since it will be recomputed, + # unless it's a CountReference that was already initialized in a custom preWrite. + if isinstance(value, CountReference): + ref = value + ref.size = conv.staticSize + writer.writeData(ref) + table[conv.name] = ref.getValue() + else: + ref = writer.writeCountReference(table, conv.name, conv.staticSize) + table[conv.name] = None + if conv.isPropagated: + writer[conv.name] = ref + elif conv.isLookupType: + # We make sure that subtables have the same lookup type, + # and that the type is the same as the one set on the + # Lookup object, if any is set. + if conv.name not in table: + table[conv.name] = None + ref = writer.writeCountReference( + table, conv.name, conv.staticSize, table[conv.name] + ) + writer["LookupType"] = ref + else: + if conv.aux and not eval(conv.aux, None, table): + continue + try: + conv.write(writer, font, table, value) + except Exception as e: + name = value.__class__.__name__ if value is not None else conv.name + e.args = e.args + (name,) + raise + if conv.isPropagated: + writer[conv.name] = value + + if deleteFormat: + del self.Format + + def readFormat(self, reader): + pass + + def writeFormat(self, writer): + pass + + def toXML(self, xmlWriter, font, attrs=None, name=None): + tableName = name if name else self.__class__.__name__ + if attrs is None: + attrs = [] + if hasattr(self, "Format"): + attrs = attrs + [("Format", self.Format)] + xmlWriter.begintag(tableName, attrs) + xmlWriter.newline() + self.toXML2(xmlWriter, font) + xmlWriter.endtag(tableName) + xmlWriter.newline() + + def toXML2(self, xmlWriter, font): + # Simpler variant of toXML, *only* for the top level tables (like GPOS, GSUB). + # This is because in TTX our parent writes our main tag, and in otBase.py we + # do it ourselves. I think I'm getting schizophrenic... + for conv in self.getConverters(): + if conv.repeat: + value = getattr(self, conv.name, []) + for i, item in enumerate(value): + conv.xmlWrite(xmlWriter, font, item, conv.name, [("index", i)]) + else: + if conv.aux and not eval(conv.aux, None, vars(self)): + continue + value = getattr( + self, conv.name, None + ) # TODO Handle defaults instead of defaulting to None! + conv.xmlWrite(xmlWriter, font, value, conv.name, []) + + def fromXML(self, name, attrs, content, font): + try: + conv = self.getConverterByName(name) + except KeyError: + raise # XXX on KeyError, raise nice error + value = conv.xmlRead(attrs, content, font) + # Some manually-written tables have a conv.repeat of "" + # to represent lists. Hence comparing to None here to + # allow those lists to be read correctly from XML. + if conv.repeat is not None: + seq = getattr(self, conv.name, None) + if seq is None: + seq = [] + setattr(self, conv.name, seq) + seq.append(value) + else: + setattr(self, conv.name, value) + + def __ne__(self, other): + result = self.__eq__(other) + return result if result is NotImplemented else not result + + def __eq__(self, other): + if type(self) != type(other): + return NotImplemented + + self.ensureDecompiled() + other.ensureDecompiled() + + return self.__dict__ == other.__dict__ + + class SubTableEntry(NamedTuple): + """See BaseTable.iterSubTables()""" + + name: str + value: "BaseTable" + index: Optional[int] = None # index into given array, None for single values + + def iterSubTables(self) -> Iterator[SubTableEntry]: + """Yield (name, value, index) namedtuples for all subtables of current table. + + A sub-table is an instance of BaseTable (or subclass thereof) that is a child + of self, the current parent table. + The tuples also contain the attribute name (str) of the of parent table to get + a subtable, and optionally, for lists of subtables (i.e. attributes associated + with a converter that has a 'repeat'), an index into the list containing the + given subtable value. + This method can be useful to traverse trees of otTables. + """ + for conv in self.getConverters(): + name = conv.name + value = getattr(self, name, None) + if value is None: + continue + if isinstance(value, BaseTable): + yield self.SubTableEntry(name, value) + elif isinstance(value, list): + yield from ( + self.SubTableEntry(name, v, index=i) + for i, v in enumerate(value) + if isinstance(v, BaseTable) + ) + + # instance (not @class)method for consistency with FormatSwitchingBaseTable + def getVariableAttrs(self): + return getVariableAttrs(self.__class__) + + +class FormatSwitchingBaseTable(BaseTable): + """Minor specialization of BaseTable, for tables that have multiple + formats, eg. CoverageFormat1 vs. CoverageFormat2.""" + + @classmethod + def getRecordSize(cls, reader): + return NotImplemented + + def getConverters(self): + try: + fmt = self.Format + except AttributeError: + # some FormatSwitchingBaseTables (e.g. Coverage) no longer have 'Format' + # attribute after fully decompiled, only gain one in preWrite before being + # recompiled. In the decompiled state, these hand-coded classes defined in + # otTables.py lose their format-specific nature and gain more high-level + # attributes that are not tied to converters. + return [] + return self.converters.get(self.Format, []) + + def getConverterByName(self, name): + return self.convertersByName[self.Format][name] + + def readFormat(self, reader): + self.Format = reader.readUShort() + + def writeFormat(self, writer): + writer.writeUShort(self.Format) + + def toXML(self, xmlWriter, font, attrs=None, name=None): + BaseTable.toXML(self, xmlWriter, font, attrs, name) + + def getVariableAttrs(self): + return getVariableAttrs(self.__class__, self.Format) + + +class UInt8FormatSwitchingBaseTable(FormatSwitchingBaseTable): + def readFormat(self, reader): + self.Format = reader.readUInt8() + + def writeFormat(self, writer): + writer.writeUInt8(self.Format) + + +formatSwitchingBaseTables = { + "uint16": FormatSwitchingBaseTable, + "uint8": UInt8FormatSwitchingBaseTable, +} + + +def getFormatSwitchingBaseTableClass(formatType): + try: + return formatSwitchingBaseTables[formatType] + except KeyError: + raise TypeError(f"Unsupported format type: {formatType!r}") + + +# memoize since these are parsed from otData.py, thus stay constant +@lru_cache() +def getVariableAttrs(cls: BaseTable, fmt: Optional[int] = None) -> Tuple[str]: + """Return sequence of variable table field names (can be empty). + + Attributes are deemed "variable" when their otData.py's description contain + 'VarIndexBase + {offset}', e.g. COLRv1 PaintVar* tables. + """ + if not issubclass(cls, BaseTable): + raise TypeError(cls) + if issubclass(cls, FormatSwitchingBaseTable): + if fmt is None: + raise TypeError(f"'fmt' is required for format-switching {cls.__name__}") + converters = cls.convertersByName[fmt] + else: + converters = cls.convertersByName + # assume if no 'VarIndexBase' field is present, table has no variable fields + if "VarIndexBase" not in converters: + return () + varAttrs = {} + for name, conv in converters.items(): + offset = conv.getVarIndexOffset() + if offset is not None: + varAttrs[name] = offset + return tuple(sorted(varAttrs, key=varAttrs.__getitem__)) + + +# +# Support for ValueRecords +# +# This data type is so different from all other OpenType data types that +# it requires quite a bit of code for itself. It even has special support +# in OTTableReader and OTTableWriter... +# + +valueRecordFormat = [ + # Mask Name isDevice signed + (0x0001, "XPlacement", 0, 1), + (0x0002, "YPlacement", 0, 1), + (0x0004, "XAdvance", 0, 1), + (0x0008, "YAdvance", 0, 1), + (0x0010, "XPlaDevice", 1, 0), + (0x0020, "YPlaDevice", 1, 0), + (0x0040, "XAdvDevice", 1, 0), + (0x0080, "YAdvDevice", 1, 0), + # reserved: + (0x0100, "Reserved1", 0, 0), + (0x0200, "Reserved2", 0, 0), + (0x0400, "Reserved3", 0, 0), + (0x0800, "Reserved4", 0, 0), + (0x1000, "Reserved5", 0, 0), + (0x2000, "Reserved6", 0, 0), + (0x4000, "Reserved7", 0, 0), + (0x8000, "Reserved8", 0, 0), +] + + +def _buildDict(): + d = {} + for mask, name, isDevice, signed in valueRecordFormat: + d[name] = mask, isDevice, signed + return d + + +valueRecordFormatDict = _buildDict() + + +class ValueRecordFactory(object): + """Given a format code, this object convert ValueRecords.""" + + def __init__(self, valueFormat): + format = [] + for mask, name, isDevice, signed in valueRecordFormat: + if valueFormat & mask: + format.append((name, isDevice, signed)) + self.format = format + + def __len__(self): + return len(self.format) + + def readValueRecord(self, reader, font): + format = self.format + if not format: + return None + valueRecord = ValueRecord() + for name, isDevice, signed in format: + if signed: + value = reader.readShort() + else: + value = reader.readUShort() + if isDevice: + if value: + from . import otTables + + subReader = reader.getSubReader(value) + value = getattr(otTables, name)() + value.decompile(subReader, font) + else: + value = None + setattr(valueRecord, name, value) + return valueRecord + + def writeValueRecord(self, writer, font, valueRecord): + for name, isDevice, signed in self.format: + value = getattr(valueRecord, name, 0) + if isDevice: + if value: + subWriter = writer.getSubWriter() + writer.writeSubTable(subWriter, offsetSize=2) + value.compile(subWriter, font) + else: + writer.writeUShort(0) + elif signed: + writer.writeShort(value) + else: + writer.writeUShort(value) + + +class ValueRecord(object): + # see ValueRecordFactory + + def __init__(self, valueFormat=None, src=None): + if valueFormat is not None: + for mask, name, isDevice, signed in valueRecordFormat: + if valueFormat & mask: + setattr(self, name, None if isDevice else 0) + if src is not None: + for key, val in src.__dict__.items(): + if not hasattr(self, key): + continue + setattr(self, key, val) + elif src is not None: + self.__dict__ = src.__dict__.copy() + + def getFormat(self): + format = 0 + for name in self.__dict__.keys(): + format = format | valueRecordFormatDict[name][0] + return format + + def getEffectiveFormat(self): + format = 0 + for name, value in self.__dict__.items(): + if value: + format = format | valueRecordFormatDict[name][0] + return format + + def toXML(self, xmlWriter, font, valueName, attrs=None): + if attrs is None: + simpleItems = [] + else: + simpleItems = list(attrs) + for mask, name, isDevice, format in valueRecordFormat[:4]: # "simple" values + if hasattr(self, name): + simpleItems.append((name, getattr(self, name))) + deviceItems = [] + for mask, name, isDevice, format in valueRecordFormat[4:8]: # device records + if hasattr(self, name): + device = getattr(self, name) + if device is not None: + deviceItems.append((name, device)) + if deviceItems: + xmlWriter.begintag(valueName, simpleItems) + xmlWriter.newline() + for name, deviceRecord in deviceItems: + if deviceRecord is not None: + deviceRecord.toXML(xmlWriter, font, name=name) + xmlWriter.endtag(valueName) + xmlWriter.newline() + else: + xmlWriter.simpletag(valueName, simpleItems) + xmlWriter.newline() + + def fromXML(self, name, attrs, content, font): + from . import otTables + + for k, v in attrs.items(): + setattr(self, k, int(v)) + for element in content: + if not isinstance(element, tuple): + continue + name, attrs, content = element + value = getattr(otTables, name)() + for elem2 in content: + if not isinstance(elem2, tuple): + continue + name2, attrs2, content2 = elem2 + value.fromXML(name2, attrs2, content2, font) + setattr(self, name, value) + + def __ne__(self, other): + result = self.__eq__(other) + return result if result is NotImplemented else not result + + def __eq__(self, other): + if type(self) != type(other): + return NotImplemented + return self.__dict__ == other.__dict__ diff --git a/shared/package-files/0a/0a37e830728977987104b5806ed5be94de16028023856a70f11c2d7169ae5feb/__init__.py b/shared/package-files/0a/0a37e830728977987104b5806ed5be94de16028023856a70f11c2d7169ae5feb/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..5939d83c8483812187c39d373e425630a9e44fe5 --- /dev/null +++ b/shared/package-files/0a/0a37e830728977987104b5806ed5be94de16028023856a70f11c2d7169ae5feb/__init__.py @@ -0,0 +1,8 @@ +"""This module implements histogram-based gradient boosting estimators. + +The implementation is a port from pygbm which is itself strongly inspired +from LightGBM. +""" + +# Authors: The scikit-learn developers +# SPDX-License-Identifier: BSD-3-Clause diff --git a/shared/package-files/0a/0a388d54f5093f15ef549cbbcacefd6886fb601e819bee674c9011e031ecc5cb/hash_util.h b/shared/package-files/0a/0a388d54f5093f15ef549cbbcacefd6886fb601e819bee674c9011e031ecc5cb/hash_util.h new file mode 100644 index 0000000000000000000000000000000000000000..7b3de2208935fa8c7c8afbc83ba9982f4907491d --- /dev/null +++ b/shared/package-files/0a/0a388d54f5093f15ef549cbbcacefd6886fb601e819bee674c9011e031ecc5cb/hash_util.h @@ -0,0 +1,66 @@ +// 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 + +namespace arrow { +namespace internal { + +// ---------------------------------------------------------------------- +// BEGIN Hash utilities from Boost + +namespace detail { + +#if defined(_MSC_VER) +# define ARROW_HASH_ROTL32(x, r) _rotl(x, r) +#else +# define ARROW_HASH_ROTL32(x, r) (x << r) | (x >> (32 - r)) +#endif + +template +inline void hash_combine_impl(SizeT& seed, SizeT value) { + seed ^= value + 0x9e3779b9 + (seed << 6) + (seed >> 2); +} + +inline void hash_combine_impl(uint32_t& h1, uint32_t k1) { + const uint32_t c1 = 0xcc9e2d51; + const uint32_t c2 = 0x1b873593; + + k1 *= c1; + k1 = ARROW_HASH_ROTL32(k1, 15); + k1 *= c2; + + h1 ^= k1; + h1 = ARROW_HASH_ROTL32(h1, 13); + h1 = h1 * 5 + 0xe6546b64; +} + +#undef ARROW_HASH_ROTL32 + +} // namespace detail + +template +inline void hash_combine(std::size_t& seed, T const& v) { + std::hash hasher; + return ::arrow::internal::detail::hash_combine_impl(seed, hasher(v)); +} + +// END Hash utilities from Boost +// ---------------------------------------------------------------------- + +} // namespace internal +} // namespace arrow diff --git a/shared/package-files/0a/0a3b6fe9644c119cab4ede8e8ec8d15ea6380feef4dc55e6cae94e3639b28c04/randdesc.txt b/shared/package-files/0a/0a3b6fe9644c119cab4ede8e8ec8d15ea6380feef4dc55e6cae94e3639b28c04/randdesc.txt new file mode 100644 index 0000000000000000000000000000000000000000..d312859a7af5ddba20ee3b7ca9c8a1015fc19539 --- /dev/null +++ b/shared/package-files/0a/0a3b6fe9644c119cab4ede8e8ec8d15ea6380feef4dc55e6cae94e3639b28c04/randdesc.txt @@ -0,0 +1,49 @@ + storage display value +variable name type format label variable label +-------------------------------------------------------------------- +plan float %9.0g hie plan number +site float %9.0g site +coins float %9.0g coinsurance -- medical +tookphys float %9.0g took baseline physical +year float %9.0g study year +zper float %9.0g person id, leading digit is sit +black float %9.0g black +income float %9.0g income based on annual income r +xage float %9.0g age that year +female float %9.0g female +educdec float %9.0g education of decision maker +time float %9.0g time eligible during the year +outpdol float %9.0g outpatient exp. excl. ment and +drugdol float %9.0g drugs purchased, outpatient +suppdol float %9.0g supplies purchased, outpatient +mentdol float %9.0g psychotherapy exp., outpatient +inpdol float %9.0g inpatient exp., facilities & md +meddol float %9.0g medical exp excl outpatient men +totadm float %9.0g number of hosp. admissions +inpmis float %9.0g missing any inpatient charges +mentvis float %9.0g number psychotherapy visits +mdvis float %9.0g number face-to-fact md visits +notmdvis float %9.0g number face-to-face, not-md vis +num float %9.0g family size +mhi float %9.0g mental health index -- baselin +disea float %9.0g count of chronic diseases -- ba +physlm float %9.0g physical limitations -- baselin +ghindx float %9.0g general health index -- baselin +mdeoff float %9.0g maximum expenditure offer +pioff float %9.0g participation incentive +child float %9.0g child +fchild float %9.0g female child +lfam float %9.0g log of family size +lpi float %9.0g log participation incentive +idp float %9.0g individual deductible plan +logc float %9.0g log(coinsurance+1) +fmde float %9.0g function of mdeoff +hlthg float %9.0g good health +hlthf float %9.0g fair health +hlthp float %9.0g poor health +xghindx float %9.0g ghi with imputation +linc float %9.0g +lnum float %9.0g +lnmeddol float %9.0g +binexp float %9.0g + diff --git a/shared/package-files/0a/0a3bb4fb3f92a93df34346fcb4f90f1d8e08ae5c79731e9fe6496166dc4a7273/_upsample_nearest_exact2d_meta.h b/shared/package-files/0a/0a3bb4fb3f92a93df34346fcb4f90f1d8e08ae5c79731e9fe6496166dc4a7273/_upsample_nearest_exact2d_meta.h new file mode 100644 index 0000000000000000000000000000000000000000..5af9c522dea2cb6441a9f10cb6b87aaab8bf61c5 --- /dev/null +++ b/shared/package-files/0a/0a3bb4fb3f92a93df34346fcb4f90f1d8e08ae5c79731e9fe6496166dc4a7273/_upsample_nearest_exact2d_meta.h @@ -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__upsample_nearest_exact2d : public at::impl::MetaBase { + + + void meta(const at::Tensor & self, at::ArrayRef output_size, c10::optional scales_h, c10::optional scales_w); +}; + +} // namespace native +} // namespace at diff --git a/shared/package-files/0a/0a3bcc0446de7d7092d3b36b4b908c2aa7278c91188d399faa6e511df87daee8/xxmodule.c b/shared/package-files/0a/0a3bcc0446de7d7092d3b36b4b908c2aa7278c91188d399faa6e511df87daee8/xxmodule.c new file mode 100644 index 0000000000000000000000000000000000000000..a6e5071d1d6303469c3af4232c6299c232e680a6 --- /dev/null +++ b/shared/package-files/0a/0a3bcc0446de7d7092d3b36b4b908c2aa7278c91188d399faa6e511df87daee8/xxmodule.c @@ -0,0 +1,412 @@ + +/* Use this file as a template to start implementing a module that + also declares object types. All occurrences of 'Xxo' should be changed + to something reasonable for your objects. After that, all other + occurrences of 'xx' should be changed to something reasonable for your + module. If your module is named foo your sourcefile should be named + foomodule.c. + + You will probably want to delete all references to 'x_attr' and add + your own types of attributes instead. Maybe you want to name your + local variables other than 'self'. If your object type is needed in + other files, you'll have to create a file "foobarobject.h"; see + floatobject.h for an example. */ + +/* Xxo objects */ + +#include "Python.h" + +static PyObject *ErrorObject; + +typedef struct { + PyObject_HEAD + PyObject *x_attr; /* Attributes dictionary */ +} XxoObject; + +static PyTypeObject Xxo_Type; + +#define XxoObject_Check(v) Py_IS_TYPE(v, &Xxo_Type) + +static XxoObject * +newXxoObject(PyObject *arg) +{ + XxoObject *self; + self = PyObject_New(XxoObject, &Xxo_Type); + if (self == NULL) + return NULL; + self->x_attr = NULL; + return self; +} + +/* Xxo methods */ + +static void +Xxo_dealloc(XxoObject *self) +{ + Py_XDECREF(self->x_attr); + PyObject_Free(self); +} + +static PyObject * +Xxo_demo(XxoObject *self, PyObject *args) +{ + if (!PyArg_ParseTuple(args, ":demo")) + return NULL; + Py_INCREF(Py_None); + return Py_None; +} + +static PyMethodDef Xxo_methods[] = { + {"demo", (PyCFunction)Xxo_demo, METH_VARARGS, + PyDoc_STR("demo() -> None")}, + {NULL, NULL} /* sentinel */ +}; + +static PyObject * +Xxo_getattro(XxoObject *self, PyObject *name) +{ + if (self->x_attr != NULL) { + PyObject *v = PyDict_GetItemWithError(self->x_attr, name); + if (v != NULL) { + Py_INCREF(v); + return v; + } + else if (PyErr_Occurred()) { + return NULL; + } + } + return PyObject_GenericGetAttr((PyObject *)self, name); +} + +static int +Xxo_setattr(XxoObject *self, const char *name, PyObject *v) +{ + if (self->x_attr == NULL) { + self->x_attr = PyDict_New(); + if (self->x_attr == NULL) + return -1; + } + if (v == NULL) { + int rv = PyDict_DelItemString(self->x_attr, name); + if (rv < 0 && PyErr_ExceptionMatches(PyExc_KeyError)) + PyErr_SetString(PyExc_AttributeError, + "delete non-existing Xxo attribute"); + return rv; + } + else + return PyDict_SetItemString(self->x_attr, name, v); +} + +static PyTypeObject Xxo_Type = { + /* The ob_type field must be initialized in the module init function + * to be portable to Windows without using C++. */ + PyVarObject_HEAD_INIT(NULL, 0) + "xxmodule.Xxo", /*tp_name*/ + sizeof(XxoObject), /*tp_basicsize*/ + 0, /*tp_itemsize*/ + /* methods */ + (destructor)Xxo_dealloc, /*tp_dealloc*/ + 0, /*tp_vectorcall_offset*/ + (getattrfunc)0, /*tp_getattr*/ + (setattrfunc)Xxo_setattr, /*tp_setattr*/ + 0, /*tp_as_async*/ + 0, /*tp_repr*/ + 0, /*tp_as_number*/ + 0, /*tp_as_sequence*/ + 0, /*tp_as_mapping*/ + 0, /*tp_hash*/ + 0, /*tp_call*/ + 0, /*tp_str*/ + (getattrofunc)Xxo_getattro, /*tp_getattro*/ + 0, /*tp_setattro*/ + 0, /*tp_as_buffer*/ + Py_TPFLAGS_DEFAULT, /*tp_flags*/ + 0, /*tp_doc*/ + 0, /*tp_traverse*/ + 0, /*tp_clear*/ + 0, /*tp_richcompare*/ + 0, /*tp_weaklistoffset*/ + 0, /*tp_iter*/ + 0, /*tp_iternext*/ + Xxo_methods, /*tp_methods*/ + 0, /*tp_members*/ + 0, /*tp_getset*/ + 0, /*tp_base*/ + 0, /*tp_dict*/ + 0, /*tp_descr_get*/ + 0, /*tp_descr_set*/ + 0, /*tp_dictoffset*/ + 0, /*tp_init*/ + 0, /*tp_alloc*/ + 0, /*tp_new*/ + 0, /*tp_free*/ + 0, /*tp_is_gc*/ +}; +/* --------------------------------------------------------------------- */ + +/* Function of two integers returning integer */ + +PyDoc_STRVAR(xx_foo_doc, +"foo(i,j)\n\ +\n\ +Return the sum of i and j."); + +static PyObject * +xx_foo(PyObject *self, PyObject *args) +{ + long i, j; + long res; + if (!PyArg_ParseTuple(args, "ll:foo", &i, &j)) + return NULL; + res = i+j; /* XXX Do something here */ + return PyLong_FromLong(res); +} + + +/* Function of no arguments returning new Xxo object */ + +static PyObject * +xx_new(PyObject *self, PyObject *args) +{ + XxoObject *rv; + + if (!PyArg_ParseTuple(args, ":new")) + return NULL; + rv = newXxoObject(args); + if (rv == NULL) + return NULL; + return (PyObject *)rv; +} + +/* Example with subtle bug from extensions manual ("Thin Ice"). */ + +static PyObject * +xx_bug(PyObject *self, PyObject *args) +{ + PyObject *list, *item; + + if (!PyArg_ParseTuple(args, "O:bug", &list)) + return NULL; + + item = PyList_GetItem(list, 0); + /* Py_INCREF(item); */ + PyList_SetItem(list, 1, PyLong_FromLong(0L)); + PyObject_Print(item, stdout, 0); + printf("\n"); + /* Py_DECREF(item); */ + + Py_INCREF(Py_None); + return Py_None; +} + +/* Test bad format character */ + +static PyObject * +xx_roj(PyObject *self, PyObject *args) +{ + PyObject *a; + long b; + if (!PyArg_ParseTuple(args, "O#:roj", &a, &b)) + return NULL; + Py_INCREF(Py_None); + return Py_None; +} + + +/* ---------- */ + +static PyTypeObject Str_Type = { + /* The ob_type field must be initialized in the module init function + * to be portable to Windows without using C++. */ + PyVarObject_HEAD_INIT(NULL, 0) + "xxmodule.Str", /*tp_name*/ + 0, /*tp_basicsize*/ + 0, /*tp_itemsize*/ + /* methods */ + 0, /*tp_dealloc*/ + 0, /*tp_vectorcall_offset*/ + 0, /*tp_getattr*/ + 0, /*tp_setattr*/ + 0, /*tp_as_async*/ + 0, /*tp_repr*/ + 0, /*tp_as_number*/ + 0, /*tp_as_sequence*/ + 0, /*tp_as_mapping*/ + 0, /*tp_hash*/ + 0, /*tp_call*/ + 0, /*tp_str*/ + 0, /*tp_getattro*/ + 0, /*tp_setattro*/ + 0, /*tp_as_buffer*/ + Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /*tp_flags*/ + 0, /*tp_doc*/ + 0, /*tp_traverse*/ + 0, /*tp_clear*/ + 0, /*tp_richcompare*/ + 0, /*tp_weaklistoffset*/ + 0, /*tp_iter*/ + 0, /*tp_iternext*/ + 0, /*tp_methods*/ + 0, /*tp_members*/ + 0, /*tp_getset*/ + 0, /* see PyInit_xx */ /*tp_base*/ + 0, /*tp_dict*/ + 0, /*tp_descr_get*/ + 0, /*tp_descr_set*/ + 0, /*tp_dictoffset*/ + 0, /*tp_init*/ + 0, /*tp_alloc*/ + 0, /*tp_new*/ + 0, /*tp_free*/ + 0, /*tp_is_gc*/ +}; + +/* ---------- */ + +static PyObject * +null_richcompare(PyObject *self, PyObject *other, int op) +{ + Py_INCREF(Py_NotImplemented); + return Py_NotImplemented; +} + +static PyTypeObject Null_Type = { + /* The ob_type field must be initialized in the module init function + * to be portable to Windows without using C++. */ + PyVarObject_HEAD_INIT(NULL, 0) + "xxmodule.Null", /*tp_name*/ + 0, /*tp_basicsize*/ + 0, /*tp_itemsize*/ + /* methods */ + 0, /*tp_dealloc*/ + 0, /*tp_vectorcall_offset*/ + 0, /*tp_getattr*/ + 0, /*tp_setattr*/ + 0, /*tp_as_async*/ + 0, /*tp_repr*/ + 0, /*tp_as_number*/ + 0, /*tp_as_sequence*/ + 0, /*tp_as_mapping*/ + 0, /*tp_hash*/ + 0, /*tp_call*/ + 0, /*tp_str*/ + 0, /*tp_getattro*/ + 0, /*tp_setattro*/ + 0, /*tp_as_buffer*/ + Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /*tp_flags*/ + 0, /*tp_doc*/ + 0, /*tp_traverse*/ + 0, /*tp_clear*/ + null_richcompare, /*tp_richcompare*/ + 0, /*tp_weaklistoffset*/ + 0, /*tp_iter*/ + 0, /*tp_iternext*/ + 0, /*tp_methods*/ + 0, /*tp_members*/ + 0, /*tp_getset*/ + 0, /* see PyInit_xx */ /*tp_base*/ + 0, /*tp_dict*/ + 0, /*tp_descr_get*/ + 0, /*tp_descr_set*/ + 0, /*tp_dictoffset*/ + 0, /*tp_init*/ + 0, /*tp_alloc*/ + PyType_GenericNew, /*tp_new*/ + 0, /*tp_free*/ + 0, /*tp_is_gc*/ +}; + + +/* ---------- */ + + +/* List of functions defined in the module */ + +static PyMethodDef xx_methods[] = { + {"roj", xx_roj, METH_VARARGS, + PyDoc_STR("roj(a,b) -> None")}, + {"foo", xx_foo, METH_VARARGS, + xx_foo_doc}, + {"new", xx_new, METH_VARARGS, + PyDoc_STR("new() -> new Xx object")}, + {"bug", xx_bug, METH_VARARGS, + PyDoc_STR("bug(o) -> None")}, + {NULL, NULL} /* sentinel */ +}; + +PyDoc_STRVAR(module_doc, +"This is a template module just for instruction."); + + +static int +xx_exec(PyObject *m) +{ + /* Slot initialization is subject to the rules of initializing globals. + C99 requires the initializers to be "address constants". Function + designators like 'PyType_GenericNew', with implicit conversion to + a pointer, are valid C99 address constants. + + However, the unary '&' operator applied to a non-static variable + like 'PyBaseObject_Type' is not required to produce an address + constant. Compilers may support this (gcc does), MSVC does not. + + Both compilers are strictly standard conforming in this particular + behavior. + */ + Null_Type.tp_base = &PyBaseObject_Type; + Str_Type.tp_base = &PyUnicode_Type; + + /* Finalize the type object including setting type of the new type + * object; doing it here is required for portability, too. */ + if (PyType_Ready(&Xxo_Type) < 0) { + return -1; + } + + /* Add some symbolic constants to the module */ + if (ErrorObject == NULL) { + ErrorObject = PyErr_NewException("xx.error", NULL, NULL); + if (ErrorObject == NULL) { + return -1; + } + } + int rc = PyModule_AddType(m, (PyTypeObject *)ErrorObject); + Py_DECREF(ErrorObject); + if (rc < 0) { + return -1; + } + + /* Add Str and Null types */ + if (PyModule_AddType(m, &Str_Type) < 0) { + return -1; + } + if (PyModule_AddType(m, &Null_Type) < 0) { + return -1; + } + + return 0; +} + +static struct PyModuleDef_Slot xx_slots[] = { + {Py_mod_exec, xx_exec}, + {0, NULL}, +}; + +static struct PyModuleDef xxmodule = { + PyModuleDef_HEAD_INIT, + "xx", + module_doc, + 0, + xx_methods, + xx_slots, + NULL, + NULL, + NULL +}; + +/* Export function for the module (*must* be called PyInit_xx) */ + +PyMODINIT_FUNC +PyInit_xx(void) +{ + return PyModuleDef_Init(&xxmodule); +} diff --git a/shared/package-files/0a/0a3c4fc431886696310494d82e3277b5bac2cda3a6d3ab3c6c49bbb472eb697c/sm3533.csv b/shared/package-files/0a/0a3c4fc431886696310494d82e3277b5bac2cda3a6d3ab3c6c49bbb472eb697c/sm3533.csv new file mode 100644 index 0000000000000000000000000000000000000000..b1854edb5847bf48a3e2948ae4cffc734699cb9c --- /dev/null +++ b/shared/package-files/0a/0a3c4fc431886696310494d82e3277b5bac2cda3a6d3ab3c6c49bbb472eb697c/sm3533.csv @@ -0,0 +1,271 @@ +pp,num +10.171795655804711,1.0 +10.501472042414694,1742.0 +11.282291429896768,1.0 +11.43695113687264,0.0 +10.995897311894359,3071.0 +11.259593288117415,4829.0 +11.7913901878724,3.0 +10.89529383688643,284.0 +11.399319941347034,3558.0 +11.142513744919452,2907.0 +10.016101696905263,1.0 +11.134749595299702,1.0 +11.460178482911612,618.0 +10.332962113104644,0.0 +13.182255495711443,260.0 +9.873234509365107,101.0 +9.662243674190131,1.0 +11.31757945705352,3196.0 +11.17871067839023,1132.0 +10.605321890243529,1072.0 +10.849667129269148,17.0 +11.14135440850962,1.0 +12.194571763193121,1.0 +10.761280150015972,1264.0 +10.472968802094007,790.0 +10.488993841578681,2017.0 +9.914625296946584,1104.0 +10.889845245523059,976.0 +10.948980318873577,3127.0 +11.5754588521697,116.0 +10.83891402271876,12.0 +10.42611328041787,0.0 +11.966132569063815,1474.0 +10.193915850655934,1012.0 +10.237635661893249,970.0 +10.39714667138021,871.0 +10.809020627757324,0.0 +11.02875800051622,2867.0 +12.114171149556503,2.0 +10.268304262166483,1.0 +10.917304189499522,0.0 +11.818717556594327,820.0 +12.398893062575521,1150.0 +10.273843483530724,816.0 +11.12056412623904,0.0 +11.612707449517059,118.0 +11.074513521713284,1941.0 +10.742962032791647,435.0 +10.568055201212758,1483.0 +11.111820836139026,1577.0 +11.492804386974006,4605.0 +10.800656625202697,721.0 +10.848151918598122,2060.0 +10.753638481905739,0.0 +10.98918344927101,1.0 +11.165153627640535,0.0 +11.564863051756848,4734.0 +10.276877027171807,856.0 +11.286689637494428,0.0 +11.107180317654745,5218.0 +9.957833682276242,851.0 +10.990769224861854,1675.0 +11.62666478024292,1.0 +11.369701536831892,3140.0 +10.345605978292328,1932.0 +9.621655004873238,0.0 +11.749853571255056,2.0 +10.609723697637792,0.0 +11.24217916922465,533.0 +11.260443212190522,547.0 +9.775199532234597,1.0 +11.973282717164158,1.0 +12.39948249930955,2.0 +10.518051376717915,1950.0 +11.476168115244377,3200.0 +10.263013428702846,2267.0 +11.29761366527052,1582.0 +9.479527461791719,0.0 +10.918011460821951,123.0 +9.609384912281424,609.0 +11.414948733073855,0.0 +9.331406899955626,185.0 +9.940494278165223,1.0 +10.645520130825885,0.0 +10.053156777054832,316.0 +10.980399414224898,2991.0 +11.445620453959314,3494.0 +9.727227587120769,0.0 +10.004011390302427,698.0 +10.316986965672614,689.0 +11.364135391385066,3924.0 +11.841192703900717,6241.0 +10.513551992534897,1286.0 +9.898977397058243,0.0 +10.418315157681416,1508.0 +10.824208456689599,1043.0 +11.128820593983395,3372.0 +10.79605919778969,0.0 +9.409027282856401,590.0 +10.931122859815252,3334.0 +11.247317946836759,3475.0 +11.396245570629663,4236.0 +8.016977746762262,0.0 +10.919840790366809,0.0 +12.205947637717022,183.0 +11.233489301372298,4567.0 +8.931155429778348,506.0 +9.478763169489152,374.0 +11.830112940179575,7285.0 +10.812169410206767,1221.0 +12.048991843752006,817.0 +10.485004604424653,0.0 +10.240673819890999,1848.0 +11.230960352847676,0.0 +11.175254510173374,1.0 +10.923651694875096,2894.0 +9.52704712346858,0.0 +9.567385247481795,623.0 +10.956247856355338,1580.0 +11.406642301581638,4668.0 +11.760785043234838,4730.0 +9.625887815425859,632.0 +11.016167098415673,3149.0 +10.381087258403491,0.0 +9.664976524090797,1154.0 +10.981641999301841,2852.0 +11.553347379469145,1.0 +9.939337205429826,182.0 +9.708566960165658,696.0 +11.426495736971841,1767.0 +10.59518368082876,0.0 +11.332841403116465,1.0 +10.784876232401018,2281.0 +10.889080441396876,2319.0 +9.916601191681512,0.0 +11.043417712757153,0.0 +11.000965865163035,2943.0 +10.604454082148205,0.0 +10.928202103359991,0.0 +11.039154749155248,1694.0 +10.195410619245164,0.0 +10.955636966793897,1316.0 +9.478533767844102,0.0 +11.178752582806263,2963.0 +9.909121651153221,1182.0 +8.13622555490846,0.0 +11.495036405634488,0.0 +11.576651155850774,0.0 +9.272563715156315,0.0 +10.416071629316981,1693.0 +10.684760072732194,158.0 +10.020336819032421,1401.0 +11.86824749413235,0.0 +11.622792809600409,36.0 +10.139665782120794,960.0 +11.001649739923852,1739.0 +12.139216774744108,1.0 +12.239226918062332,814.0 +10.273187304197549,1105.0 +9.959584291887998,957.0 +11.551164927623898,2.0 +8.84779106484485,0.0 +10.341226221194589,0.0 +10.71005270013163,1283.0 +10.088015007879244,0.0 +11.293338082983785,0.0 +11.80365289560797,8247.0 +11.117138373413335,9719.0 +10.265105260864017,1111.0 +10.234229114448356,924.0 +9.612065160468624,544.0 +9.53870842969938,1.0 +10.012610979554482,1887.0 +10.467579023926712,0.0 +10.746734361340112,1745.0 +11.110266416192525,2441.0 +10.659257357575182,3468.0 +11.344991902770955,4480.0 +9.4053313318708,1.0 +10.856187356294447,1246.0 +10.25558704504304,0.0 +12.144888492205176,1.0 +11.123063000089472,2129.0 +10.157780872842554,923.0 +8.025843344150903,0.0 +10.638592082856581,0.0 +10.121578360213686,409.0 +10.24817594392868,1.0 +9.396155818024393,0.0 +11.514204646468608,4214.0 +11.835421922338627,1329.0 +10.73832958879877,1353.0 +9.962840778235641,1005.0 +10.051303927230347,606.0 +10.000069650382372,0.0 +11.571656530433991,5698.0 +10.620912625555597,2552.0 +9.616205400105674,725.0 +10.985292722887856,2581.0 +10.38294634055262,1291.0 +11.943187245295023,1.0 +10.98999352120919,0.0 +10.109810426119994,0.0 +10.386068010861816,1315.0 +10.61837176273886,0.0 +9.970772299341725,0.0 +9.070618428801046,0.0 +9.890706218171395,0.0 +11.041192341010333,4193.0 +10.499738295850376,2794.0 +10.908741089458378,2333.0 +8.284251797621916,0.0 +10.991173701070684,0.0 +11.153561193744727,2027.0 +10.300685246225866,1465.0 +12.054313270918852,5.0 +11.84448565723042,17.0 +11.485667314199365,4407.0 +9.452658902676433,677.0 +11.163481457539843,0.0 +9.658609509075912,0.0 +9.107310471656639,662.0 +9.1689974084418,0.0 +10.319694757176194,1072.0 +11.541736414824339,1.0 +11.538485993495504,4382.0 +10.50457426724686,1.0 +10.39714667138021,1374.0 +9.383957488139991,0.0 +10.443512690706546,0.0 +10.632773779711947,0.0 +8.975630184290507,0.0 +10.734111457653192,0.0 +11.062018331415482,1723.0 +10.151089542682712,1626.0 +11.594026074406777,2463.0 +11.375684342656722,2843.0 +10.50840443170166,57.0 +10.42812732013549,1.0 +10.995763139986401,0.0 +11.72499997991353,0.0 +11.408375731650665,1.0 +10.535211354858648,1.0 +11.449048058581468,1.0 +11.475389731441124,6662.0 +9.775370049755686,683.0 +9.464207095933233,679.0 +10.63904746172768,0.0 +10.693080631364326,458.0 +10.528757310692988,0.0 +10.263013428702846,1.0 +9.91788343281986,0.0 +11.757352898921226,267.0 +9.950132560359172,0.0 +9.502711433914095,0.0 +9.875345246589848,0.0 +12.047276190783021,40.0 +11.327860147505211,2933.0 +10.897257709680655,3857.0 +10.211413331464952,0.0 +9.911505324129712,851.0 +10.739240454183802,0.0 +11.608817293765796,980.0 +9.610792938260802,1446.0 +10.604057118911712,3130.0 +11.5332083690719,4090.0 +11.55856782284893,1338.0 +11.438697485615931,0.0 +11.709864661587565,1.0 +10.720377750501907,3485.0 diff --git a/shared/package-files/0a/0a4185acc3e2659e9a43ad3b138c9f6434dc629cf5a5dadb7786b3cb1ed7557f/int_fiction.py b/shared/package-files/0a/0a4185acc3e2659e9a43ad3b138c9f6434dc629cf5a5dadb7786b3cb1ed7557f/int_fiction.py new file mode 100644 index 0000000000000000000000000000000000000000..4f4d55d6cb2626d95d1155bfcdc33bfda8793e9f --- /dev/null +++ b/shared/package-files/0a/0a4185acc3e2659e9a43ad3b138c9f6434dc629cf5a5dadb7786b3cb1ed7557f/int_fiction.py @@ -0,0 +1,1382 @@ +""" + pygments.lexers.int_fiction + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Lexers for interactive fiction languages. + + :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS. + :license: BSD, see LICENSE for details. +""" + +import re + +from pygments.lexer import RegexLexer, include, bygroups, using, \ + this, default, words +from pygments.token import Text, Comment, Operator, Keyword, Name, String, \ + Number, Punctuation, Error, Generic + +__all__ = ['Inform6Lexer', 'Inform6TemplateLexer', 'Inform7Lexer', + 'Tads3Lexer'] + + +class Inform6Lexer(RegexLexer): + """ + For Inform 6 source code. + + .. versionadded:: 2.0 + """ + + name = 'Inform 6' + url = 'http://inform-fiction.org/' + aliases = ['inform6', 'i6'] + filenames = ['*.inf'] + + flags = re.MULTILINE | re.DOTALL + + _name = r'[a-zA-Z_]\w*' + + # Inform 7 maps these four character classes to their ASCII + # equivalents. To support Inform 6 inclusions within Inform 7, + # Inform6Lexer maps them too. + _dash = '\\-\u2010-\u2014' + _dquote = '"\u201c\u201d' + _squote = "'\u2018\u2019" + _newline = '\\n\u0085\u2028\u2029' + + tokens = { + 'root': [ + (r'\A(!%%[^%s]*[%s])+' % (_newline, _newline), Comment.Preproc, + 'directive'), + default('directive') + ], + '_whitespace': [ + (r'\s+', Text), + (r'![^%s]*' % _newline, Comment.Single) + ], + 'default': [ + include('_whitespace'), + (r'\[', Punctuation, 'many-values'), # Array initialization + (r':|(?=;)', Punctuation, '#pop'), + (r'<', Punctuation), # Second angle bracket in an action statement + default(('expression', '_expression')) + ], + + # Expressions + '_expression': [ + include('_whitespace'), + (r'(?=sp\b)', Text, '#pop'), + (r'(?=[%s%s$0-9#a-zA-Z_])' % (_dquote, _squote), Text, + ('#pop', 'value')), + (r'\+\+|[%s]{1,2}(?!>)|~~?' % _dash, Operator), + (r'(?=[()\[%s,?@{:;])' % _dash, Text, '#pop') + ], + 'expression': [ + include('_whitespace'), + (r'\(', Punctuation, ('expression', '_expression')), + (r'\)', Punctuation, '#pop'), + (r'\[', Punctuation, ('#pop', 'statements', 'locals')), + (r'>(?=(\s+|(![^%s]*))*[>;])' % _newline, Punctuation), + (r'\+\+|[%s]{2}(?!>)' % _dash, Operator), + (r',', Punctuation, '_expression'), + (r'&&?|\|\|?|[=~><]?=|[%s]{1,2}>?|\.\.?[&#]?|::|[<>+*/%%]' % _dash, + Operator, '_expression'), + (r'(has|hasnt|in|notin|ofclass|or|provides)\b', Operator.Word, + '_expression'), + (r'sp\b', Name), + (r'\?~?', Name.Label, 'label?'), + (r'[@{]', Error), + default('#pop') + ], + '_assembly-expression': [ + (r'\(', Punctuation, ('#push', '_expression')), + (r'[\[\]]', Punctuation), + (r'[%s]>' % _dash, Punctuation, '_expression'), + (r'sp\b', Keyword.Pseudo), + (r';', Punctuation, '#pop:3'), + include('expression') + ], + '_for-expression': [ + (r'\)', Punctuation, '#pop:2'), + (r':', Punctuation, '#pop'), + include('expression') + ], + '_keyword-expression': [ + (r'(from|near|to)\b', Keyword, '_expression'), + include('expression') + ], + '_list-expression': [ + (r',', Punctuation, '#pop'), + include('expression') + ], + '_object-expression': [ + (r'has\b', Keyword.Declaration, '#pop'), + include('_list-expression') + ], + + # Values + 'value': [ + include('_whitespace'), + # Strings + (r'[%s][^@][%s]' % (_squote, _squote), String.Char, '#pop'), + (r'([%s])(@\{[0-9a-fA-F]*\})([%s])' % (_squote, _squote), + bygroups(String.Char, String.Escape, String.Char), '#pop'), + (r'([%s])(@.{2})([%s])' % (_squote, _squote), + bygroups(String.Char, String.Escape, String.Char), '#pop'), + (r'[%s]' % _squote, String.Single, ('#pop', 'dictionary-word')), + (r'[%s]' % _dquote, String.Double, ('#pop', 'string')), + # Numbers + (r'\$[<>]?[+%s][0-9]*\.?[0-9]*([eE][+%s]?[0-9]+)?' % (_dash, _dash), + Number.Float, '#pop'), + (r'\$[0-9a-fA-F]+', Number.Hex, '#pop'), + (r'\$\$[01]+', Number.Bin, '#pop'), + (r'[0-9]+', Number.Integer, '#pop'), + # Values prefixed by hashes + (r'(##|#a\$)(%s)' % _name, bygroups(Operator, Name), '#pop'), + (r'(#g\$)(%s)' % _name, + bygroups(Operator, Name.Variable.Global), '#pop'), + (r'#[nw]\$', Operator, ('#pop', 'obsolete-dictionary-word')), + (r'(#r\$)(%s)' % _name, bygroups(Operator, Name.Function), '#pop'), + (r'#', Name.Builtin, ('#pop', 'system-constant')), + # System functions + (words(( + 'child', 'children', 'elder', 'eldest', 'glk', 'indirect', 'metaclass', + 'parent', 'random', 'sibling', 'younger', 'youngest'), suffix=r'\b'), + Name.Builtin, '#pop'), + # Metaclasses + (r'(?i)(Class|Object|Routine|String)\b', Name.Builtin, '#pop'), + # Veneer routines + (words(( + 'Box__Routine', 'CA__Pr', 'CDefArt', 'CInDefArt', 'Cl__Ms', + 'Copy__Primitive', 'CP__Tab', 'DA__Pr', 'DB__Pr', 'DefArt', 'Dynam__String', + 'EnglishNumber', 'Glk__Wrap', 'IA__Pr', 'IB__Pr', 'InDefArt', 'Main__', + 'Meta__class', 'OB__Move', 'OB__Remove', 'OC__Cl', 'OP__Pr', 'Print__Addr', + 'Print__PName', 'PrintShortName', 'RA__Pr', 'RA__Sc', 'RL__Pr', 'R_Process', + 'RT__ChG', 'RT__ChGt', 'RT__ChLDB', 'RT__ChLDW', 'RT__ChPR', 'RT__ChPrintA', + 'RT__ChPrintC', 'RT__ChPrintO', 'RT__ChPrintS', 'RT__ChPS', 'RT__ChR', + 'RT__ChSTB', 'RT__ChSTW', 'RT__ChT', 'RT__Err', 'RT__TrPS', 'RV__Pr', + 'Symb__Tab', 'Unsigned__Compare', 'WV__Pr', 'Z__Region'), + prefix='(?i)', suffix=r'\b'), + Name.Builtin, '#pop'), + # Other built-in symbols + (words(( + 'call', 'copy', 'create', 'DEBUG', 'destroy', 'DICT_CHAR_SIZE', + 'DICT_ENTRY_BYTES', 'DICT_IS_UNICODE', 'DICT_WORD_SIZE', 'DOUBLE_HI_INFINITY', + 'DOUBLE_HI_NAN', 'DOUBLE_HI_NINFINITY', 'DOUBLE_LO_INFINITY', 'DOUBLE_LO_NAN', + 'DOUBLE_LO_NINFINITY', 'false', 'FLOAT_INFINITY', 'FLOAT_NAN', 'FLOAT_NINFINITY', + 'GOBJFIELD_CHAIN', 'GOBJFIELD_CHILD', 'GOBJFIELD_NAME', 'GOBJFIELD_PARENT', + 'GOBJFIELD_PROPTAB', 'GOBJFIELD_SIBLING', 'GOBJ_EXT_START', + 'GOBJ_TOTAL_LENGTH', 'Grammar__Version', 'INDIV_PROP_START', 'INFIX', + 'infix__watching', 'MODULE_MODE', 'name', 'nothing', 'NUM_ATTR_BYTES', 'print', + 'print_to_array', 'recreate', 'remaining', 'self', 'sender', 'STRICT_MODE', + 'sw__var', 'sys__glob0', 'sys__glob1', 'sys__glob2', 'sys_statusline_flag', + 'TARGET_GLULX', 'TARGET_ZCODE', 'temp__global2', 'temp__global3', + 'temp__global4', 'temp_global', 'true', 'USE_MODULES', 'WORDSIZE'), + prefix='(?i)', suffix=r'\b'), + Name.Builtin, '#pop'), + # Other values + (_name, Name, '#pop') + ], + 'value?': [ + include('value'), + default('#pop') + ], + # Strings + 'dictionary-word': [ + (r'[~^]+', String.Escape), + (r'[^~^\\@({%s]+' % _squote, String.Single), + (r'[({]', String.Single), + (r'@\{[0-9a-fA-F]*\}', String.Escape), + (r'@.{2}', String.Escape), + (r'[%s]' % _squote, String.Single, '#pop') + ], + 'string': [ + (r'[~^]+', String.Escape), + (r'[^~^\\@({%s]+' % _dquote, String.Double), + (r'[({]', String.Double), + (r'\\', String.Escape), + (r'@(\\\s*[%s]\s*)*@((\\\s*[%s]\s*)*[0-9])*' % + (_newline, _newline), String.Escape), + (r'@(\\\s*[%s]\s*)*[({]((\\\s*[%s]\s*)*[0-9a-zA-Z_])*' + r'(\\\s*[%s]\s*)*[)}]' % (_newline, _newline, _newline), + String.Escape), + (r'@(\\\s*[%s]\s*)*.(\\\s*[%s]\s*)*.' % (_newline, _newline), + String.Escape), + (r'[%s]' % _dquote, String.Double, '#pop') + ], + 'plain-string': [ + (r'[^~^\\({\[\]%s]+' % _dquote, String.Double), + (r'[~^({\[\]]', String.Double), + (r'\\', String.Escape), + (r'[%s]' % _dquote, String.Double, '#pop') + ], + # Names + '_constant': [ + include('_whitespace'), + (_name, Name.Constant, '#pop'), + include('value') + ], + 'constant*': [ + include('_whitespace'), + (r',', Punctuation), + (r'=', Punctuation, 'value?'), + (_name, Name.Constant, 'value?'), + default('#pop') + ], + '_global': [ + include('_whitespace'), + (_name, Name.Variable.Global, '#pop'), + include('value') + ], + 'label?': [ + include('_whitespace'), + (_name, Name.Label, '#pop'), + default('#pop') + ], + 'variable?': [ + include('_whitespace'), + (_name, Name.Variable, '#pop'), + default('#pop') + ], + # Values after hashes + 'obsolete-dictionary-word': [ + (r'\S\w*', String.Other, '#pop') + ], + 'system-constant': [ + include('_whitespace'), + (_name, Name.Builtin, '#pop') + ], + + # Directives + 'directive': [ + include('_whitespace'), + (r'#', Punctuation), + (r';', Punctuation, '#pop'), + (r'\[', Punctuation, + ('default', 'statements', 'locals', 'routine-name?')), + (words(( + 'abbreviate', 'endif', 'dictionary', 'ifdef', 'iffalse', 'ifndef', 'ifnot', + 'iftrue', 'ifv3', 'ifv5', 'release', 'serial', 'switches', 'system_file', + 'version'), prefix='(?i)', suffix=r'\b'), + Keyword, 'default'), + (r'(?i)(array|global)\b', Keyword, + ('default', 'directive-keyword?', '_global')), + (r'(?i)attribute\b', Keyword, ('default', 'alias?', '_constant')), + (r'(?i)class\b', Keyword, + ('object-body', 'duplicates', 'class-name')), + (r'(?i)(constant|default)\b', Keyword, + ('default', 'constant*')), + (r'(?i)(end\b)(.*)', bygroups(Keyword, Text)), + (r'(?i)(extend|verb)\b', Keyword, 'grammar'), + (r'(?i)fake_action\b', Keyword, ('default', '_constant')), + (r'(?i)import\b', Keyword, 'manifest'), + (r'(?i)(include|link|origsource)\b', Keyword, + ('default', 'before-plain-string?')), + (r'(?i)(lowstring|undef)\b', Keyword, ('default', '_constant')), + (r'(?i)message\b', Keyword, ('default', 'diagnostic')), + (r'(?i)(nearby|object)\b', Keyword, + ('object-body', '_object-head')), + (r'(?i)property\b', Keyword, + ('default', 'alias?', '_constant', 'property-keyword*')), + (r'(?i)replace\b', Keyword, + ('default', 'routine-name?', 'routine-name?')), + (r'(?i)statusline\b', Keyword, ('default', 'directive-keyword?')), + (r'(?i)stub\b', Keyword, ('default', 'routine-name?')), + (r'(?i)trace\b', Keyword, + ('default', 'trace-keyword?', 'trace-keyword?')), + (r'(?i)zcharacter\b', Keyword, + ('default', 'directive-keyword?', 'directive-keyword?')), + (_name, Name.Class, ('object-body', '_object-head')) + ], + # [, Replace, Stub + 'routine-name?': [ + include('_whitespace'), + (_name, Name.Function, '#pop'), + default('#pop') + ], + 'locals': [ + include('_whitespace'), + (r';', Punctuation, '#pop'), + (r'\*', Punctuation), + (r'"', String.Double, 'plain-string'), + (_name, Name.Variable) + ], + # Array + 'many-values': [ + include('_whitespace'), + (r';', Punctuation), + (r'\]', Punctuation, '#pop'), + (r':', Error), + default(('expression', '_expression')) + ], + # Attribute, Property + 'alias?': [ + include('_whitespace'), + (r'alias\b', Keyword, ('#pop', '_constant')), + default('#pop') + ], + # Class, Object, Nearby + 'class-name': [ + include('_whitespace'), + (r'(?=[,;]|(class|has|private|with)\b)', Text, '#pop'), + (_name, Name.Class, '#pop') + ], + 'duplicates': [ + include('_whitespace'), + (r'\(', Punctuation, ('#pop', 'expression', '_expression')), + default('#pop') + ], + '_object-head': [ + (r'[%s]>' % _dash, Punctuation), + (r'(class|has|private|with)\b', Keyword.Declaration, '#pop'), + include('_global') + ], + 'object-body': [ + include('_whitespace'), + (r';', Punctuation, '#pop:2'), + (r',', Punctuation), + (r'class\b', Keyword.Declaration, 'class-segment'), + (r'(has|private|with)\b', Keyword.Declaration), + (r':', Error), + default(('_object-expression', '_expression')) + ], + 'class-segment': [ + include('_whitespace'), + (r'(?=[,;]|(class|has|private|with)\b)', Text, '#pop'), + (_name, Name.Class), + default('value') + ], + # Extend, Verb + 'grammar': [ + include('_whitespace'), + (r'=', Punctuation, ('#pop', 'default')), + (r'\*', Punctuation, ('#pop', 'grammar-line')), + default('_directive-keyword') + ], + 'grammar-line': [ + include('_whitespace'), + (r';', Punctuation, '#pop'), + (r'[/*]', Punctuation), + (r'[%s]>' % _dash, Punctuation, 'value'), + (r'(noun|scope)\b', Keyword, '=routine'), + default('_directive-keyword') + ], + '=routine': [ + include('_whitespace'), + (r'=', Punctuation, 'routine-name?'), + default('#pop') + ], + # Import + 'manifest': [ + include('_whitespace'), + (r';', Punctuation, '#pop'), + (r',', Punctuation), + (r'(?i)global\b', Keyword, '_global'), + default('_global') + ], + # Include, Link, Message + 'diagnostic': [ + include('_whitespace'), + (r'[%s]' % _dquote, String.Double, ('#pop', 'message-string')), + default(('#pop', 'before-plain-string?', 'directive-keyword?')) + ], + 'before-plain-string?': [ + include('_whitespace'), + (r'[%s]' % _dquote, String.Double, ('#pop', 'plain-string')), + default('#pop') + ], + 'message-string': [ + (r'[~^]+', String.Escape), + include('plain-string') + ], + + # Keywords used in directives + '_directive-keyword!': [ + include('_whitespace'), + (words(( + 'additive', 'alias', 'buffer', 'class', 'creature', 'data', 'error', 'fatalerror', + 'first', 'has', 'held', 'individual', 'initial', 'initstr', 'last', 'long', 'meta', + 'multi', 'multiexcept', 'multiheld', 'multiinside', 'noun', 'number', 'only', + 'private', 'replace', 'reverse', 'scope', 'score', 'special', 'string', 'table', + 'terminating', 'time', 'topic', 'warning', 'with'), suffix=r'\b'), + Keyword, '#pop'), + (r'static\b', Keyword), + (r'[%s]{1,2}>|[+=]' % _dash, Punctuation, '#pop') + ], + '_directive-keyword': [ + include('_directive-keyword!'), + include('value') + ], + 'directive-keyword?': [ + include('_directive-keyword!'), + default('#pop') + ], + 'property-keyword*': [ + include('_whitespace'), + (words(('additive', 'individual', 'long'), + suffix=r'\b(?=(\s*|(![^%s]*[%s]))*[_a-zA-Z])' % (_newline, _newline)), + Keyword), + default('#pop') + ], + 'trace-keyword?': [ + include('_whitespace'), + (words(( + 'assembly', 'dictionary', 'expressions', 'lines', 'linker', + 'objects', 'off', 'on', 'symbols', 'tokens', 'verbs'), suffix=r'\b'), + Keyword, '#pop'), + default('#pop') + ], + + # Statements + 'statements': [ + include('_whitespace'), + (r'\]', Punctuation, '#pop'), + (r'[;{}]', Punctuation), + (words(( + 'box', 'break', 'continue', 'default', 'give', 'inversion', + 'new_line', 'quit', 'read', 'remove', 'return', 'rfalse', 'rtrue', + 'spaces', 'string', 'until'), suffix=r'\b'), + Keyword, 'default'), + (r'(do|else)\b', Keyword), + (r'(font|style)\b', Keyword, + ('default', 'miscellaneous-keyword?')), + (r'for\b', Keyword, ('for', '(?')), + (r'(if|switch|while)', Keyword, + ('expression', '_expression', '(?')), + (r'(jump|save|restore)\b', Keyword, ('default', 'label?')), + (r'objectloop\b', Keyword, + ('_keyword-expression', 'variable?', '(?')), + (r'print(_ret)?\b|(?=[%s])' % _dquote, Keyword, 'print-list'), + (r'\.', Name.Label, 'label?'), + (r'@', Keyword, 'opcode'), + (r'#(?![agrnw]\$|#)', Punctuation, 'directive'), + (r'<', Punctuation, 'default'), + (r'move\b', Keyword, + ('default', '_keyword-expression', '_expression')), + default(('default', '_keyword-expression', '_expression')) + ], + 'miscellaneous-keyword?': [ + include('_whitespace'), + (r'(bold|fixed|from|near|off|on|reverse|roman|to|underline)\b', + Keyword, '#pop'), + (r'(a|A|an|address|char|name|number|object|property|string|the|' + r'The)\b(?=(\s+|(![^%s]*))*\))' % _newline, Keyword.Pseudo, + '#pop'), + (r'%s(?=(\s+|(![^%s]*))*\))' % (_name, _newline), Name.Function, + '#pop'), + default('#pop') + ], + '(?': [ + include('_whitespace'), + (r'\(', Punctuation, '#pop'), + default('#pop') + ], + 'for': [ + include('_whitespace'), + (r';', Punctuation, ('_for-expression', '_expression')), + default(('_for-expression', '_expression')) + ], + 'print-list': [ + include('_whitespace'), + (r';', Punctuation, '#pop'), + (r':', Error), + default(('_list-expression', '_expression', '_list-expression', 'form')) + ], + 'form': [ + include('_whitespace'), + (r'\(', Punctuation, ('#pop', 'miscellaneous-keyword?')), + default('#pop') + ], + + # Assembly + 'opcode': [ + include('_whitespace'), + (r'[%s]' % _dquote, String.Double, ('operands', 'plain-string')), + (_name, Keyword, 'operands') + ], + 'operands': [ + (r':', Error), + default(('_assembly-expression', '_expression')) + ] + } + + def get_tokens_unprocessed(self, text): + # 'in' is either a keyword or an operator. + # If the token two tokens after 'in' is ')', 'in' is a keyword: + # objectloop(a in b) + # Otherwise, it is an operator: + # objectloop(a in b && true) + objectloop_queue = [] + objectloop_token_count = -1 + previous_token = None + for index, token, value in RegexLexer.get_tokens_unprocessed(self, + text): + if previous_token is Name.Variable and value == 'in': + objectloop_queue = [[index, token, value]] + objectloop_token_count = 2 + elif objectloop_token_count > 0: + if token not in Comment and token not in Text: + objectloop_token_count -= 1 + objectloop_queue.append((index, token, value)) + else: + if objectloop_token_count == 0: + if objectloop_queue[-1][2] == ')': + objectloop_queue[0][1] = Keyword + while objectloop_queue: + yield objectloop_queue.pop(0) + objectloop_token_count = -1 + yield index, token, value + if token not in Comment and token not in Text: + previous_token = token + while objectloop_queue: + yield objectloop_queue.pop(0) + + def analyse_text(text): + """We try to find a keyword which seem relatively common, unfortunately + there is a decent overlap with Smalltalk keywords otherwise here..""" + result = 0 + if re.search('\borigsource\b', text, re.IGNORECASE): + result += 0.05 + + return result + + +class Inform7Lexer(RegexLexer): + """ + For Inform 7 source code. + + .. versionadded:: 2.0 + """ + + name = 'Inform 7' + url = 'http://inform7.com/' + aliases = ['inform7', 'i7'] + filenames = ['*.ni', '*.i7x'] + + flags = re.MULTILINE | re.DOTALL + + _dash = Inform6Lexer._dash + _dquote = Inform6Lexer._dquote + _newline = Inform6Lexer._newline + _start = r'\A|(?<=[%s])' % _newline + + # There are three variants of Inform 7, differing in how to + # interpret at signs and braces in I6T. In top-level inclusions, at + # signs in the first column are inweb syntax. In phrase definitions + # and use options, tokens in braces are treated as I7. Use options + # also interpret "{N}". + tokens = {} + token_variants = ['+i6t-not-inline', '+i6t-inline', '+i6t-use-option'] + + for level in token_variants: + tokens[level] = { + '+i6-root': list(Inform6Lexer.tokens['root']), + '+i6t-root': [ # For Inform6TemplateLexer + (r'[^%s]*' % Inform6Lexer._newline, Comment.Preproc, + ('directive', '+p')) + ], + 'root': [ + (r'(\|?\s)+', Text), + (r'\[', Comment.Multiline, '+comment'), + (r'[%s]' % _dquote, Generic.Heading, + ('+main', '+titling', '+titling-string')), + default(('+main', '+heading?')) + ], + '+titling-string': [ + (r'[^%s]+' % _dquote, Generic.Heading), + (r'[%s]' % _dquote, Generic.Heading, '#pop') + ], + '+titling': [ + (r'\[', Comment.Multiline, '+comment'), + (r'[^%s.;:|%s]+' % (_dquote, _newline), Generic.Heading), + (r'[%s]' % _dquote, Generic.Heading, '+titling-string'), + (r'[%s]{2}|(?<=[\s%s])\|[\s%s]' % (_newline, _dquote, _dquote), + Text, ('#pop', '+heading?')), + (r'[.;:]|(?<=[\s%s])\|' % _dquote, Text, '#pop'), + (r'[|%s]' % _newline, Generic.Heading) + ], + '+main': [ + (r'(?i)[^%s:a\[(|%s]+' % (_dquote, _newline), Text), + (r'[%s]' % _dquote, String.Double, '+text'), + (r':', Text, '+phrase-definition'), + (r'(?i)\bas\b', Text, '+use-option'), + (r'\[', Comment.Multiline, '+comment'), + (r'(\([%s])(.*?)([%s]\))' % (_dash, _dash), + bygroups(Punctuation, + using(this, state=('+i6-root', 'directive'), + i6t='+i6t-not-inline'), Punctuation)), + (r'(%s|(?<=[\s;:.%s]))\|\s|[%s]{2,}' % + (_start, _dquote, _newline), Text, '+heading?'), + (r'(?i)[a(|%s]' % _newline, Text) + ], + '+phrase-definition': [ + (r'\s+', Text), + (r'\[', Comment.Multiline, '+comment'), + (r'(\([%s])(.*?)([%s]\))' % (_dash, _dash), + bygroups(Punctuation, + using(this, state=('+i6-root', 'directive', + 'default', 'statements'), + i6t='+i6t-inline'), Punctuation), '#pop'), + default('#pop') + ], + '+use-option': [ + (r'\s+', Text), + (r'\[', Comment.Multiline, '+comment'), + (r'(\([%s])(.*?)([%s]\))' % (_dash, _dash), + bygroups(Punctuation, + using(this, state=('+i6-root', 'directive'), + i6t='+i6t-use-option'), Punctuation), '#pop'), + default('#pop') + ], + '+comment': [ + (r'[^\[\]]+', Comment.Multiline), + (r'\[', Comment.Multiline, '#push'), + (r'\]', Comment.Multiline, '#pop') + ], + '+text': [ + (r'[^\[%s]+' % _dquote, String.Double), + (r'\[.*?\]', String.Interpol), + (r'[%s]' % _dquote, String.Double, '#pop') + ], + '+heading?': [ + (r'(\|?\s)+', Text), + (r'\[', Comment.Multiline, '+comment'), + (r'[%s]{4}\s+' % _dash, Text, '+documentation-heading'), + (r'[%s]{1,3}' % _dash, Text), + (r'(?i)(volume|book|part|chapter|section)\b[^%s]*' % _newline, + Generic.Heading, '#pop'), + default('#pop') + ], + '+documentation-heading': [ + (r'\s+', Text), + (r'\[', Comment.Multiline, '+comment'), + (r'(?i)documentation\s+', Text, '+documentation-heading2'), + default('#pop') + ], + '+documentation-heading2': [ + (r'\s+', Text), + (r'\[', Comment.Multiline, '+comment'), + (r'[%s]{4}\s' % _dash, Text, '+documentation'), + default('#pop:2') + ], + '+documentation': [ + (r'(?i)(%s)\s*(chapter|example)\s*:[^%s]*' % + (_start, _newline), Generic.Heading), + (r'(?i)(%s)\s*section\s*:[^%s]*' % (_start, _newline), + Generic.Subheading), + (r'((%s)\t.*?[%s])+' % (_start, _newline), + using(this, state='+main')), + (r'[^%s\[]+|[%s\[]' % (_newline, _newline), Text), + (r'\[', Comment.Multiline, '+comment'), + ], + '+i6t-not-inline': [ + (r'(%s)@c( .*?)?([%s]|\Z)' % (_start, _newline), + Comment.Preproc), + (r'(%s)@([%s]+|Purpose:)[^%s]*' % (_start, _dash, _newline), + Comment.Preproc), + (r'(%s)@p( .*?)?([%s]|\Z)' % (_start, _newline), + Generic.Heading, '+p') + ], + '+i6t-use-option': [ + include('+i6t-not-inline'), + (r'(\{)(N)(\})', bygroups(Punctuation, Text, Punctuation)) + ], + '+i6t-inline': [ + (r'(\{)(\S[^}]*)?(\})', + bygroups(Punctuation, using(this, state='+main'), + Punctuation)) + ], + '+i6t': [ + (r'(\{[%s])(![^}]*)(\}?)' % _dash, + bygroups(Punctuation, Comment.Single, Punctuation)), + (r'(\{[%s])(lines)(:)([^}]*)(\}?)' % _dash, + bygroups(Punctuation, Keyword, Punctuation, Text, + Punctuation), '+lines'), + (r'(\{[%s])([^:}]*)(:?)([^}]*)(\}?)' % _dash, + bygroups(Punctuation, Keyword, Punctuation, Text, + Punctuation)), + (r'(\(\+)(.*?)(\+\)|\Z)', + bygroups(Punctuation, using(this, state='+main'), + Punctuation)) + ], + '+p': [ + (r'[^@]+', Comment.Preproc), + (r'(%s)@c( .*?)?([%s]|\Z)' % (_start, _newline), + Comment.Preproc, '#pop'), + (r'(%s)@([%s]|Purpose:)' % (_start, _dash), Comment.Preproc), + (r'(%s)@p( .*?)?([%s]|\Z)' % (_start, _newline), + Generic.Heading), + (r'@', Comment.Preproc) + ], + '+lines': [ + (r'(%s)@c( .*?)?([%s]|\Z)' % (_start, _newline), + Comment.Preproc), + (r'(%s)@([%s]|Purpose:)[^%s]*' % (_start, _dash, _newline), + Comment.Preproc), + (r'(%s)@p( .*?)?([%s]|\Z)' % (_start, _newline), + Generic.Heading, '+p'), + (r'(%s)@\w*[ %s]' % (_start, _newline), Keyword), + (r'![^%s]*' % _newline, Comment.Single), + (r'(\{)([%s]endlines)(\})' % _dash, + bygroups(Punctuation, Keyword, Punctuation), '#pop'), + (r'[^@!{]+?([%s]|\Z)|.' % _newline, Text) + ] + } + # Inform 7 can include snippets of Inform 6 template language, + # so all of Inform6Lexer's states are copied here, with + # modifications to account for template syntax. Inform7Lexer's + # own states begin with '+' to avoid name conflicts. Some of + # Inform6Lexer's states begin with '_': these are not modified. + # They deal with template syntax either by including modified + # states, or by matching r'' then pushing to modified states. + for token in Inform6Lexer.tokens: + if token == 'root': + continue + tokens[level][token] = list(Inform6Lexer.tokens[token]) + if not token.startswith('_'): + tokens[level][token][:0] = [include('+i6t'), include(level)] + + def __init__(self, **options): + level = options.get('i6t', '+i6t-not-inline') + if level not in self._all_tokens: + self._tokens = self.__class__.process_tokendef(level) + else: + self._tokens = self._all_tokens[level] + RegexLexer.__init__(self, **options) + + +class Inform6TemplateLexer(Inform7Lexer): + """ + For Inform 6 template code. + + .. versionadded:: 2.0 + """ + + name = 'Inform 6 template' + aliases = ['i6t'] + filenames = ['*.i6t'] + + def get_tokens_unprocessed(self, text, stack=('+i6t-root',)): + return Inform7Lexer.get_tokens_unprocessed(self, text, stack) + + +class Tads3Lexer(RegexLexer): + """ + For TADS 3 source code. + """ + + name = 'TADS 3' + aliases = ['tads3'] + filenames = ['*.t'] + + flags = re.DOTALL | re.MULTILINE + + _comment_single = r'(?://(?:[^\\\n]|\\+[\w\W])*$)' + _comment_multiline = r'(?:/\*(?:[^*]|\*(?!/))*\*/)' + _escape = (r'(?:\\(?:[\n\\<>"\'^v bnrt]|u[\da-fA-F]{,4}|x[\da-fA-F]{,2}|' + r'[0-3]?[0-7]{1,2}))') + _name = r'(?:[_a-zA-Z]\w*)' + _no_quote = r'(?=\s|\\?>)' + _operator = (r'(?:&&|\|\||\+\+|--|\?\?|::|[.,@\[\]~]|' + r'(?:[=+\-*/%!&|^]|<>?>?)=?)') + _ws = r'(?:\\|\s|%s|%s)' % (_comment_single, _comment_multiline) + _ws_pp = r'(?:\\\n|[^\S\n]|%s|%s)' % (_comment_single, _comment_multiline) + + def _make_string_state(triple, double, verbatim=None, _escape=_escape): + if verbatim: + verbatim = ''.join(['(?:%s|%s)' % (re.escape(c.lower()), + re.escape(c.upper())) + for c in verbatim]) + char = r'"' if double else r"'" + token = String.Double if double else String.Single + escaped_quotes = r'+|%s(?!%s{2})' % (char, char) if triple else r'' + prefix = '%s%s' % ('t' if triple else '', 'd' if double else 's') + tag_state_name = '%sqt' % prefix + state = [] + if triple: + state += [ + (r'%s{3,}' % char, token, '#pop'), + (r'\\%s+' % char, String.Escape), + (char, token) + ] + else: + state.append((char, token, '#pop')) + state += [ + include('s/verbatim'), + (r'[^\\<&{}%s]+' % char, token) + ] + if verbatim: + # This regex can't use `(?i)` because escape sequences are + # case-sensitive. `<\XMP>` works; `<\xmp>` doesn't. + state.append((r'\\?<(/|\\\\|(?!%s)\\)%s(?=[\s=>])' % + (_escape, verbatim), + Name.Tag, ('#pop', '%sqs' % prefix, tag_state_name))) + else: + state += [ + (r'\\?<\\%s]|<(?!<)|\\%s%s|%s|\\.)*>?' % + (char, char, escaped_quotes, _escape), Comment.Multiline), + (r'(?i)\\?]|\\>)', Name.Tag, + ('#pop', '%sqs/listing' % prefix, tag_state_name)), + (r'(?i)\\?]|\\>)', Name.Tag, + ('#pop', '%sqs/xmp' % prefix, tag_state_name)), + (r'\\?<([^\s=><\\%s]|<(?!<)|\\%s%s|%s|\\.)*' % + (char, char, escaped_quotes, _escape), Name.Tag, + tag_state_name), + include('s/entity') + ] + state += [ + include('s/escape'), + (r'\{([^}<\\%s]|<(?!<)|\\%s%s|%s|\\.)*\}' % + (char, char, escaped_quotes, _escape), String.Interpol), + (r'[\\&{}<]', token) + ] + return state + + def _make_tag_state(triple, double, _escape=_escape): + char = r'"' if double else r"'" + quantifier = r'{3,}' if triple else r'' + state_name = '%s%sqt' % ('t' if triple else '', 'd' if double else 's') + token = String.Double if double else String.Single + escaped_quotes = r'+|%s(?!%s{2})' % (char, char) if triple else r'' + return [ + (r'%s%s' % (char, quantifier), token, '#pop:2'), + (r'(\s|\\\n)+', Text), + (r'(=)(\\?")', bygroups(Punctuation, String.Double), + 'dqs/%s' % state_name), + (r"(=)(\\?')", bygroups(Punctuation, String.Single), + 'sqs/%s' % state_name), + (r'=', Punctuation, 'uqs/%s' % state_name), + (r'\\?>', Name.Tag, '#pop'), + (r'\{([^}<\\%s]|<(?!<)|\\%s%s|%s|\\.)*\}' % + (char, char, escaped_quotes, _escape), String.Interpol), + (r'([^\s=><\\%s]|<(?!<)|\\%s%s|%s|\\.)+' % + (char, char, escaped_quotes, _escape), Name.Attribute), + include('s/escape'), + include('s/verbatim'), + include('s/entity'), + (r'[\\{}&]', Name.Attribute) + ] + + def _make_attribute_value_state(terminator, host_triple, host_double, + _escape=_escape): + token = (String.Double if terminator == r'"' else + String.Single if terminator == r"'" else String.Other) + host_char = r'"' if host_double else r"'" + host_quantifier = r'{3,}' if host_triple else r'' + host_token = String.Double if host_double else String.Single + escaped_quotes = (r'+|%s(?!%s{2})' % (host_char, host_char) + if host_triple else r'') + return [ + (r'%s%s' % (host_char, host_quantifier), host_token, '#pop:3'), + (r'%s%s' % (r'' if token is String.Other else r'\\?', terminator), + token, '#pop'), + include('s/verbatim'), + include('s/entity'), + (r'\{([^}<\\%s]|<(?!<)|\\%s%s|%s|\\.)*\}' % + (host_char, host_char, escaped_quotes, _escape), String.Interpol), + (r'([^\s"\'<%s{}\\&])+' % (r'>' if token is String.Other else r''), + token), + include('s/escape'), + (r'["\'\s&{<}\\]', token) + ] + + tokens = { + 'root': [ + ('\ufeff', Text), + (r'\{', Punctuation, 'object-body'), + (r';+', Punctuation), + (r'(?=(argcount|break|case|catch|continue|default|definingobj|' + r'delegated|do|else|for|foreach|finally|goto|if|inherited|' + r'invokee|local|nil|new|operator|replaced|return|self|switch|' + r'targetobj|targetprop|throw|true|try|while)\b)', Text, 'block'), + (r'(%s)(%s*)(\()' % (_name, _ws), + bygroups(Name.Function, using(this, state='whitespace'), + Punctuation), + ('block?/root', 'more/parameters', 'main/parameters')), + include('whitespace'), + (r'\++', Punctuation), + (r'[^\s!"%-(*->@-_a-z{-~]+', Error), # Averts an infinite loop + (r'(?!\Z)', Text, 'main/root') + ], + 'main/root': [ + include('main/basic'), + default(('#pop', 'object-body/no-braces', 'classes', 'class')) + ], + 'object-body/no-braces': [ + (r';', Punctuation, '#pop'), + (r'\{', Punctuation, ('#pop', 'object-body')), + include('object-body') + ], + 'object-body': [ + (r';', Punctuation), + (r'\{', Punctuation, '#push'), + (r'\}', Punctuation, '#pop'), + (r':', Punctuation, ('classes', 'class')), + (r'(%s?)(%s*)(\()' % (_name, _ws), + bygroups(Name.Function, using(this, state='whitespace'), + Punctuation), + ('block?', 'more/parameters', 'main/parameters')), + (r'(%s)(%s*)(\{)' % (_name, _ws), + bygroups(Name.Function, using(this, state='whitespace'), + Punctuation), 'block'), + (r'(%s)(%s*)(:)' % (_name, _ws), + bygroups(Name.Variable, using(this, state='whitespace'), + Punctuation), + ('object-body/no-braces', 'classes', 'class')), + include('whitespace'), + (r'->|%s' % _operator, Punctuation, 'main'), + default('main/object-body') + ], + 'main/object-body': [ + include('main/basic'), + (r'(%s)(%s*)(=?)' % (_name, _ws), + bygroups(Name.Variable, using(this, state='whitespace'), + Punctuation), ('#pop', 'more', 'main')), + default('#pop:2') + ], + 'block?/root': [ + (r'\{', Punctuation, ('#pop', 'block')), + include('whitespace'), + (r'(?=[\[\'"<(:])', Text, # It might be a VerbRule macro. + ('#pop', 'object-body/no-braces', 'grammar', 'grammar-rules')), + # It might be a macro like DefineAction. + default(('#pop', 'object-body/no-braces')) + ], + 'block?': [ + (r'\{', Punctuation, ('#pop', 'block')), + include('whitespace'), + default('#pop') + ], + 'block/basic': [ + (r'[;:]+', Punctuation), + (r'\{', Punctuation, '#push'), + (r'\}', Punctuation, '#pop'), + (r'default\b', Keyword.Reserved), + (r'(%s)(%s*)(:)' % (_name, _ws), + bygroups(Name.Label, using(this, state='whitespace'), + Punctuation)), + include('whitespace') + ], + 'block': [ + include('block/basic'), + (r'(?!\Z)', Text, ('more', 'main')) + ], + 'block/embed': [ + (r'>>', String.Interpol, '#pop'), + include('block/basic'), + (r'(?!\Z)', Text, ('more/embed', 'main')) + ], + 'main/basic': [ + include('whitespace'), + (r'\(', Punctuation, ('#pop', 'more', 'main')), + (r'\[', Punctuation, ('#pop', 'more/list', 'main')), + (r'\{', Punctuation, ('#pop', 'more/inner', 'main/inner', + 'more/parameters', 'main/parameters')), + (r'\*|\.{3}', Punctuation, '#pop'), + (r'(?i)0x[\da-f]+', Number.Hex, '#pop'), + (r'(\d+\.(?!\.)\d*|\.\d+)([eE][-+]?\d+)?|\d+[eE][-+]?\d+', + Number.Float, '#pop'), + (r'0[0-7]+', Number.Oct, '#pop'), + (r'\d+', Number.Integer, '#pop'), + (r'"""', String.Double, ('#pop', 'tdqs')), + (r"'''", String.Single, ('#pop', 'tsqs')), + (r'"', String.Double, ('#pop', 'dqs')), + (r"'", String.Single, ('#pop', 'sqs')), + (r'R"""', String.Regex, ('#pop', 'tdqr')), + (r"R'''", String.Regex, ('#pop', 'tsqr')), + (r'R"', String.Regex, ('#pop', 'dqr')), + (r"R'", String.Regex, ('#pop', 'sqr')), + # Two-token keywords + (r'(extern)(%s+)(object\b)' % _ws, + bygroups(Keyword.Reserved, using(this, state='whitespace'), + Keyword.Reserved)), + (r'(function|method)(%s*)(\()' % _ws, + bygroups(Keyword.Reserved, using(this, state='whitespace'), + Punctuation), + ('#pop', 'block?', 'more/parameters', 'main/parameters')), + (r'(modify)(%s+)(grammar\b)' % _ws, + bygroups(Keyword.Reserved, using(this, state='whitespace'), + Keyword.Reserved), + ('#pop', 'object-body/no-braces', ':', 'grammar')), + (r'(new)(%s+(?=(?:function|method)\b))' % _ws, + bygroups(Keyword.Reserved, using(this, state='whitespace'))), + (r'(object)(%s+)(template\b)' % _ws, + bygroups(Keyword.Reserved, using(this, state='whitespace'), + Keyword.Reserved), ('#pop', 'template')), + (r'(string)(%s+)(template\b)' % _ws, + bygroups(Keyword, using(this, state='whitespace'), + Keyword.Reserved), ('#pop', 'function-name')), + # Keywords + (r'(argcount|definingobj|invokee|replaced|targetobj|targetprop)\b', + Name.Builtin, '#pop'), + (r'(break|continue|goto)\b', Keyword.Reserved, ('#pop', 'label')), + (r'(case|extern|if|intrinsic|return|static|while)\b', + Keyword.Reserved), + (r'catch\b', Keyword.Reserved, ('#pop', 'catch')), + (r'class\b', Keyword.Reserved, + ('#pop', 'object-body/no-braces', 'class')), + (r'(default|do|else|finally|try)\b', Keyword.Reserved, '#pop'), + (r'(dictionary|property)\b', Keyword.Reserved, + ('#pop', 'constants')), + (r'enum\b', Keyword.Reserved, ('#pop', 'enum')), + (r'export\b', Keyword.Reserved, ('#pop', 'main')), + (r'(for|foreach)\b', Keyword.Reserved, + ('#pop', 'more/inner', 'main/inner')), + (r'(function|method)\b', Keyword.Reserved, + ('#pop', 'block?', 'function-name')), + (r'grammar\b', Keyword.Reserved, + ('#pop', 'object-body/no-braces', 'grammar')), + (r'inherited\b', Keyword.Reserved, ('#pop', 'inherited')), + (r'local\b', Keyword.Reserved, + ('#pop', 'more/local', 'main/local')), + (r'(modify|replace|switch|throw|transient)\b', Keyword.Reserved, + '#pop'), + (r'new\b', Keyword.Reserved, ('#pop', 'class')), + (r'(nil|true)\b', Keyword.Constant, '#pop'), + (r'object\b', Keyword.Reserved, ('#pop', 'object-body/no-braces')), + (r'operator\b', Keyword.Reserved, ('#pop', 'operator')), + (r'propertyset\b', Keyword.Reserved, + ('#pop', 'propertyset', 'main')), + (r'self\b', Name.Builtin.Pseudo, '#pop'), + (r'template\b', Keyword.Reserved, ('#pop', 'template')), + # Operators + (r'(__objref|defined)(%s*)(\()' % _ws, + bygroups(Operator.Word, using(this, state='whitespace'), + Operator), ('#pop', 'more/__objref', 'main')), + (r'delegated\b', Operator.Word), + # Compiler-defined macros and built-in properties + (r'(__DATE__|__DEBUG|__LINE__|__FILE__|' + r'__TADS_MACRO_FORMAT_VERSION|__TADS_SYS_\w*|__TADS_SYSTEM_NAME|' + r'__TADS_VERSION_MAJOR|__TADS_VERSION_MINOR|__TADS3|__TIME__|' + r'construct|finalize|grammarInfo|grammarTag|lexicalParent|' + r'miscVocab|sourceTextGroup|sourceTextGroupName|' + r'sourceTextGroupOrder|sourceTextOrder)\b', Name.Builtin, '#pop') + ], + 'main': [ + include('main/basic'), + (_name, Name, '#pop'), + default('#pop') + ], + 'more/basic': [ + (r'\(', Punctuation, ('more/list', 'main')), + (r'\[', Punctuation, ('more', 'main')), + (r'\.{3}', Punctuation), + (r'->|\.\.', Punctuation, 'main'), + (r'(?=;)|[:)\]]', Punctuation, '#pop'), + include('whitespace'), + (_operator, Operator, 'main'), + (r'\?', Operator, ('main', 'more/conditional', 'main')), + (r'(is|not)(%s+)(in\b)' % _ws, + bygroups(Operator.Word, using(this, state='whitespace'), + Operator.Word)), + (r'[^\s!"%-_a-z{-~]+', Error) # Averts an infinite loop + ], + 'more': [ + include('more/basic'), + default('#pop') + ], + # Then expression (conditional operator) + 'more/conditional': [ + (r':(?!:)', Operator, '#pop'), + include('more') + ], + # Embedded expressions + 'more/embed': [ + (r'>>', String.Interpol, '#pop:2'), + include('more') + ], + # For/foreach loop initializer or short-form anonymous function + 'main/inner': [ + (r'\(', Punctuation, ('#pop', 'more/inner', 'main/inner')), + (r'local\b', Keyword.Reserved, ('#pop', 'main/local')), + include('main') + ], + 'more/inner': [ + (r'\}', Punctuation, '#pop'), + (r',', Punctuation, 'main/inner'), + (r'(in|step)\b', Keyword, 'main/inner'), + include('more') + ], + # Local + 'main/local': [ + (_name, Name.Variable, '#pop'), + include('whitespace') + ], + 'more/local': [ + (r',', Punctuation, 'main/local'), + include('more') + ], + # List + 'more/list': [ + (r'[,:]', Punctuation, 'main'), + include('more') + ], + # Parameter list + 'main/parameters': [ + (r'(%s)(%s*)(?=:)' % (_name, _ws), + bygroups(Name.Variable, using(this, state='whitespace')), '#pop'), + (r'(%s)(%s+)(%s)' % (_name, _ws, _name), + bygroups(Name.Class, using(this, state='whitespace'), + Name.Variable), '#pop'), + (r'\[+', Punctuation), + include('main/basic'), + (_name, Name.Variable, '#pop'), + default('#pop') + ], + 'more/parameters': [ + (r'(:)(%s*(?=[?=,:)]))' % _ws, + bygroups(Punctuation, using(this, state='whitespace'))), + (r'[?\]]+', Punctuation), + (r'[:)]', Punctuation, ('#pop', 'multimethod?')), + (r',', Punctuation, 'main/parameters'), + (r'=', Punctuation, ('more/parameter', 'main')), + include('more') + ], + 'more/parameter': [ + (r'(?=[,)])', Text, '#pop'), + include('more') + ], + 'multimethod?': [ + (r'multimethod\b', Keyword, '#pop'), + include('whitespace'), + default('#pop') + ], + + # Statements and expressions + 'more/__objref': [ + (r',', Punctuation, 'mode'), + (r'\)', Operator, '#pop'), + include('more') + ], + 'mode': [ + (r'(error|warn)\b', Keyword, '#pop'), + include('whitespace') + ], + 'catch': [ + (r'\(+', Punctuation), + (_name, Name.Exception, ('#pop', 'variables')), + include('whitespace') + ], + 'enum': [ + include('whitespace'), + (r'token\b', Keyword, ('#pop', 'constants')), + default(('#pop', 'constants')) + ], + 'grammar': [ + (r'\)+', Punctuation), + (r'\(', Punctuation, 'grammar-tag'), + (r':', Punctuation, 'grammar-rules'), + (_name, Name.Class), + include('whitespace') + ], + 'grammar-tag': [ + include('whitespace'), + (r'"""([^\\"<]|""?(?!")|\\"+|\\.|<(?!<))+("{3,}|<<)|' + r'R"""([^\\"]|""?(?!")|\\"+|\\.)+"{3,}|' + r"'''([^\\'<]|''?(?!')|\\'+|\\.|<(?!<))+('{3,}|<<)|" + r"R'''([^\\']|''?(?!')|\\'+|\\.)+'{3,}|" + r'"([^\\"<]|\\.|<(?!<))+("|<<)|R"([^\\"]|\\.)+"|' + r"'([^\\'<]|\\.|<(?!<))+('|<<)|R'([^\\']|\\.)+'|" + r"([^)\s\\/]|/(?![/*]))+|\)", String.Other, '#pop') + ], + 'grammar-rules': [ + include('string'), + include('whitespace'), + (r'(\[)(%s*)(badness)' % _ws, + bygroups(Punctuation, using(this, state='whitespace'), Keyword), + 'main'), + (r'->|%s|[()]' % _operator, Punctuation), + (_name, Name.Constant), + default('#pop:2') + ], + ':': [ + (r':', Punctuation, '#pop') + ], + 'function-name': [ + (r'(<<([^>]|>>>|>(?!>))*>>)+', String.Interpol), + (r'(?=%s?%s*[({])' % (_name, _ws), Text, '#pop'), + (_name, Name.Function, '#pop'), + include('whitespace') + ], + 'inherited': [ + (r'<', Punctuation, ('#pop', 'classes', 'class')), + include('whitespace'), + (_name, Name.Class, '#pop'), + default('#pop') + ], + 'operator': [ + (r'negate\b', Operator.Word, '#pop'), + include('whitespace'), + (_operator, Operator), + default('#pop') + ], + 'propertyset': [ + (r'\(', Punctuation, ('more/parameters', 'main/parameters')), + (r'\{', Punctuation, ('#pop', 'object-body')), + include('whitespace') + ], + 'template': [ + (r'(?=;)', Text, '#pop'), + include('string'), + (r'inherited\b', Keyword.Reserved), + include('whitespace'), + (r'->|\?|%s' % _operator, Punctuation), + (_name, Name.Variable) + ], + + # Identifiers + 'class': [ + (r'\*|\.{3}', Punctuation, '#pop'), + (r'object\b', Keyword.Reserved, '#pop'), + (r'transient\b', Keyword.Reserved), + (_name, Name.Class, '#pop'), + include('whitespace'), + default('#pop') + ], + 'classes': [ + (r'[:,]', Punctuation, 'class'), + include('whitespace'), + (r'>', Punctuation, '#pop'), + default('#pop') + ], + 'constants': [ + (r',+', Punctuation), + (r';', Punctuation, '#pop'), + (r'property\b', Keyword.Reserved), + (_name, Name.Constant), + include('whitespace') + ], + 'label': [ + (_name, Name.Label, '#pop'), + include('whitespace'), + default('#pop') + ], + 'variables': [ + (r',+', Punctuation), + (r'\)', Punctuation, '#pop'), + include('whitespace'), + (_name, Name.Variable) + ], + + # Whitespace and comments + 'whitespace': [ + (r'^%s*#(%s|[^\n]|(?<=\\)\n)*\n?' % (_ws_pp, _comment_multiline), + Comment.Preproc), + (_comment_single, Comment.Single), + (_comment_multiline, Comment.Multiline), + (r'\\+\n+%s*#?|\n+|([^\S\n]|\\)+' % _ws_pp, Text) + ], + + # Strings + 'string': [ + (r'"""', String.Double, 'tdqs'), + (r"'''", String.Single, 'tsqs'), + (r'"', String.Double, 'dqs'), + (r"'", String.Single, 'sqs') + ], + 's/escape': [ + (r'\{\{|\}\}|%s' % _escape, String.Escape) + ], + 's/verbatim': [ + (r'<<\s*(as\s+decreasingly\s+likely\s+outcomes|cycling|else|end|' + r'first\s+time|one\s+of|only|or|otherwise|' + r'(sticky|(then\s+)?(purely\s+)?at)\s+random|stopping|' + r'(then\s+)?(half\s+)?shuffled|\|\|)\s*>>', String.Interpol), + (r'<<(%%(_(%s|\\?.)|[\-+ ,#]|\[\d*\]?)*\d*\.?\d*(%s|\\?.)|' + r'\s*((else|otherwise)\s+)?(if|unless)\b)?' % (_escape, _escape), + String.Interpol, ('block/embed', 'more/embed', 'main')) + ], + 's/entity': [ + (r'(?i)&(#(x[\da-f]+|\d+)|[a-z][\da-z]*);?', Name.Entity) + ], + 'tdqs': _make_string_state(True, True), + 'tsqs': _make_string_state(True, False), + 'dqs': _make_string_state(False, True), + 'sqs': _make_string_state(False, False), + 'tdqs/listing': _make_string_state(True, True, 'listing'), + 'tsqs/listing': _make_string_state(True, False, 'listing'), + 'dqs/listing': _make_string_state(False, True, 'listing'), + 'sqs/listing': _make_string_state(False, False, 'listing'), + 'tdqs/xmp': _make_string_state(True, True, 'xmp'), + 'tsqs/xmp': _make_string_state(True, False, 'xmp'), + 'dqs/xmp': _make_string_state(False, True, 'xmp'), + 'sqs/xmp': _make_string_state(False, False, 'xmp'), + + # Tags + 'tdqt': _make_tag_state(True, True), + 'tsqt': _make_tag_state(True, False), + 'dqt': _make_tag_state(False, True), + 'sqt': _make_tag_state(False, False), + 'dqs/tdqt': _make_attribute_value_state(r'"', True, True), + 'dqs/tsqt': _make_attribute_value_state(r'"', True, False), + 'dqs/dqt': _make_attribute_value_state(r'"', False, True), + 'dqs/sqt': _make_attribute_value_state(r'"', False, False), + 'sqs/tdqt': _make_attribute_value_state(r"'", True, True), + 'sqs/tsqt': _make_attribute_value_state(r"'", True, False), + 'sqs/dqt': _make_attribute_value_state(r"'", False, True), + 'sqs/sqt': _make_attribute_value_state(r"'", False, False), + 'uqs/tdqt': _make_attribute_value_state(_no_quote, True, True), + 'uqs/tsqt': _make_attribute_value_state(_no_quote, True, False), + 'uqs/dqt': _make_attribute_value_state(_no_quote, False, True), + 'uqs/sqt': _make_attribute_value_state(_no_quote, False, False), + + # Regular expressions + 'tdqr': [ + (r'[^\\"]+', String.Regex), + (r'\\"*', String.Regex), + (r'"{3,}', String.Regex, '#pop'), + (r'"', String.Regex) + ], + 'tsqr': [ + (r"[^\\']+", String.Regex), + (r"\\'*", String.Regex), + (r"'{3,}", String.Regex, '#pop'), + (r"'", String.Regex) + ], + 'dqr': [ + (r'[^\\"]+', String.Regex), + (r'\\"?', String.Regex), + (r'"', String.Regex, '#pop') + ], + 'sqr': [ + (r"[^\\']+", String.Regex), + (r"\\'?", String.Regex), + (r"'", String.Regex, '#pop') + ] + } + + def get_tokens_unprocessed(self, text, **kwargs): + pp = r'^%s*#%s*' % (self._ws_pp, self._ws_pp) + if_false_level = 0 + for index, token, value in ( + RegexLexer.get_tokens_unprocessed(self, text, **kwargs)): + if if_false_level == 0: # Not in a false #if + if (token is Comment.Preproc and + re.match(r'%sif%s+(0|nil)%s*$\n?' % + (pp, self._ws_pp, self._ws_pp), value)): + if_false_level = 1 + else: # In a false #if + if token is Comment.Preproc: + if (if_false_level == 1 and + re.match(r'%sel(if|se)\b' % pp, value)): + if_false_level = 0 + elif re.match(r'%sif' % pp, value): + if_false_level += 1 + elif re.match(r'%sendif\b' % pp, value): + if_false_level -= 1 + else: + token = Comment + yield index, token, value + + def analyse_text(text): + """This is a rather generic descriptive language without strong + identifiers. It looks like a 'GameMainDef' has to be present, + and/or a 'versionInfo' with an 'IFID' field.""" + result = 0 + if '__TADS' in text or 'GameMainDef' in text: + result += 0.2 + + # This is a fairly unique keyword which is likely used in source as well + if 'versionInfo' in text and 'IFID' in text: + result += 0.1 + + return result diff --git a/shared/package-files/0a/0a41d3ced1aca612aa9cac537559c4b1fec8a0b8fca7e787d79475a6e1232527/_tool.py b/shared/package-files/0a/0a41d3ced1aca612aa9cac537559c4b1fec8a0b8fca7e787d79475a6e1232527/_tool.py new file mode 100644 index 0000000000000000000000000000000000000000..a6cfa87b05d7599cdc4cefe203180b38dc39c1dc --- /dev/null +++ b/shared/package-files/0a/0a41d3ced1aca612aa9cac537559c4b1fec8a0b8fca7e787d79475a6e1232527/_tool.py @@ -0,0 +1,27 @@ +# DO NOT EDIT! This file was generated by jschema_to_python version 0.0.1.dev29, +# with extension for dataclasses and type annotation. + +from __future__ import annotations + +import dataclasses +from typing import List, Optional + +from torch.onnx._internal.diagnostics.infra.sarif import _property_bag, _tool_component + + +@dataclasses.dataclass +class Tool(object): + """The analysis tool that was run.""" + + driver: _tool_component.ToolComponent = dataclasses.field( + metadata={"schema_property_name": "driver"} + ) + extensions: Optional[List[_tool_component.ToolComponent]] = dataclasses.field( + default=None, metadata={"schema_property_name": "extensions"} + ) + properties: Optional[_property_bag.PropertyBag] = dataclasses.field( + default=None, metadata={"schema_property_name": "properties"} + ) + + +# flake8: noqa diff --git a/shared/package-files/0a/0a4579e5a3d1ac162ce0faefc07322a026fd12eecf9f81925ff5adc53521de84/sparse_csr_tensor_ops.h b/shared/package-files/0a/0a4579e5a3d1ac162ce0faefc07322a026fd12eecf9f81925ff5adc53521de84/sparse_csr_tensor_ops.h new file mode 100644 index 0000000000000000000000000000000000000000..ed49ee21de79adccfebddb871b4f60b32c63397c --- /dev/null +++ b/shared/package-files/0a/0a4579e5a3d1ac162ce0faefc07322a026fd12eecf9f81925ff5adc53521de84/sparse_csr_tensor_ops.h @@ -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 sparse_csr_tensor_crow_col_value_size { + using schema = at::Tensor (const at::Tensor &, const at::Tensor &, const at::Tensor &, 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::sparse_csr_tensor") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "crow_col_value_size") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "sparse_csr_tensor.crow_col_value_size(Tensor crow_indices, Tensor col_indices, Tensor values, int[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=False) -> Tensor") + static at::Tensor call(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); + static at::Tensor redispatch(c10::DispatchKeySet dispatchKeySet, 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); +}; + +struct TORCH_API sparse_csr_tensor_crow_col_value { + using schema = at::Tensor (const at::Tensor &, const at::Tensor &, const at::Tensor &, 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::sparse_csr_tensor") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "crow_col_value") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "sparse_csr_tensor.crow_col_value(Tensor crow_indices, Tensor col_indices, Tensor values, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=False) -> Tensor") + static at::Tensor call(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); + static at::Tensor redispatch(c10::DispatchKeySet dispatchKeySet, 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 at::_ops diff --git a/shared/package-files/0a/0a48a9687c873f702c93e4085818c264ca48f3716962041015f695ff032ab2b5/context.py b/shared/package-files/0a/0a48a9687c873f702c93e4085818c264ca48f3716962041015f695ff032ab2b5/context.py new file mode 100644 index 0000000000000000000000000000000000000000..22370850df86a3a48e79915e199e9c008ceb5a93 --- /dev/null +++ b/shared/package-files/0a/0a48a9687c873f702c93e4085818c264ca48f3716962041015f695ff032ab2b5/context.py @@ -0,0 +1,415 @@ +"""A diagnostic context based on SARIF.""" + +from __future__ import annotations + +import contextlib + +import dataclasses +import gzip + +import logging + +from typing import ( + Callable, + Generator, + Generic, + List, + Literal, + Mapping, + Optional, + Type, + TypeVar, +) + +from torch.onnx._internal.diagnostics import infra +from torch.onnx._internal.diagnostics.infra import formatter, sarif, utils +from torch.onnx._internal.diagnostics.infra.sarif import version as sarif_version + + +# This is a workaround for mypy not supporting Self from typing_extensions. +_Diagnostic = TypeVar("_Diagnostic", bound="Diagnostic") +diagnostic_logger: logging.Logger = logging.getLogger(__name__) + + +@dataclasses.dataclass +class Diagnostic: + rule: infra.Rule + level: infra.Level + message: Optional[str] = None + locations: List[infra.Location] = dataclasses.field(default_factory=list) + stacks: List[infra.Stack] = dataclasses.field(default_factory=list) + graphs: List[infra.Graph] = dataclasses.field(default_factory=list) + thread_flow_locations: List[infra.ThreadFlowLocation] = dataclasses.field( + default_factory=list + ) + additional_messages: List[str] = dataclasses.field(default_factory=list) + tags: List[infra.Tag] = dataclasses.field(default_factory=list) + source_exception: Optional[Exception] = None + """The exception that caused this diagnostic to be created.""" + logger: logging.Logger = dataclasses.field(init=False, default=diagnostic_logger) + """The logger for this diagnostic. Defaults to 'diagnostic_logger' which has the same + log level setting with `DiagnosticOptions.verbosity_level`.""" + _current_log_section_depth: int = 0 + + def __post_init__(self) -> None: + pass + + def sarif(self) -> sarif.Result: + """Returns the SARIF Result representation of this diagnostic.""" + message = self.message or self.rule.message_default_template + if self.additional_messages: + additional_message = "\n".join(self.additional_messages) + message_markdown = ( + f"{message}\n\n## Additional Message:\n\n{additional_message}" + ) + else: + message_markdown = message + + kind: Literal["informational", "fail"] = ( + "informational" if self.level == infra.Level.NONE else "fail" + ) + + sarif_result = sarif.Result( + message=sarif.Message(text=message, markdown=message_markdown), + level=self.level.name.lower(), # type: ignore[arg-type] + rule_id=self.rule.id, + kind=kind, + ) + sarif_result.locations = [location.sarif() for location in self.locations] + sarif_result.stacks = [stack.sarif() for stack in self.stacks] + sarif_result.graphs = [graph.sarif() for graph in self.graphs] + sarif_result.code_flows = [ + sarif.CodeFlow( + thread_flows=[ + sarif.ThreadFlow( + locations=[loc.sarif() for loc in self.thread_flow_locations] + ) + ] + ) + ] + sarif_result.properties = sarif.PropertyBag( + tags=[tag.value for tag in self.tags] + ) + return sarif_result + + def with_location(self: _Diagnostic, location: infra.Location) -> _Diagnostic: + """Adds a location to the diagnostic.""" + self.locations.append(location) + return self + + def with_thread_flow_location( + self: _Diagnostic, location: infra.ThreadFlowLocation + ) -> _Diagnostic: + """Adds a thread flow location to the diagnostic.""" + self.thread_flow_locations.append(location) + return self + + def with_stack(self: _Diagnostic, stack: infra.Stack) -> _Diagnostic: + """Adds a stack to the diagnostic.""" + self.stacks.append(stack) + return self + + def with_graph(self: _Diagnostic, graph: infra.Graph) -> _Diagnostic: + """Adds a graph to the diagnostic.""" + self.graphs.append(graph) + return self + + @contextlib.contextmanager + def log_section( + self, level: int, message: str, *args, **kwargs + ) -> Generator[None, None, None]: + """ + Context manager for a section of log messages, denoted by a title message and increased indentation. + + Same api as `logging.Logger.log`. + + This context manager logs the given title at the specified log level, increases the current + section depth for subsequent log messages, and ensures that the section depth is decreased + again when exiting the context. + + Args: + level: The log level. + message: The title message to log. + *args: The arguments to the message. Use `LazyString` to defer the + expensive evaluation of the arguments until the message is actually logged. + **kwargs: The keyword arguments for `logging.Logger.log`. + + Yields: + None: This context manager does not yield any value. + + Example: + >>> with DiagnosticContext("DummyContext", "1.0"): + ... rule = infra.Rule("RuleID", "DummyRule", "Rule message") + ... diagnostic = Diagnostic(rule, infra.Level.WARNING) + ... with diagnostic.log_section(logging.INFO, "My Section"): + ... diagnostic.log(logging.INFO, "My Message") + ... with diagnostic.log_section(logging.INFO, "My Subsection"): + ... diagnostic.log(logging.INFO, "My Submessage") + ... diagnostic.additional_messages + ['## My Section', 'My Message', '### My Subsection', 'My Submessage'] + """ + if self.logger.isEnabledFor(level): + indented_format_message = ( + f"##{'#' * self._current_log_section_depth } {message}" + ) + self.log( + level, + indented_format_message, + *args, + **kwargs, + ) + self._current_log_section_depth += 1 + try: + yield + finally: + self._current_log_section_depth -= 1 + + def log(self, level: int, message: str, *args, **kwargs) -> None: + """Logs a message within the diagnostic. Same api as `logging.Logger.log`. + + If logger is not enabled for the given level, the message will not be logged. + Otherwise, the message will be logged and also added to the diagnostic's additional_messages. + + The default setting for `DiagnosticOptions.verbosity_level` is `logging.INFO`. Based on this default, + the log level recommendations are as follows. If you've set a different default verbosity level in your + application, please adjust accordingly: + + - logging.ERROR: Log any events leading to application failure. + - logging.WARNING: Log events that might result in application issues or failures, although not guaranteed. + - logging.INFO: Log general useful information, ensuring minimal performance overhead. + - logging.DEBUG: Log detailed debug information, which might affect performance when logged. + + Args: + level: The log level. + message: The message to log. + *args: The arguments to the message. Use `LazyString` to defer the + expensive evaluation of the arguments until the message is actually logged. + **kwargs: The keyword arguments for `logging.Logger.log`. + """ + if self.logger.isEnabledFor(level): + formatted_message = message % args + self.logger.log(level, formatted_message, **kwargs) + self.additional_messages.append(formatted_message) + + def debug(self, message: str, *args, **kwargs) -> None: + """Logs a debug message within the diagnostic. Same api as logging.Logger.debug. + + Checkout `log` for more details. + """ + self.log(logging.DEBUG, message, *args, **kwargs) + + def info(self, message: str, *args, **kwargs) -> None: + """Logs an info message within the diagnostic. Same api as logging.Logger.info. + + Checkout `log` for more details. + """ + self.log(logging.INFO, message, *args, **kwargs) + + def warning(self, message: str, *args, **kwargs) -> None: + """Logs a warning message within the diagnostic. Same api as logging.Logger.warning. + + Checkout `log` for more details. + """ + self.log(logging.WARNING, message, *args, **kwargs) + + def error(self, message: str, *args, **kwargs) -> None: + """Logs an error message within the diagnostic. Same api as logging.Logger.error. + + Checkout `log` for more details. + """ + self.log(logging.ERROR, message, *args, **kwargs) + + def log_source_exception(self, level: int, exception: Exception) -> None: + """Logs a source exception within the diagnostic. + + Invokes `log_section` and `log` to log the exception in markdown section format. + """ + self.source_exception = exception + with self.log_section(level, "Exception log"): + self.log(level, "%s", formatter.lazy_format_exception(exception)) + + def record_python_call_stack(self, frames_to_skip: int) -> infra.Stack: + """Records the current Python call stack.""" + frames_to_skip += 1 # Skip this function. + stack = utils.python_call_stack(frames_to_skip=frames_to_skip) + self.with_stack(stack) + if len(stack.frames) > 0: + self.with_location(stack.frames[0].location) + return stack + + def record_python_call( + self, + fn: Callable, + state: Mapping[str, str], + message: Optional[str] = None, + frames_to_skip: int = 0, + ) -> infra.ThreadFlowLocation: + """Records a python call as one thread flow step.""" + frames_to_skip += 1 # Skip this function. + stack = utils.python_call_stack(frames_to_skip=frames_to_skip, frames_to_log=5) + location = utils.function_location(fn) + location.message = message + # Add function location to the top of the stack. + stack.frames.insert(0, infra.StackFrame(location=location)) + thread_flow_location = infra.ThreadFlowLocation( + location=location, + state=state, + index=len(self.thread_flow_locations), + stack=stack, + ) + self.with_thread_flow_location(thread_flow_location) + return thread_flow_location + + +class RuntimeErrorWithDiagnostic(RuntimeError): + """Runtime error with enclosed diagnostic information.""" + + def __init__(self, diagnostic: Diagnostic): + super().__init__(diagnostic.message) + self.diagnostic = diagnostic + + +@dataclasses.dataclass +class DiagnosticContext(Generic[_Diagnostic]): + name: str + version: str + options: infra.DiagnosticOptions = dataclasses.field( + default_factory=infra.DiagnosticOptions + ) + diagnostics: List[_Diagnostic] = dataclasses.field(init=False, default_factory=list) + # TODO(bowbao): Implement this. + # _invocation: infra.Invocation = dataclasses.field(init=False) + _inflight_diagnostics: List[_Diagnostic] = dataclasses.field( + init=False, default_factory=list + ) + _previous_log_level: int = dataclasses.field(init=False, default=logging.WARNING) + logger: logging.Logger = dataclasses.field(init=False, default=diagnostic_logger) + _bound_diagnostic_type: Type = dataclasses.field(init=False, default=Diagnostic) + + def __enter__(self): + self._previous_log_level = self.logger.level + self.logger.setLevel(self.options.verbosity_level) + return self + + def __exit__(self, exc_type, exc_val, exc_tb): + self.logger.setLevel(self._previous_log_level) + return None + + def sarif(self) -> sarif.Run: + """Returns the SARIF Run object.""" + unique_rules = {diagnostic.rule for diagnostic in self.diagnostics} + return sarif.Run( + sarif.Tool( + driver=sarif.ToolComponent( + name=self.name, + version=self.version, + rules=[rule.sarif() for rule in unique_rules], + ) + ), + results=[diagnostic.sarif() for diagnostic in self.diagnostics], + ) + + def sarif_log(self) -> sarif.SarifLog: # type: ignore[name-defined] + """Returns the SARIF Log object.""" + return sarif.SarifLog( + version=sarif_version.SARIF_VERSION, + schema_uri=sarif_version.SARIF_SCHEMA_LINK, + runs=[self.sarif()], + ) + + def to_json(self) -> str: + return formatter.sarif_to_json(self.sarif_log()) + + def dump(self, file_path: str, compress: bool = False) -> None: + """Dumps the SARIF log to a file.""" + if compress: + with gzip.open(file_path, "wt") as f: + f.write(self.to_json()) + else: + with open(file_path, "w") as f: + f.write(self.to_json()) + + def log(self, diagnostic: _Diagnostic) -> None: + """Logs a diagnostic. + + This method should be used only after all the necessary information for the diagnostic + has been collected. + + Args: + diagnostic: The diagnostic to add. + """ + if not isinstance(diagnostic, self._bound_diagnostic_type): + raise TypeError( + f"Expected diagnostic of type {self._bound_diagnostic_type}, got {type(diagnostic)}" + ) + if self.options.warnings_as_errors and diagnostic.level == infra.Level.WARNING: + diagnostic.level = infra.Level.ERROR + self.diagnostics.append(diagnostic) + + def log_and_raise_if_error(self, diagnostic: _Diagnostic) -> None: + """Logs a diagnostic and raises an exception if it is an error. + + Use this method for logging non inflight diagnostics where diagnostic level is not known or + lower than ERROR. If it is always expected raise, use `log` and explicit + `raise` instead. Otherwise there is no way to convey the message that it always + raises to Python intellisense and type checking tools. + + This method should be used only after all the necessary information for the diagnostic + has been collected. + + Args: + diagnostic: The diagnostic to add. + """ + self.log(diagnostic) + if diagnostic.level == infra.Level.ERROR: + if diagnostic.source_exception is not None: + raise diagnostic.source_exception + raise RuntimeErrorWithDiagnostic(diagnostic) + + @contextlib.contextmanager + def add_inflight_diagnostic( + self, diagnostic: _Diagnostic + ) -> Generator[_Diagnostic, None, None]: + """Adds a diagnostic to the context. + + Use this method to add diagnostics that are not created by the context. + Args: + diagnostic: The diagnostic to add. + """ + self._inflight_diagnostics.append(diagnostic) + try: + yield diagnostic + finally: + self._inflight_diagnostics.pop() + + def push_inflight_diagnostic(self, diagnostic: _Diagnostic) -> None: + """Pushes a diagnostic to the inflight diagnostics stack. + + Args: + diagnostic: The diagnostic to push. + + Raises: + ValueError: If the rule is not supported by the tool. + """ + self._inflight_diagnostics.append(diagnostic) + + def pop_inflight_diagnostic(self) -> _Diagnostic: + """Pops the last diagnostic from the inflight diagnostics stack. + + Returns: + The popped diagnostic. + """ + return self._inflight_diagnostics.pop() + + def inflight_diagnostic(self, rule: Optional[infra.Rule] = None) -> _Diagnostic: + if rule is None: + # TODO(bowbao): Create builtin-rules and create diagnostic using that. + if len(self._inflight_diagnostics) <= 0: + raise AssertionError("No inflight diagnostics") + + return self._inflight_diagnostics[-1] + else: + for diagnostic in reversed(self._inflight_diagnostics): + if diagnostic.rule == rule: + return diagnostic + raise AssertionError(f"No inflight diagnostic for rule {rule.name}") diff --git a/shared/package-files/0a/0a49615822a4a66f50711d883ba257bcc8483b5d9406e009d9e8cda272b20087/one_hot_native.h b/shared/package-files/0a/0a49615822a4a66f50711d883ba257bcc8483b5d9406e009d9e8cda272b20087/one_hot_native.h new file mode 100644 index 0000000000000000000000000000000000000000..f26843c9183189eb2966f6722df11fa8b0c34617 --- /dev/null +++ b/shared/package-files/0a/0a49615822a4a66f50711d883ba257bcc8483b5d9406e009d9e8cda272b20087/one_hot_native.h @@ -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 one_hot(const at::Tensor & self, int64_t num_classes=-1); +} // namespace native +} // namespace at diff --git a/shared/package-files/0a/0a51ad5bd40f5439dc8c91837a1e7789889edba347d86e1be3dcbaec48c59d65/test_linux.py b/shared/package-files/0a/0a51ad5bd40f5439dc8c91837a1e7789889edba347d86e1be3dcbaec48c59d65/test_linux.py new file mode 100644 index 0000000000000000000000000000000000000000..20e28d2991f0723038aeb31fb505aa6e35fb2146 --- /dev/null +++ b/shared/package-files/0a/0a51ad5bd40f5439dc8c91837a1e7789889edba347d86e1be3dcbaec48c59d65/test_linux.py @@ -0,0 +1,2265 @@ +#!/usr/bin/env python3 + +# Copyright (c) 2009, Giampaolo Rodola'. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +"""Linux specific tests.""" + +from __future__ import division + +import collections +import contextlib +import errno +import glob +import io +import os +import re +import shutil +import socket +import struct +import textwrap +import time +import warnings + +import psutil +from psutil import LINUX +from psutil._compat import PY3 +from psutil._compat import FileNotFoundError +from psutil._compat import basestring +from psutil._compat import u +from psutil.tests import GITHUB_ACTIONS +from psutil.tests import GLOBAL_TIMEOUT +from psutil.tests import HAS_BATTERY +from psutil.tests import HAS_CPU_FREQ +from psutil.tests import HAS_GETLOADAVG +from psutil.tests import HAS_RLIMIT +from psutil.tests import PYPY +from psutil.tests import TOLERANCE_DISK_USAGE +from psutil.tests import TOLERANCE_SYS_MEM +from psutil.tests import PsutilTestCase +from psutil.tests import ThreadTask +from psutil.tests import call_until +from psutil.tests import mock +from psutil.tests import reload_module +from psutil.tests import retry_on_failure +from psutil.tests import safe_rmpath +from psutil.tests import sh +from psutil.tests import skip_on_not_implemented +from psutil.tests import unittest +from psutil.tests import which + + +if LINUX: + from psutil._pslinux import CLOCK_TICKS + from psutil._pslinux import RootFsDeviceFinder + from psutil._pslinux import calculate_avail_vmem + from psutil._pslinux import open_binary + + +HERE = os.path.abspath(os.path.dirname(__file__)) +SIOCGIFADDR = 0x8915 +SIOCGIFCONF = 0x8912 +SIOCGIFHWADDR = 0x8927 +SIOCGIFNETMASK = 0x891b +SIOCGIFBRDADDR = 0x8919 +if LINUX: + SECTOR_SIZE = 512 +EMPTY_TEMPERATURES = not glob.glob('/sys/class/hwmon/hwmon*') + + +# ===================================================================== +# --- utils +# ===================================================================== + + +def get_ipv4_address(ifname): + import fcntl + ifname = ifname[:15] + if PY3: + ifname = bytes(ifname, 'ascii') + s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) + with contextlib.closing(s): + return socket.inet_ntoa( + fcntl.ioctl(s.fileno(), + SIOCGIFADDR, + struct.pack('256s', ifname))[20:24]) + + +def get_ipv4_netmask(ifname): + import fcntl + ifname = ifname[:15] + if PY3: + ifname = bytes(ifname, 'ascii') + s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) + with contextlib.closing(s): + return socket.inet_ntoa( + fcntl.ioctl(s.fileno(), + SIOCGIFNETMASK, + struct.pack('256s', ifname))[20:24]) + + +def get_ipv4_broadcast(ifname): + import fcntl + ifname = ifname[:15] + if PY3: + ifname = bytes(ifname, 'ascii') + s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) + with contextlib.closing(s): + return socket.inet_ntoa( + fcntl.ioctl(s.fileno(), + SIOCGIFBRDADDR, + struct.pack('256s', ifname))[20:24]) + + +def get_ipv6_address(ifname): + with open("/proc/net/if_inet6", 'rt') as f: + for line in f.readlines(): + fields = line.split() + if fields[-1] == ifname: + break + else: + raise ValueError("could not find interface %r" % ifname) + unformatted = fields[0] + groups = [] + for i in range(0, len(unformatted), 4): + groups.append(unformatted[i:i + 4]) + formatted = ":".join(groups) + packed = socket.inet_pton(socket.AF_INET6, formatted) + return socket.inet_ntop(socket.AF_INET6, packed) + + +def get_mac_address(ifname): + import fcntl + ifname = ifname[:15] + if PY3: + ifname = bytes(ifname, 'ascii') + s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) + with contextlib.closing(s): + info = fcntl.ioctl( + s.fileno(), SIOCGIFHWADDR, struct.pack('256s', ifname)) + if PY3: + def ord(x): + return x + else: + import __builtin__ + ord = __builtin__.ord + return ''.join(['%02x:' % ord(char) for char in info[18:24]])[:-1] + + +def free_swap(): + """Parse 'free' cmd and return swap memory's s total, used and free + values. + """ + out = sh(["free", "-b"], env={"LANG": "C.UTF-8"}) + lines = out.split('\n') + for line in lines: + if line.startswith('Swap'): + _, total, used, free = line.split() + nt = collections.namedtuple('free', 'total used free') + return nt(int(total), int(used), int(free)) + raise ValueError( + "can't find 'Swap' in 'free' output:\n%s" % '\n'.join(lines)) + + +def free_physmem(): + """Parse 'free' cmd and return physical memory's total, used + and free values. + """ + # Note: free can have 2 different formats, invalidating 'shared' + # and 'cached' memory which may have different positions so we + # do not return them. + # https://github.com/giampaolo/psutil/issues/538#issuecomment-57059946 + out = sh(["free", "-b"], env={"LANG": "C.UTF-8"}) + lines = out.split('\n') + for line in lines: + if line.startswith('Mem'): + total, used, free, shared = \ + [int(x) for x in line.split()[1:5]] + nt = collections.namedtuple( + 'free', 'total used free shared output') + return nt(total, used, free, shared, out) + raise ValueError( + "can't find 'Mem' in 'free' output:\n%s" % '\n'.join(lines)) + + +def vmstat(stat): + out = sh(["vmstat", "-s"], env={"LANG": "C.UTF-8"}) + for line in out.split("\n"): + line = line.strip() + if stat in line: + return int(line.split(' ')[0]) + raise ValueError("can't find %r in 'vmstat' output" % stat) + + +def get_free_version_info(): + out = sh(["free", "-V"]).strip() + if 'UNKNOWN' in out: + raise unittest.SkipTest("can't determine free version") + return tuple(map(int, out.split()[-1].split('.'))) + + +@contextlib.contextmanager +def mock_open_content(for_path, content): + """Mock open() builtin and forces it to return a certain `content` + on read() if the path being opened matches `for_path`. + """ + def open_mock(name, *args, **kwargs): + if name == for_path: + if PY3: + if isinstance(content, basestring): + return io.StringIO(content) + else: + return io.BytesIO(content) + else: + return io.BytesIO(content) + else: + return orig_open(name, *args, **kwargs) + + orig_open = open + patch_point = 'builtins.open' if PY3 else '__builtin__.open' + with mock.patch(patch_point, create=True, side_effect=open_mock) as m: + yield m + + +@contextlib.contextmanager +def mock_open_exception(for_path, exc): + """Mock open() builtin and raises `exc` if the path being opened + matches `for_path`. + """ + def open_mock(name, *args, **kwargs): + if name == for_path: + raise exc + else: + return orig_open(name, *args, **kwargs) + + orig_open = open + patch_point = 'builtins.open' if PY3 else '__builtin__.open' + with mock.patch(patch_point, create=True, side_effect=open_mock) as m: + yield m + + +# ===================================================================== +# --- system virtual memory +# ===================================================================== + + +@unittest.skipIf(not LINUX, "LINUX only") +class TestSystemVirtualMemory(PsutilTestCase): + + def test_total(self): + # free_value = free_physmem().total + # psutil_value = psutil.virtual_memory().total + # self.assertEqual(free_value, psutil_value) + vmstat_value = vmstat('total memory') * 1024 + psutil_value = psutil.virtual_memory().total + self.assertAlmostEqual( + vmstat_value, psutil_value, delta=TOLERANCE_SYS_MEM) + + @retry_on_failure() + def test_used(self): + # Older versions of procps used slab memory to calculate used memory. + # This got changed in: + # https://gitlab.com/procps-ng/procps/commit/ + # 05d751c4f076a2f0118b914c5e51cfbb4762ad8e + if get_free_version_info() < (3, 3, 12): + raise self.skipTest("old free version") + free = free_physmem() + free_value = free.used + psutil_value = psutil.virtual_memory().used + self.assertAlmostEqual( + free_value, psutil_value, delta=TOLERANCE_SYS_MEM, + msg='%s %s \n%s' % (free_value, psutil_value, free.output)) + + @retry_on_failure() + def test_free(self): + vmstat_value = vmstat('free memory') * 1024 + psutil_value = psutil.virtual_memory().free + self.assertAlmostEqual( + vmstat_value, psutil_value, delta=TOLERANCE_SYS_MEM) + + @retry_on_failure() + def test_buffers(self): + vmstat_value = vmstat('buffer memory') * 1024 + psutil_value = psutil.virtual_memory().buffers + self.assertAlmostEqual( + vmstat_value, psutil_value, delta=TOLERANCE_SYS_MEM) + + @retry_on_failure() + def test_active(self): + vmstat_value = vmstat('active memory') * 1024 + psutil_value = psutil.virtual_memory().active + self.assertAlmostEqual( + vmstat_value, psutil_value, delta=TOLERANCE_SYS_MEM) + + @retry_on_failure() + def test_inactive(self): + vmstat_value = vmstat('inactive memory') * 1024 + psutil_value = psutil.virtual_memory().inactive + self.assertAlmostEqual( + vmstat_value, psutil_value, delta=TOLERANCE_SYS_MEM) + + @retry_on_failure() + def test_shared(self): + free = free_physmem() + free_value = free.shared + if free_value == 0: + raise unittest.SkipTest("free does not support 'shared' column") + psutil_value = psutil.virtual_memory().shared + self.assertAlmostEqual( + free_value, psutil_value, delta=TOLERANCE_SYS_MEM, + msg='%s %s \n%s' % (free_value, psutil_value, free.output)) + + @retry_on_failure() + def test_available(self): + # "free" output format has changed at some point: + # https://github.com/giampaolo/psutil/issues/538#issuecomment-147192098 + out = sh(["free", "-b"]) + lines = out.split('\n') + if 'available' not in lines[0]: + raise unittest.SkipTest("free does not support 'available' column") + else: + free_value = int(lines[1].split()[-1]) + psutil_value = psutil.virtual_memory().available + self.assertAlmostEqual( + free_value, psutil_value, delta=TOLERANCE_SYS_MEM, + msg='%s %s \n%s' % (free_value, psutil_value, out)) + + def test_warnings_on_misses(self): + # Emulate a case where /proc/meminfo provides few info. + # psutil is supposed to set the missing fields to 0 and + # raise a warning. + with mock_open_content( + '/proc/meminfo', + textwrap.dedent("""\ + Active(anon): 6145416 kB + Active(file): 2950064 kB + Inactive(anon): 574764 kB + Inactive(file): 1567648 kB + MemAvailable: -1 kB + MemFree: 2057400 kB + MemTotal: 16325648 kB + SReclaimable: 346648 kB + """).encode()) as m: + with warnings.catch_warnings(record=True) as ws: + warnings.simplefilter("always") + ret = psutil.virtual_memory() + assert m.called + self.assertEqual(len(ws), 1) + w = ws[0] + assert w.filename.endswith('psutil/_pslinux.py') + self.assertIn( + "memory stats couldn't be determined", str(w.message)) + self.assertIn("cached", str(w.message)) + self.assertIn("shared", str(w.message)) + self.assertIn("active", str(w.message)) + self.assertIn("inactive", str(w.message)) + self.assertIn("buffers", str(w.message)) + self.assertIn("available", str(w.message)) + self.assertEqual(ret.cached, 0) + self.assertEqual(ret.active, 0) + self.assertEqual(ret.inactive, 0) + self.assertEqual(ret.shared, 0) + self.assertEqual(ret.buffers, 0) + self.assertEqual(ret.available, 0) + self.assertEqual(ret.slab, 0) + + @retry_on_failure() + def test_avail_old_percent(self): + # Make sure that our calculation of avail mem for old kernels + # is off by max 15%. + mems = {} + with open_binary('/proc/meminfo') as f: + for line in f: + fields = line.split() + mems[fields[0]] = int(fields[1]) * 1024 + + a = calculate_avail_vmem(mems) + if b'MemAvailable:' in mems: + b = mems[b'MemAvailable:'] + diff_percent = abs(a - b) / a * 100 + self.assertLess(diff_percent, 15) + + def test_avail_old_comes_from_kernel(self): + # Make sure "MemAvailable:" coluimn is used instead of relying + # on our internal algorithm to calculate avail mem. + with mock_open_content( + '/proc/meminfo', + textwrap.dedent("""\ + Active: 9444728 kB + Active(anon): 6145416 kB + Active(file): 2950064 kB + Buffers: 287952 kB + Cached: 4818144 kB + Inactive(file): 1578132 kB + Inactive(anon): 574764 kB + Inactive(file): 1567648 kB + MemAvailable: 6574984 kB + MemFree: 2057400 kB + MemTotal: 16325648 kB + Shmem: 577588 kB + SReclaimable: 346648 kB + """).encode()) as m: + with warnings.catch_warnings(record=True) as ws: + ret = psutil.virtual_memory() + assert m.called + self.assertEqual(ret.available, 6574984 * 1024) + w = ws[0] + self.assertIn( + "inactive memory stats couldn't be determined", str(w.message)) + + def test_avail_old_missing_fields(self): + # Remove Active(file), Inactive(file) and SReclaimable + # from /proc/meminfo and make sure the fallback is used + # (free + cached), + with mock_open_content( + "/proc/meminfo", + textwrap.dedent("""\ + Active: 9444728 kB + Active(anon): 6145416 kB + Buffers: 287952 kB + Cached: 4818144 kB + Inactive(file): 1578132 kB + Inactive(anon): 574764 kB + MemFree: 2057400 kB + MemTotal: 16325648 kB + Shmem: 577588 kB + """).encode()) as m: + with warnings.catch_warnings(record=True) as ws: + ret = psutil.virtual_memory() + assert m.called + self.assertEqual(ret.available, 2057400 * 1024 + 4818144 * 1024) + w = ws[0] + self.assertIn( + "inactive memory stats couldn't be determined", str(w.message)) + + def test_avail_old_missing_zoneinfo(self): + # Remove /proc/zoneinfo file. Make sure fallback is used + # (free + cached). + with mock_open_content( + "/proc/meminfo", + textwrap.dedent("""\ + Active: 9444728 kB + Active(anon): 6145416 kB + Active(file): 2950064 kB + Buffers: 287952 kB + Cached: 4818144 kB + Inactive(file): 1578132 kB + Inactive(anon): 574764 kB + Inactive(file): 1567648 kB + MemFree: 2057400 kB + MemTotal: 16325648 kB + Shmem: 577588 kB + SReclaimable: 346648 kB + """).encode()): + with mock_open_exception( + "/proc/zoneinfo", + IOError(errno.ENOENT, 'no such file or directory')): + with warnings.catch_warnings(record=True) as ws: + ret = psutil.virtual_memory() + self.assertEqual( + ret.available, 2057400 * 1024 + 4818144 * 1024) + w = ws[0] + self.assertIn( + "inactive memory stats couldn't be determined", + str(w.message)) + + def test_virtual_memory_mocked(self): + # Emulate /proc/meminfo because neither vmstat nor free return slab. + def open_mock(name, *args, **kwargs): + if name == '/proc/meminfo': + return io.BytesIO(textwrap.dedent("""\ + MemTotal: 100 kB + MemFree: 2 kB + MemAvailable: 3 kB + Buffers: 4 kB + Cached: 5 kB + SwapCached: 6 kB + Active: 7 kB + Inactive: 8 kB + Active(anon): 9 kB + Inactive(anon): 10 kB + Active(file): 11 kB + Inactive(file): 12 kB + Unevictable: 13 kB + Mlocked: 14 kB + SwapTotal: 15 kB + SwapFree: 16 kB + Dirty: 17 kB + Writeback: 18 kB + AnonPages: 19 kB + Mapped: 20 kB + Shmem: 21 kB + Slab: 22 kB + SReclaimable: 23 kB + SUnreclaim: 24 kB + KernelStack: 25 kB + PageTables: 26 kB + NFS_Unstable: 27 kB + Bounce: 28 kB + WritebackTmp: 29 kB + CommitLimit: 30 kB + Committed_AS: 31 kB + VmallocTotal: 32 kB + VmallocUsed: 33 kB + VmallocChunk: 34 kB + HardwareCorrupted: 35 kB + AnonHugePages: 36 kB + ShmemHugePages: 37 kB + ShmemPmdMapped: 38 kB + CmaTotal: 39 kB + CmaFree: 40 kB + HugePages_Total: 41 kB + HugePages_Free: 42 kB + HugePages_Rsvd: 43 kB + HugePages_Surp: 44 kB + Hugepagesize: 45 kB + DirectMap46k: 46 kB + DirectMap47M: 47 kB + DirectMap48G: 48 kB + """).encode()) + else: + return orig_open(name, *args, **kwargs) + + orig_open = open + patch_point = 'builtins.open' if PY3 else '__builtin__.open' + with mock.patch(patch_point, create=True, side_effect=open_mock) as m: + mem = psutil.virtual_memory() + assert m.called + self.assertEqual(mem.total, 100 * 1024) + self.assertEqual(mem.free, 2 * 1024) + self.assertEqual(mem.buffers, 4 * 1024) + # cached mem also includes reclaimable memory + self.assertEqual(mem.cached, (5 + 23) * 1024) + self.assertEqual(mem.shared, 21 * 1024) + self.assertEqual(mem.active, 7 * 1024) + self.assertEqual(mem.inactive, 8 * 1024) + self.assertEqual(mem.slab, 22 * 1024) + self.assertEqual(mem.available, 3 * 1024) + + +# ===================================================================== +# --- system swap memory +# ===================================================================== + + +@unittest.skipIf(not LINUX, "LINUX only") +class TestSystemSwapMemory(PsutilTestCase): + + @staticmethod + def meminfo_has_swap_info(): + """Return True if /proc/meminfo provides swap metrics.""" + with open("/proc/meminfo") as f: + data = f.read() + return 'SwapTotal:' in data and 'SwapFree:' in data + + def test_total(self): + free_value = free_swap().total + psutil_value = psutil.swap_memory().total + return self.assertAlmostEqual( + free_value, psutil_value, delta=TOLERANCE_SYS_MEM) + + @retry_on_failure() + def test_used(self): + free_value = free_swap().used + psutil_value = psutil.swap_memory().used + return self.assertAlmostEqual( + free_value, psutil_value, delta=TOLERANCE_SYS_MEM) + + @retry_on_failure() + def test_free(self): + free_value = free_swap().free + psutil_value = psutil.swap_memory().free + return self.assertAlmostEqual( + free_value, psutil_value, delta=TOLERANCE_SYS_MEM) + + def test_missing_sin_sout(self): + with mock.patch('psutil._common.open', create=True) as m: + with warnings.catch_warnings(record=True) as ws: + warnings.simplefilter("always") + ret = psutil.swap_memory() + assert m.called + self.assertEqual(len(ws), 1) + w = ws[0] + assert w.filename.endswith('psutil/_pslinux.py') + self.assertIn( + "'sin' and 'sout' swap memory stats couldn't " + "be determined", str(w.message)) + self.assertEqual(ret.sin, 0) + self.assertEqual(ret.sout, 0) + + def test_no_vmstat_mocked(self): + # see https://github.com/giampaolo/psutil/issues/722 + with mock_open_exception( + "/proc/vmstat", + IOError(errno.ENOENT, 'no such file or directory')) as m: + with warnings.catch_warnings(record=True) as ws: + warnings.simplefilter("always") + ret = psutil.swap_memory() + assert m.called + self.assertEqual(len(ws), 1) + w = ws[0] + assert w.filename.endswith('psutil/_pslinux.py') + self.assertIn( + "'sin' and 'sout' swap memory stats couldn't " + "be determined and were set to 0", + str(w.message)) + self.assertEqual(ret.sin, 0) + self.assertEqual(ret.sout, 0) + + def test_meminfo_against_sysinfo(self): + # Make sure the content of /proc/meminfo about swap memory + # matches sysinfo() syscall, see: + # https://github.com/giampaolo/psutil/issues/1015 + if not self.meminfo_has_swap_info(): + return unittest.skip("/proc/meminfo has no swap metrics") + with mock.patch('psutil._pslinux.cext.linux_sysinfo') as m: + swap = psutil.swap_memory() + assert not m.called + import psutil._psutil_linux as cext + _, _, _, _, total, free, unit_multiplier = cext.linux_sysinfo() + total *= unit_multiplier + free *= unit_multiplier + self.assertEqual(swap.total, total) + self.assertAlmostEqual(swap.free, free, delta=TOLERANCE_SYS_MEM) + + def test_emulate_meminfo_has_no_metrics(self): + # Emulate a case where /proc/meminfo provides no swap metrics + # in which case sysinfo() syscall is supposed to be used + # as a fallback. + with mock_open_content("/proc/meminfo", b"") as m: + psutil.swap_memory() + assert m.called + + +# ===================================================================== +# --- system CPU +# ===================================================================== + + +@unittest.skipIf(not LINUX, "LINUX only") +class TestSystemCPUTimes(PsutilTestCase): + + def test_fields(self): + fields = psutil.cpu_times()._fields + kernel_ver = re.findall(r'\d+\.\d+\.\d+', os.uname()[2])[0] + kernel_ver_info = tuple(map(int, kernel_ver.split('.'))) + if kernel_ver_info >= (2, 6, 11): + self.assertIn('steal', fields) + else: + self.assertNotIn('steal', fields) + if kernel_ver_info >= (2, 6, 24): + self.assertIn('guest', fields) + else: + self.assertNotIn('guest', fields) + if kernel_ver_info >= (3, 2, 0): + self.assertIn('guest_nice', fields) + else: + self.assertNotIn('guest_nice', fields) + + +@unittest.skipIf(not LINUX, "LINUX only") +class TestSystemCPUCountLogical(PsutilTestCase): + + @unittest.skipIf(not os.path.exists("/sys/devices/system/cpu/online"), + "/sys/devices/system/cpu/online does not exist") + def test_against_sysdev_cpu_online(self): + with open("/sys/devices/system/cpu/online") as f: + value = f.read().strip() + if "-" in str(value): + value = int(value.split('-')[1]) + 1 + self.assertEqual(psutil.cpu_count(), value) + + @unittest.skipIf(not os.path.exists("/sys/devices/system/cpu"), + "/sys/devices/system/cpu does not exist") + def test_against_sysdev_cpu_num(self): + ls = os.listdir("/sys/devices/system/cpu") + count = len([x for x in ls if re.search(r"cpu\d+$", x) is not None]) + self.assertEqual(psutil.cpu_count(), count) + + @unittest.skipIf(not which("nproc"), "nproc utility not available") + def test_against_nproc(self): + num = int(sh("nproc --all")) + self.assertEqual(psutil.cpu_count(logical=True), num) + + @unittest.skipIf(not which("lscpu"), "lscpu utility not available") + def test_against_lscpu(self): + out = sh("lscpu -p") + num = len([x for x in out.split('\n') if not x.startswith('#')]) + self.assertEqual(psutil.cpu_count(logical=True), num) + + def test_emulate_fallbacks(self): + import psutil._pslinux + original = psutil._pslinux.cpu_count_logical() + # Here we want to mock os.sysconf("SC_NPROCESSORS_ONLN") in + # order to cause the parsing of /proc/cpuinfo and /proc/stat. + with mock.patch( + 'psutil._pslinux.os.sysconf', side_effect=ValueError) as m: + self.assertEqual(psutil._pslinux.cpu_count_logical(), original) + assert m.called + + # Let's have open() return emtpy data and make sure None is + # returned ('cause we mimick os.cpu_count()). + with mock.patch('psutil._common.open', create=True) as m: + self.assertIsNone(psutil._pslinux.cpu_count_logical()) + self.assertEqual(m.call_count, 2) + # /proc/stat should be the last one + self.assertEqual(m.call_args[0][0], '/proc/stat') + + # Let's push this a bit further and make sure /proc/cpuinfo + # parsing works as expected. + with open('/proc/cpuinfo', 'rb') as f: + cpuinfo_data = f.read() + fake_file = io.BytesIO(cpuinfo_data) + with mock.patch('psutil._common.open', + return_value=fake_file, create=True) as m: + self.assertEqual(psutil._pslinux.cpu_count_logical(), original) + + # Finally, let's make /proc/cpuinfo return meaningless data; + # this way we'll fall back on relying on /proc/stat + with mock_open_content('/proc/cpuinfo', b"") as m: + self.assertEqual(psutil._pslinux.cpu_count_logical(), original) + m.called + + +@unittest.skipIf(not LINUX, "LINUX only") +class TestSystemCPUCountCores(PsutilTestCase): + + @unittest.skipIf(not which("lscpu"), "lscpu utility not available") + def test_against_lscpu(self): + out = sh("lscpu -p") + core_ids = set() + for line in out.split('\n'): + if not line.startswith('#'): + fields = line.split(',') + core_ids.add(fields[1]) + self.assertEqual(psutil.cpu_count(logical=False), len(core_ids)) + + def test_method_2(self): + meth_1 = psutil._pslinux.cpu_count_cores() + with mock.patch('glob.glob', return_value=[]) as m: + meth_2 = psutil._pslinux.cpu_count_cores() + assert m.called + if meth_1 is not None: + self.assertEqual(meth_1, meth_2) + + def test_emulate_none(self): + with mock.patch('glob.glob', return_value=[]) as m1: + with mock.patch('psutil._common.open', create=True) as m2: + self.assertIsNone(psutil._pslinux.cpu_count_cores()) + assert m1.called + assert m2.called + + +@unittest.skipIf(not LINUX, "LINUX only") +class TestSystemCPUFrequency(PsutilTestCase): + + @unittest.skipIf(not HAS_CPU_FREQ, "not supported") + def test_emulate_use_second_file(self): + # https://github.com/giampaolo/psutil/issues/981 + def path_exists_mock(path): + if path.startswith("/sys/devices/system/cpu/cpufreq/policy"): + return False + else: + return orig_exists(path) + + orig_exists = os.path.exists + with mock.patch("os.path.exists", side_effect=path_exists_mock, + create=True): + assert psutil.cpu_freq() + + @unittest.skipIf(not HAS_CPU_FREQ, "not supported") + def test_emulate_use_cpuinfo(self): + # Emulate a case where /sys/devices/system/cpu/cpufreq* does not + # exist and /proc/cpuinfo is used instead. + def path_exists_mock(path): + if path.startswith('/sys/devices/system/cpu/'): + return False + else: + return os_path_exists(path) + + os_path_exists = os.path.exists + try: + with mock.patch("os.path.exists", side_effect=path_exists_mock): + reload_module(psutil._pslinux) + ret = psutil.cpu_freq() + assert ret + self.assertEqual(ret.max, 0.0) + self.assertEqual(ret.min, 0.0) + for freq in psutil.cpu_freq(percpu=True): + self.assertEqual(ret.max, 0.0) + self.assertEqual(ret.min, 0.0) + finally: + reload_module(psutil._pslinux) + reload_module(psutil) + + @unittest.skipIf(not HAS_CPU_FREQ, "not supported") + def test_emulate_data(self): + def open_mock(name, *args, **kwargs): + if (name.endswith('/scaling_cur_freq') and + name.startswith("/sys/devices/system/cpu/cpufreq/policy")): + return io.BytesIO(b"500000") + elif (name.endswith('/scaling_min_freq') and + name.startswith("/sys/devices/system/cpu/cpufreq/policy")): + return io.BytesIO(b"600000") + elif (name.endswith('/scaling_max_freq') and + name.startswith("/sys/devices/system/cpu/cpufreq/policy")): + return io.BytesIO(b"700000") + elif name == '/proc/cpuinfo': + return io.BytesIO(b"cpu MHz : 500") + else: + return orig_open(name, *args, **kwargs) + + orig_open = open + patch_point = 'builtins.open' if PY3 else '__builtin__.open' + with mock.patch(patch_point, side_effect=open_mock): + with mock.patch( + 'os.path.exists', return_value=True): + freq = psutil.cpu_freq() + self.assertEqual(freq.current, 500.0) + # when /proc/cpuinfo is used min and max frequencies are not + # available and are set to 0. + if freq.min != 0.0: + self.assertEqual(freq.min, 600.0) + if freq.max != 0.0: + self.assertEqual(freq.max, 700.0) + + @unittest.skipIf(not HAS_CPU_FREQ, "not supported") + def test_emulate_multi_cpu(self): + def open_mock(name, *args, **kwargs): + n = name + if (n.endswith('/scaling_cur_freq') and + n.startswith("/sys/devices/system/cpu/cpufreq/policy0")): + return io.BytesIO(b"100000") + elif (n.endswith('/scaling_min_freq') and + n.startswith("/sys/devices/system/cpu/cpufreq/policy0")): + return io.BytesIO(b"200000") + elif (n.endswith('/scaling_max_freq') and + n.startswith("/sys/devices/system/cpu/cpufreq/policy0")): + return io.BytesIO(b"300000") + elif (n.endswith('/scaling_cur_freq') and + n.startswith("/sys/devices/system/cpu/cpufreq/policy1")): + return io.BytesIO(b"400000") + elif (n.endswith('/scaling_min_freq') and + n.startswith("/sys/devices/system/cpu/cpufreq/policy1")): + return io.BytesIO(b"500000") + elif (n.endswith('/scaling_max_freq') and + n.startswith("/sys/devices/system/cpu/cpufreq/policy1")): + return io.BytesIO(b"600000") + elif name == '/proc/cpuinfo': + return io.BytesIO(b"cpu MHz : 100\n" + b"cpu MHz : 400") + else: + return orig_open(name, *args, **kwargs) + + orig_open = open + patch_point = 'builtins.open' if PY3 else '__builtin__.open' + with mock.patch(patch_point, side_effect=open_mock): + with mock.patch('os.path.exists', return_value=True): + with mock.patch('psutil._pslinux.cpu_count_logical', + return_value=2): + freq = psutil.cpu_freq(percpu=True) + self.assertEqual(freq[0].current, 100.0) + if freq[0].min != 0.0: + self.assertEqual(freq[0].min, 200.0) + if freq[0].max != 0.0: + self.assertEqual(freq[0].max, 300.0) + self.assertEqual(freq[1].current, 400.0) + if freq[1].min != 0.0: + self.assertEqual(freq[1].min, 500.0) + if freq[1].max != 0.0: + self.assertEqual(freq[1].max, 600.0) + + @unittest.skipIf(not HAS_CPU_FREQ, "not supported") + def test_emulate_no_scaling_cur_freq_file(self): + # See: https://github.com/giampaolo/psutil/issues/1071 + def open_mock(name, *args, **kwargs): + if name.endswith('/scaling_cur_freq'): + raise IOError(errno.ENOENT, "") + elif name.endswith('/cpuinfo_cur_freq'): + return io.BytesIO(b"200000") + elif name == '/proc/cpuinfo': + return io.BytesIO(b"cpu MHz : 200") + else: + return orig_open(name, *args, **kwargs) + + orig_open = open + patch_point = 'builtins.open' if PY3 else '__builtin__.open' + with mock.patch(patch_point, side_effect=open_mock): + with mock.patch('os.path.exists', return_value=True): + with mock.patch('psutil._pslinux.cpu_count_logical', + return_value=1): + freq = psutil.cpu_freq() + self.assertEqual(freq.current, 200) + + +@unittest.skipIf(not LINUX, "LINUX only") +class TestSystemCPUStats(PsutilTestCase): + + def test_ctx_switches(self): + vmstat_value = vmstat("context switches") + psutil_value = psutil.cpu_stats().ctx_switches + self.assertAlmostEqual(vmstat_value, psutil_value, delta=500) + + def test_interrupts(self): + vmstat_value = vmstat("interrupts") + psutil_value = psutil.cpu_stats().interrupts + self.assertAlmostEqual(vmstat_value, psutil_value, delta=500) + + +@unittest.skipIf(not LINUX, "LINUX only") +class TestLoadAvg(PsutilTestCase): + + @unittest.skipIf(not HAS_GETLOADAVG, "not supported") + def test_getloadavg(self): + psutil_value = psutil.getloadavg() + with open("/proc/loadavg", "r") as f: + proc_value = f.read().split() + + self.assertAlmostEqual(float(proc_value[0]), psutil_value[0], delta=1) + self.assertAlmostEqual(float(proc_value[1]), psutil_value[1], delta=1) + self.assertAlmostEqual(float(proc_value[2]), psutil_value[2], delta=1) + + +# ===================================================================== +# --- system network +# ===================================================================== + + +@unittest.skipIf(not LINUX, "LINUX only") +class TestSystemNetIfAddrs(PsutilTestCase): + + def test_ips(self): + for name, addrs in psutil.net_if_addrs().items(): + for addr in addrs: + if addr.family == psutil.AF_LINK: + self.assertEqual(addr.address, get_mac_address(name)) + elif addr.family == socket.AF_INET: + self.assertEqual(addr.address, get_ipv4_address(name)) + self.assertEqual(addr.netmask, get_ipv4_netmask(name)) + if addr.broadcast is not None: + self.assertEqual(addr.broadcast, + get_ipv4_broadcast(name)) + else: + self.assertEqual(get_ipv4_broadcast(name), '0.0.0.0') + elif addr.family == socket.AF_INET6: + # IPv6 addresses can have a percent symbol at the end. + # E.g. these 2 are equivalent: + # "fe80::1ff:fe23:4567:890a" + # "fe80::1ff:fe23:4567:890a%eth0" + # That is the "zone id" portion, which usually is the name + # of the network interface. + address = addr.address.split('%')[0] + self.assertEqual(address, get_ipv6_address(name)) + + # XXX - not reliable when having virtual NICs installed by Docker. + # @unittest.skipIf(not which('ip'), "'ip' utility not available") + # def test_net_if_names(self): + # out = sh("ip addr").strip() + # nics = [x for x in psutil.net_if_addrs().keys() if ':' not in x] + # found = 0 + # for line in out.split('\n'): + # line = line.strip() + # if re.search(r"^\d+:", line): + # found += 1 + # name = line.split(':')[1].strip() + # self.assertIn(name, nics) + # self.assertEqual(len(nics), found, msg="%s\n---\n%s" % ( + # pprint.pformat(nics), out)) + + +@unittest.skipIf(not LINUX, "LINUX only") +class TestSystemNetIfStats(PsutilTestCase): + + def test_against_ifconfig(self): + for name, stats in psutil.net_if_stats().items(): + try: + out = sh("ifconfig %s" % name) + except RuntimeError: + pass + else: + self.assertEqual(stats.isup, 'RUNNING' in out, msg=out) + self.assertEqual(stats.mtu, + int(re.findall(r'(?i)MTU[: ](\d+)', out)[0])) + + def test_mtu(self): + for name, stats in psutil.net_if_stats().items(): + with open("/sys/class/net/%s/mtu" % name, "rt") as f: + self.assertEqual(stats.mtu, int(f.read().strip())) + + +@unittest.skipIf(not LINUX, "LINUX only") +class TestSystemNetIOCounters(PsutilTestCase): + + @retry_on_failure() + def test_against_ifconfig(self): + def ifconfig(nic): + ret = {} + out = sh("ifconfig %s" % name) + ret['packets_recv'] = int( + re.findall(r'RX packets[: ](\d+)', out)[0]) + ret['packets_sent'] = int( + re.findall(r'TX packets[: ](\d+)', out)[0]) + ret['errin'] = int(re.findall(r'errors[: ](\d+)', out)[0]) + ret['errout'] = int(re.findall(r'errors[: ](\d+)', out)[1]) + ret['dropin'] = int(re.findall(r'dropped[: ](\d+)', out)[0]) + ret['dropout'] = int(re.findall(r'dropped[: ](\d+)', out)[1]) + ret['bytes_recv'] = int( + re.findall(r'RX (?:packets \d+ +)?bytes[: ](\d+)', out)[0]) + ret['bytes_sent'] = int( + re.findall(r'TX (?:packets \d+ +)?bytes[: ](\d+)', out)[0]) + return ret + + nio = psutil.net_io_counters(pernic=True, nowrap=False) + for name, stats in nio.items(): + try: + ifconfig_ret = ifconfig(name) + except RuntimeError: + continue + self.assertAlmostEqual( + stats.bytes_recv, ifconfig_ret['bytes_recv'], delta=1024 * 5) + self.assertAlmostEqual( + stats.bytes_sent, ifconfig_ret['bytes_sent'], delta=1024 * 5) + self.assertAlmostEqual( + stats.packets_recv, ifconfig_ret['packets_recv'], delta=1024) + self.assertAlmostEqual( + stats.packets_sent, ifconfig_ret['packets_sent'], delta=1024) + self.assertAlmostEqual( + stats.errin, ifconfig_ret['errin'], delta=10) + self.assertAlmostEqual( + stats.errout, ifconfig_ret['errout'], delta=10) + self.assertAlmostEqual( + stats.dropin, ifconfig_ret['dropin'], delta=10) + self.assertAlmostEqual( + stats.dropout, ifconfig_ret['dropout'], delta=10) + + +@unittest.skipIf(not LINUX, "LINUX only") +class TestSystemNetConnections(PsutilTestCase): + + @mock.patch('psutil._pslinux.socket.inet_ntop', side_effect=ValueError) + @mock.patch('psutil._pslinux.supports_ipv6', return_value=False) + def test_emulate_ipv6_unsupported(self, supports_ipv6, inet_ntop): + # see: https://github.com/giampaolo/psutil/issues/623 + try: + s = socket.socket(socket.AF_INET6, socket.SOCK_STREAM) + self.addCleanup(s.close) + s.bind(("::1", 0)) + except socket.error: + pass + psutil.net_connections(kind='inet6') + + def test_emulate_unix(self): + with mock_open_content( + '/proc/net/unix', + textwrap.dedent("""\ + 0: 00000003 000 000 0001 03 462170 @/tmp/dbus-Qw2hMPIU3n + 0: 00000003 000 000 0001 03 35010 @/tmp/dbus-tB2X8h69BQ + 0: 00000003 000 000 0001 03 34424 @/tmp/dbus-cHy80Y8O + 000000000000000000000000000000000000000000000000000000 + """)) as m: + psutil.net_connections(kind='unix') + assert m.called + + +# ===================================================================== +# --- system disks +# ===================================================================== + + +@unittest.skipIf(not LINUX, "LINUX only") +class TestSystemDiskPartitions(PsutilTestCase): + + @unittest.skipIf(not hasattr(os, 'statvfs'), "os.statvfs() not available") + @skip_on_not_implemented() + def test_against_df(self): + # test psutil.disk_usage() and psutil.disk_partitions() + # against "df -a" + def df(path): + out = sh('df -P -B 1 "%s"' % path).strip() + lines = out.split('\n') + lines.pop(0) + line = lines.pop(0) + dev, total, used, free = line.split()[:4] + if dev == 'none': + dev = '' + total, used, free = int(total), int(used), int(free) + return dev, total, used, free + + for part in psutil.disk_partitions(all=False): + usage = psutil.disk_usage(part.mountpoint) + dev, total, used, free = df(part.mountpoint) + self.assertEqual(usage.total, total) + self.assertAlmostEqual(usage.free, free, + delta=TOLERANCE_DISK_USAGE) + self.assertAlmostEqual(usage.used, used, + delta=TOLERANCE_DISK_USAGE) + + def test_zfs_fs(self): + # Test that ZFS partitions are returned. + with open("/proc/filesystems", "r") as f: + data = f.read() + if 'zfs' in data: + for part in psutil.disk_partitions(): + if part.fstype == 'zfs': + break + else: + self.fail("couldn't find any ZFS partition") + else: + # No ZFS partitions on this system. Let's fake one. + fake_file = io.StringIO(u("nodev\tzfs\n")) + with mock.patch('psutil._common.open', + return_value=fake_file, create=True) as m1: + with mock.patch( + 'psutil._pslinux.cext.disk_partitions', + return_value=[('/dev/sdb3', '/', 'zfs', 'rw')]) as m2: + ret = psutil.disk_partitions() + assert m1.called + assert m2.called + assert ret + self.assertEqual(ret[0].fstype, 'zfs') + + def test_emulate_realpath_fail(self): + # See: https://github.com/giampaolo/psutil/issues/1307 + try: + with mock.patch('os.path.realpath', + return_value='/non/existent') as m: + with self.assertRaises(FileNotFoundError): + psutil.disk_partitions() + assert m.called + finally: + psutil.PROCFS_PATH = "/proc" + + +@unittest.skipIf(not LINUX, "LINUX only") +class TestSystemDiskIoCounters(PsutilTestCase): + + def test_emulate_kernel_2_4(self): + # Tests /proc/diskstats parsing format for 2.4 kernels, see: + # https://github.com/giampaolo/psutil/issues/767 + with mock_open_content( + '/proc/diskstats', + " 3 0 1 hda 2 3 4 5 6 7 8 9 10 11 12"): + with mock.patch('psutil._pslinux.is_storage_device', + return_value=True): + ret = psutil.disk_io_counters(nowrap=False) + self.assertEqual(ret.read_count, 1) + self.assertEqual(ret.read_merged_count, 2) + self.assertEqual(ret.read_bytes, 3 * SECTOR_SIZE) + self.assertEqual(ret.read_time, 4) + self.assertEqual(ret.write_count, 5) + self.assertEqual(ret.write_merged_count, 6) + self.assertEqual(ret.write_bytes, 7 * SECTOR_SIZE) + self.assertEqual(ret.write_time, 8) + self.assertEqual(ret.busy_time, 10) + + def test_emulate_kernel_2_6_full(self): + # Tests /proc/diskstats parsing format for 2.6 kernels, + # lines reporting all metrics: + # https://github.com/giampaolo/psutil/issues/767 + with mock_open_content( + '/proc/diskstats', + " 3 0 hda 1 2 3 4 5 6 7 8 9 10 11"): + with mock.patch('psutil._pslinux.is_storage_device', + return_value=True): + ret = psutil.disk_io_counters(nowrap=False) + self.assertEqual(ret.read_count, 1) + self.assertEqual(ret.read_merged_count, 2) + self.assertEqual(ret.read_bytes, 3 * SECTOR_SIZE) + self.assertEqual(ret.read_time, 4) + self.assertEqual(ret.write_count, 5) + self.assertEqual(ret.write_merged_count, 6) + self.assertEqual(ret.write_bytes, 7 * SECTOR_SIZE) + self.assertEqual(ret.write_time, 8) + self.assertEqual(ret.busy_time, 10) + + def test_emulate_kernel_2_6_limited(self): + # Tests /proc/diskstats parsing format for 2.6 kernels, + # where one line of /proc/partitions return a limited + # amount of metrics when it bumps into a partition + # (instead of a disk). See: + # https://github.com/giampaolo/psutil/issues/767 + with mock_open_content( + '/proc/diskstats', + " 3 1 hda 1 2 3 4"): + with mock.patch('psutil._pslinux.is_storage_device', + return_value=True): + ret = psutil.disk_io_counters(nowrap=False) + self.assertEqual(ret.read_count, 1) + self.assertEqual(ret.read_bytes, 2 * SECTOR_SIZE) + self.assertEqual(ret.write_count, 3) + self.assertEqual(ret.write_bytes, 4 * SECTOR_SIZE) + + self.assertEqual(ret.read_merged_count, 0) + self.assertEqual(ret.read_time, 0) + self.assertEqual(ret.write_merged_count, 0) + self.assertEqual(ret.write_time, 0) + self.assertEqual(ret.busy_time, 0) + + def test_emulate_include_partitions(self): + # Make sure that when perdisk=True disk partitions are returned, + # see: + # https://github.com/giampaolo/psutil/pull/1313#issuecomment-408626842 + with mock_open_content( + '/proc/diskstats', + textwrap.dedent("""\ + 3 0 nvme0n1 1 2 3 4 5 6 7 8 9 10 11 + 3 0 nvme0n1p1 1 2 3 4 5 6 7 8 9 10 11 + """)): + with mock.patch('psutil._pslinux.is_storage_device', + return_value=False): + ret = psutil.disk_io_counters(perdisk=True, nowrap=False) + self.assertEqual(len(ret), 2) + self.assertEqual(ret['nvme0n1'].read_count, 1) + self.assertEqual(ret['nvme0n1p1'].read_count, 1) + self.assertEqual(ret['nvme0n1'].write_count, 5) + self.assertEqual(ret['nvme0n1p1'].write_count, 5) + + def test_emulate_exclude_partitions(self): + # Make sure that when perdisk=False partitions (e.g. 'sda1', + # 'nvme0n1p1') are skipped and not included in the total count. + # https://github.com/giampaolo/psutil/pull/1313#issuecomment-408626842 + with mock_open_content( + '/proc/diskstats', + textwrap.dedent("""\ + 3 0 nvme0n1 1 2 3 4 5 6 7 8 9 10 11 + 3 0 nvme0n1p1 1 2 3 4 5 6 7 8 9 10 11 + """)): + with mock.patch('psutil._pslinux.is_storage_device', + return_value=False): + ret = psutil.disk_io_counters(perdisk=False, nowrap=False) + self.assertIsNone(ret) + + # + def is_storage_device(name): + return name == 'nvme0n1' + + with mock_open_content( + '/proc/diskstats', + textwrap.dedent("""\ + 3 0 nvme0n1 1 2 3 4 5 6 7 8 9 10 11 + 3 0 nvme0n1p1 1 2 3 4 5 6 7 8 9 10 11 + """)): + with mock.patch('psutil._pslinux.is_storage_device', + create=True, side_effect=is_storage_device): + ret = psutil.disk_io_counters(perdisk=False, nowrap=False) + self.assertEqual(ret.read_count, 1) + self.assertEqual(ret.write_count, 5) + + def test_emulate_use_sysfs(self): + def exists(path): + if path == '/proc/diskstats': + return False + return True + + wprocfs = psutil.disk_io_counters(perdisk=True) + with mock.patch('psutil._pslinux.os.path.exists', + create=True, side_effect=exists): + wsysfs = psutil.disk_io_counters(perdisk=True) + self.assertEqual(len(wprocfs), len(wsysfs)) + + def test_emulate_not_impl(self): + def exists(path): + return False + + with mock.patch('psutil._pslinux.os.path.exists', + create=True, side_effect=exists): + self.assertRaises(NotImplementedError, psutil.disk_io_counters) + + +@unittest.skipIf(not LINUX, "LINUX only") +class TestRootFsDeviceFinder(PsutilTestCase): + + def setUp(self): + dev = os.stat("/").st_dev + self.major = os.major(dev) + self.minor = os.minor(dev) + + def test_call_methods(self): + finder = RootFsDeviceFinder() + if os.path.exists("/proc/partitions"): + finder.ask_proc_partitions() + else: + self.assertRaises(FileNotFoundError, finder.ask_proc_partitions) + if os.path.exists("/sys/dev/block/%s:%s/uevent" % ( + self.major, self.minor)): + finder.ask_sys_dev_block() + else: + self.assertRaises(FileNotFoundError, finder.ask_sys_dev_block) + finder.ask_sys_class_block() + + @unittest.skipIf(GITHUB_ACTIONS, "unsupported on GITHUB_ACTIONS") + def test_comparisons(self): + finder = RootFsDeviceFinder() + self.assertIsNotNone(finder.find()) + + a = b = c = None + if os.path.exists("/proc/partitions"): + a = finder.ask_proc_partitions() + if os.path.exists("/sys/dev/block/%s:%s/uevent" % ( + self.major, self.minor)): + b = finder.ask_sys_class_block() + c = finder.ask_sys_dev_block() + + base = a or b or c + if base and a: + self.assertEqual(base, a) + if base and b: + self.assertEqual(base, b) + if base and c: + self.assertEqual(base, c) + + @unittest.skipIf(not which("findmnt"), "findmnt utility not available") + @unittest.skipIf(GITHUB_ACTIONS, "unsupported on GITHUB_ACTIONS") + def test_against_findmnt(self): + psutil_value = RootFsDeviceFinder().find() + findmnt_value = sh("findmnt -o SOURCE -rn /") + self.assertEqual(psutil_value, findmnt_value) + + def test_disk_partitions_mocked(self): + with mock.patch( + 'psutil._pslinux.cext.disk_partitions', + return_value=[('/dev/root', '/', 'ext4', 'rw')]) as m: + part = psutil.disk_partitions()[0] + assert m.called + if not GITHUB_ACTIONS: + self.assertNotEqual(part.device, "/dev/root") + self.assertEqual(part.device, RootFsDeviceFinder().find()) + else: + self.assertEqual(part.device, "/dev/root") + + +# ===================================================================== +# --- misc +# ===================================================================== + + +@unittest.skipIf(not LINUX, "LINUX only") +class TestMisc(PsutilTestCase): + + def test_boot_time(self): + vmstat_value = vmstat('boot time') + psutil_value = psutil.boot_time() + self.assertEqual(int(vmstat_value), int(psutil_value)) + + def test_no_procfs_on_import(self): + my_procfs = self.get_testfn() + os.mkdir(my_procfs) + + with open(os.path.join(my_procfs, 'stat'), 'w') as f: + f.write('cpu 0 0 0 0 0 0 0 0 0 0\n') + f.write('cpu0 0 0 0 0 0 0 0 0 0 0\n') + f.write('cpu1 0 0 0 0 0 0 0 0 0 0\n') + + try: + orig_open = open + + def open_mock(name, *args, **kwargs): + if name.startswith('/proc'): + raise IOError(errno.ENOENT, 'rejecting access for test') + return orig_open(name, *args, **kwargs) + + patch_point = 'builtins.open' if PY3 else '__builtin__.open' + with mock.patch(patch_point, side_effect=open_mock): + reload_module(psutil) + + self.assertRaises(IOError, psutil.cpu_times) + self.assertRaises(IOError, psutil.cpu_times, percpu=True) + self.assertRaises(IOError, psutil.cpu_percent) + self.assertRaises(IOError, psutil.cpu_percent, percpu=True) + self.assertRaises(IOError, psutil.cpu_times_percent) + self.assertRaises( + IOError, psutil.cpu_times_percent, percpu=True) + + psutil.PROCFS_PATH = my_procfs + + self.assertEqual(psutil.cpu_percent(), 0) + self.assertEqual(sum(psutil.cpu_times_percent()), 0) + + # since we don't know the number of CPUs at import time, + # we awkwardly say there are none until the second call + per_cpu_percent = psutil.cpu_percent(percpu=True) + self.assertEqual(sum(per_cpu_percent), 0) + + # ditto awkward length + per_cpu_times_percent = psutil.cpu_times_percent(percpu=True) + self.assertEqual(sum(map(sum, per_cpu_times_percent)), 0) + + # much user, very busy + with open(os.path.join(my_procfs, 'stat'), 'w') as f: + f.write('cpu 1 0 0 0 0 0 0 0 0 0\n') + f.write('cpu0 1 0 0 0 0 0 0 0 0 0\n') + f.write('cpu1 1 0 0 0 0 0 0 0 0 0\n') + + self.assertNotEqual(psutil.cpu_percent(), 0) + self.assertNotEqual( + sum(psutil.cpu_percent(percpu=True)), 0) + self.assertNotEqual(sum(psutil.cpu_times_percent()), 0) + self.assertNotEqual( + sum(map(sum, psutil.cpu_times_percent(percpu=True))), 0) + finally: + shutil.rmtree(my_procfs) + reload_module(psutil) + + self.assertEqual(psutil.PROCFS_PATH, '/proc') + + def test_cpu_steal_decrease(self): + # Test cumulative cpu stats decrease. We should ignore this. + # See issue #1210. + with mock_open_content( + "/proc/stat", + textwrap.dedent("""\ + cpu 0 0 0 0 0 0 0 1 0 0 + cpu0 0 0 0 0 0 0 0 1 0 0 + cpu1 0 0 0 0 0 0 0 1 0 0 + """).encode()) as m: + # first call to "percent" functions should read the new stat file + # and compare to the "real" file read at import time - so the + # values are meaningless + psutil.cpu_percent() + assert m.called + psutil.cpu_percent(percpu=True) + psutil.cpu_times_percent() + psutil.cpu_times_percent(percpu=True) + + with mock_open_content( + "/proc/stat", + textwrap.dedent("""\ + cpu 1 0 0 0 0 0 0 0 0 0 + cpu0 1 0 0 0 0 0 0 0 0 0 + cpu1 1 0 0 0 0 0 0 0 0 0 + """).encode()) as m: + # Increase "user" while steal goes "backwards" to zero. + cpu_percent = psutil.cpu_percent() + assert m.called + cpu_percent_percpu = psutil.cpu_percent(percpu=True) + cpu_times_percent = psutil.cpu_times_percent() + cpu_times_percent_percpu = psutil.cpu_times_percent(percpu=True) + self.assertNotEqual(cpu_percent, 0) + self.assertNotEqual(sum(cpu_percent_percpu), 0) + self.assertNotEqual(sum(cpu_times_percent), 0) + self.assertNotEqual(sum(cpu_times_percent), 100.0) + self.assertNotEqual(sum(map(sum, cpu_times_percent_percpu)), 0) + self.assertNotEqual(sum(map(sum, cpu_times_percent_percpu)), 100.0) + self.assertEqual(cpu_times_percent.steal, 0) + self.assertNotEqual(cpu_times_percent.user, 0) + + def test_boot_time_mocked(self): + with mock.patch('psutil._common.open', create=True) as m: + self.assertRaises( + RuntimeError, + psutil._pslinux.boot_time) + assert m.called + + def test_users_mocked(self): + # Make sure ':0' and ':0.0' (returned by C ext) are converted + # to 'localhost'. + with mock.patch('psutil._pslinux.cext.users', + return_value=[('giampaolo', 'pts/2', ':0', + 1436573184.0, True, 2)]) as m: + self.assertEqual(psutil.users()[0].host, 'localhost') + assert m.called + with mock.patch('psutil._pslinux.cext.users', + return_value=[('giampaolo', 'pts/2', ':0.0', + 1436573184.0, True, 2)]) as m: + self.assertEqual(psutil.users()[0].host, 'localhost') + assert m.called + # ...otherwise it should be returned as-is + with mock.patch('psutil._pslinux.cext.users', + return_value=[('giampaolo', 'pts/2', 'foo', + 1436573184.0, True, 2)]) as m: + self.assertEqual(psutil.users()[0].host, 'foo') + assert m.called + + def test_procfs_path(self): + tdir = self.get_testfn() + os.mkdir(tdir) + try: + psutil.PROCFS_PATH = tdir + self.assertRaises(IOError, psutil.virtual_memory) + self.assertRaises(IOError, psutil.cpu_times) + self.assertRaises(IOError, psutil.cpu_times, percpu=True) + self.assertRaises(IOError, psutil.boot_time) + # self.assertRaises(IOError, psutil.pids) + self.assertRaises(IOError, psutil.net_connections) + self.assertRaises(IOError, psutil.net_io_counters) + self.assertRaises(IOError, psutil.net_if_stats) + # self.assertRaises(IOError, psutil.disk_io_counters) + self.assertRaises(IOError, psutil.disk_partitions) + self.assertRaises(psutil.NoSuchProcess, psutil.Process) + finally: + psutil.PROCFS_PATH = "/proc" + + @retry_on_failure() + def test_issue_687(self): + # In case of thread ID: + # - pid_exists() is supposed to return False + # - Process(tid) is supposed to work + # - pids() should not return the TID + # See: https://github.com/giampaolo/psutil/issues/687 + with ThreadTask(): + p = psutil.Process() + threads = p.threads() + self.assertEqual(len(threads), 2) + tid = sorted(threads, key=lambda x: x.id)[1].id + self.assertNotEqual(p.pid, tid) + pt = psutil.Process(tid) + pt.as_dict() + self.assertNotIn(tid, psutil.pids()) + + def test_pid_exists_no_proc_status(self): + # Internally pid_exists relies on /proc/{pid}/status. + # Emulate a case where this file is empty in which case + # psutil is supposed to fall back on using pids(). + with mock_open_content("/proc/%s/status", "") as m: + assert psutil.pid_exists(os.getpid()) + assert m.called + + +# ===================================================================== +# --- sensors +# ===================================================================== + + +@unittest.skipIf(not LINUX, "LINUX only") +@unittest.skipIf(not HAS_BATTERY, "no battery") +class TestSensorsBattery(PsutilTestCase): + + @unittest.skipIf(not which("acpi"), "acpi utility not available") + def test_percent(self): + out = sh("acpi -b") + acpi_value = int(out.split(",")[1].strip().replace('%', '')) + psutil_value = psutil.sensors_battery().percent + self.assertAlmostEqual(acpi_value, psutil_value, delta=1) + + def test_emulate_power_plugged(self): + # Pretend the AC power cable is connected. + def open_mock(name, *args, **kwargs): + if name.endswith("AC0/online") or name.endswith("AC/online"): + return io.BytesIO(b"1") + else: + return orig_open(name, *args, **kwargs) + + orig_open = open + patch_point = 'builtins.open' if PY3 else '__builtin__.open' + with mock.patch(patch_point, side_effect=open_mock) as m: + self.assertEqual(psutil.sensors_battery().power_plugged, True) + self.assertEqual( + psutil.sensors_battery().secsleft, psutil.POWER_TIME_UNLIMITED) + assert m.called + + def test_emulate_power_plugged_2(self): + # Same as above but pretend /AC0/online does not exist in which + # case code relies on /status file. + def open_mock(name, *args, **kwargs): + if name.endswith("AC0/online") or name.endswith("AC/online"): + raise IOError(errno.ENOENT, "") + elif name.endswith("/status"): + return io.StringIO(u("charging")) + else: + return orig_open(name, *args, **kwargs) + + orig_open = open + patch_point = 'builtins.open' if PY3 else '__builtin__.open' + with mock.patch(patch_point, side_effect=open_mock) as m: + self.assertEqual(psutil.sensors_battery().power_plugged, True) + assert m.called + + def test_emulate_power_not_plugged(self): + # Pretend the AC power cable is not connected. + def open_mock(name, *args, **kwargs): + if name.endswith("AC0/online") or name.endswith("AC/online"): + return io.BytesIO(b"0") + else: + return orig_open(name, *args, **kwargs) + + orig_open = open + patch_point = 'builtins.open' if PY3 else '__builtin__.open' + with mock.patch(patch_point, side_effect=open_mock) as m: + self.assertEqual(psutil.sensors_battery().power_plugged, False) + assert m.called + + def test_emulate_power_not_plugged_2(self): + # Same as above but pretend /AC0/online does not exist in which + # case code relies on /status file. + def open_mock(name, *args, **kwargs): + if name.endswith("AC0/online") or name.endswith("AC/online"): + raise IOError(errno.ENOENT, "") + elif name.endswith("/status"): + return io.StringIO(u("discharging")) + else: + return orig_open(name, *args, **kwargs) + + orig_open = open + patch_point = 'builtins.open' if PY3 else '__builtin__.open' + with mock.patch(patch_point, side_effect=open_mock) as m: + self.assertEqual(psutil.sensors_battery().power_plugged, False) + assert m.called + + def test_emulate_power_undetermined(self): + # Pretend we can't know whether the AC power cable not + # connected (assert fallback to False). + def open_mock(name, *args, **kwargs): + if name.startswith("/sys/class/power_supply/AC0/online") or \ + name.startswith("/sys/class/power_supply/AC/online"): + raise IOError(errno.ENOENT, "") + elif name.startswith("/sys/class/power_supply/BAT0/status"): + return io.BytesIO(b"???") + else: + return orig_open(name, *args, **kwargs) + + orig_open = open + patch_point = 'builtins.open' if PY3 else '__builtin__.open' + with mock.patch(patch_point, side_effect=open_mock) as m: + self.assertIsNone(psutil.sensors_battery().power_plugged) + assert m.called + + def test_emulate_energy_full_0(self): + # Emulate a case where energy_full files returns 0. + with mock_open_content( + "/sys/class/power_supply/BAT0/energy_full", b"0") as m: + self.assertEqual(psutil.sensors_battery().percent, 0) + assert m.called + + def test_emulate_energy_full_not_avail(self): + # Emulate a case where energy_full file does not exist. + # Expected fallback on /capacity. + with mock_open_exception( + "/sys/class/power_supply/BAT0/energy_full", + IOError(errno.ENOENT, "")): + with mock_open_exception( + "/sys/class/power_supply/BAT0/charge_full", + IOError(errno.ENOENT, "")): + with mock_open_content( + "/sys/class/power_supply/BAT0/capacity", b"88"): + self.assertEqual(psutil.sensors_battery().percent, 88) + + def test_emulate_no_power(self): + # Emulate a case where /AC0/online file nor /BAT0/status exist. + with mock_open_exception( + "/sys/class/power_supply/AC/online", + IOError(errno.ENOENT, "")): + with mock_open_exception( + "/sys/class/power_supply/AC0/online", + IOError(errno.ENOENT, "")): + with mock_open_exception( + "/sys/class/power_supply/BAT0/status", + IOError(errno.ENOENT, "")): + self.assertIsNone(psutil.sensors_battery().power_plugged) + + +@unittest.skipIf(not LINUX, "LINUX only") +class TestSensorsBatteryEmulated(PsutilTestCase): + + def test_it(self): + def open_mock(name, *args, **kwargs): + if name.endswith("/energy_now"): + return io.StringIO(u("60000000")) + elif name.endswith("/power_now"): + return io.StringIO(u("0")) + elif name.endswith("/energy_full"): + return io.StringIO(u("60000001")) + else: + return orig_open(name, *args, **kwargs) + + orig_open = open + patch_point = 'builtins.open' if PY3 else '__builtin__.open' + with mock.patch('os.listdir', return_value=["BAT0"]) as mlistdir: + with mock.patch(patch_point, side_effect=open_mock) as mopen: + self.assertIsNotNone(psutil.sensors_battery()) + assert mlistdir.called + assert mopen.called + + +@unittest.skipIf(not LINUX, "LINUX only") +class TestSensorsTemperatures(PsutilTestCase): + + def test_emulate_class_hwmon(self): + def open_mock(name, *args, **kwargs): + if name.endswith('/name'): + return io.StringIO(u("name")) + elif name.endswith('/temp1_label'): + return io.StringIO(u("label")) + elif name.endswith('/temp1_input'): + return io.BytesIO(b"30000") + elif name.endswith('/temp1_max'): + return io.BytesIO(b"40000") + elif name.endswith('/temp1_crit'): + return io.BytesIO(b"50000") + else: + return orig_open(name, *args, **kwargs) + + orig_open = open + patch_point = 'builtins.open' if PY3 else '__builtin__.open' + with mock.patch(patch_point, side_effect=open_mock): + # Test case with /sys/class/hwmon + with mock.patch('glob.glob', + return_value=['/sys/class/hwmon/hwmon0/temp1']): + temp = psutil.sensors_temperatures()['name'][0] + self.assertEqual(temp.label, 'label') + self.assertEqual(temp.current, 30.0) + self.assertEqual(temp.high, 40.0) + self.assertEqual(temp.critical, 50.0) + + def test_emulate_class_thermal(self): + def open_mock(name, *args, **kwargs): + if name.endswith('0_temp'): + return io.BytesIO(b"50000") + elif name.endswith('temp'): + return io.BytesIO(b"30000") + elif name.endswith('0_type'): + return io.StringIO(u("critical")) + elif name.endswith('type'): + return io.StringIO(u("name")) + else: + return orig_open(name, *args, **kwargs) + + def glob_mock(path): + if path == '/sys/class/hwmon/hwmon*/temp*_*': + return [] + elif path == '/sys/class/hwmon/hwmon*/device/temp*_*': + return [] + elif path == '/sys/class/thermal/thermal_zone*': + return ['/sys/class/thermal/thermal_zone0'] + elif path == '/sys/class/thermal/thermal_zone0/trip_point*': + return ['/sys/class/thermal/thermal_zone1/trip_point_0_type', + '/sys/class/thermal/thermal_zone1/trip_point_0_temp'] + return [] + + orig_open = open + patch_point = 'builtins.open' if PY3 else '__builtin__.open' + with mock.patch(patch_point, side_effect=open_mock): + with mock.patch('glob.glob', create=True, side_effect=glob_mock): + temp = psutil.sensors_temperatures()['name'][0] + self.assertEqual(temp.label, '') + self.assertEqual(temp.current, 30.0) + self.assertEqual(temp.high, 50.0) + self.assertEqual(temp.critical, 50.0) + + +@unittest.skipIf(not LINUX, "LINUX only") +class TestSensorsFans(PsutilTestCase): + + def test_emulate_data(self): + def open_mock(name, *args, **kwargs): + if name.endswith('/name'): + return io.StringIO(u("name")) + elif name.endswith('/fan1_label'): + return io.StringIO(u("label")) + elif name.endswith('/fan1_input'): + return io.StringIO(u("2000")) + else: + return orig_open(name, *args, **kwargs) + + orig_open = open + patch_point = 'builtins.open' if PY3 else '__builtin__.open' + with mock.patch(patch_point, side_effect=open_mock): + with mock.patch('glob.glob', + return_value=['/sys/class/hwmon/hwmon2/fan1']): + fan = psutil.sensors_fans()['name'][0] + self.assertEqual(fan.label, 'label') + self.assertEqual(fan.current, 2000) + + +# ===================================================================== +# --- test process +# ===================================================================== + + +@unittest.skipIf(not LINUX, "LINUX only") +class TestProcess(PsutilTestCase): + + @retry_on_failure() + def test_memory_full_info(self): + testfn = self.get_testfn() + src = textwrap.dedent(""" + import time + with open("%s", "w") as f: + time.sleep(10) + """ % testfn) + sproc = self.pyrun(src) + call_until(lambda: os.listdir('.'), "'%s' not in ret" % testfn) + p = psutil.Process(sproc.pid) + time.sleep(.1) + mem = p.memory_full_info() + maps = p.memory_maps(grouped=False) + self.assertAlmostEqual( + mem.uss, sum([x.private_dirty + x.private_clean for x in maps]), + delta=4096) + self.assertAlmostEqual( + mem.pss, sum([x.pss for x in maps]), delta=4096) + self.assertAlmostEqual( + mem.swap, sum([x.swap for x in maps]), delta=4096) + + def test_memory_full_info_mocked(self): + # See: https://github.com/giampaolo/psutil/issues/1222 + with mock_open_content( + "/proc/%s/smaps" % os.getpid(), + textwrap.dedent("""\ + fffff0 r-xp 00000000 00:00 0 [vsyscall] + Size: 1 kB + Rss: 2 kB + Pss: 3 kB + Shared_Clean: 4 kB + Shared_Dirty: 5 kB + Private_Clean: 6 kB + Private_Dirty: 7 kB + Referenced: 8 kB + Anonymous: 9 kB + LazyFree: 10 kB + AnonHugePages: 11 kB + ShmemPmdMapped: 12 kB + Shared_Hugetlb: 13 kB + Private_Hugetlb: 14 kB + Swap: 15 kB + SwapPss: 16 kB + KernelPageSize: 17 kB + MMUPageSize: 18 kB + Locked: 19 kB + VmFlags: rd ex + """).encode()) as m: + p = psutil.Process() + mem = p.memory_full_info() + assert m.called + self.assertEqual(mem.uss, (6 + 7 + 14) * 1024) + self.assertEqual(mem.pss, 3 * 1024) + self.assertEqual(mem.swap, 15 * 1024) + + # On PYPY file descriptors are not closed fast enough. + @unittest.skipIf(PYPY, "unreliable on PYPY") + def test_open_files_mode(self): + def get_test_file(fname): + p = psutil.Process() + giveup_at = time.time() + GLOBAL_TIMEOUT + while True: + for file in p.open_files(): + if file.path == os.path.abspath(fname): + return file + elif time.time() > giveup_at: + break + raise RuntimeError("timeout looking for test file") + + # + testfn = self.get_testfn() + with open(testfn, "w"): + self.assertEqual(get_test_file(testfn).mode, "w") + with open(testfn, "r"): + self.assertEqual(get_test_file(testfn).mode, "r") + with open(testfn, "a"): + self.assertEqual(get_test_file(testfn).mode, "a") + # + with open(testfn, "r+"): + self.assertEqual(get_test_file(testfn).mode, "r+") + with open(testfn, "w+"): + self.assertEqual(get_test_file(testfn).mode, "r+") + with open(testfn, "a+"): + self.assertEqual(get_test_file(testfn).mode, "a+") + # note: "x" bit is not supported + if PY3: + safe_rmpath(testfn) + with open(testfn, "x"): + self.assertEqual(get_test_file(testfn).mode, "w") + safe_rmpath(testfn) + with open(testfn, "x+"): + self.assertEqual(get_test_file(testfn).mode, "r+") + + def test_open_files_file_gone(self): + # simulates a file which gets deleted during open_files() + # execution + p = psutil.Process() + files = p.open_files() + with open(self.get_testfn(), 'w'): + # give the kernel some time to see the new file + call_until(p.open_files, "len(ret) != %i" % len(files)) + with mock.patch('psutil._pslinux.os.readlink', + side_effect=OSError(errno.ENOENT, "")) as m: + files = p.open_files() + assert not files + assert m.called + # also simulate the case where os.readlink() returns EINVAL + # in which case psutil is supposed to 'continue' + with mock.patch('psutil._pslinux.os.readlink', + side_effect=OSError(errno.EINVAL, "")) as m: + self.assertEqual(p.open_files(), []) + assert m.called + + def test_open_files_fd_gone(self): + # Simulate a case where /proc/{pid}/fdinfo/{fd} disappears + # while iterating through fds. + # https://travis-ci.org/giampaolo/psutil/jobs/225694530 + p = psutil.Process() + files = p.open_files() + with open(self.get_testfn(), 'w'): + # give the kernel some time to see the new file + call_until(p.open_files, "len(ret) != %i" % len(files)) + patch_point = 'builtins.open' if PY3 else '__builtin__.open' + with mock.patch(patch_point, + side_effect=IOError(errno.ENOENT, "")) as m: + files = p.open_files() + assert not files + assert m.called + + def test_open_files_enametoolong(self): + # Simulate a case where /proc/{pid}/fd/{fd} symlink + # points to a file with full path longer than PATH_MAX, see: + # https://github.com/giampaolo/psutil/issues/1940 + p = psutil.Process() + files = p.open_files() + with open(self.get_testfn(), 'w'): + # give the kernel some time to see the new file + call_until(p.open_files, "len(ret) != %i" % len(files)) + patch_point = 'psutil._pslinux.os.readlink' + with mock.patch(patch_point, + side_effect=OSError(errno.ENAMETOOLONG, "")) as m: + files = p.open_files() + assert not files + assert m.called + + # --- mocked tests + + def test_terminal_mocked(self): + with mock.patch('psutil._pslinux._psposix.get_terminal_map', + return_value={}) as m: + self.assertIsNone(psutil._pslinux.Process(os.getpid()).terminal()) + assert m.called + + # TODO: re-enable this test. + # def test_num_ctx_switches_mocked(self): + # with mock.patch('psutil._common.open', create=True) as m: + # self.assertRaises( + # NotImplementedError, + # psutil._pslinux.Process(os.getpid()).num_ctx_switches) + # assert m.called + + def test_cmdline_mocked(self): + # see: https://github.com/giampaolo/psutil/issues/639 + p = psutil.Process() + fake_file = io.StringIO(u('foo\x00bar\x00')) + with mock.patch('psutil._common.open', + return_value=fake_file, create=True) as m: + self.assertEqual(p.cmdline(), ['foo', 'bar']) + assert m.called + fake_file = io.StringIO(u('foo\x00bar\x00\x00')) + with mock.patch('psutil._common.open', + return_value=fake_file, create=True) as m: + self.assertEqual(p.cmdline(), ['foo', 'bar', '']) + assert m.called + + def test_cmdline_spaces_mocked(self): + # see: https://github.com/giampaolo/psutil/issues/1179 + p = psutil.Process() + fake_file = io.StringIO(u('foo bar ')) + with mock.patch('psutil._common.open', + return_value=fake_file, create=True) as m: + self.assertEqual(p.cmdline(), ['foo', 'bar']) + assert m.called + fake_file = io.StringIO(u('foo bar ')) + with mock.patch('psutil._common.open', + return_value=fake_file, create=True) as m: + self.assertEqual(p.cmdline(), ['foo', 'bar', '']) + assert m.called + + def test_cmdline_mixed_separators(self): + # https://github.com/giampaolo/psutil/issues/ + # 1179#issuecomment-552984549 + p = psutil.Process() + fake_file = io.StringIO(u('foo\x20bar\x00')) + with mock.patch('psutil._common.open', + return_value=fake_file, create=True) as m: + self.assertEqual(p.cmdline(), ['foo', 'bar']) + assert m.called + + def test_readlink_path_deleted_mocked(self): + with mock.patch('psutil._pslinux.os.readlink', + return_value='/home/foo (deleted)'): + self.assertEqual(psutil.Process().exe(), "/home/foo") + self.assertEqual(psutil.Process().cwd(), "/home/foo") + + def test_threads_mocked(self): + # Test the case where os.listdir() returns a file (thread) + # which no longer exists by the time we open() it (race + # condition). threads() is supposed to ignore that instead + # of raising NSP. + def open_mock(name, *args, **kwargs): + if name.startswith('/proc/%s/task' % os.getpid()): + raise IOError(errno.ENOENT, "") + else: + return orig_open(name, *args, **kwargs) + + orig_open = open + patch_point = 'builtins.open' if PY3 else '__builtin__.open' + with mock.patch(patch_point, side_effect=open_mock) as m: + ret = psutil.Process().threads() + assert m.called + self.assertEqual(ret, []) + + # ...but if it bumps into something != ENOENT we want an + # exception. + def open_mock(name, *args, **kwargs): + if name.startswith('/proc/%s/task' % os.getpid()): + raise IOError(errno.EPERM, "") + else: + return orig_open(name, *args, **kwargs) + + with mock.patch(patch_point, side_effect=open_mock): + self.assertRaises(psutil.AccessDenied, psutil.Process().threads) + + def test_exe_mocked(self): + with mock.patch('psutil._pslinux.readlink', + side_effect=OSError(errno.ENOENT, "")) as m1: + with mock.patch('psutil.Process.cmdline', + side_effect=psutil.AccessDenied(0, "")) as m2: + # No such file error; might be raised also if /proc/pid/exe + # path actually exists for system processes with low pids + # (about 0-20). In this case psutil is supposed to return + # an empty string. + ret = psutil.Process().exe() + assert m1.called + assert m2.called + self.assertEqual(ret, "") + + # ...but if /proc/pid no longer exist we're supposed to treat + # it as an alias for zombie process + with mock.patch('psutil._pslinux.os.path.lexists', + return_value=False): + self.assertRaises( + psutil.ZombieProcess, psutil.Process().exe) + + def test_issue_1014(self): + # Emulates a case where smaps file does not exist. In this case + # wrap_exception decorator should not raise NoSuchProcess. + with mock_open_exception( + '/proc/%s/smaps' % os.getpid(), + IOError(errno.ENOENT, "")) as m: + p = psutil.Process() + with self.assertRaises(FileNotFoundError): + p.memory_maps() + assert m.called + + @unittest.skipIf(not HAS_RLIMIT, "not supported") + def test_rlimit_zombie(self): + # Emulate a case where rlimit() raises ENOSYS, which may + # happen in case of zombie process: + # https://travis-ci.org/giampaolo/psutil/jobs/51368273 + with mock.patch("psutil._pslinux.prlimit", + side_effect=OSError(errno.ENOSYS, "")) as m: + p = psutil.Process() + p.name() + with self.assertRaises(psutil.ZombieProcess) as exc: + p.rlimit(psutil.RLIMIT_NOFILE) + assert m.called + self.assertEqual(exc.exception.pid, p.pid) + self.assertEqual(exc.exception.name, p.name()) + + def test_cwd_zombie(self): + with mock.patch("psutil._pslinux.os.readlink", + side_effect=OSError(errno.ENOENT, "")) as m: + p = psutil.Process() + p.name() + with self.assertRaises(psutil.ZombieProcess) as exc: + p.cwd() + assert m.called + self.assertEqual(exc.exception.pid, p.pid) + self.assertEqual(exc.exception.name, p.name()) + + def test_stat_file_parsing(self): + args = [ + "0", # pid + "(cat)", # name + "Z", # status + "1", # ppid + "0", # pgrp + "0", # session + "0", # tty + "0", # tpgid + "0", # flags + "0", # minflt + "0", # cminflt + "0", # majflt + "0", # cmajflt + "2", # utime + "3", # stime + "4", # cutime + "5", # cstime + "0", # priority + "0", # nice + "0", # num_threads + "0", # itrealvalue + "6", # starttime + "0", # vsize + "0", # rss + "0", # rsslim + "0", # startcode + "0", # endcode + "0", # startstack + "0", # kstkesp + "0", # kstkeip + "0", # signal + "0", # blocked + "0", # sigignore + "0", # sigcatch + "0", # wchan + "0", # nswap + "0", # cnswap + "0", # exit_signal + "6", # processor + "0", # rt priority + "0", # policy + "7", # delayacct_blkio_ticks + ] + content = " ".join(args).encode() + with mock_open_content('/proc/%s/stat' % os.getpid(), content): + p = psutil.Process() + self.assertEqual(p.name(), 'cat') + self.assertEqual(p.status(), psutil.STATUS_ZOMBIE) + self.assertEqual(p.ppid(), 1) + self.assertEqual( + p.create_time(), 6 / CLOCK_TICKS + psutil.boot_time()) + cpu = p.cpu_times() + self.assertEqual(cpu.user, 2 / CLOCK_TICKS) + self.assertEqual(cpu.system, 3 / CLOCK_TICKS) + self.assertEqual(cpu.children_user, 4 / CLOCK_TICKS) + self.assertEqual(cpu.children_system, 5 / CLOCK_TICKS) + self.assertEqual(cpu.iowait, 7 / CLOCK_TICKS) + self.assertEqual(p.cpu_num(), 6) + + def test_status_file_parsing(self): + with mock_open_content( + '/proc/%s/status' % os.getpid(), + textwrap.dedent("""\ + Uid:\t1000\t1001\t1002\t1003 + Gid:\t1004\t1005\t1006\t1007 + Threads:\t66 + Cpus_allowed:\tf + Cpus_allowed_list:\t0-7 + voluntary_ctxt_switches:\t12 + nonvoluntary_ctxt_switches:\t13""").encode()): + p = psutil.Process() + self.assertEqual(p.num_ctx_switches().voluntary, 12) + self.assertEqual(p.num_ctx_switches().involuntary, 13) + self.assertEqual(p.num_threads(), 66) + uids = p.uids() + self.assertEqual(uids.real, 1000) + self.assertEqual(uids.effective, 1001) + self.assertEqual(uids.saved, 1002) + gids = p.gids() + self.assertEqual(gids.real, 1004) + self.assertEqual(gids.effective, 1005) + self.assertEqual(gids.saved, 1006) + self.assertEqual(p._proc._get_eligible_cpus(), list(range(0, 8))) + + def test_connections_enametoolong(self): + # Simulate a case where /proc/{pid}/fd/{fd} symlink points to + # a file with full path longer than PATH_MAX, see: + # https://github.com/giampaolo/psutil/issues/1940 + with mock.patch('psutil._pslinux.os.readlink', + side_effect=OSError(errno.ENAMETOOLONG, "")) as m: + p = psutil.Process() + assert not p.connections() + assert m.called + + +@unittest.skipIf(not LINUX, "LINUX only") +class TestProcessAgainstStatus(PsutilTestCase): + """/proc/pid/stat and /proc/pid/status have many values in common. + Whenever possible, psutil uses /proc/pid/stat (it's faster). + For all those cases we check that the value found in + /proc/pid/stat (by psutil) matches the one found in + /proc/pid/status. + """ + + @classmethod + def setUpClass(cls): + cls.proc = psutil.Process() + + def read_status_file(self, linestart): + with psutil._psplatform.open_text( + '/proc/%s/status' % self.proc.pid) as f: + for line in f: + line = line.strip() + if line.startswith(linestart): + value = line.partition('\t')[2] + try: + return int(value) + except ValueError: + return value + raise ValueError("can't find %r" % linestart) + + def test_name(self): + value = self.read_status_file("Name:") + self.assertEqual(self.proc.name(), value) + + def test_status(self): + value = self.read_status_file("State:") + value = value[value.find('(') + 1:value.rfind(')')] + value = value.replace(' ', '-') + self.assertEqual(self.proc.status(), value) + + def test_ppid(self): + value = self.read_status_file("PPid:") + self.assertEqual(self.proc.ppid(), value) + + def test_num_threads(self): + value = self.read_status_file("Threads:") + self.assertEqual(self.proc.num_threads(), value) + + def test_uids(self): + value = self.read_status_file("Uid:") + value = tuple(map(int, value.split()[1:4])) + self.assertEqual(self.proc.uids(), value) + + def test_gids(self): + value = self.read_status_file("Gid:") + value = tuple(map(int, value.split()[1:4])) + self.assertEqual(self.proc.gids(), value) + + @retry_on_failure() + def test_num_ctx_switches(self): + value = self.read_status_file("voluntary_ctxt_switches:") + self.assertEqual(self.proc.num_ctx_switches().voluntary, value) + value = self.read_status_file("nonvoluntary_ctxt_switches:") + self.assertEqual(self.proc.num_ctx_switches().involuntary, value) + + def test_cpu_affinity(self): + value = self.read_status_file("Cpus_allowed_list:") + if '-' in str(value): + min_, max_ = map(int, value.split('-')) + self.assertEqual( + self.proc.cpu_affinity(), list(range(min_, max_ + 1))) + + def test_cpu_affinity_eligible_cpus(self): + value = self.read_status_file("Cpus_allowed_list:") + with mock.patch("psutil._pslinux.per_cpu_times") as m: + self.proc._proc._get_eligible_cpus() + if '-' in str(value): + assert not m.called + else: + assert m.called + + +# ===================================================================== +# --- test utils +# ===================================================================== + + +@unittest.skipIf(not LINUX, "LINUX only") +class TestUtils(PsutilTestCase): + + def test_readlink(self): + with mock.patch("os.readlink", return_value="foo (deleted)") as m: + self.assertEqual(psutil._psplatform.readlink("bar"), "foo") + assert m.called + + def test_cat(self): + testfn = self.get_testfn() + with open(testfn, "wt") as f: + f.write("foo ") + self.assertEqual(psutil._psplatform.cat(testfn, binary=False), "foo") + self.assertEqual(psutil._psplatform.cat(testfn, binary=True), b"foo") + self.assertEqual( + psutil._psplatform.cat(testfn + '??', fallback="bar"), "bar") + + +if __name__ == '__main__': + from psutil.tests.runner import run_from_name + run_from_name(__file__) diff --git a/shared/package-files/0a/0a5527ff0c25031bbd3eec670e2743655fd2f8a0d0b0b03669855dc08c34433a/__init__.py b/shared/package-files/0a/0a5527ff0c25031bbd3eec670e2743655fd2f8a0d0b0b03669855dc08c34433a/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e4f2bd35a5dc213cfb16dade89ef152bae35bf68 --- /dev/null +++ b/shared/package-files/0a/0a5527ff0c25031bbd3eec670e2743655fd2f8a0d0b0b03669855dc08c34433a/__init__.py @@ -0,0 +1,3 @@ +# Copyright (C) 2012 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause +"""Incremental repodata feature based on .jlap patch files.""" diff --git a/shared/package-files/0a/0a558ba6b30985fea891436ef405fa02bf485d980a918d2736e0f31d13bbd079/test_util.py b/shared/package-files/0a/0a558ba6b30985fea891436ef405fa02bf485d980a918d2736e0f31d13bbd079/test_util.py new file mode 100644 index 0000000000000000000000000000000000000000..ff55330d70b28c5459a4c0915dd93c8640a91add --- /dev/null +++ b/shared/package-files/0a/0a558ba6b30985fea891436ef405fa02bf485d980a918d2736e0f31d13bbd079/test_util.py @@ -0,0 +1,14 @@ +import numpy as np + +from pandas import DataFrame +from pandas.tests.copy_view.util import get_array + + +def test_get_array_numpy(): + df = DataFrame({"a": [1, 2, 3]}) + assert np.shares_memory(get_array(df, "a"), get_array(df, "a")) + + +def test_get_array_masked(): + df = DataFrame({"a": [1, 2, 3]}, dtype="Int64") + assert np.shares_memory(get_array(df, "a"), get_array(df, "a")) diff --git a/shared/package-files/0a/0a584f3c248d41228e81729bcde6cf4c8a88a54a46ccd7047bdaad02d75ca64d/RedispatchFunctions.h b/shared/package-files/0a/0a584f3c248d41228e81729bcde6cf4c8a88a54a46ccd7047bdaad02d75ca64d/RedispatchFunctions.h new file mode 100644 index 0000000000000000000000000000000000000000..474607d3951bd7d14f2e62635ddc2cb4fb2fa26b --- /dev/null +++ b/shared/package-files/0a/0a584f3c248d41228e81729bcde6cf4c8a88a54a46ccd7047bdaad02d75ca64d/RedispatchFunctions.h @@ -0,0 +1,24791 @@ +#pragma once + +// @generated by torchgen/gen.py from RedispatchFunctions.h + +#ifdef TORCH_ASSERT_ONLY_METHOD_OPERATORS +#error This change adds a dependency on all pytorch operators, meaning the \ + file will need to be re-compiled every time an operator is changed or added. \ + Consider using the at::_ops::{name}::redispatch() interface by including \ + the specific operator from +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace at { + +namespace redispatch { + + // aten::_cast_Byte(Tensor self, bool non_blocking=False) -> Tensor + inline at::Tensor _cast_Byte(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, bool non_blocking=false) { + return at::_ops::_cast_Byte::redispatch(dispatchKeySet, self, non_blocking); + } + + // aten::_cast_Char(Tensor self, bool non_blocking=False) -> Tensor + inline at::Tensor _cast_Char(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, bool non_blocking=false) { + return at::_ops::_cast_Char::redispatch(dispatchKeySet, self, non_blocking); + } + + // aten::_cast_Double(Tensor self, bool non_blocking=False) -> Tensor + inline at::Tensor _cast_Double(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, bool non_blocking=false) { + return at::_ops::_cast_Double::redispatch(dispatchKeySet, self, non_blocking); + } + + // aten::_cast_Float(Tensor self, bool non_blocking=False) -> Tensor + inline at::Tensor _cast_Float(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, bool non_blocking=false) { + return at::_ops::_cast_Float::redispatch(dispatchKeySet, self, non_blocking); + } + + // aten::_cast_Int(Tensor self, bool non_blocking=False) -> Tensor + inline at::Tensor _cast_Int(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, bool non_blocking=false) { + return at::_ops::_cast_Int::redispatch(dispatchKeySet, self, non_blocking); + } + + // aten::_cast_Long(Tensor self, bool non_blocking=False) -> Tensor + inline at::Tensor _cast_Long(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, bool non_blocking=false) { + return at::_ops::_cast_Long::redispatch(dispatchKeySet, self, non_blocking); + } + + // aten::_cast_Short(Tensor self, bool non_blocking=False) -> Tensor + inline at::Tensor _cast_Short(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, bool non_blocking=false) { + return at::_ops::_cast_Short::redispatch(dispatchKeySet, self, non_blocking); + } + + // aten::_cast_Half(Tensor self, bool non_blocking=False) -> Tensor + inline at::Tensor _cast_Half(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, bool non_blocking=false) { + return at::_ops::_cast_Half::redispatch(dispatchKeySet, self, non_blocking); + } + + // aten::_backward(Tensor self, Tensor[] inputs, Tensor? gradient=None, bool? retain_graph=None, bool create_graph=False) -> () + inline void __dispatch__backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::TensorList inputs, const c10::optional & gradient={}, c10::optional retain_graph=c10::nullopt, bool create_graph=false) { + return at::_ops::_backward::redispatch(dispatchKeySet, self, inputs, gradient, retain_graph, create_graph); + } + + // aten::set_data(Tensor(a!) self, Tensor new_data) -> () + inline void __dispatch_set_data(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & new_data) { + return at::_ops::set_data::redispatch(dispatchKeySet, self, new_data); + } + + // aten::data(Tensor self) -> Tensor + inline at::Tensor __dispatch_data(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::data::redispatch(dispatchKeySet, self); + } + + // aten::is_leaf(Tensor self) -> bool + inline bool __dispatch_is_leaf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::is_leaf::redispatch(dispatchKeySet, self); + } + + // aten::output_nr(Tensor self) -> int + inline int64_t __dispatch_output_nr(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::output_nr::redispatch(dispatchKeySet, self); + } + + // aten::_version(Tensor self) -> int + inline int64_t __dispatch__version(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::_version::redispatch(dispatchKeySet, self); + } + + // aten::requires_grad_(Tensor(a!) self, bool requires_grad=True) -> Tensor(a!) + inline at::Tensor & __dispatch_requires_grad_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, bool requires_grad=true) { + return at::_ops::requires_grad_::redispatch(dispatchKeySet, self, requires_grad); + } + + // aten::retain_grad(Tensor(a!) self) -> () + inline void __dispatch_retain_grad(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::retain_grad::redispatch(dispatchKeySet, self); + } + + // aten::retains_grad(Tensor self) -> bool + inline bool __dispatch_retains_grad(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::retains_grad::redispatch(dispatchKeySet, self); + } + + // aten::_fw_primal(Tensor(a) self, int level) -> Tensor(a) + inline at::Tensor _fw_primal(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t level) { + return at::_ops::_fw_primal::redispatch(dispatchKeySet, self, level); + } + + // aten::_make_dual(Tensor(a) primal, Tensor tangent, int level) -> Tensor(a) + inline at::Tensor _make_dual(c10::DispatchKeySet dispatchKeySet, const at::Tensor & primal, const at::Tensor & tangent, int64_t level) { + return at::_ops::_make_dual::redispatch(dispatchKeySet, primal, tangent, level); + } + + // aten::_unpack_dual(Tensor(a) dual, int level) -> (Tensor(a) primal, Tensor tangent) + inline ::std::tuple _unpack_dual(c10::DispatchKeySet dispatchKeySet, const at::Tensor & dual, int64_t level) { + return at::_ops::_unpack_dual::redispatch(dispatchKeySet, dual, level); + } + + // aten::_new_zeros_with_same_feature_meta(Tensor self, Tensor other, *, int self_num_batch_dims=0) -> Tensor + inline at::Tensor _new_zeros_with_same_feature_meta(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, int64_t self_num_batch_dims=0) { + return at::_ops::_new_zeros_with_same_feature_meta::redispatch(dispatchKeySet, self, other, self_num_batch_dims); + } + + // aten::_has_same_storage_numel(Tensor self, Tensor other) -> bool + inline bool _has_same_storage_numel(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::_has_same_storage_numel::redispatch(dispatchKeySet, self, other); + } + + // aten::rename_(Tensor(a!) self, Dimname[]? names) -> Tensor(a!) + inline at::Tensor & rename_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, c10::optional names) { + return at::_ops::rename_::redispatch(dispatchKeySet, self, names); + } + + // aten::rename(Tensor(a) self, Dimname[]? names) -> Tensor(a) + inline at::Tensor rename(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional names) { + return at::_ops::rename::redispatch(dispatchKeySet, self, names); + } + + // aten::align_to(Tensor(a) self, Dimname[] names) -> Tensor(a) + inline at::Tensor align_to(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::DimnameList names) { + return at::_ops::align_to::redispatch(dispatchKeySet, self, names); + } + + // aten::align_to.ellipsis_idx(Tensor(a) self, Dimname[] order, int ellipsis_idx) -> Tensor(a) + inline at::Tensor align_to(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::DimnameList order, int64_t ellipsis_idx) { + return at::_ops::align_to_ellipsis_idx::redispatch(dispatchKeySet, self, order, ellipsis_idx); + } + + // aten::align_as(Tensor self, Tensor other) -> Tensor + inline at::Tensor align_as(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::align_as::redispatch(dispatchKeySet, self, other); + } + + // aten::align_tensors(Tensor[] tensors) -> Tensor[] + inline ::std::vector align_tensors(c10::DispatchKeySet dispatchKeySet, at::TensorList tensors) { + return at::_ops::align_tensors::redispatch(dispatchKeySet, tensors); + } + + // aten::_assert_async(Tensor self) -> () + inline void _assert_async(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::_assert_async::redispatch(dispatchKeySet, self); + } + + // aten::_assert_async.msg(Tensor self, str assert_msg) -> () + inline void _assert_async(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::string_view assert_msg) { + return at::_ops::_assert_async_msg::redispatch(dispatchKeySet, self, assert_msg); + } + + // aten::_assert_scalar(Scalar self, str assert_msg) -> () + inline void _assert_scalar(c10::DispatchKeySet dispatchKeySet, const at::Scalar & self, c10::string_view assert_msg) { + return at::_ops::_assert_scalar::redispatch(dispatchKeySet, self, assert_msg); + } + + // aten::_functional_assert_scalar(Scalar self, str assert_msg, Tensor dep_token) -> Tensor + inline at::Tensor _functional_assert_scalar(c10::DispatchKeySet dispatchKeySet, const at::Scalar & self, c10::string_view assert_msg, const at::Tensor & dep_token) { + return at::_ops::_functional_assert_scalar::redispatch(dispatchKeySet, self, assert_msg, dep_token); + } + + // aten::_functional_assert_async.msg(Tensor self, str assert_msg, Tensor dep_token) -> Tensor + inline at::Tensor _functional_assert_async(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::string_view assert_msg, const at::Tensor & dep_token) { + return at::_ops::_functional_assert_async_msg::redispatch(dispatchKeySet, self, assert_msg, dep_token); + } + + // aten::_assert_tensor_metadata(Tensor a, SymInt[]? size=None, SymInt[]? stride=None, ScalarType? dtype=None) -> () + inline void _assert_tensor_metadata(c10::DispatchKeySet dispatchKeySet, const at::Tensor & a, at::OptionalIntArrayRef size=c10::nullopt, at::OptionalIntArrayRef stride=c10::nullopt, c10::optional dtype=c10::nullopt) { + return at::_ops::_assert_tensor_metadata::redispatch(dispatchKeySet, a, size.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*size)) : c10::nullopt, stride.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*stride)) : c10::nullopt, dtype); + } + + // aten::_assert_tensor_metadata(Tensor a, SymInt[]? size=None, SymInt[]? stride=None, ScalarType? dtype=None) -> () + inline void _assert_tensor_metadata_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & a, at::OptionalSymIntArrayRef size=c10::nullopt, at::OptionalSymIntArrayRef stride=c10::nullopt, c10::optional dtype=c10::nullopt) { + return at::_ops::_assert_tensor_metadata::redispatch(dispatchKeySet, a, size, stride, dtype); + } + + // aten::_print(str s) -> () + inline void _print(c10::DispatchKeySet dispatchKeySet, c10::string_view s) { + return at::_ops::_print::redispatch(dispatchKeySet, s); + } + + // aten::sym_constrain_range(Scalar size, *, int? min=None, int? max=None) -> () + inline void sym_constrain_range(c10::DispatchKeySet dispatchKeySet, const at::Scalar & size, c10::optional min=c10::nullopt, c10::optional max=c10::nullopt) { + return at::_ops::sym_constrain_range::redispatch(dispatchKeySet, size, min, max); + } + + // aten::sym_constrain_range_for_size(Scalar size, *, int? min=None, int? max=None) -> () + inline void sym_constrain_range_for_size(c10::DispatchKeySet dispatchKeySet, const at::Scalar & size, c10::optional min=c10::nullopt, c10::optional max=c10::nullopt) { + return at::_ops::sym_constrain_range_for_size::redispatch(dispatchKeySet, size, min, max); + } + + // aten::_functional_sym_constrain_range(Scalar size, int? min, int? max, Tensor dep_token) -> Tensor + inline at::Tensor _functional_sym_constrain_range(c10::DispatchKeySet dispatchKeySet, const at::Scalar & size, c10::optional min, c10::optional max, const at::Tensor & dep_token) { + return at::_ops::_functional_sym_constrain_range::redispatch(dispatchKeySet, size, min, max, dep_token); + } + + // aten::_functional_sym_constrain_range_for_size(Scalar size, int? min, int? max, Tensor dep_token) -> Tensor + inline at::Tensor _functional_sym_constrain_range_for_size(c10::DispatchKeySet dispatchKeySet, const at::Scalar & size, c10::optional min, c10::optional max, const at::Tensor & dep_token) { + return at::_ops::_functional_sym_constrain_range_for_size::redispatch(dispatchKeySet, size, min, max, dep_token); + } + + // aten::_make_dep_token(*, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, MemoryFormat? memory_format=None) -> Tensor + inline at::Tensor _make_dep_token(c10::DispatchKeySet dispatchKeySet, at::TensorOptions options={}, c10::optional memory_format=c10::nullopt) { + return at::_ops::_make_dep_token::redispatch(dispatchKeySet, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt(), c10::impl::check_tensor_options_and_extract_memory_format(options, memory_format)); + } + + // aten::_make_dep_token(*, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, MemoryFormat? memory_format=None) -> Tensor + inline at::Tensor _make_dep_token(c10::DispatchKeySet dispatchKeySet, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory, c10::optional memory_format) { + return at::_ops::_make_dep_token::redispatch(dispatchKeySet, dtype, layout, device, pin_memory, memory_format); + } + + // aten::refine_names(Tensor(a) self, Dimname[] names) -> Tensor(a) + inline at::Tensor refine_names(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::DimnameList names) { + return at::_ops::refine_names::redispatch(dispatchKeySet, self, names); + } + + // aten::_use_cudnn_ctc_loss(Tensor log_probs, Tensor targets, int[] input_lengths, int[] target_lengths, int blank) -> bool + inline bool _use_cudnn_ctc_loss(c10::DispatchKeySet dispatchKeySet, const at::Tensor & log_probs, const at::Tensor & targets, at::IntArrayRef input_lengths, at::IntArrayRef target_lengths, int64_t blank) { + return at::_ops::_use_cudnn_ctc_loss::redispatch(dispatchKeySet, log_probs, targets, input_lengths, target_lengths, blank); + } + + // aten::_use_cudnn_ctc_loss.Tensor(Tensor log_probs, Tensor targets, Tensor input_lengths, Tensor target_lengths, int blank) -> bool + inline bool _use_cudnn_ctc_loss(c10::DispatchKeySet dispatchKeySet, const at::Tensor & log_probs, const at::Tensor & targets, const at::Tensor & input_lengths, const at::Tensor & target_lengths, int64_t blank) { + return at::_ops::_use_cudnn_ctc_loss_Tensor::redispatch(dispatchKeySet, log_probs, targets, input_lengths, target_lengths, blank); + } + + // aten::_cudnn_ctc_loss(Tensor log_probs, Tensor targets, int[] input_lengths, int[] target_lengths, int blank, bool deterministic, bool zero_infinity) -> (Tensor, Tensor) + inline ::std::tuple _cudnn_ctc_loss(c10::DispatchKeySet dispatchKeySet, const at::Tensor & log_probs, const at::Tensor & targets, at::IntArrayRef input_lengths, at::IntArrayRef target_lengths, int64_t blank, bool deterministic, bool zero_infinity) { + return at::_ops::_cudnn_ctc_loss::redispatch(dispatchKeySet, log_probs, targets, input_lengths, target_lengths, blank, deterministic, zero_infinity); + } + + // aten::_cudnn_ctc_loss.Tensor(Tensor log_probs, Tensor targets, Tensor input_lengths, Tensor target_lengths, int blank, bool deterministic, bool zero_infinity) -> (Tensor, Tensor) + inline ::std::tuple _cudnn_ctc_loss(c10::DispatchKeySet dispatchKeySet, const at::Tensor & log_probs, const at::Tensor & targets, const at::Tensor & input_lengths, const at::Tensor & target_lengths, int64_t blank, bool deterministic, bool zero_infinity) { + return at::_ops::_cudnn_ctc_loss_Tensor::redispatch(dispatchKeySet, log_probs, targets, input_lengths, target_lengths, blank, deterministic, zero_infinity); + } + + // aten::_use_cudnn_rnn_flatten_weight() -> bool + inline bool _use_cudnn_rnn_flatten_weight(c10::DispatchKeySet dispatchKeySet) { + return at::_ops::_use_cudnn_rnn_flatten_weight::redispatch(dispatchKeySet); + } + + // aten::_cudnn_rnn_flatten_weight(Tensor[] weight_arr, int weight_stride0, SymInt input_size, int mode, SymInt hidden_size, SymInt proj_size, int num_layers, bool batch_first, bool bidirectional) -> Tensor + inline at::Tensor _cudnn_rnn_flatten_weight(c10::DispatchKeySet dispatchKeySet, at::TensorList weight_arr, int64_t weight_stride0, int64_t input_size, int64_t mode, int64_t hidden_size, int64_t proj_size, int64_t num_layers, bool batch_first, bool bidirectional) { + return at::_ops::_cudnn_rnn_flatten_weight::redispatch(dispatchKeySet, weight_arr, weight_stride0, input_size, mode, hidden_size, proj_size, num_layers, batch_first, bidirectional); + } + + // aten::_cudnn_rnn_flatten_weight(Tensor[] weight_arr, int weight_stride0, SymInt input_size, int mode, SymInt hidden_size, SymInt proj_size, int num_layers, bool batch_first, bool bidirectional) -> Tensor + inline at::Tensor _cudnn_rnn_flatten_weight_symint(c10::DispatchKeySet dispatchKeySet, at::TensorList weight_arr, int64_t weight_stride0, c10::SymInt input_size, int64_t mode, c10::SymInt hidden_size, c10::SymInt proj_size, int64_t num_layers, bool batch_first, bool bidirectional) { + return at::_ops::_cudnn_rnn_flatten_weight::redispatch(dispatchKeySet, weight_arr, weight_stride0, input_size, mode, hidden_size, proj_size, num_layers, batch_first, bidirectional); + } + + // aten::_cudnn_rnn(Tensor input, Tensor[] weight, int weight_stride0, Tensor? weight_buf, Tensor hx, Tensor? cx, 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, Tensor, Tensor, Tensor, Tensor) + inline ::std::tuple _cudnn_rnn(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, at::TensorList weight, int64_t weight_stride0, const c10::optional & weight_buf, const at::Tensor & hx, const c10::optional & cx, 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) { + return at::_ops::_cudnn_rnn::redispatch(dispatchKeySet, input, weight, weight_stride0, weight_buf, hx, cx, mode, hidden_size, proj_size, num_layers, batch_first, dropout, train, bidirectional, c10::fromIntArrayRefSlow(batch_sizes), dropout_state); + } + + // aten::_cudnn_rnn(Tensor input, Tensor[] weight, int weight_stride0, Tensor? weight_buf, Tensor hx, Tensor? cx, 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, Tensor, Tensor, Tensor, Tensor) + inline ::std::tuple _cudnn_rnn_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, at::TensorList weight, int64_t weight_stride0, const c10::optional & weight_buf, const at::Tensor & hx, const c10::optional & cx, 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) { + return at::_ops::_cudnn_rnn::redispatch(dispatchKeySet, input, weight, weight_stride0, weight_buf, hx, cx, mode, hidden_size, proj_size, num_layers, batch_first, dropout, train, bidirectional, batch_sizes, dropout_state); + } + + // 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(c10::DispatchKeySet dispatchKeySet, 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::redispatch(dispatchKeySet, 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(c10::DispatchKeySet dispatchKeySet, 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::redispatch(dispatchKeySet, 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_init_dropout_state(float dropout, bool train, int dropout_seed, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=False) -> Tensor + inline at::Tensor _cudnn_init_dropout_state(c10::DispatchKeySet dispatchKeySet, double dropout, bool train, int64_t dropout_seed, at::TensorOptions options) { + return at::_ops::_cudnn_init_dropout_state::redispatch(dispatchKeySet, dropout, train, dropout_seed, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::_cudnn_init_dropout_state(float dropout, bool train, int dropout_seed, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=False) -> Tensor + inline at::Tensor _cudnn_init_dropout_state(c10::DispatchKeySet dispatchKeySet, double dropout, bool train, int64_t dropout_seed, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::_cudnn_init_dropout_state::redispatch(dispatchKeySet, dropout, train, dropout_seed, dtype, layout, device, pin_memory); + } + + // aten::_debug_has_internal_overlap(Tensor self) -> int + inline int64_t _debug_has_internal_overlap(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::_debug_has_internal_overlap::redispatch(dispatchKeySet, self); + } + + // aten::_fused_dropout(Tensor self, float p, Generator? generator=None) -> (Tensor, Tensor) + inline ::std::tuple _fused_dropout(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, double p, c10::optional generator=c10::nullopt) { + return at::_ops::_fused_dropout::redispatch(dispatchKeySet, self, p, generator); + } + + // aten::_masked_scale(Tensor self, Tensor mask, float scale) -> Tensor + inline at::Tensor _masked_scale(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & mask, double scale) { + return at::_ops::_masked_scale::redispatch(dispatchKeySet, self, mask, scale); + } + + // aten::native_dropout(Tensor input, float p, bool? train) -> (Tensor, Tensor) + inline ::std::tuple native_dropout(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, double p, c10::optional train) { + return at::_ops::native_dropout::redispatch(dispatchKeySet, input, p, train); + } + + // aten::native_dropout_backward(Tensor grad_output, Tensor mask, float scale) -> Tensor + inline at::Tensor native_dropout_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & mask, double scale) { + return at::_ops::native_dropout_backward::redispatch(dispatchKeySet, grad_output, mask, scale); + } + + // aten::_sobol_engine_draw(Tensor quasi, int n, Tensor sobolstate, int dimension, int num_generated, ScalarType? dtype) -> (Tensor, Tensor) + inline ::std::tuple _sobol_engine_draw(c10::DispatchKeySet dispatchKeySet, const at::Tensor & quasi, int64_t n, const at::Tensor & sobolstate, int64_t dimension, int64_t num_generated, c10::optional dtype) { + return at::_ops::_sobol_engine_draw::redispatch(dispatchKeySet, quasi, n, sobolstate, dimension, num_generated, dtype); + } + + // aten::_sobol_engine_ff_(Tensor(a!) self, int n, Tensor sobolstate, int dimension, int num_generated) -> Tensor(a!) + inline at::Tensor & _sobol_engine_ff_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, int64_t n, const at::Tensor & sobolstate, int64_t dimension, int64_t num_generated) { + return at::_ops::_sobol_engine_ff_::redispatch(dispatchKeySet, self, n, sobolstate, dimension, num_generated); + } + + // aten::_sobol_engine_scramble_(Tensor(a!) self, Tensor ltm, int dimension) -> Tensor(a!) + inline at::Tensor & _sobol_engine_scramble_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & ltm, int64_t dimension) { + return at::_ops::_sobol_engine_scramble_::redispatch(dispatchKeySet, self, ltm, dimension); + } + + // aten::_sobol_engine_initialize_state_(Tensor(a!) self, int dimension) -> Tensor(a!) + inline at::Tensor & _sobol_engine_initialize_state_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, int64_t dimension) { + return at::_ops::_sobol_engine_initialize_state_::redispatch(dispatchKeySet, self, dimension); + } + + // aten::_reshape_from_tensor(Tensor self, Tensor shape) -> Tensor + inline at::Tensor _reshape_from_tensor(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & shape) { + return at::_ops::_reshape_from_tensor::redispatch(dispatchKeySet, self, shape); + } + + // aten::_shape_as_tensor(Tensor self) -> Tensor + inline at::Tensor _shape_as_tensor(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::_shape_as_tensor::redispatch(dispatchKeySet, self); + } + + // aten::dropout(Tensor input, float p, bool train) -> Tensor + inline at::Tensor dropout(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, double p, bool train) { + return at::_ops::dropout::redispatch(dispatchKeySet, input, p, train); + } + + // aten::dropout_(Tensor(a!) self, float p, bool train) -> Tensor(a!) + inline at::Tensor & dropout_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, double p, bool train) { + return at::_ops::dropout_::redispatch(dispatchKeySet, self, p, train); + } + + // aten::feature_dropout(Tensor input, float p, bool train) -> Tensor + inline at::Tensor feature_dropout(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, double p, bool train) { + return at::_ops::feature_dropout::redispatch(dispatchKeySet, input, p, train); + } + + // aten::feature_dropout_(Tensor(a!) self, float p, bool train) -> Tensor(a!) + inline at::Tensor & feature_dropout_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, double p, bool train) { + return at::_ops::feature_dropout_::redispatch(dispatchKeySet, self, p, train); + } + + // aten::alpha_dropout(Tensor input, float p, bool train) -> Tensor + inline at::Tensor alpha_dropout(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, double p, bool train) { + return at::_ops::alpha_dropout::redispatch(dispatchKeySet, input, p, train); + } + + // aten::alpha_dropout_(Tensor(a!) self, float p, bool train) -> Tensor(a!) + inline at::Tensor & alpha_dropout_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, double p, bool train) { + return at::_ops::alpha_dropout_::redispatch(dispatchKeySet, self, p, train); + } + + // aten::feature_alpha_dropout(Tensor input, float p, bool train) -> Tensor + inline at::Tensor feature_alpha_dropout(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, double p, bool train) { + return at::_ops::feature_alpha_dropout::redispatch(dispatchKeySet, input, p, train); + } + + // aten::feature_alpha_dropout_(Tensor(a!) self, float p, bool train) -> Tensor(a!) + inline at::Tensor & feature_alpha_dropout_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, double p, bool train) { + return at::_ops::feature_alpha_dropout_::redispatch(dispatchKeySet, self, p, train); + } + + // aten::abs(Tensor self) -> Tensor + inline at::Tensor abs(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::abs::redispatch(dispatchKeySet, self); + } + + // aten::abs_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & abs_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::abs_::redispatch(dispatchKeySet, self); + } + + // aten::abs.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & abs_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::abs_out::redispatch(dispatchKeySet, self, out); + } + + // aten::abs.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & abs_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::abs_out::redispatch(dispatchKeySet, self, out); + } + + // aten::absolute(Tensor self) -> Tensor + inline at::Tensor absolute(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::absolute::redispatch(dispatchKeySet, self); + } + + // aten::absolute_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & absolute_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::absolute_::redispatch(dispatchKeySet, self); + } + + // aten::absolute.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & absolute_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::absolute_out::redispatch(dispatchKeySet, self, out); + } + + // aten::absolute.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & absolute_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::absolute_out::redispatch(dispatchKeySet, self, out); + } + + // aten::angle(Tensor self) -> Tensor + inline at::Tensor angle(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::angle::redispatch(dispatchKeySet, self); + } + + // aten::angle.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & angle_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::angle_out::redispatch(dispatchKeySet, self, out); + } + + // aten::angle.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & angle_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::angle_out::redispatch(dispatchKeySet, self, out); + } + + // aten::view_as_real(Tensor(a) self) -> Tensor(a) + inline at::Tensor view_as_real(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::view_as_real::redispatch(dispatchKeySet, self); + } + + // aten::view_as_complex(Tensor(a) self) -> Tensor(a) + inline at::Tensor view_as_complex(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::view_as_complex::redispatch(dispatchKeySet, self); + } + + // aten::sgn(Tensor self) -> Tensor + inline at::Tensor sgn(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::sgn::redispatch(dispatchKeySet, self); + } + + // aten::sgn_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & sgn_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::sgn_::redispatch(dispatchKeySet, self); + } + + // aten::sgn.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & sgn_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::sgn_out::redispatch(dispatchKeySet, self, out); + } + + // aten::sgn.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & sgn_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::sgn_out::redispatch(dispatchKeySet, self, out); + } + + // aten::chalf(Tensor self, *, MemoryFormat? memory_format=None) -> Tensor + inline at::Tensor chalf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional memory_format=c10::nullopt) { + return at::_ops::chalf::redispatch(dispatchKeySet, self, memory_format); + } + + // aten::real(Tensor(a) self) -> Tensor(a) + inline at::Tensor real(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::real::redispatch(dispatchKeySet, self); + } + + // aten::imag(Tensor(a) self) -> Tensor(a) + inline at::Tensor imag(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::imag::redispatch(dispatchKeySet, self); + } + + // aten::_conj(Tensor(a) self) -> Tensor(a) + inline at::Tensor _conj(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::_conj::redispatch(dispatchKeySet, self); + } + + // aten::conj(Tensor(a) self) -> Tensor(a) + inline at::Tensor __dispatch_conj(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::conj::redispatch(dispatchKeySet, self); + } + + // aten::_conj_physical(Tensor self) -> Tensor + inline at::Tensor _conj_physical(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::_conj_physical::redispatch(dispatchKeySet, self); + } + + // aten::conj_physical(Tensor self) -> Tensor + inline at::Tensor conj_physical(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::conj_physical::redispatch(dispatchKeySet, self); + } + + // aten::conj_physical.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & conj_physical_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::conj_physical_out::redispatch(dispatchKeySet, self, out); + } + + // aten::conj_physical.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & conj_physical_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::conj_physical_out::redispatch(dispatchKeySet, self, out); + } + + // aten::conj_physical_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & conj_physical_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::conj_physical_::redispatch(dispatchKeySet, self); + } + + // aten::resolve_conj(Tensor(a) self) -> Tensor(a) + inline at::Tensor resolve_conj(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::resolve_conj::redispatch(dispatchKeySet, self); + } + + // aten::resolve_neg(Tensor(a) self) -> Tensor(a) + inline at::Tensor resolve_neg(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::resolve_neg::redispatch(dispatchKeySet, self); + } + + // aten::_neg_view(Tensor(a) self) -> Tensor(a) + inline at::Tensor _neg_view(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::_neg_view::redispatch(dispatchKeySet, self); + } + + // aten::acos(Tensor self) -> Tensor + inline at::Tensor acos(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::acos::redispatch(dispatchKeySet, self); + } + + // aten::acos_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & acos_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::acos_::redispatch(dispatchKeySet, self); + } + + // aten::acos.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & acos_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::acos_out::redispatch(dispatchKeySet, self, out); + } + + // aten::acos.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & acos_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::acos_out::redispatch(dispatchKeySet, self, out); + } + + // aten::arccos(Tensor self) -> Tensor + inline at::Tensor arccos(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::arccos::redispatch(dispatchKeySet, self); + } + + // aten::arccos_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & arccos_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::arccos_::redispatch(dispatchKeySet, self); + } + + // aten::arccos.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & arccos_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::arccos_out::redispatch(dispatchKeySet, self, out); + } + + // aten::arccos.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & arccos_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::arccos_out::redispatch(dispatchKeySet, self, out); + } + + // aten::avg_pool1d(Tensor self, int[1] kernel_size, int[1] stride=[], int[1] padding=0, bool ceil_mode=False, bool count_include_pad=True) -> Tensor + inline at::Tensor avg_pool1d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef stride={}, at::IntArrayRef padding=0, bool ceil_mode=false, bool count_include_pad=true) { + return at::_ops::avg_pool1d::redispatch(dispatchKeySet, self, kernel_size, stride, padding, ceil_mode, count_include_pad); + } + + // aten::adaptive_avg_pool1d(Tensor self, int[1] output_size) -> Tensor + inline at::Tensor adaptive_avg_pool1d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef output_size) { + return at::_ops::adaptive_avg_pool1d::redispatch(dispatchKeySet, self, output_size); + } + + // aten::adaptive_max_pool1d(Tensor self, int[1] output_size) -> (Tensor, Tensor) + inline ::std::tuple adaptive_max_pool1d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef output_size) { + return at::_ops::adaptive_max_pool1d::redispatch(dispatchKeySet, self, output_size); + } + + // aten::add.Tensor(Tensor self, Tensor other, *, Scalar alpha=1) -> Tensor + inline at::Tensor add(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, const at::Scalar & alpha=1) { + return at::_ops::add_Tensor::redispatch(dispatchKeySet, self, other, alpha); + } + + // aten::add_.Tensor(Tensor(a!) self, Tensor other, *, Scalar alpha=1) -> Tensor(a!) + inline at::Tensor & add_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & other, const at::Scalar & alpha=1) { + return at::_ops::add__Tensor::redispatch(dispatchKeySet, self, other, alpha); + } + + // aten::add.out(Tensor self, Tensor other, *, Scalar alpha=1, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & add_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other, const at::Scalar & alpha=1) { + return at::_ops::add_out::redispatch(dispatchKeySet, self, other, alpha, out); + } + + // aten::add.out(Tensor self, Tensor other, *, Scalar alpha=1, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & add_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, const at::Scalar & alpha, at::Tensor & out) { + return at::_ops::add_out::redispatch(dispatchKeySet, self, other, alpha, out); + } + + // aten::_add_relu.Tensor(Tensor self, Tensor other, *, Scalar alpha=1) -> Tensor + inline at::Tensor _add_relu(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, const at::Scalar & alpha=1) { + return at::_ops::_add_relu_Tensor::redispatch(dispatchKeySet, self, other, alpha); + } + + // aten::_add_relu_.Tensor(Tensor(a!) self, Tensor other, *, Scalar alpha=1) -> Tensor(a!) + inline at::Tensor & _add_relu_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & other, const at::Scalar & alpha=1) { + return at::_ops::_add_relu__Tensor::redispatch(dispatchKeySet, self, other, alpha); + } + + // aten::_add_relu.out(Tensor self, Tensor other, *, Scalar alpha=1, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _add_relu_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other, const at::Scalar & alpha=1) { + return at::_ops::_add_relu_out::redispatch(dispatchKeySet, self, other, alpha, out); + } + + // aten::_add_relu.out(Tensor self, Tensor other, *, Scalar alpha=1, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _add_relu_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, const at::Scalar & alpha, at::Tensor & out) { + return at::_ops::_add_relu_out::redispatch(dispatchKeySet, self, other, alpha, out); + } + + // aten::_add_relu.Scalar(Tensor self, Scalar other, Scalar alpha=1) -> Tensor + inline at::Tensor _add_relu(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other, const at::Scalar & alpha=1) { + return at::_ops::_add_relu_Scalar::redispatch(dispatchKeySet, self, other, alpha); + } + + // aten::_add_relu_.Scalar(Tensor(a!) self, Scalar other, Scalar alpha=1) -> Tensor(a!) + inline at::Tensor & _add_relu_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Scalar & other, const at::Scalar & alpha=1) { + return at::_ops::_add_relu__Scalar::redispatch(dispatchKeySet, self, other, alpha); + } + + // aten::add.Scalar(Tensor self, Scalar other, Scalar alpha=1) -> Tensor + inline at::Tensor add(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other, const at::Scalar & alpha=1) { + return at::_ops::add_Scalar::redispatch(dispatchKeySet, self, other, alpha); + } + + // aten::add_.Scalar(Tensor(a!) self, Scalar other, Scalar alpha=1) -> Tensor(a!) + inline at::Tensor & add_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Scalar & other, const at::Scalar & alpha=1) { + return at::_ops::add__Scalar::redispatch(dispatchKeySet, self, other, alpha); + } + + // aten::addmv(Tensor self, Tensor mat, Tensor vec, *, Scalar beta=1, Scalar alpha=1) -> Tensor + inline at::Tensor addmv(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & mat, const at::Tensor & vec, const at::Scalar & beta=1, const at::Scalar & alpha=1) { + return at::_ops::addmv::redispatch(dispatchKeySet, self, mat, vec, beta, alpha); + } + + // aten::addmv_(Tensor(a!) self, Tensor mat, Tensor vec, *, Scalar beta=1, Scalar alpha=1) -> Tensor(a!) + inline at::Tensor & addmv_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & mat, const at::Tensor & vec, const at::Scalar & beta=1, const at::Scalar & alpha=1) { + return at::_ops::addmv_::redispatch(dispatchKeySet, self, mat, vec, beta, alpha); + } + + // aten::addmv.out(Tensor self, Tensor mat, Tensor vec, *, Scalar beta=1, Scalar alpha=1, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & addmv_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & mat, const at::Tensor & vec, const at::Scalar & beta=1, const at::Scalar & alpha=1) { + return at::_ops::addmv_out::redispatch(dispatchKeySet, self, mat, vec, beta, alpha, out); + } + + // aten::addmv.out(Tensor self, Tensor mat, Tensor vec, *, Scalar beta=1, Scalar alpha=1, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & addmv_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & mat, const at::Tensor & vec, const at::Scalar & beta, const at::Scalar & alpha, at::Tensor & out) { + return at::_ops::addmv_out::redispatch(dispatchKeySet, self, mat, vec, beta, alpha, out); + } + + // aten::addr(Tensor self, Tensor vec1, Tensor vec2, *, Scalar beta=1, Scalar alpha=1) -> Tensor + inline at::Tensor addr(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & vec1, const at::Tensor & vec2, const at::Scalar & beta=1, const at::Scalar & alpha=1) { + return at::_ops::addr::redispatch(dispatchKeySet, self, vec1, vec2, beta, alpha); + } + + // aten::addr_(Tensor(a!) self, Tensor vec1, Tensor vec2, *, Scalar beta=1, Scalar alpha=1) -> Tensor(a!) + inline at::Tensor & addr_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & vec1, const at::Tensor & vec2, const at::Scalar & beta=1, const at::Scalar & alpha=1) { + return at::_ops::addr_::redispatch(dispatchKeySet, self, vec1, vec2, beta, alpha); + } + + // aten::addr.out(Tensor self, Tensor vec1, Tensor vec2, *, Scalar beta=1, Scalar alpha=1, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & addr_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & vec1, const at::Tensor & vec2, const at::Scalar & beta=1, const at::Scalar & alpha=1) { + return at::_ops::addr_out::redispatch(dispatchKeySet, self, vec1, vec2, beta, alpha, out); + } + + // aten::addr.out(Tensor self, Tensor vec1, Tensor vec2, *, Scalar beta=1, Scalar alpha=1, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & addr_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & vec1, const at::Tensor & vec2, const at::Scalar & beta, const at::Scalar & alpha, at::Tensor & out) { + return at::_ops::addr_out::redispatch(dispatchKeySet, self, vec1, vec2, beta, alpha, out); + } + + // aten::affine_grid_generator(Tensor theta, SymInt[] size, bool align_corners) -> Tensor + inline at::Tensor affine_grid_generator(c10::DispatchKeySet dispatchKeySet, const at::Tensor & theta, at::IntArrayRef size, bool align_corners) { + return at::_ops::affine_grid_generator::redispatch(dispatchKeySet, theta, c10::fromIntArrayRefSlow(size), align_corners); + } + + // aten::affine_grid_generator(Tensor theta, SymInt[] size, bool align_corners) -> Tensor + inline at::Tensor affine_grid_generator_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & theta, c10::SymIntArrayRef size, bool align_corners) { + return at::_ops::affine_grid_generator::redispatch(dispatchKeySet, theta, size, align_corners); + } + + // aten::affine_grid_generator_backward(Tensor grad, SymInt[] size, bool align_corners) -> Tensor + inline at::Tensor affine_grid_generator_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad, at::IntArrayRef size, bool align_corners) { + return at::_ops::affine_grid_generator_backward::redispatch(dispatchKeySet, 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(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad, c10::SymIntArrayRef size, bool align_corners) { + return at::_ops::affine_grid_generator_backward::redispatch(dispatchKeySet, grad, size, align_corners); + } + + // aten::_is_all_true(Tensor self) -> Tensor + inline at::Tensor _is_all_true(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::_is_all_true::redispatch(dispatchKeySet, self); + } + + // aten::_is_any_true(Tensor self) -> Tensor + inline at::Tensor _is_any_true(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::_is_any_true::redispatch(dispatchKeySet, self); + } + + // aten::_test_check_tensor(Tensor self) -> Tensor + inline at::Tensor _test_check_tensor(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::_test_check_tensor::redispatch(dispatchKeySet, self); + } + + // aten::_test_functorch_fallback(Tensor self, Tensor other) -> Tensor + inline at::Tensor _test_functorch_fallback(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::_test_functorch_fallback::redispatch(dispatchKeySet, self, other); + } + + // aten::all.dim(Tensor self, int dim, bool keepdim=False) -> Tensor + inline at::Tensor all(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, bool keepdim=false) { + return at::_ops::all_dim::redispatch(dispatchKeySet, self, dim, keepdim); + } + + // aten::all.dims(Tensor self, int[]? dim=None, bool keepdim=False) -> Tensor + inline at::Tensor all(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalIntArrayRef dim, bool keepdim=false) { + return at::_ops::all_dims::redispatch(dispatchKeySet, self, dim, keepdim); + } + + // aten::all.out(Tensor self, int dim, bool keepdim=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & all_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t dim, bool keepdim=false) { + return at::_ops::all_out::redispatch(dispatchKeySet, self, dim, keepdim, out); + } + + // aten::all.out(Tensor self, int dim, bool keepdim=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & all_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, bool keepdim, at::Tensor & out) { + return at::_ops::all_out::redispatch(dispatchKeySet, 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(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::OptionalIntArrayRef dim, bool keepdim=false) { + return at::_ops::all_dims_out::redispatch(dispatchKeySet, 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(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalIntArrayRef dim, bool keepdim, at::Tensor & out) { + return at::_ops::all_dims_out::redispatch(dispatchKeySet, self, dim, keepdim, out); + } + + // aten::all.dimname(Tensor self, Dimname dim, bool keepdim=False) -> Tensor + inline at::Tensor all(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim, bool keepdim=false) { + return at::_ops::all_dimname::redispatch(dispatchKeySet, self, dim, keepdim); + } + + // aten::all.dimname_out(Tensor self, Dimname dim, bool keepdim=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & all_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::Dimname dim, bool keepdim=false) { + return at::_ops::all_dimname_out::redispatch(dispatchKeySet, 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(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim, bool keepdim, at::Tensor & out) { + return at::_ops::all_dimname_out::redispatch(dispatchKeySet, self, dim, keepdim, out); + } + + // aten::allclose(Tensor self, Tensor other, float rtol=1e-05, float atol=1e-08, bool equal_nan=False) -> bool + inline bool allclose(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, double rtol=1e-05, double atol=1e-08, bool equal_nan=false) { + return at::_ops::allclose::redispatch(dispatchKeySet, self, other, rtol, atol, equal_nan); + } + + // aten::any.dim(Tensor self, int dim, bool keepdim=False) -> Tensor + inline at::Tensor any(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, bool keepdim=false) { + return at::_ops::any_dim::redispatch(dispatchKeySet, self, dim, keepdim); + } + + // aten::any.dims(Tensor self, int[]? dim=None, bool keepdim=False) -> Tensor + inline at::Tensor any(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalIntArrayRef dim, bool keepdim=false) { + return at::_ops::any_dims::redispatch(dispatchKeySet, self, dim, keepdim); + } + + // aten::any.out(Tensor self, int dim, bool keepdim=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & any_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t dim, bool keepdim=false) { + return at::_ops::any_out::redispatch(dispatchKeySet, self, dim, keepdim, out); + } + + // aten::any.out(Tensor self, int dim, bool keepdim=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & any_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, bool keepdim, at::Tensor & out) { + return at::_ops::any_out::redispatch(dispatchKeySet, self, dim, keepdim, out); + } + + // aten::any.dims_out(Tensor self, int[]? dim=None, bool keepdim=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & any_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::OptionalIntArrayRef dim, bool keepdim=false) { + return at::_ops::any_dims_out::redispatch(dispatchKeySet, self, dim, keepdim, out); + } + + // aten::any.dims_out(Tensor self, int[]? dim=None, bool keepdim=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & any_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalIntArrayRef dim, bool keepdim, at::Tensor & out) { + return at::_ops::any_dims_out::redispatch(dispatchKeySet, self, dim, keepdim, out); + } + + // aten::any.dimname(Tensor self, Dimname dim, bool keepdim=False) -> Tensor + inline at::Tensor any(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim, bool keepdim=false) { + return at::_ops::any_dimname::redispatch(dispatchKeySet, self, dim, keepdim); + } + + // aten::any.dimname_out(Tensor self, Dimname dim, bool keepdim=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & any_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::Dimname dim, bool keepdim=false) { + return at::_ops::any_dimname_out::redispatch(dispatchKeySet, self, dim, keepdim, out); + } + + // aten::any.dimname_out(Tensor self, Dimname dim, bool keepdim=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & any_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim, bool keepdim, at::Tensor & out) { + return at::_ops::any_dimname_out::redispatch(dispatchKeySet, self, dim, keepdim, out); + } + + // aten::arange(Scalar end, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor arange(c10::DispatchKeySet dispatchKeySet, const at::Scalar & end, at::TensorOptions options={}) { + return at::_ops::arange::redispatch(dispatchKeySet, end, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::arange(Scalar end, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor arange(c10::DispatchKeySet dispatchKeySet, const at::Scalar & end, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::arange::redispatch(dispatchKeySet, end, dtype, layout, device, pin_memory); + } + + // aten::arange.start(Scalar start, Scalar end, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor arange(c10::DispatchKeySet dispatchKeySet, const at::Scalar & start, const at::Scalar & end, at::TensorOptions options={}) { + return at::_ops::arange_start::redispatch(dispatchKeySet, start, end, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::arange.start(Scalar start, Scalar end, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor arange(c10::DispatchKeySet dispatchKeySet, const at::Scalar & start, const at::Scalar & end, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::arange_start::redispatch(dispatchKeySet, start, end, dtype, layout, device, pin_memory); + } + + // aten::arange.start_step(Scalar start, Scalar end, Scalar step=1, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor arange(c10::DispatchKeySet dispatchKeySet, const at::Scalar & start, const at::Scalar & end, const at::Scalar & step, at::TensorOptions options={}) { + return at::_ops::arange_start_step::redispatch(dispatchKeySet, start, end, step, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::arange.start_step(Scalar start, Scalar end, Scalar step=1, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor arange(c10::DispatchKeySet dispatchKeySet, const at::Scalar & start, const at::Scalar & end, const at::Scalar & step, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::arange_start_step::redispatch(dispatchKeySet, start, end, step, dtype, layout, device, pin_memory); + } + + // aten::arange.out(Scalar end, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & arange_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Scalar & end) { + return at::_ops::arange_out::redispatch(dispatchKeySet, end, out); + } + + // aten::arange.out(Scalar end, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & arange_outf(c10::DispatchKeySet dispatchKeySet, const at::Scalar & end, at::Tensor & out) { + return at::_ops::arange_out::redispatch(dispatchKeySet, end, out); + } + + // aten::arange.start_out(Scalar start, Scalar end, Scalar step=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & arange_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Scalar & start, const at::Scalar & end, const at::Scalar & step) { + return at::_ops::arange_start_out::redispatch(dispatchKeySet, start, end, step, out); + } + + // aten::arange.start_out(Scalar start, Scalar end, Scalar step=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & arange_outf(c10::DispatchKeySet dispatchKeySet, const at::Scalar & start, const at::Scalar & end, const at::Scalar & step, at::Tensor & out) { + return at::_ops::arange_start_out::redispatch(dispatchKeySet, start, end, step, out); + } + + // aten::_dim_arange(Tensor like, int dim) -> Tensor + inline at::Tensor _dim_arange(c10::DispatchKeySet dispatchKeySet, const at::Tensor & like, int64_t dim) { + return at::_ops::_dim_arange::redispatch(dispatchKeySet, like, dim); + } + + // aten::argmax(Tensor self, int? dim=None, bool keepdim=False) -> Tensor + inline at::Tensor argmax(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional dim=c10::nullopt, bool keepdim=false) { + return at::_ops::argmax::redispatch(dispatchKeySet, self, dim, keepdim); + } + + // aten::argmax.out(Tensor self, int? dim=None, bool keepdim=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & argmax_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::optional dim=c10::nullopt, bool keepdim=false) { + return at::_ops::argmax_out::redispatch(dispatchKeySet, self, dim, keepdim, out); + } + + // aten::argmax.out(Tensor self, int? dim=None, bool keepdim=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & argmax_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional dim, bool keepdim, at::Tensor & out) { + return at::_ops::argmax_out::redispatch(dispatchKeySet, self, dim, keepdim, out); + } + + // aten::argmin(Tensor self, int? dim=None, bool keepdim=False) -> Tensor + inline at::Tensor argmin(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional dim=c10::nullopt, bool keepdim=false) { + return at::_ops::argmin::redispatch(dispatchKeySet, self, dim, keepdim); + } + + // aten::argmin.out(Tensor self, int? dim=None, bool keepdim=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & argmin_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::optional dim=c10::nullopt, bool keepdim=false) { + return at::_ops::argmin_out::redispatch(dispatchKeySet, self, dim, keepdim, out); + } + + // aten::argmin.out(Tensor self, int? dim=None, bool keepdim=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & argmin_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional dim, bool keepdim, at::Tensor & out) { + return at::_ops::argmin_out::redispatch(dispatchKeySet, self, dim, keepdim, out); + } + + // aten::acosh(Tensor self) -> Tensor + inline at::Tensor acosh(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::acosh::redispatch(dispatchKeySet, self); + } + + // aten::acosh_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & acosh_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::acosh_::redispatch(dispatchKeySet, self); + } + + // aten::acosh.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & acosh_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::acosh_out::redispatch(dispatchKeySet, self, out); + } + + // aten::acosh.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & acosh_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::acosh_out::redispatch(dispatchKeySet, self, out); + } + + // aten::arccosh(Tensor self) -> Tensor + inline at::Tensor arccosh(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::arccosh::redispatch(dispatchKeySet, self); + } + + // aten::arccosh_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & arccosh_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::arccosh_::redispatch(dispatchKeySet, self); + } + + // aten::arccosh.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & arccosh_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::arccosh_out::redispatch(dispatchKeySet, self, out); + } + + // aten::arccosh.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & arccosh_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::arccosh_out::redispatch(dispatchKeySet, self, out); + } + + // aten::asinh(Tensor self) -> Tensor + inline at::Tensor asinh(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::asinh::redispatch(dispatchKeySet, self); + } + + // aten::asinh_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & asinh_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::asinh_::redispatch(dispatchKeySet, self); + } + + // aten::asinh.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & asinh_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::asinh_out::redispatch(dispatchKeySet, self, out); + } + + // aten::asinh.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & asinh_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::asinh_out::redispatch(dispatchKeySet, self, out); + } + + // aten::arcsinh(Tensor self) -> Tensor + inline at::Tensor arcsinh(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::arcsinh::redispatch(dispatchKeySet, self); + } + + // aten::arcsinh_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & arcsinh_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::arcsinh_::redispatch(dispatchKeySet, self); + } + + // aten::arcsinh.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & arcsinh_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::arcsinh_out::redispatch(dispatchKeySet, self, out); + } + + // aten::arcsinh.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & arcsinh_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::arcsinh_out::redispatch(dispatchKeySet, self, out); + } + + // aten::atanh(Tensor self) -> Tensor + inline at::Tensor atanh(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::atanh::redispatch(dispatchKeySet, self); + } + + // aten::atanh_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & atanh_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::atanh_::redispatch(dispatchKeySet, self); + } + + // aten::atanh.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & atanh_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::atanh_out::redispatch(dispatchKeySet, self, out); + } + + // aten::atanh.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & atanh_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::atanh_out::redispatch(dispatchKeySet, self, out); + } + + // aten::arctanh(Tensor self) -> Tensor + inline at::Tensor arctanh(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::arctanh::redispatch(dispatchKeySet, self); + } + + // aten::arctanh_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & arctanh_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::arctanh_::redispatch(dispatchKeySet, self); + } + + // aten::arctanh.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & arctanh_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::arctanh_out::redispatch(dispatchKeySet, self, out); + } + + // aten::arctanh.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & arctanh_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::arctanh_out::redispatch(dispatchKeySet, self, out); + } + + // aten::as_strided(Tensor(a) self, SymInt[] size, SymInt[] stride, SymInt? storage_offset=None) -> Tensor(a) + inline at::Tensor as_strided(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef size, at::IntArrayRef stride, c10::optional storage_offset=c10::nullopt) { + return at::_ops::as_strided::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(size), c10::fromIntArrayRefSlow(stride), storage_offset.has_value() ? c10::make_optional(c10::SymInt(*storage_offset)) : c10::nullopt); + } + + // aten::as_strided(Tensor(a) self, SymInt[] size, SymInt[] stride, SymInt? storage_offset=None) -> Tensor(a) + inline at::Tensor as_strided_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef size, c10::SymIntArrayRef stride, c10::optional storage_offset=c10::nullopt) { + return at::_ops::as_strided::redispatch(dispatchKeySet, self, size, stride, storage_offset); + } + + // aten::as_strided_(Tensor(a!) self, SymInt[] size, SymInt[] stride, SymInt? storage_offset=None) -> Tensor(a!) + inline const at::Tensor & as_strided_(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef size, at::IntArrayRef stride, c10::optional storage_offset=c10::nullopt) { + return at::_ops::as_strided_::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(size), c10::fromIntArrayRefSlow(stride), storage_offset.has_value() ? c10::make_optional(c10::SymInt(*storage_offset)) : c10::nullopt); + } + + // aten::as_strided_(Tensor(a!) self, SymInt[] size, SymInt[] stride, SymInt? storage_offset=None) -> Tensor(a!) + inline const at::Tensor & as_strided__symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef size, c10::SymIntArrayRef stride, c10::optional storage_offset=c10::nullopt) { + return at::_ops::as_strided_::redispatch(dispatchKeySet, self, size, stride, storage_offset); + } + + // aten::asin(Tensor self) -> Tensor + inline at::Tensor asin(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::asin::redispatch(dispatchKeySet, self); + } + + // aten::asin_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & asin_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::asin_::redispatch(dispatchKeySet, self); + } + + // aten::asin.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & asin_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::asin_out::redispatch(dispatchKeySet, self, out); + } + + // aten::asin.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & asin_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::asin_out::redispatch(dispatchKeySet, self, out); + } + + // aten::arcsin(Tensor self) -> Tensor + inline at::Tensor arcsin(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::arcsin::redispatch(dispatchKeySet, self); + } + + // aten::arcsin_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & arcsin_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::arcsin_::redispatch(dispatchKeySet, self); + } + + // aten::arcsin.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & arcsin_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::arcsin_out::redispatch(dispatchKeySet, self, out); + } + + // aten::arcsin.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & arcsin_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::arcsin_out::redispatch(dispatchKeySet, self, out); + } + + // aten::atan(Tensor self) -> Tensor + inline at::Tensor atan(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::atan::redispatch(dispatchKeySet, self); + } + + // aten::atan_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & atan_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::atan_::redispatch(dispatchKeySet, self); + } + + // aten::atan.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & atan_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::atan_out::redispatch(dispatchKeySet, self, out); + } + + // aten::atan.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & atan_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::atan_out::redispatch(dispatchKeySet, self, out); + } + + // aten::arctan(Tensor self) -> Tensor + inline at::Tensor arctan(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::arctan::redispatch(dispatchKeySet, self); + } + + // aten::arctan_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & arctan_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::arctan_::redispatch(dispatchKeySet, self); + } + + // aten::arctan.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & arctan_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::arctan_out::redispatch(dispatchKeySet, self, out); + } + + // aten::arctan.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & arctan_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::arctan_out::redispatch(dispatchKeySet, self, out); + } + + // aten::atleast_1d(Tensor self) -> Tensor + inline at::Tensor atleast_1d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::atleast_1d::redispatch(dispatchKeySet, self); + } + + // aten::atleast_1d.Sequence(Tensor[] tensors) -> Tensor[] + inline ::std::vector atleast_1d(c10::DispatchKeySet dispatchKeySet, at::TensorList tensors) { + return at::_ops::atleast_1d_Sequence::redispatch(dispatchKeySet, tensors); + } + + // aten::atleast_2d(Tensor self) -> Tensor + inline at::Tensor atleast_2d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::atleast_2d::redispatch(dispatchKeySet, self); + } + + // aten::atleast_2d.Sequence(Tensor[] tensors) -> Tensor[] + inline ::std::vector atleast_2d(c10::DispatchKeySet dispatchKeySet, at::TensorList tensors) { + return at::_ops::atleast_2d_Sequence::redispatch(dispatchKeySet, tensors); + } + + // aten::atleast_3d(Tensor self) -> Tensor + inline at::Tensor atleast_3d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::atleast_3d::redispatch(dispatchKeySet, self); + } + + // aten::atleast_3d.Sequence(Tensor[] tensors) -> Tensor[] + inline ::std::vector atleast_3d(c10::DispatchKeySet dispatchKeySet, at::TensorList tensors) { + return at::_ops::atleast_3d_Sequence::redispatch(dispatchKeySet, tensors); + } + + // aten::baddbmm(Tensor self, Tensor batch1, Tensor batch2, *, Scalar beta=1, Scalar alpha=1) -> Tensor + inline at::Tensor baddbmm(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & batch1, const at::Tensor & batch2, const at::Scalar & beta=1, const at::Scalar & alpha=1) { + return at::_ops::baddbmm::redispatch(dispatchKeySet, self, batch1, batch2, beta, alpha); + } + + // aten::baddbmm_(Tensor(a!) self, Tensor batch1, Tensor batch2, *, Scalar beta=1, Scalar alpha=1) -> Tensor(a!) + inline at::Tensor & baddbmm_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & batch1, const at::Tensor & batch2, const at::Scalar & beta=1, const at::Scalar & alpha=1) { + return at::_ops::baddbmm_::redispatch(dispatchKeySet, self, batch1, batch2, beta, alpha); + } + + // aten::baddbmm.out(Tensor self, Tensor batch1, Tensor batch2, *, Scalar beta=1, Scalar alpha=1, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & baddbmm_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & batch1, const at::Tensor & batch2, const at::Scalar & beta=1, const at::Scalar & alpha=1) { + return at::_ops::baddbmm_out::redispatch(dispatchKeySet, self, batch1, batch2, beta, alpha, out); + } + + // aten::baddbmm.out(Tensor self, Tensor batch1, Tensor batch2, *, Scalar beta=1, Scalar alpha=1, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & baddbmm_outf(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) { + return at::_ops::baddbmm_out::redispatch(dispatchKeySet, self, batch1, batch2, beta, alpha, out); + } + + // aten::bartlett_window(int window_length, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor bartlett_window(c10::DispatchKeySet dispatchKeySet, int64_t window_length, at::TensorOptions options={}) { + return at::_ops::bartlett_window::redispatch(dispatchKeySet, window_length, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::bartlett_window(int window_length, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor bartlett_window(c10::DispatchKeySet dispatchKeySet, int64_t window_length, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::bartlett_window::redispatch(dispatchKeySet, window_length, dtype, layout, device, pin_memory); + } + + // aten::bartlett_window.periodic(int window_length, bool periodic, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor bartlett_window(c10::DispatchKeySet dispatchKeySet, int64_t window_length, bool periodic, at::TensorOptions options={}) { + return at::_ops::bartlett_window_periodic::redispatch(dispatchKeySet, window_length, periodic, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::bartlett_window.periodic(int window_length, bool periodic, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor bartlett_window(c10::DispatchKeySet dispatchKeySet, int64_t window_length, bool periodic, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::bartlett_window_periodic::redispatch(dispatchKeySet, window_length, periodic, dtype, layout, device, pin_memory); + } + + // aten::batch_norm(Tensor input, Tensor? weight, Tensor? bias, Tensor? running_mean, Tensor? running_var, bool training, float momentum, float eps, bool cudnn_enabled) -> Tensor + inline at::Tensor batch_norm(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const c10::optional & weight, const c10::optional & bias, const c10::optional & running_mean, const c10::optional & running_var, bool training, double momentum, double eps, bool cudnn_enabled) { + return at::_ops::batch_norm::redispatch(dispatchKeySet, input, weight, bias, running_mean, running_var, training, momentum, eps, cudnn_enabled); + } + + // aten::quantized_batch_norm(Tensor input, Tensor? weight, Tensor? bias, Tensor mean, Tensor var, float eps, float output_scale, int output_zero_point) -> Tensor + inline at::Tensor quantized_batch_norm(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const c10::optional & weight, const c10::optional & bias, const at::Tensor & mean, const at::Tensor & var, double eps, double output_scale, int64_t output_zero_point) { + return at::_ops::quantized_batch_norm::redispatch(dispatchKeySet, input, weight, bias, mean, var, eps, output_scale, output_zero_point); + } + + // aten::_batch_norm_impl_index(Tensor input, Tensor? weight, Tensor? bias, Tensor? running_mean, Tensor? running_var, bool training, float momentum, float eps, bool cudnn_enabled) -> (Tensor, Tensor, Tensor, Tensor, int) + inline ::std::tuple _batch_norm_impl_index(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const c10::optional & weight, const c10::optional & bias, const c10::optional & running_mean, const c10::optional & running_var, bool training, double momentum, double eps, bool cudnn_enabled) { + return at::_ops::_batch_norm_impl_index::redispatch(dispatchKeySet, input, weight, bias, running_mean, running_var, training, momentum, eps, cudnn_enabled); + } + + // aten::_batch_norm_impl_index_backward(int impl_index, Tensor input, Tensor grad_output, Tensor? weight, Tensor? running_mean, Tensor? running_var, Tensor? save_mean, Tensor? save_var_transform, bool train, float eps, bool[3] output_mask, Tensor reservedSpace) -> (Tensor, Tensor, Tensor) + inline ::std::tuple _batch_norm_impl_index_backward(c10::DispatchKeySet dispatchKeySet, int64_t impl_index, const at::Tensor & input, const at::Tensor & grad_output, const c10::optional & weight, const c10::optional & running_mean, const c10::optional & running_var, const c10::optional & save_mean, const c10::optional & save_var_transform, bool train, double eps, ::std::array output_mask, const at::Tensor & reservedSpace) { + return at::_ops::_batch_norm_impl_index_backward::redispatch(dispatchKeySet, impl_index, input, grad_output, weight, running_mean, running_var, save_mean, save_var_transform, train, eps, output_mask, reservedSpace); + } + + // aten::bernoulli(Tensor self, *, Generator? generator=None) -> Tensor + inline at::Tensor bernoulli(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional generator=c10::nullopt) { + return at::_ops::bernoulli::redispatch(dispatchKeySet, self, generator); + } + + // aten::bernoulli.out(Tensor self, *, Generator? generator=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & bernoulli_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::optional generator=c10::nullopt) { + return at::_ops::bernoulli_out::redispatch(dispatchKeySet, self, generator, out); + } + + // aten::bernoulli.out(Tensor self, *, Generator? generator=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & bernoulli_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional generator, at::Tensor & out) { + return at::_ops::bernoulli_out::redispatch(dispatchKeySet, self, generator, out); + } + + // aten::bernoulli_.Tensor(Tensor(a!) self, Tensor p, *, Generator? generator=None) -> Tensor(a!) + inline at::Tensor & bernoulli_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & p, c10::optional generator=c10::nullopt) { + return at::_ops::bernoulli__Tensor::redispatch(dispatchKeySet, self, p, generator); + } + + // aten::bernoulli_.float(Tensor(a!) self, float p=0.5, *, Generator? generator=None) -> Tensor(a!) + inline at::Tensor & bernoulli_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, double p=0.5, c10::optional generator=c10::nullopt) { + return at::_ops::bernoulli__float::redispatch(dispatchKeySet, self, p, generator); + } + + // aten::bernoulli.p(Tensor self, float p, *, Generator? generator=None) -> Tensor + inline at::Tensor bernoulli(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, double p, c10::optional generator=c10::nullopt) { + return at::_ops::bernoulli_p::redispatch(dispatchKeySet, self, p, generator); + } + + // aten::bilinear(Tensor input1, Tensor input2, Tensor weight, Tensor? bias=None) -> Tensor + inline at::Tensor bilinear(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input1, const at::Tensor & input2, const at::Tensor & weight, const c10::optional & bias={}) { + return at::_ops::bilinear::redispatch(dispatchKeySet, input1, input2, weight, bias); + } + + // aten::binary_cross_entropy(Tensor self, Tensor target, Tensor? weight=None, int reduction=Mean) -> Tensor + inline at::Tensor binary_cross_entropy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & target, const c10::optional & weight={}, int64_t reduction=at::Reduction::Mean) { + return at::_ops::binary_cross_entropy::redispatch(dispatchKeySet, self, target, weight, reduction); + } + + // aten::binary_cross_entropy.out(Tensor self, Tensor target, Tensor? weight=None, int reduction=Mean, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & binary_cross_entropy_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & target, const c10::optional & weight={}, int64_t reduction=at::Reduction::Mean) { + return at::_ops::binary_cross_entropy_out::redispatch(dispatchKeySet, self, target, weight, reduction, out); + } + + // aten::binary_cross_entropy.out(Tensor self, Tensor target, Tensor? weight=None, int reduction=Mean, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & binary_cross_entropy_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & target, const c10::optional & weight, int64_t reduction, at::Tensor & out) { + return at::_ops::binary_cross_entropy_out::redispatch(dispatchKeySet, self, target, weight, reduction, out); + } + + // aten::binary_cross_entropy_backward(Tensor grad_output, Tensor self, Tensor target, Tensor? weight=None, int reduction=Mean) -> Tensor + inline at::Tensor binary_cross_entropy_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & target, const c10::optional & weight={}, int64_t reduction=at::Reduction::Mean) { + return at::_ops::binary_cross_entropy_backward::redispatch(dispatchKeySet, grad_output, self, target, weight, reduction); + } + + // aten::binary_cross_entropy_backward.grad_input(Tensor grad_output, Tensor self, Tensor target, Tensor? weight=None, int reduction=Mean, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & binary_cross_entropy_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & target, const c10::optional & weight={}, int64_t reduction=at::Reduction::Mean) { + return at::_ops::binary_cross_entropy_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, target, weight, reduction, grad_input); + } + + // aten::binary_cross_entropy_backward.grad_input(Tensor grad_output, Tensor self, Tensor target, Tensor? weight=None, int reduction=Mean, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & binary_cross_entropy_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & target, const c10::optional & weight, int64_t reduction, at::Tensor & grad_input) { + return at::_ops::binary_cross_entropy_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, target, weight, reduction, grad_input); + } + + // aten::binary_cross_entropy_with_logits(Tensor self, Tensor target, Tensor? weight=None, Tensor? pos_weight=None, int reduction=Mean) -> Tensor + inline at::Tensor binary_cross_entropy_with_logits(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & target, const c10::optional & weight={}, const c10::optional & pos_weight={}, int64_t reduction=at::Reduction::Mean) { + return at::_ops::binary_cross_entropy_with_logits::redispatch(dispatchKeySet, self, target, weight, pos_weight, reduction); + } + + // aten::bincount(Tensor self, Tensor? weights=None, int minlength=0) -> Tensor + inline at::Tensor bincount(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const c10::optional & weights={}, int64_t minlength=0) { + return at::_ops::bincount::redispatch(dispatchKeySet, self, weights, minlength); + } + + // aten::bitwise_not(Tensor self) -> Tensor + inline at::Tensor bitwise_not(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::bitwise_not::redispatch(dispatchKeySet, self); + } + + // aten::bitwise_not_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & bitwise_not_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::bitwise_not_::redispatch(dispatchKeySet, self); + } + + // aten::bitwise_not.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & bitwise_not_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::bitwise_not_out::redispatch(dispatchKeySet, self, out); + } + + // aten::bitwise_not.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & bitwise_not_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::bitwise_not_out::redispatch(dispatchKeySet, self, out); + } + + // aten::copysign.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & copysign_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::copysign_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::copysign.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & copysign_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::copysign_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::copysign.Tensor(Tensor self, Tensor other) -> Tensor + inline at::Tensor copysign(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::copysign_Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::copysign_.Tensor(Tensor(a!) self, Tensor other) -> Tensor(a!) + inline at::Tensor & copysign_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & other) { + return at::_ops::copysign__Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::copysign.Scalar(Tensor self, Scalar other) -> Tensor + inline at::Tensor copysign(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::copysign_Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::copysign_.Scalar(Tensor(a!) self, Scalar other) -> Tensor(a!) + inline at::Tensor & copysign_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Scalar & other) { + return at::_ops::copysign__Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::copysign.Scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & copysign_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::copysign_Scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::copysign.Scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & copysign_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other, at::Tensor & out) { + return at::_ops::copysign_Scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::_lazy_clone(Tensor self) -> Tensor + inline at::Tensor _lazy_clone(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::_lazy_clone::redispatch(dispatchKeySet, self); + } + + // aten::logical_not(Tensor self) -> Tensor + inline at::Tensor logical_not(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::logical_not::redispatch(dispatchKeySet, self); + } + + // aten::logical_not_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & logical_not_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::logical_not_::redispatch(dispatchKeySet, self); + } + + // aten::logical_not.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & logical_not_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::logical_not_out::redispatch(dispatchKeySet, self, out); + } + + // aten::logical_not.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & logical_not_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::logical_not_out::redispatch(dispatchKeySet, self, out); + } + + // aten::logical_xor(Tensor self, Tensor other) -> Tensor + inline at::Tensor logical_xor(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::logical_xor::redispatch(dispatchKeySet, self, other); + } + + // aten::logical_xor_(Tensor(a!) self, Tensor other) -> Tensor(a!) + inline at::Tensor & logical_xor_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & other) { + return at::_ops::logical_xor_::redispatch(dispatchKeySet, self, other); + } + + // aten::logical_xor.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & logical_xor_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::logical_xor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::logical_xor.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & logical_xor_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::logical_xor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::logical_and(Tensor self, Tensor other) -> Tensor + inline at::Tensor logical_and(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::logical_and::redispatch(dispatchKeySet, self, other); + } + + // aten::logical_and_(Tensor(a!) self, Tensor other) -> Tensor(a!) + inline at::Tensor & logical_and_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & other) { + return at::_ops::logical_and_::redispatch(dispatchKeySet, self, other); + } + + // aten::logical_and.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & logical_and_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::logical_and_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::logical_and.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & logical_and_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::logical_and_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::logical_or(Tensor self, Tensor other) -> Tensor + inline at::Tensor logical_or(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::logical_or::redispatch(dispatchKeySet, self, other); + } + + // aten::logical_or_(Tensor(a!) self, Tensor other) -> Tensor(a!) + inline at::Tensor & logical_or_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & other) { + return at::_ops::logical_or_::redispatch(dispatchKeySet, self, other); + } + + // aten::logical_or.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & logical_or_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::logical_or_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::logical_or.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & logical_or_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::logical_or_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::blackman_window(int window_length, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor blackman_window(c10::DispatchKeySet dispatchKeySet, int64_t window_length, at::TensorOptions options={}) { + return at::_ops::blackman_window::redispatch(dispatchKeySet, window_length, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::blackman_window(int window_length, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor blackman_window(c10::DispatchKeySet dispatchKeySet, int64_t window_length, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::blackman_window::redispatch(dispatchKeySet, window_length, dtype, layout, device, pin_memory); + } + + // aten::blackman_window.periodic(int window_length, bool periodic, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor blackman_window(c10::DispatchKeySet dispatchKeySet, int64_t window_length, bool periodic, at::TensorOptions options={}) { + return at::_ops::blackman_window_periodic::redispatch(dispatchKeySet, window_length, periodic, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::blackman_window.periodic(int window_length, bool periodic, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor blackman_window(c10::DispatchKeySet dispatchKeySet, int64_t window_length, bool periodic, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::blackman_window_periodic::redispatch(dispatchKeySet, window_length, periodic, dtype, layout, device, pin_memory); + } + + // aten::bmm(Tensor self, Tensor mat2) -> Tensor + inline at::Tensor bmm(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & mat2) { + return at::_ops::bmm::redispatch(dispatchKeySet, self, mat2); + } + + // aten::bmm.out(Tensor self, Tensor mat2, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & bmm_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & mat2) { + return at::_ops::bmm_out::redispatch(dispatchKeySet, self, mat2, out); + } + + // aten::bmm.out(Tensor self, Tensor mat2, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & bmm_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & mat2, at::Tensor & out) { + return at::_ops::bmm_out::redispatch(dispatchKeySet, self, mat2, out); + } + + // aten::broadcast_tensors(Tensor[] tensors) -> Tensor[] + inline ::std::vector broadcast_tensors(c10::DispatchKeySet dispatchKeySet, at::TensorList tensors) { + return at::_ops::broadcast_tensors::redispatch(dispatchKeySet, tensors); + } + + // aten::broadcast_to(Tensor(a) self, SymInt[] size) -> Tensor(a) + inline at::Tensor broadcast_to(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef size) { + return at::_ops::broadcast_to::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(size)); + } + + // aten::broadcast_to(Tensor(a) self, SymInt[] size) -> Tensor(a) + inline at::Tensor broadcast_to_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef size) { + return at::_ops::broadcast_to::redispatch(dispatchKeySet, self, size); + } + + // aten::_sparse_broadcast_to(Tensor(a) self, int[] size) -> Tensor(a) + inline at::Tensor _sparse_broadcast_to(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef size) { + return at::_ops::_sparse_broadcast_to::redispatch(dispatchKeySet, self, size); + } + + // aten::cat(Tensor[] tensors, int dim=0) -> Tensor + inline at::Tensor cat(c10::DispatchKeySet dispatchKeySet, const at::ITensorListRef & tensors, int64_t dim=0) { + return at::_ops::cat::redispatch(dispatchKeySet, tensors, dim); + } + + // aten::cat.out(Tensor[] tensors, int dim=0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & cat_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::ITensorListRef & tensors, int64_t dim=0) { + return at::_ops::cat_out::redispatch(dispatchKeySet, tensors, dim, out); + } + + // aten::cat.out(Tensor[] tensors, int dim=0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & cat_outf(c10::DispatchKeySet dispatchKeySet, const at::ITensorListRef & tensors, int64_t dim, at::Tensor & out) { + return at::_ops::cat_out::redispatch(dispatchKeySet, tensors, dim, out); + } + + // aten::cat.names(Tensor[] tensors, Dimname dim) -> Tensor + inline at::Tensor cat(c10::DispatchKeySet dispatchKeySet, at::TensorList tensors, at::Dimname dim) { + return at::_ops::cat_names::redispatch(dispatchKeySet, tensors, dim); + } + + // aten::cat.names_out(Tensor[] tensors, Dimname dim, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & cat_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, at::TensorList tensors, at::Dimname dim) { + return at::_ops::cat_names_out::redispatch(dispatchKeySet, tensors, dim, out); + } + + // aten::cat.names_out(Tensor[] tensors, Dimname dim, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & cat_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList tensors, at::Dimname dim, at::Tensor & out) { + return at::_ops::cat_names_out::redispatch(dispatchKeySet, tensors, dim, out); + } + + // aten::concat(Tensor[] tensors, int dim=0) -> Tensor + inline at::Tensor concat(c10::DispatchKeySet dispatchKeySet, at::TensorList tensors, int64_t dim=0) { + return at::_ops::concat::redispatch(dispatchKeySet, tensors, dim); + } + + // aten::concat.out(Tensor[] tensors, int dim=0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & concat_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, at::TensorList tensors, int64_t dim=0) { + return at::_ops::concat_out::redispatch(dispatchKeySet, tensors, dim, out); + } + + // aten::concat.out(Tensor[] tensors, int dim=0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & concat_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList tensors, int64_t dim, at::Tensor & out) { + return at::_ops::concat_out::redispatch(dispatchKeySet, tensors, dim, out); + } + + // aten::concat.names(Tensor[] tensors, Dimname dim) -> Tensor + inline at::Tensor concat(c10::DispatchKeySet dispatchKeySet, at::TensorList tensors, at::Dimname dim) { + return at::_ops::concat_names::redispatch(dispatchKeySet, tensors, dim); + } + + // aten::concat.names_out(Tensor[] tensors, Dimname dim, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & concat_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, at::TensorList tensors, at::Dimname dim) { + return at::_ops::concat_names_out::redispatch(dispatchKeySet, tensors, dim, out); + } + + // aten::concat.names_out(Tensor[] tensors, Dimname dim, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & concat_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList tensors, at::Dimname dim, at::Tensor & out) { + return at::_ops::concat_names_out::redispatch(dispatchKeySet, tensors, dim, out); + } + + // aten::concatenate(Tensor[] tensors, int dim=0) -> Tensor + inline at::Tensor concatenate(c10::DispatchKeySet dispatchKeySet, at::TensorList tensors, int64_t dim=0) { + return at::_ops::concatenate::redispatch(dispatchKeySet, tensors, dim); + } + + // aten::concatenate.out(Tensor[] tensors, int dim=0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & concatenate_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, at::TensorList tensors, int64_t dim=0) { + return at::_ops::concatenate_out::redispatch(dispatchKeySet, tensors, dim, out); + } + + // aten::concatenate.out(Tensor[] tensors, int dim=0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & concatenate_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList tensors, int64_t dim, at::Tensor & out) { + return at::_ops::concatenate_out::redispatch(dispatchKeySet, tensors, dim, out); + } + + // aten::concatenate.names(Tensor[] tensors, Dimname dim) -> Tensor + inline at::Tensor concatenate(c10::DispatchKeySet dispatchKeySet, at::TensorList tensors, at::Dimname dim) { + return at::_ops::concatenate_names::redispatch(dispatchKeySet, tensors, dim); + } + + // aten::concatenate.names_out(Tensor[] tensors, Dimname dim, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & concatenate_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, at::TensorList tensors, at::Dimname dim) { + return at::_ops::concatenate_names_out::redispatch(dispatchKeySet, tensors, dim, out); + } + + // aten::concatenate.names_out(Tensor[] tensors, Dimname dim, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & concatenate_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList tensors, at::Dimname dim, at::Tensor & out) { + return at::_ops::concatenate_names_out::redispatch(dispatchKeySet, tensors, dim, out); + } + + // aten::block_diag(Tensor[] tensors) -> Tensor + inline at::Tensor block_diag(c10::DispatchKeySet dispatchKeySet, at::TensorList tensors) { + return at::_ops::block_diag::redispatch(dispatchKeySet, tensors); + } + + // aten::ceil(Tensor self) -> Tensor + inline at::Tensor ceil(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::ceil::redispatch(dispatchKeySet, self); + } + + // aten::ceil_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & ceil_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::ceil_::redispatch(dispatchKeySet, self); + } + + // aten::ceil.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & ceil_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::ceil_out::redispatch(dispatchKeySet, self, out); + } + + // aten::ceil.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & ceil_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::ceil_out::redispatch(dispatchKeySet, self, out); + } + + // aten::chain_matmul(Tensor[] matrices) -> Tensor + inline at::Tensor chain_matmul(c10::DispatchKeySet dispatchKeySet, at::TensorList matrices) { + return at::_ops::chain_matmul::redispatch(dispatchKeySet, matrices); + } + + // aten::chain_matmul.out(Tensor[] matrices, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & chain_matmul_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, at::TensorList matrices) { + return at::_ops::chain_matmul_out::redispatch(dispatchKeySet, matrices, out); + } + + // aten::chain_matmul.out(Tensor[] matrices, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & chain_matmul_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList matrices, at::Tensor & out) { + return at::_ops::chain_matmul_out::redispatch(dispatchKeySet, matrices, out); + } + + // aten::unsafe_chunk(Tensor self, int chunks, int dim=0) -> Tensor[] + inline ::std::vector unsafe_chunk(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t chunks, int64_t dim=0) { + return at::_ops::unsafe_chunk::redispatch(dispatchKeySet, self, chunks, dim); + } + + // aten::chunk(Tensor(a -> *) self, int chunks, int dim=0) -> Tensor(a)[] + inline ::std::vector chunk(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t chunks, int64_t dim=0) { + return at::_ops::chunk::redispatch(dispatchKeySet, self, chunks, dim); + } + + // aten::tensor_split.sections(Tensor(a -> *) self, SymInt sections, int dim=0) -> Tensor(a)[] + inline ::std::vector tensor_split(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t sections, int64_t dim=0) { + return at::_ops::tensor_split_sections::redispatch(dispatchKeySet, self, sections, dim); + } + + // aten::tensor_split.sections(Tensor(a -> *) self, SymInt sections, int dim=0) -> Tensor(a)[] + inline ::std::vector tensor_split_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymInt sections, int64_t dim=0) { + return at::_ops::tensor_split_sections::redispatch(dispatchKeySet, self, sections, dim); + } + + // aten::tensor_split.indices(Tensor(a -> *) self, SymInt[] indices, int dim=0) -> Tensor(a)[] + inline ::std::vector tensor_split(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef indices, int64_t dim=0) { + return at::_ops::tensor_split_indices::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(indices), dim); + } + + // aten::tensor_split.indices(Tensor(a -> *) self, SymInt[] indices, int dim=0) -> Tensor(a)[] + inline ::std::vector tensor_split_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef indices, int64_t dim=0) { + return at::_ops::tensor_split_indices::redispatch(dispatchKeySet, self, indices, dim); + } + + // aten::tensor_split.tensor_indices_or_sections(Tensor(a -> *) self, Tensor tensor_indices_or_sections, int dim=0) -> Tensor(a)[] + inline ::std::vector tensor_split(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & tensor_indices_or_sections, int64_t dim=0) { + return at::_ops::tensor_split_tensor_indices_or_sections::redispatch(dispatchKeySet, self, tensor_indices_or_sections, dim); + } + + // aten::clamp(Tensor self, Scalar? min=None, Scalar? max=None) -> Tensor + inline at::Tensor clamp(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const c10::optional & min, const c10::optional & max=c10::nullopt) { + return at::_ops::clamp::redispatch(dispatchKeySet, self, min, max); + } + + // aten::clamp.Tensor(Tensor self, Tensor? min=None, Tensor? max=None) -> Tensor + inline at::Tensor clamp(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const c10::optional & min={}, const c10::optional & max={}) { + return at::_ops::clamp_Tensor::redispatch(dispatchKeySet, self, min, max); + } + + // aten::clamp_(Tensor(a!) self, Scalar? min=None, Scalar? max=None) -> Tensor(a!) + inline at::Tensor & clamp_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const c10::optional & min, const c10::optional & max=c10::nullopt) { + return at::_ops::clamp_::redispatch(dispatchKeySet, self, min, max); + } + + // aten::clamp_.Tensor(Tensor(a!) self, Tensor? min=None, Tensor? max=None) -> Tensor(a!) + inline at::Tensor & clamp_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const c10::optional & min={}, const c10::optional & max={}) { + return at::_ops::clamp__Tensor::redispatch(dispatchKeySet, self, min, max); + } + + // aten::clamp.out(Tensor self, Scalar? min=None, Scalar? max=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & clamp_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const c10::optional & min, const c10::optional & max=c10::nullopt) { + return at::_ops::clamp_out::redispatch(dispatchKeySet, self, min, max, out); + } + + // aten::clamp.out(Tensor self, Scalar? min=None, Scalar? max=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & clamp_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const c10::optional & min, const c10::optional & max, at::Tensor & out) { + return at::_ops::clamp_out::redispatch(dispatchKeySet, self, min, max, out); + } + + // aten::clamp.Tensor_out(Tensor self, Tensor? min=None, Tensor? max=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & clamp_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const c10::optional & min={}, const c10::optional & max={}) { + return at::_ops::clamp_Tensor_out::redispatch(dispatchKeySet, self, min, max, out); + } + + // aten::clamp.Tensor_out(Tensor self, Tensor? min=None, Tensor? max=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & clamp_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const c10::optional & min, const c10::optional & max, at::Tensor & out) { + return at::_ops::clamp_Tensor_out::redispatch(dispatchKeySet, self, min, max, out); + } + + // aten::clamp_max(Tensor self, Scalar max) -> Tensor + inline at::Tensor clamp_max(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & max) { + return at::_ops::clamp_max::redispatch(dispatchKeySet, self, max); + } + + // aten::clamp_max.Tensor(Tensor self, Tensor max) -> Tensor + inline at::Tensor clamp_max(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & max) { + return at::_ops::clamp_max_Tensor::redispatch(dispatchKeySet, self, max); + } + + // aten::clamp_max_(Tensor(a!) self, Scalar max) -> Tensor(a!) + inline at::Tensor & clamp_max_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Scalar & max) { + return at::_ops::clamp_max_::redispatch(dispatchKeySet, self, max); + } + + // aten::clamp_max_.Tensor(Tensor(a!) self, Tensor max) -> Tensor(a!) + inline at::Tensor & clamp_max_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & max) { + return at::_ops::clamp_max__Tensor::redispatch(dispatchKeySet, self, max); + } + + // aten::clamp_max.out(Tensor self, Scalar max, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & clamp_max_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Scalar & max) { + return at::_ops::clamp_max_out::redispatch(dispatchKeySet, self, max, out); + } + + // aten::clamp_max.out(Tensor self, Scalar max, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & clamp_max_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & max, at::Tensor & out) { + return at::_ops::clamp_max_out::redispatch(dispatchKeySet, self, max, out); + } + + // aten::clamp_max.Tensor_out(Tensor self, Tensor max, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & clamp_max_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & max) { + return at::_ops::clamp_max_Tensor_out::redispatch(dispatchKeySet, self, max, out); + } + + // aten::clamp_max.Tensor_out(Tensor self, Tensor max, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & clamp_max_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & max, at::Tensor & out) { + return at::_ops::clamp_max_Tensor_out::redispatch(dispatchKeySet, self, max, out); + } + + // aten::clamp_min(Tensor self, Scalar min) -> Tensor + inline at::Tensor clamp_min(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & min) { + return at::_ops::clamp_min::redispatch(dispatchKeySet, self, min); + } + + // aten::clamp_min.Tensor(Tensor self, Tensor min) -> Tensor + inline at::Tensor clamp_min(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & min) { + return at::_ops::clamp_min_Tensor::redispatch(dispatchKeySet, self, min); + } + + // aten::clamp_min_(Tensor(a!) self, Scalar min) -> Tensor(a!) + inline at::Tensor & clamp_min_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Scalar & min) { + return at::_ops::clamp_min_::redispatch(dispatchKeySet, self, min); + } + + // aten::clamp_min_.Tensor(Tensor(a!) self, Tensor min) -> Tensor(a!) + inline at::Tensor & clamp_min_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & min) { + return at::_ops::clamp_min__Tensor::redispatch(dispatchKeySet, self, min); + } + + // aten::clamp_min.out(Tensor self, Scalar min, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & clamp_min_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Scalar & min) { + return at::_ops::clamp_min_out::redispatch(dispatchKeySet, self, min, out); + } + + // aten::clamp_min.out(Tensor self, Scalar min, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & clamp_min_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & min, at::Tensor & out) { + return at::_ops::clamp_min_out::redispatch(dispatchKeySet, self, min, out); + } + + // aten::clamp_min.Tensor_out(Tensor self, Tensor min, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & clamp_min_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & min) { + return at::_ops::clamp_min_Tensor_out::redispatch(dispatchKeySet, self, min, out); + } + + // aten::clamp_min.Tensor_out(Tensor self, Tensor min, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & clamp_min_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & min, at::Tensor & out) { + return at::_ops::clamp_min_Tensor_out::redispatch(dispatchKeySet, self, min, out); + } + + // aten::clip(Tensor self, Scalar? min=None, Scalar? max=None) -> Tensor + inline at::Tensor clip(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const c10::optional & min, const c10::optional & max=c10::nullopt) { + return at::_ops::clip::redispatch(dispatchKeySet, self, min, max); + } + + // aten::clip.Tensor(Tensor self, Tensor? min=None, Tensor? max=None) -> Tensor + inline at::Tensor clip(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const c10::optional & min={}, const c10::optional & max={}) { + return at::_ops::clip_Tensor::redispatch(dispatchKeySet, self, min, max); + } + + // aten::clip_(Tensor(a!) self, Scalar? min=None, Scalar? max=None) -> Tensor(a!) + inline at::Tensor & clip_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const c10::optional & min, const c10::optional & max=c10::nullopt) { + return at::_ops::clip_::redispatch(dispatchKeySet, self, min, max); + } + + // aten::clip_.Tensor(Tensor(a!) self, Tensor? min=None, Tensor? max=None) -> Tensor(a!) + inline at::Tensor & clip_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const c10::optional & min={}, const c10::optional & max={}) { + return at::_ops::clip__Tensor::redispatch(dispatchKeySet, self, min, max); + } + + // aten::clip.out(Tensor self, Scalar? min=None, Scalar? max=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & clip_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const c10::optional & min, const c10::optional & max=c10::nullopt) { + return at::_ops::clip_out::redispatch(dispatchKeySet, self, min, max, out); + } + + // aten::clip.out(Tensor self, Scalar? min=None, Scalar? max=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & clip_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const c10::optional & min, const c10::optional & max, at::Tensor & out) { + return at::_ops::clip_out::redispatch(dispatchKeySet, self, min, max, out); + } + + // aten::clip.Tensor_out(Tensor self, Tensor? min=None, Tensor? max=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & clip_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const c10::optional & min={}, const c10::optional & max={}) { + return at::_ops::clip_Tensor_out::redispatch(dispatchKeySet, self, min, max, out); + } + + // aten::clip.Tensor_out(Tensor self, Tensor? min=None, Tensor? max=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & clip_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const c10::optional & min, const c10::optional & max, at::Tensor & out) { + return at::_ops::clip_Tensor_out::redispatch(dispatchKeySet, self, min, max, out); + } + + // aten::cudnn_is_acceptable(Tensor self) -> bool + inline bool cudnn_is_acceptable(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::cudnn_is_acceptable::redispatch(dispatchKeySet, self); + } + + // aten::complex(Tensor real, Tensor imag) -> Tensor + inline at::Tensor complex(c10::DispatchKeySet dispatchKeySet, const at::Tensor & real, const at::Tensor & imag) { + return at::_ops::complex::redispatch(dispatchKeySet, real, imag); + } + + // aten::complex.out(Tensor real, Tensor imag, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & complex_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & real, const at::Tensor & imag) { + return at::_ops::complex_out::redispatch(dispatchKeySet, real, imag, out); + } + + // aten::complex.out(Tensor real, Tensor imag, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & complex_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & real, const at::Tensor & imag, at::Tensor & out) { + return at::_ops::complex_out::redispatch(dispatchKeySet, real, imag, out); + } + + // aten::polar(Tensor abs, Tensor angle) -> Tensor + inline at::Tensor polar(c10::DispatchKeySet dispatchKeySet, const at::Tensor & abs, const at::Tensor & angle) { + return at::_ops::polar::redispatch(dispatchKeySet, abs, angle); + } + + // aten::polar.out(Tensor abs, Tensor angle, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & polar_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & abs, const at::Tensor & angle) { + return at::_ops::polar_out::redispatch(dispatchKeySet, abs, angle, out); + } + + // aten::polar.out(Tensor abs, Tensor angle, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & polar_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & abs, const at::Tensor & angle, at::Tensor & out) { + return at::_ops::polar_out::redispatch(dispatchKeySet, abs, angle, out); + } + + // aten::constant_pad_nd(Tensor self, SymInt[] pad, Scalar value=0) -> Tensor + inline at::Tensor constant_pad_nd(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef pad, const at::Scalar & value=0) { + return at::_ops::constant_pad_nd::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(pad), value); + } + + // aten::constant_pad_nd(Tensor self, SymInt[] pad, Scalar value=0) -> Tensor + inline at::Tensor constant_pad_nd_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef pad, const at::Scalar & value=0) { + return at::_ops::constant_pad_nd::redispatch(dispatchKeySet, self, pad, value); + } + + // aten::contiguous(Tensor(a) self, *, MemoryFormat memory_format=contiguous_format) -> Tensor(a) + inline at::Tensor __dispatch_contiguous(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::MemoryFormat memory_format=MemoryFormat::Contiguous) { + return at::_ops::contiguous::redispatch(dispatchKeySet, self, memory_format); + } + + // aten::convolution(Tensor input, Tensor weight, Tensor? bias, SymInt[] stride, SymInt[] padding, SymInt[] dilation, bool transposed, SymInt[] output_padding, SymInt groups) -> Tensor + inline at::Tensor convolution(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, bool transposed, at::IntArrayRef output_padding, int64_t groups) { + return at::_ops::convolution::redispatch(dispatchKeySet, input, weight, bias, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(dilation), transposed, c10::fromIntArrayRefSlow(output_padding), groups); + } + + // aten::convolution(Tensor input, Tensor weight, Tensor? bias, SymInt[] stride, SymInt[] padding, SymInt[] dilation, bool transposed, SymInt[] output_padding, SymInt groups) -> Tensor + inline at::Tensor convolution_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias, c10::SymIntArrayRef stride, c10::SymIntArrayRef padding, c10::SymIntArrayRef dilation, bool transposed, c10::SymIntArrayRef output_padding, c10::SymInt groups) { + return at::_ops::convolution::redispatch(dispatchKeySet, input, weight, bias, stride, padding, dilation, transposed, output_padding, groups); + } + + // aten::convolution_backward(Tensor grad_output, Tensor input, Tensor weight, SymInt[]? bias_sizes, SymInt[] stride, SymInt[] padding, SymInt[] dilation, bool transposed, SymInt[] output_padding, SymInt groups, bool[3] output_mask) -> (Tensor, Tensor, Tensor) + inline ::std::tuple convolution_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & input, const at::Tensor & weight, at::OptionalIntArrayRef bias_sizes, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, bool transposed, at::IntArrayRef output_padding, int64_t groups, ::std::array output_mask) { + return at::_ops::convolution_backward::redispatch(dispatchKeySet, grad_output, input, weight, bias_sizes.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*bias_sizes)) : c10::nullopt, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(dilation), transposed, c10::fromIntArrayRefSlow(output_padding), groups, output_mask); + } + + // aten::convolution_backward(Tensor grad_output, Tensor input, Tensor weight, SymInt[]? bias_sizes, SymInt[] stride, SymInt[] padding, SymInt[] dilation, bool transposed, SymInt[] output_padding, SymInt groups, bool[3] output_mask) -> (Tensor, Tensor, Tensor) + inline ::std::tuple convolution_backward_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & input, const at::Tensor & weight, at::OptionalSymIntArrayRef bias_sizes, c10::SymIntArrayRef stride, c10::SymIntArrayRef padding, c10::SymIntArrayRef dilation, bool transposed, c10::SymIntArrayRef output_padding, c10::SymInt groups, ::std::array output_mask) { + return at::_ops::convolution_backward::redispatch(dispatchKeySet, grad_output, input, weight, bias_sizes, stride, padding, dilation, transposed, output_padding, groups, output_mask); + } + + // aten::convolution_overrideable(Tensor input, Tensor weight, Tensor? bias, SymInt[] stride, SymInt[] padding, SymInt[] dilation, bool transposed, SymInt[] output_padding, SymInt groups) -> Tensor + inline at::Tensor convolution_overrideable(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, bool transposed, at::IntArrayRef output_padding, int64_t groups) { + return at::_ops::convolution_overrideable::redispatch(dispatchKeySet, input, weight, bias, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(dilation), transposed, c10::fromIntArrayRefSlow(output_padding), groups); + } + + // aten::convolution_overrideable(Tensor input, Tensor weight, Tensor? bias, SymInt[] stride, SymInt[] padding, SymInt[] dilation, bool transposed, SymInt[] output_padding, SymInt groups) -> Tensor + inline at::Tensor convolution_overrideable_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias, c10::SymIntArrayRef stride, c10::SymIntArrayRef padding, c10::SymIntArrayRef dilation, bool transposed, c10::SymIntArrayRef output_padding, c10::SymInt groups) { + return at::_ops::convolution_overrideable::redispatch(dispatchKeySet, input, weight, bias, stride, padding, dilation, transposed, output_padding, groups); + } + + // aten::convolution_backward_overrideable(Tensor grad_output, Tensor input, Tensor weight, SymInt[] stride, SymInt[] padding, SymInt[] dilation, bool transposed, SymInt[] output_padding, SymInt groups, bool[3] output_mask) -> (Tensor grad_input, Tensor grad_weight, Tensor grad_bias) + inline ::std::tuple convolution_backward_overrideable(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & input, const at::Tensor & weight, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, bool transposed, at::IntArrayRef output_padding, int64_t groups, ::std::array output_mask) { + return at::_ops::convolution_backward_overrideable::redispatch(dispatchKeySet, grad_output, input, weight, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(dilation), transposed, c10::fromIntArrayRefSlow(output_padding), groups, output_mask); + } + + // aten::convolution_backward_overrideable(Tensor grad_output, Tensor input, Tensor weight, SymInt[] stride, SymInt[] padding, SymInt[] dilation, bool transposed, SymInt[] output_padding, SymInt groups, bool[3] output_mask) -> (Tensor grad_input, Tensor grad_weight, Tensor grad_bias) + inline ::std::tuple convolution_backward_overrideable_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & input, const at::Tensor & weight, c10::SymIntArrayRef stride, c10::SymIntArrayRef padding, c10::SymIntArrayRef dilation, bool transposed, c10::SymIntArrayRef output_padding, c10::SymInt groups, ::std::array output_mask) { + return at::_ops::convolution_backward_overrideable::redispatch(dispatchKeySet, grad_output, input, weight, stride, padding, dilation, transposed, output_padding, groups, output_mask); + } + + // aten::_convolution(Tensor input, Tensor weight, Tensor? bias, SymInt[] stride, SymInt[] padding, SymInt[] dilation, bool transposed, SymInt[] output_padding, SymInt groups, bool benchmark, bool deterministic, bool cudnn_enabled, bool allow_tf32) -> Tensor + inline at::Tensor _convolution(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, bool transposed, at::IntArrayRef output_padding, int64_t groups, bool benchmark, bool deterministic, bool cudnn_enabled, bool allow_tf32) { + return at::_ops::_convolution::redispatch(dispatchKeySet, input, weight, bias, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(dilation), transposed, c10::fromIntArrayRefSlow(output_padding), groups, benchmark, deterministic, cudnn_enabled, allow_tf32); + } + + // aten::_convolution(Tensor input, Tensor weight, Tensor? bias, SymInt[] stride, SymInt[] padding, SymInt[] dilation, bool transposed, SymInt[] output_padding, SymInt groups, bool benchmark, bool deterministic, bool cudnn_enabled, bool allow_tf32) -> Tensor + inline at::Tensor _convolution_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias, c10::SymIntArrayRef stride, c10::SymIntArrayRef padding, c10::SymIntArrayRef dilation, bool transposed, c10::SymIntArrayRef output_padding, c10::SymInt groups, bool benchmark, bool deterministic, bool cudnn_enabled, bool allow_tf32) { + return at::_ops::_convolution::redispatch(dispatchKeySet, input, weight, bias, stride, padding, dilation, transposed, output_padding, groups, benchmark, deterministic, cudnn_enabled, allow_tf32); + } + + // aten::_convolution.deprecated(Tensor input, Tensor weight, Tensor? bias, SymInt[] stride, SymInt[] padding, SymInt[] dilation, bool transposed, int[] output_padding, SymInt groups, bool benchmark, bool deterministic, bool cudnn_enabled) -> Tensor + inline at::Tensor _convolution(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, bool transposed, at::IntArrayRef output_padding, int64_t groups, bool benchmark, bool deterministic, bool cudnn_enabled) { + return at::_ops::_convolution_deprecated::redispatch(dispatchKeySet, input, weight, bias, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(dilation), transposed, output_padding, groups, benchmark, deterministic, cudnn_enabled); + } + + // aten::_convolution.deprecated(Tensor input, Tensor weight, Tensor? bias, SymInt[] stride, SymInt[] padding, SymInt[] dilation, bool transposed, int[] output_padding, SymInt groups, bool benchmark, bool deterministic, bool cudnn_enabled) -> Tensor + inline at::Tensor _convolution_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias, c10::SymIntArrayRef stride, c10::SymIntArrayRef padding, c10::SymIntArrayRef dilation, bool transposed, at::IntArrayRef output_padding, c10::SymInt groups, bool benchmark, bool deterministic, bool cudnn_enabled) { + return at::_ops::_convolution_deprecated::redispatch(dispatchKeySet, input, weight, bias, stride, padding, dilation, transposed, output_padding, groups, benchmark, deterministic, cudnn_enabled); + } + + // aten::_convolution_mode(Tensor input, Tensor weight, Tensor? bias, SymInt[] stride, str padding, SymInt[] dilation, SymInt groups) -> Tensor + inline at::Tensor _convolution_mode(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias, at::IntArrayRef stride, c10::string_view padding, at::IntArrayRef dilation, int64_t groups) { + return at::_ops::_convolution_mode::redispatch(dispatchKeySet, input, weight, bias, c10::fromIntArrayRefSlow(stride), padding, c10::fromIntArrayRefSlow(dilation), groups); + } + + // aten::_convolution_mode(Tensor input, Tensor weight, Tensor? bias, SymInt[] stride, str padding, SymInt[] dilation, SymInt groups) -> Tensor + inline at::Tensor _convolution_mode_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias, c10::SymIntArrayRef stride, c10::string_view padding, c10::SymIntArrayRef dilation, c10::SymInt groups) { + return at::_ops::_convolution_mode::redispatch(dispatchKeySet, input, weight, bias, stride, padding, dilation, groups); + } + + // aten::_convolution_double_backward(Tensor? ggI, Tensor? ggW, Tensor? ggb, Tensor gO, Tensor weight, Tensor self, SymInt[] stride, SymInt[] padding, SymInt[] dilation, bool transposed, SymInt[] output_padding, SymInt groups, bool[3] output_mask) -> (Tensor, Tensor, Tensor) + inline ::std::tuple _convolution_double_backward(c10::DispatchKeySet dispatchKeySet, const c10::optional & ggI, const c10::optional & ggW, const c10::optional & ggb, const at::Tensor & gO, const at::Tensor & weight, const at::Tensor & self, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, bool transposed, at::IntArrayRef output_padding, int64_t groups, ::std::array output_mask) { + return at::_ops::_convolution_double_backward::redispatch(dispatchKeySet, ggI, ggW, ggb, gO, weight, self, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(dilation), transposed, c10::fromIntArrayRefSlow(output_padding), groups, output_mask); + } + + // aten::_convolution_double_backward(Tensor? ggI, Tensor? ggW, Tensor? ggb, Tensor gO, Tensor weight, Tensor self, SymInt[] stride, SymInt[] padding, SymInt[] dilation, bool transposed, SymInt[] output_padding, SymInt groups, bool[3] output_mask) -> (Tensor, Tensor, Tensor) + inline ::std::tuple _convolution_double_backward_symint(c10::DispatchKeySet dispatchKeySet, const c10::optional & ggI, const c10::optional & ggW, const c10::optional & ggb, const at::Tensor & gO, const at::Tensor & weight, const at::Tensor & self, c10::SymIntArrayRef stride, c10::SymIntArrayRef padding, c10::SymIntArrayRef dilation, bool transposed, c10::SymIntArrayRef output_padding, c10::SymInt groups, ::std::array output_mask) { + return at::_ops::_convolution_double_backward::redispatch(dispatchKeySet, ggI, ggW, ggb, gO, weight, self, stride, padding, dilation, transposed, output_padding, groups, output_mask); + } + + // aten::conv1d(Tensor input, Tensor weight, Tensor? bias=None, SymInt[1] stride=1, SymInt[1] padding=0, SymInt[1] dilation=1, SymInt groups=1) -> Tensor + inline at::Tensor conv1d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias={}, at::IntArrayRef stride=1, at::IntArrayRef padding=0, at::IntArrayRef dilation=1, int64_t groups=1) { + return at::_ops::conv1d::redispatch(dispatchKeySet, input, weight, bias, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(dilation), groups); + } + + // aten::conv1d(Tensor input, Tensor weight, Tensor? bias=None, SymInt[1] stride=1, SymInt[1] padding=0, SymInt[1] dilation=1, SymInt groups=1) -> Tensor + inline at::Tensor conv1d_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias={}, c10::SymIntArrayRef stride=c10::SymInt(1), c10::SymIntArrayRef padding=c10::SymInt(0), c10::SymIntArrayRef dilation=c10::SymInt(1), c10::SymInt groups=1) { + return at::_ops::conv1d::redispatch(dispatchKeySet, input, weight, bias, stride, padding, dilation, groups); + } + + // aten::conv2d(Tensor input, Tensor weight, Tensor? bias=None, SymInt[2] stride=1, SymInt[2] padding=0, SymInt[2] dilation=1, SymInt groups=1) -> Tensor + inline at::Tensor conv2d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias={}, at::IntArrayRef stride=1, at::IntArrayRef padding=0, at::IntArrayRef dilation=1, int64_t groups=1) { + return at::_ops::conv2d::redispatch(dispatchKeySet, input, weight, bias, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(dilation), groups); + } + + // aten::conv2d(Tensor input, Tensor weight, Tensor? bias=None, SymInt[2] stride=1, SymInt[2] padding=0, SymInt[2] dilation=1, SymInt groups=1) -> Tensor + inline at::Tensor conv2d_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias={}, c10::SymIntArrayRef stride=c10::SymInt(1), c10::SymIntArrayRef padding=c10::SymInt(0), c10::SymIntArrayRef dilation=c10::SymInt(1), c10::SymInt groups=1) { + return at::_ops::conv2d::redispatch(dispatchKeySet, input, weight, bias, stride, padding, dilation, groups); + } + + // aten::conv3d(Tensor input, Tensor weight, Tensor? bias=None, SymInt[3] stride=1, SymInt[3] padding=0, SymInt[3] dilation=1, SymInt groups=1) -> Tensor + inline at::Tensor conv3d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias={}, at::IntArrayRef stride=1, at::IntArrayRef padding=0, at::IntArrayRef dilation=1, int64_t groups=1) { + return at::_ops::conv3d::redispatch(dispatchKeySet, input, weight, bias, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(dilation), groups); + } + + // aten::conv3d(Tensor input, Tensor weight, Tensor? bias=None, SymInt[3] stride=1, SymInt[3] padding=0, SymInt[3] dilation=1, SymInt groups=1) -> Tensor + inline at::Tensor conv3d_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias={}, c10::SymIntArrayRef stride=c10::SymInt(1), c10::SymIntArrayRef padding=c10::SymInt(0), c10::SymIntArrayRef dilation=c10::SymInt(1), c10::SymInt groups=1) { + return at::_ops::conv3d::redispatch(dispatchKeySet, input, weight, bias, stride, padding, dilation, groups); + } + + // aten::conv1d.padding(Tensor input, Tensor weight, Tensor? bias=None, SymInt[1] stride=1, str padding="valid", SymInt[1] dilation=1, SymInt groups=1) -> Tensor + inline at::Tensor conv1d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias, at::IntArrayRef stride, c10::string_view padding, at::IntArrayRef dilation=1, int64_t groups=1) { + return at::_ops::conv1d_padding::redispatch(dispatchKeySet, input, weight, bias, c10::fromIntArrayRefSlow(stride), padding, c10::fromIntArrayRefSlow(dilation), groups); + } + + // aten::conv1d.padding(Tensor input, Tensor weight, Tensor? bias=None, SymInt[1] stride=1, str padding="valid", SymInt[1] dilation=1, SymInt groups=1) -> Tensor + inline at::Tensor conv1d_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias, c10::SymIntArrayRef stride, c10::string_view padding, c10::SymIntArrayRef dilation=c10::SymInt(1), c10::SymInt groups=1) { + return at::_ops::conv1d_padding::redispatch(dispatchKeySet, input, weight, bias, stride, padding, dilation, groups); + } + + // aten::conv2d.padding(Tensor input, Tensor weight, Tensor? bias=None, SymInt[2] stride=1, str padding="valid", SymInt[2] dilation=1, SymInt groups=1) -> Tensor + inline at::Tensor conv2d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias, at::IntArrayRef stride, c10::string_view padding, at::IntArrayRef dilation=1, int64_t groups=1) { + return at::_ops::conv2d_padding::redispatch(dispatchKeySet, input, weight, bias, c10::fromIntArrayRefSlow(stride), padding, c10::fromIntArrayRefSlow(dilation), groups); + } + + // aten::conv2d.padding(Tensor input, Tensor weight, Tensor? bias=None, SymInt[2] stride=1, str padding="valid", SymInt[2] dilation=1, SymInt groups=1) -> Tensor + inline at::Tensor conv2d_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias, c10::SymIntArrayRef stride, c10::string_view padding, c10::SymIntArrayRef dilation=c10::SymInt(1), c10::SymInt groups=1) { + return at::_ops::conv2d_padding::redispatch(dispatchKeySet, input, weight, bias, stride, padding, dilation, groups); + } + + // aten::conv3d.padding(Tensor input, Tensor weight, Tensor? bias=None, SymInt[3] stride=1, str padding="valid", SymInt[3] dilation=1, SymInt groups=1) -> Tensor + inline at::Tensor conv3d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias, at::IntArrayRef stride, c10::string_view padding, at::IntArrayRef dilation=1, int64_t groups=1) { + return at::_ops::conv3d_padding::redispatch(dispatchKeySet, input, weight, bias, c10::fromIntArrayRefSlow(stride), padding, c10::fromIntArrayRefSlow(dilation), groups); + } + + // aten::conv3d.padding(Tensor input, Tensor weight, Tensor? bias=None, SymInt[3] stride=1, str padding="valid", SymInt[3] dilation=1, SymInt groups=1) -> Tensor + inline at::Tensor conv3d_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias, c10::SymIntArrayRef stride, c10::string_view padding, c10::SymIntArrayRef dilation=c10::SymInt(1), c10::SymInt groups=1) { + return at::_ops::conv3d_padding::redispatch(dispatchKeySet, input, weight, bias, stride, padding, dilation, groups); + } + + // aten::conv_tbc(Tensor self, Tensor weight, Tensor bias, int pad=0) -> Tensor + inline at::Tensor conv_tbc(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, const at::Tensor & bias, int64_t pad=0) { + return at::_ops::conv_tbc::redispatch(dispatchKeySet, self, weight, bias, pad); + } + + // aten::conv_tbc_backward(Tensor self, Tensor input, Tensor weight, Tensor bias, int pad) -> (Tensor, Tensor, Tensor) + inline ::std::tuple conv_tbc_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & input, const at::Tensor & weight, const at::Tensor & bias, int64_t pad) { + return at::_ops::conv_tbc_backward::redispatch(dispatchKeySet, self, input, weight, bias, pad); + } + + // aten::conv_transpose1d(Tensor input, Tensor weight, Tensor? bias=None, SymInt[1] stride=1, SymInt[1] padding=0, SymInt[1] output_padding=0, SymInt groups=1, SymInt[1] dilation=1) -> Tensor + inline at::Tensor conv_transpose1d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias={}, at::IntArrayRef stride=1, at::IntArrayRef padding=0, at::IntArrayRef output_padding=0, int64_t groups=1, at::IntArrayRef dilation=1) { + return at::_ops::conv_transpose1d::redispatch(dispatchKeySet, input, weight, bias, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(output_padding), groups, c10::fromIntArrayRefSlow(dilation)); + } + + // aten::conv_transpose1d(Tensor input, Tensor weight, Tensor? bias=None, SymInt[1] stride=1, SymInt[1] padding=0, SymInt[1] output_padding=0, SymInt groups=1, SymInt[1] dilation=1) -> Tensor + inline at::Tensor conv_transpose1d_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias={}, c10::SymIntArrayRef stride=c10::SymInt(1), c10::SymIntArrayRef padding=c10::SymInt(0), c10::SymIntArrayRef output_padding=c10::SymInt(0), c10::SymInt groups=1, c10::SymIntArrayRef dilation=c10::SymInt(1)) { + return at::_ops::conv_transpose1d::redispatch(dispatchKeySet, input, weight, bias, stride, padding, output_padding, groups, dilation); + } + + // aten::conv_transpose2d.input(Tensor input, Tensor weight, Tensor? bias=None, SymInt[2] stride=1, SymInt[2] padding=0, SymInt[2] output_padding=0, SymInt groups=1, SymInt[2] dilation=1) -> Tensor + inline at::Tensor conv_transpose2d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias={}, at::IntArrayRef stride=1, at::IntArrayRef padding=0, at::IntArrayRef output_padding=0, int64_t groups=1, at::IntArrayRef dilation=1) { + return at::_ops::conv_transpose2d_input::redispatch(dispatchKeySet, input, weight, bias, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(output_padding), groups, c10::fromIntArrayRefSlow(dilation)); + } + + // aten::conv_transpose2d.input(Tensor input, Tensor weight, Tensor? bias=None, SymInt[2] stride=1, SymInt[2] padding=0, SymInt[2] output_padding=0, SymInt groups=1, SymInt[2] dilation=1) -> Tensor + inline at::Tensor conv_transpose2d_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias={}, c10::SymIntArrayRef stride=c10::SymInt(1), c10::SymIntArrayRef padding=c10::SymInt(0), c10::SymIntArrayRef output_padding=c10::SymInt(0), c10::SymInt groups=1, c10::SymIntArrayRef dilation=c10::SymInt(1)) { + return at::_ops::conv_transpose2d_input::redispatch(dispatchKeySet, input, weight, bias, stride, padding, output_padding, groups, dilation); + } + + // aten::conv_transpose3d.input(Tensor input, Tensor weight, Tensor? bias=None, SymInt[3] stride=1, SymInt[3] padding=0, SymInt[3] output_padding=0, SymInt groups=1, SymInt[3] dilation=1) -> Tensor + inline at::Tensor conv_transpose3d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias={}, at::IntArrayRef stride=1, at::IntArrayRef padding=0, at::IntArrayRef output_padding=0, int64_t groups=1, at::IntArrayRef dilation=1) { + return at::_ops::conv_transpose3d_input::redispatch(dispatchKeySet, input, weight, bias, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(output_padding), groups, c10::fromIntArrayRefSlow(dilation)); + } + + // aten::conv_transpose3d.input(Tensor input, Tensor weight, Tensor? bias=None, SymInt[3] stride=1, SymInt[3] padding=0, SymInt[3] output_padding=0, SymInt groups=1, SymInt[3] dilation=1) -> Tensor + inline at::Tensor conv_transpose3d_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias={}, c10::SymIntArrayRef stride=c10::SymInt(1), c10::SymIntArrayRef padding=c10::SymInt(0), c10::SymIntArrayRef output_padding=c10::SymInt(0), c10::SymInt groups=1, c10::SymIntArrayRef dilation=c10::SymInt(1)) { + return at::_ops::conv_transpose3d_input::redispatch(dispatchKeySet, input, weight, bias, stride, padding, output_padding, groups, dilation); + } + + // aten::copy(Tensor self, Tensor src, bool non_blocking=False) -> Tensor + inline at::Tensor copy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & src, bool non_blocking=false) { + return at::_ops::copy::redispatch(dispatchKeySet, self, src, non_blocking); + } + + // aten::copy_(Tensor(a!) self, Tensor src, bool non_blocking=False) -> Tensor(a!) + inline at::Tensor & copy_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & src, bool non_blocking=false) { + return at::_ops::copy_::redispatch(dispatchKeySet, self, src, non_blocking); + } + + // aten::_copy_from(Tensor self, Tensor dst, bool non_blocking=False) -> Tensor + inline at::Tensor _copy_from(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & dst, bool non_blocking=false) { + return at::_ops::_copy_from::redispatch(dispatchKeySet, self, dst, non_blocking); + } + + // aten::_copy_from_and_resize(Tensor self, Tensor dst) -> Tensor + inline at::Tensor _copy_from_and_resize(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & dst) { + return at::_ops::_copy_from_and_resize::redispatch(dispatchKeySet, self, dst); + } + + // aten::cos(Tensor self) -> Tensor + inline at::Tensor cos(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::cos::redispatch(dispatchKeySet, self); + } + + // aten::cos_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & cos_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::cos_::redispatch(dispatchKeySet, self); + } + + // aten::cos.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & cos_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::cos_out::redispatch(dispatchKeySet, self, out); + } + + // aten::cos.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & cos_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::cos_out::redispatch(dispatchKeySet, self, out); + } + + // aten::cosh(Tensor self) -> Tensor + inline at::Tensor cosh(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::cosh::redispatch(dispatchKeySet, self); + } + + // aten::cosh_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & cosh_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::cosh_::redispatch(dispatchKeySet, self); + } + + // aten::cosh.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & cosh_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::cosh_out::redispatch(dispatchKeySet, self, out); + } + + // aten::cosh.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & cosh_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::cosh_out::redispatch(dispatchKeySet, self, out); + } + + // aten::cosine_embedding_loss(Tensor input1, Tensor input2, Tensor target, float margin=0.0, int reduction=Mean) -> Tensor + inline at::Tensor cosine_embedding_loss(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input1, const at::Tensor & input2, const at::Tensor & target, double margin=0.0, int64_t reduction=at::Reduction::Mean) { + return at::_ops::cosine_embedding_loss::redispatch(dispatchKeySet, input1, input2, target, margin, reduction); + } + + // aten::count_nonzero.dim_IntList(Tensor self, int[] dim) -> Tensor + inline at::Tensor count_nonzero(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef dim) { + return at::_ops::count_nonzero_dim_IntList::redispatch(dispatchKeySet, self, dim); + } + + // aten::count_nonzero(Tensor self, int? dim=None) -> Tensor + inline at::Tensor count_nonzero(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional dim=c10::nullopt) { + return at::_ops::count_nonzero::redispatch(dispatchKeySet, self, dim); + } + + // aten::cov(Tensor self, *, int correction=1, Tensor? fweights=None, Tensor? aweights=None) -> Tensor + inline at::Tensor cov(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t correction=1, const c10::optional & fweights={}, const c10::optional & aweights={}) { + return at::_ops::cov::redispatch(dispatchKeySet, self, correction, fweights, aweights); + } + + // aten::corrcoef(Tensor self) -> Tensor + inline at::Tensor corrcoef(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::corrcoef::redispatch(dispatchKeySet, self); + } + + // aten::cudnn_affine_grid_generator(Tensor theta, int N, int C, int H, int W) -> Tensor grid + inline at::Tensor cudnn_affine_grid_generator(c10::DispatchKeySet dispatchKeySet, const at::Tensor & theta, int64_t N, int64_t C, int64_t H, int64_t W) { + return at::_ops::cudnn_affine_grid_generator::redispatch(dispatchKeySet, theta, N, C, H, W); + } + + // aten::cudnn_affine_grid_generator_backward(Tensor grad, int N, int C, int H, int W) -> Tensor grad_theta + inline at::Tensor cudnn_affine_grid_generator_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad, int64_t N, int64_t C, int64_t H, int64_t W) { + return at::_ops::cudnn_affine_grid_generator_backward::redispatch(dispatchKeySet, grad, N, C, H, W); + } + + // aten::cudnn_batch_norm(Tensor input, Tensor weight, Tensor? bias, Tensor? running_mean, Tensor? running_var, bool training, float exponential_average_factor, float epsilon) -> (Tensor, Tensor, Tensor, Tensor) + inline ::std::tuple cudnn_batch_norm(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias, const c10::optional & running_mean, const c10::optional & running_var, bool training, double exponential_average_factor, double epsilon) { + return at::_ops::cudnn_batch_norm::redispatch(dispatchKeySet, input, weight, bias, running_mean, running_var, training, exponential_average_factor, epsilon); + } + + // aten::cudnn_batch_norm_backward(Tensor input, Tensor grad_output, Tensor weight, Tensor? running_mean, Tensor? running_var, Tensor? save_mean, Tensor? save_var, float epsilon, Tensor reserveSpace) -> (Tensor, Tensor, Tensor) + inline ::std::tuple cudnn_batch_norm_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & grad_output, const at::Tensor & weight, const c10::optional & running_mean, const c10::optional & running_var, const c10::optional & save_mean, const c10::optional & save_var, double epsilon, const at::Tensor & reserveSpace) { + return at::_ops::cudnn_batch_norm_backward::redispatch(dispatchKeySet, input, grad_output, weight, running_mean, running_var, save_mean, save_var, epsilon, reserveSpace); + } + + // aten::cudnn_convolution(Tensor self, Tensor weight, SymInt[] padding, SymInt[] stride, SymInt[] dilation, SymInt groups, bool benchmark, bool deterministic, bool allow_tf32) -> Tensor + inline at::Tensor cudnn_convolution(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, at::IntArrayRef padding, at::IntArrayRef stride, at::IntArrayRef dilation, int64_t groups, bool benchmark, bool deterministic, bool allow_tf32) { + return at::_ops::cudnn_convolution::redispatch(dispatchKeySet, self, weight, c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(dilation), groups, benchmark, deterministic, allow_tf32); + } + + // aten::cudnn_convolution(Tensor self, Tensor weight, SymInt[] padding, SymInt[] stride, SymInt[] dilation, SymInt groups, bool benchmark, bool deterministic, bool allow_tf32) -> Tensor + inline at::Tensor cudnn_convolution_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, c10::SymIntArrayRef padding, c10::SymIntArrayRef stride, c10::SymIntArrayRef dilation, c10::SymInt groups, bool benchmark, bool deterministic, bool allow_tf32) { + return at::_ops::cudnn_convolution::redispatch(dispatchKeySet, self, weight, padding, stride, dilation, groups, benchmark, deterministic, allow_tf32); + } + + // aten::cudnn_convolution.out(Tensor self, Tensor weight, SymInt[] padding, SymInt[] stride, SymInt[] dilation, SymInt groups, bool benchmark, bool deterministic, bool allow_tf32, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & cudnn_convolution_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & weight, at::IntArrayRef padding, at::IntArrayRef stride, at::IntArrayRef dilation, int64_t groups, bool benchmark, bool deterministic, bool allow_tf32) { + return at::_ops::cudnn_convolution_out::redispatch(dispatchKeySet, self, weight, c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(dilation), groups, benchmark, deterministic, allow_tf32, out); + } + + // aten::cudnn_convolution.out(Tensor self, Tensor weight, SymInt[] padding, SymInt[] stride, SymInt[] dilation, SymInt groups, bool benchmark, bool deterministic, bool allow_tf32, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & cudnn_convolution_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, at::IntArrayRef padding, at::IntArrayRef stride, at::IntArrayRef dilation, int64_t groups, bool benchmark, bool deterministic, bool allow_tf32, at::Tensor & out) { + return at::_ops::cudnn_convolution_out::redispatch(dispatchKeySet, self, weight, c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(dilation), groups, benchmark, deterministic, allow_tf32, out); + } + + // aten::cudnn_convolution.out(Tensor self, Tensor weight, SymInt[] padding, SymInt[] stride, SymInt[] dilation, SymInt groups, bool benchmark, bool deterministic, bool allow_tf32, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & cudnn_convolution_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & weight, c10::SymIntArrayRef padding, c10::SymIntArrayRef stride, c10::SymIntArrayRef dilation, c10::SymInt groups, bool benchmark, bool deterministic, bool allow_tf32) { + return at::_ops::cudnn_convolution_out::redispatch(dispatchKeySet, self, weight, padding, stride, dilation, groups, benchmark, deterministic, allow_tf32, out); + } + + // aten::cudnn_convolution.out(Tensor self, Tensor weight, SymInt[] padding, SymInt[] stride, SymInt[] dilation, SymInt groups, bool benchmark, bool deterministic, bool allow_tf32, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & cudnn_convolution_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, c10::SymIntArrayRef padding, c10::SymIntArrayRef stride, c10::SymIntArrayRef dilation, c10::SymInt groups, bool benchmark, bool deterministic, bool allow_tf32, at::Tensor & out) { + return at::_ops::cudnn_convolution_out::redispatch(dispatchKeySet, self, weight, padding, stride, dilation, groups, benchmark, deterministic, allow_tf32, out); + } + + // aten::cudnn_convolution_transpose(Tensor self, Tensor weight, SymInt[] padding, SymInt[] output_padding, SymInt[] stride, SymInt[] dilation, SymInt groups, bool benchmark, bool deterministic, bool allow_tf32) -> Tensor + inline at::Tensor cudnn_convolution_transpose(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, at::IntArrayRef padding, at::IntArrayRef output_padding, at::IntArrayRef stride, at::IntArrayRef dilation, int64_t groups, bool benchmark, bool deterministic, bool allow_tf32) { + return at::_ops::cudnn_convolution_transpose::redispatch(dispatchKeySet, self, weight, c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(output_padding), c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(dilation), groups, benchmark, deterministic, allow_tf32); + } + + // aten::cudnn_convolution_transpose(Tensor self, Tensor weight, SymInt[] padding, SymInt[] output_padding, SymInt[] stride, SymInt[] dilation, SymInt groups, bool benchmark, bool deterministic, bool allow_tf32) -> Tensor + inline at::Tensor cudnn_convolution_transpose_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, c10::SymIntArrayRef padding, c10::SymIntArrayRef output_padding, c10::SymIntArrayRef stride, c10::SymIntArrayRef dilation, c10::SymInt groups, bool benchmark, bool deterministic, bool allow_tf32) { + return at::_ops::cudnn_convolution_transpose::redispatch(dispatchKeySet, self, weight, padding, output_padding, stride, dilation, groups, benchmark, deterministic, allow_tf32); + } + + // aten::_mps_convolution_transpose(Tensor self, Tensor weight, SymInt[] padding, SymInt[] output_padding, SymInt[] stride, SymInt[] dilation, SymInt groups) -> Tensor + inline at::Tensor _mps_convolution_transpose(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, at::IntArrayRef padding, at::IntArrayRef output_padding, at::IntArrayRef stride, at::IntArrayRef dilation, int64_t groups) { + return at::_ops::_mps_convolution_transpose::redispatch(dispatchKeySet, self, weight, c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(output_padding), c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(dilation), groups); + } + + // aten::_mps_convolution_transpose(Tensor self, Tensor weight, SymInt[] padding, SymInt[] output_padding, SymInt[] stride, SymInt[] dilation, SymInt groups) -> Tensor + inline at::Tensor _mps_convolution_transpose_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, c10::SymIntArrayRef padding, c10::SymIntArrayRef output_padding, c10::SymIntArrayRef stride, c10::SymIntArrayRef dilation, c10::SymInt groups) { + return at::_ops::_mps_convolution_transpose::redispatch(dispatchKeySet, self, weight, padding, output_padding, stride, dilation, groups); + } + + // aten::mps_convolution_transpose_backward(Tensor self, Tensor grad_output, Tensor weight, SymInt[] padding, SymInt[] output_padding, SymInt[] stride, SymInt[] dilation, SymInt groups, bool[2] output_mask) -> (Tensor, Tensor) + inline ::std::tuple mps_convolution_transpose_backward(c10::DispatchKeySet dispatchKeySet, 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) { + return at::_ops::mps_convolution_transpose_backward::redispatch(dispatchKeySet, self, grad_output, weight, c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(output_padding), c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(dilation), groups, output_mask); + } + + // aten::mps_convolution_transpose_backward(Tensor self, Tensor grad_output, Tensor weight, SymInt[] padding, SymInt[] output_padding, SymInt[] stride, SymInt[] dilation, SymInt groups, bool[2] output_mask) -> (Tensor, Tensor) + inline ::std::tuple mps_convolution_transpose_backward_symint(c10::DispatchKeySet dispatchKeySet, 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) { + return at::_ops::mps_convolution_transpose_backward::redispatch(dispatchKeySet, self, grad_output, weight, padding, output_padding, stride, dilation, groups, output_mask); + } + + // aten::cudnn_convolution_relu(Tensor self, Tensor weight, Tensor? bias, SymInt[] stride, SymInt[] padding, SymInt[] dilation, SymInt groups) -> Tensor + inline at::Tensor cudnn_convolution_relu(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, const c10::optional & bias, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, int64_t groups) { + return at::_ops::cudnn_convolution_relu::redispatch(dispatchKeySet, self, weight, bias, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(dilation), groups); + } + + // aten::cudnn_convolution_relu(Tensor self, Tensor weight, Tensor? bias, SymInt[] stride, SymInt[] padding, SymInt[] dilation, SymInt groups) -> Tensor + inline at::Tensor cudnn_convolution_relu_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, const c10::optional & bias, c10::SymIntArrayRef stride, c10::SymIntArrayRef padding, c10::SymIntArrayRef dilation, c10::SymInt groups) { + return at::_ops::cudnn_convolution_relu::redispatch(dispatchKeySet, self, weight, bias, stride, padding, dilation, groups); + } + + // aten::cudnn_convolution_add_relu(Tensor self, Tensor weight, Tensor z, Scalar? alpha, Tensor? bias, SymInt[] stride, SymInt[] padding, SymInt[] dilation, SymInt groups) -> Tensor + inline at::Tensor cudnn_convolution_add_relu(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, const at::Tensor & z, const c10::optional & alpha, const c10::optional & bias, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, int64_t groups) { + return at::_ops::cudnn_convolution_add_relu::redispatch(dispatchKeySet, self, weight, z, alpha, bias, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(dilation), groups); + } + + // aten::cudnn_convolution_add_relu(Tensor self, Tensor weight, Tensor z, Scalar? alpha, Tensor? bias, SymInt[] stride, SymInt[] padding, SymInt[] dilation, SymInt groups) -> Tensor + inline at::Tensor cudnn_convolution_add_relu_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, const at::Tensor & z, const c10::optional & alpha, const c10::optional & bias, c10::SymIntArrayRef stride, c10::SymIntArrayRef padding, c10::SymIntArrayRef dilation, c10::SymInt groups) { + return at::_ops::cudnn_convolution_add_relu::redispatch(dispatchKeySet, self, weight, z, alpha, bias, stride, padding, dilation, groups); + } + + // aten::cudnn_grid_sampler(Tensor self, Tensor grid) -> Tensor output + inline at::Tensor cudnn_grid_sampler(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & grid) { + return at::_ops::cudnn_grid_sampler::redispatch(dispatchKeySet, self, grid); + } + + // aten::cudnn_grid_sampler_backward(Tensor self, Tensor grid, Tensor grad_output) -> (Tensor grad_self, Tensor grad_grid) + inline ::std::tuple cudnn_grid_sampler_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & grid, const at::Tensor & grad_output) { + return at::_ops::cudnn_grid_sampler_backward::redispatch(dispatchKeySet, self, grid, grad_output); + } + + // aten::cummax(Tensor self, int dim) -> (Tensor values, Tensor indices) + inline ::std::tuple cummax(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim) { + return at::_ops::cummax::redispatch(dispatchKeySet, self, dim); + } + + // aten::cummax.out(Tensor self, int dim, *, Tensor(a!) values, Tensor(b!) indices) -> (Tensor(a!) values, Tensor(b!) indices) + inline ::std::tuple cummax_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & values, at::Tensor & indices, const at::Tensor & self, int64_t dim) { + return at::_ops::cummax_out::redispatch(dispatchKeySet, self, dim, values, indices); + } + + // aten::cummax.out(Tensor self, int dim, *, Tensor(a!) values, Tensor(b!) indices) -> (Tensor(a!) values, Tensor(b!) indices) + inline ::std::tuple cummax_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, at::Tensor & values, at::Tensor & indices) { + return at::_ops::cummax_out::redispatch(dispatchKeySet, self, dim, values, indices); + } + + // aten::cummax.dimname(Tensor self, Dimname dim) -> (Tensor values, Tensor indices) + inline ::std::tuple cummax(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim) { + return at::_ops::cummax_dimname::redispatch(dispatchKeySet, self, dim); + } + + // aten::cummax.dimname_out(Tensor self, Dimname dim, *, Tensor(a!) values, Tensor(b!) indices) -> (Tensor(a!) values, Tensor(b!) indices) + inline ::std::tuple cummax_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & values, at::Tensor & indices, const at::Tensor & self, at::Dimname dim) { + return at::_ops::cummax_dimname_out::redispatch(dispatchKeySet, self, dim, values, indices); + } + + // aten::cummax.dimname_out(Tensor self, Dimname dim, *, Tensor(a!) values, Tensor(b!) indices) -> (Tensor(a!) values, Tensor(b!) indices) + inline ::std::tuple cummax_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim, at::Tensor & values, at::Tensor & indices) { + return at::_ops::cummax_dimname_out::redispatch(dispatchKeySet, self, dim, values, indices); + } + + // aten::_cummax_helper(Tensor self, Tensor(a!) values, Tensor(b!) indices, int dim) -> () + inline void _cummax_helper(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & values, at::Tensor & indices, int64_t dim) { + return at::_ops::_cummax_helper::redispatch(dispatchKeySet, self, values, indices, dim); + } + + // aten::cummin(Tensor self, int dim) -> (Tensor values, Tensor indices) + inline ::std::tuple cummin(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim) { + return at::_ops::cummin::redispatch(dispatchKeySet, self, dim); + } + + // aten::cummin.out(Tensor self, int dim, *, Tensor(a!) values, Tensor(b!) indices) -> (Tensor(a!) values, Tensor(b!) indices) + inline ::std::tuple cummin_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & values, at::Tensor & indices, const at::Tensor & self, int64_t dim) { + return at::_ops::cummin_out::redispatch(dispatchKeySet, self, dim, values, indices); + } + + // aten::cummin.out(Tensor self, int dim, *, Tensor(a!) values, Tensor(b!) indices) -> (Tensor(a!) values, Tensor(b!) indices) + inline ::std::tuple cummin_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, at::Tensor & values, at::Tensor & indices) { + return at::_ops::cummin_out::redispatch(dispatchKeySet, self, dim, values, indices); + } + + // aten::cummin.dimname(Tensor self, Dimname dim) -> (Tensor values, Tensor indices) + inline ::std::tuple cummin(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim) { + return at::_ops::cummin_dimname::redispatch(dispatchKeySet, self, dim); + } + + // aten::cummin.dimname_out(Tensor self, Dimname dim, *, Tensor(a!) values, Tensor(b!) indices) -> (Tensor(a!) values, Tensor(b!) indices) + inline ::std::tuple cummin_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & values, at::Tensor & indices, const at::Tensor & self, at::Dimname dim) { + return at::_ops::cummin_dimname_out::redispatch(dispatchKeySet, self, dim, values, indices); + } + + // aten::cummin.dimname_out(Tensor self, Dimname dim, *, Tensor(a!) values, Tensor(b!) indices) -> (Tensor(a!) values, Tensor(b!) indices) + inline ::std::tuple cummin_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim, at::Tensor & values, at::Tensor & indices) { + return at::_ops::cummin_dimname_out::redispatch(dispatchKeySet, self, dim, values, indices); + } + + // aten::_cummin_helper(Tensor self, Tensor(a!) values, Tensor(b!) indices, int dim) -> () + inline void _cummin_helper(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & values, at::Tensor & indices, int64_t dim) { + return at::_ops::_cummin_helper::redispatch(dispatchKeySet, self, values, indices, dim); + } + + // aten::cummaxmin_backward(Tensor grad, Tensor input, Tensor indices, int dim) -> Tensor + inline at::Tensor cummaxmin_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad, const at::Tensor & input, const at::Tensor & indices, int64_t dim) { + return at::_ops::cummaxmin_backward::redispatch(dispatchKeySet, grad, input, indices, dim); + } + + // aten::cumprod(Tensor self, int dim, *, ScalarType? dtype=None) -> Tensor + inline at::Tensor cumprod(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, c10::optional dtype=c10::nullopt) { + return at::_ops::cumprod::redispatch(dispatchKeySet, self, dim, dtype); + } + + // aten::cumprod_(Tensor(a!) self, int dim, *, ScalarType? dtype=None) -> Tensor(a!) + inline at::Tensor & cumprod_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, int64_t dim, c10::optional dtype=c10::nullopt) { + return at::_ops::cumprod_::redispatch(dispatchKeySet, self, dim, dtype); + } + + // aten::cumprod.out(Tensor self, int dim, *, ScalarType? dtype=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & cumprod_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t dim, c10::optional dtype=c10::nullopt) { + return at::_ops::cumprod_out::redispatch(dispatchKeySet, self, dim, dtype, out); + } + + // aten::cumprod.out(Tensor self, int dim, *, ScalarType? dtype=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & cumprod_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, c10::optional dtype, at::Tensor & out) { + return at::_ops::cumprod_out::redispatch(dispatchKeySet, self, dim, dtype, out); + } + + // aten::cumprod.dimname(Tensor self, Dimname dim, *, ScalarType? dtype=None) -> Tensor + inline at::Tensor cumprod(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim, c10::optional dtype=c10::nullopt) { + return at::_ops::cumprod_dimname::redispatch(dispatchKeySet, self, dim, dtype); + } + + // aten::cumprod_.dimname(Tensor(a!) self, Dimname dim, *, ScalarType? dtype=None) -> Tensor(a!) + inline at::Tensor & cumprod_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, at::Dimname dim, c10::optional dtype=c10::nullopt) { + return at::_ops::cumprod__dimname::redispatch(dispatchKeySet, self, dim, dtype); + } + + // aten::cumprod.dimname_out(Tensor self, Dimname dim, *, ScalarType? dtype=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & cumprod_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::Dimname dim, c10::optional dtype=c10::nullopt) { + return at::_ops::cumprod_dimname_out::redispatch(dispatchKeySet, self, dim, dtype, out); + } + + // aten::cumprod.dimname_out(Tensor self, Dimname dim, *, ScalarType? dtype=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & cumprod_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim, c10::optional dtype, at::Tensor & out) { + return at::_ops::cumprod_dimname_out::redispatch(dispatchKeySet, self, dim, dtype, out); + } + + // aten::cumprod_backward(Tensor grad, Tensor input, int dim, Tensor output) -> Tensor + inline at::Tensor cumprod_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad, const at::Tensor & input, int64_t dim, const at::Tensor & output) { + return at::_ops::cumprod_backward::redispatch(dispatchKeySet, grad, input, dim, output); + } + + // aten::cumsum(Tensor self, int dim, *, ScalarType? dtype=None) -> Tensor + inline at::Tensor cumsum(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, c10::optional dtype=c10::nullopt) { + return at::_ops::cumsum::redispatch(dispatchKeySet, self, dim, dtype); + } + + // aten::cumsum_(Tensor(a!) self, int dim, *, ScalarType? dtype=None) -> Tensor(a!) + inline at::Tensor & cumsum_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, int64_t dim, c10::optional dtype=c10::nullopt) { + return at::_ops::cumsum_::redispatch(dispatchKeySet, self, dim, dtype); + } + + // aten::cumsum.out(Tensor self, int dim, *, ScalarType? dtype=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & cumsum_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t dim, c10::optional dtype=c10::nullopt) { + return at::_ops::cumsum_out::redispatch(dispatchKeySet, self, dim, dtype, out); + } + + // aten::cumsum.out(Tensor self, int dim, *, ScalarType? dtype=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & cumsum_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, c10::optional dtype, at::Tensor & out) { + return at::_ops::cumsum_out::redispatch(dispatchKeySet, self, dim, dtype, out); + } + + // aten::cumsum.dimname(Tensor self, Dimname dim, *, ScalarType? dtype=None) -> Tensor + inline at::Tensor cumsum(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim, c10::optional dtype=c10::nullopt) { + return at::_ops::cumsum_dimname::redispatch(dispatchKeySet, self, dim, dtype); + } + + // aten::cumsum_.dimname(Tensor(a!) self, Dimname dim, *, ScalarType? dtype=None) -> Tensor(a!) + inline at::Tensor & cumsum_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, at::Dimname dim, c10::optional dtype=c10::nullopt) { + return at::_ops::cumsum__dimname::redispatch(dispatchKeySet, self, dim, dtype); + } + + // aten::cumsum.dimname_out(Tensor self, Dimname dim, *, ScalarType? dtype=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & cumsum_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::Dimname dim, c10::optional dtype=c10::nullopt) { + return at::_ops::cumsum_dimname_out::redispatch(dispatchKeySet, self, dim, dtype, out); + } + + // aten::cumsum.dimname_out(Tensor self, Dimname dim, *, ScalarType? dtype=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & cumsum_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim, c10::optional dtype, at::Tensor & out) { + return at::_ops::cumsum_dimname_out::redispatch(dispatchKeySet, self, dim, dtype, out); + } + + // aten::cumulative_trapezoid.x(Tensor y, Tensor x, *, int dim=-1) -> Tensor + inline at::Tensor cumulative_trapezoid(c10::DispatchKeySet dispatchKeySet, const at::Tensor & y, const at::Tensor & x, int64_t dim=-1) { + return at::_ops::cumulative_trapezoid_x::redispatch(dispatchKeySet, y, x, dim); + } + + // aten::cumulative_trapezoid.dx(Tensor y, *, Scalar dx=1, int dim=-1) -> Tensor + inline at::Tensor cumulative_trapezoid(c10::DispatchKeySet dispatchKeySet, const at::Tensor & y, const at::Scalar & dx=1, int64_t dim=-1) { + return at::_ops::cumulative_trapezoid_dx::redispatch(dispatchKeySet, y, dx, dim); + } + + // aten::ctc_loss.IntList(Tensor log_probs, Tensor targets, int[] input_lengths, int[] target_lengths, int blank=0, int reduction=Mean, bool zero_infinity=False) -> Tensor + inline at::Tensor ctc_loss(c10::DispatchKeySet dispatchKeySet, const at::Tensor & log_probs, const at::Tensor & targets, at::IntArrayRef input_lengths, at::IntArrayRef target_lengths, int64_t blank=0, int64_t reduction=at::Reduction::Mean, bool zero_infinity=false) { + return at::_ops::ctc_loss_IntList::redispatch(dispatchKeySet, log_probs, targets, input_lengths, target_lengths, blank, reduction, zero_infinity); + } + + // aten::ctc_loss.Tensor(Tensor log_probs, Tensor targets, Tensor input_lengths, Tensor target_lengths, int blank=0, int reduction=Mean, bool zero_infinity=False) -> Tensor + inline at::Tensor ctc_loss(c10::DispatchKeySet dispatchKeySet, const at::Tensor & log_probs, const at::Tensor & targets, const at::Tensor & input_lengths, const at::Tensor & target_lengths, int64_t blank=0, int64_t reduction=at::Reduction::Mean, bool zero_infinity=false) { + return at::_ops::ctc_loss_Tensor::redispatch(dispatchKeySet, log_probs, targets, input_lengths, target_lengths, blank, reduction, zero_infinity); + } + + // aten::_ctc_loss(Tensor log_probs, Tensor targets, int[] input_lengths, int[] target_lengths, int blank=0, bool zero_infinity=False) -> (Tensor, Tensor) + inline ::std::tuple _ctc_loss(c10::DispatchKeySet dispatchKeySet, const at::Tensor & log_probs, const at::Tensor & targets, at::IntArrayRef input_lengths, at::IntArrayRef target_lengths, int64_t blank=0, bool zero_infinity=false) { + return at::_ops::_ctc_loss::redispatch(dispatchKeySet, log_probs, targets, input_lengths, target_lengths, blank, zero_infinity); + } + + // aten::_ctc_loss.Tensor(Tensor log_probs, Tensor targets, Tensor input_lengths, Tensor target_lengths, int blank=0, bool zero_infinity=False) -> (Tensor, Tensor) + inline ::std::tuple _ctc_loss(c10::DispatchKeySet dispatchKeySet, const at::Tensor & log_probs, const at::Tensor & targets, const at::Tensor & input_lengths, const at::Tensor & target_lengths, int64_t blank=0, bool zero_infinity=false) { + return at::_ops::_ctc_loss_Tensor::redispatch(dispatchKeySet, log_probs, targets, input_lengths, target_lengths, blank, zero_infinity); + } + + // aten::_ctc_loss_backward(Tensor grad, Tensor log_probs, Tensor targets, int[] input_lengths, int[] target_lengths, Tensor neg_log_likelihood, Tensor log_alpha, int blank, bool zero_infinity=False) -> Tensor + inline at::Tensor _ctc_loss_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad, const at::Tensor & log_probs, const at::Tensor & targets, at::IntArrayRef input_lengths, at::IntArrayRef target_lengths, const at::Tensor & neg_log_likelihood, const at::Tensor & log_alpha, int64_t blank, bool zero_infinity=false) { + return at::_ops::_ctc_loss_backward::redispatch(dispatchKeySet, grad, log_probs, targets, input_lengths, target_lengths, neg_log_likelihood, log_alpha, blank, zero_infinity); + } + + // aten::_ctc_loss_backward.Tensor(Tensor grad, Tensor log_probs, Tensor targets, Tensor input_lengths, Tensor target_lengths, Tensor neg_log_likelihood, Tensor log_alpha, int blank, bool zero_infinity=False) -> Tensor + inline at::Tensor _ctc_loss_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad, const at::Tensor & log_probs, const at::Tensor & targets, const at::Tensor & input_lengths, const at::Tensor & target_lengths, const at::Tensor & neg_log_likelihood, const at::Tensor & log_alpha, int64_t blank, bool zero_infinity=false) { + return at::_ops::_ctc_loss_backward_Tensor::redispatch(dispatchKeySet, grad, log_probs, targets, input_lengths, target_lengths, neg_log_likelihood, log_alpha, blank, zero_infinity); + } + + // aten::diag_embed(Tensor self, int offset=0, int dim1=-2, int dim2=-1) -> Tensor + inline at::Tensor diag_embed(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t offset=0, int64_t dim1=-2, int64_t dim2=-1) { + return at::_ops::diag_embed::redispatch(dispatchKeySet, self, offset, dim1, dim2); + } + + // aten::diagflat(Tensor self, int offset=0) -> Tensor + inline at::Tensor diagflat(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t offset=0) { + return at::_ops::diagflat::redispatch(dispatchKeySet, self, offset); + } + + // aten::diagonal(Tensor(a) self, int offset=0, int dim1=0, int dim2=1) -> Tensor(a) + inline at::Tensor diagonal(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t offset=0, int64_t dim1=0, int64_t dim2=1) { + return at::_ops::diagonal::redispatch(dispatchKeySet, self, offset, dim1, dim2); + } + + // aten::linalg_diagonal(Tensor(a) A, *, int offset=0, int dim1=-2, int dim2=-1) -> Tensor(a) + inline at::Tensor linalg_diagonal(c10::DispatchKeySet dispatchKeySet, const at::Tensor & A, int64_t offset=0, int64_t dim1=-2, int64_t dim2=-1) { + return at::_ops::linalg_diagonal::redispatch(dispatchKeySet, A, offset, dim1, dim2); + } + + // aten::diagonal.Dimname(Tensor(a) self, *, Dimname outdim, Dimname dim1, Dimname dim2, int offset=0) -> Tensor(a) + inline at::Tensor diagonal(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname outdim, at::Dimname dim1, at::Dimname dim2, int64_t offset=0) { + return at::_ops::diagonal_Dimname::redispatch(dispatchKeySet, self, outdim, dim1, dim2, offset); + } + + // aten::diagonal_backward(Tensor grad_output, SymInt[] input_sizes, int offset, int dim1, int dim2) -> Tensor + inline at::Tensor diagonal_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, at::IntArrayRef input_sizes, int64_t offset, int64_t dim1, int64_t dim2) { + return at::_ops::diagonal_backward::redispatch(dispatchKeySet, grad_output, c10::fromIntArrayRefSlow(input_sizes), offset, dim1, dim2); + } + + // aten::diagonal_backward(Tensor grad_output, SymInt[] input_sizes, int offset, int dim1, int dim2) -> Tensor + inline at::Tensor diagonal_backward_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, c10::SymIntArrayRef input_sizes, int64_t offset, int64_t dim1, int64_t dim2) { + return at::_ops::diagonal_backward::redispatch(dispatchKeySet, grad_output, input_sizes, offset, dim1, dim2); + } + + // aten::fill_diagonal_(Tensor(a!) self, Scalar fill_value, bool wrap=False) -> Tensor(a!) + inline at::Tensor & fill_diagonal_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Scalar & fill_value, bool wrap=false) { + return at::_ops::fill_diagonal_::redispatch(dispatchKeySet, self, fill_value, wrap); + } + + // aten::diff(Tensor self, int n=1, int dim=-1, Tensor? prepend=None, Tensor? append=None) -> Tensor + inline at::Tensor diff(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t n=1, int64_t dim=-1, const c10::optional & prepend={}, const c10::optional & append={}) { + return at::_ops::diff::redispatch(dispatchKeySet, self, n, dim, prepend, append); + } + + // aten::diff.out(Tensor self, int n=1, int dim=-1, Tensor? prepend=None, Tensor? append=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & diff_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t n=1, int64_t dim=-1, const c10::optional & prepend={}, const c10::optional & append={}) { + return at::_ops::diff_out::redispatch(dispatchKeySet, self, n, dim, prepend, append, out); + } + + // aten::diff.out(Tensor self, int n=1, int dim=-1, Tensor? prepend=None, Tensor? append=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & diff_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t n, int64_t dim, const c10::optional & prepend, const c10::optional & append, at::Tensor & out) { + return at::_ops::diff_out::redispatch(dispatchKeySet, self, n, dim, prepend, append, out); + } + + // aten::gradient.scalarint(Tensor self, *, Scalar? spacing=None, int? dim=None, int edge_order=1) -> Tensor[] + inline ::std::vector gradient(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const c10::optional & spacing=c10::nullopt, c10::optional dim=c10::nullopt, int64_t edge_order=1) { + return at::_ops::gradient_scalarint::redispatch(dispatchKeySet, self, spacing, dim, edge_order); + } + + // aten::gradient.scalararray(Tensor self, *, Scalar spacing, int[] dim, int edge_order=1) -> Tensor[] + inline ::std::vector gradient(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & spacing, at::IntArrayRef dim, int64_t edge_order=1) { + return at::_ops::gradient_scalararray::redispatch(dispatchKeySet, self, spacing, dim, edge_order); + } + + // aten::gradient.array(Tensor self, *, int[] dim, int edge_order=1) -> Tensor[] + inline ::std::vector gradient(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef dim, int64_t edge_order=1) { + return at::_ops::gradient_array::redispatch(dispatchKeySet, self, dim, edge_order); + } + + // aten::gradient.scalarrayint(Tensor self, *, Scalar[] spacing, int? dim=None, int edge_order=1) -> Tensor[] + inline ::std::vector gradient(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::ArrayRef spacing, c10::optional dim=c10::nullopt, int64_t edge_order=1) { + return at::_ops::gradient_scalarrayint::redispatch(dispatchKeySet, self, spacing, dim, edge_order); + } + + // aten::gradient.scalarrayarray(Tensor self, *, Scalar[] spacing, int[] dim, int edge_order=1) -> Tensor[] + inline ::std::vector gradient(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::ArrayRef spacing, at::IntArrayRef dim, int64_t edge_order=1) { + return at::_ops::gradient_scalarrayarray::redispatch(dispatchKeySet, self, spacing, dim, edge_order); + } + + // aten::gradient.tensorarrayint(Tensor self, *, Tensor[] spacing, int? dim=None, int edge_order=1) -> Tensor[] + inline ::std::vector gradient(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::TensorList spacing, c10::optional dim=c10::nullopt, int64_t edge_order=1) { + return at::_ops::gradient_tensorarrayint::redispatch(dispatchKeySet, self, spacing, dim, edge_order); + } + + // aten::gradient.tensorarray(Tensor self, *, Tensor[] spacing, int[] dim, int edge_order=1) -> Tensor[] + inline ::std::vector gradient(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::TensorList spacing, at::IntArrayRef dim, int64_t edge_order=1) { + return at::_ops::gradient_tensorarray::redispatch(dispatchKeySet, self, spacing, dim, edge_order); + } + + // aten::div.Tensor(Tensor self, Tensor other) -> Tensor + inline at::Tensor div(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::div_Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::div_.Tensor(Tensor(a!) self, Tensor other) -> Tensor(a!) + inline at::Tensor & div_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & other) { + return at::_ops::div__Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::div.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & div_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::div_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::div.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & div_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::div_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::div.Tensor_mode(Tensor self, Tensor other, *, str? rounding_mode) -> Tensor + inline at::Tensor div(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, c10::optional rounding_mode) { + return at::_ops::div_Tensor_mode::redispatch(dispatchKeySet, self, other, rounding_mode); + } + + // aten::div_.Tensor_mode(Tensor(a!) self, Tensor other, *, str? rounding_mode) -> Tensor(a!) + inline at::Tensor & div_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & other, c10::optional rounding_mode) { + return at::_ops::div__Tensor_mode::redispatch(dispatchKeySet, self, other, rounding_mode); + } + + // aten::div.out_mode(Tensor self, Tensor other, *, str? rounding_mode, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & div_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other, c10::optional rounding_mode) { + return at::_ops::div_out_mode::redispatch(dispatchKeySet, self, other, rounding_mode, out); + } + + // aten::div.out_mode(Tensor self, Tensor other, *, str? rounding_mode, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & div_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, c10::optional rounding_mode, at::Tensor & out) { + return at::_ops::div_out_mode::redispatch(dispatchKeySet, self, other, rounding_mode, out); + } + + // aten::div.Scalar(Tensor self, Scalar other) -> Tensor + inline at::Tensor div(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::div_Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::div_.Scalar(Tensor(a!) self, Scalar other) -> Tensor(a!) + inline at::Tensor & div_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Scalar & other) { + return at::_ops::div__Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::div.Scalar_mode(Tensor self, Scalar other, *, str? rounding_mode) -> Tensor + inline at::Tensor div(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other, c10::optional rounding_mode) { + return at::_ops::div_Scalar_mode::redispatch(dispatchKeySet, self, other, rounding_mode); + } + + // aten::div_.Scalar_mode(Tensor(a!) self, Scalar other, *, str? rounding_mode) -> Tensor(a!) + inline at::Tensor & div_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Scalar & other, c10::optional rounding_mode) { + return at::_ops::div__Scalar_mode::redispatch(dispatchKeySet, self, other, rounding_mode); + } + + // aten::divide.Tensor(Tensor self, Tensor other) -> Tensor + inline at::Tensor divide(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::divide_Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::divide_.Tensor(Tensor(a!) self, Tensor other) -> Tensor(a!) + inline at::Tensor & divide_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & other) { + return at::_ops::divide__Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::divide.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & divide_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::divide_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::divide.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & divide_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::divide_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::divide.Scalar(Tensor self, Scalar other) -> Tensor + inline at::Tensor divide(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::divide_Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::divide_.Scalar(Tensor(a!) self, Scalar other) -> Tensor(a!) + inline at::Tensor & divide_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Scalar & other) { + return at::_ops::divide__Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::divide.Tensor_mode(Tensor self, Tensor other, *, str? rounding_mode) -> Tensor + inline at::Tensor divide(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, c10::optional rounding_mode) { + return at::_ops::divide_Tensor_mode::redispatch(dispatchKeySet, self, other, rounding_mode); + } + + // aten::divide_.Tensor_mode(Tensor(a!) self, Tensor other, *, str? rounding_mode) -> Tensor(a!) + inline at::Tensor & divide_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & other, c10::optional rounding_mode) { + return at::_ops::divide__Tensor_mode::redispatch(dispatchKeySet, self, other, rounding_mode); + } + + // aten::divide.out_mode(Tensor self, Tensor other, *, str? rounding_mode, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & divide_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other, c10::optional rounding_mode) { + return at::_ops::divide_out_mode::redispatch(dispatchKeySet, self, other, rounding_mode, out); + } + + // aten::divide.out_mode(Tensor self, Tensor other, *, str? rounding_mode, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & divide_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, c10::optional rounding_mode, at::Tensor & out) { + return at::_ops::divide_out_mode::redispatch(dispatchKeySet, self, other, rounding_mode, out); + } + + // aten::divide.Scalar_mode(Tensor self, Scalar other, *, str? rounding_mode) -> Tensor + inline at::Tensor divide(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other, c10::optional rounding_mode) { + return at::_ops::divide_Scalar_mode::redispatch(dispatchKeySet, self, other, rounding_mode); + } + + // aten::divide_.Scalar_mode(Tensor(a!) self, Scalar other, *, str? rounding_mode) -> Tensor(a!) + inline at::Tensor & divide_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Scalar & other, c10::optional rounding_mode) { + return at::_ops::divide__Scalar_mode::redispatch(dispatchKeySet, self, other, rounding_mode); + } + + // aten::true_divide.Tensor(Tensor self, Tensor other) -> Tensor + inline at::Tensor true_divide(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::true_divide_Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::true_divide_.Tensor(Tensor(a!) self, Tensor other) -> Tensor(a!) + inline at::Tensor & true_divide_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & other) { + return at::_ops::true_divide__Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::true_divide.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & true_divide_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::true_divide_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::true_divide.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & true_divide_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::true_divide_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::true_divide.Scalar(Tensor self, Scalar other) -> Tensor + inline at::Tensor true_divide(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::true_divide_Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::true_divide_.Scalar(Tensor(a!) self, Scalar other) -> Tensor(a!) + inline at::Tensor & true_divide_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Scalar & other) { + return at::_ops::true_divide__Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::dot(Tensor self, Tensor tensor) -> Tensor + inline at::Tensor dot(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & tensor) { + return at::_ops::dot::redispatch(dispatchKeySet, self, tensor); + } + + // aten::dot.out(Tensor self, Tensor tensor, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & dot_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & tensor) { + return at::_ops::dot_out::redispatch(dispatchKeySet, self, tensor, out); + } + + // aten::dot.out(Tensor self, Tensor tensor, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & dot_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & tensor, at::Tensor & out) { + return at::_ops::dot_out::redispatch(dispatchKeySet, self, tensor, out); + } + + // aten::vdot(Tensor self, Tensor other) -> Tensor + inline at::Tensor vdot(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::vdot::redispatch(dispatchKeySet, self, other); + } + + // aten::vdot.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & vdot_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::vdot_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::vdot.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & vdot_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::vdot_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::einsum(str equation, Tensor[] tensors, *, int[]? path=None) -> Tensor + inline at::Tensor einsum(c10::DispatchKeySet dispatchKeySet, c10::string_view equation, at::TensorList tensors, at::OptionalIntArrayRef path=c10::nullopt) { + return at::_ops::einsum::redispatch(dispatchKeySet, equation, tensors, path); + } + + // aten::embedding(Tensor weight, Tensor indices, SymInt padding_idx=-1, bool scale_grad_by_freq=False, bool sparse=False) -> Tensor + inline at::Tensor embedding(c10::DispatchKeySet dispatchKeySet, const at::Tensor & weight, const at::Tensor & indices, int64_t padding_idx=-1, bool scale_grad_by_freq=false, bool sparse=false) { + return at::_ops::embedding::redispatch(dispatchKeySet, weight, indices, padding_idx, scale_grad_by_freq, sparse); + } + + // aten::embedding(Tensor weight, Tensor indices, SymInt padding_idx=-1, bool scale_grad_by_freq=False, bool sparse=False) -> Tensor + inline at::Tensor embedding_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & weight, const at::Tensor & indices, c10::SymInt padding_idx=-1, bool scale_grad_by_freq=false, bool sparse=false) { + return at::_ops::embedding::redispatch(dispatchKeySet, weight, indices, padding_idx, scale_grad_by_freq, sparse); + } + + // aten::embedding_backward(Tensor grad, Tensor indices, SymInt num_weights, SymInt padding_idx, bool scale_grad_by_freq, bool sparse) -> Tensor + inline at::Tensor embedding_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad, const at::Tensor & indices, int64_t num_weights, int64_t padding_idx, bool scale_grad_by_freq, bool sparse) { + return at::_ops::embedding_backward::redispatch(dispatchKeySet, grad, indices, num_weights, padding_idx, scale_grad_by_freq, sparse); + } + + // aten::embedding_backward(Tensor grad, Tensor indices, SymInt num_weights, SymInt padding_idx, bool scale_grad_by_freq, bool sparse) -> Tensor + inline at::Tensor embedding_backward_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad, const at::Tensor & indices, c10::SymInt num_weights, c10::SymInt padding_idx, bool scale_grad_by_freq, bool sparse) { + return at::_ops::embedding_backward::redispatch(dispatchKeySet, grad, indices, num_weights, padding_idx, scale_grad_by_freq, sparse); + } + + // aten::embedding_dense_backward(Tensor grad_output, Tensor indices, SymInt num_weights, SymInt padding_idx, bool scale_grad_by_freq) -> Tensor + inline at::Tensor embedding_dense_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & indices, int64_t num_weights, int64_t padding_idx, bool scale_grad_by_freq) { + return at::_ops::embedding_dense_backward::redispatch(dispatchKeySet, grad_output, indices, num_weights, padding_idx, scale_grad_by_freq); + } + + // aten::embedding_dense_backward(Tensor grad_output, Tensor indices, SymInt num_weights, SymInt padding_idx, bool scale_grad_by_freq) -> Tensor + inline at::Tensor embedding_dense_backward_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & indices, c10::SymInt num_weights, c10::SymInt padding_idx, bool scale_grad_by_freq) { + return at::_ops::embedding_dense_backward::redispatch(dispatchKeySet, grad_output, indices, num_weights, padding_idx, scale_grad_by_freq); + } + + // aten::embedding_renorm_(Tensor(a!) self, Tensor indices, float max_norm, float norm_type) -> Tensor(a!) + inline at::Tensor & embedding_renorm_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & indices, double max_norm, double norm_type) { + return at::_ops::embedding_renorm_::redispatch(dispatchKeySet, self, indices, max_norm, norm_type); + } + + // aten::embedding_sparse_backward(Tensor grad, Tensor indices, int num_weights, int padding_idx, bool scale_grad_by_freq) -> Tensor + inline at::Tensor embedding_sparse_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad, const at::Tensor & indices, int64_t num_weights, int64_t padding_idx, bool scale_grad_by_freq) { + return at::_ops::embedding_sparse_backward::redispatch(dispatchKeySet, grad, indices, num_weights, padding_idx, scale_grad_by_freq); + } + + // aten::_embedding_bag_forward_only(Tensor weight, Tensor indices, Tensor offsets, bool scale_grad_by_freq=False, int mode=0, bool sparse=False, Tensor? per_sample_weights=None, bool include_last_offset=False, int padding_idx=-1) -> (Tensor, Tensor, Tensor, Tensor) + inline ::std::tuple _embedding_bag_forward_only(c10::DispatchKeySet dispatchKeySet, const at::Tensor & weight, const at::Tensor & indices, const at::Tensor & offsets, bool scale_grad_by_freq=false, int64_t mode=0, bool sparse=false, const c10::optional & per_sample_weights={}, bool include_last_offset=false, int64_t padding_idx=-1) { + return at::_ops::_embedding_bag_forward_only::redispatch(dispatchKeySet, weight, indices, offsets, scale_grad_by_freq, mode, sparse, per_sample_weights, include_last_offset, padding_idx); + } + + // aten::_rowwise_prune(Tensor weight, Tensor mask, ScalarType compressed_indices_dtype) -> (Tensor, Tensor) + inline ::std::tuple _rowwise_prune(c10::DispatchKeySet dispatchKeySet, const at::Tensor & weight, const at::Tensor & mask, at::ScalarType compressed_indices_dtype) { + return at::_ops::_rowwise_prune::redispatch(dispatchKeySet, weight, mask, compressed_indices_dtype); + } + + // aten::row_stack(Tensor[] tensors) -> Tensor + inline at::Tensor row_stack(c10::DispatchKeySet dispatchKeySet, at::TensorList tensors) { + return at::_ops::row_stack::redispatch(dispatchKeySet, tensors); + } + + // aten::row_stack.out(Tensor[] tensors, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & row_stack_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, at::TensorList tensors) { + return at::_ops::row_stack_out::redispatch(dispatchKeySet, tensors, out); + } + + // aten::row_stack.out(Tensor[] tensors, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & row_stack_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList tensors, at::Tensor & out) { + return at::_ops::row_stack_out::redispatch(dispatchKeySet, tensors, out); + } + + // aten::embedding_bag(Tensor weight, Tensor indices, Tensor offsets, bool scale_grad_by_freq=False, int mode=0, bool sparse=False, Tensor? per_sample_weights=None, bool include_last_offset=False) -> (Tensor, Tensor, Tensor, Tensor) + inline ::std::tuple embedding_bag(c10::DispatchKeySet dispatchKeySet, const at::Tensor & weight, const at::Tensor & indices, const at::Tensor & offsets, bool scale_grad_by_freq=false, int64_t mode=0, bool sparse=false, const c10::optional & per_sample_weights={}, bool include_last_offset=false) { + return at::_ops::embedding_bag::redispatch(dispatchKeySet, weight, indices, offsets, scale_grad_by_freq, mode, sparse, per_sample_weights, include_last_offset); + } + + // aten::embedding_bag.padding_idx(Tensor weight, Tensor indices, Tensor offsets, bool scale_grad_by_freq, int mode, bool sparse, Tensor? per_sample_weights, bool include_last_offset, int? padding_idx) -> (Tensor, Tensor, Tensor, Tensor) + inline ::std::tuple embedding_bag(c10::DispatchKeySet dispatchKeySet, const at::Tensor & weight, const at::Tensor & indices, const at::Tensor & offsets, bool scale_grad_by_freq, int64_t mode, bool sparse, const c10::optional & per_sample_weights, bool include_last_offset, c10::optional padding_idx) { + return at::_ops::embedding_bag_padding_idx::redispatch(dispatchKeySet, weight, indices, offsets, scale_grad_by_freq, mode, sparse, per_sample_weights, include_last_offset, padding_idx); + } + + // aten::_embedding_bag(Tensor weight, Tensor indices, Tensor offsets, bool scale_grad_by_freq=False, int mode=0, bool sparse=False, Tensor? per_sample_weights=None, bool include_last_offset=False, int padding_idx=-1) -> (Tensor, Tensor, Tensor, Tensor) + inline ::std::tuple _embedding_bag(c10::DispatchKeySet dispatchKeySet, const at::Tensor & weight, const at::Tensor & indices, const at::Tensor & offsets, bool scale_grad_by_freq=false, int64_t mode=0, bool sparse=false, const c10::optional & per_sample_weights={}, bool include_last_offset=false, int64_t padding_idx=-1) { + return at::_ops::_embedding_bag::redispatch(dispatchKeySet, weight, indices, offsets, scale_grad_by_freq, mode, sparse, per_sample_weights, include_last_offset, padding_idx); + } + + // aten::_embedding_bag_backward(Tensor grad, Tensor indices, Tensor offsets, Tensor offset2bag, Tensor bag_size, Tensor maximum_indices, SymInt num_weights, bool scale_grad_by_freq, int mode, bool sparse, Tensor? per_sample_weights, int padding_idx=-1) -> Tensor + inline at::Tensor _embedding_bag_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad, const at::Tensor & indices, const at::Tensor & offsets, const at::Tensor & offset2bag, const at::Tensor & bag_size, const at::Tensor & maximum_indices, int64_t num_weights, bool scale_grad_by_freq, int64_t mode, bool sparse, const c10::optional & per_sample_weights, int64_t padding_idx=-1) { + return at::_ops::_embedding_bag_backward::redispatch(dispatchKeySet, grad, indices, offsets, offset2bag, bag_size, maximum_indices, num_weights, scale_grad_by_freq, mode, sparse, per_sample_weights, padding_idx); + } + + // aten::_embedding_bag_backward(Tensor grad, Tensor indices, Tensor offsets, Tensor offset2bag, Tensor bag_size, Tensor maximum_indices, SymInt num_weights, bool scale_grad_by_freq, int mode, bool sparse, Tensor? per_sample_weights, int padding_idx=-1) -> Tensor + inline at::Tensor _embedding_bag_backward_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad, const at::Tensor & indices, const at::Tensor & offsets, const at::Tensor & offset2bag, const at::Tensor & bag_size, const at::Tensor & maximum_indices, c10::SymInt num_weights, bool scale_grad_by_freq, int64_t mode, bool sparse, const c10::optional & per_sample_weights, int64_t padding_idx=-1) { + return at::_ops::_embedding_bag_backward::redispatch(dispatchKeySet, grad, indices, offsets, offset2bag, bag_size, maximum_indices, num_weights, scale_grad_by_freq, mode, sparse, per_sample_weights, padding_idx); + } + + // aten::_embedding_bag_sparse_backward(Tensor grad, Tensor indices, Tensor offsets, Tensor offset2bag, Tensor bag_size, SymInt num_weights, bool scale_grad_by_freq, int mode, Tensor? per_sample_weights, int padding_idx=-1) -> Tensor + inline at::Tensor _embedding_bag_sparse_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad, const at::Tensor & indices, const at::Tensor & offsets, const at::Tensor & offset2bag, const at::Tensor & bag_size, int64_t num_weights, bool scale_grad_by_freq, int64_t mode, const c10::optional & per_sample_weights, int64_t padding_idx=-1) { + return at::_ops::_embedding_bag_sparse_backward::redispatch(dispatchKeySet, grad, indices, offsets, offset2bag, bag_size, num_weights, scale_grad_by_freq, mode, per_sample_weights, padding_idx); + } + + // aten::_embedding_bag_sparse_backward(Tensor grad, Tensor indices, Tensor offsets, Tensor offset2bag, Tensor bag_size, SymInt num_weights, bool scale_grad_by_freq, int mode, Tensor? per_sample_weights, int padding_idx=-1) -> Tensor + inline at::Tensor _embedding_bag_sparse_backward_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad, const at::Tensor & indices, const at::Tensor & offsets, const at::Tensor & offset2bag, const at::Tensor & bag_size, c10::SymInt num_weights, bool scale_grad_by_freq, int64_t mode, const c10::optional & per_sample_weights, int64_t padding_idx=-1) { + return at::_ops::_embedding_bag_sparse_backward::redispatch(dispatchKeySet, grad, indices, offsets, offset2bag, bag_size, num_weights, scale_grad_by_freq, mode, per_sample_weights, padding_idx); + } + + // aten::_embedding_bag_dense_backward(Tensor grad, Tensor indices, Tensor offset2bag, Tensor bag_size, Tensor maximum_indices, SymInt num_weights, bool scale_grad_by_freq, int mode, Tensor? per_sample_weights, int padding_idx=-1) -> Tensor + inline at::Tensor _embedding_bag_dense_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad, const at::Tensor & indices, const at::Tensor & offset2bag, const at::Tensor & bag_size, const at::Tensor & maximum_indices, int64_t num_weights, bool scale_grad_by_freq, int64_t mode, const c10::optional & per_sample_weights, int64_t padding_idx=-1) { + return at::_ops::_embedding_bag_dense_backward::redispatch(dispatchKeySet, grad, indices, offset2bag, bag_size, maximum_indices, num_weights, scale_grad_by_freq, mode, per_sample_weights, padding_idx); + } + + // aten::_embedding_bag_dense_backward(Tensor grad, Tensor indices, Tensor offset2bag, Tensor bag_size, Tensor maximum_indices, SymInt num_weights, bool scale_grad_by_freq, int mode, Tensor? per_sample_weights, int padding_idx=-1) -> Tensor + inline at::Tensor _embedding_bag_dense_backward_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad, const at::Tensor & indices, const at::Tensor & offset2bag, const at::Tensor & bag_size, const at::Tensor & maximum_indices, c10::SymInt num_weights, bool scale_grad_by_freq, int64_t mode, const c10::optional & per_sample_weights, int64_t padding_idx=-1) { + return at::_ops::_embedding_bag_dense_backward::redispatch(dispatchKeySet, grad, indices, offset2bag, bag_size, maximum_indices, num_weights, scale_grad_by_freq, mode, per_sample_weights, padding_idx); + } + + // aten::_embedding_bag_per_sample_weights_backward(Tensor grad, Tensor weight, Tensor indices, Tensor offsets, Tensor offset2bag, int mode, int padding_idx=-1) -> Tensor + inline at::Tensor _embedding_bag_per_sample_weights_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad, const at::Tensor & weight, const at::Tensor & indices, const at::Tensor & offsets, const at::Tensor & offset2bag, int64_t mode, int64_t padding_idx=-1) { + return at::_ops::_embedding_bag_per_sample_weights_backward::redispatch(dispatchKeySet, grad, weight, indices, offsets, offset2bag, mode, padding_idx); + } + + // aten::empty.names(int[] size, *, Dimname[]? names, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, MemoryFormat? memory_format=None) -> Tensor + inline at::Tensor empty(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, c10::optional names, at::TensorOptions options={}, c10::optional memory_format=c10::nullopt) { + return at::_ops::empty_names::redispatch(dispatchKeySet, size, names, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt(), c10::impl::check_tensor_options_and_extract_memory_format(options, memory_format)); + } + + // aten::empty.names(int[] size, *, Dimname[]? names, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, MemoryFormat? memory_format=None) -> Tensor + inline at::Tensor empty(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, c10::optional names, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory, c10::optional memory_format) { + return at::_ops::empty_names::redispatch(dispatchKeySet, size, names, dtype, layout, device, pin_memory, memory_format); + } + + // aten::empty.memory_format(SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, MemoryFormat? memory_format=None) -> Tensor + inline at::Tensor empty(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, at::TensorOptions options={}, c10::optional memory_format=c10::nullopt) { + return at::_ops::empty_memory_format::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt(), c10::impl::check_tensor_options_and_extract_memory_format(options, memory_format)); + } + + // aten::empty.memory_format(SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, MemoryFormat? memory_format=None) -> Tensor + inline at::Tensor empty(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory, c10::optional memory_format) { + return at::_ops::empty_memory_format::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), dtype, layout, device, pin_memory, memory_format); + } + + // aten::empty.memory_format(SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, MemoryFormat? memory_format=None) -> Tensor + inline at::Tensor empty_symint(c10::DispatchKeySet dispatchKeySet, c10::SymIntArrayRef size, at::TensorOptions options={}, c10::optional memory_format=c10::nullopt) { + return at::_ops::empty_memory_format::redispatch(dispatchKeySet, size, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt(), c10::impl::check_tensor_options_and_extract_memory_format(options, memory_format)); + } + + // aten::empty.memory_format(SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, MemoryFormat? memory_format=None) -> Tensor + inline at::Tensor empty_symint(c10::DispatchKeySet dispatchKeySet, c10::SymIntArrayRef size, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory, c10::optional memory_format) { + return at::_ops::empty_memory_format::redispatch(dispatchKeySet, size, dtype, layout, device, pin_memory, memory_format); + } + + // aten::empty_permuted(SymInt[] size, int[] physical_layout, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor empty_permuted(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, at::IntArrayRef physical_layout, at::TensorOptions options={}) { + return at::_ops::empty_permuted::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), physical_layout, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::empty_permuted(SymInt[] size, int[] physical_layout, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor empty_permuted(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, at::IntArrayRef physical_layout, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::empty_permuted::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), physical_layout, dtype, layout, device, pin_memory); + } + + // aten::empty_permuted(SymInt[] size, int[] physical_layout, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor empty_permuted_symint(c10::DispatchKeySet dispatchKeySet, c10::SymIntArrayRef size, at::IntArrayRef physical_layout, at::TensorOptions options={}) { + return at::_ops::empty_permuted::redispatch(dispatchKeySet, size, physical_layout, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::empty_permuted(SymInt[] size, int[] physical_layout, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor empty_permuted_symint(c10::DispatchKeySet dispatchKeySet, c10::SymIntArrayRef size, at::IntArrayRef physical_layout, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::empty_permuted::redispatch(dispatchKeySet, size, physical_layout, dtype, layout, device, pin_memory); + } + + // aten::new_empty(Tensor self, SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor new_empty(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef size, at::TensorOptions options={}) { + return at::_ops::new_empty::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(size), c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::new_empty(Tensor self, SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor new_empty(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef size, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::new_empty::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(size), dtype, layout, device, pin_memory); + } + + // aten::new_empty(Tensor self, SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor new_empty_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef size, at::TensorOptions options={}) { + return at::_ops::new_empty::redispatch(dispatchKeySet, self, size, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::new_empty(Tensor self, SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor new_empty_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef size, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::new_empty::redispatch(dispatchKeySet, self, size, dtype, layout, device, pin_memory); + } + + // aten::new_empty_strided(Tensor self, SymInt[] size, SymInt[] stride, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor new_empty_strided(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef size, at::IntArrayRef stride, at::TensorOptions options={}) { + return at::_ops::new_empty_strided::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(size), c10::fromIntArrayRefSlow(stride), c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::new_empty_strided(Tensor self, SymInt[] size, SymInt[] stride, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor new_empty_strided(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef size, at::IntArrayRef stride, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::new_empty_strided::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(size), c10::fromIntArrayRefSlow(stride), dtype, layout, device, pin_memory); + } + + // aten::new_empty_strided(Tensor self, SymInt[] size, SymInt[] stride, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor new_empty_strided_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef size, c10::SymIntArrayRef stride, at::TensorOptions options={}) { + return at::_ops::new_empty_strided::redispatch(dispatchKeySet, self, size, stride, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::new_empty_strided(Tensor self, SymInt[] size, SymInt[] stride, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor new_empty_strided_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef size, c10::SymIntArrayRef stride, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::new_empty_strided::redispatch(dispatchKeySet, self, size, stride, dtype, layout, device, pin_memory); + } + + // aten::new_full(Tensor self, SymInt[] size, Scalar fill_value, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor new_full(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef size, const at::Scalar & fill_value, at::TensorOptions options={}) { + return at::_ops::new_full::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(size), fill_value, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::new_full(Tensor self, SymInt[] size, Scalar fill_value, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor new_full(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef size, const at::Scalar & fill_value, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::new_full::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(size), fill_value, dtype, layout, device, pin_memory); + } + + // aten::new_full(Tensor self, SymInt[] size, Scalar fill_value, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor new_full_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef size, const at::Scalar & fill_value, at::TensorOptions options={}) { + return at::_ops::new_full::redispatch(dispatchKeySet, self, size, fill_value, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::new_full(Tensor self, SymInt[] size, Scalar fill_value, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor new_full_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef size, const at::Scalar & fill_value, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::new_full::redispatch(dispatchKeySet, self, size, fill_value, dtype, layout, device, pin_memory); + } + + // aten::new_zeros(Tensor self, SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor new_zeros(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef size, at::TensorOptions options={}) { + return at::_ops::new_zeros::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(size), c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::new_zeros(Tensor self, SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor new_zeros(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef size, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::new_zeros::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(size), dtype, layout, device, pin_memory); + } + + // aten::new_zeros(Tensor self, SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor new_zeros_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef size, at::TensorOptions options={}) { + return at::_ops::new_zeros::redispatch(dispatchKeySet, self, size, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::new_zeros(Tensor self, SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor new_zeros_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef size, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::new_zeros::redispatch(dispatchKeySet, self, size, dtype, layout, device, pin_memory); + } + + // aten::new_ones(Tensor self, SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor new_ones(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef size, at::TensorOptions options={}) { + return at::_ops::new_ones::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(size), c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::new_ones(Tensor self, SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor new_ones(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef size, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::new_ones::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(size), dtype, layout, device, pin_memory); + } + + // aten::new_ones(Tensor self, SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor new_ones_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef size, at::TensorOptions options={}) { + return at::_ops::new_ones::redispatch(dispatchKeySet, self, size, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::new_ones(Tensor self, SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor new_ones_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef size, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::new_ones::redispatch(dispatchKeySet, self, size, dtype, layout, device, pin_memory); + } + + // aten::_empty_affine_quantized(SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, float scale=1, int zero_point=0, MemoryFormat? memory_format=contiguous_format) -> Tensor + inline at::Tensor _empty_affine_quantized(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, at::TensorOptions options={}, double scale=1, int64_t zero_point=0, c10::optional memory_format=MemoryFormat::Contiguous) { + return at::_ops::_empty_affine_quantized::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt(), scale, zero_point, c10::impl::check_tensor_options_and_extract_memory_format(options, memory_format)); + } + + // aten::_empty_affine_quantized(SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, float scale=1, int zero_point=0, MemoryFormat? memory_format=contiguous_format) -> Tensor + inline at::Tensor _empty_affine_quantized(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory, double scale, int64_t zero_point, c10::optional memory_format) { + return at::_ops::_empty_affine_quantized::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), dtype, layout, device, pin_memory, scale, zero_point, memory_format); + } + + // aten::_empty_affine_quantized(SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, float scale=1, int zero_point=0, MemoryFormat? memory_format=contiguous_format) -> Tensor + inline at::Tensor _empty_affine_quantized_symint(c10::DispatchKeySet dispatchKeySet, c10::SymIntArrayRef size, at::TensorOptions options={}, double scale=1, int64_t zero_point=0, c10::optional memory_format=MemoryFormat::Contiguous) { + return at::_ops::_empty_affine_quantized::redispatch(dispatchKeySet, size, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt(), scale, zero_point, c10::impl::check_tensor_options_and_extract_memory_format(options, memory_format)); + } + + // aten::_empty_affine_quantized(SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, float scale=1, int zero_point=0, MemoryFormat? memory_format=contiguous_format) -> Tensor + inline at::Tensor _empty_affine_quantized_symint(c10::DispatchKeySet dispatchKeySet, c10::SymIntArrayRef size, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory, double scale, int64_t zero_point, c10::optional memory_format) { + return at::_ops::_empty_affine_quantized::redispatch(dispatchKeySet, size, dtype, layout, device, pin_memory, scale, zero_point, memory_format); + } + + // aten::_empty_per_channel_affine_quantized(SymInt[] size, *, Tensor scales, Tensor zero_points, int axis, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, MemoryFormat? memory_format=contiguous_format) -> Tensor + inline at::Tensor _empty_per_channel_affine_quantized(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, const at::Tensor & scales, const at::Tensor & zero_points, int64_t axis, at::TensorOptions options={}, c10::optional memory_format=MemoryFormat::Contiguous) { + return at::_ops::_empty_per_channel_affine_quantized::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), scales, zero_points, axis, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt(), c10::impl::check_tensor_options_and_extract_memory_format(options, memory_format)); + } + + // aten::_empty_per_channel_affine_quantized(SymInt[] size, *, Tensor scales, Tensor zero_points, int axis, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, MemoryFormat? memory_format=contiguous_format) -> Tensor + inline at::Tensor _empty_per_channel_affine_quantized(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, const at::Tensor & scales, const at::Tensor & zero_points, int64_t axis, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory, c10::optional memory_format) { + return at::_ops::_empty_per_channel_affine_quantized::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), scales, zero_points, axis, dtype, layout, device, pin_memory, memory_format); + } + + // aten::_empty_per_channel_affine_quantized(SymInt[] size, *, Tensor scales, Tensor zero_points, int axis, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, MemoryFormat? memory_format=contiguous_format) -> Tensor + inline at::Tensor _empty_per_channel_affine_quantized_symint(c10::DispatchKeySet dispatchKeySet, c10::SymIntArrayRef size, const at::Tensor & scales, const at::Tensor & zero_points, int64_t axis, at::TensorOptions options={}, c10::optional memory_format=MemoryFormat::Contiguous) { + return at::_ops::_empty_per_channel_affine_quantized::redispatch(dispatchKeySet, size, scales, zero_points, axis, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt(), c10::impl::check_tensor_options_and_extract_memory_format(options, memory_format)); + } + + // aten::_empty_per_channel_affine_quantized(SymInt[] size, *, Tensor scales, Tensor zero_points, int axis, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, MemoryFormat? memory_format=contiguous_format) -> Tensor + inline at::Tensor _empty_per_channel_affine_quantized_symint(c10::DispatchKeySet dispatchKeySet, c10::SymIntArrayRef size, const at::Tensor & scales, const at::Tensor & zero_points, int64_t axis, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory, c10::optional memory_format) { + return at::_ops::_empty_per_channel_affine_quantized::redispatch(dispatchKeySet, size, scales, zero_points, axis, dtype, layout, device, pin_memory, memory_format); + } + + // aten::resize_(Tensor(a!) self, SymInt[] size, *, MemoryFormat? memory_format=None) -> Tensor(a!) + inline const at::Tensor & resize_(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef size, c10::optional memory_format=c10::nullopt) { + return at::_ops::resize_::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(size), memory_format); + } + + // aten::resize_(Tensor(a!) self, SymInt[] size, *, MemoryFormat? memory_format=None) -> Tensor(a!) + inline const at::Tensor & resize__symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef size, c10::optional memory_format=c10::nullopt) { + return at::_ops::resize_::redispatch(dispatchKeySet, self, size, memory_format); + } + + // aten::_resize_output_(Tensor(a!) self, SymInt[] size, Device device) -> Tensor(a!) + inline const at::Tensor & _resize_output_(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef size, at::Device device) { + return at::_ops::_resize_output_::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(size), device); + } + + // aten::_resize_output_(Tensor(a!) self, SymInt[] size, Device device) -> Tensor(a!) + inline const at::Tensor & _resize_output__symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef size, at::Device device) { + return at::_ops::_resize_output_::redispatch(dispatchKeySet, self, size, device); + } + + // aten::empty_quantized(int[] size, Tensor qtensor, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, MemoryFormat? memory_format=None) -> Tensor + inline at::Tensor empty_quantized(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, const at::Tensor & qtensor, at::TensorOptions options={}, c10::optional memory_format=c10::nullopt) { + return at::_ops::empty_quantized::redispatch(dispatchKeySet, size, qtensor, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt(), c10::impl::check_tensor_options_and_extract_memory_format(options, memory_format)); + } + + // aten::empty_quantized(int[] size, Tensor qtensor, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, MemoryFormat? memory_format=None) -> Tensor + inline at::Tensor empty_quantized(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) { + return at::_ops::empty_quantized::redispatch(dispatchKeySet, size, qtensor, dtype, layout, device, pin_memory, memory_format); + } + + // aten::empty.out(SymInt[] size, *, MemoryFormat? memory_format=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & empty_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, at::IntArrayRef size, c10::optional memory_format=c10::nullopt) { + return at::_ops::empty_out::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), memory_format, out); + } + + // aten::empty.out(SymInt[] size, *, MemoryFormat? memory_format=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & empty_outf(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, c10::optional memory_format, at::Tensor & out) { + return at::_ops::empty_out::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), memory_format, out); + } + + // aten::empty.out(SymInt[] size, *, MemoryFormat? memory_format=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & empty_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, c10::SymIntArrayRef size, c10::optional memory_format=c10::nullopt) { + return at::_ops::empty_out::redispatch(dispatchKeySet, size, memory_format, out); + } + + // aten::empty.out(SymInt[] size, *, MemoryFormat? memory_format=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & empty_symint_outf(c10::DispatchKeySet dispatchKeySet, c10::SymIntArrayRef size, c10::optional memory_format, at::Tensor & out) { + return at::_ops::empty_out::redispatch(dispatchKeySet, size, memory_format, out); + } + + // aten::empty_like(Tensor self, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, MemoryFormat? memory_format=None) -> Tensor + inline at::Tensor empty_like(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::TensorOptions options={}, c10::optional memory_format=c10::nullopt) { + return at::_ops::empty_like::redispatch(dispatchKeySet, self, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt(), c10::impl::check_tensor_options_and_extract_memory_format(options, memory_format)); + } + + // aten::empty_like(Tensor self, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, MemoryFormat? memory_format=None) -> Tensor + inline at::Tensor empty_like(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory, c10::optional memory_format) { + return at::_ops::empty_like::redispatch(dispatchKeySet, self, dtype, layout, device, pin_memory, memory_format); + } + + // aten::empty_strided(SymInt[] size, SymInt[] stride, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor empty_strided(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, at::IntArrayRef stride, at::TensorOptions options={}) { + return at::_ops::empty_strided::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), c10::fromIntArrayRefSlow(stride), c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::empty_strided(SymInt[] size, SymInt[] stride, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor empty_strided(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, at::IntArrayRef stride, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::empty_strided::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), c10::fromIntArrayRefSlow(stride), dtype, layout, device, pin_memory); + } + + // aten::empty_strided(SymInt[] size, SymInt[] stride, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor empty_strided_symint(c10::DispatchKeySet dispatchKeySet, c10::SymIntArrayRef size, c10::SymIntArrayRef stride, at::TensorOptions options={}) { + return at::_ops::empty_strided::redispatch(dispatchKeySet, size, stride, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::empty_strided(SymInt[] size, SymInt[] stride, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor empty_strided_symint(c10::DispatchKeySet dispatchKeySet, c10::SymIntArrayRef size, c10::SymIntArrayRef stride, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::empty_strided::redispatch(dispatchKeySet, size, stride, dtype, layout, device, pin_memory); + } + + // aten::erf(Tensor self) -> Tensor + inline at::Tensor erf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::erf::redispatch(dispatchKeySet, self); + } + + // aten::erf_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & erf_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::erf_::redispatch(dispatchKeySet, self); + } + + // aten::erf.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & erf_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::erf_out::redispatch(dispatchKeySet, self, out); + } + + // aten::erf.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & erf_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::erf_out::redispatch(dispatchKeySet, self, out); + } + + // aten::erfc(Tensor self) -> Tensor + inline at::Tensor erfc(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::erfc::redispatch(dispatchKeySet, self); + } + + // aten::erfc_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & erfc_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::erfc_::redispatch(dispatchKeySet, self); + } + + // aten::erfc.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & erfc_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::erfc_out::redispatch(dispatchKeySet, self, out); + } + + // aten::erfc.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & erfc_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::erfc_out::redispatch(dispatchKeySet, self, out); + } + + // aten::exp(Tensor self) -> Tensor + inline at::Tensor exp(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::exp::redispatch(dispatchKeySet, self); + } + + // aten::exp_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & exp_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::exp_::redispatch(dispatchKeySet, self); + } + + // aten::exp.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & exp_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::exp_out::redispatch(dispatchKeySet, self, out); + } + + // aten::exp.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & exp_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::exp_out::redispatch(dispatchKeySet, self, out); + } + + // aten::exp2(Tensor self) -> Tensor + inline at::Tensor exp2(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::exp2::redispatch(dispatchKeySet, self); + } + + // aten::exp2_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & exp2_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::exp2_::redispatch(dispatchKeySet, self); + } + + // aten::exp2.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & exp2_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::exp2_out::redispatch(dispatchKeySet, self, out); + } + + // aten::exp2.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & exp2_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::exp2_out::redispatch(dispatchKeySet, self, out); + } + + // aten::expm1(Tensor self) -> Tensor + inline at::Tensor expm1(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::expm1::redispatch(dispatchKeySet, self); + } + + // aten::expm1_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & expm1_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::expm1_::redispatch(dispatchKeySet, self); + } + + // aten::expm1.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & expm1_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::expm1_out::redispatch(dispatchKeySet, self, out); + } + + // aten::expm1.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & expm1_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::expm1_out::redispatch(dispatchKeySet, self, out); + } + + // aten::expand(Tensor(a) self, SymInt[] size, *, bool implicit=False) -> Tensor(a) + inline at::Tensor expand(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef size, bool implicit=false) { + return at::_ops::expand::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(size), implicit); + } + + // aten::expand(Tensor(a) self, SymInt[] size, *, bool implicit=False) -> Tensor(a) + inline at::Tensor expand_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef size, bool implicit=false) { + return at::_ops::expand::redispatch(dispatchKeySet, self, size, implicit); + } + + // aten::expand_as(Tensor(a) self, Tensor other) -> Tensor(a) + inline at::Tensor expand_as(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::expand_as::redispatch(dispatchKeySet, self, other); + } + + // aten::eye(SymInt n, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor eye(c10::DispatchKeySet dispatchKeySet, int64_t n, at::TensorOptions options={}) { + return at::_ops::eye::redispatch(dispatchKeySet, n, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::eye(SymInt n, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor eye(c10::DispatchKeySet dispatchKeySet, int64_t n, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::eye::redispatch(dispatchKeySet, n, dtype, layout, device, pin_memory); + } + + // aten::eye(SymInt n, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor eye_symint(c10::DispatchKeySet dispatchKeySet, c10::SymInt n, at::TensorOptions options={}) { + return at::_ops::eye::redispatch(dispatchKeySet, n, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::eye(SymInt n, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor eye_symint(c10::DispatchKeySet dispatchKeySet, c10::SymInt n, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::eye::redispatch(dispatchKeySet, n, dtype, layout, device, pin_memory); + } + + // aten::eye.m(SymInt n, SymInt m, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor eye(c10::DispatchKeySet dispatchKeySet, int64_t n, int64_t m, at::TensorOptions options={}) { + return at::_ops::eye_m::redispatch(dispatchKeySet, n, m, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::eye.m(SymInt n, SymInt m, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor eye(c10::DispatchKeySet dispatchKeySet, int64_t n, int64_t m, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::eye_m::redispatch(dispatchKeySet, n, m, dtype, layout, device, pin_memory); + } + + // aten::eye.m(SymInt n, SymInt m, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor eye_symint(c10::DispatchKeySet dispatchKeySet, c10::SymInt n, c10::SymInt m, at::TensorOptions options={}) { + return at::_ops::eye_m::redispatch(dispatchKeySet, n, m, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::eye.m(SymInt n, SymInt m, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor eye_symint(c10::DispatchKeySet dispatchKeySet, c10::SymInt n, c10::SymInt m, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::eye_m::redispatch(dispatchKeySet, n, m, dtype, layout, device, pin_memory); + } + + // aten::eye.out(SymInt n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & eye_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, int64_t n) { + return at::_ops::eye_out::redispatch(dispatchKeySet, n, out); + } + + // aten::eye.out(SymInt n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & eye_outf(c10::DispatchKeySet dispatchKeySet, int64_t n, at::Tensor & out) { + return at::_ops::eye_out::redispatch(dispatchKeySet, n, out); + } + + // aten::eye.out(SymInt n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & eye_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, c10::SymInt n) { + return at::_ops::eye_out::redispatch(dispatchKeySet, n, out); + } + + // aten::eye.out(SymInt n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & eye_symint_outf(c10::DispatchKeySet dispatchKeySet, c10::SymInt n, at::Tensor & out) { + return at::_ops::eye_out::redispatch(dispatchKeySet, n, out); + } + + // aten::eye.m_out(SymInt n, SymInt m, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & eye_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, int64_t n, int64_t m) { + return at::_ops::eye_m_out::redispatch(dispatchKeySet, n, m, out); + } + + // aten::eye.m_out(SymInt n, SymInt m, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & eye_outf(c10::DispatchKeySet dispatchKeySet, int64_t n, int64_t m, at::Tensor & out) { + return at::_ops::eye_m_out::redispatch(dispatchKeySet, n, m, out); + } + + // aten::eye.m_out(SymInt n, SymInt m, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & eye_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, c10::SymInt n, c10::SymInt m) { + return at::_ops::eye_m_out::redispatch(dispatchKeySet, n, m, out); + } + + // aten::eye.m_out(SymInt n, SymInt m, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & eye_symint_outf(c10::DispatchKeySet dispatchKeySet, c10::SymInt n, c10::SymInt m, at::Tensor & out) { + return at::_ops::eye_m_out::redispatch(dispatchKeySet, n, m, out); + } + + // aten::flatten.using_ints(Tensor(a) self, int start_dim=0, int end_dim=-1) -> Tensor(a) + inline at::Tensor flatten(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t start_dim=0, int64_t end_dim=-1) { + return at::_ops::flatten_using_ints::redispatch(dispatchKeySet, self, start_dim, end_dim); + } + + // aten::flatten.named_out_dim(Tensor(a) self, int start_dim, int end_dim, Dimname out_dim) -> Tensor(a) + inline at::Tensor flatten(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t start_dim, int64_t end_dim, at::Dimname out_dim) { + return at::_ops::flatten_named_out_dim::redispatch(dispatchKeySet, self, start_dim, end_dim, out_dim); + } + + // aten::flatten.using_names(Tensor(a) self, Dimname start_dim, Dimname end_dim, Dimname out_dim) -> Tensor(a) + inline at::Tensor flatten(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname start_dim, at::Dimname end_dim, at::Dimname out_dim) { + return at::_ops::flatten_using_names::redispatch(dispatchKeySet, self, start_dim, end_dim, out_dim); + } + + // aten::flatten.DimnameList(Tensor(a) self, Dimname[] dims, Dimname out_dim) -> Tensor(a) + inline at::Tensor flatten(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::DimnameList dims, at::Dimname out_dim) { + return at::_ops::flatten_DimnameList::redispatch(dispatchKeySet, self, dims, out_dim); + } + + // aten::unflatten.int(Tensor(a) self, int dim, SymInt[] sizes) -> Tensor(a) + inline at::Tensor unflatten(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, at::IntArrayRef sizes) { + return at::_ops::unflatten_int::redispatch(dispatchKeySet, self, dim, c10::fromIntArrayRefSlow(sizes)); + } + + // aten::unflatten.int(Tensor(a) self, int dim, SymInt[] sizes) -> Tensor(a) + inline at::Tensor unflatten_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, c10::SymIntArrayRef sizes) { + return at::_ops::unflatten_int::redispatch(dispatchKeySet, self, dim, sizes); + } + + // aten::unflatten.Dimname(Tensor(a) self, Dimname dim, SymInt[] sizes, Dimname[] names) -> Tensor(a) + inline at::Tensor unflatten(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim, at::IntArrayRef sizes, at::DimnameList names) { + return at::_ops::unflatten_Dimname::redispatch(dispatchKeySet, self, dim, c10::fromIntArrayRefSlow(sizes), names); + } + + // aten::unflatten.Dimname(Tensor(a) self, Dimname dim, SymInt[] sizes, Dimname[] names) -> Tensor(a) + inline at::Tensor unflatten_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim, c10::SymIntArrayRef sizes, at::DimnameList names) { + return at::_ops::unflatten_Dimname::redispatch(dispatchKeySet, self, dim, sizes, names); + } + + // aten::fill.Scalar(Tensor self, Scalar value) -> Tensor + inline at::Tensor fill(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & value) { + return at::_ops::fill_Scalar::redispatch(dispatchKeySet, self, value); + } + + // aten::fill.Tensor(Tensor self, Tensor value) -> Tensor + inline at::Tensor fill(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & value) { + return at::_ops::fill_Tensor::redispatch(dispatchKeySet, self, value); + } + + // aten::fill_.Scalar(Tensor(a!) self, Scalar value) -> Tensor(a!) + inline at::Tensor & fill_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Scalar & value) { + return at::_ops::fill__Scalar::redispatch(dispatchKeySet, self, value); + } + + // aten::fill_.Tensor(Tensor(a!) self, Tensor value) -> Tensor(a!) + inline at::Tensor & fill_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & value) { + return at::_ops::fill__Tensor::redispatch(dispatchKeySet, self, value); + } + + // aten::floor(Tensor self) -> Tensor + inline at::Tensor floor(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::floor::redispatch(dispatchKeySet, self); + } + + // aten::floor_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & floor_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::floor_::redispatch(dispatchKeySet, self); + } + + // aten::floor.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & floor_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::floor_out::redispatch(dispatchKeySet, self, out); + } + + // aten::floor.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & floor_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::floor_out::redispatch(dispatchKeySet, self, out); + } + + // aten::floor_divide(Tensor self, Tensor other) -> Tensor + inline at::Tensor floor_divide(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::floor_divide::redispatch(dispatchKeySet, self, other); + } + + // aten::floor_divide_.Tensor(Tensor(a!) self, Tensor other) -> Tensor(a!) + inline at::Tensor & floor_divide_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & other) { + return at::_ops::floor_divide__Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::floor_divide.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & floor_divide_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::floor_divide_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::floor_divide.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & floor_divide_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::floor_divide_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::floor_divide.Scalar(Tensor self, Scalar other) -> Tensor + inline at::Tensor floor_divide(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::floor_divide_Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::floor_divide_.Scalar(Tensor(a!) self, Scalar other) -> Tensor(a!) + inline at::Tensor & floor_divide_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Scalar & other) { + return at::_ops::floor_divide__Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::frac(Tensor self) -> Tensor + inline at::Tensor frac(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::frac::redispatch(dispatchKeySet, self); + } + + // aten::frac_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & frac_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::frac_::redispatch(dispatchKeySet, self); + } + + // aten::frac.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & frac_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::frac_out::redispatch(dispatchKeySet, self, out); + } + + // aten::frac.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & frac_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::frac_out::redispatch(dispatchKeySet, self, out); + } + + // aten::full.names(int[] size, Scalar fill_value, *, Dimname[]? names, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor full(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, const at::Scalar & fill_value, c10::optional names, at::TensorOptions options={}) { + return at::_ops::full_names::redispatch(dispatchKeySet, size, fill_value, names, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::full.names(int[] size, Scalar fill_value, *, Dimname[]? names, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor full(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, const at::Scalar & fill_value, c10::optional names, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::full_names::redispatch(dispatchKeySet, size, fill_value, names, dtype, layout, device, pin_memory); + } + + // aten::full(SymInt[] size, Scalar fill_value, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor full(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, const at::Scalar & fill_value, at::TensorOptions options={}) { + return at::_ops::full::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), fill_value, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::full(SymInt[] size, Scalar fill_value, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor full(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, const at::Scalar & fill_value, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::full::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), fill_value, dtype, layout, device, pin_memory); + } + + // aten::full(SymInt[] size, Scalar fill_value, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor full_symint(c10::DispatchKeySet dispatchKeySet, c10::SymIntArrayRef size, const at::Scalar & fill_value, at::TensorOptions options={}) { + return at::_ops::full::redispatch(dispatchKeySet, size, fill_value, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::full(SymInt[] size, Scalar fill_value, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor full_symint(c10::DispatchKeySet dispatchKeySet, c10::SymIntArrayRef size, const at::Scalar & fill_value, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::full::redispatch(dispatchKeySet, size, fill_value, dtype, layout, device, pin_memory); + } + + // aten::full.out(SymInt[] size, Scalar fill_value, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & full_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, at::IntArrayRef size, const at::Scalar & fill_value) { + return at::_ops::full_out::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), fill_value, out); + } + + // aten::full.out(SymInt[] size, Scalar fill_value, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & full_outf(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, const at::Scalar & fill_value, at::Tensor & out) { + return at::_ops::full_out::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), fill_value, out); + } + + // aten::full.out(SymInt[] size, Scalar fill_value, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & full_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, c10::SymIntArrayRef size, const at::Scalar & fill_value) { + return at::_ops::full_out::redispatch(dispatchKeySet, size, fill_value, out); + } + + // aten::full.out(SymInt[] size, Scalar fill_value, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & full_symint_outf(c10::DispatchKeySet dispatchKeySet, c10::SymIntArrayRef size, const at::Scalar & fill_value, at::Tensor & out) { + return at::_ops::full_out::redispatch(dispatchKeySet, size, fill_value, out); + } + + // aten::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 + inline at::Tensor full_like(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & fill_value, at::TensorOptions options={}, c10::optional memory_format=c10::nullopt) { + return at::_ops::full_like::redispatch(dispatchKeySet, self, fill_value, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt(), c10::impl::check_tensor_options_and_extract_memory_format(options, memory_format)); + } + + // aten::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 + inline at::Tensor full_like(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) { + return at::_ops::full_like::redispatch(dispatchKeySet, self, fill_value, dtype, layout, device, pin_memory, memory_format); + } + + // aten::from_file(str filename, bool? shared=None, int? size=0, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor from_file(c10::DispatchKeySet dispatchKeySet, c10::string_view filename, c10::optional shared=c10::nullopt, c10::optional size=0, at::TensorOptions options={}) { + return at::_ops::from_file::redispatch(dispatchKeySet, filename, shared, size, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::from_file(str filename, bool? shared=None, int? size=0, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor from_file(c10::DispatchKeySet dispatchKeySet, c10::string_view filename, c10::optional shared, c10::optional size, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::from_file::redispatch(dispatchKeySet, filename, shared, size, dtype, layout, device, pin_memory); + } + + // aten::gcd.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & gcd_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::gcd_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::gcd.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & gcd_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::gcd_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::gcd(Tensor self, Tensor other) -> Tensor + inline at::Tensor gcd(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::gcd::redispatch(dispatchKeySet, self, other); + } + + // aten::gcd_(Tensor(a!) self, Tensor other) -> Tensor(a!) + inline at::Tensor & gcd_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & other) { + return at::_ops::gcd_::redispatch(dispatchKeySet, self, other); + } + + // aten::lcm.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & lcm_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::lcm_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::lcm.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & lcm_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::lcm_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::lcm(Tensor self, Tensor other) -> Tensor + inline at::Tensor lcm(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::lcm::redispatch(dispatchKeySet, self, other); + } + + // aten::lcm_(Tensor(a!) self, Tensor other) -> Tensor(a!) + inline at::Tensor & lcm_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & other) { + return at::_ops::lcm_::redispatch(dispatchKeySet, self, other); + } + + // aten::grid_sampler(Tensor input, Tensor grid, int interpolation_mode, int padding_mode, bool align_corners) -> Tensor + inline at::Tensor grid_sampler(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & grid, int64_t interpolation_mode, int64_t padding_mode, bool align_corners) { + return at::_ops::grid_sampler::redispatch(dispatchKeySet, input, grid, interpolation_mode, padding_mode, align_corners); + } + + // aten::grid_sampler_2d(Tensor input, Tensor grid, int interpolation_mode, int padding_mode, bool align_corners) -> Tensor + inline at::Tensor grid_sampler_2d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & grid, int64_t interpolation_mode, int64_t padding_mode, bool align_corners) { + return at::_ops::grid_sampler_2d::redispatch(dispatchKeySet, input, grid, interpolation_mode, padding_mode, align_corners); + } + + // aten::grid_sampler_2d_backward(Tensor grad_output, Tensor input, Tensor grid, int interpolation_mode, int padding_mode, bool align_corners, bool[2] output_mask) -> (Tensor, Tensor) + inline ::std::tuple grid_sampler_2d_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & input, const at::Tensor & grid, int64_t interpolation_mode, int64_t padding_mode, bool align_corners, ::std::array output_mask) { + return at::_ops::grid_sampler_2d_backward::redispatch(dispatchKeySet, grad_output, input, grid, interpolation_mode, padding_mode, align_corners, output_mask); + } + + // aten::_grid_sampler_2d_cpu_fallback(Tensor input, Tensor grid, int interpolation_mode, int padding_mode, bool align_corners) -> Tensor + inline at::Tensor _grid_sampler_2d_cpu_fallback(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & grid, int64_t interpolation_mode, int64_t padding_mode, bool align_corners) { + return at::_ops::_grid_sampler_2d_cpu_fallback::redispatch(dispatchKeySet, input, grid, interpolation_mode, padding_mode, align_corners); + } + + // aten::_grid_sampler_2d_cpu_fallback_backward(Tensor grad_output, Tensor input, Tensor grid, int interpolation_mode, int padding_mode, bool align_corners) -> (Tensor, Tensor) + inline ::std::tuple _grid_sampler_2d_cpu_fallback_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & input, const at::Tensor & grid, int64_t interpolation_mode, int64_t padding_mode, bool align_corners) { + return at::_ops::_grid_sampler_2d_cpu_fallback_backward::redispatch(dispatchKeySet, grad_output, input, grid, interpolation_mode, padding_mode, align_corners); + } + + // aten::grid_sampler_3d(Tensor input, Tensor grid, int interpolation_mode, int padding_mode, bool align_corners) -> Tensor + inline at::Tensor grid_sampler_3d(c10::DispatchKeySet dispatchKeySet, 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::redispatch(dispatchKeySet, input, grid, interpolation_mode, padding_mode, align_corners); + } + + // aten::grid_sampler_3d_backward(Tensor grad_output, Tensor input, Tensor grid, int interpolation_mode, int padding_mode, bool align_corners, bool[2] output_mask) -> (Tensor, Tensor) + inline ::std::tuple grid_sampler_3d_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & input, const at::Tensor & grid, int64_t interpolation_mode, int64_t padding_mode, bool align_corners, ::std::array output_mask) { + return at::_ops::grid_sampler_3d_backward::redispatch(dispatchKeySet, grad_output, input, grid, interpolation_mode, padding_mode, align_corners, output_mask); + } + + // aten::hann_window(int window_length, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor hann_window(c10::DispatchKeySet dispatchKeySet, int64_t window_length, at::TensorOptions options={}) { + return at::_ops::hann_window::redispatch(dispatchKeySet, window_length, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::hann_window(int window_length, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor hann_window(c10::DispatchKeySet dispatchKeySet, int64_t window_length, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::hann_window::redispatch(dispatchKeySet, window_length, dtype, layout, device, pin_memory); + } + + // aten::hann_window.periodic(int window_length, bool periodic, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor hann_window(c10::DispatchKeySet dispatchKeySet, int64_t window_length, bool periodic, at::TensorOptions options={}) { + return at::_ops::hann_window_periodic::redispatch(dispatchKeySet, window_length, periodic, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::hann_window.periodic(int window_length, bool periodic, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor hann_window(c10::DispatchKeySet dispatchKeySet, int64_t window_length, bool periodic, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::hann_window_periodic::redispatch(dispatchKeySet, window_length, periodic, dtype, layout, device, pin_memory); + } + + // aten::hamming_window(int window_length, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor hamming_window(c10::DispatchKeySet dispatchKeySet, int64_t window_length, at::TensorOptions options={}) { + return at::_ops::hamming_window::redispatch(dispatchKeySet, window_length, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::hamming_window(int window_length, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor hamming_window(c10::DispatchKeySet dispatchKeySet, int64_t window_length, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::hamming_window::redispatch(dispatchKeySet, window_length, dtype, layout, device, pin_memory); + } + + // aten::hamming_window.periodic(int window_length, bool periodic, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor hamming_window(c10::DispatchKeySet dispatchKeySet, int64_t window_length, bool periodic, at::TensorOptions options={}) { + return at::_ops::hamming_window_periodic::redispatch(dispatchKeySet, window_length, periodic, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::hamming_window.periodic(int window_length, bool periodic, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor hamming_window(c10::DispatchKeySet dispatchKeySet, int64_t window_length, bool periodic, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::hamming_window_periodic::redispatch(dispatchKeySet, window_length, periodic, dtype, layout, device, pin_memory); + } + + // aten::hamming_window.periodic_alpha(int window_length, bool periodic, float alpha, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor hamming_window(c10::DispatchKeySet dispatchKeySet, int64_t window_length, bool periodic, double alpha, at::TensorOptions options={}) { + return at::_ops::hamming_window_periodic_alpha::redispatch(dispatchKeySet, window_length, periodic, alpha, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::hamming_window.periodic_alpha(int window_length, bool periodic, float alpha, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor hamming_window(c10::DispatchKeySet dispatchKeySet, int64_t window_length, bool periodic, double alpha, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::hamming_window_periodic_alpha::redispatch(dispatchKeySet, window_length, periodic, alpha, dtype, layout, device, pin_memory); + } + + // aten::hamming_window.periodic_alpha_beta(int window_length, bool periodic, float alpha, float beta, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor hamming_window(c10::DispatchKeySet dispatchKeySet, int64_t window_length, bool periodic, double alpha, double beta, at::TensorOptions options={}) { + return at::_ops::hamming_window_periodic_alpha_beta::redispatch(dispatchKeySet, window_length, periodic, alpha, beta, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::hamming_window.periodic_alpha_beta(int window_length, bool periodic, float alpha, float beta, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor hamming_window(c10::DispatchKeySet dispatchKeySet, int64_t window_length, bool periodic, double alpha, double beta, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::hamming_window_periodic_alpha_beta::redispatch(dispatchKeySet, window_length, periodic, alpha, beta, dtype, layout, device, pin_memory); + } + + // aten::kaiser_window(int window_length, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor kaiser_window(c10::DispatchKeySet dispatchKeySet, int64_t window_length, at::TensorOptions options={}) { + return at::_ops::kaiser_window::redispatch(dispatchKeySet, window_length, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::kaiser_window(int window_length, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor kaiser_window(c10::DispatchKeySet dispatchKeySet, int64_t window_length, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::kaiser_window::redispatch(dispatchKeySet, window_length, dtype, layout, device, pin_memory); + } + + // aten::kaiser_window.periodic(int window_length, bool periodic, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor kaiser_window(c10::DispatchKeySet dispatchKeySet, int64_t window_length, bool periodic, at::TensorOptions options={}) { + return at::_ops::kaiser_window_periodic::redispatch(dispatchKeySet, window_length, periodic, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::kaiser_window.periodic(int window_length, bool periodic, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor kaiser_window(c10::DispatchKeySet dispatchKeySet, int64_t window_length, bool periodic, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::kaiser_window_periodic::redispatch(dispatchKeySet, window_length, periodic, dtype, layout, device, pin_memory); + } + + // aten::kaiser_window.beta(int window_length, bool periodic, float beta, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor kaiser_window(c10::DispatchKeySet dispatchKeySet, int64_t window_length, bool periodic, double beta, at::TensorOptions options={}) { + return at::_ops::kaiser_window_beta::redispatch(dispatchKeySet, window_length, periodic, beta, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::kaiser_window.beta(int window_length, bool periodic, float beta, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor kaiser_window(c10::DispatchKeySet dispatchKeySet, int64_t window_length, bool periodic, double beta, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::kaiser_window_beta::redispatch(dispatchKeySet, window_length, periodic, beta, dtype, layout, device, pin_memory); + } + + // aten::hinge_embedding_loss(Tensor self, Tensor target, float margin=1.0, int reduction=Mean) -> Tensor + inline at::Tensor hinge_embedding_loss(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & target, double margin=1.0, int64_t reduction=at::Reduction::Mean) { + return at::_ops::hinge_embedding_loss::redispatch(dispatchKeySet, self, target, margin, reduction); + } + + // aten::group_norm(Tensor input, int num_groups, Tensor? weight=None, Tensor? bias=None, float eps=1e-05, bool cudnn_enabled=True) -> Tensor + inline at::Tensor group_norm(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, int64_t num_groups, const c10::optional & weight={}, const c10::optional & bias={}, double eps=1e-05, bool cudnn_enabled=true) { + return at::_ops::group_norm::redispatch(dispatchKeySet, input, num_groups, weight, bias, eps, cudnn_enabled); + } + + // aten::native_group_norm(Tensor input, Tensor? weight, Tensor? bias, SymInt N, SymInt C, SymInt HxW, int group, float eps) -> (Tensor, Tensor, Tensor) + inline ::std::tuple native_group_norm(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const c10::optional & weight, const c10::optional & bias, int64_t N, int64_t C, int64_t HxW, int64_t group, double eps) { + return at::_ops::native_group_norm::redispatch(dispatchKeySet, input, weight, bias, N, C, HxW, group, eps); + } + + // aten::native_group_norm(Tensor input, Tensor? weight, Tensor? bias, SymInt N, SymInt C, SymInt HxW, int group, float eps) -> (Tensor, Tensor, Tensor) + inline ::std::tuple native_group_norm_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const c10::optional & weight, const c10::optional & bias, c10::SymInt N, c10::SymInt C, c10::SymInt HxW, int64_t group, double eps) { + return at::_ops::native_group_norm::redispatch(dispatchKeySet, input, weight, bias, N, C, HxW, group, eps); + } + + // aten::native_group_norm_backward(Tensor grad_out, Tensor input, Tensor mean, Tensor rstd, Tensor? weight, SymInt N, SymInt C, SymInt HxW, int group, bool[3] output_mask) -> (Tensor, Tensor, Tensor) + inline ::std::tuple native_group_norm_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_out, const at::Tensor & input, const at::Tensor & mean, const at::Tensor & rstd, const c10::optional & weight, int64_t N, int64_t C, int64_t HxW, int64_t group, ::std::array output_mask) { + return at::_ops::native_group_norm_backward::redispatch(dispatchKeySet, grad_out, input, mean, rstd, weight, N, C, HxW, group, output_mask); + } + + // aten::native_group_norm_backward(Tensor grad_out, Tensor input, Tensor mean, Tensor rstd, Tensor? weight, SymInt N, SymInt C, SymInt HxW, int group, bool[3] output_mask) -> (Tensor, Tensor, Tensor) + inline ::std::tuple native_group_norm_backward_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_out, const at::Tensor & input, const at::Tensor & mean, const at::Tensor & rstd, const c10::optional & weight, c10::SymInt N, c10::SymInt C, c10::SymInt HxW, int64_t group, ::std::array output_mask) { + return at::_ops::native_group_norm_backward::redispatch(dispatchKeySet, grad_out, input, mean, rstd, weight, N, C, HxW, group, output_mask); + } + + // aten::_fft_r2c(Tensor self, int[] dim, int normalization, bool onesided) -> Tensor + inline at::Tensor _fft_r2c(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef dim, int64_t normalization, bool onesided) { + return at::_ops::_fft_r2c::redispatch(dispatchKeySet, self, dim, normalization, onesided); + } + + // aten::_fft_r2c.out(Tensor self, int[] dim, int normalization, bool onesided, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _fft_r2c_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef dim, int64_t normalization, bool onesided) { + return at::_ops::_fft_r2c_out::redispatch(dispatchKeySet, self, dim, normalization, onesided, out); + } + + // aten::_fft_r2c.out(Tensor self, int[] dim, int normalization, bool onesided, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _fft_r2c_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef dim, int64_t normalization, bool onesided, at::Tensor & out) { + return at::_ops::_fft_r2c_out::redispatch(dispatchKeySet, self, dim, normalization, onesided, out); + } + + // aten::_fft_c2r(Tensor self, int[] dim, int normalization, SymInt last_dim_size) -> Tensor + inline at::Tensor _fft_c2r(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef dim, int64_t normalization, int64_t last_dim_size) { + return at::_ops::_fft_c2r::redispatch(dispatchKeySet, self, dim, normalization, last_dim_size); + } + + // aten::_fft_c2r(Tensor self, int[] dim, int normalization, SymInt last_dim_size) -> Tensor + inline at::Tensor _fft_c2r_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef dim, int64_t normalization, c10::SymInt last_dim_size) { + return at::_ops::_fft_c2r::redispatch(dispatchKeySet, self, dim, normalization, last_dim_size); + } + + // aten::_fft_c2r.out(Tensor self, int[] dim, int normalization, SymInt last_dim_size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _fft_c2r_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef dim, int64_t normalization, int64_t last_dim_size) { + return at::_ops::_fft_c2r_out::redispatch(dispatchKeySet, self, dim, normalization, last_dim_size, out); + } + + // aten::_fft_c2r.out(Tensor self, int[] dim, int normalization, SymInt last_dim_size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _fft_c2r_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef dim, int64_t normalization, int64_t last_dim_size, at::Tensor & out) { + return at::_ops::_fft_c2r_out::redispatch(dispatchKeySet, self, dim, normalization, last_dim_size, out); + } + + // aten::_fft_c2r.out(Tensor self, int[] dim, int normalization, SymInt last_dim_size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _fft_c2r_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef dim, int64_t normalization, c10::SymInt last_dim_size) { + return at::_ops::_fft_c2r_out::redispatch(dispatchKeySet, self, dim, normalization, last_dim_size, out); + } + + // aten::_fft_c2r.out(Tensor self, int[] dim, int normalization, SymInt last_dim_size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _fft_c2r_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef dim, int64_t normalization, c10::SymInt last_dim_size, at::Tensor & out) { + return at::_ops::_fft_c2r_out::redispatch(dispatchKeySet, self, dim, normalization, last_dim_size, out); + } + + // aten::_fft_c2c(Tensor self, SymInt[] dim, int normalization, bool forward) -> Tensor + inline at::Tensor _fft_c2c(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef dim, int64_t normalization, bool forward) { + return at::_ops::_fft_c2c::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(dim), normalization, forward); + } + + // aten::_fft_c2c(Tensor self, SymInt[] dim, int normalization, bool forward) -> Tensor + inline at::Tensor _fft_c2c_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef dim, int64_t normalization, bool forward) { + return at::_ops::_fft_c2c::redispatch(dispatchKeySet, self, dim, normalization, forward); + } + + // aten::_fft_c2c.out(Tensor self, SymInt[] dim, int normalization, bool forward, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _fft_c2c_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef dim, int64_t normalization, bool forward) { + return at::_ops::_fft_c2c_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(dim), normalization, forward, out); + } + + // aten::_fft_c2c.out(Tensor self, SymInt[] dim, int normalization, bool forward, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _fft_c2c_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef dim, int64_t normalization, bool forward, at::Tensor & out) { + return at::_ops::_fft_c2c_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(dim), normalization, forward, out); + } + + // aten::_fft_c2c.out(Tensor self, SymInt[] dim, int normalization, bool forward, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _fft_c2c_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::SymIntArrayRef dim, int64_t normalization, bool forward) { + return at::_ops::_fft_c2c_out::redispatch(dispatchKeySet, self, dim, normalization, forward, out); + } + + // aten::_fft_c2c.out(Tensor self, SymInt[] dim, int normalization, bool forward, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _fft_c2c_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef dim, int64_t normalization, bool forward, at::Tensor & out) { + return at::_ops::_fft_c2c_out::redispatch(dispatchKeySet, self, dim, normalization, forward, out); + } + + // aten::_validate_compressed_sparse_indices(bool is_crow, Tensor compressed_idx, Tensor plain_idx, int cdim, int dim, int nnz) -> () + inline void _validate_compressed_sparse_indices(c10::DispatchKeySet dispatchKeySet, bool is_crow, const at::Tensor & compressed_idx, const at::Tensor & plain_idx, int64_t cdim, int64_t dim, int64_t nnz) { + return at::_ops::_validate_compressed_sparse_indices::redispatch(dispatchKeySet, is_crow, compressed_idx, plain_idx, cdim, dim, nnz); + } + + // aten::_cufft_get_plan_cache_size(DeviceIndex device_index) -> int + inline int64_t _cufft_get_plan_cache_size(c10::DispatchKeySet dispatchKeySet, at::DeviceIndex device_index) { + return at::_ops::_cufft_get_plan_cache_size::redispatch(dispatchKeySet, device_index); + } + + // aten::_cufft_get_plan_cache_max_size(DeviceIndex device_index) -> int + inline int64_t _cufft_get_plan_cache_max_size(c10::DispatchKeySet dispatchKeySet, at::DeviceIndex device_index) { + return at::_ops::_cufft_get_plan_cache_max_size::redispatch(dispatchKeySet, device_index); + } + + // aten::_cufft_set_plan_cache_max_size(DeviceIndex device_index, int max_size) -> () + inline void _cufft_set_plan_cache_max_size(c10::DispatchKeySet dispatchKeySet, at::DeviceIndex device_index, int64_t max_size) { + return at::_ops::_cufft_set_plan_cache_max_size::redispatch(dispatchKeySet, device_index, max_size); + } + + // aten::_cufft_clear_plan_cache(DeviceIndex device_index) -> () + inline void _cufft_clear_plan_cache(c10::DispatchKeySet dispatchKeySet, at::DeviceIndex device_index) { + return at::_ops::_cufft_clear_plan_cache::redispatch(dispatchKeySet, device_index); + } + + // aten::index.Tensor(Tensor self, Tensor?[] indices) -> Tensor + inline at::Tensor index(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const c10::List> & indices) { + return at::_ops::index_Tensor::redispatch(dispatchKeySet, self, indices); + } + + // aten::index.Tensor_out(Tensor self, Tensor?[] indices, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & index_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const c10::List> & indices) { + return at::_ops::index_Tensor_out::redispatch(dispatchKeySet, self, indices, out); + } + + // aten::index.Tensor_out(Tensor self, Tensor?[] indices, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & index_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const c10::List> & indices, at::Tensor & out) { + return at::_ops::index_Tensor_out::redispatch(dispatchKeySet, self, indices, out); + } + + // aten::_unsafe_index.Tensor(Tensor self, Tensor?[] indices) -> Tensor + inline at::Tensor _unsafe_index(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const c10::List> & indices) { + return at::_ops::_unsafe_index_Tensor::redispatch(dispatchKeySet, self, indices); + } + + // aten::index_copy.out(Tensor self, int dim, Tensor index, Tensor source, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & index_copy_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Tensor & source) { + return at::_ops::index_copy_out::redispatch(dispatchKeySet, self, dim, index, source, out); + } + + // aten::index_copy.out(Tensor self, int dim, Tensor index, Tensor source, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & index_copy_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Tensor & source, at::Tensor & out) { + return at::_ops::index_copy_out::redispatch(dispatchKeySet, self, dim, index, source, out); + } + + // aten::index_copy_(Tensor(a!) self, int dim, Tensor index, Tensor source) -> Tensor(a!) + inline at::Tensor & index_copy_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Tensor & source) { + return at::_ops::index_copy_::redispatch(dispatchKeySet, self, dim, index, source); + } + + // aten::index_copy(Tensor self, int dim, Tensor index, Tensor source) -> Tensor + inline at::Tensor index_copy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Tensor & source) { + return at::_ops::index_copy::redispatch(dispatchKeySet, self, dim, index, source); + } + + // aten::index_copy_.dimname(Tensor(a!) self, Dimname dim, Tensor index, Tensor source) -> Tensor(a!) + inline at::Tensor & index_copy_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, at::Dimname dim, const at::Tensor & index, const at::Tensor & source) { + return at::_ops::index_copy__dimname::redispatch(dispatchKeySet, self, dim, index, source); + } + + // aten::index_copy.dimname(Tensor self, Dimname dim, Tensor index, Tensor source) -> Tensor + inline at::Tensor index_copy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim, const at::Tensor & index, const at::Tensor & source) { + return at::_ops::index_copy_dimname::redispatch(dispatchKeySet, self, dim, index, source); + } + + // aten::index_put_(Tensor(a!) self, Tensor?[] indices, Tensor values, bool accumulate=False) -> Tensor(a!) + inline at::Tensor & index_put_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const c10::List> & indices, const at::Tensor & values, bool accumulate=false) { + return at::_ops::index_put_::redispatch(dispatchKeySet, self, indices, values, accumulate); + } + + // aten::index_put(Tensor self, Tensor?[] indices, Tensor values, bool accumulate=False) -> Tensor + inline at::Tensor index_put(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const c10::List> & indices, const at::Tensor & values, bool accumulate=false) { + return at::_ops::index_put::redispatch(dispatchKeySet, self, indices, values, accumulate); + } + + // aten::_unsafe_index_put(Tensor self, Tensor?[] indices, Tensor values, bool accumulate=False) -> Tensor + inline at::Tensor _unsafe_index_put(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const c10::List> & indices, const at::Tensor & values, bool accumulate=false) { + return at::_ops::_unsafe_index_put::redispatch(dispatchKeySet, self, indices, values, accumulate); + } + + // aten::_index_put_impl_(Tensor(a!) self, Tensor?[] indices, Tensor values, bool accumulate=False, bool unsafe=False) -> Tensor(a!) + inline at::Tensor & _index_put_impl_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const c10::List> & indices, const at::Tensor & values, bool accumulate=false, bool unsafe=false) { + return at::_ops::_index_put_impl_::redispatch(dispatchKeySet, self, indices, values, accumulate, unsafe); + } + + // 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(c10::DispatchKeySet dispatchKeySet, 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::redispatch(dispatchKeySet, input, weight, bias, running_mean, running_var, use_input_stats, momentum, eps, cudnn_enabled); + } + + // aten::isclose(Tensor self, Tensor other, float rtol=1e-05, float atol=1e-08, bool equal_nan=False) -> Tensor + inline at::Tensor isclose(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, double rtol=1e-05, double atol=1e-08, bool equal_nan=false) { + return at::_ops::isclose::redispatch(dispatchKeySet, self, other, rtol, atol, equal_nan); + } + + // aten::isin.Tensor_Tensor_out(Tensor elements, Tensor test_elements, *, bool assume_unique=False, bool invert=False, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & isin_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & elements, const at::Tensor & test_elements, bool assume_unique=false, bool invert=false) { + return at::_ops::isin_Tensor_Tensor_out::redispatch(dispatchKeySet, elements, test_elements, assume_unique, invert, out); + } + + // aten::isin.Tensor_Tensor_out(Tensor elements, Tensor test_elements, *, bool assume_unique=False, bool invert=False, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & isin_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & elements, const at::Tensor & test_elements, bool assume_unique, bool invert, at::Tensor & out) { + return at::_ops::isin_Tensor_Tensor_out::redispatch(dispatchKeySet, elements, test_elements, assume_unique, invert, out); + } + + // aten::isin.Tensor_Tensor(Tensor elements, Tensor test_elements, *, bool assume_unique=False, bool invert=False) -> Tensor + inline at::Tensor isin(c10::DispatchKeySet dispatchKeySet, const at::Tensor & elements, const at::Tensor & test_elements, bool assume_unique=false, bool invert=false) { + return at::_ops::isin_Tensor_Tensor::redispatch(dispatchKeySet, elements, test_elements, assume_unique, invert); + } + + // aten::isin.Tensor_Scalar_out(Tensor elements, Scalar test_element, *, bool assume_unique=False, bool invert=False, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & isin_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & elements, const at::Scalar & test_element, bool assume_unique=false, bool invert=false) { + return at::_ops::isin_Tensor_Scalar_out::redispatch(dispatchKeySet, elements, test_element, assume_unique, invert, out); + } + + // aten::isin.Tensor_Scalar_out(Tensor elements, Scalar test_element, *, bool assume_unique=False, bool invert=False, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & isin_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & elements, const at::Scalar & test_element, bool assume_unique, bool invert, at::Tensor & out) { + return at::_ops::isin_Tensor_Scalar_out::redispatch(dispatchKeySet, elements, test_element, assume_unique, invert, out); + } + + // aten::isin.Tensor_Scalar(Tensor elements, Scalar test_element, *, bool assume_unique=False, bool invert=False) -> Tensor + inline at::Tensor isin(c10::DispatchKeySet dispatchKeySet, const at::Tensor & elements, const at::Scalar & test_element, bool assume_unique=false, bool invert=false) { + return at::_ops::isin_Tensor_Scalar::redispatch(dispatchKeySet, elements, test_element, assume_unique, invert); + } + + // aten::isin.Scalar_Tensor_out(Scalar element, Tensor test_elements, *, bool assume_unique=False, bool invert=False, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & isin_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Scalar & element, const at::Tensor & test_elements, bool assume_unique=false, bool invert=false) { + return at::_ops::isin_Scalar_Tensor_out::redispatch(dispatchKeySet, element, test_elements, assume_unique, invert, out); + } + + // aten::isin.Scalar_Tensor_out(Scalar element, Tensor test_elements, *, bool assume_unique=False, bool invert=False, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & isin_outf(c10::DispatchKeySet dispatchKeySet, const at::Scalar & element, const at::Tensor & test_elements, bool assume_unique, bool invert, at::Tensor & out) { + return at::_ops::isin_Scalar_Tensor_out::redispatch(dispatchKeySet, element, test_elements, assume_unique, invert, out); + } + + // aten::isin.Scalar_Tensor(Scalar element, Tensor test_elements, *, bool assume_unique=False, bool invert=False) -> Tensor + inline at::Tensor isin(c10::DispatchKeySet dispatchKeySet, const at::Scalar & element, const at::Tensor & test_elements, bool assume_unique=false, bool invert=false) { + return at::_ops::isin_Scalar_Tensor::redispatch(dispatchKeySet, element, test_elements, assume_unique, invert); + } + + // aten::isnan(Tensor self) -> Tensor + inline at::Tensor isnan(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::isnan::redispatch(dispatchKeySet, self); + } + + // aten::is_distributed(Tensor self) -> bool + inline bool is_distributed(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::is_distributed::redispatch(dispatchKeySet, self); + } + + // aten::is_floating_point(Tensor self) -> bool + inline bool __dispatch_is_floating_point(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::is_floating_point::redispatch(dispatchKeySet, self); + } + + // aten::is_complex(Tensor self) -> bool + inline bool __dispatch_is_complex(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::is_complex::redispatch(dispatchKeySet, self); + } + + // aten::is_conj(Tensor self) -> bool + inline bool __dispatch_is_conj(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::is_conj::redispatch(dispatchKeySet, self); + } + + // aten::_is_zerotensor(Tensor self) -> bool + inline bool __dispatch__is_zerotensor(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::_is_zerotensor::redispatch(dispatchKeySet, self); + } + + // aten::is_neg(Tensor self) -> bool + inline bool __dispatch_is_neg(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::is_neg::redispatch(dispatchKeySet, self); + } + + // aten::isreal(Tensor self) -> Tensor + inline at::Tensor isreal(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::isreal::redispatch(dispatchKeySet, self); + } + + // aten::is_nonzero(Tensor self) -> bool + inline bool is_nonzero(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::is_nonzero::redispatch(dispatchKeySet, self); + } + + // aten::is_same_size(Tensor self, Tensor other) -> bool + inline bool is_same_size(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::is_same_size::redispatch(dispatchKeySet, self, other); + } + + // aten::is_signed(Tensor self) -> bool + inline bool __dispatch_is_signed(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::is_signed::redispatch(dispatchKeySet, self); + } + + // aten::is_inference(Tensor self) -> bool + inline bool __dispatch_is_inference(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::is_inference::redispatch(dispatchKeySet, self); + } + + // aten::kl_div(Tensor self, Tensor target, int reduction=Mean, *, bool log_target=False) -> Tensor + inline at::Tensor kl_div(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & target, int64_t reduction=at::Reduction::Mean, bool log_target=false) { + return at::_ops::kl_div::redispatch(dispatchKeySet, self, target, reduction, log_target); + } + + // aten::kron(Tensor self, Tensor other) -> Tensor + inline at::Tensor kron(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::kron::redispatch(dispatchKeySet, self, other); + } + + // aten::kron.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & kron_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::kron_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::kron.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & kron_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::kron_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::kthvalue(Tensor self, int k, int dim=-1, bool keepdim=False) -> (Tensor values, Tensor indices) + inline ::std::tuple kthvalue(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t k, int64_t dim=-1, bool keepdim=false) { + return at::_ops::kthvalue::redispatch(dispatchKeySet, self, k, dim, keepdim); + } + + // aten::kthvalue.values(Tensor self, int k, int dim=-1, bool keepdim=False, *, Tensor(a!) values, Tensor(b!) indices) -> (Tensor(a!) values, Tensor(b!) indices) + inline ::std::tuple kthvalue_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & values, at::Tensor & indices, const at::Tensor & self, int64_t k, int64_t dim=-1, bool keepdim=false) { + return at::_ops::kthvalue_values::redispatch(dispatchKeySet, self, k, dim, keepdim, values, indices); + } + + // aten::kthvalue.values(Tensor self, int k, int dim=-1, bool keepdim=False, *, Tensor(a!) values, Tensor(b!) indices) -> (Tensor(a!) values, Tensor(b!) indices) + inline ::std::tuple kthvalue_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t k, int64_t dim, bool keepdim, at::Tensor & values, at::Tensor & indices) { + return at::_ops::kthvalue_values::redispatch(dispatchKeySet, self, k, dim, keepdim, values, indices); + } + + // aten::kthvalue.dimname(Tensor self, int k, Dimname dim, bool keepdim=False) -> (Tensor values, Tensor indices) + inline ::std::tuple kthvalue(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t k, at::Dimname dim, bool keepdim=false) { + return at::_ops::kthvalue_dimname::redispatch(dispatchKeySet, self, k, dim, keepdim); + } + + // aten::kthvalue.dimname_out(Tensor self, int k, Dimname dim, bool keepdim=False, *, Tensor(a!) values, Tensor(b!) indices) -> (Tensor(a!) values, Tensor(b!) indices) + inline ::std::tuple kthvalue_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & values, at::Tensor & indices, const at::Tensor & self, int64_t k, at::Dimname dim, bool keepdim=false) { + return at::_ops::kthvalue_dimname_out::redispatch(dispatchKeySet, self, k, dim, keepdim, values, indices); + } + + // aten::kthvalue.dimname_out(Tensor self, int k, Dimname dim, bool keepdim=False, *, Tensor(a!) values, Tensor(b!) indices) -> (Tensor(a!) values, Tensor(b!) indices) + inline ::std::tuple kthvalue_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t k, at::Dimname dim, bool keepdim, at::Tensor & values, at::Tensor & indices) { + return at::_ops::kthvalue_dimname_out::redispatch(dispatchKeySet, self, k, dim, keepdim, values, indices); + } + + // aten::layer_norm(Tensor input, SymInt[] normalized_shape, Tensor? weight=None, Tensor? bias=None, float eps=1e-05, bool cudnn_enable=True) -> Tensor + inline at::Tensor layer_norm(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, at::IntArrayRef normalized_shape, const c10::optional & weight={}, const c10::optional & bias={}, double eps=1e-05, bool cudnn_enable=true) { + return at::_ops::layer_norm::redispatch(dispatchKeySet, input, c10::fromIntArrayRefSlow(normalized_shape), weight, bias, eps, cudnn_enable); + } + + // aten::layer_norm(Tensor input, SymInt[] normalized_shape, Tensor? weight=None, Tensor? bias=None, float eps=1e-05, bool cudnn_enable=True) -> Tensor + inline at::Tensor layer_norm_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, c10::SymIntArrayRef normalized_shape, const c10::optional & weight={}, const c10::optional & bias={}, double eps=1e-05, bool cudnn_enable=true) { + return at::_ops::layer_norm::redispatch(dispatchKeySet, input, normalized_shape, weight, bias, eps, cudnn_enable); + } + + // aten::native_layer_norm(Tensor input, SymInt[] normalized_shape, Tensor? weight, Tensor? bias, float eps) -> (Tensor, Tensor, Tensor) + inline ::std::tuple native_layer_norm(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, at::IntArrayRef normalized_shape, const c10::optional & weight, const c10::optional & bias, double eps) { + return at::_ops::native_layer_norm::redispatch(dispatchKeySet, input, c10::fromIntArrayRefSlow(normalized_shape), weight, bias, eps); + } + + // aten::native_layer_norm(Tensor input, SymInt[] normalized_shape, Tensor? weight, Tensor? bias, float eps) -> (Tensor, Tensor, Tensor) + inline ::std::tuple native_layer_norm_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, c10::SymIntArrayRef normalized_shape, const c10::optional & weight, const c10::optional & bias, double eps) { + return at::_ops::native_layer_norm::redispatch(dispatchKeySet, input, normalized_shape, weight, bias, eps); + } + + // aten::native_layer_norm_backward(Tensor grad_out, Tensor input, SymInt[] normalized_shape, Tensor mean, Tensor rstd, Tensor? weight, Tensor? bias, bool[3] output_mask) -> (Tensor, Tensor, Tensor) + inline ::std::tuple native_layer_norm_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_out, const at::Tensor & input, at::IntArrayRef normalized_shape, const at::Tensor & mean, const at::Tensor & rstd, const c10::optional & weight, const c10::optional & bias, ::std::array output_mask) { + return at::_ops::native_layer_norm_backward::redispatch(dispatchKeySet, grad_out, input, c10::fromIntArrayRefSlow(normalized_shape), mean, rstd, weight, bias, output_mask); + } + + // aten::native_layer_norm_backward(Tensor grad_out, Tensor input, SymInt[] normalized_shape, Tensor mean, Tensor rstd, Tensor? weight, Tensor? bias, bool[3] output_mask) -> (Tensor, Tensor, Tensor) + inline ::std::tuple native_layer_norm_backward_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_out, const at::Tensor & input, c10::SymIntArrayRef normalized_shape, const at::Tensor & mean, const at::Tensor & rstd, const c10::optional & weight, const c10::optional & bias, ::std::array output_mask) { + return at::_ops::native_layer_norm_backward::redispatch(dispatchKeySet, grad_out, input, normalized_shape, mean, rstd, weight, bias, output_mask); + } + + // aten::nan_to_num(Tensor self, float? nan=None, float? posinf=None, float? neginf=None) -> Tensor + inline at::Tensor nan_to_num(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional nan=c10::nullopt, c10::optional posinf=c10::nullopt, c10::optional neginf=c10::nullopt) { + return at::_ops::nan_to_num::redispatch(dispatchKeySet, self, nan, posinf, neginf); + } + + // aten::nan_to_num_(Tensor(a!) self, float? nan=None, float? posinf=None, float? neginf=None) -> Tensor(a!) + inline at::Tensor & nan_to_num_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, c10::optional nan=c10::nullopt, c10::optional posinf=c10::nullopt, c10::optional neginf=c10::nullopt) { + return at::_ops::nan_to_num_::redispatch(dispatchKeySet, self, nan, posinf, neginf); + } + + // aten::nan_to_num.out(Tensor self, float? nan=None, float? posinf=None, float? neginf=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & nan_to_num_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::optional nan=c10::nullopt, c10::optional posinf=c10::nullopt, c10::optional neginf=c10::nullopt) { + return at::_ops::nan_to_num_out::redispatch(dispatchKeySet, self, nan, posinf, neginf, out); + } + + // aten::nan_to_num.out(Tensor self, float? nan=None, float? posinf=None, float? neginf=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & nan_to_num_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional nan, c10::optional posinf, c10::optional neginf, at::Tensor & out) { + return at::_ops::nan_to_num_out::redispatch(dispatchKeySet, self, nan, posinf, neginf, out); + } + + // aten::linear(Tensor input, Tensor weight, Tensor? bias=None) -> Tensor + inline at::Tensor linear(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias={}) { + return at::_ops::linear::redispatch(dispatchKeySet, input, weight, bias); + } + + // aten::linear_backward(Tensor self, Tensor grad_output, Tensor weight, bool[3] output_mask) -> (Tensor, Tensor, Tensor) + inline ::std::tuple linear_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & grad_output, const at::Tensor & weight, ::std::array output_mask) { + return at::_ops::linear_backward::redispatch(dispatchKeySet, self, grad_output, weight, output_mask); + } + + // aten::linear.out(Tensor input, Tensor weight, Tensor? bias=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linear_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias={}) { + return at::_ops::linear_out::redispatch(dispatchKeySet, input, weight, bias, out); + } + + // aten::linear.out(Tensor input, Tensor weight, Tensor? bias=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linear_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias, at::Tensor & out) { + return at::_ops::linear_out::redispatch(dispatchKeySet, input, weight, bias, out); + } + + // aten::mkldnn_linear(Tensor self, Tensor weight, Tensor? bias=None) -> Tensor + inline at::Tensor mkldnn_linear(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, const c10::optional & bias={}) { + return at::_ops::mkldnn_linear::redispatch(dispatchKeySet, self, weight, bias); + } + + // aten::mkldnn_linear_backward_input(int[] input_size, Tensor grad_output, Tensor weight) -> Tensor + inline at::Tensor mkldnn_linear_backward_input(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef input_size, const at::Tensor & grad_output, const at::Tensor & weight) { + return at::_ops::mkldnn_linear_backward_input::redispatch(dispatchKeySet, input_size, grad_output, weight); + } + + // aten::mkldnn_linear_backward_weights(Tensor grad_output, Tensor input, Tensor weight, bool bias_defined) -> (Tensor, Tensor) + inline ::std::tuple mkldnn_linear_backward_weights(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & input, const at::Tensor & weight, bool bias_defined) { + return at::_ops::mkldnn_linear_backward_weights::redispatch(dispatchKeySet, grad_output, input, weight, bias_defined); + } + + // aten::mkldnn_linear_backward(Tensor self, Tensor grad_output, Tensor weight, bool[3] output_mask) -> (Tensor, Tensor, Tensor) + inline ::std::tuple mkldnn_linear_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & grad_output, const at::Tensor & weight, ::std::array output_mask) { + return at::_ops::mkldnn_linear_backward::redispatch(dispatchKeySet, self, grad_output, weight, output_mask); + } + + // aten::_cslt_compress(Tensor input) -> Tensor + inline at::Tensor _cslt_compress(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input) { + return at::_ops::_cslt_compress::redispatch(dispatchKeySet, input); + } + + // aten::_cslt_sparse_mm(Tensor compressed_A, Tensor dense_B, Tensor? bias=None, Tensor? alpha=None, ScalarType? out_dtype=None, bool transpose_result=False, int alg_id=0) -> Tensor + inline at::Tensor _cslt_sparse_mm(c10::DispatchKeySet dispatchKeySet, const at::Tensor & compressed_A, const at::Tensor & dense_B, const c10::optional & bias={}, const c10::optional & alpha={}, c10::optional out_dtype=c10::nullopt, bool transpose_result=false, int64_t alg_id=0) { + return at::_ops::_cslt_sparse_mm::redispatch(dispatchKeySet, compressed_A, dense_B, bias, alpha, out_dtype, transpose_result, alg_id); + } + + // aten::_cslt_sparse_mm_search(Tensor compressed_A, Tensor dense_B, Tensor? bias=None, Tensor? alpha=None, ScalarType? out_dtype=None, bool transpose_result=False) -> int + inline int64_t _cslt_sparse_mm_search(c10::DispatchKeySet dispatchKeySet, const at::Tensor & compressed_A, const at::Tensor & dense_B, const c10::optional & bias={}, const c10::optional & alpha={}, c10::optional out_dtype=c10::nullopt, bool transpose_result=false) { + return at::_ops::_cslt_sparse_mm_search::redispatch(dispatchKeySet, compressed_A, dense_B, bias, alpha, out_dtype, transpose_result); + } + + // aten::_sparse_semi_structured_linear(Tensor input, Tensor weight, Tensor meta, *, Tensor? bias=None, str? activation=None, ScalarType? out_dtype=None) -> Tensor + inline at::Tensor _sparse_semi_structured_linear(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & weight, const at::Tensor & meta, const c10::optional & bias={}, c10::optional activation=c10::nullopt, c10::optional out_dtype=c10::nullopt) { + return at::_ops::_sparse_semi_structured_linear::redispatch(dispatchKeySet, input, weight, meta, bias, activation, out_dtype); + } + + // aten::_mixed_dtypes_linear(Tensor input, Tensor weight, Tensor scale, *, Tensor? bias=None, str? activation=None) -> Tensor + inline at::Tensor _mixed_dtypes_linear(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & weight, const at::Tensor & scale, const c10::optional & bias={}, c10::optional activation=c10::nullopt) { + return at::_ops::_mixed_dtypes_linear::redispatch(dispatchKeySet, input, weight, scale, bias, activation); + } + + // aten::fbgemm_linear_int8_weight_fp32_activation(Tensor input, Tensor weight, Tensor packed, Tensor col_offsets, Scalar weight_scale, Scalar weight_zero_point, Tensor bias) -> Tensor + inline at::Tensor fbgemm_linear_int8_weight_fp32_activation(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & weight, const at::Tensor & packed, const at::Tensor & col_offsets, const at::Scalar & weight_scale, const at::Scalar & weight_zero_point, const at::Tensor & bias) { + return at::_ops::fbgemm_linear_int8_weight_fp32_activation::redispatch(dispatchKeySet, input, weight, packed, col_offsets, weight_scale, weight_zero_point, bias); + } + + // aten::fbgemm_linear_int8_weight(Tensor input, Tensor weight, Tensor packed, Tensor col_offsets, Scalar weight_scale, Scalar weight_zero_point, Tensor bias) -> Tensor + inline at::Tensor fbgemm_linear_int8_weight(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & weight, const at::Tensor & packed, const at::Tensor & col_offsets, const at::Scalar & weight_scale, const at::Scalar & weight_zero_point, const at::Tensor & bias) { + return at::_ops::fbgemm_linear_int8_weight::redispatch(dispatchKeySet, input, weight, packed, col_offsets, weight_scale, weight_zero_point, bias); + } + + // aten::fbgemm_linear_quantize_weight(Tensor input) -> (Tensor, Tensor, float, int) + inline ::std::tuple fbgemm_linear_quantize_weight(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input) { + return at::_ops::fbgemm_linear_quantize_weight::redispatch(dispatchKeySet, input); + } + + // aten::fbgemm_pack_gemm_matrix_fp16(Tensor input) -> Tensor + inline at::Tensor fbgemm_pack_gemm_matrix_fp16(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input) { + return at::_ops::fbgemm_pack_gemm_matrix_fp16::redispatch(dispatchKeySet, input); + } + + // aten::fbgemm_linear_fp16_weight_fp32_activation(Tensor input, Tensor packed_weight, Tensor bias) -> Tensor + inline at::Tensor fbgemm_linear_fp16_weight_fp32_activation(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & packed_weight, const at::Tensor & bias) { + return at::_ops::fbgemm_linear_fp16_weight_fp32_activation::redispatch(dispatchKeySet, input, packed_weight, bias); + } + + // aten::fbgemm_linear_fp16_weight(Tensor input, Tensor packed_weight, Tensor bias) -> Tensor + inline at::Tensor fbgemm_linear_fp16_weight(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & packed_weight, const at::Tensor & bias) { + return at::_ops::fbgemm_linear_fp16_weight::redispatch(dispatchKeySet, input, packed_weight, bias); + } + + // aten::fbgemm_pack_quantized_matrix(Tensor input) -> Tensor + inline at::Tensor fbgemm_pack_quantized_matrix(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input) { + return at::_ops::fbgemm_pack_quantized_matrix::redispatch(dispatchKeySet, input); + } + + // aten::fbgemm_pack_quantized_matrix.KN(Tensor input, int K, int N) -> Tensor + inline at::Tensor fbgemm_pack_quantized_matrix(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, int64_t K, int64_t N) { + return at::_ops::fbgemm_pack_quantized_matrix_KN::redispatch(dispatchKeySet, input, K, N); + } + + // aten::ldexp.Tensor(Tensor self, Tensor other) -> Tensor + inline at::Tensor ldexp(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::ldexp_Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::ldexp_(Tensor(a!) self, Tensor other) -> Tensor(a!) + inline at::Tensor & ldexp_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & other) { + return at::_ops::ldexp_::redispatch(dispatchKeySet, self, other); + } + + // aten::ldexp.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & ldexp_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::ldexp_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::ldexp.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & ldexp_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::ldexp_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::linspace(Scalar start, Scalar end, int steps, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor linspace(c10::DispatchKeySet dispatchKeySet, const at::Scalar & start, const at::Scalar & end, int64_t steps, at::TensorOptions options={}) { + return at::_ops::linspace::redispatch(dispatchKeySet, start, end, steps, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::linspace(Scalar start, Scalar end, int steps, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor linspace(c10::DispatchKeySet dispatchKeySet, const at::Scalar & start, const at::Scalar & end, int64_t steps, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::linspace::redispatch(dispatchKeySet, start, end, steps, dtype, layout, device, pin_memory); + } + + // aten::linspace.Tensor_Tensor(Tensor start, Tensor end, int steps, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor linspace(c10::DispatchKeySet dispatchKeySet, const at::Tensor & start, const at::Tensor & end, int64_t steps, at::TensorOptions options={}) { + return at::_ops::linspace_Tensor_Tensor::redispatch(dispatchKeySet, start, end, steps, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::linspace.Tensor_Tensor(Tensor start, Tensor end, int steps, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor linspace(c10::DispatchKeySet dispatchKeySet, const at::Tensor & start, const at::Tensor & end, int64_t steps, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::linspace_Tensor_Tensor::redispatch(dispatchKeySet, start, end, steps, dtype, layout, device, pin_memory); + } + + // aten::linspace.Tensor_Scalar(Tensor start, Scalar end, int steps, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor linspace(c10::DispatchKeySet dispatchKeySet, const at::Tensor & start, const at::Scalar & end, int64_t steps, at::TensorOptions options={}) { + return at::_ops::linspace_Tensor_Scalar::redispatch(dispatchKeySet, start, end, steps, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::linspace.Tensor_Scalar(Tensor start, Scalar end, int steps, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor linspace(c10::DispatchKeySet dispatchKeySet, const at::Tensor & start, const at::Scalar & end, int64_t steps, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::linspace_Tensor_Scalar::redispatch(dispatchKeySet, start, end, steps, dtype, layout, device, pin_memory); + } + + // aten::linspace.Scalar_Tensor(Scalar start, Tensor end, int steps, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor linspace(c10::DispatchKeySet dispatchKeySet, const at::Scalar & start, const at::Tensor & end, int64_t steps, at::TensorOptions options={}) { + return at::_ops::linspace_Scalar_Tensor::redispatch(dispatchKeySet, start, end, steps, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::linspace.Scalar_Tensor(Scalar start, Tensor end, int steps, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor linspace(c10::DispatchKeySet dispatchKeySet, const at::Scalar & start, const at::Tensor & end, int64_t steps, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::linspace_Scalar_Tensor::redispatch(dispatchKeySet, start, end, steps, dtype, layout, device, pin_memory); + } + + // aten::linspace.out(Scalar start, Scalar end, int steps, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linspace_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Scalar & start, const at::Scalar & end, int64_t steps) { + return at::_ops::linspace_out::redispatch(dispatchKeySet, start, end, steps, out); + } + + // aten::linspace.out(Scalar start, Scalar end, int steps, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linspace_outf(c10::DispatchKeySet dispatchKeySet, const at::Scalar & start, const at::Scalar & end, int64_t steps, at::Tensor & out) { + return at::_ops::linspace_out::redispatch(dispatchKeySet, start, end, steps, out); + } + + // aten::linspace.Tensor_Tensor_out(Tensor start, Tensor end, int steps, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linspace_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & start, const at::Tensor & end, int64_t steps) { + return at::_ops::linspace_Tensor_Tensor_out::redispatch(dispatchKeySet, start, end, steps, out); + } + + // aten::linspace.Tensor_Tensor_out(Tensor start, Tensor end, int steps, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linspace_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & start, const at::Tensor & end, int64_t steps, at::Tensor & out) { + return at::_ops::linspace_Tensor_Tensor_out::redispatch(dispatchKeySet, start, end, steps, out); + } + + // aten::linspace.Tensor_Scalar_out(Tensor start, Scalar end, int steps, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linspace_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & start, const at::Scalar & end, int64_t steps) { + return at::_ops::linspace_Tensor_Scalar_out::redispatch(dispatchKeySet, start, end, steps, out); + } + + // aten::linspace.Tensor_Scalar_out(Tensor start, Scalar end, int steps, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linspace_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & start, const at::Scalar & end, int64_t steps, at::Tensor & out) { + return at::_ops::linspace_Tensor_Scalar_out::redispatch(dispatchKeySet, start, end, steps, out); + } + + // aten::linspace.Scalar_Tensor_out(Scalar start, Tensor end, int steps, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linspace_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Scalar & start, const at::Tensor & end, int64_t steps) { + return at::_ops::linspace_Scalar_Tensor_out::redispatch(dispatchKeySet, start, end, steps, out); + } + + // aten::linspace.Scalar_Tensor_out(Scalar start, Tensor end, int steps, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linspace_outf(c10::DispatchKeySet dispatchKeySet, const at::Scalar & start, const at::Tensor & end, int64_t steps, at::Tensor & out) { + return at::_ops::linspace_Scalar_Tensor_out::redispatch(dispatchKeySet, start, end, steps, out); + } + + // aten::log(Tensor self) -> Tensor + inline at::Tensor log(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::log::redispatch(dispatchKeySet, self); + } + + // aten::log_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & log_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::log_::redispatch(dispatchKeySet, self); + } + + // aten::log.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & log_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::log_out::redispatch(dispatchKeySet, self, out); + } + + // aten::log.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & log_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::log_out::redispatch(dispatchKeySet, self, out); + } + + // aten::log10(Tensor self) -> Tensor + inline at::Tensor log10(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::log10::redispatch(dispatchKeySet, self); + } + + // aten::log10_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & log10_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::log10_::redispatch(dispatchKeySet, self); + } + + // aten::log10.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & log10_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::log10_out::redispatch(dispatchKeySet, self, out); + } + + // aten::log10.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & log10_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::log10_out::redispatch(dispatchKeySet, self, out); + } + + // aten::log1p(Tensor self) -> Tensor + inline at::Tensor log1p(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::log1p::redispatch(dispatchKeySet, self); + } + + // aten::log1p_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & log1p_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::log1p_::redispatch(dispatchKeySet, self); + } + + // aten::log1p.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & log1p_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::log1p_out::redispatch(dispatchKeySet, self, out); + } + + // aten::log1p.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & log1p_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::log1p_out::redispatch(dispatchKeySet, self, out); + } + + // aten::log2(Tensor self) -> Tensor + inline at::Tensor log2(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::log2::redispatch(dispatchKeySet, self); + } + + // aten::log2_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & log2_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::log2_::redispatch(dispatchKeySet, self); + } + + // aten::log2.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & log2_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::log2_out::redispatch(dispatchKeySet, self, out); + } + + // aten::log2.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & log2_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::log2_out::redispatch(dispatchKeySet, self, out); + } + + // aten::logaddexp.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & logaddexp_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::logaddexp_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::logaddexp.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & logaddexp_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::logaddexp_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::logaddexp(Tensor self, Tensor other) -> Tensor + inline at::Tensor logaddexp(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::logaddexp::redispatch(dispatchKeySet, self, other); + } + + // aten::logaddexp2.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & logaddexp2_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::logaddexp2_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::logaddexp2.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & logaddexp2_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::logaddexp2_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::logaddexp2(Tensor self, Tensor other) -> Tensor + inline at::Tensor logaddexp2(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::logaddexp2::redispatch(dispatchKeySet, self, other); + } + + // aten::xlogy.Tensor(Tensor self, Tensor other) -> Tensor + inline at::Tensor xlogy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::xlogy_Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::xlogy.Scalar_Self(Scalar self, Tensor other) -> Tensor + inline at::Tensor xlogy(c10::DispatchKeySet dispatchKeySet, const at::Scalar & self, const at::Tensor & other) { + return at::_ops::xlogy_Scalar_Self::redispatch(dispatchKeySet, self, other); + } + + // aten::xlogy.Scalar_Other(Tensor self, Scalar other) -> Tensor + inline at::Tensor xlogy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::xlogy_Scalar_Other::redispatch(dispatchKeySet, self, other); + } + + // aten::xlogy_.Tensor(Tensor(a!) self, Tensor other) -> Tensor(a!) + inline at::Tensor & xlogy_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & other) { + return at::_ops::xlogy__Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::xlogy_.Scalar_Other(Tensor(a!) self, Scalar other) -> Tensor(a!) + inline at::Tensor & xlogy_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Scalar & other) { + return at::_ops::xlogy__Scalar_Other::redispatch(dispatchKeySet, self, other); + } + + // aten::xlogy.OutTensor(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & xlogy_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::xlogy_OutTensor::redispatch(dispatchKeySet, self, other, out); + } + + // aten::xlogy.OutTensor(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & xlogy_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::xlogy_OutTensor::redispatch(dispatchKeySet, self, other, out); + } + + // aten::xlogy.OutScalar_Self(Scalar self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & xlogy_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Scalar & self, const at::Tensor & other) { + return at::_ops::xlogy_OutScalar_Self::redispatch(dispatchKeySet, self, other, out); + } + + // aten::xlogy.OutScalar_Self(Scalar self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & xlogy_outf(c10::DispatchKeySet dispatchKeySet, const at::Scalar & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::xlogy_OutScalar_Self::redispatch(dispatchKeySet, self, other, out); + } + + // aten::xlogy.OutScalar_Other(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & xlogy_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::xlogy_OutScalar_Other::redispatch(dispatchKeySet, self, other, out); + } + + // aten::xlogy.OutScalar_Other(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & xlogy_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other, at::Tensor & out) { + return at::_ops::xlogy_OutScalar_Other::redispatch(dispatchKeySet, self, other, out); + } + + // aten::logspace(Scalar start, Scalar end, int steps, float base=10.0, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor logspace(c10::DispatchKeySet dispatchKeySet, const at::Scalar & start, const at::Scalar & end, int64_t steps, double base=10.0, at::TensorOptions options={}) { + return at::_ops::logspace::redispatch(dispatchKeySet, start, end, steps, base, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::logspace(Scalar start, Scalar end, int steps, float base=10.0, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor logspace(c10::DispatchKeySet dispatchKeySet, const at::Scalar & start, const at::Scalar & end, int64_t steps, double base, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::logspace::redispatch(dispatchKeySet, start, end, steps, base, dtype, layout, device, pin_memory); + } + + // aten::logspace.Tensor_Tensor(Tensor start, Tensor end, int steps, float base=10.0, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor logspace(c10::DispatchKeySet dispatchKeySet, const at::Tensor & start, const at::Tensor & end, int64_t steps, double base=10.0, at::TensorOptions options={}) { + return at::_ops::logspace_Tensor_Tensor::redispatch(dispatchKeySet, start, end, steps, base, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::logspace.Tensor_Tensor(Tensor start, Tensor end, int steps, float base=10.0, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor logspace(c10::DispatchKeySet dispatchKeySet, const at::Tensor & start, const at::Tensor & end, int64_t steps, double base, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::logspace_Tensor_Tensor::redispatch(dispatchKeySet, start, end, steps, base, dtype, layout, device, pin_memory); + } + + // aten::logspace.Tensor_Scalar(Tensor start, Scalar end, int steps, float base=10.0, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor logspace(c10::DispatchKeySet dispatchKeySet, const at::Tensor & start, const at::Scalar & end, int64_t steps, double base=10.0, at::TensorOptions options={}) { + return at::_ops::logspace_Tensor_Scalar::redispatch(dispatchKeySet, start, end, steps, base, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::logspace.Tensor_Scalar(Tensor start, Scalar end, int steps, float base=10.0, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor logspace(c10::DispatchKeySet dispatchKeySet, const at::Tensor & start, const at::Scalar & end, int64_t steps, double base, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::logspace_Tensor_Scalar::redispatch(dispatchKeySet, start, end, steps, base, dtype, layout, device, pin_memory); + } + + // aten::logspace.Scalar_Tensor(Scalar start, Tensor end, int steps, float base=10.0, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor logspace(c10::DispatchKeySet dispatchKeySet, const at::Scalar & start, const at::Tensor & end, int64_t steps, double base=10.0, at::TensorOptions options={}) { + return at::_ops::logspace_Scalar_Tensor::redispatch(dispatchKeySet, start, end, steps, base, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::logspace.Scalar_Tensor(Scalar start, Tensor end, int steps, float base=10.0, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor logspace(c10::DispatchKeySet dispatchKeySet, const at::Scalar & start, const at::Tensor & end, int64_t steps, double base, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::logspace_Scalar_Tensor::redispatch(dispatchKeySet, start, end, steps, base, dtype, layout, device, pin_memory); + } + + // aten::logspace.out(Scalar start, Scalar end, int steps, float base=10.0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & logspace_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Scalar & start, const at::Scalar & end, int64_t steps, double base=10.0) { + return at::_ops::logspace_out::redispatch(dispatchKeySet, start, end, steps, base, out); + } + + // aten::logspace.out(Scalar start, Scalar end, int steps, float base=10.0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & logspace_outf(c10::DispatchKeySet dispatchKeySet, const at::Scalar & start, const at::Scalar & end, int64_t steps, double base, at::Tensor & out) { + return at::_ops::logspace_out::redispatch(dispatchKeySet, start, end, steps, base, out); + } + + // aten::logspace.Tensor_Tensor_out(Tensor start, Tensor end, int steps, float base=10.0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & logspace_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & start, const at::Tensor & end, int64_t steps, double base=10.0) { + return at::_ops::logspace_Tensor_Tensor_out::redispatch(dispatchKeySet, start, end, steps, base, out); + } + + // aten::logspace.Tensor_Tensor_out(Tensor start, Tensor end, int steps, float base=10.0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & logspace_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & start, const at::Tensor & end, int64_t steps, double base, at::Tensor & out) { + return at::_ops::logspace_Tensor_Tensor_out::redispatch(dispatchKeySet, start, end, steps, base, out); + } + + // aten::logspace.Tensor_Scalar_out(Tensor start, Scalar end, int steps, float base=10.0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & logspace_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & start, const at::Scalar & end, int64_t steps, double base=10.0) { + return at::_ops::logspace_Tensor_Scalar_out::redispatch(dispatchKeySet, start, end, steps, base, out); + } + + // aten::logspace.Tensor_Scalar_out(Tensor start, Scalar end, int steps, float base=10.0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & logspace_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & start, const at::Scalar & end, int64_t steps, double base, at::Tensor & out) { + return at::_ops::logspace_Tensor_Scalar_out::redispatch(dispatchKeySet, start, end, steps, base, out); + } + + // aten::logspace.Scalar_Tensor_out(Scalar start, Tensor end, int steps, float base=10.0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & logspace_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Scalar & start, const at::Tensor & end, int64_t steps, double base=10.0) { + return at::_ops::logspace_Scalar_Tensor_out::redispatch(dispatchKeySet, start, end, steps, base, out); + } + + // aten::logspace.Scalar_Tensor_out(Scalar start, Tensor end, int steps, float base=10.0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & logspace_outf(c10::DispatchKeySet dispatchKeySet, const at::Scalar & start, const at::Tensor & end, int64_t steps, double base, at::Tensor & out) { + return at::_ops::logspace_Scalar_Tensor_out::redispatch(dispatchKeySet, start, end, steps, base, out); + } + + // aten::log_softmax.int(Tensor self, int dim, ScalarType? dtype=None) -> Tensor + inline at::Tensor log_softmax(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, c10::optional dtype=c10::nullopt) { + return at::_ops::log_softmax_int::redispatch(dispatchKeySet, self, dim, dtype); + } + + // aten::log_softmax.int_out(Tensor self, int dim, ScalarType? dtype=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & log_softmax_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t dim, c10::optional dtype=c10::nullopt) { + return at::_ops::log_softmax_int_out::redispatch(dispatchKeySet, self, dim, dtype, out); + } + + // aten::log_softmax.int_out(Tensor self, int dim, ScalarType? dtype=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & log_softmax_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, c10::optional dtype, at::Tensor & out) { + return at::_ops::log_softmax_int_out::redispatch(dispatchKeySet, self, dim, dtype, out); + } + + // aten::log_softmax.Dimname(Tensor self, Dimname dim, *, ScalarType? dtype=None) -> Tensor + inline at::Tensor log_softmax(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim, c10::optional dtype=c10::nullopt) { + return at::_ops::log_softmax_Dimname::redispatch(dispatchKeySet, self, dim, dtype); + } + + // aten::_log_softmax(Tensor self, int dim, bool half_to_float) -> Tensor + inline at::Tensor _log_softmax(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, bool half_to_float) { + return at::_ops::_log_softmax::redispatch(dispatchKeySet, self, dim, half_to_float); + } + + // aten::_log_softmax.out(Tensor self, int dim, bool half_to_float, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _log_softmax_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t dim, bool half_to_float) { + return at::_ops::_log_softmax_out::redispatch(dispatchKeySet, self, dim, half_to_float, out); + } + + // aten::_log_softmax.out(Tensor self, int dim, bool half_to_float, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _log_softmax_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, bool half_to_float, at::Tensor & out) { + return at::_ops::_log_softmax_out::redispatch(dispatchKeySet, self, dim, half_to_float, out); + } + + // aten::_log_softmax_backward_data(Tensor grad_output, Tensor output, int dim, ScalarType input_dtype) -> Tensor + inline at::Tensor _log_softmax_backward_data(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & output, int64_t dim, at::ScalarType input_dtype) { + return at::_ops::_log_softmax_backward_data::redispatch(dispatchKeySet, grad_output, output, dim, input_dtype); + } + + // aten::_log_softmax_backward_data.out(Tensor grad_output, Tensor output, int dim, ScalarType input_dtype, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _log_softmax_backward_data_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & grad_output, const at::Tensor & output, int64_t dim, at::ScalarType input_dtype) { + return at::_ops::_log_softmax_backward_data_out::redispatch(dispatchKeySet, grad_output, output, dim, input_dtype, out); + } + + // aten::_log_softmax_backward_data.out(Tensor grad_output, Tensor output, int dim, ScalarType input_dtype, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _log_softmax_backward_data_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & output, int64_t dim, at::ScalarType input_dtype, at::Tensor & out) { + return at::_ops::_log_softmax_backward_data_out::redispatch(dispatchKeySet, grad_output, output, dim, input_dtype, out); + } + + // aten::_logcumsumexp(Tensor self, int dim) -> Tensor + inline at::Tensor _logcumsumexp(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim) { + return at::_ops::_logcumsumexp::redispatch(dispatchKeySet, self, dim); + } + + // aten::_logcumsumexp.out(Tensor self, int dim, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _logcumsumexp_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t dim) { + return at::_ops::_logcumsumexp_out::redispatch(dispatchKeySet, self, dim, out); + } + + // aten::_logcumsumexp.out(Tensor self, int dim, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _logcumsumexp_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, at::Tensor & out) { + return at::_ops::_logcumsumexp_out::redispatch(dispatchKeySet, self, dim, out); + } + + // aten::logcumsumexp(Tensor self, int dim) -> Tensor + inline at::Tensor logcumsumexp(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim) { + return at::_ops::logcumsumexp::redispatch(dispatchKeySet, self, dim); + } + + // aten::logcumsumexp.out(Tensor self, int dim, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & logcumsumexp_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t dim) { + return at::_ops::logcumsumexp_out::redispatch(dispatchKeySet, self, dim, out); + } + + // aten::logcumsumexp.out(Tensor self, int dim, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & logcumsumexp_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, at::Tensor & out) { + return at::_ops::logcumsumexp_out::redispatch(dispatchKeySet, self, dim, out); + } + + // aten::logcumsumexp.dimname(Tensor self, Dimname dim) -> Tensor + inline at::Tensor logcumsumexp(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim) { + return at::_ops::logcumsumexp_dimname::redispatch(dispatchKeySet, self, dim); + } + + // aten::logcumsumexp.dimname_out(Tensor self, Dimname dim, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & logcumsumexp_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::Dimname dim) { + return at::_ops::logcumsumexp_dimname_out::redispatch(dispatchKeySet, self, dim, out); + } + + // aten::logcumsumexp.dimname_out(Tensor self, Dimname dim, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & logcumsumexp_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim, at::Tensor & out) { + return at::_ops::logcumsumexp_dimname_out::redispatch(dispatchKeySet, self, dim, out); + } + + // aten::logsumexp(Tensor self, int[1] dim, bool keepdim=False) -> Tensor + inline at::Tensor logsumexp(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef dim, bool keepdim=false) { + return at::_ops::logsumexp::redispatch(dispatchKeySet, self, dim, keepdim); + } + + // aten::logsumexp.out(Tensor self, int[1] dim, bool keepdim=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & logsumexp_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef dim, bool keepdim=false) { + return at::_ops::logsumexp_out::redispatch(dispatchKeySet, self, dim, keepdim, out); + } + + // aten::logsumexp.out(Tensor self, int[1] dim, bool keepdim=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & logsumexp_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef dim, bool keepdim, at::Tensor & out) { + return at::_ops::logsumexp_out::redispatch(dispatchKeySet, self, dim, keepdim, out); + } + + // aten::logsumexp.names(Tensor self, Dimname[1] dim, bool keepdim=False) -> Tensor + inline at::Tensor logsumexp(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::DimnameList dim, bool keepdim=false) { + return at::_ops::logsumexp_names::redispatch(dispatchKeySet, self, dim, keepdim); + } + + // aten::logsumexp.names_out(Tensor self, Dimname[1] dim, bool keepdim=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & logsumexp_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::DimnameList dim, bool keepdim=false) { + return at::_ops::logsumexp_names_out::redispatch(dispatchKeySet, self, dim, keepdim, out); + } + + // aten::logsumexp.names_out(Tensor self, Dimname[1] dim, bool keepdim=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & logsumexp_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::DimnameList dim, bool keepdim, at::Tensor & out) { + return at::_ops::logsumexp_names_out::redispatch(dispatchKeySet, self, dim, keepdim, out); + } + + // aten::margin_ranking_loss(Tensor input1, Tensor input2, Tensor target, float margin=0.0, int reduction=Mean) -> Tensor + inline at::Tensor margin_ranking_loss(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input1, const at::Tensor & input2, const at::Tensor & target, double margin=0.0, int64_t reduction=at::Reduction::Mean) { + return at::_ops::margin_ranking_loss::redispatch(dispatchKeySet, input1, input2, target, margin, reduction); + } + + // aten::matmul(Tensor self, Tensor other) -> Tensor + inline at::Tensor matmul(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::matmul::redispatch(dispatchKeySet, self, other); + } + + // aten::matmul_backward(Tensor grad, Tensor self, Tensor other, bool[2] mask) -> (Tensor, Tensor) + inline ::std::tuple matmul_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad, const at::Tensor & self, const at::Tensor & other, ::std::array mask) { + return at::_ops::matmul_backward::redispatch(dispatchKeySet, grad, self, other, mask); + } + + // aten::matmul.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & matmul_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::matmul_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::matmul.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & matmul_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::matmul_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::matrix_power(Tensor self, int n) -> Tensor + inline at::Tensor matrix_power(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t n) { + return at::_ops::matrix_power::redispatch(dispatchKeySet, self, n); + } + + // aten::matrix_power.out(Tensor self, int n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & matrix_power_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t n) { + return at::_ops::matrix_power_out::redispatch(dispatchKeySet, self, n, out); + } + + // aten::matrix_power.out(Tensor self, int n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & matrix_power_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t n, at::Tensor & out) { + return at::_ops::matrix_power_out::redispatch(dispatchKeySet, self, n, out); + } + + // aten::matrix_exp(Tensor self) -> Tensor + inline at::Tensor matrix_exp(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::matrix_exp::redispatch(dispatchKeySet, self); + } + + // aten::matrix_exp_backward(Tensor self, Tensor grad) -> Tensor + inline at::Tensor matrix_exp_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & grad) { + return at::_ops::matrix_exp_backward::redispatch(dispatchKeySet, self, grad); + } + + // aten::_aminmax(Tensor self) -> (Tensor, Tensor) + inline ::std::tuple _aminmax(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::_aminmax::redispatch(dispatchKeySet, self); + } + + // aten::_aminmax.dim(Tensor self, int dim, bool keepdim=False) -> (Tensor, Tensor) + inline ::std::tuple _aminmax(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, bool keepdim=false) { + return at::_ops::_aminmax_dim::redispatch(dispatchKeySet, self, dim, keepdim); + } + + // aten::aminmax(Tensor self, *, int? dim=None, bool keepdim=False) -> (Tensor min, Tensor max) + inline ::std::tuple aminmax(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional dim=c10::nullopt, bool keepdim=false) { + return at::_ops::aminmax::redispatch(dispatchKeySet, self, dim, keepdim); + } + + // aten::aminmax.out(Tensor self, *, int? dim=None, bool keepdim=False, Tensor(a!) min, Tensor(b!) max) -> (Tensor(a!) min, Tensor(b!) max) + inline ::std::tuple aminmax_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & min, at::Tensor & max, const at::Tensor & self, c10::optional dim=c10::nullopt, bool keepdim=false) { + return at::_ops::aminmax_out::redispatch(dispatchKeySet, self, dim, keepdim, min, max); + } + + // aten::aminmax.out(Tensor self, *, int? dim=None, bool keepdim=False, Tensor(a!) min, Tensor(b!) max) -> (Tensor(a!) min, Tensor(b!) max) + inline ::std::tuple aminmax_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional dim, bool keepdim, at::Tensor & min, at::Tensor & max) { + return at::_ops::aminmax_out::redispatch(dispatchKeySet, self, dim, keepdim, min, max); + } + + // aten::_compute_linear_combination(Tensor input, Tensor coefficients) -> Tensor + inline at::Tensor _compute_linear_combination(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & coefficients) { + return at::_ops::_compute_linear_combination::redispatch(dispatchKeySet, input, coefficients); + } + + // aten::_compute_linear_combination.out(Tensor input, Tensor coefficients, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _compute_linear_combination_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & input, const at::Tensor & coefficients) { + return at::_ops::_compute_linear_combination_out::redispatch(dispatchKeySet, input, coefficients, out); + } + + // aten::_compute_linear_combination.out(Tensor input, Tensor coefficients, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _compute_linear_combination_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & coefficients, at::Tensor & out) { + return at::_ops::_compute_linear_combination_out::redispatch(dispatchKeySet, input, coefficients, out); + } + + // aten::max.dim(Tensor self, int dim, bool keepdim=False) -> (Tensor values, Tensor indices) + inline ::std::tuple max(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, bool keepdim=false) { + return at::_ops::max_dim::redispatch(dispatchKeySet, self, dim, keepdim); + } + + // aten::max.dim_max(Tensor self, int dim, bool keepdim=False, *, Tensor(a!) max, Tensor(b!) max_values) -> (Tensor(a!) values, Tensor(b!) indices) + inline ::std::tuple max_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & max, at::Tensor & max_values, const at::Tensor & self, int64_t dim, bool keepdim=false) { + return at::_ops::max_dim_max::redispatch(dispatchKeySet, self, dim, keepdim, max, max_values); + } + + // aten::max.dim_max(Tensor self, int dim, bool keepdim=False, *, Tensor(a!) max, Tensor(b!) max_values) -> (Tensor(a!) values, Tensor(b!) indices) + inline ::std::tuple max_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, bool keepdim, at::Tensor & max, at::Tensor & max_values) { + return at::_ops::max_dim_max::redispatch(dispatchKeySet, self, dim, keepdim, max, max_values); + } + + // aten::max.names_dim(Tensor self, Dimname dim, bool keepdim=False) -> (Tensor values, Tensor indices) + inline ::std::tuple max(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim, bool keepdim=false) { + return at::_ops::max_names_dim::redispatch(dispatchKeySet, self, dim, keepdim); + } + + // aten::max.names_dim_max(Tensor self, Dimname dim, bool keepdim=False, *, Tensor(a!) max, Tensor(b!) max_values) -> (Tensor(a!) values, Tensor(b!) indices) + inline ::std::tuple max_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & max, at::Tensor & max_values, const at::Tensor & self, at::Dimname dim, bool keepdim=false) { + return at::_ops::max_names_dim_max::redispatch(dispatchKeySet, self, dim, keepdim, max, max_values); + } + + // aten::max.names_dim_max(Tensor self, Dimname dim, bool keepdim=False, *, Tensor(a!) max, Tensor(b!) max_values) -> (Tensor(a!) values, Tensor(b!) indices) + inline ::std::tuple max_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim, bool keepdim, at::Tensor & max, at::Tensor & max_values) { + return at::_ops::max_names_dim_max::redispatch(dispatchKeySet, self, dim, keepdim, max, max_values); + } + + // aten::value_selecting_reduction_backward(Tensor grad, int dim, Tensor indices, SymInt[] sizes, bool keepdim) -> Tensor + inline at::Tensor value_selecting_reduction_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad, int64_t dim, const at::Tensor & indices, at::IntArrayRef sizes, bool keepdim) { + return at::_ops::value_selecting_reduction_backward::redispatch(dispatchKeySet, grad, dim, indices, c10::fromIntArrayRefSlow(sizes), keepdim); + } + + // aten::value_selecting_reduction_backward(Tensor grad, int dim, Tensor indices, SymInt[] sizes, bool keepdim) -> Tensor + inline at::Tensor value_selecting_reduction_backward_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad, int64_t dim, const at::Tensor & indices, c10::SymIntArrayRef sizes, bool keepdim) { + return at::_ops::value_selecting_reduction_backward::redispatch(dispatchKeySet, grad, dim, indices, sizes, keepdim); + } + + // aten::amax(Tensor self, int[1] dim=[], bool keepdim=False) -> Tensor + inline at::Tensor amax(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef dim={}, bool keepdim=false) { + return at::_ops::amax::redispatch(dispatchKeySet, self, dim, keepdim); + } + + // aten::amax.out(Tensor self, int[1] dim=[], bool keepdim=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & amax_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef dim={}, bool keepdim=false) { + return at::_ops::amax_out::redispatch(dispatchKeySet, self, dim, keepdim, out); + } + + // aten::amax.out(Tensor self, int[1] dim=[], bool keepdim=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & amax_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef dim, bool keepdim, at::Tensor & out) { + return at::_ops::amax_out::redispatch(dispatchKeySet, self, dim, keepdim, out); + } + + // aten::max_pool1d_with_indices(Tensor self, int[1] kernel_size, int[1] stride=[], int[1] padding=0, int[1] dilation=1, bool ceil_mode=False) -> (Tensor, Tensor) + inline ::std::tuple max_pool1d_with_indices(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef stride={}, at::IntArrayRef padding=0, at::IntArrayRef dilation=1, bool ceil_mode=false) { + return at::_ops::max_pool1d_with_indices::redispatch(dispatchKeySet, self, kernel_size, stride, padding, dilation, ceil_mode); + } + + // aten::max_pool1d(Tensor self, int[1] kernel_size, int[1] stride=[], int[1] padding=0, int[1] dilation=1, bool ceil_mode=False) -> Tensor + inline at::Tensor max_pool1d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef stride={}, at::IntArrayRef padding=0, at::IntArrayRef dilation=1, bool ceil_mode=false) { + return at::_ops::max_pool1d::redispatch(dispatchKeySet, self, kernel_size, stride, padding, dilation, ceil_mode); + } + + // aten::max_pool2d(Tensor self, int[2] kernel_size, int[2] stride=[], int[2] padding=0, int[2] dilation=1, bool ceil_mode=False) -> Tensor + inline at::Tensor max_pool2d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef stride={}, at::IntArrayRef padding=0, at::IntArrayRef dilation=1, bool ceil_mode=false) { + return at::_ops::max_pool2d::redispatch(dispatchKeySet, self, kernel_size, stride, padding, dilation, ceil_mode); + } + + // aten::max_pool2d_backward(Tensor grad_output, Tensor self, int[2] kernel_size, int[2] stride=[], int[2] padding=0, int[2] dilation=1, bool ceil_mode=False) -> Tensor + inline at::Tensor max_pool2d_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef stride={}, at::IntArrayRef padding=0, at::IntArrayRef dilation=1, bool ceil_mode=false) { + return at::_ops::max_pool2d_backward::redispatch(dispatchKeySet, grad_output, self, kernel_size, stride, padding, dilation, ceil_mode); + } + + // aten::mkldnn_max_pool2d(Tensor self, int[2] kernel_size, int[2] stride=[], int[2] padding=0, int[2] dilation=1, bool ceil_mode=False) -> Tensor + inline at::Tensor mkldnn_max_pool2d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef stride={}, at::IntArrayRef padding=0, at::IntArrayRef dilation=1, bool ceil_mode=false) { + return at::_ops::mkldnn_max_pool2d::redispatch(dispatchKeySet, self, kernel_size, stride, padding, dilation, ceil_mode); + } + + // aten::mkldnn_max_pool2d_backward(Tensor grad_output, Tensor output, Tensor input, int[2] kernel_size, int[2] stride=[], int[2] padding=0, int[2] dilation=1, bool ceil_mode=False) -> Tensor + inline at::Tensor mkldnn_max_pool2d_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & output, const at::Tensor & input, at::IntArrayRef kernel_size, at::IntArrayRef stride={}, at::IntArrayRef padding=0, at::IntArrayRef dilation=1, bool ceil_mode=false) { + return at::_ops::mkldnn_max_pool2d_backward::redispatch(dispatchKeySet, grad_output, output, input, kernel_size, stride, padding, dilation, ceil_mode); + } + + // aten::mkldnn_max_pool3d(Tensor self, int[3] kernel_size, int[3] stride=[], int[3] padding=0, int[3] dilation=1, bool ceil_mode=False) -> Tensor + inline at::Tensor mkldnn_max_pool3d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef stride={}, at::IntArrayRef padding=0, at::IntArrayRef dilation=1, bool ceil_mode=false) { + return at::_ops::mkldnn_max_pool3d::redispatch(dispatchKeySet, self, kernel_size, stride, padding, dilation, ceil_mode); + } + + // aten::mkldnn_max_pool3d_backward(Tensor grad_output, Tensor output, Tensor input, int[3] kernel_size, int[3] stride=[], int[3] padding=0, int[3] dilation=1, bool ceil_mode=False) -> Tensor + inline at::Tensor mkldnn_max_pool3d_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & output, const at::Tensor & input, at::IntArrayRef kernel_size, at::IntArrayRef stride={}, at::IntArrayRef padding=0, at::IntArrayRef dilation=1, bool ceil_mode=false) { + return at::_ops::mkldnn_max_pool3d_backward::redispatch(dispatchKeySet, grad_output, output, input, kernel_size, stride, padding, dilation, ceil_mode); + } + + // aten::quantized_max_pool1d(Tensor self, int[1] kernel_size, int[1] stride=[], int[1] padding=0, int[1] dilation=1, bool ceil_mode=False) -> Tensor + inline at::Tensor quantized_max_pool1d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef stride={}, at::IntArrayRef padding=0, at::IntArrayRef dilation=1, bool ceil_mode=false) { + return at::_ops::quantized_max_pool1d::redispatch(dispatchKeySet, self, kernel_size, stride, padding, dilation, ceil_mode); + } + + // aten::quantized_max_pool2d(Tensor self, int[2] kernel_size, int[2] stride=[], int[2] padding=0, int[2] dilation=1, bool ceil_mode=False) -> Tensor + inline at::Tensor quantized_max_pool2d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef stride={}, at::IntArrayRef padding=0, at::IntArrayRef dilation=1, bool ceil_mode=false) { + return at::_ops::quantized_max_pool2d::redispatch(dispatchKeySet, self, kernel_size, stride, padding, dilation, ceil_mode); + } + + // aten::quantized_max_pool3d(Tensor self, int[3] kernel_size, int[3] stride=[], int[3] padding=0, int[3] dilation=1, bool ceil_mode=False) -> Tensor + inline at::Tensor quantized_max_pool3d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef stride={}, at::IntArrayRef padding=0, at::IntArrayRef dilation=1, bool ceil_mode=false) { + return at::_ops::quantized_max_pool3d::redispatch(dispatchKeySet, self, kernel_size, stride, padding, dilation, ceil_mode); + } + + // aten::max_pool3d(Tensor self, int[3] kernel_size, int[3] stride=[], int[3] padding=0, int[3] dilation=1, bool ceil_mode=False) -> Tensor + inline at::Tensor max_pool3d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef stride={}, at::IntArrayRef padding=0, at::IntArrayRef dilation=1, bool ceil_mode=false) { + return at::_ops::max_pool3d::redispatch(dispatchKeySet, self, kernel_size, stride, padding, dilation, ceil_mode); + } + + // aten::mean(Tensor self, *, ScalarType? dtype=None) -> Tensor + inline at::Tensor mean(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional dtype=c10::nullopt) { + return at::_ops::mean::redispatch(dispatchKeySet, self, dtype); + } + + // aten::mean.dim(Tensor self, int[1]? dim, bool keepdim=False, *, ScalarType? dtype=None) -> Tensor + inline at::Tensor mean(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalIntArrayRef dim, bool keepdim=false, c10::optional dtype=c10::nullopt) { + return at::_ops::mean_dim::redispatch(dispatchKeySet, self, dim, keepdim, dtype); + } + + // aten::mean.out(Tensor self, int[1]? dim, bool keepdim=False, *, ScalarType? dtype=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & mean_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::OptionalIntArrayRef dim, bool keepdim=false, c10::optional dtype=c10::nullopt) { + return at::_ops::mean_out::redispatch(dispatchKeySet, self, dim, keepdim, dtype, out); + } + + // aten::mean.out(Tensor self, int[1]? dim, bool keepdim=False, *, ScalarType? dtype=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & mean_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalIntArrayRef dim, bool keepdim, c10::optional dtype, at::Tensor & out) { + return at::_ops::mean_out::redispatch(dispatchKeySet, self, dim, keepdim, dtype, out); + } + + // aten::mean.names_dim(Tensor self, Dimname[1] dim, bool keepdim=False, *, ScalarType? dtype=None) -> Tensor + inline at::Tensor mean(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::DimnameList dim, bool keepdim=false, c10::optional dtype=c10::nullopt) { + return at::_ops::mean_names_dim::redispatch(dispatchKeySet, self, dim, keepdim, dtype); + } + + // aten::mean.names_out(Tensor self, Dimname[1] dim, bool keepdim=False, *, ScalarType? dtype=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & mean_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::DimnameList dim, bool keepdim=false, c10::optional dtype=c10::nullopt) { + return at::_ops::mean_names_out::redispatch(dispatchKeySet, self, dim, keepdim, dtype, out); + } + + // aten::mean.names_out(Tensor self, Dimname[1] dim, bool keepdim=False, *, ScalarType? dtype=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & mean_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::DimnameList dim, bool keepdim, c10::optional dtype, at::Tensor & out) { + return at::_ops::mean_names_out::redispatch(dispatchKeySet, self, dim, keepdim, dtype, out); + } + + // aten::nanmean(Tensor self, int[1]? dim=None, bool keepdim=False, *, ScalarType? dtype=None) -> Tensor + inline at::Tensor nanmean(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalIntArrayRef dim=c10::nullopt, bool keepdim=false, c10::optional dtype=c10::nullopt) { + return at::_ops::nanmean::redispatch(dispatchKeySet, self, dim, keepdim, dtype); + } + + // aten::nanmean.out(Tensor self, int[1]? dim=None, bool keepdim=False, *, ScalarType? dtype=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & nanmean_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::OptionalIntArrayRef dim=c10::nullopt, bool keepdim=false, c10::optional dtype=c10::nullopt) { + return at::_ops::nanmean_out::redispatch(dispatchKeySet, self, dim, keepdim, dtype, out); + } + + // aten::nanmean.out(Tensor self, int[1]? dim=None, bool keepdim=False, *, ScalarType? dtype=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & nanmean_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalIntArrayRef dim, bool keepdim, c10::optional dtype, at::Tensor & out) { + return at::_ops::nanmean_out::redispatch(dispatchKeySet, self, dim, keepdim, dtype, out); + } + + // aten::median(Tensor self) -> Tensor + inline at::Tensor median(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::median::redispatch(dispatchKeySet, self); + } + + // aten::median.dim(Tensor self, int dim, bool keepdim=False) -> (Tensor values, Tensor indices) + inline ::std::tuple median(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, bool keepdim=false) { + return at::_ops::median_dim::redispatch(dispatchKeySet, self, dim, keepdim); + } + + // aten::median.dim_values(Tensor self, int dim, bool keepdim=False, *, Tensor(a!) values, Tensor(b!) indices) -> (Tensor(a!) values, Tensor(b!) indices) + inline ::std::tuple median_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & values, at::Tensor & indices, const at::Tensor & self, int64_t dim, bool keepdim=false) { + return at::_ops::median_dim_values::redispatch(dispatchKeySet, self, dim, keepdim, values, indices); + } + + // aten::median.dim_values(Tensor self, int dim, bool keepdim=False, *, Tensor(a!) values, Tensor(b!) indices) -> (Tensor(a!) values, Tensor(b!) indices) + inline ::std::tuple median_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, bool keepdim, at::Tensor & values, at::Tensor & indices) { + return at::_ops::median_dim_values::redispatch(dispatchKeySet, self, dim, keepdim, values, indices); + } + + // aten::median.names_dim(Tensor self, Dimname dim, bool keepdim=False) -> (Tensor values, Tensor indices) + inline ::std::tuple median(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim, bool keepdim=false) { + return at::_ops::median_names_dim::redispatch(dispatchKeySet, self, dim, keepdim); + } + + // aten::median.names_dim_values(Tensor self, Dimname dim, bool keepdim=False, *, Tensor(a!) values, Tensor(b!) indices) -> (Tensor(a!) values, Tensor(b!) indices) + inline ::std::tuple median_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & values, at::Tensor & indices, const at::Tensor & self, at::Dimname dim, bool keepdim=false) { + return at::_ops::median_names_dim_values::redispatch(dispatchKeySet, self, dim, keepdim, values, indices); + } + + // aten::median.names_dim_values(Tensor self, Dimname dim, bool keepdim=False, *, Tensor(a!) values, Tensor(b!) indices) -> (Tensor(a!) values, Tensor(b!) indices) + inline ::std::tuple median_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim, bool keepdim, at::Tensor & values, at::Tensor & indices) { + return at::_ops::median_names_dim_values::redispatch(dispatchKeySet, self, dim, keepdim, values, indices); + } + + // aten::nanmedian(Tensor self) -> Tensor + inline at::Tensor nanmedian(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::nanmedian::redispatch(dispatchKeySet, self); + } + + // aten::nanmedian.dim(Tensor self, int dim, bool keepdim=False) -> (Tensor values, Tensor indices) + inline ::std::tuple nanmedian(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, bool keepdim=false) { + return at::_ops::nanmedian_dim::redispatch(dispatchKeySet, self, dim, keepdim); + } + + // aten::nanmedian.dim_values(Tensor self, int dim, bool keepdim=False, *, Tensor(a!) values, Tensor(b!) indices) -> (Tensor(a!) values, Tensor(b!) indices) + inline ::std::tuple nanmedian_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & values, at::Tensor & indices, const at::Tensor & self, int64_t dim, bool keepdim=false) { + return at::_ops::nanmedian_dim_values::redispatch(dispatchKeySet, self, dim, keepdim, values, indices); + } + + // aten::nanmedian.dim_values(Tensor self, int dim, bool keepdim=False, *, Tensor(a!) values, Tensor(b!) indices) -> (Tensor(a!) values, Tensor(b!) indices) + inline ::std::tuple nanmedian_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, bool keepdim, at::Tensor & values, at::Tensor & indices) { + return at::_ops::nanmedian_dim_values::redispatch(dispatchKeySet, self, dim, keepdim, values, indices); + } + + // aten::nanmedian.names_dim(Tensor self, Dimname dim, bool keepdim=False) -> (Tensor values, Tensor indices) + inline ::std::tuple nanmedian(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim, bool keepdim=false) { + return at::_ops::nanmedian_names_dim::redispatch(dispatchKeySet, self, dim, keepdim); + } + + // aten::nanmedian.names_dim_values(Tensor self, Dimname dim, bool keepdim=False, *, Tensor(a!) values, Tensor(b!) indices) -> (Tensor(a!) values, Tensor(b!) indices) + inline ::std::tuple nanmedian_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & values, at::Tensor & indices, const at::Tensor & self, at::Dimname dim, bool keepdim=false) { + return at::_ops::nanmedian_names_dim_values::redispatch(dispatchKeySet, self, dim, keepdim, values, indices); + } + + // aten::nanmedian.names_dim_values(Tensor self, Dimname dim, bool keepdim=False, *, Tensor(a!) values, Tensor(b!) indices) -> (Tensor(a!) values, Tensor(b!) indices) + inline ::std::tuple nanmedian_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim, bool keepdim, at::Tensor & values, at::Tensor & indices) { + return at::_ops::nanmedian_names_dim_values::redispatch(dispatchKeySet, self, dim, keepdim, values, indices); + } + + // aten::min.dim(Tensor self, int dim, bool keepdim=False) -> (Tensor values, Tensor indices) + inline ::std::tuple min(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, bool keepdim=false) { + return at::_ops::min_dim::redispatch(dispatchKeySet, self, dim, keepdim); + } + + // aten::min.dim_min(Tensor self, int dim, bool keepdim=False, *, Tensor(a!) min, Tensor(b!) min_indices) -> (Tensor(a!) values, Tensor(b!) indices) + inline ::std::tuple min_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & min, at::Tensor & min_indices, const at::Tensor & self, int64_t dim, bool keepdim=false) { + return at::_ops::min_dim_min::redispatch(dispatchKeySet, self, dim, keepdim, min, min_indices); + } + + // aten::min.dim_min(Tensor self, int dim, bool keepdim=False, *, Tensor(a!) min, Tensor(b!) min_indices) -> (Tensor(a!) values, Tensor(b!) indices) + inline ::std::tuple min_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, bool keepdim, at::Tensor & min, at::Tensor & min_indices) { + return at::_ops::min_dim_min::redispatch(dispatchKeySet, self, dim, keepdim, min, min_indices); + } + + // aten::min.names_dim(Tensor self, Dimname dim, bool keepdim=False) -> (Tensor values, Tensor indices) + inline ::std::tuple min(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim, bool keepdim=false) { + return at::_ops::min_names_dim::redispatch(dispatchKeySet, self, dim, keepdim); + } + + // aten::min.names_dim_min(Tensor self, Dimname dim, bool keepdim=False, *, Tensor(a!) min, Tensor(b!) min_indices) -> (Tensor(a!) values, Tensor(b!) indices) + inline ::std::tuple min_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & min, at::Tensor & min_indices, const at::Tensor & self, at::Dimname dim, bool keepdim=false) { + return at::_ops::min_names_dim_min::redispatch(dispatchKeySet, self, dim, keepdim, min, min_indices); + } + + // aten::min.names_dim_min(Tensor self, Dimname dim, bool keepdim=False, *, Tensor(a!) min, Tensor(b!) min_indices) -> (Tensor(a!) values, Tensor(b!) indices) + inline ::std::tuple min_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim, bool keepdim, at::Tensor & min, at::Tensor & min_indices) { + return at::_ops::min_names_dim_min::redispatch(dispatchKeySet, self, dim, keepdim, min, min_indices); + } + + // aten::amin(Tensor self, int[1] dim=[], bool keepdim=False) -> Tensor + inline at::Tensor amin(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef dim={}, bool keepdim=false) { + return at::_ops::amin::redispatch(dispatchKeySet, self, dim, keepdim); + } + + // aten::amin.out(Tensor self, int[1] dim=[], bool keepdim=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & amin_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef dim={}, bool keepdim=false) { + return at::_ops::amin_out::redispatch(dispatchKeySet, self, dim, keepdim, out); + } + + // aten::amin.out(Tensor self, int[1] dim=[], bool keepdim=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & amin_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef dim, bool keepdim, at::Tensor & out) { + return at::_ops::amin_out::redispatch(dispatchKeySet, self, dim, keepdim, out); + } + + // aten::_mps_convolution(Tensor self, Tensor weight, Tensor? bias, SymInt[] padding, SymInt[] stride, SymInt[] dilation, SymInt groups) -> Tensor + inline at::Tensor _mps_convolution(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, const c10::optional & bias, at::IntArrayRef padding, at::IntArrayRef stride, at::IntArrayRef dilation, int64_t groups) { + return at::_ops::_mps_convolution::redispatch(dispatchKeySet, self, weight, bias, c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(dilation), groups); + } + + // aten::_mps_convolution(Tensor self, Tensor weight, Tensor? bias, SymInt[] padding, SymInt[] stride, SymInt[] dilation, SymInt groups) -> Tensor + inline at::Tensor _mps_convolution_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, const c10::optional & bias, c10::SymIntArrayRef padding, c10::SymIntArrayRef stride, c10::SymIntArrayRef dilation, c10::SymInt groups) { + return at::_ops::_mps_convolution::redispatch(dispatchKeySet, self, weight, bias, padding, stride, dilation, groups); + } + + // aten::mps_convolution_backward(Tensor self, Tensor grad_output, Tensor weight, SymInt[] padding, SymInt[] stride, SymInt[] dilation, SymInt groups, bool[3] output_mask) -> (Tensor, Tensor, Tensor) + inline ::std::tuple mps_convolution_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & grad_output, const at::Tensor & weight, at::IntArrayRef padding, at::IntArrayRef stride, at::IntArrayRef dilation, int64_t groups, ::std::array output_mask) { + return at::_ops::mps_convolution_backward::redispatch(dispatchKeySet, self, grad_output, weight, c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(dilation), groups, output_mask); + } + + // aten::mps_convolution_backward(Tensor self, Tensor grad_output, Tensor weight, SymInt[] padding, SymInt[] stride, SymInt[] dilation, SymInt groups, bool[3] output_mask) -> (Tensor, Tensor, Tensor) + inline ::std::tuple mps_convolution_backward_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & grad_output, const at::Tensor & weight, c10::SymIntArrayRef padding, c10::SymIntArrayRef stride, c10::SymIntArrayRef dilation, c10::SymInt groups, ::std::array output_mask) { + return at::_ops::mps_convolution_backward::redispatch(dispatchKeySet, self, grad_output, weight, padding, stride, dilation, groups, output_mask); + } + + // aten::mkldnn_convolution(Tensor self, Tensor weight, Tensor? bias, SymInt[] padding, SymInt[] stride, SymInt[] dilation, SymInt groups) -> Tensor + inline at::Tensor mkldnn_convolution(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, const c10::optional & bias, at::IntArrayRef padding, at::IntArrayRef stride, at::IntArrayRef dilation, int64_t groups) { + return at::_ops::mkldnn_convolution::redispatch(dispatchKeySet, self, weight, bias, c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(dilation), groups); + } + + // aten::mkldnn_convolution(Tensor self, Tensor weight, Tensor? bias, SymInt[] padding, SymInt[] stride, SymInt[] dilation, SymInt groups) -> Tensor + inline at::Tensor mkldnn_convolution_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, const c10::optional & bias, c10::SymIntArrayRef padding, c10::SymIntArrayRef stride, c10::SymIntArrayRef dilation, c10::SymInt groups) { + return at::_ops::mkldnn_convolution::redispatch(dispatchKeySet, self, weight, bias, padding, stride, dilation, groups); + } + + // aten::mkldnn_rnn_layer(Tensor input, Tensor weight0, Tensor weight1, Tensor weight2, Tensor weight3, Tensor hx_, Tensor cx_, bool reverse, int[] batch_sizes, int mode, int hidden_size, int num_layers, bool has_biases, bool bidirectional, bool batch_first, bool train) -> (Tensor, Tensor, Tensor, Tensor) + inline ::std::tuple mkldnn_rnn_layer(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & weight0, const at::Tensor & weight1, const at::Tensor & weight2, const at::Tensor & weight3, const at::Tensor & hx_, const at::Tensor & cx_, bool reverse, at::IntArrayRef batch_sizes, int64_t mode, int64_t hidden_size, int64_t num_layers, bool has_biases, bool bidirectional, bool batch_first, bool train) { + return at::_ops::mkldnn_rnn_layer::redispatch(dispatchKeySet, input, weight0, weight1, weight2, weight3, hx_, cx_, reverse, batch_sizes, mode, hidden_size, num_layers, has_biases, bidirectional, batch_first, train); + } + + // aten::mkldnn_rnn_layer_backward(Tensor input, Tensor weight1, Tensor weight2, Tensor weight3, Tensor weight4, Tensor hx_, Tensor cx_tmp, Tensor output, Tensor hy_, Tensor cy_, Tensor? grad_output, Tensor? grad_hy, Tensor? grad_cy, bool reverse, int mode, int hidden_size, int num_layers, bool has_biases, bool train, bool bidirectional, int[] batch_sizes, bool batch_first, Tensor workspace) -> (Tensor, Tensor, Tensor, Tensor, Tensor, Tensor, Tensor) + inline ::std::tuple mkldnn_rnn_layer_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & weight1, const at::Tensor & weight2, const at::Tensor & weight3, const at::Tensor & weight4, const at::Tensor & hx_, const at::Tensor & cx_tmp, const at::Tensor & output, const at::Tensor & hy_, const at::Tensor & cy_, const c10::optional & grad_output, const c10::optional & grad_hy, const c10::optional & grad_cy, bool reverse, int64_t mode, int64_t hidden_size, int64_t num_layers, bool has_biases, bool train, bool bidirectional, at::IntArrayRef batch_sizes, bool batch_first, const at::Tensor & workspace) { + return at::_ops::mkldnn_rnn_layer_backward::redispatch(dispatchKeySet, input, weight1, weight2, weight3, weight4, hx_, cx_tmp, output, hy_, cy_, grad_output, grad_hy, grad_cy, reverse, mode, hidden_size, num_layers, has_biases, train, bidirectional, batch_sizes, batch_first, workspace); + } + + // aten::miopen_batch_norm(Tensor input, Tensor weight, Tensor? bias, Tensor? running_mean, Tensor? running_var, bool training, float exponential_average_factor, float epsilon) -> (Tensor, Tensor, Tensor) + inline ::std::tuple miopen_batch_norm(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias, const c10::optional & running_mean, const c10::optional & running_var, bool training, double exponential_average_factor, double epsilon) { + return at::_ops::miopen_batch_norm::redispatch(dispatchKeySet, input, weight, bias, running_mean, running_var, training, exponential_average_factor, epsilon); + } + + // aten::miopen_batch_norm_backward(Tensor input, Tensor grad_output, Tensor weight, Tensor? running_mean, Tensor? running_var, Tensor? save_mean, Tensor? save_var, float epsilon) -> (Tensor, Tensor, Tensor) + inline ::std::tuple miopen_batch_norm_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & grad_output, const at::Tensor & weight, const c10::optional & running_mean, const c10::optional & running_var, const c10::optional & save_mean, const c10::optional & save_var, double epsilon) { + return at::_ops::miopen_batch_norm_backward::redispatch(dispatchKeySet, input, grad_output, weight, running_mean, running_var, save_mean, save_var, epsilon); + } + + // aten::miopen_convolution(Tensor self, Tensor weight, Tensor? bias, SymInt[] padding, SymInt[] stride, SymInt[] dilation, SymInt groups, bool benchmark, bool deterministic) -> Tensor + inline at::Tensor miopen_convolution(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, const c10::optional & bias, at::IntArrayRef padding, at::IntArrayRef stride, at::IntArrayRef dilation, int64_t groups, bool benchmark, bool deterministic) { + return at::_ops::miopen_convolution::redispatch(dispatchKeySet, self, weight, bias, c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(dilation), groups, benchmark, deterministic); + } + + // aten::miopen_convolution(Tensor self, Tensor weight, Tensor? bias, SymInt[] padding, SymInt[] stride, SymInt[] dilation, SymInt groups, bool benchmark, bool deterministic) -> Tensor + inline at::Tensor miopen_convolution_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, const c10::optional & bias, c10::SymIntArrayRef padding, c10::SymIntArrayRef stride, c10::SymIntArrayRef dilation, c10::SymInt groups, bool benchmark, bool deterministic) { + return at::_ops::miopen_convolution::redispatch(dispatchKeySet, self, weight, bias, padding, stride, dilation, groups, benchmark, deterministic); + } + + // aten::miopen_convolution_transpose(Tensor self, Tensor weight, Tensor? bias, SymInt[] padding, SymInt[] output_padding, SymInt[] stride, SymInt[] dilation, SymInt groups, bool benchmark, bool deterministic) -> Tensor + inline at::Tensor miopen_convolution_transpose(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, const c10::optional & bias, at::IntArrayRef padding, at::IntArrayRef output_padding, at::IntArrayRef stride, at::IntArrayRef dilation, int64_t groups, bool benchmark, bool deterministic) { + return at::_ops::miopen_convolution_transpose::redispatch(dispatchKeySet, self, weight, bias, c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(output_padding), c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(dilation), groups, benchmark, deterministic); + } + + // aten::miopen_convolution_transpose(Tensor self, Tensor weight, Tensor? bias, SymInt[] padding, SymInt[] output_padding, SymInt[] stride, SymInt[] dilation, SymInt groups, bool benchmark, bool deterministic) -> Tensor + inline at::Tensor miopen_convolution_transpose_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, const c10::optional & bias, c10::SymIntArrayRef padding, c10::SymIntArrayRef output_padding, c10::SymIntArrayRef stride, c10::SymIntArrayRef dilation, c10::SymInt groups, bool benchmark, bool deterministic) { + return at::_ops::miopen_convolution_transpose::redispatch(dispatchKeySet, self, weight, bias, padding, output_padding, stride, dilation, groups, benchmark, deterministic); + } + + // aten::miopen_depthwise_convolution(Tensor self, Tensor weight, Tensor? bias, SymInt[] padding, SymInt[] stride, SymInt[] dilation, SymInt groups, bool benchmark, bool deterministic) -> Tensor + inline at::Tensor miopen_depthwise_convolution(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, const c10::optional & bias, at::IntArrayRef padding, at::IntArrayRef stride, at::IntArrayRef dilation, int64_t groups, bool benchmark, bool deterministic) { + return at::_ops::miopen_depthwise_convolution::redispatch(dispatchKeySet, self, weight, bias, c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(dilation), groups, benchmark, deterministic); + } + + // aten::miopen_depthwise_convolution(Tensor self, Tensor weight, Tensor? bias, SymInt[] padding, SymInt[] stride, SymInt[] dilation, SymInt groups, bool benchmark, bool deterministic) -> Tensor + inline at::Tensor miopen_depthwise_convolution_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, const c10::optional & bias, c10::SymIntArrayRef padding, c10::SymIntArrayRef stride, c10::SymIntArrayRef dilation, c10::SymInt groups, bool benchmark, bool deterministic) { + return at::_ops::miopen_depthwise_convolution::redispatch(dispatchKeySet, self, weight, bias, padding, stride, dilation, groups, benchmark, deterministic); + } + + // aten::miopen_convolution_relu(Tensor self, Tensor weight, Tensor? bias, SymInt[] stride, SymInt[] padding, SymInt[] dilation, SymInt groups) -> Tensor + inline at::Tensor miopen_convolution_relu(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, const c10::optional & bias, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, int64_t groups) { + return at::_ops::miopen_convolution_relu::redispatch(dispatchKeySet, self, weight, bias, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(dilation), groups); + } + + // aten::miopen_convolution_relu(Tensor self, Tensor weight, Tensor? bias, SymInt[] stride, SymInt[] padding, SymInt[] dilation, SymInt groups) -> Tensor + inline at::Tensor miopen_convolution_relu_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, const c10::optional & bias, c10::SymIntArrayRef stride, c10::SymIntArrayRef padding, c10::SymIntArrayRef dilation, c10::SymInt groups) { + return at::_ops::miopen_convolution_relu::redispatch(dispatchKeySet, self, weight, bias, stride, padding, dilation, groups); + } + + // aten::miopen_convolution_add_relu(Tensor self, Tensor weight, Tensor z, Scalar? alpha, Tensor? bias, SymInt[] stride, SymInt[] padding, SymInt[] dilation, SymInt groups) -> Tensor + inline at::Tensor miopen_convolution_add_relu(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, const at::Tensor & z, const c10::optional & alpha, const c10::optional & bias, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, int64_t groups) { + return at::_ops::miopen_convolution_add_relu::redispatch(dispatchKeySet, self, weight, z, alpha, bias, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(dilation), groups); + } + + // aten::miopen_convolution_add_relu(Tensor self, Tensor weight, Tensor z, Scalar? alpha, Tensor? bias, SymInt[] stride, SymInt[] padding, SymInt[] dilation, SymInt groups) -> Tensor + inline at::Tensor miopen_convolution_add_relu_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, const at::Tensor & z, const c10::optional & alpha, const c10::optional & bias, c10::SymIntArrayRef stride, c10::SymIntArrayRef padding, c10::SymIntArrayRef dilation, c10::SymInt groups) { + return at::_ops::miopen_convolution_add_relu::redispatch(dispatchKeySet, self, weight, z, alpha, bias, stride, padding, dilation, groups); + } + + // aten::miopen_rnn(Tensor input, Tensor[] weight, int weight_stride0, Tensor hx, Tensor? cx, int mode, int hidden_size, int num_layers, bool batch_first, float dropout, bool train, bool bidirectional, int[] batch_sizes, Tensor? dropout_state) -> (Tensor, Tensor, Tensor, Tensor, Tensor) + inline ::std::tuple miopen_rnn(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, at::TensorList weight, int64_t weight_stride0, const at::Tensor & hx, const c10::optional & cx, int64_t mode, int64_t hidden_size, int64_t num_layers, bool batch_first, double dropout, bool train, bool bidirectional, at::IntArrayRef batch_sizes, const c10::optional & dropout_state) { + return at::_ops::miopen_rnn::redispatch(dispatchKeySet, input, weight, weight_stride0, hx, cx, mode, hidden_size, num_layers, batch_first, dropout, train, bidirectional, batch_sizes, dropout_state); + } + + // aten::miopen_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, int hidden_size, int num_layers, bool batch_first, float dropout, bool train, bool bidirectional, int[] batch_sizes, Tensor? dropout_state, Tensor reserve, bool[4] output_mask) -> (Tensor, Tensor, Tensor, Tensor[]) + inline ::std::tuple> miopen_rnn_backward(c10::DispatchKeySet dispatchKeySet, 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 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::miopen_rnn_backward::redispatch(dispatchKeySet, input, weight, weight_stride0, weight_buf, hx, cx, output, grad_output, grad_hy, grad_cy, mode, hidden_size, num_layers, batch_first, dropout, train, bidirectional, batch_sizes, dropout_state, reserve, output_mask); + } + + // aten::mm(Tensor self, Tensor mat2) -> Tensor + inline at::Tensor mm(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & mat2) { + return at::_ops::mm::redispatch(dispatchKeySet, self, mat2); + } + + // aten::mm.out(Tensor self, Tensor mat2, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & mm_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & mat2) { + return at::_ops::mm_out::redispatch(dispatchKeySet, self, mat2, out); + } + + // aten::mm.out(Tensor self, Tensor mat2, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & mm_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & mat2, at::Tensor & out) { + return at::_ops::mm_out::redispatch(dispatchKeySet, self, mat2, out); + } + + // aten::_int_mm(Tensor self, Tensor mat2) -> Tensor + inline at::Tensor _int_mm(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & mat2) { + return at::_ops::_int_mm::redispatch(dispatchKeySet, self, mat2); + } + + // aten::_int_mm.out(Tensor self, Tensor mat2, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _int_mm_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & mat2) { + return at::_ops::_int_mm_out::redispatch(dispatchKeySet, self, mat2, out); + } + + // aten::_int_mm.out(Tensor self, Tensor mat2, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _int_mm_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & mat2, at::Tensor & out) { + return at::_ops::_int_mm_out::redispatch(dispatchKeySet, self, mat2, out); + } + + // aten::_convert_weight_to_int4pack(Tensor self, int innerKTiles) -> Tensor + inline at::Tensor _convert_weight_to_int4pack(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t innerKTiles) { + return at::_ops::_convert_weight_to_int4pack::redispatch(dispatchKeySet, self, innerKTiles); + } + + // aten::_weight_int4pack_mm(Tensor self, Tensor mat2, int qGroupSize, Tensor qScaleAndZeros) -> Tensor + inline at::Tensor _weight_int4pack_mm(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & mat2, int64_t qGroupSize, const at::Tensor & qScaleAndZeros) { + return at::_ops::_weight_int4pack_mm::redispatch(dispatchKeySet, self, mat2, qGroupSize, qScaleAndZeros); + } + + // aten::_weight_int8pack_mm(Tensor self, Tensor mat2, Tensor scales) -> Tensor + inline at::Tensor _weight_int8pack_mm(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & mat2, const at::Tensor & scales) { + return at::_ops::_weight_int8pack_mm::redispatch(dispatchKeySet, self, mat2, scales); + } + + // aten::_sparse_mm(Tensor sparse, Tensor dense) -> Tensor + inline at::Tensor _sparse_mm(c10::DispatchKeySet dispatchKeySet, const at::Tensor & sparse, const at::Tensor & dense) { + return at::_ops::_sparse_mm::redispatch(dispatchKeySet, sparse, dense); + } + + // aten::_sparse_mm.reduce(Tensor sparse, Tensor dense, str reduce) -> Tensor + inline at::Tensor _sparse_mm(c10::DispatchKeySet dispatchKeySet, const at::Tensor & sparse, const at::Tensor & dense, c10::string_view reduce) { + return at::_ops::_sparse_mm_reduce::redispatch(dispatchKeySet, sparse, dense, reduce); + } + + // aten::_sparse_sparse_matmul(Tensor self, Tensor other) -> Tensor + inline at::Tensor _sparse_sparse_matmul(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::_sparse_sparse_matmul::redispatch(dispatchKeySet, self, other); + } + + // aten::mode(Tensor self, int dim=-1, bool keepdim=False) -> (Tensor values, Tensor indices) + inline ::std::tuple mode(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim=-1, bool keepdim=false) { + return at::_ops::mode::redispatch(dispatchKeySet, self, dim, keepdim); + } + + // aten::mode.values(Tensor self, int dim=-1, bool keepdim=False, *, Tensor(a!) values, Tensor(b!) indices) -> (Tensor(a!) values, Tensor(b!) indices) + inline ::std::tuple mode_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & values, at::Tensor & indices, const at::Tensor & self, int64_t dim=-1, bool keepdim=false) { + return at::_ops::mode_values::redispatch(dispatchKeySet, self, dim, keepdim, values, indices); + } + + // aten::mode.values(Tensor self, int dim=-1, bool keepdim=False, *, Tensor(a!) values, Tensor(b!) indices) -> (Tensor(a!) values, Tensor(b!) indices) + inline ::std::tuple mode_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, bool keepdim, at::Tensor & values, at::Tensor & indices) { + return at::_ops::mode_values::redispatch(dispatchKeySet, self, dim, keepdim, values, indices); + } + + // aten::mode.dimname(Tensor self, Dimname dim, bool keepdim=False) -> (Tensor values, Tensor indices) + inline ::std::tuple mode(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim, bool keepdim=false) { + return at::_ops::mode_dimname::redispatch(dispatchKeySet, self, dim, keepdim); + } + + // aten::mode.dimname_out(Tensor self, Dimname dim, bool keepdim=False, *, Tensor(a!) values, Tensor(b!) indices) -> (Tensor(a!) values, Tensor(b!) indices) + inline ::std::tuple mode_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & values, at::Tensor & indices, const at::Tensor & self, at::Dimname dim, bool keepdim=false) { + return at::_ops::mode_dimname_out::redispatch(dispatchKeySet, self, dim, keepdim, values, indices); + } + + // aten::mode.dimname_out(Tensor self, Dimname dim, bool keepdim=False, *, Tensor(a!) values, Tensor(b!) indices) -> (Tensor(a!) values, Tensor(b!) indices) + inline ::std::tuple mode_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim, bool keepdim, at::Tensor & values, at::Tensor & indices) { + return at::_ops::mode_dimname_out::redispatch(dispatchKeySet, self, dim, keepdim, values, indices); + } + + // aten::mul.Tensor(Tensor self, Tensor other) -> Tensor + inline at::Tensor mul(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::mul_Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::mul_.Tensor(Tensor(a!) self, Tensor other) -> Tensor(a!) + inline at::Tensor & mul_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & other) { + return at::_ops::mul__Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::mul.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & mul_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::mul_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::mul.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & mul_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::mul_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::mul.Scalar(Tensor self, Scalar other) -> Tensor + inline at::Tensor mul(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::mul_Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::mul_.Scalar(Tensor(a!) self, Scalar other) -> Tensor(a!) + inline at::Tensor & mul_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Scalar & other) { + return at::_ops::mul__Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::multiply.Tensor(Tensor self, Tensor other) -> Tensor + inline at::Tensor multiply(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::multiply_Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::multiply_.Tensor(Tensor(a!) self, Tensor other) -> Tensor(a!) + inline at::Tensor & multiply_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & other) { + return at::_ops::multiply__Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::multiply.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & multiply_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::multiply_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::multiply.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & multiply_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::multiply_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::multiply.Scalar(Tensor self, Scalar other) -> Tensor + inline at::Tensor multiply(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::multiply_Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::multiply_.Scalar(Tensor(a!) self, Scalar other) -> Tensor(a!) + inline at::Tensor & multiply_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Scalar & other) { + return at::_ops::multiply__Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::mv(Tensor self, Tensor vec) -> Tensor + inline at::Tensor mv(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & vec) { + return at::_ops::mv::redispatch(dispatchKeySet, self, vec); + } + + // aten::mv.out(Tensor self, Tensor vec, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & mv_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & vec) { + return at::_ops::mv_out::redispatch(dispatchKeySet, self, vec, out); + } + + // aten::mv.out(Tensor self, Tensor vec, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & mv_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & vec, at::Tensor & out) { + return at::_ops::mv_out::redispatch(dispatchKeySet, self, vec, out); + } + + // aten::mvlgamma.out(Tensor self, int p, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & mvlgamma_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t p) { + return at::_ops::mvlgamma_out::redispatch(dispatchKeySet, self, p, out); + } + + // aten::mvlgamma.out(Tensor self, int p, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & mvlgamma_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t p, at::Tensor & out) { + return at::_ops::mvlgamma_out::redispatch(dispatchKeySet, self, p, out); + } + + // aten::mvlgamma(Tensor self, int p) -> Tensor + inline at::Tensor mvlgamma(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t p) { + return at::_ops::mvlgamma::redispatch(dispatchKeySet, self, p); + } + + // aten::mvlgamma_(Tensor(a!) self, int p) -> Tensor(a!) + inline at::Tensor & mvlgamma_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, int64_t p) { + return at::_ops::mvlgamma_::redispatch(dispatchKeySet, self, p); + } + + // aten::narrow_copy(Tensor self, int dim, SymInt start, SymInt length) -> Tensor + inline at::Tensor narrow_copy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, int64_t start, int64_t length) { + return at::_ops::narrow_copy::redispatch(dispatchKeySet, self, dim, start, length); + } + + // aten::narrow_copy(Tensor self, int dim, SymInt start, SymInt length) -> Tensor + inline at::Tensor narrow_copy_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, c10::SymInt start, c10::SymInt length) { + return at::_ops::narrow_copy::redispatch(dispatchKeySet, self, dim, start, length); + } + + // aten::narrow_copy.out(Tensor self, int dim, SymInt start, SymInt length, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & narrow_copy_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t dim, int64_t start, int64_t length) { + return at::_ops::narrow_copy_out::redispatch(dispatchKeySet, self, dim, start, length, out); + } + + // aten::narrow_copy.out(Tensor self, int dim, SymInt start, SymInt length, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & narrow_copy_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, int64_t start, int64_t length, at::Tensor & out) { + return at::_ops::narrow_copy_out::redispatch(dispatchKeySet, self, dim, start, length, out); + } + + // aten::narrow_copy.out(Tensor self, int dim, SymInt start, SymInt length, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & narrow_copy_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t dim, c10::SymInt start, c10::SymInt length) { + return at::_ops::narrow_copy_out::redispatch(dispatchKeySet, self, dim, start, length, out); + } + + // aten::narrow_copy.out(Tensor self, int dim, SymInt start, SymInt length, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & narrow_copy_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, c10::SymInt start, c10::SymInt length, at::Tensor & out) { + return at::_ops::narrow_copy_out::redispatch(dispatchKeySet, self, dim, start, length, out); + } + + // aten::narrow(Tensor(a) self, int dim, SymInt start, SymInt length) -> Tensor(a) + inline at::Tensor narrow(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, int64_t start, int64_t length) { + return at::_ops::narrow::redispatch(dispatchKeySet, self, dim, start, length); + } + + // aten::narrow(Tensor(a) self, int dim, SymInt start, SymInt length) -> Tensor(a) + inline at::Tensor narrow_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, c10::SymInt start, c10::SymInt length) { + return at::_ops::narrow::redispatch(dispatchKeySet, self, dim, start, length); + } + + // aten::narrow.Tensor(Tensor(a) self, int dim, Tensor start, SymInt length) -> Tensor(a) + inline at::Tensor narrow(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, const at::Tensor & start, int64_t length) { + return at::_ops::narrow_Tensor::redispatch(dispatchKeySet, self, dim, start, length); + } + + // aten::narrow.Tensor(Tensor(a) self, int dim, Tensor start, SymInt length) -> Tensor(a) + inline at::Tensor narrow_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, const at::Tensor & start, c10::SymInt length) { + return at::_ops::narrow_Tensor::redispatch(dispatchKeySet, self, dim, start, length); + } + + // aten::native_batch_norm(Tensor input, Tensor? weight, Tensor? bias, Tensor? running_mean, Tensor? running_var, bool training, float momentum, float eps) -> (Tensor, Tensor, Tensor) + inline ::std::tuple native_batch_norm(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const c10::optional & weight, const c10::optional & bias, const c10::optional & running_mean, const c10::optional & running_var, bool training, double momentum, double eps) { + return at::_ops::native_batch_norm::redispatch(dispatchKeySet, input, weight, bias, running_mean, running_var, training, momentum, eps); + } + + // aten::native_batch_norm.out(Tensor input, Tensor? weight, Tensor? bias, Tensor? running_mean, Tensor? running_var, bool training, float momentum, float eps, *, Tensor(a!) out, Tensor(b!) save_mean, Tensor(c!) save_invstd) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple native_batch_norm_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, at::Tensor & save_mean, at::Tensor & save_invstd, const at::Tensor & input, const c10::optional & weight, const c10::optional & bias, const c10::optional & running_mean, const c10::optional & running_var, bool training, double momentum, double eps) { + return at::_ops::native_batch_norm_out::redispatch(dispatchKeySet, input, weight, bias, running_mean, running_var, training, momentum, eps, out, save_mean, save_invstd); + } + + // aten::native_batch_norm.out(Tensor input, Tensor? weight, Tensor? bias, Tensor? running_mean, Tensor? running_var, bool training, float momentum, float eps, *, Tensor(a!) out, Tensor(b!) save_mean, Tensor(c!) save_invstd) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple native_batch_norm_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const c10::optional & weight, const c10::optional & bias, const c10::optional & running_mean, const c10::optional & running_var, bool training, double momentum, double eps, at::Tensor & out, at::Tensor & save_mean, at::Tensor & save_invstd) { + return at::_ops::native_batch_norm_out::redispatch(dispatchKeySet, input, weight, bias, running_mean, running_var, training, momentum, eps, out, save_mean, save_invstd); + } + + // aten::_native_batch_norm_legit(Tensor input, Tensor? weight, Tensor? bias, Tensor(a!) running_mean, Tensor(b!) running_var, bool training, float momentum, float eps) -> (Tensor, Tensor, Tensor) + inline ::std::tuple _native_batch_norm_legit(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const c10::optional & weight, const c10::optional & bias, at::Tensor & running_mean, at::Tensor & running_var, bool training, double momentum, double eps) { + return at::_ops::_native_batch_norm_legit::redispatch(dispatchKeySet, input, weight, bias, running_mean, running_var, training, momentum, eps); + } + + // aten::_native_batch_norm_legit_no_training(Tensor input, Tensor? weight, Tensor? bias, Tensor running_mean, Tensor running_var, float momentum, float eps) -> (Tensor, Tensor, Tensor) + inline ::std::tuple _native_batch_norm_legit_no_training(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const c10::optional & weight, const c10::optional & bias, const at::Tensor & running_mean, const at::Tensor & running_var, double momentum, double eps) { + return at::_ops::_native_batch_norm_legit_no_training::redispatch(dispatchKeySet, input, weight, bias, running_mean, running_var, momentum, eps); + } + + // aten::_native_batch_norm_legit.out(Tensor input, Tensor? weight, Tensor? bias, Tensor(a!) running_mean, Tensor(b!) running_var, bool training, float momentum, float eps, *, Tensor(d!) out, Tensor(e!) save_mean, Tensor(f!) save_invstd) -> (Tensor(d!), Tensor(e!), Tensor(f!)) + inline ::std::tuple _native_batch_norm_legit_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, at::Tensor & save_mean, at::Tensor & save_invstd, const at::Tensor & input, const c10::optional & weight, const c10::optional & bias, at::Tensor & running_mean, at::Tensor & running_var, bool training, double momentum, double eps) { + return at::_ops::_native_batch_norm_legit_out::redispatch(dispatchKeySet, input, weight, bias, running_mean, running_var, training, momentum, eps, out, save_mean, save_invstd); + } + + // aten::_native_batch_norm_legit.out(Tensor input, Tensor? weight, Tensor? bias, Tensor(a!) running_mean, Tensor(b!) running_var, bool training, float momentum, float eps, *, Tensor(d!) out, Tensor(e!) save_mean, Tensor(f!) save_invstd) -> (Tensor(d!), Tensor(e!), Tensor(f!)) + inline ::std::tuple _native_batch_norm_legit_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const c10::optional & weight, const c10::optional & bias, at::Tensor & running_mean, at::Tensor & running_var, bool training, double momentum, double eps, at::Tensor & out, at::Tensor & save_mean, at::Tensor & save_invstd) { + return at::_ops::_native_batch_norm_legit_out::redispatch(dispatchKeySet, input, weight, bias, running_mean, running_var, training, momentum, eps, out, save_mean, save_invstd); + } + + // aten::_native_batch_norm_legit.no_stats(Tensor input, Tensor? weight, Tensor? bias, bool training, float momentum, float eps) -> (Tensor, Tensor, Tensor) + inline ::std::tuple _native_batch_norm_legit(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const c10::optional & weight, const c10::optional & bias, bool training, double momentum, double eps) { + return at::_ops::_native_batch_norm_legit_no_stats::redispatch(dispatchKeySet, input, weight, bias, training, momentum, eps); + } + + // aten::_native_batch_norm_legit.no_stats_out(Tensor input, Tensor? weight, Tensor? bias, bool training, float momentum, float eps, *, Tensor(a!) out, Tensor(b!) save_mean, Tensor(c!) save_invstd) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple _native_batch_norm_legit_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, at::Tensor & save_mean, at::Tensor & save_invstd, const at::Tensor & input, const c10::optional & weight, const c10::optional & bias, bool training, double momentum, double eps) { + return at::_ops::_native_batch_norm_legit_no_stats_out::redispatch(dispatchKeySet, input, weight, bias, training, momentum, eps, out, save_mean, save_invstd); + } + + // aten::_native_batch_norm_legit.no_stats_out(Tensor input, Tensor? weight, Tensor? bias, bool training, float momentum, float eps, *, Tensor(a!) out, Tensor(b!) save_mean, Tensor(c!) save_invstd) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple _native_batch_norm_legit_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const c10::optional & weight, const c10::optional & bias, bool training, double momentum, double eps, at::Tensor & out, at::Tensor & save_mean, at::Tensor & save_invstd) { + return at::_ops::_native_batch_norm_legit_no_stats_out::redispatch(dispatchKeySet, input, weight, bias, training, momentum, eps, out, save_mean, save_invstd); + } + + // aten::batch_norm_stats(Tensor input, float eps) -> (Tensor, Tensor) + inline ::std::tuple batch_norm_stats(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, double eps) { + return at::_ops::batch_norm_stats::redispatch(dispatchKeySet, input, eps); + } + + // aten::batch_norm_elemt(Tensor input, Tensor? weight, Tensor? bias, Tensor mean, Tensor invstd, float eps) -> Tensor + inline at::Tensor batch_norm_elemt(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const c10::optional & weight, const c10::optional & bias, const at::Tensor & mean, const at::Tensor & invstd, double eps) { + return at::_ops::batch_norm_elemt::redispatch(dispatchKeySet, input, weight, bias, mean, invstd, eps); + } + + // aten::batch_norm_elemt.out(Tensor input, Tensor? weight, Tensor? bias, Tensor mean, Tensor invstd, float eps, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & batch_norm_elemt_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & input, const c10::optional & weight, const c10::optional & bias, const at::Tensor & mean, const at::Tensor & invstd, double eps) { + return at::_ops::batch_norm_elemt_out::redispatch(dispatchKeySet, input, weight, bias, mean, invstd, eps, out); + } + + // aten::batch_norm_elemt.out(Tensor input, Tensor? weight, Tensor? bias, Tensor mean, Tensor invstd, float eps, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & batch_norm_elemt_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const c10::optional & weight, const c10::optional & bias, const at::Tensor & mean, const at::Tensor & invstd, double eps, at::Tensor & out) { + return at::_ops::batch_norm_elemt_out::redispatch(dispatchKeySet, input, weight, bias, mean, invstd, eps, out); + } + + // aten::batch_norm_gather_stats(Tensor input, Tensor mean, Tensor invstd, Tensor? running_mean, Tensor? running_var, float momentum, float eps, int count) -> (Tensor, Tensor) + inline ::std::tuple batch_norm_gather_stats(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & mean, const at::Tensor & invstd, const c10::optional & running_mean, const c10::optional & running_var, double momentum, double eps, int64_t count) { + return at::_ops::batch_norm_gather_stats::redispatch(dispatchKeySet, input, mean, invstd, running_mean, running_var, momentum, eps, count); + } + + // aten::batch_norm_gather_stats_with_counts(Tensor input, Tensor mean, Tensor invstd, Tensor? running_mean, Tensor? running_var, float momentum, float eps, Tensor counts) -> (Tensor, Tensor) + inline ::std::tuple batch_norm_gather_stats_with_counts(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & mean, const at::Tensor & invstd, const c10::optional & running_mean, const c10::optional & running_var, double momentum, double eps, const at::Tensor & counts) { + return at::_ops::batch_norm_gather_stats_with_counts::redispatch(dispatchKeySet, input, mean, invstd, running_mean, running_var, momentum, eps, counts); + } + + // aten::native_batch_norm_backward(Tensor grad_out, Tensor input, Tensor? weight, Tensor? running_mean, Tensor? running_var, Tensor? save_mean, Tensor? save_invstd, bool train, float eps, bool[3] output_mask) -> (Tensor, Tensor, Tensor) + inline ::std::tuple native_batch_norm_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_out, const at::Tensor & input, const c10::optional & weight, const c10::optional & running_mean, const c10::optional & running_var, const c10::optional & save_mean, const c10::optional & save_invstd, bool train, double eps, ::std::array output_mask) { + return at::_ops::native_batch_norm_backward::redispatch(dispatchKeySet, grad_out, input, weight, running_mean, running_var, save_mean, save_invstd, train, eps, output_mask); + } + + // aten::batch_norm_backward_reduce(Tensor grad_out, Tensor input, Tensor mean, Tensor invstd, Tensor? weight, bool input_g, bool weight_g, bool bias_g) -> (Tensor, Tensor, Tensor, Tensor) + inline ::std::tuple batch_norm_backward_reduce(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_out, const at::Tensor & input, const at::Tensor & mean, const at::Tensor & invstd, const c10::optional & weight, bool input_g, bool weight_g, bool bias_g) { + return at::_ops::batch_norm_backward_reduce::redispatch(dispatchKeySet, grad_out, input, mean, invstd, weight, input_g, weight_g, bias_g); + } + + // aten::batch_norm_backward_elemt(Tensor grad_out, Tensor input, Tensor mean, Tensor invstd, Tensor? weight, Tensor sum_dy, Tensor sum_dy_xmu, Tensor count) -> Tensor + inline at::Tensor batch_norm_backward_elemt(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_out, const at::Tensor & input, const at::Tensor & mean, const at::Tensor & invstd, const c10::optional & weight, const at::Tensor & sum_dy, const at::Tensor & sum_dy_xmu, const at::Tensor & count) { + return at::_ops::batch_norm_backward_elemt::redispatch(dispatchKeySet, grad_out, input, mean, invstd, weight, sum_dy, sum_dy_xmu, count); + } + + // aten::batch_norm_update_stats(Tensor input, Tensor? running_mean, Tensor? running_var, float momentum) -> (Tensor, Tensor) + inline ::std::tuple batch_norm_update_stats(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const c10::optional & running_mean, const c10::optional & running_var, double momentum) { + return at::_ops::batch_norm_update_stats::redispatch(dispatchKeySet, input, running_mean, running_var, momentum); + } + + // aten::is_vulkan_available() -> bool + inline bool is_vulkan_available(c10::DispatchKeySet dispatchKeySet) { + return at::_ops::is_vulkan_available::redispatch(dispatchKeySet); + } + + // aten::_nnpack_available() -> bool + inline bool _nnpack_available(c10::DispatchKeySet dispatchKeySet) { + return at::_ops::_nnpack_available::redispatch(dispatchKeySet); + } + + // aten::_nnpack_spatial_convolution(Tensor input, Tensor weight, Tensor? bias, SymInt[2] padding, SymInt[2] stride=1) -> Tensor + inline at::Tensor _nnpack_spatial_convolution(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias, at::IntArrayRef padding, at::IntArrayRef stride=1) { + return at::_ops::_nnpack_spatial_convolution::redispatch(dispatchKeySet, input, weight, bias, c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(stride)); + } + + // aten::_nnpack_spatial_convolution(Tensor input, Tensor weight, Tensor? bias, SymInt[2] padding, SymInt[2] stride=1) -> Tensor + inline at::Tensor _nnpack_spatial_convolution_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias, c10::SymIntArrayRef padding, c10::SymIntArrayRef stride=c10::SymInt(1)) { + return at::_ops::_nnpack_spatial_convolution::redispatch(dispatchKeySet, input, weight, bias, padding, stride); + } + + // aten::ones.names(int[] size, *, Dimname[]? names, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor ones(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, c10::optional names, at::TensorOptions options={}) { + return at::_ops::ones_names::redispatch(dispatchKeySet, size, names, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::ones.names(int[] size, *, Dimname[]? names, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor ones(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, c10::optional names, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::ones_names::redispatch(dispatchKeySet, size, names, dtype, layout, device, pin_memory); + } + + // aten::ones(SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor ones(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, at::TensorOptions options={}) { + return at::_ops::ones::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::ones(SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor ones(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::ones::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), dtype, layout, device, pin_memory); + } + + // aten::ones(SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor ones_symint(c10::DispatchKeySet dispatchKeySet, c10::SymIntArrayRef size, at::TensorOptions options={}) { + return at::_ops::ones::redispatch(dispatchKeySet, size, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::ones(SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor ones_symint(c10::DispatchKeySet dispatchKeySet, c10::SymIntArrayRef size, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::ones::redispatch(dispatchKeySet, size, dtype, layout, device, pin_memory); + } + + // aten::ones.out(SymInt[] size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & ones_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, at::IntArrayRef size) { + return at::_ops::ones_out::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), out); + } + + // aten::ones.out(SymInt[] size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & ones_outf(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, at::Tensor & out) { + return at::_ops::ones_out::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), out); + } + + // aten::ones.out(SymInt[] size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & ones_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, c10::SymIntArrayRef size) { + return at::_ops::ones_out::redispatch(dispatchKeySet, size, out); + } + + // aten::ones.out(SymInt[] size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & ones_symint_outf(c10::DispatchKeySet dispatchKeySet, c10::SymIntArrayRef size, at::Tensor & out) { + return at::_ops::ones_out::redispatch(dispatchKeySet, size, out); + } + + // aten::ones_like(Tensor self, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, MemoryFormat? memory_format=None) -> Tensor + inline at::Tensor ones_like(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::TensorOptions options={}, c10::optional memory_format=c10::nullopt) { + return at::_ops::ones_like::redispatch(dispatchKeySet, self, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt(), c10::impl::check_tensor_options_and_extract_memory_format(options, memory_format)); + } + + // aten::ones_like(Tensor self, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, MemoryFormat? memory_format=None) -> Tensor + inline at::Tensor ones_like(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory, c10::optional memory_format) { + return at::_ops::ones_like::redispatch(dispatchKeySet, self, dtype, layout, device, pin_memory, memory_format); + } + + // aten::pairwise_distance(Tensor x1, Tensor x2, float p=2, float eps=1e-06, bool keepdim=False) -> Tensor + inline at::Tensor pairwise_distance(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x1, const at::Tensor & x2, double p=2, double eps=1e-06, bool keepdim=false) { + return at::_ops::pairwise_distance::redispatch(dispatchKeySet, x1, x2, p, eps, keepdim); + } + + // aten::cdist(Tensor x1, Tensor x2, float p=2, int? compute_mode=None) -> Tensor + inline at::Tensor cdist(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x1, const at::Tensor & x2, double p=2, c10::optional compute_mode=c10::nullopt) { + return at::_ops::cdist::redispatch(dispatchKeySet, x1, x2, p, compute_mode); + } + + // aten::_euclidean_dist(Tensor x1, Tensor x2) -> Tensor + inline at::Tensor _euclidean_dist(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x1, const at::Tensor & x2) { + return at::_ops::_euclidean_dist::redispatch(dispatchKeySet, x1, x2); + } + + // aten::_cdist_forward(Tensor x1, Tensor x2, float p, int? compute_mode) -> Tensor + inline at::Tensor _cdist_forward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x1, const at::Tensor & x2, double p, c10::optional compute_mode) { + return at::_ops::_cdist_forward::redispatch(dispatchKeySet, x1, x2, p, compute_mode); + } + + // aten::_cdist_backward(Tensor grad, Tensor x1, Tensor x2, float p, Tensor cdist) -> Tensor + inline at::Tensor _cdist_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad, const at::Tensor & x1, const at::Tensor & x2, double p, const at::Tensor & cdist) { + return at::_ops::_cdist_backward::redispatch(dispatchKeySet, grad, x1, x2, p, cdist); + } + + // aten::pdist(Tensor self, float p=2) -> Tensor + inline at::Tensor pdist(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, double p=2) { + return at::_ops::pdist::redispatch(dispatchKeySet, self, p); + } + + // aten::_pdist_forward(Tensor self, float p=2) -> Tensor + inline at::Tensor _pdist_forward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, double p=2) { + return at::_ops::_pdist_forward::redispatch(dispatchKeySet, self, p); + } + + // aten::_pdist_backward(Tensor grad, Tensor self, float p, Tensor pdist) -> Tensor + inline at::Tensor _pdist_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad, const at::Tensor & self, double p, const at::Tensor & pdist) { + return at::_ops::_pdist_backward::redispatch(dispatchKeySet, grad, self, p, pdist); + } + + // aten::cosine_similarity(Tensor x1, Tensor x2, int dim=1, float eps=1e-08) -> Tensor + inline at::Tensor cosine_similarity(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x1, const at::Tensor & x2, int64_t dim=1, double eps=1e-08) { + return at::_ops::cosine_similarity::redispatch(dispatchKeySet, x1, x2, dim, eps); + } + + // aten::permute(Tensor(a) self, int[] dims) -> Tensor(a) + inline at::Tensor permute(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef dims) { + return at::_ops::permute::redispatch(dispatchKeySet, self, dims); + } + + // aten::movedim.intlist(Tensor(a) self, int[] source, int[] destination) -> Tensor(a) + inline at::Tensor movedim(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef source, at::IntArrayRef destination) { + return at::_ops::movedim_intlist::redispatch(dispatchKeySet, self, source, destination); + } + + // aten::movedim.int(Tensor(a) self, int source, int destination) -> Tensor(a) + inline at::Tensor movedim(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t source, int64_t destination) { + return at::_ops::movedim_int::redispatch(dispatchKeySet, self, source, destination); + } + + // aten::moveaxis.intlist(Tensor(a) self, int[] source, int[] destination) -> Tensor(a) + inline at::Tensor moveaxis(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef source, at::IntArrayRef destination) { + return at::_ops::moveaxis_intlist::redispatch(dispatchKeySet, self, source, destination); + } + + // aten::moveaxis.int(Tensor(a) self, int source, int destination) -> Tensor(a) + inline at::Tensor moveaxis(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t source, int64_t destination) { + return at::_ops::moveaxis_int::redispatch(dispatchKeySet, self, source, destination); + } + + // aten::numpy_T(Tensor(a) self) -> Tensor(a) + inline at::Tensor numpy_T(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::numpy_T::redispatch(dispatchKeySet, self); + } + + // aten::matrix_H(Tensor(a) self) -> Tensor(a) + inline at::Tensor matrix_H(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::matrix_H::redispatch(dispatchKeySet, self); + } + + // aten::mT(Tensor(a) self) -> Tensor(a) + inline at::Tensor mT(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::mT::redispatch(dispatchKeySet, self); + } + + // aten::mH(Tensor(a) self) -> Tensor(a) + inline at::Tensor mH(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::mH::redispatch(dispatchKeySet, self); + } + + // aten::adjoint(Tensor(a) self) -> Tensor(a) + inline at::Tensor adjoint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::adjoint::redispatch(dispatchKeySet, self); + } + + // aten::pixel_shuffle(Tensor self, int upscale_factor) -> Tensor + inline at::Tensor pixel_shuffle(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t upscale_factor) { + return at::_ops::pixel_shuffle::redispatch(dispatchKeySet, self, upscale_factor); + } + + // aten::pixel_unshuffle(Tensor self, int downscale_factor) -> Tensor + inline at::Tensor pixel_unshuffle(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t downscale_factor) { + return at::_ops::pixel_unshuffle::redispatch(dispatchKeySet, self, downscale_factor); + } + + // aten::channel_shuffle(Tensor self, SymInt groups) -> Tensor + inline at::Tensor channel_shuffle(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t groups) { + return at::_ops::channel_shuffle::redispatch(dispatchKeySet, self, groups); + } + + // aten::channel_shuffle(Tensor self, SymInt groups) -> Tensor + inline at::Tensor channel_shuffle_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymInt groups) { + return at::_ops::channel_shuffle::redispatch(dispatchKeySet, self, groups); + } + + // aten::native_channel_shuffle(Tensor self, SymInt groups) -> Tensor + inline at::Tensor native_channel_shuffle(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t groups) { + return at::_ops::native_channel_shuffle::redispatch(dispatchKeySet, self, groups); + } + + // aten::native_channel_shuffle(Tensor self, SymInt groups) -> Tensor + inline at::Tensor native_channel_shuffle_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymInt groups) { + return at::_ops::native_channel_shuffle::redispatch(dispatchKeySet, self, groups); + } + + // aten::is_pinned(Tensor self, Device? device=None) -> bool + inline bool is_pinned(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional device=c10::nullopt) { + return at::_ops::is_pinned::redispatch(dispatchKeySet, self, device); + } + + // aten::pin_memory(Tensor(a) self, Device? device=None) -> Tensor(a) + inline at::Tensor pin_memory(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional device=c10::nullopt) { + return at::_ops::pin_memory::redispatch(dispatchKeySet, self, device); + } + + // aten::_pin_memory(Tensor self, Device? device=None) -> Tensor + inline at::Tensor _pin_memory(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional device=c10::nullopt) { + return at::_ops::_pin_memory::redispatch(dispatchKeySet, self, device); + } + + // aten::pinverse(Tensor self, float rcond=1e-15) -> Tensor + inline at::Tensor pinverse(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, double rcond=1e-15) { + return at::_ops::pinverse::redispatch(dispatchKeySet, self, rcond); + } + + // aten::poisson_nll_loss(Tensor input, Tensor target, bool log_input, bool full, float eps, int reduction) -> Tensor + inline at::Tensor poisson_nll_loss(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & target, bool log_input, bool full, double eps, int64_t reduction) { + return at::_ops::poisson_nll_loss::redispatch(dispatchKeySet, input, target, log_input, full, eps, reduction); + } + + // aten::rad2deg(Tensor self) -> Tensor + inline at::Tensor rad2deg(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::rad2deg::redispatch(dispatchKeySet, self); + } + + // aten::rad2deg_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & rad2deg_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::rad2deg_::redispatch(dispatchKeySet, self); + } + + // aten::rad2deg.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & rad2deg_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::rad2deg_out::redispatch(dispatchKeySet, self, out); + } + + // aten::rad2deg.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & rad2deg_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::rad2deg_out::redispatch(dispatchKeySet, self, out); + } + + // aten::deg2rad(Tensor self) -> Tensor + inline at::Tensor deg2rad(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::deg2rad::redispatch(dispatchKeySet, self); + } + + // aten::deg2rad_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & deg2rad_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::deg2rad_::redispatch(dispatchKeySet, self); + } + + // aten::deg2rad.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & deg2rad_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::deg2rad_out::redispatch(dispatchKeySet, self, out); + } + + // aten::deg2rad.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & deg2rad_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::deg2rad_out::redispatch(dispatchKeySet, self, out); + } + + // aten::scalar_tensor(Scalar s, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor scalar_tensor(c10::DispatchKeySet dispatchKeySet, const at::Scalar & s, at::TensorOptions options={}) { + return at::_ops::scalar_tensor::redispatch(dispatchKeySet, s, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::scalar_tensor(Scalar s, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor scalar_tensor(c10::DispatchKeySet dispatchKeySet, const at::Scalar & s, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::scalar_tensor::redispatch(dispatchKeySet, s, dtype, layout, device, pin_memory); + } + + // aten::rand.names(SymInt[] size, *, Dimname[]? names, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor rand(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, c10::optional names, at::TensorOptions options={}) { + return at::_ops::rand_names::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), names, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::rand.names(SymInt[] size, *, Dimname[]? names, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor rand(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, c10::optional names, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::rand_names::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), names, dtype, layout, device, pin_memory); + } + + // aten::rand.names(SymInt[] size, *, Dimname[]? names, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor rand_symint(c10::DispatchKeySet dispatchKeySet, c10::SymIntArrayRef size, c10::optional names, at::TensorOptions options={}) { + return at::_ops::rand_names::redispatch(dispatchKeySet, size, names, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::rand.names(SymInt[] size, *, Dimname[]? names, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor rand_symint(c10::DispatchKeySet dispatchKeySet, c10::SymIntArrayRef size, c10::optional names, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::rand_names::redispatch(dispatchKeySet, size, names, dtype, layout, device, pin_memory); + } + + // aten::rand.generator_with_names(SymInt[] size, *, Generator? generator, Dimname[]? names, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor rand(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, c10::optional generator, c10::optional names, at::TensorOptions options={}) { + return at::_ops::rand_generator_with_names::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), generator, names, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::rand.generator_with_names(SymInt[] size, *, Generator? generator, Dimname[]? names, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor rand(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, c10::optional generator, c10::optional names, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::rand_generator_with_names::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), generator, names, dtype, layout, device, pin_memory); + } + + // aten::rand.generator_with_names(SymInt[] size, *, Generator? generator, Dimname[]? names, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor rand_symint(c10::DispatchKeySet dispatchKeySet, c10::SymIntArrayRef size, c10::optional generator, c10::optional names, at::TensorOptions options={}) { + return at::_ops::rand_generator_with_names::redispatch(dispatchKeySet, size, generator, names, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::rand.generator_with_names(SymInt[] size, *, Generator? generator, Dimname[]? names, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor rand_symint(c10::DispatchKeySet dispatchKeySet, c10::SymIntArrayRef size, c10::optional generator, c10::optional names, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::rand_generator_with_names::redispatch(dispatchKeySet, size, generator, names, dtype, layout, device, pin_memory); + } + + // aten::rand(SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor rand(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, at::TensorOptions options={}) { + return at::_ops::rand::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::rand(SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor rand(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::rand::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), dtype, layout, device, pin_memory); + } + + // aten::rand(SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor rand_symint(c10::DispatchKeySet dispatchKeySet, c10::SymIntArrayRef size, at::TensorOptions options={}) { + return at::_ops::rand::redispatch(dispatchKeySet, size, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::rand(SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor rand_symint(c10::DispatchKeySet dispatchKeySet, c10::SymIntArrayRef size, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::rand::redispatch(dispatchKeySet, size, dtype, layout, device, pin_memory); + } + + // aten::rand.generator(SymInt[] size, *, Generator? generator, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor rand(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, c10::optional generator, at::TensorOptions options={}) { + return at::_ops::rand_generator::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), generator, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::rand.generator(SymInt[] size, *, Generator? generator, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor rand(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, c10::optional generator, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::rand_generator::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), generator, dtype, layout, device, pin_memory); + } + + // aten::rand.generator(SymInt[] size, *, Generator? generator, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor rand_symint(c10::DispatchKeySet dispatchKeySet, c10::SymIntArrayRef size, c10::optional generator, at::TensorOptions options={}) { + return at::_ops::rand_generator::redispatch(dispatchKeySet, size, generator, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::rand.generator(SymInt[] size, *, Generator? generator, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor rand_symint(c10::DispatchKeySet dispatchKeySet, c10::SymIntArrayRef size, c10::optional generator, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::rand_generator::redispatch(dispatchKeySet, size, generator, dtype, layout, device, pin_memory); + } + + // aten::rand.out(SymInt[] size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & rand_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, at::IntArrayRef size) { + return at::_ops::rand_out::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), out); + } + + // aten::rand.out(SymInt[] size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & rand_outf(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, at::Tensor & out) { + return at::_ops::rand_out::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), out); + } + + // aten::rand.out(SymInt[] size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & rand_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, c10::SymIntArrayRef size) { + return at::_ops::rand_out::redispatch(dispatchKeySet, size, out); + } + + // aten::rand.out(SymInt[] size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & rand_symint_outf(c10::DispatchKeySet dispatchKeySet, c10::SymIntArrayRef size, at::Tensor & out) { + return at::_ops::rand_out::redispatch(dispatchKeySet, size, out); + } + + // aten::rand.generator_out(SymInt[] size, *, Generator? generator, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & rand_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, at::IntArrayRef size, c10::optional generator) { + return at::_ops::rand_generator_out::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), generator, out); + } + + // aten::rand.generator_out(SymInt[] size, *, Generator? generator, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & rand_outf(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, c10::optional generator, at::Tensor & out) { + return at::_ops::rand_generator_out::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), generator, out); + } + + // aten::rand.generator_out(SymInt[] size, *, Generator? generator, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & rand_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, c10::SymIntArrayRef size, c10::optional generator) { + return at::_ops::rand_generator_out::redispatch(dispatchKeySet, size, generator, out); + } + + // aten::rand.generator_out(SymInt[] size, *, Generator? generator, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & rand_symint_outf(c10::DispatchKeySet dispatchKeySet, c10::SymIntArrayRef size, c10::optional generator, at::Tensor & out) { + return at::_ops::rand_generator_out::redispatch(dispatchKeySet, size, generator, out); + } + + // aten::rand_like(Tensor self, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, MemoryFormat? memory_format=None) -> Tensor + inline at::Tensor rand_like(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::TensorOptions options={}, c10::optional memory_format=c10::nullopt) { + return at::_ops::rand_like::redispatch(dispatchKeySet, self, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt(), c10::impl::check_tensor_options_and_extract_memory_format(options, memory_format)); + } + + // aten::rand_like(Tensor self, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, MemoryFormat? memory_format=None) -> Tensor + inline at::Tensor rand_like(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory, c10::optional memory_format) { + return at::_ops::rand_like::redispatch(dispatchKeySet, self, dtype, layout, device, pin_memory, memory_format); + } + + // aten::randint(SymInt high, SymInt[] size, *, ScalarType? dtype=long, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor randint(c10::DispatchKeySet dispatchKeySet, int64_t high, at::IntArrayRef size, at::TensorOptions options=at::kLong) { + return at::_ops::randint::redispatch(dispatchKeySet, high, c10::fromIntArrayRefSlow(size), c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::randint(SymInt high, SymInt[] size, *, ScalarType? dtype=long, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor randint(c10::DispatchKeySet dispatchKeySet, int64_t high, at::IntArrayRef size, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::randint::redispatch(dispatchKeySet, high, c10::fromIntArrayRefSlow(size), dtype, layout, device, pin_memory); + } + + // aten::randint(SymInt high, SymInt[] size, *, ScalarType? dtype=long, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor randint_symint(c10::DispatchKeySet dispatchKeySet, c10::SymInt high, c10::SymIntArrayRef size, at::TensorOptions options=at::kLong) { + return at::_ops::randint::redispatch(dispatchKeySet, high, size, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::randint(SymInt high, SymInt[] size, *, ScalarType? dtype=long, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor randint_symint(c10::DispatchKeySet dispatchKeySet, c10::SymInt high, c10::SymIntArrayRef size, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::randint::redispatch(dispatchKeySet, high, size, dtype, layout, device, pin_memory); + } + + // aten::randint.generator(SymInt high, SymInt[] size, *, Generator? generator, ScalarType? dtype=long, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor randint(c10::DispatchKeySet dispatchKeySet, int64_t high, at::IntArrayRef size, c10::optional generator, at::TensorOptions options=at::kLong) { + return at::_ops::randint_generator::redispatch(dispatchKeySet, high, c10::fromIntArrayRefSlow(size), generator, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::randint.generator(SymInt high, SymInt[] size, *, Generator? generator, ScalarType? dtype=long, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor randint(c10::DispatchKeySet dispatchKeySet, int64_t high, at::IntArrayRef size, c10::optional generator, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::randint_generator::redispatch(dispatchKeySet, high, c10::fromIntArrayRefSlow(size), generator, dtype, layout, device, pin_memory); + } + + // aten::randint.generator(SymInt high, SymInt[] size, *, Generator? generator, ScalarType? dtype=long, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor randint_symint(c10::DispatchKeySet dispatchKeySet, c10::SymInt high, c10::SymIntArrayRef size, c10::optional generator, at::TensorOptions options=at::kLong) { + return at::_ops::randint_generator::redispatch(dispatchKeySet, high, size, generator, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::randint.generator(SymInt high, SymInt[] size, *, Generator? generator, ScalarType? dtype=long, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor randint_symint(c10::DispatchKeySet dispatchKeySet, c10::SymInt high, c10::SymIntArrayRef size, c10::optional generator, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::randint_generator::redispatch(dispatchKeySet, high, size, generator, dtype, layout, device, pin_memory); + } + + // aten::randint.low(SymInt low, SymInt high, SymInt[] size, *, ScalarType? dtype=long, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor randint(c10::DispatchKeySet dispatchKeySet, int64_t low, int64_t high, at::IntArrayRef size, at::TensorOptions options=at::kLong) { + return at::_ops::randint_low::redispatch(dispatchKeySet, low, high, c10::fromIntArrayRefSlow(size), c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::randint.low(SymInt low, SymInt high, SymInt[] size, *, ScalarType? dtype=long, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor randint(c10::DispatchKeySet dispatchKeySet, int64_t low, int64_t high, at::IntArrayRef size, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::randint_low::redispatch(dispatchKeySet, low, high, c10::fromIntArrayRefSlow(size), dtype, layout, device, pin_memory); + } + + // aten::randint.low(SymInt low, SymInt high, SymInt[] size, *, ScalarType? dtype=long, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor randint_symint(c10::DispatchKeySet dispatchKeySet, c10::SymInt low, c10::SymInt high, c10::SymIntArrayRef size, at::TensorOptions options=at::kLong) { + return at::_ops::randint_low::redispatch(dispatchKeySet, low, high, size, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::randint.low(SymInt low, SymInt high, SymInt[] size, *, ScalarType? dtype=long, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor randint_symint(c10::DispatchKeySet dispatchKeySet, c10::SymInt low, c10::SymInt high, c10::SymIntArrayRef size, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::randint_low::redispatch(dispatchKeySet, low, high, size, dtype, layout, device, pin_memory); + } + + // aten::randint.low_generator(SymInt low, SymInt high, SymInt[] size, *, Generator? generator, ScalarType? dtype=long, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor randint(c10::DispatchKeySet dispatchKeySet, int64_t low, int64_t high, at::IntArrayRef size, c10::optional generator, at::TensorOptions options=at::kLong) { + return at::_ops::randint_low_generator::redispatch(dispatchKeySet, low, high, c10::fromIntArrayRefSlow(size), generator, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::randint.low_generator(SymInt low, SymInt high, SymInt[] size, *, Generator? generator, ScalarType? dtype=long, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor randint(c10::DispatchKeySet dispatchKeySet, int64_t low, int64_t high, at::IntArrayRef size, c10::optional generator, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::randint_low_generator::redispatch(dispatchKeySet, low, high, c10::fromIntArrayRefSlow(size), generator, dtype, layout, device, pin_memory); + } + + // aten::randint.low_generator(SymInt low, SymInt high, SymInt[] size, *, Generator? generator, ScalarType? dtype=long, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor randint_symint(c10::DispatchKeySet dispatchKeySet, c10::SymInt low, c10::SymInt high, c10::SymIntArrayRef size, c10::optional generator, at::TensorOptions options=at::kLong) { + return at::_ops::randint_low_generator::redispatch(dispatchKeySet, low, high, size, generator, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::randint.low_generator(SymInt low, SymInt high, SymInt[] size, *, Generator? generator, ScalarType? dtype=long, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor randint_symint(c10::DispatchKeySet dispatchKeySet, c10::SymInt low, c10::SymInt high, c10::SymIntArrayRef size, c10::optional generator, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::randint_low_generator::redispatch(dispatchKeySet, low, high, size, generator, dtype, layout, device, pin_memory); + } + + // aten::randint.out(SymInt high, SymInt[] size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & randint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, int64_t high, at::IntArrayRef size) { + return at::_ops::randint_out::redispatch(dispatchKeySet, high, c10::fromIntArrayRefSlow(size), out); + } + + // aten::randint.out(SymInt high, SymInt[] size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & randint_outf(c10::DispatchKeySet dispatchKeySet, int64_t high, at::IntArrayRef size, at::Tensor & out) { + return at::_ops::randint_out::redispatch(dispatchKeySet, high, c10::fromIntArrayRefSlow(size), out); + } + + // aten::randint.out(SymInt high, SymInt[] size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & randint_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, c10::SymInt high, c10::SymIntArrayRef size) { + return at::_ops::randint_out::redispatch(dispatchKeySet, high, size, out); + } + + // aten::randint.out(SymInt high, SymInt[] size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & randint_symint_outf(c10::DispatchKeySet dispatchKeySet, c10::SymInt high, c10::SymIntArrayRef size, at::Tensor & out) { + return at::_ops::randint_out::redispatch(dispatchKeySet, high, size, out); + } + + // aten::randint.generator_out(SymInt high, SymInt[] size, *, Generator? generator, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & randint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, int64_t high, at::IntArrayRef size, c10::optional generator) { + return at::_ops::randint_generator_out::redispatch(dispatchKeySet, high, c10::fromIntArrayRefSlow(size), generator, out); + } + + // aten::randint.generator_out(SymInt high, SymInt[] size, *, Generator? generator, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & randint_outf(c10::DispatchKeySet dispatchKeySet, int64_t high, at::IntArrayRef size, c10::optional generator, at::Tensor & out) { + return at::_ops::randint_generator_out::redispatch(dispatchKeySet, high, c10::fromIntArrayRefSlow(size), generator, out); + } + + // aten::randint.generator_out(SymInt high, SymInt[] size, *, Generator? generator, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & randint_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, c10::SymInt high, c10::SymIntArrayRef size, c10::optional generator) { + return at::_ops::randint_generator_out::redispatch(dispatchKeySet, high, size, generator, out); + } + + // aten::randint.generator_out(SymInt high, SymInt[] size, *, Generator? generator, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & randint_symint_outf(c10::DispatchKeySet dispatchKeySet, c10::SymInt high, c10::SymIntArrayRef size, c10::optional generator, at::Tensor & out) { + return at::_ops::randint_generator_out::redispatch(dispatchKeySet, high, size, generator, out); + } + + // aten::randint.low_out(SymInt low, SymInt high, SymInt[] size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & randint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, int64_t low, int64_t high, at::IntArrayRef size) { + return at::_ops::randint_low_out::redispatch(dispatchKeySet, low, high, c10::fromIntArrayRefSlow(size), out); + } + + // aten::randint.low_out(SymInt low, SymInt high, SymInt[] size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & randint_outf(c10::DispatchKeySet dispatchKeySet, int64_t low, int64_t high, at::IntArrayRef size, at::Tensor & out) { + return at::_ops::randint_low_out::redispatch(dispatchKeySet, low, high, c10::fromIntArrayRefSlow(size), out); + } + + // aten::randint.low_out(SymInt low, SymInt high, SymInt[] size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & randint_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, c10::SymInt low, c10::SymInt high, c10::SymIntArrayRef size) { + return at::_ops::randint_low_out::redispatch(dispatchKeySet, low, high, size, out); + } + + // aten::randint.low_out(SymInt low, SymInt high, SymInt[] size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & randint_symint_outf(c10::DispatchKeySet dispatchKeySet, c10::SymInt low, c10::SymInt high, c10::SymIntArrayRef size, at::Tensor & out) { + return at::_ops::randint_low_out::redispatch(dispatchKeySet, low, high, size, out); + } + + // aten::randint.low_generator_out(SymInt low, SymInt high, SymInt[] size, *, Generator? generator, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & randint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, int64_t low, int64_t high, at::IntArrayRef size, c10::optional generator) { + return at::_ops::randint_low_generator_out::redispatch(dispatchKeySet, low, high, c10::fromIntArrayRefSlow(size), generator, out); + } + + // aten::randint.low_generator_out(SymInt low, SymInt high, SymInt[] size, *, Generator? generator, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & randint_outf(c10::DispatchKeySet dispatchKeySet, int64_t low, int64_t high, at::IntArrayRef size, c10::optional generator, at::Tensor & out) { + return at::_ops::randint_low_generator_out::redispatch(dispatchKeySet, low, high, c10::fromIntArrayRefSlow(size), generator, out); + } + + // aten::randint.low_generator_out(SymInt low, SymInt high, SymInt[] size, *, Generator? generator, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & randint_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, c10::SymInt low, c10::SymInt high, c10::SymIntArrayRef size, c10::optional generator) { + return at::_ops::randint_low_generator_out::redispatch(dispatchKeySet, low, high, size, generator, out); + } + + // aten::randint.low_generator_out(SymInt low, SymInt high, SymInt[] size, *, Generator? generator, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & randint_symint_outf(c10::DispatchKeySet dispatchKeySet, c10::SymInt low, c10::SymInt high, c10::SymIntArrayRef size, c10::optional generator, at::Tensor & out) { + return at::_ops::randint_low_generator_out::redispatch(dispatchKeySet, low, high, size, generator, out); + } + + // aten::randint_like(Tensor self, SymInt high, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, MemoryFormat? memory_format=None) -> Tensor + inline at::Tensor randint_like(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t high, at::TensorOptions options={}, c10::optional memory_format=c10::nullopt) { + return at::_ops::randint_like::redispatch(dispatchKeySet, self, high, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt(), c10::impl::check_tensor_options_and_extract_memory_format(options, memory_format)); + } + + // aten::randint_like(Tensor self, SymInt high, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, MemoryFormat? memory_format=None) -> Tensor + inline at::Tensor randint_like(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t high, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory, c10::optional memory_format) { + return at::_ops::randint_like::redispatch(dispatchKeySet, self, high, dtype, layout, device, pin_memory, memory_format); + } + + // aten::randint_like(Tensor self, SymInt high, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, MemoryFormat? memory_format=None) -> Tensor + inline at::Tensor randint_like_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymInt high, at::TensorOptions options={}, c10::optional memory_format=c10::nullopt) { + return at::_ops::randint_like::redispatch(dispatchKeySet, self, high, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt(), c10::impl::check_tensor_options_and_extract_memory_format(options, memory_format)); + } + + // aten::randint_like(Tensor self, SymInt high, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, MemoryFormat? memory_format=None) -> Tensor + inline at::Tensor randint_like_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymInt high, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory, c10::optional memory_format) { + return at::_ops::randint_like::redispatch(dispatchKeySet, self, high, dtype, layout, device, pin_memory, memory_format); + } + + // aten::randint_like.low_dtype(Tensor self, SymInt low, SymInt high, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, MemoryFormat? memory_format=None) -> Tensor + inline at::Tensor randint_like(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t low, int64_t high, at::TensorOptions options={}, c10::optional memory_format=c10::nullopt) { + return at::_ops::randint_like_low_dtype::redispatch(dispatchKeySet, self, low, high, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt(), c10::impl::check_tensor_options_and_extract_memory_format(options, memory_format)); + } + + // aten::randint_like.low_dtype(Tensor self, SymInt low, SymInt high, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, MemoryFormat? memory_format=None) -> Tensor + inline at::Tensor randint_like(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t low, int64_t high, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory, c10::optional memory_format) { + return at::_ops::randint_like_low_dtype::redispatch(dispatchKeySet, self, low, high, dtype, layout, device, pin_memory, memory_format); + } + + // aten::randint_like.low_dtype(Tensor self, SymInt low, SymInt high, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, MemoryFormat? memory_format=None) -> Tensor + inline at::Tensor randint_like_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymInt low, c10::SymInt high, at::TensorOptions options={}, c10::optional memory_format=c10::nullopt) { + return at::_ops::randint_like_low_dtype::redispatch(dispatchKeySet, self, low, high, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt(), c10::impl::check_tensor_options_and_extract_memory_format(options, memory_format)); + } + + // aten::randint_like.low_dtype(Tensor self, SymInt low, SymInt high, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, MemoryFormat? memory_format=None) -> Tensor + inline at::Tensor randint_like_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymInt low, c10::SymInt high, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory, c10::optional memory_format) { + return at::_ops::randint_like_low_dtype::redispatch(dispatchKeySet, self, low, high, dtype, layout, device, pin_memory, memory_format); + } + + // aten::randn(SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor randn(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, at::TensorOptions options={}) { + return at::_ops::randn::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::randn(SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor randn(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::randn::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), dtype, layout, device, pin_memory); + } + + // aten::randn(SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor randn_symint(c10::DispatchKeySet dispatchKeySet, c10::SymIntArrayRef size, at::TensorOptions options={}) { + return at::_ops::randn::redispatch(dispatchKeySet, size, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::randn(SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor randn_symint(c10::DispatchKeySet dispatchKeySet, c10::SymIntArrayRef size, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::randn::redispatch(dispatchKeySet, size, dtype, layout, device, pin_memory); + } + + // aten::randn.generator(SymInt[] size, *, Generator? generator, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor randn(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, c10::optional generator, at::TensorOptions options={}) { + return at::_ops::randn_generator::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), generator, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::randn.generator(SymInt[] size, *, Generator? generator, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor randn(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, c10::optional generator, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::randn_generator::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), generator, dtype, layout, device, pin_memory); + } + + // aten::randn.generator(SymInt[] size, *, Generator? generator, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor randn_symint(c10::DispatchKeySet dispatchKeySet, c10::SymIntArrayRef size, c10::optional generator, at::TensorOptions options={}) { + return at::_ops::randn_generator::redispatch(dispatchKeySet, size, generator, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::randn.generator(SymInt[] size, *, Generator? generator, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor randn_symint(c10::DispatchKeySet dispatchKeySet, c10::SymIntArrayRef size, c10::optional generator, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::randn_generator::redispatch(dispatchKeySet, size, generator, dtype, layout, device, pin_memory); + } + + // aten::randn.names(SymInt[] size, *, Dimname[]? names, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor randn(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, c10::optional names, at::TensorOptions options={}) { + return at::_ops::randn_names::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), names, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::randn.names(SymInt[] size, *, Dimname[]? names, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor randn(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, c10::optional names, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::randn_names::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), names, dtype, layout, device, pin_memory); + } + + // aten::randn.names(SymInt[] size, *, Dimname[]? names, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor randn_symint(c10::DispatchKeySet dispatchKeySet, c10::SymIntArrayRef size, c10::optional names, at::TensorOptions options={}) { + return at::_ops::randn_names::redispatch(dispatchKeySet, size, names, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::randn.names(SymInt[] size, *, Dimname[]? names, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor randn_symint(c10::DispatchKeySet dispatchKeySet, c10::SymIntArrayRef size, c10::optional names, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::randn_names::redispatch(dispatchKeySet, size, names, dtype, layout, device, pin_memory); + } + + // aten::randn.generator_with_names(SymInt[] size, *, Generator? generator, Dimname[]? names, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor randn(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, c10::optional generator, c10::optional names, at::TensorOptions options={}) { + return at::_ops::randn_generator_with_names::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), generator, names, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::randn.generator_with_names(SymInt[] size, *, Generator? generator, Dimname[]? names, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor randn(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, c10::optional generator, c10::optional names, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::randn_generator_with_names::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), generator, names, dtype, layout, device, pin_memory); + } + + // aten::randn.generator_with_names(SymInt[] size, *, Generator? generator, Dimname[]? names, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor randn_symint(c10::DispatchKeySet dispatchKeySet, c10::SymIntArrayRef size, c10::optional generator, c10::optional names, at::TensorOptions options={}) { + return at::_ops::randn_generator_with_names::redispatch(dispatchKeySet, size, generator, names, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::randn.generator_with_names(SymInt[] size, *, Generator? generator, Dimname[]? names, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor randn_symint(c10::DispatchKeySet dispatchKeySet, c10::SymIntArrayRef size, c10::optional generator, c10::optional names, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::randn_generator_with_names::redispatch(dispatchKeySet, size, generator, names, dtype, layout, device, pin_memory); + } + + // aten::randn.out(SymInt[] size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & randn_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, at::IntArrayRef size) { + return at::_ops::randn_out::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), out); + } + + // aten::randn.out(SymInt[] size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & randn_outf(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, at::Tensor & out) { + return at::_ops::randn_out::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), out); + } + + // aten::randn.out(SymInt[] size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & randn_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, c10::SymIntArrayRef size) { + return at::_ops::randn_out::redispatch(dispatchKeySet, size, out); + } + + // aten::randn.out(SymInt[] size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & randn_symint_outf(c10::DispatchKeySet dispatchKeySet, c10::SymIntArrayRef size, at::Tensor & out) { + return at::_ops::randn_out::redispatch(dispatchKeySet, size, out); + } + + // aten::randn.generator_out(SymInt[] size, *, Generator? generator, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & randn_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, at::IntArrayRef size, c10::optional generator) { + return at::_ops::randn_generator_out::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), generator, out); + } + + // aten::randn.generator_out(SymInt[] size, *, Generator? generator, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & randn_outf(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, c10::optional generator, at::Tensor & out) { + return at::_ops::randn_generator_out::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), generator, out); + } + + // aten::randn.generator_out(SymInt[] size, *, Generator? generator, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & randn_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, c10::SymIntArrayRef size, c10::optional generator) { + return at::_ops::randn_generator_out::redispatch(dispatchKeySet, size, generator, out); + } + + // aten::randn.generator_out(SymInt[] size, *, Generator? generator, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & randn_symint_outf(c10::DispatchKeySet dispatchKeySet, c10::SymIntArrayRef size, c10::optional generator, at::Tensor & out) { + return at::_ops::randn_generator_out::redispatch(dispatchKeySet, size, generator, out); + } + + // aten::randn_like(Tensor self, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, MemoryFormat? memory_format=None) -> Tensor + inline at::Tensor randn_like(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::TensorOptions options={}, c10::optional memory_format=c10::nullopt) { + return at::_ops::randn_like::redispatch(dispatchKeySet, self, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt(), c10::impl::check_tensor_options_and_extract_memory_format(options, memory_format)); + } + + // aten::randn_like(Tensor self, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, MemoryFormat? memory_format=None) -> Tensor + inline at::Tensor randn_like(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory, c10::optional memory_format) { + return at::_ops::randn_like::redispatch(dispatchKeySet, self, dtype, layout, device, pin_memory, memory_format); + } + + // aten::randperm(SymInt n, *, ScalarType? dtype=long, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor randperm(c10::DispatchKeySet dispatchKeySet, int64_t n, at::TensorOptions options=at::kLong) { + return at::_ops::randperm::redispatch(dispatchKeySet, n, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::randperm(SymInt n, *, ScalarType? dtype=long, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor randperm(c10::DispatchKeySet dispatchKeySet, int64_t n, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::randperm::redispatch(dispatchKeySet, n, dtype, layout, device, pin_memory); + } + + // aten::randperm(SymInt n, *, ScalarType? dtype=long, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor randperm_symint(c10::DispatchKeySet dispatchKeySet, c10::SymInt n, at::TensorOptions options=at::kLong) { + return at::_ops::randperm::redispatch(dispatchKeySet, n, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::randperm(SymInt n, *, ScalarType? dtype=long, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor randperm_symint(c10::DispatchKeySet dispatchKeySet, c10::SymInt n, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::randperm::redispatch(dispatchKeySet, n, dtype, layout, device, pin_memory); + } + + // aten::randperm.generator(SymInt n, *, Generator? generator, ScalarType? dtype=long, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor randperm(c10::DispatchKeySet dispatchKeySet, int64_t n, c10::optional generator, at::TensorOptions options=at::kLong) { + return at::_ops::randperm_generator::redispatch(dispatchKeySet, n, generator, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::randperm.generator(SymInt n, *, Generator? generator, ScalarType? dtype=long, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor randperm(c10::DispatchKeySet dispatchKeySet, int64_t n, c10::optional generator, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::randperm_generator::redispatch(dispatchKeySet, n, generator, dtype, layout, device, pin_memory); + } + + // aten::randperm.generator(SymInt n, *, Generator? generator, ScalarType? dtype=long, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor randperm_symint(c10::DispatchKeySet dispatchKeySet, c10::SymInt n, c10::optional generator, at::TensorOptions options=at::kLong) { + return at::_ops::randperm_generator::redispatch(dispatchKeySet, n, generator, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::randperm.generator(SymInt n, *, Generator? generator, ScalarType? dtype=long, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor randperm_symint(c10::DispatchKeySet dispatchKeySet, c10::SymInt n, c10::optional generator, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::randperm_generator::redispatch(dispatchKeySet, n, generator, dtype, layout, device, pin_memory); + } + + // aten::randperm.out(SymInt n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & randperm_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, int64_t n) { + return at::_ops::randperm_out::redispatch(dispatchKeySet, n, out); + } + + // aten::randperm.out(SymInt n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & randperm_outf(c10::DispatchKeySet dispatchKeySet, int64_t n, at::Tensor & out) { + return at::_ops::randperm_out::redispatch(dispatchKeySet, n, out); + } + + // aten::randperm.out(SymInt n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & randperm_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, c10::SymInt n) { + return at::_ops::randperm_out::redispatch(dispatchKeySet, n, out); + } + + // aten::randperm.out(SymInt n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & randperm_symint_outf(c10::DispatchKeySet dispatchKeySet, c10::SymInt n, at::Tensor & out) { + return at::_ops::randperm_out::redispatch(dispatchKeySet, n, out); + } + + // aten::randperm.generator_out(SymInt n, *, Generator? generator, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & randperm_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, int64_t n, c10::optional generator) { + return at::_ops::randperm_generator_out::redispatch(dispatchKeySet, n, generator, out); + } + + // aten::randperm.generator_out(SymInt n, *, Generator? generator, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & randperm_outf(c10::DispatchKeySet dispatchKeySet, int64_t n, c10::optional generator, at::Tensor & out) { + return at::_ops::randperm_generator_out::redispatch(dispatchKeySet, n, generator, out); + } + + // aten::randperm.generator_out(SymInt n, *, Generator? generator, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & randperm_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, c10::SymInt n, c10::optional generator) { + return at::_ops::randperm_generator_out::redispatch(dispatchKeySet, n, generator, out); + } + + // aten::randperm.generator_out(SymInt n, *, Generator? generator, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & randperm_symint_outf(c10::DispatchKeySet dispatchKeySet, c10::SymInt n, c10::optional generator, at::Tensor & out) { + return at::_ops::randperm_generator_out::redispatch(dispatchKeySet, n, generator, out); + } + + // aten::range.step(Scalar start, Scalar end, Scalar step=1, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor range(c10::DispatchKeySet dispatchKeySet, const at::Scalar & start, const at::Scalar & end, const at::Scalar & step=1, at::TensorOptions options={}) { + return at::_ops::range_step::redispatch(dispatchKeySet, start, end, step, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::range.step(Scalar start, Scalar end, Scalar step=1, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor range(c10::DispatchKeySet dispatchKeySet, const at::Scalar & start, const at::Scalar & end, const at::Scalar & step, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::range_step::redispatch(dispatchKeySet, start, end, step, dtype, layout, device, pin_memory); + } + + // aten::range(Scalar start, Scalar end, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor range(c10::DispatchKeySet dispatchKeySet, const at::Scalar & start, const at::Scalar & end, at::TensorOptions options={}) { + return at::_ops::range::redispatch(dispatchKeySet, start, end, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::range(Scalar start, Scalar end, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor range(c10::DispatchKeySet dispatchKeySet, const at::Scalar & start, const at::Scalar & end, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::range::redispatch(dispatchKeySet, start, end, dtype, layout, device, pin_memory); + } + + // aten::range.out_(Scalar start, Scalar end, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & range_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Scalar & start, const at::Scalar & end) { + return at::_ops::range_out_::redispatch(dispatchKeySet, start, end, out); + } + + // aten::range.out_(Scalar start, Scalar end, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & range_outf(c10::DispatchKeySet dispatchKeySet, const at::Scalar & start, const at::Scalar & end, at::Tensor & out) { + return at::_ops::range_out_::redispatch(dispatchKeySet, start, end, out); + } + + // aten::range.out(Scalar start, Scalar end, Scalar step=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & range_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Scalar & start, const at::Scalar & end, const at::Scalar & step) { + return at::_ops::range_out::redispatch(dispatchKeySet, start, end, step, out); + } + + // aten::range.out(Scalar start, Scalar end, Scalar step=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & range_outf(c10::DispatchKeySet dispatchKeySet, const at::Scalar & start, const at::Scalar & end, const at::Scalar & step, at::Tensor & out) { + return at::_ops::range_out::redispatch(dispatchKeySet, start, end, step, out); + } + + // aten::ravel(Tensor(a) self) -> Tensor(a) + inline at::Tensor ravel(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::ravel::redispatch(dispatchKeySet, self); + } + + // aten::reciprocal(Tensor self) -> Tensor + inline at::Tensor reciprocal(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::reciprocal::redispatch(dispatchKeySet, self); + } + + // aten::reciprocal_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & reciprocal_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::reciprocal_::redispatch(dispatchKeySet, self); + } + + // aten::reciprocal.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & reciprocal_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::reciprocal_out::redispatch(dispatchKeySet, self, out); + } + + // aten::reciprocal.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & reciprocal_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::reciprocal_out::redispatch(dispatchKeySet, self, out); + } + + // aten::neg(Tensor self) -> Tensor + inline at::Tensor neg(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::neg::redispatch(dispatchKeySet, self); + } + + // aten::neg_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & neg_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::neg_::redispatch(dispatchKeySet, self); + } + + // aten::neg.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & neg_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::neg_out::redispatch(dispatchKeySet, self, out); + } + + // aten::neg.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & neg_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::neg_out::redispatch(dispatchKeySet, self, out); + } + + // aten::negative(Tensor self) -> Tensor + inline at::Tensor negative(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::negative::redispatch(dispatchKeySet, self); + } + + // aten::negative_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & negative_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::negative_::redispatch(dispatchKeySet, self); + } + + // aten::negative.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & negative_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::negative_out::redispatch(dispatchKeySet, self, out); + } + + // aten::negative.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & negative_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::negative_out::redispatch(dispatchKeySet, self, out); + } + + // aten::repeat(Tensor self, SymInt[] repeats) -> Tensor + inline at::Tensor repeat(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef repeats) { + return at::_ops::repeat::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(repeats)); + } + + // aten::repeat(Tensor self, SymInt[] repeats) -> Tensor + inline at::Tensor repeat_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef repeats) { + return at::_ops::repeat::redispatch(dispatchKeySet, self, repeats); + } + + // aten::repeat_interleave.Tensor(Tensor repeats, *, SymInt? output_size=None) -> Tensor + inline at::Tensor repeat_interleave(c10::DispatchKeySet dispatchKeySet, const at::Tensor & repeats, c10::optional output_size=c10::nullopt) { + return at::_ops::repeat_interleave_Tensor::redispatch(dispatchKeySet, repeats, output_size.has_value() ? c10::make_optional(c10::SymInt(*output_size)) : c10::nullopt); + } + + // aten::repeat_interleave.Tensor(Tensor repeats, *, SymInt? output_size=None) -> Tensor + inline at::Tensor repeat_interleave_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & repeats, c10::optional output_size=c10::nullopt) { + return at::_ops::repeat_interleave_Tensor::redispatch(dispatchKeySet, repeats, output_size); + } + + // aten::repeat_interleave.self_Tensor(Tensor self, Tensor repeats, int? dim=None, *, SymInt? output_size=None) -> Tensor + inline at::Tensor repeat_interleave(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & repeats, c10::optional dim=c10::nullopt, c10::optional output_size=c10::nullopt) { + return at::_ops::repeat_interleave_self_Tensor::redispatch(dispatchKeySet, self, repeats, dim, output_size.has_value() ? c10::make_optional(c10::SymInt(*output_size)) : c10::nullopt); + } + + // aten::repeat_interleave.self_Tensor(Tensor self, Tensor repeats, int? dim=None, *, SymInt? output_size=None) -> Tensor + inline at::Tensor repeat_interleave_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & repeats, c10::optional dim=c10::nullopt, c10::optional output_size=c10::nullopt) { + return at::_ops::repeat_interleave_self_Tensor::redispatch(dispatchKeySet, self, repeats, dim, output_size); + } + + // aten::repeat_interleave.self_int(Tensor self, SymInt repeats, int? dim=None, *, SymInt? output_size=None) -> Tensor + inline at::Tensor repeat_interleave(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t repeats, c10::optional dim=c10::nullopt, c10::optional output_size=c10::nullopt) { + return at::_ops::repeat_interleave_self_int::redispatch(dispatchKeySet, self, repeats, dim, output_size.has_value() ? c10::make_optional(c10::SymInt(*output_size)) : c10::nullopt); + } + + // aten::repeat_interleave.self_int(Tensor self, SymInt repeats, int? dim=None, *, SymInt? output_size=None) -> Tensor + inline at::Tensor repeat_interleave_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymInt repeats, c10::optional dim=c10::nullopt, c10::optional output_size=c10::nullopt) { + return at::_ops::repeat_interleave_self_int::redispatch(dispatchKeySet, self, repeats, dim, output_size); + } + + // aten::reshape(Tensor(a) self, SymInt[] shape) -> Tensor(a) + inline at::Tensor reshape(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef shape) { + return at::_ops::reshape::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(shape)); + } + + // aten::reshape(Tensor(a) self, SymInt[] shape) -> Tensor(a) + inline at::Tensor reshape_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef shape) { + return at::_ops::reshape::redispatch(dispatchKeySet, self, shape); + } + + // aten::_reshape_copy(Tensor self, SymInt[] size) -> Tensor + inline at::Tensor _reshape_copy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef size) { + return at::_ops::_reshape_copy::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(size)); + } + + // aten::_reshape_copy(Tensor self, SymInt[] size) -> Tensor + inline at::Tensor _reshape_copy_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef size) { + return at::_ops::_reshape_copy::redispatch(dispatchKeySet, self, size); + } + + // aten::_reshape_alias(Tensor(a) self, SymInt[] size, SymInt[] stride) -> Tensor(a) + inline at::Tensor _reshape_alias(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef size, at::IntArrayRef stride) { + return at::_ops::_reshape_alias::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(size), c10::fromIntArrayRefSlow(stride)); + } + + // aten::_reshape_alias(Tensor(a) self, SymInt[] size, SymInt[] stride) -> Tensor(a) + inline at::Tensor _reshape_alias_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef size, c10::SymIntArrayRef stride) { + return at::_ops::_reshape_alias::redispatch(dispatchKeySet, self, size, stride); + } + + // aten::_mkldnn_reshape(Tensor self, int[] shape) -> Tensor + inline at::Tensor _mkldnn_reshape(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef shape) { + return at::_ops::_mkldnn_reshape::redispatch(dispatchKeySet, self, shape); + } + + // aten::reshape_as(Tensor(a) self, Tensor other) -> Tensor(a) + inline at::Tensor reshape_as(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::reshape_as::redispatch(dispatchKeySet, self, other); + } + + // aten::round(Tensor self) -> Tensor + inline at::Tensor round(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::round::redispatch(dispatchKeySet, self); + } + + // aten::round_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & round_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::round_::redispatch(dispatchKeySet, self); + } + + // aten::round.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & round_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::round_out::redispatch(dispatchKeySet, self, out); + } + + // aten::round.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & round_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::round_out::redispatch(dispatchKeySet, self, out); + } + + // aten::round.decimals(Tensor self, *, int decimals) -> Tensor + inline at::Tensor round(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t decimals) { + return at::_ops::round_decimals::redispatch(dispatchKeySet, self, decimals); + } + + // aten::round_.decimals(Tensor(a!) self, *, int decimals) -> Tensor(a!) + inline at::Tensor & round_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, int64_t decimals) { + return at::_ops::round__decimals::redispatch(dispatchKeySet, self, decimals); + } + + // aten::round.decimals_out(Tensor self, *, int decimals, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & round_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t decimals) { + return at::_ops::round_decimals_out::redispatch(dispatchKeySet, self, decimals, out); + } + + // aten::round.decimals_out(Tensor self, *, int decimals, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & round_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t decimals, at::Tensor & out) { + return at::_ops::round_decimals_out::redispatch(dispatchKeySet, self, decimals, out); + } + + // aten::rrelu(Tensor self, Scalar lower=0.125, Scalar upper=0.3333333333333333, bool training=False, Generator? generator=None) -> Tensor + inline at::Tensor rrelu(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & lower=0.125, const at::Scalar & upper=0.3333333333333333, bool training=false, c10::optional generator=c10::nullopt) { + return at::_ops::rrelu::redispatch(dispatchKeySet, self, lower, upper, training, generator); + } + + // aten::rrelu_(Tensor(a!) self, Scalar lower=0.125, Scalar upper=0.3333333333333333, bool training=False, Generator? generator=None) -> Tensor(a!) + inline at::Tensor & rrelu_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Scalar & lower=0.125, const at::Scalar & upper=0.3333333333333333, bool training=false, c10::optional generator=c10::nullopt) { + return at::_ops::rrelu_::redispatch(dispatchKeySet, self, lower, upper, training, generator); + } + + // aten::relu(Tensor self) -> Tensor + inline at::Tensor relu(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::relu::redispatch(dispatchKeySet, self); + } + + // aten::relu_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & relu_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::relu_::redispatch(dispatchKeySet, self); + } + + // aten::relu6(Tensor self) -> Tensor + inline at::Tensor relu6(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::relu6::redispatch(dispatchKeySet, self); + } + + // aten::relu6_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & relu6_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::relu6_::redispatch(dispatchKeySet, self); + } + + // aten::prelu(Tensor self, Tensor weight) -> Tensor + inline at::Tensor prelu(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight) { + return at::_ops::prelu::redispatch(dispatchKeySet, self, weight); + } + + // aten::_prelu_kernel(Tensor self, Tensor weight) -> Tensor + inline at::Tensor _prelu_kernel(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight) { + return at::_ops::_prelu_kernel::redispatch(dispatchKeySet, self, weight); + } + + // aten::_prelu_kernel_backward(Tensor grad_output, Tensor self, Tensor weight) -> (Tensor, Tensor) + inline ::std::tuple _prelu_kernel_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & weight) { + return at::_ops::_prelu_kernel_backward::redispatch(dispatchKeySet, grad_output, self, weight); + } + + // aten::gelu.out(Tensor self, *, str approximate='none', Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & gelu_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::string_view approximate="none") { + return at::_ops::gelu_out::redispatch(dispatchKeySet, self, approximate, out); + } + + // aten::gelu.out(Tensor self, *, str approximate='none', Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & gelu_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::string_view approximate, at::Tensor & out) { + return at::_ops::gelu_out::redispatch(dispatchKeySet, self, approximate, out); + } + + // aten::gelu_(Tensor(a!) self, *, str approximate='none') -> Tensor(a!) + inline at::Tensor & gelu_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, c10::string_view approximate="none") { + return at::_ops::gelu_::redispatch(dispatchKeySet, self, approximate); + } + + // aten::gelu(Tensor self, *, str approximate='none') -> Tensor + inline at::Tensor gelu(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::string_view approximate="none") { + return at::_ops::gelu::redispatch(dispatchKeySet, self, approximate); + } + + // aten::gelu_backward.grad_input(Tensor grad_output, Tensor self, *, str approximate='none', Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & gelu_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, const at::Tensor & self, c10::string_view approximate="none") { + return at::_ops::gelu_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, approximate, grad_input); + } + + // aten::gelu_backward.grad_input(Tensor grad_output, Tensor self, *, str approximate='none', Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & gelu_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, c10::string_view approximate, at::Tensor & grad_input) { + return at::_ops::gelu_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, approximate, grad_input); + } + + // aten::gelu_backward(Tensor grad_output, Tensor self, *, str approximate='none') -> Tensor + inline at::Tensor gelu_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, c10::string_view approximate="none") { + return at::_ops::gelu_backward::redispatch(dispatchKeySet, grad_output, self, approximate); + } + + // aten::infinitely_differentiable_gelu_backward(Tensor grad, Tensor self) -> Tensor + inline at::Tensor infinitely_differentiable_gelu_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad, const at::Tensor & self) { + return at::_ops::infinitely_differentiable_gelu_backward::redispatch(dispatchKeySet, grad, self); + } + + // aten::hardshrink.out(Tensor self, Scalar lambd=0.5, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & hardshrink_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Scalar & lambd=0.5) { + return at::_ops::hardshrink_out::redispatch(dispatchKeySet, self, lambd, out); + } + + // aten::hardshrink.out(Tensor self, Scalar lambd=0.5, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & hardshrink_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & lambd, at::Tensor & out) { + return at::_ops::hardshrink_out::redispatch(dispatchKeySet, self, lambd, out); + } + + // aten::hardshrink(Tensor self, Scalar lambd=0.5) -> Tensor + inline at::Tensor hardshrink(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & lambd=0.5) { + return at::_ops::hardshrink::redispatch(dispatchKeySet, self, lambd); + } + + // aten::hardshrink_backward.grad_input(Tensor grad_out, Tensor self, Scalar lambd, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & hardshrink_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_out, const at::Tensor & self, const at::Scalar & lambd) { + return at::_ops::hardshrink_backward_grad_input::redispatch(dispatchKeySet, grad_out, self, lambd, grad_input); + } + + // aten::hardshrink_backward.grad_input(Tensor grad_out, Tensor self, Scalar lambd, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & hardshrink_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_out, const at::Tensor & self, const at::Scalar & lambd, at::Tensor & grad_input) { + return at::_ops::hardshrink_backward_grad_input::redispatch(dispatchKeySet, grad_out, self, lambd, grad_input); + } + + // aten::hardshrink_backward(Tensor grad_out, Tensor self, Scalar lambd) -> Tensor + inline at::Tensor hardshrink_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_out, const at::Tensor & self, const at::Scalar & lambd) { + return at::_ops::hardshrink_backward::redispatch(dispatchKeySet, grad_out, self, lambd); + } + + // aten::rsqrt(Tensor self) -> Tensor + inline at::Tensor rsqrt(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::rsqrt::redispatch(dispatchKeySet, self); + } + + // aten::rsqrt_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & rsqrt_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::rsqrt_::redispatch(dispatchKeySet, self); + } + + // aten::rsqrt.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & rsqrt_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::rsqrt_out::redispatch(dispatchKeySet, self, out); + } + + // aten::rsqrt.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & rsqrt_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::rsqrt_out::redispatch(dispatchKeySet, self, out); + } + + // aten::select.Dimname(Tensor(a) self, Dimname dim, int index) -> Tensor(a) + inline at::Tensor select(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim, int64_t index) { + return at::_ops::select_Dimname::redispatch(dispatchKeySet, self, dim, index); + } + + // aten::select.int(Tensor(a) self, int dim, SymInt index) -> Tensor(a) + inline at::Tensor select(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, int64_t index) { + return at::_ops::select_int::redispatch(dispatchKeySet, self, dim, index); + } + + // aten::select.int(Tensor(a) self, int dim, SymInt index) -> Tensor(a) + inline at::Tensor select_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, c10::SymInt index) { + return at::_ops::select_int::redispatch(dispatchKeySet, self, dim, index); + } + + // aten::select_backward(Tensor grad_output, SymInt[] input_sizes, int dim, SymInt index) -> Tensor + inline at::Tensor select_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, at::IntArrayRef input_sizes, int64_t dim, int64_t index) { + return at::_ops::select_backward::redispatch(dispatchKeySet, grad_output, c10::fromIntArrayRefSlow(input_sizes), dim, index); + } + + // aten::select_backward(Tensor grad_output, SymInt[] input_sizes, int dim, SymInt index) -> Tensor + inline at::Tensor select_backward_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, c10::SymIntArrayRef input_sizes, int64_t dim, c10::SymInt index) { + return at::_ops::select_backward::redispatch(dispatchKeySet, grad_output, input_sizes, dim, index); + } + + // aten::_nested_select_backward(Tensor grad_output, Tensor self, int dim, SymInt index) -> Tensor + inline at::Tensor _nested_select_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, int64_t dim, int64_t index) { + return at::_ops::_nested_select_backward::redispatch(dispatchKeySet, grad_output, self, dim, index); + } + + // aten::_nested_select_backward(Tensor grad_output, Tensor self, int dim, SymInt index) -> Tensor + inline at::Tensor _nested_select_backward_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, int64_t dim, c10::SymInt index) { + return at::_ops::_nested_select_backward::redispatch(dispatchKeySet, grad_output, self, dim, index); + } + + // aten::selu(Tensor self) -> Tensor + inline at::Tensor selu(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::selu::redispatch(dispatchKeySet, self); + } + + // aten::selu_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & selu_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::selu_::redispatch(dispatchKeySet, self); + } + + // aten::celu(Tensor self, Scalar alpha=1.0) -> Tensor + inline at::Tensor celu(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & alpha=1.0) { + return at::_ops::celu::redispatch(dispatchKeySet, self, alpha); + } + + // aten::celu_(Tensor(a!) self, Scalar alpha=1.0) -> Tensor(a!) + inline at::Tensor & celu_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Scalar & alpha=1.0) { + return at::_ops::celu_::redispatch(dispatchKeySet, self, alpha); + } + + // aten::silu(Tensor self) -> Tensor + inline at::Tensor silu(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::silu::redispatch(dispatchKeySet, self); + } + + // aten::silu_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & silu_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::silu_::redispatch(dispatchKeySet, self); + } + + // aten::silu.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & silu_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::silu_out::redispatch(dispatchKeySet, self, out); + } + + // aten::silu.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & silu_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::silu_out::redispatch(dispatchKeySet, self, out); + } + + // aten::silu_backward.grad_input(Tensor grad_output, Tensor self, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & silu_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, const at::Tensor & self) { + return at::_ops::silu_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, grad_input); + } + + // aten::silu_backward.grad_input(Tensor grad_output, Tensor self, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & silu_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, at::Tensor & grad_input) { + return at::_ops::silu_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, grad_input); + } + + // aten::silu_backward(Tensor grad_output, Tensor self) -> Tensor + inline at::Tensor silu_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self) { + return at::_ops::silu_backward::redispatch(dispatchKeySet, grad_output, self); + } + + // aten::mish(Tensor self) -> Tensor + inline at::Tensor mish(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::mish::redispatch(dispatchKeySet, self); + } + + // aten::mish_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & mish_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::mish_::redispatch(dispatchKeySet, self); + } + + // aten::mish.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & mish_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::mish_out::redispatch(dispatchKeySet, self, out); + } + + // aten::mish.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & mish_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::mish_out::redispatch(dispatchKeySet, self, out); + } + + // aten::mish_backward(Tensor grad_output, Tensor self) -> Tensor + inline at::Tensor mish_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self) { + return at::_ops::mish_backward::redispatch(dispatchKeySet, grad_output, self); + } + + // aten::sigmoid(Tensor self) -> Tensor + inline at::Tensor sigmoid(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::sigmoid::redispatch(dispatchKeySet, self); + } + + // aten::sigmoid_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & sigmoid_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::sigmoid_::redispatch(dispatchKeySet, self); + } + + // aten::sigmoid.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & sigmoid_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::sigmoid_out::redispatch(dispatchKeySet, self, out); + } + + // aten::sigmoid.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & sigmoid_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::sigmoid_out::redispatch(dispatchKeySet, self, out); + } + + // aten::logit(Tensor self, float? eps=None) -> Tensor + inline at::Tensor logit(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional eps=c10::nullopt) { + return at::_ops::logit::redispatch(dispatchKeySet, self, eps); + } + + // aten::logit_(Tensor(a!) self, float? eps=None) -> Tensor(a!) + inline at::Tensor & logit_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, c10::optional eps=c10::nullopt) { + return at::_ops::logit_::redispatch(dispatchKeySet, self, eps); + } + + // aten::logit.out(Tensor self, float? eps=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & logit_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::optional eps=c10::nullopt) { + return at::_ops::logit_out::redispatch(dispatchKeySet, self, eps, out); + } + + // aten::logit.out(Tensor self, float? eps=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & logit_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional eps, at::Tensor & out) { + return at::_ops::logit_out::redispatch(dispatchKeySet, self, eps, out); + } + + // aten::sin(Tensor self) -> Tensor + inline at::Tensor sin(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::sin::redispatch(dispatchKeySet, self); + } + + // aten::sin_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & sin_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::sin_::redispatch(dispatchKeySet, self); + } + + // aten::sin.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & sin_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::sin_out::redispatch(dispatchKeySet, self, out); + } + + // aten::sin.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & sin_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::sin_out::redispatch(dispatchKeySet, self, out); + } + + // aten::sinc(Tensor self) -> Tensor + inline at::Tensor sinc(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::sinc::redispatch(dispatchKeySet, self); + } + + // aten::sinc_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & sinc_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::sinc_::redispatch(dispatchKeySet, self); + } + + // aten::sinc.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & sinc_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::sinc_out::redispatch(dispatchKeySet, self, out); + } + + // aten::sinc.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & sinc_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::sinc_out::redispatch(dispatchKeySet, self, out); + } + + // aten::sinh(Tensor self) -> Tensor + inline at::Tensor sinh(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::sinh::redispatch(dispatchKeySet, self); + } + + // aten::sinh_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & sinh_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::sinh_::redispatch(dispatchKeySet, self); + } + + // aten::sinh.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & sinh_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::sinh_out::redispatch(dispatchKeySet, self, out); + } + + // aten::sinh.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & sinh_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::sinh_out::redispatch(dispatchKeySet, self, out); + } + + // aten::detach(Tensor(a) self) -> Tensor(a) + inline at::Tensor detach(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::detach::redispatch(dispatchKeySet, self); + } + + // aten::detach_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & detach_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::detach_::redispatch(dispatchKeySet, self); + } + + // aten::size.int(Tensor self, int dim) -> int + inline int64_t __dispatch_size(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim) { + return at::_ops::size_int::redispatch(dispatchKeySet, self, dim); + } + + // aten::size.Dimname(Tensor self, Dimname dim) -> int + inline int64_t size(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim) { + return at::_ops::size_Dimname::redispatch(dispatchKeySet, self, dim); + } + + // aten::sym_size.int(Tensor self, int dim) -> SymInt + inline c10::SymInt __dispatch_sym_size(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim) { + return at::_ops::sym_size_int::redispatch(dispatchKeySet, self, dim); + } + + // aten::sym_numel(Tensor self) -> SymInt + inline c10::SymInt __dispatch_sym_numel(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::sym_numel::redispatch(dispatchKeySet, self); + } + + // aten::sym_storage_offset(Tensor self) -> SymInt + inline c10::SymInt __dispatch_sym_storage_offset(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::sym_storage_offset::redispatch(dispatchKeySet, self); + } + + // aten::slice.Tensor(Tensor(a) self, int dim=0, SymInt? start=None, SymInt? end=None, SymInt step=1) -> Tensor(a) + inline at::Tensor slice(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim=0, c10::optional start=c10::nullopt, c10::optional end=c10::nullopt, int64_t step=1) { + return at::_ops::slice_Tensor::redispatch(dispatchKeySet, self, dim, start.has_value() ? c10::make_optional(c10::SymInt(*start)) : c10::nullopt, end.has_value() ? c10::make_optional(c10::SymInt(*end)) : c10::nullopt, step); + } + + // aten::slice.Tensor(Tensor(a) self, int dim=0, SymInt? start=None, SymInt? end=None, SymInt step=1) -> Tensor(a) + inline at::Tensor slice_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim=0, c10::optional start=c10::nullopt, c10::optional end=c10::nullopt, c10::SymInt step=1) { + return at::_ops::slice_Tensor::redispatch(dispatchKeySet, self, dim, start, end, step); + } + + // aten::slice_backward(Tensor grad_output, SymInt[] input_sizes, int dim, SymInt start, SymInt end, SymInt step) -> Tensor + inline at::Tensor slice_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, at::IntArrayRef input_sizes, int64_t dim, int64_t start, int64_t end, int64_t step) { + return at::_ops::slice_backward::redispatch(dispatchKeySet, grad_output, c10::fromIntArrayRefSlow(input_sizes), dim, start, end, step); + } + + // aten::slice_backward(Tensor grad_output, SymInt[] input_sizes, int dim, SymInt start, SymInt end, SymInt step) -> Tensor + inline at::Tensor slice_backward_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, c10::SymIntArrayRef input_sizes, int64_t dim, c10::SymInt start, c10::SymInt end, c10::SymInt step) { + return at::_ops::slice_backward::redispatch(dispatchKeySet, grad_output, input_sizes, dim, start, end, step); + } + + // aten::slice_inverse(Tensor(a) self, Tensor src, int dim=0, SymInt? start=None, SymInt? end=None, SymInt step=1) -> Tensor(a) + inline at::Tensor slice_inverse(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & src, int64_t dim=0, c10::optional start=c10::nullopt, c10::optional end=c10::nullopt, int64_t step=1) { + return at::_ops::slice_inverse::redispatch(dispatchKeySet, self, src, dim, start.has_value() ? c10::make_optional(c10::SymInt(*start)) : c10::nullopt, end.has_value() ? c10::make_optional(c10::SymInt(*end)) : c10::nullopt, step); + } + + // aten::slice_inverse(Tensor(a) self, Tensor src, int dim=0, SymInt? start=None, SymInt? end=None, SymInt step=1) -> Tensor(a) + inline at::Tensor slice_inverse_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & src, int64_t dim=0, c10::optional start=c10::nullopt, c10::optional end=c10::nullopt, c10::SymInt step=1) { + return at::_ops::slice_inverse::redispatch(dispatchKeySet, self, src, dim, start, end, step); + } + + // aten::slice_scatter(Tensor self, Tensor src, int dim=0, SymInt? start=None, SymInt? end=None, SymInt step=1) -> Tensor + inline at::Tensor slice_scatter(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & src, int64_t dim=0, c10::optional start=c10::nullopt, c10::optional end=c10::nullopt, int64_t step=1) { + return at::_ops::slice_scatter::redispatch(dispatchKeySet, self, src, dim, start.has_value() ? c10::make_optional(c10::SymInt(*start)) : c10::nullopt, end.has_value() ? c10::make_optional(c10::SymInt(*end)) : c10::nullopt, step); + } + + // aten::slice_scatter(Tensor self, Tensor src, int dim=0, SymInt? start=None, SymInt? end=None, SymInt step=1) -> Tensor + inline at::Tensor slice_scatter_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & src, int64_t dim=0, c10::optional start=c10::nullopt, c10::optional end=c10::nullopt, c10::SymInt step=1) { + return at::_ops::slice_scatter::redispatch(dispatchKeySet, self, src, dim, start, end, step); + } + + // aten::select_scatter(Tensor self, Tensor src, int dim, SymInt index) -> Tensor + inline at::Tensor select_scatter(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & src, int64_t dim, int64_t index) { + return at::_ops::select_scatter::redispatch(dispatchKeySet, self, src, dim, index); + } + + // aten::select_scatter(Tensor self, Tensor src, int dim, SymInt index) -> Tensor + inline at::Tensor select_scatter_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & src, int64_t dim, c10::SymInt index) { + return at::_ops::select_scatter::redispatch(dispatchKeySet, self, src, dim, index); + } + + // aten::diagonal_scatter(Tensor self, Tensor src, int offset=0, int dim1=0, int dim2=1) -> Tensor + inline at::Tensor diagonal_scatter(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & src, int64_t offset=0, int64_t dim1=0, int64_t dim2=1) { + return at::_ops::diagonal_scatter::redispatch(dispatchKeySet, self, src, offset, dim1, dim2); + } + + // aten::as_strided_scatter(Tensor self, Tensor src, SymInt[] size, SymInt[] stride, SymInt? storage_offset=None) -> Tensor + inline at::Tensor as_strided_scatter(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & src, at::IntArrayRef size, at::IntArrayRef stride, c10::optional storage_offset=c10::nullopt) { + return at::_ops::as_strided_scatter::redispatch(dispatchKeySet, self, src, c10::fromIntArrayRefSlow(size), c10::fromIntArrayRefSlow(stride), storage_offset.has_value() ? c10::make_optional(c10::SymInt(*storage_offset)) : c10::nullopt); + } + + // aten::as_strided_scatter(Tensor self, Tensor src, SymInt[] size, SymInt[] stride, SymInt? storage_offset=None) -> Tensor + inline at::Tensor as_strided_scatter_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & src, c10::SymIntArrayRef size, c10::SymIntArrayRef stride, c10::optional storage_offset=c10::nullopt) { + return at::_ops::as_strided_scatter::redispatch(dispatchKeySet, self, src, size, stride, storage_offset); + } + + // aten::smm(Tensor self, Tensor mat2) -> Tensor + inline at::Tensor smm(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & mat2) { + return at::_ops::smm::redispatch(dispatchKeySet, self, mat2); + } + + // aten::softmax.int(Tensor self, int dim, ScalarType? dtype=None) -> Tensor + inline at::Tensor softmax(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, c10::optional dtype=c10::nullopt) { + return at::_ops::softmax_int::redispatch(dispatchKeySet, self, dim, dtype); + } + + // aten::softmax.int_out(Tensor self, int dim, ScalarType? dtype=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & softmax_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t dim, c10::optional dtype=c10::nullopt) { + return at::_ops::softmax_int_out::redispatch(dispatchKeySet, self, dim, dtype, out); + } + + // aten::softmax.int_out(Tensor self, int dim, ScalarType? dtype=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & softmax_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, c10::optional dtype, at::Tensor & out) { + return at::_ops::softmax_int_out::redispatch(dispatchKeySet, self, dim, dtype, out); + } + + // aten::softmax.Dimname(Tensor self, Dimname dim, *, ScalarType? dtype=None) -> Tensor + inline at::Tensor softmax(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim, c10::optional dtype=c10::nullopt) { + return at::_ops::softmax_Dimname::redispatch(dispatchKeySet, self, dim, dtype); + } + + // aten::_softmax(Tensor self, int dim, bool half_to_float) -> Tensor + inline at::Tensor _softmax(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, bool half_to_float) { + return at::_ops::_softmax::redispatch(dispatchKeySet, self, dim, half_to_float); + } + + // aten::_softmax.out(Tensor self, int dim, bool half_to_float, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _softmax_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t dim, bool half_to_float) { + return at::_ops::_softmax_out::redispatch(dispatchKeySet, self, dim, half_to_float, out); + } + + // aten::_softmax.out(Tensor self, int dim, bool half_to_float, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _softmax_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, bool half_to_float, at::Tensor & out) { + return at::_ops::_softmax_out::redispatch(dispatchKeySet, self, dim, half_to_float, out); + } + + // aten::_softmax_backward_data(Tensor grad_output, Tensor output, int dim, ScalarType input_dtype) -> Tensor + inline at::Tensor _softmax_backward_data(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & output, int64_t dim, at::ScalarType input_dtype) { + return at::_ops::_softmax_backward_data::redispatch(dispatchKeySet, grad_output, output, dim, input_dtype); + } + + // aten::_softmax_backward_data.out(Tensor grad_output, Tensor output, int dim, ScalarType input_dtype, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & _softmax_backward_data_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, const at::Tensor & output, int64_t dim, at::ScalarType input_dtype) { + return at::_ops::_softmax_backward_data_out::redispatch(dispatchKeySet, grad_output, output, dim, input_dtype, grad_input); + } + + // aten::_softmax_backward_data.out(Tensor grad_output, Tensor output, int dim, ScalarType input_dtype, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & _softmax_backward_data_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & output, int64_t dim, at::ScalarType input_dtype, at::Tensor & grad_input) { + return at::_ops::_softmax_backward_data_out::redispatch(dispatchKeySet, grad_output, output, dim, input_dtype, grad_input); + } + + // aten::unsafe_split.Tensor(Tensor self, SymInt split_size, int dim=0) -> Tensor[] + inline ::std::vector unsafe_split(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t split_size, int64_t dim=0) { + return at::_ops::unsafe_split_Tensor::redispatch(dispatchKeySet, self, split_size, dim); + } + + // aten::unsafe_split.Tensor(Tensor self, SymInt split_size, int dim=0) -> Tensor[] + inline ::std::vector unsafe_split_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymInt split_size, int64_t dim=0) { + return at::_ops::unsafe_split_Tensor::redispatch(dispatchKeySet, self, split_size, dim); + } + + // aten::split.Tensor(Tensor(a -> *) self, SymInt split_size, int dim=0) -> Tensor(a)[] + inline ::std::vector split(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t split_size, int64_t dim=0) { + return at::_ops::split_Tensor::redispatch(dispatchKeySet, self, split_size, dim); + } + + // aten::split.Tensor(Tensor(a -> *) self, SymInt split_size, int dim=0) -> Tensor(a)[] + inline ::std::vector split_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymInt split_size, int64_t dim=0) { + return at::_ops::split_Tensor::redispatch(dispatchKeySet, self, split_size, dim); + } + + // aten::split.sizes(Tensor(a -> *) self, SymInt[] split_size, int dim=0) -> Tensor(a)[] + inline ::std::vector split(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef split_size, int64_t dim=0) { + return at::_ops::split_sizes::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(split_size), dim); + } + + // aten::split.sizes(Tensor(a -> *) self, SymInt[] split_size, int dim=0) -> Tensor(a)[] + inline ::std::vector split_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef split_size, int64_t dim=0) { + return at::_ops::split_sizes::redispatch(dispatchKeySet, self, split_size, dim); + } + + // aten::unsafe_split_with_sizes(Tensor self, SymInt[] split_sizes, int dim=0) -> Tensor[] + inline ::std::vector unsafe_split_with_sizes(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef split_sizes, int64_t dim=0) { + return at::_ops::unsafe_split_with_sizes::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(split_sizes), dim); + } + + // aten::unsafe_split_with_sizes(Tensor self, SymInt[] split_sizes, int dim=0) -> Tensor[] + inline ::std::vector unsafe_split_with_sizes_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef split_sizes, int64_t dim=0) { + return at::_ops::unsafe_split_with_sizes::redispatch(dispatchKeySet, self, split_sizes, dim); + } + + // aten::split_with_sizes(Tensor(a -> *) self, SymInt[] split_sizes, int dim=0) -> Tensor(a)[] + inline ::std::vector split_with_sizes(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef split_sizes, int64_t dim=0) { + return at::_ops::split_with_sizes::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(split_sizes), dim); + } + + // aten::split_with_sizes(Tensor(a -> *) self, SymInt[] split_sizes, int dim=0) -> Tensor(a)[] + inline ::std::vector split_with_sizes_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef split_sizes, int64_t dim=0) { + return at::_ops::split_with_sizes::redispatch(dispatchKeySet, self, split_sizes, dim); + } + + // aten::hsplit.int(Tensor(a -> *) self, int sections) -> Tensor(a)[] + inline ::std::vector hsplit(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t sections) { + return at::_ops::hsplit_int::redispatch(dispatchKeySet, self, sections); + } + + // aten::hsplit.array(Tensor(a -> *) self, int[] indices) -> Tensor(a)[] + inline ::std::vector hsplit(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef indices) { + return at::_ops::hsplit_array::redispatch(dispatchKeySet, self, indices); + } + + // aten::vsplit.int(Tensor(a -> *) self, int sections) -> Tensor(a)[] + inline ::std::vector vsplit(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t sections) { + return at::_ops::vsplit_int::redispatch(dispatchKeySet, self, sections); + } + + // aten::vsplit.array(Tensor(a -> *) self, int[] indices) -> Tensor(a)[] + inline ::std::vector vsplit(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef indices) { + return at::_ops::vsplit_array::redispatch(dispatchKeySet, self, indices); + } + + // aten::dsplit.int(Tensor(a -> *) self, int sections) -> Tensor(a)[] + inline ::std::vector dsplit(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t sections) { + return at::_ops::dsplit_int::redispatch(dispatchKeySet, self, sections); + } + + // aten::dsplit.array(Tensor(a -> *) self, int[] indices) -> Tensor(a)[] + inline ::std::vector dsplit(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef indices) { + return at::_ops::dsplit_array::redispatch(dispatchKeySet, self, indices); + } + + // aten::squeeze(Tensor(a) self) -> Tensor(a) + inline at::Tensor squeeze(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::squeeze::redispatch(dispatchKeySet, self); + } + + // aten::squeeze.dim(Tensor(a) self, int dim) -> Tensor(a) + inline at::Tensor squeeze(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim) { + return at::_ops::squeeze_dim::redispatch(dispatchKeySet, self, dim); + } + + // aten::squeeze.dimname(Tensor(a) self, Dimname dim) -> Tensor(a) + inline at::Tensor squeeze(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim) { + return at::_ops::squeeze_dimname::redispatch(dispatchKeySet, self, dim); + } + + // aten::squeeze.dims(Tensor(a) self, int[] dim) -> Tensor(a) + inline at::Tensor squeeze(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef dim) { + return at::_ops::squeeze_dims::redispatch(dispatchKeySet, self, dim); + } + + // aten::squeeze_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & squeeze_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::squeeze_::redispatch(dispatchKeySet, self); + } + + // aten::squeeze_.dim(Tensor(a!) self, int dim) -> Tensor(a!) + inline at::Tensor & squeeze_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, int64_t dim) { + return at::_ops::squeeze__dim::redispatch(dispatchKeySet, self, dim); + } + + // aten::squeeze_.dims(Tensor(a!) self, int[] dim) -> Tensor(a!) + inline at::Tensor & squeeze_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, at::IntArrayRef dim) { + return at::_ops::squeeze__dims::redispatch(dispatchKeySet, self, dim); + } + + // aten::squeeze_.dimname(Tensor(a!) self, Dimname dim) -> Tensor(a!) + inline at::Tensor & squeeze_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, at::Dimname dim) { + return at::_ops::squeeze__dimname::redispatch(dispatchKeySet, self, dim); + } + + // aten::sspaddmm(Tensor self, Tensor mat1, Tensor mat2, *, Scalar beta=1, Scalar alpha=1) -> Tensor + inline at::Tensor sspaddmm(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & mat1, const at::Tensor & mat2, const at::Scalar & beta=1, const at::Scalar & alpha=1) { + return at::_ops::sspaddmm::redispatch(dispatchKeySet, self, mat1, mat2, beta, alpha); + } + + // aten::sspaddmm.out(Tensor self, Tensor mat1, Tensor mat2, *, Scalar beta=1, Scalar alpha=1, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & sspaddmm_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & mat1, const at::Tensor & mat2, const at::Scalar & beta=1, const at::Scalar & alpha=1) { + return at::_ops::sspaddmm_out::redispatch(dispatchKeySet, self, mat1, mat2, beta, alpha, out); + } + + // aten::sspaddmm.out(Tensor self, Tensor mat1, Tensor mat2, *, Scalar beta=1, Scalar alpha=1, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & sspaddmm_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & mat1, const at::Tensor & mat2, const at::Scalar & beta, const at::Scalar & alpha, at::Tensor & out) { + return at::_ops::sspaddmm_out::redispatch(dispatchKeySet, self, mat1, mat2, beta, alpha, out); + } + + // aten::_chunk_cat(Tensor[] tensors, int dim, int num_chunks) -> Tensor + inline at::Tensor _chunk_cat(c10::DispatchKeySet dispatchKeySet, at::TensorList tensors, int64_t dim, int64_t num_chunks) { + return at::_ops::_chunk_cat::redispatch(dispatchKeySet, tensors, dim, num_chunks); + } + + // aten::_chunk_cat.out(Tensor[] tensors, int dim, int num_chunks, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _chunk_cat_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, at::TensorList tensors, int64_t dim, int64_t num_chunks) { + return at::_ops::_chunk_cat_out::redispatch(dispatchKeySet, tensors, dim, num_chunks, out); + } + + // aten::_chunk_cat.out(Tensor[] tensors, int dim, int num_chunks, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _chunk_cat_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList tensors, int64_t dim, int64_t num_chunks, at::Tensor & out) { + return at::_ops::_chunk_cat_out::redispatch(dispatchKeySet, tensors, dim, num_chunks, out); + } + + // aten::stack(Tensor[] tensors, int dim=0) -> Tensor + inline at::Tensor stack(c10::DispatchKeySet dispatchKeySet, at::TensorList tensors, int64_t dim=0) { + return at::_ops::stack::redispatch(dispatchKeySet, tensors, dim); + } + + // aten::stack.out(Tensor[] tensors, int dim=0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & stack_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, at::TensorList tensors, int64_t dim=0) { + return at::_ops::stack_out::redispatch(dispatchKeySet, tensors, dim, out); + } + + // aten::stack.out(Tensor[] tensors, int dim=0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & stack_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList tensors, int64_t dim, at::Tensor & out) { + return at::_ops::stack_out::redispatch(dispatchKeySet, tensors, dim, out); + } + + // aten::_stack(Tensor[] tensors, int dim=0) -> Tensor + inline at::Tensor _stack(c10::DispatchKeySet dispatchKeySet, at::TensorList tensors, int64_t dim=0) { + return at::_ops::_stack::redispatch(dispatchKeySet, tensors, dim); + } + + // aten::_stack.out(Tensor[] tensors, int dim=0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _stack_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, at::TensorList tensors, int64_t dim=0) { + return at::_ops::_stack_out::redispatch(dispatchKeySet, tensors, dim, out); + } + + // aten::_stack.out(Tensor[] tensors, int dim=0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _stack_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList tensors, int64_t dim, at::Tensor & out) { + return at::_ops::_stack_out::redispatch(dispatchKeySet, tensors, dim, out); + } + + // aten::hstack(Tensor[] tensors) -> Tensor + inline at::Tensor hstack(c10::DispatchKeySet dispatchKeySet, at::TensorList tensors) { + return at::_ops::hstack::redispatch(dispatchKeySet, tensors); + } + + // aten::hstack.out(Tensor[] tensors, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & hstack_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, at::TensorList tensors) { + return at::_ops::hstack_out::redispatch(dispatchKeySet, tensors, out); + } + + // aten::hstack.out(Tensor[] tensors, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & hstack_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList tensors, at::Tensor & out) { + return at::_ops::hstack_out::redispatch(dispatchKeySet, tensors, out); + } + + // aten::vstack(Tensor[] tensors) -> Tensor + inline at::Tensor vstack(c10::DispatchKeySet dispatchKeySet, at::TensorList tensors) { + return at::_ops::vstack::redispatch(dispatchKeySet, tensors); + } + + // aten::vstack.out(Tensor[] tensors, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & vstack_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, at::TensorList tensors) { + return at::_ops::vstack_out::redispatch(dispatchKeySet, tensors, out); + } + + // aten::vstack.out(Tensor[] tensors, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & vstack_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList tensors, at::Tensor & out) { + return at::_ops::vstack_out::redispatch(dispatchKeySet, tensors, out); + } + + // aten::dstack(Tensor[] tensors) -> Tensor + inline at::Tensor dstack(c10::DispatchKeySet dispatchKeySet, at::TensorList tensors) { + return at::_ops::dstack::redispatch(dispatchKeySet, tensors); + } + + // aten::dstack.out(Tensor[] tensors, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & dstack_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, at::TensorList tensors) { + return at::_ops::dstack_out::redispatch(dispatchKeySet, tensors, out); + } + + // aten::dstack.out(Tensor[] tensors, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & dstack_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList tensors, at::Tensor & out) { + return at::_ops::dstack_out::redispatch(dispatchKeySet, tensors, out); + } + + // aten::stft(Tensor self, int n_fft, int? hop_length=None, int? win_length=None, Tensor? window=None, bool normalized=False, bool? onesided=None, bool? return_complex=None) -> Tensor + inline at::Tensor stft(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t n_fft, c10::optional hop_length, c10::optional win_length, const c10::optional & window, bool normalized, c10::optional onesided=c10::nullopt, c10::optional return_complex=c10::nullopt) { + return at::_ops::stft::redispatch(dispatchKeySet, self, n_fft, hop_length, win_length, window, normalized, onesided, return_complex); + } + + // aten::stft.center(Tensor self, int n_fft, int? hop_length=None, int? win_length=None, Tensor? window=None, bool center=True, str pad_mode="reflect", bool normalized=False, bool? onesided=None, bool? return_complex=None) -> Tensor + inline at::Tensor stft(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t n_fft, c10::optional hop_length=c10::nullopt, c10::optional win_length=c10::nullopt, const c10::optional & window={}, bool center=true, c10::string_view pad_mode="reflect", bool normalized=false, c10::optional onesided=c10::nullopt, c10::optional return_complex=c10::nullopt) { + return at::_ops::stft_center::redispatch(dispatchKeySet, self, n_fft, hop_length, win_length, window, center, pad_mode, normalized, onesided, return_complex); + } + + // aten::istft(Tensor self, int n_fft, int? hop_length=None, int? win_length=None, Tensor? window=None, bool center=True, bool normalized=False, bool? onesided=None, int? length=None, bool return_complex=False) -> Tensor + inline at::Tensor istft(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t n_fft, c10::optional hop_length=c10::nullopt, c10::optional win_length=c10::nullopt, const c10::optional & window={}, bool center=true, bool normalized=false, c10::optional onesided=c10::nullopt, c10::optional length=c10::nullopt, bool return_complex=false) { + return at::_ops::istft::redispatch(dispatchKeySet, self, n_fft, hop_length, win_length, window, center, normalized, onesided, length, return_complex); + } + + // aten::stride.int(Tensor self, int dim) -> int + inline int64_t __dispatch_stride(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim) { + return at::_ops::stride_int::redispatch(dispatchKeySet, self, dim); + } + + // aten::stride.Dimname(Tensor self, Dimname dim) -> int + inline int64_t stride(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim) { + return at::_ops::stride_Dimname::redispatch(dispatchKeySet, self, dim); + } + + // aten::sym_stride.int(Tensor self, int dim) -> SymInt + inline c10::SymInt __dispatch_sym_stride(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim) { + return at::_ops::sym_stride_int::redispatch(dispatchKeySet, self, dim); + } + + // aten::sum(Tensor self, *, ScalarType? dtype=None) -> Tensor + inline at::Tensor sum(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional dtype=c10::nullopt) { + return at::_ops::sum::redispatch(dispatchKeySet, self, dtype); + } + + // aten::sum.dim_IntList(Tensor self, int[1]? dim, bool keepdim=False, *, ScalarType? dtype=None) -> Tensor + inline at::Tensor sum(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalIntArrayRef dim, bool keepdim=false, c10::optional dtype=c10::nullopt) { + return at::_ops::sum_dim_IntList::redispatch(dispatchKeySet, self, dim, keepdim, dtype); + } + + // aten::sum.dim_DimnameList(Tensor self, Dimname[1] dim, bool keepdim=False, *, ScalarType? dtype=None) -> Tensor + inline at::Tensor sum(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::DimnameList dim, bool keepdim=false, c10::optional dtype=c10::nullopt) { + return at::_ops::sum_dim_DimnameList::redispatch(dispatchKeySet, self, dim, keepdim, dtype); + } + + // aten::sum.IntList_out(Tensor self, int[1]? dim, bool keepdim=False, *, ScalarType? dtype=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & sum_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::OptionalIntArrayRef dim, bool keepdim=false, c10::optional dtype=c10::nullopt) { + return at::_ops::sum_IntList_out::redispatch(dispatchKeySet, self, dim, keepdim, dtype, out); + } + + // aten::sum.IntList_out(Tensor self, int[1]? dim, bool keepdim=False, *, ScalarType? dtype=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & sum_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalIntArrayRef dim, bool keepdim, c10::optional dtype, at::Tensor & out) { + return at::_ops::sum_IntList_out::redispatch(dispatchKeySet, self, dim, keepdim, dtype, out); + } + + // aten::sum.DimnameList_out(Tensor self, Dimname[1] dim, bool keepdim=False, *, ScalarType? dtype=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & sum_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::DimnameList dim, bool keepdim=false, c10::optional dtype=c10::nullopt) { + return at::_ops::sum_DimnameList_out::redispatch(dispatchKeySet, self, dim, keepdim, dtype, out); + } + + // aten::sum.DimnameList_out(Tensor self, Dimname[1] dim, bool keepdim=False, *, ScalarType? dtype=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & sum_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::DimnameList dim, bool keepdim, c10::optional dtype, at::Tensor & out) { + return at::_ops::sum_DimnameList_out::redispatch(dispatchKeySet, self, dim, keepdim, dtype, out); + } + + // aten::_nested_sum_backward(Tensor grad, Tensor self, int[1]? dim, bool keepdim=False) -> Tensor + inline at::Tensor _nested_sum_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad, const at::Tensor & self, at::OptionalIntArrayRef dim, bool keepdim=false) { + return at::_ops::_nested_sum_backward::redispatch(dispatchKeySet, grad, self, dim, keepdim); + } + + // aten::nansum(Tensor self, int[1]? dim=None, bool keepdim=False, *, ScalarType? dtype=None) -> Tensor + inline at::Tensor nansum(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalIntArrayRef dim=c10::nullopt, bool keepdim=false, c10::optional dtype=c10::nullopt) { + return at::_ops::nansum::redispatch(dispatchKeySet, self, dim, keepdim, dtype); + } + + // aten::nansum.out(Tensor self, int[1]? dim=None, bool keepdim=False, *, ScalarType? dtype=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & nansum_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::OptionalIntArrayRef dim=c10::nullopt, bool keepdim=false, c10::optional dtype=c10::nullopt) { + return at::_ops::nansum_out::redispatch(dispatchKeySet, self, dim, keepdim, dtype, out); + } + + // aten::nansum.out(Tensor self, int[1]? dim=None, bool keepdim=False, *, ScalarType? dtype=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & nansum_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalIntArrayRef dim, bool keepdim, c10::optional dtype, at::Tensor & out) { + return at::_ops::nansum_out::redispatch(dispatchKeySet, self, dim, keepdim, dtype, out); + } + + // aten::sum_to_size(Tensor self, SymInt[] size) -> Tensor + inline at::Tensor sum_to_size(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef size) { + return at::_ops::sum_to_size::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(size)); + } + + // aten::sum_to_size(Tensor self, SymInt[] size) -> Tensor + inline at::Tensor sum_to_size_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef size) { + return at::_ops::sum_to_size::redispatch(dispatchKeySet, self, size); + } + + // aten::sqrt(Tensor self) -> Tensor + inline at::Tensor sqrt(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::sqrt::redispatch(dispatchKeySet, self); + } + + // aten::sqrt_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & sqrt_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::sqrt_::redispatch(dispatchKeySet, self); + } + + // aten::sqrt.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & sqrt_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::sqrt_out::redispatch(dispatchKeySet, self, out); + } + + // aten::sqrt.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & sqrt_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::sqrt_out::redispatch(dispatchKeySet, self, out); + } + + // aten::square(Tensor self) -> Tensor + inline at::Tensor square(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::square::redispatch(dispatchKeySet, self); + } + + // aten::square_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & square_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::square_::redispatch(dispatchKeySet, self); + } + + // aten::square.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & square_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::square_out::redispatch(dispatchKeySet, self, out); + } + + // aten::square.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & square_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::square_out::redispatch(dispatchKeySet, self, out); + } + + // aten::std(Tensor self, bool unbiased=True) -> Tensor + inline at::Tensor std(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, bool unbiased) { + return at::_ops::std::redispatch(dispatchKeySet, self, unbiased); + } + + // aten::std.dim(Tensor self, int[1]? dim, bool unbiased=True, bool keepdim=False) -> Tensor + inline at::Tensor std(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalIntArrayRef dim, bool unbiased, bool keepdim=false) { + return at::_ops::std_dim::redispatch(dispatchKeySet, self, dim, unbiased, keepdim); + } + + // aten::std.correction(Tensor self, int[1]? dim=None, *, Scalar? correction=None, bool keepdim=False) -> Tensor + inline at::Tensor std(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalIntArrayRef dim=c10::nullopt, const c10::optional & correction=c10::nullopt, bool keepdim=false) { + return at::_ops::std_correction::redispatch(dispatchKeySet, self, dim, correction, keepdim); + } + + // aten::std_mean(Tensor self, bool unbiased=True) -> (Tensor, Tensor) + inline ::std::tuple std_mean(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, bool unbiased) { + return at::_ops::std_mean::redispatch(dispatchKeySet, self, unbiased); + } + + // aten::std_mean.dim(Tensor self, int[1]? dim, bool unbiased=True, bool keepdim=False) -> (Tensor, Tensor) + inline ::std::tuple std_mean(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalIntArrayRef dim, bool unbiased, bool keepdim=false) { + return at::_ops::std_mean_dim::redispatch(dispatchKeySet, self, dim, unbiased, keepdim); + } + + // aten::std_mean.correction(Tensor self, int[1]? dim=None, *, Scalar? correction=None, bool keepdim=False) -> (Tensor, Tensor) + inline ::std::tuple std_mean(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalIntArrayRef dim=c10::nullopt, const c10::optional & correction=c10::nullopt, bool keepdim=false) { + return at::_ops::std_mean_correction::redispatch(dispatchKeySet, self, dim, correction, keepdim); + } + + // aten::std_mean.names_dim(Tensor self, Dimname[1] dim, bool unbiased=True, bool keepdim=False) -> (Tensor, Tensor) + inline ::std::tuple std_mean(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::DimnameList dim, bool unbiased, bool keepdim=false) { + return at::_ops::std_mean_names_dim::redispatch(dispatchKeySet, self, dim, unbiased, keepdim); + } + + // aten::std_mean.correction_names(Tensor self, Dimname[1] dim, *, Scalar? correction=None, bool keepdim=False) -> (Tensor, Tensor) + inline ::std::tuple std_mean(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::DimnameList dim, const c10::optional & correction=c10::nullopt, bool keepdim=false) { + return at::_ops::std_mean_correction_names::redispatch(dispatchKeySet, self, dim, correction, keepdim); + } + + // aten::std.out(Tensor self, int[1]? dim, bool unbiased=True, bool keepdim=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & std_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::OptionalIntArrayRef dim, bool unbiased, bool keepdim=false) { + return at::_ops::std_out::redispatch(dispatchKeySet, self, dim, unbiased, keepdim, out); + } + + // aten::std.out(Tensor self, int[1]? dim, bool unbiased=True, bool keepdim=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & std_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalIntArrayRef dim, bool unbiased, bool keepdim, at::Tensor & out) { + return at::_ops::std_out::redispatch(dispatchKeySet, self, dim, unbiased, keepdim, out); + } + + // aten::std.correction_out(Tensor self, int[1]? dim=None, *, Scalar? correction=None, bool keepdim=False, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & std_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::OptionalIntArrayRef dim=c10::nullopt, const c10::optional & correction=c10::nullopt, bool keepdim=false) { + return at::_ops::std_correction_out::redispatch(dispatchKeySet, self, dim, correction, keepdim, out); + } + + // aten::std.correction_out(Tensor self, int[1]? dim=None, *, Scalar? correction=None, bool keepdim=False, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & std_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalIntArrayRef dim, const c10::optional & correction, bool keepdim, at::Tensor & out) { + return at::_ops::std_correction_out::redispatch(dispatchKeySet, self, dim, correction, keepdim, out); + } + + // aten::std.names_dim(Tensor self, Dimname[1] dim, bool unbiased=True, bool keepdim=False) -> Tensor + inline at::Tensor std(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::DimnameList dim, bool unbiased, bool keepdim=false) { + return at::_ops::std_names_dim::redispatch(dispatchKeySet, self, dim, unbiased, keepdim); + } + + // aten::std.names_out(Tensor self, Dimname[1] dim, bool unbiased=True, bool keepdim=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & std_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::DimnameList dim, bool unbiased, bool keepdim=false) { + return at::_ops::std_names_out::redispatch(dispatchKeySet, self, dim, unbiased, keepdim, out); + } + + // aten::std.names_out(Tensor self, Dimname[1] dim, bool unbiased=True, bool keepdim=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & std_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::DimnameList dim, bool unbiased, bool keepdim, at::Tensor & out) { + return at::_ops::std_names_out::redispatch(dispatchKeySet, self, dim, unbiased, keepdim, out); + } + + // aten::std.correction_names(Tensor self, Dimname[1] dim, *, Scalar? correction=None, bool keepdim=False) -> Tensor + inline at::Tensor std(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::DimnameList dim, const c10::optional & correction=c10::nullopt, bool keepdim=false) { + return at::_ops::std_correction_names::redispatch(dispatchKeySet, self, dim, correction, keepdim); + } + + // aten::std.correction_names_out(Tensor self, Dimname[1] dim, *, Scalar? correction=None, bool keepdim=False, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & std_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::DimnameList dim, const c10::optional & correction=c10::nullopt, bool keepdim=false) { + return at::_ops::std_correction_names_out::redispatch(dispatchKeySet, self, dim, correction, keepdim, out); + } + + // aten::std.correction_names_out(Tensor self, Dimname[1] dim, *, Scalar? correction=None, bool keepdim=False, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & std_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::DimnameList dim, const c10::optional & correction, bool keepdim, at::Tensor & out) { + return at::_ops::std_correction_names_out::redispatch(dispatchKeySet, self, dim, correction, keepdim, out); + } + + // aten::prod(Tensor self, *, ScalarType? dtype=None) -> Tensor + inline at::Tensor prod(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional dtype=c10::nullopt) { + return at::_ops::prod::redispatch(dispatchKeySet, self, dtype); + } + + // aten::prod.dim_int(Tensor self, int dim, bool keepdim=False, *, ScalarType? dtype=None) -> Tensor + inline at::Tensor prod(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, bool keepdim=false, c10::optional dtype=c10::nullopt) { + return at::_ops::prod_dim_int::redispatch(dispatchKeySet, self, dim, keepdim, dtype); + } + + // aten::prod.int_out(Tensor self, int dim, bool keepdim=False, *, ScalarType? dtype=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & prod_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t dim, bool keepdim=false, c10::optional dtype=c10::nullopt) { + return at::_ops::prod_int_out::redispatch(dispatchKeySet, self, dim, keepdim, dtype, out); + } + + // aten::prod.int_out(Tensor self, int dim, bool keepdim=False, *, ScalarType? dtype=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & prod_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, bool keepdim, c10::optional dtype, at::Tensor & out) { + return at::_ops::prod_int_out::redispatch(dispatchKeySet, self, dim, keepdim, dtype, out); + } + + // aten::prod.dim_Dimname(Tensor self, Dimname dim, bool keepdim=False, *, ScalarType? dtype=None) -> Tensor + inline at::Tensor prod(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim, bool keepdim=false, c10::optional dtype=c10::nullopt) { + return at::_ops::prod_dim_Dimname::redispatch(dispatchKeySet, self, dim, keepdim, dtype); + } + + // aten::prod.Dimname_out(Tensor self, Dimname dim, bool keepdim=False, *, ScalarType? dtype=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & prod_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::Dimname dim, bool keepdim=false, c10::optional dtype=c10::nullopt) { + return at::_ops::prod_Dimname_out::redispatch(dispatchKeySet, self, dim, keepdim, dtype, out); + } + + // aten::prod.Dimname_out(Tensor self, Dimname dim, bool keepdim=False, *, ScalarType? dtype=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & prod_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim, bool keepdim, c10::optional dtype, at::Tensor & out) { + return at::_ops::prod_Dimname_out::redispatch(dispatchKeySet, self, dim, keepdim, dtype, out); + } + + // aten::t(Tensor(a) self) -> Tensor(a) + inline at::Tensor t(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::t::redispatch(dispatchKeySet, self); + } + + // aten::t_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & t_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::t_::redispatch(dispatchKeySet, self); + } + + // aten::tan(Tensor self) -> Tensor + inline at::Tensor tan(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::tan::redispatch(dispatchKeySet, self); + } + + // aten::tan_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & tan_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::tan_::redispatch(dispatchKeySet, self); + } + + // aten::tan.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & tan_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::tan_out::redispatch(dispatchKeySet, self, out); + } + + // aten::tan.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & tan_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::tan_out::redispatch(dispatchKeySet, self, out); + } + + // aten::tanh(Tensor self) -> Tensor + inline at::Tensor tanh(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::tanh::redispatch(dispatchKeySet, self); + } + + // aten::tanh_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & tanh_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::tanh_::redispatch(dispatchKeySet, self); + } + + // aten::tanh.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & tanh_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::tanh_out::redispatch(dispatchKeySet, self, out); + } + + // aten::tanh.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & tanh_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::tanh_out::redispatch(dispatchKeySet, self, out); + } + + // aten::tensordot(Tensor self, Tensor other, int[] dims_self, int[] dims_other) -> Tensor + inline at::Tensor tensordot(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::IntArrayRef dims_self, at::IntArrayRef dims_other) { + return at::_ops::tensordot::redispatch(dispatchKeySet, self, other, dims_self, dims_other); + } + + // aten::tensordot.out(Tensor self, Tensor other, int[] dims_self, int[] dims_other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & tensordot_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other, at::IntArrayRef dims_self, at::IntArrayRef dims_other) { + return at::_ops::tensordot_out::redispatch(dispatchKeySet, self, other, dims_self, dims_other, out); + } + + // aten::tensordot.out(Tensor self, Tensor other, int[] dims_self, int[] dims_other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & tensordot_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::IntArrayRef dims_self, at::IntArrayRef dims_other, at::Tensor & out) { + return at::_ops::tensordot_out::redispatch(dispatchKeySet, self, other, dims_self, dims_other, out); + } + + // aten::threshold(Tensor self, Scalar threshold, Scalar value) -> Tensor + inline at::Tensor threshold(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & threshold, const at::Scalar & value) { + return at::_ops::threshold::redispatch(dispatchKeySet, self, threshold, value); + } + + // aten::threshold_(Tensor(a!) self, Scalar threshold, Scalar value) -> Tensor(a!) + inline at::Tensor & threshold_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Scalar & threshold, const at::Scalar & value) { + return at::_ops::threshold_::redispatch(dispatchKeySet, self, threshold, value); + } + + // aten::threshold.out(Tensor self, Scalar threshold, Scalar value, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & threshold_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Scalar & threshold, const at::Scalar & value) { + return at::_ops::threshold_out::redispatch(dispatchKeySet, self, threshold, value, out); + } + + // aten::threshold.out(Tensor self, Scalar threshold, Scalar value, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & threshold_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & threshold, const at::Scalar & value, at::Tensor & out) { + return at::_ops::threshold_out::redispatch(dispatchKeySet, self, threshold, value, out); + } + + // aten::threshold_backward.grad_input(Tensor grad_output, Tensor self, Scalar threshold, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & threshold_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, const at::Tensor & self, const at::Scalar & threshold) { + return at::_ops::threshold_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, threshold, grad_input); + } + + // aten::threshold_backward.grad_input(Tensor grad_output, Tensor self, Scalar threshold, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & threshold_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, const at::Scalar & threshold, at::Tensor & grad_input) { + return at::_ops::threshold_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, threshold, grad_input); + } + + // aten::threshold_backward(Tensor grad_output, Tensor self, Scalar threshold) -> Tensor + inline at::Tensor threshold_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, const at::Scalar & threshold) { + return at::_ops::threshold_backward::redispatch(dispatchKeySet, grad_output, self, threshold); + } + + // aten::tile(Tensor self, SymInt[] dims) -> Tensor + inline at::Tensor tile(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef dims) { + return at::_ops::tile::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(dims)); + } + + // aten::tile(Tensor self, SymInt[] dims) -> Tensor + inline at::Tensor tile_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef dims) { + return at::_ops::tile::redispatch(dispatchKeySet, self, dims); + } + + // aten::transpose.int(Tensor(a) self, int dim0, int dim1) -> Tensor(a) + inline at::Tensor transpose(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim0, int64_t dim1) { + return at::_ops::transpose_int::redispatch(dispatchKeySet, self, dim0, dim1); + } + + // aten::transpose.Dimname(Tensor(a) self, Dimname dim0, Dimname dim1) -> Tensor(a) + inline at::Tensor transpose(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim0, at::Dimname dim1) { + return at::_ops::transpose_Dimname::redispatch(dispatchKeySet, self, dim0, dim1); + } + + // aten::_mkldnn_transpose(Tensor self, int dim0, int dim1) -> Tensor + inline at::Tensor _mkldnn_transpose(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim0, int64_t dim1) { + return at::_ops::_mkldnn_transpose::redispatch(dispatchKeySet, self, dim0, dim1); + } + + // aten::transpose_(Tensor(a!) self, int dim0, int dim1) -> Tensor(a!) + inline at::Tensor & transpose_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, int64_t dim0, int64_t dim1) { + return at::_ops::transpose_::redispatch(dispatchKeySet, self, dim0, dim1); + } + + // aten::_mkldnn_transpose_(Tensor(a!) self, int dim0, int dim1) -> Tensor(a!) + inline at::Tensor & _mkldnn_transpose_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, int64_t dim0, int64_t dim1) { + return at::_ops::_mkldnn_transpose_::redispatch(dispatchKeySet, self, dim0, dim1); + } + + // aten::one_hot(Tensor self, int num_classes=-1) -> Tensor + inline at::Tensor one_hot(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t num_classes=-1) { + return at::_ops::one_hot::redispatch(dispatchKeySet, self, num_classes); + } + + // aten::flip(Tensor self, int[] dims) -> Tensor + inline at::Tensor flip(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef dims) { + return at::_ops::flip::redispatch(dispatchKeySet, self, dims); + } + + // aten::fliplr(Tensor self) -> Tensor + inline at::Tensor fliplr(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::fliplr::redispatch(dispatchKeySet, self); + } + + // aten::flipud(Tensor self) -> Tensor + inline at::Tensor flipud(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::flipud::redispatch(dispatchKeySet, self); + } + + // aten::roll(Tensor self, SymInt[1] shifts, int[1] dims=[]) -> Tensor + inline at::Tensor roll(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef shifts, at::IntArrayRef dims={}) { + return at::_ops::roll::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(shifts), dims); + } + + // aten::roll(Tensor self, SymInt[1] shifts, int[1] dims=[]) -> Tensor + inline at::Tensor roll_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef shifts, at::IntArrayRef dims={}) { + return at::_ops::roll::redispatch(dispatchKeySet, self, shifts, dims); + } + + // aten::rot90(Tensor self, int k=1, int[] dims=[0,1]) -> Tensor + inline at::Tensor rot90(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t k=1, at::IntArrayRef dims={0,1}) { + return at::_ops::rot90::redispatch(dispatchKeySet, self, k, dims); + } + + // aten::trapezoid.x(Tensor y, Tensor x, *, int dim=-1) -> Tensor + inline at::Tensor trapezoid(c10::DispatchKeySet dispatchKeySet, const at::Tensor & y, const at::Tensor & x, int64_t dim=-1) { + return at::_ops::trapezoid_x::redispatch(dispatchKeySet, y, x, dim); + } + + // aten::trapezoid.dx(Tensor y, *, Scalar dx=1, int dim=-1) -> Tensor + inline at::Tensor trapezoid(c10::DispatchKeySet dispatchKeySet, const at::Tensor & y, const at::Scalar & dx=1, int64_t dim=-1) { + return at::_ops::trapezoid_dx::redispatch(dispatchKeySet, y, dx, dim); + } + + // aten::trapz.x(Tensor y, Tensor x, *, int dim=-1) -> Tensor + inline at::Tensor trapz(c10::DispatchKeySet dispatchKeySet, const at::Tensor & y, const at::Tensor & x, int64_t dim=-1) { + return at::_ops::trapz_x::redispatch(dispatchKeySet, y, x, dim); + } + + // aten::trapz.dx(Tensor y, *, float dx=1, int dim=-1) -> Tensor + inline at::Tensor trapz(c10::DispatchKeySet dispatchKeySet, const at::Tensor & y, double dx=1, int64_t dim=-1) { + return at::_ops::trapz_dx::redispatch(dispatchKeySet, y, dx, dim); + } + + // aten::_transform_bias_rescale_qkv(Tensor qkv, Tensor qkv_bias, int num_heads) -> (Tensor, Tensor, Tensor) + inline ::std::tuple _transform_bias_rescale_qkv(c10::DispatchKeySet dispatchKeySet, const at::Tensor & qkv, const at::Tensor & qkv_bias, int64_t num_heads) { + return at::_ops::_transform_bias_rescale_qkv::redispatch(dispatchKeySet, qkv, qkv_bias, num_heads); + } + + // aten::_nested_tensor_from_mask(Tensor t, Tensor mask, bool mask_check=True) -> Tensor + inline at::Tensor _nested_tensor_from_mask(c10::DispatchKeySet dispatchKeySet, const at::Tensor & t, const at::Tensor & mask, bool mask_check=true) { + return at::_ops::_nested_tensor_from_mask::redispatch(dispatchKeySet, t, mask, mask_check); + } + + // aten::_nested_tensor_from_mask_left_aligned(Tensor t, Tensor mask) -> bool + inline bool _nested_tensor_from_mask_left_aligned(c10::DispatchKeySet dispatchKeySet, const at::Tensor & t, const at::Tensor & mask) { + return at::_ops::_nested_tensor_from_mask_left_aligned::redispatch(dispatchKeySet, t, mask); + } + + // aten::_nested_from_padded(Tensor padded, Tensor cpu_nested_shape_example, bool fuse_transform_0213=False) -> Tensor + inline at::Tensor _nested_from_padded(c10::DispatchKeySet dispatchKeySet, const at::Tensor & padded, const at::Tensor & cpu_nested_shape_example, bool fuse_transform_0213=false) { + return at::_ops::_nested_from_padded::redispatch(dispatchKeySet, padded, cpu_nested_shape_example, fuse_transform_0213); + } + + // aten::_nested_tensor_size(Tensor self) -> Tensor + inline at::Tensor _nested_tensor_size(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::_nested_tensor_size::redispatch(dispatchKeySet, self); + } + + // aten::_nested_tensor_strides(Tensor self) -> Tensor + inline at::Tensor _nested_tensor_strides(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::_nested_tensor_strides::redispatch(dispatchKeySet, self); + } + + // aten::_nested_tensor_storage_offsets(Tensor self) -> Tensor + inline at::Tensor _nested_tensor_storage_offsets(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::_nested_tensor_storage_offsets::redispatch(dispatchKeySet, self); + } + + // aten::_nested_from_padded_and_nested_example(Tensor padded, Tensor nt_example) -> Tensor + inline at::Tensor _nested_from_padded_and_nested_example(c10::DispatchKeySet dispatchKeySet, const at::Tensor & padded, const at::Tensor & nt_example) { + return at::_ops::_nested_from_padded_and_nested_example::redispatch(dispatchKeySet, padded, nt_example); + } + + // aten::_nested_view_from_buffer(Tensor(a) self, Tensor nested_size, Tensor nested_strides, Tensor offsets) -> Tensor(a) + inline at::Tensor _nested_view_from_buffer(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & nested_size, const at::Tensor & nested_strides, const at::Tensor & offsets) { + return at::_ops::_nested_view_from_buffer::redispatch(dispatchKeySet, self, nested_size, nested_strides, offsets); + } + + // aten::_nested_view_from_buffer_copy(Tensor self, Tensor nested_size, Tensor nested_strides, Tensor offsets) -> Tensor + inline at::Tensor _nested_view_from_buffer_copy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & nested_size, const at::Tensor & nested_strides, const at::Tensor & offsets) { + return at::_ops::_nested_view_from_buffer_copy::redispatch(dispatchKeySet, self, nested_size, nested_strides, offsets); + } + + // aten::_nested_view_from_jagged(Tensor(a) self, Tensor offsets, Tensor dummy, Tensor? lengths=None, int ragged_idx=1) -> Tensor(a) + inline at::Tensor _nested_view_from_jagged(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & offsets, const at::Tensor & dummy, const c10::optional & lengths={}, int64_t ragged_idx=1) { + return at::_ops::_nested_view_from_jagged::redispatch(dispatchKeySet, self, offsets, dummy, lengths, ragged_idx); + } + + // aten::_nested_view_from_jagged_copy(Tensor self, Tensor offsets, Tensor dummy, Tensor? lengths=None, int ragged_idx=1) -> Tensor + inline at::Tensor _nested_view_from_jagged_copy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & offsets, const at::Tensor & dummy, const c10::optional & lengths={}, int64_t ragged_idx=1) { + return at::_ops::_nested_view_from_jagged_copy::redispatch(dispatchKeySet, self, offsets, dummy, lengths, ragged_idx); + } + + // aten::_nested_get_values(Tensor(a) self) -> Tensor(a) + inline at::Tensor _nested_get_values(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::_nested_get_values::redispatch(dispatchKeySet, self); + } + + // aten::_nested_get_values_copy(Tensor self) -> Tensor + inline at::Tensor _nested_get_values_copy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::_nested_get_values_copy::redispatch(dispatchKeySet, self); + } + + // aten::_nested_get_offsets(Tensor self) -> Tensor + inline at::Tensor _nested_get_offsets(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::_nested_get_offsets::redispatch(dispatchKeySet, self); + } + + // aten::_nested_get_lengths(Tensor self) -> Tensor + inline at::Tensor _nested_get_lengths(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::_nested_get_lengths::redispatch(dispatchKeySet, self); + } + + // aten::_nested_get_ragged_idx(Tensor self) -> int + inline int64_t _nested_get_ragged_idx(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::_nested_get_ragged_idx::redispatch(dispatchKeySet, self); + } + + // aten::_nested_get_jagged_dummy(Tensor any) -> Tensor + inline at::Tensor _nested_get_jagged_dummy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & any) { + return at::_ops::_nested_get_jagged_dummy::redispatch(dispatchKeySet, any); + } + + // aten::_trilinear(Tensor i1, Tensor i2, Tensor i3, int[] expand1, int[] expand2, int[] expand3, int[] sumdim, int unroll_dim=1) -> Tensor + inline at::Tensor _trilinear(c10::DispatchKeySet dispatchKeySet, const at::Tensor & i1, const at::Tensor & i2, const at::Tensor & i3, at::IntArrayRef expand1, at::IntArrayRef expand2, at::IntArrayRef expand3, at::IntArrayRef sumdim, int64_t unroll_dim=1) { + return at::_ops::_trilinear::redispatch(dispatchKeySet, i1, i2, i3, expand1, expand2, expand3, sumdim, unroll_dim); + } + + // aten::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 + inline at::Tensor triplet_margin_loss(c10::DispatchKeySet dispatchKeySet, const at::Tensor & anchor, const at::Tensor & positive, const at::Tensor & negative, double margin=1.0, double p=2, double eps=1e-06, bool swap=false, int64_t reduction=at::Reduction::Mean) { + return at::_ops::triplet_margin_loss::redispatch(dispatchKeySet, anchor, positive, negative, margin, p, eps, swap, reduction); + } + + // aten::trunc(Tensor self) -> Tensor + inline at::Tensor trunc(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::trunc::redispatch(dispatchKeySet, self); + } + + // aten::trunc_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & trunc_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::trunc_::redispatch(dispatchKeySet, self); + } + + // aten::trunc.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & trunc_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::trunc_out::redispatch(dispatchKeySet, self, out); + } + + // aten::trunc.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & trunc_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::trunc_out::redispatch(dispatchKeySet, self, out); + } + + // aten::fix(Tensor self) -> Tensor + inline at::Tensor fix(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::fix::redispatch(dispatchKeySet, self); + } + + // aten::fix_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & fix_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::fix_::redispatch(dispatchKeySet, self); + } + + // aten::fix.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fix_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::fix_out::redispatch(dispatchKeySet, self, out); + } + + // aten::fix.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fix_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::fix_out::redispatch(dispatchKeySet, self, out); + } + + // aten::type_as(Tensor self, Tensor other) -> Tensor + inline at::Tensor type_as(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::type_as::redispatch(dispatchKeySet, self, other); + } + + // aten::_has_compatible_shallow_copy_type(Tensor self, Tensor from) -> bool + inline bool _has_compatible_shallow_copy_type(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & from) { + return at::_ops::_has_compatible_shallow_copy_type::redispatch(dispatchKeySet, self, from); + } + + // aten::_unique(Tensor self, bool sorted=True, bool return_inverse=False) -> (Tensor, Tensor) + inline ::std::tuple _unique(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, bool sorted=true, bool return_inverse=false) { + return at::_ops::_unique::redispatch(dispatchKeySet, self, sorted, return_inverse); + } + + // aten::unique_dim(Tensor self, int dim, bool sorted=True, bool return_inverse=False, bool return_counts=False) -> (Tensor, Tensor, Tensor) + inline ::std::tuple unique_dim(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, bool sorted=true, bool return_inverse=false, bool return_counts=false) { + return at::_ops::unique_dim::redispatch(dispatchKeySet, self, dim, sorted, return_inverse, return_counts); + } + + // aten::unique_consecutive(Tensor self, bool return_inverse=False, bool return_counts=False, int? dim=None) -> (Tensor, Tensor, Tensor) + inline ::std::tuple unique_consecutive(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, bool return_inverse=false, bool return_counts=false, c10::optional dim=c10::nullopt) { + return at::_ops::unique_consecutive::redispatch(dispatchKeySet, self, return_inverse, return_counts, dim); + } + + // aten::unique_dim_consecutive(Tensor self, int dim, bool return_inverse=False, bool return_counts=False) -> (Tensor, Tensor, Tensor) + inline ::std::tuple unique_dim_consecutive(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, bool return_inverse=false, bool return_counts=false) { + return at::_ops::unique_dim_consecutive::redispatch(dispatchKeySet, self, dim, return_inverse, return_counts); + } + + // aten::_unique2(Tensor self, bool sorted=True, bool return_inverse=False, bool return_counts=False) -> (Tensor, Tensor, Tensor) + inline ::std::tuple _unique2(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, bool sorted=true, bool return_inverse=false, bool return_counts=false) { + return at::_ops::_unique2::redispatch(dispatchKeySet, self, sorted, return_inverse, return_counts); + } + + // aten::_unsafe_view(Tensor self, SymInt[] size) -> Tensor + inline at::Tensor _unsafe_view(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef size) { + return at::_ops::_unsafe_view::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(size)); + } + + // aten::_unsafe_view(Tensor self, SymInt[] size) -> Tensor + inline at::Tensor _unsafe_view_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef size) { + return at::_ops::_unsafe_view::redispatch(dispatchKeySet, self, size); + } + + // aten::unsqueeze(Tensor(a) self, int dim) -> Tensor(a) + inline at::Tensor unsqueeze(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim) { + return at::_ops::unsqueeze::redispatch(dispatchKeySet, self, dim); + } + + // aten::unsqueeze_(Tensor(a!) self, int dim) -> Tensor(a!) + inline at::Tensor & unsqueeze_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, int64_t dim) { + return at::_ops::unsqueeze_::redispatch(dispatchKeySet, self, dim); + } + + // aten::vander(Tensor x, int? N=None, bool increasing=False) -> Tensor + inline at::Tensor vander(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, c10::optional N=c10::nullopt, bool increasing=false) { + return at::_ops::vander::redispatch(dispatchKeySet, x, N, increasing); + } + + // aten::var(Tensor self, bool unbiased=True) -> Tensor + inline at::Tensor var(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, bool unbiased) { + return at::_ops::var::redispatch(dispatchKeySet, self, unbiased); + } + + // aten::var.dim(Tensor self, int[1]? dim, bool unbiased=True, bool keepdim=False) -> Tensor + inline at::Tensor var(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalIntArrayRef dim, bool unbiased, bool keepdim=false) { + return at::_ops::var_dim::redispatch(dispatchKeySet, self, dim, unbiased, keepdim); + } + + // aten::var.correction(Tensor self, int[1]? dim=None, *, Scalar? correction=None, bool keepdim=False) -> Tensor + inline at::Tensor var(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalIntArrayRef dim=c10::nullopt, const c10::optional & correction=c10::nullopt, bool keepdim=false) { + return at::_ops::var_correction::redispatch(dispatchKeySet, self, dim, correction, keepdim); + } + + // aten::var.out(Tensor self, int[1]? dim, bool unbiased=True, bool keepdim=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & var_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::OptionalIntArrayRef dim, bool unbiased, bool keepdim=false) { + return at::_ops::var_out::redispatch(dispatchKeySet, self, dim, unbiased, keepdim, out); + } + + // aten::var.out(Tensor self, int[1]? dim, bool unbiased=True, bool keepdim=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & var_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalIntArrayRef dim, bool unbiased, bool keepdim, at::Tensor & out) { + return at::_ops::var_out::redispatch(dispatchKeySet, self, dim, unbiased, keepdim, out); + } + + // aten::var.correction_out(Tensor self, int[1]? dim=None, *, Scalar? correction=None, bool keepdim=False, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & var_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::OptionalIntArrayRef dim=c10::nullopt, const c10::optional & correction=c10::nullopt, bool keepdim=false) { + return at::_ops::var_correction_out::redispatch(dispatchKeySet, self, dim, correction, keepdim, out); + } + + // aten::var.correction_out(Tensor self, int[1]? dim=None, *, Scalar? correction=None, bool keepdim=False, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & var_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalIntArrayRef dim, const c10::optional & correction, bool keepdim, at::Tensor & out) { + return at::_ops::var_correction_out::redispatch(dispatchKeySet, self, dim, correction, keepdim, out); + } + + // aten::var.names_dim(Tensor self, Dimname[1] dim, bool unbiased=True, bool keepdim=False) -> Tensor + inline at::Tensor var(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::DimnameList dim, bool unbiased, bool keepdim=false) { + return at::_ops::var_names_dim::redispatch(dispatchKeySet, self, dim, unbiased, keepdim); + } + + // aten::var.names_out(Tensor self, Dimname[1] dim, bool unbiased=True, bool keepdim=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & var_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::DimnameList dim, bool unbiased, bool keepdim=false) { + return at::_ops::var_names_out::redispatch(dispatchKeySet, self, dim, unbiased, keepdim, out); + } + + // aten::var.names_out(Tensor self, Dimname[1] dim, bool unbiased=True, bool keepdim=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & var_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::DimnameList dim, bool unbiased, bool keepdim, at::Tensor & out) { + return at::_ops::var_names_out::redispatch(dispatchKeySet, self, dim, unbiased, keepdim, out); + } + + // aten::var.correction_names(Tensor self, Dimname[1] dim, *, Scalar? correction=None, bool keepdim=False) -> Tensor + inline at::Tensor var(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::DimnameList dim, const c10::optional & correction=c10::nullopt, bool keepdim=false) { + return at::_ops::var_correction_names::redispatch(dispatchKeySet, self, dim, correction, keepdim); + } + + // aten::var.correction_names_out(Tensor self, Dimname[1] dim, *, Scalar? correction=None, bool keepdim=False, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & var_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::DimnameList dim, const c10::optional & correction=c10::nullopt, bool keepdim=false) { + return at::_ops::var_correction_names_out::redispatch(dispatchKeySet, self, dim, correction, keepdim, out); + } + + // aten::var.correction_names_out(Tensor self, Dimname[1] dim, *, Scalar? correction=None, bool keepdim=False, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & var_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::DimnameList dim, const c10::optional & correction, bool keepdim, at::Tensor & out) { + return at::_ops::var_correction_names_out::redispatch(dispatchKeySet, self, dim, correction, keepdim, out); + } + + // aten::var_mean(Tensor self, bool unbiased=True) -> (Tensor, Tensor) + inline ::std::tuple var_mean(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, bool unbiased) { + return at::_ops::var_mean::redispatch(dispatchKeySet, self, unbiased); + } + + // aten::var_mean.dim(Tensor self, int[1]? dim, bool unbiased=True, bool keepdim=False) -> (Tensor, Tensor) + inline ::std::tuple var_mean(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalIntArrayRef dim, bool unbiased, bool keepdim=false) { + return at::_ops::var_mean_dim::redispatch(dispatchKeySet, self, dim, unbiased, keepdim); + } + + // aten::var_mean.correction(Tensor self, int[1]? dim=None, *, Scalar? correction=None, bool keepdim=False) -> (Tensor, Tensor) + inline ::std::tuple var_mean(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalIntArrayRef dim=c10::nullopt, const c10::optional & correction=c10::nullopt, bool keepdim=false) { + return at::_ops::var_mean_correction::redispatch(dispatchKeySet, self, dim, correction, keepdim); + } + + // aten::var_mean.names_dim(Tensor self, Dimname[1] dim, bool unbiased=True, bool keepdim=False) -> (Tensor, Tensor) + inline ::std::tuple var_mean(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::DimnameList dim, bool unbiased, bool keepdim=false) { + return at::_ops::var_mean_names_dim::redispatch(dispatchKeySet, self, dim, unbiased, keepdim); + } + + // aten::var_mean.correction_names(Tensor self, Dimname[1] dim, *, Scalar? correction=None, bool keepdim=False) -> (Tensor, Tensor) + inline ::std::tuple var_mean(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::DimnameList dim, const c10::optional & correction=c10::nullopt, bool keepdim=false) { + return at::_ops::var_mean_correction_names::redispatch(dispatchKeySet, self, dim, correction, keepdim); + } + + // aten::view_as(Tensor(a) self, Tensor other) -> Tensor(a) + inline at::Tensor view_as(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::view_as::redispatch(dispatchKeySet, self, other); + } + + // aten::where.self(Tensor condition, Tensor self, Tensor other) -> Tensor + inline at::Tensor where(c10::DispatchKeySet dispatchKeySet, const at::Tensor & condition, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::where_self::redispatch(dispatchKeySet, condition, self, other); + } + + // aten::where.self_out(Tensor condition, Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & where_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & condition, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::where_self_out::redispatch(dispatchKeySet, condition, self, other, out); + } + + // aten::where.self_out(Tensor condition, Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & where_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & condition, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::where_self_out::redispatch(dispatchKeySet, condition, self, other, out); + } + + // aten::where.ScalarSelf(Tensor condition, Scalar self, Tensor other) -> Tensor + inline at::Tensor where(c10::DispatchKeySet dispatchKeySet, const at::Tensor & condition, const at::Scalar & self, const at::Tensor & other) { + return at::_ops::where_ScalarSelf::redispatch(dispatchKeySet, condition, self, other); + } + + // aten::where.ScalarOther(Tensor condition, Tensor self, Scalar other) -> Tensor + inline at::Tensor where(c10::DispatchKeySet dispatchKeySet, const at::Tensor & condition, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::where_ScalarOther::redispatch(dispatchKeySet, condition, self, other); + } + + // aten::where.Scalar(Tensor condition, Scalar self, Scalar other) -> Tensor + inline at::Tensor where(c10::DispatchKeySet dispatchKeySet, const at::Tensor & condition, const at::Scalar & self, const at::Scalar & other) { + return at::_ops::where_Scalar::redispatch(dispatchKeySet, condition, self, other); + } + + // aten::where(Tensor condition) -> Tensor[] + inline ::std::vector where(c10::DispatchKeySet dispatchKeySet, const at::Tensor & condition) { + return at::_ops::where::redispatch(dispatchKeySet, condition); + } + + // aten::norm_except_dim(Tensor v, int pow=2, int dim=0) -> Tensor + inline at::Tensor norm_except_dim(c10::DispatchKeySet dispatchKeySet, const at::Tensor & v, int64_t pow=2, int64_t dim=0) { + return at::_ops::norm_except_dim::redispatch(dispatchKeySet, v, pow, dim); + } + + // aten::_weight_norm(Tensor v, Tensor g, int dim=0) -> Tensor + inline at::Tensor _weight_norm(c10::DispatchKeySet dispatchKeySet, const at::Tensor & v, const at::Tensor & g, int64_t dim=0) { + return at::_ops::_weight_norm::redispatch(dispatchKeySet, v, g, dim); + } + + // aten::_weight_norm_interface(Tensor v, Tensor g, int dim=0) -> (Tensor, Tensor) + inline ::std::tuple _weight_norm_interface(c10::DispatchKeySet dispatchKeySet, const at::Tensor & v, const at::Tensor & g, int64_t dim=0) { + return at::_ops::_weight_norm_interface::redispatch(dispatchKeySet, v, g, dim); + } + + // aten::_weight_norm_interface_backward(Tensor grad_w, Tensor saved_v, Tensor saved_g, Tensor saved_norms, int dim) -> (Tensor, Tensor) + inline ::std::tuple _weight_norm_interface_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_w, const at::Tensor & saved_v, const at::Tensor & saved_g, const at::Tensor & saved_norms, int64_t dim) { + return at::_ops::_weight_norm_interface_backward::redispatch(dispatchKeySet, grad_w, saved_v, saved_g, saved_norms, dim); + } + + // aten::_weight_norm_differentiable_backward(Tensor grad_w, Tensor saved_v, Tensor saved_g, Tensor saved_norms, int dim) -> (Tensor, Tensor) + inline ::std::tuple _weight_norm_differentiable_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_w, const at::Tensor & saved_v, const at::Tensor & saved_g, const at::Tensor & saved_norms, int64_t dim) { + return at::_ops::_weight_norm_differentiable_backward::redispatch(dispatchKeySet, grad_w, saved_v, saved_g, saved_norms, dim); + } + + // aten::zeros.names(int[] size, *, Dimname[]? names, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor zeros(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, c10::optional names, at::TensorOptions options={}) { + return at::_ops::zeros_names::redispatch(dispatchKeySet, size, names, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::zeros.names(int[] size, *, Dimname[]? names, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor zeros(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, c10::optional names, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::zeros_names::redispatch(dispatchKeySet, size, names, dtype, layout, device, pin_memory); + } + + // aten::_efficientzerotensor(SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor _efficientzerotensor(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, at::TensorOptions options={}) { + return at::_ops::_efficientzerotensor::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::_efficientzerotensor(SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor _efficientzerotensor(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::_efficientzerotensor::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), dtype, layout, device, pin_memory); + } + + // aten::_efficientzerotensor(SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor _efficientzerotensor_symint(c10::DispatchKeySet dispatchKeySet, c10::SymIntArrayRef size, at::TensorOptions options={}) { + return at::_ops::_efficientzerotensor::redispatch(dispatchKeySet, size, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::_efficientzerotensor(SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor _efficientzerotensor_symint(c10::DispatchKeySet dispatchKeySet, c10::SymIntArrayRef size, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::_efficientzerotensor::redispatch(dispatchKeySet, size, dtype, layout, device, pin_memory); + } + + // aten::zeros(SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor zeros(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, at::TensorOptions options={}) { + return at::_ops::zeros::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::zeros(SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor zeros(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::zeros::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), dtype, layout, device, pin_memory); + } + + // aten::zeros(SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor zeros_symint(c10::DispatchKeySet dispatchKeySet, c10::SymIntArrayRef size, at::TensorOptions options={}) { + return at::_ops::zeros::redispatch(dispatchKeySet, size, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::zeros(SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor zeros_symint(c10::DispatchKeySet dispatchKeySet, c10::SymIntArrayRef size, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::zeros::redispatch(dispatchKeySet, size, dtype, layout, device, pin_memory); + } + + // aten::zeros.out(SymInt[] size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & zeros_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, at::IntArrayRef size) { + return at::_ops::zeros_out::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), out); + } + + // aten::zeros.out(SymInt[] size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & zeros_outf(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, at::Tensor & out) { + return at::_ops::zeros_out::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), out); + } + + // aten::zeros.out(SymInt[] size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & zeros_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, c10::SymIntArrayRef size) { + return at::_ops::zeros_out::redispatch(dispatchKeySet, size, out); + } + + // aten::zeros.out(SymInt[] size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & zeros_symint_outf(c10::DispatchKeySet dispatchKeySet, c10::SymIntArrayRef size, at::Tensor & out) { + return at::_ops::zeros_out::redispatch(dispatchKeySet, size, out); + } + + // aten::zeros_like(Tensor self, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, MemoryFormat? memory_format=None) -> Tensor + inline at::Tensor zeros_like(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::TensorOptions options={}, c10::optional memory_format=c10::nullopt) { + return at::_ops::zeros_like::redispatch(dispatchKeySet, self, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt(), c10::impl::check_tensor_options_and_extract_memory_format(options, memory_format)); + } + + // aten::zeros_like(Tensor self, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, MemoryFormat? memory_format=None) -> Tensor + inline at::Tensor zeros_like(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory, c10::optional memory_format) { + return at::_ops::zeros_like::redispatch(dispatchKeySet, self, dtype, layout, device, pin_memory, memory_format); + } + + // aten::_standard_gamma_grad(Tensor self, Tensor output) -> Tensor + inline at::Tensor _standard_gamma_grad(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & output) { + return at::_ops::_standard_gamma_grad::redispatch(dispatchKeySet, self, output); + } + + // aten::_standard_gamma(Tensor self, Generator? generator=None) -> Tensor + inline at::Tensor _standard_gamma(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional generator=c10::nullopt) { + return at::_ops::_standard_gamma::redispatch(dispatchKeySet, self, generator); + } + + // aten::_dirichlet_grad(Tensor x, Tensor alpha, Tensor total) -> Tensor + inline at::Tensor _dirichlet_grad(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, const at::Tensor & alpha, const at::Tensor & total) { + return at::_ops::_dirichlet_grad::redispatch(dispatchKeySet, x, alpha, total); + } + + // aten::_sample_dirichlet(Tensor self, Generator? generator=None) -> Tensor + inline at::Tensor _sample_dirichlet(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional generator=c10::nullopt) { + return at::_ops::_sample_dirichlet::redispatch(dispatchKeySet, self, generator); + } + + // aten::poisson(Tensor self, Generator? generator=None) -> Tensor + inline at::Tensor poisson(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional generator=c10::nullopt) { + return at::_ops::poisson::redispatch(dispatchKeySet, self, generator); + } + + // aten::binomial(Tensor count, Tensor prob, Generator? generator=None) -> Tensor + inline at::Tensor binomial(c10::DispatchKeySet dispatchKeySet, const at::Tensor & count, const at::Tensor & prob, c10::optional generator=c10::nullopt) { + return at::_ops::binomial::redispatch(dispatchKeySet, count, prob, generator); + } + + // aten::native_norm(Tensor self, Scalar p=2) -> Tensor + inline at::Tensor native_norm(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & p=2) { + return at::_ops::native_norm::redispatch(dispatchKeySet, self, p); + } + + // aten::native_norm.ScalarOpt_dim_dtype(Tensor self, Scalar? p, int[1] dim, bool keepdim, ScalarType? dtype) -> Tensor + inline at::Tensor native_norm(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const c10::optional & p, at::IntArrayRef dim, bool keepdim, c10::optional dtype) { + return at::_ops::native_norm_ScalarOpt_dim_dtype::redispatch(dispatchKeySet, self, p, dim, keepdim, dtype); + } + + // aten::_sparse_sum(Tensor self) -> Tensor + inline at::Tensor _sparse_sum(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::_sparse_sum::redispatch(dispatchKeySet, self); + } + + // aten::_sparse_sum.dtype(Tensor self, *, ScalarType dtype) -> Tensor + inline at::Tensor _sparse_sum(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::ScalarType dtype) { + return at::_ops::_sparse_sum_dtype::redispatch(dispatchKeySet, self, dtype); + } + + // aten::_sparse_sum.dim(Tensor self, int[1] dim) -> Tensor + inline at::Tensor _sparse_sum(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef dim) { + return at::_ops::_sparse_sum_dim::redispatch(dispatchKeySet, self, dim); + } + + // aten::_sparse_sum.dim_dtype(Tensor self, int[1] dim, *, ScalarType dtype) -> Tensor + inline at::Tensor _sparse_sum(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef dim, at::ScalarType dtype) { + return at::_ops::_sparse_sum_dim_dtype::redispatch(dispatchKeySet, self, dim, dtype); + } + + // aten::_sparse_sum_backward(Tensor grad, Tensor self, int[] dim) -> Tensor + inline at::Tensor _sparse_sum_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad, const at::Tensor & self, at::IntArrayRef dim) { + return at::_ops::_sparse_sum_backward::redispatch(dispatchKeySet, grad, self, dim); + } + + // aten::_sparse_csr_sum.dim_dtype(Tensor self, int[1] dim, bool keepdim=False, *, ScalarType? dtype=None) -> Tensor + inline at::Tensor _sparse_csr_sum(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef dim, bool keepdim=false, c10::optional dtype=c10::nullopt) { + return at::_ops::_sparse_csr_sum_dim_dtype::redispatch(dispatchKeySet, self, dim, keepdim, dtype); + } + + // aten::_sparse_csr_prod.dim_dtype(Tensor self, int[1] dim, bool keepdim=False, *, ScalarType? dtype=None) -> Tensor + inline at::Tensor _sparse_csr_prod(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef dim, bool keepdim=false, c10::optional dtype=c10::nullopt) { + return at::_ops::_sparse_csr_prod_dim_dtype::redispatch(dispatchKeySet, self, dim, keepdim, dtype); + } + + // aten::_sparse_softmax.int(Tensor self, int dim, ScalarType? dtype=None) -> Tensor + inline at::Tensor _sparse_softmax(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, c10::optional dtype=c10::nullopt) { + return at::_ops::_sparse_softmax_int::redispatch(dispatchKeySet, self, dim, dtype); + } + + // aten::_sparse_softmax.Dimname(Tensor self, Dimname dim, *, ScalarType? dtype=None) -> Tensor + inline at::Tensor _sparse_softmax(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim, c10::optional dtype=c10::nullopt) { + return at::_ops::_sparse_softmax_Dimname::redispatch(dispatchKeySet, self, dim, dtype); + } + + // aten::_sparse_softmax(Tensor self, int dim, bool half_to_float) -> Tensor + inline at::Tensor _sparse_softmax(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, bool half_to_float) { + return at::_ops::_sparse_softmax::redispatch(dispatchKeySet, self, dim, half_to_float); + } + + // aten::_sparse_softmax_backward_data(Tensor grad_output, Tensor output, int dim, Tensor self) -> Tensor + inline at::Tensor _sparse_softmax_backward_data(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & output, int64_t dim, const at::Tensor & self) { + return at::_ops::_sparse_softmax_backward_data::redispatch(dispatchKeySet, grad_output, output, dim, self); + } + + // aten::_sparse_log_softmax.int(Tensor self, int dim, ScalarType? dtype=None) -> Tensor + inline at::Tensor _sparse_log_softmax(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, c10::optional dtype=c10::nullopt) { + return at::_ops::_sparse_log_softmax_int::redispatch(dispatchKeySet, self, dim, dtype); + } + + // aten::_sparse_log_softmax.Dimname(Tensor self, Dimname dim, *, ScalarType? dtype=None) -> Tensor + inline at::Tensor _sparse_log_softmax(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim, c10::optional dtype=c10::nullopt) { + return at::_ops::_sparse_log_softmax_Dimname::redispatch(dispatchKeySet, self, dim, dtype); + } + + // aten::_sparse_log_softmax(Tensor self, int dim, bool half_to_float) -> Tensor + inline at::Tensor _sparse_log_softmax(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, bool half_to_float) { + return at::_ops::_sparse_log_softmax::redispatch(dispatchKeySet, self, dim, half_to_float); + } + + // aten::_sparse_log_softmax_backward_data(Tensor grad_output, Tensor output, int dim, Tensor self) -> Tensor + inline at::Tensor _sparse_log_softmax_backward_data(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & output, int64_t dim, const at::Tensor & self) { + return at::_ops::_sparse_log_softmax_backward_data::redispatch(dispatchKeySet, grad_output, output, dim, self); + } + + // aten::_spdiags(Tensor diagonals, Tensor offsets, int[] shape, Layout? layout=None) -> Tensor + inline at::Tensor _spdiags(c10::DispatchKeySet dispatchKeySet, const at::Tensor & diagonals, const at::Tensor & offsets, at::IntArrayRef shape, c10::optional layout=c10::nullopt) { + return at::_ops::_spdiags::redispatch(dispatchKeySet, diagonals, offsets, shape, layout); + } + + // aten::norm.ScalarOpt_dtype(Tensor self, Scalar? p, *, ScalarType dtype) -> Tensor + inline at::Tensor norm(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const c10::optional & p, at::ScalarType dtype) { + return at::_ops::norm_ScalarOpt_dtype::redispatch(dispatchKeySet, self, p, dtype); + } + + // aten::norm.Scalar(Tensor self, Scalar p=2) -> Tensor + inline at::Tensor norm(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & p=2) { + return at::_ops::norm_Scalar::redispatch(dispatchKeySet, self, p); + } + + // aten::norm.ScalarOpt_dim_dtype(Tensor self, Scalar? p, int[1] dim, bool keepdim, *, ScalarType dtype) -> Tensor + inline at::Tensor norm(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const c10::optional & p, at::IntArrayRef dim, bool keepdim, at::ScalarType dtype) { + return at::_ops::norm_ScalarOpt_dim_dtype::redispatch(dispatchKeySet, self, p, dim, keepdim, dtype); + } + + // aten::norm.ScalarOpt_dim(Tensor self, Scalar? p, int[1] dim, bool keepdim=False) -> Tensor + inline at::Tensor norm(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const c10::optional & p, at::IntArrayRef dim, bool keepdim=false) { + return at::_ops::norm_ScalarOpt_dim::redispatch(dispatchKeySet, self, p, dim, keepdim); + } + + // aten::norm.dtype_out(Tensor self, Scalar? p, int[1] dim, bool keepdim, *, ScalarType dtype, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & norm_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const c10::optional & p, at::IntArrayRef dim, bool keepdim, at::ScalarType dtype) { + return at::_ops::norm_dtype_out::redispatch(dispatchKeySet, self, p, dim, keepdim, dtype, out); + } + + // aten::norm.dtype_out(Tensor self, Scalar? p, int[1] dim, bool keepdim, *, ScalarType dtype, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & norm_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const c10::optional & p, at::IntArrayRef dim, bool keepdim, at::ScalarType dtype, at::Tensor & out) { + return at::_ops::norm_dtype_out::redispatch(dispatchKeySet, self, p, dim, keepdim, dtype, out); + } + + // aten::norm.out(Tensor self, Scalar? p, int[1] dim, bool keepdim=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & norm_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const c10::optional & p, at::IntArrayRef dim, bool keepdim=false) { + return at::_ops::norm_out::redispatch(dispatchKeySet, self, p, dim, keepdim, out); + } + + // aten::norm.out(Tensor self, Scalar? p, int[1] dim, bool keepdim=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & norm_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const c10::optional & p, at::IntArrayRef dim, bool keepdim, at::Tensor & out) { + return at::_ops::norm_out::redispatch(dispatchKeySet, self, p, dim, keepdim, out); + } + + // aten::norm.names_ScalarOpt_dim_dtype(Tensor self, Scalar? p, Dimname[1] dim, bool keepdim, *, ScalarType dtype) -> Tensor + inline at::Tensor norm(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const c10::optional & p, at::DimnameList dim, bool keepdim, at::ScalarType dtype) { + return at::_ops::norm_names_ScalarOpt_dim_dtype::redispatch(dispatchKeySet, self, p, dim, keepdim, dtype); + } + + // aten::norm.names_ScalarOpt_dim(Tensor self, Scalar? p, Dimname[1] dim, bool keepdim=False) -> Tensor + inline at::Tensor norm(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const c10::optional & p, at::DimnameList dim, bool keepdim=false) { + return at::_ops::norm_names_ScalarOpt_dim::redispatch(dispatchKeySet, self, p, dim, keepdim); + } + + // aten::norm.names_dtype_out(Tensor self, Scalar? p, Dimname[1] dim, bool keepdim, *, ScalarType dtype, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & norm_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const c10::optional & p, at::DimnameList dim, bool keepdim, at::ScalarType dtype) { + return at::_ops::norm_names_dtype_out::redispatch(dispatchKeySet, self, p, dim, keepdim, dtype, out); + } + + // aten::norm.names_dtype_out(Tensor self, Scalar? p, Dimname[1] dim, bool keepdim, *, ScalarType dtype, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & norm_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const c10::optional & p, at::DimnameList dim, bool keepdim, at::ScalarType dtype, at::Tensor & out) { + return at::_ops::norm_names_dtype_out::redispatch(dispatchKeySet, self, p, dim, keepdim, dtype, out); + } + + // aten::norm.names_out(Tensor self, Scalar? p, Dimname[1] dim, bool keepdim=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & norm_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const c10::optional & p, at::DimnameList dim, bool keepdim=false) { + return at::_ops::norm_names_out::redispatch(dispatchKeySet, self, p, dim, keepdim, out); + } + + // aten::norm.names_out(Tensor self, Scalar? p, Dimname[1] dim, bool keepdim=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & norm_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const c10::optional & p, at::DimnameList dim, bool keepdim, at::Tensor & out) { + return at::_ops::norm_names_out::redispatch(dispatchKeySet, self, p, dim, keepdim, out); + } + + // aten::frexp.Tensor(Tensor self) -> (Tensor mantissa, Tensor exponent) + inline ::std::tuple frexp(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::frexp_Tensor::redispatch(dispatchKeySet, self); + } + + // aten::frexp.Tensor_out(Tensor self, *, Tensor(a!) mantissa, Tensor(b!) exponent) -> (Tensor(a!) mantissa, Tensor(b!) exponent) + inline ::std::tuple frexp_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & mantissa, at::Tensor & exponent, const at::Tensor & self) { + return at::_ops::frexp_Tensor_out::redispatch(dispatchKeySet, self, mantissa, exponent); + } + + // aten::frexp.Tensor_out(Tensor self, *, Tensor(a!) mantissa, Tensor(b!) exponent) -> (Tensor(a!) mantissa, Tensor(b!) exponent) + inline ::std::tuple frexp_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & mantissa, at::Tensor & exponent) { + return at::_ops::frexp_Tensor_out::redispatch(dispatchKeySet, self, mantissa, exponent); + } + + // aten::frobenius_norm.dim(Tensor self, int[1] dim, bool keepdim=False) -> Tensor + inline at::Tensor frobenius_norm(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef dim, bool keepdim=false) { + return at::_ops::frobenius_norm_dim::redispatch(dispatchKeySet, self, dim, keepdim); + } + + // aten::frobenius_norm.out(Tensor self, int[1] dim, bool keepdim=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & frobenius_norm_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef dim, bool keepdim=false) { + return at::_ops::frobenius_norm_out::redispatch(dispatchKeySet, self, dim, keepdim, out); + } + + // aten::frobenius_norm.out(Tensor self, int[1] dim, bool keepdim=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & frobenius_norm_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef dim, bool keepdim, at::Tensor & out) { + return at::_ops::frobenius_norm_out::redispatch(dispatchKeySet, self, dim, keepdim, out); + } + + // aten::nuclear_norm(Tensor self, bool keepdim=False) -> Tensor + inline at::Tensor nuclear_norm(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, bool keepdim=false) { + return at::_ops::nuclear_norm::redispatch(dispatchKeySet, self, keepdim); + } + + // aten::nuclear_norm.out(Tensor self, bool keepdim=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & nuclear_norm_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, bool keepdim=false) { + return at::_ops::nuclear_norm_out::redispatch(dispatchKeySet, self, keepdim, out); + } + + // aten::nuclear_norm.out(Tensor self, bool keepdim=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & nuclear_norm_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, bool keepdim, at::Tensor & out) { + return at::_ops::nuclear_norm_out::redispatch(dispatchKeySet, self, keepdim, out); + } + + // aten::nuclear_norm.dim(Tensor self, int[2] dim, bool keepdim=False) -> Tensor + inline at::Tensor nuclear_norm(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef dim, bool keepdim=false) { + return at::_ops::nuclear_norm_dim::redispatch(dispatchKeySet, self, dim, keepdim); + } + + // aten::nuclear_norm.dim_out(Tensor self, int[2] dim, bool keepdim=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & nuclear_norm_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef dim, bool keepdim=false) { + return at::_ops::nuclear_norm_dim_out::redispatch(dispatchKeySet, self, dim, keepdim, out); + } + + // aten::nuclear_norm.dim_out(Tensor self, int[2] dim, bool keepdim=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & nuclear_norm_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef dim, bool keepdim, at::Tensor & out) { + return at::_ops::nuclear_norm_dim_out::redispatch(dispatchKeySet, self, dim, keepdim, out); + } + + // aten::clone(Tensor self, *, MemoryFormat? memory_format=None) -> Tensor + inline at::Tensor clone(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional memory_format=c10::nullopt) { + return at::_ops::clone::redispatch(dispatchKeySet, self, memory_format); + } + + // aten::positive(Tensor(a) self) -> Tensor(a) + inline at::Tensor positive(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::positive::redispatch(dispatchKeySet, self); + } + + // aten::resize_as_(Tensor(a!) self, Tensor the_template, *, MemoryFormat? memory_format=None) -> Tensor(a!) + inline const at::Tensor & resize_as_(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & the_template, c10::optional memory_format=c10::nullopt) { + return at::_ops::resize_as_::redispatch(dispatchKeySet, self, the_template, memory_format); + } + + // aten::resize_as_sparse_(Tensor(a!) self, Tensor the_template) -> Tensor(a!) + inline const at::Tensor & resize_as_sparse_(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & the_template) { + return at::_ops::resize_as_sparse_::redispatch(dispatchKeySet, self, the_template); + } + + // aten::zero_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & zero_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::zero_::redispatch(dispatchKeySet, self); + } + + // aten::sub.out(Tensor self, Tensor other, *, Scalar alpha=1, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & sub_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other, const at::Scalar & alpha=1) { + return at::_ops::sub_out::redispatch(dispatchKeySet, self, other, alpha, out); + } + + // aten::sub.out(Tensor self, Tensor other, *, Scalar alpha=1, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & sub_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, const at::Scalar & alpha, at::Tensor & out) { + return at::_ops::sub_out::redispatch(dispatchKeySet, self, other, alpha, out); + } + + // aten::sub.Tensor(Tensor self, Tensor other, *, Scalar alpha=1) -> Tensor + inline at::Tensor sub(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, const at::Scalar & alpha=1) { + return at::_ops::sub_Tensor::redispatch(dispatchKeySet, self, other, alpha); + } + + // aten::sub_.Tensor(Tensor(a!) self, Tensor other, *, Scalar alpha=1) -> Tensor(a!) + inline at::Tensor & sub_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & other, const at::Scalar & alpha=1) { + return at::_ops::sub__Tensor::redispatch(dispatchKeySet, self, other, alpha); + } + + // aten::sub.Scalar(Tensor self, Scalar other, Scalar alpha=1) -> Tensor + inline at::Tensor sub(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other, const at::Scalar & alpha=1) { + return at::_ops::sub_Scalar::redispatch(dispatchKeySet, self, other, alpha); + } + + // aten::sub_.Scalar(Tensor(a!) self, Scalar other, Scalar alpha=1) -> Tensor(a!) + inline at::Tensor & sub_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Scalar & other, const at::Scalar & alpha=1) { + return at::_ops::sub__Scalar::redispatch(dispatchKeySet, self, other, alpha); + } + + // aten::subtract.out(Tensor self, Tensor other, *, Scalar alpha=1, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & subtract_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other, const at::Scalar & alpha=1) { + return at::_ops::subtract_out::redispatch(dispatchKeySet, self, other, alpha, out); + } + + // aten::subtract.out(Tensor self, Tensor other, *, Scalar alpha=1, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & subtract_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, const at::Scalar & alpha, at::Tensor & out) { + return at::_ops::subtract_out::redispatch(dispatchKeySet, self, other, alpha, out); + } + + // aten::subtract.Tensor(Tensor self, Tensor other, *, Scalar alpha=1) -> Tensor + inline at::Tensor subtract(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, const at::Scalar & alpha=1) { + return at::_ops::subtract_Tensor::redispatch(dispatchKeySet, self, other, alpha); + } + + // aten::subtract_.Tensor(Tensor(a!) self, Tensor other, *, Scalar alpha=1) -> Tensor(a!) + inline at::Tensor & subtract_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & other, const at::Scalar & alpha=1) { + return at::_ops::subtract__Tensor::redispatch(dispatchKeySet, self, other, alpha); + } + + // aten::subtract.Scalar(Tensor self, Scalar other, Scalar alpha=1) -> Tensor + inline at::Tensor subtract(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other, const at::Scalar & alpha=1) { + return at::_ops::subtract_Scalar::redispatch(dispatchKeySet, self, other, alpha); + } + + // aten::subtract_.Scalar(Tensor(a!) self, Scalar other, Scalar alpha=1) -> Tensor(a!) + inline at::Tensor & subtract_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Scalar & other, const at::Scalar & alpha=1) { + return at::_ops::subtract__Scalar::redispatch(dispatchKeySet, self, other, alpha); + } + + // aten::rsub.Tensor(Tensor self, Tensor other, *, Scalar alpha=1) -> Tensor + inline at::Tensor rsub(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, const at::Scalar & alpha=1) { + return at::_ops::rsub_Tensor::redispatch(dispatchKeySet, self, other, alpha); + } + + // aten::heaviside.out(Tensor self, Tensor values, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & heaviside_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & values) { + return at::_ops::heaviside_out::redispatch(dispatchKeySet, self, values, out); + } + + // aten::heaviside.out(Tensor self, Tensor values, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & heaviside_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & values, at::Tensor & out) { + return at::_ops::heaviside_out::redispatch(dispatchKeySet, self, values, out); + } + + // aten::heaviside(Tensor self, Tensor values) -> Tensor + inline at::Tensor heaviside(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & values) { + return at::_ops::heaviside::redispatch(dispatchKeySet, self, values); + } + + // aten::heaviside_(Tensor(a!) self, Tensor values) -> Tensor(a!) + inline at::Tensor & heaviside_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & values) { + return at::_ops::heaviside_::redispatch(dispatchKeySet, self, values); + } + + // aten::rsub.Scalar(Tensor self, Scalar other, Scalar alpha=1) -> Tensor + inline at::Tensor rsub(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other, const at::Scalar & alpha=1) { + return at::_ops::rsub_Scalar::redispatch(dispatchKeySet, self, other, alpha); + } + + // aten::_sparse_addmm(Tensor self, Tensor mat1, Tensor mat2, *, Scalar beta=1, Scalar alpha=1) -> Tensor + inline at::Tensor _sparse_addmm(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & mat1, const at::Tensor & mat2, const at::Scalar & beta=1, const at::Scalar & alpha=1) { + return at::_ops::_sparse_addmm::redispatch(dispatchKeySet, self, mat1, mat2, beta, alpha); + } + + // aten::sparse_sampled_addmm.out(Tensor self, Tensor mat1, Tensor mat2, *, Scalar beta=1, Scalar alpha=1, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & sparse_sampled_addmm_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & mat1, const at::Tensor & mat2, const at::Scalar & beta=1, const at::Scalar & alpha=1) { + return at::_ops::sparse_sampled_addmm_out::redispatch(dispatchKeySet, self, mat1, mat2, beta, alpha, out); + } + + // aten::sparse_sampled_addmm.out(Tensor self, Tensor mat1, Tensor mat2, *, Scalar beta=1, Scalar alpha=1, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & sparse_sampled_addmm_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & mat1, const at::Tensor & mat2, const at::Scalar & beta, const at::Scalar & alpha, at::Tensor & out) { + return at::_ops::sparse_sampled_addmm_out::redispatch(dispatchKeySet, self, mat1, mat2, beta, alpha, out); + } + + // aten::sparse_sampled_addmm(Tensor self, Tensor mat1, Tensor mat2, *, Scalar beta=1, Scalar alpha=1) -> Tensor + inline at::Tensor sparse_sampled_addmm(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & mat1, const at::Tensor & mat2, const at::Scalar & beta=1, const at::Scalar & alpha=1) { + return at::_ops::sparse_sampled_addmm::redispatch(dispatchKeySet, self, mat1, mat2, beta, alpha); + } + + // aten::_sparse_mm_reduce_impl(Tensor self, Tensor other, str reduce) -> (Tensor, Tensor) + inline ::std::tuple _sparse_mm_reduce_impl(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, c10::string_view reduce) { + return at::_ops::_sparse_mm_reduce_impl::redispatch(dispatchKeySet, self, other, reduce); + } + + // aten::_sparse_mm_reduce_impl_backward(Tensor self, Tensor grad_out, Tensor weight, str reduce, Tensor arg_out, bool[2] output_mask) -> (Tensor, Tensor) + inline ::std::tuple _sparse_mm_reduce_impl_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & grad_out, const at::Tensor & weight, c10::string_view reduce, const at::Tensor & arg_out, ::std::array output_mask) { + return at::_ops::_sparse_mm_reduce_impl_backward::redispatch(dispatchKeySet, self, grad_out, weight, reduce, arg_out, output_mask); + } + + // aten::addmm.out(Tensor self, Tensor mat1, Tensor mat2, *, Scalar beta=1, Scalar alpha=1, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & addmm_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & mat1, const at::Tensor & mat2, const at::Scalar & beta=1, const at::Scalar & alpha=1) { + return at::_ops::addmm_out::redispatch(dispatchKeySet, self, mat1, mat2, beta, alpha, out); + } + + // aten::addmm.out(Tensor self, Tensor mat1, Tensor mat2, *, Scalar beta=1, Scalar alpha=1, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & addmm_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & mat1, const at::Tensor & mat2, const at::Scalar & beta, const at::Scalar & alpha, at::Tensor & out) { + return at::_ops::addmm_out::redispatch(dispatchKeySet, self, mat1, mat2, beta, alpha, out); + } + + // aten::addmm(Tensor self, Tensor mat1, Tensor mat2, *, Scalar beta=1, Scalar alpha=1) -> Tensor + inline at::Tensor addmm(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & mat1, const at::Tensor & mat2, const at::Scalar & beta=1, const at::Scalar & alpha=1) { + return at::_ops::addmm::redispatch(dispatchKeySet, self, mat1, mat2, beta, alpha); + } + + // aten::addmm_(Tensor(a!) self, Tensor mat1, Tensor mat2, *, Scalar beta=1, Scalar alpha=1) -> Tensor(a!) + inline at::Tensor & addmm_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & mat1, const at::Tensor & mat2, const at::Scalar & beta=1, const at::Scalar & alpha=1) { + return at::_ops::addmm_::redispatch(dispatchKeySet, self, mat1, mat2, beta, alpha); + } + + // aten::_addmm_activation.out(Tensor self, Tensor mat1, Tensor mat2, *, Scalar beta=1, Scalar alpha=1, bool use_gelu=False, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _addmm_activation_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & mat1, const at::Tensor & mat2, const at::Scalar & beta=1, const at::Scalar & alpha=1, bool use_gelu=false) { + return at::_ops::_addmm_activation_out::redispatch(dispatchKeySet, self, mat1, mat2, beta, alpha, use_gelu, out); + } + + // aten::_addmm_activation.out(Tensor self, Tensor mat1, Tensor mat2, *, Scalar beta=1, Scalar alpha=1, bool use_gelu=False, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _addmm_activation_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & mat1, const at::Tensor & mat2, const at::Scalar & beta, const at::Scalar & alpha, bool use_gelu, at::Tensor & out) { + return at::_ops::_addmm_activation_out::redispatch(dispatchKeySet, self, mat1, mat2, beta, alpha, use_gelu, out); + } + + // aten::_addmm_activation(Tensor self, Tensor mat1, Tensor mat2, *, Scalar beta=1, Scalar alpha=1, bool use_gelu=False) -> Tensor + inline at::Tensor _addmm_activation(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & mat1, const at::Tensor & mat2, const at::Scalar & beta=1, const at::Scalar & alpha=1, bool use_gelu=false) { + return at::_ops::_addmm_activation::redispatch(dispatchKeySet, self, mat1, mat2, beta, alpha, use_gelu); + } + + // aten::_scaled_mm(Tensor self, Tensor mat2, *, Tensor? bias=None, ScalarType? out_dtype=None, Tensor? scale_a=None, Tensor? scale_b=None, Tensor? scale_result=None, bool use_fast_accum=False) -> (Tensor, Tensor) + inline ::std::tuple _scaled_mm(c10::DispatchKeySet dispatchKeySet, 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) { + return at::_ops::_scaled_mm::redispatch(dispatchKeySet, self, mat2, bias, out_dtype, scale_a, scale_b, scale_result, use_fast_accum); + } + + // aten::_scaled_mm.out(Tensor self, Tensor mat2, *, Tensor? bias=None, ScalarType? out_dtype=None, Tensor? scale_a=None, Tensor? scale_b=None, Tensor? scale_result=None, bool use_fast_accum=False, Tensor(a!) out, Tensor(b!) out_amax) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple _scaled_mm_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, at::Tensor & out_amax, 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) { + return at::_ops::_scaled_mm_out::redispatch(dispatchKeySet, self, mat2, bias, out_dtype, scale_a, scale_b, scale_result, use_fast_accum, out, out_amax); + } + + // aten::_scaled_mm.out(Tensor self, Tensor mat2, *, Tensor? bias=None, ScalarType? out_dtype=None, Tensor? scale_a=None, Tensor? scale_b=None, Tensor? scale_result=None, bool use_fast_accum=False, Tensor(a!) out, Tensor(b!) out_amax) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple _scaled_mm_outf(c10::DispatchKeySet dispatchKeySet, 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) { + return at::_ops::_scaled_mm_out::redispatch(dispatchKeySet, self, mat2, bias, out_dtype, scale_a, scale_b, scale_result, use_fast_accum, out, out_amax); + } + + // aten::sparse_compressed_tensor.comp_plain_value_size(Tensor compressed_indices, Tensor plain_indices, Tensor values, SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=False) -> Tensor + inline at::Tensor sparse_compressed_tensor(c10::DispatchKeySet dispatchKeySet, const at::Tensor & compressed_indices, const at::Tensor & plain_indices, const at::Tensor & values, at::IntArrayRef size, at::TensorOptions options) { + return at::_ops::sparse_compressed_tensor_comp_plain_value_size::redispatch(dispatchKeySet, compressed_indices, plain_indices, values, c10::fromIntArrayRefSlow(size), c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::sparse_compressed_tensor.comp_plain_value_size(Tensor compressed_indices, Tensor plain_indices, Tensor values, SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=False) -> Tensor + inline at::Tensor sparse_compressed_tensor(c10::DispatchKeySet dispatchKeySet, const at::Tensor & compressed_indices, const at::Tensor & plain_indices, const at::Tensor & values, at::IntArrayRef size, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::sparse_compressed_tensor_comp_plain_value_size::redispatch(dispatchKeySet, compressed_indices, plain_indices, values, c10::fromIntArrayRefSlow(size), dtype, layout, device, pin_memory); + } + + // aten::sparse_compressed_tensor.comp_plain_value_size(Tensor compressed_indices, Tensor plain_indices, Tensor values, SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=False) -> Tensor + inline at::Tensor sparse_compressed_tensor_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & compressed_indices, const at::Tensor & plain_indices, const at::Tensor & values, c10::SymIntArrayRef size, at::TensorOptions options) { + return at::_ops::sparse_compressed_tensor_comp_plain_value_size::redispatch(dispatchKeySet, compressed_indices, plain_indices, values, size, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::sparse_compressed_tensor.comp_plain_value_size(Tensor compressed_indices, Tensor plain_indices, Tensor values, SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=False) -> Tensor + inline at::Tensor sparse_compressed_tensor_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & compressed_indices, const at::Tensor & plain_indices, const at::Tensor & values, c10::SymIntArrayRef size, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::sparse_compressed_tensor_comp_plain_value_size::redispatch(dispatchKeySet, compressed_indices, plain_indices, values, size, dtype, layout, device, pin_memory); + } + + // aten::sparse_csr_tensor.crow_col_value_size(Tensor crow_indices, Tensor col_indices, Tensor values, int[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=False) -> Tensor + inline at::Tensor sparse_csr_tensor(c10::DispatchKeySet dispatchKeySet, const at::Tensor & crow_indices, const at::Tensor & col_indices, const at::Tensor & values, at::IntArrayRef size, at::TensorOptions options) { + return at::_ops::sparse_csr_tensor_crow_col_value_size::redispatch(dispatchKeySet, crow_indices, col_indices, values, size, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::sparse_csr_tensor.crow_col_value_size(Tensor crow_indices, Tensor col_indices, Tensor values, int[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=False) -> Tensor + inline at::Tensor sparse_csr_tensor(c10::DispatchKeySet dispatchKeySet, 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) { + return at::_ops::sparse_csr_tensor_crow_col_value_size::redispatch(dispatchKeySet, crow_indices, col_indices, values, size, dtype, layout, device, pin_memory); + } + + // aten::sparse_csc_tensor.ccol_row_value_size(Tensor ccol_indices, Tensor row_indices, Tensor values, int[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=False) -> Tensor + inline at::Tensor sparse_csc_tensor(c10::DispatchKeySet dispatchKeySet, const at::Tensor & ccol_indices, const at::Tensor & row_indices, const at::Tensor & values, at::IntArrayRef size, at::TensorOptions options) { + return at::_ops::sparse_csc_tensor_ccol_row_value_size::redispatch(dispatchKeySet, ccol_indices, row_indices, values, size, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::sparse_csc_tensor.ccol_row_value_size(Tensor ccol_indices, Tensor row_indices, Tensor values, int[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=False) -> Tensor + inline at::Tensor sparse_csc_tensor(c10::DispatchKeySet dispatchKeySet, const at::Tensor & ccol_indices, const at::Tensor & row_indices, const at::Tensor & values, at::IntArrayRef size, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::sparse_csc_tensor_ccol_row_value_size::redispatch(dispatchKeySet, ccol_indices, row_indices, values, size, dtype, layout, device, pin_memory); + } + + // aten::sparse_bsr_tensor.crow_col_value_size(Tensor crow_indices, Tensor col_indices, Tensor values, int[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=False) -> Tensor + inline at::Tensor sparse_bsr_tensor(c10::DispatchKeySet dispatchKeySet, const at::Tensor & crow_indices, const at::Tensor & col_indices, const at::Tensor & values, at::IntArrayRef size, at::TensorOptions options) { + return at::_ops::sparse_bsr_tensor_crow_col_value_size::redispatch(dispatchKeySet, crow_indices, col_indices, values, size, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::sparse_bsr_tensor.crow_col_value_size(Tensor crow_indices, Tensor col_indices, Tensor values, int[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=False) -> Tensor + inline at::Tensor sparse_bsr_tensor(c10::DispatchKeySet dispatchKeySet, 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) { + return at::_ops::sparse_bsr_tensor_crow_col_value_size::redispatch(dispatchKeySet, crow_indices, col_indices, values, size, dtype, layout, device, pin_memory); + } + + // aten::sparse_bsc_tensor.ccol_row_value_size(Tensor ccol_indices, Tensor row_indices, Tensor values, int[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=False) -> Tensor + inline at::Tensor sparse_bsc_tensor(c10::DispatchKeySet dispatchKeySet, const at::Tensor & ccol_indices, const at::Tensor & row_indices, const at::Tensor & values, at::IntArrayRef size, at::TensorOptions options) { + return at::_ops::sparse_bsc_tensor_ccol_row_value_size::redispatch(dispatchKeySet, ccol_indices, row_indices, values, size, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::sparse_bsc_tensor.ccol_row_value_size(Tensor ccol_indices, Tensor row_indices, Tensor values, int[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=False) -> Tensor + inline at::Tensor sparse_bsc_tensor(c10::DispatchKeySet dispatchKeySet, const at::Tensor & ccol_indices, const at::Tensor & row_indices, const at::Tensor & values, at::IntArrayRef size, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::sparse_bsc_tensor_ccol_row_value_size::redispatch(dispatchKeySet, ccol_indices, row_indices, values, size, dtype, layout, device, pin_memory); + } + + // aten::sparse_compressed_tensor.comp_plain_value(Tensor compressed_indices, Tensor plain_indices, Tensor values, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=False) -> Tensor + inline at::Tensor sparse_compressed_tensor(c10::DispatchKeySet dispatchKeySet, const at::Tensor & compressed_indices, const at::Tensor & plain_indices, const at::Tensor & values, at::TensorOptions options) { + return at::_ops::sparse_compressed_tensor_comp_plain_value::redispatch(dispatchKeySet, compressed_indices, plain_indices, values, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::sparse_compressed_tensor.comp_plain_value(Tensor compressed_indices, Tensor plain_indices, Tensor values, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=False) -> Tensor + inline at::Tensor sparse_compressed_tensor(c10::DispatchKeySet dispatchKeySet, const at::Tensor & compressed_indices, const at::Tensor & plain_indices, const at::Tensor & values, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::sparse_compressed_tensor_comp_plain_value::redispatch(dispatchKeySet, compressed_indices, plain_indices, values, dtype, layout, device, pin_memory); + } + + // aten::sparse_csr_tensor.crow_col_value(Tensor crow_indices, Tensor col_indices, Tensor values, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=False) -> Tensor + inline at::Tensor sparse_csr_tensor(c10::DispatchKeySet dispatchKeySet, const at::Tensor & crow_indices, const at::Tensor & col_indices, const at::Tensor & values, at::TensorOptions options) { + return at::_ops::sparse_csr_tensor_crow_col_value::redispatch(dispatchKeySet, crow_indices, col_indices, values, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::sparse_csr_tensor.crow_col_value(Tensor crow_indices, Tensor col_indices, Tensor values, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=False) -> Tensor + inline at::Tensor sparse_csr_tensor(c10::DispatchKeySet dispatchKeySet, 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) { + return at::_ops::sparse_csr_tensor_crow_col_value::redispatch(dispatchKeySet, crow_indices, col_indices, values, dtype, layout, device, pin_memory); + } + + // aten::sparse_csc_tensor.ccol_row_value(Tensor ccol_indices, Tensor row_indices, Tensor values, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=False) -> Tensor + inline at::Tensor sparse_csc_tensor(c10::DispatchKeySet dispatchKeySet, const at::Tensor & ccol_indices, const at::Tensor & row_indices, const at::Tensor & values, at::TensorOptions options) { + return at::_ops::sparse_csc_tensor_ccol_row_value::redispatch(dispatchKeySet, ccol_indices, row_indices, values, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::sparse_csc_tensor.ccol_row_value(Tensor ccol_indices, Tensor row_indices, Tensor values, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=False) -> Tensor + inline at::Tensor sparse_csc_tensor(c10::DispatchKeySet dispatchKeySet, const at::Tensor & ccol_indices, const at::Tensor & row_indices, const at::Tensor & values, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::sparse_csc_tensor_ccol_row_value::redispatch(dispatchKeySet, ccol_indices, row_indices, values, dtype, layout, device, pin_memory); + } + + // aten::sparse_bsr_tensor.crow_col_value(Tensor crow_indices, Tensor col_indices, Tensor values, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=False) -> Tensor + inline at::Tensor sparse_bsr_tensor(c10::DispatchKeySet dispatchKeySet, const at::Tensor & crow_indices, const at::Tensor & col_indices, const at::Tensor & values, at::TensorOptions options) { + return at::_ops::sparse_bsr_tensor_crow_col_value::redispatch(dispatchKeySet, crow_indices, col_indices, values, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::sparse_bsr_tensor.crow_col_value(Tensor crow_indices, Tensor col_indices, Tensor values, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=False) -> Tensor + inline at::Tensor sparse_bsr_tensor(c10::DispatchKeySet dispatchKeySet, 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) { + return at::_ops::sparse_bsr_tensor_crow_col_value::redispatch(dispatchKeySet, crow_indices, col_indices, values, dtype, layout, device, pin_memory); + } + + // aten::sparse_bsc_tensor.ccol_row_value(Tensor ccol_indices, Tensor row_indices, Tensor values, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=False) -> Tensor + inline at::Tensor sparse_bsc_tensor(c10::DispatchKeySet dispatchKeySet, const at::Tensor & ccol_indices, const at::Tensor & row_indices, const at::Tensor & values, at::TensorOptions options) { + return at::_ops::sparse_bsc_tensor_ccol_row_value::redispatch(dispatchKeySet, ccol_indices, row_indices, values, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::sparse_bsc_tensor.ccol_row_value(Tensor ccol_indices, Tensor row_indices, Tensor values, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=False) -> Tensor + inline at::Tensor sparse_bsc_tensor(c10::DispatchKeySet dispatchKeySet, const at::Tensor & ccol_indices, const at::Tensor & row_indices, const at::Tensor & values, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::sparse_bsc_tensor_ccol_row_value::redispatch(dispatchKeySet, ccol_indices, row_indices, values, dtype, layout, device, pin_memory); + } + + // aten::_sparse_compressed_tensor_unsafe(Tensor compressed_indices, Tensor plain_indices, Tensor values, SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor _sparse_compressed_tensor_unsafe(c10::DispatchKeySet dispatchKeySet, const at::Tensor & compressed_indices, const at::Tensor & plain_indices, const at::Tensor & values, at::IntArrayRef size, at::TensorOptions options={}) { + return at::_ops::_sparse_compressed_tensor_unsafe::redispatch(dispatchKeySet, compressed_indices, plain_indices, values, c10::fromIntArrayRefSlow(size), c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::_sparse_compressed_tensor_unsafe(Tensor compressed_indices, Tensor plain_indices, Tensor values, SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor _sparse_compressed_tensor_unsafe(c10::DispatchKeySet dispatchKeySet, const at::Tensor & compressed_indices, const at::Tensor & plain_indices, const at::Tensor & values, at::IntArrayRef size, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::_sparse_compressed_tensor_unsafe::redispatch(dispatchKeySet, compressed_indices, plain_indices, values, c10::fromIntArrayRefSlow(size), dtype, layout, device, pin_memory); + } + + // aten::_sparse_compressed_tensor_unsafe(Tensor compressed_indices, Tensor plain_indices, Tensor values, SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor _sparse_compressed_tensor_unsafe_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & compressed_indices, const at::Tensor & plain_indices, const at::Tensor & values, c10::SymIntArrayRef size, at::TensorOptions options={}) { + return at::_ops::_sparse_compressed_tensor_unsafe::redispatch(dispatchKeySet, compressed_indices, plain_indices, values, size, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::_sparse_compressed_tensor_unsafe(Tensor compressed_indices, Tensor plain_indices, Tensor values, SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor _sparse_compressed_tensor_unsafe_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & compressed_indices, const at::Tensor & plain_indices, const at::Tensor & values, c10::SymIntArrayRef size, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::_sparse_compressed_tensor_unsafe::redispatch(dispatchKeySet, compressed_indices, plain_indices, values, size, dtype, layout, device, pin_memory); + } + + // aten::_sparse_csr_tensor_unsafe(Tensor crow_indices, Tensor col_indices, Tensor values, int[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor _sparse_csr_tensor_unsafe(c10::DispatchKeySet dispatchKeySet, const at::Tensor & crow_indices, const at::Tensor & col_indices, const at::Tensor & values, at::IntArrayRef size, at::TensorOptions options={}) { + return at::_ops::_sparse_csr_tensor_unsafe::redispatch(dispatchKeySet, crow_indices, col_indices, values, size, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::_sparse_csr_tensor_unsafe(Tensor crow_indices, Tensor col_indices, Tensor values, int[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor _sparse_csr_tensor_unsafe(c10::DispatchKeySet dispatchKeySet, 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) { + return at::_ops::_sparse_csr_tensor_unsafe::redispatch(dispatchKeySet, crow_indices, col_indices, values, size, dtype, layout, device, pin_memory); + } + + // aten::_sparse_csc_tensor_unsafe(Tensor ccol_indices, Tensor row_indices, Tensor values, int[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor _sparse_csc_tensor_unsafe(c10::DispatchKeySet dispatchKeySet, const at::Tensor & ccol_indices, const at::Tensor & row_indices, const at::Tensor & values, at::IntArrayRef size, at::TensorOptions options={}) { + return at::_ops::_sparse_csc_tensor_unsafe::redispatch(dispatchKeySet, ccol_indices, row_indices, values, size, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::_sparse_csc_tensor_unsafe(Tensor ccol_indices, Tensor row_indices, Tensor values, int[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor _sparse_csc_tensor_unsafe(c10::DispatchKeySet dispatchKeySet, const at::Tensor & ccol_indices, const at::Tensor & row_indices, const at::Tensor & values, at::IntArrayRef size, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::_sparse_csc_tensor_unsafe::redispatch(dispatchKeySet, ccol_indices, row_indices, values, size, dtype, layout, device, pin_memory); + } + + // aten::_sparse_bsr_tensor_unsafe(Tensor crow_indices, Tensor col_indices, Tensor values, int[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor _sparse_bsr_tensor_unsafe(c10::DispatchKeySet dispatchKeySet, const at::Tensor & crow_indices, const at::Tensor & col_indices, const at::Tensor & values, at::IntArrayRef size, at::TensorOptions options={}) { + return at::_ops::_sparse_bsr_tensor_unsafe::redispatch(dispatchKeySet, crow_indices, col_indices, values, size, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::_sparse_bsr_tensor_unsafe(Tensor crow_indices, Tensor col_indices, Tensor values, int[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor _sparse_bsr_tensor_unsafe(c10::DispatchKeySet dispatchKeySet, 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) { + return at::_ops::_sparse_bsr_tensor_unsafe::redispatch(dispatchKeySet, crow_indices, col_indices, values, size, dtype, layout, device, pin_memory); + } + + // aten::_sparse_bsc_tensor_unsafe(Tensor ccol_indices, Tensor row_indices, Tensor values, int[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor _sparse_bsc_tensor_unsafe(c10::DispatchKeySet dispatchKeySet, const at::Tensor & ccol_indices, const at::Tensor & row_indices, const at::Tensor & values, at::IntArrayRef size, at::TensorOptions options={}) { + return at::_ops::_sparse_bsc_tensor_unsafe::redispatch(dispatchKeySet, ccol_indices, row_indices, values, size, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::_sparse_bsc_tensor_unsafe(Tensor ccol_indices, Tensor row_indices, Tensor values, int[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor _sparse_bsc_tensor_unsafe(c10::DispatchKeySet dispatchKeySet, const at::Tensor & ccol_indices, const at::Tensor & row_indices, const at::Tensor & values, at::IntArrayRef size, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::_sparse_bsc_tensor_unsafe::redispatch(dispatchKeySet, ccol_indices, row_indices, values, size, dtype, layout, device, pin_memory); + } + + // aten::sparse_coo_tensor.size(int[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=False) -> Tensor + inline at::Tensor sparse_coo_tensor(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, at::TensorOptions options) { + return at::_ops::sparse_coo_tensor_size::redispatch(dispatchKeySet, size, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::sparse_coo_tensor.size(int[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=False) -> Tensor + inline at::Tensor sparse_coo_tensor(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::sparse_coo_tensor_size::redispatch(dispatchKeySet, size, dtype, layout, device, pin_memory); + } + + // aten::sparse_coo_tensor.indices(Tensor indices, Tensor values, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, bool? is_coalesced=None) -> Tensor + inline at::Tensor sparse_coo_tensor(c10::DispatchKeySet dispatchKeySet, const at::Tensor & indices, const at::Tensor & values, at::TensorOptions options={}, c10::optional is_coalesced=c10::nullopt) { + return at::_ops::sparse_coo_tensor_indices::redispatch(dispatchKeySet, indices, values, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt(), is_coalesced); + } + + // aten::sparse_coo_tensor.indices(Tensor indices, Tensor values, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, bool? is_coalesced=None) -> Tensor + inline at::Tensor sparse_coo_tensor(c10::DispatchKeySet dispatchKeySet, const at::Tensor & indices, const at::Tensor & values, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory, c10::optional is_coalesced) { + return at::_ops::sparse_coo_tensor_indices::redispatch(dispatchKeySet, indices, values, dtype, layout, device, pin_memory, is_coalesced); + } + + // aten::sparse_coo_tensor.indices_size(Tensor indices, Tensor values, int[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, bool? is_coalesced=None) -> Tensor + inline at::Tensor sparse_coo_tensor(c10::DispatchKeySet dispatchKeySet, const at::Tensor & indices, const at::Tensor & values, at::IntArrayRef size, at::TensorOptions options={}, c10::optional is_coalesced=c10::nullopt) { + return at::_ops::sparse_coo_tensor_indices_size::redispatch(dispatchKeySet, indices, values, size, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt(), is_coalesced); + } + + // aten::sparse_coo_tensor.indices_size(Tensor indices, Tensor values, int[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, bool? is_coalesced=None) -> Tensor + inline at::Tensor sparse_coo_tensor(c10::DispatchKeySet dispatchKeySet, const at::Tensor & indices, const at::Tensor & values, at::IntArrayRef size, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory, c10::optional is_coalesced) { + return at::_ops::sparse_coo_tensor_indices_size::redispatch(dispatchKeySet, indices, values, size, dtype, layout, device, pin_memory, is_coalesced); + } + + // aten::_sparse_coo_tensor_unsafe(Tensor indices, Tensor values, SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, bool? is_coalesced=None) -> Tensor + inline at::Tensor _sparse_coo_tensor_unsafe(c10::DispatchKeySet dispatchKeySet, const at::Tensor & indices, const at::Tensor & values, at::IntArrayRef size, at::TensorOptions options={}, c10::optional is_coalesced=c10::nullopt) { + return at::_ops::_sparse_coo_tensor_unsafe::redispatch(dispatchKeySet, indices, values, c10::fromIntArrayRefSlow(size), c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt(), is_coalesced); + } + + // aten::_sparse_coo_tensor_unsafe(Tensor indices, Tensor values, SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, bool? is_coalesced=None) -> Tensor + inline at::Tensor _sparse_coo_tensor_unsafe(c10::DispatchKeySet dispatchKeySet, const at::Tensor & indices, const at::Tensor & values, at::IntArrayRef size, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory, c10::optional is_coalesced) { + return at::_ops::_sparse_coo_tensor_unsafe::redispatch(dispatchKeySet, indices, values, c10::fromIntArrayRefSlow(size), dtype, layout, device, pin_memory, is_coalesced); + } + + // aten::_sparse_coo_tensor_unsafe(Tensor indices, Tensor values, SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, bool? is_coalesced=None) -> Tensor + inline at::Tensor _sparse_coo_tensor_unsafe_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & indices, const at::Tensor & values, c10::SymIntArrayRef size, at::TensorOptions options={}, c10::optional is_coalesced=c10::nullopt) { + return at::_ops::_sparse_coo_tensor_unsafe::redispatch(dispatchKeySet, indices, values, size, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt(), is_coalesced); + } + + // aten::_sparse_coo_tensor_unsafe(Tensor indices, Tensor values, SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, bool? is_coalesced=None) -> Tensor + inline at::Tensor _sparse_coo_tensor_unsafe_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & indices, const at::Tensor & values, c10::SymIntArrayRef size, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory, c10::optional is_coalesced) { + return at::_ops::_sparse_coo_tensor_unsafe::redispatch(dispatchKeySet, indices, values, size, dtype, layout, device, pin_memory, is_coalesced); + } + + // aten::_validate_sparse_coo_tensor_args(Tensor indices, Tensor values, int[] size, bool? is_coalesced=None) -> () + inline void _validate_sparse_coo_tensor_args(c10::DispatchKeySet dispatchKeySet, const at::Tensor & indices, const at::Tensor & values, at::IntArrayRef size, c10::optional is_coalesced=c10::nullopt) { + return at::_ops::_validate_sparse_coo_tensor_args::redispatch(dispatchKeySet, indices, values, size, is_coalesced); + } + + // aten::_validate_sparse_compressed_tensor_args(Tensor compressed_indices, Tensor plain_indices, Tensor values, int[] size, Layout layout) -> () + inline void _validate_sparse_compressed_tensor_args(c10::DispatchKeySet dispatchKeySet, const at::Tensor & compressed_indices, const at::Tensor & plain_indices, const at::Tensor & values, at::IntArrayRef size, at::Layout layout) { + return at::_ops::_validate_sparse_compressed_tensor_args::redispatch(dispatchKeySet, compressed_indices, plain_indices, values, size, layout); + } + + // aten::_validate_sparse_csr_tensor_args(Tensor crow_indices, Tensor col_indices, Tensor values, int[] size) -> () + inline void _validate_sparse_csr_tensor_args(c10::DispatchKeySet dispatchKeySet, const at::Tensor & crow_indices, const at::Tensor & col_indices, const at::Tensor & values, at::IntArrayRef size) { + return at::_ops::_validate_sparse_csr_tensor_args::redispatch(dispatchKeySet, crow_indices, col_indices, values, size); + } + + // aten::_validate_sparse_csc_tensor_args(Tensor ccol_indices, Tensor row_indices, Tensor values, int[] size) -> () + inline void _validate_sparse_csc_tensor_args(c10::DispatchKeySet dispatchKeySet, const at::Tensor & ccol_indices, const at::Tensor & row_indices, const at::Tensor & values, at::IntArrayRef size) { + return at::_ops::_validate_sparse_csc_tensor_args::redispatch(dispatchKeySet, ccol_indices, row_indices, values, size); + } + + // aten::_validate_sparse_bsr_tensor_args(Tensor crow_indices, Tensor col_indices, Tensor values, int[] size) -> () + inline void _validate_sparse_bsr_tensor_args(c10::DispatchKeySet dispatchKeySet, const at::Tensor & crow_indices, const at::Tensor & col_indices, const at::Tensor & values, at::IntArrayRef size) { + return at::_ops::_validate_sparse_bsr_tensor_args::redispatch(dispatchKeySet, crow_indices, col_indices, values, size); + } + + // aten::_validate_sparse_bsc_tensor_args(Tensor ccol_indices, Tensor row_indices, Tensor values, int[] size) -> () + inline void _validate_sparse_bsc_tensor_args(c10::DispatchKeySet dispatchKeySet, const at::Tensor & ccol_indices, const at::Tensor & row_indices, const at::Tensor & values, at::IntArrayRef size) { + return at::_ops::_validate_sparse_bsc_tensor_args::redispatch(dispatchKeySet, ccol_indices, row_indices, values, size); + } + + // aten::_sparse_coo_tensor_with_dims(int sparse_dim, int dense_dim, int[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=False) -> Tensor + inline at::Tensor _sparse_coo_tensor_with_dims(c10::DispatchKeySet dispatchKeySet, int64_t sparse_dim, int64_t dense_dim, at::IntArrayRef size, at::TensorOptions options) { + return at::_ops::_sparse_coo_tensor_with_dims::redispatch(dispatchKeySet, sparse_dim, dense_dim, size, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::_sparse_coo_tensor_with_dims(int sparse_dim, int dense_dim, int[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=False) -> Tensor + inline at::Tensor _sparse_coo_tensor_with_dims(c10::DispatchKeySet dispatchKeySet, int64_t sparse_dim, int64_t dense_dim, at::IntArrayRef size, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::_sparse_coo_tensor_with_dims::redispatch(dispatchKeySet, sparse_dim, dense_dim, size, dtype, layout, device, pin_memory); + } + + // aten::_sparse_coo_tensor_with_dims_and_tensors(int sparse_dim, int dense_dim, SymInt[] size, Tensor indices, Tensor values, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=False, bool? is_coalesced=None) -> Tensor + inline at::Tensor _sparse_coo_tensor_with_dims_and_tensors(c10::DispatchKeySet dispatchKeySet, int64_t sparse_dim, int64_t dense_dim, at::IntArrayRef size, const at::Tensor & indices, const at::Tensor & values, at::TensorOptions options, c10::optional is_coalesced=c10::nullopt) { + return at::_ops::_sparse_coo_tensor_with_dims_and_tensors::redispatch(dispatchKeySet, sparse_dim, dense_dim, c10::fromIntArrayRefSlow(size), indices, values, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt(), is_coalesced); + } + + // aten::_sparse_coo_tensor_with_dims_and_tensors(int sparse_dim, int dense_dim, SymInt[] size, Tensor indices, Tensor values, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=False, bool? is_coalesced=None) -> Tensor + inline at::Tensor _sparse_coo_tensor_with_dims_and_tensors(c10::DispatchKeySet dispatchKeySet, int64_t sparse_dim, int64_t dense_dim, at::IntArrayRef size, const at::Tensor & indices, const at::Tensor & values, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory, c10::optional is_coalesced) { + return at::_ops::_sparse_coo_tensor_with_dims_and_tensors::redispatch(dispatchKeySet, sparse_dim, dense_dim, c10::fromIntArrayRefSlow(size), indices, values, dtype, layout, device, pin_memory, is_coalesced); + } + + // aten::_sparse_coo_tensor_with_dims_and_tensors(int sparse_dim, int dense_dim, SymInt[] size, Tensor indices, Tensor values, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=False, bool? is_coalesced=None) -> Tensor + inline at::Tensor _sparse_coo_tensor_with_dims_and_tensors_symint(c10::DispatchKeySet dispatchKeySet, int64_t sparse_dim, int64_t dense_dim, c10::SymIntArrayRef size, const at::Tensor & indices, const at::Tensor & values, at::TensorOptions options, c10::optional is_coalesced=c10::nullopt) { + return at::_ops::_sparse_coo_tensor_with_dims_and_tensors::redispatch(dispatchKeySet, sparse_dim, dense_dim, size, indices, values, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt(), is_coalesced); + } + + // aten::_sparse_coo_tensor_with_dims_and_tensors(int sparse_dim, int dense_dim, SymInt[] size, Tensor indices, Tensor values, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=False, bool? is_coalesced=None) -> Tensor + inline at::Tensor _sparse_coo_tensor_with_dims_and_tensors_symint(c10::DispatchKeySet dispatchKeySet, int64_t sparse_dim, int64_t dense_dim, c10::SymIntArrayRef size, const at::Tensor & indices, const at::Tensor & values, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory, c10::optional is_coalesced) { + return at::_ops::_sparse_coo_tensor_with_dims_and_tensors::redispatch(dispatchKeySet, sparse_dim, dense_dim, size, indices, values, dtype, layout, device, pin_memory, is_coalesced); + } + + // aten::sparse_resize_(Tensor(a!) self, int[] size, int sparse_dim, int dense_dim) -> Tensor(a!) + inline const at::Tensor & sparse_resize_(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef size, int64_t sparse_dim, int64_t dense_dim) { + return at::_ops::sparse_resize_::redispatch(dispatchKeySet, self, size, sparse_dim, dense_dim); + } + + // aten::sparse_resize_and_clear_(Tensor(a!) self, int[] size, int sparse_dim, int dense_dim) -> Tensor(a!) + inline const at::Tensor & sparse_resize_and_clear_(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef size, int64_t sparse_dim, int64_t dense_dim) { + return at::_ops::sparse_resize_and_clear_::redispatch(dispatchKeySet, self, size, sparse_dim, dense_dim); + } + + // aten::sparse_mask(Tensor self, Tensor mask) -> Tensor + inline at::Tensor sparse_mask(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & mask) { + return at::_ops::sparse_mask::redispatch(dispatchKeySet, self, mask); + } + + // aten::_sparse_mask_projection(Tensor self, Tensor mask, bool accumulate_matches=False) -> Tensor + inline at::Tensor _sparse_mask_projection(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & mask, bool accumulate_matches=false) { + return at::_ops::_sparse_mask_projection::redispatch(dispatchKeySet, self, mask, accumulate_matches); + } + + // aten::_to_cpu(Tensor[] tensors) -> Tensor[] + inline ::std::vector _to_cpu(c10::DispatchKeySet dispatchKeySet, at::TensorList tensors) { + return at::_ops::_to_cpu::redispatch(dispatchKeySet, tensors); + } + + // aten::to_dense(Tensor self, ScalarType? dtype=None, *, bool? masked_grad=None) -> Tensor + inline at::Tensor to_dense(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional dtype=c10::nullopt, c10::optional masked_grad=c10::nullopt) { + return at::_ops::to_dense::redispatch(dispatchKeySet, self, dtype, masked_grad); + } + + // aten::_to_dense(Tensor self, ScalarType? dtype=None, bool? masked_grad=None) -> Tensor + inline at::Tensor _to_dense(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional dtype=c10::nullopt, c10::optional masked_grad=c10::nullopt) { + return at::_ops::_to_dense::redispatch(dispatchKeySet, self, dtype, masked_grad); + } + + // aten::to_dense_backward(Tensor grad, Tensor input, bool? masked_grad=None) -> Tensor + inline at::Tensor to_dense_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad, const at::Tensor & input, c10::optional masked_grad=c10::nullopt) { + return at::_ops::to_dense_backward::redispatch(dispatchKeySet, grad, input, masked_grad); + } + + // aten::sparse_dim(Tensor self) -> int + inline int64_t sparse_dim(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::sparse_dim::redispatch(dispatchKeySet, self); + } + + // aten::_dimI(Tensor self) -> int + inline int64_t _dimI(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::_dimI::redispatch(dispatchKeySet, self); + } + + // aten::dense_dim(Tensor self) -> int + inline int64_t dense_dim(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::dense_dim::redispatch(dispatchKeySet, self); + } + + // aten::_dimV(Tensor self) -> int + inline int64_t _dimV(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::_dimV::redispatch(dispatchKeySet, self); + } + + // aten::_nnz(Tensor self) -> int + inline int64_t _nnz(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::_nnz::redispatch(dispatchKeySet, self); + } + + // aten::coalesce(Tensor(a) self) -> Tensor(a) + inline at::Tensor coalesce(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::coalesce::redispatch(dispatchKeySet, self); + } + + // aten::_coalesce(Tensor self) -> Tensor + inline at::Tensor _coalesce(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::_coalesce::redispatch(dispatchKeySet, self); + } + + // aten::is_coalesced(Tensor self) -> bool + inline bool is_coalesced(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::is_coalesced::redispatch(dispatchKeySet, self); + } + + // aten::_indices(Tensor(a) self) -> Tensor(a) + inline at::Tensor _indices(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::_indices::redispatch(dispatchKeySet, self); + } + + // aten::_values(Tensor(a) self) -> Tensor(a) + inline at::Tensor _values(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::_values::redispatch(dispatchKeySet, self); + } + + // aten::_coalesced_(Tensor(a!) self, bool coalesced) -> Tensor(a!) + inline at::Tensor & _coalesced_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, bool coalesced) { + return at::_ops::_coalesced_::redispatch(dispatchKeySet, self, coalesced); + } + + // aten::indices(Tensor(a) self) -> Tensor(a) + inline at::Tensor indices(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::indices::redispatch(dispatchKeySet, self); + } + + // aten::values(Tensor(a) self) -> Tensor(a) + inline at::Tensor values(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::values::redispatch(dispatchKeySet, self); + } + + // aten::crow_indices(Tensor(a) self) -> Tensor(a) + inline at::Tensor crow_indices(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::crow_indices::redispatch(dispatchKeySet, self); + } + + // aten::col_indices(Tensor(a) self) -> Tensor(a) + inline at::Tensor col_indices(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::col_indices::redispatch(dispatchKeySet, self); + } + + // aten::ccol_indices(Tensor(a) self) -> Tensor(a) + inline at::Tensor ccol_indices(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::ccol_indices::redispatch(dispatchKeySet, self); + } + + // aten::row_indices(Tensor(a) self) -> Tensor(a) + inline at::Tensor row_indices(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::row_indices::redispatch(dispatchKeySet, self); + } + + // aten::hspmm.out(Tensor mat1, Tensor mat2, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & hspmm_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & mat1, const at::Tensor & mat2) { + return at::_ops::hspmm_out::redispatch(dispatchKeySet, mat1, mat2, out); + } + + // aten::hspmm.out(Tensor mat1, Tensor mat2, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & hspmm_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & mat1, const at::Tensor & mat2, at::Tensor & out) { + return at::_ops::hspmm_out::redispatch(dispatchKeySet, mat1, mat2, out); + } + + // aten::hspmm(Tensor mat1, Tensor mat2) -> Tensor + inline at::Tensor hspmm(c10::DispatchKeySet dispatchKeySet, const at::Tensor & mat1, const at::Tensor & mat2) { + return at::_ops::hspmm::redispatch(dispatchKeySet, mat1, mat2); + } + + // aten::copy_sparse_to_sparse_(Tensor(a!) self, Tensor src, bool non_blocking=False) -> Tensor(a!) + inline at::Tensor & copy_sparse_to_sparse_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & src, bool non_blocking=false) { + return at::_ops::copy_sparse_to_sparse_::redispatch(dispatchKeySet, self, src, non_blocking); + } + + // aten::unbind.int(Tensor(a -> *) self, int dim=0) -> Tensor(a)[] + inline ::std::vector unbind(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim=0) { + return at::_ops::unbind_int::redispatch(dispatchKeySet, self, dim); + } + + // aten::unbind.Dimname(Tensor(a -> *) self, Dimname dim) -> Tensor(a)[] + inline ::std::vector unbind(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim) { + return at::_ops::unbind_Dimname::redispatch(dispatchKeySet, self, dim); + } + + // aten::to_sparse.sparse_dim(Tensor self, int sparse_dim) -> Tensor + inline at::Tensor to_sparse(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t sparse_dim) { + return at::_ops::to_sparse_sparse_dim::redispatch(dispatchKeySet, self, sparse_dim); + } + + // aten::_to_sparse.sparse_dim(Tensor self, int sparse_dim) -> Tensor + inline at::Tensor _to_sparse(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t sparse_dim) { + return at::_ops::_to_sparse_sparse_dim::redispatch(dispatchKeySet, self, sparse_dim); + } + + // aten::to_sparse(Tensor self, *, Layout? layout=None, int[2]? blocksize=None, int? dense_dim=None) -> Tensor + inline at::Tensor to_sparse(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional layout=c10::nullopt, at::OptionalIntArrayRef blocksize=c10::nullopt, c10::optional dense_dim=c10::nullopt) { + return at::_ops::to_sparse::redispatch(dispatchKeySet, self, layout, blocksize, dense_dim); + } + + // aten::_to_sparse(Tensor self, *, Layout? layout=None, int[2]? blocksize=None, int? dense_dim=None) -> Tensor + inline at::Tensor _to_sparse(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional layout=c10::nullopt, at::OptionalIntArrayRef blocksize=c10::nullopt, c10::optional dense_dim=c10::nullopt) { + return at::_ops::_to_sparse::redispatch(dispatchKeySet, self, layout, blocksize, dense_dim); + } + + // aten::to_sparse_csr(Tensor self, int? dense_dim=None) -> Tensor + inline at::Tensor to_sparse_csr(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional dense_dim=c10::nullopt) { + return at::_ops::to_sparse_csr::redispatch(dispatchKeySet, self, dense_dim); + } + + // aten::_to_sparse_csr(Tensor self, int? dense_dim=None) -> Tensor + inline at::Tensor _to_sparse_csr(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional dense_dim=c10::nullopt) { + return at::_ops::_to_sparse_csr::redispatch(dispatchKeySet, self, dense_dim); + } + + // aten::to_sparse_csc(Tensor self, int? dense_dim=None) -> Tensor + inline at::Tensor to_sparse_csc(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional dense_dim=c10::nullopt) { + return at::_ops::to_sparse_csc::redispatch(dispatchKeySet, self, dense_dim); + } + + // aten::_to_sparse_csc(Tensor self, int? dense_dim=None) -> Tensor + inline at::Tensor _to_sparse_csc(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional dense_dim=c10::nullopt) { + return at::_ops::_to_sparse_csc::redispatch(dispatchKeySet, self, dense_dim); + } + + // aten::to_sparse_bsr(Tensor self, int[2] blocksize, int? dense_dim=None) -> Tensor + inline at::Tensor to_sparse_bsr(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef blocksize, c10::optional dense_dim=c10::nullopt) { + return at::_ops::to_sparse_bsr::redispatch(dispatchKeySet, self, blocksize, dense_dim); + } + + // aten::_to_sparse_bsr(Tensor self, int[2] blocksize, int? dense_dim=None) -> Tensor + inline at::Tensor _to_sparse_bsr(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef blocksize, c10::optional dense_dim=c10::nullopt) { + return at::_ops::_to_sparse_bsr::redispatch(dispatchKeySet, self, blocksize, dense_dim); + } + + // aten::to_sparse_bsc(Tensor self, int[2] blocksize, int? dense_dim=None) -> Tensor + inline at::Tensor to_sparse_bsc(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef blocksize, c10::optional dense_dim=c10::nullopt) { + return at::_ops::to_sparse_bsc::redispatch(dispatchKeySet, self, blocksize, dense_dim); + } + + // aten::_to_sparse_bsc(Tensor self, int[2] blocksize, int? dense_dim=None) -> Tensor + inline at::Tensor _to_sparse_bsc(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef blocksize, c10::optional dense_dim=c10::nullopt) { + return at::_ops::_to_sparse_bsc::redispatch(dispatchKeySet, self, blocksize, dense_dim); + } + + // aten::_to_sparse_semi_structured(Tensor dense) -> (Tensor, Tensor) + inline ::std::tuple _to_sparse_semi_structured(c10::DispatchKeySet dispatchKeySet, const at::Tensor & dense) { + return at::_ops::_to_sparse_semi_structured::redispatch(dispatchKeySet, dense); + } + + // aten::to_mkldnn(Tensor self, ScalarType? dtype=None) -> Tensor + inline at::Tensor to_mkldnn(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional dtype=c10::nullopt) { + return at::_ops::to_mkldnn::redispatch(dispatchKeySet, self, dtype); + } + + // aten::mkldnn_reorder_conv2d_weight(Tensor self, SymInt[2] padding=0, SymInt[2] stride=1, SymInt[2] dilation=1, SymInt groups=1, SymInt[]? input_size=None) -> Tensor + inline at::Tensor mkldnn_reorder_conv2d_weight(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef padding=0, at::IntArrayRef stride=1, at::IntArrayRef dilation=1, int64_t groups=1, at::OptionalIntArrayRef input_size=c10::nullopt) { + return at::_ops::mkldnn_reorder_conv2d_weight::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(dilation), groups, input_size.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*input_size)) : c10::nullopt); + } + + // aten::mkldnn_reorder_conv2d_weight(Tensor self, SymInt[2] padding=0, SymInt[2] stride=1, SymInt[2] dilation=1, SymInt groups=1, SymInt[]? input_size=None) -> Tensor + inline at::Tensor mkldnn_reorder_conv2d_weight_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef padding=c10::SymInt(0), c10::SymIntArrayRef stride=c10::SymInt(1), c10::SymIntArrayRef dilation=c10::SymInt(1), c10::SymInt groups=1, at::OptionalSymIntArrayRef input_size=c10::nullopt) { + return at::_ops::mkldnn_reorder_conv2d_weight::redispatch(dispatchKeySet, self, padding, stride, dilation, groups, input_size); + } + + // aten::mkldnn_reorder_conv3d_weight(Tensor self, SymInt[3] padding=0, SymInt[3] stride=1, SymInt[3] dilation=1, SymInt groups=1) -> Tensor + inline at::Tensor mkldnn_reorder_conv3d_weight(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef padding=0, at::IntArrayRef stride=1, at::IntArrayRef dilation=1, int64_t groups=1) { + return at::_ops::mkldnn_reorder_conv3d_weight::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(dilation), groups); + } + + // aten::mkldnn_reorder_conv3d_weight(Tensor self, SymInt[3] padding=0, SymInt[3] stride=1, SymInt[3] dilation=1, SymInt groups=1) -> Tensor + inline at::Tensor mkldnn_reorder_conv3d_weight_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef padding=c10::SymInt(0), c10::SymIntArrayRef stride=c10::SymInt(1), c10::SymIntArrayRef dilation=c10::SymInt(1), c10::SymInt groups=1) { + return at::_ops::mkldnn_reorder_conv3d_weight::redispatch(dispatchKeySet, self, padding, stride, dilation, groups); + } + + // aten::to_mkldnn_backward(Tensor grad, Tensor input) -> Tensor + inline at::Tensor to_mkldnn_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad, const at::Tensor & input) { + return at::_ops::to_mkldnn_backward::redispatch(dispatchKeySet, grad, input); + } + + // aten::quantize_per_tensor_dynamic(Tensor self, ScalarType dtype, bool reduce_range) -> Tensor + inline at::Tensor quantize_per_tensor_dynamic(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::ScalarType dtype, bool reduce_range) { + return at::_ops::quantize_per_tensor_dynamic::redispatch(dispatchKeySet, self, dtype, reduce_range); + } + + // aten::quantize_per_tensor(Tensor self, float scale, int zero_point, ScalarType dtype) -> Tensor + inline at::Tensor quantize_per_tensor(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, double scale, int64_t zero_point, at::ScalarType dtype) { + return at::_ops::quantize_per_tensor::redispatch(dispatchKeySet, self, scale, zero_point, dtype); + } + + // aten::quantize_per_tensor.tensor_qparams(Tensor self, Tensor scale, Tensor zero_point, ScalarType dtype) -> Tensor + inline at::Tensor quantize_per_tensor(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & scale, const at::Tensor & zero_point, at::ScalarType dtype) { + return at::_ops::quantize_per_tensor_tensor_qparams::redispatch(dispatchKeySet, self, scale, zero_point, dtype); + } + + // aten::quantize_per_tensor.tensors(Tensor[] tensors, Tensor scales, Tensor zero_points, ScalarType dtype) -> Tensor[] + inline ::std::vector quantize_per_tensor(c10::DispatchKeySet dispatchKeySet, at::TensorList tensors, const at::Tensor & scales, const at::Tensor & zero_points, at::ScalarType dtype) { + return at::_ops::quantize_per_tensor_tensors::redispatch(dispatchKeySet, tensors, scales, zero_points, dtype); + } + + // aten::quantize_per_channel(Tensor self, Tensor scales, Tensor zero_points, int axis, ScalarType dtype) -> Tensor + inline at::Tensor quantize_per_channel(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & scales, const at::Tensor & zero_points, int64_t axis, at::ScalarType dtype) { + return at::_ops::quantize_per_channel::redispatch(dispatchKeySet, self, scales, zero_points, axis, dtype); + } + + // aten::dequantize.self(Tensor self) -> Tensor + inline at::Tensor dequantize(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::dequantize_self::redispatch(dispatchKeySet, self); + } + + // aten::dequantize.tensors(Tensor[] tensors) -> Tensor[] + inline ::std::vector dequantize(c10::DispatchKeySet dispatchKeySet, at::TensorList tensors) { + return at::_ops::dequantize_tensors::redispatch(dispatchKeySet, tensors); + } + + // aten::q_scale(Tensor self) -> float + inline double q_scale(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::q_scale::redispatch(dispatchKeySet, self); + } + + // aten::q_zero_point(Tensor self) -> int + inline int64_t q_zero_point(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::q_zero_point::redispatch(dispatchKeySet, self); + } + + // aten::q_per_channel_scales(Tensor self) -> Tensor + inline at::Tensor q_per_channel_scales(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::q_per_channel_scales::redispatch(dispatchKeySet, self); + } + + // aten::q_per_channel_zero_points(Tensor self) -> Tensor + inline at::Tensor q_per_channel_zero_points(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::q_per_channel_zero_points::redispatch(dispatchKeySet, self); + } + + // aten::q_per_channel_axis(Tensor self) -> int + inline int64_t q_per_channel_axis(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::q_per_channel_axis::redispatch(dispatchKeySet, self); + } + + // aten::int_repr(Tensor self) -> Tensor + inline at::Tensor int_repr(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::int_repr::redispatch(dispatchKeySet, self); + } + + // aten::_make_per_tensor_quantized_tensor(Tensor self, float scale, int zero_point) -> Tensor + inline at::Tensor _make_per_tensor_quantized_tensor(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, double scale, int64_t zero_point) { + return at::_ops::_make_per_tensor_quantized_tensor::redispatch(dispatchKeySet, self, scale, zero_point); + } + + // aten::_make_per_channel_quantized_tensor(Tensor self, Tensor scale, Tensor zero_point, int axis) -> Tensor + inline at::Tensor _make_per_channel_quantized_tensor(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & scale, const at::Tensor & zero_point, int64_t axis) { + return at::_ops::_make_per_channel_quantized_tensor::redispatch(dispatchKeySet, self, scale, zero_point, axis); + } + + // aten::qscheme(Tensor self) -> QScheme + inline at::QScheme qscheme(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::qscheme::redispatch(dispatchKeySet, self); + } + + // aten::fake_quantize_per_tensor_affine(Tensor self, float scale, int zero_point, int quant_min, int quant_max) -> Tensor + inline at::Tensor fake_quantize_per_tensor_affine(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, double scale, int64_t zero_point, int64_t quant_min, int64_t quant_max) { + return at::_ops::fake_quantize_per_tensor_affine::redispatch(dispatchKeySet, self, scale, zero_point, quant_min, quant_max); + } + + // aten::fake_quantize_per_tensor_affine.tensor_qparams(Tensor self, Tensor scale, Tensor zero_point, int quant_min, int quant_max) -> Tensor + inline at::Tensor fake_quantize_per_tensor_affine(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & scale, const at::Tensor & zero_point, int64_t quant_min, int64_t quant_max) { + return at::_ops::fake_quantize_per_tensor_affine_tensor_qparams::redispatch(dispatchKeySet, self, scale, zero_point, quant_min, quant_max); + } + + // aten::fake_quantize_per_tensor_affine_cachemask(Tensor self, float scale, int zero_point, int quant_min, int quant_max) -> (Tensor output, Tensor mask) + inline ::std::tuple fake_quantize_per_tensor_affine_cachemask(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, double scale, int64_t zero_point, int64_t quant_min, int64_t quant_max) { + return at::_ops::fake_quantize_per_tensor_affine_cachemask::redispatch(dispatchKeySet, self, scale, zero_point, quant_min, quant_max); + } + + // aten::_fake_quantize_per_tensor_affine_cachemask_tensor_qparams(Tensor self, Tensor scale, Tensor zero_point, Tensor fake_quant_enabled, int quant_min, int quant_max) -> (Tensor output, Tensor mask) + inline ::std::tuple _fake_quantize_per_tensor_affine_cachemask_tensor_qparams(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & scale, const at::Tensor & zero_point, const at::Tensor & fake_quant_enabled, int64_t quant_min, int64_t quant_max) { + return at::_ops::_fake_quantize_per_tensor_affine_cachemask_tensor_qparams::redispatch(dispatchKeySet, self, scale, zero_point, fake_quant_enabled, quant_min, quant_max); + } + + // aten::fake_quantize_per_tensor_affine_cachemask_backward(Tensor grad, Tensor mask) -> Tensor + inline at::Tensor fake_quantize_per_tensor_affine_cachemask_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad, const at::Tensor & mask) { + return at::_ops::fake_quantize_per_tensor_affine_cachemask_backward::redispatch(dispatchKeySet, grad, mask); + } + + // aten::_fake_quantize_learnable_per_tensor_affine(Tensor self, Tensor scale, Tensor zero_point, int quant_min, int quant_max, float grad_factor=1.0) -> Tensor + inline at::Tensor _fake_quantize_learnable_per_tensor_affine(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & scale, const at::Tensor & zero_point, int64_t quant_min, int64_t quant_max, double grad_factor=1.0) { + return at::_ops::_fake_quantize_learnable_per_tensor_affine::redispatch(dispatchKeySet, self, scale, zero_point, quant_min, quant_max, grad_factor); + } + + // aten::_fake_quantize_learnable_per_tensor_affine_backward(Tensor grad, Tensor self, Tensor scale, Tensor zero_point, int quant_min, int quant_max, float grad_factor=1.0) -> (Tensor, Tensor, Tensor) + inline ::std::tuple _fake_quantize_learnable_per_tensor_affine_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad, const at::Tensor & self, const at::Tensor & scale, const at::Tensor & zero_point, int64_t quant_min, int64_t quant_max, double grad_factor=1.0) { + return at::_ops::_fake_quantize_learnable_per_tensor_affine_backward::redispatch(dispatchKeySet, grad, self, scale, zero_point, quant_min, quant_max, grad_factor); + } + + // aten::fake_quantize_per_channel_affine(Tensor self, Tensor scale, Tensor zero_point, int axis, int quant_min, int quant_max) -> Tensor + inline at::Tensor fake_quantize_per_channel_affine(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & scale, const at::Tensor & zero_point, int64_t axis, int64_t quant_min, int64_t quant_max) { + return at::_ops::fake_quantize_per_channel_affine::redispatch(dispatchKeySet, self, scale, zero_point, axis, quant_min, quant_max); + } + + // aten::fake_quantize_per_channel_affine_cachemask(Tensor self, Tensor scale, Tensor zero_point, int axis, int quant_min, int quant_max) -> (Tensor output, Tensor mask) + inline ::std::tuple fake_quantize_per_channel_affine_cachemask(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & scale, const at::Tensor & zero_point, int64_t axis, int64_t quant_min, int64_t quant_max) { + return at::_ops::fake_quantize_per_channel_affine_cachemask::redispatch(dispatchKeySet, self, scale, zero_point, axis, quant_min, quant_max); + } + + // aten::fake_quantize_per_channel_affine_cachemask_backward(Tensor grad, Tensor mask) -> Tensor + inline at::Tensor fake_quantize_per_channel_affine_cachemask_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad, const at::Tensor & mask) { + return at::_ops::fake_quantize_per_channel_affine_cachemask_backward::redispatch(dispatchKeySet, grad, mask); + } + + // aten::_fake_quantize_learnable_per_channel_affine(Tensor self, Tensor scale, Tensor zero_point, int axis, int quant_min, int quant_max, float grad_factor=1.0) -> Tensor + inline at::Tensor _fake_quantize_learnable_per_channel_affine(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & scale, const at::Tensor & zero_point, int64_t axis, int64_t quant_min, int64_t quant_max, double grad_factor=1.0) { + return at::_ops::_fake_quantize_learnable_per_channel_affine::redispatch(dispatchKeySet, self, scale, zero_point, axis, quant_min, quant_max, grad_factor); + } + + // aten::_fake_quantize_learnable_per_channel_affine_backward(Tensor grad, Tensor self, Tensor scale, Tensor zero_point, int axis, int quant_min, int quant_max, float grad_factor=1.0) -> (Tensor, Tensor, Tensor) + inline ::std::tuple _fake_quantize_learnable_per_channel_affine_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad, const at::Tensor & self, const at::Tensor & scale, const at::Tensor & zero_point, int64_t axis, int64_t quant_min, int64_t quant_max, double grad_factor=1.0) { + return at::_ops::_fake_quantize_learnable_per_channel_affine_backward::redispatch(dispatchKeySet, grad, self, scale, zero_point, axis, quant_min, quant_max, grad_factor); + } + + // aten::fused_moving_avg_obs_fake_quant(Tensor self, Tensor observer_on, Tensor fake_quant_on, Tensor(a!) running_min, Tensor(b!) running_max, Tensor(c!) scale, Tensor(d!) zero_point, float averaging_const, int quant_min, int quant_max, int ch_axis, bool per_row_fake_quant=False, bool symmetric_quant=False) -> Tensor + inline at::Tensor fused_moving_avg_obs_fake_quant(c10::DispatchKeySet dispatchKeySet, 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) { + return at::_ops::fused_moving_avg_obs_fake_quant::redispatch(dispatchKeySet, self, observer_on, fake_quant_on, running_min, running_max, scale, zero_point, averaging_const, quant_min, quant_max, ch_axis, per_row_fake_quant, symmetric_quant); + } + + // aten::_fused_moving_avg_obs_fq_helper(Tensor self, Tensor observer_on, Tensor fake_quant_on, Tensor(a!) running_min, Tensor(b!) running_max, Tensor(c!) scale, Tensor(d!) zero_point, float averaging_const, int quant_min, int quant_max, int ch_axis, bool per_row_fake_quant=False, bool symmetric_quant=False) -> (Tensor output, Tensor mask) + inline ::std::tuple _fused_moving_avg_obs_fq_helper(c10::DispatchKeySet dispatchKeySet, 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) { + return at::_ops::_fused_moving_avg_obs_fq_helper::redispatch(dispatchKeySet, self, observer_on, fake_quant_on, running_min, running_max, scale, zero_point, averaging_const, quant_min, quant_max, ch_axis, per_row_fake_quant, symmetric_quant); + } + + // aten::_choose_qparams_per_tensor(Tensor self, bool reduce_range=False) -> (float, int) + inline ::std::tuple _choose_qparams_per_tensor(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, bool reduce_range=false) { + return at::_ops::_choose_qparams_per_tensor::redispatch(dispatchKeySet, self, reduce_range); + } + + // aten::_saturate_weight_to_fp16(Tensor weight) -> Tensor + inline at::Tensor _saturate_weight_to_fp16(c10::DispatchKeySet dispatchKeySet, const at::Tensor & weight) { + return at::_ops::_saturate_weight_to_fp16::redispatch(dispatchKeySet, weight); + } + + // aten::choose_qparams_optimized(Tensor input, int numel, int n_bins, float ratio, int bit_width) -> (Tensor, Tensor) + inline ::std::tuple choose_qparams_optimized(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, int64_t numel, int64_t n_bins, double ratio, int64_t bit_width) { + return at::_ops::choose_qparams_optimized::redispatch(dispatchKeySet, input, numel, n_bins, ratio, bit_width); + } + + // aten::_autocast_to_reduced_precision(Tensor(a) self, bool cuda_enabled, bool cpu_enabled, ScalarType cuda_dtype, ScalarType cpu_dtype) -> Tensor(a) + inline at::Tensor _autocast_to_reduced_precision(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, bool cuda_enabled, bool cpu_enabled, at::ScalarType cuda_dtype, at::ScalarType cpu_dtype) { + return at::_ops::_autocast_to_reduced_precision::redispatch(dispatchKeySet, self, cuda_enabled, cpu_enabled, cuda_dtype, cpu_dtype); + } + + // aten::_autocast_to_full_precision(Tensor(a) self, bool cuda_enabled, bool cpu_enabled) -> Tensor(a) + inline at::Tensor _autocast_to_full_precision(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, bool cuda_enabled, bool cpu_enabled) { + return at::_ops::_autocast_to_full_precision::redispatch(dispatchKeySet, self, cuda_enabled, cpu_enabled); + } + + // aten::_to_copy(Tensor self, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, bool non_blocking=False, MemoryFormat? memory_format=None) -> Tensor + inline at::Tensor _to_copy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::TensorOptions options={}, bool non_blocking=false, c10::optional memory_format=c10::nullopt) { + return at::_ops::_to_copy::redispatch(dispatchKeySet, self, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt(), non_blocking, c10::impl::check_tensor_options_and_extract_memory_format(options, memory_format)); + } + + // aten::_to_copy(Tensor self, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, bool non_blocking=False, MemoryFormat? memory_format=None) -> Tensor + inline at::Tensor _to_copy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory, bool non_blocking, c10::optional memory_format) { + return at::_ops::_to_copy::redispatch(dispatchKeySet, self, dtype, layout, device, pin_memory, non_blocking, memory_format); + } + + // aten::to.dtype_layout(Tensor(a) self, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, bool non_blocking=False, bool copy=False, MemoryFormat? memory_format=None) -> Tensor(a) + inline at::Tensor to(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::TensorOptions options={}, bool non_blocking=false, bool copy=false, c10::optional memory_format=c10::nullopt) { + return at::_ops::to_dtype_layout::redispatch(dispatchKeySet, self, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt(), non_blocking, copy, c10::impl::check_tensor_options_and_extract_memory_format(options, memory_format)); + } + + // aten::to.dtype_layout(Tensor(a) self, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, bool non_blocking=False, bool copy=False, MemoryFormat? memory_format=None) -> Tensor(a) + inline at::Tensor to(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory, bool non_blocking, bool copy, c10::optional memory_format) { + return at::_ops::to_dtype_layout::redispatch(dispatchKeySet, self, dtype, layout, device, pin_memory, non_blocking, copy, memory_format); + } + + // aten::to.device(Tensor(a) self, Device device, ScalarType dtype, bool non_blocking=False, bool copy=False, MemoryFormat? memory_format=None) -> Tensor(a) + inline at::Tensor to(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Device device, at::ScalarType dtype, bool non_blocking=false, bool copy=false, c10::optional memory_format=c10::nullopt) { + return at::_ops::to_device::redispatch(dispatchKeySet, self, device, dtype, non_blocking, copy, memory_format); + } + + // aten::to.dtype(Tensor(a) self, ScalarType dtype, bool non_blocking=False, bool copy=False, MemoryFormat? memory_format=None) -> Tensor(a) + inline at::Tensor to(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::ScalarType dtype, bool non_blocking=false, bool copy=false, c10::optional memory_format=c10::nullopt) { + return at::_ops::to_dtype::redispatch(dispatchKeySet, self, dtype, non_blocking, copy, memory_format); + } + + // aten::to.other(Tensor(a) self, Tensor other, bool non_blocking=False, bool copy=False, MemoryFormat? memory_format=None) -> Tensor(a) + inline at::Tensor to(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, bool non_blocking=false, bool copy=false, c10::optional memory_format=c10::nullopt) { + return at::_ops::to_other::redispatch(dispatchKeySet, self, other, non_blocking, copy, memory_format); + } + + // aten::meshgrid(Tensor[] tensors) -> Tensor[] + inline ::std::vector meshgrid(c10::DispatchKeySet dispatchKeySet, at::TensorList tensors) { + return at::_ops::meshgrid::redispatch(dispatchKeySet, tensors); + } + + // aten::meshgrid.indexing(Tensor[] tensors, *, str indexing) -> Tensor[] + inline ::std::vector meshgrid(c10::DispatchKeySet dispatchKeySet, at::TensorList tensors, c10::string_view indexing) { + return at::_ops::meshgrid_indexing::redispatch(dispatchKeySet, tensors, indexing); + } + + // aten::cartesian_prod(Tensor[] tensors) -> Tensor + inline at::Tensor cartesian_prod(c10::DispatchKeySet dispatchKeySet, at::TensorList tensors) { + return at::_ops::cartesian_prod::redispatch(dispatchKeySet, tensors); + } + + // aten::combinations(Tensor self, int r=2, bool with_replacement=False) -> Tensor + inline at::Tensor combinations(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t r=2, bool with_replacement=false) { + return at::_ops::combinations::redispatch(dispatchKeySet, self, r, with_replacement); + } + + // aten::item(Tensor self) -> Scalar + inline at::Scalar item(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::item::redispatch(dispatchKeySet, self); + } + + // aten::result_type.Tensor(Tensor tensor, Tensor other) -> ScalarType + inline at::ScalarType result_type(c10::DispatchKeySet dispatchKeySet, const at::Tensor & tensor, const at::Tensor & other) { + return at::_ops::result_type_Tensor::redispatch(dispatchKeySet, tensor, other); + } + + // aten::result_type.Scalar(Tensor tensor, Scalar other) -> ScalarType + inline at::ScalarType result_type(c10::DispatchKeySet dispatchKeySet, const at::Tensor & tensor, const at::Scalar & other) { + return at::_ops::result_type_Scalar::redispatch(dispatchKeySet, tensor, other); + } + + // aten::result_type.Scalar_Tensor(Scalar scalar, Tensor tensor) -> ScalarType + inline at::ScalarType result_type(c10::DispatchKeySet dispatchKeySet, const at::Scalar & scalar, const at::Tensor & tensor) { + return at::_ops::result_type_Scalar_Tensor::redispatch(dispatchKeySet, scalar, tensor); + } + + // aten::result_type.Scalar_Scalar(Scalar scalar1, Scalar scalar2) -> ScalarType + inline at::ScalarType result_type(c10::DispatchKeySet dispatchKeySet, const at::Scalar & scalar1, const at::Scalar & scalar2) { + return at::_ops::result_type_Scalar_Scalar::redispatch(dispatchKeySet, scalar1, scalar2); + } + + // aten::can_cast(ScalarType from, ScalarType to) -> bool + inline bool can_cast(c10::DispatchKeySet dispatchKeySet, at::ScalarType from, at::ScalarType to) { + return at::_ops::can_cast::redispatch(dispatchKeySet, from, to); + } + + // aten::promote_types(ScalarType type1, ScalarType type2) -> ScalarType + inline at::ScalarType promote_types(c10::DispatchKeySet dispatchKeySet, at::ScalarType type1, at::ScalarType type2) { + return at::_ops::promote_types::redispatch(dispatchKeySet, type1, type2); + } + + // aten::_local_scalar_dense(Tensor self) -> Scalar + inline at::Scalar _local_scalar_dense(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::_local_scalar_dense::redispatch(dispatchKeySet, self); + } + + // aten::_lstm_mps(Tensor input, Tensor[] hx, Tensor[] params, bool has_biases, int num_layers, float dropout, bool train, bool bidirectional, bool batch_first) -> (Tensor, Tensor, Tensor, Tensor, Tensor, Tensor) + inline ::std::tuple _lstm_mps(c10::DispatchKeySet dispatchKeySet, 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) { + return at::_ops::_lstm_mps::redispatch(dispatchKeySet, input, hx, params, has_biases, num_layers, dropout, train, bidirectional, batch_first); + } + + // aten::lstm_mps_backward(Tensor? grad_y, Tensor? grad_hy, Tensor? grad_cy, Tensor z_state, Tensor cell_state_fwd, Tensor input, Tensor layersOutputs, Tensor[] hx, Tensor[] params, bool has_biases, int num_layers, float dropout, bool train, bool bidirectional, bool batch_first) -> (Tensor, Tensor[], Tensor[]) + inline ::std::tuple,::std::vector> lstm_mps_backward(c10::DispatchKeySet dispatchKeySet, const c10::optional & grad_y, const c10::optional & grad_hy, const c10::optional & grad_cy, const at::Tensor & z_state, const at::Tensor & cell_state_fwd, const at::Tensor & input, const at::Tensor & layersOutputs, at::TensorList hx, at::TensorList params, bool has_biases, int64_t num_layers, double dropout, bool train, bool bidirectional, bool batch_first) { + return at::_ops::lstm_mps_backward::redispatch(dispatchKeySet, grad_y, grad_hy, grad_cy, z_state, cell_state_fwd, input, layersOutputs, hx, params, has_biases, num_layers, dropout, train, bidirectional, batch_first); + } + + // aten::_thnn_fused_lstm_cell(Tensor input_gates, Tensor hidden_gates, Tensor cx, Tensor? input_bias=None, Tensor? hidden_bias=None) -> (Tensor, Tensor, Tensor) + inline ::std::tuple _thnn_fused_lstm_cell(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input_gates, const at::Tensor & hidden_gates, const at::Tensor & cx, const c10::optional & input_bias={}, const c10::optional & hidden_bias={}) { + return at::_ops::_thnn_fused_lstm_cell::redispatch(dispatchKeySet, input_gates, hidden_gates, cx, input_bias, hidden_bias); + } + + // aten::_thnn_fused_lstm_cell_backward_impl(Tensor? grad_hy, Tensor? grad_cy, Tensor cx, Tensor cy, Tensor workspace, bool has_bias) -> (Tensor, Tensor, Tensor) + inline ::std::tuple _thnn_fused_lstm_cell_backward_impl(c10::DispatchKeySet dispatchKeySet, const c10::optional & grad_hy, const c10::optional & grad_cy, const at::Tensor & cx, const at::Tensor & cy, const at::Tensor & workspace, bool has_bias) { + return at::_ops::_thnn_fused_lstm_cell_backward_impl::redispatch(dispatchKeySet, grad_hy, grad_cy, cx, cy, workspace, has_bias); + } + + // aten::_thnn_fused_lstm_cell_backward(Tensor? grad_hy, Tensor? grad_cy, Tensor cx, Tensor cy, Tensor workspace, bool has_bias) -> (Tensor, Tensor, Tensor, Tensor, Tensor) + inline ::std::tuple _thnn_fused_lstm_cell_backward(c10::DispatchKeySet dispatchKeySet, const c10::optional & grad_hy, const c10::optional & grad_cy, const at::Tensor & cx, const at::Tensor & cy, const at::Tensor & workspace, bool has_bias) { + return at::_ops::_thnn_fused_lstm_cell_backward::redispatch(dispatchKeySet, grad_hy, grad_cy, cx, cy, workspace, has_bias); + } + + // aten::_thnn_differentiable_lstm_cell_backward(Tensor? grad_hy, Tensor? grad_cy, Tensor input_gates, Tensor hidden_gates, Tensor? input_bias, Tensor? hidden_bias, Tensor cx, Tensor cy) -> (Tensor, Tensor, Tensor, Tensor, Tensor) + inline ::std::tuple _thnn_differentiable_lstm_cell_backward(c10::DispatchKeySet dispatchKeySet, 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) { + return at::_ops::_thnn_differentiable_lstm_cell_backward::redispatch(dispatchKeySet, grad_hy, grad_cy, input_gates, hidden_gates, input_bias, hidden_bias, cx, cy); + } + + // aten::_thnn_fused_gru_cell(Tensor input_gates, Tensor hidden_gates, Tensor hx, Tensor? input_bias=None, Tensor? hidden_bias=None) -> (Tensor, Tensor) + inline ::std::tuple _thnn_fused_gru_cell(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input_gates, const at::Tensor & hidden_gates, const at::Tensor & hx, const c10::optional & input_bias={}, const c10::optional & hidden_bias={}) { + return at::_ops::_thnn_fused_gru_cell::redispatch(dispatchKeySet, input_gates, hidden_gates, hx, input_bias, hidden_bias); + } + + // aten::_thnn_fused_gru_cell_backward(Tensor grad_hy, Tensor workspace, bool has_bias) -> (Tensor, Tensor, Tensor, Tensor, Tensor) + inline ::std::tuple _thnn_fused_gru_cell_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_hy, const at::Tensor & workspace, bool has_bias) { + return at::_ops::_thnn_fused_gru_cell_backward::redispatch(dispatchKeySet, grad_hy, workspace, has_bias); + } + + // aten::_thnn_differentiable_gru_cell_backward(Tensor grad_hy, Tensor input_gates, Tensor hidden_gates, Tensor hx, Tensor? input_bias, Tensor? hidden_bias) -> (Tensor, Tensor, Tensor, Tensor, Tensor) + inline ::std::tuple _thnn_differentiable_gru_cell_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_hy, const at::Tensor & input_gates, const at::Tensor & hidden_gates, const at::Tensor & hx, const c10::optional & input_bias, const c10::optional & hidden_bias) { + return at::_ops::_thnn_differentiable_gru_cell_backward::redispatch(dispatchKeySet, grad_hy, input_gates, hidden_gates, hx, input_bias, hidden_bias); + } + + // aten::lstm.input(Tensor input, Tensor[] hx, Tensor[] params, bool has_biases, int num_layers, float dropout, bool train, bool bidirectional, bool batch_first) -> (Tensor, Tensor, Tensor) + inline ::std::tuple lstm(c10::DispatchKeySet dispatchKeySet, 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) { + return at::_ops::lstm_input::redispatch(dispatchKeySet, input, hx, params, has_biases, num_layers, dropout, train, bidirectional, batch_first); + } + + // aten::lstm.data(Tensor data, Tensor batch_sizes, Tensor[] hx, Tensor[] params, bool has_biases, int num_layers, float dropout, bool train, bool bidirectional) -> (Tensor, Tensor, Tensor) + inline ::std::tuple lstm(c10::DispatchKeySet dispatchKeySet, const at::Tensor & data, const at::Tensor & batch_sizes, at::TensorList hx, at::TensorList params, bool has_biases, int64_t num_layers, double dropout, bool train, bool bidirectional) { + return at::_ops::lstm_data::redispatch(dispatchKeySet, data, batch_sizes, hx, params, has_biases, num_layers, dropout, train, bidirectional); + } + + // aten::gru.input(Tensor input, Tensor hx, Tensor[] params, bool has_biases, int num_layers, float dropout, bool train, bool bidirectional, bool batch_first) -> (Tensor, Tensor) + inline ::std::tuple gru(c10::DispatchKeySet dispatchKeySet, 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) { + return at::_ops::gru_input::redispatch(dispatchKeySet, input, hx, params, has_biases, num_layers, dropout, train, bidirectional, batch_first); + } + + // aten::gru.data(Tensor data, Tensor batch_sizes, Tensor hx, Tensor[] params, bool has_biases, int num_layers, float dropout, bool train, bool bidirectional) -> (Tensor, Tensor) + inline ::std::tuple gru(c10::DispatchKeySet dispatchKeySet, 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) { + return at::_ops::gru_data::redispatch(dispatchKeySet, data, batch_sizes, hx, params, has_biases, num_layers, dropout, train, bidirectional); + } + + // aten::rnn_tanh.input(Tensor input, Tensor hx, Tensor[] params, bool has_biases, int num_layers, float dropout, bool train, bool bidirectional, bool batch_first) -> (Tensor, Tensor) + inline ::std::tuple rnn_tanh(c10::DispatchKeySet dispatchKeySet, 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) { + return at::_ops::rnn_tanh_input::redispatch(dispatchKeySet, input, hx, params, has_biases, num_layers, dropout, train, bidirectional, batch_first); + } + + // aten::rnn_tanh.data(Tensor data, Tensor batch_sizes, Tensor hx, Tensor[] params, bool has_biases, int num_layers, float dropout, bool train, bool bidirectional) -> (Tensor, Tensor) + inline ::std::tuple rnn_tanh(c10::DispatchKeySet dispatchKeySet, 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) { + return at::_ops::rnn_tanh_data::redispatch(dispatchKeySet, data, batch_sizes, hx, params, has_biases, num_layers, dropout, train, bidirectional); + } + + // aten::rnn_relu.input(Tensor input, Tensor hx, Tensor[] params, bool has_biases, int num_layers, float dropout, bool train, bool bidirectional, bool batch_first) -> (Tensor, Tensor) + inline ::std::tuple rnn_relu(c10::DispatchKeySet dispatchKeySet, 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) { + return at::_ops::rnn_relu_input::redispatch(dispatchKeySet, input, hx, params, has_biases, num_layers, dropout, train, bidirectional, batch_first); + } + + // aten::rnn_relu.data(Tensor data, Tensor batch_sizes, Tensor hx, Tensor[] params, bool has_biases, int num_layers, float dropout, bool train, bool bidirectional) -> (Tensor, Tensor) + inline ::std::tuple rnn_relu(c10::DispatchKeySet dispatchKeySet, 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) { + return at::_ops::rnn_relu_data::redispatch(dispatchKeySet, data, batch_sizes, hx, params, has_biases, num_layers, dropout, train, bidirectional); + } + + // aten::lstm_cell(Tensor input, Tensor[] hx, Tensor w_ih, Tensor w_hh, Tensor? b_ih=None, Tensor? b_hh=None) -> (Tensor, Tensor) + inline ::std::tuple lstm_cell(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, at::TensorList hx, const at::Tensor & w_ih, const at::Tensor & w_hh, const c10::optional & b_ih={}, const c10::optional & b_hh={}) { + return at::_ops::lstm_cell::redispatch(dispatchKeySet, input, hx, w_ih, w_hh, b_ih, b_hh); + } + + // aten::gru_cell(Tensor input, Tensor hx, Tensor w_ih, Tensor w_hh, Tensor? b_ih=None, Tensor? b_hh=None) -> Tensor + inline at::Tensor gru_cell(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & hx, const at::Tensor & w_ih, const at::Tensor & w_hh, const c10::optional & b_ih={}, const c10::optional & b_hh={}) { + return at::_ops::gru_cell::redispatch(dispatchKeySet, input, hx, w_ih, w_hh, b_ih, b_hh); + } + + // aten::rnn_tanh_cell(Tensor input, Tensor hx, Tensor w_ih, Tensor w_hh, Tensor? b_ih=None, Tensor? b_hh=None) -> Tensor + inline at::Tensor rnn_tanh_cell(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & hx, const at::Tensor & w_ih, const at::Tensor & w_hh, const c10::optional & b_ih={}, const c10::optional & b_hh={}) { + return at::_ops::rnn_tanh_cell::redispatch(dispatchKeySet, input, hx, w_ih, w_hh, b_ih, b_hh); + } + + // aten::rnn_relu_cell(Tensor input, Tensor hx, Tensor w_ih, Tensor w_hh, Tensor? b_ih=None, Tensor? b_hh=None) -> Tensor + inline at::Tensor rnn_relu_cell(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & hx, const at::Tensor & w_ih, const at::Tensor & w_hh, const c10::optional & b_ih={}, const c10::optional & b_hh={}) { + return at::_ops::rnn_relu_cell::redispatch(dispatchKeySet, input, hx, w_ih, w_hh, b_ih, b_hh); + } + + // aten::quantized_lstm_cell(Tensor input, Tensor[] hx, Tensor w_ih, Tensor w_hh, Tensor b_ih, Tensor b_hh, Tensor packed_ih, Tensor packed_hh, Tensor col_offsets_ih, Tensor col_offsets_hh, Scalar scale_ih, Scalar scale_hh, Scalar zero_point_ih, Scalar zero_point_hh) -> (Tensor, Tensor) + inline ::std::tuple quantized_lstm_cell(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, at::TensorList hx, const at::Tensor & w_ih, const at::Tensor & w_hh, const at::Tensor & b_ih, const at::Tensor & b_hh, const at::Tensor & packed_ih, const at::Tensor & packed_hh, const at::Tensor & col_offsets_ih, const at::Tensor & col_offsets_hh, const at::Scalar & scale_ih, const at::Scalar & scale_hh, const at::Scalar & zero_point_ih, const at::Scalar & zero_point_hh) { + return at::_ops::quantized_lstm_cell::redispatch(dispatchKeySet, input, hx, w_ih, w_hh, b_ih, b_hh, packed_ih, packed_hh, col_offsets_ih, col_offsets_hh, scale_ih, scale_hh, zero_point_ih, zero_point_hh); + } + + // aten::quantized_gru_cell(Tensor input, Tensor hx, Tensor w_ih, Tensor w_hh, Tensor b_ih, Tensor b_hh, Tensor packed_ih, Tensor packed_hh, Tensor col_offsets_ih, Tensor col_offsets_hh, Scalar scale_ih, Scalar scale_hh, Scalar zero_point_ih, Scalar zero_point_hh) -> Tensor + inline at::Tensor quantized_gru_cell(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & hx, const at::Tensor & w_ih, const at::Tensor & w_hh, const at::Tensor & b_ih, const at::Tensor & b_hh, const at::Tensor & packed_ih, const at::Tensor & packed_hh, const at::Tensor & col_offsets_ih, const at::Tensor & col_offsets_hh, const at::Scalar & scale_ih, const at::Scalar & scale_hh, const at::Scalar & zero_point_ih, const at::Scalar & zero_point_hh) { + return at::_ops::quantized_gru_cell::redispatch(dispatchKeySet, input, hx, w_ih, w_hh, b_ih, b_hh, packed_ih, packed_hh, col_offsets_ih, col_offsets_hh, scale_ih, scale_hh, zero_point_ih, zero_point_hh); + } + + // aten::quantized_rnn_relu_cell(Tensor input, Tensor hx, Tensor w_ih, Tensor w_hh, Tensor b_ih, Tensor b_hh, Tensor packed_ih, Tensor packed_hh, Tensor col_offsets_ih, Tensor col_offsets_hh, Scalar scale_ih, Scalar scale_hh, Scalar zero_point_ih, Scalar zero_point_hh) -> Tensor + inline at::Tensor quantized_rnn_relu_cell(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & hx, const at::Tensor & w_ih, const at::Tensor & w_hh, const at::Tensor & b_ih, const at::Tensor & b_hh, const at::Tensor & packed_ih, const at::Tensor & packed_hh, const at::Tensor & col_offsets_ih, const at::Tensor & col_offsets_hh, const at::Scalar & scale_ih, const at::Scalar & scale_hh, const at::Scalar & zero_point_ih, const at::Scalar & zero_point_hh) { + return at::_ops::quantized_rnn_relu_cell::redispatch(dispatchKeySet, input, hx, w_ih, w_hh, b_ih, b_hh, packed_ih, packed_hh, col_offsets_ih, col_offsets_hh, scale_ih, scale_hh, zero_point_ih, zero_point_hh); + } + + // aten::quantized_rnn_tanh_cell(Tensor input, Tensor hx, Tensor w_ih, Tensor w_hh, Tensor b_ih, Tensor b_hh, Tensor packed_ih, Tensor packed_hh, Tensor col_offsets_ih, Tensor col_offsets_hh, Scalar scale_ih, Scalar scale_hh, Scalar zero_point_ih, Scalar zero_point_hh) -> Tensor + inline at::Tensor quantized_rnn_tanh_cell(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & hx, const at::Tensor & w_ih, const at::Tensor & w_hh, const at::Tensor & b_ih, const at::Tensor & b_hh, const at::Tensor & packed_ih, const at::Tensor & packed_hh, const at::Tensor & col_offsets_ih, const at::Tensor & col_offsets_hh, const at::Scalar & scale_ih, const at::Scalar & scale_hh, const at::Scalar & zero_point_ih, const at::Scalar & zero_point_hh) { + return at::_ops::quantized_rnn_tanh_cell::redispatch(dispatchKeySet, input, hx, w_ih, w_hh, b_ih, b_hh, packed_ih, packed_hh, col_offsets_ih, col_offsets_hh, scale_ih, scale_hh, zero_point_ih, zero_point_hh); + } + + // aten::_pack_padded_sequence(Tensor input, Tensor lengths, bool batch_first) -> (Tensor, Tensor) + inline ::std::tuple _pack_padded_sequence(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & lengths, bool batch_first) { + return at::_ops::_pack_padded_sequence::redispatch(dispatchKeySet, input, lengths, batch_first); + } + + // aten::_pack_padded_sequence_backward(Tensor grad, SymInt[] input_size, Tensor batch_sizes, bool batch_first) -> Tensor + inline at::Tensor _pack_padded_sequence_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad, at::IntArrayRef input_size, const at::Tensor & batch_sizes, bool batch_first) { + return at::_ops::_pack_padded_sequence_backward::redispatch(dispatchKeySet, grad, c10::fromIntArrayRefSlow(input_size), batch_sizes, batch_first); + } + + // aten::_pack_padded_sequence_backward(Tensor grad, SymInt[] input_size, Tensor batch_sizes, bool batch_first) -> Tensor + inline at::Tensor _pack_padded_sequence_backward_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad, c10::SymIntArrayRef input_size, const at::Tensor & batch_sizes, bool batch_first) { + return at::_ops::_pack_padded_sequence_backward::redispatch(dispatchKeySet, grad, input_size, batch_sizes, batch_first); + } + + // aten::_pad_packed_sequence(Tensor data, Tensor batch_sizes, bool batch_first, Scalar padding_value, int total_length) -> (Tensor, Tensor) + inline ::std::tuple _pad_packed_sequence(c10::DispatchKeySet dispatchKeySet, const at::Tensor & data, const at::Tensor & batch_sizes, bool batch_first, const at::Scalar & padding_value, int64_t total_length) { + return at::_ops::_pad_packed_sequence::redispatch(dispatchKeySet, data, batch_sizes, batch_first, padding_value, total_length); + } + + // aten::set_.source_Storage(Tensor(a!) self, Storage source) -> Tensor(a!) + inline at::Tensor & set_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, at::Storage source) { + return at::_ops::set__source_Storage::redispatch(dispatchKeySet, self, source); + } + + // aten::set_.source_Storage_storage_offset(Tensor(a!) self, Storage source, SymInt storage_offset, SymInt[] size, SymInt[] stride=[]) -> Tensor(a!) + inline at::Tensor & set_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, at::Storage source, int64_t storage_offset, at::IntArrayRef size, at::IntArrayRef stride={}) { + return at::_ops::set__source_Storage_storage_offset::redispatch(dispatchKeySet, self, source, storage_offset, c10::fromIntArrayRefSlow(size), c10::fromIntArrayRefSlow(stride)); + } + + // aten::set_.source_Storage_storage_offset(Tensor(a!) self, Storage source, SymInt storage_offset, SymInt[] size, SymInt[] stride=[]) -> Tensor(a!) + inline at::Tensor & set__symint(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, at::Storage source, c10::SymInt storage_offset, c10::SymIntArrayRef size, c10::SymIntArrayRef stride={}) { + return at::_ops::set__source_Storage_storage_offset::redispatch(dispatchKeySet, self, source, storage_offset, size, stride); + } + + // aten::set_.source_Tensor_storage_offset(Tensor(a!) self, Tensor source, SymInt storage_offset, SymInt[] size, SymInt[] stride=[]) -> Tensor(a!) + inline at::Tensor & set_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & source, int64_t storage_offset, at::IntArrayRef size, at::IntArrayRef stride={}) { + return at::_ops::set__source_Tensor_storage_offset::redispatch(dispatchKeySet, self, source, storage_offset, c10::fromIntArrayRefSlow(size), c10::fromIntArrayRefSlow(stride)); + } + + // aten::set_.source_Tensor_storage_offset(Tensor(a!) self, Tensor source, SymInt storage_offset, SymInt[] size, SymInt[] stride=[]) -> Tensor(a!) + inline at::Tensor & set__symint(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & source, c10::SymInt storage_offset, c10::SymIntArrayRef size, c10::SymIntArrayRef stride={}) { + return at::_ops::set__source_Tensor_storage_offset::redispatch(dispatchKeySet, self, source, storage_offset, size, stride); + } + + // aten::set_.source_Tensor(Tensor(a!) self, Tensor source) -> Tensor(a!) + inline at::Tensor & set_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & source) { + return at::_ops::set__source_Tensor::redispatch(dispatchKeySet, self, source); + } + + // aten::set_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & set_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::set_::redispatch(dispatchKeySet, self); + } + + // aten::lift(Tensor self) -> Tensor + inline at::Tensor lift(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::lift::redispatch(dispatchKeySet, self); + } + + // aten::lift_fresh(Tensor(a) self) -> Tensor(a) + inline at::Tensor lift_fresh(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::lift_fresh::redispatch(dispatchKeySet, self); + } + + // aten::lift_fresh_copy(Tensor self) -> Tensor + inline at::Tensor lift_fresh_copy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::lift_fresh_copy::redispatch(dispatchKeySet, self); + } + + // aten::is_set_to(Tensor self, Tensor tensor) -> bool + inline bool is_set_to(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & tensor) { + return at::_ops::is_set_to::redispatch(dispatchKeySet, self, tensor); + } + + // aten::masked_fill_.Scalar(Tensor(a!) self, Tensor mask, Scalar value) -> Tensor(a!) + inline at::Tensor & masked_fill_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & mask, const at::Scalar & value) { + return at::_ops::masked_fill__Scalar::redispatch(dispatchKeySet, self, mask, value); + } + + // aten::masked_fill.Scalar(Tensor self, Tensor mask, Scalar value) -> Tensor + inline at::Tensor masked_fill(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & mask, const at::Scalar & value) { + return at::_ops::masked_fill_Scalar::redispatch(dispatchKeySet, self, mask, value); + } + + // aten::masked_fill_.Tensor(Tensor(a!) self, Tensor mask, Tensor value) -> Tensor(a!) + inline at::Tensor & masked_fill_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & mask, const at::Tensor & value) { + return at::_ops::masked_fill__Tensor::redispatch(dispatchKeySet, self, mask, value); + } + + // aten::masked_fill.Tensor(Tensor self, Tensor mask, Tensor value) -> Tensor + inline at::Tensor masked_fill(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & mask, const at::Tensor & value) { + return at::_ops::masked_fill_Tensor::redispatch(dispatchKeySet, self, mask, value); + } + + // aten::masked_scatter_(Tensor(a!) self, Tensor mask, Tensor source) -> Tensor(a!) + inline at::Tensor & masked_scatter_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & mask, const at::Tensor & source) { + return at::_ops::masked_scatter_::redispatch(dispatchKeySet, self, mask, source); + } + + // aten::masked_scatter(Tensor self, Tensor mask, Tensor source) -> Tensor + inline at::Tensor masked_scatter(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & mask, const at::Tensor & source) { + return at::_ops::masked_scatter::redispatch(dispatchKeySet, self, mask, source); + } + + // aten::masked_scatter_backward(Tensor grad_output, Tensor mask, SymInt[] sizes) -> Tensor + inline at::Tensor masked_scatter_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & mask, at::IntArrayRef sizes) { + return at::_ops::masked_scatter_backward::redispatch(dispatchKeySet, grad_output, mask, c10::fromIntArrayRefSlow(sizes)); + } + + // aten::masked_scatter_backward(Tensor grad_output, Tensor mask, SymInt[] sizes) -> Tensor + inline at::Tensor masked_scatter_backward_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & mask, c10::SymIntArrayRef sizes) { + return at::_ops::masked_scatter_backward::redispatch(dispatchKeySet, grad_output, mask, sizes); + } + + // aten::_masked_softmax(Tensor self, Tensor mask, int? dim=None, int? mask_type=None) -> Tensor + inline at::Tensor _masked_softmax(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & mask, c10::optional dim=c10::nullopt, c10::optional mask_type=c10::nullopt) { + return at::_ops::_masked_softmax::redispatch(dispatchKeySet, self, mask, dim, mask_type); + } + + // aten::_masked_softmax_backward(Tensor grad_output, Tensor output, Tensor mask, int? dim=None) -> Tensor + inline at::Tensor _masked_softmax_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & output, const at::Tensor & mask, c10::optional dim=c10::nullopt) { + return at::_ops::_masked_softmax_backward::redispatch(dispatchKeySet, grad_output, output, mask, dim); + } + + // aten::view(Tensor(a) self, SymInt[] size) -> Tensor(a) + inline at::Tensor view(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef size) { + return at::_ops::view::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(size)); + } + + // aten::view(Tensor(a) self, SymInt[] size) -> Tensor(a) + inline at::Tensor view_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef size) { + return at::_ops::view::redispatch(dispatchKeySet, self, size); + } + + // aten::view.dtype(Tensor(a) self, ScalarType dtype) -> Tensor(a) + inline at::Tensor view(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::ScalarType dtype) { + return at::_ops::view_dtype::redispatch(dispatchKeySet, self, dtype); + } + + // aten::put_(Tensor(a!) self, Tensor index, Tensor source, bool accumulate=False) -> Tensor(a!) + inline at::Tensor & put_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & index, const at::Tensor & source, bool accumulate=false) { + return at::_ops::put_::redispatch(dispatchKeySet, self, index, source, accumulate); + } + + // aten::put(Tensor self, Tensor index, Tensor source, bool accumulate=False) -> Tensor + inline at::Tensor put(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & index, const at::Tensor & source, bool accumulate=false) { + return at::_ops::put::redispatch(dispatchKeySet, self, index, source, accumulate); + } + + // aten::index_add.out(Tensor self, int dim, Tensor index, Tensor source, *, Scalar alpha=1, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & index_add_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Tensor & source, const at::Scalar & alpha=1) { + return at::_ops::index_add_out::redispatch(dispatchKeySet, self, dim, index, source, alpha, out); + } + + // aten::index_add.out(Tensor self, int dim, Tensor index, Tensor source, *, Scalar alpha=1, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & index_add_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Tensor & source, const at::Scalar & alpha, at::Tensor & out) { + return at::_ops::index_add_out::redispatch(dispatchKeySet, self, dim, index, source, alpha, out); + } + + // aten::index_add_(Tensor(a!) self, int dim, Tensor index, Tensor source, *, Scalar alpha=1) -> Tensor(a!) + inline at::Tensor & index_add_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Tensor & source, const at::Scalar & alpha=1) { + return at::_ops::index_add_::redispatch(dispatchKeySet, self, dim, index, source, alpha); + } + + // aten::index_add(Tensor self, int dim, Tensor index, Tensor source, *, Scalar alpha=1) -> Tensor + inline at::Tensor index_add(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Tensor & source, const at::Scalar & alpha=1) { + return at::_ops::index_add::redispatch(dispatchKeySet, self, dim, index, source, alpha); + } + + // aten::index_add.dimname(Tensor self, Dimname dim, Tensor index, Tensor source, *, Scalar alpha=1) -> Tensor + inline at::Tensor index_add(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim, const at::Tensor & index, const at::Tensor & source, const at::Scalar & alpha=1) { + return at::_ops::index_add_dimname::redispatch(dispatchKeySet, self, dim, index, source, alpha); + } + + // aten::index_reduce.out(Tensor self, int dim, Tensor index, Tensor source, str reduce, *, bool include_self=True, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & index_reduce_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Tensor & source, c10::string_view reduce, bool include_self=true) { + return at::_ops::index_reduce_out::redispatch(dispatchKeySet, self, dim, index, source, reduce, include_self, out); + } + + // aten::index_reduce.out(Tensor self, int dim, Tensor index, Tensor source, str reduce, *, bool include_self=True, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & index_reduce_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Tensor & source, c10::string_view reduce, bool include_self, at::Tensor & out) { + return at::_ops::index_reduce_out::redispatch(dispatchKeySet, self, dim, index, source, reduce, include_self, out); + } + + // aten::index_reduce_(Tensor(a!) self, int dim, Tensor index, Tensor source, str reduce, *, bool include_self=True) -> Tensor(a!) + inline at::Tensor & index_reduce_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Tensor & source, c10::string_view reduce, bool include_self=true) { + return at::_ops::index_reduce_::redispatch(dispatchKeySet, self, dim, index, source, reduce, include_self); + } + + // aten::index_reduce(Tensor self, int dim, Tensor index, Tensor source, str reduce, *, bool include_self=True) -> Tensor + inline at::Tensor index_reduce(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Tensor & source, c10::string_view reduce, bool include_self=true) { + return at::_ops::index_reduce::redispatch(dispatchKeySet, self, dim, index, source, reduce, include_self); + } + + // aten::index_fill_.int_Scalar(Tensor(a!) self, int dim, Tensor index, Scalar value) -> Tensor(a!) + inline at::Tensor & index_fill_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Scalar & value) { + return at::_ops::index_fill__int_Scalar::redispatch(dispatchKeySet, self, dim, index, value); + } + + // aten::index_fill.int_Scalar(Tensor self, int dim, Tensor index, Scalar value) -> Tensor + inline at::Tensor index_fill(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Scalar & value) { + return at::_ops::index_fill_int_Scalar::redispatch(dispatchKeySet, self, dim, index, value); + } + + // aten::index_fill_.int_Tensor(Tensor(a!) self, int dim, Tensor index, Tensor value) -> Tensor(a!) + inline at::Tensor & index_fill_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Tensor & value) { + return at::_ops::index_fill__int_Tensor::redispatch(dispatchKeySet, self, dim, index, value); + } + + // aten::index_fill.int_Tensor(Tensor self, int dim, Tensor index, Tensor value) -> Tensor + inline at::Tensor index_fill(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Tensor & value) { + return at::_ops::index_fill_int_Tensor::redispatch(dispatchKeySet, self, dim, index, value); + } + + // aten::index_fill_.Dimname_Scalar(Tensor(a!) self, Dimname dim, Tensor index, Scalar value) -> Tensor(a!) + inline at::Tensor & index_fill_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, at::Dimname dim, const at::Tensor & index, const at::Scalar & value) { + return at::_ops::index_fill__Dimname_Scalar::redispatch(dispatchKeySet, self, dim, index, value); + } + + // aten::index_fill_.Dimname_Tensor(Tensor(a!) self, Dimname dim, Tensor index, Tensor value) -> Tensor(a!) + inline at::Tensor & index_fill_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, at::Dimname dim, const at::Tensor & index, const at::Tensor & value) { + return at::_ops::index_fill__Dimname_Tensor::redispatch(dispatchKeySet, self, dim, index, value); + } + + // aten::index_fill.Dimname_Scalar(Tensor self, Dimname dim, Tensor index, Scalar value) -> Tensor + inline at::Tensor index_fill(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim, const at::Tensor & index, const at::Scalar & value) { + return at::_ops::index_fill_Dimname_Scalar::redispatch(dispatchKeySet, self, dim, index, value); + } + + // aten::index_fill.Dimname_Tensor(Tensor self, Dimname dim, Tensor index, Tensor value) -> Tensor + inline at::Tensor index_fill(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim, const at::Tensor & index, const at::Tensor & value) { + return at::_ops::index_fill_Dimname_Tensor::redispatch(dispatchKeySet, self, dim, index, value); + } + + // aten::scatter.src(Tensor self, int dim, Tensor index, Tensor src) -> Tensor + inline at::Tensor scatter(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Tensor & src) { + return at::_ops::scatter_src::redispatch(dispatchKeySet, self, dim, index, src); + } + + // aten::scatter_.src(Tensor(a!) self, int dim, Tensor index, Tensor src) -> Tensor(a!) + inline at::Tensor & scatter_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Tensor & src) { + return at::_ops::scatter__src::redispatch(dispatchKeySet, 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(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Tensor & src) { + return at::_ops::scatter_src_out::redispatch(dispatchKeySet, 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(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Tensor & src, at::Tensor & out) { + return at::_ops::scatter_src_out::redispatch(dispatchKeySet, self, dim, index, src, out); + } + + // aten::scatter.value(Tensor self, int dim, Tensor index, Scalar value) -> Tensor + inline at::Tensor scatter(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Scalar & value) { + return at::_ops::scatter_value::redispatch(dispatchKeySet, self, dim, index, value); + } + + // aten::scatter_.value(Tensor(a!) self, int dim, Tensor index, Scalar value) -> Tensor(a!) + inline at::Tensor & scatter_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Scalar & value) { + return at::_ops::scatter__value::redispatch(dispatchKeySet, 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(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Scalar & value) { + return at::_ops::scatter_value_out::redispatch(dispatchKeySet, 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(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Scalar & value, at::Tensor & out) { + return at::_ops::scatter_value_out::redispatch(dispatchKeySet, self, dim, index, value, out); + } + + // aten::scatter.reduce(Tensor self, int dim, Tensor index, Tensor src, *, str reduce) -> Tensor + inline at::Tensor scatter(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Tensor & src, c10::string_view reduce) { + return at::_ops::scatter_reduce::redispatch(dispatchKeySet, self, dim, index, src, reduce); + } + + // aten::scatter_.reduce(Tensor(a!) self, int dim, Tensor index, Tensor src, *, str reduce) -> Tensor(a!) + inline at::Tensor & scatter_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Tensor & src, c10::string_view reduce) { + return at::_ops::scatter__reduce::redispatch(dispatchKeySet, 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(c10::DispatchKeySet dispatchKeySet, 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::redispatch(dispatchKeySet, 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(c10::DispatchKeySet dispatchKeySet, 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::redispatch(dispatchKeySet, 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(c10::DispatchKeySet dispatchKeySet, 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::redispatch(dispatchKeySet, self, dim, index, value, reduce); + } + + // aten::scatter_.value_reduce(Tensor(a!) self, int dim, Tensor index, Scalar value, *, str reduce) -> Tensor(a!) + inline at::Tensor & scatter_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Scalar & value, c10::string_view reduce) { + return at::_ops::scatter__value_reduce::redispatch(dispatchKeySet, 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(c10::DispatchKeySet dispatchKeySet, 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::redispatch(dispatchKeySet, 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(c10::DispatchKeySet dispatchKeySet, 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::redispatch(dispatchKeySet, self, dim, index, value, reduce, out); + } + + // aten::scatter.dimname_src(Tensor self, Dimname dim, Tensor index, Tensor src) -> Tensor + inline at::Tensor scatter(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim, const at::Tensor & index, const at::Tensor & src) { + return at::_ops::scatter_dimname_src::redispatch(dispatchKeySet, self, dim, index, src); + } + + // aten::scatter.dimname_value(Tensor self, Dimname dim, Tensor index, Scalar value) -> Tensor + inline at::Tensor scatter(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim, const at::Tensor & index, const at::Scalar & value) { + return at::_ops::scatter_dimname_value::redispatch(dispatchKeySet, self, dim, index, value); + } + + // aten::scatter_add(Tensor self, int dim, Tensor index, Tensor src) -> Tensor + inline at::Tensor scatter_add(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Tensor & src) { + return at::_ops::scatter_add::redispatch(dispatchKeySet, self, dim, index, src); + } + + // aten::scatter_add_(Tensor(a!) self, int dim, Tensor index, Tensor src) -> Tensor(a!) + inline at::Tensor & scatter_add_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Tensor & src) { + return at::_ops::scatter_add_::redispatch(dispatchKeySet, self, dim, index, src); + } + + // aten::scatter_add.out(Tensor self, int dim, Tensor index, Tensor src, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & scatter_add_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Tensor & src) { + return at::_ops::scatter_add_out::redispatch(dispatchKeySet, self, dim, index, src, out); + } + + // aten::scatter_add.out(Tensor self, int dim, Tensor index, Tensor src, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & scatter_add_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Tensor & src, at::Tensor & out) { + return at::_ops::scatter_add_out::redispatch(dispatchKeySet, self, dim, index, src, out); + } + + // aten::scatter_add.dimname(Tensor self, Dimname dim, Tensor index, Tensor src) -> Tensor + inline at::Tensor scatter_add(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim, const at::Tensor & index, const at::Tensor & src) { + return at::_ops::scatter_add_dimname::redispatch(dispatchKeySet, self, dim, index, src); + } + + // aten::scatter_reduce.two(Tensor self, int dim, Tensor index, Tensor src, str reduce, *, bool include_self=True) -> Tensor + inline at::Tensor scatter_reduce(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Tensor & src, c10::string_view reduce, bool include_self=true) { + return at::_ops::scatter_reduce_two::redispatch(dispatchKeySet, self, dim, index, src, reduce, include_self); + } + + // aten::scatter_reduce_.two(Tensor(a!) self, int dim, Tensor index, Tensor src, str reduce, *, bool include_self=True) -> Tensor(a!) + inline at::Tensor & scatter_reduce_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Tensor & src, c10::string_view reduce, bool include_self=true) { + return at::_ops::scatter_reduce__two::redispatch(dispatchKeySet, self, dim, index, src, reduce, include_self); + } + + // aten::scatter_reduce.two_out(Tensor self, int dim, Tensor index, Tensor src, str reduce, *, bool include_self=True, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & scatter_reduce_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Tensor & src, c10::string_view reduce, bool include_self=true) { + return at::_ops::scatter_reduce_two_out::redispatch(dispatchKeySet, self, dim, index, src, reduce, include_self, out); + } + + // aten::scatter_reduce.two_out(Tensor self, int dim, Tensor index, Tensor src, str reduce, *, bool include_self=True, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & scatter_reduce_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Tensor & src, c10::string_view reduce, bool include_self, at::Tensor & out) { + return at::_ops::scatter_reduce_two_out::redispatch(dispatchKeySet, self, dim, index, src, reduce, include_self, out); + } + + // aten::eq_.Scalar(Tensor(a!) self, Scalar other) -> Tensor(a!) + inline at::Tensor & eq_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Scalar & other) { + return at::_ops::eq__Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::eq_.Tensor(Tensor(a!) self, Tensor other) -> Tensor(a!) + inline at::Tensor & eq_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & other) { + return at::_ops::eq__Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::bitwise_and.Tensor_out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & bitwise_and_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::bitwise_and_Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::bitwise_and.Tensor_out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & bitwise_and_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::bitwise_and_Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::bitwise_and.Scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & bitwise_and_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::bitwise_and_Scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::bitwise_and.Scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & bitwise_and_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other, at::Tensor & out) { + return at::_ops::bitwise_and_Scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::bitwise_and.Scalar(Tensor self, Scalar other) -> Tensor + inline at::Tensor bitwise_and(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::bitwise_and_Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::bitwise_and.Scalar_Tensor(Scalar self, Tensor other) -> Tensor + inline at::Tensor bitwise_and(c10::DispatchKeySet dispatchKeySet, const at::Scalar & self, const at::Tensor & other) { + return at::_ops::bitwise_and_Scalar_Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::bitwise_and.Tensor(Tensor self, Tensor other) -> Tensor + inline at::Tensor bitwise_and(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::bitwise_and_Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::bitwise_and_.Scalar(Tensor(a!) self, Scalar other) -> Tensor(a!) + inline at::Tensor & bitwise_and_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Scalar & other) { + return at::_ops::bitwise_and__Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::bitwise_and_.Tensor(Tensor(a!) self, Tensor other) -> Tensor(a!) + inline at::Tensor & bitwise_and_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & other) { + return at::_ops::bitwise_and__Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::__and__.Scalar(Tensor self, Scalar other) -> Tensor + inline at::Tensor __and__(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::__and___Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::__and__.Tensor(Tensor self, Tensor other) -> Tensor + inline at::Tensor __and__(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::__and___Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::__iand__.Scalar(Tensor(a!) self, Scalar other) -> Tensor(a!) + inline at::Tensor & __iand__(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Scalar & other) { + return at::_ops::__iand___Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::__iand__.Tensor(Tensor(a!) self, Tensor other) -> Tensor(a!) + inline at::Tensor & __iand__(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & other) { + return at::_ops::__iand___Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::bitwise_or.Tensor_out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & bitwise_or_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::bitwise_or_Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::bitwise_or.Tensor_out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & bitwise_or_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::bitwise_or_Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::bitwise_or.Scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & bitwise_or_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::bitwise_or_Scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::bitwise_or.Scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & bitwise_or_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other, at::Tensor & out) { + return at::_ops::bitwise_or_Scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::bitwise_or.Scalar(Tensor self, Scalar other) -> Tensor + inline at::Tensor bitwise_or(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::bitwise_or_Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::bitwise_or.Scalar_Tensor(Scalar self, Tensor other) -> Tensor + inline at::Tensor bitwise_or(c10::DispatchKeySet dispatchKeySet, const at::Scalar & self, const at::Tensor & other) { + return at::_ops::bitwise_or_Scalar_Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::bitwise_or.Tensor(Tensor self, Tensor other) -> Tensor + inline at::Tensor bitwise_or(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::bitwise_or_Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::bitwise_or_.Scalar(Tensor(a!) self, Scalar other) -> Tensor(a!) + inline at::Tensor & bitwise_or_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Scalar & other) { + return at::_ops::bitwise_or__Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::bitwise_or_.Tensor(Tensor(a!) self, Tensor other) -> Tensor(a!) + inline at::Tensor & bitwise_or_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & other) { + return at::_ops::bitwise_or__Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::__or__.Scalar(Tensor self, Scalar other) -> Tensor + inline at::Tensor __or__(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::__or___Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::__or__.Tensor(Tensor self, Tensor other) -> Tensor + inline at::Tensor __or__(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::__or___Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::__ior__.Scalar(Tensor(a!) self, Scalar other) -> Tensor(a!) + inline at::Tensor & __ior__(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Scalar & other) { + return at::_ops::__ior___Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::__ior__.Tensor(Tensor(a!) self, Tensor other) -> Tensor(a!) + inline at::Tensor & __ior__(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & other) { + return at::_ops::__ior___Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::bitwise_xor.Tensor_out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & bitwise_xor_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::bitwise_xor_Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::bitwise_xor.Tensor_out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & bitwise_xor_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::bitwise_xor_Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::bitwise_xor.Scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & bitwise_xor_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::bitwise_xor_Scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::bitwise_xor.Scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & bitwise_xor_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other, at::Tensor & out) { + return at::_ops::bitwise_xor_Scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::bitwise_xor.Scalar(Tensor self, Scalar other) -> Tensor + inline at::Tensor bitwise_xor(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::bitwise_xor_Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::bitwise_xor.Scalar_Tensor(Scalar self, Tensor other) -> Tensor + inline at::Tensor bitwise_xor(c10::DispatchKeySet dispatchKeySet, const at::Scalar & self, const at::Tensor & other) { + return at::_ops::bitwise_xor_Scalar_Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::bitwise_xor.Tensor(Tensor self, Tensor other) -> Tensor + inline at::Tensor bitwise_xor(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::bitwise_xor_Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::bitwise_xor_.Scalar(Tensor(a!) self, Scalar other) -> Tensor(a!) + inline at::Tensor & bitwise_xor_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Scalar & other) { + return at::_ops::bitwise_xor__Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::bitwise_xor_.Tensor(Tensor(a!) self, Tensor other) -> Tensor(a!) + inline at::Tensor & bitwise_xor_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & other) { + return at::_ops::bitwise_xor__Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::__xor__.Scalar(Tensor self, Scalar other) -> Tensor + inline at::Tensor __xor__(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::__xor___Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::__xor__.Tensor(Tensor self, Tensor other) -> Tensor + inline at::Tensor __xor__(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::__xor___Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::__ixor__.Scalar(Tensor(a!) self, Scalar other) -> Tensor(a!) + inline at::Tensor & __ixor__(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Scalar & other) { + return at::_ops::__ixor___Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::__ixor__.Tensor(Tensor(a!) self, Tensor other) -> Tensor(a!) + inline at::Tensor & __ixor__(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & other) { + return at::_ops::__ixor___Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::__lshift__.Scalar(Tensor self, Scalar other) -> Tensor + inline at::Tensor __lshift__(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::__lshift___Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::__lshift__.Tensor(Tensor self, Tensor other) -> Tensor + inline at::Tensor __lshift__(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::__lshift___Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::__ilshift__.Scalar(Tensor(a!) self, Scalar other) -> Tensor(a!) + inline at::Tensor & __ilshift__(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Scalar & other) { + return at::_ops::__ilshift___Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::__ilshift__.Tensor(Tensor(a!) self, Tensor other) -> Tensor(a!) + inline at::Tensor & __ilshift__(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & other) { + return at::_ops::__ilshift___Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::bitwise_left_shift.Tensor(Tensor self, Tensor other) -> Tensor + inline at::Tensor bitwise_left_shift(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::bitwise_left_shift_Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::bitwise_left_shift_.Tensor(Tensor(a!) self, Tensor other) -> Tensor(a!) + inline at::Tensor & bitwise_left_shift_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & other) { + return at::_ops::bitwise_left_shift__Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::bitwise_left_shift.Tensor_out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & bitwise_left_shift_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::bitwise_left_shift_Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::bitwise_left_shift.Tensor_out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & bitwise_left_shift_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::bitwise_left_shift_Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::bitwise_left_shift.Tensor_Scalar(Tensor self, Scalar other) -> Tensor + inline at::Tensor bitwise_left_shift(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::bitwise_left_shift_Tensor_Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::bitwise_left_shift_.Tensor_Scalar(Tensor(a!) self, Scalar other) -> Tensor(a!) + inline at::Tensor & bitwise_left_shift_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Scalar & other) { + return at::_ops::bitwise_left_shift__Tensor_Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::bitwise_left_shift.Tensor_Scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & bitwise_left_shift_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::bitwise_left_shift_Tensor_Scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::bitwise_left_shift.Tensor_Scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & bitwise_left_shift_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other, at::Tensor & out) { + return at::_ops::bitwise_left_shift_Tensor_Scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::bitwise_left_shift.Scalar_Tensor(Scalar self, Tensor other) -> Tensor + inline at::Tensor bitwise_left_shift(c10::DispatchKeySet dispatchKeySet, const at::Scalar & self, const at::Tensor & other) { + return at::_ops::bitwise_left_shift_Scalar_Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::__rshift__.Scalar(Tensor self, Scalar other) -> Tensor + inline at::Tensor __rshift__(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::__rshift___Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::__rshift__.Tensor(Tensor self, Tensor other) -> Tensor + inline at::Tensor __rshift__(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::__rshift___Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::__irshift__.Scalar(Tensor(a!) self, Scalar other) -> Tensor(a!) + inline at::Tensor & __irshift__(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Scalar & other) { + return at::_ops::__irshift___Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::__irshift__.Tensor(Tensor(a!) self, Tensor other) -> Tensor(a!) + inline at::Tensor & __irshift__(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & other) { + return at::_ops::__irshift___Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::bitwise_right_shift.Tensor(Tensor self, Tensor other) -> Tensor + inline at::Tensor bitwise_right_shift(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::bitwise_right_shift_Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::bitwise_right_shift_.Tensor(Tensor(a!) self, Tensor other) -> Tensor(a!) + inline at::Tensor & bitwise_right_shift_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & other) { + return at::_ops::bitwise_right_shift__Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::bitwise_right_shift.Tensor_out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & bitwise_right_shift_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::bitwise_right_shift_Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::bitwise_right_shift.Tensor_out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & bitwise_right_shift_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::bitwise_right_shift_Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::bitwise_right_shift.Tensor_Scalar(Tensor self, Scalar other) -> Tensor + inline at::Tensor bitwise_right_shift(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::bitwise_right_shift_Tensor_Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::bitwise_right_shift_.Tensor_Scalar(Tensor(a!) self, Scalar other) -> Tensor(a!) + inline at::Tensor & bitwise_right_shift_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Scalar & other) { + return at::_ops::bitwise_right_shift__Tensor_Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::bitwise_right_shift.Tensor_Scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & bitwise_right_shift_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::bitwise_right_shift_Tensor_Scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::bitwise_right_shift.Tensor_Scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & bitwise_right_shift_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other, at::Tensor & out) { + return at::_ops::bitwise_right_shift_Tensor_Scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::bitwise_right_shift.Scalar_Tensor(Scalar self, Tensor other) -> Tensor + inline at::Tensor bitwise_right_shift(c10::DispatchKeySet dispatchKeySet, const at::Scalar & self, const at::Tensor & other) { + return at::_ops::bitwise_right_shift_Scalar_Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::tril_(Tensor(a!) self, int diagonal=0) -> Tensor(a!) + inline at::Tensor & tril_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, int64_t diagonal=0) { + return at::_ops::tril_::redispatch(dispatchKeySet, self, diagonal); + } + + // aten::triu_(Tensor(a!) self, int diagonal=0) -> Tensor(a!) + inline at::Tensor & triu_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, int64_t diagonal=0) { + return at::_ops::triu_::redispatch(dispatchKeySet, self, diagonal); + } + + // aten::digamma_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & digamma_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::digamma_::redispatch(dispatchKeySet, self); + } + + // aten::lerp_.Scalar(Tensor(a!) self, Tensor end, Scalar weight) -> Tensor(a!) + inline at::Tensor & lerp_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & end, const at::Scalar & weight) { + return at::_ops::lerp__Scalar::redispatch(dispatchKeySet, self, end, weight); + } + + // aten::lerp_.Tensor(Tensor(a!) self, Tensor end, Tensor weight) -> Tensor(a!) + inline at::Tensor & lerp_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & end, const at::Tensor & weight) { + return at::_ops::lerp__Tensor::redispatch(dispatchKeySet, self, end, weight); + } + + // aten::addbmm_(Tensor(a!) self, Tensor batch1, Tensor batch2, *, Scalar beta=1, Scalar alpha=1) -> Tensor(a!) + inline at::Tensor & addbmm_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & batch1, const at::Tensor & batch2, const at::Scalar & beta=1, const at::Scalar & alpha=1) { + return at::_ops::addbmm_::redispatch(dispatchKeySet, self, batch1, batch2, beta, alpha); + } + + // aten::addbmm.out(Tensor self, Tensor batch1, Tensor batch2, *, Scalar beta=1, Scalar alpha=1, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & addbmm_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & batch1, const at::Tensor & batch2, const at::Scalar & beta=1, const at::Scalar & alpha=1) { + return at::_ops::addbmm_out::redispatch(dispatchKeySet, self, batch1, batch2, beta, alpha, out); + } + + // aten::addbmm.out(Tensor self, Tensor batch1, Tensor batch2, *, Scalar beta=1, Scalar alpha=1, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & addbmm_outf(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) { + return at::_ops::addbmm_out::redispatch(dispatchKeySet, self, batch1, batch2, beta, alpha, out); + } + + // aten::addbmm(Tensor self, Tensor batch1, Tensor batch2, *, Scalar beta=1, Scalar alpha=1) -> Tensor + inline at::Tensor addbmm(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & batch1, const at::Tensor & batch2, const at::Scalar & beta=1, const at::Scalar & alpha=1) { + return at::_ops::addbmm::redispatch(dispatchKeySet, self, batch1, batch2, beta, alpha); + } + + // aten::random_.from(Tensor(a!) self, int from, int? to, *, Generator? generator=None) -> Tensor(a!) + inline at::Tensor & random_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, int64_t from, c10::optional to, c10::optional generator=c10::nullopt) { + return at::_ops::random__from::redispatch(dispatchKeySet, self, from, to, generator); + } + + // aten::random_.to(Tensor(a!) self, int to, *, Generator? generator=None) -> Tensor(a!) + inline at::Tensor & random_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, int64_t to, c10::optional generator=c10::nullopt) { + return at::_ops::random__to::redispatch(dispatchKeySet, self, to, generator); + } + + // aten::random_(Tensor(a!) self, *, Generator? generator=None) -> Tensor(a!) + inline at::Tensor & random_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, c10::optional generator=c10::nullopt) { + return at::_ops::random_::redispatch(dispatchKeySet, self, generator); + } + + // aten::uniform_(Tensor(a!) self, float from=0, float to=1, *, Generator? generator=None) -> Tensor(a!) + inline at::Tensor & uniform_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, double from=0, double to=1, c10::optional generator=c10::nullopt) { + return at::_ops::uniform_::redispatch(dispatchKeySet, self, from, to, generator); + } + + // aten::cauchy_(Tensor(a!) self, float median=0, float sigma=1, *, Generator? generator=None) -> Tensor(a!) + inline at::Tensor & cauchy_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, double median=0, double sigma=1, c10::optional generator=c10::nullopt) { + return at::_ops::cauchy_::redispatch(dispatchKeySet, self, median, sigma, generator); + } + + // aten::log_normal_(Tensor(a!) self, float mean=1, float std=2, *, Generator? generator=None) -> Tensor(a!) + inline at::Tensor & log_normal_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, double mean=1, double std=2, c10::optional generator=c10::nullopt) { + return at::_ops::log_normal_::redispatch(dispatchKeySet, self, mean, std, generator); + } + + // aten::exponential_(Tensor(a!) self, float lambd=1, *, Generator? generator=None) -> Tensor(a!) + inline at::Tensor & exponential_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, double lambd=1, c10::optional generator=c10::nullopt) { + return at::_ops::exponential_::redispatch(dispatchKeySet, self, lambd, generator); + } + + // aten::geometric_(Tensor(a!) self, float p, *, Generator? generator=None) -> Tensor(a!) + inline at::Tensor & geometric_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, double p, c10::optional generator=c10::nullopt) { + return at::_ops::geometric_::redispatch(dispatchKeySet, self, p, generator); + } + + // aten::diag.out(Tensor self, int diagonal=0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & diag_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t diagonal=0) { + return at::_ops::diag_out::redispatch(dispatchKeySet, self, diagonal, out); + } + + // aten::diag.out(Tensor self, int diagonal=0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & diag_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t diagonal, at::Tensor & out) { + return at::_ops::diag_out::redispatch(dispatchKeySet, self, diagonal, out); + } + + // aten::diag(Tensor self, int diagonal=0) -> Tensor + inline at::Tensor diag(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t diagonal=0) { + return at::_ops::diag::redispatch(dispatchKeySet, self, diagonal); + } + + // aten::cross.out(Tensor self, Tensor other, int? dim=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & cross_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other, c10::optional dim=c10::nullopt) { + return at::_ops::cross_out::redispatch(dispatchKeySet, self, other, dim, out); + } + + // aten::cross.out(Tensor self, Tensor other, int? dim=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & cross_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, c10::optional dim, at::Tensor & out) { + return at::_ops::cross_out::redispatch(dispatchKeySet, self, other, dim, out); + } + + // aten::cross(Tensor self, Tensor other, int? dim=None) -> Tensor + inline at::Tensor cross(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, c10::optional dim=c10::nullopt) { + return at::_ops::cross::redispatch(dispatchKeySet, self, other, dim); + } + + // aten::triu.out(Tensor self, int diagonal=0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & triu_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t diagonal=0) { + return at::_ops::triu_out::redispatch(dispatchKeySet, self, diagonal, out); + } + + // aten::triu.out(Tensor self, int diagonal=0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & triu_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t diagonal, at::Tensor & out) { + return at::_ops::triu_out::redispatch(dispatchKeySet, self, diagonal, out); + } + + // aten::triu(Tensor self, int diagonal=0) -> Tensor + inline at::Tensor triu(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t diagonal=0) { + return at::_ops::triu::redispatch(dispatchKeySet, self, diagonal); + } + + // aten::tril.out(Tensor self, int diagonal=0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & tril_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t diagonal=0) { + return at::_ops::tril_out::redispatch(dispatchKeySet, self, diagonal, out); + } + + // aten::tril.out(Tensor self, int diagonal=0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & tril_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t diagonal, at::Tensor & out) { + return at::_ops::tril_out::redispatch(dispatchKeySet, self, diagonal, out); + } + + // aten::tril(Tensor self, int diagonal=0) -> Tensor + inline at::Tensor tril(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t diagonal=0) { + return at::_ops::tril::redispatch(dispatchKeySet, self, diagonal); + } + + // aten::tril_indices(int row, int col, int offset=0, *, ScalarType? dtype=long, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor tril_indices(c10::DispatchKeySet dispatchKeySet, int64_t row, int64_t col, int64_t offset=0, at::TensorOptions options=at::kLong) { + return at::_ops::tril_indices::redispatch(dispatchKeySet, row, col, offset, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::tril_indices(int row, int col, int offset=0, *, ScalarType? dtype=long, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor tril_indices(c10::DispatchKeySet dispatchKeySet, int64_t row, int64_t col, int64_t offset, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::tril_indices::redispatch(dispatchKeySet, row, col, offset, dtype, layout, device, pin_memory); + } + + // aten::triu_indices(int row, int col, int offset=0, *, ScalarType? dtype=long, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor triu_indices(c10::DispatchKeySet dispatchKeySet, int64_t row, int64_t col, int64_t offset=0, at::TensorOptions options=at::kLong) { + return at::_ops::triu_indices::redispatch(dispatchKeySet, row, col, offset, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::triu_indices(int row, int col, int offset=0, *, ScalarType? dtype=long, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor triu_indices(c10::DispatchKeySet dispatchKeySet, int64_t row, int64_t col, int64_t offset, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::triu_indices::redispatch(dispatchKeySet, row, col, offset, dtype, layout, device, pin_memory); + } + + // aten::trace(Tensor self) -> Tensor + inline at::Tensor trace(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::trace::redispatch(dispatchKeySet, self); + } + + // aten::trace_backward(Tensor grad, SymInt[] sizes) -> Tensor + inline at::Tensor trace_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad, at::IntArrayRef sizes) { + return at::_ops::trace_backward::redispatch(dispatchKeySet, grad, c10::fromIntArrayRefSlow(sizes)); + } + + // aten::trace_backward(Tensor grad, SymInt[] sizes) -> Tensor + inline at::Tensor trace_backward_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad, c10::SymIntArrayRef sizes) { + return at::_ops::trace_backward::redispatch(dispatchKeySet, grad, sizes); + } + + // aten::ne.Scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & ne_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::ne_Scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::ne.Scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & ne_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other, at::Tensor & out) { + return at::_ops::ne_Scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::ne.Scalar(Tensor self, Scalar other) -> Tensor + inline at::Tensor ne(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::ne_Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::ne.Tensor_out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & ne_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::ne_Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::ne.Tensor_out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & ne_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::ne_Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::ne.Tensor(Tensor self, Tensor other) -> Tensor + inline at::Tensor ne(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::ne_Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::ne_.Scalar(Tensor(a!) self, Scalar other) -> Tensor(a!) + inline at::Tensor & ne_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Scalar & other) { + return at::_ops::ne__Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::ne_.Tensor(Tensor(a!) self, Tensor other) -> Tensor(a!) + inline at::Tensor & ne_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & other) { + return at::_ops::ne__Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::not_equal.Scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & not_equal_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::not_equal_Scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::not_equal.Scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & not_equal_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other, at::Tensor & out) { + return at::_ops::not_equal_Scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::not_equal.Scalar(Tensor self, Scalar other) -> Tensor + inline at::Tensor not_equal(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::not_equal_Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::not_equal.Tensor_out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & not_equal_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::not_equal_Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::not_equal.Tensor_out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & not_equal_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::not_equal_Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::not_equal.Tensor(Tensor self, Tensor other) -> Tensor + inline at::Tensor not_equal(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::not_equal_Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::not_equal_.Scalar(Tensor(a!) self, Scalar other) -> Tensor(a!) + inline at::Tensor & not_equal_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Scalar & other) { + return at::_ops::not_equal__Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::not_equal_.Tensor(Tensor(a!) self, Tensor other) -> Tensor(a!) + inline at::Tensor & not_equal_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & other) { + return at::_ops::not_equal__Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::eq.Scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & eq_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::eq_Scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::eq.Scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & eq_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other, at::Tensor & out) { + return at::_ops::eq_Scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::eq.Scalar(Tensor self, Scalar other) -> Tensor + inline at::Tensor eq(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::eq_Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::eq.Tensor_out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & eq_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::eq_Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::eq.Tensor_out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & eq_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::eq_Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::eq.Tensor(Tensor self, Tensor other) -> Tensor + inline at::Tensor eq(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::eq_Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::ge.Scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & ge_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::ge_Scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::ge.Scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & ge_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other, at::Tensor & out) { + return at::_ops::ge_Scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::ge.Scalar(Tensor self, Scalar other) -> Tensor + inline at::Tensor ge(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::ge_Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::ge.Tensor_out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & ge_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::ge_Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::ge.Tensor_out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & ge_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::ge_Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::ge.Tensor(Tensor self, Tensor other) -> Tensor + inline at::Tensor ge(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::ge_Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::ge_.Scalar(Tensor(a!) self, Scalar other) -> Tensor(a!) + inline at::Tensor & ge_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Scalar & other) { + return at::_ops::ge__Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::ge_.Tensor(Tensor(a!) self, Tensor other) -> Tensor(a!) + inline at::Tensor & ge_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & other) { + return at::_ops::ge__Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::greater_equal.Scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & greater_equal_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::greater_equal_Scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::greater_equal.Scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & greater_equal_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other, at::Tensor & out) { + return at::_ops::greater_equal_Scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::greater_equal.Scalar(Tensor self, Scalar other) -> Tensor + inline at::Tensor greater_equal(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::greater_equal_Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::greater_equal.Tensor_out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & greater_equal_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::greater_equal_Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::greater_equal.Tensor_out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & greater_equal_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::greater_equal_Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::greater_equal.Tensor(Tensor self, Tensor other) -> Tensor + inline at::Tensor greater_equal(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::greater_equal_Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::greater_equal_.Scalar(Tensor(a!) self, Scalar other) -> Tensor(a!) + inline at::Tensor & greater_equal_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Scalar & other) { + return at::_ops::greater_equal__Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::greater_equal_.Tensor(Tensor(a!) self, Tensor other) -> Tensor(a!) + inline at::Tensor & greater_equal_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & other) { + return at::_ops::greater_equal__Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::le.Scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & le_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::le_Scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::le.Scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & le_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other, at::Tensor & out) { + return at::_ops::le_Scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::le.Scalar(Tensor self, Scalar other) -> Tensor + inline at::Tensor le(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::le_Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::le.Tensor_out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & le_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::le_Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::le.Tensor_out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & le_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::le_Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::le.Tensor(Tensor self, Tensor other) -> Tensor + inline at::Tensor le(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::le_Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::le_.Scalar(Tensor(a!) self, Scalar other) -> Tensor(a!) + inline at::Tensor & le_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Scalar & other) { + return at::_ops::le__Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::le_.Tensor(Tensor(a!) self, Tensor other) -> Tensor(a!) + inline at::Tensor & le_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & other) { + return at::_ops::le__Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::less_equal.Scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & less_equal_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::less_equal_Scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::less_equal.Scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & less_equal_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other, at::Tensor & out) { + return at::_ops::less_equal_Scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::less_equal.Scalar(Tensor self, Scalar other) -> Tensor + inline at::Tensor less_equal(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::less_equal_Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::less_equal.Tensor_out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & less_equal_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::less_equal_Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::less_equal.Tensor_out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & less_equal_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::less_equal_Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::less_equal.Tensor(Tensor self, Tensor other) -> Tensor + inline at::Tensor less_equal(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::less_equal_Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::less_equal_.Scalar(Tensor(a!) self, Scalar other) -> Tensor(a!) + inline at::Tensor & less_equal_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Scalar & other) { + return at::_ops::less_equal__Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::less_equal_.Tensor(Tensor(a!) self, Tensor other) -> Tensor(a!) + inline at::Tensor & less_equal_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & other) { + return at::_ops::less_equal__Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::gt.Scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & gt_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::gt_Scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::gt.Scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & gt_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other, at::Tensor & out) { + return at::_ops::gt_Scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::gt.Scalar(Tensor self, Scalar other) -> Tensor + inline at::Tensor gt(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::gt_Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::gt.Tensor_out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & gt_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::gt_Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::gt.Tensor_out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & gt_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::gt_Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::gt.Tensor(Tensor self, Tensor other) -> Tensor + inline at::Tensor gt(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::gt_Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::gt_.Scalar(Tensor(a!) self, Scalar other) -> Tensor(a!) + inline at::Tensor & gt_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Scalar & other) { + return at::_ops::gt__Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::gt_.Tensor(Tensor(a!) self, Tensor other) -> Tensor(a!) + inline at::Tensor & gt_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & other) { + return at::_ops::gt__Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::greater.Scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & greater_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::greater_Scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::greater.Scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & greater_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other, at::Tensor & out) { + return at::_ops::greater_Scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::greater.Scalar(Tensor self, Scalar other) -> Tensor + inline at::Tensor greater(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::greater_Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::greater.Tensor_out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & greater_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::greater_Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::greater.Tensor_out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & greater_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::greater_Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::greater.Tensor(Tensor self, Tensor other) -> Tensor + inline at::Tensor greater(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::greater_Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::greater_.Scalar(Tensor(a!) self, Scalar other) -> Tensor(a!) + inline at::Tensor & greater_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Scalar & other) { + return at::_ops::greater__Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::greater_.Tensor(Tensor(a!) self, Tensor other) -> Tensor(a!) + inline at::Tensor & greater_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & other) { + return at::_ops::greater__Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::lt.Scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & lt_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::lt_Scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::lt.Scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & lt_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other, at::Tensor & out) { + return at::_ops::lt_Scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::lt.Scalar(Tensor self, Scalar other) -> Tensor + inline at::Tensor lt(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::lt_Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::lt.Tensor_out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & lt_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::lt_Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::lt.Tensor_out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & lt_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::lt_Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::lt.Tensor(Tensor self, Tensor other) -> Tensor + inline at::Tensor lt(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::lt_Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::lt_.Scalar(Tensor(a!) self, Scalar other) -> Tensor(a!) + inline at::Tensor & lt_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Scalar & other) { + return at::_ops::lt__Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::lt_.Tensor(Tensor(a!) self, Tensor other) -> Tensor(a!) + inline at::Tensor & lt_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & other) { + return at::_ops::lt__Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::less.Scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & less_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::less_Scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::less.Scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & less_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other, at::Tensor & out) { + return at::_ops::less_Scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::less.Scalar(Tensor self, Scalar other) -> Tensor + inline at::Tensor less(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::less_Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::less.Tensor_out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & less_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::less_Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::less.Tensor_out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & less_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::less_Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::less.Tensor(Tensor self, Tensor other) -> Tensor + inline at::Tensor less(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::less_Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::less_.Scalar(Tensor(a!) self, Scalar other) -> Tensor(a!) + inline at::Tensor & less_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Scalar & other) { + return at::_ops::less__Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::less_.Tensor(Tensor(a!) self, Tensor other) -> Tensor(a!) + inline at::Tensor & less_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & other) { + return at::_ops::less__Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::take.out(Tensor self, Tensor index, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & take_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & index) { + return at::_ops::take_out::redispatch(dispatchKeySet, self, index, out); + } + + // aten::take.out(Tensor self, Tensor index, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & take_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & index, at::Tensor & out) { + return at::_ops::take_out::redispatch(dispatchKeySet, self, index, out); + } + + // aten::take(Tensor self, Tensor index) -> Tensor + inline at::Tensor take(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & index) { + return at::_ops::take::redispatch(dispatchKeySet, self, index); + } + + // aten::take_along_dim.out(Tensor self, Tensor indices, int? dim=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & take_along_dim_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & indices, c10::optional dim=c10::nullopt) { + return at::_ops::take_along_dim_out::redispatch(dispatchKeySet, self, indices, dim, out); + } + + // aten::take_along_dim.out(Tensor self, Tensor indices, int? dim=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & take_along_dim_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & indices, c10::optional dim, at::Tensor & out) { + return at::_ops::take_along_dim_out::redispatch(dispatchKeySet, self, indices, dim, out); + } + + // aten::take_along_dim(Tensor self, Tensor indices, int? dim=None) -> Tensor + inline at::Tensor take_along_dim(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & indices, c10::optional dim=c10::nullopt) { + return at::_ops::take_along_dim::redispatch(dispatchKeySet, self, indices, dim); + } + + // aten::index_select.out(Tensor self, int dim, Tensor index, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & index_select_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t dim, const at::Tensor & index) { + return at::_ops::index_select_out::redispatch(dispatchKeySet, self, dim, index, out); + } + + // aten::index_select.out(Tensor self, int dim, Tensor index, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & index_select_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, const at::Tensor & index, at::Tensor & out) { + return at::_ops::index_select_out::redispatch(dispatchKeySet, self, dim, index, out); + } + + // aten::index_select(Tensor self, int dim, Tensor index) -> Tensor + inline at::Tensor index_select(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, const at::Tensor & index) { + return at::_ops::index_select::redispatch(dispatchKeySet, self, dim, index); + } + + // aten::index_select.dimname_out(Tensor self, Dimname dim, Tensor index, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & index_select_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::Dimname dim, const at::Tensor & index) { + return at::_ops::index_select_dimname_out::redispatch(dispatchKeySet, self, dim, index, out); + } + + // aten::index_select.dimname_out(Tensor self, Dimname dim, Tensor index, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & index_select_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim, const at::Tensor & index, at::Tensor & out) { + return at::_ops::index_select_dimname_out::redispatch(dispatchKeySet, self, dim, index, out); + } + + // aten::index_select.dimname(Tensor self, Dimname dim, Tensor index) -> Tensor + inline at::Tensor index_select(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim, const at::Tensor & index) { + return at::_ops::index_select_dimname::redispatch(dispatchKeySet, self, dim, index); + } + + // aten::index_select_backward(Tensor grad, SymInt[] self_sizes, int dim, Tensor index) -> Tensor + inline at::Tensor index_select_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad, at::IntArrayRef self_sizes, int64_t dim, const at::Tensor & index) { + return at::_ops::index_select_backward::redispatch(dispatchKeySet, grad, c10::fromIntArrayRefSlow(self_sizes), dim, index); + } + + // aten::index_select_backward(Tensor grad, SymInt[] self_sizes, int dim, Tensor index) -> Tensor + inline at::Tensor index_select_backward_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad, c10::SymIntArrayRef self_sizes, int64_t dim, const at::Tensor & index) { + return at::_ops::index_select_backward::redispatch(dispatchKeySet, grad, self_sizes, dim, index); + } + + // aten::masked_select.out(Tensor self, Tensor mask, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & masked_select_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & mask) { + return at::_ops::masked_select_out::redispatch(dispatchKeySet, self, mask, out); + } + + // aten::masked_select.out(Tensor self, Tensor mask, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & masked_select_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & mask, at::Tensor & out) { + return at::_ops::masked_select_out::redispatch(dispatchKeySet, self, mask, out); + } + + // aten::masked_select(Tensor self, Tensor mask) -> Tensor + inline at::Tensor masked_select(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & mask) { + return at::_ops::masked_select::redispatch(dispatchKeySet, self, mask); + } + + // aten::masked_select_backward(Tensor grad, Tensor input, Tensor mask) -> Tensor + inline at::Tensor masked_select_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad, const at::Tensor & input, const at::Tensor & mask) { + return at::_ops::masked_select_backward::redispatch(dispatchKeySet, grad, input, mask); + } + + // aten::nonzero.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & nonzero_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::nonzero_out::redispatch(dispatchKeySet, self, out); + } + + // aten::nonzero.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & nonzero_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::nonzero_out::redispatch(dispatchKeySet, self, out); + } + + // aten::nonzero(Tensor self) -> Tensor + inline at::Tensor nonzero(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::nonzero::redispatch(dispatchKeySet, self); + } + + // aten::nonzero_static.out(Tensor self, *, int size, int fill_value=-1, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & nonzero_static_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t size, int64_t fill_value=-1) { + return at::_ops::nonzero_static_out::redispatch(dispatchKeySet, self, size, fill_value, out); + } + + // aten::nonzero_static.out(Tensor self, *, int size, int fill_value=-1, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & nonzero_static_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t size, int64_t fill_value, at::Tensor & out) { + return at::_ops::nonzero_static_out::redispatch(dispatchKeySet, self, size, fill_value, out); + } + + // aten::nonzero_static(Tensor self, *, int size, int fill_value=-1) -> Tensor + inline at::Tensor nonzero_static(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t size, int64_t fill_value=-1) { + return at::_ops::nonzero_static::redispatch(dispatchKeySet, self, size, fill_value); + } + + // aten::nonzero_numpy(Tensor self) -> Tensor[] + inline ::std::vector nonzero_numpy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::nonzero_numpy::redispatch(dispatchKeySet, self); + } + + // aten::argwhere(Tensor self) -> Tensor + inline at::Tensor argwhere(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::argwhere::redispatch(dispatchKeySet, self); + } + + // aten::gather.out(Tensor self, int dim, Tensor index, *, bool sparse_grad=False, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & gather_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t dim, const at::Tensor & index, bool sparse_grad=false) { + return at::_ops::gather_out::redispatch(dispatchKeySet, self, dim, index, sparse_grad, out); + } + + // aten::gather.out(Tensor self, int dim, Tensor index, *, bool sparse_grad=False, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & gather_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, const at::Tensor & index, bool sparse_grad, at::Tensor & out) { + return at::_ops::gather_out::redispatch(dispatchKeySet, self, dim, index, sparse_grad, out); + } + + // aten::gather(Tensor self, int dim, Tensor index, *, bool sparse_grad=False) -> Tensor + inline at::Tensor gather(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, const at::Tensor & index, bool sparse_grad=false) { + return at::_ops::gather::redispatch(dispatchKeySet, self, dim, index, sparse_grad); + } + + // aten::gather_backward(Tensor grad, Tensor self, int dim, Tensor index, bool sparse_grad) -> Tensor + inline at::Tensor gather_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad, const at::Tensor & self, int64_t dim, const at::Tensor & index, bool sparse_grad) { + return at::_ops::gather_backward::redispatch(dispatchKeySet, grad, self, dim, index, sparse_grad); + } + + // aten::gather.dimname_out(Tensor self, Dimname dim, Tensor index, *, bool sparse_grad=False, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & gather_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::Dimname dim, const at::Tensor & index, bool sparse_grad=false) { + return at::_ops::gather_dimname_out::redispatch(dispatchKeySet, self, dim, index, sparse_grad, out); + } + + // aten::gather.dimname_out(Tensor self, Dimname dim, Tensor index, *, bool sparse_grad=False, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & gather_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim, const at::Tensor & index, bool sparse_grad, at::Tensor & out) { + return at::_ops::gather_dimname_out::redispatch(dispatchKeySet, self, dim, index, sparse_grad, out); + } + + // aten::gather.dimname(Tensor self, Dimname dim, Tensor index, *, bool sparse_grad=False) -> Tensor + inline at::Tensor gather(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim, const at::Tensor & index, bool sparse_grad=false) { + return at::_ops::gather_dimname::redispatch(dispatchKeySet, self, dim, index, sparse_grad); + } + + // aten::_gather_sparse_backward(Tensor self, int dim, Tensor index, Tensor grad) -> Tensor + inline at::Tensor _gather_sparse_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Tensor & grad) { + return at::_ops::_gather_sparse_backward::redispatch(dispatchKeySet, self, dim, index, grad); + } + + // aten::addcmul.out(Tensor self, Tensor tensor1, Tensor tensor2, *, Scalar value=1, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & addcmul_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & tensor1, const at::Tensor & tensor2, const at::Scalar & value=1) { + return at::_ops::addcmul_out::redispatch(dispatchKeySet, self, tensor1, tensor2, value, out); + } + + // aten::addcmul.out(Tensor self, Tensor tensor1, Tensor tensor2, *, Scalar value=1, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & addcmul_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & tensor1, const at::Tensor & tensor2, const at::Scalar & value, at::Tensor & out) { + return at::_ops::addcmul_out::redispatch(dispatchKeySet, self, tensor1, tensor2, value, out); + } + + // aten::addcmul(Tensor self, Tensor tensor1, Tensor tensor2, *, Scalar value=1) -> Tensor + inline at::Tensor addcmul(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & tensor1, const at::Tensor & tensor2, const at::Scalar & value=1) { + return at::_ops::addcmul::redispatch(dispatchKeySet, self, tensor1, tensor2, value); + } + + // aten::addcmul_(Tensor(a!) self, Tensor tensor1, Tensor tensor2, *, Scalar value=1) -> Tensor(a!) + inline at::Tensor & addcmul_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & tensor1, const at::Tensor & tensor2, const at::Scalar & value=1) { + return at::_ops::addcmul_::redispatch(dispatchKeySet, self, tensor1, tensor2, value); + } + + // aten::addcdiv.out(Tensor self, Tensor tensor1, Tensor tensor2, *, Scalar value=1, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & addcdiv_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & tensor1, const at::Tensor & tensor2, const at::Scalar & value=1) { + return at::_ops::addcdiv_out::redispatch(dispatchKeySet, self, tensor1, tensor2, value, out); + } + + // aten::addcdiv.out(Tensor self, Tensor tensor1, Tensor tensor2, *, Scalar value=1, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & addcdiv_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & tensor1, const at::Tensor & tensor2, const at::Scalar & value, at::Tensor & out) { + return at::_ops::addcdiv_out::redispatch(dispatchKeySet, self, tensor1, tensor2, value, out); + } + + // aten::addcdiv(Tensor self, Tensor tensor1, Tensor tensor2, *, Scalar value=1) -> Tensor + inline at::Tensor addcdiv(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & tensor1, const at::Tensor & tensor2, const at::Scalar & value=1) { + return at::_ops::addcdiv::redispatch(dispatchKeySet, self, tensor1, tensor2, value); + } + + // aten::addcdiv_(Tensor(a!) self, Tensor tensor1, Tensor tensor2, *, Scalar value=1) -> Tensor(a!) + inline at::Tensor & addcdiv_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & tensor1, const at::Tensor & tensor2, const at::Scalar & value=1) { + return at::_ops::addcdiv_::redispatch(dispatchKeySet, self, tensor1, tensor2, value); + } + + // aten::cross_entropy_loss(Tensor self, Tensor target, Tensor? weight=None, int reduction=Mean, SymInt ignore_index=-100, float label_smoothing=0.0) -> Tensor + inline at::Tensor cross_entropy_loss(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & target, const c10::optional & weight={}, int64_t reduction=at::Reduction::Mean, int64_t ignore_index=-100, double label_smoothing=0.0) { + return at::_ops::cross_entropy_loss::redispatch(dispatchKeySet, self, target, weight, reduction, ignore_index, label_smoothing); + } + + // aten::cross_entropy_loss(Tensor self, Tensor target, Tensor? weight=None, int reduction=Mean, SymInt ignore_index=-100, float label_smoothing=0.0) -> Tensor + inline at::Tensor cross_entropy_loss_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & target, const c10::optional & weight={}, int64_t reduction=at::Reduction::Mean, c10::SymInt ignore_index=-100, double label_smoothing=0.0) { + return at::_ops::cross_entropy_loss::redispatch(dispatchKeySet, self, target, weight, reduction, ignore_index, label_smoothing); + } + + // aten::triangular_solve.X(Tensor self, Tensor A, bool upper=True, bool transpose=False, bool unitriangular=False, *, Tensor(a!) X, Tensor(b!) M) -> (Tensor(a!) solution, Tensor(b!) cloned_coefficient) + inline ::std::tuple triangular_solve_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & X, at::Tensor & M, const at::Tensor & self, const at::Tensor & A, bool upper=true, bool transpose=false, bool unitriangular=false) { + return at::_ops::triangular_solve_X::redispatch(dispatchKeySet, self, A, upper, transpose, unitriangular, X, M); + } + + // aten::triangular_solve.X(Tensor self, Tensor A, bool upper=True, bool transpose=False, bool unitriangular=False, *, Tensor(a!) X, Tensor(b!) M) -> (Tensor(a!) solution, Tensor(b!) cloned_coefficient) + inline ::std::tuple triangular_solve_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & A, bool upper, bool transpose, bool unitriangular, at::Tensor & X, at::Tensor & M) { + return at::_ops::triangular_solve_X::redispatch(dispatchKeySet, self, A, upper, transpose, unitriangular, X, M); + } + + // aten::triangular_solve(Tensor self, Tensor A, bool upper=True, bool transpose=False, bool unitriangular=False) -> (Tensor solution, Tensor cloned_coefficient) + inline ::std::tuple triangular_solve(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & A, bool upper=true, bool transpose=false, bool unitriangular=false) { + return at::_ops::triangular_solve::redispatch(dispatchKeySet, self, A, upper, transpose, unitriangular); + } + + // aten::_linalg_check_errors(Tensor info, str api_name, *, bool is_matrix) -> () + inline void _linalg_check_errors(c10::DispatchKeySet dispatchKeySet, const at::Tensor & info, c10::string_view api_name, bool is_matrix) { + return at::_ops::_linalg_check_errors::redispatch(dispatchKeySet, info, api_name, is_matrix); + } + + // aten::linalg_solve_triangular.out(Tensor self, Tensor B, *, bool upper, bool left=True, bool unitriangular=False, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_solve_triangular_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & B, bool upper, bool left=true, bool unitriangular=false) { + return at::_ops::linalg_solve_triangular_out::redispatch(dispatchKeySet, self, B, upper, left, unitriangular, out); + } + + // aten::linalg_solve_triangular.out(Tensor self, Tensor B, *, bool upper, bool left=True, bool unitriangular=False, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_solve_triangular_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & B, bool upper, bool left, bool unitriangular, at::Tensor & out) { + return at::_ops::linalg_solve_triangular_out::redispatch(dispatchKeySet, self, B, upper, left, unitriangular, out); + } + + // aten::linalg_solve_triangular(Tensor self, Tensor B, *, bool upper, bool left=True, bool unitriangular=False) -> Tensor + inline at::Tensor linalg_solve_triangular(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & B, bool upper, bool left=true, bool unitriangular=false) { + return at::_ops::linalg_solve_triangular::redispatch(dispatchKeySet, self, B, upper, left, unitriangular); + } + + // aten::linalg_vander(Tensor x, *, SymInt? N=None) -> Tensor + inline at::Tensor linalg_vander(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, c10::optional N=c10::nullopt) { + return at::_ops::linalg_vander::redispatch(dispatchKeySet, x, N.has_value() ? c10::make_optional(c10::SymInt(*N)) : c10::nullopt); + } + + // aten::linalg_vander(Tensor x, *, SymInt? N=None) -> Tensor + inline at::Tensor linalg_vander_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, c10::optional N=c10::nullopt) { + return at::_ops::linalg_vander::redispatch(dispatchKeySet, x, N); + } + + // aten::svd.U(Tensor self, bool some=True, bool compute_uv=True, *, Tensor(a!) U, Tensor(b!) S, Tensor(c!) V) -> (Tensor(a!) U, Tensor(b!) S, Tensor(c!) V) + inline ::std::tuple svd_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & U, at::Tensor & S, at::Tensor & V, const at::Tensor & self, bool some=true, bool compute_uv=true) { + return at::_ops::svd_U::redispatch(dispatchKeySet, self, some, compute_uv, U, S, V); + } + + // aten::svd.U(Tensor self, bool some=True, bool compute_uv=True, *, Tensor(a!) U, Tensor(b!) S, Tensor(c!) V) -> (Tensor(a!) U, Tensor(b!) S, Tensor(c!) V) + inline ::std::tuple svd_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, bool some, bool compute_uv, at::Tensor & U, at::Tensor & S, at::Tensor & V) { + return at::_ops::svd_U::redispatch(dispatchKeySet, self, some, compute_uv, U, S, V); + } + + // aten::svd(Tensor self, bool some=True, bool compute_uv=True) -> (Tensor U, Tensor S, Tensor V) + inline ::std::tuple svd(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, bool some=true, bool compute_uv=true) { + return at::_ops::svd::redispatch(dispatchKeySet, self, some, compute_uv); + } + + // aten::swapaxes(Tensor(a) self, int axis0, int axis1) -> Tensor(a) + inline at::Tensor swapaxes(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t axis0, int64_t axis1) { + return at::_ops::swapaxes::redispatch(dispatchKeySet, self, axis0, axis1); + } + + // aten::swapaxes_(Tensor(a!) self, int axis0, int axis1) -> Tensor(a!) + inline at::Tensor & swapaxes_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, int64_t axis0, int64_t axis1) { + return at::_ops::swapaxes_::redispatch(dispatchKeySet, self, axis0, axis1); + } + + // aten::swapdims(Tensor(a) self, int dim0, int dim1) -> Tensor(a) + inline at::Tensor swapdims(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim0, int64_t dim1) { + return at::_ops::swapdims::redispatch(dispatchKeySet, self, dim0, dim1); + } + + // aten::swapdims_(Tensor(a!) self, int dim0, int dim1) -> Tensor(a!) + inline at::Tensor & swapdims_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, int64_t dim0, int64_t dim1) { + return at::_ops::swapdims_::redispatch(dispatchKeySet, self, dim0, dim1); + } + + // aten::cholesky.out(Tensor self, bool upper=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & cholesky_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, bool upper=false) { + return at::_ops::cholesky_out::redispatch(dispatchKeySet, self, upper, out); + } + + // aten::cholesky.out(Tensor self, bool upper=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & cholesky_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, bool upper, at::Tensor & out) { + return at::_ops::cholesky_out::redispatch(dispatchKeySet, self, upper, out); + } + + // aten::cholesky(Tensor self, bool upper=False) -> Tensor + inline at::Tensor cholesky(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, bool upper=false) { + return at::_ops::cholesky::redispatch(dispatchKeySet, self, upper); + } + + // aten::cholesky_solve.out(Tensor self, Tensor input2, bool upper=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & cholesky_solve_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & input2, bool upper=false) { + return at::_ops::cholesky_solve_out::redispatch(dispatchKeySet, self, input2, upper, out); + } + + // aten::cholesky_solve.out(Tensor self, Tensor input2, bool upper=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & cholesky_solve_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & input2, bool upper, at::Tensor & out) { + return at::_ops::cholesky_solve_out::redispatch(dispatchKeySet, self, input2, upper, out); + } + + // aten::cholesky_solve(Tensor self, Tensor input2, bool upper=False) -> Tensor + inline at::Tensor cholesky_solve(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & input2, bool upper=false) { + return at::_ops::cholesky_solve::redispatch(dispatchKeySet, self, input2, upper); + } + + // aten::_cholesky_solve_helper(Tensor self, Tensor A, bool upper) -> Tensor + inline at::Tensor _cholesky_solve_helper(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & A, bool upper) { + return at::_ops::_cholesky_solve_helper::redispatch(dispatchKeySet, self, A, upper); + } + + // aten::cholesky_inverse(Tensor self, bool upper=False) -> Tensor + inline at::Tensor cholesky_inverse(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, bool upper=false) { + return at::_ops::cholesky_inverse::redispatch(dispatchKeySet, self, upper); + } + + // aten::cholesky_inverse.out(Tensor self, bool upper=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & cholesky_inverse_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, bool upper=false) { + return at::_ops::cholesky_inverse_out::redispatch(dispatchKeySet, self, upper, out); + } + + // aten::cholesky_inverse.out(Tensor self, bool upper=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & cholesky_inverse_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, bool upper, at::Tensor & out) { + return at::_ops::cholesky_inverse_out::redispatch(dispatchKeySet, self, upper, out); + } + + // aten::qr.Q(Tensor self, bool some=True, *, Tensor(a!) Q, Tensor(b!) R) -> (Tensor(a!) Q, Tensor(b!) R) + inline ::std::tuple qr_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & Q, at::Tensor & R, const at::Tensor & self, bool some=true) { + return at::_ops::qr_Q::redispatch(dispatchKeySet, self, some, Q, R); + } + + // aten::qr.Q(Tensor self, bool some=True, *, Tensor(a!) Q, Tensor(b!) R) -> (Tensor(a!) Q, Tensor(b!) R) + inline ::std::tuple qr_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, bool some, at::Tensor & Q, at::Tensor & R) { + return at::_ops::qr_Q::redispatch(dispatchKeySet, self, some, Q, R); + } + + // aten::qr(Tensor self, bool some=True) -> (Tensor Q, Tensor R) + inline ::std::tuple qr(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, bool some=true) { + return at::_ops::qr::redispatch(dispatchKeySet, self, some); + } + + // aten::geqrf.a(Tensor self, *, Tensor(a!) a, Tensor(b!) tau) -> (Tensor(a!) a, Tensor(b!) tau) + inline ::std::tuple geqrf_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & a, at::Tensor & tau, const at::Tensor & self) { + return at::_ops::geqrf_a::redispatch(dispatchKeySet, self, a, tau); + } + + // aten::geqrf.a(Tensor self, *, Tensor(a!) a, Tensor(b!) tau) -> (Tensor(a!) a, Tensor(b!) tau) + inline ::std::tuple geqrf_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & a, at::Tensor & tau) { + return at::_ops::geqrf_a::redispatch(dispatchKeySet, self, a, tau); + } + + // aten::geqrf(Tensor self) -> (Tensor a, Tensor tau) + inline ::std::tuple geqrf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::geqrf::redispatch(dispatchKeySet, self); + } + + // aten::orgqr(Tensor self, Tensor input2) -> Tensor + inline at::Tensor orgqr(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & input2) { + return at::_ops::orgqr::redispatch(dispatchKeySet, self, input2); + } + + // aten::orgqr.out(Tensor self, Tensor input2, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & orgqr_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & input2) { + return at::_ops::orgqr_out::redispatch(dispatchKeySet, self, input2, out); + } + + // aten::orgqr.out(Tensor self, Tensor input2, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & orgqr_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & input2, at::Tensor & out) { + return at::_ops::orgqr_out::redispatch(dispatchKeySet, self, input2, out); + } + + // aten::ormqr.out(Tensor self, Tensor input2, Tensor input3, bool left=True, bool transpose=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & ormqr_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & input2, const at::Tensor & input3, bool left=true, bool transpose=false) { + return at::_ops::ormqr_out::redispatch(dispatchKeySet, self, input2, input3, left, transpose, out); + } + + // aten::ormqr.out(Tensor self, Tensor input2, Tensor input3, bool left=True, bool transpose=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & ormqr_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & input2, const at::Tensor & input3, bool left, bool transpose, at::Tensor & out) { + return at::_ops::ormqr_out::redispatch(dispatchKeySet, self, input2, input3, left, transpose, out); + } + + // aten::ormqr(Tensor self, Tensor input2, Tensor input3, bool left=True, bool transpose=False) -> Tensor + inline at::Tensor ormqr(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & input2, const at::Tensor & input3, bool left=true, bool transpose=false) { + return at::_ops::ormqr::redispatch(dispatchKeySet, self, input2, input3, left, transpose); + } + + // aten::_lu_with_info(Tensor self, bool pivot=True, bool check_errors=True) -> (Tensor LU, Tensor pivots, Tensor info) + inline ::std::tuple _lu_with_info(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, bool pivot=true, bool check_errors=true) { + return at::_ops::_lu_with_info::redispatch(dispatchKeySet, self, pivot, check_errors); + } + + // aten::lu_solve.out(Tensor self, Tensor LU_data, Tensor LU_pivots, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & lu_solve_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & LU_data, const at::Tensor & LU_pivots) { + return at::_ops::lu_solve_out::redispatch(dispatchKeySet, self, LU_data, LU_pivots, out); + } + + // aten::lu_solve.out(Tensor self, Tensor LU_data, Tensor LU_pivots, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & lu_solve_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & LU_data, const at::Tensor & LU_pivots, at::Tensor & out) { + return at::_ops::lu_solve_out::redispatch(dispatchKeySet, self, LU_data, LU_pivots, out); + } + + // aten::lu_solve(Tensor self, Tensor LU_data, Tensor LU_pivots) -> Tensor + inline at::Tensor lu_solve(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & LU_data, const at::Tensor & LU_pivots) { + return at::_ops::lu_solve::redispatch(dispatchKeySet, self, LU_data, LU_pivots); + } + + // aten::lu_unpack(Tensor LU_data, Tensor LU_pivots, bool unpack_data=True, bool unpack_pivots=True) -> (Tensor P, Tensor L, Tensor U) + inline ::std::tuple lu_unpack(c10::DispatchKeySet dispatchKeySet, const at::Tensor & LU_data, const at::Tensor & LU_pivots, bool unpack_data=true, bool unpack_pivots=true) { + return at::_ops::lu_unpack::redispatch(dispatchKeySet, LU_data, LU_pivots, unpack_data, unpack_pivots); + } + + // aten::lu_unpack.out(Tensor LU_data, Tensor LU_pivots, bool unpack_data=True, bool unpack_pivots=True, *, Tensor(a!) P, Tensor(b!) L, Tensor(c!) U) -> (Tensor(a!) P, Tensor(b!) L, Tensor(c!) U) + inline ::std::tuple lu_unpack_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & P, at::Tensor & L, at::Tensor & U, const at::Tensor & LU_data, const at::Tensor & LU_pivots, bool unpack_data=true, bool unpack_pivots=true) { + return at::_ops::lu_unpack_out::redispatch(dispatchKeySet, LU_data, LU_pivots, unpack_data, unpack_pivots, P, L, U); + } + + // aten::lu_unpack.out(Tensor LU_data, Tensor LU_pivots, bool unpack_data=True, bool unpack_pivots=True, *, Tensor(a!) P, Tensor(b!) L, Tensor(c!) U) -> (Tensor(a!) P, Tensor(b!) L, Tensor(c!) U) + inline ::std::tuple lu_unpack_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & LU_data, const at::Tensor & LU_pivots, bool unpack_data, bool unpack_pivots, at::Tensor & P, at::Tensor & L, at::Tensor & U) { + return at::_ops::lu_unpack_out::redispatch(dispatchKeySet, LU_data, LU_pivots, unpack_data, unpack_pivots, P, L, U); + } + + // aten::multinomial.out(Tensor self, int num_samples, bool replacement=False, *, Generator? generator=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & multinomial_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t num_samples, bool replacement=false, c10::optional generator=c10::nullopt) { + return at::_ops::multinomial_out::redispatch(dispatchKeySet, self, num_samples, replacement, generator, out); + } + + // aten::multinomial.out(Tensor self, int num_samples, bool replacement=False, *, Generator? generator=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & multinomial_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t num_samples, bool replacement, c10::optional generator, at::Tensor & out) { + return at::_ops::multinomial_out::redispatch(dispatchKeySet, self, num_samples, replacement, generator, out); + } + + // aten::multinomial(Tensor self, int num_samples, bool replacement=False, *, Generator? generator=None) -> Tensor + inline at::Tensor multinomial(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t num_samples, bool replacement=false, c10::optional generator=c10::nullopt) { + return at::_ops::multinomial::redispatch(dispatchKeySet, self, num_samples, replacement, generator); + } + + // aten::lgamma.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & lgamma_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::lgamma_out::redispatch(dispatchKeySet, self, out); + } + + // aten::lgamma.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & lgamma_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::lgamma_out::redispatch(dispatchKeySet, self, out); + } + + // aten::lgamma_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & lgamma_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::lgamma_::redispatch(dispatchKeySet, self); + } + + // aten::lgamma(Tensor self) -> Tensor + inline at::Tensor lgamma(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::lgamma::redispatch(dispatchKeySet, self); + } + + // aten::digamma.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & digamma_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::digamma_out::redispatch(dispatchKeySet, self, out); + } + + // aten::digamma.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & digamma_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::digamma_out::redispatch(dispatchKeySet, self, out); + } + + // aten::digamma(Tensor self) -> Tensor + inline at::Tensor digamma(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::digamma::redispatch(dispatchKeySet, self); + } + + // aten::polygamma.out(int n, Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & polygamma_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, int64_t n, const at::Tensor & self) { + return at::_ops::polygamma_out::redispatch(dispatchKeySet, n, self, out); + } + + // aten::polygamma.out(int n, Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & polygamma_outf(c10::DispatchKeySet dispatchKeySet, int64_t n, const at::Tensor & self, at::Tensor & out) { + return at::_ops::polygamma_out::redispatch(dispatchKeySet, n, self, out); + } + + // aten::polygamma(int n, Tensor self) -> Tensor + inline at::Tensor polygamma(c10::DispatchKeySet dispatchKeySet, int64_t n, const at::Tensor & self) { + return at::_ops::polygamma::redispatch(dispatchKeySet, n, self); + } + + // aten::polygamma_(Tensor(a!) self, int n) -> Tensor(a!) + inline at::Tensor & polygamma_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, int64_t n) { + return at::_ops::polygamma_::redispatch(dispatchKeySet, self, n); + } + + // aten::erfinv(Tensor self) -> Tensor + inline at::Tensor erfinv(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::erfinv::redispatch(dispatchKeySet, self); + } + + // aten::erfinv_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & erfinv_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::erfinv_::redispatch(dispatchKeySet, self); + } + + // aten::erfinv.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & erfinv_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::erfinv_out::redispatch(dispatchKeySet, self, out); + } + + // aten::erfinv.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & erfinv_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::erfinv_out::redispatch(dispatchKeySet, self, out); + } + + // aten::i0(Tensor self) -> Tensor + inline at::Tensor i0(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::i0::redispatch(dispatchKeySet, self); + } + + // aten::i0_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & i0_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::i0_::redispatch(dispatchKeySet, self); + } + + // aten::i0.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & i0_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::i0_out::redispatch(dispatchKeySet, self, out); + } + + // aten::i0.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & i0_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::i0_out::redispatch(dispatchKeySet, self, out); + } + + // aten::sign(Tensor self) -> Tensor + inline at::Tensor sign(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::sign::redispatch(dispatchKeySet, self); + } + + // aten::sign_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & sign_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::sign_::redispatch(dispatchKeySet, self); + } + + // aten::sign.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & sign_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::sign_out::redispatch(dispatchKeySet, self, out); + } + + // aten::sign.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & sign_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::sign_out::redispatch(dispatchKeySet, self, out); + } + + // aten::signbit(Tensor self) -> Tensor + inline at::Tensor signbit(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::signbit::redispatch(dispatchKeySet, self); + } + + // aten::signbit.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & signbit_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::signbit_out::redispatch(dispatchKeySet, self, out); + } + + // aten::signbit.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & signbit_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::signbit_out::redispatch(dispatchKeySet, self, out); + } + + // aten::dist(Tensor self, Tensor other, Scalar p=2) -> Tensor + inline at::Tensor dist(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, const at::Scalar & p=2) { + return at::_ops::dist::redispatch(dispatchKeySet, self, other, p); + } + + // aten::atan2.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & atan2_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::atan2_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::atan2.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & atan2_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::atan2_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::atan2_(Tensor(a!) self, Tensor other) -> Tensor(a!) + inline at::Tensor & atan2_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & other) { + return at::_ops::atan2_::redispatch(dispatchKeySet, self, other); + } + + // aten::atan2(Tensor self, Tensor other) -> Tensor + inline at::Tensor atan2(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::atan2::redispatch(dispatchKeySet, self, other); + } + + // aten::arctan2(Tensor self, Tensor other) -> Tensor + inline at::Tensor arctan2(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::arctan2::redispatch(dispatchKeySet, self, other); + } + + // aten::arctan2.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & arctan2_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::arctan2_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::arctan2.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & arctan2_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::arctan2_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::arctan2_(Tensor(a!) self, Tensor other) -> Tensor(a!) + inline at::Tensor & arctan2_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & other) { + return at::_ops::arctan2_::redispatch(dispatchKeySet, self, other); + } + + // aten::lerp.Scalar_out(Tensor self, Tensor end, Scalar weight, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & lerp_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & end, const at::Scalar & weight) { + return at::_ops::lerp_Scalar_out::redispatch(dispatchKeySet, self, end, weight, out); + } + + // aten::lerp.Scalar_out(Tensor self, Tensor end, Scalar weight, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & lerp_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & end, const at::Scalar & weight, at::Tensor & out) { + return at::_ops::lerp_Scalar_out::redispatch(dispatchKeySet, self, end, weight, out); + } + + // aten::lerp.Tensor_out(Tensor self, Tensor end, Tensor weight, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & lerp_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & end, const at::Tensor & weight) { + return at::_ops::lerp_Tensor_out::redispatch(dispatchKeySet, self, end, weight, out); + } + + // aten::lerp.Tensor_out(Tensor self, Tensor end, Tensor weight, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & lerp_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & end, const at::Tensor & weight, at::Tensor & out) { + return at::_ops::lerp_Tensor_out::redispatch(dispatchKeySet, self, end, weight, out); + } + + // aten::lerp.Scalar(Tensor self, Tensor end, Scalar weight) -> Tensor + inline at::Tensor lerp(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & end, const at::Scalar & weight) { + return at::_ops::lerp_Scalar::redispatch(dispatchKeySet, self, end, weight); + } + + // aten::lerp.Tensor(Tensor self, Tensor end, Tensor weight) -> Tensor + inline at::Tensor lerp(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & end, const at::Tensor & weight) { + return at::_ops::lerp_Tensor::redispatch(dispatchKeySet, self, end, weight); + } + + // aten::histc.out(Tensor self, int bins=100, Scalar min=0, Scalar max=0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & histc_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t bins=100, const at::Scalar & min=0, const at::Scalar & max=0) { + return at::_ops::histc_out::redispatch(dispatchKeySet, self, bins, min, max, out); + } + + // aten::histc.out(Tensor self, int bins=100, Scalar min=0, Scalar max=0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & histc_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t bins, const at::Scalar & min, const at::Scalar & max, at::Tensor & out) { + return at::_ops::histc_out::redispatch(dispatchKeySet, self, bins, min, max, out); + } + + // aten::histc(Tensor self, int bins=100, Scalar min=0, Scalar max=0) -> Tensor + inline at::Tensor histc(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t bins=100, const at::Scalar & min=0, const at::Scalar & max=0) { + return at::_ops::histc::redispatch(dispatchKeySet, self, bins, min, max); + } + + // aten::histogram.bins_tensor_out(Tensor self, Tensor bins, *, Tensor? weight=None, bool density=False, Tensor(a!) hist, Tensor(b!) bin_edges) -> (Tensor(a!) hist, Tensor(b!) bin_edges) + inline ::std::tuple histogram_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & hist, at::Tensor & bin_edges, const at::Tensor & self, const at::Tensor & bins, const c10::optional & weight={}, bool density=false) { + return at::_ops::histogram_bins_tensor_out::redispatch(dispatchKeySet, self, bins, weight, density, hist, bin_edges); + } + + // aten::histogram.bins_tensor_out(Tensor self, Tensor bins, *, Tensor? weight=None, bool density=False, Tensor(a!) hist, Tensor(b!) bin_edges) -> (Tensor(a!) hist, Tensor(b!) bin_edges) + inline ::std::tuple histogram_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & bins, const c10::optional & weight, bool density, at::Tensor & hist, at::Tensor & bin_edges) { + return at::_ops::histogram_bins_tensor_out::redispatch(dispatchKeySet, self, bins, weight, density, hist, bin_edges); + } + + // aten::histogram.bins_tensor(Tensor self, Tensor bins, *, Tensor? weight=None, bool density=False) -> (Tensor hist, Tensor bin_edges) + inline ::std::tuple histogram(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & bins, const c10::optional & weight={}, bool density=false) { + return at::_ops::histogram_bins_tensor::redispatch(dispatchKeySet, self, bins, weight, density); + } + + // aten::histogram.bin_ct_out(Tensor self, int bins=100, *, float[]? range=None, Tensor? weight=None, bool density=False, Tensor(a!) hist, Tensor(b!) bin_edges) -> (Tensor(a!) hist, Tensor(b!) bin_edges) + inline ::std::tuple histogram_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & hist, at::Tensor & bin_edges, const at::Tensor & self, int64_t bins=100, c10::optional> range=c10::nullopt, const c10::optional & weight={}, bool density=false) { + return at::_ops::histogram_bin_ct_out::redispatch(dispatchKeySet, self, bins, range, weight, density, hist, bin_edges); + } + + // aten::histogram.bin_ct_out(Tensor self, int bins=100, *, float[]? range=None, Tensor? weight=None, bool density=False, Tensor(a!) hist, Tensor(b!) bin_edges) -> (Tensor(a!) hist, Tensor(b!) bin_edges) + inline ::std::tuple histogram_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t bins, c10::optional> range, const c10::optional & weight, bool density, at::Tensor & hist, at::Tensor & bin_edges) { + return at::_ops::histogram_bin_ct_out::redispatch(dispatchKeySet, self, bins, range, weight, density, hist, bin_edges); + } + + // aten::histogram.bin_ct(Tensor self, int bins=100, *, float[]? range=None, Tensor? weight=None, bool density=False) -> (Tensor hist, Tensor bin_edges) + inline ::std::tuple histogram(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t bins=100, c10::optional> range=c10::nullopt, const c10::optional & weight={}, bool density=false) { + return at::_ops::histogram_bin_ct::redispatch(dispatchKeySet, self, bins, range, weight, density); + } + + // aten::_histogramdd_bin_edges(Tensor self, int[] bins, *, float[]? range=None, Tensor? weight=None, bool density=False) -> Tensor[] + inline ::std::vector _histogramdd_bin_edges(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef bins, c10::optional> range=c10::nullopt, const c10::optional & weight={}, bool density=false) { + return at::_ops::_histogramdd_bin_edges::redispatch(dispatchKeySet, self, bins, range, weight, density); + } + + // aten::_histogramdd_from_bin_cts(Tensor self, int[] bins, *, float[]? range=None, Tensor? weight=None, bool density=False) -> Tensor + inline at::Tensor _histogramdd_from_bin_cts(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef bins, c10::optional> range=c10::nullopt, const c10::optional & weight={}, bool density=false) { + return at::_ops::_histogramdd_from_bin_cts::redispatch(dispatchKeySet, self, bins, range, weight, density); + } + + // aten::_histogramdd_from_bin_tensors(Tensor self, Tensor[] bins, *, Tensor? weight=None, bool density=False) -> Tensor + inline at::Tensor _histogramdd_from_bin_tensors(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::TensorList bins, const c10::optional & weight={}, bool density=false) { + return at::_ops::_histogramdd_from_bin_tensors::redispatch(dispatchKeySet, self, bins, weight, density); + } + + // aten::histogramdd(Tensor self, int[] bins, float[]? range=None, Tensor? weight=None, bool density=False) -> (Tensor hist, Tensor[] bin_edges) + inline ::std::tuple> histogramdd(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef bins, c10::optional> range=c10::nullopt, const c10::optional & weight={}, bool density=false) { + return at::_ops::histogramdd::redispatch(dispatchKeySet, self, bins, range, weight, density); + } + + // aten::histogramdd.int_bins(Tensor self, int bins, float[]? range=None, Tensor? weight=None, bool density=False) -> (Tensor hist, Tensor[] bin_edges) + inline ::std::tuple> histogramdd(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t bins, c10::optional> range=c10::nullopt, const c10::optional & weight={}, bool density=false) { + return at::_ops::histogramdd_int_bins::redispatch(dispatchKeySet, self, bins, range, weight, density); + } + + // aten::histogramdd.TensorList_bins(Tensor self, Tensor[] bins, float[]? range=None, Tensor? weight=None, bool density=False) -> (Tensor hist, Tensor[] bin_edges) + inline ::std::tuple> histogramdd(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::TensorList bins, c10::optional> range=c10::nullopt, const c10::optional & weight={}, bool density=false) { + return at::_ops::histogramdd_TensorList_bins::redispatch(dispatchKeySet, self, bins, range, weight, density); + } + + // aten::fmod.Scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fmod_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::fmod_Scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::fmod.Scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fmod_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other, at::Tensor & out) { + return at::_ops::fmod_Scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::fmod.Scalar(Tensor self, Scalar other) -> Tensor + inline at::Tensor fmod(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::fmod_Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::fmod_.Scalar(Tensor(a!) self, Scalar other) -> Tensor(a!) + inline at::Tensor & fmod_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Scalar & other) { + return at::_ops::fmod__Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::fmod.Tensor_out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fmod_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::fmod_Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::fmod.Tensor_out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fmod_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::fmod_Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::fmod.Tensor(Tensor self, Tensor other) -> Tensor + inline at::Tensor fmod(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::fmod_Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::fmod_.Tensor(Tensor(a!) self, Tensor other) -> Tensor(a!) + inline at::Tensor & fmod_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & other) { + return at::_ops::fmod__Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::hypot.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & hypot_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::hypot_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::hypot.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & hypot_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::hypot_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::hypot(Tensor self, Tensor other) -> Tensor + inline at::Tensor hypot(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::hypot::redispatch(dispatchKeySet, self, other); + } + + // aten::hypot_(Tensor(a!) self, Tensor other) -> Tensor(a!) + inline at::Tensor & hypot_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & other) { + return at::_ops::hypot_::redispatch(dispatchKeySet, self, other); + } + + // aten::igamma.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & igamma_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::igamma_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::igamma.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & igamma_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::igamma_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::igamma(Tensor self, Tensor other) -> Tensor + inline at::Tensor igamma(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::igamma::redispatch(dispatchKeySet, self, other); + } + + // aten::igamma_(Tensor(a!) self, Tensor other) -> Tensor(a!) + inline at::Tensor & igamma_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & other) { + return at::_ops::igamma_::redispatch(dispatchKeySet, self, other); + } + + // aten::igammac.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & igammac_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::igammac_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::igammac.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & igammac_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::igammac_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::igammac(Tensor self, Tensor other) -> Tensor + inline at::Tensor igammac(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::igammac::redispatch(dispatchKeySet, self, other); + } + + // aten::igammac_(Tensor(a!) self, Tensor other) -> Tensor(a!) + inline at::Tensor & igammac_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & other) { + return at::_ops::igammac_::redispatch(dispatchKeySet, self, other); + } + + // aten::nextafter.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & nextafter_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::nextafter_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::nextafter.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & nextafter_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::nextafter_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::nextafter(Tensor self, Tensor other) -> Tensor + inline at::Tensor nextafter(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::nextafter::redispatch(dispatchKeySet, self, other); + } + + // aten::nextafter_(Tensor(a!) self, Tensor other) -> Tensor(a!) + inline at::Tensor & nextafter_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & other) { + return at::_ops::nextafter_::redispatch(dispatchKeySet, self, other); + } + + // aten::remainder.Scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & remainder_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::remainder_Scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::remainder.Scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & remainder_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other, at::Tensor & out) { + return at::_ops::remainder_Scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::remainder.Scalar(Tensor self, Scalar other) -> Tensor + inline at::Tensor remainder(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::remainder_Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::remainder_.Scalar(Tensor(a!) self, Scalar other) -> Tensor(a!) + inline at::Tensor & remainder_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Scalar & other) { + return at::_ops::remainder__Scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::remainder.Tensor_out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & remainder_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::remainder_Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::remainder.Tensor_out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & remainder_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::remainder_Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::remainder.Tensor(Tensor self, Tensor other) -> Tensor + inline at::Tensor remainder(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::remainder_Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::remainder_.Tensor(Tensor(a!) self, Tensor other) -> Tensor(a!) + inline at::Tensor & remainder_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & other) { + return at::_ops::remainder__Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::remainder.Scalar_Tensor(Scalar self, Tensor other) -> Tensor + inline at::Tensor remainder(c10::DispatchKeySet dispatchKeySet, const at::Scalar & self, const at::Tensor & other) { + return at::_ops::remainder_Scalar_Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::min(Tensor self) -> Tensor + inline at::Tensor min(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::min::redispatch(dispatchKeySet, self); + } + + // aten::min.unary_out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & min_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::min_unary_out::redispatch(dispatchKeySet, self, out); + } + + // aten::min.unary_out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & min_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::min_unary_out::redispatch(dispatchKeySet, self, out); + } + + // aten::fmin(Tensor self, Tensor other) -> Tensor + inline at::Tensor fmin(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::fmin::redispatch(dispatchKeySet, self, other); + } + + // aten::fmin.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fmin_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::fmin_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::fmin.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fmin_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::fmin_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::max(Tensor self) -> Tensor + inline at::Tensor max(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::max::redispatch(dispatchKeySet, self); + } + + // aten::fmax(Tensor self, Tensor other) -> Tensor + inline at::Tensor fmax(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::fmax::redispatch(dispatchKeySet, self, other); + } + + // aten::fmax.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fmax_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::fmax_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::fmax.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fmax_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::fmax_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::maximum(Tensor self, Tensor other) -> Tensor + inline at::Tensor maximum(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::maximum::redispatch(dispatchKeySet, self, other); + } + + // aten::maximum.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & maximum_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::maximum_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::maximum.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & maximum_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::maximum_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::max.other(Tensor self, Tensor other) -> Tensor + inline at::Tensor max(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::max_other::redispatch(dispatchKeySet, self, other); + } + + // aten::max.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & max_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::max_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::max.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & max_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::max_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::max.unary_out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & max_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::max_unary_out::redispatch(dispatchKeySet, self, out); + } + + // aten::max.unary_out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & max_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::max_unary_out::redispatch(dispatchKeySet, self, out); + } + + // aten::minimum(Tensor self, Tensor other) -> Tensor + inline at::Tensor minimum(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::minimum::redispatch(dispatchKeySet, self, other); + } + + // aten::minimum.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & minimum_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::minimum_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::minimum.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & minimum_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::minimum_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::min.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & min_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::min_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::min.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & min_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::min_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::min.other(Tensor self, Tensor other) -> Tensor + inline at::Tensor min(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::min_other::redispatch(dispatchKeySet, self, other); + } + + // aten::quantile(Tensor self, Tensor q, int? dim=None, bool keepdim=False, *, str interpolation='linear') -> Tensor + inline at::Tensor quantile(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & q, c10::optional dim=c10::nullopt, bool keepdim=false, c10::string_view interpolation="linear") { + return at::_ops::quantile::redispatch(dispatchKeySet, self, q, dim, keepdim, interpolation); + } + + // aten::quantile.out(Tensor self, Tensor q, int? dim=None, bool keepdim=False, *, str interpolation='linear', Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & quantile_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & q, c10::optional dim=c10::nullopt, bool keepdim=false, c10::string_view interpolation="linear") { + return at::_ops::quantile_out::redispatch(dispatchKeySet, self, q, dim, keepdim, interpolation, out); + } + + // aten::quantile.out(Tensor self, Tensor q, int? dim=None, bool keepdim=False, *, str interpolation='linear', Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & quantile_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & q, c10::optional dim, bool keepdim, c10::string_view interpolation, at::Tensor & out) { + return at::_ops::quantile_out::redispatch(dispatchKeySet, self, q, dim, keepdim, interpolation, out); + } + + // aten::quantile.scalar(Tensor self, float q, int? dim=None, bool keepdim=False, *, str interpolation='linear') -> Tensor + inline at::Tensor quantile(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, double q, c10::optional dim=c10::nullopt, bool keepdim=false, c10::string_view interpolation="linear") { + return at::_ops::quantile_scalar::redispatch(dispatchKeySet, self, q, dim, keepdim, interpolation); + } + + // aten::quantile.scalar_out(Tensor self, float q, int? dim=None, bool keepdim=False, *, str interpolation='linear', Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & quantile_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, double q, c10::optional dim=c10::nullopt, bool keepdim=false, c10::string_view interpolation="linear") { + return at::_ops::quantile_scalar_out::redispatch(dispatchKeySet, self, q, dim, keepdim, interpolation, out); + } + + // aten::quantile.scalar_out(Tensor self, float q, int? dim=None, bool keepdim=False, *, str interpolation='linear', Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & quantile_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, double q, c10::optional dim, bool keepdim, c10::string_view interpolation, at::Tensor & out) { + return at::_ops::quantile_scalar_out::redispatch(dispatchKeySet, self, q, dim, keepdim, interpolation, out); + } + + // aten::nanquantile(Tensor self, Tensor q, int? dim=None, bool keepdim=False, *, str interpolation='linear') -> Tensor + inline at::Tensor nanquantile(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & q, c10::optional dim=c10::nullopt, bool keepdim=false, c10::string_view interpolation="linear") { + return at::_ops::nanquantile::redispatch(dispatchKeySet, self, q, dim, keepdim, interpolation); + } + + // aten::nanquantile.out(Tensor self, Tensor q, int? dim=None, bool keepdim=False, *, str interpolation='linear', Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & nanquantile_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & q, c10::optional dim=c10::nullopt, bool keepdim=false, c10::string_view interpolation="linear") { + return at::_ops::nanquantile_out::redispatch(dispatchKeySet, self, q, dim, keepdim, interpolation, out); + } + + // aten::nanquantile.out(Tensor self, Tensor q, int? dim=None, bool keepdim=False, *, str interpolation='linear', Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & nanquantile_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & q, c10::optional dim, bool keepdim, c10::string_view interpolation, at::Tensor & out) { + return at::_ops::nanquantile_out::redispatch(dispatchKeySet, self, q, dim, keepdim, interpolation, out); + } + + // aten::nanquantile.scalar(Tensor self, float q, int? dim=None, bool keepdim=False, *, str interpolation='linear') -> Tensor + inline at::Tensor nanquantile(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, double q, c10::optional dim=c10::nullopt, bool keepdim=false, c10::string_view interpolation="linear") { + return at::_ops::nanquantile_scalar::redispatch(dispatchKeySet, self, q, dim, keepdim, interpolation); + } + + // aten::nanquantile.scalar_out(Tensor self, float q, int? dim=None, bool keepdim=False, *, str interpolation='linear', Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & nanquantile_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, double q, c10::optional dim=c10::nullopt, bool keepdim=false, c10::string_view interpolation="linear") { + return at::_ops::nanquantile_scalar_out::redispatch(dispatchKeySet, self, q, dim, keepdim, interpolation, out); + } + + // aten::nanquantile.scalar_out(Tensor self, float q, int? dim=None, bool keepdim=False, *, str interpolation='linear', Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & nanquantile_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, double q, c10::optional dim, bool keepdim, c10::string_view interpolation, at::Tensor & out) { + return at::_ops::nanquantile_scalar_out::redispatch(dispatchKeySet, self, q, dim, keepdim, interpolation, out); + } + + // aten::sort.values(Tensor self, int dim=-1, bool descending=False, *, Tensor(a!) values, Tensor(b!) indices) -> (Tensor(a!) values, Tensor(b!) indices) + inline ::std::tuple sort_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & values, at::Tensor & indices, const at::Tensor & self, int64_t dim=-1, bool descending=false) { + return at::_ops::sort_values::redispatch(dispatchKeySet, self, dim, descending, values, indices); + } + + // aten::sort.values(Tensor self, int dim=-1, bool descending=False, *, Tensor(a!) values, Tensor(b!) indices) -> (Tensor(a!) values, Tensor(b!) indices) + inline ::std::tuple sort_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, bool descending, at::Tensor & values, at::Tensor & indices) { + return at::_ops::sort_values::redispatch(dispatchKeySet, self, dim, descending, values, indices); + } + + // aten::sort.values_stable(Tensor self, *, bool? stable, int dim=-1, bool descending=False, Tensor(a!) values, Tensor(b!) indices) -> (Tensor(a!) values, Tensor(b!) indices) + inline ::std::tuple sort_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & values, at::Tensor & indices, const at::Tensor & self, c10::optional stable, int64_t dim=-1, bool descending=false) { + return at::_ops::sort_values_stable::redispatch(dispatchKeySet, self, stable, dim, descending, values, indices); + } + + // aten::sort.values_stable(Tensor self, *, bool? stable, int dim=-1, bool descending=False, Tensor(a!) values, Tensor(b!) indices) -> (Tensor(a!) values, Tensor(b!) indices) + inline ::std::tuple sort_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional stable, int64_t dim, bool descending, at::Tensor & values, at::Tensor & indices) { + return at::_ops::sort_values_stable::redispatch(dispatchKeySet, self, stable, dim, descending, values, indices); + } + + // aten::sort(Tensor self, int dim=-1, bool descending=False) -> (Tensor values, Tensor indices) + inline ::std::tuple sort(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim=-1, bool descending=false) { + return at::_ops::sort::redispatch(dispatchKeySet, self, dim, descending); + } + + // aten::sort.stable(Tensor self, *, bool? stable, int dim=-1, bool descending=False) -> (Tensor values, Tensor indices) + inline ::std::tuple sort(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional stable, int64_t dim=-1, bool descending=false) { + return at::_ops::sort_stable::redispatch(dispatchKeySet, self, stable, dim, descending); + } + + // aten::sort.dimname_values(Tensor self, Dimname dim, bool descending=False, *, Tensor(a!) values, Tensor(b!) indices) -> (Tensor(a!) values, Tensor(b!) indices) + inline ::std::tuple sort_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & values, at::Tensor & indices, const at::Tensor & self, at::Dimname dim, bool descending=false) { + return at::_ops::sort_dimname_values::redispatch(dispatchKeySet, self, dim, descending, values, indices); + } + + // aten::sort.dimname_values(Tensor self, Dimname dim, bool descending=False, *, Tensor(a!) values, Tensor(b!) indices) -> (Tensor(a!) values, Tensor(b!) indices) + inline ::std::tuple sort_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim, bool descending, at::Tensor & values, at::Tensor & indices) { + return at::_ops::sort_dimname_values::redispatch(dispatchKeySet, self, dim, descending, values, indices); + } + + // aten::sort.dimname_values_stable(Tensor self, *, bool? stable, Dimname dim, bool descending=False, Tensor(a!) values, Tensor(b!) indices) -> (Tensor(a!) values, Tensor(b!) indices) + inline ::std::tuple sort_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & values, at::Tensor & indices, const at::Tensor & self, c10::optional stable, at::Dimname dim, bool descending=false) { + return at::_ops::sort_dimname_values_stable::redispatch(dispatchKeySet, self, stable, dim, descending, values, indices); + } + + // aten::sort.dimname_values_stable(Tensor self, *, bool? stable, Dimname dim, bool descending=False, Tensor(a!) values, Tensor(b!) indices) -> (Tensor(a!) values, Tensor(b!) indices) + inline ::std::tuple sort_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional stable, at::Dimname dim, bool descending, at::Tensor & values, at::Tensor & indices) { + return at::_ops::sort_dimname_values_stable::redispatch(dispatchKeySet, self, stable, dim, descending, values, indices); + } + + // aten::sort.dimname(Tensor self, Dimname dim, bool descending=False) -> (Tensor values, Tensor indices) + inline ::std::tuple sort(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim, bool descending=false) { + return at::_ops::sort_dimname::redispatch(dispatchKeySet, self, dim, descending); + } + + // aten::sort.dimname_stable(Tensor self, *, bool? stable, Dimname dim, bool descending=False) -> (Tensor values, Tensor indices) + inline ::std::tuple sort(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional stable, at::Dimname dim, bool descending=false) { + return at::_ops::sort_dimname_stable::redispatch(dispatchKeySet, self, stable, dim, descending); + } + + // aten::msort.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & msort_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::msort_out::redispatch(dispatchKeySet, self, out); + } + + // aten::msort.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & msort_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::msort_out::redispatch(dispatchKeySet, self, out); + } + + // aten::msort(Tensor self) -> Tensor + inline at::Tensor msort(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::msort::redispatch(dispatchKeySet, self); + } + + // aten::argsort(Tensor self, int dim=-1, bool descending=False) -> Tensor + inline at::Tensor argsort(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim=-1, bool descending=false) { + return at::_ops::argsort::redispatch(dispatchKeySet, self, dim, descending); + } + + // aten::argsort.stable(Tensor self, *, bool stable, int dim=-1, bool descending=False) -> Tensor + inline at::Tensor argsort(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, bool stable, int64_t dim=-1, bool descending=false) { + return at::_ops::argsort_stable::redispatch(dispatchKeySet, self, stable, dim, descending); + } + + // aten::argsort.dimname(Tensor self, Dimname dim, bool descending=False) -> Tensor + inline at::Tensor argsort(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim, bool descending=false) { + return at::_ops::argsort_dimname::redispatch(dispatchKeySet, self, dim, descending); + } + + // aten::topk.values(Tensor self, SymInt k, int dim=-1, bool largest=True, bool sorted=True, *, Tensor(a!) values, Tensor(b!) indices) -> (Tensor(a!) values, Tensor(b!) indices) + inline ::std::tuple topk_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & values, at::Tensor & indices, const at::Tensor & self, int64_t k, int64_t dim=-1, bool largest=true, bool sorted=true) { + return at::_ops::topk_values::redispatch(dispatchKeySet, self, k, dim, largest, sorted, values, indices); + } + + // aten::topk.values(Tensor self, SymInt k, int dim=-1, bool largest=True, bool sorted=True, *, Tensor(a!) values, Tensor(b!) indices) -> (Tensor(a!) values, Tensor(b!) indices) + inline ::std::tuple topk_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t k, int64_t dim, bool largest, bool sorted, at::Tensor & values, at::Tensor & indices) { + return at::_ops::topk_values::redispatch(dispatchKeySet, self, k, dim, largest, sorted, values, indices); + } + + // aten::topk.values(Tensor self, SymInt k, int dim=-1, bool largest=True, bool sorted=True, *, Tensor(a!) values, Tensor(b!) indices) -> (Tensor(a!) values, Tensor(b!) indices) + inline ::std::tuple topk_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & values, at::Tensor & indices, const at::Tensor & self, c10::SymInt k, int64_t dim=-1, bool largest=true, bool sorted=true) { + return at::_ops::topk_values::redispatch(dispatchKeySet, self, k, dim, largest, sorted, values, indices); + } + + // aten::topk.values(Tensor self, SymInt k, int dim=-1, bool largest=True, bool sorted=True, *, Tensor(a!) values, Tensor(b!) indices) -> (Tensor(a!) values, Tensor(b!) indices) + inline ::std::tuple topk_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymInt k, int64_t dim, bool largest, bool sorted, at::Tensor & values, at::Tensor & indices) { + return at::_ops::topk_values::redispatch(dispatchKeySet, self, k, dim, largest, sorted, values, indices); + } + + // aten::topk(Tensor self, SymInt k, int dim=-1, bool largest=True, bool sorted=True) -> (Tensor values, Tensor indices) + inline ::std::tuple topk(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t k, int64_t dim=-1, bool largest=true, bool sorted=true) { + return at::_ops::topk::redispatch(dispatchKeySet, self, k, dim, largest, sorted); + } + + // aten::topk(Tensor self, SymInt k, int dim=-1, bool largest=True, bool sorted=True) -> (Tensor values, Tensor indices) + inline ::std::tuple topk_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymInt k, int64_t dim=-1, bool largest=true, bool sorted=true) { + return at::_ops::topk::redispatch(dispatchKeySet, self, k, dim, largest, sorted); + } + + // aten::all(Tensor self) -> Tensor + inline at::Tensor all(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::all::redispatch(dispatchKeySet, self); + } + + // aten::all.all_out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & all_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::all_all_out::redispatch(dispatchKeySet, self, out); + } + + // aten::all.all_out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & all_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::all_all_out::redispatch(dispatchKeySet, self, out); + } + + // aten::any(Tensor self) -> Tensor + inline at::Tensor any(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::any::redispatch(dispatchKeySet, self); + } + + // aten::any.all_out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & any_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::any_all_out::redispatch(dispatchKeySet, self, out); + } + + // aten::any.all_out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & any_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::any_all_out::redispatch(dispatchKeySet, self, out); + } + + // aten::renorm.out(Tensor self, Scalar p, int dim, Scalar maxnorm, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & renorm_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Scalar & p, int64_t dim, const at::Scalar & maxnorm) { + return at::_ops::renorm_out::redispatch(dispatchKeySet, self, p, dim, maxnorm, out); + } + + // aten::renorm.out(Tensor self, Scalar p, int dim, Scalar maxnorm, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & renorm_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & p, int64_t dim, const at::Scalar & maxnorm, at::Tensor & out) { + return at::_ops::renorm_out::redispatch(dispatchKeySet, self, p, dim, maxnorm, out); + } + + // aten::renorm(Tensor self, Scalar p, int dim, Scalar maxnorm) -> Tensor + inline at::Tensor renorm(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & p, int64_t dim, const at::Scalar & maxnorm) { + return at::_ops::renorm::redispatch(dispatchKeySet, self, p, dim, maxnorm); + } + + // aten::renorm_(Tensor(a!) self, Scalar p, int dim, Scalar maxnorm) -> Tensor(a!) + inline at::Tensor & renorm_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Scalar & p, int64_t dim, const at::Scalar & maxnorm) { + return at::_ops::renorm_::redispatch(dispatchKeySet, self, p, dim, maxnorm); + } + + // aten::unfold(Tensor(a) self, int dimension, int size, int step) -> Tensor(a) + inline at::Tensor unfold(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dimension, int64_t size, int64_t step) { + return at::_ops::unfold::redispatch(dispatchKeySet, self, dimension, size, step); + } + + // aten::unfold_backward(Tensor grad_in, SymInt[] input_sizes, int dim, int size, int step) -> Tensor + inline at::Tensor unfold_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_in, at::IntArrayRef input_sizes, int64_t dim, int64_t size, int64_t step) { + return at::_ops::unfold_backward::redispatch(dispatchKeySet, grad_in, c10::fromIntArrayRefSlow(input_sizes), dim, size, step); + } + + // aten::unfold_backward(Tensor grad_in, SymInt[] input_sizes, int dim, int size, int step) -> Tensor + inline at::Tensor unfold_backward_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_in, c10::SymIntArrayRef input_sizes, int64_t dim, int64_t size, int64_t step) { + return at::_ops::unfold_backward::redispatch(dispatchKeySet, grad_in, input_sizes, dim, size, step); + } + + // aten::equal(Tensor self, Tensor other) -> bool + inline bool equal(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::equal::redispatch(dispatchKeySet, self, other); + } + + // aten::pow.Tensor_Tensor_out(Tensor self, Tensor exponent, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & pow_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & exponent) { + return at::_ops::pow_Tensor_Tensor_out::redispatch(dispatchKeySet, self, exponent, out); + } + + // aten::pow.Tensor_Tensor_out(Tensor self, Tensor exponent, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & pow_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & exponent, at::Tensor & out) { + return at::_ops::pow_Tensor_Tensor_out::redispatch(dispatchKeySet, self, exponent, out); + } + + // aten::pow.Tensor_Tensor(Tensor self, Tensor exponent) -> Tensor + inline at::Tensor pow(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & exponent) { + return at::_ops::pow_Tensor_Tensor::redispatch(dispatchKeySet, self, exponent); + } + + // aten::pow.Scalar_out(Scalar self, Tensor exponent, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & pow_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Scalar & self, const at::Tensor & exponent) { + return at::_ops::pow_Scalar_out::redispatch(dispatchKeySet, self, exponent, out); + } + + // aten::pow.Scalar_out(Scalar self, Tensor exponent, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & pow_outf(c10::DispatchKeySet dispatchKeySet, const at::Scalar & self, const at::Tensor & exponent, at::Tensor & out) { + return at::_ops::pow_Scalar_out::redispatch(dispatchKeySet, self, exponent, out); + } + + // aten::pow.Scalar(Scalar self, Tensor exponent) -> Tensor + inline at::Tensor pow(c10::DispatchKeySet dispatchKeySet, const at::Scalar & self, const at::Tensor & exponent) { + return at::_ops::pow_Scalar::redispatch(dispatchKeySet, self, exponent); + } + + // aten::pow.Tensor_Scalar_out(Tensor self, Scalar exponent, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & pow_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Scalar & exponent) { + return at::_ops::pow_Tensor_Scalar_out::redispatch(dispatchKeySet, self, exponent, out); + } + + // aten::pow.Tensor_Scalar_out(Tensor self, Scalar exponent, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & pow_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & exponent, at::Tensor & out) { + return at::_ops::pow_Tensor_Scalar_out::redispatch(dispatchKeySet, self, exponent, out); + } + + // aten::pow.Tensor_Scalar(Tensor self, Scalar exponent) -> Tensor + inline at::Tensor pow(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & exponent) { + return at::_ops::pow_Tensor_Scalar::redispatch(dispatchKeySet, self, exponent); + } + + // aten::pow_.Scalar(Tensor(a!) self, Scalar exponent) -> Tensor(a!) + inline at::Tensor & pow_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Scalar & exponent) { + return at::_ops::pow__Scalar::redispatch(dispatchKeySet, self, exponent); + } + + // aten::pow_.Tensor(Tensor(a!) self, Tensor exponent) -> Tensor(a!) + inline at::Tensor & pow_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & exponent) { + return at::_ops::pow__Tensor::redispatch(dispatchKeySet, self, exponent); + } + + // aten::float_power.Tensor_Tensor_out(Tensor self, Tensor exponent, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & float_power_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & exponent) { + return at::_ops::float_power_Tensor_Tensor_out::redispatch(dispatchKeySet, self, exponent, out); + } + + // aten::float_power.Tensor_Tensor_out(Tensor self, Tensor exponent, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & float_power_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & exponent, at::Tensor & out) { + return at::_ops::float_power_Tensor_Tensor_out::redispatch(dispatchKeySet, self, exponent, out); + } + + // aten::float_power.Tensor_Tensor(Tensor self, Tensor exponent) -> Tensor + inline at::Tensor float_power(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & exponent) { + return at::_ops::float_power_Tensor_Tensor::redispatch(dispatchKeySet, self, exponent); + } + + // aten::float_power.Scalar_out(Scalar self, Tensor exponent, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & float_power_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Scalar & self, const at::Tensor & exponent) { + return at::_ops::float_power_Scalar_out::redispatch(dispatchKeySet, self, exponent, out); + } + + // aten::float_power.Scalar_out(Scalar self, Tensor exponent, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & float_power_outf(c10::DispatchKeySet dispatchKeySet, const at::Scalar & self, const at::Tensor & exponent, at::Tensor & out) { + return at::_ops::float_power_Scalar_out::redispatch(dispatchKeySet, self, exponent, out); + } + + // aten::float_power.Scalar(Scalar self, Tensor exponent) -> Tensor + inline at::Tensor float_power(c10::DispatchKeySet dispatchKeySet, const at::Scalar & self, const at::Tensor & exponent) { + return at::_ops::float_power_Scalar::redispatch(dispatchKeySet, self, exponent); + } + + // aten::float_power.Tensor_Scalar_out(Tensor self, Scalar exponent, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & float_power_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Scalar & exponent) { + return at::_ops::float_power_Tensor_Scalar_out::redispatch(dispatchKeySet, self, exponent, out); + } + + // aten::float_power.Tensor_Scalar_out(Tensor self, Scalar exponent, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & float_power_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & exponent, at::Tensor & out) { + return at::_ops::float_power_Tensor_Scalar_out::redispatch(dispatchKeySet, self, exponent, out); + } + + // aten::float_power.Tensor_Scalar(Tensor self, Scalar exponent) -> Tensor + inline at::Tensor float_power(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & exponent) { + return at::_ops::float_power_Tensor_Scalar::redispatch(dispatchKeySet, self, exponent); + } + + // aten::float_power_.Scalar(Tensor(a!) self, Scalar exponent) -> Tensor(a!) + inline at::Tensor & float_power_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Scalar & exponent) { + return at::_ops::float_power__Scalar::redispatch(dispatchKeySet, self, exponent); + } + + // aten::float_power_.Tensor(Tensor(a!) self, Tensor exponent) -> Tensor(a!) + inline at::Tensor & float_power_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & exponent) { + return at::_ops::float_power__Tensor::redispatch(dispatchKeySet, self, exponent); + } + + // aten::normal_(Tensor(a!) self, float mean=0, float std=1, *, Generator? generator=None) -> Tensor(a!) + inline at::Tensor & normal_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, double mean=0, double std=1, c10::optional generator=c10::nullopt) { + return at::_ops::normal_::redispatch(dispatchKeySet, self, mean, std, generator); + } + + // aten::normal_functional(Tensor self, float mean=0, float std=1, *, Generator? generator=None) -> Tensor + inline at::Tensor normal_functional(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, double mean=0, double std=1, c10::optional generator=c10::nullopt) { + return at::_ops::normal_functional::redispatch(dispatchKeySet, self, mean, std, generator); + } + + // aten::normal.Tensor_float_out(Tensor mean, float std=1, *, Generator? generator=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & normal_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & mean, double std=1, c10::optional generator=c10::nullopt) { + return at::_ops::normal_Tensor_float_out::redispatch(dispatchKeySet, mean, std, generator, out); + } + + // aten::normal.Tensor_float_out(Tensor mean, float std=1, *, Generator? generator=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & normal_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & mean, double std, c10::optional generator, at::Tensor & out) { + return at::_ops::normal_Tensor_float_out::redispatch(dispatchKeySet, mean, std, generator, out); + } + + // aten::normal.Tensor_float(Tensor mean, float std=1, *, Generator? generator=None) -> Tensor + inline at::Tensor normal(c10::DispatchKeySet dispatchKeySet, const at::Tensor & mean, double std=1, c10::optional generator=c10::nullopt) { + return at::_ops::normal_Tensor_float::redispatch(dispatchKeySet, mean, std, generator); + } + + // aten::normal.float_Tensor_out(float mean, Tensor std, *, Generator? generator=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & normal_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, double mean, const at::Tensor & std, c10::optional generator=c10::nullopt) { + return at::_ops::normal_float_Tensor_out::redispatch(dispatchKeySet, mean, std, generator, out); + } + + // aten::normal.float_Tensor_out(float mean, Tensor std, *, Generator? generator=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & normal_outf(c10::DispatchKeySet dispatchKeySet, double mean, const at::Tensor & std, c10::optional generator, at::Tensor & out) { + return at::_ops::normal_float_Tensor_out::redispatch(dispatchKeySet, mean, std, generator, out); + } + + // aten::normal.float_Tensor(float mean, Tensor std, *, Generator? generator=None) -> Tensor + inline at::Tensor normal(c10::DispatchKeySet dispatchKeySet, double mean, const at::Tensor & std, c10::optional generator=c10::nullopt) { + return at::_ops::normal_float_Tensor::redispatch(dispatchKeySet, mean, std, generator); + } + + // aten::normal.Tensor_Tensor_out(Tensor mean, Tensor std, *, Generator? generator=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & normal_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & mean, const at::Tensor & std, c10::optional generator=c10::nullopt) { + return at::_ops::normal_Tensor_Tensor_out::redispatch(dispatchKeySet, mean, std, generator, out); + } + + // aten::normal.Tensor_Tensor_out(Tensor mean, Tensor std, *, Generator? generator=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & normal_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & mean, const at::Tensor & std, c10::optional generator, at::Tensor & out) { + return at::_ops::normal_Tensor_Tensor_out::redispatch(dispatchKeySet, mean, std, generator, out); + } + + // aten::normal.Tensor_Tensor(Tensor mean, Tensor std, *, Generator? generator=None) -> Tensor + inline at::Tensor normal(c10::DispatchKeySet dispatchKeySet, const at::Tensor & mean, const at::Tensor & std, c10::optional generator=c10::nullopt) { + return at::_ops::normal_Tensor_Tensor::redispatch(dispatchKeySet, mean, std, generator); + } + + // aten::normal.float_float(float mean, float std, SymInt[] size, *, Generator? generator=None, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor normal(c10::DispatchKeySet dispatchKeySet, double mean, double std, at::IntArrayRef size, c10::optional generator=c10::nullopt, at::TensorOptions options={}) { + return at::_ops::normal_float_float::redispatch(dispatchKeySet, mean, std, c10::fromIntArrayRefSlow(size), generator, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::normal.float_float(float mean, float std, SymInt[] size, *, Generator? generator=None, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor normal(c10::DispatchKeySet dispatchKeySet, double mean, double std, at::IntArrayRef size, c10::optional generator, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::normal_float_float::redispatch(dispatchKeySet, mean, std, c10::fromIntArrayRefSlow(size), generator, dtype, layout, device, pin_memory); + } + + // aten::normal.float_float(float mean, float std, SymInt[] size, *, Generator? generator=None, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor normal_symint(c10::DispatchKeySet dispatchKeySet, double mean, double std, c10::SymIntArrayRef size, c10::optional generator=c10::nullopt, at::TensorOptions options={}) { + return at::_ops::normal_float_float::redispatch(dispatchKeySet, mean, std, size, generator, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::normal.float_float(float mean, float std, SymInt[] size, *, Generator? generator=None, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor normal_symint(c10::DispatchKeySet dispatchKeySet, double mean, double std, c10::SymIntArrayRef size, c10::optional generator, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::normal_float_float::redispatch(dispatchKeySet, mean, std, size, generator, dtype, layout, device, pin_memory); + } + + // aten::normal.float_float_out(float mean, float std, SymInt[] size, *, Generator? generator=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & normal_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, double mean, double std, at::IntArrayRef size, c10::optional generator=c10::nullopt) { + return at::_ops::normal_float_float_out::redispatch(dispatchKeySet, mean, std, c10::fromIntArrayRefSlow(size), generator, out); + } + + // aten::normal.float_float_out(float mean, float std, SymInt[] size, *, Generator? generator=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & normal_outf(c10::DispatchKeySet dispatchKeySet, double mean, double std, at::IntArrayRef size, c10::optional generator, at::Tensor & out) { + return at::_ops::normal_float_float_out::redispatch(dispatchKeySet, mean, std, c10::fromIntArrayRefSlow(size), generator, out); + } + + // aten::normal.float_float_out(float mean, float std, SymInt[] size, *, Generator? generator=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & normal_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, double mean, double std, c10::SymIntArrayRef size, c10::optional generator=c10::nullopt) { + return at::_ops::normal_float_float_out::redispatch(dispatchKeySet, mean, std, size, generator, out); + } + + // aten::normal.float_float_out(float mean, float std, SymInt[] size, *, Generator? generator=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & normal_symint_outf(c10::DispatchKeySet dispatchKeySet, double mean, double std, c10::SymIntArrayRef size, c10::optional generator, at::Tensor & out) { + return at::_ops::normal_float_float_out::redispatch(dispatchKeySet, mean, std, size, generator, out); + } + + // aten::alias(Tensor(a) self) -> Tensor(a) + inline at::Tensor alias(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::alias::redispatch(dispatchKeySet, self); + } + + // aten::_amp_foreach_non_finite_check_and_unscale_(Tensor(a!)[] self, Tensor(b!) found_inf, Tensor inv_scale) -> () + inline void _amp_foreach_non_finite_check_and_unscale_(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::Tensor & found_inf, const at::Tensor & inv_scale) { + return at::_ops::_amp_foreach_non_finite_check_and_unscale_::redispatch(dispatchKeySet, self, found_inf, inv_scale); + } + + // aten::_amp_update_scale_(Tensor(a!) self, Tensor(b!) growth_tracker, Tensor found_inf, float scale_growth_factor, float scale_backoff_factor, int growth_interval) -> Tensor(a!) + inline at::Tensor & _amp_update_scale_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, at::Tensor & growth_tracker, const at::Tensor & found_inf, double scale_growth_factor, double scale_backoff_factor, int64_t growth_interval) { + return at::_ops::_amp_update_scale_::redispatch(dispatchKeySet, self, growth_tracker, found_inf, scale_growth_factor, scale_backoff_factor, growth_interval); + } + + // aten::_foreach_add.Scalar(Tensor[] self, Scalar scalar) -> Tensor[] + inline ::std::vector _foreach_add(c10::DispatchKeySet dispatchKeySet, at::TensorList self, const at::Scalar & scalar) { + return at::_ops::_foreach_add_Scalar::redispatch(dispatchKeySet, self, scalar); + } + + // aten::_foreach_add_.Scalar(Tensor(a!)[] self, Scalar scalar) -> () + inline void _foreach_add_(c10::DispatchKeySet dispatchKeySet, at::TensorList self, const at::Scalar & scalar) { + return at::_ops::_foreach_add__Scalar::redispatch(dispatchKeySet, self, scalar); + } + + // aten::_foreach_add.List(Tensor[] self, Tensor[] other, *, Scalar alpha=1) -> Tensor[] + inline ::std::vector _foreach_add(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList other, const at::Scalar & alpha=1) { + return at::_ops::_foreach_add_List::redispatch(dispatchKeySet, self, other, alpha); + } + + // aten::_foreach_add_.List(Tensor(a!)[] self, Tensor[] other, *, Scalar alpha=1) -> () + inline void _foreach_add_(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList other, const at::Scalar & alpha=1) { + return at::_ops::_foreach_add__List::redispatch(dispatchKeySet, self, other, alpha); + } + + // aten::_foreach_add.ScalarList(Tensor[] self, Scalar[] scalars) -> Tensor[] + inline ::std::vector _foreach_add(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::ArrayRef scalars) { + return at::_ops::_foreach_add_ScalarList::redispatch(dispatchKeySet, self, scalars); + } + + // aten::_foreach_add_.ScalarList(Tensor(a!)[] self, Scalar[] scalars) -> () + inline void _foreach_add_(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::ArrayRef scalars) { + return at::_ops::_foreach_add__ScalarList::redispatch(dispatchKeySet, self, scalars); + } + + // aten::_foreach_add.Tensor(Tensor[] self, Tensor other, *, Scalar alpha=1) -> Tensor[] + inline ::std::vector _foreach_add(c10::DispatchKeySet dispatchKeySet, at::TensorList self, const at::Tensor & other, const at::Scalar & alpha=1) { + return at::_ops::_foreach_add_Tensor::redispatch(dispatchKeySet, self, other, alpha); + } + + // aten::_foreach_add_.Tensor(Tensor(a!)[] self, Tensor other, *, Scalar alpha=1) -> () + inline void _foreach_add_(c10::DispatchKeySet dispatchKeySet, at::TensorList self, const at::Tensor & other, const at::Scalar & alpha=1) { + return at::_ops::_foreach_add__Tensor::redispatch(dispatchKeySet, self, other, alpha); + } + + // aten::_foreach_sub.Scalar(Tensor[] self, Scalar scalar) -> Tensor[] + inline ::std::vector _foreach_sub(c10::DispatchKeySet dispatchKeySet, at::TensorList self, const at::Scalar & scalar) { + return at::_ops::_foreach_sub_Scalar::redispatch(dispatchKeySet, self, scalar); + } + + // aten::_foreach_sub_.Scalar(Tensor(a!)[] self, Scalar scalar) -> () + inline void _foreach_sub_(c10::DispatchKeySet dispatchKeySet, at::TensorList self, const at::Scalar & scalar) { + return at::_ops::_foreach_sub__Scalar::redispatch(dispatchKeySet, self, scalar); + } + + // aten::_foreach_sub.List(Tensor[] self, Tensor[] other, *, Scalar alpha=1) -> Tensor[] + inline ::std::vector _foreach_sub(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList other, const at::Scalar & alpha=1) { + return at::_ops::_foreach_sub_List::redispatch(dispatchKeySet, self, other, alpha); + } + + // aten::_foreach_sub_.List(Tensor(a!)[] self, Tensor[] other, *, Scalar alpha=1) -> () + inline void _foreach_sub_(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList other, const at::Scalar & alpha=1) { + return at::_ops::_foreach_sub__List::redispatch(dispatchKeySet, self, other, alpha); + } + + // aten::_foreach_sub.ScalarList(Tensor[] self, Scalar[] scalars) -> Tensor[] + inline ::std::vector _foreach_sub(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::ArrayRef scalars) { + return at::_ops::_foreach_sub_ScalarList::redispatch(dispatchKeySet, self, scalars); + } + + // aten::_foreach_sub_.ScalarList(Tensor(a!)[] self, Scalar[] scalars) -> () + inline void _foreach_sub_(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::ArrayRef scalars) { + return at::_ops::_foreach_sub__ScalarList::redispatch(dispatchKeySet, self, scalars); + } + + // aten::_foreach_mul.Scalar(Tensor[] self, Scalar scalar) -> Tensor[] + inline ::std::vector _foreach_mul(c10::DispatchKeySet dispatchKeySet, at::TensorList self, const at::Scalar & scalar) { + return at::_ops::_foreach_mul_Scalar::redispatch(dispatchKeySet, self, scalar); + } + + // aten::_foreach_mul_.Scalar(Tensor(a!)[] self, Scalar scalar) -> () + inline void _foreach_mul_(c10::DispatchKeySet dispatchKeySet, at::TensorList self, const at::Scalar & scalar) { + return at::_ops::_foreach_mul__Scalar::redispatch(dispatchKeySet, self, scalar); + } + + // aten::_foreach_mul.List(Tensor[] self, Tensor[] other) -> Tensor[] + inline ::std::vector _foreach_mul(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList other) { + return at::_ops::_foreach_mul_List::redispatch(dispatchKeySet, self, other); + } + + // aten::_foreach_mul_.List(Tensor(a!)[] self, Tensor[] other) -> () + inline void _foreach_mul_(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList other) { + return at::_ops::_foreach_mul__List::redispatch(dispatchKeySet, self, other); + } + + // aten::_foreach_mul.ScalarList(Tensor[] self, Scalar[] scalars) -> Tensor[] + inline ::std::vector _foreach_mul(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::ArrayRef scalars) { + return at::_ops::_foreach_mul_ScalarList::redispatch(dispatchKeySet, self, scalars); + } + + // aten::_foreach_mul_.ScalarList(Tensor(a!)[] self, Scalar[] scalars) -> () + inline void _foreach_mul_(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::ArrayRef scalars) { + return at::_ops::_foreach_mul__ScalarList::redispatch(dispatchKeySet, self, scalars); + } + + // aten::_foreach_mul.Tensor(Tensor[] self, Tensor other) -> Tensor[] + inline ::std::vector _foreach_mul(c10::DispatchKeySet dispatchKeySet, at::TensorList self, const at::Tensor & other) { + return at::_ops::_foreach_mul_Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::_foreach_mul_.Tensor(Tensor(a!)[] self, Tensor other) -> () + inline void _foreach_mul_(c10::DispatchKeySet dispatchKeySet, at::TensorList self, const at::Tensor & other) { + return at::_ops::_foreach_mul__Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::_foreach_div.Scalar(Tensor[] self, Scalar scalar) -> Tensor[] + inline ::std::vector _foreach_div(c10::DispatchKeySet dispatchKeySet, at::TensorList self, const at::Scalar & scalar) { + return at::_ops::_foreach_div_Scalar::redispatch(dispatchKeySet, self, scalar); + } + + // aten::_foreach_div_.Scalar(Tensor(a!)[] self, Scalar scalar) -> () + inline void _foreach_div_(c10::DispatchKeySet dispatchKeySet, at::TensorList self, const at::Scalar & scalar) { + return at::_ops::_foreach_div__Scalar::redispatch(dispatchKeySet, self, scalar); + } + + // aten::_foreach_div.List(Tensor[] self, Tensor[] other) -> Tensor[] + inline ::std::vector _foreach_div(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList other) { + return at::_ops::_foreach_div_List::redispatch(dispatchKeySet, self, other); + } + + // aten::_foreach_div_.List(Tensor(a!)[] self, Tensor[] other) -> () + inline void _foreach_div_(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList other) { + return at::_ops::_foreach_div__List::redispatch(dispatchKeySet, self, other); + } + + // aten::_foreach_div.ScalarList(Tensor[] self, Scalar[] scalars) -> Tensor[] + inline ::std::vector _foreach_div(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::ArrayRef scalars) { + return at::_ops::_foreach_div_ScalarList::redispatch(dispatchKeySet, self, scalars); + } + + // aten::_foreach_div_.ScalarList(Tensor(a!)[] self, Scalar[] scalars) -> () + inline void _foreach_div_(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::ArrayRef scalars) { + return at::_ops::_foreach_div__ScalarList::redispatch(dispatchKeySet, self, scalars); + } + + // aten::_foreach_div.Tensor(Tensor[] self, Tensor other) -> Tensor[] + inline ::std::vector _foreach_div(c10::DispatchKeySet dispatchKeySet, at::TensorList self, const at::Tensor & other) { + return at::_ops::_foreach_div_Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::_foreach_div_.Tensor(Tensor(a!)[] self, Tensor other) -> () + inline void _foreach_div_(c10::DispatchKeySet dispatchKeySet, at::TensorList self, const at::Tensor & other) { + return at::_ops::_foreach_div__Tensor::redispatch(dispatchKeySet, self, other); + } + + // aten::_foreach_clamp_max.Scalar(Tensor[] self, Scalar scalar) -> Tensor[] + inline ::std::vector _foreach_clamp_max(c10::DispatchKeySet dispatchKeySet, at::TensorList self, const at::Scalar & scalar) { + return at::_ops::_foreach_clamp_max_Scalar::redispatch(dispatchKeySet, self, scalar); + } + + // aten::_foreach_clamp_max_.Scalar(Tensor(a!)[] self, Scalar scalar) -> () + inline void _foreach_clamp_max_(c10::DispatchKeySet dispatchKeySet, at::TensorList self, const at::Scalar & scalar) { + return at::_ops::_foreach_clamp_max__Scalar::redispatch(dispatchKeySet, self, scalar); + } + + // aten::_foreach_clamp_max.List(Tensor[] self, Tensor[] other) -> Tensor[] + inline ::std::vector _foreach_clamp_max(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList other) { + return at::_ops::_foreach_clamp_max_List::redispatch(dispatchKeySet, self, other); + } + + // aten::_foreach_clamp_max_.List(Tensor(a!)[] self, Tensor[] other) -> () + inline void _foreach_clamp_max_(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList other) { + return at::_ops::_foreach_clamp_max__List::redispatch(dispatchKeySet, self, other); + } + + // aten::_foreach_clamp_max.ScalarList(Tensor[] self, Scalar[] scalars) -> Tensor[] + inline ::std::vector _foreach_clamp_max(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::ArrayRef scalars) { + return at::_ops::_foreach_clamp_max_ScalarList::redispatch(dispatchKeySet, self, scalars); + } + + // aten::_foreach_clamp_max_.ScalarList(Tensor(a!)[] self, Scalar[] scalars) -> () + inline void _foreach_clamp_max_(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::ArrayRef scalars) { + return at::_ops::_foreach_clamp_max__ScalarList::redispatch(dispatchKeySet, self, scalars); + } + + // aten::_foreach_clamp_min.Scalar(Tensor[] self, Scalar scalar) -> Tensor[] + inline ::std::vector _foreach_clamp_min(c10::DispatchKeySet dispatchKeySet, at::TensorList self, const at::Scalar & scalar) { + return at::_ops::_foreach_clamp_min_Scalar::redispatch(dispatchKeySet, self, scalar); + } + + // aten::_foreach_clamp_min_.Scalar(Tensor(a!)[] self, Scalar scalar) -> () + inline void _foreach_clamp_min_(c10::DispatchKeySet dispatchKeySet, at::TensorList self, const at::Scalar & scalar) { + return at::_ops::_foreach_clamp_min__Scalar::redispatch(dispatchKeySet, self, scalar); + } + + // aten::_foreach_clamp_min.List(Tensor[] self, Tensor[] other) -> Tensor[] + inline ::std::vector _foreach_clamp_min(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList other) { + return at::_ops::_foreach_clamp_min_List::redispatch(dispatchKeySet, self, other); + } + + // aten::_foreach_clamp_min_.List(Tensor(a!)[] self, Tensor[] other) -> () + inline void _foreach_clamp_min_(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList other) { + return at::_ops::_foreach_clamp_min__List::redispatch(dispatchKeySet, self, other); + } + + // aten::_foreach_clamp_min.ScalarList(Tensor[] self, Scalar[] scalars) -> Tensor[] + inline ::std::vector _foreach_clamp_min(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::ArrayRef scalars) { + return at::_ops::_foreach_clamp_min_ScalarList::redispatch(dispatchKeySet, self, scalars); + } + + // aten::_foreach_clamp_min_.ScalarList(Tensor(a!)[] self, Scalar[] scalars) -> () + inline void _foreach_clamp_min_(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::ArrayRef scalars) { + return at::_ops::_foreach_clamp_min__ScalarList::redispatch(dispatchKeySet, self, scalars); + } + + // aten::_foreach_maximum.Scalar(Tensor[] self, Scalar scalar) -> Tensor[] + inline ::std::vector _foreach_maximum(c10::DispatchKeySet dispatchKeySet, at::TensorList self, const at::Scalar & scalar) { + return at::_ops::_foreach_maximum_Scalar::redispatch(dispatchKeySet, self, scalar); + } + + // aten::_foreach_maximum_.Scalar(Tensor(a!)[] self, Scalar scalar) -> () + inline void _foreach_maximum_(c10::DispatchKeySet dispatchKeySet, at::TensorList self, const at::Scalar & scalar) { + return at::_ops::_foreach_maximum__Scalar::redispatch(dispatchKeySet, self, scalar); + } + + // aten::_foreach_maximum.List(Tensor[] self, Tensor[] other) -> Tensor[] + inline ::std::vector _foreach_maximum(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList other) { + return at::_ops::_foreach_maximum_List::redispatch(dispatchKeySet, self, other); + } + + // aten::_foreach_maximum_.List(Tensor(a!)[] self, Tensor[] other) -> () + inline void _foreach_maximum_(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList other) { + return at::_ops::_foreach_maximum__List::redispatch(dispatchKeySet, self, other); + } + + // aten::_foreach_maximum.ScalarList(Tensor[] self, Scalar[] scalars) -> Tensor[] + inline ::std::vector _foreach_maximum(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::ArrayRef scalars) { + return at::_ops::_foreach_maximum_ScalarList::redispatch(dispatchKeySet, self, scalars); + } + + // aten::_foreach_maximum_.ScalarList(Tensor(a!)[] self, Scalar[] scalars) -> () + inline void _foreach_maximum_(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::ArrayRef scalars) { + return at::_ops::_foreach_maximum__ScalarList::redispatch(dispatchKeySet, self, scalars); + } + + // aten::_foreach_minimum.Scalar(Tensor[] self, Scalar scalar) -> Tensor[] + inline ::std::vector _foreach_minimum(c10::DispatchKeySet dispatchKeySet, at::TensorList self, const at::Scalar & scalar) { + return at::_ops::_foreach_minimum_Scalar::redispatch(dispatchKeySet, self, scalar); + } + + // aten::_foreach_minimum_.Scalar(Tensor(a!)[] self, Scalar scalar) -> () + inline void _foreach_minimum_(c10::DispatchKeySet dispatchKeySet, at::TensorList self, const at::Scalar & scalar) { + return at::_ops::_foreach_minimum__Scalar::redispatch(dispatchKeySet, self, scalar); + } + + // aten::_foreach_minimum.List(Tensor[] self, Tensor[] other) -> Tensor[] + inline ::std::vector _foreach_minimum(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList other) { + return at::_ops::_foreach_minimum_List::redispatch(dispatchKeySet, self, other); + } + + // aten::_foreach_minimum_.List(Tensor(a!)[] self, Tensor[] other) -> () + inline void _foreach_minimum_(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList other) { + return at::_ops::_foreach_minimum__List::redispatch(dispatchKeySet, self, other); + } + + // aten::_foreach_minimum.ScalarList(Tensor[] self, Scalar[] scalars) -> Tensor[] + inline ::std::vector _foreach_minimum(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::ArrayRef scalars) { + return at::_ops::_foreach_minimum_ScalarList::redispatch(dispatchKeySet, self, scalars); + } + + // aten::_foreach_minimum_.ScalarList(Tensor(a!)[] self, Scalar[] scalars) -> () + inline void _foreach_minimum_(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::ArrayRef scalars) { + return at::_ops::_foreach_minimum__ScalarList::redispatch(dispatchKeySet, self, scalars); + } + + // aten::_foreach_addcdiv.Scalar(Tensor[] self, Tensor[] tensor1, Tensor[] tensor2, Scalar value=1) -> Tensor[] + inline ::std::vector _foreach_addcdiv(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList tensor1, at::TensorList tensor2, const at::Scalar & value=1) { + return at::_ops::_foreach_addcdiv_Scalar::redispatch(dispatchKeySet, self, tensor1, tensor2, value); + } + + // aten::_foreach_addcdiv.ScalarList(Tensor[] self, Tensor[] tensor1, Tensor[] tensor2, Scalar[] scalars) -> Tensor[] + inline ::std::vector _foreach_addcdiv(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList tensor1, at::TensorList tensor2, at::ArrayRef scalars) { + return at::_ops::_foreach_addcdiv_ScalarList::redispatch(dispatchKeySet, self, tensor1, tensor2, scalars); + } + + // aten::_foreach_addcdiv.Tensor(Tensor[] self, Tensor[] tensor1, Tensor[] tensor2, Tensor scalars) -> Tensor[] + inline ::std::vector _foreach_addcdiv(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList tensor1, at::TensorList tensor2, const at::Tensor & scalars) { + return at::_ops::_foreach_addcdiv_Tensor::redispatch(dispatchKeySet, self, tensor1, tensor2, scalars); + } + + // aten::_foreach_addcdiv_.Scalar(Tensor(a!)[] self, Tensor[] tensor1, Tensor[] tensor2, Scalar value=1) -> () + inline void _foreach_addcdiv_(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList tensor1, at::TensorList tensor2, const at::Scalar & value=1) { + return at::_ops::_foreach_addcdiv__Scalar::redispatch(dispatchKeySet, self, tensor1, tensor2, value); + } + + // aten::_foreach_addcdiv_.ScalarList(Tensor(a!)[] self, Tensor[] tensor1, Tensor[] tensor2, Scalar[] scalars) -> () + inline void _foreach_addcdiv_(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList tensor1, at::TensorList tensor2, at::ArrayRef scalars) { + return at::_ops::_foreach_addcdiv__ScalarList::redispatch(dispatchKeySet, self, tensor1, tensor2, scalars); + } + + // aten::_foreach_addcdiv_.Tensor(Tensor(a!)[] self, Tensor[] tensor1, Tensor[] tensor2, Tensor scalars) -> () + inline void _foreach_addcdiv_(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList tensor1, at::TensorList tensor2, const at::Tensor & scalars) { + return at::_ops::_foreach_addcdiv__Tensor::redispatch(dispatchKeySet, self, tensor1, tensor2, scalars); + } + + // aten::_foreach_addcmul.Scalar(Tensor[] self, Tensor[] tensor1, Tensor[] tensor2, Scalar value=1) -> Tensor[] + inline ::std::vector _foreach_addcmul(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList tensor1, at::TensorList tensor2, const at::Scalar & value=1) { + return at::_ops::_foreach_addcmul_Scalar::redispatch(dispatchKeySet, self, tensor1, tensor2, value); + } + + // aten::_foreach_addcmul.ScalarList(Tensor[] self, Tensor[] tensor1, Tensor[] tensor2, Scalar[] scalars) -> Tensor[] + inline ::std::vector _foreach_addcmul(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList tensor1, at::TensorList tensor2, at::ArrayRef scalars) { + return at::_ops::_foreach_addcmul_ScalarList::redispatch(dispatchKeySet, self, tensor1, tensor2, scalars); + } + + // aten::_foreach_addcmul.Tensor(Tensor[] self, Tensor[] tensor1, Tensor[] tensor2, Tensor scalars) -> Tensor[] + inline ::std::vector _foreach_addcmul(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList tensor1, at::TensorList tensor2, const at::Tensor & scalars) { + return at::_ops::_foreach_addcmul_Tensor::redispatch(dispatchKeySet, self, tensor1, tensor2, scalars); + } + + // aten::_foreach_addcmul_.Scalar(Tensor(a!)[] self, Tensor[] tensor1, Tensor[] tensor2, Scalar value=1) -> () + inline void _foreach_addcmul_(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList tensor1, at::TensorList tensor2, const at::Scalar & value=1) { + return at::_ops::_foreach_addcmul__Scalar::redispatch(dispatchKeySet, self, tensor1, tensor2, value); + } + + // aten::_foreach_addcmul_.ScalarList(Tensor(a!)[] self, Tensor[] tensor1, Tensor[] tensor2, Scalar[] scalars) -> () + inline void _foreach_addcmul_(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList tensor1, at::TensorList tensor2, at::ArrayRef scalars) { + return at::_ops::_foreach_addcmul__ScalarList::redispatch(dispatchKeySet, self, tensor1, tensor2, scalars); + } + + // aten::_foreach_addcmul_.Tensor(Tensor(a!)[] self, Tensor[] tensor1, Tensor[] tensor2, Tensor scalars) -> () + inline void _foreach_addcmul_(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList tensor1, at::TensorList tensor2, const at::Tensor & scalars) { + return at::_ops::_foreach_addcmul__Tensor::redispatch(dispatchKeySet, self, tensor1, tensor2, scalars); + } + + // aten::_foreach_abs(Tensor[] self) -> Tensor[] + inline ::std::vector _foreach_abs(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_abs::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_abs_(Tensor(a!)[] self) -> () + inline void _foreach_abs_(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_abs_::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_acos(Tensor[] self) -> Tensor[] + inline ::std::vector _foreach_acos(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_acos::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_acos_(Tensor(a!)[] self) -> () + inline void _foreach_acos_(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_acos_::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_asin(Tensor[] self) -> Tensor[] + inline ::std::vector _foreach_asin(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_asin::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_asin_(Tensor(a!)[] self) -> () + inline void _foreach_asin_(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_asin_::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_atan(Tensor[] self) -> Tensor[] + inline ::std::vector _foreach_atan(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_atan::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_atan_(Tensor(a!)[] self) -> () + inline void _foreach_atan_(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_atan_::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_ceil(Tensor[] self) -> Tensor[] + inline ::std::vector _foreach_ceil(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_ceil::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_ceil_(Tensor(a!)[] self) -> () + inline void _foreach_ceil_(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_ceil_::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_cos(Tensor[] self) -> Tensor[] + inline ::std::vector _foreach_cos(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_cos::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_cos_(Tensor(a!)[] self) -> () + inline void _foreach_cos_(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_cos_::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_cosh(Tensor[] self) -> Tensor[] + inline ::std::vector _foreach_cosh(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_cosh::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_cosh_(Tensor(a!)[] self) -> () + inline void _foreach_cosh_(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_cosh_::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_erf(Tensor[] self) -> Tensor[] + inline ::std::vector _foreach_erf(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_erf::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_erf_(Tensor(a!)[] self) -> () + inline void _foreach_erf_(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_erf_::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_erfc(Tensor[] self) -> Tensor[] + inline ::std::vector _foreach_erfc(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_erfc::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_erfc_(Tensor(a!)[] self) -> () + inline void _foreach_erfc_(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_erfc_::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_exp(Tensor[] self) -> Tensor[] + inline ::std::vector _foreach_exp(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_exp::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_exp_(Tensor(a!)[] self) -> () + inline void _foreach_exp_(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_exp_::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_expm1(Tensor[] self) -> Tensor[] + inline ::std::vector _foreach_expm1(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_expm1::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_expm1_(Tensor(a!)[] self) -> () + inline void _foreach_expm1_(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_expm1_::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_floor(Tensor[] self) -> Tensor[] + inline ::std::vector _foreach_floor(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_floor::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_floor_(Tensor(a!)[] self) -> () + inline void _foreach_floor_(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_floor_::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_frac(Tensor[] self) -> Tensor[] + inline ::std::vector _foreach_frac(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_frac::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_frac_(Tensor(a!)[] self) -> () + inline void _foreach_frac_(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_frac_::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_lerp.List(Tensor[] self, Tensor[] tensors1, Tensor[] weights) -> Tensor[] + inline ::std::vector _foreach_lerp(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList tensors1, at::TensorList weights) { + return at::_ops::_foreach_lerp_List::redispatch(dispatchKeySet, self, tensors1, weights); + } + + // aten::_foreach_lerp_.List(Tensor(a!)[] self, Tensor[] tensors1, Tensor[] weights) -> () + inline void _foreach_lerp_(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList tensors1, at::TensorList weights) { + return at::_ops::_foreach_lerp__List::redispatch(dispatchKeySet, self, tensors1, weights); + } + + // aten::_foreach_lerp.Scalar(Tensor[] self, Tensor[] tensors1, Scalar weight) -> Tensor[] + inline ::std::vector _foreach_lerp(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList tensors1, const at::Scalar & weight) { + return at::_ops::_foreach_lerp_Scalar::redispatch(dispatchKeySet, self, tensors1, weight); + } + + // aten::_foreach_lerp_.Scalar(Tensor(a!)[] self, Tensor[] tensors1, Scalar weight) -> () + inline void _foreach_lerp_(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList tensors1, const at::Scalar & weight) { + return at::_ops::_foreach_lerp__Scalar::redispatch(dispatchKeySet, self, tensors1, weight); + } + + // aten::_foreach_lgamma(Tensor[] self) -> Tensor[] + inline ::std::vector _foreach_lgamma(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_lgamma::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_lgamma_(Tensor(a!)[] self) -> () + inline void _foreach_lgamma_(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_lgamma_::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_log(Tensor[] self) -> Tensor[] + inline ::std::vector _foreach_log(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_log::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_log_(Tensor(a!)[] self) -> () + inline void _foreach_log_(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_log_::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_log10(Tensor[] self) -> Tensor[] + inline ::std::vector _foreach_log10(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_log10::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_log10_(Tensor(a!)[] self) -> () + inline void _foreach_log10_(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_log10_::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_log1p(Tensor[] self) -> Tensor[] + inline ::std::vector _foreach_log1p(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_log1p::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_log1p_(Tensor(a!)[] self) -> () + inline void _foreach_log1p_(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_log1p_::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_log2(Tensor[] self) -> Tensor[] + inline ::std::vector _foreach_log2(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_log2::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_log2_(Tensor(a!)[] self) -> () + inline void _foreach_log2_(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_log2_::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_neg(Tensor[] self) -> Tensor[] + inline ::std::vector _foreach_neg(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_neg::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_neg_(Tensor(a!)[] self) -> () + inline void _foreach_neg_(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_neg_::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_norm.Scalar(Tensor[] self, Scalar ord=2) -> Tensor[] + inline ::std::vector _foreach_norm(c10::DispatchKeySet dispatchKeySet, at::TensorList self, const at::Scalar & ord=2) { + return at::_ops::_foreach_norm_Scalar::redispatch(dispatchKeySet, self, ord); + } + + // aten::_foreach_pow.List(Tensor[] self, Tensor[] exponent) -> Tensor[] + inline ::std::vector _foreach_pow(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList exponent) { + return at::_ops::_foreach_pow_List::redispatch(dispatchKeySet, self, exponent); + } + + // aten::_foreach_pow.Scalar(Tensor[] self, Scalar exponent) -> Tensor[] + inline ::std::vector _foreach_pow(c10::DispatchKeySet dispatchKeySet, at::TensorList self, const at::Scalar & exponent) { + return at::_ops::_foreach_pow_Scalar::redispatch(dispatchKeySet, self, exponent); + } + + // aten::_foreach_pow.ScalarList(Tensor[] self, Scalar[] exponent) -> Tensor[] + inline ::std::vector _foreach_pow(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::ArrayRef exponent) { + return at::_ops::_foreach_pow_ScalarList::redispatch(dispatchKeySet, self, exponent); + } + + // aten::_foreach_pow.ScalarAndTensor(Scalar self, Tensor[] exponent) -> Tensor[] + inline ::std::vector _foreach_pow(c10::DispatchKeySet dispatchKeySet, const at::Scalar & self, at::TensorList exponent) { + return at::_ops::_foreach_pow_ScalarAndTensor::redispatch(dispatchKeySet, self, exponent); + } + + // aten::_foreach_pow_.List(Tensor(a!)[] self, Tensor[] exponent) -> () + inline void _foreach_pow_(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList exponent) { + return at::_ops::_foreach_pow__List::redispatch(dispatchKeySet, self, exponent); + } + + // aten::_foreach_pow_.Scalar(Tensor(a!)[] self, Scalar exponent) -> () + inline void _foreach_pow_(c10::DispatchKeySet dispatchKeySet, at::TensorList self, const at::Scalar & exponent) { + return at::_ops::_foreach_pow__Scalar::redispatch(dispatchKeySet, self, exponent); + } + + // aten::_foreach_pow_.ScalarList(Tensor(a!)[] self, Scalar[] exponent) -> () + inline void _foreach_pow_(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::ArrayRef exponent) { + return at::_ops::_foreach_pow__ScalarList::redispatch(dispatchKeySet, self, exponent); + } + + // aten::_foreach_reciprocal(Tensor[] self) -> Tensor[] + inline ::std::vector _foreach_reciprocal(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_reciprocal::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_reciprocal_(Tensor(a!)[] self) -> () + inline void _foreach_reciprocal_(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_reciprocal_::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_round(Tensor[] self) -> Tensor[] + inline ::std::vector _foreach_round(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_round::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_round_(Tensor(a!)[] self) -> () + inline void _foreach_round_(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_round_::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_sigmoid(Tensor[] self) -> Tensor[] + inline ::std::vector _foreach_sigmoid(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_sigmoid::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_sigmoid_(Tensor(a!)[] self) -> () + inline void _foreach_sigmoid_(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_sigmoid_::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_sign(Tensor[] self) -> Tensor[] + inline ::std::vector _foreach_sign(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_sign::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_sign_(Tensor(a!)[] self) -> () + inline void _foreach_sign_(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_sign_::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_sin(Tensor[] self) -> Tensor[] + inline ::std::vector _foreach_sin(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_sin::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_sin_(Tensor(a!)[] self) -> () + inline void _foreach_sin_(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_sin_::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_sinh(Tensor[] self) -> Tensor[] + inline ::std::vector _foreach_sinh(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_sinh::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_sinh_(Tensor(a!)[] self) -> () + inline void _foreach_sinh_(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_sinh_::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_sqrt(Tensor[] self) -> Tensor[] + inline ::std::vector _foreach_sqrt(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_sqrt::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_sqrt_(Tensor(a!)[] self) -> () + inline void _foreach_sqrt_(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_sqrt_::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_tan(Tensor[] self) -> Tensor[] + inline ::std::vector _foreach_tan(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_tan::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_tan_(Tensor(a!)[] self) -> () + inline void _foreach_tan_(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_tan_::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_tanh(Tensor[] self) -> Tensor[] + inline ::std::vector _foreach_tanh(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_tanh::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_tanh_(Tensor(a!)[] self) -> () + inline void _foreach_tanh_(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_tanh_::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_trunc(Tensor[] self) -> Tensor[] + inline ::std::vector _foreach_trunc(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_trunc::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_trunc_(Tensor(a!)[] self) -> () + inline void _foreach_trunc_(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_trunc_::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_zero_(Tensor(a!)[] self) -> () + inline void _foreach_zero_(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_zero_::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_copy_(Tensor(a!)[] self, Tensor[] src, bool non_blocking=False) -> () + inline void _foreach_copy_(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList src, bool non_blocking=false) { + return at::_ops::_foreach_copy_::redispatch(dispatchKeySet, self, src, non_blocking); + } + + // aten::bucketize.Tensor(Tensor self, Tensor boundaries, *, bool out_int32=False, bool right=False) -> Tensor + inline at::Tensor bucketize(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & boundaries, bool out_int32=false, bool right=false) { + return at::_ops::bucketize_Tensor::redispatch(dispatchKeySet, self, boundaries, out_int32, right); + } + + // aten::bucketize.Tensor_out(Tensor self, Tensor boundaries, *, bool out_int32=False, bool right=False, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & bucketize_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & boundaries, bool out_int32=false, bool right=false) { + return at::_ops::bucketize_Tensor_out::redispatch(dispatchKeySet, self, boundaries, out_int32, right, out); + } + + // aten::bucketize.Tensor_out(Tensor self, Tensor boundaries, *, bool out_int32=False, bool right=False, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & bucketize_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & boundaries, bool out_int32, bool right, at::Tensor & out) { + return at::_ops::bucketize_Tensor_out::redispatch(dispatchKeySet, self, boundaries, out_int32, right, out); + } + + // aten::bucketize.Scalar(Scalar self, Tensor boundaries, *, bool out_int32=False, bool right=False) -> Tensor + inline at::Tensor bucketize(c10::DispatchKeySet dispatchKeySet, const at::Scalar & self, const at::Tensor & boundaries, bool out_int32=false, bool right=false) { + return at::_ops::bucketize_Scalar::redispatch(dispatchKeySet, self, boundaries, out_int32, right); + } + + // aten::searchsorted.Tensor(Tensor sorted_sequence, Tensor self, *, bool out_int32=False, bool right=False, str? side=None, Tensor? sorter=None) -> Tensor + inline at::Tensor searchsorted(c10::DispatchKeySet dispatchKeySet, const at::Tensor & sorted_sequence, const at::Tensor & self, bool out_int32=false, bool right=false, c10::optional side=c10::nullopt, const c10::optional & sorter={}) { + return at::_ops::searchsorted_Tensor::redispatch(dispatchKeySet, sorted_sequence, self, out_int32, right, side, sorter); + } + + // aten::searchsorted.Tensor_out(Tensor sorted_sequence, Tensor self, *, bool out_int32=False, bool right=False, str? side=None, Tensor? sorter=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & searchsorted_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & sorted_sequence, const at::Tensor & self, bool out_int32=false, bool right=false, c10::optional side=c10::nullopt, const c10::optional & sorter={}) { + return at::_ops::searchsorted_Tensor_out::redispatch(dispatchKeySet, sorted_sequence, self, out_int32, right, side, sorter, out); + } + + // aten::searchsorted.Tensor_out(Tensor sorted_sequence, Tensor self, *, bool out_int32=False, bool right=False, str? side=None, Tensor? sorter=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & searchsorted_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & sorted_sequence, const at::Tensor & self, bool out_int32, bool right, c10::optional side, const c10::optional & sorter, at::Tensor & out) { + return at::_ops::searchsorted_Tensor_out::redispatch(dispatchKeySet, sorted_sequence, self, out_int32, right, side, sorter, out); + } + + // aten::searchsorted.Scalar(Tensor sorted_sequence, Scalar self, *, bool out_int32=False, bool right=False, str? side=None, Tensor? sorter=None) -> Tensor + inline at::Tensor searchsorted(c10::DispatchKeySet dispatchKeySet, const at::Tensor & sorted_sequence, const at::Scalar & self, bool out_int32=false, bool right=false, c10::optional side=c10::nullopt, const c10::optional & sorter={}) { + return at::_ops::searchsorted_Scalar::redispatch(dispatchKeySet, sorted_sequence, self, out_int32, right, side, sorter); + } + + // aten::searchsorted.Scalar_out(Tensor sorted_sequence, Scalar self, *, bool out_int32=False, bool right=False, str? side=None, Tensor? sorter=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & searchsorted_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & sorted_sequence, const at::Scalar & self, bool out_int32=false, bool right=false, c10::optional side=c10::nullopt, const c10::optional & sorter={}) { + return at::_ops::searchsorted_Scalar_out::redispatch(dispatchKeySet, sorted_sequence, self, out_int32, right, side, sorter, out); + } + + // aten::searchsorted.Scalar_out(Tensor sorted_sequence, Scalar self, *, bool out_int32=False, bool right=False, str? side=None, Tensor? sorter=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & searchsorted_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & sorted_sequence, const at::Scalar & self, bool out_int32, bool right, c10::optional side, const c10::optional & sorter, at::Tensor & out) { + return at::_ops::searchsorted_Scalar_out::redispatch(dispatchKeySet, sorted_sequence, self, out_int32, right, side, sorter, out); + } + + // aten::_convert_indices_from_coo_to_csr(Tensor self, int size, *, bool out_int32=False) -> Tensor + inline at::Tensor _convert_indices_from_coo_to_csr(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t size, bool out_int32=false) { + return at::_ops::_convert_indices_from_coo_to_csr::redispatch(dispatchKeySet, self, size, out_int32); + } + + // aten::_convert_indices_from_coo_to_csr.out(Tensor self, int size, *, bool out_int32=False, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _convert_indices_from_coo_to_csr_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t size, bool out_int32=false) { + return at::_ops::_convert_indices_from_coo_to_csr_out::redispatch(dispatchKeySet, self, size, out_int32, out); + } + + // aten::_convert_indices_from_coo_to_csr.out(Tensor self, int size, *, bool out_int32=False, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _convert_indices_from_coo_to_csr_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t size, bool out_int32, at::Tensor & out) { + return at::_ops::_convert_indices_from_coo_to_csr_out::redispatch(dispatchKeySet, self, size, out_int32, out); + } + + // aten::_convert_indices_from_csr_to_coo(Tensor crow_indices, Tensor col_indices, *, bool out_int32=False, bool transpose=False) -> Tensor + inline at::Tensor _convert_indices_from_csr_to_coo(c10::DispatchKeySet dispatchKeySet, const at::Tensor & crow_indices, const at::Tensor & col_indices, bool out_int32=false, bool transpose=false) { + return at::_ops::_convert_indices_from_csr_to_coo::redispatch(dispatchKeySet, crow_indices, col_indices, out_int32, transpose); + } + + // aten::_convert_indices_from_csr_to_coo.out(Tensor crow_indices, Tensor col_indices, *, bool out_int32=False, bool transpose=False, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _convert_indices_from_csr_to_coo_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & crow_indices, const at::Tensor & col_indices, bool out_int32=false, bool transpose=false) { + return at::_ops::_convert_indices_from_csr_to_coo_out::redispatch(dispatchKeySet, crow_indices, col_indices, out_int32, transpose, out); + } + + // aten::_convert_indices_from_csr_to_coo.out(Tensor crow_indices, Tensor col_indices, *, bool out_int32=False, bool transpose=False, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _convert_indices_from_csr_to_coo_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & crow_indices, const at::Tensor & col_indices, bool out_int32, bool transpose, at::Tensor & out) { + return at::_ops::_convert_indices_from_csr_to_coo_out::redispatch(dispatchKeySet, crow_indices, col_indices, out_int32, transpose, out); + } + + // aten::mse_loss.out(Tensor self, Tensor target, int reduction=Mean, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & mse_loss_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & target, int64_t reduction=at::Reduction::Mean) { + return at::_ops::mse_loss_out::redispatch(dispatchKeySet, self, target, reduction, out); + } + + // aten::mse_loss.out(Tensor self, Tensor target, int reduction=Mean, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & mse_loss_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & target, int64_t reduction, at::Tensor & out) { + return at::_ops::mse_loss_out::redispatch(dispatchKeySet, self, target, reduction, out); + } + + // aten::mse_loss(Tensor self, Tensor target, int reduction=Mean) -> Tensor + inline at::Tensor mse_loss(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & target, int64_t reduction=at::Reduction::Mean) { + return at::_ops::mse_loss::redispatch(dispatchKeySet, self, target, reduction); + } + + // aten::mse_loss_backward.grad_input(Tensor grad_output, Tensor self, Tensor target, int reduction, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & mse_loss_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & target, int64_t reduction) { + return at::_ops::mse_loss_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, target, reduction, grad_input); + } + + // aten::mse_loss_backward.grad_input(Tensor grad_output, Tensor self, Tensor target, int reduction, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & mse_loss_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & target, int64_t reduction, at::Tensor & grad_input) { + return at::_ops::mse_loss_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, target, reduction, grad_input); + } + + // aten::mse_loss_backward(Tensor grad_output, Tensor self, Tensor target, int reduction) -> Tensor + inline at::Tensor mse_loss_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & target, int64_t reduction) { + return at::_ops::mse_loss_backward::redispatch(dispatchKeySet, grad_output, self, target, reduction); + } + + // aten::l1_loss(Tensor self, Tensor target, int reduction=Mean) -> Tensor + inline at::Tensor l1_loss(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & target, int64_t reduction=at::Reduction::Mean) { + return at::_ops::l1_loss::redispatch(dispatchKeySet, self, target, reduction); + } + + // aten::multi_margin_loss.out(Tensor self, Tensor target, Scalar p=1, Scalar margin=1, Tensor? weight=None, int reduction=Mean, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & multi_margin_loss_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & target, const at::Scalar & p=1, const at::Scalar & margin=1, const c10::optional & weight={}, int64_t reduction=at::Reduction::Mean) { + return at::_ops::multi_margin_loss_out::redispatch(dispatchKeySet, self, target, p, margin, weight, reduction, out); + } + + // aten::multi_margin_loss.out(Tensor self, Tensor target, Scalar p=1, Scalar margin=1, Tensor? weight=None, int reduction=Mean, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & multi_margin_loss_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & target, const at::Scalar & p, const at::Scalar & margin, const c10::optional & weight, int64_t reduction, at::Tensor & out) { + return at::_ops::multi_margin_loss_out::redispatch(dispatchKeySet, self, target, p, margin, weight, reduction, out); + } + + // aten::multi_margin_loss(Tensor self, Tensor target, Scalar p=1, Scalar margin=1, Tensor? weight=None, int reduction=Mean) -> Tensor + inline at::Tensor multi_margin_loss(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & target, const at::Scalar & p=1, const at::Scalar & margin=1, const c10::optional & weight={}, int64_t reduction=at::Reduction::Mean) { + return at::_ops::multi_margin_loss::redispatch(dispatchKeySet, self, target, p, margin, weight, reduction); + } + + // aten::multi_margin_loss_backward.grad_input(Tensor grad_output, Tensor self, Tensor target, Scalar p, Scalar margin, Tensor? weight=None, int reduction=Mean, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & multi_margin_loss_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & target, const at::Scalar & p, const at::Scalar & margin, const c10::optional & weight={}, int64_t reduction=at::Reduction::Mean) { + return at::_ops::multi_margin_loss_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, target, p, margin, weight, reduction, grad_input); + } + + // aten::multi_margin_loss_backward.grad_input(Tensor grad_output, Tensor self, Tensor target, Scalar p, Scalar margin, Tensor? weight=None, int reduction=Mean, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & multi_margin_loss_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & target, const at::Scalar & p, const at::Scalar & margin, const c10::optional & weight, int64_t reduction, at::Tensor & grad_input) { + return at::_ops::multi_margin_loss_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, target, p, margin, weight, reduction, grad_input); + } + + // aten::multi_margin_loss_backward(Tensor grad_output, Tensor self, Tensor target, Scalar p, Scalar margin, Tensor? weight=None, int reduction=Mean) -> Tensor + inline at::Tensor multi_margin_loss_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & target, const at::Scalar & p, const at::Scalar & margin, const c10::optional & weight={}, int64_t reduction=at::Reduction::Mean) { + return at::_ops::multi_margin_loss_backward::redispatch(dispatchKeySet, grad_output, self, target, p, margin, weight, reduction); + } + + // aten::multilabel_margin_loss.out(Tensor self, Tensor target, int reduction=Mean, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & multilabel_margin_loss_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & target, int64_t reduction=at::Reduction::Mean) { + return at::_ops::multilabel_margin_loss_out::redispatch(dispatchKeySet, self, target, reduction, out); + } + + // aten::multilabel_margin_loss.out(Tensor self, Tensor target, int reduction=Mean, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & multilabel_margin_loss_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & target, int64_t reduction, at::Tensor & out) { + return at::_ops::multilabel_margin_loss_out::redispatch(dispatchKeySet, self, target, reduction, out); + } + + // aten::multilabel_margin_loss(Tensor self, Tensor target, int reduction=Mean) -> Tensor + inline at::Tensor multilabel_margin_loss(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & target, int64_t reduction=at::Reduction::Mean) { + return at::_ops::multilabel_margin_loss::redispatch(dispatchKeySet, self, target, reduction); + } + + // aten::multilabel_margin_loss_forward.output(Tensor self, Tensor target, int reduction, *, Tensor(a!) output, Tensor(b!) is_target) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple multilabel_margin_loss_forward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & output, at::Tensor & is_target, const at::Tensor & self, const at::Tensor & target, int64_t reduction) { + return at::_ops::multilabel_margin_loss_forward_output::redispatch(dispatchKeySet, self, target, reduction, output, is_target); + } + + // aten::multilabel_margin_loss_forward.output(Tensor self, Tensor target, int reduction, *, Tensor(a!) output, Tensor(b!) is_target) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple multilabel_margin_loss_forward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & target, int64_t reduction, at::Tensor & output, at::Tensor & is_target) { + return at::_ops::multilabel_margin_loss_forward_output::redispatch(dispatchKeySet, self, target, reduction, output, is_target); + } + + // aten::multilabel_margin_loss_forward(Tensor self, Tensor target, int reduction) -> (Tensor output, Tensor is_target) + inline ::std::tuple multilabel_margin_loss_forward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & target, int64_t reduction) { + return at::_ops::multilabel_margin_loss_forward::redispatch(dispatchKeySet, self, target, reduction); + } + + // aten::multilabel_margin_loss_backward.grad_input(Tensor grad_output, Tensor self, Tensor target, int reduction, Tensor is_target, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & multilabel_margin_loss_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & target, int64_t reduction, const at::Tensor & is_target) { + return at::_ops::multilabel_margin_loss_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, target, reduction, is_target, grad_input); + } + + // aten::multilabel_margin_loss_backward.grad_input(Tensor grad_output, Tensor self, Tensor target, int reduction, Tensor is_target, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & multilabel_margin_loss_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & target, int64_t reduction, const at::Tensor & is_target, at::Tensor & grad_input) { + return at::_ops::multilabel_margin_loss_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, target, reduction, is_target, grad_input); + } + + // aten::multilabel_margin_loss_backward(Tensor grad_output, Tensor self, Tensor target, int reduction, Tensor is_target) -> Tensor + inline at::Tensor multilabel_margin_loss_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & target, int64_t reduction, const at::Tensor & is_target) { + return at::_ops::multilabel_margin_loss_backward::redispatch(dispatchKeySet, grad_output, self, target, reduction, is_target); + } + + // aten::nll_loss.out(Tensor self, Tensor target, Tensor? weight=None, int reduction=Mean, SymInt ignore_index=-100, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & nll_loss_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & target, const c10::optional & weight={}, int64_t reduction=at::Reduction::Mean, int64_t ignore_index=-100) { + return at::_ops::nll_loss_out::redispatch(dispatchKeySet, self, target, weight, reduction, ignore_index, out); + } + + // aten::nll_loss.out(Tensor self, Tensor target, Tensor? weight=None, int reduction=Mean, SymInt ignore_index=-100, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & nll_loss_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & target, const c10::optional & weight, int64_t reduction, int64_t ignore_index, at::Tensor & out) { + return at::_ops::nll_loss_out::redispatch(dispatchKeySet, self, target, weight, reduction, ignore_index, out); + } + + // aten::nll_loss.out(Tensor self, Tensor target, Tensor? weight=None, int reduction=Mean, SymInt ignore_index=-100, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & nll_loss_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & target, const c10::optional & weight={}, int64_t reduction=at::Reduction::Mean, c10::SymInt ignore_index=-100) { + return at::_ops::nll_loss_out::redispatch(dispatchKeySet, self, target, weight, reduction, ignore_index, out); + } + + // aten::nll_loss.out(Tensor self, Tensor target, Tensor? weight=None, int reduction=Mean, SymInt ignore_index=-100, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & nll_loss_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & target, const c10::optional & weight, int64_t reduction, c10::SymInt ignore_index, at::Tensor & out) { + return at::_ops::nll_loss_out::redispatch(dispatchKeySet, self, target, weight, reduction, ignore_index, out); + } + + // aten::nll_loss_nd(Tensor self, Tensor target, Tensor? weight=None, int reduction=Mean, SymInt ignore_index=-100) -> Tensor + inline at::Tensor nll_loss_nd(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & target, const c10::optional & weight={}, int64_t reduction=at::Reduction::Mean, int64_t ignore_index=-100) { + return at::_ops::nll_loss_nd::redispatch(dispatchKeySet, self, target, weight, reduction, ignore_index); + } + + // aten::nll_loss_nd(Tensor self, Tensor target, Tensor? weight=None, int reduction=Mean, SymInt ignore_index=-100) -> Tensor + inline at::Tensor nll_loss_nd_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & target, const c10::optional & weight={}, int64_t reduction=at::Reduction::Mean, c10::SymInt ignore_index=-100) { + return at::_ops::nll_loss_nd::redispatch(dispatchKeySet, self, target, weight, reduction, ignore_index); + } + + // aten::nll_loss(Tensor self, Tensor target, Tensor? weight=None, int reduction=Mean, SymInt ignore_index=-100) -> Tensor + inline at::Tensor nll_loss(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & target, const c10::optional & weight={}, int64_t reduction=at::Reduction::Mean, int64_t ignore_index=-100) { + return at::_ops::nll_loss::redispatch(dispatchKeySet, self, target, weight, reduction, ignore_index); + } + + // aten::nll_loss(Tensor self, Tensor target, Tensor? weight=None, int reduction=Mean, SymInt ignore_index=-100) -> Tensor + inline at::Tensor nll_loss_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & target, const c10::optional & weight={}, int64_t reduction=at::Reduction::Mean, c10::SymInt ignore_index=-100) { + return at::_ops::nll_loss::redispatch(dispatchKeySet, self, target, weight, reduction, ignore_index); + } + + // aten::nll_loss_forward.output(Tensor self, Tensor target, Tensor? weight, int reduction, SymInt ignore_index, *, Tensor(a!) output, Tensor(b!) total_weight) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple nll_loss_forward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & output, at::Tensor & total_weight, const at::Tensor & self, const at::Tensor & target, const c10::optional & weight, int64_t reduction, int64_t ignore_index) { + return at::_ops::nll_loss_forward_output::redispatch(dispatchKeySet, self, target, weight, reduction, ignore_index, output, total_weight); + } + + // aten::nll_loss_forward.output(Tensor self, Tensor target, Tensor? weight, int reduction, SymInt ignore_index, *, Tensor(a!) output, Tensor(b!) total_weight) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple nll_loss_forward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & target, const c10::optional & weight, int64_t reduction, int64_t ignore_index, at::Tensor & output, at::Tensor & total_weight) { + return at::_ops::nll_loss_forward_output::redispatch(dispatchKeySet, self, target, weight, reduction, ignore_index, output, total_weight); + } + + // aten::nll_loss_forward.output(Tensor self, Tensor target, Tensor? weight, int reduction, SymInt ignore_index, *, Tensor(a!) output, Tensor(b!) total_weight) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple nll_loss_forward_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & output, at::Tensor & total_weight, const at::Tensor & self, const at::Tensor & target, const c10::optional & weight, int64_t reduction, c10::SymInt ignore_index) { + return at::_ops::nll_loss_forward_output::redispatch(dispatchKeySet, self, target, weight, reduction, ignore_index, output, total_weight); + } + + // aten::nll_loss_forward.output(Tensor self, Tensor target, Tensor? weight, int reduction, SymInt ignore_index, *, Tensor(a!) output, Tensor(b!) total_weight) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple nll_loss_forward_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & target, const c10::optional & weight, int64_t reduction, c10::SymInt ignore_index, at::Tensor & output, at::Tensor & total_weight) { + return at::_ops::nll_loss_forward_output::redispatch(dispatchKeySet, self, target, weight, reduction, ignore_index, output, total_weight); + } + + // aten::nll_loss_forward(Tensor self, Tensor target, Tensor? weight, int reduction, SymInt ignore_index) -> (Tensor output, Tensor total_weight) + inline ::std::tuple nll_loss_forward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & target, const c10::optional & weight, int64_t reduction, int64_t ignore_index) { + return at::_ops::nll_loss_forward::redispatch(dispatchKeySet, self, target, weight, reduction, ignore_index); + } + + // aten::nll_loss_forward(Tensor self, Tensor target, Tensor? weight, int reduction, SymInt ignore_index) -> (Tensor output, Tensor total_weight) + inline ::std::tuple nll_loss_forward_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & target, const c10::optional & weight, int64_t reduction, c10::SymInt ignore_index) { + return at::_ops::nll_loss_forward::redispatch(dispatchKeySet, self, target, weight, reduction, ignore_index); + } + + // aten::nll_loss_backward.grad_input(Tensor grad_output, Tensor self, Tensor target, Tensor? weight, int reduction, SymInt ignore_index, Tensor total_weight, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & nll_loss_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & target, const c10::optional & weight, int64_t reduction, int64_t ignore_index, const at::Tensor & total_weight) { + return at::_ops::nll_loss_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, target, weight, reduction, ignore_index, total_weight, grad_input); + } + + // aten::nll_loss_backward.grad_input(Tensor grad_output, Tensor self, Tensor target, Tensor? weight, int reduction, SymInt ignore_index, Tensor total_weight, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & nll_loss_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & target, const c10::optional & weight, int64_t reduction, int64_t ignore_index, const at::Tensor & total_weight, at::Tensor & grad_input) { + return at::_ops::nll_loss_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, target, weight, reduction, ignore_index, total_weight, grad_input); + } + + // aten::nll_loss_backward.grad_input(Tensor grad_output, Tensor self, Tensor target, Tensor? weight, int reduction, SymInt ignore_index, Tensor total_weight, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & nll_loss_backward_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & target, const c10::optional & weight, int64_t reduction, c10::SymInt ignore_index, const at::Tensor & total_weight) { + return at::_ops::nll_loss_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, target, weight, reduction, ignore_index, total_weight, grad_input); + } + + // aten::nll_loss_backward.grad_input(Tensor grad_output, Tensor self, Tensor target, Tensor? weight, int reduction, SymInt ignore_index, Tensor total_weight, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & nll_loss_backward_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & target, const c10::optional & weight, int64_t reduction, c10::SymInt ignore_index, const at::Tensor & total_weight, at::Tensor & grad_input) { + return at::_ops::nll_loss_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, target, weight, reduction, ignore_index, total_weight, grad_input); + } + + // aten::nll_loss_backward(Tensor grad_output, Tensor self, Tensor target, Tensor? weight, int reduction, SymInt ignore_index, Tensor total_weight) -> Tensor + inline at::Tensor nll_loss_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & target, const c10::optional & weight, int64_t reduction, int64_t ignore_index, const at::Tensor & total_weight) { + return at::_ops::nll_loss_backward::redispatch(dispatchKeySet, grad_output, self, target, weight, reduction, ignore_index, total_weight); + } + + // aten::nll_loss_backward(Tensor grad_output, Tensor self, Tensor target, Tensor? weight, int reduction, SymInt ignore_index, Tensor total_weight) -> Tensor + inline at::Tensor nll_loss_backward_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & target, const c10::optional & weight, int64_t reduction, c10::SymInt ignore_index, const at::Tensor & total_weight) { + return at::_ops::nll_loss_backward::redispatch(dispatchKeySet, grad_output, self, target, weight, reduction, ignore_index, total_weight); + } + + // aten::nll_loss2d.out(Tensor self, Tensor target, Tensor? weight=None, int reduction=Mean, SymInt ignore_index=-100, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & nll_loss2d_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & target, const c10::optional & weight={}, int64_t reduction=at::Reduction::Mean, int64_t ignore_index=-100) { + return at::_ops::nll_loss2d_out::redispatch(dispatchKeySet, self, target, weight, reduction, ignore_index, out); + } + + // aten::nll_loss2d.out(Tensor self, Tensor target, Tensor? weight=None, int reduction=Mean, SymInt ignore_index=-100, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & nll_loss2d_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & target, const c10::optional & weight, int64_t reduction, int64_t ignore_index, at::Tensor & out) { + return at::_ops::nll_loss2d_out::redispatch(dispatchKeySet, self, target, weight, reduction, ignore_index, out); + } + + // aten::nll_loss2d.out(Tensor self, Tensor target, Tensor? weight=None, int reduction=Mean, SymInt ignore_index=-100, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & nll_loss2d_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & target, const c10::optional & weight={}, int64_t reduction=at::Reduction::Mean, c10::SymInt ignore_index=-100) { + return at::_ops::nll_loss2d_out::redispatch(dispatchKeySet, self, target, weight, reduction, ignore_index, out); + } + + // aten::nll_loss2d.out(Tensor self, Tensor target, Tensor? weight=None, int reduction=Mean, SymInt ignore_index=-100, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & nll_loss2d_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & target, const c10::optional & weight, int64_t reduction, c10::SymInt ignore_index, at::Tensor & out) { + return at::_ops::nll_loss2d_out::redispatch(dispatchKeySet, self, target, weight, reduction, ignore_index, out); + } + + // aten::nll_loss2d(Tensor self, Tensor target, Tensor? weight=None, int reduction=Mean, SymInt ignore_index=-100) -> Tensor + inline at::Tensor nll_loss2d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & target, const c10::optional & weight={}, int64_t reduction=at::Reduction::Mean, int64_t ignore_index=-100) { + return at::_ops::nll_loss2d::redispatch(dispatchKeySet, self, target, weight, reduction, ignore_index); + } + + // aten::nll_loss2d(Tensor self, Tensor target, Tensor? weight=None, int reduction=Mean, SymInt ignore_index=-100) -> Tensor + inline at::Tensor nll_loss2d_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & target, const c10::optional & weight={}, int64_t reduction=at::Reduction::Mean, c10::SymInt ignore_index=-100) { + return at::_ops::nll_loss2d::redispatch(dispatchKeySet, self, target, weight, reduction, ignore_index); + } + + // aten::nll_loss2d_forward.output(Tensor self, Tensor target, Tensor? weight, int reduction, SymInt ignore_index, *, Tensor(a!) output, Tensor(b!) total_weight) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple nll_loss2d_forward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & output, at::Tensor & total_weight, const at::Tensor & self, const at::Tensor & target, const c10::optional & weight, int64_t reduction, int64_t ignore_index) { + return at::_ops::nll_loss2d_forward_output::redispatch(dispatchKeySet, self, target, weight, reduction, ignore_index, output, total_weight); + } + + // aten::nll_loss2d_forward.output(Tensor self, Tensor target, Tensor? weight, int reduction, SymInt ignore_index, *, Tensor(a!) output, Tensor(b!) total_weight) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple nll_loss2d_forward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & target, const c10::optional & weight, int64_t reduction, int64_t ignore_index, at::Tensor & output, at::Tensor & total_weight) { + return at::_ops::nll_loss2d_forward_output::redispatch(dispatchKeySet, self, target, weight, reduction, ignore_index, output, total_weight); + } + + // aten::nll_loss2d_forward.output(Tensor self, Tensor target, Tensor? weight, int reduction, SymInt ignore_index, *, Tensor(a!) output, Tensor(b!) total_weight) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple nll_loss2d_forward_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & output, at::Tensor & total_weight, const at::Tensor & self, const at::Tensor & target, const c10::optional & weight, int64_t reduction, c10::SymInt ignore_index) { + return at::_ops::nll_loss2d_forward_output::redispatch(dispatchKeySet, self, target, weight, reduction, ignore_index, output, total_weight); + } + + // aten::nll_loss2d_forward.output(Tensor self, Tensor target, Tensor? weight, int reduction, SymInt ignore_index, *, Tensor(a!) output, Tensor(b!) total_weight) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple nll_loss2d_forward_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & target, const c10::optional & weight, int64_t reduction, c10::SymInt ignore_index, at::Tensor & output, at::Tensor & total_weight) { + return at::_ops::nll_loss2d_forward_output::redispatch(dispatchKeySet, self, target, weight, reduction, ignore_index, output, total_weight); + } + + // aten::nll_loss2d_forward(Tensor self, Tensor target, Tensor? weight, int reduction, SymInt ignore_index) -> (Tensor output, Tensor total_weight) + inline ::std::tuple nll_loss2d_forward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & target, const c10::optional & weight, int64_t reduction, int64_t ignore_index) { + return at::_ops::nll_loss2d_forward::redispatch(dispatchKeySet, self, target, weight, reduction, ignore_index); + } + + // aten::nll_loss2d_forward(Tensor self, Tensor target, Tensor? weight, int reduction, SymInt ignore_index) -> (Tensor output, Tensor total_weight) + inline ::std::tuple nll_loss2d_forward_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & target, const c10::optional & weight, int64_t reduction, c10::SymInt ignore_index) { + return at::_ops::nll_loss2d_forward::redispatch(dispatchKeySet, self, target, weight, reduction, ignore_index); + } + + // aten::nll_loss2d_backward.grad_input(Tensor grad_output, Tensor self, Tensor target, Tensor? weight, int reduction, SymInt ignore_index, Tensor total_weight, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & nll_loss2d_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & target, const c10::optional & weight, int64_t reduction, int64_t ignore_index, const at::Tensor & total_weight) { + return at::_ops::nll_loss2d_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, target, weight, reduction, ignore_index, total_weight, grad_input); + } + + // aten::nll_loss2d_backward.grad_input(Tensor grad_output, Tensor self, Tensor target, Tensor? weight, int reduction, SymInt ignore_index, Tensor total_weight, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & nll_loss2d_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & target, const c10::optional & weight, int64_t reduction, int64_t ignore_index, const at::Tensor & total_weight, at::Tensor & grad_input) { + return at::_ops::nll_loss2d_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, target, weight, reduction, ignore_index, total_weight, grad_input); + } + + // aten::nll_loss2d_backward.grad_input(Tensor grad_output, Tensor self, Tensor target, Tensor? weight, int reduction, SymInt ignore_index, Tensor total_weight, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & nll_loss2d_backward_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & target, const c10::optional & weight, int64_t reduction, c10::SymInt ignore_index, const at::Tensor & total_weight) { + return at::_ops::nll_loss2d_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, target, weight, reduction, ignore_index, total_weight, grad_input); + } + + // aten::nll_loss2d_backward.grad_input(Tensor grad_output, Tensor self, Tensor target, Tensor? weight, int reduction, SymInt ignore_index, Tensor total_weight, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & nll_loss2d_backward_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & target, const c10::optional & weight, int64_t reduction, c10::SymInt ignore_index, const at::Tensor & total_weight, at::Tensor & grad_input) { + return at::_ops::nll_loss2d_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, target, weight, reduction, ignore_index, total_weight, grad_input); + } + + // aten::nll_loss2d_backward(Tensor grad_output, Tensor self, Tensor target, Tensor? weight, int reduction, SymInt ignore_index, Tensor total_weight) -> Tensor + inline at::Tensor nll_loss2d_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & target, const c10::optional & weight, int64_t reduction, int64_t ignore_index, const at::Tensor & total_weight) { + return at::_ops::nll_loss2d_backward::redispatch(dispatchKeySet, grad_output, self, target, weight, reduction, ignore_index, total_weight); + } + + // aten::nll_loss2d_backward(Tensor grad_output, Tensor self, Tensor target, Tensor? weight, int reduction, SymInt ignore_index, Tensor total_weight) -> Tensor + inline at::Tensor nll_loss2d_backward_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & target, const c10::optional & weight, int64_t reduction, c10::SymInt ignore_index, const at::Tensor & total_weight) { + return at::_ops::nll_loss2d_backward::redispatch(dispatchKeySet, grad_output, self, target, weight, reduction, ignore_index, total_weight); + } + + // aten::smooth_l1_loss.out(Tensor self, Tensor target, int reduction=Mean, float beta=1.0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & smooth_l1_loss_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & target, int64_t reduction=at::Reduction::Mean, double beta=1.0) { + return at::_ops::smooth_l1_loss_out::redispatch(dispatchKeySet, self, target, reduction, beta, out); + } + + // aten::smooth_l1_loss.out(Tensor self, Tensor target, int reduction=Mean, float beta=1.0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & smooth_l1_loss_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & target, int64_t reduction, double beta, at::Tensor & out) { + return at::_ops::smooth_l1_loss_out::redispatch(dispatchKeySet, self, target, reduction, beta, out); + } + + // aten::smooth_l1_loss(Tensor self, Tensor target, int reduction=Mean, float beta=1.0) -> Tensor + inline at::Tensor smooth_l1_loss(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & target, int64_t reduction=at::Reduction::Mean, double beta=1.0) { + return at::_ops::smooth_l1_loss::redispatch(dispatchKeySet, self, target, reduction, beta); + } + + // aten::smooth_l1_loss_backward.grad_input(Tensor grad_output, Tensor self, Tensor target, int reduction, float beta, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & smooth_l1_loss_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & target, int64_t reduction, double beta) { + return at::_ops::smooth_l1_loss_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, target, reduction, beta, grad_input); + } + + // aten::smooth_l1_loss_backward.grad_input(Tensor grad_output, Tensor self, Tensor target, int reduction, float beta, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & smooth_l1_loss_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & target, int64_t reduction, double beta, at::Tensor & grad_input) { + return at::_ops::smooth_l1_loss_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, target, reduction, beta, grad_input); + } + + // aten::smooth_l1_loss_backward(Tensor grad_output, Tensor self, Tensor target, int reduction, float beta) -> Tensor + inline at::Tensor smooth_l1_loss_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & target, int64_t reduction, double beta) { + return at::_ops::smooth_l1_loss_backward::redispatch(dispatchKeySet, grad_output, self, target, reduction, beta); + } + + // aten::huber_loss.out(Tensor self, Tensor target, int reduction=Mean, float delta=1.0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & huber_loss_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & target, int64_t reduction=at::Reduction::Mean, double delta=1.0) { + return at::_ops::huber_loss_out::redispatch(dispatchKeySet, self, target, reduction, delta, out); + } + + // aten::huber_loss.out(Tensor self, Tensor target, int reduction=Mean, float delta=1.0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & huber_loss_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & target, int64_t reduction, double delta, at::Tensor & out) { + return at::_ops::huber_loss_out::redispatch(dispatchKeySet, self, target, reduction, delta, out); + } + + // aten::huber_loss(Tensor self, Tensor target, int reduction=Mean, float delta=1.0) -> Tensor + inline at::Tensor huber_loss(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & target, int64_t reduction=at::Reduction::Mean, double delta=1.0) { + return at::_ops::huber_loss::redispatch(dispatchKeySet, self, target, reduction, delta); + } + + // aten::huber_loss_backward.out(Tensor grad_output, Tensor self, Tensor target, int reduction, float delta, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & huber_loss_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & target, int64_t reduction, double delta) { + return at::_ops::huber_loss_backward_out::redispatch(dispatchKeySet, grad_output, self, target, reduction, delta, grad_input); + } + + // aten::huber_loss_backward.out(Tensor grad_output, Tensor self, Tensor target, int reduction, float delta, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & huber_loss_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & target, int64_t reduction, double delta, at::Tensor & grad_input) { + return at::_ops::huber_loss_backward_out::redispatch(dispatchKeySet, grad_output, self, target, reduction, delta, grad_input); + } + + // aten::huber_loss_backward(Tensor grad_output, Tensor self, Tensor target, int reduction, float delta) -> Tensor + inline at::Tensor huber_loss_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & target, int64_t reduction, double delta) { + return at::_ops::huber_loss_backward::redispatch(dispatchKeySet, grad_output, self, target, reduction, delta); + } + + // aten::soft_margin_loss.out(Tensor self, Tensor target, int reduction=Mean, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & soft_margin_loss_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & target, int64_t reduction=at::Reduction::Mean) { + return at::_ops::soft_margin_loss_out::redispatch(dispatchKeySet, self, target, reduction, out); + } + + // aten::soft_margin_loss.out(Tensor self, Tensor target, int reduction=Mean, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & soft_margin_loss_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & target, int64_t reduction, at::Tensor & out) { + return at::_ops::soft_margin_loss_out::redispatch(dispatchKeySet, self, target, reduction, out); + } + + // aten::soft_margin_loss(Tensor self, Tensor target, int reduction=Mean) -> Tensor + inline at::Tensor soft_margin_loss(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & target, int64_t reduction=at::Reduction::Mean) { + return at::_ops::soft_margin_loss::redispatch(dispatchKeySet, self, target, reduction); + } + + // aten::soft_margin_loss_backward.grad_input(Tensor grad_output, Tensor self, Tensor target, int reduction, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & soft_margin_loss_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & target, int64_t reduction) { + return at::_ops::soft_margin_loss_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, target, reduction, grad_input); + } + + // aten::soft_margin_loss_backward.grad_input(Tensor grad_output, Tensor self, Tensor target, int reduction, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & soft_margin_loss_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & target, int64_t reduction, at::Tensor & grad_input) { + return at::_ops::soft_margin_loss_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, target, reduction, grad_input); + } + + // aten::soft_margin_loss_backward(Tensor grad_output, Tensor self, Tensor target, int reduction) -> Tensor + inline at::Tensor soft_margin_loss_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & target, int64_t reduction) { + return at::_ops::soft_margin_loss_backward::redispatch(dispatchKeySet, grad_output, self, target, reduction); + } + + // aten::elu.out(Tensor self, Scalar alpha=1, Scalar scale=1, Scalar input_scale=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & elu_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Scalar & alpha=1, const at::Scalar & scale=1, const at::Scalar & input_scale=1) { + return at::_ops::elu_out::redispatch(dispatchKeySet, self, alpha, scale, input_scale, out); + } + + // aten::elu.out(Tensor self, Scalar alpha=1, Scalar scale=1, Scalar input_scale=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & elu_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & alpha, const at::Scalar & scale, const at::Scalar & input_scale, at::Tensor & out) { + return at::_ops::elu_out::redispatch(dispatchKeySet, self, alpha, scale, input_scale, out); + } + + // aten::elu(Tensor self, Scalar alpha=1, Scalar scale=1, Scalar input_scale=1) -> Tensor + inline at::Tensor elu(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & alpha=1, const at::Scalar & scale=1, const at::Scalar & input_scale=1) { + return at::_ops::elu::redispatch(dispatchKeySet, self, alpha, scale, input_scale); + } + + // aten::elu_backward.grad_input(Tensor grad_output, Scalar alpha, Scalar scale, Scalar input_scale, bool is_result, Tensor self_or_result, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & elu_backward_out(c10::DispatchKeySet dispatchKeySet, 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) { + return at::_ops::elu_backward_grad_input::redispatch(dispatchKeySet, grad_output, alpha, scale, input_scale, is_result, self_or_result, grad_input); + } + + // aten::elu_backward.grad_input(Tensor grad_output, Scalar alpha, Scalar scale, Scalar input_scale, bool is_result, Tensor self_or_result, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & elu_backward_outf(c10::DispatchKeySet dispatchKeySet, 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) { + return at::_ops::elu_backward_grad_input::redispatch(dispatchKeySet, grad_output, alpha, scale, input_scale, is_result, self_or_result, grad_input); + } + + // aten::elu_backward(Tensor grad_output, Scalar alpha, Scalar scale, Scalar input_scale, bool is_result, Tensor self_or_result) -> Tensor + inline at::Tensor elu_backward(c10::DispatchKeySet dispatchKeySet, 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) { + return at::_ops::elu_backward::redispatch(dispatchKeySet, grad_output, alpha, scale, input_scale, is_result, self_or_result); + } + + // aten::elu_(Tensor(a!) self, Scalar alpha=1, Scalar scale=1, Scalar input_scale=1) -> Tensor(a!) + inline at::Tensor & elu_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Scalar & alpha=1, const at::Scalar & scale=1, const at::Scalar & input_scale=1) { + return at::_ops::elu_::redispatch(dispatchKeySet, self, alpha, scale, input_scale); + } + + // aten::glu.out(Tensor self, int dim=-1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & glu_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t dim=-1) { + return at::_ops::glu_out::redispatch(dispatchKeySet, self, dim, out); + } + + // aten::glu.out(Tensor self, int dim=-1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & glu_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, at::Tensor & out) { + return at::_ops::glu_out::redispatch(dispatchKeySet, self, dim, out); + } + + // aten::glu(Tensor self, int dim=-1) -> Tensor + inline at::Tensor glu(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim=-1) { + return at::_ops::glu::redispatch(dispatchKeySet, self, dim); + } + + // aten::glu_backward.grad_input(Tensor grad_output, Tensor self, int dim, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & glu_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, const at::Tensor & self, int64_t dim) { + return at::_ops::glu_backward_grad_input::redispatch(dispatchKeySet, 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(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, int64_t dim, at::Tensor & grad_input) { + return at::_ops::glu_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, dim, grad_input); + } + + // aten::glu_backward(Tensor grad_output, Tensor self, int dim) -> Tensor + inline at::Tensor glu_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, int64_t dim) { + return at::_ops::glu_backward::redispatch(dispatchKeySet, grad_output, self, dim); + } + + // aten::glu_jvp(Tensor glu, Tensor x, Tensor dx, int dim) -> Tensor + inline at::Tensor glu_jvp(c10::DispatchKeySet dispatchKeySet, const at::Tensor & glu, const at::Tensor & x, const at::Tensor & dx, int64_t dim) { + return at::_ops::glu_jvp::redispatch(dispatchKeySet, glu, x, dx, dim); + } + + // aten::glu_backward_jvp(Tensor grad_x, Tensor grad_glu, Tensor x, Tensor dgrad_glu, Tensor dx, int dim) -> Tensor + inline at::Tensor glu_backward_jvp(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_x, const at::Tensor & grad_glu, const at::Tensor & x, const at::Tensor & dgrad_glu, const at::Tensor & dx, int64_t dim) { + return at::_ops::glu_backward_jvp::redispatch(dispatchKeySet, grad_x, grad_glu, x, dgrad_glu, dx, dim); + } + + // aten::hardsigmoid.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & hardsigmoid_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::hardsigmoid_out::redispatch(dispatchKeySet, self, out); + } + + // aten::hardsigmoid.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & hardsigmoid_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::hardsigmoid_out::redispatch(dispatchKeySet, self, out); + } + + // aten::hardsigmoid(Tensor self) -> Tensor + inline at::Tensor hardsigmoid(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::hardsigmoid::redispatch(dispatchKeySet, self); + } + + // aten::hardsigmoid_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & hardsigmoid_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::hardsigmoid_::redispatch(dispatchKeySet, self); + } + + // aten::hardsigmoid_backward.grad_input(Tensor grad_output, Tensor self, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & hardsigmoid_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, const at::Tensor & self) { + return at::_ops::hardsigmoid_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, grad_input); + } + + // aten::hardsigmoid_backward.grad_input(Tensor grad_output, Tensor self, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & hardsigmoid_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, at::Tensor & grad_input) { + return at::_ops::hardsigmoid_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, grad_input); + } + + // aten::hardsigmoid_backward(Tensor grad_output, Tensor self) -> Tensor + inline at::Tensor hardsigmoid_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self) { + return at::_ops::hardsigmoid_backward::redispatch(dispatchKeySet, grad_output, self); + } + + // aten::hardtanh.out(Tensor self, Scalar min_val=-1, Scalar max_val=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & hardtanh_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Scalar & min_val=-1, const at::Scalar & max_val=1) { + return at::_ops::hardtanh_out::redispatch(dispatchKeySet, self, min_val, max_val, out); + } + + // aten::hardtanh.out(Tensor self, Scalar min_val=-1, Scalar max_val=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & hardtanh_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & min_val, const at::Scalar & max_val, at::Tensor & out) { + return at::_ops::hardtanh_out::redispatch(dispatchKeySet, self, min_val, max_val, out); + } + + // aten::hardtanh(Tensor self, Scalar min_val=-1, Scalar max_val=1) -> Tensor + inline at::Tensor hardtanh(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & min_val=-1, const at::Scalar & max_val=1) { + return at::_ops::hardtanh::redispatch(dispatchKeySet, self, min_val, max_val); + } + + // aten::hardtanh_backward.grad_input(Tensor grad_output, Tensor self, Scalar min_val, Scalar max_val, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & hardtanh_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, const at::Tensor & self, const at::Scalar & min_val, const at::Scalar & max_val) { + return at::_ops::hardtanh_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, min_val, max_val, grad_input); + } + + // aten::hardtanh_backward.grad_input(Tensor grad_output, Tensor self, Scalar min_val, Scalar max_val, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & hardtanh_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, const at::Scalar & min_val, const at::Scalar & max_val, at::Tensor & grad_input) { + return at::_ops::hardtanh_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, min_val, max_val, grad_input); + } + + // aten::hardtanh_backward(Tensor grad_output, Tensor self, Scalar min_val, Scalar max_val) -> Tensor + inline at::Tensor hardtanh_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, const at::Scalar & min_val, const at::Scalar & max_val) { + return at::_ops::hardtanh_backward::redispatch(dispatchKeySet, grad_output, self, min_val, max_val); + } + + // aten::hardtanh_(Tensor(a!) self, Scalar min_val=-1, Scalar max_val=1) -> Tensor(a!) + inline at::Tensor & hardtanh_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Scalar & min_val=-1, const at::Scalar & max_val=1) { + return at::_ops::hardtanh_::redispatch(dispatchKeySet, self, min_val, max_val); + } + + // aten::hardswish.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & hardswish_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::hardswish_out::redispatch(dispatchKeySet, self, out); + } + + // aten::hardswish.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & hardswish_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::hardswish_out::redispatch(dispatchKeySet, self, out); + } + + // aten::hardswish(Tensor self) -> Tensor + inline at::Tensor hardswish(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::hardswish::redispatch(dispatchKeySet, self); + } + + // aten::hardswish_(Tensor(a!) self) -> Tensor(a!) + inline at::Tensor & hardswish_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self) { + return at::_ops::hardswish_::redispatch(dispatchKeySet, self); + } + + // aten::hardswish_backward(Tensor grad_output, Tensor self) -> Tensor + inline at::Tensor hardswish_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self) { + return at::_ops::hardswish_backward::redispatch(dispatchKeySet, grad_output, self); + } + + // aten::leaky_relu.out(Tensor self, Scalar negative_slope=0.01, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & leaky_relu_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Scalar & negative_slope=0.01) { + return at::_ops::leaky_relu_out::redispatch(dispatchKeySet, self, negative_slope, out); + } + + // aten::leaky_relu.out(Tensor self, Scalar negative_slope=0.01, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & leaky_relu_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & negative_slope, at::Tensor & out) { + return at::_ops::leaky_relu_out::redispatch(dispatchKeySet, self, negative_slope, out); + } + + // aten::leaky_relu(Tensor self, Scalar negative_slope=0.01) -> Tensor + inline at::Tensor leaky_relu(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & negative_slope=0.01) { + return at::_ops::leaky_relu::redispatch(dispatchKeySet, self, negative_slope); + } + + // aten::leaky_relu_backward.grad_input(Tensor grad_output, Tensor self, Scalar negative_slope, bool self_is_result, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & leaky_relu_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, const at::Tensor & self, const at::Scalar & negative_slope, bool self_is_result) { + return at::_ops::leaky_relu_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, negative_slope, self_is_result, grad_input); + } + + // aten::leaky_relu_backward.grad_input(Tensor grad_output, Tensor self, Scalar negative_slope, bool self_is_result, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & leaky_relu_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, const at::Scalar & negative_slope, bool self_is_result, at::Tensor & grad_input) { + return at::_ops::leaky_relu_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, negative_slope, self_is_result, grad_input); + } + + // aten::leaky_relu_backward(Tensor grad_output, Tensor self, Scalar negative_slope, bool self_is_result) -> Tensor + inline at::Tensor leaky_relu_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, const at::Scalar & negative_slope, bool self_is_result) { + return at::_ops::leaky_relu_backward::redispatch(dispatchKeySet, grad_output, self, negative_slope, self_is_result); + } + + // aten::leaky_relu_(Tensor(a!) self, Scalar negative_slope=0.01) -> Tensor(a!) + inline at::Tensor & leaky_relu_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Scalar & negative_slope=0.01) { + return at::_ops::leaky_relu_::redispatch(dispatchKeySet, self, negative_slope); + } + + // aten::log_sigmoid.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & log_sigmoid_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::log_sigmoid_out::redispatch(dispatchKeySet, self, out); + } + + // aten::log_sigmoid.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & log_sigmoid_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::log_sigmoid_out::redispatch(dispatchKeySet, self, out); + } + + // aten::log_sigmoid(Tensor self) -> Tensor + inline at::Tensor log_sigmoid(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::log_sigmoid::redispatch(dispatchKeySet, self); + } + + // aten::log_sigmoid_forward.output(Tensor self, *, Tensor(a!) output, Tensor(b!) buffer) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple log_sigmoid_forward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & output, at::Tensor & buffer, const at::Tensor & self) { + return at::_ops::log_sigmoid_forward_output::redispatch(dispatchKeySet, self, output, buffer); + } + + // aten::log_sigmoid_forward.output(Tensor self, *, Tensor(a!) output, Tensor(b!) buffer) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple log_sigmoid_forward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & output, at::Tensor & buffer) { + return at::_ops::log_sigmoid_forward_output::redispatch(dispatchKeySet, self, output, buffer); + } + + // aten::log_sigmoid_forward(Tensor self) -> (Tensor output, Tensor buffer) + inline ::std::tuple log_sigmoid_forward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::log_sigmoid_forward::redispatch(dispatchKeySet, self); + } + + // aten::log_sigmoid_backward.grad_input(Tensor grad_output, Tensor self, Tensor buffer, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & log_sigmoid_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & buffer) { + return at::_ops::log_sigmoid_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, buffer, grad_input); + } + + // aten::log_sigmoid_backward.grad_input(Tensor grad_output, Tensor self, Tensor buffer, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & log_sigmoid_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & buffer, at::Tensor & grad_input) { + return at::_ops::log_sigmoid_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, buffer, grad_input); + } + + // aten::log_sigmoid_backward(Tensor grad_output, Tensor self, Tensor buffer) -> Tensor + inline at::Tensor log_sigmoid_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & buffer) { + return at::_ops::log_sigmoid_backward::redispatch(dispatchKeySet, grad_output, self, buffer); + } + + // aten::rrelu_with_noise.out(Tensor self, Tensor noise, Scalar lower=0.125, Scalar upper=0.3333333333333333, bool training=False, Generator? generator=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & rrelu_with_noise_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & noise, const at::Scalar & lower=0.125, const at::Scalar & upper=0.3333333333333333, bool training=false, c10::optional generator=c10::nullopt) { + return at::_ops::rrelu_with_noise_out::redispatch(dispatchKeySet, self, noise, lower, upper, training, generator, out); + } + + // aten::rrelu_with_noise.out(Tensor self, Tensor noise, Scalar lower=0.125, Scalar upper=0.3333333333333333, bool training=False, Generator? generator=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & rrelu_with_noise_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & noise, const at::Scalar & lower, const at::Scalar & upper, bool training, c10::optional generator, at::Tensor & out) { + return at::_ops::rrelu_with_noise_out::redispatch(dispatchKeySet, self, noise, lower, upper, training, generator, out); + } + + // aten::rrelu_with_noise(Tensor self, Tensor noise, Scalar lower=0.125, Scalar upper=0.3333333333333333, bool training=False, Generator? generator=None) -> Tensor + inline at::Tensor rrelu_with_noise(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & noise, const at::Scalar & lower=0.125, const at::Scalar & upper=0.3333333333333333, bool training=false, c10::optional generator=c10::nullopt) { + return at::_ops::rrelu_with_noise::redispatch(dispatchKeySet, self, noise, lower, upper, training, generator); + } + + // aten::rrelu_with_noise_backward(Tensor grad_output, Tensor self, Tensor noise, Scalar lower, Scalar upper, bool training, bool self_is_result) -> Tensor + inline at::Tensor rrelu_with_noise_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & noise, const at::Scalar & lower, const at::Scalar & upper, bool training, bool self_is_result) { + return at::_ops::rrelu_with_noise_backward::redispatch(dispatchKeySet, grad_output, self, noise, lower, upper, training, self_is_result); + } + + // aten::rrelu_with_noise_(Tensor(a!) self, Tensor noise, Scalar lower=0.125, Scalar upper=0.3333333333333333, bool training=False, Generator? generator=None) -> Tensor(a!) + inline at::Tensor & rrelu_with_noise_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & noise, const at::Scalar & lower=0.125, const at::Scalar & upper=0.3333333333333333, bool training=false, c10::optional generator=c10::nullopt) { + return at::_ops::rrelu_with_noise_::redispatch(dispatchKeySet, self, noise, lower, upper, training, generator); + } + + // aten::softplus.out(Tensor self, Scalar beta=1, Scalar threshold=20, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & softplus_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Scalar & beta=1, const at::Scalar & threshold=20) { + return at::_ops::softplus_out::redispatch(dispatchKeySet, self, beta, threshold, out); + } + + // aten::softplus.out(Tensor self, Scalar beta=1, Scalar threshold=20, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & softplus_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & beta, const at::Scalar & threshold, at::Tensor & out) { + return at::_ops::softplus_out::redispatch(dispatchKeySet, self, beta, threshold, out); + } + + // aten::softplus(Tensor self, Scalar beta=1, Scalar threshold=20) -> Tensor + inline at::Tensor softplus(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & beta=1, const at::Scalar & threshold=20) { + return at::_ops::softplus::redispatch(dispatchKeySet, self, beta, threshold); + } + + // aten::softplus_backward.grad_input(Tensor grad_output, Tensor self, Scalar beta, Scalar threshold, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & softplus_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, const at::Tensor & self, const at::Scalar & beta, const at::Scalar & threshold) { + return at::_ops::softplus_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, beta, threshold, grad_input); + } + + // aten::softplus_backward.grad_input(Tensor grad_output, Tensor self, Scalar beta, Scalar threshold, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & softplus_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, const at::Scalar & beta, const at::Scalar & threshold, at::Tensor & grad_input) { + return at::_ops::softplus_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, beta, threshold, grad_input); + } + + // aten::softplus_backward(Tensor grad_output, Tensor self, Scalar beta, Scalar threshold) -> Tensor + inline at::Tensor softplus_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, const at::Scalar & beta, const at::Scalar & threshold) { + return at::_ops::softplus_backward::redispatch(dispatchKeySet, grad_output, self, beta, threshold); + } + + // aten::softshrink.out(Tensor self, Scalar lambd=0.5, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & softshrink_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Scalar & lambd=0.5) { + return at::_ops::softshrink_out::redispatch(dispatchKeySet, self, lambd, out); + } + + // aten::softshrink.out(Tensor self, Scalar lambd=0.5, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & softshrink_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & lambd, at::Tensor & out) { + return at::_ops::softshrink_out::redispatch(dispatchKeySet, self, lambd, out); + } + + // aten::softshrink(Tensor self, Scalar lambd=0.5) -> Tensor + inline at::Tensor softshrink(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & lambd=0.5) { + return at::_ops::softshrink::redispatch(dispatchKeySet, self, lambd); + } + + // aten::softshrink_backward.grad_input(Tensor grad_output, Tensor self, Scalar lambd, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & softshrink_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, const at::Tensor & self, const at::Scalar & lambd) { + return at::_ops::softshrink_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, lambd, grad_input); + } + + // aten::softshrink_backward.grad_input(Tensor grad_output, Tensor self, Scalar lambd, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & softshrink_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, const at::Scalar & lambd, at::Tensor & grad_input) { + return at::_ops::softshrink_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, lambd, grad_input); + } + + // aten::softshrink_backward(Tensor grad_output, Tensor self, Scalar lambd) -> Tensor + inline at::Tensor softshrink_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, const at::Scalar & lambd) { + return at::_ops::softshrink_backward::redispatch(dispatchKeySet, grad_output, self, lambd); + } + + // aten::adaptive_avg_pool2d.out(Tensor self, SymInt[2] output_size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & adaptive_avg_pool2d_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef output_size) { + return at::_ops::adaptive_avg_pool2d_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(output_size), out); + } + + // aten::adaptive_avg_pool2d.out(Tensor self, SymInt[2] output_size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & adaptive_avg_pool2d_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef output_size, at::Tensor & out) { + return at::_ops::adaptive_avg_pool2d_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(output_size), out); + } + + // aten::adaptive_avg_pool2d.out(Tensor self, SymInt[2] output_size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & adaptive_avg_pool2d_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::SymIntArrayRef output_size) { + return at::_ops::adaptive_avg_pool2d_out::redispatch(dispatchKeySet, self, output_size, out); + } + + // aten::adaptive_avg_pool2d.out(Tensor self, SymInt[2] output_size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & adaptive_avg_pool2d_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef output_size, at::Tensor & out) { + return at::_ops::adaptive_avg_pool2d_out::redispatch(dispatchKeySet, self, output_size, out); + } + + // aten::adaptive_avg_pool2d(Tensor self, SymInt[2] output_size) -> Tensor + inline at::Tensor adaptive_avg_pool2d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef output_size) { + return at::_ops::adaptive_avg_pool2d::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(output_size)); + } + + // aten::adaptive_avg_pool2d(Tensor self, SymInt[2] output_size) -> Tensor + inline at::Tensor adaptive_avg_pool2d_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef output_size) { + return at::_ops::adaptive_avg_pool2d::redispatch(dispatchKeySet, self, output_size); + } + + // aten::mkldnn_adaptive_avg_pool2d(Tensor self, int[2] output_size) -> Tensor + inline at::Tensor mkldnn_adaptive_avg_pool2d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef output_size) { + return at::_ops::mkldnn_adaptive_avg_pool2d::redispatch(dispatchKeySet, self, output_size); + } + + // aten::mkldnn_adaptive_avg_pool2d.out(Tensor self, int[2] output_size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & mkldnn_adaptive_avg_pool2d_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef output_size) { + return at::_ops::mkldnn_adaptive_avg_pool2d_out::redispatch(dispatchKeySet, self, output_size, out); + } + + // aten::mkldnn_adaptive_avg_pool2d.out(Tensor self, int[2] output_size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & mkldnn_adaptive_avg_pool2d_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef output_size, at::Tensor & out) { + return at::_ops::mkldnn_adaptive_avg_pool2d_out::redispatch(dispatchKeySet, self, output_size, out); + } + + // aten::mkldnn_adaptive_avg_pool2d_backward(Tensor grad_output, Tensor self) -> Tensor + inline at::Tensor mkldnn_adaptive_avg_pool2d_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self) { + return at::_ops::mkldnn_adaptive_avg_pool2d_backward::redispatch(dispatchKeySet, grad_output, self); + } + + // aten::_adaptive_avg_pool2d(Tensor self, SymInt[2] output_size) -> Tensor + inline at::Tensor _adaptive_avg_pool2d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef output_size) { + return at::_ops::_adaptive_avg_pool2d::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(output_size)); + } + + // aten::_adaptive_avg_pool2d(Tensor self, SymInt[2] output_size) -> Tensor + inline at::Tensor _adaptive_avg_pool2d_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef output_size) { + return at::_ops::_adaptive_avg_pool2d::redispatch(dispatchKeySet, self, output_size); + } + + // aten::_adaptive_avg_pool2d_backward(Tensor grad_output, Tensor self) -> Tensor + inline at::Tensor _adaptive_avg_pool2d_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self) { + return at::_ops::_adaptive_avg_pool2d_backward::redispatch(dispatchKeySet, grad_output, self); + } + + // aten::adaptive_avg_pool3d.out(Tensor self, SymInt[3] output_size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & adaptive_avg_pool3d_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef output_size) { + return at::_ops::adaptive_avg_pool3d_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(output_size), out); + } + + // aten::adaptive_avg_pool3d.out(Tensor self, SymInt[3] output_size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & adaptive_avg_pool3d_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef output_size, at::Tensor & out) { + return at::_ops::adaptive_avg_pool3d_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(output_size), out); + } + + // aten::adaptive_avg_pool3d.out(Tensor self, SymInt[3] output_size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & adaptive_avg_pool3d_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::SymIntArrayRef output_size) { + return at::_ops::adaptive_avg_pool3d_out::redispatch(dispatchKeySet, self, output_size, out); + } + + // aten::adaptive_avg_pool3d.out(Tensor self, SymInt[3] output_size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & adaptive_avg_pool3d_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef output_size, at::Tensor & out) { + return at::_ops::adaptive_avg_pool3d_out::redispatch(dispatchKeySet, self, output_size, out); + } + + // aten::adaptive_avg_pool3d(Tensor self, SymInt[3] output_size) -> Tensor + inline at::Tensor adaptive_avg_pool3d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef output_size) { + return at::_ops::adaptive_avg_pool3d::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(output_size)); + } + + // aten::adaptive_avg_pool3d(Tensor self, SymInt[3] output_size) -> Tensor + inline at::Tensor adaptive_avg_pool3d_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef output_size) { + return at::_ops::adaptive_avg_pool3d::redispatch(dispatchKeySet, self, output_size); + } + + // aten::_adaptive_avg_pool3d(Tensor self, SymInt[3] output_size) -> Tensor + inline at::Tensor _adaptive_avg_pool3d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef output_size) { + return at::_ops::_adaptive_avg_pool3d::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(output_size)); + } + + // aten::_adaptive_avg_pool3d(Tensor self, SymInt[3] output_size) -> Tensor + inline at::Tensor _adaptive_avg_pool3d_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef output_size) { + return at::_ops::_adaptive_avg_pool3d::redispatch(dispatchKeySet, self, output_size); + } + + // aten::adaptive_avg_pool3d_backward.grad_input(Tensor grad_output, Tensor self, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & adaptive_avg_pool3d_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, const at::Tensor & self) { + return at::_ops::adaptive_avg_pool3d_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, grad_input); + } + + // aten::adaptive_avg_pool3d_backward.grad_input(Tensor grad_output, Tensor self, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & adaptive_avg_pool3d_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, at::Tensor & grad_input) { + return at::_ops::adaptive_avg_pool3d_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, grad_input); + } + + // aten::_adaptive_avg_pool3d_backward(Tensor grad_output, Tensor self) -> Tensor + inline at::Tensor _adaptive_avg_pool3d_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self) { + return at::_ops::_adaptive_avg_pool3d_backward::redispatch(dispatchKeySet, grad_output, self); + } + + // aten::adaptive_max_pool2d.out(Tensor self, int[2] output_size, *, Tensor(a!) out, Tensor(b!) indices) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple adaptive_max_pool2d_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, at::Tensor & indices, const at::Tensor & self, at::IntArrayRef output_size) { + return at::_ops::adaptive_max_pool2d_out::redispatch(dispatchKeySet, self, output_size, out, indices); + } + + // aten::adaptive_max_pool2d.out(Tensor self, int[2] output_size, *, Tensor(a!) out, Tensor(b!) indices) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple adaptive_max_pool2d_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef output_size, at::Tensor & out, at::Tensor & indices) { + return at::_ops::adaptive_max_pool2d_out::redispatch(dispatchKeySet, self, output_size, out, indices); + } + + // aten::adaptive_max_pool2d(Tensor self, int[2] output_size) -> (Tensor, Tensor) + inline ::std::tuple adaptive_max_pool2d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef output_size) { + return at::_ops::adaptive_max_pool2d::redispatch(dispatchKeySet, self, output_size); + } + + // aten::adaptive_max_pool2d_backward.grad_input(Tensor grad_output, Tensor self, Tensor indices, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & adaptive_max_pool2d_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & indices) { + return at::_ops::adaptive_max_pool2d_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, indices, grad_input); + } + + // aten::adaptive_max_pool2d_backward.grad_input(Tensor grad_output, Tensor self, Tensor indices, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & adaptive_max_pool2d_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & indices, at::Tensor & grad_input) { + return at::_ops::adaptive_max_pool2d_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, indices, grad_input); + } + + // aten::adaptive_max_pool2d_backward(Tensor grad_output, Tensor self, Tensor indices) -> Tensor + inline at::Tensor adaptive_max_pool2d_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & indices) { + return at::_ops::adaptive_max_pool2d_backward::redispatch(dispatchKeySet, grad_output, self, indices); + } + + // aten::adaptive_max_pool3d.out(Tensor self, int[3] output_size, *, Tensor(a!) out, Tensor(b!) indices) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple adaptive_max_pool3d_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, at::Tensor & indices, const at::Tensor & self, at::IntArrayRef output_size) { + return at::_ops::adaptive_max_pool3d_out::redispatch(dispatchKeySet, self, output_size, out, indices); + } + + // aten::adaptive_max_pool3d.out(Tensor self, int[3] output_size, *, Tensor(a!) out, Tensor(b!) indices) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple adaptive_max_pool3d_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef output_size, at::Tensor & out, at::Tensor & indices) { + return at::_ops::adaptive_max_pool3d_out::redispatch(dispatchKeySet, self, output_size, out, indices); + } + + // aten::adaptive_max_pool3d(Tensor self, int[3] output_size) -> (Tensor, Tensor) + inline ::std::tuple adaptive_max_pool3d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef output_size) { + return at::_ops::adaptive_max_pool3d::redispatch(dispatchKeySet, self, output_size); + } + + // aten::adaptive_max_pool3d_backward.grad_input(Tensor grad_output, Tensor self, Tensor indices, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & adaptive_max_pool3d_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & indices) { + return at::_ops::adaptive_max_pool3d_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, indices, grad_input); + } + + // aten::adaptive_max_pool3d_backward.grad_input(Tensor grad_output, Tensor self, Tensor indices, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & adaptive_max_pool3d_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & indices, at::Tensor & grad_input) { + return at::_ops::adaptive_max_pool3d_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, indices, grad_input); + } + + // aten::adaptive_max_pool3d_backward(Tensor grad_output, Tensor self, Tensor indices) -> Tensor + inline at::Tensor adaptive_max_pool3d_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & indices) { + return at::_ops::adaptive_max_pool3d_backward::redispatch(dispatchKeySet, grad_output, self, indices); + } + + // aten::avg_pool2d.out(Tensor self, int[2] kernel_size, int[2] stride=[], int[2] padding=0, bool ceil_mode=False, bool count_include_pad=True, int? divisor_override=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & avg_pool2d_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef stride={}, at::IntArrayRef padding=0, bool ceil_mode=false, bool count_include_pad=true, c10::optional divisor_override=c10::nullopt) { + return at::_ops::avg_pool2d_out::redispatch(dispatchKeySet, self, kernel_size, stride, padding, ceil_mode, count_include_pad, divisor_override, out); + } + + // aten::avg_pool2d.out(Tensor self, int[2] kernel_size, int[2] stride=[], int[2] padding=0, bool ceil_mode=False, bool count_include_pad=True, int? divisor_override=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & avg_pool2d_outf(c10::DispatchKeySet dispatchKeySet, 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 & out) { + return at::_ops::avg_pool2d_out::redispatch(dispatchKeySet, self, kernel_size, stride, padding, ceil_mode, count_include_pad, divisor_override, out); + } + + // aten::avg_pool2d(Tensor self, int[2] kernel_size, int[2] stride=[], int[2] padding=0, bool ceil_mode=False, bool count_include_pad=True, int? divisor_override=None) -> Tensor + inline at::Tensor avg_pool2d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef stride={}, at::IntArrayRef padding=0, bool ceil_mode=false, bool count_include_pad=true, c10::optional divisor_override=c10::nullopt) { + return at::_ops::avg_pool2d::redispatch(dispatchKeySet, self, kernel_size, stride, padding, ceil_mode, count_include_pad, divisor_override); + } + + // aten::avg_pool2d_backward.grad_input(Tensor grad_output, Tensor self, int[2] kernel_size, int[2] stride, int[2] padding, bool ceil_mode, bool count_include_pad, int? divisor_override, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & avg_pool2d_backward_out(c10::DispatchKeySet dispatchKeySet, 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) { + return at::_ops::avg_pool2d_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, kernel_size, stride, padding, ceil_mode, count_include_pad, divisor_override, grad_input); + } + + // aten::avg_pool2d_backward.grad_input(Tensor grad_output, Tensor self, int[2] kernel_size, int[2] stride, int[2] padding, bool ceil_mode, bool count_include_pad, int? divisor_override, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & avg_pool2d_backward_outf(c10::DispatchKeySet dispatchKeySet, 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) { + return at::_ops::avg_pool2d_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, kernel_size, stride, padding, ceil_mode, count_include_pad, divisor_override, grad_input); + } + + // aten::avg_pool2d_backward(Tensor grad_output, Tensor self, int[2] kernel_size, int[2] stride, int[2] padding, bool ceil_mode, bool count_include_pad, int? divisor_override) -> Tensor + inline at::Tensor avg_pool2d_backward(c10::DispatchKeySet dispatchKeySet, 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) { + return at::_ops::avg_pool2d_backward::redispatch(dispatchKeySet, grad_output, self, kernel_size, stride, padding, ceil_mode, count_include_pad, divisor_override); + } + + // aten::avg_pool3d.out(Tensor self, int[3] kernel_size, int[3] stride=[], int[3] padding=0, bool ceil_mode=False, bool count_include_pad=True, int? divisor_override=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & avg_pool3d_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef stride={}, at::IntArrayRef padding=0, bool ceil_mode=false, bool count_include_pad=true, c10::optional divisor_override=c10::nullopt) { + return at::_ops::avg_pool3d_out::redispatch(dispatchKeySet, self, kernel_size, stride, padding, ceil_mode, count_include_pad, divisor_override, out); + } + + // aten::avg_pool3d.out(Tensor self, int[3] kernel_size, int[3] stride=[], int[3] padding=0, bool ceil_mode=False, bool count_include_pad=True, int? divisor_override=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & avg_pool3d_outf(c10::DispatchKeySet dispatchKeySet, 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 & out) { + return at::_ops::avg_pool3d_out::redispatch(dispatchKeySet, self, kernel_size, stride, padding, ceil_mode, count_include_pad, divisor_override, out); + } + + // aten::avg_pool3d(Tensor self, int[3] kernel_size, int[3] stride=[], int[3] padding=0, bool ceil_mode=False, bool count_include_pad=True, int? divisor_override=None) -> Tensor + inline at::Tensor avg_pool3d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef stride={}, at::IntArrayRef padding=0, bool ceil_mode=false, bool count_include_pad=true, c10::optional divisor_override=c10::nullopt) { + return at::_ops::avg_pool3d::redispatch(dispatchKeySet, self, kernel_size, stride, padding, ceil_mode, count_include_pad, divisor_override); + } + + // aten::avg_pool3d_backward.grad_input(Tensor grad_output, Tensor self, int[3] kernel_size, int[3] stride, int[3] padding, bool ceil_mode, bool count_include_pad, int? divisor_override, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & avg_pool3d_backward_out(c10::DispatchKeySet dispatchKeySet, 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) { + return at::_ops::avg_pool3d_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, kernel_size, stride, padding, ceil_mode, count_include_pad, divisor_override, grad_input); + } + + // aten::avg_pool3d_backward.grad_input(Tensor grad_output, Tensor self, int[3] kernel_size, int[3] stride, int[3] padding, bool ceil_mode, bool count_include_pad, int? divisor_override, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & avg_pool3d_backward_outf(c10::DispatchKeySet dispatchKeySet, 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) { + return at::_ops::avg_pool3d_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, kernel_size, stride, padding, ceil_mode, count_include_pad, divisor_override, grad_input); + } + + // aten::avg_pool3d_backward(Tensor grad_output, Tensor self, int[3] kernel_size, int[3] stride, int[3] padding, bool ceil_mode, bool count_include_pad, int? divisor_override) -> Tensor + inline at::Tensor avg_pool3d_backward(c10::DispatchKeySet dispatchKeySet, 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) { + return at::_ops::avg_pool3d_backward::redispatch(dispatchKeySet, grad_output, self, kernel_size, stride, padding, ceil_mode, count_include_pad, divisor_override); + } + + // aten::fractional_max_pool2d.output(Tensor self, int[2] kernel_size, int[2] output_size, Tensor random_samples, *, Tensor(a!) output, Tensor(b!) indices) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple fractional_max_pool2d_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & output, at::Tensor & indices, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef output_size, const at::Tensor & random_samples) { + return at::_ops::fractional_max_pool2d_output::redispatch(dispatchKeySet, self, kernel_size, output_size, random_samples, output, indices); + } + + // aten::fractional_max_pool2d.output(Tensor self, int[2] kernel_size, int[2] output_size, Tensor random_samples, *, Tensor(a!) output, Tensor(b!) indices) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple fractional_max_pool2d_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef output_size, const at::Tensor & random_samples, at::Tensor & output, at::Tensor & indices) { + return at::_ops::fractional_max_pool2d_output::redispatch(dispatchKeySet, self, kernel_size, output_size, random_samples, output, indices); + } + + // aten::fractional_max_pool2d(Tensor self, int[2] kernel_size, int[2] output_size, Tensor random_samples) -> (Tensor, Tensor) + inline ::std::tuple fractional_max_pool2d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef output_size, const at::Tensor & random_samples) { + return at::_ops::fractional_max_pool2d::redispatch(dispatchKeySet, self, kernel_size, output_size, random_samples); + } + + // aten::fractional_max_pool2d_backward.grad_input(Tensor grad_output, Tensor self, int[2] kernel_size, int[2] output_size, Tensor indices, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & fractional_max_pool2d_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef output_size, const at::Tensor & indices) { + return at::_ops::fractional_max_pool2d_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, kernel_size, output_size, indices, grad_input); + } + + // aten::fractional_max_pool2d_backward.grad_input(Tensor grad_output, Tensor self, int[2] kernel_size, int[2] output_size, Tensor indices, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & fractional_max_pool2d_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef output_size, const at::Tensor & indices, at::Tensor & grad_input) { + return at::_ops::fractional_max_pool2d_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, kernel_size, output_size, indices, grad_input); + } + + // aten::fractional_max_pool2d_backward(Tensor grad_output, Tensor self, int[2] kernel_size, int[2] output_size, Tensor indices) -> Tensor + inline at::Tensor fractional_max_pool2d_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef output_size, const at::Tensor & indices) { + return at::_ops::fractional_max_pool2d_backward::redispatch(dispatchKeySet, grad_output, self, kernel_size, output_size, indices); + } + + // aten::fractional_max_pool3d.output(Tensor self, int[3] kernel_size, int[3] output_size, Tensor random_samples, *, Tensor(a!) output, Tensor(b!) indices) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple fractional_max_pool3d_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & output, at::Tensor & indices, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef output_size, const at::Tensor & random_samples) { + return at::_ops::fractional_max_pool3d_output::redispatch(dispatchKeySet, self, kernel_size, output_size, random_samples, output, indices); + } + + // aten::fractional_max_pool3d.output(Tensor self, int[3] kernel_size, int[3] output_size, Tensor random_samples, *, Tensor(a!) output, Tensor(b!) indices) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple fractional_max_pool3d_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef output_size, const at::Tensor & random_samples, at::Tensor & output, at::Tensor & indices) { + return at::_ops::fractional_max_pool3d_output::redispatch(dispatchKeySet, self, kernel_size, output_size, random_samples, output, indices); + } + + // aten::fractional_max_pool3d(Tensor self, int[3] kernel_size, int[3] output_size, Tensor random_samples) -> (Tensor, Tensor) + inline ::std::tuple fractional_max_pool3d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef output_size, const at::Tensor & random_samples) { + return at::_ops::fractional_max_pool3d::redispatch(dispatchKeySet, self, kernel_size, output_size, random_samples); + } + + // aten::fractional_max_pool3d_backward.grad_input(Tensor grad_output, Tensor self, int[3] kernel_size, int[3] output_size, Tensor indices, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & fractional_max_pool3d_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef output_size, const at::Tensor & indices) { + return at::_ops::fractional_max_pool3d_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, kernel_size, output_size, indices, grad_input); + } + + // aten::fractional_max_pool3d_backward.grad_input(Tensor grad_output, Tensor self, int[3] kernel_size, int[3] output_size, Tensor indices, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & fractional_max_pool3d_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef output_size, const at::Tensor & indices, at::Tensor & grad_input) { + return at::_ops::fractional_max_pool3d_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, kernel_size, output_size, indices, grad_input); + } + + // aten::fractional_max_pool3d_backward(Tensor grad_output, Tensor self, int[3] kernel_size, int[3] output_size, Tensor indices) -> Tensor + inline at::Tensor fractional_max_pool3d_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef output_size, const at::Tensor & indices) { + return at::_ops::fractional_max_pool3d_backward::redispatch(dispatchKeySet, grad_output, self, kernel_size, output_size, indices); + } + + // aten::max_pool2d_with_indices.out(Tensor self, int[2] kernel_size, int[2] stride=[], int[2] padding=0, int[2] dilation=1, bool ceil_mode=False, *, Tensor(a!) out, Tensor(b!) indices) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple max_pool2d_with_indices_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, at::Tensor & indices, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef stride={}, at::IntArrayRef padding=0, at::IntArrayRef dilation=1, bool ceil_mode=false) { + return at::_ops::max_pool2d_with_indices_out::redispatch(dispatchKeySet, self, kernel_size, stride, padding, dilation, ceil_mode, out, indices); + } + + // aten::max_pool2d_with_indices.out(Tensor self, int[2] kernel_size, int[2] stride=[], int[2] padding=0, int[2] dilation=1, bool ceil_mode=False, *, Tensor(a!) out, Tensor(b!) indices) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple max_pool2d_with_indices_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, bool ceil_mode, at::Tensor & out, at::Tensor & indices) { + return at::_ops::max_pool2d_with_indices_out::redispatch(dispatchKeySet, self, kernel_size, stride, padding, dilation, ceil_mode, out, indices); + } + + // aten::max_pool2d_with_indices(Tensor self, int[2] kernel_size, int[2] stride=[], int[2] padding=0, int[2] dilation=1, bool ceil_mode=False) -> (Tensor, Tensor) + inline ::std::tuple max_pool2d_with_indices(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef stride={}, at::IntArrayRef padding=0, at::IntArrayRef dilation=1, bool ceil_mode=false) { + return at::_ops::max_pool2d_with_indices::redispatch(dispatchKeySet, self, kernel_size, stride, padding, dilation, ceil_mode); + } + + // aten::max_pool2d_with_indices_backward.grad_input(Tensor grad_output, Tensor self, int[2] kernel_size, int[2] stride, int[2] padding, int[2] dilation, bool ceil_mode, Tensor indices, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & max_pool2d_with_indices_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, bool ceil_mode, const at::Tensor & indices) { + return at::_ops::max_pool2d_with_indices_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, kernel_size, stride, padding, dilation, ceil_mode, indices, grad_input); + } + + // aten::max_pool2d_with_indices_backward.grad_input(Tensor grad_output, Tensor self, int[2] kernel_size, int[2] stride, int[2] padding, int[2] dilation, bool ceil_mode, Tensor indices, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & max_pool2d_with_indices_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, bool ceil_mode, const at::Tensor & indices, at::Tensor & grad_input) { + return at::_ops::max_pool2d_with_indices_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, kernel_size, stride, padding, dilation, ceil_mode, indices, grad_input); + } + + // aten::max_pool2d_with_indices_backward(Tensor grad_output, Tensor self, int[2] kernel_size, int[2] stride, int[2] padding, int[2] dilation, bool ceil_mode, Tensor indices) -> Tensor + inline at::Tensor max_pool2d_with_indices_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, bool ceil_mode, const at::Tensor & indices) { + return at::_ops::max_pool2d_with_indices_backward::redispatch(dispatchKeySet, grad_output, self, kernel_size, stride, padding, dilation, ceil_mode, indices); + } + + // aten::max_pool3d_with_indices.out(Tensor self, int[3] kernel_size, int[3] stride=[], int[3] padding=0, int[3] dilation=1, bool ceil_mode=False, *, Tensor(a!) out, Tensor(b!) indices) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple max_pool3d_with_indices_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, at::Tensor & indices, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef stride={}, at::IntArrayRef padding=0, at::IntArrayRef dilation=1, bool ceil_mode=false) { + return at::_ops::max_pool3d_with_indices_out::redispatch(dispatchKeySet, self, kernel_size, stride, padding, dilation, ceil_mode, out, indices); + } + + // aten::max_pool3d_with_indices.out(Tensor self, int[3] kernel_size, int[3] stride=[], int[3] padding=0, int[3] dilation=1, bool ceil_mode=False, *, Tensor(a!) out, Tensor(b!) indices) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple max_pool3d_with_indices_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, bool ceil_mode, at::Tensor & out, at::Tensor & indices) { + return at::_ops::max_pool3d_with_indices_out::redispatch(dispatchKeySet, self, kernel_size, stride, padding, dilation, ceil_mode, out, indices); + } + + // aten::max_pool3d_with_indices(Tensor self, int[3] kernel_size, int[3] stride=[], int[3] padding=0, int[3] dilation=1, bool ceil_mode=False) -> (Tensor, Tensor) + inline ::std::tuple max_pool3d_with_indices(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef stride={}, at::IntArrayRef padding=0, at::IntArrayRef dilation=1, bool ceil_mode=false) { + return at::_ops::max_pool3d_with_indices::redispatch(dispatchKeySet, self, kernel_size, stride, padding, dilation, ceil_mode); + } + + // aten::max_pool3d_with_indices_backward.grad_input(Tensor grad_output, Tensor self, int[3] kernel_size, int[3] stride, int[3] padding, int[3] dilation, bool ceil_mode, Tensor indices, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & max_pool3d_with_indices_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, bool ceil_mode, const at::Tensor & indices) { + return at::_ops::max_pool3d_with_indices_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, kernel_size, stride, padding, dilation, ceil_mode, indices, grad_input); + } + + // aten::max_pool3d_with_indices_backward.grad_input(Tensor grad_output, Tensor self, int[3] kernel_size, int[3] stride, int[3] padding, int[3] dilation, bool ceil_mode, Tensor indices, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & max_pool3d_with_indices_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, bool ceil_mode, const at::Tensor & indices, at::Tensor & grad_input) { + return at::_ops::max_pool3d_with_indices_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, kernel_size, stride, padding, dilation, ceil_mode, indices, grad_input); + } + + // aten::max_pool3d_with_indices_backward(Tensor grad_output, Tensor self, int[3] kernel_size, int[3] stride, int[3] padding, int[3] dilation, bool ceil_mode, Tensor indices) -> Tensor + inline at::Tensor max_pool3d_with_indices_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, bool ceil_mode, const at::Tensor & indices) { + return at::_ops::max_pool3d_with_indices_backward::redispatch(dispatchKeySet, grad_output, self, kernel_size, stride, padding, dilation, ceil_mode, indices); + } + + // aten::max_unpool2d.out(Tensor self, Tensor indices, SymInt[2] output_size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & max_unpool2d_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & indices, at::IntArrayRef output_size) { + return at::_ops::max_unpool2d_out::redispatch(dispatchKeySet, self, indices, c10::fromIntArrayRefSlow(output_size), out); + } + + // aten::max_unpool2d.out(Tensor self, Tensor indices, SymInt[2] output_size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & max_unpool2d_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & indices, at::IntArrayRef output_size, at::Tensor & out) { + return at::_ops::max_unpool2d_out::redispatch(dispatchKeySet, self, indices, c10::fromIntArrayRefSlow(output_size), out); + } + + // aten::max_unpool2d.out(Tensor self, Tensor indices, SymInt[2] output_size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & max_unpool2d_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & indices, c10::SymIntArrayRef output_size) { + return at::_ops::max_unpool2d_out::redispatch(dispatchKeySet, self, indices, output_size, out); + } + + // aten::max_unpool2d.out(Tensor self, Tensor indices, SymInt[2] output_size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & max_unpool2d_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & indices, c10::SymIntArrayRef output_size, at::Tensor & out) { + return at::_ops::max_unpool2d_out::redispatch(dispatchKeySet, self, indices, output_size, out); + } + + // aten::max_unpool2d(Tensor self, Tensor indices, SymInt[2] output_size) -> Tensor + inline at::Tensor max_unpool2d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & indices, at::IntArrayRef output_size) { + return at::_ops::max_unpool2d::redispatch(dispatchKeySet, self, indices, c10::fromIntArrayRefSlow(output_size)); + } + + // aten::max_unpool2d(Tensor self, Tensor indices, SymInt[2] output_size) -> Tensor + inline at::Tensor max_unpool2d_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & indices, c10::SymIntArrayRef output_size) { + return at::_ops::max_unpool2d::redispatch(dispatchKeySet, self, indices, output_size); + } + + // aten::max_unpool3d.out(Tensor self, Tensor indices, SymInt[3] output_size, int[3] stride, int[3] padding, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & max_unpool3d_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & indices, at::IntArrayRef output_size, at::IntArrayRef stride, at::IntArrayRef padding) { + return at::_ops::max_unpool3d_out::redispatch(dispatchKeySet, self, indices, c10::fromIntArrayRefSlow(output_size), stride, padding, out); + } + + // aten::max_unpool3d.out(Tensor self, Tensor indices, SymInt[3] output_size, int[3] stride, int[3] padding, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & max_unpool3d_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & indices, at::IntArrayRef output_size, at::IntArrayRef stride, at::IntArrayRef padding, at::Tensor & out) { + return at::_ops::max_unpool3d_out::redispatch(dispatchKeySet, self, indices, c10::fromIntArrayRefSlow(output_size), stride, padding, out); + } + + // aten::max_unpool3d.out(Tensor self, Tensor indices, SymInt[3] output_size, int[3] stride, int[3] padding, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & max_unpool3d_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & indices, c10::SymIntArrayRef output_size, at::IntArrayRef stride, at::IntArrayRef padding) { + return at::_ops::max_unpool3d_out::redispatch(dispatchKeySet, self, indices, output_size, stride, padding, out); + } + + // aten::max_unpool3d.out(Tensor self, Tensor indices, SymInt[3] output_size, int[3] stride, int[3] padding, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & max_unpool3d_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & indices, c10::SymIntArrayRef output_size, at::IntArrayRef stride, at::IntArrayRef padding, at::Tensor & out) { + return at::_ops::max_unpool3d_out::redispatch(dispatchKeySet, self, indices, output_size, stride, padding, out); + } + + // aten::max_unpool3d(Tensor self, Tensor indices, SymInt[3] output_size, int[3] stride, int[3] padding) -> Tensor + inline at::Tensor max_unpool3d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & indices, at::IntArrayRef output_size, at::IntArrayRef stride, at::IntArrayRef padding) { + return at::_ops::max_unpool3d::redispatch(dispatchKeySet, self, indices, c10::fromIntArrayRefSlow(output_size), stride, padding); + } + + // aten::max_unpool3d(Tensor self, Tensor indices, SymInt[3] output_size, int[3] stride, int[3] padding) -> Tensor + inline at::Tensor max_unpool3d_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & indices, c10::SymIntArrayRef output_size, at::IntArrayRef stride, at::IntArrayRef padding) { + return at::_ops::max_unpool3d::redispatch(dispatchKeySet, self, indices, output_size, stride, padding); + } + + // aten::reflection_pad1d.out(Tensor self, SymInt[2] padding, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & reflection_pad1d_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef padding) { + return at::_ops::reflection_pad1d_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(padding), out); + } + + // aten::reflection_pad1d.out(Tensor self, SymInt[2] padding, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & reflection_pad1d_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef padding, at::Tensor & out) { + return at::_ops::reflection_pad1d_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(padding), out); + } + + // aten::reflection_pad1d.out(Tensor self, SymInt[2] padding, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & reflection_pad1d_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::SymIntArrayRef padding) { + return at::_ops::reflection_pad1d_out::redispatch(dispatchKeySet, self, padding, out); + } + + // aten::reflection_pad1d.out(Tensor self, SymInt[2] padding, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & reflection_pad1d_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef padding, at::Tensor & out) { + return at::_ops::reflection_pad1d_out::redispatch(dispatchKeySet, self, padding, out); + } + + // aten::reflection_pad1d(Tensor self, SymInt[2] padding) -> Tensor + inline at::Tensor reflection_pad1d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef padding) { + return at::_ops::reflection_pad1d::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(padding)); + } + + // aten::reflection_pad1d(Tensor self, SymInt[2] padding) -> Tensor + inline at::Tensor reflection_pad1d_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef padding) { + return at::_ops::reflection_pad1d::redispatch(dispatchKeySet, self, padding); + } + + // aten::reflection_pad1d_backward.grad_input(Tensor grad_output, Tensor self, SymInt[2] padding, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & reflection_pad1d_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, const at::Tensor & self, at::IntArrayRef padding) { + return at::_ops::reflection_pad1d_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, c10::fromIntArrayRefSlow(padding), grad_input); + } + + // aten::reflection_pad1d_backward.grad_input(Tensor grad_output, Tensor self, SymInt[2] padding, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & reflection_pad1d_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, at::IntArrayRef padding, at::Tensor & grad_input) { + return at::_ops::reflection_pad1d_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, c10::fromIntArrayRefSlow(padding), grad_input); + } + + // aten::reflection_pad1d_backward.grad_input(Tensor grad_output, Tensor self, SymInt[2] padding, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & reflection_pad1d_backward_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, const at::Tensor & self, c10::SymIntArrayRef padding) { + return at::_ops::reflection_pad1d_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, padding, grad_input); + } + + // aten::reflection_pad1d_backward.grad_input(Tensor grad_output, Tensor self, SymInt[2] padding, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & reflection_pad1d_backward_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, c10::SymIntArrayRef padding, at::Tensor & grad_input) { + return at::_ops::reflection_pad1d_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, padding, grad_input); + } + + // aten::reflection_pad1d_backward(Tensor grad_output, Tensor self, SymInt[2] padding) -> Tensor + inline at::Tensor reflection_pad1d_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, at::IntArrayRef padding) { + return at::_ops::reflection_pad1d_backward::redispatch(dispatchKeySet, grad_output, self, c10::fromIntArrayRefSlow(padding)); + } + + // aten::reflection_pad1d_backward(Tensor grad_output, Tensor self, SymInt[2] padding) -> Tensor + inline at::Tensor reflection_pad1d_backward_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, c10::SymIntArrayRef padding) { + return at::_ops::reflection_pad1d_backward::redispatch(dispatchKeySet, grad_output, self, padding); + } + + // aten::reflection_pad2d.out(Tensor self, SymInt[4] padding, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & reflection_pad2d_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef padding) { + return at::_ops::reflection_pad2d_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(padding), out); + } + + // aten::reflection_pad2d.out(Tensor self, SymInt[4] padding, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & reflection_pad2d_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef padding, at::Tensor & out) { + return at::_ops::reflection_pad2d_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(padding), out); + } + + // aten::reflection_pad2d.out(Tensor self, SymInt[4] padding, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & reflection_pad2d_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::SymIntArrayRef padding) { + return at::_ops::reflection_pad2d_out::redispatch(dispatchKeySet, self, padding, out); + } + + // aten::reflection_pad2d.out(Tensor self, SymInt[4] padding, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & reflection_pad2d_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef padding, at::Tensor & out) { + return at::_ops::reflection_pad2d_out::redispatch(dispatchKeySet, self, padding, out); + } + + // aten::reflection_pad2d(Tensor self, SymInt[4] padding) -> Tensor + inline at::Tensor reflection_pad2d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef padding) { + return at::_ops::reflection_pad2d::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(padding)); + } + + // aten::reflection_pad2d(Tensor self, SymInt[4] padding) -> Tensor + inline at::Tensor reflection_pad2d_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef padding) { + return at::_ops::reflection_pad2d::redispatch(dispatchKeySet, self, padding); + } + + // aten::reflection_pad2d_backward.grad_input(Tensor grad_output, Tensor self, SymInt[4] padding, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & reflection_pad2d_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, const at::Tensor & self, at::IntArrayRef padding) { + return at::_ops::reflection_pad2d_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, c10::fromIntArrayRefSlow(padding), grad_input); + } + + // aten::reflection_pad2d_backward.grad_input(Tensor grad_output, Tensor self, SymInt[4] padding, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & reflection_pad2d_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, at::IntArrayRef padding, at::Tensor & grad_input) { + return at::_ops::reflection_pad2d_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, c10::fromIntArrayRefSlow(padding), grad_input); + } + + // aten::reflection_pad2d_backward.grad_input(Tensor grad_output, Tensor self, SymInt[4] padding, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & reflection_pad2d_backward_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, const at::Tensor & self, c10::SymIntArrayRef padding) { + return at::_ops::reflection_pad2d_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, padding, grad_input); + } + + // aten::reflection_pad2d_backward.grad_input(Tensor grad_output, Tensor self, SymInt[4] padding, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & reflection_pad2d_backward_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, c10::SymIntArrayRef padding, at::Tensor & grad_input) { + return at::_ops::reflection_pad2d_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, padding, grad_input); + } + + // aten::reflection_pad2d_backward(Tensor grad_output, Tensor self, SymInt[4] padding) -> Tensor + inline at::Tensor reflection_pad2d_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, at::IntArrayRef padding) { + return at::_ops::reflection_pad2d_backward::redispatch(dispatchKeySet, grad_output, self, c10::fromIntArrayRefSlow(padding)); + } + + // aten::reflection_pad2d_backward(Tensor grad_output, Tensor self, SymInt[4] padding) -> Tensor + inline at::Tensor reflection_pad2d_backward_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, c10::SymIntArrayRef padding) { + return at::_ops::reflection_pad2d_backward::redispatch(dispatchKeySet, grad_output, self, padding); + } + + // aten::reflection_pad3d.out(Tensor self, SymInt[6] padding, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & reflection_pad3d_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef padding) { + return at::_ops::reflection_pad3d_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(padding), out); + } + + // aten::reflection_pad3d.out(Tensor self, SymInt[6] padding, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & reflection_pad3d_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef padding, at::Tensor & out) { + return at::_ops::reflection_pad3d_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(padding), out); + } + + // aten::reflection_pad3d.out(Tensor self, SymInt[6] padding, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & reflection_pad3d_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::SymIntArrayRef padding) { + return at::_ops::reflection_pad3d_out::redispatch(dispatchKeySet, self, padding, out); + } + + // aten::reflection_pad3d.out(Tensor self, SymInt[6] padding, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & reflection_pad3d_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef padding, at::Tensor & out) { + return at::_ops::reflection_pad3d_out::redispatch(dispatchKeySet, self, padding, out); + } + + // aten::reflection_pad3d(Tensor self, SymInt[6] padding) -> Tensor + inline at::Tensor reflection_pad3d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef padding) { + return at::_ops::reflection_pad3d::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(padding)); + } + + // aten::reflection_pad3d(Tensor self, SymInt[6] padding) -> Tensor + inline at::Tensor reflection_pad3d_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef padding) { + return at::_ops::reflection_pad3d::redispatch(dispatchKeySet, self, padding); + } + + // aten::reflection_pad3d_backward.grad_input(Tensor grad_output, Tensor self, SymInt[6] padding, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & reflection_pad3d_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, const at::Tensor & self, at::IntArrayRef padding) { + return at::_ops::reflection_pad3d_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, c10::fromIntArrayRefSlow(padding), grad_input); + } + + // aten::reflection_pad3d_backward.grad_input(Tensor grad_output, Tensor self, SymInt[6] padding, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & reflection_pad3d_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, at::IntArrayRef padding, at::Tensor & grad_input) { + return at::_ops::reflection_pad3d_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, c10::fromIntArrayRefSlow(padding), grad_input); + } + + // aten::reflection_pad3d_backward.grad_input(Tensor grad_output, Tensor self, SymInt[6] padding, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & reflection_pad3d_backward_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, const at::Tensor & self, c10::SymIntArrayRef padding) { + return at::_ops::reflection_pad3d_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, padding, grad_input); + } + + // aten::reflection_pad3d_backward.grad_input(Tensor grad_output, Tensor self, SymInt[6] padding, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & reflection_pad3d_backward_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, c10::SymIntArrayRef padding, at::Tensor & grad_input) { + return at::_ops::reflection_pad3d_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, padding, grad_input); + } + + // aten::reflection_pad3d_backward(Tensor grad_output, Tensor self, SymInt[6] padding) -> Tensor + inline at::Tensor reflection_pad3d_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, at::IntArrayRef padding) { + return at::_ops::reflection_pad3d_backward::redispatch(dispatchKeySet, grad_output, self, c10::fromIntArrayRefSlow(padding)); + } + + // aten::reflection_pad3d_backward(Tensor grad_output, Tensor self, SymInt[6] padding) -> Tensor + inline at::Tensor reflection_pad3d_backward_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, c10::SymIntArrayRef padding) { + return at::_ops::reflection_pad3d_backward::redispatch(dispatchKeySet, grad_output, self, padding); + } + + // aten::replication_pad1d.out(Tensor self, SymInt[2] padding, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & replication_pad1d_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef padding) { + return at::_ops::replication_pad1d_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(padding), out); + } + + // aten::replication_pad1d.out(Tensor self, SymInt[2] padding, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & replication_pad1d_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef padding, at::Tensor & out) { + return at::_ops::replication_pad1d_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(padding), out); + } + + // aten::replication_pad1d.out(Tensor self, SymInt[2] padding, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & replication_pad1d_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::SymIntArrayRef padding) { + return at::_ops::replication_pad1d_out::redispatch(dispatchKeySet, self, padding, out); + } + + // aten::replication_pad1d.out(Tensor self, SymInt[2] padding, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & replication_pad1d_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef padding, at::Tensor & out) { + return at::_ops::replication_pad1d_out::redispatch(dispatchKeySet, self, padding, out); + } + + // aten::replication_pad1d(Tensor self, SymInt[2] padding) -> Tensor + inline at::Tensor replication_pad1d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef padding) { + return at::_ops::replication_pad1d::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(padding)); + } + + // aten::replication_pad1d(Tensor self, SymInt[2] padding) -> Tensor + inline at::Tensor replication_pad1d_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef padding) { + return at::_ops::replication_pad1d::redispatch(dispatchKeySet, self, padding); + } + + // aten::replication_pad1d_backward.grad_input(Tensor grad_output, Tensor self, SymInt[2] padding, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & replication_pad1d_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, const at::Tensor & self, at::IntArrayRef padding) { + return at::_ops::replication_pad1d_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, c10::fromIntArrayRefSlow(padding), grad_input); + } + + // aten::replication_pad1d_backward.grad_input(Tensor grad_output, Tensor self, SymInt[2] padding, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & replication_pad1d_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, at::IntArrayRef padding, at::Tensor & grad_input) { + return at::_ops::replication_pad1d_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, c10::fromIntArrayRefSlow(padding), grad_input); + } + + // aten::replication_pad1d_backward.grad_input(Tensor grad_output, Tensor self, SymInt[2] padding, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & replication_pad1d_backward_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, const at::Tensor & self, c10::SymIntArrayRef padding) { + return at::_ops::replication_pad1d_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, padding, grad_input); + } + + // aten::replication_pad1d_backward.grad_input(Tensor grad_output, Tensor self, SymInt[2] padding, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & replication_pad1d_backward_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, c10::SymIntArrayRef padding, at::Tensor & grad_input) { + return at::_ops::replication_pad1d_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, padding, grad_input); + } + + // aten::replication_pad1d_backward(Tensor grad_output, Tensor self, SymInt[2] padding) -> Tensor + inline at::Tensor replication_pad1d_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, at::IntArrayRef padding) { + return at::_ops::replication_pad1d_backward::redispatch(dispatchKeySet, grad_output, self, c10::fromIntArrayRefSlow(padding)); + } + + // aten::replication_pad1d_backward(Tensor grad_output, Tensor self, SymInt[2] padding) -> Tensor + inline at::Tensor replication_pad1d_backward_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, c10::SymIntArrayRef padding) { + return at::_ops::replication_pad1d_backward::redispatch(dispatchKeySet, grad_output, self, padding); + } + + // aten::replication_pad2d.out(Tensor self, SymInt[4] padding, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & replication_pad2d_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef padding) { + return at::_ops::replication_pad2d_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(padding), out); + } + + // aten::replication_pad2d.out(Tensor self, SymInt[4] padding, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & replication_pad2d_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef padding, at::Tensor & out) { + return at::_ops::replication_pad2d_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(padding), out); + } + + // aten::replication_pad2d.out(Tensor self, SymInt[4] padding, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & replication_pad2d_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::SymIntArrayRef padding) { + return at::_ops::replication_pad2d_out::redispatch(dispatchKeySet, self, padding, out); + } + + // aten::replication_pad2d.out(Tensor self, SymInt[4] padding, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & replication_pad2d_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef padding, at::Tensor & out) { + return at::_ops::replication_pad2d_out::redispatch(dispatchKeySet, self, padding, out); + } + + // aten::replication_pad2d(Tensor self, SymInt[4] padding) -> Tensor + inline at::Tensor replication_pad2d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef padding) { + return at::_ops::replication_pad2d::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(padding)); + } + + // aten::replication_pad2d(Tensor self, SymInt[4] padding) -> Tensor + inline at::Tensor replication_pad2d_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef padding) { + return at::_ops::replication_pad2d::redispatch(dispatchKeySet, self, padding); + } + + // aten::replication_pad2d_backward.grad_input(Tensor grad_output, Tensor self, SymInt[4] padding, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & replication_pad2d_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, const at::Tensor & self, at::IntArrayRef padding) { + return at::_ops::replication_pad2d_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, c10::fromIntArrayRefSlow(padding), grad_input); + } + + // aten::replication_pad2d_backward.grad_input(Tensor grad_output, Tensor self, SymInt[4] padding, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & replication_pad2d_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, at::IntArrayRef padding, at::Tensor & grad_input) { + return at::_ops::replication_pad2d_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, c10::fromIntArrayRefSlow(padding), grad_input); + } + + // aten::replication_pad2d_backward.grad_input(Tensor grad_output, Tensor self, SymInt[4] padding, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & replication_pad2d_backward_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, const at::Tensor & self, c10::SymIntArrayRef padding) { + return at::_ops::replication_pad2d_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, padding, grad_input); + } + + // aten::replication_pad2d_backward.grad_input(Tensor grad_output, Tensor self, SymInt[4] padding, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & replication_pad2d_backward_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, c10::SymIntArrayRef padding, at::Tensor & grad_input) { + return at::_ops::replication_pad2d_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, padding, grad_input); + } + + // aten::replication_pad2d_backward(Tensor grad_output, Tensor self, SymInt[4] padding) -> Tensor + inline at::Tensor replication_pad2d_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, at::IntArrayRef padding) { + return at::_ops::replication_pad2d_backward::redispatch(dispatchKeySet, grad_output, self, c10::fromIntArrayRefSlow(padding)); + } + + // aten::replication_pad2d_backward(Tensor grad_output, Tensor self, SymInt[4] padding) -> Tensor + inline at::Tensor replication_pad2d_backward_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, c10::SymIntArrayRef padding) { + return at::_ops::replication_pad2d_backward::redispatch(dispatchKeySet, grad_output, self, padding); + } + + // aten::replication_pad3d.out(Tensor self, SymInt[6] padding, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & replication_pad3d_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef padding) { + return at::_ops::replication_pad3d_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(padding), out); + } + + // aten::replication_pad3d.out(Tensor self, SymInt[6] padding, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & replication_pad3d_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef padding, at::Tensor & out) { + return at::_ops::replication_pad3d_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(padding), out); + } + + // aten::replication_pad3d.out(Tensor self, SymInt[6] padding, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & replication_pad3d_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::SymIntArrayRef padding) { + return at::_ops::replication_pad3d_out::redispatch(dispatchKeySet, self, padding, out); + } + + // aten::replication_pad3d.out(Tensor self, SymInt[6] padding, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & replication_pad3d_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef padding, at::Tensor & out) { + return at::_ops::replication_pad3d_out::redispatch(dispatchKeySet, self, padding, out); + } + + // aten::replication_pad3d(Tensor self, SymInt[6] padding) -> Tensor + inline at::Tensor replication_pad3d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef padding) { + return at::_ops::replication_pad3d::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(padding)); + } + + // aten::replication_pad3d(Tensor self, SymInt[6] padding) -> Tensor + inline at::Tensor replication_pad3d_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef padding) { + return at::_ops::replication_pad3d::redispatch(dispatchKeySet, self, padding); + } + + // aten::replication_pad3d_backward.grad_input(Tensor grad_output, Tensor self, SymInt[6] padding, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & replication_pad3d_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, const at::Tensor & self, at::IntArrayRef padding) { + return at::_ops::replication_pad3d_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, c10::fromIntArrayRefSlow(padding), grad_input); + } + + // aten::replication_pad3d_backward.grad_input(Tensor grad_output, Tensor self, SymInt[6] padding, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & replication_pad3d_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, at::IntArrayRef padding, at::Tensor & grad_input) { + return at::_ops::replication_pad3d_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, c10::fromIntArrayRefSlow(padding), grad_input); + } + + // aten::replication_pad3d_backward.grad_input(Tensor grad_output, Tensor self, SymInt[6] padding, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & replication_pad3d_backward_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, const at::Tensor & self, c10::SymIntArrayRef padding) { + return at::_ops::replication_pad3d_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, padding, grad_input); + } + + // aten::replication_pad3d_backward.grad_input(Tensor grad_output, Tensor self, SymInt[6] padding, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & replication_pad3d_backward_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, c10::SymIntArrayRef padding, at::Tensor & grad_input) { + return at::_ops::replication_pad3d_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, padding, grad_input); + } + + // aten::replication_pad3d_backward(Tensor grad_output, Tensor self, SymInt[6] padding) -> Tensor + inline at::Tensor replication_pad3d_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, at::IntArrayRef padding) { + return at::_ops::replication_pad3d_backward::redispatch(dispatchKeySet, grad_output, self, c10::fromIntArrayRefSlow(padding)); + } + + // aten::replication_pad3d_backward(Tensor grad_output, Tensor self, SymInt[6] padding) -> Tensor + inline at::Tensor replication_pad3d_backward_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, c10::SymIntArrayRef padding) { + return at::_ops::replication_pad3d_backward::redispatch(dispatchKeySet, grad_output, self, padding); + } + + // aten::_pad_circular(Tensor self, SymInt[] pad) -> Tensor + inline at::Tensor _pad_circular(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef pad) { + return at::_ops::_pad_circular::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(pad)); + } + + // aten::_pad_circular(Tensor self, SymInt[] pad) -> Tensor + inline at::Tensor _pad_circular_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef pad) { + return at::_ops::_pad_circular::redispatch(dispatchKeySet, self, pad); + } + + // aten::_pad_enum(Tensor self, SymInt[] pad, int mode, float? value=None) -> Tensor + inline at::Tensor _pad_enum(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef pad, int64_t mode, c10::optional value=c10::nullopt) { + return at::_ops::_pad_enum::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(pad), mode, value); + } + + // aten::_pad_enum(Tensor self, SymInt[] pad, int mode, float? value=None) -> Tensor + inline at::Tensor _pad_enum_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef pad, int64_t mode, c10::optional value=c10::nullopt) { + return at::_ops::_pad_enum::redispatch(dispatchKeySet, self, pad, mode, value); + } + + // aten::pad(Tensor self, SymInt[] pad, str mode="constant", float? value=None) -> Tensor + inline at::Tensor pad(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef pad, c10::string_view mode="constant", c10::optional value=c10::nullopt) { + return at::_ops::pad::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(pad), mode, value); + } + + // aten::pad(Tensor self, SymInt[] pad, str mode="constant", float? value=None) -> Tensor + inline at::Tensor pad_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef pad, c10::string_view mode="constant", c10::optional value=c10::nullopt) { + return at::_ops::pad::redispatch(dispatchKeySet, self, pad, mode, value); + } + + // aten::upsample_linear1d.vec(Tensor input, SymInt[]? output_size, bool align_corners, float[]? scale_factors) -> Tensor + inline at::Tensor upsample_linear1d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, at::OptionalIntArrayRef output_size, bool align_corners, c10::optional> scale_factors) { + return at::_ops::upsample_linear1d_vec::redispatch(dispatchKeySet, input, output_size.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*output_size)) : c10::nullopt, align_corners, scale_factors); + } + + // aten::upsample_linear1d.vec(Tensor input, SymInt[]? output_size, bool align_corners, float[]? scale_factors) -> Tensor + inline at::Tensor upsample_linear1d_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, at::OptionalSymIntArrayRef output_size, bool align_corners, c10::optional> scale_factors) { + return at::_ops::upsample_linear1d_vec::redispatch(dispatchKeySet, input, output_size, align_corners, scale_factors); + } + + // aten::upsample_bilinear2d.vec(Tensor input, SymInt[]? output_size, bool align_corners, float[]? scale_factors) -> Tensor + inline at::Tensor upsample_bilinear2d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, at::OptionalIntArrayRef output_size, bool align_corners, c10::optional> scale_factors) { + return at::_ops::upsample_bilinear2d_vec::redispatch(dispatchKeySet, input, output_size.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*output_size)) : c10::nullopt, align_corners, scale_factors); + } + + // aten::upsample_bilinear2d.vec(Tensor input, SymInt[]? output_size, bool align_corners, float[]? scale_factors) -> Tensor + inline at::Tensor upsample_bilinear2d_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, at::OptionalSymIntArrayRef output_size, bool align_corners, c10::optional> scale_factors) { + return at::_ops::upsample_bilinear2d_vec::redispatch(dispatchKeySet, input, output_size, align_corners, scale_factors); + } + + // aten::_upsample_bilinear2d_aa.vec(Tensor input, SymInt[]? output_size, bool align_corners, float[]? scale_factors) -> Tensor + inline at::Tensor _upsample_bilinear2d_aa(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, at::OptionalIntArrayRef output_size, bool align_corners, c10::optional> scale_factors) { + return at::_ops::_upsample_bilinear2d_aa_vec::redispatch(dispatchKeySet, input, output_size.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*output_size)) : c10::nullopt, align_corners, scale_factors); + } + + // aten::_upsample_bilinear2d_aa.vec(Tensor input, SymInt[]? output_size, bool align_corners, float[]? scale_factors) -> Tensor + inline at::Tensor _upsample_bilinear2d_aa_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, at::OptionalSymIntArrayRef output_size, bool align_corners, c10::optional> scale_factors) { + return at::_ops::_upsample_bilinear2d_aa_vec::redispatch(dispatchKeySet, input, output_size, align_corners, scale_factors); + } + + // aten::upsample_trilinear3d.vec(Tensor input, SymInt[]? output_size, bool align_corners, float[]? scale_factors) -> Tensor + inline at::Tensor upsample_trilinear3d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, at::OptionalIntArrayRef output_size, bool align_corners, c10::optional> scale_factors) { + return at::_ops::upsample_trilinear3d_vec::redispatch(dispatchKeySet, input, output_size.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*output_size)) : c10::nullopt, align_corners, scale_factors); + } + + // aten::upsample_trilinear3d.vec(Tensor input, SymInt[]? output_size, bool align_corners, float[]? scale_factors) -> Tensor + inline at::Tensor upsample_trilinear3d_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, at::OptionalSymIntArrayRef output_size, bool align_corners, c10::optional> scale_factors) { + return at::_ops::upsample_trilinear3d_vec::redispatch(dispatchKeySet, input, output_size, align_corners, scale_factors); + } + + // aten::upsample_bicubic2d.vec(Tensor input, SymInt[]? output_size, bool align_corners, float[]? scale_factors) -> Tensor + inline at::Tensor upsample_bicubic2d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, at::OptionalIntArrayRef output_size, bool align_corners, c10::optional> scale_factors) { + return at::_ops::upsample_bicubic2d_vec::redispatch(dispatchKeySet, input, output_size.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*output_size)) : c10::nullopt, align_corners, scale_factors); + } + + // aten::upsample_bicubic2d.vec(Tensor input, SymInt[]? output_size, bool align_corners, float[]? scale_factors) -> Tensor + inline at::Tensor upsample_bicubic2d_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, at::OptionalSymIntArrayRef output_size, bool align_corners, c10::optional> scale_factors) { + return at::_ops::upsample_bicubic2d_vec::redispatch(dispatchKeySet, input, output_size, align_corners, scale_factors); + } + + // aten::_upsample_bicubic2d_aa.vec(Tensor input, SymInt[]? output_size, bool align_corners, float[]? scale_factors) -> Tensor + inline at::Tensor _upsample_bicubic2d_aa(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, at::OptionalIntArrayRef output_size, bool align_corners, c10::optional> scale_factors) { + return at::_ops::_upsample_bicubic2d_aa_vec::redispatch(dispatchKeySet, input, output_size.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*output_size)) : c10::nullopt, align_corners, scale_factors); + } + + // aten::_upsample_bicubic2d_aa.vec(Tensor input, SymInt[]? output_size, bool align_corners, float[]? scale_factors) -> Tensor + inline at::Tensor _upsample_bicubic2d_aa_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, at::OptionalSymIntArrayRef output_size, bool align_corners, c10::optional> scale_factors) { + return at::_ops::_upsample_bicubic2d_aa_vec::redispatch(dispatchKeySet, input, output_size, align_corners, scale_factors); + } + + // aten::upsample_nearest1d.vec(Tensor input, SymInt[]? output_size, float[]? scale_factors) -> Tensor + inline at::Tensor upsample_nearest1d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, at::OptionalIntArrayRef output_size, c10::optional> scale_factors) { + return at::_ops::upsample_nearest1d_vec::redispatch(dispatchKeySet, input, output_size.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*output_size)) : c10::nullopt, scale_factors); + } + + // aten::upsample_nearest1d.vec(Tensor input, SymInt[]? output_size, float[]? scale_factors) -> Tensor + inline at::Tensor upsample_nearest1d_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, at::OptionalSymIntArrayRef output_size, c10::optional> scale_factors) { + return at::_ops::upsample_nearest1d_vec::redispatch(dispatchKeySet, input, output_size, scale_factors); + } + + // aten::_upsample_nearest_exact1d.vec(Tensor input, SymInt[]? output_size, float[]? scale_factors) -> Tensor + inline at::Tensor _upsample_nearest_exact1d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, at::OptionalIntArrayRef output_size, c10::optional> scale_factors) { + return at::_ops::_upsample_nearest_exact1d_vec::redispatch(dispatchKeySet, input, output_size.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*output_size)) : c10::nullopt, scale_factors); + } + + // aten::_upsample_nearest_exact1d.vec(Tensor input, SymInt[]? output_size, float[]? scale_factors) -> Tensor + inline at::Tensor _upsample_nearest_exact1d_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, at::OptionalSymIntArrayRef output_size, c10::optional> scale_factors) { + return at::_ops::_upsample_nearest_exact1d_vec::redispatch(dispatchKeySet, input, output_size, scale_factors); + } + + // aten::upsample_nearest2d.vec(Tensor input, SymInt[]? output_size, float[]? scale_factors) -> Tensor + inline at::Tensor upsample_nearest2d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, at::OptionalIntArrayRef output_size, c10::optional> scale_factors) { + return at::_ops::upsample_nearest2d_vec::redispatch(dispatchKeySet, input, output_size.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*output_size)) : c10::nullopt, scale_factors); + } + + // aten::upsample_nearest2d.vec(Tensor input, SymInt[]? output_size, float[]? scale_factors) -> Tensor + inline at::Tensor upsample_nearest2d_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, at::OptionalSymIntArrayRef output_size, c10::optional> scale_factors) { + return at::_ops::upsample_nearest2d_vec::redispatch(dispatchKeySet, input, output_size, scale_factors); + } + + // aten::_upsample_nearest_exact2d.vec(Tensor input, SymInt[]? output_size, float[]? scale_factors) -> Tensor + inline at::Tensor _upsample_nearest_exact2d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, at::OptionalIntArrayRef output_size, c10::optional> scale_factors) { + return at::_ops::_upsample_nearest_exact2d_vec::redispatch(dispatchKeySet, input, output_size.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*output_size)) : c10::nullopt, scale_factors); + } + + // aten::_upsample_nearest_exact2d.vec(Tensor input, SymInt[]? output_size, float[]? scale_factors) -> Tensor + inline at::Tensor _upsample_nearest_exact2d_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, at::OptionalSymIntArrayRef output_size, c10::optional> scale_factors) { + return at::_ops::_upsample_nearest_exact2d_vec::redispatch(dispatchKeySet, input, output_size, scale_factors); + } + + // aten::upsample_nearest3d.vec(Tensor input, SymInt[]? output_size, float[]? scale_factors) -> Tensor + inline at::Tensor upsample_nearest3d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, at::OptionalIntArrayRef output_size, c10::optional> scale_factors) { + return at::_ops::upsample_nearest3d_vec::redispatch(dispatchKeySet, input, output_size.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*output_size)) : c10::nullopt, scale_factors); + } + + // aten::upsample_nearest3d.vec(Tensor input, SymInt[]? output_size, float[]? scale_factors) -> Tensor + inline at::Tensor upsample_nearest3d_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, at::OptionalSymIntArrayRef output_size, c10::optional> scale_factors) { + return at::_ops::upsample_nearest3d_vec::redispatch(dispatchKeySet, input, output_size, scale_factors); + } + + // aten::_upsample_nearest_exact3d.vec(Tensor input, SymInt[]? output_size, float[]? scale_factors) -> Tensor + inline at::Tensor _upsample_nearest_exact3d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, at::OptionalIntArrayRef output_size, c10::optional> scale_factors) { + return at::_ops::_upsample_nearest_exact3d_vec::redispatch(dispatchKeySet, input, output_size.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*output_size)) : c10::nullopt, scale_factors); + } + + // aten::_upsample_nearest_exact3d.vec(Tensor input, SymInt[]? output_size, float[]? scale_factors) -> Tensor + inline at::Tensor _upsample_nearest_exact3d_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, at::OptionalSymIntArrayRef output_size, c10::optional> scale_factors) { + return at::_ops::_upsample_nearest_exact3d_vec::redispatch(dispatchKeySet, input, output_size, scale_factors); + } + + // aten::upsample_linear1d.out(Tensor self, SymInt[1] output_size, bool align_corners, float? scales=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & upsample_linear1d_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef output_size, bool align_corners, c10::optional scales=c10::nullopt) { + return at::_ops::upsample_linear1d_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(output_size), align_corners, scales, out); + } + + // aten::upsample_linear1d.out(Tensor self, SymInt[1] output_size, bool align_corners, float? scales=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & upsample_linear1d_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef output_size, bool align_corners, c10::optional scales, at::Tensor & out) { + return at::_ops::upsample_linear1d_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(output_size), align_corners, scales, out); + } + + // aten::upsample_linear1d.out(Tensor self, SymInt[1] output_size, bool align_corners, float? scales=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & upsample_linear1d_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::SymIntArrayRef output_size, bool align_corners, c10::optional scales=c10::nullopt) { + return at::_ops::upsample_linear1d_out::redispatch(dispatchKeySet, self, output_size, align_corners, scales, out); + } + + // aten::upsample_linear1d.out(Tensor self, SymInt[1] output_size, bool align_corners, float? scales=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & upsample_linear1d_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef output_size, bool align_corners, c10::optional scales, at::Tensor & out) { + return at::_ops::upsample_linear1d_out::redispatch(dispatchKeySet, self, output_size, align_corners, scales, out); + } + + // aten::upsample_linear1d(Tensor self, SymInt[1] output_size, bool align_corners, float? scales=None) -> Tensor + inline at::Tensor upsample_linear1d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef output_size, bool align_corners, c10::optional scales=c10::nullopt) { + return at::_ops::upsample_linear1d::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(output_size), align_corners, scales); + } + + // aten::upsample_linear1d(Tensor self, SymInt[1] output_size, bool align_corners, float? scales=None) -> Tensor + inline at::Tensor upsample_linear1d_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef output_size, bool align_corners, c10::optional scales=c10::nullopt) { + return at::_ops::upsample_linear1d::redispatch(dispatchKeySet, self, output_size, align_corners, scales); + } + + // aten::upsample_linear1d_backward.grad_input(Tensor grad_output, SymInt[1] output_size, SymInt[3] input_size, bool align_corners, float? scales=None, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & upsample_linear1d_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, at::IntArrayRef output_size, at::IntArrayRef input_size, bool align_corners, c10::optional scales=c10::nullopt) { + return at::_ops::upsample_linear1d_backward_grad_input::redispatch(dispatchKeySet, grad_output, c10::fromIntArrayRefSlow(output_size), c10::fromIntArrayRefSlow(input_size), align_corners, scales, grad_input); + } + + // aten::upsample_linear1d_backward.grad_input(Tensor grad_output, SymInt[1] output_size, SymInt[3] input_size, bool align_corners, float? scales=None, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & upsample_linear1d_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, at::IntArrayRef output_size, at::IntArrayRef input_size, bool align_corners, c10::optional scales, at::Tensor & grad_input) { + return at::_ops::upsample_linear1d_backward_grad_input::redispatch(dispatchKeySet, grad_output, c10::fromIntArrayRefSlow(output_size), c10::fromIntArrayRefSlow(input_size), align_corners, scales, grad_input); + } + + // aten::upsample_linear1d_backward.grad_input(Tensor grad_output, SymInt[1] output_size, SymInt[3] input_size, bool align_corners, float? scales=None, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & upsample_linear1d_backward_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, c10::SymIntArrayRef output_size, c10::SymIntArrayRef input_size, bool align_corners, c10::optional scales=c10::nullopt) { + return at::_ops::upsample_linear1d_backward_grad_input::redispatch(dispatchKeySet, grad_output, output_size, input_size, align_corners, scales, grad_input); + } + + // aten::upsample_linear1d_backward.grad_input(Tensor grad_output, SymInt[1] output_size, SymInt[3] input_size, bool align_corners, float? scales=None, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & upsample_linear1d_backward_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, c10::SymIntArrayRef output_size, c10::SymIntArrayRef input_size, bool align_corners, c10::optional scales, at::Tensor & grad_input) { + return at::_ops::upsample_linear1d_backward_grad_input::redispatch(dispatchKeySet, grad_output, output_size, input_size, align_corners, scales, grad_input); + } + + // aten::upsample_linear1d_backward(Tensor grad_output, SymInt[1] output_size, SymInt[3] input_size, bool align_corners, float? scales=None) -> Tensor + inline at::Tensor upsample_linear1d_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, at::IntArrayRef output_size, at::IntArrayRef input_size, bool align_corners, c10::optional scales=c10::nullopt) { + return at::_ops::upsample_linear1d_backward::redispatch(dispatchKeySet, grad_output, c10::fromIntArrayRefSlow(output_size), c10::fromIntArrayRefSlow(input_size), align_corners, scales); + } + + // aten::upsample_linear1d_backward(Tensor grad_output, SymInt[1] output_size, SymInt[3] input_size, bool align_corners, float? scales=None) -> Tensor + inline at::Tensor upsample_linear1d_backward_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, c10::SymIntArrayRef output_size, c10::SymIntArrayRef input_size, bool align_corners, c10::optional scales=c10::nullopt) { + return at::_ops::upsample_linear1d_backward::redispatch(dispatchKeySet, grad_output, output_size, input_size, align_corners, scales); + } + + // aten::upsample_bilinear2d.out(Tensor self, SymInt[2] output_size, bool align_corners, float? scales_h=None, float? scales_w=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & upsample_bilinear2d_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef output_size, bool align_corners, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::upsample_bilinear2d_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(output_size), align_corners, scales_h, scales_w, out); + } + + // aten::upsample_bilinear2d.out(Tensor self, SymInt[2] output_size, bool align_corners, float? scales_h=None, float? scales_w=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & upsample_bilinear2d_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef output_size, bool align_corners, c10::optional scales_h, c10::optional scales_w, at::Tensor & out) { + return at::_ops::upsample_bilinear2d_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(output_size), align_corners, scales_h, scales_w, out); + } + + // aten::upsample_bilinear2d.out(Tensor self, SymInt[2] output_size, bool align_corners, float? scales_h=None, float? scales_w=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & upsample_bilinear2d_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::SymIntArrayRef output_size, bool align_corners, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::upsample_bilinear2d_out::redispatch(dispatchKeySet, self, output_size, align_corners, scales_h, scales_w, out); + } + + // aten::upsample_bilinear2d.out(Tensor self, SymInt[2] output_size, bool align_corners, float? scales_h=None, float? scales_w=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & upsample_bilinear2d_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef output_size, bool align_corners, c10::optional scales_h, c10::optional scales_w, at::Tensor & out) { + return at::_ops::upsample_bilinear2d_out::redispatch(dispatchKeySet, self, output_size, align_corners, scales_h, scales_w, out); + } + + // aten::upsample_bilinear2d(Tensor self, SymInt[2] output_size, bool align_corners, float? scales_h=None, float? scales_w=None) -> Tensor + inline at::Tensor upsample_bilinear2d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef output_size, bool align_corners, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::upsample_bilinear2d::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(output_size), align_corners, scales_h, scales_w); + } + + // aten::upsample_bilinear2d(Tensor self, SymInt[2] output_size, bool align_corners, float? scales_h=None, float? scales_w=None) -> Tensor + inline at::Tensor upsample_bilinear2d_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef output_size, bool align_corners, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::upsample_bilinear2d::redispatch(dispatchKeySet, self, output_size, align_corners, scales_h, scales_w); + } + + // aten::upsample_bilinear2d_backward.grad_input(Tensor grad_output, SymInt[2] output_size, SymInt[4] input_size, bool align_corners, float? scales_h=None, float? scales_w=None, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & upsample_bilinear2d_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, at::IntArrayRef output_size, at::IntArrayRef input_size, bool align_corners, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::upsample_bilinear2d_backward_grad_input::redispatch(dispatchKeySet, grad_output, c10::fromIntArrayRefSlow(output_size), c10::fromIntArrayRefSlow(input_size), align_corners, scales_h, scales_w, grad_input); + } + + // aten::upsample_bilinear2d_backward.grad_input(Tensor grad_output, SymInt[2] output_size, SymInt[4] input_size, bool align_corners, float? scales_h=None, float? scales_w=None, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & upsample_bilinear2d_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, at::IntArrayRef output_size, at::IntArrayRef input_size, bool align_corners, c10::optional scales_h, c10::optional scales_w, at::Tensor & grad_input) { + return at::_ops::upsample_bilinear2d_backward_grad_input::redispatch(dispatchKeySet, grad_output, c10::fromIntArrayRefSlow(output_size), c10::fromIntArrayRefSlow(input_size), align_corners, scales_h, scales_w, grad_input); + } + + // aten::upsample_bilinear2d_backward.grad_input(Tensor grad_output, SymInt[2] output_size, SymInt[4] input_size, bool align_corners, float? scales_h=None, float? scales_w=None, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & upsample_bilinear2d_backward_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, c10::SymIntArrayRef output_size, c10::SymIntArrayRef input_size, bool align_corners, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::upsample_bilinear2d_backward_grad_input::redispatch(dispatchKeySet, grad_output, output_size, input_size, align_corners, scales_h, scales_w, grad_input); + } + + // aten::upsample_bilinear2d_backward.grad_input(Tensor grad_output, SymInt[2] output_size, SymInt[4] input_size, bool align_corners, float? scales_h=None, float? scales_w=None, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & upsample_bilinear2d_backward_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, c10::SymIntArrayRef output_size, c10::SymIntArrayRef input_size, bool align_corners, c10::optional scales_h, c10::optional scales_w, at::Tensor & grad_input) { + return at::_ops::upsample_bilinear2d_backward_grad_input::redispatch(dispatchKeySet, grad_output, output_size, input_size, align_corners, scales_h, scales_w, grad_input); + } + + // aten::upsample_bilinear2d_backward(Tensor grad_output, SymInt[2] output_size, SymInt[4] input_size, bool align_corners, float? scales_h=None, float? scales_w=None) -> Tensor + inline at::Tensor upsample_bilinear2d_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, at::IntArrayRef output_size, at::IntArrayRef input_size, bool align_corners, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::upsample_bilinear2d_backward::redispatch(dispatchKeySet, grad_output, c10::fromIntArrayRefSlow(output_size), c10::fromIntArrayRefSlow(input_size), align_corners, scales_h, scales_w); + } + + // aten::upsample_bilinear2d_backward(Tensor grad_output, SymInt[2] output_size, SymInt[4] input_size, bool align_corners, float? scales_h=None, float? scales_w=None) -> Tensor + inline at::Tensor upsample_bilinear2d_backward_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, c10::SymIntArrayRef output_size, c10::SymIntArrayRef input_size, bool align_corners, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::upsample_bilinear2d_backward::redispatch(dispatchKeySet, grad_output, output_size, input_size, align_corners, scales_h, scales_w); + } + + // aten::_upsample_bilinear2d_aa.out(Tensor self, SymInt[2] output_size, bool align_corners, float? scales_h=None, float? scales_w=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _upsample_bilinear2d_aa_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef output_size, bool align_corners, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::_upsample_bilinear2d_aa_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(output_size), align_corners, scales_h, scales_w, out); + } + + // aten::_upsample_bilinear2d_aa.out(Tensor self, SymInt[2] output_size, bool align_corners, float? scales_h=None, float? scales_w=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _upsample_bilinear2d_aa_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef output_size, bool align_corners, c10::optional scales_h, c10::optional scales_w, at::Tensor & out) { + return at::_ops::_upsample_bilinear2d_aa_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(output_size), align_corners, scales_h, scales_w, out); + } + + // aten::_upsample_bilinear2d_aa.out(Tensor self, SymInt[2] output_size, bool align_corners, float? scales_h=None, float? scales_w=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _upsample_bilinear2d_aa_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::SymIntArrayRef output_size, bool align_corners, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::_upsample_bilinear2d_aa_out::redispatch(dispatchKeySet, self, output_size, align_corners, scales_h, scales_w, out); + } + + // aten::_upsample_bilinear2d_aa.out(Tensor self, SymInt[2] output_size, bool align_corners, float? scales_h=None, float? scales_w=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _upsample_bilinear2d_aa_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef output_size, bool align_corners, c10::optional scales_h, c10::optional scales_w, at::Tensor & out) { + return at::_ops::_upsample_bilinear2d_aa_out::redispatch(dispatchKeySet, self, output_size, align_corners, scales_h, scales_w, out); + } + + // aten::_upsample_bilinear2d_aa(Tensor self, SymInt[2] output_size, bool align_corners, float? scales_h=None, float? scales_w=None) -> Tensor + inline at::Tensor _upsample_bilinear2d_aa(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef output_size, bool align_corners, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::_upsample_bilinear2d_aa::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(output_size), align_corners, scales_h, scales_w); + } + + // aten::_upsample_bilinear2d_aa(Tensor self, SymInt[2] output_size, bool align_corners, float? scales_h=None, float? scales_w=None) -> Tensor + inline at::Tensor _upsample_bilinear2d_aa_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef output_size, bool align_corners, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::_upsample_bilinear2d_aa::redispatch(dispatchKeySet, self, output_size, align_corners, scales_h, scales_w); + } + + // aten::_upsample_bilinear2d_aa_backward.grad_input(Tensor grad_output, SymInt[2] output_size, SymInt[4] input_size, bool align_corners, float? scales_h=None, float? scales_w=None, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & _upsample_bilinear2d_aa_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, at::IntArrayRef output_size, at::IntArrayRef input_size, bool align_corners, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::_upsample_bilinear2d_aa_backward_grad_input::redispatch(dispatchKeySet, grad_output, c10::fromIntArrayRefSlow(output_size), c10::fromIntArrayRefSlow(input_size), align_corners, scales_h, scales_w, grad_input); + } + + // aten::_upsample_bilinear2d_aa_backward.grad_input(Tensor grad_output, SymInt[2] output_size, SymInt[4] input_size, bool align_corners, float? scales_h=None, float? scales_w=None, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & _upsample_bilinear2d_aa_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, at::IntArrayRef output_size, at::IntArrayRef input_size, bool align_corners, c10::optional scales_h, c10::optional scales_w, at::Tensor & grad_input) { + return at::_ops::_upsample_bilinear2d_aa_backward_grad_input::redispatch(dispatchKeySet, grad_output, c10::fromIntArrayRefSlow(output_size), c10::fromIntArrayRefSlow(input_size), align_corners, scales_h, scales_w, grad_input); + } + + // aten::_upsample_bilinear2d_aa_backward.grad_input(Tensor grad_output, SymInt[2] output_size, SymInt[4] input_size, bool align_corners, float? scales_h=None, float? scales_w=None, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & _upsample_bilinear2d_aa_backward_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, c10::SymIntArrayRef output_size, c10::SymIntArrayRef input_size, bool align_corners, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::_upsample_bilinear2d_aa_backward_grad_input::redispatch(dispatchKeySet, grad_output, output_size, input_size, align_corners, scales_h, scales_w, grad_input); + } + + // aten::_upsample_bilinear2d_aa_backward.grad_input(Tensor grad_output, SymInt[2] output_size, SymInt[4] input_size, bool align_corners, float? scales_h=None, float? scales_w=None, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & _upsample_bilinear2d_aa_backward_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, c10::SymIntArrayRef output_size, c10::SymIntArrayRef input_size, bool align_corners, c10::optional scales_h, c10::optional scales_w, at::Tensor & grad_input) { + return at::_ops::_upsample_bilinear2d_aa_backward_grad_input::redispatch(dispatchKeySet, grad_output, output_size, input_size, align_corners, scales_h, scales_w, grad_input); + } + + // aten::_upsample_bilinear2d_aa_backward(Tensor grad_output, SymInt[2] output_size, SymInt[4] input_size, bool align_corners, float? scales_h=None, float? scales_w=None) -> Tensor + inline at::Tensor _upsample_bilinear2d_aa_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, at::IntArrayRef output_size, at::IntArrayRef input_size, bool align_corners, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::_upsample_bilinear2d_aa_backward::redispatch(dispatchKeySet, grad_output, c10::fromIntArrayRefSlow(output_size), c10::fromIntArrayRefSlow(input_size), align_corners, scales_h, scales_w); + } + + // aten::_upsample_bilinear2d_aa_backward(Tensor grad_output, SymInt[2] output_size, SymInt[4] input_size, bool align_corners, float? scales_h=None, float? scales_w=None) -> Tensor + inline at::Tensor _upsample_bilinear2d_aa_backward_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, c10::SymIntArrayRef output_size, c10::SymIntArrayRef input_size, bool align_corners, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::_upsample_bilinear2d_aa_backward::redispatch(dispatchKeySet, grad_output, output_size, input_size, align_corners, scales_h, scales_w); + } + + // aten::upsample_bicubic2d.out(Tensor self, SymInt[2] output_size, bool align_corners, float? scales_h=None, float? scales_w=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & upsample_bicubic2d_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef output_size, bool align_corners, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::upsample_bicubic2d_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(output_size), align_corners, scales_h, scales_w, out); + } + + // aten::upsample_bicubic2d.out(Tensor self, SymInt[2] output_size, bool align_corners, float? scales_h=None, float? scales_w=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & upsample_bicubic2d_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef output_size, bool align_corners, c10::optional scales_h, c10::optional scales_w, at::Tensor & out) { + return at::_ops::upsample_bicubic2d_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(output_size), align_corners, scales_h, scales_w, out); + } + + // aten::upsample_bicubic2d.out(Tensor self, SymInt[2] output_size, bool align_corners, float? scales_h=None, float? scales_w=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & upsample_bicubic2d_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::SymIntArrayRef output_size, bool align_corners, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::upsample_bicubic2d_out::redispatch(dispatchKeySet, self, output_size, align_corners, scales_h, scales_w, out); + } + + // aten::upsample_bicubic2d.out(Tensor self, SymInt[2] output_size, bool align_corners, float? scales_h=None, float? scales_w=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & upsample_bicubic2d_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef output_size, bool align_corners, c10::optional scales_h, c10::optional scales_w, at::Tensor & out) { + return at::_ops::upsample_bicubic2d_out::redispatch(dispatchKeySet, self, output_size, align_corners, scales_h, scales_w, out); + } + + // aten::upsample_bicubic2d(Tensor self, SymInt[2] output_size, bool align_corners, float? scales_h=None, float? scales_w=None) -> Tensor + inline at::Tensor upsample_bicubic2d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef output_size, bool align_corners, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::upsample_bicubic2d::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(output_size), align_corners, scales_h, scales_w); + } + + // aten::upsample_bicubic2d(Tensor self, SymInt[2] output_size, bool align_corners, float? scales_h=None, float? scales_w=None) -> Tensor + inline at::Tensor upsample_bicubic2d_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef output_size, bool align_corners, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::upsample_bicubic2d::redispatch(dispatchKeySet, self, output_size, align_corners, scales_h, scales_w); + } + + // aten::upsample_bicubic2d_backward.grad_input(Tensor grad_output, SymInt[2] output_size, SymInt[4] input_size, bool align_corners, float? scales_h=None, float? scales_w=None, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & upsample_bicubic2d_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, at::IntArrayRef output_size, at::IntArrayRef input_size, bool align_corners, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::upsample_bicubic2d_backward_grad_input::redispatch(dispatchKeySet, grad_output, c10::fromIntArrayRefSlow(output_size), c10::fromIntArrayRefSlow(input_size), align_corners, scales_h, scales_w, grad_input); + } + + // aten::upsample_bicubic2d_backward.grad_input(Tensor grad_output, SymInt[2] output_size, SymInt[4] input_size, bool align_corners, float? scales_h=None, float? scales_w=None, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & upsample_bicubic2d_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, at::IntArrayRef output_size, at::IntArrayRef input_size, bool align_corners, c10::optional scales_h, c10::optional scales_w, at::Tensor & grad_input) { + return at::_ops::upsample_bicubic2d_backward_grad_input::redispatch(dispatchKeySet, grad_output, c10::fromIntArrayRefSlow(output_size), c10::fromIntArrayRefSlow(input_size), align_corners, scales_h, scales_w, grad_input); + } + + // aten::upsample_bicubic2d_backward.grad_input(Tensor grad_output, SymInt[2] output_size, SymInt[4] input_size, bool align_corners, float? scales_h=None, float? scales_w=None, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & upsample_bicubic2d_backward_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, c10::SymIntArrayRef output_size, c10::SymIntArrayRef input_size, bool align_corners, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::upsample_bicubic2d_backward_grad_input::redispatch(dispatchKeySet, grad_output, output_size, input_size, align_corners, scales_h, scales_w, grad_input); + } + + // aten::upsample_bicubic2d_backward.grad_input(Tensor grad_output, SymInt[2] output_size, SymInt[4] input_size, bool align_corners, float? scales_h=None, float? scales_w=None, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & upsample_bicubic2d_backward_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, c10::SymIntArrayRef output_size, c10::SymIntArrayRef input_size, bool align_corners, c10::optional scales_h, c10::optional scales_w, at::Tensor & grad_input) { + return at::_ops::upsample_bicubic2d_backward_grad_input::redispatch(dispatchKeySet, grad_output, output_size, input_size, align_corners, scales_h, scales_w, grad_input); + } + + // aten::upsample_bicubic2d_backward(Tensor grad_output, SymInt[2] output_size, SymInt[4] input_size, bool align_corners, float? scales_h=None, float? scales_w=None) -> Tensor + inline at::Tensor upsample_bicubic2d_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, at::IntArrayRef output_size, at::IntArrayRef input_size, bool align_corners, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::upsample_bicubic2d_backward::redispatch(dispatchKeySet, grad_output, c10::fromIntArrayRefSlow(output_size), c10::fromIntArrayRefSlow(input_size), align_corners, scales_h, scales_w); + } + + // aten::upsample_bicubic2d_backward(Tensor grad_output, SymInt[2] output_size, SymInt[4] input_size, bool align_corners, float? scales_h=None, float? scales_w=None) -> Tensor + inline at::Tensor upsample_bicubic2d_backward_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, c10::SymIntArrayRef output_size, c10::SymIntArrayRef input_size, bool align_corners, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::upsample_bicubic2d_backward::redispatch(dispatchKeySet, grad_output, output_size, input_size, align_corners, scales_h, scales_w); + } + + // aten::_upsample_bicubic2d_aa.out(Tensor self, SymInt[2] output_size, bool align_corners, float? scales_h=None, float? scales_w=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _upsample_bicubic2d_aa_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef output_size, bool align_corners, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::_upsample_bicubic2d_aa_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(output_size), align_corners, scales_h, scales_w, out); + } + + // aten::_upsample_bicubic2d_aa.out(Tensor self, SymInt[2] output_size, bool align_corners, float? scales_h=None, float? scales_w=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _upsample_bicubic2d_aa_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef output_size, bool align_corners, c10::optional scales_h, c10::optional scales_w, at::Tensor & out) { + return at::_ops::_upsample_bicubic2d_aa_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(output_size), align_corners, scales_h, scales_w, out); + } + + // aten::_upsample_bicubic2d_aa.out(Tensor self, SymInt[2] output_size, bool align_corners, float? scales_h=None, float? scales_w=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _upsample_bicubic2d_aa_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::SymIntArrayRef output_size, bool align_corners, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::_upsample_bicubic2d_aa_out::redispatch(dispatchKeySet, self, output_size, align_corners, scales_h, scales_w, out); + } + + // aten::_upsample_bicubic2d_aa.out(Tensor self, SymInt[2] output_size, bool align_corners, float? scales_h=None, float? scales_w=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _upsample_bicubic2d_aa_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef output_size, bool align_corners, c10::optional scales_h, c10::optional scales_w, at::Tensor & out) { + return at::_ops::_upsample_bicubic2d_aa_out::redispatch(dispatchKeySet, self, output_size, align_corners, scales_h, scales_w, out); + } + + // aten::_upsample_bicubic2d_aa(Tensor self, SymInt[2] output_size, bool align_corners, float? scales_h=None, float? scales_w=None) -> Tensor + inline at::Tensor _upsample_bicubic2d_aa(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef output_size, bool align_corners, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::_upsample_bicubic2d_aa::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(output_size), align_corners, scales_h, scales_w); + } + + // aten::_upsample_bicubic2d_aa(Tensor self, SymInt[2] output_size, bool align_corners, float? scales_h=None, float? scales_w=None) -> Tensor + inline at::Tensor _upsample_bicubic2d_aa_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef output_size, bool align_corners, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::_upsample_bicubic2d_aa::redispatch(dispatchKeySet, self, output_size, align_corners, scales_h, scales_w); + } + + // aten::_upsample_bicubic2d_aa_backward.grad_input(Tensor grad_output, SymInt[2] output_size, SymInt[4] input_size, bool align_corners, float? scales_h=None, float? scales_w=None, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & _upsample_bicubic2d_aa_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, at::IntArrayRef output_size, at::IntArrayRef input_size, bool align_corners, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::_upsample_bicubic2d_aa_backward_grad_input::redispatch(dispatchKeySet, grad_output, c10::fromIntArrayRefSlow(output_size), c10::fromIntArrayRefSlow(input_size), align_corners, scales_h, scales_w, grad_input); + } + + // aten::_upsample_bicubic2d_aa_backward.grad_input(Tensor grad_output, SymInt[2] output_size, SymInt[4] input_size, bool align_corners, float? scales_h=None, float? scales_w=None, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & _upsample_bicubic2d_aa_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, at::IntArrayRef output_size, at::IntArrayRef input_size, bool align_corners, c10::optional scales_h, c10::optional scales_w, at::Tensor & grad_input) { + return at::_ops::_upsample_bicubic2d_aa_backward_grad_input::redispatch(dispatchKeySet, grad_output, c10::fromIntArrayRefSlow(output_size), c10::fromIntArrayRefSlow(input_size), align_corners, scales_h, scales_w, grad_input); + } + + // aten::_upsample_bicubic2d_aa_backward.grad_input(Tensor grad_output, SymInt[2] output_size, SymInt[4] input_size, bool align_corners, float? scales_h=None, float? scales_w=None, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & _upsample_bicubic2d_aa_backward_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, c10::SymIntArrayRef output_size, c10::SymIntArrayRef input_size, bool align_corners, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::_upsample_bicubic2d_aa_backward_grad_input::redispatch(dispatchKeySet, grad_output, output_size, input_size, align_corners, scales_h, scales_w, grad_input); + } + + // aten::_upsample_bicubic2d_aa_backward.grad_input(Tensor grad_output, SymInt[2] output_size, SymInt[4] input_size, bool align_corners, float? scales_h=None, float? scales_w=None, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & _upsample_bicubic2d_aa_backward_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, c10::SymIntArrayRef output_size, c10::SymIntArrayRef input_size, bool align_corners, c10::optional scales_h, c10::optional scales_w, at::Tensor & grad_input) { + return at::_ops::_upsample_bicubic2d_aa_backward_grad_input::redispatch(dispatchKeySet, grad_output, output_size, input_size, align_corners, scales_h, scales_w, grad_input); + } + + // aten::_upsample_bicubic2d_aa_backward(Tensor grad_output, SymInt[2] output_size, SymInt[4] input_size, bool align_corners, float? scales_h=None, float? scales_w=None) -> Tensor + inline at::Tensor _upsample_bicubic2d_aa_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, at::IntArrayRef output_size, at::IntArrayRef input_size, bool align_corners, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::_upsample_bicubic2d_aa_backward::redispatch(dispatchKeySet, grad_output, c10::fromIntArrayRefSlow(output_size), c10::fromIntArrayRefSlow(input_size), align_corners, scales_h, scales_w); + } + + // aten::_upsample_bicubic2d_aa_backward(Tensor grad_output, SymInt[2] output_size, SymInt[4] input_size, bool align_corners, float? scales_h=None, float? scales_w=None) -> Tensor + inline at::Tensor _upsample_bicubic2d_aa_backward_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, c10::SymIntArrayRef output_size, c10::SymIntArrayRef input_size, bool align_corners, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::_upsample_bicubic2d_aa_backward::redispatch(dispatchKeySet, grad_output, output_size, input_size, align_corners, scales_h, scales_w); + } + + // aten::upsample_trilinear3d.out(Tensor self, SymInt[3] output_size, bool align_corners, float? scales_d=None, float? scales_h=None, float? scales_w=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & upsample_trilinear3d_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef output_size, bool align_corners, c10::optional scales_d=c10::nullopt, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::upsample_trilinear3d_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(output_size), align_corners, scales_d, scales_h, scales_w, out); + } + + // aten::upsample_trilinear3d.out(Tensor self, SymInt[3] output_size, bool align_corners, float? scales_d=None, float? scales_h=None, float? scales_w=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & upsample_trilinear3d_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef output_size, bool align_corners, c10::optional scales_d, c10::optional scales_h, c10::optional scales_w, at::Tensor & out) { + return at::_ops::upsample_trilinear3d_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(output_size), align_corners, scales_d, scales_h, scales_w, out); + } + + // aten::upsample_trilinear3d.out(Tensor self, SymInt[3] output_size, bool align_corners, float? scales_d=None, float? scales_h=None, float? scales_w=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & upsample_trilinear3d_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::SymIntArrayRef output_size, bool align_corners, c10::optional scales_d=c10::nullopt, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::upsample_trilinear3d_out::redispatch(dispatchKeySet, self, output_size, align_corners, scales_d, scales_h, scales_w, out); + } + + // aten::upsample_trilinear3d.out(Tensor self, SymInt[3] output_size, bool align_corners, float? scales_d=None, float? scales_h=None, float? scales_w=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & upsample_trilinear3d_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef output_size, bool align_corners, c10::optional scales_d, c10::optional scales_h, c10::optional scales_w, at::Tensor & out) { + return at::_ops::upsample_trilinear3d_out::redispatch(dispatchKeySet, self, output_size, align_corners, scales_d, scales_h, scales_w, out); + } + + // aten::upsample_trilinear3d(Tensor self, SymInt[3] output_size, bool align_corners, float? scales_d=None, float? scales_h=None, float? scales_w=None) -> Tensor + inline at::Tensor upsample_trilinear3d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef output_size, bool align_corners, c10::optional scales_d=c10::nullopt, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::upsample_trilinear3d::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(output_size), align_corners, scales_d, scales_h, scales_w); + } + + // aten::upsample_trilinear3d(Tensor self, SymInt[3] output_size, bool align_corners, float? scales_d=None, float? scales_h=None, float? scales_w=None) -> Tensor + inline at::Tensor upsample_trilinear3d_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef output_size, bool align_corners, c10::optional scales_d=c10::nullopt, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::upsample_trilinear3d::redispatch(dispatchKeySet, self, output_size, align_corners, scales_d, scales_h, scales_w); + } + + // aten::upsample_trilinear3d_backward.grad_input(Tensor grad_output, SymInt[3] output_size, SymInt[5] input_size, bool align_corners, float? scales_d=None, float? scales_h=None, float? scales_w=None, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & upsample_trilinear3d_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, at::IntArrayRef output_size, at::IntArrayRef input_size, bool align_corners, c10::optional scales_d=c10::nullopt, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::upsample_trilinear3d_backward_grad_input::redispatch(dispatchKeySet, grad_output, c10::fromIntArrayRefSlow(output_size), c10::fromIntArrayRefSlow(input_size), align_corners, scales_d, scales_h, scales_w, grad_input); + } + + // aten::upsample_trilinear3d_backward.grad_input(Tensor grad_output, SymInt[3] output_size, SymInt[5] input_size, bool align_corners, float? scales_d=None, float? scales_h=None, float? scales_w=None, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & upsample_trilinear3d_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, at::IntArrayRef output_size, at::IntArrayRef input_size, bool align_corners, c10::optional scales_d, c10::optional scales_h, c10::optional scales_w, at::Tensor & grad_input) { + return at::_ops::upsample_trilinear3d_backward_grad_input::redispatch(dispatchKeySet, grad_output, c10::fromIntArrayRefSlow(output_size), c10::fromIntArrayRefSlow(input_size), align_corners, scales_d, scales_h, scales_w, grad_input); + } + + // aten::upsample_trilinear3d_backward.grad_input(Tensor grad_output, SymInt[3] output_size, SymInt[5] input_size, bool align_corners, float? scales_d=None, float? scales_h=None, float? scales_w=None, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & upsample_trilinear3d_backward_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, c10::SymIntArrayRef output_size, c10::SymIntArrayRef input_size, bool align_corners, c10::optional scales_d=c10::nullopt, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::upsample_trilinear3d_backward_grad_input::redispatch(dispatchKeySet, grad_output, output_size, input_size, align_corners, scales_d, scales_h, scales_w, grad_input); + } + + // aten::upsample_trilinear3d_backward.grad_input(Tensor grad_output, SymInt[3] output_size, SymInt[5] input_size, bool align_corners, float? scales_d=None, float? scales_h=None, float? scales_w=None, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & upsample_trilinear3d_backward_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, c10::SymIntArrayRef output_size, c10::SymIntArrayRef input_size, bool align_corners, c10::optional scales_d, c10::optional scales_h, c10::optional scales_w, at::Tensor & grad_input) { + return at::_ops::upsample_trilinear3d_backward_grad_input::redispatch(dispatchKeySet, grad_output, output_size, input_size, align_corners, scales_d, scales_h, scales_w, grad_input); + } + + // aten::upsample_trilinear3d_backward(Tensor grad_output, SymInt[3] output_size, SymInt[5] input_size, bool align_corners, float? scales_d=None, float? scales_h=None, float? scales_w=None) -> Tensor + inline at::Tensor upsample_trilinear3d_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, at::IntArrayRef output_size, at::IntArrayRef input_size, bool align_corners, c10::optional scales_d=c10::nullopt, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::upsample_trilinear3d_backward::redispatch(dispatchKeySet, grad_output, c10::fromIntArrayRefSlow(output_size), c10::fromIntArrayRefSlow(input_size), align_corners, scales_d, scales_h, scales_w); + } + + // aten::upsample_trilinear3d_backward(Tensor grad_output, SymInt[3] output_size, SymInt[5] input_size, bool align_corners, float? scales_d=None, float? scales_h=None, float? scales_w=None) -> Tensor + inline at::Tensor upsample_trilinear3d_backward_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, c10::SymIntArrayRef output_size, c10::SymIntArrayRef input_size, bool align_corners, c10::optional scales_d=c10::nullopt, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::upsample_trilinear3d_backward::redispatch(dispatchKeySet, grad_output, output_size, input_size, align_corners, scales_d, scales_h, scales_w); + } + + // aten::upsample_nearest1d.out(Tensor self, SymInt[1] output_size, float? scales=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & upsample_nearest1d_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef output_size, c10::optional scales=c10::nullopt) { + return at::_ops::upsample_nearest1d_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(output_size), scales, out); + } + + // aten::upsample_nearest1d.out(Tensor self, SymInt[1] output_size, float? scales=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & upsample_nearest1d_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef output_size, c10::optional scales, at::Tensor & out) { + return at::_ops::upsample_nearest1d_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(output_size), scales, out); + } + + // aten::upsample_nearest1d.out(Tensor self, SymInt[1] output_size, float? scales=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & upsample_nearest1d_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::SymIntArrayRef output_size, c10::optional scales=c10::nullopt) { + return at::_ops::upsample_nearest1d_out::redispatch(dispatchKeySet, self, output_size, scales, out); + } + + // aten::upsample_nearest1d.out(Tensor self, SymInt[1] output_size, float? scales=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & upsample_nearest1d_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef output_size, c10::optional scales, at::Tensor & out) { + return at::_ops::upsample_nearest1d_out::redispatch(dispatchKeySet, self, output_size, scales, out); + } + + // aten::_upsample_nearest_exact1d.out(Tensor self, SymInt[1] output_size, float? scales=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _upsample_nearest_exact1d_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef output_size, c10::optional scales=c10::nullopt) { + return at::_ops::_upsample_nearest_exact1d_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(output_size), scales, out); + } + + // aten::_upsample_nearest_exact1d.out(Tensor self, SymInt[1] output_size, float? scales=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _upsample_nearest_exact1d_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef output_size, c10::optional scales, at::Tensor & out) { + return at::_ops::_upsample_nearest_exact1d_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(output_size), scales, out); + } + + // aten::_upsample_nearest_exact1d.out(Tensor self, SymInt[1] output_size, float? scales=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _upsample_nearest_exact1d_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::SymIntArrayRef output_size, c10::optional scales=c10::nullopt) { + return at::_ops::_upsample_nearest_exact1d_out::redispatch(dispatchKeySet, self, output_size, scales, out); + } + + // aten::_upsample_nearest_exact1d.out(Tensor self, SymInt[1] output_size, float? scales=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _upsample_nearest_exact1d_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef output_size, c10::optional scales, at::Tensor & out) { + return at::_ops::_upsample_nearest_exact1d_out::redispatch(dispatchKeySet, self, output_size, scales, out); + } + + // aten::upsample_nearest1d(Tensor self, SymInt[1] output_size, float? scales=None) -> Tensor + inline at::Tensor upsample_nearest1d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef output_size, c10::optional scales=c10::nullopt) { + return at::_ops::upsample_nearest1d::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(output_size), scales); + } + + // aten::upsample_nearest1d(Tensor self, SymInt[1] output_size, float? scales=None) -> Tensor + inline at::Tensor upsample_nearest1d_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef output_size, c10::optional scales=c10::nullopt) { + return at::_ops::upsample_nearest1d::redispatch(dispatchKeySet, self, output_size, scales); + } + + // aten::_upsample_nearest_exact1d(Tensor self, SymInt[1] output_size, float? scales=None) -> Tensor + inline at::Tensor _upsample_nearest_exact1d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef output_size, c10::optional scales=c10::nullopt) { + return at::_ops::_upsample_nearest_exact1d::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(output_size), scales); + } + + // aten::_upsample_nearest_exact1d(Tensor self, SymInt[1] output_size, float? scales=None) -> Tensor + inline at::Tensor _upsample_nearest_exact1d_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef output_size, c10::optional scales=c10::nullopt) { + return at::_ops::_upsample_nearest_exact1d::redispatch(dispatchKeySet, self, output_size, scales); + } + + // aten::upsample_nearest1d_backward.grad_input(Tensor grad_output, SymInt[1] output_size, SymInt[3] input_size, float? scales=None, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & upsample_nearest1d_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, at::IntArrayRef output_size, at::IntArrayRef input_size, c10::optional scales=c10::nullopt) { + return at::_ops::upsample_nearest1d_backward_grad_input::redispatch(dispatchKeySet, grad_output, c10::fromIntArrayRefSlow(output_size), c10::fromIntArrayRefSlow(input_size), scales, grad_input); + } + + // aten::upsample_nearest1d_backward.grad_input(Tensor grad_output, SymInt[1] output_size, SymInt[3] input_size, float? scales=None, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & upsample_nearest1d_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, at::IntArrayRef output_size, at::IntArrayRef input_size, c10::optional scales, at::Tensor & grad_input) { + return at::_ops::upsample_nearest1d_backward_grad_input::redispatch(dispatchKeySet, grad_output, c10::fromIntArrayRefSlow(output_size), c10::fromIntArrayRefSlow(input_size), scales, grad_input); + } + + // aten::upsample_nearest1d_backward.grad_input(Tensor grad_output, SymInt[1] output_size, SymInt[3] input_size, float? scales=None, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & upsample_nearest1d_backward_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, c10::SymIntArrayRef output_size, c10::SymIntArrayRef input_size, c10::optional scales=c10::nullopt) { + return at::_ops::upsample_nearest1d_backward_grad_input::redispatch(dispatchKeySet, grad_output, output_size, input_size, scales, grad_input); + } + + // aten::upsample_nearest1d_backward.grad_input(Tensor grad_output, SymInt[1] output_size, SymInt[3] input_size, float? scales=None, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & upsample_nearest1d_backward_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, c10::SymIntArrayRef output_size, c10::SymIntArrayRef input_size, c10::optional scales, at::Tensor & grad_input) { + return at::_ops::upsample_nearest1d_backward_grad_input::redispatch(dispatchKeySet, grad_output, output_size, input_size, scales, grad_input); + } + + // aten::_upsample_nearest_exact1d_backward.grad_input(Tensor grad_output, SymInt[1] output_size, SymInt[3] input_size, float? scales=None, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & _upsample_nearest_exact1d_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, at::IntArrayRef output_size, at::IntArrayRef input_size, c10::optional scales=c10::nullopt) { + return at::_ops::_upsample_nearest_exact1d_backward_grad_input::redispatch(dispatchKeySet, grad_output, c10::fromIntArrayRefSlow(output_size), c10::fromIntArrayRefSlow(input_size), scales, grad_input); + } + + // aten::_upsample_nearest_exact1d_backward.grad_input(Tensor grad_output, SymInt[1] output_size, SymInt[3] input_size, float? scales=None, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & _upsample_nearest_exact1d_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, at::IntArrayRef output_size, at::IntArrayRef input_size, c10::optional scales, at::Tensor & grad_input) { + return at::_ops::_upsample_nearest_exact1d_backward_grad_input::redispatch(dispatchKeySet, grad_output, c10::fromIntArrayRefSlow(output_size), c10::fromIntArrayRefSlow(input_size), scales, grad_input); + } + + // aten::_upsample_nearest_exact1d_backward.grad_input(Tensor grad_output, SymInt[1] output_size, SymInt[3] input_size, float? scales=None, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & _upsample_nearest_exact1d_backward_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, c10::SymIntArrayRef output_size, c10::SymIntArrayRef input_size, c10::optional scales=c10::nullopt) { + return at::_ops::_upsample_nearest_exact1d_backward_grad_input::redispatch(dispatchKeySet, grad_output, output_size, input_size, scales, grad_input); + } + + // aten::_upsample_nearest_exact1d_backward.grad_input(Tensor grad_output, SymInt[1] output_size, SymInt[3] input_size, float? scales=None, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & _upsample_nearest_exact1d_backward_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, c10::SymIntArrayRef output_size, c10::SymIntArrayRef input_size, c10::optional scales, at::Tensor & grad_input) { + return at::_ops::_upsample_nearest_exact1d_backward_grad_input::redispatch(dispatchKeySet, grad_output, output_size, input_size, scales, grad_input); + } + + // aten::upsample_nearest1d_backward(Tensor grad_output, SymInt[1] output_size, SymInt[3] input_size, float? scales=None) -> Tensor + inline at::Tensor upsample_nearest1d_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, at::IntArrayRef output_size, at::IntArrayRef input_size, c10::optional scales=c10::nullopt) { + return at::_ops::upsample_nearest1d_backward::redispatch(dispatchKeySet, grad_output, c10::fromIntArrayRefSlow(output_size), c10::fromIntArrayRefSlow(input_size), scales); + } + + // aten::upsample_nearest1d_backward(Tensor grad_output, SymInt[1] output_size, SymInt[3] input_size, float? scales=None) -> Tensor + inline at::Tensor upsample_nearest1d_backward_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, c10::SymIntArrayRef output_size, c10::SymIntArrayRef input_size, c10::optional scales=c10::nullopt) { + return at::_ops::upsample_nearest1d_backward::redispatch(dispatchKeySet, grad_output, output_size, input_size, scales); + } + + // aten::_upsample_nearest_exact1d_backward(Tensor grad_output, SymInt[1] output_size, SymInt[3] input_size, float? scales=None) -> Tensor + inline at::Tensor _upsample_nearest_exact1d_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, at::IntArrayRef output_size, at::IntArrayRef input_size, c10::optional scales=c10::nullopt) { + return at::_ops::_upsample_nearest_exact1d_backward::redispatch(dispatchKeySet, grad_output, c10::fromIntArrayRefSlow(output_size), c10::fromIntArrayRefSlow(input_size), scales); + } + + // aten::_upsample_nearest_exact1d_backward(Tensor grad_output, SymInt[1] output_size, SymInt[3] input_size, float? scales=None) -> Tensor + inline at::Tensor _upsample_nearest_exact1d_backward_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, c10::SymIntArrayRef output_size, c10::SymIntArrayRef input_size, c10::optional scales=c10::nullopt) { + return at::_ops::_upsample_nearest_exact1d_backward::redispatch(dispatchKeySet, grad_output, output_size, input_size, scales); + } + + // aten::upsample_nearest2d.out(Tensor self, SymInt[2] output_size, float? scales_h=None, float? scales_w=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & upsample_nearest2d_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef output_size, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::upsample_nearest2d_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(output_size), scales_h, scales_w, out); + } + + // aten::upsample_nearest2d.out(Tensor self, SymInt[2] output_size, float? scales_h=None, float? scales_w=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & upsample_nearest2d_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef output_size, c10::optional scales_h, c10::optional scales_w, at::Tensor & out) { + return at::_ops::upsample_nearest2d_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(output_size), scales_h, scales_w, out); + } + + // aten::upsample_nearest2d.out(Tensor self, SymInt[2] output_size, float? scales_h=None, float? scales_w=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & upsample_nearest2d_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::SymIntArrayRef output_size, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::upsample_nearest2d_out::redispatch(dispatchKeySet, self, output_size, scales_h, scales_w, out); + } + + // aten::upsample_nearest2d.out(Tensor self, SymInt[2] output_size, float? scales_h=None, float? scales_w=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & upsample_nearest2d_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef output_size, c10::optional scales_h, c10::optional scales_w, at::Tensor & out) { + return at::_ops::upsample_nearest2d_out::redispatch(dispatchKeySet, self, output_size, scales_h, scales_w, out); + } + + // aten::_upsample_nearest_exact2d.out(Tensor self, SymInt[2] output_size, float? scales_h=None, float? scales_w=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _upsample_nearest_exact2d_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef output_size, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::_upsample_nearest_exact2d_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(output_size), scales_h, scales_w, out); + } + + // aten::_upsample_nearest_exact2d.out(Tensor self, SymInt[2] output_size, float? scales_h=None, float? scales_w=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _upsample_nearest_exact2d_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef output_size, c10::optional scales_h, c10::optional scales_w, at::Tensor & out) { + return at::_ops::_upsample_nearest_exact2d_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(output_size), scales_h, scales_w, out); + } + + // aten::_upsample_nearest_exact2d.out(Tensor self, SymInt[2] output_size, float? scales_h=None, float? scales_w=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _upsample_nearest_exact2d_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::SymIntArrayRef output_size, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::_upsample_nearest_exact2d_out::redispatch(dispatchKeySet, self, output_size, scales_h, scales_w, out); + } + + // aten::_upsample_nearest_exact2d.out(Tensor self, SymInt[2] output_size, float? scales_h=None, float? scales_w=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _upsample_nearest_exact2d_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef output_size, c10::optional scales_h, c10::optional scales_w, at::Tensor & out) { + return at::_ops::_upsample_nearest_exact2d_out::redispatch(dispatchKeySet, self, output_size, scales_h, scales_w, out); + } + + // aten::upsample_nearest2d(Tensor self, SymInt[2] output_size, float? scales_h=None, float? scales_w=None) -> Tensor + inline at::Tensor upsample_nearest2d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef output_size, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::upsample_nearest2d::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(output_size), scales_h, scales_w); + } + + // aten::upsample_nearest2d(Tensor self, SymInt[2] output_size, float? scales_h=None, float? scales_w=None) -> Tensor + inline at::Tensor upsample_nearest2d_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef output_size, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::upsample_nearest2d::redispatch(dispatchKeySet, self, output_size, scales_h, scales_w); + } + + // aten::_upsample_nearest_exact2d(Tensor self, SymInt[2] output_size, float? scales_h=None, float? scales_w=None) -> Tensor + inline at::Tensor _upsample_nearest_exact2d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef output_size, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::_upsample_nearest_exact2d::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(output_size), scales_h, scales_w); + } + + // aten::_upsample_nearest_exact2d(Tensor self, SymInt[2] output_size, float? scales_h=None, float? scales_w=None) -> Tensor + inline at::Tensor _upsample_nearest_exact2d_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef output_size, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::_upsample_nearest_exact2d::redispatch(dispatchKeySet, self, output_size, scales_h, scales_w); + } + + // aten::upsample_nearest2d_backward.grad_input(Tensor grad_output, SymInt[2] output_size, SymInt[4] input_size, float? scales_h=None, float? scales_w=None, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & upsample_nearest2d_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, at::IntArrayRef output_size, at::IntArrayRef input_size, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::upsample_nearest2d_backward_grad_input::redispatch(dispatchKeySet, grad_output, c10::fromIntArrayRefSlow(output_size), c10::fromIntArrayRefSlow(input_size), scales_h, scales_w, grad_input); + } + + // aten::upsample_nearest2d_backward.grad_input(Tensor grad_output, SymInt[2] output_size, SymInt[4] input_size, float? scales_h=None, float? scales_w=None, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & upsample_nearest2d_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, at::IntArrayRef output_size, at::IntArrayRef input_size, c10::optional scales_h, c10::optional scales_w, at::Tensor & grad_input) { + return at::_ops::upsample_nearest2d_backward_grad_input::redispatch(dispatchKeySet, grad_output, c10::fromIntArrayRefSlow(output_size), c10::fromIntArrayRefSlow(input_size), scales_h, scales_w, grad_input); + } + + // aten::upsample_nearest2d_backward.grad_input(Tensor grad_output, SymInt[2] output_size, SymInt[4] input_size, float? scales_h=None, float? scales_w=None, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & upsample_nearest2d_backward_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, c10::SymIntArrayRef output_size, c10::SymIntArrayRef input_size, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::upsample_nearest2d_backward_grad_input::redispatch(dispatchKeySet, grad_output, output_size, input_size, scales_h, scales_w, grad_input); + } + + // aten::upsample_nearest2d_backward.grad_input(Tensor grad_output, SymInt[2] output_size, SymInt[4] input_size, float? scales_h=None, float? scales_w=None, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & upsample_nearest2d_backward_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, c10::SymIntArrayRef output_size, c10::SymIntArrayRef input_size, c10::optional scales_h, c10::optional scales_w, at::Tensor & grad_input) { + return at::_ops::upsample_nearest2d_backward_grad_input::redispatch(dispatchKeySet, grad_output, output_size, input_size, scales_h, scales_w, grad_input); + } + + // aten::_upsample_nearest_exact2d_backward.grad_input(Tensor grad_output, SymInt[2] output_size, SymInt[4] input_size, float? scales_h=None, float? scales_w=None, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & _upsample_nearest_exact2d_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, at::IntArrayRef output_size, at::IntArrayRef input_size, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::_upsample_nearest_exact2d_backward_grad_input::redispatch(dispatchKeySet, grad_output, c10::fromIntArrayRefSlow(output_size), c10::fromIntArrayRefSlow(input_size), scales_h, scales_w, grad_input); + } + + // aten::_upsample_nearest_exact2d_backward.grad_input(Tensor grad_output, SymInt[2] output_size, SymInt[4] input_size, float? scales_h=None, float? scales_w=None, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & _upsample_nearest_exact2d_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, at::IntArrayRef output_size, at::IntArrayRef input_size, c10::optional scales_h, c10::optional scales_w, at::Tensor & grad_input) { + return at::_ops::_upsample_nearest_exact2d_backward_grad_input::redispatch(dispatchKeySet, grad_output, c10::fromIntArrayRefSlow(output_size), c10::fromIntArrayRefSlow(input_size), scales_h, scales_w, grad_input); + } + + // aten::_upsample_nearest_exact2d_backward.grad_input(Tensor grad_output, SymInt[2] output_size, SymInt[4] input_size, float? scales_h=None, float? scales_w=None, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & _upsample_nearest_exact2d_backward_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, c10::SymIntArrayRef output_size, c10::SymIntArrayRef input_size, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::_upsample_nearest_exact2d_backward_grad_input::redispatch(dispatchKeySet, grad_output, output_size, input_size, scales_h, scales_w, grad_input); + } + + // aten::_upsample_nearest_exact2d_backward.grad_input(Tensor grad_output, SymInt[2] output_size, SymInt[4] input_size, float? scales_h=None, float? scales_w=None, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & _upsample_nearest_exact2d_backward_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, c10::SymIntArrayRef output_size, c10::SymIntArrayRef input_size, c10::optional scales_h, c10::optional scales_w, at::Tensor & grad_input) { + return at::_ops::_upsample_nearest_exact2d_backward_grad_input::redispatch(dispatchKeySet, grad_output, output_size, input_size, scales_h, scales_w, grad_input); + } + + // aten::upsample_nearest2d_backward(Tensor grad_output, SymInt[2] output_size, SymInt[4] input_size, float? scales_h=None, float? scales_w=None) -> Tensor + inline at::Tensor upsample_nearest2d_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, at::IntArrayRef output_size, at::IntArrayRef input_size, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::upsample_nearest2d_backward::redispatch(dispatchKeySet, grad_output, c10::fromIntArrayRefSlow(output_size), c10::fromIntArrayRefSlow(input_size), scales_h, scales_w); + } + + // aten::upsample_nearest2d_backward(Tensor grad_output, SymInt[2] output_size, SymInt[4] input_size, float? scales_h=None, float? scales_w=None) -> Tensor + inline at::Tensor upsample_nearest2d_backward_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, c10::SymIntArrayRef output_size, c10::SymIntArrayRef input_size, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::upsample_nearest2d_backward::redispatch(dispatchKeySet, grad_output, output_size, input_size, scales_h, scales_w); + } + + // aten::_upsample_nearest_exact2d_backward(Tensor grad_output, SymInt[2] output_size, SymInt[4] input_size, float? scales_h=None, float? scales_w=None) -> Tensor + inline at::Tensor _upsample_nearest_exact2d_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, at::IntArrayRef output_size, at::IntArrayRef input_size, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::_upsample_nearest_exact2d_backward::redispatch(dispatchKeySet, grad_output, c10::fromIntArrayRefSlow(output_size), c10::fromIntArrayRefSlow(input_size), scales_h, scales_w); + } + + // aten::_upsample_nearest_exact2d_backward(Tensor grad_output, SymInt[2] output_size, SymInt[4] input_size, float? scales_h=None, float? scales_w=None) -> Tensor + inline at::Tensor _upsample_nearest_exact2d_backward_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, c10::SymIntArrayRef output_size, c10::SymIntArrayRef input_size, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::_upsample_nearest_exact2d_backward::redispatch(dispatchKeySet, grad_output, output_size, input_size, scales_h, scales_w); + } + + // aten::upsample_nearest3d.out(Tensor self, SymInt[3] output_size, float? scales_d=None, float? scales_h=None, float? scales_w=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & upsample_nearest3d_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef output_size, c10::optional scales_d=c10::nullopt, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::upsample_nearest3d_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(output_size), scales_d, scales_h, scales_w, out); + } + + // aten::upsample_nearest3d.out(Tensor self, SymInt[3] output_size, float? scales_d=None, float? scales_h=None, float? scales_w=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & upsample_nearest3d_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef output_size, c10::optional scales_d, c10::optional scales_h, c10::optional scales_w, at::Tensor & out) { + return at::_ops::upsample_nearest3d_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(output_size), scales_d, scales_h, scales_w, out); + } + + // aten::upsample_nearest3d.out(Tensor self, SymInt[3] output_size, float? scales_d=None, float? scales_h=None, float? scales_w=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & upsample_nearest3d_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::SymIntArrayRef output_size, c10::optional scales_d=c10::nullopt, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::upsample_nearest3d_out::redispatch(dispatchKeySet, self, output_size, scales_d, scales_h, scales_w, out); + } + + // aten::upsample_nearest3d.out(Tensor self, SymInt[3] output_size, float? scales_d=None, float? scales_h=None, float? scales_w=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & upsample_nearest3d_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef output_size, c10::optional scales_d, c10::optional scales_h, c10::optional scales_w, at::Tensor & out) { + return at::_ops::upsample_nearest3d_out::redispatch(dispatchKeySet, self, output_size, scales_d, scales_h, scales_w, out); + } + + // aten::_upsample_nearest_exact3d.out(Tensor self, SymInt[3] output_size, float? scales_d=None, float? scales_h=None, float? scales_w=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _upsample_nearest_exact3d_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef output_size, c10::optional scales_d=c10::nullopt, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::_upsample_nearest_exact3d_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(output_size), scales_d, scales_h, scales_w, out); + } + + // aten::_upsample_nearest_exact3d.out(Tensor self, SymInt[3] output_size, float? scales_d=None, float? scales_h=None, float? scales_w=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _upsample_nearest_exact3d_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef output_size, c10::optional scales_d, c10::optional scales_h, c10::optional scales_w, at::Tensor & out) { + return at::_ops::_upsample_nearest_exact3d_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(output_size), scales_d, scales_h, scales_w, out); + } + + // aten::_upsample_nearest_exact3d.out(Tensor self, SymInt[3] output_size, float? scales_d=None, float? scales_h=None, float? scales_w=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _upsample_nearest_exact3d_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::SymIntArrayRef output_size, c10::optional scales_d=c10::nullopt, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::_upsample_nearest_exact3d_out::redispatch(dispatchKeySet, self, output_size, scales_d, scales_h, scales_w, out); + } + + // aten::_upsample_nearest_exact3d.out(Tensor self, SymInt[3] output_size, float? scales_d=None, float? scales_h=None, float? scales_w=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _upsample_nearest_exact3d_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef output_size, c10::optional scales_d, c10::optional scales_h, c10::optional scales_w, at::Tensor & out) { + return at::_ops::_upsample_nearest_exact3d_out::redispatch(dispatchKeySet, self, output_size, scales_d, scales_h, scales_w, out); + } + + // aten::upsample_nearest3d(Tensor self, SymInt[3] output_size, float? scales_d=None, float? scales_h=None, float? scales_w=None) -> Tensor + inline at::Tensor upsample_nearest3d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef output_size, c10::optional scales_d=c10::nullopt, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::upsample_nearest3d::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(output_size), scales_d, scales_h, scales_w); + } + + // aten::upsample_nearest3d(Tensor self, SymInt[3] output_size, float? scales_d=None, float? scales_h=None, float? scales_w=None) -> Tensor + inline at::Tensor upsample_nearest3d_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef output_size, c10::optional scales_d=c10::nullopt, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::upsample_nearest3d::redispatch(dispatchKeySet, self, output_size, scales_d, scales_h, scales_w); + } + + // aten::_upsample_nearest_exact3d(Tensor self, SymInt[3] output_size, float? scales_d=None, float? scales_h=None, float? scales_w=None) -> Tensor + inline at::Tensor _upsample_nearest_exact3d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef output_size, c10::optional scales_d=c10::nullopt, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::_upsample_nearest_exact3d::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(output_size), scales_d, scales_h, scales_w); + } + + // aten::_upsample_nearest_exact3d(Tensor self, SymInt[3] output_size, float? scales_d=None, float? scales_h=None, float? scales_w=None) -> Tensor + inline at::Tensor _upsample_nearest_exact3d_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef output_size, c10::optional scales_d=c10::nullopt, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::_upsample_nearest_exact3d::redispatch(dispatchKeySet, self, output_size, scales_d, scales_h, scales_w); + } + + // aten::upsample_nearest3d_backward.grad_input(Tensor grad_output, SymInt[3] output_size, SymInt[5] input_size, float? scales_d=None, float? scales_h=None, float? scales_w=None, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & upsample_nearest3d_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, at::IntArrayRef output_size, at::IntArrayRef input_size, c10::optional scales_d=c10::nullopt, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::upsample_nearest3d_backward_grad_input::redispatch(dispatchKeySet, grad_output, c10::fromIntArrayRefSlow(output_size), c10::fromIntArrayRefSlow(input_size), scales_d, scales_h, scales_w, grad_input); + } + + // aten::upsample_nearest3d_backward.grad_input(Tensor grad_output, SymInt[3] output_size, SymInt[5] input_size, float? scales_d=None, float? scales_h=None, float? scales_w=None, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & upsample_nearest3d_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, at::IntArrayRef output_size, at::IntArrayRef input_size, c10::optional scales_d, c10::optional scales_h, c10::optional scales_w, at::Tensor & grad_input) { + return at::_ops::upsample_nearest3d_backward_grad_input::redispatch(dispatchKeySet, grad_output, c10::fromIntArrayRefSlow(output_size), c10::fromIntArrayRefSlow(input_size), scales_d, scales_h, scales_w, grad_input); + } + + // aten::upsample_nearest3d_backward.grad_input(Tensor grad_output, SymInt[3] output_size, SymInt[5] input_size, float? scales_d=None, float? scales_h=None, float? scales_w=None, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & upsample_nearest3d_backward_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, c10::SymIntArrayRef output_size, c10::SymIntArrayRef input_size, c10::optional scales_d=c10::nullopt, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::upsample_nearest3d_backward_grad_input::redispatch(dispatchKeySet, grad_output, output_size, input_size, scales_d, scales_h, scales_w, grad_input); + } + + // aten::upsample_nearest3d_backward.grad_input(Tensor grad_output, SymInt[3] output_size, SymInt[5] input_size, float? scales_d=None, float? scales_h=None, float? scales_w=None, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & upsample_nearest3d_backward_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, c10::SymIntArrayRef output_size, c10::SymIntArrayRef input_size, c10::optional scales_d, c10::optional scales_h, c10::optional scales_w, at::Tensor & grad_input) { + return at::_ops::upsample_nearest3d_backward_grad_input::redispatch(dispatchKeySet, grad_output, output_size, input_size, scales_d, scales_h, scales_w, grad_input); + } + + // aten::_upsample_nearest_exact3d_backward.grad_input(Tensor grad_output, SymInt[3] output_size, SymInt[5] input_size, float? scales_d=None, float? scales_h=None, float? scales_w=None, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & _upsample_nearest_exact3d_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, at::IntArrayRef output_size, at::IntArrayRef input_size, c10::optional scales_d=c10::nullopt, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::_upsample_nearest_exact3d_backward_grad_input::redispatch(dispatchKeySet, grad_output, c10::fromIntArrayRefSlow(output_size), c10::fromIntArrayRefSlow(input_size), scales_d, scales_h, scales_w, grad_input); + } + + // aten::_upsample_nearest_exact3d_backward.grad_input(Tensor grad_output, SymInt[3] output_size, SymInt[5] input_size, float? scales_d=None, float? scales_h=None, float? scales_w=None, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & _upsample_nearest_exact3d_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, at::IntArrayRef output_size, at::IntArrayRef input_size, c10::optional scales_d, c10::optional scales_h, c10::optional scales_w, at::Tensor & grad_input) { + return at::_ops::_upsample_nearest_exact3d_backward_grad_input::redispatch(dispatchKeySet, grad_output, c10::fromIntArrayRefSlow(output_size), c10::fromIntArrayRefSlow(input_size), scales_d, scales_h, scales_w, grad_input); + } + + // aten::_upsample_nearest_exact3d_backward.grad_input(Tensor grad_output, SymInt[3] output_size, SymInt[5] input_size, float? scales_d=None, float? scales_h=None, float? scales_w=None, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & _upsample_nearest_exact3d_backward_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, c10::SymIntArrayRef output_size, c10::SymIntArrayRef input_size, c10::optional scales_d=c10::nullopt, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::_upsample_nearest_exact3d_backward_grad_input::redispatch(dispatchKeySet, grad_output, output_size, input_size, scales_d, scales_h, scales_w, grad_input); + } + + // aten::_upsample_nearest_exact3d_backward.grad_input(Tensor grad_output, SymInt[3] output_size, SymInt[5] input_size, float? scales_d=None, float? scales_h=None, float? scales_w=None, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & _upsample_nearest_exact3d_backward_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, c10::SymIntArrayRef output_size, c10::SymIntArrayRef input_size, c10::optional scales_d, c10::optional scales_h, c10::optional scales_w, at::Tensor & grad_input) { + return at::_ops::_upsample_nearest_exact3d_backward_grad_input::redispatch(dispatchKeySet, grad_output, output_size, input_size, scales_d, scales_h, scales_w, grad_input); + } + + // aten::upsample_nearest3d_backward(Tensor grad_output, SymInt[3] output_size, SymInt[5] input_size, float? scales_d=None, float? scales_h=None, float? scales_w=None) -> Tensor + inline at::Tensor upsample_nearest3d_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, at::IntArrayRef output_size, at::IntArrayRef input_size, c10::optional scales_d=c10::nullopt, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::upsample_nearest3d_backward::redispatch(dispatchKeySet, grad_output, c10::fromIntArrayRefSlow(output_size), c10::fromIntArrayRefSlow(input_size), scales_d, scales_h, scales_w); + } + + // aten::upsample_nearest3d_backward(Tensor grad_output, SymInt[3] output_size, SymInt[5] input_size, float? scales_d=None, float? scales_h=None, float? scales_w=None) -> Tensor + inline at::Tensor upsample_nearest3d_backward_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, c10::SymIntArrayRef output_size, c10::SymIntArrayRef input_size, c10::optional scales_d=c10::nullopt, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::upsample_nearest3d_backward::redispatch(dispatchKeySet, grad_output, output_size, input_size, scales_d, scales_h, scales_w); + } + + // aten::_upsample_nearest_exact3d_backward(Tensor grad_output, SymInt[3] output_size, SymInt[5] input_size, float? scales_d=None, float? scales_h=None, float? scales_w=None) -> Tensor + inline at::Tensor _upsample_nearest_exact3d_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, at::IntArrayRef output_size, at::IntArrayRef input_size, c10::optional scales_d=c10::nullopt, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::_upsample_nearest_exact3d_backward::redispatch(dispatchKeySet, grad_output, c10::fromIntArrayRefSlow(output_size), c10::fromIntArrayRefSlow(input_size), scales_d, scales_h, scales_w); + } + + // aten::_upsample_nearest_exact3d_backward(Tensor grad_output, SymInt[3] output_size, SymInt[5] input_size, float? scales_d=None, float? scales_h=None, float? scales_w=None) -> Tensor + inline at::Tensor _upsample_nearest_exact3d_backward_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, c10::SymIntArrayRef output_size, c10::SymIntArrayRef input_size, c10::optional scales_d=c10::nullopt, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt) { + return at::_ops::_upsample_nearest_exact3d_backward::redispatch(dispatchKeySet, grad_output, output_size, input_size, scales_d, scales_h, scales_w); + } + + // aten::sigmoid_backward.grad_input(Tensor grad_output, Tensor output, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & sigmoid_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, const at::Tensor & output) { + return at::_ops::sigmoid_backward_grad_input::redispatch(dispatchKeySet, grad_output, output, grad_input); + } + + // aten::sigmoid_backward.grad_input(Tensor grad_output, Tensor output, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & sigmoid_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & output, at::Tensor & grad_input) { + return at::_ops::sigmoid_backward_grad_input::redispatch(dispatchKeySet, grad_output, output, grad_input); + } + + // aten::sigmoid_backward(Tensor grad_output, Tensor output) -> Tensor + inline at::Tensor sigmoid_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & output) { + return at::_ops::sigmoid_backward::redispatch(dispatchKeySet, grad_output, output); + } + + // aten::logit_backward.grad_input(Tensor grad_output, Tensor self, float? eps=None, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & logit_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, const at::Tensor & self, c10::optional eps=c10::nullopt) { + return at::_ops::logit_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, eps, grad_input); + } + + // aten::logit_backward.grad_input(Tensor grad_output, Tensor self, float? eps=None, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & logit_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, c10::optional eps, at::Tensor & grad_input) { + return at::_ops::logit_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, eps, grad_input); + } + + // aten::logit_backward(Tensor grad_output, Tensor self, float? eps=None) -> Tensor + inline at::Tensor logit_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, c10::optional eps=c10::nullopt) { + return at::_ops::logit_backward::redispatch(dispatchKeySet, grad_output, self, eps); + } + + // aten::tanh_backward.grad_input(Tensor grad_output, Tensor output, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & tanh_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, const at::Tensor & grad_output, const at::Tensor & output) { + return at::_ops::tanh_backward_grad_input::redispatch(dispatchKeySet, grad_output, output, grad_input); + } + + // aten::tanh_backward.grad_input(Tensor grad_output, Tensor output, *, Tensor(a!) grad_input) -> Tensor(a!) + inline at::Tensor & tanh_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & output, at::Tensor & grad_input) { + return at::_ops::tanh_backward_grad_input::redispatch(dispatchKeySet, grad_output, output, grad_input); + } + + // aten::tanh_backward(Tensor grad_output, Tensor output) -> Tensor + inline at::Tensor tanh_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & output) { + return at::_ops::tanh_backward::redispatch(dispatchKeySet, grad_output, output); + } + + // aten::slow_conv_transpose2d.out(Tensor self, Tensor weight, SymInt[2] kernel_size, Tensor? bias=None, SymInt[2] stride=1, SymInt[2] padding=0, SymInt[2] output_padding=0, SymInt[2] dilation=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & slow_conv_transpose2d_out(c10::DispatchKeySet dispatchKeySet, 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) { + return at::_ops::slow_conv_transpose2d_out::redispatch(dispatchKeySet, self, weight, c10::fromIntArrayRefSlow(kernel_size), bias, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(output_padding), c10::fromIntArrayRefSlow(dilation), out); + } + + // aten::slow_conv_transpose2d.out(Tensor self, Tensor weight, SymInt[2] kernel_size, Tensor? bias=None, SymInt[2] stride=1, SymInt[2] padding=0, SymInt[2] output_padding=0, SymInt[2] dilation=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & slow_conv_transpose2d_outf(c10::DispatchKeySet dispatchKeySet, 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) { + return at::_ops::slow_conv_transpose2d_out::redispatch(dispatchKeySet, self, weight, c10::fromIntArrayRefSlow(kernel_size), bias, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(output_padding), c10::fromIntArrayRefSlow(dilation), out); + } + + // aten::slow_conv_transpose2d.out(Tensor self, Tensor weight, SymInt[2] kernel_size, Tensor? bias=None, SymInt[2] stride=1, SymInt[2] padding=0, SymInt[2] output_padding=0, SymInt[2] dilation=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & slow_conv_transpose2d_symint_out(c10::DispatchKeySet dispatchKeySet, 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)) { + return at::_ops::slow_conv_transpose2d_out::redispatch(dispatchKeySet, self, weight, kernel_size, bias, stride, padding, output_padding, dilation, out); + } + + // aten::slow_conv_transpose2d.out(Tensor self, Tensor weight, SymInt[2] kernel_size, Tensor? bias=None, SymInt[2] stride=1, SymInt[2] padding=0, SymInt[2] output_padding=0, SymInt[2] dilation=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & slow_conv_transpose2d_symint_outf(c10::DispatchKeySet dispatchKeySet, 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) { + return at::_ops::slow_conv_transpose2d_out::redispatch(dispatchKeySet, self, weight, kernel_size, bias, stride, padding, output_padding, dilation, out); + } + + // aten::slow_conv_transpose2d(Tensor self, Tensor weight, SymInt[2] kernel_size, Tensor? bias=None, SymInt[2] stride=1, SymInt[2] padding=0, SymInt[2] output_padding=0, SymInt[2] dilation=1) -> Tensor + inline at::Tensor slow_conv_transpose2d(c10::DispatchKeySet dispatchKeySet, 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) { + return at::_ops::slow_conv_transpose2d::redispatch(dispatchKeySet, self, weight, c10::fromIntArrayRefSlow(kernel_size), bias, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(output_padding), c10::fromIntArrayRefSlow(dilation)); + } + + // aten::slow_conv_transpose2d(Tensor self, Tensor weight, SymInt[2] kernel_size, Tensor? bias=None, SymInt[2] stride=1, SymInt[2] padding=0, SymInt[2] output_padding=0, SymInt[2] dilation=1) -> Tensor + inline at::Tensor slow_conv_transpose2d_symint(c10::DispatchKeySet dispatchKeySet, 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)) { + return at::_ops::slow_conv_transpose2d::redispatch(dispatchKeySet, self, weight, kernel_size, bias, stride, padding, output_padding, dilation); + } + + // aten::slow_conv_transpose3d.out(Tensor self, Tensor weight, SymInt[3] kernel_size, Tensor? bias=None, SymInt[3] stride=1, SymInt[3] padding=0, SymInt[3] output_padding=0, SymInt[3] dilation=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & slow_conv_transpose3d_out(c10::DispatchKeySet dispatchKeySet, 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) { + return at::_ops::slow_conv_transpose3d_out::redispatch(dispatchKeySet, self, weight, c10::fromIntArrayRefSlow(kernel_size), bias, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(output_padding), c10::fromIntArrayRefSlow(dilation), out); + } + + // aten::slow_conv_transpose3d.out(Tensor self, Tensor weight, SymInt[3] kernel_size, Tensor? bias=None, SymInt[3] stride=1, SymInt[3] padding=0, SymInt[3] output_padding=0, SymInt[3] dilation=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & slow_conv_transpose3d_outf(c10::DispatchKeySet dispatchKeySet, 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) { + return at::_ops::slow_conv_transpose3d_out::redispatch(dispatchKeySet, self, weight, c10::fromIntArrayRefSlow(kernel_size), bias, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(output_padding), c10::fromIntArrayRefSlow(dilation), out); + } + + // aten::slow_conv_transpose3d.out(Tensor self, Tensor weight, SymInt[3] kernel_size, Tensor? bias=None, SymInt[3] stride=1, SymInt[3] padding=0, SymInt[3] output_padding=0, SymInt[3] dilation=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & slow_conv_transpose3d_symint_out(c10::DispatchKeySet dispatchKeySet, 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)) { + return at::_ops::slow_conv_transpose3d_out::redispatch(dispatchKeySet, self, weight, kernel_size, bias, stride, padding, output_padding, dilation, out); + } + + // aten::slow_conv_transpose3d.out(Tensor self, Tensor weight, SymInt[3] kernel_size, Tensor? bias=None, SymInt[3] stride=1, SymInt[3] padding=0, SymInt[3] output_padding=0, SymInt[3] dilation=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & slow_conv_transpose3d_symint_outf(c10::DispatchKeySet dispatchKeySet, 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) { + return at::_ops::slow_conv_transpose3d_out::redispatch(dispatchKeySet, self, weight, kernel_size, bias, stride, padding, output_padding, dilation, out); + } + + // aten::slow_conv_transpose3d(Tensor self, Tensor weight, SymInt[3] kernel_size, Tensor? bias=None, SymInt[3] stride=1, SymInt[3] padding=0, SymInt[3] output_padding=0, SymInt[3] dilation=1) -> Tensor + inline at::Tensor slow_conv_transpose3d(c10::DispatchKeySet dispatchKeySet, 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) { + return at::_ops::slow_conv_transpose3d::redispatch(dispatchKeySet, self, weight, c10::fromIntArrayRefSlow(kernel_size), bias, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(output_padding), c10::fromIntArrayRefSlow(dilation)); + } + + // aten::slow_conv_transpose3d(Tensor self, Tensor weight, SymInt[3] kernel_size, Tensor? bias=None, SymInt[3] stride=1, SymInt[3] padding=0, SymInt[3] output_padding=0, SymInt[3] dilation=1) -> Tensor + inline at::Tensor slow_conv_transpose3d_symint(c10::DispatchKeySet dispatchKeySet, 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)) { + return at::_ops::slow_conv_transpose3d::redispatch(dispatchKeySet, self, weight, kernel_size, bias, stride, padding, output_padding, dilation); + } + + // aten::thnn_conv2d.out(Tensor self, Tensor weight, SymInt[2] kernel_size, Tensor? bias=None, SymInt[2] stride=1, SymInt[2] padding=0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & thnn_conv2d_out(c10::DispatchKeySet dispatchKeySet, 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) { + return at::_ops::thnn_conv2d_out::redispatch(dispatchKeySet, self, weight, c10::fromIntArrayRefSlow(kernel_size), bias, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), out); + } + + // aten::thnn_conv2d.out(Tensor self, Tensor weight, SymInt[2] kernel_size, Tensor? bias=None, SymInt[2] stride=1, SymInt[2] padding=0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & thnn_conv2d_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, at::IntArrayRef kernel_size, const c10::optional & bias, at::IntArrayRef stride, at::IntArrayRef padding, at::Tensor & out) { + return at::_ops::thnn_conv2d_out::redispatch(dispatchKeySet, self, weight, c10::fromIntArrayRefSlow(kernel_size), bias, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), out); + } + + // aten::thnn_conv2d.out(Tensor self, Tensor weight, SymInt[2] kernel_size, Tensor? bias=None, SymInt[2] stride=1, SymInt[2] padding=0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & thnn_conv2d_symint_out(c10::DispatchKeySet dispatchKeySet, 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)) { + return at::_ops::thnn_conv2d_out::redispatch(dispatchKeySet, self, weight, kernel_size, bias, stride, padding, out); + } + + // aten::thnn_conv2d.out(Tensor self, Tensor weight, SymInt[2] kernel_size, Tensor? bias=None, SymInt[2] stride=1, SymInt[2] padding=0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & thnn_conv2d_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, c10::SymIntArrayRef kernel_size, const c10::optional & bias, c10::SymIntArrayRef stride, c10::SymIntArrayRef padding, at::Tensor & out) { + return at::_ops::thnn_conv2d_out::redispatch(dispatchKeySet, self, weight, kernel_size, bias, stride, padding, out); + } + + // aten::thnn_conv2d(Tensor self, Tensor weight, SymInt[2] kernel_size, Tensor? bias=None, SymInt[2] stride=1, SymInt[2] padding=0) -> Tensor + inline at::Tensor thnn_conv2d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, at::IntArrayRef kernel_size, const c10::optional & bias={}, at::IntArrayRef stride=1, at::IntArrayRef padding=0) { + return at::_ops::thnn_conv2d::redispatch(dispatchKeySet, self, weight, c10::fromIntArrayRefSlow(kernel_size), bias, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding)); + } + + // aten::thnn_conv2d(Tensor self, Tensor weight, SymInt[2] kernel_size, Tensor? bias=None, SymInt[2] stride=1, SymInt[2] padding=0) -> Tensor + inline at::Tensor thnn_conv2d_symint(c10::DispatchKeySet dispatchKeySet, 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)) { + return at::_ops::thnn_conv2d::redispatch(dispatchKeySet, self, weight, kernel_size, bias, stride, padding); + } + + // aten::_slow_conv2d_forward.output(Tensor self, Tensor weight, SymInt[2] kernel_size, Tensor? bias, SymInt[2] stride, SymInt[2] padding, *, Tensor(a!) output) -> Tensor(a!) + inline at::Tensor & _slow_conv2d_forward_out(c10::DispatchKeySet dispatchKeySet, 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) { + return at::_ops::_slow_conv2d_forward_output::redispatch(dispatchKeySet, self, weight, c10::fromIntArrayRefSlow(kernel_size), bias, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), output); + } + + // aten::_slow_conv2d_forward.output(Tensor self, Tensor weight, SymInt[2] kernel_size, Tensor? bias, SymInt[2] stride, SymInt[2] padding, *, Tensor(a!) output) -> Tensor(a!) + inline at::Tensor & _slow_conv2d_forward_outf(c10::DispatchKeySet dispatchKeySet, 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) { + return at::_ops::_slow_conv2d_forward_output::redispatch(dispatchKeySet, self, weight, c10::fromIntArrayRefSlow(kernel_size), bias, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), output); + } + + // aten::_slow_conv2d_forward.output(Tensor self, Tensor weight, SymInt[2] kernel_size, Tensor? bias, SymInt[2] stride, SymInt[2] padding, *, Tensor(a!) output) -> Tensor(a!) + inline at::Tensor & _slow_conv2d_forward_symint_out(c10::DispatchKeySet dispatchKeySet, 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) { + return at::_ops::_slow_conv2d_forward_output::redispatch(dispatchKeySet, self, weight, kernel_size, bias, stride, padding, output); + } + + // aten::_slow_conv2d_forward.output(Tensor self, Tensor weight, SymInt[2] kernel_size, Tensor? bias, SymInt[2] stride, SymInt[2] padding, *, Tensor(a!) output) -> Tensor(a!) + inline at::Tensor & _slow_conv2d_forward_symint_outf(c10::DispatchKeySet dispatchKeySet, 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) { + return at::_ops::_slow_conv2d_forward_output::redispatch(dispatchKeySet, self, weight, kernel_size, bias, stride, padding, output); + } + + // aten::_slow_conv2d_forward(Tensor self, Tensor weight, SymInt[2] kernel_size, Tensor? bias, SymInt[2] stride, SymInt[2] padding) -> Tensor + inline at::Tensor _slow_conv2d_forward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, at::IntArrayRef kernel_size, const c10::optional & bias, at::IntArrayRef stride, at::IntArrayRef padding) { + return at::_ops::_slow_conv2d_forward::redispatch(dispatchKeySet, self, weight, c10::fromIntArrayRefSlow(kernel_size), bias, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding)); + } + + // aten::_slow_conv2d_forward(Tensor self, Tensor weight, SymInt[2] kernel_size, Tensor? bias, SymInt[2] stride, SymInt[2] padding) -> Tensor + inline at::Tensor _slow_conv2d_forward_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, c10::SymIntArrayRef kernel_size, const c10::optional & bias, c10::SymIntArrayRef stride, c10::SymIntArrayRef padding) { + return at::_ops::_slow_conv2d_forward::redispatch(dispatchKeySet, self, weight, kernel_size, bias, stride, padding); + } + + // aten::_slow_conv2d_backward.grad_input(Tensor grad_output, Tensor self, Tensor weight, SymInt[2] kernel_size, SymInt[2] stride, SymInt[2] padding, *, Tensor(a!) grad_input, Tensor(b!) grad_weight, Tensor(c!) grad_bias) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple _slow_conv2d_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, at::Tensor & grad_weight, at::Tensor & grad_bias, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & weight, at::IntArrayRef kernel_size, at::IntArrayRef stride, at::IntArrayRef padding) { + return at::_ops::_slow_conv2d_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, weight, c10::fromIntArrayRefSlow(kernel_size), c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), grad_input, grad_weight, grad_bias); + } + + // aten::_slow_conv2d_backward.grad_input(Tensor grad_output, Tensor self, Tensor weight, SymInt[2] kernel_size, SymInt[2] stride, SymInt[2] padding, *, Tensor(a!) grad_input, Tensor(b!) grad_weight, Tensor(c!) grad_bias) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple _slow_conv2d_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & weight, at::IntArrayRef kernel_size, at::IntArrayRef stride, at::IntArrayRef padding, at::Tensor & grad_input, at::Tensor & grad_weight, at::Tensor & grad_bias) { + return at::_ops::_slow_conv2d_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, weight, c10::fromIntArrayRefSlow(kernel_size), c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), grad_input, grad_weight, grad_bias); + } + + // aten::_slow_conv2d_backward.grad_input(Tensor grad_output, Tensor self, Tensor weight, SymInt[2] kernel_size, SymInt[2] stride, SymInt[2] padding, *, Tensor(a!) grad_input, Tensor(b!) grad_weight, Tensor(c!) grad_bias) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple _slow_conv2d_backward_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & grad_input, at::Tensor & grad_weight, at::Tensor & grad_bias, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & weight, c10::SymIntArrayRef kernel_size, c10::SymIntArrayRef stride, c10::SymIntArrayRef padding) { + return at::_ops::_slow_conv2d_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, weight, kernel_size, stride, padding, grad_input, grad_weight, grad_bias); + } + + // aten::_slow_conv2d_backward.grad_input(Tensor grad_output, Tensor self, Tensor weight, SymInt[2] kernel_size, SymInt[2] stride, SymInt[2] padding, *, Tensor(a!) grad_input, Tensor(b!) grad_weight, Tensor(c!) grad_bias) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple _slow_conv2d_backward_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & weight, c10::SymIntArrayRef kernel_size, c10::SymIntArrayRef stride, c10::SymIntArrayRef padding, at::Tensor & grad_input, at::Tensor & grad_weight, at::Tensor & grad_bias) { + return at::_ops::_slow_conv2d_backward_grad_input::redispatch(dispatchKeySet, grad_output, self, weight, kernel_size, stride, padding, grad_input, grad_weight, grad_bias); + } + + // aten::_slow_conv2d_backward.output_mask(Tensor grad_output, Tensor self, Tensor weight, SymInt[2] kernel_size, SymInt[2] stride, SymInt[2] padding, bool[3] output_mask) -> (Tensor grad_input, Tensor grad_weight, Tensor grad_bias) + inline ::std::tuple _slow_conv2d_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & weight, at::IntArrayRef kernel_size, at::IntArrayRef stride, at::IntArrayRef padding, ::std::array output_mask) { + return at::_ops::_slow_conv2d_backward_output_mask::redispatch(dispatchKeySet, grad_output, self, weight, c10::fromIntArrayRefSlow(kernel_size), c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), output_mask); + } + + // aten::_slow_conv2d_backward.output_mask(Tensor grad_output, Tensor self, Tensor weight, SymInt[2] kernel_size, SymInt[2] stride, SymInt[2] padding, bool[3] output_mask) -> (Tensor grad_input, Tensor grad_weight, Tensor grad_bias) + inline ::std::tuple _slow_conv2d_backward_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & weight, c10::SymIntArrayRef kernel_size, c10::SymIntArrayRef stride, c10::SymIntArrayRef padding, ::std::array output_mask) { + return at::_ops::_slow_conv2d_backward_output_mask::redispatch(dispatchKeySet, grad_output, self, weight, kernel_size, stride, padding, output_mask); + } + + // aten::_conv_depthwise2d.out(Tensor self, Tensor weight, SymInt[2] kernel_size, Tensor? bias, SymInt[2] stride, SymInt[2] padding, SymInt[2] dilation, *, Tensor(a!) out) -> Tensor(a!) + inline const at::Tensor & _conv_depthwise2d_out(c10::DispatchKeySet dispatchKeySet, const at::Tensor & out, const at::Tensor & self, const at::Tensor & weight, at::IntArrayRef kernel_size, const c10::optional & bias, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation) { + return at::_ops::_conv_depthwise2d_out::redispatch(dispatchKeySet, self, weight, c10::fromIntArrayRefSlow(kernel_size), bias, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(dilation), out); + } + + // aten::_conv_depthwise2d.out(Tensor self, Tensor weight, SymInt[2] kernel_size, Tensor? bias, SymInt[2] stride, SymInt[2] padding, SymInt[2] dilation, *, Tensor(a!) out) -> Tensor(a!) + inline const at::Tensor & _conv_depthwise2d_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, at::IntArrayRef kernel_size, const c10::optional & bias, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, const at::Tensor & out) { + return at::_ops::_conv_depthwise2d_out::redispatch(dispatchKeySet, self, weight, c10::fromIntArrayRefSlow(kernel_size), bias, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(dilation), out); + } + + // aten::_conv_depthwise2d.out(Tensor self, Tensor weight, SymInt[2] kernel_size, Tensor? bias, SymInt[2] stride, SymInt[2] padding, SymInt[2] dilation, *, Tensor(a!) out) -> Tensor(a!) + inline const at::Tensor & _conv_depthwise2d_symint_out(c10::DispatchKeySet dispatchKeySet, const at::Tensor & out, const at::Tensor & self, const at::Tensor & weight, c10::SymIntArrayRef kernel_size, const c10::optional & bias, c10::SymIntArrayRef stride, c10::SymIntArrayRef padding, c10::SymIntArrayRef dilation) { + return at::_ops::_conv_depthwise2d_out::redispatch(dispatchKeySet, self, weight, kernel_size, bias, stride, padding, dilation, out); + } + + // aten::_conv_depthwise2d.out(Tensor self, Tensor weight, SymInt[2] kernel_size, Tensor? bias, SymInt[2] stride, SymInt[2] padding, SymInt[2] dilation, *, Tensor(a!) out) -> Tensor(a!) + inline const at::Tensor & _conv_depthwise2d_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, c10::SymIntArrayRef kernel_size, const c10::optional & bias, c10::SymIntArrayRef stride, c10::SymIntArrayRef padding, c10::SymIntArrayRef dilation, const at::Tensor & out) { + return at::_ops::_conv_depthwise2d_out::redispatch(dispatchKeySet, self, weight, kernel_size, bias, stride, padding, dilation, out); + } + + // aten::_conv_depthwise2d(Tensor self, Tensor weight, SymInt[2] kernel_size, Tensor? bias, SymInt[2] stride, SymInt[2] padding, SymInt[2] dilation) -> Tensor + inline at::Tensor _conv_depthwise2d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, at::IntArrayRef kernel_size, const c10::optional & bias, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation) { + return at::_ops::_conv_depthwise2d::redispatch(dispatchKeySet, self, weight, c10::fromIntArrayRefSlow(kernel_size), bias, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(dilation)); + } + + // aten::_conv_depthwise2d(Tensor self, Tensor weight, SymInt[2] kernel_size, Tensor? bias, SymInt[2] stride, SymInt[2] padding, SymInt[2] dilation) -> Tensor + inline at::Tensor _conv_depthwise2d_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, c10::SymIntArrayRef kernel_size, const c10::optional & bias, c10::SymIntArrayRef stride, c10::SymIntArrayRef padding, c10::SymIntArrayRef dilation) { + return at::_ops::_conv_depthwise2d::redispatch(dispatchKeySet, self, weight, kernel_size, bias, stride, padding, dilation); + } + + // aten::conv_depthwise3d(Tensor self, Tensor weight, SymInt[3] kernel_size, Tensor? bias, SymInt[3] stride, SymInt[3] padding, SymInt[3] dilation) -> Tensor + inline at::Tensor conv_depthwise3d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, at::IntArrayRef kernel_size, const c10::optional & bias, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation) { + return at::_ops::conv_depthwise3d::redispatch(dispatchKeySet, self, weight, c10::fromIntArrayRefSlow(kernel_size), bias, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(dilation)); + } + + // aten::conv_depthwise3d(Tensor self, Tensor weight, SymInt[3] kernel_size, Tensor? bias, SymInt[3] stride, SymInt[3] padding, SymInt[3] dilation) -> Tensor + inline at::Tensor conv_depthwise3d_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, c10::SymIntArrayRef kernel_size, const c10::optional & bias, c10::SymIntArrayRef stride, c10::SymIntArrayRef padding, c10::SymIntArrayRef dilation) { + return at::_ops::conv_depthwise3d::redispatch(dispatchKeySet, self, weight, kernel_size, bias, stride, padding, dilation); + } + + // aten::slow_conv3d.out(Tensor self, Tensor weight, SymInt[3] kernel_size, Tensor? bias=None, SymInt[3] stride=1, SymInt[3] padding=0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & slow_conv3d_out(c10::DispatchKeySet dispatchKeySet, 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) { + return at::_ops::slow_conv3d_out::redispatch(dispatchKeySet, self, weight, c10::fromIntArrayRefSlow(kernel_size), bias, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), out); + } + + // aten::slow_conv3d.out(Tensor self, Tensor weight, SymInt[3] kernel_size, Tensor? bias=None, SymInt[3] stride=1, SymInt[3] padding=0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & slow_conv3d_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, at::IntArrayRef kernel_size, const c10::optional & bias, at::IntArrayRef stride, at::IntArrayRef padding, at::Tensor & out) { + return at::_ops::slow_conv3d_out::redispatch(dispatchKeySet, self, weight, c10::fromIntArrayRefSlow(kernel_size), bias, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), out); + } + + // aten::slow_conv3d.out(Tensor self, Tensor weight, SymInt[3] kernel_size, Tensor? bias=None, SymInt[3] stride=1, SymInt[3] padding=0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & slow_conv3d_symint_out(c10::DispatchKeySet dispatchKeySet, 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)) { + return at::_ops::slow_conv3d_out::redispatch(dispatchKeySet, self, weight, kernel_size, bias, stride, padding, out); + } + + // aten::slow_conv3d.out(Tensor self, Tensor weight, SymInt[3] kernel_size, Tensor? bias=None, SymInt[3] stride=1, SymInt[3] padding=0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & slow_conv3d_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, c10::SymIntArrayRef kernel_size, const c10::optional & bias, c10::SymIntArrayRef stride, c10::SymIntArrayRef padding, at::Tensor & out) { + return at::_ops::slow_conv3d_out::redispatch(dispatchKeySet, self, weight, kernel_size, bias, stride, padding, out); + } + + // aten::slow_conv3d(Tensor self, Tensor weight, SymInt[3] kernel_size, Tensor? bias=None, SymInt[3] stride=1, SymInt[3] padding=0) -> Tensor + inline at::Tensor slow_conv3d(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, at::IntArrayRef kernel_size, const c10::optional & bias={}, at::IntArrayRef stride=1, at::IntArrayRef padding=0) { + return at::_ops::slow_conv3d::redispatch(dispatchKeySet, self, weight, c10::fromIntArrayRefSlow(kernel_size), bias, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding)); + } + + // aten::slow_conv3d(Tensor self, Tensor weight, SymInt[3] kernel_size, Tensor? bias=None, SymInt[3] stride=1, SymInt[3] padding=0) -> Tensor + inline at::Tensor slow_conv3d_symint(c10::DispatchKeySet dispatchKeySet, 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)) { + return at::_ops::slow_conv3d::redispatch(dispatchKeySet, self, weight, kernel_size, bias, stride, padding); + } + + // aten::slow_conv3d_forward.output(Tensor self, Tensor weight, SymInt[3] kernel_size, Tensor? bias, SymInt[3] stride, SymInt[3] padding, *, Tensor(a!) output) -> Tensor(a!) + inline at::Tensor & slow_conv3d_forward_out(c10::DispatchKeySet dispatchKeySet, 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) { + return at::_ops::slow_conv3d_forward_output::redispatch(dispatchKeySet, self, weight, c10::fromIntArrayRefSlow(kernel_size), bias, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), output); + } + + // aten::slow_conv3d_forward.output(Tensor self, Tensor weight, SymInt[3] kernel_size, Tensor? bias, SymInt[3] stride, SymInt[3] padding, *, Tensor(a!) output) -> Tensor(a!) + inline at::Tensor & slow_conv3d_forward_outf(c10::DispatchKeySet dispatchKeySet, 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) { + return at::_ops::slow_conv3d_forward_output::redispatch(dispatchKeySet, self, weight, c10::fromIntArrayRefSlow(kernel_size), bias, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), output); + } + + // aten::slow_conv3d_forward.output(Tensor self, Tensor weight, SymInt[3] kernel_size, Tensor? bias, SymInt[3] stride, SymInt[3] padding, *, Tensor(a!) output) -> Tensor(a!) + inline at::Tensor & slow_conv3d_forward_symint_out(c10::DispatchKeySet dispatchKeySet, 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) { + return at::_ops::slow_conv3d_forward_output::redispatch(dispatchKeySet, self, weight, kernel_size, bias, stride, padding, output); + } + + // aten::slow_conv3d_forward.output(Tensor self, Tensor weight, SymInt[3] kernel_size, Tensor? bias, SymInt[3] stride, SymInt[3] padding, *, Tensor(a!) output) -> Tensor(a!) + inline at::Tensor & slow_conv3d_forward_symint_outf(c10::DispatchKeySet dispatchKeySet, 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) { + return at::_ops::slow_conv3d_forward_output::redispatch(dispatchKeySet, self, weight, kernel_size, bias, stride, padding, output); + } + + // aten::slow_conv3d_forward(Tensor self, Tensor weight, SymInt[3] kernel_size, Tensor? bias, SymInt[3] stride, SymInt[3] padding) -> Tensor + inline at::Tensor slow_conv3d_forward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, at::IntArrayRef kernel_size, const c10::optional & bias, at::IntArrayRef stride, at::IntArrayRef padding) { + return at::_ops::slow_conv3d_forward::redispatch(dispatchKeySet, self, weight, c10::fromIntArrayRefSlow(kernel_size), bias, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding)); + } + + // aten::slow_conv3d_forward(Tensor self, Tensor weight, SymInt[3] kernel_size, Tensor? bias, SymInt[3] stride, SymInt[3] padding) -> Tensor + inline at::Tensor slow_conv3d_forward_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, c10::SymIntArrayRef kernel_size, const c10::optional & bias, c10::SymIntArrayRef stride, c10::SymIntArrayRef padding) { + return at::_ops::slow_conv3d_forward::redispatch(dispatchKeySet, self, weight, kernel_size, bias, stride, padding); + } + + // aten::slow_conv_dilated2d(Tensor self, Tensor weight, SymInt[2] kernel_size, Tensor? bias=None, SymInt[2] stride=1, SymInt[2] padding=0, SymInt[2] dilation=1) -> Tensor + inline at::Tensor slow_conv_dilated2d(c10::DispatchKeySet dispatchKeySet, 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 dilation=1) { + return at::_ops::slow_conv_dilated2d::redispatch(dispatchKeySet, self, weight, c10::fromIntArrayRefSlow(kernel_size), bias, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(dilation)); + } + + // aten::slow_conv_dilated2d(Tensor self, Tensor weight, SymInt[2] kernel_size, Tensor? bias=None, SymInt[2] stride=1, SymInt[2] padding=0, SymInt[2] dilation=1) -> Tensor + inline at::Tensor slow_conv_dilated2d_symint(c10::DispatchKeySet dispatchKeySet, 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 dilation=c10::SymInt(1)) { + return at::_ops::slow_conv_dilated2d::redispatch(dispatchKeySet, self, weight, kernel_size, bias, stride, padding, dilation); + } + + // aten::slow_conv_dilated3d(Tensor self, Tensor weight, SymInt[3] kernel_size, Tensor? bias=None, SymInt[3] stride=1, SymInt[3] padding=0, SymInt[3] dilation=1) -> Tensor + inline at::Tensor slow_conv_dilated3d(c10::DispatchKeySet dispatchKeySet, 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 dilation=1) { + return at::_ops::slow_conv_dilated3d::redispatch(dispatchKeySet, self, weight, c10::fromIntArrayRefSlow(kernel_size), bias, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(dilation)); + } + + // aten::slow_conv_dilated3d(Tensor self, Tensor weight, SymInt[3] kernel_size, Tensor? bias=None, SymInt[3] stride=1, SymInt[3] padding=0, SymInt[3] dilation=1) -> Tensor + inline at::Tensor slow_conv_dilated3d_symint(c10::DispatchKeySet dispatchKeySet, 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 dilation=c10::SymInt(1)) { + return at::_ops::slow_conv_dilated3d::redispatch(dispatchKeySet, self, weight, kernel_size, bias, stride, padding, dilation); + } + + // aten::col2im.out(Tensor self, SymInt[2] output_size, int[2] kernel_size, int[2] dilation, int[2] padding, int[2] stride, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & col2im_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef output_size, at::IntArrayRef kernel_size, at::IntArrayRef dilation, at::IntArrayRef padding, at::IntArrayRef stride) { + return at::_ops::col2im_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(output_size), kernel_size, dilation, padding, stride, out); + } + + // aten::col2im.out(Tensor self, SymInt[2] output_size, int[2] kernel_size, int[2] dilation, int[2] padding, int[2] stride, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & col2im_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef output_size, at::IntArrayRef kernel_size, at::IntArrayRef dilation, at::IntArrayRef padding, at::IntArrayRef stride, at::Tensor & out) { + return at::_ops::col2im_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(output_size), kernel_size, dilation, padding, stride, out); + } + + // aten::col2im.out(Tensor self, SymInt[2] output_size, int[2] kernel_size, int[2] dilation, int[2] padding, int[2] stride, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & col2im_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::SymIntArrayRef output_size, at::IntArrayRef kernel_size, at::IntArrayRef dilation, at::IntArrayRef padding, at::IntArrayRef stride) { + return at::_ops::col2im_out::redispatch(dispatchKeySet, self, output_size, kernel_size, dilation, padding, stride, out); + } + + // aten::col2im.out(Tensor self, SymInt[2] output_size, int[2] kernel_size, int[2] dilation, int[2] padding, int[2] stride, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & col2im_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef output_size, at::IntArrayRef kernel_size, at::IntArrayRef dilation, at::IntArrayRef padding, at::IntArrayRef stride, at::Tensor & out) { + return at::_ops::col2im_out::redispatch(dispatchKeySet, self, output_size, kernel_size, dilation, padding, stride, out); + } + + // aten::col2im(Tensor self, SymInt[2] output_size, int[2] kernel_size, int[2] dilation, int[2] padding, int[2] stride) -> Tensor + inline at::Tensor col2im(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef output_size, at::IntArrayRef kernel_size, at::IntArrayRef dilation, at::IntArrayRef padding, at::IntArrayRef stride) { + return at::_ops::col2im::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(output_size), kernel_size, dilation, padding, stride); + } + + // aten::col2im(Tensor self, SymInt[2] output_size, int[2] kernel_size, int[2] dilation, int[2] padding, int[2] stride) -> Tensor + inline at::Tensor col2im_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef output_size, at::IntArrayRef kernel_size, at::IntArrayRef dilation, at::IntArrayRef padding, at::IntArrayRef stride) { + return at::_ops::col2im::redispatch(dispatchKeySet, self, output_size, kernel_size, dilation, padding, stride); + } + + // aten::column_stack(Tensor[] tensors) -> Tensor + inline at::Tensor column_stack(c10::DispatchKeySet dispatchKeySet, at::TensorList tensors) { + return at::_ops::column_stack::redispatch(dispatchKeySet, tensors); + } + + // aten::column_stack.out(Tensor[] tensors, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & column_stack_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, at::TensorList tensors) { + return at::_ops::column_stack_out::redispatch(dispatchKeySet, tensors, out); + } + + // aten::column_stack.out(Tensor[] tensors, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & column_stack_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList tensors, at::Tensor & out) { + return at::_ops::column_stack_out::redispatch(dispatchKeySet, tensors, out); + } + + // aten::im2col.out(Tensor self, int[2] kernel_size, int[2] dilation, int[2] padding, int[2] stride, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & im2col_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef dilation, at::IntArrayRef padding, at::IntArrayRef stride) { + return at::_ops::im2col_out::redispatch(dispatchKeySet, self, kernel_size, dilation, padding, stride, out); + } + + // aten::im2col.out(Tensor self, int[2] kernel_size, int[2] dilation, int[2] padding, int[2] stride, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & im2col_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef dilation, at::IntArrayRef padding, at::IntArrayRef stride, at::Tensor & out) { + return at::_ops::im2col_out::redispatch(dispatchKeySet, self, kernel_size, dilation, padding, stride, out); + } + + // aten::im2col(Tensor self, int[2] kernel_size, int[2] dilation, int[2] padding, int[2] stride) -> Tensor + inline at::Tensor im2col(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef dilation, at::IntArrayRef padding, at::IntArrayRef stride) { + return at::_ops::im2col::redispatch(dispatchKeySet, self, kernel_size, dilation, padding, stride); + } + + // aten::isfinite(Tensor self) -> Tensor + inline at::Tensor isfinite(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::isfinite::redispatch(dispatchKeySet, self); + } + + // aten::isinf(Tensor self) -> Tensor + inline at::Tensor isinf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::isinf::redispatch(dispatchKeySet, self); + } + + // aten::record_stream(Tensor(a!) self, Stream s) -> () + inline void record_stream(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, at::Stream s) { + return at::_ops::record_stream::redispatch(dispatchKeySet, self, s); + } + + // aten::isposinf(Tensor self) -> Tensor + inline at::Tensor isposinf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::isposinf::redispatch(dispatchKeySet, self); + } + + // aten::isposinf.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & isposinf_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::isposinf_out::redispatch(dispatchKeySet, self, out); + } + + // aten::isposinf.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & isposinf_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::isposinf_out::redispatch(dispatchKeySet, self, out); + } + + // aten::isneginf(Tensor self) -> Tensor + inline at::Tensor isneginf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::isneginf::redispatch(dispatchKeySet, self); + } + + // aten::isneginf.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & isneginf_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::isneginf_out::redispatch(dispatchKeySet, self, out); + } + + // aten::isneginf.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & isneginf_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::isneginf_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_add_batch_dim(Tensor self, int batch_dim, int level) -> Tensor + inline at::Tensor _add_batch_dim(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t batch_dim, int64_t level) { + return at::_ops::_add_batch_dim::redispatch(dispatchKeySet, self, batch_dim, level); + } + + // aten::_remove_batch_dim(Tensor self, int level, int batch_size, int out_dim) -> Tensor + inline at::Tensor _remove_batch_dim(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t level, int64_t batch_size, int64_t out_dim) { + return at::_ops::_remove_batch_dim::redispatch(dispatchKeySet, self, level, batch_size, out_dim); + } + + // aten::special_entr(Tensor self) -> Tensor + inline at::Tensor special_entr(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::special_entr::redispatch(dispatchKeySet, self); + } + + // aten::special_entr.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_entr_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::special_entr_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_entr.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_entr_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::special_entr_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_ndtri(Tensor self) -> Tensor + inline at::Tensor special_ndtri(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::special_ndtri::redispatch(dispatchKeySet, self); + } + + // aten::special_ndtri.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_ndtri_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::special_ndtri_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_ndtri.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_ndtri_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::special_ndtri_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_log_ndtr(Tensor self) -> Tensor + inline at::Tensor special_log_ndtr(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::special_log_ndtr::redispatch(dispatchKeySet, self); + } + + // aten::special_log_ndtr.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_log_ndtr_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::special_log_ndtr_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_log_ndtr.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_log_ndtr_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::special_log_ndtr_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_expm1(Tensor self) -> Tensor + inline at::Tensor special_expm1(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::special_expm1::redispatch(dispatchKeySet, self); + } + + // aten::special_expm1.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_expm1_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::special_expm1_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_expm1.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_expm1_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::special_expm1_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_exp2(Tensor self) -> Tensor + inline at::Tensor special_exp2(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::special_exp2::redispatch(dispatchKeySet, self); + } + + // aten::special_exp2.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_exp2_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::special_exp2_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_exp2.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_exp2_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::special_exp2_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_psi(Tensor self) -> Tensor + inline at::Tensor special_psi(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::special_psi::redispatch(dispatchKeySet, self); + } + + // aten::special_psi.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_psi_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::special_psi_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_psi.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_psi_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::special_psi_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_digamma(Tensor self) -> Tensor + inline at::Tensor special_digamma(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::special_digamma::redispatch(dispatchKeySet, self); + } + + // aten::special_digamma.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_digamma_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::special_digamma_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_digamma.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_digamma_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::special_digamma_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_gammaln(Tensor self) -> Tensor + inline at::Tensor special_gammaln(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::special_gammaln::redispatch(dispatchKeySet, self); + } + + // aten::special_gammaln.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_gammaln_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::special_gammaln_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_gammaln.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_gammaln_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::special_gammaln_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_erf(Tensor self) -> Tensor + inline at::Tensor special_erf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::special_erf::redispatch(dispatchKeySet, self); + } + + // aten::special_erf.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_erf_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::special_erf_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_erf.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_erf_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::special_erf_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_erfc(Tensor self) -> Tensor + inline at::Tensor special_erfc(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::special_erfc::redispatch(dispatchKeySet, self); + } + + // aten::special_erfc.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_erfc_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::special_erfc_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_erfc.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_erfc_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::special_erfc_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_erfcx(Tensor self) -> Tensor + inline at::Tensor special_erfcx(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::special_erfcx::redispatch(dispatchKeySet, self); + } + + // aten::special_erfcx.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_erfcx_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::special_erfcx_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_erfcx.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_erfcx_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::special_erfcx_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_erfinv(Tensor self) -> Tensor + inline at::Tensor special_erfinv(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::special_erfinv::redispatch(dispatchKeySet, self); + } + + // aten::special_erfinv.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_erfinv_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::special_erfinv_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_erfinv.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_erfinv_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::special_erfinv_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_ndtr(Tensor self) -> Tensor + inline at::Tensor special_ndtr(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::special_ndtr::redispatch(dispatchKeySet, self); + } + + // aten::special_ndtr.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_ndtr_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::special_ndtr_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_ndtr.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_ndtr_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::special_ndtr_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_xlog1py(Tensor self, Tensor other) -> Tensor + inline at::Tensor special_xlog1py(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::special_xlog1py::redispatch(dispatchKeySet, self, other); + } + + // aten::special_xlog1py.self_scalar(Scalar self, Tensor other) -> Tensor + inline at::Tensor special_xlog1py(c10::DispatchKeySet dispatchKeySet, const at::Scalar & self, const at::Tensor & other) { + return at::_ops::special_xlog1py_self_scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::special_xlog1py.other_scalar(Tensor self, Scalar other) -> Tensor + inline at::Tensor special_xlog1py(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::special_xlog1py_other_scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::special_xlog1py.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_xlog1py_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::special_xlog1py_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::special_xlog1py.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_xlog1py_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::special_xlog1py_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::special_xlog1py.self_scalar_out(Scalar self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_xlog1py_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Scalar & self, const at::Tensor & other) { + return at::_ops::special_xlog1py_self_scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::special_xlog1py.self_scalar_out(Scalar self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_xlog1py_outf(c10::DispatchKeySet dispatchKeySet, const at::Scalar & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::special_xlog1py_self_scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::special_xlog1py.other_scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_xlog1py_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::special_xlog1py_other_scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::special_xlog1py.other_scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_xlog1py_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other, at::Tensor & out) { + return at::_ops::special_xlog1py_other_scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::special_xlogy(Tensor self, Tensor other) -> Tensor + inline at::Tensor special_xlogy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::special_xlogy::redispatch(dispatchKeySet, self, other); + } + + // aten::special_xlogy.self_scalar(Scalar self, Tensor other) -> Tensor + inline at::Tensor special_xlogy(c10::DispatchKeySet dispatchKeySet, const at::Scalar & self, const at::Tensor & other) { + return at::_ops::special_xlogy_self_scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::special_xlogy.other_scalar(Tensor self, Scalar other) -> Tensor + inline at::Tensor special_xlogy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::special_xlogy_other_scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::special_xlogy.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_xlogy_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::special_xlogy_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::special_xlogy.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_xlogy_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::special_xlogy_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::special_xlogy.self_scalar_out(Scalar self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_xlogy_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Scalar & self, const at::Tensor & other) { + return at::_ops::special_xlogy_self_scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::special_xlogy.self_scalar_out(Scalar self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_xlogy_outf(c10::DispatchKeySet dispatchKeySet, const at::Scalar & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::special_xlogy_self_scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::special_xlogy.other_scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_xlogy_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::special_xlogy_other_scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::special_xlogy.other_scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_xlogy_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other, at::Tensor & out) { + return at::_ops::special_xlogy_other_scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::special_zeta(Tensor self, Tensor other) -> Tensor + inline at::Tensor special_zeta(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::special_zeta::redispatch(dispatchKeySet, self, other); + } + + // aten::special_zeta.self_scalar(Scalar self, Tensor other) -> Tensor + inline at::Tensor special_zeta(c10::DispatchKeySet dispatchKeySet, const at::Scalar & self, const at::Tensor & other) { + return at::_ops::special_zeta_self_scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::special_zeta.other_scalar(Tensor self, Scalar other) -> Tensor + inline at::Tensor special_zeta(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::special_zeta_other_scalar::redispatch(dispatchKeySet, self, other); + } + + // aten::special_zeta.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_zeta_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::special_zeta_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::special_zeta.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_zeta_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::special_zeta_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::special_zeta.self_scalar_out(Scalar self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_zeta_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Scalar & self, const at::Tensor & other) { + return at::_ops::special_zeta_self_scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::special_zeta.self_scalar_out(Scalar self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_zeta_outf(c10::DispatchKeySet dispatchKeySet, const at::Scalar & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::special_zeta_self_scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::special_zeta.other_scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_zeta_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::special_zeta_other_scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::special_zeta.other_scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_zeta_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other, at::Tensor & out) { + return at::_ops::special_zeta_other_scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::special_i0(Tensor self) -> Tensor + inline at::Tensor special_i0(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::special_i0::redispatch(dispatchKeySet, self); + } + + // aten::special_i0.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_i0_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::special_i0_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_i0.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_i0_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::special_i0_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_i0e(Tensor self) -> Tensor + inline at::Tensor special_i0e(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::special_i0e::redispatch(dispatchKeySet, self); + } + + // aten::special_i0e.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_i0e_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::special_i0e_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_i0e.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_i0e_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::special_i0e_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_i1(Tensor self) -> Tensor + inline at::Tensor special_i1(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::special_i1::redispatch(dispatchKeySet, self); + } + + // aten::special_i1.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_i1_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::special_i1_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_i1.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_i1_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::special_i1_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_i1e(Tensor self) -> Tensor + inline at::Tensor special_i1e(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::special_i1e::redispatch(dispatchKeySet, self); + } + + // aten::special_i1e.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_i1e_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::special_i1e_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_i1e.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_i1e_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::special_i1e_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_logit(Tensor self, float? eps=None) -> Tensor + inline at::Tensor special_logit(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional eps=c10::nullopt) { + return at::_ops::special_logit::redispatch(dispatchKeySet, self, eps); + } + + // aten::special_logit.out(Tensor self, float? eps=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_logit_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::optional eps=c10::nullopt) { + return at::_ops::special_logit_out::redispatch(dispatchKeySet, self, eps, out); + } + + // aten::special_logit.out(Tensor self, float? eps=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_logit_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional eps, at::Tensor & out) { + return at::_ops::special_logit_out::redispatch(dispatchKeySet, self, eps, out); + } + + // aten::special_polygamma(int n, Tensor self) -> Tensor + inline at::Tensor special_polygamma(c10::DispatchKeySet dispatchKeySet, int64_t n, const at::Tensor & self) { + return at::_ops::special_polygamma::redispatch(dispatchKeySet, n, self); + } + + // aten::special_polygamma.out(int n, Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_polygamma_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, int64_t n, const at::Tensor & self) { + return at::_ops::special_polygamma_out::redispatch(dispatchKeySet, n, self, out); + } + + // aten::special_polygamma.out(int n, Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_polygamma_outf(c10::DispatchKeySet dispatchKeySet, int64_t n, const at::Tensor & self, at::Tensor & out) { + return at::_ops::special_polygamma_out::redispatch(dispatchKeySet, n, self, out); + } + + // aten::special_logsumexp(Tensor self, int[1] dim, bool keepdim=False) -> Tensor + inline at::Tensor special_logsumexp(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef dim, bool keepdim=false) { + return at::_ops::special_logsumexp::redispatch(dispatchKeySet, self, dim, keepdim); + } + + // aten::special_logsumexp.out(Tensor self, int[1] dim, bool keepdim=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_logsumexp_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef dim, bool keepdim=false) { + return at::_ops::special_logsumexp_out::redispatch(dispatchKeySet, self, dim, keepdim, out); + } + + // aten::special_logsumexp.out(Tensor self, int[1] dim, bool keepdim=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_logsumexp_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef dim, bool keepdim, at::Tensor & out) { + return at::_ops::special_logsumexp_out::redispatch(dispatchKeySet, self, dim, keepdim, out); + } + + // aten::special_expit(Tensor self) -> Tensor + inline at::Tensor special_expit(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::special_expit::redispatch(dispatchKeySet, self); + } + + // aten::special_expit.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_expit_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::special_expit_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_expit.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_expit_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::special_expit_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_sinc(Tensor self) -> Tensor + inline at::Tensor special_sinc(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::special_sinc::redispatch(dispatchKeySet, self); + } + + // aten::special_sinc.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_sinc_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::special_sinc_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_sinc.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_sinc_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::special_sinc_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_round(Tensor self, *, int decimals=0) -> Tensor + inline at::Tensor special_round(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t decimals=0) { + return at::_ops::special_round::redispatch(dispatchKeySet, self, decimals); + } + + // aten::special_round.out(Tensor self, *, int decimals=0, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_round_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t decimals=0) { + return at::_ops::special_round_out::redispatch(dispatchKeySet, self, decimals, out); + } + + // aten::special_round.out(Tensor self, *, int decimals=0, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_round_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t decimals, at::Tensor & out) { + return at::_ops::special_round_out::redispatch(dispatchKeySet, self, decimals, out); + } + + // aten::special_log1p(Tensor self) -> Tensor + inline at::Tensor special_log1p(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::special_log1p::redispatch(dispatchKeySet, self); + } + + // aten::special_log1p.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_log1p_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::special_log1p_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_log1p.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_log1p_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::special_log1p_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_log_softmax(Tensor self, int dim, *, ScalarType? dtype=None) -> Tensor + inline at::Tensor special_log_softmax(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, c10::optional dtype=c10::nullopt) { + return at::_ops::special_log_softmax::redispatch(dispatchKeySet, self, dim, dtype); + } + + // aten::special_gammainc.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_gammainc_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::special_gammainc_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::special_gammainc.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_gammainc_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::special_gammainc_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::special_gammainc(Tensor self, Tensor other) -> Tensor + inline at::Tensor special_gammainc(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::special_gammainc::redispatch(dispatchKeySet, self, other); + } + + // aten::special_gammaincc.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_gammaincc_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::special_gammaincc_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::special_gammaincc.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_gammaincc_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::special_gammaincc_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::special_gammaincc(Tensor self, Tensor other) -> Tensor + inline at::Tensor special_gammaincc(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::special_gammaincc::redispatch(dispatchKeySet, self, other); + } + + // aten::special_multigammaln(Tensor self, int p) -> Tensor + inline at::Tensor special_multigammaln(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t p) { + return at::_ops::special_multigammaln::redispatch(dispatchKeySet, self, p); + } + + // aten::special_multigammaln.out(Tensor self, int p, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_multigammaln_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t p) { + return at::_ops::special_multigammaln_out::redispatch(dispatchKeySet, self, p, out); + } + + // aten::special_multigammaln.out(Tensor self, int p, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_multigammaln_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t p, at::Tensor & out) { + return at::_ops::special_multigammaln_out::redispatch(dispatchKeySet, self, p, out); + } + + // aten::special_softmax(Tensor self, int dim, ScalarType? dtype=None) -> Tensor + inline at::Tensor special_softmax(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, c10::optional dtype=c10::nullopt) { + return at::_ops::special_softmax::redispatch(dispatchKeySet, self, dim, dtype); + } + + // aten::fft_fft(Tensor self, SymInt? n=None, int dim=-1, str? norm=None) -> Tensor + inline at::Tensor fft_fft(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional n=c10::nullopt, int64_t dim=-1, c10::optional norm=c10::nullopt) { + return at::_ops::fft_fft::redispatch(dispatchKeySet, self, n.has_value() ? c10::make_optional(c10::SymInt(*n)) : c10::nullopt, dim, norm); + } + + // aten::fft_fft(Tensor self, SymInt? n=None, int dim=-1, str? norm=None) -> Tensor + inline at::Tensor fft_fft_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional n=c10::nullopt, int64_t dim=-1, c10::optional norm=c10::nullopt) { + return at::_ops::fft_fft::redispatch(dispatchKeySet, self, n, dim, norm); + } + + // aten::fft_fft.out(Tensor self, SymInt? n=None, int dim=-1, str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_fft_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::optional n=c10::nullopt, int64_t dim=-1, c10::optional norm=c10::nullopt) { + return at::_ops::fft_fft_out::redispatch(dispatchKeySet, self, n.has_value() ? c10::make_optional(c10::SymInt(*n)) : c10::nullopt, dim, norm, out); + } + + // aten::fft_fft.out(Tensor self, SymInt? n=None, int dim=-1, str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_fft_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional n, int64_t dim, c10::optional norm, at::Tensor & out) { + return at::_ops::fft_fft_out::redispatch(dispatchKeySet, self, n.has_value() ? c10::make_optional(c10::SymInt(*n)) : c10::nullopt, dim, norm, out); + } + + // aten::fft_fft.out(Tensor self, SymInt? n=None, int dim=-1, str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_fft_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::optional n=c10::nullopt, int64_t dim=-1, c10::optional norm=c10::nullopt) { + return at::_ops::fft_fft_out::redispatch(dispatchKeySet, self, n, dim, norm, out); + } + + // aten::fft_fft.out(Tensor self, SymInt? n=None, int dim=-1, str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_fft_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional n, int64_t dim, c10::optional norm, at::Tensor & out) { + return at::_ops::fft_fft_out::redispatch(dispatchKeySet, self, n, dim, norm, out); + } + + // aten::fft_ifft(Tensor self, SymInt? n=None, int dim=-1, str? norm=None) -> Tensor + inline at::Tensor fft_ifft(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional n=c10::nullopt, int64_t dim=-1, c10::optional norm=c10::nullopt) { + return at::_ops::fft_ifft::redispatch(dispatchKeySet, self, n.has_value() ? c10::make_optional(c10::SymInt(*n)) : c10::nullopt, dim, norm); + } + + // aten::fft_ifft(Tensor self, SymInt? n=None, int dim=-1, str? norm=None) -> Tensor + inline at::Tensor fft_ifft_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional n=c10::nullopt, int64_t dim=-1, c10::optional norm=c10::nullopt) { + return at::_ops::fft_ifft::redispatch(dispatchKeySet, self, n, dim, norm); + } + + // aten::fft_ifft.out(Tensor self, SymInt? n=None, int dim=-1, str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_ifft_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::optional n=c10::nullopt, int64_t dim=-1, c10::optional norm=c10::nullopt) { + return at::_ops::fft_ifft_out::redispatch(dispatchKeySet, self, n.has_value() ? c10::make_optional(c10::SymInt(*n)) : c10::nullopt, dim, norm, out); + } + + // aten::fft_ifft.out(Tensor self, SymInt? n=None, int dim=-1, str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_ifft_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional n, int64_t dim, c10::optional norm, at::Tensor & out) { + return at::_ops::fft_ifft_out::redispatch(dispatchKeySet, self, n.has_value() ? c10::make_optional(c10::SymInt(*n)) : c10::nullopt, dim, norm, out); + } + + // aten::fft_ifft.out(Tensor self, SymInt? n=None, int dim=-1, str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_ifft_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::optional n=c10::nullopt, int64_t dim=-1, c10::optional norm=c10::nullopt) { + return at::_ops::fft_ifft_out::redispatch(dispatchKeySet, self, n, dim, norm, out); + } + + // aten::fft_ifft.out(Tensor self, SymInt? n=None, int dim=-1, str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_ifft_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional n, int64_t dim, c10::optional norm, at::Tensor & out) { + return at::_ops::fft_ifft_out::redispatch(dispatchKeySet, self, n, dim, norm, out); + } + + // aten::fft_rfft(Tensor self, SymInt? n=None, int dim=-1, str? norm=None) -> Tensor + inline at::Tensor fft_rfft(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional n=c10::nullopt, int64_t dim=-1, c10::optional norm=c10::nullopt) { + return at::_ops::fft_rfft::redispatch(dispatchKeySet, self, n.has_value() ? c10::make_optional(c10::SymInt(*n)) : c10::nullopt, dim, norm); + } + + // aten::fft_rfft(Tensor self, SymInt? n=None, int dim=-1, str? norm=None) -> Tensor + inline at::Tensor fft_rfft_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional n=c10::nullopt, int64_t dim=-1, c10::optional norm=c10::nullopt) { + return at::_ops::fft_rfft::redispatch(dispatchKeySet, self, n, dim, norm); + } + + // aten::fft_rfft.out(Tensor self, SymInt? n=None, int dim=-1, str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_rfft_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::optional n=c10::nullopt, int64_t dim=-1, c10::optional norm=c10::nullopt) { + return at::_ops::fft_rfft_out::redispatch(dispatchKeySet, self, n.has_value() ? c10::make_optional(c10::SymInt(*n)) : c10::nullopt, dim, norm, out); + } + + // aten::fft_rfft.out(Tensor self, SymInt? n=None, int dim=-1, str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_rfft_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional n, int64_t dim, c10::optional norm, at::Tensor & out) { + return at::_ops::fft_rfft_out::redispatch(dispatchKeySet, self, n.has_value() ? c10::make_optional(c10::SymInt(*n)) : c10::nullopt, dim, norm, out); + } + + // aten::fft_rfft.out(Tensor self, SymInt? n=None, int dim=-1, str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_rfft_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::optional n=c10::nullopt, int64_t dim=-1, c10::optional norm=c10::nullopt) { + return at::_ops::fft_rfft_out::redispatch(dispatchKeySet, self, n, dim, norm, out); + } + + // aten::fft_rfft.out(Tensor self, SymInt? n=None, int dim=-1, str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_rfft_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional n, int64_t dim, c10::optional norm, at::Tensor & out) { + return at::_ops::fft_rfft_out::redispatch(dispatchKeySet, self, n, dim, norm, out); + } + + // aten::fft_irfft(Tensor self, SymInt? n=None, int dim=-1, str? norm=None) -> Tensor + inline at::Tensor fft_irfft(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional n=c10::nullopt, int64_t dim=-1, c10::optional norm=c10::nullopt) { + return at::_ops::fft_irfft::redispatch(dispatchKeySet, self, n.has_value() ? c10::make_optional(c10::SymInt(*n)) : c10::nullopt, dim, norm); + } + + // aten::fft_irfft(Tensor self, SymInt? n=None, int dim=-1, str? norm=None) -> Tensor + inline at::Tensor fft_irfft_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional n=c10::nullopt, int64_t dim=-1, c10::optional norm=c10::nullopt) { + return at::_ops::fft_irfft::redispatch(dispatchKeySet, self, n, dim, norm); + } + + // aten::fft_irfft.out(Tensor self, SymInt? n=None, int dim=-1, str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_irfft_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::optional n=c10::nullopt, int64_t dim=-1, c10::optional norm=c10::nullopt) { + return at::_ops::fft_irfft_out::redispatch(dispatchKeySet, self, n.has_value() ? c10::make_optional(c10::SymInt(*n)) : c10::nullopt, dim, norm, out); + } + + // aten::fft_irfft.out(Tensor self, SymInt? n=None, int dim=-1, str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_irfft_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional n, int64_t dim, c10::optional norm, at::Tensor & out) { + return at::_ops::fft_irfft_out::redispatch(dispatchKeySet, self, n.has_value() ? c10::make_optional(c10::SymInt(*n)) : c10::nullopt, dim, norm, out); + } + + // aten::fft_irfft.out(Tensor self, SymInt? n=None, int dim=-1, str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_irfft_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::optional n=c10::nullopt, int64_t dim=-1, c10::optional norm=c10::nullopt) { + return at::_ops::fft_irfft_out::redispatch(dispatchKeySet, self, n, dim, norm, out); + } + + // aten::fft_irfft.out(Tensor self, SymInt? n=None, int dim=-1, str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_irfft_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional n, int64_t dim, c10::optional norm, at::Tensor & out) { + return at::_ops::fft_irfft_out::redispatch(dispatchKeySet, self, n, dim, norm, out); + } + + // aten::fft_hfft(Tensor self, SymInt? n=None, int dim=-1, str? norm=None) -> Tensor + inline at::Tensor fft_hfft(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional n=c10::nullopt, int64_t dim=-1, c10::optional norm=c10::nullopt) { + return at::_ops::fft_hfft::redispatch(dispatchKeySet, self, n.has_value() ? c10::make_optional(c10::SymInt(*n)) : c10::nullopt, dim, norm); + } + + // aten::fft_hfft(Tensor self, SymInt? n=None, int dim=-1, str? norm=None) -> Tensor + inline at::Tensor fft_hfft_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional n=c10::nullopt, int64_t dim=-1, c10::optional norm=c10::nullopt) { + return at::_ops::fft_hfft::redispatch(dispatchKeySet, self, n, dim, norm); + } + + // aten::fft_hfft.out(Tensor self, SymInt? n=None, int dim=-1, str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_hfft_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::optional n=c10::nullopt, int64_t dim=-1, c10::optional norm=c10::nullopt) { + return at::_ops::fft_hfft_out::redispatch(dispatchKeySet, self, n.has_value() ? c10::make_optional(c10::SymInt(*n)) : c10::nullopt, dim, norm, out); + } + + // aten::fft_hfft.out(Tensor self, SymInt? n=None, int dim=-1, str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_hfft_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional n, int64_t dim, c10::optional norm, at::Tensor & out) { + return at::_ops::fft_hfft_out::redispatch(dispatchKeySet, self, n.has_value() ? c10::make_optional(c10::SymInt(*n)) : c10::nullopt, dim, norm, out); + } + + // aten::fft_hfft.out(Tensor self, SymInt? n=None, int dim=-1, str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_hfft_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::optional n=c10::nullopt, int64_t dim=-1, c10::optional norm=c10::nullopt) { + return at::_ops::fft_hfft_out::redispatch(dispatchKeySet, self, n, dim, norm, out); + } + + // aten::fft_hfft.out(Tensor self, SymInt? n=None, int dim=-1, str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_hfft_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional n, int64_t dim, c10::optional norm, at::Tensor & out) { + return at::_ops::fft_hfft_out::redispatch(dispatchKeySet, self, n, dim, norm, out); + } + + // aten::fft_ihfft(Tensor self, SymInt? n=None, int dim=-1, str? norm=None) -> Tensor + inline at::Tensor fft_ihfft(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional n=c10::nullopt, int64_t dim=-1, c10::optional norm=c10::nullopt) { + return at::_ops::fft_ihfft::redispatch(dispatchKeySet, self, n.has_value() ? c10::make_optional(c10::SymInt(*n)) : c10::nullopt, dim, norm); + } + + // aten::fft_ihfft(Tensor self, SymInt? n=None, int dim=-1, str? norm=None) -> Tensor + inline at::Tensor fft_ihfft_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional n=c10::nullopt, int64_t dim=-1, c10::optional norm=c10::nullopt) { + return at::_ops::fft_ihfft::redispatch(dispatchKeySet, self, n, dim, norm); + } + + // aten::fft_ihfft.out(Tensor self, SymInt? n=None, int dim=-1, str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_ihfft_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::optional n=c10::nullopt, int64_t dim=-1, c10::optional norm=c10::nullopt) { + return at::_ops::fft_ihfft_out::redispatch(dispatchKeySet, self, n.has_value() ? c10::make_optional(c10::SymInt(*n)) : c10::nullopt, dim, norm, out); + } + + // aten::fft_ihfft.out(Tensor self, SymInt? n=None, int dim=-1, str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_ihfft_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional n, int64_t dim, c10::optional norm, at::Tensor & out) { + return at::_ops::fft_ihfft_out::redispatch(dispatchKeySet, self, n.has_value() ? c10::make_optional(c10::SymInt(*n)) : c10::nullopt, dim, norm, out); + } + + // aten::fft_ihfft.out(Tensor self, SymInt? n=None, int dim=-1, str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_ihfft_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::optional n=c10::nullopt, int64_t dim=-1, c10::optional norm=c10::nullopt) { + return at::_ops::fft_ihfft_out::redispatch(dispatchKeySet, self, n, dim, norm, out); + } + + // aten::fft_ihfft.out(Tensor self, SymInt? n=None, int dim=-1, str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_ihfft_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional n, int64_t dim, c10::optional norm, at::Tensor & out) { + return at::_ops::fft_ihfft_out::redispatch(dispatchKeySet, self, n, dim, norm, out); + } + + // aten::fft_fft2(Tensor self, SymInt[1]? s=None, int[1] dim=[-2,-1], str? norm=None) -> Tensor + inline at::Tensor fft_fft2(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalIntArrayRef s=c10::nullopt, at::IntArrayRef dim={-2,-1}, c10::optional norm=c10::nullopt) { + return at::_ops::fft_fft2::redispatch(dispatchKeySet, self, s.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*s)) : c10::nullopt, dim, norm); + } + + // aten::fft_fft2(Tensor self, SymInt[1]? s=None, int[1] dim=[-2,-1], str? norm=None) -> Tensor + inline at::Tensor fft_fft2_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalSymIntArrayRef s=c10::nullopt, at::IntArrayRef dim={-2,-1}, c10::optional norm=c10::nullopt) { + return at::_ops::fft_fft2::redispatch(dispatchKeySet, self, s, dim, norm); + } + + // aten::fft_fft2.out(Tensor self, SymInt[1]? s=None, int[1] dim=[-2,-1], str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_fft2_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::OptionalIntArrayRef s=c10::nullopt, at::IntArrayRef dim={-2,-1}, c10::optional norm=c10::nullopt) { + return at::_ops::fft_fft2_out::redispatch(dispatchKeySet, self, s.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*s)) : c10::nullopt, dim, norm, out); + } + + // aten::fft_fft2.out(Tensor self, SymInt[1]? s=None, int[1] dim=[-2,-1], str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_fft2_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalIntArrayRef s, at::IntArrayRef dim, c10::optional norm, at::Tensor & out) { + return at::_ops::fft_fft2_out::redispatch(dispatchKeySet, self, s.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*s)) : c10::nullopt, dim, norm, out); + } + + // aten::fft_fft2.out(Tensor self, SymInt[1]? s=None, int[1] dim=[-2,-1], str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_fft2_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::OptionalSymIntArrayRef s=c10::nullopt, at::IntArrayRef dim={-2,-1}, c10::optional norm=c10::nullopt) { + return at::_ops::fft_fft2_out::redispatch(dispatchKeySet, self, s, dim, norm, out); + } + + // aten::fft_fft2.out(Tensor self, SymInt[1]? s=None, int[1] dim=[-2,-1], str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_fft2_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalSymIntArrayRef s, at::IntArrayRef dim, c10::optional norm, at::Tensor & out) { + return at::_ops::fft_fft2_out::redispatch(dispatchKeySet, self, s, dim, norm, out); + } + + // aten::fft_ifft2(Tensor self, SymInt[1]? s=None, int[1] dim=[-2,-1], str? norm=None) -> Tensor + inline at::Tensor fft_ifft2(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalIntArrayRef s=c10::nullopt, at::IntArrayRef dim={-2,-1}, c10::optional norm=c10::nullopt) { + return at::_ops::fft_ifft2::redispatch(dispatchKeySet, self, s.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*s)) : c10::nullopt, dim, norm); + } + + // aten::fft_ifft2(Tensor self, SymInt[1]? s=None, int[1] dim=[-2,-1], str? norm=None) -> Tensor + inline at::Tensor fft_ifft2_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalSymIntArrayRef s=c10::nullopt, at::IntArrayRef dim={-2,-1}, c10::optional norm=c10::nullopt) { + return at::_ops::fft_ifft2::redispatch(dispatchKeySet, self, s, dim, norm); + } + + // aten::fft_ifft2.out(Tensor self, SymInt[1]? s=None, int[1] dim=[-2,-1], str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_ifft2_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::OptionalIntArrayRef s=c10::nullopt, at::IntArrayRef dim={-2,-1}, c10::optional norm=c10::nullopt) { + return at::_ops::fft_ifft2_out::redispatch(dispatchKeySet, self, s.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*s)) : c10::nullopt, dim, norm, out); + } + + // aten::fft_ifft2.out(Tensor self, SymInt[1]? s=None, int[1] dim=[-2,-1], str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_ifft2_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalIntArrayRef s, at::IntArrayRef dim, c10::optional norm, at::Tensor & out) { + return at::_ops::fft_ifft2_out::redispatch(dispatchKeySet, self, s.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*s)) : c10::nullopt, dim, norm, out); + } + + // aten::fft_ifft2.out(Tensor self, SymInt[1]? s=None, int[1] dim=[-2,-1], str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_ifft2_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::OptionalSymIntArrayRef s=c10::nullopt, at::IntArrayRef dim={-2,-1}, c10::optional norm=c10::nullopt) { + return at::_ops::fft_ifft2_out::redispatch(dispatchKeySet, self, s, dim, norm, out); + } + + // aten::fft_ifft2.out(Tensor self, SymInt[1]? s=None, int[1] dim=[-2,-1], str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_ifft2_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalSymIntArrayRef s, at::IntArrayRef dim, c10::optional norm, at::Tensor & out) { + return at::_ops::fft_ifft2_out::redispatch(dispatchKeySet, self, s, dim, norm, out); + } + + // aten::fft_rfft2(Tensor self, SymInt[1]? s=None, int[1] dim=[-2,-1], str? norm=None) -> Tensor + inline at::Tensor fft_rfft2(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalIntArrayRef s=c10::nullopt, at::IntArrayRef dim={-2,-1}, c10::optional norm=c10::nullopt) { + return at::_ops::fft_rfft2::redispatch(dispatchKeySet, self, s.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*s)) : c10::nullopt, dim, norm); + } + + // aten::fft_rfft2(Tensor self, SymInt[1]? s=None, int[1] dim=[-2,-1], str? norm=None) -> Tensor + inline at::Tensor fft_rfft2_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalSymIntArrayRef s=c10::nullopt, at::IntArrayRef dim={-2,-1}, c10::optional norm=c10::nullopt) { + return at::_ops::fft_rfft2::redispatch(dispatchKeySet, self, s, dim, norm); + } + + // aten::fft_rfft2.out(Tensor self, SymInt[1]? s=None, int[1] dim=[-2,-1], str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_rfft2_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::OptionalIntArrayRef s=c10::nullopt, at::IntArrayRef dim={-2,-1}, c10::optional norm=c10::nullopt) { + return at::_ops::fft_rfft2_out::redispatch(dispatchKeySet, self, s.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*s)) : c10::nullopt, dim, norm, out); + } + + // aten::fft_rfft2.out(Tensor self, SymInt[1]? s=None, int[1] dim=[-2,-1], str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_rfft2_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalIntArrayRef s, at::IntArrayRef dim, c10::optional norm, at::Tensor & out) { + return at::_ops::fft_rfft2_out::redispatch(dispatchKeySet, self, s.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*s)) : c10::nullopt, dim, norm, out); + } + + // aten::fft_rfft2.out(Tensor self, SymInt[1]? s=None, int[1] dim=[-2,-1], str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_rfft2_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::OptionalSymIntArrayRef s=c10::nullopt, at::IntArrayRef dim={-2,-1}, c10::optional norm=c10::nullopt) { + return at::_ops::fft_rfft2_out::redispatch(dispatchKeySet, self, s, dim, norm, out); + } + + // aten::fft_rfft2.out(Tensor self, SymInt[1]? s=None, int[1] dim=[-2,-1], str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_rfft2_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalSymIntArrayRef s, at::IntArrayRef dim, c10::optional norm, at::Tensor & out) { + return at::_ops::fft_rfft2_out::redispatch(dispatchKeySet, self, s, dim, norm, out); + } + + // aten::fft_irfft2(Tensor self, SymInt[1]? s=None, int[1] dim=[-2,-1], str? norm=None) -> Tensor + inline at::Tensor fft_irfft2(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalIntArrayRef s=c10::nullopt, at::IntArrayRef dim={-2,-1}, c10::optional norm=c10::nullopt) { + return at::_ops::fft_irfft2::redispatch(dispatchKeySet, self, s.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*s)) : c10::nullopt, dim, norm); + } + + // aten::fft_irfft2(Tensor self, SymInt[1]? s=None, int[1] dim=[-2,-1], str? norm=None) -> Tensor + inline at::Tensor fft_irfft2_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalSymIntArrayRef s=c10::nullopt, at::IntArrayRef dim={-2,-1}, c10::optional norm=c10::nullopt) { + return at::_ops::fft_irfft2::redispatch(dispatchKeySet, self, s, dim, norm); + } + + // aten::fft_irfft2.out(Tensor self, SymInt[1]? s=None, int[1] dim=[-2,-1], str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_irfft2_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::OptionalIntArrayRef s=c10::nullopt, at::IntArrayRef dim={-2,-1}, c10::optional norm=c10::nullopt) { + return at::_ops::fft_irfft2_out::redispatch(dispatchKeySet, self, s.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*s)) : c10::nullopt, dim, norm, out); + } + + // aten::fft_irfft2.out(Tensor self, SymInt[1]? s=None, int[1] dim=[-2,-1], str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_irfft2_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalIntArrayRef s, at::IntArrayRef dim, c10::optional norm, at::Tensor & out) { + return at::_ops::fft_irfft2_out::redispatch(dispatchKeySet, self, s.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*s)) : c10::nullopt, dim, norm, out); + } + + // aten::fft_irfft2.out(Tensor self, SymInt[1]? s=None, int[1] dim=[-2,-1], str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_irfft2_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::OptionalSymIntArrayRef s=c10::nullopt, at::IntArrayRef dim={-2,-1}, c10::optional norm=c10::nullopt) { + return at::_ops::fft_irfft2_out::redispatch(dispatchKeySet, self, s, dim, norm, out); + } + + // aten::fft_irfft2.out(Tensor self, SymInt[1]? s=None, int[1] dim=[-2,-1], str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_irfft2_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalSymIntArrayRef s, at::IntArrayRef dim, c10::optional norm, at::Tensor & out) { + return at::_ops::fft_irfft2_out::redispatch(dispatchKeySet, self, s, dim, norm, out); + } + + // aten::fft_hfft2(Tensor self, SymInt[1]? s=None, int[1] dim=[-2,-1], str? norm=None) -> Tensor + inline at::Tensor fft_hfft2(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalIntArrayRef s=c10::nullopt, at::IntArrayRef dim={-2,-1}, c10::optional norm=c10::nullopt) { + return at::_ops::fft_hfft2::redispatch(dispatchKeySet, self, s.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*s)) : c10::nullopt, dim, norm); + } + + // aten::fft_hfft2(Tensor self, SymInt[1]? s=None, int[1] dim=[-2,-1], str? norm=None) -> Tensor + inline at::Tensor fft_hfft2_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalSymIntArrayRef s=c10::nullopt, at::IntArrayRef dim={-2,-1}, c10::optional norm=c10::nullopt) { + return at::_ops::fft_hfft2::redispatch(dispatchKeySet, self, s, dim, norm); + } + + // aten::fft_hfft2.out(Tensor self, SymInt[1]? s=None, int[1] dim=[-2,-1], str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline const at::Tensor & fft_hfft2_out(c10::DispatchKeySet dispatchKeySet, const at::Tensor & out, const at::Tensor & self, at::OptionalIntArrayRef s=c10::nullopt, at::IntArrayRef dim={-2,-1}, c10::optional norm=c10::nullopt) { + return at::_ops::fft_hfft2_out::redispatch(dispatchKeySet, self, s.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*s)) : c10::nullopt, dim, norm, out); + } + + // aten::fft_hfft2.out(Tensor self, SymInt[1]? s=None, int[1] dim=[-2,-1], str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline const at::Tensor & fft_hfft2_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalIntArrayRef s, at::IntArrayRef dim, c10::optional norm, const at::Tensor & out) { + return at::_ops::fft_hfft2_out::redispatch(dispatchKeySet, self, s.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*s)) : c10::nullopt, dim, norm, out); + } + + // aten::fft_hfft2.out(Tensor self, SymInt[1]? s=None, int[1] dim=[-2,-1], str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline const at::Tensor & fft_hfft2_symint_out(c10::DispatchKeySet dispatchKeySet, const at::Tensor & out, const at::Tensor & self, at::OptionalSymIntArrayRef s=c10::nullopt, at::IntArrayRef dim={-2,-1}, c10::optional norm=c10::nullopt) { + return at::_ops::fft_hfft2_out::redispatch(dispatchKeySet, self, s, dim, norm, out); + } + + // aten::fft_hfft2.out(Tensor self, SymInt[1]? s=None, int[1] dim=[-2,-1], str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline const at::Tensor & fft_hfft2_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalSymIntArrayRef s, at::IntArrayRef dim, c10::optional norm, const at::Tensor & out) { + return at::_ops::fft_hfft2_out::redispatch(dispatchKeySet, self, s, dim, norm, out); + } + + // aten::fft_ihfft2(Tensor self, SymInt[1]? s=None, int[1] dim=[-2,-1], str? norm=None) -> Tensor + inline at::Tensor fft_ihfft2(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalIntArrayRef s=c10::nullopt, at::IntArrayRef dim={-2,-1}, c10::optional norm=c10::nullopt) { + return at::_ops::fft_ihfft2::redispatch(dispatchKeySet, self, s.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*s)) : c10::nullopt, dim, norm); + } + + // aten::fft_ihfft2(Tensor self, SymInt[1]? s=None, int[1] dim=[-2,-1], str? norm=None) -> Tensor + inline at::Tensor fft_ihfft2_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalSymIntArrayRef s=c10::nullopt, at::IntArrayRef dim={-2,-1}, c10::optional norm=c10::nullopt) { + return at::_ops::fft_ihfft2::redispatch(dispatchKeySet, self, s, dim, norm); + } + + // aten::fft_ihfft2.out(Tensor self, SymInt[1]? s=None, int[1] dim=[-2,-1], str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline const at::Tensor & fft_ihfft2_out(c10::DispatchKeySet dispatchKeySet, const at::Tensor & out, const at::Tensor & self, at::OptionalIntArrayRef s=c10::nullopt, at::IntArrayRef dim={-2,-1}, c10::optional norm=c10::nullopt) { + return at::_ops::fft_ihfft2_out::redispatch(dispatchKeySet, self, s.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*s)) : c10::nullopt, dim, norm, out); + } + + // aten::fft_ihfft2.out(Tensor self, SymInt[1]? s=None, int[1] dim=[-2,-1], str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline const at::Tensor & fft_ihfft2_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalIntArrayRef s, at::IntArrayRef dim, c10::optional norm, const at::Tensor & out) { + return at::_ops::fft_ihfft2_out::redispatch(dispatchKeySet, self, s.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*s)) : c10::nullopt, dim, norm, out); + } + + // aten::fft_ihfft2.out(Tensor self, SymInt[1]? s=None, int[1] dim=[-2,-1], str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline const at::Tensor & fft_ihfft2_symint_out(c10::DispatchKeySet dispatchKeySet, const at::Tensor & out, const at::Tensor & self, at::OptionalSymIntArrayRef s=c10::nullopt, at::IntArrayRef dim={-2,-1}, c10::optional norm=c10::nullopt) { + return at::_ops::fft_ihfft2_out::redispatch(dispatchKeySet, self, s, dim, norm, out); + } + + // aten::fft_ihfft2.out(Tensor self, SymInt[1]? s=None, int[1] dim=[-2,-1], str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline const at::Tensor & fft_ihfft2_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalSymIntArrayRef s, at::IntArrayRef dim, c10::optional norm, const at::Tensor & out) { + return at::_ops::fft_ihfft2_out::redispatch(dispatchKeySet, self, s, dim, norm, out); + } + + // aten::fft_fftn(Tensor self, SymInt[1]? s=None, int[1]? dim=None, str? norm=None) -> Tensor + inline at::Tensor fft_fftn(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalIntArrayRef s=c10::nullopt, at::OptionalIntArrayRef dim=c10::nullopt, c10::optional norm=c10::nullopt) { + return at::_ops::fft_fftn::redispatch(dispatchKeySet, self, s.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*s)) : c10::nullopt, dim, norm); + } + + // aten::fft_fftn(Tensor self, SymInt[1]? s=None, int[1]? dim=None, str? norm=None) -> Tensor + inline at::Tensor fft_fftn_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalSymIntArrayRef s=c10::nullopt, at::OptionalIntArrayRef dim=c10::nullopt, c10::optional norm=c10::nullopt) { + return at::_ops::fft_fftn::redispatch(dispatchKeySet, self, s, dim, norm); + } + + // aten::fft_fftn.out(Tensor self, SymInt[1]? s=None, int[1]? dim=None, str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_fftn_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::OptionalIntArrayRef s=c10::nullopt, at::OptionalIntArrayRef dim=c10::nullopt, c10::optional norm=c10::nullopt) { + return at::_ops::fft_fftn_out::redispatch(dispatchKeySet, self, s.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*s)) : c10::nullopt, dim, norm, out); + } + + // aten::fft_fftn.out(Tensor self, SymInt[1]? s=None, int[1]? dim=None, str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_fftn_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalIntArrayRef s, at::OptionalIntArrayRef dim, c10::optional norm, at::Tensor & out) { + return at::_ops::fft_fftn_out::redispatch(dispatchKeySet, self, s.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*s)) : c10::nullopt, dim, norm, out); + } + + // aten::fft_fftn.out(Tensor self, SymInt[1]? s=None, int[1]? dim=None, str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_fftn_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::OptionalSymIntArrayRef s=c10::nullopt, at::OptionalIntArrayRef dim=c10::nullopt, c10::optional norm=c10::nullopt) { + return at::_ops::fft_fftn_out::redispatch(dispatchKeySet, self, s, dim, norm, out); + } + + // aten::fft_fftn.out(Tensor self, SymInt[1]? s=None, int[1]? dim=None, str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_fftn_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalSymIntArrayRef s, at::OptionalIntArrayRef dim, c10::optional norm, at::Tensor & out) { + return at::_ops::fft_fftn_out::redispatch(dispatchKeySet, self, s, dim, norm, out); + } + + // aten::fft_ifftn(Tensor self, SymInt[1]? s=None, int[1]? dim=None, str? norm=None) -> Tensor + inline at::Tensor fft_ifftn(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalIntArrayRef s=c10::nullopt, at::OptionalIntArrayRef dim=c10::nullopt, c10::optional norm=c10::nullopt) { + return at::_ops::fft_ifftn::redispatch(dispatchKeySet, self, s.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*s)) : c10::nullopt, dim, norm); + } + + // aten::fft_ifftn(Tensor self, SymInt[1]? s=None, int[1]? dim=None, str? norm=None) -> Tensor + inline at::Tensor fft_ifftn_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalSymIntArrayRef s=c10::nullopt, at::OptionalIntArrayRef dim=c10::nullopt, c10::optional norm=c10::nullopt) { + return at::_ops::fft_ifftn::redispatch(dispatchKeySet, self, s, dim, norm); + } + + // aten::fft_ifftn.out(Tensor self, SymInt[1]? s=None, int[1]? dim=None, str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_ifftn_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::OptionalIntArrayRef s=c10::nullopt, at::OptionalIntArrayRef dim=c10::nullopt, c10::optional norm=c10::nullopt) { + return at::_ops::fft_ifftn_out::redispatch(dispatchKeySet, self, s.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*s)) : c10::nullopt, dim, norm, out); + } + + // aten::fft_ifftn.out(Tensor self, SymInt[1]? s=None, int[1]? dim=None, str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_ifftn_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalIntArrayRef s, at::OptionalIntArrayRef dim, c10::optional norm, at::Tensor & out) { + return at::_ops::fft_ifftn_out::redispatch(dispatchKeySet, self, s.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*s)) : c10::nullopt, dim, norm, out); + } + + // aten::fft_ifftn.out(Tensor self, SymInt[1]? s=None, int[1]? dim=None, str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_ifftn_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::OptionalSymIntArrayRef s=c10::nullopt, at::OptionalIntArrayRef dim=c10::nullopt, c10::optional norm=c10::nullopt) { + return at::_ops::fft_ifftn_out::redispatch(dispatchKeySet, self, s, dim, norm, out); + } + + // aten::fft_ifftn.out(Tensor self, SymInt[1]? s=None, int[1]? dim=None, str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_ifftn_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalSymIntArrayRef s, at::OptionalIntArrayRef dim, c10::optional norm, at::Tensor & out) { + return at::_ops::fft_ifftn_out::redispatch(dispatchKeySet, self, s, dim, norm, out); + } + + // aten::fft_rfftn(Tensor self, SymInt[1]? s=None, int[1]? dim=None, str? norm=None) -> Tensor + inline at::Tensor fft_rfftn(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalIntArrayRef s=c10::nullopt, at::OptionalIntArrayRef dim=c10::nullopt, c10::optional norm=c10::nullopt) { + return at::_ops::fft_rfftn::redispatch(dispatchKeySet, self, s.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*s)) : c10::nullopt, dim, norm); + } + + // aten::fft_rfftn(Tensor self, SymInt[1]? s=None, int[1]? dim=None, str? norm=None) -> Tensor + inline at::Tensor fft_rfftn_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalSymIntArrayRef s=c10::nullopt, at::OptionalIntArrayRef dim=c10::nullopt, c10::optional norm=c10::nullopt) { + return at::_ops::fft_rfftn::redispatch(dispatchKeySet, self, s, dim, norm); + } + + // aten::fft_rfftn.out(Tensor self, SymInt[1]? s=None, int[1]? dim=None, str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_rfftn_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::OptionalIntArrayRef s=c10::nullopt, at::OptionalIntArrayRef dim=c10::nullopt, c10::optional norm=c10::nullopt) { + return at::_ops::fft_rfftn_out::redispatch(dispatchKeySet, self, s.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*s)) : c10::nullopt, dim, norm, out); + } + + // aten::fft_rfftn.out(Tensor self, SymInt[1]? s=None, int[1]? dim=None, str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_rfftn_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalIntArrayRef s, at::OptionalIntArrayRef dim, c10::optional norm, at::Tensor & out) { + return at::_ops::fft_rfftn_out::redispatch(dispatchKeySet, self, s.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*s)) : c10::nullopt, dim, norm, out); + } + + // aten::fft_rfftn.out(Tensor self, SymInt[1]? s=None, int[1]? dim=None, str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_rfftn_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::OptionalSymIntArrayRef s=c10::nullopt, at::OptionalIntArrayRef dim=c10::nullopt, c10::optional norm=c10::nullopt) { + return at::_ops::fft_rfftn_out::redispatch(dispatchKeySet, self, s, dim, norm, out); + } + + // aten::fft_rfftn.out(Tensor self, SymInt[1]? s=None, int[1]? dim=None, str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_rfftn_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalSymIntArrayRef s, at::OptionalIntArrayRef dim, c10::optional norm, at::Tensor & out) { + return at::_ops::fft_rfftn_out::redispatch(dispatchKeySet, self, s, dim, norm, out); + } + + // aten::fft_irfftn(Tensor self, SymInt[1]? s=None, int[1]? dim=None, str? norm=None) -> Tensor + inline at::Tensor fft_irfftn(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalIntArrayRef s=c10::nullopt, at::OptionalIntArrayRef dim=c10::nullopt, c10::optional norm=c10::nullopt) { + return at::_ops::fft_irfftn::redispatch(dispatchKeySet, self, s.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*s)) : c10::nullopt, dim, norm); + } + + // aten::fft_irfftn(Tensor self, SymInt[1]? s=None, int[1]? dim=None, str? norm=None) -> Tensor + inline at::Tensor fft_irfftn_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalSymIntArrayRef s=c10::nullopt, at::OptionalIntArrayRef dim=c10::nullopt, c10::optional norm=c10::nullopt) { + return at::_ops::fft_irfftn::redispatch(dispatchKeySet, self, s, dim, norm); + } + + // aten::fft_irfftn.out(Tensor self, SymInt[1]? s=None, int[1]? dim=None, str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_irfftn_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::OptionalIntArrayRef s=c10::nullopt, at::OptionalIntArrayRef dim=c10::nullopt, c10::optional norm=c10::nullopt) { + return at::_ops::fft_irfftn_out::redispatch(dispatchKeySet, self, s.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*s)) : c10::nullopt, dim, norm, out); + } + + // aten::fft_irfftn.out(Tensor self, SymInt[1]? s=None, int[1]? dim=None, str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_irfftn_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalIntArrayRef s, at::OptionalIntArrayRef dim, c10::optional norm, at::Tensor & out) { + return at::_ops::fft_irfftn_out::redispatch(dispatchKeySet, self, s.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*s)) : c10::nullopt, dim, norm, out); + } + + // aten::fft_irfftn.out(Tensor self, SymInt[1]? s=None, int[1]? dim=None, str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_irfftn_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::OptionalSymIntArrayRef s=c10::nullopt, at::OptionalIntArrayRef dim=c10::nullopt, c10::optional norm=c10::nullopt) { + return at::_ops::fft_irfftn_out::redispatch(dispatchKeySet, self, s, dim, norm, out); + } + + // aten::fft_irfftn.out(Tensor self, SymInt[1]? s=None, int[1]? dim=None, str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_irfftn_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalSymIntArrayRef s, at::OptionalIntArrayRef dim, c10::optional norm, at::Tensor & out) { + return at::_ops::fft_irfftn_out::redispatch(dispatchKeySet, self, s, dim, norm, out); + } + + // aten::fft_hfftn(Tensor self, SymInt[1]? s=None, int[1]? dim=None, str? norm=None) -> Tensor + inline at::Tensor fft_hfftn(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalIntArrayRef s=c10::nullopt, at::OptionalIntArrayRef dim=c10::nullopt, c10::optional norm=c10::nullopt) { + return at::_ops::fft_hfftn::redispatch(dispatchKeySet, self, s.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*s)) : c10::nullopt, dim, norm); + } + + // aten::fft_hfftn(Tensor self, SymInt[1]? s=None, int[1]? dim=None, str? norm=None) -> Tensor + inline at::Tensor fft_hfftn_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalSymIntArrayRef s=c10::nullopt, at::OptionalIntArrayRef dim=c10::nullopt, c10::optional norm=c10::nullopt) { + return at::_ops::fft_hfftn::redispatch(dispatchKeySet, self, s, dim, norm); + } + + // aten::fft_hfftn.out(Tensor self, SymInt[1]? s=None, int[1]? dim=None, str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline const at::Tensor & fft_hfftn_out(c10::DispatchKeySet dispatchKeySet, const at::Tensor & out, const at::Tensor & self, at::OptionalIntArrayRef s=c10::nullopt, at::OptionalIntArrayRef dim=c10::nullopt, c10::optional norm=c10::nullopt) { + return at::_ops::fft_hfftn_out::redispatch(dispatchKeySet, self, s.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*s)) : c10::nullopt, dim, norm, out); + } + + // aten::fft_hfftn.out(Tensor self, SymInt[1]? s=None, int[1]? dim=None, str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline const at::Tensor & fft_hfftn_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalIntArrayRef s, at::OptionalIntArrayRef dim, c10::optional norm, const at::Tensor & out) { + return at::_ops::fft_hfftn_out::redispatch(dispatchKeySet, self, s.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*s)) : c10::nullopt, dim, norm, out); + } + + // aten::fft_hfftn.out(Tensor self, SymInt[1]? s=None, int[1]? dim=None, str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline const at::Tensor & fft_hfftn_symint_out(c10::DispatchKeySet dispatchKeySet, const at::Tensor & out, const at::Tensor & self, at::OptionalSymIntArrayRef s=c10::nullopt, at::OptionalIntArrayRef dim=c10::nullopt, c10::optional norm=c10::nullopt) { + return at::_ops::fft_hfftn_out::redispatch(dispatchKeySet, self, s, dim, norm, out); + } + + // aten::fft_hfftn.out(Tensor self, SymInt[1]? s=None, int[1]? dim=None, str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline const at::Tensor & fft_hfftn_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalSymIntArrayRef s, at::OptionalIntArrayRef dim, c10::optional norm, const at::Tensor & out) { + return at::_ops::fft_hfftn_out::redispatch(dispatchKeySet, self, s, dim, norm, out); + } + + // aten::fft_ihfftn(Tensor self, SymInt[1]? s=None, int[1]? dim=None, str? norm=None) -> Tensor + inline at::Tensor fft_ihfftn(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalIntArrayRef s=c10::nullopt, at::OptionalIntArrayRef dim=c10::nullopt, c10::optional norm=c10::nullopt) { + return at::_ops::fft_ihfftn::redispatch(dispatchKeySet, self, s.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*s)) : c10::nullopt, dim, norm); + } + + // aten::fft_ihfftn(Tensor self, SymInt[1]? s=None, int[1]? dim=None, str? norm=None) -> Tensor + inline at::Tensor fft_ihfftn_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalSymIntArrayRef s=c10::nullopt, at::OptionalIntArrayRef dim=c10::nullopt, c10::optional norm=c10::nullopt) { + return at::_ops::fft_ihfftn::redispatch(dispatchKeySet, self, s, dim, norm); + } + + // aten::fft_ihfftn.out(Tensor self, SymInt[1]? s=None, int[1]? dim=None, str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline const at::Tensor & fft_ihfftn_out(c10::DispatchKeySet dispatchKeySet, const at::Tensor & out, const at::Tensor & self, at::OptionalIntArrayRef s=c10::nullopt, at::OptionalIntArrayRef dim=c10::nullopt, c10::optional norm=c10::nullopt) { + return at::_ops::fft_ihfftn_out::redispatch(dispatchKeySet, self, s.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*s)) : c10::nullopt, dim, norm, out); + } + + // aten::fft_ihfftn.out(Tensor self, SymInt[1]? s=None, int[1]? dim=None, str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline const at::Tensor & fft_ihfftn_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalIntArrayRef s, at::OptionalIntArrayRef dim, c10::optional norm, const at::Tensor & out) { + return at::_ops::fft_ihfftn_out::redispatch(dispatchKeySet, self, s.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*s)) : c10::nullopt, dim, norm, out); + } + + // aten::fft_ihfftn.out(Tensor self, SymInt[1]? s=None, int[1]? dim=None, str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline const at::Tensor & fft_ihfftn_symint_out(c10::DispatchKeySet dispatchKeySet, const at::Tensor & out, const at::Tensor & self, at::OptionalSymIntArrayRef s=c10::nullopt, at::OptionalIntArrayRef dim=c10::nullopt, c10::optional norm=c10::nullopt) { + return at::_ops::fft_ihfftn_out::redispatch(dispatchKeySet, self, s, dim, norm, out); + } + + // aten::fft_ihfftn.out(Tensor self, SymInt[1]? s=None, int[1]? dim=None, str? norm=None, *, Tensor(a!) out) -> Tensor(a!) + inline const at::Tensor & fft_ihfftn_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalSymIntArrayRef s, at::OptionalIntArrayRef dim, c10::optional norm, const at::Tensor & out) { + return at::_ops::fft_ihfftn_out::redispatch(dispatchKeySet, self, s, dim, norm, out); + } + + // aten::fft_fftfreq(int n, float d=1.0, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor fft_fftfreq(c10::DispatchKeySet dispatchKeySet, int64_t n, double d=1.0, at::TensorOptions options={}) { + return at::_ops::fft_fftfreq::redispatch(dispatchKeySet, n, d, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::fft_fftfreq(int n, float d=1.0, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor fft_fftfreq(c10::DispatchKeySet dispatchKeySet, int64_t n, double d, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::fft_fftfreq::redispatch(dispatchKeySet, n, d, dtype, layout, device, pin_memory); + } + + // aten::fft_fftfreq.out(int n, float d=1.0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_fftfreq_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, int64_t n, double d=1.0) { + return at::_ops::fft_fftfreq_out::redispatch(dispatchKeySet, n, d, out); + } + + // aten::fft_fftfreq.out(int n, float d=1.0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_fftfreq_outf(c10::DispatchKeySet dispatchKeySet, int64_t n, double d, at::Tensor & out) { + return at::_ops::fft_fftfreq_out::redispatch(dispatchKeySet, n, d, out); + } + + // aten::fft_rfftfreq(int n, float d=1.0, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor fft_rfftfreq(c10::DispatchKeySet dispatchKeySet, int64_t n, double d=1.0, at::TensorOptions options={}) { + return at::_ops::fft_rfftfreq::redispatch(dispatchKeySet, n, d, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } + + // aten::fft_rfftfreq(int n, float d=1.0, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor fft_rfftfreq(c10::DispatchKeySet dispatchKeySet, int64_t n, double d, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::fft_rfftfreq::redispatch(dispatchKeySet, n, d, dtype, layout, device, pin_memory); + } + + // aten::fft_rfftfreq.out(int n, float d=1.0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_rfftfreq_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, int64_t n, double d=1.0) { + return at::_ops::fft_rfftfreq_out::redispatch(dispatchKeySet, n, d, out); + } + + // aten::fft_rfftfreq.out(int n, float d=1.0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fft_rfftfreq_outf(c10::DispatchKeySet dispatchKeySet, int64_t n, double d, at::Tensor & out) { + return at::_ops::fft_rfftfreq_out::redispatch(dispatchKeySet, n, d, out); + } + + // aten::fft_fftshift(Tensor self, int[1]? dim=None) -> Tensor + inline at::Tensor fft_fftshift(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalIntArrayRef dim=c10::nullopt) { + return at::_ops::fft_fftshift::redispatch(dispatchKeySet, self, dim); + } + + // aten::fft_ifftshift(Tensor self, int[1]? dim=None) -> Tensor + inline at::Tensor fft_ifftshift(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalIntArrayRef dim=c10::nullopt) { + return at::_ops::fft_ifftshift::redispatch(dispatchKeySet, self, dim); + } + + // aten::linalg_cholesky_ex(Tensor self, *, bool upper=False, bool check_errors=False) -> (Tensor L, Tensor info) + inline ::std::tuple linalg_cholesky_ex(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, bool upper=false, bool check_errors=false) { + return at::_ops::linalg_cholesky_ex::redispatch(dispatchKeySet, self, upper, check_errors); + } + + // aten::linalg_cholesky_ex.L(Tensor self, *, bool upper=False, bool check_errors=False, Tensor(a!) L, Tensor(b!) info) -> (Tensor(a!) L, Tensor(b!) info) + inline ::std::tuple linalg_cholesky_ex_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & L, at::Tensor & info, const at::Tensor & self, bool upper=false, bool check_errors=false) { + return at::_ops::linalg_cholesky_ex_L::redispatch(dispatchKeySet, self, upper, check_errors, L, info); + } + + // aten::linalg_cholesky_ex.L(Tensor self, *, bool upper=False, bool check_errors=False, Tensor(a!) L, Tensor(b!) info) -> (Tensor(a!) L, Tensor(b!) info) + inline ::std::tuple linalg_cholesky_ex_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, bool upper, bool check_errors, at::Tensor & L, at::Tensor & info) { + return at::_ops::linalg_cholesky_ex_L::redispatch(dispatchKeySet, self, upper, check_errors, L, info); + } + + // aten::linalg_cholesky(Tensor self, *, bool upper=False) -> Tensor + inline at::Tensor linalg_cholesky(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, bool upper=false) { + return at::_ops::linalg_cholesky::redispatch(dispatchKeySet, self, upper); + } + + // aten::linalg_cholesky.out(Tensor self, *, bool upper=False, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_cholesky_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, bool upper=false) { + return at::_ops::linalg_cholesky_out::redispatch(dispatchKeySet, self, upper, out); + } + + // aten::linalg_cholesky.out(Tensor self, *, bool upper=False, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_cholesky_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, bool upper, at::Tensor & out) { + return at::_ops::linalg_cholesky_out::redispatch(dispatchKeySet, self, upper, out); + } + + // aten::linalg_cross(Tensor self, Tensor other, *, int dim=-1) -> Tensor + inline at::Tensor linalg_cross(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, int64_t dim=-1) { + return at::_ops::linalg_cross::redispatch(dispatchKeySet, self, other, dim); + } + + // aten::linalg_cross.out(Tensor self, Tensor other, *, int dim=-1, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_cross_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other, int64_t dim=-1) { + return at::_ops::linalg_cross_out::redispatch(dispatchKeySet, self, other, dim, out); + } + + // aten::linalg_cross.out(Tensor self, Tensor other, *, int dim=-1, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_cross_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, int64_t dim, at::Tensor & out) { + return at::_ops::linalg_cross_out::redispatch(dispatchKeySet, self, other, dim, out); + } + + // aten::linalg_lu_factor(Tensor A, *, bool pivot=True) -> (Tensor LU, Tensor pivots) + inline ::std::tuple linalg_lu_factor(c10::DispatchKeySet dispatchKeySet, const at::Tensor & A, bool pivot=true) { + return at::_ops::linalg_lu_factor::redispatch(dispatchKeySet, A, pivot); + } + + // aten::linalg_lu_factor.out(Tensor A, *, bool pivot=True, Tensor(a!) LU, Tensor(b!) pivots) -> (Tensor(a!) LU, Tensor(b!) pivots) + inline ::std::tuple linalg_lu_factor_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & LU, at::Tensor & pivots, const at::Tensor & A, bool pivot=true) { + return at::_ops::linalg_lu_factor_out::redispatch(dispatchKeySet, A, pivot, LU, pivots); + } + + // aten::linalg_lu_factor.out(Tensor A, *, bool pivot=True, Tensor(a!) LU, Tensor(b!) pivots) -> (Tensor(a!) LU, Tensor(b!) pivots) + inline ::std::tuple linalg_lu_factor_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & A, bool pivot, at::Tensor & LU, at::Tensor & pivots) { + return at::_ops::linalg_lu_factor_out::redispatch(dispatchKeySet, A, pivot, LU, pivots); + } + + // aten::linalg_lu_factor_ex(Tensor A, *, bool pivot=True, bool check_errors=False) -> (Tensor LU, Tensor pivots, Tensor info) + inline ::std::tuple linalg_lu_factor_ex(c10::DispatchKeySet dispatchKeySet, const at::Tensor & A, bool pivot=true, bool check_errors=false) { + return at::_ops::linalg_lu_factor_ex::redispatch(dispatchKeySet, A, pivot, check_errors); + } + + // aten::linalg_lu_factor_ex.out(Tensor A, *, bool pivot=True, bool check_errors=False, Tensor(a!) LU, Tensor(b!) pivots, Tensor(c!) info) -> (Tensor(a!) LU, Tensor(b!) pivots, Tensor(c!) info) + inline ::std::tuple linalg_lu_factor_ex_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & LU, at::Tensor & pivots, at::Tensor & info, const at::Tensor & A, bool pivot=true, bool check_errors=false) { + return at::_ops::linalg_lu_factor_ex_out::redispatch(dispatchKeySet, A, pivot, check_errors, LU, pivots, info); + } + + // aten::linalg_lu_factor_ex.out(Tensor A, *, bool pivot=True, bool check_errors=False, Tensor(a!) LU, Tensor(b!) pivots, Tensor(c!) info) -> (Tensor(a!) LU, Tensor(b!) pivots, Tensor(c!) info) + inline ::std::tuple linalg_lu_factor_ex_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & A, bool pivot, bool check_errors, at::Tensor & LU, at::Tensor & pivots, at::Tensor & info) { + return at::_ops::linalg_lu_factor_ex_out::redispatch(dispatchKeySet, A, pivot, check_errors, LU, pivots, info); + } + + // aten::linalg_lu(Tensor A, *, bool pivot=True) -> (Tensor P, Tensor L, Tensor U) + inline ::std::tuple linalg_lu(c10::DispatchKeySet dispatchKeySet, const at::Tensor & A, bool pivot=true) { + return at::_ops::linalg_lu::redispatch(dispatchKeySet, A, pivot); + } + + // aten::linalg_lu.out(Tensor A, *, bool pivot=True, Tensor(a!) P, Tensor(b!) L, Tensor(c!) U) -> (Tensor(a!) P, Tensor(b!) L, Tensor(c!) U) + inline ::std::tuple linalg_lu_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & P, at::Tensor & L, at::Tensor & U, const at::Tensor & A, bool pivot=true) { + return at::_ops::linalg_lu_out::redispatch(dispatchKeySet, A, pivot, P, L, U); + } + + // aten::linalg_lu.out(Tensor A, *, bool pivot=True, Tensor(a!) P, Tensor(b!) L, Tensor(c!) U) -> (Tensor(a!) P, Tensor(b!) L, Tensor(c!) U) + inline ::std::tuple linalg_lu_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & A, bool pivot, at::Tensor & P, at::Tensor & L, at::Tensor & U) { + return at::_ops::linalg_lu_out::redispatch(dispatchKeySet, A, pivot, P, L, U); + } + + // aten::linalg_lu_solve(Tensor LU, Tensor pivots, Tensor B, *, bool left=True, bool adjoint=False) -> Tensor + inline at::Tensor linalg_lu_solve(c10::DispatchKeySet dispatchKeySet, const at::Tensor & LU, const at::Tensor & pivots, const at::Tensor & B, bool left=true, bool adjoint=false) { + return at::_ops::linalg_lu_solve::redispatch(dispatchKeySet, LU, pivots, B, left, adjoint); + } + + // aten::linalg_lu_solve.out(Tensor LU, Tensor pivots, Tensor B, *, bool left=True, bool adjoint=False, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_lu_solve_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & LU, const at::Tensor & pivots, const at::Tensor & B, bool left=true, bool adjoint=false) { + return at::_ops::linalg_lu_solve_out::redispatch(dispatchKeySet, LU, pivots, B, left, adjoint, out); + } + + // aten::linalg_lu_solve.out(Tensor LU, Tensor pivots, Tensor B, *, bool left=True, bool adjoint=False, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_lu_solve_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & LU, const at::Tensor & pivots, const at::Tensor & B, bool left, bool adjoint, at::Tensor & out) { + return at::_ops::linalg_lu_solve_out::redispatch(dispatchKeySet, LU, pivots, B, left, adjoint, out); + } + + // aten::_linalg_det(Tensor A) -> (Tensor result, Tensor LU, Tensor pivots) + inline ::std::tuple _linalg_det(c10::DispatchKeySet dispatchKeySet, const at::Tensor & A) { + return at::_ops::_linalg_det::redispatch(dispatchKeySet, A); + } + + // aten::_linalg_det.result(Tensor A, *, Tensor(a!) result, Tensor(b!) LU, Tensor(c!) pivots) -> (Tensor(a!) result, Tensor(b!) LU, Tensor(c!) pivots) + inline ::std::tuple _linalg_det_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & result, at::Tensor & LU, at::Tensor & pivots, const at::Tensor & A) { + return at::_ops::_linalg_det_result::redispatch(dispatchKeySet, A, result, LU, pivots); + } + + // aten::_linalg_det.result(Tensor A, *, Tensor(a!) result, Tensor(b!) LU, Tensor(c!) pivots) -> (Tensor(a!) result, Tensor(b!) LU, Tensor(c!) pivots) + inline ::std::tuple _linalg_det_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & A, at::Tensor & result, at::Tensor & LU, at::Tensor & pivots) { + return at::_ops::_linalg_det_result::redispatch(dispatchKeySet, A, result, LU, pivots); + } + + // aten::linalg_det(Tensor A) -> Tensor + inline at::Tensor linalg_det(c10::DispatchKeySet dispatchKeySet, const at::Tensor & A) { + return at::_ops::linalg_det::redispatch(dispatchKeySet, A); + } + + // aten::linalg_det.out(Tensor A, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_det_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & A) { + return at::_ops::linalg_det_out::redispatch(dispatchKeySet, A, out); + } + + // aten::linalg_det.out(Tensor A, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_det_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & A, at::Tensor & out) { + return at::_ops::linalg_det_out::redispatch(dispatchKeySet, A, out); + } + + // aten::det(Tensor self) -> Tensor + inline at::Tensor det(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::det::redispatch(dispatchKeySet, self); + } + + // aten::linalg_ldl_factor_ex(Tensor self, *, bool hermitian=False, bool check_errors=False) -> (Tensor LD, Tensor pivots, Tensor info) + inline ::std::tuple linalg_ldl_factor_ex(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, bool hermitian=false, bool check_errors=false) { + return at::_ops::linalg_ldl_factor_ex::redispatch(dispatchKeySet, self, hermitian, check_errors); + } + + // aten::linalg_ldl_factor_ex.out(Tensor self, *, bool hermitian=False, bool check_errors=False, Tensor(a!) LD, Tensor(b!) pivots, Tensor(c!) info) -> (Tensor(a!) LD, Tensor(b!) pivots, Tensor(c!) info) + inline ::std::tuple linalg_ldl_factor_ex_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & LD, at::Tensor & pivots, at::Tensor & info, const at::Tensor & self, bool hermitian=false, bool check_errors=false) { + return at::_ops::linalg_ldl_factor_ex_out::redispatch(dispatchKeySet, self, hermitian, check_errors, LD, pivots, info); + } + + // aten::linalg_ldl_factor_ex.out(Tensor self, *, bool hermitian=False, bool check_errors=False, Tensor(a!) LD, Tensor(b!) pivots, Tensor(c!) info) -> (Tensor(a!) LD, Tensor(b!) pivots, Tensor(c!) info) + inline ::std::tuple linalg_ldl_factor_ex_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, bool hermitian, bool check_errors, at::Tensor & LD, at::Tensor & pivots, at::Tensor & info) { + return at::_ops::linalg_ldl_factor_ex_out::redispatch(dispatchKeySet, self, hermitian, check_errors, LD, pivots, info); + } + + // aten::linalg_ldl_factor(Tensor self, *, bool hermitian=False) -> (Tensor LD, Tensor pivots) + inline ::std::tuple linalg_ldl_factor(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, bool hermitian=false) { + return at::_ops::linalg_ldl_factor::redispatch(dispatchKeySet, self, hermitian); + } + + // aten::linalg_ldl_factor.out(Tensor self, *, bool hermitian=False, Tensor(a!) LD, Tensor(b!) pivots) -> (Tensor(a!) LD, Tensor(b!) pivots) + inline ::std::tuple linalg_ldl_factor_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & LD, at::Tensor & pivots, const at::Tensor & self, bool hermitian=false) { + return at::_ops::linalg_ldl_factor_out::redispatch(dispatchKeySet, self, hermitian, LD, pivots); + } + + // aten::linalg_ldl_factor.out(Tensor self, *, bool hermitian=False, Tensor(a!) LD, Tensor(b!) pivots) -> (Tensor(a!) LD, Tensor(b!) pivots) + inline ::std::tuple linalg_ldl_factor_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, bool hermitian, at::Tensor & LD, at::Tensor & pivots) { + return at::_ops::linalg_ldl_factor_out::redispatch(dispatchKeySet, self, hermitian, LD, pivots); + } + + // aten::linalg_ldl_solve(Tensor LD, Tensor pivots, Tensor B, *, bool hermitian=False) -> Tensor + inline at::Tensor linalg_ldl_solve(c10::DispatchKeySet dispatchKeySet, const at::Tensor & LD, const at::Tensor & pivots, const at::Tensor & B, bool hermitian=false) { + return at::_ops::linalg_ldl_solve::redispatch(dispatchKeySet, LD, pivots, B, hermitian); + } + + // aten::linalg_ldl_solve.out(Tensor LD, Tensor pivots, Tensor B, *, bool hermitian=False, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_ldl_solve_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & LD, const at::Tensor & pivots, const at::Tensor & B, bool hermitian=false) { + return at::_ops::linalg_ldl_solve_out::redispatch(dispatchKeySet, LD, pivots, B, hermitian, out); + } + + // aten::linalg_ldl_solve.out(Tensor LD, Tensor pivots, Tensor B, *, bool hermitian=False, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_ldl_solve_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & LD, const at::Tensor & pivots, const at::Tensor & B, bool hermitian, at::Tensor & out) { + return at::_ops::linalg_ldl_solve_out::redispatch(dispatchKeySet, LD, pivots, B, hermitian, out); + } + + // aten::linalg_lstsq(Tensor self, Tensor b, float? rcond=None, *, str? driver=None) -> (Tensor solution, Tensor residuals, Tensor rank, Tensor singular_values) + inline ::std::tuple linalg_lstsq(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & b, c10::optional rcond=c10::nullopt, c10::optional driver=c10::nullopt) { + return at::_ops::linalg_lstsq::redispatch(dispatchKeySet, self, b, rcond, driver); + } + + // aten::linalg_lstsq.out(Tensor self, Tensor b, float? rcond=None, *, str? driver=None, Tensor(a!) solution, Tensor(b!) residuals, Tensor(c!) rank, Tensor(d!) singular_values) -> (Tensor(a!) solution, Tensor(b!) residuals, Tensor(c!) rank, Tensor(d!) singular_values) + inline ::std::tuple linalg_lstsq_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & solution, at::Tensor & residuals, at::Tensor & rank, at::Tensor & singular_values, const at::Tensor & self, const at::Tensor & b, c10::optional rcond=c10::nullopt, c10::optional driver=c10::nullopt) { + return at::_ops::linalg_lstsq_out::redispatch(dispatchKeySet, self, b, rcond, driver, solution, residuals, rank, singular_values); + } + + // aten::linalg_lstsq.out(Tensor self, Tensor b, float? rcond=None, *, str? driver=None, Tensor(a!) solution, Tensor(b!) residuals, Tensor(c!) rank, Tensor(d!) singular_values) -> (Tensor(a!) solution, Tensor(b!) residuals, Tensor(c!) rank, Tensor(d!) singular_values) + inline ::std::tuple linalg_lstsq_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & b, c10::optional rcond, c10::optional driver, at::Tensor & solution, at::Tensor & residuals, at::Tensor & rank, at::Tensor & singular_values) { + return at::_ops::linalg_lstsq_out::redispatch(dispatchKeySet, self, b, rcond, driver, solution, residuals, rank, singular_values); + } + + // aten::linalg_matmul(Tensor self, Tensor other) -> Tensor + inline at::Tensor linalg_matmul(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::linalg_matmul::redispatch(dispatchKeySet, self, other); + } + + // aten::linalg_matmul.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_matmul_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::linalg_matmul_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::linalg_matmul.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_matmul_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::linalg_matmul_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::linalg_vecdot(Tensor x, Tensor y, *, int dim=-1) -> Tensor + inline at::Tensor linalg_vecdot(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, const at::Tensor & y, int64_t dim=-1) { + return at::_ops::linalg_vecdot::redispatch(dispatchKeySet, x, y, dim); + } + + // aten::linalg_vecdot.out(Tensor x, Tensor y, *, int dim=-1, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_vecdot_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & x, const at::Tensor & y, int64_t dim=-1) { + return at::_ops::linalg_vecdot_out::redispatch(dispatchKeySet, x, y, dim, out); + } + + // aten::linalg_vecdot.out(Tensor x, Tensor y, *, int dim=-1, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_vecdot_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, const at::Tensor & y, int64_t dim, at::Tensor & out) { + return at::_ops::linalg_vecdot_out::redispatch(dispatchKeySet, x, y, dim, out); + } + + // aten::linalg_matrix_exp(Tensor self) -> Tensor + inline at::Tensor linalg_matrix_exp(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::linalg_matrix_exp::redispatch(dispatchKeySet, self); + } + + // aten::_linalg_slogdet(Tensor A) -> (Tensor sign, Tensor logabsdet, Tensor LU, Tensor pivots) + inline ::std::tuple _linalg_slogdet(c10::DispatchKeySet dispatchKeySet, const at::Tensor & A) { + return at::_ops::_linalg_slogdet::redispatch(dispatchKeySet, A); + } + + // aten::_linalg_slogdet.sign(Tensor A, *, Tensor(a!) sign, Tensor(b!) logabsdet, Tensor(c!) LU, Tensor(d!) pivots) -> (Tensor(a!) sign, Tensor(b!) logabsdet, Tensor(c!) LU, Tensor(d!) pivots) + inline ::std::tuple _linalg_slogdet_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & sign, at::Tensor & logabsdet, at::Tensor & LU, at::Tensor & pivots, const at::Tensor & A) { + return at::_ops::_linalg_slogdet_sign::redispatch(dispatchKeySet, A, sign, logabsdet, LU, pivots); + } + + // aten::_linalg_slogdet.sign(Tensor A, *, Tensor(a!) sign, Tensor(b!) logabsdet, Tensor(c!) LU, Tensor(d!) pivots) -> (Tensor(a!) sign, Tensor(b!) logabsdet, Tensor(c!) LU, Tensor(d!) pivots) + inline ::std::tuple _linalg_slogdet_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & A, at::Tensor & sign, at::Tensor & logabsdet, at::Tensor & LU, at::Tensor & pivots) { + return at::_ops::_linalg_slogdet_sign::redispatch(dispatchKeySet, A, sign, logabsdet, LU, pivots); + } + + // aten::linalg_slogdet(Tensor A) -> (Tensor sign, Tensor logabsdet) + inline ::std::tuple linalg_slogdet(c10::DispatchKeySet dispatchKeySet, const at::Tensor & A) { + return at::_ops::linalg_slogdet::redispatch(dispatchKeySet, A); + } + + // aten::linalg_slogdet.out(Tensor A, *, Tensor(a!) sign, Tensor(b!) logabsdet) -> (Tensor(a!) sign, Tensor(b!) logabsdet) + inline ::std::tuple linalg_slogdet_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & sign, at::Tensor & logabsdet, const at::Tensor & A) { + return at::_ops::linalg_slogdet_out::redispatch(dispatchKeySet, A, sign, logabsdet); + } + + // aten::linalg_slogdet.out(Tensor A, *, Tensor(a!) sign, Tensor(b!) logabsdet) -> (Tensor(a!) sign, Tensor(b!) logabsdet) + inline ::std::tuple linalg_slogdet_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & A, at::Tensor & sign, at::Tensor & logabsdet) { + return at::_ops::linalg_slogdet_out::redispatch(dispatchKeySet, A, sign, logabsdet); + } + + // aten::slogdet(Tensor self) -> (Tensor sign, Tensor logabsdet) + inline ::std::tuple slogdet(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::slogdet::redispatch(dispatchKeySet, self); + } + + // aten::slogdet.out(Tensor self, *, Tensor(a!) sign, Tensor(b!) logabsdet) -> (Tensor(a!) sign, Tensor(b!) logabsdet) + inline ::std::tuple slogdet_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & sign, at::Tensor & logabsdet, const at::Tensor & self) { + return at::_ops::slogdet_out::redispatch(dispatchKeySet, self, sign, logabsdet); + } + + // aten::slogdet.out(Tensor self, *, Tensor(a!) sign, Tensor(b!) logabsdet) -> (Tensor(a!) sign, Tensor(b!) logabsdet) + inline ::std::tuple slogdet_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & sign, at::Tensor & logabsdet) { + return at::_ops::slogdet_out::redispatch(dispatchKeySet, self, sign, logabsdet); + } + + // aten::logdet(Tensor self) -> Tensor + inline at::Tensor logdet(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::logdet::redispatch(dispatchKeySet, self); + } + + // aten::linalg_eig(Tensor self) -> (Tensor eigenvalues, Tensor eigenvectors) + inline ::std::tuple linalg_eig(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::linalg_eig::redispatch(dispatchKeySet, self); + } + + // aten::linalg_eig.out(Tensor self, *, Tensor(a!) eigenvalues, Tensor(b!) eigenvectors) -> (Tensor(a!) eigenvalues, Tensor(b!) eigenvectors) + inline ::std::tuple linalg_eig_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & eigenvalues, at::Tensor & eigenvectors, const at::Tensor & self) { + return at::_ops::linalg_eig_out::redispatch(dispatchKeySet, self, eigenvalues, eigenvectors); + } + + // aten::linalg_eig.out(Tensor self, *, Tensor(a!) eigenvalues, Tensor(b!) eigenvectors) -> (Tensor(a!) eigenvalues, Tensor(b!) eigenvectors) + inline ::std::tuple linalg_eig_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & eigenvalues, at::Tensor & eigenvectors) { + return at::_ops::linalg_eig_out::redispatch(dispatchKeySet, self, eigenvalues, eigenvectors); + } + + // aten::_linalg_eigvals(Tensor self) -> Tensor + inline at::Tensor _linalg_eigvals(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::_linalg_eigvals::redispatch(dispatchKeySet, self); + } + + // aten::linalg_eigvals(Tensor self) -> Tensor + inline at::Tensor linalg_eigvals(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::linalg_eigvals::redispatch(dispatchKeySet, self); + } + + // aten::linalg_eigvals.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_eigvals_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::linalg_eigvals_out::redispatch(dispatchKeySet, self, out); + } + + // aten::linalg_eigvals.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_eigvals_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::linalg_eigvals_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_linalg_eigh(Tensor A, str UPLO="L", bool compute_v=True) -> (Tensor eigenvalues, Tensor eigenvectors) + inline ::std::tuple _linalg_eigh(c10::DispatchKeySet dispatchKeySet, const at::Tensor & A, c10::string_view UPLO="L", bool compute_v=true) { + return at::_ops::_linalg_eigh::redispatch(dispatchKeySet, A, UPLO, compute_v); + } + + // aten::_linalg_eigh.eigenvalues(Tensor A, str UPLO="L", bool compute_v=True, *, Tensor(a!) eigenvalues, Tensor(b!) eigenvectors) -> (Tensor(a!) eigenvalues, Tensor(b!) eigenvectors) + inline ::std::tuple _linalg_eigh_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & eigenvalues, at::Tensor & eigenvectors, const at::Tensor & A, c10::string_view UPLO="L", bool compute_v=true) { + return at::_ops::_linalg_eigh_eigenvalues::redispatch(dispatchKeySet, A, UPLO, compute_v, eigenvalues, eigenvectors); + } + + // aten::_linalg_eigh.eigenvalues(Tensor A, str UPLO="L", bool compute_v=True, *, Tensor(a!) eigenvalues, Tensor(b!) eigenvectors) -> (Tensor(a!) eigenvalues, Tensor(b!) eigenvectors) + inline ::std::tuple _linalg_eigh_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & A, c10::string_view UPLO, bool compute_v, at::Tensor & eigenvalues, at::Tensor & eigenvectors) { + return at::_ops::_linalg_eigh_eigenvalues::redispatch(dispatchKeySet, A, UPLO, compute_v, eigenvalues, eigenvectors); + } + + // aten::linalg_eigh(Tensor self, str UPLO="L") -> (Tensor eigenvalues, Tensor eigenvectors) + inline ::std::tuple linalg_eigh(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::string_view UPLO="L") { + return at::_ops::linalg_eigh::redispatch(dispatchKeySet, self, UPLO); + } + + // aten::linalg_eigh.eigvals(Tensor self, str UPLO="L", *, Tensor(a!) eigvals, Tensor(b!) eigvecs) -> (Tensor(a!) eigenvalues, Tensor(b!) eigenvectors) + inline ::std::tuple linalg_eigh_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & eigvals, at::Tensor & eigvecs, const at::Tensor & self, c10::string_view UPLO="L") { + return at::_ops::linalg_eigh_eigvals::redispatch(dispatchKeySet, self, UPLO, eigvals, eigvecs); + } + + // aten::linalg_eigh.eigvals(Tensor self, str UPLO="L", *, Tensor(a!) eigvals, Tensor(b!) eigvecs) -> (Tensor(a!) eigenvalues, Tensor(b!) eigenvectors) + inline ::std::tuple linalg_eigh_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::string_view UPLO, at::Tensor & eigvals, at::Tensor & eigvecs) { + return at::_ops::linalg_eigh_eigvals::redispatch(dispatchKeySet, self, UPLO, eigvals, eigvecs); + } + + // aten::linalg_eigvalsh(Tensor self, str UPLO="L") -> Tensor + inline at::Tensor linalg_eigvalsh(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::string_view UPLO="L") { + return at::_ops::linalg_eigvalsh::redispatch(dispatchKeySet, self, UPLO); + } + + // aten::linalg_eigvalsh.out(Tensor self, str UPLO="L", *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_eigvalsh_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::string_view UPLO="L") { + return at::_ops::linalg_eigvalsh_out::redispatch(dispatchKeySet, self, UPLO, out); + } + + // aten::linalg_eigvalsh.out(Tensor self, str UPLO="L", *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_eigvalsh_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::string_view UPLO, at::Tensor & out) { + return at::_ops::linalg_eigvalsh_out::redispatch(dispatchKeySet, self, UPLO, out); + } + + // aten::linalg_householder_product(Tensor input, Tensor tau) -> Tensor + inline at::Tensor linalg_householder_product(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & tau) { + return at::_ops::linalg_householder_product::redispatch(dispatchKeySet, input, tau); + } + + // aten::linalg_householder_product.out(Tensor input, Tensor tau, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_householder_product_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & input, const at::Tensor & tau) { + return at::_ops::linalg_householder_product_out::redispatch(dispatchKeySet, input, tau, out); + } + + // aten::linalg_householder_product.out(Tensor input, Tensor tau, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_householder_product_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & tau, at::Tensor & out) { + return at::_ops::linalg_householder_product_out::redispatch(dispatchKeySet, input, tau, out); + } + + // aten::linalg_inv_ex(Tensor A, *, bool check_errors=False) -> (Tensor inverse, Tensor info) + inline ::std::tuple linalg_inv_ex(c10::DispatchKeySet dispatchKeySet, const at::Tensor & A, bool check_errors=false) { + return at::_ops::linalg_inv_ex::redispatch(dispatchKeySet, A, check_errors); + } + + // aten::linalg_inv_ex.inverse(Tensor A, *, bool check_errors=False, Tensor(a!) inverse, Tensor(b!) info) -> (Tensor(a!) inverse, Tensor(b!) info) + inline ::std::tuple linalg_inv_ex_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & inverse, at::Tensor & info, const at::Tensor & A, bool check_errors=false) { + return at::_ops::linalg_inv_ex_inverse::redispatch(dispatchKeySet, A, check_errors, inverse, info); + } + + // aten::linalg_inv_ex.inverse(Tensor A, *, bool check_errors=False, Tensor(a!) inverse, Tensor(b!) info) -> (Tensor(a!) inverse, Tensor(b!) info) + inline ::std::tuple linalg_inv_ex_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & A, bool check_errors, at::Tensor & inverse, at::Tensor & info) { + return at::_ops::linalg_inv_ex_inverse::redispatch(dispatchKeySet, A, check_errors, inverse, info); + } + + // aten::linalg_inv(Tensor A) -> Tensor + inline at::Tensor linalg_inv(c10::DispatchKeySet dispatchKeySet, const at::Tensor & A) { + return at::_ops::linalg_inv::redispatch(dispatchKeySet, A); + } + + // aten::linalg_inv.out(Tensor A, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_inv_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & A) { + return at::_ops::linalg_inv_out::redispatch(dispatchKeySet, A, out); + } + + // aten::linalg_inv.out(Tensor A, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_inv_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & A, at::Tensor & out) { + return at::_ops::linalg_inv_out::redispatch(dispatchKeySet, A, out); + } + + // aten::inverse(Tensor self) -> Tensor + inline at::Tensor inverse(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::inverse::redispatch(dispatchKeySet, self); + } + + // aten::inverse.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & inverse_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::inverse_out::redispatch(dispatchKeySet, self, out); + } + + // aten::inverse.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & inverse_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::inverse_out::redispatch(dispatchKeySet, self, out); + } + + // aten::inner(Tensor self, Tensor other) -> Tensor + inline at::Tensor inner(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::inner::redispatch(dispatchKeySet, self, other); + } + + // aten::inner.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & inner_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::inner_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::inner.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & inner_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::inner_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::outer(Tensor self, Tensor vec2) -> Tensor + inline at::Tensor outer(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & vec2) { + return at::_ops::outer::redispatch(dispatchKeySet, self, vec2); + } + + // aten::outer.out(Tensor self, Tensor vec2, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & outer_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & vec2) { + return at::_ops::outer_out::redispatch(dispatchKeySet, self, vec2, out); + } + + // aten::outer.out(Tensor self, Tensor vec2, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & outer_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & vec2, at::Tensor & out) { + return at::_ops::outer_out::redispatch(dispatchKeySet, self, vec2, out); + } + + // aten::ger(Tensor self, Tensor vec2) -> Tensor + inline at::Tensor ger(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & vec2) { + return at::_ops::ger::redispatch(dispatchKeySet, self, vec2); + } + + // aten::ger.out(Tensor self, Tensor vec2, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & ger_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & vec2) { + return at::_ops::ger_out::redispatch(dispatchKeySet, self, vec2, out); + } + + // aten::ger.out(Tensor self, Tensor vec2, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & ger_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & vec2, at::Tensor & out) { + return at::_ops::ger_out::redispatch(dispatchKeySet, self, vec2, out); + } + + // aten::linalg_norm(Tensor self, Scalar? ord=None, int[1]? dim=None, bool keepdim=False, *, ScalarType? dtype=None) -> Tensor + inline at::Tensor linalg_norm(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const c10::optional & ord=c10::nullopt, at::OptionalIntArrayRef dim=c10::nullopt, bool keepdim=false, c10::optional dtype=c10::nullopt) { + return at::_ops::linalg_norm::redispatch(dispatchKeySet, self, ord, dim, keepdim, dtype); + } + + // aten::linalg_norm.ord_str(Tensor self, str ord, int[1]? dim=None, bool keepdim=False, *, ScalarType? dtype=None) -> Tensor + inline at::Tensor linalg_norm(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::string_view ord, at::OptionalIntArrayRef dim=c10::nullopt, bool keepdim=false, c10::optional dtype=c10::nullopt) { + return at::_ops::linalg_norm_ord_str::redispatch(dispatchKeySet, self, ord, dim, keepdim, dtype); + } + + // aten::linalg_norm.out(Tensor self, Scalar? ord=None, int[1]? dim=None, bool keepdim=False, *, ScalarType? dtype=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_norm_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const c10::optional & ord=c10::nullopt, at::OptionalIntArrayRef dim=c10::nullopt, bool keepdim=false, c10::optional dtype=c10::nullopt) { + return at::_ops::linalg_norm_out::redispatch(dispatchKeySet, self, ord, dim, keepdim, dtype, out); + } + + // aten::linalg_norm.out(Tensor self, Scalar? ord=None, int[1]? dim=None, bool keepdim=False, *, ScalarType? dtype=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_norm_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const c10::optional & ord, at::OptionalIntArrayRef dim, bool keepdim, c10::optional dtype, at::Tensor & out) { + return at::_ops::linalg_norm_out::redispatch(dispatchKeySet, self, ord, dim, keepdim, dtype, out); + } + + // aten::linalg_norm.ord_str_out(Tensor self, str ord, int[1]? dim=None, bool keepdim=False, *, ScalarType? dtype=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_norm_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::string_view ord, at::OptionalIntArrayRef dim=c10::nullopt, bool keepdim=false, c10::optional dtype=c10::nullopt) { + return at::_ops::linalg_norm_ord_str_out::redispatch(dispatchKeySet, self, ord, dim, keepdim, dtype, out); + } + + // aten::linalg_norm.ord_str_out(Tensor self, str ord, int[1]? dim=None, bool keepdim=False, *, ScalarType? dtype=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_norm_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::string_view ord, at::OptionalIntArrayRef dim, bool keepdim, c10::optional dtype, at::Tensor & out) { + return at::_ops::linalg_norm_ord_str_out::redispatch(dispatchKeySet, self, ord, dim, keepdim, dtype, out); + } + + // aten::linalg_vector_norm(Tensor self, Scalar ord=2, int[1]? dim=None, bool keepdim=False, *, ScalarType? dtype=None) -> Tensor + inline at::Tensor linalg_vector_norm(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & ord=2, at::OptionalIntArrayRef dim=c10::nullopt, bool keepdim=false, c10::optional dtype=c10::nullopt) { + return at::_ops::linalg_vector_norm::redispatch(dispatchKeySet, self, ord, dim, keepdim, dtype); + } + + // aten::linalg_vector_norm.out(Tensor self, Scalar ord=2, int[1]? dim=None, bool keepdim=False, *, ScalarType? dtype=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_vector_norm_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Scalar & ord=2, at::OptionalIntArrayRef dim=c10::nullopt, bool keepdim=false, c10::optional dtype=c10::nullopt) { + return at::_ops::linalg_vector_norm_out::redispatch(dispatchKeySet, self, ord, dim, keepdim, dtype, out); + } + + // aten::linalg_vector_norm.out(Tensor self, Scalar ord=2, int[1]? dim=None, bool keepdim=False, *, ScalarType? dtype=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_vector_norm_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & ord, at::OptionalIntArrayRef dim, bool keepdim, c10::optional dtype, at::Tensor & out) { + return at::_ops::linalg_vector_norm_out::redispatch(dispatchKeySet, self, ord, dim, keepdim, dtype, out); + } + + // aten::linalg_matrix_norm(Tensor self, Scalar ord, int[] dim=[-2,-1], bool keepdim=False, *, ScalarType? dtype=None) -> Tensor + inline at::Tensor linalg_matrix_norm(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & ord, at::IntArrayRef dim={-2,-1}, bool keepdim=false, c10::optional dtype=c10::nullopt) { + return at::_ops::linalg_matrix_norm::redispatch(dispatchKeySet, self, ord, dim, keepdim, dtype); + } + + // aten::linalg_matrix_norm.out(Tensor self, Scalar ord, int[] dim=[-2,-1], bool keepdim=False, *, ScalarType? dtype=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_matrix_norm_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Scalar & ord, at::IntArrayRef dim={-2,-1}, bool keepdim=false, c10::optional dtype=c10::nullopt) { + return at::_ops::linalg_matrix_norm_out::redispatch(dispatchKeySet, self, ord, dim, keepdim, dtype, out); + } + + // aten::linalg_matrix_norm.out(Tensor self, Scalar ord, int[] dim=[-2,-1], bool keepdim=False, *, ScalarType? dtype=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_matrix_norm_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & ord, at::IntArrayRef dim, bool keepdim, c10::optional dtype, at::Tensor & out) { + return at::_ops::linalg_matrix_norm_out::redispatch(dispatchKeySet, self, ord, dim, keepdim, dtype, out); + } + + // aten::linalg_matrix_norm.str_ord(Tensor self, str ord='fro', int[] dim=[-2,-1], bool keepdim=False, *, ScalarType? dtype=None) -> Tensor + inline at::Tensor linalg_matrix_norm(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::string_view ord="fro", at::IntArrayRef dim={-2,-1}, bool keepdim=false, c10::optional dtype=c10::nullopt) { + return at::_ops::linalg_matrix_norm_str_ord::redispatch(dispatchKeySet, self, ord, dim, keepdim, dtype); + } + + // aten::linalg_matrix_norm.str_ord_out(Tensor self, str ord='fro', int[] dim=[-2,-1], bool keepdim=False, *, ScalarType? dtype=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_matrix_norm_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::string_view ord="fro", at::IntArrayRef dim={-2,-1}, bool keepdim=false, c10::optional dtype=c10::nullopt) { + return at::_ops::linalg_matrix_norm_str_ord_out::redispatch(dispatchKeySet, self, ord, dim, keepdim, dtype, out); + } + + // aten::linalg_matrix_norm.str_ord_out(Tensor self, str ord='fro', int[] dim=[-2,-1], bool keepdim=False, *, ScalarType? dtype=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_matrix_norm_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::string_view ord, at::IntArrayRef dim, bool keepdim, c10::optional dtype, at::Tensor & out) { + return at::_ops::linalg_matrix_norm_str_ord_out::redispatch(dispatchKeySet, self, ord, dim, keepdim, dtype, out); + } + + // aten::_linalg_svd(Tensor A, bool full_matrices=False, bool compute_uv=True, *, str? driver=None) -> (Tensor U, Tensor S, Tensor Vh) + inline ::std::tuple _linalg_svd(c10::DispatchKeySet dispatchKeySet, const at::Tensor & A, bool full_matrices=false, bool compute_uv=true, c10::optional driver=c10::nullopt) { + return at::_ops::_linalg_svd::redispatch(dispatchKeySet, A, full_matrices, compute_uv, driver); + } + + // aten::_linalg_svd.U(Tensor A, bool full_matrices=False, bool compute_uv=True, *, str? driver=None, Tensor(a!) U, Tensor(b!) S, Tensor(c!) Vh) -> (Tensor(a!) U, Tensor(b!) S, Tensor(c!) Vh) + inline ::std::tuple _linalg_svd_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & U, at::Tensor & S, at::Tensor & Vh, const at::Tensor & A, bool full_matrices=false, bool compute_uv=true, c10::optional driver=c10::nullopt) { + return at::_ops::_linalg_svd_U::redispatch(dispatchKeySet, A, full_matrices, compute_uv, driver, U, S, Vh); + } + + // aten::_linalg_svd.U(Tensor A, bool full_matrices=False, bool compute_uv=True, *, str? driver=None, Tensor(a!) U, Tensor(b!) S, Tensor(c!) Vh) -> (Tensor(a!) U, Tensor(b!) S, Tensor(c!) Vh) + inline ::std::tuple _linalg_svd_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & A, bool full_matrices, bool compute_uv, c10::optional driver, at::Tensor & U, at::Tensor & S, at::Tensor & Vh) { + return at::_ops::_linalg_svd_U::redispatch(dispatchKeySet, A, full_matrices, compute_uv, driver, U, S, Vh); + } + + // aten::linalg_svd(Tensor A, bool full_matrices=True, *, str? driver=None) -> (Tensor U, Tensor S, Tensor Vh) + inline ::std::tuple linalg_svd(c10::DispatchKeySet dispatchKeySet, const at::Tensor & A, bool full_matrices=true, c10::optional driver=c10::nullopt) { + return at::_ops::linalg_svd::redispatch(dispatchKeySet, A, full_matrices, driver); + } + + // aten::linalg_svd.U(Tensor A, bool full_matrices=True, *, str? driver=None, Tensor(a!) U, Tensor(b!) S, Tensor(c!) Vh) -> (Tensor(a!) U, Tensor(b!) S, Tensor(c!) Vh) + inline ::std::tuple linalg_svd_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & U, at::Tensor & S, at::Tensor & Vh, const at::Tensor & A, bool full_matrices=true, c10::optional driver=c10::nullopt) { + return at::_ops::linalg_svd_U::redispatch(dispatchKeySet, A, full_matrices, driver, U, S, Vh); + } + + // aten::linalg_svd.U(Tensor A, bool full_matrices=True, *, str? driver=None, Tensor(a!) U, Tensor(b!) S, Tensor(c!) Vh) -> (Tensor(a!) U, Tensor(b!) S, Tensor(c!) Vh) + inline ::std::tuple linalg_svd_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & A, bool full_matrices, c10::optional driver, at::Tensor & U, at::Tensor & S, at::Tensor & Vh) { + return at::_ops::linalg_svd_U::redispatch(dispatchKeySet, A, full_matrices, driver, U, S, Vh); + } + + // aten::linalg_svdvals(Tensor A, *, str? driver=None) -> Tensor + inline at::Tensor linalg_svdvals(c10::DispatchKeySet dispatchKeySet, const at::Tensor & A, c10::optional driver=c10::nullopt) { + return at::_ops::linalg_svdvals::redispatch(dispatchKeySet, A, driver); + } + + // aten::linalg_svdvals.out(Tensor A, *, str? driver=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_svdvals_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & A, c10::optional driver=c10::nullopt) { + return at::_ops::linalg_svdvals_out::redispatch(dispatchKeySet, A, driver, out); + } + + // aten::linalg_svdvals.out(Tensor A, *, str? driver=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_svdvals_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & A, c10::optional driver, at::Tensor & out) { + return at::_ops::linalg_svdvals_out::redispatch(dispatchKeySet, A, driver, out); + } + + // aten::linalg_cond(Tensor self, Scalar? p=None) -> Tensor + inline at::Tensor linalg_cond(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const c10::optional & p=c10::nullopt) { + return at::_ops::linalg_cond::redispatch(dispatchKeySet, self, p); + } + + // aten::linalg_cond.out(Tensor self, Scalar? p=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_cond_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const c10::optional & p=c10::nullopt) { + return at::_ops::linalg_cond_out::redispatch(dispatchKeySet, self, p, out); + } + + // aten::linalg_cond.out(Tensor self, Scalar? p=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_cond_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const c10::optional & p, at::Tensor & out) { + return at::_ops::linalg_cond_out::redispatch(dispatchKeySet, self, p, out); + } + + // aten::linalg_cond.p_str(Tensor self, str p) -> Tensor + inline at::Tensor linalg_cond(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::string_view p) { + return at::_ops::linalg_cond_p_str::redispatch(dispatchKeySet, self, p); + } + + // aten::linalg_cond.p_str_out(Tensor self, str p, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_cond_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::string_view p) { + return at::_ops::linalg_cond_p_str_out::redispatch(dispatchKeySet, self, p, out); + } + + // aten::linalg_cond.p_str_out(Tensor self, str p, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_cond_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::string_view p, at::Tensor & out) { + return at::_ops::linalg_cond_p_str_out::redispatch(dispatchKeySet, self, p, out); + } + + // aten::linalg_pinv.atol_rtol_tensor(Tensor self, *, Tensor? atol=None, Tensor? rtol=None, bool hermitian=False) -> Tensor + inline at::Tensor linalg_pinv(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const c10::optional & atol={}, const c10::optional & rtol={}, bool hermitian=false) { + return at::_ops::linalg_pinv_atol_rtol_tensor::redispatch(dispatchKeySet, self, atol, rtol, hermitian); + } + + // aten::linalg_pinv.atol_rtol_tensor_out(Tensor self, *, Tensor? atol=None, Tensor? rtol=None, bool hermitian=False, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_pinv_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const c10::optional & atol={}, const c10::optional & rtol={}, bool hermitian=false) { + return at::_ops::linalg_pinv_atol_rtol_tensor_out::redispatch(dispatchKeySet, self, atol, rtol, hermitian, out); + } + + // aten::linalg_pinv.atol_rtol_tensor_out(Tensor self, *, Tensor? atol=None, Tensor? rtol=None, bool hermitian=False, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_pinv_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const c10::optional & atol, const c10::optional & rtol, bool hermitian, at::Tensor & out) { + return at::_ops::linalg_pinv_atol_rtol_tensor_out::redispatch(dispatchKeySet, self, atol, rtol, hermitian, out); + } + + // aten::linalg_pinv.atol_rtol_float(Tensor self, *, float? atol=None, float? rtol=None, bool hermitian=False) -> Tensor + inline at::Tensor linalg_pinv(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional atol, c10::optional rtol, bool hermitian=false) { + return at::_ops::linalg_pinv_atol_rtol_float::redispatch(dispatchKeySet, self, atol, rtol, hermitian); + } + + // aten::linalg_pinv.atol_rtol_float_out(Tensor self, *, float? atol=None, float? rtol=None, bool hermitian=False, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_pinv_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::optional atol, c10::optional rtol, bool hermitian=false) { + return at::_ops::linalg_pinv_atol_rtol_float_out::redispatch(dispatchKeySet, self, atol, rtol, hermitian, out); + } + + // aten::linalg_pinv.atol_rtol_float_out(Tensor self, *, float? atol=None, float? rtol=None, bool hermitian=False, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_pinv_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional atol, c10::optional rtol, bool hermitian, at::Tensor & out) { + return at::_ops::linalg_pinv_atol_rtol_float_out::redispatch(dispatchKeySet, self, atol, rtol, hermitian, out); + } + + // aten::linalg_pinv(Tensor self, float rcond, bool hermitian=False) -> Tensor + inline at::Tensor linalg_pinv(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, double rcond, bool hermitian=false) { + return at::_ops::linalg_pinv::redispatch(dispatchKeySet, self, rcond, hermitian); + } + + // aten::linalg_pinv.rcond_tensor(Tensor self, Tensor rcond, bool hermitian=False) -> Tensor + inline at::Tensor linalg_pinv(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & rcond, bool hermitian=false) { + return at::_ops::linalg_pinv_rcond_tensor::redispatch(dispatchKeySet, self, rcond, hermitian); + } + + // aten::linalg_pinv.out(Tensor self, float rcond, bool hermitian=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_pinv_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, double rcond, bool hermitian=false) { + return at::_ops::linalg_pinv_out::redispatch(dispatchKeySet, self, rcond, hermitian, out); + } + + // aten::linalg_pinv.out(Tensor self, float rcond, bool hermitian=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_pinv_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, double rcond, bool hermitian, at::Tensor & out) { + return at::_ops::linalg_pinv_out::redispatch(dispatchKeySet, self, rcond, hermitian, out); + } + + // aten::linalg_pinv.out_rcond_tensor(Tensor self, Tensor rcond, bool hermitian=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_pinv_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & rcond, bool hermitian=false) { + return at::_ops::linalg_pinv_out_rcond_tensor::redispatch(dispatchKeySet, self, rcond, hermitian, out); + } + + // aten::linalg_pinv.out_rcond_tensor(Tensor self, Tensor rcond, bool hermitian=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_pinv_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & rcond, bool hermitian, at::Tensor & out) { + return at::_ops::linalg_pinv_out_rcond_tensor::redispatch(dispatchKeySet, self, rcond, hermitian, out); + } + + // aten::_linalg_solve_ex(Tensor A, Tensor B, *, bool left=True, bool check_errors=False) -> (Tensor result, Tensor LU, Tensor pivots, Tensor info) + inline ::std::tuple _linalg_solve_ex(c10::DispatchKeySet dispatchKeySet, const at::Tensor & A, const at::Tensor & B, bool left=true, bool check_errors=false) { + return at::_ops::_linalg_solve_ex::redispatch(dispatchKeySet, A, B, left, check_errors); + } + + // aten::_linalg_solve_ex.result(Tensor A, Tensor B, *, bool left=True, bool check_errors=False, Tensor(a!) result, Tensor(b!) LU, Tensor(c!) pivots, Tensor(d!) info) -> (Tensor(a!) result, Tensor(b!) LU, Tensor(c!) pivots, Tensor(d!) info) + inline ::std::tuple _linalg_solve_ex_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & result, at::Tensor & LU, at::Tensor & pivots, at::Tensor & info, const at::Tensor & A, const at::Tensor & B, bool left=true, bool check_errors=false) { + return at::_ops::_linalg_solve_ex_result::redispatch(dispatchKeySet, A, B, left, check_errors, result, LU, pivots, info); + } + + // aten::_linalg_solve_ex.result(Tensor A, Tensor B, *, bool left=True, bool check_errors=False, Tensor(a!) result, Tensor(b!) LU, Tensor(c!) pivots, Tensor(d!) info) -> (Tensor(a!) result, Tensor(b!) LU, Tensor(c!) pivots, Tensor(d!) info) + inline ::std::tuple _linalg_solve_ex_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & A, const at::Tensor & B, bool left, bool check_errors, at::Tensor & result, at::Tensor & LU, at::Tensor & pivots, at::Tensor & info) { + return at::_ops::_linalg_solve_ex_result::redispatch(dispatchKeySet, A, B, left, check_errors, result, LU, pivots, info); + } + + // aten::linalg_solve_ex(Tensor A, Tensor B, *, bool left=True, bool check_errors=False) -> (Tensor result, Tensor info) + inline ::std::tuple linalg_solve_ex(c10::DispatchKeySet dispatchKeySet, const at::Tensor & A, const at::Tensor & B, bool left=true, bool check_errors=false) { + return at::_ops::linalg_solve_ex::redispatch(dispatchKeySet, A, B, left, check_errors); + } + + // aten::linalg_solve_ex.out(Tensor A, Tensor B, *, bool left=True, bool check_errors=False, Tensor(a!) result, Tensor(b!) info) -> (Tensor(a!) result, Tensor(b!) info) + inline ::std::tuple linalg_solve_ex_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & result, at::Tensor & info, const at::Tensor & A, const at::Tensor & B, bool left=true, bool check_errors=false) { + return at::_ops::linalg_solve_ex_out::redispatch(dispatchKeySet, A, B, left, check_errors, result, info); + } + + // aten::linalg_solve_ex.out(Tensor A, Tensor B, *, bool left=True, bool check_errors=False, Tensor(a!) result, Tensor(b!) info) -> (Tensor(a!) result, Tensor(b!) info) + inline ::std::tuple linalg_solve_ex_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & A, const at::Tensor & B, bool left, bool check_errors, at::Tensor & result, at::Tensor & info) { + return at::_ops::linalg_solve_ex_out::redispatch(dispatchKeySet, A, B, left, check_errors, result, info); + } + + // aten::linalg_solve(Tensor A, Tensor B, *, bool left=True) -> Tensor + inline at::Tensor linalg_solve(c10::DispatchKeySet dispatchKeySet, const at::Tensor & A, const at::Tensor & B, bool left=true) { + return at::_ops::linalg_solve::redispatch(dispatchKeySet, A, B, left); + } + + // aten::linalg_solve.out(Tensor A, Tensor B, *, bool left=True, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_solve_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & A, const at::Tensor & B, bool left=true) { + return at::_ops::linalg_solve_out::redispatch(dispatchKeySet, A, B, left, out); + } + + // aten::linalg_solve.out(Tensor A, Tensor B, *, bool left=True, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_solve_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & A, const at::Tensor & B, bool left, at::Tensor & out) { + return at::_ops::linalg_solve_out::redispatch(dispatchKeySet, A, B, left, out); + } + + // aten::linalg_tensorinv(Tensor self, int ind=2) -> Tensor + inline at::Tensor linalg_tensorinv(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t ind=2) { + return at::_ops::linalg_tensorinv::redispatch(dispatchKeySet, self, ind); + } + + // aten::linalg_tensorinv.out(Tensor self, int ind=2, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_tensorinv_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t ind=2) { + return at::_ops::linalg_tensorinv_out::redispatch(dispatchKeySet, self, ind, out); + } + + // aten::linalg_tensorinv.out(Tensor self, int ind=2, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_tensorinv_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t ind, at::Tensor & out) { + return at::_ops::linalg_tensorinv_out::redispatch(dispatchKeySet, self, ind, out); + } + + // aten::linalg_tensorsolve(Tensor self, Tensor other, int[]? dims=None) -> Tensor + inline at::Tensor linalg_tensorsolve(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::OptionalIntArrayRef dims=c10::nullopt) { + return at::_ops::linalg_tensorsolve::redispatch(dispatchKeySet, self, other, dims); + } + + // aten::linalg_tensorsolve.out(Tensor self, Tensor other, int[]? dims=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_tensorsolve_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other, at::OptionalIntArrayRef dims=c10::nullopt) { + return at::_ops::linalg_tensorsolve_out::redispatch(dispatchKeySet, self, other, dims, out); + } + + // aten::linalg_tensorsolve.out(Tensor self, Tensor other, int[]? dims=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_tensorsolve_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::OptionalIntArrayRef dims, at::Tensor & out) { + return at::_ops::linalg_tensorsolve_out::redispatch(dispatchKeySet, self, other, dims, out); + } + + // aten::linalg_qr(Tensor A, str mode='reduced') -> (Tensor Q, Tensor R) + inline ::std::tuple linalg_qr(c10::DispatchKeySet dispatchKeySet, const at::Tensor & A, c10::string_view mode="reduced") { + return at::_ops::linalg_qr::redispatch(dispatchKeySet, A, mode); + } + + // aten::linalg_qr.out(Tensor A, str mode='reduced', *, Tensor(a!) Q, Tensor(b!) R) -> (Tensor(a!) Q, Tensor(b!) R) + inline ::std::tuple linalg_qr_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & Q, at::Tensor & R, const at::Tensor & A, c10::string_view mode="reduced") { + return at::_ops::linalg_qr_out::redispatch(dispatchKeySet, A, mode, Q, R); + } + + // aten::linalg_qr.out(Tensor A, str mode='reduced', *, Tensor(a!) Q, Tensor(b!) R) -> (Tensor(a!) Q, Tensor(b!) R) + inline ::std::tuple linalg_qr_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & A, c10::string_view mode, at::Tensor & Q, at::Tensor & R) { + return at::_ops::linalg_qr_out::redispatch(dispatchKeySet, A, mode, Q, R); + } + + // aten::linalg_matrix_power(Tensor self, int n) -> Tensor + inline at::Tensor linalg_matrix_power(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t n) { + return at::_ops::linalg_matrix_power::redispatch(dispatchKeySet, self, n); + } + + // aten::linalg_matrix_power.out(Tensor self, int n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_matrix_power_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t n) { + return at::_ops::linalg_matrix_power_out::redispatch(dispatchKeySet, self, n, out); + } + + // aten::linalg_matrix_power.out(Tensor self, int n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_matrix_power_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t n, at::Tensor & out) { + return at::_ops::linalg_matrix_power_out::redispatch(dispatchKeySet, self, n, out); + } + + // 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(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const c10::optional & atol={}, const c10::optional & rtol={}, bool hermitian=false) { + return at::_ops::linalg_matrix_rank_atol_rtol_tensor::redispatch(dispatchKeySet, 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(c10::DispatchKeySet dispatchKeySet, 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::redispatch(dispatchKeySet, 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(c10::DispatchKeySet dispatchKeySet, 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::redispatch(dispatchKeySet, 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(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional atol, c10::optional rtol, bool hermitian=false) { + return at::_ops::linalg_matrix_rank_atol_rtol_float::redispatch(dispatchKeySet, 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(c10::DispatchKeySet dispatchKeySet, 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::redispatch(dispatchKeySet, 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(c10::DispatchKeySet dispatchKeySet, 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::redispatch(dispatchKeySet, self, atol, rtol, hermitian, out); + } + + // aten::linalg_matrix_rank(Tensor self, float tol, bool hermitian=False) -> Tensor + inline at::Tensor linalg_matrix_rank(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, double tol, bool hermitian=false) { + return at::_ops::linalg_matrix_rank::redispatch(dispatchKeySet, 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(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, double tol, bool hermitian=false) { + return at::_ops::linalg_matrix_rank_out::redispatch(dispatchKeySet, 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(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, double tol, bool hermitian, at::Tensor & out) { + return at::_ops::linalg_matrix_rank_out::redispatch(dispatchKeySet, self, tol, hermitian, out); + } + + // aten::linalg_matrix_rank.tol_tensor(Tensor input, Tensor tol, bool hermitian=False) -> Tensor + inline at::Tensor linalg_matrix_rank(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & tol, bool hermitian=false) { + return at::_ops::linalg_matrix_rank_tol_tensor::redispatch(dispatchKeySet, 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(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & input, const at::Tensor & tol, bool hermitian=false) { + return at::_ops::linalg_matrix_rank_out_tol_tensor::redispatch(dispatchKeySet, 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(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & tol, bool hermitian, at::Tensor & out) { + return at::_ops::linalg_matrix_rank_out_tol_tensor::redispatch(dispatchKeySet, input, tol, hermitian, out); + } + + // aten::linalg_multi_dot(Tensor[] tensors) -> Tensor + inline at::Tensor linalg_multi_dot(c10::DispatchKeySet dispatchKeySet, at::TensorList tensors) { + return at::_ops::linalg_multi_dot::redispatch(dispatchKeySet, tensors); + } + + // aten::linalg_multi_dot.out(Tensor[] tensors, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_multi_dot_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, at::TensorList tensors) { + return at::_ops::linalg_multi_dot_out::redispatch(dispatchKeySet, tensors, out); + } + + // aten::linalg_multi_dot.out(Tensor[] tensors, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_multi_dot_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList tensors, at::Tensor & out) { + return at::_ops::linalg_multi_dot_out::redispatch(dispatchKeySet, tensors, out); + } + + // aten::nested_to_padded_tensor(Tensor self, float padding, int[]? output_size=None) -> Tensor + inline at::Tensor nested_to_padded_tensor(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, double padding, at::OptionalIntArrayRef output_size=c10::nullopt) { + return at::_ops::nested_to_padded_tensor::redispatch(dispatchKeySet, self, padding, output_size); + } + + // aten::_test_serialization_subcmul(Tensor self, Tensor other, Scalar alpha=1) -> Tensor + inline at::Tensor _test_serialization_subcmul(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, const at::Scalar & alpha=1) { + return at::_ops::_test_serialization_subcmul::redispatch(dispatchKeySet, self, other, alpha); + } + + // aten::_test_parallel_materialize(Tensor self, int num_parallel, bool skip_first=False) -> Tensor + inline at::Tensor _test_parallel_materialize(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t num_parallel, bool skip_first=false) { + return at::_ops::_test_parallel_materialize::redispatch(dispatchKeySet, self, num_parallel, skip_first); + } + + // aten::_test_optional_intlist(Tensor values, int[]? addends) -> Tensor + inline at::Tensor _test_optional_intlist(c10::DispatchKeySet dispatchKeySet, const at::Tensor & values, at::OptionalIntArrayRef addends) { + return at::_ops::_test_optional_intlist::redispatch(dispatchKeySet, values, addends); + } + + // aten::_test_optional_filled_intlist(Tensor values, int[2]? addends) -> Tensor + inline at::Tensor _test_optional_filled_intlist(c10::DispatchKeySet dispatchKeySet, const at::Tensor & values, at::OptionalIntArrayRef addends) { + return at::_ops::_test_optional_filled_intlist::redispatch(dispatchKeySet, values, addends); + } + + // aten::_test_optional_floatlist(Tensor values, float[]? addends) -> Tensor + inline at::Tensor _test_optional_floatlist(c10::DispatchKeySet dispatchKeySet, const at::Tensor & values, c10::optional> addends) { + return at::_ops::_test_optional_floatlist::redispatch(dispatchKeySet, values, addends); + } + + // aten::_test_string_default(Tensor dummy, str a="\"'\\", str b='"\'\\') -> Tensor + inline at::Tensor _test_string_default(c10::DispatchKeySet dispatchKeySet, const at::Tensor & dummy, c10::string_view a="\"'\\", c10::string_view b="\"'\\") { + return at::_ops::_test_string_default::redispatch(dispatchKeySet, dummy, a, b); + } + + // aten::_test_ambiguous_defaults.a(Tensor dummy, int a=1, int b=1) -> Tensor + inline at::Tensor _test_ambiguous_defaults(c10::DispatchKeySet dispatchKeySet, const at::Tensor & dummy, int64_t a=1, int64_t b=1) { + return at::_ops::_test_ambiguous_defaults_a::redispatch(dispatchKeySet, dummy, a, b); + } + + // aten::_test_ambiguous_defaults.b(Tensor dummy, int a=2, str b="2") -> Tensor + inline at::Tensor _test_ambiguous_defaults(c10::DispatchKeySet dispatchKeySet, const at::Tensor & dummy, int64_t a, c10::string_view b) { + return at::_ops::_test_ambiguous_defaults_b::redispatch(dispatchKeySet, dummy, a, b); + } + + // aten::_test_warn_in_autograd(Tensor self) -> Tensor + inline at::Tensor _test_warn_in_autograd(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::_test_warn_in_autograd::redispatch(dispatchKeySet, self); + } + + // aten::_test_autograd_multiple_dispatch.fullcoverage(Tensor self) -> Tensor + inline at::Tensor _test_autograd_multiple_dispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::_test_autograd_multiple_dispatch_fullcoverage::redispatch(dispatchKeySet, self); + } + + // aten::_test_autograd_multiple_dispatch.ntonly(Tensor self, bool b) -> Tensor + inline at::Tensor _test_autograd_multiple_dispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, bool b) { + return at::_ops::_test_autograd_multiple_dispatch_ntonly::redispatch(dispatchKeySet, self, b); + } + + // aten::_test_autograd_multiple_dispatch_view(Tensor(a) self) -> Tensor(a) + inline at::Tensor _test_autograd_multiple_dispatch_view(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::_test_autograd_multiple_dispatch_view::redispatch(dispatchKeySet, self); + } + + // aten::_test_autograd_multiple_dispatch_view_copy(Tensor self) -> Tensor + inline at::Tensor _test_autograd_multiple_dispatch_view_copy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::_test_autograd_multiple_dispatch_view_copy::redispatch(dispatchKeySet, self); + } + + // aten::segment_reduce(Tensor data, str reduce, *, Tensor? lengths=None, Tensor? indices=None, Tensor? offsets=None, int axis=0, bool unsafe=False, Scalar? initial=None) -> Tensor + inline at::Tensor segment_reduce(c10::DispatchKeySet dispatchKeySet, const at::Tensor & data, c10::string_view reduce, const c10::optional & lengths={}, const c10::optional & indices={}, const c10::optional & offsets={}, int64_t axis=0, bool unsafe=false, const c10::optional & initial=c10::nullopt) { + return at::_ops::segment_reduce::redispatch(dispatchKeySet, data, reduce, lengths, indices, offsets, axis, unsafe, initial); + } + + // aten::_segment_reduce_backward(Tensor grad, Tensor output, Tensor data, str reduce, *, Tensor? lengths=None, Tensor? offsets=None, int axis=0, Scalar? initial=None) -> Tensor + inline at::Tensor _segment_reduce_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad, const at::Tensor & output, const at::Tensor & data, c10::string_view reduce, const c10::optional & lengths={}, const c10::optional & offsets={}, int64_t axis=0, const c10::optional & initial=c10::nullopt) { + return at::_ops::_segment_reduce_backward::redispatch(dispatchKeySet, grad, output, data, reduce, lengths, offsets, axis, initial); + } + + // aten::pad_sequence(Tensor[] sequences, bool batch_first=False, float padding_value=0.0) -> Tensor + inline at::Tensor pad_sequence(c10::DispatchKeySet dispatchKeySet, at::TensorList sequences, bool batch_first=false, double padding_value=0.0) { + return at::_ops::pad_sequence::redispatch(dispatchKeySet, sequences, batch_first, padding_value); + } + + // aten::flatten_dense_tensors(Tensor[] tensors) -> Tensor + inline at::Tensor flatten_dense_tensors(c10::DispatchKeySet dispatchKeySet, at::TensorList tensors) { + return at::_ops::flatten_dense_tensors::redispatch(dispatchKeySet, tensors); + } + + // aten::unflatten_dense_tensors(Tensor flat, Tensor[] tensors) -> Tensor[] + inline ::std::vector unflatten_dense_tensors(c10::DispatchKeySet dispatchKeySet, const at::Tensor & flat, at::TensorList tensors) { + return at::_ops::unflatten_dense_tensors::redispatch(dispatchKeySet, flat, tensors); + } + + // aten::_nested_tensor_from_tensor_list(Tensor[] list, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor + inline at::Tensor _nested_tensor_from_tensor_list(c10::DispatchKeySet dispatchKeySet, at::TensorList list, c10::optional dtype=c10::nullopt, c10::optional layout=c10::nullopt, c10::optional device=c10::nullopt, c10::optional pin_memory=c10::nullopt) { + return at::_ops::_nested_tensor_from_tensor_list::redispatch(dispatchKeySet, list, dtype, layout, device, pin_memory); + } + + // aten::_fw_primal_copy(Tensor self, int level) -> Tensor + inline at::Tensor _fw_primal_copy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t level) { + return at::_ops::_fw_primal_copy::redispatch(dispatchKeySet, self, level); + } + + // aten::_make_dual_copy(Tensor primal, Tensor tangent, int level) -> Tensor + inline at::Tensor _make_dual_copy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & primal, const at::Tensor & tangent, int64_t level) { + return at::_ops::_make_dual_copy::redispatch(dispatchKeySet, primal, tangent, level); + } + + // aten::view_as_real_copy(Tensor self) -> Tensor + inline at::Tensor view_as_real_copy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::view_as_real_copy::redispatch(dispatchKeySet, self); + } + + // aten::view_as_complex_copy(Tensor self) -> Tensor + inline at::Tensor view_as_complex_copy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::view_as_complex_copy::redispatch(dispatchKeySet, self); + } + + // aten::_conj_copy(Tensor self) -> Tensor + inline at::Tensor _conj_copy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::_conj_copy::redispatch(dispatchKeySet, self); + } + + // aten::_neg_view_copy(Tensor self) -> Tensor + inline at::Tensor _neg_view_copy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::_neg_view_copy::redispatch(dispatchKeySet, self); + } + + // aten::as_strided_copy(Tensor self, SymInt[] size, SymInt[] stride, SymInt? storage_offset=None) -> Tensor + inline at::Tensor as_strided_copy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef size, at::IntArrayRef stride, c10::optional storage_offset=c10::nullopt) { + return at::_ops::as_strided_copy::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(size), c10::fromIntArrayRefSlow(stride), storage_offset.has_value() ? c10::make_optional(c10::SymInt(*storage_offset)) : c10::nullopt); + } + + // aten::as_strided_copy(Tensor self, SymInt[] size, SymInt[] stride, SymInt? storage_offset=None) -> Tensor + inline at::Tensor as_strided_copy_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef size, c10::SymIntArrayRef stride, c10::optional storage_offset=c10::nullopt) { + return at::_ops::as_strided_copy::redispatch(dispatchKeySet, self, size, stride, storage_offset); + } + + // aten::_sparse_broadcast_to_copy(Tensor self, int[] size) -> Tensor + inline at::Tensor _sparse_broadcast_to_copy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef size) { + return at::_ops::_sparse_broadcast_to_copy::redispatch(dispatchKeySet, self, size); + } + + // aten::diagonal_copy(Tensor self, int offset=0, int dim1=0, int dim2=1) -> Tensor + inline at::Tensor diagonal_copy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t offset=0, int64_t dim1=0, int64_t dim2=1) { + return at::_ops::diagonal_copy::redispatch(dispatchKeySet, self, offset, dim1, dim2); + } + + // aten::expand_copy(Tensor self, SymInt[] size, *, bool implicit=False) -> Tensor + inline at::Tensor expand_copy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef size, bool implicit=false) { + return at::_ops::expand_copy::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(size), implicit); + } + + // aten::expand_copy(Tensor self, SymInt[] size, *, bool implicit=False) -> Tensor + inline at::Tensor expand_copy_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef size, bool implicit=false) { + return at::_ops::expand_copy::redispatch(dispatchKeySet, self, size, implicit); + } + + // aten::permute_copy(Tensor self, int[] dims) -> Tensor + inline at::Tensor permute_copy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef dims) { + return at::_ops::permute_copy::redispatch(dispatchKeySet, self, dims); + } + + // aten::_reshape_alias_copy(Tensor self, SymInt[] size, SymInt[] stride) -> Tensor + inline at::Tensor _reshape_alias_copy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef size, at::IntArrayRef stride) { + return at::_ops::_reshape_alias_copy::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(size), c10::fromIntArrayRefSlow(stride)); + } + + // aten::_reshape_alias_copy(Tensor self, SymInt[] size, SymInt[] stride) -> Tensor + inline at::Tensor _reshape_alias_copy_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef size, c10::SymIntArrayRef stride) { + return at::_ops::_reshape_alias_copy::redispatch(dispatchKeySet, self, size, stride); + } + + // aten::select_copy.int(Tensor self, int dim, SymInt index) -> Tensor + inline at::Tensor select_copy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, int64_t index) { + return at::_ops::select_copy_int::redispatch(dispatchKeySet, self, dim, index); + } + + // aten::select_copy.int(Tensor self, int dim, SymInt index) -> Tensor + inline at::Tensor select_copy_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, c10::SymInt index) { + return at::_ops::select_copy_int::redispatch(dispatchKeySet, self, dim, index); + } + + // aten::detach_copy(Tensor self) -> Tensor + inline at::Tensor detach_copy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::detach_copy::redispatch(dispatchKeySet, self); + } + + // aten::slice_copy.Tensor(Tensor self, int dim=0, SymInt? start=None, SymInt? end=None, SymInt step=1) -> Tensor + inline at::Tensor slice_copy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim=0, c10::optional start=c10::nullopt, c10::optional end=c10::nullopt, int64_t step=1) { + return at::_ops::slice_copy_Tensor::redispatch(dispatchKeySet, self, dim, start.has_value() ? c10::make_optional(c10::SymInt(*start)) : c10::nullopt, end.has_value() ? c10::make_optional(c10::SymInt(*end)) : c10::nullopt, step); + } + + // aten::slice_copy.Tensor(Tensor self, int dim=0, SymInt? start=None, SymInt? end=None, SymInt step=1) -> Tensor + inline at::Tensor slice_copy_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim=0, c10::optional start=c10::nullopt, c10::optional end=c10::nullopt, c10::SymInt step=1) { + return at::_ops::slice_copy_Tensor::redispatch(dispatchKeySet, self, dim, start, end, step); + } + + // aten::split_copy.Tensor(Tensor self, SymInt split_size, int dim=0) -> Tensor[] + inline ::std::vector split_copy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t split_size, int64_t dim=0) { + return at::_ops::split_copy_Tensor::redispatch(dispatchKeySet, self, split_size, dim); + } + + // aten::split_copy.Tensor(Tensor self, SymInt split_size, int dim=0) -> Tensor[] + inline ::std::vector split_copy_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymInt split_size, int64_t dim=0) { + return at::_ops::split_copy_Tensor::redispatch(dispatchKeySet, self, split_size, dim); + } + + // aten::split_with_sizes_copy(Tensor self, SymInt[] split_sizes, int dim=0) -> Tensor[] + inline ::std::vector split_with_sizes_copy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef split_sizes, int64_t dim=0) { + return at::_ops::split_with_sizes_copy::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(split_sizes), dim); + } + + // aten::split_with_sizes_copy(Tensor self, SymInt[] split_sizes, int dim=0) -> Tensor[] + inline ::std::vector split_with_sizes_copy_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef split_sizes, int64_t dim=0) { + return at::_ops::split_with_sizes_copy::redispatch(dispatchKeySet, self, split_sizes, dim); + } + + // aten::squeeze_copy(Tensor self) -> Tensor + inline at::Tensor squeeze_copy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::squeeze_copy::redispatch(dispatchKeySet, self); + } + + // aten::squeeze_copy.dim(Tensor self, int dim) -> Tensor + inline at::Tensor squeeze_copy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim) { + return at::_ops::squeeze_copy_dim::redispatch(dispatchKeySet, self, dim); + } + + // aten::squeeze_copy.dims(Tensor self, int[] dim) -> Tensor + inline at::Tensor squeeze_copy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef dim) { + return at::_ops::squeeze_copy_dims::redispatch(dispatchKeySet, self, dim); + } + + // aten::t_copy(Tensor self) -> Tensor + inline at::Tensor t_copy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::t_copy::redispatch(dispatchKeySet, self); + } + + // aten::transpose_copy.int(Tensor self, int dim0, int dim1) -> Tensor + inline at::Tensor transpose_copy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim0, int64_t dim1) { + return at::_ops::transpose_copy_int::redispatch(dispatchKeySet, self, dim0, dim1); + } + + // aten::unsqueeze_copy(Tensor self, int dim) -> Tensor + inline at::Tensor unsqueeze_copy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim) { + return at::_ops::unsqueeze_copy::redispatch(dispatchKeySet, self, dim); + } + + // aten::_indices_copy(Tensor self) -> Tensor + inline at::Tensor _indices_copy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::_indices_copy::redispatch(dispatchKeySet, self); + } + + // aten::_values_copy(Tensor self) -> Tensor + inline at::Tensor _values_copy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::_values_copy::redispatch(dispatchKeySet, self); + } + + // aten::indices_copy(Tensor self) -> Tensor + inline at::Tensor indices_copy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::indices_copy::redispatch(dispatchKeySet, self); + } + + // aten::values_copy(Tensor self) -> Tensor + inline at::Tensor values_copy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::values_copy::redispatch(dispatchKeySet, self); + } + + // aten::crow_indices_copy(Tensor self) -> Tensor + inline at::Tensor crow_indices_copy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::crow_indices_copy::redispatch(dispatchKeySet, self); + } + + // aten::col_indices_copy(Tensor self) -> Tensor + inline at::Tensor col_indices_copy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::col_indices_copy::redispatch(dispatchKeySet, self); + } + + // aten::ccol_indices_copy(Tensor self) -> Tensor + inline at::Tensor ccol_indices_copy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::ccol_indices_copy::redispatch(dispatchKeySet, self); + } + + // aten::row_indices_copy(Tensor self) -> Tensor + inline at::Tensor row_indices_copy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::row_indices_copy::redispatch(dispatchKeySet, self); + } + + // aten::unbind_copy.int(Tensor self, int dim=0) -> Tensor[] + inline ::std::vector unbind_copy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim=0) { + return at::_ops::unbind_copy_int::redispatch(dispatchKeySet, self, dim); + } + + // aten::unbind_copy.int_out(Tensor self, int dim=0, *, Tensor(a!)[] out) -> () + inline void unbind_copy_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, const at::Tensor & self, int64_t dim=0) { + return at::_ops::unbind_copy_int_out::redispatch(dispatchKeySet, self, dim, out); + } + + // aten::unbind_copy.int_out(Tensor self, int dim=0, *, Tensor(a!)[] out) -> () + inline void unbind_copy_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, at::TensorList out) { + return at::_ops::unbind_copy_int_out::redispatch(dispatchKeySet, self, dim, out); + } + + // aten::split_copy.Tensor_out(Tensor self, SymInt split_size, int dim=0, *, Tensor(a!)[] out) -> () + inline void split_copy_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, const at::Tensor & self, int64_t split_size, int64_t dim=0) { + return at::_ops::split_copy_Tensor_out::redispatch(dispatchKeySet, self, split_size, dim, out); + } + + // aten::split_copy.Tensor_out(Tensor self, SymInt split_size, int dim=0, *, Tensor(a!)[] out) -> () + inline void split_copy_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t split_size, int64_t dim, at::TensorList out) { + return at::_ops::split_copy_Tensor_out::redispatch(dispatchKeySet, self, split_size, dim, out); + } + + // aten::split_copy.Tensor_out(Tensor self, SymInt split_size, int dim=0, *, Tensor(a!)[] out) -> () + inline void split_copy_symint_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, const at::Tensor & self, c10::SymInt split_size, int64_t dim=0) { + return at::_ops::split_copy_Tensor_out::redispatch(dispatchKeySet, self, split_size, dim, out); + } + + // aten::split_copy.Tensor_out(Tensor self, SymInt split_size, int dim=0, *, Tensor(a!)[] out) -> () + inline void split_copy_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymInt split_size, int64_t dim, at::TensorList out) { + return at::_ops::split_copy_Tensor_out::redispatch(dispatchKeySet, self, split_size, dim, out); + } + + // aten::split_with_sizes_copy.out(Tensor self, SymInt[] split_sizes, int dim=0, *, Tensor(a!)[] out) -> () + inline void split_with_sizes_copy_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, const at::Tensor & self, at::IntArrayRef split_sizes, int64_t dim=0) { + return at::_ops::split_with_sizes_copy_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(split_sizes), dim, out); + } + + // aten::split_with_sizes_copy.out(Tensor self, SymInt[] split_sizes, int dim=0, *, Tensor(a!)[] out) -> () + inline void split_with_sizes_copy_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef split_sizes, int64_t dim, at::TensorList out) { + return at::_ops::split_with_sizes_copy_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(split_sizes), dim, out); + } + + // aten::split_with_sizes_copy.out(Tensor self, SymInt[] split_sizes, int dim=0, *, Tensor(a!)[] out) -> () + inline void split_with_sizes_copy_symint_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, const at::Tensor & self, c10::SymIntArrayRef split_sizes, int64_t dim=0) { + return at::_ops::split_with_sizes_copy_out::redispatch(dispatchKeySet, self, split_sizes, dim, out); + } + + // aten::split_with_sizes_copy.out(Tensor self, SymInt[] split_sizes, int dim=0, *, Tensor(a!)[] out) -> () + inline void split_with_sizes_copy_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef split_sizes, int64_t dim, at::TensorList out) { + return at::_ops::split_with_sizes_copy_out::redispatch(dispatchKeySet, self, split_sizes, dim, out); + } + + // aten::view_copy(Tensor self, SymInt[] size) -> Tensor + inline at::Tensor view_copy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef size) { + return at::_ops::view_copy::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(size)); + } + + // aten::view_copy(Tensor self, SymInt[] size) -> Tensor + inline at::Tensor view_copy_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef size) { + return at::_ops::view_copy::redispatch(dispatchKeySet, self, size); + } + + // aten::view_copy.dtype(Tensor self, ScalarType dtype) -> Tensor + inline at::Tensor view_copy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::ScalarType dtype) { + return at::_ops::view_copy_dtype::redispatch(dispatchKeySet, self, dtype); + } + + // aten::unfold_copy(Tensor self, int dimension, int size, int step) -> Tensor + inline at::Tensor unfold_copy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dimension, int64_t size, int64_t step) { + return at::_ops::unfold_copy::redispatch(dispatchKeySet, self, dimension, size, step); + } + + // aten::alias_copy(Tensor self) -> Tensor + inline at::Tensor alias_copy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::alias_copy::redispatch(dispatchKeySet, self); + } + + // aten::to_padded_tensor(Tensor self, float padding, SymInt[]? output_size=None) -> Tensor + inline at::Tensor to_padded_tensor(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, double padding, at::OptionalIntArrayRef output_size=c10::nullopt) { + return at::_ops::to_padded_tensor::redispatch(dispatchKeySet, self, padding, output_size.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*output_size)) : c10::nullopt); + } + + // aten::to_padded_tensor(Tensor self, float padding, SymInt[]? output_size=None) -> Tensor + inline at::Tensor to_padded_tensor_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, double padding, at::OptionalSymIntArrayRef output_size=c10::nullopt) { + return at::_ops::to_padded_tensor::redispatch(dispatchKeySet, self, padding, output_size); + } + + // aten::_nested_tensor_softmax_with_shape(Tensor self, Tensor query) -> Tensor + inline at::Tensor _nested_tensor_softmax_with_shape(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & query) { + return at::_ops::_nested_tensor_softmax_with_shape::redispatch(dispatchKeySet, self, query); + } + + // aten::_transformer_encoder_layer_fwd(Tensor src, int embed_dim, int num_heads, Tensor qkv_weight, Tensor qkv_bias, Tensor proj_weight, Tensor proj_bias, bool use_gelu, bool norm_first, float eps, Tensor norm_weight_1, Tensor norm_bias_1, Tensor norm_weight_2, Tensor norm_bias_2, Tensor ffn_weight_1, Tensor ffn_bias_1, Tensor ffn_weight_2, Tensor ffn_bias_2, Tensor? mask=None, int? mask_type=None) -> Tensor + inline at::Tensor _transformer_encoder_layer_fwd(c10::DispatchKeySet dispatchKeySet, const at::Tensor & src, int64_t embed_dim, int64_t num_heads, const at::Tensor & qkv_weight, const at::Tensor & qkv_bias, const at::Tensor & proj_weight, const at::Tensor & proj_bias, bool use_gelu, bool norm_first, double eps, const at::Tensor & norm_weight_1, const at::Tensor & norm_bias_1, const at::Tensor & norm_weight_2, const at::Tensor & norm_bias_2, const at::Tensor & ffn_weight_1, const at::Tensor & ffn_bias_1, const at::Tensor & ffn_weight_2, const at::Tensor & ffn_bias_2, const c10::optional & mask={}, c10::optional mask_type=c10::nullopt) { + return at::_ops::_transformer_encoder_layer_fwd::redispatch(dispatchKeySet, src, embed_dim, num_heads, qkv_weight, qkv_bias, proj_weight, proj_bias, use_gelu, norm_first, eps, norm_weight_1, norm_bias_1, norm_weight_2, norm_bias_2, ffn_weight_1, ffn_bias_1, ffn_weight_2, ffn_bias_2, mask, mask_type); + } + + // aten::_native_multi_head_attention(Tensor query, Tensor key, Tensor value, int embed_dim, int num_head, Tensor qkv_weight, Tensor qkv_bias, Tensor proj_weight, Tensor proj_bias, Tensor? mask=None, bool need_weights=True, bool average_attn_weights=True, int? mask_type=None) -> (Tensor, Tensor) + inline ::std::tuple _native_multi_head_attention(c10::DispatchKeySet dispatchKeySet, const at::Tensor & query, const at::Tensor & key, const at::Tensor & value, int64_t embed_dim, int64_t num_head, const at::Tensor & qkv_weight, const at::Tensor & qkv_bias, const at::Tensor & proj_weight, const at::Tensor & proj_bias, const c10::optional & mask={}, bool need_weights=true, bool average_attn_weights=true, c10::optional mask_type=c10::nullopt) { + return at::_ops::_native_multi_head_attention::redispatch(dispatchKeySet, query, key, value, embed_dim, num_head, qkv_weight, qkv_bias, proj_weight, proj_bias, mask, need_weights, average_attn_weights, mask_type); + } + + // aten::scaled_dot_product_attention(Tensor query, Tensor key, Tensor value, Tensor? attn_mask=None, float dropout_p=0.0, bool is_causal=False, *, float? scale=None) -> Tensor + inline at::Tensor scaled_dot_product_attention(c10::DispatchKeySet dispatchKeySet, const at::Tensor & query, const at::Tensor & key, const at::Tensor & value, const c10::optional & attn_mask={}, double dropout_p=0.0, bool is_causal=false, c10::optional scale=c10::nullopt) { + return at::_ops::scaled_dot_product_attention::redispatch(dispatchKeySet, query, key, value, attn_mask, dropout_p, is_causal, scale); + } + + // aten::_fused_sdp_choice(Tensor query, Tensor key, Tensor value, Tensor? attn_mask=None, float dropout_p=0.0, bool is_causal=False, *, float? scale=None) -> int + inline int64_t _fused_sdp_choice(c10::DispatchKeySet dispatchKeySet, const at::Tensor & query, const at::Tensor & key, const at::Tensor & value, const c10::optional & attn_mask={}, double dropout_p=0.0, bool is_causal=false, c10::optional scale=c10::nullopt) { + return at::_ops::_fused_sdp_choice::redispatch(dispatchKeySet, query, key, value, attn_mask, dropout_p, is_causal, scale); + } + + // aten::_scaled_dot_product_attention_math(Tensor query, Tensor key, Tensor value, Tensor? attn_mask=None, float dropout_p=0.0, bool is_causal=False, Tensor? dropout_mask=None, *, float? scale=None) -> (Tensor, Tensor) + inline ::std::tuple _scaled_dot_product_attention_math(c10::DispatchKeySet dispatchKeySet, const at::Tensor & query, const at::Tensor & key, const at::Tensor & value, const c10::optional & attn_mask={}, double dropout_p=0.0, bool is_causal=false, const c10::optional & dropout_mask={}, c10::optional scale=c10::nullopt) { + return at::_ops::_scaled_dot_product_attention_math::redispatch(dispatchKeySet, query, key, value, attn_mask, dropout_p, is_causal, dropout_mask, scale); + } + + // aten::_scaled_dot_product_flash_attention(Tensor query, Tensor key, Tensor value, float dropout_p=0.0, bool is_causal=False, bool return_debug_mask=False, *, float? scale=None) -> (Tensor output, Tensor logsumexp, Tensor cum_seq_q, Tensor cum_seq_k, SymInt max_q, SymInt max_k, Tensor philox_seed, Tensor philox_offset, Tensor debug_attn_mask) + inline ::std::tuple _scaled_dot_product_flash_attention(c10::DispatchKeySet dispatchKeySet, const at::Tensor & query, const at::Tensor & key, const at::Tensor & value, double dropout_p=0.0, bool is_causal=false, bool return_debug_mask=false, c10::optional scale=c10::nullopt) { + return at::_ops::_scaled_dot_product_flash_attention::redispatch(dispatchKeySet, query, key, value, dropout_p, is_causal, return_debug_mask, scale); + } + + // aten::_scaled_dot_product_flash_attention_for_cpu(Tensor query, Tensor key, Tensor value, float dropout_p=0.0, bool is_causal=False, *, Tensor? attn_mask=None, float? scale=None) -> (Tensor output, Tensor logsumexp) + inline ::std::tuple _scaled_dot_product_flash_attention_for_cpu(c10::DispatchKeySet dispatchKeySet, const at::Tensor & query, const at::Tensor & key, const at::Tensor & value, double dropout_p=0.0, bool is_causal=false, const c10::optional & attn_mask={}, c10::optional scale=c10::nullopt) { + return at::_ops::_scaled_dot_product_flash_attention_for_cpu::redispatch(dispatchKeySet, query, key, value, dropout_p, is_causal, attn_mask, scale); + } + + // aten::_scaled_dot_product_flash_attention_backward(Tensor grad_out, Tensor query, Tensor key, Tensor value, Tensor out, Tensor logsumexp, Tensor cum_seq_q, Tensor cum_seq_k, SymInt max_q, SymInt max_k, float dropout_p, bool is_causal, Tensor philox_seed, Tensor philox_offset, *, float? scale=None) -> (Tensor grad_query, Tensor grad_key, Tensor grad_value) + inline ::std::tuple _scaled_dot_product_flash_attention_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_out, const at::Tensor & query, const at::Tensor & key, const at::Tensor & value, const at::Tensor & out, const at::Tensor & logsumexp, const at::Tensor & cum_seq_q, const at::Tensor & cum_seq_k, int64_t max_q, int64_t max_k, double dropout_p, bool is_causal, const at::Tensor & philox_seed, const at::Tensor & philox_offset, c10::optional scale=c10::nullopt) { + return at::_ops::_scaled_dot_product_flash_attention_backward::redispatch(dispatchKeySet, grad_out, query, key, value, out, logsumexp, cum_seq_q, cum_seq_k, max_q, max_k, dropout_p, is_causal, philox_seed, philox_offset, scale); + } + + // aten::_scaled_dot_product_flash_attention_backward(Tensor grad_out, Tensor query, Tensor key, Tensor value, Tensor out, Tensor logsumexp, Tensor cum_seq_q, Tensor cum_seq_k, SymInt max_q, SymInt max_k, float dropout_p, bool is_causal, Tensor philox_seed, Tensor philox_offset, *, float? scale=None) -> (Tensor grad_query, Tensor grad_key, Tensor grad_value) + inline ::std::tuple _scaled_dot_product_flash_attention_backward_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_out, const at::Tensor & query, const at::Tensor & key, const at::Tensor & value, const at::Tensor & out, const at::Tensor & logsumexp, const at::Tensor & cum_seq_q, const at::Tensor & cum_seq_k, c10::SymInt max_q, c10::SymInt max_k, double dropout_p, bool is_causal, const at::Tensor & philox_seed, const at::Tensor & philox_offset, c10::optional scale=c10::nullopt) { + return at::_ops::_scaled_dot_product_flash_attention_backward::redispatch(dispatchKeySet, grad_out, query, key, value, out, logsumexp, cum_seq_q, cum_seq_k, max_q, max_k, dropout_p, is_causal, philox_seed, philox_offset, scale); + } + + // aten::_scaled_dot_product_flash_attention_for_cpu_backward(Tensor grad_out, Tensor query, Tensor key, Tensor value, Tensor out, Tensor logsumexp, float dropout_p, bool is_causal, *, Tensor? attn_mask=None, float? scale=None) -> (Tensor grad_query, Tensor grad_key, Tensor grad_value) + inline ::std::tuple _scaled_dot_product_flash_attention_for_cpu_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_out, const at::Tensor & query, const at::Tensor & key, const at::Tensor & value, const at::Tensor & out, const at::Tensor & logsumexp, double dropout_p, bool is_causal, const c10::optional & attn_mask={}, c10::optional scale=c10::nullopt) { + return at::_ops::_scaled_dot_product_flash_attention_for_cpu_backward::redispatch(dispatchKeySet, grad_out, query, key, value, out, logsumexp, dropout_p, is_causal, attn_mask, scale); + } + + // aten::_scaled_dot_product_efficient_attention(Tensor query, Tensor key, Tensor value, Tensor? attn_bias, bool compute_log_sumexp, float dropout_p=0.0, bool is_causal=False, *, float? scale=None) -> (Tensor output, Tensor log_sumexp, Tensor philox_seed, Tensor philox_offset) + inline ::std::tuple _scaled_dot_product_efficient_attention(c10::DispatchKeySet dispatchKeySet, const at::Tensor & query, const at::Tensor & key, const at::Tensor & value, const c10::optional & attn_bias, bool compute_log_sumexp, double dropout_p=0.0, bool is_causal=false, c10::optional scale=c10::nullopt) { + return at::_ops::_scaled_dot_product_efficient_attention::redispatch(dispatchKeySet, query, key, value, attn_bias, compute_log_sumexp, dropout_p, is_causal, scale); + } + + // aten::_scaled_dot_product_efficient_attention_backward(Tensor grad_out_, Tensor query, Tensor key, Tensor value, Tensor attn_bias, Tensor out, Tensor logsumexp, Tensor philox_seed, Tensor philox_offset, float dropout_p, bool[4] grad_input_mask, bool is_causal=False, *, float? scale=None) -> (Tensor, Tensor, Tensor, Tensor) + inline ::std::tuple _scaled_dot_product_efficient_attention_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_out_, const at::Tensor & query, const at::Tensor & key, const at::Tensor & value, const at::Tensor & attn_bias, const at::Tensor & out, const at::Tensor & logsumexp, const at::Tensor & philox_seed, const at::Tensor & philox_offset, double dropout_p, ::std::array grad_input_mask, bool is_causal=false, c10::optional scale=c10::nullopt) { + return at::_ops::_scaled_dot_product_efficient_attention_backward::redispatch(dispatchKeySet, grad_out_, query, key, value, attn_bias, out, logsumexp, philox_seed, philox_offset, dropout_p, grad_input_mask, is_causal, scale); + } + + // aten::_scaled_dot_product_cudnn_attention(Tensor query, Tensor key, Tensor value, float dropout_p=0.0, bool is_causal=False, bool return_debug_mask=False, *, float? scale=None) -> (Tensor output, Tensor logsumexp, Tensor philox_seed, Tensor philox_offset) + inline ::std::tuple _scaled_dot_product_cudnn_attention(c10::DispatchKeySet dispatchKeySet, const at::Tensor & query, const at::Tensor & key, const at::Tensor & value, double dropout_p=0.0, bool is_causal=false, bool return_debug_mask=false, c10::optional scale=c10::nullopt) { + return at::_ops::_scaled_dot_product_cudnn_attention::redispatch(dispatchKeySet, query, key, value, dropout_p, is_causal, return_debug_mask, scale); + } + + // aten::_flash_attention_forward(Tensor query, Tensor key, Tensor value, Tensor? cum_seq_q, Tensor? cum_seq_k, SymInt max_q, SymInt max_k, float dropout_p, bool is_causal, bool return_debug_mask, *, float? scale=None) -> (Tensor output, Tensor softmax_logsumexp, Tensor philox_seed, Tensor philox_offset, Tensor debug_attn_mask) + inline ::std::tuple _flash_attention_forward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & query, const at::Tensor & key, const at::Tensor & value, const c10::optional & cum_seq_q, const c10::optional & cum_seq_k, int64_t max_q, int64_t max_k, double dropout_p, bool is_causal, bool return_debug_mask, c10::optional scale=c10::nullopt) { + return at::_ops::_flash_attention_forward::redispatch(dispatchKeySet, query, key, value, cum_seq_q, cum_seq_k, max_q, max_k, dropout_p, is_causal, return_debug_mask, scale); + } + + // aten::_flash_attention_forward(Tensor query, Tensor key, Tensor value, Tensor? cum_seq_q, Tensor? cum_seq_k, SymInt max_q, SymInt max_k, float dropout_p, bool is_causal, bool return_debug_mask, *, float? scale=None) -> (Tensor output, Tensor softmax_logsumexp, Tensor philox_seed, Tensor philox_offset, Tensor debug_attn_mask) + inline ::std::tuple _flash_attention_forward_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & query, const at::Tensor & key, const at::Tensor & value, const c10::optional & cum_seq_q, const c10::optional & cum_seq_k, c10::SymInt max_q, c10::SymInt max_k, double dropout_p, bool is_causal, bool return_debug_mask, c10::optional scale=c10::nullopt) { + return at::_ops::_flash_attention_forward::redispatch(dispatchKeySet, query, key, value, cum_seq_q, cum_seq_k, max_q, max_k, dropout_p, is_causal, return_debug_mask, scale); + } + + // aten::_flash_attention_backward(Tensor grad_out, Tensor query, Tensor key, Tensor value, Tensor out, Tensor logsumexp, Tensor cum_seq_q, Tensor cum_seq_k, SymInt max_q, SymInt max_k, float dropout_p, bool is_causal, Tensor philox_seed, Tensor philox_offset, *, float? scale=None) -> (Tensor, Tensor, Tensor) + inline ::std::tuple _flash_attention_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_out, const at::Tensor & query, const at::Tensor & key, const at::Tensor & value, const at::Tensor & out, const at::Tensor & logsumexp, const at::Tensor & cum_seq_q, const at::Tensor & cum_seq_k, int64_t max_q, int64_t max_k, double dropout_p, bool is_causal, const at::Tensor & philox_seed, const at::Tensor & philox_offset, c10::optional scale=c10::nullopt) { + return at::_ops::_flash_attention_backward::redispatch(dispatchKeySet, grad_out, query, key, value, out, logsumexp, cum_seq_q, cum_seq_k, max_q, max_k, dropout_p, is_causal, philox_seed, philox_offset, scale); + } + + // aten::_flash_attention_backward(Tensor grad_out, Tensor query, Tensor key, Tensor value, Tensor out, Tensor logsumexp, Tensor cum_seq_q, Tensor cum_seq_k, SymInt max_q, SymInt max_k, float dropout_p, bool is_causal, Tensor philox_seed, Tensor philox_offset, *, float? scale=None) -> (Tensor, Tensor, Tensor) + inline ::std::tuple _flash_attention_backward_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_out, const at::Tensor & query, const at::Tensor & key, const at::Tensor & value, const at::Tensor & out, const at::Tensor & logsumexp, const at::Tensor & cum_seq_q, const at::Tensor & cum_seq_k, c10::SymInt max_q, c10::SymInt max_k, double dropout_p, bool is_causal, const at::Tensor & philox_seed, const at::Tensor & philox_offset, c10::optional scale=c10::nullopt) { + return at::_ops::_flash_attention_backward::redispatch(dispatchKeySet, grad_out, query, key, value, out, logsumexp, cum_seq_q, cum_seq_k, max_q, max_k, dropout_p, is_causal, philox_seed, philox_offset, scale); + } + + // aten::_efficient_attention_forward(Tensor query, Tensor key, Tensor value, Tensor? bias, Tensor? cu_seqlens_q, Tensor? cu_seqlens_k, int? max_seqlen_q, int? max_seqlen_k, float dropout_p, int custom_mask_type, bool compute_log_sumexp=False, *, float? scale=None, Tensor? causal_diagonal=None, Tensor? seqlen_k=None) -> (Tensor output, Tensor logsumexp, Tensor philox_seed, Tensor philox_offset, SymInt max_seqlen_batch_q, SymInt max_seqlen_batch_k) + inline ::std::tuple _efficient_attention_forward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & query, const at::Tensor & key, const at::Tensor & value, const c10::optional & bias, const c10::optional & cu_seqlens_q, const c10::optional & cu_seqlens_k, c10::optional max_seqlen_q, c10::optional max_seqlen_k, double dropout_p, int64_t custom_mask_type, bool compute_log_sumexp=false, c10::optional scale=c10::nullopt, const c10::optional & causal_diagonal={}, const c10::optional & seqlen_k={}) { + return at::_ops::_efficient_attention_forward::redispatch(dispatchKeySet, query, key, value, bias, cu_seqlens_q, cu_seqlens_k, max_seqlen_q, max_seqlen_k, dropout_p, custom_mask_type, compute_log_sumexp, scale, causal_diagonal, seqlen_k); + } + + // aten::_efficient_attention_backward(Tensor grad_out_, Tensor query, Tensor key, Tensor value, Tensor? bias, Tensor out, Tensor? cu_seqlens_q, Tensor? cu_seqlens_k, SymInt max_seqlen_q, SymInt max_seqlen_k, Tensor logsumexp, float dropout_p, Tensor philox_seed, Tensor philox_offset, int custom_mask_type, bool bias_requires_grad, *, float? scale=None, int? num_splits_key=None) -> (Tensor, Tensor, Tensor, Tensor) + inline ::std::tuple _efficient_attention_backward(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_out_, const at::Tensor & query, const at::Tensor & key, const at::Tensor & value, const c10::optional & bias, const at::Tensor & out, const c10::optional & cu_seqlens_q, const c10::optional & cu_seqlens_k, int64_t max_seqlen_q, int64_t max_seqlen_k, const at::Tensor & logsumexp, double dropout_p, const at::Tensor & philox_seed, const at::Tensor & philox_offset, int64_t custom_mask_type, bool bias_requires_grad, c10::optional scale=c10::nullopt, c10::optional num_splits_key=c10::nullopt) { + return at::_ops::_efficient_attention_backward::redispatch(dispatchKeySet, grad_out_, query, key, value, bias, out, cu_seqlens_q, cu_seqlens_k, max_seqlen_q, max_seqlen_k, logsumexp, dropout_p, philox_seed, philox_offset, custom_mask_type, bias_requires_grad, scale, num_splits_key); + } + + // aten::_efficient_attention_backward(Tensor grad_out_, Tensor query, Tensor key, Tensor value, Tensor? bias, Tensor out, Tensor? cu_seqlens_q, Tensor? cu_seqlens_k, SymInt max_seqlen_q, SymInt max_seqlen_k, Tensor logsumexp, float dropout_p, Tensor philox_seed, Tensor philox_offset, int custom_mask_type, bool bias_requires_grad, *, float? scale=None, int? num_splits_key=None) -> (Tensor, Tensor, Tensor, Tensor) + inline ::std::tuple _efficient_attention_backward_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_out_, const at::Tensor & query, const at::Tensor & key, const at::Tensor & value, const c10::optional & bias, const at::Tensor & out, const c10::optional & cu_seqlens_q, const c10::optional & cu_seqlens_k, c10::SymInt max_seqlen_q, c10::SymInt max_seqlen_k, const at::Tensor & logsumexp, double dropout_p, const at::Tensor & philox_seed, const at::Tensor & philox_offset, int64_t custom_mask_type, bool bias_requires_grad, c10::optional scale=c10::nullopt, c10::optional num_splits_key=c10::nullopt) { + return at::_ops::_efficient_attention_backward::redispatch(dispatchKeySet, grad_out_, query, key, value, bias, out, cu_seqlens_q, cu_seqlens_k, max_seqlen_q, max_seqlen_k, logsumexp, dropout_p, philox_seed, philox_offset, custom_mask_type, bias_requires_grad, scale, num_splits_key); + } + + // aten::_triton_scaled_dot_attention(Tensor q, Tensor k, Tensor v, float dropout_p=0.0) -> Tensor + inline at::Tensor _triton_scaled_dot_attention(c10::DispatchKeySet dispatchKeySet, const at::Tensor & q, const at::Tensor & k, const at::Tensor & v, double dropout_p=0.0) { + return at::_ops::_triton_scaled_dot_attention::redispatch(dispatchKeySet, q, k, v, dropout_p); + } + + // aten::_fill_mem_eff_dropout_mask_(Tensor(a!) self, float dropout_p, int seed, int offset) -> Tensor(a!) + inline at::Tensor & _fill_mem_eff_dropout_mask_(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, double dropout_p, int64_t seed, int64_t offset) { + return at::_ops::_fill_mem_eff_dropout_mask_::redispatch(dispatchKeySet, self, dropout_p, seed, offset); + } + + // aten::_triton_multi_head_attention(Tensor query, Tensor key, Tensor value, int embed_dim, int num_head, Tensor qkv_weight, Tensor qkv_bias, Tensor proj_weight, Tensor proj_bias, Tensor? mask=None) -> Tensor + inline at::Tensor _triton_multi_head_attention(c10::DispatchKeySet dispatchKeySet, const at::Tensor & query, const at::Tensor & key, const at::Tensor & value, int64_t embed_dim, int64_t num_head, const at::Tensor & qkv_weight, const at::Tensor & qkv_bias, const at::Tensor & proj_weight, const at::Tensor & proj_bias, const c10::optional & mask={}) { + return at::_ops::_triton_multi_head_attention::redispatch(dispatchKeySet, query, key, value, embed_dim, num_head, qkv_weight, qkv_bias, proj_weight, proj_bias, mask); + } + + // aten::special_airy_ai(Tensor x) -> Tensor + inline at::Tensor special_airy_ai(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x) { + return at::_ops::special_airy_ai::redispatch(dispatchKeySet, x); + } + + // aten::special_airy_ai.out(Tensor x, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_airy_ai_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & x) { + return at::_ops::special_airy_ai_out::redispatch(dispatchKeySet, x, out); + } + + // aten::special_airy_ai.out(Tensor x, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_airy_ai_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, at::Tensor & out) { + return at::_ops::special_airy_ai_out::redispatch(dispatchKeySet, x, out); + } + + // aten::special_bessel_j0(Tensor self) -> Tensor + inline at::Tensor special_bessel_j0(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::special_bessel_j0::redispatch(dispatchKeySet, self); + } + + // aten::special_bessel_j0.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_bessel_j0_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::special_bessel_j0_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_bessel_j0.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_bessel_j0_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::special_bessel_j0_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_bessel_j1(Tensor self) -> Tensor + inline at::Tensor special_bessel_j1(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::special_bessel_j1::redispatch(dispatchKeySet, self); + } + + // aten::special_bessel_j1.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_bessel_j1_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::special_bessel_j1_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_bessel_j1.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_bessel_j1_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::special_bessel_j1_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_bessel_y0(Tensor self) -> Tensor + inline at::Tensor special_bessel_y0(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::special_bessel_y0::redispatch(dispatchKeySet, self); + } + + // aten::special_bessel_y0.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_bessel_y0_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::special_bessel_y0_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_bessel_y0.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_bessel_y0_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::special_bessel_y0_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_bessel_y1(Tensor self) -> Tensor + inline at::Tensor special_bessel_y1(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::special_bessel_y1::redispatch(dispatchKeySet, self); + } + + // aten::special_bessel_y1.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_bessel_y1_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::special_bessel_y1_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_bessel_y1.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_bessel_y1_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::special_bessel_y1_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_chebyshev_polynomial_t(Tensor x, Tensor n) -> Tensor + inline at::Tensor special_chebyshev_polynomial_t(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, const at::Tensor & n) { + return at::_ops::special_chebyshev_polynomial_t::redispatch(dispatchKeySet, x, n); + } + + // aten::special_chebyshev_polynomial_t.x_scalar(Scalar x, Tensor n) -> Tensor + inline at::Tensor special_chebyshev_polynomial_t(c10::DispatchKeySet dispatchKeySet, const at::Scalar & x, const at::Tensor & n) { + return at::_ops::special_chebyshev_polynomial_t_x_scalar::redispatch(dispatchKeySet, x, n); + } + + // aten::special_chebyshev_polynomial_t.n_scalar(Tensor x, Scalar n) -> Tensor + inline at::Tensor special_chebyshev_polynomial_t(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, const at::Scalar & n) { + return at::_ops::special_chebyshev_polynomial_t_n_scalar::redispatch(dispatchKeySet, x, n); + } + + // aten::special_chebyshev_polynomial_t.out(Tensor x, Tensor n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_chebyshev_polynomial_t_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & x, const at::Tensor & n) { + return at::_ops::special_chebyshev_polynomial_t_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_chebyshev_polynomial_t.out(Tensor x, Tensor n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_chebyshev_polynomial_t_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, const at::Tensor & n, at::Tensor & out) { + return at::_ops::special_chebyshev_polynomial_t_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_chebyshev_polynomial_t.x_scalar_out(Scalar x, Tensor n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_chebyshev_polynomial_t_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Scalar & x, const at::Tensor & n) { + return at::_ops::special_chebyshev_polynomial_t_x_scalar_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_chebyshev_polynomial_t.x_scalar_out(Scalar x, Tensor n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_chebyshev_polynomial_t_outf(c10::DispatchKeySet dispatchKeySet, const at::Scalar & x, const at::Tensor & n, at::Tensor & out) { + return at::_ops::special_chebyshev_polynomial_t_x_scalar_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_chebyshev_polynomial_t.n_scalar_out(Tensor x, Scalar n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_chebyshev_polynomial_t_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & x, const at::Scalar & n) { + return at::_ops::special_chebyshev_polynomial_t_n_scalar_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_chebyshev_polynomial_t.n_scalar_out(Tensor x, Scalar n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_chebyshev_polynomial_t_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, const at::Scalar & n, at::Tensor & out) { + return at::_ops::special_chebyshev_polynomial_t_n_scalar_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_chebyshev_polynomial_u(Tensor x, Tensor n) -> Tensor + inline at::Tensor special_chebyshev_polynomial_u(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, const at::Tensor & n) { + return at::_ops::special_chebyshev_polynomial_u::redispatch(dispatchKeySet, x, n); + } + + // aten::special_chebyshev_polynomial_u.x_scalar(Scalar x, Tensor n) -> Tensor + inline at::Tensor special_chebyshev_polynomial_u(c10::DispatchKeySet dispatchKeySet, const at::Scalar & x, const at::Tensor & n) { + return at::_ops::special_chebyshev_polynomial_u_x_scalar::redispatch(dispatchKeySet, x, n); + } + + // aten::special_chebyshev_polynomial_u.n_scalar(Tensor x, Scalar n) -> Tensor + inline at::Tensor special_chebyshev_polynomial_u(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, const at::Scalar & n) { + return at::_ops::special_chebyshev_polynomial_u_n_scalar::redispatch(dispatchKeySet, x, n); + } + + // aten::special_chebyshev_polynomial_u.out(Tensor x, Tensor n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_chebyshev_polynomial_u_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & x, const at::Tensor & n) { + return at::_ops::special_chebyshev_polynomial_u_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_chebyshev_polynomial_u.out(Tensor x, Tensor n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_chebyshev_polynomial_u_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, const at::Tensor & n, at::Tensor & out) { + return at::_ops::special_chebyshev_polynomial_u_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_chebyshev_polynomial_u.x_scalar_out(Scalar x, Tensor n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_chebyshev_polynomial_u_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Scalar & x, const at::Tensor & n) { + return at::_ops::special_chebyshev_polynomial_u_x_scalar_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_chebyshev_polynomial_u.x_scalar_out(Scalar x, Tensor n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_chebyshev_polynomial_u_outf(c10::DispatchKeySet dispatchKeySet, const at::Scalar & x, const at::Tensor & n, at::Tensor & out) { + return at::_ops::special_chebyshev_polynomial_u_x_scalar_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_chebyshev_polynomial_u.n_scalar_out(Tensor x, Scalar n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_chebyshev_polynomial_u_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & x, const at::Scalar & n) { + return at::_ops::special_chebyshev_polynomial_u_n_scalar_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_chebyshev_polynomial_u.n_scalar_out(Tensor x, Scalar n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_chebyshev_polynomial_u_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, const at::Scalar & n, at::Tensor & out) { + return at::_ops::special_chebyshev_polynomial_u_n_scalar_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_chebyshev_polynomial_v(Tensor x, Tensor n) -> Tensor + inline at::Tensor special_chebyshev_polynomial_v(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, const at::Tensor & n) { + return at::_ops::special_chebyshev_polynomial_v::redispatch(dispatchKeySet, x, n); + } + + // aten::special_chebyshev_polynomial_v.x_scalar(Scalar x, Tensor n) -> Tensor + inline at::Tensor special_chebyshev_polynomial_v(c10::DispatchKeySet dispatchKeySet, const at::Scalar & x, const at::Tensor & n) { + return at::_ops::special_chebyshev_polynomial_v_x_scalar::redispatch(dispatchKeySet, x, n); + } + + // aten::special_chebyshev_polynomial_v.n_scalar(Tensor x, Scalar n) -> Tensor + inline at::Tensor special_chebyshev_polynomial_v(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, const at::Scalar & n) { + return at::_ops::special_chebyshev_polynomial_v_n_scalar::redispatch(dispatchKeySet, x, n); + } + + // aten::special_chebyshev_polynomial_v.out(Tensor x, Tensor n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_chebyshev_polynomial_v_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & x, const at::Tensor & n) { + return at::_ops::special_chebyshev_polynomial_v_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_chebyshev_polynomial_v.out(Tensor x, Tensor n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_chebyshev_polynomial_v_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, const at::Tensor & n, at::Tensor & out) { + return at::_ops::special_chebyshev_polynomial_v_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_chebyshev_polynomial_v.x_scalar_out(Scalar x, Tensor n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_chebyshev_polynomial_v_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Scalar & x, const at::Tensor & n) { + return at::_ops::special_chebyshev_polynomial_v_x_scalar_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_chebyshev_polynomial_v.x_scalar_out(Scalar x, Tensor n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_chebyshev_polynomial_v_outf(c10::DispatchKeySet dispatchKeySet, const at::Scalar & x, const at::Tensor & n, at::Tensor & out) { + return at::_ops::special_chebyshev_polynomial_v_x_scalar_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_chebyshev_polynomial_v.n_scalar_out(Tensor x, Scalar n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_chebyshev_polynomial_v_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & x, const at::Scalar & n) { + return at::_ops::special_chebyshev_polynomial_v_n_scalar_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_chebyshev_polynomial_v.n_scalar_out(Tensor x, Scalar n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_chebyshev_polynomial_v_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, const at::Scalar & n, at::Tensor & out) { + return at::_ops::special_chebyshev_polynomial_v_n_scalar_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_chebyshev_polynomial_w(Tensor x, Tensor n) -> Tensor + inline at::Tensor special_chebyshev_polynomial_w(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, const at::Tensor & n) { + return at::_ops::special_chebyshev_polynomial_w::redispatch(dispatchKeySet, x, n); + } + + // aten::special_chebyshev_polynomial_w.x_scalar(Scalar x, Tensor n) -> Tensor + inline at::Tensor special_chebyshev_polynomial_w(c10::DispatchKeySet dispatchKeySet, const at::Scalar & x, const at::Tensor & n) { + return at::_ops::special_chebyshev_polynomial_w_x_scalar::redispatch(dispatchKeySet, x, n); + } + + // aten::special_chebyshev_polynomial_w.n_scalar(Tensor x, Scalar n) -> Tensor + inline at::Tensor special_chebyshev_polynomial_w(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, const at::Scalar & n) { + return at::_ops::special_chebyshev_polynomial_w_n_scalar::redispatch(dispatchKeySet, x, n); + } + + // aten::special_chebyshev_polynomial_w.out(Tensor x, Tensor n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_chebyshev_polynomial_w_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & x, const at::Tensor & n) { + return at::_ops::special_chebyshev_polynomial_w_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_chebyshev_polynomial_w.out(Tensor x, Tensor n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_chebyshev_polynomial_w_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, const at::Tensor & n, at::Tensor & out) { + return at::_ops::special_chebyshev_polynomial_w_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_chebyshev_polynomial_w.x_scalar_out(Scalar x, Tensor n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_chebyshev_polynomial_w_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Scalar & x, const at::Tensor & n) { + return at::_ops::special_chebyshev_polynomial_w_x_scalar_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_chebyshev_polynomial_w.x_scalar_out(Scalar x, Tensor n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_chebyshev_polynomial_w_outf(c10::DispatchKeySet dispatchKeySet, const at::Scalar & x, const at::Tensor & n, at::Tensor & out) { + return at::_ops::special_chebyshev_polynomial_w_x_scalar_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_chebyshev_polynomial_w.n_scalar_out(Tensor x, Scalar n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_chebyshev_polynomial_w_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & x, const at::Scalar & n) { + return at::_ops::special_chebyshev_polynomial_w_n_scalar_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_chebyshev_polynomial_w.n_scalar_out(Tensor x, Scalar n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_chebyshev_polynomial_w_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, const at::Scalar & n, at::Tensor & out) { + return at::_ops::special_chebyshev_polynomial_w_n_scalar_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_hermite_polynomial_h(Tensor x, Tensor n) -> Tensor + inline at::Tensor special_hermite_polynomial_h(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, const at::Tensor & n) { + return at::_ops::special_hermite_polynomial_h::redispatch(dispatchKeySet, x, n); + } + + // aten::special_hermite_polynomial_h.x_scalar(Scalar x, Tensor n) -> Tensor + inline at::Tensor special_hermite_polynomial_h(c10::DispatchKeySet dispatchKeySet, const at::Scalar & x, const at::Tensor & n) { + return at::_ops::special_hermite_polynomial_h_x_scalar::redispatch(dispatchKeySet, x, n); + } + + // aten::special_hermite_polynomial_h.n_scalar(Tensor x, Scalar n) -> Tensor + inline at::Tensor special_hermite_polynomial_h(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, const at::Scalar & n) { + return at::_ops::special_hermite_polynomial_h_n_scalar::redispatch(dispatchKeySet, x, n); + } + + // aten::special_hermite_polynomial_h.out(Tensor x, Tensor n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_hermite_polynomial_h_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & x, const at::Tensor & n) { + return at::_ops::special_hermite_polynomial_h_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_hermite_polynomial_h.out(Tensor x, Tensor n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_hermite_polynomial_h_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, const at::Tensor & n, at::Tensor & out) { + return at::_ops::special_hermite_polynomial_h_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_hermite_polynomial_h.x_scalar_out(Scalar x, Tensor n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_hermite_polynomial_h_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Scalar & x, const at::Tensor & n) { + return at::_ops::special_hermite_polynomial_h_x_scalar_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_hermite_polynomial_h.x_scalar_out(Scalar x, Tensor n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_hermite_polynomial_h_outf(c10::DispatchKeySet dispatchKeySet, const at::Scalar & x, const at::Tensor & n, at::Tensor & out) { + return at::_ops::special_hermite_polynomial_h_x_scalar_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_hermite_polynomial_h.n_scalar_out(Tensor x, Scalar n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_hermite_polynomial_h_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & x, const at::Scalar & n) { + return at::_ops::special_hermite_polynomial_h_n_scalar_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_hermite_polynomial_h.n_scalar_out(Tensor x, Scalar n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_hermite_polynomial_h_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, const at::Scalar & n, at::Tensor & out) { + return at::_ops::special_hermite_polynomial_h_n_scalar_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_hermite_polynomial_he(Tensor x, Tensor n) -> Tensor + inline at::Tensor special_hermite_polynomial_he(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, const at::Tensor & n) { + return at::_ops::special_hermite_polynomial_he::redispatch(dispatchKeySet, x, n); + } + + // aten::special_hermite_polynomial_he.x_scalar(Scalar x, Tensor n) -> Tensor + inline at::Tensor special_hermite_polynomial_he(c10::DispatchKeySet dispatchKeySet, const at::Scalar & x, const at::Tensor & n) { + return at::_ops::special_hermite_polynomial_he_x_scalar::redispatch(dispatchKeySet, x, n); + } + + // aten::special_hermite_polynomial_he.n_scalar(Tensor x, Scalar n) -> Tensor + inline at::Tensor special_hermite_polynomial_he(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, const at::Scalar & n) { + return at::_ops::special_hermite_polynomial_he_n_scalar::redispatch(dispatchKeySet, x, n); + } + + // aten::special_hermite_polynomial_he.out(Tensor x, Tensor n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_hermite_polynomial_he_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & x, const at::Tensor & n) { + return at::_ops::special_hermite_polynomial_he_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_hermite_polynomial_he.out(Tensor x, Tensor n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_hermite_polynomial_he_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, const at::Tensor & n, at::Tensor & out) { + return at::_ops::special_hermite_polynomial_he_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_hermite_polynomial_he.x_scalar_out(Scalar x, Tensor n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_hermite_polynomial_he_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Scalar & x, const at::Tensor & n) { + return at::_ops::special_hermite_polynomial_he_x_scalar_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_hermite_polynomial_he.x_scalar_out(Scalar x, Tensor n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_hermite_polynomial_he_outf(c10::DispatchKeySet dispatchKeySet, const at::Scalar & x, const at::Tensor & n, at::Tensor & out) { + return at::_ops::special_hermite_polynomial_he_x_scalar_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_hermite_polynomial_he.n_scalar_out(Tensor x, Scalar n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_hermite_polynomial_he_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & x, const at::Scalar & n) { + return at::_ops::special_hermite_polynomial_he_n_scalar_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_hermite_polynomial_he.n_scalar_out(Tensor x, Scalar n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_hermite_polynomial_he_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, const at::Scalar & n, at::Tensor & out) { + return at::_ops::special_hermite_polynomial_he_n_scalar_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_laguerre_polynomial_l(Tensor x, Tensor n) -> Tensor + inline at::Tensor special_laguerre_polynomial_l(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, const at::Tensor & n) { + return at::_ops::special_laguerre_polynomial_l::redispatch(dispatchKeySet, x, n); + } + + // aten::special_laguerre_polynomial_l.x_scalar(Scalar x, Tensor n) -> Tensor + inline at::Tensor special_laguerre_polynomial_l(c10::DispatchKeySet dispatchKeySet, const at::Scalar & x, const at::Tensor & n) { + return at::_ops::special_laguerre_polynomial_l_x_scalar::redispatch(dispatchKeySet, x, n); + } + + // aten::special_laguerre_polynomial_l.n_scalar(Tensor x, Scalar n) -> Tensor + inline at::Tensor special_laguerre_polynomial_l(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, const at::Scalar & n) { + return at::_ops::special_laguerre_polynomial_l_n_scalar::redispatch(dispatchKeySet, x, n); + } + + // aten::special_laguerre_polynomial_l.out(Tensor x, Tensor n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_laguerre_polynomial_l_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & x, const at::Tensor & n) { + return at::_ops::special_laguerre_polynomial_l_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_laguerre_polynomial_l.out(Tensor x, Tensor n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_laguerre_polynomial_l_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, const at::Tensor & n, at::Tensor & out) { + return at::_ops::special_laguerre_polynomial_l_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_laguerre_polynomial_l.x_scalar_out(Scalar x, Tensor n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_laguerre_polynomial_l_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Scalar & x, const at::Tensor & n) { + return at::_ops::special_laguerre_polynomial_l_x_scalar_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_laguerre_polynomial_l.x_scalar_out(Scalar x, Tensor n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_laguerre_polynomial_l_outf(c10::DispatchKeySet dispatchKeySet, const at::Scalar & x, const at::Tensor & n, at::Tensor & out) { + return at::_ops::special_laguerre_polynomial_l_x_scalar_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_laguerre_polynomial_l.n_scalar_out(Tensor x, Scalar n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_laguerre_polynomial_l_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & x, const at::Scalar & n) { + return at::_ops::special_laguerre_polynomial_l_n_scalar_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_laguerre_polynomial_l.n_scalar_out(Tensor x, Scalar n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_laguerre_polynomial_l_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, const at::Scalar & n, at::Tensor & out) { + return at::_ops::special_laguerre_polynomial_l_n_scalar_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_legendre_polynomial_p(Tensor x, Tensor n) -> Tensor + inline at::Tensor special_legendre_polynomial_p(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, const at::Tensor & n) { + return at::_ops::special_legendre_polynomial_p::redispatch(dispatchKeySet, x, n); + } + + // aten::special_legendre_polynomial_p.x_scalar(Scalar x, Tensor n) -> Tensor + inline at::Tensor special_legendre_polynomial_p(c10::DispatchKeySet dispatchKeySet, const at::Scalar & x, const at::Tensor & n) { + return at::_ops::special_legendre_polynomial_p_x_scalar::redispatch(dispatchKeySet, x, n); + } + + // aten::special_legendre_polynomial_p.n_scalar(Tensor x, Scalar n) -> Tensor + inline at::Tensor special_legendre_polynomial_p(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, const at::Scalar & n) { + return at::_ops::special_legendre_polynomial_p_n_scalar::redispatch(dispatchKeySet, x, n); + } + + // aten::special_legendre_polynomial_p.out(Tensor x, Tensor n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_legendre_polynomial_p_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & x, const at::Tensor & n) { + return at::_ops::special_legendre_polynomial_p_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_legendre_polynomial_p.out(Tensor x, Tensor n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_legendre_polynomial_p_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, const at::Tensor & n, at::Tensor & out) { + return at::_ops::special_legendre_polynomial_p_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_legendre_polynomial_p.x_scalar_out(Scalar x, Tensor n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_legendre_polynomial_p_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Scalar & x, const at::Tensor & n) { + return at::_ops::special_legendre_polynomial_p_x_scalar_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_legendre_polynomial_p.x_scalar_out(Scalar x, Tensor n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_legendre_polynomial_p_outf(c10::DispatchKeySet dispatchKeySet, const at::Scalar & x, const at::Tensor & n, at::Tensor & out) { + return at::_ops::special_legendre_polynomial_p_x_scalar_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_legendre_polynomial_p.n_scalar_out(Tensor x, Scalar n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_legendre_polynomial_p_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & x, const at::Scalar & n) { + return at::_ops::special_legendre_polynomial_p_n_scalar_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_legendre_polynomial_p.n_scalar_out(Tensor x, Scalar n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_legendre_polynomial_p_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, const at::Scalar & n, at::Tensor & out) { + return at::_ops::special_legendre_polynomial_p_n_scalar_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_modified_bessel_i0(Tensor self) -> Tensor + inline at::Tensor special_modified_bessel_i0(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::special_modified_bessel_i0::redispatch(dispatchKeySet, self); + } + + // aten::special_modified_bessel_i0.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_modified_bessel_i0_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::special_modified_bessel_i0_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_modified_bessel_i0.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_modified_bessel_i0_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::special_modified_bessel_i0_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_modified_bessel_i1(Tensor self) -> Tensor + inline at::Tensor special_modified_bessel_i1(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::special_modified_bessel_i1::redispatch(dispatchKeySet, self); + } + + // aten::special_modified_bessel_i1.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_modified_bessel_i1_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::special_modified_bessel_i1_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_modified_bessel_i1.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_modified_bessel_i1_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::special_modified_bessel_i1_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_modified_bessel_k0(Tensor self) -> Tensor + inline at::Tensor special_modified_bessel_k0(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::special_modified_bessel_k0::redispatch(dispatchKeySet, self); + } + + // aten::special_modified_bessel_k0.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_modified_bessel_k0_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::special_modified_bessel_k0_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_modified_bessel_k0.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_modified_bessel_k0_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::special_modified_bessel_k0_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_modified_bessel_k1(Tensor self) -> Tensor + inline at::Tensor special_modified_bessel_k1(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::special_modified_bessel_k1::redispatch(dispatchKeySet, self); + } + + // aten::special_modified_bessel_k1.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_modified_bessel_k1_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::special_modified_bessel_k1_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_modified_bessel_k1.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_modified_bessel_k1_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::special_modified_bessel_k1_out::redispatch(dispatchKeySet, self, out); + } + + // aten::special_scaled_modified_bessel_k0(Tensor x) -> Tensor + inline at::Tensor special_scaled_modified_bessel_k0(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x) { + return at::_ops::special_scaled_modified_bessel_k0::redispatch(dispatchKeySet, x); + } + + // aten::special_scaled_modified_bessel_k0.out(Tensor x, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_scaled_modified_bessel_k0_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & x) { + return at::_ops::special_scaled_modified_bessel_k0_out::redispatch(dispatchKeySet, x, out); + } + + // aten::special_scaled_modified_bessel_k0.out(Tensor x, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_scaled_modified_bessel_k0_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, at::Tensor & out) { + return at::_ops::special_scaled_modified_bessel_k0_out::redispatch(dispatchKeySet, x, out); + } + + // aten::special_scaled_modified_bessel_k1(Tensor x) -> Tensor + inline at::Tensor special_scaled_modified_bessel_k1(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x) { + return at::_ops::special_scaled_modified_bessel_k1::redispatch(dispatchKeySet, x); + } + + // aten::special_scaled_modified_bessel_k1.out(Tensor x, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_scaled_modified_bessel_k1_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & x) { + return at::_ops::special_scaled_modified_bessel_k1_out::redispatch(dispatchKeySet, x, out); + } + + // aten::special_scaled_modified_bessel_k1.out(Tensor x, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_scaled_modified_bessel_k1_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, at::Tensor & out) { + return at::_ops::special_scaled_modified_bessel_k1_out::redispatch(dispatchKeySet, x, out); + } + + // aten::special_shifted_chebyshev_polynomial_t(Tensor x, Tensor n) -> Tensor + inline at::Tensor special_shifted_chebyshev_polynomial_t(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, const at::Tensor & n) { + return at::_ops::special_shifted_chebyshev_polynomial_t::redispatch(dispatchKeySet, x, n); + } + + // aten::special_shifted_chebyshev_polynomial_t.x_scalar(Scalar x, Tensor n) -> Tensor + inline at::Tensor special_shifted_chebyshev_polynomial_t(c10::DispatchKeySet dispatchKeySet, const at::Scalar & x, const at::Tensor & n) { + return at::_ops::special_shifted_chebyshev_polynomial_t_x_scalar::redispatch(dispatchKeySet, x, n); + } + + // aten::special_shifted_chebyshev_polynomial_t.n_scalar(Tensor x, Scalar n) -> Tensor + inline at::Tensor special_shifted_chebyshev_polynomial_t(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, const at::Scalar & n) { + return at::_ops::special_shifted_chebyshev_polynomial_t_n_scalar::redispatch(dispatchKeySet, x, n); + } + + // aten::special_shifted_chebyshev_polynomial_t.out(Tensor x, Tensor n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_shifted_chebyshev_polynomial_t_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & x, const at::Tensor & n) { + return at::_ops::special_shifted_chebyshev_polynomial_t_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_shifted_chebyshev_polynomial_t.out(Tensor x, Tensor n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_shifted_chebyshev_polynomial_t_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, const at::Tensor & n, at::Tensor & out) { + return at::_ops::special_shifted_chebyshev_polynomial_t_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_shifted_chebyshev_polynomial_t.x_scalar_out(Scalar x, Tensor n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_shifted_chebyshev_polynomial_t_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Scalar & x, const at::Tensor & n) { + return at::_ops::special_shifted_chebyshev_polynomial_t_x_scalar_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_shifted_chebyshev_polynomial_t.x_scalar_out(Scalar x, Tensor n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_shifted_chebyshev_polynomial_t_outf(c10::DispatchKeySet dispatchKeySet, const at::Scalar & x, const at::Tensor & n, at::Tensor & out) { + return at::_ops::special_shifted_chebyshev_polynomial_t_x_scalar_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_shifted_chebyshev_polynomial_t.n_scalar_out(Tensor x, Scalar n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_shifted_chebyshev_polynomial_t_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & x, const at::Scalar & n) { + return at::_ops::special_shifted_chebyshev_polynomial_t_n_scalar_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_shifted_chebyshev_polynomial_t.n_scalar_out(Tensor x, Scalar n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_shifted_chebyshev_polynomial_t_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, const at::Scalar & n, at::Tensor & out) { + return at::_ops::special_shifted_chebyshev_polynomial_t_n_scalar_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_shifted_chebyshev_polynomial_u(Tensor x, Tensor n) -> Tensor + inline at::Tensor special_shifted_chebyshev_polynomial_u(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, const at::Tensor & n) { + return at::_ops::special_shifted_chebyshev_polynomial_u::redispatch(dispatchKeySet, x, n); + } + + // aten::special_shifted_chebyshev_polynomial_u.x_scalar(Scalar x, Tensor n) -> Tensor + inline at::Tensor special_shifted_chebyshev_polynomial_u(c10::DispatchKeySet dispatchKeySet, const at::Scalar & x, const at::Tensor & n) { + return at::_ops::special_shifted_chebyshev_polynomial_u_x_scalar::redispatch(dispatchKeySet, x, n); + } + + // aten::special_shifted_chebyshev_polynomial_u.n_scalar(Tensor x, Scalar n) -> Tensor + inline at::Tensor special_shifted_chebyshev_polynomial_u(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, const at::Scalar & n) { + return at::_ops::special_shifted_chebyshev_polynomial_u_n_scalar::redispatch(dispatchKeySet, x, n); + } + + // aten::special_shifted_chebyshev_polynomial_u.out(Tensor x, Tensor n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_shifted_chebyshev_polynomial_u_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & x, const at::Tensor & n) { + return at::_ops::special_shifted_chebyshev_polynomial_u_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_shifted_chebyshev_polynomial_u.out(Tensor x, Tensor n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_shifted_chebyshev_polynomial_u_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, const at::Tensor & n, at::Tensor & out) { + return at::_ops::special_shifted_chebyshev_polynomial_u_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_shifted_chebyshev_polynomial_u.x_scalar_out(Scalar x, Tensor n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_shifted_chebyshev_polynomial_u_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Scalar & x, const at::Tensor & n) { + return at::_ops::special_shifted_chebyshev_polynomial_u_x_scalar_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_shifted_chebyshev_polynomial_u.x_scalar_out(Scalar x, Tensor n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_shifted_chebyshev_polynomial_u_outf(c10::DispatchKeySet dispatchKeySet, const at::Scalar & x, const at::Tensor & n, at::Tensor & out) { + return at::_ops::special_shifted_chebyshev_polynomial_u_x_scalar_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_shifted_chebyshev_polynomial_u.n_scalar_out(Tensor x, Scalar n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_shifted_chebyshev_polynomial_u_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & x, const at::Scalar & n) { + return at::_ops::special_shifted_chebyshev_polynomial_u_n_scalar_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_shifted_chebyshev_polynomial_u.n_scalar_out(Tensor x, Scalar n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_shifted_chebyshev_polynomial_u_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, const at::Scalar & n, at::Tensor & out) { + return at::_ops::special_shifted_chebyshev_polynomial_u_n_scalar_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_shifted_chebyshev_polynomial_v(Tensor x, Tensor n) -> Tensor + inline at::Tensor special_shifted_chebyshev_polynomial_v(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, const at::Tensor & n) { + return at::_ops::special_shifted_chebyshev_polynomial_v::redispatch(dispatchKeySet, x, n); + } + + // aten::special_shifted_chebyshev_polynomial_v.x_scalar(Scalar x, Tensor n) -> Tensor + inline at::Tensor special_shifted_chebyshev_polynomial_v(c10::DispatchKeySet dispatchKeySet, const at::Scalar & x, const at::Tensor & n) { + return at::_ops::special_shifted_chebyshev_polynomial_v_x_scalar::redispatch(dispatchKeySet, x, n); + } + + // aten::special_shifted_chebyshev_polynomial_v.n_scalar(Tensor x, Scalar n) -> Tensor + inline at::Tensor special_shifted_chebyshev_polynomial_v(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, const at::Scalar & n) { + return at::_ops::special_shifted_chebyshev_polynomial_v_n_scalar::redispatch(dispatchKeySet, x, n); + } + + // aten::special_shifted_chebyshev_polynomial_v.out(Tensor x, Tensor n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_shifted_chebyshev_polynomial_v_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & x, const at::Tensor & n) { + return at::_ops::special_shifted_chebyshev_polynomial_v_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_shifted_chebyshev_polynomial_v.out(Tensor x, Tensor n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_shifted_chebyshev_polynomial_v_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, const at::Tensor & n, at::Tensor & out) { + return at::_ops::special_shifted_chebyshev_polynomial_v_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_shifted_chebyshev_polynomial_v.x_scalar_out(Scalar x, Tensor n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_shifted_chebyshev_polynomial_v_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Scalar & x, const at::Tensor & n) { + return at::_ops::special_shifted_chebyshev_polynomial_v_x_scalar_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_shifted_chebyshev_polynomial_v.x_scalar_out(Scalar x, Tensor n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_shifted_chebyshev_polynomial_v_outf(c10::DispatchKeySet dispatchKeySet, const at::Scalar & x, const at::Tensor & n, at::Tensor & out) { + return at::_ops::special_shifted_chebyshev_polynomial_v_x_scalar_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_shifted_chebyshev_polynomial_v.n_scalar_out(Tensor x, Scalar n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_shifted_chebyshev_polynomial_v_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & x, const at::Scalar & n) { + return at::_ops::special_shifted_chebyshev_polynomial_v_n_scalar_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_shifted_chebyshev_polynomial_v.n_scalar_out(Tensor x, Scalar n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_shifted_chebyshev_polynomial_v_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, const at::Scalar & n, at::Tensor & out) { + return at::_ops::special_shifted_chebyshev_polynomial_v_n_scalar_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_shifted_chebyshev_polynomial_w(Tensor x, Tensor n) -> Tensor + inline at::Tensor special_shifted_chebyshev_polynomial_w(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, const at::Tensor & n) { + return at::_ops::special_shifted_chebyshev_polynomial_w::redispatch(dispatchKeySet, x, n); + } + + // aten::special_shifted_chebyshev_polynomial_w.x_scalar(Scalar x, Tensor n) -> Tensor + inline at::Tensor special_shifted_chebyshev_polynomial_w(c10::DispatchKeySet dispatchKeySet, const at::Scalar & x, const at::Tensor & n) { + return at::_ops::special_shifted_chebyshev_polynomial_w_x_scalar::redispatch(dispatchKeySet, x, n); + } + + // aten::special_shifted_chebyshev_polynomial_w.n_scalar(Tensor x, Scalar n) -> Tensor + inline at::Tensor special_shifted_chebyshev_polynomial_w(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, const at::Scalar & n) { + return at::_ops::special_shifted_chebyshev_polynomial_w_n_scalar::redispatch(dispatchKeySet, x, n); + } + + // aten::special_shifted_chebyshev_polynomial_w.out(Tensor x, Tensor n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_shifted_chebyshev_polynomial_w_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & x, const at::Tensor & n) { + return at::_ops::special_shifted_chebyshev_polynomial_w_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_shifted_chebyshev_polynomial_w.out(Tensor x, Tensor n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_shifted_chebyshev_polynomial_w_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, const at::Tensor & n, at::Tensor & out) { + return at::_ops::special_shifted_chebyshev_polynomial_w_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_shifted_chebyshev_polynomial_w.x_scalar_out(Scalar x, Tensor n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_shifted_chebyshev_polynomial_w_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Scalar & x, const at::Tensor & n) { + return at::_ops::special_shifted_chebyshev_polynomial_w_x_scalar_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_shifted_chebyshev_polynomial_w.x_scalar_out(Scalar x, Tensor n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_shifted_chebyshev_polynomial_w_outf(c10::DispatchKeySet dispatchKeySet, const at::Scalar & x, const at::Tensor & n, at::Tensor & out) { + return at::_ops::special_shifted_chebyshev_polynomial_w_x_scalar_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_shifted_chebyshev_polynomial_w.n_scalar_out(Tensor x, Scalar n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_shifted_chebyshev_polynomial_w_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & x, const at::Scalar & n) { + return at::_ops::special_shifted_chebyshev_polynomial_w_n_scalar_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_shifted_chebyshev_polynomial_w.n_scalar_out(Tensor x, Scalar n, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_shifted_chebyshev_polynomial_w_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, const at::Scalar & n, at::Tensor & out) { + return at::_ops::special_shifted_chebyshev_polynomial_w_n_scalar_out::redispatch(dispatchKeySet, x, n, out); + } + + // aten::special_spherical_bessel_j0(Tensor x) -> Tensor + inline at::Tensor special_spherical_bessel_j0(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x) { + return at::_ops::special_spherical_bessel_j0::redispatch(dispatchKeySet, x); + } + + // aten::special_spherical_bessel_j0.out(Tensor x, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_spherical_bessel_j0_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & x) { + return at::_ops::special_spherical_bessel_j0_out::redispatch(dispatchKeySet, x, out); + } + + // aten::special_spherical_bessel_j0.out(Tensor x, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & special_spherical_bessel_j0_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, at::Tensor & out) { + return at::_ops::special_spherical_bessel_j0_out::redispatch(dispatchKeySet, x, out); + } + + // aten::_foobar(Tensor self, bool arg1=True, bool arg2=True, *, bool arg3=True) -> Tensor + inline at::Tensor _foobar(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, bool arg1=true, bool arg2=true, bool arg3=true) { + return at::_ops::_foobar::redispatch(dispatchKeySet, self, arg1, arg2, arg3); + } + + // aten::_fused_adam_(Tensor(a!)[] self, Tensor(b!)[] grads, Tensor(c!)[] exp_avgs, Tensor(d!)[] exp_avg_sqs, Tensor(e!)[] max_exp_avg_sqs, Tensor[] state_steps, *, float lr, float beta1, float beta2, float weight_decay, float eps, bool amsgrad, bool maximize, Tensor? grad_scale=None, Tensor? found_inf=None) -> () + inline void _fused_adam_(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList grads, at::TensorList exp_avgs, at::TensorList exp_avg_sqs, at::TensorList max_exp_avg_sqs, at::TensorList state_steps, double lr, double beta1, double beta2, double weight_decay, double eps, bool amsgrad, bool maximize, const c10::optional & grad_scale={}, const c10::optional & found_inf={}) { + return at::_ops::_fused_adam_::redispatch(dispatchKeySet, self, grads, exp_avgs, exp_avg_sqs, max_exp_avg_sqs, state_steps, lr, beta1, beta2, weight_decay, eps, amsgrad, maximize, grad_scale, found_inf); + } + + // aten::_fused_adam_.tensor_lr(Tensor(a!)[] self, Tensor(b!)[] grads, Tensor(c!)[] exp_avgs, Tensor(d!)[] exp_avg_sqs, Tensor(e!)[] max_exp_avg_sqs, Tensor[] state_steps, *, Tensor lr, float beta1, float beta2, float weight_decay, float eps, bool amsgrad, bool maximize, Tensor? grad_scale=None, Tensor? found_inf=None) -> () + inline void _fused_adam_(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList grads, at::TensorList exp_avgs, at::TensorList exp_avg_sqs, at::TensorList max_exp_avg_sqs, at::TensorList state_steps, const at::Tensor & lr, double beta1, double beta2, double weight_decay, double eps, bool amsgrad, bool maximize, const c10::optional & grad_scale={}, const c10::optional & found_inf={}) { + return at::_ops::_fused_adam__tensor_lr::redispatch(dispatchKeySet, self, grads, exp_avgs, exp_avg_sqs, max_exp_avg_sqs, state_steps, lr, beta1, beta2, weight_decay, eps, amsgrad, maximize, grad_scale, found_inf); + } + + // aten::_fused_adamw_(Tensor(a!)[] self, Tensor(b!)[] grads, Tensor(c!)[] exp_avgs, Tensor(d!)[] exp_avg_sqs, Tensor(e!)[] max_exp_avg_sqs, Tensor[] state_steps, *, float lr, float beta1, float beta2, float weight_decay, float eps, bool amsgrad, bool maximize, Tensor? grad_scale=None, Tensor? found_inf=None) -> () + inline void _fused_adamw_(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList grads, at::TensorList exp_avgs, at::TensorList exp_avg_sqs, at::TensorList max_exp_avg_sqs, at::TensorList state_steps, double lr, double beta1, double beta2, double weight_decay, double eps, bool amsgrad, bool maximize, const c10::optional & grad_scale={}, const c10::optional & found_inf={}) { + return at::_ops::_fused_adamw_::redispatch(dispatchKeySet, self, grads, exp_avgs, exp_avg_sqs, max_exp_avg_sqs, state_steps, lr, beta1, beta2, weight_decay, eps, amsgrad, maximize, grad_scale, found_inf); + } + + // aten::_fused_adamw_.tensor_lr(Tensor(a!)[] self, Tensor(b!)[] grads, Tensor(c!)[] exp_avgs, Tensor(d!)[] exp_avg_sqs, Tensor(e!)[] max_exp_avg_sqs, Tensor[] state_steps, *, Tensor lr, float beta1, float beta2, float weight_decay, float eps, bool amsgrad, bool maximize, Tensor? grad_scale=None, Tensor? found_inf=None) -> () + inline void _fused_adamw_(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList grads, at::TensorList exp_avgs, at::TensorList exp_avg_sqs, at::TensorList max_exp_avg_sqs, at::TensorList state_steps, const at::Tensor & lr, double beta1, double beta2, double weight_decay, double eps, bool amsgrad, bool maximize, const c10::optional & grad_scale={}, const c10::optional & found_inf={}) { + return at::_ops::_fused_adamw__tensor_lr::redispatch(dispatchKeySet, self, grads, exp_avgs, exp_avg_sqs, max_exp_avg_sqs, state_steps, lr, beta1, beta2, weight_decay, eps, amsgrad, maximize, grad_scale, found_inf); + } + + // aten::_fused_sgd_(Tensor(a!)[] self, Tensor(b!)[] grads, Tensor(c!)[] momentum_buffer_list, *, float weight_decay, float momentum, float lr, float dampening, bool nesterov, bool maximize, bool is_first_step, Tensor? grad_scale=None, Tensor? found_inf=None) -> () + inline void _fused_sgd_(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList grads, at::TensorList momentum_buffer_list, double weight_decay, double momentum, double lr, double dampening, bool nesterov, bool maximize, bool is_first_step, const c10::optional & grad_scale={}, const c10::optional & found_inf={}) { + return at::_ops::_fused_sgd_::redispatch(dispatchKeySet, self, grads, momentum_buffer_list, weight_decay, momentum, lr, dampening, nesterov, maximize, is_first_step, grad_scale, found_inf); + } + + // aten::_fused_sgd_.tensor_lr(Tensor(a!)[] self, Tensor(b!)[] grads, Tensor(c!)[] momentum_buffer_list, *, float weight_decay, float momentum, Tensor lr, float dampening, bool nesterov, bool maximize, bool is_first_step, Tensor? grad_scale=None, Tensor? found_inf=None) -> () + inline void _fused_sgd_(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList grads, at::TensorList momentum_buffer_list, double weight_decay, double momentum, const at::Tensor & lr, double dampening, bool nesterov, bool maximize, bool is_first_step, const c10::optional & grad_scale={}, const c10::optional & found_inf={}) { + return at::_ops::_fused_sgd__tensor_lr::redispatch(dispatchKeySet, self, grads, momentum_buffer_list, weight_decay, momentum, lr, dampening, nesterov, maximize, is_first_step, grad_scale, found_inf); + } + + // aten::_propagate_xla_data(Tensor input, Tensor output) -> () + inline void _propagate_xla_data(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & output) { + return at::_ops::_propagate_xla_data::redispatch(dispatchKeySet, input, output); + } + + // aten::_new_zeros_with_same_feature_meta.out(Tensor self, Tensor other, *, int self_num_batch_dims=0, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _new_zeros_with_same_feature_meta_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other, int64_t self_num_batch_dims=0) { + return at::_ops::_new_zeros_with_same_feature_meta_out::redispatch(dispatchKeySet, self, other, self_num_batch_dims, out); + } + + // aten::_new_zeros_with_same_feature_meta.out(Tensor self, Tensor other, *, int self_num_batch_dims=0, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _new_zeros_with_same_feature_meta_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, int64_t self_num_batch_dims, at::Tensor & out) { + return at::_ops::_new_zeros_with_same_feature_meta_out::redispatch(dispatchKeySet, self, other, self_num_batch_dims, out); + } + + // aten::_cudnn_ctc_loss.out(Tensor log_probs, Tensor targets, int[] input_lengths, int[] target_lengths, int blank, bool deterministic, bool zero_infinity, *, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple _cudnn_ctc_loss_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, const at::Tensor & log_probs, const at::Tensor & targets, at::IntArrayRef input_lengths, at::IntArrayRef target_lengths, int64_t blank, bool deterministic, bool zero_infinity) { + return at::_ops::_cudnn_ctc_loss_out::redispatch(dispatchKeySet, log_probs, targets, input_lengths, target_lengths, blank, deterministic, zero_infinity, out0, out1); + } + + // aten::_cudnn_ctc_loss.out(Tensor log_probs, Tensor targets, int[] input_lengths, int[] target_lengths, int blank, bool deterministic, bool zero_infinity, *, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple _cudnn_ctc_loss_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & log_probs, const at::Tensor & targets, at::IntArrayRef input_lengths, at::IntArrayRef target_lengths, int64_t blank, bool deterministic, bool zero_infinity, at::Tensor & out0, at::Tensor & out1) { + return at::_ops::_cudnn_ctc_loss_out::redispatch(dispatchKeySet, log_probs, targets, input_lengths, target_lengths, blank, deterministic, zero_infinity, out0, out1); + } + + // aten::_cudnn_rnn_flatten_weight.out(Tensor[] weight_arr, int weight_stride0, SymInt input_size, int mode, SymInt hidden_size, SymInt proj_size, int num_layers, bool batch_first, bool bidirectional, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _cudnn_rnn_flatten_weight_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, at::TensorList weight_arr, int64_t weight_stride0, int64_t input_size, int64_t mode, int64_t hidden_size, int64_t proj_size, int64_t num_layers, bool batch_first, bool bidirectional) { + return at::_ops::_cudnn_rnn_flatten_weight_out::redispatch(dispatchKeySet, weight_arr, weight_stride0, input_size, mode, hidden_size, proj_size, num_layers, batch_first, bidirectional, out); + } + + // aten::_cudnn_rnn_flatten_weight.out(Tensor[] weight_arr, int weight_stride0, SymInt input_size, int mode, SymInt hidden_size, SymInt proj_size, int num_layers, bool batch_first, bool bidirectional, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _cudnn_rnn_flatten_weight_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList weight_arr, int64_t weight_stride0, int64_t input_size, int64_t mode, int64_t hidden_size, int64_t proj_size, int64_t num_layers, bool batch_first, bool bidirectional, at::Tensor & out) { + return at::_ops::_cudnn_rnn_flatten_weight_out::redispatch(dispatchKeySet, weight_arr, weight_stride0, input_size, mode, hidden_size, proj_size, num_layers, batch_first, bidirectional, out); + } + + // aten::_cudnn_rnn_flatten_weight.out(Tensor[] weight_arr, int weight_stride0, SymInt input_size, int mode, SymInt hidden_size, SymInt proj_size, int num_layers, bool batch_first, bool bidirectional, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _cudnn_rnn_flatten_weight_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, at::TensorList weight_arr, int64_t weight_stride0, c10::SymInt input_size, int64_t mode, c10::SymInt hidden_size, c10::SymInt proj_size, int64_t num_layers, bool batch_first, bool bidirectional) { + return at::_ops::_cudnn_rnn_flatten_weight_out::redispatch(dispatchKeySet, weight_arr, weight_stride0, input_size, mode, hidden_size, proj_size, num_layers, batch_first, bidirectional, out); + } + + // aten::_cudnn_rnn_flatten_weight.out(Tensor[] weight_arr, int weight_stride0, SymInt input_size, int mode, SymInt hidden_size, SymInt proj_size, int num_layers, bool batch_first, bool bidirectional, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _cudnn_rnn_flatten_weight_symint_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList weight_arr, int64_t weight_stride0, c10::SymInt input_size, int64_t mode, c10::SymInt hidden_size, c10::SymInt proj_size, int64_t num_layers, bool batch_first, bool bidirectional, at::Tensor & out) { + return at::_ops::_cudnn_rnn_flatten_weight_out::redispatch(dispatchKeySet, weight_arr, weight_stride0, input_size, mode, hidden_size, proj_size, num_layers, batch_first, bidirectional, out); + } + + // aten::_cudnn_rnn.out(Tensor input, Tensor[] weight, int weight_stride0, Tensor? weight_buf, Tensor hx, Tensor? cx, 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(a!) out0, Tensor(b!) out1, Tensor(c!) out2, Tensor(d!) out3, Tensor(e!) out4) -> (Tensor(a!), Tensor(b!), Tensor(c!), Tensor(d!), Tensor(e!)) + inline ::std::tuple _cudnn_rnn_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, at::Tensor & out3, at::Tensor & out4, const at::Tensor & input, at::TensorList weight, int64_t weight_stride0, const c10::optional & weight_buf, const at::Tensor & hx, const c10::optional & cx, 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) { + return at::_ops::_cudnn_rnn_out::redispatch(dispatchKeySet, input, weight, weight_stride0, weight_buf, hx, cx, mode, hidden_size, proj_size, num_layers, batch_first, dropout, train, bidirectional, c10::fromIntArrayRefSlow(batch_sizes), dropout_state, out0, out1, out2, out3, out4); + } + + // aten::_cudnn_rnn.out(Tensor input, Tensor[] weight, int weight_stride0, Tensor? weight_buf, Tensor hx, Tensor? cx, 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(a!) out0, Tensor(b!) out1, Tensor(c!) out2, Tensor(d!) out3, Tensor(e!) out4) -> (Tensor(a!), Tensor(b!), Tensor(c!), Tensor(d!), Tensor(e!)) + inline ::std::tuple _cudnn_rnn_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, at::TensorList weight, int64_t weight_stride0, const c10::optional & weight_buf, const at::Tensor & hx, const c10::optional & cx, 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, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, at::Tensor & out3, at::Tensor & out4) { + return at::_ops::_cudnn_rnn_out::redispatch(dispatchKeySet, input, weight, weight_stride0, weight_buf, hx, cx, mode, hidden_size, proj_size, num_layers, batch_first, dropout, train, bidirectional, c10::fromIntArrayRefSlow(batch_sizes), dropout_state, out0, out1, out2, out3, out4); + } + + // aten::_cudnn_rnn.out(Tensor input, Tensor[] weight, int weight_stride0, Tensor? weight_buf, Tensor hx, Tensor? cx, 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(a!) out0, Tensor(b!) out1, Tensor(c!) out2, Tensor(d!) out3, Tensor(e!) out4) -> (Tensor(a!), Tensor(b!), Tensor(c!), Tensor(d!), Tensor(e!)) + inline ::std::tuple _cudnn_rnn_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, at::Tensor & out3, at::Tensor & out4, const at::Tensor & input, at::TensorList weight, int64_t weight_stride0, const c10::optional & weight_buf, const at::Tensor & hx, const c10::optional & cx, 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) { + return at::_ops::_cudnn_rnn_out::redispatch(dispatchKeySet, input, weight, weight_stride0, weight_buf, hx, cx, mode, hidden_size, proj_size, num_layers, batch_first, dropout, train, bidirectional, batch_sizes, dropout_state, out0, out1, out2, out3, out4); + } + + // aten::_cudnn_rnn.out(Tensor input, Tensor[] weight, int weight_stride0, Tensor? weight_buf, Tensor hx, Tensor? cx, 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(a!) out0, Tensor(b!) out1, Tensor(c!) out2, Tensor(d!) out3, Tensor(e!) out4) -> (Tensor(a!), Tensor(b!), Tensor(c!), Tensor(d!), Tensor(e!)) + inline ::std::tuple _cudnn_rnn_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, at::TensorList weight, int64_t weight_stride0, const c10::optional & weight_buf, const at::Tensor & hx, const c10::optional & cx, 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, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, at::Tensor & out3, at::Tensor & out4) { + return at::_ops::_cudnn_rnn_out::redispatch(dispatchKeySet, input, weight, weight_stride0, weight_buf, hx, cx, mode, hidden_size, proj_size, num_layers, batch_first, dropout, train, bidirectional, batch_sizes, dropout_state, out0, out1, out2, out3, out4); + } + + // 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(c10::DispatchKeySet dispatchKeySet, 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::redispatch(dispatchKeySet, 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(c10::DispatchKeySet dispatchKeySet, 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::redispatch(dispatchKeySet, 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(c10::DispatchKeySet dispatchKeySet, 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::redispatch(dispatchKeySet, 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(c10::DispatchKeySet dispatchKeySet, 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::redispatch(dispatchKeySet, 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_init_dropout_state.out(float dropout, bool train, int dropout_seed, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _cudnn_init_dropout_state_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, double dropout, bool train, int64_t dropout_seed) { + return at::_ops::_cudnn_init_dropout_state_out::redispatch(dispatchKeySet, dropout, train, dropout_seed, out); + } + + // aten::_cudnn_init_dropout_state.out(float dropout, bool train, int dropout_seed, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _cudnn_init_dropout_state_outf(c10::DispatchKeySet dispatchKeySet, double dropout, bool train, int64_t dropout_seed, at::Tensor & out) { + return at::_ops::_cudnn_init_dropout_state_out::redispatch(dispatchKeySet, dropout, train, dropout_seed, out); + } + + // aten::_fused_dropout.out(Tensor self, float p, Generator? generator=None, *, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple _fused_dropout_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, const at::Tensor & self, double p, c10::optional generator=c10::nullopt) { + return at::_ops::_fused_dropout_out::redispatch(dispatchKeySet, self, p, generator, out0, out1); + } + + // aten::_fused_dropout.out(Tensor self, float p, Generator? generator=None, *, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple _fused_dropout_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, double p, c10::optional generator, at::Tensor & out0, at::Tensor & out1) { + return at::_ops::_fused_dropout_out::redispatch(dispatchKeySet, self, p, generator, out0, out1); + } + + // aten::_masked_scale.out(Tensor self, Tensor mask, float scale, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _masked_scale_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & mask, double scale) { + return at::_ops::_masked_scale_out::redispatch(dispatchKeySet, self, mask, scale, out); + } + + // aten::_masked_scale.out(Tensor self, Tensor mask, float scale, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _masked_scale_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & mask, double scale, at::Tensor & out) { + return at::_ops::_masked_scale_out::redispatch(dispatchKeySet, self, mask, scale, out); + } + + // aten::native_dropout.out(Tensor input, float p, bool? train, *, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple native_dropout_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, const at::Tensor & input, double p, c10::optional train) { + return at::_ops::native_dropout_out::redispatch(dispatchKeySet, input, p, train, out0, out1); + } + + // aten::native_dropout.out(Tensor input, float p, bool? train, *, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple native_dropout_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, double p, c10::optional train, at::Tensor & out0, at::Tensor & out1) { + return at::_ops::native_dropout_out::redispatch(dispatchKeySet, input, p, train, out0, out1); + } + + // aten::native_dropout_backward.out(Tensor grad_output, Tensor mask, float scale, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & native_dropout_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & grad_output, const at::Tensor & mask, double scale) { + return at::_ops::native_dropout_backward_out::redispatch(dispatchKeySet, grad_output, mask, scale, out); + } + + // aten::native_dropout_backward.out(Tensor grad_output, Tensor mask, float scale, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & native_dropout_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & mask, double scale, at::Tensor & out) { + return at::_ops::native_dropout_backward_out::redispatch(dispatchKeySet, grad_output, mask, scale, out); + } + + // aten::_conj_physical.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _conj_physical_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::_conj_physical_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_conj_physical.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _conj_physical_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::_conj_physical_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_add_relu.Scalar_out(Tensor self, Scalar other, Scalar alpha=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _add_relu_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Scalar & other, const at::Scalar & alpha=1) { + return at::_ops::_add_relu_Scalar_out::redispatch(dispatchKeySet, self, other, alpha, out); + } + + // aten::_add_relu.Scalar_out(Tensor self, Scalar other, Scalar alpha=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _add_relu_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other, const at::Scalar & alpha, at::Tensor & out) { + return at::_ops::_add_relu_Scalar_out::redispatch(dispatchKeySet, self, other, alpha, out); + } + + // aten::add.Scalar_out(Tensor self, Scalar other, Scalar alpha=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & add_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Scalar & other, const at::Scalar & alpha=1) { + return at::_ops::add_Scalar_out::redispatch(dispatchKeySet, self, other, alpha, out); + } + + // aten::add.Scalar_out(Tensor self, Scalar other, Scalar alpha=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & add_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other, const at::Scalar & alpha, at::Tensor & out) { + return at::_ops::add_Scalar_out::redispatch(dispatchKeySet, self, other, alpha, out); + } + + // aten::affine_grid_generator.out(Tensor theta, SymInt[] size, bool align_corners, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & affine_grid_generator_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & theta, at::IntArrayRef size, bool align_corners) { + return at::_ops::affine_grid_generator_out::redispatch(dispatchKeySet, theta, c10::fromIntArrayRefSlow(size), align_corners, out); + } + + // aten::affine_grid_generator.out(Tensor theta, SymInt[] size, bool align_corners, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & affine_grid_generator_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & theta, at::IntArrayRef size, bool align_corners, at::Tensor & out) { + return at::_ops::affine_grid_generator_out::redispatch(dispatchKeySet, theta, c10::fromIntArrayRefSlow(size), align_corners, out); + } + + // aten::affine_grid_generator.out(Tensor theta, SymInt[] size, bool align_corners, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & affine_grid_generator_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & theta, c10::SymIntArrayRef size, bool align_corners) { + return at::_ops::affine_grid_generator_out::redispatch(dispatchKeySet, theta, size, align_corners, out); + } + + // aten::affine_grid_generator.out(Tensor theta, SymInt[] size, bool align_corners, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & affine_grid_generator_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & theta, c10::SymIntArrayRef size, bool align_corners, at::Tensor & out) { + return at::_ops::affine_grid_generator_out::redispatch(dispatchKeySet, theta, size, align_corners, out); + } + + // aten::_test_functorch_fallback.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _test_functorch_fallback_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::_test_functorch_fallback_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::_test_functorch_fallback.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _test_functorch_fallback_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::_test_functorch_fallback_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::bartlett_window.out(int window_length, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & bartlett_window_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, int64_t window_length) { + return at::_ops::bartlett_window_out::redispatch(dispatchKeySet, window_length, out); + } + + // aten::bartlett_window.out(int window_length, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & bartlett_window_outf(c10::DispatchKeySet dispatchKeySet, int64_t window_length, at::Tensor & out) { + return at::_ops::bartlett_window_out::redispatch(dispatchKeySet, window_length, out); + } + + // aten::bartlett_window.periodic_out(int window_length, bool periodic, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & bartlett_window_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, int64_t window_length, bool periodic) { + return at::_ops::bartlett_window_periodic_out::redispatch(dispatchKeySet, window_length, periodic, out); + } + + // aten::bartlett_window.periodic_out(int window_length, bool periodic, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & bartlett_window_outf(c10::DispatchKeySet dispatchKeySet, int64_t window_length, bool periodic, at::Tensor & out) { + return at::_ops::bartlett_window_periodic_out::redispatch(dispatchKeySet, window_length, periodic, out); + } + + // aten::quantized_batch_norm.out(Tensor input, Tensor? weight, Tensor? bias, Tensor mean, Tensor var, float eps, float output_scale, int output_zero_point, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & quantized_batch_norm_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & input, const c10::optional & weight, const c10::optional & bias, const at::Tensor & mean, const at::Tensor & var, double eps, double output_scale, int64_t output_zero_point) { + return at::_ops::quantized_batch_norm_out::redispatch(dispatchKeySet, input, weight, bias, mean, var, eps, output_scale, output_zero_point, out); + } + + // aten::quantized_batch_norm.out(Tensor input, Tensor? weight, Tensor? bias, Tensor mean, Tensor var, float eps, float output_scale, int output_zero_point, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & quantized_batch_norm_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const c10::optional & weight, const c10::optional & bias, const at::Tensor & mean, const at::Tensor & var, double eps, double output_scale, int64_t output_zero_point, at::Tensor & out) { + return at::_ops::quantized_batch_norm_out::redispatch(dispatchKeySet, input, weight, bias, mean, var, eps, output_scale, output_zero_point, out); + } + + // aten::bernoulli.Tensor_out(Tensor self, Tensor p, *, Generator? generator=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & bernoulli_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & p, c10::optional generator=c10::nullopt) { + return at::_ops::bernoulli_Tensor_out::redispatch(dispatchKeySet, self, p, generator, out); + } + + // aten::bernoulli.Tensor_out(Tensor self, Tensor p, *, Generator? generator=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & bernoulli_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & p, c10::optional generator, at::Tensor & out) { + return at::_ops::bernoulli_Tensor_out::redispatch(dispatchKeySet, self, p, generator, out); + } + + // aten::bernoulli.Tensor(Tensor self, Tensor p, *, Generator? generator=None) -> Tensor + inline at::Tensor bernoulli(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & p, c10::optional generator=c10::nullopt) { + return at::_ops::bernoulli_Tensor::redispatch(dispatchKeySet, self, p, generator); + } + + // aten::bernoulli.float_out(Tensor self, float p=0.5, *, Generator? generator=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & bernoulli_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, double p=0.5, c10::optional generator=c10::nullopt) { + return at::_ops::bernoulli_float_out::redispatch(dispatchKeySet, self, p, generator, out); + } + + // aten::bernoulli.float_out(Tensor self, float p=0.5, *, Generator? generator=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & bernoulli_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, double p, c10::optional generator, at::Tensor & out) { + return at::_ops::bernoulli_float_out::redispatch(dispatchKeySet, self, p, generator, out); + } + + // aten::binary_cross_entropy_with_logits.out(Tensor self, Tensor target, Tensor? weight=None, Tensor? pos_weight=None, int reduction=Mean, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & binary_cross_entropy_with_logits_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & target, const c10::optional & weight={}, const c10::optional & pos_weight={}, int64_t reduction=at::Reduction::Mean) { + return at::_ops::binary_cross_entropy_with_logits_out::redispatch(dispatchKeySet, self, target, weight, pos_weight, reduction, out); + } + + // aten::binary_cross_entropy_with_logits.out(Tensor self, Tensor target, Tensor? weight=None, Tensor? pos_weight=None, int reduction=Mean, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & binary_cross_entropy_with_logits_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & target, const c10::optional & weight, const c10::optional & pos_weight, int64_t reduction, at::Tensor & out) { + return at::_ops::binary_cross_entropy_with_logits_out::redispatch(dispatchKeySet, self, target, weight, pos_weight, reduction, out); + } + + // aten::bincount.out(Tensor self, Tensor? weights=None, int minlength=0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & bincount_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const c10::optional & weights={}, int64_t minlength=0) { + return at::_ops::bincount_out::redispatch(dispatchKeySet, self, weights, minlength, out); + } + + // aten::bincount.out(Tensor self, Tensor? weights=None, int minlength=0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & bincount_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const c10::optional & weights, int64_t minlength, at::Tensor & out) { + return at::_ops::bincount_out::redispatch(dispatchKeySet, self, weights, minlength, out); + } + + // aten::blackman_window.out(int window_length, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & blackman_window_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, int64_t window_length) { + return at::_ops::blackman_window_out::redispatch(dispatchKeySet, window_length, out); + } + + // aten::blackman_window.out(int window_length, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & blackman_window_outf(c10::DispatchKeySet dispatchKeySet, int64_t window_length, at::Tensor & out) { + return at::_ops::blackman_window_out::redispatch(dispatchKeySet, window_length, out); + } + + // aten::blackman_window.periodic_out(int window_length, bool periodic, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & blackman_window_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, int64_t window_length, bool periodic) { + return at::_ops::blackman_window_periodic_out::redispatch(dispatchKeySet, window_length, periodic, out); + } + + // aten::blackman_window.periodic_out(int window_length, bool periodic, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & blackman_window_outf(c10::DispatchKeySet dispatchKeySet, int64_t window_length, bool periodic, at::Tensor & out) { + return at::_ops::blackman_window_periodic_out::redispatch(dispatchKeySet, window_length, periodic, out); + } + + // aten::block_diag.out(Tensor[] tensors, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & block_diag_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, at::TensorList tensors) { + return at::_ops::block_diag_out::redispatch(dispatchKeySet, tensors, out); + } + + // aten::block_diag.out(Tensor[] tensors, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & block_diag_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList tensors, at::Tensor & out) { + return at::_ops::block_diag_out::redispatch(dispatchKeySet, tensors, out); + } + + // aten::constant_pad_nd.out(Tensor self, SymInt[] pad, Scalar value=0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & constant_pad_nd_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef pad, const at::Scalar & value=0) { + return at::_ops::constant_pad_nd_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(pad), value, out); + } + + // aten::constant_pad_nd.out(Tensor self, SymInt[] pad, Scalar value=0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & constant_pad_nd_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef pad, const at::Scalar & value, at::Tensor & out) { + return at::_ops::constant_pad_nd_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(pad), value, out); + } + + // aten::constant_pad_nd.out(Tensor self, SymInt[] pad, Scalar value=0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & constant_pad_nd_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::SymIntArrayRef pad, const at::Scalar & value=0) { + return at::_ops::constant_pad_nd_out::redispatch(dispatchKeySet, self, pad, value, out); + } + + // aten::constant_pad_nd.out(Tensor self, SymInt[] pad, Scalar value=0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & constant_pad_nd_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef pad, const at::Scalar & value, at::Tensor & out) { + return at::_ops::constant_pad_nd_out::redispatch(dispatchKeySet, self, pad, value, out); + } + + // aten::convolution.out(Tensor input, Tensor weight, Tensor? bias, SymInt[] stride, SymInt[] padding, SymInt[] dilation, bool transposed, SymInt[] output_padding, SymInt groups, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & convolution_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, bool transposed, at::IntArrayRef output_padding, int64_t groups) { + return at::_ops::convolution_out::redispatch(dispatchKeySet, input, weight, bias, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(dilation), transposed, c10::fromIntArrayRefSlow(output_padding), groups, out); + } + + // aten::convolution.out(Tensor input, Tensor weight, Tensor? bias, SymInt[] stride, SymInt[] padding, SymInt[] dilation, bool transposed, SymInt[] output_padding, SymInt groups, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & convolution_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, bool transposed, at::IntArrayRef output_padding, int64_t groups, at::Tensor & out) { + return at::_ops::convolution_out::redispatch(dispatchKeySet, input, weight, bias, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(dilation), transposed, c10::fromIntArrayRefSlow(output_padding), groups, out); + } + + // aten::convolution.out(Tensor input, Tensor weight, Tensor? bias, SymInt[] stride, SymInt[] padding, SymInt[] dilation, bool transposed, SymInt[] output_padding, SymInt groups, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & convolution_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias, c10::SymIntArrayRef stride, c10::SymIntArrayRef padding, c10::SymIntArrayRef dilation, bool transposed, c10::SymIntArrayRef output_padding, c10::SymInt groups) { + return at::_ops::convolution_out::redispatch(dispatchKeySet, input, weight, bias, stride, padding, dilation, transposed, output_padding, groups, out); + } + + // aten::convolution.out(Tensor input, Tensor weight, Tensor? bias, SymInt[] stride, SymInt[] padding, SymInt[] dilation, bool transposed, SymInt[] output_padding, SymInt groups, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & convolution_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias, c10::SymIntArrayRef stride, c10::SymIntArrayRef padding, c10::SymIntArrayRef dilation, bool transposed, c10::SymIntArrayRef output_padding, c10::SymInt groups, at::Tensor & out) { + return at::_ops::convolution_out::redispatch(dispatchKeySet, input, weight, bias, stride, padding, dilation, transposed, output_padding, groups, out); + } + + // aten::convolution_backward.out(Tensor grad_output, Tensor input, Tensor weight, SymInt[]? bias_sizes, SymInt[] stride, SymInt[] padding, SymInt[] dilation, bool transposed, SymInt[] output_padding, SymInt groups, bool[3] output_mask, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple convolution_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, const at::Tensor & grad_output, const at::Tensor & input, const at::Tensor & weight, at::OptionalIntArrayRef bias_sizes, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, bool transposed, at::IntArrayRef output_padding, int64_t groups, ::std::array output_mask) { + return at::_ops::convolution_backward_out::redispatch(dispatchKeySet, grad_output, input, weight, bias_sizes.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*bias_sizes)) : c10::nullopt, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(dilation), transposed, c10::fromIntArrayRefSlow(output_padding), groups, output_mask, out0, out1, out2); + } + + // aten::convolution_backward.out(Tensor grad_output, Tensor input, Tensor weight, SymInt[]? bias_sizes, SymInt[] stride, SymInt[] padding, SymInt[] dilation, bool transposed, SymInt[] output_padding, SymInt groups, bool[3] output_mask, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple convolution_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & input, const at::Tensor & weight, at::OptionalIntArrayRef bias_sizes, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, bool transposed, at::IntArrayRef output_padding, int64_t groups, ::std::array output_mask, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2) { + return at::_ops::convolution_backward_out::redispatch(dispatchKeySet, grad_output, input, weight, bias_sizes.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*bias_sizes)) : c10::nullopt, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(dilation), transposed, c10::fromIntArrayRefSlow(output_padding), groups, output_mask, out0, out1, out2); + } + + // aten::convolution_backward.out(Tensor grad_output, Tensor input, Tensor weight, SymInt[]? bias_sizes, SymInt[] stride, SymInt[] padding, SymInt[] dilation, bool transposed, SymInt[] output_padding, SymInt groups, bool[3] output_mask, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple convolution_backward_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, const at::Tensor & grad_output, const at::Tensor & input, const at::Tensor & weight, at::OptionalSymIntArrayRef bias_sizes, c10::SymIntArrayRef stride, c10::SymIntArrayRef padding, c10::SymIntArrayRef dilation, bool transposed, c10::SymIntArrayRef output_padding, c10::SymInt groups, ::std::array output_mask) { + return at::_ops::convolution_backward_out::redispatch(dispatchKeySet, grad_output, input, weight, bias_sizes, stride, padding, dilation, transposed, output_padding, groups, output_mask, out0, out1, out2); + } + + // aten::convolution_backward.out(Tensor grad_output, Tensor input, Tensor weight, SymInt[]? bias_sizes, SymInt[] stride, SymInt[] padding, SymInt[] dilation, bool transposed, SymInt[] output_padding, SymInt groups, bool[3] output_mask, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple convolution_backward_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & input, const at::Tensor & weight, at::OptionalSymIntArrayRef bias_sizes, c10::SymIntArrayRef stride, c10::SymIntArrayRef padding, c10::SymIntArrayRef dilation, bool transposed, c10::SymIntArrayRef output_padding, c10::SymInt groups, ::std::array output_mask, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2) { + return at::_ops::convolution_backward_out::redispatch(dispatchKeySet, grad_output, input, weight, bias_sizes, stride, padding, dilation, transposed, output_padding, groups, output_mask, out0, out1, out2); + } + + // aten::convolution_overrideable.out(Tensor input, Tensor weight, Tensor? bias, SymInt[] stride, SymInt[] padding, SymInt[] dilation, bool transposed, SymInt[] output_padding, SymInt groups, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & convolution_overrideable_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, bool transposed, at::IntArrayRef output_padding, int64_t groups) { + return at::_ops::convolution_overrideable_out::redispatch(dispatchKeySet, input, weight, bias, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(dilation), transposed, c10::fromIntArrayRefSlow(output_padding), groups, out); + } + + // aten::convolution_overrideable.out(Tensor input, Tensor weight, Tensor? bias, SymInt[] stride, SymInt[] padding, SymInt[] dilation, bool transposed, SymInt[] output_padding, SymInt groups, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & convolution_overrideable_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, bool transposed, at::IntArrayRef output_padding, int64_t groups, at::Tensor & out) { + return at::_ops::convolution_overrideable_out::redispatch(dispatchKeySet, input, weight, bias, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(dilation), transposed, c10::fromIntArrayRefSlow(output_padding), groups, out); + } + + // aten::convolution_overrideable.out(Tensor input, Tensor weight, Tensor? bias, SymInt[] stride, SymInt[] padding, SymInt[] dilation, bool transposed, SymInt[] output_padding, SymInt groups, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & convolution_overrideable_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias, c10::SymIntArrayRef stride, c10::SymIntArrayRef padding, c10::SymIntArrayRef dilation, bool transposed, c10::SymIntArrayRef output_padding, c10::SymInt groups) { + return at::_ops::convolution_overrideable_out::redispatch(dispatchKeySet, input, weight, bias, stride, padding, dilation, transposed, output_padding, groups, out); + } + + // aten::convolution_overrideable.out(Tensor input, Tensor weight, Tensor? bias, SymInt[] stride, SymInt[] padding, SymInt[] dilation, bool transposed, SymInt[] output_padding, SymInt groups, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & convolution_overrideable_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias, c10::SymIntArrayRef stride, c10::SymIntArrayRef padding, c10::SymIntArrayRef dilation, bool transposed, c10::SymIntArrayRef output_padding, c10::SymInt groups, at::Tensor & out) { + return at::_ops::convolution_overrideable_out::redispatch(dispatchKeySet, input, weight, bias, stride, padding, dilation, transposed, output_padding, groups, out); + } + + // aten::convolution_backward_overrideable.out(Tensor grad_output, Tensor input, Tensor weight, SymInt[] stride, SymInt[] padding, SymInt[] dilation, bool transposed, SymInt[] output_padding, SymInt groups, bool[3] output_mask, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple convolution_backward_overrideable_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, const at::Tensor & grad_output, const at::Tensor & input, const at::Tensor & weight, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, bool transposed, at::IntArrayRef output_padding, int64_t groups, ::std::array output_mask) { + return at::_ops::convolution_backward_overrideable_out::redispatch(dispatchKeySet, grad_output, input, weight, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(dilation), transposed, c10::fromIntArrayRefSlow(output_padding), groups, output_mask, out0, out1, out2); + } + + // aten::convolution_backward_overrideable.out(Tensor grad_output, Tensor input, Tensor weight, SymInt[] stride, SymInt[] padding, SymInt[] dilation, bool transposed, SymInt[] output_padding, SymInt groups, bool[3] output_mask, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple convolution_backward_overrideable_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & input, const at::Tensor & weight, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, bool transposed, at::IntArrayRef output_padding, int64_t groups, ::std::array output_mask, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2) { + return at::_ops::convolution_backward_overrideable_out::redispatch(dispatchKeySet, grad_output, input, weight, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(dilation), transposed, c10::fromIntArrayRefSlow(output_padding), groups, output_mask, out0, out1, out2); + } + + // aten::convolution_backward_overrideable.out(Tensor grad_output, Tensor input, Tensor weight, SymInt[] stride, SymInt[] padding, SymInt[] dilation, bool transposed, SymInt[] output_padding, SymInt groups, bool[3] output_mask, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple convolution_backward_overrideable_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, const at::Tensor & grad_output, const at::Tensor & input, const at::Tensor & weight, c10::SymIntArrayRef stride, c10::SymIntArrayRef padding, c10::SymIntArrayRef dilation, bool transposed, c10::SymIntArrayRef output_padding, c10::SymInt groups, ::std::array output_mask) { + return at::_ops::convolution_backward_overrideable_out::redispatch(dispatchKeySet, grad_output, input, weight, stride, padding, dilation, transposed, output_padding, groups, output_mask, out0, out1, out2); + } + + // aten::convolution_backward_overrideable.out(Tensor grad_output, Tensor input, Tensor weight, SymInt[] stride, SymInt[] padding, SymInt[] dilation, bool transposed, SymInt[] output_padding, SymInt groups, bool[3] output_mask, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple convolution_backward_overrideable_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & input, const at::Tensor & weight, c10::SymIntArrayRef stride, c10::SymIntArrayRef padding, c10::SymIntArrayRef dilation, bool transposed, c10::SymIntArrayRef output_padding, c10::SymInt groups, ::std::array output_mask, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2) { + return at::_ops::convolution_backward_overrideable_out::redispatch(dispatchKeySet, grad_output, input, weight, stride, padding, dilation, transposed, output_padding, groups, output_mask, out0, out1, out2); + } + + // aten::_convolution.out(Tensor input, Tensor weight, Tensor? bias, SymInt[] stride, SymInt[] padding, SymInt[] dilation, bool transposed, SymInt[] output_padding, SymInt groups, bool benchmark, bool deterministic, bool cudnn_enabled, bool allow_tf32, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _convolution_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, bool transposed, at::IntArrayRef output_padding, int64_t groups, bool benchmark, bool deterministic, bool cudnn_enabled, bool allow_tf32) { + return at::_ops::_convolution_out::redispatch(dispatchKeySet, input, weight, bias, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(dilation), transposed, c10::fromIntArrayRefSlow(output_padding), groups, benchmark, deterministic, cudnn_enabled, allow_tf32, out); + } + + // aten::_convolution.out(Tensor input, Tensor weight, Tensor? bias, SymInt[] stride, SymInt[] padding, SymInt[] dilation, bool transposed, SymInt[] output_padding, SymInt groups, bool benchmark, bool deterministic, bool cudnn_enabled, bool allow_tf32, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _convolution_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, bool transposed, at::IntArrayRef output_padding, int64_t groups, bool benchmark, bool deterministic, bool cudnn_enabled, bool allow_tf32, at::Tensor & out) { + return at::_ops::_convolution_out::redispatch(dispatchKeySet, input, weight, bias, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(dilation), transposed, c10::fromIntArrayRefSlow(output_padding), groups, benchmark, deterministic, cudnn_enabled, allow_tf32, out); + } + + // aten::_convolution.out(Tensor input, Tensor weight, Tensor? bias, SymInt[] stride, SymInt[] padding, SymInt[] dilation, bool transposed, SymInt[] output_padding, SymInt groups, bool benchmark, bool deterministic, bool cudnn_enabled, bool allow_tf32, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _convolution_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias, c10::SymIntArrayRef stride, c10::SymIntArrayRef padding, c10::SymIntArrayRef dilation, bool transposed, c10::SymIntArrayRef output_padding, c10::SymInt groups, bool benchmark, bool deterministic, bool cudnn_enabled, bool allow_tf32) { + return at::_ops::_convolution_out::redispatch(dispatchKeySet, input, weight, bias, stride, padding, dilation, transposed, output_padding, groups, benchmark, deterministic, cudnn_enabled, allow_tf32, out); + } + + // aten::_convolution.out(Tensor input, Tensor weight, Tensor? bias, SymInt[] stride, SymInt[] padding, SymInt[] dilation, bool transposed, SymInt[] output_padding, SymInt groups, bool benchmark, bool deterministic, bool cudnn_enabled, bool allow_tf32, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _convolution_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias, c10::SymIntArrayRef stride, c10::SymIntArrayRef padding, c10::SymIntArrayRef dilation, bool transposed, c10::SymIntArrayRef output_padding, c10::SymInt groups, bool benchmark, bool deterministic, bool cudnn_enabled, bool allow_tf32, at::Tensor & out) { + return at::_ops::_convolution_out::redispatch(dispatchKeySet, input, weight, bias, stride, padding, dilation, transposed, output_padding, groups, benchmark, deterministic, cudnn_enabled, allow_tf32, out); + } + + // aten::conv_tbc.out(Tensor self, Tensor weight, Tensor bias, int pad=0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & conv_tbc_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & weight, const at::Tensor & bias, int64_t pad=0) { + return at::_ops::conv_tbc_out::redispatch(dispatchKeySet, self, weight, bias, pad, out); + } + + // aten::conv_tbc.out(Tensor self, Tensor weight, Tensor bias, int pad=0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & conv_tbc_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, const at::Tensor & bias, int64_t pad, at::Tensor & out) { + return at::_ops::conv_tbc_out::redispatch(dispatchKeySet, self, weight, bias, pad, out); + } + + // aten::copy.out(Tensor self, Tensor src, bool non_blocking=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & copy_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & src, bool non_blocking=false) { + return at::_ops::copy_out::redispatch(dispatchKeySet, self, src, non_blocking, out); + } + + // aten::copy.out(Tensor self, Tensor src, bool non_blocking=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & copy_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & src, bool non_blocking, at::Tensor & out) { + return at::_ops::copy_out::redispatch(dispatchKeySet, self, src, non_blocking, out); + } + + // aten::_copy_from.out(Tensor self, Tensor dst, bool non_blocking=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _copy_from_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & dst, bool non_blocking=false) { + return at::_ops::_copy_from_out::redispatch(dispatchKeySet, self, dst, non_blocking, out); + } + + // aten::_copy_from.out(Tensor self, Tensor dst, bool non_blocking=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _copy_from_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & dst, bool non_blocking, at::Tensor & out) { + return at::_ops::_copy_from_out::redispatch(dispatchKeySet, self, dst, non_blocking, out); + } + + // aten::_copy_from_and_resize.out(Tensor self, Tensor dst, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _copy_from_and_resize_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & dst) { + return at::_ops::_copy_from_and_resize_out::redispatch(dispatchKeySet, self, dst, out); + } + + // aten::_copy_from_and_resize.out(Tensor self, Tensor dst, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _copy_from_and_resize_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & dst, at::Tensor & out) { + return at::_ops::_copy_from_and_resize_out::redispatch(dispatchKeySet, self, dst, out); + } + + // aten::count_nonzero.dim_IntList_out(Tensor self, int[] dim, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & count_nonzero_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef dim) { + return at::_ops::count_nonzero_dim_IntList_out::redispatch(dispatchKeySet, self, dim, out); + } + + // aten::count_nonzero.dim_IntList_out(Tensor self, int[] dim, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & count_nonzero_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef dim, at::Tensor & out) { + return at::_ops::count_nonzero_dim_IntList_out::redispatch(dispatchKeySet, self, dim, out); + } + + // aten::count_nonzero.out(Tensor self, int? dim=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & count_nonzero_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::optional dim=c10::nullopt) { + return at::_ops::count_nonzero_out::redispatch(dispatchKeySet, self, dim, out); + } + + // aten::count_nonzero.out(Tensor self, int? dim=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & count_nonzero_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional dim, at::Tensor & out) { + return at::_ops::count_nonzero_out::redispatch(dispatchKeySet, self, dim, out); + } + + // aten::cudnn_affine_grid_generator.out(Tensor theta, int N, int C, int H, int W, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & cudnn_affine_grid_generator_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & theta, int64_t N, int64_t C, int64_t H, int64_t W) { + return at::_ops::cudnn_affine_grid_generator_out::redispatch(dispatchKeySet, theta, N, C, H, W, out); + } + + // aten::cudnn_affine_grid_generator.out(Tensor theta, int N, int C, int H, int W, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & cudnn_affine_grid_generator_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & theta, int64_t N, int64_t C, int64_t H, int64_t W, at::Tensor & out) { + return at::_ops::cudnn_affine_grid_generator_out::redispatch(dispatchKeySet, theta, N, C, H, W, out); + } + + // aten::cudnn_affine_grid_generator_backward.out(Tensor grad, int N, int C, int H, int W, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & cudnn_affine_grid_generator_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & grad, int64_t N, int64_t C, int64_t H, int64_t W) { + return at::_ops::cudnn_affine_grid_generator_backward_out::redispatch(dispatchKeySet, grad, N, C, H, W, out); + } + + // aten::cudnn_affine_grid_generator_backward.out(Tensor grad, int N, int C, int H, int W, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & cudnn_affine_grid_generator_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad, int64_t N, int64_t C, int64_t H, int64_t W, at::Tensor & out) { + return at::_ops::cudnn_affine_grid_generator_backward_out::redispatch(dispatchKeySet, grad, N, C, H, W, out); + } + + // aten::cudnn_batch_norm.out(Tensor input, Tensor weight, Tensor? bias, Tensor? running_mean, Tensor? running_var, bool training, float exponential_average_factor, float epsilon, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2, Tensor(d!) out3) -> (Tensor(a!), Tensor(b!), Tensor(c!), Tensor(d!)) + inline ::std::tuple cudnn_batch_norm_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, at::Tensor & out3, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias, const c10::optional & running_mean, const c10::optional & running_var, bool training, double exponential_average_factor, double epsilon) { + return at::_ops::cudnn_batch_norm_out::redispatch(dispatchKeySet, input, weight, bias, running_mean, running_var, training, exponential_average_factor, epsilon, out0, out1, out2, out3); + } + + // aten::cudnn_batch_norm.out(Tensor input, Tensor weight, Tensor? bias, Tensor? running_mean, Tensor? running_var, bool training, float exponential_average_factor, float epsilon, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2, Tensor(d!) out3) -> (Tensor(a!), Tensor(b!), Tensor(c!), Tensor(d!)) + inline ::std::tuple cudnn_batch_norm_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias, const c10::optional & running_mean, const c10::optional & running_var, bool training, double exponential_average_factor, double epsilon, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, at::Tensor & out3) { + return at::_ops::cudnn_batch_norm_out::redispatch(dispatchKeySet, input, weight, bias, running_mean, running_var, training, exponential_average_factor, epsilon, out0, out1, out2, out3); + } + + // aten::cudnn_batch_norm_backward.out(Tensor input, Tensor grad_output, Tensor weight, Tensor? running_mean, Tensor? running_var, Tensor? save_mean, Tensor? save_var, float epsilon, Tensor reserveSpace, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple cudnn_batch_norm_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, const at::Tensor & input, const at::Tensor & grad_output, const at::Tensor & weight, const c10::optional & running_mean, const c10::optional & running_var, const c10::optional & save_mean, const c10::optional & save_var, double epsilon, const at::Tensor & reserveSpace) { + return at::_ops::cudnn_batch_norm_backward_out::redispatch(dispatchKeySet, input, grad_output, weight, running_mean, running_var, save_mean, save_var, epsilon, reserveSpace, out0, out1, out2); + } + + // aten::cudnn_batch_norm_backward.out(Tensor input, Tensor grad_output, Tensor weight, Tensor? running_mean, Tensor? running_var, Tensor? save_mean, Tensor? save_var, float epsilon, Tensor reserveSpace, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple cudnn_batch_norm_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & grad_output, const at::Tensor & weight, const c10::optional & running_mean, const c10::optional & running_var, const c10::optional & save_mean, const c10::optional & save_var, double epsilon, const at::Tensor & reserveSpace, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2) { + return at::_ops::cudnn_batch_norm_backward_out::redispatch(dispatchKeySet, input, grad_output, weight, running_mean, running_var, save_mean, save_var, epsilon, reserveSpace, out0, out1, out2); + } + + // aten::cudnn_convolution_transpose.out(Tensor self, Tensor weight, SymInt[] padding, SymInt[] output_padding, SymInt[] stride, SymInt[] dilation, SymInt groups, bool benchmark, bool deterministic, bool allow_tf32, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & cudnn_convolution_transpose_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & weight, at::IntArrayRef padding, at::IntArrayRef output_padding, at::IntArrayRef stride, at::IntArrayRef dilation, int64_t groups, bool benchmark, bool deterministic, bool allow_tf32) { + return at::_ops::cudnn_convolution_transpose_out::redispatch(dispatchKeySet, self, weight, c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(output_padding), c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(dilation), groups, benchmark, deterministic, allow_tf32, out); + } + + // aten::cudnn_convolution_transpose.out(Tensor self, Tensor weight, SymInt[] padding, SymInt[] output_padding, SymInt[] stride, SymInt[] dilation, SymInt groups, bool benchmark, bool deterministic, bool allow_tf32, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & cudnn_convolution_transpose_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, at::IntArrayRef padding, at::IntArrayRef output_padding, at::IntArrayRef stride, at::IntArrayRef dilation, int64_t groups, bool benchmark, bool deterministic, bool allow_tf32, at::Tensor & out) { + return at::_ops::cudnn_convolution_transpose_out::redispatch(dispatchKeySet, self, weight, c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(output_padding), c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(dilation), groups, benchmark, deterministic, allow_tf32, out); + } + + // aten::cudnn_convolution_transpose.out(Tensor self, Tensor weight, SymInt[] padding, SymInt[] output_padding, SymInt[] stride, SymInt[] dilation, SymInt groups, bool benchmark, bool deterministic, bool allow_tf32, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & cudnn_convolution_transpose_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & weight, c10::SymIntArrayRef padding, c10::SymIntArrayRef output_padding, c10::SymIntArrayRef stride, c10::SymIntArrayRef dilation, c10::SymInt groups, bool benchmark, bool deterministic, bool allow_tf32) { + return at::_ops::cudnn_convolution_transpose_out::redispatch(dispatchKeySet, self, weight, padding, output_padding, stride, dilation, groups, benchmark, deterministic, allow_tf32, out); + } + + // aten::cudnn_convolution_transpose.out(Tensor self, Tensor weight, SymInt[] padding, SymInt[] output_padding, SymInt[] stride, SymInt[] dilation, SymInt groups, bool benchmark, bool deterministic, bool allow_tf32, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & cudnn_convolution_transpose_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, c10::SymIntArrayRef padding, c10::SymIntArrayRef output_padding, c10::SymIntArrayRef stride, c10::SymIntArrayRef dilation, c10::SymInt groups, bool benchmark, bool deterministic, bool allow_tf32, at::Tensor & out) { + return at::_ops::cudnn_convolution_transpose_out::redispatch(dispatchKeySet, self, weight, padding, output_padding, stride, dilation, groups, benchmark, deterministic, allow_tf32, out); + } + + // aten::_mps_convolution_transpose.out(Tensor self, Tensor weight, SymInt[] padding, SymInt[] output_padding, SymInt[] stride, SymInt[] dilation, SymInt groups, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _mps_convolution_transpose_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & weight, at::IntArrayRef padding, at::IntArrayRef output_padding, at::IntArrayRef stride, at::IntArrayRef dilation, int64_t groups) { + return at::_ops::_mps_convolution_transpose_out::redispatch(dispatchKeySet, self, weight, c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(output_padding), c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(dilation), groups, out); + } + + // aten::_mps_convolution_transpose.out(Tensor self, Tensor weight, SymInt[] padding, SymInt[] output_padding, SymInt[] stride, SymInt[] dilation, SymInt groups, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _mps_convolution_transpose_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, at::IntArrayRef padding, at::IntArrayRef output_padding, at::IntArrayRef stride, at::IntArrayRef dilation, int64_t groups, at::Tensor & out) { + return at::_ops::_mps_convolution_transpose_out::redispatch(dispatchKeySet, self, weight, c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(output_padding), c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(dilation), groups, out); + } + + // aten::_mps_convolution_transpose.out(Tensor self, Tensor weight, SymInt[] padding, SymInt[] output_padding, SymInt[] stride, SymInt[] dilation, SymInt groups, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _mps_convolution_transpose_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & weight, c10::SymIntArrayRef padding, c10::SymIntArrayRef output_padding, c10::SymIntArrayRef stride, c10::SymIntArrayRef dilation, c10::SymInt groups) { + return at::_ops::_mps_convolution_transpose_out::redispatch(dispatchKeySet, self, weight, padding, output_padding, stride, dilation, groups, out); + } + + // aten::_mps_convolution_transpose.out(Tensor self, Tensor weight, SymInt[] padding, SymInt[] output_padding, SymInt[] stride, SymInt[] dilation, SymInt groups, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _mps_convolution_transpose_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, c10::SymIntArrayRef padding, c10::SymIntArrayRef output_padding, c10::SymIntArrayRef stride, c10::SymIntArrayRef dilation, c10::SymInt groups, at::Tensor & out) { + return at::_ops::_mps_convolution_transpose_out::redispatch(dispatchKeySet, self, weight, padding, output_padding, stride, dilation, groups, out); + } + + // aten::mps_convolution_transpose_backward.out(Tensor self, Tensor grad_output, Tensor weight, SymInt[] padding, SymInt[] output_padding, SymInt[] stride, SymInt[] dilation, SymInt groups, bool[2] output_mask, *, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple mps_convolution_transpose_backward_out(c10::DispatchKeySet dispatchKeySet, 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) { + return at::_ops::mps_convolution_transpose_backward_out::redispatch(dispatchKeySet, self, grad_output, weight, c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(output_padding), c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(dilation), groups, output_mask, out0, out1); + } + + // aten::mps_convolution_transpose_backward.out(Tensor self, Tensor grad_output, Tensor weight, SymInt[] padding, SymInt[] output_padding, SymInt[] stride, SymInt[] dilation, SymInt groups, bool[2] output_mask, *, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple mps_convolution_transpose_backward_outf(c10::DispatchKeySet dispatchKeySet, 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) { + return at::_ops::mps_convolution_transpose_backward_out::redispatch(dispatchKeySet, self, grad_output, weight, c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(output_padding), c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(dilation), groups, output_mask, out0, out1); + } + + // aten::mps_convolution_transpose_backward.out(Tensor self, Tensor grad_output, Tensor weight, SymInt[] padding, SymInt[] output_padding, SymInt[] stride, SymInt[] dilation, SymInt groups, bool[2] output_mask, *, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple mps_convolution_transpose_backward_symint_out(c10::DispatchKeySet dispatchKeySet, 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) { + return at::_ops::mps_convolution_transpose_backward_out::redispatch(dispatchKeySet, self, grad_output, weight, padding, output_padding, stride, dilation, groups, output_mask, out0, out1); + } + + // aten::mps_convolution_transpose_backward.out(Tensor self, Tensor grad_output, Tensor weight, SymInt[] padding, SymInt[] output_padding, SymInt[] stride, SymInt[] dilation, SymInt groups, bool[2] output_mask, *, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple mps_convolution_transpose_backward_symint_outf(c10::DispatchKeySet dispatchKeySet, 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) { + return at::_ops::mps_convolution_transpose_backward_out::redispatch(dispatchKeySet, self, grad_output, weight, padding, output_padding, stride, dilation, groups, output_mask, out0, out1); + } + + // aten::cudnn_convolution_relu.out(Tensor self, Tensor weight, Tensor? bias, SymInt[] stride, SymInt[] padding, SymInt[] dilation, SymInt groups, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & cudnn_convolution_relu_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & weight, const c10::optional & bias, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, int64_t groups) { + return at::_ops::cudnn_convolution_relu_out::redispatch(dispatchKeySet, self, weight, bias, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(dilation), groups, out); + } + + // aten::cudnn_convolution_relu.out(Tensor self, Tensor weight, Tensor? bias, SymInt[] stride, SymInt[] padding, SymInt[] dilation, SymInt groups, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & cudnn_convolution_relu_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, const c10::optional & bias, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, int64_t groups, at::Tensor & out) { + return at::_ops::cudnn_convolution_relu_out::redispatch(dispatchKeySet, self, weight, bias, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(dilation), groups, out); + } + + // aten::cudnn_convolution_relu.out(Tensor self, Tensor weight, Tensor? bias, SymInt[] stride, SymInt[] padding, SymInt[] dilation, SymInt groups, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & cudnn_convolution_relu_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & weight, const c10::optional & bias, c10::SymIntArrayRef stride, c10::SymIntArrayRef padding, c10::SymIntArrayRef dilation, c10::SymInt groups) { + return at::_ops::cudnn_convolution_relu_out::redispatch(dispatchKeySet, self, weight, bias, stride, padding, dilation, groups, out); + } + + // aten::cudnn_convolution_relu.out(Tensor self, Tensor weight, Tensor? bias, SymInt[] stride, SymInt[] padding, SymInt[] dilation, SymInt groups, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & cudnn_convolution_relu_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, const c10::optional & bias, c10::SymIntArrayRef stride, c10::SymIntArrayRef padding, c10::SymIntArrayRef dilation, c10::SymInt groups, at::Tensor & out) { + return at::_ops::cudnn_convolution_relu_out::redispatch(dispatchKeySet, self, weight, bias, stride, padding, dilation, groups, out); + } + + // aten::cudnn_convolution_add_relu.out(Tensor self, Tensor weight, Tensor z, Scalar? alpha, Tensor? bias, SymInt[] stride, SymInt[] padding, SymInt[] dilation, SymInt groups, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & cudnn_convolution_add_relu_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & weight, const at::Tensor & z, const c10::optional & alpha, const c10::optional & bias, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, int64_t groups) { + return at::_ops::cudnn_convolution_add_relu_out::redispatch(dispatchKeySet, self, weight, z, alpha, bias, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(dilation), groups, out); + } + + // aten::cudnn_convolution_add_relu.out(Tensor self, Tensor weight, Tensor z, Scalar? alpha, Tensor? bias, SymInt[] stride, SymInt[] padding, SymInt[] dilation, SymInt groups, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & cudnn_convolution_add_relu_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, const at::Tensor & z, const c10::optional & alpha, const c10::optional & bias, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, int64_t groups, at::Tensor & out) { + return at::_ops::cudnn_convolution_add_relu_out::redispatch(dispatchKeySet, self, weight, z, alpha, bias, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(dilation), groups, out); + } + + // aten::cudnn_convolution_add_relu.out(Tensor self, Tensor weight, Tensor z, Scalar? alpha, Tensor? bias, SymInt[] stride, SymInt[] padding, SymInt[] dilation, SymInt groups, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & cudnn_convolution_add_relu_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & weight, const at::Tensor & z, const c10::optional & alpha, const c10::optional & bias, c10::SymIntArrayRef stride, c10::SymIntArrayRef padding, c10::SymIntArrayRef dilation, c10::SymInt groups) { + return at::_ops::cudnn_convolution_add_relu_out::redispatch(dispatchKeySet, self, weight, z, alpha, bias, stride, padding, dilation, groups, out); + } + + // aten::cudnn_convolution_add_relu.out(Tensor self, Tensor weight, Tensor z, Scalar? alpha, Tensor? bias, SymInt[] stride, SymInt[] padding, SymInt[] dilation, SymInt groups, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & cudnn_convolution_add_relu_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, const at::Tensor & z, const c10::optional & alpha, const c10::optional & bias, c10::SymIntArrayRef stride, c10::SymIntArrayRef padding, c10::SymIntArrayRef dilation, c10::SymInt groups, at::Tensor & out) { + return at::_ops::cudnn_convolution_add_relu_out::redispatch(dispatchKeySet, self, weight, z, alpha, bias, stride, padding, dilation, groups, out); + } + + // aten::cudnn_grid_sampler.out(Tensor self, Tensor grid, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & cudnn_grid_sampler_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & grid) { + return at::_ops::cudnn_grid_sampler_out::redispatch(dispatchKeySet, self, grid, out); + } + + // aten::cudnn_grid_sampler.out(Tensor self, Tensor grid, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & cudnn_grid_sampler_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & grid, at::Tensor & out) { + return at::_ops::cudnn_grid_sampler_out::redispatch(dispatchKeySet, self, grid, out); + } + + // aten::cudnn_grid_sampler_backward.out(Tensor self, Tensor grid, Tensor grad_output, *, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple cudnn_grid_sampler_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, const at::Tensor & self, const at::Tensor & grid, const at::Tensor & grad_output) { + return at::_ops::cudnn_grid_sampler_backward_out::redispatch(dispatchKeySet, self, grid, grad_output, out0, out1); + } + + // aten::cudnn_grid_sampler_backward.out(Tensor self, Tensor grid, Tensor grad_output, *, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple cudnn_grid_sampler_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & grid, const at::Tensor & grad_output, at::Tensor & out0, at::Tensor & out1) { + return at::_ops::cudnn_grid_sampler_backward_out::redispatch(dispatchKeySet, self, grid, grad_output, out0, out1); + } + + // aten::_ctc_loss.out(Tensor log_probs, Tensor targets, int[] input_lengths, int[] target_lengths, int blank=0, bool zero_infinity=False, *, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple _ctc_loss_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, const at::Tensor & log_probs, const at::Tensor & targets, at::IntArrayRef input_lengths, at::IntArrayRef target_lengths, int64_t blank=0, bool zero_infinity=false) { + return at::_ops::_ctc_loss_out::redispatch(dispatchKeySet, log_probs, targets, input_lengths, target_lengths, blank, zero_infinity, out0, out1); + } + + // aten::_ctc_loss.out(Tensor log_probs, Tensor targets, int[] input_lengths, int[] target_lengths, int blank=0, bool zero_infinity=False, *, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple _ctc_loss_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & log_probs, const at::Tensor & targets, at::IntArrayRef input_lengths, at::IntArrayRef target_lengths, int64_t blank, bool zero_infinity, at::Tensor & out0, at::Tensor & out1) { + return at::_ops::_ctc_loss_out::redispatch(dispatchKeySet, log_probs, targets, input_lengths, target_lengths, blank, zero_infinity, out0, out1); + } + + // aten::_ctc_loss.Tensor_out(Tensor log_probs, Tensor targets, Tensor input_lengths, Tensor target_lengths, int blank=0, bool zero_infinity=False, *, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple _ctc_loss_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, const at::Tensor & log_probs, const at::Tensor & targets, const at::Tensor & input_lengths, const at::Tensor & target_lengths, int64_t blank=0, bool zero_infinity=false) { + return at::_ops::_ctc_loss_Tensor_out::redispatch(dispatchKeySet, log_probs, targets, input_lengths, target_lengths, blank, zero_infinity, out0, out1); + } + + // aten::_ctc_loss.Tensor_out(Tensor log_probs, Tensor targets, Tensor input_lengths, Tensor target_lengths, int blank=0, bool zero_infinity=False, *, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple _ctc_loss_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & log_probs, const at::Tensor & targets, const at::Tensor & input_lengths, const at::Tensor & target_lengths, int64_t blank, bool zero_infinity, at::Tensor & out0, at::Tensor & out1) { + return at::_ops::_ctc_loss_Tensor_out::redispatch(dispatchKeySet, log_probs, targets, input_lengths, target_lengths, blank, zero_infinity, out0, out1); + } + + // aten::_ctc_loss_backward.out(Tensor grad, Tensor log_probs, Tensor targets, int[] input_lengths, int[] target_lengths, Tensor neg_log_likelihood, Tensor log_alpha, int blank, bool zero_infinity=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _ctc_loss_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & grad, const at::Tensor & log_probs, const at::Tensor & targets, at::IntArrayRef input_lengths, at::IntArrayRef target_lengths, const at::Tensor & neg_log_likelihood, const at::Tensor & log_alpha, int64_t blank, bool zero_infinity=false) { + return at::_ops::_ctc_loss_backward_out::redispatch(dispatchKeySet, grad, log_probs, targets, input_lengths, target_lengths, neg_log_likelihood, log_alpha, blank, zero_infinity, out); + } + + // aten::_ctc_loss_backward.out(Tensor grad, Tensor log_probs, Tensor targets, int[] input_lengths, int[] target_lengths, Tensor neg_log_likelihood, Tensor log_alpha, int blank, bool zero_infinity=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _ctc_loss_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad, const at::Tensor & log_probs, const at::Tensor & targets, at::IntArrayRef input_lengths, at::IntArrayRef target_lengths, const at::Tensor & neg_log_likelihood, const at::Tensor & log_alpha, int64_t blank, bool zero_infinity, at::Tensor & out) { + return at::_ops::_ctc_loss_backward_out::redispatch(dispatchKeySet, grad, log_probs, targets, input_lengths, target_lengths, neg_log_likelihood, log_alpha, blank, zero_infinity, out); + } + + // aten::diag_embed.out(Tensor self, int offset=0, int dim1=-2, int dim2=-1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & diag_embed_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t offset=0, int64_t dim1=-2, int64_t dim2=-1) { + return at::_ops::diag_embed_out::redispatch(dispatchKeySet, self, offset, dim1, dim2, out); + } + + // aten::diag_embed.out(Tensor self, int offset=0, int dim1=-2, int dim2=-1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & diag_embed_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t offset, int64_t dim1, int64_t dim2, at::Tensor & out) { + return at::_ops::diag_embed_out::redispatch(dispatchKeySet, self, offset, dim1, dim2, out); + } + + // aten::diagonal_backward.out(Tensor grad_output, SymInt[] input_sizes, int offset, int dim1, int dim2, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & diagonal_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & grad_output, at::IntArrayRef input_sizes, int64_t offset, int64_t dim1, int64_t dim2) { + return at::_ops::diagonal_backward_out::redispatch(dispatchKeySet, grad_output, c10::fromIntArrayRefSlow(input_sizes), offset, dim1, dim2, out); + } + + // aten::diagonal_backward.out(Tensor grad_output, SymInt[] input_sizes, int offset, int dim1, int dim2, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & diagonal_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, at::IntArrayRef input_sizes, int64_t offset, int64_t dim1, int64_t dim2, at::Tensor & out) { + return at::_ops::diagonal_backward_out::redispatch(dispatchKeySet, grad_output, c10::fromIntArrayRefSlow(input_sizes), offset, dim1, dim2, out); + } + + // aten::diagonal_backward.out(Tensor grad_output, SymInt[] input_sizes, int offset, int dim1, int dim2, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & diagonal_backward_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & grad_output, c10::SymIntArrayRef input_sizes, int64_t offset, int64_t dim1, int64_t dim2) { + return at::_ops::diagonal_backward_out::redispatch(dispatchKeySet, grad_output, input_sizes, offset, dim1, dim2, out); + } + + // aten::diagonal_backward.out(Tensor grad_output, SymInt[] input_sizes, int offset, int dim1, int dim2, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & diagonal_backward_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, c10::SymIntArrayRef input_sizes, int64_t offset, int64_t dim1, int64_t dim2, at::Tensor & out) { + return at::_ops::diagonal_backward_out::redispatch(dispatchKeySet, grad_output, input_sizes, offset, dim1, dim2, out); + } + + // aten::div.Scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & div_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::div_Scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::div.Scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & div_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other, at::Tensor & out) { + return at::_ops::div_Scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::div.Scalar_mode_out(Tensor self, Scalar other, *, str? rounding_mode, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & div_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Scalar & other, c10::optional rounding_mode) { + return at::_ops::div_Scalar_mode_out::redispatch(dispatchKeySet, self, other, rounding_mode, out); + } + + // aten::div.Scalar_mode_out(Tensor self, Scalar other, *, str? rounding_mode, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & div_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other, c10::optional rounding_mode, at::Tensor & out) { + return at::_ops::div_Scalar_mode_out::redispatch(dispatchKeySet, self, other, rounding_mode, out); + } + + // aten::embedding.out(Tensor weight, Tensor indices, SymInt padding_idx=-1, bool scale_grad_by_freq=False, bool sparse=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & embedding_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & weight, const at::Tensor & indices, int64_t padding_idx=-1, bool scale_grad_by_freq=false, bool sparse=false) { + return at::_ops::embedding_out::redispatch(dispatchKeySet, weight, indices, padding_idx, scale_grad_by_freq, sparse, out); + } + + // aten::embedding.out(Tensor weight, Tensor indices, SymInt padding_idx=-1, bool scale_grad_by_freq=False, bool sparse=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & embedding_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & weight, const at::Tensor & indices, int64_t padding_idx, bool scale_grad_by_freq, bool sparse, at::Tensor & out) { + return at::_ops::embedding_out::redispatch(dispatchKeySet, weight, indices, padding_idx, scale_grad_by_freq, sparse, out); + } + + // aten::embedding.out(Tensor weight, Tensor indices, SymInt padding_idx=-1, bool scale_grad_by_freq=False, bool sparse=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & embedding_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & weight, const at::Tensor & indices, c10::SymInt padding_idx=-1, bool scale_grad_by_freq=false, bool sparse=false) { + return at::_ops::embedding_out::redispatch(dispatchKeySet, weight, indices, padding_idx, scale_grad_by_freq, sparse, out); + } + + // aten::embedding.out(Tensor weight, Tensor indices, SymInt padding_idx=-1, bool scale_grad_by_freq=False, bool sparse=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & embedding_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & weight, const at::Tensor & indices, c10::SymInt padding_idx, bool scale_grad_by_freq, bool sparse, at::Tensor & out) { + return at::_ops::embedding_out::redispatch(dispatchKeySet, weight, indices, padding_idx, scale_grad_by_freq, sparse, out); + } + + // aten::embedding_dense_backward.out(Tensor grad_output, Tensor indices, SymInt num_weights, SymInt padding_idx, bool scale_grad_by_freq, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & embedding_dense_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & grad_output, const at::Tensor & indices, int64_t num_weights, int64_t padding_idx, bool scale_grad_by_freq) { + return at::_ops::embedding_dense_backward_out::redispatch(dispatchKeySet, grad_output, indices, num_weights, padding_idx, scale_grad_by_freq, out); + } + + // aten::embedding_dense_backward.out(Tensor grad_output, Tensor indices, SymInt num_weights, SymInt padding_idx, bool scale_grad_by_freq, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & embedding_dense_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & indices, int64_t num_weights, int64_t padding_idx, bool scale_grad_by_freq, at::Tensor & out) { + return at::_ops::embedding_dense_backward_out::redispatch(dispatchKeySet, grad_output, indices, num_weights, padding_idx, scale_grad_by_freq, out); + } + + // aten::embedding_dense_backward.out(Tensor grad_output, Tensor indices, SymInt num_weights, SymInt padding_idx, bool scale_grad_by_freq, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & embedding_dense_backward_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & grad_output, const at::Tensor & indices, c10::SymInt num_weights, c10::SymInt padding_idx, bool scale_grad_by_freq) { + return at::_ops::embedding_dense_backward_out::redispatch(dispatchKeySet, grad_output, indices, num_weights, padding_idx, scale_grad_by_freq, out); + } + + // aten::embedding_dense_backward.out(Tensor grad_output, Tensor indices, SymInt num_weights, SymInt padding_idx, bool scale_grad_by_freq, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & embedding_dense_backward_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & indices, c10::SymInt num_weights, c10::SymInt padding_idx, bool scale_grad_by_freq, at::Tensor & out) { + return at::_ops::embedding_dense_backward_out::redispatch(dispatchKeySet, grad_output, indices, num_weights, padding_idx, scale_grad_by_freq, out); + } + + // aten::embedding_renorm.out(Tensor self, Tensor indices, float max_norm, float norm_type, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & embedding_renorm_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & indices, double max_norm, double norm_type) { + return at::_ops::embedding_renorm_out::redispatch(dispatchKeySet, self, indices, max_norm, norm_type, out); + } + + // aten::embedding_renorm.out(Tensor self, Tensor indices, float max_norm, float norm_type, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & embedding_renorm_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & indices, double max_norm, double norm_type, at::Tensor & out) { + return at::_ops::embedding_renorm_out::redispatch(dispatchKeySet, self, indices, max_norm, norm_type, out); + } + + // aten::embedding_renorm(Tensor self, Tensor indices, float max_norm, float norm_type) -> Tensor + inline at::Tensor embedding_renorm(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & indices, double max_norm, double norm_type) { + return at::_ops::embedding_renorm::redispatch(dispatchKeySet, self, indices, max_norm, norm_type); + } + + // aten::_embedding_bag_forward_only.out(Tensor weight, Tensor indices, Tensor offsets, bool scale_grad_by_freq=False, int mode=0, bool sparse=False, Tensor? per_sample_weights=None, bool include_last_offset=False, int padding_idx=-1, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2, Tensor(d!) out3) -> (Tensor(a!), Tensor(b!), Tensor(c!), Tensor(d!)) + inline ::std::tuple _embedding_bag_forward_only_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, at::Tensor & out3, const at::Tensor & weight, const at::Tensor & indices, const at::Tensor & offsets, bool scale_grad_by_freq=false, int64_t mode=0, bool sparse=false, const c10::optional & per_sample_weights={}, bool include_last_offset=false, int64_t padding_idx=-1) { + return at::_ops::_embedding_bag_forward_only_out::redispatch(dispatchKeySet, weight, indices, offsets, scale_grad_by_freq, mode, sparse, per_sample_weights, include_last_offset, padding_idx, out0, out1, out2, out3); + } + + // aten::_embedding_bag_forward_only.out(Tensor weight, Tensor indices, Tensor offsets, bool scale_grad_by_freq=False, int mode=0, bool sparse=False, Tensor? per_sample_weights=None, bool include_last_offset=False, int padding_idx=-1, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2, Tensor(d!) out3) -> (Tensor(a!), Tensor(b!), Tensor(c!), Tensor(d!)) + inline ::std::tuple _embedding_bag_forward_only_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & weight, const at::Tensor & indices, const at::Tensor & offsets, bool scale_grad_by_freq, int64_t mode, bool sparse, const c10::optional & per_sample_weights, bool include_last_offset, int64_t padding_idx, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, at::Tensor & out3) { + return at::_ops::_embedding_bag_forward_only_out::redispatch(dispatchKeySet, weight, indices, offsets, scale_grad_by_freq, mode, sparse, per_sample_weights, include_last_offset, padding_idx, out0, out1, out2, out3); + } + + // aten::_embedding_bag.out(Tensor weight, Tensor indices, Tensor offsets, bool scale_grad_by_freq=False, int mode=0, bool sparse=False, Tensor? per_sample_weights=None, bool include_last_offset=False, int padding_idx=-1, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2, Tensor(d!) out3) -> (Tensor(a!), Tensor(b!), Tensor(c!), Tensor(d!)) + inline ::std::tuple _embedding_bag_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, at::Tensor & out3, const at::Tensor & weight, const at::Tensor & indices, const at::Tensor & offsets, bool scale_grad_by_freq=false, int64_t mode=0, bool sparse=false, const c10::optional & per_sample_weights={}, bool include_last_offset=false, int64_t padding_idx=-1) { + return at::_ops::_embedding_bag_out::redispatch(dispatchKeySet, weight, indices, offsets, scale_grad_by_freq, mode, sparse, per_sample_weights, include_last_offset, padding_idx, out0, out1, out2, out3); + } + + // aten::_embedding_bag.out(Tensor weight, Tensor indices, Tensor offsets, bool scale_grad_by_freq=False, int mode=0, bool sparse=False, Tensor? per_sample_weights=None, bool include_last_offset=False, int padding_idx=-1, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2, Tensor(d!) out3) -> (Tensor(a!), Tensor(b!), Tensor(c!), Tensor(d!)) + inline ::std::tuple _embedding_bag_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & weight, const at::Tensor & indices, const at::Tensor & offsets, bool scale_grad_by_freq, int64_t mode, bool sparse, const c10::optional & per_sample_weights, bool include_last_offset, int64_t padding_idx, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, at::Tensor & out3) { + return at::_ops::_embedding_bag_out::redispatch(dispatchKeySet, weight, indices, offsets, scale_grad_by_freq, mode, sparse, per_sample_weights, include_last_offset, padding_idx, out0, out1, out2, out3); + } + + // aten::_embedding_bag_dense_backward.out(Tensor grad, Tensor indices, Tensor offset2bag, Tensor bag_size, Tensor maximum_indices, SymInt num_weights, bool scale_grad_by_freq, int mode, Tensor? per_sample_weights, int padding_idx=-1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _embedding_bag_dense_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & grad, const at::Tensor & indices, const at::Tensor & offset2bag, const at::Tensor & bag_size, const at::Tensor & maximum_indices, int64_t num_weights, bool scale_grad_by_freq, int64_t mode, const c10::optional & per_sample_weights, int64_t padding_idx=-1) { + return at::_ops::_embedding_bag_dense_backward_out::redispatch(dispatchKeySet, grad, indices, offset2bag, bag_size, maximum_indices, num_weights, scale_grad_by_freq, mode, per_sample_weights, padding_idx, out); + } + + // aten::_embedding_bag_dense_backward.out(Tensor grad, Tensor indices, Tensor offset2bag, Tensor bag_size, Tensor maximum_indices, SymInt num_weights, bool scale_grad_by_freq, int mode, Tensor? per_sample_weights, int padding_idx=-1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _embedding_bag_dense_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad, const at::Tensor & indices, const at::Tensor & offset2bag, const at::Tensor & bag_size, const at::Tensor & maximum_indices, int64_t num_weights, bool scale_grad_by_freq, int64_t mode, const c10::optional & per_sample_weights, int64_t padding_idx, at::Tensor & out) { + return at::_ops::_embedding_bag_dense_backward_out::redispatch(dispatchKeySet, grad, indices, offset2bag, bag_size, maximum_indices, num_weights, scale_grad_by_freq, mode, per_sample_weights, padding_idx, out); + } + + // aten::_embedding_bag_dense_backward.out(Tensor grad, Tensor indices, Tensor offset2bag, Tensor bag_size, Tensor maximum_indices, SymInt num_weights, bool scale_grad_by_freq, int mode, Tensor? per_sample_weights, int padding_idx=-1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _embedding_bag_dense_backward_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & grad, const at::Tensor & indices, const at::Tensor & offset2bag, const at::Tensor & bag_size, const at::Tensor & maximum_indices, c10::SymInt num_weights, bool scale_grad_by_freq, int64_t mode, const c10::optional & per_sample_weights, int64_t padding_idx=-1) { + return at::_ops::_embedding_bag_dense_backward_out::redispatch(dispatchKeySet, grad, indices, offset2bag, bag_size, maximum_indices, num_weights, scale_grad_by_freq, mode, per_sample_weights, padding_idx, out); + } + + // aten::_embedding_bag_dense_backward.out(Tensor grad, Tensor indices, Tensor offset2bag, Tensor bag_size, Tensor maximum_indices, SymInt num_weights, bool scale_grad_by_freq, int mode, Tensor? per_sample_weights, int padding_idx=-1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _embedding_bag_dense_backward_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad, const at::Tensor & indices, const at::Tensor & offset2bag, const at::Tensor & bag_size, const at::Tensor & maximum_indices, c10::SymInt num_weights, bool scale_grad_by_freq, int64_t mode, const c10::optional & per_sample_weights, int64_t padding_idx, at::Tensor & out) { + return at::_ops::_embedding_bag_dense_backward_out::redispatch(dispatchKeySet, grad, indices, offset2bag, bag_size, maximum_indices, num_weights, scale_grad_by_freq, mode, per_sample_weights, padding_idx, out); + } + + // aten::_embedding_bag_per_sample_weights_backward.out(Tensor grad, Tensor weight, Tensor indices, Tensor offsets, Tensor offset2bag, int mode, int padding_idx=-1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _embedding_bag_per_sample_weights_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & grad, const at::Tensor & weight, const at::Tensor & indices, const at::Tensor & offsets, const at::Tensor & offset2bag, int64_t mode, int64_t padding_idx=-1) { + return at::_ops::_embedding_bag_per_sample_weights_backward_out::redispatch(dispatchKeySet, grad, weight, indices, offsets, offset2bag, mode, padding_idx, out); + } + + // aten::_embedding_bag_per_sample_weights_backward.out(Tensor grad, Tensor weight, Tensor indices, Tensor offsets, Tensor offset2bag, int mode, int padding_idx=-1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _embedding_bag_per_sample_weights_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad, const at::Tensor & weight, const at::Tensor & indices, const at::Tensor & offsets, const at::Tensor & offset2bag, int64_t mode, int64_t padding_idx, at::Tensor & out) { + return at::_ops::_embedding_bag_per_sample_weights_backward_out::redispatch(dispatchKeySet, grad, weight, indices, offsets, offset2bag, mode, padding_idx, out); + } + + // aten::empty.names_out(int[] size, *, Dimname[]? names, MemoryFormat? memory_format=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & empty_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, at::IntArrayRef size, c10::optional names, c10::optional memory_format=c10::nullopt) { + return at::_ops::empty_names_out::redispatch(dispatchKeySet, size, names, memory_format, out); + } + + // aten::empty.names_out(int[] size, *, Dimname[]? names, MemoryFormat? memory_format=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & empty_outf(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, c10::optional names, c10::optional memory_format, at::Tensor & out) { + return at::_ops::empty_names_out::redispatch(dispatchKeySet, size, names, memory_format, out); + } + + // aten::empty_permuted.out(SymInt[] size, int[] physical_layout, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & empty_permuted_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, at::IntArrayRef size, at::IntArrayRef physical_layout) { + return at::_ops::empty_permuted_out::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), physical_layout, out); + } + + // aten::empty_permuted.out(SymInt[] size, int[] physical_layout, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & empty_permuted_outf(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, at::IntArrayRef physical_layout, at::Tensor & out) { + return at::_ops::empty_permuted_out::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), physical_layout, out); + } + + // aten::empty_permuted.out(SymInt[] size, int[] physical_layout, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & empty_permuted_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, c10::SymIntArrayRef size, at::IntArrayRef physical_layout) { + return at::_ops::empty_permuted_out::redispatch(dispatchKeySet, size, physical_layout, out); + } + + // aten::empty_permuted.out(SymInt[] size, int[] physical_layout, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & empty_permuted_symint_outf(c10::DispatchKeySet dispatchKeySet, c10::SymIntArrayRef size, at::IntArrayRef physical_layout, at::Tensor & out) { + return at::_ops::empty_permuted_out::redispatch(dispatchKeySet, size, physical_layout, out); + } + + // aten::new_empty.out(Tensor self, SymInt[] size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & new_empty_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef size) { + return at::_ops::new_empty_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(size), out); + } + + // aten::new_empty.out(Tensor self, SymInt[] size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & new_empty_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef size, at::Tensor & out) { + return at::_ops::new_empty_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(size), out); + } + + // aten::new_empty.out(Tensor self, SymInt[] size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & new_empty_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::SymIntArrayRef size) { + return at::_ops::new_empty_out::redispatch(dispatchKeySet, self, size, out); + } + + // aten::new_empty.out(Tensor self, SymInt[] size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & new_empty_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef size, at::Tensor & out) { + return at::_ops::new_empty_out::redispatch(dispatchKeySet, self, size, out); + } + + // aten::new_empty_strided.out(Tensor self, SymInt[] size, SymInt[] stride, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & new_empty_strided_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef size, at::IntArrayRef stride) { + return at::_ops::new_empty_strided_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(size), c10::fromIntArrayRefSlow(stride), out); + } + + // aten::new_empty_strided.out(Tensor self, SymInt[] size, SymInt[] stride, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & new_empty_strided_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef size, at::IntArrayRef stride, at::Tensor & out) { + return at::_ops::new_empty_strided_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(size), c10::fromIntArrayRefSlow(stride), out); + } + + // aten::new_empty_strided.out(Tensor self, SymInt[] size, SymInt[] stride, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & new_empty_strided_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::SymIntArrayRef size, c10::SymIntArrayRef stride) { + return at::_ops::new_empty_strided_out::redispatch(dispatchKeySet, self, size, stride, out); + } + + // aten::new_empty_strided.out(Tensor self, SymInt[] size, SymInt[] stride, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & new_empty_strided_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef size, c10::SymIntArrayRef stride, at::Tensor & out) { + return at::_ops::new_empty_strided_out::redispatch(dispatchKeySet, self, size, stride, out); + } + + // aten::new_full.out(Tensor self, SymInt[] size, Scalar fill_value, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & new_full_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef size, const at::Scalar & fill_value) { + return at::_ops::new_full_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(size), fill_value, out); + } + + // aten::new_full.out(Tensor self, SymInt[] size, Scalar fill_value, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & new_full_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef size, const at::Scalar & fill_value, at::Tensor & out) { + return at::_ops::new_full_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(size), fill_value, out); + } + + // aten::new_full.out(Tensor self, SymInt[] size, Scalar fill_value, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & new_full_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::SymIntArrayRef size, const at::Scalar & fill_value) { + return at::_ops::new_full_out::redispatch(dispatchKeySet, self, size, fill_value, out); + } + + // aten::new_full.out(Tensor self, SymInt[] size, Scalar fill_value, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & new_full_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef size, const at::Scalar & fill_value, at::Tensor & out) { + return at::_ops::new_full_out::redispatch(dispatchKeySet, self, size, fill_value, out); + } + + // aten::new_zeros.out(Tensor self, SymInt[] size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & new_zeros_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef size) { + return at::_ops::new_zeros_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(size), out); + } + + // aten::new_zeros.out(Tensor self, SymInt[] size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & new_zeros_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef size, at::Tensor & out) { + return at::_ops::new_zeros_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(size), out); + } + + // aten::new_zeros.out(Tensor self, SymInt[] size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & new_zeros_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::SymIntArrayRef size) { + return at::_ops::new_zeros_out::redispatch(dispatchKeySet, self, size, out); + } + + // aten::new_zeros.out(Tensor self, SymInt[] size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & new_zeros_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef size, at::Tensor & out) { + return at::_ops::new_zeros_out::redispatch(dispatchKeySet, self, size, out); + } + + // aten::new_ones.out(Tensor self, SymInt[] size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & new_ones_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef size) { + return at::_ops::new_ones_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(size), out); + } + + // aten::new_ones.out(Tensor self, SymInt[] size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & new_ones_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef size, at::Tensor & out) { + return at::_ops::new_ones_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(size), out); + } + + // aten::new_ones.out(Tensor self, SymInt[] size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & new_ones_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::SymIntArrayRef size) { + return at::_ops::new_ones_out::redispatch(dispatchKeySet, self, size, out); + } + + // aten::new_ones.out(Tensor self, SymInt[] size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & new_ones_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef size, at::Tensor & out) { + return at::_ops::new_ones_out::redispatch(dispatchKeySet, self, size, out); + } + + // aten::_empty_affine_quantized.out(SymInt[] size, *, float scale=1, int zero_point=0, MemoryFormat? memory_format=contiguous_format, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _empty_affine_quantized_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, at::IntArrayRef size, double scale=1, int64_t zero_point=0, c10::optional memory_format=MemoryFormat::Contiguous) { + return at::_ops::_empty_affine_quantized_out::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), scale, zero_point, memory_format, out); + } + + // aten::_empty_affine_quantized.out(SymInt[] size, *, float scale=1, int zero_point=0, MemoryFormat? memory_format=contiguous_format, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _empty_affine_quantized_outf(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, double scale, int64_t zero_point, c10::optional memory_format, at::Tensor & out) { + return at::_ops::_empty_affine_quantized_out::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), scale, zero_point, memory_format, out); + } + + // aten::_empty_affine_quantized.out(SymInt[] size, *, float scale=1, int zero_point=0, MemoryFormat? memory_format=contiguous_format, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _empty_affine_quantized_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, c10::SymIntArrayRef size, double scale=1, int64_t zero_point=0, c10::optional memory_format=MemoryFormat::Contiguous) { + return at::_ops::_empty_affine_quantized_out::redispatch(dispatchKeySet, size, scale, zero_point, memory_format, out); + } + + // aten::_empty_affine_quantized.out(SymInt[] size, *, float scale=1, int zero_point=0, MemoryFormat? memory_format=contiguous_format, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _empty_affine_quantized_symint_outf(c10::DispatchKeySet dispatchKeySet, c10::SymIntArrayRef size, double scale, int64_t zero_point, c10::optional memory_format, at::Tensor & out) { + return at::_ops::_empty_affine_quantized_out::redispatch(dispatchKeySet, size, scale, zero_point, memory_format, out); + } + + // aten::_empty_per_channel_affine_quantized.out(SymInt[] size, *, Tensor scales, Tensor zero_points, int axis, MemoryFormat? memory_format=contiguous_format, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _empty_per_channel_affine_quantized_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, at::IntArrayRef size, const at::Tensor & scales, const at::Tensor & zero_points, int64_t axis, c10::optional memory_format=MemoryFormat::Contiguous) { + return at::_ops::_empty_per_channel_affine_quantized_out::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), scales, zero_points, axis, memory_format, out); + } + + // aten::_empty_per_channel_affine_quantized.out(SymInt[] size, *, Tensor scales, Tensor zero_points, int axis, MemoryFormat? memory_format=contiguous_format, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _empty_per_channel_affine_quantized_outf(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, const at::Tensor & scales, const at::Tensor & zero_points, int64_t axis, c10::optional memory_format, at::Tensor & out) { + return at::_ops::_empty_per_channel_affine_quantized_out::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), scales, zero_points, axis, memory_format, out); + } + + // aten::_empty_per_channel_affine_quantized.out(SymInt[] size, *, Tensor scales, Tensor zero_points, int axis, MemoryFormat? memory_format=contiguous_format, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _empty_per_channel_affine_quantized_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, c10::SymIntArrayRef size, const at::Tensor & scales, const at::Tensor & zero_points, int64_t axis, c10::optional memory_format=MemoryFormat::Contiguous) { + return at::_ops::_empty_per_channel_affine_quantized_out::redispatch(dispatchKeySet, size, scales, zero_points, axis, memory_format, out); + } + + // aten::_empty_per_channel_affine_quantized.out(SymInt[] size, *, Tensor scales, Tensor zero_points, int axis, MemoryFormat? memory_format=contiguous_format, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _empty_per_channel_affine_quantized_symint_outf(c10::DispatchKeySet dispatchKeySet, c10::SymIntArrayRef size, const at::Tensor & scales, const at::Tensor & zero_points, int64_t axis, c10::optional memory_format, at::Tensor & out) { + return at::_ops::_empty_per_channel_affine_quantized_out::redispatch(dispatchKeySet, size, scales, zero_points, axis, memory_format, out); + } + + // aten::resize.out(Tensor self, SymInt[] size, *, MemoryFormat? memory_format=None, Tensor(a!) out) -> Tensor(a!) + inline const at::Tensor & resize_out(c10::DispatchKeySet dispatchKeySet, const at::Tensor & out, const at::Tensor & self, at::IntArrayRef size, c10::optional memory_format=c10::nullopt) { + return at::_ops::resize_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(size), memory_format, out); + } + + // aten::resize.out(Tensor self, SymInt[] size, *, MemoryFormat? memory_format=None, Tensor(a!) out) -> Tensor(a!) + inline const at::Tensor & resize_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef size, c10::optional memory_format, const at::Tensor & out) { + return at::_ops::resize_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(size), memory_format, out); + } + + // aten::resize.out(Tensor self, SymInt[] size, *, MemoryFormat? memory_format=None, Tensor(a!) out) -> Tensor(a!) + inline const at::Tensor & resize_symint_out(c10::DispatchKeySet dispatchKeySet, const at::Tensor & out, const at::Tensor & self, c10::SymIntArrayRef size, c10::optional memory_format=c10::nullopt) { + return at::_ops::resize_out::redispatch(dispatchKeySet, self, size, memory_format, out); + } + + // aten::resize.out(Tensor self, SymInt[] size, *, MemoryFormat? memory_format=None, Tensor(a!) out) -> Tensor(a!) + inline const at::Tensor & resize_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef size, c10::optional memory_format, const at::Tensor & out) { + return at::_ops::resize_out::redispatch(dispatchKeySet, self, size, memory_format, out); + } + + // aten::resize(Tensor self, SymInt[] size, *, MemoryFormat? memory_format=None) -> Tensor + inline at::Tensor resize(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef size, c10::optional memory_format=c10::nullopt) { + return at::_ops::resize::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(size), memory_format); + } + + // aten::resize(Tensor self, SymInt[] size, *, MemoryFormat? memory_format=None) -> Tensor + inline at::Tensor resize_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef size, c10::optional memory_format=c10::nullopt) { + return at::_ops::resize::redispatch(dispatchKeySet, self, size, memory_format); + } + + // aten::_resize_output.out(Tensor self, SymInt[] size, Device device, *, Tensor(a!) out) -> Tensor(a!) + inline const at::Tensor & _resize_output_out(c10::DispatchKeySet dispatchKeySet, const at::Tensor & out, const at::Tensor & self, at::IntArrayRef size, at::Device device) { + return at::_ops::_resize_output_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(size), device, out); + } + + // aten::_resize_output.out(Tensor self, SymInt[] size, Device device, *, Tensor(a!) out) -> Tensor(a!) + inline const at::Tensor & _resize_output_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef size, at::Device device, const at::Tensor & out) { + return at::_ops::_resize_output_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(size), device, out); + } + + // aten::_resize_output.out(Tensor self, SymInt[] size, Device device, *, Tensor(a!) out) -> Tensor(a!) + inline const at::Tensor & _resize_output_symint_out(c10::DispatchKeySet dispatchKeySet, const at::Tensor & out, const at::Tensor & self, c10::SymIntArrayRef size, at::Device device) { + return at::_ops::_resize_output_out::redispatch(dispatchKeySet, self, size, device, out); + } + + // aten::_resize_output.out(Tensor self, SymInt[] size, Device device, *, Tensor(a!) out) -> Tensor(a!) + inline const at::Tensor & _resize_output_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef size, at::Device device, const at::Tensor & out) { + return at::_ops::_resize_output_out::redispatch(dispatchKeySet, self, size, device, out); + } + + // aten::_resize_output(Tensor self, SymInt[] size, Device device) -> Tensor + inline at::Tensor _resize_output(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef size, at::Device device) { + return at::_ops::_resize_output::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(size), device); + } + + // aten::_resize_output(Tensor self, SymInt[] size, Device device) -> Tensor + inline at::Tensor _resize_output_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef size, at::Device device) { + return at::_ops::_resize_output::redispatch(dispatchKeySet, self, size, device); + } + + // aten::empty_quantized.out(int[] size, Tensor qtensor, *, MemoryFormat? memory_format=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & empty_quantized_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, at::IntArrayRef size, const at::Tensor & qtensor, c10::optional memory_format=c10::nullopt) { + return at::_ops::empty_quantized_out::redispatch(dispatchKeySet, size, qtensor, memory_format, out); + } + + // aten::empty_quantized.out(int[] size, Tensor qtensor, *, MemoryFormat? memory_format=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & empty_quantized_outf(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, const at::Tensor & qtensor, c10::optional memory_format, at::Tensor & out) { + return at::_ops::empty_quantized_out::redispatch(dispatchKeySet, size, qtensor, memory_format, out); + } + + // aten::empty_like.out(Tensor self, *, MemoryFormat? memory_format=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & empty_like_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::optional memory_format=c10::nullopt) { + return at::_ops::empty_like_out::redispatch(dispatchKeySet, self, memory_format, out); + } + + // aten::empty_like.out(Tensor self, *, MemoryFormat? memory_format=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & empty_like_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional memory_format, at::Tensor & out) { + return at::_ops::empty_like_out::redispatch(dispatchKeySet, self, memory_format, out); + } + + // aten::empty_strided.out(SymInt[] size, SymInt[] stride, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & empty_strided_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, at::IntArrayRef size, at::IntArrayRef stride) { + return at::_ops::empty_strided_out::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), c10::fromIntArrayRefSlow(stride), out); + } + + // aten::empty_strided.out(SymInt[] size, SymInt[] stride, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & empty_strided_outf(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, at::IntArrayRef stride, at::Tensor & out) { + return at::_ops::empty_strided_out::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), c10::fromIntArrayRefSlow(stride), out); + } + + // aten::empty_strided.out(SymInt[] size, SymInt[] stride, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & empty_strided_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, c10::SymIntArrayRef size, c10::SymIntArrayRef stride) { + return at::_ops::empty_strided_out::redispatch(dispatchKeySet, size, stride, out); + } + + // aten::empty_strided.out(SymInt[] size, SymInt[] stride, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & empty_strided_symint_outf(c10::DispatchKeySet dispatchKeySet, c10::SymIntArrayRef size, c10::SymIntArrayRef stride, at::Tensor & out) { + return at::_ops::empty_strided_out::redispatch(dispatchKeySet, size, stride, out); + } + + // aten::fill.Scalar_out(Tensor self, Scalar value, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fill_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Scalar & value) { + return at::_ops::fill_Scalar_out::redispatch(dispatchKeySet, self, value, out); + } + + // aten::fill.Scalar_out(Tensor self, Scalar value, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fill_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & value, at::Tensor & out) { + return at::_ops::fill_Scalar_out::redispatch(dispatchKeySet, self, value, out); + } + + // aten::fill.Tensor_out(Tensor self, Tensor value, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fill_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & value) { + return at::_ops::fill_Tensor_out::redispatch(dispatchKeySet, self, value, out); + } + + // aten::fill.Tensor_out(Tensor self, Tensor value, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & fill_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & value, at::Tensor & out) { + return at::_ops::fill_Tensor_out::redispatch(dispatchKeySet, self, value, out); + } + + // aten::floor_divide.Scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & floor_divide_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::floor_divide_Scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::floor_divide.Scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & floor_divide_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other, at::Tensor & out) { + return at::_ops::floor_divide_Scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::full.names_out(int[] size, Scalar fill_value, *, Dimname[]? names, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & full_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, at::IntArrayRef size, const at::Scalar & fill_value, c10::optional names) { + return at::_ops::full_names_out::redispatch(dispatchKeySet, size, fill_value, names, out); + } + + // aten::full.names_out(int[] size, Scalar fill_value, *, Dimname[]? names, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & full_outf(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, const at::Scalar & fill_value, c10::optional names, at::Tensor & out) { + return at::_ops::full_names_out::redispatch(dispatchKeySet, size, fill_value, names, out); + } + + // aten::full_like.out(Tensor self, Scalar fill_value, *, MemoryFormat? memory_format=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & full_like_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Scalar & fill_value, c10::optional memory_format=c10::nullopt) { + return at::_ops::full_like_out::redispatch(dispatchKeySet, self, fill_value, memory_format, out); + } + + // aten::full_like.out(Tensor self, Scalar fill_value, *, MemoryFormat? memory_format=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & full_like_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & fill_value, c10::optional memory_format, at::Tensor & out) { + return at::_ops::full_like_out::redispatch(dispatchKeySet, self, fill_value, memory_format, out); + } + + // aten::from_file.out(str filename, bool? shared=None, int? size=0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & from_file_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, c10::string_view filename, c10::optional shared=c10::nullopt, c10::optional size=0) { + return at::_ops::from_file_out::redispatch(dispatchKeySet, filename, shared, size, out); + } + + // aten::from_file.out(str filename, bool? shared=None, int? size=0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & from_file_outf(c10::DispatchKeySet dispatchKeySet, c10::string_view filename, c10::optional shared, c10::optional size, at::Tensor & out) { + return at::_ops::from_file_out::redispatch(dispatchKeySet, filename, shared, size, out); + } + + // aten::grid_sampler_2d.out(Tensor input, Tensor grid, int interpolation_mode, int padding_mode, bool align_corners, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & grid_sampler_2d_out(c10::DispatchKeySet dispatchKeySet, 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_2d_out::redispatch(dispatchKeySet, input, grid, interpolation_mode, padding_mode, align_corners, out); + } + + // aten::grid_sampler_2d.out(Tensor input, Tensor grid, int interpolation_mode, int padding_mode, bool align_corners, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & grid_sampler_2d_outf(c10::DispatchKeySet dispatchKeySet, 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_2d_out::redispatch(dispatchKeySet, input, grid, interpolation_mode, padding_mode, align_corners, out); + } + + // aten::grid_sampler_2d_backward.out(Tensor grad_output, Tensor input, Tensor grid, int interpolation_mode, int padding_mode, bool align_corners, bool[2] output_mask, *, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple grid_sampler_2d_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, const at::Tensor & grad_output, const at::Tensor & input, const at::Tensor & grid, int64_t interpolation_mode, int64_t padding_mode, bool align_corners, ::std::array output_mask) { + return at::_ops::grid_sampler_2d_backward_out::redispatch(dispatchKeySet, grad_output, input, grid, interpolation_mode, padding_mode, align_corners, output_mask, out0, out1); + } + + // aten::grid_sampler_2d_backward.out(Tensor grad_output, Tensor input, Tensor grid, int interpolation_mode, int padding_mode, bool align_corners, bool[2] output_mask, *, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple grid_sampler_2d_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & input, const at::Tensor & grid, int64_t interpolation_mode, int64_t padding_mode, bool align_corners, ::std::array output_mask, at::Tensor & out0, at::Tensor & out1) { + return at::_ops::grid_sampler_2d_backward_out::redispatch(dispatchKeySet, grad_output, input, grid, interpolation_mode, padding_mode, align_corners, output_mask, out0, out1); + } + + // aten::_grid_sampler_2d_cpu_fallback.out(Tensor input, Tensor grid, int interpolation_mode, int padding_mode, bool align_corners, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _grid_sampler_2d_cpu_fallback_out(c10::DispatchKeySet dispatchKeySet, 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_2d_cpu_fallback_out::redispatch(dispatchKeySet, input, grid, interpolation_mode, padding_mode, align_corners, out); + } + + // aten::_grid_sampler_2d_cpu_fallback.out(Tensor input, Tensor grid, int interpolation_mode, int padding_mode, bool align_corners, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _grid_sampler_2d_cpu_fallback_outf(c10::DispatchKeySet dispatchKeySet, 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_2d_cpu_fallback_out::redispatch(dispatchKeySet, 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_out(c10::DispatchKeySet dispatchKeySet, 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::redispatch(dispatchKeySet, 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(c10::DispatchKeySet dispatchKeySet, 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::redispatch(dispatchKeySet, input, grid, interpolation_mode, padding_mode, align_corners, out); + } + + // aten::grid_sampler_3d_backward.out(Tensor grad_output, Tensor input, Tensor grid, int interpolation_mode, int padding_mode, bool align_corners, bool[2] output_mask, *, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple grid_sampler_3d_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, const at::Tensor & grad_output, const at::Tensor & input, const at::Tensor & grid, int64_t interpolation_mode, int64_t padding_mode, bool align_corners, ::std::array output_mask) { + return at::_ops::grid_sampler_3d_backward_out::redispatch(dispatchKeySet, grad_output, input, grid, interpolation_mode, padding_mode, align_corners, output_mask, out0, out1); + } + + // aten::grid_sampler_3d_backward.out(Tensor grad_output, Tensor input, Tensor grid, int interpolation_mode, int padding_mode, bool align_corners, bool[2] output_mask, *, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple grid_sampler_3d_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & input, const at::Tensor & grid, int64_t interpolation_mode, int64_t padding_mode, bool align_corners, ::std::array output_mask, at::Tensor & out0, at::Tensor & out1) { + return at::_ops::grid_sampler_3d_backward_out::redispatch(dispatchKeySet, grad_output, input, grid, interpolation_mode, padding_mode, align_corners, output_mask, out0, out1); + } + + // aten::hann_window.out(int window_length, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & hann_window_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, int64_t window_length) { + return at::_ops::hann_window_out::redispatch(dispatchKeySet, window_length, out); + } + + // aten::hann_window.out(int window_length, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & hann_window_outf(c10::DispatchKeySet dispatchKeySet, int64_t window_length, at::Tensor & out) { + return at::_ops::hann_window_out::redispatch(dispatchKeySet, window_length, out); + } + + // aten::hann_window.periodic_out(int window_length, bool periodic, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & hann_window_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, int64_t window_length, bool periodic) { + return at::_ops::hann_window_periodic_out::redispatch(dispatchKeySet, window_length, periodic, out); + } + + // aten::hann_window.periodic_out(int window_length, bool periodic, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & hann_window_outf(c10::DispatchKeySet dispatchKeySet, int64_t window_length, bool periodic, at::Tensor & out) { + return at::_ops::hann_window_periodic_out::redispatch(dispatchKeySet, window_length, periodic, out); + } + + // aten::hamming_window.out(int window_length, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & hamming_window_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, int64_t window_length) { + return at::_ops::hamming_window_out::redispatch(dispatchKeySet, window_length, out); + } + + // aten::hamming_window.out(int window_length, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & hamming_window_outf(c10::DispatchKeySet dispatchKeySet, int64_t window_length, at::Tensor & out) { + return at::_ops::hamming_window_out::redispatch(dispatchKeySet, window_length, out); + } + + // aten::hamming_window.periodic_out(int window_length, bool periodic, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & hamming_window_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, int64_t window_length, bool periodic) { + return at::_ops::hamming_window_periodic_out::redispatch(dispatchKeySet, window_length, periodic, out); + } + + // aten::hamming_window.periodic_out(int window_length, bool periodic, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & hamming_window_outf(c10::DispatchKeySet dispatchKeySet, int64_t window_length, bool periodic, at::Tensor & out) { + return at::_ops::hamming_window_periodic_out::redispatch(dispatchKeySet, window_length, periodic, out); + } + + // aten::hamming_window.periodic_alpha_out(int window_length, bool periodic, float alpha, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & hamming_window_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, int64_t window_length, bool periodic, double alpha) { + return at::_ops::hamming_window_periodic_alpha_out::redispatch(dispatchKeySet, window_length, periodic, alpha, out); + } + + // aten::hamming_window.periodic_alpha_out(int window_length, bool periodic, float alpha, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & hamming_window_outf(c10::DispatchKeySet dispatchKeySet, int64_t window_length, bool periodic, double alpha, at::Tensor & out) { + return at::_ops::hamming_window_periodic_alpha_out::redispatch(dispatchKeySet, window_length, periodic, alpha, out); + } + + // aten::hamming_window.periodic_alpha_beta_out(int window_length, bool periodic, float alpha, float beta, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & hamming_window_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, int64_t window_length, bool periodic, double alpha, double beta) { + return at::_ops::hamming_window_periodic_alpha_beta_out::redispatch(dispatchKeySet, window_length, periodic, alpha, beta, out); + } + + // aten::hamming_window.periodic_alpha_beta_out(int window_length, bool periodic, float alpha, float beta, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & hamming_window_outf(c10::DispatchKeySet dispatchKeySet, int64_t window_length, bool periodic, double alpha, double beta, at::Tensor & out) { + return at::_ops::hamming_window_periodic_alpha_beta_out::redispatch(dispatchKeySet, window_length, periodic, alpha, beta, out); + } + + // aten::kaiser_window.out(int window_length, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & kaiser_window_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, int64_t window_length) { + return at::_ops::kaiser_window_out::redispatch(dispatchKeySet, window_length, out); + } + + // aten::kaiser_window.out(int window_length, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & kaiser_window_outf(c10::DispatchKeySet dispatchKeySet, int64_t window_length, at::Tensor & out) { + return at::_ops::kaiser_window_out::redispatch(dispatchKeySet, window_length, out); + } + + // aten::kaiser_window.periodic_out(int window_length, bool periodic, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & kaiser_window_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, int64_t window_length, bool periodic) { + return at::_ops::kaiser_window_periodic_out::redispatch(dispatchKeySet, window_length, periodic, out); + } + + // aten::kaiser_window.periodic_out(int window_length, bool periodic, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & kaiser_window_outf(c10::DispatchKeySet dispatchKeySet, int64_t window_length, bool periodic, at::Tensor & out) { + return at::_ops::kaiser_window_periodic_out::redispatch(dispatchKeySet, window_length, periodic, out); + } + + // aten::kaiser_window.beta_out(int window_length, bool periodic, float beta, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & kaiser_window_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, int64_t window_length, bool periodic, double beta) { + return at::_ops::kaiser_window_beta_out::redispatch(dispatchKeySet, window_length, periodic, beta, out); + } + + // aten::kaiser_window.beta_out(int window_length, bool periodic, float beta, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & kaiser_window_outf(c10::DispatchKeySet dispatchKeySet, int64_t window_length, bool periodic, double beta, at::Tensor & out) { + return at::_ops::kaiser_window_beta_out::redispatch(dispatchKeySet, window_length, periodic, beta, out); + } + + // aten::native_group_norm.out(Tensor input, Tensor? weight, Tensor? bias, SymInt N, SymInt C, SymInt HxW, int group, float eps, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple native_group_norm_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, const at::Tensor & input, const c10::optional & weight, const c10::optional & bias, int64_t N, int64_t C, int64_t HxW, int64_t group, double eps) { + return at::_ops::native_group_norm_out::redispatch(dispatchKeySet, input, weight, bias, N, C, HxW, group, eps, out0, out1, out2); + } + + // aten::native_group_norm.out(Tensor input, Tensor? weight, Tensor? bias, SymInt N, SymInt C, SymInt HxW, int group, float eps, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple native_group_norm_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const c10::optional & weight, const c10::optional & bias, int64_t N, int64_t C, int64_t HxW, int64_t group, double eps, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2) { + return at::_ops::native_group_norm_out::redispatch(dispatchKeySet, input, weight, bias, N, C, HxW, group, eps, out0, out1, out2); + } + + // aten::native_group_norm.out(Tensor input, Tensor? weight, Tensor? bias, SymInt N, SymInt C, SymInt HxW, int group, float eps, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple native_group_norm_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, const at::Tensor & input, const c10::optional & weight, const c10::optional & bias, c10::SymInt N, c10::SymInt C, c10::SymInt HxW, int64_t group, double eps) { + return at::_ops::native_group_norm_out::redispatch(dispatchKeySet, input, weight, bias, N, C, HxW, group, eps, out0, out1, out2); + } + + // aten::native_group_norm.out(Tensor input, Tensor? weight, Tensor? bias, SymInt N, SymInt C, SymInt HxW, int group, float eps, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple native_group_norm_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const c10::optional & weight, const c10::optional & bias, c10::SymInt N, c10::SymInt C, c10::SymInt HxW, int64_t group, double eps, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2) { + return at::_ops::native_group_norm_out::redispatch(dispatchKeySet, input, weight, bias, N, C, HxW, group, eps, out0, out1, out2); + } + + // aten::native_group_norm_backward.out(Tensor grad_out, Tensor input, Tensor mean, Tensor rstd, Tensor? weight, SymInt N, SymInt C, SymInt HxW, int group, bool[3] output_mask, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple native_group_norm_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, const at::Tensor & grad_out, const at::Tensor & input, const at::Tensor & mean, const at::Tensor & rstd, const c10::optional & weight, int64_t N, int64_t C, int64_t HxW, int64_t group, ::std::array output_mask) { + return at::_ops::native_group_norm_backward_out::redispatch(dispatchKeySet, grad_out, input, mean, rstd, weight, N, C, HxW, group, output_mask, out0, out1, out2); + } + + // aten::native_group_norm_backward.out(Tensor grad_out, Tensor input, Tensor mean, Tensor rstd, Tensor? weight, SymInt N, SymInt C, SymInt HxW, int group, bool[3] output_mask, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple native_group_norm_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_out, const at::Tensor & input, const at::Tensor & mean, const at::Tensor & rstd, const c10::optional & weight, int64_t N, int64_t C, int64_t HxW, int64_t group, ::std::array output_mask, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2) { + return at::_ops::native_group_norm_backward_out::redispatch(dispatchKeySet, grad_out, input, mean, rstd, weight, N, C, HxW, group, output_mask, out0, out1, out2); + } + + // aten::native_group_norm_backward.out(Tensor grad_out, Tensor input, Tensor mean, Tensor rstd, Tensor? weight, SymInt N, SymInt C, SymInt HxW, int group, bool[3] output_mask, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple native_group_norm_backward_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, const at::Tensor & grad_out, const at::Tensor & input, const at::Tensor & mean, const at::Tensor & rstd, const c10::optional & weight, c10::SymInt N, c10::SymInt C, c10::SymInt HxW, int64_t group, ::std::array output_mask) { + return at::_ops::native_group_norm_backward_out::redispatch(dispatchKeySet, grad_out, input, mean, rstd, weight, N, C, HxW, group, output_mask, out0, out1, out2); + } + + // aten::native_group_norm_backward.out(Tensor grad_out, Tensor input, Tensor mean, Tensor rstd, Tensor? weight, SymInt N, SymInt C, SymInt HxW, int group, bool[3] output_mask, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple native_group_norm_backward_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_out, const at::Tensor & input, const at::Tensor & mean, const at::Tensor & rstd, const c10::optional & weight, c10::SymInt N, c10::SymInt C, c10::SymInt HxW, int64_t group, ::std::array output_mask, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2) { + return at::_ops::native_group_norm_backward_out::redispatch(dispatchKeySet, grad_out, input, mean, rstd, weight, N, C, HxW, group, output_mask, out0, out1, out2); + } + + // aten::index_put.out(Tensor self, Tensor?[] indices, Tensor values, bool accumulate=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & index_put_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const c10::List> & indices, const at::Tensor & values, bool accumulate=false) { + return at::_ops::index_put_out::redispatch(dispatchKeySet, self, indices, values, accumulate, out); + } + + // aten::index_put.out(Tensor self, Tensor?[] indices, Tensor values, bool accumulate=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & index_put_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const c10::List> & indices, const at::Tensor & values, bool accumulate, at::Tensor & out) { + return at::_ops::index_put_out::redispatch(dispatchKeySet, self, indices, values, accumulate, out); + } + + // aten::_index_put_impl.out(Tensor self, Tensor?[] indices, Tensor values, bool accumulate=False, bool unsafe=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _index_put_impl_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const c10::List> & indices, const at::Tensor & values, bool accumulate=false, bool unsafe=false) { + return at::_ops::_index_put_impl_out::redispatch(dispatchKeySet, self, indices, values, accumulate, unsafe, out); + } + + // aten::_index_put_impl.out(Tensor self, Tensor?[] indices, Tensor values, bool accumulate=False, bool unsafe=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _index_put_impl_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const c10::List> & indices, const at::Tensor & values, bool accumulate, bool unsafe, at::Tensor & out) { + return at::_ops::_index_put_impl_out::redispatch(dispatchKeySet, self, indices, values, accumulate, unsafe, out); + } + + // aten::_index_put_impl(Tensor self, Tensor?[] indices, Tensor values, bool accumulate=False, bool unsafe=False) -> Tensor + inline at::Tensor _index_put_impl(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const c10::List> & indices, const at::Tensor & values, bool accumulate=false, bool unsafe=false) { + return at::_ops::_index_put_impl::redispatch(dispatchKeySet, self, indices, values, accumulate, unsafe); + } + + // aten::isnan.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & isnan_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::isnan_out::redispatch(dispatchKeySet, self, out); + } + + // aten::isnan.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & isnan_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::isnan_out::redispatch(dispatchKeySet, self, out); + } + + // aten::native_layer_norm.out(Tensor input, SymInt[] normalized_shape, Tensor? weight, Tensor? bias, float eps, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple native_layer_norm_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, const at::Tensor & input, at::IntArrayRef normalized_shape, const c10::optional & weight, const c10::optional & bias, double eps) { + return at::_ops::native_layer_norm_out::redispatch(dispatchKeySet, input, c10::fromIntArrayRefSlow(normalized_shape), weight, bias, eps, out0, out1, out2); + } + + // aten::native_layer_norm.out(Tensor input, SymInt[] normalized_shape, Tensor? weight, Tensor? bias, float eps, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple native_layer_norm_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, at::IntArrayRef normalized_shape, const c10::optional & weight, const c10::optional & bias, double eps, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2) { + return at::_ops::native_layer_norm_out::redispatch(dispatchKeySet, input, c10::fromIntArrayRefSlow(normalized_shape), weight, bias, eps, out0, out1, out2); + } + + // aten::native_layer_norm.out(Tensor input, SymInt[] normalized_shape, Tensor? weight, Tensor? bias, float eps, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple native_layer_norm_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, const at::Tensor & input, c10::SymIntArrayRef normalized_shape, const c10::optional & weight, const c10::optional & bias, double eps) { + return at::_ops::native_layer_norm_out::redispatch(dispatchKeySet, input, normalized_shape, weight, bias, eps, out0, out1, out2); + } + + // aten::native_layer_norm.out(Tensor input, SymInt[] normalized_shape, Tensor? weight, Tensor? bias, float eps, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple native_layer_norm_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, c10::SymIntArrayRef normalized_shape, const c10::optional & weight, const c10::optional & bias, double eps, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2) { + return at::_ops::native_layer_norm_out::redispatch(dispatchKeySet, input, normalized_shape, weight, bias, eps, out0, out1, out2); + } + + // aten::native_layer_norm_backward.out(Tensor grad_out, Tensor input, SymInt[] normalized_shape, Tensor mean, Tensor rstd, Tensor? weight, Tensor? bias, bool[3] output_mask, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple native_layer_norm_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, const at::Tensor & grad_out, const at::Tensor & input, at::IntArrayRef normalized_shape, const at::Tensor & mean, const at::Tensor & rstd, const c10::optional & weight, const c10::optional & bias, ::std::array output_mask) { + return at::_ops::native_layer_norm_backward_out::redispatch(dispatchKeySet, grad_out, input, c10::fromIntArrayRefSlow(normalized_shape), mean, rstd, weight, bias, output_mask, out0, out1, out2); + } + + // aten::native_layer_norm_backward.out(Tensor grad_out, Tensor input, SymInt[] normalized_shape, Tensor mean, Tensor rstd, Tensor? weight, Tensor? bias, bool[3] output_mask, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple native_layer_norm_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_out, const at::Tensor & input, at::IntArrayRef normalized_shape, const at::Tensor & mean, const at::Tensor & rstd, const c10::optional & weight, const c10::optional & bias, ::std::array output_mask, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2) { + return at::_ops::native_layer_norm_backward_out::redispatch(dispatchKeySet, grad_out, input, c10::fromIntArrayRefSlow(normalized_shape), mean, rstd, weight, bias, output_mask, out0, out1, out2); + } + + // aten::native_layer_norm_backward.out(Tensor grad_out, Tensor input, SymInt[] normalized_shape, Tensor mean, Tensor rstd, Tensor? weight, Tensor? bias, bool[3] output_mask, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple native_layer_norm_backward_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, const at::Tensor & grad_out, const at::Tensor & input, c10::SymIntArrayRef normalized_shape, const at::Tensor & mean, const at::Tensor & rstd, const c10::optional & weight, const c10::optional & bias, ::std::array output_mask) { + return at::_ops::native_layer_norm_backward_out::redispatch(dispatchKeySet, grad_out, input, normalized_shape, mean, rstd, weight, bias, output_mask, out0, out1, out2); + } + + // aten::native_layer_norm_backward.out(Tensor grad_out, Tensor input, SymInt[] normalized_shape, Tensor mean, Tensor rstd, Tensor? weight, Tensor? bias, bool[3] output_mask, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple native_layer_norm_backward_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_out, const at::Tensor & input, c10::SymIntArrayRef normalized_shape, const at::Tensor & mean, const at::Tensor & rstd, const c10::optional & weight, const c10::optional & bias, ::std::array output_mask, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2) { + return at::_ops::native_layer_norm_backward_out::redispatch(dispatchKeySet, grad_out, input, normalized_shape, mean, rstd, weight, bias, output_mask, out0, out1, out2); + } + + // aten::linear_backward.out(Tensor self, Tensor grad_output, Tensor weight, bool[3] output_mask, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple linear_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, const at::Tensor & self, const at::Tensor & grad_output, const at::Tensor & weight, ::std::array output_mask) { + return at::_ops::linear_backward_out::redispatch(dispatchKeySet, self, grad_output, weight, output_mask, out0, out1, out2); + } + + // aten::linear_backward.out(Tensor self, Tensor grad_output, Tensor weight, bool[3] output_mask, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple linear_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & grad_output, const at::Tensor & weight, ::std::array output_mask, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2) { + return at::_ops::linear_backward_out::redispatch(dispatchKeySet, self, grad_output, weight, output_mask, out0, out1, out2); + } + + // aten::mkldnn_linear.out(Tensor self, Tensor weight, Tensor? bias=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & mkldnn_linear_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & weight, const c10::optional & bias={}) { + return at::_ops::mkldnn_linear_out::redispatch(dispatchKeySet, self, weight, bias, out); + } + + // aten::mkldnn_linear.out(Tensor self, Tensor weight, Tensor? bias=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & mkldnn_linear_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, const c10::optional & bias, at::Tensor & out) { + return at::_ops::mkldnn_linear_out::redispatch(dispatchKeySet, self, weight, bias, out); + } + + // aten::mkldnn_linear_backward_input.out(int[] input_size, Tensor grad_output, Tensor weight, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & mkldnn_linear_backward_input_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, at::IntArrayRef input_size, const at::Tensor & grad_output, const at::Tensor & weight) { + return at::_ops::mkldnn_linear_backward_input_out::redispatch(dispatchKeySet, input_size, grad_output, weight, out); + } + + // aten::mkldnn_linear_backward_input.out(int[] input_size, Tensor grad_output, Tensor weight, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & mkldnn_linear_backward_input_outf(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef input_size, const at::Tensor & grad_output, const at::Tensor & weight, at::Tensor & out) { + return at::_ops::mkldnn_linear_backward_input_out::redispatch(dispatchKeySet, input_size, grad_output, weight, out); + } + + // aten::mkldnn_linear_backward_weights.out(Tensor grad_output, Tensor input, Tensor weight, bool bias_defined, *, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple mkldnn_linear_backward_weights_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, const at::Tensor & grad_output, const at::Tensor & input, const at::Tensor & weight, bool bias_defined) { + return at::_ops::mkldnn_linear_backward_weights_out::redispatch(dispatchKeySet, grad_output, input, weight, bias_defined, out0, out1); + } + + // aten::mkldnn_linear_backward_weights.out(Tensor grad_output, Tensor input, Tensor weight, bool bias_defined, *, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple mkldnn_linear_backward_weights_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & input, const at::Tensor & weight, bool bias_defined, at::Tensor & out0, at::Tensor & out1) { + return at::_ops::mkldnn_linear_backward_weights_out::redispatch(dispatchKeySet, grad_output, input, weight, bias_defined, out0, out1); + } + + // aten::mkldnn_linear_backward.out(Tensor self, Tensor grad_output, Tensor weight, bool[3] output_mask, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple mkldnn_linear_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, const at::Tensor & self, const at::Tensor & grad_output, const at::Tensor & weight, ::std::array output_mask) { + return at::_ops::mkldnn_linear_backward_out::redispatch(dispatchKeySet, self, grad_output, weight, output_mask, out0, out1, out2); + } + + // aten::mkldnn_linear_backward.out(Tensor self, Tensor grad_output, Tensor weight, bool[3] output_mask, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple mkldnn_linear_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & grad_output, const at::Tensor & weight, ::std::array output_mask, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2) { + return at::_ops::mkldnn_linear_backward_out::redispatch(dispatchKeySet, self, grad_output, weight, output_mask, out0, out1, out2); + } + + // aten::matmul_backward.out(Tensor grad, Tensor self, Tensor other, bool[2] mask, *, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple matmul_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, const at::Tensor & grad, const at::Tensor & self, const at::Tensor & other, ::std::array mask) { + return at::_ops::matmul_backward_out::redispatch(dispatchKeySet, grad, self, other, mask, out0, out1); + } + + // aten::matmul_backward.out(Tensor grad, Tensor self, Tensor other, bool[2] mask, *, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple matmul_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad, const at::Tensor & self, const at::Tensor & other, ::std::array mask, at::Tensor & out0, at::Tensor & out1) { + return at::_ops::matmul_backward_out::redispatch(dispatchKeySet, grad, self, other, mask, out0, out1); + } + + // aten::_aminmax.out(Tensor self, *, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple _aminmax_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, const at::Tensor & self) { + return at::_ops::_aminmax_out::redispatch(dispatchKeySet, self, out0, out1); + } + + // aten::_aminmax.out(Tensor self, *, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple _aminmax_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out0, at::Tensor & out1) { + return at::_ops::_aminmax_out::redispatch(dispatchKeySet, self, out0, out1); + } + + // aten::_aminmax.dim_out(Tensor self, int dim, bool keepdim=False, *, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple _aminmax_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, const at::Tensor & self, int64_t dim, bool keepdim=false) { + return at::_ops::_aminmax_dim_out::redispatch(dispatchKeySet, self, dim, keepdim, out0, out1); + } + + // aten::_aminmax.dim_out(Tensor self, int dim, bool keepdim=False, *, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple _aminmax_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, bool keepdim, at::Tensor & out0, at::Tensor & out1) { + return at::_ops::_aminmax_dim_out::redispatch(dispatchKeySet, self, dim, keepdim, out0, out1); + } + + // aten::max_pool2d_backward.out(Tensor grad_output, Tensor self, int[2] kernel_size, int[2] stride=[], int[2] padding=0, int[2] dilation=1, bool ceil_mode=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & max_pool2d_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & grad_output, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef stride={}, at::IntArrayRef padding=0, at::IntArrayRef dilation=1, bool ceil_mode=false) { + return at::_ops::max_pool2d_backward_out::redispatch(dispatchKeySet, grad_output, self, kernel_size, stride, padding, dilation, ceil_mode, out); + } + + // aten::max_pool2d_backward.out(Tensor grad_output, Tensor self, int[2] kernel_size, int[2] stride=[], int[2] padding=0, int[2] dilation=1, bool ceil_mode=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & max_pool2d_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, bool ceil_mode, at::Tensor & out) { + return at::_ops::max_pool2d_backward_out::redispatch(dispatchKeySet, grad_output, self, kernel_size, stride, padding, dilation, ceil_mode, out); + } + + // aten::mkldnn_max_pool2d.out(Tensor self, int[2] kernel_size, int[2] stride=[], int[2] padding=0, int[2] dilation=1, bool ceil_mode=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & mkldnn_max_pool2d_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef stride={}, at::IntArrayRef padding=0, at::IntArrayRef dilation=1, bool ceil_mode=false) { + return at::_ops::mkldnn_max_pool2d_out::redispatch(dispatchKeySet, self, kernel_size, stride, padding, dilation, ceil_mode, out); + } + + // aten::mkldnn_max_pool2d.out(Tensor self, int[2] kernel_size, int[2] stride=[], int[2] padding=0, int[2] dilation=1, bool ceil_mode=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & mkldnn_max_pool2d_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, bool ceil_mode, at::Tensor & out) { + return at::_ops::mkldnn_max_pool2d_out::redispatch(dispatchKeySet, self, kernel_size, stride, padding, dilation, ceil_mode, out); + } + + // aten::mkldnn_max_pool2d_backward.out(Tensor grad_output, Tensor output, Tensor input, int[2] kernel_size, int[2] stride=[], int[2] padding=0, int[2] dilation=1, bool ceil_mode=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & mkldnn_max_pool2d_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & grad_output, const at::Tensor & output, const at::Tensor & input, at::IntArrayRef kernel_size, at::IntArrayRef stride={}, at::IntArrayRef padding=0, at::IntArrayRef dilation=1, bool ceil_mode=false) { + return at::_ops::mkldnn_max_pool2d_backward_out::redispatch(dispatchKeySet, grad_output, output, input, kernel_size, stride, padding, dilation, ceil_mode, out); + } + + // aten::mkldnn_max_pool2d_backward.out(Tensor grad_output, Tensor output, Tensor input, int[2] kernel_size, int[2] stride=[], int[2] padding=0, int[2] dilation=1, bool ceil_mode=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & mkldnn_max_pool2d_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & output, const at::Tensor & input, at::IntArrayRef kernel_size, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, bool ceil_mode, at::Tensor & out) { + return at::_ops::mkldnn_max_pool2d_backward_out::redispatch(dispatchKeySet, grad_output, output, input, kernel_size, stride, padding, dilation, ceil_mode, out); + } + + // aten::mkldnn_max_pool3d.out(Tensor self, int[3] kernel_size, int[3] stride=[], int[3] padding=0, int[3] dilation=1, bool ceil_mode=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & mkldnn_max_pool3d_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef stride={}, at::IntArrayRef padding=0, at::IntArrayRef dilation=1, bool ceil_mode=false) { + return at::_ops::mkldnn_max_pool3d_out::redispatch(dispatchKeySet, self, kernel_size, stride, padding, dilation, ceil_mode, out); + } + + // aten::mkldnn_max_pool3d.out(Tensor self, int[3] kernel_size, int[3] stride=[], int[3] padding=0, int[3] dilation=1, bool ceil_mode=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & mkldnn_max_pool3d_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, bool ceil_mode, at::Tensor & out) { + return at::_ops::mkldnn_max_pool3d_out::redispatch(dispatchKeySet, self, kernel_size, stride, padding, dilation, ceil_mode, out); + } + + // aten::mkldnn_max_pool3d_backward.out(Tensor grad_output, Tensor output, Tensor input, int[3] kernel_size, int[3] stride=[], int[3] padding=0, int[3] dilation=1, bool ceil_mode=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & mkldnn_max_pool3d_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & grad_output, const at::Tensor & output, const at::Tensor & input, at::IntArrayRef kernel_size, at::IntArrayRef stride={}, at::IntArrayRef padding=0, at::IntArrayRef dilation=1, bool ceil_mode=false) { + return at::_ops::mkldnn_max_pool3d_backward_out::redispatch(dispatchKeySet, grad_output, output, input, kernel_size, stride, padding, dilation, ceil_mode, out); + } + + // aten::mkldnn_max_pool3d_backward.out(Tensor grad_output, Tensor output, Tensor input, int[3] kernel_size, int[3] stride=[], int[3] padding=0, int[3] dilation=1, bool ceil_mode=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & mkldnn_max_pool3d_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & output, const at::Tensor & input, at::IntArrayRef kernel_size, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, bool ceil_mode, at::Tensor & out) { + return at::_ops::mkldnn_max_pool3d_backward_out::redispatch(dispatchKeySet, grad_output, output, input, kernel_size, stride, padding, dilation, ceil_mode, out); + } + + // aten::quantized_max_pool1d.out(Tensor self, int[1] kernel_size, int[1] stride=[], int[1] padding=0, int[1] dilation=1, bool ceil_mode=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & quantized_max_pool1d_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef stride={}, at::IntArrayRef padding=0, at::IntArrayRef dilation=1, bool ceil_mode=false) { + return at::_ops::quantized_max_pool1d_out::redispatch(dispatchKeySet, self, kernel_size, stride, padding, dilation, ceil_mode, out); + } + + // aten::quantized_max_pool1d.out(Tensor self, int[1] kernel_size, int[1] stride=[], int[1] padding=0, int[1] dilation=1, bool ceil_mode=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & quantized_max_pool1d_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, bool ceil_mode, at::Tensor & out) { + return at::_ops::quantized_max_pool1d_out::redispatch(dispatchKeySet, self, kernel_size, stride, padding, dilation, ceil_mode, out); + } + + // aten::quantized_max_pool2d.out(Tensor self, int[2] kernel_size, int[2] stride=[], int[2] padding=0, int[2] dilation=1, bool ceil_mode=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & quantized_max_pool2d_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef stride={}, at::IntArrayRef padding=0, at::IntArrayRef dilation=1, bool ceil_mode=false) { + return at::_ops::quantized_max_pool2d_out::redispatch(dispatchKeySet, self, kernel_size, stride, padding, dilation, ceil_mode, out); + } + + // aten::quantized_max_pool2d.out(Tensor self, int[2] kernel_size, int[2] stride=[], int[2] padding=0, int[2] dilation=1, bool ceil_mode=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & quantized_max_pool2d_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, bool ceil_mode, at::Tensor & out) { + return at::_ops::quantized_max_pool2d_out::redispatch(dispatchKeySet, self, kernel_size, stride, padding, dilation, ceil_mode, out); + } + + // aten::quantized_max_pool3d.out(Tensor self, int[3] kernel_size, int[3] stride=[], int[3] padding=0, int[3] dilation=1, bool ceil_mode=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & quantized_max_pool3d_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef stride={}, at::IntArrayRef padding=0, at::IntArrayRef dilation=1, bool ceil_mode=false) { + return at::_ops::quantized_max_pool3d_out::redispatch(dispatchKeySet, self, kernel_size, stride, padding, dilation, ceil_mode, out); + } + + // aten::quantized_max_pool3d.out(Tensor self, int[3] kernel_size, int[3] stride=[], int[3] padding=0, int[3] dilation=1, bool ceil_mode=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & quantized_max_pool3d_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, bool ceil_mode, at::Tensor & out) { + return at::_ops::quantized_max_pool3d_out::redispatch(dispatchKeySet, self, kernel_size, stride, padding, dilation, ceil_mode, out); + } + + // aten::median.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & median_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::median_out::redispatch(dispatchKeySet, self, out); + } + + // aten::median.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & median_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::median_out::redispatch(dispatchKeySet, self, out); + } + + // aten::nanmedian.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & nanmedian_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::nanmedian_out::redispatch(dispatchKeySet, self, out); + } + + // aten::nanmedian.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & nanmedian_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::nanmedian_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_mps_convolution.out(Tensor self, Tensor weight, Tensor? bias, SymInt[] padding, SymInt[] stride, SymInt[] dilation, SymInt groups, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _mps_convolution_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & weight, const c10::optional & bias, at::IntArrayRef padding, at::IntArrayRef stride, at::IntArrayRef dilation, int64_t groups) { + return at::_ops::_mps_convolution_out::redispatch(dispatchKeySet, self, weight, bias, c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(dilation), groups, out); + } + + // aten::_mps_convolution.out(Tensor self, Tensor weight, Tensor? bias, SymInt[] padding, SymInt[] stride, SymInt[] dilation, SymInt groups, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _mps_convolution_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, const c10::optional & bias, at::IntArrayRef padding, at::IntArrayRef stride, at::IntArrayRef dilation, int64_t groups, at::Tensor & out) { + return at::_ops::_mps_convolution_out::redispatch(dispatchKeySet, self, weight, bias, c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(dilation), groups, out); + } + + // aten::_mps_convolution.out(Tensor self, Tensor weight, Tensor? bias, SymInt[] padding, SymInt[] stride, SymInt[] dilation, SymInt groups, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _mps_convolution_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & weight, const c10::optional & bias, c10::SymIntArrayRef padding, c10::SymIntArrayRef stride, c10::SymIntArrayRef dilation, c10::SymInt groups) { + return at::_ops::_mps_convolution_out::redispatch(dispatchKeySet, self, weight, bias, padding, stride, dilation, groups, out); + } + + // aten::_mps_convolution.out(Tensor self, Tensor weight, Tensor? bias, SymInt[] padding, SymInt[] stride, SymInt[] dilation, SymInt groups, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _mps_convolution_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, const c10::optional & bias, c10::SymIntArrayRef padding, c10::SymIntArrayRef stride, c10::SymIntArrayRef dilation, c10::SymInt groups, at::Tensor & out) { + return at::_ops::_mps_convolution_out::redispatch(dispatchKeySet, self, weight, bias, padding, stride, dilation, groups, out); + } + + // aten::mps_convolution_backward.out(Tensor self, Tensor grad_output, Tensor weight, SymInt[] padding, SymInt[] stride, SymInt[] dilation, SymInt groups, bool[3] output_mask, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple mps_convolution_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, const at::Tensor & self, const at::Tensor & grad_output, const at::Tensor & weight, at::IntArrayRef padding, at::IntArrayRef stride, at::IntArrayRef dilation, int64_t groups, ::std::array output_mask) { + return at::_ops::mps_convolution_backward_out::redispatch(dispatchKeySet, self, grad_output, weight, c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(dilation), groups, output_mask, out0, out1, out2); + } + + // aten::mps_convolution_backward.out(Tensor self, Tensor grad_output, Tensor weight, SymInt[] padding, SymInt[] stride, SymInt[] dilation, SymInt groups, bool[3] output_mask, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple mps_convolution_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & grad_output, const at::Tensor & weight, at::IntArrayRef padding, at::IntArrayRef stride, at::IntArrayRef dilation, int64_t groups, ::std::array output_mask, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2) { + return at::_ops::mps_convolution_backward_out::redispatch(dispatchKeySet, self, grad_output, weight, c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(dilation), groups, output_mask, out0, out1, out2); + } + + // aten::mps_convolution_backward.out(Tensor self, Tensor grad_output, Tensor weight, SymInt[] padding, SymInt[] stride, SymInt[] dilation, SymInt groups, bool[3] output_mask, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple mps_convolution_backward_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, const at::Tensor & self, const at::Tensor & grad_output, const at::Tensor & weight, c10::SymIntArrayRef padding, c10::SymIntArrayRef stride, c10::SymIntArrayRef dilation, c10::SymInt groups, ::std::array output_mask) { + return at::_ops::mps_convolution_backward_out::redispatch(dispatchKeySet, self, grad_output, weight, padding, stride, dilation, groups, output_mask, out0, out1, out2); + } + + // aten::mps_convolution_backward.out(Tensor self, Tensor grad_output, Tensor weight, SymInt[] padding, SymInt[] stride, SymInt[] dilation, SymInt groups, bool[3] output_mask, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple mps_convolution_backward_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & grad_output, const at::Tensor & weight, c10::SymIntArrayRef padding, c10::SymIntArrayRef stride, c10::SymIntArrayRef dilation, c10::SymInt groups, ::std::array output_mask, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2) { + return at::_ops::mps_convolution_backward_out::redispatch(dispatchKeySet, self, grad_output, weight, padding, stride, dilation, groups, output_mask, out0, out1, out2); + } + + // aten::mkldnn_convolution.out(Tensor self, Tensor weight, Tensor? bias, SymInt[] padding, SymInt[] stride, SymInt[] dilation, SymInt groups, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & mkldnn_convolution_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & weight, const c10::optional & bias, at::IntArrayRef padding, at::IntArrayRef stride, at::IntArrayRef dilation, int64_t groups) { + return at::_ops::mkldnn_convolution_out::redispatch(dispatchKeySet, self, weight, bias, c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(dilation), groups, out); + } + + // aten::mkldnn_convolution.out(Tensor self, Tensor weight, Tensor? bias, SymInt[] padding, SymInt[] stride, SymInt[] dilation, SymInt groups, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & mkldnn_convolution_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, const c10::optional & bias, at::IntArrayRef padding, at::IntArrayRef stride, at::IntArrayRef dilation, int64_t groups, at::Tensor & out) { + return at::_ops::mkldnn_convolution_out::redispatch(dispatchKeySet, self, weight, bias, c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(dilation), groups, out); + } + + // aten::mkldnn_convolution.out(Tensor self, Tensor weight, Tensor? bias, SymInt[] padding, SymInt[] stride, SymInt[] dilation, SymInt groups, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & mkldnn_convolution_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & weight, const c10::optional & bias, c10::SymIntArrayRef padding, c10::SymIntArrayRef stride, c10::SymIntArrayRef dilation, c10::SymInt groups) { + return at::_ops::mkldnn_convolution_out::redispatch(dispatchKeySet, self, weight, bias, padding, stride, dilation, groups, out); + } + + // aten::mkldnn_convolution.out(Tensor self, Tensor weight, Tensor? bias, SymInt[] padding, SymInt[] stride, SymInt[] dilation, SymInt groups, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & mkldnn_convolution_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, const c10::optional & bias, c10::SymIntArrayRef padding, c10::SymIntArrayRef stride, c10::SymIntArrayRef dilation, c10::SymInt groups, at::Tensor & out) { + return at::_ops::mkldnn_convolution_out::redispatch(dispatchKeySet, self, weight, bias, padding, stride, dilation, groups, out); + } + + // aten::mkldnn_rnn_layer.out(Tensor input, Tensor weight0, Tensor weight1, Tensor weight2, Tensor weight3, Tensor hx_, Tensor cx_, bool reverse, int[] batch_sizes, int mode, int hidden_size, int num_layers, bool has_biases, bool bidirectional, bool batch_first, bool train, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2, Tensor(d!) out3) -> (Tensor(a!), Tensor(b!), Tensor(c!), Tensor(d!)) + inline ::std::tuple mkldnn_rnn_layer_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, at::Tensor & out3, const at::Tensor & input, const at::Tensor & weight0, const at::Tensor & weight1, const at::Tensor & weight2, const at::Tensor & weight3, const at::Tensor & hx_, const at::Tensor & cx_, bool reverse, at::IntArrayRef batch_sizes, int64_t mode, int64_t hidden_size, int64_t num_layers, bool has_biases, bool bidirectional, bool batch_first, bool train) { + return at::_ops::mkldnn_rnn_layer_out::redispatch(dispatchKeySet, input, weight0, weight1, weight2, weight3, hx_, cx_, reverse, batch_sizes, mode, hidden_size, num_layers, has_biases, bidirectional, batch_first, train, out0, out1, out2, out3); + } + + // aten::mkldnn_rnn_layer.out(Tensor input, Tensor weight0, Tensor weight1, Tensor weight2, Tensor weight3, Tensor hx_, Tensor cx_, bool reverse, int[] batch_sizes, int mode, int hidden_size, int num_layers, bool has_biases, bool bidirectional, bool batch_first, bool train, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2, Tensor(d!) out3) -> (Tensor(a!), Tensor(b!), Tensor(c!), Tensor(d!)) + inline ::std::tuple mkldnn_rnn_layer_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & weight0, const at::Tensor & weight1, const at::Tensor & weight2, const at::Tensor & weight3, const at::Tensor & hx_, const at::Tensor & cx_, bool reverse, at::IntArrayRef batch_sizes, int64_t mode, int64_t hidden_size, int64_t num_layers, bool has_biases, bool bidirectional, bool batch_first, bool train, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, at::Tensor & out3) { + return at::_ops::mkldnn_rnn_layer_out::redispatch(dispatchKeySet, input, weight0, weight1, weight2, weight3, hx_, cx_, reverse, batch_sizes, mode, hidden_size, num_layers, has_biases, bidirectional, batch_first, train, out0, out1, out2, out3); + } + + // aten::mkldnn_rnn_layer_backward.out(Tensor input, Tensor weight1, Tensor weight2, Tensor weight3, Tensor weight4, Tensor hx_, Tensor cx_tmp, Tensor output, Tensor hy_, Tensor cy_, Tensor? grad_output, Tensor? grad_hy, Tensor? grad_cy, bool reverse, int mode, int hidden_size, int num_layers, bool has_biases, bool train, bool bidirectional, int[] batch_sizes, bool batch_first, Tensor workspace, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2, Tensor(d!) out3, Tensor(e!) out4, Tensor(f!) out5, Tensor(g!) out6) -> (Tensor(a!), Tensor(b!), Tensor(c!), Tensor(d!), Tensor(e!), Tensor(f!), Tensor(g!)) + inline ::std::tuple mkldnn_rnn_layer_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, at::Tensor & out3, at::Tensor & out4, at::Tensor & out5, at::Tensor & out6, const at::Tensor & input, const at::Tensor & weight1, const at::Tensor & weight2, const at::Tensor & weight3, const at::Tensor & weight4, const at::Tensor & hx_, const at::Tensor & cx_tmp, const at::Tensor & output, const at::Tensor & hy_, const at::Tensor & cy_, const c10::optional & grad_output, const c10::optional & grad_hy, const c10::optional & grad_cy, bool reverse, int64_t mode, int64_t hidden_size, int64_t num_layers, bool has_biases, bool train, bool bidirectional, at::IntArrayRef batch_sizes, bool batch_first, const at::Tensor & workspace) { + return at::_ops::mkldnn_rnn_layer_backward_out::redispatch(dispatchKeySet, input, weight1, weight2, weight3, weight4, hx_, cx_tmp, output, hy_, cy_, grad_output, grad_hy, grad_cy, reverse, mode, hidden_size, num_layers, has_biases, train, bidirectional, batch_sizes, batch_first, workspace, out0, out1, out2, out3, out4, out5, out6); + } + + // aten::mkldnn_rnn_layer_backward.out(Tensor input, Tensor weight1, Tensor weight2, Tensor weight3, Tensor weight4, Tensor hx_, Tensor cx_tmp, Tensor output, Tensor hy_, Tensor cy_, Tensor? grad_output, Tensor? grad_hy, Tensor? grad_cy, bool reverse, int mode, int hidden_size, int num_layers, bool has_biases, bool train, bool bidirectional, int[] batch_sizes, bool batch_first, Tensor workspace, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2, Tensor(d!) out3, Tensor(e!) out4, Tensor(f!) out5, Tensor(g!) out6) -> (Tensor(a!), Tensor(b!), Tensor(c!), Tensor(d!), Tensor(e!), Tensor(f!), Tensor(g!)) + inline ::std::tuple mkldnn_rnn_layer_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & weight1, const at::Tensor & weight2, const at::Tensor & weight3, const at::Tensor & weight4, const at::Tensor & hx_, const at::Tensor & cx_tmp, const at::Tensor & output, const at::Tensor & hy_, const at::Tensor & cy_, const c10::optional & grad_output, const c10::optional & grad_hy, const c10::optional & grad_cy, bool reverse, int64_t mode, int64_t hidden_size, int64_t num_layers, bool has_biases, bool train, bool bidirectional, at::IntArrayRef batch_sizes, bool batch_first, const at::Tensor & workspace, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, at::Tensor & out3, at::Tensor & out4, at::Tensor & out5, at::Tensor & out6) { + return at::_ops::mkldnn_rnn_layer_backward_out::redispatch(dispatchKeySet, input, weight1, weight2, weight3, weight4, hx_, cx_tmp, output, hy_, cy_, grad_output, grad_hy, grad_cy, reverse, mode, hidden_size, num_layers, has_biases, train, bidirectional, batch_sizes, batch_first, workspace, out0, out1, out2, out3, out4, out5, out6); + } + + // aten::miopen_batch_norm.out(Tensor input, Tensor weight, Tensor? bias, Tensor? running_mean, Tensor? running_var, bool training, float exponential_average_factor, float epsilon, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple miopen_batch_norm_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias, const c10::optional & running_mean, const c10::optional & running_var, bool training, double exponential_average_factor, double epsilon) { + return at::_ops::miopen_batch_norm_out::redispatch(dispatchKeySet, input, weight, bias, running_mean, running_var, training, exponential_average_factor, epsilon, out0, out1, out2); + } + + // aten::miopen_batch_norm.out(Tensor input, Tensor weight, Tensor? bias, Tensor? running_mean, Tensor? running_var, bool training, float exponential_average_factor, float epsilon, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple miopen_batch_norm_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias, const c10::optional & running_mean, const c10::optional & running_var, bool training, double exponential_average_factor, double epsilon, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2) { + return at::_ops::miopen_batch_norm_out::redispatch(dispatchKeySet, input, weight, bias, running_mean, running_var, training, exponential_average_factor, epsilon, out0, out1, out2); + } + + // aten::miopen_batch_norm_backward.out(Tensor input, Tensor grad_output, Tensor weight, Tensor? running_mean, Tensor? running_var, Tensor? save_mean, Tensor? save_var, float epsilon, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple miopen_batch_norm_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, const at::Tensor & input, const at::Tensor & grad_output, const at::Tensor & weight, const c10::optional & running_mean, const c10::optional & running_var, const c10::optional & save_mean, const c10::optional & save_var, double epsilon) { + return at::_ops::miopen_batch_norm_backward_out::redispatch(dispatchKeySet, input, grad_output, weight, running_mean, running_var, save_mean, save_var, epsilon, out0, out1, out2); + } + + // aten::miopen_batch_norm_backward.out(Tensor input, Tensor grad_output, Tensor weight, Tensor? running_mean, Tensor? running_var, Tensor? save_mean, Tensor? save_var, float epsilon, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple miopen_batch_norm_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & grad_output, const at::Tensor & weight, const c10::optional & running_mean, const c10::optional & running_var, const c10::optional & save_mean, const c10::optional & save_var, double epsilon, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2) { + return at::_ops::miopen_batch_norm_backward_out::redispatch(dispatchKeySet, input, grad_output, weight, running_mean, running_var, save_mean, save_var, epsilon, out0, out1, out2); + } + + // aten::miopen_convolution.out(Tensor self, Tensor weight, Tensor? bias, SymInt[] padding, SymInt[] stride, SymInt[] dilation, SymInt groups, bool benchmark, bool deterministic, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & miopen_convolution_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & weight, const c10::optional & bias, at::IntArrayRef padding, at::IntArrayRef stride, at::IntArrayRef dilation, int64_t groups, bool benchmark, bool deterministic) { + return at::_ops::miopen_convolution_out::redispatch(dispatchKeySet, self, weight, bias, c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(dilation), groups, benchmark, deterministic, out); + } + + // aten::miopen_convolution.out(Tensor self, Tensor weight, Tensor? bias, SymInt[] padding, SymInt[] stride, SymInt[] dilation, SymInt groups, bool benchmark, bool deterministic, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & miopen_convolution_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, const c10::optional & bias, at::IntArrayRef padding, at::IntArrayRef stride, at::IntArrayRef dilation, int64_t groups, bool benchmark, bool deterministic, at::Tensor & out) { + return at::_ops::miopen_convolution_out::redispatch(dispatchKeySet, self, weight, bias, c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(dilation), groups, benchmark, deterministic, out); + } + + // aten::miopen_convolution.out(Tensor self, Tensor weight, Tensor? bias, SymInt[] padding, SymInt[] stride, SymInt[] dilation, SymInt groups, bool benchmark, bool deterministic, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & miopen_convolution_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & weight, const c10::optional & bias, c10::SymIntArrayRef padding, c10::SymIntArrayRef stride, c10::SymIntArrayRef dilation, c10::SymInt groups, bool benchmark, bool deterministic) { + return at::_ops::miopen_convolution_out::redispatch(dispatchKeySet, self, weight, bias, padding, stride, dilation, groups, benchmark, deterministic, out); + } + + // aten::miopen_convolution.out(Tensor self, Tensor weight, Tensor? bias, SymInt[] padding, SymInt[] stride, SymInt[] dilation, SymInt groups, bool benchmark, bool deterministic, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & miopen_convolution_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, const c10::optional & bias, c10::SymIntArrayRef padding, c10::SymIntArrayRef stride, c10::SymIntArrayRef dilation, c10::SymInt groups, bool benchmark, bool deterministic, at::Tensor & out) { + return at::_ops::miopen_convolution_out::redispatch(dispatchKeySet, self, weight, bias, padding, stride, dilation, groups, benchmark, deterministic, out); + } + + // aten::miopen_convolution_transpose.out(Tensor self, Tensor weight, Tensor? bias, SymInt[] padding, SymInt[] output_padding, SymInt[] stride, SymInt[] dilation, SymInt groups, bool benchmark, bool deterministic, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & miopen_convolution_transpose_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & weight, const c10::optional & bias, at::IntArrayRef padding, at::IntArrayRef output_padding, at::IntArrayRef stride, at::IntArrayRef dilation, int64_t groups, bool benchmark, bool deterministic) { + return at::_ops::miopen_convolution_transpose_out::redispatch(dispatchKeySet, self, weight, bias, c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(output_padding), c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(dilation), groups, benchmark, deterministic, out); + } + + // aten::miopen_convolution_transpose.out(Tensor self, Tensor weight, Tensor? bias, SymInt[] padding, SymInt[] output_padding, SymInt[] stride, SymInt[] dilation, SymInt groups, bool benchmark, bool deterministic, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & miopen_convolution_transpose_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, const c10::optional & bias, at::IntArrayRef padding, at::IntArrayRef output_padding, at::IntArrayRef stride, at::IntArrayRef dilation, int64_t groups, bool benchmark, bool deterministic, at::Tensor & out) { + return at::_ops::miopen_convolution_transpose_out::redispatch(dispatchKeySet, self, weight, bias, c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(output_padding), c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(dilation), groups, benchmark, deterministic, out); + } + + // aten::miopen_convolution_transpose.out(Tensor self, Tensor weight, Tensor? bias, SymInt[] padding, SymInt[] output_padding, SymInt[] stride, SymInt[] dilation, SymInt groups, bool benchmark, bool deterministic, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & miopen_convolution_transpose_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & weight, const c10::optional & bias, c10::SymIntArrayRef padding, c10::SymIntArrayRef output_padding, c10::SymIntArrayRef stride, c10::SymIntArrayRef dilation, c10::SymInt groups, bool benchmark, bool deterministic) { + return at::_ops::miopen_convolution_transpose_out::redispatch(dispatchKeySet, self, weight, bias, padding, output_padding, stride, dilation, groups, benchmark, deterministic, out); + } + + // aten::miopen_convolution_transpose.out(Tensor self, Tensor weight, Tensor? bias, SymInt[] padding, SymInt[] output_padding, SymInt[] stride, SymInt[] dilation, SymInt groups, bool benchmark, bool deterministic, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & miopen_convolution_transpose_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, const c10::optional & bias, c10::SymIntArrayRef padding, c10::SymIntArrayRef output_padding, c10::SymIntArrayRef stride, c10::SymIntArrayRef dilation, c10::SymInt groups, bool benchmark, bool deterministic, at::Tensor & out) { + return at::_ops::miopen_convolution_transpose_out::redispatch(dispatchKeySet, self, weight, bias, padding, output_padding, stride, dilation, groups, benchmark, deterministic, out); + } + + // aten::miopen_depthwise_convolution.out(Tensor self, Tensor weight, Tensor? bias, SymInt[] padding, SymInt[] stride, SymInt[] dilation, SymInt groups, bool benchmark, bool deterministic, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & miopen_depthwise_convolution_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & weight, const c10::optional & bias, at::IntArrayRef padding, at::IntArrayRef stride, at::IntArrayRef dilation, int64_t groups, bool benchmark, bool deterministic) { + return at::_ops::miopen_depthwise_convolution_out::redispatch(dispatchKeySet, self, weight, bias, c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(dilation), groups, benchmark, deterministic, out); + } + + // aten::miopen_depthwise_convolution.out(Tensor self, Tensor weight, Tensor? bias, SymInt[] padding, SymInt[] stride, SymInt[] dilation, SymInt groups, bool benchmark, bool deterministic, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & miopen_depthwise_convolution_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, const c10::optional & bias, at::IntArrayRef padding, at::IntArrayRef stride, at::IntArrayRef dilation, int64_t groups, bool benchmark, bool deterministic, at::Tensor & out) { + return at::_ops::miopen_depthwise_convolution_out::redispatch(dispatchKeySet, self, weight, bias, c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(dilation), groups, benchmark, deterministic, out); + } + + // aten::miopen_depthwise_convolution.out(Tensor self, Tensor weight, Tensor? bias, SymInt[] padding, SymInt[] stride, SymInt[] dilation, SymInt groups, bool benchmark, bool deterministic, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & miopen_depthwise_convolution_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & weight, const c10::optional & bias, c10::SymIntArrayRef padding, c10::SymIntArrayRef stride, c10::SymIntArrayRef dilation, c10::SymInt groups, bool benchmark, bool deterministic) { + return at::_ops::miopen_depthwise_convolution_out::redispatch(dispatchKeySet, self, weight, bias, padding, stride, dilation, groups, benchmark, deterministic, out); + } + + // aten::miopen_depthwise_convolution.out(Tensor self, Tensor weight, Tensor? bias, SymInt[] padding, SymInt[] stride, SymInt[] dilation, SymInt groups, bool benchmark, bool deterministic, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & miopen_depthwise_convolution_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, const c10::optional & bias, c10::SymIntArrayRef padding, c10::SymIntArrayRef stride, c10::SymIntArrayRef dilation, c10::SymInt groups, bool benchmark, bool deterministic, at::Tensor & out) { + return at::_ops::miopen_depthwise_convolution_out::redispatch(dispatchKeySet, self, weight, bias, padding, stride, dilation, groups, benchmark, deterministic, out); + } + + // aten::miopen_rnn.out(Tensor input, Tensor[] weight, int weight_stride0, Tensor hx, Tensor? cx, int mode, int hidden_size, int num_layers, bool batch_first, float dropout, bool train, bool bidirectional, int[] batch_sizes, Tensor? dropout_state, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2, Tensor(d!) out3, Tensor(e!) out4) -> (Tensor(a!), Tensor(b!), Tensor(c!), Tensor(d!), Tensor(e!)) + inline ::std::tuple miopen_rnn_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, at::Tensor & out3, at::Tensor & out4, const at::Tensor & input, at::TensorList weight, int64_t weight_stride0, const at::Tensor & hx, const c10::optional & cx, int64_t mode, int64_t hidden_size, int64_t num_layers, bool batch_first, double dropout, bool train, bool bidirectional, at::IntArrayRef batch_sizes, const c10::optional & dropout_state) { + return at::_ops::miopen_rnn_out::redispatch(dispatchKeySet, input, weight, weight_stride0, hx, cx, mode, hidden_size, num_layers, batch_first, dropout, train, bidirectional, batch_sizes, dropout_state, out0, out1, out2, out3, out4); + } + + // aten::miopen_rnn.out(Tensor input, Tensor[] weight, int weight_stride0, Tensor hx, Tensor? cx, int mode, int hidden_size, int num_layers, bool batch_first, float dropout, bool train, bool bidirectional, int[] batch_sizes, Tensor? dropout_state, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2, Tensor(d!) out3, Tensor(e!) out4) -> (Tensor(a!), Tensor(b!), Tensor(c!), Tensor(d!), Tensor(e!)) + inline ::std::tuple miopen_rnn_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, at::TensorList weight, int64_t weight_stride0, const at::Tensor & hx, const c10::optional & cx, int64_t mode, int64_t hidden_size, int64_t num_layers, bool batch_first, double dropout, bool train, bool bidirectional, at::IntArrayRef batch_sizes, const c10::optional & dropout_state, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, at::Tensor & out3, at::Tensor & out4) { + return at::_ops::miopen_rnn_out::redispatch(dispatchKeySet, input, weight, weight_stride0, hx, cx, mode, hidden_size, num_layers, batch_first, dropout, train, bidirectional, batch_sizes, dropout_state, out0, out1, out2, out3, out4); + } + + // aten::miopen_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, int hidden_size, int num_layers, bool batch_first, float dropout, bool train, bool bidirectional, int[] 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 miopen_rnn_backward_out(c10::DispatchKeySet dispatchKeySet, 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 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::miopen_rnn_backward_out::redispatch(dispatchKeySet, input, weight, weight_stride0, weight_buf, hx, cx, output, grad_output, grad_hy, grad_cy, mode, hidden_size, num_layers, batch_first, dropout, train, bidirectional, batch_sizes, dropout_state, reserve, output_mask, out0, out1, out2, out3); + } + + // aten::miopen_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, int hidden_size, int num_layers, bool batch_first, float dropout, bool train, bool bidirectional, int[] 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 miopen_rnn_backward_outf(c10::DispatchKeySet dispatchKeySet, 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 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::miopen_rnn_backward_out::redispatch(dispatchKeySet, input, weight, weight_stride0, weight_buf, hx, cx, output, grad_output, grad_hy, grad_cy, mode, hidden_size, num_layers, batch_first, dropout, train, bidirectional, batch_sizes, dropout_state, reserve, output_mask, out0, out1, out2, out3); + } + + // aten::_sparse_sparse_matmul.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _sparse_sparse_matmul_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::_sparse_sparse_matmul_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::_sparse_sparse_matmul.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _sparse_sparse_matmul_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::_sparse_sparse_matmul_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::mul.Scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & mul_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::mul_Scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::mul.Scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & mul_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other, at::Tensor & out) { + return at::_ops::mul_Scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::_native_batch_norm_legit_functional(Tensor input, Tensor? weight, Tensor? bias, Tensor running_mean, Tensor running_var, bool training, float momentum, float eps) -> (Tensor, Tensor, Tensor, Tensor running_mean_out, Tensor running_var_out) + inline ::std::tuple _native_batch_norm_legit_functional(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const c10::optional & weight, const c10::optional & bias, const at::Tensor & running_mean, const at::Tensor & running_var, bool training, double momentum, double eps) { + return at::_ops::_native_batch_norm_legit_functional::redispatch(dispatchKeySet, input, weight, bias, running_mean, running_var, training, momentum, eps); + } + + // aten::_native_batch_norm_legit_no_training.out(Tensor input, Tensor? weight, Tensor? bias, Tensor running_mean, Tensor running_var, float momentum, float eps, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple _native_batch_norm_legit_no_training_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, const at::Tensor & input, const c10::optional & weight, const c10::optional & bias, const at::Tensor & running_mean, const at::Tensor & running_var, double momentum, double eps) { + return at::_ops::_native_batch_norm_legit_no_training_out::redispatch(dispatchKeySet, input, weight, bias, running_mean, running_var, momentum, eps, out0, out1, out2); + } + + // aten::_native_batch_norm_legit_no_training.out(Tensor input, Tensor? weight, Tensor? bias, Tensor running_mean, Tensor running_var, float momentum, float eps, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple _native_batch_norm_legit_no_training_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const c10::optional & weight, const c10::optional & bias, const at::Tensor & running_mean, const at::Tensor & running_var, double momentum, double eps, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2) { + return at::_ops::_native_batch_norm_legit_no_training_out::redispatch(dispatchKeySet, input, weight, bias, running_mean, running_var, momentum, eps, out0, out1, out2); + } + + // aten::batch_norm_stats.out(Tensor input, float eps, *, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple batch_norm_stats_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, const at::Tensor & input, double eps) { + return at::_ops::batch_norm_stats_out::redispatch(dispatchKeySet, input, eps, out0, out1); + } + + // aten::batch_norm_stats.out(Tensor input, float eps, *, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple batch_norm_stats_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, double eps, at::Tensor & out0, at::Tensor & out1) { + return at::_ops::batch_norm_stats_out::redispatch(dispatchKeySet, input, eps, out0, out1); + } + + // aten::batch_norm_gather_stats.out(Tensor input, Tensor mean, Tensor invstd, Tensor? running_mean, Tensor? running_var, float momentum, float eps, int count, *, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple batch_norm_gather_stats_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, const at::Tensor & input, const at::Tensor & mean, const at::Tensor & invstd, const c10::optional & running_mean, const c10::optional & running_var, double momentum, double eps, int64_t count) { + return at::_ops::batch_norm_gather_stats_out::redispatch(dispatchKeySet, input, mean, invstd, running_mean, running_var, momentum, eps, count, out0, out1); + } + + // aten::batch_norm_gather_stats.out(Tensor input, Tensor mean, Tensor invstd, Tensor? running_mean, Tensor? running_var, float momentum, float eps, int count, *, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple batch_norm_gather_stats_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & mean, const at::Tensor & invstd, const c10::optional & running_mean, const c10::optional & running_var, double momentum, double eps, int64_t count, at::Tensor & out0, at::Tensor & out1) { + return at::_ops::batch_norm_gather_stats_out::redispatch(dispatchKeySet, input, mean, invstd, running_mean, running_var, momentum, eps, count, out0, out1); + } + + // aten::batch_norm_gather_stats_with_counts.out(Tensor input, Tensor mean, Tensor invstd, Tensor? running_mean, Tensor? running_var, float momentum, float eps, Tensor counts, *, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple batch_norm_gather_stats_with_counts_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, const at::Tensor & input, const at::Tensor & mean, const at::Tensor & invstd, const c10::optional & running_mean, const c10::optional & running_var, double momentum, double eps, const at::Tensor & counts) { + return at::_ops::batch_norm_gather_stats_with_counts_out::redispatch(dispatchKeySet, input, mean, invstd, running_mean, running_var, momentum, eps, counts, out0, out1); + } + + // aten::batch_norm_gather_stats_with_counts.out(Tensor input, Tensor mean, Tensor invstd, Tensor? running_mean, Tensor? running_var, float momentum, float eps, Tensor counts, *, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple batch_norm_gather_stats_with_counts_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & mean, const at::Tensor & invstd, const c10::optional & running_mean, const c10::optional & running_var, double momentum, double eps, const at::Tensor & counts, at::Tensor & out0, at::Tensor & out1) { + return at::_ops::batch_norm_gather_stats_with_counts_out::redispatch(dispatchKeySet, input, mean, invstd, running_mean, running_var, momentum, eps, counts, out0, out1); + } + + // aten::native_batch_norm_backward.out(Tensor grad_out, Tensor input, Tensor? weight, Tensor? running_mean, Tensor? running_var, Tensor? save_mean, Tensor? save_invstd, bool train, float eps, bool[3] output_mask, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple native_batch_norm_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, const at::Tensor & grad_out, const at::Tensor & input, const c10::optional & weight, const c10::optional & running_mean, const c10::optional & running_var, const c10::optional & save_mean, const c10::optional & save_invstd, bool train, double eps, ::std::array output_mask) { + return at::_ops::native_batch_norm_backward_out::redispatch(dispatchKeySet, grad_out, input, weight, running_mean, running_var, save_mean, save_invstd, train, eps, output_mask, out0, out1, out2); + } + + // aten::native_batch_norm_backward.out(Tensor grad_out, Tensor input, Tensor? weight, Tensor? running_mean, Tensor? running_var, Tensor? save_mean, Tensor? save_invstd, bool train, float eps, bool[3] output_mask, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple native_batch_norm_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_out, const at::Tensor & input, const c10::optional & weight, const c10::optional & running_mean, const c10::optional & running_var, const c10::optional & save_mean, const c10::optional & save_invstd, bool train, double eps, ::std::array output_mask, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2) { + return at::_ops::native_batch_norm_backward_out::redispatch(dispatchKeySet, grad_out, input, weight, running_mean, running_var, save_mean, save_invstd, train, eps, output_mask, out0, out1, out2); + } + + // aten::batch_norm_backward_reduce.out(Tensor grad_out, Tensor input, Tensor mean, Tensor invstd, Tensor? weight, bool input_g, bool weight_g, bool bias_g, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2, Tensor(d!) out3) -> (Tensor(a!), Tensor(b!), Tensor(c!), Tensor(d!)) + inline ::std::tuple batch_norm_backward_reduce_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, at::Tensor & out3, const at::Tensor & grad_out, const at::Tensor & input, const at::Tensor & mean, const at::Tensor & invstd, const c10::optional & weight, bool input_g, bool weight_g, bool bias_g) { + return at::_ops::batch_norm_backward_reduce_out::redispatch(dispatchKeySet, grad_out, input, mean, invstd, weight, input_g, weight_g, bias_g, out0, out1, out2, out3); + } + + // aten::batch_norm_backward_reduce.out(Tensor grad_out, Tensor input, Tensor mean, Tensor invstd, Tensor? weight, bool input_g, bool weight_g, bool bias_g, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2, Tensor(d!) out3) -> (Tensor(a!), Tensor(b!), Tensor(c!), Tensor(d!)) + inline ::std::tuple batch_norm_backward_reduce_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_out, const at::Tensor & input, const at::Tensor & mean, const at::Tensor & invstd, const c10::optional & weight, bool input_g, bool weight_g, bool bias_g, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, at::Tensor & out3) { + return at::_ops::batch_norm_backward_reduce_out::redispatch(dispatchKeySet, grad_out, input, mean, invstd, weight, input_g, weight_g, bias_g, out0, out1, out2, out3); + } + + // aten::batch_norm_backward_elemt.out(Tensor grad_out, Tensor input, Tensor mean, Tensor invstd, Tensor? weight, Tensor sum_dy, Tensor sum_dy_xmu, Tensor count, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & batch_norm_backward_elemt_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & grad_out, const at::Tensor & input, const at::Tensor & mean, const at::Tensor & invstd, const c10::optional & weight, const at::Tensor & sum_dy, const at::Tensor & sum_dy_xmu, const at::Tensor & count) { + return at::_ops::batch_norm_backward_elemt_out::redispatch(dispatchKeySet, grad_out, input, mean, invstd, weight, sum_dy, sum_dy_xmu, count, out); + } + + // aten::batch_norm_backward_elemt.out(Tensor grad_out, Tensor input, Tensor mean, Tensor invstd, Tensor? weight, Tensor sum_dy, Tensor sum_dy_xmu, Tensor count, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & batch_norm_backward_elemt_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_out, const at::Tensor & input, const at::Tensor & mean, const at::Tensor & invstd, const c10::optional & weight, const at::Tensor & sum_dy, const at::Tensor & sum_dy_xmu, const at::Tensor & count, at::Tensor & out) { + return at::_ops::batch_norm_backward_elemt_out::redispatch(dispatchKeySet, grad_out, input, mean, invstd, weight, sum_dy, sum_dy_xmu, count, out); + } + + // aten::batch_norm_update_stats.out(Tensor input, Tensor? running_mean, Tensor? running_var, float momentum, *, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple batch_norm_update_stats_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, const at::Tensor & input, const c10::optional & running_mean, const c10::optional & running_var, double momentum) { + return at::_ops::batch_norm_update_stats_out::redispatch(dispatchKeySet, input, running_mean, running_var, momentum, out0, out1); + } + + // aten::batch_norm_update_stats.out(Tensor input, Tensor? running_mean, Tensor? running_var, float momentum, *, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple batch_norm_update_stats_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const c10::optional & running_mean, const c10::optional & running_var, double momentum, at::Tensor & out0, at::Tensor & out1) { + return at::_ops::batch_norm_update_stats_out::redispatch(dispatchKeySet, input, running_mean, running_var, momentum, out0, out1); + } + + // aten::_nnpack_spatial_convolution.out(Tensor input, Tensor weight, Tensor? bias, SymInt[2] padding, SymInt[2] stride=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _nnpack_spatial_convolution_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias, at::IntArrayRef padding, at::IntArrayRef stride=1) { + return at::_ops::_nnpack_spatial_convolution_out::redispatch(dispatchKeySet, input, weight, bias, c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(stride), out); + } + + // aten::_nnpack_spatial_convolution.out(Tensor input, Tensor weight, Tensor? bias, SymInt[2] padding, SymInt[2] stride=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _nnpack_spatial_convolution_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias, at::IntArrayRef padding, at::IntArrayRef stride, at::Tensor & out) { + return at::_ops::_nnpack_spatial_convolution_out::redispatch(dispatchKeySet, input, weight, bias, c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(stride), out); + } + + // aten::_nnpack_spatial_convolution.out(Tensor input, Tensor weight, Tensor? bias, SymInt[2] padding, SymInt[2] stride=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _nnpack_spatial_convolution_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias, c10::SymIntArrayRef padding, c10::SymIntArrayRef stride=c10::SymInt(1)) { + return at::_ops::_nnpack_spatial_convolution_out::redispatch(dispatchKeySet, input, weight, bias, padding, stride, out); + } + + // aten::_nnpack_spatial_convolution.out(Tensor input, Tensor weight, Tensor? bias, SymInt[2] padding, SymInt[2] stride=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _nnpack_spatial_convolution_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias, c10::SymIntArrayRef padding, c10::SymIntArrayRef stride, at::Tensor & out) { + return at::_ops::_nnpack_spatial_convolution_out::redispatch(dispatchKeySet, input, weight, bias, padding, stride, out); + } + + // aten::ones.names_out(int[] size, *, Dimname[]? names, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & ones_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, at::IntArrayRef size, c10::optional names) { + return at::_ops::ones_names_out::redispatch(dispatchKeySet, size, names, out); + } + + // aten::ones.names_out(int[] size, *, Dimname[]? names, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & ones_outf(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, c10::optional names, at::Tensor & out) { + return at::_ops::ones_names_out::redispatch(dispatchKeySet, size, names, out); + } + + // aten::ones_like.out(Tensor self, *, MemoryFormat? memory_format=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & ones_like_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::optional memory_format=c10::nullopt) { + return at::_ops::ones_like_out::redispatch(dispatchKeySet, self, memory_format, out); + } + + // aten::ones_like.out(Tensor self, *, MemoryFormat? memory_format=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & ones_like_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional memory_format, at::Tensor & out) { + return at::_ops::ones_like_out::redispatch(dispatchKeySet, self, memory_format, out); + } + + // aten::_euclidean_dist.out(Tensor x1, Tensor x2, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _euclidean_dist_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & x1, const at::Tensor & x2) { + return at::_ops::_euclidean_dist_out::redispatch(dispatchKeySet, x1, x2, out); + } + + // aten::_euclidean_dist.out(Tensor x1, Tensor x2, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _euclidean_dist_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x1, const at::Tensor & x2, at::Tensor & out) { + return at::_ops::_euclidean_dist_out::redispatch(dispatchKeySet, x1, x2, out); + } + + // aten::_cdist_forward.out(Tensor x1, Tensor x2, float p, int? compute_mode, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _cdist_forward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & x1, const at::Tensor & x2, double p, c10::optional compute_mode) { + return at::_ops::_cdist_forward_out::redispatch(dispatchKeySet, x1, x2, p, compute_mode, out); + } + + // aten::_cdist_forward.out(Tensor x1, Tensor x2, float p, int? compute_mode, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _cdist_forward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x1, const at::Tensor & x2, double p, c10::optional compute_mode, at::Tensor & out) { + return at::_ops::_cdist_forward_out::redispatch(dispatchKeySet, x1, x2, p, compute_mode, out); + } + + // aten::_cdist_backward.out(Tensor grad, Tensor x1, Tensor x2, float p, Tensor cdist, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _cdist_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & grad, const at::Tensor & x1, const at::Tensor & x2, double p, const at::Tensor & cdist) { + return at::_ops::_cdist_backward_out::redispatch(dispatchKeySet, grad, x1, x2, p, cdist, out); + } + + // aten::_cdist_backward.out(Tensor grad, Tensor x1, Tensor x2, float p, Tensor cdist, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _cdist_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad, const at::Tensor & x1, const at::Tensor & x2, double p, const at::Tensor & cdist, at::Tensor & out) { + return at::_ops::_cdist_backward_out::redispatch(dispatchKeySet, grad, x1, x2, p, cdist, out); + } + + // aten::_pdist_forward.out(Tensor self, float p=2, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _pdist_forward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, double p=2) { + return at::_ops::_pdist_forward_out::redispatch(dispatchKeySet, self, p, out); + } + + // aten::_pdist_forward.out(Tensor self, float p=2, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _pdist_forward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, double p, at::Tensor & out) { + return at::_ops::_pdist_forward_out::redispatch(dispatchKeySet, self, p, out); + } + + // aten::_pdist_backward.out(Tensor grad, Tensor self, float p, Tensor pdist, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _pdist_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & grad, const at::Tensor & self, double p, const at::Tensor & pdist) { + return at::_ops::_pdist_backward_out::redispatch(dispatchKeySet, grad, self, p, pdist, out); + } + + // aten::_pdist_backward.out(Tensor grad, Tensor self, float p, Tensor pdist, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _pdist_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad, const at::Tensor & self, double p, const at::Tensor & pdist, at::Tensor & out) { + return at::_ops::_pdist_backward_out::redispatch(dispatchKeySet, grad, self, p, pdist, out); + } + + // aten::pixel_shuffle.out(Tensor self, int upscale_factor, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & pixel_shuffle_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t upscale_factor) { + return at::_ops::pixel_shuffle_out::redispatch(dispatchKeySet, self, upscale_factor, out); + } + + // aten::pixel_shuffle.out(Tensor self, int upscale_factor, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & pixel_shuffle_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t upscale_factor, at::Tensor & out) { + return at::_ops::pixel_shuffle_out::redispatch(dispatchKeySet, self, upscale_factor, out); + } + + // aten::pixel_unshuffle.out(Tensor self, int downscale_factor, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & pixel_unshuffle_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t downscale_factor) { + return at::_ops::pixel_unshuffle_out::redispatch(dispatchKeySet, self, downscale_factor, out); + } + + // aten::pixel_unshuffle.out(Tensor self, int downscale_factor, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & pixel_unshuffle_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t downscale_factor, at::Tensor & out) { + return at::_ops::pixel_unshuffle_out::redispatch(dispatchKeySet, self, downscale_factor, out); + } + + // aten::channel_shuffle.out(Tensor self, SymInt groups, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & channel_shuffle_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t groups) { + return at::_ops::channel_shuffle_out::redispatch(dispatchKeySet, self, groups, out); + } + + // aten::channel_shuffle.out(Tensor self, SymInt groups, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & channel_shuffle_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t groups, at::Tensor & out) { + return at::_ops::channel_shuffle_out::redispatch(dispatchKeySet, self, groups, out); + } + + // aten::channel_shuffle.out(Tensor self, SymInt groups, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & channel_shuffle_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::SymInt groups) { + return at::_ops::channel_shuffle_out::redispatch(dispatchKeySet, self, groups, out); + } + + // aten::channel_shuffle.out(Tensor self, SymInt groups, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & channel_shuffle_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymInt groups, at::Tensor & out) { + return at::_ops::channel_shuffle_out::redispatch(dispatchKeySet, self, groups, out); + } + + // aten::_pin_memory.out(Tensor self, Device? device=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _pin_memory_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::optional device=c10::nullopt) { + return at::_ops::_pin_memory_out::redispatch(dispatchKeySet, self, device, out); + } + + // aten::_pin_memory.out(Tensor self, Device? device=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _pin_memory_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional device, at::Tensor & out) { + return at::_ops::_pin_memory_out::redispatch(dispatchKeySet, self, device, out); + } + + // aten::scalar_tensor.out(Scalar s, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & scalar_tensor_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Scalar & s) { + return at::_ops::scalar_tensor_out::redispatch(dispatchKeySet, s, out); + } + + // aten::scalar_tensor.out(Scalar s, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & scalar_tensor_outf(c10::DispatchKeySet dispatchKeySet, const at::Scalar & s, at::Tensor & out) { + return at::_ops::scalar_tensor_out::redispatch(dispatchKeySet, s, out); + } + + // aten::rand.names_out(SymInt[] size, *, Dimname[]? names, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & rand_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, at::IntArrayRef size, c10::optional names) { + return at::_ops::rand_names_out::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), names, out); + } + + // aten::rand.names_out(SymInt[] size, *, Dimname[]? names, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & rand_outf(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, c10::optional names, at::Tensor & out) { + return at::_ops::rand_names_out::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), names, out); + } + + // aten::rand.names_out(SymInt[] size, *, Dimname[]? names, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & rand_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, c10::SymIntArrayRef size, c10::optional names) { + return at::_ops::rand_names_out::redispatch(dispatchKeySet, size, names, out); + } + + // aten::rand.names_out(SymInt[] size, *, Dimname[]? names, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & rand_symint_outf(c10::DispatchKeySet dispatchKeySet, c10::SymIntArrayRef size, c10::optional names, at::Tensor & out) { + return at::_ops::rand_names_out::redispatch(dispatchKeySet, size, names, out); + } + + // aten::rand.generator_with_names_out(SymInt[] size, *, Generator? generator, Dimname[]? names, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & rand_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, at::IntArrayRef size, c10::optional generator, c10::optional names) { + return at::_ops::rand_generator_with_names_out::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), generator, names, out); + } + + // aten::rand.generator_with_names_out(SymInt[] size, *, Generator? generator, Dimname[]? names, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & rand_outf(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, c10::optional generator, c10::optional names, at::Tensor & out) { + return at::_ops::rand_generator_with_names_out::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), generator, names, out); + } + + // aten::rand.generator_with_names_out(SymInt[] size, *, Generator? generator, Dimname[]? names, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & rand_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, c10::SymIntArrayRef size, c10::optional generator, c10::optional names) { + return at::_ops::rand_generator_with_names_out::redispatch(dispatchKeySet, size, generator, names, out); + } + + // aten::rand.generator_with_names_out(SymInt[] size, *, Generator? generator, Dimname[]? names, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & rand_symint_outf(c10::DispatchKeySet dispatchKeySet, c10::SymIntArrayRef size, c10::optional generator, c10::optional names, at::Tensor & out) { + return at::_ops::rand_generator_with_names_out::redispatch(dispatchKeySet, size, generator, names, out); + } + + // aten::rand_like.out(Tensor self, *, MemoryFormat? memory_format=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & rand_like_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::optional memory_format=c10::nullopt) { + return at::_ops::rand_like_out::redispatch(dispatchKeySet, self, memory_format, out); + } + + // aten::rand_like.out(Tensor self, *, MemoryFormat? memory_format=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & rand_like_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional memory_format, at::Tensor & out) { + return at::_ops::rand_like_out::redispatch(dispatchKeySet, self, memory_format, out); + } + + // aten::randint_like.out(Tensor self, SymInt high, *, MemoryFormat? memory_format=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & randint_like_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t high, c10::optional memory_format=c10::nullopt) { + return at::_ops::randint_like_out::redispatch(dispatchKeySet, self, high, memory_format, out); + } + + // aten::randint_like.out(Tensor self, SymInt high, *, MemoryFormat? memory_format=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & randint_like_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t high, c10::optional memory_format, at::Tensor & out) { + return at::_ops::randint_like_out::redispatch(dispatchKeySet, self, high, memory_format, out); + } + + // aten::randint_like.out(Tensor self, SymInt high, *, MemoryFormat? memory_format=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & randint_like_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::SymInt high, c10::optional memory_format=c10::nullopt) { + return at::_ops::randint_like_out::redispatch(dispatchKeySet, self, high, memory_format, out); + } + + // aten::randint_like.out(Tensor self, SymInt high, *, MemoryFormat? memory_format=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & randint_like_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymInt high, c10::optional memory_format, at::Tensor & out) { + return at::_ops::randint_like_out::redispatch(dispatchKeySet, self, high, memory_format, out); + } + + // aten::randint_like.low_dtype_out(Tensor self, SymInt low, SymInt high, *, MemoryFormat? memory_format=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & randint_like_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t low, int64_t high, c10::optional memory_format=c10::nullopt) { + return at::_ops::randint_like_low_dtype_out::redispatch(dispatchKeySet, self, low, high, memory_format, out); + } + + // aten::randint_like.low_dtype_out(Tensor self, SymInt low, SymInt high, *, MemoryFormat? memory_format=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & randint_like_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t low, int64_t high, c10::optional memory_format, at::Tensor & out) { + return at::_ops::randint_like_low_dtype_out::redispatch(dispatchKeySet, self, low, high, memory_format, out); + } + + // aten::randint_like.low_dtype_out(Tensor self, SymInt low, SymInt high, *, MemoryFormat? memory_format=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & randint_like_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::SymInt low, c10::SymInt high, c10::optional memory_format=c10::nullopt) { + return at::_ops::randint_like_low_dtype_out::redispatch(dispatchKeySet, self, low, high, memory_format, out); + } + + // aten::randint_like.low_dtype_out(Tensor self, SymInt low, SymInt high, *, MemoryFormat? memory_format=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & randint_like_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymInt low, c10::SymInt high, c10::optional memory_format, at::Tensor & out) { + return at::_ops::randint_like_low_dtype_out::redispatch(dispatchKeySet, self, low, high, memory_format, out); + } + + // aten::randn.names_out(SymInt[] size, *, Dimname[]? names, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & randn_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, at::IntArrayRef size, c10::optional names) { + return at::_ops::randn_names_out::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), names, out); + } + + // aten::randn.names_out(SymInt[] size, *, Dimname[]? names, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & randn_outf(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, c10::optional names, at::Tensor & out) { + return at::_ops::randn_names_out::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), names, out); + } + + // aten::randn.names_out(SymInt[] size, *, Dimname[]? names, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & randn_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, c10::SymIntArrayRef size, c10::optional names) { + return at::_ops::randn_names_out::redispatch(dispatchKeySet, size, names, out); + } + + // aten::randn.names_out(SymInt[] size, *, Dimname[]? names, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & randn_symint_outf(c10::DispatchKeySet dispatchKeySet, c10::SymIntArrayRef size, c10::optional names, at::Tensor & out) { + return at::_ops::randn_names_out::redispatch(dispatchKeySet, size, names, out); + } + + // aten::randn.generator_with_names_out(SymInt[] size, *, Generator? generator, Dimname[]? names, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & randn_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, at::IntArrayRef size, c10::optional generator, c10::optional names) { + return at::_ops::randn_generator_with_names_out::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), generator, names, out); + } + + // aten::randn.generator_with_names_out(SymInt[] size, *, Generator? generator, Dimname[]? names, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & randn_outf(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, c10::optional generator, c10::optional names, at::Tensor & out) { + return at::_ops::randn_generator_with_names_out::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), generator, names, out); + } + + // aten::randn.generator_with_names_out(SymInt[] size, *, Generator? generator, Dimname[]? names, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & randn_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, c10::SymIntArrayRef size, c10::optional generator, c10::optional names) { + return at::_ops::randn_generator_with_names_out::redispatch(dispatchKeySet, size, generator, names, out); + } + + // aten::randn.generator_with_names_out(SymInt[] size, *, Generator? generator, Dimname[]? names, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & randn_symint_outf(c10::DispatchKeySet dispatchKeySet, c10::SymIntArrayRef size, c10::optional generator, c10::optional names, at::Tensor & out) { + return at::_ops::randn_generator_with_names_out::redispatch(dispatchKeySet, size, generator, names, out); + } + + // aten::randn_like.out(Tensor self, *, MemoryFormat? memory_format=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & randn_like_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::optional memory_format=c10::nullopt) { + return at::_ops::randn_like_out::redispatch(dispatchKeySet, self, memory_format, out); + } + + // aten::randn_like.out(Tensor self, *, MemoryFormat? memory_format=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & randn_like_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional memory_format, at::Tensor & out) { + return at::_ops::randn_like_out::redispatch(dispatchKeySet, self, memory_format, out); + } + + // aten::repeat.out(Tensor self, SymInt[] repeats, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & repeat_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef repeats) { + return at::_ops::repeat_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(repeats), out); + } + + // aten::repeat.out(Tensor self, SymInt[] repeats, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & repeat_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef repeats, at::Tensor & out) { + return at::_ops::repeat_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(repeats), out); + } + + // aten::repeat.out(Tensor self, SymInt[] repeats, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & repeat_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::SymIntArrayRef repeats) { + return at::_ops::repeat_out::redispatch(dispatchKeySet, self, repeats, out); + } + + // aten::repeat.out(Tensor self, SymInt[] repeats, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & repeat_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef repeats, at::Tensor & out) { + return at::_ops::repeat_out::redispatch(dispatchKeySet, self, repeats, out); + } + + // aten::repeat_interleave.Tensor_out(Tensor repeats, *, SymInt? output_size=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & repeat_interleave_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & repeats, c10::optional output_size=c10::nullopt) { + return at::_ops::repeat_interleave_Tensor_out::redispatch(dispatchKeySet, repeats, output_size.has_value() ? c10::make_optional(c10::SymInt(*output_size)) : c10::nullopt, out); + } + + // aten::repeat_interleave.Tensor_out(Tensor repeats, *, SymInt? output_size=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & repeat_interleave_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & repeats, c10::optional output_size, at::Tensor & out) { + return at::_ops::repeat_interleave_Tensor_out::redispatch(dispatchKeySet, repeats, output_size.has_value() ? c10::make_optional(c10::SymInt(*output_size)) : c10::nullopt, out); + } + + // aten::repeat_interleave.Tensor_out(Tensor repeats, *, SymInt? output_size=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & repeat_interleave_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & repeats, c10::optional output_size=c10::nullopt) { + return at::_ops::repeat_interleave_Tensor_out::redispatch(dispatchKeySet, repeats, output_size, out); + } + + // aten::repeat_interleave.Tensor_out(Tensor repeats, *, SymInt? output_size=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & repeat_interleave_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & repeats, c10::optional output_size, at::Tensor & out) { + return at::_ops::repeat_interleave_Tensor_out::redispatch(dispatchKeySet, repeats, output_size, out); + } + + // aten::_mkldnn_reshape.out(Tensor self, int[] shape, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _mkldnn_reshape_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef shape) { + return at::_ops::_mkldnn_reshape_out::redispatch(dispatchKeySet, self, shape, out); + } + + // aten::_mkldnn_reshape.out(Tensor self, int[] shape, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _mkldnn_reshape_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef shape, at::Tensor & out) { + return at::_ops::_mkldnn_reshape_out::redispatch(dispatchKeySet, self, shape, out); + } + + // aten::relu.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & relu_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::relu_out::redispatch(dispatchKeySet, self, out); + } + + // aten::relu.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & relu_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::relu_out::redispatch(dispatchKeySet, self, out); + } + + // aten::select_backward.out(Tensor grad_output, SymInt[] input_sizes, int dim, SymInt index, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & select_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & grad_output, at::IntArrayRef input_sizes, int64_t dim, int64_t index) { + return at::_ops::select_backward_out::redispatch(dispatchKeySet, grad_output, c10::fromIntArrayRefSlow(input_sizes), dim, index, out); + } + + // aten::select_backward.out(Tensor grad_output, SymInt[] input_sizes, int dim, SymInt index, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & select_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, at::IntArrayRef input_sizes, int64_t dim, int64_t index, at::Tensor & out) { + return at::_ops::select_backward_out::redispatch(dispatchKeySet, grad_output, c10::fromIntArrayRefSlow(input_sizes), dim, index, out); + } + + // aten::select_backward.out(Tensor grad_output, SymInt[] input_sizes, int dim, SymInt index, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & select_backward_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & grad_output, c10::SymIntArrayRef input_sizes, int64_t dim, c10::SymInt index) { + return at::_ops::select_backward_out::redispatch(dispatchKeySet, grad_output, input_sizes, dim, index, out); + } + + // aten::select_backward.out(Tensor grad_output, SymInt[] input_sizes, int dim, SymInt index, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & select_backward_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, c10::SymIntArrayRef input_sizes, int64_t dim, c10::SymInt index, at::Tensor & out) { + return at::_ops::select_backward_out::redispatch(dispatchKeySet, grad_output, input_sizes, dim, index, out); + } + + // aten::celu.out(Tensor self, Scalar alpha=1.0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & celu_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Scalar & alpha=1.0) { + return at::_ops::celu_out::redispatch(dispatchKeySet, self, alpha, out); + } + + // aten::celu.out(Tensor self, Scalar alpha=1.0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & celu_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & alpha, at::Tensor & out) { + return at::_ops::celu_out::redispatch(dispatchKeySet, self, alpha, out); + } + + // aten::slice_backward.out(Tensor grad_output, SymInt[] input_sizes, int dim, SymInt start, SymInt end, SymInt step, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & slice_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & grad_output, at::IntArrayRef input_sizes, int64_t dim, int64_t start, int64_t end, int64_t step) { + return at::_ops::slice_backward_out::redispatch(dispatchKeySet, grad_output, c10::fromIntArrayRefSlow(input_sizes), dim, start, end, step, out); + } + + // aten::slice_backward.out(Tensor grad_output, SymInt[] input_sizes, int dim, SymInt start, SymInt end, SymInt step, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & slice_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, at::IntArrayRef input_sizes, int64_t dim, int64_t start, int64_t end, int64_t step, at::Tensor & out) { + return at::_ops::slice_backward_out::redispatch(dispatchKeySet, grad_output, c10::fromIntArrayRefSlow(input_sizes), dim, start, end, step, out); + } + + // aten::slice_backward.out(Tensor grad_output, SymInt[] input_sizes, int dim, SymInt start, SymInt end, SymInt step, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & slice_backward_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & grad_output, c10::SymIntArrayRef input_sizes, int64_t dim, c10::SymInt start, c10::SymInt end, c10::SymInt step) { + return at::_ops::slice_backward_out::redispatch(dispatchKeySet, grad_output, input_sizes, dim, start, end, step, out); + } + + // aten::slice_backward.out(Tensor grad_output, SymInt[] input_sizes, int dim, SymInt start, SymInt end, SymInt step, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & slice_backward_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, c10::SymIntArrayRef input_sizes, int64_t dim, c10::SymInt start, c10::SymInt end, c10::SymInt step, at::Tensor & out) { + return at::_ops::slice_backward_out::redispatch(dispatchKeySet, grad_output, input_sizes, dim, start, end, step, out); + } + + // aten::slice_scatter.out(Tensor self, Tensor src, int dim=0, SymInt? start=None, SymInt? end=None, SymInt step=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & slice_scatter_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & src, int64_t dim=0, c10::optional start=c10::nullopt, c10::optional end=c10::nullopt, int64_t step=1) { + return at::_ops::slice_scatter_out::redispatch(dispatchKeySet, self, src, dim, start.has_value() ? c10::make_optional(c10::SymInt(*start)) : c10::nullopt, end.has_value() ? c10::make_optional(c10::SymInt(*end)) : c10::nullopt, step, out); + } + + // aten::slice_scatter.out(Tensor self, Tensor src, int dim=0, SymInt? start=None, SymInt? end=None, SymInt step=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & slice_scatter_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & src, int64_t dim, c10::optional start, c10::optional end, int64_t step, at::Tensor & out) { + return at::_ops::slice_scatter_out::redispatch(dispatchKeySet, self, src, dim, start.has_value() ? c10::make_optional(c10::SymInt(*start)) : c10::nullopt, end.has_value() ? c10::make_optional(c10::SymInt(*end)) : c10::nullopt, step, out); + } + + // aten::slice_scatter.out(Tensor self, Tensor src, int dim=0, SymInt? start=None, SymInt? end=None, SymInt step=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & slice_scatter_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & src, int64_t dim=0, c10::optional start=c10::nullopt, c10::optional end=c10::nullopt, c10::SymInt step=1) { + return at::_ops::slice_scatter_out::redispatch(dispatchKeySet, self, src, dim, start, end, step, out); + } + + // aten::slice_scatter.out(Tensor self, Tensor src, int dim=0, SymInt? start=None, SymInt? end=None, SymInt step=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & slice_scatter_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & src, int64_t dim, c10::optional start, c10::optional end, c10::SymInt step, at::Tensor & out) { + return at::_ops::slice_scatter_out::redispatch(dispatchKeySet, self, src, dim, start, end, step, out); + } + + // aten::select_scatter.out(Tensor self, Tensor src, int dim, SymInt index, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & select_scatter_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & src, int64_t dim, int64_t index) { + return at::_ops::select_scatter_out::redispatch(dispatchKeySet, self, src, dim, index, out); + } + + // aten::select_scatter.out(Tensor self, Tensor src, int dim, SymInt index, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & select_scatter_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & src, int64_t dim, int64_t index, at::Tensor & out) { + return at::_ops::select_scatter_out::redispatch(dispatchKeySet, self, src, dim, index, out); + } + + // aten::select_scatter.out(Tensor self, Tensor src, int dim, SymInt index, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & select_scatter_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & src, int64_t dim, c10::SymInt index) { + return at::_ops::select_scatter_out::redispatch(dispatchKeySet, self, src, dim, index, out); + } + + // aten::select_scatter.out(Tensor self, Tensor src, int dim, SymInt index, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & select_scatter_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & src, int64_t dim, c10::SymInt index, at::Tensor & out) { + return at::_ops::select_scatter_out::redispatch(dispatchKeySet, self, src, dim, index, out); + } + + // aten::diagonal_scatter.out(Tensor self, Tensor src, int offset=0, int dim1=0, int dim2=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & diagonal_scatter_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & src, int64_t offset=0, int64_t dim1=0, int64_t dim2=1) { + return at::_ops::diagonal_scatter_out::redispatch(dispatchKeySet, self, src, offset, dim1, dim2, out); + } + + // aten::diagonal_scatter.out(Tensor self, Tensor src, int offset=0, int dim1=0, int dim2=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & diagonal_scatter_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & src, int64_t offset, int64_t dim1, int64_t dim2, at::Tensor & out) { + return at::_ops::diagonal_scatter_out::redispatch(dispatchKeySet, self, src, offset, dim1, dim2, out); + } + + // aten::as_strided_scatter.out(Tensor self, Tensor src, SymInt[] size, SymInt[] stride, SymInt? storage_offset=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & as_strided_scatter_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & src, at::IntArrayRef size, at::IntArrayRef stride, c10::optional storage_offset=c10::nullopt) { + return at::_ops::as_strided_scatter_out::redispatch(dispatchKeySet, self, src, c10::fromIntArrayRefSlow(size), c10::fromIntArrayRefSlow(stride), storage_offset.has_value() ? c10::make_optional(c10::SymInt(*storage_offset)) : c10::nullopt, out); + } + + // aten::as_strided_scatter.out(Tensor self, Tensor src, SymInt[] size, SymInt[] stride, SymInt? storage_offset=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & as_strided_scatter_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & src, at::IntArrayRef size, at::IntArrayRef stride, c10::optional storage_offset, at::Tensor & out) { + return at::_ops::as_strided_scatter_out::redispatch(dispatchKeySet, self, src, c10::fromIntArrayRefSlow(size), c10::fromIntArrayRefSlow(stride), storage_offset.has_value() ? c10::make_optional(c10::SymInt(*storage_offset)) : c10::nullopt, out); + } + + // aten::as_strided_scatter.out(Tensor self, Tensor src, SymInt[] size, SymInt[] stride, SymInt? storage_offset=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & as_strided_scatter_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & src, c10::SymIntArrayRef size, c10::SymIntArrayRef stride, c10::optional storage_offset=c10::nullopt) { + return at::_ops::as_strided_scatter_out::redispatch(dispatchKeySet, self, src, size, stride, storage_offset, out); + } + + // aten::as_strided_scatter.out(Tensor self, Tensor src, SymInt[] size, SymInt[] stride, SymInt? storage_offset=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & as_strided_scatter_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & src, c10::SymIntArrayRef size, c10::SymIntArrayRef stride, c10::optional storage_offset, at::Tensor & out) { + return at::_ops::as_strided_scatter_out::redispatch(dispatchKeySet, self, src, size, stride, storage_offset, out); + } + + // aten::unsafe_split.Tensor_out(Tensor self, SymInt split_size, int dim=0, *, Tensor(a!)[] out) -> () + inline void unsafe_split_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, const at::Tensor & self, int64_t split_size, int64_t dim=0) { + return at::_ops::unsafe_split_Tensor_out::redispatch(dispatchKeySet, self, split_size, dim, out); + } + + // aten::unsafe_split.Tensor_out(Tensor self, SymInt split_size, int dim=0, *, Tensor(a!)[] out) -> () + inline void unsafe_split_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t split_size, int64_t dim, at::TensorList out) { + return at::_ops::unsafe_split_Tensor_out::redispatch(dispatchKeySet, self, split_size, dim, out); + } + + // aten::unsafe_split.Tensor_out(Tensor self, SymInt split_size, int dim=0, *, Tensor(a!)[] out) -> () + inline void unsafe_split_symint_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, const at::Tensor & self, c10::SymInt split_size, int64_t dim=0) { + return at::_ops::unsafe_split_Tensor_out::redispatch(dispatchKeySet, self, split_size, dim, out); + } + + // aten::unsafe_split.Tensor_out(Tensor self, SymInt split_size, int dim=0, *, Tensor(a!)[] out) -> () + inline void unsafe_split_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymInt split_size, int64_t dim, at::TensorList out) { + return at::_ops::unsafe_split_Tensor_out::redispatch(dispatchKeySet, self, split_size, dim, out); + } + + // aten::unsafe_split_with_sizes.out(Tensor self, SymInt[] split_sizes, int dim=0, *, Tensor(a!)[] out) -> () + inline void unsafe_split_with_sizes_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, const at::Tensor & self, at::IntArrayRef split_sizes, int64_t dim=0) { + return at::_ops::unsafe_split_with_sizes_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(split_sizes), dim, out); + } + + // aten::unsafe_split_with_sizes.out(Tensor self, SymInt[] split_sizes, int dim=0, *, Tensor(a!)[] out) -> () + inline void unsafe_split_with_sizes_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef split_sizes, int64_t dim, at::TensorList out) { + return at::_ops::unsafe_split_with_sizes_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(split_sizes), dim, out); + } + + // aten::unsafe_split_with_sizes.out(Tensor self, SymInt[] split_sizes, int dim=0, *, Tensor(a!)[] out) -> () + inline void unsafe_split_with_sizes_symint_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, const at::Tensor & self, c10::SymIntArrayRef split_sizes, int64_t dim=0) { + return at::_ops::unsafe_split_with_sizes_out::redispatch(dispatchKeySet, self, split_sizes, dim, out); + } + + // aten::unsafe_split_with_sizes.out(Tensor self, SymInt[] split_sizes, int dim=0, *, Tensor(a!)[] out) -> () + inline void unsafe_split_with_sizes_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef split_sizes, int64_t dim, at::TensorList out) { + return at::_ops::unsafe_split_with_sizes_out::redispatch(dispatchKeySet, self, split_sizes, dim, out); + } + + // aten::sum.out(Tensor self, *, ScalarType? dtype=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & sum_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::optional dtype=c10::nullopt) { + return at::_ops::sum_out::redispatch(dispatchKeySet, self, dtype, out); + } + + // aten::sum.out(Tensor self, *, ScalarType? dtype=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & sum_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional dtype, at::Tensor & out) { + return at::_ops::sum_out::redispatch(dispatchKeySet, self, dtype, out); + } + + // aten::std_mean.correction_out(Tensor self, int[1]? dim=None, *, Scalar? correction=None, bool keepdim=False, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple std_mean_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, const at::Tensor & self, at::OptionalIntArrayRef dim=c10::nullopt, const c10::optional & correction=c10::nullopt, bool keepdim=false) { + return at::_ops::std_mean_correction_out::redispatch(dispatchKeySet, self, dim, correction, keepdim, out0, out1); + } + + // aten::std_mean.correction_out(Tensor self, int[1]? dim=None, *, Scalar? correction=None, bool keepdim=False, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple std_mean_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalIntArrayRef dim, const c10::optional & correction, bool keepdim, at::Tensor & out0, at::Tensor & out1) { + return at::_ops::std_mean_correction_out::redispatch(dispatchKeySet, self, dim, correction, keepdim, out0, out1); + } + + // aten::prod.out(Tensor self, *, ScalarType? dtype=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & prod_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::optional dtype=c10::nullopt) { + return at::_ops::prod_out::redispatch(dispatchKeySet, self, dtype, out); + } + + // aten::prod.out(Tensor self, *, ScalarType? dtype=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & prod_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional dtype, at::Tensor & out) { + return at::_ops::prod_out::redispatch(dispatchKeySet, self, dtype, out); + } + + // aten::_mkldnn_transpose.out(Tensor self, int dim0, int dim1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _mkldnn_transpose_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t dim0, int64_t dim1) { + return at::_ops::_mkldnn_transpose_out::redispatch(dispatchKeySet, self, dim0, dim1, out); + } + + // aten::_mkldnn_transpose.out(Tensor self, int dim0, int dim1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _mkldnn_transpose_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim0, int64_t dim1, at::Tensor & out) { + return at::_ops::_mkldnn_transpose_out::redispatch(dispatchKeySet, self, dim0, dim1, out); + } + + // aten::flip.out(Tensor self, int[] dims, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & flip_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef dims) { + return at::_ops::flip_out::redispatch(dispatchKeySet, self, dims, out); + } + + // aten::flip.out(Tensor self, int[] dims, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & flip_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef dims, at::Tensor & out) { + return at::_ops::flip_out::redispatch(dispatchKeySet, self, dims, out); + } + + // aten::roll.out(Tensor self, SymInt[1] shifts, int[1] dims=[], *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & roll_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef shifts, at::IntArrayRef dims={}) { + return at::_ops::roll_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(shifts), dims, out); + } + + // aten::roll.out(Tensor self, SymInt[1] shifts, int[1] dims=[], *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & roll_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef shifts, at::IntArrayRef dims, at::Tensor & out) { + return at::_ops::roll_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(shifts), dims, out); + } + + // aten::roll.out(Tensor self, SymInt[1] shifts, int[1] dims=[], *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & roll_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::SymIntArrayRef shifts, at::IntArrayRef dims={}) { + return at::_ops::roll_out::redispatch(dispatchKeySet, self, shifts, dims, out); + } + + // aten::roll.out(Tensor self, SymInt[1] shifts, int[1] dims=[], *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & roll_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef shifts, at::IntArrayRef dims, at::Tensor & out) { + return at::_ops::roll_out::redispatch(dispatchKeySet, self, shifts, dims, out); + } + + // aten::rot90.out(Tensor self, int k=1, int[] dims=[0,1], *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & rot90_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t k=1, at::IntArrayRef dims={0,1}) { + return at::_ops::rot90_out::redispatch(dispatchKeySet, self, k, dims, out); + } + + // aten::rot90.out(Tensor self, int k=1, int[] dims=[0,1], *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & rot90_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t k, at::IntArrayRef dims, at::Tensor & out) { + return at::_ops::rot90_out::redispatch(dispatchKeySet, self, k, dims, out); + } + + // aten::_transform_bias_rescale_qkv.out(Tensor qkv, Tensor qkv_bias, int num_heads, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple _transform_bias_rescale_qkv_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, const at::Tensor & qkv, const at::Tensor & qkv_bias, int64_t num_heads) { + return at::_ops::_transform_bias_rescale_qkv_out::redispatch(dispatchKeySet, qkv, qkv_bias, num_heads, out0, out1, out2); + } + + // aten::_transform_bias_rescale_qkv.out(Tensor qkv, Tensor qkv_bias, int num_heads, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple _transform_bias_rescale_qkv_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & qkv, const at::Tensor & qkv_bias, int64_t num_heads, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2) { + return at::_ops::_transform_bias_rescale_qkv_out::redispatch(dispatchKeySet, qkv, qkv_bias, num_heads, out0, out1, out2); + } + + // aten::_nested_tensor_from_mask.out(Tensor t, Tensor mask, bool mask_check=True, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _nested_tensor_from_mask_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & t, const at::Tensor & mask, bool mask_check=true) { + return at::_ops::_nested_tensor_from_mask_out::redispatch(dispatchKeySet, t, mask, mask_check, out); + } + + // aten::_nested_tensor_from_mask.out(Tensor t, Tensor mask, bool mask_check=True, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _nested_tensor_from_mask_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & t, const at::Tensor & mask, bool mask_check, at::Tensor & out) { + return at::_ops::_nested_tensor_from_mask_out::redispatch(dispatchKeySet, t, mask, mask_check, out); + } + + // aten::_nested_from_padded.out(Tensor padded, Tensor cpu_nested_shape_example, bool fuse_transform_0213=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _nested_from_padded_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & padded, const at::Tensor & cpu_nested_shape_example, bool fuse_transform_0213=false) { + return at::_ops::_nested_from_padded_out::redispatch(dispatchKeySet, padded, cpu_nested_shape_example, fuse_transform_0213, out); + } + + // aten::_nested_from_padded.out(Tensor padded, Tensor cpu_nested_shape_example, bool fuse_transform_0213=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _nested_from_padded_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & padded, const at::Tensor & cpu_nested_shape_example, bool fuse_transform_0213, at::Tensor & out) { + return at::_ops::_nested_from_padded_out::redispatch(dispatchKeySet, padded, cpu_nested_shape_example, fuse_transform_0213, out); + } + + // aten::_nested_tensor_size.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _nested_tensor_size_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::_nested_tensor_size_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_nested_tensor_size.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _nested_tensor_size_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::_nested_tensor_size_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_nested_tensor_strides.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _nested_tensor_strides_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::_nested_tensor_strides_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_nested_tensor_strides.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _nested_tensor_strides_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::_nested_tensor_strides_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_nested_tensor_storage_offsets.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _nested_tensor_storage_offsets_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::_nested_tensor_storage_offsets_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_nested_tensor_storage_offsets.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _nested_tensor_storage_offsets_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::_nested_tensor_storage_offsets_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_nested_from_padded_and_nested_example.out(Tensor padded, Tensor nt_example, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _nested_from_padded_and_nested_example_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & padded, const at::Tensor & nt_example) { + return at::_ops::_nested_from_padded_and_nested_example_out::redispatch(dispatchKeySet, padded, nt_example, out); + } + + // aten::_nested_from_padded_and_nested_example.out(Tensor padded, Tensor nt_example, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _nested_from_padded_and_nested_example_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & padded, const at::Tensor & nt_example, at::Tensor & out) { + return at::_ops::_nested_from_padded_and_nested_example_out::redispatch(dispatchKeySet, padded, nt_example, out); + } + + // aten::_nested_view_from_buffer_copy.out(Tensor self, Tensor nested_size, Tensor nested_strides, Tensor offsets, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _nested_view_from_buffer_copy_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & nested_size, const at::Tensor & nested_strides, const at::Tensor & offsets) { + return at::_ops::_nested_view_from_buffer_copy_out::redispatch(dispatchKeySet, self, nested_size, nested_strides, offsets, out); + } + + // aten::_nested_view_from_buffer_copy.out(Tensor self, Tensor nested_size, Tensor nested_strides, Tensor offsets, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _nested_view_from_buffer_copy_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & nested_size, const at::Tensor & nested_strides, const at::Tensor & offsets, at::Tensor & out) { + return at::_ops::_nested_view_from_buffer_copy_out::redispatch(dispatchKeySet, self, nested_size, nested_strides, offsets, out); + } + + // aten::_nested_view_from_jagged_copy.out(Tensor self, Tensor offsets, Tensor dummy, Tensor? lengths=None, int ragged_idx=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _nested_view_from_jagged_copy_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & offsets, const at::Tensor & dummy, const c10::optional & lengths={}, int64_t ragged_idx=1) { + return at::_ops::_nested_view_from_jagged_copy_out::redispatch(dispatchKeySet, self, offsets, dummy, lengths, ragged_idx, out); + } + + // aten::_nested_view_from_jagged_copy.out(Tensor self, Tensor offsets, Tensor dummy, Tensor? lengths=None, int ragged_idx=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _nested_view_from_jagged_copy_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & offsets, const at::Tensor & dummy, const c10::optional & lengths, int64_t ragged_idx, at::Tensor & out) { + return at::_ops::_nested_view_from_jagged_copy_out::redispatch(dispatchKeySet, self, offsets, dummy, lengths, ragged_idx, out); + } + + // aten::_nested_get_values_copy.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _nested_get_values_copy_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::_nested_get_values_copy_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_nested_get_values_copy.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _nested_get_values_copy_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::_nested_get_values_copy_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_trilinear.out(Tensor i1, Tensor i2, Tensor i3, int[] expand1, int[] expand2, int[] expand3, int[] sumdim, int unroll_dim=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _trilinear_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & i1, const at::Tensor & i2, const at::Tensor & i3, at::IntArrayRef expand1, at::IntArrayRef expand2, at::IntArrayRef expand3, at::IntArrayRef sumdim, int64_t unroll_dim=1) { + return at::_ops::_trilinear_out::redispatch(dispatchKeySet, i1, i2, i3, expand1, expand2, expand3, sumdim, unroll_dim, out); + } + + // aten::_trilinear.out(Tensor i1, Tensor i2, Tensor i3, int[] expand1, int[] expand2, int[] expand3, int[] sumdim, int unroll_dim=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _trilinear_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & i1, const at::Tensor & i2, const at::Tensor & i3, at::IntArrayRef expand1, at::IntArrayRef expand2, at::IntArrayRef expand3, at::IntArrayRef sumdim, int64_t unroll_dim, at::Tensor & out) { + return at::_ops::_trilinear_out::redispatch(dispatchKeySet, i1, i2, i3, expand1, expand2, expand3, sumdim, unroll_dim, out); + } + + // aten::_unique.out(Tensor self, bool sorted=True, bool return_inverse=False, *, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple _unique_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, const at::Tensor & self, bool sorted=true, bool return_inverse=false) { + return at::_ops::_unique_out::redispatch(dispatchKeySet, self, sorted, return_inverse, out0, out1); + } + + // aten::_unique.out(Tensor self, bool sorted=True, bool return_inverse=False, *, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple _unique_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, bool sorted, bool return_inverse, at::Tensor & out0, at::Tensor & out1) { + return at::_ops::_unique_out::redispatch(dispatchKeySet, self, sorted, return_inverse, out0, out1); + } + + // aten::unique_dim.out(Tensor self, int dim, bool sorted=True, bool return_inverse=False, bool return_counts=False, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple unique_dim_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, const at::Tensor & self, int64_t dim, bool sorted=true, bool return_inverse=false, bool return_counts=false) { + return at::_ops::unique_dim_out::redispatch(dispatchKeySet, self, dim, sorted, return_inverse, return_counts, out0, out1, out2); + } + + // aten::unique_dim.out(Tensor self, int dim, bool sorted=True, bool return_inverse=False, bool return_counts=False, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple unique_dim_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, bool sorted, bool return_inverse, bool return_counts, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2) { + return at::_ops::unique_dim_out::redispatch(dispatchKeySet, self, dim, sorted, return_inverse, return_counts, out0, out1, out2); + } + + // aten::unique_consecutive.out(Tensor self, bool return_inverse=False, bool return_counts=False, int? dim=None, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple unique_consecutive_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, const at::Tensor & self, bool return_inverse=false, bool return_counts=false, c10::optional dim=c10::nullopt) { + return at::_ops::unique_consecutive_out::redispatch(dispatchKeySet, self, return_inverse, return_counts, dim, out0, out1, out2); + } + + // aten::unique_consecutive.out(Tensor self, bool return_inverse=False, bool return_counts=False, int? dim=None, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple unique_consecutive_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, bool return_inverse, bool return_counts, c10::optional dim, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2) { + return at::_ops::unique_consecutive_out::redispatch(dispatchKeySet, self, return_inverse, return_counts, dim, out0, out1, out2); + } + + // aten::unique_dim_consecutive.out(Tensor self, int dim, bool return_inverse=False, bool return_counts=False, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple unique_dim_consecutive_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, const at::Tensor & self, int64_t dim, bool return_inverse=false, bool return_counts=false) { + return at::_ops::unique_dim_consecutive_out::redispatch(dispatchKeySet, self, dim, return_inverse, return_counts, out0, out1, out2); + } + + // aten::unique_dim_consecutive.out(Tensor self, int dim, bool return_inverse=False, bool return_counts=False, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple unique_dim_consecutive_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, bool return_inverse, bool return_counts, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2) { + return at::_ops::unique_dim_consecutive_out::redispatch(dispatchKeySet, self, dim, return_inverse, return_counts, out0, out1, out2); + } + + // aten::_unique2.out(Tensor self, bool sorted=True, bool return_inverse=False, bool return_counts=False, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple _unique2_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, const at::Tensor & self, bool sorted=true, bool return_inverse=false, bool return_counts=false) { + return at::_ops::_unique2_out::redispatch(dispatchKeySet, self, sorted, return_inverse, return_counts, out0, out1, out2); + } + + // aten::_unique2.out(Tensor self, bool sorted=True, bool return_inverse=False, bool return_counts=False, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple _unique2_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, bool sorted, bool return_inverse, bool return_counts, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2) { + return at::_ops::_unique2_out::redispatch(dispatchKeySet, self, sorted, return_inverse, return_counts, out0, out1, out2); + } + + // aten::_unsafe_view.out(Tensor self, SymInt[] size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _unsafe_view_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef size) { + return at::_ops::_unsafe_view_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(size), out); + } + + // aten::_unsafe_view.out(Tensor self, SymInt[] size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _unsafe_view_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef size, at::Tensor & out) { + return at::_ops::_unsafe_view_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(size), out); + } + + // aten::_unsafe_view.out(Tensor self, SymInt[] size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _unsafe_view_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::SymIntArrayRef size) { + return at::_ops::_unsafe_view_out::redispatch(dispatchKeySet, self, size, out); + } + + // aten::_unsafe_view.out(Tensor self, SymInt[] size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _unsafe_view_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef size, at::Tensor & out) { + return at::_ops::_unsafe_view_out::redispatch(dispatchKeySet, self, size, out); + } + + // aten::var_mean.correction_out(Tensor self, int[1]? dim=None, *, Scalar? correction=None, bool keepdim=False, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple var_mean_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, const at::Tensor & self, at::OptionalIntArrayRef dim=c10::nullopt, const c10::optional & correction=c10::nullopt, bool keepdim=false) { + return at::_ops::var_mean_correction_out::redispatch(dispatchKeySet, self, dim, correction, keepdim, out0, out1); + } + + // aten::var_mean.correction_out(Tensor self, int[1]? dim=None, *, Scalar? correction=None, bool keepdim=False, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple var_mean_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalIntArrayRef dim, const c10::optional & correction, bool keepdim, at::Tensor & out0, at::Tensor & out1) { + return at::_ops::var_mean_correction_out::redispatch(dispatchKeySet, self, dim, correction, keepdim, out0, out1); + } + + // aten::_weight_norm_interface.out(Tensor v, Tensor g, int dim=0, *, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple _weight_norm_interface_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, const at::Tensor & v, const at::Tensor & g, int64_t dim=0) { + return at::_ops::_weight_norm_interface_out::redispatch(dispatchKeySet, v, g, dim, out0, out1); + } + + // aten::_weight_norm_interface.out(Tensor v, Tensor g, int dim=0, *, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple _weight_norm_interface_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & v, const at::Tensor & g, int64_t dim, at::Tensor & out0, at::Tensor & out1) { + return at::_ops::_weight_norm_interface_out::redispatch(dispatchKeySet, v, g, dim, out0, out1); + } + + // aten::_weight_norm_interface_backward.out(Tensor grad_w, Tensor saved_v, Tensor saved_g, Tensor saved_norms, int dim, *, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple _weight_norm_interface_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, const at::Tensor & grad_w, const at::Tensor & saved_v, const at::Tensor & saved_g, const at::Tensor & saved_norms, int64_t dim) { + return at::_ops::_weight_norm_interface_backward_out::redispatch(dispatchKeySet, grad_w, saved_v, saved_g, saved_norms, dim, out0, out1); + } + + // aten::_weight_norm_interface_backward.out(Tensor grad_w, Tensor saved_v, Tensor saved_g, Tensor saved_norms, int dim, *, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple _weight_norm_interface_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_w, const at::Tensor & saved_v, const at::Tensor & saved_g, const at::Tensor & saved_norms, int64_t dim, at::Tensor & out0, at::Tensor & out1) { + return at::_ops::_weight_norm_interface_backward_out::redispatch(dispatchKeySet, grad_w, saved_v, saved_g, saved_norms, dim, out0, out1); + } + + // aten::zeros.names_out(int[] size, *, Dimname[]? names, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & zeros_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, at::IntArrayRef size, c10::optional names) { + return at::_ops::zeros_names_out::redispatch(dispatchKeySet, size, names, out); + } + + // aten::zeros.names_out(int[] size, *, Dimname[]? names, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & zeros_outf(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, c10::optional names, at::Tensor & out) { + return at::_ops::zeros_names_out::redispatch(dispatchKeySet, size, names, out); + } + + // aten::_efficientzerotensor.out(SymInt[] size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _efficientzerotensor_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, at::IntArrayRef size) { + return at::_ops::_efficientzerotensor_out::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), out); + } + + // aten::_efficientzerotensor.out(SymInt[] size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _efficientzerotensor_outf(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, at::Tensor & out) { + return at::_ops::_efficientzerotensor_out::redispatch(dispatchKeySet, c10::fromIntArrayRefSlow(size), out); + } + + // aten::_efficientzerotensor.out(SymInt[] size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _efficientzerotensor_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, c10::SymIntArrayRef size) { + return at::_ops::_efficientzerotensor_out::redispatch(dispatchKeySet, size, out); + } + + // aten::_efficientzerotensor.out(SymInt[] size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _efficientzerotensor_symint_outf(c10::DispatchKeySet dispatchKeySet, c10::SymIntArrayRef size, at::Tensor & out) { + return at::_ops::_efficientzerotensor_out::redispatch(dispatchKeySet, size, out); + } + + // aten::zeros_like.out(Tensor self, *, MemoryFormat? memory_format=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & zeros_like_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::optional memory_format=c10::nullopt) { + return at::_ops::zeros_like_out::redispatch(dispatchKeySet, self, memory_format, out); + } + + // aten::zeros_like.out(Tensor self, *, MemoryFormat? memory_format=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & zeros_like_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional memory_format, at::Tensor & out) { + return at::_ops::zeros_like_out::redispatch(dispatchKeySet, self, memory_format, out); + } + + // aten::_standard_gamma_grad.out(Tensor self, Tensor output, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _standard_gamma_grad_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & output) { + return at::_ops::_standard_gamma_grad_out::redispatch(dispatchKeySet, self, output, out); + } + + // aten::_standard_gamma_grad.out(Tensor self, Tensor output, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _standard_gamma_grad_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & output, at::Tensor & out) { + return at::_ops::_standard_gamma_grad_out::redispatch(dispatchKeySet, self, output, out); + } + + // aten::_standard_gamma.out(Tensor self, Generator? generator=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _standard_gamma_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::optional generator=c10::nullopt) { + return at::_ops::_standard_gamma_out::redispatch(dispatchKeySet, self, generator, out); + } + + // aten::_standard_gamma.out(Tensor self, Generator? generator=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _standard_gamma_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional generator, at::Tensor & out) { + return at::_ops::_standard_gamma_out::redispatch(dispatchKeySet, self, generator, out); + } + + // aten::_dirichlet_grad.out(Tensor x, Tensor alpha, Tensor total, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _dirichlet_grad_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & x, const at::Tensor & alpha, const at::Tensor & total) { + return at::_ops::_dirichlet_grad_out::redispatch(dispatchKeySet, x, alpha, total, out); + } + + // aten::_dirichlet_grad.out(Tensor x, Tensor alpha, Tensor total, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _dirichlet_grad_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x, const at::Tensor & alpha, const at::Tensor & total, at::Tensor & out) { + return at::_ops::_dirichlet_grad_out::redispatch(dispatchKeySet, x, alpha, total, out); + } + + // aten::_sample_dirichlet.out(Tensor self, Generator? generator=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _sample_dirichlet_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::optional generator=c10::nullopt) { + return at::_ops::_sample_dirichlet_out::redispatch(dispatchKeySet, self, generator, out); + } + + // aten::_sample_dirichlet.out(Tensor self, Generator? generator=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _sample_dirichlet_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional generator, at::Tensor & out) { + return at::_ops::_sample_dirichlet_out::redispatch(dispatchKeySet, self, generator, out); + } + + // aten::poisson.out(Tensor self, Generator? generator=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & poisson_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::optional generator=c10::nullopt) { + return at::_ops::poisson_out::redispatch(dispatchKeySet, self, generator, out); + } + + // aten::poisson.out(Tensor self, Generator? generator=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & poisson_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional generator, at::Tensor & out) { + return at::_ops::poisson_out::redispatch(dispatchKeySet, self, generator, out); + } + + // aten::binomial.out(Tensor count, Tensor prob, Generator? generator=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & binomial_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & count, const at::Tensor & prob, c10::optional generator=c10::nullopt) { + return at::_ops::binomial_out::redispatch(dispatchKeySet, count, prob, generator, out); + } + + // aten::binomial.out(Tensor count, Tensor prob, Generator? generator=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & binomial_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & count, const at::Tensor & prob, c10::optional generator, at::Tensor & out) { + return at::_ops::binomial_out::redispatch(dispatchKeySet, count, prob, generator, out); + } + + // aten::native_norm.out(Tensor self, Scalar p=2, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & native_norm_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Scalar & p=2) { + return at::_ops::native_norm_out::redispatch(dispatchKeySet, self, p, out); + } + + // aten::native_norm.out(Tensor self, Scalar p=2, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & native_norm_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & p, at::Tensor & out) { + return at::_ops::native_norm_out::redispatch(dispatchKeySet, self, p, out); + } + + // aten::native_norm.ScalarOpt_dim_dtype_out(Tensor self, Scalar? p, int[1] dim, bool keepdim, ScalarType? dtype, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & native_norm_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const c10::optional & p, at::IntArrayRef dim, bool keepdim, c10::optional dtype) { + return at::_ops::native_norm_ScalarOpt_dim_dtype_out::redispatch(dispatchKeySet, self, p, dim, keepdim, dtype, out); + } + + // aten::native_norm.ScalarOpt_dim_dtype_out(Tensor self, Scalar? p, int[1] dim, bool keepdim, ScalarType? dtype, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & native_norm_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const c10::optional & p, at::IntArrayRef dim, bool keepdim, c10::optional dtype, at::Tensor & out) { + return at::_ops::native_norm_ScalarOpt_dim_dtype_out::redispatch(dispatchKeySet, self, p, dim, keepdim, dtype, out); + } + + // aten::_sparse_sum.dim_out(Tensor self, int[1] dim, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _sparse_sum_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef dim) { + return at::_ops::_sparse_sum_dim_out::redispatch(dispatchKeySet, self, dim, out); + } + + // aten::_sparse_sum.dim_out(Tensor self, int[1] dim, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _sparse_sum_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef dim, at::Tensor & out) { + return at::_ops::_sparse_sum_dim_out::redispatch(dispatchKeySet, self, dim, out); + } + + // aten::_sparse_sum_backward.out(Tensor grad, Tensor self, int[] dim, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _sparse_sum_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & grad, const at::Tensor & self, at::IntArrayRef dim) { + return at::_ops::_sparse_sum_backward_out::redispatch(dispatchKeySet, grad, self, dim, out); + } + + // aten::_sparse_sum_backward.out(Tensor grad, Tensor self, int[] dim, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _sparse_sum_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad, const at::Tensor & self, at::IntArrayRef dim, at::Tensor & out) { + return at::_ops::_sparse_sum_backward_out::redispatch(dispatchKeySet, grad, self, dim, out); + } + + // aten::_sparse_csr_sum.dim_dtype_out(Tensor self, int[1] dim, bool keepdim=False, *, ScalarType? dtype=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _sparse_csr_sum_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef dim, bool keepdim=false, c10::optional dtype=c10::nullopt) { + return at::_ops::_sparse_csr_sum_dim_dtype_out::redispatch(dispatchKeySet, self, dim, keepdim, dtype, out); + } + + // aten::_sparse_csr_sum.dim_dtype_out(Tensor self, int[1] dim, bool keepdim=False, *, ScalarType? dtype=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _sparse_csr_sum_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef dim, bool keepdim, c10::optional dtype, at::Tensor & out) { + return at::_ops::_sparse_csr_sum_dim_dtype_out::redispatch(dispatchKeySet, self, dim, keepdim, dtype, out); + } + + // aten::_sparse_csr_prod.dim_dtype_out(Tensor self, int[1] dim, bool keepdim=False, *, ScalarType? dtype=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _sparse_csr_prod_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef dim, bool keepdim=false, c10::optional dtype=c10::nullopt) { + return at::_ops::_sparse_csr_prod_dim_dtype_out::redispatch(dispatchKeySet, self, dim, keepdim, dtype, out); + } + + // aten::_sparse_csr_prod.dim_dtype_out(Tensor self, int[1] dim, bool keepdim=False, *, ScalarType? dtype=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _sparse_csr_prod_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef dim, bool keepdim, c10::optional dtype, at::Tensor & out) { + return at::_ops::_sparse_csr_prod_dim_dtype_out::redispatch(dispatchKeySet, self, dim, keepdim, dtype, out); + } + + // aten::_sparse_softmax.out(Tensor self, int dim, bool half_to_float, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _sparse_softmax_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t dim, bool half_to_float) { + return at::_ops::_sparse_softmax_out::redispatch(dispatchKeySet, self, dim, half_to_float, out); + } + + // aten::_sparse_softmax.out(Tensor self, int dim, bool half_to_float, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _sparse_softmax_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, bool half_to_float, at::Tensor & out) { + return at::_ops::_sparse_softmax_out::redispatch(dispatchKeySet, self, dim, half_to_float, out); + } + + // aten::_sparse_softmax_backward_data.out(Tensor grad_output, Tensor output, int dim, Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _sparse_softmax_backward_data_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & grad_output, const at::Tensor & output, int64_t dim, const at::Tensor & self) { + return at::_ops::_sparse_softmax_backward_data_out::redispatch(dispatchKeySet, grad_output, output, dim, self, out); + } + + // aten::_sparse_softmax_backward_data.out(Tensor grad_output, Tensor output, int dim, Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _sparse_softmax_backward_data_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & output, int64_t dim, const at::Tensor & self, at::Tensor & out) { + return at::_ops::_sparse_softmax_backward_data_out::redispatch(dispatchKeySet, grad_output, output, dim, self, out); + } + + // aten::_sparse_log_softmax.out(Tensor self, int dim, bool half_to_float, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _sparse_log_softmax_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t dim, bool half_to_float) { + return at::_ops::_sparse_log_softmax_out::redispatch(dispatchKeySet, self, dim, half_to_float, out); + } + + // aten::_sparse_log_softmax.out(Tensor self, int dim, bool half_to_float, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _sparse_log_softmax_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, bool half_to_float, at::Tensor & out) { + return at::_ops::_sparse_log_softmax_out::redispatch(dispatchKeySet, self, dim, half_to_float, out); + } + + // aten::_sparse_log_softmax_backward_data.out(Tensor grad_output, Tensor output, int dim, Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _sparse_log_softmax_backward_data_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & grad_output, const at::Tensor & output, int64_t dim, const at::Tensor & self) { + return at::_ops::_sparse_log_softmax_backward_data_out::redispatch(dispatchKeySet, grad_output, output, dim, self, out); + } + + // aten::_sparse_log_softmax_backward_data.out(Tensor grad_output, Tensor output, int dim, Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _sparse_log_softmax_backward_data_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & output, int64_t dim, const at::Tensor & self, at::Tensor & out) { + return at::_ops::_sparse_log_softmax_backward_data_out::redispatch(dispatchKeySet, grad_output, output, dim, self, out); + } + + // aten::_spdiags.out(Tensor diagonals, Tensor offsets, int[] shape, Layout? layout=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _spdiags_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & diagonals, const at::Tensor & offsets, at::IntArrayRef shape, c10::optional layout=c10::nullopt) { + return at::_ops::_spdiags_out::redispatch(dispatchKeySet, diagonals, offsets, shape, layout, out); + } + + // aten::_spdiags.out(Tensor diagonals, Tensor offsets, int[] shape, Layout? layout=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _spdiags_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & diagonals, const at::Tensor & offsets, at::IntArrayRef shape, c10::optional layout, at::Tensor & out) { + return at::_ops::_spdiags_out::redispatch(dispatchKeySet, diagonals, offsets, shape, layout, out); + } + + // aten::norm.ScalarOpt_dtype_out(Tensor self, Scalar? p, *, ScalarType dtype, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & norm_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const c10::optional & p, at::ScalarType dtype) { + return at::_ops::norm_ScalarOpt_dtype_out::redispatch(dispatchKeySet, self, p, dtype, out); + } + + // aten::norm.ScalarOpt_dtype_out(Tensor self, Scalar? p, *, ScalarType dtype, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & norm_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const c10::optional & p, at::ScalarType dtype, at::Tensor & out) { + return at::_ops::norm_ScalarOpt_dtype_out::redispatch(dispatchKeySet, self, p, dtype, out); + } + + // aten::norm.Scalar_out(Tensor self, Scalar p=2, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & norm_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Scalar & p=2) { + return at::_ops::norm_Scalar_out::redispatch(dispatchKeySet, self, p, out); + } + + // aten::norm.Scalar_out(Tensor self, Scalar p=2, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & norm_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & p, at::Tensor & out) { + return at::_ops::norm_Scalar_out::redispatch(dispatchKeySet, self, p, out); + } + + // aten::clone.out(Tensor self, *, MemoryFormat? memory_format=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & clone_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::optional memory_format=c10::nullopt) { + return at::_ops::clone_out::redispatch(dispatchKeySet, self, memory_format, out); + } + + // aten::clone.out(Tensor self, *, MemoryFormat? memory_format=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & clone_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional memory_format, at::Tensor & out) { + return at::_ops::clone_out::redispatch(dispatchKeySet, self, memory_format, out); + } + + // aten::resize_as.out(Tensor self, Tensor the_template, *, MemoryFormat? memory_format=None, Tensor(a!) out) -> Tensor(a!) + inline const at::Tensor & resize_as_out(c10::DispatchKeySet dispatchKeySet, const at::Tensor & out, const at::Tensor & self, const at::Tensor & the_template, c10::optional memory_format=c10::nullopt) { + return at::_ops::resize_as_out::redispatch(dispatchKeySet, self, the_template, memory_format, out); + } + + // aten::resize_as.out(Tensor self, Tensor the_template, *, MemoryFormat? memory_format=None, Tensor(a!) out) -> Tensor(a!) + inline const at::Tensor & resize_as_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & the_template, c10::optional memory_format, const at::Tensor & out) { + return at::_ops::resize_as_out::redispatch(dispatchKeySet, self, the_template, memory_format, out); + } + + // aten::resize_as(Tensor self, Tensor the_template, *, MemoryFormat? memory_format=None) -> Tensor + inline at::Tensor resize_as(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & the_template, c10::optional memory_format=c10::nullopt) { + return at::_ops::resize_as::redispatch(dispatchKeySet, self, the_template, memory_format); + } + + // aten::resize_as_sparse.out(Tensor self, Tensor the_template, *, Tensor(a!) out) -> Tensor(a!) + inline const at::Tensor & resize_as_sparse_out(c10::DispatchKeySet dispatchKeySet, const at::Tensor & out, const at::Tensor & self, const at::Tensor & the_template) { + return at::_ops::resize_as_sparse_out::redispatch(dispatchKeySet, self, the_template, out); + } + + // aten::resize_as_sparse.out(Tensor self, Tensor the_template, *, Tensor(a!) out) -> Tensor(a!) + inline const at::Tensor & resize_as_sparse_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & the_template, const at::Tensor & out) { + return at::_ops::resize_as_sparse_out::redispatch(dispatchKeySet, self, the_template, out); + } + + // aten::resize_as_sparse(Tensor self, Tensor the_template) -> Tensor + inline at::Tensor resize_as_sparse(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & the_template) { + return at::_ops::resize_as_sparse::redispatch(dispatchKeySet, self, the_template); + } + + // aten::zero.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & zero_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::zero_out::redispatch(dispatchKeySet, self, out); + } + + // aten::zero.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & zero_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::zero_out::redispatch(dispatchKeySet, self, out); + } + + // aten::zero(Tensor self) -> Tensor + inline at::Tensor zero(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::zero::redispatch(dispatchKeySet, self); + } + + // aten::sub.Scalar_out(Tensor self, Scalar other, Scalar alpha=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & sub_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Scalar & other, const at::Scalar & alpha=1) { + return at::_ops::sub_Scalar_out::redispatch(dispatchKeySet, self, other, alpha, out); + } + + // aten::sub.Scalar_out(Tensor self, Scalar other, Scalar alpha=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & sub_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other, const at::Scalar & alpha, at::Tensor & out) { + return at::_ops::sub_Scalar_out::redispatch(dispatchKeySet, self, other, alpha, out); + } + + // aten::rsub.Tensor_out(Tensor self, Tensor other, *, Scalar alpha=1, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & rsub_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other, const at::Scalar & alpha=1) { + return at::_ops::rsub_Tensor_out::redispatch(dispatchKeySet, self, other, alpha, out); + } + + // aten::rsub.Tensor_out(Tensor self, Tensor other, *, Scalar alpha=1, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & rsub_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, const at::Scalar & alpha, at::Tensor & out) { + return at::_ops::rsub_Tensor_out::redispatch(dispatchKeySet, self, other, alpha, out); + } + + // aten::rsub.Scalar_out(Tensor self, Scalar other, Scalar alpha=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & rsub_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Scalar & other, const at::Scalar & alpha=1) { + return at::_ops::rsub_Scalar_out::redispatch(dispatchKeySet, self, other, alpha, out); + } + + // aten::rsub.Scalar_out(Tensor self, Scalar other, Scalar alpha=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & rsub_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other, const at::Scalar & alpha, at::Tensor & out) { + return at::_ops::rsub_Scalar_out::redispatch(dispatchKeySet, self, other, alpha, out); + } + + // aten::_sparse_addmm.out(Tensor self, Tensor mat1, Tensor mat2, *, Scalar beta=1, Scalar alpha=1, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _sparse_addmm_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & mat1, const at::Tensor & mat2, const at::Scalar & beta=1, const at::Scalar & alpha=1) { + return at::_ops::_sparse_addmm_out::redispatch(dispatchKeySet, self, mat1, mat2, beta, alpha, out); + } + + // aten::_sparse_addmm.out(Tensor self, Tensor mat1, Tensor mat2, *, Scalar beta=1, Scalar alpha=1, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _sparse_addmm_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & mat1, const at::Tensor & mat2, const at::Scalar & beta, const at::Scalar & alpha, at::Tensor & out) { + return at::_ops::_sparse_addmm_out::redispatch(dispatchKeySet, self, mat1, mat2, beta, alpha, out); + } + + // aten::sparse_coo_tensor.size_out(int[] size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & sparse_coo_tensor_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, at::IntArrayRef size) { + return at::_ops::sparse_coo_tensor_size_out::redispatch(dispatchKeySet, size, out); + } + + // aten::sparse_coo_tensor.size_out(int[] size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & sparse_coo_tensor_outf(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, at::Tensor & out) { + return at::_ops::sparse_coo_tensor_size_out::redispatch(dispatchKeySet, size, out); + } + + // aten::_sparse_coo_tensor_with_dims.out(int sparse_dim, int dense_dim, int[] size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _sparse_coo_tensor_with_dims_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, int64_t sparse_dim, int64_t dense_dim, at::IntArrayRef size) { + return at::_ops::_sparse_coo_tensor_with_dims_out::redispatch(dispatchKeySet, sparse_dim, dense_dim, size, out); + } + + // aten::_sparse_coo_tensor_with_dims.out(int sparse_dim, int dense_dim, int[] size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _sparse_coo_tensor_with_dims_outf(c10::DispatchKeySet dispatchKeySet, int64_t sparse_dim, int64_t dense_dim, at::IntArrayRef size, at::Tensor & out) { + return at::_ops::_sparse_coo_tensor_with_dims_out::redispatch(dispatchKeySet, sparse_dim, dense_dim, size, out); + } + + // aten::_sparse_coo_tensor_with_dims_and_tensors.out(int sparse_dim, int dense_dim, SymInt[] size, Tensor indices, Tensor values, *, bool? is_coalesced=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _sparse_coo_tensor_with_dims_and_tensors_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, int64_t sparse_dim, int64_t dense_dim, at::IntArrayRef size, const at::Tensor & indices, const at::Tensor & values, c10::optional is_coalesced=c10::nullopt) { + return at::_ops::_sparse_coo_tensor_with_dims_and_tensors_out::redispatch(dispatchKeySet, sparse_dim, dense_dim, c10::fromIntArrayRefSlow(size), indices, values, is_coalesced, out); + } + + // aten::_sparse_coo_tensor_with_dims_and_tensors.out(int sparse_dim, int dense_dim, SymInt[] size, Tensor indices, Tensor values, *, bool? is_coalesced=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _sparse_coo_tensor_with_dims_and_tensors_outf(c10::DispatchKeySet dispatchKeySet, int64_t sparse_dim, int64_t dense_dim, at::IntArrayRef size, const at::Tensor & indices, const at::Tensor & values, c10::optional is_coalesced, at::Tensor & out) { + return at::_ops::_sparse_coo_tensor_with_dims_and_tensors_out::redispatch(dispatchKeySet, sparse_dim, dense_dim, c10::fromIntArrayRefSlow(size), indices, values, is_coalesced, out); + } + + // aten::_sparse_coo_tensor_with_dims_and_tensors.out(int sparse_dim, int dense_dim, SymInt[] size, Tensor indices, Tensor values, *, bool? is_coalesced=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _sparse_coo_tensor_with_dims_and_tensors_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, int64_t sparse_dim, int64_t dense_dim, c10::SymIntArrayRef size, const at::Tensor & indices, const at::Tensor & values, c10::optional is_coalesced=c10::nullopt) { + return at::_ops::_sparse_coo_tensor_with_dims_and_tensors_out::redispatch(dispatchKeySet, sparse_dim, dense_dim, size, indices, values, is_coalesced, out); + } + + // aten::_sparse_coo_tensor_with_dims_and_tensors.out(int sparse_dim, int dense_dim, SymInt[] size, Tensor indices, Tensor values, *, bool? is_coalesced=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _sparse_coo_tensor_with_dims_and_tensors_symint_outf(c10::DispatchKeySet dispatchKeySet, int64_t sparse_dim, int64_t dense_dim, c10::SymIntArrayRef size, const at::Tensor & indices, const at::Tensor & values, c10::optional is_coalesced, at::Tensor & out) { + return at::_ops::_sparse_coo_tensor_with_dims_and_tensors_out::redispatch(dispatchKeySet, sparse_dim, dense_dim, size, indices, values, is_coalesced, out); + } + + // aten::sparse_resize.out(Tensor self, int[] size, int sparse_dim, int dense_dim, *, Tensor(a!) out) -> Tensor(a!) + inline const at::Tensor & sparse_resize_out(c10::DispatchKeySet dispatchKeySet, const at::Tensor & out, const at::Tensor & self, at::IntArrayRef size, int64_t sparse_dim, int64_t dense_dim) { + return at::_ops::sparse_resize_out::redispatch(dispatchKeySet, self, size, sparse_dim, dense_dim, out); + } + + // aten::sparse_resize.out(Tensor self, int[] size, int sparse_dim, int dense_dim, *, Tensor(a!) out) -> Tensor(a!) + inline const at::Tensor & sparse_resize_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef size, int64_t sparse_dim, int64_t dense_dim, const at::Tensor & out) { + return at::_ops::sparse_resize_out::redispatch(dispatchKeySet, self, size, sparse_dim, dense_dim, out); + } + + // aten::sparse_resize(Tensor self, int[] size, int sparse_dim, int dense_dim) -> Tensor + inline at::Tensor sparse_resize(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef size, int64_t sparse_dim, int64_t dense_dim) { + return at::_ops::sparse_resize::redispatch(dispatchKeySet, self, size, sparse_dim, dense_dim); + } + + // aten::sparse_resize_and_clear.out(Tensor self, int[] size, int sparse_dim, int dense_dim, *, Tensor(a!) out) -> Tensor(a!) + inline const at::Tensor & sparse_resize_and_clear_out(c10::DispatchKeySet dispatchKeySet, const at::Tensor & out, const at::Tensor & self, at::IntArrayRef size, int64_t sparse_dim, int64_t dense_dim) { + return at::_ops::sparse_resize_and_clear_out::redispatch(dispatchKeySet, self, size, sparse_dim, dense_dim, out); + } + + // aten::sparse_resize_and_clear.out(Tensor self, int[] size, int sparse_dim, int dense_dim, *, Tensor(a!) out) -> Tensor(a!) + inline const at::Tensor & sparse_resize_and_clear_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef size, int64_t sparse_dim, int64_t dense_dim, const at::Tensor & out) { + return at::_ops::sparse_resize_and_clear_out::redispatch(dispatchKeySet, self, size, sparse_dim, dense_dim, out); + } + + // aten::sparse_resize_and_clear(Tensor self, int[] size, int sparse_dim, int dense_dim) -> Tensor + inline at::Tensor sparse_resize_and_clear(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef size, int64_t sparse_dim, int64_t dense_dim) { + return at::_ops::sparse_resize_and_clear::redispatch(dispatchKeySet, self, size, sparse_dim, dense_dim); + } + + // aten::sparse_mask.out(Tensor self, Tensor mask, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & sparse_mask_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & mask) { + return at::_ops::sparse_mask_out::redispatch(dispatchKeySet, self, mask, out); + } + + // aten::sparse_mask.out(Tensor self, Tensor mask, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & sparse_mask_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & mask, at::Tensor & out) { + return at::_ops::sparse_mask_out::redispatch(dispatchKeySet, self, mask, out); + } + + // aten::_sparse_mask_projection.out(Tensor self, Tensor mask, bool accumulate_matches=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _sparse_mask_projection_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & mask, bool accumulate_matches=false) { + return at::_ops::_sparse_mask_projection_out::redispatch(dispatchKeySet, self, mask, accumulate_matches, out); + } + + // aten::_sparse_mask_projection.out(Tensor self, Tensor mask, bool accumulate_matches=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _sparse_mask_projection_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & mask, bool accumulate_matches, at::Tensor & out) { + return at::_ops::_sparse_mask_projection_out::redispatch(dispatchKeySet, self, mask, accumulate_matches, out); + } + + // aten::_to_dense.out(Tensor self, ScalarType? dtype=None, bool? masked_grad=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _to_dense_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::optional dtype=c10::nullopt, c10::optional masked_grad=c10::nullopt) { + return at::_ops::_to_dense_out::redispatch(dispatchKeySet, self, dtype, masked_grad, out); + } + + // aten::_to_dense.out(Tensor self, ScalarType? dtype=None, bool? masked_grad=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _to_dense_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional dtype, c10::optional masked_grad, at::Tensor & out) { + return at::_ops::_to_dense_out::redispatch(dispatchKeySet, self, dtype, masked_grad, out); + } + + // aten::_coalesce.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _coalesce_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::_coalesce_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_coalesce.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _coalesce_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::_coalesce_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_coalesced.out(Tensor self, bool coalesced, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _coalesced_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, bool coalesced) { + return at::_ops::_coalesced_out::redispatch(dispatchKeySet, self, coalesced, out); + } + + // aten::_coalesced.out(Tensor self, bool coalesced, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _coalesced_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, bool coalesced, at::Tensor & out) { + return at::_ops::_coalesced_out::redispatch(dispatchKeySet, self, coalesced, out); + } + + // aten::_coalesced(Tensor self, bool coalesced) -> Tensor + inline at::Tensor _coalesced(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, bool coalesced) { + return at::_ops::_coalesced::redispatch(dispatchKeySet, self, coalesced); + } + + // aten::copy_sparse_to_sparse.out(Tensor self, Tensor src, bool non_blocking=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & copy_sparse_to_sparse_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & src, bool non_blocking=false) { + return at::_ops::copy_sparse_to_sparse_out::redispatch(dispatchKeySet, self, src, non_blocking, out); + } + + // aten::copy_sparse_to_sparse.out(Tensor self, Tensor src, bool non_blocking=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & copy_sparse_to_sparse_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & src, bool non_blocking, at::Tensor & out) { + return at::_ops::copy_sparse_to_sparse_out::redispatch(dispatchKeySet, self, src, non_blocking, out); + } + + // aten::copy_sparse_to_sparse(Tensor self, Tensor src, bool non_blocking=False) -> Tensor + inline at::Tensor copy_sparse_to_sparse(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & src, bool non_blocking=false) { + return at::_ops::copy_sparse_to_sparse::redispatch(dispatchKeySet, self, src, non_blocking); + } + + // aten::_to_sparse.sparse_dim_out(Tensor self, int sparse_dim, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _to_sparse_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t sparse_dim) { + return at::_ops::_to_sparse_sparse_dim_out::redispatch(dispatchKeySet, self, sparse_dim, out); + } + + // aten::_to_sparse.sparse_dim_out(Tensor self, int sparse_dim, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _to_sparse_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t sparse_dim, at::Tensor & out) { + return at::_ops::_to_sparse_sparse_dim_out::redispatch(dispatchKeySet, self, sparse_dim, out); + } + + // aten::_to_sparse.out(Tensor self, *, Layout? layout=None, int[2]? blocksize=None, int? dense_dim=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _to_sparse_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::optional layout=c10::nullopt, at::OptionalIntArrayRef blocksize=c10::nullopt, c10::optional dense_dim=c10::nullopt) { + return at::_ops::_to_sparse_out::redispatch(dispatchKeySet, self, layout, blocksize, dense_dim, out); + } + + // aten::_to_sparse.out(Tensor self, *, Layout? layout=None, int[2]? blocksize=None, int? dense_dim=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _to_sparse_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional layout, at::OptionalIntArrayRef blocksize, c10::optional dense_dim, at::Tensor & out) { + return at::_ops::_to_sparse_out::redispatch(dispatchKeySet, self, layout, blocksize, dense_dim, out); + } + + // aten::_to_sparse_csr.out(Tensor self, int? dense_dim=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _to_sparse_csr_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::optional dense_dim=c10::nullopt) { + return at::_ops::_to_sparse_csr_out::redispatch(dispatchKeySet, self, dense_dim, out); + } + + // aten::_to_sparse_csr.out(Tensor self, int? dense_dim=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _to_sparse_csr_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional dense_dim, at::Tensor & out) { + return at::_ops::_to_sparse_csr_out::redispatch(dispatchKeySet, self, dense_dim, out); + } + + // aten::_to_sparse_csc.out(Tensor self, int? dense_dim=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _to_sparse_csc_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::optional dense_dim=c10::nullopt) { + return at::_ops::_to_sparse_csc_out::redispatch(dispatchKeySet, self, dense_dim, out); + } + + // aten::_to_sparse_csc.out(Tensor self, int? dense_dim=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _to_sparse_csc_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional dense_dim, at::Tensor & out) { + return at::_ops::_to_sparse_csc_out::redispatch(dispatchKeySet, self, dense_dim, out); + } + + // aten::_to_sparse_bsr.out(Tensor self, int[2] blocksize, int? dense_dim=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _to_sparse_bsr_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef blocksize, c10::optional dense_dim=c10::nullopt) { + return at::_ops::_to_sparse_bsr_out::redispatch(dispatchKeySet, self, blocksize, dense_dim, out); + } + + // aten::_to_sparse_bsr.out(Tensor self, int[2] blocksize, int? dense_dim=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _to_sparse_bsr_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef blocksize, c10::optional dense_dim, at::Tensor & out) { + return at::_ops::_to_sparse_bsr_out::redispatch(dispatchKeySet, self, blocksize, dense_dim, out); + } + + // aten::_to_sparse_bsc.out(Tensor self, int[2] blocksize, int? dense_dim=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _to_sparse_bsc_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef blocksize, c10::optional dense_dim=c10::nullopt) { + return at::_ops::_to_sparse_bsc_out::redispatch(dispatchKeySet, self, blocksize, dense_dim, out); + } + + // aten::_to_sparse_bsc.out(Tensor self, int[2] blocksize, int? dense_dim=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _to_sparse_bsc_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef blocksize, c10::optional dense_dim, at::Tensor & out) { + return at::_ops::_to_sparse_bsc_out::redispatch(dispatchKeySet, self, blocksize, dense_dim, out); + } + + // aten::to_mkldnn.out(Tensor self, ScalarType? dtype=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & to_mkldnn_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::optional dtype=c10::nullopt) { + return at::_ops::to_mkldnn_out::redispatch(dispatchKeySet, self, dtype, out); + } + + // aten::to_mkldnn.out(Tensor self, ScalarType? dtype=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & to_mkldnn_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional dtype, at::Tensor & out) { + return at::_ops::to_mkldnn_out::redispatch(dispatchKeySet, self, dtype, out); + } + + // aten::mkldnn_reorder_conv2d_weight.out(Tensor self, SymInt[2] padding=0, SymInt[2] stride=1, SymInt[2] dilation=1, SymInt groups=1, SymInt[]? input_size=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & mkldnn_reorder_conv2d_weight_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef padding=0, at::IntArrayRef stride=1, at::IntArrayRef dilation=1, int64_t groups=1, at::OptionalIntArrayRef input_size=c10::nullopt) { + return at::_ops::mkldnn_reorder_conv2d_weight_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(dilation), groups, input_size.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*input_size)) : c10::nullopt, out); + } + + // aten::mkldnn_reorder_conv2d_weight.out(Tensor self, SymInt[2] padding=0, SymInt[2] stride=1, SymInt[2] dilation=1, SymInt groups=1, SymInt[]? input_size=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & mkldnn_reorder_conv2d_weight_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef padding, at::IntArrayRef stride, at::IntArrayRef dilation, int64_t groups, at::OptionalIntArrayRef input_size, at::Tensor & out) { + return at::_ops::mkldnn_reorder_conv2d_weight_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(dilation), groups, input_size.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*input_size)) : c10::nullopt, out); + } + + // aten::mkldnn_reorder_conv2d_weight.out(Tensor self, SymInt[2] padding=0, SymInt[2] stride=1, SymInt[2] dilation=1, SymInt groups=1, SymInt[]? input_size=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & mkldnn_reorder_conv2d_weight_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::SymIntArrayRef padding=c10::SymInt(0), c10::SymIntArrayRef stride=c10::SymInt(1), c10::SymIntArrayRef dilation=c10::SymInt(1), c10::SymInt groups=1, at::OptionalSymIntArrayRef input_size=c10::nullopt) { + return at::_ops::mkldnn_reorder_conv2d_weight_out::redispatch(dispatchKeySet, self, padding, stride, dilation, groups, input_size, out); + } + + // aten::mkldnn_reorder_conv2d_weight.out(Tensor self, SymInt[2] padding=0, SymInt[2] stride=1, SymInt[2] dilation=1, SymInt groups=1, SymInt[]? input_size=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & mkldnn_reorder_conv2d_weight_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef padding, c10::SymIntArrayRef stride, c10::SymIntArrayRef dilation, c10::SymInt groups, at::OptionalSymIntArrayRef input_size, at::Tensor & out) { + return at::_ops::mkldnn_reorder_conv2d_weight_out::redispatch(dispatchKeySet, self, padding, stride, dilation, groups, input_size, out); + } + + // aten::mkldnn_reorder_conv3d_weight.out(Tensor self, SymInt[3] padding=0, SymInt[3] stride=1, SymInt[3] dilation=1, SymInt groups=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & mkldnn_reorder_conv3d_weight_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef padding=0, at::IntArrayRef stride=1, at::IntArrayRef dilation=1, int64_t groups=1) { + return at::_ops::mkldnn_reorder_conv3d_weight_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(dilation), groups, out); + } + + // aten::mkldnn_reorder_conv3d_weight.out(Tensor self, SymInt[3] padding=0, SymInt[3] stride=1, SymInt[3] dilation=1, SymInt groups=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & mkldnn_reorder_conv3d_weight_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef padding, at::IntArrayRef stride, at::IntArrayRef dilation, int64_t groups, at::Tensor & out) { + return at::_ops::mkldnn_reorder_conv3d_weight_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(dilation), groups, out); + } + + // aten::mkldnn_reorder_conv3d_weight.out(Tensor self, SymInt[3] padding=0, SymInt[3] stride=1, SymInt[3] dilation=1, SymInt groups=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & mkldnn_reorder_conv3d_weight_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::SymIntArrayRef padding=c10::SymInt(0), c10::SymIntArrayRef stride=c10::SymInt(1), c10::SymIntArrayRef dilation=c10::SymInt(1), c10::SymInt groups=1) { + return at::_ops::mkldnn_reorder_conv3d_weight_out::redispatch(dispatchKeySet, self, padding, stride, dilation, groups, out); + } + + // aten::mkldnn_reorder_conv3d_weight.out(Tensor self, SymInt[3] padding=0, SymInt[3] stride=1, SymInt[3] dilation=1, SymInt groups=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & mkldnn_reorder_conv3d_weight_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef padding, c10::SymIntArrayRef stride, c10::SymIntArrayRef dilation, c10::SymInt groups, at::Tensor & out) { + return at::_ops::mkldnn_reorder_conv3d_weight_out::redispatch(dispatchKeySet, self, padding, stride, dilation, groups, out); + } + + // aten::quantize_per_tensor_dynamic.out(Tensor self, ScalarType dtype, bool reduce_range, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & quantize_per_tensor_dynamic_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::ScalarType dtype, bool reduce_range) { + return at::_ops::quantize_per_tensor_dynamic_out::redispatch(dispatchKeySet, self, dtype, reduce_range, out); + } + + // aten::quantize_per_tensor_dynamic.out(Tensor self, ScalarType dtype, bool reduce_range, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & quantize_per_tensor_dynamic_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::ScalarType dtype, bool reduce_range, at::Tensor & out) { + return at::_ops::quantize_per_tensor_dynamic_out::redispatch(dispatchKeySet, self, dtype, reduce_range, out); + } + + // aten::quantize_per_tensor.out(Tensor self, float scale, int zero_point, ScalarType dtype, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & quantize_per_tensor_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, double scale, int64_t zero_point, at::ScalarType dtype) { + return at::_ops::quantize_per_tensor_out::redispatch(dispatchKeySet, self, scale, zero_point, dtype, out); + } + + // aten::quantize_per_tensor.out(Tensor self, float scale, int zero_point, ScalarType dtype, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & quantize_per_tensor_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, double scale, int64_t zero_point, at::ScalarType dtype, at::Tensor & out) { + return at::_ops::quantize_per_tensor_out::redispatch(dispatchKeySet, self, scale, zero_point, dtype, out); + } + + // aten::quantize_per_tensor.tensor_qparams_out(Tensor self, Tensor scale, Tensor zero_point, ScalarType dtype, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & quantize_per_tensor_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & scale, const at::Tensor & zero_point, at::ScalarType dtype) { + return at::_ops::quantize_per_tensor_tensor_qparams_out::redispatch(dispatchKeySet, self, scale, zero_point, dtype, out); + } + + // aten::quantize_per_tensor.tensor_qparams_out(Tensor self, Tensor scale, Tensor zero_point, ScalarType dtype, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & quantize_per_tensor_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & scale, const at::Tensor & zero_point, at::ScalarType dtype, at::Tensor & out) { + return at::_ops::quantize_per_tensor_tensor_qparams_out::redispatch(dispatchKeySet, self, scale, zero_point, dtype, out); + } + + // aten::quantize_per_tensor.tensors_out(Tensor[] tensors, Tensor scales, Tensor zero_points, ScalarType dtype, *, Tensor(a!)[] out) -> () + inline void quantize_per_tensor_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList tensors, const at::Tensor & scales, const at::Tensor & zero_points, at::ScalarType dtype) { + return at::_ops::quantize_per_tensor_tensors_out::redispatch(dispatchKeySet, tensors, scales, zero_points, dtype, out); + } + + // aten::quantize_per_tensor.tensors_out(Tensor[] tensors, Tensor scales, Tensor zero_points, ScalarType dtype, *, Tensor(a!)[] out) -> () + inline void quantize_per_tensor_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList tensors, const at::Tensor & scales, const at::Tensor & zero_points, at::ScalarType dtype, at::TensorList out) { + return at::_ops::quantize_per_tensor_tensors_out::redispatch(dispatchKeySet, tensors, scales, zero_points, dtype, out); + } + + // aten::quantize_per_channel.out(Tensor self, Tensor scales, Tensor zero_points, int axis, ScalarType dtype, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & quantize_per_channel_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & scales, const at::Tensor & zero_points, int64_t axis, at::ScalarType dtype) { + return at::_ops::quantize_per_channel_out::redispatch(dispatchKeySet, self, scales, zero_points, axis, dtype, out); + } + + // aten::quantize_per_channel.out(Tensor self, Tensor scales, Tensor zero_points, int axis, ScalarType dtype, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & quantize_per_channel_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & scales, const at::Tensor & zero_points, int64_t axis, at::ScalarType dtype, at::Tensor & out) { + return at::_ops::quantize_per_channel_out::redispatch(dispatchKeySet, self, scales, zero_points, axis, dtype, out); + } + + // aten::dequantize.self_out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & dequantize_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::dequantize_self_out::redispatch(dispatchKeySet, self, out); + } + + // aten::dequantize.self_out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & dequantize_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::dequantize_self_out::redispatch(dispatchKeySet, self, out); + } + + // aten::dequantize.tensors_out(Tensor[] tensors, *, Tensor(a!)[] out) -> () + inline void dequantize_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList tensors) { + return at::_ops::dequantize_tensors_out::redispatch(dispatchKeySet, tensors, out); + } + + // aten::dequantize.tensors_out(Tensor[] tensors, *, Tensor(a!)[] out) -> () + inline void dequantize_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList tensors, at::TensorList out) { + return at::_ops::dequantize_tensors_out::redispatch(dispatchKeySet, tensors, out); + } + + // aten::q_per_channel_scales.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & q_per_channel_scales_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::q_per_channel_scales_out::redispatch(dispatchKeySet, self, out); + } + + // aten::q_per_channel_scales.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & q_per_channel_scales_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::q_per_channel_scales_out::redispatch(dispatchKeySet, self, out); + } + + // aten::q_per_channel_zero_points.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & q_per_channel_zero_points_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::q_per_channel_zero_points_out::redispatch(dispatchKeySet, self, out); + } + + // aten::q_per_channel_zero_points.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & q_per_channel_zero_points_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::q_per_channel_zero_points_out::redispatch(dispatchKeySet, self, out); + } + + // aten::int_repr.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & int_repr_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::int_repr_out::redispatch(dispatchKeySet, self, out); + } + + // aten::int_repr.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & int_repr_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::int_repr_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_make_per_tensor_quantized_tensor.out(Tensor self, float scale, int zero_point, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _make_per_tensor_quantized_tensor_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, double scale, int64_t zero_point) { + return at::_ops::_make_per_tensor_quantized_tensor_out::redispatch(dispatchKeySet, self, scale, zero_point, out); + } + + // aten::_make_per_tensor_quantized_tensor.out(Tensor self, float scale, int zero_point, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _make_per_tensor_quantized_tensor_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, double scale, int64_t zero_point, at::Tensor & out) { + return at::_ops::_make_per_tensor_quantized_tensor_out::redispatch(dispatchKeySet, self, scale, zero_point, out); + } + + // aten::_make_per_channel_quantized_tensor.out(Tensor self, Tensor scale, Tensor zero_point, int axis, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _make_per_channel_quantized_tensor_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & scale, const at::Tensor & zero_point, int64_t axis) { + return at::_ops::_make_per_channel_quantized_tensor_out::redispatch(dispatchKeySet, self, scale, zero_point, axis, out); + } + + // aten::_make_per_channel_quantized_tensor.out(Tensor self, Tensor scale, Tensor zero_point, int axis, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _make_per_channel_quantized_tensor_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & scale, const at::Tensor & zero_point, int64_t axis, at::Tensor & out) { + return at::_ops::_make_per_channel_quantized_tensor_out::redispatch(dispatchKeySet, self, scale, zero_point, axis, out); + } + + // aten::fake_quantize_per_tensor_affine_cachemask.out(Tensor self, float scale, int zero_point, int quant_min, int quant_max, *, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple fake_quantize_per_tensor_affine_cachemask_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, const at::Tensor & self, double scale, int64_t zero_point, int64_t quant_min, int64_t quant_max) { + return at::_ops::fake_quantize_per_tensor_affine_cachemask_out::redispatch(dispatchKeySet, self, scale, zero_point, quant_min, quant_max, out0, out1); + } + + // aten::fake_quantize_per_tensor_affine_cachemask.out(Tensor self, float scale, int zero_point, int quant_min, int quant_max, *, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple fake_quantize_per_tensor_affine_cachemask_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, double scale, int64_t zero_point, int64_t quant_min, int64_t quant_max, at::Tensor & out0, at::Tensor & out1) { + return at::_ops::fake_quantize_per_tensor_affine_cachemask_out::redispatch(dispatchKeySet, self, scale, zero_point, quant_min, quant_max, out0, out1); + } + + // aten::_fake_quantize_per_tensor_affine_cachemask_tensor_qparams.out(Tensor self, Tensor scale, Tensor zero_point, Tensor fake_quant_enabled, int quant_min, int quant_max, *, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple _fake_quantize_per_tensor_affine_cachemask_tensor_qparams_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, const at::Tensor & self, const at::Tensor & scale, const at::Tensor & zero_point, const at::Tensor & fake_quant_enabled, int64_t quant_min, int64_t quant_max) { + return at::_ops::_fake_quantize_per_tensor_affine_cachemask_tensor_qparams_out::redispatch(dispatchKeySet, self, scale, zero_point, fake_quant_enabled, quant_min, quant_max, out0, out1); + } + + // aten::_fake_quantize_per_tensor_affine_cachemask_tensor_qparams.out(Tensor self, Tensor scale, Tensor zero_point, Tensor fake_quant_enabled, int quant_min, int quant_max, *, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple _fake_quantize_per_tensor_affine_cachemask_tensor_qparams_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & scale, const at::Tensor & zero_point, const at::Tensor & fake_quant_enabled, int64_t quant_min, int64_t quant_max, at::Tensor & out0, at::Tensor & out1) { + return at::_ops::_fake_quantize_per_tensor_affine_cachemask_tensor_qparams_out::redispatch(dispatchKeySet, self, scale, zero_point, fake_quant_enabled, quant_min, quant_max, out0, out1); + } + + // aten::_fake_quantize_learnable_per_tensor_affine.out(Tensor self, Tensor scale, Tensor zero_point, int quant_min, int quant_max, float grad_factor=1.0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _fake_quantize_learnable_per_tensor_affine_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & scale, const at::Tensor & zero_point, int64_t quant_min, int64_t quant_max, double grad_factor=1.0) { + return at::_ops::_fake_quantize_learnable_per_tensor_affine_out::redispatch(dispatchKeySet, self, scale, zero_point, quant_min, quant_max, grad_factor, out); + } + + // aten::_fake_quantize_learnable_per_tensor_affine.out(Tensor self, Tensor scale, Tensor zero_point, int quant_min, int quant_max, float grad_factor=1.0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _fake_quantize_learnable_per_tensor_affine_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & scale, const at::Tensor & zero_point, int64_t quant_min, int64_t quant_max, double grad_factor, at::Tensor & out) { + return at::_ops::_fake_quantize_learnable_per_tensor_affine_out::redispatch(dispatchKeySet, self, scale, zero_point, quant_min, quant_max, grad_factor, out); + } + + // aten::fake_quantize_per_channel_affine_cachemask.out(Tensor self, Tensor scale, Tensor zero_point, int axis, int quant_min, int quant_max, *, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple fake_quantize_per_channel_affine_cachemask_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, const at::Tensor & self, const at::Tensor & scale, const at::Tensor & zero_point, int64_t axis, int64_t quant_min, int64_t quant_max) { + return at::_ops::fake_quantize_per_channel_affine_cachemask_out::redispatch(dispatchKeySet, self, scale, zero_point, axis, quant_min, quant_max, out0, out1); + } + + // aten::fake_quantize_per_channel_affine_cachemask.out(Tensor self, Tensor scale, Tensor zero_point, int axis, int quant_min, int quant_max, *, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple fake_quantize_per_channel_affine_cachemask_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & scale, const at::Tensor & zero_point, int64_t axis, int64_t quant_min, int64_t quant_max, at::Tensor & out0, at::Tensor & out1) { + return at::_ops::fake_quantize_per_channel_affine_cachemask_out::redispatch(dispatchKeySet, self, scale, zero_point, axis, quant_min, quant_max, out0, out1); + } + + // aten::_fake_quantize_learnable_per_channel_affine.out(Tensor self, Tensor scale, Tensor zero_point, int axis, int quant_min, int quant_max, float grad_factor=1.0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _fake_quantize_learnable_per_channel_affine_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & scale, const at::Tensor & zero_point, int64_t axis, int64_t quant_min, int64_t quant_max, double grad_factor=1.0) { + return at::_ops::_fake_quantize_learnable_per_channel_affine_out::redispatch(dispatchKeySet, self, scale, zero_point, axis, quant_min, quant_max, grad_factor, out); + } + + // aten::_fake_quantize_learnable_per_channel_affine.out(Tensor self, Tensor scale, Tensor zero_point, int axis, int quant_min, int quant_max, float grad_factor=1.0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _fake_quantize_learnable_per_channel_affine_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & scale, const at::Tensor & zero_point, int64_t axis, int64_t quant_min, int64_t quant_max, double grad_factor, at::Tensor & out) { + return at::_ops::_fake_quantize_learnable_per_channel_affine_out::redispatch(dispatchKeySet, self, scale, zero_point, axis, quant_min, quant_max, grad_factor, out); + } + + // aten::_fused_moving_avg_obs_fq_helper.out(Tensor self, Tensor observer_on, Tensor fake_quant_on, Tensor(a!) running_min, Tensor(b!) running_max, Tensor(c!) scale, Tensor(d!) zero_point, float averaging_const, int quant_min, int quant_max, int ch_axis, bool per_row_fake_quant=False, bool symmetric_quant=False, *, Tensor(e!) out0, Tensor(f!) out1) -> (Tensor(e!), Tensor(f!)) + inline ::std::tuple _fused_moving_avg_obs_fq_helper_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, 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) { + return at::_ops::_fused_moving_avg_obs_fq_helper_out::redispatch(dispatchKeySet, self, observer_on, fake_quant_on, running_min, running_max, scale, zero_point, averaging_const, quant_min, quant_max, ch_axis, per_row_fake_quant, symmetric_quant, out0, out1); + } + + // aten::_fused_moving_avg_obs_fq_helper.out(Tensor self, Tensor observer_on, Tensor fake_quant_on, Tensor(a!) running_min, Tensor(b!) running_max, Tensor(c!) scale, Tensor(d!) zero_point, float averaging_const, int quant_min, int quant_max, int ch_axis, bool per_row_fake_quant=False, bool symmetric_quant=False, *, Tensor(e!) out0, Tensor(f!) out1) -> (Tensor(e!), Tensor(f!)) + inline ::std::tuple _fused_moving_avg_obs_fq_helper_outf(c10::DispatchKeySet dispatchKeySet, 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) { + return at::_ops::_fused_moving_avg_obs_fq_helper_out::redispatch(dispatchKeySet, self, observer_on, fake_quant_on, running_min, running_max, scale, zero_point, averaging_const, quant_min, quant_max, ch_axis, per_row_fake_quant, symmetric_quant, out0, out1); + } + + // aten::_fused_moving_avg_obs_fq_helper_functional(Tensor self, Tensor observer_on, Tensor fake_quant_on, Tensor running_min, Tensor running_max, Tensor scale, Tensor zero_point, float averaging_const, int quant_min, int quant_max, int ch_axis, bool per_row_fake_quant=False, bool symmetric_quant=False) -> (Tensor output, Tensor mask, Tensor running_min_out, Tensor running_max_out, Tensor scale_out, Tensor zero_point_out) + inline ::std::tuple _fused_moving_avg_obs_fq_helper_functional(c10::DispatchKeySet dispatchKeySet, 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) { + return at::_ops::_fused_moving_avg_obs_fq_helper_functional::redispatch(dispatchKeySet, self, observer_on, fake_quant_on, running_min, running_max, scale, zero_point, averaging_const, quant_min, quant_max, ch_axis, per_row_fake_quant, symmetric_quant); + } + + // aten::_to_copy.out(Tensor self, *, bool non_blocking=False, MemoryFormat? memory_format=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _to_copy_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, bool non_blocking=false, c10::optional memory_format=c10::nullopt) { + return at::_ops::_to_copy_out::redispatch(dispatchKeySet, self, non_blocking, memory_format, out); + } + + // aten::_to_copy.out(Tensor self, *, bool non_blocking=False, MemoryFormat? memory_format=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _to_copy_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, bool non_blocking, c10::optional memory_format, at::Tensor & out) { + return at::_ops::_to_copy_out::redispatch(dispatchKeySet, self, non_blocking, memory_format, out); + } + + // aten::_lstm_mps.out(Tensor input, Tensor[] hx, Tensor[] params, bool has_biases, int num_layers, float dropout, bool train, bool bidirectional, bool batch_first, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2, Tensor(d!) out3, Tensor(e!) out4, Tensor(f!) out5) -> (Tensor(a!), Tensor(b!), Tensor(c!), Tensor(d!), Tensor(e!), Tensor(f!)) + inline ::std::tuple _lstm_mps_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, at::Tensor & out3, at::Tensor & out4, at::Tensor & out5, 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) { + return at::_ops::_lstm_mps_out::redispatch(dispatchKeySet, input, hx, params, has_biases, num_layers, dropout, train, bidirectional, batch_first, out0, out1, out2, out3, out4, out5); + } + + // aten::_lstm_mps.out(Tensor input, Tensor[] hx, Tensor[] params, bool has_biases, int num_layers, float dropout, bool train, bool bidirectional, bool batch_first, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2, Tensor(d!) out3, Tensor(e!) out4, Tensor(f!) out5) -> (Tensor(a!), Tensor(b!), Tensor(c!), Tensor(d!), Tensor(e!), Tensor(f!)) + inline ::std::tuple _lstm_mps_outf(c10::DispatchKeySet dispatchKeySet, 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) { + return at::_ops::_lstm_mps_out::redispatch(dispatchKeySet, input, hx, params, has_biases, num_layers, dropout, train, bidirectional, batch_first, out0, out1, out2, out3, out4, out5); + } + + // aten::lstm_mps_backward.out(Tensor? grad_y, Tensor? grad_hy, Tensor? grad_cy, Tensor z_state, Tensor cell_state_fwd, Tensor input, Tensor layersOutputs, Tensor[] hx, Tensor[] params, bool has_biases, int num_layers, float dropout, bool train, bool bidirectional, bool batch_first, *, Tensor(a!) out0, Tensor(b!)[] out1, Tensor(c!)[] out2) -> () + inline void lstm_mps_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::TensorList out1, at::TensorList out2, const c10::optional & grad_y, const c10::optional & grad_hy, const c10::optional & grad_cy, const at::Tensor & z_state, const at::Tensor & cell_state_fwd, const at::Tensor & input, const at::Tensor & layersOutputs, at::TensorList hx, at::TensorList params, bool has_biases, int64_t num_layers, double dropout, bool train, bool bidirectional, bool batch_first) { + return at::_ops::lstm_mps_backward_out::redispatch(dispatchKeySet, grad_y, grad_hy, grad_cy, z_state, cell_state_fwd, input, layersOutputs, hx, params, has_biases, num_layers, dropout, train, bidirectional, batch_first, out0, out1, out2); + } + + // aten::lstm_mps_backward.out(Tensor? grad_y, Tensor? grad_hy, Tensor? grad_cy, Tensor z_state, Tensor cell_state_fwd, Tensor input, Tensor layersOutputs, Tensor[] hx, Tensor[] params, bool has_biases, int num_layers, float dropout, bool train, bool bidirectional, bool batch_first, *, Tensor(a!) out0, Tensor(b!)[] out1, Tensor(c!)[] out2) -> () + inline void lstm_mps_backward_outf(c10::DispatchKeySet dispatchKeySet, const c10::optional & grad_y, const c10::optional & grad_hy, const c10::optional & grad_cy, const at::Tensor & z_state, const at::Tensor & cell_state_fwd, const at::Tensor & input, const at::Tensor & layersOutputs, 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::TensorList out1, at::TensorList out2) { + return at::_ops::lstm_mps_backward_out::redispatch(dispatchKeySet, grad_y, grad_hy, grad_cy, z_state, cell_state_fwd, input, layersOutputs, hx, params, has_biases, num_layers, dropout, train, bidirectional, batch_first, out0, out1, out2); + } + + // aten::_thnn_fused_lstm_cell.out(Tensor input_gates, Tensor hidden_gates, Tensor cx, Tensor? input_bias=None, Tensor? hidden_bias=None, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple _thnn_fused_lstm_cell_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, const at::Tensor & input_gates, const at::Tensor & hidden_gates, const at::Tensor & cx, const c10::optional & input_bias={}, const c10::optional & hidden_bias={}) { + return at::_ops::_thnn_fused_lstm_cell_out::redispatch(dispatchKeySet, input_gates, hidden_gates, cx, input_bias, hidden_bias, out0, out1, out2); + } + + // aten::_thnn_fused_lstm_cell.out(Tensor input_gates, Tensor hidden_gates, Tensor cx, Tensor? input_bias=None, Tensor? hidden_bias=None, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple _thnn_fused_lstm_cell_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input_gates, const at::Tensor & hidden_gates, const at::Tensor & cx, const c10::optional & input_bias, const c10::optional & hidden_bias, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2) { + return at::_ops::_thnn_fused_lstm_cell_out::redispatch(dispatchKeySet, input_gates, hidden_gates, cx, input_bias, hidden_bias, out0, out1, out2); + } + + // aten::_thnn_fused_lstm_cell_backward_impl.out(Tensor? grad_hy, Tensor? grad_cy, Tensor cx, Tensor cy, Tensor workspace, bool has_bias, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple _thnn_fused_lstm_cell_backward_impl_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, const c10::optional & grad_hy, const c10::optional & grad_cy, const at::Tensor & cx, const at::Tensor & cy, const at::Tensor & workspace, bool has_bias) { + return at::_ops::_thnn_fused_lstm_cell_backward_impl_out::redispatch(dispatchKeySet, grad_hy, grad_cy, cx, cy, workspace, has_bias, out0, out1, out2); + } + + // aten::_thnn_fused_lstm_cell_backward_impl.out(Tensor? grad_hy, Tensor? grad_cy, Tensor cx, Tensor cy, Tensor workspace, bool has_bias, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple _thnn_fused_lstm_cell_backward_impl_outf(c10::DispatchKeySet dispatchKeySet, const c10::optional & grad_hy, const c10::optional & grad_cy, const at::Tensor & cx, const at::Tensor & cy, const at::Tensor & workspace, bool has_bias, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2) { + return at::_ops::_thnn_fused_lstm_cell_backward_impl_out::redispatch(dispatchKeySet, grad_hy, grad_cy, cx, cy, workspace, has_bias, out0, out1, out2); + } + + // aten::_thnn_fused_gru_cell.out(Tensor input_gates, Tensor hidden_gates, Tensor hx, Tensor? input_bias=None, Tensor? hidden_bias=None, *, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple _thnn_fused_gru_cell_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, const at::Tensor & input_gates, const at::Tensor & hidden_gates, const at::Tensor & hx, const c10::optional & input_bias={}, const c10::optional & hidden_bias={}) { + return at::_ops::_thnn_fused_gru_cell_out::redispatch(dispatchKeySet, input_gates, hidden_gates, hx, input_bias, hidden_bias, out0, out1); + } + + // aten::_thnn_fused_gru_cell.out(Tensor input_gates, Tensor hidden_gates, Tensor hx, Tensor? input_bias=None, Tensor? hidden_bias=None, *, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple _thnn_fused_gru_cell_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input_gates, const at::Tensor & hidden_gates, const at::Tensor & hx, const c10::optional & input_bias, const c10::optional & hidden_bias, at::Tensor & out0, at::Tensor & out1) { + return at::_ops::_thnn_fused_gru_cell_out::redispatch(dispatchKeySet, input_gates, hidden_gates, hx, input_bias, hidden_bias, out0, out1); + } + + // aten::_thnn_fused_gru_cell_backward.out(Tensor grad_hy, Tensor workspace, bool has_bias, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2, Tensor(d!) out3, Tensor(e!) out4) -> (Tensor(a!), Tensor(b!), Tensor(c!), Tensor(d!), Tensor(e!)) + inline ::std::tuple _thnn_fused_gru_cell_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, at::Tensor & out3, at::Tensor & out4, const at::Tensor & grad_hy, const at::Tensor & workspace, bool has_bias) { + return at::_ops::_thnn_fused_gru_cell_backward_out::redispatch(dispatchKeySet, grad_hy, workspace, has_bias, out0, out1, out2, out3, out4); + } + + // aten::_thnn_fused_gru_cell_backward.out(Tensor grad_hy, Tensor workspace, bool has_bias, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2, Tensor(d!) out3, Tensor(e!) out4) -> (Tensor(a!), Tensor(b!), Tensor(c!), Tensor(d!), Tensor(e!)) + inline ::std::tuple _thnn_fused_gru_cell_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_hy, const at::Tensor & workspace, bool has_bias, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, at::Tensor & out3, at::Tensor & out4) { + return at::_ops::_thnn_fused_gru_cell_backward_out::redispatch(dispatchKeySet, grad_hy, workspace, has_bias, out0, out1, out2, out3, out4); + } + + // aten::_pack_padded_sequence.out(Tensor input, Tensor lengths, bool batch_first, *, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple _pack_padded_sequence_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, const at::Tensor & input, const at::Tensor & lengths, bool batch_first) { + return at::_ops::_pack_padded_sequence_out::redispatch(dispatchKeySet, input, lengths, batch_first, out0, out1); + } + + // aten::_pack_padded_sequence.out(Tensor input, Tensor lengths, bool batch_first, *, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple _pack_padded_sequence_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & lengths, bool batch_first, at::Tensor & out0, at::Tensor & out1) { + return at::_ops::_pack_padded_sequence_out::redispatch(dispatchKeySet, input, lengths, batch_first, out0, out1); + } + + // aten::set.source_Storage_out(Tensor self, Storage source, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & set_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::Storage source) { + return at::_ops::set_source_Storage_out::redispatch(dispatchKeySet, self, source, out); + } + + // aten::set.source_Storage_out(Tensor self, Storage source, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & set_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Storage source, at::Tensor & out) { + return at::_ops::set_source_Storage_out::redispatch(dispatchKeySet, self, source, out); + } + + // aten::set.source_Storage(Tensor self, Storage source) -> Tensor + inline at::Tensor set(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Storage source) { + return at::_ops::set_source_Storage::redispatch(dispatchKeySet, self, source); + } + + // aten::set.source_Storage_storage_offset_out(Tensor self, Storage source, SymInt storage_offset, SymInt[] size, SymInt[] stride=[], *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & set_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::Storage source, int64_t storage_offset, at::IntArrayRef size, at::IntArrayRef stride={}) { + return at::_ops::set_source_Storage_storage_offset_out::redispatch(dispatchKeySet, self, source, storage_offset, c10::fromIntArrayRefSlow(size), c10::fromIntArrayRefSlow(stride), out); + } + + // aten::set.source_Storage_storage_offset_out(Tensor self, Storage source, SymInt storage_offset, SymInt[] size, SymInt[] stride=[], *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & set_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Storage source, int64_t storage_offset, at::IntArrayRef size, at::IntArrayRef stride, at::Tensor & out) { + return at::_ops::set_source_Storage_storage_offset_out::redispatch(dispatchKeySet, self, source, storage_offset, c10::fromIntArrayRefSlow(size), c10::fromIntArrayRefSlow(stride), out); + } + + // aten::set.source_Storage_storage_offset_out(Tensor self, Storage source, SymInt storage_offset, SymInt[] size, SymInt[] stride=[], *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & set_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::Storage source, c10::SymInt storage_offset, c10::SymIntArrayRef size, c10::SymIntArrayRef stride={}) { + return at::_ops::set_source_Storage_storage_offset_out::redispatch(dispatchKeySet, self, source, storage_offset, size, stride, out); + } + + // aten::set.source_Storage_storage_offset_out(Tensor self, Storage source, SymInt storage_offset, SymInt[] size, SymInt[] stride=[], *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & set_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Storage source, c10::SymInt storage_offset, c10::SymIntArrayRef size, c10::SymIntArrayRef stride, at::Tensor & out) { + return at::_ops::set_source_Storage_storage_offset_out::redispatch(dispatchKeySet, self, source, storage_offset, size, stride, out); + } + + // aten::set.source_Storage_storage_offset(Tensor self, Storage source, SymInt storage_offset, SymInt[] size, SymInt[] stride=[]) -> Tensor + inline at::Tensor set(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Storage source, int64_t storage_offset, at::IntArrayRef size, at::IntArrayRef stride={}) { + return at::_ops::set_source_Storage_storage_offset::redispatch(dispatchKeySet, self, source, storage_offset, c10::fromIntArrayRefSlow(size), c10::fromIntArrayRefSlow(stride)); + } + + // aten::set.source_Storage_storage_offset(Tensor self, Storage source, SymInt storage_offset, SymInt[] size, SymInt[] stride=[]) -> Tensor + inline at::Tensor set_symint(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Storage source, c10::SymInt storage_offset, c10::SymIntArrayRef size, c10::SymIntArrayRef stride={}) { + return at::_ops::set_source_Storage_storage_offset::redispatch(dispatchKeySet, self, source, storage_offset, size, stride); + } + + // aten::set.source_Tensor_out(Tensor self, Tensor source, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & set_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & source) { + return at::_ops::set_source_Tensor_out::redispatch(dispatchKeySet, self, source, out); + } + + // aten::set.source_Tensor_out(Tensor self, Tensor source, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & set_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & source, at::Tensor & out) { + return at::_ops::set_source_Tensor_out::redispatch(dispatchKeySet, self, source, out); + } + + // aten::set.source_Tensor(Tensor self, Tensor source) -> Tensor + inline at::Tensor set(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & source) { + return at::_ops::set_source_Tensor::redispatch(dispatchKeySet, self, source); + } + + // aten::set.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & set_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::set_out::redispatch(dispatchKeySet, self, out); + } + + // aten::set.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & set_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::set_out::redispatch(dispatchKeySet, self, out); + } + + // aten::set(Tensor self) -> Tensor + inline at::Tensor set(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self) { + return at::_ops::set::redispatch(dispatchKeySet, self); + } + + // aten::lift.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & lift_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::lift_out::redispatch(dispatchKeySet, self, out); + } + + // aten::lift.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & lift_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::lift_out::redispatch(dispatchKeySet, self, out); + } + + // aten::lift_fresh_copy.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & lift_fresh_copy_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::lift_fresh_copy_out::redispatch(dispatchKeySet, self, out); + } + + // aten::lift_fresh_copy.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & lift_fresh_copy_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::lift_fresh_copy_out::redispatch(dispatchKeySet, self, out); + } + + // aten::masked_fill.Scalar_out(Tensor self, Tensor mask, Scalar value, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & masked_fill_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & mask, const at::Scalar & value) { + return at::_ops::masked_fill_Scalar_out::redispatch(dispatchKeySet, self, mask, value, out); + } + + // aten::masked_fill.Scalar_out(Tensor self, Tensor mask, Scalar value, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & masked_fill_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & mask, const at::Scalar & value, at::Tensor & out) { + return at::_ops::masked_fill_Scalar_out::redispatch(dispatchKeySet, self, mask, value, out); + } + + // aten::masked_fill.Tensor_out(Tensor self, Tensor mask, Tensor value, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & masked_fill_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & mask, const at::Tensor & value) { + return at::_ops::masked_fill_Tensor_out::redispatch(dispatchKeySet, self, mask, value, out); + } + + // aten::masked_fill.Tensor_out(Tensor self, Tensor mask, Tensor value, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & masked_fill_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & mask, const at::Tensor & value, at::Tensor & out) { + return at::_ops::masked_fill_Tensor_out::redispatch(dispatchKeySet, self, mask, value, out); + } + + // aten::masked_scatter.out(Tensor self, Tensor mask, Tensor source, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & masked_scatter_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & mask, const at::Tensor & source) { + return at::_ops::masked_scatter_out::redispatch(dispatchKeySet, self, mask, source, out); + } + + // aten::masked_scatter.out(Tensor self, Tensor mask, Tensor source, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & masked_scatter_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & mask, const at::Tensor & source, at::Tensor & out) { + return at::_ops::masked_scatter_out::redispatch(dispatchKeySet, self, mask, source, out); + } + + // aten::_masked_softmax.out(Tensor self, Tensor mask, int? dim=None, int? mask_type=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _masked_softmax_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & mask, c10::optional dim=c10::nullopt, c10::optional mask_type=c10::nullopt) { + return at::_ops::_masked_softmax_out::redispatch(dispatchKeySet, self, mask, dim, mask_type, out); + } + + // aten::_masked_softmax.out(Tensor self, Tensor mask, int? dim=None, int? mask_type=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _masked_softmax_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & mask, c10::optional dim, c10::optional mask_type, at::Tensor & out) { + return at::_ops::_masked_softmax_out::redispatch(dispatchKeySet, self, mask, dim, mask_type, out); + } + + // aten::_masked_softmax_backward.out(Tensor grad_output, Tensor output, Tensor mask, int? dim=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _masked_softmax_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & grad_output, const at::Tensor & output, const at::Tensor & mask, c10::optional dim=c10::nullopt) { + return at::_ops::_masked_softmax_backward_out::redispatch(dispatchKeySet, grad_output, output, mask, dim, out); + } + + // aten::_masked_softmax_backward.out(Tensor grad_output, Tensor output, Tensor mask, int? dim=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _masked_softmax_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & output, const at::Tensor & mask, c10::optional dim, at::Tensor & out) { + return at::_ops::_masked_softmax_backward_out::redispatch(dispatchKeySet, grad_output, output, mask, dim, out); + } + + // aten::put.out(Tensor self, Tensor index, Tensor source, bool accumulate=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & put_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & index, const at::Tensor & source, bool accumulate=false) { + return at::_ops::put_out::redispatch(dispatchKeySet, self, index, source, accumulate, out); + } + + // aten::put.out(Tensor self, Tensor index, Tensor source, bool accumulate=False, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & put_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & index, const at::Tensor & source, bool accumulate, at::Tensor & out) { + return at::_ops::put_out::redispatch(dispatchKeySet, self, index, source, accumulate, out); + } + + // aten::index_fill.int_Scalar_out(Tensor self, int dim, Tensor index, Scalar value, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & index_fill_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Scalar & value) { + return at::_ops::index_fill_int_Scalar_out::redispatch(dispatchKeySet, self, dim, index, value, out); + } + + // aten::index_fill.int_Scalar_out(Tensor self, int dim, Tensor index, Scalar value, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & index_fill_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Scalar & value, at::Tensor & out) { + return at::_ops::index_fill_int_Scalar_out::redispatch(dispatchKeySet, self, dim, index, value, out); + } + + // aten::index_fill.int_Tensor_out(Tensor self, int dim, Tensor index, Tensor value, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & index_fill_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Tensor & value) { + return at::_ops::index_fill_int_Tensor_out::redispatch(dispatchKeySet, self, dim, index, value, out); + } + + // aten::index_fill.int_Tensor_out(Tensor self, int dim, Tensor index, Tensor value, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & index_fill_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Tensor & value, at::Tensor & out) { + return at::_ops::index_fill_int_Tensor_out::redispatch(dispatchKeySet, self, dim, index, value, out); + } + + // aten::bitwise_and.Scalar_Tensor_out(Scalar self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & bitwise_and_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Scalar & self, const at::Tensor & other) { + return at::_ops::bitwise_and_Scalar_Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::bitwise_and.Scalar_Tensor_out(Scalar self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & bitwise_and_outf(c10::DispatchKeySet dispatchKeySet, const at::Scalar & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::bitwise_and_Scalar_Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::bitwise_or.Scalar_Tensor_out(Scalar self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & bitwise_or_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Scalar & self, const at::Tensor & other) { + return at::_ops::bitwise_or_Scalar_Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::bitwise_or.Scalar_Tensor_out(Scalar self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & bitwise_or_outf(c10::DispatchKeySet dispatchKeySet, const at::Scalar & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::bitwise_or_Scalar_Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::bitwise_xor.Scalar_Tensor_out(Scalar self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & bitwise_xor_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Scalar & self, const at::Tensor & other) { + return at::_ops::bitwise_xor_Scalar_Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::bitwise_xor.Scalar_Tensor_out(Scalar self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & bitwise_xor_outf(c10::DispatchKeySet dispatchKeySet, const at::Scalar & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::bitwise_xor_Scalar_Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::__lshift__.Scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & __lshift___out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::__lshift___Scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::__lshift__.Scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & __lshift___outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other, at::Tensor & out) { + return at::_ops::__lshift___Scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::__lshift__.Tensor_out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & __lshift___out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::__lshift___Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::__lshift__.Tensor_out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & __lshift___outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::__lshift___Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::bitwise_left_shift.Scalar_Tensor_out(Scalar self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & bitwise_left_shift_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Scalar & self, const at::Tensor & other) { + return at::_ops::bitwise_left_shift_Scalar_Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::bitwise_left_shift.Scalar_Tensor_out(Scalar self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & bitwise_left_shift_outf(c10::DispatchKeySet dispatchKeySet, const at::Scalar & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::bitwise_left_shift_Scalar_Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::__rshift__.Scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & __rshift___out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::__rshift___Scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::__rshift__.Scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & __rshift___outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other, at::Tensor & out) { + return at::_ops::__rshift___Scalar_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::__rshift__.Tensor_out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & __rshift___out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::__rshift___Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::__rshift__.Tensor_out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & __rshift___outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::__rshift___Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::bitwise_right_shift.Scalar_Tensor_out(Scalar self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & bitwise_right_shift_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Scalar & self, const at::Tensor & other) { + return at::_ops::bitwise_right_shift_Scalar_Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::bitwise_right_shift.Scalar_Tensor_out(Scalar self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & bitwise_right_shift_outf(c10::DispatchKeySet dispatchKeySet, const at::Scalar & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::bitwise_right_shift_Scalar_Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::random.from_out(Tensor self, int from, int? to, *, Generator? generator=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & random_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t from, c10::optional to, c10::optional generator=c10::nullopt) { + return at::_ops::random_from_out::redispatch(dispatchKeySet, self, from, to, generator, out); + } + + // aten::random.from_out(Tensor self, int from, int? to, *, Generator? generator=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & random_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t from, c10::optional to, c10::optional generator, at::Tensor & out) { + return at::_ops::random_from_out::redispatch(dispatchKeySet, self, from, to, generator, out); + } + + // aten::random.from(Tensor self, int from, int? to, *, Generator? generator=None) -> Tensor + inline at::Tensor random(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t from, c10::optional to, c10::optional generator=c10::nullopt) { + return at::_ops::random_from::redispatch(dispatchKeySet, self, from, to, generator); + } + + // aten::random.to_out(Tensor self, int to, *, Generator? generator=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & random_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t to, c10::optional generator=c10::nullopt) { + return at::_ops::random_to_out::redispatch(dispatchKeySet, self, to, generator, out); + } + + // aten::random.to_out(Tensor self, int to, *, Generator? generator=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & random_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t to, c10::optional generator, at::Tensor & out) { + return at::_ops::random_to_out::redispatch(dispatchKeySet, self, to, generator, out); + } + + // aten::random.to(Tensor self, int to, *, Generator? generator=None) -> Tensor + inline at::Tensor random(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t to, c10::optional generator=c10::nullopt) { + return at::_ops::random_to::redispatch(dispatchKeySet, self, to, generator); + } + + // aten::random.out(Tensor self, *, Generator? generator=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & random_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::optional generator=c10::nullopt) { + return at::_ops::random_out::redispatch(dispatchKeySet, self, generator, out); + } + + // aten::random.out(Tensor self, *, Generator? generator=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & random_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional generator, at::Tensor & out) { + return at::_ops::random_out::redispatch(dispatchKeySet, self, generator, out); + } + + // aten::random(Tensor self, *, Generator? generator=None) -> Tensor + inline at::Tensor random(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::optional generator=c10::nullopt) { + return at::_ops::random::redispatch(dispatchKeySet, self, generator); + } + + // aten::uniform.out(Tensor self, float from=0, float to=1, *, Generator? generator=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & uniform_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, double from=0, double to=1, c10::optional generator=c10::nullopt) { + return at::_ops::uniform_out::redispatch(dispatchKeySet, self, from, to, generator, out); + } + + // aten::uniform.out(Tensor self, float from=0, float to=1, *, Generator? generator=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & uniform_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, double from, double to, c10::optional generator, at::Tensor & out) { + return at::_ops::uniform_out::redispatch(dispatchKeySet, self, from, to, generator, out); + } + + // aten::uniform(Tensor self, float from=0, float to=1, *, Generator? generator=None) -> Tensor + inline at::Tensor uniform(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, double from=0, double to=1, c10::optional generator=c10::nullopt) { + return at::_ops::uniform::redispatch(dispatchKeySet, self, from, to, generator); + } + + // aten::cauchy.out(Tensor self, float median=0, float sigma=1, *, Generator? generator=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & cauchy_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, double median=0, double sigma=1, c10::optional generator=c10::nullopt) { + return at::_ops::cauchy_out::redispatch(dispatchKeySet, self, median, sigma, generator, out); + } + + // aten::cauchy.out(Tensor self, float median=0, float sigma=1, *, Generator? generator=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & cauchy_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, double median, double sigma, c10::optional generator, at::Tensor & out) { + return at::_ops::cauchy_out::redispatch(dispatchKeySet, self, median, sigma, generator, out); + } + + // aten::cauchy(Tensor self, float median=0, float sigma=1, *, Generator? generator=None) -> Tensor + inline at::Tensor cauchy(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, double median=0, double sigma=1, c10::optional generator=c10::nullopt) { + return at::_ops::cauchy::redispatch(dispatchKeySet, self, median, sigma, generator); + } + + // aten::log_normal.out(Tensor self, float mean=1, float std=2, *, Generator? generator=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & log_normal_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, double mean=1, double std=2, c10::optional generator=c10::nullopt) { + return at::_ops::log_normal_out::redispatch(dispatchKeySet, self, mean, std, generator, out); + } + + // aten::log_normal.out(Tensor self, float mean=1, float std=2, *, Generator? generator=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & log_normal_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, double mean, double std, c10::optional generator, at::Tensor & out) { + return at::_ops::log_normal_out::redispatch(dispatchKeySet, self, mean, std, generator, out); + } + + // aten::log_normal(Tensor self, float mean=1, float std=2, *, Generator? generator=None) -> Tensor + inline at::Tensor log_normal(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, double mean=1, double std=2, c10::optional generator=c10::nullopt) { + return at::_ops::log_normal::redispatch(dispatchKeySet, self, mean, std, generator); + } + + // aten::exponential.out(Tensor self, float lambd=1, *, Generator? generator=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & exponential_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, double lambd=1, c10::optional generator=c10::nullopt) { + return at::_ops::exponential_out::redispatch(dispatchKeySet, self, lambd, generator, out); + } + + // aten::exponential.out(Tensor self, float lambd=1, *, Generator? generator=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & exponential_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, double lambd, c10::optional generator, at::Tensor & out) { + return at::_ops::exponential_out::redispatch(dispatchKeySet, self, lambd, generator, out); + } + + // aten::exponential(Tensor self, float lambd=1, *, Generator? generator=None) -> Tensor + inline at::Tensor exponential(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, double lambd=1, c10::optional generator=c10::nullopt) { + return at::_ops::exponential::redispatch(dispatchKeySet, self, lambd, generator); + } + + // aten::geometric.out(Tensor self, float p, *, Generator? generator=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & geometric_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, double p, c10::optional generator=c10::nullopt) { + return at::_ops::geometric_out::redispatch(dispatchKeySet, self, p, generator, out); + } + + // aten::geometric.out(Tensor self, float p, *, Generator? generator=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & geometric_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, double p, c10::optional generator, at::Tensor & out) { + return at::_ops::geometric_out::redispatch(dispatchKeySet, self, p, generator, out); + } + + // aten::geometric(Tensor self, float p, *, Generator? generator=None) -> Tensor + inline at::Tensor geometric(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, double p, c10::optional generator=c10::nullopt) { + return at::_ops::geometric::redispatch(dispatchKeySet, self, p, generator); + } + + // aten::tril_indices.out(int row, int col, int offset=0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & tril_indices_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, int64_t row, int64_t col, int64_t offset=0) { + return at::_ops::tril_indices_out::redispatch(dispatchKeySet, row, col, offset, out); + } + + // aten::tril_indices.out(int row, int col, int offset=0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & tril_indices_outf(c10::DispatchKeySet dispatchKeySet, int64_t row, int64_t col, int64_t offset, at::Tensor & out) { + return at::_ops::tril_indices_out::redispatch(dispatchKeySet, row, col, offset, out); + } + + // aten::triu_indices.out(int row, int col, int offset=0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & triu_indices_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, int64_t row, int64_t col, int64_t offset=0) { + return at::_ops::triu_indices_out::redispatch(dispatchKeySet, row, col, offset, out); + } + + // aten::triu_indices.out(int row, int col, int offset=0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & triu_indices_outf(c10::DispatchKeySet dispatchKeySet, int64_t row, int64_t col, int64_t offset, at::Tensor & out) { + return at::_ops::triu_indices_out::redispatch(dispatchKeySet, row, col, offset, out); + } + + // aten::trace.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & trace_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::trace_out::redispatch(dispatchKeySet, self, out); + } + + // aten::trace.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & trace_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::trace_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_cholesky_solve_helper.out(Tensor self, Tensor A, bool upper, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _cholesky_solve_helper_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & A, bool upper) { + return at::_ops::_cholesky_solve_helper_out::redispatch(dispatchKeySet, self, A, upper, out); + } + + // aten::_cholesky_solve_helper.out(Tensor self, Tensor A, bool upper, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _cholesky_solve_helper_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & A, bool upper, at::Tensor & out) { + return at::_ops::_cholesky_solve_helper_out::redispatch(dispatchKeySet, self, A, upper, out); + } + + // aten::dist.out(Tensor self, Tensor other, Scalar p=2, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & dist_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & other, const at::Scalar & p=2) { + return at::_ops::dist_out::redispatch(dispatchKeySet, self, other, p, out); + } + + // aten::dist.out(Tensor self, Tensor other, Scalar p=2, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & dist_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, const at::Scalar & p, at::Tensor & out) { + return at::_ops::dist_out::redispatch(dispatchKeySet, self, other, p, out); + } + + // aten::_histogramdd_bin_edges.out(Tensor self, int[] bins, *, float[]? range=None, Tensor? weight=None, bool density=False, Tensor(a!)[] out) -> () + inline void _histogramdd_bin_edges_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, const at::Tensor & self, at::IntArrayRef bins, c10::optional> range=c10::nullopt, const c10::optional & weight={}, bool density=false) { + return at::_ops::_histogramdd_bin_edges_out::redispatch(dispatchKeySet, self, bins, range, weight, density, out); + } + + // aten::_histogramdd_bin_edges.out(Tensor self, int[] bins, *, float[]? range=None, Tensor? weight=None, bool density=False, Tensor(a!)[] out) -> () + inline void _histogramdd_bin_edges_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef bins, c10::optional> range, const c10::optional & weight, bool density, at::TensorList out) { + return at::_ops::_histogramdd_bin_edges_out::redispatch(dispatchKeySet, self, bins, range, weight, density, out); + } + + // aten::_histogramdd_from_bin_cts.out(Tensor self, int[] bins, *, float[]? range=None, Tensor? weight=None, bool density=False, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _histogramdd_from_bin_cts_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef bins, c10::optional> range=c10::nullopt, const c10::optional & weight={}, bool density=false) { + return at::_ops::_histogramdd_from_bin_cts_out::redispatch(dispatchKeySet, self, bins, range, weight, density, out); + } + + // aten::_histogramdd_from_bin_cts.out(Tensor self, int[] bins, *, float[]? range=None, Tensor? weight=None, bool density=False, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _histogramdd_from_bin_cts_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef bins, c10::optional> range, const c10::optional & weight, bool density, at::Tensor & out) { + return at::_ops::_histogramdd_from_bin_cts_out::redispatch(dispatchKeySet, self, bins, range, weight, density, out); + } + + // aten::_histogramdd_from_bin_tensors.out(Tensor self, Tensor[] bins, *, Tensor? weight=None, bool density=False, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _histogramdd_from_bin_tensors_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::TensorList bins, const c10::optional & weight={}, bool density=false) { + return at::_ops::_histogramdd_from_bin_tensors_out::redispatch(dispatchKeySet, self, bins, weight, density, out); + } + + // aten::_histogramdd_from_bin_tensors.out(Tensor self, Tensor[] bins, *, Tensor? weight=None, bool density=False, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _histogramdd_from_bin_tensors_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::TensorList bins, const c10::optional & weight, bool density, at::Tensor & out) { + return at::_ops::_histogramdd_from_bin_tensors_out::redispatch(dispatchKeySet, self, bins, weight, density, out); + } + + // aten::remainder.Scalar_Tensor_out(Scalar self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & remainder_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Scalar & self, const at::Tensor & other) { + return at::_ops::remainder_Scalar_Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::remainder.Scalar_Tensor_out(Scalar self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & remainder_outf(c10::DispatchKeySet dispatchKeySet, const at::Scalar & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::remainder_Scalar_Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::argsort.stable_out(Tensor self, *, bool stable, int dim=-1, bool descending=False, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & argsort_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, bool stable, int64_t dim=-1, bool descending=false) { + return at::_ops::argsort_stable_out::redispatch(dispatchKeySet, self, stable, dim, descending, out); + } + + // aten::argsort.stable_out(Tensor self, *, bool stable, int dim=-1, bool descending=False, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & argsort_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, bool stable, int64_t dim, bool descending, at::Tensor & out) { + return at::_ops::argsort_stable_out::redispatch(dispatchKeySet, self, stable, dim, descending, out); + } + + // aten::unfold_backward.out(Tensor grad_in, SymInt[] input_sizes, int dim, int size, int step, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & unfold_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & grad_in, at::IntArrayRef input_sizes, int64_t dim, int64_t size, int64_t step) { + return at::_ops::unfold_backward_out::redispatch(dispatchKeySet, grad_in, c10::fromIntArrayRefSlow(input_sizes), dim, size, step, out); + } + + // aten::unfold_backward.out(Tensor grad_in, SymInt[] input_sizes, int dim, int size, int step, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & unfold_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_in, at::IntArrayRef input_sizes, int64_t dim, int64_t size, int64_t step, at::Tensor & out) { + return at::_ops::unfold_backward_out::redispatch(dispatchKeySet, grad_in, c10::fromIntArrayRefSlow(input_sizes), dim, size, step, out); + } + + // aten::unfold_backward.out(Tensor grad_in, SymInt[] input_sizes, int dim, int size, int step, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & unfold_backward_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & grad_in, c10::SymIntArrayRef input_sizes, int64_t dim, int64_t size, int64_t step) { + return at::_ops::unfold_backward_out::redispatch(dispatchKeySet, grad_in, input_sizes, dim, size, step, out); + } + + // aten::unfold_backward.out(Tensor grad_in, SymInt[] input_sizes, int dim, int size, int step, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & unfold_backward_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_in, c10::SymIntArrayRef input_sizes, int64_t dim, int64_t size, int64_t step, at::Tensor & out) { + return at::_ops::unfold_backward_out::redispatch(dispatchKeySet, grad_in, input_sizes, dim, size, step, out); + } + + // aten::normal.out(Tensor self, float mean=0, float std=1, *, Generator? generator=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & normal_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, double mean=0, double std=1, c10::optional generator=c10::nullopt) { + return at::_ops::normal_out::redispatch(dispatchKeySet, self, mean, std, generator, out); + } + + // aten::normal.out(Tensor self, float mean=0, float std=1, *, Generator? generator=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & normal_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, double mean, double std, c10::optional generator, at::Tensor & out) { + return at::_ops::normal_out::redispatch(dispatchKeySet, self, mean, std, generator, out); + } + + // aten::_amp_foreach_non_finite_check_and_unscale.out(Tensor[] self, Tensor(b!) found_inf, Tensor inv_scale, *, Tensor(a!)[] out) -> () + inline void _amp_foreach_non_finite_check_and_unscale_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self, at::Tensor & found_inf, const at::Tensor & inv_scale) { + return at::_ops::_amp_foreach_non_finite_check_and_unscale_out::redispatch(dispatchKeySet, self, found_inf, inv_scale, out); + } + + // aten::_amp_foreach_non_finite_check_and_unscale.out(Tensor[] self, Tensor(b!) found_inf, Tensor inv_scale, *, Tensor(a!)[] out) -> () + inline void _amp_foreach_non_finite_check_and_unscale_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::Tensor & found_inf, const at::Tensor & inv_scale, at::TensorList out) { + return at::_ops::_amp_foreach_non_finite_check_and_unscale_out::redispatch(dispatchKeySet, self, found_inf, inv_scale, out); + } + + // aten::_amp_foreach_non_finite_check_and_unscale(Tensor[] self, Tensor found_inf, Tensor inv_scale) -> (Tensor[] self_out, Tensor found_inf_out) + inline ::std::tuple<::std::vector,at::Tensor> _amp_foreach_non_finite_check_and_unscale(c10::DispatchKeySet dispatchKeySet, at::TensorList self, const at::Tensor & found_inf, const at::Tensor & inv_scale) { + return at::_ops::_amp_foreach_non_finite_check_and_unscale::redispatch(dispatchKeySet, self, found_inf, inv_scale); + } + + // aten::_amp_update_scale.out(Tensor self, Tensor(b!) growth_tracker, Tensor found_inf, float scale_growth_factor, float scale_backoff_factor, int growth_interval, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _amp_update_scale_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::Tensor & growth_tracker, const at::Tensor & found_inf, double scale_growth_factor, double scale_backoff_factor, int64_t growth_interval) { + return at::_ops::_amp_update_scale_out::redispatch(dispatchKeySet, self, growth_tracker, found_inf, scale_growth_factor, scale_backoff_factor, growth_interval, out); + } + + // aten::_amp_update_scale.out(Tensor self, Tensor(b!) growth_tracker, Tensor found_inf, float scale_growth_factor, float scale_backoff_factor, int growth_interval, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _amp_update_scale_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & growth_tracker, const at::Tensor & found_inf, double scale_growth_factor, double scale_backoff_factor, int64_t growth_interval, at::Tensor & out) { + return at::_ops::_amp_update_scale_out::redispatch(dispatchKeySet, self, growth_tracker, found_inf, scale_growth_factor, scale_backoff_factor, growth_interval, out); + } + + // aten::_amp_update_scale(Tensor self, Tensor growth_tracker, Tensor found_inf, float scale_growth_factor, float scale_backoff_factor, int growth_interval) -> (Tensor, Tensor growth_tracker_out) + inline ::std::tuple _amp_update_scale(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & growth_tracker, const at::Tensor & found_inf, double scale_growth_factor, double scale_backoff_factor, int64_t growth_interval) { + return at::_ops::_amp_update_scale::redispatch(dispatchKeySet, self, growth_tracker, found_inf, scale_growth_factor, scale_backoff_factor, growth_interval); + } + + // aten::_foreach_add.Scalar_out(Tensor[] self, Scalar scalar, *, Tensor(a!)[] out) -> () + inline void _foreach_add_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self, const at::Scalar & scalar) { + return at::_ops::_foreach_add_Scalar_out::redispatch(dispatchKeySet, self, scalar, out); + } + + // aten::_foreach_add.Scalar_out(Tensor[] self, Scalar scalar, *, Tensor(a!)[] out) -> () + inline void _foreach_add_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, const at::Scalar & scalar, at::TensorList out) { + return at::_ops::_foreach_add_Scalar_out::redispatch(dispatchKeySet, self, scalar, out); + } + + // aten::_foreach_add.List_out(Tensor[] self, Tensor[] other, *, Scalar alpha=1, Tensor(a!)[] out) -> () + inline void _foreach_add_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self, at::TensorList other, const at::Scalar & alpha=1) { + return at::_ops::_foreach_add_List_out::redispatch(dispatchKeySet, self, other, alpha, out); + } + + // aten::_foreach_add.List_out(Tensor[] self, Tensor[] other, *, Scalar alpha=1, Tensor(a!)[] out) -> () + inline void _foreach_add_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList other, const at::Scalar & alpha, at::TensorList out) { + return at::_ops::_foreach_add_List_out::redispatch(dispatchKeySet, self, other, alpha, out); + } + + // aten::_foreach_add.ScalarList_out(Tensor[] self, Scalar[] scalars, *, Tensor(a!)[] out) -> () + inline void _foreach_add_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self, at::ArrayRef scalars) { + return at::_ops::_foreach_add_ScalarList_out::redispatch(dispatchKeySet, self, scalars, out); + } + + // aten::_foreach_add.ScalarList_out(Tensor[] self, Scalar[] scalars, *, Tensor(a!)[] out) -> () + inline void _foreach_add_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::ArrayRef scalars, at::TensorList out) { + return at::_ops::_foreach_add_ScalarList_out::redispatch(dispatchKeySet, self, scalars, out); + } + + // aten::_foreach_add.Tensor_out(Tensor[] self, Tensor other, *, Scalar alpha=1, Tensor(a!)[] out) -> () + inline void _foreach_add_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self, const at::Tensor & other, const at::Scalar & alpha=1) { + return at::_ops::_foreach_add_Tensor_out::redispatch(dispatchKeySet, self, other, alpha, out); + } + + // aten::_foreach_add.Tensor_out(Tensor[] self, Tensor other, *, Scalar alpha=1, Tensor(a!)[] out) -> () + inline void _foreach_add_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, const at::Tensor & other, const at::Scalar & alpha, at::TensorList out) { + return at::_ops::_foreach_add_Tensor_out::redispatch(dispatchKeySet, self, other, alpha, out); + } + + // aten::_foreach_sub.Scalar_out(Tensor[] self, Scalar scalar, *, Tensor(a!)[] out) -> () + inline void _foreach_sub_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self, const at::Scalar & scalar) { + return at::_ops::_foreach_sub_Scalar_out::redispatch(dispatchKeySet, self, scalar, out); + } + + // aten::_foreach_sub.Scalar_out(Tensor[] self, Scalar scalar, *, Tensor(a!)[] out) -> () + inline void _foreach_sub_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, const at::Scalar & scalar, at::TensorList out) { + return at::_ops::_foreach_sub_Scalar_out::redispatch(dispatchKeySet, self, scalar, out); + } + + // aten::_foreach_sub.List_out(Tensor[] self, Tensor[] other, *, Scalar alpha=1, Tensor(a!)[] out) -> () + inline void _foreach_sub_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self, at::TensorList other, const at::Scalar & alpha=1) { + return at::_ops::_foreach_sub_List_out::redispatch(dispatchKeySet, self, other, alpha, out); + } + + // aten::_foreach_sub.List_out(Tensor[] self, Tensor[] other, *, Scalar alpha=1, Tensor(a!)[] out) -> () + inline void _foreach_sub_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList other, const at::Scalar & alpha, at::TensorList out) { + return at::_ops::_foreach_sub_List_out::redispatch(dispatchKeySet, self, other, alpha, out); + } + + // aten::_foreach_sub.ScalarList_out(Tensor[] self, Scalar[] scalars, *, Tensor(a!)[] out) -> () + inline void _foreach_sub_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self, at::ArrayRef scalars) { + return at::_ops::_foreach_sub_ScalarList_out::redispatch(dispatchKeySet, self, scalars, out); + } + + // aten::_foreach_sub.ScalarList_out(Tensor[] self, Scalar[] scalars, *, Tensor(a!)[] out) -> () + inline void _foreach_sub_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::ArrayRef scalars, at::TensorList out) { + return at::_ops::_foreach_sub_ScalarList_out::redispatch(dispatchKeySet, self, scalars, out); + } + + // aten::_foreach_mul.Scalar_out(Tensor[] self, Scalar scalar, *, Tensor(a!)[] out) -> () + inline void _foreach_mul_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self, const at::Scalar & scalar) { + return at::_ops::_foreach_mul_Scalar_out::redispatch(dispatchKeySet, self, scalar, out); + } + + // aten::_foreach_mul.Scalar_out(Tensor[] self, Scalar scalar, *, Tensor(a!)[] out) -> () + inline void _foreach_mul_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, const at::Scalar & scalar, at::TensorList out) { + return at::_ops::_foreach_mul_Scalar_out::redispatch(dispatchKeySet, self, scalar, out); + } + + // aten::_foreach_mul.List_out(Tensor[] self, Tensor[] other, *, Tensor(a!)[] out) -> () + inline void _foreach_mul_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self, at::TensorList other) { + return at::_ops::_foreach_mul_List_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::_foreach_mul.List_out(Tensor[] self, Tensor[] other, *, Tensor(a!)[] out) -> () + inline void _foreach_mul_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList other, at::TensorList out) { + return at::_ops::_foreach_mul_List_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::_foreach_mul.ScalarList_out(Tensor[] self, Scalar[] scalars, *, Tensor(a!)[] out) -> () + inline void _foreach_mul_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self, at::ArrayRef scalars) { + return at::_ops::_foreach_mul_ScalarList_out::redispatch(dispatchKeySet, self, scalars, out); + } + + // aten::_foreach_mul.ScalarList_out(Tensor[] self, Scalar[] scalars, *, Tensor(a!)[] out) -> () + inline void _foreach_mul_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::ArrayRef scalars, at::TensorList out) { + return at::_ops::_foreach_mul_ScalarList_out::redispatch(dispatchKeySet, self, scalars, out); + } + + // aten::_foreach_mul.Tensor_out(Tensor[] self, Tensor other, *, Tensor(a!)[] out) -> () + inline void _foreach_mul_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self, const at::Tensor & other) { + return at::_ops::_foreach_mul_Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::_foreach_mul.Tensor_out(Tensor[] self, Tensor other, *, Tensor(a!)[] out) -> () + inline void _foreach_mul_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, const at::Tensor & other, at::TensorList out) { + return at::_ops::_foreach_mul_Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::_foreach_div.Scalar_out(Tensor[] self, Scalar scalar, *, Tensor(a!)[] out) -> () + inline void _foreach_div_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self, const at::Scalar & scalar) { + return at::_ops::_foreach_div_Scalar_out::redispatch(dispatchKeySet, self, scalar, out); + } + + // aten::_foreach_div.Scalar_out(Tensor[] self, Scalar scalar, *, Tensor(a!)[] out) -> () + inline void _foreach_div_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, const at::Scalar & scalar, at::TensorList out) { + return at::_ops::_foreach_div_Scalar_out::redispatch(dispatchKeySet, self, scalar, out); + } + + // aten::_foreach_div.List_out(Tensor[] self, Tensor[] other, *, Tensor(a!)[] out) -> () + inline void _foreach_div_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self, at::TensorList other) { + return at::_ops::_foreach_div_List_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::_foreach_div.List_out(Tensor[] self, Tensor[] other, *, Tensor(a!)[] out) -> () + inline void _foreach_div_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList other, at::TensorList out) { + return at::_ops::_foreach_div_List_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::_foreach_div.ScalarList_out(Tensor[] self, Scalar[] scalars, *, Tensor(a!)[] out) -> () + inline void _foreach_div_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self, at::ArrayRef scalars) { + return at::_ops::_foreach_div_ScalarList_out::redispatch(dispatchKeySet, self, scalars, out); + } + + // aten::_foreach_div.ScalarList_out(Tensor[] self, Scalar[] scalars, *, Tensor(a!)[] out) -> () + inline void _foreach_div_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::ArrayRef scalars, at::TensorList out) { + return at::_ops::_foreach_div_ScalarList_out::redispatch(dispatchKeySet, self, scalars, out); + } + + // aten::_foreach_div.Tensor_out(Tensor[] self, Tensor other, *, Tensor(a!)[] out) -> () + inline void _foreach_div_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self, const at::Tensor & other) { + return at::_ops::_foreach_div_Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::_foreach_div.Tensor_out(Tensor[] self, Tensor other, *, Tensor(a!)[] out) -> () + inline void _foreach_div_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, const at::Tensor & other, at::TensorList out) { + return at::_ops::_foreach_div_Tensor_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::_foreach_clamp_max.Scalar_out(Tensor[] self, Scalar scalar, *, Tensor(a!)[] out) -> () + inline void _foreach_clamp_max_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self, const at::Scalar & scalar) { + return at::_ops::_foreach_clamp_max_Scalar_out::redispatch(dispatchKeySet, self, scalar, out); + } + + // aten::_foreach_clamp_max.Scalar_out(Tensor[] self, Scalar scalar, *, Tensor(a!)[] out) -> () + inline void _foreach_clamp_max_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, const at::Scalar & scalar, at::TensorList out) { + return at::_ops::_foreach_clamp_max_Scalar_out::redispatch(dispatchKeySet, self, scalar, out); + } + + // aten::_foreach_clamp_max.List_out(Tensor[] self, Tensor[] other, *, Tensor(a!)[] out) -> () + inline void _foreach_clamp_max_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self, at::TensorList other) { + return at::_ops::_foreach_clamp_max_List_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::_foreach_clamp_max.List_out(Tensor[] self, Tensor[] other, *, Tensor(a!)[] out) -> () + inline void _foreach_clamp_max_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList other, at::TensorList out) { + return at::_ops::_foreach_clamp_max_List_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::_foreach_clamp_max.ScalarList_out(Tensor[] self, Scalar[] scalars, *, Tensor(a!)[] out) -> () + inline void _foreach_clamp_max_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self, at::ArrayRef scalars) { + return at::_ops::_foreach_clamp_max_ScalarList_out::redispatch(dispatchKeySet, self, scalars, out); + } + + // aten::_foreach_clamp_max.ScalarList_out(Tensor[] self, Scalar[] scalars, *, Tensor(a!)[] out) -> () + inline void _foreach_clamp_max_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::ArrayRef scalars, at::TensorList out) { + return at::_ops::_foreach_clamp_max_ScalarList_out::redispatch(dispatchKeySet, self, scalars, out); + } + + // aten::_foreach_clamp_min.Scalar_out(Tensor[] self, Scalar scalar, *, Tensor(a!)[] out) -> () + inline void _foreach_clamp_min_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self, const at::Scalar & scalar) { + return at::_ops::_foreach_clamp_min_Scalar_out::redispatch(dispatchKeySet, self, scalar, out); + } + + // aten::_foreach_clamp_min.Scalar_out(Tensor[] self, Scalar scalar, *, Tensor(a!)[] out) -> () + inline void _foreach_clamp_min_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, const at::Scalar & scalar, at::TensorList out) { + return at::_ops::_foreach_clamp_min_Scalar_out::redispatch(dispatchKeySet, self, scalar, out); + } + + // aten::_foreach_clamp_min.List_out(Tensor[] self, Tensor[] other, *, Tensor(a!)[] out) -> () + inline void _foreach_clamp_min_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self, at::TensorList other) { + return at::_ops::_foreach_clamp_min_List_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::_foreach_clamp_min.List_out(Tensor[] self, Tensor[] other, *, Tensor(a!)[] out) -> () + inline void _foreach_clamp_min_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList other, at::TensorList out) { + return at::_ops::_foreach_clamp_min_List_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::_foreach_clamp_min.ScalarList_out(Tensor[] self, Scalar[] scalars, *, Tensor(a!)[] out) -> () + inline void _foreach_clamp_min_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self, at::ArrayRef scalars) { + return at::_ops::_foreach_clamp_min_ScalarList_out::redispatch(dispatchKeySet, self, scalars, out); + } + + // aten::_foreach_clamp_min.ScalarList_out(Tensor[] self, Scalar[] scalars, *, Tensor(a!)[] out) -> () + inline void _foreach_clamp_min_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::ArrayRef scalars, at::TensorList out) { + return at::_ops::_foreach_clamp_min_ScalarList_out::redispatch(dispatchKeySet, self, scalars, out); + } + + // aten::_foreach_maximum.Scalar_out(Tensor[] self, Scalar scalar, *, Tensor(a!)[] out) -> () + inline void _foreach_maximum_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self, const at::Scalar & scalar) { + return at::_ops::_foreach_maximum_Scalar_out::redispatch(dispatchKeySet, self, scalar, out); + } + + // aten::_foreach_maximum.Scalar_out(Tensor[] self, Scalar scalar, *, Tensor(a!)[] out) -> () + inline void _foreach_maximum_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, const at::Scalar & scalar, at::TensorList out) { + return at::_ops::_foreach_maximum_Scalar_out::redispatch(dispatchKeySet, self, scalar, out); + } + + // aten::_foreach_maximum.List_out(Tensor[] self, Tensor[] other, *, Tensor(a!)[] out) -> () + inline void _foreach_maximum_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self, at::TensorList other) { + return at::_ops::_foreach_maximum_List_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::_foreach_maximum.List_out(Tensor[] self, Tensor[] other, *, Tensor(a!)[] out) -> () + inline void _foreach_maximum_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList other, at::TensorList out) { + return at::_ops::_foreach_maximum_List_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::_foreach_maximum.ScalarList_out(Tensor[] self, Scalar[] scalars, *, Tensor(a!)[] out) -> () + inline void _foreach_maximum_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self, at::ArrayRef scalars) { + return at::_ops::_foreach_maximum_ScalarList_out::redispatch(dispatchKeySet, self, scalars, out); + } + + // aten::_foreach_maximum.ScalarList_out(Tensor[] self, Scalar[] scalars, *, Tensor(a!)[] out) -> () + inline void _foreach_maximum_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::ArrayRef scalars, at::TensorList out) { + return at::_ops::_foreach_maximum_ScalarList_out::redispatch(dispatchKeySet, self, scalars, out); + } + + // aten::_foreach_minimum.Scalar_out(Tensor[] self, Scalar scalar, *, Tensor(a!)[] out) -> () + inline void _foreach_minimum_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self, const at::Scalar & scalar) { + return at::_ops::_foreach_minimum_Scalar_out::redispatch(dispatchKeySet, self, scalar, out); + } + + // aten::_foreach_minimum.Scalar_out(Tensor[] self, Scalar scalar, *, Tensor(a!)[] out) -> () + inline void _foreach_minimum_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, const at::Scalar & scalar, at::TensorList out) { + return at::_ops::_foreach_minimum_Scalar_out::redispatch(dispatchKeySet, self, scalar, out); + } + + // aten::_foreach_minimum.List_out(Tensor[] self, Tensor[] other, *, Tensor(a!)[] out) -> () + inline void _foreach_minimum_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self, at::TensorList other) { + return at::_ops::_foreach_minimum_List_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::_foreach_minimum.List_out(Tensor[] self, Tensor[] other, *, Tensor(a!)[] out) -> () + inline void _foreach_minimum_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList other, at::TensorList out) { + return at::_ops::_foreach_minimum_List_out::redispatch(dispatchKeySet, self, other, out); + } + + // aten::_foreach_minimum.ScalarList_out(Tensor[] self, Scalar[] scalars, *, Tensor(a!)[] out) -> () + inline void _foreach_minimum_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self, at::ArrayRef scalars) { + return at::_ops::_foreach_minimum_ScalarList_out::redispatch(dispatchKeySet, self, scalars, out); + } + + // aten::_foreach_minimum.ScalarList_out(Tensor[] self, Scalar[] scalars, *, Tensor(a!)[] out) -> () + inline void _foreach_minimum_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::ArrayRef scalars, at::TensorList out) { + return at::_ops::_foreach_minimum_ScalarList_out::redispatch(dispatchKeySet, self, scalars, out); + } + + // aten::_foreach_addcdiv.Scalar_out(Tensor[] self, Tensor[] tensor1, Tensor[] tensor2, Scalar value=1, *, Tensor(a!)[] out) -> () + inline void _foreach_addcdiv_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self, at::TensorList tensor1, at::TensorList tensor2, const at::Scalar & value=1) { + return at::_ops::_foreach_addcdiv_Scalar_out::redispatch(dispatchKeySet, self, tensor1, tensor2, value, out); + } + + // aten::_foreach_addcdiv.Scalar_out(Tensor[] self, Tensor[] tensor1, Tensor[] tensor2, Scalar value=1, *, Tensor(a!)[] out) -> () + inline void _foreach_addcdiv_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList tensor1, at::TensorList tensor2, const at::Scalar & value, at::TensorList out) { + return at::_ops::_foreach_addcdiv_Scalar_out::redispatch(dispatchKeySet, self, tensor1, tensor2, value, out); + } + + // aten::_foreach_addcdiv.ScalarList_out(Tensor[] self, Tensor[] tensor1, Tensor[] tensor2, Scalar[] scalars, *, Tensor(a!)[] out) -> () + inline void _foreach_addcdiv_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self, at::TensorList tensor1, at::TensorList tensor2, at::ArrayRef scalars) { + return at::_ops::_foreach_addcdiv_ScalarList_out::redispatch(dispatchKeySet, self, tensor1, tensor2, scalars, out); + } + + // aten::_foreach_addcdiv.ScalarList_out(Tensor[] self, Tensor[] tensor1, Tensor[] tensor2, Scalar[] scalars, *, Tensor(a!)[] out) -> () + inline void _foreach_addcdiv_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList tensor1, at::TensorList tensor2, at::ArrayRef scalars, at::TensorList out) { + return at::_ops::_foreach_addcdiv_ScalarList_out::redispatch(dispatchKeySet, self, tensor1, tensor2, scalars, out); + } + + // aten::_foreach_addcdiv.Tensor_out(Tensor[] self, Tensor[] tensor1, Tensor[] tensor2, Tensor scalars, *, Tensor(a!)[] out) -> () + inline void _foreach_addcdiv_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self, at::TensorList tensor1, at::TensorList tensor2, const at::Tensor & scalars) { + return at::_ops::_foreach_addcdiv_Tensor_out::redispatch(dispatchKeySet, self, tensor1, tensor2, scalars, out); + } + + // aten::_foreach_addcdiv.Tensor_out(Tensor[] self, Tensor[] tensor1, Tensor[] tensor2, Tensor scalars, *, Tensor(a!)[] out) -> () + inline void _foreach_addcdiv_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList tensor1, at::TensorList tensor2, const at::Tensor & scalars, at::TensorList out) { + return at::_ops::_foreach_addcdiv_Tensor_out::redispatch(dispatchKeySet, self, tensor1, tensor2, scalars, out); + } + + // aten::_foreach_addcmul.Scalar_out(Tensor[] self, Tensor[] tensor1, Tensor[] tensor2, Scalar value=1, *, Tensor(a!)[] out) -> () + inline void _foreach_addcmul_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self, at::TensorList tensor1, at::TensorList tensor2, const at::Scalar & value=1) { + return at::_ops::_foreach_addcmul_Scalar_out::redispatch(dispatchKeySet, self, tensor1, tensor2, value, out); + } + + // aten::_foreach_addcmul.Scalar_out(Tensor[] self, Tensor[] tensor1, Tensor[] tensor2, Scalar value=1, *, Tensor(a!)[] out) -> () + inline void _foreach_addcmul_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList tensor1, at::TensorList tensor2, const at::Scalar & value, at::TensorList out) { + return at::_ops::_foreach_addcmul_Scalar_out::redispatch(dispatchKeySet, self, tensor1, tensor2, value, out); + } + + // aten::_foreach_addcmul.ScalarList_out(Tensor[] self, Tensor[] tensor1, Tensor[] tensor2, Scalar[] scalars, *, Tensor(a!)[] out) -> () + inline void _foreach_addcmul_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self, at::TensorList tensor1, at::TensorList tensor2, at::ArrayRef scalars) { + return at::_ops::_foreach_addcmul_ScalarList_out::redispatch(dispatchKeySet, self, tensor1, tensor2, scalars, out); + } + + // aten::_foreach_addcmul.ScalarList_out(Tensor[] self, Tensor[] tensor1, Tensor[] tensor2, Scalar[] scalars, *, Tensor(a!)[] out) -> () + inline void _foreach_addcmul_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList tensor1, at::TensorList tensor2, at::ArrayRef scalars, at::TensorList out) { + return at::_ops::_foreach_addcmul_ScalarList_out::redispatch(dispatchKeySet, self, tensor1, tensor2, scalars, out); + } + + // aten::_foreach_addcmul.Tensor_out(Tensor[] self, Tensor[] tensor1, Tensor[] tensor2, Tensor scalars, *, Tensor(a!)[] out) -> () + inline void _foreach_addcmul_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self, at::TensorList tensor1, at::TensorList tensor2, const at::Tensor & scalars) { + return at::_ops::_foreach_addcmul_Tensor_out::redispatch(dispatchKeySet, self, tensor1, tensor2, scalars, out); + } + + // aten::_foreach_addcmul.Tensor_out(Tensor[] self, Tensor[] tensor1, Tensor[] tensor2, Tensor scalars, *, Tensor(a!)[] out) -> () + inline void _foreach_addcmul_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList tensor1, at::TensorList tensor2, const at::Tensor & scalars, at::TensorList out) { + return at::_ops::_foreach_addcmul_Tensor_out::redispatch(dispatchKeySet, self, tensor1, tensor2, scalars, out); + } + + // aten::_foreach_abs.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_abs_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self) { + return at::_ops::_foreach_abs_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_abs.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_abs_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList out) { + return at::_ops::_foreach_abs_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_acos.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_acos_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self) { + return at::_ops::_foreach_acos_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_acos.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_acos_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList out) { + return at::_ops::_foreach_acos_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_asin.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_asin_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self) { + return at::_ops::_foreach_asin_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_asin.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_asin_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList out) { + return at::_ops::_foreach_asin_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_atan.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_atan_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self) { + return at::_ops::_foreach_atan_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_atan.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_atan_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList out) { + return at::_ops::_foreach_atan_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_ceil.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_ceil_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self) { + return at::_ops::_foreach_ceil_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_ceil.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_ceil_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList out) { + return at::_ops::_foreach_ceil_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_cos.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_cos_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self) { + return at::_ops::_foreach_cos_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_cos.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_cos_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList out) { + return at::_ops::_foreach_cos_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_cosh.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_cosh_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self) { + return at::_ops::_foreach_cosh_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_cosh.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_cosh_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList out) { + return at::_ops::_foreach_cosh_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_erf.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_erf_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self) { + return at::_ops::_foreach_erf_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_erf.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_erf_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList out) { + return at::_ops::_foreach_erf_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_erfc.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_erfc_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self) { + return at::_ops::_foreach_erfc_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_erfc.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_erfc_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList out) { + return at::_ops::_foreach_erfc_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_exp.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_exp_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self) { + return at::_ops::_foreach_exp_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_exp.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_exp_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList out) { + return at::_ops::_foreach_exp_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_expm1.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_expm1_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self) { + return at::_ops::_foreach_expm1_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_expm1.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_expm1_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList out) { + return at::_ops::_foreach_expm1_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_floor.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_floor_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self) { + return at::_ops::_foreach_floor_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_floor.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_floor_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList out) { + return at::_ops::_foreach_floor_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_frac.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_frac_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self) { + return at::_ops::_foreach_frac_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_frac.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_frac_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList out) { + return at::_ops::_foreach_frac_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_lerp.List_out(Tensor[] self, Tensor[] tensors1, Tensor[] weights, *, Tensor(a!)[] out) -> () + inline void _foreach_lerp_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self, at::TensorList tensors1, at::TensorList weights) { + return at::_ops::_foreach_lerp_List_out::redispatch(dispatchKeySet, self, tensors1, weights, out); + } + + // aten::_foreach_lerp.List_out(Tensor[] self, Tensor[] tensors1, Tensor[] weights, *, Tensor(a!)[] out) -> () + inline void _foreach_lerp_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList tensors1, at::TensorList weights, at::TensorList out) { + return at::_ops::_foreach_lerp_List_out::redispatch(dispatchKeySet, self, tensors1, weights, out); + } + + // aten::_foreach_lerp.Scalar_out(Tensor[] self, Tensor[] tensors1, Scalar weight, *, Tensor(a!)[] out) -> () + inline void _foreach_lerp_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self, at::TensorList tensors1, const at::Scalar & weight) { + return at::_ops::_foreach_lerp_Scalar_out::redispatch(dispatchKeySet, self, tensors1, weight, out); + } + + // aten::_foreach_lerp.Scalar_out(Tensor[] self, Tensor[] tensors1, Scalar weight, *, Tensor(a!)[] out) -> () + inline void _foreach_lerp_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList tensors1, const at::Scalar & weight, at::TensorList out) { + return at::_ops::_foreach_lerp_Scalar_out::redispatch(dispatchKeySet, self, tensors1, weight, out); + } + + // aten::_foreach_lgamma.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_lgamma_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self) { + return at::_ops::_foreach_lgamma_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_lgamma.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_lgamma_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList out) { + return at::_ops::_foreach_lgamma_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_log.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_log_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self) { + return at::_ops::_foreach_log_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_log.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_log_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList out) { + return at::_ops::_foreach_log_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_log10.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_log10_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self) { + return at::_ops::_foreach_log10_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_log10.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_log10_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList out) { + return at::_ops::_foreach_log10_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_log1p.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_log1p_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self) { + return at::_ops::_foreach_log1p_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_log1p.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_log1p_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList out) { + return at::_ops::_foreach_log1p_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_log2.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_log2_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self) { + return at::_ops::_foreach_log2_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_log2.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_log2_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList out) { + return at::_ops::_foreach_log2_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_neg.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_neg_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self) { + return at::_ops::_foreach_neg_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_neg.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_neg_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList out) { + return at::_ops::_foreach_neg_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_norm.Scalar_out(Tensor[] self, Scalar ord=2, *, Tensor(a!)[] out) -> () + inline void _foreach_norm_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self, const at::Scalar & ord=2) { + return at::_ops::_foreach_norm_Scalar_out::redispatch(dispatchKeySet, self, ord, out); + } + + // aten::_foreach_norm.Scalar_out(Tensor[] self, Scalar ord=2, *, Tensor(a!)[] out) -> () + inline void _foreach_norm_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, const at::Scalar & ord, at::TensorList out) { + return at::_ops::_foreach_norm_Scalar_out::redispatch(dispatchKeySet, self, ord, out); + } + + // aten::_foreach_pow.List_out(Tensor[] self, Tensor[] exponent, *, Tensor(a!)[] out) -> () + inline void _foreach_pow_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self, at::TensorList exponent) { + return at::_ops::_foreach_pow_List_out::redispatch(dispatchKeySet, self, exponent, out); + } + + // aten::_foreach_pow.List_out(Tensor[] self, Tensor[] exponent, *, Tensor(a!)[] out) -> () + inline void _foreach_pow_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList exponent, at::TensorList out) { + return at::_ops::_foreach_pow_List_out::redispatch(dispatchKeySet, self, exponent, out); + } + + // aten::_foreach_pow.Scalar_out(Tensor[] self, Scalar exponent, *, Tensor(a!)[] out) -> () + inline void _foreach_pow_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self, const at::Scalar & exponent) { + return at::_ops::_foreach_pow_Scalar_out::redispatch(dispatchKeySet, self, exponent, out); + } + + // aten::_foreach_pow.Scalar_out(Tensor[] self, Scalar exponent, *, Tensor(a!)[] out) -> () + inline void _foreach_pow_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, const at::Scalar & exponent, at::TensorList out) { + return at::_ops::_foreach_pow_Scalar_out::redispatch(dispatchKeySet, self, exponent, out); + } + + // aten::_foreach_pow.ScalarList_out(Tensor[] self, Scalar[] exponent, *, Tensor(a!)[] out) -> () + inline void _foreach_pow_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self, at::ArrayRef exponent) { + return at::_ops::_foreach_pow_ScalarList_out::redispatch(dispatchKeySet, self, exponent, out); + } + + // aten::_foreach_pow.ScalarList_out(Tensor[] self, Scalar[] exponent, *, Tensor(a!)[] out) -> () + inline void _foreach_pow_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::ArrayRef exponent, at::TensorList out) { + return at::_ops::_foreach_pow_ScalarList_out::redispatch(dispatchKeySet, self, exponent, out); + } + + // aten::_foreach_reciprocal.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_reciprocal_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self) { + return at::_ops::_foreach_reciprocal_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_reciprocal.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_reciprocal_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList out) { + return at::_ops::_foreach_reciprocal_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_round.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_round_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self) { + return at::_ops::_foreach_round_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_round.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_round_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList out) { + return at::_ops::_foreach_round_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_sigmoid.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_sigmoid_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self) { + return at::_ops::_foreach_sigmoid_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_sigmoid.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_sigmoid_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList out) { + return at::_ops::_foreach_sigmoid_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_sign.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_sign_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self) { + return at::_ops::_foreach_sign_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_sign.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_sign_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList out) { + return at::_ops::_foreach_sign_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_sin.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_sin_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self) { + return at::_ops::_foreach_sin_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_sin.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_sin_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList out) { + return at::_ops::_foreach_sin_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_sinh.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_sinh_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self) { + return at::_ops::_foreach_sinh_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_sinh.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_sinh_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList out) { + return at::_ops::_foreach_sinh_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_sqrt.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_sqrt_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self) { + return at::_ops::_foreach_sqrt_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_sqrt.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_sqrt_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList out) { + return at::_ops::_foreach_sqrt_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_tan.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_tan_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self) { + return at::_ops::_foreach_tan_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_tan.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_tan_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList out) { + return at::_ops::_foreach_tan_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_tanh.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_tanh_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self) { + return at::_ops::_foreach_tanh_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_tanh.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_tanh_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList out) { + return at::_ops::_foreach_tanh_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_trunc.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_trunc_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self) { + return at::_ops::_foreach_trunc_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_trunc.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_trunc_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList out) { + return at::_ops::_foreach_trunc_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_zero.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_zero_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self) { + return at::_ops::_foreach_zero_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_zero.out(Tensor[] self, *, Tensor(a!)[] out) -> () + inline void _foreach_zero_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList out) { + return at::_ops::_foreach_zero_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_foreach_zero(Tensor[] self) -> Tensor[] self_out + inline ::std::vector _foreach_zero(c10::DispatchKeySet dispatchKeySet, at::TensorList self) { + return at::_ops::_foreach_zero::redispatch(dispatchKeySet, self); + } + + // aten::_foreach_copy.out(Tensor[] self, Tensor[] src, bool non_blocking=False, *, Tensor(a!)[] out) -> () + inline void _foreach_copy_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self, at::TensorList src, bool non_blocking=false) { + return at::_ops::_foreach_copy_out::redispatch(dispatchKeySet, self, src, non_blocking, out); + } + + // aten::_foreach_copy.out(Tensor[] self, Tensor[] src, bool non_blocking=False, *, Tensor(a!)[] out) -> () + inline void _foreach_copy_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList src, bool non_blocking, at::TensorList out) { + return at::_ops::_foreach_copy_out::redispatch(dispatchKeySet, self, src, non_blocking, out); + } + + // aten::_foreach_copy(Tensor[] self, Tensor[] src, bool non_blocking=False) -> Tensor[] self_out + inline ::std::vector _foreach_copy(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList src, bool non_blocking=false) { + return at::_ops::_foreach_copy::redispatch(dispatchKeySet, self, src, non_blocking); + } + + // aten::bucketize.Scalar_out(Scalar self, Tensor boundaries, *, bool out_int32=False, bool right=False, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & bucketize_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Scalar & self, const at::Tensor & boundaries, bool out_int32=false, bool right=false) { + return at::_ops::bucketize_Scalar_out::redispatch(dispatchKeySet, self, boundaries, out_int32, right, out); + } + + // aten::bucketize.Scalar_out(Scalar self, Tensor boundaries, *, bool out_int32=False, bool right=False, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & bucketize_outf(c10::DispatchKeySet dispatchKeySet, const at::Scalar & self, const at::Tensor & boundaries, bool out_int32, bool right, at::Tensor & out) { + return at::_ops::bucketize_Scalar_out::redispatch(dispatchKeySet, self, boundaries, out_int32, right, out); + } + + // aten::glu_jvp.out(Tensor glu, Tensor x, Tensor dx, int dim, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & glu_jvp_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & glu, const at::Tensor & x, const at::Tensor & dx, int64_t dim) { + return at::_ops::glu_jvp_out::redispatch(dispatchKeySet, glu, x, dx, dim, out); + } + + // aten::glu_jvp.out(Tensor glu, Tensor x, Tensor dx, int dim, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & glu_jvp_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & glu, const at::Tensor & x, const at::Tensor & dx, int64_t dim, at::Tensor & out) { + return at::_ops::glu_jvp_out::redispatch(dispatchKeySet, glu, x, dx, dim, out); + } + + // aten::glu_backward_jvp.out(Tensor grad_x, Tensor grad_glu, Tensor x, Tensor dgrad_glu, Tensor dx, int dim, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & glu_backward_jvp_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & grad_x, const at::Tensor & grad_glu, const at::Tensor & x, const at::Tensor & dgrad_glu, const at::Tensor & dx, int64_t dim) { + return at::_ops::glu_backward_jvp_out::redispatch(dispatchKeySet, grad_x, grad_glu, x, dgrad_glu, dx, dim, out); + } + + // aten::glu_backward_jvp.out(Tensor grad_x, Tensor grad_glu, Tensor x, Tensor dgrad_glu, Tensor dx, int dim, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & glu_backward_jvp_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_x, const at::Tensor & grad_glu, const at::Tensor & x, const at::Tensor & dgrad_glu, const at::Tensor & dx, int64_t dim, at::Tensor & out) { + return at::_ops::glu_backward_jvp_out::redispatch(dispatchKeySet, grad_x, grad_glu, x, dgrad_glu, dx, dim, out); + } + + // aten::hardswish_backward.out(Tensor grad_output, Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & hardswish_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & grad_output, const at::Tensor & self) { + return at::_ops::hardswish_backward_out::redispatch(dispatchKeySet, grad_output, self, out); + } + + // aten::hardswish_backward.out(Tensor grad_output, Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & hardswish_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, at::Tensor & out) { + return at::_ops::hardswish_backward_out::redispatch(dispatchKeySet, grad_output, self, out); + } + + // aten::rrelu_with_noise_backward.out(Tensor grad_output, Tensor self, Tensor noise, Scalar lower, Scalar upper, bool training, bool self_is_result, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & rrelu_with_noise_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & noise, const at::Scalar & lower, const at::Scalar & upper, bool training, bool self_is_result) { + return at::_ops::rrelu_with_noise_backward_out::redispatch(dispatchKeySet, grad_output, self, noise, lower, upper, training, self_is_result, out); + } + + // aten::rrelu_with_noise_backward.out(Tensor grad_output, Tensor self, Tensor noise, Scalar lower, Scalar upper, bool training, bool self_is_result, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & rrelu_with_noise_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & noise, const at::Scalar & lower, const at::Scalar & upper, bool training, bool self_is_result, at::Tensor & out) { + return at::_ops::rrelu_with_noise_backward_out::redispatch(dispatchKeySet, grad_output, self, noise, lower, upper, training, self_is_result, out); + } + + // aten::mkldnn_adaptive_avg_pool2d_backward.out(Tensor grad_output, Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & mkldnn_adaptive_avg_pool2d_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & grad_output, const at::Tensor & self) { + return at::_ops::mkldnn_adaptive_avg_pool2d_backward_out::redispatch(dispatchKeySet, grad_output, self, out); + } + + // aten::mkldnn_adaptive_avg_pool2d_backward.out(Tensor grad_output, Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & mkldnn_adaptive_avg_pool2d_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, at::Tensor & out) { + return at::_ops::mkldnn_adaptive_avg_pool2d_backward_out::redispatch(dispatchKeySet, grad_output, self, out); + } + + // aten::_adaptive_avg_pool2d.out(Tensor self, SymInt[2] output_size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _adaptive_avg_pool2d_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef output_size) { + return at::_ops::_adaptive_avg_pool2d_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(output_size), out); + } + + // aten::_adaptive_avg_pool2d.out(Tensor self, SymInt[2] output_size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _adaptive_avg_pool2d_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef output_size, at::Tensor & out) { + return at::_ops::_adaptive_avg_pool2d_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(output_size), out); + } + + // aten::_adaptive_avg_pool2d.out(Tensor self, SymInt[2] output_size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _adaptive_avg_pool2d_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::SymIntArrayRef output_size) { + return at::_ops::_adaptive_avg_pool2d_out::redispatch(dispatchKeySet, self, output_size, out); + } + + // aten::_adaptive_avg_pool2d.out(Tensor self, SymInt[2] output_size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _adaptive_avg_pool2d_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef output_size, at::Tensor & out) { + return at::_ops::_adaptive_avg_pool2d_out::redispatch(dispatchKeySet, self, output_size, out); + } + + // aten::_adaptive_avg_pool2d_backward.out(Tensor grad_output, Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _adaptive_avg_pool2d_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & grad_output, const at::Tensor & self) { + return at::_ops::_adaptive_avg_pool2d_backward_out::redispatch(dispatchKeySet, grad_output, self, out); + } + + // aten::_adaptive_avg_pool2d_backward.out(Tensor grad_output, Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _adaptive_avg_pool2d_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, at::Tensor & out) { + return at::_ops::_adaptive_avg_pool2d_backward_out::redispatch(dispatchKeySet, grad_output, self, out); + } + + // aten::_adaptive_avg_pool3d.out(Tensor self, SymInt[3] output_size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _adaptive_avg_pool3d_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef output_size) { + return at::_ops::_adaptive_avg_pool3d_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(output_size), out); + } + + // aten::_adaptive_avg_pool3d.out(Tensor self, SymInt[3] output_size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _adaptive_avg_pool3d_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef output_size, at::Tensor & out) { + return at::_ops::_adaptive_avg_pool3d_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(output_size), out); + } + + // aten::_adaptive_avg_pool3d.out(Tensor self, SymInt[3] output_size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _adaptive_avg_pool3d_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::SymIntArrayRef output_size) { + return at::_ops::_adaptive_avg_pool3d_out::redispatch(dispatchKeySet, self, output_size, out); + } + + // aten::_adaptive_avg_pool3d.out(Tensor self, SymInt[3] output_size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _adaptive_avg_pool3d_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef output_size, at::Tensor & out) { + return at::_ops::_adaptive_avg_pool3d_out::redispatch(dispatchKeySet, self, output_size, out); + } + + // aten::_adaptive_avg_pool3d_backward.out(Tensor grad_output, Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _adaptive_avg_pool3d_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & grad_output, const at::Tensor & self) { + return at::_ops::_adaptive_avg_pool3d_backward_out::redispatch(dispatchKeySet, grad_output, self, out); + } + + // aten::_adaptive_avg_pool3d_backward.out(Tensor grad_output, Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _adaptive_avg_pool3d_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, at::Tensor & out) { + return at::_ops::_adaptive_avg_pool3d_backward_out::redispatch(dispatchKeySet, grad_output, self, out); + } + + // aten::_slow_conv2d_backward.output_mask_out(Tensor grad_output, Tensor self, Tensor weight, SymInt[2] kernel_size, SymInt[2] stride, SymInt[2] padding, bool[3] output_mask, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple _slow_conv2d_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & weight, at::IntArrayRef kernel_size, at::IntArrayRef stride, at::IntArrayRef padding, ::std::array output_mask) { + return at::_ops::_slow_conv2d_backward_output_mask_out::redispatch(dispatchKeySet, grad_output, self, weight, c10::fromIntArrayRefSlow(kernel_size), c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), output_mask, out0, out1, out2); + } + + // aten::_slow_conv2d_backward.output_mask_out(Tensor grad_output, Tensor self, Tensor weight, SymInt[2] kernel_size, SymInt[2] stride, SymInt[2] padding, bool[3] output_mask, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple _slow_conv2d_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & weight, at::IntArrayRef kernel_size, at::IntArrayRef stride, at::IntArrayRef padding, ::std::array output_mask, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2) { + return at::_ops::_slow_conv2d_backward_output_mask_out::redispatch(dispatchKeySet, grad_output, self, weight, c10::fromIntArrayRefSlow(kernel_size), c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), output_mask, out0, out1, out2); + } + + // aten::_slow_conv2d_backward.output_mask_out(Tensor grad_output, Tensor self, Tensor weight, SymInt[2] kernel_size, SymInt[2] stride, SymInt[2] padding, bool[3] output_mask, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple _slow_conv2d_backward_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & weight, c10::SymIntArrayRef kernel_size, c10::SymIntArrayRef stride, c10::SymIntArrayRef padding, ::std::array output_mask) { + return at::_ops::_slow_conv2d_backward_output_mask_out::redispatch(dispatchKeySet, grad_output, self, weight, kernel_size, stride, padding, output_mask, out0, out1, out2); + } + + // aten::_slow_conv2d_backward.output_mask_out(Tensor grad_output, Tensor self, Tensor weight, SymInt[2] kernel_size, SymInt[2] stride, SymInt[2] padding, bool[3] output_mask, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!)) + inline ::std::tuple _slow_conv2d_backward_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & weight, c10::SymIntArrayRef kernel_size, c10::SymIntArrayRef stride, c10::SymIntArrayRef padding, ::std::array output_mask, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2) { + return at::_ops::_slow_conv2d_backward_output_mask_out::redispatch(dispatchKeySet, grad_output, self, weight, kernel_size, stride, padding, output_mask, out0, out1, out2); + } + + // aten::conv_depthwise3d.out(Tensor self, Tensor weight, SymInt[3] kernel_size, Tensor? bias, SymInt[3] stride, SymInt[3] padding, SymInt[3] dilation, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & conv_depthwise3d_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & weight, at::IntArrayRef kernel_size, const c10::optional & bias, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation) { + return at::_ops::conv_depthwise3d_out::redispatch(dispatchKeySet, self, weight, c10::fromIntArrayRefSlow(kernel_size), bias, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(dilation), out); + } + + // aten::conv_depthwise3d.out(Tensor self, Tensor weight, SymInt[3] kernel_size, Tensor? bias, SymInt[3] stride, SymInt[3] padding, SymInt[3] dilation, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & conv_depthwise3d_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, at::IntArrayRef kernel_size, const c10::optional & bias, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, at::Tensor & out) { + return at::_ops::conv_depthwise3d_out::redispatch(dispatchKeySet, self, weight, c10::fromIntArrayRefSlow(kernel_size), bias, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(dilation), out); + } + + // aten::conv_depthwise3d.out(Tensor self, Tensor weight, SymInt[3] kernel_size, Tensor? bias, SymInt[3] stride, SymInt[3] padding, SymInt[3] dilation, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & conv_depthwise3d_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, const at::Tensor & weight, c10::SymIntArrayRef kernel_size, const c10::optional & bias, c10::SymIntArrayRef stride, c10::SymIntArrayRef padding, c10::SymIntArrayRef dilation) { + return at::_ops::conv_depthwise3d_out::redispatch(dispatchKeySet, self, weight, kernel_size, bias, stride, padding, dilation, out); + } + + // aten::conv_depthwise3d.out(Tensor self, Tensor weight, SymInt[3] kernel_size, Tensor? bias, SymInt[3] stride, SymInt[3] padding, SymInt[3] dilation, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & conv_depthwise3d_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, c10::SymIntArrayRef kernel_size, const c10::optional & bias, c10::SymIntArrayRef stride, c10::SymIntArrayRef padding, c10::SymIntArrayRef dilation, at::Tensor & out) { + return at::_ops::conv_depthwise3d_out::redispatch(dispatchKeySet, self, weight, kernel_size, bias, stride, padding, dilation, out); + } + + // aten::slow_conv_dilated2d.out(Tensor self, Tensor weight, SymInt[2] kernel_size, Tensor? bias=None, SymInt[2] stride=1, SymInt[2] padding=0, SymInt[2] dilation=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & slow_conv_dilated2d_out(c10::DispatchKeySet dispatchKeySet, 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 dilation=1) { + return at::_ops::slow_conv_dilated2d_out::redispatch(dispatchKeySet, self, weight, c10::fromIntArrayRefSlow(kernel_size), bias, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(dilation), out); + } + + // aten::slow_conv_dilated2d.out(Tensor self, Tensor weight, SymInt[2] kernel_size, Tensor? bias=None, SymInt[2] stride=1, SymInt[2] padding=0, SymInt[2] dilation=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & slow_conv_dilated2d_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, at::IntArrayRef kernel_size, const c10::optional & bias, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, at::Tensor & out) { + return at::_ops::slow_conv_dilated2d_out::redispatch(dispatchKeySet, self, weight, c10::fromIntArrayRefSlow(kernel_size), bias, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(dilation), out); + } + + // aten::slow_conv_dilated2d.out(Tensor self, Tensor weight, SymInt[2] kernel_size, Tensor? bias=None, SymInt[2] stride=1, SymInt[2] padding=0, SymInt[2] dilation=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & slow_conv_dilated2d_symint_out(c10::DispatchKeySet dispatchKeySet, 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 dilation=c10::SymInt(1)) { + return at::_ops::slow_conv_dilated2d_out::redispatch(dispatchKeySet, self, weight, kernel_size, bias, stride, padding, dilation, out); + } + + // aten::slow_conv_dilated2d.out(Tensor self, Tensor weight, SymInt[2] kernel_size, Tensor? bias=None, SymInt[2] stride=1, SymInt[2] padding=0, SymInt[2] dilation=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & slow_conv_dilated2d_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, c10::SymIntArrayRef kernel_size, const c10::optional & bias, c10::SymIntArrayRef stride, c10::SymIntArrayRef padding, c10::SymIntArrayRef dilation, at::Tensor & out) { + return at::_ops::slow_conv_dilated2d_out::redispatch(dispatchKeySet, self, weight, kernel_size, bias, stride, padding, dilation, out); + } + + // aten::slow_conv_dilated3d.out(Tensor self, Tensor weight, SymInt[3] kernel_size, Tensor? bias=None, SymInt[3] stride=1, SymInt[3] padding=0, SymInt[3] dilation=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & slow_conv_dilated3d_out(c10::DispatchKeySet dispatchKeySet, 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 dilation=1) { + return at::_ops::slow_conv_dilated3d_out::redispatch(dispatchKeySet, self, weight, c10::fromIntArrayRefSlow(kernel_size), bias, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(dilation), out); + } + + // aten::slow_conv_dilated3d.out(Tensor self, Tensor weight, SymInt[3] kernel_size, Tensor? bias=None, SymInt[3] stride=1, SymInt[3] padding=0, SymInt[3] dilation=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & slow_conv_dilated3d_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, at::IntArrayRef kernel_size, const c10::optional & bias, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, at::Tensor & out) { + return at::_ops::slow_conv_dilated3d_out::redispatch(dispatchKeySet, self, weight, c10::fromIntArrayRefSlow(kernel_size), bias, c10::fromIntArrayRefSlow(stride), c10::fromIntArrayRefSlow(padding), c10::fromIntArrayRefSlow(dilation), out); + } + + // aten::slow_conv_dilated3d.out(Tensor self, Tensor weight, SymInt[3] kernel_size, Tensor? bias=None, SymInt[3] stride=1, SymInt[3] padding=0, SymInt[3] dilation=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & slow_conv_dilated3d_symint_out(c10::DispatchKeySet dispatchKeySet, 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 dilation=c10::SymInt(1)) { + return at::_ops::slow_conv_dilated3d_out::redispatch(dispatchKeySet, self, weight, kernel_size, bias, stride, padding, dilation, out); + } + + // aten::slow_conv_dilated3d.out(Tensor self, Tensor weight, SymInt[3] kernel_size, Tensor? bias=None, SymInt[3] stride=1, SymInt[3] padding=0, SymInt[3] dilation=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & slow_conv_dilated3d_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, c10::SymIntArrayRef kernel_size, const c10::optional & bias, c10::SymIntArrayRef stride, c10::SymIntArrayRef padding, c10::SymIntArrayRef dilation, at::Tensor & out) { + return at::_ops::slow_conv_dilated3d_out::redispatch(dispatchKeySet, self, weight, kernel_size, bias, stride, padding, dilation, out); + } + + // aten::isinf.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & isinf_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::isinf_out::redispatch(dispatchKeySet, self, out); + } + + // aten::isinf.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & isinf_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::isinf_out::redispatch(dispatchKeySet, self, out); + } + + // aten::linalg_matrix_exp.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_matrix_exp_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::linalg_matrix_exp_out::redispatch(dispatchKeySet, self, out); + } + + // aten::linalg_matrix_exp.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & linalg_matrix_exp_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::linalg_matrix_exp_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_test_optional_intlist.out(Tensor values, int[]? addends, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _test_optional_intlist_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & values, at::OptionalIntArrayRef addends) { + return at::_ops::_test_optional_intlist_out::redispatch(dispatchKeySet, values, addends, out); + } + + // aten::_test_optional_intlist.out(Tensor values, int[]? addends, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _test_optional_intlist_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & values, at::OptionalIntArrayRef addends, at::Tensor & out) { + return at::_ops::_test_optional_intlist_out::redispatch(dispatchKeySet, values, addends, out); + } + + // aten::_test_optional_filled_intlist.out(Tensor values, int[2]? addends, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _test_optional_filled_intlist_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & values, at::OptionalIntArrayRef addends) { + return at::_ops::_test_optional_filled_intlist_out::redispatch(dispatchKeySet, values, addends, out); + } + + // aten::_test_optional_filled_intlist.out(Tensor values, int[2]? addends, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _test_optional_filled_intlist_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & values, at::OptionalIntArrayRef addends, at::Tensor & out) { + return at::_ops::_test_optional_filled_intlist_out::redispatch(dispatchKeySet, values, addends, out); + } + + // aten::_test_optional_floatlist.out(Tensor values, float[]? addends, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _test_optional_floatlist_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & values, c10::optional> addends) { + return at::_ops::_test_optional_floatlist_out::redispatch(dispatchKeySet, values, addends, out); + } + + // aten::_test_optional_floatlist.out(Tensor values, float[]? addends, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _test_optional_floatlist_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & values, c10::optional> addends, at::Tensor & out) { + return at::_ops::_test_optional_floatlist_out::redispatch(dispatchKeySet, values, addends, out); + } + + // aten::_test_warn_in_autograd.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _test_warn_in_autograd_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::_test_warn_in_autograd_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_test_warn_in_autograd.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _test_warn_in_autograd_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::_test_warn_in_autograd_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_test_autograd_multiple_dispatch.fullcoverage_out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _test_autograd_multiple_dispatch_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::_test_autograd_multiple_dispatch_fullcoverage_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_test_autograd_multiple_dispatch.fullcoverage_out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _test_autograd_multiple_dispatch_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::_test_autograd_multiple_dispatch_fullcoverage_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_test_autograd_multiple_dispatch_view_copy.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _test_autograd_multiple_dispatch_view_copy_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::_test_autograd_multiple_dispatch_view_copy_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_test_autograd_multiple_dispatch_view_copy.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _test_autograd_multiple_dispatch_view_copy_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::_test_autograd_multiple_dispatch_view_copy_out::redispatch(dispatchKeySet, self, out); + } + + // aten::segment_reduce.out(Tensor data, str reduce, *, Tensor? lengths=None, Tensor? indices=None, Tensor? offsets=None, int axis=0, bool unsafe=False, Scalar? initial=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & segment_reduce_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & data, c10::string_view reduce, const c10::optional & lengths={}, const c10::optional & indices={}, const c10::optional & offsets={}, int64_t axis=0, bool unsafe=false, const c10::optional & initial=c10::nullopt) { + return at::_ops::segment_reduce_out::redispatch(dispatchKeySet, data, reduce, lengths, indices, offsets, axis, unsafe, initial, out); + } + + // aten::segment_reduce.out(Tensor data, str reduce, *, Tensor? lengths=None, Tensor? indices=None, Tensor? offsets=None, int axis=0, bool unsafe=False, Scalar? initial=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & segment_reduce_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & data, c10::string_view reduce, const c10::optional & lengths, const c10::optional & indices, const c10::optional & offsets, int64_t axis, bool unsafe, const c10::optional & initial, at::Tensor & out) { + return at::_ops::segment_reduce_out::redispatch(dispatchKeySet, data, reduce, lengths, indices, offsets, axis, unsafe, initial, out); + } + + // aten::_segment_reduce_backward.out(Tensor grad, Tensor output, Tensor data, str reduce, *, Tensor? lengths=None, Tensor? offsets=None, int axis=0, Scalar? initial=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _segment_reduce_backward_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & grad, const at::Tensor & output, const at::Tensor & data, c10::string_view reduce, const c10::optional & lengths={}, const c10::optional & offsets={}, int64_t axis=0, const c10::optional & initial=c10::nullopt) { + return at::_ops::_segment_reduce_backward_out::redispatch(dispatchKeySet, grad, output, data, reduce, lengths, offsets, axis, initial, out); + } + + // aten::_segment_reduce_backward.out(Tensor grad, Tensor output, Tensor data, str reduce, *, Tensor? lengths=None, Tensor? offsets=None, int axis=0, Scalar? initial=None, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _segment_reduce_backward_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad, const at::Tensor & output, const at::Tensor & data, c10::string_view reduce, const c10::optional & lengths, const c10::optional & offsets, int64_t axis, const c10::optional & initial, at::Tensor & out) { + return at::_ops::_segment_reduce_backward_out::redispatch(dispatchKeySet, grad, output, data, reduce, lengths, offsets, axis, initial, out); + } + + // aten::_nested_tensor_from_tensor_list.out(Tensor[] list, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _nested_tensor_from_tensor_list_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, at::TensorList list, c10::optional dtype=c10::nullopt, c10::optional layout=c10::nullopt, c10::optional device=c10::nullopt, c10::optional pin_memory=c10::nullopt) { + return at::_ops::_nested_tensor_from_tensor_list_out::redispatch(dispatchKeySet, list, dtype, layout, device, pin_memory, out); + } + + // aten::_nested_tensor_from_tensor_list.out(Tensor[] list, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _nested_tensor_from_tensor_list_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList list, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory, at::Tensor & out) { + return at::_ops::_nested_tensor_from_tensor_list_out::redispatch(dispatchKeySet, list, dtype, layout, device, pin_memory, out); + } + + // aten::_fw_primal_copy.out(Tensor self, int level, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _fw_primal_copy_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t level) { + return at::_ops::_fw_primal_copy_out::redispatch(dispatchKeySet, self, level, out); + } + + // aten::_fw_primal_copy.out(Tensor self, int level, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _fw_primal_copy_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t level, at::Tensor & out) { + return at::_ops::_fw_primal_copy_out::redispatch(dispatchKeySet, self, level, out); + } + + // aten::_make_dual_copy.out(Tensor primal, Tensor tangent, int level, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _make_dual_copy_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & primal, const at::Tensor & tangent, int64_t level) { + return at::_ops::_make_dual_copy_out::redispatch(dispatchKeySet, primal, tangent, level, out); + } + + // aten::_make_dual_copy.out(Tensor primal, Tensor tangent, int level, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _make_dual_copy_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & primal, const at::Tensor & tangent, int64_t level, at::Tensor & out) { + return at::_ops::_make_dual_copy_out::redispatch(dispatchKeySet, primal, tangent, level, out); + } + + // aten::view_as_real_copy.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & view_as_real_copy_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::view_as_real_copy_out::redispatch(dispatchKeySet, self, out); + } + + // aten::view_as_real_copy.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & view_as_real_copy_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::view_as_real_copy_out::redispatch(dispatchKeySet, self, out); + } + + // aten::view_as_complex_copy.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & view_as_complex_copy_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::view_as_complex_copy_out::redispatch(dispatchKeySet, self, out); + } + + // aten::view_as_complex_copy.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & view_as_complex_copy_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::view_as_complex_copy_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_conj_copy.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _conj_copy_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::_conj_copy_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_conj_copy.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _conj_copy_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::_conj_copy_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_neg_view_copy.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _neg_view_copy_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::_neg_view_copy_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_neg_view_copy.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _neg_view_copy_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::_neg_view_copy_out::redispatch(dispatchKeySet, self, out); + } + + // aten::as_strided_copy.out(Tensor self, SymInt[] size, SymInt[] stride, SymInt? storage_offset=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & as_strided_copy_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef size, at::IntArrayRef stride, c10::optional storage_offset=c10::nullopt) { + return at::_ops::as_strided_copy_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(size), c10::fromIntArrayRefSlow(stride), storage_offset.has_value() ? c10::make_optional(c10::SymInt(*storage_offset)) : c10::nullopt, out); + } + + // aten::as_strided_copy.out(Tensor self, SymInt[] size, SymInt[] stride, SymInt? storage_offset=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & as_strided_copy_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef size, at::IntArrayRef stride, c10::optional storage_offset, at::Tensor & out) { + return at::_ops::as_strided_copy_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(size), c10::fromIntArrayRefSlow(stride), storage_offset.has_value() ? c10::make_optional(c10::SymInt(*storage_offset)) : c10::nullopt, out); + } + + // aten::as_strided_copy.out(Tensor self, SymInt[] size, SymInt[] stride, SymInt? storage_offset=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & as_strided_copy_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::SymIntArrayRef size, c10::SymIntArrayRef stride, c10::optional storage_offset=c10::nullopt) { + return at::_ops::as_strided_copy_out::redispatch(dispatchKeySet, self, size, stride, storage_offset, out); + } + + // aten::as_strided_copy.out(Tensor self, SymInt[] size, SymInt[] stride, SymInt? storage_offset=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & as_strided_copy_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef size, c10::SymIntArrayRef stride, c10::optional storage_offset, at::Tensor & out) { + return at::_ops::as_strided_copy_out::redispatch(dispatchKeySet, self, size, stride, storage_offset, out); + } + + // aten::_sparse_broadcast_to_copy.out(Tensor self, int[] size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _sparse_broadcast_to_copy_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef size) { + return at::_ops::_sparse_broadcast_to_copy_out::redispatch(dispatchKeySet, self, size, out); + } + + // aten::_sparse_broadcast_to_copy.out(Tensor self, int[] size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _sparse_broadcast_to_copy_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef size, at::Tensor & out) { + return at::_ops::_sparse_broadcast_to_copy_out::redispatch(dispatchKeySet, self, size, out); + } + + // aten::diagonal_copy.out(Tensor self, int offset=0, int dim1=0, int dim2=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & diagonal_copy_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t offset=0, int64_t dim1=0, int64_t dim2=1) { + return at::_ops::diagonal_copy_out::redispatch(dispatchKeySet, self, offset, dim1, dim2, out); + } + + // aten::diagonal_copy.out(Tensor self, int offset=0, int dim1=0, int dim2=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & diagonal_copy_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t offset, int64_t dim1, int64_t dim2, at::Tensor & out) { + return at::_ops::diagonal_copy_out::redispatch(dispatchKeySet, self, offset, dim1, dim2, out); + } + + // aten::expand_copy.out(Tensor self, SymInt[] size, *, bool implicit=False, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & expand_copy_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef size, bool implicit=false) { + return at::_ops::expand_copy_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(size), implicit, out); + } + + // aten::expand_copy.out(Tensor self, SymInt[] size, *, bool implicit=False, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & expand_copy_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef size, bool implicit, at::Tensor & out) { + return at::_ops::expand_copy_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(size), implicit, out); + } + + // aten::expand_copy.out(Tensor self, SymInt[] size, *, bool implicit=False, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & expand_copy_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::SymIntArrayRef size, bool implicit=false) { + return at::_ops::expand_copy_out::redispatch(dispatchKeySet, self, size, implicit, out); + } + + // aten::expand_copy.out(Tensor self, SymInt[] size, *, bool implicit=False, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & expand_copy_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef size, bool implicit, at::Tensor & out) { + return at::_ops::expand_copy_out::redispatch(dispatchKeySet, self, size, implicit, out); + } + + // aten::permute_copy.out(Tensor self, int[] dims, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & permute_copy_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef dims) { + return at::_ops::permute_copy_out::redispatch(dispatchKeySet, self, dims, out); + } + + // aten::permute_copy.out(Tensor self, int[] dims, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & permute_copy_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef dims, at::Tensor & out) { + return at::_ops::permute_copy_out::redispatch(dispatchKeySet, self, dims, out); + } + + // aten::_reshape_alias_copy.out(Tensor self, SymInt[] size, SymInt[] stride, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _reshape_alias_copy_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef size, at::IntArrayRef stride) { + return at::_ops::_reshape_alias_copy_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(size), c10::fromIntArrayRefSlow(stride), out); + } + + // aten::_reshape_alias_copy.out(Tensor self, SymInt[] size, SymInt[] stride, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _reshape_alias_copy_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef size, at::IntArrayRef stride, at::Tensor & out) { + return at::_ops::_reshape_alias_copy_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(size), c10::fromIntArrayRefSlow(stride), out); + } + + // aten::_reshape_alias_copy.out(Tensor self, SymInt[] size, SymInt[] stride, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _reshape_alias_copy_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::SymIntArrayRef size, c10::SymIntArrayRef stride) { + return at::_ops::_reshape_alias_copy_out::redispatch(dispatchKeySet, self, size, stride, out); + } + + // aten::_reshape_alias_copy.out(Tensor self, SymInt[] size, SymInt[] stride, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _reshape_alias_copy_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef size, c10::SymIntArrayRef stride, at::Tensor & out) { + return at::_ops::_reshape_alias_copy_out::redispatch(dispatchKeySet, self, size, stride, out); + } + + // aten::select_copy.int_out(Tensor self, int dim, SymInt index, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & select_copy_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t dim, int64_t index) { + return at::_ops::select_copy_int_out::redispatch(dispatchKeySet, self, dim, index, out); + } + + // aten::select_copy.int_out(Tensor self, int dim, SymInt index, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & select_copy_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, int64_t index, at::Tensor & out) { + return at::_ops::select_copy_int_out::redispatch(dispatchKeySet, self, dim, index, out); + } + + // aten::select_copy.int_out(Tensor self, int dim, SymInt index, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & select_copy_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t dim, c10::SymInt index) { + return at::_ops::select_copy_int_out::redispatch(dispatchKeySet, self, dim, index, out); + } + + // aten::select_copy.int_out(Tensor self, int dim, SymInt index, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & select_copy_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, c10::SymInt index, at::Tensor & out) { + return at::_ops::select_copy_int_out::redispatch(dispatchKeySet, self, dim, index, out); + } + + // aten::detach_copy.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & detach_copy_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::detach_copy_out::redispatch(dispatchKeySet, self, out); + } + + // aten::detach_copy.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & detach_copy_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::detach_copy_out::redispatch(dispatchKeySet, self, out); + } + + // aten::slice_copy.Tensor_out(Tensor self, int dim=0, SymInt? start=None, SymInt? end=None, SymInt step=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & slice_copy_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t dim=0, c10::optional start=c10::nullopt, c10::optional end=c10::nullopt, int64_t step=1) { + return at::_ops::slice_copy_Tensor_out::redispatch(dispatchKeySet, self, dim, start.has_value() ? c10::make_optional(c10::SymInt(*start)) : c10::nullopt, end.has_value() ? c10::make_optional(c10::SymInt(*end)) : c10::nullopt, step, out); + } + + // aten::slice_copy.Tensor_out(Tensor self, int dim=0, SymInt? start=None, SymInt? end=None, SymInt step=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & slice_copy_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, c10::optional start, c10::optional end, int64_t step, at::Tensor & out) { + return at::_ops::slice_copy_Tensor_out::redispatch(dispatchKeySet, self, dim, start.has_value() ? c10::make_optional(c10::SymInt(*start)) : c10::nullopt, end.has_value() ? c10::make_optional(c10::SymInt(*end)) : c10::nullopt, step, out); + } + + // aten::slice_copy.Tensor_out(Tensor self, int dim=0, SymInt? start=None, SymInt? end=None, SymInt step=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & slice_copy_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t dim=0, c10::optional start=c10::nullopt, c10::optional end=c10::nullopt, c10::SymInt step=1) { + return at::_ops::slice_copy_Tensor_out::redispatch(dispatchKeySet, self, dim, start, end, step, out); + } + + // aten::slice_copy.Tensor_out(Tensor self, int dim=0, SymInt? start=None, SymInt? end=None, SymInt step=1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & slice_copy_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, c10::optional start, c10::optional end, c10::SymInt step, at::Tensor & out) { + return at::_ops::slice_copy_Tensor_out::redispatch(dispatchKeySet, self, dim, start, end, step, out); + } + + // aten::squeeze_copy.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & squeeze_copy_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::squeeze_copy_out::redispatch(dispatchKeySet, self, out); + } + + // aten::squeeze_copy.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & squeeze_copy_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::squeeze_copy_out::redispatch(dispatchKeySet, self, out); + } + + // aten::squeeze_copy.dim_out(Tensor self, int dim, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & squeeze_copy_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t dim) { + return at::_ops::squeeze_copy_dim_out::redispatch(dispatchKeySet, self, dim, out); + } + + // aten::squeeze_copy.dim_out(Tensor self, int dim, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & squeeze_copy_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, at::Tensor & out) { + return at::_ops::squeeze_copy_dim_out::redispatch(dispatchKeySet, self, dim, out); + } + + // aten::squeeze_copy.dims_out(Tensor self, int[] dim, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & squeeze_copy_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef dim) { + return at::_ops::squeeze_copy_dims_out::redispatch(dispatchKeySet, self, dim, out); + } + + // aten::squeeze_copy.dims_out(Tensor self, int[] dim, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & squeeze_copy_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef dim, at::Tensor & out) { + return at::_ops::squeeze_copy_dims_out::redispatch(dispatchKeySet, self, dim, out); + } + + // aten::t_copy.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & t_copy_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::t_copy_out::redispatch(dispatchKeySet, self, out); + } + + // aten::t_copy.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & t_copy_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::t_copy_out::redispatch(dispatchKeySet, self, out); + } + + // aten::transpose_copy.int_out(Tensor self, int dim0, int dim1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & transpose_copy_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t dim0, int64_t dim1) { + return at::_ops::transpose_copy_int_out::redispatch(dispatchKeySet, self, dim0, dim1, out); + } + + // aten::transpose_copy.int_out(Tensor self, int dim0, int dim1, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & transpose_copy_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim0, int64_t dim1, at::Tensor & out) { + return at::_ops::transpose_copy_int_out::redispatch(dispatchKeySet, self, dim0, dim1, out); + } + + // aten::unsqueeze_copy.out(Tensor self, int dim, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & unsqueeze_copy_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t dim) { + return at::_ops::unsqueeze_copy_out::redispatch(dispatchKeySet, self, dim, out); + } + + // aten::unsqueeze_copy.out(Tensor self, int dim, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & unsqueeze_copy_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, at::Tensor & out) { + return at::_ops::unsqueeze_copy_out::redispatch(dispatchKeySet, self, dim, out); + } + + // aten::_indices_copy.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _indices_copy_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::_indices_copy_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_indices_copy.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _indices_copy_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::_indices_copy_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_values_copy.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _values_copy_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::_values_copy_out::redispatch(dispatchKeySet, self, out); + } + + // aten::_values_copy.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _values_copy_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::_values_copy_out::redispatch(dispatchKeySet, self, out); + } + + // aten::indices_copy.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & indices_copy_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::indices_copy_out::redispatch(dispatchKeySet, self, out); + } + + // aten::indices_copy.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & indices_copy_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::indices_copy_out::redispatch(dispatchKeySet, self, out); + } + + // aten::values_copy.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & values_copy_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::values_copy_out::redispatch(dispatchKeySet, self, out); + } + + // aten::values_copy.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & values_copy_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::values_copy_out::redispatch(dispatchKeySet, self, out); + } + + // aten::crow_indices_copy.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & crow_indices_copy_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::crow_indices_copy_out::redispatch(dispatchKeySet, self, out); + } + + // aten::crow_indices_copy.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & crow_indices_copy_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::crow_indices_copy_out::redispatch(dispatchKeySet, self, out); + } + + // aten::col_indices_copy.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & col_indices_copy_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::col_indices_copy_out::redispatch(dispatchKeySet, self, out); + } + + // aten::col_indices_copy.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & col_indices_copy_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::col_indices_copy_out::redispatch(dispatchKeySet, self, out); + } + + // aten::ccol_indices_copy.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & ccol_indices_copy_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::ccol_indices_copy_out::redispatch(dispatchKeySet, self, out); + } + + // aten::ccol_indices_copy.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & ccol_indices_copy_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::ccol_indices_copy_out::redispatch(dispatchKeySet, self, out); + } + + // aten::row_indices_copy.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & row_indices_copy_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::row_indices_copy_out::redispatch(dispatchKeySet, self, out); + } + + // aten::row_indices_copy.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & row_indices_copy_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::row_indices_copy_out::redispatch(dispatchKeySet, self, out); + } + + // aten::view_copy.out(Tensor self, SymInt[] size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & view_copy_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::IntArrayRef size) { + return at::_ops::view_copy_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(size), out); + } + + // aten::view_copy.out(Tensor self, SymInt[] size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & view_copy_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef size, at::Tensor & out) { + return at::_ops::view_copy_out::redispatch(dispatchKeySet, self, c10::fromIntArrayRefSlow(size), out); + } + + // aten::view_copy.out(Tensor self, SymInt[] size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & view_copy_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, c10::SymIntArrayRef size) { + return at::_ops::view_copy_out::redispatch(dispatchKeySet, self, size, out); + } + + // aten::view_copy.out(Tensor self, SymInt[] size, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & view_copy_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef size, at::Tensor & out) { + return at::_ops::view_copy_out::redispatch(dispatchKeySet, self, size, out); + } + + // aten::view_copy.dtype_out(Tensor self, ScalarType dtype, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & view_copy_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, at::ScalarType dtype) { + return at::_ops::view_copy_dtype_out::redispatch(dispatchKeySet, self, dtype, out); + } + + // aten::view_copy.dtype_out(Tensor self, ScalarType dtype, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & view_copy_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::ScalarType dtype, at::Tensor & out) { + return at::_ops::view_copy_dtype_out::redispatch(dispatchKeySet, self, dtype, out); + } + + // aten::unfold_copy.out(Tensor self, int dimension, int size, int step, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & unfold_copy_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, int64_t dimension, int64_t size, int64_t step) { + return at::_ops::unfold_copy_out::redispatch(dispatchKeySet, self, dimension, size, step, out); + } + + // aten::unfold_copy.out(Tensor self, int dimension, int size, int step, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & unfold_copy_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dimension, int64_t size, int64_t step, at::Tensor & out) { + return at::_ops::unfold_copy_out::redispatch(dispatchKeySet, self, dimension, size, step, out); + } + + // aten::alias_copy.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & alias_copy_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self) { + return at::_ops::alias_copy_out::redispatch(dispatchKeySet, self, out); + } + + // aten::alias_copy.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & alias_copy_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out) { + return at::_ops::alias_copy_out::redispatch(dispatchKeySet, self, out); + } + + // aten::to_padded_tensor.out(Tensor self, float padding, SymInt[]? output_size=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & to_padded_tensor_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, double padding, at::OptionalIntArrayRef output_size=c10::nullopt) { + return at::_ops::to_padded_tensor_out::redispatch(dispatchKeySet, self, padding, output_size.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*output_size)) : c10::nullopt, out); + } + + // aten::to_padded_tensor.out(Tensor self, float padding, SymInt[]? output_size=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & to_padded_tensor_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, double padding, at::OptionalIntArrayRef output_size, at::Tensor & out) { + return at::_ops::to_padded_tensor_out::redispatch(dispatchKeySet, self, padding, output_size.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*output_size)) : c10::nullopt, out); + } + + // aten::to_padded_tensor.out(Tensor self, float padding, SymInt[]? output_size=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & to_padded_tensor_symint_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, double padding, at::OptionalSymIntArrayRef output_size=c10::nullopt) { + return at::_ops::to_padded_tensor_out::redispatch(dispatchKeySet, self, padding, output_size, out); + } + + // aten::to_padded_tensor.out(Tensor self, float padding, SymInt[]? output_size=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & to_padded_tensor_symint_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, double padding, at::OptionalSymIntArrayRef output_size, at::Tensor & out) { + return at::_ops::to_padded_tensor_out::redispatch(dispatchKeySet, self, padding, output_size, out); + } + + // aten::_transformer_encoder_layer_fwd.out(Tensor src, int embed_dim, int num_heads, Tensor qkv_weight, Tensor qkv_bias, Tensor proj_weight, Tensor proj_bias, bool use_gelu, bool norm_first, float eps, Tensor norm_weight_1, Tensor norm_bias_1, Tensor norm_weight_2, Tensor norm_bias_2, Tensor ffn_weight_1, Tensor ffn_bias_1, Tensor ffn_weight_2, Tensor ffn_bias_2, Tensor? mask=None, int? mask_type=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _transformer_encoder_layer_fwd_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & src, int64_t embed_dim, int64_t num_heads, const at::Tensor & qkv_weight, const at::Tensor & qkv_bias, const at::Tensor & proj_weight, const at::Tensor & proj_bias, bool use_gelu, bool norm_first, double eps, const at::Tensor & norm_weight_1, const at::Tensor & norm_bias_1, const at::Tensor & norm_weight_2, const at::Tensor & norm_bias_2, const at::Tensor & ffn_weight_1, const at::Tensor & ffn_bias_1, const at::Tensor & ffn_weight_2, const at::Tensor & ffn_bias_2, const c10::optional & mask={}, c10::optional mask_type=c10::nullopt) { + return at::_ops::_transformer_encoder_layer_fwd_out::redispatch(dispatchKeySet, src, embed_dim, num_heads, qkv_weight, qkv_bias, proj_weight, proj_bias, use_gelu, norm_first, eps, norm_weight_1, norm_bias_1, norm_weight_2, norm_bias_2, ffn_weight_1, ffn_bias_1, ffn_weight_2, ffn_bias_2, mask, mask_type, out); + } + + // aten::_transformer_encoder_layer_fwd.out(Tensor src, int embed_dim, int num_heads, Tensor qkv_weight, Tensor qkv_bias, Tensor proj_weight, Tensor proj_bias, bool use_gelu, bool norm_first, float eps, Tensor norm_weight_1, Tensor norm_bias_1, Tensor norm_weight_2, Tensor norm_bias_2, Tensor ffn_weight_1, Tensor ffn_bias_1, Tensor ffn_weight_2, Tensor ffn_bias_2, Tensor? mask=None, int? mask_type=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _transformer_encoder_layer_fwd_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & src, int64_t embed_dim, int64_t num_heads, const at::Tensor & qkv_weight, const at::Tensor & qkv_bias, const at::Tensor & proj_weight, const at::Tensor & proj_bias, bool use_gelu, bool norm_first, double eps, const at::Tensor & norm_weight_1, const at::Tensor & norm_bias_1, const at::Tensor & norm_weight_2, const at::Tensor & norm_bias_2, const at::Tensor & ffn_weight_1, const at::Tensor & ffn_bias_1, const at::Tensor & ffn_weight_2, const at::Tensor & ffn_bias_2, const c10::optional & mask, c10::optional mask_type, at::Tensor & out) { + return at::_ops::_transformer_encoder_layer_fwd_out::redispatch(dispatchKeySet, src, embed_dim, num_heads, qkv_weight, qkv_bias, proj_weight, proj_bias, use_gelu, norm_first, eps, norm_weight_1, norm_bias_1, norm_weight_2, norm_bias_2, ffn_weight_1, ffn_bias_1, ffn_weight_2, ffn_bias_2, mask, mask_type, out); + } + + // aten::_native_multi_head_attention.out(Tensor query, Tensor key, Tensor value, int embed_dim, int num_head, Tensor qkv_weight, Tensor qkv_bias, Tensor proj_weight, Tensor proj_bias, Tensor? mask=None, bool need_weights=True, bool average_attn_weights=True, int? mask_type=None, *, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple _native_multi_head_attention_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out0, at::Tensor & out1, const at::Tensor & query, const at::Tensor & key, const at::Tensor & value, int64_t embed_dim, int64_t num_head, const at::Tensor & qkv_weight, const at::Tensor & qkv_bias, const at::Tensor & proj_weight, const at::Tensor & proj_bias, const c10::optional & mask={}, bool need_weights=true, bool average_attn_weights=true, c10::optional mask_type=c10::nullopt) { + return at::_ops::_native_multi_head_attention_out::redispatch(dispatchKeySet, query, key, value, embed_dim, num_head, qkv_weight, qkv_bias, proj_weight, proj_bias, mask, need_weights, average_attn_weights, mask_type, out0, out1); + } + + // aten::_native_multi_head_attention.out(Tensor query, Tensor key, Tensor value, int embed_dim, int num_head, Tensor qkv_weight, Tensor qkv_bias, Tensor proj_weight, Tensor proj_bias, Tensor? mask=None, bool need_weights=True, bool average_attn_weights=True, int? mask_type=None, *, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!)) + inline ::std::tuple _native_multi_head_attention_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & query, const at::Tensor & key, const at::Tensor & value, int64_t embed_dim, int64_t num_head, const at::Tensor & qkv_weight, const at::Tensor & qkv_bias, const at::Tensor & proj_weight, const at::Tensor & proj_bias, const c10::optional & mask, bool need_weights, bool average_attn_weights, c10::optional mask_type, at::Tensor & out0, at::Tensor & out1) { + return at::_ops::_native_multi_head_attention_out::redispatch(dispatchKeySet, query, key, value, embed_dim, num_head, qkv_weight, qkv_bias, proj_weight, proj_bias, mask, need_weights, average_attn_weights, mask_type, out0, out1); + } + + // aten::_triton_scaled_dot_attention.out(Tensor q, Tensor k, Tensor v, float dropout_p=0.0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _triton_scaled_dot_attention_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & q, const at::Tensor & k, const at::Tensor & v, double dropout_p=0.0) { + return at::_ops::_triton_scaled_dot_attention_out::redispatch(dispatchKeySet, q, k, v, dropout_p, out); + } + + // aten::_triton_scaled_dot_attention.out(Tensor q, Tensor k, Tensor v, float dropout_p=0.0, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _triton_scaled_dot_attention_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & q, const at::Tensor & k, const at::Tensor & v, double dropout_p, at::Tensor & out) { + return at::_ops::_triton_scaled_dot_attention_out::redispatch(dispatchKeySet, q, k, v, dropout_p, out); + } + + // aten::_triton_multi_head_attention.out(Tensor query, Tensor key, Tensor value, int embed_dim, int num_head, Tensor qkv_weight, Tensor qkv_bias, Tensor proj_weight, Tensor proj_bias, Tensor? mask=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _triton_multi_head_attention_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & query, const at::Tensor & key, const at::Tensor & value, int64_t embed_dim, int64_t num_head, const at::Tensor & qkv_weight, const at::Tensor & qkv_bias, const at::Tensor & proj_weight, const at::Tensor & proj_bias, const c10::optional & mask={}) { + return at::_ops::_triton_multi_head_attention_out::redispatch(dispatchKeySet, query, key, value, embed_dim, num_head, qkv_weight, qkv_bias, proj_weight, proj_bias, mask, out); + } + + // aten::_triton_multi_head_attention.out(Tensor query, Tensor key, Tensor value, int embed_dim, int num_head, Tensor qkv_weight, Tensor qkv_bias, Tensor proj_weight, Tensor proj_bias, Tensor? mask=None, *, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _triton_multi_head_attention_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & query, const at::Tensor & key, const at::Tensor & value, int64_t embed_dim, int64_t num_head, const at::Tensor & qkv_weight, const at::Tensor & qkv_bias, const at::Tensor & proj_weight, const at::Tensor & proj_bias, const c10::optional & mask, at::Tensor & out) { + return at::_ops::_triton_multi_head_attention_out::redispatch(dispatchKeySet, query, key, value, embed_dim, num_head, qkv_weight, qkv_bias, proj_weight, proj_bias, mask, out); + } + + // aten::_foobar.out(Tensor self, bool arg1=True, bool arg2=True, *, bool arg3=True, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _foobar_out(c10::DispatchKeySet dispatchKeySet, at::Tensor & out, const at::Tensor & self, bool arg1=true, bool arg2=true, bool arg3=true) { + return at::_ops::_foobar_out::redispatch(dispatchKeySet, self, arg1, arg2, arg3, out); + } + + // aten::_foobar.out(Tensor self, bool arg1=True, bool arg2=True, *, bool arg3=True, Tensor(a!) out) -> Tensor(a!) + inline at::Tensor & _foobar_outf(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, bool arg1, bool arg2, bool arg3, at::Tensor & out) { + return at::_ops::_foobar_out::redispatch(dispatchKeySet, self, arg1, arg2, arg3, out); + } + + // aten::_fused_adam.out(Tensor[] self, Tensor(b!)[] grads, Tensor(c!)[] exp_avgs, Tensor(d!)[] exp_avg_sqs, Tensor(e!)[] max_exp_avg_sqs, Tensor[] state_steps, *, float lr, float beta1, float beta2, float weight_decay, float eps, bool amsgrad, bool maximize, Tensor? grad_scale=None, Tensor? found_inf=None, Tensor(a!)[] out) -> () + inline void _fused_adam_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self, at::TensorList grads, at::TensorList exp_avgs, at::TensorList exp_avg_sqs, at::TensorList max_exp_avg_sqs, at::TensorList state_steps, double lr, double beta1, double beta2, double weight_decay, double eps, bool amsgrad, bool maximize, const c10::optional & grad_scale={}, const c10::optional & found_inf={}) { + return at::_ops::_fused_adam_out::redispatch(dispatchKeySet, self, grads, exp_avgs, exp_avg_sqs, max_exp_avg_sqs, state_steps, lr, beta1, beta2, weight_decay, eps, amsgrad, maximize, grad_scale, found_inf, out); + } + + // aten::_fused_adam.out(Tensor[] self, Tensor(b!)[] grads, Tensor(c!)[] exp_avgs, Tensor(d!)[] exp_avg_sqs, Tensor(e!)[] max_exp_avg_sqs, Tensor[] state_steps, *, float lr, float beta1, float beta2, float weight_decay, float eps, bool amsgrad, bool maximize, Tensor? grad_scale=None, Tensor? found_inf=None, Tensor(a!)[] out) -> () + inline void _fused_adam_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList grads, at::TensorList exp_avgs, at::TensorList exp_avg_sqs, at::TensorList max_exp_avg_sqs, at::TensorList state_steps, double lr, double beta1, double beta2, double weight_decay, double eps, bool amsgrad, bool maximize, const c10::optional & grad_scale, const c10::optional & found_inf, at::TensorList out) { + return at::_ops::_fused_adam_out::redispatch(dispatchKeySet, self, grads, exp_avgs, exp_avg_sqs, max_exp_avg_sqs, state_steps, lr, beta1, beta2, weight_decay, eps, amsgrad, maximize, grad_scale, found_inf, out); + } + + // aten::_fused_adam(Tensor[] self, Tensor[] grads, Tensor[] exp_avgs, Tensor[] exp_avg_sqs, Tensor[] max_exp_avg_sqs, Tensor[] state_steps, *, float lr, float beta1, float beta2, float weight_decay, float eps, bool amsgrad, bool maximize, Tensor? grad_scale=None, Tensor? found_inf=None) -> (Tensor[] self_out, Tensor[] grads_out, Tensor[] exp_avgs_out, Tensor[] exp_avg_sqs_out, Tensor[] max_exp_avg_sqs_out) + inline ::std::tuple<::std::vector,::std::vector,::std::vector,::std::vector,::std::vector> _fused_adam(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList grads, at::TensorList exp_avgs, at::TensorList exp_avg_sqs, at::TensorList max_exp_avg_sqs, at::TensorList state_steps, double lr, double beta1, double beta2, double weight_decay, double eps, bool amsgrad, bool maximize, const c10::optional & grad_scale={}, const c10::optional & found_inf={}) { + return at::_ops::_fused_adam::redispatch(dispatchKeySet, self, grads, exp_avgs, exp_avg_sqs, max_exp_avg_sqs, state_steps, lr, beta1, beta2, weight_decay, eps, amsgrad, maximize, grad_scale, found_inf); + } + + // aten::_fused_adam.tensor_lr_out(Tensor[] self, Tensor(b!)[] grads, Tensor(c!)[] exp_avgs, Tensor(d!)[] exp_avg_sqs, Tensor(e!)[] max_exp_avg_sqs, Tensor[] state_steps, *, Tensor lr, float beta1, float beta2, float weight_decay, float eps, bool amsgrad, bool maximize, Tensor? grad_scale=None, Tensor? found_inf=None, Tensor(a!)[] out) -> () + inline void _fused_adam_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self, at::TensorList grads, at::TensorList exp_avgs, at::TensorList exp_avg_sqs, at::TensorList max_exp_avg_sqs, at::TensorList state_steps, const at::Tensor & lr, double beta1, double beta2, double weight_decay, double eps, bool amsgrad, bool maximize, const c10::optional & grad_scale={}, const c10::optional & found_inf={}) { + return at::_ops::_fused_adam_tensor_lr_out::redispatch(dispatchKeySet, self, grads, exp_avgs, exp_avg_sqs, max_exp_avg_sqs, state_steps, lr, beta1, beta2, weight_decay, eps, amsgrad, maximize, grad_scale, found_inf, out); + } + + // aten::_fused_adam.tensor_lr_out(Tensor[] self, Tensor(b!)[] grads, Tensor(c!)[] exp_avgs, Tensor(d!)[] exp_avg_sqs, Tensor(e!)[] max_exp_avg_sqs, Tensor[] state_steps, *, Tensor lr, float beta1, float beta2, float weight_decay, float eps, bool amsgrad, bool maximize, Tensor? grad_scale=None, Tensor? found_inf=None, Tensor(a!)[] out) -> () + inline void _fused_adam_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList grads, at::TensorList exp_avgs, at::TensorList exp_avg_sqs, at::TensorList max_exp_avg_sqs, at::TensorList state_steps, const at::Tensor & lr, double beta1, double beta2, double weight_decay, double eps, bool amsgrad, bool maximize, const c10::optional & grad_scale, const c10::optional & found_inf, at::TensorList out) { + return at::_ops::_fused_adam_tensor_lr_out::redispatch(dispatchKeySet, self, grads, exp_avgs, exp_avg_sqs, max_exp_avg_sqs, state_steps, lr, beta1, beta2, weight_decay, eps, amsgrad, maximize, grad_scale, found_inf, out); + } + + // aten::_fused_adam.tensor_lr(Tensor[] self, Tensor[] grads, Tensor[] exp_avgs, Tensor[] exp_avg_sqs, Tensor[] max_exp_avg_sqs, Tensor[] state_steps, *, Tensor lr, float beta1, float beta2, float weight_decay, float eps, bool amsgrad, bool maximize, Tensor? grad_scale=None, Tensor? found_inf=None) -> (Tensor[] self_out, Tensor[] grads_out, Tensor[] exp_avgs_out, Tensor[] exp_avg_sqs_out, Tensor[] max_exp_avg_sqs_out) + inline ::std::tuple<::std::vector,::std::vector,::std::vector,::std::vector,::std::vector> _fused_adam(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList grads, at::TensorList exp_avgs, at::TensorList exp_avg_sqs, at::TensorList max_exp_avg_sqs, at::TensorList state_steps, const at::Tensor & lr, double beta1, double beta2, double weight_decay, double eps, bool amsgrad, bool maximize, const c10::optional & grad_scale={}, const c10::optional & found_inf={}) { + return at::_ops::_fused_adam_tensor_lr::redispatch(dispatchKeySet, self, grads, exp_avgs, exp_avg_sqs, max_exp_avg_sqs, state_steps, lr, beta1, beta2, weight_decay, eps, amsgrad, maximize, grad_scale, found_inf); + } + + // aten::_fused_adamw.out(Tensor[] self, Tensor(b!)[] grads, Tensor(c!)[] exp_avgs, Tensor(d!)[] exp_avg_sqs, Tensor(e!)[] max_exp_avg_sqs, Tensor[] state_steps, *, float lr, float beta1, float beta2, float weight_decay, float eps, bool amsgrad, bool maximize, Tensor? grad_scale=None, Tensor? found_inf=None, Tensor(a!)[] out) -> () + inline void _fused_adamw_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self, at::TensorList grads, at::TensorList exp_avgs, at::TensorList exp_avg_sqs, at::TensorList max_exp_avg_sqs, at::TensorList state_steps, double lr, double beta1, double beta2, double weight_decay, double eps, bool amsgrad, bool maximize, const c10::optional & grad_scale={}, const c10::optional & found_inf={}) { + return at::_ops::_fused_adamw_out::redispatch(dispatchKeySet, self, grads, exp_avgs, exp_avg_sqs, max_exp_avg_sqs, state_steps, lr, beta1, beta2, weight_decay, eps, amsgrad, maximize, grad_scale, found_inf, out); + } + + // aten::_fused_adamw.out(Tensor[] self, Tensor(b!)[] grads, Tensor(c!)[] exp_avgs, Tensor(d!)[] exp_avg_sqs, Tensor(e!)[] max_exp_avg_sqs, Tensor[] state_steps, *, float lr, float beta1, float beta2, float weight_decay, float eps, bool amsgrad, bool maximize, Tensor? grad_scale=None, Tensor? found_inf=None, Tensor(a!)[] out) -> () + inline void _fused_adamw_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList grads, at::TensorList exp_avgs, at::TensorList exp_avg_sqs, at::TensorList max_exp_avg_sqs, at::TensorList state_steps, double lr, double beta1, double beta2, double weight_decay, double eps, bool amsgrad, bool maximize, const c10::optional & grad_scale, const c10::optional & found_inf, at::TensorList out) { + return at::_ops::_fused_adamw_out::redispatch(dispatchKeySet, self, grads, exp_avgs, exp_avg_sqs, max_exp_avg_sqs, state_steps, lr, beta1, beta2, weight_decay, eps, amsgrad, maximize, grad_scale, found_inf, out); + } + + // aten::_fused_adamw(Tensor[] self, Tensor[] grads, Tensor[] exp_avgs, Tensor[] exp_avg_sqs, Tensor[] max_exp_avg_sqs, Tensor[] state_steps, *, float lr, float beta1, float beta2, float weight_decay, float eps, bool amsgrad, bool maximize, Tensor? grad_scale=None, Tensor? found_inf=None) -> (Tensor[] self_out, Tensor[] grads_out, Tensor[] exp_avgs_out, Tensor[] exp_avg_sqs_out, Tensor[] max_exp_avg_sqs_out) + inline ::std::tuple<::std::vector,::std::vector,::std::vector,::std::vector,::std::vector> _fused_adamw(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList grads, at::TensorList exp_avgs, at::TensorList exp_avg_sqs, at::TensorList max_exp_avg_sqs, at::TensorList state_steps, double lr, double beta1, double beta2, double weight_decay, double eps, bool amsgrad, bool maximize, const c10::optional & grad_scale={}, const c10::optional & found_inf={}) { + return at::_ops::_fused_adamw::redispatch(dispatchKeySet, self, grads, exp_avgs, exp_avg_sqs, max_exp_avg_sqs, state_steps, lr, beta1, beta2, weight_decay, eps, amsgrad, maximize, grad_scale, found_inf); + } + + // aten::_fused_adamw.tensor_lr_out(Tensor[] self, Tensor(b!)[] grads, Tensor(c!)[] exp_avgs, Tensor(d!)[] exp_avg_sqs, Tensor(e!)[] max_exp_avg_sqs, Tensor[] state_steps, *, Tensor lr, float beta1, float beta2, float weight_decay, float eps, bool amsgrad, bool maximize, Tensor? grad_scale=None, Tensor? found_inf=None, Tensor(a!)[] out) -> () + inline void _fused_adamw_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self, at::TensorList grads, at::TensorList exp_avgs, at::TensorList exp_avg_sqs, at::TensorList max_exp_avg_sqs, at::TensorList state_steps, const at::Tensor & lr, double beta1, double beta2, double weight_decay, double eps, bool amsgrad, bool maximize, const c10::optional & grad_scale={}, const c10::optional & found_inf={}) { + return at::_ops::_fused_adamw_tensor_lr_out::redispatch(dispatchKeySet, self, grads, exp_avgs, exp_avg_sqs, max_exp_avg_sqs, state_steps, lr, beta1, beta2, weight_decay, eps, amsgrad, maximize, grad_scale, found_inf, out); + } + + // aten::_fused_adamw.tensor_lr_out(Tensor[] self, Tensor(b!)[] grads, Tensor(c!)[] exp_avgs, Tensor(d!)[] exp_avg_sqs, Tensor(e!)[] max_exp_avg_sqs, Tensor[] state_steps, *, Tensor lr, float beta1, float beta2, float weight_decay, float eps, bool amsgrad, bool maximize, Tensor? grad_scale=None, Tensor? found_inf=None, Tensor(a!)[] out) -> () + inline void _fused_adamw_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList grads, at::TensorList exp_avgs, at::TensorList exp_avg_sqs, at::TensorList max_exp_avg_sqs, at::TensorList state_steps, const at::Tensor & lr, double beta1, double beta2, double weight_decay, double eps, bool amsgrad, bool maximize, const c10::optional & grad_scale, const c10::optional & found_inf, at::TensorList out) { + return at::_ops::_fused_adamw_tensor_lr_out::redispatch(dispatchKeySet, self, grads, exp_avgs, exp_avg_sqs, max_exp_avg_sqs, state_steps, lr, beta1, beta2, weight_decay, eps, amsgrad, maximize, grad_scale, found_inf, out); + } + + // aten::_fused_adamw.tensor_lr(Tensor[] self, Tensor[] grads, Tensor[] exp_avgs, Tensor[] exp_avg_sqs, Tensor[] max_exp_avg_sqs, Tensor[] state_steps, *, Tensor lr, float beta1, float beta2, float weight_decay, float eps, bool amsgrad, bool maximize, Tensor? grad_scale=None, Tensor? found_inf=None) -> (Tensor[] self_out, Tensor[] grads_out, Tensor[] exp_avgs_out, Tensor[] exp_avg_sqs_out, Tensor[] max_exp_avg_sqs_out) + inline ::std::tuple<::std::vector,::std::vector,::std::vector,::std::vector,::std::vector> _fused_adamw(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList grads, at::TensorList exp_avgs, at::TensorList exp_avg_sqs, at::TensorList max_exp_avg_sqs, at::TensorList state_steps, const at::Tensor & lr, double beta1, double beta2, double weight_decay, double eps, bool amsgrad, bool maximize, const c10::optional & grad_scale={}, const c10::optional & found_inf={}) { + return at::_ops::_fused_adamw_tensor_lr::redispatch(dispatchKeySet, self, grads, exp_avgs, exp_avg_sqs, max_exp_avg_sqs, state_steps, lr, beta1, beta2, weight_decay, eps, amsgrad, maximize, grad_scale, found_inf); + } + + // aten::_fused_sgd.out(Tensor[] self, Tensor(b!)[] grads, Tensor(c!)[] momentum_buffer_list, *, float weight_decay, float momentum, float lr, float dampening, bool nesterov, bool maximize, bool is_first_step, Tensor? grad_scale=None, Tensor? found_inf=None, Tensor(a!)[] out) -> () + inline void _fused_sgd_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self, at::TensorList grads, at::TensorList momentum_buffer_list, double weight_decay, double momentum, double lr, double dampening, bool nesterov, bool maximize, bool is_first_step, const c10::optional & grad_scale={}, const c10::optional & found_inf={}) { + return at::_ops::_fused_sgd_out::redispatch(dispatchKeySet, self, grads, momentum_buffer_list, weight_decay, momentum, lr, dampening, nesterov, maximize, is_first_step, grad_scale, found_inf, out); + } + + // aten::_fused_sgd.out(Tensor[] self, Tensor(b!)[] grads, Tensor(c!)[] momentum_buffer_list, *, float weight_decay, float momentum, float lr, float dampening, bool nesterov, bool maximize, bool is_first_step, Tensor? grad_scale=None, Tensor? found_inf=None, Tensor(a!)[] out) -> () + inline void _fused_sgd_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList grads, at::TensorList momentum_buffer_list, double weight_decay, double momentum, double lr, double dampening, bool nesterov, bool maximize, bool is_first_step, const c10::optional & grad_scale, const c10::optional & found_inf, at::TensorList out) { + return at::_ops::_fused_sgd_out::redispatch(dispatchKeySet, self, grads, momentum_buffer_list, weight_decay, momentum, lr, dampening, nesterov, maximize, is_first_step, grad_scale, found_inf, out); + } + + // aten::_fused_sgd(Tensor[] self, Tensor[] grads, Tensor[] momentum_buffer_list, *, float weight_decay, float momentum, float lr, float dampening, bool nesterov, bool maximize, bool is_first_step, Tensor? grad_scale=None, Tensor? found_inf=None) -> (Tensor[] self_out, Tensor[] grads_out, Tensor[] momentum_buffer_list_out) + inline ::std::tuple<::std::vector,::std::vector,::std::vector> _fused_sgd(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList grads, at::TensorList momentum_buffer_list, double weight_decay, double momentum, double lr, double dampening, bool nesterov, bool maximize, bool is_first_step, const c10::optional & grad_scale={}, const c10::optional & found_inf={}) { + return at::_ops::_fused_sgd::redispatch(dispatchKeySet, self, grads, momentum_buffer_list, weight_decay, momentum, lr, dampening, nesterov, maximize, is_first_step, grad_scale, found_inf); + } + + // aten::_fused_sgd.tensor_lr_out(Tensor[] self, Tensor(b!)[] grads, Tensor(c!)[] momentum_buffer_list, *, float weight_decay, float momentum, Tensor lr, float dampening, bool nesterov, bool maximize, bool is_first_step, Tensor? grad_scale=None, Tensor? found_inf=None, Tensor(a!)[] out) -> () + inline void _fused_sgd_out(c10::DispatchKeySet dispatchKeySet, at::TensorList out, at::TensorList self, at::TensorList grads, at::TensorList momentum_buffer_list, double weight_decay, double momentum, const at::Tensor & lr, double dampening, bool nesterov, bool maximize, bool is_first_step, const c10::optional & grad_scale={}, const c10::optional & found_inf={}) { + return at::_ops::_fused_sgd_tensor_lr_out::redispatch(dispatchKeySet, self, grads, momentum_buffer_list, weight_decay, momentum, lr, dampening, nesterov, maximize, is_first_step, grad_scale, found_inf, out); + } + + // aten::_fused_sgd.tensor_lr_out(Tensor[] self, Tensor(b!)[] grads, Tensor(c!)[] momentum_buffer_list, *, float weight_decay, float momentum, Tensor lr, float dampening, bool nesterov, bool maximize, bool is_first_step, Tensor? grad_scale=None, Tensor? found_inf=None, Tensor(a!)[] out) -> () + inline void _fused_sgd_outf(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList grads, at::TensorList momentum_buffer_list, double weight_decay, double momentum, const at::Tensor & lr, double dampening, bool nesterov, bool maximize, bool is_first_step, const c10::optional & grad_scale, const c10::optional & found_inf, at::TensorList out) { + return at::_ops::_fused_sgd_tensor_lr_out::redispatch(dispatchKeySet, self, grads, momentum_buffer_list, weight_decay, momentum, lr, dampening, nesterov, maximize, is_first_step, grad_scale, found_inf, out); + } + + // aten::_fused_sgd.tensor_lr(Tensor[] self, Tensor[] grads, Tensor[] momentum_buffer_list, *, float weight_decay, float momentum, Tensor lr, float dampening, bool nesterov, bool maximize, bool is_first_step, Tensor? grad_scale=None, Tensor? found_inf=None) -> (Tensor[] self_out, Tensor[] grads_out, Tensor[] momentum_buffer_list_out) + inline ::std::tuple<::std::vector,::std::vector,::std::vector> _fused_sgd(c10::DispatchKeySet dispatchKeySet, at::TensorList self, at::TensorList grads, at::TensorList momentum_buffer_list, double weight_decay, double momentum, const at::Tensor & lr, double dampening, bool nesterov, bool maximize, bool is_first_step, const c10::optional & grad_scale={}, const c10::optional & found_inf={}) { + return at::_ops::_fused_sgd_tensor_lr::redispatch(dispatchKeySet, self, grads, momentum_buffer_list, weight_decay, momentum, lr, dampening, nesterov, maximize, is_first_step, grad_scale, found_inf); + } +} // namespace redispatch + +} diff --git a/shared/package-files/0a/0a585898447eb9787af32accfb5d2848c77e80341bff8c62c4b634cde20deec0/npytypes.pyi b/shared/package-files/0a/0a585898447eb9787af32accfb5d2848c77e80341bff8c62c4b634cde20deec0/npytypes.pyi new file mode 100644 index 0000000000000000000000000000000000000000..0f36f202677a71b017b26f272d27dea501a6404c --- /dev/null +++ b/shared/package-files/0a/0a585898447eb9787af32accfb5d2848c77e80341bff8c62c4b634cde20deec0/npytypes.pyi @@ -0,0 +1,298 @@ +import functools +from collections.abc import Iterable as _PyIterable +from typing import Any, Generic, NamedTuple, TypeAlias, overload +from typing import Literal as _PyLiteral + +import numpy as np +from _typeshed import Unused +from typing_extensions import NotRequired, TypedDict, TypeVar, override + +from .abstract import DTypeSpec, IteratorType, MutableSequence, Number, Type, _SpecSlice +from .common import Buffer, Opaque, SimpleIteratorType, _Layout +from .containers import Tuple, UniTuple + +### + +class _RecordFieldDict(TypedDict): + type: Type + offset: int + alignment: NotRequired[int | None] + title: NotRequired[str | None] + +_ToFields: TypeAlias = _PyIterable[tuple[str, _RecordFieldDict]] +_IndexKind: TypeAlias = _PyLiteral["flat", "indexed", "0d", "scalar"] + +_TypeT = TypeVar("_TypeT", bound=Type) +_TypeT_co = TypeVar("_TypeT_co", bound=Type, default=Type, covariant=True) +_ArrayTypeT_co = TypeVar("_ArrayTypeT_co", bound=Array, default=Array, covariant=True) +_ShapeT_co = TypeVar( + "_ShapeT_co", + bound=tuple[int, ...], + default=tuple[Any, ...], + covariant=True, +) + +### +# ruff: noqa: PLR2044 + +class CharSeq(Type): + mutable: bool = True + + count: int + + def __init__(self, count: int) -> None: ... + + # + @property + @override + def key(self) -> int: ... + +class UnicodeCharSeq(Type): + mutable: bool = True + + count: int + + def __init__(self, count: int) -> None: ... + + # + @property + @override + def key(self) -> int: ... + +class _RecordField(NamedTuple): + type: Type + offset: int + alignment: int | None + title: str | None + +class Record(Type): + mutable: bool = True + + fields: dict[str, _RecordField] + size: int + aligned: bool + bitwidth: int + + @classmethod + def make_c_struct( + cls, + name_types: _PyIterable[tuple[str, Number | NestedArray]], + ) -> Record: ... + + # + def __init__(self, fields: _ToFields, size: int, aligned: bool) -> None: ... + + # + @property + @override + def key(self) -> str: ... + + # + def __len__(self) -> int: ... + def offset(self, key: str) -> int: ... + def typeof(self, key: str) -> Type: ... + def alignof(self, key: str) -> int | None: ... + def has_titles(self) -> bool: ... + def is_title(self, key: str) -> bool: ... + + # + @property + def members(self) -> list[tuple[str, Type]]: ... + @property + def dtype(self) -> np.dtype[np.void]: ... + +class DType(DTypeSpec, Opaque, Generic[_TypeT_co]): + _dtype: _TypeT_co + + def __init__(self, dtype: _TypeT_co) -> None: ... + + # + @override + def __getitem__( + self, + arg: _SpecSlice | tuple[_SpecSlice, ...] | list[_SpecSlice], + ) -> Array[_TypeT_co]: ... + + # + @property + @override + def dtype(self) -> _TypeT_co: ... + @property + @override + def key(self) -> _TypeT_co: ... + +class NumpyFlatType( + SimpleIteratorType[_TypeT_co], + MutableSequence[_TypeT_co], + Generic[_TypeT_co], +): + array_type: Array[_TypeT_co] + dtype: _TypeT_co + + def __init__(self, arrty: Array[_TypeT_co]) -> None: ... + + # + @property + @override + def key(self) -> Array[_TypeT_co]: ... + +class NumpyNdEnumerateType(SimpleIteratorType[Tuple], Generic[_ArrayTypeT_co]): + array_type: _ArrayTypeT_co + + def __init__(self, arrty: _ArrayTypeT_co) -> None: ... + + # + @property + @override + def key(self) -> _ArrayTypeT_co: ... + +class NumpyNdIterType(IteratorType): + arrays: tuple[Array | Number, ...] + layout: _PyLiteral["F", "C"] + dtypes: tuple[Type, ...] + ndim: int + + def __init__(self, arrays: _PyIterable[Array | Number]) -> None: ... + + # + @property + @override + def key(self) -> tuple[Array | Number, ...]: ... + @property + @override + def yield_type(self) -> Type: ... + @property + def views(self) -> list[Array]: ... + + # + @functools.cached_property + def indexers(self) -> list[tuple[_IndexKind, int, int, list[int]]]: ... + @functools.cached_property + def need_shaped_indexing(self) -> bool: ... + +class NumpyNdIndexType(SimpleIteratorType[UniTuple]): + ndim: int + + def __init__(self, ndim: int) -> None: ... + + # + @property + @override + def key(self) -> int: ... + +class Array(Buffer, Generic[_TypeT_co]): + @overload + def __init__( + self: Array[_TypeT], + dtype: NestedArray[_TypeT, Any], + ndim: int, + layout: _Layout, + readonly: bool = False, + name: str | None = None, + aligned: bool = True, + ) -> None: ... + @overload + def __init__( + self, + dtype: _TypeT_co, + ndim: int, + layout: _Layout, + readonly: bool = False, + name: str | None = None, + aligned: bool = True, + ) -> None: ... + + # + @override + @overload + def copy( # pyrefly:ignore[bad-override] + self, + dtype: None = None, + ndim: int | None = None, + layout: _Layout | None = None, + readonly: bool | None = None, + ) -> Array[_TypeT_co]: ... + @overload + def copy( + self, + dtype: _TypeT, + ndim: int | None = None, + layout: _Layout | None = None, + readonly: bool | None = None, + ) -> Array[_TypeT]: ... + + # + @functools.cached_property + @override + def dtype(self) -> _TypeT_co: ... + @property + @override + def key(self) -> tuple[_TypeT_co, int, _Layout, bool, bool]: ... # pyrefly:ignore[bad-override] + @property + def box_type(self) -> type[np.ndarray[tuple[Any, ...], np.dtype[Any]]]: ... + +class ArrayCTypes(Type, Generic[_TypeT_co]): + dtype: _TypeT_co + ndim: int + + def __init__(self, arytype: Array[_TypeT_co]) -> None: ... + + # + @property + @override + def key(self) -> tuple[_TypeT_co, int]: ... + +class ArrayFlags(Type, Generic[_ArrayTypeT_co]): + array_type: _ArrayTypeT_co + + def __init__(self, arytype: _ArrayTypeT_co) -> None: ... + + # + @property + @override + def key(self) -> _ArrayTypeT_co: ... + +class NestedArray(Array[_TypeT_co], Generic[_TypeT_co, _ShapeT_co]): + _shape: _ShapeT_co + + @overload + def __init__( + self: NestedArray[_TypeT], + dtype: NestedArray[_TypeT, Any], + shape: tuple[int, ...], + ) -> None: ... + @overload + def __init__(self, dtype: _TypeT_co, shape: _ShapeT_co) -> None: ... + + # + @property + def shape(self) -> _ShapeT_co: ... + @property + def nitems(self) -> int: ... + @property + def size(self) -> int: ... + @property + def strides(self) -> tuple[int, ...]: ... + @property + @override + def key(self) -> tuple[_TypeT_co, _ShapeT_co]: ... # pyrefly:ignore[bad-override] + +class NumPyRandomBitGeneratorType(Type): + def __init__(self, name: Unused, /) -> None: ... + +class NumPyRandomGeneratorType(Type): + def __init__(self, name: Unused, /) -> None: ... + +class PolynomialType(Type): + coef: Array + domain: Array | None + window: Array | None + n_args: int + + def __init__( + self, + coef: Array, + domain: Array | None = None, + window: Array | None = None, + n_args: int = 1, + ) -> None: ... diff --git a/shared/package-files/0a/0a5998351d51acf5de3312147f775362421505082f4adccd0dbbb920ae7e3090/config.py b/shared/package-files/0a/0a5998351d51acf5de3312147f775362421505082f4adccd0dbbb920ae7e3090/config.py new file mode 100644 index 0000000000000000000000000000000000000000..2a8d9546f4fd7553bf78197226086f01d6ffbc8f --- /dev/null +++ b/shared/package-files/0a/0a5998351d51acf5de3312147f775362421505082f4adccd0dbbb920ae7e3090/config.py @@ -0,0 +1,752 @@ +import os # noqa: C101 +import sys +from typing import Any, Callable, Dict, Optional, TYPE_CHECKING + +import torch + + +def is_fbcode(): + return not hasattr(torch.version, "git_version") + + +# add some debug printouts +debug = False + +# add inf and NaN checkers +debug_check_inf_and_nan = False + +# Whether to disable a progress bar for autotuning +disable_progress = True + +# Whether to enable printing the source code for each future +verbose_progress = False + +# use fx aot graph codegen cache +fx_graph_cache = os.environ.get("TORCHINDUCTOR_FX_GRAPH_CACHE") == "1" + +# use cpp wrapper instead of python wrapper +cpp_wrapper = os.environ.get("TORCHINDUCTOR_CPP_WRAPPER", "0") == "1" + +# codegen cpp wrapper code in an ABI compatible mode +abi_compatible = ( + os.environ.get("TORCHINDUCTOR_ABI_COMPATIBLE", "1" if is_fbcode() else "0") == "1" +) + +c_shim_version = os.environ.get( + "TORCHINDUCTOR_C_SHIM_VERSION", "1" if is_fbcode() else "2" +) + +# dead code elimination +dce = False + +# assume weight tensors are fixed size +static_weight_shapes = True + +# put correctness assertions in generated code +size_asserts = os.environ.get("TORCHINDUCTOR_SIZE_ASSERTS", "1") == "1" +nan_asserts = os.environ.get("TORCHINDUCTOR_NAN_ASSERTS") == "1" + +# enable loop reordering based on input orders +pick_loop_orders = True + +# reuse a kernel input as the output +inplace_buffers = True + +# reuse a buffer for an unrelated purpose +allow_buffer_reuse = True + +# Enable pooled allocations for non-output tensors +memory_planning = os.environ.get("TORCHINDUCTOR_MEMORY_PLANNING", "0") == "1" + +# How to organize memory under memory_planning=True: +# - "none": do not try to pool storage, just reuse +# - "intermediates": all non-outputs share storage, outputs each get unique storage +# - "outputs": two pools, one for intermediates (freed on return) and one for outputs +# - "combined": a single pool for both intermediates and outputs +memory_pool = os.environ.get("TORCHINDUCTOR_MEMORY_POOL", "intermediates") + +# codegen benchmark harness +benchmark_harness = True + +# fuse pointwise into templates +epilogue_fusion = True + +# do epilogue fusions before other fusions +epilogue_fusion_first = False + +# enable pattern match+replace optimizations +pattern_matcher = True + +# register custom graph optimization pass hook. so far, pre/post passes are +# only applied before/after pattern_matcher in post_grad_passes. +# +# def my_custom_pre_pass(graph: torch.fx.graph.Graph): +# # my custom graph optimization pass +# ... +# +# def my_custom_post_pass(graph: torch.fx.graph.Graph): +# # my custom graph optimization pass +# ... +# +# torch._inductor.config.post_grad_custom_pre_pass = my_custom_pre_pass +# torch._inductor.config.post_grad_custom_post_pass = my_custom_post_pass +post_grad_custom_pre_pass: Optional[Callable[[torch.fx.graph.Graph], None]] = None +post_grad_custom_post_pass: Optional[Callable[[torch.fx.graph.Graph], None]] = None + +# Registers a custom pregrad pass. Note that the pre-grad IR is 1. +# non-functional, 2. non-normalized, and 3. prone to change. Ideally we should +# use post-grad passes. +pre_grad_custom_pass: Optional[Callable[[torch.fx.graph.Graph], None]] = None + +# Optimize away split cat patterns (Experimental) +split_cat_fx_passes = True + +# Optimize conv-batchnorm if batchnorm is in eval mode. Slightly reduces numerical stability. +efficient_conv_bn_eval_fx_passes = False + +# Enable predispatch aten IR for export +is_predispatch = False + +# Deprecated +group_fusion = False + +# Deprecated +batch_fusion = True + +# Pre grad group/batch fusion and options in order, set to empty dict to disable fusion. +# Call `torch._inductor.fx_passes.group_batch_fusion.list_group_batch_fusions()` to see available fusions. +pre_grad_fusion_options: Dict[str, Dict[str, Any]] = { + "batch_linear": {}, + "batch_linear_lhs": {}, + "batch_layernorm": {}, + "batch_tanh": {}, + "batch_relu": {}, + "batch_sigmoid": {}, +} + +# Post grad group/batch fusion and options, set to empty dict to disable fusion. +# Call `torch._inductor.fx_passes.group_batch_fusion.list_group_batch_fusions(False)` to see available fusions. +post_grad_fusion_options: Dict[str, Dict[str, Any]] = {} + +# enable reordering pass for improving memory locality +reorder_for_locality = True + +# Scale down RBLOCK for better occupancy +dynamic_scale_rblock = os.environ.get("TORCHINDUCTOR_DYNAMIC_SCALE_RBLOCK", "1") == "1" + +# this forces fusion for int_mm with mul. Needed when you want to avoid realizing the int32 +# but the mul gets fused with other pointwise ops instead. +force_fuse_int_mm_with_mul = False + +# for pattern torch.mm(a, b.to(dtype)) with cuda tensors, +# enable torch._inductor.kernel.mm.tuned_mixed_mm fused kernel. +# Autotune will compare perf with normal cast->then->mm option +use_mixed_mm = False + +# enable runtime numeric check for pre/post grad fx passes +# floating point provides limited accuracy (about 7 decimal digits for single precision +# floating point numbers,about 16 decimal digits for double precision floating point numbers) +# according to PyTorch documentation. +# https://pytorch.org/docs/stable/notes/numerical_accuracy.html#batched-computations-or-slice-computations +fx_passes_numeric_check: Dict[str, Any] = { + "pre_grad": False, + "precision": 1e-4, + "num_iterations": 1, + "requires_optimizer": True, +} + +# for pattern torch.mm(a, b.to(dtype)) with cuda tensors, always use +# torch._inductor.kernel.mm.tuned_mixed_mm's fused kernel. +# Autotune will not compare with normal cast->then->mm option. +# (if force_mixed_mm is true, the use_mixed_mm flag will be ignored) +force_mixed_mm = False + +# enable reordering pass for increasing overlap between compute and communication +reorder_for_compute_comm_overlap = False + +# passes (in execution order) for increasing overlap between compute and communication +# for built-in passes, use string name; for user-defined passes, pass in the function handle +reorder_for_compute_comm_overlap_passes = [ + "reorder_compute_for_overlap", + "sink_waits", + "raise_comms", +] + +# runtime estimation function for ops +# for built-in estimation function, pass in "default"; for user-defined estimation function, pass in the function handle +estimate_op_runtime = "default" + +# unit: GB/s, uni-directional P2P bandwidth per card +# default value is NVLink +intra_node_bw = 300 + +# unit: GB/s, uni-directional P2P bandwidth per node +# default value is InfiniBand +inter_node_bw = 25 + +# enable slow autotuning passes to select algorithms +max_autotune = os.environ.get("TORCHINDUCTOR_MAX_AUTOTUNE") == "1" + +# enable slow autotuning passes to select pointwise/reductions algorithms +max_autotune_pointwise = os.environ.get("TORCHINDUCTOR_MAX_AUTOTUNE_POINTWISE") == "1" + +# enable slow autotuning passes to select gemm algorithms +max_autotune_gemm = os.environ.get("TORCHINDUCTOR_MAX_AUTOTUNE_GEMM") == "1" + +# enable autotune local cache +use_autotune_local_cache = True + +# enable autotune remote cache +use_autotune_remote_cache = ( + os.environ.get("TORCH_INDUCTOR_AUTOTUNE_REMOTE_CACHE") == "1" +) + +# force cublas and triton to use the same precision; cublas supports TF32 for matmul operations +# when m, n, k are multiples of 16, 16, 8, whereas triton supports TF32 for matmul operations +# for any combinations of m, n, k, regardless of their alignment. setting this flag will ensure +# that triton does not use TF32 wherever cublas would not use TF32 +force_same_precision = ( + True if is_fbcode() else os.environ.get("TORCHINDUCTOR_FORCE_SAME_PRECISION") == "1" +) +# Specify candidate backends for gemm autotune. +# Possible choices are combinations of: ATen, Triton, CUTLASS. +# ATen: default Pytorch ATen kernels. +# Triton: Triton templates defined in torch inductor. +# CUTLASS: Cutlass templates and kernels. +max_autotune_gemm_backends = os.environ.get( + "TORCHINDUCTOR_MAX_AUTOTUNE_GEMM_BACKENDS", "ATEN,TRITON" +).upper() + +# the value used as a fallback for the unbacked SymInts +# that can appear in the input shapes (e.g., in autotuning) +unbacked_symint_fallback = 8192 + +# enable searching global and local cache regardless of `max_autotune` +search_autotune_cache = os.environ.get("TORCHINDUCTOR_SEARCH_AUTOTUNE_CACHE") == "1" + +save_args = os.environ.get("TORCHINDUCTOR_SAVE_ARGS") == "1" + +# We will disable creating subprocess for autotuning if this is False +autotune_in_subproc = os.environ.get("TORCHINDUCTOR_AUTOTUNE_IN_SUBPROC") == "1" + +# If autotuning in subprocess, whether to use multiple devices +autotune_multi_device = os.environ.get("TORCHINDUCTOR_AUTOTUNE_MULTI_DEVICE") == "1" + +coordinate_descent_tuning = ( + os.environ.get("TORCHINDUCTOR_COORDINATE_DESCENT_TUNING") == "1" +) +coordinate_descent_check_all_directions = ( + os.environ.get("TORCHINDUCTOR_COORDINATE_DESCENT_CHECK_ALL_DIRECTIONS") == "1" +) +coordinate_descent_search_radius = int( + os.environ.get("TORCHINDUCTOR_COORDINATE_DESCENT_RADIUS", "1") +) + +# Disabled by default on ROCm, opt-in if model utilises NHWC convolutions +layout_opt_default = "1" if not torch.version.hip else "0" +layout_optimization = ( + os.environ.get("TORCHINDUCTOR_LAYOUT_OPTIMIZATION", layout_opt_default) == "1" +) + +force_layout_optimization = os.environ.get("TORCHINDUCTOR_FORCE_LAYOUT_OPT", "0") == "1" + + +# Whether to keep the output strides the same as eager after layout optimization. +keep_output_stride = os.environ.get("TORCHINDUCTOR_KEEP_OUTPUT_STRIDE", "1") == "1" + +# Enabling this will let compiler print warning messages if a generated triton +# kernel has inputs with mixed layouts. This is helpful for perf debugging +# since kernel with mixed layout inputs may run much slower then one whose inputs +# have uniform layouts. +warn_mix_layout = os.environ.get("TORCHINDUCTOR_WARN_MIX_LAYOUT") == "1" + +# control store vs recompute heuristic +# For fanouts, rematerialization can lead to exponential blowup. So, have +# smaller threshold +realize_reads_threshold = 4 +realize_opcount_threshold = 30 + +# Threshold to prevent excessive accumulation of ops in one buffer during lowering +realize_acc_reads_threshold = 8 + +# fallback to eager for random/dropout, this is slow but useful for debugging +fallback_random = False + +# automatically create fallbacks when encountering an unhandled op +implicit_fallbacks = True + +# fuse even in cases without common reads +aggressive_fusion = False + +# For each fused kernel in the wrapper, comment with the nodes that get fused. +# Useful for debugging fusion. +debug_fusion = os.environ.get("TORCHINDUCTOR_DEBUG_FUSION") == "1" +benchmark_fusion = os.environ.get("TORCHINDUCTOR_BENCHMARK_FUSION") == "1" +enabled_metric_tables = os.environ.get("TORCHINDUCTOR_ENABLED_METRIC_TABLES", "") + +# how many nodes to allow into a single fusion +max_fusion_size = 64 + +# max number of inputs to generate cat as a pointwise op with masked laods +max_pointwise_cat_inputs = 8 + +# replace small reductions with pointwise, disable with `= 1` +unroll_reductions_threshold = 8 + +# Add extra comments to output code (causes compile cache misses) +comment_origin = False + +# Convert 1x1 convs into matmuls +conv_1x1_as_mm = False + +# Enable split reductions for better utilization when the dimension +# being reduced over is large (by splitting it) +split_reductions = True + +benchmark_kernel = os.environ.get("TORCHINDUCTOR_BENCHMARK_KERNEL", "0") == "1" + +# Enable constant and index_expr folding +constant_and_index_propagation = True + +# we always add constants into graph.constants without +# performing any constant-inlining optimization +always_keep_tensor_constants = False + +# assert that indirect indexing does not read / write out of bounds +assert_indirect_indexing = True + +# constant folding on the joint graph +joint_graph_constant_folding = True + +# Enable indirect_indexing asserts for decompositions and lowerings +debug_index_asserts = False + +# warnings intended for PyTorch developers, disable for point releases +is_nightly_or_source = "dev" in torch.__version__ or "git" in torch.__version__ +developer_warnings = is_fbcode() or is_nightly_or_source + +# The multiprocessing start method to use for inductor workers in the codecache. +# TODO: fork is not safe in a multithreaded environment, we should evaluate changing +# the default to spawn. +worker_start_method = "fork" + + +def decide_compile_threads(): + """ + Here are the precedence to decide compile_threads + 1. User can override it by TORCHINDUCTOR_COMPILE_THREADS. One may want to disable async compiling by + setting this to 1 to make pdb happy. + 2. Set to 1 if it's win32 platform or it's a fbcode build + 3. decide by the number of CPU cores + """ + if "TORCHINDUCTOR_COMPILE_THREADS" in os.environ: + return int(os.environ["TORCHINDUCTOR_COMPILE_THREADS"]) + elif sys.platform == "win32" or is_fbcode(): + return 1 + else: + cpu_count = ( + len(os.sched_getaffinity(0)) + if hasattr(os, "sched_getaffinity") + else os.cpu_count() + ) + assert cpu_count + return min(32, cpu_count) + + +compile_threads = decide_compile_threads() + +# gemm autotuning global cache dir +if is_fbcode(): + from libfb.py import parutil + + try: + if __package__: + global_cache_dir = parutil.get_dir_path( + os.path.join(__package__.replace(".", os.sep), "fb/cache") + ) + else: + global_cache_dir = parutil.get_dir_path("fb/cache") + except ValueError: + global_cache_dir = None +else: + global_cache_dir = None + +# If kernel is fused, the name is generated from the origin node op names +# for larger kernels limit this +kernel_name_max_ops = 10 + +# Pad input tensors of matmul/bmm/addmm to leverage Tensor Cores in NVIDIA GPUs +shape_padding = os.environ.get("TORCHINDUCTOR_SHAPE_PADDING", "1") == "1" + +# Fx-based linear/matmul/bmm + permute/transpose vertical fusion +permute_fusion = os.environ.get("TORCHINDUCTOR_PERMUTE_FUSION", "0") == "1" + +# Mark the wrapper call in PyTorch profiler +profiler_mark_wrapper_call = False + +# Generate hook calls to torch._inductor.hooks.run_intermediate_hooks for +# every intermediate for which we can correlate it with an intermediate +# from the original FX graph +generate_intermediate_hooks = False + +# Populate traceback field on IRNode; good for debugging why origin_node is +# not populated, or finding out where an IRNode was constructed +debug_ir_traceback = False + +# used for debugging to make sure config is properly set +_raise_error_for_testing = False + +_profile_var = os.environ.get("TORCHINDUCTOR_PROFILE", "") +profile_bandwidth = _profile_var != "" +profile_bandwidth_regex = "" if _profile_var == "1" else _profile_var +# Specify a file where we print out the profiling results. +# None means we do not dump results to a file. +profile_bandwidth_output = os.environ.get("TORCHINDUCTOR_PROFILE_OUTPUT", None) + +# TODO: remove later +disable_cpp_codegen = False + + +# Freezing will attempt to inline weights as constants in optimization +# and run constant folding and other optimizations on them. After freezing, weights +# can no longer be updated. +freezing: bool = os.environ.get("TORCHINDUCTOR_FREEZING", "0") == "1" + +# Make freezing invalidate the eager Parameters of nn modules, to avoid memory overhead +# of potentially keeping multiple copies of weights. +freezing_discard_parameters: bool = False + +# Kill switch for allowing temporary tensors to be allocated as stack arrays. Tests +# should be run with this flag both on and off to make sure we have coverage. +allow_stack_allocation: bool = ( + os.environ.get("TORCHINDUCTOR_STACK_ALLOCATION", "1") == "1" +) + +# Enables an alternate DSO interface (the "minimal ArrayRef interface") intended +# to maximize performance for use cases that it can accommodate at the expense of +# generality. In brief: +# - inputs and outputs are ArrayRefTensor (note that strides are required, but the +# tensor must be contiguous) +# - constant handling is unchanged because it is not a per-inference-iteration bottleneck +# +# When the DSO is generated in this mode, the usual interface will also be supported, +# but performance for that interface may be degraded. +use_minimal_arrayref_interface: bool = False + +# decompose some memory bound matmul/bmm to mul +decompose_mem_bound_mm: bool = False + + +# config specific to codegen/cpp.py +class cpp: + # set to torch.get_num_threads() + threads = -1 + + # Do not generate loops when the condition doesn't hold, like: + # for(long i0=4096; i0<4096; i0+=1) + no_redundant_loops = True + + # Assume number of threads is dynamic, don't specialize thread number. + # Kernels don't recompile on thread number changes with this flag on. + # For single-threaded workload, turning it on would incur a slight + # performance degradation. + dynamic_threads = False + + simdlen: Optional[int] = None + min_chunk_size = 4096 + cxx = ( + None, # download gcc12 from conda-forge if conda is installed + # "g++-12", + # "g++-11", + # "g++-10", + # "clang++", + os.environ.get("CXX", "clang++" if sys.platform == "darwin" else "g++"), + # "g++.par", + ) + # Allow kernel performance profiling via PyTorch profiler + enable_kernel_profile = False + + # enable weight prepacking to get a better performance; may lead to large memory footprint + weight_prepack = True + + # Inject a bug into our relu implementation; useful for testing our repro + # extraction and minification functionality. + # Valid values: "compile_error", "runtime_error", "accuracy" + inject_relu_bug_TESTING_ONLY: Optional[str] = None + inject_log1p_bug_TESTING_ONLY: Optional[str] = None + + # If None, autodetect whether or not AVX512/AVX2 can be used. Otherwise, + # force usage as specified, without testing. + vec_isa_ok: Optional[bool] = None + + # similar to config.triton.descriptive_names + descriptive_names = "original_aten" + + # how many nodes to allow into a single horizontal fusion + max_horizontal_fusion_size = 16 + + # Make scatter_reduce fallback when reduce is sum to avoid performance regression + # using atomic_add. + fallback_scatter_reduce_sum = True + + # Use funsafe-math-optimizations when compiling + enable_unsafe_math_opt_flag = False + + # Use ffp-contract when compiling + enable_floating_point_contract_flag = False + + +# config specific to codegen/triton.py +class triton: + # Use cudagraphs on output code + cudagraphs = False + + # Use cudagraph trees for memory pooling if `cudagraphs` is True + cudagraph_trees = True + + # assertions not on the fast path, steady state + slow_path_cudagraph_asserts = True + + # TODO - need to debug why this prevents cleanup + cudagraph_trees_history_recording = False + + # assertions on the fast path + fast_path_cudagraph_asserts = False + + # skip warmup for cudagraph trees + skip_cudagraph_warmup = False + + # Synchronize before and after every compiled graph. + debug_sync_graph = False + + # Synchronize after every kernel launch, to help pinpoint bugs + debug_sync_kernel = False + + # Always load full blocks (rather than broadcasting inside the block) + dense_indexing = False + + # limit tiling dimensions + max_tiles = 2 + + # use triton.autotune for pointwise ops with complex layouts + # this should only be disabled for debugging/testing + autotune_pointwise = True + + # max autotune gemm with cublasLt + autotune_cublasLt = True + + # should we stop a fusion to allow better tiling? + tiling_prevents_pointwise_fusion = True + tiling_prevents_reduction_fusion = True + + # should we give different names to kernels + # Note: This is orthogonal to descriptive_names - this is deciding whether + # our triton kernel names should all be `triton_` (to maximize caching) or + # whether they should be unique. + unique_kernel_names = os.environ.get("TORCHINDUCTOR_UNIQUE_KERNEL_NAMES") == "1" + + # should we put op names in kernel names + # False: No special names (just triton__1, triton__2, etc.) + # "torch": Maps to the fx op in the Dynamo graph (module name, method name, etc.) + # "original_aten": Maps to the highest-level aten op (i.e. pre-decompositions) + # "inductor_node": Maps to the node name in the FX graph passed to Inductor + descriptive_names = "original_aten" + + # use alternate codegen for smaller reductions + persistent_reductions = ( + os.environ.get("TORCHINDUCTOR_PERSISTENT_REDUCTIONS", "1") == "1" + ) + + # 0/False: disable + # 1/True: enable, use tuning to pick between different subkernels + # 2: enable, force using persistent reduction (for debugging) + # 3: enable, force using non-persistent reduction (for debugging) + multi_kernel = int(os.environ.get("TORCHINDUCTOR_MULTI_KERNEL", "0")) + + # hint to Triton when arguments are divisible by 16 + divisible_by_16 = True + + # theses are not enforced, but they are used by asserts in triton_heuristics.py + # NOTE: mobilevit_s in timm_models required X to be set to the higher value 2048 + + # Max RBLOCK will be large for multi-kernel since we do more aggressive + # persistent reduction. + max_block = { + "X": 2048, + "Y": 1024, + "Z": 1024, + "R": 4096 * (16 if multi_kernel else 1), + } + + # Minimum RBLOCK to be used for a TritonSplitScanKernel + # NOTE: This also indirectly controls the size of workspace buffer required + min_split_scan_rblock = 256 + + # Store the generated cubin files for cpp wrapper code to load + store_cubin = False + + # the max number of spills we allow for the configs we benchmark. + # Setting this to 0 means we skip a config if it spills even a single + # register. + # Setting it to a larger value allows a config spilling a small amount + # of registers being benchmarked. + # + # NOTE: triton will always report >0 register spills for kernels using sin/cos. + # (check this issue https://github.com/openai/triton/issues/1756 ) + # So far we see a fixed 8 spilled registers for kernels using sin/cos. + # Raise the threshold to 16 to be safe. + # We should revisit this once we understand more of the source of register spills. + spill_threshold: int = 16 + + # Generate code containing the newer tl.make_block_ptr() API for loads/store + use_block_ptr = False + + # Inject a bug into our relu implementation; useful for testing our repro + # extraction and minification functionality. + # Valid values: "compile_error", "runtime_error", "accuracy" + inject_relu_bug_TESTING_ONLY: Optional[str] = None + + +class aot_inductor: + # AOTInductor output path + # If an absolute path is specified, the generated lib files will be stored under the directory; + # If a relative path is specified, it will be used as a subdirectory under the default caching path; + # If not specified, a temp directory will be created under the default caching path. + # If the specified path contains something like "model.so", the sub-string will be used + # to name the generated library. + output_path = "" + + debug_compile = os.environ.get("AOT_INDUCTOR_DEBUG_COMPILE", "0") == "1" + + # Serialized tree spec for flattening inputs + serialized_in_spec = "" + + # Serialized tree spec for flattening outputs + serialized_out_spec = "" + + # flag to decide whether to create a submodule for constant graph. + use_runtime_constant_folding: bool = False + + +class cuda: + # CUDA arch to use for CUDA template kernel compilation. + # e.g. "70", "75", "80", "90", etc. + # When arch is None, Inductor uses torch.cuda.get_device_capability(0). + arch: Optional[str] = None + + # CUDA version to use for CUDA template kernel compilation. + # e.g. "11.4", "12.1", etc. + # When version is None, Inductor uses torch.version.cuda. + version: Optional[str] = None + + # Optimization level for the host compiler. + compile_opt_level = "-O1" + + # Whether to enable device LTO (link-time-optimization). + enable_cuda_lto = False + + # Whether to keep intermediate files dring compilation. + enable_ptxas_info = False + + # Whether to enable debug info, e.g. line number, cutlass debug info. + enable_debug_info = False + + # Whether to use fast math. + use_fast_math = False + + # Path to the CUTLASS repo root directory. + # The default path only works under PyTorch local development environment. + cutlass_dir = os.environ.get( + "TORCHINDUCTOR_CUTLASS_DIR", + os.path.abspath( + os.path.join(os.path.dirname(torch.__file__), "../third_party/cutlass/") + ), + ) + + # Configures the maximum number of CUTLASS configs to profile in max_autotune. + # By default it's None, so that all CUTLASS configs are tuned. + # This is mainly used to reduce test time in CI. + cutlass_max_profiling_configs: Optional[int] = None + + # Path to CUDA NVCC. + # NVCC search order: + # 1) cuda_cxx set in this config + # 2)CUDACXX environment variable + # 3)CUDA_HOME environment variable + # 4) default system search PATH. + cuda_cxx: Optional[str] = None + + # If set to True, it will ensure that only GEMM ops capable of + # epilogue fusion via CUTLASS Epilogue Visitor Trees ( EVT ) + # are enabled for the CUTLASS backend. + cutlass_only_evt_capable_ops: bool = False + + +# create a directory containing lots of debug information +class trace: + # master switch for all debugging flags below + enabled = os.environ.get("TORCH_COMPILE_DEBUG", "0") == "1" + + # Save debug information to a temporary directory + # If not specified, a temp directory will be created by system + debug_dir: Optional[str] = None + + # Save python logger call >=logging.DEBUG + debug_log = False + + # Save python logger call >=logging.INFO + info_log = False + + # Save input FX graph (post decomps, pre optimization) + fx_graph = True + + # Save FX graph after transformations + fx_graph_transformed = True + + # Save TorchInductor IR before fusion pass + ir_pre_fusion = True + + # Save TorchInductor IR after fusion pass + ir_post_fusion = True + + # Copy generated code to trace dir + output_code = True + + # SVG figure showing post-fusion graph + graph_diagram = os.environ.get("INDUCTOR_POST_FUSION_SVG", "0") == "1" + + # SVG figure showing fx with fusion + draw_orig_fx_graph = os.environ.get("INDUCTOR_ORIG_FX_SVG", "0") == "1" + + # We draw our fx graphs with the "record" shape attribute by default. + # Sometimes, when the graph is very complex, we may hit dot errors like below: + # "flat edge between adjacent nodes one of which has a record shape - + # replace records with HTML-like labels" + # and thus fail to generate a graph. So, let's give the user an option + # to specify the shape attribute for the dot graph. For example, passing + # INDUCTOR_DOT_GRAPH_SHAPE_SVG = "none" would let us generate HTML-like lables + # to workaround the above failure. + dot_graph_shape = os.environ.get("INDUCTOR_DOT_GRAPH_SHAPE_SVG", None) + + # Store cProfile (see snakeviz to view) + compile_profile = False + + # Upload the .tar.gz file + # Needs to be overriden based on specific environment needs + upload_tar: Optional[Callable[[str], None]] = None + + log_autotuning_results: bool = False + + +_save_config_ignore = { + # workaround: "Can't pickle " + "trace.upload_tar", +} + +if TYPE_CHECKING: + from torch.utils._config_typing import * # noqa: F401, F403 + +from torch.utils._config_module import install_config_module + +# adds patch, save_config, etc +install_config_module(sys.modules[__name__]) diff --git a/shared/package-files/0a/0a5a45dbc844dd928b53dd10d6770fc3a9a564efc6bf60539604e1068dc0cea1/test_export.py b/shared/package-files/0a/0a5a45dbc844dd928b53dd10d6770fc3a9a564efc6bf60539604e1068dc0cea1/test_export.py new file mode 100644 index 0000000000000000000000000000000000000000..d05e657072b170901d880b74757d1483b38049f1 --- /dev/null +++ b/shared/package-files/0a/0a5a45dbc844dd928b53dd10d6770fc3a9a564efc6bf60539604e1068dc0cea1/test_export.py @@ -0,0 +1,630 @@ +""" +Testing for export functions of decision trees (sklearn.tree.export). +""" + +from io import StringIO +from re import finditer, search +from textwrap import dedent + +import numpy as np +import pytest +from numpy.random import RandomState + +from sklearn.base import is_classifier +from sklearn.ensemble import GradientBoostingClassifier +from sklearn.exceptions import NotFittedError +from sklearn.tree import ( + DecisionTreeClassifier, + DecisionTreeRegressor, + export_graphviz, + export_text, + plot_tree, +) + +# toy sample +X = [[-2, -1], [-1, -1], [-1, -2], [1, 1], [1, 2], [2, 1]] +y = [-1, -1, -1, 1, 1, 1] +y2 = [[-1, 1], [-1, 1], [-1, 1], [1, 2], [1, 2], [1, 3]] +w = [1, 1, 1, 0.5, 0.5, 0.5] +y_degraded = [1, 1, 1, 1, 1, 1] + + +def test_graphviz_toy(): + # Check correctness of export_graphviz + clf = DecisionTreeClassifier( + max_depth=3, min_samples_split=2, criterion="gini", random_state=2 + ) + clf.fit(X, y) + + # Test export code + contents1 = export_graphviz(clf, out_file=None) + contents2 = ( + "digraph Tree {\n" + 'node [shape=box, fontname="helvetica"] ;\n' + 'edge [fontname="helvetica"] ;\n' + '0 [label="x[0] <= 0.0\\ngini = 0.5\\nsamples = 6\\n' + 'value = [3, 3]"] ;\n' + '1 [label="gini = 0.0\\nsamples = 3\\nvalue = [3, 0]"] ;\n' + "0 -> 1 [labeldistance=2.5, labelangle=45, " + 'headlabel="True"] ;\n' + '2 [label="gini = 0.0\\nsamples = 3\\nvalue = [0, 3]"] ;\n' + "0 -> 2 [labeldistance=2.5, labelangle=-45, " + 'headlabel="False"] ;\n' + "}" + ) + assert contents1 == contents2 + + # Test with feature_names + contents1 = export_graphviz( + clf, feature_names=["feature0", "feature1"], out_file=None + ) + contents2 = ( + "digraph Tree {\n" + 'node [shape=box, fontname="helvetica"] ;\n' + 'edge [fontname="helvetica"] ;\n' + '0 [label="feature0 <= 0.0\\ngini = 0.5\\nsamples = 6\\n' + 'value = [3, 3]"] ;\n' + '1 [label="gini = 0.0\\nsamples = 3\\nvalue = [3, 0]"] ;\n' + "0 -> 1 [labeldistance=2.5, labelangle=45, " + 'headlabel="True"] ;\n' + '2 [label="gini = 0.0\\nsamples = 3\\nvalue = [0, 3]"] ;\n' + "0 -> 2 [labeldistance=2.5, labelangle=-45, " + 'headlabel="False"] ;\n' + "}" + ) + + assert contents1 == contents2 + + # Test with feature_names (escaped) + contents1 = export_graphviz( + clf, feature_names=['feature"0"', 'feature"1"'], out_file=None + ) + contents2 = ( + "digraph Tree {\n" + 'node [shape=box, fontname="helvetica"] ;\n' + 'edge [fontname="helvetica"] ;\n' + '0 [label="feature\\"0\\" <= 0.0\\n' + "gini = 0.5\\nsamples = 6\\n" + 'value = [3, 3]"] ;\n' + '1 [label="gini = 0.0\\nsamples = 3\\nvalue = [3, 0]"] ;\n' + "0 -> 1 [labeldistance=2.5, labelangle=45, " + 'headlabel="True"] ;\n' + '2 [label="gini = 0.0\\nsamples = 3\\nvalue = [0, 3]"] ;\n' + "0 -> 2 [labeldistance=2.5, labelangle=-45, " + 'headlabel="False"] ;\n' + "}" + ) + + assert contents1 == contents2 + + # Test with class_names + contents1 = export_graphviz(clf, class_names=["yes", "no"], out_file=None) + contents2 = ( + "digraph Tree {\n" + 'node [shape=box, fontname="helvetica"] ;\n' + 'edge [fontname="helvetica"] ;\n' + '0 [label="x[0] <= 0.0\\ngini = 0.5\\nsamples = 6\\n' + 'value = [3, 3]\\nclass = yes"] ;\n' + '1 [label="gini = 0.0\\nsamples = 3\\nvalue = [3, 0]\\n' + 'class = yes"] ;\n' + "0 -> 1 [labeldistance=2.5, labelangle=45, " + 'headlabel="True"] ;\n' + '2 [label="gini = 0.0\\nsamples = 3\\nvalue = [0, 3]\\n' + 'class = no"] ;\n' + "0 -> 2 [labeldistance=2.5, labelangle=-45, " + 'headlabel="False"] ;\n' + "}" + ) + + assert contents1 == contents2 + + # Test with class_names (escaped) + contents1 = export_graphviz(clf, class_names=['"yes"', '"no"'], out_file=None) + contents2 = ( + "digraph Tree {\n" + 'node [shape=box, fontname="helvetica"] ;\n' + 'edge [fontname="helvetica"] ;\n' + '0 [label="x[0] <= 0.0\\ngini = 0.5\\nsamples = 6\\n' + 'value = [3, 3]\\nclass = \\"yes\\""] ;\n' + '1 [label="gini = 0.0\\nsamples = 3\\nvalue = [3, 0]\\n' + 'class = \\"yes\\""] ;\n' + "0 -> 1 [labeldistance=2.5, labelangle=45, " + 'headlabel="True"] ;\n' + '2 [label="gini = 0.0\\nsamples = 3\\nvalue = [0, 3]\\n' + 'class = \\"no\\""] ;\n' + "0 -> 2 [labeldistance=2.5, labelangle=-45, " + 'headlabel="False"] ;\n' + "}" + ) + + assert contents1 == contents2 + + # Test plot_options + contents1 = export_graphviz( + clf, + filled=True, + impurity=False, + proportion=True, + special_characters=True, + rounded=True, + out_file=None, + fontname="sans", + ) + contents2 = ( + "digraph Tree {\n" + 'node [shape=box, style="filled, rounded", color="black", ' + 'fontname="sans"] ;\n' + 'edge [fontname="sans"] ;\n' + "0 [label=0 ≤ 0.0
samples = 100.0%
" + 'value = [0.5, 0.5]>, fillcolor="#ffffff"] ;\n' + "1 [label=value = [1.0, 0.0]>, " + 'fillcolor="#e58139"] ;\n' + "0 -> 1 [labeldistance=2.5, labelangle=45, " + 'headlabel="True"] ;\n' + "2 [label=value = [0.0, 1.0]>, " + 'fillcolor="#399de5"] ;\n' + "0 -> 2 [labeldistance=2.5, labelangle=-45, " + 'headlabel="False"] ;\n' + "}" + ) + + assert contents1 == contents2 + + # Test max_depth + contents1 = export_graphviz(clf, max_depth=0, class_names=True, out_file=None) + contents2 = ( + "digraph Tree {\n" + 'node [shape=box, fontname="helvetica"] ;\n' + 'edge [fontname="helvetica"] ;\n' + '0 [label="x[0] <= 0.0\\ngini = 0.5\\nsamples = 6\\n' + 'value = [3, 3]\\nclass = y[0]"] ;\n' + '1 [label="(...)"] ;\n' + "0 -> 1 ;\n" + '2 [label="(...)"] ;\n' + "0 -> 2 ;\n" + "}" + ) + + assert contents1 == contents2 + + # Test max_depth with plot_options + contents1 = export_graphviz( + clf, max_depth=0, filled=True, out_file=None, node_ids=True + ) + contents2 = ( + "digraph Tree {\n" + 'node [shape=box, style="filled", color="black", ' + 'fontname="helvetica"] ;\n' + 'edge [fontname="helvetica"] ;\n' + '0 [label="node #0\\nx[0] <= 0.0\\ngini = 0.5\\n' + 'samples = 6\\nvalue = [3, 3]", fillcolor="#ffffff"] ;\n' + '1 [label="(...)", fillcolor="#C0C0C0"] ;\n' + "0 -> 1 ;\n" + '2 [label="(...)", fillcolor="#C0C0C0"] ;\n' + "0 -> 2 ;\n" + "}" + ) + + assert contents1 == contents2 + + # Test multi-output with weighted samples + clf = DecisionTreeClassifier( + max_depth=2, min_samples_split=2, criterion="gini", random_state=2 + ) + clf = clf.fit(X, y2, sample_weight=w) + + contents1 = export_graphviz(clf, filled=True, impurity=False, out_file=None) + contents2 = ( + "digraph Tree {\n" + 'node [shape=box, style="filled", color="black", ' + 'fontname="helvetica"] ;\n' + 'edge [fontname="helvetica"] ;\n' + '0 [label="x[0] <= 0.0\\nsamples = 6\\n' + "value = [[3.0, 1.5, 0.0]\\n" + '[3.0, 1.0, 0.5]]", fillcolor="#ffffff"] ;\n' + '1 [label="samples = 3\\nvalue = [[3, 0, 0]\\n' + '[3, 0, 0]]", fillcolor="#e58139"] ;\n' + "0 -> 1 [labeldistance=2.5, labelangle=45, " + 'headlabel="True"] ;\n' + '2 [label="x[0] <= 1.5\\nsamples = 3\\n' + "value = [[0.0, 1.5, 0.0]\\n" + '[0.0, 1.0, 0.5]]", fillcolor="#f1bd97"] ;\n' + "0 -> 2 [labeldistance=2.5, labelangle=-45, " + 'headlabel="False"] ;\n' + '3 [label="samples = 2\\nvalue = [[0, 1, 0]\\n' + '[0, 1, 0]]", fillcolor="#e58139"] ;\n' + "2 -> 3 ;\n" + '4 [label="samples = 1\\nvalue = [[0.0, 0.5, 0.0]\\n' + '[0.0, 0.0, 0.5]]", fillcolor="#e58139"] ;\n' + "2 -> 4 ;\n" + "}" + ) + + assert contents1 == contents2 + + # Test regression output with plot_options + clf = DecisionTreeRegressor( + max_depth=3, min_samples_split=2, criterion="squared_error", random_state=2 + ) + clf.fit(X, y) + + contents1 = export_graphviz( + clf, + filled=True, + leaves_parallel=True, + out_file=None, + rotate=True, + rounded=True, + fontname="sans", + ) + contents2 = ( + "digraph Tree {\n" + 'node [shape=box, style="filled, rounded", color="black", ' + 'fontname="sans"] ;\n' + "graph [ranksep=equally, splines=polyline] ;\n" + 'edge [fontname="sans"] ;\n' + "rankdir=LR ;\n" + '0 [label="x[0] <= 0.0\\nsquared_error = 1.0\\nsamples = 6\\n' + 'value = 0.0", fillcolor="#f2c09c"] ;\n' + '1 [label="squared_error = 0.0\\nsamples = 3\\' + 'nvalue = -1.0", ' + 'fillcolor="#ffffff"] ;\n' + "0 -> 1 [labeldistance=2.5, labelangle=-45, " + 'headlabel="True"] ;\n' + '2 [label="squared_error = 0.0\\nsamples = 3\\nvalue = 1.0", ' + 'fillcolor="#e58139"] ;\n' + "0 -> 2 [labeldistance=2.5, labelangle=45, " + 'headlabel="False"] ;\n' + "{rank=same ; 0} ;\n" + "{rank=same ; 1; 2} ;\n" + "}" + ) + + assert contents1 == contents2 + + # Test classifier with degraded learning set + clf = DecisionTreeClassifier(max_depth=3) + clf.fit(X, y_degraded) + + contents1 = export_graphviz(clf, filled=True, out_file=None) + contents2 = ( + "digraph Tree {\n" + 'node [shape=box, style="filled", color="black", ' + 'fontname="helvetica"] ;\n' + 'edge [fontname="helvetica"] ;\n' + '0 [label="gini = 0.0\\nsamples = 6\\nvalue = 6.0", ' + 'fillcolor="#ffffff"] ;\n' + "}" + ) + + +@pytest.mark.parametrize("constructor", [list, np.array]) +def test_graphviz_feature_class_names_array_support(constructor): + # Check that export_graphviz treats feature names + # and class names correctly and supports arrays + clf = DecisionTreeClassifier( + max_depth=3, min_samples_split=2, criterion="gini", random_state=2 + ) + clf.fit(X, y) + + # Test with feature_names + contents1 = export_graphviz( + clf, feature_names=constructor(["feature0", "feature1"]), out_file=None + ) + contents2 = ( + "digraph Tree {\n" + 'node [shape=box, fontname="helvetica"] ;\n' + 'edge [fontname="helvetica"] ;\n' + '0 [label="feature0 <= 0.0\\ngini = 0.5\\nsamples = 6\\n' + 'value = [3, 3]"] ;\n' + '1 [label="gini = 0.0\\nsamples = 3\\nvalue = [3, 0]"] ;\n' + "0 -> 1 [labeldistance=2.5, labelangle=45, " + 'headlabel="True"] ;\n' + '2 [label="gini = 0.0\\nsamples = 3\\nvalue = [0, 3]"] ;\n' + "0 -> 2 [labeldistance=2.5, labelangle=-45, " + 'headlabel="False"] ;\n' + "}" + ) + + assert contents1 == contents2 + + # Test with class_names + contents1 = export_graphviz( + clf, class_names=constructor(["yes", "no"]), out_file=None + ) + contents2 = ( + "digraph Tree {\n" + 'node [shape=box, fontname="helvetica"] ;\n' + 'edge [fontname="helvetica"] ;\n' + '0 [label="x[0] <= 0.0\\ngini = 0.5\\nsamples = 6\\n' + 'value = [3, 3]\\nclass = yes"] ;\n' + '1 [label="gini = 0.0\\nsamples = 3\\nvalue = [3, 0]\\n' + 'class = yes"] ;\n' + "0 -> 1 [labeldistance=2.5, labelangle=45, " + 'headlabel="True"] ;\n' + '2 [label="gini = 0.0\\nsamples = 3\\nvalue = [0, 3]\\n' + 'class = no"] ;\n' + "0 -> 2 [labeldistance=2.5, labelangle=-45, " + 'headlabel="False"] ;\n' + "}" + ) + + assert contents1 == contents2 + + +def test_graphviz_errors(): + # Check for errors of export_graphviz + clf = DecisionTreeClassifier(max_depth=3, min_samples_split=2) + + # Check not-fitted decision tree error + out = StringIO() + with pytest.raises(NotFittedError): + export_graphviz(clf, out) + + clf.fit(X, y) + + # Check if it errors when length of feature_names + # mismatches with number of features + message = "Length of feature_names, 1 does not match number of features, 2" + with pytest.raises(ValueError, match=message): + export_graphviz(clf, None, feature_names=["a"]) + + message = "Length of feature_names, 3 does not match number of features, 2" + with pytest.raises(ValueError, match=message): + export_graphviz(clf, None, feature_names=["a", "b", "c"]) + + # Check error when argument is not an estimator + message = "is not an estimator instance" + with pytest.raises(TypeError, match=message): + export_graphviz(clf.fit(X, y).tree_) + + # Check class_names error + out = StringIO() + with pytest.raises(IndexError): + export_graphviz(clf, out, class_names=[]) + + +def test_friedman_mse_in_graphviz(): + clf = DecisionTreeRegressor(criterion="friedman_mse", random_state=0) + clf.fit(X, y) + dot_data = StringIO() + export_graphviz(clf, out_file=dot_data) + + clf = GradientBoostingClassifier(n_estimators=2, random_state=0) + clf.fit(X, y) + for estimator in clf.estimators_: + export_graphviz(estimator[0], out_file=dot_data) + + for finding in finditer(r"\[.*?samples.*?\]", dot_data.getvalue()): + assert "friedman_mse" in finding.group() + + +def test_precision(): + rng_reg = RandomState(2) + rng_clf = RandomState(8) + for X, y, clf in zip( + (rng_reg.random_sample((5, 2)), rng_clf.random_sample((1000, 4))), + (rng_reg.random_sample((5,)), rng_clf.randint(2, size=(1000,))), + ( + DecisionTreeRegressor( + criterion="friedman_mse", random_state=0, max_depth=1 + ), + DecisionTreeClassifier(max_depth=1, random_state=0), + ), + ): + clf.fit(X, y) + for precision in (4, 3): + dot_data = export_graphviz( + clf, out_file=None, precision=precision, proportion=True + ) + + # With the current random state, the impurity and the threshold + # will have the number of precision set in the export_graphviz + # function. We will check the number of precision with a strict + # equality. The value reported will have only 2 precision and + # therefore, only a less equal comparison will be done. + + # check value + for finding in finditer(r"value = \d+\.\d+", dot_data): + assert len(search(r"\.\d+", finding.group()).group()) <= precision + 1 + # check impurity + if is_classifier(clf): + pattern = r"gini = \d+\.\d+" + else: + pattern = r"friedman_mse = \d+\.\d+" + + # check impurity + for finding in finditer(pattern, dot_data): + assert len(search(r"\.\d+", finding.group()).group()) == precision + 1 + # check threshold + for finding in finditer(r"<= \d+\.\d+", dot_data): + assert len(search(r"\.\d+", finding.group()).group()) == precision + 1 + + +def test_export_text_errors(): + clf = DecisionTreeClassifier(max_depth=2, random_state=0) + clf.fit(X, y) + err_msg = "feature_names must contain 2 elements, got 1" + with pytest.raises(ValueError, match=err_msg): + export_text(clf, feature_names=["a"]) + err_msg = ( + "When `class_names` is an array, it should contain as" + " many items as `decision_tree.classes_`. Got 1 while" + " the tree was fitted with 2 classes." + ) + with pytest.raises(ValueError, match=err_msg): + export_text(clf, class_names=["a"]) + + +def test_export_text(): + clf = DecisionTreeClassifier(max_depth=2, random_state=0) + clf.fit(X, y) + + expected_report = dedent( + """ + |--- feature_1 <= 0.00 + | |--- class: -1 + |--- feature_1 > 0.00 + | |--- class: 1 + """ + ).lstrip() + + assert export_text(clf) == expected_report + # testing that leaves at level 1 are not truncated + assert export_text(clf, max_depth=0) == expected_report + # testing that the rest of the tree is truncated + assert export_text(clf, max_depth=10) == expected_report + + expected_report = dedent( + """ + |--- feature_1 <= 0.00 + | |--- weights: [3.00, 0.00] class: -1 + |--- feature_1 > 0.00 + | |--- weights: [0.00, 3.00] class: 1 + """ + ).lstrip() + assert export_text(clf, show_weights=True) == expected_report + + expected_report = dedent( + """ + |- feature_1 <= 0.00 + | |- class: -1 + |- feature_1 > 0.00 + | |- class: 1 + """ + ).lstrip() + assert export_text(clf, spacing=1) == expected_report + + X_l = [[-2, -1], [-1, -1], [-1, -2], [1, 1], [1, 2], [2, 1], [-1, 1]] + y_l = [-1, -1, -1, 1, 1, 1, 2] + clf = DecisionTreeClassifier(max_depth=4, random_state=0) + clf.fit(X_l, y_l) + expected_report = dedent( + """ + |--- feature_1 <= 0.00 + | |--- class: -1 + |--- feature_1 > 0.00 + | |--- truncated branch of depth 2 + """ + ).lstrip() + assert export_text(clf, max_depth=0) == expected_report + + X_mo = [[-2, -1], [-1, -1], [-1, -2], [1, 1], [1, 2], [2, 1]] + y_mo = [[-1, -1], [-1, -1], [-1, -1], [1, 1], [1, 1], [1, 1]] + + reg = DecisionTreeRegressor(max_depth=2, random_state=0) + reg.fit(X_mo, y_mo) + + expected_report = dedent( + """ + |--- feature_1 <= 0.0 + | |--- value: [-1.0, -1.0] + |--- feature_1 > 0.0 + | |--- value: [1.0, 1.0] + """ + ).lstrip() + assert export_text(reg, decimals=1) == expected_report + assert export_text(reg, decimals=1, show_weights=True) == expected_report + + X_single = [[-2], [-1], [-1], [1], [1], [2]] + reg = DecisionTreeRegressor(max_depth=2, random_state=0) + reg.fit(X_single, y_mo) + + expected_report = dedent( + """ + |--- first <= 0.0 + | |--- value: [-1.0, -1.0] + |--- first > 0.0 + | |--- value: [1.0, 1.0] + """ + ).lstrip() + assert export_text(reg, decimals=1, feature_names=["first"]) == expected_report + assert ( + export_text(reg, decimals=1, show_weights=True, feature_names=["first"]) + == expected_report + ) + + +@pytest.mark.parametrize("constructor", [list, np.array]) +def test_export_text_feature_class_names_array_support(constructor): + # Check that export_graphviz treats feature names + # and class names correctly and supports arrays + clf = DecisionTreeClassifier(max_depth=2, random_state=0) + clf.fit(X, y) + + expected_report = dedent( + """ + |--- b <= 0.00 + | |--- class: -1 + |--- b > 0.00 + | |--- class: 1 + """ + ).lstrip() + assert export_text(clf, feature_names=constructor(["a", "b"])) == expected_report + + expected_report = dedent( + """ + |--- feature_1 <= 0.00 + | |--- class: cat + |--- feature_1 > 0.00 + | |--- class: dog + """ + ).lstrip() + assert export_text(clf, class_names=constructor(["cat", "dog"])) == expected_report + + +def test_plot_tree_entropy(pyplot): + # mostly smoke tests + # Check correctness of export_graphviz for criterion = entropy + clf = DecisionTreeClassifier( + max_depth=3, min_samples_split=2, criterion="entropy", random_state=2 + ) + clf.fit(X, y) + + # Test export code + feature_names = ["first feat", "sepal_width"] + nodes = plot_tree(clf, feature_names=feature_names) + assert len(nodes) == 5 + assert ( + nodes[0].get_text() + == "first feat <= 0.0\nentropy = 1.0\nsamples = 6\nvalue = [3, 3]" + ) + assert nodes[1].get_text() == "entropy = 0.0\nsamples = 3\nvalue = [3, 0]" + assert nodes[2].get_text() == "True " + assert nodes[3].get_text() == "entropy = 0.0\nsamples = 3\nvalue = [0, 3]" + assert nodes[4].get_text() == " False" + + +@pytest.mark.parametrize("fontsize", [None, 10, 20]) +def test_plot_tree_gini(pyplot, fontsize): + # mostly smoke tests + # Check correctness of export_graphviz for criterion = gini + clf = DecisionTreeClassifier( + max_depth=3, + min_samples_split=2, + criterion="gini", + random_state=2, + ) + clf.fit(X, y) + + # Test export code + feature_names = ["first feat", "sepal_width"] + nodes = plot_tree(clf, feature_names=feature_names, fontsize=fontsize) + assert len(nodes) == 5 + if fontsize is not None: + assert all(node.get_fontsize() == fontsize for node in nodes) + assert ( + nodes[0].get_text() + == "first feat <= 0.0\ngini = 0.5\nsamples = 6\nvalue = [3, 3]" + ) + assert nodes[1].get_text() == "gini = 0.0\nsamples = 3\nvalue = [3, 0]" + assert nodes[2].get_text() == "True " + assert nodes[3].get_text() == "gini = 0.0\nsamples = 3\nvalue = [0, 3]" + assert nodes[4].get_text() == " False" + + +def test_not_fitted_tree(pyplot): + # Testing if not fitted tree throws the correct error + clf = DecisionTreeRegressor() + with pytest.raises(NotFittedError): + plot_tree(clf) diff --git a/shared/package-files/0a/0a5d4fcf01f40c6e4219c387db611a71dfdc9a4cacca4001c202200fdf5a4d80/_weight_boosting.py b/shared/package-files/0a/0a5d4fcf01f40c6e4219c387db611a71dfdc9a4cacca4001c202200fdf5a4d80/_weight_boosting.py new file mode 100644 index 0000000000000000000000000000000000000000..37c6468a5ebf6d8e22d927b3528604f57b9e0676 --- /dev/null +++ b/shared/package-files/0a/0a5d4fcf01f40c6e4219c387db611a71dfdc9a4cacca4001c202200fdf5a4d80/_weight_boosting.py @@ -0,0 +1,1173 @@ +"""Weight Boosting. + +This module contains weight boosting estimators for both classification and +regression. + +The module structure is the following: + +- The `BaseWeightBoosting` base class implements a common ``fit`` method + for all the estimators in the module. Regression and classification + only differ from each other in the loss function that is optimized. + +- :class:`~sklearn.ensemble.AdaBoostClassifier` implements adaptive boosting + (AdaBoost-SAMME) for classification problems. + +- :class:`~sklearn.ensemble.AdaBoostRegressor` implements adaptive boosting + (AdaBoost.R2) for regression problems. +""" + +# Authors: The scikit-learn developers +# SPDX-License-Identifier: BSD-3-Clause + +import warnings +from abc import ABCMeta, abstractmethod +from numbers import Integral, Real + +import numpy as np + +from ..base import ( + ClassifierMixin, + RegressorMixin, + _fit_context, + is_classifier, + is_regressor, +) +from ..metrics import accuracy_score, r2_score +from ..tree import DecisionTreeClassifier, DecisionTreeRegressor +from ..utils import _safe_indexing, check_random_state +from ..utils._param_validation import HasMethods, Hidden, Interval, StrOptions +from ..utils.extmath import softmax, stable_cumsum +from ..utils.metadata_routing import ( + _raise_for_unsupported_routing, + _RoutingNotSupportedMixin, +) +from ..utils.validation import ( + _check_sample_weight, + _num_samples, + check_is_fitted, + has_fit_parameter, + validate_data, +) +from ._base import BaseEnsemble + +__all__ = [ + "AdaBoostClassifier", + "AdaBoostRegressor", +] + + +class BaseWeightBoosting(BaseEnsemble, metaclass=ABCMeta): + """Base class for AdaBoost estimators. + + Warning: This class should not be used directly. Use derived classes + instead. + """ + + _parameter_constraints: dict = { + "estimator": [HasMethods(["fit", "predict"]), None], + "n_estimators": [Interval(Integral, 1, None, closed="left")], + "learning_rate": [Interval(Real, 0, None, closed="neither")], + "random_state": ["random_state"], + } + + @abstractmethod + def __init__( + self, + estimator=None, + *, + n_estimators=50, + estimator_params=tuple(), + learning_rate=1.0, + random_state=None, + ): + super().__init__( + estimator=estimator, + n_estimators=n_estimators, + estimator_params=estimator_params, + ) + + self.learning_rate = learning_rate + self.random_state = random_state + + def _check_X(self, X): + # Only called to validate X in non-fit methods, therefore reset=False + return validate_data( + self, + X, + accept_sparse=["csr", "csc"], + ensure_2d=True, + allow_nd=True, + dtype=None, + reset=False, + ) + + @_fit_context( + # AdaBoost*.estimator is not validated yet + prefer_skip_nested_validation=False + ) + def fit(self, X, y, sample_weight=None): + """Build a boosted classifier/regressor from the training set (X, y). + + Parameters + ---------- + X : {array-like, sparse matrix} of shape (n_samples, n_features) + The training input samples. Sparse matrix can be CSC, CSR, COO, + DOK, or LIL. COO, DOK, and LIL are converted to CSR. + + y : array-like of shape (n_samples,) + The target values. + + sample_weight : array-like of shape (n_samples,), default=None + Sample weights. If None, the sample weights are initialized to + 1 / n_samples. + + Returns + ------- + self : object + Fitted estimator. + """ + _raise_for_unsupported_routing(self, "fit", sample_weight=sample_weight) + X, y = validate_data( + self, + X, + y, + accept_sparse=["csr", "csc"], + ensure_2d=True, + allow_nd=True, + dtype=None, + y_numeric=is_regressor(self), + ) + + sample_weight = _check_sample_weight( + sample_weight, X, dtype=np.float64, copy=True, ensure_non_negative=True + ) + sample_weight /= sample_weight.sum() + + # Check parameters + self._validate_estimator() + + # Clear any previous fit results + self.estimators_ = [] + self.estimator_weights_ = np.zeros(self.n_estimators, dtype=np.float64) + self.estimator_errors_ = np.ones(self.n_estimators, dtype=np.float64) + + # Initialization of the random number instance that will be used to + # generate a seed at each iteration + random_state = check_random_state(self.random_state) + epsilon = np.finfo(sample_weight.dtype).eps + + zero_weight_mask = sample_weight == 0.0 + for iboost in range(self.n_estimators): + # avoid extremely small sample weight, for details see issue #20320 + sample_weight = np.clip(sample_weight, a_min=epsilon, a_max=None) + # do not clip sample weights that were exactly zero originally + sample_weight[zero_weight_mask] = 0.0 + + # Boosting step + sample_weight, estimator_weight, estimator_error = self._boost( + iboost, X, y, sample_weight, random_state + ) + + # Early termination + if sample_weight is None: + break + self.estimator_weights_[iboost] = estimator_weight + self.estimator_errors_[iboost] = estimator_error + + # Stop if error is zero + if estimator_error == 0: + break + + sample_weight_sum = np.sum(sample_weight) + + if not np.isfinite(sample_weight_sum): + warnings.warn( + ( + "Sample weights have reached infinite values," + f" at iteration {iboost}, causing overflow. " + "Iterations stopped. Try lowering the learning rate." + ), + stacklevel=2, + ) + break + + # Stop if the sum of sample weights has become non-positive + if sample_weight_sum <= 0: + break + + if iboost < self.n_estimators - 1: + # Normalize + sample_weight /= sample_weight_sum + + return self + + @abstractmethod + def _boost(self, iboost, X, y, sample_weight, random_state): + """Implement a single boost. + + Warning: This method needs to be overridden by subclasses. + + Parameters + ---------- + iboost : int + The index of the current boost iteration. + + X : {array-like, sparse matrix} of shape (n_samples, n_features) + The training input samples. Sparse matrix can be CSC, CSR, COO, + DOK, or LIL. COO, DOK, and LIL are converted to CSR. + + y : array-like of shape (n_samples,) + The target values (class labels). + + sample_weight : array-like of shape (n_samples,) + The current sample weights. + + random_state : RandomState + The current random number generator + + Returns + ------- + sample_weight : array-like of shape (n_samples,) or None + The reweighted sample weights. + If None then boosting has terminated early. + + estimator_weight : float + The weight for the current boost. + If None then boosting has terminated early. + + error : float + The classification error for the current boost. + If None then boosting has terminated early. + """ + pass + + def staged_score(self, X, y, sample_weight=None): + """Return staged scores for X, y. + + This generator method yields the ensemble score after each iteration of + boosting and therefore allows monitoring, such as to determine the + score on a test set after each boost. + + Parameters + ---------- + X : {array-like, sparse matrix} of shape (n_samples, n_features) + The training input samples. Sparse matrix can be CSC, CSR, COO, + DOK, or LIL. COO, DOK, and LIL are converted to CSR. + + y : array-like of shape (n_samples,) + Labels for X. + + sample_weight : array-like of shape (n_samples,), default=None + Sample weights. + + Yields + ------ + z : float + """ + X = self._check_X(X) + + for y_pred in self.staged_predict(X): + if is_classifier(self): + yield accuracy_score(y, y_pred, sample_weight=sample_weight) + else: + yield r2_score(y, y_pred, sample_weight=sample_weight) + + @property + def feature_importances_(self): + """The impurity-based feature importances. + + The higher, the more important the feature. + The importance of a feature is computed as the (normalized) + total reduction of the criterion brought by that feature. It is also + known as the Gini importance. + + Warning: impurity-based feature importances can be misleading for + high cardinality features (many unique values). See + :func:`sklearn.inspection.permutation_importance` as an alternative. + + Returns + ------- + feature_importances_ : ndarray of shape (n_features,) + The feature importances. + """ + if self.estimators_ is None or len(self.estimators_) == 0: + raise ValueError( + "Estimator not fitted, call `fit` before `feature_importances_`." + ) + + try: + norm = self.estimator_weights_.sum() + return ( + sum( + weight * clf.feature_importances_ + for weight, clf in zip(self.estimator_weights_, self.estimators_) + ) + / norm + ) + + except AttributeError as e: + raise AttributeError( + "Unable to compute feature importances " + "since estimator does not have a " + "feature_importances_ attribute" + ) from e + + def __sklearn_tags__(self): + tags = super().__sklearn_tags__() + tags.input_tags.sparse = True + return tags + + +def _samme_proba(estimator, n_classes, X): + """Calculate algorithm 4, step 2, equation c) of Zhu et al [1]. + + References + ---------- + .. [1] J. Zhu, H. Zou, S. Rosset, T. Hastie, "Multi-class AdaBoost", 2009. + + """ + proba = estimator.predict_proba(X) + + # Displace zero probabilities so the log is defined. + # Also fix negative elements which may occur with + # negative sample weights. + np.clip(proba, np.finfo(proba.dtype).eps, None, out=proba) + log_proba = np.log(proba) + + return (n_classes - 1) * ( + log_proba - (1.0 / n_classes) * log_proba.sum(axis=1)[:, np.newaxis] + ) + + +class AdaBoostClassifier( + _RoutingNotSupportedMixin, ClassifierMixin, BaseWeightBoosting +): + """An AdaBoost classifier. + + An AdaBoost [1]_ classifier is a meta-estimator that begins by fitting a + classifier on the original dataset and then fits additional copies of the + classifier on the same dataset but where the weights of incorrectly + classified instances are adjusted such that subsequent classifiers focus + more on difficult cases. + + This class implements the algorithm based on [2]_. + + Read more in the :ref:`User Guide `. + + .. versionadded:: 0.14 + + Parameters + ---------- + estimator : object, default=None + The base estimator from which the boosted ensemble is built. + Support for sample weighting is required, as well as proper + ``classes_`` and ``n_classes_`` attributes. If ``None``, then + the base estimator is :class:`~sklearn.tree.DecisionTreeClassifier` + initialized with `max_depth=1`. + + .. versionadded:: 1.2 + `base_estimator` was renamed to `estimator`. + + n_estimators : int, default=50 + The maximum number of estimators at which boosting is terminated. + In case of perfect fit, the learning procedure is stopped early. + Values must be in the range `[1, inf)`. + + learning_rate : float, default=1.0 + Weight applied to each classifier at each boosting iteration. A higher + learning rate increases the contribution of each classifier. There is + a trade-off between the `learning_rate` and `n_estimators` parameters. + Values must be in the range `(0.0, inf)`. + + algorithm : {'SAMME'}, default='SAMME' + Use the SAMME discrete boosting algorithm. + + .. deprecated:: 1.6 + `algorithm` is deprecated and will be removed in version 1.8. This + estimator only implements the 'SAMME' algorithm. + + random_state : int, RandomState instance or None, default=None + Controls the random seed given at each `estimator` at each + boosting iteration. + Thus, it is only used when `estimator` exposes a `random_state`. + Pass an int for reproducible output across multiple function calls. + See :term:`Glossary `. + + Attributes + ---------- + estimator_ : estimator + The base estimator from which the ensemble is grown. + + .. versionadded:: 1.2 + `base_estimator_` was renamed to `estimator_`. + + estimators_ : list of classifiers + The collection of fitted sub-estimators. + + classes_ : ndarray of shape (n_classes,) + The classes labels. + + n_classes_ : int + The number of classes. + + estimator_weights_ : ndarray of floats + Weights for each estimator in the boosted ensemble. + + estimator_errors_ : ndarray of floats + Classification error for each estimator in the boosted + ensemble. + + feature_importances_ : ndarray of shape (n_features,) + The impurity-based feature importances if supported by the + ``estimator`` (when based on decision trees). + + Warning: impurity-based feature importances can be misleading for + high cardinality features (many unique values). See + :func:`sklearn.inspection.permutation_importance` as an alternative. + + 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 + -------- + AdaBoostRegressor : An AdaBoost regressor that begins by fitting a + regressor on the original dataset and then fits additional copies of + the regressor on the same dataset but where the weights of instances + are adjusted according to the error of the current prediction. + + GradientBoostingClassifier : GB builds an additive model in a forward + stage-wise fashion. Regression trees are fit on the negative gradient + of the binomial or multinomial deviance loss function. Binary + classification is a special case where only a single regression tree is + induced. + + sklearn.tree.DecisionTreeClassifier : A non-parametric supervised learning + method used for classification. + Creates a model that predicts the value of a target variable by + learning simple decision rules inferred from the data features. + + References + ---------- + .. [1] Y. Freund, R. Schapire, "A Decision-Theoretic Generalization of + on-Line Learning and an Application to Boosting", 1995. + + .. [2] :doi:`J. Zhu, H. Zou, S. Rosset, T. Hastie, "Multi-class adaboost." + Statistics and its Interface 2.3 (2009): 349-360. + <10.4310/SII.2009.v2.n3.a8>` + + Examples + -------- + >>> from sklearn.ensemble import AdaBoostClassifier + >>> from sklearn.datasets import make_classification + >>> X, y = make_classification(n_samples=1000, n_features=4, + ... n_informative=2, n_redundant=0, + ... random_state=0, shuffle=False) + >>> clf = AdaBoostClassifier(n_estimators=100, random_state=0) + >>> clf.fit(X, y) + AdaBoostClassifier(n_estimators=100, random_state=0) + >>> clf.predict([[0, 0, 0, 0]]) + array([1]) + >>> clf.score(X, y) + 0.96 + + For a detailed example of using AdaBoost to fit a sequence of DecisionTrees + as weaklearners, please refer to + :ref:`sphx_glr_auto_examples_ensemble_plot_adaboost_multiclass.py`. + + For a detailed example of using AdaBoost to fit a non-linearly separable + classification dataset composed of two Gaussian quantiles clusters, please + refer to :ref:`sphx_glr_auto_examples_ensemble_plot_adaboost_twoclass.py`. + """ + + # TODO(1.8): remove "algorithm" entry + _parameter_constraints: dict = { + **BaseWeightBoosting._parameter_constraints, + "algorithm": [StrOptions({"SAMME"}), Hidden(StrOptions({"deprecated"}))], + } + + def __init__( + self, + estimator=None, + *, + n_estimators=50, + learning_rate=1.0, + algorithm="deprecated", + random_state=None, + ): + super().__init__( + estimator=estimator, + n_estimators=n_estimators, + learning_rate=learning_rate, + random_state=random_state, + ) + + self.algorithm = algorithm + + def _validate_estimator(self): + """Check the estimator and set the estimator_ attribute.""" + super()._validate_estimator(default=DecisionTreeClassifier(max_depth=1)) + + if self.algorithm != "deprecated": + warnings.warn( + "The parameter 'algorithm' is deprecated in 1.6 and has no effect. " + "It will be removed in version 1.8.", + FutureWarning, + ) + + if not has_fit_parameter(self.estimator_, "sample_weight"): + raise ValueError( + f"{self.estimator.__class__.__name__} doesn't support sample_weight." + ) + + def _boost(self, iboost, X, y, sample_weight, random_state): + """Implement a single boost. + + Perform a single boost according to the discrete SAMME algorithm and return the + updated sample weights. + + Parameters + ---------- + iboost : int + The index of the current boost iteration. + + X : {array-like, sparse matrix} of shape (n_samples, n_features) + The training input samples. + + y : array-like of shape (n_samples,) + The target values (class labels). + + sample_weight : array-like of shape (n_samples,) + The current sample weights. + + random_state : RandomState instance + The RandomState instance used if the base estimator accepts a + `random_state` attribute. + + Returns + ------- + sample_weight : array-like of shape (n_samples,) or None + The reweighted sample weights. + If None then boosting has terminated early. + + estimator_weight : float + The weight for the current boost. + If None then boosting has terminated early. + + estimator_error : float + The classification error for the current boost. + If None then boosting has terminated early. + """ + estimator = self._make_estimator(random_state=random_state) + + estimator.fit(X, y, sample_weight=sample_weight) + + y_predict = estimator.predict(X) + + if iboost == 0: + self.classes_ = getattr(estimator, "classes_", None) + self.n_classes_ = len(self.classes_) + + # Instances incorrectly classified + incorrect = y_predict != y + + # Error fraction + estimator_error = np.mean(np.average(incorrect, weights=sample_weight, axis=0)) + + # Stop if classification is perfect + if estimator_error <= 0: + return sample_weight, 1.0, 0.0 + + n_classes = self.n_classes_ + + # Stop if the error is at least as bad as random guessing + if estimator_error >= 1.0 - (1.0 / n_classes): + self.estimators_.pop(-1) + if len(self.estimators_) == 0: + raise ValueError( + "BaseClassifier in AdaBoostClassifier " + "ensemble is worse than random, ensemble " + "can not be fit." + ) + return None, None, None + + # Boost weight using multi-class AdaBoost SAMME alg + estimator_weight = self.learning_rate * ( + np.log((1.0 - estimator_error) / estimator_error) + np.log(n_classes - 1.0) + ) + + # Only boost the weights if it will fit again + if not iboost == self.n_estimators - 1: + # Only boost positive weights + sample_weight = np.exp( + np.log(sample_weight) + + estimator_weight * incorrect * (sample_weight > 0) + ) + + return sample_weight, estimator_weight, estimator_error + + def predict(self, X): + """Predict classes for X. + + The predicted class of an input sample is computed as the weighted mean + prediction of the classifiers in the ensemble. + + Parameters + ---------- + X : {array-like, sparse matrix} of shape (n_samples, n_features) + The training input samples. Sparse matrix can be CSC, CSR, COO, + DOK, or LIL. COO, DOK, and LIL are converted to CSR. + + Returns + ------- + y : ndarray of shape (n_samples,) + The predicted classes. + """ + pred = self.decision_function(X) + + if self.n_classes_ == 2: + return self.classes_.take(pred > 0, axis=0) + + return self.classes_.take(np.argmax(pred, axis=1), axis=0) + + def staged_predict(self, X): + """Return staged predictions for X. + + The predicted class of an input sample is computed as the weighted mean + prediction of the classifiers in the ensemble. + + This generator method yields the ensemble prediction after each + iteration of boosting and therefore allows monitoring, such as to + determine the prediction on a test set after each boost. + + Parameters + ---------- + X : array-like of shape (n_samples, n_features) + The input samples. Sparse matrix can be CSC, CSR, COO, + DOK, or LIL. COO, DOK, and LIL are converted to CSR. + + Yields + ------ + y : generator of ndarray of shape (n_samples,) + The predicted classes. + """ + X = self._check_X(X) + + n_classes = self.n_classes_ + classes = self.classes_ + + if n_classes == 2: + for pred in self.staged_decision_function(X): + yield np.array(classes.take(pred > 0, axis=0)) + + else: + for pred in self.staged_decision_function(X): + yield np.array(classes.take(np.argmax(pred, axis=1), axis=0)) + + def decision_function(self, X): + """Compute the decision function of ``X``. + + Parameters + ---------- + X : {array-like, sparse matrix} of shape (n_samples, n_features) + The training input samples. Sparse matrix can be CSC, CSR, COO, + DOK, or LIL. COO, DOK, and LIL are converted to CSR. + + Returns + ------- + score : ndarray of shape of (n_samples, k) + The decision function of the input samples. The order of + outputs is the same as that of the :term:`classes_` attribute. + Binary classification is a special cases with ``k == 1``, + otherwise ``k==n_classes``. For binary classification, + values closer to -1 or 1 mean more like the first or second + class in ``classes_``, respectively. + """ + check_is_fitted(self) + X = self._check_X(X) + + n_classes = self.n_classes_ + classes = self.classes_[:, np.newaxis] + + if n_classes == 1: + return np.zeros_like(X, shape=(X.shape[0], 1)) + + pred = sum( + np.where( + (estimator.predict(X) == classes).T, + w, + -1 / (n_classes - 1) * w, + ) + for estimator, w in zip(self.estimators_, self.estimator_weights_) + ) + + pred /= self.estimator_weights_.sum() + if n_classes == 2: + pred[:, 0] *= -1 + return pred.sum(axis=1) + return pred + + def staged_decision_function(self, X): + """Compute decision function of ``X`` for each boosting iteration. + + This method allows monitoring (i.e. determine error on testing set) + after each boosting iteration. + + Parameters + ---------- + X : {array-like, sparse matrix} of shape (n_samples, n_features) + The training input samples. Sparse matrix can be CSC, CSR, COO, + DOK, or LIL. COO, DOK, and LIL are converted to CSR. + + Yields + ------ + score : generator of ndarray of shape (n_samples, k) + The decision function of the input samples. The order of + outputs is the same of that of the :term:`classes_` attribute. + Binary classification is a special cases with ``k == 1``, + otherwise ``k==n_classes``. For binary classification, + values closer to -1 or 1 mean more like the first or second + class in ``classes_``, respectively. + """ + check_is_fitted(self) + X = self._check_X(X) + + n_classes = self.n_classes_ + classes = self.classes_[:, np.newaxis] + pred = None + norm = 0.0 + + for weight, estimator in zip(self.estimator_weights_, self.estimators_): + norm += weight + + current_pred = np.where( + (estimator.predict(X) == classes).T, + weight, + -1 / (n_classes - 1) * weight, + ) + + if pred is None: + pred = current_pred + else: + pred += current_pred + + if n_classes == 2: + tmp_pred = np.copy(pred) + tmp_pred[:, 0] *= -1 + yield (tmp_pred / norm).sum(axis=1) + else: + yield pred / norm + + @staticmethod + def _compute_proba_from_decision(decision, n_classes): + """Compute probabilities from the decision function. + + This is based eq. (15) of [1] where: + p(y=c|X) = exp((1 / K-1) f_c(X)) / sum_k(exp((1 / K-1) f_k(X))) + = softmax((1 / K-1) * f(X)) + + References + ---------- + .. [1] J. Zhu, H. Zou, S. Rosset, T. Hastie, "Multi-class AdaBoost", + 2009. + """ + if n_classes == 2: + decision = np.vstack([-decision, decision]).T / 2 + else: + decision /= n_classes - 1 + return softmax(decision, copy=False) + + def predict_proba(self, X): + """Predict class probabilities for X. + + The predicted class probabilities of an input sample is computed as + the weighted mean predicted class probabilities of the classifiers + in the ensemble. + + Parameters + ---------- + X : {array-like, sparse matrix} of shape (n_samples, n_features) + The training input samples. Sparse matrix can be CSC, CSR, COO, + DOK, or LIL. COO, DOK, and LIL are converted to CSR. + + Returns + ------- + p : ndarray of shape (n_samples, n_classes) + The class probabilities of the input samples. The order of + outputs is the same of that of the :term:`classes_` attribute. + """ + check_is_fitted(self) + n_classes = self.n_classes_ + + if n_classes == 1: + return np.ones((_num_samples(X), 1)) + + decision = self.decision_function(X) + return self._compute_proba_from_decision(decision, n_classes) + + def staged_predict_proba(self, X): + """Predict class probabilities for X. + + The predicted class probabilities of an input sample is computed as + the weighted mean predicted class probabilities of the classifiers + in the ensemble. + + This generator method yields the ensemble predicted class probabilities + after each iteration of boosting and therefore allows monitoring, such + as to determine the predicted class probabilities on a test set after + each boost. + + Parameters + ---------- + X : {array-like, sparse matrix} of shape (n_samples, n_features) + The training input samples. Sparse matrix can be CSC, CSR, COO, + DOK, or LIL. COO, DOK, and LIL are converted to CSR. + + Yields + ------ + p : generator of ndarray of shape (n_samples,) + The class probabilities of the input samples. The order of + outputs is the same of that of the :term:`classes_` attribute. + """ + + n_classes = self.n_classes_ + + for decision in self.staged_decision_function(X): + yield self._compute_proba_from_decision(decision, n_classes) + + def predict_log_proba(self, X): + """Predict class log-probabilities for X. + + The predicted class log-probabilities of an input sample is computed as + the weighted mean predicted class log-probabilities of the classifiers + in the ensemble. + + Parameters + ---------- + X : {array-like, sparse matrix} of shape (n_samples, n_features) + The training input samples. Sparse matrix can be CSC, CSR, COO, + DOK, or LIL. COO, DOK, and LIL are converted to CSR. + + Returns + ------- + p : ndarray of shape (n_samples, n_classes) + The class probabilities of the input samples. The order of + outputs is the same of that of the :term:`classes_` attribute. + """ + return np.log(self.predict_proba(X)) + + +class AdaBoostRegressor(_RoutingNotSupportedMixin, RegressorMixin, BaseWeightBoosting): + """An AdaBoost regressor. + + An AdaBoost [1] regressor is a meta-estimator that begins by fitting a + regressor on the original dataset and then fits additional copies of the + regressor on the same dataset but where the weights of instances are + adjusted according to the error of the current prediction. As such, + subsequent regressors focus more on difficult cases. + + This class implements the algorithm known as AdaBoost.R2 [2]. + + Read more in the :ref:`User Guide `. + + .. versionadded:: 0.14 + + Parameters + ---------- + estimator : object, default=None + The base estimator from which the boosted ensemble is built. + If ``None``, then the base estimator is + :class:`~sklearn.tree.DecisionTreeRegressor` initialized with + `max_depth=3`. + + .. versionadded:: 1.2 + `base_estimator` was renamed to `estimator`. + + n_estimators : int, default=50 + The maximum number of estimators at which boosting is terminated. + In case of perfect fit, the learning procedure is stopped early. + Values must be in the range `[1, inf)`. + + learning_rate : float, default=1.0 + Weight applied to each regressor at each boosting iteration. A higher + learning rate increases the contribution of each regressor. There is + a trade-off between the `learning_rate` and `n_estimators` parameters. + Values must be in the range `(0.0, inf)`. + + loss : {'linear', 'square', 'exponential'}, default='linear' + The loss function to use when updating the weights after each + boosting iteration. + + random_state : int, RandomState instance or None, default=None + Controls the random seed given at each `estimator` at each + boosting iteration. + Thus, it is only used when `estimator` exposes a `random_state`. + In addition, it controls the bootstrap of the weights used to train the + `estimator` at each boosting iteration. + Pass an int for reproducible output across multiple function calls. + See :term:`Glossary `. + + Attributes + ---------- + estimator_ : estimator + The base estimator from which the ensemble is grown. + + .. versionadded:: 1.2 + `base_estimator_` was renamed to `estimator_`. + + estimators_ : list of regressors + The collection of fitted sub-estimators. + + estimator_weights_ : ndarray of floats + Weights for each estimator in the boosted ensemble. + + estimator_errors_ : ndarray of floats + Regression error for each estimator in the boosted ensemble. + + feature_importances_ : ndarray of shape (n_features,) + The impurity-based feature importances if supported by the + ``estimator`` (when based on decision trees). + + Warning: impurity-based feature importances can be misleading for + high cardinality features (many unique values). See + :func:`sklearn.inspection.permutation_importance` as an alternative. + + 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 + -------- + AdaBoostClassifier : An AdaBoost classifier. + GradientBoostingRegressor : Gradient Boosting Classification Tree. + sklearn.tree.DecisionTreeRegressor : A decision tree regressor. + + References + ---------- + .. [1] Y. Freund, R. Schapire, "A Decision-Theoretic Generalization of + on-Line Learning and an Application to Boosting", 1995. + + .. [2] H. Drucker, "Improving Regressors using Boosting Techniques", 1997. + + Examples + -------- + >>> from sklearn.ensemble import AdaBoostRegressor + >>> from sklearn.datasets import make_regression + >>> X, y = make_regression(n_features=4, n_informative=2, + ... random_state=0, shuffle=False) + >>> regr = AdaBoostRegressor(random_state=0, n_estimators=100) + >>> regr.fit(X, y) + AdaBoostRegressor(n_estimators=100, random_state=0) + >>> regr.predict([[0, 0, 0, 0]]) + array([4.7972]) + >>> regr.score(X, y) + 0.9771 + + For a detailed example of utilizing :class:`~sklearn.ensemble.AdaBoostRegressor` + to fit a sequence of decision trees as weak learners, please refer to + :ref:`sphx_glr_auto_examples_ensemble_plot_adaboost_regression.py`. + """ + + _parameter_constraints: dict = { + **BaseWeightBoosting._parameter_constraints, + "loss": [StrOptions({"linear", "square", "exponential"})], + } + + def __init__( + self, + estimator=None, + *, + n_estimators=50, + learning_rate=1.0, + loss="linear", + random_state=None, + ): + super().__init__( + estimator=estimator, + n_estimators=n_estimators, + learning_rate=learning_rate, + random_state=random_state, + ) + + self.loss = loss + self.random_state = random_state + + def _validate_estimator(self): + """Check the estimator and set the estimator_ attribute.""" + super()._validate_estimator(default=DecisionTreeRegressor(max_depth=3)) + + def _boost(self, iboost, X, y, sample_weight, random_state): + """Implement a single boost for regression + + Perform a single boost according to the AdaBoost.R2 algorithm and + return the updated sample weights. + + Parameters + ---------- + iboost : int + The index of the current boost iteration. + + X : {array-like, sparse matrix} of shape (n_samples, n_features) + The training input samples. + + y : array-like of shape (n_samples,) + The target values (class labels in classification, real numbers in + regression). + + sample_weight : array-like of shape (n_samples,) + The current sample weights. + + random_state : RandomState + The RandomState instance used if the base estimator accepts a + `random_state` attribute. + Controls also the bootstrap of the weights used to train the weak + learner. + + Returns + ------- + sample_weight : array-like of shape (n_samples,) or None + The reweighted sample weights. + If None then boosting has terminated early. + + estimator_weight : float + The weight for the current boost. + If None then boosting has terminated early. + + estimator_error : float + The regression error for the current boost. + If None then boosting has terminated early. + """ + estimator = self._make_estimator(random_state=random_state) + + # Weighted sampling of the training set with replacement + bootstrap_idx = random_state.choice( + np.arange(_num_samples(X)), + size=_num_samples(X), + replace=True, + p=sample_weight, + ) + + # Fit on the bootstrapped sample and obtain a prediction + # for all samples in the training set + X_ = _safe_indexing(X, bootstrap_idx) + y_ = _safe_indexing(y, bootstrap_idx) + estimator.fit(X_, y_) + y_predict = estimator.predict(X) + + error_vect = np.abs(y_predict - y) + sample_mask = sample_weight > 0 + masked_sample_weight = sample_weight[sample_mask] + masked_error_vector = error_vect[sample_mask] + + error_max = masked_error_vector.max() + if error_max != 0: + masked_error_vector /= error_max + + if self.loss == "square": + masked_error_vector **= 2 + elif self.loss == "exponential": + masked_error_vector = 1.0 - np.exp(-masked_error_vector) + + # Calculate the average loss + estimator_error = (masked_sample_weight * masked_error_vector).sum() + + if estimator_error <= 0: + # Stop if fit is perfect + return sample_weight, 1.0, 0.0 + + elif estimator_error >= 0.5: + # Discard current estimator only if it isn't the only one + if len(self.estimators_) > 1: + self.estimators_.pop(-1) + return None, None, None + + beta = estimator_error / (1.0 - estimator_error) + + # Boost weight using AdaBoost.R2 alg + estimator_weight = self.learning_rate * np.log(1.0 / beta) + + if not iboost == self.n_estimators - 1: + sample_weight[sample_mask] *= np.power( + beta, (1.0 - masked_error_vector) * self.learning_rate + ) + + return sample_weight, estimator_weight, estimator_error + + def _get_median_predict(self, X, limit): + # Evaluate predictions of all estimators + predictions = np.array([est.predict(X) for est in self.estimators_[:limit]]).T + + # Sort the predictions + sorted_idx = np.argsort(predictions, axis=1) + + # Find index of median prediction for each sample + weight_cdf = stable_cumsum(self.estimator_weights_[sorted_idx], axis=1) + median_or_above = weight_cdf >= 0.5 * weight_cdf[:, -1][:, np.newaxis] + median_idx = median_or_above.argmax(axis=1) + + median_estimators = sorted_idx[np.arange(_num_samples(X)), median_idx] + + # Return median predictions + return predictions[np.arange(_num_samples(X)), median_estimators] + + def predict(self, X): + """Predict regression value for X. + + The predicted regression value of an input sample is computed + as the weighted median prediction of the regressors in the ensemble. + + Parameters + ---------- + X : {array-like, sparse matrix} of shape (n_samples, n_features) + The training input samples. Sparse matrix can be CSC, CSR, COO, + DOK, or LIL. COO, DOK, and LIL are converted to CSR. + + Returns + ------- + y : ndarray of shape (n_samples,) + The predicted regression values. + """ + check_is_fitted(self) + X = self._check_X(X) + + return self._get_median_predict(X, len(self.estimators_)) + + def staged_predict(self, X): + """Return staged predictions for X. + + The predicted regression value of an input sample is computed + as the weighted median prediction of the regressors in the ensemble. + + This generator method yields the ensemble prediction after each + iteration of boosting and therefore allows monitoring, such as to + determine the prediction on a test set after each boost. + + Parameters + ---------- + X : {array-like, sparse matrix} of shape (n_samples, n_features) + The training input samples. + + Yields + ------ + y : generator of ndarray of shape (n_samples,) + The predicted regression values. + """ + check_is_fitted(self) + X = self._check_X(X) + + for i, _ in enumerate(self.estimators_, 1): + yield self._get_median_predict(X, limit=i) diff --git a/shared/package-files/0a/0a5db17cbe2d63483cdea58521d0bbd8a8909038392d502aa83826a40833c1d2/batch_norm_backward_reduce_native.h b/shared/package-files/0a/0a5db17cbe2d63483cdea58521d0bbd8a8909038392d502aa83826a40833c1d2/batch_norm_backward_reduce_native.h new file mode 100644 index 0000000000000000000000000000000000000000..f4add9e3a3cd75ce739454371027d9b16894b683 --- /dev/null +++ b/shared/package-files/0a/0a5db17cbe2d63483cdea58521d0bbd8a8909038392d502aa83826a40833c1d2/batch_norm_backward_reduce_native.h @@ -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 batch_norm_backward_reduce_out(const at::Tensor & grad_out, const at::Tensor & input, const at::Tensor & mean, const at::Tensor & invstd, const c10::optional & weight, bool input_g, bool weight_g, bool bias_g, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, at::Tensor & out3); +TORCH_API ::std::tuple batch_norm_backward_reduce_cuda(const at::Tensor & grad_out, const at::Tensor & input, const at::Tensor & mean, const at::Tensor & invstd, const c10::optional & weight, bool input_g, bool weight_g, bool bias_g); +} // namespace native +} // namespace at diff --git a/shared/package-files/0a/0a5f7d9a0e61be6ceac210a1dbf176668db58cb163abe050549e3a4725fea27f/diagonal_backward.h b/shared/package-files/0a/0a5f7d9a0e61be6ceac210a1dbf176668db58cb163abe050549e3a4725fea27f/diagonal_backward.h new file mode 100644 index 0000000000000000000000000000000000000000..9a49dae6f7f78e508c42b9824903be44e5cd4071 --- /dev/null +++ b/shared/package-files/0a/0a5f7d9a0e61be6ceac210a1dbf176668db58cb163abe050549e3a4725fea27f/diagonal_backward.h @@ -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::diagonal_backward(Tensor grad_output, SymInt[] input_sizes, int offset, int dim1, int dim2) -> Tensor +inline at::Tensor diagonal_backward(const at::Tensor & grad_output, at::IntArrayRef input_sizes, int64_t offset, int64_t dim1, int64_t dim2) { + return at::_ops::diagonal_backward::call(grad_output, c10::fromIntArrayRefSlow(input_sizes), offset, dim1, dim2); +} +namespace symint { + template ::value>> + at::Tensor diagonal_backward(const at::Tensor & grad_output, at::IntArrayRef input_sizes, int64_t offset, int64_t dim1, int64_t dim2) { + return at::_ops::diagonal_backward::call(grad_output, c10::fromIntArrayRefSlow(input_sizes), offset, dim1, dim2); + } +} + +// aten::diagonal_backward(Tensor grad_output, SymInt[] input_sizes, int offset, int dim1, int dim2) -> Tensor +inline at::Tensor diagonal_backward_symint(const at::Tensor & grad_output, c10::SymIntArrayRef input_sizes, int64_t offset, int64_t dim1, int64_t dim2) { + return at::_ops::diagonal_backward::call(grad_output, input_sizes, offset, dim1, dim2); +} +namespace symint { + template ::value>> + at::Tensor diagonal_backward(const at::Tensor & grad_output, c10::SymIntArrayRef input_sizes, int64_t offset, int64_t dim1, int64_t dim2) { + return at::_ops::diagonal_backward::call(grad_output, input_sizes, offset, dim1, dim2); + } +} + +// aten::diagonal_backward.out(Tensor grad_output, SymInt[] input_sizes, int offset, int dim1, int dim2, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & diagonal_backward_out(at::Tensor & out, const at::Tensor & grad_output, at::IntArrayRef input_sizes, int64_t offset, int64_t dim1, int64_t dim2) { + return at::_ops::diagonal_backward_out::call(grad_output, c10::fromIntArrayRefSlow(input_sizes), offset, dim1, dim2, out); +} +namespace symint { + template ::value>> + at::Tensor & diagonal_backward_out(at::Tensor & out, const at::Tensor & grad_output, at::IntArrayRef input_sizes, int64_t offset, int64_t dim1, int64_t dim2) { + return at::_ops::diagonal_backward_out::call(grad_output, c10::fromIntArrayRefSlow(input_sizes), offset, dim1, dim2, out); + } +} + +// aten::diagonal_backward.out(Tensor grad_output, SymInt[] input_sizes, int offset, int dim1, int dim2, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & diagonal_backward_outf(const at::Tensor & grad_output, at::IntArrayRef input_sizes, int64_t offset, int64_t dim1, int64_t dim2, at::Tensor & out) { + return at::_ops::diagonal_backward_out::call(grad_output, c10::fromIntArrayRefSlow(input_sizes), offset, dim1, dim2, out); +} +namespace symint { + template ::value>> + at::Tensor & diagonal_backward_outf(const at::Tensor & grad_output, at::IntArrayRef input_sizes, int64_t offset, int64_t dim1, int64_t dim2, at::Tensor & out) { + return at::_ops::diagonal_backward_out::call(grad_output, c10::fromIntArrayRefSlow(input_sizes), offset, dim1, dim2, out); + } +} + +// aten::diagonal_backward.out(Tensor grad_output, SymInt[] input_sizes, int offset, int dim1, int dim2, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & diagonal_backward_symint_out(at::Tensor & out, const at::Tensor & grad_output, c10::SymIntArrayRef input_sizes, int64_t offset, int64_t dim1, int64_t dim2) { + return at::_ops::diagonal_backward_out::call(grad_output, input_sizes, offset, dim1, dim2, out); +} +namespace symint { + template ::value>> + at::Tensor & diagonal_backward_out(at::Tensor & out, const at::Tensor & grad_output, c10::SymIntArrayRef input_sizes, int64_t offset, int64_t dim1, int64_t dim2) { + return at::_ops::diagonal_backward_out::call(grad_output, input_sizes, offset, dim1, dim2, out); + } +} + +// aten::diagonal_backward.out(Tensor grad_output, SymInt[] input_sizes, int offset, int dim1, int dim2, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & diagonal_backward_symint_outf(const at::Tensor & grad_output, c10::SymIntArrayRef input_sizes, int64_t offset, int64_t dim1, int64_t dim2, at::Tensor & out) { + return at::_ops::diagonal_backward_out::call(grad_output, input_sizes, offset, dim1, dim2, out); +} +namespace symint { + template ::value>> + at::Tensor & diagonal_backward_outf(const at::Tensor & grad_output, c10::SymIntArrayRef input_sizes, int64_t offset, int64_t dim1, int64_t dim2, at::Tensor & out) { + return at::_ops::diagonal_backward_out::call(grad_output, input_sizes, offset, dim1, dim2, out); + } +} + +} diff --git a/shared/package-files/0a/0a5feebca7ccabdbbc85fead592c002fcf4f8c56ced8d9016b9a4708d546fb0c/screen-bce.gnome b/shared/package-files/0a/0a5feebca7ccabdbbc85fead592c002fcf4f8c56ced8d9016b9a4708d546fb0c/screen-bce.gnome new file mode 100644 index 0000000000000000000000000000000000000000..70ad28cbcf06fca1f5ccb229b5e7e14808fb67ad Binary files /dev/null and b/shared/package-files/0a/0a5feebca7ccabdbbc85fead592c002fcf4f8c56ced8d9016b9a4708d546fb0c/screen-bce.gnome differ diff --git a/shared/package-files/0a/0a6069347374646d1f8391184445c8d4f4edc159851acaae755bdc641000d4a7/emots b/shared/package-files/0a/0a6069347374646d1f8391184445c8d4f4edc159851acaae755bdc641000d4a7/emots new file mode 100644 index 0000000000000000000000000000000000000000..37518ed6aa8b6349834bfe3000ffbe43afaec1a6 Binary files /dev/null and b/shared/package-files/0a/0a6069347374646d1f8391184445c8d4f4edc159851acaae755bdc641000d4a7/emots differ diff --git a/shared/package-files/0a/0a6069347374646d1f8391184445c8d4f4edc159851acaae755bdc641000d4a7/gs6300 b/shared/package-files/0a/0a6069347374646d1f8391184445c8d4f4edc159851acaae755bdc641000d4a7/gs6300 new file mode 100644 index 0000000000000000000000000000000000000000..37518ed6aa8b6349834bfe3000ffbe43afaec1a6 Binary files /dev/null and b/shared/package-files/0a/0a6069347374646d1f8391184445c8d4f4edc159851acaae755bdc641000d4a7/gs6300 differ diff --git a/shared/package-files/0a/0a607bf7006dee96210afc2c718f3627eaf94d36ca66a81d314ba683c2488f39/local_proj.py b/shared/package-files/0a/0a607bf7006dee96210afc2c718f3627eaf94d36ca66a81d314ba683c2488f39/local_proj.py new file mode 100644 index 0000000000000000000000000000000000000000..f543e12426ccd326ea128d920eca45adb5fbbd23 --- /dev/null +++ b/shared/package-files/0a/0a607bf7006dee96210afc2c718f3627eaf94d36ca66a81d314ba683c2488f39/local_proj.py @@ -0,0 +1,469 @@ +""" +Local Projections (LP) estimator for impulse response functions. + +References +---------- +Jordà, Ò. (2005). Estimation and Inference of Impulse Responses by Local +Projections. *American Economic Review*, 95(1), 161-182. +""" + +from __future__ import annotations + +import numpy as np +import pandas as pd +from scipy import stats + +from statsmodels.graphics.utils import _import_mpl +from statsmodels.regression.linear_model import OLS +from statsmodels.tools.validation import array_like, int_like, string_like + +__all__ = ["LocalProjections"] + + +def _hac_bandwidth(h, nw_lags=None): + """ + Return the Newey-West bandwidth for an h-step-ahead LP regression. + + Parameters + ---------- + h : int + The regression horizon. + nw_lags : int or None, optional + Override the automatic bandwidth. If None (default), the bandwidth + is set to at least `h` lags, since at horizon `h` the LP residual + is an MA(h) process by construction. + + Returns + ------- + int + The number of lags to use in the Newey-West HAC covariance + estimator. + """ + if nw_lags is not None: + return nw_lags + # At horizon h the LP residual is an MA(h) by construction; use at + # least h lags. Fall back to a small positive value at h=0. + return max(h, int(np.ceil(4.0 * (max(h, 1) / 100.0) ** (2.0 / 9.0)))) + + +def _nw_cov(X, resid, nlags): + """ + Newey-West HAC sandwich covariance (X'X)^{-1} S (X'X)^{-1} / T. + + Parameters + ---------- + X : ndarray + Regressor design matrix, of shape (T, k). + resid : ndarray + OLS residuals, of shape (T,). + nlags : int + Number of lags to include in the Bartlett-kernel weighted sum. + + Returns + ------- + ndarray + HAC sandwich covariance matrix, of shape (k, k). + """ + T, k = X.shape + scores = X * resid[:, None] # (T, k) score contributions + S = scores.T @ scores / T # gamma_0 + for lag in range(1, nlags + 1): + w = 1.0 - lag / (nlags + 1.0) # Bartlett kernel + gamma = scores[lag:].T @ scores[:-lag] / T + S += w * (gamma + gamma.T) + XtX_inv = np.linalg.inv(X.T @ X / T) + return XtX_inv @ S @ XtX_inv / T + + +class LocalProjectionsResults: + """ + Results from a fitted :class:`LocalProjections` model. + + Attributes + ---------- + irfs : ndarray, shape (H+1, n_endog, n_shock) + Estimated impulse responses. ``irfs[h, i, j]`` is the response of + variable ``i`` to shock ``j`` at horizon ``h``. + stderr : ndarray, shape (H+1, n_endog, n_shock) + Newey-West standard errors for each IRF coefficient. + model : LocalProjections + The model instance. + nobs : int + Number of observations used (after trimming for lags and max horizon). + """ + + def __init__(self, model, irfs, stderr): + self.model = model + self.irfs = irfs + self.stderr = stderr + self.nobs = model._nobs + + @property + def horizons(self): + """The maximum IRF horizon H.""" + return self.model.horizons + + def conf_int(self, alpha=0.05): + """Pointwise confidence intervals for all impulse responses. + + Parameters + ---------- + alpha : float, optional + Significance level (default 0.05 gives 95 % intervals). + + Returns + ------- + ci : ndarray, shape (H+1, n_endog, n_shock, 2) + ``ci[h, i, j, 0]`` = lower bound, + ``ci[h, i, j, 1]`` = upper bound. + """ + z = stats.norm.ppf(1.0 - alpha / 2.0) + lower = self.irfs - z * self.stderr + upper = self.irfs + z * self.stderr + return np.stack([lower, upper], axis=-1) + + def cumulative_effects(self): + """Cumulative sum of IRFs across horizons. + + Returns + ------- + ndarray, shape (H+1, n_endog, n_shock) + """ + return np.cumsum(self.irfs, axis=0) + + def plot_irfs(self, impulse=None, response=None, alpha=0.1, + figsize=None, n_cols=None): + """Plot impulse response functions with confidence bands. + + Parameters + ---------- + impulse : int or str or None, optional + Index or name of the shock variable. Plots all shocks if None. + response : int or str or None, optional + Index or name of the response variable. Plots all responses + if None. + alpha : float, optional + Significance level for confidence bands. + figsize : tuple or None, optional + Figure size passed to :func:`matplotlib.pyplot.subplots`. + n_cols : int or None, optional + Number of subplot columns. If None, chosen automatically. + + Returns + ------- + fig : matplotlib.figure.Figure + """ + plt = _import_mpl() + + var_names = self.model.endog_names + shock_names = self.model.shock_names + H = self.horizons + ci = self.conf_int(alpha=alpha) + x = np.arange(H + 1) + + imp_idx = (list(range(len(shock_names))) + if impulse is None + else [shock_names.index(impulse) + if isinstance(impulse, str) else impulse]) + resp_idx = (list(range(len(var_names))) + if response is None + else [var_names.index(response) + if isinstance(response, str) else response]) + + n_plots = len(imp_idx) * len(resp_idx) + n_cols = n_cols or min(3, n_plots) + n_rows = int(np.ceil(n_plots / n_cols)) + fig, axes = plt.subplots( + n_rows, n_cols, + figsize=figsize or (4 * n_cols, 3 * n_rows), + squeeze=False, + ) + + plot_num = 0 + for j in imp_idx: + for i in resp_idx: + ax = axes[plot_num // n_cols, plot_num % n_cols] + ax.plot(x, self.irfs[:, i, j], color="steelblue", lw=1.5) + ax.fill_between( + x, ci[:, i, j, 0], ci[:, i, j, 1], + alpha=0.25, color="steelblue", + ) + ax.axhline(0, color="black", lw=0.8, ls="--") + ax.set_title(f"{shock_names[j]} → {var_names[i]}") + ax.set_xlabel("Horizon") + plot_num += 1 + + for k in range(plot_num, n_rows * n_cols): + axes[k // n_cols, k % n_cols].set_visible(False) + + fig.tight_layout() + return fig + + def __repr__(self): + return ( + f"LocalProjectionsResults(" + f"n_endog={self.irfs.shape[1]}, " + f"n_shock={self.irfs.shape[2]}, " + f"horizons={self.horizons}, " + f"nobs={self.nobs})" + ) + + +class LocalProjections: + r""" + Local Projections estimator for impulse response functions. + + For each horizon :math:`h = 0, 1, \ldots, H`, the impulse response is + estimated by running a separate OLS regression + + .. math:: + + y_{t+h} = \alpha_h + + \boldsymbol{\beta}_h \mathbf{z}_t + + \boldsymbol{\Gamma}_h \mathbf{x}_t + + \varepsilon_{t+h}, + + where :math:`\mathbf{z}_t` are the shock variables and + :math:`\mathbf{x}_t` contains lagged controls. Standard errors are + Newey-West HAC-corrected with a bandwidth of at least :math:`h` lags to + account for the MA(:math:`h`) serial correlation in the residuals. + + Parameters + ---------- + endog : array_like, shape (T, n) or (T,) + Endogenous variables. A 1-D input is treated as a single variable. + shock_idx : int or sequence of int, optional + Column index/indices within *endog* whose contemporaneous value + enters as the shock. Defaults to ``0`` (the first variable). + lags : int, optional + Number of lagged values of *all* endog variables to include as + controls. Defaults to ``1``. + horizons : int, optional + Maximum IRF horizon :math:`H`. Regressions are run for + :math:`h = 0, 1, \ldots, H`. Defaults to ``12``. + exog : array_like or None, optional + Additional exogenous controls (e.g. time dummies, external + instruments), of shape (T, k). Do **not** include a constant; it + is added automatically. + trend : {"n", "c", "ct"}, optional + Deterministic trend: 'n' adds no trend, 'c' adds a constant + (default), and 'ct' adds a constant plus linear trend. + nw_lags : int or None, optional + Override the automatic Newey-West bandwidth. When *None* (default) + the bandwidth at horizon :math:`h` is + ``max(h, ceil(4*(max(h,1)/100)^{2/9}))``. + + See Also + -------- + statsmodels.tsa.vector_ar.var_model.VAR : Vector autoregression model, + whose Cholesky-orthogonalized impulse responses are the VAR-based + analogue of the estimator here. + statsmodels.tsa.vector_ar.svar_model.SVAR : Structural vector + autoregression model, for identification schemes other than a + simple recursive ordering. + statsmodels.tsa.vector_ar.irf.IRAnalysis : Impulse response object + returned by :meth:`VAR.fit`, sharing the same "shock ordered + first" identification assumption. + + Notes + ----- + Identification follows a recursive (Cholesky-style) scheme in which the + variable(s) named by `shock_idx` are assumed to be ordered first, i.e. + contemporaneously exogenous to the remaining variables in `endog`: only + the *lagged* values of the other variables enter each regression, never + their current-period values. This is the same "shock ordered first" + assumption underlying Cholesky-orthogonalized VAR impulse responses + (see :class:`~statsmodels.tsa.vector_ar.irf.IRAnalysis`), and the fitted + coefficient on `shock_idx` only has a structural impulse-response + interpretation to the extent that assumption is credible for the data + at hand. When `shock_idx` names more than one column, those columns + enter the regression together as ordinary simultaneous regressors with + no orthogonalization among themselves; their coefficients are only + separately identified as shocks if those variables are themselves + mutually contemporaneously exogenous. + + References + ---------- + Jordà, Ò. (2005). Estimation and Inference of Impulse Responses by Local + Projections. *American Economic Review*, 95(1), 161–182. + + Examples + -------- + >>> import numpy as np + >>> from statsmodels.tsa.api import LocalProjections + >>> rng = np.random.default_rng(0) + >>> T, n = 200, 2 + >>> e = rng.standard_normal((T, n)) + >>> y = np.cumsum(e, axis=0) + >>> lp = LocalProjections(y, shock_idx=0, lags=2, horizons=8) + >>> res = lp.fit() + >>> res.irfs.shape + (9, 2, 1) + """ + + def __init__( + self, + endog, + shock_idx=0, + lags=1, + horizons=12, + exog=None, + trend="c", + nw_lags=None, + ): + # Capture column names before array_like strips them. + _endog_col_names = (list(endog.columns) + if isinstance(endog, pd.DataFrame) else None) + + endog = array_like(endog, "endog", ndim=2, optional=False, dtype=float) + lags = int_like(lags, "lags", optional=False) + horizons = int_like(horizons, "horizons", optional=False) + exog = array_like(exog, "exog", ndim=2, optional=True, dtype=float) + trend = string_like(trend, "trend", optional=False, options=("n", "c", "ct")) + nw_lags = int_like(nw_lags, "nw_lags", optional=True) + + self.endog = endog + t, n = self.endog.shape + + if isinstance(shock_idx, (int, np.integer)): + shock_idx_list = [int(shock_idx)] + else: + shock_idx_list = [int(val) for val in shock_idx] + for idx in shock_idx_list: + if not (0 <= idx < n): + raise ValueError( + f"shock_idx={idx} out of range for endog with {n} columns." + ) + self.shock_idx = shock_idx_list + + if lags < 0: + raise ValueError("lags must be non-negative.") + if horizons < 0: + raise ValueError("horizons must be non-negative.") + + self.lags = int(lags) + self.horizons = int(horizons) + self.trend = trend + self.nw_lags = nw_lags + + if exog is not None: + exog = np.asarray(exog, dtype=float) + if exog.shape[0] != t: + raise ValueError( + "exog must have the same number of rows as endog." + ) + self.exog = exog + + # Variable names for output / plotting. + if _endog_col_names is not None: + self.endog_names = _endog_col_names + else: + self.endog_names = [f"y{i}" for i in range(n)] + self.shock_names = [self.endog_names[j] for j in shock_idx_list] + + # Usable obs: first `lags` rows consumed by lag construction; + # last `horizons` rows have no h-step-ahead LHS. + self._nobs = t - lags - horizons + + # ------------------------------------------------------------------ + # Internal helpers + # ------------------------------------------------------------------ + + def _build_regressors(self, t_start, t_end): + """ + Construct the RHS design matrix for t = t_start, ..., t_end - 1. + + Parameters + ---------- + t_start : int + First row index (inclusive) of the estimation sample. + t_end : int + Last row index (exclusive) of the estimation sample. + + Returns + ------- + X : ndarray + The design matrix, of shape (n_obs, k). + shock_cols : list of int + Column indices of the shock variables. + + Notes + ----- + Column order is [shock_0, ..., shock_s | lag1_y0, ..., lag1_yn, + lag2_y0, ... | exog | trend terms]. + """ + endog = self.endog + parts = [] + + # Contemporaneous shocks (columns come first so their indices are + # always 0, 1, ..., n_shock-1). + parts.append(endog[t_start:t_end, self.shock_idx]) + shock_cols = list(range(len(self.shock_idx))) + + # Lagged controls. + for lag in range(1, self.lags + 1): + parts.append(endog[t_start - lag : t_end - lag, :]) + + # Exogenous. + if self.exog is not None: + parts.append(self.exog[t_start:t_end]) + + # Deterministic terms. + n_obs = t_end - t_start + if self.trend in ("c", "ct"): + parts.append(np.ones((n_obs, 1))) + if self.trend == "ct": + # Centered (mean zero) time index rather than the raw absolute + # sample position: leaves the fitted shock coefficients and + # fitted values unchanged (only the intercept absorbs the + # shift) while keeping the trend column well-conditioned + # against the constant column for long series. + idx = np.arange(n_obs, dtype=float) + idx -= idx.mean() + parts.append(idx[:, None]) + + return np.concatenate(parts, axis=1), shock_cols + + # ------------------------------------------------------------------ + # Fit + # ------------------------------------------------------------------ + + def fit(self): + """Estimate LP-IRFs by running H+1 OLS regressions. + + Returns + ------- + LocalProjectionsResults + """ + H = self.horizons + lags = self.lags + endog = self.endog + T, n = endog.shape + n_shock = len(self.shock_idx) + + t_start = lags + t_end = T - H # exclusive upper bound + + if t_end <= t_start: + raise ValueError( + f"Not enough observations: need T > lags + horizons = " + f"{lags + H}, got T = {T}." + ) + + X, shock_cols = self._build_regressors(t_start, t_end) + + irfs = np.zeros((H + 1, n, n_shock)) + stderr = np.zeros((H + 1, n, n_shock)) + + for h in range(H + 1): + Y_h = endog[t_start + h : t_end + h, :] # (n_obs, n) + nlags = _hac_bandwidth(h, self.nw_lags) + + for i in range(n): + res = OLS(Y_h[:, i], X).fit() + V = _nw_cov(X, res.resid, nlags) + for s_pos, s_col in enumerate(shock_cols): + irfs[h, i, s_pos] = res.params[s_col] + stderr[h, i, s_pos] = np.sqrt(max(V[s_col, s_col], 0.0)) + + return LocalProjectionsResults(self, irfs, stderr) diff --git a/shared/package-files/0a/0a60a82d6d011185b003b4ea13597783ed6596628c95d337a7fd64a2b357a1d7/test_coordinate_descent.py b/shared/package-files/0a/0a60a82d6d011185b003b4ea13597783ed6596628c95d337a7fd64a2b357a1d7/test_coordinate_descent.py new file mode 100644 index 0000000000000000000000000000000000000000..70226210c010dc8c3ee350933cea569c6be23faa --- /dev/null +++ b/shared/package-files/0a/0a60a82d6d011185b003b4ea13597783ed6596628c95d337a7fd64a2b357a1d7/test_coordinate_descent.py @@ -0,0 +1,1805 @@ +# Authors: The scikit-learn developers +# SPDX-License-Identifier: BSD-3-Clause + +import warnings +from copy import deepcopy + +import joblib +import numpy as np +import pytest +from scipy import interpolate, sparse + +from sklearn.base import clone, config_context, is_classifier +from sklearn.datasets import load_diabetes, make_regression +from sklearn.exceptions import ConvergenceWarning +from sklearn.linear_model import ( + ElasticNet, + ElasticNetCV, + Lasso, + LassoCV, + LassoLars, + LassoLarsCV, + LinearRegression, + MultiTaskElasticNet, + MultiTaskElasticNetCV, + MultiTaskLasso, + MultiTaskLassoCV, + Ridge, + RidgeClassifier, + RidgeClassifierCV, + RidgeCV, + enet_path, + lars_path, + lasso_path, +) +from sklearn.linear_model._coordinate_descent import _set_order +from sklearn.model_selection import ( + BaseCrossValidator, + GridSearchCV, + LeaveOneGroupOut, +) +from sklearn.model_selection._split import GroupsConsumerMixin +from sklearn.pipeline import make_pipeline +from sklearn.preprocessing import StandardScaler +from sklearn.utils import check_array +from sklearn.utils._testing import ( + TempMemmap, + assert_allclose, + assert_almost_equal, + assert_array_almost_equal, + assert_array_equal, + assert_array_less, + ignore_warnings, +) +from sklearn.utils.fixes import COO_CONTAINERS, CSC_CONTAINERS, CSR_CONTAINERS + + +@pytest.mark.parametrize("order", ["C", "F"]) +@pytest.mark.parametrize("input_order", ["C", "F"]) +def test_set_order_dense(order, input_order): + """Check that _set_order returns arrays with promised order.""" + X = np.array([[0], [0], [0]], order=input_order) + y = np.array([0, 0, 0], order=input_order) + X2, y2 = _set_order(X, y, order=order) + if order == "C": + assert X2.flags["C_CONTIGUOUS"] + assert y2.flags["C_CONTIGUOUS"] + elif order == "F": + assert X2.flags["F_CONTIGUOUS"] + assert y2.flags["F_CONTIGUOUS"] + + if order == input_order: + assert X is X2 + assert y is y2 + + +@pytest.mark.parametrize("order", ["C", "F"]) +@pytest.mark.parametrize("input_order", ["C", "F"]) +@pytest.mark.parametrize("coo_container", COO_CONTAINERS) +def test_set_order_sparse(order, input_order, coo_container): + """Check that _set_order returns sparse matrices in promised format.""" + X = coo_container(np.array([[0], [0], [0]])) + y = coo_container(np.array([0, 0, 0])) + sparse_format = "csc" if input_order == "F" else "csr" + X = X.asformat(sparse_format) + y = X.asformat(sparse_format) + X2, y2 = _set_order(X, y, order=order) + + format = "csc" if order == "F" else "csr" + assert sparse.issparse(X2) and X2.format == format + assert sparse.issparse(y2) and y2.format == format + + +def test_lasso_zero(): + # Check that the lasso can handle zero data without crashing + X = [[0], [0], [0]] + y = [0, 0, 0] + # _cd_fast.pyx tests for gap < tol, but here we get 0.0 < 0.0 + # should probably be changed to gap <= tol ? + with ignore_warnings(category=ConvergenceWarning): + clf = Lasso(alpha=0.1).fit(X, y) + pred = clf.predict([[1], [2], [3]]) + assert_array_almost_equal(clf.coef_, [0]) + assert_array_almost_equal(pred, [0, 0, 0]) + assert_almost_equal(clf.dual_gap_, 0) + + +@pytest.mark.filterwarnings("ignore::sklearn.exceptions.ConvergenceWarning") +def test_enet_nonfinite_params(): + # Check ElasticNet throws ValueError when dealing with non-finite parameter + # values + rng = np.random.RandomState(0) + n_samples = 10 + fmax = np.finfo(np.float64).max + X = fmax * rng.uniform(size=(n_samples, 2)) + y = rng.randint(0, 2, size=n_samples) + + clf = ElasticNet(alpha=0.1) + msg = "Coordinate descent iterations resulted in non-finite parameter values" + with pytest.raises(ValueError, match=msg): + clf.fit(X, y) + + +def test_lasso_toy(): + # Test Lasso on a toy example for various values of alpha. + # When validating this against glmnet notice that glmnet divides it + # against nobs. + + X = [[-1], [0], [1]] + Y = [-1, 0, 1] # just a straight line + T = [[2], [3], [4]] # test sample + + clf = Lasso(alpha=1e-8) + clf.fit(X, Y) + pred = clf.predict(T) + assert_array_almost_equal(clf.coef_, [1]) + assert_array_almost_equal(pred, [2, 3, 4]) + assert_almost_equal(clf.dual_gap_, 0) + + clf = Lasso(alpha=0.1) + clf.fit(X, Y) + pred = clf.predict(T) + assert_array_almost_equal(clf.coef_, [0.85]) + assert_array_almost_equal(pred, [1.7, 2.55, 3.4]) + assert_almost_equal(clf.dual_gap_, 0) + + clf = Lasso(alpha=0.5) + clf.fit(X, Y) + pred = clf.predict(T) + assert_array_almost_equal(clf.coef_, [0.25]) + assert_array_almost_equal(pred, [0.5, 0.75, 1.0]) + assert_almost_equal(clf.dual_gap_, 0) + + clf = Lasso(alpha=1) + clf.fit(X, Y) + pred = clf.predict(T) + assert_array_almost_equal(clf.coef_, [0.0]) + assert_array_almost_equal(pred, [0, 0, 0]) + assert_almost_equal(clf.dual_gap_, 0) + + +def test_enet_toy(): + # Test ElasticNet for various parameters of alpha and l1_ratio. + # Actually, the parameters alpha = 0 should not be allowed. However, + # we test it as a border case. + # ElasticNet is tested with and without precomputed Gram matrix + + X = np.array([[-1.0], [0.0], [1.0]]) + Y = [-1, 0, 1] # just a straight line + T = [[2.0], [3.0], [4.0]] # test sample + + # this should be the same as lasso + clf = ElasticNet(alpha=1e-8, l1_ratio=1.0) + clf.fit(X, Y) + pred = clf.predict(T) + assert_array_almost_equal(clf.coef_, [1]) + assert_array_almost_equal(pred, [2, 3, 4]) + assert_almost_equal(clf.dual_gap_, 0) + + clf = ElasticNet(alpha=0.5, l1_ratio=0.3, max_iter=100, precompute=False) + clf.fit(X, Y) + pred = clf.predict(T) + assert_array_almost_equal(clf.coef_, [0.50819], decimal=3) + assert_array_almost_equal(pred, [1.0163, 1.5245, 2.0327], decimal=3) + assert_almost_equal(clf.dual_gap_, 0) + + clf.set_params(max_iter=100, precompute=True) + clf.fit(X, Y) # with Gram + pred = clf.predict(T) + assert_array_almost_equal(clf.coef_, [0.50819], decimal=3) + assert_array_almost_equal(pred, [1.0163, 1.5245, 2.0327], decimal=3) + assert_almost_equal(clf.dual_gap_, 0) + + clf.set_params(max_iter=100, precompute=np.dot(X.T, X)) + clf.fit(X, Y) # with Gram + pred = clf.predict(T) + assert_array_almost_equal(clf.coef_, [0.50819], decimal=3) + assert_array_almost_equal(pred, [1.0163, 1.5245, 2.0327], decimal=3) + assert_almost_equal(clf.dual_gap_, 0) + + clf = ElasticNet(alpha=0.5, l1_ratio=0.5) + clf.fit(X, Y) + pred = clf.predict(T) + assert_array_almost_equal(clf.coef_, [0.45454], 3) + assert_array_almost_equal(pred, [0.9090, 1.3636, 1.8181], 3) + assert_almost_equal(clf.dual_gap_, 0) + + +def test_lasso_dual_gap(): + """ + Check that Lasso.dual_gap_ matches its objective formulation, with the + datafit normalized by n_samples + """ + X, y, _, _ = build_dataset(n_samples=10, n_features=30) + n_samples = len(y) + alpha = 0.01 * np.max(np.abs(X.T @ y)) / n_samples + clf = Lasso(alpha=alpha, fit_intercept=False).fit(X, y) + w = clf.coef_ + R = y - X @ w + primal = 0.5 * np.mean(R**2) + clf.alpha * np.sum(np.abs(w)) + # dual pt: R / n_samples, dual constraint: norm(X.T @ theta, inf) <= alpha + R /= np.max(np.abs(X.T @ R) / (n_samples * alpha)) + dual = 0.5 * (np.mean(y**2) - np.mean((y - R) ** 2)) + assert_allclose(clf.dual_gap_, primal - dual) + + +def build_dataset(n_samples=50, n_features=200, n_informative_features=10, n_targets=1): + """ + build an ill-posed linear regression problem with many noisy features and + comparatively few samples + """ + random_state = np.random.RandomState(0) + if n_targets > 1: + w = random_state.randn(n_features, n_targets) + else: + w = random_state.randn(n_features) + w[n_informative_features:] = 0.0 + X = random_state.randn(n_samples, n_features) + y = np.dot(X, w) + X_test = random_state.randn(n_samples, n_features) + y_test = np.dot(X_test, w) + return X, y, X_test, y_test + + +def test_lasso_cv(): + X, y, X_test, y_test = build_dataset() + max_iter = 150 + clf = LassoCV(alphas=10, eps=1e-3, max_iter=max_iter, cv=3).fit(X, y) + assert_almost_equal(clf.alpha_, 0.056, 2) + + clf = LassoCV(alphas=10, eps=1e-3, max_iter=max_iter, precompute=True, cv=3) + clf.fit(X, y) + assert_almost_equal(clf.alpha_, 0.056, 2) + + # Check that the lars and the coordinate descent implementation + # select a similar alpha + lars = LassoLarsCV(max_iter=30, cv=3).fit(X, y) + # for this we check that they don't fall in the grid of + # clf.alphas further than 1 + assert ( + np.abs( + np.searchsorted(clf.alphas_[::-1], lars.alpha_) + - np.searchsorted(clf.alphas_[::-1], clf.alpha_) + ) + <= 1 + ) + # check that they also give a similar MSE + mse_lars = interpolate.interp1d(lars.cv_alphas_, lars.mse_path_.T) + assert_allclose(mse_lars(clf.alphas_[5]).mean(), clf.mse_path_[5].mean(), rtol=1e-2) + + # test set + assert clf.score(X_test, y_test) > 0.99 + + +def test_lasso_cv_with_some_model_selection(): + from sklearn import datasets + from sklearn.model_selection import ShuffleSplit + + diabetes = datasets.load_diabetes() + X = diabetes.data + y = diabetes.target + + pipe = make_pipeline(StandardScaler(), LassoCV(cv=ShuffleSplit(random_state=0))) + pipe.fit(X, y) + + +def test_lasso_cv_positive_constraint(): + X, y, X_test, y_test = build_dataset() + max_iter = 500 + + # Ensure the unconstrained fit has a negative coefficient + clf_unconstrained = LassoCV(alphas=3, eps=1e-1, max_iter=max_iter, cv=2, n_jobs=1) + clf_unconstrained.fit(X, y) + assert min(clf_unconstrained.coef_) < 0 + + # On same data, constrained fit has non-negative coefficients + clf_constrained = LassoCV( + alphas=3, eps=1e-1, max_iter=max_iter, positive=True, cv=2, n_jobs=1 + ) + clf_constrained.fit(X, y) + assert min(clf_constrained.coef_) >= 0 + + +@pytest.mark.parametrize( + "alphas, err_type, err_msg", + [ + ((1, -1, -100), ValueError, r"alphas\[1\] == -1, must be >= 0.0."), + ( + (-0.1, -1.0, -10.0), + ValueError, + r"alphas\[0\] == -0.1, must be >= 0.0.", + ), + ( + (1, 1.0, "1"), + TypeError, + r"alphas\[2\] must be an instance of float, not str", + ), + ], +) +def test_lassocv_alphas_validation(alphas, err_type, err_msg): + """Check the `alphas` validation in LassoCV.""" + + n_samples, n_features = 5, 5 + rng = np.random.RandomState(0) + X = rng.randn(n_samples, n_features) + y = rng.randint(0, 2, n_samples) + lassocv = LassoCV(alphas=alphas) + with pytest.raises(err_type, match=err_msg): + lassocv.fit(X, y) + + +def _scale_alpha_inplace(estimator, n_samples): + """Rescale the parameter alpha from when the estimator is evoked with + normalize set to True as if it were evoked in a Pipeline with normalize set + to False and with a StandardScaler. + """ + if ("alpha" not in estimator.get_params()) and ( + "alphas" not in estimator.get_params() + ): + return + + if isinstance(estimator, (RidgeCV, RidgeClassifierCV)): + # alphas is not validated at this point and can be a list. + # We convert it to a np.ndarray to make sure broadcasting + # is used. + alphas = np.asarray(estimator.alphas) * n_samples + return estimator.set_params(alphas=alphas) + if isinstance(estimator, (Lasso, LassoLars, MultiTaskLasso)): + alpha = estimator.alpha * np.sqrt(n_samples) + if isinstance(estimator, (Ridge, RidgeClassifier)): + alpha = estimator.alpha * n_samples + if isinstance(estimator, (ElasticNet, MultiTaskElasticNet)): + if estimator.l1_ratio == 1: + alpha = estimator.alpha * np.sqrt(n_samples) + elif estimator.l1_ratio == 0: + alpha = estimator.alpha * n_samples + else: + # To avoid silent errors in case of refactoring + raise NotImplementedError + + estimator.set_params(alpha=alpha) + + +@pytest.mark.filterwarnings("ignore::sklearn.exceptions.ConvergenceWarning") +@pytest.mark.parametrize( + "LinearModel, params", + [ + (Lasso, {"tol": 1e-16, "alpha": 0.1}), + (LassoCV, {"tol": 1e-16}), + (ElasticNetCV, {}), + (RidgeClassifier, {"solver": "sparse_cg", "alpha": 0.1}), + (ElasticNet, {"tol": 1e-16, "l1_ratio": 1, "alpha": 0.01}), + (ElasticNet, {"tol": 1e-16, "l1_ratio": 0, "alpha": 0.01}), + (Ridge, {"solver": "sparse_cg", "tol": 1e-12, "alpha": 0.1}), + (LinearRegression, {}), + (RidgeCV, {}), + (RidgeClassifierCV, {}), + ], +) +@pytest.mark.parametrize("csr_container", CSR_CONTAINERS) +def test_model_pipeline_same_dense_and_sparse(LinearModel, params, csr_container): + # Test that linear model preceded by StandardScaler in the pipeline and + # with normalize set to False gives the same y_pred and the same .coef_ + # given X sparse or dense + + model_dense = make_pipeline(StandardScaler(with_mean=False), LinearModel(**params)) + + model_sparse = make_pipeline(StandardScaler(with_mean=False), LinearModel(**params)) + + # prepare the data + rng = np.random.RandomState(0) + n_samples = 200 + n_features = 2 + X = rng.randn(n_samples, n_features) + X[X < 0.1] = 0.0 + + X_sparse = csr_container(X) + y = rng.rand(n_samples) + + if is_classifier(model_dense): + y = np.sign(y) + + model_dense.fit(X, y) + model_sparse.fit(X_sparse, y) + + assert_allclose(model_sparse[1].coef_, model_dense[1].coef_) + y_pred_dense = model_dense.predict(X) + y_pred_sparse = model_sparse.predict(X_sparse) + assert_allclose(y_pred_dense, y_pred_sparse) + + assert_allclose(model_dense[1].intercept_, model_sparse[1].intercept_) + + +def test_lasso_path_return_models_vs_new_return_gives_same_coefficients(): + # Test that lasso_path with lars_path style output gives the + # same result + + # Some toy data + X = np.array([[1, 2, 3.1], [2.3, 5.4, 4.3]]).T + y = np.array([1, 2, 3.1]) + alphas = [5.0, 1.0, 0.5] + + # Use lars_path and lasso_path(new output) with 1D linear interpolation + # to compute the same path + alphas_lars, _, coef_path_lars = lars_path(X, y, method="lasso") + coef_path_cont_lars = interpolate.interp1d( + alphas_lars[::-1], coef_path_lars[:, ::-1] + ) + alphas_lasso2, coef_path_lasso2, _ = lasso_path(X, y, alphas=alphas) + coef_path_cont_lasso = interpolate.interp1d( + alphas_lasso2[::-1], coef_path_lasso2[:, ::-1] + ) + + assert_array_almost_equal( + coef_path_cont_lasso(alphas), coef_path_cont_lars(alphas), decimal=1 + ) + + +def test_enet_path(): + # We use a large number of samples and of informative features so that + # the l1_ratio selected is more toward ridge than lasso + X, y, X_test, y_test = build_dataset( + n_samples=200, n_features=100, n_informative_features=100 + ) + max_iter = 150 + + # Here we have a small number of iterations, and thus the + # ElasticNet might not converge. This is to speed up tests + clf = ElasticNetCV( + alphas=[0.01, 0.05, 0.1], eps=2e-3, l1_ratio=[0.5, 0.7], cv=3, max_iter=max_iter + ) + ignore_warnings(clf.fit)(X, y) + # Well-conditioned settings, we should have selected our + # smallest penalty + assert_almost_equal(clf.alpha_, min(clf.alphas_)) + # Non-sparse ground truth: we should have selected an elastic-net + # that is closer to ridge than to lasso + assert clf.l1_ratio_ == min(clf.l1_ratio) + + clf = ElasticNetCV( + alphas=[0.01, 0.05, 0.1], + eps=2e-3, + l1_ratio=[0.5, 0.7], + cv=3, + max_iter=max_iter, + precompute=True, + ) + ignore_warnings(clf.fit)(X, y) + + # Well-conditioned settings, we should have selected our + # smallest penalty + assert_almost_equal(clf.alpha_, min(clf.alphas_)) + # Non-sparse ground truth: we should have selected an elastic-net + # that is closer to ridge than to lasso + assert clf.l1_ratio_ == min(clf.l1_ratio) + + # We are in well-conditioned settings with low noise: we should + # have a good test-set performance + assert clf.score(X_test, y_test) > 0.99 + + # Multi-output/target case + X, y, X_test, y_test = build_dataset(n_features=10, n_targets=3) + clf = MultiTaskElasticNetCV( + alphas=5, eps=2e-3, l1_ratio=[0.5, 0.7], cv=3, max_iter=max_iter + ) + ignore_warnings(clf.fit)(X, y) + # We are in well-conditioned settings with low noise: we should + # have a good test-set performance + assert clf.score(X_test, y_test) > 0.99 + assert clf.coef_.shape == (3, 10) + + # Mono-output should have same cross-validated alpha_ and l1_ratio_ + # in both cases. + X, y, _, _ = build_dataset(n_features=10) + clf1 = ElasticNetCV(alphas=5, eps=2e-3, l1_ratio=[0.5, 0.7]) + clf1.fit(X, y) + clf2 = MultiTaskElasticNetCV(alphas=5, eps=2e-3, l1_ratio=[0.5, 0.7]) + clf2.fit(X, y[:, np.newaxis]) + assert_almost_equal(clf1.l1_ratio_, clf2.l1_ratio_) + assert_almost_equal(clf1.alpha_, clf2.alpha_) + + +def test_path_parameters(): + X, y, _, _ = build_dataset() + max_iter = 100 + + clf = ElasticNetCV(alphas=50, eps=1e-3, max_iter=max_iter, l1_ratio=0.5, tol=1e-3) + clf.fit(X, y) # new params + assert_almost_equal(0.5, clf.l1_ratio) + assert 50 == clf._alphas + assert 50 == len(clf.alphas_) + + +def test_warm_start(): + X, y, _, _ = build_dataset() + clf = ElasticNet(alpha=0.1, max_iter=5, warm_start=True) + ignore_warnings(clf.fit)(X, y) + ignore_warnings(clf.fit)(X, y) # do a second round with 5 iterations + + clf2 = ElasticNet(alpha=0.1, max_iter=10) + ignore_warnings(clf2.fit)(X, y) + assert_array_almost_equal(clf2.coef_, clf.coef_) + + +def test_lasso_alpha_warning(): + X = [[-1], [0], [1]] + Y = [-1, 0, 1] # just a straight line + + clf = Lasso(alpha=0) + warning_message = ( + "With alpha=0, this algorithm does not " + "converge well. You are advised to use the " + "LinearRegression estimator" + ) + with pytest.warns(UserWarning, match=warning_message): + clf.fit(X, Y) + + +def test_lasso_positive_constraint(): + X = [[-1], [0], [1]] + y = [1, 0, -1] # just a straight line with negative slope + + lasso = Lasso(alpha=0.1, positive=True) + lasso.fit(X, y) + assert min(lasso.coef_) >= 0 + + lasso = Lasso(alpha=0.1, precompute=True, positive=True) + lasso.fit(X, y) + assert min(lasso.coef_) >= 0 + + +def test_enet_positive_constraint(): + X = [[-1], [0], [1]] + y = [1, 0, -1] # just a straight line with negative slope + + enet = ElasticNet(alpha=0.1, positive=True) + enet.fit(X, y) + assert min(enet.coef_) >= 0 + + +def test_enet_cv_positive_constraint(): + X, y, X_test, y_test = build_dataset() + max_iter = 500 + + # Ensure the unconstrained fit has a negative coefficient + enetcv_unconstrained = ElasticNetCV( + alphas=3, eps=1e-1, max_iter=max_iter, cv=2, n_jobs=1 + ) + enetcv_unconstrained.fit(X, y) + assert min(enetcv_unconstrained.coef_) < 0 + + # On same data, constrained fit has non-negative coefficients + enetcv_constrained = ElasticNetCV( + alphas=3, eps=1e-1, max_iter=max_iter, cv=2, positive=True, n_jobs=1 + ) + enetcv_constrained.fit(X, y) + assert min(enetcv_constrained.coef_) >= 0 + + +def test_uniform_targets(): + enet = ElasticNetCV(alphas=3) + m_enet = MultiTaskElasticNetCV(alphas=3) + lasso = LassoCV(alphas=3) + m_lasso = MultiTaskLassoCV(alphas=3) + + models_single_task = (enet, lasso) + models_multi_task = (m_enet, m_lasso) + + rng = np.random.RandomState(0) + + X_train = rng.random_sample(size=(10, 3)) + X_test = rng.random_sample(size=(10, 3)) + + y1 = np.empty(10) + y2 = np.empty((10, 2)) + + for model in models_single_task: + for y_values in (0, 5): + y1.fill(y_values) + with ignore_warnings(category=ConvergenceWarning): + assert_array_equal(model.fit(X_train, y1).predict(X_test), y1) + assert_array_equal(model.alphas_, [np.finfo(float).resolution] * 3) + + for model in models_multi_task: + for y_values in (0, 5): + y2[:, 0].fill(y_values) + y2[:, 1].fill(2 * y_values) + with ignore_warnings(category=ConvergenceWarning): + assert_array_equal(model.fit(X_train, y2).predict(X_test), y2) + assert_array_equal(model.alphas_, [np.finfo(float).resolution] * 3) + + +def test_multi_task_lasso_and_enet(): + X, y, X_test, y_test = build_dataset() + Y = np.c_[y, y] + # Y_test = np.c_[y_test, y_test] + clf = MultiTaskLasso(alpha=1, tol=1e-8).fit(X, Y) + assert 0 < clf.dual_gap_ < 1e-5 + assert_array_almost_equal(clf.coef_[0], clf.coef_[1]) + + clf = MultiTaskElasticNet(alpha=1, tol=1e-8).fit(X, Y) + assert 0 < clf.dual_gap_ < 1e-5 + assert_array_almost_equal(clf.coef_[0], clf.coef_[1]) + + clf = MultiTaskElasticNet(alpha=1.0, tol=1e-8, max_iter=1) + warning_message = ( + "Objective did not converge. You might want to " + "increase the number of iterations." + ) + with pytest.warns(ConvergenceWarning, match=warning_message): + clf.fit(X, Y) + + +def test_lasso_readonly_data(): + X = np.array([[-1], [0], [1]]) + Y = np.array([-1, 0, 1]) # just a straight line + T = np.array([[2], [3], [4]]) # test sample + with TempMemmap((X, Y)) as (X, Y): + clf = Lasso(alpha=0.5) + clf.fit(X, Y) + pred = clf.predict(T) + assert_array_almost_equal(clf.coef_, [0.25]) + assert_array_almost_equal(pred, [0.5, 0.75, 1.0]) + assert_almost_equal(clf.dual_gap_, 0) + + +def test_multi_task_lasso_readonly_data(): + X, y, X_test, y_test = build_dataset() + Y = np.c_[y, y] + with TempMemmap((X, Y)) as (X, Y): + Y = np.c_[y, y] + clf = MultiTaskLasso(alpha=1, tol=1e-8).fit(X, Y) + assert 0 < clf.dual_gap_ < 1e-5 + assert_array_almost_equal(clf.coef_[0], clf.coef_[1]) + + +def test_enet_multitarget(): + n_targets = 3 + X, y, _, _ = build_dataset( + n_samples=10, n_features=8, n_informative_features=10, n_targets=n_targets + ) + estimator = ElasticNet(alpha=0.01) + estimator.fit(X, y) + coef, intercept, dual_gap = ( + estimator.coef_, + estimator.intercept_, + estimator.dual_gap_, + ) + + for k in range(n_targets): + estimator.fit(X, y[:, k]) + assert_array_almost_equal(coef[k, :], estimator.coef_) + assert_array_almost_equal(intercept[k], estimator.intercept_) + assert_array_almost_equal(dual_gap[k], estimator.dual_gap_) + + +def test_multioutput_enetcv_error(): + rng = np.random.RandomState(0) + X = rng.randn(10, 2) + y = rng.randn(10, 2) + clf = ElasticNetCV() + with pytest.raises(ValueError): + clf.fit(X, y) + + +def test_multitask_enet_and_lasso_cv(): + X, y, _, _ = build_dataset(n_features=50, n_targets=3) + clf = MultiTaskElasticNetCV(cv=3).fit(X, y) + assert_almost_equal(clf.alpha_, 0.00556, 3) + clf = MultiTaskLassoCV(cv=3).fit(X, y) + assert_almost_equal(clf.alpha_, 0.00278, 3) + + X, y, _, _ = build_dataset(n_targets=3) + clf = MultiTaskElasticNetCV( + alphas=10, eps=1e-3, max_iter=200, l1_ratio=[0.3, 0.5], tol=1e-3, cv=3 + ) + clf.fit(X, y) + assert 0.5 == clf.l1_ratio_ + assert (3, X.shape[1]) == clf.coef_.shape + assert (3,) == clf.intercept_.shape + assert (2, 10, 3) == clf.mse_path_.shape + assert (2, 10) == clf.alphas_.shape + + X, y, _, _ = build_dataset(n_targets=3) + clf = MultiTaskLassoCV(alphas=10, eps=1e-3, max_iter=500, tol=1e-3, cv=3) + clf.fit(X, y) + assert (3, X.shape[1]) == clf.coef_.shape + assert (3,) == clf.intercept_.shape + assert (10, 3) == clf.mse_path_.shape + assert 10 == len(clf.alphas_) + + +def test_1d_multioutput_enet_and_multitask_enet_cv(): + X, y, _, _ = build_dataset(n_features=10) + y = y[:, np.newaxis] + clf = ElasticNetCV(alphas=5, eps=2e-3, l1_ratio=[0.5, 0.7]) + clf.fit(X, y[:, 0]) + clf1 = MultiTaskElasticNetCV(alphas=5, eps=2e-3, l1_ratio=[0.5, 0.7]) + clf1.fit(X, y) + assert_almost_equal(clf.l1_ratio_, clf1.l1_ratio_) + assert_almost_equal(clf.alpha_, clf1.alpha_) + assert_almost_equal(clf.coef_, clf1.coef_[0]) + assert_almost_equal(clf.intercept_, clf1.intercept_[0]) + + +def test_1d_multioutput_lasso_and_multitask_lasso_cv(): + X, y, _, _ = build_dataset(n_features=10) + y = y[:, np.newaxis] + clf = LassoCV(alphas=5, eps=2e-3) + clf.fit(X, y[:, 0]) + clf1 = MultiTaskLassoCV(alphas=5, eps=2e-3) + clf1.fit(X, y) + assert_almost_equal(clf.alpha_, clf1.alpha_) + assert_almost_equal(clf.coef_, clf1.coef_[0]) + assert_almost_equal(clf.intercept_, clf1.intercept_[0]) + + +@pytest.mark.parametrize("csr_container", CSR_CONTAINERS) +def test_sparse_input_dtype_enet_and_lassocv(csr_container): + X, y, _, _ = build_dataset(n_features=10) + clf = ElasticNetCV(alphas=5) + clf.fit(csr_container(X), y) + clf1 = ElasticNetCV(alphas=5) + clf1.fit(csr_container(X, dtype=np.float32), y) + assert_almost_equal(clf.alpha_, clf1.alpha_, decimal=6) + assert_almost_equal(clf.coef_, clf1.coef_, decimal=6) + + clf = LassoCV(alphas=5) + clf.fit(csr_container(X), y) + clf1 = LassoCV(alphas=5) + clf1.fit(csr_container(X, dtype=np.float32), y) + assert_almost_equal(clf.alpha_, clf1.alpha_, decimal=6) + assert_almost_equal(clf.coef_, clf1.coef_, decimal=6) + + +def test_elasticnet_precompute_incorrect_gram(): + # check that passing an invalid precomputed Gram matrix will raise an + # error. + X, y, _, _ = build_dataset() + + rng = np.random.RandomState(0) + + X_centered = X - np.average(X, axis=0) + garbage = rng.standard_normal(X.shape) + precompute = np.dot(garbage.T, garbage) + + clf = ElasticNet(alpha=0.01, precompute=precompute) + msg = "Gram matrix.*did not pass validation.*" + with pytest.raises(ValueError, match=msg): + clf.fit(X_centered, y) + + +def test_elasticnet_precompute_gram_weighted_samples(): + # check the equivalence between passing a precomputed Gram matrix and + # internal computation using sample weights. + X, y, _, _ = build_dataset() + + rng = np.random.RandomState(0) + sample_weight = rng.lognormal(size=y.shape) + + w_norm = sample_weight * (y.shape / np.sum(sample_weight)) + X_c = X - np.average(X, axis=0, weights=w_norm) + X_r = X_c * np.sqrt(w_norm)[:, np.newaxis] + gram = np.dot(X_r.T, X_r) + + clf1 = ElasticNet(alpha=0.01, precompute=gram) + clf1.fit(X_c, y, sample_weight=sample_weight) + + clf2 = ElasticNet(alpha=0.01, precompute=False) + clf2.fit(X, y, sample_weight=sample_weight) + + assert_allclose(clf1.coef_, clf2.coef_) + + +def test_elasticnet_precompute_gram(): + # Check the dtype-aware check for a precomputed Gram matrix + # (see https://github.com/scikit-learn/scikit-learn/pull/22059 + # and https://github.com/scikit-learn/scikit-learn/issues/21997). + # Here: (X_c.T, X_c)[2, 3] is not equal to np.dot(X_c[:, 2], X_c[:, 3]) + # but within tolerance for np.float32 + + rng = np.random.RandomState(58) + X = rng.binomial(1, 0.25, (1000, 4)).astype(np.float32) + y = rng.rand(1000).astype(np.float32) + + X_c = X - np.average(X, axis=0) + gram = np.dot(X_c.T, X_c) + + clf1 = ElasticNet(alpha=0.01, precompute=gram) + clf1.fit(X_c, y) + + clf2 = ElasticNet(alpha=0.01, precompute=False) + clf2.fit(X, y) + + assert_allclose(clf1.coef_, clf2.coef_) + + +def test_warm_start_convergence(): + X, y, _, _ = build_dataset() + model = ElasticNet(alpha=1e-3, tol=1e-3).fit(X, y) + n_iter_reference = model.n_iter_ + + # This dataset is not trivial enough for the model to converge in one pass. + assert n_iter_reference > 2 + + # Check that n_iter_ is invariant to multiple calls to fit + # when warm_start=False, all else being equal. + model.fit(X, y) + n_iter_cold_start = model.n_iter_ + assert n_iter_cold_start == n_iter_reference + + # Fit the same model again, using a warm start: the optimizer just performs + # a single pass before checking that it has already converged + model.set_params(warm_start=True) + model.fit(X, y) + n_iter_warm_start = model.n_iter_ + assert n_iter_warm_start == 1 + + +def test_warm_start_convergence_with_regularizer_decrement(): + X, y = load_diabetes(return_X_y=True) + + # Train a model to converge on a lightly regularized problem + final_alpha = 1e-5 + low_reg_model = ElasticNet(alpha=final_alpha).fit(X, y) + + # Fitting a new model on a more regularized version of the same problem. + # Fitting with high regularization is easier it should converge faster + # in general. + high_reg_model = ElasticNet(alpha=final_alpha * 10).fit(X, y) + assert low_reg_model.n_iter_ > high_reg_model.n_iter_ + + # Fit the solution to the original, less regularized version of the + # problem but from the solution of the highly regularized variant of + # the problem as a better starting point. This should also converge + # faster than the original model that starts from zero. + warm_low_reg_model = deepcopy(high_reg_model) + warm_low_reg_model.set_params(warm_start=True, alpha=final_alpha) + warm_low_reg_model.fit(X, y) + assert low_reg_model.n_iter_ > warm_low_reg_model.n_iter_ + + +@pytest.mark.parametrize("csr_container", CSR_CONTAINERS) +def test_random_descent(csr_container): + # Test that both random and cyclic selection give the same results. + # Ensure that the test models fully converge and check a wide + # range of conditions. + + # This uses the coordinate descent algo using the gram trick. + X, y, _, _ = build_dataset(n_samples=50, n_features=20) + clf_cyclic = ElasticNet(selection="cyclic", tol=1e-8) + clf_cyclic.fit(X, y) + clf_random = ElasticNet(selection="random", tol=1e-8, random_state=42) + clf_random.fit(X, y) + assert_array_almost_equal(clf_cyclic.coef_, clf_random.coef_) + assert_almost_equal(clf_cyclic.intercept_, clf_random.intercept_) + + # This uses the descent algo without the gram trick + clf_cyclic = ElasticNet(selection="cyclic", tol=1e-8) + clf_cyclic.fit(X.T, y[:20]) + clf_random = ElasticNet(selection="random", tol=1e-8, random_state=42) + clf_random.fit(X.T, y[:20]) + assert_array_almost_equal(clf_cyclic.coef_, clf_random.coef_) + assert_almost_equal(clf_cyclic.intercept_, clf_random.intercept_) + + # Sparse Case + clf_cyclic = ElasticNet(selection="cyclic", tol=1e-8) + clf_cyclic.fit(csr_container(X), y) + clf_random = ElasticNet(selection="random", tol=1e-8, random_state=42) + clf_random.fit(csr_container(X), y) + assert_array_almost_equal(clf_cyclic.coef_, clf_random.coef_) + assert_almost_equal(clf_cyclic.intercept_, clf_random.intercept_) + + # Multioutput case. + new_y = np.hstack((y[:, np.newaxis], y[:, np.newaxis])) + clf_cyclic = MultiTaskElasticNet(selection="cyclic", tol=1e-8) + clf_cyclic.fit(X, new_y) + clf_random = MultiTaskElasticNet(selection="random", tol=1e-8, random_state=42) + clf_random.fit(X, new_y) + assert_array_almost_equal(clf_cyclic.coef_, clf_random.coef_) + assert_almost_equal(clf_cyclic.intercept_, clf_random.intercept_) + + +def test_enet_path_positive(): + # Test positive parameter + + X, Y, _, _ = build_dataset(n_samples=50, n_features=50, n_targets=2) + + # For mono output + # Test that the coefs returned by positive=True in enet_path are positive + for path in [enet_path, lasso_path]: + pos_path_coef = path(X, Y[:, 0], positive=True)[1] + assert np.all(pos_path_coef >= 0) + + # For multi output, positive parameter is not allowed + # Test that an error is raised + for path in [enet_path, lasso_path]: + with pytest.raises(ValueError): + path(X, Y, positive=True) + + +@pytest.mark.parametrize("csr_container", CSR_CONTAINERS) +def test_sparse_dense_descent_paths(csr_container): + # Test that dense and sparse input give the same input for descent paths. + X, y, _, _ = build_dataset(n_samples=50, n_features=20) + csr = csr_container(X) + for path in [enet_path, lasso_path]: + _, coefs, _ = path(X, y) + _, sparse_coefs, _ = path(csr, y) + assert_array_almost_equal(coefs, sparse_coefs) + + +@pytest.mark.parametrize("path_func", [enet_path, lasso_path]) +def test_path_unknown_parameter(path_func): + """Check that passing parameter not used by the coordinate descent solver + will raise an error.""" + X, y, _, _ = build_dataset(n_samples=50, n_features=20) + err_msg = "Unexpected parameters in params" + with pytest.raises(ValueError, match=err_msg): + path_func(X, y, normalize=True, fit_intercept=True) + + +def test_check_input_false(): + X, y, _, _ = build_dataset(n_samples=20, n_features=10) + X = check_array(X, order="F", dtype="float64") + y = check_array(X, order="F", dtype="float64") + clf = ElasticNet(selection="cyclic", tol=1e-8) + # Check that no error is raised if data is provided in the right format + clf.fit(X, y, check_input=False) + # With check_input=False, an exhaustive check is not made on y but its + # dtype is still cast in _preprocess_data to X's dtype. So the test should + # pass anyway + X = check_array(X, order="F", dtype="float32") + with ignore_warnings(category=ConvergenceWarning): + clf.fit(X, y, check_input=False) + # With no input checking, providing X in C order should result in false + # computation + X = check_array(X, order="C", dtype="float64") + with pytest.raises(ValueError): + clf.fit(X, y, check_input=False) + + +@pytest.mark.parametrize("check_input", [True, False]) +def test_enet_copy_X_True(check_input): + X, y, _, _ = build_dataset() + X = X.copy(order="F") + + original_X = X.copy() + enet = ElasticNet(copy_X=True) + enet.fit(X, y, check_input=check_input) + + assert_array_equal(original_X, X) + + +def test_enet_copy_X_False_check_input_False(): + X, y, _, _ = build_dataset() + X = X.copy(order="F") + + original_X = X.copy() + enet = ElasticNet(copy_X=False) + enet.fit(X, y, check_input=False) + + # No copying, X is overwritten + assert np.any(np.not_equal(original_X, X)) + + +def test_overrided_gram_matrix(): + X, y, _, _ = build_dataset(n_samples=20, n_features=10) + Gram = X.T.dot(X) + clf = ElasticNet(selection="cyclic", tol=1e-8, precompute=Gram) + warning_message = ( + "Gram matrix was provided but X was centered" + " to fit intercept: recomputing Gram matrix." + ) + with pytest.warns(UserWarning, match=warning_message): + clf.fit(X, y) + + +@pytest.mark.parametrize("model", [ElasticNet, Lasso]) +def test_lasso_non_float_y(model): + X = [[0, 0], [1, 1], [-1, -1]] + y = [0, 1, 2] + y_float = [0.0, 1.0, 2.0] + + clf = model(fit_intercept=False) + clf.fit(X, y) + clf_float = model(fit_intercept=False) + clf_float.fit(X, y_float) + assert_array_equal(clf.coef_, clf_float.coef_) + + +def test_enet_float_precision(): + # Generate dataset + X, y, X_test, y_test = build_dataset(n_samples=20, n_features=10) + # Here we have a small number of iterations, and thus the + # ElasticNet might not converge. This is to speed up tests + + for fit_intercept in [True, False]: + coef = {} + intercept = {} + for dtype in [np.float64, np.float32]: + clf = ElasticNet( + alpha=0.5, + max_iter=100, + precompute=False, + fit_intercept=fit_intercept, + ) + + X = dtype(X) + y = dtype(y) + ignore_warnings(clf.fit)(X, y) + + coef[("simple", dtype)] = clf.coef_ + intercept[("simple", dtype)] = clf.intercept_ + + assert clf.coef_.dtype == dtype + + # test precompute Gram array + Gram = X.T.dot(X) + clf_precompute = ElasticNet( + alpha=0.5, + max_iter=100, + precompute=Gram, + fit_intercept=fit_intercept, + ) + ignore_warnings(clf_precompute.fit)(X, y) + assert_array_almost_equal(clf.coef_, clf_precompute.coef_) + assert_array_almost_equal(clf.intercept_, clf_precompute.intercept_) + + # test multi task enet + multi_y = np.hstack((y[:, np.newaxis], y[:, np.newaxis])) + clf_multioutput = MultiTaskElasticNet( + alpha=0.5, + max_iter=100, + fit_intercept=fit_intercept, + ) + clf_multioutput.fit(X, multi_y) + coef[("multi", dtype)] = clf_multioutput.coef_ + intercept[("multi", dtype)] = clf_multioutput.intercept_ + assert clf.coef_.dtype == dtype + + for v in ["simple", "multi"]: + assert_array_almost_equal( + coef[(v, np.float32)], coef[(v, np.float64)], decimal=4 + ) + assert_array_almost_equal( + intercept[(v, np.float32)], intercept[(v, np.float64)], decimal=4 + ) + + +@pytest.mark.filterwarnings("ignore::sklearn.exceptions.ConvergenceWarning") +def test_enet_l1_ratio(): + # Test that an error message is raised if an estimator that + # uses _alpha_grid is called with l1_ratio=0 + msg = ( + "Automatic alpha grid generation is not supported for l1_ratio=0. " + "Please supply a grid by providing your estimator with the " + "appropriate `alphas=` argument." + ) + X = np.array([[1, 2, 4, 5, 8], [3, 5, 7, 7, 8]]).T + y = np.array([12, 10, 11, 21, 5]) + + with pytest.raises(ValueError, match=msg): + ElasticNetCV(l1_ratio=0, random_state=42).fit(X, y) + + with pytest.raises(ValueError, match=msg): + MultiTaskElasticNetCV(l1_ratio=0, random_state=42).fit(X, y[:, None]) + + # Test that l1_ratio=0 with alpha>0 produces user warning + warning_message = ( + "Coordinate descent without L1 regularization may " + "lead to unexpected results and is discouraged. " + "Set l1_ratio > 0 to add L1 regularization." + ) + est = ElasticNetCV(l1_ratio=[0], alphas=[1]) + with pytest.warns(UserWarning, match=warning_message): + est.fit(X, y) + + # Test that l1_ratio=0 is allowed if we supply a grid manually + alphas = [0.1, 10] + estkwds = {"alphas": alphas, "random_state": 42} + est_desired = ElasticNetCV(l1_ratio=0.00001, **estkwds) + est = ElasticNetCV(l1_ratio=0, **estkwds) + with ignore_warnings(): + est_desired.fit(X, y) + est.fit(X, y) + assert_array_almost_equal(est.coef_, est_desired.coef_, decimal=5) + + est_desired = MultiTaskElasticNetCV(l1_ratio=0.00001, **estkwds) + est = MultiTaskElasticNetCV(l1_ratio=0, **estkwds) + with ignore_warnings(): + est.fit(X, y[:, None]) + est_desired.fit(X, y[:, None]) + assert_array_almost_equal(est.coef_, est_desired.coef_, decimal=5) + + +def test_coef_shape_not_zero(): + est_no_intercept = Lasso(fit_intercept=False) + est_no_intercept.fit(np.c_[np.ones(3)], np.ones(3)) + assert est_no_intercept.coef_.shape == (1,) + + +def test_warm_start_multitask_lasso(): + X, y, X_test, y_test = build_dataset() + Y = np.c_[y, y] + clf = MultiTaskLasso(alpha=0.1, max_iter=5, warm_start=True) + ignore_warnings(clf.fit)(X, Y) + ignore_warnings(clf.fit)(X, Y) # do a second round with 5 iterations + + clf2 = MultiTaskLasso(alpha=0.1, max_iter=10) + ignore_warnings(clf2.fit)(X, Y) + assert_array_almost_equal(clf2.coef_, clf.coef_) + + +@pytest.mark.parametrize( + "klass, n_classes, kwargs", + [ + (Lasso, 1, dict(precompute=True)), + (Lasso, 1, dict(precompute=False)), + ], +) +def test_enet_coordinate_descent(klass, n_classes, kwargs): + """Test that a warning is issued if model does not converge""" + clf = klass(max_iter=2, **kwargs) + n_samples = 5 + n_features = 2 + X = np.ones((n_samples, n_features)) * 1e50 + y = np.ones((n_samples, n_classes)) + if klass == Lasso: + y = y.ravel() + warning_message = ( + "Objective did not converge. You might want to" + " increase the number of iterations." + ) + with pytest.warns(ConvergenceWarning, match=warning_message): + clf.fit(X, y) + + +def test_convergence_warnings(): + random_state = np.random.RandomState(0) + X = random_state.standard_normal((1000, 500)) + y = random_state.standard_normal((1000, 3)) + + # check that the model converges w/o convergence warnings + with warnings.catch_warnings(): + warnings.simplefilter("error", ConvergenceWarning) + MultiTaskElasticNet().fit(X, y) + + +@pytest.mark.parametrize("csr_container", CSR_CONTAINERS) +def test_sparse_input_convergence_warning(csr_container): + X, y, _, _ = build_dataset(n_samples=1000, n_features=500) + + with pytest.warns(ConvergenceWarning): + ElasticNet(max_iter=1, tol=0).fit(csr_container(X, dtype=np.float32), y) + + # check that the model converges w/o convergence warnings + with warnings.catch_warnings(): + warnings.simplefilter("error", ConvergenceWarning) + Lasso().fit(csr_container(X, dtype=np.float32), y) + + +@pytest.mark.parametrize( + "precompute, inner_precompute", + [ + (True, True), + ("auto", False), + (False, False), + ], +) +def test_lassoCV_does_not_set_precompute(monkeypatch, precompute, inner_precompute): + X, y, _, _ = build_dataset() + calls = 0 + + class LassoMock(Lasso): + def fit(self, X, y): + super().fit(X, y) + nonlocal calls + calls += 1 + assert self.precompute == inner_precompute + + monkeypatch.setattr("sklearn.linear_model._coordinate_descent.Lasso", LassoMock) + clf = LassoCV(precompute=precompute) + clf.fit(X, y) + assert calls > 0 + + +def test_multi_task_lasso_cv_dtype(): + n_samples, n_features = 10, 3 + rng = np.random.RandomState(42) + X = rng.binomial(1, 0.5, size=(n_samples, n_features)) + X = X.astype(int) # make it explicit that X is int + y = X[:, [0, 0]].copy() + est = MultiTaskLassoCV(alphas=5, fit_intercept=True).fit(X, y) + assert_array_almost_equal(est.coef_, [[1, 0, 0]] * 2, decimal=3) + + +@pytest.mark.parametrize("fit_intercept", [True, False]) +@pytest.mark.parametrize("alpha", [0.01]) +@pytest.mark.parametrize("precompute", [False, True]) +@pytest.mark.parametrize("sparse_container", [None] + CSR_CONTAINERS) +def test_enet_sample_weight_consistency( + fit_intercept, alpha, precompute, sparse_container, global_random_seed +): + """Test that the impact of sample_weight is consistent. + + Note that this test is stricter than the common test + check_sample_weight_equivalence alone and also tests sparse X. + """ + rng = np.random.RandomState(global_random_seed) + n_samples, n_features = 10, 5 + + X = rng.rand(n_samples, n_features) + y = rng.rand(n_samples) + if sparse_container is not None: + X = sparse_container(X) + params = dict( + alpha=alpha, + fit_intercept=fit_intercept, + precompute=precompute, + tol=1e-6, + l1_ratio=0.5, + ) + + reg = ElasticNet(**params).fit(X, y) + coef = reg.coef_.copy() + if fit_intercept: + intercept = reg.intercept_ + + # 1) sample_weight=np.ones(..) should be equivalent to sample_weight=None + sample_weight = np.ones_like(y) + reg.fit(X, y, sample_weight=sample_weight) + assert_allclose(reg.coef_, coef, rtol=1e-6) + if fit_intercept: + assert_allclose(reg.intercept_, intercept) + + # 2) sample_weight=None should be equivalent to sample_weight = number + sample_weight = 123.0 + reg.fit(X, y, sample_weight=sample_weight) + assert_allclose(reg.coef_, coef, rtol=1e-6) + if fit_intercept: + assert_allclose(reg.intercept_, intercept) + + # 3) scaling of sample_weight should have no effect, cf. np.average() + sample_weight = rng.uniform(low=0.01, high=2, size=X.shape[0]) + reg = reg.fit(X, y, sample_weight=sample_weight) + coef = reg.coef_.copy() + if fit_intercept: + intercept = reg.intercept_ + + reg.fit(X, y, sample_weight=np.pi * sample_weight) + assert_allclose(reg.coef_, coef, rtol=1e-6) + if fit_intercept: + assert_allclose(reg.intercept_, intercept) + + # 4) setting elements of sample_weight to 0 is equivalent to removing these samples + sample_weight_0 = sample_weight.copy() + sample_weight_0[-5:] = 0 + y[-5:] *= 1000 # to make excluding those samples important + reg.fit(X, y, sample_weight=sample_weight_0) + coef_0 = reg.coef_.copy() + if fit_intercept: + intercept_0 = reg.intercept_ + reg.fit(X[:-5], y[:-5], sample_weight=sample_weight[:-5]) + assert_allclose(reg.coef_, coef_0, rtol=1e-6) + if fit_intercept: + assert_allclose(reg.intercept_, intercept_0) + + # 5) check that multiplying sample_weight by 2 is equivalent to repeating + # corresponding samples twice + if sparse_container is not None: + X2 = sparse.vstack([X, X[: n_samples // 2]], format="csc") + else: + X2 = np.concatenate([X, X[: n_samples // 2]], axis=0) + y2 = np.concatenate([y, y[: n_samples // 2]]) + sample_weight_1 = sample_weight.copy() + sample_weight_1[: n_samples // 2] *= 2 + sample_weight_2 = np.concatenate( + [sample_weight, sample_weight[: n_samples // 2]], axis=0 + ) + + reg1 = ElasticNet(**params).fit(X, y, sample_weight=sample_weight_1) + reg2 = ElasticNet(**params).fit(X2, y2, sample_weight=sample_weight_2) + assert_allclose(reg1.coef_, reg2.coef_, rtol=1e-6) + + +@pytest.mark.parametrize("fit_intercept", [True, False]) +@pytest.mark.parametrize("sparse_container", [None] + CSC_CONTAINERS) +def test_enet_cv_sample_weight_correctness( + fit_intercept, sparse_container, global_random_seed +): + """Test that ElasticNetCV with sample weights gives correct results. + + We fit the same model twice, once with weighted training data, once with repeated + data points in the training data and check that both models converge to the + same solution. + + Since this model uses an internal cross-validation scheme to tune the alpha + regularization parameter, we make sure that the repetitions only occur within + a specific CV group. Data points belonging to other CV groups stay + unit-weighted / "unrepeated". + """ + rng = np.random.RandomState(global_random_seed) + n_splits, n_samples_per_cv, n_features = 3, 10, 5 + X_with_weights = rng.rand(n_splits * n_samples_per_cv, n_features) + beta = rng.rand(n_features) + beta[0:2] = 0 + y_with_weights = X_with_weights @ beta + rng.rand(n_splits * n_samples_per_cv) + + if sparse_container is not None: + X_with_weights = sparse_container(X_with_weights) + params = dict(tol=1e-6) + + # Assign random integer weights only to the first cross-validation group. + # The samples in the other cross-validation groups are left with unit + # weights. + + sw = np.ones_like(y_with_weights) + sw[:n_samples_per_cv] = rng.randint(0, 5, size=n_samples_per_cv) + groups_with_weights = np.concatenate( + [ + np.full(n_samples_per_cv, 0), + np.full(n_samples_per_cv, 1), + np.full(n_samples_per_cv, 2), + ] + ) + splits_with_weights = list( + LeaveOneGroupOut().split(X_with_weights, groups=groups_with_weights) + ) + reg_with_weights = ElasticNetCV( + cv=splits_with_weights, fit_intercept=fit_intercept, **params + ) + + reg_with_weights.fit(X_with_weights, y_with_weights, sample_weight=sw) + + if sparse_container is not None: + X_with_weights = X_with_weights.toarray() + X_with_repetitions = np.repeat(X_with_weights, sw.astype(int), axis=0) + if sparse_container is not None: + X_with_repetitions = sparse_container(X_with_repetitions) + + y_with_repetitions = np.repeat(y_with_weights, sw.astype(int), axis=0) + groups_with_repetitions = np.repeat(groups_with_weights, sw.astype(int), axis=0) + + splits_with_repetitions = list( + LeaveOneGroupOut().split(X_with_repetitions, groups=groups_with_repetitions) + ) + reg_with_repetitions = ElasticNetCV( + cv=splits_with_repetitions, fit_intercept=fit_intercept, **params + ) + reg_with_repetitions.fit(X_with_repetitions, y_with_repetitions) + + # Check that the alpha selection process is the same: + assert_allclose(reg_with_weights.mse_path_, reg_with_repetitions.mse_path_) + assert_allclose(reg_with_weights.alphas_, reg_with_repetitions.alphas_) + assert reg_with_weights.alpha_ == pytest.approx(reg_with_repetitions.alpha_) + + # Check that the final model coefficients are the same: + assert_allclose(reg_with_weights.coef_, reg_with_repetitions.coef_, atol=1e-10) + assert reg_with_weights.intercept_ == pytest.approx(reg_with_repetitions.intercept_) + + +@pytest.mark.parametrize("sample_weight", [False, True]) +def test_enet_cv_grid_search(sample_weight): + """Test that ElasticNetCV gives same result as GridSearchCV.""" + n_samples, n_features = 200, 10 + cv = 5 + X, y = make_regression( + n_samples=n_samples, + n_features=n_features, + effective_rank=10, + n_informative=n_features - 4, + noise=10, + random_state=0, + ) + if sample_weight: + sample_weight = np.linspace(1, 5, num=n_samples) + else: + sample_weight = None + + alphas = np.logspace(np.log10(1e-5), np.log10(1), num=10) + l1_ratios = [0.1, 0.5, 0.9] + reg = ElasticNetCV(cv=cv, alphas=alphas, l1_ratio=l1_ratios) + reg.fit(X, y, sample_weight=sample_weight) + + param = {"alpha": alphas, "l1_ratio": l1_ratios} + gs = GridSearchCV( + estimator=ElasticNet(), + param_grid=param, + cv=cv, + scoring="neg_mean_squared_error", + ).fit(X, y, sample_weight=sample_weight) + + assert reg.l1_ratio_ == pytest.approx(gs.best_params_["l1_ratio"]) + assert reg.alpha_ == pytest.approx(gs.best_params_["alpha"]) + + +@pytest.mark.parametrize("fit_intercept", [True, False]) +@pytest.mark.parametrize("l1_ratio", [0, 0.5, 1]) +@pytest.mark.parametrize("precompute", [False, True]) +@pytest.mark.parametrize("sparse_container", [None] + CSC_CONTAINERS) +def test_enet_cv_sample_weight_consistency( + fit_intercept, l1_ratio, precompute, sparse_container +): + """Test that the impact of sample_weight is consistent.""" + rng = np.random.RandomState(0) + n_samples, n_features = 10, 5 + + X = rng.rand(n_samples, n_features) + y = X.sum(axis=1) + rng.rand(n_samples) + params = dict( + l1_ratio=l1_ratio, + fit_intercept=fit_intercept, + precompute=precompute, + tol=1e-6, + cv=3, + ) + if sparse_container is not None: + X = sparse_container(X) + + if l1_ratio == 0: + params.pop("l1_ratio", None) + reg = LassoCV(**params).fit(X, y) + else: + reg = ElasticNetCV(**params).fit(X, y) + coef = reg.coef_.copy() + if fit_intercept: + intercept = reg.intercept_ + + # sample_weight=np.ones(..) should be equivalent to sample_weight=None + sample_weight = np.ones_like(y) + reg.fit(X, y, sample_weight=sample_weight) + assert_allclose(reg.coef_, coef, rtol=1e-6) + if fit_intercept: + assert_allclose(reg.intercept_, intercept) + + # sample_weight=None should be equivalent to sample_weight = number + sample_weight = 123.0 + reg.fit(X, y, sample_weight=sample_weight) + assert_allclose(reg.coef_, coef, rtol=1e-6) + if fit_intercept: + assert_allclose(reg.intercept_, intercept) + + # scaling of sample_weight should have no effect, cf. np.average() + sample_weight = 2 * np.ones_like(y) + reg.fit(X, y, sample_weight=sample_weight) + assert_allclose(reg.coef_, coef, rtol=1e-6) + if fit_intercept: + assert_allclose(reg.intercept_, intercept) + + +@pytest.mark.parametrize("X_is_sparse", [False, True]) +@pytest.mark.parametrize("fit_intercept", [False, True]) +@pytest.mark.parametrize("sample_weight", [np.array([10, 1, 10, 1]), None]) +def test_enet_alpha_max_sample_weight(X_is_sparse, fit_intercept, sample_weight): + X = np.array([[3.0, 1.0], [2.0, 5.0], [5.0, 3.0], [1.0, 4.0]]) + beta = np.array([1, 1]) + y = X @ beta + if X_is_sparse: + X = sparse.csc_matrix(X) + # Test alpha_max makes coefs zero. + reg = ElasticNetCV(alphas=1, cv=2, eps=1, fit_intercept=fit_intercept) + reg.fit(X, y, sample_weight=sample_weight) + assert_allclose(reg.coef_, 0, atol=1e-5) + alpha_max = reg.alpha_ + # Test smaller alpha makes coefs nonzero. + reg = ElasticNet(alpha=0.99 * alpha_max, fit_intercept=fit_intercept) + reg.fit(X, y, sample_weight=sample_weight) + assert_array_less(1e-3, np.max(np.abs(reg.coef_))) + + +@pytest.mark.parametrize("estimator", [ElasticNetCV, LassoCV]) +def test_linear_models_cv_fit_with_loky(estimator): + # LinearModelsCV.fit performs operations on fancy-indexed memmapped + # data when using the loky backend, causing an error due to unexpected + # behavior of fancy indexing of read-only memmaps (cf. numpy#14132). + + # Create a problem sufficiently large to cause memmapping (1MB). + # Unfortunately the scikit-learn and joblib APIs do not make it possible to + # change the max_nbyte of the inner Parallel call. + X, y = make_regression(int(1e6) // 8 + 1, 1) + assert X.nbytes > 1e6 # 1 MB + with joblib.parallel_backend("loky"): + estimator(n_jobs=2, cv=3).fit(X, y) + + +@pytest.mark.parametrize("check_input", [True, False]) +def test_enet_sample_weight_does_not_overwrite_sample_weight(check_input): + """Check that ElasticNet does not overwrite sample_weights.""" + + rng = np.random.RandomState(0) + n_samples, n_features = 10, 5 + + X = rng.rand(n_samples, n_features) + y = rng.rand(n_samples) + + sample_weight_1_25 = 1.25 * np.ones_like(y) + sample_weight = sample_weight_1_25.copy() + + reg = ElasticNet() + reg.fit(X, y, sample_weight=sample_weight, check_input=check_input) + + assert_array_equal(sample_weight, sample_weight_1_25) + + +@pytest.mark.filterwarnings("ignore::sklearn.exceptions.ConvergenceWarning") +@pytest.mark.parametrize("ridge_alpha", [1e-1, 1.0, 1e6]) +def test_enet_ridge_consistency(ridge_alpha): + # Check that ElasticNet(l1_ratio=0) converges to the same solution as Ridge + # provided that the value of alpha is adapted. + # + # XXX: this test does not pass for weaker regularization (lower values of + # ridge_alpha): it could be either a problem of ElasticNet or Ridge (less + # likely) and depends on the dataset statistics: lower values for + # effective_rank are more problematic in particular. + + rng = np.random.RandomState(42) + n_samples = 300 + X, y = make_regression( + n_samples=n_samples, + n_features=100, + effective_rank=10, + n_informative=50, + random_state=rng, + ) + sw = rng.uniform(low=0.01, high=10, size=X.shape[0]) + alpha = 1.0 + common_params = dict( + tol=1e-12, + ) + ridge = Ridge(alpha=alpha, **common_params).fit(X, y, sample_weight=sw) + + alpha_enet = alpha / sw.sum() + enet = ElasticNet(alpha=alpha_enet, l1_ratio=0, **common_params).fit( + X, y, sample_weight=sw + ) + assert_allclose(ridge.coef_, enet.coef_) + assert_allclose(ridge.intercept_, enet.intercept_) + + +@pytest.mark.parametrize( + "estimator", + [ + Lasso(alpha=1.0), + ElasticNet(alpha=1.0, l1_ratio=0.1), + ], +) +def test_sample_weight_invariance(estimator): + rng = np.random.RandomState(42) + X, y = make_regression( + n_samples=100, + n_features=300, + effective_rank=10, + n_informative=50, + random_state=rng, + ) + sw = rng.uniform(low=0.01, high=2, size=X.shape[0]) + params = dict(tol=1e-12) + + # Check that setting some weights to 0 is equivalent to trimming the + # samples: + cutoff = X.shape[0] // 3 + sw_with_null = sw.copy() + sw_with_null[:cutoff] = 0.0 + X_trimmed, y_trimmed = X[cutoff:, :], y[cutoff:] + sw_trimmed = sw[cutoff:] + + reg_trimmed = ( + clone(estimator) + .set_params(**params) + .fit(X_trimmed, y_trimmed, sample_weight=sw_trimmed) + ) + reg_null_weighted = ( + clone(estimator).set_params(**params).fit(X, y, sample_weight=sw_with_null) + ) + assert_allclose(reg_null_weighted.coef_, reg_trimmed.coef_) + assert_allclose(reg_null_weighted.intercept_, reg_trimmed.intercept_) + + # Check that duplicating the training dataset is equivalent to multiplying + # the weights by 2: + X_dup = np.concatenate([X, X], axis=0) + y_dup = np.concatenate([y, y], axis=0) + sw_dup = np.concatenate([sw, sw], axis=0) + + reg_2sw = clone(estimator).set_params(**params).fit(X, y, sample_weight=2 * sw) + reg_dup = ( + clone(estimator).set_params(**params).fit(X_dup, y_dup, sample_weight=sw_dup) + ) + + assert_allclose(reg_2sw.coef_, reg_dup.coef_) + assert_allclose(reg_2sw.intercept_, reg_dup.intercept_) + + +def test_read_only_buffer(): + """Test that sparse coordinate descent works for read-only buffers""" + + rng = np.random.RandomState(0) + clf = ElasticNet(alpha=0.1, copy_X=True, random_state=rng) + X = np.asfortranarray(rng.uniform(size=(100, 10))) + X.setflags(write=False) + + y = rng.rand(100) + clf.fit(X, y) + + +@pytest.mark.parametrize( + "EstimatorCV", + [ElasticNetCV, LassoCV, MultiTaskElasticNetCV, MultiTaskLassoCV], +) +def test_cv_estimators_reject_params_with_no_routing_enabled(EstimatorCV): + """Check that the models inheriting from class:`LinearModelCV` raise an + error when any `params` are passed when routing is not enabled. + """ + X, y = make_regression(random_state=42) + groups = np.array([0, 1] * (len(y) // 2)) + estimator = EstimatorCV() + msg = "is only supported if enable_metadata_routing=True" + with pytest.raises(ValueError, match=msg): + estimator.fit(X, y, groups=groups) + + +@pytest.mark.parametrize( + "MultiTaskEstimatorCV", + [MultiTaskElasticNetCV, MultiTaskLassoCV], +) +@config_context(enable_metadata_routing=True) +def test_multitask_cv_estimators_with_sample_weight(MultiTaskEstimatorCV): + """Check that for :class:`MultiTaskElasticNetCV` and + class:`MultiTaskLassoCV` if `sample_weight` is passed and the + CV splitter does not support `sample_weight` an error is raised. + On the other hand if the splitter does support `sample_weight` + while `sample_weight` is passed there is no error and process + completes smoothly as before. + """ + + class CVSplitter(GroupsConsumerMixin, BaseCrossValidator): + def get_n_splits(self, X=None, y=None, groups=None, metadata=None): + pass # pragma: nocover + + class CVSplitterSampleWeight(CVSplitter): + def split(self, X, y=None, groups=None, sample_weight=None): + split_index = len(X) // 2 + train_indices = list(range(0, split_index)) + test_indices = list(range(split_index, len(X))) + yield test_indices, train_indices + yield train_indices, test_indices + + X, y = make_regression(random_state=42, n_targets=2) + sample_weight = np.ones(X.shape[0]) + + # If CV splitter does not support sample_weight an error is raised + splitter = CVSplitter().set_split_request(groups=True) + estimator = MultiTaskEstimatorCV(cv=splitter) + msg = "do not support sample weights" + with pytest.raises(ValueError, match=msg): + estimator.fit(X, y, sample_weight=sample_weight) + + # If CV splitter does support sample_weight no error is raised + splitter = CVSplitterSampleWeight().set_split_request( + groups=True, sample_weight=True + ) + estimator = MultiTaskEstimatorCV(cv=splitter) + estimator.fit(X, y, sample_weight=sample_weight) + + +# TODO(1.9): remove +@pytest.mark.parametrize( + "Estimator", [LassoCV, ElasticNetCV, MultiTaskLassoCV, MultiTaskElasticNetCV] +) +def test_linear_model_cv_deprecated_n_alphas(Estimator): + """Check the deprecation of n_alphas in favor of alphas.""" + X, y = make_regression(n_targets=2, random_state=42) + + # Asses warning message raised by LinearModelCV when n_alphas is used + with pytest.warns( + FutureWarning, + match="'n_alphas' was deprecated in 1.7 and will be removed in 1.9", + ): + clf = Estimator(n_alphas=5) + if clf._is_multitask(): + clf = clf.fit(X, y) + else: + clf = clf.fit(X, y[:, 0]) + + # Asses no warning message raised when n_alphas is not used + with warnings.catch_warnings(): + warnings.simplefilter("error") + clf = Estimator(alphas=5) + if clf._is_multitask(): + clf = clf.fit(X, y) + else: + clf = clf.fit(X, y[:, 0]) + + +# TODO(1.9): remove +@pytest.mark.parametrize( + "Estimator", [ElasticNetCV, LassoCV, MultiTaskLassoCV, MultiTaskElasticNetCV] +) +def test_linear_model_cv_deprecated_alphas_none(Estimator): + """Check the deprecation of alphas=None.""" + X, y = make_regression(n_targets=2, random_state=42) + + with pytest.warns( + FutureWarning, match="'alphas=None' is deprecated and will be removed in 1.9" + ): + clf = Estimator(alphas=None) + if clf._is_multitask(): + clf.fit(X, y) + else: + clf.fit(X, y[:, 0]) + + +# TODO(1.9): remove +@pytest.mark.parametrize( + "Estimator", [ElasticNetCV, LassoCV, MultiTaskLassoCV, MultiTaskElasticNetCV] +) +def test_linear_model_cv_alphas_n_alphas_unset(Estimator): + """Check that no warning is raised when both n_alphas and alphas are unset.""" + X, y = make_regression(n_targets=2, random_state=42) + + # Asses no warning message raised when n_alphas is not used + with warnings.catch_warnings(): + warnings.simplefilter("error") + clf = Estimator() + if clf._is_multitask(): + clf = clf.fit(X, y) + else: + clf = clf.fit(X, y[:, 0]) + + +# TODO(1.9): remove +@pytest.mark.filterwarnings("ignore:'n_alphas' was deprecated in 1.7") +@pytest.mark.parametrize( + "Estimator", [ElasticNetCV, LassoCV, MultiTaskLassoCV, MultiTaskElasticNetCV] +) +def test_linear_model_cv_alphas(Estimator): + """Check that the behavior of alphas is consistent with n_alphas.""" + X, y = make_regression(n_targets=2, random_state=42) + + # n_alphas is set, alphas is not => n_alphas is used + clf = Estimator(n_alphas=5) + if clf._is_multitask(): + clf.fit(X, y) + else: + clf.fit(X, y[:, 0]) + assert len(clf.alphas_) == 5 + + # n_alphas is set, alphas is set => alphas has priority + clf = Estimator(n_alphas=5, alphas=10) + if clf._is_multitask(): + clf.fit(X, y) + else: + clf.fit(X, y[:, 0]) + assert len(clf.alphas_) == 10 + + # same with alphas array-like + clf = Estimator(n_alphas=5, alphas=np.arange(10)) + if clf._is_multitask(): + clf.fit(X, y) + else: + clf.fit(X, y[:, 0]) + assert len(clf.alphas_) == 10 + + # n_alphas is not set, alphas is set => alphas is used + clf = Estimator(alphas=10) + if clf._is_multitask(): + clf.fit(X, y) + else: + clf.fit(X, y[:, 0]) + assert len(clf.alphas_) == 10 + + # same with alphas array-like + clf = Estimator(alphas=np.arange(10)) + if clf._is_multitask(): + clf.fit(X, y) + else: + clf.fit(X, y[:, 0]) + assert len(clf.alphas_) == 10 + + # both are not set => default = 100 + clf = Estimator() + if clf._is_multitask(): + clf.fit(X, y) + else: + clf.fit(X, y[:, 0]) + assert len(clf.alphas_) == 100 diff --git a/shared/package-files/0a/0a63cb7e417aea35e11ec2b240f3acbc511cf67c6271163097a58301aedc7c99/__init__.py b/shared/package-files/0a/0a63cb7e417aea35e11ec2b240f3acbc511cf67c6271163097a58301aedc7c99/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..1533b5c60b695fce0abf08e2163dfba3bdd4fb17 --- /dev/null +++ b/shared/package-files/0a/0a63cb7e417aea35e11ec2b240f3acbc511cf67c6271163097a58301aedc7c99/__init__.py @@ -0,0 +1,122 @@ +""" +============================================= +Integration and ODEs (:mod:`scipy.integrate`) +============================================= + +.. currentmodule:: scipy.integrate + +Integrating functions, given function object +============================================ + +.. autosummary:: + :toctree: generated/ + + quad -- General purpose integration + quad_vec -- General purpose integration of vector-valued functions + cubature -- General purpose multi-dimensional integration of array-valued functions + dblquad -- General purpose double integration + tplquad -- General purpose triple integration + nquad -- General purpose N-D integration + tanhsinh -- General purpose elementwise integration + fixed_quad -- Integrate func(x) using Gaussian quadrature of order n + newton_cotes -- Weights and error coefficient for Newton-Cotes integration + lebedev_rule + qmc_quad -- N-D integration using Quasi-Monte Carlo quadrature + IntegrationWarning -- Warning on issues during integration + + +Integrating functions, given fixed samples +========================================== + +.. autosummary:: + :toctree: generated/ + + trapezoid -- Use trapezoidal rule to compute integral. + cumulative_trapezoid -- Use trapezoidal rule to cumulatively compute integral. + simpson -- Use Simpson's rule to compute integral from samples. + cumulative_simpson -- Use Simpson's rule to cumulatively compute integral from samples. + romb -- Use Romberg Integration to compute integral from + -- (2**k + 1) evenly-spaced samples. + +.. seealso:: + + :mod:`scipy.special` for orthogonal polynomials (special) for Gaussian + quadrature roots and weights for other weighting factors and regions. + +Summation +========= + +.. autosummary:: + :toctree: generated/ + + nsum + +Solving initial value problems for ODE systems +============================================== + +The solvers are implemented as individual classes, which can be used directly +(low-level usage) or through a convenience function. + +.. autosummary:: + :toctree: generated/ + + solve_ivp -- Convenient function for ODE integration. + RK23 -- Explicit Runge-Kutta solver of order 3(2). + RK45 -- Explicit Runge-Kutta solver of order 5(4). + DOP853 -- Explicit Runge-Kutta solver of order 8. + Radau -- Implicit Runge-Kutta solver of order 5. + BDF -- Implicit multi-step variable order (1 to 5) solver. + LSODA -- LSODA solver from ODEPACK Fortran package. + OdeSolver -- Base class for ODE solvers. + DenseOutput -- Local interpolant for computing a dense output. + OdeSolution -- Class which represents a continuous ODE solution. + + +Old API +------- + +These are the routines developed earlier for SciPy. They wrap older solvers +implemented in Fortran (mostly ODEPACK). While the interface to them is not +particularly convenient and certain features are missing compared to the new +API, the solvers themselves are of good quality and work fast as compiled +Fortran code. In some cases, it might be worth using this old API. + +.. autosummary:: + :toctree: generated/ + + odeint -- General integration of ordinary differential equations. + ode -- Integrate ODE using VODE and ZVODE routines. + complex_ode -- Convert a complex-valued ODE to real-valued and integrate. + ODEintWarning -- Warning raised during the execution of `odeint`. + + +Solving boundary value problems for ODE systems +=============================================== + +.. autosummary:: + :toctree: generated/ + + solve_bvp -- Solve a boundary value problem for a system of ODEs. +""" # noqa: E501 + + +from ._quadrature import * +from ._odepack_py import * +from ._quadpack_py import * +from ._ode import * +from ._bvp import solve_bvp +from ._ivp import (solve_ivp, OdeSolution, DenseOutput, + OdeSolver, RK23, RK45, DOP853, Radau, BDF, LSODA) +from ._quad_vec import quad_vec +from ._tanhsinh import nsum, tanhsinh +from ._cubature import cubature +from ._lebedev import lebedev_rule + +# Deprecated namespaces, to be removed in v2.0.0 +from . import dop, lsoda, vode, odepack, quadpack + +__all__ = [s for s in dir() if not s.startswith('_')] + +from scipy._lib._testutils import PytestTester +test = PytestTester(__name__) +del PytestTester diff --git a/shared/package-files/0a/0a6a6200764dc8023d7dfe63534848497d9d08838711c2adfefdae2416cf8def/upsample_nearest2d_backward_meta.h b/shared/package-files/0a/0a6a6200764dc8023d7dfe63534848497d9d08838711c2adfefdae2416cf8def/upsample_nearest2d_backward_meta.h new file mode 100644 index 0000000000000000000000000000000000000000..5cc58b1d564821edb0ebc56699d97ae907edaa1c --- /dev/null +++ b/shared/package-files/0a/0a6a6200764dc8023d7dfe63534848497d9d08838711c2adfefdae2416cf8def/upsample_nearest2d_backward_meta.h @@ -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_upsample_nearest2d_backward : public at::impl::MetaBase { + + + void meta(const at::Tensor & grad_output, at::ArrayRef output_size, at::ArrayRef input_size, c10::optional scales_h, c10::optional scales_w); +}; + +} // namespace native +} // namespace at diff --git a/shared/package-files/0a/0a6c834fdf189417524d8a4b0c4ca80b08e1189159f959f716be706227635476/linalg_lu_factor_ex_meta.h b/shared/package-files/0a/0a6c834fdf189417524d8a4b0c4ca80b08e1189159f959f716be706227635476/linalg_lu_factor_ex_meta.h new file mode 100644 index 0000000000000000000000000000000000000000..46de2e38358492cbaf9c528f244d348bb43616e8 --- /dev/null +++ b/shared/package-files/0a/0a6c834fdf189417524d8a4b0c4ca80b08e1189159f959f716be706227635476/linalg_lu_factor_ex_meta.h @@ -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_linalg_lu_factor_ex : public at::impl::MetaBase { + + + void meta(const at::Tensor & A, bool pivot, bool check_errors); +}; + +} // namespace native +} // namespace at diff --git a/shared/package-files/0a/0a6cb31c490071ca0722f775ad286a6706b1a9c504f9c0b97aaea79b41b23e56/test_c_parser_only.py b/shared/package-files/0a/0a6cb31c490071ca0722f775ad286a6706b1a9c504f9c0b97aaea79b41b23e56/test_c_parser_only.py new file mode 100644 index 0000000000000000000000000000000000000000..5b72f76440349384e5a5fa0276332e54e45caee8 --- /dev/null +++ b/shared/package-files/0a/0a6cb31c490071ca0722f775ad286a6706b1a9c504f9c0b97aaea79b41b23e56/test_c_parser_only.py @@ -0,0 +1,647 @@ +""" +Tests that apply specifically to the CParser. Unless specifically stated +as a CParser-specific issue, the goal is to eventually move as many of +these tests out of this module as soon as the Python parser can accept +further arguments when parsing. +""" +from decimal import Decimal +from io import ( + BytesIO, + StringIO, + TextIOWrapper, +) +import mmap +import os +import tarfile + +import numpy as np +import pytest + +from pandas.compat.numpy import np_version_gte1p24 +from pandas.errors import ( + ParserError, + ParserWarning, +) +import pandas.util._test_decorators as td + +from pandas import ( + DataFrame, + concat, +) +import pandas._testing as tm + + +@pytest.mark.parametrize( + "malformed", + ["1\r1\r1\r 1\r 1\r", "1\r1\r1\r 1\r 1\r11\r", "1\r1\r1\r 1\r 1\r11\r1\r"], + ids=["words pointer", "stream pointer", "lines pointer"], +) +def test_buffer_overflow(c_parser_only, malformed): + # see gh-9205: test certain malformed input files that cause + # buffer overflows in tokenizer.c + msg = "Buffer overflow caught - possible malformed input file." + parser = c_parser_only + + with pytest.raises(ParserError, match=msg): + parser.read_csv(StringIO(malformed)) + + +def test_delim_whitespace_custom_terminator(c_parser_only): + # See gh-12912 + data = "a b c~1 2 3~4 5 6~7 8 9" + parser = c_parser_only + + depr_msg = "The 'delim_whitespace' keyword in pd.read_csv is deprecated" + with tm.assert_produces_warning( + FutureWarning, match=depr_msg, check_stacklevel=False + ): + df = parser.read_csv(StringIO(data), lineterminator="~", delim_whitespace=True) + expected = DataFrame([[1, 2, 3], [4, 5, 6], [7, 8, 9]], columns=["a", "b", "c"]) + tm.assert_frame_equal(df, expected) + + +def test_dtype_and_names_error(c_parser_only): + # see gh-8833: passing both dtype and names + # resulting in an error reporting issue + parser = c_parser_only + data = """ +1.0 1 +2.0 2 +3.0 3 +""" + # base cases + result = parser.read_csv(StringIO(data), sep=r"\s+", header=None) + expected = DataFrame([[1.0, 1], [2.0, 2], [3.0, 3]]) + tm.assert_frame_equal(result, expected) + + result = parser.read_csv(StringIO(data), sep=r"\s+", header=None, names=["a", "b"]) + expected = DataFrame([[1.0, 1], [2.0, 2], [3.0, 3]], columns=["a", "b"]) + tm.assert_frame_equal(result, expected) + + # fallback casting + result = parser.read_csv( + StringIO(data), sep=r"\s+", header=None, names=["a", "b"], dtype={"a": np.int32} + ) + expected = DataFrame([[1, 1], [2, 2], [3, 3]], columns=["a", "b"]) + expected["a"] = expected["a"].astype(np.int32) + tm.assert_frame_equal(result, expected) + + data = """ +1.0 1 +nan 2 +3.0 3 +""" + # fallback casting, but not castable + warning = RuntimeWarning if np_version_gte1p24 else None + with pytest.raises(ValueError, match="cannot safely convert"): + with tm.assert_produces_warning(warning, check_stacklevel=False): + parser.read_csv( + StringIO(data), + sep=r"\s+", + header=None, + names=["a", "b"], + dtype={"a": np.int32}, + ) + + +@pytest.mark.parametrize( + "match,kwargs", + [ + # For each of these cases, all of the dtypes are valid, just unsupported. + ( + ( + "the dtype datetime64 is not supported for parsing, " + "pass this column using parse_dates instead" + ), + {"dtype": {"A": "datetime64", "B": "float64"}}, + ), + ( + ( + "the dtype datetime64 is not supported for parsing, " + "pass this column using parse_dates instead" + ), + {"dtype": {"A": "datetime64", "B": "float64"}, "parse_dates": ["B"]}, + ), + ( + "the dtype timedelta64 is not supported for parsing", + {"dtype": {"A": "timedelta64", "B": "float64"}}, + ), + ( + f"the dtype {tm.ENDIAN}U8 is not supported for parsing", + {"dtype": {"A": "U8"}}, + ), + ], + ids=["dt64-0", "dt64-1", "td64", f"{tm.ENDIAN}U8"], +) +def test_unsupported_dtype(c_parser_only, match, kwargs): + parser = c_parser_only + df = DataFrame( + np.random.default_rng(2).random((5, 2)), + columns=list("AB"), + index=["1A", "1B", "1C", "1D", "1E"], + ) + + with tm.ensure_clean("__unsupported_dtype__.csv") as path: + df.to_csv(path) + + with pytest.raises(TypeError, match=match): + parser.read_csv(path, index_col=0, **kwargs) + + +@td.skip_if_32bit +@pytest.mark.slow +# test numbers between 1 and 2 +@pytest.mark.parametrize("num", np.linspace(1.0, 2.0, num=21)) +def test_precise_conversion(c_parser_only, num): + parser = c_parser_only + + normal_errors = [] + precise_errors = [] + + def error(val: float, actual_val: Decimal) -> Decimal: + return abs(Decimal(f"{val:.100}") - actual_val) + + # 25 decimal digits of precision + text = f"a\n{num:.25}" + + normal_val = float( + parser.read_csv(StringIO(text), float_precision="legacy")["a"][0] + ) + precise_val = float(parser.read_csv(StringIO(text), float_precision="high")["a"][0]) + roundtrip_val = float( + parser.read_csv(StringIO(text), float_precision="round_trip")["a"][0] + ) + actual_val = Decimal(text[2:]) + + normal_errors.append(error(normal_val, actual_val)) + precise_errors.append(error(precise_val, actual_val)) + + # round-trip should match float() + assert roundtrip_val == float(text[2:]) + + assert sum(precise_errors) <= sum(normal_errors) + assert max(precise_errors) <= max(normal_errors) + + +def test_usecols_dtypes(c_parser_only, using_infer_string): + parser = c_parser_only + data = """\ +1,2,3 +4,5,6 +7,8,9 +10,11,12""" + + result = parser.read_csv( + StringIO(data), + usecols=(0, 1, 2), + names=("a", "b", "c"), + header=None, + converters={"a": str}, + dtype={"b": int, "c": float}, + ) + result2 = parser.read_csv( + StringIO(data), + usecols=(0, 2), + names=("a", "b", "c"), + header=None, + converters={"a": str}, + dtype={"b": int, "c": float}, + ) + + if using_infer_string: + assert (result.dtypes == ["string", int, float]).all() + assert (result2.dtypes == ["string", float]).all() + else: + assert (result.dtypes == [object, int, float]).all() + assert (result2.dtypes == [object, float]).all() + + +def test_disable_bool_parsing(c_parser_only): + # see gh-2090 + + parser = c_parser_only + data = """A,B,C +Yes,No,Yes +No,Yes,Yes +Yes,,Yes +No,No,No""" + + result = parser.read_csv(StringIO(data), dtype=object) + assert (result.dtypes == object).all() + + result = parser.read_csv(StringIO(data), dtype=object, na_filter=False) + assert result["B"][2] == "" + + +def test_custom_lineterminator(c_parser_only): + parser = c_parser_only + data = "a,b,c~1,2,3~4,5,6" + + result = parser.read_csv(StringIO(data), lineterminator="~") + expected = parser.read_csv(StringIO(data.replace("~", "\n"))) + + tm.assert_frame_equal(result, expected) + + +def test_parse_ragged_csv(c_parser_only): + parser = c_parser_only + data = """1,2,3 +1,2,3,4 +1,2,3,4,5 +1,2 +1,2,3,4""" + + nice_data = """1,2,3,, +1,2,3,4, +1,2,3,4,5 +1,2,,, +1,2,3,4,""" + result = parser.read_csv( + StringIO(data), header=None, names=["a", "b", "c", "d", "e"] + ) + + expected = parser.read_csv( + StringIO(nice_data), header=None, names=["a", "b", "c", "d", "e"] + ) + + tm.assert_frame_equal(result, expected) + + # too many columns, cause segfault if not careful + data = "1,2\n3,4,5" + + result = parser.read_csv(StringIO(data), header=None, names=range(50)) + expected = parser.read_csv(StringIO(data), header=None, names=range(3)).reindex( + columns=range(50) + ) + + tm.assert_frame_equal(result, expected) + + +def test_tokenize_CR_with_quoting(c_parser_only): + # see gh-3453 + parser = c_parser_only + data = ' a,b,c\r"a,b","e,d","f,f"' + + result = parser.read_csv(StringIO(data), header=None) + expected = parser.read_csv(StringIO(data.replace("\r", "\n")), header=None) + tm.assert_frame_equal(result, expected) + + result = parser.read_csv(StringIO(data)) + expected = parser.read_csv(StringIO(data.replace("\r", "\n"))) + tm.assert_frame_equal(result, expected) + + +@pytest.mark.slow +@pytest.mark.parametrize("count", [3 * 2**n for n in range(6)]) +def test_grow_boundary_at_cap(c_parser_only, count): + # See gh-12494 + # + # Cause of error was that the C parser + # was not increasing the buffer size when + # the desired space would fill the buffer + # to capacity, which would later cause a + # buffer overflow error when checking the + # EOF terminator of the CSV stream. + # 3 * 2^n commas was observed to break the parser + parser = c_parser_only + + with StringIO("," * count) as s: + expected = DataFrame(columns=[f"Unnamed: {i}" for i in range(count + 1)]) + df = parser.read_csv(s) + tm.assert_frame_equal(df, expected) + + +@pytest.mark.slow +@pytest.mark.parametrize("encoding", [None, "utf-8"]) +def test_parse_trim_buffers(c_parser_only, encoding): + # This test is part of a bugfix for gh-13703. It attempts to + # to stress the system memory allocator, to cause it to move the + # stream buffer and either let the OS reclaim the region, or let + # other memory requests of parser otherwise modify the contents + # of memory space, where it was formally located. + # This test is designed to cause a `segfault` with unpatched + # `tokenizer.c`. Sometimes the test fails on `segfault`, other + # times it fails due to memory corruption, which causes the + # loaded DataFrame to differ from the expected one. + + # Also force 'utf-8' encoding, so that `_string_convert` would take + # a different execution branch. + + parser = c_parser_only + + # Generate a large mixed-type CSV file on-the-fly (one record is + # approx 1.5KiB). + record_ = ( + """9999-9,99:99,,,,ZZ,ZZ,,,ZZZ-ZZZZ,.Z-ZZZZ,-9.99,,,9.99,Z""" + """ZZZZ,,-99,9,ZZZ-ZZZZ,ZZ-ZZZZ,,9.99,ZZZ-ZZZZZ,ZZZ-ZZZZZ,""" + """ZZZ-ZZZZ,ZZZ-ZZZZ,ZZZ-ZZZZ,ZZZ-ZZZZ,ZZZ-ZZZZ,ZZZ-ZZZZ,9""" + """99,ZZZ-ZZZZ,,ZZ-ZZZZ,,,,,ZZZZ,ZZZ-ZZZZZ,ZZZ-ZZZZ,,,9,9,""" + """9,9,99,99,999,999,ZZZZZ,ZZZ-ZZZZZ,ZZZ-ZZZZ,9,ZZ-ZZZZ,9.""" + """99,ZZ-ZZZZ,ZZ-ZZZZ,,,,ZZZZ,,,ZZ,ZZ,,,,,,,,,,,,,9,,,999.""" + """99,999.99,,,ZZZZZ,,,Z9,,,,,,,ZZZ,ZZZ,,,,,,,,,,,ZZZZZ,ZZ""" + """ZZZ,ZZZ-ZZZZZZ,ZZZ-ZZZZZZ,ZZ-ZZZZ,ZZ-ZZZZ,ZZ-ZZZZ,ZZ-ZZ""" + """ZZ,,,999999,999999,ZZZ,ZZZ,,,ZZZ,ZZZ,999.99,999.99,,,,Z""" + """ZZ-ZZZ,ZZZ-ZZZ,-9.99,-9.99,9,9,,99,,9.99,9.99,9,9,9.99,""" + """9.99,,,,9.99,9.99,,99,,99,9.99,9.99,,,ZZZ,ZZZ,,999.99,,""" + """999.99,ZZZ,ZZZ-ZZZZ,ZZZ-ZZZZ,,,ZZZZZ,ZZZZZ,ZZZ,ZZZ,9,9,""" + """,,,,,ZZZ-ZZZZ,ZZZ999Z,,,999.99,,999.99,ZZZ-ZZZZ,,,9.999""" + """,9.999,9.999,9.999,-9.999,-9.999,-9.999,-9.999,9.999,9.""" + """999,9.999,9.999,9.999,9.999,9.999,9.999,99999,ZZZ-ZZZZ,""" + """,9.99,ZZZ,,,,,,,,ZZZ,,,,,9,,,,9,,,,,,,,,,ZZZ-ZZZZ,ZZZ-Z""" + """ZZZ,,ZZZZZ,ZZZZZ,ZZZZZ,ZZZZZ,,,9.99,,ZZ-ZZZZ,ZZ-ZZZZ,ZZ""" + """,999,,,,ZZ-ZZZZ,ZZZ,ZZZ,ZZZ-ZZZZ,ZZZ-ZZZZ,,,99.99,99.99""" + """,,,9.99,9.99,9.99,9.99,ZZZ-ZZZZ,,,ZZZ-ZZZZZ,,,,,-9.99,-""" + """9.99,-9.99,-9.99,,,,,,,,,ZZZ-ZZZZ,,9,9.99,9.99,99ZZ,,-9""" + """.99,-9.99,ZZZ-ZZZZ,,,,,,,ZZZ-ZZZZ,9.99,9.99,9999,,,,,,,""" + """,,,-9.9,Z/Z-ZZZZ,999.99,9.99,,999.99,ZZ-ZZZZ,ZZ-ZZZZ,9.""" + """99,9.99,9.99,9.99,9.99,9.99,,ZZZ-ZZZZZ,ZZZ-ZZZZZ,ZZZ-ZZ""" + """ZZZ,ZZZ-ZZZZZ,ZZZ-ZZZZZ,ZZZ,ZZZ,ZZZ,ZZZ,9.99,,,-9.99,ZZ""" + """-ZZZZ,-999.99,,-9999,,999.99,,,,999.99,99.99,,,ZZ-ZZZZZ""" + """ZZZ,ZZ-ZZZZ-ZZZZZZZ,,,,ZZ-ZZ-ZZZZZZZZ,ZZZZZZZZ,ZZZ-ZZZZ""" + """,9999,999.99,ZZZ-ZZZZ,-9.99,-9.99,ZZZ-ZZZZ,99:99:99,,99""" + """,99,,9.99,,-99.99,,,,,,9.99,ZZZ-ZZZZ,-9.99,-9.99,9.99,9""" + """.99,,ZZZ,,,,,,,ZZZ,ZZZ,,,,,""" + ) + + # Set the number of lines so that a call to `parser_trim_buffers` + # is triggered: after a couple of full chunks are consumed a + # relatively small 'residual' chunk would cause reallocation + # within the parser. + chunksize, n_lines = 128, 2 * 128 + 15 + csv_data = "\n".join([record_] * n_lines) + "\n" + + # We will use StringIO to load the CSV from this text buffer. + # pd.read_csv() will iterate over the file in chunks and will + # finally read a residual chunk of really small size. + + # Generate the expected output: manually create the dataframe + # by splitting by comma and repeating the `n_lines` times. + row = tuple(val_ if val_ else np.nan for val_ in record_.split(",")) + expected = DataFrame( + [row for _ in range(n_lines)], dtype=object, columns=None, index=None + ) + + # Iterate over the CSV file in chunks of `chunksize` lines + with parser.read_csv( + StringIO(csv_data), + header=None, + dtype=object, + chunksize=chunksize, + encoding=encoding, + ) as chunks_: + result = concat(chunks_, axis=0, ignore_index=True) + + # Check for data corruption if there was no segfault + tm.assert_frame_equal(result, expected) + + +def test_internal_null_byte(c_parser_only): + # see gh-14012 + # + # The null byte ('\x00') should not be used as a + # true line terminator, escape character, or comment + # character, only as a placeholder to indicate that + # none was specified. + # + # This test should be moved to test_common.py ONLY when + # Python's csv class supports parsing '\x00'. + parser = c_parser_only + + names = ["a", "b", "c"] + data = "1,2,3\n4,\x00,6\n7,8,9" + expected = DataFrame([[1, 2.0, 3], [4, np.nan, 6], [7, 8, 9]], columns=names) + + result = parser.read_csv(StringIO(data), names=names) + tm.assert_frame_equal(result, expected) + + +def test_read_nrows_large(c_parser_only): + # gh-7626 - Read only nrows of data in for large inputs (>262144b) + parser = c_parser_only + header_narrow = "\t".join(["COL_HEADER_" + str(i) for i in range(10)]) + "\n" + data_narrow = "\t".join(["somedatasomedatasomedata1" for _ in range(10)]) + "\n" + header_wide = "\t".join(["COL_HEADER_" + str(i) for i in range(15)]) + "\n" + data_wide = "\t".join(["somedatasomedatasomedata2" for _ in range(15)]) + "\n" + test_input = header_narrow + data_narrow * 1050 + header_wide + data_wide * 2 + + df = parser.read_csv(StringIO(test_input), sep="\t", nrows=1010) + + assert df.size == 1010 * 10 + + +def test_float_precision_round_trip_with_text(c_parser_only): + # see gh-15140 + parser = c_parser_only + df = parser.read_csv(StringIO("a"), header=None, float_precision="round_trip") + tm.assert_frame_equal(df, DataFrame({0: ["a"]})) + + +def test_large_difference_in_columns(c_parser_only): + # see gh-14125 + parser = c_parser_only + + count = 10000 + large_row = ("X," * count)[:-1] + "\n" + normal_row = "XXXXXX XXXXXX,111111111111111\n" + test_input = (large_row + normal_row * 6)[:-1] + + result = parser.read_csv(StringIO(test_input), header=None, usecols=[0]) + rows = test_input.split("\n") + + expected = DataFrame([row.split(",")[0] for row in rows]) + tm.assert_frame_equal(result, expected) + + +def test_data_after_quote(c_parser_only): + # see gh-15910 + parser = c_parser_only + + data = 'a\n1\n"b"a' + result = parser.read_csv(StringIO(data)) + + expected = DataFrame({"a": ["1", "ba"]}) + tm.assert_frame_equal(result, expected) + + +def test_comment_whitespace_delimited(c_parser_only): + parser = c_parser_only + test_input = """\ +1 2 +2 2 3 +3 2 3 # 3 fields +4 2 3# 3 fields +5 2 # 2 fields +6 2# 2 fields +7 # 1 field, NaN +8# 1 field, NaN +9 2 3 # skipped line +# comment""" + with tm.assert_produces_warning( + ParserWarning, match="Skipping line", check_stacklevel=False + ): + df = parser.read_csv( + StringIO(test_input), + comment="#", + header=None, + delimiter="\\s+", + skiprows=0, + on_bad_lines="warn", + ) + expected = DataFrame([[1, 2], [5, 2], [6, 2], [7, np.nan], [8, np.nan]]) + tm.assert_frame_equal(df, expected) + + +def test_file_like_no_next(c_parser_only): + # gh-16530: the file-like need not have a "next" or "__next__" + # attribute despite having an "__iter__" attribute. + # + # NOTE: This is only true for the C engine, not Python engine. + class NoNextBuffer(StringIO): + def __next__(self): + raise AttributeError("No next method") + + next = __next__ + + parser = c_parser_only + data = "a\n1" + + expected = DataFrame({"a": [1]}) + result = parser.read_csv(NoNextBuffer(data)) + + tm.assert_frame_equal(result, expected) + + +def test_buffer_rd_bytes_bad_unicode(c_parser_only): + # see gh-22748 + t = BytesIO(b"\xB0") + t = TextIOWrapper(t, encoding="ascii", errors="surrogateescape") + msg = "'utf-8' codec can't encode character" + with pytest.raises(UnicodeError, match=msg): + c_parser_only.read_csv(t, encoding="UTF-8") + + +@pytest.mark.parametrize("tar_suffix", [".tar", ".tar.gz"]) +def test_read_tarfile(c_parser_only, csv_dir_path, tar_suffix): + # see gh-16530 + # + # Unfortunately, Python's CSV library can't handle + # tarfile objects (expects string, not bytes when + # iterating through a file-like). + parser = c_parser_only + tar_path = os.path.join(csv_dir_path, "tar_csv" + tar_suffix) + + with tarfile.open(tar_path, "r") as tar: + data_file = tar.extractfile("tar_data.csv") + + out = parser.read_csv(data_file) + expected = DataFrame({"a": [1]}) + tm.assert_frame_equal(out, expected) + + +def test_chunk_whitespace_on_boundary(c_parser_only): + # see gh-9735: this issue is C parser-specific (bug when + # parsing whitespace and characters at chunk boundary) + # + # This test case has a field too large for the Python parser / CSV library. + parser = c_parser_only + + chunk1 = "a" * (1024 * 256 - 2) + "\na" + chunk2 = "\n a" + result = parser.read_csv(StringIO(chunk1 + chunk2), header=None) + + expected = DataFrame(["a" * (1024 * 256 - 2), "a", " a"]) + tm.assert_frame_equal(result, expected) + + +def test_file_handles_mmap(c_parser_only, csv1): + # gh-14418 + # + # Don't close user provided file handles. + parser = c_parser_only + + with open(csv1, encoding="utf-8") as f: + with mmap.mmap(f.fileno(), 0, access=mmap.ACCESS_READ) as m: + parser.read_csv(m) + assert not m.closed + + +def test_file_binary_mode(c_parser_only): + # see gh-23779 + parser = c_parser_only + expected = DataFrame([[1, 2, 3], [4, 5, 6]]) + + with tm.ensure_clean() as path: + with open(path, "w", encoding="utf-8") as f: + f.write("1,2,3\n4,5,6") + + with open(path, "rb") as f: + result = parser.read_csv(f, header=None) + tm.assert_frame_equal(result, expected) + + +def test_unix_style_breaks(c_parser_only): + # GH 11020 + parser = c_parser_only + with tm.ensure_clean() as path: + with open(path, "w", newline="\n", encoding="utf-8") as f: + f.write("blah\n\ncol_1,col_2,col_3\n\n") + result = parser.read_csv(path, skiprows=2, encoding="utf-8", engine="c") + expected = DataFrame(columns=["col_1", "col_2", "col_3"]) + tm.assert_frame_equal(result, expected) + + +@pytest.mark.parametrize("float_precision", [None, "legacy", "high", "round_trip"]) +@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( + c_parser_only, data, thousands, decimal, float_precision +): + parser = c_parser_only + expected = DataFrame({"A": [1, 10], "B": [2334.01, 13], "C": [5, 10.0]}) + + result = parser.read_csv( + StringIO(data), + sep="|", + thousands=thousands, + decimal=decimal, + float_precision=float_precision, + ) + tm.assert_frame_equal(result, expected) + + +def test_float_precision_options(c_parser_only): + # GH 17154, 36228 + parser = c_parser_only + s = "foo\n243.164\n" + df = parser.read_csv(StringIO(s)) + df2 = parser.read_csv(StringIO(s), float_precision="high") + + tm.assert_frame_equal(df, df2) + + df3 = parser.read_csv(StringIO(s), float_precision="legacy") + + assert not df.iloc[0, 0] == df3.iloc[0, 0] + + msg = "Unrecognized float_precision option: junk" + + with pytest.raises(ValueError, match=msg): + parser.read_csv(StringIO(s), float_precision="junk") diff --git a/shared/package-files/0a/0a6d98ba901013b205b221e9e139c2f646ff08b5c614c10ae3331a10bae4b489/cache_usecases.py b/shared/package-files/0a/0a6d98ba901013b205b221e9e139c2f646ff08b5c614c10ae3331a10bae4b489/cache_usecases.py new file mode 100644 index 0000000000000000000000000000000000000000..ad6d9ad57f022e98d9074799a1bbb61ad98b53c9 --- /dev/null +++ b/shared/package-files/0a/0a6d98ba901013b205b221e9e139c2f646ff08b5c614c10ae3331a10bae4b489/cache_usecases.py @@ -0,0 +1,234 @@ +from numba import cuda +from numba.cuda.testing import CUDATestCase +import numpy as np +import sys + + +class UseCase: + """ + Provide a way to call a kernel as if it were a function. + + This allows the CUDA cache tests to closely match the CPU cache tests, and + also to support calling cache use cases as njitted functions. The class + wraps a function that takes an array for the return value and arguments, + and provides an interface that accepts arguments, launches the kernel + appropriately, and returns the stored return value. + + The return type is inferred from the type of the first argument, unless it + is explicitly overridden by the ``retty`` kwarg. + """ + def __init__(self, func, retty=None): + self._func = func + self._retty = retty + + def __call__(self, *args): + array_args = [np.asarray(arg) for arg in args] + if self._retty: + array_return = np.ndarray((), dtype=self._retty) + else: + array_return = np.zeros_like(array_args[0]) + + self._call(array_return, *array_args) + return array_return[()] + + @property + def func(self): + return self._func + + +class CUDAUseCase(UseCase): + def _call(self, ret, *args): + self._func[1, 1](ret, *args) + + +@cuda.jit(cache=True) +def add_usecase_kernel(r, x, y): + r[()] = x[()] + y[()] + Z + + +@cuda.jit(cache=False) +def add_nocache_usecase_kernel(r, x, y): + r[()] = x[()] + y[()] + Z + + +add_usecase = CUDAUseCase(add_usecase_kernel) +add_nocache_usecase = CUDAUseCase(add_nocache_usecase_kernel) + +Z = 1 + + +# Inner / outer cached / uncached cases + +@cuda.jit(cache=True) +def inner(x, y): + return x + y + Z + + +@cuda.jit(cache=True) +def outer_kernel(r, x, y): + r[()] = inner(-y[()], x[()]) + + +@cuda.jit(cache=False) +def outer_uncached_kernel(r, x, y): + r[()] = inner(-y[()], x[()]) + + +outer = CUDAUseCase(outer_kernel) +outer_uncached = CUDAUseCase(outer_uncached_kernel) + + +# Exercise returning a record instance. This used to hardcode the dtype +# pointer's value in the bitcode. + +packed_record_type = np.dtype([('a', np.int8), ('b', np.float64)]) +aligned_record_type = np.dtype([('a', np.int8), ('b', np.float64)], align=True) + +packed_arr = np.empty(2, dtype=packed_record_type) +for i in range(packed_arr.size): + packed_arr[i]['a'] = i + 1 + packed_arr[i]['b'] = i + 42.5 + +aligned_arr = np.array(packed_arr, dtype=aligned_record_type) + + +@cuda.jit(cache=True) +def record_return(r, ary, i): + r[()] = ary[i] + + +record_return_packed = CUDAUseCase(record_return, retty=packed_record_type) +record_return_aligned = CUDAUseCase(record_return, retty=aligned_record_type) + + +# Closure test cases + +def make_closure(x): + @cuda.jit(cache=True) + def closure(r, y): + r[()] = x + y[()] + + return CUDAUseCase(closure) + + +closure1 = make_closure(3) +closure2 = make_closure(5) +closure3 = make_closure(7) +closure4 = make_closure(9) + + +# Ambiguous / renamed functions + +@cuda.jit(cache=True) +def ambiguous_function(r, x): + r[()] = x[()] + 2 + + +renamed_function1 = CUDAUseCase(ambiguous_function) + + +@cuda.jit(cache=True) +def ambiguous_function(r, x): + r[()] = x[()] + 6 + + +renamed_function2 = CUDAUseCase(ambiguous_function) + + +@cuda.jit(cache=True) +def many_locals(): + aa = cuda.local.array((1, 1), np.float64) + ab = cuda.local.array((1, 1), np.float64) + ac = cuda.local.array((1, 1), np.float64) + ad = cuda.local.array((1, 1), np.float64) + ae = cuda.local.array((1, 1), np.float64) + af = cuda.local.array((1, 1), np.float64) + ag = cuda.local.array((1, 1), np.float64) + ah = cuda.local.array((1, 1), np.float64) + ai = cuda.local.array((1, 1), np.float64) + aj = cuda.local.array((1, 1), np.float64) + ak = cuda.local.array((1, 1), np.float64) + al = cuda.local.array((1, 1), np.float64) + am = cuda.local.array((1, 1), np.float64) + an = cuda.local.array((1, 1), np.float64) + ao = cuda.local.array((1, 1), np.float64) + ap = cuda.local.array((1, 1), np.float64) + ar = cuda.local.array((1, 1), np.float64) + at = cuda.local.array((1, 1), np.float64) + au = cuda.local.array((1, 1), np.float64) + av = cuda.local.array((1, 1), np.float64) + aw = cuda.local.array((1, 1), np.float64) + ax = cuda.local.array((1, 1), np.float64) + ay = cuda.local.array((1, 1), np.float64) + az = cuda.local.array((1, 1), np.float64) + + aa[:] = 0 + ab[:] = 0 + ac[:] = 0 + ad[:] = 0 + ae[:] = 0 + af[:] = 0 + ag[:] = 0 + ah[:] = 0 + ai[:] = 0 + aj[:] = 0 + ak[:] = 0 + al[:] = 0 + am[:] = 0 + an[:] = 0 + ao[:] = 0 + ap[:] = 0 + ar[:] = 0 + at[:] = 0 + au[:] = 0 + av[:] = 0 + aw[:] = 0 + ax[:] = 0 + ay[:] = 0 + az[:] = 0 + + +# Simple use case for multiprocessing test + +@cuda.jit(cache=True) +def simple_usecase_kernel(r, x): + r[()] = x[()] + + +simple_usecase_caller = CUDAUseCase(simple_usecase_kernel) + + +# Usecase with cooperative groups + +@cuda.jit(cache=True) +def cg_usecase_kernel(r, x): + grid = cuda.cg.this_grid() + grid.sync() + + +cg_usecase = CUDAUseCase(cg_usecase_kernel) + + +class _TestModule(CUDATestCase): + """ + Tests for functionality of this module's functions. + Note this does not define any "test_*" method, instead check_module() + should be called by hand. + """ + + def check_module(self, mod): + self.assertPreciseEqual(mod.add_usecase(2, 3), 6) + self.assertPreciseEqual(mod.outer_uncached(3, 2), 2) + self.assertPreciseEqual(mod.outer(3, 2), 2) + + packed_rec = mod.record_return_packed(mod.packed_arr, 1) + self.assertPreciseEqual(tuple(packed_rec), (2, 43.5)) + aligned_rec = mod.record_return_aligned(mod.aligned_arr, 1) + self.assertPreciseEqual(tuple(aligned_rec), (2, 43.5)) + + mod.simple_usecase_caller(2) + + +def self_test(): + mod = sys.modules[__name__] + _TestModule().check_module(mod) diff --git a/shared/package-files/0a/0a6ead3c15bb9833e18ee7db5e701e1fa3908987ccb7f9691c1586a3e906c9d2/squeeze_ops.h b/shared/package-files/0a/0a6ead3c15bb9833e18ee7db5e701e1fa3908987ccb7f9691c1586a3e906c9d2/squeeze_ops.h new file mode 100644 index 0000000000000000000000000000000000000000..81ac367200df3dec057ece4e3682cf3a156af660 --- /dev/null +++ b/shared/package-files/0a/0a6ead3c15bb9833e18ee7db5e701e1fa3908987ccb7f9691c1586a3e906c9d2/squeeze_ops.h @@ -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 squeeze { + 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::squeeze") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "squeeze(Tensor(a) self) -> Tensor(a)") + static at::Tensor call(const at::Tensor & self); + static at::Tensor redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self); +}; + +struct TORCH_API squeeze_dim { + 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::squeeze") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "dim") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "squeeze.dim(Tensor(a) self, int dim) -> Tensor(a)") + static at::Tensor call(const at::Tensor & self, int64_t dim); + static at::Tensor redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim); +}; + +struct TORCH_API squeeze_dimname { + using schema = at::Tensor (const at::Tensor &, at::Dimname); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::squeeze") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "dimname") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "squeeze.dimname(Tensor(a) self, Dimname dim) -> Tensor(a)") + static at::Tensor call(const at::Tensor & self, at::Dimname dim); + static at::Tensor redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim); +}; + +struct TORCH_API squeeze_dims { + using schema = at::Tensor (const at::Tensor &, at::IntArrayRef); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::squeeze") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "dims") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "squeeze.dims(Tensor(a) self, int[] dim) -> Tensor(a)") + static at::Tensor call(const at::Tensor & self, at::IntArrayRef dim); + static at::Tensor redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef dim); +}; + +struct TORCH_API squeeze_ { + 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::squeeze_") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "squeeze_(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 squeeze__dim { + 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::squeeze_") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "dim") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "squeeze_.dim(Tensor(a!) self, int dim) -> Tensor(a!)") + static at::Tensor & call(at::Tensor & self, int64_t dim); + static at::Tensor & redispatch(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, int64_t dim); +}; + +struct TORCH_API squeeze__dims { + using schema = at::Tensor & (at::Tensor &, at::IntArrayRef); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::squeeze_") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "dims") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "squeeze_.dims(Tensor(a!) self, int[] dim) -> Tensor(a!)") + static at::Tensor & call(at::Tensor & self, at::IntArrayRef dim); + static at::Tensor & redispatch(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, at::IntArrayRef dim); +}; + +struct TORCH_API squeeze__dimname { + using schema = at::Tensor & (at::Tensor &, at::Dimname); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::squeeze_") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "dimname") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "squeeze_.dimname(Tensor(a!) self, Dimname dim) -> Tensor(a!)") + static at::Tensor & call(at::Tensor & self, at::Dimname dim); + static at::Tensor & redispatch(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, at::Dimname dim); +}; + +}} // namespace at::_ops diff --git a/shared/package-files/0a/0a6ef4c0b08fd39fd8925d9edfc188c0eb0ec70a7ed13000faa71caee28b90aa/prod_meta_dispatch.h b/shared/package-files/0a/0a6ef4c0b08fd39fd8925d9edfc188c0eb0ec70a7ed13000faa71caee28b90aa/prod_meta_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..fca9aa90ca696827834ca588e776fc1d82db1c82 --- /dev/null +++ b/shared/package-files/0a/0a6ef4c0b08fd39fd8925d9edfc188c0eb0ec70a7ed13000faa71caee28b90aa/prod_meta_dispatch.h @@ -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 prod(const at::Tensor & self, int64_t dim, bool keepdim=false, c10::optional dtype=c10::nullopt); +TORCH_API at::Tensor & prod_out(at::Tensor & out, const at::Tensor & self, int64_t dim, bool keepdim=false, c10::optional dtype=c10::nullopt); +TORCH_API at::Tensor & prod_outf(const at::Tensor & self, int64_t dim, bool keepdim, c10::optional dtype, at::Tensor & out); + +} // namespace meta +} // namespace at diff --git a/shared/package-files/0a/0a70e1a54a7897a131075eb3f7247418e663c9e74d000eecf3a205f077df486e/upsample_nearest2d_compositeexplicitautogradnonfunctional_dispatch.h b/shared/package-files/0a/0a70e1a54a7897a131075eb3f7247418e663c9e74d000eecf3a205f077df486e/upsample_nearest2d_compositeexplicitautogradnonfunctional_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..b5c6aff8d7028e3070bd3118feb291746d01cfc3 --- /dev/null +++ b/shared/package-files/0a/0a70e1a54a7897a131075eb3f7247418e663c9e74d000eecf3a205f077df486e/upsample_nearest2d_compositeexplicitautogradnonfunctional_dispatch.h @@ -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 upsample_nearest2d(const at::Tensor & self, at::IntArrayRef output_size, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt); +TORCH_API at::Tensor upsample_nearest2d_symint(const at::Tensor & self, c10::SymIntArrayRef output_size, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt); + +} // namespace compositeexplicitautogradnonfunctional +} // namespace at diff --git a/shared/package-files/0a/0a7314d9d048fbadefb7cf89d10d51a29c7ef1bf694422e386faf270c21e7468/Resolute b/shared/package-files/0a/0a7314d9d048fbadefb7cf89d10d51a29c7ef1bf694422e386faf270c21e7468/Resolute new file mode 100644 index 0000000000000000000000000000000000000000..19668900dea9249c1714b8838e44ac2070069138 Binary files /dev/null and b/shared/package-files/0a/0a7314d9d048fbadefb7cf89d10d51a29c7ef1bf694422e386faf270c21e7468/Resolute differ diff --git a/shared/package-files/0a/0a778e9bcaca4846c0f3e859399478a654c9f450f65a7be35b001505137b205b/functional_call.py b/shared/package-files/0a/0a778e9bcaca4846c0f3e859399478a654c9f450f65a7be35b001505137b205b/functional_call.py new file mode 100644 index 0000000000000000000000000000000000000000..7533811ed235ba8e527306f20908faa605162228 --- /dev/null +++ b/shared/package-files/0a/0a778e9bcaca4846c0f3e859399478a654c9f450f65a7be35b001505137b205b/functional_call.py @@ -0,0 +1,248 @@ +from collections import Counter +from typing import Any, Dict, List, Optional, Sequence, Tuple, Union + +import torch +import torch.nn as nn +from torch import Tensor +from torch._functorch.utils import exposed_in + + +@exposed_in("torch.func") +def functional_call( + module: "torch.nn.Module", + parameter_and_buffer_dicts: Union[Dict[str, Tensor], Sequence[Dict[str, Tensor]]], + args: Union[Any, Tuple], + kwargs: Optional[Dict[str, Any]] = None, + *, + tie_weights: bool = True, + strict: bool = False, +): + r"""Performs a functional call on the module by replacing the module parameters + and buffers with the provided ones. + + .. note:: If the module has active parametrizations, passing a value in the + :attr:`parameter_and_buffer_dicts` argument with the name set to the regular parameter + name will completely disable the parametrization. + If you want to apply the parametrization function to the value passed + please set the key as ``{submodule_name}.parametrizations.{parameter_name}.original``. + + .. note:: If the module performs in-place operations on parameters/buffers, these will be reflected + in the ``parameter_and_buffer_dicts`` input. + + + Example:: + + >>> a = {'foo': torch.zeros(())} + >>> # xdoctest: +SKIP + >>> mod = Foo() # does self.foo = self.foo + 1 + >>> print(mod.foo) # tensor(0.) + >>> functional_call(mod, a, torch.ones(())) + >>> print(mod.foo) # tensor(0.) + >>> print(a['foo']) # tensor(1.) + + .. note:: If the module has tied weights, whether or not functional_call respects the tying is determined by the + tie_weights flag. + + Example:: + + >>> a = {'foo': torch.zeros(())} + >>> # xdoctest: +SKIP + >>> mod = Foo() # has both self.foo and self.foo_tied which are tied. Returns x + self.foo + self.foo_tied + >>> print(mod.foo) # tensor(1.) + >>> mod(torch.zeros(())) # tensor(2.) + >>> functional_call(mod, a, torch.zeros(())) # tensor(0.) since it will change self.foo_tied too + >>> functional_call(mod, a, torch.zeros(()), tie_weights=False) # tensor(1.)--self.foo_tied is not updated + >>> new_a = {'foo': torch.zeros(()), 'foo_tied': torch.zeros(())} + >>> functional_call(mod, new_a, torch.zeros()) # tensor(0.) + + An example of passing multiple dictionaries + + .. code-block:: python + + a = ({'weight': torch.ones(1, 1)}, {'buffer': torch.zeros(1)}) # two separate dictionaries + mod = nn.Bar(1, 1) # return self.weight @ x + self.buffer + print(mod.weight) # tensor(...) + print(mod.buffer) # tensor(...) + x = torch.randn((1, 1)) + print(x) + functional_call(mod, a, x) # same as x + print(mod.weight) # same as before functional_call + + + And here is an example of applying the grad transform over the parameters + of a model. + + .. code-block:: python + + import torch + import torch.nn as nn + from torch.func import functional_call, grad + + x = torch.randn(4, 3) + t = torch.randn(4, 3) + model = nn.Linear(3, 3) + + def compute_loss(params, x, t): + y = functional_call(model, params, x) + return nn.functional.mse_loss(y, t) + + grad_weights = grad(compute_loss)(dict(model.named_parameters()), x, t) + + .. note:: If the user does not need grad tracking outside of grad transforms, they can detach all of the + parameters for better performance and memory usage + + Example:: + + >>> detached_params = {k: v.detach() for k, v in model.named_parameters()} + >>> grad_weights = grad(compute_loss)(detached_params, x, t) + >>> grad_weights.grad_fn # None--it's not tracking gradients outside of grad + + This means that the user cannot call ``grad_weight.backward()``. However, if they don't need autograd tracking + outside of the transforms, this will result in less memory usage and faster speeds. + + Args: + module (torch.nn.Module): the module to call + parameters_and_buffer_dicts (Dict[str, Tensor] or tuple of Dict[str, Tensor]): the parameters that will be used in + the module call. If given a tuple of dictionaries, they must have distinct keys so that all dictionaries can + be used together + args (Any or tuple): arguments to be passed to the module call. If not a tuple, considered a single argument. + kwargs (dict): keyword arguments to be passed to the module call + tie_weights (bool, optional): If True, then parameters and buffers tied in the original model will be treated as + tied in the reparameterized version. Therefore, if True and different values are passed for the tied + parameters and buffers, it will error. If False, it will not respect the originally tied parameters and + buffers unless the values passed for both weights are the same. Default: True. + strict (bool, optional): If True, then the parameters and buffers passed in must match the parameters and + buffers in the original module. Therefore, if True and there are any missing or unexpected keys, it will + error. Default: False. + + Returns: + Any: the result of calling ``module``. + """ + if isinstance(parameter_and_buffer_dicts, dict): + parameters_and_buffers = parameter_and_buffer_dicts + elif isinstance(parameter_and_buffer_dicts, Sequence): + if not all(isinstance(d, dict) for d in parameter_and_buffer_dicts): + raise ValueError( + "Expected all elements of parameter_and_buffer_dicts to be dictionaries" + ) + all_keys = [k for d in parameter_and_buffer_dicts for k in d.keys()] + repeated_keys = [key for key, n in Counter(all_keys).items() if n > 1] + if len(repeated_keys) > 0: + raise ValueError( + f"{repeated_keys} appeared in multiple dictionaries; behavior of functional call is ambiguous" + ) + parameters_and_buffers = { + k: v for d in parameter_and_buffer_dicts for k, v in d.items() + } + else: + raise ValueError( + f"Expected parameter_and_buffer_dicts to be a dict, or a list/tuple of dicts, " + f"but got {type(parameter_and_buffer_dicts)}" + ) + + return nn.utils.stateless._functional_call( + module, + parameters_and_buffers, + args, + kwargs, + tie_weights=tie_weights, + strict=strict, + ) + + +@exposed_in("torch.func") +def stack_module_state( + models: List[nn.Module], +) -> Tuple[Dict[str, Any], Dict[str, Any]]: + """stack_module_state(models) -> params, buffers + + Prepares a list of torch.nn.Modules for ensembling with :func:`vmap`. + + Given a list of ``M`` ``nn.Modules`` of the same class, returns two dictionaries + that stack all of their parameters and buffers together, indexed by name. + The stacked parameters are optimizable (i.e. they are new leaf nodes in the + autograd history that are unrelated to the original parameters and can be + passed directly to an optimizer). + + Here's an example of how to ensemble over a very simple model: + + .. code-block:: python + + num_models = 5 + batch_size = 64 + in_features, out_features = 3, 3 + models = [torch.nn.Linear(in_features, out_features) for i in range(num_models)] + data = torch.randn(batch_size, 3) + + def wrapper(params, buffers, data): + return torch.func.functional_call(model[0], (params, buffers), data) + + params, buffers = stack_module_state(models) + output = vmap(wrapper, (0, 0, None))(params, buffers, data) + + assert output.shape == (num_models, batch_size, out_features) + + When there's submodules, this follows state dict naming conventions + + .. code-block:: python + + import torch.nn as nn + class Foo(nn.Module): + def __init__(self, in_features, out_features): + super().__init__() + hidden = 4 + self.l1 = nn.Linear(in_features, hidden) + self.l2 = nn.Linear(hidden, out_features) + + def forward(self, x): + return self.l2(self.l1(x)) + + num_models = 5 + in_features, out_features = 3, 3 + models = [Foo(in_features, out_features) for i in range(num_models)] + params, buffers = stack_module_state(models) + print(list(params.keys())) # "l1.weight", "l1.bias", "l2.weight", "l2.bias" + + .. warning:: + All of the modules being stacked together must be the same (except for + the values of their parameters/buffers). For example, they should be in the + same mode (training vs eval). + """ + if len(models) == 0: + raise RuntimeError("stack_module_state: Expected at least one model, got 0.") + if not (all(m.training for m in models) or all(not m.training for m in models)): + raise RuntimeError( + "stack_module_state: Expected all models to have the same training/eval mode." + ) + model0_typ = type(models[0]) + if not all(type(m) == model0_typ for m in models): + raise RuntimeError( + "stack_module_state: Expected all models to be of the same class." + ) + all_params = [dict(model.named_parameters()) for model in models] + params = { + k: construct_stacked_leaf(tuple(params[k] for params in all_params), k) + for k in all_params[0] + } + all_buffers = [dict(model.named_buffers()) for model in models] + buffers = { + k: construct_stacked_leaf(tuple(buffers[k] for buffers in all_buffers), k) + for k in all_buffers[0] + } + + return params, buffers + + +def construct_stacked_leaf( + tensors: Union[Tuple[Tensor, ...], List[Tensor]], name: str +) -> Tensor: + all_requires_grad = all(t.requires_grad for t in tensors) + none_requires_grad = all(not t.requires_grad for t in tensors) + if not all_requires_grad and not none_requires_grad: + raise RuntimeError( + f"Expected {name} from each model to have the same .requires_grad" + ) + result = torch.stack(tensors) + if all_requires_grad: + result = result.detach().requires_grad_() + return result diff --git a/shared/package-files/0a/0a7cfdab9df0faf24dc84eaf631a98bd05f1d2925bac6f6ab87cb3f6cab17de9/setup.py b/shared/package-files/0a/0a7cfdab9df0faf24dc84eaf631a98bd05f1d2925bac6f6ab87cb3f6cab17de9/setup.py new file mode 100644 index 0000000000000000000000000000000000000000..c444e769fb6d94ffc0bff6cec25cd30a86858f2e --- /dev/null +++ b/shared/package-files/0a/0a7cfdab9df0faf24dc84eaf631a98bd05f1d2925bac6f6ab87cb3f6cab17de9/setup.py @@ -0,0 +1,11 @@ +def configuration(parent_package='', top_path=None): + from numpy.distutils.misc_util import Configuration + config = Configuration('typing', parent_package, top_path) + config.add_subpackage('tests') + config.add_data_dir('tests/data') + return config + + +if __name__ == '__main__': + from numpy.distutils.core import setup + setup(configuration=configuration) diff --git a/shared/package-files/0a/0a7dcec6356d70ef94be9eb53f9736df7e95f6211bb86afabd60179d221a8a19/V_O_R_G_.py b/shared/package-files/0a/0a7dcec6356d70ef94be9eb53f9736df7e95f6211bb86afabd60179d221a8a19/V_O_R_G_.py new file mode 100644 index 0000000000000000000000000000000000000000..2c53acba431059f58f86dbb1b89755a03f699f94 --- /dev/null +++ b/shared/package-files/0a/0a7dcec6356d70ef94be9eb53f9736df7e95f6211bb86afabd60179d221a8a19/V_O_R_G_.py @@ -0,0 +1,165 @@ +from fontTools.misc.textTools import bytesjoin, safeEval +from . import DefaultTable +import struct + + +class table_V_O_R_G_(DefaultTable.DefaultTable): + """Vertical Origin table + + The ``VORG`` table contains the vertical origin of each glyph + in a `CFF` or `CFF2` font. + + This table is structured so that you can treat it like a dictionary keyed by glyph name. + + ``ttFont['VORG'][]`` will return the vertical origin for any glyph. + + ``ttFont['VORG'][] = `` will set the vertical origin for any glyph. + + See also https://learn.microsoft.com/en-us/typography/opentype/spec/vorg + """ + + def decompile(self, data, ttFont): + self.getGlyphName = ( + ttFont.getGlyphName + ) # for use in get/set item functions, for access by GID + ( + self.majorVersion, + self.minorVersion, + self.defaultVertOriginY, + self.numVertOriginYMetrics, + ) = struct.unpack(">HHhH", data[:8]) + assert ( + self.majorVersion <= 1 + ), "Major version of VORG table is higher than I know how to handle" + data = data[8:] + vids = [] + gids = [] + pos = 0 + for i in range(self.numVertOriginYMetrics): + gid, vOrigin = struct.unpack(">Hh", data[pos : pos + 4]) + pos += 4 + gids.append(gid) + vids.append(vOrigin) + + self.VOriginRecords = vOrig = {} + glyphOrder = ttFont.getGlyphOrder() + try: + names = [glyphOrder[gid] for gid in gids] + except IndexError: + getGlyphName = self.getGlyphName + names = map(getGlyphName, gids) + + for name, vid in zip(names, vids): + vOrig[name] = vid + + def compile(self, ttFont): + vorgs = list(self.VOriginRecords.values()) + names = list(self.VOriginRecords.keys()) + nameMap = ttFont.getReverseGlyphMap() + try: + gids = [nameMap[name] for name in names] + except KeyError: + nameMap = ttFont.getReverseGlyphMap(rebuild=True) + gids = [nameMap[name] for name in names] + vOriginTable = list(zip(gids, vorgs)) + self.numVertOriginYMetrics = len(vorgs) + vOriginTable.sort() # must be in ascending GID order + dataList = [struct.pack(">Hh", rec[0], rec[1]) for rec in vOriginTable] + header = struct.pack( + ">HHhH", + self.majorVersion, + self.minorVersion, + self.defaultVertOriginY, + self.numVertOriginYMetrics, + ) + dataList.insert(0, header) + data = bytesjoin(dataList) + return data + + def toXML(self, writer, ttFont): + writer.simpletag("majorVersion", value=self.majorVersion) + writer.newline() + writer.simpletag("minorVersion", value=self.minorVersion) + writer.newline() + writer.simpletag("defaultVertOriginY", value=self.defaultVertOriginY) + writer.newline() + writer.simpletag("numVertOriginYMetrics", value=self.numVertOriginYMetrics) + writer.newline() + vOriginTable = [] + glyphNames = self.VOriginRecords.keys() + for glyphName in glyphNames: + try: + gid = ttFont.getGlyphID(glyphName) + except: + assert 0, ( + "VORG table contains a glyph name not in ttFont.getGlyphNames(): " + + str(glyphName) + ) + vOriginTable.append([gid, glyphName, self.VOriginRecords[glyphName]]) + vOriginTable.sort() + for entry in vOriginTable: + vOriginRec = VOriginRecord(entry[1], entry[2]) + vOriginRec.toXML(writer, ttFont) + + def fromXML(self, name, attrs, content, ttFont): + if not hasattr(self, "VOriginRecords"): + self.VOriginRecords = {} + self.getGlyphName = ( + ttFont.getGlyphName + ) # for use in get/set item functions, for access by GID + if name == "VOriginRecord": + vOriginRec = VOriginRecord() + for element in content: + if isinstance(element, str): + continue + name, attrs, content = element + vOriginRec.fromXML(name, attrs, content, ttFont) + self.VOriginRecords[vOriginRec.glyphName] = vOriginRec.vOrigin + elif "value" in attrs: + setattr(self, name, safeEval(attrs["value"])) + + def __getitem__(self, glyphSelector): + if isinstance(glyphSelector, int): + # its a gid, convert to glyph name + glyphSelector = self.getGlyphName(glyphSelector) + + if glyphSelector not in self.VOriginRecords: + return self.defaultVertOriginY + + return self.VOriginRecords[glyphSelector] + + def __setitem__(self, glyphSelector, value): + if isinstance(glyphSelector, int): + # its a gid, convert to glyph name + glyphSelector = self.getGlyphName(glyphSelector) + + if value != self.defaultVertOriginY: + self.VOriginRecords[glyphSelector] = value + elif glyphSelector in self.VOriginRecords: + del self.VOriginRecords[glyphSelector] + + def __delitem__(self, glyphSelector): + del self.VOriginRecords[glyphSelector] + + +class VOriginRecord(object): + def __init__(self, name=None, vOrigin=None): + self.glyphName = name + self.vOrigin = vOrigin + + def toXML(self, writer, ttFont): + writer.begintag("VOriginRecord") + writer.newline() + writer.simpletag("glyphName", value=self.glyphName) + writer.newline() + writer.simpletag("vOrigin", value=self.vOrigin) + writer.newline() + writer.endtag("VOriginRecord") + writer.newline() + + def fromXML(self, name, attrs, content, ttFont): + value = attrs["value"] + if name == "glyphName": + setattr(self, name, value) + else: + setattr(self, name, safeEval(value)) diff --git a/shared/package-files/0a/0a7e1d6f6befd7aa20f4acc0b9154f3206565a2ea5c81b71ad7b255d2b9195f8/test_install_scripts.py b/shared/package-files/0a/0a7e1d6f6befd7aa20f4acc0b9154f3206565a2ea5c81b71ad7b255d2b9195f8/test_install_scripts.py new file mode 100644 index 0000000000000000000000000000000000000000..1f7b1038cb2719a441699e092dac35ec77135226 --- /dev/null +++ b/shared/package-files/0a/0a7e1d6f6befd7aa20f4acc0b9154f3206565a2ea5c81b71ad7b255d2b9195f8/test_install_scripts.py @@ -0,0 +1,82 @@ +"""Tests for distutils.command.install_scripts.""" + +import os +import unittest + +from distutils.command.install_scripts import install_scripts +from distutils.core import Distribution + +from distutils.tests import support +from test.support import run_unittest + + +class InstallScriptsTestCase(support.TempdirManager, + support.LoggingSilencer, + unittest.TestCase): + + def test_default_settings(self): + dist = Distribution() + dist.command_obj["build"] = support.DummyCommand( + build_scripts="/foo/bar") + dist.command_obj["install"] = support.DummyCommand( + install_scripts="/splat/funk", + force=1, + skip_build=1, + ) + cmd = install_scripts(dist) + self.assertFalse(cmd.force) + self.assertFalse(cmd.skip_build) + self.assertIsNone(cmd.build_dir) + self.assertIsNone(cmd.install_dir) + + cmd.finalize_options() + + self.assertTrue(cmd.force) + self.assertTrue(cmd.skip_build) + self.assertEqual(cmd.build_dir, "/foo/bar") + self.assertEqual(cmd.install_dir, "/splat/funk") + + def test_installation(self): + source = self.mkdtemp() + expected = [] + + def write_script(name, text): + expected.append(name) + f = open(os.path.join(source, name), "w") + try: + f.write(text) + finally: + f.close() + + write_script("script1.py", ("#! /usr/bin/env python2.3\n" + "# bogus script w/ Python sh-bang\n" + "pass\n")) + write_script("script2.py", ("#!/usr/bin/python\n" + "# bogus script w/ Python sh-bang\n" + "pass\n")) + write_script("shell.sh", ("#!/bin/sh\n" + "# bogus shell script w/ sh-bang\n" + "exit 0\n")) + + target = self.mkdtemp() + dist = Distribution() + dist.command_obj["build"] = support.DummyCommand(build_scripts=source) + dist.command_obj["install"] = support.DummyCommand( + install_scripts=target, + force=1, + skip_build=1, + ) + cmd = install_scripts(dist) + cmd.finalize_options() + cmd.run() + + installed = os.listdir(target) + for name in expected: + self.assertIn(name, installed) + + +def test_suite(): + return unittest.makeSuite(InstallScriptsTestCase) + +if __name__ == "__main__": + run_unittest(test_suite()) diff --git a/shared/package-files/0a/0a7ea90f5fa1d29e46a62a534225fc7cbb83aa712a15d293679c94cdda70f1b3/native_layer_norm_backward_cpu_dispatch.h b/shared/package-files/0a/0a7ea90f5fa1d29e46a62a534225fc7cbb83aa712a15d293679c94cdda70f1b3/native_layer_norm_backward_cpu_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..aaebcf52053ef71d650c39eac04057f1f79d1ea9 --- /dev/null +++ b/shared/package-files/0a/0a7ea90f5fa1d29e46a62a534225fc7cbb83aa712a15d293679c94cdda70f1b3/native_layer_norm_backward_cpu_dispatch.h @@ -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::tuple native_layer_norm_backward(const at::Tensor & grad_out, const at::Tensor & input, at::IntArrayRef normalized_shape, const at::Tensor & mean, const at::Tensor & rstd, const c10::optional & weight, const c10::optional & bias, ::std::array output_mask); +TORCH_API ::std::tuple native_layer_norm_backward_symint(const at::Tensor & grad_out, const at::Tensor & input, c10::SymIntArrayRef normalized_shape, const at::Tensor & mean, const at::Tensor & rstd, const c10::optional & weight, const c10::optional & bias, ::std::array output_mask); + +} // namespace cpu +} // namespace at diff --git a/shared/package-files/0a/0a7f32ada83562faefc22bd081683e29798e09a55055d1474a4145efbc3e084d/SOA.py b/shared/package-files/0a/0a7f32ada83562faefc22bd081683e29798e09a55055d1474a4145efbc3e084d/SOA.py new file mode 100644 index 0000000000000000000000000000000000000000..09aa8321c7d7d2ddf4d44ff127d27295456d62f5 --- /dev/null +++ b/shared/package-files/0a/0a7f32ada83562faefc22bd081683e29798e09a55055d1474a4145efbc3e084d/SOA.py @@ -0,0 +1,86 @@ +# Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license + +# Copyright (C) 2003-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 struct + +import dns.exception +import dns.immutable +import dns.name +import dns.rdata + + +@dns.immutable.immutable +class SOA(dns.rdata.Rdata): + """SOA record""" + + # see: RFC 1035 + + __slots__ = ["mname", "rname", "serial", "refresh", "retry", "expire", "minimum"] + + def __init__( + self, rdclass, rdtype, mname, rname, serial, refresh, retry, expire, minimum + ): + super().__init__(rdclass, rdtype) + self.mname = self._as_name(mname) + self.rname = self._as_name(rname) + self.serial = self._as_uint32(serial) + self.refresh = self._as_ttl(refresh) + self.retry = self._as_ttl(retry) + self.expire = self._as_ttl(expire) + self.minimum = self._as_ttl(minimum) + + def to_text(self, origin=None, relativize=True, **kw): + mname = self.mname.choose_relativity(origin, relativize) + rname = self.rname.choose_relativity(origin, relativize) + return "%s %s %d %d %d %d %d" % ( + mname, + rname, + self.serial, + self.refresh, + self.retry, + self.expire, + self.minimum, + ) + + @classmethod + def from_text( + cls, rdclass, rdtype, tok, origin=None, relativize=True, relativize_to=None + ): + mname = tok.get_name(origin, relativize, relativize_to) + rname = tok.get_name(origin, relativize, relativize_to) + serial = tok.get_uint32() + refresh = tok.get_ttl() + retry = tok.get_ttl() + expire = tok.get_ttl() + minimum = tok.get_ttl() + return cls( + rdclass, rdtype, mname, rname, serial, refresh, retry, expire, minimum + ) + + def _to_wire(self, file, compress=None, origin=None, canonicalize=False): + self.mname.to_wire(file, compress, origin, canonicalize) + self.rname.to_wire(file, compress, origin, canonicalize) + five_ints = struct.pack( + "!IIIII", self.serial, self.refresh, self.retry, self.expire, self.minimum + ) + file.write(five_ints) + + @classmethod + def from_wire_parser(cls, rdclass, rdtype, parser, origin=None): + mname = parser.get_name(origin) + rname = parser.get_name(origin) + return cls(rdclass, rdtype, mname, rname, *parser.get_struct("!IIIII")) diff --git a/shared/package-files/0a/0a8998aa7a2f39aceec245ab3f3bb75e92e3e94089c0657b2f6c36d4cead1525/_sparse_csc_tensor_unsafe_ops.h b/shared/package-files/0a/0a8998aa7a2f39aceec245ab3f3bb75e92e3e94089c0657b2f6c36d4cead1525/_sparse_csc_tensor_unsafe_ops.h new file mode 100644 index 0000000000000000000000000000000000000000..12344f8e996d845a269b83e45926aef4b540b189 --- /dev/null +++ b/shared/package-files/0a/0a8998aa7a2f39aceec245ab3f3bb75e92e3e94089c0657b2f6c36d4cead1525/_sparse_csc_tensor_unsafe_ops.h @@ -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 _sparse_csc_tensor_unsafe { + using schema = at::Tensor (const at::Tensor &, const at::Tensor &, const at::Tensor &, 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::_sparse_csc_tensor_unsafe") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "_sparse_csc_tensor_unsafe(Tensor ccol_indices, Tensor row_indices, Tensor values, int[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor") + static at::Tensor call(const at::Tensor & ccol_indices, const at::Tensor & row_indices, const at::Tensor & values, at::IntArrayRef size, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory); + static at::Tensor redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & ccol_indices, const at::Tensor & row_indices, const at::Tensor & values, at::IntArrayRef size, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory); +}; + +}} // namespace at::_ops diff --git a/shared/package-files/0a/0a8acfc277efdeb47986336d248d35fac10130e9e44b13654556964ecccca290/joblib_0.10.0_pickle_py33_np18.pkl.lzma b/shared/package-files/0a/0a8acfc277efdeb47986336d248d35fac10130e9e44b13654556964ecccca290/joblib_0.10.0_pickle_py33_np18.pkl.lzma new file mode 100644 index 0000000000000000000000000000000000000000..4280387fc5e542d3b022be43ab8ab8c05ea2e953 Binary files /dev/null and b/shared/package-files/0a/0a8acfc277efdeb47986336d248d35fac10130e9e44b13654556964ecccca290/joblib_0.10.0_pickle_py33_np18.pkl.lzma differ diff --git a/shared/package-files/0a/0a8b452b2fcef1be82732821ec7df92b02218f1352587f7803918bd621c2fd63/parquet.py b/shared/package-files/0a/0a8b452b2fcef1be82732821ec7df92b02218f1352587f7803918bd621c2fd63/parquet.py new file mode 100644 index 0000000000000000000000000000000000000000..01e320cdb1b72a4f9425de40721c43189b4c5ed8 --- /dev/null +++ b/shared/package-files/0a/0a8b452b2fcef1be82732821ec7df92b02218f1352587f7803918bd621c2fd63/parquet.py @@ -0,0 +1,678 @@ +""" parquet compat """ +from __future__ import annotations + +import io +import json +import os +from typing import ( + TYPE_CHECKING, + Any, + Literal, +) +import warnings +from warnings import ( + catch_warnings, + filterwarnings, +) + +from pandas._config.config import _get_option + +from pandas._libs import lib +from pandas.compat._optional import import_optional_dependency +from pandas.errors import AbstractMethodError +from pandas.util._decorators import doc +from pandas.util._exceptions import find_stack_level +from pandas.util._validators import check_dtype_backend + +from pandas import ( + DataFrame, + get_option, +) +from pandas.core.shared_docs import _shared_docs + +from pandas.io._util import arrow_table_to_pandas +from pandas.io.common import ( + IOHandles, + get_handle, + is_fsspec_url, + is_url, + stringify_path, +) + +if TYPE_CHECKING: + from pandas._typing import ( + DtypeBackend, + FilePath, + ReadBuffer, + StorageOptions, + WriteBuffer, + ) + + +def get_engine(engine: str) -> BaseImpl: + """return our implementation""" + if engine == "auto": + engine = get_option("io.parquet.engine") + + if engine == "auto": + # try engines in this order + engine_classes = [PyArrowImpl, FastParquetImpl] + + error_msgs = "" + for engine_class in engine_classes: + try: + return engine_class() + except ImportError as err: + error_msgs += "\n - " + str(err) + + raise ImportError( + "Unable to find a usable engine; " + "tried using: 'pyarrow', 'fastparquet'.\n" + "A suitable version of " + "pyarrow or fastparquet is required for parquet " + "support.\n" + "Trying to import the above resulted in these errors:" + f"{error_msgs}" + ) + + if engine == "pyarrow": + return PyArrowImpl() + elif engine == "fastparquet": + return FastParquetImpl() + + raise ValueError("engine must be one of 'pyarrow', 'fastparquet'") + + +def _get_path_or_handle( + path: FilePath | ReadBuffer[bytes] | WriteBuffer[bytes], + fs: Any, + storage_options: StorageOptions | None = None, + mode: str = "rb", + is_dir: bool = False, +) -> tuple[ + FilePath | ReadBuffer[bytes] | WriteBuffer[bytes], IOHandles[bytes] | None, Any +]: + """File handling for PyArrow.""" + path_or_handle = stringify_path(path) + if fs is not None: + pa_fs = import_optional_dependency("pyarrow.fs", errors="ignore") + fsspec = import_optional_dependency("fsspec", errors="ignore") + if pa_fs is not None and isinstance(fs, pa_fs.FileSystem): + if storage_options: + raise NotImplementedError( + "storage_options not supported with a pyarrow FileSystem." + ) + elif fsspec is not None and isinstance(fs, fsspec.spec.AbstractFileSystem): + pass + else: + raise ValueError( + f"filesystem must be a pyarrow or fsspec FileSystem, " + f"not a {type(fs).__name__}" + ) + if is_fsspec_url(path_or_handle) and fs is None: + if storage_options is None: + pa = import_optional_dependency("pyarrow") + pa_fs = import_optional_dependency("pyarrow.fs") + + try: + fs, path_or_handle = pa_fs.FileSystem.from_uri(path) + except (TypeError, pa.ArrowInvalid): + pass + if fs is None: + fsspec = import_optional_dependency("fsspec") + fs, path_or_handle = fsspec.core.url_to_fs( + path_or_handle, **(storage_options or {}) + ) + elif storage_options and (not is_url(path_or_handle) or mode != "rb"): + # can't write to a remote url + # without making use of fsspec at the moment + raise ValueError("storage_options passed with buffer, or non-supported URL") + + handles = None + if ( + not fs + and not is_dir + and isinstance(path_or_handle, str) + and not os.path.isdir(path_or_handle) + ): + # use get_handle only when we are very certain that it is not a directory + # fsspec resources can also point to directories + # this branch is used for example when reading from non-fsspec URLs + handles = get_handle( + path_or_handle, mode, is_text=False, storage_options=storage_options + ) + fs = None + path_or_handle = handles.handle + return path_or_handle, handles, fs + + +class BaseImpl: + @staticmethod + def validate_dataframe(df: DataFrame) -> None: + if not isinstance(df, DataFrame): + raise ValueError("to_parquet only supports IO with DataFrames") + + def write(self, df: DataFrame, path, compression, **kwargs): + raise AbstractMethodError(self) + + def read(self, path, columns=None, **kwargs) -> DataFrame: + raise AbstractMethodError(self) + + +class PyArrowImpl(BaseImpl): + def __init__(self) -> None: + import_optional_dependency( + "pyarrow", extra="pyarrow is required for parquet support." + ) + import pyarrow.parquet + + # import utils to register the pyarrow extension types + import pandas.core.arrays.arrow.extension_types # pyright: ignore[reportUnusedImport] # noqa: F401 + + self.api = pyarrow + + def write( + self, + df: DataFrame, + path: FilePath | WriteBuffer[bytes], + compression: str | None = "snappy", + index: bool | None = None, + storage_options: StorageOptions | None = None, + partition_cols: list[str] | None = None, + filesystem=None, + **kwargs, + ) -> None: + self.validate_dataframe(df) + + from_pandas_kwargs: dict[str, Any] = {"schema": kwargs.pop("schema", None)} + if index is not None: + from_pandas_kwargs["preserve_index"] = index + + table = self.api.Table.from_pandas(df, **from_pandas_kwargs) + + if df.attrs: + df_metadata = {"PANDAS_ATTRS": json.dumps(df.attrs)} + existing_metadata = table.schema.metadata + merged_metadata = {**existing_metadata, **df_metadata} + table = table.replace_schema_metadata(merged_metadata) + + path_or_handle, handles, filesystem = _get_path_or_handle( + path, + filesystem, + storage_options=storage_options, + mode="wb", + is_dir=partition_cols is not None, + ) + if ( + isinstance(path_or_handle, io.BufferedWriter) + and hasattr(path_or_handle, "name") + and isinstance(path_or_handle.name, (str, bytes)) + ): + if isinstance(path_or_handle.name, bytes): + path_or_handle = path_or_handle.name.decode() + else: + path_or_handle = path_or_handle.name + + try: + if partition_cols is not None: + # writes to multiple files under the given path + self.api.parquet.write_to_dataset( + table, + path_or_handle, + compression=compression, + partition_cols=partition_cols, + filesystem=filesystem, + **kwargs, + ) + else: + # write to single output file + self.api.parquet.write_table( + table, + path_or_handle, + compression=compression, + filesystem=filesystem, + **kwargs, + ) + finally: + if handles is not None: + handles.close() + + def read( + self, + path, + columns=None, + filters=None, + use_nullable_dtypes: bool = False, + dtype_backend: DtypeBackend | lib.NoDefault = lib.no_default, + storage_options: StorageOptions | None = None, + filesystem=None, + **kwargs, + ) -> DataFrame: + kwargs["use_pandas_metadata"] = True + + to_pandas_kwargs = {} + + manager = _get_option("mode.data_manager", silent=True) + if manager == "array": + to_pandas_kwargs["split_blocks"] = True + path_or_handle, handles, filesystem = _get_path_or_handle( + path, + filesystem, + storage_options=storage_options, + mode="rb", + ) + try: + pa_table = self.api.parquet.read_table( + path_or_handle, + columns=columns, + filesystem=filesystem, + filters=filters, + **kwargs, + ) + + with catch_warnings(): + filterwarnings( + "ignore", + "make_block is deprecated", + DeprecationWarning, + ) + result = arrow_table_to_pandas( + pa_table, + dtype_backend=dtype_backend, + to_pandas_kwargs=to_pandas_kwargs, + ) + + if manager == "array": + result = result._as_manager("array", copy=False) + + if pa_table.schema.metadata: + if b"PANDAS_ATTRS" in pa_table.schema.metadata: + df_metadata = pa_table.schema.metadata[b"PANDAS_ATTRS"] + result.attrs = json.loads(df_metadata) + return result + finally: + if handles is not None: + handles.close() + + +class FastParquetImpl(BaseImpl): + def __init__(self) -> None: + # since pandas is a dependency of fastparquet + # we need to import on first use + fastparquet = import_optional_dependency( + "fastparquet", extra="fastparquet is required for parquet support." + ) + self.api = fastparquet + + def write( + self, + df: DataFrame, + path, + compression: Literal["snappy", "gzip", "brotli"] | None = "snappy", + index=None, + partition_cols=None, + storage_options: StorageOptions | None = None, + filesystem=None, + **kwargs, + ) -> None: + self.validate_dataframe(df) + + if "partition_on" in kwargs and partition_cols is not None: + raise ValueError( + "Cannot use both partition_on and " + "partition_cols. Use partition_cols for partitioning data" + ) + if "partition_on" in kwargs: + partition_cols = kwargs.pop("partition_on") + + if partition_cols is not None: + kwargs["file_scheme"] = "hive" + + if filesystem is not None: + raise NotImplementedError( + "filesystem is not implemented for the fastparquet engine." + ) + + # cannot use get_handle as write() does not accept file buffers + path = stringify_path(path) + if is_fsspec_url(path): + fsspec = import_optional_dependency("fsspec") + + # if filesystem is provided by fsspec, file must be opened in 'wb' mode. + kwargs["open_with"] = lambda path, _: fsspec.open( + path, "wb", **(storage_options or {}) + ).open() + elif storage_options: + raise ValueError( + "storage_options passed with file object or non-fsspec file path" + ) + + with catch_warnings(record=True): + self.api.write( + path, + df, + compression=compression, + write_index=index, + partition_on=partition_cols, + **kwargs, + ) + + def read( + self, + path, + columns=None, + filters=None, + storage_options: StorageOptions | None = None, + filesystem=None, + **kwargs, + ) -> DataFrame: + parquet_kwargs: dict[str, Any] = {} + use_nullable_dtypes = kwargs.pop("use_nullable_dtypes", False) + dtype_backend = kwargs.pop("dtype_backend", lib.no_default) + # We are disabling nullable dtypes for fastparquet pending discussion + parquet_kwargs["pandas_nulls"] = False + if use_nullable_dtypes: + raise ValueError( + "The 'use_nullable_dtypes' argument is not supported for the " + "fastparquet engine" + ) + if dtype_backend is not lib.no_default: + raise ValueError( + "The 'dtype_backend' argument is not supported for the " + "fastparquet engine" + ) + if filesystem is not None: + raise NotImplementedError( + "filesystem is not implemented for the fastparquet engine." + ) + path = stringify_path(path) + handles = None + if is_fsspec_url(path): + fsspec = import_optional_dependency("fsspec") + + parquet_kwargs["fs"] = fsspec.open(path, "rb", **(storage_options or {})).fs + elif isinstance(path, str) and not os.path.isdir(path): + # use get_handle only when we are very certain that it is not a directory + # fsspec resources can also point to directories + # this branch is used for example when reading from non-fsspec URLs + handles = get_handle( + path, "rb", is_text=False, storage_options=storage_options + ) + path = handles.handle + + try: + parquet_file = self.api.ParquetFile(path, **parquet_kwargs) + return parquet_file.to_pandas(columns=columns, filters=filters, **kwargs) + finally: + if handles is not None: + handles.close() + + +@doc(storage_options=_shared_docs["storage_options"]) +def to_parquet( + df: DataFrame, + path: FilePath | WriteBuffer[bytes] | None = None, + engine: str = "auto", + compression: str | None = "snappy", + index: bool | None = None, + storage_options: StorageOptions | None = None, + partition_cols: list[str] | None = None, + filesystem: Any = None, + **kwargs, +) -> bytes | None: + """ + Write a DataFrame to the parquet format. + + Parameters + ---------- + df : DataFrame + path : str, path object, file-like object, or None, default None + String, path object (implementing ``os.PathLike[str]``), or file-like + object implementing a binary ``write()`` function. If None, the result is + returned as bytes. If a string, it will be used as Root Directory path + when writing a partitioned dataset. The engine fastparquet does not + accept file-like objects. + engine : {{'auto', 'pyarrow', 'fastparquet'}}, default 'auto' + Parquet library to use. If 'auto', then the option + ``io.parquet.engine`` is used. The default ``io.parquet.engine`` + behavior is to try 'pyarrow', falling back to 'fastparquet' if + 'pyarrow' is unavailable. + + When using the ``'pyarrow'`` engine and no storage options are provided + and a filesystem is implemented by both ``pyarrow.fs`` and ``fsspec`` + (e.g. "s3://"), then the ``pyarrow.fs`` filesystem is attempted first. + Use the filesystem keyword with an instantiated fsspec filesystem + if you wish to use its implementation. + compression : {{'snappy', 'gzip', 'brotli', 'lz4', 'zstd', None}}, + default 'snappy'. Name of the compression to use. Use ``None`` + for no compression. + index : bool, default None + If ``True``, include the dataframe's index(es) in the file output. If + ``False``, they will not be written to the file. + If ``None``, similar to ``True`` the dataframe's index(es) + will be saved. However, instead of being saved as values, + the RangeIndex will be stored as a range in the metadata so it + doesn't require much space and is faster. Other indexes will + be included as columns in the file output. + partition_cols : str or list, optional, default None + Column names by which to partition the dataset. + Columns are partitioned in the order they are given. + Must be None if path is not a string. + {storage_options} + + filesystem : fsspec or pyarrow filesystem, default None + Filesystem object to use when reading the parquet file. Only implemented + for ``engine="pyarrow"``. + + .. versionadded:: 2.1.0 + + kwargs + Additional keyword arguments passed to the engine + + Returns + ------- + bytes if no path argument is provided else None + """ + if isinstance(partition_cols, str): + partition_cols = [partition_cols] + impl = get_engine(engine) + + path_or_buf: FilePath | WriteBuffer[bytes] = io.BytesIO() if path is None else path + + impl.write( + df, + path_or_buf, + compression=compression, + index=index, + partition_cols=partition_cols, + storage_options=storage_options, + filesystem=filesystem, + **kwargs, + ) + + if path is None: + assert isinstance(path_or_buf, io.BytesIO) + return path_or_buf.getvalue() + else: + return None + + +@doc(storage_options=_shared_docs["storage_options"]) +def read_parquet( + path: FilePath | ReadBuffer[bytes], + engine: str = "auto", + columns: list[str] | None = None, + storage_options: StorageOptions | None = None, + use_nullable_dtypes: bool | lib.NoDefault = lib.no_default, + dtype_backend: DtypeBackend | lib.NoDefault = lib.no_default, + filesystem: Any = None, + filters: list[tuple] | list[list[tuple]] | None = None, + **kwargs, +) -> DataFrame: + """ + Load a parquet object from the file path, returning a DataFrame. + + Parameters + ---------- + path : str, path object or file-like object + String, path object (implementing ``os.PathLike[str]``), or file-like + object implementing a binary ``read()`` function. + The string could be a URL. Valid URL schemes include http, ftp, s3, + gs, and file. For file URLs, a host is expected. A local file could be: + ``file://localhost/path/to/table.parquet``. + A file URL can also be a path to a directory that contains multiple + partitioned parquet files. Both pyarrow and fastparquet support + paths to directories as well as file URLs. A directory path could be: + ``file://localhost/path/to/tables`` or ``s3://bucket/partition_dir``. + engine : {{'auto', 'pyarrow', 'fastparquet'}}, default 'auto' + Parquet library to use. If 'auto', then the option + ``io.parquet.engine`` is used. The default ``io.parquet.engine`` + behavior is to try 'pyarrow', falling back to 'fastparquet' if + 'pyarrow' is unavailable. + + When using the ``'pyarrow'`` engine and no storage options are provided + and a filesystem is implemented by both ``pyarrow.fs`` and ``fsspec`` + (e.g. "s3://"), then the ``pyarrow.fs`` filesystem is attempted first. + Use the filesystem keyword with an instantiated fsspec filesystem + if you wish to use its implementation. + columns : list, default=None + If not None, only these columns will be read from the file. + {storage_options} + + .. versionadded:: 1.3.0 + + use_nullable_dtypes : bool, default False + If True, use dtypes that use ``pd.NA`` as missing value indicator + for the resulting DataFrame. (only applicable for the ``pyarrow`` + engine) + As new dtypes are added that support ``pd.NA`` in the future, the + output with this option will change to use those dtypes. + Note: this is an experimental option, and behaviour (e.g. additional + support dtypes) may change without notice. + + .. deprecated:: 2.0 + + dtype_backend : {{'numpy_nullable', 'pyarrow'}}, default 'numpy_nullable' + Back-end data type applied to the resultant :class:`DataFrame` + (still experimental). Behaviour is as follows: + + * ``"numpy_nullable"``: returns nullable-dtype-backed :class:`DataFrame` + (default). + * ``"pyarrow"``: returns pyarrow-backed nullable :class:`ArrowDtype` + DataFrame. + + .. versionadded:: 2.0 + + filesystem : fsspec or pyarrow filesystem, default None + Filesystem object to use when reading the parquet file. Only implemented + for ``engine="pyarrow"``. + + .. versionadded:: 2.1.0 + + filters : List[Tuple] or List[List[Tuple]], default None + To filter out data. + Filter syntax: [[(column, op, val), ...],...] + where op is [==, =, >, >=, <, <=, !=, in, not in] + The innermost tuples are transposed into a set of filters applied + through an `AND` operation. + The outer list combines these sets of filters through an `OR` + operation. + A single list of tuples can also be used, meaning that no `OR` + operation between set of filters is to be conducted. + + Using this argument will NOT result in row-wise filtering of the final + partitions unless ``engine="pyarrow"`` is also specified. For + other engines, filtering is only performed at the partition level, that is, + to prevent the loading of some row-groups and/or files. + + .. versionadded:: 2.1.0 + + **kwargs + Any additional kwargs are passed to the engine. + + Returns + ------- + DataFrame + + See Also + -------- + DataFrame.to_parquet : Create a parquet object that serializes a DataFrame. + + Examples + -------- + >>> original_df = pd.DataFrame( + ... {{"foo": range(5), "bar": range(5, 10)}} + ... ) + >>> original_df + foo bar + 0 0 5 + 1 1 6 + 2 2 7 + 3 3 8 + 4 4 9 + >>> df_parquet_bytes = original_df.to_parquet() + >>> from io import BytesIO + >>> restored_df = pd.read_parquet(BytesIO(df_parquet_bytes)) + >>> restored_df + foo bar + 0 0 5 + 1 1 6 + 2 2 7 + 3 3 8 + 4 4 9 + >>> restored_df.equals(original_df) + True + >>> restored_bar = pd.read_parquet(BytesIO(df_parquet_bytes), columns=["bar"]) + >>> restored_bar + bar + 0 5 + 1 6 + 2 7 + 3 8 + 4 9 + >>> restored_bar.equals(original_df[['bar']]) + True + + The function uses `kwargs` that are passed directly to the engine. + In the following example, we use the `filters` argument of the pyarrow + engine to filter the rows of the DataFrame. + + Since `pyarrow` is the default engine, we can omit the `engine` argument. + Note that the `filters` argument is implemented by the `pyarrow` engine, + which can benefit from multithreading and also potentially be more + economical in terms of memory. + + >>> sel = [("foo", ">", 2)] + >>> restored_part = pd.read_parquet(BytesIO(df_parquet_bytes), filters=sel) + >>> restored_part + foo bar + 0 3 8 + 1 4 9 + """ + + impl = get_engine(engine) + + if use_nullable_dtypes is not lib.no_default: + msg = ( + "The argument 'use_nullable_dtypes' is deprecated and will be removed " + "in a future version." + ) + if use_nullable_dtypes is True: + msg += ( + "Use dtype_backend='numpy_nullable' instead of use_nullable_dtype=True." + ) + warnings.warn(msg, FutureWarning, stacklevel=find_stack_level()) + else: + use_nullable_dtypes = False + check_dtype_backend(dtype_backend) + + return impl.read( + path, + columns=columns, + filters=filters, + storage_options=storage_options, + use_nullable_dtypes=use_nullable_dtypes, + dtype_backend=dtype_backend, + filesystem=filesystem, + **kwargs, + ) diff --git a/shared/package-files/0a/0a8bbb4d1fd87bf7a90ddfa50f4724994c9ce78d1f3e91cf40c1177db7941dc5/fr.msg b/shared/package-files/0a/0a8bbb4d1fd87bf7a90ddfa50f4724994c9ce78d1f3e91cf40c1177db7941dc5/fr.msg new file mode 100644 index 0000000000000000000000000000000000000000..7f42aca3463360cb5caab7708ee4eeb13a28434b --- /dev/null +++ b/shared/package-files/0a/0a8bbb4d1fd87bf7a90ddfa50f4724994c9ce78d1f3e91cf40c1177db7941dc5/fr.msg @@ -0,0 +1,72 @@ +namespace eval ::tk { + ::msgcat::mcset fr "&Abort" "&Annuler" + ::msgcat::mcset fr "About..." "\u00c0 propos..." + ::msgcat::mcset fr "All Files" "Tous les fichiers" + ::msgcat::mcset fr "Application Error" "Erreur d'application" + ::msgcat::mcset fr "&Blue" "&Bleu" + ::msgcat::mcset fr "Cancel" "Annuler" + ::msgcat::mcset fr "&Cancel" "&Annuler" + ::msgcat::mcset fr "Cannot change to the directory \"%1\$s\".\nPermission denied." "Impossible d'acc\u00e9der au r\u00e9pertoire \"%1\$s\".\nPermission refus\u00e9e." + ::msgcat::mcset fr "Choose Directory" "Choisir r\u00e9pertoire" + ::msgcat::mcset fr "Cl&ear" "Effacer" + ::msgcat::mcset fr "Color" "Couleur" + ::msgcat::mcset fr "Console" + ::msgcat::mcset fr "Copy" "Copier" + ::msgcat::mcset fr "Cu&t" "Couper" + ::msgcat::mcset fr "Delete" "Effacer" + ::msgcat::mcset fr "Details >>" "D\u00e9tails >>" + ::msgcat::mcset fr "Directory \"%1\$s\" does not exist." "Le r\u00e9pertoire \"%1\$s\" n'existe pas." + ::msgcat::mcset fr "&Directory:" "&R\u00e9pertoire:" + ::msgcat::mcset fr "Error: %1\$s" "Erreur: %1\$s" + ::msgcat::mcset fr "E&xit" "Quitter" + ::msgcat::mcset fr "File \"%1\$s\" already exists.\nDo you want to overwrite it?" "Le fichier \"%1\$s\" existe d\u00e9j\u00e0.\nVoulez-vous l'\u00e9craser?" + ::msgcat::mcset fr "File \"%1\$s\" already exists.\n\n" "Le fichier \"%1\$s\" existe d\u00e9j\u00e0.\n\n" + ::msgcat::mcset fr "File \"%1\$s\" does not exist." "Le fichier \"%1\$s\" n'existe pas." + ::msgcat::mcset fr "File &name:" "&Nom de fichier:" + ::msgcat::mcset fr "File &names:" "&Noms de fichiers:" + ::msgcat::mcset fr "Files of &type:" "&Type de fichiers:" + ::msgcat::mcset fr "Fi&les:" "Fich&iers:" + ::msgcat::mcset fr "&Filter" "&Filtre" + ::msgcat::mcset fr "Fil&ter:" "Fil&tre:" + ::msgcat::mcset fr "&Green" "&Vert" + ::msgcat::mcset fr "Hi" "Salut" + ::msgcat::mcset fr "&Hide Console" "Cacher la Console" + ::msgcat::mcset fr "&Ignore" "&Ignorer" + ::msgcat::mcset fr "Invalid file name \"%1\$s\"." "Nom de fichier invalide \"%1\$s\"." + ::msgcat::mcset fr "Log Files" "Fichiers de trace" + ::msgcat::mcset fr "&No" "&Non" + ::msgcat::mcset fr "&OK" + ::msgcat::mcset fr "OK" + ::msgcat::mcset fr "Ok" + ::msgcat::mcset fr "Open" "Ouvrir" + ::msgcat::mcset fr "&Open" "&Ouvrir" + ::msgcat::mcset fr "Open Multiple Files" "Ouvrir plusieurs fichiers" + ::msgcat::mcset fr "P&aste" "Coller" + ::msgcat::mcset fr "&Quit" "&Quitter" + ::msgcat::mcset fr "&Red" "&Rouge" + ::msgcat::mcset fr "Replace existing file?" "Remplacer le fichier existant?" + ::msgcat::mcset fr "&Retry" "&R\u00e9-essayer" + ::msgcat::mcset fr "&Save" "&Sauvegarder" + ::msgcat::mcset fr "Save As" "Sauvegarder sous" + ::msgcat::mcset fr "Save To Log" "Sauvegarde au fichier de trace" + ::msgcat::mcset fr "Select Log File" "Choisir un fichier de trace" + ::msgcat::mcset fr "Select a file to source" "Choisir un fichier \u00e0 \u00e9valuer" + ::msgcat::mcset fr "&Selection:" "&S\u00e9lection:" + ::msgcat::mcset fr "Skip Messages" "Omettre les messages" + ::msgcat::mcset fr "&Source..." "\u00c9valuer..." + ::msgcat::mcset fr "Tcl Scripts" "Scripts Tcl" + ::msgcat::mcset fr "Tcl for Windows" "Tcl pour Windows" + ::msgcat::mcset fr "Text Files" "Fichiers texte" + ::msgcat::mcset fr "&Yes" "&Oui" + ::msgcat::mcset fr "abort" "abandonner" + ::msgcat::mcset fr "blue" "bleu" + ::msgcat::mcset fr "cancel" "annuler" + ::msgcat::mcset fr "extension" + ::msgcat::mcset fr "extensions" + ::msgcat::mcset fr "green" "vert" + ::msgcat::mcset fr "ignore" "ignorer" + ::msgcat::mcset fr "ok" + ::msgcat::mcset fr "red" "rouge" + ::msgcat::mcset fr "retry" "r\u00e9essayer" + ::msgcat::mcset fr "yes" "oui" +} diff --git a/shared/package-files/0a/0a8f7e90767feee9d8aba9cbc9b5006fef2e1a5514a7d49a07aea8c3c2e44b74/README.md b/shared/package-files/0a/0a8f7e90767feee9d8aba9cbc9b5006fef2e1a5514a7d49a07aea8c3c2e44b74/README.md new file mode 100644 index 0000000000000000000000000000000000000000..6634d3cee7e91795f828f1c222b3769e5daa8226 --- /dev/null +++ b/shared/package-files/0a/0a8f7e90767feee9d8aba9cbc9b5006fef2e1a5514a7d49a07aea8c3c2e44b74/README.md @@ -0,0 +1,9 @@ +## `conda.common` + +Code in `conda.common` is not conda-specific. Technically, it sits **aside** the application +stack and not **within** the stack. It is able to stand independently on its own. +The **only** allowed imports of conda code in `conda.common` modules are imports of other +`conda.common` modules and imports from `conda._vendor`. + +If objects are needed from other parts of conda, they should be passed directly as arguments to +functions and methods. diff --git a/shared/package-files/0a/0a91e980cadfd1ba80d56dcece8def2270f3d113fdd384bb2e4a5d007e8e0dc9/inout.f90 b/shared/package-files/0a/0a91e980cadfd1ba80d56dcece8def2270f3d113fdd384bb2e4a5d007e8e0dc9/inout.f90 new file mode 100644 index 0000000000000000000000000000000000000000..80cdad90cec56de2226979fa0c9b0f9dfa39c7c9 --- /dev/null +++ b/shared/package-files/0a/0a91e980cadfd1ba80d56dcece8def2270f3d113fdd384bb2e4a5d007e8e0dc9/inout.f90 @@ -0,0 +1,9 @@ +! Check that intent(in out) translates as intent(inout). +! The separation seems to be a common usage. + subroutine foo(x) + implicit none + real(4), intent(in out) :: x + dimension x(3) + x(1) = x(1) + x(2) + x(3) + return + end diff --git a/shared/package-files/0a/0a9273acaaba51c525861932014b73b58a6377b48c96ca40e310e8134f0f1647/vecm_e6_jmulti_cisli_lagorder.txt b/shared/package-files/0a/0a9273acaaba51c525861932014b73b58a6377b48c96ca40e310e8134f0f1647/vecm_e6_jmulti_cisli_lagorder.txt new file mode 100644 index 0000000000000000000000000000000000000000..8dd1a7a4c7926d30b7bfa0c55ef2cb6537479502 --- /dev/null +++ b/shared/package-files/0a/0a9273acaaba51c525861932014b73b58a6377b48c96ca40e310e8134f0f1647/vecm_e6_jmulti_cisli_lagorder.txt @@ -0,0 +1,13 @@ +*** Sun, 21 Aug 2016 09:35:29 *** +OPTIMAL ENDOGENOUS LAGS FROM INFORMATION CRITERIA + +endogenous variables: Dp R +deterministic variables: CONST S1 S2 S3 TREND +sample range: [1975 Q1, 1998 Q4], T = 96 + +optimal number of lags (searched up to 10 lags of 1. differences): +Akaike Info Criterion: 3 +Final Prediction Error: 3 +Hannan-Quinn Criterion: 0 +Schwarz Criterion: 0 + diff --git a/shared/package-files/0a/0a92b91ed66f8a093553bc982e5a9871718968ece49f27e15148adb5716e2a23/exceptions.pyi b/shared/package-files/0a/0a92b91ed66f8a093553bc982e5a9871718968ece49f27e15148adb5716e2a23/exceptions.pyi new file mode 100644 index 0000000000000000000000000000000000000000..48041a805cea327f237f37c6ff5c38e840753428 --- /dev/null +++ b/shared/package-files/0a/0a92b91ed66f8a093553bc982e5a9871718968ece49f27e15148adb5716e2a23/exceptions.pyi @@ -0,0 +1,7 @@ +class AlreadyFinalized(Exception): ... +class AlreadyUpdated(Exception): ... +class InvalidKey(Exception): ... +class InvalidSignature(Exception): ... +class InvalidTag(Exception): ... +class NotYetFinalized(Exception): ... +class UnsupportedAlgorithm(Exception): ... diff --git a/shared/package-files/0a/0a95f67f90b1cdd407a78ea4032af9eb996fc38864c46d74b42b3a7f7eda0c8a/cns11643.enc b/shared/package-files/0a/0a95f67f90b1cdd407a78ea4032af9eb996fc38864c46d74b42b3a7f7eda0c8a/cns11643.enc new file mode 100644 index 0000000000000000000000000000000000000000..44dd9b7a09f5f421a387247770250de20791b922 --- /dev/null +++ b/shared/package-files/0a/0a95f67f90b1cdd407a78ea4032af9eb996fc38864c46d74b42b3a7f7eda0c8a/cns11643.enc @@ -0,0 +1,1584 @@ +# Encoding file: cns11643, double-byte +D +2134 0 93 +21 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00004E284E364E3F4E854E054E04518251965338536953B64E2A4E874E4951E2 +4E464E8F4EBC4EBE516651E35204529C53B95902590A5B805DDB5E7A5E7F5EF4 +5F505F515F61961D4E3C4E634E624EA351854EC54ECF4ECE4ECC518451865722 +572351E45205529E529D52FD5300533A5C735346535D538653B7620953CC6C15 +53CE57216C3F5E005F0C623762386534653565E04F0E738D4E974EE04F144EF1 +4EE74EF74EE64F1D4F024F054F2256D8518B518C519951E55213520B52A60000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +22 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +000053225304530353075407531E535F536D538953BA53D0598053F653F753F9 +597E53F4597F5B565724590459185932593059345DDF59755E845B825BF95C14 +5FD55FD45FCF625C625E626462615E815E835F0D5F52625A5FCA5FC7623965EE +624F65E7672F6B7A6C39673F673C6C376C446C45738C75927676909390926C4B +6C4C4E214E204E224E684E894E984EF94EEF7F5182784EF84F064F034EFC4EEE +4F1690994F284F1C4F074F1A4EFA4F17514A962351724F3B51B451B351B20000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +23 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00004F6451E84F675214520F5215521852A84F33534B534F518F5350521C538B +522153BE52AE53D2541653FF538E540054305405541354155445541956E35735 +57365731573258EE59054E545447593656E756E55741597A574C5986574B5752 +5B865F535C1859985C3D5C78598E59A25990598F5C8059A15E085B925C285C2A +5C8D5EF55F0E5C8B5C895C925FD35FDA5C935FDB5DE0620F625D625F62676257 +9F505E8D65EB65EA5F7867375FD2673267366B226BCE5FEE6C586C516C770000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +24 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00006C3C5FFA6C5A5FF76C53706F7072706E6283628C707372B172B26287738F +627B627A6270793C6288808D808E6272827B65F08D718FB99096909A67454E24 +4E7167554E9C4F454F4A4F394F37674B4F324F426C1A4F444F4B6C6B4F404F35 +4F3151516C6F5150514E6C6D6C87519D6C9C51B551B851EC522352275226521F +522B522052B452B372C65325533B537473957397739373947392544D75397594 +543A7681793D5444544C5423541A5432544B5421828F54345449545054220000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +25 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000543F5451545A542F8FC956E956F256F356EF56ED56EC56E6574896285744 +573F573C575357564F85575F5743575857574F744F894F8457464F4C573D4F6A +57425754575558F158F258F0590B9EA656F1593D4F955994598C519E599C51BE +5235599F5233599B52315989599A530B658853925B8D54875BFE5BFF5BFD5C2B +54885C845C8E5C9C5465546C5C855DF55E09546F54615E0B54985E925E905F03 +56F75F1E5F6357725FE75FFE5FE65FDC5FCE57805FFC5FDF5FEC5FF657620000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +26 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00005FF25FF05FF95945621359BA59CF623B623C628259C159B659BC6278628B +59B1629E62A5629B629C6299628D6285629D62755C445C475CAE65F65CA05CB5 +5CAF66F5675B5C9F675467525CA267586744674A67615CB66C7F6C916C9E5E14 +6C6E6C7C6C9F6C755F246C566CA26C795F7D6CA15FE56CAA6CA0601970797077 +707E600A7075707B7264601E72BB72BC72C772B972BE72B66011600C7398601C +6214623D62AD7593768062BE768376C076C162AE62B377F477F562A97ACC0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +27 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00007ACD7CFA809F80918097809466048286828C65FB8295660B866C66058FB5 +8FBE8FC766F68FC190A990A4678E6792677690A896279626962B963396349629 +4E3D679F4E9D4F934F8A677D67814F6D4F8E4FA04FA24FA14F9F4FA36C1D4F72 +6CEC4F8C51566CD96CB651906CAD6CE76CB751ED51FE522F6CC3523C52345239 +52B952B552BF53556C9D5376537A53936D3053C153C253D554856CCF545F5493 +548954799EFE548F5469546D70915494546A548A708356FD56FB56F872D80000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +28 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +000056FC56F6576557815763576772D1576E5778577F73A673A258F3594B594C +74DD74E8753F59AD753E59C4759859C259B076F176F076F577F859BF77F959C9 +59B859AC7942793F79C559B759D77AFB5B607CFD5B965B9E5B945B9F5B9D80B5 +5C005C1982A082C05C495C4A82985CBB5CC182A782AE82BC5CB95C9E5CB45CBA +5DF65E135E125E7782C35E9882A25E995E9D5EF8866E5EF98FD25F065F218FCD +5F255F558FD790B290B45F845F8360306007963D6036963A96434FCD5FE90000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +29 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000603D60084FC94FCB62BA62B24FDC62B762E462A74FDB4FC74FD662D562E1 +62DD62A662C162C562C062DF62E062DE53976589539965A665BA54A165FF54A5 +66176618660165FE54AE670C54B6676B67966782678A54BC67A354BE67A2678F +54B067F967806B266B276B686B69579D6B816BB46BD1578F57996C1C579A5795 +58F4590D59536C976C6C6CDF5A006CEA59DD6CE46CD86CB26CCE6CC859F2708B +70887090708F59F570877089708D70815BA8708C5CD05CD872405CD75CCB0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +2A +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00007265726672685CC95CC772CD72D372DB5CD472CF73A773A3739E5CDF73AF +5DF95E2173AA739C5E2075427544753B75415E9B759B759E5F0779C479C379C6 +6037603979C7607279CA604560537ACF7C767C747CFF7CFC6042605F7F5980A8 +6058606680B0624280B362CF80A480B680A780AC630380A65367820E82C4833E +829C63006313631462FA631582AA62F082C9654365AA82A682B2662166326635 +8FCC8FD98FCA8FD88FCF90B7661D90AD90B99637670F9641963E96B697510000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +2B +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +000097634E574E794EB24EB04EAF4EB14FD24FD567E44FBE4FB84FB04FB14FC8 +67F667EE4FC64FCC4FE54FE34FB4516A67B2519F67C651C167CC51C251C35245 +524867C967CA524F67EA67CB52C552CA52C453275358537D6BE053DD53DC53DA +53D954B96D1F54D054B454CA6D0A54A354DA54A46D1954B2549E549F54B56D1D +6D4254CD6D1854CC6D03570057AC5791578E578D579257A1579057A657A8709F +579C579657A770A170B470B570A958F572495909590872705952726E72CA0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +2C +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +000059DF72E859EB59EF59F059D55A0D5A0459F95A0259F859E259D959E75B6A +73B473EB5BAB73C75C1B5C2F73C6663C73CB74EC74EE5CD15CDC5CE65CE15CCD +76795CE25CDD5CE55DFB5DFA5E1E76F75EA176FA77E75EFC5EFB5F2F78127805 +5F66780F780E7809605C7813604E6051794B794560236031607C605279D66060 +604A60617AD162187B017C7A7C787C797C7F7C807C81631F631762EA63216304 +63057FBE6531654465408014654265BE80C76629661B80C86623662C661A0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +2D +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00006630663B661E6637663880C9670E80D780E667E867D6822167C767BC6852 +67BF67D567FE836367FB833A67B168016805680067D782F26B2A6B6B82FB82F6 +82F082EA6BE182E082FA6D236CFF6D146D056D136D066D21884E6D156CAF6CF4 +6D026D458A076D268FE36D448FEE6D2470A590BD70A390D570A270BB70A070AA +90C891D470A870B670B270A79653964A70B9722E5005723C5013726D5030501B +72E772ED503372EC72E572E24FF773C473BD73CF73C973C173D0503173CE0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +2E +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +000074ED74EB519374EF754975507546754A5261754D75A6525E525F525575A8 +52CD530E76C776FF54E276FD77E6780A54F37804780B78075504781578085511 +79D379D479D079D77A7C54F854E07A7D7A837A8257017AD47AD57AD37AD07AD2 +7AFE7AFC7C777C7C7C7B57B657BF57C757D057B957C1590E594A7F8F80D35A2D +80CB80D25A0F810980E280DF80C65B6C822482F782D882DD5C565C5482F882FC +5CEE5CF182E95D0082EE5E2982D0830E82E2830B82FD517986765F6786780000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +2F +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000605A60678675867D6088884288666081898C8A0560958A0660978C9F609C +8FF18FE78FE98FEF90C290BC632C90C690C06336634390CD90C9634B90C4633C +958163419CEC50324FF9501D4FFF50044FF05003635150024FFC4FF250245008 +5036502E65C35010503850394FFD50564FFB51A351A651A1681A684951C751C9 +5260526452595265526752575263682B5253682F52CF684452CE52D052D152CC +68266828682E550D54F46825551354EF54F554F9550255006B6D808255180000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +30 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +000054F054F66BE86BE355196BE7570557C96D6357B757CD6D0D6D616D9257BE +57BB6D6D57DB57C857C457C557D157CA57C06D676D605A215A2A6D7C5A1D6D82 +5A0B6D2F6D686D8B6D7E5A226D846D165A246D7B5A145A316D905A2F5A1A5A12 +70DD70CB5A2670E270D75BBC5BBB5BB75C055C065C525C5370C770DA5CFA5CEB +72425CF35CF55CE95CEF72FA5E2A5E305E2E5E2C5E2F5EAF5EA973D95EFD5F32 +5F8E5F935F8F604F609973D2607E73D46074604B6073607573E874DE60560000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +31 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +000060A9608B60A6755B609360AE609E60A7624575C075BF632E75BA63526330 +635B771B6319631B77126331635D6337633563537722635C633F654B78227835 +658B7828659A66506646664E6640782A664B6648795B66606644664D79526837 +682479EC79E0681B683679EA682C681968566847683E681E7A8B681568226827 +685968586855683068236B2E6B2B6B306B6C7B096B8B7C846BE96BEA6BE56D6B +7C8D7C856D736D577D117D0E6D5D6D566D8F6D5B6D1C6D9A6D9B6D997F610000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +32 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00006D816D717F5D7F5B6D726D5C6D9670C470DB70CC70D070E370DF80F270D6 +70EE70D580FB81008201822F727A833372F573028319835173E273EC73D573F9 +73DF73E683228342834E831B73E473E174F3834D831683248320755675557558 +7557755E75C38353831E75B4834B75B18348865376CB76CC772A86967716770F +869E8687773F772B770E772486857721771877DD86A7869578247836869D7958 +79598843796279DA79D9887679E179E579E879DB886F79E279F08874887C0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +33 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00008A128C477ADA7ADD8CA47ADB7ADC8D788DB57B0D7B0B7B147C8E7C868FF5 +7C877C837C8B90048FFC8FF690D67D2490D990DA90E37D257F627F937F997F97 +90DC90E47FC47FC6800A91D591E28040803C803B80F680FF80EE810481038107 +506A506180F750605053822D505D82278229831F8357505B504A506250158321 +505F506983188358506450465040506E50738684869F869B868986A68692868F +86A0884F8878887A886E887B88848873555055348A0D8A0B8A19553655350000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +34 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000553055525545550C8FF990099008553990DE9151553B554091DB91DF91DE +91D691E095859660965957F4965657ED57FD96BD57F8580B5042505958075044 +50665052505450715050507B507C505857E758015079506C507851A851D151CF +5268527652D45A5553A053C45A385558554C55685A5F55495A6C5A53555D5529 +5A43555455535A44555A5A48553A553F552B57EA5A4C57EF5A695A4757DD57FE +5A4257DE57E65B6E57E857FF580358F768A6591F5D1A595B595D595E5D0D0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +35 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00005D265A2B5D0F5A3B5D125D235A615A3A5A6E5A4B5A6B5EB45EB95A455A4E +5A685A3D5A715A3F5A6F5A7560905A735A2C5A595A545A4F5A6360CF60E45BC8 +60DD5BC360B15C5B5C6160CA5D215D0A5D0960C05D2C5D08638A63825D2A5D15 +639E5D105D1363975D2F5D18636F5DE35E395E355E3A5E32639C636D63AE637C +5EBB5EBA5F345F39638563816391638D6098655360D066656661665B60D760AA +666260A160A4688760EE689C60E7686E68AE60DE6956686F637E638B68A90000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +36 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000687563796386639368776373636A686B636C68AA637F687163B263BA6896 +688B6366637468A4655A687B654E654D658D658E65AD6B3365C765CA6B9165C9 +6B8D65E366576C2A66636667671A671967166DAC6DE9689E68B6689868736E00 +689A688E68B768DB68A5686C68C168846DDB6DF46895687A68996DF068B868B9 +68706DCF6B356DD06B906BBB6BED6DD76DCD6DE36DC16DC36DCE70F771176DAD +6E0470F06DB970F36DE770FC6E086E0671136E0A6DB070F66DF86E0C710E0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +37 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00006DB1727B6E026E076E096E016E176DFF6E12730A730871037107710170F5 +70F1710870F2710F740170FE7407740073FA731A7310730E740273F374087564 +73FB75CE75D275CF751B752375617568768F756775D37739772F769077317732 +76D576D776D67730773B7726784877407849771E784A784C782678477850784B +7851784F78427846796B796E796C79F279F879F179F579F379F97A907B357B3B +7A9A7A937A917AE17B247B337B217B1C7B167B177B367B1F7B2F7C937C990000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +38 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00007C9A7C9C7C947D497C967D347D377D3D7D2D7D367D4C7D457D2C7D487D41 +7D477F3B7D3F7D4A7D3B7D288008801A7F9C801D7F9B8049804580447C9B7FD1 +7FC7812A812E801F801E81318047811A8134811781258119811B831D83718384 +8380837283A18127837983918211839F83AD823A8234832382748385839C83B7 +8658865A8373865786B2838F86AE8395839983758845889C889488A3888F88A5 +88A988A6888A88A0889089928991899483B08A268A328A2883AE83768A1C0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +39 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +000086568A2B8A2086C28A2986C586BA86B08A218C3A86B38C5B8C588C7C86BB +8CA68CAE8CAD8D6588528D7E88958D7C8D7F8D7A8DBD889188A18DC08DBB8EAD +8EAF8ED6889788A488AC888C88938ED9898289D69012900E90258A27901390EE +8C3990AB90F78C5D9159915491F291F091E591F68DC28DB995878DC1965A8EDE +8EDD966E8ED78EE08EE19679900B98E198E6900C9EC49ED24E8090F04E81508F +50975088508990EC90E950815160915A91535E4251D391F491F151D251D60000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +3A +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000527391F9527091EB91F791E853A853A653C5559755DE966D966B559655B4 +96BF55859804559B55A0509B555950945586508B50A355AF557A508E509D5068 +559E509255A9570F570E581A5312581F53A4583C5818583E582655AD583A5645 +5822559358FB5963596455815AA85AA35A825A885AA15A855A9855955A99558E +5A895A815A965A80581E58275A91582857F5584858255ACF581B5833583F5836 +582E58395A875AA0582C5A7959615A865AAB5AAA5AA45A8D5A7E5A785BD50000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +3B +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00005A7C5AA55AAC5C1E5C5F5C5E5D445D3E5A975D485D1C5AA95D5B5D4D5A8C +5A9C5D575A935D535D4F5BCD5D3B5D465BD15BCA5E465E475C305E485EC05EBD +5EBF5D4B5F115D355F3E5F3B5D555F3A5D3A5D525D3D5FA75D5960EA5D396107 +6122610C5D325D3660B360D660D25E4160E360E560E95FAB60C9611160FD60E2 +60CE611E61206121621E611663E263DE63E660F860FC60FE60C163F8611863FE +63C163BF63F763D1655F6560656163B063CE65D163E863EF667D666B667F0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +3C +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +000063CA63E066736681666D6669646163DF671E68ED63DC63C463D863D36903 +63C768FE68E5691E690263D763D9690968CA690065646901691868E268CF659D +692E68C568FF65D2691C68C3667B6B6F66716B6E666A6BBE67016BF46C2D6904 +6DB66E756E1E68EA6E18690F6E4868F76E4F68E46E426E6A6E706DFE68E16907 +6E6D69086E7B6E7E6E5968EF6E5769146E806E5068FD6E296E766E2A6E4C712A +68CE7135712C7137711D68F468D1713868D47134712B7133712771246B3B0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +3D +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000712D7232728372827287730673247338732A732C732B6DFC732F73287417 +6E496E88741974386E45741F7414743C73F7741C74157418743974F975246E51 +6E3B6E03756E756D7571758E6E6175E56E286E606E716E6B769476B36E3076D9 +6E657748774977436E776E55774277DF6E66786378766E5A785F786679667971 +712E713179767984797579FF7A0771287A0E7A09724B725A7288728972867285 +7AE77AE27B55733073227B437B577B6C7B427B5373267B417335730C7CA70000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +3E +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00007CA07CA67CA47D74741A7D59742D7D607D577D6C7D7E7D6474207D5A7D5D +752F756F756C7D767D4D7D7575E67FD37FD675E475D78060804E8145813B7747 +814881428149814081148141774C81EF81F68203786483ED785C83DA841883D2 +8408787084007868785E786284178346841483D38405841F8402841683CD83E6 +7AE6865D86D586E17B447B487B4C7B4E86EE884788467CA27C9E88BB7CA188BF +88B47D6388B57D56899A8A437D4F7D6D8A5A7D6B7D527D548A358A388A420000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +3F +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00008A498A5D8A4B8A3D7F667FA27FA07FA18C608C5E8C7F8C7E8C8380D48CB1 +8D878152814F8D888D83814D813A8D868D8B8D828DCA8DD28204823C8DD48DC9 +8EB0833B83CF83F98EF28EE48EF38EEA83E78EFD83FC8F9D902B902A83C89028 +9029902C840183DD903A90309037903B83CB910A83D683F583C991FE922083DE +920B84069218922283D5921B920883D1920E9213839A83C3959583EE83C483FB +968C967B967F968183FE968286E286E686D386E386DA96EE96ED86EB96EC0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +40 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000975F976F86D7976D86D188488856885588BA88D798F088B888C088BE9AA9 +88BC88B79AE04EB7890188C950CC50BC899750AA50B989DB50AB50C350CD517E +527E52798A588A4452E152E052E7538053AB53AA53A953E055EA8C8055D78CBE +8CB055C157158D84586C8D89585C58505861586A5869585658605866585F5923 +596659688EEF8EF75ACE8EF95AC55AC38EE58EF55AD08EE88EF68EEB8EF18EEC +8EF45B745B765BDC5BD75BDA5BDB91045C205D6D5D6690F95D645D6E91000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +41 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00005D605F425F5A5F6E9164915F6130613A612A614361196131921A613D920F +920C92006408643264389206643192276419921C6411921992176429641D957B +958D958C643C96876446644796899683643A640796C8656B96F16570656D9770 +65E4669398A998EB9CE69EF9668F4E844EB6669250BF668E50AE694650CA50B4 +50C850C250B050C150BA693150CB50C9693E50B8697C694352786973527C6955 +55DB55CC6985694D69506947696769366964696155BF697D6B446B406B710000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +42 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00006B736B9C55C855F255CD6BC155C26BFA6C316C325864584F6EB86EA8586F +6E916EBB585D6E9A5865585B6EA9586358716EB56E6C6EE85ACB6EDD6EDA6EE6 +6EAC5AB05ABF5AC86ED96EE36EE96EDB5ACA716F5AB65ACD71485A90714A716B +5BD9714F715771745D635D4A5D6571457151716D5D6872517250724E5E4F7341 +5E4A732E73465EC574275EC674487453743D5FAF745D74566149741E74477443 +74587449612E744C7445743E61297501751E91686223757A75EE760276970000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +43 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00007698641064126409775D77647753775878827890788A6439787A787D6423 +788B787864306428788D788878927881797E798364256427640B7980641B642E +64217A0F656F65927A1D66867AA17AA466907AE97AEA66997B627B6B67207B5E +695F7B79694E69627B6F7B686945696A7CAE6942695769597CB069487D906935 +7D8A69337D8B7D997D9569787D877D787D977D897D986976695869417FA3694C +693B694B7FDD8057694F8163816A816C692F697B693C815D81756B43815F0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +44 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00006B48817D816D6BFB6BFC8241844F84846E9B847F6EC88448842A847B8472 +8464842E845C84536EC6844184C86EC184628480843E848384716EA6844A8455 +84586EC36EDC6ED886FC86FD87156E8D871686FF6EBF6EB36ED0885888CF88E0 +6EA371477154715289E78A6A8A80715D8A6F8A6571788A788A7D8A8871587143 +8A648A7E715F8A678C638C88714D8CCD724F8CC9728C8DED7290728E733C7342 +733B733A73408EB1734974448F048F9E8FA090439046904890459040904C0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +45 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +000074427446910C9113911574FF916B9167925D9255923569839259922F923C +928F925C926A9262925F926B926E923B92449241959A7699959976DD7755775F +968F77529696775A7769776796F496FC776D9755788797797894788F788497EE +97F57886980B788398F37899788098F798FF98F5798298EC98F17A117A18999A +7A129AE29B3D9B5D9CE87A1B9CEB9CEF9CEE9E819F1450D050D950DC50D87B69 +50E150EB7B737B7150F450E250DE7B767B637CB251F47CAF7D887D8652ED0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +46 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +000052EA7D7F53327D7A53AE53B07D8355FB5603560B7D8456077D9255F87F6B +5628561E7F6C5618561156515605571758928164588C817758785884587358AD +58975895587758725896588D59108161596C82495AE782405AE4824584F15AEF +5626847684795AF05D7B84655D83844084865D8B5D8C844D5D785E5284598474 +5ED05ECF85075FB35FB4843A8434847A617B8478616F6181613C614261386133 +844261606169617D6186622C62288452644C84C56457647C8447843664550000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +47 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +000064626471646A6456643B6481846E644F647E646486F7870C86FA86D686F5 +657186F8870E66A5669A669C870D66A688D666A4698F69C569C8699269B288CC +88D0898569E369C069D669D1699F69A269D289DC89E68A7669E169D5699D8A3F +8A7769988A846B746BA18A816EF06EF38C3C8C4B6F1B6F0C6F1D6F346F286F17 +8C856F446F426F046F116EFA6F4A7191718E8D93718B718D717F718C717E717C +71838DEE71888DE98DE372948DE773557353734F7354746C7465746674610000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +48 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000746B746874768F0B7460903F74747506760E91107607910F911176B99114 +76B776E2916E7774777777767775923A777877719265777A715B777B78A678AE +78B8926C924F926078B178AF923679897987923192547A2992507A2A924E7A2D +7A2C92567A32959F7AEC7AF07B817B9E7B8396917B9296CE7BA37B9F7B9396F5 +7B867CB87CB79772980F980D980E98AC7DC87DB699AF7DD199B07DA87DAB9AAB +7DB37DCD9CED7DCF7DA49EFD50E67F417F6F7F7150F350DB50EA50DD50E40000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +49 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +000050D38023805B50EF8061805F818152805281818482135330824A824C5615 +560C561284BD8495561C849284C35602849684A584B584B384A384E484D884D5 +589884B784AD84DA84938736587A58875891873D872B87478739587B8745871D +58FE88FF88EA5AEE88F55AD5890088ED890388E95AF35AE289EA5ADB8A9B8A8E +8AA25AD98A9C8A948A908AA98AAC5C638A9F5D805D7D8A9D5D7A8C675D775D8A +8CD08CD68CD48D988D9A8D975D7F5E585E598E0B8E088E018EB48EB35EDC0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +4A +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00008FA18FA25ED2905A5F449061905F5FB6612C9125917B9176917C61739289 +92F692B192AD929292819284617A92AE9290929E616A6161615695A295A7622B +642B644D645B645D96A0969D969F96D0647D96D1646664A6975964829764645C +644B64539819645098149815981A646B645964656477990665A098F89901669F +99BE99BC99B799B699C069C999B869CE699669B099C469BC99BF69999ADA9AE4 +9AE99AE89AEA9AE569BF9B2669BD69A49B4069B969CA699A69CF69B369930000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +4B +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +000069AA9EBD699E69D969976990510E69B550F769C650FC510D510151DA51D9 +51DB5286528E52EE533353B16EF15647562D56546F37564B5652563156445656 +5650562B6F18564D5637564F58A258B76F7358B26EEE58AA58B558B06F3C58B4 +58A458A76F0E59265AFE6EFD5B046F395AFC6EFC5B065B0A5AFA5B0D5B005B0E +7187719071895D9171855D8F5D905D985DA45D9B5DA35D965DE45E5A72957293 +5E5E734D5FB86157615C61A661956188747261A3618F75006164750361590000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +4C +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00006178761661856187619E7611760A6198619C7781777C622F6480649B648E +648D649464C678B264A8648378AD64B9648664B464AF649178A064AA64A164A7 +66B666B3798B66BC66AC799466AD6A0E79886A1C6A1A7A2B7A4A6A0B7A2F69EF +6A0C69F06A227AAC69D87B886A1269FA7B916A2A7B966A107B8C7B9B6A2969F9 +69EA6A2C6A247BA469E96B526B4F6B537CBA7DA76F106F656F757DAA7DC17DC0 +7DC56FD07DCE6F5C6F3D6F717DCC6F916F0B6F796F816F8F7DA66F596F740000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +4D +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00007DA171AE7F7371A371AD7FE57FDE71AB71A671A2818952F2725772557299 +734B747A8215849784A4748C748484BA84CE74827493747B84AB750984B484C1 +84CD84AA849A84B1778A849D779084BB78C678D378C078D278C778C284AF799F +799D799E84B67A4184A07A387A3A7A4284DB84B07A3E7AB07BAE7BB38728876B +7BBF872E871E7BCD87197BB28743872C8741873E8746872087327CC47CCD7CC2 +7CC67CC37CC97CC787427DF887277DED7DE2871A873087117DDC7E027E010000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +4E +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +000088F27DD688FE7DE47DFE88F67E007DFC7DFD88EB7DF57DFF899F7DEB7DE5 +7F787FAE7FE78A998065806A80668068806B819481A18192819681938D968E09 +85018DFF84F88DFD84F58E0385048E068E058DFE8E00851B85038533853484ED +9123911C853591228505911D911A91249121877D917A91729179877192A5885C +88E6890F891B92A089A989A589EE8AB1929A8ACC8ACE92978AB792A38AB58AE9 +8AB492958AB38AC18AAF8ACA8AD09286928C92998C8E927E92878CE98CDB0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +4F +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000928B8CEB8DA496A18DA28D9D977D977A977E97838E2A8E28977B97848EB8 +8EB68EB98EB78F228F2B8F278F198FA499078FB3999C9071906A99BB99BA9188 +918C92BF92B892BE92DC92E59B3F9B6092D492D69CF192DA92ED92F392DB5103 +92B992E292EB95AF50F695B295B3510C50FD510A96A396A552F152EF56485642 +970A563597879789978C97EF982A98225640981F563D9919563E99CA99DA563A +571A58AB99DE99C899E058A39AB69AB558A59AF458FF9B6B9B699B729B630000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +50 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00005AF69D0D5AF89D019D0C5B019CF85B055B0F9CFE9D029E845D9F9EAB9EAA +511D51165DA0512B511E511B5290529453145E605E5C56675EDB567B5EE1565F +5661618B6183617961B161B061A2618958C358CA58BB58C058C459015B1F5B18 +5B115B1561B35B125B1C64705B225B795DA664975DB35DAB5EEA648A5F5B64A3 +649F61B761CE61B961BD61CF61C06199619765B361BB61D061C4623166B764D3 +64C06A006A066A1769E564DC64D164C869E464D566C369EC69E266BF66C50000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +51 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +000069FE66CD66C167066A1467246A636A426A5269E66A436A3369FC6A6C6A57 +6A046A4C6A6E6A0F69F66A266A0769F46A376B516A716A4A6A366BA66A536C00 +6A456A706F416F266A5C6B586B576F926F8D6F896F8C6F626F4F6FBB6F5A6F96 +6FBE6F6C6F826F556FB56FD36F9F6F576FB76FF571B76F0071BB6F6B71D16F67 +71BA6F5371B671CC6F7F6F9571D3749B6F6A6F7B749674A2749D750A750E719A +7581762C76377636763B71A476A171AA719C779871B37796729A735873520000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +52 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +000078D678EB736078DC735B79A579A998347A537A4574897A4F74867ABD7ABB +7AF17488747C7BEC7BED7507757E7CD3761E7CE1761D7E197623761A76287E27 +7E26769D769E806E81AF778F778981AD78CD81AA821878CC78D178CE78D4856F +854C78C48542799A855C8570855F79A2855A854B853F878A7AB4878B87A1878E +7BBE7BAC8799885E885F892489A78AEA8AFD8AF98AE38AE57DDB7DEA8AEC7DD7 +7DE17E037DFA8CF27DF68CEF7DF08DA67DDF7F767FAC8E3B8E437FED8E320000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +53 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00008F318F307FE68F2D8F3C8FA78FA5819F819E819591379195918E82169196 +82539345930A824E825192FD9317931C930793319332932C9330930393058527 +95C284FB95B884FA95C1850C84F4852A96AB96B784F784EB97159714851284EA +970C971784FE9793851D97D2850284FD983698319833983C982E983A84F0983D +84F998B5992299239920991C991D866299A0876399EF99E899EB877387588754 +99E199E68761875A9AF89AF5876D876A9B839B949B84875D9B8B9B8F877A0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +54 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00009B8C875C9B89874F9B8E8775876287679D249D0F89059D139D0A890B8917 +891889199D2A9D1A89119D279D169D2189A49E859EAC9EC69EC59ED79F538AB8 +5128512751DF8AD5533553B38ABE568A567D56898AC358CD58D08AD95B2B5B33 +5B295B355B315B375C365DBE8CDD5DB98DA05DBB8DA161E261DB61DD61DC61DA +8E2E61D98E1B8E1664DF8E198E2664E18E1464EE8E1865B566D466D58E1A66D0 +66D166CE66D78F208F236A7D6A8A90736AA7906F6A996A826A88912B91290000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +55 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00006A8691326A986A9D918591866A8F91816AAA91846B5D92D06C0A92C46FD7 +6FD66FE592CF92F192DF6FD96FDA6FEA92DD6FF692EF92C271E392CA71E992CE +71EB71EF71F371EA92E092DE92E792D192D3737192E174AE92C674B3957C74AC +95AB95AE75837645764E764476A376A577A677A4978A77A977AF97D097CF981E +78F078F878F198287A49981B982798B27AC27AF27AF37BFA99167BF67BFC7C18 +7C087C1299D399D47CDB7CDA99D699D899CB7E2C7E4D9AB39AEC7F467FF60000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +56 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000802B807481B881C89B679B749B71859285939B75857F85AB85979B6C9CFC +85AC9CFD9CFF9CF787CE9D0087CD9CFB9D0887C187B187C79ED389409F10893F +893951178943511151DE533489AB56708B1F8B098B0C566656638C4056728C96 +56778CF68CF758C88E468E4F58BF58BA58C28F3D8F4193669378935D93699374 +937D936E93729373936293489353935F93685DB1937F936B5DB595C45DAE96AF +96AD96B25DAD5DAF971A971B5E685E665E6F5EE9979B979F5EE85EE55F4B0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +57 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00005FBC5FBB619D61A86196984061B4984761C198B761BA61BF61B8618C64D7 +99A264D064CF9A0099F3648964C399F564F364D99ABD9B009B0265A29B349B49 +9B9F66CA9BA39BCD9B999B9D66BA66CC9D396A349D446A496A679D356A686A3E +9EAF6A6D512F6A5B6A519F8E6A5A569F569B569E5696569456A06A4F5B3B6A6F +6A695B3A5DC15F4D5F5D61F36A4D6A4E6A466B5564F664E564EA64E765056BC8 +64F96C046C036C066AAB6AED6AB26AB06AB56ABE6AC16AC86FC46AC06ABC0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +58 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00006AB16AC46ABF6FA56FAE700870036FFD7010700270136FA271FA720074B9 +74BC6FB2765B7651764F76EB77B871D677B977C177C077BE790B71C77907790A +790871BC790D7906791579AF729E736973667AF5736C73657C2E736A7C1B749A +7C1A7C24749274957CE67CE37580762F7E5D7E4F7E667E5B7F477FB476327630 +76BB7FFA802E779D77A181CE779B77A282197795779985CC85B278E985BB85C1 +78DE78E378DB87E987EE87F087D6880E87DA8948894A894E894D89B189B00000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +59 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +000089B37AB78B388B327BE78B2D7BD58B347BDA8B298C747BD47BEA8D037BDC +7BEB8DA98E587CD27CD48EBF8EC18F4A8FAC7E219089913D913C91A993A07E0E +93907E159393938B93AD93BB93B87E0D7E14939C95D895D77F7B7F7C7F7A975D +97A997DA8029806C81B181A6985481B99855984B81B0983F98B981B281B781A7 +81F29938993699408556993B993999A4855385619A089A0C85469A1085419B07 +85449BD285479BC29BBB9BCC9BCB854E856E9D4D9D639D4E85609D509D550000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +5A +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000855D9D5E85659E909EB29EB186649ECA9F029F279F26879356AF58E058DC +87965B39877987875B7C5BF3879087915C6B5DC4650B6508650A8789891E65DC +8930892D66E166DF6ACE6AD46AE36AD76AE2892C891F89F18AE06AD86AD56AD2 +8AF58ADD701E702C70256FF37204720872158AE874C474C974C774C876A977C6 +77C57918791A79208CF37A667A647A6A8DA78E338E3E8E388E408E457C357C34 +8E3D8E417E6C8E3F7E6E7E718F2E81D481D6821A82628265827685DB85D60000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +5B +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000908685E79133913585F4919387FD87D58807918F880F87F89308931F8987 +930F89B589F5933C8B3F8B438B4C93018D0B8E6B8E688E708E758E7792FA8EC3 +92F993E993EA93CB93C593C6932993ED93D3932A93E5930C930B93DB93EB93E0 +93C1931695BC95DD95BE95B995BA95B695BF95B595BD96A996D497B297B497B1 +97B597F2979497F097F89856982F98329924994499279A269A1F9A189A219A17 +99E49B0999E399EA9BC59BDF9AB99BE39AB49BE99BEE9AFA9AF99D669D7A0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +5C +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00009B809D6E9D919D839D769D7E9D6D9B939E959EE39B7A9B959F039F049D25 +9F179D2051369D1453369D1D5B429D229D105B445B465B7E5DCA5DC85DCC5EF0 +9ED5658566E566E79F3D512651256AF451246AE9512952F45693568C568D703D +56847036567E7216567F7212720F72177211720B5B2D5B2574CD74D074CC74CE +74D15B2F75895B7B7A6F7C4B7C445E6C5E6A5FBE61C361B57E7F8B7161E0802F +807A807B807C64EF64E964E385FC861086026581658085EE860366D2860D0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +5D +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +000086138608860F881888126A9B6AA18967896589BB8B698B626A838B6E6AA4 +8B616A7F8B648B4D8C516A8C6A928E838EC66C09941F6FA99404941794089405 +6FED93F3941E9402941A941B9427941C71E196B571E871F2973371F097349731 +97B897BA749797FC74AB749098C374AD994D74A59A2F7510751175129AC97584 +9AC89AC49B2A9B389B5076E99C0A9BFB9C049BFC9BFE77B477B177A89C029BF6 +9C1B9BF99C159C109BFF9C009C0C78F978FE9D959DA579A87A5C7A5B7A560000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +5E +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00009E989EC17A5A9F5A516456BB7C0558E65B495BF77BFF7BFB5DD07BF45FC2 +7BF365117C096AFF6AFE6AFD7BFD6B017BF07BF1704B704D704774D376687667 +7E33984877D179307932792E7E479F9D7AC97AC87E3B7C567C517E3A7F457F7F +7E857E897E8E7E84802C826A862B862F862881C586168615861D881A825A825C +858389BC8B758B7C85958D118D128F5C91BB85A493F4859E8577942D858985A1 +96E497379736976797BE97BD97E29868986698C898CA98C798DC8585994F0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +5F +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +000099A99A3C85909A3B9ACE87BE9B149B5387C59C2E87AC9C1F87B587BC87AE +87C99DB09DBD87CC87B79DAE9DC49E7B87B487B69E9E87B89F0587DE9F699FA1 +56C7571D5B4A5DD389525F72620289AD62356527651E651F8B1E8B186B076B06 +8B058B0B7054721C72207AF88B077C5D7C588B067E927F4E8B1A8C4F8C708827 +8C718B818B838C948C448D6F8E4E8E4D8E539442944D9454944E8F409443907E +9138973C974097C09199919F91A1919D995A9A5193839ADD936493569C380000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +60 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000937C9C459C3A93769C359350935193609EF1938F9F93529A937993578641 +5DD7934F65289377937B936170537059936772219359766F793779B57C627C5E +7CF596AE96B0863D9720882D89898B8D8B878B908D1A8E99979E979D97D5945F +97F1984194569461945B945A945C9465992B9741992A9933986E986C986D9931 +99AA9A5C9A589ADE9A029C4F9C5199F79C5399F899F699FB9DFC9F3999FC513E +9ABE56D29AFD5B4F6B149B487A727A739B9E9B9B9BA68B919BA59BA491BF0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +61 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00009BA2946C9BAF9D3396E697459D3697C897E4995D9D389B219D459B2C9B57 +9D3E9D379C5D9C619C659E089E8A9E899E8D9EB09EC89F459EFB9EFF620566EF +6B1B6B1D722572247C6D512E8642864956978978898A8B9759708C9B8D1C5C6A +8EA25E6D5E6E61D861DF61ED61EE61F161EA9C6C61EB9C6F61E99E0E65049F08 +9F1D9FA3650364FC5F606B1C66DA66DB66D87CF36AB98B9B8EA791C46ABA947A +6AB76AC79A619A639AD79C766C0B9FA5700C7067700172AB864A897D8B9D0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +62 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00008C538F65947B6FFC98CD98DD72019B309E16720371FD737674B874C096E7 +9E189EA274B69F7C74C27E9E9484765C9E1C76597C7197CA7657765A76A69EA3 +76EC9C7B9F97790C7913975079097910791257275C1379AC7A5F7C1C7C297C19 +7C205FC87C2D7C1D7C267C287C2267657C307E5C52BD7E565B667E5865F96788 +6CE66CCB7E574FBD5F8D7FB36018604880756B2970A681D07706825E85B485C6 +5A105CFC5CFE85B385B585BD85C785C485BF70C985CE85C885C585B185B60000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +63 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +000085D28624957985B796BA866987E787E687E287DB87EB87EA7B29812887F3 +8A2E87D487DC87D39AD987D8582B584587D963FA87F487E887DD6E86894B894F +894C89468950586789495BDD656E8B238B338B308C878B4750D250DF8B3E8B31 +8B258B3769BA8B366B9D8B2480598B3D8B3A8C428C758C998C988C978CFE8D04 +8D028D008E5C6F8A8E608E577BC37BC28E658E678E5B8E5A90F68E5D98238E54 +8F468F478F488F4B71CD7499913B913E91A891A591A7984291AA93B5938C0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +64 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +000093927F84939B939D938993A7938E8D0E939E9861939593888B73939F9C27 +938D945877D69B2D93A493A893B493A395D295D395D196B396D796DA5DC296DF +96D896DD97239722972597AC97AE97A84F664F684FE7503F97A550A6510F523E +53245365539B517F54CB55735571556B55F456225620569256BA569156B05759 +578A580F581258135847589B5900594D5AD15AD35B675C575C775CD55D755D8E +5DA55DB65DBF5E655ECD5EED5F945F9A5FBA6125615062A36360636463B60000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +65 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000640364B6651A7A255C2166E2670267A467AC68106806685E685A692C6929 +6A2D6A776A7A6ACA6AE66AF56B0D6B0E6BDC6BDD6BF66C1E6C636DA56E0F6E8A +6E846E8B6E7C6F4C6F486F496F9D6F996FF8702E702D705C79CC70BF70EA70E5 +71117112713F7139713B713D71777175717671717196719371B471DD71DE720E +591172187347734873EF7412743B74A4748D74B47673767776BC7819781B783D +78537854785878B778D878EE7922794D7986799979A379BC7AA77B377B590000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +66 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00007BD07C2F7C327C427C4E7C687CA97CED7DD07E077DD37E647F40791E8041 +806380BB6711672582488310836283128421841E84E284DE84E1857385D485F5 +863786458672874A87A987A587F5883488508887895489848B038C528CD88D0C +8D188DB08EBC8ED58FAA909C85E8915C922B9221927392F492F5933F93429386 +93BE93BC93BD93F193F293EF94229423942494679466959795CE95E7973B974D +98E499429B1D9B9889629D4964495E715E8561D3990E8002781E898889B70000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +67 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00005528557255BA55F055EE56B856B956C4805392B08B558B518B428B528B57 +8C438C778C768C9A8D068D078D098DAC8DAA8DAD8DAB8E6D8E788E738E6A8E6F +8E7B8EC28F528F518F4F8F508F538FB49140913F91B091AD93DE93C793CF93C2 +93DA93D093F993EC93CC93D993A993E693CA93D493EE93E393D593C493CE93C0 +93D293A593E7957D95DA95DB96E19729972B972C9728972697B397B797B697DD +97DE97DF985C9859985D985798BF98BD98BB98BE99489947994399A699A70000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +68 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00009A1A9A159A259A1D9A249A1B9A229A209A279A239A1E9A1C9A149AC29B0B +9B0A9B0E9B0C9B379BEA9BEB9BE09BDE9BE49BE69BE29BF09BD49BD79BEC9BDC +9BD99BE59BD59BE19BDA9D779D819D8A9D849D889D719D809D789D869D8B9D8C +9D7D9D6B9D749D759D709D699D859D739D7B9D829D6F9D799D7F9D879D689E94 +9E919EC09EFC9F2D9F409F419F4D9F569F579F58533756B256B556B358E35B45 +5DC65DC75EEE5EEF5FC05FC161F9651765166515651365DF66E866E366E40000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +69 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00006AF36AF06AEA6AE86AF96AF16AEE6AEF703C7035702F7037703470317042 +7038703F703A7039702A7040703B703370417213721472A8737D737C74BA76AB +76AA76BE76ED77CC77CE77CF77CD77F279257923792779287924792979B27A6E +7A6C7A6D7AF77C497C487C4A7C477C457CEE7E7B7E7E7E817E807FBA7FFF8079 +81DB81D982688269862285FF860185FE861B860085F6860486098605860C85FD +8819881088118817881388168963896689B989F78B608B6A8B5D8B688B630000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +6A +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00008B658B678B6D8DAE8E868E888E848F598F568F578F558F588F5A908D9143 +914191B791B591B291B3940B941393FB9420940F941493FE9415941094289419 +940D93F5940093F79407940E9416941293FA940993F8943C940A93FF93FC940C +93F69411940695DE95E095DF972E972F97B997BB97FD97FE986098629863985F +98C198C29950994E9959994C994B99539A329A349A319A2C9A2A9A369A299A2E +9A389A2D9AC79ACA9AC69B109B129B119C0B9C089BF79C059C129BF89C400000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +6B +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00009C079C0E9C069C179C149C099D9F9D999DA49D9D9D929D989D909D9B9DA0 +9D949D9C9DAA9D979DA19D9A9DA29DA89D9E9DA39DBF9DA99D969DA69DA79E99 +9E9B9E9A9EE59EE49EE79EE69F309F2E9F5B9F609F5E9F5D9F599F91513A5139 +5298529756C356BD56BE5B485B475DCB5DCF5EF161FD651B6B026AFC6B036AF8 +6B0070437044704A7048704970457046721D721A7219737E7517766A77D0792D +7931792F7C547C537CF27E8A7E877E887E8B7E867E8D7F4D7FBB803081DD0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +6C +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00008618862A8626861F8623861C86198627862E862186208629861E86258829 +881D881B88208824881C882B884A896D8969896E896B89FA8B798B788B458B7A +8B7B8D108D148DAF8E8E8E8C8F5E8F5B8F5D91469144914591B9943F943B9436 +9429943D94309439942A9437942C9440943195E595E495E39735973A97BF97E1 +986498C998C698C0995899569A399A3D9A469A449A429A419A3A9A3F9ACD9B15 +9B179B189B169B3A9B529C2B9C1D9C1C9C2C9C239C289C299C249C219DB70000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +6D +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00009DB69DBC9DC19DC79DCA9DCF9DBE9DC59DC39DBB9DB59DCE9DB99DBA9DAC +9DC89DB19DAD9DCC9DB39DCD9DB29E7A9E9C9EEB9EEE9EED9F1B9F189F1A9F31 +9F4E9F659F649F924EB956C656C556CB59715B4B5B4C5DD55DD15EF265216520 +652665226B0B6B086B096C0D7055705670577052721E721F72A9737F74D874D5 +74D974D7766D76AD793579B47A707A717C577C5C7C597C5B7C5A7CF47CF17E91 +7F4F7F8781DE826B863486358633862C86328636882C88288826882A88250000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +6E +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000897189BF89BE89FB8B7E8B848B828B868B858B7F8D158E958E948E9A8E92 +8E908E968E978F608F629147944C9450944A944B944F94479445944894499446 +973F97E3986A986998CB9954995B9A4E9A539A549A4C9A4F9A489A4A9A499A52 +9A509AD09B199B2B9B3B9B569B559C469C489C3F9C449C399C339C419C3C9C37 +9C349C329C3D9C369DDB9DD29DDE9DDA9DCB9DD09DDC9DD19DDF9DE99DD99DD8 +9DD69DF59DD59DDD9EB69EF09F359F339F329F429F6B9F959FA2513D52990000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +6F +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +000058E858E759725B4D5DD8882F5F4F62016203620465296525659666EB6B11 +6B126B0F6BCA705B705A7222738273817383767077D47C677C667E95826C863A +86408639863C8631863B863E88308832882E883389768974897389FE8B8C8B8E +8B8B8B888C458D198E988F648F6391BC94629455945D9457945E97C497C59800 +9A569A599B1E9B1F9B209C529C589C509C4A9C4D9C4B9C559C599C4C9C4E9DFB +9DF79DEF9DE39DEB9DF89DE49DF69DE19DEE9DE69DF29DF09DE29DEC9DF40000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +70 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00009DF39DE89DED9EC29ED09EF29EF39F069F1C9F389F379F369F439F4F9F71 +9F709F6E9F6F56D356CD5B4E5C6D652D66ED66EE6B13705F7061705D70607223 +74DB74E577D5793879B779B67C6A7E977F89826D8643883888378835884B8B94 +8B958E9E8E9F8EA08E9D91BE91BD91C2946B9468946996E597469743974797C7 +97E59A5E9AD59B599C639C679C669C629C5E9C609E029DFE9E079E039E069E05 +9E009E019E099DFF9DFD9E049EA09F1E9F469F749F759F7656D4652E65B80000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +71 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00006B186B196B176B1A7062722672AA77D877D979397C697C6B7CF67E9A7E98 +7E9B7E9981E081E18646864786488979897A897C897B89FF8B988B998EA58EA4 +8EA3946E946D946F9471947397499872995F9C689C6E9C6D9E0B9E0D9E109E0F +9E129E119EA19EF59F099F479F789F7B9F7A9F79571E70667C6F883C8DB28EA6 +91C394749478947694759A609B2E9C749C739C719C759E149E139EF69F0A9FA4 +706870657CF7866A883E883D883F8B9E8C9C8EA98EC9974B9873987498CC0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +72 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000996199AB9A649A669A679B249E159E179F4862076B1E7227864C8EA89482 +948094819A699A689E19864B8B9F94839C799EB776759A6B9C7A9E1D7069706A +72299EA49F7E9F499F988AF68AFC8C6B8C6D8C938CF48E448E318E348E428E39 +8E358F3B8F2F8F388F338FA88FA69075907490789072907C907A913491929320 +933692F89333932F932292FC932B9304931A9310932693219315932E931995BB +96A796A896AA96D5970E97119716970D9713970F975B975C9766979898300000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +73 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00009838983B9837982D9839982499109928991E991B9921991A99ED99E299F1 +9AB89ABC9AFB9AED9B289B919D159D239D269D289D129D1B9ED89ED49F8D9F9C +512A511F5121513252F5568E5680569056855687568F58D558D358D158CE5B30 +5B2A5B245B7A5C375C685DBC5DBA5DBD5DB85E6B5F4C5FBD61C961C261C761E6 +61CB6232623464CE64CA64D864E064F064E664EC64F164E264ED6582658366D9 +66D66A806A946A846AA26A9C6ADB6AA36A7E6A976A906AA06B5C6BAE6BDA0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +74 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00006C086FD86FF16FDF6FE06FDB6FE46FEB6FEF6F806FEC6FE16FE96FD56FEE +6FF071E771DF71EE71E671E571ED71EC71F471E0723572467370737274A974B0 +74A674A876467642764C76EA77B377AA77B077AC77A777AD77EF78F778FA78F4 +78EF790179A779AA7A577ABF7C077C0D7BFE7BF77C0C7BE07CE07CDC7CDE7CE2 +7CDF7CD97CDD7E2E7E3E7E467E377E327E437E2B7E3D7E317E457E417E347E39 +7E487E357E3F7E2F7F447FF37FFC807180728070806F807381C681C381BA0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +75 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +000081C281C081BF81BD81C981BE81E88209827185AA8584857E859C85918594 +85AF859B858785A8858A85A6866787C087D187B387D287C687AB87BB87BA87C8 +87CB893B893689448938893D89AC8B0E8B178B198B1B8B0A8B208B1D8B048B10 +8C418C3F8C738CFA8CFD8CFC8CF88CFB8DA88E498E4B8E488E4A8F448F3E8F42 +8F458F3F907F907D9084908190829080913991A3919E919C934D938293289375 +934A9365934B9318937E936C935B9370935A935495CA95CB95CC95C895C60000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +76 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +000096B196B896D6971C971E97A097D3984698B699359A0199FF9BAE9BAB9BAA +9BAD9D3B9D3F9E8B9ECF9EDE9EDC9EDD9EDB9F3E9F4B53E2569556AE58D958D8 +5B385F5E61E3623364F464F264FE650664FA64FB64F765B766DC67266AB36AAC +6AC36ABB6AB86AC26AAE6AAF6B5F6B786BAF7009700B6FFE70066FFA7011700F +71FB71FC71FE71F87377737574A774BF751576567658765277BD77BF77BB77BC +790E79AE7A617A627A607AC47AC57C2B7C277C2A7C1E7C237C217CE77E540000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +77 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00007E557E5E7E5A7E617E527E597F487FF97FFB8077807681CD81CF820A85CF +85A985CD85D085C985B085BA85B987EF87EC87F287E0898689B289F48B288B39 +8B2C8B2B8C508D058E598E638E668E648E5F8E558EC08F498F4D908790839088 +91AB91AC91D09394938A939693A293B393AE93AC93B09398939A939795D495D6 +95D095D596E296DC96D996DB96DE972497A397A697AD97F9984D984F984C984E +985398BA993E993F993D992E99A59A0E9AC19B039B069B4F9B4E9B4D9BCA0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +78 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00009BC99BFD9BC89BC09D519D5D9D609EE09F159F2C513356A556A858DE58DF +58E25BF59F905EEC61F261F761F661F56500650F66E066DD6AE56ADD6ADA6AD3 +701B701F7028701A701D701570187206720D725872A27378737A74BD74CA74E3 +75877586765F766177C7791979B17A6B7A697C3E7C3F7C387C3D7C377C407E6B +7E6D7E797E697E6A7E737F857FB67FB97FB881D885E985DD85EA85D585E485E5 +85F787FB8805880D87F987FE8960895F8956895E8B418B5C8B588B498B5A0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +79 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00008B4E8B4F8B468B598D088D0A8E7C8E728E878E768E6C8E7A8E748F548F4E +8FAD908A908B91B191AE93E193D193DF93C393C893DC93DD93D693E293CD93D8 +93E493D793E895DC96B496E3972A9727976197DC97FB985E9858985B98BC9945 +99499A169A199B0D9BE89BE79BD69BDB9D899D619D729D6A9D6C9E929E979E93 +9EB452F856B756B656B456BC58E45B405B435B7D5BF65DC961F861FA65186514 +651966E667276AEC703E703070327210737B74CF766276657926792A792C0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +7A +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000792B7AC77AF67C4C7C437C4D7CEF7CF08FAE7E7D7E7C7E827F4C800081DA +826685FB85F9861185FA8606860B8607860A88148815896489BA89F88B708B6C +8B668B6F8B5F8B6B8D0F8D0D8E898E818E858E8291B491CB9418940393FD95E1 +973098C49952995199A89A2B9A309A379A359C139C0D9E799EB59EE89F2F9F5F +9F639F615137513856C156C056C259145C6C5DCD61FC61FE651D651C659566E9 +6AFB6B046AFA6BB2704C721B72A774D674D4766977D37C507E8F7E8C7FBC0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +7B +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00008617862D861A882388228821881F896A896C89BD8B748B778B7D8D138E8A +8E8D8E8B8F5F8FAF91BA942E94339435943A94389432942B95E2973897399732 +97FF9867986599579A459A439A409A3E9ACF9B549B519C2D9C259DAF9DB49DC2 +9DB89E9D9EEF9F199F5C9F669F67513C513B56C856CA56C95B7F5DD45DD25F4E +61FF65246B0A6B6170517058738074E4758A766E766C79B37C607C5F807E807D +81DF8972896F89FC8B808D168D178E918E938F619148944494519452973D0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +7C +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000973E97C397C1986B99559A559A4D9AD29B1A9C499C319C3E9C3B9DD39DD7 +9F349F6C9F6A9F9456CC5DD662006523652B652A66EC6B1074DA7ACA7C647C63 +7C657E937E967E9481E28638863F88318B8A9090908F9463946094649768986F +995C9A5A9A5B9A579AD39AD49AD19C549C579C569DE59E9F9EF456D158E9652C +705E7671767277D77F507F888836883988628B938B928B9682778D1B91C0946A +97429748974497C698709A5F9B229B589C5F9DF99DFA9E7C9E7D9F079F770000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +7D +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00009F725EF36B1670637C6C7C6E883B89C08EA191C1947294709871995E9AD6 +9B239ECC706477DA8B9A947797C99A629A657E9C8B9C8EAA91C5947D947E947C +9C779C789EF78C54947F9E1A72289A6A9B319E1B9E1E7C720000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 diff --git a/shared/package-files/0a/0a9647884dc5dd830c2a219397b46fcd6a8a8c335676d6d27a8934f740f7a4e9/diagonal_scatter_native.h b/shared/package-files/0a/0a9647884dc5dd830c2a219397b46fcd6a8a8c335676d6d27a8934f740f7a4e9/diagonal_scatter_native.h new file mode 100644 index 0000000000000000000000000000000000000000..9cf848832b94612a4882b7205ce03aa12e0009d2 --- /dev/null +++ b/shared/package-files/0a/0a9647884dc5dd830c2a219397b46fcd6a8a8c335676d6d27a8934f740f7a4e9/diagonal_scatter_native.h @@ -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 & diagonal_scatter_out(const at::Tensor & self, const at::Tensor & src, int64_t offset, int64_t dim1, int64_t dim2, at::Tensor & out); +TORCH_API at::Tensor diagonal_scatter(const at::Tensor & self, const at::Tensor & src, int64_t offset=0, int64_t dim1=0, int64_t dim2=1); +} // namespace native +} // namespace at diff --git a/shared/package-files/0a/0a979418a5874ec024f899efb5b0c18e95ef948f29721d685c83e3e3408d6367/_numdiff.py b/shared/package-files/0a/0a979418a5874ec024f899efb5b0c18e95ef948f29721d685c83e3e3408d6367/_numdiff.py new file mode 100644 index 0000000000000000000000000000000000000000..6f847a8ebdaec7df7428ca1267a024fb9212d824 --- /dev/null +++ b/shared/package-files/0a/0a979418a5874ec024f899efb5b0c18e95ef948f29721d685c83e3e3408d6367/_numdiff.py @@ -0,0 +1,785 @@ +"""Routines for numerical differentiation.""" +import functools +import numpy as np +from numpy.linalg import norm + +from scipy.sparse.linalg import LinearOperator +from ..sparse import issparse, csc_matrix, csr_matrix, coo_matrix, find +from ._group_columns import group_dense, group_sparse +from scipy._lib._array_api import array_namespace +from scipy._lib import array_api_extra as xpx + + +def _adjust_scheme_to_bounds(x0, h, num_steps, scheme, lb, ub): + """Adjust final difference scheme to the presence of bounds. + + Parameters + ---------- + x0 : ndarray, shape (n,) + Point at which we wish to estimate derivative. + h : ndarray, shape (n,) + Desired absolute finite difference steps. + num_steps : int + Number of `h` steps in one direction required to implement finite + difference scheme. For example, 2 means that we need to evaluate + f(x0 + 2 * h) or f(x0 - 2 * h) + scheme : {'1-sided', '2-sided'} + Whether steps in one or both directions are required. In other + words '1-sided' applies to forward and backward schemes, '2-sided' + applies to center schemes. + lb : ndarray, shape (n,) + Lower bounds on independent variables. + ub : ndarray, shape (n,) + Upper bounds on independent variables. + + Returns + ------- + h_adjusted : ndarray, shape (n,) + Adjusted absolute step sizes. Step size decreases only if a sign flip + or switching to one-sided scheme doesn't allow to take a full step. + use_one_sided : ndarray of bool, shape (n,) + Whether to switch to one-sided scheme. Informative only for + ``scheme='2-sided'``. + """ + if scheme == '1-sided': + use_one_sided = np.ones_like(h, dtype=bool) + elif scheme == '2-sided': + h = np.abs(h) + use_one_sided = np.zeros_like(h, dtype=bool) + else: + raise ValueError("`scheme` must be '1-sided' or '2-sided'.") + + if np.all((lb == -np.inf) & (ub == np.inf)): + return h, use_one_sided + + h_total = h * num_steps + h_adjusted = h.copy() + + lower_dist = x0 - lb + upper_dist = ub - x0 + + if scheme == '1-sided': + x = x0 + h_total + violated = (x < lb) | (x > ub) + fitting = np.abs(h_total) <= np.maximum(lower_dist, upper_dist) + h_adjusted[violated & fitting] *= -1 + + forward = (upper_dist >= lower_dist) & ~fitting + h_adjusted[forward] = upper_dist[forward] / num_steps + backward = (upper_dist < lower_dist) & ~fitting + h_adjusted[backward] = -lower_dist[backward] / num_steps + elif scheme == '2-sided': + central = (lower_dist >= h_total) & (upper_dist >= h_total) + + forward = (upper_dist >= lower_dist) & ~central + h_adjusted[forward] = np.minimum( + h[forward], 0.5 * upper_dist[forward] / num_steps) + use_one_sided[forward] = True + + backward = (upper_dist < lower_dist) & ~central + h_adjusted[backward] = -np.minimum( + h[backward], 0.5 * lower_dist[backward] / num_steps) + use_one_sided[backward] = True + + min_dist = np.minimum(upper_dist, lower_dist) / num_steps + adjusted_central = (~central & (np.abs(h_adjusted) <= min_dist)) + h_adjusted[adjusted_central] = min_dist[adjusted_central] + use_one_sided[adjusted_central] = False + + return h_adjusted, use_one_sided + + +@functools.lru_cache +def _eps_for_method(x0_dtype, f0_dtype, method): + """ + Calculates relative EPS step to use for a given data type + and numdiff step method. + + Progressively smaller steps are used for larger floating point types. + + Parameters + ---------- + f0_dtype: np.dtype + dtype of function evaluation + + x0_dtype: np.dtype + dtype of parameter vector + + method: {'2-point', '3-point', 'cs'} + + Returns + ------- + EPS: float + relative step size. May be np.float16, np.float32, np.float64 + + Notes + ----- + The default relative step will be np.float64. However, if x0 or f0 are + smaller floating point types (np.float16, np.float32), then the smallest + floating point type is chosen. + """ + # the default EPS value + EPS = np.finfo(np.float64).eps + + x0_is_fp = False + if np.issubdtype(x0_dtype, np.inexact): + # if you're a floating point type then over-ride the default EPS + EPS = np.finfo(x0_dtype).eps + x0_itemsize = np.dtype(x0_dtype).itemsize + x0_is_fp = True + + if np.issubdtype(f0_dtype, np.inexact): + f0_itemsize = np.dtype(f0_dtype).itemsize + # choose the smallest itemsize between x0 and f0 + if x0_is_fp and f0_itemsize < x0_itemsize: + EPS = np.finfo(f0_dtype).eps + + if method in ["2-point", "cs"]: + return EPS**0.5 + elif method in ["3-point"]: + return EPS**(1/3) + else: + raise RuntimeError("Unknown step method, should be one of " + "{'2-point', '3-point', 'cs'}") + + +def _compute_absolute_step(rel_step, x0, f0, method): + """ + Computes an absolute step from a relative step for finite difference + calculation. + + Parameters + ---------- + rel_step: None or array-like + Relative step for the finite difference calculation + x0 : np.ndarray + Parameter vector + f0 : np.ndarray or scalar + method : {'2-point', '3-point', 'cs'} + + Returns + ------- + h : float + The absolute step size + + Notes + ----- + `h` will always be np.float64. However, if `x0` or `f0` are + smaller floating point dtypes (e.g. np.float32), then the absolute + step size will be calculated from the smallest floating point size. + """ + # this is used instead of np.sign(x0) because we need + # sign_x0 to be 1 when x0 == 0. + sign_x0 = (x0 >= 0).astype(float) * 2 - 1 + + rstep = _eps_for_method(x0.dtype, f0.dtype, method) + + if rel_step is None: + abs_step = rstep * sign_x0 * np.maximum(1.0, np.abs(x0)) + else: + # User has requested specific relative steps. + # Don't multiply by max(1, abs(x0) because if x0 < 1 then their + # requested step is not used. + abs_step = rel_step * sign_x0 * np.abs(x0) + + # however we don't want an abs_step of 0, which can happen if + # rel_step is 0, or x0 is 0. Instead, substitute a realistic step + dx = ((x0 + abs_step) - x0) + abs_step = np.where(dx == 0, + rstep * sign_x0 * np.maximum(1.0, np.abs(x0)), + abs_step) + + return abs_step + + +def _prepare_bounds(bounds, x0): + """ + Prepares new-style bounds from a two-tuple specifying the lower and upper + limits for values in x0. If a value is not bound then the lower/upper bound + will be expected to be -np.inf/np.inf. + + Examples + -------- + >>> _prepare_bounds([(0, 1, 2), (1, 2, np.inf)], [0.5, 1.5, 2.5]) + (array([0., 1., 2.]), array([ 1., 2., inf])) + """ + lb, ub = (np.asarray(b, dtype=float) for b in bounds) + if lb.ndim == 0: + lb = np.resize(lb, x0.shape) + + if ub.ndim == 0: + ub = np.resize(ub, x0.shape) + + return lb, ub + + +def group_columns(A, order=0): + """Group columns of a 2-D matrix for sparse finite differencing [1]_. + + Two columns are in the same group if in each row at least one of them + has zero. A greedy sequential algorithm is used to construct groups. + + Parameters + ---------- + A : array_like or sparse matrix, shape (m, n) + Matrix of which to group columns. + order : int, iterable of int with shape (n,) or None + Permutation array which defines the order of columns enumeration. + If int or None, a random permutation is used with `order` used as + a random seed. Default is 0, that is use a random permutation but + guarantee repeatability. + + Returns + ------- + groups : ndarray of int, shape (n,) + Contains values from 0 to n_groups-1, where n_groups is the number + of found groups. Each value ``groups[i]`` is an index of a group to + which ith column assigned. The procedure was helpful only if + n_groups is significantly less than n. + + References + ---------- + .. [1] A. Curtis, M. J. D. Powell, and J. Reid, "On the estimation of + sparse Jacobian matrices", Journal of the Institute of Mathematics + and its Applications, 13 (1974), pp. 117-120. + """ + if issparse(A): + A = csc_matrix(A) + else: + A = np.atleast_2d(A) + A = (A != 0).astype(np.int32) + + if A.ndim != 2: + raise ValueError("`A` must be 2-dimensional.") + + m, n = A.shape + + if order is None or np.isscalar(order): + rng = np.random.RandomState(order) + order = rng.permutation(n) + else: + order = np.asarray(order) + if order.shape != (n,): + raise ValueError("`order` has incorrect shape.") + + A = A[:, order] + + if issparse(A): + groups = group_sparse(m, n, A.indices, A.indptr) + else: + groups = group_dense(m, n, A) + + groups[order] = groups.copy() + + return groups + + +def approx_derivative(fun, x0, method='3-point', rel_step=None, abs_step=None, + f0=None, bounds=(-np.inf, np.inf), sparsity=None, + as_linear_operator=False, args=(), kwargs=None): + """Compute finite difference approximation of the derivatives of a + vector-valued function. + + If a function maps from R^n to R^m, its derivatives form m-by-n matrix + called the Jacobian, where an element (i, j) is a partial derivative of + f[i] with respect to x[j]. + + Parameters + ---------- + fun : callable + Function of which to estimate the derivatives. The argument x + passed to this function is ndarray of shape (n,) (never a scalar + even if n=1). It must return 1-D array_like of shape (m,) or a scalar. + x0 : array_like of shape (n,) or float + Point at which to estimate the derivatives. Float will be converted + to a 1-D array. + method : {'3-point', '2-point', 'cs'}, optional + Finite difference method to use: + - '2-point' - use the first order accuracy forward or backward + difference. + - '3-point' - use central difference in interior points and the + second order accuracy forward or backward difference + near the boundary. + - 'cs' - use a complex-step finite difference scheme. This assumes + that the user function is real-valued and can be + analytically continued to the complex plane. Otherwise, + produces bogus results. + rel_step : None or array_like, optional + Relative step size to use. If None (default) the absolute step size is + computed as ``h = rel_step * sign(x0) * max(1, abs(x0))``, with + `rel_step` being selected automatically, see Notes. Otherwise + ``h = rel_step * sign(x0) * abs(x0)``. For ``method='3-point'`` the + sign of `h` is ignored. The calculated step size is possibly adjusted + to fit into the bounds. + abs_step : array_like, optional + Absolute step size to use, possibly adjusted to fit into the bounds. + For ``method='3-point'`` the sign of `abs_step` is ignored. By default + relative steps are used, only if ``abs_step is not None`` are absolute + steps used. + f0 : None or array_like, optional + If not None it is assumed to be equal to ``fun(x0)``, in this case + the ``fun(x0)`` is not called. Default is None. + bounds : tuple of array_like, optional + Lower and upper bounds on independent variables. Defaults to no bounds. + Each bound must match the size of `x0` or be a scalar, in the latter + case the bound will be the same for all variables. Use it to limit the + range of function evaluation. Bounds checking is not implemented + when `as_linear_operator` is True. + sparsity : {None, array_like, sparse matrix, 2-tuple}, optional + Defines a sparsity structure of the Jacobian matrix. If the Jacobian + matrix is known to have only few non-zero elements in each row, then + it's possible to estimate its several columns by a single function + evaluation [3]_. To perform such economic computations two ingredients + are required: + + * structure : array_like or sparse matrix of shape (m, n). A zero + element means that a corresponding element of the Jacobian + identically equals to zero. + * groups : array_like of shape (n,). A column grouping for a given + sparsity structure, use `group_columns` to obtain it. + + A single array or a sparse matrix is interpreted as a sparsity + structure, and groups are computed inside the function. A tuple is + interpreted as (structure, groups). If None (default), a standard + dense differencing will be used. + + Note, that sparse differencing makes sense only for large Jacobian + matrices where each row contains few non-zero elements. + as_linear_operator : bool, optional + When True the function returns an `scipy.sparse.linalg.LinearOperator`. + Otherwise it returns a dense array or a sparse matrix depending on + `sparsity`. The linear operator provides an efficient way of computing + ``J.dot(p)`` for any vector ``p`` of shape (n,), but does not allow + direct access to individual elements of the matrix. By default + `as_linear_operator` is False. + args, kwargs : tuple and dict, optional + Additional arguments passed to `fun`. Both empty by default. + The calling signature is ``fun(x, *args, **kwargs)``. + + Returns + ------- + J : {ndarray, sparse matrix, LinearOperator} + Finite difference approximation of the Jacobian matrix. + If `as_linear_operator` is True returns a LinearOperator + with shape (m, n). Otherwise it returns a dense array or sparse + matrix depending on how `sparsity` is defined. If `sparsity` + is None then a ndarray with shape (m, n) is returned. If + `sparsity` is not None returns a csr_matrix with shape (m, n). + For sparse matrices and linear operators it is always returned as + a 2-D structure, for ndarrays, if m=1 it is returned + as a 1-D gradient array with shape (n,). + + See Also + -------- + check_derivative : Check correctness of a function computing derivatives. + + Notes + ----- + If `rel_step` is not provided, it assigned as ``EPS**(1/s)``, where EPS is + determined from the smallest floating point dtype of `x0` or `fun(x0)`, + ``np.finfo(x0.dtype).eps``, s=2 for '2-point' method and + s=3 for '3-point' method. Such relative step approximately minimizes a sum + of truncation and round-off errors, see [1]_. Relative steps are used by + default. However, absolute steps are used when ``abs_step is not None``. + If any of the absolute or relative steps produces an indistinguishable + difference from the original `x0`, ``(x0 + dx) - x0 == 0``, then a + automatic step size is substituted for that particular entry. + + A finite difference scheme for '3-point' method is selected automatically. + The well-known central difference scheme is used for points sufficiently + far from the boundary, and 3-point forward or backward scheme is used for + points near the boundary. Both schemes have the second-order accuracy in + terms of Taylor expansion. Refer to [2]_ for the formulas of 3-point + forward and backward difference schemes. + + For dense differencing when m=1 Jacobian is returned with a shape (n,), + on the other hand when n=1 Jacobian is returned with a shape (m, 1). + Our motivation is the following: a) It handles a case of gradient + computation (m=1) in a conventional way. b) It clearly separates these two + different cases. b) In all cases np.atleast_2d can be called to get 2-D + Jacobian with correct dimensions. + + References + ---------- + .. [1] W. H. Press et. al. "Numerical Recipes. The Art of Scientific + Computing. 3rd edition", sec. 5.7. + + .. [2] A. Curtis, M. J. D. Powell, and J. Reid, "On the estimation of + sparse Jacobian matrices", Journal of the Institute of Mathematics + and its Applications, 13 (1974), pp. 117-120. + + .. [3] B. Fornberg, "Generation of Finite Difference Formulas on + Arbitrarily Spaced Grids", Mathematics of Computation 51, 1988. + + Examples + -------- + >>> import numpy as np + >>> from scipy.optimize._numdiff import approx_derivative + >>> + >>> def f(x, c1, c2): + ... return np.array([x[0] * np.sin(c1 * x[1]), + ... x[0] * np.cos(c2 * x[1])]) + ... + >>> x0 = np.array([1.0, 0.5 * np.pi]) + >>> approx_derivative(f, x0, args=(1, 2)) + array([[ 1., 0.], + [-1., 0.]]) + + Bounds can be used to limit the region of function evaluation. + In the example below we compute left and right derivative at point 1.0. + + >>> def g(x): + ... return x**2 if x >= 1 else x + ... + >>> x0 = 1.0 + >>> approx_derivative(g, x0, bounds=(-np.inf, 1.0)) + array([ 1.]) + >>> approx_derivative(g, x0, bounds=(1.0, np.inf)) + array([ 2.]) + """ + if method not in ['2-point', '3-point', 'cs']: + raise ValueError(f"Unknown method '{method}'. ") + + xp = array_namespace(x0) + _x = xpx.atleast_nd(xp.asarray(x0), ndim=1, xp=xp) + _dtype = xp.float64 + if xp.isdtype(_x.dtype, "real floating"): + _dtype = _x.dtype + + # promotes to floating + x0 = xp.astype(_x, _dtype) + + if x0.ndim > 1: + raise ValueError("`x0` must have at most 1 dimension.") + + lb, ub = _prepare_bounds(bounds, x0) + + if lb.shape != x0.shape or ub.shape != x0.shape: + raise ValueError("Inconsistent shapes between bounds and `x0`.") + + if as_linear_operator and not (np.all(np.isinf(lb)) + and np.all(np.isinf(ub))): + raise ValueError("Bounds not supported when " + "`as_linear_operator` is True.") + + if kwargs is None: + kwargs = {} + + def fun_wrapped(x): + # send user function same fp type as x0. (but only if cs is not being + # used + if xp.isdtype(x.dtype, "real floating"): + x = xp.astype(x, x0.dtype) + + f = np.atleast_1d(fun(x, *args, **kwargs)) + if f.ndim > 1: + raise RuntimeError("`fun` return value has " + "more than 1 dimension.") + return f + + if f0 is None: + f0 = fun_wrapped(x0) + else: + f0 = np.atleast_1d(f0) + if f0.ndim > 1: + raise ValueError("`f0` passed has more than 1 dimension.") + + if np.any((x0 < lb) | (x0 > ub)): + raise ValueError("`x0` violates bound constraints.") + + if as_linear_operator: + if rel_step is None: + rel_step = _eps_for_method(x0.dtype, f0.dtype, method) + + return _linear_operator_difference(fun_wrapped, x0, + f0, rel_step, method) + else: + # by default we use rel_step + if abs_step is None: + h = _compute_absolute_step(rel_step, x0, f0, method) + else: + # user specifies an absolute step + sign_x0 = (x0 >= 0).astype(float) * 2 - 1 + h = abs_step + + # cannot have a zero step. This might happen if x0 is very large + # or small. In which case fall back to relative step. + dx = ((x0 + h) - x0) + h = np.where(dx == 0, + _eps_for_method(x0.dtype, f0.dtype, method) * + sign_x0 * np.maximum(1.0, np.abs(x0)), + h) + + if method == '2-point': + h, use_one_sided = _adjust_scheme_to_bounds( + x0, h, 1, '1-sided', lb, ub) + elif method == '3-point': + h, use_one_sided = _adjust_scheme_to_bounds( + x0, h, 1, '2-sided', lb, ub) + elif method == 'cs': + use_one_sided = False + + if sparsity is None: + return _dense_difference(fun_wrapped, x0, f0, h, + use_one_sided, method) + else: + if not issparse(sparsity) and len(sparsity) == 2: + structure, groups = sparsity + else: + structure = sparsity + groups = group_columns(sparsity) + + if issparse(structure): + structure = csc_matrix(structure) + else: + structure = np.atleast_2d(structure) + + groups = np.atleast_1d(groups) + return _sparse_difference(fun_wrapped, x0, f0, h, + use_one_sided, structure, + groups, method) + + +def _linear_operator_difference(fun, x0, f0, h, method): + m = f0.size + n = x0.size + + if method == '2-point': + def matvec(p): + if np.array_equal(p, np.zeros_like(p)): + return np.zeros(m) + dx = h / norm(p) + x = x0 + dx*p + df = fun(x) - f0 + return df / dx + + elif method == '3-point': + def matvec(p): + if np.array_equal(p, np.zeros_like(p)): + return np.zeros(m) + dx = 2*h / norm(p) + x1 = x0 - (dx/2)*p + x2 = x0 + (dx/2)*p + f1 = fun(x1) + f2 = fun(x2) + df = f2 - f1 + return df / dx + + elif method == 'cs': + def matvec(p): + if np.array_equal(p, np.zeros_like(p)): + return np.zeros(m) + dx = h / norm(p) + x = x0 + dx*p*1.j + f1 = fun(x) + df = f1.imag + return df / dx + + else: + raise RuntimeError("Never be here.") + + return LinearOperator((m, n), matvec) + + +def _dense_difference(fun, x0, f0, h, use_one_sided, method): + m = f0.size + n = x0.size + J_transposed = np.empty((n, m)) + x1 = x0.copy() + x2 = x0.copy() + xc = x0.astype(complex, copy=True) + + for i in range(h.size): + if method == '2-point': + x1[i] += h[i] + dx = x1[i] - x0[i] # Recompute dx as exactly representable number. + df = fun(x1) - f0 + elif method == '3-point' and use_one_sided[i]: + x1[i] += h[i] + x2[i] += 2 * h[i] + dx = x2[i] - x0[i] + f1 = fun(x1) + f2 = fun(x2) + df = -3.0 * f0 + 4 * f1 - f2 + elif method == '3-point' and not use_one_sided[i]: + x1[i] -= h[i] + x2[i] += h[i] + dx = x2[i] - x1[i] + f1 = fun(x1) + f2 = fun(x2) + df = f2 - f1 + elif method == 'cs': + xc[i] += h[i] * 1.j + f1 = fun(xc) + df = f1.imag + dx = h[i] + else: + raise RuntimeError("Never be here.") + + J_transposed[i] = df / dx + x1[i] = x2[i] = xc[i] = x0[i] + + if m == 1: + J_transposed = np.ravel(J_transposed) + + return J_transposed.T + + +def _sparse_difference(fun, x0, f0, h, use_one_sided, + structure, groups, method): + m = f0.size + n = x0.size + row_indices = [] + col_indices = [] + fractions = [] + + n_groups = np.max(groups) + 1 + for group in range(n_groups): + # Perturb variables which are in the same group simultaneously. + e = np.equal(group, groups) + h_vec = h * e + if method == '2-point': + x = x0 + h_vec + dx = x - x0 + df = fun(x) - f0 + # The result is written to columns which correspond to perturbed + # variables. + cols, = np.nonzero(e) + # Find all non-zero elements in selected columns of Jacobian. + i, j, _ = find(structure[:, cols]) + # Restore column indices in the full array. + j = cols[j] + elif method == '3-point': + # Here we do conceptually the same but separate one-sided + # and two-sided schemes. + x1 = x0.copy() + x2 = x0.copy() + + mask_1 = use_one_sided & e + x1[mask_1] += h_vec[mask_1] + x2[mask_1] += 2 * h_vec[mask_1] + + mask_2 = ~use_one_sided & e + x1[mask_2] -= h_vec[mask_2] + x2[mask_2] += h_vec[mask_2] + + dx = np.zeros(n) + dx[mask_1] = x2[mask_1] - x0[mask_1] + dx[mask_2] = x2[mask_2] - x1[mask_2] + + f1 = fun(x1) + f2 = fun(x2) + + cols, = np.nonzero(e) + i, j, _ = find(structure[:, cols]) + j = cols[j] + + mask = use_one_sided[j] + df = np.empty(m) + + rows = i[mask] + df[rows] = -3 * f0[rows] + 4 * f1[rows] - f2[rows] + + rows = i[~mask] + df[rows] = f2[rows] - f1[rows] + elif method == 'cs': + f1 = fun(x0 + h_vec*1.j) + df = f1.imag + dx = h_vec + cols, = np.nonzero(e) + i, j, _ = find(structure[:, cols]) + j = cols[j] + else: + raise ValueError("Never be here.") + + # All that's left is to compute the fraction. We store i, j and + # fractions as separate arrays and later construct coo_matrix. + row_indices.append(i) + col_indices.append(j) + fractions.append(df[i] / dx[j]) + + row_indices = np.hstack(row_indices) + col_indices = np.hstack(col_indices) + fractions = np.hstack(fractions) + J = coo_matrix((fractions, (row_indices, col_indices)), shape=(m, n)) + return csr_matrix(J) + + +def check_derivative(fun, jac, x0, bounds=(-np.inf, np.inf), args=(), + kwargs=None): + """Check correctness of a function computing derivatives (Jacobian or + gradient) by comparison with a finite difference approximation. + + Parameters + ---------- + fun : callable + Function of which to estimate the derivatives. The argument x + passed to this function is ndarray of shape (n,) (never a scalar + even if n=1). It must return 1-D array_like of shape (m,) or a scalar. + jac : callable + Function which computes Jacobian matrix of `fun`. It must work with + argument x the same way as `fun`. The return value must be array_like + or sparse matrix with an appropriate shape. + x0 : array_like of shape (n,) or float + Point at which to estimate the derivatives. Float will be converted + to 1-D array. + bounds : 2-tuple of array_like, optional + Lower and upper bounds on independent variables. Defaults to no bounds. + Each bound must match the size of `x0` or be a scalar, in the latter + case the bound will be the same for all variables. Use it to limit the + range of function evaluation. + args, kwargs : tuple and dict, optional + Additional arguments passed to `fun` and `jac`. Both empty by default. + The calling signature is ``fun(x, *args, **kwargs)`` and the same + for `jac`. + + Returns + ------- + accuracy : float + The maximum among all relative errors for elements with absolute values + higher than 1 and absolute errors for elements with absolute values + less or equal than 1. If `accuracy` is on the order of 1e-6 or lower, + then it is likely that your `jac` implementation is correct. + + See Also + -------- + approx_derivative : Compute finite difference approximation of derivative. + + Examples + -------- + >>> import numpy as np + >>> from scipy.optimize._numdiff import check_derivative + >>> + >>> + >>> def f(x, c1, c2): + ... return np.array([x[0] * np.sin(c1 * x[1]), + ... x[0] * np.cos(c2 * x[1])]) + ... + >>> def jac(x, c1, c2): + ... return np.array([ + ... [np.sin(c1 * x[1]), c1 * x[0] * np.cos(c1 * x[1])], + ... [np.cos(c2 * x[1]), -c2 * x[0] * np.sin(c2 * x[1])] + ... ]) + ... + >>> + >>> x0 = np.array([1.0, 0.5 * np.pi]) + >>> check_derivative(f, jac, x0, args=(1, 2)) + 2.4492935982947064e-16 + """ + if kwargs is None: + kwargs = {} + J_to_test = jac(x0, *args, **kwargs) + if issparse(J_to_test): + J_diff = approx_derivative(fun, x0, bounds=bounds, sparsity=J_to_test, + args=args, kwargs=kwargs) + J_to_test = csr_matrix(J_to_test) + abs_err = J_to_test - J_diff + i, j, abs_err_data = find(abs_err) + J_diff_data = np.asarray(J_diff[i, j]).ravel() + return np.max(np.abs(abs_err_data) / + np.maximum(1, np.abs(J_diff_data))) + else: + J_diff = approx_derivative(fun, x0, bounds=bounds, + args=args, kwargs=kwargs) + abs_err = np.abs(J_to_test - J_diff) + return np.max(abs_err / np.maximum(1, np.abs(J_diff))) diff --git a/shared/package-files/0a/0a98bdb162968552c0547760a69bb2aeba5226ce360e33e106e7f7b49900a1a4/effects.py b/shared/package-files/0a/0a98bdb162968552c0547760a69bb2aeba5226ce360e33e106e7f7b49900a1a4/effects.py new file mode 100644 index 0000000000000000000000000000000000000000..08c49c964631e5794e2783c3351d5f10fae29a94 --- /dev/null +++ b/shared/package-files/0a/0a98bdb162968552c0547760a69bb2aeba5226ce360e33e106e7f7b49900a1a4/effects.py @@ -0,0 +1,204 @@ +from enum import Enum +from typing import Any, Dict, Optional, Tuple + +import torch +import torch.utils._pytree as pytree +from torch._C import DispatchKey +from torch._ops import HigherOrderOperator +from torch._subclasses.fake_tensor import FakeTensorMode +from torch.fx.experimental.proxy_tensor import ( + disable_proxy_modes_tracing, + ProxyTorchDispatchMode, + track_tensor_tree, +) + + +class _EffectType(Enum): + ORDERED = "Ordered" + + +SIDE_EFFECTS: Dict[torch._ops.OpOverload, _EffectType] = { + torch.ops.aten._print.default: _EffectType.ORDERED, +} + + +class WithEffects(HigherOrderOperator): + """ + with_effects(token, op, args, kwargs) -> (new_token, op_results) + + This HOP helps ensure ordering between side effectful ops like prints or ops + using torchbind objects. This is needed to ensure a traced graph from + AOTAutograd is functional so that future optimization passes do not reorder + these operators. This is done through threading "effect tokens" through the + graph to enforce data dependence between side effectful ops. + + The tokens are basically dummy values (torch.tensor([])). We create a token + per "effect type", which are enumerated in the _EffectType enum. + """ + + def __init__(self): + super().__init__("with_effects") + + def __call__( + self, + token, + op: torch._ops.OpOverload, + *args: Tuple[Any, ...], + **kwargs: Dict[str, Any], + ) -> Tuple[Any, ...]: + assert isinstance(op, torch._ops.OpOverload) + assert not has_aliasing(op), "Ops with aliasing is not supported" + assert has_effects(op, args, kwargs) + assert isinstance(kwargs, dict) + return super().__call__(token, op, *args, **kwargs) + + +with_effects = WithEffects() + + +def has_aliasing(op: torch._ops.OpOverload): + for arg in op._schema.arguments: + if arg.alias_info is not None: + return True + for arg in op._schema.returns: + if arg.alias_info is not None: + return True + return False + + +def has_effects(op, args, kwargs) -> bool: + return ( + isinstance(op, torch._ops.OpOverload) + and not has_aliasing(op) + and get_effect_key(op, args, kwargs) is not None + ) + + +def get_effect_key(op, args, kwargs) -> Optional[_EffectType]: + if op in SIDE_EFFECTS: + return SIDE_EFFECTS[op] + + for arg in args: + if isinstance(arg, torch.ScriptObject): + return _EffectType.ORDERED + + return None + + +@with_effects.py_impl(DispatchKey.CompositeExplicitAutograd) +def with_effects_dense( + token: torch.Tensor, + op: torch._ops.OpOverload, + *args: Tuple[Any, ...], + **kwargs: Dict[str, Any], +) -> Tuple[torch.Tensor, ...]: + out = op(*args, **kwargs) + new_token = torch.tensor([]) + if isinstance(out, tuple): + return (new_token, *out) + return (new_token, out) + + +@with_effects.py_impl(FakeTensorMode) +def with_effects_fake( + mode, + token: torch.Tensor, + op: torch._ops.OpOverload, + *args: Tuple[Any, ...], + **kwargs: Dict[str, Any], +) -> Tuple[torch.Tensor, ...]: + with mode: + result = with_effects_dense(token, op, *args, **kwargs) + return result + + +@with_effects.py_impl(ProxyTorchDispatchMode) +def with_effects_proxy( + mode, + token: torch.Tensor, + op: torch._ops.OpOverload, + *args: Tuple[Any, ...], + **kwargs: Dict[str, Any], +) -> Tuple[torch.Tensor, ...]: + if not mode.enable_tracing: + return with_effects(token, op, *args, **kwargs) + + with disable_proxy_modes_tracing(): + out = with_effects(token, op, *args, **kwargs) + + proxy_token = mode.tracer.unwrap_proxy(token) + proxy_args = pytree.tree_map(mode.tracer.unwrap_proxy, args) + proxy_kwargs = pytree.tree_map(mode.tracer.unwrap_proxy, kwargs) + + out_proxy = mode.tracer.create_proxy( + "call_function", + with_effects, + (proxy_token, op, *proxy_args), + proxy_kwargs, + ) + result = track_tensor_tree(out, out_proxy, constant=None, tracer=mode.tracer) + return result + + +with_effects.fallthrough(DispatchKey.AutogradCPU) +with_effects.fallthrough(DispatchKey.AutogradCUDA) + + +def handle_effects( + allow_token_discovery: bool, + tokens: Dict[_EffectType, torch.Tensor], + op: torch._ops.OpOverload, + args: Tuple[Any, ...], + kwargs: Dict[str, Any], +) -> Any: + """ + Args: + allow_token_discovery: Whether or not we are discovering tokens. If this + is true, we will create a token for every side effect type seen that + does not have a token assigned yet. If this is false, the tokens + should've all been created ahead of time, so we will error if there is + no token mapping to every effect type. + + tokens: Map of effect type to tokens. This is to chain operators of the + same effects together so that they do not get reordered in later + optimization passes. + """ + + # Get a token. We can't do `tokens.get(op, torch.tensor([]))` because + # this will create an empty tensor during proxy mode tracing if the token + # doesn't exist. But the tokens should always exist during proxy mode tracing. + key = get_effect_key(op, args, kwargs) + assert key is not None + if key not in tokens: + assert allow_token_discovery, f"Could not find a token for effect {key}" + tokens[key] = torch.tensor([]) + token = tokens[key] + + from torch._subclasses.functional_tensor import PythonFunctionalizeAPI + + ctx = PythonFunctionalizeAPI() + + unwrapped_token = ctx.unwrap_tensors([token])[0] # type: ignore[arg-type] + unwrapped_args = ctx.unwrap_tensors(args) # type: ignore[arg-type] + unwrapped_kwargs = ctx.unwrap_tensors(kwargs) # type: ignore[arg-type] + with ctx.redispatch_to_next(): + (new_token, *unwrapped_outs) = with_effects( + unwrapped_token, op, *unwrapped_args, **unwrapped_kwargs # type: ignore[arg-type] + ) + + if len(op._schema.returns) == 0: + assert unwrapped_outs[0] is None + unwrapped_outs = None # type: ignore[assignment] + elif len(op._schema.returns) == 1: + assert len(unwrapped_outs) == 1 + unwrapped_outs = unwrapped_outs[0] + else: + assert len(unwrapped_outs) == len(op._schema.returns) + + # Add the newly created token into the tokens map for a following call to + # use this token. + wrapped_token = ctx.wrap_tensors(new_token) + assert isinstance(wrapped_token, torch.Tensor) + tokens[key] = wrapped_token + + return ctx.wrap_tensors(unwrapped_outs) # type: ignore[arg-type] diff --git a/shared/package-files/0a/0a993205e79ce670702788be18e5eb2420d1330dc83fdb478e0ec1979dacbf09/convolution_overrideable_compositeexplicitautograd_dispatch.h b/shared/package-files/0a/0a993205e79ce670702788be18e5eb2420d1330dc83fdb478e0ec1979dacbf09/convolution_overrideable_compositeexplicitautograd_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..8f411326d9420294f0ba6aca2e038504182522bc --- /dev/null +++ b/shared/package-files/0a/0a993205e79ce670702788be18e5eb2420d1330dc83fdb478e0ec1979dacbf09/convolution_overrideable_compositeexplicitautograd_dispatch.h @@ -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 convolution_overrideable(const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, bool transposed, at::IntArrayRef output_padding, int64_t groups); +TORCH_API at::Tensor convolution_overrideable_symint(const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias, c10::SymIntArrayRef stride, c10::SymIntArrayRef padding, c10::SymIntArrayRef dilation, bool transposed, c10::SymIntArrayRef output_padding, c10::SymInt groups); +TORCH_API at::Tensor & convolution_overrideable_out(at::Tensor & out, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, bool transposed, at::IntArrayRef output_padding, int64_t groups); +TORCH_API at::Tensor & convolution_overrideable_outf(const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, bool transposed, at::IntArrayRef output_padding, int64_t groups, at::Tensor & out); +TORCH_API at::Tensor & convolution_overrideable_symint_out(at::Tensor & out, const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias, c10::SymIntArrayRef stride, c10::SymIntArrayRef padding, c10::SymIntArrayRef dilation, bool transposed, c10::SymIntArrayRef output_padding, c10::SymInt groups); +TORCH_API at::Tensor & convolution_overrideable_symint_outf(const at::Tensor & input, const at::Tensor & weight, const c10::optional & bias, c10::SymIntArrayRef stride, c10::SymIntArrayRef padding, c10::SymIntArrayRef dilation, bool transposed, c10::SymIntArrayRef output_padding, c10::SymInt groups, at::Tensor & out); + +} // namespace compositeexplicitautograd +} // namespace at diff --git a/shared/package-files/0a/0a9967c34e8a8bde98ff87f1e81bbb9545e3c6821f5fbb4d25ab26f523b3e704/test_mix.py b/shared/package-files/0a/0a9967c34e8a8bde98ff87f1e81bbb9545e3c6821f5fbb4d25ab26f523b3e704/test_mix.py new file mode 100644 index 0000000000000000000000000000000000000000..4334d9b144a5ddaad938f195f0276e0e8993aa35 --- /dev/null +++ b/shared/package-files/0a/0a9967c34e8a8bde98ff87f1e81bbb9545e3c6821f5fbb4d25ab26f523b3e704/test_mix.py @@ -0,0 +1,82 @@ +from sympy.concrete.summations import Sum +from sympy.core.add import Add +from sympy.core.mul import Mul +from sympy.core.numbers import (Integer, oo, pi) +from sympy.core.power import Pow +from sympy.core.relational import (Eq, Ne) +from sympy.core.symbol import (Dummy, Symbol, symbols) +from sympy.functions.combinatorial.factorials import factorial +from sympy.functions.elementary.exponential import exp +from sympy.functions.elementary.miscellaneous import sqrt +from sympy.functions.elementary.piecewise import Piecewise +from sympy.functions.special.delta_functions import DiracDelta +from sympy.functions.special.gamma_functions import gamma +from sympy.integrals.integrals import Integral +from sympy.simplify.simplify import simplify +from sympy.tensor.indexed import (Indexed, IndexedBase) +from sympy.functions.elementary.piecewise import ExprCondPair +from sympy.stats import (Poisson, Beta, Exponential, P, + Multinomial, MultivariateBeta) +from sympy.stats.crv_types import Normal +from sympy.stats.drv_types import PoissonDistribution +from sympy.stats.compound_rv import CompoundPSpace, CompoundDistribution +from sympy.stats.joint_rv import MarginalDistribution +from sympy.stats.rv import pspace, density +from sympy.testing.pytest import ignore_warnings + +def test_density(): + x = Symbol('x') + l = Symbol('l', positive=True) + rate = Beta(l, 2, 3) + X = Poisson(x, rate) + assert isinstance(pspace(X), CompoundPSpace) + assert density(X, Eq(rate, rate.symbol)) == PoissonDistribution(l) + N1 = Normal('N1', 0, 1) + N2 = Normal('N2', N1, 2) + assert density(N2)(0).doit() == sqrt(10)/(10*sqrt(pi)) + assert simplify(density(N2, Eq(N1, 1))(x)) == \ + sqrt(2)*exp(-(x - 1)**2/8)/(4*sqrt(pi)) + assert simplify(density(N2)(x)) == sqrt(10)*exp(-x**2/10)/(10*sqrt(pi)) + +def test_MarginalDistribution(): + a1, p1, p2 = symbols('a1 p1 p2', positive=True) + C = Multinomial('C', 2, p1, p2) + B = MultivariateBeta('B', a1, C[0]) + MGR = MarginalDistribution(B, (C[0],)) + mgrc = Mul(Symbol('B'), Piecewise(ExprCondPair(Mul(Integer(2), + Pow(Symbol('p1', positive=True), Indexed(IndexedBase(Symbol('C')), + Integer(0))), Pow(Symbol('p2', positive=True), + Indexed(IndexedBase(Symbol('C')), Integer(1))), + Pow(factorial(Indexed(IndexedBase(Symbol('C')), Integer(0))), Integer(-1)), + Pow(factorial(Indexed(IndexedBase(Symbol('C')), Integer(1))), Integer(-1))), + Eq(Add(Indexed(IndexedBase(Symbol('C')), Integer(0)), + Indexed(IndexedBase(Symbol('C')), Integer(1))), Integer(2))), + ExprCondPair(Integer(0), True)), Pow(gamma(Symbol('a1', positive=True)), + Integer(-1)), gamma(Add(Symbol('a1', positive=True), + Indexed(IndexedBase(Symbol('C')), Integer(0)))), + Pow(gamma(Indexed(IndexedBase(Symbol('C')), Integer(0))), Integer(-1)), + Pow(Indexed(IndexedBase(Symbol('B')), Integer(0)), + Add(Symbol('a1', positive=True), Integer(-1))), + Pow(Indexed(IndexedBase(Symbol('B')), Integer(1)), + Add(Indexed(IndexedBase(Symbol('C')), Integer(0)), Integer(-1)))) + assert MGR(C) == mgrc + +def test_compound_distribution(): + Y = Poisson('Y', 1) + Z = Poisson('Z', Y) + assert isinstance(pspace(Z), CompoundPSpace) + assert isinstance(pspace(Z).distribution, CompoundDistribution) + assert Z.pspace.distribution.pdf(1).doit() == exp(-2)*exp(exp(-1)) + +def test_mix_expression(): + Y, E = Poisson('Y', 1), Exponential('E', 1) + k = Dummy('k') + expr1 = Integral(Sum(exp(-1)*Integral(exp(-k)*DiracDelta(k - 2), (k, 0, oo) + )/factorial(k), (k, 0, oo)), (k, -oo, 0)) + expr2 = Integral(Sum(exp(-1)*Integral(exp(-k)*DiracDelta(k - 2), (k, 0, oo) + )/factorial(k), (k, 0, oo)), (k, 0, oo)) + assert P(Eq(Y + E, 1)) == 0 + assert P(Ne(Y + E, 2)) == 1 + with ignore_warnings(UserWarning): ### TODO: Restore tests once warnings are removed + assert P(E + Y < 2, evaluate=False).rewrite(Integral).dummy_eq(expr1) + assert P(E + Y > 2, evaluate=False).rewrite(Integral).dummy_eq(expr2) diff --git a/shared/package-files/0a/0a9a76dc9b1ca49ec143655cf33e3a4ec0f1db568ad0756daf06f333f150fb17/view_compositeexplicitautograd_dispatch.h b/shared/package-files/0a/0a9a76dc9b1ca49ec143655cf33e3a4ec0f1db568ad0756daf06f333f150fb17/view_compositeexplicitautograd_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..ba8e92f6a12174ee3fbf24376b6d1b8ad81951da --- /dev/null +++ b/shared/package-files/0a/0a9a76dc9b1ca49ec143655cf33e3a4ec0f1db568ad0756daf06f333f150fb17/view_compositeexplicitautograd_dispatch.h @@ -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 view(const at::Tensor & self, at::ScalarType dtype); + +} // namespace compositeexplicitautograd +} // namespace at diff --git a/shared/package-files/0a/0a9f514e95bbda083c5c2ff7fbd7424e52d8af7e76a417c145903c6015af3a86/config_compiler.py b/shared/package-files/0a/0a9f514e95bbda083c5c2ff7fbd7424e52d8af7e76a417c145903c6015af3a86/config_compiler.py new file mode 100644 index 0000000000000000000000000000000000000000..44265bfcce8916ddd3e07130576b4b30ba74695d --- /dev/null +++ b/shared/package-files/0a/0a9f514e95bbda083c5c2ff7fbd7424e52d8af7e76a417c145903c6015af3a86/config_compiler.py @@ -0,0 +1,126 @@ +from distutils.core import Command +from numpy.distutils import log + +#XXX: Linker flags + +def show_fortran_compilers(_cache=None): + # Using cache to prevent infinite recursion. + if _cache: + return + elif _cache is None: + _cache = [] + _cache.append(1) + from numpy.distutils.fcompiler import show_fcompilers + import distutils.core + dist = distutils.core._setup_distribution + show_fcompilers(dist) + +class config_fc(Command): + """ Distutils command to hold user specified options + to Fortran compilers. + + config_fc command is used by the FCompiler.customize() method. + """ + + description = "specify Fortran 77/Fortran 90 compiler information" + + user_options = [ + ('fcompiler=', None, "specify Fortran compiler type"), + ('f77exec=', None, "specify F77 compiler command"), + ('f90exec=', None, "specify F90 compiler command"), + ('f77flags=', None, "specify F77 compiler flags"), + ('f90flags=', None, "specify F90 compiler flags"), + ('opt=', None, "specify optimization flags"), + ('arch=', None, "specify architecture specific optimization flags"), + ('debug', 'g', "compile with debugging information"), + ('noopt', None, "compile without optimization"), + ('noarch', None, "compile without arch-dependent optimization"), + ] + + help_options = [ + ('help-fcompiler', None, "list available Fortran compilers", + show_fortran_compilers), + ] + + boolean_options = ['debug', 'noopt', 'noarch'] + + def initialize_options(self): + self.fcompiler = None + self.f77exec = None + self.f90exec = None + self.f77flags = None + self.f90flags = None + self.opt = None + self.arch = None + self.debug = None + self.noopt = None + self.noarch = None + + def finalize_options(self): + log.info('unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options') + build_clib = self.get_finalized_command('build_clib') + build_ext = self.get_finalized_command('build_ext') + config = self.get_finalized_command('config') + build = self.get_finalized_command('build') + cmd_list = [self, config, build_clib, build_ext, build] + for a in ['fcompiler']: + l = [] + for c in cmd_list: + v = getattr(c, a) + if v is not None: + if not isinstance(v, str): v = v.compiler_type + if v not in l: l.append(v) + if not l: v1 = None + else: v1 = l[0] + if len(l)>1: + log.warn(' commands have different --%s options: %s'\ + ', using first in list as default' % (a, l)) + if v1: + for c in cmd_list: + if getattr(c, a) is None: setattr(c, a, v1) + + def run(self): + # Do nothing. + return + +class config_cc(Command): + """ Distutils command to hold user specified options + to C/C++ compilers. + """ + + description = "specify C/C++ compiler information" + + user_options = [ + ('compiler=', None, "specify C/C++ compiler type"), + ] + + def initialize_options(self): + self.compiler = None + + def finalize_options(self): + log.info('unifing config_cc, config, build_clib, build_ext, build commands --compiler options') + build_clib = self.get_finalized_command('build_clib') + build_ext = self.get_finalized_command('build_ext') + config = self.get_finalized_command('config') + build = self.get_finalized_command('build') + cmd_list = [self, config, build_clib, build_ext, build] + for a in ['compiler']: + l = [] + for c in cmd_list: + v = getattr(c, a) + if v is not None: + if not isinstance(v, str): v = v.compiler_type + if v not in l: l.append(v) + if not l: v1 = None + else: v1 = l[0] + if len(l)>1: + log.warn(' commands have different --%s options: %s'\ + ', using first in list as default' % (a, l)) + if v1: + for c in cmd_list: + if getattr(c, a) is None: setattr(c, a, v1) + return + + def run(self): + # Do nothing. + return diff --git a/shared/package-files/0a/0a9fedc3da3876b02ad0f06f7ee1b3545eebddf96374e9fea60bf0658b342faa/igamma_ops.h b/shared/package-files/0a/0a9fedc3da3876b02ad0f06f7ee1b3545eebddf96374e9fea60bf0658b342faa/igamma_ops.h new file mode 100644 index 0000000000000000000000000000000000000000..f6a35eabdf4b0273ee49d686ae0fa2620639b073 --- /dev/null +++ b/shared/package-files/0a/0a9fedc3da3876b02ad0f06f7ee1b3545eebddf96374e9fea60bf0658b342faa/igamma_ops.h @@ -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 igamma_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::igamma") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "out") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "igamma.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 igamma { + 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::igamma") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "igamma(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 igamma_ { + 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::igamma_") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "igamma_(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/0a/0aa0030ccb52de9ab62448f515d82c4b82590686a277683ec3942bee2d4831e0/graph_executor_impl.h b/shared/package-files/0a/0aa0030ccb52de9ab62448f515d82c4b82590686a277683ec3942bee2d4831e0/graph_executor_impl.h new file mode 100644 index 0000000000000000000000000000000000000000..3aae2eb85279664b9c5a1a10e0c66669ad95b9f0 --- /dev/null +++ b/shared/package-files/0a/0aa0030ccb52de9ab62448f515d82c4b82590686a277683ec3942bee2d4831e0/graph_executor_impl.h @@ -0,0 +1,113 @@ +#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 +#include + +namespace torch::jit { + +void packGradient(const Gradient& gradient, Node* dnode); +bool needsGradient(const std::shared_ptr& graph); +void runOptimization( + std::shared_ptr& graph, + bool unroll_non_constant_loops = true, + bool const_prop_user_classes = true); +void runNondiffOptimization( + std::shared_ptr& graph, + bool strict_fuser_check = false); +void debugSetAutodiffSubgraphInlining(bool state); +bool TORCH_API getAutodiffSubgraphInlining(); + +void debugSetFusionGroupInlining(bool state); +bool getFusionGroupInlining(); + +// Tunable parameters for deciding when to create/keep subgraphs of +// differentiable code +const size_t autodiffSubgraphNodeThreshold = 2; +const size_t autodiffSubgraphInlineThreshold = 5; + +// a Graph can be created via tracing, or via a language-based frontend +// GraphExecutor runs it. It can run the same graph on many different sizes +// and different requires_grad states, and handles specializations for each +// situation. GraphExecutor is completely unaware of tracing or module +// parameters to keep the tracing concerns separated. +struct GraphExecutorImplBase { + static std::shared_ptr prepareGraph( + const std::shared_ptr& graph) { + auto copy = graph->copy(); + EraseShapeInformation(copy); + return copy; + } + + GraphExecutorImplBase( + const std::shared_ptr& graph, + std::string function_name) + : graph(prepareGraph(graph)), + function_name_(std::move(function_name)), + num_inputs(this->graph->inputs().size()), + num_outputs(this->graph->outputs().size()) {} + + // entry point where execution begins + void run(Stack& stack); + c10::intrusive_ptr runAsync( + Stack& stack, + TaskLauncher taskLauncher = at::launch); + + virtual const ExecutionPlan& getPlanFor( + Stack& stack, + c10::optional remaining_bailout_depth = c10::nullopt) = 0; + virtual GraphExecutorState getDebugState() = 0; + virtual ~GraphExecutorImplBase() = default; + + virtual bool isOptimized() const { + return false; + } + + protected: + friend struct GraphExecutor; + + // The unoptimized starting graph. This field is effectively const, but we + // can't make it so because Graph::copy() is not const (and making it const is + // not that easy at this point). + // NOLINTNEXTLINE(cppcoreguidelines-non-private-member-variables-in-classes) + std::shared_ptr graph; + // NOLINTNEXTLINE(cppcoreguidelines-non-private-member-variables-in-classes) + std::string function_name_; + + // If false, we'll run the graph as we get it, without any optimizations. + // Useful for debugging. + // NOLINTNEXTLINE(cppcoreguidelines-non-private-member-variables-in-classes) + const size_t num_inputs; + // NOLINTNEXTLINE(cppcoreguidelines-non-private-member-variables-in-classes) + const size_t num_outputs; + + // GraphExecutors can be accessed from multiple threads, so this thread needs + // to be held every time we access the fallback or plan_cache. + // NOLINTNEXTLINE(cppcoreguidelines-non-private-member-variables-in-classes) + std::mutex compile_mutex; +}; + +} // namespace torch::jit diff --git a/shared/package-files/0a/0aa45dc9e5c5844ef355d90907e4f156a2b75cfc8136fb4e01f6fafdad151a03/test_asof.py b/shared/package-files/0a/0aa45dc9e5c5844ef355d90907e4f156a2b75cfc8136fb4e01f6fafdad151a03/test_asof.py new file mode 100644 index 0000000000000000000000000000000000000000..2acc2921e5efc089b1dd4ed7aa9a6cebc1a3d0fe --- /dev/null +++ b/shared/package-files/0a/0aa45dc9e5c5844ef355d90907e4f156a2b75cfc8136fb4e01f6fafdad151a03/test_asof.py @@ -0,0 +1,205 @@ +import numpy as np +import pytest + +from pandas._libs.tslibs import IncompatibleFrequency + +from pandas import ( + DatetimeIndex, + PeriodIndex, + Series, + Timestamp, + date_range, + isna, + notna, + offsets, + period_range, +) +import pandas._testing as tm + + +class TestSeriesAsof: + def test_asof_nanosecond_index_access(self): + ts = Timestamp("20130101").as_unit("ns")._value + dti = DatetimeIndex([ts + 50 + i for i in range(100)]) + ser = Series(np.random.default_rng(2).standard_normal(100), index=dti) + + first_value = ser.asof(ser.index[0]) + + # GH#46903 previously incorrectly was "day" + assert dti.resolution == "nanosecond" + + # this used to not work bc parsing was done by dateutil that didn't + # handle nanoseconds + assert first_value == ser["2013-01-01 00:00:00.000000050"] + + expected_ts = np.datetime64("2013-01-01 00:00:00.000000050", "ns") + assert first_value == ser[Timestamp(expected_ts)] + + def test_basic(self): + # array or list or dates + N = 50 + rng = date_range("1/1/1990", periods=N, freq="53s") + ts = Series(np.random.default_rng(2).standard_normal(N), index=rng) + ts.iloc[15:30] = np.nan + dates = date_range("1/1/1990", periods=N * 3, freq="25s") + + result = ts.asof(dates) + assert notna(result).all() + lb = ts.index[14] + ub = ts.index[30] + + result = ts.asof(list(dates)) + assert notna(result).all() + lb = ts.index[14] + ub = ts.index[30] + + mask = (result.index >= lb) & (result.index < ub) + rs = result[mask] + assert (rs == ts[lb]).all() + + val = result[result.index[result.index >= ub][0]] + assert ts[ub] == val + + def test_scalar(self): + N = 30 + rng = date_range("1/1/1990", periods=N, freq="53s") + # Explicit cast to float avoid implicit cast when setting nan + ts = Series(np.arange(N), index=rng, dtype="float") + ts.iloc[5:10] = np.nan + ts.iloc[15:20] = np.nan + + val1 = ts.asof(ts.index[7]) + val2 = ts.asof(ts.index[19]) + + assert val1 == ts.iloc[4] + assert val2 == ts.iloc[14] + + # accepts strings + val1 = ts.asof(str(ts.index[7])) + assert val1 == ts.iloc[4] + + # in there + result = ts.asof(ts.index[3]) + assert result == ts.iloc[3] + + # no as of value + d = ts.index[0] - offsets.BDay() + assert np.isnan(ts.asof(d)) + + def test_with_nan(self): + # basic asof test + rng = date_range("1/1/2000", "1/2/2000", freq="4h") + s = Series(np.arange(len(rng)), index=rng) + r = s.resample("2h").mean() + + result = r.asof(r.index) + expected = Series( + [0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6.0], + index=date_range("1/1/2000", "1/2/2000", freq="2h"), + ) + tm.assert_series_equal(result, expected) + + r.iloc[3:5] = np.nan + result = r.asof(r.index) + expected = Series( + [0, 0, 1, 1, 1, 1, 3, 3, 4, 4, 5, 5, 6.0], + index=date_range("1/1/2000", "1/2/2000", freq="2h"), + ) + tm.assert_series_equal(result, expected) + + r.iloc[-3:] = np.nan + result = r.asof(r.index) + expected = Series( + [0, 0, 1, 1, 1, 1, 3, 3, 4, 4, 4, 4, 4.0], + index=date_range("1/1/2000", "1/2/2000", freq="2h"), + ) + tm.assert_series_equal(result, expected) + + def test_periodindex(self): + # array or list or dates + N = 50 + rng = period_range("1/1/1990", periods=N, freq="h") + ts = Series(np.random.default_rng(2).standard_normal(N), index=rng) + ts.iloc[15:30] = np.nan + dates = date_range("1/1/1990", periods=N * 3, freq="37min") + + result = ts.asof(dates) + assert notna(result).all() + lb = ts.index[14] + ub = ts.index[30] + + result = ts.asof(list(dates)) + assert notna(result).all() + lb = ts.index[14] + ub = ts.index[30] + + pix = PeriodIndex(result.index.values, freq="h") + mask = (pix >= lb) & (pix < ub) + rs = result[mask] + assert (rs == ts[lb]).all() + + ts.iloc[5:10] = np.nan + ts.iloc[15:20] = np.nan + + val1 = ts.asof(ts.index[7]) + val2 = ts.asof(ts.index[19]) + + assert val1 == ts.iloc[4] + assert val2 == ts.iloc[14] + + # accepts strings + val1 = ts.asof(str(ts.index[7])) + assert val1 == ts.iloc[4] + + # in there + assert ts.asof(ts.index[3]) == ts.iloc[3] + + # no as of value + d = ts.index[0].to_timestamp() - offsets.BDay() + assert isna(ts.asof(d)) + + # Mismatched freq + msg = "Input has different freq" + with pytest.raises(IncompatibleFrequency, match=msg): + ts.asof(rng.asfreq("D")) + + def test_errors(self): + s = Series( + [1, 2, 3], + index=[Timestamp("20130101"), Timestamp("20130103"), Timestamp("20130102")], + ) + + # non-monotonic + assert not s.index.is_monotonic_increasing + with pytest.raises(ValueError, match="requires a sorted index"): + s.asof(s.index[0]) + + # subset with Series + N = 10 + rng = date_range("1/1/1990", periods=N, freq="53s") + s = Series(np.random.default_rng(2).standard_normal(N), index=rng) + with pytest.raises(ValueError, match="not valid for Series"): + s.asof(s.index[0], subset="foo") + + def test_all_nans(self): + # GH 15713 + # series is all nans + + # testing non-default indexes + N = 50 + rng = date_range("1/1/1990", periods=N, freq="53s") + + dates = date_range("1/1/1990", periods=N * 3, freq="25s") + result = Series(np.nan, index=rng).asof(dates) + expected = Series(np.nan, index=dates) + tm.assert_series_equal(result, expected) + + # testing scalar input + date = date_range("1/1/1990", periods=N * 3, freq="25s")[0] + result = Series(np.nan, index=rng).asof(date) + assert isna(result) + + # test name is propagated + result = Series(np.nan, index=[1, 2, 3, 4], name="test").asof([4, 5]) + expected = Series(np.nan, index=[4, 5], name="test") + tm.assert_series_equal(result, expected) diff --git a/shared/package-files/0a/0aa65ed63c7c8690d3889830a4e4593ceacc327a74e1b21f82d96b831966531e/unflatten_dense_tensors.h b/shared/package-files/0a/0aa65ed63c7c8690d3889830a4e4593ceacc327a74e1b21f82d96b831966531e/unflatten_dense_tensors.h new file mode 100644 index 0000000000000000000000000000000000000000..2effb8be1dea6ead7f09c750ddf653037d41cb92 --- /dev/null +++ b/shared/package-files/0a/0aa65ed63c7c8690d3889830a4e4593ceacc327a74e1b21f82d96b831966531e/unflatten_dense_tensors.h @@ -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::unflatten_dense_tensors(Tensor flat, Tensor[] tensors) -> Tensor[] +inline ::std::vector unflatten_dense_tensors(const at::Tensor & flat, at::TensorList tensors) { + return at::_ops::unflatten_dense_tensors::call(flat, tensors); +} + +} diff --git a/shared/package-files/0a/0aa6d405612ee2a3e5143e7966ebc79bf0b4c55139290dd7b637536b18e2ef2a/_testimportmultiple.cpython-310-x86_64-linux-gnu.so b/shared/package-files/0a/0aa6d405612ee2a3e5143e7966ebc79bf0b4c55139290dd7b637536b18e2ef2a/_testimportmultiple.cpython-310-x86_64-linux-gnu.so new file mode 100644 index 0000000000000000000000000000000000000000..e91b8a14a97c971bca378b7691ee3ecd23c54873 Binary files /dev/null and b/shared/package-files/0a/0aa6d405612ee2a3e5143e7966ebc79bf0b4c55139290dd7b637536b18e2ef2a/_testimportmultiple.cpython-310-x86_64-linux-gnu.so differ diff --git a/shared/package-files/0a/0aa9b558cbbd45dc5391a4de58c5de156997f8be551eb92730c9b59d18bd15b0/_upsample_bicubic2d_aa_backward_meta.h b/shared/package-files/0a/0aa9b558cbbd45dc5391a4de58c5de156997f8be551eb92730c9b59d18bd15b0/_upsample_bicubic2d_aa_backward_meta.h new file mode 100644 index 0000000000000000000000000000000000000000..e6f3381db5d3853e2d1760ceb95af247e5e45bb9 --- /dev/null +++ b/shared/package-files/0a/0aa9b558cbbd45dc5391a4de58c5de156997f8be551eb92730c9b59d18bd15b0/_upsample_bicubic2d_aa_backward_meta.h @@ -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__upsample_bicubic2d_aa_backward : public at::impl::MetaBase { + + + void meta(const at::Tensor & grad_output, at::ArrayRef output_size, at::ArrayRef input_size, bool align_corners, c10::optional scales_h, c10::optional scales_w); +}; + +} // namespace native +} // namespace at diff --git a/shared/package-files/0a/0aaa146b0e8ef46a9f8ae4a00bcf400c3ff17a172265e1f363d686cccb8bb27b/NCCLUtils.hpp b/shared/package-files/0a/0aaa146b0e8ef46a9f8ae4a00bcf400c3ff17a172265e1f363d686cccb8bb27b/NCCLUtils.hpp new file mode 100644 index 0000000000000000000000000000000000000000..15720fcaf140f20cdfcded9d7c36d3df4a543fb7 --- /dev/null +++ b/shared/package-files/0a/0aaa146b0e8ef46a9f8ae4a00bcf400c3ff17a172265e1f363d686cccb8bb27b/NCCLUtils.hpp @@ -0,0 +1,529 @@ +#pragma once + +#ifdef USE_C10D_NCCL + +#include +#include + +#include +#include +#include + +#include +#include +#include +#include + +#if defined(NCCL_MAJOR) && (NCCL_MAJOR == 2) && defined(NCCL_MINOR) && \ + (NCCL_MINOR >= 14) +#define NCCL_HAS_COMM_NONBLOCKING +#endif + +#if defined(NCCL_MAJOR) && (NCCL_MAJOR == 2) && defined(NCCL_MINOR) && \ + (NCCL_MINOR >= 18) +#define NCCL_HAS_COMM_SPLIT +#endif + +// ncclGetLastError() is enabled only for NCCL versions 2.13+ +// ncclRemoteError only exists in NCCL versions 2.13+ +#if defined(NCCL_MAJOR) && (NCCL_MAJOR == 2) && defined(NCCL_MINOR) && \ + (NCCL_MINOR >= 13) +#define ENABLE_NCCL_GET_LAST_ERROR +#define NCCL_REMOTE_ERROR +#elif defined(NCCL_MAJOR) && (NCCL_MAJOR >= 3) +#define ENABLE_NCCL_GET_LAST_ERROR +#define NCCL_REMOTE_ERROR +#endif + +// Error checking is enabled only for NCCL versions 2.4+ since ncclCommAbort() +// and ncclCommGetAsyncError() are not supported in earlier versions. +#if defined(NCCL_MAJOR) && (NCCL_MAJOR == 2) && defined(NCCL_MINOR) && \ + (NCCL_MINOR >= 4) +#define ENABLE_NCCL_ERROR_CHECKING +#elif defined(NCCL_MAJOR) && (NCCL_MAJOR >= 3) +#define ENABLE_NCCL_ERROR_CHECKING +#endif + +// P2P is enabled only for NCCL versions 2.7+ since ncclSend() +// and ncclRecv() are not supported in earlier versions. +#if defined(NCCL_MAJOR) && (NCCL_MAJOR == 2) && defined(NCCL_MINOR) && \ + (NCCL_MINOR >= 7) +#define ENABLE_NCCL_P2P_SUPPORT +#elif defined(NCCL_MAJOR) && (NCCL_MAJOR >= 3) +#define ENABLE_NCCL_P2P_SUPPORT +#endif + +#if defined(NCCL_MAJOR) && (NCCL_MAJOR == 2) && defined(NCCL_MINOR) && \ + (NCCL_MINOR >= 11) +#define ENABLE_NCCL_PREMUL_SUM_SUPPORT +#elif defined(NCCL_MAJOR) && (NCCL_MAJOR >= 3) +#define ENABLE_NCCL_PREMUL_SUM_SUPPORT +#endif + +#if defined(NCCL_MAJOR) && (NCCL_MAJOR == 2) && defined(NCCL_MINOR) && \ + (NCCL_MINOR >= 17) +#define NCCL_HAS_COMM_CTA_CGA +#elif defined(NCCL_MAJOR) && (NCCL_MAJOR >= 3) +#define NCCL_HAS_COMM_CTA_CGA +#endif + +#if defined(NCCL_REGISTRATION_SUPPORTED) || \ + ((defined(NCCL_MAJOR) && (NCCL_MAJOR == 2) && defined(NCCL_MINOR) && \ + (NCCL_MINOR >= 19))) +#define NCCL_HAS_COMM_REGISTER +#elif defined(NCCL_MAJOR) && (NCCL_MAJOR >= 3) +#define NCCL_HAS_COMM_REGISTER +#endif + +// Macro to throw on a non-successful NCCL return value. +#define C10D_NCCL_CHECK(cmd, failureReason) \ + do { \ + ncclResult_t result = cmd; \ + if (result != ncclSuccess) { \ + std::string err = "NCCL error in: " + std::string(__FILE__) + ":" + \ + std::to_string(__LINE__) + ", " + ncclGetErrorWithVersion(result) + \ + "\n" + getNcclErrorDetailStr(result, failureReason); \ + TORCH_CHECK_WITH(DistBackendError, false, err); \ + } \ + } while (0) + +// Macro to throw on a non-successful NCCL return value for NONBLOCKING calls. +#define C10D_NCCL_CHECK_NONBLOCKING(cmd, failureReason) \ + do { \ + ncclResult_t result = cmd; \ + if (result != ncclSuccess && result != ncclInProgress) { \ + std::string err = "NCCL error in: " + std::string(__FILE__) + ":" + \ + std::to_string(__LINE__) + ", " + ncclGetErrorWithVersion(result) + \ + "\n" + getNcclErrorDetailStr(result, failureReason); \ + TORCH_CHECK_WITH(DistBackendError, false, err); \ + } \ + } while (0) + +// Macro to throw on a non-successful NCCL return value, non-blocking. +#define C10D_NCCL_CHECK_TIMEOUT(cmd, comm, failureReason) \ + ncclResult_t result = cmd; \ + auto startTimepoint = std::chrono::steady_clock::now(); \ + while (result == ncclInProgress) { \ + if (nccl_nonblocking_timeout() > 0) { \ + auto currentTimepoint = std::chrono::steady_clock::now(); \ + auto timeElapsed = std::chrono::duration_cast( \ + currentTimepoint - startTimepoint) \ + .count(); \ + if (timeElapsed > nccl_nonblocking_timeout()) { \ + std::string err = "NCCL timeout in: " + std::string(__FILE__) + ":" + \ + std::to_string(__LINE__) + ", " + \ + ncclGetErrorWithVersion(result) + "\n" + \ + getNcclErrorDetailStr(result, failureReason); \ + TORCH_CHECK_WITH(DistBackendError, false, err); \ + } \ + } \ + ncclCommGetAsyncError(comm, &result); \ + } \ + if (result != ncclSuccess) { \ + std::string err = "NCCL error in: " + std::string(__FILE__) + ":" + \ + std::to_string(__LINE__) + ", " + ncclGetErrorWithVersion(result) + \ + "\n" + getNcclErrorDetailStr(result, failureReason); \ + TORCH_CHECK_WITH(DistBackendError, false, err); \ + } + +#define C10D_NCCL_CHECK_TIMEOUT_GROUPEND(cmd, comm, failureReason) \ + ncclResult_t state = cmd; \ + auto startTimepoint = std::chrono::steady_clock::now(); \ + if (state == ncclInProgress) { \ + do { \ + if (nccl_nonblocking_timeout() > 0) { \ + auto currentTimepoint = std::chrono::steady_clock::now(); \ + auto timeElapsed = std::chrono::duration_cast( \ + currentTimepoint - startTimepoint) \ + .count(); \ + if (timeElapsed > nccl_nonblocking_timeout()) { \ + std::string err = "NCCL timeout in: " + std::string(__FILE__) + \ + ":" + std::to_string(__LINE__) + ", " + \ + ncclGetErrorWithVersion(state) + "\n" + \ + getNcclErrorDetailStr(state, failureReason); \ + TORCH_CHECK_WITH(DistBackendError, false, err); \ + } \ + } \ + ncclCommGetAsyncError(comm->getNcclComm(), &state); \ + } while (state == ncclInProgress); \ + } \ + if (state != ncclSuccess) { \ + std::string err = "NCCL error in: " + std::string(__FILE__) + ":" + \ + std::to_string(__LINE__) + ", " + ncclGetErrorWithVersion(state) + \ + "\n" + getNcclErrorDetailStr(state, failureReason); \ + TORCH_CHECK_WITH(DistBackendError, false, err); \ + } + +// Macro to print and abort on a non-successful NCCL return value. +#define C10D_NCCL_ASSERT(cmd) \ + do { \ + ncclResult_t result = cmd; \ + if (result != ncclSuccess) { \ + std::string err = ncclGetErrorWithVersion(result); \ + fprintf( \ + stderr, \ + "NCCL error in: %s:%d, %s\n", \ + __FILE__, \ + __LINE__, \ + err.c_str()); \ + abort(); \ + } \ + } while (0) + +namespace c10d { + +TORCH_API size_t hashTensors(const std::vector& tensors); +std::string getNcclVersion(); +std::string ncclGetErrorWithVersion(ncclResult_t error); +bool nccl_use_nonblocking(); +int nccl_nonblocking_timeout(); + +// Provides additional detail into NCCL error codes based on when these are +// thrown in the NCCL codebase. +std::string getNcclErrorDetailStr( + ncclResult_t error, + c10::optional processGroupFailureReason = c10::nullopt); + +// Write NCCL debug info to local disk or any storage users define. +// There are some constrains we set for the debug info writer: +// 1. The writer should only be registered once. +// 2. Once registered, users cannot change it including un-register. +// 3. It is recommended to register the customized writer in the trainer setup, +// If users don't register before calling launchAsyncDebugDump, then users +// lose the chance to register (and the default writer will be +// auto-registered). +class TORCH_API DebugInfoWriter { + public: + virtual ~DebugInfoWriter(); + virtual void write(const std::string& ncclTrace); + static DebugInfoWriter& getWriter(int rank); + static void registerWriter(std::unique_ptr writer); + + protected: + DebugInfoWriter(std::string namePrefix, int rank) { + filename_ = c10::str(namePrefix, rank); + } + std::string filename_; + + private: + static std::unique_ptr writer_; + static std::atomic hasWriterRegistered_; +}; + +// RAII wrapper for NCCL communicator +class NCCLComm { + public: + explicit NCCLComm(ncclComm_t ncclComm) + : ncclComm_(ncclComm), + aborted_(false), + ncclAsyncErr_(ncclSuccess), + commFailureReason_(c10::nullopt), + initialized_(false) {} + + NCCLComm() : NCCLComm(nullptr) {} + + ~NCCLComm() noexcept { + // Add lock in this destructor, as aborted_ needs to be read after memory + // barrier here. + std::unique_lock lock(mutex_); + if (ncclComm_ && !aborted_) { +#ifdef ENABLE_NCCL_ERROR_CHECKING + // Use ncclCommAbort instead of ncclCommDestroy here since + // ncclCommDestroy could block forever waiting for work to complete on + // the communicator. + C10D_NCCL_ASSERT(::ncclCommAbort(ncclComm_)); +#else + C10D_NCCL_ASSERT(::ncclCommDestroy(ncclComm_)); +#endif + } + } + + static std::shared_ptr create( + int numRanks, + int rank, + ncclUniqueId commId) { + auto comm = std::make_shared(); + C10D_NCCL_CHECK( + ncclCommInitRank(&(comm->ncclComm_), numRanks, commId, rank), + c10::nullopt); + comm->ncclId_ = commId; + comm->rank_ = rank; + comm->initialized_ = true; + return comm; + } + +#ifdef NCCL_HAS_COMM_NONBLOCKING + static std::shared_ptr create( + int numRanks, + int rank, + ncclUniqueId commId, + ncclConfig_t& config) { + auto comm = std::make_shared(); + bool isInitialized = false; + if (nccl_use_nonblocking()) { + config.blocking = 0; + LOG(INFO) << "Rank " << rank + << ": creating NCCL communicator in nonblocking mode"; + C10D_NCCL_CHECK_NONBLOCKING( + ncclCommInitRankConfig( + &(comm->ncclComm_), numRanks, commId, rank, &config), + c10::nullopt); + } else { + C10D_NCCL_CHECK( + ncclCommInitRankConfig( + &(comm->ncclComm_), numRanks, commId, rank, &config), + c10::nullopt); + // under blocking mode, comm is initialized after NCCL CHECK + isInitialized = true; + } + comm->ncclId_ = commId; + comm->rank_ = rank; + comm->initialized_ = isInitialized; + return comm; + } +#endif + +#ifdef NCCL_HAS_COMM_SPLIT + static std::shared_ptr split( + NCCLComm* source, + int color_id, + int rank, + ncclConfig_t& config) { + auto comm = std::make_shared(); + C10D_NCCL_CHECK( + ncclCommSplit( + source->ncclComm_, color_id, rank, &(comm->ncclComm_), &config), + c10::nullopt); + ++source->ncclCommSplitCounter_; + comm->rank_ = rank; + return comm; + } +#endif + +#if defined(IS_NCCL_EXP) && defined(NCCL_COMM_DUMP) + std::unordered_map ncclCommDump() { + std::unordered_map dump; + if (isAborted()) { + LOG(INFO) << "Communicator was aborted before trying to dump its state."; + return dump; + } + C10D_NCCL_CHECK(::ncclCommDump(ncclComm_, dump), c10::nullopt); + return dump; + } +#endif + + ncclUniqueId getNcclId() { + return ncclId_; + } + + // Must not be copyable + NCCLComm(const NCCLComm&) = delete; + NCCLComm& operator=(const NCCLComm&) = delete; + + // Do not support move assignment as there is no valid use case + NCCLComm& operator=(NCCLComm&& other) = delete; + + // Move constructable + NCCLComm(NCCLComm&& other) { + // Using other's lock, as it reads other's states + // Can not use this.mutex_, as this object is being constructed. + std::unique_lock lock(other.mutex_); + std::swap(ncclComm_, other.ncclComm_); + std::swap(aborted_, other.aborted_); + std::swap(ncclAsyncErr_, other.ncclAsyncErr_); + std::swap(initialized_, other.initialized_); + } + + ncclComm_t getNcclComm(); + + c10::optional getNcclCommFailureReason() const { + std::unique_lock lock(mutex_); + return commFailureReason_; + } + + void ncclCommAbort( + c10::optional commFailureReason = c10::nullopt) { + std::unique_lock lock(mutex_); +#ifdef ENABLE_NCCL_ERROR_CHECKING + if (aborted_) { + // Should not abort twice. + return; + } + +#ifdef NCCL_HAS_COMM_REGISTER + // Deregister all registered segments before aborting. + for (auto& it : registeredSegmentHandles_) { + void* handle = it.second; + C10D_NCCL_CHECK( + ::ncclCommDeregister(ncclComm_, handle), + c10::str( + "Failed to deregister segment handle ", + handle, + " on ncclComm_ ", + ncclComm_)); + } + registeredSegmentHandles_.clear(); +#endif + + // Set true failure reason if provided by ProcessGroupNCCL (e.g. work + // timeout) + commFailureReason_ = commFailureReason; + LOG(INFO) << "Aborting ncclComm_ " << ncclComm_ << " with reason: " + << (commFailureReason ? *commFailureReason + : "No abort reason provided."); +#ifndef NCCL_HAS_COMM_NONBLOCKING + C10D_NCCL_CHECK(::ncclCommAbort(ncclComm_), commFailureReason_); +#else + C10D_NCCL_CHECK_TIMEOUT( + ::ncclCommAbort(ncclComm_), ncclComm_, commFailureReason_); +#endif + aborted_ = true; + ncclComm_ = nullptr; + + // Set an appropriate error so that we avoid using the communicator. + if (ncclAsyncErr_ == ncclSuccess) { + ncclAsyncErr_ = ncclSystemError; + } +#else + // This is a NOOP, if error checks are disabled. + return; +#endif + } + + bool isAborted() const { + std::unique_lock lock(mutex_); + return aborted_; + } + + uint64_t getCommSplitCounter() const { + return ncclCommSplitCounter_; + } + + ncclResult_t checkForNcclError() { + std::unique_lock lock(mutex_); +#ifdef ENABLE_NCCL_ERROR_CHECKING + if (ncclAsyncErr_ != ncclSuccess) { + return ncclAsyncErr_; + } + C10D_NCCL_CHECK( + ncclCommGetAsyncError(ncclComm_, &ncclAsyncErr_), commFailureReason_); + return ncclAsyncErr_; +#else + // Always return success, if error checks are disabled. + return ncclSuccess; +#endif + } + + ncclResult_t registerSegment(void* ptr, size_t size) { + std::unique_lock lock(mutex_); +#ifdef NCCL_HAS_COMM_REGISTER + // We register only segments from cache allocator + // which are guaranteed to be with disjoint addr ranges. Thus, a ptr always + // maps to a unique handle and should not be registered before the current + // ptr is deregistered and freed. + TORCH_CHECK( + registeredSegmentHandles_.count(ptr) == 0, + "Segment with ptr ", + ptr, + " has already been registered on ncclComm_ ", + ncclComm_); + + void* handle; + C10D_NCCL_CHECK( + ncclCommRegister(ncclComm_, ptr, size, &handle), + c10::str( + "Failed to register segment with ptr ", + ptr, + ", size ", + size, + " on ncclComm_ ", + ncclComm_)); + registeredSegmentHandles_[ptr] = handle; + return ncclSuccess; +#else + return ncclInvalidUsage; +#endif + } + + ncclResult_t deregisterSegment(void* ptr) { + std::unique_lock lock(mutex_); +#ifdef NCCL_HAS_COMM_REGISTER + TORCH_CHECK( + registeredSegmentHandles_.count(ptr) == 1, + "Segment with ptr ", + ptr, + " is not registered on ncclComm_ ", + ncclComm_); + + void* handle = registeredSegmentHandles_[ptr]; + C10D_NCCL_CHECK( + ncclCommDeregister(ncclComm_, handle), + c10::str( + "Failed to deregister segment handle ", + handle, + ", with ptr ", + ptr, + " on ncclComm_ ", + ncclComm_)); + registeredSegmentHandles_.erase(ptr); + return ncclSuccess; +#else + return ncclInvalidUsage; +#endif + } + + friend class ProcessGroupNCCL; + + protected: + // a helper function to wait until the communicator is initialized; + void waitUntilInitialized(int timeoutSecs); + ncclComm_t ncclComm_; + // Unique nccl_id for this communicator. + ncclUniqueId ncclId_; + bool aborted_; + uint64_t ncclCommSplitCounter_{0}; + ncclResult_t ncclAsyncErr_; + mutable std::mutex mutex_; + // Rank that this communicator corresponds to. + int rank_; + // Optional reason for communicator failure, provided by ProcessGroupNCCL for + // better error messaging. + c10::optional commFailureReason_; + bool initialized_{false}; +#ifdef NCCL_HAS_COMM_REGISTER + // Stores handlers for tensors registered by NCCL + std::unordered_map registeredSegmentHandles_; +#endif +}; + +// Helper that automatically cleans up premul sums. +struct ncclRedOpRAII { + ncclRedOpRAII() = default; + ncclRedOpRAII(ncclRedOp_t op) : op_(op) {} + ncclRedOpRAII(ncclRedOp_t op, ncclComm_t comm) + : op_(op), comm_(comm), premul_sum_(true) {} + ncclRedOpRAII(const ncclRedOpRAII&) = delete; + ncclRedOpRAII& operator=(const ncclRedOpRAII&) = delete; + ncclRedOpRAII(ncclRedOpRAII&& tmp) : ncclRedOpRAII() { + std::swap(tmp.op_, this->op_); + std::swap(tmp.comm_, this->comm_); + std::swap(tmp.premul_sum_, this->premul_sum_); + } +#if defined(ENABLE_NCCL_PREMUL_SUM_SUPPORT) + ~ncclRedOpRAII() { + if (premul_sum_) { + ncclRedOpDestroy(op_, comm_); + } + } +#endif + operator ncclRedOp_t() const { + return op_; + } + ncclRedOp_t op_; + ncclComm_t comm_; + bool premul_sum_ = false; +}; + +} // namespace c10d + +#endif // USE_C10D_NCCL diff --git a/shared/package-files/0a/0aafa33c567ac73421f2c70527f86635889e736c830957b9303a17e5e7e10936/__init__.py b/shared/package-files/0a/0aafa33c567ac73421f2c70527f86635889e736c830957b9303a17e5e7e10936/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..9e6b1662589c47b81534d5d04493d6e68f89b12f --- /dev/null +++ b/shared/package-files/0a/0aafa33c567ac73421f2c70527f86635889e736c830957b9303a17e5e7e10936/__init__.py @@ -0,0 +1,12 @@ +# Keep old package for BC purposes, this file should be removed once +# everything moves to the `torch.distributed._shard` package. +import sys +import torch +import warnings + +from torch.distributed._shard.sharded_tensor import * # noqa: F403 +warnings.warn( + "torch.distributed._sharded_tensor will be deprecated, use torch.distributed._shard.sharded_tensor instead", + DeprecationWarning +) +sys.modules['torch.distributed._sharded_tensor'] = torch.distributed._shard.sharded_tensor diff --git a/shared/package-files/0a/0ab4d74339a40e681fc1e2a32687bc9e4b11ee170ca259143cfb9da6c3895bea/microarchitectures_schema.json b/shared/package-files/0a/0ab4d74339a40e681fc1e2a32687bc9e4b11ee170ca259143cfb9da6c3895bea/microarchitectures_schema.json new file mode 100644 index 0000000000000000000000000000000000000000..c21a3a1b37208855a2bf4116cca220ea0ae66d0d --- /dev/null +++ b/shared/package-files/0a/0ab4d74339a40e681fc1e2a32687bc9e4b11ee170ca259143cfb9da6c3895bea/microarchitectures_schema.json @@ -0,0 +1,110 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Schema for microarchitecture definitions and feature aliases", + "type": "object", + "additionalProperties": false, + "properties": { + "microarchitectures": { + "type": "object", + "patternProperties": { + "([\\w]*)": { + "type": "object", + "properties": { + "from": { + "$comment": "More than one parent", + "type": "array", + "items": { + "type": "string" + } + }, + "vendor": { + "type": "string" + }, + "features": { + "type": "array", + "items": { + "type": "string" + } + }, + "compilers": { + "type": "object", + "patternProperties": { + "([\\w]*)": { + "$comment": "Permit multiple entries since compilers change options across versions", + "type": "array", + "items": { + "type": "object", + "properties": { + "versions": { + "type": "string" + }, + "name": { + "type": "string" + }, + "flags": { + "type": "string" + } + }, + "required": [ + "versions", + "flags" + ] + } + } + } + } + }, + "required": [ + "from", + "vendor", + "features" + ] + } + } + }, + "feature_aliases": { + "type": "object", + "patternProperties": { + "([\\w]*)": { + "type": "object", + "properties": { + "reason": { + "$comment": "Comment containing the reason why an alias is there", + "type": "string" + }, + "any_of": { + "$comment": "The alias is true if any of the items is a feature of the target", + "type": "array", + "items": { + "type": "string" + } + }, + "families": { + "$comment": "The alias is true if the family of the target is in this list", + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + } + } + }, + "conversions": { + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "arm_vendors": { + "type": "object" + }, + "darwin_flags": { + "type": "object" + } + }, + "additionalProperties": false + } + } +} diff --git a/shared/package-files/0a/0abae2fdfd248ecfd3e999573a071f1170e139cd6a6a483c4806d8636e060d01/lme06.csv b/shared/package-files/0a/0abae2fdfd248ecfd3e999573a071f1170e139cd6a6a483c4806d8636e060d01/lme06.csv new file mode 100644 index 0000000000000000000000000000000000000000..1c1995a58dbcb809557e0673739f10596ac46ab3 --- /dev/null +++ b/shared/package-files/0a/0abae2fdfd248ecfd3e999573a071f1170e139cd6a6a483c4806d8636e060d01/lme06.csv @@ -0,0 +1,261 @@ +groups,endog,exog_fe_0,exog_re_0,exog_re_1 +0.000,-0.504,-0.256,1.000,-1.000 +1.000,-2.437,1.355,1.000,-1.000 +1.000,-2.472,0.098,1.000,0.000 +1.000,-1.651,0.666,1.000,1.000 +2.000,-1.139,1.864,1.000,-1.000 +3.000,-2.869,2.045,1.000,-1.000 +3.000,-1.301,0.867,1.000,1.000 +4.000,1.155,-0.194,1.000,-1.000 +4.000,-0.202,1.156,1.000,1.000 +5.000,-0.553,-0.664,1.000,-1.000 +5.000,-1.502,1.428,1.000,1.000 +6.000,0.782,0.132,1.000,-1.000 +6.000,-2.208,0.771,1.000,1.000 +7.000,-1.198,1.180,1.000,-1.000 +7.000,0.324,-0.346,1.000,0.000 +7.000,0.149,-0.247,1.000,1.000 +8.000,-0.799,1.796,1.000,-1.000 +8.000,1.187,-0.264,1.000,0.000 +8.000,-2.163,1.864,1.000,1.000 +9.000,-2.442,0.749,1.000,-1.000 +9.000,1.112,-1.067,1.000,1.000 +10.000,-3.316,0.867,1.000,-1.000 +10.000,-1.735,1.423,1.000,-0.333 +10.000,0.639,-0.714,1.000,0.333 +10.000,0.978,0.813,1.000,1.000 +11.000,-0.507,0.873,1.000,-1.000 +11.000,-2.311,1.169,1.000,-0.333 +11.000,1.023,-0.972,1.000,0.333 +11.000,-1.276,0.065,1.000,1.000 +12.000,-3.120,0.558,1.000,-1.000 +13.000,0.103,0.657,1.000,-1.000 +13.000,-0.551,0.390,1.000,0.000 +13.000,-0.504,-0.771,1.000,1.000 +14.000,0.138,-0.364,1.000,-1.000 +14.000,0.836,-0.845,1.000,-0.333 +14.000,0.951,-0.501,1.000,0.333 +14.000,2.782,-1.463,1.000,1.000 +15.000,-0.087,0.593,1.000,-1.000 +15.000,-1.381,-0.012,1.000,0.000 +15.000,0.022,-1.137,1.000,1.000 +16.000,-0.273,1.230,1.000,-1.000 +16.000,-0.197,0.508,1.000,0.000 +16.000,-0.778,-0.362,1.000,1.000 +17.000,4.004,-1.784,1.000,-1.000 +17.000,-4.111,1.429,1.000,1.000 +18.000,2.411,0.218,1.000,-1.000 +18.000,-0.563,1.556,1.000,0.000 +18.000,-2.774,1.793,1.000,1.000 +19.000,-0.767,0.891,1.000,-1.000 +19.000,1.889,-0.919,1.000,1.000 +20.000,-0.415,0.857,1.000,-1.000 +21.000,-0.843,0.524,1.000,-1.000 +21.000,0.229,-0.311,1.000,0.000 +21.000,-0.775,0.810,1.000,1.000 +22.000,-1.078,0.214,1.000,-1.000 +23.000,-1.707,-0.698,1.000,-1.000 +23.000,-0.486,0.130,1.000,0.000 +23.000,1.893,0.277,1.000,1.000 +24.000,1.611,0.589,1.000,-1.000 +24.000,0.088,0.780,1.000,-0.333 +24.000,0.555,-1.922,1.000,0.333 +24.000,-1.593,-0.270,1.000,1.000 +25.000,0.763,-0.689,1.000,-1.000 +25.000,-0.700,0.693,1.000,0.000 +25.000,-0.762,-0.890,1.000,1.000 +26.000,-0.483,-0.811,1.000,-1.000 +26.000,0.804,-0.850,1.000,0.000 +26.000,0.796,0.850,1.000,1.000 +27.000,-2.479,-0.483,1.000,-1.000 +27.000,1.975,1.144,1.000,1.000 +28.000,1.663,-0.676,1.000,-1.000 +28.000,0.147,-1.068,1.000,0.000 +28.000,-1.392,-0.011,1.000,1.000 +29.000,0.868,0.088,1.000,-1.000 +29.000,-0.389,-0.795,1.000,1.000 +30.000,-2.863,0.948,1.000,-1.000 +30.000,0.632,-1.362,1.000,-0.333 +30.000,0.654,-1.084,1.000,0.333 +30.000,0.555,-0.497,1.000,1.000 +31.000,1.007,-1.654,1.000,-1.000 +32.000,-1.431,1.334,1.000,-1.000 +32.000,4.118,-1.382,1.000,1.000 +33.000,1.713,0.435,1.000,-1.000 +33.000,-2.491,0.260,1.000,1.000 +34.000,0.473,-0.252,1.000,-1.000 +34.000,0.896,-0.881,1.000,0.000 +34.000,0.695,-0.351,1.000,1.000 +35.000,-0.565,1.746,1.000,-1.000 +35.000,0.335,0.235,1.000,-0.333 +35.000,-1.820,0.689,1.000,0.333 +35.000,-1.819,1.396,1.000,1.000 +36.000,0.141,-0.955,1.000,-1.000 +36.000,2.864,-0.527,1.000,1.000 +37.000,-2.260,-0.155,1.000,-1.000 +37.000,-0.230,-0.071,1.000,-0.333 +37.000,1.489,-0.274,1.000,0.333 +37.000,1.931,-0.471,1.000,1.000 +38.000,0.604,1.020,1.000,-1.000 +38.000,-2.912,0.267,1.000,1.000 +39.000,2.449,-1.737,1.000,-1.000 +40.000,0.866,-0.017,1.000,-1.000 +40.000,0.662,-1.104,1.000,-0.333 +40.000,-0.367,-0.897,1.000,0.333 +40.000,-1.341,0.205,1.000,1.000 +41.000,-2.508,0.702,1.000,-1.000 +42.000,2.165,-0.399,1.000,-1.000 +42.000,1.288,-0.953,1.000,-0.333 +42.000,1.945,-1.816,1.000,0.333 +42.000,-0.906,-0.163,1.000,1.000 +43.000,3.407,-1.241,1.000,-1.000 +43.000,-2.504,1.395,1.000,1.000 +44.000,-1.158,1.422,1.000,-1.000 +44.000,-0.602,-0.160,1.000,0.000 +44.000,-0.092,-0.261,1.000,1.000 +45.000,1.114,1.472,1.000,-1.000 +45.000,0.544,-0.196,1.000,-0.333 +45.000,1.030,-0.643,1.000,0.333 +45.000,-1.632,0.720,1.000,1.000 +46.000,-1.196,1.635,1.000,-1.000 +46.000,0.677,-0.376,1.000,-0.333 +46.000,0.168,-0.422,1.000,0.333 +46.000,0.822,-1.482,1.000,1.000 +47.000,1.987,-1.518,1.000,-1.000 +48.000,-0.806,-0.757,1.000,-1.000 +48.000,-0.140,0.522,1.000,-0.333 +48.000,0.169,0.231,1.000,0.333 +48.000,1.582,0.734,1.000,1.000 +49.000,-1.825,2.042,1.000,-1.000 +49.000,-1.142,-0.898,1.000,1.000 +50.000,2.372,-0.655,1.000,-1.000 +50.000,0.969,-1.170,1.000,0.000 +50.000,-2.230,0.112,1.000,1.000 +51.000,2.540,0.940,1.000,-1.000 +52.000,2.133,-0.635,1.000,-1.000 +53.000,0.617,-0.275,1.000,-1.000 +54.000,0.105,-0.836,1.000,-1.000 +55.000,-3.972,0.875,1.000,-1.000 +56.000,-1.098,0.295,1.000,-1.000 +56.000,-0.224,0.780,1.000,-0.333 +56.000,0.172,1.521,1.000,0.333 +56.000,1.878,-0.472,1.000,1.000 +57.000,-0.397,-0.690,1.000,-1.000 +58.000,-2.458,0.388,1.000,-1.000 +58.000,0.326,-0.290,1.000,0.000 +58.000,0.505,2.054,1.000,1.000 +59.000,1.005,-0.104,1.000,-1.000 +60.000,-1.742,0.644,1.000,-1.000 +60.000,1.910,-0.292,1.000,1.000 +61.000,1.093,0.129,1.000,-1.000 +62.000,0.523,-1.067,1.000,-1.000 +62.000,-0.128,0.598,1.000,0.000 +62.000,-0.467,-0.486,1.000,1.000 +63.000,-1.172,-0.137,1.000,-1.000 +63.000,-0.343,-0.403,1.000,0.000 +63.000,1.891,-2.279,1.000,1.000 +64.000,-3.203,2.527,1.000,-1.000 +64.000,-1.121,0.438,1.000,-0.333 +64.000,-1.466,1.320,1.000,0.333 +64.000,-0.904,-0.310,1.000,1.000 +65.000,-0.664,0.502,1.000,-1.000 +65.000,1.038,-0.732,1.000,0.000 +65.000,-0.778,0.272,1.000,1.000 +66.000,0.870,0.221,1.000,-1.000 +66.000,2.390,-1.357,1.000,-0.333 +66.000,0.289,-0.120,1.000,0.333 +66.000,-1.521,1.296,1.000,1.000 +67.000,3.606,-1.067,1.000,-1.000 +67.000,0.280,0.672,1.000,0.000 +67.000,-1.811,-0.625,1.000,1.000 +68.000,1.057,0.582,1.000,-1.000 +68.000,2.026,-1.646,1.000,-0.333 +68.000,-1.203,-0.545,1.000,0.333 +68.000,-2.955,1.209,1.000,1.000 +69.000,-2.743,1.189,1.000,-1.000 +69.000,-1.066,-0.831,1.000,-0.333 +69.000,0.610,-1.715,1.000,0.333 +69.000,0.018,-1.035,1.000,1.000 +70.000,-0.997,0.111,1.000,-1.000 +70.000,-0.681,0.943,1.000,1.000 +71.000,-1.168,0.346,1.000,-1.000 +71.000,1.966,-1.993,1.000,0.000 +71.000,0.586,0.774,1.000,1.000 +72.000,-0.605,-0.261,1.000,-1.000 +72.000,-0.345,0.591,1.000,-0.333 +72.000,-0.707,1.366,1.000,0.333 +72.000,1.443,1.531,1.000,1.000 +73.000,1.417,-1.282,1.000,-1.000 +73.000,-2.950,2.885,1.000,-0.333 +73.000,-0.006,-0.648,1.000,0.333 +73.000,-0.781,0.630,1.000,1.000 +74.000,-2.382,-0.225,1.000,-1.000 +74.000,0.015,-0.643,1.000,-0.333 +74.000,1.240,-0.901,1.000,0.333 +74.000,0.627,0.173,1.000,1.000 +75.000,-1.028,0.961,1.000,-1.000 +75.000,1.689,-0.672,1.000,1.000 +76.000,-3.912,0.794,1.000,-1.000 +76.000,1.054,-1.924,1.000,-0.333 +76.000,1.361,-0.730,1.000,0.333 +76.000,1.924,0.050,1.000,1.000 +77.000,-2.627,-0.171,1.000,-1.000 +77.000,-3.021,1.410,1.000,-0.333 +77.000,0.575,0.139,1.000,0.333 +77.000,3.089,-1.001,1.000,1.000 +78.000,-4.299,0.184,1.000,-1.000 +78.000,3.404,-1.517,1.000,1.000 +79.000,1.737,0.093,1.000,-1.000 +79.000,1.409,-1.070,1.000,-0.333 +79.000,-0.969,-0.311,1.000,0.333 +79.000,-1.929,-0.972,1.000,1.000 +80.000,-2.122,1.294,1.000,-1.000 +80.000,4.013,-2.762,1.000,1.000 +81.000,1.114,-1.246,1.000,-1.000 +81.000,1.025,-0.722,1.000,0.000 +81.000,0.761,-0.593,1.000,1.000 +82.000,1.478,0.293,1.000,-1.000 +83.000,0.758,-0.917,1.000,-1.000 +84.000,0.887,-1.866,1.000,-1.000 +85.000,-0.959,0.572,1.000,-1.000 +86.000,0.227,0.528,1.000,-1.000 +86.000,-1.771,2.595,1.000,-0.333 +86.000,0.668,0.228,1.000,0.333 +86.000,1.166,0.519,1.000,1.000 +87.000,-2.166,0.146,1.000,-1.000 +87.000,-0.160,0.734,1.000,1.000 +88.000,1.914,1.685,1.000,-1.000 +89.000,-0.454,2.314,1.000,-1.000 +89.000,-0.603,0.883,1.000,-0.333 +89.000,-2.334,1.169,1.000,0.333 +89.000,-0.591,-0.352,1.000,1.000 +90.000,0.694,-1.333,1.000,-1.000 +90.000,1.598,-1.268,1.000,0.000 +90.000,0.634,-0.334,1.000,1.000 +91.000,1.044,0.082,1.000,-1.000 +91.000,-1.212,2.227,1.000,0.000 +91.000,1.600,0.557,1.000,1.000 +92.000,-1.696,-0.431,1.000,-1.000 +92.000,2.484,0.289,1.000,1.000 +93.000,1.019,0.219,1.000,-1.000 +94.000,3.209,-0.044,1.000,-1.000 +94.000,-0.031,1.067,1.000,0.000 +94.000,-2.807,1.492,1.000,1.000 +95.000,-0.482,-0.691,1.000,-1.000 +95.000,0.493,-0.678,1.000,-0.333 +95.000,0.010,-0.555,1.000,0.333 +95.000,0.487,-0.234,1.000,1.000 +96.000,2.450,-0.586,1.000,-1.000 +96.000,1.166,-0.160,1.000,-0.333 +96.000,-0.410,1.091,1.000,0.333 +96.000,-1.241,0.189,1.000,1.000 +97.000,-2.760,0.550,1.000,-1.000 +97.000,-1.095,0.541,1.000,0.000 +97.000,1.052,-0.449,1.000,1.000 +98.000,-4.587,1.040,1.000,-1.000 +98.000,0.322,1.639,1.000,0.000 +98.000,5.680,0.163,1.000,1.000 +99.000,2.464,-1.216,1.000,-1.000 +99.000,0.568,-0.646,1.000,-0.333 +99.000,-0.308,-0.545,1.000,0.333 +99.000,0.638,-1.129,1.000,1.000 diff --git a/shared/package-files/0a/0abe5aa5be4c972209ee7da2aae62693c4969aff2d6309813046e663ebb6e1ed/dispatch_and_compile_graph.py b/shared/package-files/0a/0abe5aa5be4c972209ee7da2aae62693c4969aff2d6309813046e663ebb6e1ed/dispatch_and_compile_graph.py new file mode 100644 index 0000000000000000000000000000000000000000..9b2ba2e6aee07fd00e2452fa960bb3dd84610268 --- /dev/null +++ b/shared/package-files/0a/0abe5aa5be4c972209ee7da2aae62693c4969aff2d6309813046e663ebb6e1ed/dispatch_and_compile_graph.py @@ -0,0 +1,192 @@ +""" +This module dispatches the graphs to either the forward-only or joint compilation +pathways, taking into account the AOTConfig and the collected ViewAndMutationMetadata. +""" + +from typing import Any, Callable, List, Optional, Tuple, Union + +import torch +import torch.utils._pytree as pytree +import torch.utils.dlpack +from torch import Tensor +from torch._dispatch.python import enable_python_dispatcher +from torch._dynamo.utils import lazy_format_graph_code +from torch._logging import getArtifactLogger, trace_structured +from torch._subclasses.functional_tensor import FunctionalTensorMode +from torch.fx.experimental.proxy_tensor import make_fx + +from .functional_utils import ( + assert_functional_graph, + propagate_input_mutation_stacktraces, +) +from .schemas import AOTConfig, SubclassMeta, ViewAndMutationMeta +from .traced_function_transforms import ( + aot_dispatch_subclass, + create_functionalized_fn, + create_joint, + fn_input_mutations_to_outputs, + fn_prepped_for_autograd, +) + +aot_graphs_log = getArtifactLogger(__name__, "aot_graphs") + + +def _create_graph(f, args, *, aot_config: AOTConfig) -> torch.fx.GraphModule: + # FunctionalTensorMode must be enabled here. + # See Note [Accessing .grad_fn on FunctionalTensor] + with enable_python_dispatcher(), FunctionalTensorMode( + pre_dispatch=aot_config.pre_dispatch, export=aot_config.is_export + ): + fx_g = make_fx( + f, + decomposition_table=aot_config.decompositions, + record_module_stack=True, + pre_dispatch=aot_config.pre_dispatch, + )(*args) + + return fx_g + + +def aot_dispatch_base_graph( + flat_fn, + flat_args: List[Tensor], + aot_config: AOTConfig, + *, + fw_metadata: ViewAndMutationMeta, +) -> Union[Callable, Tuple[Callable, List[Any], Optional[SubclassMeta]]]: + # aot_dispatch_base requires functionalization, but doesn't need to handle as many cases as the autograd case. + # The cases that aot_dispatch_base doesn't need to handle include: + # - outputs that are aliases of graph intermediates + # - outputs that are aliases of graph inputs + # While cases that it does need to handle include: + # - input mutations (including when inputs are aliases of each other) + # - input metadata mutations + fn_to_trace = fn_input_mutations_to_outputs( + flat_fn, + fw_metadata, + keep_data_input_mutations=aot_config.keep_inference_input_mutations, + ) + + fn_to_trace, updated_flat_args = create_functionalized_fn( + fn_to_trace, + flat_args, + meta=fw_metadata, + aot_config=aot_config, + trace_joint=False, + ) + + ( + fn_to_trace, + updated_flat_args_subclasses_desugared, + maybe_subclass_meta, + ) = aot_dispatch_subclass( + fn_to_trace, + updated_flat_args, + is_joint_structure=False, + meta=fw_metadata, + fw_only=flat_fn, + ) + + fw_module = _create_graph( + fn_to_trace, + updated_flat_args_subclasses_desugared, + aot_config=aot_config, + ) + + # As long as we opted to remove input mutations, then + # there should be *NO* mutating ops in the graph at this point. + copy_count = assert_functional_graph(fw_module.graph) + + fw_module.graph.eliminate_dead_code() + fw_module.recompile() + + copy_count2 = assert_functional_graph(fw_module.graph) + propagate_input_mutation_stacktraces(fw_module.graph) + + assert copy_count == copy_count2 + + if aot_config.enable_log: + aot_graphs_log.info( + "%s", lazy_format_graph_code("Forward graph", fw_module, aot_config.aot_id) + ) + trace_structured( + "aot_forward_graph", + payload_fn=lambda: fw_module.print_readable(print_output=False), + ) + + # TODO: should factor this into a separate function for export that always only returns just the graph. + if aot_config.is_export: + assert ( + maybe_subclass_meta is None + ), "aot_export_module does not support tensor subclass inputs for now." + return fw_module + return fw_module, list(updated_flat_args_subclasses_desugared), maybe_subclass_meta + + +# Has the precondition that there +# are no duplicate arguments in flat_args (e.g., the same Tensor +# object never shows up twice. However, two tensor inputs MAY alias +# the same storage, so long as they have separate TensorImpls.) +def aot_dispatch_autograd_graph( + flat_fn, + flat_args: List[Any], + aot_config: AOTConfig, + *, + fw_metadata: ViewAndMutationMeta, +) -> Union[Callable, Tuple[Callable, List[Any], Optional[SubclassMeta]]]: + # traced_tangents corresponds to the set of outputs in the traced forward that should get grad_outputs in the traced backward. + # It includes outputs of the original forward, *and* any updated inputs due to input mutations. + # However, it does *not* include any outputs that are aliases of inputs or intermediates, or any metadata-only input mutations. + traced_tangents = pytree.tree_map( + lambda x: x.detach().contiguous() if isinstance(x, Tensor) else x, + fw_metadata.traced_tangents, + ) + + joint_inputs = (flat_args, traced_tangents) + + fn_prepared_for_autograd = fn_prepped_for_autograd( + flat_fn, + fw_metadata, + ) + joint_fn_to_trace = create_joint(fn_prepared_for_autograd, aot_config=aot_config) + + joint_fn_to_trace, updated_joint_inputs = create_functionalized_fn( + joint_fn_to_trace, + joint_inputs, + meta=fw_metadata, + aot_config=aot_config, + trace_joint=True, + ) + + subclass_tracing_info = aot_dispatch_subclass( + joint_fn_to_trace, + updated_joint_inputs, + is_joint_structure=True, + meta=fw_metadata, + fw_only=flat_fn, + ) + + joint_fn_to_trace = subclass_tracing_info.plain_tensor_trace_fn + updated_joint_inputs = subclass_tracing_info.plain_tensor_args + maybe_subclass_meta = subclass_tracing_info.maybe_subclass_meta + + fx_g = _create_graph(joint_fn_to_trace, updated_joint_inputs, aot_config=aot_config) + + # There should be *NO* mutating ops in the graph at this point. + assert_functional_graph(fx_g.graph) + + # Redundant with the check above, but worth having in case tracing introduced + # a fake tensor. Unlikely. + # See Note: [Fake Modules and AOTAutograd] + torch._dynamo.utils.assert_no_fake_params_or_buffers(fx_g) + fx_g.graph.eliminate_dead_code() + fx_g.recompile() + # TODO: in AOTAutograd, we create metadata like _indices_of_inps_to_detach to detect + # when we need to manually detach() some inputs in the forward. + # Higher order ops might eventually need to do the same. + if aot_config.is_export: + assert ( + maybe_subclass_meta is None + ), "aot_export_module does not support tensor subclass inputs for now." + return fx_g + return fx_g, updated_joint_inputs, maybe_subclass_meta diff --git a/shared/package-files/0a/0abe9df01cc2c1b1e32998b6d6a48d2ee990a69c08ce3c78cc62096f149411f1/california_housing.rst b/shared/package-files/0a/0abe9df01cc2c1b1e32998b6d6a48d2ee990a69c08ce3c78cc62096f149411f1/california_housing.rst new file mode 100644 index 0000000000000000000000000000000000000000..47a25b9ba272a24cdea9ef8dcd819fc768d5ffaf --- /dev/null +++ b/shared/package-files/0a/0abe9df01cc2c1b1e32998b6d6a48d2ee990a69c08ce3c78cc62096f149411f1/california_housing.rst @@ -0,0 +1,46 @@ +.. _california_housing_dataset: + +California Housing dataset +-------------------------- + +**Data Set Characteristics:** + +:Number of Instances: 20640 + +:Number of Attributes: 8 numeric, predictive attributes and the target + +:Attribute Information: + - MedInc median income in block group + - HouseAge median house age in block group + - AveRooms average number of rooms per household + - AveBedrms average number of bedrooms per household + - Population block group population + - AveOccup average number of household members + - Latitude block group latitude + - Longitude block group longitude + +:Missing Attribute Values: None + +This dataset was obtained from the StatLib repository. +https://www.dcc.fc.up.pt/~ltorgo/Regression/cal_housing.html + +The target variable is the median house value for California districts, +expressed in hundreds of thousands of dollars ($100,000). + +This dataset was derived from the 1990 U.S. census, using one row per census +block group. A block group is the smallest geographical unit for which the U.S. +Census Bureau publishes sample data (a block group typically has a population +of 600 to 3,000 people). + +A household is a group of people residing within a home. Since the average +number of rooms and bedrooms in this dataset are provided per household, these +columns may take surprisingly large values for block groups with few households +and many empty houses, such as vacation resorts. + +It can be downloaded/loaded using the +:func:`sklearn.datasets.fetch_california_housing` function. + +.. rubric:: References + +- Pace, R. Kelley and Ronald Barry, Sparse Spatial Autoregressions, + Statistics and Probability Letters, 33:291-297, 1997. diff --git a/shared/package-files/0a/0abff738e329bf21740b952fdb71041281af542297564852cfc3c4e342baa51c/tensorpipe_utils.h b/shared/package-files/0a/0abff738e329bf21740b952fdb71041281af542297564852cfc3c4e342baa51c/tensorpipe_utils.h new file mode 100644 index 0000000000000000000000000000000000000000..1011a9c34c3d805f249b2a842e227bdfc2ef2cb9 --- /dev/null +++ b/shared/package-files/0a/0abff738e329bf21740b952fdb71041281af542297564852cfc3c4e342baa51c/tensorpipe_utils.h @@ -0,0 +1,123 @@ +#pragma once + +#ifdef USE_TENSORPIPE + +#include + +namespace tensorpipe { +class Message; +class Allocation; +class Descriptor; +} // namespace tensorpipe + +namespace torch { +namespace distributed { +namespace rpc { + +TORCH_API const c10::Stream& getStreamForDevice( + const std::vector& streams, + const c10::Device& device); + +// Inspired by c10/core/impl/DeviceGuardImplInterface.h. + +class TensorpipeDeviceTypeConverter { + public: + // Ideally we'd want this to also return a tensorpipe::Message::Tensor object + // but we cannot forward-declare that class (because it's nested), and we + // cannot include the TensorPipe headers because it's a private dependency. + // Thus we bend over backwards and entrust this method with appending that + // object to the `tensors` field of the tensorpipe::Message object we pass. + virtual c10::optional> prepareTensorForSending( + const c10::Storage& storage, + const std::vector& streams, + tensorpipe::Message& message) const = 0; + + // Same as above: this method cannot return a tensorpipe::Allocation::Tensor, + // thus it appends it to the `tensors` field of the tensorpipe::Allocation. + virtual at::DataPtr allocateTensorForReceiving( + c10::DeviceIndex deviceIndex, + size_t length, + const std::vector& streams, + tensorpipe::Allocation& allocation) const = 0; + + virtual ~TensorpipeDeviceTypeConverter() = default; +}; + +extern TORCH_API std::array< + std::atomic, + static_cast(DeviceType::COMPILE_TIME_MAX_DEVICE_TYPES)> + device_type_converter_registry; + +class TORCH_API TensorpipeDeviceTypeConverterRegistrar { + public: + TensorpipeDeviceTypeConverterRegistrar( + DeviceType, + const TensorpipeDeviceTypeConverter*); +}; + +#define C10_REGISTER_TENSORPIPE_DEVICE_TYPE_CONVERTER( \ + DevType, TensorpipeDeviceTypeConverter) \ + static ::torch::distributed::rpc::TensorpipeDeviceTypeConverterRegistrar \ + C10_ANONYMOUS_VARIABLE(g_##DeviceType)( \ + ::c10::DeviceType::DevType, new TensorpipeDeviceTypeConverter()); + +inline const TensorpipeDeviceTypeConverter* getDeviceTypeConverter( + DeviceType type) { + return device_type_converter_registry[static_cast(type)].load(); +} + +// A struct that holds pointers that keep alive all the memory that will be +// accessed by TensorPipe during a write operation. +struct TensorpipeWriteBuffers { + // Allocate on heap so pointers stay valid as we move the holder. + std::unique_ptr type; + std::unique_ptr id; + std::vector payload; + std::vector pickle; + // This contains the original tensors and the clones of the sparse tensors. + std::vector tensors; + // This contains the copies of the data of the tensors that didn't own their + // memory, e.g., the ones created from torch::from_blob() with no deleter. + std::vector> copiedTensors; +}; + +// A struct that holds pointers that keep alive all the memory that will be +// accessed by TensorPipe during a read operation. +struct TensorpipeReadBuffers { + // Allocate on heap so pointers stay valid as we move the holder. + std::unique_ptr type; + std::unique_ptr id; + std::vector payload; + std::vector pickle; + std::vector tensors; +}; + +// Convert an RPC message into a TensorPipe message, plus a holder to all the +// data that must be kept alive while the write is performed asynchronously. +TORCH_API std::tuple +tensorpipeSerialize( + c10::intrusive_ptr rpcMessage, + std::vector devices, + const std::vector& streams); + +// Allocate the buffers that will hold the incoming data. They will be managed +// by the returned holder, which must be kept alive until the asynchronous read +// has finished. Pointers to these buffers will be stored in the returned +// tensorpipe::Allocation struct. +TORCH_API std::pair +tensorpipeAllocate( + const tensorpipe::Descriptor& tpDescriptor, + const std::vector& streams); + +// Convert a TensorPipe message back into an RPC message. This requires the data +// to be available and can thus only be performed once the asynchronous read has +// completed. The holder can be destroyed once this function returns. +TORCH_API c10::intrusive_ptr tensorpipeDeserialize( + tensorpipe::Descriptor&& tpDescriptor, + TensorpipeReadBuffers&& holder); + +} // namespace rpc +} // namespace distributed +} // namespace torch + +#endif // USE_TENSORPIPE diff --git a/shared/package-files/0a/0ac061cde06b3aac49380d9914a1d742181c4d982ac534daa69beb6261868c6c/aligned_umap.py b/shared/package-files/0a/0ac061cde06b3aac49380d9914a1d742181c4d982ac534daa69beb6261868c6c/aligned_umap.py new file mode 100644 index 0000000000000000000000000000000000000000..264af4578c999b61208644b54b7a59c10b9c0874 --- /dev/null +++ b/shared/package-files/0a/0ac061cde06b3aac49380d9914a1d742181c4d982ac534daa69beb6261868c6c/aligned_umap.py @@ -0,0 +1,562 @@ +import numpy as np +import numba +from sklearn.base import BaseEstimator +from sklearn.utils import check_array + +from umap.sparse import arr_intersect as intersect1d +from umap.sparse import arr_union as union1d +from umap.umap_ import UMAP, make_epochs_per_sample +from umap.spectral import spectral_layout +from umap.layouts import optimize_layout_aligned_euclidean + +INT32_MIN = np.iinfo(np.int32).min + 1 +INT32_MAX = np.iinfo(np.int32).max - 1 + + +@numba.njit(parallel=True) +def in1d(arr, test_set): + test_set = set(test_set) + result = np.empty(arr.shape[0], dtype=np.bool_) + for i in numba.prange(arr.shape[0]): + if arr[i] in test_set: + result[i] = True + else: + result[i] = False + + return result + + +def invert_dict(d): + return {value: key for key, value in d.items()} + + +@numba.njit() +def procrustes_align(embedding_base, embedding_to_align, anchors): + subset1 = embedding_base[anchors[0]] + subset2 = embedding_to_align[anchors[1]] + M = subset2.T @ subset1 + U, S, V = np.linalg.svd(M) + R = U @ V + return embedding_to_align @ R + + +def expand_relations(relation_dicts, window_size=3): + max_n_samples = ( + max( + [max(d.keys()) for d in relation_dicts] + + [max(d.values()) for d in relation_dicts] + ) + + 1 + ) + result = np.full( + (len(relation_dicts) + 1, 2 * window_size + 1, max_n_samples), + -1, + dtype=np.int32, + ) + reverse_relation_dicts = [invert_dict(d) for d in relation_dicts] + for i in range(result.shape[0]): + for j in range(window_size): + result_index = (window_size) + (j + 1) + if i + j + 1 >= len(relation_dicts): + result[i, result_index] = np.full(max_n_samples, -1, dtype=np.int32) + else: + mapping = np.arange(max_n_samples) + for k in range(j + 1): + mapping = np.array( + [relation_dicts[i + k].get(n, -1) for n in mapping] + ) + result[i, result_index] = mapping + + for j in range(0, -window_size, -1): + result_index = (window_size) + (j - 1) + if i + j - 1 < 0: + result[i, result_index] = np.full(max_n_samples, -1, dtype=np.int32) + else: + mapping = np.arange(max_n_samples) + for k in range(0, j - 1, -1): + mapping = np.array( + [reverse_relation_dicts[i + k - 1].get(n, -1) for n in mapping] + ) + result[i, result_index] = mapping + + return result + + +@numba.njit() +def build_neighborhood_similarities(graphs_indptr, graphs_indices, relations): + result = np.zeros(relations.shape, dtype=np.float32) + center_index = (relations.shape[1] - 1) // 2 + for i in range(relations.shape[0]): + base_graph_indptr = graphs_indptr[i] + base_graph_indices = graphs_indices[i] + for j in range(relations.shape[1]): + if i + j - center_index < 0 or i + j - center_index >= len(graphs_indptr): + continue + + comparison_graph_indptr = graphs_indptr[i + j - center_index] + comparison_graph_indices = graphs_indices[i + j - center_index] + for k in range(relations.shape[2]): + comparison_index = relations[i, j, k] + if comparison_index < 0: + continue + + raw_base_graph_indices = base_graph_indices[ + base_graph_indptr[k] : base_graph_indptr[k + 1] + ].copy() + base_indices = relations[i, j][ + raw_base_graph_indices[raw_base_graph_indices < relations.shape[2]] + ] + base_indices = base_indices[base_indices >= 0] + comparison_indices = comparison_graph_indices[ + comparison_graph_indptr[comparison_index] : comparison_graph_indptr[ + comparison_index + 1 + ] + ] + comparison_indices = comparison_indices[ + in1d(comparison_indices, relations[i, j]) + ] + + intersection_size = intersect1d(base_indices, comparison_indices).shape[ + 0 + ] + union_size = union1d(base_indices, comparison_indices).shape[0] + + if union_size > 0: + result[i, j, k] = intersection_size / union_size + else: + result[i, j, k] = 1.0 + + return result + + +def get_nth_item_or_val(iterable_or_val, n): + if iterable_or_val is None: + return None + if type(iterable_or_val) in (list, tuple, np.ndarray): + return iterable_or_val[n] + elif type(iterable_or_val) in (int, float, bool, None): + return iterable_or_val + else: + raise ValueError("Unrecognized parameter type") + + +PARAM_NAMES = ( + "n_neighbors", + "n_components", + "metric", + "metric_kwds", + "n_epochs", + "learning_rate", + "init", + "min_dist", + "spread", + "set_op_mix_ratio", + "local_connectivity", + "repulsion_strength", + "negative_sample_rate", + "transform_queue_size", + "angular_rp_forest", + "target_n_neighbors", + "target_metric", + "target_metric_kwds", + "target_weight", + "unique", +) + + +def set_aligned_params(new_params, existing_params, n_models, param_names=PARAM_NAMES): + for param in param_names: + if param in new_params: + if isinstance(existing_params[param], list): + existing_params[param].append(new_params[param]) + elif isinstance(existing_params[param], tuple): + existing_params[param] = existing_params[param] + (new_params[param],) + elif isinstance(existing_params[param], np.ndarray): + existing_params[param] = np.append( + existing_params[param], new_params[param] + ) + else: + if new_params[param] != existing_params[param]: + existing_params[param] = (existing_params[param],) * n_models + ( + new_params[param], + ) + + return existing_params + + +@numba.njit() +def init_from_existing_internal( + previous_embedding, weights_indptr, weights_indices, weights_data, relation_dict +): + n_samples = weights_indptr.shape[0] - 1 + n_features = previous_embedding.shape[1] + result = np.zeros((n_samples, n_features), dtype=np.float32) + + for i in range(n_samples): + if i in relation_dict: + result[i] = previous_embedding[relation_dict[i]] + else: + normalisation = 0.0 + for idx in range(weights_indptr[i], weights_indptr[i + 1]): + j = weights_indices[idx] + if j in relation_dict: + normalisation += weights_data[idx] + result[i] += ( + weights_data[idx] * previous_embedding[relation_dict[j]] + ) + if normalisation == 0: + result[i] = np.random.uniform(-10.0, 10.0, n_features) + else: + result[i] /= normalisation + + return result + + +def init_from_existing(previous_embedding, graph, relations): + typed_relations = numba.typed.Dict.empty(numba.types.int32, numba.types.int32) + for key, val in relations.items(): + typed_relations[np.int32(key)] = np.int32(val) + return init_from_existing_internal( + previous_embedding, + graph.indptr, + graph.indices, + graph.data, + typed_relations, + ) + + +class AlignedUMAP(BaseEstimator): + def __init__( + self, + n_neighbors=15, + n_components=2, + metric="euclidean", + metric_kwds=None, + n_epochs=None, + learning_rate=1.0, + init="spectral", + alignment_regularisation=1.0e-2, + alignment_window_size=3, + min_dist=0.1, + spread=1.0, + low_memory=False, + set_op_mix_ratio=1.0, + local_connectivity=1.0, + repulsion_strength=1.0, + negative_sample_rate=5, + transform_queue_size=4.0, + a=None, + b=None, + random_state=None, + angular_rp_forest=False, + target_n_neighbors=-1, + target_metric="categorical", + target_metric_kwds=None, + target_weight=0.5, + transform_seed=42, + force_approximation_algorithm=False, + verbose=False, + unique=False, + ): + + self.n_neighbors = n_neighbors + self.metric = metric + self.metric_kwds = metric_kwds + + self.n_epochs = n_epochs + self.init = init + self.n_components = n_components + self.repulsion_strength = repulsion_strength + self.learning_rate = learning_rate + self.alignment_regularisation = alignment_regularisation + self.alignment_window_size = alignment_window_size + + self.spread = spread + self.min_dist = min_dist + self.low_memory = low_memory + self.set_op_mix_ratio = set_op_mix_ratio + self.local_connectivity = local_connectivity + self.negative_sample_rate = negative_sample_rate + self.random_state = random_state + self.angular_rp_forest = angular_rp_forest + self.transform_queue_size = transform_queue_size + self.target_n_neighbors = target_n_neighbors + self.target_metric = target_metric + self.target_metric_kwds = target_metric_kwds + self.target_weight = target_weight + self.transform_seed = transform_seed + self.force_approximation_algorithm = force_approximation_algorithm + self.verbose = verbose + self.unique = unique + + self.a = a + self.b = b + + def fit(self, X, y=None, **fit_params): + if "relations" not in fit_params: + raise ValueError( + "Aligned UMAP requires relations between data to be " "specified" + ) + + self.dict_relations_ = fit_params["relations"] + assert type(self.dict_relations_) in (list, tuple) + assert type(X) in (list, tuple, np.ndarray) + assert (len(X) - 1) == (len(self.dict_relations_)) + + if y is not None: + assert type(y) in (list, tuple, np.ndarray) + assert (len(y) - 1) == (len(self.dict_relations_)) + else: + y = [None] * len(X) + + # We need n_components to be constant or this won't work + if type(self.n_components) in (list, tuple, np.ndarray): + raise ValueError("n_components must be a single integer, and cannot vary") + + self.n_models_ = len(X) + + if self.n_epochs is None: + self.n_epochs = 200 + + n_epochs = self.n_epochs + + self.mappers_ = [ + UMAP( + n_neighbors=get_nth_item_or_val(self.n_neighbors, n), + min_dist=get_nth_item_or_val(self.min_dist, n), + n_epochs=get_nth_item_or_val(self.n_epochs, n), + repulsion_strength=get_nth_item_or_val(self.repulsion_strength, n), + learning_rate=get_nth_item_or_val(self.learning_rate, n), + init=self.init, + spread=get_nth_item_or_val(self.spread, n), + negative_sample_rate=get_nth_item_or_val(self.negative_sample_rate, n), + local_connectivity=get_nth_item_or_val(self.local_connectivity, n), + set_op_mix_ratio=get_nth_item_or_val(self.set_op_mix_ratio, n), + unique=get_nth_item_or_val(self.unique, n), + n_components=self.n_components, + metric=self.metric, + metric_kwds=self.metric_kwds, + low_memory=self.low_memory, + random_state=self.random_state, + angular_rp_forest=self.angular_rp_forest, + transform_queue_size=self.transform_queue_size, + target_n_neighbors=self.target_n_neighbors, + target_metric=self.target_metric, + target_metric_kwds=self.target_metric_kwds, + target_weight=self.target_weight, + transform_seed=self.transform_seed, + force_approximation_algorithm=self.force_approximation_algorithm, + verbose=self.verbose, + a=self.a, + b=self.b, + ).fit(X[n], y[n]) + for n in range(self.n_models_) + ] + + window_size = fit_params.get("window_size", self.alignment_window_size) + relations = expand_relations(self.dict_relations_, window_size) + + indptr_list = numba.typed.List.empty_list(numba.types.int32[::1]) + indices_list = numba.typed.List.empty_list(numba.types.int32[::1]) + heads = numba.typed.List.empty_list(numba.types.int32[::1]) + tails = numba.typed.List.empty_list(numba.types.int32[::1]) + epochs_per_samples = numba.typed.List.empty_list(numba.types.float64[::1]) + + for mapper in self.mappers_: + indptr_list.append(mapper.graph_.indptr) + indices_list.append(mapper.graph_.indices) + heads.append(mapper.graph_.tocoo().row) + tails.append(mapper.graph_.tocoo().col) + epochs_per_samples.append( + make_epochs_per_sample(mapper.graph_.tocoo().data, n_epochs) + ) + + rng_state_transform = np.random.RandomState(self.transform_seed) + regularisation_weights = build_neighborhood_similarities( + indptr_list, + indices_list, + relations, + ) + first_init = spectral_layout( + self.mappers_[0]._raw_data, + self.mappers_[0].graph_, + self.n_components, + rng_state_transform, + ) + expansion = 10.0 / np.abs(first_init).max() + first_embedding = (first_init * expansion).astype( + np.float32, + order="C", + ) + + embeddings = numba.typed.List.empty_list(numba.types.float32[:, ::1]) + embeddings.append(first_embedding) + for i in range(1, self.n_models_): + next_init = spectral_layout( + self.mappers_[i]._raw_data, + self.mappers_[i].graph_, + self.n_components, + rng_state_transform, + ) + expansion = 10.0 / np.abs(next_init).max() + next_embedding = (next_init * expansion).astype( + np.float32, + order="C", + ) + anchor_data = relations[i][window_size - 1] + left_anchors = anchor_data[anchor_data >= 0] + right_anchors = np.where(anchor_data >= 0)[0] + embeddings.append( + procrustes_align( + embeddings[-1], + next_embedding, + np.vstack([left_anchors, right_anchors]), + ) + ) + + seed_triplet = rng_state_transform.randint(INT32_MIN, INT32_MAX, 3).astype( + np.int64 + ) + self.embeddings_ = optimize_layout_aligned_euclidean( + embeddings, + embeddings, + heads, + tails, + n_epochs, + epochs_per_samples, + regularisation_weights, + relations, + seed_triplet, + lambda_=self.alignment_regularisation, + move_other=True, + ) + + for i, embedding in enumerate(self.embeddings_): + disconnected_vertices = ( + np.array(self.mappers_[i].graph_.sum(axis=1)).flatten() == 0 + ) + embedding[disconnected_vertices] = np.full(self.n_components, np.nan) + + return self + + def fit_transform(self, X, y=None, **fit_params): + self.fit(X, y, **fit_params) + return self.embeddings_ + + def update(self, X, y=None, **fit_params): + if "relations" not in fit_params: + raise ValueError( + "Aligned UMAP requires relations between data to be " "specified" + ) + + new_dict_relations = fit_params["relations"] + assert isinstance(new_dict_relations, dict) + + X = check_array(X) + + self.__dict__ = set_aligned_params(fit_params, self.__dict__, self.n_models_) + + # We need n_components to be constant or this won't work + if type(self.n_components) in (list, tuple, np.ndarray): + raise ValueError("n_components must be a single integer, and cannot vary") + + if self.n_epochs is None: + self.n_epochs = 200 + + n_epochs = self.n_epochs + + new_mapper = UMAP( + n_neighbors=get_nth_item_or_val(self.n_neighbors, self.n_models_), + min_dist=get_nth_item_or_val(self.min_dist, self.n_models_), + n_epochs=get_nth_item_or_val(self.n_epochs, self.n_models_), + repulsion_strength=get_nth_item_or_val( + self.repulsion_strength, self.n_models_ + ), + learning_rate=get_nth_item_or_val(self.learning_rate, self.n_models_), + init=self.init, + spread=get_nth_item_or_val(self.spread, self.n_models_), + negative_sample_rate=get_nth_item_or_val( + self.negative_sample_rate, self.n_models_ + ), + local_connectivity=get_nth_item_or_val( + self.local_connectivity, self.n_models_ + ), + set_op_mix_ratio=get_nth_item_or_val(self.set_op_mix_ratio, self.n_models_), + unique=get_nth_item_or_val(self.unique, self.n_models_), + n_components=self.n_components, + metric=self.metric, + metric_kwds=self.metric_kwds, + low_memory=self.low_memory, + random_state=self.random_state, + angular_rp_forest=self.angular_rp_forest, + transform_queue_size=self.transform_queue_size, + target_n_neighbors=self.target_n_neighbors, + target_metric=self.target_metric, + target_metric_kwds=self.target_metric_kwds, + target_weight=self.target_weight, + transform_seed=self.transform_seed, + force_approximation_algorithm=self.force_approximation_algorithm, + verbose=self.verbose, + a=self.a, + b=self.b, + ).fit(X, y) + + self.n_models_ += 1 + self.mappers_ += [new_mapper] + + self.dict_relations_ += [new_dict_relations] + + window_size = fit_params.get("window_size", self.alignment_window_size) + new_relations = expand_relations(self.dict_relations_, window_size) + + indptr_list = numba.typed.List.empty_list(numba.types.int32[::1]) + indices_list = numba.typed.List.empty_list(numba.types.int32[::1]) + heads = numba.typed.List.empty_list(numba.types.int32[::1]) + tails = numba.typed.List.empty_list(numba.types.int32[::1]) + epochs_per_samples = numba.typed.List.empty_list(numba.types.float64[::1]) + + for i, mapper in enumerate(self.mappers_): + indptr_list.append(mapper.graph_.indptr) + indices_list.append(mapper.graph_.indices) + heads.append(mapper.graph_.tocoo().row) + tails.append(mapper.graph_.tocoo().col) + if i == len(self.mappers_) - 1: + epochs_per_samples.append( + make_epochs_per_sample(mapper.graph_.tocoo().data, n_epochs) + ) + else: + epochs_per_samples.append( + np.full(mapper.embedding_.shape[0], n_epochs + 1, dtype=np.float64) + ) + + new_regularisation_weights = build_neighborhood_similarities( + indptr_list, + indices_list, + new_relations, + ) + + # TODO: We can likely make this more efficient and not recompute each time + inv_dict_relations = invert_dict(new_dict_relations) + + new_embedding = init_from_existing( + self.embeddings_[-1], new_mapper.graph_, inv_dict_relations + ) + + self.embeddings_.append(new_embedding) + + rng_state_transform = np.random.RandomState(self.transform_seed) + seed_triplet = rng_state_transform.randint(INT32_MIN, INT32_MAX, 3).astype( + np.int64 + ) + self.embeddings_ = optimize_layout_aligned_euclidean( + self.embeddings_, + self.embeddings_, + heads, + tails, + n_epochs, + epochs_per_samples, + new_regularisation_weights, + new_relations, + seed_triplet, + lambda_=self.alignment_regularisation, + ) diff --git a/shared/package-files/0a/0ac622af1a0ba87c01884c8d6ce806759331e0bb7769d299fbbb95bf5829cc26/bsr.py b/shared/package-files/0a/0ac622af1a0ba87c01884c8d6ce806759331e0bb7769d299fbbb95bf5829cc26/bsr.py new file mode 100644 index 0000000000000000000000000000000000000000..c686301a78fc3e2221600eb06035a5cb12898cdb --- /dev/null +++ b/shared/package-files/0a/0ac622af1a0ba87c01884c8d6ce806759331e0bb7769d299fbbb95bf5829cc26/bsr.py @@ -0,0 +1,36 @@ +# 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 + 'bsr_matmat', + 'bsr_matrix', + 'bsr_matvec', + 'bsr_matvecs', + 'bsr_sort_indices', + 'bsr_tocsr', + 'bsr_transpose', + 'check_shape', + 'csr_matmat_maxnnz', + 'getdata', + 'getdtype', + 'isshape', + 'isspmatrix_bsr', + 'spmatrix', + 'to_native', + 'upcast', + 'warn', +] + + +def __dir__(): + return __all__ + + +def __getattr__(name): + return _sub_module_deprecation(sub_package="sparse", module="bsr", + private_modules=["_bsr"], all=__all__, + attribute=name) diff --git a/shared/package-files/0a/0ac6af8a2471c6ba60557e1b966eca0b22bce79de58f02f8e3190939e0b953b5/errors.py b/shared/package-files/0a/0ac6af8a2471c6ba60557e1b966eca0b22bce79de58f02f8e3190939e0b953b5/errors.py new file mode 100644 index 0000000000000000000000000000000000000000..18cbebbaf91ff7d5a515321a006be3eb1d83faaf --- /dev/null +++ b/shared/package-files/0a/0ac6af8a2471c6ba60557e1b966eca0b22bce79de58f02f8e3190939e0b953b5/errors.py @@ -0,0 +1,2 @@ +class ColorLibError(Exception): + pass diff --git a/shared/package-files/0a/0ac8444d589b674febc1b36ad32eec3e4cd28275e9c08ec552dbc08fc79f53a4/_openpyxl.py b/shared/package-files/0a/0ac8444d589b674febc1b36ad32eec3e4cd28275e9c08ec552dbc08fc79f53a4/_openpyxl.py new file mode 100644 index 0000000000000000000000000000000000000000..c546443868a62aed062bf3fd41d80933e4fbc59e --- /dev/null +++ b/shared/package-files/0a/0ac8444d589b674febc1b36ad32eec3e4cd28275e9c08ec552dbc08fc79f53a4/_openpyxl.py @@ -0,0 +1,639 @@ +from __future__ import annotations + +import mmap +from typing import ( + TYPE_CHECKING, + Any, + cast, +) + +import numpy as np + +from pandas.compat._optional import import_optional_dependency +from pandas.util._decorators import doc + +from pandas.core.shared_docs import _shared_docs + +from pandas.io.excel._base import ( + BaseExcelReader, + ExcelWriter, +) +from pandas.io.excel._util import ( + combine_kwargs, + validate_freeze_panes, +) + +if TYPE_CHECKING: + from openpyxl import Workbook + from openpyxl.descriptors.serialisable import Serialisable + + from pandas._typing import ( + ExcelWriterIfSheetExists, + FilePath, + ReadBuffer, + Scalar, + StorageOptions, + WriteExcelBuffer, + ) + + +class OpenpyxlWriter(ExcelWriter): + _engine = "openpyxl" + _supported_extensions = (".xlsx", ".xlsm") + + def __init__( + self, + path: FilePath | WriteExcelBuffer | ExcelWriter, + engine: str | None = None, + date_format: str | None = None, + datetime_format: str | None = None, + mode: str = "w", + storage_options: StorageOptions | None = None, + if_sheet_exists: ExcelWriterIfSheetExists | None = None, + engine_kwargs: dict[str, Any] | None = None, + **kwargs, + ) -> None: + # Use the openpyxl module as the Excel writer. + from openpyxl.workbook import Workbook + + engine_kwargs = combine_kwargs(engine_kwargs, kwargs) + + super().__init__( + path, + mode=mode, + storage_options=storage_options, + if_sheet_exists=if_sheet_exists, + engine_kwargs=engine_kwargs, + ) + + # ExcelWriter replaced "a" by "r+" to allow us to first read the excel file from + # the file and later write to it + if "r+" in self._mode: # Load from existing workbook + from openpyxl import load_workbook + + try: + self._book = load_workbook(self._handles.handle, **engine_kwargs) + except TypeError: + self._handles.handle.close() + raise + self._handles.handle.seek(0) + else: + # Create workbook object with default optimized_write=True. + try: + self._book = Workbook(**engine_kwargs) + except TypeError: + self._handles.handle.close() + raise + + if self.book.worksheets: + self.book.remove(self.book.worksheets[0]) + + @property + def book(self) -> Workbook: + """ + Book instance of class openpyxl.workbook.Workbook. + + This attribute can be used to access engine-specific features. + """ + return self._book + + @property + def sheets(self) -> dict[str, Any]: + """Mapping of sheet names to sheet objects.""" + result = {name: self.book[name] for name in self.book.sheetnames} + return result + + def _save(self) -> None: + """ + Save workbook to disk. + """ + self.book.save(self._handles.handle) + if "r+" in self._mode and not isinstance(self._handles.handle, mmap.mmap): + # truncate file to the written content + self._handles.handle.truncate() + + @classmethod + def _convert_to_style_kwargs(cls, style_dict: dict) -> dict[str, Serialisable]: + """ + Convert a style_dict to a set of kwargs suitable for initializing + or updating-on-copy an openpyxl v2 style object. + + Parameters + ---------- + style_dict : dict + A dict with zero or more of the following keys (or their synonyms). + 'font' + 'fill' + 'border' ('borders') + 'alignment' + 'number_format' + 'protection' + + Returns + ------- + style_kwargs : dict + A dict with the same, normalized keys as ``style_dict`` but each + value has been replaced with a native openpyxl style object of the + appropriate class. + """ + _style_key_map = {"borders": "border"} + + style_kwargs: dict[str, Serialisable] = {} + for k, v in style_dict.items(): + k = _style_key_map.get(k, k) + _conv_to_x = getattr(cls, f"_convert_to_{k}", lambda x: None) + new_v = _conv_to_x(v) + if new_v: + style_kwargs[k] = new_v + + return style_kwargs + + @classmethod + def _convert_to_color(cls, color_spec): + """ + Convert ``color_spec`` to an openpyxl v2 Color object. + + Parameters + ---------- + color_spec : str, dict + A 32-bit ARGB hex string, or a dict with zero or more of the + following keys. + 'rgb' + 'indexed' + 'auto' + 'theme' + 'tint' + 'index' + 'type' + + Returns + ------- + color : openpyxl.styles.Color + """ + from openpyxl.styles import Color + + if isinstance(color_spec, str): + return Color(color_spec) + else: + return Color(**color_spec) + + @classmethod + def _convert_to_font(cls, font_dict): + """ + Convert ``font_dict`` to an openpyxl v2 Font object. + + Parameters + ---------- + font_dict : dict + A dict with zero or more of the following keys (or their synonyms). + 'name' + 'size' ('sz') + 'bold' ('b') + 'italic' ('i') + 'underline' ('u') + 'strikethrough' ('strike') + 'color' + 'vertAlign' ('vertalign') + 'charset' + 'scheme' + 'family' + 'outline' + 'shadow' + 'condense' + + Returns + ------- + font : openpyxl.styles.Font + """ + from openpyxl.styles import Font + + _font_key_map = { + "sz": "size", + "b": "bold", + "i": "italic", + "u": "underline", + "strike": "strikethrough", + "vertalign": "vertAlign", + } + + font_kwargs = {} + for k, v in font_dict.items(): + k = _font_key_map.get(k, k) + if k == "color": + v = cls._convert_to_color(v) + font_kwargs[k] = v + + return Font(**font_kwargs) + + @classmethod + def _convert_to_stop(cls, stop_seq): + """ + Convert ``stop_seq`` to a list of openpyxl v2 Color objects, + suitable for initializing the ``GradientFill`` ``stop`` parameter. + + Parameters + ---------- + stop_seq : iterable + An iterable that yields objects suitable for consumption by + ``_convert_to_color``. + + Returns + ------- + stop : list of openpyxl.styles.Color + """ + return map(cls._convert_to_color, stop_seq) + + @classmethod + def _convert_to_fill(cls, fill_dict: dict[str, Any]): + """ + Convert ``fill_dict`` to an openpyxl v2 Fill object. + + Parameters + ---------- + fill_dict : dict + A dict with one or more of the following keys (or their synonyms), + 'fill_type' ('patternType', 'patterntype') + 'start_color' ('fgColor', 'fgcolor') + 'end_color' ('bgColor', 'bgcolor') + or one or more of the following keys (or their synonyms). + 'type' ('fill_type') + 'degree' + 'left' + 'right' + 'top' + 'bottom' + 'stop' + + Returns + ------- + fill : openpyxl.styles.Fill + """ + from openpyxl.styles import ( + GradientFill, + PatternFill, + ) + + _pattern_fill_key_map = { + "patternType": "fill_type", + "patterntype": "fill_type", + "fgColor": "start_color", + "fgcolor": "start_color", + "bgColor": "end_color", + "bgcolor": "end_color", + } + + _gradient_fill_key_map = {"fill_type": "type"} + + pfill_kwargs = {} + gfill_kwargs = {} + for k, v in fill_dict.items(): + pk = _pattern_fill_key_map.get(k) + gk = _gradient_fill_key_map.get(k) + if pk in ["start_color", "end_color"]: + v = cls._convert_to_color(v) + if gk == "stop": + v = cls._convert_to_stop(v) + if pk: + pfill_kwargs[pk] = v + elif gk: + gfill_kwargs[gk] = v + else: + pfill_kwargs[k] = v + gfill_kwargs[k] = v + + try: + return PatternFill(**pfill_kwargs) + except TypeError: + return GradientFill(**gfill_kwargs) + + @classmethod + def _convert_to_side(cls, side_spec): + """ + Convert ``side_spec`` to an openpyxl v2 Side object. + + Parameters + ---------- + side_spec : str, dict + A string specifying the border style, or a dict with zero or more + of the following keys (or their synonyms). + 'style' ('border_style') + 'color' + + Returns + ------- + side : openpyxl.styles.Side + """ + from openpyxl.styles import Side + + _side_key_map = {"border_style": "style"} + + if isinstance(side_spec, str): + return Side(style=side_spec) + + side_kwargs = {} + for k, v in side_spec.items(): + k = _side_key_map.get(k, k) + if k == "color": + v = cls._convert_to_color(v) + side_kwargs[k] = v + + return Side(**side_kwargs) + + @classmethod + def _convert_to_border(cls, border_dict): + """ + Convert ``border_dict`` to an openpyxl v2 Border object. + + Parameters + ---------- + border_dict : dict + A dict with zero or more of the following keys (or their synonyms). + 'left' + 'right' + 'top' + 'bottom' + 'diagonal' + 'diagonal_direction' + 'vertical' + 'horizontal' + 'diagonalUp' ('diagonalup') + 'diagonalDown' ('diagonaldown') + 'outline' + + Returns + ------- + border : openpyxl.styles.Border + """ + from openpyxl.styles import Border + + _border_key_map = {"diagonalup": "diagonalUp", "diagonaldown": "diagonalDown"} + + border_kwargs = {} + for k, v in border_dict.items(): + k = _border_key_map.get(k, k) + if k == "color": + v = cls._convert_to_color(v) + if k in ["left", "right", "top", "bottom", "diagonal"]: + v = cls._convert_to_side(v) + border_kwargs[k] = v + + return Border(**border_kwargs) + + @classmethod + def _convert_to_alignment(cls, alignment_dict): + """ + Convert ``alignment_dict`` to an openpyxl v2 Alignment object. + + Parameters + ---------- + alignment_dict : dict + A dict with zero or more of the following keys (or their synonyms). + 'horizontal' + 'vertical' + 'text_rotation' + 'wrap_text' + 'shrink_to_fit' + 'indent' + Returns + ------- + alignment : openpyxl.styles.Alignment + """ + from openpyxl.styles import Alignment + + return Alignment(**alignment_dict) + + @classmethod + def _convert_to_number_format(cls, number_format_dict): + """ + Convert ``number_format_dict`` to an openpyxl v2.1.0 number format + initializer. + + Parameters + ---------- + number_format_dict : dict + A dict with zero or more of the following keys. + 'format_code' : str + + Returns + ------- + number_format : str + """ + return number_format_dict["format_code"] + + @classmethod + def _convert_to_protection(cls, protection_dict): + """ + Convert ``protection_dict`` to an openpyxl v2 Protection object. + + Parameters + ---------- + protection_dict : dict + A dict with zero or more of the following keys. + 'locked' + 'hidden' + + Returns + ------- + """ + from openpyxl.styles import Protection + + return Protection(**protection_dict) + + def _write_cells( + self, + cells, + sheet_name: str | None = None, + startrow: int = 0, + startcol: int = 0, + freeze_panes: tuple[int, int] | None = None, + ) -> None: + # Write the frame cells using openpyxl. + sheet_name = self._get_sheet_name(sheet_name) + + _style_cache: dict[str, dict[str, Serialisable]] = {} + + if sheet_name in self.sheets and self._if_sheet_exists != "new": + if "r+" in self._mode: + if self._if_sheet_exists == "replace": + old_wks = self.sheets[sheet_name] + target_index = self.book.index(old_wks) + del self.book[sheet_name] + wks = self.book.create_sheet(sheet_name, target_index) + elif self._if_sheet_exists == "error": + raise ValueError( + f"Sheet '{sheet_name}' already exists and " + f"if_sheet_exists is set to 'error'." + ) + elif self._if_sheet_exists == "overlay": + wks = self.sheets[sheet_name] + else: + raise ValueError( + f"'{self._if_sheet_exists}' is not valid for if_sheet_exists. " + "Valid options are 'error', 'new', 'replace' and 'overlay'." + ) + else: + wks = self.sheets[sheet_name] + else: + wks = self.book.create_sheet() + wks.title = sheet_name + + if validate_freeze_panes(freeze_panes): + freeze_panes = cast(tuple[int, int], freeze_panes) + wks.freeze_panes = wks.cell( + row=freeze_panes[0] + 1, column=freeze_panes[1] + 1 + ) + + for cell in cells: + xcell = wks.cell( + row=startrow + cell.row + 1, column=startcol + cell.col + 1 + ) + xcell.value, fmt = self._value_with_fmt(cell.val) + if fmt: + xcell.number_format = fmt + + style_kwargs: dict[str, Serialisable] | None = {} + if cell.style: + key = str(cell.style) + style_kwargs = _style_cache.get(key) + if style_kwargs is None: + style_kwargs = self._convert_to_style_kwargs(cell.style) + _style_cache[key] = style_kwargs + + if style_kwargs: + for k, v in style_kwargs.items(): + setattr(xcell, k, v) + + if cell.mergestart is not None and cell.mergeend is not None: + wks.merge_cells( + start_row=startrow + cell.row + 1, + start_column=startcol + cell.col + 1, + end_column=startcol + cell.mergeend + 1, + end_row=startrow + cell.mergestart + 1, + ) + + # When cells are merged only the top-left cell is preserved + # The behaviour of the other cells in a merged range is + # undefined + if style_kwargs: + first_row = startrow + cell.row + 1 + last_row = startrow + cell.mergestart + 1 + first_col = startcol + cell.col + 1 + last_col = startcol + cell.mergeend + 1 + + for row in range(first_row, last_row + 1): + for col in range(first_col, last_col + 1): + if row == first_row and col == first_col: + # Ignore first cell. It is already handled. + continue + xcell = wks.cell(column=col, row=row) + for k, v in style_kwargs.items(): + setattr(xcell, k, v) + + +class OpenpyxlReader(BaseExcelReader["Workbook"]): + @doc(storage_options=_shared_docs["storage_options"]) + def __init__( + self, + filepath_or_buffer: FilePath | ReadBuffer[bytes], + storage_options: StorageOptions | None = None, + engine_kwargs: dict | None = None, + ) -> None: + """ + Reader using openpyxl engine. + + Parameters + ---------- + filepath_or_buffer : str, path object or Workbook + Object to be parsed. + {storage_options} + engine_kwargs : dict, optional + Arbitrary keyword arguments passed to excel engine. + """ + import_optional_dependency("openpyxl") + super().__init__( + filepath_or_buffer, + storage_options=storage_options, + engine_kwargs=engine_kwargs, + ) + + @property + def _workbook_class(self) -> type[Workbook]: + from openpyxl import Workbook + + return Workbook + + def load_workbook( + self, filepath_or_buffer: FilePath | ReadBuffer[bytes], engine_kwargs + ) -> Workbook: + from openpyxl import load_workbook + + default_kwargs = {"read_only": True, "data_only": True, "keep_links": False} + + return load_workbook( + filepath_or_buffer, + **(default_kwargs | engine_kwargs), + ) + + @property + def sheet_names(self) -> list[str]: + return [sheet.title for sheet in self.book.worksheets] + + def get_sheet_by_name(self, name: str): + self.raise_if_bad_sheet_by_name(name) + return self.book[name] + + def get_sheet_by_index(self, index: int): + self.raise_if_bad_sheet_by_index(index) + return self.book.worksheets[index] + + def _convert_cell(self, cell) -> Scalar: + from openpyxl.cell.cell import ( + TYPE_ERROR, + TYPE_NUMERIC, + ) + + if cell.value is None: + return "" # compat with xlrd + elif cell.data_type == TYPE_ERROR: + return np.nan + elif cell.data_type == TYPE_NUMERIC: + val = int(cell.value) + if val == cell.value: + return val + return float(cell.value) + + return cell.value + + def get_sheet_data( + self, sheet, file_rows_needed: int | None = None + ) -> list[list[Scalar]]: + if self.book.read_only: + sheet.reset_dimensions() + + data: list[list[Scalar]] = [] + last_row_with_data = -1 + for row_number, row in enumerate(sheet.rows): + converted_row = [self._convert_cell(cell) for cell in row] + while converted_row and converted_row[-1] == "": + # trim trailing empty elements + converted_row.pop() + if converted_row: + last_row_with_data = row_number + data.append(converted_row) + if file_rows_needed is not None and len(data) >= file_rows_needed: + break + + # Trim trailing empty rows + data = data[: last_row_with_data + 1] + + if len(data) > 0: + # extend rows to max width + max_width = max(len(data_row) for data_row in data) + if min(len(data_row) for data_row in data) < max_width: + empty_cell: list[Scalar] = [""] + data = [ + data_row + (max_width - len(data_row)) * empty_cell + for data_row in data + ] + + return data diff --git a/shared/package-files/0a/0ac9d11d4046ef4d8e6d219f6941bf69c6ae448c6a1c2f7fc382f84b5786f660/mkpsenc.tcl b/shared/package-files/0a/0ac9d11d4046ef4d8e6d219f6941bf69c6ae448c6a1c2f7fc382f84b5786f660/mkpsenc.tcl new file mode 100644 index 0000000000000000000000000000000000000000..b3fd13d953c3b6ce7f223888e9ff886a27777f33 --- /dev/null +++ b/shared/package-files/0a/0ac9d11d4046ef4d8e6d219f6941bf69c6ae448c6a1c2f7fc382f84b5786f660/mkpsenc.tcl @@ -0,0 +1,1488 @@ +# mkpsenc.tcl -- +# +# This file generates the postscript prolog used by Tk. + +namespace eval ::tk { + # Creates Postscript encoding vector for ISO-8859-1 (could theoretically + # handle any 8-bit encoding, but Tk never generates characters outside + # ASCII). + # + proc CreatePostscriptEncoding {} { + variable psglyphs + # Now check for known. Even if it is known, it can be other than we + # need. GhostScript seems to be happy with such approach + set result "\[\n" + for {set i 0} {$i<256} {incr i 8} { + for {set j 0} {$j<8} {incr j} { + set enc [encoding convertfrom "iso8859-1" \ + [format %c [expr {$i+$j}]]] + catch { + set hexcode {} + set hexcode [format %04X [scan $enc %c]] + } + if {[info exists psglyphs($hexcode)]} { + append result "/$psglyphs($hexcode)" + } else { + append result "/space" + } + } + append result "\n" + } + append result "\]" + return $result + } + + # List of adobe glyph names. Converted from glyphlist.txt, downloaded from + # Adobe. + + variable psglyphs + array set psglyphs { + 0020 space + 0021 exclam + 0022 quotedbl + 0023 numbersign + 0024 dollar + 0025 percent + 0026 ampersand + 0027 quotesingle + 0028 parenleft + 0029 parenright + 002A asterisk + 002B plus + 002C comma + 002D hyphen + 002E period + 002F slash + 0030 zero + 0031 one + 0032 two + 0033 three + 0034 four + 0035 five + 0036 six + 0037 seven + 0038 eight + 0039 nine + 003A colon + 003B semicolon + 003C less + 003D equal + 003E greater + 003F question + 0040 at + 0041 A + 0042 B + 0043 C + 0044 D + 0045 E + 0046 F + 0047 G + 0048 H + 0049 I + 004A J + 004B K + 004C L + 004D M + 004E N + 004F O + 0050 P + 0051 Q + 0052 R + 0053 S + 0054 T + 0055 U + 0056 V + 0057 W + 0058 X + 0059 Y + 005A Z + 005B bracketleft + 005C backslash + 005D bracketright + 005E asciicircum + 005F underscore + 0060 grave + 0061 a + 0062 b + 0063 c + 0064 d + 0065 e + 0066 f + 0067 g + 0068 h + 0069 i + 006A j + 006B k + 006C l + 006D m + 006E n + 006F o + 0070 p + 0071 q + 0072 r + 0073 s + 0074 t + 0075 u + 0076 v + 0077 w + 0078 x + 0079 y + 007A z + 007B braceleft + 007C bar + 007D braceright + 007E asciitilde + 00A0 space + 00A1 exclamdown + 00A2 cent + 00A3 sterling + 00A4 currency + 00A5 yen + 00A6 brokenbar + 00A7 section + 00A8 dieresis + 00A9 copyright + 00AA ordfeminine + 00AB guillemotleft + 00AC logicalnot + 00AD hyphen + 00AE registered + 00AF macron + 00B0 degree + 00B1 plusminus + 00B2 twosuperior + 00B3 threesuperior + 00B4 acute + 00B5 mu + 00B6 paragraph + 00B7 periodcentered + 00B8 cedilla + 00B9 onesuperior + 00BA ordmasculine + 00BB guillemotright + 00BC onequarter + 00BD onehalf + 00BE threequarters + 00BF questiondown + 00C0 Agrave + 00C1 Aacute + 00C2 Acircumflex + 00C3 Atilde + 00C4 Adieresis + 00C5 Aring + 00C6 AE + 00C7 Ccedilla + 00C8 Egrave + 00C9 Eacute + 00CA Ecircumflex + 00CB Edieresis + 00CC Igrave + 00CD Iacute + 00CE Icircumflex + 00CF Idieresis + 00D0 Eth + 00D1 Ntilde + 00D2 Ograve + 00D3 Oacute + 00D4 Ocircumflex + 00D5 Otilde + 00D6 Odieresis + 00D7 multiply + 00D8 Oslash + 00D9 Ugrave + 00DA Uacute + 00DB Ucircumflex + 00DC Udieresis + 00DD Yacute + 00DE Thorn + 00DF germandbls + 00E0 agrave + 00E1 aacute + 00E2 acircumflex + 00E3 atilde + 00E4 adieresis + 00E5 aring + 00E6 ae + 00E7 ccedilla + 00E8 egrave + 00E9 eacute + 00EA ecircumflex + 00EB edieresis + 00EC igrave + 00ED iacute + 00EE icircumflex + 00EF idieresis + 00F0 eth + 00F1 ntilde + 00F2 ograve + 00F3 oacute + 00F4 ocircumflex + 00F5 otilde + 00F6 odieresis + 00F7 divide + 00F8 oslash + 00F9 ugrave + 00FA uacute + 00FB ucircumflex + 00FC udieresis + 00FD yacute + 00FE thorn + 00FF ydieresis + 0100 Amacron + 0101 amacron + 0102 Abreve + 0103 abreve + 0104 Aogonek + 0105 aogonek + 0106 Cacute + 0107 cacute + 0108 Ccircumflex + 0109 ccircumflex + 010A Cdotaccent + 010B cdotaccent + 010C Ccaron + 010D ccaron + 010E Dcaron + 010F dcaron + 0110 Dcroat + 0111 dcroat + 0112 Emacron + 0113 emacron + 0114 Ebreve + 0115 ebreve + 0116 Edotaccent + 0117 edotaccent + 0118 Eogonek + 0119 eogonek + 011A Ecaron + 011B ecaron + 011C Gcircumflex + 011D gcircumflex + 011E Gbreve + 011F gbreve + 0120 Gdotaccent + 0121 gdotaccent + 0122 Gcommaaccent + 0123 gcommaaccent + 0124 Hcircumflex + 0125 hcircumflex + 0126 Hbar + 0127 hbar + 0128 Itilde + 0129 itilde + 012A Imacron + 012B imacron + 012C Ibreve + 012D ibreve + 012E Iogonek + 012F iogonek + 0130 Idotaccent + 0131 dotlessi + 0132 IJ + 0133 ij + 0134 Jcircumflex + 0135 jcircumflex + 0136 Kcommaaccent + 0137 kcommaaccent + 0138 kgreenlandic + 0139 Lacute + 013A lacute + 013B Lcommaaccent + 013C lcommaaccent + 013D Lcaron + 013E lcaron + 013F Ldot + 0140 ldot + 0141 Lslash + 0142 lslash + 0143 Nacute + 0144 nacute + 0145 Ncommaaccent + 0146 ncommaaccent + 0147 Ncaron + 0148 ncaron + 0149 napostrophe + 014A Eng + 014B eng + 014C Omacron + 014D omacron + 014E Obreve + 014F obreve + 0150 Ohungarumlaut + 0151 ohungarumlaut + 0152 OE + 0153 oe + 0154 Racute + 0155 racute + 0156 Rcommaaccent + 0157 rcommaaccent + 0158 Rcaron + 0159 rcaron + 015A Sacute + 015B sacute + 015C Scircumflex + 015D scircumflex + 015E Scedilla + 015F scedilla + 0160 Scaron + 0161 scaron + 0162 Tcommaaccent + 0163 tcommaaccent + 0164 Tcaron + 0165 tcaron + 0166 Tbar + 0167 tbar + 0168 Utilde + 0169 utilde + 016A Umacron + 016B umacron + 016C Ubreve + 016D ubreve + 016E Uring + 016F uring + 0170 Uhungarumlaut + 0171 uhungarumlaut + 0172 Uogonek + 0173 uogonek + 0174 Wcircumflex + 0175 wcircumflex + 0176 Ycircumflex + 0177 ycircumflex + 0178 Ydieresis + 0179 Zacute + 017A zacute + 017B Zdotaccent + 017C zdotaccent + 017D Zcaron + 017E zcaron + 017F longs + 0192 florin + 01A0 Ohorn + 01A1 ohorn + 01AF Uhorn + 01B0 uhorn + 01E6 Gcaron + 01E7 gcaron + 01FA Aringacute + 01FB aringacute + 01FC AEacute + 01FD aeacute + 01FE Oslashacute + 01FF oslashacute + 0218 Scommaaccent + 0219 scommaaccent + 021A Tcommaaccent + 021B tcommaaccent + 02BC afii57929 + 02BD afii64937 + 02C6 circumflex + 02C7 caron + 02C9 macron + 02D8 breve + 02D9 dotaccent + 02DA ring + 02DB ogonek + 02DC tilde + 02DD hungarumlaut + 0300 gravecomb + 0301 acutecomb + 0303 tildecomb + 0309 hookabovecomb + 0323 dotbelowcomb + 0384 tonos + 0385 dieresistonos + 0386 Alphatonos + 0387 anoteleia + 0388 Epsilontonos + 0389 Etatonos + 038A Iotatonos + 038C Omicrontonos + 038E Upsilontonos + 038F Omegatonos + 0390 iotadieresistonos + 0391 Alpha + 0392 Beta + 0393 Gamma + 0394 Delta + 0395 Epsilon + 0396 Zeta + 0397 Eta + 0398 Theta + 0399 Iota + 039A Kappa + 039B Lambda + 039C Mu + 039D Nu + 039E Xi + 039F Omicron + 03A0 Pi + 03A1 Rho + 03A3 Sigma + 03A4 Tau + 03A5 Upsilon + 03A6 Phi + 03A7 Chi + 03A8 Psi + 03A9 Omega + 03AA Iotadieresis + 03AB Upsilondieresis + 03AC alphatonos + 03AD epsilontonos + 03AE etatonos + 03AF iotatonos + 03B0 upsilondieresistonos + 03B1 alpha + 03B2 beta + 03B3 gamma + 03B4 delta + 03B5 epsilon + 03B6 zeta + 03B7 eta + 03B8 theta + 03B9 iota + 03BA kappa + 03BB lambda + 03BC mu + 03BD nu + 03BE xi + 03BF omicron + 03C0 pi + 03C1 rho + 03C2 sigma1 + 03C3 sigma + 03C4 tau + 03C5 upsilon + 03C6 phi + 03C7 chi + 03C8 psi + 03C9 omega + 03CA iotadieresis + 03CB upsilondieresis + 03CC omicrontonos + 03CD upsilontonos + 03CE omegatonos + 03D1 theta1 + 03D2 Upsilon1 + 03D5 phi1 + 03D6 omega1 + 0401 afii10023 + 0402 afii10051 + 0403 afii10052 + 0404 afii10053 + 0405 afii10054 + 0406 afii10055 + 0407 afii10056 + 0408 afii10057 + 0409 afii10058 + 040A afii10059 + 040B afii10060 + 040C afii10061 + 040E afii10062 + 040F afii10145 + 0410 afii10017 + 0411 afii10018 + 0412 afii10019 + 0413 afii10020 + 0414 afii10021 + 0415 afii10022 + 0416 afii10024 + 0417 afii10025 + 0418 afii10026 + 0419 afii10027 + 041A afii10028 + 041B afii10029 + 041C afii10030 + 041D afii10031 + 041E afii10032 + 041F afii10033 + 0420 afii10034 + 0421 afii10035 + 0422 afii10036 + 0423 afii10037 + 0424 afii10038 + 0425 afii10039 + 0426 afii10040 + 0427 afii10041 + 0428 afii10042 + 0429 afii10043 + 042A afii10044 + 042B afii10045 + 042C afii10046 + 042D afii10047 + 042E afii10048 + 042F afii10049 + 0430 afii10065 + 0431 afii10066 + 0432 afii10067 + 0433 afii10068 + 0434 afii10069 + 0435 afii10070 + 0436 afii10072 + 0437 afii10073 + 0438 afii10074 + 0439 afii10075 + 043A afii10076 + 043B afii10077 + 043C afii10078 + 043D afii10079 + 043E afii10080 + 043F afii10081 + 0440 afii10082 + 0441 afii10083 + 0442 afii10084 + 0443 afii10085 + 0444 afii10086 + 0445 afii10087 + 0446 afii10088 + 0447 afii10089 + 0448 afii10090 + 0449 afii10091 + 044A afii10092 + 044B afii10093 + 044C afii10094 + 044D afii10095 + 044E afii10096 + 044F afii10097 + 0451 afii10071 + 0452 afii10099 + 0453 afii10100 + 0454 afii10101 + 0455 afii10102 + 0456 afii10103 + 0457 afii10104 + 0458 afii10105 + 0459 afii10106 + 045A afii10107 + 045B afii10108 + 045C afii10109 + 045E afii10110 + 045F afii10193 + 0462 afii10146 + 0463 afii10194 + 0472 afii10147 + 0473 afii10195 + 0474 afii10148 + 0475 afii10196 + 0490 afii10050 + 0491 afii10098 + 04D9 afii10846 + 05B0 afii57799 + 05B1 afii57801 + 05B2 afii57800 + 05B3 afii57802 + 05B4 afii57793 + 05B5 afii57794 + 05B6 afii57795 + 05B7 afii57798 + 05B8 afii57797 + 05B9 afii57806 + 05BB afii57796 + 05BC afii57807 + 05BD afii57839 + 05BE afii57645 + 05BF afii57841 + 05C0 afii57842 + 05C1 afii57804 + 05C2 afii57803 + 05C3 afii57658 + 05D0 afii57664 + 05D1 afii57665 + 05D2 afii57666 + 05D3 afii57667 + 05D4 afii57668 + 05D5 afii57669 + 05D6 afii57670 + 05D7 afii57671 + 05D8 afii57672 + 05D9 afii57673 + 05DA afii57674 + 05DB afii57675 + 05DC afii57676 + 05DD afii57677 + 05DE afii57678 + 05DF afii57679 + 05E0 afii57680 + 05E1 afii57681 + 05E2 afii57682 + 05E3 afii57683 + 05E4 afii57684 + 05E5 afii57685 + 05E6 afii57686 + 05E7 afii57687 + 05E8 afii57688 + 05E9 afii57689 + 05EA afii57690 + 05F0 afii57716 + 05F1 afii57717 + 05F2 afii57718 + 060C afii57388 + 061B afii57403 + 061F afii57407 + 0621 afii57409 + 0622 afii57410 + 0623 afii57411 + 0624 afii57412 + 0625 afii57413 + 0626 afii57414 + 0627 afii57415 + 0628 afii57416 + 0629 afii57417 + 062A afii57418 + 062B afii57419 + 062C afii57420 + 062D afii57421 + 062E afii57422 + 062F afii57423 + 0630 afii57424 + 0631 afii57425 + 0632 afii57426 + 0633 afii57427 + 0634 afii57428 + 0635 afii57429 + 0636 afii57430 + 0637 afii57431 + 0638 afii57432 + 0639 afii57433 + 063A afii57434 + 0640 afii57440 + 0641 afii57441 + 0642 afii57442 + 0643 afii57443 + 0644 afii57444 + 0645 afii57445 + 0646 afii57446 + 0647 afii57470 + 0648 afii57448 + 0649 afii57449 + 064A afii57450 + 064B afii57451 + 064C afii57452 + 064D afii57453 + 064E afii57454 + 064F afii57455 + 0650 afii57456 + 0651 afii57457 + 0652 afii57458 + 0660 afii57392 + 0661 afii57393 + 0662 afii57394 + 0663 afii57395 + 0664 afii57396 + 0665 afii57397 + 0666 afii57398 + 0667 afii57399 + 0668 afii57400 + 0669 afii57401 + 066A afii57381 + 066D afii63167 + 0679 afii57511 + 067E afii57506 + 0686 afii57507 + 0688 afii57512 + 0691 afii57513 + 0698 afii57508 + 06A4 afii57505 + 06AF afii57509 + 06BA afii57514 + 06D2 afii57519 + 06D5 afii57534 + 1E80 Wgrave + 1E81 wgrave + 1E82 Wacute + 1E83 wacute + 1E84 Wdieresis + 1E85 wdieresis + 1EF2 Ygrave + 1EF3 ygrave + 200C afii61664 + 200D afii301 + 200E afii299 + 200F afii300 + 2012 figuredash + 2013 endash + 2014 emdash + 2015 afii00208 + 2017 underscoredbl + 2018 quoteleft + 2019 quoteright + 201A quotesinglbase + 201B quotereversed + 201C quotedblleft + 201D quotedblright + 201E quotedblbase + 2020 dagger + 2021 daggerdbl + 2022 bullet + 2024 onedotenleader + 2025 twodotenleader + 2026 ellipsis + 202C afii61573 + 202D afii61574 + 202E afii61575 + 2030 perthousand + 2032 minute + 2033 second + 2039 guilsinglleft + 203A guilsinglright + 203C exclamdbl + 2044 fraction + 2070 zerosuperior + 2074 foursuperior + 2075 fivesuperior + 2076 sixsuperior + 2077 sevensuperior + 2078 eightsuperior + 2079 ninesuperior + 207D parenleftsuperior + 207E parenrightsuperior + 207F nsuperior + 2080 zeroinferior + 2081 oneinferior + 2082 twoinferior + 2083 threeinferior + 2084 fourinferior + 2085 fiveinferior + 2086 sixinferior + 2087 seveninferior + 2088 eightinferior + 2089 nineinferior + 208D parenleftinferior + 208E parenrightinferior + 20A1 colonmonetary + 20A3 franc + 20A4 lira + 20A7 peseta + 20AA afii57636 + 20AB dong + 20AC Euro + 2105 afii61248 + 2111 Ifraktur + 2113 afii61289 + 2116 afii61352 + 2118 weierstrass + 211C Rfraktur + 211E prescription + 2122 trademark + 2126 Omega + 212E estimated + 2135 aleph + 2153 onethird + 2154 twothirds + 215B oneeighth + 215C threeeighths + 215D fiveeighths + 215E seveneighths + 2190 arrowleft + 2191 arrowup + 2192 arrowright + 2193 arrowdown + 2194 arrowboth + 2195 arrowupdn + 21A8 arrowupdnbse + 21B5 carriagereturn + 21D0 arrowdblleft + 21D1 arrowdblup + 21D2 arrowdblright + 21D3 arrowdbldown + 21D4 arrowdblboth + 2200 universal + 2202 partialdiff + 2203 existential + 2205 emptyset + 2206 Delta + 2207 gradient + 2208 element + 2209 notelement + 220B suchthat + 220F product + 2211 summation + 2212 minus + 2215 fraction + 2217 asteriskmath + 2219 periodcentered + 221A radical + 221D proportional + 221E infinity + 221F orthogonal + 2220 angle + 2227 logicaland + 2228 logicalor + 2229 intersection + 222A union + 222B integral + 2234 therefore + 223C similar + 2245 congruent + 2248 approxequal + 2260 notequal + 2261 equivalence + 2264 lessequal + 2265 greaterequal + 2282 propersubset + 2283 propersuperset + 2284 notsubset + 2286 reflexsubset + 2287 reflexsuperset + 2295 circleplus + 2297 circlemultiply + 22A5 perpendicular + 22C5 dotmath + 2302 house + 2310 revlogicalnot + 2320 integraltp + 2321 integralbt + 2329 angleleft + 232A angleright + 2500 SF100000 + 2502 SF110000 + 250C SF010000 + 2510 SF030000 + 2514 SF020000 + 2518 SF040000 + 251C SF080000 + 2524 SF090000 + 252C SF060000 + 2534 SF070000 + 253C SF050000 + 2550 SF430000 + 2551 SF240000 + 2552 SF510000 + 2553 SF520000 + 2554 SF390000 + 2555 SF220000 + 2556 SF210000 + 2557 SF250000 + 2558 SF500000 + 2559 SF490000 + 255A SF380000 + 255B SF280000 + 255C SF270000 + 255D SF260000 + 255E SF360000 + 255F SF370000 + 2560 SF420000 + 2561 SF190000 + 2562 SF200000 + 2563 SF230000 + 2564 SF470000 + 2565 SF480000 + 2566 SF410000 + 2567 SF450000 + 2568 SF460000 + 2569 SF400000 + 256A SF540000 + 256B SF530000 + 256C SF440000 + 2580 upblock + 2584 dnblock + 2588 block + 258C lfblock + 2590 rtblock + 2591 ltshade + 2592 shade + 2593 dkshade + 25A0 filledbox + 25A1 H22073 + 25AA H18543 + 25AB H18551 + 25AC filledrect + 25B2 triagup + 25BA triagrt + 25BC triagdn + 25C4 triaglf + 25CA lozenge + 25CB circle + 25CF H18533 + 25D8 invbullet + 25D9 invcircle + 25E6 openbullet + 263A smileface + 263B invsmileface + 263C sun + 2640 female + 2642 male + 2660 spade + 2663 club + 2665 heart + 2666 diamond + 266A musicalnote + 266B musicalnotedbl + F6BE dotlessj + F6BF LL + F6C0 ll + F6C1 Scedilla + F6C2 scedilla + F6C3 commaaccent + F6C4 afii10063 + F6C5 afii10064 + F6C6 afii10192 + F6C7 afii10831 + F6C8 afii10832 + F6C9 Acute + F6CA Caron + F6CB Dieresis + F6CC DieresisAcute + F6CD DieresisGrave + F6CE Grave + F6CF Hungarumlaut + F6D0 Macron + F6D1 cyrBreve + F6D2 cyrFlex + F6D3 dblGrave + F6D4 cyrbreve + F6D5 cyrflex + F6D6 dblgrave + F6D7 dieresisacute + F6D8 dieresisgrave + F6D9 copyrightserif + F6DA registerserif + F6DB trademarkserif + F6DC onefitted + F6DD rupiah + F6DE threequartersemdash + F6DF centinferior + F6E0 centsuperior + F6E1 commainferior + F6E2 commasuperior + F6E3 dollarinferior + F6E4 dollarsuperior + F6E5 hypheninferior + F6E6 hyphensuperior + F6E7 periodinferior + F6E8 periodsuperior + F6E9 asuperior + F6EA bsuperior + F6EB dsuperior + F6EC esuperior + F6ED isuperior + F6EE lsuperior + F6EF msuperior + F6F0 osuperior + F6F1 rsuperior + F6F2 ssuperior + F6F3 tsuperior + F6F4 Brevesmall + F6F5 Caronsmall + F6F6 Circumflexsmall + F6F7 Dotaccentsmall + F6F8 Hungarumlautsmall + F6F9 Lslashsmall + F6FA OEsmall + F6FB Ogoneksmall + F6FC Ringsmall + F6FD Scaronsmall + F6FE Tildesmall + F6FF Zcaronsmall + F721 exclamsmall + F724 dollaroldstyle + F726 ampersandsmall + F730 zerooldstyle + F731 oneoldstyle + F732 twooldstyle + F733 threeoldstyle + F734 fouroldstyle + F735 fiveoldstyle + F736 sixoldstyle + F737 sevenoldstyle + F738 eightoldstyle + F739 nineoldstyle + F73F questionsmall + F760 Gravesmall + F761 Asmall + F762 Bsmall + F763 Csmall + F764 Dsmall + F765 Esmall + F766 Fsmall + F767 Gsmall + F768 Hsmall + F769 Ismall + F76A Jsmall + F76B Ksmall + F76C Lsmall + F76D Msmall + F76E Nsmall + F76F Osmall + F770 Psmall + F771 Qsmall + F772 Rsmall + F773 Ssmall + F774 Tsmall + F775 Usmall + F776 Vsmall + F777 Wsmall + F778 Xsmall + F779 Ysmall + F77A Zsmall + F7A1 exclamdownsmall + F7A2 centoldstyle + F7A8 Dieresissmall + F7AF Macronsmall + F7B4 Acutesmall + F7B8 Cedillasmall + F7BF questiondownsmall + F7E0 Agravesmall + F7E1 Aacutesmall + F7E2 Acircumflexsmall + F7E3 Atildesmall + F7E4 Adieresissmall + F7E5 Aringsmall + F7E6 AEsmall + F7E7 Ccedillasmall + F7E8 Egravesmall + F7E9 Eacutesmall + F7EA Ecircumflexsmall + F7EB Edieresissmall + F7EC Igravesmall + F7ED Iacutesmall + F7EE Icircumflexsmall + F7EF Idieresissmall + F7F0 Ethsmall + F7F1 Ntildesmall + F7F2 Ogravesmall + F7F3 Oacutesmall + F7F4 Ocircumflexsmall + F7F5 Otildesmall + F7F6 Odieresissmall + F7F8 Oslashsmall + F7F9 Ugravesmall + F7FA Uacutesmall + F7FB Ucircumflexsmall + F7FC Udieresissmall + F7FD Yacutesmall + F7FE Thornsmall + F7FF Ydieresissmall + F8E5 radicalex + F8E6 arrowvertex + F8E7 arrowhorizex + F8E8 registersans + F8E9 copyrightsans + F8EA trademarksans + F8EB parenlefttp + F8EC parenleftex + F8ED parenleftbt + F8EE bracketlefttp + F8EF bracketleftex + F8F0 bracketleftbt + F8F1 bracelefttp + F8F2 braceleftmid + F8F3 braceleftbt + F8F4 braceex + F8F5 integralex + F8F6 parenrighttp + F8F7 parenrightex + F8F8 parenrightbt + F8F9 bracketrighttp + F8FA bracketrightex + F8FB bracketrightbt + F8FC bracerighttp + F8FD bracerightmid + F8FE bracerightbt + FB00 ff + FB01 fi + FB02 fl + FB03 ffi + FB04 ffl + FB1F afii57705 + FB2A afii57694 + FB2B afii57695 + FB35 afii57723 + FB4B afii57700 + } + + variable ps_preamble {} + + namespace eval ps { + namespace ensemble create + namespace export {[a-z]*} + proc literal {string} { + upvar 0 ::tk::ps_preamble preamble + foreach line [split $string \n] { + set line [string trim $line] + if {$line eq ""} continue + append preamble $line \n + } + return + } + proc variable {name value} { + upvar 0 ::tk::ps_preamble preamble + append preamble "/$name $value def\n" + return + } + proc function {name body} { + upvar 0 ::tk::ps_preamble preamble + append preamble "/$name \{" + foreach line [split $body \n] { + set line [string trim $line] + # Strip blank lines and comments from the bodies of functions + if {$line eq "" } continue + if {[string match {[%#]*} $line]} continue + append preamble $line " " + } + append preamble "\} bind def\n" + return + } + } + + ps literal { + %%BeginProlog + % This is a standard prolog for Postscript generated by Tk's canvas + % widget. + } + ps variable CurrentEncoding [CreatePostscriptEncoding] + ps literal {50 dict begin} + + # The definitions below just define all of the variables used in any of + # the procedures here. This is needed for obscure reasons explained on + # p. 716 of the Postscript manual (Section H.2.7, "Initializing + # Variables," in the section on Encapsulated Postscript). + ps variable baseline 0 + ps variable stipimage 0 + ps variable height 0 + ps variable justify 0 + ps variable lineLength 0 + ps variable spacing 0 + ps variable stipple 0 + ps variable strings 0 + ps variable xoffset 0 + ps variable yoffset 0 + ps variable tmpstip null + ps variable baselineSampler "( TXygqPZ)" + # Put an extra-tall character in; done this way to avoid encoding trouble + ps literal {baselineSampler 0 196 put} + + ps function cstringshow { + { + dup type /stringtype eq + { show } { glyphshow } + ifelse + } forall + } + + ps function cstringwidth { + 0 exch 0 exch + { + dup type /stringtype eq + { stringwidth } { + currentfont /Encoding get exch 1 exch put (\001) + stringwidth + } + ifelse + exch 3 1 roll add 3 1 roll add exch + } forall + } + + # font ISOEncode font + # + # This procedure changes the encoding of a font from the default + # Postscript encoding to current system encoding. It's typically invoked + # just before invoking "setfont". The body of this procedure comes from + # Section 5.6.1 of the Postscript book. + ps function ISOEncode { + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding CurrentEncoding def + currentdict + end + % I'm not sure why it's necessary to use "definefont" on this new + % font, but it seems to be important; just use the name "Temporary" + % for the font. + /Temporary exch definefont + } + + # StrokeClip + # + # This procedure converts the current path into a clip area under the + # assumption of stroking. It's a bit tricky because some Postscript + # interpreters get errors during strokepath for dashed lines. If this + # happens then turn off dashes and try again. + ps function StrokeClip { + {strokepath} stopped { + (This Postscript printer gets limitcheck overflows when) = + (stippling dashed lines; lines will be printed solid instead.) = + [] 0 setdash strokepath} if + clip + } + + # desiredSize EvenPixels closestSize + # + # The procedure below is used for stippling. Given the optimal size of a + # dot in a stipple pattern in the current user coordinate system, compute + # the closest size that is an exact multiple of the device's pixel + # size. This allows stipple patterns to be displayed without aliasing + # effects. + ps function EvenPixels { + % Compute exact number of device pixels per stipple dot. + dup 0 matrix currentmatrix dtransform + dup mul exch dup mul add sqrt + % Round to an integer, make sure the number is at least 1, and + % compute user coord distance corresponding to this. + dup round dup 1 lt {pop 1} if + exch div mul + } + + # width height string StippleFill -- + # + # Given a path already set up and a clipping region generated from it, + # this procedure will fill the clipping region with a stipple pattern. + # "String" contains a proper image description of the stipple pattern and + # "width" and "height" give its dimensions. Each stipple dot is assumed to + # be about one unit across in the current user coordinate system. This + # procedure trashes the graphics state. + ps function StippleFill { + % The following code is needed to work around a NeWSprint bug. + /tmpstip 1 index def + % Change the scaling so that one user unit in user coordinates + % corresponds to the size of one stipple dot. + 1 EvenPixels dup scale + % Compute the bounding box occupied by the path (which is now the + % clipping region), and round the lower coordinates down to the + % nearest starting point for the stipple pattern. Be careful about + % negative numbers, since the rounding works differently on them. + pathbbox + 4 2 roll + 5 index div dup 0 lt {1 sub} if cvi 5 index mul 4 1 roll + 6 index div dup 0 lt {1 sub} if cvi 6 index mul 3 2 roll + % Stack now: width height string y1 y2 x1 x2 + % Below is a doubly-nested for loop to iterate across this area + % in units of the stipple pattern size, going up columns then + % across rows, blasting out a stipple-pattern-sized rectangle at + % each position + 6 index exch { + 2 index 5 index 3 index { + % Stack now: width height string y1 y2 x y + gsave + 1 index exch translate + 5 index 5 index true matrix tmpstip imagemask + grestore + } for + pop + } for + pop pop pop pop pop + } + + # -- AdjustColor -- + # + # Given a color value already set for output by the caller, adjusts that + # value to a grayscale or mono value if requested by the CL variable. + ps function AdjustColor { + CL 2 lt { + currentgray + CL 0 eq { + .5 lt {0} {1} ifelse + } if + setgray + } if + } + + # x y strings spacing xoffset yoffset justify stipple DrawText -- + # + # This procedure does all of the real work of drawing text. The color and + # font must already have been set by the caller, and the following + # arguments must be on the stack: + # + # x, y - Coordinates at which to draw text. + # strings - An array of strings, one for each line of the text item, in + # order from top to bottom. + # spacing - Spacing between lines. + # xoffset - Horizontal offset for text bbox relative to x and y: 0 for + # nw/w/sw anchor, -0.5 for n/center/s, and -1.0 for ne/e/se. + # yoffset - Vertical offset for text bbox relative to x and y: 0 for + # nw/n/ne anchor, +0.5 for w/center/e, and +1.0 for sw/s/se. + # justify - 0 for left justification, 0.5 for center, 1 for right justify. + # stipple - Boolean value indicating whether or not text is to be drawn in + # stippled fashion. If text is stippled, function StippleText + # must have been defined to call StippleFill in the right way. + # + # Also, when this procedure is invoked, the color and font must already + # have been set for the text. + ps function DrawText { + /stipple exch def + /justify exch def + /yoffset exch def + /xoffset exch def + /spacing exch def + /strings exch def + % First scan through all of the text to find the widest line. + /lineLength 0 def + strings { + cstringwidth pop + dup lineLength gt {/lineLength exch def} {pop} ifelse + newpath + } forall + % Compute the baseline offset and the actual font height. + 0 0 moveto baselineSampler false charpath + pathbbox dup /baseline exch def + exch pop exch sub /height exch def pop + newpath + % Translate and rotate coordinates first so that the origin is at + % the upper-left corner of the text's bounding box. Remember that + % angle for rotating, and x and y for positioning are still on the + % stack. + translate + rotate + lineLength xoffset mul + strings length 1 sub spacing mul height add yoffset mul translate + % Now use the baseline and justification information to translate + % so that the origin is at the baseline and positioning point for + % the first line of text. + justify lineLength mul baseline neg translate + % Iterate over each of the lines to output it. For each line, + % compute its width again so it can be properly justified, then + % display it. + strings { + dup cstringwidth pop + justify neg mul 0 moveto + stipple { + % The text is stippled, so turn it into a path and print + % by calling StippledText, which in turn calls + % StippleFill. Unfortunately, many Postscript interpreters + % will get overflow errors if we try to do the whole + % string at once, so do it a character at a time. + gsave + /char (X) def + { + dup type /stringtype eq { + % This segment is a string. + { + char 0 3 -1 roll put + currentpoint + gsave + char true charpath clip StippleText + grestore + char stringwidth translate + moveto + } forall + } { + % This segment is glyph name + % Temporary override + currentfont /Encoding get exch 1 exch put + currentpoint + gsave (\001) true charpath clip StippleText + grestore + (\001) stringwidth translate + moveto + } ifelse + } forall + grestore + } {cstringshow} ifelse + 0 spacing neg translate + } forall + } + + # Define the "TkPhoto" function variants, which are modified versions + # of the original "transparentimage" function posted by ian@five-d.com + # (Ian Kemmish) to comp.lang.postscript. For a monochrome colorLevel + # this is a slightly different version that uses the imagemask command + # instead of image. + + ps function TkPhotoColor { + gsave + 32 dict begin + /tinteger exch def + /transparent 1 string def + transparent 0 tinteger put + /olddict exch def + olddict /DataSource get dup type /filetype ne { + olddict /DataSource 3 -1 roll + 0 () /SubFileDecode filter put + } { + pop + } ifelse + /newdict olddict maxlength dict def + olddict newdict copy pop + /w newdict /Width get def + /crpp newdict /Decode get length 2 idiv def + /str w string def + /pix w crpp mul string def + /substrlen 2 w log 2 log div floor exp cvi def + /substrs [ { + substrlen string + 0 1 substrlen 1 sub { + 1 index exch tinteger put + } for + /substrlen substrlen 2 idiv def + substrlen 0 eq {exit} if + } loop ] def + /h newdict /Height get def + 1 w div 1 h div matrix scale + olddict /ImageMatrix get exch matrix concatmatrix + matrix invertmatrix concat + newdict /Height 1 put + newdict /DataSource pix put + /mat [w 0 0 h 0 0] def + newdict /ImageMatrix mat put + 0 1 h 1 sub { + mat 5 3 -1 roll neg put + olddict /DataSource get str readstring pop pop + /tail str def + /x 0 def + olddict /DataSource get pix readstring pop pop + { + tail transparent search dup /done exch not def + {exch pop exch pop} if + /w1 exch length def + w1 0 ne { + newdict /DataSource + pix x crpp mul w1 crpp mul getinterval put + newdict /Width w1 put + mat 4 x neg put + /x x w1 add def + newdict image + /tail tail w1 tail length w1 sub getinterval def + } if + done {exit} if + tail substrs { + anchorsearch {pop} if + } forall + /tail exch def + tail length 0 eq {exit} if + /x w tail length sub def + } loop + } for + end + grestore + } + ps function TkPhotoMono { + gsave + 32 dict begin + /dummyInteger exch def + /olddict exch def + olddict /DataSource get dup type /filetype ne { + olddict /DataSource 3 -1 roll + 0 () /SubFileDecode filter put + } { + pop + } ifelse + /newdict olddict maxlength dict def + olddict newdict copy pop + /w newdict /Width get def + /pix w 7 add 8 idiv string def + /h newdict /Height get def + 1 w div 1 h div matrix scale + olddict /ImageMatrix get exch matrix concatmatrix + matrix invertmatrix concat + newdict /Height 1 put + newdict /DataSource pix put + /mat [w 0 0 h 0 0] def + newdict /ImageMatrix mat put + 0 1 h 1 sub { + mat 5 3 -1 roll neg put + 0.000 0.000 0.000 setrgbcolor + olddict /DataSource get pix readstring pop pop + newdict /DataSource pix put + newdict imagemask + 1.000 1.000 1.000 setrgbcolor + olddict /DataSource get pix readstring pop pop + newdict /DataSource pix put + newdict imagemask + } for + end + grestore + } + + ps literal %%EndProlog +} + +proc tk::ensure_psenc_is_loaded {} { +} diff --git a/shared/package-files/0a/0acb70ead73f538f84993ae2448b414a9bd324e0c08cc1508dfc936b12f3b1b2/V_V_A_R_.py b/shared/package-files/0a/0acb70ead73f538f84993ae2448b414a9bd324e0c08cc1508dfc936b12f3b1b2/V_V_A_R_.py new file mode 100644 index 0000000000000000000000000000000000000000..c0c94e348b2c6cdfc856b030477214604c95d7c4 --- /dev/null +++ b/shared/package-files/0a/0acb70ead73f538f84993ae2448b414a9bd324e0c08cc1508dfc936b12f3b1b2/V_V_A_R_.py @@ -0,0 +1,13 @@ +from .otBase import BaseTTXConverter + + +class table_V_V_A_R_(BaseTTXConverter): + """Vertical Metrics Variations table + + The ``VVAR`` table contains variation data for per-glyph vertical metrics + in a variable font. + + See also https://learn.microsoft.com/en-us/typography/opentype/spec/vvar + """ + + pass diff --git a/shared/package-files/0a/0acbd9e412b0daa55abf7c7f17c094f6d68974393b8d7e3509fb2a9acea35d5f/Indiana-Starke b/shared/package-files/0a/0acbd9e412b0daa55abf7c7f17c094f6d68974393b8d7e3509fb2a9acea35d5f/Indiana-Starke new file mode 100644 index 0000000000000000000000000000000000000000..025d132dd48ba978c6fedf86d70173127be49d49 Binary files /dev/null and b/shared/package-files/0a/0acbd9e412b0daa55abf7c7f17c094f6d68974393b8d7e3509fb2a9acea35d5f/Indiana-Starke differ diff --git a/shared/package-files/0a/0acbd9e412b0daa55abf7c7f17c094f6d68974393b8d7e3509fb2a9acea35d5f/Knox b/shared/package-files/0a/0acbd9e412b0daa55abf7c7f17c094f6d68974393b8d7e3509fb2a9acea35d5f/Knox new file mode 100644 index 0000000000000000000000000000000000000000..025d132dd48ba978c6fedf86d70173127be49d49 Binary files /dev/null and b/shared/package-files/0a/0acbd9e412b0daa55abf7c7f17c094f6d68974393b8d7e3509fb2a9acea35d5f/Knox differ diff --git a/shared/package-files/0a/0acbd9e412b0daa55abf7c7f17c094f6d68974393b8d7e3509fb2a9acea35d5f/Knox_IN b/shared/package-files/0a/0acbd9e412b0daa55abf7c7f17c094f6d68974393b8d7e3509fb2a9acea35d5f/Knox_IN new file mode 100644 index 0000000000000000000000000000000000000000..025d132dd48ba978c6fedf86d70173127be49d49 Binary files /dev/null and b/shared/package-files/0a/0acbd9e412b0daa55abf7c7f17c094f6d68974393b8d7e3509fb2a9acea35d5f/Knox_IN differ diff --git a/shared/package-files/0a/0acd2844dd7c295aeeb247616fa26e0da3f8ef66fed05c36b3746d8acc5bc046/is_vulkan_available.h b/shared/package-files/0a/0acd2844dd7c295aeeb247616fa26e0da3f8ef66fed05c36b3746d8acc5bc046/is_vulkan_available.h new file mode 100644 index 0000000000000000000000000000000000000000..16284213f697652c484ae36a1d773bf527194172 --- /dev/null +++ b/shared/package-files/0a/0acd2844dd7c295aeeb247616fa26e0da3f8ef66fed05c36b3746d8acc5bc046/is_vulkan_available.h @@ -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::is_vulkan_available() -> bool +inline bool is_vulkan_available() { + return at::_ops::is_vulkan_available::call(); +} + +} diff --git a/shared/package-files/0a/0ad473893508b4077c1bdcfffe327db3b75120700e75e1da8dd3e6341dc74606/formal.py b/shared/package-files/0a/0ad473893508b4077c1bdcfffe327db3b75120700e75e1da8dd3e6341dc74606/formal.py new file mode 100644 index 0000000000000000000000000000000000000000..5ad724b21455d3e233c22192e10d7d52d161554c --- /dev/null +++ b/shared/package-files/0a/0ad473893508b4077c1bdcfffe327db3b75120700e75e1da8dd3e6341dc74606/formal.py @@ -0,0 +1,1869 @@ +"""Formal Power Series""" + +from collections import defaultdict + +from sympy.core.numbers import (nan, oo, zoo) +from sympy.core.add import Add +from sympy.core.expr import Expr +from sympy.core.function import Derivative, Function, expand +from sympy.core.mul import Mul +from sympy.core.numbers import Rational +from sympy.core.relational import Eq +from sympy.sets.sets import Interval +from sympy.core.singleton import S +from sympy.core.symbol import Wild, Dummy, symbols, Symbol +from sympy.core.sympify import sympify +from sympy.discrete.convolutions import convolution +from sympy.functions.combinatorial.factorials import binomial, factorial, rf +from sympy.functions.combinatorial.numbers import bell +from sympy.functions.elementary.integers import floor, frac, ceiling +from sympy.functions.elementary.miscellaneous import Min, Max +from sympy.functions.elementary.piecewise import Piecewise +from sympy.series.limits import Limit +from sympy.series.order import Order +from sympy.series.sequences import sequence +from sympy.series.series_class import SeriesBase +from sympy.utilities.iterables import iterable + + + +def rational_algorithm(f, x, k, order=4, full=False): + """ + Rational algorithm for computing + formula of coefficients of Formal Power Series + of a function. + + Explanation + =========== + + Applicable when f(x) or some derivative of f(x) + is a rational function in x. + + :func:`rational_algorithm` uses :func:`~.apart` function for partial fraction + decomposition. :func:`~.apart` by default uses 'undetermined coefficients + method'. By setting ``full=True``, 'Bronstein's algorithm' can be used + instead. + + Looks for derivative of a function up to 4'th order (by default). + This can be overridden using order option. + + Parameters + ========== + + x : Symbol + order : int, optional + Order of the derivative of ``f``, Default is 4. + full : bool + + Returns + ======= + + formula : Expr + ind : Expr + Independent terms. + order : int + full : bool + + Examples + ======== + + >>> from sympy import log, atan + >>> from sympy.series.formal import rational_algorithm as ra + >>> from sympy.abc import x, k + + >>> ra(1 / (1 - x), x, k) + (1, 0, 0) + >>> ra(log(1 + x), x, k) + (-1/((-1)**k*k), 0, 1) + + >>> ra(atan(x), x, k, full=True) + ((-I/(2*(-I)**k) + I/(2*I**k))/k, 0, 1) + + Notes + ===== + + By setting ``full=True``, range of admissible functions to be solved using + ``rational_algorithm`` can be increased. This option should be used + carefully as it can significantly slow down the computation as ``doit`` is + performed on the :class:`~.RootSum` object returned by the :func:`~.apart` + function. Use ``full=False`` whenever possible. + + See Also + ======== + + sympy.polys.partfrac.apart + + References + ========== + + .. [1] Formal Power Series - Dominik Gruntz, Wolfram Koepf + .. [2] Power Series in Computer Algebra - Wolfram Koepf + + """ + from sympy.polys import RootSum, apart + from sympy.integrals import integrate + + diff = f + ds = [] # list of diff + + for i in range(order + 1): + if i: + diff = diff.diff(x) + + if diff.is_rational_function(x): + coeff, sep = S.Zero, S.Zero + + terms = apart(diff, x, full=full) + if terms.has(RootSum): + terms = terms.doit() + + for t in Add.make_args(terms): + num, den = t.as_numer_denom() + if not den.has(x): + sep += t + else: + if isinstance(den, Mul): + # m*(n*x - a)**j -> (n*x - a)**j + ind = den.as_independent(x) + den = ind[1] + num /= ind[0] + + # (n*x - a)**j -> (x - b) + den, j = den.as_base_exp() + a, xterm = den.as_coeff_add(x) + + # term -> m/x**n + if not a: + sep += t + continue + + xc = xterm[0].coeff(x) + a /= -xc + num /= xc**j + + ak = ((-1)**j * num * + binomial(j + k - 1, k).rewrite(factorial) / + a**(j + k)) + coeff += ak + + # Hacky, better way? + if coeff.is_zero: + return None + if (coeff.has(x) or coeff.has(zoo) or coeff.has(oo) or + coeff.has(nan)): + return None + + for j in range(i): + coeff = (coeff / (k + j + 1)) + sep = integrate(sep, x) + sep += (ds.pop() - sep).limit(x, 0) # constant of integration + return (coeff.subs(k, k - i), sep, i) + + else: + ds.append(diff) + + return None + + +def rational_independent(terms, x): + """ + Returns a list of all the rationally independent terms. + + Examples + ======== + + >>> from sympy import sin, cos + >>> from sympy.series.formal import rational_independent + >>> from sympy.abc import x + + >>> rational_independent([cos(x), sin(x)], x) + [cos(x), sin(x)] + >>> rational_independent([x**2, sin(x), x*sin(x), x**3], x) + [x**3 + x**2, x*sin(x) + sin(x)] + """ + if not terms: + return [] + + ind = terms[0:1] + + for t in terms[1:]: + n = t.as_independent(x)[1] + for i, term in enumerate(ind): + d = term.as_independent(x)[1] + q = (n / d).cancel() + if q.is_rational_function(x): + ind[i] += t + break + else: + ind.append(t) + return ind + + +def simpleDE(f, x, g, order=4): + r""" + Generates simple DE. + + Explanation + =========== + + DE is of the form + + .. math:: + f^k(x) + \sum\limits_{j=0}^{k-1} A_j f^j(x) = 0 + + where :math:`A_j` should be rational function in x. + + Generates DE's upto order 4 (default). DE's can also have free parameters. + + By increasing order, higher order DE's can be found. + + Yields a tuple of (DE, order). + """ + from sympy.solvers.solveset import linsolve + + a = symbols('a:%d' % (order)) + + def _makeDE(k): + eq = f.diff(x, k) + Add(*[a[i]*f.diff(x, i) for i in range(0, k)]) + DE = g(x).diff(x, k) + Add(*[a[i]*g(x).diff(x, i) for i in range(0, k)]) + return eq, DE + + found = False + for k in range(1, order + 1): + eq, DE = _makeDE(k) + eq = eq.expand() + terms = eq.as_ordered_terms() + ind = rational_independent(terms, x) + if found or len(ind) == k: + sol = dict(zip(a, (i for s in linsolve(ind, a[:k]) for i in s))) + if sol: + found = True + DE = DE.subs(sol) + DE = DE.as_numer_denom()[0] + DE = DE.factor().as_coeff_mul(Derivative)[1][0] + yield DE.collect(Derivative(g(x))), k + + +def exp_re(DE, r, k): + """Converts a DE with constant coefficients (explike) into a RE. + + Explanation + =========== + + Performs the substitution: + + .. math:: + f^j(x) \\to r(k + j) + + Normalises the terms so that lowest order of a term is always r(k). + + Examples + ======== + + >>> from sympy import Function, Derivative + >>> from sympy.series.formal import exp_re + >>> from sympy.abc import x, k + >>> f, r = Function('f'), Function('r') + + >>> exp_re(-f(x) + Derivative(f(x)), r, k) + -r(k) + r(k + 1) + >>> exp_re(Derivative(f(x), x) + Derivative(f(x), (x, 2)), r, k) + r(k) + r(k + 1) + + See Also + ======== + + sympy.series.formal.hyper_re + """ + RE = S.Zero + + g = DE.atoms(Function).pop() + + mini = None + for t in Add.make_args(DE): + coeff, d = t.as_independent(g) + if isinstance(d, Derivative): + j = d.derivative_count + else: + j = 0 + if mini is None or j < mini: + mini = j + RE += coeff * r(k + j) + if mini: + RE = RE.subs(k, k - mini) + return RE + + +def hyper_re(DE, r, k): + """ + Converts a DE into a RE. + + Explanation + =========== + + Performs the substitution: + + .. math:: + x^l f^j(x) \\to (k + 1 - l)_j . a_{k + j - l} + + Normalises the terms so that lowest order of a term is always r(k). + + Examples + ======== + + >>> from sympy import Function, Derivative + >>> from sympy.series.formal import hyper_re + >>> from sympy.abc import x, k + >>> f, r = Function('f'), Function('r') + + >>> hyper_re(-f(x) + Derivative(f(x)), r, k) + (k + 1)*r(k + 1) - r(k) + >>> hyper_re(-x*f(x) + Derivative(f(x), (x, 2)), r, k) + (k + 2)*(k + 3)*r(k + 3) - r(k) + + See Also + ======== + + sympy.series.formal.exp_re + """ + RE = S.Zero + + g = DE.atoms(Function).pop() + x = g.atoms(Symbol).pop() + + mini = None + for t in Add.make_args(DE.expand()): + coeff, d = t.as_independent(g) + c, v = coeff.as_independent(x) + l = v.as_coeff_exponent(x)[1] + if isinstance(d, Derivative): + j = d.derivative_count + else: + j = 0 + RE += c * rf(k + 1 - l, j) * r(k + j - l) + if mini is None or j - l < mini: + mini = j - l + + RE = RE.subs(k, k - mini) + + m = Wild('m') + return RE.collect(r(k + m)) + + +def _transformation_a(f, x, P, Q, k, m, shift): + f *= x**(-shift) + P = P.subs(k, k + shift) + Q = Q.subs(k, k + shift) + return f, P, Q, m + + +def _transformation_c(f, x, P, Q, k, m, scale): + f = f.subs(x, x**scale) + P = P.subs(k, k / scale) + Q = Q.subs(k, k / scale) + m *= scale + return f, P, Q, m + + +def _transformation_e(f, x, P, Q, k, m): + f = f.diff(x) + P = P.subs(k, k + 1) * (k + m + 1) + Q = Q.subs(k, k + 1) * (k + 1) + return f, P, Q, m + + +def _apply_shift(sol, shift): + return [(res, cond + shift) for res, cond in sol] + + +def _apply_scale(sol, scale): + return [(res, cond / scale) for res, cond in sol] + + +def _apply_integrate(sol, x, k): + return [(res / ((cond + 1)*(cond.as_coeff_Add()[1].coeff(k))), cond + 1) + for res, cond in sol] + + +def _compute_formula(f, x, P, Q, k, m, k_max): + """Computes the formula for f.""" + from sympy.polys import roots + + sol = [] + for i in range(k_max + 1, k_max + m + 1): + if (i < 0) == True: + continue + r = f.diff(x, i).limit(x, 0) / factorial(i) + if r.is_zero: + continue + + kterm = m*k + i + res = r + + p = P.subs(k, kterm) + q = Q.subs(k, kterm) + c1 = p.subs(k, 1/k).leadterm(k)[0] + c2 = q.subs(k, 1/k).leadterm(k)[0] + res *= (-c1 / c2)**k + + res *= Mul(*[rf(-r, k)**mul for r, mul in roots(p, k).items()]) + res /= Mul(*[rf(-r, k)**mul for r, mul in roots(q, k).items()]) + + sol.append((res, kterm)) + + return sol + + +def _rsolve_hypergeometric(f, x, P, Q, k, m): + """ + Recursive wrapper to rsolve_hypergeometric. + + Explanation + =========== + + Returns a Tuple of (formula, series independent terms, + maximum power of x in independent terms) if successful + otherwise ``None``. + + See :func:`rsolve_hypergeometric` for details. + """ + from sympy.polys import lcm, roots + from sympy.integrals import integrate + + # transformation - c + proots, qroots = roots(P, k), roots(Q, k) + all_roots = dict(proots) + all_roots.update(qroots) + scale = lcm([r.as_numer_denom()[1] for r, t in all_roots.items() + if r.is_rational]) + f, P, Q, m = _transformation_c(f, x, P, Q, k, m, scale) + + # transformation - a + qroots = roots(Q, k) + if qroots: + k_min = Min(*qroots.keys()) + else: + k_min = S.Zero + shift = k_min + m + f, P, Q, m = _transformation_a(f, x, P, Q, k, m, shift) + + l = (x*f).limit(x, 0) + if not isinstance(l, Limit) and l != 0: # Ideally should only be l != 0 + return None + + qroots = roots(Q, k) + if qroots: + k_max = Max(*qroots.keys()) + else: + k_max = S.Zero + + ind, mp = S.Zero, -oo + for i in range(k_max + m + 1): + r = f.diff(x, i).limit(x, 0) / factorial(i) + if r.is_finite is False: + old_f = f + f, P, Q, m = _transformation_a(f, x, P, Q, k, m, i) + f, P, Q, m = _transformation_e(f, x, P, Q, k, m) + sol, ind, mp = _rsolve_hypergeometric(f, x, P, Q, k, m) + sol = _apply_integrate(sol, x, k) + sol = _apply_shift(sol, i) + ind = integrate(ind, x) + ind += (old_f - ind).limit(x, 0) # constant of integration + mp += 1 + return sol, ind, mp + elif r: + ind += r*x**(i + shift) + pow_x = Rational((i + shift), scale) + if pow_x > mp: + mp = pow_x # maximum power of x + ind = ind.subs(x, x**(1/scale)) + + sol = _compute_formula(f, x, P, Q, k, m, k_max) + sol = _apply_shift(sol, shift) + sol = _apply_scale(sol, scale) + + return sol, ind, mp + + +def rsolve_hypergeometric(f, x, P, Q, k, m): + """ + Solves RE of hypergeometric type. + + Explanation + =========== + + Attempts to solve RE of the form + + Q(k)*a(k + m) - P(k)*a(k) + + Transformations that preserve Hypergeometric type: + + a. x**n*f(x): b(k + m) = R(k - n)*b(k) + b. f(A*x): b(k + m) = A**m*R(k)*b(k) + c. f(x**n): b(k + n*m) = R(k/n)*b(k) + d. f(x**(1/m)): b(k + 1) = R(k*m)*b(k) + e. f'(x): b(k + m) = ((k + m + 1)/(k + 1))*R(k + 1)*b(k) + + Some of these transformations have been used to solve the RE. + + Returns + ======= + + formula : Expr + ind : Expr + Independent terms. + order : int + + Examples + ======== + + >>> from sympy import exp, ln, S + >>> from sympy.series.formal import rsolve_hypergeometric as rh + >>> from sympy.abc import x, k + + >>> rh(exp(x), x, -S.One, (k + 1), k, 1) + (Piecewise((1/factorial(k), Eq(Mod(k, 1), 0)), (0, True)), 1, 1) + + >>> rh(ln(1 + x), x, k**2, k*(k + 1), k, 1) + (Piecewise(((-1)**(k - 1)*factorial(k - 1)/RisingFactorial(2, k - 1), + Eq(Mod(k, 1), 0)), (0, True)), x, 2) + + References + ========== + + .. [1] Formal Power Series - Dominik Gruntz, Wolfram Koepf + .. [2] Power Series in Computer Algebra - Wolfram Koepf + """ + result = _rsolve_hypergeometric(f, x, P, Q, k, m) + + if result is None: + return None + + sol_list, ind, mp = result + + sol_dict = defaultdict(lambda: S.Zero) + for res, cond in sol_list: + j, mk = cond.as_coeff_Add() + c = mk.coeff(k) + + if j.is_integer is False: + res *= x**frac(j) + j = floor(j) + + res = res.subs(k, (k - j) / c) + cond = Eq(k % c, j % c) + sol_dict[cond] += res # Group together formula for same conditions + + sol = [] + for cond, res in sol_dict.items(): + sol.append((res, cond)) + sol.append((S.Zero, True)) + sol = Piecewise(*sol) + + if mp is -oo: + s = S.Zero + elif mp.is_integer is False: + s = ceiling(mp) + else: + s = mp + 1 + + # save all the terms of + # form 1/x**k in ind + if s < 0: + ind += sum(sequence(sol * x**k, (k, s, -1))) + s = S.Zero + + return (sol, ind, s) + + +def _solve_hyper_RE(f, x, RE, g, k): + """See docstring of :func:`rsolve_hypergeometric` for details.""" + terms = Add.make_args(RE) + + if len(terms) == 2: + gs = list(RE.atoms(Function)) + P, Q = map(RE.coeff, gs) + m = gs[1].args[0] - gs[0].args[0] + if m < 0: + P, Q = Q, P + m = abs(m) + return rsolve_hypergeometric(f, x, P, Q, k, m) + + +def _solve_explike_DE(f, x, DE, g, k): + """Solves DE with constant coefficients.""" + from sympy.solvers import rsolve + + for t in Add.make_args(DE): + coeff, d = t.as_independent(g) + if coeff.free_symbols: + return + + RE = exp_re(DE, g, k) + + init = {} + for i in range(len(Add.make_args(RE))): + if i: + f = f.diff(x) + init[g(k).subs(k, i)] = f.limit(x, 0) + + sol = rsolve(RE, g(k), init) + + if sol: + return (sol / factorial(k), S.Zero, S.Zero) + + +def _solve_simple(f, x, DE, g, k): + """Converts DE into RE and solves using :func:`rsolve`.""" + from sympy.solvers import rsolve + + RE = hyper_re(DE, g, k) + + init = {} + for i in range(len(Add.make_args(RE))): + if i: + f = f.diff(x) + init[g(k).subs(k, i)] = f.limit(x, 0) / factorial(i) + + sol = rsolve(RE, g(k), init) + + if sol: + return (sol, S.Zero, S.Zero) + + +def _transform_explike_DE(DE, g, x, order, syms): + """Converts DE with free parameters into DE with constant coefficients.""" + from sympy.solvers.solveset import linsolve + + eq = [] + highest_coeff = DE.coeff(Derivative(g(x), x, order)) + for i in range(order): + coeff = DE.coeff(Derivative(g(x), x, i)) + coeff = (coeff / highest_coeff).expand().collect(x) + for t in Add.make_args(coeff): + eq.append(t) + temp = [] + for e in eq: + if e.has(x): + break + elif e.has(Symbol): + temp.append(e) + else: + eq = temp + if eq: + sol = dict(zip(syms, (i for s in linsolve(eq, list(syms)) for i in s))) + if sol: + DE = DE.subs(sol) + DE = DE.factor().as_coeff_mul(Derivative)[1][0] + DE = DE.collect(Derivative(g(x))) + return DE + + +def _transform_DE_RE(DE, g, k, order, syms): + """Converts DE with free parameters into RE of hypergeometric type.""" + from sympy.solvers.solveset import linsolve + + RE = hyper_re(DE, g, k) + + eq = [] + for i in range(1, order): + coeff = RE.coeff(g(k + i)) + eq.append(coeff) + sol = dict(zip(syms, (i for s in linsolve(eq, list(syms)) for i in s))) + if sol: + m = Wild('m') + RE = RE.subs(sol) + RE = RE.factor().as_numer_denom()[0].collect(g(k + m)) + RE = RE.as_coeff_mul(g)[1][0] + for i in range(order): # smallest order should be g(k) + if RE.coeff(g(k + i)) and i: + RE = RE.subs(k, k - i) + break + return RE + + +def solve_de(f, x, DE, order, g, k): + """ + Solves the DE. + + Explanation + =========== + + Tries to solve DE by either converting into a RE containing two terms or + converting into a DE having constant coefficients. + + Returns + ======= + + formula : Expr + ind : Expr + Independent terms. + order : int + + Examples + ======== + + >>> from sympy import Derivative as D, Function + >>> from sympy import exp, ln + >>> from sympy.series.formal import solve_de + >>> from sympy.abc import x, k + >>> f = Function('f') + + >>> solve_de(exp(x), x, D(f(x), x) - f(x), 1, f, k) + (Piecewise((1/factorial(k), Eq(Mod(k, 1), 0)), (0, True)), 1, 1) + + >>> solve_de(ln(1 + x), x, (x + 1)*D(f(x), x, 2) + D(f(x)), 2, f, k) + (Piecewise(((-1)**(k - 1)*factorial(k - 1)/RisingFactorial(2, k - 1), + Eq(Mod(k, 1), 0)), (0, True)), x, 2) + """ + sol = None + syms = DE.free_symbols.difference({g, x}) + + if syms: + RE = _transform_DE_RE(DE, g, k, order, syms) + else: + RE = hyper_re(DE, g, k) + if not RE.free_symbols.difference({k}): + sol = _solve_hyper_RE(f, x, RE, g, k) + + if sol: + return sol + + if syms: + DE = _transform_explike_DE(DE, g, x, order, syms) + if not DE.free_symbols.difference({x}): + sol = _solve_explike_DE(f, x, DE, g, k) + + if sol: + return sol + + +def hyper_algorithm(f, x, k, order=4): + """ + Hypergeometric algorithm for computing Formal Power Series. + + Explanation + =========== + + Steps: + * Generates DE + * Convert the DE into RE + * Solves the RE + + Examples + ======== + + >>> from sympy import exp, ln + >>> from sympy.series.formal import hyper_algorithm + + >>> from sympy.abc import x, k + + >>> hyper_algorithm(exp(x), x, k) + (Piecewise((1/factorial(k), Eq(Mod(k, 1), 0)), (0, True)), 1, 1) + + >>> hyper_algorithm(ln(1 + x), x, k) + (Piecewise(((-1)**(k - 1)*factorial(k - 1)/RisingFactorial(2, k - 1), + Eq(Mod(k, 1), 0)), (0, True)), x, 2) + + See Also + ======== + + sympy.series.formal.simpleDE + sympy.series.formal.solve_de + """ + g = Function('g') + + des = [] # list of DE's + sol = None + for DE, i in simpleDE(f, x, g, order): + if DE is not None: + sol = solve_de(f, x, DE, i, g, k) + if sol: + return sol + if not DE.free_symbols.difference({x}): + des.append(DE) + + # If nothing works + # Try plain rsolve + for DE in des: + sol = _solve_simple(f, x, DE, g, k) + if sol: + return sol + + +def _compute_fps(f, x, x0, dir, hyper, order, rational, full): + """Recursive wrapper to compute fps. + + See :func:`compute_fps` for details. + """ + if x0 in [S.Infinity, S.NegativeInfinity]: + dir = S.One if x0 is S.Infinity else -S.One + temp = f.subs(x, 1/x) + result = _compute_fps(temp, x, 0, dir, hyper, order, rational, full) + if result is None: + return None + return (result[0], result[1].subs(x, 1/x), result[2].subs(x, 1/x)) + elif x0 or dir == -S.One: + if dir == -S.One: + rep = -x + x0 + rep2 = -x + rep2b = x0 + else: + rep = x + x0 + rep2 = x + rep2b = -x0 + temp = f.subs(x, rep) + result = _compute_fps(temp, x, 0, S.One, hyper, order, rational, full) + if result is None: + return None + return (result[0], result[1].subs(x, rep2 + rep2b), + result[2].subs(x, rep2 + rep2b)) + + if f.is_polynomial(x): + k = Dummy('k') + ak = sequence(Coeff(f, x, k), (k, 1, oo)) + xk = sequence(x**k, (k, 0, oo)) + ind = f.coeff(x, 0) + return ak, xk, ind + + # Break instances of Add + # this allows application of different + # algorithms on different terms increasing the + # range of admissible functions. + if isinstance(f, Add): + result = False + ak = sequence(S.Zero, (0, oo)) + ind, xk = S.Zero, None + for t in Add.make_args(f): + res = _compute_fps(t, x, 0, S.One, hyper, order, rational, full) + if res: + if not result: + result = True + xk = res[1] + if res[0].start > ak.start: + seq = ak + s, f = ak.start, res[0].start + else: + seq = res[0] + s, f = res[0].start, ak.start + save = Add(*[z[0]*z[1] for z in zip(seq[0:(f - s)], xk[s:f])]) + ak += res[0] + ind += res[2] + save + else: + ind += t + if result: + return ak, xk, ind + return None + + # The symbolic term - symb, if present, is being separated from the function + # Otherwise symb is being set to S.One + syms = f.free_symbols.difference({x}) + (f, symb) = expand(f).as_independent(*syms) + + result = None + + # from here on it's x0=0 and dir=1 handling + k = Dummy('k') + if rational: + result = rational_algorithm(f, x, k, order, full) + + if result is None and hyper: + result = hyper_algorithm(f, x, k, order) + + if result is None: + return None + + from sympy.simplify.powsimp import powsimp + if symb.is_zero: + symb = S.One + else: + symb = powsimp(symb) + ak = sequence(result[0], (k, result[2], oo)) + xk_formula = powsimp(x**k * symb) + xk = sequence(xk_formula, (k, 0, oo)) + ind = powsimp(result[1] * symb) + + return ak, xk, ind + + +def compute_fps(f, x, x0=0, dir=1, hyper=True, order=4, rational=True, + full=False): + """ + Computes the formula for Formal Power Series of a function. + + Explanation + =========== + + Tries to compute the formula by applying the following techniques + (in order): + + * rational_algorithm + * Hypergeometric algorithm + + Parameters + ========== + + x : Symbol + x0 : number, optional + Point to perform series expansion about. Default is 0. + dir : {1, -1, '+', '-'}, optional + If dir is 1 or '+' the series is calculated from the right and + for -1 or '-' the series is calculated from the left. For smooth + functions this flag will not alter the results. Default is 1. + hyper : {True, False}, optional + Set hyper to False to skip the hypergeometric algorithm. + By default it is set to False. + order : int, optional + Order of the derivative of ``f``, Default is 4. + rational : {True, False}, optional + Set rational to False to skip rational algorithm. By default it is set + to True. + full : {True, False}, optional + Set full to True to increase the range of rational algorithm. + See :func:`rational_algorithm` for details. By default it is set to + False. + + Returns + ======= + + ak : sequence + Sequence of coefficients. + xk : sequence + Sequence of powers of x. + ind : Expr + Independent terms. + mul : Pow + Common terms. + + See Also + ======== + + sympy.series.formal.rational_algorithm + sympy.series.formal.hyper_algorithm + """ + f = sympify(f) + x = sympify(x) + + if not f.has(x): + return None + + x0 = sympify(x0) + + if dir == '+': + dir = S.One + elif dir == '-': + dir = -S.One + elif dir not in [S.One, -S.One]: + raise ValueError("Dir must be '+' or '-'") + else: + dir = sympify(dir) + + return _compute_fps(f, x, x0, dir, hyper, order, rational, full) + + +class Coeff(Function): + """ + Coeff(p, x, n) represents the nth coefficient of the polynomial p in x + """ + @classmethod + def eval(cls, p, x, n): + if p.is_polynomial(x) and n.is_integer: + return p.coeff(x, n) + + +class FormalPowerSeries(SeriesBase): + """ + Represents Formal Power Series of a function. + + Explanation + =========== + + No computation is performed. This class should only to be used to represent + a series. No checks are performed. + + For computing a series use :func:`fps`. + + See Also + ======== + + sympy.series.formal.fps + """ + def __new__(cls, *args): + args = map(sympify, args) + return Expr.__new__(cls, *args) + + def __init__(self, *args): + ak = args[4][0] + k = ak.variables[0] + self.ak_seq = sequence(ak.formula, (k, 1, oo)) + self.fact_seq = sequence(factorial(k), (k, 1, oo)) + self.bell_coeff_seq = self.ak_seq * self.fact_seq + self.sign_seq = sequence((-1, 1), (k, 1, oo)) + + @property + def function(self): + return self.args[0] + + @property + def x(self): + return self.args[1] + + @property + def x0(self): + return self.args[2] + + @property + def dir(self): + return self.args[3] + + @property + def ak(self): + return self.args[4][0] + + @property + def xk(self): + return self.args[4][1] + + @property + def ind(self): + return self.args[4][2] + + @property + def interval(self): + return Interval(0, oo) + + @property + def start(self): + return self.interval.inf + + @property + def stop(self): + return self.interval.sup + + @property + def length(self): + return oo + + @property + def infinite(self): + """Returns an infinite representation of the series""" + from sympy.concrete import Sum + ak, xk = self.ak, self.xk + k = ak.variables[0] + inf_sum = Sum(ak.formula * xk.formula, (k, ak.start, ak.stop)) + + return self.ind + inf_sum + + def _get_pow_x(self, term): + """Returns the power of x in a term.""" + xterm, pow_x = term.as_independent(self.x)[1].as_base_exp() + if not xterm.has(self.x): + return S.Zero + return pow_x + + def polynomial(self, n=6): + """ + Truncated series as polynomial. + + Explanation + =========== + + Returns series expansion of ``f`` upto order ``O(x**n)`` + as a polynomial(without ``O`` term). + """ + terms = [] + sym = self.free_symbols + for i, t in enumerate(self): + xp = self._get_pow_x(t) + if xp.has(*sym): + xp = xp.as_coeff_add(*sym)[0] + if xp >= n: + break + elif xp.is_integer is True and i == n + 1: + break + elif t is not S.Zero: + terms.append(t) + + return Add(*terms) + + def truncate(self, n=6): + """ + Truncated series. + + Explanation + =========== + + Returns truncated series expansion of f upto + order ``O(x**n)``. + + If n is ``None``, returns an infinite iterator. + """ + if n is None: + return iter(self) + + x, x0 = self.x, self.x0 + pt_xk = self.xk.coeff(n) + if x0 is S.NegativeInfinity: + x0 = S.Infinity + + return self.polynomial(n) + Order(pt_xk, (x, x0)) + + def zero_coeff(self): + return self._eval_term(0) + + def _eval_term(self, pt): + try: + pt_xk = self.xk.coeff(pt) + pt_ak = self.ak.coeff(pt).simplify() # Simplify the coefficients + except IndexError: + term = S.Zero + else: + term = (pt_ak * pt_xk) + + if self.ind: + ind = S.Zero + sym = self.free_symbols + for t in Add.make_args(self.ind): + pow_x = self._get_pow_x(t) + if pow_x.has(*sym): + pow_x = pow_x.as_coeff_add(*sym)[0] + if pt == 0 and pow_x < 1: + ind += t + elif pow_x >= pt and pow_x < pt + 1: + ind += t + term += ind + + return term.collect(self.x) + + def _eval_subs(self, old, new): + x = self.x + if old.has(x): + return self + + def _eval_as_leading_term(self, x, logx=None, cdir=0): + for t in self: + if t is not S.Zero: + return t + + def _eval_derivative(self, x): + f = self.function.diff(x) + ind = self.ind.diff(x) + + pow_xk = self._get_pow_x(self.xk.formula) + ak = self.ak + k = ak.variables[0] + if ak.formula.has(x): + form = [] + for e, c in ak.formula.args: + temp = S.Zero + for t in Add.make_args(e): + pow_x = self._get_pow_x(t) + temp += t * (pow_xk + pow_x) + form.append((temp, c)) + form = Piecewise(*form) + ak = sequence(form.subs(k, k + 1), (k, ak.start - 1, ak.stop)) + else: + ak = sequence((ak.formula * pow_xk).subs(k, k + 1), + (k, ak.start - 1, ak.stop)) + + return self.func(f, self.x, self.x0, self.dir, (ak, self.xk, ind)) + + def integrate(self, x=None, **kwargs): + """ + Integrate Formal Power Series. + + Examples + ======== + + >>> from sympy import fps, sin, integrate + >>> from sympy.abc import x + >>> f = fps(sin(x)) + >>> f.integrate(x).truncate() + -1 + x**2/2 - x**4/24 + O(x**6) + >>> integrate(f, (x, 0, 1)) + 1 - cos(1) + """ + from sympy.integrals import integrate + + if x is None: + x = self.x + elif iterable(x): + return integrate(self.function, x) + + f = integrate(self.function, x) + ind = integrate(self.ind, x) + ind += (f - ind).limit(x, 0) # constant of integration + + pow_xk = self._get_pow_x(self.xk.formula) + ak = self.ak + k = ak.variables[0] + if ak.formula.has(x): + form = [] + for e, c in ak.formula.args: + temp = S.Zero + for t in Add.make_args(e): + pow_x = self._get_pow_x(t) + temp += t / (pow_xk + pow_x + 1) + form.append((temp, c)) + form = Piecewise(*form) + ak = sequence(form.subs(k, k - 1), (k, ak.start + 1, ak.stop)) + else: + ak = sequence((ak.formula / (pow_xk + 1)).subs(k, k - 1), + (k, ak.start + 1, ak.stop)) + + return self.func(f, self.x, self.x0, self.dir, (ak, self.xk, ind)) + + def product(self, other, x=None, n=6): + """ + Multiplies two Formal Power Series, using discrete convolution and + return the truncated terms upto specified order. + + Parameters + ========== + + n : Number, optional + Specifies the order of the term up to which the polynomial should + be truncated. + + Examples + ======== + + >>> from sympy import fps, sin, exp + >>> from sympy.abc import x + >>> f1 = fps(sin(x)) + >>> f2 = fps(exp(x)) + + >>> f1.product(f2, x).truncate(4) + x + x**2 + x**3/3 + O(x**4) + + See Also + ======== + + sympy.discrete.convolutions + sympy.series.formal.FormalPowerSeriesProduct + + """ + + if n is None: + return iter(self) + + other = sympify(other) + + if not isinstance(other, FormalPowerSeries): + raise ValueError("Both series should be an instance of FormalPowerSeries" + " class.") + + if self.dir != other.dir: + raise ValueError("Both series should be calculated from the" + " same direction.") + elif self.x0 != other.x0: + raise ValueError("Both series should be calculated about the" + " same point.") + + elif self.x != other.x: + raise ValueError("Both series should have the same symbol.") + + return FormalPowerSeriesProduct(self, other) + + def coeff_bell(self, n): + r""" + self.coeff_bell(n) returns a sequence of Bell polynomials of the second kind. + Note that ``n`` should be a integer. + + The second kind of Bell polynomials (are sometimes called "partial" Bell + polynomials or incomplete Bell polynomials) are defined as + + .. math:: + B_{n,k}(x_1, x_2,\dotsc x_{n-k+1}) = + \sum_{j_1+j_2+j_2+\dotsb=k \atop j_1+2j_2+3j_2+\dotsb=n} + \frac{n!}{j_1!j_2!\dotsb j_{n-k+1}!} + \left(\frac{x_1}{1!} \right)^{j_1} + \left(\frac{x_2}{2!} \right)^{j_2} \dotsb + \left(\frac{x_{n-k+1}}{(n-k+1)!} \right) ^{j_{n-k+1}}. + + * ``bell(n, k, (x1, x2, ...))`` gives Bell polynomials of the second kind, + `B_{n,k}(x_1, x_2, \dotsc, x_{n-k+1})`. + + See Also + ======== + + sympy.functions.combinatorial.numbers.bell + + """ + + inner_coeffs = [bell(n, j, tuple(self.bell_coeff_seq[:n-j+1])) for j in range(1, n+1)] + + k = Dummy('k') + return sequence(tuple(inner_coeffs), (k, 1, oo)) + + def compose(self, other, x=None, n=6): + r""" + Returns the truncated terms of the formal power series of the composed function, + up to specified ``n``. + + Explanation + =========== + + If ``f`` and ``g`` are two formal power series of two different functions, + then the coefficient sequence ``ak`` of the composed formal power series `fp` + will be as follows. + + .. math:: + \sum\limits_{k=0}^{n} b_k B_{n,k}(x_1, x_2, \dotsc, x_{n-k+1}) + + Parameters + ========== + + n : Number, optional + Specifies the order of the term up to which the polynomial should + be truncated. + + Examples + ======== + + >>> from sympy import fps, sin, exp + >>> from sympy.abc import x + >>> f1 = fps(exp(x)) + >>> f2 = fps(sin(x)) + + >>> f1.compose(f2, x).truncate() + 1 + x + x**2/2 - x**4/8 - x**5/15 + O(x**6) + + >>> f1.compose(f2, x).truncate(8) + 1 + x + x**2/2 - x**4/8 - x**5/15 - x**6/240 + x**7/90 + O(x**8) + + See Also + ======== + + sympy.functions.combinatorial.numbers.bell + sympy.series.formal.FormalPowerSeriesCompose + + References + ========== + + .. [1] Comtet, Louis: Advanced combinatorics; the art of finite and infinite expansions. Reidel, 1974. + + """ + + if n is None: + return iter(self) + + other = sympify(other) + + if not isinstance(other, FormalPowerSeries): + raise ValueError("Both series should be an instance of FormalPowerSeries" + " class.") + + if self.dir != other.dir: + raise ValueError("Both series should be calculated from the" + " same direction.") + elif self.x0 != other.x0: + raise ValueError("Both series should be calculated about the" + " same point.") + + elif self.x != other.x: + raise ValueError("Both series should have the same symbol.") + + if other._eval_term(0).as_coeff_mul(other.x)[0] is not S.Zero: + raise ValueError("The formal power series of the inner function should not have any " + "constant coefficient term.") + + return FormalPowerSeriesCompose(self, other) + + def inverse(self, x=None, n=6): + r""" + Returns the truncated terms of the inverse of the formal power series, + up to specified ``n``. + + Explanation + =========== + + If ``f`` and ``g`` are two formal power series of two different functions, + then the coefficient sequence ``ak`` of the composed formal power series ``fp`` + will be as follows. + + .. math:: + \sum\limits_{k=0}^{n} (-1)^{k} x_0^{-k-1} B_{n,k}(x_1, x_2, \dotsc, x_{n-k+1}) + + Parameters + ========== + + n : Number, optional + Specifies the order of the term up to which the polynomial should + be truncated. + + Examples + ======== + + >>> from sympy import fps, exp, cos + >>> from sympy.abc import x + >>> f1 = fps(exp(x)) + >>> f2 = fps(cos(x)) + + >>> f1.inverse(x).truncate() + 1 - x + x**2/2 - x**3/6 + x**4/24 - x**5/120 + O(x**6) + + >>> f2.inverse(x).truncate(8) + 1 + x**2/2 + 5*x**4/24 + 61*x**6/720 + O(x**8) + + See Also + ======== + + sympy.functions.combinatorial.numbers.bell + sympy.series.formal.FormalPowerSeriesInverse + + References + ========== + + .. [1] Comtet, Louis: Advanced combinatorics; the art of finite and infinite expansions. Reidel, 1974. + + """ + + if n is None: + return iter(self) + + if self._eval_term(0).is_zero: + raise ValueError("Constant coefficient should exist for an inverse of a formal" + " power series to exist.") + + return FormalPowerSeriesInverse(self) + + def __add__(self, other): + other = sympify(other) + + if isinstance(other, FormalPowerSeries): + if self.dir != other.dir: + raise ValueError("Both series should be calculated from the" + " same direction.") + elif self.x0 != other.x0: + raise ValueError("Both series should be calculated about the" + " same point.") + + x, y = self.x, other.x + f = self.function + other.function.subs(y, x) + + if self.x not in f.free_symbols: + return f + + ak = self.ak + other.ak + if self.ak.start > other.ak.start: + seq = other.ak + s, e = other.ak.start, self.ak.start + else: + seq = self.ak + s, e = self.ak.start, other.ak.start + save = Add(*[z[0]*z[1] for z in zip(seq[0:(e - s)], self.xk[s:e])]) + ind = self.ind + other.ind + save + + return self.func(f, x, self.x0, self.dir, (ak, self.xk, ind)) + + elif not other.has(self.x): + f = self.function + other + ind = self.ind + other + + return self.func(f, self.x, self.x0, self.dir, + (self.ak, self.xk, ind)) + + return Add(self, other) + + def __radd__(self, other): + return self.__add__(other) + + def __neg__(self): + return self.func(-self.function, self.x, self.x0, self.dir, + (-self.ak, self.xk, -self.ind)) + + def __sub__(self, other): + return self.__add__(-other) + + def __rsub__(self, other): + return (-self).__add__(other) + + def __mul__(self, other): + other = sympify(other) + + if other.has(self.x): + return Mul(self, other) + + f = self.function * other + ak = self.ak.coeff_mul(other) + ind = self.ind * other + + return self.func(f, self.x, self.x0, self.dir, (ak, self.xk, ind)) + + def __rmul__(self, other): + return self.__mul__(other) + + +class FiniteFormalPowerSeries(FormalPowerSeries): + """Base Class for Product, Compose and Inverse classes""" + + def __init__(self, *args): + pass + + @property + def ffps(self): + return self.args[0] + + @property + def gfps(self): + return self.args[1] + + @property + def f(self): + return self.ffps.function + + @property + def g(self): + return self.gfps.function + + @property + def infinite(self): + raise NotImplementedError("No infinite version for an object of" + " FiniteFormalPowerSeries class.") + + def _eval_terms(self, n): + raise NotImplementedError("(%s)._eval_terms()" % self) + + def _eval_term(self, pt): + raise NotImplementedError("By the current logic, one can get terms" + "upto a certain order, instead of getting term by term.") + + def polynomial(self, n): + return self._eval_terms(n) + + def truncate(self, n=6): + ffps = self.ffps + pt_xk = ffps.xk.coeff(n) + x, x0 = ffps.x, ffps.x0 + + return self.polynomial(n) + Order(pt_xk, (x, x0)) + + def _eval_derivative(self, x): + raise NotImplementedError + + def integrate(self, x): + raise NotImplementedError + + +class FormalPowerSeriesProduct(FiniteFormalPowerSeries): + """Represents the product of two formal power series of two functions. + + Explanation + =========== + + No computation is performed. Terms are calculated using a term by term logic, + instead of a point by point logic. + + There are two differences between a :obj:`FormalPowerSeries` object and a + :obj:`FormalPowerSeriesProduct` object. The first argument contains the two + functions involved in the product. Also, the coefficient sequence contains + both the coefficient sequence of the formal power series of the involved functions. + + See Also + ======== + + sympy.series.formal.FormalPowerSeries + sympy.series.formal.FiniteFormalPowerSeries + + """ + + def __init__(self, *args): + ffps, gfps = self.ffps, self.gfps + + k = ffps.ak.variables[0] + self.coeff1 = sequence(ffps.ak.formula, (k, 0, oo)) + + k = gfps.ak.variables[0] + self.coeff2 = sequence(gfps.ak.formula, (k, 0, oo)) + + @property + def function(self): + """Function of the product of two formal power series.""" + return self.f * self.g + + def _eval_terms(self, n): + """ + Returns the first ``n`` terms of the product formal power series. + Term by term logic is implemented here. + + Examples + ======== + + >>> from sympy import fps, sin, exp + >>> from sympy.abc import x + >>> f1 = fps(sin(x)) + >>> f2 = fps(exp(x)) + >>> fprod = f1.product(f2, x) + + >>> fprod._eval_terms(4) + x**3/3 + x**2 + x + + See Also + ======== + + sympy.series.formal.FormalPowerSeries.product + + """ + coeff1, coeff2 = self.coeff1, self.coeff2 + + aks = convolution(coeff1[:n], coeff2[:n]) + + terms = [] + for i in range(0, n): + terms.append(aks[i] * self.ffps.xk.coeff(i)) + + return Add(*terms) + + +class FormalPowerSeriesCompose(FiniteFormalPowerSeries): + """ + Represents the composed formal power series of two functions. + + Explanation + =========== + + No computation is performed. Terms are calculated using a term by term logic, + instead of a point by point logic. + + There are two differences between a :obj:`FormalPowerSeries` object and a + :obj:`FormalPowerSeriesCompose` object. The first argument contains the outer + function and the inner function involved in the omposition. Also, the + coefficient sequence contains the generic sequence which is to be multiplied + by a custom ``bell_seq`` finite sequence. The finite terms will then be added up to + get the final terms. + + See Also + ======== + + sympy.series.formal.FormalPowerSeries + sympy.series.formal.FiniteFormalPowerSeries + + """ + + @property + def function(self): + """Function for the composed formal power series.""" + f, g, x = self.f, self.g, self.ffps.x + return f.subs(x, g) + + def _eval_terms(self, n): + """ + Returns the first `n` terms of the composed formal power series. + Term by term logic is implemented here. + + Explanation + =========== + + The coefficient sequence of the :obj:`FormalPowerSeriesCompose` object is the generic sequence. + It is multiplied by ``bell_seq`` to get a sequence, whose terms are added up to get + the final terms for the polynomial. + + Examples + ======== + + >>> from sympy import fps, sin, exp + >>> from sympy.abc import x + >>> f1 = fps(exp(x)) + >>> f2 = fps(sin(x)) + >>> fcomp = f1.compose(f2, x) + + >>> fcomp._eval_terms(6) + -x**5/15 - x**4/8 + x**2/2 + x + 1 + + >>> fcomp._eval_terms(8) + x**7/90 - x**6/240 - x**5/15 - x**4/8 + x**2/2 + x + 1 + + See Also + ======== + + sympy.series.formal.FormalPowerSeries.compose + sympy.series.formal.FormalPowerSeries.coeff_bell + + """ + + ffps, gfps = self.ffps, self.gfps + terms = [ffps.zero_coeff()] + + for i in range(1, n): + bell_seq = gfps.coeff_bell(i) + seq = (ffps.bell_coeff_seq * bell_seq) + terms.append(Add(*(seq[:i])) / ffps.fact_seq[i-1] * ffps.xk.coeff(i)) + + return Add(*terms) + + +class FormalPowerSeriesInverse(FiniteFormalPowerSeries): + """ + Represents the Inverse of a formal power series. + + Explanation + =========== + + No computation is performed. Terms are calculated using a term by term logic, + instead of a point by point logic. + + There is a single difference between a :obj:`FormalPowerSeries` object and a + :obj:`FormalPowerSeriesInverse` object. The coefficient sequence contains the + generic sequence which is to be multiplied by a custom ``bell_seq`` finite sequence. + The finite terms will then be added up to get the final terms. + + See Also + ======== + + sympy.series.formal.FormalPowerSeries + sympy.series.formal.FiniteFormalPowerSeries + + """ + def __init__(self, *args): + ffps = self.ffps + k = ffps.xk.variables[0] + + inv = ffps.zero_coeff() + inv_seq = sequence(inv ** (-(k + 1)), (k, 1, oo)) + self.aux_seq = ffps.sign_seq * ffps.fact_seq * inv_seq + + @property + def function(self): + """Function for the inverse of a formal power series.""" + f = self.f + return 1 / f + + @property + def g(self): + raise ValueError("Only one function is considered while performing" + "inverse of a formal power series.") + + @property + def gfps(self): + raise ValueError("Only one function is considered while performing" + "inverse of a formal power series.") + + def _eval_terms(self, n): + """ + Returns the first ``n`` terms of the composed formal power series. + Term by term logic is implemented here. + + Explanation + =========== + + The coefficient sequence of the `FormalPowerSeriesInverse` object is the generic sequence. + It is multiplied by ``bell_seq`` to get a sequence, whose terms are added up to get + the final terms for the polynomial. + + Examples + ======== + + >>> from sympy import fps, exp, cos + >>> from sympy.abc import x + >>> f1 = fps(exp(x)) + >>> f2 = fps(cos(x)) + >>> finv1, finv2 = f1.inverse(), f2.inverse() + + >>> finv1._eval_terms(6) + -x**5/120 + x**4/24 - x**3/6 + x**2/2 - x + 1 + + >>> finv2._eval_terms(8) + 61*x**6/720 + 5*x**4/24 + x**2/2 + 1 + + See Also + ======== + + sympy.series.formal.FormalPowerSeries.inverse + sympy.series.formal.FormalPowerSeries.coeff_bell + + """ + ffps = self.ffps + terms = [ffps.zero_coeff()] + + for i in range(1, n): + bell_seq = ffps.coeff_bell(i) + seq = (self.aux_seq * bell_seq) + terms.append(Add(*(seq[:i])) / ffps.fact_seq[i-1] * ffps.xk.coeff(i)) + + return Add(*terms) + + +def fps(f, x=None, x0=0, dir=1, hyper=True, order=4, rational=True, full=False): + """ + Generates Formal Power Series of ``f``. + + Explanation + =========== + + Returns the formal series expansion of ``f`` around ``x = x0`` + with respect to ``x`` in the form of a ``FormalPowerSeries`` object. + + Formal Power Series is represented using an explicit formula + computed using different algorithms. + + See :func:`compute_fps` for the more details regarding the computation + of formula. + + Parameters + ========== + + x : Symbol, optional + If x is None and ``f`` is univariate, the univariate symbols will be + supplied, otherwise an error will be raised. + x0 : number, optional + Point to perform series expansion about. Default is 0. + dir : {1, -1, '+', '-'}, optional + If dir is 1 or '+' the series is calculated from the right and + for -1 or '-' the series is calculated from the left. For smooth + functions this flag will not alter the results. Default is 1. + hyper : {True, False}, optional + Set hyper to False to skip the hypergeometric algorithm. + By default it is set to False. + order : int, optional + Order of the derivative of ``f``, Default is 4. + rational : {True, False}, optional + Set rational to False to skip rational algorithm. By default it is set + to True. + full : {True, False}, optional + Set full to True to increase the range of rational algorithm. + See :func:`rational_algorithm` for details. By default it is set to + False. + + Examples + ======== + + >>> from sympy import fps, ln, atan, sin + >>> from sympy.abc import x, n + + Rational Functions + + >>> fps(ln(1 + x)).truncate() + x - x**2/2 + x**3/3 - x**4/4 + x**5/5 + O(x**6) + + >>> fps(atan(x), full=True).truncate() + x - x**3/3 + x**5/5 + O(x**6) + + Symbolic Functions + + >>> fps(x**n*sin(x**2), x).truncate(8) + -x**(n + 6)/6 + x**(n + 2) + O(x**(n + 8)) + + See Also + ======== + + sympy.series.formal.FormalPowerSeries + sympy.series.formal.compute_fps + """ + f = sympify(f) + + if x is None: + free = f.free_symbols + if len(free) == 1: + x = free.pop() + elif not free: + return f + else: + raise NotImplementedError("multivariate formal power series") + + result = compute_fps(f, x, x0, dir, hyper, order, rational, full) + + if result is None: + return f + + return FormalPowerSeries(f, x, x0, dir, result) diff --git a/shared/package-files/0a/0ad92780a8b8a3fcf95cc6e6ce96b5782d6e511f5209bb8e2258bd66c9e1e117/cxx.py b/shared/package-files/0a/0ad92780a8b8a3fcf95cc6e6ce96b5782d6e511f5209bb8e2258bd66c9e1e117/cxx.py new file mode 100644 index 0000000000000000000000000000000000000000..cd5d281a9028e66e57bf37d7054afe2c48f25754 --- /dev/null +++ b/shared/package-files/0a/0ad92780a8b8a3fcf95cc6e6ce96b5782d6e511f5209bb8e2258bd66c9e1e117/cxx.py @@ -0,0 +1,169 @@ +""" +C++ code printer +""" + +from itertools import chain +from sympy.codegen.ast import Type, none +from .c import C89CodePrinter, C99CodePrinter + +# These are defined in the other file so we can avoid importing sympy.codegen +# from the top-level 'import sympy'. Export them here as well. +from sympy.printing.codeprinter import cxxcode # noqa:F401 + +# from https://en.cppreference.com/w/cpp/keyword +reserved = { + 'C++98': [ + 'and', 'and_eq', 'asm', 'auto', 'bitand', 'bitor', 'bool', 'break', + 'case', 'catch,', 'char', 'class', 'compl', 'const', 'const_cast', + 'continue', 'default', 'delete', 'do', 'double', 'dynamic_cast', + 'else', 'enum', 'explicit', 'export', 'extern', 'false', 'float', + 'for', 'friend', 'goto', 'if', 'inline', 'int', 'long', 'mutable', + 'namespace', 'new', 'not', 'not_eq', 'operator', 'or', 'or_eq', + 'private', 'protected', 'public', 'register', 'reinterpret_cast', + 'return', 'short', 'signed', 'sizeof', 'static', 'static_cast', + 'struct', 'switch', 'template', 'this', 'throw', 'true', 'try', + 'typedef', 'typeid', 'typename', 'union', 'unsigned', 'using', + 'virtual', 'void', 'volatile', 'wchar_t', 'while', 'xor', 'xor_eq' + ] +} + +reserved['C++11'] = reserved['C++98'][:] + [ + 'alignas', 'alignof', 'char16_t', 'char32_t', 'constexpr', 'decltype', + 'noexcept', 'nullptr', 'static_assert', 'thread_local' +] +reserved['C++17'] = reserved['C++11'][:] +reserved['C++17'].remove('register') +# TM TS: atomic_cancel, atomic_commit, atomic_noexcept, synchronized +# concepts TS: concept, requires +# module TS: import, module + + +_math_functions = { + 'C++98': { + 'Mod': 'fmod', + 'ceiling': 'ceil', + }, + 'C++11': { + 'gamma': 'tgamma', + }, + 'C++17': { + 'beta': 'beta', + 'Ei': 'expint', + 'zeta': 'riemann_zeta', + } +} + +# from https://en.cppreference.com/w/cpp/header/cmath +for k in ('Abs', 'exp', 'log', 'log10', 'sqrt', 'sin', 'cos', 'tan', # 'Pow' + 'asin', 'acos', 'atan', 'atan2', 'sinh', 'cosh', 'tanh', 'floor'): + _math_functions['C++98'][k] = k.lower() + + +for k in ('asinh', 'acosh', 'atanh', 'erf', 'erfc'): + _math_functions['C++11'][k] = k.lower() + + +def _attach_print_method(cls, sympy_name, func_name): + meth_name = '_print_%s' % sympy_name + if hasattr(cls, meth_name): + raise ValueError("Edit method (or subclass) instead of overwriting.") + def _print_method(self, expr): + return '{}{}({})'.format(self._ns, func_name, ', '.join(map(self._print, expr.args))) + _print_method.__doc__ = "Prints code for %s" % k + setattr(cls, meth_name, _print_method) + + +def _attach_print_methods(cls, cont): + for sympy_name, cxx_name in cont[cls.standard].items(): + _attach_print_method(cls, sympy_name, cxx_name) + + +class _CXXCodePrinterBase: + printmethod = "_cxxcode" + language = 'C++' + _ns = 'std::' # namespace + + def __init__(self, settings=None): + super().__init__(settings or {}) + + def _print_Max(self, expr): + from sympy.functions.elementary.miscellaneous import Max + if len(expr.args) == 1: + return self._print(expr.args[0]) + return "%smax(%s, %s)" % (self._ns, self._print(expr.args[0]), + self._print(Max(*expr.args[1:]))) + + def _print_Min(self, expr): + from sympy.functions.elementary.miscellaneous import Min + if len(expr.args) == 1: + return self._print(expr.args[0]) + return "%smin(%s, %s)" % (self._ns, self._print(expr.args[0]), + self._print(Min(*expr.args[1:]))) + + def _print_using(self, expr): + if expr.alias == none: + return 'using %s' % expr.type + else: + raise ValueError("C++98 does not support type aliases") + + +class CXX98CodePrinter(_CXXCodePrinterBase, C89CodePrinter): + standard = 'C++98' + reserved_words = set(reserved['C++98']) + + +# _attach_print_methods(CXX98CodePrinter, _math_functions) + + +class CXX11CodePrinter(_CXXCodePrinterBase, C99CodePrinter): + standard = 'C++11' + reserved_words = set(reserved['C++11']) + type_mappings = dict(chain( + CXX98CodePrinter.type_mappings.items(), + { + Type('int8'): ('int8_t', {'cstdint'}), + Type('int16'): ('int16_t', {'cstdint'}), + Type('int32'): ('int32_t', {'cstdint'}), + Type('int64'): ('int64_t', {'cstdint'}), + Type('uint8'): ('uint8_t', {'cstdint'}), + Type('uint16'): ('uint16_t', {'cstdint'}), + Type('uint32'): ('uint32_t', {'cstdint'}), + Type('uint64'): ('uint64_t', {'cstdint'}), + Type('complex64'): ('std::complex', {'complex'}), + Type('complex128'): ('std::complex', {'complex'}), + Type('bool'): ('bool', None), + }.items() + )) + + def _print_using(self, expr): + if expr.alias == none: + return super()._print_using(expr) + else: + return 'using %(alias)s = %(type)s' % expr.kwargs(apply=self._print) + +# _attach_print_methods(CXX11CodePrinter, _math_functions) + + +class CXX17CodePrinter(_CXXCodePrinterBase, C99CodePrinter): + standard = 'C++17' + reserved_words = set(reserved['C++17']) + + _kf = dict(C99CodePrinter._kf, **_math_functions['C++17']) + + def _print_beta(self, expr): + return self._print_math_func(expr) + + def _print_Ei(self, expr): + return self._print_math_func(expr) + + def _print_zeta(self, expr): + return self._print_math_func(expr) + + +# _attach_print_methods(CXX17CodePrinter, _math_functions) + +cxx_code_printers = { + 'c++98': CXX98CodePrinter, + 'c++11': CXX11CodePrinter, + 'c++17': CXX17CodePrinter +} diff --git a/shared/package-files/0a/0adac962823b465bc35b45038b959606bbe85af493f481a234f39d1234f176cc/conv_add.py b/shared/package-files/0a/0adac962823b465bc35b45038b959606bbe85af493f481a234f39d1234f176cc/conv_add.py new file mode 100644 index 0000000000000000000000000000000000000000..6e46aa8915e4c3830c36f4d5cd9e8286ebaf3afd --- /dev/null +++ b/shared/package-files/0a/0adac962823b465bc35b45038b959606bbe85af493f481a234f39d1234f176cc/conv_add.py @@ -0,0 +1,93 @@ +import torch +import torch.ao.nn.intrinsic +import torch.ao.nn.intrinsic.qat +import torch.nn.functional as F +import torch.ao.nn.quantized as nnq + +_reverse_repeat_padding = nnq.modules.conv._reverse_repeat_padding + +class ConvAdd2d(nnq.Conv2d): + r""" + A ConvAdd2d module is a fused module of Conv2d and Add + + We adopt the same interface as :class:`torch.ao.nn.quantized.Conv2d`. + + Attributes: + Same as torch.ao.nn.quantized.Conv2d + + """ + _FLOAT_MODULE = torch.ao.nn.intrinsic.ConvAdd2d # type: ignore[assignment] + + def __init__(self, in_channels, out_channels, kernel_size, stride=1, + padding=0, dilation=1, groups=1, bias=True, + padding_mode='zeros', device=None, dtype=None): + super().__init__( + in_channels, out_channels, kernel_size, stride=stride, + padding=padding, dilation=dilation, groups=groups, bias=bias, + padding_mode=padding_mode, device=device, dtype=dtype) + + def forward(self, input, extra_input): + # Temporarily using len(shape) instead of ndim due to JIT issue + # https://github.com/pytorch/pytorch/issues/23890 + if len(input.shape) != 4: + raise ValueError("Input shape must be `(N, C, H, W)`!") + if self.padding_mode != 'zeros': + _reversed_padding_repeated_twice = _reverse_repeat_padding(self.padding) + input = F.pad(input, _reversed_padding_repeated_twice, + mode=self.padding_mode) + return torch.ops.quantized.conv2d_add( + input, extra_input, self._packed_params, self.scale, self.zero_point) + + def _get_name(self): + return 'QuantizedConvAdd2d' + + @classmethod + def from_float(cls, mod): + return super().from_float(mod) + + @classmethod + def from_reference(cls, ref_qconv, output_scale, output_zero_point): + return super().from_reference(ref_qconv[0], output_scale, output_zero_point) + +class ConvAddReLU2d(nnq.Conv2d): + r""" + A ConvAddReLU2d module is a fused module of Conv2d, Add and Relu + + We adopt the same interface as :class:`torch.ao.nn.quantized.Conv2d`. + + Attributes: + Same as torch.ao.nn.quantized.Conv2d + + """ + _FLOAT_MODULE = torch.ao.nn.intrinsic.ConvAddReLU2d # type: ignore[assignment] + + def __init__(self, in_channels, out_channels, kernel_size, stride=1, + padding=0, dilation=1, groups=1, bias=True, + padding_mode='zeros', device=None, dtype=None): + super().__init__( + in_channels, out_channels, kernel_size, stride=stride, + padding=padding, dilation=dilation, groups=groups, bias=bias, + padding_mode=padding_mode, device=device, dtype=dtype) + + def forward(self, input, extra_input): + # Temporarily using len(shape) instead of ndim due to JIT issue + # https://github.com/pytorch/pytorch/issues/23890 + if len(input.shape) != 4: + raise ValueError("Input shape must be `(N, C, H, W)`!") + if self.padding_mode != 'zeros': + _reversed_padding_repeated_twice = _reverse_repeat_padding(self.padding) + input = F.pad(input, _reversed_padding_repeated_twice, + mode=self.padding_mode) + return torch.ops.quantized.conv2d_add_relu( + input, extra_input, self._packed_params, self.scale, self.zero_point) + + def _get_name(self): + return 'QuantizedConvAddReLU2d' + + @classmethod + def from_float(cls, mod): + return super().from_float(mod) + + @classmethod + def from_reference(cls, ref_qconv, output_scale, output_zero_point): + return super().from_reference(ref_qconv[0], output_scale, output_zero_point) diff --git a/shared/package-files/0a/0adb7d016a3228e0c7c17610d959fc61ac8ebeb7a52abf6d7179b6fa83e8a2e0/swapaxes.h b/shared/package-files/0a/0adb7d016a3228e0c7c17610d959fc61ac8ebeb7a52abf6d7179b6fa83e8a2e0/swapaxes.h new file mode 100644 index 0000000000000000000000000000000000000000..57a63505218ad7d017e8a770f27bac84bcb32c12 --- /dev/null +++ b/shared/package-files/0a/0adb7d016a3228e0c7c17610d959fc61ac8ebeb7a52abf6d7179b6fa83e8a2e0/swapaxes.h @@ -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::swapaxes(Tensor(a) self, int axis0, int axis1) -> Tensor(a) +inline at::Tensor swapaxes(const at::Tensor & self, int64_t axis0, int64_t axis1) { + return at::_ops::swapaxes::call(self, axis0, axis1); +} + +} diff --git a/shared/package-files/0a/0adbb0f87ec3c613e34adef065d276c5f7dac08a040423d673917b3d2918e076/test_mixed.py b/shared/package-files/0a/0adbb0f87ec3c613e34adef065d276c5f7dac08a040423d673917b3d2918e076/test_mixed.py new file mode 100644 index 0000000000000000000000000000000000000000..80653b7d2d7700927d8ad9c93d748c7026f9f9cc --- /dev/null +++ b/shared/package-files/0a/0adbb0f87ec3c613e34adef065d276c5f7dac08a040423d673917b3d2918e076/test_mixed.py @@ -0,0 +1,33 @@ +import os +import textwrap +import pytest + +from numpy.testing import IS_PYPY +from . import util + + +class TestMixed(util.F2PyTest): + sources = [ + util.getpath("tests", "src", "mixed", "foo.f"), + util.getpath("tests", "src", "mixed", "foo_fixed.f90"), + util.getpath("tests", "src", "mixed", "foo_free.f90"), + ] + + def test_all(self): + assert self.module.bar11() == 11 + assert self.module.foo_fixed.bar12() == 12 + assert self.module.foo_free.bar13() == 13 + + @pytest.mark.xfail(IS_PYPY, + reason="PyPy cannot modify tp_doc after PyType_Ready") + def test_docstring(self): + expected = textwrap.dedent("""\ + a = bar11() + + Wrapper for ``bar11``. + + Returns + ------- + a : int + """) + assert self.module.bar11.__doc__ == expected diff --git a/shared/package-files/0a/0ae444726dc862d7993410c077f651015e17a81b32d2cd3b8dd59ce1e9fdafef/pointPen.py b/shared/package-files/0a/0ae444726dc862d7993410c077f651015e17a81b32d2cd3b8dd59ce1e9fdafef/pointPen.py new file mode 100644 index 0000000000000000000000000000000000000000..4a8126cd6481a39b5bfeec7348c8efd168118236 --- /dev/null +++ b/shared/package-files/0a/0ae444726dc862d7993410c077f651015e17a81b32d2cd3b8dd59ce1e9fdafef/pointPen.py @@ -0,0 +1,6 @@ +"""DEPRECATED - This module is kept here only as a backward compatibility shim +for the old `ufoLib.pointPen` module, which was moved to :class:`fontTools.pens.pointPen`. +Please use the latter instead. +""" + +from fontTools.pens.pointPen import * diff --git a/shared/package-files/0a/0ae4a0737f5d9a505805217dec49148b7ef05d151538b61627ffa5c92f1a7d71/d412+dg b/shared/package-files/0a/0ae4a0737f5d9a505805217dec49148b7ef05d151538b61627ffa5c92f1a7d71/d412+dg new file mode 100644 index 0000000000000000000000000000000000000000..11f56017af9bf394b84677efe13b24e0017e4be0 Binary files /dev/null and b/shared/package-files/0a/0ae4a0737f5d9a505805217dec49148b7ef05d151538b61627ffa5c92f1a7d71/d412+dg differ diff --git a/shared/package-files/0a/0ae4a0737f5d9a505805217dec49148b7ef05d151538b61627ffa5c92f1a7d71/d412-dg b/shared/package-files/0a/0ae4a0737f5d9a505805217dec49148b7ef05d151538b61627ffa5c92f1a7d71/d412-dg new file mode 100644 index 0000000000000000000000000000000000000000..11f56017af9bf394b84677efe13b24e0017e4be0 Binary files /dev/null and b/shared/package-files/0a/0ae4a0737f5d9a505805217dec49148b7ef05d151538b61627ffa5c92f1a7d71/d412-dg differ diff --git a/shared/package-files/0a/0ae4a0737f5d9a505805217dec49148b7ef05d151538b61627ffa5c92f1a7d71/d413-dg b/shared/package-files/0a/0ae4a0737f5d9a505805217dec49148b7ef05d151538b61627ffa5c92f1a7d71/d413-dg new file mode 100644 index 0000000000000000000000000000000000000000..11f56017af9bf394b84677efe13b24e0017e4be0 Binary files /dev/null and b/shared/package-files/0a/0ae4a0737f5d9a505805217dec49148b7ef05d151538b61627ffa5c92f1a7d71/d413-dg differ diff --git a/shared/package-files/0a/0ae4a0737f5d9a505805217dec49148b7ef05d151538b61627ffa5c92f1a7d71/d462+dg b/shared/package-files/0a/0ae4a0737f5d9a505805217dec49148b7ef05d151538b61627ffa5c92f1a7d71/d462+dg new file mode 100644 index 0000000000000000000000000000000000000000..11f56017af9bf394b84677efe13b24e0017e4be0 Binary files /dev/null and b/shared/package-files/0a/0ae4a0737f5d9a505805217dec49148b7ef05d151538b61627ffa5c92f1a7d71/d462+dg differ diff --git a/shared/package-files/0a/0ae4a0737f5d9a505805217dec49148b7ef05d151538b61627ffa5c92f1a7d71/d462-dg b/shared/package-files/0a/0ae4a0737f5d9a505805217dec49148b7ef05d151538b61627ffa5c92f1a7d71/d462-dg new file mode 100644 index 0000000000000000000000000000000000000000..11f56017af9bf394b84677efe13b24e0017e4be0 Binary files /dev/null and b/shared/package-files/0a/0ae4a0737f5d9a505805217dec49148b7ef05d151538b61627ffa5c92f1a7d71/d462-dg differ diff --git a/shared/package-files/0a/0ae4a0737f5d9a505805217dec49148b7ef05d151538b61627ffa5c92f1a7d71/d462e-dg b/shared/package-files/0a/0ae4a0737f5d9a505805217dec49148b7ef05d151538b61627ffa5c92f1a7d71/d462e-dg new file mode 100644 index 0000000000000000000000000000000000000000..11f56017af9bf394b84677efe13b24e0017e4be0 Binary files /dev/null and b/shared/package-files/0a/0ae4a0737f5d9a505805217dec49148b7ef05d151538b61627ffa5c92f1a7d71/d462e-dg differ diff --git a/shared/package-files/0a/0ae4a0737f5d9a505805217dec49148b7ef05d151538b61627ffa5c92f1a7d71/d463-dg b/shared/package-files/0a/0ae4a0737f5d9a505805217dec49148b7ef05d151538b61627ffa5c92f1a7d71/d463-dg new file mode 100644 index 0000000000000000000000000000000000000000..11f56017af9bf394b84677efe13b24e0017e4be0 Binary files /dev/null and b/shared/package-files/0a/0ae4a0737f5d9a505805217dec49148b7ef05d151538b61627ffa5c92f1a7d71/d463-dg differ diff --git a/shared/package-files/0a/0ae51b4f6d38860c152128116f3d1071e104fe990753204cc7c99b954a0d05d7/fake_quantize_per_tensor_affine_compositeimplicitautograd_dispatch.h b/shared/package-files/0a/0ae51b4f6d38860c152128116f3d1071e104fe990753204cc7c99b954a0d05d7/fake_quantize_per_tensor_affine_compositeimplicitautograd_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..fd92f267b467ec3b7cac5677725345c41d90cb5a --- /dev/null +++ b/shared/package-files/0a/0ae51b4f6d38860c152128116f3d1071e104fe990753204cc7c99b954a0d05d7/fake_quantize_per_tensor_affine_compositeimplicitautograd_dispatch.h @@ -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 fake_quantize_per_tensor_affine(const at::Tensor & self, double scale, int64_t zero_point, int64_t quant_min, int64_t quant_max); +TORCH_API at::Tensor fake_quantize_per_tensor_affine(const at::Tensor & self, const at::Tensor & scale, const at::Tensor & zero_point, int64_t quant_min, int64_t quant_max); + +} // namespace compositeimplicitautograd +} // namespace at diff --git a/shared/package-files/0a/0ae67b4c8755572cd21cc39e8e3f6369e264bf3e05069528111a1caaa35e5a8f/att4420 b/shared/package-files/0a/0ae67b4c8755572cd21cc39e8e3f6369e264bf3e05069528111a1caaa35e5a8f/att4420 new file mode 100644 index 0000000000000000000000000000000000000000..8187d8a275394ecb74f80e72158267ca3a61b91a Binary files /dev/null and b/shared/package-files/0a/0ae67b4c8755572cd21cc39e8e3f6369e264bf3e05069528111a1caaa35e5a8f/att4420 differ diff --git a/shared/package-files/0a/0ae67b4c8755572cd21cc39e8e3f6369e264bf3e05069528111a1caaa35e5a8f/tty4420 b/shared/package-files/0a/0ae67b4c8755572cd21cc39e8e3f6369e264bf3e05069528111a1caaa35e5a8f/tty4420 new file mode 100644 index 0000000000000000000000000000000000000000..8187d8a275394ecb74f80e72158267ca3a61b91a Binary files /dev/null and b/shared/package-files/0a/0ae67b4c8755572cd21cc39e8e3f6369e264bf3e05069528111a1caaa35e5a8f/tty4420 differ diff --git a/shared/package-files/0a/0ae6fdb0fea94f98b07b7c61ed3b15415842036479ac0fbe0c3a89c56c96cb83/predstd.py b/shared/package-files/0a/0ae6fdb0fea94f98b07b7c61ed3b15415842036479ac0fbe0c3a89c56c96cb83/predstd.py new file mode 100644 index 0000000000000000000000000000000000000000..246d233a55c8fd0085de49f4effc6156dc464e41 --- /dev/null +++ b/shared/package-files/0a/0ae6fdb0fea94f98b07b7c61ed3b15415842036479ac0fbe0c3a89c56c96cb83/predstd.py @@ -0,0 +1,101 @@ +"""Additional functions + +prediction standard errors and confidence intervals + + +A: josef pktd +""" + +import numpy as np +from scipy import stats + + +def atleast_2dcol(x): + """convert array_like to 2d from 1d or 0d + + not tested because not used + """ + x = np.asarray(x) + if x.ndim == 1: + x = x[:, None] + elif x.ndim == 0: + x = np.atleast_2d(x) + elif x.ndim > 0: + raise ValueError("too many dimensions") + return x + + +def wls_prediction_std(res, exog=None, weights=None, alpha=0.05): + """calculate standard deviation and confidence interval for prediction + + applies to WLS and OLS, not to general GLS, + that is independently but not identically distributed observations + + Parameters + ---------- + res : regression result instance + results of WLS or OLS regression required attributes see notes + exog : array_like (optional) + exogenous variables for points to predict + weights : scalar or array_like (optional) + weights as defined for WLS (inverse of variance of observation) + alpha : float (default: alpha = 0.05) + confidence level for two-sided hypothesis + + Returns + ------- + predstd : array_like, 1d + standard error of prediction + same length as rows of exog + interval_l, interval_u : array_like + lower und upper confidence bounds + + Notes + ----- + The result instance needs to have at least the following + res.model.predict() : predicted values or + res.fittedvalues : values used in estimation + res.cov_params() : covariance matrix of parameter estimates + + If exog is 1d, then it is interpreted as one observation, + i.e., a row vector. + + testing status: not compared with other packages + + References + ---------- + + Greene p.111 for OLS, extended to WLS by analogy + + """ + # work around current bug: + # fit does not attach results to model, predict broken + # res.model.results + + covb = res.cov_params() + if exog is None: + exog = res.model.exog + predicted = res.fittedvalues + if weights is None: + weights = res.model.weights + else: + exog = np.atleast_2d(exog) + if covb.shape[1] != exog.shape[1]: + raise ValueError("wrong shape of exog") + predicted = res.model.predict(res.params, exog) + if weights is None: + weights = 1.0 + else: + weights = np.asarray(weights) + if weights.size > 1 and len(weights) != exog.shape[0]: + raise ValueError("weights and exog do not have matching shape") + + # full covariance: + # predvar = res3.mse_resid + np.diag(np.dot(X2,np.dot(covb,X2.T))) + # predication variance only + predvar = res.mse_resid / weights + (exog * np.dot(covb, exog.T).T).sum(1) + predstd = np.sqrt(predvar) + tppf = stats.t.isf(alpha / 2.0, res.df_resid) + interval_u = predicted + tppf * predstd + interval_l = predicted - tppf * predstd + return predstd, interval_l, interval_u diff --git a/shared/package-files/0a/0ae71db342dc481fb964dd65f73cc48444e70c71fadaa6520f222478ec244f37/__init__.py b/shared/package-files/0a/0ae71db342dc481fb964dd65f73cc48444e70c71fadaa6520f222478ec244f37/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..3d3f4f6d35fe75f920a7bc9a123dd47e92e971e5 --- /dev/null +++ b/shared/package-files/0a/0ae71db342dc481fb964dd65f73cc48444e70c71fadaa6520f222478ec244f37/__init__.py @@ -0,0 +1,33 @@ +from ._colors import ( + blue_rgb, + gray_rgb, + light_blue_rgb, + light_red_rgb, + red_blue, + red_blue_circle, + red_blue_no_bounds, + red_blue_transparent, + red_rgb, + red_transparent_blue, + red_white_blue, + transparent_blue, + transparent_red, +) + +__all__ = [ + # Colors + "blue_rgb", + "gray_rgb", + "light_blue_rgb", + "light_red_rgb", + "red_rgb", + # Colormaps + "red_blue", + "red_blue_circle", + "red_blue_no_bounds", + "red_blue_transparent", + "red_transparent_blue", + "red_white_blue", + "transparent_blue", + "transparent_red", +] diff --git a/shared/package-files/0a/0ae73b52095bd274a06ab693c5763927c6d17b39c7e700295b4b9a90deccc9c6/__init__.py b/shared/package-files/0a/0ae73b52095bd274a06ab693c5763927c6d17b39c7e700295b4b9a90deccc9c6/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..4ae6356e44e1fed074b6283bcb4365bf2b770529 --- /dev/null +++ b/shared/package-files/0a/0ae73b52095bd274a06ab693c5763927c6d17b39c7e700295b4b9a90deccc9c6/__init__.py @@ -0,0 +1,15 @@ +# Copyright 2016 Google Inc. All Rights Reserved. +# +# Licensed 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. + +from .cu2qu import * diff --git a/shared/package-files/0a/0ae8dabe724a1ab7bc1e0238fe92cb91b9ff5020945f5622e765aed213757d58/functional.h b/shared/package-files/0a/0ae8dabe724a1ab7bc1e0238fe92cb91b9ff5020945f5622e765aed213757d58/functional.h new file mode 100644 index 0000000000000000000000000000000000000000..dbd2b0aaebdcce8d2ff39e1fa77576008fbb9bba --- /dev/null +++ b/shared/package-files/0a/0ae8dabe724a1ab7bc1e0238fe92cb91b9ff5020945f5622e765aed213757d58/functional.h @@ -0,0 +1,105 @@ +#pragma once + +#include +#include +#include +#include +#include + +#include +#include + +namespace torch { +namespace nn { + +/// Wraps a function in a `Module`. +/// +/// The `Functional` module allows wrapping an arbitrary function or function +/// object in an `nn::Module`. This is primarily handy for usage in +/// `Sequential`. +/// +/// \rst +/// .. code-block:: cpp +/// +/// Sequential sequential( +/// Linear(3, 4), +/// Functional(torch::relu), +/// BatchNorm1d(3), +/// Functional(torch::elu, /*alpha=*/1)); +/// \endrst +/// +/// While a `Functional` module only accepts a single `Tensor` as input, it is +/// possible for the wrapped function to accept further arguments. However, +/// these have to be bound *at construction time*. For example, if +/// you want to wrap `torch::leaky_relu`, which accepts a `slope` scalar as its +/// second argument, with a particular value for its `slope` in a `Functional` +/// module, you could write +/// +/// \rst +/// .. code-block:: cpp +/// +/// Functional(torch::leaky_relu, /*slope=*/0.5) +/// \endrst +/// +/// The value of `0.5` is then stored within the `Functional` object and +/// supplied to the function call at invocation time. Note that such bound +/// values are evaluated eagerly and stored a single time. See the documentation +/// of [std::bind](https://en.cppreference.com/w/cpp/utility/functional/bind) +/// for more information on the semantics of argument binding. +/// +/// \rst +/// .. attention:: +/// After passing any bound arguments, the function must accept a single +/// tensor and return a single tensor. +/// \endrst +/// +/// Note that `Functional` overloads the call operator (`operator()`) such that +/// you can invoke it with `my_func(...)`. +class TORCH_API FunctionalImpl : public torch::nn::Cloneable { + public: + using Function = std::function; + + /// Constructs a `Functional` from a function object. + explicit FunctionalImpl(Function function); + + template < + typename SomeFunction, + typename... Args, + typename = torch::enable_if_t<(sizeof...(Args) > 0)>> + explicit FunctionalImpl(SomeFunction original_function, Args&&... args) + // NOLINTNEXTLINE(modernize-avoid-bind) + : function_(std::bind( + original_function, + /*input=*/std::placeholders::_1, + std::forward(args)...)) { + // std::bind is normally evil, but (1) gcc is broken w.r.t. handling + // parameter pack expansion in lambdas and (2) moving parameter packs into + // a lambda only works with C++14, so std::bind is the more move-aware + // solution here. + } + + void reset() override; + + /// Pretty prints the `Functional` module into the given `stream`. + void pretty_print(std::ostream& stream) const override; + + /// Forwards the `input` tensor to the underlying (bound) function object. + Tensor forward(Tensor input); + + /// Calls forward(input). + Tensor operator()(Tensor input); + + bool is_serializable() const override; + + private: + Function function_; +}; + +/// A `ModuleHolder` subclass for `FunctionalImpl`. +/// See the documentation for `FunctionalImpl` class to learn what methods it +/// provides, or the documentation for `ModuleHolder` to learn about PyTorch's +/// module storage semantics. +TORCH_MODULE(Functional); + +} // namespace nn +} // namespace torch diff --git a/shared/package-files/0a/0ae97c264b2309ab7d0fdd932ac7bb34d60921abfb1c164428b1d2923dc0a8c5/base.py b/shared/package-files/0a/0ae97c264b2309ab7d0fdd932ac7bb34d60921abfb1c164428b1d2923dc0a8c5/base.py new file mode 100644 index 0000000000000000000000000000000000000000..b50f3b0ea4f85b80992415f4b388be9c4e1e655b --- /dev/null +++ b/shared/package-files/0a/0ae97c264b2309ab7d0fdd932ac7bb34d60921abfb1c164428b1d2923dc0a8c5/base.py @@ -0,0 +1,183 @@ +""" +The base classes for the styling. +""" +from __future__ import annotations + +from abc import ABCMeta, abstractmethod, abstractproperty +from typing import Callable, Hashable, NamedTuple + +__all__ = [ + "Attrs", + "DEFAULT_ATTRS", + "ANSI_COLOR_NAMES", + "ANSI_COLOR_NAMES_ALIASES", + "BaseStyle", + "DummyStyle", + "DynamicStyle", +] + + +#: Style attributes. +class Attrs(NamedTuple): + color: str | None + bgcolor: str | None + bold: bool | None + underline: bool | None + strike: bool | None + italic: bool | None + blink: bool | None + reverse: bool | None + hidden: bool | None + + +""" +:param color: Hexadecimal string. E.g. '000000' or Ansi color name: e.g. 'ansiblue' +:param bgcolor: Hexadecimal string. E.g. 'ffffff' or Ansi color name: e.g. 'ansired' +:param bold: Boolean +:param underline: Boolean +:param strike: Boolean +:param italic: Boolean +:param blink: Boolean +:param reverse: Boolean +:param hidden: Boolean +""" + +#: The default `Attrs`. +DEFAULT_ATTRS = Attrs( + color="", + bgcolor="", + bold=False, + underline=False, + strike=False, + italic=False, + blink=False, + reverse=False, + hidden=False, +) + + +#: ``Attrs.bgcolor/fgcolor`` can be in either 'ffffff' format, or can be any of +#: the following in case we want to take colors from the 8/16 color palette. +#: Usually, in that case, the terminal application allows to configure the RGB +#: values for these names. +#: ISO 6429 colors +ANSI_COLOR_NAMES = [ + "ansidefault", + # Low intensity, dark. (One or two components 0x80, the other 0x00.) + "ansiblack", + "ansired", + "ansigreen", + "ansiyellow", + "ansiblue", + "ansimagenta", + "ansicyan", + "ansigray", + # High intensity, bright. (One or two components 0xff, the other 0x00. Not supported everywhere.) + "ansibrightblack", + "ansibrightred", + "ansibrightgreen", + "ansibrightyellow", + "ansibrightblue", + "ansibrightmagenta", + "ansibrightcyan", + "ansiwhite", +] + + +# People don't use the same ANSI color names everywhere. In prompt_toolkit 1.0 +# we used some unconventional names (which were contributed like that to +# Pygments). This is fixed now, but we still support the old names. + +# The table below maps the old aliases to the current names. +ANSI_COLOR_NAMES_ALIASES: dict[str, str] = { + "ansidarkgray": "ansibrightblack", + "ansiteal": "ansicyan", + "ansiturquoise": "ansibrightcyan", + "ansibrown": "ansiyellow", + "ansipurple": "ansimagenta", + "ansifuchsia": "ansibrightmagenta", + "ansilightgray": "ansigray", + "ansidarkred": "ansired", + "ansidarkgreen": "ansigreen", + "ansidarkblue": "ansiblue", +} +assert set(ANSI_COLOR_NAMES_ALIASES.values()).issubset(set(ANSI_COLOR_NAMES)) +assert not (set(ANSI_COLOR_NAMES_ALIASES.keys()) & set(ANSI_COLOR_NAMES)) + + +class BaseStyle(metaclass=ABCMeta): + """ + Abstract base class for prompt_toolkit styles. + """ + + @abstractmethod + def get_attrs_for_style_str( + self, style_str: str, default: Attrs = DEFAULT_ATTRS + ) -> Attrs: + """ + Return :class:`.Attrs` for the given style string. + + :param style_str: The style string. This can contain inline styling as + well as classnames (e.g. "class:title"). + :param default: `Attrs` to be used if no styling was defined. + """ + + @abstractproperty + def style_rules(self) -> list[tuple[str, str]]: + """ + The list of style rules, used to create this style. + (Required for `DynamicStyle` and `_MergedStyle` to work.) + """ + return [] + + @abstractmethod + def invalidation_hash(self) -> Hashable: + """ + Invalidation hash for the style. When this changes over time, the + renderer knows that something in the style changed, and that everything + has to be redrawn. + """ + + +class DummyStyle(BaseStyle): + """ + A style that doesn't style anything. + """ + + def get_attrs_for_style_str( + self, style_str: str, default: Attrs = DEFAULT_ATTRS + ) -> Attrs: + return default + + def invalidation_hash(self) -> Hashable: + return 1 # Always the same value. + + @property + def style_rules(self) -> list[tuple[str, str]]: + return [] + + +class DynamicStyle(BaseStyle): + """ + Style class that can dynamically returns an other Style. + + :param get_style: Callable that returns a :class:`.Style` instance. + """ + + def __init__(self, get_style: Callable[[], BaseStyle | None]): + self.get_style = get_style + self._dummy = DummyStyle() + + def get_attrs_for_style_str( + self, style_str: str, default: Attrs = DEFAULT_ATTRS + ) -> Attrs: + style = self.get_style() or self._dummy + + return style.get_attrs_for_style_str(style_str, default) + + def invalidation_hash(self) -> Hashable: + return (self.get_style() or self._dummy).invalidation_hash() + + @property + def style_rules(self) -> list[tuple[str, str]]: + return (self.get_style() or self._dummy).style_rules diff --git a/shared/package-files/0a/0aebefe2e292139329e101bf5a8cdfa0a808254aec9ccdd3287eb26cc673fbda/round_cuda_dispatch.h b/shared/package-files/0a/0aebefe2e292139329e101bf5a8cdfa0a808254aec9ccdd3287eb26cc673fbda/round_cuda_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..86a75239266fc6bda26a08a6afce47f0b5cfa22d --- /dev/null +++ b/shared/package-files/0a/0aebefe2e292139329e101bf5a8cdfa0a808254aec9ccdd3287eb26cc673fbda/round_cuda_dispatch.h @@ -0,0 +1,30 @@ +#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 round(const at::Tensor & self); +TORCH_API at::Tensor & round_out(at::Tensor & out, const at::Tensor & self); +TORCH_API at::Tensor & round_outf(const at::Tensor & self, at::Tensor & out); +TORCH_API at::Tensor & round_(at::Tensor & self); +TORCH_API at::Tensor round(const at::Tensor & self, int64_t decimals); +TORCH_API at::Tensor & round_out(at::Tensor & out, const at::Tensor & self, int64_t decimals); +TORCH_API at::Tensor & round_outf(const at::Tensor & self, int64_t decimals, at::Tensor & out); +TORCH_API at::Tensor & round_(at::Tensor & self, int64_t decimals); + +} // namespace cuda +} // namespace at diff --git a/shared/package-files/0a/0aec505d0e9ff8c4672efb11cef6ae121a665c48227196427d588a8c8bb5927e/cached.py b/shared/package-files/0a/0aec505d0e9ff8c4672efb11cef6ae121a665c48227196427d588a8c8bb5927e/cached.py new file mode 100644 index 0000000000000000000000000000000000000000..c2ee17214a23e7d74ecf935449cf8923ad903ce1 --- /dev/null +++ b/shared/package-files/0a/0aec505d0e9ff8c4672efb11cef6ae121a665c48227196427d588a8c8bb5927e/cached.py @@ -0,0 +1,939 @@ +from __future__ import annotations + +import inspect +import logging +import os +import tempfile +import time +import weakref +from shutil import rmtree +from typing import TYPE_CHECKING, Any, Callable, ClassVar + +from fsspec import AbstractFileSystem, filesystem +from fsspec.callbacks import DEFAULT_CALLBACK +from fsspec.compression import compr +from fsspec.core import BaseCache, MMapCache +from fsspec.exceptions import BlocksizeMismatchError +from fsspec.implementations.cache_mapper import create_cache_mapper +from fsspec.implementations.cache_metadata import CacheMetadata +from fsspec.spec import AbstractBufferedFile +from fsspec.transaction import Transaction +from fsspec.utils import infer_compression + +if TYPE_CHECKING: + from fsspec.implementations.cache_mapper import AbstractCacheMapper + +logger = logging.getLogger("fsspec.cached") + + +class WriteCachedTransaction(Transaction): + def complete(self, commit=True): + rpaths = [f.path for f in self.files] + lpaths = [f.fn for f in self.files] + if commit: + self.fs.put(lpaths, rpaths) + self.files.clear() + self.fs._intrans = False + self.fs._transaction = None + self.fs = None # break cycle + + +class CachingFileSystem(AbstractFileSystem): + """Locally caching filesystem, layer over any other FS + + This class implements chunk-wise local storage of remote files, for quick + access after the initial download. The files are stored in a given + directory with hashes of URLs for the filenames. If no directory is given, + a temporary one is used, which should be cleaned up by the OS after the + process ends. The files themselves are sparse (as implemented in + :class:`~fsspec.caching.MMapCache`), so only the data which is accessed + takes up space. + + Restrictions: + + - the block-size must be the same for each access of a given file, unless + all blocks of the file have already been read + - caching can only be applied to file-systems which produce files + derived from fsspec.spec.AbstractBufferedFile ; LocalFileSystem is also + allowed, for testing + """ + + protocol: ClassVar[str | tuple[str, ...]] = ("blockcache", "cached") + + def __init__( + self, + target_protocol=None, + cache_storage="TMP", + cache_check=10, + check_files=False, + expiry_time=604800, + target_options=None, + fs=None, + same_names: bool | None = None, + compression=None, + cache_mapper: AbstractCacheMapper | None = None, + **kwargs, + ): + """ + + Parameters + ---------- + target_protocol: str (optional) + Target filesystem protocol. Provide either this or ``fs``. + cache_storage: str or list(str) + Location to store files. If "TMP", this is a temporary directory, + and will be cleaned up by the OS when this process ends (or later). + If a list, each location will be tried in the order given, but + only the last will be considered writable. + cache_check: int + Number of seconds between reload of cache metadata + check_files: bool + Whether to explicitly see if the UID of the remote file matches + the stored one before using. Warning: some file systems such as + HTTP cannot reliably give a unique hash of the contents of some + path, so be sure to set this option to False. + expiry_time: int + The time in seconds after which a local copy is considered useless. + Set to falsy to prevent expiry. The default is equivalent to one + week. + target_options: dict or None + Passed to the instantiation of the FS, if fs is None. + fs: filesystem instance + The target filesystem to run against. Provide this or ``protocol``. + same_names: bool (optional) + By default, target URLs are hashed using a ``HashCacheMapper`` so + that files from different backends with the same basename do not + conflict. If this argument is ``true``, a ``BasenameCacheMapper`` + is used instead. Other cache mapper options are available by using + the ``cache_mapper`` keyword argument. Only one of this and + ``cache_mapper`` should be specified. + compression: str (optional) + To decompress on download. Can be 'infer' (guess from the URL name), + one of the entries in ``fsspec.compression.compr``, or None for no + decompression. + cache_mapper: AbstractCacheMapper (optional) + The object use to map from original filenames to cached filenames. + Only one of this and ``same_names`` should be specified. + """ + super().__init__(**kwargs) + if fs is None and target_protocol is None: + raise ValueError( + "Please provide filesystem instance(fs) or target_protocol" + ) + if not (fs is None) ^ (target_protocol is None): + raise ValueError( + "Both filesystems (fs) and target_protocol may not be both given." + ) + if cache_storage == "TMP": + tempdir = tempfile.mkdtemp() + storage = [tempdir] + weakref.finalize(self, self._remove_tempdir, tempdir) + else: + if isinstance(cache_storage, str): + storage = [cache_storage] + else: + storage = cache_storage + os.makedirs(storage[-1], exist_ok=True) + self.storage = storage + self.kwargs = target_options or {} + self.cache_check = cache_check + self.check_files = check_files + self.expiry = expiry_time + self.compression = compression + + # Size of cache in bytes. If None then the size is unknown and will be + # recalculated the next time cache_size() is called. On writes to the + # cache this is reset to None. + self._cache_size = None + + if same_names is not None and cache_mapper is not None: + raise ValueError( + "Cannot specify both same_names and cache_mapper in " + "CachingFileSystem.__init__" + ) + if cache_mapper is not None: + self._mapper = cache_mapper + else: + self._mapper = create_cache_mapper( + same_names if same_names is not None else False + ) + + self.target_protocol = ( + target_protocol + if isinstance(target_protocol, str) + else (fs.protocol if isinstance(fs.protocol, str) else fs.protocol[0]) + ) + self._metadata = CacheMetadata(self.storage) + self.load_cache() + self.fs = fs if fs is not None else filesystem(target_protocol, **self.kwargs) + + def _strip_protocol(path): + # acts as a method, since each instance has a difference target + return self.fs._strip_protocol(type(self)._strip_protocol(path)) + + self._strip_protocol: Callable = _strip_protocol + + @staticmethod + def _remove_tempdir(tempdir): + try: + rmtree(tempdir) + except Exception: + pass + + def _mkcache(self): + os.makedirs(self.storage[-1], exist_ok=True) + + def cache_size(self): + """Return size of cache in bytes. + + If more than one cache directory is in use, only the size of the last + one (the writable cache directory) is returned. + """ + if self._cache_size is None: + cache_dir = self.storage[-1] + self._cache_size = filesystem("file").du(cache_dir, withdirs=True) + return self._cache_size + + def load_cache(self): + """Read set of stored blocks from file""" + self._metadata.load() + self._mkcache() + self.last_cache = time.time() + + def save_cache(self): + """Save set of stored blocks from file""" + self._mkcache() + self._metadata.save() + self.last_cache = time.time() + self._cache_size = None + + def _check_cache(self): + """Reload caches if time elapsed or any disappeared""" + self._mkcache() + if not self.cache_check: + # explicitly told not to bother checking + return + timecond = time.time() - self.last_cache > self.cache_check + existcond = all(os.path.exists(storage) for storage in self.storage) + if timecond or not existcond: + self.load_cache() + + def _check_file(self, path): + """Is path in cache and still valid""" + path = self._strip_protocol(path) + self._check_cache() + return self._metadata.check_file(path, self) + + def clear_cache(self): + """Remove all files and metadata from the cache + + In the case of multiple cache locations, this clears only the last one, + which is assumed to be the read/write one. + """ + rmtree(self.storage[-1]) + self.load_cache() + self._cache_size = None + + def clear_expired_cache(self, expiry_time=None): + """Remove all expired files and metadata from the cache + + In the case of multiple cache locations, this clears only the last one, + which is assumed to be the read/write one. + + Parameters + ---------- + expiry_time: int + The time in seconds after which a local copy is considered useless. + If not defined the default is equivalent to the attribute from the + file caching instantiation. + """ + + if not expiry_time: + expiry_time = self.expiry + + self._check_cache() + + expired_files, writable_cache_empty = self._metadata.clear_expired(expiry_time) + for fn in expired_files: + if os.path.exists(fn): + os.remove(fn) + + if writable_cache_empty: + rmtree(self.storage[-1]) + self.load_cache() + + self._cache_size = None + + def pop_from_cache(self, path): + """Remove cached version of given file + + Deletes local copy of the given (remote) path. If it is found in a cache + location which is not the last, it is assumed to be read-only, and + raises PermissionError + """ + path = self._strip_protocol(path) + fn = self._metadata.pop_file(path) + if fn is not None: + os.remove(fn) + self._cache_size = None + + def _open( + self, + path, + mode="rb", + block_size=None, + autocommit=True, + cache_options=None, + **kwargs, + ): + """Wrap the target _open + + If the whole file exists in the cache, just open it locally and + return that. + + Otherwise, open the file on the target FS, and make it have a mmap + cache pointing to the location which we determine, in our cache. + The ``blocks`` instance is shared, so as the mmap cache instance + updates, so does the entry in our ``cached_files`` attribute. + We monkey-patch this file, so that when it closes, we call + ``close_and_update`` to save the state of the blocks. + """ + path = self._strip_protocol(path) + + path = self.fs._strip_protocol(path) + if "r" not in mode: + return self.fs._open( + path, + mode=mode, + block_size=block_size, + autocommit=autocommit, + cache_options=cache_options, + **kwargs, + ) + detail = self._check_file(path) + if detail: + # file is in cache + detail, fn = detail + hash, blocks = detail["fn"], detail["blocks"] + if blocks is True: + # stored file is complete + logger.debug("Opening local copy of %s", path) + return open(fn, mode) + # TODO: action where partial file exists in read-only cache + logger.debug("Opening partially cached copy of %s", path) + else: + hash = self._mapper(path) + fn = os.path.join(self.storage[-1], hash) + blocks = set() + detail = { + "original": path, + "fn": hash, + "blocks": blocks, + "time": time.time(), + "uid": self.fs.ukey(path), + } + self._metadata.update_file(path, detail) + logger.debug("Creating local sparse file for %s", path) + + # call target filesystems open + self._mkcache() + f = self.fs._open( + path, + mode=mode, + block_size=block_size, + autocommit=autocommit, + cache_options=cache_options, + cache_type="none", + **kwargs, + ) + if self.compression: + comp = ( + infer_compression(path) + if self.compression == "infer" + else self.compression + ) + f = compr[comp](f, mode="rb") + if "blocksize" in detail: + if detail["blocksize"] != f.blocksize: + raise BlocksizeMismatchError( + f"Cached file must be reopened with same block" + f" size as original (old: {detail['blocksize']}," + f" new {f.blocksize})" + ) + else: + detail["blocksize"] = f.blocksize + f.cache = MMapCache(f.blocksize, f._fetch_range, f.size, fn, blocks) + close = f.close + f.close = lambda: self.close_and_update(f, close) + self.save_cache() + return f + + def _parent(self, path): + return self.fs._parent(path) + + def hash_name(self, path: str, *args: Any) -> str: + # Kept for backward compatibility with downstream libraries. + # Ignores extra arguments, previously same_name boolean. + return self._mapper(path) + + def close_and_update(self, f, close): + """Called when a file is closing, so store the set of blocks""" + if f.closed: + return + path = self._strip_protocol(f.path) + self._metadata.on_close_cached_file(f, path) + try: + logger.debug("going to save") + self.save_cache() + logger.debug("saved") + except OSError: + logger.debug("Cache saving failed while closing file") + except NameError: + logger.debug("Cache save failed due to interpreter shutdown") + close() + f.closed = True + + def ls(self, path, detail=True): + return self.fs.ls(path, detail) + + def __getattribute__(self, item): + if item in { + "load_cache", + "_open", + "save_cache", + "close_and_update", + "__init__", + "__getattribute__", + "__reduce__", + "_make_local_details", + "open", + "cat", + "cat_file", + "cat_ranges", + "get", + "read_block", + "tail", + "head", + "info", + "ls", + "exists", + "isfile", + "isdir", + "_check_file", + "_check_cache", + "_mkcache", + "clear_cache", + "clear_expired_cache", + "pop_from_cache", + "_mkcache", + "local_file", + "_paths_from_path", + "get_mapper", + "open_many", + "commit_many", + "hash_name", + "__hash__", + "__eq__", + "to_json", + "cache_size", + "pipe_file", + "pipe", + "isdir", + "isfile", + "exists", + "start_transaction", + "end_transaction", + }: + # all the methods defined in this class. Note `open` here, since + # it calls `_open`, but is actually in superclass + return lambda *args, **kw: getattr(type(self), item).__get__(self)( + *args, **kw + ) + if item in ["__reduce_ex__"]: + raise AttributeError + if item in ["transaction"]: + # property + return type(self).transaction.__get__(self) + if item in ["_cache", "transaction_type"]: + # class attributes + return getattr(type(self), item) + if item == "__class__": + return type(self) + d = object.__getattribute__(self, "__dict__") + fs = d.get("fs", None) # fs is not immediately defined + if item in d: + return d[item] + elif fs is not None: + if item in fs.__dict__: + # attribute of instance + return fs.__dict__[item] + # attributed belonging to the target filesystem + cls = type(fs) + m = getattr(cls, item) + if (inspect.isfunction(m) or inspect.isdatadescriptor(m)) and ( + not hasattr(m, "__self__") or m.__self__ is None + ): + # instance method + return m.__get__(fs, cls) + return m # class method or attribute + else: + # attributes of the superclass, while target is being set up + return super().__getattribute__(item) + + def __eq__(self, other): + """Test for equality.""" + if self is other: + return True + if not isinstance(other, type(self)): + return False + return ( + self.storage == other.storage + and self.kwargs == other.kwargs + and self.cache_check == other.cache_check + and self.check_files == other.check_files + and self.expiry == other.expiry + and self.compression == other.compression + and self._mapper == other._mapper + and self.target_protocol == other.target_protocol + ) + + def __hash__(self): + """Calculate hash.""" + return ( + hash(tuple(self.storage)) + ^ hash(str(self.kwargs)) + ^ hash(self.cache_check) + ^ hash(self.check_files) + ^ hash(self.expiry) + ^ hash(self.compression) + ^ hash(self._mapper) + ^ hash(self.target_protocol) + ) + + def to_json(self): + """Calculate JSON representation. + + Not implemented yet for CachingFileSystem. + """ + raise NotImplementedError( + "CachingFileSystem JSON representation not implemented" + ) + + +class WholeFileCacheFileSystem(CachingFileSystem): + """Caches whole remote files on first access + + This class is intended as a layer over any other file system, and + will make a local copy of each file accessed, so that all subsequent + reads are local. This is similar to ``CachingFileSystem``, but without + the block-wise functionality and so can work even when sparse files + are not allowed. See its docstring for definition of the init + arguments. + + The class still needs access to the remote store for listing files, + and may refresh cached files. + """ + + protocol = "filecache" + local_file = True + + def open_many(self, open_files, **kwargs): + paths = [of.path for of in open_files] + if "r" in open_files.mode: + self._mkcache() + else: + return [ + LocalTempFile( + self.fs, + path, + mode=open_files.mode, + fn=os.path.join(self.storage[-1], self._mapper(path)), + **kwargs, + ) + for path in paths + ] + + if self.compression: + raise NotImplementedError + details = [self._check_file(sp) for sp in paths] + downpath = [p for p, d in zip(paths, details) if not d] + downfn0 = [ + os.path.join(self.storage[-1], self._mapper(p)) + for p, d in zip(paths, details) + ] # keep these path names for opening later + downfn = [fn for fn, d in zip(downfn0, details) if not d] + if downpath: + # skip if all files are already cached and up to date + self.fs.get(downpath, downfn) + + # update metadata - only happens when downloads are successful + newdetail = [ + { + "original": path, + "fn": self._mapper(path), + "blocks": True, + "time": time.time(), + "uid": self.fs.ukey(path), + } + for path in downpath + ] + for path, detail in zip(downpath, newdetail): + self._metadata.update_file(path, detail) + self.save_cache() + + def firstpart(fn): + # helper to adapt both whole-file and simple-cache + return fn[1] if isinstance(fn, tuple) else fn + + return [ + open(firstpart(fn0) if fn0 else fn1, mode=open_files.mode) + for fn0, fn1 in zip(details, downfn0) + ] + + def commit_many(self, open_files): + self.fs.put([f.fn for f in open_files], [f.path for f in open_files]) + [f.close() for f in open_files] + for f in open_files: + # in case autocommit is off, and so close did not already delete + try: + os.remove(f.name) + except FileNotFoundError: + pass + self._cache_size = None + + def _make_local_details(self, path): + hash = self._mapper(path) + fn = os.path.join(self.storage[-1], hash) + detail = { + "original": path, + "fn": hash, + "blocks": True, + "time": time.time(), + "uid": self.fs.ukey(path), + } + self._metadata.update_file(path, detail) + logger.debug("Copying %s to local cache", path) + return fn + + def cat( + self, + path, + recursive=False, + on_error="raise", + callback=DEFAULT_CALLBACK, + **kwargs, + ): + paths = self.expand_path( + path, recursive=recursive, maxdepth=kwargs.get("maxdepth", None) + ) + getpaths = [] + storepaths = [] + fns = [] + out = {} + for p in paths.copy(): + try: + detail = self._check_file(p) + if not detail: + fn = self._make_local_details(p) + getpaths.append(p) + storepaths.append(fn) + else: + detail, fn = detail if isinstance(detail, tuple) else (None, detail) + fns.append(fn) + except Exception as e: + if on_error == "raise": + raise + if on_error == "return": + out[p] = e + paths.remove(p) + + if getpaths: + self.fs.get(getpaths, storepaths) + self.save_cache() + + callback.set_size(len(paths)) + for p, fn in zip(paths, fns): + with open(fn, "rb") as f: + out[p] = f.read() + callback.relative_update(1) + if isinstance(path, str) and len(paths) == 1 and recursive is False: + out = out[paths[0]] + return out + + def _open(self, path, mode="rb", **kwargs): + path = self._strip_protocol(path) + if "r" not in mode: + fn = self._make_local_details(path) + user_specified_kwargs = { + k: v + for k, v in kwargs.items() + # those kwargs were added by open(), we don't want them + if k not in ["autocommit", "block_size", "cache_options"] + } + return LocalTempFile(self, path, mode=mode, fn=fn, **user_specified_kwargs) + detail = self._check_file(path) + if detail: + detail, fn = detail + _, blocks = detail["fn"], detail["blocks"] + if blocks is True: + logger.debug("Opening local copy of %s", path) + + # In order to support downstream filesystems to be able to + # infer the compression from the original filename, like + # the `TarFileSystem`, let's extend the `io.BufferedReader` + # fileobject protocol by adding a dedicated attribute + # `original`. + f = open(fn, mode) + f.original = detail.get("original") + return f + else: + raise ValueError( + f"Attempt to open partially cached file {path}" + f" as a wholly cached file" + ) + else: + fn = self._make_local_details(path) + kwargs["mode"] = mode + + # call target filesystems open + self._mkcache() + if self.compression: + with self.fs._open(path, **kwargs) as f, open(fn, "wb") as f2: + if isinstance(f, AbstractBufferedFile): + # want no type of caching if just downloading whole thing + f.cache = BaseCache(0, f.cache.fetcher, f.size) + comp = ( + infer_compression(path) + if self.compression == "infer" + else self.compression + ) + f = compr[comp](f, mode="rb") + data = True + while data: + block = getattr(f, "blocksize", 5 * 2**20) + data = f.read(block) + f2.write(data) + else: + self.fs.get_file(path, fn) + self.save_cache() + return self._open(path, mode) + + +class SimpleCacheFileSystem(WholeFileCacheFileSystem): + """Caches whole remote files on first access + + This class is intended as a layer over any other file system, and + will make a local copy of each file accessed, so that all subsequent + reads are local. This implementation only copies whole files, and + does not keep any metadata about the download time or file details. + It is therefore safer to use in multi-threaded/concurrent situations. + + This is the only of the caching filesystems that supports write: you will + be given a real local open file, and upon close and commit, it will be + uploaded to the target filesystem; the writability or the target URL is + not checked until that time. + + """ + + protocol = "simplecache" + local_file = True + transaction_type = WriteCachedTransaction + + def __init__(self, **kwargs): + kw = kwargs.copy() + for key in ["cache_check", "expiry_time", "check_files"]: + kw[key] = False + super().__init__(**kw) + for storage in self.storage: + if not os.path.exists(storage): + os.makedirs(storage, exist_ok=True) + + def _check_file(self, path): + self._check_cache() + sha = self._mapper(path) + for storage in self.storage: + fn = os.path.join(storage, sha) + if os.path.exists(fn): + return fn + + def save_cache(self): + pass + + def load_cache(self): + pass + + def pipe_file(self, path, value=None, **kwargs): + if self._intrans: + with self.open(path, "wb") as f: + f.write(value) + else: + super().pipe_file(path, value) + + def ls(self, path, detail=True, **kwargs): + path = self._strip_protocol(path) + details = [] + try: + details = self.fs.ls( + path, detail=True, **kwargs + ).copy() # don't edit original! + except FileNotFoundError as e: + ex = e + else: + ex = None + if self._intrans: + path1 = path.rstrip("/") + "/" + for f in self.transaction.files: + if f.path == path: + details.append( + {"name": path, "size": f.size or f.tell(), "type": "file"} + ) + elif f.path.startswith(path1): + if f.path.count("/") == path1.count("/"): + details.append( + {"name": f.path, "size": f.size or f.tell(), "type": "file"} + ) + else: + dname = "/".join(f.path.split("/")[: path1.count("/") + 1]) + details.append({"name": dname, "size": 0, "type": "directory"}) + if ex is not None and not details: + raise ex + if detail: + return details + return sorted(_["name"] for _ in details) + + def info(self, path, **kwargs): + path = self._strip_protocol(path) + if self._intrans: + f = [_ for _ in self.transaction.files if _.path == path] + if f: + return {"name": path, "size": f[0].size or f[0].tell(), "type": "file"} + f = any(_.path.startswith(path + "/") for _ in self.transaction.files) + if f: + return {"name": path, "size": 0, "type": "directory"} + return self.fs.info(path, **kwargs) + + def pipe(self, path, value=None, **kwargs): + if isinstance(path, str): + self.pipe_file(self._strip_protocol(path), value, **kwargs) + elif isinstance(path, dict): + for k, v in path.items(): + self.pipe_file(self._strip_protocol(k), v, **kwargs) + else: + raise ValueError("path must be str or dict") + + def cat_ranges( + self, paths, starts, ends, max_gap=None, on_error="return", **kwargs + ): + lpaths = [self._check_file(p) for p in paths] + rpaths = [p for l, p in zip(lpaths, paths) if l is False] + lpaths = [l for l, p in zip(lpaths, paths) if l is False] + self.fs.get(rpaths, lpaths) + return super().cat_ranges( + paths, starts, ends, max_gap=max_gap, on_error=on_error, **kwargs + ) + + def _open(self, path, mode="rb", **kwargs): + path = self._strip_protocol(path) + sha = self._mapper(path) + + if "r" not in mode: + fn = os.path.join(self.storage[-1], sha) + user_specified_kwargs = { + k: v + for k, v in kwargs.items() + if k not in ["autocommit", "block_size", "cache_options"] + } # those were added by open() + return LocalTempFile( + self, + path, + mode=mode, + autocommit=not self._intrans, + fn=fn, + **user_specified_kwargs, + ) + fn = self._check_file(path) + if fn: + return open(fn, mode) + + fn = os.path.join(self.storage[-1], sha) + logger.debug("Copying %s to local cache", path) + kwargs["mode"] = mode + + self._mkcache() + self._cache_size = None + if self.compression: + with self.fs._open(path, **kwargs) as f, open(fn, "wb") as f2: + if isinstance(f, AbstractBufferedFile): + # want no type of caching if just downloading whole thing + f.cache = BaseCache(0, f.cache.fetcher, f.size) + comp = ( + infer_compression(path) + if self.compression == "infer" + else self.compression + ) + f = compr[comp](f, mode="rb") + data = True + while data: + block = getattr(f, "blocksize", 5 * 2**20) + data = f.read(block) + f2.write(data) + else: + self.fs.get_file(path, fn) + return self._open(path, mode) + + +class LocalTempFile: + """A temporary local file, which will be uploaded on commit""" + + def __init__(self, fs, path, fn, mode="wb", autocommit=True, seek=0, **kwargs): + self.fn = fn + self.fh = open(fn, mode) + self.mode = mode + if seek: + self.fh.seek(seek) + self.path = path + self.size = None + self.fs = fs + self.closed = False + self.autocommit = autocommit + self.kwargs = kwargs + + def __reduce__(self): + # always open in r+b to allow continuing writing at a location + return ( + LocalTempFile, + (self.fs, self.path, self.fn, "r+b", self.autocommit, self.tell()), + ) + + def __enter__(self): + return self.fh + + def __exit__(self, exc_type, exc_val, exc_tb): + self.close() + + def close(self): + self.size = self.fh.tell() + if self.closed: + return + self.fh.close() + self.closed = True + if self.autocommit: + self.commit() + + def discard(self): + self.fh.close() + os.remove(self.fn) + + def commit(self): + self.fs.put(self.fn, self.path, **self.kwargs) + # we do not delete local copy - it's still in the cache + + @property + def name(self): + return self.fn + + def __repr__(self) -> str: + return f"LocalTempFile: {self.path}" + + def __getattr__(self, item): + return getattr(self.fh, item) diff --git a/shared/package-files/0a/0aed843d3396a5fcb160c54e7460597b3f12059da2d901149879d388f3d28be3/grover.py b/shared/package-files/0a/0aed843d3396a5fcb160c54e7460597b3f12059da2d901149879d388f3d28be3/grover.py new file mode 100644 index 0000000000000000000000000000000000000000..e6b8ba35e7f17f9893d332a731a87aaf30d30a67 --- /dev/null +++ b/shared/package-files/0a/0aed843d3396a5fcb160c54e7460597b3f12059da2d901149879d388f3d28be3/grover.py @@ -0,0 +1,345 @@ +"""Grover's algorithm and helper functions. + +Todo: + +* W gate construction (or perhaps -W gate based on Mermin's book) +* Generalize the algorithm for an unknown function that returns 1 on multiple + qubit states, not just one. +* Implement _represent_ZGate in OracleGate +""" + +from sympy.core.numbers import pi +from sympy.core.sympify import sympify +from sympy.core.basic import Atom +from sympy.functions.elementary.integers import floor +from sympy.functions.elementary.miscellaneous import sqrt +from sympy.matrices.dense import eye +from sympy.core.numbers import NegativeOne +from sympy.physics.quantum.qapply import qapply +from sympy.physics.quantum.qexpr import QuantumError +from sympy.physics.quantum.hilbert import ComplexSpace +from sympy.physics.quantum.operator import UnitaryOperator +from sympy.physics.quantum.gate import Gate +from sympy.physics.quantum.qubit import IntQubit + +__all__ = [ + 'OracleGate', + 'WGate', + 'superposition_basis', + 'grover_iteration', + 'apply_grover' +] + + +def superposition_basis(nqubits): + """Creates an equal superposition of the computational basis. + + Parameters + ========== + + nqubits : int + The number of qubits. + + Returns + ======= + + state : Qubit + An equal superposition of the computational basis with nqubits. + + Examples + ======== + + Create an equal superposition of 2 qubits:: + + >>> from sympy.physics.quantum.grover import superposition_basis + >>> superposition_basis(2) + |0>/2 + |1>/2 + |2>/2 + |3>/2 + """ + + amp = 1/sqrt(2**nqubits) + return sum([amp*IntQubit(n, nqubits=nqubits) for n in range(2**nqubits)]) + +class OracleGateFunction(Atom): + """Wrapper for python functions used in `OracleGate`s""" + + def __new__(cls, function): + if not callable(function): + raise TypeError('Callable expected, got: %r' % function) + obj = Atom.__new__(cls) + obj.function = function + return obj + + def _hashable_content(self): + return type(self), self.function + + def __call__(self, *args): + return self.function(*args) + + +class OracleGate(Gate): + """A black box gate. + + The gate marks the desired qubits of an unknown function by flipping + the sign of the qubits. The unknown function returns true when it + finds its desired qubits and false otherwise. + + Parameters + ========== + + qubits : int + Number of qubits. + + oracle : callable + A callable function that returns a boolean on a computational basis. + + Examples + ======== + + Apply an Oracle gate that flips the sign of ``|2>`` on different qubits:: + + >>> from sympy.physics.quantum.qubit import IntQubit + >>> from sympy.physics.quantum.qapply import qapply + >>> from sympy.physics.quantum.grover import OracleGate + >>> f = lambda qubits: qubits == IntQubit(2) + >>> v = OracleGate(2, f) + >>> qapply(v*IntQubit(2)) + -|2> + >>> qapply(v*IntQubit(3)) + |3> + """ + + gate_name = 'V' + gate_name_latex = 'V' + + #------------------------------------------------------------------------- + # Initialization/creation + #------------------------------------------------------------------------- + + @classmethod + def _eval_args(cls, args): + if len(args) != 2: + raise QuantumError( + 'Insufficient/excessive arguments to Oracle. Please ' + + 'supply the number of qubits and an unknown function.' + ) + sub_args = (args[0],) + sub_args = UnitaryOperator._eval_args(sub_args) + if not sub_args[0].is_Integer: + raise TypeError('Integer expected, got: %r' % sub_args[0]) + + function = args[1] + if not isinstance(function, OracleGateFunction): + function = OracleGateFunction(function) + + return (sub_args[0], function) + + @classmethod + def _eval_hilbert_space(cls, args): + """This returns the smallest possible Hilbert space.""" + return ComplexSpace(2)**args[0] + + #------------------------------------------------------------------------- + # Properties + #------------------------------------------------------------------------- + + @property + def search_function(self): + """The unknown function that helps find the sought after qubits.""" + return self.label[1] + + @property + def targets(self): + """A tuple of target qubits.""" + return sympify(tuple(range(self.args[0]))) + + #------------------------------------------------------------------------- + # Apply + #------------------------------------------------------------------------- + + def _apply_operator_Qubit(self, qubits, **options): + """Apply this operator to a Qubit subclass. + + Parameters + ========== + + qubits : Qubit + The qubit subclass to apply this operator to. + + Returns + ======= + + state : Expr + The resulting quantum state. + """ + if qubits.nqubits != self.nqubits: + raise QuantumError( + 'OracleGate operates on %r qubits, got: %r' + % (self.nqubits, qubits.nqubits) + ) + # If function returns 1 on qubits + # return the negative of the qubits (flip the sign) + if self.search_function(qubits): + return -qubits + else: + return qubits + + #------------------------------------------------------------------------- + # Represent + #------------------------------------------------------------------------- + + def _represent_ZGate(self, basis, **options): + """ + Represent the OracleGate in the computational basis. + """ + nbasis = 2**self.nqubits # compute it only once + matrixOracle = eye(nbasis) + # Flip the sign given the output of the oracle function + for i in range(nbasis): + if self.search_function(IntQubit(i, nqubits=self.nqubits)): + matrixOracle[i, i] = NegativeOne() + return matrixOracle + + +class WGate(Gate): + """General n qubit W Gate in Grover's algorithm. + + The gate performs the operation ``2|phi> = (tensor product of n Hadamards)*(|0> with n qubits)`` + + Parameters + ========== + + nqubits : int + The number of qubits to operate on + + """ + + gate_name = 'W' + gate_name_latex = 'W' + + @classmethod + def _eval_args(cls, args): + if len(args) != 1: + raise QuantumError( + 'Insufficient/excessive arguments to W gate. Please ' + + 'supply the number of qubits to operate on.' + ) + args = UnitaryOperator._eval_args(args) + if not args[0].is_Integer: + raise TypeError('Integer expected, got: %r' % args[0]) + return args + + #------------------------------------------------------------------------- + # Properties + #------------------------------------------------------------------------- + + @property + def targets(self): + return sympify(tuple(reversed(range(self.args[0])))) + + #------------------------------------------------------------------------- + # Apply + #------------------------------------------------------------------------- + + def _apply_operator_Qubit(self, qubits, **options): + """ + qubits: a set of qubits (Qubit) + Returns: quantum object (quantum expression - QExpr) + """ + if qubits.nqubits != self.nqubits: + raise QuantumError( + 'WGate operates on %r qubits, got: %r' + % (self.nqubits, qubits.nqubits) + ) + + # See 'Quantum Computer Science' by David Mermin p.92 -> W|a> result + # Return (2/(sqrt(2^n)))|phi> - |a> where |a> is the current basis + # state and phi is the superposition of basis states (see function + # create_computational_basis above) + basis_states = superposition_basis(self.nqubits) + change_to_basis = (2/sqrt(2**self.nqubits))*basis_states + return change_to_basis - qubits + + +def grover_iteration(qstate, oracle): + """Applies one application of the Oracle and W Gate, WV. + + Parameters + ========== + + qstate : Qubit + A superposition of qubits. + oracle : OracleGate + The black box operator that flips the sign of the desired basis qubits. + + Returns + ======= + + Qubit : The qubits after applying the Oracle and W gate. + + Examples + ======== + + Perform one iteration of grover's algorithm to see a phase change:: + + >>> from sympy.physics.quantum.qapply import qapply + >>> from sympy.physics.quantum.qubit import IntQubit + >>> from sympy.physics.quantum.grover import OracleGate + >>> from sympy.physics.quantum.grover import superposition_basis + >>> from sympy.physics.quantum.grover import grover_iteration + >>> numqubits = 2 + >>> basis_states = superposition_basis(numqubits) + >>> f = lambda qubits: qubits == IntQubit(2) + >>> v = OracleGate(numqubits, f) + >>> qapply(grover_iteration(basis_states, v)) + |2> + + """ + wgate = WGate(oracle.nqubits) + return wgate*oracle*qstate + + +def apply_grover(oracle, nqubits, iterations=None): + """Applies grover's algorithm. + + Parameters + ========== + + oracle : callable + The unknown callable function that returns true when applied to the + desired qubits and false otherwise. + + Returns + ======= + + state : Expr + The resulting state after Grover's algorithm has been iterated. + + Examples + ======== + + Apply grover's algorithm to an even superposition of 2 qubits:: + + >>> from sympy.physics.quantum.qapply import qapply + >>> from sympy.physics.quantum.qubit import IntQubit + >>> from sympy.physics.quantum.grover import apply_grover + >>> f = lambda qubits: qubits == IntQubit(2) + >>> qapply(apply_grover(f, 2)) + |2> + + """ + if nqubits <= 0: + raise QuantumError( + 'Grover\'s algorithm needs nqubits > 0, received %r qubits' + % nqubits + ) + if iterations is None: + iterations = floor(sqrt(2**nqubits)*(pi/4)) + + v = OracleGate(nqubits, oracle) + iterated = superposition_basis(nqubits) + for iter in range(iterations): + iterated = grover_iteration(iterated, v) + iterated = qapply(iterated) + + return iterated diff --git a/shared/package-files/0a/0aefa84b7ac644db45417f02f320622c878e458b30a8d9c56d5c3776ce8f30a4/linear.py b/shared/package-files/0a/0aefa84b7ac644db45417f02f320622c878e458b30a8d9c56d5c3776ce8f30a4/linear.py new file mode 100644 index 0000000000000000000000000000000000000000..6be6d5a140bb58f76b0e6061eb4ccb37d385757f --- /dev/null +++ b/shared/package-files/0a/0aefa84b7ac644db45417f02f320622c878e458b30a8d9c56d5c3776ce8f30a4/linear.py @@ -0,0 +1,12 @@ +# flake8: noqa: F401 +r"""Quantized Reference Modules. + +This module is in the process of migration to +`torch/ao/nn/quantized/reference`, 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/quantized/reference`, +while adding an import statement here. +""" + +from torch.ao.nn.quantized.reference.modules.linear import Linear diff --git a/shared/package-files/0a/0af40ad12d780f6cdd507ee2e3e7ec4223ab218154706d87b3ac6b8f37c348bb/ge_meta_dispatch.h b/shared/package-files/0a/0af40ad12d780f6cdd507ee2e3e7ec4223ab218154706d87b3ac6b8f37c348bb/ge_meta_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..e488b458e4648d336637dee2bd1939f4bd430a03 --- /dev/null +++ b/shared/package-files/0a/0af40ad12d780f6cdd507ee2e3e7ec4223ab218154706d87b3ac6b8f37c348bb/ge_meta_dispatch.h @@ -0,0 +1,30 @@ +#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 ge(const at::Tensor & self, const at::Scalar & other); +TORCH_API at::Tensor & ge_out(at::Tensor & out, const at::Tensor & self, const at::Scalar & other); +TORCH_API at::Tensor & ge_outf(const at::Tensor & self, const at::Scalar & other, at::Tensor & out); +TORCH_API at::Tensor & ge_(at::Tensor & self, const at::Scalar & other); +TORCH_API at::Tensor ge(const at::Tensor & self, const at::Tensor & other); +TORCH_API at::Tensor & ge_out(at::Tensor & out, const at::Tensor & self, const at::Tensor & other); +TORCH_API at::Tensor & ge_outf(const at::Tensor & self, const at::Tensor & other, at::Tensor & out); +TORCH_API at::Tensor & ge_(at::Tensor & self, const at::Tensor & other); + +} // namespace meta +} // namespace at diff --git a/shared/package-files/0a/0af83941496ae0da7435f405355ef5a17991924773199e018b65d9a49c09fc35/abm85 b/shared/package-files/0a/0af83941496ae0da7435f405355ef5a17991924773199e018b65d9a49c09fc35/abm85 new file mode 100644 index 0000000000000000000000000000000000000000..fa1a989e507bf67b3469f07dd9f48e2ffef5f2a1 Binary files /dev/null and b/shared/package-files/0a/0af83941496ae0da7435f405355ef5a17991924773199e018b65d9a49c09fc35/abm85 differ diff --git a/shared/package-files/0a/0af9a2c638746372f8b497ada1d7a9479c028afa4da86dd069bcb3c4895830f9/parse_string_literal.h b/shared/package-files/0a/0af9a2c638746372f8b497ada1d7a9479c028afa4da86dd069bcb3c4895830f9/parse_string_literal.h new file mode 100644 index 0000000000000000000000000000000000000000..2ca1f150aacddb490bc5e6ed15a6d6c6f1f4089f --- /dev/null +++ b/shared/package-files/0a/0af9a2c638746372f8b497ada1d7a9479c028afa4da86dd069bcb3c4895830f9/parse_string_literal.h @@ -0,0 +1,87 @@ +#pragma once +#include +#include +#include + +namespace torch { +namespace jit { + +inline bool isCharCount(char c, const std::string& str, size_t start, int len) { + // count checks from [start, start + len) + return start + len <= str.size() && + std::count(str.begin() + start, str.begin() + start + len, c) == len; +} + +inline c10::optional parseOctal(const std::string& str, size_t pos) { + //\xxx where x are 0-7 + if (pos + 3 >= str.size()) + return c10::nullopt; + size_t c = 0; + for (size_t i = 1, b = 64; i < 4; ++i, b /= 8) { + // NOLINTNEXTLINE(bugprone-signed-char-misuse) + int d = str[pos + i]; + if (d < '0' || d > '7') + return c10::nullopt; + c += b * (d - '0'); + } + if (c >= 256) + return c10::nullopt; + return c; +} + +inline std::string parseStringLiteral( + const SourceRange& range, + const std::string& str) { + int quote_len = isCharCount(str[0], str, 0, 3) ? 3 : 1; + auto ret_str = str.substr(quote_len, str.size() - quote_len * 2); + size_t pos = ret_str.find('\\'); + while (pos != std::string::npos) { + // invariant: pos has to escape a character because it is a valid string + char c = ret_str[pos + 1]; + size_t to_erase = 2; + switch (ret_str[pos + 1]) { + case '\\': + case '\'': + case '\"': + case '\n': + break; + case 'a': + c = '\a'; + break; + case 'b': + c = '\b'; + break; + case 'f': + c = '\f'; + break; + case 'n': + c = '\n'; + break; + case 'v': + c = '\v'; + break; + case 't': + c = '\t'; + break; + case 'x': + throw ErrorReport(range) << "unsupported hex specifier"; + case 'u': + case 'U': + throw ErrorReport(range) << "unsupported unicode specifier"; + default: + // octal value in format \nnn, n is [0-7] + if (auto v = parseOctal(ret_str, pos)) { + to_erase = 4; + c = *v; + } else { + throw ErrorReport(range) << " ill formed octal specifier"; + } + } + ret_str.replace(pos, to_erase, /* num copies */ 1, c); + pos = ret_str.find('\\', pos + 1); + } + return ret_str; +} + +} // namespace jit +} // namespace torch diff --git a/shared/package-files/0a/0afa6d0cdb6bf85ed6907b8e9343d537c51238073343e53d8db986fa80883a1b/_partitioner.pyx b/shared/package-files/0a/0afa6d0cdb6bf85ed6907b8e9343d537c51238073343e53d8db986fa80883a1b/_partitioner.pyx new file mode 100644 index 0000000000000000000000000000000000000000..7c342ed3a7d6b807619900de2ebba6bdf7deabb9 --- /dev/null +++ b/shared/package-files/0a/0afa6d0cdb6bf85ed6907b8e9343d537c51238073343e53d8db986fa80883a1b/_partitioner.pyx @@ -0,0 +1,821 @@ +"""Partition samples in the construction of a tree. + +This module contains the algorithms for moving sample indices to +the left and right child node given a split determined by the +splitting algorithm in `_splitter.pyx`. + +Partitioning is done in a way that is efficient for both dense data, +and sparse data stored in a Compressed Sparse Column (CSC) format. +""" +# Authors: The scikit-learn developers +# SPDX-License-Identifier: BSD-3-Clause + +from cython cimport final +from libc.math cimport isnan, log2 +from libc.stdlib cimport qsort +from libc.string cimport memcpy + +import numpy as np +from scipy.sparse import issparse + + +# Constant to switch between algorithm non zero value extract algorithm +# in SparsePartitioner +cdef float32_t EXTRACT_NNZ_SWITCH = 0.1 + +# Allow for 32 bit float comparisons +cdef float32_t INFINITY_32t = np.inf + + +@final +cdef class DensePartitioner: + """Partitioner specialized for dense data. + + Note that this partitioner is agnostic to the splitting strategy (best vs. random). + """ + def __init__( + self, + const float32_t[:, :] X, + intp_t[::1] samples, + float32_t[::1] feature_values, + const uint8_t[::1] missing_values_in_feature_mask, + ): + self.X = X + self.samples = samples + self.feature_values = feature_values + self.missing_values_in_feature_mask = missing_values_in_feature_mask + + cdef inline void init_node_split(self, intp_t start, intp_t end) noexcept nogil: + """Initialize splitter at the beginning of node_split.""" + self.start = start + self.end = end + self.n_missing = 0 + + cdef inline void sort_samples_and_feature_values( + self, intp_t current_feature + ) noexcept nogil: + """Simultaneously sort based on the feature_values. + + Missing values are stored at the end of feature_values. + The number of missing values observed in feature_values is stored + in self.n_missing. + """ + cdef: + intp_t i, current_end + float32_t[::1] feature_values = self.feature_values + const float32_t[:, :] X = self.X + intp_t[::1] samples = self.samples + intp_t n_missing = 0 + const uint8_t[::1] missing_values_in_feature_mask = self.missing_values_in_feature_mask + + # Sort samples along that feature; by copying the values into an array and + # sorting the array in a manner which utilizes the cache more effectively. + if missing_values_in_feature_mask is not None and missing_values_in_feature_mask[current_feature]: + i, current_end = self.start, self.end - 1 + # Missing values are placed at the end and do not participate in the sorting. + while i <= current_end: + # Finds the right-most value that is not missing so that + # it can be swapped with missing values at its left. + if isnan(X[samples[current_end], current_feature]): + n_missing += 1 + current_end -= 1 + continue + + # X[samples[current_end], current_feature] is a non-missing value + if isnan(X[samples[i], current_feature]): + samples[i], samples[current_end] = samples[current_end], samples[i] + n_missing += 1 + current_end -= 1 + + feature_values[i] = X[samples[i], current_feature] + i += 1 + else: + # When there are no missing values, we only need to copy the data into + # feature_values + for i in range(self.start, self.end): + feature_values[i] = X[samples[i], current_feature] + + sort(&feature_values[self.start], &samples[self.start], self.end - self.start - n_missing) + self.n_missing = n_missing + + cdef inline void find_min_max( + self, + intp_t current_feature, + float32_t* min_feature_value_out, + float32_t* max_feature_value_out, + ) noexcept nogil: + """Find the minimum and maximum value for current_feature. + + Missing values are stored at the end of feature_values. The number of missing + values observed in feature_values is stored in self.n_missing. + """ + cdef: + intp_t p, current_end + float32_t current_feature_value + const float32_t[:, :] X = self.X + intp_t[::1] samples = self.samples + float32_t min_feature_value = INFINITY_32t + float32_t max_feature_value = -INFINITY_32t + float32_t[::1] feature_values = self.feature_values + intp_t n_missing = 0 + const uint8_t[::1] missing_values_in_feature_mask = self.missing_values_in_feature_mask + + # We are copying the values into an array and finding min/max of the array in + # a manner which utilizes the cache more effectively. We need to also count + # the number of missing-values there are. + if missing_values_in_feature_mask is not None and missing_values_in_feature_mask[current_feature]: + p, current_end = self.start, self.end - 1 + # Missing values are placed at the end and do not participate in the + # min/max calculation. + while p <= current_end: + # Finds the right-most value that is not missing so that + # it can be swapped with missing values towards its left. + if isnan(X[samples[current_end], current_feature]): + n_missing += 1 + current_end -= 1 + continue + + # X[samples[current_end], current_feature] is a non-missing value + if isnan(X[samples[p], current_feature]): + samples[p], samples[current_end] = samples[current_end], samples[p] + n_missing += 1 + current_end -= 1 + + current_feature_value = X[samples[p], current_feature] + feature_values[p] = current_feature_value + if current_feature_value < min_feature_value: + min_feature_value = current_feature_value + elif current_feature_value > max_feature_value: + max_feature_value = current_feature_value + p += 1 + else: + min_feature_value = X[samples[self.start], current_feature] + max_feature_value = min_feature_value + + feature_values[self.start] = min_feature_value + for p in range(self.start + 1, self.end): + current_feature_value = X[samples[p], current_feature] + feature_values[p] = current_feature_value + + if current_feature_value < min_feature_value: + min_feature_value = current_feature_value + elif current_feature_value > max_feature_value: + max_feature_value = current_feature_value + + min_feature_value_out[0] = min_feature_value + max_feature_value_out[0] = max_feature_value + self.n_missing = n_missing + + cdef inline void next_p(self, intp_t* p_prev, intp_t* p) noexcept nogil: + """Compute the next p_prev and p for iterating over feature values. + + The missing values are not included when iterating through the feature values. + """ + cdef: + float32_t[::1] feature_values = self.feature_values + intp_t end_non_missing = self.end - self.n_missing + + while ( + p[0] + 1 < end_non_missing and + feature_values[p[0] + 1] <= feature_values[p[0]] + FEATURE_THRESHOLD + ): + p[0] += 1 + + p_prev[0] = p[0] + + # By adding 1, we have + # (feature_values[p] >= end) or (feature_values[p] > feature_values[p - 1]) + p[0] += 1 + + cdef inline intp_t partition_samples( + self, + float64_t current_threshold + ) noexcept nogil: + """Partition samples for feature_values at the current_threshold.""" + cdef: + intp_t p = self.start + intp_t partition_end = self.end - self.n_missing + intp_t[::1] samples = self.samples + float32_t[::1] feature_values = self.feature_values + + while p < partition_end: + if feature_values[p] <= current_threshold: + p += 1 + else: + partition_end -= 1 + + feature_values[p], feature_values[partition_end] = ( + feature_values[partition_end], feature_values[p] + ) + samples[p], samples[partition_end] = samples[partition_end], samples[p] + + return partition_end + + cdef inline void partition_samples_final( + self, + intp_t best_pos, + float64_t best_threshold, + intp_t best_feature, + intp_t best_n_missing, + ) noexcept nogil: + """Partition samples for X at the best_threshold and best_feature. + + If missing values are present, this method partitions `samples` + so that the `best_n_missing` missing values' indices are in the + right-most end of `samples`, that is `samples[end_non_missing:end]`. + """ + cdef: + # Local invariance: start <= p <= partition_end <= end + intp_t start = self.start + intp_t p = start + intp_t end = self.end - 1 + intp_t partition_end = end - best_n_missing + intp_t[::1] samples = self.samples + const float32_t[:, :] X = self.X + float32_t current_value + + if best_n_missing != 0: + # Move samples with missing values to the end while partitioning the + # non-missing samples + while p < partition_end: + # Keep samples with missing values at the end + if isnan(X[samples[end], best_feature]): + end -= 1 + continue + + # Swap sample with missing values with the sample at the end + current_value = X[samples[p], best_feature] + if isnan(current_value): + samples[p], samples[end] = samples[end], samples[p] + end -= 1 + + # The swapped sample at the end is always a non-missing value, so + # we can continue the algorithm without checking for missingness. + current_value = X[samples[p], best_feature] + + # Partition the non-missing samples + if current_value <= best_threshold: + p += 1 + else: + samples[p], samples[partition_end] = samples[partition_end], samples[p] + partition_end -= 1 + else: + # Partitioning routine when there are no missing values + while p < partition_end: + if X[samples[p], best_feature] <= best_threshold: + p += 1 + else: + samples[p], samples[partition_end] = samples[partition_end], samples[p] + partition_end -= 1 + + +@final +cdef class SparsePartitioner: + """Partitioner specialized for sparse CSC data. + + Note that this partitioner is agnostic to the splitting strategy (best vs. random). + """ + def __init__( + self, + object X, + intp_t[::1] samples, + intp_t n_samples, + float32_t[::1] feature_values, + const uint8_t[::1] missing_values_in_feature_mask, + ): + if not (issparse(X) and X.format == "csc"): + raise ValueError("X should be in csc format") + + self.samples = samples + self.feature_values = feature_values + + # Initialize X + cdef intp_t n_total_samples = X.shape[0] + + self.X_data = X.data + self.X_indices = X.indices + self.X_indptr = X.indptr + self.n_total_samples = n_total_samples + + # Initialize auxiliary array used to perform split + self.index_to_samples = np.full(n_total_samples, fill_value=-1, dtype=np.intp) + self.sorted_samples = np.empty(n_samples, dtype=np.intp) + + cdef intp_t p + for p in range(n_samples): + self.index_to_samples[samples[p]] = p + + self.missing_values_in_feature_mask = missing_values_in_feature_mask + + cdef inline void init_node_split(self, intp_t start, intp_t end) noexcept nogil: + """Initialize splitter at the beginning of node_split.""" + self.start = start + self.end = end + self.is_samples_sorted = 0 + self.n_missing = 0 + + cdef inline void sort_samples_and_feature_values( + self, + intp_t current_feature + ) noexcept nogil: + """Simultaneously sort based on the feature_values.""" + cdef: + float32_t[::1] feature_values = self.feature_values + intp_t[::1] index_to_samples = self.index_to_samples + intp_t[::1] samples = self.samples + + self.extract_nnz(current_feature) + # Sort the positive and negative parts of `feature_values` + sort(&feature_values[self.start], &samples[self.start], self.end_negative - self.start) + if self.start_positive < self.end: + sort( + &feature_values[self.start_positive], + &samples[self.start_positive], + self.end - self.start_positive + ) + + # Update index_to_samples to take into account the sort + for p in range(self.start, self.end_negative): + index_to_samples[samples[p]] = p + for p in range(self.start_positive, self.end): + index_to_samples[samples[p]] = p + + # Add one or two zeros in feature_values, if there is any + if self.end_negative < self.start_positive: + self.start_positive -= 1 + feature_values[self.start_positive] = 0. + + if self.end_negative != self.start_positive: + feature_values[self.end_negative] = 0. + self.end_negative += 1 + + # XXX: When sparse supports missing values, this should be set to the + # number of missing values for current_feature + self.n_missing = 0 + + cdef inline void find_min_max( + self, + intp_t current_feature, + float32_t* min_feature_value_out, + float32_t* max_feature_value_out, + ) noexcept nogil: + """Find the minimum and maximum value for current_feature.""" + cdef: + intp_t p + float32_t current_feature_value, min_feature_value, max_feature_value + float32_t[::1] feature_values = self.feature_values + + self.extract_nnz(current_feature) + + if self.end_negative != self.start_positive: + # There is a zero + min_feature_value = 0 + max_feature_value = 0 + else: + min_feature_value = feature_values[self.start] + max_feature_value = min_feature_value + + # Find min, max in feature_values[start:end_negative] + for p in range(self.start, self.end_negative): + current_feature_value = feature_values[p] + + if current_feature_value < min_feature_value: + min_feature_value = current_feature_value + elif current_feature_value > max_feature_value: + max_feature_value = current_feature_value + + # Update min, max given feature_values[start_positive:end] + for p in range(self.start_positive, self.end): + current_feature_value = feature_values[p] + + if current_feature_value < min_feature_value: + min_feature_value = current_feature_value + elif current_feature_value > max_feature_value: + max_feature_value = current_feature_value + + min_feature_value_out[0] = min_feature_value + max_feature_value_out[0] = max_feature_value + + cdef inline void next_p(self, intp_t* p_prev, intp_t* p) noexcept nogil: + """Compute the next p_prev and p for iterating over feature values.""" + cdef: + intp_t p_next + float32_t[::1] feature_values = self.feature_values + + if p[0] + 1 != self.end_negative: + p_next = p[0] + 1 + else: + p_next = self.start_positive + + while (p_next < self.end and + feature_values[p_next] <= feature_values[p[0]] + FEATURE_THRESHOLD): + p[0] = p_next + if p[0] + 1 != self.end_negative: + p_next = p[0] + 1 + else: + p_next = self.start_positive + + p_prev[0] = p[0] + p[0] = p_next + + cdef inline intp_t partition_samples( + self, + float64_t current_threshold + ) noexcept nogil: + """Partition samples for feature_values at the current_threshold.""" + return self._partition(current_threshold, self.start_positive) + + cdef inline void partition_samples_final( + self, + intp_t best_pos, + float64_t best_threshold, + intp_t best_feature, + intp_t n_missing, + ) noexcept nogil: + """Partition samples for X at the best_threshold and best_feature.""" + self.extract_nnz(best_feature) + self._partition(best_threshold, best_pos) + + cdef inline intp_t _partition(self, float64_t threshold, intp_t zero_pos) noexcept nogil: + """Partition samples[start:end] based on threshold.""" + cdef: + intp_t p, partition_end + intp_t[::1] index_to_samples = self.index_to_samples + float32_t[::1] feature_values = self.feature_values + intp_t[::1] samples = self.samples + + if threshold < 0.: + p = self.start + partition_end = self.end_negative + elif threshold > 0.: + p = self.start_positive + partition_end = self.end + else: + # Data are already split + return zero_pos + + while p < partition_end: + if feature_values[p] <= threshold: + p += 1 + + else: + partition_end -= 1 + + feature_values[p], feature_values[partition_end] = ( + feature_values[partition_end], feature_values[p] + ) + sparse_swap(index_to_samples, samples, p, partition_end) + + return partition_end + + cdef inline void extract_nnz(self, intp_t feature) noexcept nogil: + """Extract and partition values for a given feature. + + The extracted values are partitioned between negative values + feature_values[start:end_negative[0]] and positive values + feature_values[start_positive[0]:end]. + The samples and index_to_samples are modified according to this + partition. + + The extraction corresponds to the intersection between the arrays + X_indices[indptr_start:indptr_end] and samples[start:end]. + This is done efficiently using either an index_to_samples based approach + or binary search based approach. + + Parameters + ---------- + feature : intp_t, + Index of the feature we want to extract non zero value. + """ + cdef intp_t[::1] samples = self.samples + cdef float32_t[::1] feature_values = self.feature_values + cdef intp_t indptr_start = self.X_indptr[feature], + cdef intp_t indptr_end = self.X_indptr[feature + 1] + cdef intp_t n_indices = (indptr_end - indptr_start) + cdef intp_t n_samples = self.end - self.start + cdef intp_t[::1] index_to_samples = self.index_to_samples + cdef intp_t[::1] sorted_samples = self.sorted_samples + cdef const int32_t[::1] X_indices = self.X_indices + cdef const float32_t[::1] X_data = self.X_data + + # Use binary search if n_samples * log(n_indices) < + # n_indices and index_to_samples approach otherwise. + # O(n_samples * log(n_indices)) is the running time of binary + # search and O(n_indices) is the running time of index_to_samples + # approach. + if ((1 - self.is_samples_sorted) * n_samples * log2(n_samples) + + n_samples * log2(n_indices) < EXTRACT_NNZ_SWITCH * n_indices): + extract_nnz_binary_search(X_indices, X_data, + indptr_start, indptr_end, + samples, self.start, self.end, + index_to_samples, + feature_values, + &self.end_negative, &self.start_positive, + sorted_samples, &self.is_samples_sorted) + + # Using an index to samples technique to extract non zero values + # index_to_samples is a mapping from X_indices to samples + else: + extract_nnz_index_to_samples(X_indices, X_data, + indptr_start, indptr_end, + samples, self.start, self.end, + index_to_samples, + feature_values, + &self.end_negative, &self.start_positive) + + +cdef int compare_SIZE_t(const void* a, const void* b) noexcept nogil: + """Comparison function for sort. + + This must return an `int` as it is used by stdlib's qsort, which expects + an `int` return value. + """ + return ((a)[0] - (b)[0]) + + +cdef inline void binary_search(const int32_t[::1] sorted_array, + int32_t start, int32_t end, + intp_t value, intp_t* index, + int32_t* new_start) noexcept nogil: + """Return the index of value in the sorted array. + + If not found, return -1. new_start is the last pivot + 1 + """ + cdef int32_t pivot + index[0] = -1 + while start < end: + pivot = start + (end - start) / 2 + + if sorted_array[pivot] == value: + index[0] = pivot + start = pivot + 1 + break + + if sorted_array[pivot] < value: + start = pivot + 1 + else: + end = pivot + new_start[0] = start + + +cdef inline void extract_nnz_index_to_samples(const int32_t[::1] X_indices, + const float32_t[::1] X_data, + int32_t indptr_start, + int32_t indptr_end, + intp_t[::1] samples, + intp_t start, + intp_t end, + intp_t[::1] index_to_samples, + float32_t[::1] feature_values, + intp_t* end_negative, + intp_t* start_positive) noexcept nogil: + """Extract and partition values for a feature using index_to_samples. + + Complexity is O(indptr_end - indptr_start). + """ + cdef int32_t k + cdef intp_t index + cdef intp_t end_negative_ = start + cdef intp_t start_positive_ = end + + for k in range(indptr_start, indptr_end): + if start <= index_to_samples[X_indices[k]] < end: + if X_data[k] > 0: + start_positive_ -= 1 + feature_values[start_positive_] = X_data[k] + index = index_to_samples[X_indices[k]] + sparse_swap(index_to_samples, samples, index, start_positive_) + + elif X_data[k] < 0: + feature_values[end_negative_] = X_data[k] + index = index_to_samples[X_indices[k]] + sparse_swap(index_to_samples, samples, index, end_negative_) + end_negative_ += 1 + + # Returned values + end_negative[0] = end_negative_ + start_positive[0] = start_positive_ + + +cdef inline void extract_nnz_binary_search(const int32_t[::1] X_indices, + const float32_t[::1] X_data, + int32_t indptr_start, + int32_t indptr_end, + intp_t[::1] samples, + intp_t start, + intp_t end, + intp_t[::1] index_to_samples, + float32_t[::1] feature_values, + intp_t* end_negative, + intp_t* start_positive, + intp_t[::1] sorted_samples, + bint* is_samples_sorted) noexcept nogil: + """Extract and partition values for a given feature using binary search. + + If n_samples = end - start and n_indices = indptr_end - indptr_start, + the complexity is + + O((1 - is_samples_sorted[0]) * n_samples * log(n_samples) + + n_samples * log(n_indices)). + """ + cdef intp_t n_samples + + if not is_samples_sorted[0]: + n_samples = end - start + memcpy(&sorted_samples[start], &samples[start], + n_samples * sizeof(intp_t)) + qsort(&sorted_samples[start], n_samples, sizeof(intp_t), + compare_SIZE_t) + is_samples_sorted[0] = 1 + + while (indptr_start < indptr_end and + sorted_samples[start] > X_indices[indptr_start]): + indptr_start += 1 + + while (indptr_start < indptr_end and + sorted_samples[end - 1] < X_indices[indptr_end - 1]): + indptr_end -= 1 + + cdef intp_t p = start + cdef intp_t index + cdef intp_t k + cdef intp_t end_negative_ = start + cdef intp_t start_positive_ = end + + while (p < end and indptr_start < indptr_end): + # Find index of sorted_samples[p] in X_indices + binary_search(X_indices, indptr_start, indptr_end, + sorted_samples[p], &k, &indptr_start) + + if k != -1: + # If k != -1, we have found a non zero value + + if X_data[k] > 0: + start_positive_ -= 1 + feature_values[start_positive_] = X_data[k] + index = index_to_samples[X_indices[k]] + sparse_swap(index_to_samples, samples, index, start_positive_) + + elif X_data[k] < 0: + feature_values[end_negative_] = X_data[k] + index = index_to_samples[X_indices[k]] + sparse_swap(index_to_samples, samples, index, end_negative_) + end_negative_ += 1 + p += 1 + + # Returned values + end_negative[0] = end_negative_ + start_positive[0] = start_positive_ + + +cdef inline void sparse_swap(intp_t[::1] index_to_samples, intp_t[::1] samples, + intp_t pos_1, intp_t pos_2) noexcept nogil: + """Swap sample pos_1 and pos_2 preserving sparse invariant.""" + samples[pos_1], samples[pos_2] = samples[pos_2], samples[pos_1] + index_to_samples[samples[pos_1]] = pos_1 + index_to_samples[samples[pos_2]] = pos_2 + + +cdef inline void shift_missing_values_to_left_if_required( + SplitRecord* best, + intp_t[::1] samples, + intp_t end, +) noexcept nogil: + """Shift missing value sample indices to the left of the split if required. + + Note: this should always be called at the very end because it will + move samples around, thereby affecting the criterion. + This affects the computation of the children impurity, which affects + the computation of the next node. + """ + cdef intp_t i, p, current_end + # The partitioner partitions the data such that the missing values are in + # samples[-n_missing:] for the criterion to consume. If the missing values + # are going to the right node, then the missing values are already in the + # correct position. If the missing values go left, then we move the missing + # values to samples[best.pos:best.pos+n_missing] and update `best.pos`. + if best.n_missing > 0 and best.missing_go_to_left: + for p in range(best.n_missing): + i = best.pos + p + current_end = end - 1 - p + samples[i], samples[current_end] = samples[current_end], samples[i] + best.pos += best.n_missing + + +def _py_sort(float32_t[::1] feature_values, intp_t[::1] samples, intp_t n): + """Used for testing sort.""" + sort(&feature_values[0], &samples[0], n) + + +# Sort n-element arrays pointed to by feature_values and samples, simultaneously, +# by the values in feature_values. Algorithm: Introsort (Musser, SP&E, 1997). +cdef inline void sort(float32_t* feature_values, intp_t* samples, intp_t n) noexcept nogil: + if n == 0: + return + cdef intp_t maxd = 2 * log2(n) + introsort(feature_values, samples, n, maxd) + + +cdef inline void swap(float32_t* feature_values, intp_t* samples, + intp_t i, intp_t j) noexcept nogil: + # Helper for sort + feature_values[i], feature_values[j] = feature_values[j], feature_values[i] + samples[i], samples[j] = samples[j], samples[i] + + +cdef inline float32_t median3(float32_t* feature_values, intp_t n) noexcept nogil: + # Median of three pivot selection, after Bentley and McIlroy (1993). + # Engineering a sort function. SP&E. Requires 8/3 comparisons on average. + cdef float32_t a = feature_values[0], b = feature_values[n / 2], c = feature_values[n - 1] + if a < b: + if b < c: + return b + elif a < c: + return c + else: + return a + elif b < c: + if a < c: + return a + else: + return c + else: + return b + + +# Introsort with median of 3 pivot selection and 3-way partition function +# (robust to repeated elements, e.g. lots of zero features). +cdef void introsort(float32_t* feature_values, intp_t *samples, + intp_t n, intp_t maxd) noexcept nogil: + cdef float32_t pivot + cdef intp_t i, l, r + + while n > 1: + if maxd <= 0: # max depth limit exceeded ("gone quadratic") + heapsort(feature_values, samples, n) + return + maxd -= 1 + + pivot = median3(feature_values, n) + + # Three-way partition. + i = l = 0 + r = n + while i < r: + if feature_values[i] < pivot: + swap(feature_values, samples, i, l) + i += 1 + l += 1 + elif feature_values[i] > pivot: + r -= 1 + swap(feature_values, samples, i, r) + else: + i += 1 + + introsort(feature_values, samples, l, maxd) + feature_values += r + samples += r + n -= r + + +cdef inline void sift_down(float32_t* feature_values, intp_t* samples, + intp_t start, intp_t end) noexcept nogil: + # Restore heap order in feature_values[start:end] by moving the max element to start. + cdef intp_t child, maxind, root + + root = start + while True: + child = root * 2 + 1 + + # find max of root, left child, right child + maxind = root + if child < end and feature_values[maxind] < feature_values[child]: + maxind = child + if child + 1 < end and feature_values[maxind] < feature_values[child + 1]: + maxind = child + 1 + + if maxind == root: + break + else: + swap(feature_values, samples, root, maxind) + root = maxind + + +cdef void heapsort(float32_t* feature_values, intp_t* samples, intp_t n) noexcept nogil: + cdef intp_t start, end + + # heapify + start = (n - 2) / 2 + end = n + while True: + sift_down(feature_values, samples, start, end) + if start == 0: + break + start -= 1 + + # sort by shrinking the heap, putting the max element immediately after it + end = n - 1 + while end > 0: + swap(feature_values, samples, 0, end) + sift_down(feature_values, samples, 0, end) + end = end - 1 diff --git a/shared/package-files/0a/0afe1277938f704068be4edc2a9bc0e5a14cdaf8d1650fd3860877f8f34fd4ea/unfold_backward_cpu_dispatch.h b/shared/package-files/0a/0afe1277938f704068be4edc2a9bc0e5a14cdaf8d1650fd3860877f8f34fd4ea/unfold_backward_cpu_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..7df0e250ab0bf736eaf102a677f00bb04a10ba15 --- /dev/null +++ b/shared/package-files/0a/0afe1277938f704068be4edc2a9bc0e5a14cdaf8d1650fd3860877f8f34fd4ea/unfold_backward_cpu_dispatch.h @@ -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 at::Tensor unfold_backward(const at::Tensor & grad_in, at::IntArrayRef input_sizes, int64_t dim, int64_t size, int64_t step); +TORCH_API at::Tensor unfold_backward_symint(const at::Tensor & grad_in, c10::SymIntArrayRef input_sizes, int64_t dim, int64_t size, int64_t step); + +} // namespace cpu +} // namespace at diff --git a/shared/package-files/0a/0afebd92aac5391bb06f5235a307be231c8ad1900d8aba868222f2c5c6129c12/install_egg_info.py b/shared/package-files/0a/0afebd92aac5391bb06f5235a307be231c8ad1900d8aba868222f2c5c6129c12/install_egg_info.py new file mode 100644 index 0000000000000000000000000000000000000000..f3e8f3447dc206799a8e124000a81c443adc870f --- /dev/null +++ b/shared/package-files/0a/0afebd92aac5391bb06f5235a307be231c8ad1900d8aba868222f2c5c6129c12/install_egg_info.py @@ -0,0 +1,92 @@ +""" +distutils.command.install_egg_info + +Implements the Distutils 'install_egg_info' command, for installing +a package's PKG-INFO metadata. +""" + +import os +import sys +import re + +from ..cmd import Command +from .. import dir_util +from .._log import log + + +class install_egg_info(Command): + """Install an .egg-info file for the package""" + + description = "Install package's PKG-INFO metadata as an .egg-info file" + user_options = [ + ('install-dir=', 'd', "directory to install to"), + ] + + def initialize_options(self): + self.install_dir = None + + @property + def basename(self): + """ + Allow basename to be overridden by child class. + Ref pypa/distutils#2. + """ + return "%s-%s-py%d.%d.egg-info" % ( + to_filename(safe_name(self.distribution.get_name())), + to_filename(safe_version(self.distribution.get_version())), + *sys.version_info[:2], + ) + + def finalize_options(self): + self.set_undefined_options('install_lib', ('install_dir', 'install_dir')) + self.target = os.path.join(self.install_dir, self.basename) + self.outputs = [self.target] + + def run(self): + target = self.target + if os.path.isdir(target) and not os.path.islink(target): + dir_util.remove_tree(target, dry_run=self.dry_run) + elif os.path.exists(target): + self.execute(os.unlink, (self.target,), "Removing " + target) + elif not os.path.isdir(self.install_dir): + self.execute( + os.makedirs, (self.install_dir,), "Creating " + self.install_dir + ) + log.info("Writing %s", target) + if not self.dry_run: + with open(target, 'w', encoding='UTF-8') as f: + self.distribution.metadata.write_pkg_file(f) + + def get_outputs(self): + return self.outputs + + +# The following routines are taken from setuptools' pkg_resources module and +# can be replaced by importing them from pkg_resources once it is included +# in the stdlib. + + +def safe_name(name): + """Convert an arbitrary string to a standard distribution name + + Any runs of non-alphanumeric/. characters are replaced with a single '-'. + """ + return re.sub('[^A-Za-z0-9.]+', '-', name) + + +def safe_version(version): + """Convert an arbitrary string to a standard version string + + Spaces become dots, and all other non-alphanumeric characters become + dashes, with runs of multiple dashes condensed to a single dash. + """ + version = version.replace(' ', '.') + return re.sub('[^A-Za-z0-9.]+', '-', version) + + +def to_filename(name): + """Convert a project or version name to its filename-escaped form + + Any '-' characters are currently replaced with '_'. + """ + return name.replace('-', '_') diff --git a/shared/package-files/0a/0aff62929f8717526c6e65149dfad319d8fea20c3f8855527f4c8e4041391f1b/universaldetector.pyi b/shared/package-files/0a/0aff62929f8717526c6e65149dfad319d8fea20c3f8855527f4c8e4041391f1b/universaldetector.pyi new file mode 100644 index 0000000000000000000000000000000000000000..08d2c479b6a6184b49d10d0d96da6ab78ed54d9b --- /dev/null +++ b/shared/package-files/0a/0aff62929f8717526c6e65149dfad319d8fea20c3f8855527f4c8e4041391f1b/universaldetector.pyi @@ -0,0 +1,29 @@ +from logging import Logger +from typing import Dict, Optional, Pattern +from typing_extensions import TypedDict + +class _FinalResultType(TypedDict): + encoding: str + confidence: float + language: str + +class _IntermediateResultType(TypedDict): + encoding: Optional[str] + confidence: float + language: Optional[str] + +class UniversalDetector(object): + MINIMUM_THRESHOLD: float + HIGH_BYTE_DETECTOR: Pattern[bytes] + ESC_DETECTOR: Pattern[bytes] + WIN_BYTE_DETECTOR: Pattern[bytes] + ISO_WIN_MAP: Dict[str, str] + + result: _IntermediateResultType + done: bool + lang_filter: int + logger: Logger + def __init__(self, lang_filter: int = ...) -> None: ... + def reset(self) -> None: ... + def feed(self, byte_str: bytes) -> None: ... + def close(self) -> _FinalResultType: ... diff --git a/shared/package-files/20/20015bb7f985deadd014184718a1c0ebc2b5b8d7d4e0cae4868009d3303d4bf9/bcppcompiler.py b/shared/package-files/20/20015bb7f985deadd014184718a1c0ebc2b5b8d7d4e0cae4868009d3303d4bf9/bcppcompiler.py new file mode 100644 index 0000000000000000000000000000000000000000..ba45ea2b9500e62b8cf6786432336f5b1ddddec1 --- /dev/null +++ b/shared/package-files/20/20015bb7f985deadd014184718a1c0ebc2b5b8d7d4e0cae4868009d3303d4bf9/bcppcompiler.py @@ -0,0 +1,401 @@ +"""distutils.bcppcompiler + +Contains BorlandCCompiler, an implementation of the abstract CCompiler class +for the Borland C++ compiler. +""" + +# This implementation by Lyle Johnson, based on the original msvccompiler.py +# module and using the directions originally published by Gordon Williams. + +# XXX looks like there's a LOT of overlap between these two classes: +# someone should sit down and factor out the common code as +# WindowsCCompiler! --GPW + + +import os +import warnings + +from .errors import ( + DistutilsExecError, + CompileError, + LibError, + LinkError, + UnknownFileError, +) +from .ccompiler import CCompiler, gen_preprocess_options +from .file_util import write_file +from .dep_util import newer +from ._log import log + + +warnings.warn( + "bcppcompiler is deprecated and slated to be removed " + "in the future. Please discontinue use or file an issue " + "with pypa/distutils describing your use case.", + DeprecationWarning, +) + + +class BCPPCompiler(CCompiler): + """Concrete class that implements an interface to the Borland C/C++ + compiler, as defined by the CCompiler abstract class. + """ + + compiler_type = 'bcpp' + + # Just set this so CCompiler's constructor doesn't barf. We currently + # don't use the 'set_executables()' bureaucracy provided by CCompiler, + # as it really isn't necessary for this sort of single-compiler class. + # Would be nice to have a consistent interface with UnixCCompiler, + # though, so it's worth thinking about. + executables = {} + + # Private class data (need to distinguish C from C++ source for compiler) + _c_extensions = ['.c'] + _cpp_extensions = ['.cc', '.cpp', '.cxx'] + + # Needed for the filename generation methods provided by the + # base class, CCompiler. + src_extensions = _c_extensions + _cpp_extensions + obj_extension = '.obj' + static_lib_extension = '.lib' + shared_lib_extension = '.dll' + static_lib_format = shared_lib_format = '%s%s' + exe_extension = '.exe' + + def __init__(self, verbose=0, dry_run=0, force=0): + super().__init__(verbose, dry_run, force) + + # These executables are assumed to all be in the path. + # Borland doesn't seem to use any special registry settings to + # indicate their installation locations. + + self.cc = "bcc32.exe" + self.linker = "ilink32.exe" + self.lib = "tlib.exe" + + self.preprocess_options = None + self.compile_options = ['/tWM', '/O2', '/q', '/g0'] + self.compile_options_debug = ['/tWM', '/Od', '/q', '/g0'] + + self.ldflags_shared = ['/Tpd', '/Gn', '/q', '/x'] + self.ldflags_shared_debug = ['/Tpd', '/Gn', '/q', '/x'] + self.ldflags_static = [] + self.ldflags_exe = ['/Gn', '/q', '/x'] + self.ldflags_exe_debug = ['/Gn', '/q', '/x', '/r'] + + # -- Worker methods ------------------------------------------------ + + def compile( # noqa: C901 + self, + sources, + output_dir=None, + macros=None, + include_dirs=None, + debug=0, + extra_preargs=None, + extra_postargs=None, + depends=None, + ): + macros, objects, extra_postargs, pp_opts, build = self._setup_compile( + output_dir, macros, include_dirs, sources, depends, extra_postargs + ) + compile_opts = extra_preargs or [] + compile_opts.append('-c') + if debug: + compile_opts.extend(self.compile_options_debug) + else: + compile_opts.extend(self.compile_options) + + for obj in objects: + try: + src, ext = build[obj] + except KeyError: + continue + # XXX why do the normpath here? + src = os.path.normpath(src) + obj = os.path.normpath(obj) + # XXX _setup_compile() did a mkpath() too but before the normpath. + # Is it possible to skip the normpath? + self.mkpath(os.path.dirname(obj)) + + if ext == '.res': + # This is already a binary file -- skip it. + continue # the 'for' loop + if ext == '.rc': + # This needs to be compiled to a .res file -- do it now. + try: + self.spawn(["brcc32", "-fo", obj, src]) + except DistutilsExecError as msg: + raise CompileError(msg) + continue # the 'for' loop + + # The next two are both for the real compiler. + if ext in self._c_extensions: + input_opt = "" + elif ext in self._cpp_extensions: + input_opt = "-P" + else: + # Unknown file type -- no extra options. The compiler + # will probably fail, but let it just in case this is a + # file the compiler recognizes even if we don't. + input_opt = "" + + output_opt = "-o" + obj + + # Compiler command line syntax is: "bcc32 [options] file(s)". + # Note that the source file names must appear at the end of + # the command line. + try: + self.spawn( + [self.cc] + + compile_opts + + pp_opts + + [input_opt, output_opt] + + extra_postargs + + [src] + ) + except DistutilsExecError as msg: + raise CompileError(msg) + + return objects + + # compile () + + def create_static_lib( + self, objects, output_libname, output_dir=None, debug=0, target_lang=None + ): + (objects, output_dir) = self._fix_object_args(objects, output_dir) + output_filename = self.library_filename(output_libname, output_dir=output_dir) + + if self._need_link(objects, output_filename): + lib_args = [output_filename, '/u'] + objects + if debug: + pass # XXX what goes here? + try: + self.spawn([self.lib] + lib_args) + except DistutilsExecError as msg: + raise LibError(msg) + else: + log.debug("skipping %s (up-to-date)", output_filename) + + # create_static_lib () + + def link( # noqa: C901 + self, + target_desc, + objects, + output_filename, + output_dir=None, + libraries=None, + library_dirs=None, + runtime_library_dirs=None, + export_symbols=None, + debug=0, + extra_preargs=None, + extra_postargs=None, + build_temp=None, + target_lang=None, + ): + # XXX this ignores 'build_temp'! should follow the lead of + # msvccompiler.py + + (objects, output_dir) = self._fix_object_args(objects, output_dir) + (libraries, library_dirs, runtime_library_dirs) = self._fix_lib_args( + libraries, library_dirs, runtime_library_dirs + ) + + if runtime_library_dirs: + log.warning( + "I don't know what to do with 'runtime_library_dirs': %s", + str(runtime_library_dirs), + ) + + if output_dir is not None: + output_filename = os.path.join(output_dir, output_filename) + + if self._need_link(objects, output_filename): + # Figure out linker args based on type of target. + if target_desc == CCompiler.EXECUTABLE: + startup_obj = 'c0w32' + if debug: + ld_args = self.ldflags_exe_debug[:] + else: + ld_args = self.ldflags_exe[:] + else: + startup_obj = 'c0d32' + if debug: + ld_args = self.ldflags_shared_debug[:] + else: + ld_args = self.ldflags_shared[:] + + # Create a temporary exports file for use by the linker + if export_symbols is None: + def_file = '' + else: + head, tail = os.path.split(output_filename) + modname, ext = os.path.splitext(tail) + temp_dir = os.path.dirname(objects[0]) # preserve tree structure + def_file = os.path.join(temp_dir, '%s.def' % modname) + contents = ['EXPORTS'] + for sym in export_symbols or []: + contents.append(' {}=_{}'.format(sym, sym)) + self.execute(write_file, (def_file, contents), "writing %s" % def_file) + + # Borland C++ has problems with '/' in paths + objects2 = map(os.path.normpath, objects) + # split objects in .obj and .res files + # Borland C++ needs them at different positions in the command line + objects = [startup_obj] + resources = [] + for file in objects2: + (base, ext) = os.path.splitext(os.path.normcase(file)) + if ext == '.res': + resources.append(file) + else: + objects.append(file) + + for ell in library_dirs: + ld_args.append("/L%s" % os.path.normpath(ell)) + ld_args.append("/L.") # we sometimes use relative paths + + # list of object files + ld_args.extend(objects) + + # XXX the command-line syntax for Borland C++ is a bit wonky; + # certain filenames are jammed together in one big string, but + # comma-delimited. This doesn't mesh too well with the + # Unix-centric attitude (with a DOS/Windows quoting hack) of + # 'spawn()', so constructing the argument list is a bit + # awkward. Note that doing the obvious thing and jamming all + # the filenames and commas into one argument would be wrong, + # because 'spawn()' would quote any filenames with spaces in + # them. Arghghh!. Apparently it works fine as coded... + + # name of dll/exe file + ld_args.extend([',', output_filename]) + # no map file and start libraries + ld_args.append(',,') + + for lib in libraries: + # see if we find it and if there is a bcpp specific lib + # (xxx_bcpp.lib) + libfile = self.find_library_file(library_dirs, lib, debug) + if libfile is None: + ld_args.append(lib) + # probably a BCPP internal library -- don't warn + else: + # full name which prefers bcpp_xxx.lib over xxx.lib + ld_args.append(libfile) + + # some default libraries + ld_args.extend(('import32', 'cw32mt')) + + # def file for export symbols + ld_args.extend([',', def_file]) + # add resource files + ld_args.append(',') + ld_args.extend(resources) + + if extra_preargs: + ld_args[:0] = extra_preargs + if extra_postargs: + ld_args.extend(extra_postargs) + + self.mkpath(os.path.dirname(output_filename)) + try: + self.spawn([self.linker] + ld_args) + except DistutilsExecError as msg: + raise LinkError(msg) + + else: + log.debug("skipping %s (up-to-date)", output_filename) + + # link () + + # -- Miscellaneous methods ----------------------------------------- + + def find_library_file(self, dirs, lib, debug=0): + # List of effective library names to try, in order of preference: + # xxx_bcpp.lib is better than xxx.lib + # and xxx_d.lib is better than xxx.lib if debug is set + # + # The "_bcpp" suffix is to handle a Python installation for people + # with multiple compilers (primarily Distutils hackers, I suspect + # ;-). The idea is they'd have one static library for each + # compiler they care about, since (almost?) every Windows compiler + # seems to have a different format for static libraries. + if debug: + dlib = lib + "_d" + try_names = (dlib + "_bcpp", lib + "_bcpp", dlib, lib) + else: + try_names = (lib + "_bcpp", lib) + + for dir in dirs: + for name in try_names: + libfile = os.path.join(dir, self.library_filename(name)) + if os.path.exists(libfile): + return libfile + else: + # Oops, didn't find it in *any* of 'dirs' + return None + + # overwrite the one from CCompiler to support rc and res-files + def object_filenames(self, source_filenames, strip_dir=0, output_dir=''): + if output_dir is None: + output_dir = '' + obj_names = [] + for src_name in source_filenames: + # use normcase to make sure '.rc' is really '.rc' and not '.RC' + (base, ext) = os.path.splitext(os.path.normcase(src_name)) + if ext not in (self.src_extensions + ['.rc', '.res']): + raise UnknownFileError( + "unknown file type '{}' (from '{}')".format(ext, src_name) + ) + if strip_dir: + base = os.path.basename(base) + if ext == '.res': + # these can go unchanged + obj_names.append(os.path.join(output_dir, base + ext)) + elif ext == '.rc': + # these need to be compiled to .res-files + obj_names.append(os.path.join(output_dir, base + '.res')) + else: + obj_names.append(os.path.join(output_dir, base + self.obj_extension)) + return obj_names + + # object_filenames () + + def preprocess( + self, + source, + output_file=None, + macros=None, + include_dirs=None, + extra_preargs=None, + extra_postargs=None, + ): + (_, macros, include_dirs) = self._fix_compile_args(None, macros, include_dirs) + pp_opts = gen_preprocess_options(macros, include_dirs) + pp_args = ['cpp32.exe'] + pp_opts + if output_file is not None: + pp_args.append('-o' + output_file) + if extra_preargs: + pp_args[:0] = extra_preargs + if extra_postargs: + pp_args.extend(extra_postargs) + pp_args.append(source) + + # We need to preprocess: either we're being forced to, or the + # source file is newer than the target (or the target doesn't + # exist). + if self.force or output_file is None or newer(source, output_file): + if output_file: + self.mkpath(os.path.dirname(output_file)) + try: + self.spawn(pp_args) + except DistutilsExecError as msg: + print(msg) + raise CompileError(msg) + + # preprocess() diff --git a/shared/package-files/20/2003417c1934187a119d7b4f543a876bfac91daf30ce382e31cb91d51f6f2e50/rand_like.h b/shared/package-files/20/2003417c1934187a119d7b4f543a876bfac91daf30ce382e31cb91d51f6f2e50/rand_like.h new file mode 100644 index 0000000000000000000000000000000000000000..288a4f1da7516623c9cee956e2b8f0090bab0ff0 --- /dev/null +++ b/shared/package-files/20/2003417c1934187a119d7b4f543a876bfac91daf30ce382e31cb91d51f6f2e50/rand_like.h @@ -0,0 +1,43 @@ +#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::rand_like(Tensor self, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, MemoryFormat? memory_format=None) -> Tensor +inline at::Tensor rand_like(const at::Tensor & self, at::TensorOptions options={}, c10::optional memory_format=c10::nullopt) { + return at::_ops::rand_like::call(self, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt(), c10::impl::check_tensor_options_and_extract_memory_format(options, memory_format)); +} +// aten::rand_like(Tensor self, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, MemoryFormat? memory_format=None) -> Tensor +inline at::Tensor rand_like(const at::Tensor & self, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory, c10::optional memory_format) { + return at::_ops::rand_like::call(self, dtype, layout, device, pin_memory, memory_format); +} + +// aten::rand_like.out(Tensor self, *, MemoryFormat? memory_format=None, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & rand_like_out(at::Tensor & out, const at::Tensor & self, c10::optional memory_format=c10::nullopt) { + return at::_ops::rand_like_out::call(self, memory_format, out); +} +// aten::rand_like.out(Tensor self, *, MemoryFormat? memory_format=None, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & rand_like_outf(const at::Tensor & self, c10::optional memory_format, at::Tensor & out) { + return at::_ops::rand_like_out::call(self, memory_format, out); +} + +} diff --git a/shared/package-files/20/20047fc3446ea6f152e5b2dfc3ae9957dd4e13d582d69d73b4e1526b11c6bd9a/gil.h b/shared/package-files/20/20047fc3446ea6f152e5b2dfc3ae9957dd4e13d582d69d73b4e1526b11c6bd9a/gil.h new file mode 100644 index 0000000000000000000000000000000000000000..da22f48d7ef1846f8f53b16a881c0e39718d546d --- /dev/null +++ b/shared/package-files/20/20047fc3446ea6f152e5b2dfc3ae9957dd4e13d582d69d73b4e1526b11c6bd9a/gil.h @@ -0,0 +1,247 @@ +/* + pybind11/gil.h: RAII helpers for managing the GIL + + Copyright (c) 2016 Wenzel Jakob + + All rights reserved. Use of this source code is governed by a + BSD-style license that can be found in the LICENSE file. +*/ + +#pragma once + +#include "detail/common.h" + +#include + +#if defined(WITH_THREAD) && !defined(PYBIND11_SIMPLE_GIL_MANAGEMENT) +# include "detail/internals.h" +#endif + +PYBIND11_NAMESPACE_BEGIN(PYBIND11_NAMESPACE) + +PYBIND11_NAMESPACE_BEGIN(detail) + +// forward declarations +PyThreadState *get_thread_state_unchecked(); + +PYBIND11_NAMESPACE_END(detail) + +#if defined(WITH_THREAD) + +# if !defined(PYBIND11_SIMPLE_GIL_MANAGEMENT) + +/* The functions below essentially reproduce the PyGILState_* API using a RAII + * pattern, but there are a few important differences: + * + * 1. When acquiring the GIL from an non-main thread during the finalization + * phase, the GILState API blindly terminates the calling thread, which + * is often not what is wanted. This API does not do this. + * + * 2. The gil_scoped_release function can optionally cut the relationship + * of a PyThreadState and its associated thread, which allows moving it to + * another thread (this is a fairly rare/advanced use case). + * + * 3. The reference count of an acquired thread state can be controlled. This + * can be handy to prevent cases where callbacks issued from an external + * thread would otherwise constantly construct and destroy thread state data + * structures. + * + * See the Python bindings of NanoGUI (http://github.com/wjakob/nanogui) for an + * example which uses features 2 and 3 to migrate the Python thread of + * execution to another thread (to run the event loop on the original thread, + * in this case). + */ + +class gil_scoped_acquire { +public: + PYBIND11_NOINLINE gil_scoped_acquire() { + auto &internals = detail::get_internals(); + tstate = (PyThreadState *) PYBIND11_TLS_GET_VALUE(internals.tstate); + + if (!tstate) { + /* Check if the GIL was acquired using the PyGILState_* API instead (e.g. if + calling from a Python thread). Since we use a different key, this ensures + we don't create a new thread state and deadlock in PyEval_AcquireThread + below. Note we don't save this state with internals.tstate, since we don't + create it we would fail to clear it (its reference count should be > 0). */ + tstate = PyGILState_GetThisThreadState(); + } + + if (!tstate) { + tstate = PyThreadState_New(internals.istate); +# if defined(PYBIND11_DETAILED_ERROR_MESSAGES) + if (!tstate) { + pybind11_fail("scoped_acquire: could not create thread state!"); + } +# endif + tstate->gilstate_counter = 0; + PYBIND11_TLS_REPLACE_VALUE(internals.tstate, tstate); + } else { + release = detail::get_thread_state_unchecked() != tstate; + } + + if (release) { + PyEval_AcquireThread(tstate); + } + + inc_ref(); + } + + gil_scoped_acquire(const gil_scoped_acquire &) = delete; + gil_scoped_acquire &operator=(const gil_scoped_acquire &) = delete; + + void inc_ref() { ++tstate->gilstate_counter; } + + PYBIND11_NOINLINE void dec_ref() { + --tstate->gilstate_counter; +# if defined(PYBIND11_DETAILED_ERROR_MESSAGES) + if (detail::get_thread_state_unchecked() != tstate) { + pybind11_fail("scoped_acquire::dec_ref(): thread state must be current!"); + } + if (tstate->gilstate_counter < 0) { + pybind11_fail("scoped_acquire::dec_ref(): reference count underflow!"); + } +# endif + if (tstate->gilstate_counter == 0) { +# if defined(PYBIND11_DETAILED_ERROR_MESSAGES) + if (!release) { + pybind11_fail("scoped_acquire::dec_ref(): internal error!"); + } +# endif + PyThreadState_Clear(tstate); + if (active) { + PyThreadState_DeleteCurrent(); + } + PYBIND11_TLS_DELETE_VALUE(detail::get_internals().tstate); + release = false; + } + } + + /// This method will disable the PyThreadState_DeleteCurrent call and the + /// GIL won't be acquired. This method should be used if the interpreter + /// could be shutting down when this is called, as thread deletion is not + /// allowed during shutdown. Check _Py_IsFinalizing() on Python 3.7+, and + /// protect subsequent code. + PYBIND11_NOINLINE void disarm() { active = false; } + + PYBIND11_NOINLINE ~gil_scoped_acquire() { + dec_ref(); + if (release) { + PyEval_SaveThread(); + } + } + +private: + PyThreadState *tstate = nullptr; + bool release = true; + bool active = true; +}; + +class gil_scoped_release { +public: + // PRECONDITION: The GIL must be held when this constructor is called. + explicit gil_scoped_release(bool disassoc = false) : disassoc(disassoc) { + assert(PyGILState_Check()); + // `get_internals()` must be called here unconditionally in order to initialize + // `internals.tstate` for subsequent `gil_scoped_acquire` calls. Otherwise, an + // initialization race could occur as multiple threads try `gil_scoped_acquire`. + auto &internals = detail::get_internals(); + // NOLINTNEXTLINE(cppcoreguidelines-prefer-member-initializer) + tstate = PyEval_SaveThread(); + if (disassoc) { + // Python >= 3.7 can remove this, it's an int before 3.7 + // NOLINTNEXTLINE(readability-qualified-auto) + auto key = internals.tstate; + PYBIND11_TLS_DELETE_VALUE(key); + } + } + + gil_scoped_release(const gil_scoped_release &) = delete; + gil_scoped_release &operator=(const gil_scoped_release &) = delete; + + /// This method will disable the PyThreadState_DeleteCurrent call and the + /// GIL won't be acquired. This method should be used if the interpreter + /// could be shutting down when this is called, as thread deletion is not + /// allowed during shutdown. Check _Py_IsFinalizing() on Python 3.7+, and + /// protect subsequent code. + PYBIND11_NOINLINE void disarm() { active = false; } + + ~gil_scoped_release() { + if (!tstate) { + return; + } + // `PyEval_RestoreThread()` should not be called if runtime is finalizing + if (active) { + PyEval_RestoreThread(tstate); + } + if (disassoc) { + // Python >= 3.7 can remove this, it's an int before 3.7 + // NOLINTNEXTLINE(readability-qualified-auto) + auto key = detail::get_internals().tstate; + PYBIND11_TLS_REPLACE_VALUE(key, tstate); + } + } + +private: + PyThreadState *tstate; + bool disassoc; + bool active = true; +}; + +# else // PYBIND11_SIMPLE_GIL_MANAGEMENT + +class gil_scoped_acquire { + PyGILState_STATE state; + +public: + gil_scoped_acquire() : state{PyGILState_Ensure()} {} + gil_scoped_acquire(const gil_scoped_acquire &) = delete; + gil_scoped_acquire &operator=(const gil_scoped_acquire &) = delete; + ~gil_scoped_acquire() { PyGILState_Release(state); } + void disarm() {} +}; + +class gil_scoped_release { + PyThreadState *state; + +public: + // PRECONDITION: The GIL must be held when this constructor is called. + gil_scoped_release() { + assert(PyGILState_Check()); + state = PyEval_SaveThread(); + } + gil_scoped_release(const gil_scoped_release &) = delete; + gil_scoped_release &operator=(const gil_scoped_release &) = delete; + ~gil_scoped_release() { PyEval_RestoreThread(state); } + void disarm() {} +}; + +# endif // PYBIND11_SIMPLE_GIL_MANAGEMENT + +#else // WITH_THREAD + +class gil_scoped_acquire { +public: + gil_scoped_acquire() { + // Trick to suppress `unused variable` error messages (at call sites). + (void) (this != (this + 1)); + } + gil_scoped_acquire(const gil_scoped_acquire &) = delete; + gil_scoped_acquire &operator=(const gil_scoped_acquire &) = delete; + void disarm() {} +}; + +class gil_scoped_release { +public: + gil_scoped_release() { + // Trick to suppress `unused variable` error messages (at call sites). + (void) (this != (this + 1)); + } + gil_scoped_release(const gil_scoped_release &) = delete; + gil_scoped_release &operator=(const gil_scoped_release &) = delete; + void disarm() {} +}; + +#endif // WITH_THREAD + +PYBIND11_NAMESPACE_END(PYBIND11_NAMESPACE) diff --git a/shared/package-files/20/2007177018fe2cbcc9c307c15c51b2869c62af8d823015bae2809ce331202d8a/candidates.py b/shared/package-files/20/2007177018fe2cbcc9c307c15c51b2869c62af8d823015bae2809ce331202d8a/candidates.py new file mode 100644 index 0000000000000000000000000000000000000000..97541655fa0fbc3cd7910e1553d1f5cb023a4efe --- /dev/null +++ b/shared/package-files/20/2007177018fe2cbcc9c307c15c51b2869c62af8d823015bae2809ce331202d8a/candidates.py @@ -0,0 +1,607 @@ +import logging +import sys +from typing import TYPE_CHECKING, Any, FrozenSet, Iterable, Optional, Tuple, Union, cast + +from pip._vendor.packaging.utils import NormalizedName, canonicalize_name +from pip._vendor.packaging.version import Version + +from pip._internal.exceptions import ( + HashError, + InstallationSubprocessError, + MetadataInconsistent, +) +from pip._internal.metadata import BaseDistribution +from pip._internal.models.link import Link, links_equivalent +from pip._internal.models.wheel import Wheel +from pip._internal.req.constructors import ( + install_req_from_editable, + install_req_from_line, +) +from pip._internal.req.req_install import InstallRequirement +from pip._internal.utils.direct_url_helpers import direct_url_from_link +from pip._internal.utils.misc import normalize_version_info + +from .base import Candidate, CandidateVersion, Requirement, format_name + +if TYPE_CHECKING: + from .factory import Factory + +logger = logging.getLogger(__name__) + +BaseCandidate = Union[ + "AlreadyInstalledCandidate", + "EditableCandidate", + "LinkCandidate", +] + +# Avoid conflicting with the PyPI package "Python". +REQUIRES_PYTHON_IDENTIFIER = cast(NormalizedName, "") + + +def as_base_candidate(candidate: Candidate) -> Optional[BaseCandidate]: + """The runtime version of BaseCandidate.""" + base_candidate_classes = ( + AlreadyInstalledCandidate, + EditableCandidate, + LinkCandidate, + ) + if isinstance(candidate, base_candidate_classes): + return candidate + return None + + +def make_install_req_from_link( + link: Link, template: InstallRequirement +) -> InstallRequirement: + assert not template.editable, "template is editable" + if template.req: + line = str(template.req) + else: + line = link.url + ireq = install_req_from_line( + line, + user_supplied=template.user_supplied, + comes_from=template.comes_from, + use_pep517=template.use_pep517, + isolated=template.isolated, + constraint=template.constraint, + global_options=template.global_options, + hash_options=template.hash_options, + config_settings=template.config_settings, + ) + ireq.original_link = template.original_link + ireq.link = link + ireq.extras = template.extras + return ireq + + +def make_install_req_from_editable( + link: Link, template: InstallRequirement +) -> InstallRequirement: + assert template.editable, "template not editable" + ireq = install_req_from_editable( + link.url, + user_supplied=template.user_supplied, + comes_from=template.comes_from, + use_pep517=template.use_pep517, + isolated=template.isolated, + constraint=template.constraint, + permit_editable_wheels=template.permit_editable_wheels, + global_options=template.global_options, + hash_options=template.hash_options, + config_settings=template.config_settings, + ) + ireq.extras = template.extras + return ireq + + +def _make_install_req_from_dist( + dist: BaseDistribution, template: InstallRequirement +) -> InstallRequirement: + if template.req: + line = str(template.req) + elif template.link: + line = f"{dist.canonical_name} @ {template.link.url}" + else: + line = f"{dist.canonical_name}=={dist.version}" + ireq = install_req_from_line( + line, + user_supplied=template.user_supplied, + comes_from=template.comes_from, + use_pep517=template.use_pep517, + isolated=template.isolated, + constraint=template.constraint, + global_options=template.global_options, + hash_options=template.hash_options, + config_settings=template.config_settings, + ) + ireq.satisfied_by = dist + return ireq + + +class _InstallRequirementBackedCandidate(Candidate): + """A candidate backed by an ``InstallRequirement``. + + This represents a package request with the target not being already + in the environment, and needs to be fetched and installed. The backing + ``InstallRequirement`` is responsible for most of the leg work; this + class exposes appropriate information to the resolver. + + :param link: The link passed to the ``InstallRequirement``. The backing + ``InstallRequirement`` will use this link to fetch the distribution. + :param source_link: The link this candidate "originates" from. This is + different from ``link`` when the link is found in the wheel cache. + ``link`` would point to the wheel cache, while this points to the + found remote link (e.g. from pypi.org). + """ + + dist: BaseDistribution + is_installed = False + + def __init__( + self, + link: Link, + source_link: Link, + ireq: InstallRequirement, + factory: "Factory", + name: Optional[NormalizedName] = None, + version: Optional[CandidateVersion] = None, + ) -> None: + self._link = link + self._source_link = source_link + self._factory = factory + self._ireq = ireq + self._name = name + self._version = version + self.dist = self._prepare() + + def __str__(self) -> str: + return f"{self.name} {self.version}" + + def __repr__(self) -> str: + return "{class_name}({link!r})".format( + class_name=self.__class__.__name__, + link=str(self._link), + ) + + def __hash__(self) -> int: + return hash((self.__class__, self._link)) + + def __eq__(self, other: Any) -> bool: + if isinstance(other, self.__class__): + return links_equivalent(self._link, other._link) + return False + + @property + def source_link(self) -> Optional[Link]: + return self._source_link + + @property + def project_name(self) -> NormalizedName: + """The normalised name of the project the candidate refers to""" + if self._name is None: + self._name = self.dist.canonical_name + return self._name + + @property + def name(self) -> str: + return self.project_name + + @property + def version(self) -> CandidateVersion: + if self._version is None: + self._version = self.dist.version + return self._version + + def format_for_error(self) -> str: + return "{} {} (from {})".format( + self.name, + self.version, + self._link.file_path if self._link.is_file else self._link, + ) + + def _prepare_distribution(self) -> BaseDistribution: + raise NotImplementedError("Override in subclass") + + def _check_metadata_consistency(self, dist: BaseDistribution) -> None: + """Check for consistency of project name and version of dist.""" + if self._name is not None and self._name != dist.canonical_name: + raise MetadataInconsistent( + self._ireq, + "name", + self._name, + dist.canonical_name, + ) + if self._version is not None and self._version != dist.version: + raise MetadataInconsistent( + self._ireq, + "version", + str(self._version), + str(dist.version), + ) + + def _prepare(self) -> BaseDistribution: + try: + dist = self._prepare_distribution() + except HashError as e: + # Provide HashError the underlying ireq that caused it. This + # provides context for the resulting error message to show the + # offending line to the user. + e.req = self._ireq + raise + except InstallationSubprocessError as exc: + # The output has been presented already, so don't duplicate it. + exc.context = "See above for output." + raise + + self._check_metadata_consistency(dist) + return dist + + def iter_dependencies(self, with_requires: bool) -> Iterable[Optional[Requirement]]: + requires = self.dist.iter_dependencies() if with_requires else () + for r in requires: + yield from self._factory.make_requirements_from_spec(str(r), self._ireq) + yield self._factory.make_requires_python_requirement(self.dist.requires_python) + + def get_install_requirement(self) -> Optional[InstallRequirement]: + return self._ireq + + +class LinkCandidate(_InstallRequirementBackedCandidate): + is_editable = False + + def __init__( + self, + link: Link, + template: InstallRequirement, + factory: "Factory", + name: Optional[NormalizedName] = None, + version: Optional[CandidateVersion] = None, + ) -> None: + source_link = link + cache_entry = factory.get_wheel_cache_entry(source_link, name) + if cache_entry is not None: + logger.debug("Using cached wheel link: %s", cache_entry.link) + link = cache_entry.link + ireq = make_install_req_from_link(link, template) + assert ireq.link == link + if ireq.link.is_wheel and not ireq.link.is_file: + wheel = Wheel(ireq.link.filename) + wheel_name = canonicalize_name(wheel.name) + assert name == wheel_name, f"{name!r} != {wheel_name!r} for wheel" + # Version may not be present for PEP 508 direct URLs + if version is not None: + wheel_version = Version(wheel.version) + assert version == wheel_version, "{!r} != {!r} for wheel {}".format( + version, wheel_version, name + ) + + if cache_entry is not None: + assert ireq.link.is_wheel + assert ireq.link.is_file + if cache_entry.persistent and template.link is template.original_link: + ireq.cached_wheel_source_link = source_link + if cache_entry.origin is not None: + ireq.download_info = cache_entry.origin + else: + # Legacy cache entry that does not have origin.json. + # download_info may miss the archive_info.hashes field. + ireq.download_info = direct_url_from_link( + source_link, link_is_in_wheel_cache=cache_entry.persistent + ) + + super().__init__( + link=link, + source_link=source_link, + ireq=ireq, + factory=factory, + name=name, + version=version, + ) + + def _prepare_distribution(self) -> BaseDistribution: + preparer = self._factory.preparer + return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True) + + +class EditableCandidate(_InstallRequirementBackedCandidate): + is_editable = True + + def __init__( + self, + link: Link, + template: InstallRequirement, + factory: "Factory", + name: Optional[NormalizedName] = None, + version: Optional[CandidateVersion] = None, + ) -> None: + super().__init__( + link=link, + source_link=link, + ireq=make_install_req_from_editable(link, template), + factory=factory, + name=name, + version=version, + ) + + def _prepare_distribution(self) -> BaseDistribution: + return self._factory.preparer.prepare_editable_requirement(self._ireq) + + +class AlreadyInstalledCandidate(Candidate): + is_installed = True + source_link = None + + def __init__( + self, + dist: BaseDistribution, + template: InstallRequirement, + factory: "Factory", + ) -> None: + self.dist = dist + self._ireq = _make_install_req_from_dist(dist, template) + self._factory = factory + self._version = None + + # This is just logging some messages, so we can do it eagerly. + # The returned dist would be exactly the same as self.dist because we + # set satisfied_by in _make_install_req_from_dist. + # TODO: Supply reason based on force_reinstall and upgrade_strategy. + skip_reason = "already satisfied" + factory.preparer.prepare_installed_requirement(self._ireq, skip_reason) + + def __str__(self) -> str: + return str(self.dist) + + def __repr__(self) -> str: + return "{class_name}({distribution!r})".format( + class_name=self.__class__.__name__, + distribution=self.dist, + ) + + def __hash__(self) -> int: + return hash((self.__class__, self.name, self.version)) + + def __eq__(self, other: Any) -> bool: + if isinstance(other, self.__class__): + return self.name == other.name and self.version == other.version + return False + + @property + def project_name(self) -> NormalizedName: + return self.dist.canonical_name + + @property + def name(self) -> str: + return self.project_name + + @property + def version(self) -> CandidateVersion: + if self._version is None: + self._version = self.dist.version + return self._version + + @property + def is_editable(self) -> bool: + return self.dist.editable + + def format_for_error(self) -> str: + return f"{self.name} {self.version} (Installed)" + + def iter_dependencies(self, with_requires: bool) -> Iterable[Optional[Requirement]]: + if not with_requires: + return + for r in self.dist.iter_dependencies(): + yield from self._factory.make_requirements_from_spec(str(r), self._ireq) + + def get_install_requirement(self) -> Optional[InstallRequirement]: + return None + + +class ExtrasCandidate(Candidate): + """A candidate that has 'extras', indicating additional dependencies. + + Requirements can be for a project with dependencies, something like + foo[extra]. The extras don't affect the project/version being installed + directly, but indicate that we need additional dependencies. We model that + by having an artificial ExtrasCandidate that wraps the "base" candidate. + + The ExtrasCandidate differs from the base in the following ways: + + 1. It has a unique name, of the form foo[extra]. This causes the resolver + to treat it as a separate node in the dependency graph. + 2. When we're getting the candidate's dependencies, + a) We specify that we want the extra dependencies as well. + b) We add a dependency on the base candidate. + See below for why this is needed. + 3. We return None for the underlying InstallRequirement, as the base + candidate will provide it, and we don't want to end up with duplicates. + + The dependency on the base candidate is needed so that the resolver can't + decide that it should recommend foo[extra1] version 1.0 and foo[extra2] + version 2.0. Having those candidates depend on foo=1.0 and foo=2.0 + respectively forces the resolver to recognise that this is a conflict. + """ + + def __init__( + self, + base: BaseCandidate, + extras: FrozenSet[str], + *, + comes_from: Optional[InstallRequirement] = None, + ) -> None: + """ + :param comes_from: the InstallRequirement that led to this candidate if it + differs from the base's InstallRequirement. This will often be the + case in the sense that this candidate's requirement has the extras + while the base's does not. Unlike the InstallRequirement backed + candidates, this requirement is used solely for reporting purposes, + it does not do any leg work. + """ + self.base = base + self.extras = frozenset(canonicalize_name(e) for e in extras) + # If any extras are requested in their non-normalized forms, keep track + # of their raw values. This is needed when we look up dependencies + # since PEP 685 has not been implemented for marker-matching, and using + # the non-normalized extra for lookup ensures the user can select a + # non-normalized extra in a package with its non-normalized form. + # TODO: Remove this attribute when packaging is upgraded to support the + # marker comparison logic specified in PEP 685. + self._unnormalized_extras = extras.difference(self.extras) + self._comes_from = comes_from if comes_from is not None else self.base._ireq + + def __str__(self) -> str: + name, rest = str(self.base).split(" ", 1) + return "{}[{}] {}".format(name, ",".join(self.extras), rest) + + def __repr__(self) -> str: + return "{class_name}(base={base!r}, extras={extras!r})".format( + class_name=self.__class__.__name__, + base=self.base, + extras=self.extras, + ) + + def __hash__(self) -> int: + return hash((self.base, self.extras)) + + def __eq__(self, other: Any) -> bool: + if isinstance(other, self.__class__): + return self.base == other.base and self.extras == other.extras + return False + + @property + def project_name(self) -> NormalizedName: + return self.base.project_name + + @property + def name(self) -> str: + """The normalised name of the project the candidate refers to""" + return format_name(self.base.project_name, self.extras) + + @property + def version(self) -> CandidateVersion: + return self.base.version + + def format_for_error(self) -> str: + return "{} [{}]".format( + self.base.format_for_error(), ", ".join(sorted(self.extras)) + ) + + @property + def is_installed(self) -> bool: + return self.base.is_installed + + @property + def is_editable(self) -> bool: + return self.base.is_editable + + @property + def source_link(self) -> Optional[Link]: + return self.base.source_link + + def _warn_invalid_extras( + self, + requested: FrozenSet[str], + valid: FrozenSet[str], + ) -> None: + """Emit warnings for invalid extras being requested. + + This emits a warning for each requested extra that is not in the + candidate's ``Provides-Extra`` list. + """ + invalid_extras_to_warn = frozenset( + extra + for extra in requested + if extra not in valid + # If an extra is requested in an unnormalized form, skip warning + # about the normalized form being missing. + and extra in self.extras + ) + if not invalid_extras_to_warn: + return + for extra in sorted(invalid_extras_to_warn): + logger.warning( + "%s %s does not provide the extra '%s'", + self.base.name, + self.version, + extra, + ) + + def _calculate_valid_requested_extras(self) -> FrozenSet[str]: + """Get a list of valid extras requested by this candidate. + + The user (or upstream dependant) may have specified extras that the + candidate doesn't support. Any unsupported extras are dropped, and each + cause a warning to be logged here. + """ + requested_extras = self.extras.union(self._unnormalized_extras) + valid_extras = frozenset( + extra + for extra in requested_extras + if self.base.dist.is_extra_provided(extra) + ) + self._warn_invalid_extras(requested_extras, valid_extras) + return valid_extras + + def iter_dependencies(self, with_requires: bool) -> Iterable[Optional[Requirement]]: + factory = self.base._factory + + # Add a dependency on the exact base + # (See note 2b in the class docstring) + yield factory.make_requirement_from_candidate(self.base) + if not with_requires: + return + + valid_extras = self._calculate_valid_requested_extras() + for r in self.base.dist.iter_dependencies(valid_extras): + yield from factory.make_requirements_from_spec( + str(r), + self._comes_from, + valid_extras, + ) + + def get_install_requirement(self) -> Optional[InstallRequirement]: + # We don't return anything here, because we always + # depend on the base candidate, and we'll get the + # install requirement from that. + return None + + +class RequiresPythonCandidate(Candidate): + is_installed = False + source_link = None + + def __init__(self, py_version_info: Optional[Tuple[int, ...]]) -> None: + if py_version_info is not None: + version_info = normalize_version_info(py_version_info) + else: + version_info = sys.version_info[:3] + self._version = Version(".".join(str(c) for c in version_info)) + + # We don't need to implement __eq__() and __ne__() since there is always + # only one RequiresPythonCandidate in a resolution, i.e. the host Python. + # The built-in object.__eq__() and object.__ne__() do exactly what we want. + + def __str__(self) -> str: + return f"Python {self._version}" + + @property + def project_name(self) -> NormalizedName: + return REQUIRES_PYTHON_IDENTIFIER + + @property + def name(self) -> str: + return REQUIRES_PYTHON_IDENTIFIER + + @property + def version(self) -> CandidateVersion: + return self._version + + def format_for_error(self) -> str: + return f"Python {self.version}" + + def iter_dependencies(self, with_requires: bool) -> Iterable[Optional[Requirement]]: + return () + + def get_install_requirement(self) -> Optional[InstallRequirement]: + return None diff --git a/shared/package-files/20/200d161f9eaf3176d24298a697bf2365eb353355d94870d1011bf9b4ce151934/test_minpoly.py b/shared/package-files/20/200d161f9eaf3176d24298a697bf2365eb353355d94870d1011bf9b4ce151934/test_minpoly.py new file mode 100644 index 0000000000000000000000000000000000000000..18d786e1bd10cd2c6dd8d63121ce293a5600424a --- /dev/null +++ b/shared/package-files/20/200d161f9eaf3176d24298a697bf2365eb353355d94870d1011bf9b4ce151934/test_minpoly.py @@ -0,0 +1,474 @@ +"""Tests for minimal polynomials. """ + +from sympy.core.function import expand +from sympy.core import (GoldenRatio, TribonacciConstant) +from sympy.core.numbers import (AlgebraicNumber, I, Rational, oo, pi) +from sympy.core.power import Pow +from sympy.core.singleton import S +from sympy.functions.elementary.exponential import exp +from sympy.functions.elementary.miscellaneous import (cbrt, sqrt) +from sympy.functions.elementary.trigonometric import (cos, sin, tan) +from sympy.polys.polytools import Poly +from sympy.polys.rootoftools import CRootOf +from sympy.solvers.solveset import nonlinsolve +from sympy.geometry import Circle, intersection +from sympy.testing.pytest import raises, slow +from sympy.sets.sets import FiniteSet +from sympy.geometry.point import Point2D +from sympy.polys.numberfields.minpoly import ( + minimal_polynomial, + _choose_factor, + _minpoly_op_algebraic_element, + _separate_sq, + _minpoly_groebner, +) +from sympy.polys.partfrac import apart +from sympy.polys.polyerrors import ( + NotAlgebraic, + GeneratorsError, +) + +from sympy.polys.domains import QQ +from sympy.polys.rootoftools import rootof +from sympy.polys.polytools import degree + +from sympy.abc import x, y, z + +Q = Rational + + +def test_minimal_polynomial(): + assert minimal_polynomial(-7, x) == x + 7 + assert minimal_polynomial(-1, x) == x + 1 + assert minimal_polynomial( 0, x) == x + assert minimal_polynomial( 1, x) == x - 1 + assert minimal_polynomial( 7, x) == x - 7 + + assert minimal_polynomial(sqrt(2), x) == x**2 - 2 + assert minimal_polynomial(sqrt(5), x) == x**2 - 5 + assert minimal_polynomial(sqrt(6), x) == x**2 - 6 + + assert minimal_polynomial(2*sqrt(2), x) == x**2 - 8 + assert minimal_polynomial(3*sqrt(5), x) == x**2 - 45 + assert minimal_polynomial(4*sqrt(6), x) == x**2 - 96 + + assert minimal_polynomial(2*sqrt(2) + 3, x) == x**2 - 6*x + 1 + assert minimal_polynomial(3*sqrt(5) + 6, x) == x**2 - 12*x - 9 + assert minimal_polynomial(4*sqrt(6) + 7, x) == x**2 - 14*x - 47 + + assert minimal_polynomial(2*sqrt(2) - 3, x) == x**2 + 6*x + 1 + assert minimal_polynomial(3*sqrt(5) - 6, x) == x**2 + 12*x - 9 + assert minimal_polynomial(4*sqrt(6) - 7, x) == x**2 + 14*x - 47 + + assert minimal_polynomial(sqrt(1 + sqrt(6)), x) == x**4 - 2*x**2 - 5 + assert minimal_polynomial(sqrt(I + sqrt(6)), x) == x**8 - 10*x**4 + 49 + + assert minimal_polynomial(2*I + sqrt(2 + I), x) == x**4 + 4*x**2 + 8*x + 37 + + assert minimal_polynomial(sqrt(2) + sqrt(3), x) == x**4 - 10*x**2 + 1 + assert minimal_polynomial( + sqrt(2) + sqrt(3) + sqrt(6), x) == x**4 - 22*x**2 - 48*x - 23 + + a = 1 - 9*sqrt(2) + 7*sqrt(3) + + assert minimal_polynomial( + 1/a, x) == 392*x**4 - 1232*x**3 + 612*x**2 + 4*x - 1 + assert minimal_polynomial( + 1/sqrt(a), x) == 392*x**8 - 1232*x**6 + 612*x**4 + 4*x**2 - 1 + + raises(NotAlgebraic, lambda: minimal_polynomial(oo, x)) + raises(NotAlgebraic, lambda: minimal_polynomial(2**y, x)) + raises(NotAlgebraic, lambda: minimal_polynomial(sin(1), x)) + + assert minimal_polynomial(sqrt(2)).dummy_eq(x**2 - 2) + assert minimal_polynomial(sqrt(2), x) == x**2 - 2 + + assert minimal_polynomial(sqrt(2), polys=True) == Poly(x**2 - 2) + assert minimal_polynomial(sqrt(2), x, polys=True) == Poly(x**2 - 2, domain='QQ') + assert minimal_polynomial(sqrt(2), x, polys=True, compose=False) == Poly(x**2 - 2, domain='QQ') + + a = AlgebraicNumber(sqrt(2)) + b = AlgebraicNumber(sqrt(3)) + + assert minimal_polynomial(a, x) == x**2 - 2 + assert minimal_polynomial(b, x) == x**2 - 3 + + assert minimal_polynomial(a, x, polys=True) == Poly(x**2 - 2, domain='QQ') + assert minimal_polynomial(b, x, polys=True) == Poly(x**2 - 3, domain='QQ') + + assert minimal_polynomial(sqrt(a/2 + 17), x) == 2*x**4 - 68*x**2 + 577 + assert minimal_polynomial(sqrt(b/2 + 17), x) == 4*x**4 - 136*x**2 + 1153 + + a, b = sqrt(2)/3 + 7, AlgebraicNumber(sqrt(2)/3 + 7) + + f = 81*x**8 - 2268*x**6 - 4536*x**5 + 22644*x**4 + 63216*x**3 - \ + 31608*x**2 - 189648*x + 141358 + + assert minimal_polynomial(sqrt(a) + sqrt(sqrt(a)), x) == f + assert minimal_polynomial(sqrt(b) + sqrt(sqrt(b)), x) == f + + assert minimal_polynomial( + a**Q(3, 2), x) == 729*x**4 - 506898*x**2 + 84604519 + + # issue 5994 + eq = S(''' + -1/(800*sqrt(-1/240 + 1/(18000*(-1/17280000 + + sqrt(15)*I/28800000)**(1/3)) + 2*(-1/17280000 + + sqrt(15)*I/28800000)**(1/3)))''') + assert minimal_polynomial(eq, x) == 8000*x**2 - 1 + + ex = (sqrt(5)*sqrt(I)/(5*sqrt(1 + 125*I)) + + 25*sqrt(5)/(I**Q(5,2)*(1 + 125*I)**Q(3,2)) + + 3125*sqrt(5)/(I**Q(11,2)*(1 + 125*I)**Q(3,2)) + + 5*I*sqrt(1 - I/125)) + mp = minimal_polynomial(ex, x) + assert mp == 25*x**4 + 5000*x**2 + 250016 + + ex = 1 + sqrt(2) + sqrt(3) + mp = minimal_polynomial(ex, x) + assert mp == x**4 - 4*x**3 - 4*x**2 + 16*x - 8 + + ex = 1/(1 + sqrt(2) + sqrt(3)) + mp = minimal_polynomial(ex, x) + assert mp == 8*x**4 - 16*x**3 + 4*x**2 + 4*x - 1 + + p = (expand((1 + sqrt(2) - 2*sqrt(3) + sqrt(7))**3))**Rational(1, 3) + mp = minimal_polynomial(p, x) + assert mp == x**8 - 8*x**7 - 56*x**6 + 448*x**5 + 480*x**4 - 5056*x**3 + 1984*x**2 + 7424*x - 3008 + p = expand((1 + sqrt(2) - 2*sqrt(3) + sqrt(7))**3) + mp = minimal_polynomial(p, x) + assert mp == x**8 - 512*x**7 - 118208*x**6 + 31131136*x**5 + 647362560*x**4 - 56026611712*x**3 + 116994310144*x**2 + 404854931456*x - 27216576512 + + assert minimal_polynomial(S("-sqrt(5)/2 - 1/2 + (-sqrt(5)/2 - 1/2)**2"), x) == x - 1 + a = 1 + sqrt(2) + assert minimal_polynomial((a*sqrt(2) + a)**3, x) == x**2 - 198*x + 1 + + p = 1/(1 + sqrt(2) + sqrt(3)) + assert minimal_polynomial(p, x, compose=False) == 8*x**4 - 16*x**3 + 4*x**2 + 4*x - 1 + + p = 2/(1 + sqrt(2) + sqrt(3)) + assert minimal_polynomial(p, x, compose=False) == x**4 - 4*x**3 + 2*x**2 + 4*x - 2 + + assert minimal_polynomial(1 + sqrt(2)*I, x, compose=False) == x**2 - 2*x + 3 + assert minimal_polynomial(1/(1 + sqrt(2)) + 1, x, compose=False) == x**2 - 2 + assert minimal_polynomial(sqrt(2)*I + I*(1 + sqrt(2)), x, + compose=False) == x**4 + 18*x**2 + 49 + + # minimal polynomial of I + assert minimal_polynomial(I, x, domain=QQ.algebraic_field(I)) == x - I + K = QQ.algebraic_field(I*(sqrt(2) + 1)) + assert minimal_polynomial(I, x, domain=K) == x - I + assert minimal_polynomial(I, x, domain=QQ) == x**2 + 1 + assert minimal_polynomial(I, x, domain='QQ(y)') == x**2 + 1 + + #issue 11553 + assert minimal_polynomial(GoldenRatio, x) == x**2 - x - 1 + assert minimal_polynomial(TribonacciConstant + 3, x) == x**3 - 10*x**2 + 32*x - 34 + assert minimal_polynomial(GoldenRatio, x, domain=QQ.algebraic_field(sqrt(5))) == \ + 2*x - sqrt(5) - 1 + assert minimal_polynomial(TribonacciConstant, x, domain=QQ.algebraic_field(cbrt(19 - 3*sqrt(33)))) == \ + 48*x - 19*(19 - 3*sqrt(33))**Rational(2, 3) - 3*sqrt(33)*(19 - 3*sqrt(33))**Rational(2, 3) \ + - 16*(19 - 3*sqrt(33))**Rational(1, 3) - 16 + + # AlgebraicNumber with an alias. + # Wester H24 + phi = AlgebraicNumber(S.GoldenRatio.expand(func=True), alias='phi') + assert minimal_polynomial(phi, x) == x**2 - x - 1 + + +def test_minimal_polynomial_issue_19732(): + # https://github.com/sympy/sympy/issues/19732 + expr = (-280898097948878450887044002323982963174671632174995451265117559518123750720061943079105185551006003416773064305074191140286225850817291393988597615/(-488144716373031204149459129212782509078221364279079444636386844223983756114492222145074506571622290776245390771587888364089507840000000*sqrt(238368341569)*sqrt(S(11918417078450)/63568729 + - 24411360*sqrt(238368341569)/63568729) + + 238326799225996604451373809274348704114327860564921529846705817404208077866956345381951726531296652901169111729944612727047670549086208000000*sqrt(S(11918417078450)/63568729 + - 24411360*sqrt(238368341569)/63568729)) - + 180561807339168676696180573852937120123827201075968945871075967679148461189459480842956689723484024031016208588658753107/(-59358007109636562851035004992802812513575019937126272896569856090962677491318275291141463850327474176000000*sqrt(238368341569)*sqrt(S(11918417078450)/63568729 + - 24411360*sqrt(238368341569)/63568729) + + 28980348180319251787320809875930301310576055074938369007463004788921613896002936637780993064387310446267596800000*sqrt(S(11918417078450)/63568729 + - 24411360*sqrt(238368341569)/63568729))) + poly = (2151288870990266634727173620565483054187142169311153766675688628985237817262915166497766867289157986631135400926544697981091151416655364879773546003475813114962656742744975460025956167152918469472166170500512008351638710934022160294849059721218824490226159355197136265032810944357335461128949781377875451881300105989490353140886315677977149440000000000000000000000*x**4 + - 5773274155644072033773937864114266313663195672820501581692669271302387257492905909558846459600429795784309388968498783843631580008547382703258503404023153694528041873101120067477617592651525155101107144042679962433039557235772239171616433004024998230222455940044709064078962397144550855715640331680262171410099614469231080995436488414164502751395405398078353242072696360734131090111239998110773292915337556205692674790561090109440000000000000*x**2 + + 211295968822207088328287206509522887719741955693091053353263782924470627623790749534705683380138972642560898936171035770539616881000369889020398551821767092685775598633794696371561234818461806577723412581353857653829324364446419444210520602157621008010129702779407422072249192199762604318993590841636967747488049176548615614290254356975376588506729604345612047361483789518445332415765213187893207704958013682516462853001964919444736320672860140355089) + assert minimal_polynomial(expr, x) == poly + + +def test_minimal_polynomial_hi_prec(): + p = 1/sqrt(1 - 9*sqrt(2) + 7*sqrt(3) + Rational(1, 10)**30) + mp = minimal_polynomial(p, x) + # checked with Wolfram Alpha + assert mp.coeff(x**6) == -1232000000000000000000000000001223999999999999999999999999999987999999999999999999999999999996000000000000000000000000000000 + + +def test_minimal_polynomial_sq(): + from sympy.core.add import Add + from sympy.core.function import expand_multinomial + p = expand_multinomial((1 + 5*sqrt(2) + 2*sqrt(3))**3) + mp = minimal_polynomial(p**Rational(1, 3), x) + assert mp == x**4 - 4*x**3 - 118*x**2 + 244*x + 1321 + p = expand_multinomial((1 + sqrt(2) - 2*sqrt(3) + sqrt(7))**3) + mp = minimal_polynomial(p**Rational(1, 3), x) + assert mp == x**8 - 8*x**7 - 56*x**6 + 448*x**5 + 480*x**4 - 5056*x**3 + 1984*x**2 + 7424*x - 3008 + p = Add(*[sqrt(i) for i in range(1, 12)]) + mp = minimal_polynomial(p, x) + assert mp.subs({x: 0}) == -71965773323122507776 + + +def test_minpoly_compose(): + # issue 6868 + eq = S(''' + -1/(800*sqrt(-1/240 + 1/(18000*(-1/17280000 + + sqrt(15)*I/28800000)**(1/3)) + 2*(-1/17280000 + + sqrt(15)*I/28800000)**(1/3)))''') + mp = minimal_polynomial(eq + 3, x) + assert mp == 8000*x**2 - 48000*x + 71999 + + # issue 5888 + assert minimal_polynomial(exp(I*pi/8), x) == x**8 + 1 + + mp = minimal_polynomial(sin(pi/7) + sqrt(2), x) + assert mp == 4096*x**12 - 63488*x**10 + 351488*x**8 - 826496*x**6 + \ + 770912*x**4 - 268432*x**2 + 28561 + mp = minimal_polynomial(cos(pi/7) + sqrt(2), x) + assert mp == 64*x**6 - 64*x**5 - 432*x**4 + 304*x**3 + 712*x**2 - \ + 232*x - 239 + mp = minimal_polynomial(exp(I*pi/7) + sqrt(2), x) + assert mp == x**12 - 2*x**11 - 9*x**10 + 16*x**9 + 43*x**8 - 70*x**7 - 97*x**6 + 126*x**5 + 211*x**4 - 212*x**3 - 37*x**2 + 142*x + 127 + + mp = minimal_polynomial(sin(pi/7) + sqrt(2), x) + assert mp == 4096*x**12 - 63488*x**10 + 351488*x**8 - 826496*x**6 + \ + 770912*x**4 - 268432*x**2 + 28561 + mp = minimal_polynomial(cos(pi/7) + sqrt(2), x) + assert mp == 64*x**6 - 64*x**5 - 432*x**4 + 304*x**3 + 712*x**2 - \ + 232*x - 239 + mp = minimal_polynomial(exp(I*pi/7) + sqrt(2), x) + assert mp == x**12 - 2*x**11 - 9*x**10 + 16*x**9 + 43*x**8 - 70*x**7 - 97*x**6 + 126*x**5 + 211*x**4 - 212*x**3 - 37*x**2 + 142*x + 127 + + mp = minimal_polynomial(exp(I*pi*Rational(2, 7)), x) + assert mp == x**6 + x**5 + x**4 + x**3 + x**2 + x + 1 + mp = minimal_polynomial(exp(I*pi*Rational(2, 15)), x) + assert mp == x**8 - x**7 + x**5 - x**4 + x**3 - x + 1 + mp = minimal_polynomial(cos(pi*Rational(2, 7)), x) + assert mp == 8*x**3 + 4*x**2 - 4*x - 1 + mp = minimal_polynomial(sin(pi*Rational(2, 7)), x) + ex = (5*cos(pi*Rational(2, 7)) - 7)/(9*cos(pi/7) - 5*cos(pi*Rational(3, 7))) + mp = minimal_polynomial(ex, x) + assert mp == x**3 + 2*x**2 - x - 1 + assert minimal_polynomial(-1/(2*cos(pi/7)), x) == x**3 + 2*x**2 - x - 1 + assert minimal_polynomial(sin(pi*Rational(2, 15)), x) == \ + 256*x**8 - 448*x**6 + 224*x**4 - 32*x**2 + 1 + assert minimal_polynomial(sin(pi*Rational(5, 14)), x) == 8*x**3 - 4*x**2 - 4*x + 1 + assert minimal_polynomial(cos(pi/15), x) == 16*x**4 + 8*x**3 - 16*x**2 - 8*x + 1 + + ex = rootof(x**3 +x*4 + 1, 0) + mp = minimal_polynomial(ex, x) + assert mp == x**3 + 4*x + 1 + mp = minimal_polynomial(ex + 1, x) + assert mp == x**3 - 3*x**2 + 7*x - 4 + assert minimal_polynomial(exp(I*pi/3), x) == x**2 - x + 1 + assert minimal_polynomial(exp(I*pi/4), x) == x**4 + 1 + assert minimal_polynomial(exp(I*pi/6), x) == x**4 - x**2 + 1 + assert minimal_polynomial(exp(I*pi/9), x) == x**6 - x**3 + 1 + assert minimal_polynomial(exp(I*pi/10), x) == x**8 - x**6 + x**4 - x**2 + 1 + assert minimal_polynomial(sin(pi/9), x) == 64*x**6 - 96*x**4 + 36*x**2 - 3 + assert minimal_polynomial(sin(pi/11), x) == 1024*x**10 - 2816*x**8 + \ + 2816*x**6 - 1232*x**4 + 220*x**2 - 11 + assert minimal_polynomial(sin(pi/21), x) == 4096*x**12 - 11264*x**10 + \ + 11264*x**8 - 4992*x**6 + 960*x**4 - 64*x**2 + 1 + assert minimal_polynomial(cos(pi/9), x) == 8*x**3 - 6*x - 1 + + ex = 2**Rational(1, 3)*exp(2*I*pi/3) + assert minimal_polynomial(ex, x) == x**3 - 2 + + raises(NotAlgebraic, lambda: minimal_polynomial(cos(pi*sqrt(2)), x)) + raises(NotAlgebraic, lambda: minimal_polynomial(sin(pi*sqrt(2)), x)) + raises(NotAlgebraic, lambda: minimal_polynomial(exp(1.618*I*pi), x)) + raises(NotAlgebraic, lambda: minimal_polynomial(exp(I*pi*sqrt(2)), x)) + + # issue 5934 + ex = 1/(-36000 - 7200*sqrt(5) + (12*sqrt(10)*sqrt(sqrt(5) + 5) + + 24*sqrt(10)*sqrt(-sqrt(5) + 5))**2) + 1 + raises(ZeroDivisionError, lambda: minimal_polynomial(ex, x)) + + ex = sqrt(1 + 2**Rational(1,3)) + sqrt(1 + 2**Rational(1,4)) + sqrt(2) + mp = minimal_polynomial(ex, x) + assert degree(mp) == 48 and mp.subs({x:0}) == -16630256576 + + ex = tan(pi/5, evaluate=False) + mp = minimal_polynomial(ex, x) + assert mp == x**4 - 10*x**2 + 5 + assert mp.subs(x, tan(pi/5)).is_zero + + ex = tan(pi/6, evaluate=False) + mp = minimal_polynomial(ex, x) + assert mp == 3*x**2 - 1 + assert mp.subs(x, tan(pi/6)).is_zero + + ex = tan(pi/10, evaluate=False) + mp = minimal_polynomial(ex, x) + assert mp == 5*x**4 - 10*x**2 + 1 + assert mp.subs(x, tan(pi/10)).is_zero + + raises(NotAlgebraic, lambda: minimal_polynomial(tan(pi*sqrt(2)), x)) + + +def test_minpoly_issue_7113(): + # see discussion in https://github.com/sympy/sympy/pull/2234 + from sympy.simplify.simplify import nsimplify + r = nsimplify(pi, tolerance=0.000000001) + mp = minimal_polynomial(r, x) + assert mp == 1768292677839237920489538677417507171630859375*x**109 - \ + 2734577732179183863586489182929671773182898498218854181690460140337930774573792597743853652058046464 + + +def test_minpoly_issue_23677(): + r1 = CRootOf(4000000*x**3 - 239960000*x**2 + 4782399900*x - 31663998001, 0) + r2 = CRootOf(4000000*x**3 - 239960000*x**2 + 4782399900*x - 31663998001, 1) + num = (7680000000000000000*r1**4*r2**4 - 614323200000000000000*r1**4*r2**3 + + 18458112576000000000000*r1**4*r2**2 - 246896663036160000000000*r1**4*r2 + + 1240473830323209600000000*r1**4 - 614323200000000000000*r1**3*r2**4 + - 1476464424954240000000000*r1**3*r2**2 - 99225501687553535904000000*r1**3 + + 18458112576000000000000*r1**2*r2**4 - 1476464424954240000000000*r1**2*r2**3 + - 593391458458356671712000000*r1**2*r2 + 2981354896834339226880720000*r1**2 + - 246896663036160000000000*r1*r2**4 - 593391458458356671712000000*r1*r2**2 + - 39878756418031796275267195200*r1 + 1240473830323209600000000*r2**4 + - 99225501687553535904000000*r2**3 + 2981354896834339226880720000*r2**2 - + 39878756418031796275267195200*r2 + 200361370275616536577343808012) + mp = (x**3 + 59426520028417434406408556687919*x**2 + + 1161475464966574421163316896737773190861975156439163671112508400*x + + 7467465541178623874454517208254940823818304424383315270991298807299003671748074773558707779600) + assert minimal_polynomial(num, x) == mp + + +def test_minpoly_issue_7574(): + ex = -(-1)**Rational(1, 3) + (-1)**Rational(2,3) + assert minimal_polynomial(ex, x) == x + 1 + + +def test_choose_factor(): + # Test that this does not enter an infinite loop: + bad_factors = [Poly(x-2, x), Poly(x+2, x)] + raises(NotImplementedError, lambda: _choose_factor(bad_factors, x, sqrt(3))) + + +def test_minpoly_fraction_field(): + assert minimal_polynomial(1/x, y) == -x*y + 1 + assert minimal_polynomial(1 / (x + 1), y) == (x + 1)*y - 1 + + assert minimal_polynomial(sqrt(x), y) == y**2 - x + assert minimal_polynomial(sqrt(x + 1), y) == y**2 - x - 1 + assert minimal_polynomial(sqrt(x) / x, y) == x*y**2 - 1 + assert minimal_polynomial(sqrt(2) * sqrt(x), y) == y**2 - 2 * x + assert minimal_polynomial(sqrt(2) + sqrt(x), y) == \ + y**4 + (-2*x - 4)*y**2 + x**2 - 4*x + 4 + + assert minimal_polynomial(x**Rational(1,3), y) == y**3 - x + assert minimal_polynomial(x**Rational(1,3) + sqrt(x), y) == \ + y**6 - 3*x*y**4 - 2*x*y**3 + 3*x**2*y**2 - 6*x**2*y - x**3 + x**2 + + assert minimal_polynomial(sqrt(x) / z, y) == z**2*y**2 - x + assert minimal_polynomial(sqrt(x) / (z + 1), y) == (z**2 + 2*z + 1)*y**2 - x + + assert minimal_polynomial(1/x, y, polys=True) == Poly(-x*y + 1, y, domain='ZZ(x)') + assert minimal_polynomial(1 / (x + 1), y, polys=True) == \ + Poly((x + 1)*y - 1, y, domain='ZZ(x)') + assert minimal_polynomial(sqrt(x), y, polys=True) == Poly(y**2 - x, y, domain='ZZ(x)') + assert minimal_polynomial(sqrt(x) / z, y, polys=True) == \ + Poly(z**2*y**2 - x, y, domain='ZZ(x, z)') + + # this is (sqrt(1 + x**3)/x).integrate(x).diff(x) - sqrt(1 + x**3)/x + a = sqrt(x)/sqrt(1 + x**(-3)) - sqrt(x**3 + 1)/x + 1/(x**Rational(5, 2)* \ + (1 + x**(-3))**Rational(3, 2)) + 1/(x**Rational(11, 2)*(1 + x**(-3))**Rational(3, 2)) + + assert minimal_polynomial(a, y) == y + + raises(NotAlgebraic, lambda: minimal_polynomial(exp(x), y)) + raises(GeneratorsError, lambda: minimal_polynomial(sqrt(x), x)) + raises(GeneratorsError, lambda: minimal_polynomial(sqrt(x) - y, x)) + raises(NotImplementedError, lambda: minimal_polynomial(sqrt(x), y, compose=False)) + +@slow +def test_minpoly_fraction_field_slow(): + assert minimal_polynomial(minimal_polynomial(sqrt(x**Rational(1,5) - 1), + y).subs(y, sqrt(x**Rational(1,5) - 1)), z) == z + +def test_minpoly_domain(): + assert minimal_polynomial(sqrt(2), x, domain=QQ.algebraic_field(sqrt(2))) == \ + x - sqrt(2) + assert minimal_polynomial(sqrt(8), x, domain=QQ.algebraic_field(sqrt(2))) == \ + x - 2*sqrt(2) + assert minimal_polynomial(sqrt(Rational(3,2)), x, + domain=QQ.algebraic_field(sqrt(2))) == 2*x**2 - 3 + + raises(NotAlgebraic, lambda: minimal_polynomial(y, x, domain=QQ)) + + +def test_issue_14831(): + a = -2*sqrt(2)*sqrt(12*sqrt(2) + 17) + assert minimal_polynomial(a, x) == x**2 + 16*x - 8 + e = (-3*sqrt(12*sqrt(2) + 17) + 12*sqrt(2) + + 17 - 2*sqrt(2)*sqrt(12*sqrt(2) + 17)) + assert minimal_polynomial(e, x) == x + + +def test_issue_18248(): + assert nonlinsolve([x*y**3-sqrt(2)/3, x*y**6-4/(9*(sqrt(3)))],x,y) == \ + FiniteSet((sqrt(3)/2, sqrt(6)/3), (sqrt(3)/2, -sqrt(6)/6 - sqrt(2)*I/2), + (sqrt(3)/2, -sqrt(6)/6 + sqrt(2)*I/2)) + + +def test_issue_13230(): + c1 = Circle(Point2D(3, sqrt(5)), 5) + c2 = Circle(Point2D(4, sqrt(7)), 6) + assert intersection(c1, c2) == [Point2D(-1 + (-sqrt(7) + sqrt(5))*(-2*sqrt(7)/29 + + 9*sqrt(5)/29 + sqrt(196*sqrt(35) + 1941)/29), -2*sqrt(7)/29 + 9*sqrt(5)/29 + + sqrt(196*sqrt(35) + 1941)/29), Point2D(-1 + (-sqrt(7) + sqrt(5))*(-sqrt(196*sqrt(35) + + 1941)/29 - 2*sqrt(7)/29 + 9*sqrt(5)/29), -sqrt(196*sqrt(35) + 1941)/29 - 2*sqrt(7)/29 + 9*sqrt(5)/29)] + +def test_issue_19760(): + e = 1/(sqrt(1 + sqrt(2)) - sqrt(2)*sqrt(1 + sqrt(2))) + 1 + mp_expected = x**4 - 4*x**3 + 4*x**2 - 2 + + for comp in (True, False): + mp = Poly(minimal_polynomial(e, compose=comp)) + assert mp(x) == mp_expected, "minimal_polynomial(e, compose=%s) = %s; %s expected" % (comp, mp(x), mp_expected) + + +def test_issue_20163(): + assert apart(1/(x**6+1), extension=[sqrt(3), I]) == \ + (sqrt(3) + I)/(2*x + sqrt(3) + I)/6 + \ + (sqrt(3) - I)/(2*x + sqrt(3) - I)/6 - \ + (sqrt(3) - I)/(2*x - sqrt(3) + I)/6 - \ + (sqrt(3) + I)/(2*x - sqrt(3) - I)/6 + \ + I/(x + I)/6 - I/(x - I)/6 + + +def test_issue_22559(): + alpha = AlgebraicNumber(sqrt(2)) + assert minimal_polynomial(alpha**3, x) == x**2 - 8 + + +def test_issue_22561(): + a = AlgebraicNumber(sqrt(2) + sqrt(3), [S(1) / 2, 0, S(-9) / 2, 0], gen=x) + assert a.as_expr() == sqrt(2) + assert minimal_polynomial(a, x) == x**2 - 2 + assert minimal_polynomial(a**3, x) == x**2 - 8 + + +def test_separate_sq_not_impl(): + raises(NotImplementedError, lambda: _separate_sq(x**(S(1)/3) + x)) + + +def test_minpoly_op_algebraic_element_not_impl(): + raises(NotImplementedError, + lambda: _minpoly_op_algebraic_element(Pow, sqrt(2), sqrt(3), x, QQ)) + + +def test_minpoly_groebner(): + assert _minpoly_groebner(S(2)/3, x, Poly) == 3*x - 2 + assert _minpoly_groebner( + (sqrt(2) + 3)*(sqrt(2) + 1), x, Poly) == x**2 - 10*x - 7 + assert _minpoly_groebner((sqrt(2) + 3)**(S(1)/3)*(sqrt(2) + 1)**(S(1)/3), + x, Poly) == x**6 - 10*x**3 - 7 + assert _minpoly_groebner((sqrt(2) + 3)**(-S(1)/3)*(sqrt(2) + 1)**(S(1)/3), + x, Poly) == 7*x**6 - 2*x**3 - 1 + raises(NotAlgebraic, lambda: _minpoly_groebner(pi**2, x, Poly)) diff --git a/shared/package-files/20/2014d4d5614953bf67325cc22eae3d539a1692974ca4d6c4199d1b6261591bb5/_upsample_nearest_exact1d_compositeexplicitautogradnonfunctional_dispatch.h b/shared/package-files/20/2014d4d5614953bf67325cc22eae3d539a1692974ca4d6c4199d1b6261591bb5/_upsample_nearest_exact1d_compositeexplicitautogradnonfunctional_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..4391345325b2bde57eadd4ea4931774b3dc8cfae --- /dev/null +++ b/shared/package-files/20/2014d4d5614953bf67325cc22eae3d539a1692974ca4d6c4199d1b6261591bb5/_upsample_nearest_exact1d_compositeexplicitautogradnonfunctional_dispatch.h @@ -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 _upsample_nearest_exact1d(const at::Tensor & self, at::IntArrayRef output_size, c10::optional scales=c10::nullopt); +TORCH_API at::Tensor _upsample_nearest_exact1d_symint(const at::Tensor & self, c10::SymIntArrayRef output_size, c10::optional scales=c10::nullopt); + +} // namespace compositeexplicitautogradnonfunctional +} // namespace at diff --git a/shared/package-files/20/201adaf73e8c7d6a7176208c279c9d1b0bbcfbd8b40b9469a2a61cd8c6743a87/context.h b/shared/package-files/20/201adaf73e8c7d6a7176208c279c9d1b0bbcfbd8b40b9469a2a61cd8c6743a87/context.h new file mode 100644 index 0000000000000000000000000000000000000000..bf8bb7cdef8c06cd638532c4671cd2875b7d7796 --- /dev/null +++ b/shared/package-files/20/201adaf73e8c7d6a7176208c279c9d1b0bbcfbd8b40b9469a2a61cd8c6743a87/context.h @@ -0,0 +1,174 @@ +#pragma once + +#include +#include + +#include +#include +#include +#include +#include + +namespace torch { +namespace distributed { +namespace autograd { + +class RecvRpcBackward; + +// DistAutogradContext which stores information for a single distributed +// autograd pass on a worker. +class TORCH_API DistAutogradContext { + public: + using GradCallback = std::function; + + explicit DistAutogradContext(int64_t contextId); + + // Retrieves the autograd context id for this context. + int64_t contextId() const; + + // Records a 'send' autograd function for this context with the provided + // message id. + void addSendFunction( + const std::shared_ptr& func, + int64_t autograd_message_id); + + // Records a 'recv' autograd function for this context with the provided + // message id. + void addRecvFunction( + std::shared_ptr& func, + int64_t autograd_message_id); + + // Given an autograd_message_id, retrieve the appropriate send function. + std::shared_ptr retrieveSendFunction( + int64_t autograd_message_id); + + // Return all send functions for this context. + std::unordered_map> sendFunctions() + const; + + // Return all recv functions for this context. + std::unordered_map> recvFunctions() + const; + + // Adds a future message recording an outstanding RPC. + void addOutstandingRpc(const c10::intrusive_ptr& jitFuture); + + // Returns all gradients. + const c10::Dict getGradients() const; + + // This function gives a mutable grad reference to the callback. + // If the callback returns true, it means the grad in the context + // needs to be updated. + void runGradCallbackForVariable( + const torch::autograd::Variable& variable, + GradCallback&& cb); + + DistAutogradContext(const DistAutogradContext&) = delete; + DistAutogradContext& operator=(const DistAutogradContext&) = delete; + DistAutogradContext(DistAutogradContext&&) = delete; + DistAutogradContext& operator=(DistAutogradContext&&) = delete; + + // records the workerID of a node that we sent an RPC to. + // workerIDs are added here when we attach a send function to this autograd + // context + void addKnownWorkerId(const rpc::worker_id_t workerId); + + // Retrieves a set containing the known workerIds for this context + // These are the different workers that this context has sent RPCs to. + std::unordered_set getKnownWorkerIds() const; + + private: + friend class BackwardPassCleanupGuard; + friend class DistEngine; + friend class RecvRpcBackward; + friend class DistAccumulateGradCaptureHook; + + // Record that we would like to accumulate the provided gradient on the given + // variable. + void accumulateGrad( + const torch::autograd::Variable& variable, + const torch::Tensor& grad, + size_t num_expected_refs); + + // Retrieve the GraphTask. + std::shared_ptr retrieveGraphTask(); + + // Set the appropriate graph task for the backward pass. Can be called only + // once. + void setGraphTask(std::shared_ptr graphTask); + + // Resets the graph task to ensure we can run another distributed backward + // pass for the same autograd context. + void resetGraphTask(); + + // Waits for all outstanding RPCs for this context to finish and clears all + // outstanding rpcs held in this context. This should be called only once. + c10::intrusive_ptr clearAndWaitForOutstandingRpcsAsync(); + + void clearOutstandingRpcs(); + + // Record an event to mark the completion of gradient computation. These + // events will later help to properly synchronize gradients consumptions + // in getGradients(). We need these events because backward and + // optimizer.step are separate RPC calls, and will occur on different CUDA + // streams. Without synchronization, it is possible that gradients are + // consumed before they are ready. + void recordGradEvent(c10::Device device); + + const int64_t contextId_; + + // Set containing known worker IDs, used in cleaning up autograd context. + // Whenever a sendRpcBackward is attached to the autograd graph for this + // context, the destination is added here. + std::unordered_set knownWorkerIds_; + + // Map from autograd_message_id to appropriate 'send' autograd function. + std::unordered_map> + sendAutogradFunctions_; + + // Map from autograd_message_id to appropriate 'recv' autograd function. + std::unordered_map> + recvAutogradFunctions_; + + // Gradients accumulated in this context so far. The key is the variable on + // which the gradient needs to be accumulated and the value is the gradient + // that needs to be accumulated on that variable.. + c10::Dict accumulatedGrads_; + + // See comments for recordGradEvent(c10::Device device); + std::unordered_map gradReadyEvents_; + const c10::impl::VirtualGuardImpl impl_; + + // The autograd GraphTask for the backward pass on this node for this context. + std::shared_ptr graphTask_; + + // List of futures for RPCs initiated by this node to propagate gradients to + // other nodes. The distributed autograd engine on this node can return + // successfully only if all these futures are done and are successful. + std::vector> outStandingRpcs_; + + // Lock to protect concurrent modification of the context. + mutable std::mutex lock_; +}; + +using ContextPtr = std::shared_ptr; + +// This class stores a shared_ptr to a DistAutogradContext instance in a +// thread local variable. The instance is given by the call site. The class +// doesn't know the current context. It's just a util class. +class TORCH_API ThreadLocalDistAutogradContext { + public: + // Store 'new_context' to the thread local variable maintained by this class. + explicit ThreadLocalDistAutogradContext(ContextPtr&& new_context); + ~ThreadLocalDistAutogradContext(); + + // Retrieve the stored DistAutogradContext instance. + static ContextPtr getContextPtr(); + + private: + ContextPtr prev_context_ptr_; +}; + +} // namespace autograd +} // namespace distributed +} // namespace torch diff --git a/shared/package-files/20/201d4387025000a6e13c9f631cb7fccd6e4369dec7224052f9d86feb81353a53/Adak b/shared/package-files/20/201d4387025000a6e13c9f631cb7fccd6e4369dec7224052f9d86feb81353a53/Adak new file mode 100644 index 0000000000000000000000000000000000000000..43236498f681cc06f64ca2afa613880331fe6fbb Binary files /dev/null and b/shared/package-files/20/201d4387025000a6e13c9f631cb7fccd6e4369dec7224052f9d86feb81353a53/Adak differ diff --git a/shared/package-files/20/201d4387025000a6e13c9f631cb7fccd6e4369dec7224052f9d86feb81353a53/Aleutian b/shared/package-files/20/201d4387025000a6e13c9f631cb7fccd6e4369dec7224052f9d86feb81353a53/Aleutian new file mode 100644 index 0000000000000000000000000000000000000000..43236498f681cc06f64ca2afa613880331fe6fbb Binary files /dev/null and b/shared/package-files/20/201d4387025000a6e13c9f631cb7fccd6e4369dec7224052f9d86feb81353a53/Aleutian differ diff --git a/shared/package-files/20/201d4387025000a6e13c9f631cb7fccd6e4369dec7224052f9d86feb81353a53/Atka b/shared/package-files/20/201d4387025000a6e13c9f631cb7fccd6e4369dec7224052f9d86feb81353a53/Atka new file mode 100644 index 0000000000000000000000000000000000000000..43236498f681cc06f64ca2afa613880331fe6fbb Binary files /dev/null and b/shared/package-files/20/201d4387025000a6e13c9f631cb7fccd6e4369dec7224052f9d86feb81353a53/Atka differ diff --git a/shared/package-files/20/2031d1410acffbe4daa8d7f8e6b33ea169c3ad236b3d404f018cf0d80dfcdf9f/PsdImagePlugin.py b/shared/package-files/20/2031d1410acffbe4daa8d7f8e6b33ea169c3ad236b3d404f018cf0d80dfcdf9f/PsdImagePlugin.py new file mode 100644 index 0000000000000000000000000000000000000000..5cff564137db2930c3e638f4fa7026963ec285aa --- /dev/null +++ b/shared/package-files/20/2031d1410acffbe4daa8d7f8e6b33ea169c3ad236b3d404f018cf0d80dfcdf9f/PsdImagePlugin.py @@ -0,0 +1,307 @@ +# +# The Python Imaging Library +# $Id$ +# +# Adobe PSD 2.5/3.0 file handling +# +# History: +# 1995-09-01 fl Created +# 1997-01-03 fl Read most PSD images +# 1997-01-18 fl Fixed P and CMYK support +# 2001-10-21 fl Added seek/tell support (for layers) +# +# Copyright (c) 1997-2001 by Secret Labs AB. +# Copyright (c) 1995-2001 by Fredrik Lundh +# +# See the README file for information on usage and redistribution. +# +from __future__ import annotations + +import io + +from . import Image, ImageFile, ImagePalette +from ._binary import i8 +from ._binary import i16be as i16 +from ._binary import i32be as i32 +from ._binary import si16be as si16 + +MODES = { + # (photoshop mode, bits) -> (pil mode, required channels) + (0, 1): ("1", 1), + (0, 8): ("L", 1), + (1, 8): ("L", 1), + (2, 8): ("P", 1), + (3, 8): ("RGB", 3), + (4, 8): ("CMYK", 4), + (7, 8): ("L", 1), # FIXME: multilayer + (8, 8): ("L", 1), # duotone + (9, 8): ("LAB", 3), +} + + +# --------------------------------------------------------------------. +# read PSD images + + +def _accept(prefix): + return prefix[:4] == b"8BPS" + + +## +# Image plugin for Photoshop images. + + +class PsdImageFile(ImageFile.ImageFile): + format = "PSD" + format_description = "Adobe Photoshop" + _close_exclusive_fp_after_loading = False + + def _open(self): + read = self.fp.read + + # + # header + + s = read(26) + if not _accept(s) or i16(s, 4) != 1: + msg = "not a PSD file" + raise SyntaxError(msg) + + psd_bits = i16(s, 22) + psd_channels = i16(s, 12) + psd_mode = i16(s, 24) + + mode, channels = MODES[(psd_mode, psd_bits)] + + if channels > psd_channels: + msg = "not enough channels" + raise OSError(msg) + if mode == "RGB" and psd_channels == 4: + mode = "RGBA" + channels = 4 + + self._mode = mode + self._size = i32(s, 18), i32(s, 14) + + # + # color mode data + + size = i32(read(4)) + if size: + data = read(size) + if mode == "P" and size == 768: + self.palette = ImagePalette.raw("RGB;L", data) + + # + # image resources + + self.resources = [] + + size = i32(read(4)) + if size: + # load resources + end = self.fp.tell() + size + while self.fp.tell() < end: + read(4) # signature + id = i16(read(2)) + name = read(i8(read(1))) + if not (len(name) & 1): + read(1) # padding + data = read(i32(read(4))) + if len(data) & 1: + read(1) # padding + self.resources.append((id, name, data)) + if id == 1039: # ICC profile + self.info["icc_profile"] = data + + # + # layer and mask information + + self.layers = [] + + size = i32(read(4)) + if size: + end = self.fp.tell() + size + size = i32(read(4)) + if size: + _layer_data = io.BytesIO(ImageFile._safe_read(self.fp, size)) + self.layers = _layerinfo(_layer_data, size) + self.fp.seek(end) + self.n_frames = len(self.layers) + self.is_animated = self.n_frames > 1 + + # + # image descriptor + + self.tile = _maketile(self.fp, mode, (0, 0) + self.size, channels) + + # keep the file open + self._fp = self.fp + self.frame = 1 + self._min_frame = 1 + + def seek(self, layer): + if not self._seek_check(layer): + return + + # seek to given layer (1..max) + try: + name, mode, bbox, tile = self.layers[layer - 1] + self._mode = mode + self.tile = tile + self.frame = layer + self.fp = self._fp + return name, bbox + except IndexError as e: + msg = "no such layer" + raise EOFError(msg) from e + + def tell(self): + # return layer number (0=image, 1..max=layers) + return self.frame + + +def _layerinfo(fp, ct_bytes): + # read layerinfo block + layers = [] + + def read(size): + return ImageFile._safe_read(fp, size) + + ct = si16(read(2)) + + # sanity check + if ct_bytes < (abs(ct) * 20): + msg = "Layer block too short for number of layers requested" + raise SyntaxError(msg) + + for _ in range(abs(ct)): + # bounding box + y0 = i32(read(4)) + x0 = i32(read(4)) + y1 = i32(read(4)) + x1 = i32(read(4)) + + # image info + mode = [] + ct_types = i16(read(2)) + types = list(range(ct_types)) + if len(types) > 4: + fp.seek(len(types) * 6 + 12, io.SEEK_CUR) + size = i32(read(4)) + fp.seek(size, io.SEEK_CUR) + continue + + for _ in types: + type = i16(read(2)) + + if type == 65535: + m = "A" + else: + m = "RGBA"[type] + + mode.append(m) + read(4) # size + + # figure out the image mode + mode.sort() + if mode == ["R"]: + mode = "L" + elif mode == ["B", "G", "R"]: + mode = "RGB" + elif mode == ["A", "B", "G", "R"]: + mode = "RGBA" + else: + mode = None # unknown + + # skip over blend flags and extra information + read(12) # filler + name = "" + size = i32(read(4)) # length of the extra data field + if size: + data_end = fp.tell() + size + + length = i32(read(4)) + if length: + fp.seek(length - 16, io.SEEK_CUR) + + length = i32(read(4)) + if length: + fp.seek(length, io.SEEK_CUR) + + length = i8(read(1)) + if length: + # Don't know the proper encoding, + # Latin-1 should be a good guess + name = read(length).decode("latin-1", "replace") + + fp.seek(data_end) + layers.append((name, mode, (x0, y0, x1, y1))) + + # get tiles + for i, (name, mode, bbox) in enumerate(layers): + tile = [] + for m in mode: + t = _maketile(fp, m, bbox, 1) + if t: + tile.extend(t) + layers[i] = name, mode, bbox, tile + + return layers + + +def _maketile(file, mode, bbox, channels): + tile = None + read = file.read + + compression = i16(read(2)) + + xsize = bbox[2] - bbox[0] + ysize = bbox[3] - bbox[1] + + offset = file.tell() + + if compression == 0: + # + # raw compression + tile = [] + for channel in range(channels): + layer = mode[channel] + if mode == "CMYK": + layer += ";I" + tile.append(("raw", bbox, offset, layer)) + offset = offset + xsize * ysize + + elif compression == 1: + # + # packbits compression + i = 0 + tile = [] + bytecount = read(channels * ysize * 2) + offset = file.tell() + for channel in range(channels): + layer = mode[channel] + if mode == "CMYK": + layer += ";I" + tile.append(("packbits", bbox, offset, layer)) + for y in range(ysize): + offset = offset + i16(bytecount, i) + i += 2 + + file.seek(offset) + + if offset & 1: + read(1) # padding + + return tile + + +# -------------------------------------------------------------------- +# registry + + +Image.register_open(PsdImageFile.format, PsdImageFile, _accept) + +Image.register_extension(PsdImageFile.format, ".psd") + +Image.register_mime(PsdImageFile.format, "image/vnd.adobe.photoshop") diff --git a/shared/package-files/20/2041fe4b4b11b040b5fbef165142b493f84dffb39ed940a286ed2da5f0c49951/avatar0+ b/shared/package-files/20/2041fe4b4b11b040b5fbef165142b493f84dffb39ed940a286ed2da5f0c49951/avatar0+ new file mode 100644 index 0000000000000000000000000000000000000000..664cd0de5856aa896acd822e270d0dfbe765c7b8 Binary files /dev/null and b/shared/package-files/20/2041fe4b4b11b040b5fbef165142b493f84dffb39ed940a286ed2da5f0c49951/avatar0+ differ diff --git a/shared/package-files/20/2044abd4e8c0643f62760d4e816ccc7de5764ad6b4f11d2e1cb01bc1e9634c3e/python_message.pyi b/shared/package-files/20/2044abd4e8c0643f62760d4e816ccc7de5764ad6b4f11d2e1cb01bc1e9634c3e/python_message.pyi new file mode 100644 index 0000000000000000000000000000000000000000..538d70b447efb9d60a0f389dd283bb0008bd0af6 --- /dev/null +++ b/shared/package-files/20/2044abd4e8c0643f62760d4e816ccc7de5764ad6b4f11d2e1cb01bc1e9634c3e/python_message.pyi @@ -0,0 +1 @@ +class GeneratedProtocolMessageType(type): ... diff --git a/shared/package-files/20/20466f0291773932ff3b50126093a3ca998be8b3b4aca946e2ca42255f47543e/dist_autograd_test.py b/shared/package-files/20/20466f0291773932ff3b50126093a3ca998be8b3b4aca946e2ca42255f47543e/dist_autograd_test.py new file mode 100644 index 0000000000000000000000000000000000000000..3e8927933374a4612a3536cae71af7ce18608480 --- /dev/null +++ b/shared/package-files/20/20466f0291773932ff3b50126093a3ca998be8b3b4aca946e2ca42255f47543e/dist_autograd_test.py @@ -0,0 +1,2783 @@ +# mypy: ignore-errors + +import sys +import threading +import time +from enum import Enum +import random +import torch +import torch.nn as nn +from datetime import timedelta +import torch.distributed as dist +import torch.distributed.autograd as dist_autograd +import torch.distributed.rpc as rpc +import torch.testing._internal.dist_utils +from torch.autograd import Function +from torch.autograd.function import once_differentiable +from torch.distributed.rpc import RRef +from torch.testing._internal.common_utils import IS_MACOS, skip_but_pass_in_sandcastle_if +from torch.testing._internal.dist_utils import ( + dist_init, + initialize_pg, + wait_until_node_failure, + worker_name, +) +from torch.testing._internal.distributed.rpc.rpc_agent_test_fixture import ( + RpcAgentTestFixture, +) +from torch.testing._internal.common_distributed import skip_if_lt_x_gpu + + +# Right now we test up to 3-layer nested rpc calls. +# rpc_done[1] and ctx_ids[1] represent rpc is done in prev rank, and context id +# sent from prev rank respectively. +# rpc_done[2] and ctx_ids[2] represents for prev of prev rank. +# rpc_done[3] and ctx_ids[3] represents for prev of prev of prev rank. +# rpc_done[0] and ctx_ids[0] represents for current rank, but mostly not used. +rpc_done = [False, False, False, False] +ctx_ids = [-1, -1, -1, -1] + +known_context_ids = set() + +requires_grad_tensor = torch.ones(3, 3, requires_grad=True) + +# Send rpc done info and context_id to +# dst_rank = (self.rank + rank_distance) % self.world_size +# we don't need a lock here since the GIL is held while executing remote +# python UDFs, so access is serialized across several workers. +def _set_rpc_done(ctx_id, rank_distance): + global rpc_done + global ctx_ids + global known_context_ids + rpc_done[rank_distance] = True + ctx_ids[rank_distance] = ctx_id + known_context_ids.add(ctx_id) + + +def _check_rpc_done(rank_distance): + while not rpc_done[rank_distance]: + time.sleep(0.1) + + +def _torch_ones(sizes, requires_grad=False): + return torch.ones(sizes, requires_grad=requires_grad) + +# This method must be called on the rref owner, and verifies that the grad of +# rref tensor equals to the given grad. +def _compare_owner_value(context_id, rref, grad): + grads = dist_autograd.get_gradients(context_id) + x = grads[rref.local_value()] + if x.is_sparse: + assert grad.is_sparse + x = x.to_dense() + grad = grad.to_dense() + else: + assert not grad.is_sparse + return torch.equal(x, grad) + + +def create_tensor(): + return torch.ones((3, 3), requires_grad=True) + + +def build_sparse_tensor(coalesce=False, requires_grad=True, dtype=torch.float32): + i = [[0, 1, 1], [2, 0, 2]] + v = [3.2, 4.1, 5.3] + tensor = torch.sparse_coo_tensor( + i, v, (3, 3), requires_grad=requires_grad, dtype=dtype + ) + if coalesce: + tensor = tensor.coalesce() + return tensor + + +@torch.jit.script +def create_torchscript_tensor() -> torch.Tensor: + return torch.ones((3, 3)).requires_grad_() + + +def my_py_add(t1, t2): + return torch.add(t1, t2) + + +def my_scalar_add(a, b): + return a + b + + +def my_rref_add(rref_t1, t2): + ret = torch.add(rref_t1.local_value(), t2) + return ret + + +@torch.jit.script +def my_script_add(t1, t2): + return torch.add(t1, t2) + + +@torch.jit.script +def my_script_ref_add(ref_t1: RRef[torch.Tensor], t2: torch.Tensor) -> torch.Tensor: + t1 = ref_t1.to_here() + return torch.add(t1, t2) + + +def my_nested_rref_add(dst, rref_t1, t2): + return rpc.rpc_sync(dst, my_rref_add, args=(rref_t1, t2)) + + +def ret_requires_grad(): + return requires_grad_tensor + + +def my_py_nested_call(t1, t2, dst, world_size, hops): + next_dst = (dst + 1) % world_size + if hops > 0: + return rpc.rpc_sync( + worker_name(next_dst), + my_py_nested_call, + args=(t1, t2, next_dst, world_size, hops - 1), + ) + else: + return rpc.rpc_sync(worker_name(next_dst), my_py_add, args=(t1, t2)) + + +# after dist autograd context is cleaned up, it should be cleaned up on other +# nodes. This helper allows timeout_seconds for those RPCs to be completed, and +# ensures that all the contexts have been cleaned up in that timeframe.any +def _all_contexts_cleaned_up(timeout_seconds=10): + global known_context_ids + start = time.time() + context_id_to_raised = set() + while ( + time.time() - start < timeout_seconds + and context_id_to_raised != known_context_ids + ): + for context_id in known_context_ids: + try: + dist_autograd._retrieve_context(context_id) + except RuntimeError: + context_id_to_raised.add(context_id) + # all contexts have been cleaned up if trying to retrieve any context resulted in a RuntimeError. + success = context_id_to_raised == known_context_ids + return success + + +# This function creates a dis autograd context, run rpc_sync on the given ps, +# and then blocks until the ps has verified the grads are correctly accumulated. +def _run_trainer(rref_t1, t2, ps, rank_diff, sparse): + with dist_autograd.context() as context_id: + ret = rpc.rpc_sync(ps, my_rref_add, args=(rref_t1, t2)) + if sparse: + loss = torch.sparse.sum(ret) + else: + loss = ret.sum() + dist_autograd.backward(context_id, [loss]) + # prevent deleting dist autograd context + rpc.rpc_sync(ps, _set_rpc_done, args=(context_id, rank_diff)) + rpc.rpc_sync(ps, _check_rpc_done, args=(0,)) + +# This function is the same as _run_trainer, except rpc calls torchscript +# function "my_script_ref_add" instead of python function "my_rref_add" +def _run_trainer_torchscript(rref_t1, t2, ps, rank_diff, sparse): + with dist_autograd.context() as context_id: + ret = rpc.rpc_sync(ps, my_script_ref_add, args=(rref_t1, t2)) + if sparse: + loss = torch.sparse.sum(ret) + else: + loss = ret.sum() + dist_autograd.backward(context_id, [loss]) + # prevent deleting dist autograd context + rpc.rpc_sync(ps, _set_rpc_done, args=(context_id, rank_diff)) + rpc.rpc_sync(ps, _check_rpc_done, args=(0,)) + + +class SimulateBackwardError(Function): + _simulate_error = True + + @staticmethod + def forward(ctx, input): + return input + + @staticmethod + @once_differentiable + def backward(ctx, input): + if SimulateBackwardError._simulate_error: + raise Exception("Simulate error on backward pass") + else: + return input + + +class ExecMode(Enum): + LOCAL = 1 # Run the operation locally. + RPC_SYNC = 2 # Run the operation using rpc_sync + REMOTE = 3 # Run the operation using remote. + RPC_ASYNC = 4 # Run the operation using rpc_async + + +# Common utils for both CPU and CUDA test suites +class CommonDistAutogradTest(RpcAgentTestFixture): + def _exec_func_with_dst(self, dst, exec_mode, method, *args): + if ExecMode.LOCAL == exec_mode: + if len(args) == 1 and isinstance(args[0], list): + return method(*args[0]) + return method(*args) + elif ExecMode.RPC_SYNC == exec_mode: + return rpc.rpc_sync(worker_name(dst), method, args=(args)) + elif ExecMode.REMOTE == exec_mode: + return rpc.remote(worker_name(dst), method, args=(args)).to_here() + elif ExecMode.RPC_ASYNC == exec_mode: + fut = rpc.rpc_async(worker_name(dst), method, args=(args)) + return fut.wait() + else: + raise ValueError(f"Unrecognized ExecMode {exec_mode}") + + def _exec_func(self, exec_mode, method, *args): + return self._exec_func_with_dst( + self._next_rank(), exec_mode, method, *args + ) + + def _next_rank(self): + if hasattr(self, "dst_rank"): + self.dst_rank = (self.dst_rank + 1) % self.world_size + if self.dst_rank == self.rank: + return self._next_rank() + else: + self.dst_rank = (self.rank + 1) % self.world_size + return self.dst_rank + + def _check_rpc_done(self, rank_distance): + _check_rpc_done(rank_distance) + + def _verify_backwards(self, exec_mode, tensors, context_id, local_grads, *args): + if exec_mode == ExecMode.LOCAL: + torch.autograd.backward(tensors) + return [arg.grad for arg in args] + else: + self._verify_backwards_remote(tensors, context_id, local_grads, *args) + + def _verify_backwards_remote(self, tensors, context_id, local_grads, *args): + dist_autograd.backward(context_id, tensors) + + # Verify grads were accumulated appropriately. + grads = dist_autograd.get_gradients(context_id) + nargs = len(args) + ngrads = 0 + for i in range(0, nargs): + if local_grads[i] is not None: + self.assertIn(args[i], grads) + self.assertEqual(local_grads[i], grads[args[i]]) + ngrads += 1 + else: + self.assertNotIn(args[i], grads) + + self.assertEqual(ngrads, len(grads)) + + def _test_graph(self, fn, exec_mode, sparse): + dst_rank = (self.rank + 1) % self.world_size + + initialize_pg(self.file_init_method, self.rank, self.world_size) + + with dist_autograd.context() as context_id: + if sparse: + t1 = build_sparse_tensor() + t2 = build_sparse_tensor() + else: + t1 = torch.ones(3, 3, requires_grad=True) + t2 = torch.zeros(3, 3, requires_grad=True) + if ExecMode.RPC_SYNC == exec_mode: + ret = rpc.rpc_sync(worker_name(dst_rank), fn, args=(t1, t2)) + elif ExecMode.REMOTE == exec_mode: + ret = rpc.remote( + worker_name(dst_rank), fn, args=(t1, t2) + ).to_here() + else: + raise ValueError(f"Unrecognized ExecMode {exec_mode}") + + rpc.rpc_sync( + worker_name(dst_rank), _set_rpc_done, args=(context_id, 1) + ) + + # Verify graph for current context id. + ctx = dist_autograd._current_context() + self.assertEqual(context_id, ctx._context_id()) + send_functions = ctx._send_functions() + self.assertEqual(1, len(send_functions)) + recv_functions = ctx._recv_functions() + self.assertEqual(1, len(recv_functions)) + self._verify_graph_for_first_rpc_call( + next(iter(send_functions.values())), + next(iter(recv_functions.values())), + t1, + t2, + ret, + ) + + # Wait for the prev rank to be done with rpc. + self._check_rpc_done(1) + # Verify graph for previous context id. + ctx = dist_autograd._retrieve_context(ctx_ids[1]) + send_functions = ctx._send_functions() + self.assertEqual(1, len(send_functions)) + self._verify_graph_for_rpc_call_exec(next(iter(send_functions.values()))) + # this barrier is needed so one worker does not clean up their + # autograd context before another worker tries to access it. + dist.barrier() + + # autograd context should be cleaned up by now. + with self.assertRaises(RuntimeError): + ctx = dist_autograd._retrieve_context(context_id) + + # No autograd context available. + with self.assertRaises(RuntimeError): + ctx = dist_autograd._current_context() + + # 3-layer nested calls + def _test_graph_for_py_nested_call(self, exec_mode, sparse): + dst_rank = (self.rank + 1) % self.world_size + + initialize_pg(self.file_init_method, self.rank, self.world_size) + + with dist_autograd.context() as context_id: + if sparse: + t1 = build_sparse_tensor(requires_grad=True) + t2 = build_sparse_tensor(requires_grad=True) + else: + t1 = torch.ones(3, 3, requires_grad=True) + t2 = torch.zeros(3, 3, requires_grad=True) + nest_dst_rank = (dst_rank + 1) % self.world_size + if ExecMode.RPC_SYNC == exec_mode: + ret = rpc.rpc_sync( + worker_name(dst_rank), + my_py_nested_call, + args=(t1, t2, dst_rank, self.world_size, 1), + ) + elif ExecMode.REMOTE == exec_mode: + ret = rpc.remote( + worker_name(dst_rank), + my_py_nested_call, + args=(t1, t2, dst_rank, self.world_size, 1), + ).to_here() + else: + raise ValueError(f"Unrecognized ExecMode {exec_mode}") + + # Barrier to ensure all RPCs are done. + dist.barrier() + + for rd in [1, 2, 3]: + rpc.rpc_sync( + worker_name((self.rank + rd) % self.world_size), + _set_rpc_done, + args=(context_id, rd), + ) + + # Barrier to ensure all set_rpc_done have completed. + dist.barrier() + + # For self.rank, it has 4 graphs to verify + # One is for current context id when this rank send first rpc call. + # Second one is for prev context id when this rank make 1st nested + # call. + # Third one is for prev prev context id when this rank make + # 2nd nested call. + # Last one is for prev prev prev context id when this rank + # execute the torch.add() operator. + + # Verify first graph for current context id. + ctx = dist_autograd._current_context() + self.assertEqual(context_id, ctx._context_id()) + send_functions = ctx._send_functions() + self.assertEqual(1, len(send_functions)) + recv_functions = ctx._recv_functions() + self.assertEqual(1, len(recv_functions)) + self._verify_graph_for_first_rpc_call( + next(iter(send_functions.values())), + next(iter(recv_functions.values())), + t1, + t2, + ret, + ) + + # Verify second graph for 1st nested call. + ctx = dist_autograd._retrieve_context(ctx_ids[1]) + self._verify_graph_for_nested_rpc_call(ctx) + + # Verify third graph for 2nd nested call. + ctx = dist_autograd._retrieve_context(ctx_ids[2]) + self._verify_graph_for_nested_rpc_call(ctx) + + # verify last graph for rpc call execution. + ctx = dist_autograd._retrieve_context(ctx_ids[3]) + send_functions = ctx._send_functions() + self.assertEqual(1, len(send_functions)) + self._verify_graph_for_rpc_call_exec(next(iter(send_functions.values()))) + # this barrier is needed so one worker does not clean up their + # autograd context before another worker tries to access it. + dist.barrier() + + # Rank0->Rank1->Rank0 + def _test_graph_for_py_nested_call_itself(self, exec_mode, sparse): + dst_rank = (self.rank + 1) % self.world_size + + initialize_pg(self.file_init_method, self.rank, self.world_size) + + with dist_autograd.context() as context_id: + if sparse: + t1 = build_sparse_tensor(requires_grad=True) + t2 = build_sparse_tensor(requires_grad=True) + else: + t1 = torch.ones(3, 3, requires_grad=True) + t2 = torch.zeros(3, 3, requires_grad=True) + if ExecMode.RPC_SYNC == exec_mode: + ret = rpc.rpc_sync( + worker_name(dst_rank), + my_py_nested_call, + args=( + t1, + t2, + (self.rank - 1 + self.world_size) % self.world_size, + self.world_size, + 0, + ), + ) + elif ExecMode.REMOTE == exec_mode: + ret = rpc.remote( + worker_name(dst_rank), + my_py_nested_call, + args=( + t1, + t2, + (self.rank - 1 + self.world_size) % self.world_size, + self.world_size, + 0, + ), + ).to_here() + else: + raise ValueError(f"Unrecognized ExecMode {exec_mode}") + + rpc.rpc_sync( + worker_name((self.rank + 1) % self.world_size), + _set_rpc_done, + args=(context_id, 1), + ) + + # For self.rank, it has 2 graphs to verify. + # One is for current context id when this rank send first rpc + # call and execute the torch.add() operator. + # Another one is for prev context id when this rank make + # nested call. + ctx = dist_autograd._current_context() + self.assertEqual(context_id, ctx._context_id()) + send_functions = ctx._send_functions() + self.assertEqual(2, len(send_functions)) + recv_functions = ctx._recv_functions() + self.assertEqual(2, len(recv_functions)) + self._verify_graph_for_first_rpc_call( + next(iter(send_functions.values())), + list(recv_functions.values())[1], + t1, + t2, + ret, + ) + self._verify_graph_for_rpc_call_exec(list(send_functions.values())[1]) + + # Verify two pairs of send and recv functions for nested + # call + self._check_rpc_done(1) + ctx = dist_autograd._retrieve_context(ctx_ids[1]) + self._verify_graph_for_nested_rpc_call(ctx) + # this barrier is needed so one worker does not clean up their + # autograd context before another worker tries to access it. + dist.barrier() + + def _test_no_graph_with_tensors_not_require_grad(self, exec_mode, sparse): + initialize_pg(self.file_init_method, self.rank, self.world_size) + dst_rank = (self.rank + 1) % self.world_size + with dist_autograd.context() as context_id: + if sparse: + t1 = build_sparse_tensor(requires_grad=False) + t2 = build_sparse_tensor(requires_grad=False) + else: + t1 = torch.ones(3, 3, requires_grad=False) + t2 = torch.zeros(3, 3, requires_grad=False) + if ExecMode.RPC_SYNC == exec_mode: + ret = rpc.rpc_sync( + worker_name(dst_rank), torch.add, args=(t1, t2) + ) + elif ExecMode.REMOTE == exec_mode: + ret = rpc.remote( + worker_name(dst_rank), torch.add, args=(t1, t2) + ).to_here() + else: + raise ValueError(f"Unrecognized ExecMode {exec_mode}") + + rpc.rpc_sync( + worker_name(dst_rank), _set_rpc_done, args=(context_id, 1) + ) + + ctx = dist_autograd._current_context() + send_functions = ctx._send_functions() + self.assertEqual(len(send_functions), 0) + recv_functions = ctx._recv_functions() + self.assertEqual(len(recv_functions), 0) + + # Wait for the prev rank to be done with rpc. + self._check_rpc_done(1) + # NB: RRef.to_here() always passes the autograd context to the + # the callee, as the caller does not know whether the return + # value would contain a requires_grad tensor or not. + # + # rpc/remote with udf (_set_rpc_done here) also always passes the + # autograd context to the callee due to the same reason. + self.assertNotEqual(-1, dist_autograd._retrieve_context(ctx_ids[1])) + dist.barrier() + + def _test_rpc_complex_args(self, exec_mode, sparse): + with dist_autograd.context() as context_id: + num_tensors = 10 + tensors = [] + for i in range(num_tensors): + if sparse: + tensor = build_sparse_tensor(requires_grad=(i % 2 == 0)) + else: + tensor = torch.ones(3, 3, requires_grad=(i % 2 == 0)) + tensors.append(tensor) + dst_rank = self._next_rank() + if ExecMode.RPC_SYNC == exec_mode: + ret = rpc.rpc_sync( + worker_name(dst_rank), torch.stack, args=(tensors,) + ) + elif ExecMode.REMOTE == exec_mode: + ret = rpc.remote( + worker_name(dst_rank), torch.stack, args=(tensors,) + ).to_here() + else: + raise ValueError(f"Unrecognized ExecMode {exec_mode}") + + self.assertEqual(torch.stack(tensors), ret) + + # Verify appropriate tensors have been attached the autograd graph. + next_funcs = next(iter(dist_autograd._current_context()._send_functions().values())).next_functions + idx = 0 + for i in range(len(next_funcs)): + self.assertEqual( + "torch::autograd::AccumulateGrad", next_funcs[i][0].name() + ) + self.assertEqual(tensors[i], next_funcs[i][0].variable) + + # Verify that the worker id has been recorded in the context + ctx = dist_autograd._current_context() + worker_ids = ctx._known_worker_ids() + self.assertEqual(len(worker_ids), 1) + self.assertEqual(worker_ids, {dst_rank}) + + def context_cleanup_test_helper(self, rpc_args, func, nested=False): + initialize_pg(self.file_init_method, self.rank, self.world_size) + + # test that in dist autograd, in the case that tensors communicated over RPC do + # NOT require grad, we still cleanup the dist autograd contexts created + # on other nodes. This is because the autograd context is still + # communicated over RPC even if tensor arguments do not require grad, as + # it is possible that the response could. + if nested: + dst_rank = (self.rank + 1) % self.world_size + nested_dst_rank = (dst_rank + 1) % self.world_size + dst_ranks = {dst_rank} + else: + dst_ranks = {rank for rank in range(self.world_size) if rank != self.rank} + + with dist_autograd.context() as context_id: + for dst_rank in dst_ranks: + rpc.rpc_sync(worker_name(dst_rank), func, args=rpc_args) + rpc.rpc_sync( + worker_name(dst_rank), _set_rpc_done, args=(context_id, 1) + ) + if nested: + rpc.rpc_sync( + worker_name(nested_dst_rank), + _set_rpc_done, + args=(context_id, 2), + ) + # the thread's context id should be cleaned up + with self.assertRaises(RuntimeError): + dist_autograd._retrieve_context(context_id) + # Ensure all peers have finished mutating the + # `known_context_ids` set. + dist.barrier() + # check that all contexts have been cleaned up. + success = _all_contexts_cleaned_up() + self.assertTrue(success) + + def _backward_no_grad_on_tensor(self, t1, t2, sparse): + with dist_autograd.context() as context_id: + loss = rpc.rpc_sync( + worker_name(self._next_rank()), + torch.add, + args=(t1, t2)) + if sparse: + loss = torch.sparse.sum(loss) + else: + loss = loss.sum() + dist_autograd.backward(context_id, [loss], retain_graph=True) + self.assertIsNone(t1.grad) + self.assertIsNone(t2.grad) + + # Now populate .grad with local autograd engine and + # verify dist autograd doesn't mess with it. + loss_local = torch.add(t1, t2) + if sparse: + loss_local = torch.sparse.sum(loss_local) + else: + loss_local = loss_local.sum() + loss_local.backward() + self.assertIsNotNone(t1.grad) + self.assertIsNotNone(t2.grad) + + t1_grad_before = t1.grad + t2_grad_before = t2.grad + dist_autograd.backward(context_id, [loss]) + self.assertEqual(t1_grad_before, t1.grad) + self.assertEqual(t2_grad_before, t2.grad) + + # The current rank first creates a tensor on the rref_owner, and then passes + # the rref with another tensor to the callee to run either my_rref_add or + # my_nested_rref_add, depending on whether the callee is the rref owner. + # The grad of tensor lives on the current rank, and the grad of the rref + # tensor lives on the rref owner. + def _backward_rref(self, callee, rref_owner, t1, t2, local_grads, sparse): + local_ret = torch.add(t1, t2) + if sparse: + local_ret = torch.sparse.sum(local_ret) + else: + local_ret = local_ret.sum() + local_ret.backward() + with dist_autograd.context() as context_id: + if sparse: + rref_t1 = rpc.remote( + rref_owner, build_sparse_tensor, args=(False, True,) + ) + else: + rref_t1 = rpc.remote( + rref_owner, _torch_ones, args=((3, 3),), kwargs={"requires_grad": True} + ) + if callee == rref_owner: + rref = rpc.remote(callee, my_rref_add, args=(rref_t1, t2)) + else: + rref = rpc.remote( + callee, my_nested_rref_add, args=(rref_owner, rref_t1, t2) + ) + ret = rref.to_here() + if sparse: + ret = torch.sparse.sum(ret) + else: + ret = ret.sum() + dist_autograd.backward(context_id, [ret]) + + # verify grads on caller + grads = dist_autograd.get_gradients(context_id) + self.assertIn(t2, grads) + self.assertEqual(grads[t2], t2.grad) + + # verify grads on rref owner + self.assertTrue( + rpc.rpc_sync( + rref_owner, + _compare_owner_value, + args=(context_id, rref_t1, t1.grad), + ) + ) + + # In this test, every rank will serve as a parameter server (ps) and a + # driver, and then kicks off trainers on the other three ranks. So, we have: + # ps = rank0 with trainers = rank1/2/3 + # ps = rank2 with trainers = rank2/3/0 + # ps = rank3 with trainers = rank3/0/1 + # ps = rank4 with trainers = rank0/1/2 + # + # These four test ps-trainer groups run on completely separate autograd + # graphs, but they share the same set of underlying RpcAgents. + def _test_trainer_ps(self, create_ref_fn, trainer_fn, sparse): + if sparse: + t1 = build_sparse_tensor(requires_grad=True) + t2 = build_sparse_tensor(requires_grad=True) + else: + t1 = torch.ones((3, 3), requires_grad=True) + t2 = torch.zeros((3, 3), requires_grad=True) + + local_ret = torch.add(t1, t2) + if sparse: + torch.sparse.sum(local_ret).backward() + else: + local_ret.sum().backward() + + # create rref on self + rref_t1 = rpc.remote( + worker_name(self.rank), + create_ref_fn, + args=()) + + # kick off forward and backward pass on three other workers (trainers) + rank_diffs = [1, 2, 3] + futures = [] + for rank_diff in rank_diffs: + futures.append( + rpc.rpc_async( + worker_name((self.rank + rank_diff) % self.world_size), + trainer_fn, + args=(rref_t1, t2, worker_name(self.rank), rank_diff, sparse), + ) + ) + + # check if the trainers have done with their backward pass + for rank_diff in rank_diffs: + self._check_rpc_done(rank_diff) + + # trainers are done and holding the context for verification + accumulate_grad_func = None + for rank_diff in rank_diffs: + # make sure grads are accumulated for the same tensors and values + # are all correct + ctx_id = ctx_ids[rank_diff] + grads = dist_autograd.get_gradients(ctx_id) + local_t1 = rref_t1.to_here() + self.assertIn(local_t1, grads) + self.assertEqual(grads[local_t1], t1.grad) + + # unblock trainers + _set_rpc_done(None, 0) + + # wait until all trainers are done + torch.futures.wait_all(futures) + + def _backward_multiple_round_trips(self, t1, t2, t3, t4, t5, local_grads, sparse): + for exec_mode in [ExecMode.LOCAL, ExecMode.RPC_SYNC, ExecMode.REMOTE]: + with dist_autograd.context() as context_id: + # Multiple RPCs between different nodes. + val = self._exec_func(exec_mode, torch.add, t1, t2) + val = self._exec_func(exec_mode, torch.mul, t3, val) + s1 = self._exec_func(exec_mode, torch.stack, (t4, val)) + s2 = self._exec_func(exec_mode, torch.stack, (t5, val)) + if sparse: + val = self._exec_func(exec_mode, torch.mul, s1, s2) + val = self._exec_func(exec_mode, torch.mul, val, val) + loss = torch.sparse.sum(val) + else: + val = self._exec_func(exec_mode, torch.bmm, s1, s2) + val = self._exec_func(exec_mode, torch.matmul, val, val) + loss = val.sum() + + ret = self._verify_backwards( + exec_mode, [loss], context_id, local_grads, t1, t2, t3, t4, t5 + ) + local_grads = ret if ret else local_grads + + def _backward_different_dtypes(self, t1, t2, sparse): + local_grads = None + for exec_mode in [ExecMode.LOCAL, ExecMode.REMOTE]: + with dist_autograd.context() as context_id: + loss = self._exec_func(exec_mode, torch.add, t1, t2) + if sparse: + loss = torch.sparse.sum(loss) + else: + loss = loss.sum() + local_grads = self._verify_backwards( + exec_mode, [loss], context_id, local_grads, t1, t2 + ) + + # Run the same code locally and with dist autograd and verify gradients + # are same. + def _backward_simple_python_udf(self, t1, t2, sparse): + local_grads = None + for exec_mode in [ExecMode.LOCAL, ExecMode.REMOTE]: + with dist_autograd.context() as context_id: + ret = self._exec_func(exec_mode, my_py_add, t1, t2) + if sparse: + loss = torch.sparse.sum(ret) + else: + loss = ret.sum() + local_grads = self._verify_backwards( + exec_mode, [loss], context_id, local_grads, t1, t2 + ) + + # Run the same code locally and with dist autograd and verify gradients + # are same. + def _backward_simple_script_call(self, t1, t2, sparse): + local_grads = None + for exec_mode in [ + ExecMode.LOCAL, + ExecMode.RPC_SYNC, + ExecMode.RPC_ASYNC, + ExecMode.REMOTE, + ]: + with dist_autograd.context() as context_id: + forward_ret = self._exec_func(exec_mode, my_script_add, t1, t2) + if sparse: + loss = torch.sparse.sum(forward_ret) + else: + loss = forward_ret.sum() + ret = self._verify_backwards( + exec_mode, [loss], context_id, local_grads, t1, t2 + ) + local_grads = ret if ret else local_grads + + def _nested_backward_accumulate_grads(self, t1, t2, sparse): + with dist_autograd.context() as context_id: + ret = rpc.rpc_sync( + worker_name(self._next_rank()), + DistAutogradTest._test_nested_backward_accumulate_grads, + args=(t1, t2, self._next_rank()), + ) + if sparse: + loss = torch.sparse.sum(ret) + else: + loss = ret.sum() + # Run backward twice. + dist_autograd.backward(context_id, [loss], retain_graph=True) + dist_autograd.backward(context_id, [loss]) + + def _backwards_nested_python_udf(self, t1, t2, sparse): + t3 = t1 * t2 + t4 = t1 + t2 + res = t3 + t4 + loss = t1 * t2 * t3 * t4 * res + if sparse: + loss = torch.sparse.sum(loss) + else: + loss = loss.sum() + torch.autograd.backward([loss]) + + # Now run distributed autograd. + with dist_autograd.context() as context_id: + loss = rpc.rpc_sync( + worker_name(self._next_rank()), + DistAutogradTest._nested_python_udf, + args=(t1, t2, self._next_rank()), + ) + if sparse: + loss = torch.sparse.sum(loss) + else: + loss = loss.sum() + dist_autograd.backward(context_id, [loss]) + grads = dist_autograd.get_gradients(context_id) + self.assertEqual(t1.grad, grads[t1]) + self.assertEqual(t2.grad, grads[t2]) + + def _mixed_requires_grad(self, t1, t2, sparse): + for exec_mode in [ExecMode.RPC_SYNC, ExecMode.REMOTE]: + with dist_autograd.context() as context_id: + ret = self._exec_func( + exec_mode, DistAutogradTest._mixed_requires_grad_operaton, t1, t2 + ) + self.assertEqual(t1 * t2, ret) + if sparse: + loss = torch.sparse.sum(ret) + else: + loss = ret.sum() + dist_autograd.backward(context_id, [loss]) + self.assertTrue(t1.requires_grad) + self.assertFalse(t2.requires_grad) + grads = dist_autograd.get_gradients(context_id) + self.assertIn(t1, grads) + self.assertNotIn(t2, grads) + self.assertEqual(t2, grads[t1]) + + def _multiple_backward(self, t1, t2, sparse): + with dist_autograd.context() as context_id: + loss = rpc.rpc_sync( + worker_name(self._next_rank()), + torch.add, + args=(t1, t2)) + if sparse: + loss = torch.sparse.sum(loss) + else: + loss = loss.sum() + # Run backward in a loop multiple times. + for i in range(1000): + dist_autograd.backward(context_id, [loss], retain_graph=True) + + # For current context, this rank sends t1 and t2 tensors to dst_rank, + # then get t3 = torch.add(t1, t2) result tensor. + # For the current context in this rank, it expects graph like this: + # send function: + # rpcSendBackward + # / \ + # t1.AccumulateGrad t2.AccumulateGrad + # + # recv function: + # + # | + # t3.rpcRecvBackward + # + def _verify_graph_for_first_rpc_call( + self, send_function, recv_function, t1, t2, ret + ): + # Retrieve the next functions in the graph. + next_funcs = send_function.next_functions + self.assertEqual(2, len(next_funcs)) + + # We should now hit t1 and t2 in the autograd graph. + self.assertEqual("torch::autograd::AccumulateGrad", next_funcs[0][0].name()) + self.assertEqual(t1, next_funcs[0][0].variable) + self.assertEqual(0, next_funcs[0][1]) + self.assertEqual("torch::autograd::AccumulateGrad", next_funcs[1][0].name()) + self.assertEqual(t2, next_funcs[1][0].variable) + self.assertEqual(0, next_funcs[1][1]) + + # Test recv functions. + self.assertEqual(ret.grad_fn, recv_function) + + # Run the same code locally and with dist autograd and verify gradients + # are same. + def _backward_simple(self, dst, t1, t2, local_grads, sparse): + for exec_mode in [ExecMode.LOCAL, ExecMode.RPC_SYNC, ExecMode.REMOTE]: + with dist_autograd.context() as context_id: + ret = self._exec_func_with_dst( + dst, exec_mode, torch.add, t1, t2 + ) + if sparse: + loss = torch.sparse.sum(ret) + else: + loss = ret.sum() + ret = self._verify_backwards( + exec_mode, [loss], context_id, local_grads, t1, t2 + ) + local_grads = ret if ret else local_grads + + # For a context passed from previous nested chain calls, this rank + # receives two tensors t1 and t2, executes torch.add(t1, t2) and sends + # result tensor t3 back. + # For this context in this rank, it expects graph like this: + # send and recv functions: + # rpcSendBackward + # | + # t3.AddBackward0 + # / \ + # t1.recvRpcBackward t2.recvRpcBackward + def _verify_graph_for_rpc_call_exec(self, send_function): + # Verify next function is AddBackward0 + next_funcs = send_function.next_functions + self.assertEqual(1, len(next_funcs)) + add_backward_fn = next_funcs[0][0] + self.assertEqual("AddBackward0", add_backward_fn.name()) + + # Verify the next two functions are the same recv backward function. + next_funcs = add_backward_fn.next_functions + self.assertEqual(2, len(next_funcs)) + self.assertEqual( + "torch::distributed::autograd::RecvRpcBackward", next_funcs[0][0].name() + ) + self.assertEqual( + "torch::distributed::autograd::RecvRpcBackward", next_funcs[1][0].name() + ) + self.assertEqual(next_funcs[0][0], next_funcs[1][0]) + + # For a context passed from previous nested chain calls, this rank + # receives two tensors t1 and t2, forwards t1 and t2 tensors using + # nested rpc call to next dst. In return route, receive result tensor t3 + # from next dst and forwarding t3 back to previous calls. + # For this context in this rank, it expects graph like this: + # send and recv functions for receiving and forwarding t1 and t2: + # rpcSendBackward + # / \ + # t1.recvRpcBackward t2.recvRpcBackward + # send and recv functions for receiving and forwarding t3: + # rpcSendBackward + # | + # t3.recvRpcBackward + def _verify_graph_for_nested_rpc_call(self, ctx): + send_functions = ctx._send_functions() + self.assertEqual(2, len(send_functions)) + + # For send function when making nest rpc call, + # next functions of the send function are two recv functions + # for received two tensors from previous call + next_funcs = next(iter(send_functions.values())).next_functions + self.assertEqual(2, len(next_funcs)) + self.assertEqual( + "torch::distributed::autograd::RecvRpcBackward", next_funcs[0][0].name() + ) + self.assertEqual( + "torch::distributed::autograd::RecvRpcBackward", next_funcs[1][0].name() + ) + self.assertEqual(next_funcs[0][0], next_funcs[1][0]) + + # For send function when returning response to previous call + # next function of the send function is the recv function + # for received tensor result returned from nested call + next_funcs = list(send_functions.values())[1].next_functions + self.assertEqual(1, len(next_funcs)) + self.assertEqual( + "torch::distributed::autograd::RecvRpcBackward", next_funcs[0][0].name() + ) + + +class TensorPipeAgentDistAutogradTest(CommonDistAutogradTest): + + # Sparse tests only work with TensorPipeAgent. + @dist_init + def test_graph_for_builtin_call_sparse(self): + self._test_graph(torch.add, ExecMode.RPC_SYNC, True) + + @dist_init + def test_graph_for_python_call_sparse(self): + self._test_graph(my_py_add, ExecMode.RPC_SYNC, True) + + @dist_init + def test_graph_for_builtin_remote_call_sparse(self): + self._test_graph(torch.add, ExecMode.REMOTE, True) + + @dist_init + def test_graph_for_python_remote_call_sparse(self): + self._test_graph(my_py_add, ExecMode.REMOTE, True) + + @dist_init + def test_graph_for_py_nested_call_sparse(self): + self._test_graph_for_py_nested_call(ExecMode.RPC_SYNC, True) + + @dist_init + def test_graph_for_py_nested_remote_call_sparse(self): + self._test_graph_for_py_nested_call(ExecMode.REMOTE, True) + + @dist_init + def test_graph_for_py_nested_call_itself_sparse(self): + self._test_graph_for_py_nested_call_itself(ExecMode.RPC_SYNC, True) + + @dist_init + def test_graph_for_py_nested_remote_call_itself_sparse(self): + self._test_graph_for_py_nested_call_itself(ExecMode.REMOTE, True) + + @dist_init + def test_no_graph_with_tensors_not_require_grad_sparse(self): + self._test_no_graph_with_tensors_not_require_grad(ExecMode.RPC_SYNC, True) + + @dist_init + def test_no_graph_with_tensors_not_require_grad_remote_sparse(self): + self._test_no_graph_with_tensors_not_require_grad(ExecMode.REMOTE, True) + + @dist_init + def test_rpc_complex_args_sparse(self): + self._test_rpc_complex_args(ExecMode.RPC_SYNC, True) + + @dist_init + def test_remote_complex_args_sparse(self): + self._test_rpc_complex_args(ExecMode.REMOTE, True) + + @dist_init + def test_context_cleanup_tensor_with_grad_sparse(self): + t1 = build_sparse_tensor(requires_grad=True) + t2 = build_sparse_tensor(requires_grad=True) + self.context_cleanup_test_helper(rpc_args=(t1, t2), func=torch.add) + + @dist_init + def test_context_cleanup_tensor_no_grad_sparse(self): + t1 = build_sparse_tensor(requires_grad=False) + self.context_cleanup_test_helper(rpc_args=(t1, t1), func=torch.add) + + @dist_init + def test_context_cleanup_nested_rpc_sparse(self): + t1 = build_sparse_tensor(requires_grad=True) + t2 = build_sparse_tensor(requires_grad=True) + dst_rank = (self.rank + 1) % self.world_size + args = (t1, t2, dst_rank, self.world_size, 0) + self.context_cleanup_test_helper( + rpc_args=args, func=my_py_nested_call, nested=True + ) + + @dist_init + def test_backward_no_grad_on_tensor_sparse(self): + self._backward_no_grad_on_tensor( + build_sparse_tensor(requires_grad=True), + build_sparse_tensor(requires_grad=True), + True + ) + + @dist_init + def test_backward_simple_sparse(self): + self._backward_simple( + self._next_rank(), + build_sparse_tensor(requires_grad=True), + build_sparse_tensor(requires_grad=True), + None, + True + ) + + @dist_init + def test_backward_simple_self_sparse(self): + self._backward_simple( + self.rank, + build_sparse_tensor(requires_grad=True), + build_sparse_tensor(requires_grad=True), + None, + True + ) + + @dist_init + def test_backward_rref_multi_sparse(self): + if self.rank > 0: + callee = "worker0" + rref_owner = callee + self._backward_rref( + callee, + rref_owner, + build_sparse_tensor(requires_grad=True), + build_sparse_tensor(requires_grad=True), + None, + True + ) + + @dist_init + def test_backward_rref_sparse(self): + callee = worker_name(self._next_rank()) + rref_owner = callee + self._backward_rref( + callee, + rref_owner, + build_sparse_tensor(requires_grad=True), + build_sparse_tensor(requires_grad=True), + None, + True + ) + + @dist_init + def test_backward_rref_nested_sparse(self): + callee = worker_name((self.rank + 1) % self.world_size) + rref_owner = worker_name((self.rank + 2) % self.world_size) + self._backward_rref( + callee, + rref_owner, + build_sparse_tensor(requires_grad=True), + build_sparse_tensor(requires_grad=True), + None, + True + ) + + @dist_init + def test_trainer_ps_sparse(self): + self._test_trainer_ps( + build_sparse_tensor, + _run_trainer, + True + ) + + @dist_init + def test_backward_multiple_round_trips_sparse(self): + self._backward_multiple_round_trips( + build_sparse_tensor(requires_grad=True), + build_sparse_tensor(requires_grad=False), + build_sparse_tensor(requires_grad=True), + build_sparse_tensor(requires_grad=False), + build_sparse_tensor(requires_grad=True), + None, + True + ) + + @dist_init + def test_backward_different_dtypes_sparse(self): + self._backward_different_dtypes( + build_sparse_tensor(requires_grad=True, dtype=torch.float32), + build_sparse_tensor(requires_grad=True, dtype=torch.float64), + True + ) + + @dist_init + def test_backward_simple_python_udf_sparse(self): + self._backward_simple_python_udf( + build_sparse_tensor(requires_grad=True), + build_sparse_tensor(requires_grad=True), + True + ) + + @dist_init + def test_backward_simple_script_call_sparse(self): + self._backward_simple_script_call( + build_sparse_tensor(requires_grad=True), + build_sparse_tensor(requires_grad=True), + True + ) + + @dist_init + def test_nested_backward_accumulate_grads_sparse(self): + self._nested_backward_accumulate_grads( + build_sparse_tensor(requires_grad=True), + build_sparse_tensor(requires_grad=True), + True + ) + + @dist_init + def test_backwards_nested_python_udf_sparse(self): + # Run equivalent of _nested_python_udf locally. + self._backwards_nested_python_udf( + build_sparse_tensor(requires_grad=True), + build_sparse_tensor(requires_grad=True), + True + ) + + @dist_init + def test_mixed_requires_grad_sparse(self): + self._mixed_requires_grad( + build_sparse_tensor(requires_grad=True), + build_sparse_tensor(requires_grad=False), + True + ) + + @dist_init + def test_multiple_backward_sparse(self): + self._multiple_backward( + build_sparse_tensor(requires_grad=True), + build_sparse_tensor(requires_grad=True), + True + ) + + @dist_init + def test_embedding_bag_with_no_grad_tensors(self): + dst = self._next_rank() + remote_embedding = rpc.remote( + worker_name(dst), + torch.nn.EmbeddingBag, + args=(16, 16), + kwargs={"mode": "sum", "sparse": True}, + ) + local_embedding = torch.nn.EmbeddingBag(16, 16, mode="sum", sparse=True) + + input = torch.LongTensor([1, 2, 4, 5, 4, 3, 2, 9]) + # requires_grad = True to record send/recv functions + per_sample_weights = torch.rand((8), requires_grad=True) + offsets = torch.LongTensor([0, 4]) + + local_res = local_embedding(input, offsets, per_sample_weights) + + # Run backward twice. + torch.autograd.backward([local_res.sum()], retain_graph=True) + torch.autograd.backward([local_res.sum()]) + local_grad = local_embedding.weight.grad + + with dist_autograd.context() as context_id: + res = rpc.rpc_sync( + worker_name(dst), + DistAutogradTest._call_remote_embedding, + args=(remote_embedding, input, offsets, per_sample_weights), + ) + + # Run backward twice to test accumulation of sparse gradients. + dist_autograd.backward(context_id, [res.sum()], retain_graph=True) + dist_autograd.backward(context_id, [res.sum()]) + + remote_grad = rpc.rpc_sync( + worker_name(dst), + DistAutogradTest._get_grad, + args=(remote_embedding, context_id), + ) + + self.assertEqual(local_grad, remote_grad) + + +class DistAutogradTest(CommonDistAutogradTest): + @dist_init + def test_autograd_context(self): + # Verify max possible id. + max_auto_increment = 281474976710655 + self.assertEqual( + max_auto_increment + (self.worker_id << 48), dist_autograd._get_max_id() + ) + + context_ids = [] + for i in range(200): + with dist_autograd.context() as context_id: + self.assertEqual( + context_id, + dist_autograd._retrieve_context(context_id)._context_id(), + ) + # First 16 bits should be worker_id. + self.assertEqual(self.worker_id, context_id >> 48) + context_ids.append(context_id) + + for context_id in context_ids: + with self.assertRaisesRegex( + RuntimeError, + f"Could not find autograd context with id: {context_id}", + ): + dist_autograd._retrieve_context(context_id) + + @dist_init + def test_nested_context(self): + with dist_autograd.context() as context_id: + # Nested contexts not supported. + with self.assertRaisesRegex( + RuntimeError, "Already have an autograd context id for this thread" + ): + with dist_autograd.context() as context_id: + pass + + @dist_init + def test_graph_for_builtin_call(self): + self._test_graph(torch.add, ExecMode.RPC_SYNC, False) + + @dist_init + def test_graph_for_python_call(self): + self._test_graph(my_py_add, ExecMode.RPC_SYNC, False) + + @dist_init + def test_graph_for_builtin_remote_call(self): + self._test_graph(torch.add, ExecMode.REMOTE, False) + + @dist_init + def test_graph_for_python_remote_call(self): + self._test_graph(my_py_add, ExecMode.REMOTE, False) + + @dist_init + def test_graph_for_py_nested_call(self): + self._test_graph_for_py_nested_call(ExecMode.RPC_SYNC, False) + + @dist_init + def test_graph_for_py_nested_remote_call(self): + self._test_graph_for_py_nested_call(ExecMode.REMOTE, False) + + @dist_init + def test_graph_for_py_nested_call_itself(self): + self._test_graph_for_py_nested_call_itself(ExecMode.RPC_SYNC, False) + + @dist_init + def test_graph_for_py_nested_remote_call_itself(self): + self._test_graph_for_py_nested_call_itself(ExecMode.REMOTE, False) + + @dist_init + def test_no_graph_with_tensors_not_require_grad(self): + self._test_no_graph_with_tensors_not_require_grad(ExecMode.RPC_SYNC, False) + + @dist_init + def test_no_graph_with_tensors_not_require_grad_remote(self): + self._test_no_graph_with_tensors_not_require_grad(ExecMode.REMOTE, False) + + def _test_grad_only_on_return_value(self, exec_mode): + initialize_pg(self.file_init_method, self.rank, self.world_size) + dst_rank = (self.rank + 1) % self.world_size + with dist_autograd.context() as context_id: + if ExecMode.RPC_SYNC == exec_mode: + ret = rpc.rpc_sync(worker_name(dst_rank), ret_requires_grad) + elif ExecMode.REMOTE == exec_mode: + ret = rpc.remote( + worker_name(dst_rank), ret_requires_grad + ).to_here() + else: + raise ValueError(f"Unrecognized ExecMode {exec_mode}") + + dist_autograd.backward(context_id, [ret.sum()]) + + rpc.rpc_sync( + worker_name(dst_rank), _set_rpc_done, args=(context_id, 1) + ) + + # Wait for the prev rank to be done with rpc. + self._check_rpc_done(1) + grads = dist_autograd.get_gradients(ctx_ids[1]) + self.assertEqual(1, len(grads)) + self.assertIn(requires_grad_tensor, grads) + self.assertEqual(torch.ones_like(ret), grads[requires_grad_tensor]) + # due to the above get_gradients call, ensure that dist autograd + # contexts aren't cleaned up until all workers exit context managers + dist.barrier() + + @dist_init + def test_grad_only_on_return_value(self): + self._test_grad_only_on_return_value(ExecMode.RPC_SYNC) + + @dist_init + def test_grad_only_on_return_value_remote(self): + self._test_grad_only_on_return_value(ExecMode.REMOTE) + + @dist_init + def test_rpc_complex_args(self): + self._test_rpc_complex_args(ExecMode.RPC_SYNC, False) + + @dist_init + def test_remote_complex_args(self): + self._test_rpc_complex_args(ExecMode.REMOTE, False) + + @dist_init + def test_context_cleanup_tensor_with_grad(self): + t1 = torch.ones(3, 3, requires_grad=True) + t2 = torch.zeros(3, 3, requires_grad=True) + self.context_cleanup_test_helper(rpc_args=(t1, t2), func=torch.add) + + @dist_init + def test_context_cleanup_tensor_no_grad(self): + t1 = torch.ones(3, 3, requires_grad=False) + self.context_cleanup_test_helper(rpc_args=(t1, t1), func=torch.add) + + @dist_init + def test_context_cleanup_no_tensors(self): + self.context_cleanup_test_helper(rpc_args=(1, 1), func=my_scalar_add) + + @dist_init + def test_context_cleanup_nested_rpc(self): + t1 = torch.ones(3, 3, requires_grad=True) + t2 = torch.zeros(3, 3, requires_grad=True) + dst_rank = (self.rank + 1) % self.world_size + args = (t1, t2, dst_rank, self.world_size, 0) + self.context_cleanup_test_helper( + rpc_args=args, func=my_py_nested_call, nested=True + ) + + @dist_init + def test_worker_ids_recorded(self): + dst_ranks = {rank for rank in range(self.world_size) if rank != self.rank} + with dist_autograd.context() as context_id: + # if no tensors require grad, we should still record worker_ids, as + # the autograd context ID is still passed to other workers. + t1 = torch.ones(3, 3, requires_grad=False) + t2 = torch.zeros(3, 3, requires_grad=False) + for dst_rank in dst_ranks: + rpc.rpc_sync(worker_name(dst_rank), torch.add, args=(t1, t2)) + rpc.rpc_sync( + worker_name(dst_rank), _set_rpc_done, args=(context_id, 1) + ) + # all worker_ids in dst_ranks should be recorded. + ctx = dist_autograd._current_context() + worker_ids = ctx._known_worker_ids() + self.assertEqual(worker_ids, dst_ranks) + + # worker_ids should be recorded when tensors do require grad + t1.requires_grad = True + t2.requires_grad = True + for dst_rank in dst_ranks: + ret = rpc.rpc_sync( + worker_name(dst_rank), torch.add, args=(t1, t2) + ) + rpc.rpc_sync( + worker_name(dst_rank), _set_rpc_done, args=(context_id, 1) + ) + # all worker_ids in dst_ranks should be recorded. + worker_ids = ctx._known_worker_ids() + self.assertEqual(worker_ids, dst_ranks) + + @dist_init + def test_dist_autograd_profiling(self): + with dist_autograd.context() as context_id: + t1 = torch.rand(3, 3, requires_grad=True) + t2 = torch.rand(3, 3, requires_grad=True) + loss = rpc.rpc_sync(worker_name(self._next_rank()), torch.add, args=(t1, t2)).sum() + with torch.autograd.profiler.profile() as p: + dist_autograd.backward(context_id, [loss]) + + function_events = p.function_events + + def get_event(partial_key): + return next(event for event in function_events if partial_key in event.name) + + send_event = get_event("SendRpcBackward") + recv_event = get_event("RecvRpcBackward") + backward_event = get_event("torch::distributed::autograd::backward") + # There should be at least 1 send and recv_events each, corresponding to send/recv functions executed. + self.assertEqual(send_event.count, 1) + self.assertEqual(recv_event.count, 1) + # The CPU total for backward event should be great than send and recv, since + # applying those functions in the backwards pass is a subset of the entire backward pass. + self.assertGreater(backward_event.cpu_time_total, send_event.cpu_time_total) + self.assertGreater(backward_event.cpu_time_total, recv_event.cpu_time_total) + + @dist_init + def test_error_in_context(self): + with dist_autograd.context() as context_id: + t1 = torch.rand(3, 3, requires_grad=True) + t2 = torch.rand(6, 6, requires_grad=True) + + with self.assertRaises(RuntimeError): + # This should throw an error since matrix sizes don't match. + rpc.rpc_sync( + worker_name(self._next_rank()), torch.matmul, args=(t1, t2) + ) + + @dist_init + def test_backward_no_grad_on_tensor(self): + self._backward_no_grad_on_tensor( + torch.rand((3, 3), requires_grad=True), + torch.rand((3, 3), requires_grad=True), + False + ) + + @dist_init + def test_backward_simple(self): + self._backward_simple( + self._next_rank(), + torch.rand((3, 3), requires_grad=True), + torch.rand((3, 3), requires_grad=True), + None, + False + ) + + @dist_init + def test_backward_simple_self(self): + self._backward_simple( + self.rank, + torch.rand((3, 3), requires_grad=True), + torch.rand((3, 3), requires_grad=True), + None, + False + ) + + @dist_init + def test_backward_rref(self): + callee = worker_name(self._next_rank()) + rref_owner = callee + self._backward_rref( + callee, + rref_owner, + torch.rand((3, 3), requires_grad=True), + torch.rand((3, 3), requires_grad=True), + None, + False + ) + + @dist_init + def test_backward_rref_multi(self): + if self.rank > 0: + callee = "worker0" + rref_owner = callee + self._backward_rref( + callee, + rref_owner, + torch.rand((3, 3), requires_grad=True), + torch.rand((3, 3), requires_grad=True), + None, + False + ) + + @dist_init + def test_backward_rref_nested(self): + callee = worker_name((self.rank + 1) % self.world_size) + rref_owner = worker_name((self.rank + 2) % self.world_size) + self._backward_rref( + callee, + rref_owner, + torch.rand((3, 3), requires_grad=True), + torch.rand((3, 3), requires_grad=True), + None, + False + ) + + @dist_init + def test_trainer_ps(self): + self._test_trainer_ps( + create_tensor, + _run_trainer, + False + ) + + @dist_init + def test_trainer_ps_torchscript_functions(self): + # TODO, need more investigation + # there is rref leak when shutting down, suspect it is because + # ref as arg is passed to pybind boundary, and the ref is not garbage + # collected by python when calling shutdown() + import torch.distributed.rpc.api as api + api._ignore_rref_leak = True + + self._test_trainer_ps(create_torchscript_tensor, _run_trainer_torchscript, False) + + @dist_init + def test_backward_multiple_round_trips(self): + self._backward_multiple_round_trips( + torch.rand((3, 3), requires_grad=True), + torch.rand((3, 3)), + torch.rand((3, 3), requires_grad=True), + torch.rand((3, 3)), + torch.rand((3, 3), requires_grad=True), + None, + False + ) + + @dist_init + def test_backward_different_tensor_dims(self): + local_grads = None + t1 = torch.rand((4, 6), requires_grad=True) + t2 = torch.rand((6, 5)) + t3 = torch.rand((5, 7), requires_grad=True) + t4 = torch.rand((7, 9)) + + for exec_mode in [ExecMode.LOCAL, ExecMode.RPC_SYNC, ExecMode.REMOTE]: + with dist_autograd.context() as context_id: + val = self._exec_func(exec_mode, torch.matmul, t1, t2) + val = self._exec_func(exec_mode, torch.linalg.multi_dot, (val, t3, t4)) + loss = val.sum() + + ret = self._verify_backwards( + exec_mode, [loss], context_id, local_grads, t1, t2, t2, t3, t4 + ) + local_grads = ret if ret else local_grads + + @dist_init + def test_backward_unused_tensors(self): + local_grads = None + t1 = torch.rand((3, 3), requires_grad=True) + t2 = torch.rand((3, 3), requires_grad=True) + t3 = torch.rand((3, 3), requires_grad=True) + for exec_mode in [ExecMode.LOCAL, ExecMode.RPC_SYNC, ExecMode.REMOTE]: + with dist_autograd.context() as context_id: + s = self._exec_func(exec_mode, torch.stack, (t1, t2, t3)) + val = self._exec_func( + exec_mode, + torch.matmul, + torch.narrow(s, 0, 0, 1), + torch.narrow(s, 0, 2, 1), + ) + + loss = val.sum() + ret = self._verify_backwards( + exec_mode, [loss], context_id, local_grads, t1, t2, t3 + ) + local_grads = ret if ret else local_grads + + @dist_init + def test_backward_multiple_output_tensors(self): + local_grads = None + t = torch.rand((10, 2), requires_grad=True) + for exec_mode in [ExecMode.LOCAL, ExecMode.RPC_SYNC, ExecMode.REMOTE]: + with dist_autograd.context() as context_id: + tensor_list = self._exec_func(exec_mode, torch.split, t, 2) + t1 = tensor_list[0] + t2 = tensor_list[2] + t3 = tensor_list[4] + + val = self._exec_func(exec_mode, torch.linalg.multi_dot, (t1, t2, t3)) + + loss = val.sum() + ret = self._verify_backwards( + exec_mode, [loss], context_id, local_grads, t + ) + local_grads = ret if ret else local_grads + + def _run_test_backward_unused_send_function_in_thread(self): + with dist_autograd.context() as context_id: + t1 = torch.rand((3, 3), requires_grad=True) + t2 = torch.rand((3, 3), requires_grad=True) + + # We don't use the result of an RPC function, as a result the + # backward pass would hang in the "FAST" mode. + res = rpc.rpc_sync( + worker_name(self._next_rank()), torch.add, args=(t1, t2) + ) + + val = torch.mul(t1, t2) + + # Run backward, this would hang forever. + dist_autograd.backward(context_id, [val.sum()]) + + @dist_init + def test_backward_unused_send_function(self): + # Run the test in a thread which would never finish. + t = threading.Thread( + target=self._run_test_backward_unused_send_function_in_thread + ) + t.daemon = True + t.start() + t.join(10) # Wait for 10s. + + # Verify thread is still alive (indicating backward hasn't completed yet). + self.assertTrue(t.is_alive()) + + @dist_init + def test_backward_autograd_engine_error(self): + with dist_autograd.context() as context_id: + t1 = torch.rand((3, 3), requires_grad=True) + t2 = torch.rand((3, 3), requires_grad=True) + # Perform some ops before error simulation. + tmp = (t1 + t2) * (t1 + t2) + t3 = SimulateBackwardError.apply(tmp) + + # Run multiple round trips across different nodes and verify the + # original node receives an error thrown on a node deep in the chain. + val = rpc.rpc_sync( + worker_name(self._next_rank()), torch.add, args=(t2, t3) + ) + val = rpc.rpc_sync( + worker_name(self._next_rank()), torch.mul, args=(val, t2) + ) + val = rpc.rpc_sync( + worker_name(self._next_rank()), torch.matmul, args=(val, t2) + ) + val = rpc.rpc_sync( + worker_name(self._next_rank()), torch.div, args=(val, t2) + ) + + with self.assertRaisesRegex( + RuntimeError, "Error on Node [0-9]+: Simulate error on backward pass" + ): + # Run backwards, and validate we receive an error. + dist_autograd.backward(context_id, [val.sum()]) + + @dist_init(clean_shutdown=False) + @skip_but_pass_in_sandcastle_if( + IS_MACOS, + "Test is flaky on MacOS since libuv error handling is not as robust as TCP", + ) + def test_backward_node_failure(self): + rpc._set_rpc_timeout(5) # 5 seconds + initialize_pg(self.file_init_method, self.rank, self.world_size) + + with dist_autograd.context() as context_id: + t1 = torch.rand((3, 3), requires_grad=True) + t2 = torch.rand((3, 3), requires_grad=True) + res = rpc.rpc_sync( + worker_name(self._next_rank()), torch.add, args=(t1, t2) + ) + + # Wait for all RPCs to be done. + dist.barrier() + + # Kill all odd rank nodes. + if self.rank % 2 == 0: + shutdown_error_regex = self.get_shutdown_error_regex() + # Wait for all other nodes to die. + for rank in range(self.world_size): + if rank % 2 != 0: + wait_until_node_failure(rank, shutdown_error_regex) + + # Shutdown sequence is not very well defined and as a result + # we might see any error given by get_shutdown_error_regex() + with self.assertRaisesRegex(RuntimeError, shutdown_error_regex): + # Run backwards, and validate we receive an error since all + # other nodes are dead. + dist_autograd.backward(context_id, [res.sum()]) + else: + # Exit all other nodes. + pass + + @dist_init + def test_backward_without_context(self): + t1 = torch.rand((3, 3), requires_grad=True) + t2 = torch.rand((3, 3), requires_grad=True) + + context_id = 100 # dummy context_id + with self.assertRaisesRegex( + RuntimeError, + f"Could not find autograd context with id: {context_id}", + ): + res = rpc.rpc_sync( + worker_name(self._next_rank()), torch.add, args=(t1, t2) + ) + dist_autograd.backward(context_id, [res.sum()]) + + @dist_init + def test_backward_without_rpc(self): + dst_rank = self.rank + with dist_autograd.context() as context_id: + t1 = torch.rand((3, 3), requires_grad=True) + t2 = torch.rand((3, 3), requires_grad=True) + t3 = torch.add(t1, t2) + + dist_autograd.backward(context_id, [t3.sum()]) + grads = dist_autograd.get_gradients(context_id) + self.assertEqual(2, len(grads)) + self.assertIn(t1, grads) + self.assertIn(t2, grads) + self.assertEqual(torch.ones(3, 3), grads[t1]) + self.assertEqual(torch.ones(3, 3), grads[t2]) + + @dist_init + def test_backward_invalid_args(self): + with dist_autograd.context() as context_id: + + with self.assertRaisesRegex(TypeError, "incompatible function arguments"): + dist_autograd.backward(context_id, None) + + with self.assertRaisesRegex(TypeError, "incompatible function arguments"): + dist_autograd.backward(None, None) + + with self.assertRaisesRegex( + RuntimeError, "No tensors provided for gradient computation" + ): + dist_autograd.backward(context_id, []) + + with self.assertRaisesRegex(RuntimeError, "requires_grad not set on"): + t = torch.rand(3, 3) + dist_autograd.backward(context_id, [t]) + + with self.assertRaisesRegex( + RuntimeError, "is not a scalar, all roots need to be scalar" + ): + t = torch.rand(3, 3, requires_grad=True) + dist_autograd.backward(context_id, [t]) + + with self.assertRaisesRegex( + RuntimeError, "does not have a valid gradient function" + ): + t = torch.rand(1, requires_grad=True) + dist_autograd.backward(context_id, [t]) + + @dist_init + def test_backward_multiple_roots(self): + local_grads = None + t1 = torch.rand((3, 3), requires_grad=True) + t2 = torch.rand((3, 3), requires_grad=True) + for exec_mode in [ExecMode.LOCAL, ExecMode.RPC_SYNC]: + with dist_autograd.context() as context_id: + r1 = self._exec_func(exec_mode, torch.add, t1, t2).sum() + r2 = self._exec_func(exec_mode, torch.mul, t1, t2).sum() + r3 = self._exec_func(exec_mode, torch.cos, t1).sum() + r4 = self._exec_func(exec_mode, torch.div, t1, t2).sum() + + local_grads = self._verify_backwards( + exec_mode, [r1, r2, r3, r4], context_id, local_grads, t1, t2 + ) + + @dist_init + def test_backward_different_dtypes(self): + self._backward_different_dtypes( + torch.rand((3, 3), requires_grad=True, dtype=torch.float32), + torch.rand((3, 3), requires_grad=True, dtype=torch.float64), + False + ) + + @dist_init + def test_backward_simple_python_udf(self): + self._backward_simple_python_udf( + torch.rand(3, 3, requires_grad=True), + torch.rand(3, 3, requires_grad=True), + False + ) + + @dist_init + def test_backward_simple_script_call(self): + self._backward_simple_script_call( + torch.rand(3, 3, requires_grad=True), + torch.rand(3, 3, requires_grad=True), + False + ) + + @staticmethod + def _complex_python_udf(t1, t2): + t3 = torch.nn.functional.linear(t1, t2) + t4 = torch.nn.functional.linear(t2, t3) + t5 = torch.nn.functional.linear(t3, t4) + return torch.linalg.multi_dot([t1, t2, t3, t4, t5]) + + @dist_init + def test_backward_complex_python_udf(self): + # Run the same code locally and with dist autograd and verify gradients + # are same. + local_grads = None + t1 = torch.rand((3, 3), requires_grad=True) + t2 = torch.rand((3, 3), requires_grad=True) + for exec_mode in [ExecMode.LOCAL, ExecMode.REMOTE]: + with dist_autograd.context() as context_id: + ret = self._exec_func( + exec_mode, DistAutogradTest._complex_python_udf, t1, t2 + ) + loss = ret.sum() + local_grads = self._verify_backwards( + exec_mode, [loss], context_id, local_grads, t1, t2 + ) + + @staticmethod + def _python_udf_with_backward_error(t1, t2): + t3 = t1 + t2 + t4 = SimulateBackwardError.apply(t3) + return torch.linalg.multi_dot([t1, t2, t3, t4]) + + @staticmethod + def _nested_rpc_call_backward_error(t1, t2, dst): + t1 = t1 * t2 + t2 = t1 + t2 + res = rpc.rpc_sync( + worker_name(dst), + DistAutogradTest._python_udf_with_backward_error, + args=(t1, t2), + ) + return torch.linalg.multi_dot([t1, t2, res]) + + @dist_init + def test_backward_python_udf_error(self): + t1 = torch.rand((3, 3), requires_grad=True) + t2 = torch.rand((3, 3), requires_grad=True) + with dist_autograd.context() as context_id: + loss = rpc.rpc_sync( + worker_name(self._next_rank()), + DistAutogradTest._nested_rpc_call_backward_error, + args=(t1, t2, self._next_rank()), + ) + with self.assertRaisesRegex( + RuntimeError, "Simulate error on backward pass" + ): + dist_autograd.backward(context_id, [loss.sum()]) + + _backward_done = False + + @dist_init(clean_shutdown=False) + @skip_but_pass_in_sandcastle_if( + IS_MACOS, + "Test is flaky on MacOS since libuv error handling is not as robust as TCP", + ) + def test_backward_node_failure_python_udf(self): + # Set a short timeout to quickly time out failed RPCs. + rpc._set_rpc_timeout(5) # 5 seconds + initialize_pg(self.file_init_method, self.rank, self.world_size) + + with dist_autograd.context() as context_id: + t1 = torch.rand((3, 3), requires_grad=True) + t2 = torch.rand((3, 3), requires_grad=True) + + dst = self._next_rank() + res = rpc.rpc_sync( + worker_name(dst), + my_py_nested_call, + args=(t1, t2, dst, self.world_size, 1), + ) + + dist.barrier() + + # Kill rank 2 (last hop of nested rpc) and verify rank 0 receives an error. + if self.rank == 2: + return + + store = dist.distributed_c10d._get_default_store() + if self.rank == 0: + # Wait for rank 2 to die. + shutdown_error_regex = self.get_shutdown_error_regex() + wait_until_node_failure(2, shutdown_error_regex) + # Shutdown sequence is not very well defined and as a result + # we might see any error given by get_shutdown_error_regex(). + with self.assertRaisesRegex(RuntimeError, shutdown_error_regex): + # Run backwards, and validate we receive an error since rank 2 is dead. + dist_autograd.backward(context_id, [res.sum()]) + + # Mark rank 0 is done in the store, since the RPC framework on + # some nodes might be broken at this point. + store.set('test_backward_node_failure_python_udf_rank0_done', "True") + else: + # Wait for backward to finish on rank 0. + store.wait(['test_backward_node_failure_python_udf_rank0_done'], timedelta(seconds=10)) + + @staticmethod + def _nested_python_udf(t1, t2, dst): + t3 = t1 * t2 + t4 = t1 + t2 + res = rpc.rpc_sync(worker_name(dst), my_py_add, args=(t3, t4)) + return t1 * t2 * t3 * t4 * res + + @dist_init + def test_backwards_nested_python_udf(self): + # Run equivalent of _nested_python_udf locally. + self._backwards_nested_python_udf( + torch.rand(3, 3, requires_grad=True), + torch.rand(3, 3, requires_grad=True), + False + ) + + _test_clean_context_backward_context_id = None + + class MyBackwardFunc(Function): + @staticmethod + def forward(ctx, input): + return input + + @staticmethod + @once_differentiable + def backward(ctx, input): + assert DistAutogradTest._test_clean_context_backward_context_id is not None + + # Release the context to simulate error (use barrier before releasing + # context to ensure all nodes execute the backward function). + dist.barrier() + dist_autograd._release_context( + DistAutogradTest._test_clean_context_backward_context_id + ) + + # Verify all contexts are cleaned up. + assert _all_contexts_cleaned_up() + + return input + + @dist_init + def test_clean_context_during_backward(self): + """ + This test simulates the situation where the 'backward' call might throw + an exception locally which would lead to the autograd context being + cleaned up if we're using the context manager. As a result, the autograd + context might be cleaned up while some threads are still using the + autograd context. + + It is fine for the 'backward' call to throw an exception in this test, + but the process should not crash. + """ + initialize_pg(self.file_init_method, self.rank, self.world_size) + + context = dist_autograd._new_context() + context_id = context._context_id() + DistAutogradTest._test_clean_context_backward_context_id = context_id + + # Send the context id to all nodes. + for i in range(0, self.world_size): + if i != self.rank: + rank_distance = (i - self.rank + self.world_size) % self.world_size + rpc.rpc_sync( + worker_name(i), + _set_rpc_done, + args=(context_id, rank_distance), + ) + + dist.barrier() + + # Verify all context ids have been received. + self.assertEqual(self.world_size - 1, len(known_context_ids)) + + t1 = torch.rand((3, 3), requires_grad=True) + for i in range(0, 100): + dst = self._next_rank() + t1 = rpc.rpc_sync(worker_name(dst), torch.add, args=(t1, t1)) + + # Call MyBackwardFunc as the first op of the backward pass to + # ensure we release the context early in the backward pass. + t1 = DistAutogradTest.MyBackwardFunc.apply(t1) + self.assertEqual(100, len(context._send_functions())) + + context_id = 100 # dummy context_id + with self.assertRaisesRegex( + RuntimeError, + f"Could not find autograd context with id: {context_id}", + ): + dist_autograd.backward(context_id, [t1.sum()]) + + # HACK: Killing workers since otherwise the autograd engine gets stuck on + # other nodes. The proper fix would be addressing: + # https://github.com/pytorch/pytorch/issues/27643, which would inform + # other nodes about the failure. + # The autograd engine gets stuck on other nodes since they're waiting to + # receive gradients from the node that received an error (and as a + # result it didn't execute the rest of the graph). + dist.barrier() + rpc.shutdown(graceful=False) + sys.exit(0) + + @classmethod + def _call_remote_embedding(cls, embedding_rref, input, offsets, per_sample_weights): + embedding = embedding_rref.local_value() + return embedding(input, offsets, per_sample_weights) + + @classmethod + def _get_grad(cls, embedding_rref, context_id): + embedding = embedding_rref.local_value() + grad_map = dist_autograd.get_gradients(context_id) + return grad_map[embedding.weight] + + @classmethod + def _mixed_requires_grad_operaton(cls, t1, t2): + if t2.requires_grad: + return t1 - t2 + else: + return t1 * t2 + + @dist_init + def test_mixed_requires_grad(self): + self._mixed_requires_grad( + torch.rand(3, 3, requires_grad=True), + torch.rand(3, 3, requires_grad=False), + False + ) + + class TestDebugInfoFunc(Function): + @staticmethod + def forward(ctx, input): + return input + + @staticmethod + @once_differentiable + def backward(ctx, input): + debug_info = dist_autograd._get_debug_info() + assert debug_info is not None + backward_passes = int(debug_info["num_current_backward_passes"]) + + # Hard to validate exact numbers because of the distributed nature. + # We can't use a barrier() here since that would block the single + # CPU thread available for autograd and can cause deadlocks. + assert backward_passes >= 1 and backward_passes <= 4 + return input + + @dist_init + def test_debug_info(self): + initialize_pg(self.file_init_method, self.rank, self.world_size) + + t1 = torch.rand((3, 3), requires_grad=True) + t2 = torch.rand((3, 3), requires_grad=True) + with dist_autograd.context() as context_id: + i = 0 + res = {} + res[i] = t1 + for rank in range(self.world_size): + if rank != self.rank: + res[i + 1] = rpc.rpc_sync( + worker_name(rank), torch.add, args=(res[i], t2) + ) + i += 1 + + # Call custom function in middle of backward pass to ensure all + # nodes are still waiting on a backward(). + res[i + 1] = DistAutogradTest.TestDebugInfoFunc.apply(res[i]) + i += 1 + + for rank in range(self.world_size): + if rank != self.rank: + res[i + 1] = rpc.rpc_sync( + worker_name(rank), torch.add, args=(res[i], t2) + ) + i += 1 + + dist_autograd.backward(context_id, [res[i].sum()]) + + debug_info = dist_autograd._get_debug_info() + num_autograd_context = int(debug_info["num_autograd_contexts"]) + # Need atleast one context and not more than 4. + self.assertTrue(num_autograd_context >= 1 and num_autograd_context <= 4) + + for rd in range(self.world_size - 1): + rpc.rpc_sync( + worker_name((self.rank + rd + 1) % self.world_size), + _set_rpc_done, + args=(context_id, rd + 1), + ) + + dist.barrier() + + # Validate information + debug_info = dist_autograd._get_debug_info() + assert debug_info is not None + self.assertEqual(0, int(debug_info["num_current_backward_passes"])) + # only have `num_current_backward_passes` and `num_autograd contexts` + self.assertTrue(len(debug_info) == 2) + + self.assertTrue(_all_contexts_cleaned_up()) + + # All contexts should be cleaned up. + debug_info = dist_autograd._get_debug_info() + self.assertEqual(0, int(debug_info["num_autograd_contexts"])) + + @staticmethod + def _workload_thread(): + t1 = torch.rand((3, 3), requires_grad=True) + t2 = torch.rand((3, 3), requires_grad=True) + with dist_autograd.context() as context_id: + t3 = rpc.rpc_sync("worker0", torch.add, args=(t1, t2)) + t4 = rpc.rpc_sync("worker0", torch.mul, args=(t2, t3)) + t5 = rpc.rpc_sync("worker0", torch.matmul, args=(t3, t4)) + t6 = rpc.rpc_sync("worker0", torch.add, args=(t4, t5)) + + dist_autograd.backward(context_id, [t6.sum()]) + + @dist_init + def test_async_dist_autograd(self): + """ + This test ensures async processing for distributed autograd works + appropriately. This is achieved by spawning multiple threads and + hammering a single node with a lot of backward() calls. + """ + + initialize_pg(self.file_init_method, self.rank, self.world_size) + if self.rank != 0: + # All other ranks schedule work on rank 0. + threads = [] + for i in range(20): + t = threading.Thread(target=DistAutogradTest._workload_thread) + t.start() + threads.append(t) + + for thread in threads: + thread.join() + + dist.barrier() + + @dist_init + def test_backward_accumulate_grads(self): + t1 = torch.rand((3, 3), requires_grad=True) + t2 = torch.rand((3, 3), requires_grad=True) + with dist_autograd.context() as context_id: + t3 = torch.matmul(t1, t2) + # Run backward twice. + torch.autograd.backward([t3.sum()], retain_graph=True) + torch.autograd.backward([t3.sum()]) + + t3 = rpc.rpc_sync( + worker_name(self._next_rank()), torch.matmul, args=(t1, t2) + ) + # Run backward twice. + dist_autograd.backward(context_id, [t3.sum()], retain_graph=True) + dist_autograd.backward(context_id, [t3.sum()]) + + # Verify the gradients are same for local and remote execution. + grads = dist_autograd.get_gradients(context_id) + self.assertEqual(2, len(grads)) + self.assertIn(t1, grads) + self.assertIn(t2, grads) + self.assertEqual(t1.grad, grads[t1]) + self.assertEqual(t2.grad, grads[t2]) + + @staticmethod + def _test_nested_backward_accumulate_grads(t1, t2, dst_rank): + return rpc.rpc_sync(worker_name(dst_rank), torch.add, args=(t1, t2)) + + @dist_init + def test_nested_backward_accumulate_grads(self): + self._nested_backward_accumulate_grads( + torch.rand(3, 3, requires_grad=True), + torch.rand(3, 3, requires_grad=True), + False + ) + + @dist_init + def test_multiple_backward(self): + self._multiple_backward( + torch.rand(3, 3, requires_grad=True), + torch.rand(3, 3, requires_grad=True), + False + ) + + @dist_init(clean_shutdown=False) + def test_multiple_backward_with_errors(self): + initialize_pg(self.file_init_method, self.rank, self.world_size) + t1 = torch.rand((3, 3), requires_grad=True) + t2 = torch.rand((3, 3), requires_grad=True) + with dist_autograd.context() as context_id: + loss = rpc.rpc_sync( + f'worker{self._next_rank()}', + DistAutogradTest._python_udf_with_backward_error, + args=(t1, t2)).sum() + + try: + # Run backward in a loop multiple times. + for i in range(100): + if i < 50: + with self.assertRaisesRegex(RuntimeError, "Simulate error on backward pass"): + dist_autograd.backward(context_id, [loss], retain_graph=True) + elif i > 50: + # Recovered from error. + dist_autograd.backward(context_id, [loss], retain_graph=True) + else: + dist.barrier() + SimulateBackwardError._simulate_error = False + dist.barrier() + finally: + # Sync before resetting flag. + dist.barrier() + + # Reset the flag. + SimulateBackwardError._simulate_error = True + + @dist_init + def test_backward_verify_hooks(self): + t1 = torch.ones((3, 3), requires_grad=True) + # Double the gradient. + t1.register_hook(lambda grad: grad * 2) + t2 = torch.ones((3, 3), requires_grad=True) + local_grads = None + for exec_mode in [ExecMode.LOCAL, ExecMode.RPC_SYNC, ExecMode.REMOTE]: + with dist_autograd.context() as context_id: + ret = self._exec_func(exec_mode, torch.matmul, t1, t2) + loss = ret.sum() + ret = self._verify_backwards( + exec_mode, [loss], context_id, local_grads, t1, t2 + ) + local_grads = ret if ret else local_grads + + @dist_init + def test_no_grad_copy(self): + ''' + Similar to test in test_autograd.py. + ''' + # create autograd function that saves grad pointer as class static + class MyFunc(Function): + static_grad_ptr = None + + @staticmethod + def forward(ctx, inp1, inp2): + return inp1 + inp2 + + @staticmethod + def backward(ctx, grad): + MyFunc.static_grad_ptr = grad.data_ptr() + return grad, grad + + class MyFuncSingleGrad(Function): + static_grad_ptr = None + + @staticmethod + def forward(ctx, inp): + return inp + + @staticmethod + def backward(ctx, grad): + MyFuncSingleGrad.static_grad_ptr = grad.data_ptr() + return grad + + class NonContGradFunc(Function): + @staticmethod + def forward(ctx, inp1): + ctx.size = inp1.size() + return torch.tensor([1.]) + + @staticmethod + def backward(ctx, grad): + return torch.ones(1).expand(ctx.size) + + a = torch.randn(5, 6, requires_grad=True) + b = torch.randn(5, 6, requires_grad=True) + # non-contiguous grad should be copied + with dist_autograd.context() as context_id: + dist_autograd.backward(context_id, [NonContGradFunc.apply(MyFunc.apply(a, b))]) + grads = dist_autograd.get_gradients(context_id) + self.assertFalse(grads[a].data_ptr() == MyFunc.static_grad_ptr) + self.assertFalse(grads[b].data_ptr() == MyFunc.static_grad_ptr) + + # test case that should trigger no copy for a + with dist_autograd.context() as context_id: + dist_autograd.backward(context_id, [MyFuncSingleGrad.apply(a)[1][0]]) + grads = dist_autograd.get_gradients(context_id) + p_g = MyFuncSingleGrad.static_grad_ptr + p_a = grads[a].data_ptr() + # Verify there was no clone. + self.assertTrue(p_a == p_g) + + # Test case that should trigger copy for both of a,b. This is + # different in the distributed autograd case since we hold + # a reference to all grads in a vector until all accumulation is done. + with dist_autograd.context() as context_id: + dist_autograd.backward(context_id, [MyFunc.apply(a, b)[1][0]]) + grads = dist_autograd.get_gradients(context_id) + p_g = MyFunc.static_grad_ptr + p_a = grads[a].data_ptr() + p_b = grads[b].data_ptr() + # check a,b uses different grad buffer + self.assertFalse(p_a == p_b) + # both should be copied. + self.assertFalse(grads[a].data_ptr() == MyFunc.static_grad_ptr) + self.assertFalse(grads[b].data_ptr() == MyFunc.static_grad_ptr) + + @dist_init + def test_no_grad_copy_sparse(self): + # create autograd function that saves grad pointer as class static + class MyFunc(Function): + static_grad_ptr = None + + @staticmethod + def forward(ctx, inp): + return inp + + @staticmethod + def backward(ctx, grad): + MyFunc.static_grad_ptr = grad._values().data_ptr() + return grad + + class NonContGradFunc(Function): + static_grad_ptr = None + + @staticmethod + def forward(ctx, inp1, inp2): + return inp1 + inp2 + + @staticmethod + def backward(ctx, grad): + # Create a sparse tensor with non-contiguous indices and values + # and return as grad. + v = torch.rand(1, 3) + i = torch.ones(1, 1, dtype=torch.long) + nv = v.expand(8, 3) + ni = i.expand(1, 8) + ngrad = torch.sparse_coo_tensor(ni, nv, (10, 3), dtype=torch.float32) + NonContGradFunc.static_grad_ptr = ngrad._values().data_ptr() + return ngrad, ngrad + + a = torch.randn(10, 3, requires_grad=True) + b = torch.randn(10, 3, requires_grad=True) + input = torch.tensor([1, 2, 4, 5, 4, 3, 2, 9]) + offsets = torch.tensor([0, 4]) + import torch.nn.functional as F + + # test case that should trigger no copy for a. + with dist_autograd.context() as context_id: + emb_matrix = MyFunc.apply(a) + loss = F.embedding_bag(emb_matrix, input, offsets, sparse=True).sum() + dist_autograd.backward(context_id, [loss], retain_graph=True) + grads = dist_autograd.get_gradients(context_id) + p_g = MyFunc.static_grad_ptr + p_a = grads[a]._values().data_ptr() + # check a uses the same buffer + self.assertTrue(p_a == p_g) + + # Run backwards multiple times. + for i in range(10): + dist_autograd.backward(context_id, [loss], retain_graph=True) + + # non-contiguous indices and value, we should trigger a copy. + with dist_autograd.context() as context_id: + emb_matrix = NonContGradFunc.apply(a, b) + loss = F.embedding_bag(emb_matrix, input, offsets, sparse=True).sum() + dist_autograd.backward(context_id, [loss], retain_graph=True) + grads = dist_autograd.get_gradients(context_id) + p_g = NonContGradFunc.static_grad_ptr + p_a = grads[a]._values().data_ptr() + p_b = grads[b]._values().data_ptr() + # check a,b uses different grad buffer + self.assertFalse(p_a == p_b) + # Verify we cloned both grads. + self.assertFalse(p_a == p_g) + self.assertFalse(p_b == p_g) + + # Run backwards multiple times to verify accumulation. + for i in range(10): + dist_autograd.backward(context_id, [loss], retain_graph=True) + + @dist_init + def test_grad_copy_sparse_indices_extra_ref(self): + # create autograd function that saves grad pointer as class static + class MyFunc(Function): + static_grad_ptr = None + static_grad_indices_ref = None + static_grad_values_ref = None + + @staticmethod + def forward(ctx, inp): + return inp + + @staticmethod + def backward(ctx, grad): + MyFunc.static_grad_ptr = grad._values().data_ptr() + # indices() and values() return views, so holding onto + # references of them would not increment refcount of indices + # and values inside the sparse tensor. + MyFunc.static_grad_indices_ref = grad._indices() + MyFunc.static_grad_values_ref = grad._values() + return grad + + a = torch.randn(10, 3, requires_grad=True) + input = torch.tensor([1, 2, 4, 5, 4, 3, 2, 9]) + offsets = torch.tensor([0, 4]) + import torch.nn.functional as F + + with dist_autograd.context() as context_id: + emb_matrix = MyFunc.apply(a) + loss = F.embedding_bag(emb_matrix, input, offsets, sparse=True).sum() + dist_autograd.backward(context_id, [loss], retain_graph=True) + grads = dist_autograd.get_gradients(context_id) + p_g = MyFunc.static_grad_ptr + p_a = grads[a]._values().data_ptr() + self.assertIsNotNone(MyFunc.static_grad_indices_ref) + self.assertIsNotNone(MyFunc.static_grad_values_ref) + # grad would be stolen, since static_grad_indices_ref and + # static_grad_values_ref are holding onto views and don't bump the + # refcount. + self.assertTrue(p_g == p_a) + + @dist_init + def test_post_hooks(self): + self.hook_called_times = 0 + + def post_hook_add_one(output_grads, input_grads): + self.hook_called_times += 1 + return output_grads + + def post_hook_add_two(output_grads, input_grads): + self.hook_called_times += 2 + return output_grads + + t = torch.rand(10, 10, requires_grad=True) + a = t + t + + # Register post hooks + accumulate_grad_0 = a.grad_fn.next_functions[0][0] + accumulate_grad_0.register_hook(post_hook_add_one) + accumulate_grad_0.register_hook(post_hook_add_two) + + accumulate_grad_1 = a.grad_fn.next_functions[1][0] + accumulate_grad_1.register_hook(post_hook_add_two) + + with dist_autograd.context() as context_id: + loss = a.sum() + dist_autograd.backward(context_id, [loss]) + self.assertEqual(5, self.hook_called_times) + grads = dist_autograd.get_gradients(context_id) + self.assertEqual(1, len(grads)) + self.assertTrue(t in grads) + + @staticmethod + def _slow_add(t1, t2): + time.sleep(1) + t3 = t1 + t2 + t3.requires_grad = True + return t3 + + @dist_init + def test_thread_local_context_id(self): + t1 = torch.rand((3, 3)) + t2 = torch.rand((3, 3)) + + t3 = t1 + t2 + t3.requires_grad = True + t3.sum().backward() + + dst = worker_name((self.rank + 1) % self.world_size) + rref = rpc.remote(dst, DistAutogradTest._slow_add, args=(t1, t2)) + + with dist_autograd.context() as context_id: + loss = rref.to_here().sum() + # due to slow add, the continuation of this backward pass will be + # invoked by the previous rpc.remote thread which does not have a + # valid context_id. So, this can test whether we propagate + # thread_local states properly when jumping across threads on the + # server side. + dist_autograd.backward(context_id, [loss]) + self.assertTrue( + rpc.rpc_sync( + dst, + _compare_owner_value, + args=(context_id, rref, t3.grad) + ) + ) + + +class CudaDistAutogradTest(CommonDistAutogradTest): + @skip_if_lt_x_gpu(1) + @dist_init + def test_gpu_simple(self): + t1 = torch.rand(3, 3, requires_grad=True, device="cuda:0") + t2 = torch.rand(3, 3, requires_grad=True, device="cuda:0") + (t1 + t2).sum().backward() + with dist_autograd.context() as context_id: + t3 = t1 + t2 + dist_autograd.backward(context_id, [t3.sum()]) + grads = dist_autograd.get_gradients(context_id) + self.assertEqual(2, len(grads)) + self.assertEqual(t1.grad, grads[t1]) + self.assertEqual(t2.grad, grads[t2]) + + @skip_if_lt_x_gpu(1) + @dist_init + def test_gpu_to_cpu_continuation(self): + t1 = torch.rand(3, 3, requires_grad=True, device="cuda:0") + t2 = torch.rand(3, 3, requires_grad=True) + # Run a few iterations. + for i in range(3): + t1.grad = None + t2.grad = None + # Root is CPU + local_grads = None + for exec_mode in [ExecMode.LOCAL, ExecMode.RPC_SYNC]: + with dist_autograd.context() as context_id: + t3 = self._exec_func(exec_mode, torch.add, t2, t2) + t4 = t3.cuda(0) + t1 + t5 = self._exec_func(exec_mode, torch.add, t4.cpu(), t2) + t6 = t5.cuda(0) + t4 + t7 = self._exec_func(exec_mode, torch.add, t6.cpu(), t5) + # Autograd graph consists of CPU -> GPU -> CPU execution. + ret = self._verify_backwards( + exec_mode, [t7.sum()], context_id, local_grads, t1, t2 + ) + local_grads = ret if ret else local_grads + + @skip_if_lt_x_gpu(1) + @dist_init + def test_gpu_to_cpu_continuation_gpu_root(self): + t1 = torch.rand(3, 3, requires_grad=True, device="cuda:0") + t2 = torch.rand(3, 3, requires_grad=True) + # Run a few iterations. + for i in range(3): + t1.grad = None + t2.grad = None + # Root is CPU + local_grads = None + for exec_mode in [ExecMode.LOCAL, ExecMode.RPC_SYNC]: + with dist_autograd.context() as context_id: + t3 = self._exec_func(exec_mode, torch.add, t2, t2) + t4 = t3.cuda(0) + t1 + t5 = self._exec_func(exec_mode, torch.add, t4.cpu(), t2) + t6 = t5.cuda(0) + t4 + # Autograd graph consists of CPU -> GPU -> CPU execution. + ret = self._verify_backwards( + exec_mode, [t6.sum()], context_id, local_grads, t1, t2 + ) + local_grads = ret if ret else local_grads + + +class FaultyAgentDistAutogradTest(RpcAgentTestFixture): + # Reusing a simplified helper function from DistAutogradTest to ensure + # autograd context is successfully cleaned up even when RPCs are failing. + def context_cleanup_test_helper(self, rpc_args, func): + initialize_pg(self.file_init_method, self.rank, self.world_size) + + # test that in dist autograd, in the case that tensors communicated over RPC do + # NOT require grad, we still cleanup the dist autograd contexts created + # on other nodes. This is because the autograd context is still + # communicated over RPC even if tensor arguments do not require grad, as + # it is possible that the response could. + dst_ranks = {rank for rank in range(self.world_size) if rank != self.rank} + + with dist_autograd.context() as context_id: + for dst_rank in dst_ranks: + rpc.rpc_sync(worker_name(dst_rank), func, args=rpc_args) + rpc.rpc_sync( + worker_name(dst_rank), _set_rpc_done, args=(context_id, 1) + ) + # the thread's context id should be cleaned up + with self.assertRaises(RuntimeError): + dist_autograd._retrieve_context(context_id) + # Ensure all peers have finished mutating the + # `known_context_ids` set. + dist.barrier() + # check that all contexts have been cleaned up. + success = _all_contexts_cleaned_up() + self.assertTrue(success) + + # no faulty_messages defined so this fails all retryable messages - see + # faulty_rpc_agent_test_fixture.py for the list of retryable messages. + @dist_init + def test_context_cleanup_tensor_with_grad(self): + t1 = torch.ones(3, 3, requires_grad=True) + t2 = torch.zeros(3, 3, requires_grad=True) + self.context_cleanup_test_helper(rpc_args=(t1, t2), func=torch.add) + + @dist_init + def test_verify_backend_options(self): + self.assertEqual(self.rpc_backend, rpc.backend_registry.BackendType.FAULTY_TENSORPIPE) + self.assertEqual(self.rpc_backend_options.num_worker_threads, 8) + self.assertEqual(self.rpc_backend_options.num_fail_sends, 3) + self.assertEqual(len(self.rpc_backend_options.messages_to_fail), 4) + + +class WrapperModule(nn.Module): + def __init__(self, model, device): + super().__init__() + self.model = model.to(device) + + def forward(self, *args): + return self.model(*args) + + def gradients(self, ctx_id): + grads = dist_autograd.get_gradients(ctx_id) + return [grads[p] for p in self.model.parameters()] + + +class TensorPipeCudaDistAutogradTest(RpcAgentTestFixture): + + @skip_if_lt_x_gpu(4) + def test_device_maps_backward_pass(self): + options = self.rpc_backend_options + dst = worker_name((self.rank + 1) % self.world_size) + + # The reverse of this device mapping should be used for the backward pass. + options.set_device_map(dst, {self.rank: (self.rank + 1) % self.world_size}) + + rpc.init_rpc( + name=worker_name(self.rank), + backend=self.rpc_backend, + rank=self.rank, + world_size=self.world_size, + rpc_backend_options=options, + ) + + t1 = torch.rand(10, device=self.rank, requires_grad=True) + t2 = torch.rand(10, device=self.rank, requires_grad=True) + with dist_autograd.context() as context_id: + res = rpc.rpc_sync(dst, torch.add, args=(t1, t2)) + dist_autograd.backward(context_id, [res.sum()]) + grads = dist_autograd.get_gradients(context_id) + self.assertEqual(torch.ones(10), grads[t1]) + self.assertEqual(torch.ones(10), grads[t2]) + self.assertEqual(t1.device, grads[t1].device) + self.assertEqual(t2.device, grads[t2].device) + + rpc.shutdown() + + class MyRemoteCompute(torch.nn.Module): + def forward(self, input): + input = input * 2.0 + return input + + class MyLocalCompute(torch.nn.Module): + def __init__(self, next_stage): + super().__init__() + self.next_stage = next_stage + + def forward(self, input): + return self.next_stage.rpc_sync().forward(input) + + @skip_if_lt_x_gpu(4) + def test_dist_autograd_sync_streams(self): + + options = self.rpc_backend_options + dst = worker_name((self.rank + 1) % self.world_size) + + # The reverse of this device mapping should be used for the backward pass. + options.set_device_map(dst, {self.rank: (self.rank + 1) % self.world_size}) + + rpc.init_rpc( + name=worker_name(self.rank), + backend=self.rpc_backend, + rank=self.rank, + world_size=self.world_size, + rpc_backend_options=options, + ) + + remote_compute = rpc.remote(dst, TensorPipeCudaDistAutogradTest.MyRemoteCompute) + local_compute = TensorPipeCudaDistAutogradTest.MyLocalCompute(remote_compute) + for _ in range(10): + input = torch.rand([1000, 10000], device=self.rank, requires_grad=True) + # Run local autograd + result = input * 2.0 + r = random.random() + loss = result.sum() * r + loss.backward() + + # Run distributed autograd + with dist_autograd.context() as context_id: + result = local_compute(input) + loss = result.sum() * r + dist_autograd.backward(context_id, [loss]) + + # Compare grads. + grads = dist_autograd.get_gradients(context_id) + self.assertEqual(input.grad, grads[input]) + + rpc.shutdown() + + @skip_if_lt_x_gpu(4) + def test_gradients_synchronizations(self): + options = self.rpc_backend_options + for peer_rank in range(self.world_size): + options.set_device_map(worker_name(peer_rank), {self.rank: peer_rank}) + + rpc.init_rpc( + name=worker_name(self.rank), + backend=self.rpc_backend, + rank=self.rank, + world_size=self.world_size, + rpc_backend_options=options, + ) + + if self.rank == 0: + # this is master + layers = [nn.Linear(2000, 2000) for _ in range(self.world_size - 1)] + local_layers = [l.to(0) for l in layers] + remote_layers = [] + for rank in range(1, self.world_size): + remote_layers.append(rpc.remote( + worker_name(rank), + WrapperModule, + args=(layers[rank - 1], rank) + )) + + x = torch.randn(5000, 2000).to(0) + # local iteration + local_model = nn.Sequential(*local_layers) + local_model(x).sum().backward() + + # remote iteration + with dist_autograd.context() as context_id: + for remote_layer in remote_layers: + x = remote_layer.rpc_sync().forward(x) + + dist_autograd.backward(context_id, [x.sum()]) + + futs = [] + for remote_layer in remote_layers: + futs.append(remote_layer.rpc_async().gradients(context_id)) + + for i in range(len(futs)): + local_gradients = [p.grad for p in local_layers[i].parameters()] + for g1, g2 in zip(futs[i].wait(), local_gradients): + self.assertEqual(g1, g2) + + rpc.shutdown() diff --git a/shared/package-files/20/2063faadcdbe6f7c1ef5d4436e9467885021430a7f4d8b4c7c5cf1bac029af1d/test_hilbert.py b/shared/package-files/20/2063faadcdbe6f7c1ef5d4436e9467885021430a7f4d8b4c7c5cf1bac029af1d/test_hilbert.py new file mode 100644 index 0000000000000000000000000000000000000000..9a0e5c4187c6c62e14505efb1597a5cd63c23fea --- /dev/null +++ b/shared/package-files/20/2063faadcdbe6f7c1ef5d4436e9467885021430a7f4d8b4c7c5cf1bac029af1d/test_hilbert.py @@ -0,0 +1,110 @@ +from sympy.physics.quantum.hilbert import ( + HilbertSpace, ComplexSpace, L2, FockSpace, TensorProductHilbertSpace, + DirectSumHilbertSpace, TensorPowerHilbertSpace +) + +from sympy.core.numbers import oo +from sympy.core.symbol import Symbol +from sympy.printing.repr import srepr +from sympy.printing.str import sstr +from sympy.sets.sets import Interval + + +def test_hilbert_space(): + hs = HilbertSpace() + assert isinstance(hs, HilbertSpace) + assert sstr(hs) == 'H' + assert srepr(hs) == 'HilbertSpace()' + + +def test_complex_space(): + c1 = ComplexSpace(2) + assert isinstance(c1, ComplexSpace) + assert c1.dimension == 2 + assert sstr(c1) == 'C(2)' + assert srepr(c1) == 'ComplexSpace(Integer(2))' + + n = Symbol('n') + c2 = ComplexSpace(n) + assert isinstance(c2, ComplexSpace) + assert c2.dimension == n + assert sstr(c2) == 'C(n)' + assert srepr(c2) == "ComplexSpace(Symbol('n'))" + assert c2.subs(n, 2) == ComplexSpace(2) + + +def test_L2(): + b1 = L2(Interval(-oo, 1)) + assert isinstance(b1, L2) + assert b1.dimension is oo + assert b1.interval == Interval(-oo, 1) + + x = Symbol('x', real=True) + y = Symbol('y', real=True) + b2 = L2(Interval(x, y)) + assert b2.dimension is oo + assert b2.interval == Interval(x, y) + assert b2.subs(x, -1) == L2(Interval(-1, y)) + + +def test_fock_space(): + f1 = FockSpace() + f2 = FockSpace() + assert isinstance(f1, FockSpace) + assert f1.dimension is oo + assert f1 == f2 + + +def test_tensor_product(): + n = Symbol('n') + hs1 = ComplexSpace(2) + hs2 = ComplexSpace(n) + + h = hs1*hs2 + assert isinstance(h, TensorProductHilbertSpace) + assert h.dimension == 2*n + assert h.spaces == (hs1, hs2) + + h = hs2*hs2 + assert isinstance(h, TensorPowerHilbertSpace) + assert h.base == hs2 + assert h.exp == 2 + assert h.dimension == n**2 + + f = FockSpace() + h = hs1*hs2*f + assert h.dimension is oo + + +def test_tensor_power(): + n = Symbol('n') + hs1 = ComplexSpace(2) + hs2 = ComplexSpace(n) + + h = hs1**2 + assert isinstance(h, TensorPowerHilbertSpace) + assert h.base == hs1 + assert h.exp == 2 + assert h.dimension == 4 + + h = hs2**3 + assert isinstance(h, TensorPowerHilbertSpace) + assert h.base == hs2 + assert h.exp == 3 + assert h.dimension == n**3 + + +def test_direct_sum(): + n = Symbol('n') + hs1 = ComplexSpace(2) + hs2 = ComplexSpace(n) + + h = hs1 + hs2 + assert isinstance(h, DirectSumHilbertSpace) + assert h.dimension == 2 + n + assert h.spaces == (hs1, hs2) + + f = FockSpace() + h = hs1 + f + hs2 + assert h.dimension is oo + assert h.spaces == (hs1, f, hs2) diff --git a/shared/package-files/20/20697508afd2d192f54105a617188afc935bd9a66cb942766a018aa93e9407e8/hardsigmoid_meta.h b/shared/package-files/20/20697508afd2d192f54105a617188afc935bd9a66cb942766a018aa93e9407e8/hardsigmoid_meta.h new file mode 100644 index 0000000000000000000000000000000000000000..df98f2662d6e64930a00863c8c317c0e9b439846 --- /dev/null +++ b/shared/package-files/20/20697508afd2d192f54105a617188afc935bd9a66cb942766a018aa93e9407e8/hardsigmoid_meta.h @@ -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_hardsigmoid : public TensorIteratorBase { + + + void meta(const at::Tensor & self); +}; + +} // namespace native +} // namespace at diff --git a/shared/package-files/20/207e4ad6d2bdc31ea8d5e9b8e525fad31efb7c970c309fc74c7cec1cbc836db2/quantization_mappings.py b/shared/package-files/20/207e4ad6d2bdc31ea8d5e9b8e525fad31efb7c970c309fc74c7cec1cbc836db2/quantization_mappings.py new file mode 100644 index 0000000000000000000000000000000000000000..179cddca27427bae08139b5b777207cdd31650e8 --- /dev/null +++ b/shared/package-files/20/207e4ad6d2bdc31ea8d5e9b8e525fad31efb7c970c309fc74c7cec1cbc836db2/quantization_mappings.py @@ -0,0 +1,348 @@ +import copy + +import torch +from torch import nn + +import torch.nn.functional as F +import torch.ao.nn.intrinsic as nni +import torch.ao.nn.intrinsic.quantized as nniq +import torch.ao.nn.intrinsic.quantized.dynamic as nniqd +import torch.ao.nn.intrinsic.qat as nniqat +import torch.ao.nn.quantized as nnq +import torch.ao.nn.quantized.reference as nnqr +import torch.ao.nn.quantized.dynamic as nnqd +import torch.ao.nn.qat as nnqat +import torch.ao.nn.qat.dynamic as nnqatd + +from typing import Optional, Union, Dict, Set, Callable, Any + +# Because `torch.ao.nn` uses lazy imports, we need to make +# sure we import the contents explicitly here. +import torch.ao.nn.sparse +import torch.ao.nn as ao_nn +from torch.ao.quantization.stubs import QuantStub, DeQuantStub +from torch.ao.quantization.fake_quantize import ( + default_fixed_qparams_range_0to1_fake_quant, + default_fixed_qparams_range_neg1to1_fake_quant, +) +from torch.ao.quantization.utils import get_combined_dict +from torch.nn.utils.parametrize import type_before_parametrizations + +__all__ = [ + "DEFAULT_REFERENCE_STATIC_QUANT_MODULE_MAPPINGS", + "DEFAULT_STATIC_QUANT_MODULE_MAPPINGS", + "DEFAULT_QAT_MODULE_MAPPINGS", + "DEFAULT_DYNAMIC_QUANT_MODULE_MAPPINGS", + "DEFAULT_FLOAT_TO_QUANTIZED_OPERATOR_MAPPINGS", + "DEFAULT_MODULE_TO_ACT_POST_PROCESS", + "DEFAULT_STATIC_SPARSE_QUANT_MODULE_MAPPINGS", + "DEFAULT_DYNAMIC_SPARSE_QUANT_MODULE_MAPPINGS", + "no_observer_set", + "get_default_static_quant_module_mappings", + "get_default_static_quant_reference_module_mappings", + "get_embedding_static_quant_module_mappings", + "get_default_static_sparse_quant_module_mappings", + "get_static_quant_module_class", + "get_dynamic_quant_module_class", + "get_default_qat_module_mappings", + "get_embedding_qat_module_mappings", + "get_default_dynamic_quant_module_mappings", + "get_default_dynamic_sparse_quant_module_mappings", + "get_default_qconfig_propagation_list", + "get_default_compare_output_module_list", + "get_default_float_to_quantized_operator_mappings", + "get_quantized_operator", +] + +# Default map for swapping float module to reference quantized modules +DEFAULT_REFERENCE_STATIC_QUANT_MODULE_MAPPINGS : Dict[Callable, Any] = { + QuantStub: nnq.Quantize, + DeQuantStub: nnq.DeQuantize, + nn.Linear: nnqr.Linear, + nn.Conv1d: nnqr.Conv1d, + nn.Conv2d: nnqr.Conv2d, + nn.Conv3d: nnqr.Conv3d, + nn.ConvTranspose1d: nnqr.ConvTranspose1d, + nn.ConvTranspose2d: nnqr.ConvTranspose2d, + nn.ConvTranspose3d: nnqr.ConvTranspose3d, + nn.Embedding: nnqr.Embedding, + nn.EmbeddingBag: nnqr.EmbeddingBag, + nn.GRUCell: nnqr.GRUCell, + nn.LSTMCell: nnqr.LSTMCell, + nn.RNNCell: nnqr.RNNCell, + nn.LSTM: nnqr.LSTM, +} + +# Default map for swapping float module to quantized ones +DEFAULT_STATIC_QUANT_MODULE_MAPPINGS : Dict[Callable, Any] = { + QuantStub: nnq.Quantize, + DeQuantStub: nnq.DeQuantize, + nn.BatchNorm2d: nnq.BatchNorm2d, + nn.BatchNorm3d: nnq.BatchNorm3d, + nn.Dropout: nnq.Dropout, + nn.Conv1d: nnq.Conv1d, + nn.Conv2d: nnq.Conv2d, + nn.Conv3d: nnq.Conv3d, + nn.ConvTranspose1d: nnq.ConvTranspose1d, + nn.ConvTranspose2d: nnq.ConvTranspose2d, + nn.ConvTranspose3d: nnq.ConvTranspose3d, + nn.ELU: nnq.ELU, + nn.Embedding: nnq.Embedding, + nn.EmbeddingBag: nnq.EmbeddingBag, + nn.GroupNorm: nnq.GroupNorm, + nn.Hardswish: nnq.Hardswish, + nn.InstanceNorm1d: nnq.InstanceNorm1d, + nn.InstanceNorm2d: nnq.InstanceNorm2d, + nn.InstanceNorm3d: nnq.InstanceNorm3d, + nn.LayerNorm: nnq.LayerNorm, + nn.LeakyReLU: nnq.LeakyReLU, + nn.modules.linear.NonDynamicallyQuantizableLinear: nnq.Linear, + nn.Linear: nnq.Linear, + nn.ReLU6: nnq.ReLU6, + nn.Dropout: nnq.Dropout, + nn.PReLU: nnq.PReLU, + # Wrapper Modules: + nnq.FloatFunctional: nnq.QFunctional, + # Intrinsic modules: + nni.BNReLU2d: nniq.BNReLU2d, + nni.BNReLU3d: nniq.BNReLU3d, + nni.ConvReLU1d: nniq.ConvReLU1d, + nni.ConvReLU2d: nniq.ConvReLU2d, + nni.ConvReLU3d: nniq.ConvReLU3d, + nni.ConvAdd2d: nniq.ConvAdd2d, + nni.ConvAddReLU2d: nniq.ConvAddReLU2d, + nni.LinearReLU: nniq.LinearReLU, + nni.LinearLeakyReLU: nniq.LinearLeakyReLU, + nni.LinearTanh: nniq.LinearTanh, + nniqat.ConvBn1d: nnq.Conv1d, + nniqat.ConvBn2d: nnq.Conv2d, + nniqat.ConvBn3d: nnq.Conv3d, + nniqat.ConvBnReLU1d: nniq.ConvReLU1d, + nniqat.ConvBnReLU2d: nniq.ConvReLU2d, + nniqat.ConvBnReLU3d: nniq.ConvReLU3d, + nniqat.ConvReLU2d: nniq.ConvReLU2d, + nniqat.ConvReLU3d: nniq.ConvReLU3d, + nniqat.LinearReLU: nniq.LinearReLU, + nniqat.LinearBn1d: nnq.Linear, + # QAT modules: + nnqat.Linear: nnq.Linear, + nnqat.Conv2d: nnq.Conv2d, + nnqat.Conv3d: nnq.Conv3d, +} + +# Default map for swapping float module to qat modules +DEFAULT_QAT_MODULE_MAPPINGS : Dict[Callable, Any] = { + nn.Conv2d: nnqat.Conv2d, + nn.Conv3d: nnqat.Conv3d, + nn.Linear: nnqat.Linear, + nn.modules.linear.NonDynamicallyQuantizableLinear: nnqat.Linear, + # Intrinsic modules: + nni.ConvBn1d: nniqat.ConvBn1d, + nni.ConvBn2d: nniqat.ConvBn2d, + nni.ConvBn3d: nniqat.ConvBn3d, + nni.ConvBnReLU1d: nniqat.ConvBnReLU1d, + nni.ConvBnReLU2d: nniqat.ConvBnReLU2d, + nni.ConvBnReLU3d: nniqat.ConvBnReLU3d, + nni.ConvReLU2d: nniqat.ConvReLU2d, + nni.ConvReLU3d: nniqat.ConvReLU3d, + nni.LinearReLU: nniqat.LinearReLU, + nni.LinearBn1d: nniqat.LinearBn1d, +} + +# Default map for swapping dynamic modules +DEFAULT_DYNAMIC_QUANT_MODULE_MAPPINGS : Dict[Callable, Any] = { + nn.GRUCell: nnqd.GRUCell, + nn.Linear: nnqd.Linear, + nnqatd.Linear: nnqd.Linear, + nn.modules.linear.NonDynamicallyQuantizableLinear: nnqd.Linear, + nn.LSTM: nnqd.LSTM, + nn.GRU: nnqd.GRU, + nn.LSTMCell: nnqd.LSTMCell, + nn.RNNCell: nnqd.RNNCell, + nni.LinearReLU: nniqd.LinearReLU, + nn.EmbeddingBag: nnq.EmbeddingBag, + nn.Embedding: nnq.Embedding, + # Don't want to enable these by default because the numerical + # accuracy is poor compared to other dynamic ops + # nn.Conv1d: nnqd.Conv1d, + # nn.Conv2d: nnqd.Conv2d, + # nn.Conv3d: nnqd.Conv3d, + # nn.ConvTranspose1d: nnqd.ConvTranspose1d, + # nn.ConvTranspose2d: nnqd.ConvTranspose2d, + # nn.ConvTranspose3d: nnqd.ConvTranspose3d, +} + +# Allowlist for propagating the qconfig +_INCLUDE_QCONFIG_PROPAGATE_LIST : Set[Callable] = { + nn.Sequential, +} + +# Default mapping from floating point function or torch ops to quantized ops +# TODO: merge with default static mapping +DEFAULT_FLOAT_TO_QUANTIZED_OPERATOR_MAPPINGS : Dict[Union[Callable, str], Callable] = { + F.elu: torch.ops.quantized.elu, + F.hardswish: torch.ops.quantized.hardswish, + F.instance_norm: torch.ops.quantized.instance_norm, + F.layer_norm: torch.ops.quantized.layer_norm, + F.leaky_relu: torch.ops.quantized.leaky_relu, + F.dropout: torch.ops.quantized.dropout, +} + +# mapping from module to output activation post process class +DEFAULT_MODULE_TO_ACT_POST_PROCESS : Dict[Callable, Callable] = { + nn.Hardsigmoid: default_fixed_qparams_range_0to1_fake_quant, + nn.Sigmoid: default_fixed_qparams_range_0to1_fake_quant, + nn.Softmax: default_fixed_qparams_range_0to1_fake_quant, + nn.Tanh: default_fixed_qparams_range_neg1to1_fake_quant, +} + +# Default map for swapping float module to static sparse quantized ones +DEFAULT_STATIC_SPARSE_QUANT_MODULE_MAPPINGS : Dict[Callable, Any] = { + nn.Linear: ao_nn.sparse.quantized.Linear +} + +# Default map for swapping float module to dynamic sparse quantized ones +DEFAULT_DYNAMIC_SPARSE_QUANT_MODULE_MAPPINGS : Dict[Callable, Any] = { + nn.Linear: ao_nn.sparse.quantized.dynamic.Linear +} + +def no_observer_set() -> Set[Any]: + r"""These modules cannot have observers inserted by default.""" + no_observers = { + nn.quantizable.LSTM, + nn.quantizable.MultiheadAttention + } + return no_observers + +def get_default_static_quant_module_mappings() -> Dict[Callable, Any]: + ''' Get module mapping for post training static quantization + ''' + return copy.deepcopy(DEFAULT_STATIC_QUANT_MODULE_MAPPINGS) + +def get_default_static_quant_reference_module_mappings() -> Dict[Callable, Any]: + ''' Get reference module mapping for post training static quantization + ''' + return copy.deepcopy(DEFAULT_REFERENCE_STATIC_QUANT_MODULE_MAPPINGS) + +def get_embedding_static_quant_module_mappings() -> Dict[Callable, Any]: + ''' Get module mapping, including mapping for embedding QAT + ''' + mapping = copy.deepcopy(DEFAULT_STATIC_QUANT_MODULE_MAPPINGS) + mapping[nnqat.EmbeddingBag] = nnq.EmbeddingBag + mapping[nnqat.Embedding] = nnq.Embedding + return mapping + +def get_default_static_sparse_quant_module_mappings() -> Dict[Callable, Any]: + ''' Get module mapping for post training static sparse quantization + ''' + return copy.deepcopy(DEFAULT_STATIC_SPARSE_QUANT_MODULE_MAPPINGS) + +def get_static_quant_module_class( + float_module_class: Callable, + additional_static_quant_mapping: Optional[Dict[Callable, Any]] = None, + is_reference: bool = False) -> Any: + r"""n Get the statically quantized module class corresponding to + the floating point module class + """ + if additional_static_quant_mapping is None: + additional_static_quant_mapping = {} + all_mappings = get_combined_dict( + DEFAULT_REFERENCE_STATIC_QUANT_MODULE_MAPPINGS if is_reference + else DEFAULT_STATIC_QUANT_MODULE_MAPPINGS, additional_static_quant_mapping) + static_quant_module_class = all_mappings.get(float_module_class, None) + assert static_quant_module_class is not None, \ + f"Floating point module class {str(float_module_class)}" + \ + " does not have a corresponding quantized module class" + return copy.deepcopy(static_quant_module_class) + +def get_dynamic_quant_module_class( + float_module_class: Callable, + additional_dynamic_quant_mapping: Optional[Dict[Callable, Any]] = None) -> Any: + r"""n Get the dynamically quantized module class corresponding to + the floating point module class + """ + if additional_dynamic_quant_mapping is None: + additional_dynamic_quant_mapping = {} + all_mappings = get_combined_dict(DEFAULT_DYNAMIC_QUANT_MODULE_MAPPINGS, additional_dynamic_quant_mapping) + dynamic_quant_module_class = all_mappings.get(float_module_class, None) + assert dynamic_quant_module_class is not None, \ + f"Floating point module class {str(float_module_class)}" + \ + " does not have a corresponding quantized module class" + return copy.deepcopy(dynamic_quant_module_class) + +def get_default_qat_module_mappings() -> Dict[Callable, Any]: + ''' Get default module mapping for quantization aware training + ''' + return copy.deepcopy(DEFAULT_QAT_MODULE_MAPPINGS) + +def get_embedding_qat_module_mappings() -> Dict[Callable, Any]: + ''' Get module mapping for quantization aware training + This is includes default values in addition to + enabling qat for embeddings. + ''' + mapping = copy.deepcopy(DEFAULT_QAT_MODULE_MAPPINGS) + mapping[nn.EmbeddingBag] = nnqat.EmbeddingBag + mapping[nn.Embedding] = nnqat.Embedding + return mapping + +def get_default_dynamic_quant_module_mappings() -> Dict[Callable, Any]: + ''' Get module mapping for post training dynamic quantization + ''' + return DEFAULT_DYNAMIC_QUANT_MODULE_MAPPINGS + +def get_default_dynamic_sparse_quant_module_mappings() -> Dict[Callable, Any]: + ''' Get module mapping for post training dynamic sparse quantization + ''' + return DEFAULT_DYNAMIC_SPARSE_QUANT_MODULE_MAPPINGS + +def get_default_qconfig_propagation_list() -> Set[Callable]: + ''' Get the default list of module types that we'll attach qconfig + attribute to in prepare + ''' + QCONFIG_PROPAGATE_MODULE_CLASS_LIST = ( + set(DEFAULT_STATIC_QUANT_MODULE_MAPPINGS.keys()) | + set(DEFAULT_QAT_MODULE_MAPPINGS.keys()) | + set(DEFAULT_DYNAMIC_QUANT_MODULE_MAPPINGS.keys()) | + _INCLUDE_QCONFIG_PROPAGATE_LIST + ) + return copy.deepcopy(QCONFIG_PROPAGATE_MODULE_CLASS_LIST) + +def get_default_compare_output_module_list() -> Set[Callable]: + ''' Get list of module class types that we will record output + in numeric suite + ''' + NUMERIC_SUITE_COMPARE_MODEL_OUTPUT_MODULE_LIST = ( + set(DEFAULT_STATIC_QUANT_MODULE_MAPPINGS.values()) + | set(DEFAULT_QAT_MODULE_MAPPINGS.values()) + | set(DEFAULT_DYNAMIC_QUANT_MODULE_MAPPINGS.values()) + | set(DEFAULT_STATIC_QUANT_MODULE_MAPPINGS.keys()) + | set(DEFAULT_QAT_MODULE_MAPPINGS.keys()) + | set(DEFAULT_DYNAMIC_QUANT_MODULE_MAPPINGS.keys()) + | _INCLUDE_QCONFIG_PROPAGATE_LIST + ) + return copy.deepcopy(NUMERIC_SUITE_COMPARE_MODEL_OUTPUT_MODULE_LIST) + +def get_default_float_to_quantized_operator_mappings( +) -> Dict[Union[Callable, str], Callable]: + return copy.deepcopy(DEFAULT_FLOAT_TO_QUANTIZED_OPERATOR_MAPPINGS) + +# TODO: merge with get_static_quant_module_class +def get_quantized_operator(float_op: Union[Callable, str]) -> Callable: + ''' Get the quantized operator corresponding to the float operator + ''' + quantized_op = DEFAULT_FLOAT_TO_QUANTIZED_OPERATOR_MAPPINGS.get(float_op, None) + assert quantized_op is not None, \ + f'Operator {str(float_op)} does not have corresponding quantized op' + return quantized_op + +def _get_special_act_post_process(module: torch.nn.Module) -> Optional[Callable]: + r""" Get the special activation post process for `module`, this has + higher priority than the activation post process in `qconfig` + e.g. + input: torch.nn.Sigmoid + output: default_affine_fixed_qparam_fake_quant + """ + return DEFAULT_MODULE_TO_ACT_POST_PROCESS.get(type_before_parametrizations(module), None) + +def _has_special_act_post_process(module: torch.nn.Module) -> bool: + return module.training and type(module) in DEFAULT_MODULE_TO_ACT_POST_PROCESS diff --git a/shared/package-files/20/2086ee8d7398d5e60e5c3048843b388437bd6f2507d2293ca218936e3bf61e59/es_ec.msg b/shared/package-files/20/2086ee8d7398d5e60e5c3048843b388437bd6f2507d2293ca218936e3bf61e59/es_ec.msg new file mode 100644 index 0000000000000000000000000000000000000000..9e921e02eef6c3656be7be6f3f0c6b1d130065f3 --- /dev/null +++ b/shared/package-files/20/2086ee8d7398d5e60e5c3048843b388437bd6f2507d2293ca218936e3bf61e59/es_ec.msg @@ -0,0 +1,6 @@ +# created by tools/loadICU.tcl -- do not edit +namespace eval ::tcl::clock { + ::msgcat::mcset es_EC DATE_FORMAT "%d/%m/%Y" + ::msgcat::mcset es_EC TIME_FORMAT_12 "%I:%M:%S %P" + ::msgcat::mcset es_EC DATE_TIME_FORMAT "%d/%m/%Y %I:%M:%S %P %z" +} diff --git a/shared/package-files/20/208aaa231ce42df00da53341284b02182a77066f339839d8776df0a2a2a1f441/test_satask.py b/shared/package-files/20/208aaa231ce42df00da53341284b02182a77066f339839d8776df0a2a2a1f441/test_satask.py new file mode 100644 index 0000000000000000000000000000000000000000..5831b69e3e6bf2b1a906d1140967510c2ea8b630 --- /dev/null +++ b/shared/package-files/20/208aaa231ce42df00da53341284b02182a77066f339839d8776df0a2a2a1f441/test_satask.py @@ -0,0 +1,378 @@ +from sympy.assumptions.ask import Q +from sympy.assumptions.assume import assuming +from sympy.core.numbers import (I, pi) +from sympy.core.relational import (Eq, Gt) +from sympy.core.singleton import S +from sympy.core.symbol import symbols +from sympy.functions.elementary.complexes import Abs +from sympy.logic.boolalg import Implies +from sympy.matrices.expressions.matexpr import MatrixSymbol +from sympy.assumptions.cnf import CNF, Literal +from sympy.assumptions.satask import (satask, extract_predargs, + get_relevant_clsfacts) + +from sympy.testing.pytest import raises, XFAIL + + +x, y, z = symbols('x y z') + + +def test_satask(): + # No relevant facts + assert satask(Q.real(x), Q.real(x)) is True + assert satask(Q.real(x), ~Q.real(x)) is False + assert satask(Q.real(x)) is None + + assert satask(Q.real(x), Q.positive(x)) is True + assert satask(Q.positive(x), Q.real(x)) is None + assert satask(Q.real(x), ~Q.positive(x)) is None + assert satask(Q.positive(x), ~Q.real(x)) is False + + raises(ValueError, lambda: satask(Q.real(x), Q.real(x) & ~Q.real(x))) + + with assuming(Q.positive(x)): + assert satask(Q.real(x)) is True + assert satask(~Q.positive(x)) is False + raises(ValueError, lambda: satask(Q.real(x), ~Q.positive(x))) + + assert satask(Q.zero(x), Q.nonzero(x)) is False + assert satask(Q.positive(x), Q.zero(x)) is False + assert satask(Q.real(x), Q.zero(x)) is True + assert satask(Q.zero(x), Q.zero(x*y)) is None + assert satask(Q.zero(x*y), Q.zero(x)) + + +def test_zero(): + """ + Everything in this test doesn't work with the ask handlers, and most + things would be very difficult or impossible to make work under that + model. + + """ + assert satask(Q.zero(x) | Q.zero(y), Q.zero(x*y)) is True + assert satask(Q.zero(x*y), Q.zero(x) | Q.zero(y)) is True + + assert satask(Implies(Q.zero(x), Q.zero(x*y))) is True + + # This one in particular requires computing the fixed-point of the + # relevant facts, because going from Q.nonzero(x*y) -> ~Q.zero(x*y) and + # Q.zero(x*y) -> Equivalent(Q.zero(x*y), Q.zero(x) | Q.zero(y)) takes two + # steps. + assert satask(Q.zero(x) | Q.zero(y), Q.nonzero(x*y)) is False + + assert satask(Q.zero(x), Q.zero(x**2)) is True + + +def test_zero_positive(): + assert satask(Q.zero(x + y), Q.positive(x) & Q.positive(y)) is False + assert satask(Q.positive(x) & Q.positive(y), Q.zero(x + y)) is False + assert satask(Q.nonzero(x + y), Q.positive(x) & Q.positive(y)) is True + assert satask(Q.positive(x) & Q.positive(y), Q.nonzero(x + y)) is None + + # This one requires several levels of forward chaining + assert satask(Q.zero(x*(x + y)), Q.positive(x) & Q.positive(y)) is False + + assert satask(Q.positive(pi*x*y + 1), Q.positive(x) & Q.positive(y)) is True + assert satask(Q.positive(pi*x*y - 5), Q.positive(x) & Q.positive(y)) is None + + +def test_zero_pow(): + assert satask(Q.zero(x**y), Q.zero(x) & Q.positive(y)) is True + assert satask(Q.zero(x**y), Q.nonzero(x) & Q.zero(y)) is False + + assert satask(Q.zero(x), Q.zero(x**y)) is True + + assert satask(Q.zero(x**y), Q.zero(x)) is None + + +@XFAIL +# Requires correct Q.square calculation first +def test_invertible(): + A = MatrixSymbol('A', 5, 5) + B = MatrixSymbol('B', 5, 5) + assert satask(Q.invertible(A*B), Q.invertible(A) & Q.invertible(B)) is True + assert satask(Q.invertible(A), Q.invertible(A*B)) is True + assert satask(Q.invertible(A) & Q.invertible(B), Q.invertible(A*B)) is True + + +def test_prime(): + assert satask(Q.prime(5)) is True + assert satask(Q.prime(6)) is False + assert satask(Q.prime(-5)) is False + + assert satask(Q.prime(x*y), Q.integer(x) & Q.integer(y)) is None + assert satask(Q.prime(x*y), Q.prime(x) & Q.prime(y)) is False + + +def test_old_assump(): + assert satask(Q.positive(1)) is True + assert satask(Q.positive(-1)) is False + assert satask(Q.positive(0)) is False + assert satask(Q.positive(I)) is False + assert satask(Q.positive(pi)) is True + + assert satask(Q.negative(1)) is False + assert satask(Q.negative(-1)) is True + assert satask(Q.negative(0)) is False + assert satask(Q.negative(I)) is False + assert satask(Q.negative(pi)) is False + + assert satask(Q.zero(1)) is False + assert satask(Q.zero(-1)) is False + assert satask(Q.zero(0)) is True + assert satask(Q.zero(I)) is False + assert satask(Q.zero(pi)) is False + + assert satask(Q.nonzero(1)) is True + assert satask(Q.nonzero(-1)) is True + assert satask(Q.nonzero(0)) is False + assert satask(Q.nonzero(I)) is False + assert satask(Q.nonzero(pi)) is True + + assert satask(Q.nonpositive(1)) is False + assert satask(Q.nonpositive(-1)) is True + assert satask(Q.nonpositive(0)) is True + assert satask(Q.nonpositive(I)) is False + assert satask(Q.nonpositive(pi)) is False + + assert satask(Q.nonnegative(1)) is True + assert satask(Q.nonnegative(-1)) is False + assert satask(Q.nonnegative(0)) is True + assert satask(Q.nonnegative(I)) is False + assert satask(Q.nonnegative(pi)) is True + + +def test_rational_irrational(): + assert satask(Q.irrational(2)) is False + assert satask(Q.rational(2)) is True + assert satask(Q.irrational(pi)) is True + assert satask(Q.rational(pi)) is False + assert satask(Q.irrational(I)) is False + assert satask(Q.rational(I)) is False + + assert satask(Q.irrational(x*y*z), Q.irrational(x) & Q.irrational(y) & + Q.rational(z)) is None + assert satask(Q.irrational(x*y*z), Q.irrational(x) & Q.rational(y) & + Q.rational(z)) is True + assert satask(Q.irrational(pi*x*y), Q.rational(x) & Q.rational(y)) is True + + assert satask(Q.irrational(x + y + z), Q.irrational(x) & Q.irrational(y) & + Q.rational(z)) is None + assert satask(Q.irrational(x + y + z), Q.irrational(x) & Q.rational(y) & + Q.rational(z)) is True + assert satask(Q.irrational(pi + x + y), Q.rational(x) & Q.rational(y)) is True + + assert satask(Q.irrational(x*y*z), Q.rational(x) & Q.rational(y) & + Q.rational(z)) is False + assert satask(Q.rational(x*y*z), Q.rational(x) & Q.rational(y) & + Q.rational(z)) is True + + assert satask(Q.irrational(x + y + z), Q.rational(x) & Q.rational(y) & + Q.rational(z)) is False + assert satask(Q.rational(x + y + z), Q.rational(x) & Q.rational(y) & + Q.rational(z)) is True + + +def test_even_satask(): + assert satask(Q.even(2)) is True + assert satask(Q.even(3)) is False + + assert satask(Q.even(x*y), Q.even(x) & Q.odd(y)) is True + assert satask(Q.even(x*y), Q.even(x) & Q.integer(y)) is True + assert satask(Q.even(x*y), Q.even(x) & Q.even(y)) is True + assert satask(Q.even(x*y), Q.odd(x) & Q.odd(y)) is False + assert satask(Q.even(x*y), Q.even(x)) is None + assert satask(Q.even(x*y), Q.odd(x) & Q.integer(y)) is None + assert satask(Q.even(x*y), Q.odd(x) & Q.odd(y)) is False + + assert satask(Q.even(abs(x)), Q.even(x)) is True + assert satask(Q.even(abs(x)), Q.odd(x)) is False + assert satask(Q.even(x), Q.even(abs(x))) is None # x could be complex + + +def test_odd_satask(): + assert satask(Q.odd(2)) is False + assert satask(Q.odd(3)) is True + + assert satask(Q.odd(x*y), Q.even(x) & Q.odd(y)) is False + assert satask(Q.odd(x*y), Q.even(x) & Q.integer(y)) is False + assert satask(Q.odd(x*y), Q.even(x) & Q.even(y)) is False + assert satask(Q.odd(x*y), Q.odd(x) & Q.odd(y)) is True + assert satask(Q.odd(x*y), Q.even(x)) is None + assert satask(Q.odd(x*y), Q.odd(x) & Q.integer(y)) is None + assert satask(Q.odd(x*y), Q.odd(x) & Q.odd(y)) is True + + assert satask(Q.odd(abs(x)), Q.even(x)) is False + assert satask(Q.odd(abs(x)), Q.odd(x)) is True + assert satask(Q.odd(x), Q.odd(abs(x))) is None # x could be complex + + +def test_integer(): + assert satask(Q.integer(1)) is True + assert satask(Q.integer(S.Half)) is False + + assert satask(Q.integer(x + y), Q.integer(x) & Q.integer(y)) is True + assert satask(Q.integer(x + y), Q.integer(x)) is None + + assert satask(Q.integer(x + y), Q.integer(x) & ~Q.integer(y)) is False + assert satask(Q.integer(x + y + z), Q.integer(x) & Q.integer(y) & + ~Q.integer(z)) is False + assert satask(Q.integer(x + y + z), Q.integer(x) & ~Q.integer(y) & + ~Q.integer(z)) is None + assert satask(Q.integer(x + y + z), Q.integer(x) & ~Q.integer(y)) is None + assert satask(Q.integer(x + y), Q.integer(x) & Q.irrational(y)) is False + + assert satask(Q.integer(x*y), Q.integer(x) & Q.integer(y)) is True + assert satask(Q.integer(x*y), Q.integer(x)) is None + + assert satask(Q.integer(x*y), Q.integer(x) & ~Q.integer(y)) is None + assert satask(Q.integer(x*y), Q.integer(x) & ~Q.rational(y)) is False + assert satask(Q.integer(x*y*z), Q.integer(x) & Q.integer(y) & + ~Q.rational(z)) is False + assert satask(Q.integer(x*y*z), Q.integer(x) & ~Q.rational(y) & + ~Q.rational(z)) is None + assert satask(Q.integer(x*y*z), Q.integer(x) & ~Q.rational(y)) is None + assert satask(Q.integer(x*y), Q.integer(x) & Q.irrational(y)) is False + + +def test_abs(): + assert satask(Q.nonnegative(abs(x))) is True + assert satask(Q.positive(abs(x)), ~Q.zero(x)) is True + assert satask(Q.zero(x), ~Q.zero(abs(x))) is False + assert satask(Q.zero(x), Q.zero(abs(x))) is True + assert satask(Q.nonzero(x), ~Q.zero(abs(x))) is None # x could be complex + assert satask(Q.zero(abs(x)), Q.zero(x)) is True + + +def test_imaginary(): + assert satask(Q.imaginary(2*I)) is True + assert satask(Q.imaginary(x*y), Q.imaginary(x)) is None + assert satask(Q.imaginary(x*y), Q.imaginary(x) & Q.real(y)) is True + assert satask(Q.imaginary(x), Q.real(x)) is False + assert satask(Q.imaginary(1)) is False + assert satask(Q.imaginary(x*y), Q.real(x) & Q.real(y)) is False + assert satask(Q.imaginary(x + y), Q.real(x) & Q.real(y)) is False + + +def test_real(): + assert satask(Q.real(x*y), Q.real(x) & Q.real(y)) is True + assert satask(Q.real(x + y), Q.real(x) & Q.real(y)) is True + assert satask(Q.real(x*y*z), Q.real(x) & Q.real(y) & Q.real(z)) is True + assert satask(Q.real(x*y*z), Q.real(x) & Q.real(y)) is None + assert satask(Q.real(x*y*z), Q.real(x) & Q.real(y) & Q.imaginary(z)) is False + assert satask(Q.real(x + y + z), Q.real(x) & Q.real(y) & Q.real(z)) is True + assert satask(Q.real(x + y + z), Q.real(x) & Q.real(y)) is None + + +def test_pos_neg(): + assert satask(~Q.positive(x), Q.negative(x)) is True + assert satask(~Q.negative(x), Q.positive(x)) is True + assert satask(Q.positive(x + y), Q.positive(x) & Q.positive(y)) is True + assert satask(Q.negative(x + y), Q.negative(x) & Q.negative(y)) is True + assert satask(Q.positive(x + y), Q.negative(x) & Q.negative(y)) is False + assert satask(Q.negative(x + y), Q.positive(x) & Q.positive(y)) is False + + +def test_pow_pos_neg(): + assert satask(Q.nonnegative(x**2), Q.positive(x)) is True + assert satask(Q.nonpositive(x**2), Q.positive(x)) is False + assert satask(Q.positive(x**2), Q.positive(x)) is True + assert satask(Q.negative(x**2), Q.positive(x)) is False + assert satask(Q.real(x**2), Q.positive(x)) is True + + assert satask(Q.nonnegative(x**2), Q.negative(x)) is True + assert satask(Q.nonpositive(x**2), Q.negative(x)) is False + assert satask(Q.positive(x**2), Q.negative(x)) is True + assert satask(Q.negative(x**2), Q.negative(x)) is False + assert satask(Q.real(x**2), Q.negative(x)) is True + + assert satask(Q.nonnegative(x**2), Q.nonnegative(x)) is True + assert satask(Q.nonpositive(x**2), Q.nonnegative(x)) is None + assert satask(Q.positive(x**2), Q.nonnegative(x)) is None + assert satask(Q.negative(x**2), Q.nonnegative(x)) is False + assert satask(Q.real(x**2), Q.nonnegative(x)) is True + + assert satask(Q.nonnegative(x**2), Q.nonpositive(x)) is True + assert satask(Q.nonpositive(x**2), Q.nonpositive(x)) is None + assert satask(Q.positive(x**2), Q.nonpositive(x)) is None + assert satask(Q.negative(x**2), Q.nonpositive(x)) is False + assert satask(Q.real(x**2), Q.nonpositive(x)) is True + + assert satask(Q.nonnegative(x**3), Q.positive(x)) is True + assert satask(Q.nonpositive(x**3), Q.positive(x)) is False + assert satask(Q.positive(x**3), Q.positive(x)) is True + assert satask(Q.negative(x**3), Q.positive(x)) is False + assert satask(Q.real(x**3), Q.positive(x)) is True + + assert satask(Q.nonnegative(x**3), Q.negative(x)) is False + assert satask(Q.nonpositive(x**3), Q.negative(x)) is True + assert satask(Q.positive(x**3), Q.negative(x)) is False + assert satask(Q.negative(x**3), Q.negative(x)) is True + assert satask(Q.real(x**3), Q.negative(x)) is True + + assert satask(Q.nonnegative(x**3), Q.nonnegative(x)) is True + assert satask(Q.nonpositive(x**3), Q.nonnegative(x)) is None + assert satask(Q.positive(x**3), Q.nonnegative(x)) is None + assert satask(Q.negative(x**3), Q.nonnegative(x)) is False + assert satask(Q.real(x**3), Q.nonnegative(x)) is True + + assert satask(Q.nonnegative(x**3), Q.nonpositive(x)) is None + assert satask(Q.nonpositive(x**3), Q.nonpositive(x)) is True + assert satask(Q.positive(x**3), Q.nonpositive(x)) is False + assert satask(Q.negative(x**3), Q.nonpositive(x)) is None + assert satask(Q.real(x**3), Q.nonpositive(x)) is True + + # If x is zero, x**negative is not real. + assert satask(Q.nonnegative(x**-2), Q.nonpositive(x)) is None + assert satask(Q.nonpositive(x**-2), Q.nonpositive(x)) is None + assert satask(Q.positive(x**-2), Q.nonpositive(x)) is None + assert satask(Q.negative(x**-2), Q.nonpositive(x)) is None + assert satask(Q.real(x**-2), Q.nonpositive(x)) is None + + # We could deduce things for negative powers if x is nonzero, but it + # isn't implemented yet. + + +def test_prime_composite(): + assert satask(Q.prime(x), Q.composite(x)) is False + assert satask(Q.composite(x), Q.prime(x)) is False + assert satask(Q.composite(x), ~Q.prime(x)) is None + assert satask(Q.prime(x), ~Q.composite(x)) is None + # since 1 is neither prime nor composite the following should hold + assert satask(Q.prime(x), Q.integer(x) & Q.positive(x) & ~Q.composite(x)) is None + assert satask(Q.prime(2)) is True + assert satask(Q.prime(4)) is False + assert satask(Q.prime(1)) is False + assert satask(Q.composite(1)) is False + + +def test_extract_predargs(): + props = CNF.from_prop(Q.zero(Abs(x*y)) & Q.zero(x*y)) + assump = CNF.from_prop(Q.zero(x)) + context = CNF.from_prop(Q.zero(y)) + assert extract_predargs(props) == {Abs(x*y), x*y} + assert extract_predargs(props, assump) == {Abs(x*y), x*y, x} + assert extract_predargs(props, assump, context) == {Abs(x*y), x*y, x, y} + + props = CNF.from_prop(Eq(x, y)) + assump = CNF.from_prop(Gt(y, z)) + assert extract_predargs(props, assump) == {x, y, z} + + +def test_get_relevant_clsfacts(): + exprs = {Abs(x*y)} + exprs, facts = get_relevant_clsfacts(exprs) + assert exprs == {x*y} + assert facts.clauses == \ + {frozenset({Literal(Q.odd(Abs(x*y)), False), Literal(Q.odd(x*y), True)}), + frozenset({Literal(Q.zero(Abs(x*y)), False), Literal(Q.zero(x*y), True)}), + frozenset({Literal(Q.even(Abs(x*y)), False), Literal(Q.even(x*y), True)}), + frozenset({Literal(Q.zero(Abs(x*y)), True), Literal(Q.zero(x*y), False)}), + frozenset({Literal(Q.even(Abs(x*y)), False), + Literal(Q.odd(Abs(x*y)), False), + Literal(Q.odd(x*y), True)}), + frozenset({Literal(Q.even(Abs(x*y)), False), + Literal(Q.even(x*y), True), + Literal(Q.odd(Abs(x*y)), False)}), + frozenset({Literal(Q.positive(Abs(x*y)), False), + Literal(Q.zero(Abs(x*y)), False)})} diff --git a/shared/package-files/20/208b7e9598f4589a8ae2b9946732993f8189944f0a504b45615b98f7a7a4e4c4/sjisprober.py b/shared/package-files/20/208b7e9598f4589a8ae2b9946732993f8189944f0a504b45615b98f7a7a4e4c4/sjisprober.py new file mode 100644 index 0000000000000000000000000000000000000000..9e29623bdc54a7c6d11bcc167d71bb44cc9be39d --- /dev/null +++ b/shared/package-files/20/208b7e9598f4589a8ae2b9946732993f8189944f0a504b45615b98f7a7a4e4c4/sjisprober.py @@ -0,0 +1,92 @@ +######################## BEGIN LICENSE BLOCK ######################## +# The Original Code is mozilla.org code. +# +# The Initial Developer of the Original Code is +# Netscape Communications Corporation. +# Portions created by the Initial Developer are Copyright (C) 1998 +# the Initial Developer. All Rights Reserved. +# +# Contributor(s): +# Mark Pilgrim - port to Python +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA +# 02110-1301 USA +######################### END LICENSE BLOCK ######################### + +from .mbcharsetprober import MultiByteCharSetProber +from .codingstatemachine import CodingStateMachine +from .chardistribution import SJISDistributionAnalysis +from .jpcntx import SJISContextAnalysis +from .mbcssm import SJIS_SM_MODEL +from .enums import ProbingState, MachineState + + +class SJISProber(MultiByteCharSetProber): + def __init__(self): + super(SJISProber, self).__init__() + self.coding_sm = CodingStateMachine(SJIS_SM_MODEL) + self.distribution_analyzer = SJISDistributionAnalysis() + self.context_analyzer = SJISContextAnalysis() + self.reset() + + def reset(self): + super(SJISProber, self).reset() + self.context_analyzer.reset() + + @property + def charset_name(self): + return self.context_analyzer.charset_name + + @property + def language(self): + return "Japanese" + + def feed(self, byte_str): + for i in range(len(byte_str)): + coding_state = self.coding_sm.next_state(byte_str[i]) + if coding_state == MachineState.ERROR: + self.logger.debug('%s %s prober hit error at byte %s', + self.charset_name, self.language, i) + self._state = ProbingState.NOT_ME + break + elif coding_state == MachineState.ITS_ME: + self._state = ProbingState.FOUND_IT + break + elif coding_state == MachineState.START: + char_len = self.coding_sm.get_current_charlen() + if i == 0: + self._last_char[1] = byte_str[0] + self.context_analyzer.feed(self._last_char[2 - char_len:], + char_len) + self.distribution_analyzer.feed(self._last_char, char_len) + else: + self.context_analyzer.feed(byte_str[i + 1 - char_len:i + 3 + - char_len], char_len) + self.distribution_analyzer.feed(byte_str[i - 1:i + 1], + char_len) + + self._last_char[0] = byte_str[-1] + + if self.state == ProbingState.DETECTING: + if (self.context_analyzer.got_enough_data() and + (self.get_confidence() > self.SHORTCUT_THRESHOLD)): + self._state = ProbingState.FOUND_IT + + return self.state + + def get_confidence(self): + context_conf = self.context_analyzer.get_confidence() + distrib_conf = self.distribution_analyzer.get_confidence() + return max(context_conf, distrib_conf) diff --git a/shared/package-files/20/20946b25b673badba4be5ec4aac9043aa95ada4e047dc36c6cd16cf0044864fd/make_arma.py b/shared/package-files/20/20946b25b673badba4be5ec4aac9043aa95ada4e047dc36c6cd16cf0044864fd/make_arma.py new file mode 100644 index 0000000000000000000000000000000000000000..7699c5d4dd700a40e074857168ec937cfe9fe002 --- /dev/null +++ b/shared/package-files/20/20946b25b673badba4be5ec4aac9043aa95ada4e047dc36c6cd16cf0044864fd/make_arma.py @@ -0,0 +1,117 @@ +import numpy as np + +from statsmodels.iolib import savetxt +from statsmodels.tsa.arima_process import arma_generate_sample + +rs = np.random.RandomState(12345) + +# no constant +y_arma11 = arma_generate_sample( + [1.0, -0.75], [1.0, 0.35], nsample=250, distrvs=rs.standard_normal +) +y_arma14 = arma_generate_sample( + [1.0, -0.75], [1.0, 0.35, -0.75, 0.1, 0.35], nsample=250, distrvs=rs.standard_normal +) +y_arma41 = arma_generate_sample( + [1.0, -0.75, 0.25, 0.25, -0.75], + [1.0, 0.35], + nsample=250, + distrvs=rs.standard_normal, +) +y_arma22 = arma_generate_sample( + [1.0, -0.75, 0.45], [1.0, 0.35, -0.9], nsample=250, distrvs=rs.standard_normal +) + +y_arma50 = arma_generate_sample( + [1.0, -0.75, 0.35, -0.3, -0.2, 0.1], [1.0], nsample=250, distrvs=rs.standard_normal +) + +y_arma02 = arma_generate_sample( + [1.0], [1.0, 0.35, -0.75], nsample=250, distrvs=rs.standard_normal +) + + +# constant +constant = 4.5 +y_arma11c = ( + arma_generate_sample( + [1.0, -0.75], [1.0, 0.35], nsample=250, distrvs=rs.standard_normal + ) + + constant +) +y_arma14c = ( + arma_generate_sample( + [1.0, -0.75], + [1.0, 0.35, -0.75, 0.1, 0.35], + nsample=250, + distrvs=rs.standard_normal, + ) + + constant +) +y_arma41c = ( + arma_generate_sample( + [1.0, -0.75, 0.25, 0.25, -0.75], + [1.0, 0.35], + nsample=250, + distrvs=rs.standard_normal, + ) + + constant +) +y_arma22c = ( + arma_generate_sample( + [1.0, -0.75, 0.45], [1.0, 0.35, -0.9], nsample=250, distrvs=rs.standard_normal + ) + + constant +) + +y_arma50c = ( + arma_generate_sample( + [1.0, -0.75, 0.35, -0.3, -0.2, 0.1], + [1.0], + nsample=250, + distrvs=rs.standard_normal, + ) + + constant +) + +y_arma02c = ( + arma_generate_sample( + [1.0], [1.0, 0.35, -0.75], nsample=250, distrvs=rs.standard_normal + ) + + constant +) + +savetxt( + "y_arma_data.csv", + np.column_stack( + ( + y_arma11, + y_arma14, + y_arma41, + y_arma22, + y_arma50, + y_arma02, + y_arma11c, + y_arma14c, + y_arma41c, + y_arma22c, + y_arma50c, + y_arma02c, + ) + ), + names=[ + "y_arma11", + "y_arma14", + "y_arma41", + "y_arma22", + "y_arma50", + "y_arma02", + "y_arma11c", + "y_arma14c", + "y_arma41c", + "y_arma22c", + "y_arma50c", + "y_arma02c", + ], + delimiter=",", +) diff --git a/shared/package-files/20/209b26a824bd2eb4c3a19d7528f9a8f94388ef112c90becdc9db8424d3cc36ab/test_special.py b/shared/package-files/20/209b26a824bd2eb4c3a19d7528f9a8f94388ef112c90becdc9db8424d3cc36ab/test_special.py new file mode 100644 index 0000000000000000000000000000000000000000..1fa79605b484f57ed6cbd17762b21a23406ee006 --- /dev/null +++ b/shared/package-files/20/209b26a824bd2eb4c3a19d7528f9a8f94388ef112c90becdc9db8424d3cc36ab/test_special.py @@ -0,0 +1,131 @@ +import networkx as nx + +from .test_digraph import BaseDiGraphTester +from .test_digraph import TestDiGraph as _TestDiGraph +from .test_graph import BaseGraphTester +from .test_graph import TestGraph as _TestGraph +from .test_multidigraph import TestMultiDiGraph as _TestMultiDiGraph +from .test_multigraph import TestMultiGraph as _TestMultiGraph + + +def test_factories(): + class mydict1(dict): + pass + + class mydict2(dict): + pass + + class mydict3(dict): + pass + + class mydict4(dict): + pass + + class mydict5(dict): + pass + + for Graph in (nx.Graph, nx.DiGraph, nx.MultiGraph, nx.MultiDiGraph): + # print("testing class: ", Graph.__name__) + class MyGraph(Graph): + node_dict_factory = mydict1 + adjlist_outer_dict_factory = mydict2 + adjlist_inner_dict_factory = mydict3 + edge_key_dict_factory = mydict4 + edge_attr_dict_factory = mydict5 + + G = MyGraph() + assert isinstance(G._node, mydict1) + assert isinstance(G._adj, mydict2) + G.add_node(1) + assert isinstance(G._adj[1], mydict3) + if G.is_directed(): + assert isinstance(G._pred, mydict2) + assert isinstance(G._succ, mydict2) + assert isinstance(G._pred[1], mydict3) + G.add_edge(1, 2) + if G.is_multigraph(): + assert isinstance(G._adj[1][2], mydict4) + assert isinstance(G._adj[1][2][0], mydict5) + else: + assert isinstance(G._adj[1][2], mydict5) + + +class TestSpecialGraph(_TestGraph): + def setup_method(self): + _TestGraph.setup_method(self) + self.Graph = nx.Graph + + +class TestThinGraph(BaseGraphTester): + def setup_method(self): + all_edge_dict = {"weight": 1} + + class MyGraph(nx.Graph): + def edge_attr_dict_factory(self): + return all_edge_dict + + self.Graph = MyGraph + # build dict-of-dict-of-dict K3 + ed1, ed2, ed3 = (all_edge_dict, all_edge_dict, all_edge_dict) + self.k3adj = {0: {1: ed1, 2: ed2}, 1: {0: ed1, 2: ed3}, 2: {0: ed2, 1: ed3}} + self.k3edges = [(0, 1), (0, 2), (1, 2)] + self.k3nodes = [0, 1, 2] + self.K3 = self.Graph() + self.K3._adj = self.k3adj + self.K3._node = {} + self.K3._node[0] = {} + self.K3._node[1] = {} + self.K3._node[2] = {} + + +class TestSpecialDiGraph(_TestDiGraph): + def setup_method(self): + _TestDiGraph.setup_method(self) + self.Graph = nx.DiGraph + + +class TestThinDiGraph(BaseDiGraphTester): + def setup_method(self): + all_edge_dict = {"weight": 1} + + class MyGraph(nx.DiGraph): + def edge_attr_dict_factory(self): + return all_edge_dict + + self.Graph = MyGraph + # build dict-of-dict-of-dict K3 + ed1, ed2, ed3 = (all_edge_dict, all_edge_dict, all_edge_dict) + ed4, ed5, ed6 = (all_edge_dict, all_edge_dict, all_edge_dict) + self.k3adj = {0: {1: ed1, 2: ed2}, 1: {0: ed3, 2: ed4}, 2: {0: ed5, 1: ed6}} + self.k3edges = [(0, 1), (0, 2), (1, 2)] + self.k3nodes = [0, 1, 2] + self.K3 = self.Graph() + self.K3._succ = self.k3adj + # K3._adj is synced with K3._succ + self.K3._pred = {0: {1: ed3, 2: ed5}, 1: {0: ed1, 2: ed6}, 2: {0: ed2, 1: ed4}} + self.K3._node = {} + self.K3._node[0] = {} + self.K3._node[1] = {} + self.K3._node[2] = {} + + ed1, ed2 = (all_edge_dict, all_edge_dict) + self.P3 = self.Graph() + self.P3._succ = {0: {1: ed1}, 1: {2: ed2}, 2: {}} + # P3._adj is synced with P3._succ + self.P3._pred = {0: {}, 1: {0: ed1}, 2: {1: ed2}} + self.P3._node = {} + self.P3._node[0] = {} + self.P3._node[1] = {} + self.P3._node[2] = {} + + +class TestSpecialMultiGraph(_TestMultiGraph): + def setup_method(self): + _TestMultiGraph.setup_method(self) + self.Graph = nx.MultiGraph + + +class TestSpecialMultiDiGraph(_TestMultiDiGraph): + def setup_method(self): + _TestMultiDiGraph.setup_method(self) + self.Graph = nx.MultiDiGraph diff --git a/shared/package-files/20/20a1e017436718523483b9bcd55201b373b0ee603a3ea6b16bb4bd734c80b6d3/special_hermite_polynomial_he_meta_dispatch.h b/shared/package-files/20/20a1e017436718523483b9bcd55201b373b0ee603a3ea6b16bb4bd734c80b6d3/special_hermite_polynomial_he_meta_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..4b0ae95104ca4b441bc8ef7b57f3119958b64b7c --- /dev/null +++ b/shared/package-files/20/20a1e017436718523483b9bcd55201b373b0ee603a3ea6b16bb4bd734c80b6d3/special_hermite_polynomial_he_meta_dispatch.h @@ -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_hermite_polynomial_he(const at::Tensor & x, const at::Tensor & n); +TORCH_API at::Tensor & special_hermite_polynomial_he_out(at::Tensor & out, const at::Tensor & x, const at::Tensor & n); +TORCH_API at::Tensor & special_hermite_polynomial_he_outf(const at::Tensor & x, const at::Tensor & n, at::Tensor & out); + +} // namespace meta +} // namespace at diff --git a/shared/package-files/20/20b1ae361d14342da2eda3009e1a745c3e6d408e0306a209383451c0ac4bf587/_functional_sym_constrain_range_for_size_compositeexplicitautograd_dispatch.h b/shared/package-files/20/20b1ae361d14342da2eda3009e1a745c3e6d408e0306a209383451c0ac4bf587/_functional_sym_constrain_range_for_size_compositeexplicitautograd_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..7d2c5a7b75e7134630dd719ef68a7b22ad1e4ec3 --- /dev/null +++ b/shared/package-files/20/20b1ae361d14342da2eda3009e1a745c3e6d408e0306a209383451c0ac4bf587/_functional_sym_constrain_range_for_size_compositeexplicitautograd_dispatch.h @@ -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 _functional_sym_constrain_range_for_size(const at::Scalar & size, c10::optional min, c10::optional max, const at::Tensor & dep_token); + +} // namespace compositeexplicitautograd +} // namespace at diff --git a/shared/package-files/20/20b5677df5c74e1b9a9048f78732afe2eb26b7cac809d5e949305e58acfb8d4e/timer_callgrind_template.cpp b/shared/package-files/20/20b5677df5c74e1b9a9048f78732afe2eb26b7cac809d5e949305e58acfb8d4e/timer_callgrind_template.cpp new file mode 100644 index 0000000000000000000000000000000000000000..587685c7df7445b299c35462307f47cf6012a00d --- /dev/null +++ b/shared/package-files/20/20b5677df5c74e1b9a9048f78732afe2eb26b7cac809d5e949305e58acfb8d4e/timer_callgrind_template.cpp @@ -0,0 +1,68 @@ +/* C++ template for Timer.collect_callgrind + +This template will be consumed by `cpp_jit.py`, and will replace: + `GLOBAL_SETUP_TEMPLATE_LOCATION`, + `SETUP_TEMPLATE_LOCATION` + and + `STMT_TEMPLATE_LOCATION` +sections with user provided statements. +*/ + +#include +#include +#include + +#include + +// Global setup. (e.g. #includes) +// GLOBAL_SETUP_TEMPLATE_LOCATION + +#if defined(NVALGRIND) +static_assert(false); +#endif + +int main(int argc, char* argv[]) { + // This file should only be called inside of `Timer`, so we can adopt a + // very simple and rigid argument parsing scheme. + TORCH_CHECK(argc == 9); + TORCH_CHECK(std::string(argv[1]) == "--number"); + auto number = std::stoi(argv[2]); + + TORCH_CHECK( + std::string(argv[3]) == "--number-warmup" || + std::string(argv[3]) == "--number_warmup"); + auto number_warmup = std::stoi(argv[4]); + + TORCH_CHECK(std::string(argv[5]) == "--repeats"); + auto repeats = std::stoi(argv[6]); + + TORCH_CHECK( + std::string(argv[7]) == "--number-threads" || + std::string(argv[7]) == "--number_threads"); + auto number_threads = std::stoi(argv[8]); + torch::set_num_threads(number_threads); + + // Setup + // SETUP_TEMPLATE_LOCATION + + // Warmup + for (const auto i : c10::irange(number_warmup)) { + (void)i; + // STMT_TEMPLATE_LOCATION + } + + // Main loop + for (const auto repeat : c10::irange(repeats)) { + (void)repeat; + CALLGRIND_TOGGLE_COLLECT; + + for (const auto i : c10::irange(number)) { + (void)i; + // STMT_TEMPLATE_LOCATION + } + + // NB: See note in Module.cpp + CALLGRIND_TOGGLE_COLLECT; + CALLGRIND_DUMP_STATS; + } +} diff --git a/shared/package-files/20/20b92088a5c937a4724741639a6bfc13c2ee441228047fcfea55267a76dff07a/samplers.h b/shared/package-files/20/20b92088a5c937a4724741639a6bfc13c2ee441228047fcfea55267a76dff07a/samplers.h new file mode 100644 index 0000000000000000000000000000000000000000..928a2412aa76f8a22574b433a2f61152c45ae5c7 --- /dev/null +++ b/shared/package-files/20/20b92088a5c937a4724741639a6bfc13c2ee441228047fcfea55267a76dff07a/samplers.h @@ -0,0 +1,9 @@ +#pragma once + +#include +#include +#include +#include +#include +#include +#include diff --git a/shared/package-files/20/20c5963284a8588480c61ac63358740adf4675efc9fdeaec2b7efcf972f36418/unbind.h b/shared/package-files/20/20c5963284a8588480c61ac63358740adf4675efc9fdeaec2b7efcf972f36418/unbind.h new file mode 100644 index 0000000000000000000000000000000000000000..b540322d4810c3c7859de27c9ed710ac610a895a --- /dev/null +++ b/shared/package-files/20/20c5963284a8588480c61ac63358740adf4675efc9fdeaec2b7efcf972f36418/unbind.h @@ -0,0 +1,35 @@ +#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::unbind.int(Tensor(a -> *) self, int dim=0) -> Tensor(a)[] +inline ::std::vector unbind(const at::Tensor & self, int64_t dim=0) { + return at::_ops::unbind_int::call(self, dim); +} + +// aten::unbind.Dimname(Tensor(a -> *) self, Dimname dim) -> Tensor(a)[] +inline ::std::vector unbind(const at::Tensor & self, at::Dimname dim) { + return at::_ops::unbind_Dimname::call(self, dim); +} + +} diff --git a/shared/package-files/20/20c5b08e5d568a979d4888942ee6c58d9816f006d05c8331125163c697828123/cfa_tvpvar_state_variates.csv b/shared/package-files/20/20c5b08e5d568a979d4888942ee6c58d9816f006d05c8331125163c697828123/cfa_tvpvar_state_variates.csv new file mode 100644 index 0000000000000000000000000000000000000000..ca57add3902aa90cc07b1b82b336cf5341ae8f2e --- /dev/null +++ b/shared/package-files/20/20c5b08e5d568a979d4888942ee6c58d9816f006d05c8331125163c697828123/cfa_tvpvar_state_variates.csv @@ -0,0 +1,12 @@ +-0.947246644,-0.4449063111,0.4571116584,-0.5424127619,-0.3297297506,0.3318497885,-0.2091003635,0.5835559493,-0.5438616829 +0.5401497471,1.328385816,0.9217208994,0.56756647,1.232581581,-1.157487504,0.4785859509,0.09066689926,0.4133415578 +-0.216602141,0.8338025892,-0.197341696,-2.81967642,-0.5426757572,0.6024405825,-3.217048828,-1.028087556,0.1211928266 +1.189031975,0.604446392,0.07550348852,-0.213634975,0.1944663459,0.5431095945,-1.196273203,0.1746105574,1.232110203 +1.316987832,-0.1066715459,0.008886920028,1.173155915,1.225311592,-0.6967757269,-2.404704988,-0.7030494789,0.3839698114 +-0.4056288697,0.003015329405,0.8388310988,0.4403838645,-0.3865130695,1.869626191,0.9131969548,0.01018904778,1.312969963 +1.617571622,-0.5654627119,-0.1102912312,0.6864196716,-1.130402467,-0.6255128646,0.4586770027,0.1888608332,-1.31368056 +0.2361436192,0.2086197024,2.275162905,0.9282924741,-0.9768565366,0.1887168764,-0.297145674,-1.513478192,1.26604618 +1.537520252,-2.050301487,1.324125186,0.9140835153,-0.3513907032,1.246739597,0.1290787742,-0.438831007,0.4180536703 +0.1051233197,2.04857822,-0.9497365045,1.174640647,0.5252241462,-0.6394786575,-1.388014885,1.289652295,-0.5465044754 +2.572297138,-0.3172082979,-0.4687798291,0.3911988451,-1.42233116,-2.016211539,1.466606257,-0.7116658836,-1.446159277 +-1.456372284,-1.160914638,-1.234803835,0.2618937493,-1.241007204,-1.524960216,1.577449141,0.242499696,0.5314071517 diff --git a/shared/package-files/20/20c64d743f8bb527521242f630faa3b9b8e770cb712a2c9c41720ab7e0488e3e/cu2qu.py b/shared/package-files/20/20c64d743f8bb527521242f630faa3b9b8e770cb712a2c9c41720ab7e0488e3e/cu2qu.py new file mode 100644 index 0000000000000000000000000000000000000000..0e58ae2773a1d76f6e380d46bf270ee4c8430664 --- /dev/null +++ b/shared/package-files/20/20c64d743f8bb527521242f630faa3b9b8e770cb712a2c9c41720ab7e0488e3e/cu2qu.py @@ -0,0 +1,568 @@ +# cython: language_level=3 +# distutils: define_macros=CYTHON_TRACE_NOGIL=1 + +# Copyright 2015 Google Inc. All Rights Reserved. +# +# Licensed 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. + +try: + import cython +except (AttributeError, ImportError): + # if cython not installed, use mock module with no-op decorators and types + from fontTools.misc import cython +COMPILED = cython.compiled + +import math + +from .errors import Error as Cu2QuError, ApproxNotFoundError + +__all__ = ["curve_to_quadratic", "curves_to_quadratic"] + +MAX_N = 100 + +NAN = float("NaN") + + +@cython.cfunc +@cython.inline +@cython.returns(cython.double) +@cython.locals(v1=cython.complex, v2=cython.complex, result=cython.double) +def dot(v1, v2): + """Return the dot product of two vectors. + + Args: + v1 (complex): First vector. + v2 (complex): Second vector. + + Returns: + double: Dot product. + """ + result = (v1 * v2.conjugate()).real + # When vectors are perpendicular (i.e. dot product is 0), the above expression may + # yield slightly different results when running in pure Python vs C/Cython, + # both of which are correct within IEEE-754 floating-point precision. + # It's probably due to the different order of operations and roundings in each + # implementation. Because we are using the result in a denominator and catching + # ZeroDivisionError (see `calc_intersect`), it's best to normalize the result here. + if abs(result) < 1e-15: + result = 0.0 + return result + + +@cython.cfunc +@cython.locals(z=cython.complex, den=cython.double) +@cython.locals(zr=cython.double, zi=cython.double) +def _complex_div_by_real(z, den): + """Divide complex by real using Python's method (two separate divisions). + + This ensures bit-exact compatibility with Python's complex division, + avoiding C's multiply-by-reciprocal optimization that can cause 1 ULP differences + on some platforms/compilers (e.g. clang on macOS arm64). + + https://github.com/fonttools/fonttools/issues/3928 + """ + zr = z.real + zi = z.imag + return complex(zr / den, zi / den) + + +@cython.cfunc +@cython.inline +@cython.locals(a=cython.complex, b=cython.complex, c=cython.complex, d=cython.complex) +@cython.locals( + _1=cython.complex, _2=cython.complex, _3=cython.complex, _4=cython.complex +) +def calc_cubic_points(a, b, c, d): + _1 = d + _2 = _complex_div_by_real(c, 3.0) + d + _3 = _complex_div_by_real(b + c, 3.0) + _2 + _4 = a + d + c + b + return _1, _2, _3, _4 + + +@cython.cfunc +@cython.inline +@cython.locals( + p0=cython.complex, p1=cython.complex, p2=cython.complex, p3=cython.complex +) +@cython.locals(a=cython.complex, b=cython.complex, c=cython.complex, d=cython.complex) +def calc_cubic_parameters(p0, p1, p2, p3): + c = (p1 - p0) * 3.0 + b = (p2 - p1) * 3.0 - c + d = p0 + a = p3 - d - c - b + return a, b, c, d + + +@cython.cfunc +@cython.inline +@cython.locals( + p0=cython.complex, p1=cython.complex, p2=cython.complex, p3=cython.complex +) +def split_cubic_into_n_iter(p0, p1, p2, p3, n): + """Split a cubic Bezier into n equal parts. + + Splits the curve into `n` equal parts by curve time. + (t=0..1/n, t=1/n..2/n, ...) + + Args: + p0 (complex): Start point of curve. + p1 (complex): First handle of curve. + p2 (complex): Second handle of curve. + p3 (complex): End point of curve. + + Returns: + An iterator yielding the control points (four complex values) of the + subcurves. + """ + # Hand-coded special-cases + if n == 2: + return iter(split_cubic_into_two(p0, p1, p2, p3)) + if n == 3: + return iter(split_cubic_into_three(p0, p1, p2, p3)) + if n == 4: + a, b = split_cubic_into_two(p0, p1, p2, p3) + return iter( + split_cubic_into_two(a[0], a[1], a[2], a[3]) + + split_cubic_into_two(b[0], b[1], b[2], b[3]) + ) + if n == 6: + a, b = split_cubic_into_two(p0, p1, p2, p3) + return iter( + split_cubic_into_three(a[0], a[1], a[2], a[3]) + + split_cubic_into_three(b[0], b[1], b[2], b[3]) + ) + + return _split_cubic_into_n_gen(p0, p1, p2, p3, n) + + +@cython.locals( + p0=cython.complex, + p1=cython.complex, + p2=cython.complex, + p3=cython.complex, + n=cython.int, +) +@cython.locals(a=cython.complex, b=cython.complex, c=cython.complex, d=cython.complex) +@cython.locals( + dt=cython.double, delta_2=cython.double, delta_3=cython.double, i=cython.int +) +@cython.locals( + a1=cython.complex, b1=cython.complex, c1=cython.complex, d1=cython.complex +) +def _split_cubic_into_n_gen(p0, p1, p2, p3, n): + a, b, c, d = calc_cubic_parameters(p0, p1, p2, p3) + dt = 1 / n + delta_2 = dt * dt + delta_3 = dt * delta_2 + for i in range(n): + t1 = i * dt + t1_2 = t1 * t1 + # calc new a, b, c and d + a1 = a * delta_3 + b1 = (3 * a * t1 + b) * delta_2 + c1 = (2 * b * t1 + c + 3 * a * t1_2) * dt + d1 = a * t1 * t1_2 + b * t1_2 + c * t1 + d + yield calc_cubic_points(a1, b1, c1, d1) + + +@cython.cfunc +@cython.inline +@cython.locals( + p0=cython.complex, p1=cython.complex, p2=cython.complex, p3=cython.complex +) +@cython.locals(mid=cython.complex, deriv3=cython.complex) +def split_cubic_into_two(p0, p1, p2, p3): + """Split a cubic Bezier into two equal parts. + + Splits the curve into two equal parts at t = 0.5 + + Args: + p0 (complex): Start point of curve. + p1 (complex): First handle of curve. + p2 (complex): Second handle of curve. + p3 (complex): End point of curve. + + Returns: + tuple: Two cubic Beziers (each expressed as a tuple of four complex + values). + """ + mid = (p0 + 3 * (p1 + p2) + p3) * 0.125 + deriv3 = (p3 + p2 - p1 - p0) * 0.125 + return ( + (p0, (p0 + p1) * 0.5, mid - deriv3, mid), + (mid, mid + deriv3, (p2 + p3) * 0.5, p3), + ) + + +@cython.cfunc +@cython.inline +@cython.locals( + p0=cython.complex, + p1=cython.complex, + p2=cython.complex, + p3=cython.complex, +) +@cython.locals( + mid1=cython.complex, + deriv1=cython.complex, + mid2=cython.complex, + deriv2=cython.complex, +) +def split_cubic_into_three(p0, p1, p2, p3): + """Split a cubic Bezier into three equal parts. + + Splits the curve into three equal parts at t = 1/3 and t = 2/3 + + Args: + p0 (complex): Start point of curve. + p1 (complex): First handle of curve. + p2 (complex): Second handle of curve. + p3 (complex): End point of curve. + + Returns: + tuple: Three cubic Beziers (each expressed as a tuple of four complex + values). + """ + mid1 = (8 * p0 + 12 * p1 + 6 * p2 + p3) * (1 / 27) + deriv1 = (p3 + 3 * p2 - 4 * p0) * (1 / 27) + mid2 = (p0 + 6 * p1 + 12 * p2 + 8 * p3) * (1 / 27) + deriv2 = (4 * p3 - 3 * p1 - p0) * (1 / 27) + return ( + (p0, _complex_div_by_real(2 * p0 + p1, 3.0), mid1 - deriv1, mid1), + (mid1, mid1 + deriv1, mid2 - deriv2, mid2), + (mid2, mid2 + deriv2, _complex_div_by_real(p2 + 2 * p3, 3.0), p3), + ) + + +@cython.cfunc +@cython.inline +@cython.returns(cython.complex) +@cython.locals( + t=cython.double, + p0=cython.complex, + p1=cython.complex, + p2=cython.complex, + p3=cython.complex, +) +@cython.locals(_p1=cython.complex, _p2=cython.complex) +def cubic_approx_control(t, p0, p1, p2, p3): + """Approximate a cubic Bezier using a quadratic one. + + Args: + t (double): Position of control point. + p0 (complex): Start point of curve. + p1 (complex): First handle of curve. + p2 (complex): Second handle of curve. + p3 (complex): End point of curve. + + Returns: + complex: Location of candidate control point on quadratic curve. + """ + _p1 = p0 + (p1 - p0) * 1.5 + _p2 = p3 + (p2 - p3) * 1.5 + return _p1 + (_p2 - _p1) * t + + +@cython.cfunc +@cython.inline +@cython.returns(cython.complex) +@cython.locals(a=cython.complex, b=cython.complex, c=cython.complex, d=cython.complex) +@cython.locals(ab=cython.complex, cd=cython.complex, p=cython.complex, h=cython.double) +def calc_intersect(a, b, c, d): + """Calculate the intersection of two lines. + + Args: + a (complex): Start point of first line. + b (complex): End point of first line. + c (complex): Start point of second line. + d (complex): End point of second line. + + Returns: + complex: Location of intersection if one present, ``complex(NaN,NaN)`` + if no intersection was found. + """ + ab = b - a + cd = d - c + p = ab * 1j + try: + h = dot(p, a - c) / dot(p, cd) + except ZeroDivisionError: + # if 3 or 4 points are equal, we do have an intersection despite the zero-div: + # return one of the off-curves so that the algorithm can attempt a one-curve + # solution if it's within tolerance: + # https://github.com/linebender/kurbo/pull/484 + if b == c and (a == b or c == d): + return b + return complex(NAN, NAN) + return c + cd * h + + +@cython.cfunc +@cython.returns(cython.int) +@cython.locals( + tolerance=cython.double, + p0=cython.complex, + p1=cython.complex, + p2=cython.complex, + p3=cython.complex, +) +@cython.locals(mid=cython.complex, deriv3=cython.complex) +def cubic_farthest_fit_inside(p0, p1, p2, p3, tolerance): + """Check if a cubic Bezier lies within a given distance of the origin. + + "Origin" means *the* origin (0,0), not the start of the curve. Note that no + checks are made on the start and end positions of the curve; this function + only checks the inside of the curve. + + Args: + p0 (complex): Start point of curve. + p1 (complex): First handle of curve. + p2 (complex): Second handle of curve. + p3 (complex): End point of curve. + tolerance (double): Distance from origin. + + Returns: + bool: True if the cubic Bezier ``p`` entirely lies within a distance + ``tolerance`` of the origin, False otherwise. + """ + # First check p2 then p1, as p2 has higher error early on. + if abs(p2) <= tolerance and abs(p1) <= tolerance: + return True + + # Split. + mid = (p0 + 3 * (p1 + p2) + p3) * 0.125 + if abs(mid) > tolerance: + return False + deriv3 = (p3 + p2 - p1 - p0) * 0.125 + return cubic_farthest_fit_inside( + p0, (p0 + p1) * 0.5, mid - deriv3, mid, tolerance + ) and cubic_farthest_fit_inside(mid, mid + deriv3, (p2 + p3) * 0.5, p3, tolerance) + + +@cython.cfunc +@cython.inline +@cython.locals(tolerance=cython.double) +@cython.locals( + q1=cython.complex, + c0=cython.complex, + c1=cython.complex, + c2=cython.complex, + c3=cython.complex, +) +def cubic_approx_quadratic(cubic, tolerance): + """Approximate a cubic Bezier with a single quadratic within a given tolerance. + + Args: + cubic (sequence): Four complex numbers representing control points of + the cubic Bezier curve. + tolerance (double): Permitted deviation from the original curve. + + Returns: + Three complex numbers representing control points of the quadratic + curve if it fits within the given tolerance, or ``None`` if no suitable + curve could be calculated. + """ + + q1 = calc_intersect(cubic[0], cubic[1], cubic[2], cubic[3]) + if math.isnan(q1.imag): + return None + c0 = cubic[0] + c3 = cubic[3] + c1 = c0 + (q1 - c0) * (2 / 3) + c2 = c3 + (q1 - c3) * (2 / 3) + if not cubic_farthest_fit_inside(0, c1 - cubic[1], c2 - cubic[2], 0, tolerance): + return None + return c0, q1, c3 + + +@cython.cfunc +@cython.locals(n=cython.int, tolerance=cython.double) +@cython.locals(i=cython.int) +@cython.locals(all_quadratic=cython.int) +@cython.locals( + c0=cython.complex, c1=cython.complex, c2=cython.complex, c3=cython.complex +) +@cython.locals( + q0=cython.complex, + q1=cython.complex, + next_q1=cython.complex, + q2=cython.complex, + d1=cython.complex, +) +def cubic_approx_spline(cubic, n, tolerance, all_quadratic): + """Approximate a cubic Bezier curve with a spline of n quadratics. + + Args: + cubic (sequence): Four complex numbers representing control points of + the cubic Bezier curve. + n (int): Number of quadratic Bezier curves in the spline. + tolerance (double): Permitted deviation from the original curve. + + Returns: + A list of ``n+2`` complex numbers, representing control points of the + quadratic spline if it fits within the given tolerance, or ``None`` if + no suitable spline could be calculated. + """ + + if n == 1: + return cubic_approx_quadratic(cubic, tolerance) + if n == 2 and all_quadratic == False: + return cubic + + cubics = split_cubic_into_n_iter(cubic[0], cubic[1], cubic[2], cubic[3], n) + + # calculate the spline of quadratics and check errors at the same time. + next_cubic = next(cubics) + next_q1 = cubic_approx_control( + 0, next_cubic[0], next_cubic[1], next_cubic[2], next_cubic[3] + ) + q2 = cubic[0] + d1 = 0j + spline = [cubic[0], next_q1] + for i in range(1, n + 1): + # Current cubic to convert + c0, c1, c2, c3 = next_cubic + + # Current quadratic approximation of current cubic + q0 = q2 + q1 = next_q1 + if i < n: + next_cubic = next(cubics) + next_q1 = cubic_approx_control( + i / (n - 1), next_cubic[0], next_cubic[1], next_cubic[2], next_cubic[3] + ) + spline.append(next_q1) + q2 = (q1 + next_q1) * 0.5 + else: + q2 = c3 + + # End-point deltas + d0 = d1 + d1 = q2 - c3 + + if abs(d1) > tolerance or not cubic_farthest_fit_inside( + d0, + q0 + (q1 - q0) * (2 / 3) - c1, + q2 + (q1 - q2) * (2 / 3) - c2, + d1, + tolerance, + ): + return None + spline.append(cubic[3]) + + return spline + + +@cython.locals(max_err=cython.double) +@cython.locals(n=cython.int) +@cython.locals(all_quadratic=cython.int) +def curve_to_quadratic(curve, max_err, all_quadratic=True): + """Approximate a cubic Bezier curve with a spline of n quadratics. + + Args: + cubic (sequence): Four 2D tuples representing control points of + the cubic Bezier curve. + max_err (double): Permitted deviation from the original curve. + all_quadratic (bool): If True (default) returned value is a + quadratic spline. If False, it's either a single quadratic + curve or a single cubic curve. + + Returns: + If all_quadratic is True: A list of 2D tuples representing + control points of the quadratic spline. + + If all_quadratic is False: Either a quadratic curve (if length + of output is 3), or a cubic curve (if length of output is 4). + + Raises: + fontTools.cu2qu.errors.ApproxNotFoundError: if no suitable + approximation can be found with the given parameters. + """ + + curve = [complex(*p) for p in curve] + + for n in range(1, MAX_N + 1): + spline = cubic_approx_spline(curve, n, max_err, all_quadratic) + if spline is not None: + # done. go home + return [(s.real, s.imag) for s in spline] + + raise ApproxNotFoundError(curve) + + +@cython.locals(l=cython.int, last_i=cython.int, i=cython.int) +@cython.locals(all_quadratic=cython.int) +def curves_to_quadratic(curves, max_errors, all_quadratic=True): + """Return quadratic Bezier splines approximating the input cubic Beziers. + + Args: + curves: A sequence of *n* curves, each curve being a sequence of four + 2D tuples. + max_errors: A sequence of *n* floats representing the maximum permissible + deviation from each of the cubic Bezier curves. + all_quadratic (bool): If True (default) returned values are a + quadratic spline. If False, they are either a single quadratic + curve or a single cubic curve. + + Example:: + + >>> curves_to_quadratic( [ + ... [ (50,50), (100,100), (150,100), (200,50) ], + ... [ (75,50), (120,100), (150,75), (200,60) ] + ... ], [1,1] ) + [[(50.0, 50.0), (75.0, 75.0), (125.0, 91.66666666666666), (175.0, 75.0), (200.0, 50.0)], [(75.0, 50.0), (97.5, 75.0), (135.41666666666666, 82.08333333333333), (175.0, 67.5), (200.0, 60.0)]] + + The returned splines have "implied oncurve points" suitable for use in + TrueType ``glif`` outlines - i.e. in the first spline returned above, + the first quadratic segment runs from (50,50) to + ( (75 + 125)/2 , (120 + 91.666..)/2 ) = (100, 83.333...). + + Returns: + If all_quadratic is True, a list of splines, each spline being a list + of 2D tuples. If ``curves`` is empty, returns an empty list. + + If all_quadratic is False, a list of curves, each curve being a quadratic + (length 3), or cubic (length 4). + + Raises: + ValueError: if ``max_errors`` does not match the number of curves. + fontTools.cu2qu.errors.ApproxNotFoundError: if no suitable approximation + can be found for all curves with the given parameters. + """ + + curves = [[complex(*p) for p in curve] for curve in curves] + if len(max_errors) != len(curves): + raise ValueError("max_errors must match the number of curves") + if not curves: + return [] + + l = len(curves) + splines = [None] * l + last_i = i = 0 + n = 1 + while True: + spline = cubic_approx_spline(curves[i], n, max_errors[i], all_quadratic) + if spline is None: + if n == MAX_N: + break + n += 1 + last_i = i + continue + splines[i] = spline + i = (i + 1) % l + if i == last_i: + # done. go home + return [[(s.real, s.imag) for s in spline] for spline in splines] + + raise ApproxNotFoundError(curves) diff --git a/shared/package-files/20/20dede710f520eaf6c0cdbeefe773fc6e30dd8b1d28aaf17e9842099551ee9a6/BajaSur b/shared/package-files/20/20dede710f520eaf6c0cdbeefe773fc6e30dd8b1d28aaf17e9842099551ee9a6/BajaSur new file mode 100644 index 0000000000000000000000000000000000000000..5aa6039ea4cb36077f048782b54c6275c25e86b3 Binary files /dev/null and b/shared/package-files/20/20dede710f520eaf6c0cdbeefe773fc6e30dd8b1d28aaf17e9842099551ee9a6/BajaSur differ diff --git a/shared/package-files/20/20dede710f520eaf6c0cdbeefe773fc6e30dd8b1d28aaf17e9842099551ee9a6/Mazatlan b/shared/package-files/20/20dede710f520eaf6c0cdbeefe773fc6e30dd8b1d28aaf17e9842099551ee9a6/Mazatlan new file mode 100644 index 0000000000000000000000000000000000000000..5aa6039ea4cb36077f048782b54c6275c25e86b3 Binary files /dev/null and b/shared/package-files/20/20dede710f520eaf6c0cdbeefe773fc6e30dd8b1d28aaf17e9842099551ee9a6/Mazatlan differ diff --git a/shared/package-files/20/20e785444a153a8d36e51172afb7d600bd7d38ab5575d9cf35b110b5e08512d3/upsample_nearest2d_meta_dispatch.h b/shared/package-files/20/20e785444a153a8d36e51172afb7d600bd7d38ab5575d9cf35b110b5e08512d3/upsample_nearest2d_meta_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..e82343ad6bc40c42252924ad2ceb05fb0d77f8ea --- /dev/null +++ b/shared/package-files/20/20e785444a153a8d36e51172afb7d600bd7d38ab5575d9cf35b110b5e08512d3/upsample_nearest2d_meta_dispatch.h @@ -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 upsample_nearest2d(const at::Tensor & self, at::IntArrayRef output_size, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt); +TORCH_API at::Tensor upsample_nearest2d_symint(const at::Tensor & self, c10::SymIntArrayRef output_size, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt); +TORCH_API at::Tensor & upsample_nearest2d_out(at::Tensor & out, const at::Tensor & self, at::IntArrayRef output_size, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt); +TORCH_API at::Tensor & upsample_nearest2d_outf(const at::Tensor & self, at::IntArrayRef output_size, c10::optional scales_h, c10::optional scales_w, at::Tensor & out); +TORCH_API at::Tensor & upsample_nearest2d_symint_out(at::Tensor & out, const at::Tensor & self, c10::SymIntArrayRef output_size, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt); +TORCH_API at::Tensor & upsample_nearest2d_symint_outf(const at::Tensor & self, c10::SymIntArrayRef output_size, c10::optional scales_h, c10::optional scales_w, at::Tensor & out); + +} // namespace meta +} // namespace at diff --git a/shared/package-files/20/20ebf3ce8ebf46f02d84ed5d848606fa2200bff30e1a60431f002d7a7c50032e/guard_elimination.h b/shared/package-files/20/20ebf3ce8ebf46f02d84ed5d848606fa2200bff30e1a60431f002d7a7c50032e/guard_elimination.h new file mode 100644 index 0000000000000000000000000000000000000000..03f13140e370df55903bd9ce00ea04b624bce795 --- /dev/null +++ b/shared/package-files/20/20ebf3ce8ebf46f02d84ed5d848606fa2200bff30e1a60431f002d7a7c50032e/guard_elimination.h @@ -0,0 +1,19 @@ +#pragma once + +#include +#include +#include +#include +#include +#include + +#include +#include + +namespace torch { +namespace jit { + +TORCH_API void EliminateRedundantGuards(std::shared_ptr graph); + +} // namespace jit +} // namespace torch diff --git a/shared/package-files/20/20fa9ee3971f05b7fbb578811872bead1398fbda3894f78532bbc80a9852c2aa/slogdet_native.h b/shared/package-files/20/20fa9ee3971f05b7fbb578811872bead1398fbda3894f78532bbc80a9852c2aa/slogdet_native.h new file mode 100644 index 0000000000000000000000000000000000000000..190cadb20538d27009379dfe8ba5c2532b33b803 --- /dev/null +++ b/shared/package-files/20/20fa9ee3971f05b7fbb578811872bead1398fbda3894f78532bbc80a9852c2aa/slogdet_native.h @@ -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 slogdet(const at::Tensor & self); +TORCH_API ::std::tuple slogdet_out(const at::Tensor & self, at::Tensor & sign, at::Tensor & logabsdet); +} // namespace native +} // namespace at diff --git a/shared/package-files/3e/3e0202d423a2d4ca5fd5739f5d68eeba901107f3c6e6735a780516b945f72512/scalarstring.py b/shared/package-files/3e/3e0202d423a2d4ca5fd5739f5d68eeba901107f3c6e6735a780516b945f72512/scalarstring.py new file mode 100644 index 0000000000000000000000000000000000000000..7538ab71551b8a3314bcaf7d081f1288e1e5d173 --- /dev/null +++ b/shared/package-files/3e/3e0202d423a2d4ca5fd5739f5d68eeba901107f3c6e6735a780516b945f72512/scalarstring.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +from ruamel.yaml.anchor import Anchor + +if False: # MYPY + from typing import Text, Any, Dict, List # NOQA + +__all__ = [ + 'ScalarString', + 'LiteralScalarString', + 'FoldedScalarString', + 'SingleQuotedScalarString', + 'DoubleQuotedScalarString', + 'PlainScalarString', + # PreservedScalarString is the old name, as it was the first to be preserved on rt, + # use LiteralScalarString instead + 'PreservedScalarString', +] + + +class ScalarString(str): + __slots__ = Anchor.attrib + + def __new__(cls, *args, **kw): + # type: (Any, Any) -> Any + anchor = kw.pop('anchor', None) + ret_val = str.__new__(cls, *args, **kw) + if anchor is not None: + ret_val.yaml_set_anchor(anchor, always_dump=True) + return ret_val + + def replace(self, old, new, maxreplace=-1): + # type: (Any, Any, int) -> Any + return type(self)((str.replace(self, old, new, maxreplace))) + + @property + def anchor(self): + # type: () -> Any + if not hasattr(self, Anchor.attrib): + setattr(self, Anchor.attrib, Anchor()) + return getattr(self, Anchor.attrib) + + def yaml_anchor(self, any=False): + # type: (bool) -> Any + if not hasattr(self, Anchor.attrib): + return None + if any or self.anchor.always_dump: + return self.anchor + return None + + def yaml_set_anchor(self, value, always_dump=False): + # type: (Any, bool) -> None + self.anchor.value = value + self.anchor.always_dump = always_dump + + +class LiteralScalarString(ScalarString): + __slots__ = 'comment' # the comment after the | on the first line + + style = '|' + + def __new__(cls, value, anchor=None): + # type: (Text, Any) -> Any + return ScalarString.__new__(cls, value, anchor=anchor) + + +PreservedScalarString = LiteralScalarString + + +class FoldedScalarString(ScalarString): + __slots__ = ('fold_pos', 'comment') # the comment after the > on the first line + + style = '>' + + def __new__(cls, value, anchor=None): + # type: (Text, Any) -> Any + return ScalarString.__new__(cls, value, anchor=anchor) + + +class SingleQuotedScalarString(ScalarString): + __slots__ = () + + style = "'" + + def __new__(cls, value, anchor=None): + # type: (Text, Any) -> Any + return ScalarString.__new__(cls, value, anchor=anchor) + + +class DoubleQuotedScalarString(ScalarString): + __slots__ = () + + style = '"' + + def __new__(cls, value, anchor=None): + # type: (Text, Any) -> Any + return ScalarString.__new__(cls, value, anchor=anchor) + + +class PlainScalarString(ScalarString): + __slots__ = () + + style = '' + + def __new__(cls, value, anchor=None): + # type: (Text, Any) -> Any + return ScalarString.__new__(cls, value, anchor=anchor) + + +def preserve_literal(s): + # type: (Text) -> Text + return LiteralScalarString(s.replace('\r\n', '\n').replace('\r', '\n')) + + +def walk_tree(base, map=None): + # type: (Any, Any) -> None + """ + the routine here walks over a simple yaml tree (recursing in + dict values and list items) and converts strings that + have multiple lines to literal scalars + + You can also provide an explicit (ordered) mapping for multiple transforms + (first of which is executed): + map = ruamel.yaml.compat.ordereddict + map['\n'] = preserve_literal + map[':'] = SingleQuotedScalarString + walk_tree(data, map=map) + """ + from collections.abc import MutableMapping, MutableSequence + + if map is None: + map = {'\n': preserve_literal} + + if isinstance(base, MutableMapping): + for k in base: + v = base[k] # type: Text + if isinstance(v, str): + for ch in map: + if ch in v: + base[k] = map[ch](v) + break + else: + walk_tree(v, map=map) + elif isinstance(base, MutableSequence): + for idx, elem in enumerate(base): + if isinstance(elem, str): + for ch in map: + if ch in elem: + base[idx] = map[ch](elem) + break + else: + walk_tree(elem, map=map) diff --git a/shared/package-files/3e/3e02e8425b19fc4ad9391c393359a09f15b957898a642d3e8328ffde4e2109ed/constructors.py b/shared/package-files/3e/3e02e8425b19fc4ad9391c393359a09f15b957898a642d3e8328ffde4e2109ed/constructors.py new file mode 100644 index 0000000000000000000000000000000000000000..b52c9a456bb8035df6e36c6f7f37d4f5ab4c5771 --- /dev/null +++ b/shared/package-files/3e/3e02e8425b19fc4ad9391c393359a09f15b957898a642d3e8328ffde4e2109ed/constructors.py @@ -0,0 +1,576 @@ +"""Backing implementation for InstallRequirement's various constructors + +The idea here is that these formed a major chunk of InstallRequirement's size +so, moving them and support code dedicated to them outside of that class +helps creates for better understandability for the rest of the code. + +These are meant to be used elsewhere within pip to create instances of +InstallRequirement. +""" + +import copy +import logging +import os +import re +from typing import Collection, Dict, List, Optional, Set, Tuple, Union + +from pip._vendor.packaging.markers import Marker +from pip._vendor.packaging.requirements import InvalidRequirement, Requirement +from pip._vendor.packaging.specifiers import Specifier + +from pip._internal.exceptions import InstallationError +from pip._internal.models.index import PyPI, TestPyPI +from pip._internal.models.link import Link +from pip._internal.models.wheel import Wheel +from pip._internal.req.req_file import ParsedRequirement +from pip._internal.req.req_install import InstallRequirement +from pip._internal.utils.filetypes import is_archive_file +from pip._internal.utils.misc import is_installable_dir +from pip._internal.utils.packaging import get_requirement +from pip._internal.utils.urls import path_to_url +from pip._internal.vcs import is_url, vcs + +__all__ = [ + "install_req_from_editable", + "install_req_from_line", + "parse_editable", +] + +logger = logging.getLogger(__name__) +operators = Specifier._operators.keys() + + +def _strip_extras(path: str) -> Tuple[str, Optional[str]]: + m = re.match(r"^(.+)(\[[^\]]+\])$", path) + extras = None + if m: + path_no_extras = m.group(1) + extras = m.group(2) + else: + path_no_extras = path + + return path_no_extras, extras + + +def convert_extras(extras: Optional[str]) -> Set[str]: + if not extras: + return set() + return get_requirement("placeholder" + extras.lower()).extras + + +def _set_requirement_extras(req: Requirement, new_extras: Set[str]) -> Requirement: + """ + Returns a new requirement based on the given one, with the supplied extras. If the + given requirement already has extras those are replaced (or dropped if no new extras + are given). + """ + match: Optional[re.Match[str]] = re.fullmatch( + # see https://peps.python.org/pep-0508/#complete-grammar + r"([\w\t .-]+)(\[[^\]]*\])?(.*)", + str(req), + flags=re.ASCII, + ) + # ireq.req is a valid requirement so the regex should always match + assert ( + match is not None + ), f"regex match on requirement {req} failed, this should never happen" + pre: Optional[str] = match.group(1) + post: Optional[str] = match.group(3) + assert ( + pre is not None and post is not None + ), f"regex group selection for requirement {req} failed, this should never happen" + extras: str = "[%s]" % ",".join(sorted(new_extras)) if new_extras else "" + return Requirement(f"{pre}{extras}{post}") + + +def parse_editable(editable_req: str) -> Tuple[Optional[str], str, Set[str]]: + """Parses an editable requirement into: + - a requirement name + - an URL + - extras + - editable options + Accepted requirements: + svn+http://blahblah@rev#egg=Foobar[baz]&subdirectory=version_subdir + .[some_extra] + """ + + url = editable_req + + # If a file path is specified with extras, strip off the extras. + url_no_extras, extras = _strip_extras(url) + + if os.path.isdir(url_no_extras): + # Treating it as code that has already been checked out + url_no_extras = path_to_url(url_no_extras) + + if url_no_extras.lower().startswith("file:"): + package_name = Link(url_no_extras).egg_fragment + if extras: + return ( + package_name, + url_no_extras, + get_requirement("placeholder" + extras.lower()).extras, + ) + else: + return package_name, url_no_extras, set() + + for version_control in vcs: + if url.lower().startswith(f"{version_control}:"): + url = f"{version_control}+{url}" + break + + link = Link(url) + + if not link.is_vcs: + backends = ", ".join(vcs.all_schemes) + raise InstallationError( + f"{editable_req} is not a valid editable requirement. " + f"It should either be a path to a local project or a VCS URL " + f"(beginning with {backends})." + ) + + package_name = link.egg_fragment + if not package_name: + raise InstallationError( + "Could not detect requirement name for '{}', please specify one " + "with #egg=your_package_name".format(editable_req) + ) + return package_name, url, set() + + +def check_first_requirement_in_file(filename: str) -> None: + """Check if file is parsable as a requirements file. + + This is heavily based on ``pkg_resources.parse_requirements``, but + simplified to just check the first meaningful line. + + :raises InvalidRequirement: If the first meaningful line cannot be parsed + as an requirement. + """ + with open(filename, encoding="utf-8", errors="ignore") as f: + # Create a steppable iterator, so we can handle \-continuations. + lines = ( + line + for line in (line.strip() for line in f) + if line and not line.startswith("#") # Skip blank lines/comments. + ) + + for line in lines: + # Drop comments -- a hash without a space may be in a URL. + if " #" in line: + line = line[: line.find(" #")] + # If there is a line continuation, drop it, and append the next line. + if line.endswith("\\"): + line = line[:-2].strip() + next(lines, "") + Requirement(line) + return + + +def deduce_helpful_msg(req: str) -> str: + """Returns helpful msg in case requirements file does not exist, + or cannot be parsed. + + :params req: Requirements file path + """ + if not os.path.exists(req): + return f" File '{req}' does not exist." + msg = " The path does exist. " + # Try to parse and check if it is a requirements file. + try: + check_first_requirement_in_file(req) + except InvalidRequirement: + logger.debug("Cannot parse '%s' as requirements file", req) + else: + msg += ( + f"The argument you provided " + f"({req}) appears to be a" + f" requirements file. If that is the" + f" case, use the '-r' flag to install" + f" the packages specified within it." + ) + return msg + + +class RequirementParts: + def __init__( + self, + requirement: Optional[Requirement], + link: Optional[Link], + markers: Optional[Marker], + extras: Set[str], + ): + self.requirement = requirement + self.link = link + self.markers = markers + self.extras = extras + + +def parse_req_from_editable(editable_req: str) -> RequirementParts: + name, url, extras_override = parse_editable(editable_req) + + if name is not None: + try: + req: Optional[Requirement] = Requirement(name) + except InvalidRequirement: + raise InstallationError(f"Invalid requirement: '{name}'") + else: + req = None + + link = Link(url) + + return RequirementParts(req, link, None, extras_override) + + +# ---- The actual constructors follow ---- + + +def install_req_from_editable( + editable_req: str, + comes_from: Optional[Union[InstallRequirement, str]] = None, + *, + use_pep517: Optional[bool] = None, + isolated: bool = False, + global_options: Optional[List[str]] = None, + hash_options: Optional[Dict[str, List[str]]] = None, + constraint: bool = False, + user_supplied: bool = False, + permit_editable_wheels: bool = False, + config_settings: Optional[Dict[str, Union[str, List[str]]]] = None, +) -> InstallRequirement: + parts = parse_req_from_editable(editable_req) + + return InstallRequirement( + parts.requirement, + comes_from=comes_from, + user_supplied=user_supplied, + editable=True, + permit_editable_wheels=permit_editable_wheels, + link=parts.link, + constraint=constraint, + use_pep517=use_pep517, + isolated=isolated, + global_options=global_options, + hash_options=hash_options, + config_settings=config_settings, + extras=parts.extras, + ) + + +def _looks_like_path(name: str) -> bool: + """Checks whether the string "looks like" a path on the filesystem. + + This does not check whether the target actually exists, only judge from the + appearance. + + Returns true if any of the following conditions is true: + * a path separator is found (either os.path.sep or os.path.altsep); + * a dot is found (which represents the current directory). + """ + if os.path.sep in name: + return True + if os.path.altsep is not None and os.path.altsep in name: + return True + if name.startswith("."): + return True + return False + + +def _get_url_from_path(path: str, name: str) -> Optional[str]: + """ + First, it checks whether a provided path is an installable directory. If it + is, returns the path. + + If false, check if the path is an archive file (such as a .whl). + The function checks if the path is a file. If false, if the path has + an @, it will treat it as a PEP 440 URL requirement and return the path. + """ + if _looks_like_path(name) and os.path.isdir(path): + if is_installable_dir(path): + return path_to_url(path) + # TODO: The is_installable_dir test here might not be necessary + # now that it is done in load_pyproject_toml too. + raise InstallationError( + f"Directory {name!r} is not installable. Neither 'setup.py' " + "nor 'pyproject.toml' found." + ) + if not is_archive_file(path): + return None + if os.path.isfile(path): + return path_to_url(path) + urlreq_parts = name.split("@", 1) + if len(urlreq_parts) >= 2 and not _looks_like_path(urlreq_parts[0]): + # If the path contains '@' and the part before it does not look + # like a path, try to treat it as a PEP 440 URL req instead. + return None + logger.warning( + "Requirement %r looks like a filename, but the file does not exist", + name, + ) + return path_to_url(path) + + +def parse_req_from_line(name: str, line_source: Optional[str]) -> RequirementParts: + if is_url(name): + marker_sep = "; " + else: + marker_sep = ";" + if marker_sep in name: + name, markers_as_string = name.split(marker_sep, 1) + markers_as_string = markers_as_string.strip() + if not markers_as_string: + markers = None + else: + markers = Marker(markers_as_string) + else: + markers = None + name = name.strip() + req_as_string = None + path = os.path.normpath(os.path.abspath(name)) + link = None + extras_as_string = None + + if is_url(name): + link = Link(name) + else: + p, extras_as_string = _strip_extras(path) + url = _get_url_from_path(p, name) + if url is not None: + link = Link(url) + + # it's a local file, dir, or url + if link: + # Handle relative file URLs + if link.scheme == "file" and re.search(r"\.\./", link.url): + link = Link(path_to_url(os.path.normpath(os.path.abspath(link.path)))) + # wheel file + if link.is_wheel: + wheel = Wheel(link.filename) # can raise InvalidWheelFilename + req_as_string = f"{wheel.name}=={wheel.version}" + else: + # set the req to the egg fragment. when it's not there, this + # will become an 'unnamed' requirement + req_as_string = link.egg_fragment + + # a requirement specifier + else: + req_as_string = name + + extras = convert_extras(extras_as_string) + + def with_source(text: str) -> str: + if not line_source: + return text + return f"{text} (from {line_source})" + + def _parse_req_string(req_as_string: str) -> Requirement: + try: + req = get_requirement(req_as_string) + except InvalidRequirement: + if os.path.sep in req_as_string: + add_msg = "It looks like a path." + add_msg += deduce_helpful_msg(req_as_string) + elif "=" in req_as_string and not any( + op in req_as_string for op in operators + ): + add_msg = "= is not a valid operator. Did you mean == ?" + else: + add_msg = "" + msg = with_source(f"Invalid requirement: {req_as_string!r}") + if add_msg: + msg += f"\nHint: {add_msg}" + raise InstallationError(msg) + else: + # Deprecate extras after specifiers: "name>=1.0[extras]" + # This currently works by accident because _strip_extras() parses + # any extras in the end of the string and those are saved in + # RequirementParts + for spec in req.specifier: + spec_str = str(spec) + if spec_str.endswith("]"): + msg = f"Extras after version '{spec_str}'." + raise InstallationError(msg) + return req + + if req_as_string is not None: + req: Optional[Requirement] = _parse_req_string(req_as_string) + else: + req = None + + return RequirementParts(req, link, markers, extras) + + +def install_req_from_line( + name: str, + comes_from: Optional[Union[str, InstallRequirement]] = None, + *, + use_pep517: Optional[bool] = None, + isolated: bool = False, + global_options: Optional[List[str]] = None, + hash_options: Optional[Dict[str, List[str]]] = None, + constraint: bool = False, + line_source: Optional[str] = None, + user_supplied: bool = False, + config_settings: Optional[Dict[str, Union[str, List[str]]]] = None, +) -> InstallRequirement: + """Creates an InstallRequirement from a name, which might be a + requirement, directory containing 'setup.py', filename, or URL. + + :param line_source: An optional string describing where the line is from, + for logging purposes in case of an error. + """ + parts = parse_req_from_line(name, line_source) + + return InstallRequirement( + parts.requirement, + comes_from, + link=parts.link, + markers=parts.markers, + use_pep517=use_pep517, + isolated=isolated, + global_options=global_options, + hash_options=hash_options, + config_settings=config_settings, + constraint=constraint, + extras=parts.extras, + user_supplied=user_supplied, + ) + + +def install_req_from_req_string( + req_string: str, + comes_from: Optional[InstallRequirement] = None, + isolated: bool = False, + use_pep517: Optional[bool] = None, + user_supplied: bool = False, +) -> InstallRequirement: + try: + req = get_requirement(req_string) + except InvalidRequirement: + raise InstallationError(f"Invalid requirement: '{req_string}'") + + domains_not_allowed = [ + PyPI.file_storage_domain, + TestPyPI.file_storage_domain, + ] + if ( + req.url + and comes_from + and comes_from.link + and comes_from.link.netloc in domains_not_allowed + ): + # Explicitly disallow pypi packages that depend on external urls + raise InstallationError( + "Packages installed from PyPI cannot depend on packages " + "which are not also hosted on PyPI.\n" + "{} depends on {} ".format(comes_from.name, req) + ) + + return InstallRequirement( + req, + comes_from, + isolated=isolated, + use_pep517=use_pep517, + user_supplied=user_supplied, + ) + + +def install_req_from_parsed_requirement( + parsed_req: ParsedRequirement, + isolated: bool = False, + use_pep517: Optional[bool] = None, + user_supplied: bool = False, + config_settings: Optional[Dict[str, Union[str, List[str]]]] = None, +) -> InstallRequirement: + if parsed_req.is_editable: + req = install_req_from_editable( + parsed_req.requirement, + comes_from=parsed_req.comes_from, + use_pep517=use_pep517, + constraint=parsed_req.constraint, + isolated=isolated, + user_supplied=user_supplied, + config_settings=config_settings, + ) + + else: + req = install_req_from_line( + parsed_req.requirement, + comes_from=parsed_req.comes_from, + use_pep517=use_pep517, + isolated=isolated, + global_options=( + parsed_req.options.get("global_options", []) + if parsed_req.options + else [] + ), + hash_options=( + parsed_req.options.get("hashes", {}) if parsed_req.options else {} + ), + constraint=parsed_req.constraint, + line_source=parsed_req.line_source, + user_supplied=user_supplied, + config_settings=config_settings, + ) + return req + + +def install_req_from_link_and_ireq( + link: Link, ireq: InstallRequirement +) -> InstallRequirement: + return InstallRequirement( + req=ireq.req, + comes_from=ireq.comes_from, + editable=ireq.editable, + link=link, + markers=ireq.markers, + use_pep517=ireq.use_pep517, + isolated=ireq.isolated, + global_options=ireq.global_options, + hash_options=ireq.hash_options, + config_settings=ireq.config_settings, + user_supplied=ireq.user_supplied, + ) + + +def install_req_drop_extras(ireq: InstallRequirement) -> InstallRequirement: + """ + Creates a new InstallationRequirement using the given template but without + any extras. Sets the original requirement as the new one's parent + (comes_from). + """ + return InstallRequirement( + req=( + _set_requirement_extras(ireq.req, set()) if ireq.req is not None else None + ), + comes_from=ireq, + editable=ireq.editable, + link=ireq.link, + markers=ireq.markers, + use_pep517=ireq.use_pep517, + isolated=ireq.isolated, + global_options=ireq.global_options, + hash_options=ireq.hash_options, + constraint=ireq.constraint, + extras=[], + config_settings=ireq.config_settings, + user_supplied=ireq.user_supplied, + permit_editable_wheels=ireq.permit_editable_wheels, + ) + + +def install_req_extend_extras( + ireq: InstallRequirement, + extras: Collection[str], +) -> InstallRequirement: + """ + Returns a copy of an installation requirement with some additional extras. + Makes a shallow copy of the ireq object. + """ + result = copy.copy(ireq) + result.extras = {*ireq.extras, *extras} + result.req = ( + _set_requirement_extras(ireq.req, result.extras) + if ireq.req is not None + else None + ) + return result diff --git a/shared/package-files/3e/3e03029c740ada57b019633fa4ac97ceda937631ead6ca6154ee7047ec0e0c71/dequantize_cpu_dispatch.h b/shared/package-files/3e/3e03029c740ada57b019633fa4ac97ceda937631ead6ca6154ee7047ec0e0c71/dequantize_cpu_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..91d8e559c9d85862d9bb3343cebf53998ef619df --- /dev/null +++ b/shared/package-files/3e/3e03029c740ada57b019633fa4ac97ceda937631ead6ca6154ee7047ec0e0c71/dequantize_cpu_dispatch.h @@ -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 at::Tensor dequantize(const at::Tensor & self); + +} // namespace cpu +} // namespace at diff --git a/shared/package-files/3e/3e049ee46b77d5a87cfe8b0f16b1d83b0c3c06fc465f514007e4facf8b08952a/sigmoid_compositeexplicitautogradnonfunctional_dispatch.h b/shared/package-files/3e/3e049ee46b77d5a87cfe8b0f16b1d83b0c3c06fc465f514007e4facf8b08952a/sigmoid_compositeexplicitautogradnonfunctional_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..2e614a6eb1dde781783a148f64d11fb159543b71 --- /dev/null +++ b/shared/package-files/3e/3e049ee46b77d5a87cfe8b0f16b1d83b0c3c06fc465f514007e4facf8b08952a/sigmoid_compositeexplicitautogradnonfunctional_dispatch.h @@ -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 sigmoid(const at::Tensor & self); +TORCH_API at::Tensor & sigmoid_(at::Tensor & self); + +} // namespace compositeexplicitautogradnonfunctional +} // namespace at diff --git a/shared/package-files/3e/3e04bfdcc0764f4e28655701864845752cd3f77d0c52390637ebe588f91665cf/cygwin b/shared/package-files/3e/3e04bfdcc0764f4e28655701864845752cd3f77d0c52390637ebe588f91665cf/cygwin new file mode 100644 index 0000000000000000000000000000000000000000..8219fa6afcc04edd1faa74328c19026b2bb50071 Binary files /dev/null and b/shared/package-files/3e/3e04bfdcc0764f4e28655701864845752cd3f77d0c52390637ebe588f91665cf/cygwin differ diff --git a/shared/package-files/3e/3e05e7ca3d54c5b5f6c3d3a262de63266dec50f4890b5a3e7e913e8552e4e2de/results_influence_logit.csv b/shared/package-files/3e/3e05e7ca3d54c5b5f6c3d3a262de63266dec50f4890b5a3e7e913e8552e4e2de/results_influence_logit.csv new file mode 100644 index 0000000000000000000000000000000000000000..eb4e37d3cf2aafb5f387c59ea4ac9623f45c22ad --- /dev/null +++ b/shared/package-files/3e/3e05e7ca3d54c5b5f6c3d3a262de63266dec50f4890b5a3e7e913e8552e4e2de/results_influence_logit.csv @@ -0,0 +1,40 @@ +Case,LogRate,LogVolumne,resid_pearson,resid_deviance,hat_matrix_diagonal,dfb_intercept,dfb_lograte,dfb_logvolumne,Cooks C,Cooks Cbar,d_deviance,d_pearson_chi2 +1,-0.1924,1.3083,0.2205,0.3082,0.0927,-0.0165,0.0193,0.0556,0.00548,0.00497,0.1,0.0536 +2,0.0862,1.2528,0.1349,0.1899,0.0429,-0.0134,0.0151,0.0261,0.000853,0.000816,0.0369,0.019 +3,0.9163,0.2231,0.2923,0.4049,0.0612,-0.0492,0.066,0.0589,0.00593,0.00557,0.1695,0.091 +4,0.4055,-0.2877,3.5181,2.2775,0.0867,1.0734,-0.9302,-1.018,1.2873,1.1756,6.3626,13.5523 +5,1.1632,-0.2231,0.5287,0.7021,0.1158,-0.0832,0.1411,0.0583,0.0414,0.0366,0.5296,0.3161 +6,1.2528,-0.3567,0.609,0.7943,0.1524,-0.0922,0.171,0.0381,0.0787,0.0667,0.6976,0.4376 +7,-0.2877,-0.5108,-0.0328,-0.0464,0.00761,-0.0028,0.00274,0.00265,8.321e-06,8.258e-06,0.00216,0.00109 +8,0.5306,0.0953,-1.0196,-1.1939,0.0559,-0.1444,0.0613,0.057,0.0652,0.0616,1.487,1.1011 +9,-0.2877,-0.1054,-0.0938,-0.1323,0.0342,-0.0178,0.0173,0.0153,0.000322,0.000311,0.0178,0.00911 +10,-0.7985,-0.1054,-0.0293,-0.0414,0.00721,-0.00245,0.00246,0.00211,6.256e-06,6.211e-06,0.00172,0.000862 +11,-0.5621,-0.2231,-0.037,-0.0523,0.00969,-0.00361,0.00358,0.00319,1.4e-05,1.3e-05,0.00274,0.00138 +12,1.0116,-0.5978,-0.5073,-0.6768,0.1481,-0.1173,0.0647,0.1651,0.0525,0.0447,0.5028,0.3021 +13,1.0986,-0.5108,-0.7751,-0.97,0.1628,-0.0931,-0.00946,0.1775,0.1395,0.1168,1.0577,0.7175 +14,0.8459,0.3365,0.2559,0.3562,0.0551,-0.0414,0.0538,0.0527,0.00404,0.00382,0.1307,0.0693 +15,1.3218,-0.2877,0.4352,0.589,0.1336,-0.094,0.1408,0.0643,0.0337,0.0292,0.3761,0.2186 +16,0.4947,0.8329,0.1576,0.2215,0.0402,-0.0198,0.0234,0.0307,0.00108,0.00104,0.0501,0.0259 +17,0.47,1.1632,0.0709,0.1001,0.0172,-0.0063,0.00701,0.00914,8.9e-05,8.8e-05,0.0101,0.00511 +18,0.3471,-0.1625,2.9062,2.1192,0.0954,0.9595,-0.8279,-0.8477,0.9845,0.8906,5.3817,9.3363 +19,0.0583,0.5306,-1.0718,-1.2368,0.1315,-0.2591,0.2024,-0.00488,0.2003,0.174,1.7037,1.3227 +20,0.5878,0.5878,0.2405,0.3353,0.0525,-0.0331,0.0421,0.0518,0.00338,0.0032,0.1156,0.061 +21,0.6931,-0.9163,-0.1076,-0.1517,0.0373,-0.018,0.0158,0.0208,0.000465,0.000448,0.0235,0.012 +22,0.3075,-0.0513,-0.4193,-0.5691,0.1015,-0.1449,0.1237,0.1179,0.0221,0.0199,0.3437,0.1956 +23,0.3001,0.3001,-1.0242,-1.1978,0.0761,-0.1961,0.1275,0.0357,0.0935,0.0864,1.5212,1.1355 +24,0.3075,0.4055,-1.3684,-1.4527,0.0717,-0.1281,0.041,-0.1004,0.1558,0.1447,2.255,2.0171 +25,0.5766,0.47,0.3347,0.4608,0.0587,-0.0403,0.057,0.0708,0.00741,0.00698,0.2193,0.119 +26,0.4055,-0.5108,-0.1595,-0.2241,0.0548,-0.0366,0.0329,0.0373,0.00156,0.00147,0.0517,0.0269 +27,0.4055,0.5878,0.3645,0.4995,0.0661,-0.0327,0.0496,0.0788,0.0101,0.00941,0.2589,0.1423 +28,0.6419,-0.0513,-0.8989,-1.0883,0.0647,-0.1423,0.0617,0.1025,0.0597,0.0559,1.2404,0.8639 +29,-0.0513,0.6419,0.8981,1.0876,0.1682,0.2367,-0.195,0.0286,0.1961,0.1631,1.346,0.9697 +30,-0.9163,0.47,-0.0992,-0.14,0.0507,-0.0224,0.0227,0.0159,0.000554,0.000526,0.0201,0.0104 +31,-0.2877,0.9933,0.6198,0.8064,0.2459,0.1165,-0.0996,0.1322,0.1661,0.1253,0.7755,0.5095 +32,-3.5066,0.8544,-0.00073,-0.00103,2.2e-05,-3.22e-06,3.405e-06,2.48e-06,1.18e-11,1.18e-11,1.065e-06,5.324e-07 +33,0.6043,0.0953,-1.2062,-1.3402,0.051,-0.0882,-0.0137,-0.00216,0.0824,0.0782,1.8744,1.5331 +34,0.7885,0.0953,0.5447,0.7209,0.0601,-0.0425,0.0877,0.0671,0.0202,0.019,0.5387,0.3157 +35,0.6931,0.1823,0.5404,0.7159,0.0552,-0.034,0.0755,0.0711,0.018,0.017,0.5295,0.3091 +36,1.203,-0.2231,0.4828,0.6473,0.1177,-0.0867,0.1381,0.0631,0.0352,0.0311,0.4501,0.2641 +37,0.6419,-0.0513,-0.8989,-1.0883,0.0647,-0.1423,0.0617,0.1025,0.0597,0.0559,1.2404,0.8639 +38,0.6419,-0.2877,-0.4874,-0.6529,0.1,-0.1395,0.1032,0.1397,0.0293,0.0264,0.4526,0.2639 +39,0.4855,0.2624,0.7053,0.8987,0.0531,0.0326,0.019,0.0489,0.0295,0.0279,0.8355,0.5254 diff --git a/shared/package-files/3e/3e067363fc07662ebe52ba617c2aad364920f2af395b3416297400859acd78bb/cp874.enc b/shared/package-files/3e/3e067363fc07662ebe52ba617c2aad364920f2af395b3416297400859acd78bb/cp874.enc new file mode 100644 index 0000000000000000000000000000000000000000..0487b97d98aade7304f45c178370a6bce15e384b --- /dev/null +++ b/shared/package-files/3e/3e067363fc07662ebe52ba617c2aad364920f2af395b3416297400859acd78bb/cp874.enc @@ -0,0 +1,20 @@ +# Encoding file: cp874, single-byte +S +003F 0 1 +00 +0000000100020003000400050006000700080009000A000B000C000D000E000F +0010001100120013001400150016001700180019001A001B001C001D001E001F +0020002100220023002400250026002700280029002A002B002C002D002E002F +0030003100320033003400350036003700380039003A003B003C003D003E003F +0040004100420043004400450046004700480049004A004B004C004D004E004F +0050005100520053005400550056005700580059005A005B005C005D005E005F +0060006100620063006400650066006700680069006A006B006C006D006E006F +0070007100720073007400750076007700780079007A007B007C007D007E007F +20AC008100820083008420260086008700880089008A008B008C008D008E008F +009020182019201C201D20222013201400980099009A009B009C009D009E009F +00A00E010E020E030E040E050E060E070E080E090E0A0E0B0E0C0E0D0E0E0E0F +0E100E110E120E130E140E150E160E170E180E190E1A0E1B0E1C0E1D0E1E0E1F +0E200E210E220E230E240E250E260E270E280E290E2A0E2B0E2C0E2D0E2E0E2F +0E300E310E320E330E340E350E360E370E380E390E3A00000000000000000E3F +0E400E410E420E430E440E450E460E470E480E490E4A0E4B0E4C0E4D0E4E0E4F +0E500E510E520E530E540E550E560E570E580E590E5A0E5B0000000000000000 diff --git a/shared/package-files/3e/3e06f302a96618a306184fe780c7bc41a026c244062409cdadc6854fe7cebc35/Types.hpp b/shared/package-files/3e/3e06f302a96618a306184fe780c7bc41a026c244062409cdadc6854fe7cebc35/Types.hpp new file mode 100644 index 0000000000000000000000000000000000000000..dc9a9856965addb9792796d4928c7592ea38c64a --- /dev/null +++ b/shared/package-files/3e/3e06f302a96618a306184fe780c7bc41a026c244062409cdadc6854fe7cebc35/Types.hpp @@ -0,0 +1,180 @@ +#pragma once + +#include + +#include +#include + +#include +#include + +#include +#include + +namespace c10d { + +// Base class for supplementary data potentially needed by ReduceOps +struct TORCH_API _SupplementBase : torch::CustomClassHolder { + ~_SupplementBase() override = default; +}; + +// Supplementary data specific to NCCL PREMUL_SUM +// The point of use in ProcessGroupNCCL knows how to unpack it. +struct NCCLPreMulSumSupplement : _SupplementBase { + double double_factor{0.0}; + at::Tensor tensor_factor; + NCCLPreMulSumSupplement(double f) : double_factor{f} {} + NCCLPreMulSumSupplement(at::Tensor t) : tensor_factor{std::move(t)} { + TORCH_CHECK_EQ(tensor_factor.numel(), 1); + } +}; + +// Other ReduceOps that need different supplementary data can also +// derive from _SupplementBase. +struct TORCH_API ReduceOp : torch::CustomClassHolder { + // note(crcrpar): RedOpType could be defined outside of `ReduceOp` + enum RedOpType : uint8_t { + SUM = 0, + AVG = 1, + PRODUCT = 2, + MIN = 3, + MAX = 4, + BAND = 5, // Bitwise AND + BOR = 6, // Bitwise OR + BXOR = 7, // Bitwise XOR + PREMUL_SUM = 8, // Multiply by a user-supplied constant before summing. + UNUSED = 9 + }; + + ReduceOp() = default; + + ReduceOp(RedOpType op) : op_(op) { + TORCH_INTERNAL_ASSERT( + op_ != PREMUL_SUM, + "Use `torch.distributed._make_nccl_premul_sum` to create an instance of ReduceOp with PREMUL_SUM"); + } + + ReduceOp( + RedOpType op, + c10::intrusive_ptr<_SupplementBase> optional_supplement) { + if (optional_supplement.get()) { + op_ = op; + } else { + supplement_ = optional_supplement; + } + } + + // The heap resource supplement_, if it exists, is managed by a + // c10::intrusive_ptr, so constructors and operator= can be simple + ReduceOp(const ReduceOp& other) + : op_(other.op_), supplement_(other.supplement_) {} + + const ReduceOp& operator=(const ReduceOp& other) { + op_ = other.op_; + supplement_ = other.supplement_; + return *this; + } + + operator RedOpType() const { + return op_; + } + + bool operator==(const std::uint8_t other) { + TORCH_INTERNAL_ASSERT(other < 9, "Invalid other op value"); + return other == op_; + } + + bool operator==(const ReduceOp::RedOpType other) { + return *this == static_cast(other); + } + + // todo(crcrpar): Handle `RedOpType::PREMUL_SUM` with its scaling factor. + bool operator==(const ReduceOp& other) { + return *this == other.op_; + } + + RedOpType op_ = SUM; + // supplement_ is "type-erased" storage for optional supplementary + // data the op might need. + // The point of use will know the derived type supplement_ really is, + // and downcast its pointer to extract the data as the needed type(s). + // Right now, only PREMUL_SUM needs supplementary data, but the same + // mechanism could extend to support other nontrivial reduce ops with + // different supplementary payloads. + c10::intrusive_ptr<_SupplementBase> supplement_; +}; + +template +ReduceOp makeNCCLPreMulSum(const T& factor) { + ReduceOp rop; + rop.op_ = ReduceOp::PREMUL_SUM; + rop.supplement_ = c10::make_intrusive(factor); + return rop; +} + +constexpr auto kUnsetTimeout = std::chrono::milliseconds(-1); + +struct BroadcastOptions { + int64_t rootRank = 0; + int64_t rootTensor = 0; + std::chrono::milliseconds timeout = kUnsetTimeout; + bool asyncOp = true; +}; + +struct AllreduceOptions { + ReduceOp reduceOp = ReduceOp::SUM; + std::chrono::milliseconds timeout = kUnsetTimeout; + c10::optional sparseIndices = c10::nullopt; +}; + +struct AllreduceCoalescedOptions : AllreduceOptions {}; + +struct ReduceOptions { + ReduceOp reduceOp = ReduceOp::SUM; + int64_t rootRank = 0; + int64_t rootTensor = 0; + std::chrono::milliseconds timeout = kUnsetTimeout; +}; + +struct AllgatherOptions { + std::chrono::milliseconds timeout = kUnsetTimeout; + bool asyncOp = true; +}; + +struct GatherOptions { + int64_t rootRank = 0; + std::chrono::milliseconds timeout = kUnsetTimeout; +}; + +struct ScatterOptions { + int64_t rootRank = 0; + std::chrono::milliseconds timeout = kUnsetTimeout; + bool asyncOp = true; +}; + +struct ReduceScatterOptions { + ReduceOp reduceOp = ReduceOp::SUM; + std::chrono::milliseconds timeout = kUnsetTimeout; + bool asyncOp = true; +}; + +struct AllToAllOptions { + std::chrono::milliseconds timeout = kUnsetTimeout; +}; + +struct BarrierOptions { + std::vector device_ids; + std::chrono::milliseconds timeout = kUnsetTimeout; + c10::optional device; +}; + +struct DistributedBackendOptions { + c10::intrusive_ptr<::c10d::Store> store; + int group_rank; + int group_size; + std::chrono::duration timeout; + std::string group_id; + std::vector global_ranks_in_group; +}; + +} // namespace c10d diff --git a/shared/package-files/3e/3e0747e99ad77822071014c80b2f056ba3e19ace7c3b79cf758e26f63bdfeba8/quantized_max_pool1d_ops.h b/shared/package-files/3e/3e0747e99ad77822071014c80b2f056ba3e19ace7c3b79cf758e26f63bdfeba8/quantized_max_pool1d_ops.h new file mode 100644 index 0000000000000000000000000000000000000000..8ffab7d04ec2992d24b7420e5b242b94a520833c --- /dev/null +++ b/shared/package-files/3e/3e0747e99ad77822071014c80b2f056ba3e19ace7c3b79cf758e26f63bdfeba8/quantized_max_pool1d_ops.h @@ -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 quantized_max_pool1d { + using schema = at::Tensor (const at::Tensor &, at::IntArrayRef, at::IntArrayRef, at::IntArrayRef, at::IntArrayRef, bool); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::quantized_max_pool1d") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "quantized_max_pool1d(Tensor self, int[1] kernel_size, int[1] stride=[], int[1] padding=0, int[1] dilation=1, bool ceil_mode=False) -> Tensor") + static at::Tensor call(const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, bool ceil_mode); + static at::Tensor redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, bool ceil_mode); +}; + +struct TORCH_API quantized_max_pool1d_out { + using schema = at::Tensor & (const at::Tensor &, at::IntArrayRef, at::IntArrayRef, at::IntArrayRef, at::IntArrayRef, 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::quantized_max_pool1d") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "out") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "quantized_max_pool1d.out(Tensor self, int[1] kernel_size, int[1] stride=[], int[1] padding=0, int[1] dilation=1, bool ceil_mode=False, *, Tensor(a!) out) -> Tensor(a!)") + static at::Tensor & call(const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, bool ceil_mode, at::Tensor & out); + static at::Tensor & redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, bool ceil_mode, at::Tensor & out); +}; + +}} // namespace at::_ops diff --git a/shared/package-files/3e/3e0780ab54b3c18476b4fcd4919926e8290f39566865d517e99ff421f7dd7e07/EXPERIMENTS.md b/shared/package-files/3e/3e0780ab54b3c18476b4fcd4919926e8290f39566865d517e99ff421f7dd7e07/EXPERIMENTS.md new file mode 100644 index 0000000000000000000000000000000000000000..dbfb20c4665570b1bb8374b11bec7edb1c09a8e7 --- /dev/null +++ b/shared/package-files/3e/3e0780ab54b3c18476b4fcd4919926e8290f39566865d517e99ff421f7dd7e07/EXPERIMENTS.md @@ -0,0 +1,6959 @@ +# Experiments + +All learned weights are initialized here from scratch. Validation windows are used only for selection and diagnostics. Screen evaluations span all 97 configurations, sampling at most 192 instances per configuration with seed 2026 and recomputing Seasonal Naive on exactly that subset. Full validation uses the supplied reference. Neither scale is the held-out reward scale. + +## E0: contract bootstrap +- Hypothesis: maintain a runnable package while training the first candidate. +- Changed factor: none; provided Seasonal Naive formula, with no learned parameters. +- Seed: deterministic. Measured compute: no training. +- Checkpoint hash: not applicable. +- Outcome: provisional package published with atomic directory exchange. + +## E1: direct long-horizon quantile forecasting +- Hypothesis: a direct horizon objective and explicit seasonal context features reduce long-horizon median drift and the underestimation of uncertainty from short-patch autoregression. +- Changed factors relative to the supplied baseline: 6,758,720-parameter encoder/decoder (4 encoder and 3 decoder layers, width 256), 32-point patches, variable 512–4096-point context, direct 32/128/512/1024-step objectives, monotone nine-quantile head. Context features contain recent levels, fixed damped slope and four-cycle primary/secondary seasonal averages; all weights are globally fixed at inference. +- Corpus: all 95 mounted allow-listed directories, deterministic source-capped sample totaling 958,745,103 points / 3.835 GB and 357,789 series. Shortest retained series: 16 points. At most eight shuffled shards per source, up to approximately 24M points/source. Series exceeding 131,072 points are cropped at a random position. Packing took under two minutes on six workers. +- Mixture: directory weight proportional to capped points^0.25, climate multiplier 0.35, low-frequency competition-source multiplier 3. Synthetic proportion 20%. Exact logic is in provenance/data.py. +- Synthetic generator: newly generated damped trends, Fourier seasonality, AR noise, intermittent demand and changepoints. No downloaded synthetic assets. +- Training seed: 17. AdamW 3e-4, batch 128, 400-step warmup, cosine decay, bf16, one H100. Run planned for 12,000 steps with snapshots every 1,000 steps. +- Control: randomly initialized model with zero output projection (fixed seasonal mixture and fixed initial interval widths) saved at step 0 to distinguish learning from the forecasting prior. +- Completed 12,000 steps in 349.9 seconds on one H100. Measured group skills, checkpoint hashes and outcomes are recorded below. + +## Known limits and next decisions +- This first run jointly changes the architecture and objective; it does not isolate their individual causal contributions. +- The initial corpus pack samples shuffled shards but takes early Arrow record batches within each selected shard. Later runs should test a wider source sample if validation plateaus. +- 10-second daily seasonality exceeds the 4,096-point encoder window. Longer fixed context summaries are a planned ablation after initial diagnostics. + +## E1 control, step 0, screening +- Checkpoint SHA-256: `81be0f24c44a558e29dffcabb4ac15ae3c944e1afe2860851683d155f920ec2f`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 7.037512302398682 seconds. +- Overall skill 0.000921; relative MASE 1.194471; relative WQL 0.835649. +- term skill: long=0.0466, medium=0.0284, short=-0.0280. +- domain skill: Econ/Fin=-1.0735, Energy=-0.1019, Healthcare=-0.0966, Nature=0.2991, Sales=0.3167, Transport=0.2140, Web/CloudOps=-0.1294. +- frequency skill: A=-0.6469, D=0.1541, H=0.1205, M=-0.3393, Q=-0.5490, S=-2.2691, T=0.1079, W=-0.0412. +- variates skill: multivariate=0.0528, univariate=-0.0424. +- Outcome: Untrained seasonal-mixture prior barely exceeds Seasonal Naive overall and fails badly on 10-second and low-frequency configurations. + +## E1 step 1000, seed 17, screening +- Checkpoint SHA-256: `ebdd9eaa223c2bb6e38b8faec6f465a227fcd735b654a26f3b617a757addb0d3`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 6.581991195678711 seconds. +- Overall skill 0.210443; relative MASE 0.932765; relative WQL 0.668336. +- term skill: long=0.2339, medium=0.2517, short=0.1848. +- domain skill: Econ/Fin=-0.1600, Energy=0.0730, Healthcare=-0.0312, Nature=0.3679, Sales=0.2919, Transport=0.3892, Web/CloudOps=0.2547. +- frequency skill: A=0.3078, D=0.2651, H=0.3157, M=-0.3962, Q=0.0682, S=-0.6697, T=0.2839, W=0.0983. +- variates skill: multivariate=0.2140, univariate=0.2076. +- Outcome: Improves the control by 0.2095 screening skill after about 34 seconds on one H100. Selected for first neural publication and full validation. + +## E1 step 1000, full validation +- Checkpoint SHA-256: `see model_manifest.json`. +- Evaluation: 97 configurations, 151170 instances, 0 failed configurations; not separately timed seconds. +- Overall skill 0.206132; relative MASE 0.931220; relative WQL 0.676774. +- term skill: long=0.2265, medium=0.2444, short=0.1829. +- domain skill: Econ/Fin=-0.1543, Energy=0.0590, Healthcare=-0.0112, Nature=0.3688, Sales=0.3043, Transport=0.3878, Web/CloudOps=0.2461. +- frequency skill: A=0.2746, D=0.2676, H=0.3116, M=-0.3493, Q=0.0397, S=-0.6697, T=0.2712, W=0.1025. +- variates skill: multivariate=0.2097, univariate=0.2033. +- Outcome: Full 151,170-instance validation skill 0.2061, with no failed configurations. Package inference took 29.5 seconds while training shared the sole GPU. First neural publication verified. + +## E1 step 2000, screening +- Checkpoint SHA-256: `a513ac4f03aceb93a860d5e5eca70010c0101fdea794df4a9a8ae472647fb9c9`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 5.98806357383728 seconds. +- Overall skill 0.249671; relative MASE 0.890745; relative WQL 0.632048. +- term skill: long=0.2727, medium=0.2872, short=0.2257. +- domain skill: Econ/Fin=-0.0533, Energy=0.1151, Healthcare=0.1665, Nature=0.4084, Sales=0.2984, Transport=0.3867, Web/CloudOps=0.2855. +- frequency skill: A=0.3280, D=0.2894, H=0.3291, M=-0.1483, Q=0.1703, S=-0.4627, T=0.3239, W=0.1185. +- variates skill: multivariate=0.2588, univariate=0.2423. +- Outcome: Improves screening skill to 0.2497 after 66.8 seconds of training; candidate for replacement. + +## E1 step 3000, screening +- Checkpoint SHA-256: `74da538d2365426496a12c965c0c0cdc1d3962a798bd2e2c5fed950c1f663f30`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 6.051600933074951 seconds. +- Overall skill 0.246085; relative MASE 0.894210; relative WQL 0.635631. +- term skill: long=0.2835, medium=0.2774, short=0.2187. +- domain skill: Econ/Fin=-0.1111, Energy=0.1198, Healthcare=-0.0532, Nature=0.3956, Sales=0.3188, Transport=0.4123, Web/CloudOps=0.3004. +- frequency skill: A=0.3478, D=0.2585, H=0.3298, M=-0.3174, Q=0.1517, S=-0.6889, T=0.3620, W=0.1126. +- variates skill: multivariate=0.2552, univariate=0.2388. +- Outcome: Slight regression to 0.2461 relative to step 2000. Negative checkpoint-selection result; not selected. + +## E2 fixed longer-history feature ablation, step 2000 seed 17 +- Checkpoint SHA-256: `25ac85db67c041c92870e2ea2e8b198bb768f5c5ed64f42b78d6ec207ffe3a18`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 6.066685438156128 seconds. +- Overall skill 0.249089; relative MASE 0.890661; relative WQL 0.633088. +- term skill: long=0.2741, medium=0.2855, short=0.2248. +- domain skill: Econ/Fin=-0.0532, Energy=0.1146, Healthcare=0.1651, Nature=0.4048, Sales=0.2986, Transport=0.3880, Web/CloudOps=0.2859. +- frequency skill: A=0.3273, D=0.2892, H=0.3291, M=-0.1495, Q=0.1705, S=-0.4627, T=0.3228, W=0.1166. +- variates skill: multivariate=0.2572, univariate=0.2426. +- Outcome: No training. Changed only history available to seasonal summaries from 4,096 to 16,384 points, with the encoder unchanged. Skill decreased 0.24967 to 0.24909. Rejected. Validation 10-second histories are shorter than one daily cycle, so additional history cannot supply that feature. + +## E1 step 4000, screening +- Checkpoint SHA-256: `f1b4e5f798688a56a693daf799fa21e69ec21c9c1710cae8dafbdb833c9ee069`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 5.961170196533203 seconds. +- Overall skill 0.266471; relative MASE 0.874789; relative WQL 0.615080. +- term skill: long=0.2537, medium=0.2846, short=0.2643. +- domain skill: Econ/Fin=-0.0360, Energy=0.1306, Healthcare=0.1810, Nature=0.3894, Sales=0.3301, Transport=0.4253, Web/CloudOps=0.3121. +- frequency skill: A=0.3647, D=0.2978, H=0.3375, M=-0.0981, Q=0.1458, S=-0.2890, T=0.3375, W=0.1196. +- variates skill: multivariate=0.2648, univariate=0.2678. +- Outcome: Best ungated checkpoint so far; improved short-horizon performance, with some long-horizon regression. + +## E1 step 6000, screening +- Checkpoint SHA-256: `f38cdb1b49938007c20bdfdfa7c4fc7d7aba6516192f388f37088891411eab7f`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 6.802650451660156 seconds. +- Overall skill 0.258313; relative MASE 0.878300; relative WQL 0.626324. +- term skill: long=0.2951, medium=0.3035, short=0.2254. +- domain skill: Econ/Fin=-0.0599, Energy=0.1417, Healthcare=0.2750, Nature=0.3683, Sales=0.3181, Transport=0.4116, Web/CloudOps=0.2761. +- frequency skill: A=0.3490, D=0.2962, H=0.3475, M=-0.0679, Q=0.1442, S=-0.6390, T=0.3416, W=0.0785. +- variates skill: multivariate=0.2482, univariate=0.2662. +- Outcome: Overall regression relative to step 4000 despite improvement on medium and long horizons. Not selected by overall skill. + +## E3 seasonal confidence gate, step 4000 seed 17 +- Checkpoint SHA-256: `f1b4e5f798688a56a693daf799fa21e69ec21c9c1710cae8dafbdb833c9ee069`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 9.475942373275757 seconds. +- Overall skill 0.301779; relative MASE 0.827721; relative WQL 0.588981. +- term skill: long=0.3338, medium=0.3656, short=0.2627. +- domain skill: Econ/Fin=-0.0087, Energy=0.1326, Healthcare=0.1954, Nature=0.3891, Sales=0.3285, Transport=0.4242, Web/CloudOps=0.4509. +- frequency skill: A=0.3647, D=0.2945, H=0.3455, M=-0.0632, Q=0.1395, S=0.3700, T=0.3389, W=0.1159. +- variates skill: multivariate=0.3379, univariate=0.2716. +- Outcome: No additional training. Fixed gate: weight=clip(1 - mean squared seasonal difference / (0.25 * context variance), 0, 0.98). Blend neural quantiles with a last-four-cycle seasonal mean and Gaussian intervals based on seasonal differences. Each instance uses only its own context; no optimized or adapted parameters. Skill increases 0.26647 to 0.30178; selected for full validation. + +## E3 step 4000 gate, full validation +- Checkpoint SHA-256: `see model_manifest.json`. +- Evaluation: 97 configurations, 151170 instances, 0 failed configurations; not separately timed seconds. +- Overall skill 0.296168; relative MASE 0.830141; relative WQL 0.596742. +- term skill: long=0.3262, medium=0.3621, short=0.2569. +- domain skill: Econ/Fin=-0.0444, Energy=0.1210, Healthcare=0.2106, Nature=0.3890, Sales=0.3389, Transport=0.4244, Web/CloudOps=0.4426. +- frequency skill: A=0.2806, D=0.2946, H=0.3404, M=-0.0364, Q=0.1048, S=0.3700, T=0.3291, W=0.1093. +- variates skill: multivariate=0.3332, univariate=0.2652. +- Outcome: Selected and published. Full validation skill 0.296168 versus 0.206132 for the initial neural package; no failures. Full inference took 39.8 seconds while sharing one GPU with training. This is validation skill, not a held-out reward claim. + +## E1 step 8000, seed 17, ungated screening +- Checkpoint SHA-256: `ebbae91cb50acf1b1436fcbcdce1637195dd6e5006580d3d8e94a4e102aed0ad`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 5.500704050064087 seconds. +- Overall skill 0.276275; relative MASE 0.864160; relative WQL 0.606113. +- term skill: long=0.2954, medium=0.3094, short=0.2557. +- domain skill: Econ/Fin=-0.0085, Energy=0.1522, Healthcare=0.1826, Nature=0.3866, Sales=0.3192, Transport=0.4212, Web/CloudOps=0.3315. +- frequency skill: A=0.3679, D=0.3262, H=0.3533, M=-0.2016, Q=0.1316, S=-0.4192, T=0.3605, W=0.1103. +- variates skill: multivariate=0.2735, univariate=0.2785. +- Outcome: Included in final checkpoint selection; compare to weight-averaged result below. + +## E1 step 8000, seed 17, gated screening +- Checkpoint SHA-256: `ebbae91cb50acf1b1436fcbcdce1637195dd6e5006580d3d8e94a4e102aed0ad`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 6.228765964508057 seconds. +- Overall skill 0.312772; relative MASE 0.813977; relative WQL 0.580216. +- term skill: long=0.3671, medium=0.3752, short=0.2645. +- domain skill: Econ/Fin=-0.0003, Energy=0.1512, Healthcare=0.1999, Nature=0.3863, Sales=0.3176, Transport=0.4184, Web/CloudOps=0.4791. +- frequency skill: A=0.3679, D=0.3227, H=0.3559, M=-0.1576, Q=0.1357, S=0.3651, T=0.3604, W=0.1062. +- variates skill: multivariate=0.3530, univariate=0.2790. +- Outcome: Included in final checkpoint selection; compare to weight-averaged result below. + +## E1 step 10000, seed 17, ungated screening +- Checkpoint SHA-256: `3845afb6035396030b9a5182037287db092814d68caa4c96a7c415eb1d3b3a0a`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 6.094600439071655 seconds. +- Overall skill 0.285838; relative MASE 0.855761; relative WQL 0.595993. +- term skill: long=0.2974, medium=0.3249, short=0.2658. +- domain skill: Econ/Fin=0.0083, Energy=0.1537, Healthcare=0.1904, Nature=0.3858, Sales=0.3164, Transport=0.4217, Web/CloudOps=0.3674. +- frequency skill: A=0.3494, D=0.3058, H=0.3594, M=-0.1439, Q=0.1128, S=-0.2516, T=0.3685, W=0.1234. +- variates skill: multivariate=0.2917, univariate=0.2812. +- Outcome: Included in final checkpoint selection; compare to weight-averaged result below. + +## E1 step 10000, seed 17, gated screening +- Checkpoint SHA-256: `3845afb6035396030b9a5182037287db092814d68caa4c96a7c415eb1d3b3a0a`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 7.704133749008179 seconds. +- Overall skill 0.317743; relative MASE 0.805746; relative WQL 0.577695. +- term skill: long=0.3656, medium=0.3815, short=0.2718. +- domain skill: Econ/Fin=0.0087, Energy=0.1540, Healthcare=0.2110, Nature=0.3855, Sales=0.3148, Transport=0.4194, Web/CloudOps=0.4916. +- frequency skill: A=0.3494, D=0.3033, H=0.3612, M=-0.1027, Q=0.1231, S=0.3756, T=0.3699, W=0.1199. +- variates skill: multivariate=0.3600, univariate=0.2821. +- Outcome: Included in final checkpoint selection; compare to weight-averaged result below. + +## E1 step 12000, seed 17, ungated screening +- Checkpoint SHA-256: `629130a69f89561219b286c1e805d89b8b4662fce0e4b75e731e8764d9066e98`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 5.807793855667114 seconds. +- Overall skill 0.284471; relative MASE 0.856118; relative WQL 0.598027. +- term skill: long=0.2877, medium=0.3155, short=0.2710. +- domain skill: Econ/Fin=0.0294, Energy=0.1544, Healthcare=0.2252, Nature=0.3903, Sales=0.3151, Transport=0.4273, Web/CloudOps=0.3413. +- frequency skill: A=0.3430, D=0.3172, H=0.3585, M=-0.1807, Q=0.1231, S=-0.2708, T=0.3565, W=0.1685. +- variates skill: multivariate=0.2854, univariate=0.2837. +- Outcome: Included in final checkpoint selection; compare to weight-averaged result below. + +## E1 step 12000, seed 17, gated screening +- Checkpoint SHA-256: `629130a69f89561219b286c1e805d89b8b4662fce0e4b75e731e8764d9066e98`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 7.750269889831543 seconds. +- Overall skill 0.315453; relative MASE 0.812477; relative WQL 0.576760. +- term skill: long=0.3585, medium=0.3794, short=0.2715. +- domain skill: Econ/Fin=0.0081, Energy=0.1534, Healthcare=0.2414, Nature=0.3899, Sales=0.3136, Transport=0.4251, Web/CloudOps=0.4722. +- frequency skill: A=0.3430, D=0.3141, H=0.3577, M=-0.1400, Q=0.1249, S=0.3722, T=0.3572, W=0.1641. +- variates skill: multivariate=0.3552, univariate=0.2820. +- Outcome: Included in final checkpoint selection; compare to weight-averaged result below. + +## E4 stochastic weight average, seed 17, gated screening +- Checkpoint SHA-256: `a346a09ba0b8d196b58acc22a76f7944109b2bba04ea2b7cf7566de24aa2d8db`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 7.737564325332642 seconds. +- Overall skill 0.320612; relative MASE 0.803931; relative WQL 0.574139. +- term skill: long=0.3654, medium=0.3823, short=0.2769. +- domain skill: Econ/Fin=0.0210, Energy=0.1663, Healthcare=0.2341, Nature=0.3839, Sales=0.3192, Transport=0.4246, Web/CloudOps=0.4812. +- frequency skill: A=0.3645, D=0.3114, H=0.3584, M=-0.0937, Q=0.1411, S=0.3729, T=0.3725, W=0.1398. +- variates skill: multivariate=0.3557, univariate=0.2913. +- Outcome: Arithmetic weight average of steps 8000, 9000, 10000, 11000 and 12000. Total underlying training 349.9 seconds on one H100 for 12,000 steps / 1,536,000 windows. Averaging uses no validation labels or training updates. Screening skill 0.320612 exceeds the best individual checkpoint 0.317743; selected for full validation. + +## E3 confidence and quantile-width sweep +- Fixed global settings, selected only on validation; no model updates. Seed and checkpoint: E1 step 8000, seed 17. +- Measured CPU time: 10.7 seconds. The original threshold 0.25 and width multiplier 1.0 won; no tuned change was adopted. +- (variance threshold, width multiplier) (0.25, 1.0): skill 0.312772; term skills {'short': 0.2645319168347662, 'medium': 0.37524061562171485, 'long': 0.36711552655262625}. +- (variance threshold, width multiplier) (0.5, 1.0): skill 0.311338; term skills {'short': 0.26128183571880415, 'medium': 0.3766834137570718, 'long': 0.36686872500364487}. +- (variance threshold, width multiplier) (0.25, 0.75): skill 0.310114; term skills {'short': 0.26357949467631236, 'medium': 0.3710044838302994, 'long': 0.36223509497654094}. +- (variance threshold, width multiplier) (0.1, 1.0): skill 0.309380; term skills {'short': 0.2645827018541862, 'medium': 0.3687788042390393, 'long': 0.3590704635989247}. +- (variance threshold, width multiplier) (0.25, 1.25): skill 0.308716; term skills {'short': 0.25806263726485956, 'medium': 0.3732424245969126, 'long': 0.3664492202082874}. +- (variance threshold, width multiplier) (0.5, 0.75): skill 0.308480; term skills {'short': 0.2599791649373039, 'medium': 0.3724274186615034, 'long': 0.36196930941343286}. +- (variance threshold, width multiplier) (0.5, 1.25): skill 0.307830; term skills {'short': 0.25575126666422066, 'medium': 0.3747816871597687, 'long': 0.3663051398261168}. +- (variance threshold, width multiplier) (0.1, 0.75): skill 0.306923; term skills {'short': 0.26386190560263856, 'medium': 0.3650190620286501, 'long': 0.35398875275507513}. +- (variance threshold, width multiplier) (0.1, 1.25): skill 0.305043; term skills {'short': 0.2579337472130613, 'medium': 0.36611831669487493, 'long': 0.3583403545682865}. +- (variance threshold, width multiplier) (1.0, 1.0): skill 0.300332; term skills {'short': 0.24300377373135085, 'medium': 0.37515035650362993, 'long': 0.3625716315021771}. +- (variance threshold, width multiplier) (1.0, 0.75): skill 0.297470; term skills {'short': 0.24163138399697548, 'medium': 0.37101264403024414, 'long': 0.3577626408389879}. +- (variance threshold, width multiplier) (1.0, 1.25): skill 0.296900; term skills {'short': 0.23759298244372884, 'medium': 0.3732464838258517, 'long': 0.3619922948184182}. +- (variance threshold, width multiplier) (0.0, 1.0): skill 0.276275; term skills {'short': 0.25565045294773825, 'medium': 0.30935443355536374, 'long': 0.29541709470756516}. +- (variance threshold, width multiplier) (0.0, 0.75): skill 0.274035; term skills {'short': 0.2552205537396286, 'medium': 0.30589300644316675, 'long': 0.289930620063797}. +- (variance threshold, width multiplier) (0.0, 1.25): skill 0.271354; term skills {'short': 0.2486798921582145, 'medium': 0.30569315727356094, 'long': 0.29429049771287774}. + +## E5 capacity and exponential averaging +- Hypothesis: increased capacity reduces residual errors after direct-horizon training; exponential weight averaging reduces checkpoint noise. +- Changed factors: width 512, six encoder and four decoder layers, 37,002,816 parameters; 24,000-step schedule at 2e-4; seed 23. Same source sample, mixture, synthetic generator, batch 128 and horizon distribution as E1. Training-only EMA decay min(0.999, 1-1/(step+1)). +- Completed on the sole H100; raw and EMA snapshots were evaluated across all 97 configurations. No causal claim isolates size from seed/schedule changes. + +## E4 averaged small model, full validation +- Checkpoint SHA-256: `see model_manifest.json`. +- Evaluation: 97 configurations, 151170 instances, 0 failed configurations; not separately timed seconds. +- Overall skill 0.315325; relative MASE 0.806359; relative WQL 0.581354. +- term skill: long=0.3584, medium=0.3790, short=0.2715. +- domain skill: Econ/Fin=-0.0034, Energy=0.1557, Healthcare=0.2457, Nature=0.3833, Sales=0.3308, Transport=0.4241, Web/CloudOps=0.4729. +- frequency skill: A=0.2978, D=0.3142, H=0.3526, M=-0.0698, Q=0.1192, S=0.3729, T=0.3632, W=0.1318. +- variates skill: multivariate=0.3509, univariate=0.2856. +- Outcome: Full validation skill 0.315325, relative MASE 0.806359 and relative WQL 0.581354, all 97 configurations valid. Inference took 37.2 seconds while sharing one H100 with training. Selected over the step-4000 gated package. + +## E6 sign symmetry, averaged small model, seed 17 +- Checkpoint SHA-256: `a346a09ba0b8d196b58acc22a76f7944109b2bba04ea2b7cf7566de24aa2d8db`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 7.13059401512146 seconds. +- Overall skill 0.328463; relative MASE 0.794174; relative WQL 0.567837. +- term skill: long=0.3740, medium=0.3863, short=0.2861. +- domain skill: Econ/Fin=0.0049, Energy=0.1627, Healthcare=0.2543, Nature=0.3978, Sales=0.3314, Transport=0.4439, Web/CloudOps=0.4889. +- frequency skill: A=0.2986, D=0.3191, H=0.3677, M=-0.0077, Q=0.1661, S=0.3711, T=0.3792, W=0.1244. +- variates skill: multivariate=0.3628, univariate=0.2998. +- Outcome: No additional training. Average the forecasts from x and negated x with quantile order reversed, then apply positivity and the same fixed seasonal gate. Screening skill rises 0.320612 to 0.328463. Hypothesis: sign symmetry reduces finite-sample neural bias. Selected for full validation. + +## E6 sign symmetry, averaged small model, full validation +- Checkpoint SHA-256: `see model_manifest.json`. +- Evaluation: 97 configurations, 151170 instances, 0 failed configurations; not separately timed seconds. +- Overall skill 0.323978; relative MASE 0.795773; relative WQL 0.574292. +- term skill: long=0.3666, medium=0.3832, short=0.2823. +- domain skill: Econ/Fin=-0.0072, Energy=0.1517, Healthcare=0.2646, Nature=0.3974, Sales=0.3433, Transport=0.4439, Web/CloudOps=0.4816. +- frequency skill: A=0.2459, D=0.3222, H=0.3623, M=0.0177, Q=0.1587, S=0.3711, T=0.3705, W=0.1158. +- variates skill: multivariate=0.3586, univariate=0.2951. +- Outcome: Full validation skill 0.323978 versus 0.315325 without sign symmetry. Relative MASE 0.795773, relative WQL 0.574292, zero failed configurations, 42.3 seconds of inference. Selected for atomic publication. + +## E7 coarse temporal resolution at inference, small averaged model +- Checkpoint SHA-256: `a346a09ba0b8d196b58acc22a76f7944109b2bba04ea2b7cf7566de24aa2d8db`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 8.896855354309082 seconds. +- Overall skill 0.320862; relative MASE 0.803289; relative WQL 0.574174. +- term skill: long=0.3616, medium=0.3660, short=0.2861. +- domain skill: Econ/Fin=0.0049, Energy=0.1601, Healthcare=0.2543, Nature=0.4043, Sales=0.3314, Transport=0.4281, Web/CloudOps=0.4698. +- frequency skill: A=0.2986, D=0.3191, H=0.3444, M=-0.0077, Q=0.1661, S=0.3686, T=0.3804, W=0.1244. +- variates skill: multivariate=0.3567, univariate=0.2909. +- Outcome: Negative result: for horizons >=400, average the sign-symmetric prediction with a four-step-aggregated prediction from the same weights, then apply the unchanged seasonal gate. Screening skill falls from 0.328463 to 0.320862, so this is rejected. No training or fitted context parameters. + +## E8 median and predictable-series loss weighting +- Hypothesis: optimizing median error explicitly and weighting by context seasonal error aligns pretraining with MASE and quantile loss. +- Initial weights: E4 averaged small model, trained here from random initialization; no external pretrained assets. +- Changed factor: loss = mean over valid steps of 0.5 times mean pinball loss plus 0.25 times absolute median error, weighted per instance by clip(1/(0.25 + normalized context seasonal absolute difference), 0.25, 4). Weights are normalized across the batch. Training-only calculation; inference model unchanged. +- Seed 31, batch 256, 6,000 steps, AdamW 1e-4 with 400-step warmup and cosine decay, same source sample and synthetic generator. EMA as E5. +- Compute: 272.9 seconds elapsed on the sole H100, shared concurrently with E5. Underlying initial pretraining used 349.9 seconds. + +## E8 step 1000, seed 31, symmetric screening +- Checkpoint SHA-256: `e7cb5c4b4f04ba1ca873bc725f5e4345874520a96cbd3f079e4f631fd3c46d50`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 7.978966474533081 seconds. +- Overall skill 0.331642; relative MASE 0.791898; relative WQL 0.564091. +- term skill: long=0.3735, medium=0.3891, short=0.2910. +- domain skill: Econ/Fin=-0.0197, Energy=0.1668, Healthcare=0.2894, Nature=0.4040, Sales=0.3301, Transport=0.4439, Web/CloudOps=0.4906. +- frequency skill: A=0.2646, D=0.3158, H=0.3714, M=0.0669, Q=0.1387, S=0.3726, T=0.3764, W=0.1424. +- variates skill: multivariate=0.3652, univariate=0.3036. +- Outcome: EMA at 6000 is best overall and selected for full validation; raw checkpoints show greater variance. + +## E8 ema 1000, seed 31, symmetric screening +- Checkpoint SHA-256: `dab309aff5a3a28936391b84b3ebd9d5dfc208e53c1e1602e4f5c599e3004c33`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 8.16230034828186 seconds. +- Overall skill 0.332263; relative MASE 0.790121; relative WQL 0.564310. +- term skill: long=0.3745, medium=0.3873, short=0.2925. +- domain skill: Econ/Fin=0.0051, Energy=0.1638, Healthcare=0.2952, Nature=0.4011, Sales=0.3311, Transport=0.4450, Web/CloudOps=0.4919. +- frequency skill: A=0.3239, D=0.3220, H=0.3698, M=0.0488, Q=0.1636, S=0.3751, T=0.3783, W=0.1317. +- variates skill: multivariate=0.3653, univariate=0.3047. +- Outcome: EMA at 6000 is best overall and selected for full validation; raw checkpoints show greater variance. + +## E8 step 2000, seed 31, symmetric screening +- Checkpoint SHA-256: `111cf52c0662c60aebb44355135a65675a09d898995deeb4dd2f8f2b66339a0f`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 9.85259199142456 seconds. +- Overall skill 0.326318; relative MASE 0.796087; relative WQL 0.570097. +- term skill: long=0.3658, medium=0.3826, short=0.2873. +- domain skill: Econ/Fin=-0.0159, Energy=0.1477, Healthcare=0.3155, Nature=0.4038, Sales=0.3247, Transport=0.4419, Web/CloudOps=0.4862. +- frequency skill: A=0.2949, D=0.3163, H=0.3678, M=0.0654, Q=0.1519, S=0.3722, T=0.3655, W=0.1286. +- variates skill: multivariate=0.3573, univariate=0.3006. +- Outcome: EMA at 6000 is best overall and selected for full validation; raw checkpoints show greater variance. + +## E8 ema 2000, seed 31, symmetric screening +- Checkpoint SHA-256: `5fa525d923b4af5949f2415cf0ad0b325dae7623f07aae06b3131bdbda08c209`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 14.634822130203247 seconds. +- Overall skill 0.332843; relative MASE 0.789360; relative WQL 0.563874. +- term skill: long=0.3745, medium=0.3875, short=0.2936. +- domain skill: Econ/Fin=0.0007, Energy=0.1627, Healthcare=0.3135, Nature=0.4026, Sales=0.3309, Transport=0.4452, Web/CloudOps=0.4913. +- frequency skill: A=0.3152, D=0.3249, H=0.3696, M=0.0640, Q=0.1700, S=0.3757, T=0.3784, W=0.1261. +- variates skill: multivariate=0.3645, univariate=0.3065. +- Outcome: EMA at 6000 is best overall and selected for full validation; raw checkpoints show greater variance. + +## E8 step 4000, seed 31, symmetric screening +- Checkpoint SHA-256: `8ce9867a6005c28005b32d163254c088279f2a46febeadc433b403aeffc29066`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 20.403828620910645 seconds. +- Overall skill 0.333292; relative MASE 0.789778; relative WQL 0.562816. +- term skill: long=0.3723, medium=0.3857, short=0.2961. +- domain skill: Econ/Fin=-0.0157, Energy=0.1603, Healthcare=0.3279, Nature=0.4080, Sales=0.3286, Transport=0.4450, Web/CloudOps=0.4921. +- frequency skill: A=0.2821, D=0.3254, H=0.3697, M=0.0826, Q=0.1490, S=0.3718, T=0.3810, W=0.1182. +- variates skill: multivariate=0.3645, univariate=0.3073. +- Outcome: EMA at 6000 is best overall and selected for full validation; raw checkpoints show greater variance. + +## E8 ema 4000, seed 31, symmetric screening +- Checkpoint SHA-256: `e61535b34efac923328f1dd464f5ab8ab05913438f86125d8b933f1b166281d9`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 10.288180112838745 seconds. +- Overall skill 0.334221; relative MASE 0.787768; relative WQL 0.562681. +- term skill: long=0.3735, medium=0.3879, short=0.2964. +- domain skill: Econ/Fin=-0.0016, Energy=0.1638, Healthcare=0.3235, Nature=0.4037, Sales=0.3295, Transport=0.4477, Web/CloudOps=0.4916. +- frequency skill: A=0.3041, D=0.3326, H=0.3704, M=0.0629, Q=0.1674, S=0.3746, T=0.3813, W=0.1128. +- variates skill: multivariate=0.3653, univariate=0.3084. +- Outcome: EMA at 6000 is best overall and selected for full validation; raw checkpoints show greater variance. + +## E8 step 6000, seed 31, symmetric screening +- Checkpoint SHA-256: `15833e7668d9cd11ed55a4820b4700d71c6f734415d11490c7e8beb654abfa12`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 21.2668559551239 seconds. +- Overall skill 0.334430; relative MASE 0.788174; relative WQL 0.562038. +- term skill: long=0.3762, medium=0.3886, short=0.2953. +- domain skill: Econ/Fin=-0.0108, Energy=0.1611, Healthcare=0.3518, Nature=0.4037, Sales=0.3298, Transport=0.4457, Web/CloudOps=0.4924. +- frequency skill: A=0.2760, D=0.3360, H=0.3690, M=0.0736, Q=0.1605, S=0.3759, T=0.3813, W=0.1132. +- variates skill: multivariate=0.3660, univariate=0.3081. +- Outcome: EMA at 6000 is best overall and selected for full validation; raw checkpoints show greater variance. + +## E8 ema 6000, seed 31, symmetric screening +- Checkpoint SHA-256: `70a3768d667df75f0d6565e831cdca8cf7c179c8546252e5902f7b7ec68ab7aa`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 11.340764284133911 seconds. +- Overall skill 0.335038; relative MASE 0.787307; relative WQL 0.561630. +- term skill: long=0.3762, medium=0.3878, short=0.2968. +- domain skill: Econ/Fin=-0.0053, Energy=0.1637, Healthcare=0.3401, Nature=0.4031, Sales=0.3292, Transport=0.4464, Web/CloudOps=0.4934. +- frequency skill: A=0.2894, D=0.3329, H=0.3693, M=0.0767, Q=0.1622, S=0.3763, T=0.3828, W=0.1162. +- variates skill: multivariate=0.3659, univariate=0.3094. +- Outcome: EMA at 6000 is best overall and selected for full validation; raw checkpoints show greater variance. + +## E9 neural context 512 for horizons <=128, seed 17 +- Checkpoint SHA-256: `a346a09ba0b8d196b58acc22a76f7944109b2bba04ea2b7cf7566de24aa2d8db`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 10.416622161865234 seconds. +- Overall skill 0.320871; relative MASE 0.803968; relative WQL 0.573675. +- term skill: long=0.3740, medium=0.3863, short=0.2718. +- domain skill: Econ/Fin=0.0457, Energy=0.1466, Healthcare=0.2113, Nature=0.3887, Sales=0.3285, Transport=0.4330, Web/CloudOps=0.4911. +- frequency skill: A=0.2986, D=0.2904, H=0.3587, M=-0.0099, Q=0.1658, S=0.3756, T=0.3687, W=0.1716. +- variates skill: multivariate=0.3665, univariate=0.2822. +- Outcome: Only the neural input is shortened; the seasonal confidence gate retains 4096 points. 512 loses skill; 1024/2048 improve by less than 0.001 over the control. Not adopted pending a larger effect. + +## E9 neural context 1024 for horizons <=128, seed 17 +- Checkpoint SHA-256: `a346a09ba0b8d196b58acc22a76f7944109b2bba04ea2b7cf7566de24aa2d8db`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 19.072535276412964 seconds. +- Overall skill 0.329251; relative MASE 0.796444; relative WQL 0.564891. +- term skill: long=0.3740, medium=0.3863, short=0.2876. +- domain skill: Econ/Fin=0.0323, Energy=0.1629, Healthcare=0.1832, Nature=0.3978, Sales=0.3361, Transport=0.4415, Web/CloudOps=0.4998. +- frequency skill: A=0.2986, D=0.3031, H=0.3649, M=-0.0077, Q=0.1661, S=0.3761, T=0.3907, W=0.1240. +- variates skill: multivariate=0.3738, univariate=0.2915. +- Outcome: Only the neural input is shortened; the seasonal confidence gate retains 4096 points. 512 loses skill; 1024/2048 improve by less than 0.001 over the control. Not adopted pending a larger effect. + +## E9 neural context 2048 for horizons <=128, seed 17 +- Checkpoint SHA-256: `a346a09ba0b8d196b58acc22a76f7944109b2bba04ea2b7cf7566de24aa2d8db`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 9.426023244857788 seconds. +- Overall skill 0.329063; relative MASE 0.794285; relative WQL 0.566744. +- term skill: long=0.3740, medium=0.3863, short=0.2872. +- domain skill: Econ/Fin=0.0227, Energy=0.1628, Healthcare=0.2235, Nature=0.3975, Sales=0.3314, Transport=0.4448, Web/CloudOps=0.4931. +- frequency skill: A=0.2986, D=0.3154, H=0.3656, M=-0.0077, Q=0.1661, S=0.3738, T=0.3847, W=0.1224. +- variates skill: multivariate=0.3651, univariate=0.2989. +- Outcome: Only the neural input is shortened; the seasonal confidence gate retains 4096 points. 512 loses skill; 1024/2048 improve by less than 0.001 over the control. Not adopted pending a larger effect. + +## E10 fixed 50/50 ensemble diagnostic +- Checkpoint SHA-256: `see model_manifest.json`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 4.082070589065552 seconds. +- Overall skill 0.332712; relative MASE 0.791350; relative WQL 0.562676. +- term skill: long=0.3746, medium=0.3901, short=0.2921. +- domain skill: Econ/Fin=-0.0029, Energy=0.1641, Healthcare=0.3036, Nature=0.4055, Sales=0.3288, Transport=0.4500, Web/CloudOps=0.4870. +- frequency skill: A=0.2971, D=0.3243, H=0.3712, M=0.0353, Q=0.1843, S=0.3742, T=0.3778, W=0.1385. +- variates skill: multivariate=0.3658, univariate=0.3052. +- Outcome: Average of E8 EMA4000 and E5 EMA12000, both with sign symmetry and the same fixed seasonal gate. Skill 0.332712 is below E8 alone (0.334221). Rejected for now; both members would forecast every instance. + +## E8 EMA6000, full validation +- Checkpoint SHA-256: `see model_manifest.json`. +- Evaluation: 97 configurations, 151170 instances, 0 failed configurations; not separately timed seconds. +- Overall skill 0.330109; relative MASE 0.789610; relative WQL 0.568323. +- term skill: long=0.3687, medium=0.3851, short=0.2920. +- domain skill: Econ/Fin=-0.0223, Energy=0.1525, Healthcare=0.3475, Nature=0.4024, Sales=0.3415, Transport=0.4461, Web/CloudOps=0.4860. +- frequency skill: A=0.2370, D=0.3358, H=0.3639, M=0.0960, Q=0.1447, S=0.3763, T=0.3738, W=0.1061. +- variates skill: multivariate=0.3616, univariate=0.3039. +- Outcome: Full validation skill 0.330109, relative MASE 0.789610, relative WQL 0.568323, zero failed configurations. Inference took 48.1 seconds while sharing the one H100. Improves the previous published 0.323978 and is selected for atomic publication. + +## E11 matched corpus-coverage experiment +- Hypothesis: broader source coverage improves generalization after the initial model has plateaued. +- Expanded sample: 95 directories, 1,032,415 series, 5,653,290,832 points (22.613 GB), versus 357,789 series and 958,745,103 points (3.835 GB). Per-source cap rises from 24M to 192M points, Arrow record batches are shuffled within each selected shard, and the per-series crop cap rises from 131,072 to 1,048,576. The same deterministic directory-hash seeds and at most eight sampled shards per directory are used. +- Two matched continuations start from E8 EMA6000: original sample control and expanded sample. Both use seed 41, batch 256, the E8 loss, 6,000 steps, AdamW 1e-4 and the same schedule/EMA. Training uses only corpus/synthetic data. +- Runs share the single H100 with E5; CPU threads are limited to three per new trainer. Completed matched runs: control 363.4 s, expanded 364.8 s; the expanded corpus did not improve either matched checkpoint. Detailed results are below. + +## E12 fixed continuity correction +- Hypothesis: a direct-horizon head can miss the immediate level of a smooth history, and a small decaying correction should reduce short-horizon error. No training or context fitting. E8 EMA6000 weights, seed 31. +- Fixed formula: ratio=mean(square(first differences))/variance over the last 512 points; w=clip(1-ratio/0.5,0,0.95); bias=w*(last value + median of the last eight differences - first forecast median). Add bias*exp(-step/tau) to each quantile, then retain the existing positivity rule. Skip sparse missing-value differences. +- Initial diagnostic needed a missing-value guard; invalid intermediate scores were discarded. A positivity-lookback mismatch in the probe was also corrected so tau=0 exactly reproduces the control. +- CPU sweep took 6.0 seconds; final verified control and all candidate scores follow. Tau 24 selected for package/full validation. +- tau=0: skill 0.335038, relative MASE 0.787307, relative WQL 0.561630, group skills {'term': {'short': 0.2967927346774093, 'medium': 0.38776799350809343, 'long': 0.37616349665047677}, 'domain': {'Econ/Fin': -0.005273788909573085, 'Energy': 0.16374587322817125, 'Healthcare': 0.34007707190705616, 'Nature': 0.4030815329292825, 'Sales': 0.32924485226314826, 'Transport': 0.4464324047455728, 'Web/CloudOps': 0.4934311796492926}, 'freq': {'A-DEC': 0.2893784388532201, 'Q-DEC': 0.16218093798601307, 'M': 0.07665328507242941, 'W-SUN': -0.31450314757766273, 'D': 0.332876404786148, 'H': 0.3693479345200832, '15T': 0.14228566862247327, 'W-FRI': 0.032405497411887585, '10T': 0.4887742379514316, 'W-TUE': 0.309664207244038, 'W-THU': 0.14794979612329628, 'W-WED': 0.29198895648742507, '5T': 0.5120305409377247, '10S': 0.3762720731817548}}. +- tau=2: skill 0.337508, relative MASE 0.783332, relative WQL 0.560293, group skills {'term': {'short': 0.30112159439110886, 'medium': 0.3882128168958763, 'long': 0.3763449044348186}, 'domain': {'Econ/Fin': 0.012010642573481944, 'Energy': 0.1687336419481582, 'Healthcare': 0.33847751009406857, 'Nature': 0.4038059435050727, 'Sales': 0.32920024652725177, 'Transport': 0.4463400575252827, 'Web/CloudOps': 0.4950030531002031}, 'freq': {'A-DEC': 0.2973561434987757, 'Q-DEC': 0.17698071591831765, 'M': 0.07233297868059718, 'W-SUN': -0.2582996069171355, 'D': 0.3346112879714367, 'H': 0.36855118351366944, '15T': 0.14569114456054433, 'W-FRI': 0.021432593572035197, '10T': 0.5064176027092252, 'W-TUE': 0.3132256284193611, 'W-THU': 0.1516542652623164, 'W-WED': 0.29198895648742507, '5T': 0.5121886153783087, '10S': 0.38181456512243606}}. +- tau=8: skill 0.339730, relative MASE 0.781190, relative WQL 0.558067, group skills {'term': {'short': 0.30468677533784194, 'medium': 0.3890128603479147, 'long': 0.3768542253336602}, 'domain': {'Econ/Fin': 0.04357586882889164, 'Energy': 0.17060177779549268, 'Healthcare': 0.3292576172809155, 'Nature': 0.4040895491577191, 'Sales': 0.32915095007230155, 'Transport': 0.4455718893158739, 'Web/CloudOps': 0.498582535356759}, 'freq': {'A-DEC': 0.30427943534005153, 'Q-DEC': 0.18739632573970566, 'M': 0.05811644843967234, 'W-SUN': -0.14993519310493708, 'D': 0.33691177813304396, 'H': 0.36800946318922256, '15T': 0.15562275067857723, 'W-FRI': 0.015293948848938421, '10T': 0.5022238811405833, 'W-TUE': 0.308852394109824, 'W-THU': 0.16531962754891327, 'W-WED': 0.29198895648742507, '5T': 0.5124270255950129, '10S': 0.3959332124123227}}. +- tau=24: skill 0.341604, relative MASE 0.780976, relative WQL 0.555056, group skills {'term': {'short': 0.30735425505077896, 'medium': 0.38984232067302926, 'long': 0.37791322023985785}, 'domain': {'Econ/Fin': 0.07789629542475163, 'Energy': 0.16814859423491146, 'Healthcare': 0.32219860777640197, 'Nature': 0.4027938268275436, 'Sales': 0.32911299366848257, 'Transport': 0.4440214473788372, 'Web/CloudOps': 0.505502554697025}, 'freq': {'A-DEC': 0.30701454754159097, 'Q-DEC': 0.18894276751813088, 'M': 0.04173508991923269, 'W-SUN': -0.06710914169849702, 'D': 0.33891978173454174, 'H': 0.36806701600948255, '15T': 0.16691265843751302, 'W-FRI': 0.011149977535114819, '10T': 0.48062823437029445, 'W-TUE': 0.3054618645258299, 'W-THU': 0.17135723270801106, 'W-WED': 0.29198895648742507, '5T': 0.5128629288387704, '10S': 0.42606586812368186}}. +- tau=64: skill 0.340824, relative MASE 0.783313, relative WQL 0.554713, group skills {'term': {'short': 0.3064164746371565, 'medium': 0.38779908004530583, 'long': 0.3787937309532532}, 'domain': {'Econ/Fin': 0.09969949435020342, 'Energy': 0.15974598777640392, 'Healthcare': 0.3189527251466179, 'Nature': 0.4009254556920715, 'Sales': 0.32909545704191134, 'Transport': 0.44166143132149305, 'Web/CloudOps': 0.5103628293774518}, 'freq': {'A-DEC': 0.3079352359976604, 'Q-DEC': 0.18879190434187287, 'M': 0.03049481695615497, 'W-SUN': -0.03231570437562303, 'D': 0.33992332397958547, 'H': 0.36593420410508737, '15T': 0.1654947222236236, 'W-FRI': 0.009213828856730832, '10T': 0.46016772262416383, 'W-TUE': 0.3040006089982843, 'W-THU': 0.17343046632698478, 'W-WED': 0.29198895648742507, '5T': 0.5128850832828526, '10S': 0.4486615108502494}}. +- tau=128: skill 0.338292, relative MASE 0.786639, relative WQL 0.556618, group skills {'term': {'short': 0.3043668884529205, 'medium': 0.38176748757743373, 'long': 0.37868472074438897}, 'domain': {'Econ/Fin': 0.10637792737302931, 'Energy': 0.1531270206619928, 'Healthcare': 0.31816668045459984, 'Nature': 0.39985518410953147, 'Sales': 0.3290895550941987, 'Transport': 0.4399018505526925, 'Web/CloudOps': 0.5082609219137205}, 'freq': {'A-DEC': 0.3082114553822066, 'Q-DEC': 0.1886335736447592, 'M': 0.026327746733658897, 'W-SUN': -0.021307580325764297, 'D': 0.34025742210101806, 'H': 0.3625439077766571, '15T': 0.1628300810039216, 'W-FRI': 0.00856370190545519, '10T': 0.4513327819863723, 'W-TUE': 0.30351149262807786, 'W-THU': 0.1740816133131421, 'W-WED': 0.29198895648742507, '5T': 0.512369368619311, '10S': 0.44352723463256316}}. + +## E12 continuity prior, full validation +- Checkpoint SHA-256: `see model_manifest.json`. +- Evaluation: 97 configurations, 151170 instances, 0 failed configurations; not separately timed seconds. +- Overall skill 0.336914; relative MASE 0.783869; relative WQL 0.560914. +- term skill: long=0.3705, medium=0.3876, short=0.3028. +- domain skill: Econ/Fin=0.0580, Energy=0.1590, Healthcare=0.3286, Nature=0.4018, Sales=0.3415, Transport=0.4438, Web/CloudOps=0.4980. +- frequency skill: A=0.2499, D=0.3408, H=0.3619, M=0.0606, Q=0.1682, S=0.4261, T=0.3809, W=0.1368. +- variates skill: multivariate=0.3731, univariate=0.3066. +- Outcome: Full validation skill 0.336914 versus 0.330109 without the correction, relative MASE 0.783869 and relative WQL 0.560914; zero failures. Package inference took 69.8 seconds while three trainers shared the sole H100. Selected for atomic publication. + +## E11 corpus_control_ema1000 +- Checkpoint SHA-256: `f81bf26e2a17265332fdb3b29204d140703d7c3e9d9abdd7e3297715a7b1153a`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 10.393452167510986 seconds. +- Overall skill 0.335216; relative MASE 0.787169; relative WQL 0.561427. +- term skill: long=0.3757, medium=0.3878, short=0.2973. +- domain skill: Econ/Fin=-0.0001, Energy=0.1627, Healthcare=0.3427, Nature=0.4053, Sales=0.3297, Transport=0.4460, Web/CloudOps=0.4926. +- frequency skill: A=0.3085, D=0.3314, H=0.3702, M=0.0765, Q=0.1659, S=0.3764, T=0.3820, W=0.1191. +- variates skill: multivariate=0.3656, univariate=0.3100. +- Outcome: Matched comparison: original sample control stays near the parent model; expanded corpus is consistently slightly worse. Neither continuation is selected. Compute: control 363.4 s, expanded 364.8 s elapsed while sharing one H100. + +## E11 corpus_control_ema3000 +- Checkpoint SHA-256: `c72daec0504f6082965d689dd9a9f1a7005ac0d9694fb8d4de3d2622db9d615b`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 10.011096715927124 seconds. +- Overall skill 0.334832; relative MASE 0.787218; relative WQL 0.562040. +- term skill: long=0.3765, medium=0.3877, short=0.2963. +- domain skill: Econ/Fin=0.0014, Energy=0.1632, Healthcare=0.3213, Nature=0.4049, Sales=0.3317, Transport=0.4468, Web/CloudOps=0.4939. +- frequency skill: A=0.2922, D=0.3214, H=0.3695, M=0.0723, Q=0.1640, S=0.3781, T=0.3850, W=0.1283. +- variates skill: multivariate=0.3670, univariate=0.3081. +- Outcome: Matched comparison: original sample control stays near the parent model; expanded corpus is consistently slightly worse. Neither continuation is selected. Compute: control 363.4 s, expanded 364.8 s elapsed while sharing one H100. + +## E11 corpus_control_ema6000 +- Checkpoint SHA-256: `fa23c895ff4926b3d0df6d15267718a1dda41ad9386abbfef1306becb262da1c`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 7.355180501937866 seconds. +- Overall skill 0.334809; relative MASE 0.788444; relative WQL 0.561205. +- term skill: long=0.3770, medium=0.3879, short=0.2960. +- domain skill: Econ/Fin=-0.0139, Energy=0.1615, Healthcare=0.3361, Nature=0.4053, Sales=0.3305, Transport=0.4466, Web/CloudOps=0.4951. +- frequency skill: A=0.2945, D=0.3215, H=0.3707, M=0.0639, Q=0.1501, S=0.3778, T=0.3855, W=0.1254. +- variates skill: multivariate=0.3680, univariate=0.3071. +- Outcome: Matched comparison: original sample control stays near the parent model; expanded corpus is consistently slightly worse. Neither continuation is selected. Compute: control 363.4 s, expanded 364.8 s elapsed while sharing one H100. + +## E11 corpus_expanded_ema1000 +- Checkpoint SHA-256: `8c0f66d7a2377fa37b4d3358c89ae9b5786a6f5f0223b1480fb7a0b20b17ebc8`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 10.571230411529541 seconds. +- Overall skill 0.333782; relative MASE 0.789135; relative WQL 0.562448. +- term skill: long=0.3749, medium=0.3867, short=0.2955. +- domain skill: Econ/Fin=-0.0143, Energy=0.1614, Healthcare=0.3302, Nature=0.4029, Sales=0.3292, Transport=0.4472, Web/CloudOps=0.4938. +- frequency skill: A=0.2932, D=0.3308, H=0.3695, M=0.0696, Q=0.1628, S=0.3754, T=0.3818, W=0.1103. +- variates skill: multivariate=0.3653, univariate=0.3075. +- Outcome: Matched comparison: original sample control stays near the parent model; expanded corpus is consistently slightly worse. Neither continuation is selected. Compute: control 363.4 s, expanded 364.8 s elapsed while sharing one H100. + +## E11 corpus_expanded_ema3000 +- Checkpoint SHA-256: `51586b5ce1a426dc2f3adf42aba9599b731b62ab316159dafe681e77317015a2`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 10.598361253738403 seconds. +- Overall skill 0.333836; relative MASE 0.789352; relative WQL 0.562201. +- term skill: long=0.3750, medium=0.3869, short=0.2954. +- domain skill: Econ/Fin=-0.0087, Energy=0.1631, Healthcare=0.3250, Nature=0.4036, Sales=0.3303, Transport=0.4468, Web/CloudOps=0.4922. +- frequency skill: A=0.3132, D=0.3259, H=0.3690, M=0.0696, Q=0.1693, S=0.3752, T=0.3829, W=0.1162. +- variates skill: multivariate=0.3659, univariate=0.3071. +- Outcome: Matched comparison: original sample control stays near the parent model; expanded corpus is consistently slightly worse. Neither continuation is selected. Compute: control 363.4 s, expanded 364.8 s elapsed while sharing one H100. + +## E11 corpus_expanded_ema6000 +- Checkpoint SHA-256: `b82b9da6afa6b7ec864a5c4f9829a2a68b29f0923d0c556a998b9d79623d9ba9`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 7.799206972122192 seconds. +- Overall skill 0.333432; relative MASE 0.790380; relative WQL 0.562151. +- term skill: long=0.3759, medium=0.3881, short=0.2938. +- domain skill: Econ/Fin=-0.0272, Energy=0.1621, Healthcare=0.3299, Nature=0.4047, Sales=0.3298, Transport=0.4459, Web/CloudOps=0.4936. +- frequency skill: A=0.3024, D=0.3227, H=0.3691, M=0.0639, Q=0.1574, S=0.3794, T=0.3834, W=0.1166. +- variates skill: multivariate=0.3662, univariate=0.3061. +- Outcome: Matched comparison: original sample control stays near the parent model; expanded corpus is consistently slightly worse. Neither continuation is selected. Compute: control 363.4 s, expanded 364.8 s elapsed while sharing one H100. + +## E5 direct_large_ema12000_gate +- Checkpoint SHA-256: `202e23ba9d7560bf2bd67a609d024449facabdfd338c9268bc013ff6b613168f`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 11.02167820930481 seconds. +- Overall skill 0.314336; relative MASE 0.813757; relative WQL 0.577734. +- term skill: long=0.3670, medium=0.3868, short=0.2623. +- domain skill: Econ/Fin=-0.0160, Energy=0.1404, Healthcare=0.2477, Nature=0.3897, Sales=0.3170, Transport=0.4355, Web/CloudOps=0.4760. +- frequency skill: A=0.3627, D=0.3141, H=0.3649, M=-0.1520, Q=0.1593, S=0.3730, T=0.3518, W=0.1342. +- variates skill: multivariate=0.3564, univariate=0.2788. +- Outcome: 37M capacity run from random initialization; seed 23. Final run: 24,000 steps / 3,072,000 windows in 1073.9 s elapsed on the sole H100, shared with other experiments. Most checkpoints lag the small model; EMA reduces checkpoint variance. Final raw checkpoint is stronger than final EMA in gated inference, so it will receive a full inference-rule comparison. + +## E5 direct_large_ema16000_gate +- Checkpoint SHA-256: `8ba1220059af5a85180b3ad740402a48b2d38172598510da796339378e529a73`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 9.176010131835938 seconds. +- Overall skill 0.322612; relative MASE 0.806599; relative WQL 0.568877. +- term skill: long=0.3668, medium=0.3875, short=0.2777. +- domain skill: Econ/Fin=0.0042, Energy=0.1444, Healthcare=0.3056, Nature=0.3937, Sales=0.3266, Transport=0.4361, Web/CloudOps=0.4847. +- frequency skill: A=0.3573, D=0.3049, H=0.3646, M=-0.0462, Q=0.1603, S=0.3803, T=0.3607, W=0.1797. +- variates skill: multivariate=0.3644, univariate=0.2874. +- Outcome: 37M capacity run from random initialization; seed 23. Final run: 24,000 steps / 3,072,000 windows in 1073.9 s elapsed on the sole H100, shared with other experiments. Most checkpoints lag the small model; EMA reduces checkpoint variance. Final raw checkpoint is stronger than final EMA in gated inference, so it will receive a full inference-rule comparison. + +## E5 direct_large_ema20000_gate +- Checkpoint SHA-256: `1ec9d54fa1270442b0023da3f7fc23f5fa5291e58210a55f63878983afccc606`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 11.57221269607544 seconds. +- Overall skill 0.324943; relative MASE 0.805088; relative WQL 0.566028. +- term skill: long=0.3666, medium=0.3878, short=0.2821. +- domain skill: Econ/Fin=0.0218, Energy=0.1439, Healthcare=0.2912, Nature=0.4039, Sales=0.3250, Transport=0.4352, Web/CloudOps=0.4880. +- frequency skill: A=0.3533, D=0.3058, H=0.3660, M=-0.0485, Q=0.1544, S=0.3756, T=0.3665, W=0.1840. +- variates skill: multivariate=0.3678, univariate=0.2887. +- Outcome: 37M capacity run from random initialization; seed 23. Final run: 24,000 steps / 3,072,000 windows in 1073.9 s elapsed on the sole H100, shared with other experiments. Most checkpoints lag the small model; EMA reduces checkpoint variance. Final raw checkpoint is stronger than final EMA in gated inference, so it will receive a full inference-rule comparison. + +## E5 direct_large_ema2000_gate +- Checkpoint SHA-256: `bea7fbebdc754a6cef068a4b835e644d896305e928b4a63974c731874dc49028`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 7.918560028076172 seconds. +- Overall skill 0.279056; relative MASE 0.848285; relative WQL 0.612718. +- term skill: long=0.3485, medium=0.3540, short=0.2185. +- domain skill: Econ/Fin=-0.0871, Energy=0.1232, Healthcare=0.1986, Nature=0.3855, Sales=0.3094, Transport=0.3731, Web/CloudOps=0.4269. +- frequency skill: A=0.3054, D=0.2729, H=0.3360, M=-0.1424, Q=0.1034, S=0.3706, T=0.2968, W=0.1303. +- variates skill: multivariate=0.3283, univariate=0.2373. +- Outcome: 37M capacity run from random initialization; seed 23. Final run: 24,000 steps / 3,072,000 windows in 1073.9 s elapsed on the sole H100, shared with other experiments. Most checkpoints lag the small model; EMA reduces checkpoint variance. Final raw checkpoint is stronger than final EMA in gated inference, so it will receive a full inference-rule comparison. + +## E5 direct_large_ema24000_gate +- Checkpoint SHA-256: `e5bb7f70c0adbf61b4292cfc40a419e6757854a255ef0c47d3d47c7f2d68b7a2`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 8.641167879104614 seconds. +- Overall skill 0.323234; relative MASE 0.806197; relative WQL 0.568114. +- term skill: long=0.3665, medium=0.3864, short=0.2795. +- domain skill: Econ/Fin=0.0385, Energy=0.1492, Healthcare=0.2588, Nature=0.4037, Sales=0.3217, Transport=0.4347, Web/CloudOps=0.4807. +- frequency skill: A=0.3645, D=0.3062, H=0.3653, M=-0.0563, Q=0.1548, S=0.3766, T=0.3656, W=0.1664. +- variates skill: multivariate=0.3653, univariate=0.2877. +- Outcome: 37M capacity run from random initialization; seed 23. Final run: 24,000 steps / 3,072,000 windows in 1073.9 s elapsed on the sole H100, shared with other experiments. Most checkpoints lag the small model; EMA reduces checkpoint variance. Final raw checkpoint is stronger than final EMA in gated inference, so it will receive a full inference-rule comparison. + +## E5 direct_large_ema4000_gate +- Checkpoint SHA-256: `2f45a9ce8bed8e0e3ebe37ba98ac36ab8b9a630a615856760f46c0763fa78b5c`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 8.853939056396484 seconds. +- Overall skill 0.296679; relative MASE 0.830007; relative WQL 0.595971. +- term skill: long=0.3569, medium=0.3692, short=0.2413. +- domain skill: Econ/Fin=-0.0411, Energy=0.1331, Healthcare=0.1511, Nature=0.3889, Sales=0.3253, Transport=0.4031, Web/CloudOps=0.4590. +- frequency skill: A=0.3534, D=0.2760, H=0.3509, M=-0.1255, Q=0.1495, S=0.3734, T=0.3314, W=0.1185. +- variates skill: multivariate=0.3480, univariate=0.2530. +- Outcome: 37M capacity run from random initialization; seed 23. Final run: 24,000 steps / 3,072,000 windows in 1073.9 s elapsed on the sole H100, shared with other experiments. Most checkpoints lag the small model; EMA reduces checkpoint variance. Final raw checkpoint is stronger than final EMA in gated inference, so it will receive a full inference-rule comparison. + +## E5 direct_large_ema8000_gate +- Checkpoint SHA-256: `1b15662821b8c7a20d973f548dacabd237f470ffd1c75457c0b92011d3f0cc88`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 9.06697702407837 seconds. +- Overall skill 0.310188; relative MASE 0.816631; relative WQL 0.582688. +- term skill: long=0.3619, medium=0.3788, short=0.2604. +- domain skill: Econ/Fin=-0.0143, Energy=0.1404, Healthcare=0.2015, Nature=0.3934, Sales=0.3255, Transport=0.4210, Web/CloudOps=0.4744. +- frequency skill: A=0.3680, D=0.2929, H=0.3581, M=-0.0609, Q=0.1607, S=0.3679, T=0.3513, W=0.1178. +- variates skill: multivariate=0.3533, univariate=0.2739. +- Outcome: 37M capacity run from random initialization; seed 23. Final run: 24,000 steps / 3,072,000 windows in 1073.9 s elapsed on the sole H100, shared with other experiments. Most checkpoints lag the small model; EMA reduces checkpoint variance. Final raw checkpoint is stronger than final EMA in gated inference, so it will receive a full inference-rule comparison. + +## E5 direct_large_step12000_gate +- Checkpoint SHA-256: `8788d76e331dcd9cca1d6dab37db34b4c8b1257fc83da49b532c11643cd0ebfa`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 14.492464065551758 seconds. +- Overall skill 0.304901; relative MASE 0.821804; relative WQL 0.587930. +- term skill: long=0.3555, medium=0.3694, short=0.2575. +- domain skill: Econ/Fin=-0.0110, Energy=0.1063, Healthcare=0.2456, Nature=0.3830, Sales=0.2991, Transport=0.4416, Web/CloudOps=0.4763. +- frequency skill: A=0.3131, D=0.3025, H=0.3517, M=-0.0499, Q=0.1271, S=0.3821, T=0.3324, W=0.1350. +- variates skill: multivariate=0.3451, univariate=0.2712. +- Outcome: 37M capacity run from random initialization; seed 23. Final run: 24,000 steps / 3,072,000 windows in 1073.9 s elapsed on the sole H100, shared with other experiments. Most checkpoints lag the small model; EMA reduces checkpoint variance. Final raw checkpoint is stronger than final EMA in gated inference, so it will receive a full inference-rule comparison. + +## E5 direct_large_step16000_gate +- Checkpoint SHA-256: `beb43e784be8db8ee5ec14e83fa9c68f7ce897790441453eb6d72cceedb80650`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 9.434912919998169 seconds. +- Overall skill 0.311197; relative MASE 0.820659; relative WQL 0.578132. +- term skill: long=0.3577, medium=0.3731, short=0.2667. +- domain skill: Econ/Fin=-0.0270, Energy=0.1289, Healthcare=0.2653, Nature=0.3904, Sales=0.3264, Transport=0.4341, Web/CloudOps=0.4732. +- frequency skill: A=0.3445, D=0.2986, H=0.3593, M=-0.0768, Q=0.1596, S=0.3715, T=0.3463, W=0.1472. +- variates skill: multivariate=0.3513, univariate=0.2775. +- Outcome: 37M capacity run from random initialization; seed 23. Final run: 24,000 steps / 3,072,000 windows in 1073.9 s elapsed on the sole H100, shared with other experiments. Most checkpoints lag the small model; EMA reduces checkpoint variance. Final raw checkpoint is stronger than final EMA in gated inference, so it will receive a full inference-rule comparison. + +## E5 direct_large_step20000_gate +- Checkpoint SHA-256: `9332e5088244bd4a2a1ad5b6470a108ebaa6bc387a525202f6bf954d9796b1a6`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 11.937657117843628 seconds. +- Overall skill 0.319529; relative MASE 0.811224; relative WQL 0.570793. +- term skill: long=0.3661, medium=0.3842, short=0.2737. +- domain skill: Econ/Fin=0.0113, Energy=0.1395, Healthcare=0.3332, Nature=0.3983, Sales=0.3058, Transport=0.4236, Web/CloudOps=0.4804. +- frequency skill: A=0.3483, D=0.3114, H=0.3599, M=-0.0666, Q=0.1435, S=0.3671, T=0.3551, W=0.1967. +- variates skill: multivariate=0.3633, univariate=0.2825. +- Outcome: 37M capacity run from random initialization; seed 23. Final run: 24,000 steps / 3,072,000 windows in 1073.9 s elapsed on the sole H100, shared with other experiments. Most checkpoints lag the small model; EMA reduces checkpoint variance. Final raw checkpoint is stronger than final EMA in gated inference, so it will receive a full inference-rule comparison. + +## E5 direct_large_step2000_gate +- Checkpoint SHA-256: `f16c3270e2d4adafc8dbc1416687932a81b040bed29ad21887f7f8953437ba86`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 8.376563549041748 seconds. +- Overall skill 0.284757; relative MASE 0.840864; relative WQL 0.608389. +- term skill: long=0.3356, medium=0.3611, short=0.2319. +- domain skill: Econ/Fin=-0.0840, Energy=0.1152, Healthcare=0.2242, Nature=0.3840, Sales=0.3264, Transport=0.3898, Web/CloudOps=0.4386. +- frequency skill: A=0.2579, D=0.2746, H=0.3418, M=-0.0497, Q=0.1253, S=0.3787, T=0.2935, W=0.1458. +- variates skill: multivariate=0.3309, univariate=0.2458. +- Outcome: 37M capacity run from random initialization; seed 23. Final run: 24,000 steps / 3,072,000 windows in 1073.9 s elapsed on the sole H100, shared with other experiments. Most checkpoints lag the small model; EMA reduces checkpoint variance. Final raw checkpoint is stronger than final EMA in gated inference, so it will receive a full inference-rule comparison. + +## E5 direct_large_step24000_gate +- Checkpoint SHA-256: `b7e4f38aebcd2cf38ce484edaad8d19851317fb3b8df485e2faa0d0423cbcb48`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 7.831688165664673 seconds. +- Overall skill 0.326279; relative MASE 0.802486; relative WQL 0.565617. +- term skill: long=0.3671, medium=0.3874, short=0.2845. +- domain skill: Econ/Fin=0.0453, Energy=0.1487, Healthcare=0.3262, Nature=0.4087, Sales=0.3234, Transport=0.4251, Web/CloudOps=0.4821. +- frequency skill: A=0.3544, D=0.3106, H=0.3612, M=-0.0014, Q=0.1548, S=0.3765, T=0.3668, W=0.1910. +- variates skill: multivariate=0.3662, univariate=0.2927. +- Outcome: 37M capacity run from random initialization; seed 23. Final run: 24,000 steps / 3,072,000 windows in 1073.9 s elapsed on the sole H100, shared with other experiments. Most checkpoints lag the small model; EMA reduces checkpoint variance. Final raw checkpoint is stronger than final EMA in gated inference, so it will receive a full inference-rule comparison. + +## E5 direct_large_step4000_gate +- Checkpoint SHA-256: `a085c48b8bac06dba51118942d58b632dfc8fd934455232b2f1f7c7329f1ae76`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 8.682147979736328 seconds. +- Overall skill 0.291006; relative MASE 0.830831; relative WQL 0.605023. +- term skill: long=0.3451, medium=0.3504, short=0.2444. +- domain skill: Econ/Fin=-0.0403, Energy=0.0877, Healthcare=0.2367, Nature=0.3707, Sales=0.3185, Transport=0.4275, Web/CloudOps=0.4638. +- frequency skill: A=0.2862, D=0.2949, H=0.3327, M=-0.1134, Q=0.1567, S=0.3705, T=0.3243, W=0.1248. +- variates skill: multivariate=0.3352, univariate=0.2538. +- Outcome: 37M capacity run from random initialization; seed 23. Final run: 24,000 steps / 3,072,000 windows in 1073.9 s elapsed on the sole H100, shared with other experiments. Most checkpoints lag the small model; EMA reduces checkpoint variance. Final raw checkpoint is stronger than final EMA in gated inference, so it will receive a full inference-rule comparison. + +## E5 direct_large_step8000_gate +- Checkpoint SHA-256: `7c0ca8d6f3023ecefc12818560b9bac64e044102cb27d478978c48ce82276c38`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 8.785595417022705 seconds. +- Overall skill 0.307945; relative MASE 0.812528; relative WQL 0.589444. +- term skill: long=0.3650, medium=0.3688, short=0.2592. +- domain skill: Econ/Fin=-0.0843, Energy=0.1539, Healthcare=0.1762, Nature=0.3845, Sales=0.3220, Transport=0.4223, Web/CloudOps=0.4730. +- frequency skill: A=0.3235, D=0.2684, H=0.3578, M=-0.0688, Q=0.1156, S=0.3591, T=0.3615, W=0.1148. +- variates skill: multivariate=0.3471, univariate=0.2751. +- Outcome: 37M capacity run from random initialization; seed 23. Final run: 24,000 steps / 3,072,000 windows in 1073.9 s elapsed on the sole H100, shared with other experiments. Most checkpoints lag the small model; EMA reduces checkpoint variance. Final raw checkpoint is stronger than final EMA in gated inference, so it will receive a full inference-rule comparison. + +## E13/E14 matched large-model continuations +- Parent: raw E5 step 24000 (random-init pretraining here, seed 23), selected after final gated and sign-symmetric/continuity comparisons. +- Three runs share seed 43, batch 256, 6,000 steps, AdamW 8e-5 with 400-step warmup/cosine decay, the original packed sample, and the E8 median/seasonal-error-weighted objective. All use EMA. GPU: the one H100; three CPU threads per trainer. +- large_loss: unchanged synthetic generator, control for applying E8 loss to the larger model. +- large_synth: replace half of the 20% synthetic windows with newly generated integrated colored innovations, stochastic local-linear trends with level shifts, or sharp periodic pulses with slowly drifting amplitude. Generator is in large_synth/data.py; no external synthetic assets. +- large_sign: independently negate each sampled context and target with probability 0.5. Context seasonal scales are sign-invariant. Data RNG is shared with augmentation, so later draws diverge from the control despite the matched seed; this is a single-seed comparison. +- All inference rules remain fixed (sign symmetry, seasonal confidence gate and 24-step continuity). Results pending. + +## E15 final-checkpoint ensemble +- Hypothesis: the differently trained small and large models have complementary median and distribution errors. Fixed equal weights, both members forecast every instance. E8 EMA6000 (seed31 continuation of seed17) plus E5 raw24000 (seed23). Same fixed inference rules applied separately before averaging. +- Cached prediction diagnostic skill 0.344733 exceeds the small model 0.341604 and large model 0.343219. Actual bundled inference and full validation are required before publication. + +## E15 actual bundled ensemble screening +- Checkpoint SHA-256: `91cb9b3fc2422fc376ecab7813213a7156b6baee963da620f06e82f1aaeaea39`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 21.611496925354004 seconds. +- Overall skill 0.344715; relative MASE 0.780210; relative WQL 0.550363. +- term skill: long=0.3780, medium=0.3928, short=0.3118. +- domain skill: Econ/Fin=0.0849, Energy=0.1725, Healthcare=0.3305, Nature=0.4119, Sales=0.3307, Transport=0.4448, Web/CloudOps=0.5036. +- frequency skill: A=0.2873, D=0.3348, H=0.3699, M=0.0563, Q=0.1938, S=0.4258, T=0.3912, W=0.1713. +- variates skill: multivariate=0.3825, univariate=0.3130. +- Outcome: Actual package inference skill 0.344715, within 0.000019 of cached averaging; zero failures. The difference comes from numerical batching. Full package inference remains required. + +## E15 bundled ensemble, full validation +- Checkpoint SHA-256: `91cb9b3fc2422fc376ecab7813213a7156b6baee963da620f06e82f1aaeaea39`. +- Evaluation: 97 configurations, 151170 instances, 0 failed configurations; not separately timed seconds. +- Overall skill 0.340239; relative MASE 0.782773; relative WQL 0.556081. +- term skill: long=0.3706, medium=0.3906, short=0.3076. +- domain skill: Econ/Fin=0.0668, Energy=0.1633, Healthcare=0.3369, Nature=0.4112, Sales=0.3436, Transport=0.4446, Web/CloudOps=0.4963. +- frequency skill: A=0.2315, D=0.3371, H=0.3638, M=0.0773, Q=0.1704, S=0.4258, T=0.3837, W=0.1660. +- variates skill: multivariate=0.3783, univariate=0.3083. +- Outcome: Full skill 0.340239, relative MASE 0.782773, relative WQL 0.556081, zero failed configurations. Improves the previous published 0.336914. Relocated package inference took 119.3 seconds while three 37M trainers shared the sole H100. Repeated example calls were bitwise identical, finite and monotone. Selected for atomic publication. + +## E16 earlier-window diagnostic +- Hypothesis: a second cutoff reveals whether gains on single-series configurations are stable over time. +- Constructed the immediately preceding nonoverlapping window from each selected validation context (never used for training). All 97 configurations remain; short histories with fewer than H+8 points are omitted. Seasonal-error scales use the available capped prefix and Seasonal Naive is recomputed on that same input, so these are diagnostic scores on a separate scale. +- The small E8 EMA6000 model improves from 0.308552 without continuity to 0.314127 with it. The large parent scores 0.312321; the first sign-augmented checkpoint scores 0.312240. Thus continuity is supported at both cutoffs, while the first sign-augmentation gain does not yet repeat on the earlier cutoff. No weights or rules are adapted on the diagnostic contexts. + +## Full-validation checkpoint identity audit +- valid-report-1000.json: `ebdd9eaa223c2bb6e38b8faec6f465a227fcd735b654a26f3b617a757addb0d3`, skill 0.206132. +- valid-report-4000-gate.json: `f1b4e5f798688a56a693daf799fa21e69ec21c9c1710cae8dafbdb833c9ee069`, skill 0.296168. +- valid-report-swa-gate.json: `a346a09ba0b8d196b58acc22a76f7944109b2bba04ea2b7cf7566de24aa2d8db`, skill 0.315325. +- valid-report-symmetric.json: `a346a09ba0b8d196b58acc22a76f7944109b2bba04ea2b7cf7566de24aa2d8db`, skill 0.323978. +- valid-report-objective.json: `70a3768d667df75f0d6565e831cdca8cf7c179c8546252e5902f7b7ec68ab7aa`, skill 0.330109. +- valid-report-continuity.json: `70a3768d667df75f0d6565e831cdca8cf7c179c8546252e5902f7b7ec68ab7aa`, skill 0.336914. +- valid-report-ensemble.json: `91cb9b3fc2422fc376ecab7813213a7156b6baee963da620f06e82f1aaeaea39`, skill 0.340239. + +## E13/E14 large_loss_ema1000_continuity +- Checkpoint SHA-256: `872c92ee27b0d63f310b7be7434ffe3d5342b19a42d48fefd0a468b87501b28e`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 14.880280256271362 seconds. +- Overall skill 0.342546; relative MASE 0.782779; relative WQL 0.552194. +- term skill: long=0.3792, medium=0.3907, short=0.3082. +- domain skill: Econ/Fin=0.0879, Energy=0.1741, Healthcare=0.2781, Nature=0.4155, Sales=0.3277, Transport=0.4454, Web/CloudOps=0.5007. +- frequency skill: A=0.2788, D=0.3141, H=0.3715, M=0.0511, Q=0.1869, S=0.4248, T=0.3925, W=0.1774. +- variates skill: multivariate=0.3827, univariate=0.3087. +- Outcome: Matched large-model continuation. Final EMA6000: sign augmentation wins (0.349298) over revised-loss control (0.346864) and richer synthetic generator (0.343184). Compute: control 618.3 s, synthetic 613.1 s, sign 617.9 s elapsed while sharing one H100. + +## E13/E14 large_loss_ema3000_continuity +- Checkpoint SHA-256: `18c2788192e4028dd45255512b1c4bcddf12a50eb813e34fa0987b8949d75f15`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 14.631194829940796 seconds. +- Overall skill 0.345993; relative MASE 0.778768; relative WQL 0.549233. +- term skill: long=0.3793, medium=0.3902, short=0.3147. +- domain skill: Econ/Fin=0.0850, Energy=0.1714, Healthcare=0.3423, Nature=0.4181, Sales=0.3281, Transport=0.4479, Web/CloudOps=0.5015. +- frequency skill: A=0.2956, D=0.3232, H=0.3727, M=0.0705, Q=0.1917, S=0.4274, T=0.3904, W=0.1972. +- variates skill: multivariate=0.3829, univariate=0.3150. +- Outcome: Matched large-model continuation. Final EMA6000: sign augmentation wins (0.349298) over revised-loss control (0.346864) and richer synthetic generator (0.343184). Compute: control 618.3 s, synthetic 613.1 s, sign 617.9 s elapsed while sharing one H100. + +## E13/E14 large_loss_ema6000_continuity +- Checkpoint SHA-256: `f5c7327b365832e8bd2d1b7b01e61c334f5bf620f5cae5f4d45feef2041090e8`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 9.797317266464233 seconds. +- Overall skill 0.346864; relative MASE 0.778052; relative WQL 0.548275. +- term skill: long=0.3803, medium=0.3907, short=0.3157. +- domain skill: Econ/Fin=0.0848, Energy=0.1765, Healthcare=0.3460, Nature=0.4171, Sales=0.3275, Transport=0.4491, Web/CloudOps=0.4990. +- frequency skill: A=0.2988, D=0.3201, H=0.3724, M=0.0715, Q=0.1909, S=0.4236, T=0.3942, W=0.2029. +- variates skill: multivariate=0.3831, univariate=0.3165. +- Outcome: Matched large-model continuation. Final EMA6000: sign augmentation wins (0.349298) over revised-loss control (0.346864) and richer synthetic generator (0.343184). Compute: control 618.3 s, synthetic 613.1 s, sign 617.9 s elapsed while sharing one H100. + +## E13/E14 large_sign_ema1000_continuity +- Checkpoint SHA-256: `393950048f9d0487869b7aa5e6bd01e7ea1715dba16b1367ee8be353eac7f408`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 14.772316932678223 seconds. +- Overall skill 0.347448; relative MASE 0.776694; relative WQL 0.548252. +- term skill: long=0.3829, medium=0.3908, short=0.3157. +- domain skill: Econ/Fin=0.0975, Energy=0.1743, Healthcare=0.3647, Nature=0.4116, Sales=0.3348, Transport=0.4489, Web/CloudOps=0.5001. +- frequency skill: A=0.3764, D=0.3250, H=0.3728, M=0.0605, Q=0.1918, S=0.4294, T=0.3920, W=0.1973. +- variates skill: multivariate=0.3811, univariate=0.3193. +- Outcome: Matched large-model continuation. Final EMA6000: sign augmentation wins (0.349298) over revised-loss control (0.346864) and richer synthetic generator (0.343184). Compute: control 618.3 s, synthetic 613.1 s, sign 617.9 s elapsed while sharing one H100. + +## E13/E14 large_sign_ema3000_continuity +- Checkpoint SHA-256: `24a38240b540c1311317103b880d4be47e17b7de883f535ef95977a3acc596dd`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 14.933598279953003 seconds. +- Overall skill 0.348060; relative MASE 0.775887; relative WQL 0.547794. +- term skill: long=0.3822, medium=0.3909, short=0.3171. +- domain skill: Econ/Fin=0.1095, Energy=0.1761, Healthcare=0.3575, Nature=0.4106, Sales=0.3331, Transport=0.4503, Web/CloudOps=0.5000. +- frequency skill: A=0.3842, D=0.3252, H=0.3741, M=0.0510, Q=0.1966, S=0.4324, T=0.3901, W=0.2089. +- variates skill: multivariate=0.3815, univariate=0.3201. +- Outcome: Matched large-model continuation. Final EMA6000: sign augmentation wins (0.349298) over revised-loss control (0.346864) and richer synthetic generator (0.343184). Compute: control 618.3 s, synthetic 613.1 s, sign 617.9 s elapsed while sharing one H100. + +## E13/E14 large_sign_ema6000_continuity +- Checkpoint SHA-256: `96c9d350412c076594f4cc026aaf7396eacc45478f3d402c5d60dcf85dce8547`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 9.297121286392212 seconds. +- Overall skill 0.349298; relative MASE 0.774499; relative WQL 0.546694. +- term skill: long=0.3853, medium=0.3928, short=0.3172. +- domain skill: Econ/Fin=0.1160, Energy=0.1799, Healthcare=0.3608, Nature=0.4057, Sales=0.3338, Transport=0.4511, Web/CloudOps=0.5017. +- frequency skill: A=0.3836, D=0.3247, H=0.3752, M=0.0334, Q=0.1968, S=0.4300, T=0.3937, W=0.2168. +- variates skill: multivariate=0.3827, univariate=0.3214. +- Outcome: Matched large-model continuation. Final EMA6000: sign augmentation wins (0.349298) over revised-loss control (0.346864) and richer synthetic generator (0.343184). Compute: control 618.3 s, synthetic 613.1 s, sign 617.9 s elapsed while sharing one H100. + +## E13/E14 large_synth_ema1000_continuity +- Checkpoint SHA-256: `c04fc8cad141754a2cb540b636cc3ac7744554cc85e201b4b291e777b2aee196`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 15.066582441329956 seconds. +- Overall skill 0.343871; relative MASE 0.781301; relative WQL 0.551010. +- term skill: long=0.3732, medium=0.3938, short=0.3118. +- domain skill: Econ/Fin=0.1001, Energy=0.1746, Healthcare=0.2638, Nature=0.4169, Sales=0.3281, Transport=0.4461, Web/CloudOps=0.5042. +- frequency skill: A=0.3050, D=0.3243, H=0.3716, M=-0.0066, Q=0.1903, S=0.4298, T=0.3943, W=0.1851. +- variates skill: multivariate=0.3847, univariate=0.3094. +- Outcome: Matched large-model continuation. Final EMA6000: sign augmentation wins (0.349298) over revised-loss control (0.346864) and richer synthetic generator (0.343184). Compute: control 618.3 s, synthetic 613.1 s, sign 617.9 s elapsed while sharing one H100. + +## E13/E14 large_synth_ema3000_continuity +- Checkpoint SHA-256: `aa73bdf3e3b2d44e69c716f2dc788789949b96d69f4cd92c2b0169bfd4dc89ce`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 14.854033946990967 seconds. +- Overall skill 0.343138; relative MASE 0.782085; relative WQL 0.551689. +- term skill: long=0.3690, medium=0.3946, short=0.3119. +- domain skill: Econ/Fin=0.1103, Energy=0.1771, Healthcare=0.2214, Nature=0.4199, Sales=0.3279, Transport=0.4472, Web/CloudOps=0.5016. +- frequency skill: A=0.2856, D=0.3228, H=0.3725, M=0.0162, Q=0.1940, S=0.4277, T=0.3929, W=0.1727. +- variates skill: multivariate=0.3849, univariate=0.3079. +- Outcome: Matched large-model continuation. Final EMA6000: sign augmentation wins (0.349298) over revised-loss control (0.346864) and richer synthetic generator (0.343184). Compute: control 618.3 s, synthetic 613.1 s, sign 617.9 s elapsed while sharing one H100. + +## E13/E14 large_synth_ema6000_continuity +- Checkpoint SHA-256: `f23469b8d187d0304e0accdc424ddd2233ed87dd77b97500176eec73644e0591`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 9.708917140960693 seconds. +- Overall skill 0.343184; relative MASE 0.781828; relative WQL 0.551793. +- term skill: long=0.3706, medium=0.3947, short=0.3112. +- domain skill: Econ/Fin=0.1127, Energy=0.1747, Healthcare=0.2160, Nature=0.4195, Sales=0.3267, Transport=0.4485, Web/CloudOps=0.5041. +- frequency skill: A=0.2764, D=0.3186, H=0.3736, M=0.0181, Q=0.1970, S=0.4302, T=0.3934, W=0.1723. +- variates skill: multivariate=0.3851, univariate=0.3077. +- Outcome: Matched large-model continuation. Final EMA6000: sign augmentation wins (0.349298) over revised-loss control (0.346864) and richer synthetic generator (0.343184). Compute: control 618.3 s, synthetic 613.1 s, sign 617.9 s elapsed while sharing one H100. + +## E16 earlier-window diagnostic large_loss6000 +- Checkpoint SHA-256: `f5c7327b365832e8bd2d1b7b01e61c334f5bf620f5cae5f4d45feef2041090e8`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 9.924073696136475 seconds. +- Overall skill 0.311219; relative MASE 0.824887; relative WQL 0.575132. +- term skill: long=0.3825, medium=0.3465, short=0.2673. +- domain skill: Econ/Fin=0.1171, Energy=0.2168, Healthcare=0.3670, Nature=0.3256, Sales=0.3803, Transport=0.3468, Web/CloudOps=0.4260. +- frequency skill: A=0.2543, D=0.3358, H=0.3410, M=0.1505, Q=0.2187, S=0.3402, T=0.3096, W=0.2343. +- variates skill: multivariate=0.3301, univariate=0.2958. +- Outcome: Model selection only. Seasonal Naive is recomputed on the earlier cutoff and capped-history scale. Final sign augmentation improves both main and earlier cutoffs; the richer synthetic generator does not beat its control. No diagnostic labels enter training. + +## E16 earlier-window diagnostic large_parent +- Checkpoint SHA-256: `b7e4f38aebcd2cf38ce484edaad8d19851317fb3b8df485e2faa0d0423cbcb48`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 15.111237525939941 seconds. +- Overall skill 0.312321; relative MASE 0.824141; relative WQL 0.573812. +- term skill: long=0.3880, medium=0.3443, short=0.2678. +- domain skill: Econ/Fin=0.1255, Energy=0.2150, Healthcare=0.3460, Nature=0.3326, Sales=0.3821, Transport=0.3403, Web/CloudOps=0.4349. +- frequency skill: A=0.2124, D=0.3388, H=0.3399, M=0.1428, Q=0.2091, S=0.3387, T=0.3160, W=0.2326. +- variates skill: multivariate=0.3359, univariate=0.2930. +- Outcome: Model selection only. Seasonal Naive is recomputed on the earlier cutoff and capped-history scale. Final sign augmentation improves both main and earlier cutoffs; the richer synthetic generator does not beat its control. No diagnostic labels enter training. + +## E16 earlier-window diagnostic large_sign1000 +- Checkpoint SHA-256: `393950048f9d0487869b7aa5e6bd01e7ea1715dba16b1367ee8be353eac7f408`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 14.428916931152344 seconds. +- Overall skill 0.312240; relative MASE 0.821151; relative WQL 0.576037. +- term skill: long=0.3855, medium=0.3437, short=0.2691. +- domain skill: Econ/Fin=0.1296, Energy=0.2106, Healthcare=0.3560, Nature=0.3340, Sales=0.3905, Transport=0.3466, Web/CloudOps=0.4302. +- frequency skill: A=0.3161, D=0.3390, H=0.3442, M=0.1574, Q=0.2111, S=0.3426, T=0.3054, W=0.2304. +- variates skill: multivariate=0.3287, univariate=0.2988. +- Outcome: Model selection only. Seasonal Naive is recomputed on the earlier cutoff and capped-history scale. Final sign augmentation improves both main and earlier cutoffs; the richer synthetic generator does not beat its control. No diagnostic labels enter training. + +## E16 earlier-window diagnostic large_sign6000 +- Checkpoint SHA-256: `96c9d350412c076594f4cc026aaf7396eacc45478f3d402c5d60dcf85dce8547`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 9.61752462387085 seconds. +- Overall skill 0.318367; relative MASE 0.813893; relative WQL 0.570866. +- term skill: long=0.3826, medium=0.3453, short=0.2811. +- domain skill: Econ/Fin=0.1456, Energy=0.2164, Healthcare=0.3902, Nature=0.3427, Sales=0.3912, Transport=0.3501, Web/CloudOps=0.4291. +- frequency skill: A=0.3181, D=0.3498, H=0.3477, M=0.1673, Q=0.2198, S=0.3427, T=0.3048, W=0.2686. +- variates skill: multivariate=0.3320, univariate=0.3073. +- Outcome: Model selection only. Seasonal Naive is recomputed on the earlier cutoff and capped-history scale. Final sign augmentation improves both main and earlier cutoffs; the richer synthetic generator does not beat its control. No diagnostic labels enter training. + +## E16 earlier-window diagnostic large_synth6000 +- Checkpoint SHA-256: `f23469b8d187d0304e0accdc424ddd2233ed87dd77b97500176eec73644e0591`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 9.829549789428711 seconds. +- Overall skill 0.311804; relative MASE 0.824530; relative WQL 0.574404. +- term skill: long=0.3704, medium=0.3520, short=0.2715. +- domain skill: Econ/Fin=0.1602, Energy=0.2091, Healthcare=0.3496, Nature=0.3283, Sales=0.3808, Transport=0.3477, Web/CloudOps=0.4301. +- frequency skill: A=0.2270, D=0.3331, H=0.3416, M=0.1436, Q=0.2168, S=0.3434, T=0.3110, W=0.2438. +- variates skill: multivariate=0.3289, univariate=0.2979. +- Outcome: Model selection only. Seasonal Naive is recomputed on the earlier cutoff and capped-history scale. Final sign augmentation improves both main and earlier cutoffs; the richer synthetic generator does not beat its control. No diagnostic labels enter training. + +## E16 earlier-window diagnostic small_continuity +- Checkpoint SHA-256: `70a3768d667df75f0d6565e831cdca8cf7c179c8546252e5902f7b7ec68ab7aa`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 12.578126668930054 seconds. +- Overall skill 0.314127; relative MASE 0.818301; relative WQL 0.574876. +- term skill: long=0.3797, medium=0.3430, short=0.2755. +- domain skill: Econ/Fin=0.1152, Energy=0.2137, Healthcare=0.3801, Nature=0.3283, Sales=0.3845, Transport=0.3460, Web/CloudOps=0.4366. +- frequency skill: A=0.2537, D=0.3362, H=0.3448, M=0.1858, Q=0.2208, S=0.3366, T=0.3083, W=0.2433. +- variates skill: multivariate=0.3331, univariate=0.2986. +- Outcome: Model selection only. Seasonal Naive is recomputed on the earlier cutoff and capped-history scale. Final sign augmentation improves both main and earlier cutoffs; the richer synthetic generator does not beat its control. No diagnostic labels enter training. + +## E16 earlier-window diagnostic small_no_continuity +- Checkpoint SHA-256: `70a3768d667df75f0d6565e831cdca8cf7c179c8546252e5902f7b7ec68ab7aa`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 11.378507137298584 seconds. +- Overall skill 0.308552; relative MASE 0.826361; relative WQL 0.578561. +- term skill: long=0.3803, medium=0.3416, short=0.2654. +- domain skill: Econ/Fin=0.0571, Energy=0.2115, Healthcare=0.3152, Nature=0.3257, Sales=0.3845, Transport=0.3471, Web/CloudOps=0.4427. +- frequency skill: A=0.2363, D=0.3288, H=0.3546, M=0.1261, Q=0.1813, S=0.3403, T=0.3019, W=0.2031. +- variates skill: multivariate=0.3334, univariate=0.2881. +- Outcome: Model selection only. Seasonal Naive is recomputed on the earlier cutoff and capped-history scale. Final sign augmentation improves both main and earlier cutoffs; the richer synthetic generator does not beat its control. No diagnostic labels enter training. + +## E14 final sign-augmented single model, full validation +- Checkpoint SHA-256: `96c9d350412c076594f4cc026aaf7396eacc45478f3d402c5d60dcf85dce8547`. +- Evaluation: 97 configurations, 151170 instances, 0 failed configurations; not separately timed seconds. +- Overall skill 0.344508; relative MASE 0.777383; relative WQL 0.552713. +- term skill: long=0.3776, medium=0.3912, short=0.3123. +- domain skill: Econ/Fin=0.0926, Energy=0.1707, Healthcare=0.3648, Nature=0.4053, Sales=0.3446, Transport=0.4514, Web/CloudOps=0.4943. +- frequency skill: A=0.2937, D=0.3275, H=0.3694, M=0.0521, Q=0.1776, S=0.4300, T=0.3859, W=0.2124. +- variates skill: multivariate=0.3784, univariate=0.3162. +- Outcome: Full skill 0.344508, relative MASE 0.777383, relative WQL 0.552713, zero failures. Outperforms the published two-model ensemble (0.340239) and also improves the earlier-cutoff diagnostic. Full inference 57.2 s. Relocated repeated example calls are bitwise deterministic, finite and monotone. Selected for atomic publication. + +## E18 remove symmetric inference after sign-augmented training +- Checkpoint SHA-256: `96c9d350412c076594f4cc026aaf7396eacc45478f3d402c5d60dcf85dce8547`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 13.020774841308594 seconds. +- Overall skill 0.345482; relative MASE 0.778014; relative WQL 0.550625. +- term skill: long=0.3817, medium=0.3909, short=0.3125. +- domain skill: Econ/Fin=0.1197, Energy=0.1784, Healthcare=0.3304, Nature=0.4074, Sales=0.3304, Transport=0.4474, Web/CloudOps=0.4960. +- frequency skill: A=0.3782, D=0.3248, H=0.3710, M=0.0198, Q=0.1916, S=0.4321, T=0.3889, W=0.2113. +- variates skill: multivariate=0.3767, univariate=0.3195. +- Outcome: Negative result: removing the x/-x average lowers screening skill from 0.349298 to 0.345482 despite sign-augmented training. We retain symmetric inference; the speed saving is not needed for the contract budget. + +## E17 16-point projection conversion before continuation +- Checkpoint SHA-256: `d69531bfde5bf801e7f36c515bf15fd0cae0bd84f7d1479d35f4a7b67f26b508`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 17.147535800933838 seconds. +- Overall skill 0.341987; relative MASE 0.782323; relative WQL 0.553456. +- term skill: long=0.3765, medium=0.3855, short=0.3105. +- domain skill: Econ/Fin=0.0851, Energy=0.1664, Healthcare=0.3542, Nature=0.4067, Sales=0.3482, Transport=0.4386, Web/CloudOps=0.4996. +- frequency skill: A=0.2894, D=0.3469, H=0.3634, M=-0.0442, Q=0.1930, S=0.4414, T=0.3853, W=0.1987. +- variates skill: multivariate=0.3808, univariate=0.3093. +- Outcome: Conversion of our own E14 EMA6000 checkpoint loses screening skill from 0.349298 to 0.341987 before updates. Input/query projection halves are folded by summation, constant-feature activation preserved, first 16 output rows retained, and physical sine positions remain in 32-point units. No external weights. Continuation is needed. + +## E17 matched patch-resolution continuation +- Hypothesis: finer patches improve short-horizon detail and align common seasonal periods more closely without shortening context. +- Control: 32-point patches, 37,002,816 parameters; treatment: 16-point patches, 36,764,960 parameters, initialized by conversion of the same owned parent E14 EMA6000. Only patch projections and positional spacing change. Physical position units remain 32 points; metadata horizon is floored at 32 to preserve short-horizon conditioning. +- Both use the same window stream: seed47, batch256, 6000steps, AdamW8e-5, same sign-augmented sampler and median/seasonal-error-weighted loss/EMA. Context remains4096, maximum output1024. One H100 shared between runs. +- Conversion code: patch16/convert.py. The converted checkpoint retains its parent hash and conversion description. Training and runtime require the model in patch16/model.py, copied to patch16_inference/model.py. Results pending final matched checkpoints. + +## E17 patch16_trial_ema1000 +- Checkpoint SHA-256: `396a7e827e8ddd068535f96f590e710f1931818c4e0b4cc589648bf68c830ba1`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 14.109450101852417 seconds. +- Overall skill 0.348957; relative MASE 0.771301; relative WQL 0.549536. +- term skill: long=0.3832, medium=0.3926, short=0.3175. +- domain skill: Econ/Fin=0.0969, Energy=0.1735, Healthcare=0.3953, Nature=0.4077, Sales=0.3495, Transport=0.4526, Web/CloudOps=0.4982. +- frequency skill: A=0.3699, D=0.3389, H=0.3688, M=0.0874, Q=0.1860, S=0.4381, T=0.3905, W=0.1934. +- variates skill: multivariate=0.3799, univariate=0.3232. +- Outcome: Matched seed47/window-stream comparison. Final patch16 skill 0.351398 exceeds patch32 0.350171, mainly through median error. Compute: control447.6s, patch16 563.2s, sharing one H100. Earlier-cutoff and full-package validation are pending before selection. + +## E17 patch16_trial_ema3000 +- Checkpoint SHA-256: `aad4bb2f079c957b1c2a064fc245e660bd9992bf0a01b57c9a48b0d33a44436e`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 13.450159549713135 seconds. +- Overall skill 0.348611; relative MASE 0.772343; relative WQL 0.549378. +- term skill: long=0.3843, medium=0.3974, short=0.3144. +- domain skill: Econ/Fin=0.1014, Energy=0.1753, Healthcare=0.3863, Nature=0.4037, Sales=0.3479, Transport=0.4516, Web/CloudOps=0.4997. +- frequency skill: A=0.3647, D=0.3298, H=0.3718, M=0.0756, Q=0.1866, S=0.4393, T=0.3930, W=0.1879. +- variates skill: multivariate=0.3823, univariate=0.3204. +- Outcome: Matched seed47/window-stream comparison. Final patch16 skill 0.351398 exceeds patch32 0.350171, mainly through median error. Compute: control447.6s, patch16 563.2s, sharing one H100. Earlier-cutoff and full-package validation are pending before selection. + +## E17 patch16_trial_ema6000 +- Checkpoint SHA-256: `0ff54447074e0271d2e331c7d3e6e9e0fdd73353e4d8cef0175ff627385f71c3`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 10.25124716758728 seconds. +- Overall skill 0.351398; relative MASE 0.770359; relative WQL 0.546090. +- term skill: long=0.3847, medium=0.3993, short=0.3185. +- domain skill: Econ/Fin=0.1048, Energy=0.1768, Healthcare=0.3969, Nature=0.4061, Sales=0.3499, Transport=0.4528, Web/CloudOps=0.5033. +- frequency skill: A=0.3673, D=0.3318, H=0.3738, M=0.0802, Q=0.1913, S=0.4391, T=0.3969, W=0.1924. +- variates skill: multivariate=0.3843, univariate=0.3240. +- Outcome: Matched seed47/window-stream comparison. Final patch16 skill 0.351398 exceeds patch32 0.350171, mainly through median error. Compute: control447.6s, patch16 563.2s, sharing one H100. Earlier-cutoff and full-package validation are pending before selection. + +## E17 patch32_control_ema1000 +- Checkpoint SHA-256: `56edd93dd7e80399be57a359574b2fb89eba843fa1ddf01f1d3f3a2d9c2fd73b`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 12.499926567077637 seconds. +- Overall skill 0.347764; relative MASE 0.775926; relative WQL 0.548263. +- term skill: long=0.3840, medium=0.3930, short=0.3148. +- domain skill: Econ/Fin=0.1090, Energy=0.1783, Healthcare=0.3531, Nature=0.4057, Sales=0.3333, Transport=0.4508, Web/CloudOps=0.5005. +- frequency skill: A=0.3826, D=0.3190, H=0.3738, M=0.0404, Q=0.1937, S=0.4305, T=0.3927, W=0.2146. +- variates skill: multivariate=0.3815, univariate=0.3196. +- Outcome: Matched seed47/window-stream comparison. Final patch16 skill 0.351398 exceeds patch32 0.350171, mainly through median error. Compute: control447.6s, patch16 563.2s, sharing one H100. Earlier-cutoff and full-package validation are pending before selection. + +## E17 patch32_control_ema3000 +- Checkpoint SHA-256: `fe46ac478011854b20eeba3bbde42023f299e2d8544d223f046be0e234ae7c6e`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 15.177376747131348 seconds. +- Overall skill 0.349507; relative MASE 0.774280; relative WQL 0.546496. +- term skill: long=0.3853, medium=0.3964, short=0.3160. +- domain skill: Econ/Fin=0.1062, Energy=0.1803, Healthcare=0.3631, Nature=0.4048, Sales=0.3322, Transport=0.4510, Web/CloudOps=0.5041. +- frequency skill: A=0.3765, D=0.3187, H=0.3755, M=0.0515, Q=0.1928, S=0.4362, T=0.3953, W=0.2095. +- variates skill: multivariate=0.3848, univariate=0.3199. +- Outcome: Matched seed47/window-stream comparison. Final patch16 skill 0.351398 exceeds patch32 0.350171, mainly through median error. Compute: control447.6s, patch16 563.2s, sharing one H100. Earlier-cutoff and full-package validation are pending before selection. + +## E17 patch32_control_ema6000 +- Checkpoint SHA-256: `3ee55007ebabdc41a5bbb6553dcd0c4b86e90b717dd1cff758d2318f538c0929`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 9.685351848602295 seconds. +- Overall skill 0.350171; relative MASE 0.774332; relative WQL 0.545345. +- term skill: long=0.3851, medium=0.3971, short=0.3171. +- domain skill: Econ/Fin=0.1122, Energy=0.1816, Healthcare=0.3633, Nature=0.4023, Sales=0.3323, Transport=0.4516, Web/CloudOps=0.5054. +- frequency skill: A=0.3791, D=0.3172, H=0.3768, M=0.0518, Q=0.1910, S=0.4349, T=0.3964, W=0.2119. +- variates skill: multivariate=0.3854, univariate=0.3207. +- Outcome: Matched seed47/window-stream comparison. Final patch16 skill 0.351398 exceeds patch32 0.350171, mainly through median error. Compute: control447.6s, patch16 563.2s, sharing one H100. Earlier-cutoff and full-package validation are pending before selection. + +## E19 prefix-consistent direct decoder +- Hypothesis: requested total horizon should not change predictions of the same first steps. The context-only probe compared H48 versus H720 after all inference rules; mean absolute median-prefix differences were 0.0059–0.0582 context standard deviations across six sampled configurations (prefix_probe.json). +- Change: future-query self-attention becomes causal and the total-horizon metadata feature is replaced by its constant training-mixture mean. Forecasts remain direct and parallel; no generated output is fed back. Encoder/cross attention and all data/loss settings stay unchanged. +- Seed47, batch256, 6000steps, same original E14 EMA6000 parent and sampled-window stream as E17 patch32_control. Reuse that completed control instead of repeating it. Only the new decoder variant trains. Runtime/model: prefix_consistent/model.py, copied into prefix_inference. +- Results pending. + +## E17 patch16, full validation +- Checkpoint SHA-256: `0ff54447074e0271d2e331c7d3e6e9e0fdd73353e4d8cef0175ff627385f71c3`. +- Evaluation: 97 configurations, 151170 instances, 0 failed configurations; not separately timed seconds. +- Overall skill 0.346729; relative MASE 0.773486; relative WQL 0.551739. +- term skill: long=0.3768, medium=0.3979, short=0.3138. +- domain skill: Econ/Fin=0.0839, Energy=0.1675, Healthcare=0.4022, Nature=0.4059, Sales=0.3593, Transport=0.4530, Web/CloudOps=0.4957. +- frequency skill: A=0.2818, D=0.3356, H=0.3684, M=0.0967, Q=0.1741, S=0.4391, T=0.3887, W=0.1870. +- variates skill: multivariate=0.3799, univariate=0.3190. +- Outcome: Full skill 0.346729, relative MASE 0.773486 and relative WQL 0.551739, zero failures; improves the previous published 0.344508. Inference 57.5 seconds. Earlier-window skill 0.322486 versus control 0.319021. Relocated repeated example outputs are bitwise identical, finite and monotone. Initial assembly failed on a symlinked lineage path, was never published, and was rebuilt after canonicalizing paths; the missing-output score from that failed pipeline is discarded. + +## E19 prefix_consistent_ema1000 +- Checkpoint SHA-256: `aa797f3356c30e1859821bd807202298774b8d44b59b8325cc73956796a83b21`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 10.920389413833618 seconds. +- Overall skill 0.347132; relative MASE 0.775797; relative WQL 0.549418. +- term skill: long=0.3820, medium=0.3928, short=0.3146. +- domain skill: Econ/Fin=0.1091, Energy=0.1769, Healthcare=0.3709, Nature=0.4082, Sales=0.3333, Transport=0.4492, Web/CloudOps=0.4954. +- frequency skill: A=0.3824, D=0.3200, H=0.3727, M=0.0361, Q=0.1918, S=0.4265, T=0.3902, W=0.2278. +- variates skill: multivariate=0.3798, univariate=0.3199. +- Outcome: Final skill 0.349313 is below the reused matched patch32 control (0.350171). This training recipe does not improve the score; not selected. Training elapsed 288.9 seconds on one H100. + +## E19 prefix_consistent_ema3000 +- Checkpoint SHA-256: `11094f18080cd31f38a7f33d1df852adc957d9f1705653360b21e790e55b6648`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 10.28545594215393 seconds. +- Overall skill 0.348148; relative MASE 0.775101; relative WQL 0.548201. +- term skill: long=0.3814, medium=0.3951, short=0.3158. +- domain skill: Econ/Fin=0.1060, Energy=0.1786, Healthcare=0.3758, Nature=0.4101, Sales=0.3323, Transport=0.4489, Web/CloudOps=0.4963. +- frequency skill: A=0.3799, D=0.3215, H=0.3735, M=0.0487, Q=0.1876, S=0.4294, T=0.3915, W=0.2202. +- variates skill: multivariate=0.3812, univariate=0.3206. +- Outcome: Final skill 0.349313 is below the reused matched patch32 control (0.350171). This training recipe does not improve the score; not selected. Training elapsed 288.9 seconds on one H100. + +## E19 prefix_consistent_ema6000 +- Checkpoint SHA-256: `2572d0401c85966c3936b3feed906dee4206ca403a778c2356406aca57988ef7`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 9.322679996490479 seconds. +- Overall skill 0.349313; relative MASE 0.774658; relative WQL 0.546555. +- term skill: long=0.3800, medium=0.3960, short=0.3181. +- domain skill: Econ/Fin=0.1130, Energy=0.1774, Healthcare=0.3765, Nature=0.4114, Sales=0.3328, Transport=0.4502, Web/CloudOps=0.4987. +- frequency skill: A=0.3795, D=0.3224, H=0.3737, M=0.0589, Q=0.1895, S=0.4294, T=0.3930, W=0.2214. +- variates skill: multivariate=0.3825, univariate=0.3216. +- Outcome: Final skill 0.349313 is below the reused matched patch32 control (0.350171). This training recipe does not improve the score; not selected. Training elapsed 288.9 seconds on one H100. + +## E20: learned cross-variable adapter on the frozen E17 backbone +Hypothesis: a jointly trained attention layer can exploit synchronized channels, especially on multivariate energy and weather series. Only a new 1.05M-parameter axial attention adapter is optimized; every backbone weight is frozen. Adapter output starts at zero, and univariate contexts bypass it exactly. Attention is confined to the channels of one instance. Context rows are grouped by whole instance in inference. +Training: seed 53, 6,000 steps, 32 groups per batch, 2/3/4/8 variates, learning rate 2e-4 with 200-step warmup, AdamW, same median/quantile seasonal-scaled objective as E17, EMA. Joint pack has 334,868,547 aligned observations from 26 allow-listed directories. Thirty percent locally generated multivariate series use mixtures of latent seasonal/AR drivers with random channel lags, optional integrated noise, and observation noise. Channel signs/scales and missing observations are augmented. No validation observations are used by training. The new adapter is zero-initialized so step 0 supplies an inference grouping control. + +## E21: longer context at inference, without retraining +Hypothesis: the encoder can benefit from histories longer than its 4,096-point training maximum. Hold E17 weights and all rules fixed and compare 8,192/16,384-point context caps with the current 4,096-point cap on all 97 screen configurations. This is a selection diagnostic, not adaptation; checkpoint tensor values are unchanged. + +## E22: function-preserving depth expansion +Hypothesis: more learned capacity can improve the persistent energy and economic errors. Expand E17 from 6 encoder/4 decoder layers to 12 encoder/8 decoder layers, 72,499,488 parameters. Keep original blocks at even positions and insert random blocks with zero attention and feedforward output projections at odd positions. The initial enlarged model produces bitwise identical quantiles in a synthetic bf16 forward check. Conversion seed 59; both the expanded model and a continued 36.8M control will use seed 59, identical sampled windows, sign augmentation, revised seasonal-scaled median/quantile loss, and 24,000 AdamW steps, batch 256, learning rate 8e-5. Data remains packed_sample from 95 allowed sources plus the original local generator. GPU jobs share the single H100 if overlapping; elapsed training-process seconds will be reported. + +## E21 untrained 8192 context cap +- Checkpoint SHA-256: `4cdcd096105c711926d1be912debeecf2999cc4e70389385ea60e516a211d035`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 11.263309001922607 seconds. +- Overall skill 0.350147; relative MASE 0.769937; relative WQL 0.548498. +- term skill: long=0.3906, medium=0.3940, short=0.3160. +- domain skill: Econ/Fin=0.1042, Energy=0.1740, Healthcare=0.4046, Nature=0.3925, Sales=0.3499, Transport=0.4581, Web/CloudOps=0.5047. +- frequency skill: A=0.3673, D=0.3338, H=0.3751, M=0.0802, Q=0.1913, S=0.4410, T=0.3905, W=0.1924. +- variates skill: multivariate=0.3814, univariate=0.3241. +- Outcome: Screen skill 0.350147 is below the 4096-point parent 0.351398. Not selected. + +## E21 untrained 16384 context cap +- Checkpoint SHA-256: `a7504466f8d21bf752f3d99c32927a57cd63d0af5d5f15618ef4e8e1bdbeeb47`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 14.697236776351929 seconds. +- Overall skill 0.347052; relative MASE 0.771167; relative WQL 0.552852. +- term skill: long=0.3936, medium=0.3900, short=0.3107. +- domain skill: Econ/Fin=0.1042, Energy=0.1694, Healthcare=0.4046, Nature=0.3838, Sales=0.3499, Transport=0.4577, Web/CloudOps=0.5032. +- frequency skill: A=0.3673, D=0.3345, H=0.3752, M=0.0802, Q=0.1913, S=0.4410, T=0.3807, W=0.1924. +- variates skill: multivariate=0.3779, univariate=0.3214. +- Outcome: Below the 4096-point parent; longer context needs training and is not selected. + +## E23: fixed local-level diffusion prior (negative result) +Hypothesis: smooth series might benefit from a decaying blend with their last value and random-walk intervals. Keep E17 forecasts fixed, estimate RMS consecutive differences from the last 512 context points, and blend Gaussian last-value forecasts with weight capped at 0.8, active only where squared-difference/context-variance ratio is below 0.05. Sweep decay 24/96/384 steps; no training, no fitting, no new random seed. All variants substantially regress on the 97-configuration screen, so none is adopted. Probe elapsed 5.3 CPU seconds. Parent checkpoint SHA-256: 0ff54447074e0271d2e331c7d3e6e9e0fdd73353e4d8cef0175ff627385f71c3. +- Decay 0: skill 0.3513976241007074; term skills {"short": 0.3185422008330211, "medium": 0.3993234467710519, "long": 0.38466658538687104}; domain skills {"Econ/Fin": 0.1047749678551001, "Energy": 0.17678999618615132, "Healthcare": 0.3968888878939394, "Nature": 0.4060764075001204, "Sales": 0.349917064856452, "Transport": 0.4527521728604965, "Web/CloudOps": 0.50332745421581}. +- Decay 24: skill 0.34165742688714285; term skills {"short": 0.30882663252618237, "medium": 0.38422047231265555, "long": 0.3803807240673608}; domain skills {"Econ/Fin": 0.09820862504146799, "Energy": 0.14638236482304767, "Healthcare": 0.3994101685341417, "Nature": 0.4097541459355638, "Sales": 0.34991701707454004, "Transport": 0.45281938688271317, "Web/CloudOps": 0.49437598362265067}. +- Decay 96: skill 0.3235906270632306; term skills {"short": 0.30736381494165377, "medium": 0.31870169010171356, "long": 0.3688721255257502}; domain skills {"Econ/Fin": 0.09505897302445243, "Energy": 0.1285464282539771, "Healthcare": 0.3977611664977332, "Nature": 0.41574057336372194, "Sales": 0.34991700862256025, "Transport": 0.45284743770041946, "Web/CloudOps": 0.43886394048274135}. +- Decay 384: skill 0.28712372958270105; term skills {"short": 0.30561653681994894, "medium": 0.2119589494208397, "long": 0.3091633781775974}; domain skills {"Econ/Fin": 0.09383616546291695, "Energy": 0.10801096739511007, "Healthcare": 0.3957240300486188, "Nature": 0.4179314810204363, "Sales": 0.3499170061816316, "Transport": 0.4526991548827556, "Web/CloudOps": 0.3016411139705769}. + +## E20 joint adapter full validation +- Checkpoint SHA-256: `88beaafe52bd88300ebd46afc3a0d950246c280c738ac52367203d6c776a3053`. +- Evaluation: 97 configurations, 151170 instances, 0 failed configurations; not separately timed seconds. +- Overall skill 0.348181; relative MASE 0.773070; relative WQL 0.549586. +- term skill: long=0.3789, medium=0.3973, short=0.3159. +- domain skill: Econ/Fin=0.0839, Energy=0.1670, Healthcare=0.4022, Nature=0.4151, Sales=0.3593, Transport=0.4530, Web/CloudOps=0.4958. +- frequency skill: A=0.2818, D=0.3370, H=0.3714, M=0.0967, Q=0.1741, S=0.4354, T=0.3901, W=0.1878. +- variates skill: multivariate=0.3830, univariate=0.3190. +- Outcome: Full validation improves from 0.346729 to 0.348181 with no failures. Main screen improves from 0.351398 to 0.352838, but the earlier-window diagnostic regresses from 0.322486 to 0.321225. Selected on the task full validation metric, with this temporal limitation recorded. Training 157.8 process seconds on the single shared H100; full inference 63.7 seconds excluding startup. Frozen backbone equality, within-instance isolation, and repeated relocated example determinism verified. + +## E20 joint adapter screen +- Checkpoint SHA-256: `88beaafe52bd88300ebd46afc3a0d950246c280c738ac52367203d6c776a3053`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 15.721086978912354 seconds. +- Overall skill 0.352838; relative MASE 0.769945; relative WQL 0.543959. +- term skill: long=0.3868, medium=0.3987, short=0.3205. +- domain skill: Econ/Fin=0.1048, Energy=0.1763, Healthcare=0.3969, Nature=0.4152, Sales=0.3499, Transport=0.4528, Web/CloudOps=0.5034. +- frequency skill: A=0.3673, D=0.3332, H=0.3768, M=0.0802, Q=0.1913, S=0.4354, T=0.3982, W=0.1932. +- variates skill: multivariate=0.3874, univariate=0.3240. +- Outcome: The added adapter improves weather forecasts most; some ETT and cloud configurations regress. Original univariate forecasts are unchanged. + +## E20 joint adapter earlier-window diagnostic +- Checkpoint SHA-256: `88beaafe52bd88300ebd46afc3a0d950246c280c738ac52367203d6c776a3053`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 16.06979727745056 seconds. +- Overall skill 0.321225; relative MASE 0.812345; relative WQL 0.567168. +- term skill: long=0.3839, medium=0.3520, short=0.2830. +- domain skill: Econ/Fin=0.1423, Energy=0.2143, Healthcare=0.3841, Nature=0.3485, Sales=0.3968, Transport=0.3596, Web/CloudOps=0.4341. +- frequency skill: A=0.3026, D=0.3536, H=0.3503, M=0.1681, Q=0.2189, S=0.3405, T=0.3157, W=0.2466. +- variates skill: multivariate=0.3338, univariate=0.3110. +- Outcome: Temporal diagnostic regression; this limits confidence in the small primary-validation gain. + +## E24: seasonal-template recency +Hypothesis: averaging the last four cycles induces bias when level or amplitude changes. Compare fixed 4/2/1-cycle means, four-cycle mean shifted to the latest cycle mean, and exponentially weighted four-cycle mean. The rest of the E17 forecaster and all confidence thresholds are fixed. Validation only; no parameter fitting. Centering improves the main screen 0.351398 to 0.353163 but decreases the earlier-window diagnostic 0.322486 to 0.321979. Other variants show larger temporal disagreement. Detailed per-configuration and group results remain in research/seasonal_recency/{screen,backcast}.json. Probe runtime: 15.3 and 15.0 CPU seconds. No variant published yet. + +## E25: learned recency features +Hypothesis: adding level and amplitude change features to future queries lets the model learn when seasonal recency matters, instead of imposing a uniform template rule. Add a zero-initialized 32,768-parameter query projection receiving, for each of the two periods, latest-cycle minus four-cycle mean and the phase template times the latest/four-cycle standard deviation ratio minus one. Ratios are clipped to [0.5,2]; features require three observed cycles. Existing query and median heads stay structurally unchanged. Starting function is preserved; all weights are then trained. Same seed 59, parent E17, 24,000-step learning-rate schedule, batch 256 and identical sampler stream as E22's 36.8M control. Checkpoints every 3,000 steps; an unpromising trial can be stopped early. No validation data is used by training. + +## E26: second earlier-cutoff diagnostic +Create a second nonoverlapping diagnostic window by removing another forecast horizon from E16 inputs. All observations remain within supplied validation histories and are never passed to trainers. 94 configurations and 8,934 instances have usable normalizers; Seasonal Naive and seasonal-error normalizers are recomputed for these prefixes. This diagnostic has its own scale and cannot be compared directly to primary validation or held-out reward. Purpose: assess temporal stability of the adapter and recency changes after the first earlier diagnostic disagreed with primary validation. + +E26 eligibility correction: SZ_TAXI long has exactly one seasonal period (96 points) left, so its prefix seasonal error is undefined. It is excluded from this diagnostic, alongside two configurations with insufficient context. An initial reference attempt detected the undefined metric; no candidate was selected on that invalid draft. + +E26 paired comparison on the 94 common configurations: adapter minus parent mean log geometric error by cutoff = [-0.0023015101916589752, 0.0019472848873323858, 0.0034041402255075566]. Positive means worse; the three-cutoff mean is 0.0010166383070603225. The adapter improves primary full validation but regresses on both earlier cutoffs, so its apparent gain is not temporally robust. + +E24 complete recency-rule ablation; parent checkpoint SHA-256 0ff54447074e0271d2e331c7d3e6e9e0fdd73353e4d8cef0175ff627385f71c3. No training, no random seed; model weights unchanged. + +screen diagnostic, 15.3 CPU seconds total: +- (4, 'mean'): skill 0.3513976241007074; group skills {"term": {"short": 0.3185422008330211, "medium": 0.3993234467710519, "long": 0.38466658538687104}, "domain": {"Econ/Fin": 0.1047749678551001, "Energy": 0.17678999618615132, "Healthcare": 0.3968888878939394, "Nature": 0.4060764075001204, "Sales": 0.349917064856452, "Transport": 0.4527521728604965, "Web/CloudOps": 0.50332745421581}, "freq": {"A-DEC": 0.3672744916070976, "Q-DEC": 0.19127390925064935, "M": 0.08024694183722458, "W-SUN": 0.035758619864346475, "D": 0.3318015817783623, "H": 0.37383534533108864, "15T": 0.1940857197364374, "W-FRI": -0.03678057554518466, "10T": 0.4946120106982924, "W-TUE": 0.552193186183172, "W-THU": 0.16944597286444163, "W-WED": 0.3192454708946336, "5T": 0.5069054537063827, "10S": 0.43906058031696027}} +- (2, 'mean'): skill 0.3515869592249251; group skills {"term": {"short": 0.31946055343361235, "medium": 0.395564454113736, "long": 0.3871567716641673}, "domain": {"Econ/Fin": 0.12253197026836216, "Energy": 0.18298948886090993, "Healthcare": 0.39741811166060514, "Nature": 0.40643913101885387, "Sales": 0.34900834734187824, "Transport": 0.45646747263938636, "Web/CloudOps": 0.4921796292797348}, "freq": {"A-DEC": 0.3672744916070976, "Q-DEC": 0.19172301173815798, "M": 0.07891640026491331, "W-SUN": 0.04042355013060539, "D": 0.3321769544067552, "H": 0.38073675441614074, "15T": 0.20117188206554237, "W-FRI": -0.03695866316509533, "10T": 0.49452343668884957, "W-TUE": 0.552193186183172, "W-THU": 0.16944597286444163, "W-WED": 0.3192454708946336, "5T": 0.5070472862431538, "10S": 0.3973951356554515}} +- (1, 'mean'): skill 0.3435908999493934; group skills {"term": {"short": 0.3116909988543801, "medium": 0.38160533975903543, "long": 0.384670295110323}, "domain": {"Econ/Fin": 0.13426770743669836, "Energy": 0.18216526583305703, "Healthcare": 0.40167072012279914, "Nature": 0.4064404130881688, "Sales": 0.3492754711813856, "Transport": 0.4589127441324581, "Web/CloudOps": 0.45693278131755455}, "freq": {"A-DEC": 0.3672744916070976, "Q-DEC": 0.19143020771042418, "M": 0.08285832779020297, "W-SUN": 0.04327272071755062, "D": 0.33288417189993846, "H": 0.38267829909706397, "15T": 0.19937252608994493, "W-FRI": -0.037004579119138015, "10T": 0.4945270610078465, "W-TUE": 0.552193186183172, "W-THU": 0.16944597286444163, "W-WED": 0.3192454708946336, "5T": 0.5067187989779461, "10S": 0.25271387987938276}} +- (4, 'centered'): skill 0.3531633226160329; group skills {"term": {"short": 0.3207293873053654, "medium": 0.3969450585806461, "long": 0.38964518179731034}, "domain": {"Econ/Fin": 0.12636396756466373, "Energy": 0.1800705780909143, "Healthcare": 0.3992839589819721, "Nature": 0.40602447440489264, "Sales": 0.34961552641405835, "Transport": 0.45585497734478375, "Web/CloudOps": 0.5005422814848317}, "freq": {"A-DEC": 0.3672744916070976, "Q-DEC": 0.19175192579993316, "M": 0.07909511983098594, "W-SUN": 0.042408325150654624, "D": 0.33302767036606196, "H": 0.37896395394765425, "15T": 0.19862358212653608, "W-FRI": -0.03667482636982777, "10T": 0.49458872561779677, "W-TUE": 0.552193186183172, "W-THU": 0.16944597286444163, "W-WED": 0.3192454708946336, "5T": 0.5067600572208003, "10S": 0.43120160792893125}} +- (4, 'exponential'): skill 0.3506285650976836; group skills {"term": {"short": 0.31758444696147214, "medium": 0.39583120771209657, "long": 0.38712405721550214}, "domain": {"Econ/Fin": 0.11941316839573946, "Energy": 0.1820733009344513, "Healthcare": 0.39881728965443064, "Nature": 0.4063573767251085, "Sales": 0.3492900874450249, "Transport": 0.45600364485060096, "Web/CloudOps": 0.4900268042948257}, "freq": {"A-DEC": 0.3672744916070976, "Q-DEC": 0.19155754727480623, "M": 0.08126365276376935, "W-SUN": 0.0395554234837493, "D": 0.3321922474298862, "H": 0.3798686284876259, "15T": 0.19972610305133176, "W-FRI": -0.036894372612062964, "10T": 0.49455551047271673, "W-TUE": 0.552193186183172, "W-THU": 0.16944597286444163, "W-WED": 0.3192454708946336, "5T": 0.507021365412977, "10S": 0.38828731350299905}} + +backcast diagnostic, 15.0 CPU seconds total: +- (4, 'mean'): skill 0.3224855500998881; group skills {"term": {"short": 0.2849500928667269, "medium": 0.35106641415497664, "long": 0.3858074289185036}, "domain": {"Econ/Fin": 0.14231294402320693, "Energy": 0.22033739564654398, "Healthcare": 0.38413791496286065, "Nature": 0.34419561689971845, "Sales": 0.3968014140531252, "Transport": 0.35961999575754544, "Web/CloudOps": 0.43501924471773445}, "freq": {"A-DEC": 0.30258726538887626, "Q-DEC": 0.21891811984740894, "M": 0.16812726492063224, "W-SUN": -0.010729530876487425, "D": 0.35222355718445886, "H": 0.3519096502404674, "15T": 0.2228803711964017, "W-FRI": 0.24958026063282224, "10T": 0.28160966000223076, "W-TUE": 0.5071080326855618, "W-THU": 0.17681316314370377, "W-WED": 0.3400228795320346, "5T": 0.41752089397176684, "10S": 0.3420520567149261}} +- (2, 'mean'): skill 0.31641087380554034; group skills {"term": {"short": 0.2768742380592605, "medium": 0.34943272384716806, "long": 0.38006754913357355}, "domain": {"Econ/Fin": 0.1588024863579226, "Energy": 0.21997369353201524, "Healthcare": 0.371350308865825, "Nature": 0.34524192786763674, "Sales": 0.3968014140531252, "Transport": 0.3617399277122316, "Web/CloudOps": 0.4078808317401613}, "freq": {"A-DEC": 0.30258726538887626, "Q-DEC": 0.21832950345882607, "M": 0.1660037727174999, "W-SUN": -0.006617407115359519, "D": 0.3510532765644364, "H": 0.35322947177285846, "15T": 0.2251426669096147, "W-FRI": 0.2495544318494044, "10T": 0.28154255982923526, "W-TUE": 0.5071080326855618, "W-THU": 0.17681316314370377, "W-WED": 0.3400228795320346, "5T": 0.417584870977882, "10S": 0.23197125321775225}} +- (1, 'mean'): skill 0.31723500000228033; group skills {"term": {"short": 0.28111182113787236, "medium": 0.34369676593720844, "long": 0.3794207668157681}, "domain": {"Econ/Fin": 0.16484876593565279, "Energy": 0.2163334841815111, "Healthcare": 0.34937996041769215, "Nature": 0.3461425603980003, "Sales": 0.3968014140531252, "Transport": 0.36432827783243815, "Web/CloudOps": 0.4170717985814322}, "freq": {"A-DEC": 0.30258726538887626, "Q-DEC": 0.21811526606513132, "M": 0.17155750755784438, "W-SUN": -0.004083126467642861, "D": 0.34319459279654896, "H": 0.35193709208671076, "15T": 0.22385514627514524, "W-FRI": 0.249535867076202, "10T": 0.28142605167103807, "W-TUE": 0.5071080326855618, "W-THU": 0.17681316314370377, "W-WED": 0.3400228795320346, "5T": 0.41764726501313276, "10S": 0.27470089184112967}} +- (4, 'centered'): skill 0.3219793532222529; group skills {"term": {"short": 0.28513766744425706, "medium": 0.34881946541915476, "long": 0.3853894132385529}, "domain": {"Econ/Fin": 0.15718749322076342, "Energy": 0.220305778786681, "Healthcare": 0.3623301744180454, "Nature": 0.34528108993797224, "Sales": 0.3968014140531252, "Transport": 0.3641900819387449, "Web/CloudOps": 0.4312095523303556}, "freq": {"A-DEC": 0.30258726538887626, "Q-DEC": 0.21945119732749618, "M": 0.17114892410654747, "W-SUN": -0.005425657907346837, "D": 0.3478712397506638, "H": 0.3538545808265424, "15T": 0.22504062323947938, "W-FRI": 0.24955455634324242, "10T": 0.28170410454547445, "W-TUE": 0.5071080326855618, "W-THU": 0.17681316314370377, "W-WED": 0.3400228795320346, "5T": 0.4176757195719526, "10S": 0.32801909847059685}} +- (4, 'exponential'): skill 0.3212088988374776; group skills {"term": {"short": 0.282531844032045, "medium": 0.3501930275891618, "long": 0.386723067036399}, "domain": {"Econ/Fin": 0.15471014663681715, "Energy": 0.22088089450488246, "Healthcare": 0.3714910427574707, "Nature": 0.3450102784118355, "Sales": 0.3968014140531252, "Transport": 0.3619509561390626, "Web/CloudOps": 0.4275124121699033}, "freq": {"A-DEC": 0.30258726538887626, "Q-DEC": 0.21855293965122158, "M": 0.16975398671452624, "W-SUN": -0.007489648663621784, "D": 0.3494275697398366, "H": 0.3534238823299253, "15T": 0.22624199923728783, "W-FRI": 0.24956090397954467, "10T": 0.28154140034619046, "W-TUE": 0.5071080326855618, "W-THU": 0.17681316314370377, "W-WED": 0.3400228795320346, "5T": 0.4176567607348064, "10S": 0.31322950674661665}} + +backcast2 diagnostic, 11.3 CPU seconds total: +- (4, 'mean'): skill 0.3455098962011296; group skills {"term": {"short": 0.3290580626564209, "medium": 0.3700339540817553, "long": 0.36380280474970406}, "domain": {"Econ/Fin": 0.08514981056677962, "Energy": 0.22004402556428637, "Healthcare": 0.34077993948093876, "Nature": 0.45181894051147786, "Sales": 0.5552026876860963, "Transport": 0.4089471064366391, "Web/CloudOps": 0.4235634025112891}, "freq": {"A-DEC": 0.33512027886093443, "Q-DEC": 0.14846418792970395, "M": 0.1666731962215917, "W-SUN": 0.04822698344798482, "D": 0.4221052975732391, "H": 0.37954447462865715, "15T": 0.09066258444282005, "W-FRI": 0.10650868616967224, "10T": 0.4524242293365175, "W-TUE": 0.0831470254212826, "W-THU": 0.26812593887733527, "W-WED": 0.5394413576371667, "5T": 0.45460956828782484, "10S": 0.2830610169711695}} +- (2, 'mean'): skill 0.34268288377692957; group skills {"term": {"short": 0.3260103214844039, "medium": 0.3650713522346687, "long": 0.36394907927583375}, "domain": {"Econ/Fin": 0.10626345560515471, "Energy": 0.21855508043330296, "Healthcare": 0.33494058443346464, "Nature": 0.45181894051147786, "Sales": 0.5552026876860963, "Transport": 0.41262361590216645, "Web/CloudOps": 0.40733619806789245}, "freq": {"A-DEC": 0.33512027886093443, "Q-DEC": 0.14853117890045908, "M": 0.15637649692786237, "W-SUN": 0.05109649829750129, "D": 0.4226979938774772, "H": 0.3810140667041473, "15T": 0.10084524164002151, "W-FRI": 0.10650868616967224, "10T": 0.4522402959584214, "W-TUE": 0.0831470254212826, "W-THU": 0.26812593887733527, "W-WED": 0.5394413576371667, "5T": 0.45675628129488266, "10S": 0.20569731261667445}} +- (1, 'mean'): skill 0.3445039461555758; group skills {"term": {"short": 0.332077466515454, "medium": 0.3668808106296455, "long": 0.3542531601492346}, "domain": {"Econ/Fin": 0.10936035558443968, "Energy": 0.21764038800605967, "Healthcare": 0.3307656098951277, "Nature": 0.45181894051147786, "Sales": 0.5552026876860963, "Transport": 0.41137296882664487, "Web/CloudOps": 0.4178001938815905}, "freq": {"A-DEC": 0.33512027886093443, "Q-DEC": 0.14899214852623166, "M": 0.14771341656467907, "W-SUN": 0.05292218751297184, "D": 0.42303155789223856, "H": 0.3788342098211268, "15T": 0.10485120143271387, "W-FRI": 0.10650868616967224, "10T": 0.45177551404888616, "W-TUE": 0.0831470254212826, "W-THU": 0.26812593887733527, "W-WED": 0.5394413576371667, "5T": 0.4576208051300459, "10S": 0.24855961647506852}} +- (4, 'centered'): skill 0.34598093527842033; group skills {"term": {"short": 0.3300325159298324, "medium": 0.3728154676891604, "long": 0.3603198134443867}, "domain": {"Econ/Fin": 0.10766883532595528, "Energy": 0.21948028584715717, "Healthcare": 0.3411805258187349, "Nature": 0.45181894051147786, "Sales": 0.5552026876860963, "Transport": 0.41219265214646406, "Web/CloudOps": 0.4193348965687418}, "freq": {"A-DEC": 0.33512027886093443, "Q-DEC": 0.14770244416717793, "M": 0.16665926477245963, "W-SUN": 0.05081321100071179, "D": 0.4226895384052014, "H": 0.3801908053318377, "15T": 0.10067740700220107, "W-FRI": 0.10650868616967224, "10T": 0.45281662963561176, "W-TUE": 0.0831470254212826, "W-THU": 0.26812593887733527, "W-WED": 0.5394413576371667, "5T": 0.4517952090885672, "10S": 0.27767832330559383}} +- (4, 'exponential'): skill 0.3469706591030196; group skills {"term": {"short": 0.330791312305022, "medium": 0.3720978115862891, "long": 0.36385111952680094}, "domain": {"Econ/Fin": 0.1001234277395946, "Energy": 0.2202025077634595, "Healthcare": 0.336380045647639, "Nature": 0.45181894051147786, "Sales": 0.5552026876860963, "Transport": 0.41155494383831315, "Web/CloudOps": 0.4258605737282435}, "freq": {"A-DEC": 0.33512027886093443, "Q-DEC": 0.1486686416475177, "M": 0.15834250660686766, "W-SUN": 0.05058427650785369, "D": 0.42264469285933903, "H": 0.38114337578655855, "15T": 0.10061532381315941, "W-FRI": 0.10650868616967224, "10T": 0.4522176935148189, "W-TUE": 0.0831470254212826, "W-THU": 0.26812593887733527, "W-WED": 0.5394413576371667, "5T": 0.45594734272112136, "10S": 0.2839470264038111}} + +Centered four-cycle templates improve primary full validation and the second earlier diagnostic, while slightly reducing the first earlier diagnostic. They replace the joint adapter package: full validation 0.348797 versus adapter 0.348181, with better temporal stability. The joint adapter remains an archived experiment after worsening on both earlier cutoffs. + +## E24 centered seasonal template full validation +- Checkpoint SHA-256: `0ff54447074e0271d2e331c7d3e6e9e0fdd73353e4d8cef0175ff627385f71c3`. +- Evaluation: 97 configurations, 151170 instances, 0 failed configurations; not separately timed seconds. +- Overall skill 0.348797; relative MASE 0.771273; relative WQL 0.549826. +- term skill: long=0.3827, medium=0.3957, short=0.3161. +- domain skill: Econ/Fin=0.1051, Energy=0.1719, Healthcare=0.4042, Nature=0.4059, Sales=0.3592, Transport=0.4561, Web/CloudOps=0.4931. +- frequency skill: A=0.2818, D=0.3368, H=0.3739, M=0.0954, Q=0.1765, S=0.4312, T=0.3905, W=0.1880. +- variates skill: multivariate=0.3783, univariate=0.3243. +- Outcome: Published. Same 36,764,960 learned parameters as E17; fixed seasonal template now preserves four-cycle shape while aligning its mean to the latest cycle. Full validation 0.348797 with zero failures; screen 0.353163; earlier diagnostics 0.321979 and 0.345981. Full inference 79.6 seconds while three training processes shared the one H100. Repeated relocated examples bitwise identical, finite, monotone. + +## E27: quantile width calibration diagnostic +Hypothesis: the changed training objective and sign-averaged forecasts may change interval calibration relative to the early E3 width sweep. Hold current E24 medians fixed and compare global width multipliers 0.75, 1.0 and 1.25, preserving positivity and monotone deciles. No training or new random seed. Evaluate primary full validation and both earlier diagnostics; retain the same multiplier for every instance and horizon if adopted. Record per-configuration decile coverage to distinguish interval calibration from point-forecast errors. + +## E28: stronger seasonal-error scaling in the training loss +Hypothesis: the existing floor 0.25 and maximum weight 4 underweight highly predictable series, whose small seasonal-error denominators make small biases costly in MASE. Change only this loss factor to floor 0.05 and maximum weight 20. The weight is derived from training contexts only; no validation observations enter gradients. Same E17 parent, seed 59, batch 256, sampled windows, 8e-5 learning rate and 24,000-step schedule as E22 control. Assess at 3,000 and 6,000 steps before deciding whether to continue. No architecture or inference changes. All training processes use the same single H100. + +E27 completed: global interval-width calibration is unchanged. The 1.0 multiplier wins on all three cutoffs; 0.75 and 1.25 are rejected. Parent checkpoint SHA-256: 0ff54447074e0271d2e331c7d3e6e9e0fdd73353e4d8cef0175ff627385f71c3. + +full, 21.961196422576904 CPU seconds: +- Width 0.75: skill 0.3452164549545038; group skills {"term": {"short": 0.313465550024141, "medium": 0.3915340298847654, "long": 0.37755696642578507}, "domain": {"Econ/Fin": 0.10580171688867446, "Energy": 0.16637482564763484, "Healthcare": 0.40914268073244664, "Nature": 0.4019524649941506, "Sales": 0.3530144630644825, "Transport": 0.4556672339606386, "Web/CloudOps": 0.4876214368641769}, "freq": {"A-DEC": 0.28725493449470174, "Q-DEC": 0.1801084712445944, "M": 0.11175276948966328, "W-SUN": 0.0323370845377442, "D": 0.3312199981338694, "H": 0.3695069715804825, "15T": 0.18168253390246492, "W-FRI": -0.056487631535321325, "10T": 0.49352637886384465, "W-TUE": 0.5378585205934543, "W-THU": 0.18433827097062172, "W-WED": 0.31349093490925006, "5T": 0.49222999321979144, "10S": 0.42390324244202104}} +- Width 1.0: skill 0.3487966789303172; group skills {"term": {"short": 0.3161336626027256, "medium": 0.3956796502512826, "long": 0.38269594016340247}, "domain": {"Econ/Fin": 0.10510484967413847, "Energy": 0.171919600185363, "Healthcare": 0.4042072222593659, "Nature": 0.40589812140398485, "Sales": 0.3591878025853771, "Transport": 0.4560779320618533, "Web/CloudOps": 0.4931146707071308}, "freq": {"A-DEC": 0.2818339423423022, "Q-DEC": 0.17653014662394806, "M": 0.09542703722254098, "W-SUN": 0.028486795465021086, "D": 0.336759380183841, "H": 0.3739148859162613, "15T": 0.18778774397400844, "W-FRI": -0.055524607369072276, "10T": 0.49458872561912703, "W-TUE": 0.552193186183172, "W-THU": 0.16944597281618878, "W-WED": 0.3192454710115562, "5T": 0.4977061545271937, "10S": 0.431201607928979}} +- Width 1.25: skill 0.34610650213535965; group skills {"term": {"short": 0.31181715347067873, "medium": 0.39425414652966917, "long": 0.3825681229603841}, "domain": {"Econ/Fin": 0.09501414185590251, "Energy": 0.17012785606235192, "Healthcare": 0.3929707629727902, "Nature": 0.4039288459201795, "Sales": 0.3578978997303499, "Transport": 0.4512528387663022, "Web/CloudOps": 0.49362461046923467}, "freq": {"A-DEC": 0.2690929347470029, "Q-DEC": 0.16432266959209074, "M": 0.07072014222773326, "W-SUN": 0.01173769854460438, "D": 0.3347121204957273, "H": 0.37299271990393135, "15T": 0.18526873151735845, "W-FRI": -0.07163417179692866, "10T": 0.49168735086319126, "W-TUE": 0.562370097705067, "W-THU": 0.14458649403408286, "W-WED": 0.32018515385552937, "5T": 0.4992200637780666, "10S": 0.43174911263031324}} + +backcast, 8.311058759689331 CPU seconds: +- Width 0.75: skill 0.31957721298205577; group skills {"term": {"short": 0.2849135227503923, "medium": 0.3430617259135954, "long": 0.3812505435660858}, "domain": {"Econ/Fin": 0.16020201234615272, "Energy": 0.21754177729190793, "Healthcare": 0.3694068614617043, "Nature": 0.3429441402339167, "Sales": 0.39134717268523767, "Transport": 0.36216325202164235, "Web/CloudOps": 0.42635659392097536}, "freq": {"A-DEC": 0.3052930254291859, "Q-DEC": 0.22988988761857532, "M": 0.17459013453754524, "W-SUN": 0.007398260950902569, "D": 0.3450062706602839, "H": 0.3480315684129901, "15T": 0.22233620685464417, "W-FRI": 0.30096387619142784, "10T": 0.27185481492835484, "W-TUE": 0.5329255178801061, "W-THU": 0.18370602390723068, "W-WED": 0.33814381573585706, "5T": 0.40916267988319677, "10S": 0.3313031636056427}} +- Width 1.0: skill 0.3219793532184254; group skills {"term": {"short": 0.28513766744059266, "medium": 0.34881946541549136, "long": 0.3853894132342357}, "domain": {"Econ/Fin": 0.15718749322715975, "Energy": 0.22030577879293345, "Healthcare": 0.3623301744205766, "Nature": 0.34528108990726747, "Sales": 0.39680141405427904, "Transport": 0.36419008193684854, "Web/CloudOps": 0.431209552326686}, "freq": {"A-DEC": 0.30258726544387415, "Q-DEC": 0.2194511972962907, "M": 0.1711489239900802, "W-SUN": -0.005425657920283156, "D": 0.3478712397620801, "H": 0.35385458082566135, "15T": 0.22504062321275653, "W-FRI": 0.24955455634173984, "10T": 0.2817041045341433, "W-TUE": 0.5071080326855618, "W-THU": 0.17681316324492524, "W-WED": 0.3400228795175667, "5T": 0.41767571957575267, "10S": 0.32801909847013033}} +- Width 1.25: skill 0.31790201775956073; group skills {"term": {"short": 0.2784084543186459, "medium": 0.34919365386981416, "long": 0.38309258280714664}, "domain": {"Econ/Fin": 0.14485063305112178, "Energy": 0.2160406174537144, "Healthcare": 0.34843021568184673, "Nature": 0.3414042631923321, "Sales": 0.3949701602051685, "Transport": 0.36064559654919026, "Web/CloudOps": 0.43041506837139865}, "freq": {"A-DEC": 0.289217486212048, "Q-DEC": 0.20086669955100855, "M": 0.15692994437261798, "W-SUN": -0.02840754711998872, "D": 0.34384490006115054, "H": 0.35403896763656184, "15T": 0.21854779190662021, "W-FRI": 0.19508006514698906, "10T": 0.2864956555409153, "W-TUE": 0.4740288982750931, "W-THU": 0.15896541765809558, "W-WED": 0.3390816757566152, "5T": 0.42177642249121394, "10S": 0.3165112734495428}} + +backcast2, 8.009549379348755 CPU seconds: +- Width 0.75: skill 0.34409820450993134; group skills {"term": {"short": 0.3290162458924437, "medium": 0.3688383955368778, "long": 0.3584446274583232}, "domain": {"Econ/Fin": 0.1059670159637679, "Energy": 0.2168683811981844, "Healthcare": 0.3413880194250112, "Nature": 0.45062953387079285, "Sales": 0.5547232267111362, "Transport": 0.4100430663915112, "Web/CloudOps": 0.41729590695067253}, "freq": {"A-DEC": 0.34005157942217423, "Q-DEC": 0.1412869592685284, "M": 0.16881189749680703, "W-SUN": 0.047625092062016594, "D": 0.4231522928214516, "H": 0.37698957063440086, "15T": 0.0904235813541534, "W-FRI": 0.11812283700385673, "10T": 0.44881967454327965, "W-TUE": 0.07442882063540968, "W-THU": 0.2788710322691663, "W-WED": 0.5437864115591705, "5T": 0.444848784038935, "10S": 0.2913075712082248}} +- Width 1.0: skill 0.34598093529199403; group skills {"term": {"short": 0.33003251595401095, "medium": 0.3728154676872124, "long": 0.3603198134466531}, "domain": {"Econ/Fin": 0.10766883533558247, "Energy": 0.2194802858514432, "Healthcare": 0.34118052581938385, "Nature": 0.4518189405691444, "Sales": 0.5552026877071643, "Transport": 0.4121926521487488, "Web/CloudOps": 0.41933489656663536}, "freq": {"A-DEC": 0.33512027884784024, "Q-DEC": 0.14770244414049571, "M": 0.16665926486843274, "W-SUN": 0.05081321100210512, "D": 0.42268953844805357, "H": 0.3801908053296258, "15T": 0.10067740700216166, "W-FRI": 0.10650868616810949, "10T": 0.45281662963431724, "W-TUE": 0.0831470254212826, "W-THU": 0.2681259389949434, "W-WED": 0.5394413576971099, "5T": 0.45179520908580906, "10S": 0.2776783233055614}} +- Width 1.25: skill 0.3413902485820186; group skills {"term": {"short": 0.32419069585401805, "medium": 0.37023913422459476, "long": 0.35685627734091574}, "domain": {"Econ/Fin": 0.09962820431101826, "Energy": 0.21472017584206793, "Healthcare": 0.3337184668053308, "Nature": 0.44788650255350915, "Sales": 0.5519703061689909, "Transport": 0.4091113202517557, "Web/CloudOps": 0.41471225075769447}, "freq": {"A-DEC": 0.3220090566072281, "Q-DEC": 0.14689640454759956, "M": 0.15748943073554222, "W-SUN": 0.043428818988100804, "D": 0.4159786673838306, "H": 0.3773278172245832, "15T": 0.1020767647441726, "W-FRI": 0.08603022609757915, "10T": 0.45227993224331775, "W-TUE": 0.07815927778447074, "W-THU": 0.25035502046342106, "W-WED": 0.53163473233605, "5T": 0.4537783408350755, "10S": 0.2545513618912605}} + +Decile coverage uses <=, so ties at zero contribute excess lower-tail coverage on intermittent nonnegative series. Coverage alone is not evidence for changing intervals; the proper quantile loss favors the existing widths. + +## E22 control 3000-step checkpoint +- Checkpoint SHA-256: `8fcb7dd923c415a0a93261be09f4b29a73674bc6188f33afb50130d615643715`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 16.52501678466797 seconds. +- Overall skill 0.350784; relative MASE 0.771331; relative WQL 0.546434. +- term skill: long=0.3855, medium=0.3992, short=0.3171. +- domain skill: Econ/Fin=0.1025, Energy=0.1770, Healthcare=0.3901, Nature=0.4076, Sales=0.3484, Transport=0.4531, Web/CloudOps=0.5016. +- frequency skill: A=0.3699, D=0.3270, H=0.3752, M=0.0777, Q=0.1894, S=0.4382, T=0.3953, W=0.1970. +- variates skill: multivariate=0.3839, univariate=0.3232. +- Outcome: Matched continuation control; primary screen 0.350784. Continuing training. + +## E22 control 6000-step checkpoint +- Checkpoint SHA-256: `ae199bb31299e77f3035e227d61bf9b41fa84ae4eb9825f4d5d2bc7aef813934`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 15.943427324295044 seconds. +- Overall skill 0.352399; relative MASE 0.769997; relative WQL 0.544661. +- term skill: long=0.3861, medium=0.4001, short=0.3195. +- domain skill: Econ/Fin=0.1064, Energy=0.1818, Healthcare=0.3888, Nature=0.4095, Sales=0.3482, Transport=0.4533, Web/CloudOps=0.5013. +- frequency skill: A=0.3691, D=0.3297, H=0.3767, M=0.0899, Q=0.1951, S=0.4372, T=0.3967, W=0.1945. +- variates skill: multivariate=0.3861, univariate=0.3242. +- Outcome: Screen 0.352399; 869.5 elapsed training-process seconds through this checkpoint on shared single H100. Continuing training. + +## E22 expanded depth 3000-step checkpoint +- Checkpoint SHA-256: `606808eaa8f41a4d8ffd7a336639c197cdb656b462d7b74cda0425a9c7b7ab88`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 23.74061632156372 seconds. +- Overall skill 0.349903; relative MASE 0.771470; relative WQL 0.547820. +- term skill: long=0.3846, medium=0.3995, short=0.3157. +- domain skill: Econ/Fin=0.1036, Energy=0.1753, Healthcare=0.3821, Nature=0.4103, Sales=0.3478, Transport=0.4524, Web/CloudOps=0.5003. +- frequency skill: A=0.3697, D=0.3271, H=0.3737, M=0.0851, Q=0.1912, S=0.4378, T=0.3939, W=0.1942. +- variates skill: multivariate=0.3823, univariate=0.3229. +- Outcome: Screen 0.349903 versus matched control 0.350784. 768.0 elapsed training-process seconds. Continuing to assess a longer run. + +## E25 learned recency 3000-step checkpoint +- Checkpoint SHA-256: `ff6465dac03192cfc5f8837d8c6ab9524b0fb81c1a73867ff6e08aaf83a53398`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 18.54782772064209 seconds. +- Overall skill 0.351702; relative MASE 0.770454; relative WQL 0.545509. +- term skill: long=0.3852, medium=0.3988, short=0.3191. +- domain skill: Econ/Fin=0.1014, Energy=0.1767, Healthcare=0.4078, Nature=0.4093, Sales=0.3476, Transport=0.4541, Web/CloudOps=0.5002. +- frequency skill: A=0.3707, D=0.3341, H=0.3745, M=0.0812, Q=0.1898, S=0.4360, T=0.3954, W=0.1980. +- variates skill: multivariate=0.3834, univariate=0.3253. +- Outcome: Screen 0.351702 versus matched control 0.350784. 510.3 elapsed training-process seconds. This is a modest early improvement; further checkpoints and temporal diagnostics remain. + +## E22 control 6000 with centered seasonal template, full validation +- Checkpoint SHA-256: `ae199bb31299e77f3035e227d61bf9b41fa84ae4eb9825f4d5d2bc7aef813934`. +- Evaluation: 97 configurations, 151170 instances, 0 failed configurations; not separately timed seconds. +- Overall skill 0.349953; relative MASE 0.770650; relative WQL 0.548317. +- term skill: long=0.3842, medium=0.3966, short=0.3172. +- domain skill: Econ/Fin=0.1065, Energy=0.1770, Healthcare=0.3987, Nature=0.4093, Sales=0.3570, Transport=0.4567, Web/CloudOps=0.4912. +- frequency skill: A=0.2855, D=0.3349, H=0.3766, M=0.1068, Q=0.1785, S=0.4296, T=0.3905, W=0.1906. +- variates skill: multivariate=0.3802, univariate=0.3248. +- Outcome: Published: full validation 0.349953 versus previous 0.348797, with zero failures. Earlier diagnostics improve to 0.322147 and 0.348634 from 0.321979 and 0.345981. Full inference took 98.8 seconds while four training processes shared the one H100. Repeated relocated example checks passed. Training continues beyond this milestone. + +## E22 control 6000 centered, earlier diagnostic +- Checkpoint SHA-256: `ae199bb31299e77f3035e227d61bf9b41fa84ae4eb9825f4d5d2bc7aef813934`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 21.958669662475586 seconds. +- Overall skill 0.322147; relative MASE 0.812166; relative WQL 0.565752. +- term skill: long=0.3872, medium=0.3503, short=0.2840. +- domain skill: Econ/Fin=0.1531, Energy=0.2205, Healthcare=0.3579, Nature=0.3475, Sales=0.3966, Transport=0.3647, Web/CloudOps=0.4317. +- frequency skill: A=0.3153, D=0.3426, H=0.3545, M=0.1663, Q=0.2129, S=0.3286, T=0.3204, W=0.2542. +- variates skill: multivariate=0.3358, univariate=0.3111. +- Outcome: Small improvement over the preceding package. + +## E22 control 6000 centered, second earlier diagnostic +- Checkpoint SHA-256: `ae199bb31299e77f3035e227d61bf9b41fa84ae4eb9825f4d5d2bc7aef813934`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 21.61665678024292 seconds. +- Overall skill 0.348634; relative MASE 0.779607; relative WQL 0.544220. +- term skill: long=0.3637, medium=0.3753, short=0.3325. +- domain skill: Econ/Fin=0.1024, Energy=0.2199, Healthcare=0.3508, Nature=0.4590, Sales=0.5576, Transport=0.4153, Web/CloudOps=0.4205. +- frequency skill: A=0.3380, D=0.4233, H=0.3833, M=0.1690, Q=0.1387, S=0.2800, T=0.3398, W=0.2426. +- variates skill: multivariate=0.3512, univariate=0.3465. +- Outcome: Improvement over the preceding package. + +## E29: coarse memory of older context (prepared) +Hypothesis: a separately trained memory can extract useful information from points 4,097–16,384 without changing the frozen backbone’s treatment of its recent 4,096 points. Older observations are normalized using the recent window and averaged in groups of four, then encoded by two extra blocks. A zero-output cross-attention projection adds this memory to recent encoder states. Initial function is preserved; recent seasonal and continuity rules remain unchanged. The added embedding and two encoder blocks start from copies of our own trained weights, and the cross-attention output starts at zero. No external weights. Total 44,401,952 parameters; 7,636,992 trainable. Eight-step batch-16 smoke run on allowed packed_sample with seed 67 produced finite weights and updated only the history module. Full training has not started. + +## E30: seasonal amplitude alignment +Hypothesis: four-cycle shape averaging also lags changes in seasonal amplitude. Starting from E24 centered templates, scale their deviations around the mean to the latest cycle standard deviation, correcting both variance estimates for observation noise inferred from seasonal differences. Scale ratio is clipped to [0.5,2], and amplitude alignment requires at least 75% finite observations in the latest cycle. All thresholds, intervals, learned weights and confidence gates remain fixed. Compare centered versus aligned templates on three diagnostic cutoffs using cached E17 raw forecasts; no training or new random seed. + +E30 initial amplitude-alignment results, parent checkpoint SHA-256 0ff54447074e0271d2e331c7d3e6e9e0fdd73353e4d8cef0175ff627385f71c3: + +screen, 7.7 CPU seconds total: +- (4, 'centered'): skill 0.3531633226160329; group skills {"term": {"short": 0.3207293873053654, "medium": 0.3969450585806461, "long": 0.38964518179731034}, "domain": {"Econ/Fin": 0.12636396756466373, "Energy": 0.1800705780909143, "Healthcare": 0.3992839589819721, "Nature": 0.40602447440489264, "Sales": 0.34961552641405835, "Transport": 0.45585497734478375, "Web/CloudOps": 0.5005422814848317}, "freq": {"A-DEC": 0.3672744916070976, "Q-DEC": 0.19175192579993316, "M": 0.07909511983098594, "W-SUN": 0.042408325150654624, "D": 0.33302767036606196, "H": 0.37896395394765425, "15T": 0.19862358212653608, "W-FRI": -0.03667482636982777, "10T": 0.49458872561779677, "W-TUE": 0.552193186183172, "W-THU": 0.16944597286444163, "W-WED": 0.3192454708946336, "5T": 0.5067600572208003, "10S": 0.43120160792893125}} +- (4, 'aligned'): skill 0.35398462796791796; group skills {"term": {"short": 0.3217411363550048, "medium": 0.39832598201137914, "long": 0.3894451118078128}, "domain": {"Econ/Fin": 0.128986533479437, "Energy": 0.1846259909517678, "Healthcare": 0.3989632452392111, "Nature": 0.40602447440489264, "Sales": 0.34961552641405835, "Transport": 0.45834957050423264, "Web/CloudOps": 0.4970505147956361}, "freq": {"A-DEC": 0.3672744916070976, "Q-DEC": 0.1913923357266032, "M": 0.07925704481777684, "W-SUN": 0.04248196090218248, "D": 0.332866037279251, "H": 0.38330094783509405, "15T": 0.20143473054459382, "W-FRI": -0.036466297970424444, "10T": 0.49454418004359824, "W-TUE": 0.552193186183172, "W-THU": 0.16944597286444163, "W-WED": 0.3192454708946336, "5T": 0.506404214769247, "10S": 0.4192979394083295}} + +backcast, 8.3 CPU seconds total: +- (4, 'centered'): skill 0.3219793532222529; group skills {"term": {"short": 0.28513766744425706, "medium": 0.34881946541915476, "long": 0.3853894132385529}, "domain": {"Econ/Fin": 0.15718749322076342, "Energy": 0.220305778786681, "Healthcare": 0.3623301744180454, "Nature": 0.34528108993797224, "Sales": 0.3968014140531252, "Transport": 0.3641900819387449, "Web/CloudOps": 0.4312095523303556}, "freq": {"A-DEC": 0.30258726538887626, "Q-DEC": 0.21945119732749618, "M": 0.17114892410654747, "W-SUN": -0.005425657907346837, "D": 0.3478712397506638, "H": 0.3538545808265424, "15T": 0.22504062323947938, "W-FRI": 0.24955455634324242, "10T": 0.28170410454547445, "W-TUE": 0.5071080326855618, "W-THU": 0.17681316314370377, "W-WED": 0.3400228795320346, "5T": 0.4176757195719526, "10S": 0.32801909847059685}} +- (4, 'aligned'): skill 0.32199923078598136; group skills {"term": {"short": 0.2839405542344856, "medium": 0.34882959423473925, "long": 0.38815021409803896}, "domain": {"Econ/Fin": 0.15740802100053652, "Energy": 0.21807242823144724, "Healthcare": 0.36213507616373974, "Nature": 0.3461350653810715, "Sales": 0.3968014140531252, "Transport": 0.3649195243648111, "Web/CloudOps": 0.4328434979914423}, "freq": {"A-DEC": 0.30258726538887626, "Q-DEC": 0.2183391142623865, "M": 0.1754893176389558, "W-SUN": -0.004377726385369485, "D": 0.3466775300728464, "H": 0.3524837610290207, "15T": 0.2254592175464284, "W-FRI": 0.24954835437149747, "10T": 0.2817431568124176, "W-TUE": 0.5071080326855618, "W-THU": 0.17681316314370377, "W-WED": 0.3400228795320346, "5T": 0.41754999889925704, "10S": 0.3353593007357636}} + +backcast2, 9.4 CPU seconds total: +- (4, 'centered'): skill 0.34598093527842033; group skills {"term": {"short": 0.3300325159298324, "medium": 0.3728154676891604, "long": 0.3603198134443867}, "domain": {"Econ/Fin": 0.10766883532595528, "Energy": 0.21948028584715717, "Healthcare": 0.3411805258187349, "Nature": 0.45181894051147786, "Sales": 0.5552026876860963, "Transport": 0.41219265214646406, "Web/CloudOps": 0.4193348965687418}, "freq": {"A-DEC": 0.33512027886093443, "Q-DEC": 0.14770244416717793, "M": 0.16665926477245963, "W-SUN": 0.05081321100071179, "D": 0.4226895384052014, "H": 0.3801908053318377, "15T": 0.10067740700220107, "W-FRI": 0.10650868616967224, "10T": 0.45281662963561176, "W-TUE": 0.0831470254212826, "W-THU": 0.26812593887733527, "W-WED": 0.5394413576371667, "5T": 0.4517952090885672, "10S": 0.27767832330559383}} +- (4, 'aligned'): skill 0.3467340001955017; group skills {"term": {"short": 0.3300823793890595, "medium": 0.3753689052243039, "long": 0.36094597324048516}, "domain": {"Econ/Fin": 0.10766542601267182, "Energy": 0.22063331078456605, "Healthcare": 0.33410091914860696, "Nature": 0.45181894051147786, "Sales": 0.5552026876860963, "Transport": 0.4141243473009397, "Web/CloudOps": 0.42142071217676347}, "freq": {"A-DEC": 0.33512027886093443, "Q-DEC": 0.14888883016351762, "M": 0.15492673811864788, "W-SUN": 0.05041601533475526, "D": 0.4227650502464607, "H": 0.38160118363487416, "15T": 0.10559542335780892, "W-FRI": 0.10650868616967224, "10T": 0.4528840561650268, "W-TUE": 0.0831470254212826, "W-THU": 0.26812593887733527, "W-WED": 0.5394413576371667, "5T": 0.45189525302575095, "10S": 0.2812440461970862}} + +The new rule improves all three aggregate diagnostics on the E17 weights. A complete package evaluation with the newer E22 control weights is in progress before adoption. + +E29 zero-initialization verification: all 97 screen configurations exactly reproduce the E17 centered runtime skill 0.3531633226160329. Evaluation 21.35 seconds on the shared H100. The eight-step smoke changed the history output projection by 1.4182e-5 maximum while all frozen backbone weights remained bitwise equal and all weights finite. + +## E25 learned recency 6000-step checkpoint +- Checkpoint SHA-256: `dbbc4ff247028db1f339846b58c16c74d41a4a7b87e6a834988d95ee04c16734`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 19.591322422027588 seconds. +- Overall skill 0.352851; relative MASE 0.769426; relative WQL 0.544305. +- term skill: long=0.3876, medium=0.3997, short=0.3198. +- domain skill: Econ/Fin=0.1086, Energy=0.1828, Healthcare=0.3943, Nature=0.4120, Sales=0.3475, Transport=0.4545, Web/CloudOps=0.4982. +- frequency skill: A=0.3715, D=0.3323, H=0.3775, M=0.0905, Q=0.1942, S=0.4343, T=0.3965, W=0.1950. +- variates skill: multivariate=0.3855, univariate=0.3256. +- Outcome: Screen 0.352851 versus matched control 0.352399; modest improvement persists. Temporal diagnostics and later checkpoints remain. + +## E30 amplitude aligned template, full validation +- Checkpoint SHA-256: `ae199bb31299e77f3035e227d61bf9b41fa84ae4eb9825f4d5d2bc7aef813934`. +- Evaluation: 97 configurations, 151170 instances, 0 failed configurations; not separately timed seconds. +- Overall skill 0.350837; relative MASE 0.770162; relative WQL 0.547174. +- term skill: long=0.3846, medium=0.3975, short=0.3183. +- domain skill: Econ/Fin=0.1090, Energy=0.1818, Healthcare=0.3984, Nature=0.4093, Sales=0.3570, Transport=0.4592, Web/CloudOps=0.4877. +- frequency skill: A=0.2855, D=0.3348, H=0.3812, M=0.1070, Q=0.1786, S=0.4173, T=0.3911, W=0.1906. +- variates skill: multivariate=0.3791, univariate=0.3274. +- Outcome: Published. With the E22 control 6000-step weights, full validation improves 0.349953 to 0.350837, first earlier diagnostic 0.322147 to 0.322219, and second earlier diagnostic 0.348634 to 0.349310. No failures; deterministic relocated example checks passed. Full inference 96.8 seconds while sharing the one H100 with four training processes. All template changes are fixed formulas; learned parameters remain unchanged. + +## E30 aligned template first earlier diagnostic +- Checkpoint SHA-256: `ae199bb31299e77f3035e227d61bf9b41fa84ae4eb9825f4d5d2bc7aef813934`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 20.561070680618286 seconds. +- Overall skill 0.322219; relative MASE 0.811128; relative WQL 0.566355. +- term skill: long=0.3898, medium=0.3504, short=0.2830. +- domain skill: Econ/Fin=0.1533, Energy=0.2182, Healthcare=0.3588, Nature=0.3483, Sales=0.3966, Transport=0.3655, Web/CloudOps=0.4333. +- frequency skill: A=0.3153, D=0.3418, H=0.3532, M=0.1706, Q=0.2117, S=0.3358, T=0.3205, W=0.2543. +- variates skill: multivariate=0.3369, univariate=0.3103. +- Outcome: Small improvement over centered templates. + +## E30 aligned template second earlier diagnostic +- Checkpoint SHA-256: `ae199bb31299e77f3035e227d61bf9b41fa84ae4eb9825f4d5d2bc7aef813934`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 20.08868408203125 seconds. +- Overall skill 0.349310; relative MASE 0.778190; relative WQL 0.544080. +- term skill: long=0.3643, medium=0.3777, short=0.3325. +- domain skill: Econ/Fin=0.1024, Energy=0.2210, Healthcare=0.3434, Nature=0.4590, Sales=0.5576, Transport=0.4172, Web/CloudOps=0.4224. +- frequency skill: A=0.3380, D=0.4234, H=0.3847, M=0.1568, Q=0.1399, S=0.2828, T=0.3413, W=0.2426. +- variates skill: multivariate=0.3522, univariate=0.3470. +- Outcome: Improvement over centered templates. + +## E28 stronger seasonal loss 3000-step checkpoint +- Checkpoint SHA-256: `a514371332282d8ff1cf42e0c2127683e6bb95bfb98c1a6df6332c604d72c865`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 20.41924524307251 seconds. +- Overall skill 0.350569; relative MASE 0.771378; relative WQL 0.546763. +- term skill: long=0.3829, medium=0.3988, short=0.3180. +- domain skill: Econ/Fin=0.1028, Energy=0.1748, Healthcare=0.4041, Nature=0.4086, Sales=0.3488, Transport=0.4526, Web/CloudOps=0.4996. +- frequency skill: A=0.3725, D=0.3288, H=0.3734, M=0.0932, Q=0.1901, S=0.4387, T=0.3933, W=0.1988. +- variates skill: multivariate=0.3818, univariate=0.3246. +- Outcome: Screen 0.350569 versus matched control 0.350784. No gain at this checkpoint; continue to 6000 steps before deciding. + +E29 full trial started from the E22 control 6000-step backbone, seed 67, batch 64, 6,000 steps, learning rate 2e-4 with 200-step warmup and cosine decay. Only the 7.64M history-memory parameters train. Batch size is reduced to fit concurrent experiments on the one H100. Context lengths 8,192/16,384 with probabilities 0.4/0.6; horizon mixture remains 32/128/512/1024. Inference uses the current amplitude-aligned seasonal rule on the recent 4,096 points, so the additional history affects only the learned memory. The parent differs from the newly published E25 branch; zero-step evaluation supplies the exact matched control. + +## E25 learned recency 6000 with aligned templates, full validation +- Checkpoint SHA-256: `dbbc4ff247028db1f339846b58c16c74d41a4a7b87e6a834988d95ee04c16734`. +- Evaluation: 97 configurations, 151170 instances, 0 failed configurations; not separately timed seconds. +- Overall skill 0.351407; relative MASE 0.769733; relative WQL 0.546517. +- term skill: long=0.3860, medium=0.3973, short=0.3189. +- domain skill: Econ/Fin=0.1113, Energy=0.1828, Healthcare=0.4050, Nature=0.4118, Sales=0.3571, Transport=0.4604, Web/CloudOps=0.4845. +- frequency skill: A=0.2870, D=0.3384, H=0.3819, M=0.1083, Q=0.1800, S=0.4144, T=0.3909, W=0.1904. +- variates skill: multivariate=0.3786, univariate=0.3289. +- Outcome: Published. Full validation 0.351407 versus preceding 0.350837; earlier diagnostics 0.323269 and 0.350071 versus 0.322219 and 0.349310. No failures; repeated relocated examples are bitwise identical, finite and monotone. Total 36,797,728 parameters. Full inference 96.7 seconds while the one H100 was shared with training. Training continues. + +## E25 recency 6000 aligned first earlier diagnostic +- Checkpoint SHA-256: `dbbc4ff247028db1f339846b58c16c74d41a4a7b87e6a834988d95ee04c16734`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 20.321524143218994 seconds. +- Overall skill 0.323269; relative MASE 0.809492; relative WQL 0.565744. +- term skill: long=0.3896, medium=0.3509, short=0.2848. +- domain skill: Econ/Fin=0.1588, Energy=0.2200, Healthcare=0.3660, Nature=0.3488, Sales=0.3987, Transport=0.3659, Web/CloudOps=0.4318. +- frequency skill: A=0.3196, D=0.3433, H=0.3536, M=0.1780, Q=0.2165, S=0.3305, T=0.3218, W=0.2570. +- variates skill: multivariate=0.3369, univariate=0.3122. +- Outcome: Improves the matched continued model with the same aligned-template runtime. + +## E25 recency 6000 aligned second earlier diagnostic +- Checkpoint SHA-256: `dbbc4ff247028db1f339846b58c16c74d41a4a7b87e6a834988d95ee04c16734`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 20.002116203308105 seconds. +- Overall skill 0.350071; relative MASE 0.777410; relative WQL 0.543353. +- term skill: long=0.3631, medium=0.3788, short=0.3338. +- domain skill: Econ/Fin=0.1067, Energy=0.2234, Healthcare=0.3529, Nature=0.4590, Sales=0.5596, Transport=0.4165, Web/CloudOps=0.4198. +- frequency skill: A=0.3409, D=0.4269, H=0.3856, M=0.1584, Q=0.1427, S=0.2730, T=0.3428, W=0.2398. +- variates skill: multivariate=0.3525, univariate=0.3481. +- Outcome: Improves the matched continued model with the same aligned-template runtime. + +E22 depth trial pruned after two matched comparisons: 3000-step skill 0.349903 versus control 0.350784, and 6000-step skill 0.351873 versus control 0.352399. The 6000-step checkpoint cost 1961.8 elapsed training-process seconds, versus 869.5 for the control under different shared-GPU contention. The planned 24,000 steps were not completed. This establishes no benefit at the tested budgets, not that greater depth can never help. Saved checkpoints remain available. Stop receipt: [{"pid": 4519, "kind": "training", "elapsed_seconds": 2108}, {"pid": 4914, "kind": "watcher", "elapsed_seconds": 1723}]. + +## E22 expanded depth 6000-step checkpoint +- Checkpoint SHA-256: `a1efd06cff13f7f47559d83d37ea63f6bc65692df49fd2bfe039502d33978632`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 29.713934898376465 seconds. +- Overall skill 0.351873; relative MASE 0.770476; relative WQL 0.545206. +- term skill: long=0.3864, medium=0.4005, short=0.3182. +- domain skill: Econ/Fin=0.1070, Energy=0.1815, Healthcare=0.3779, Nature=0.4133, Sales=0.3487, Transport=0.4524, Web/CloudOps=0.4999. +- frequency skill: A=0.3690, D=0.3292, H=0.3764, M=0.0873, Q=0.1951, S=0.4370, T=0.3963, W=0.1928. +- variates skill: multivariate=0.3859, univariate=0.3234. +- Outcome: Below the matched 36.8M control for the second comparison. Stop this trial and retain its checkpoints; prioritize the smaller learned-feature and history-memory experiments on one H100. + +## E31: stochastic seasonal amplitude in synthetic pretraining (prepared) +Hypothesis: the original generator has constant Fourier amplitudes, whereas the added recency features describe changing amplitudes. Modulate the seasonal component in half of synthetic draws by a positive AR log-amplitude with time constant 100–10,000, stationary log standard deviation 0.05–0.4 and log-value clipping [-2,2]. The modulation is applied before trends, observation noise, missing values and intermittence. A separate RNG seed = main seed + 100003 preserves all source selection, corpus windows, horizon/context choices and original generator random draws relative to E25. Planned seed 59 and E17 initialization allow comparison with existing E25 checkpoints without retraining a control. No training started yet. + +## E29 history memory 1000-step checkpoint +- Checkpoint SHA-256: `a3bdc3a7525ed869d48fc1ce2b54785bb82aa64573e3b3d8a0de98df10680af3`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 23.969539165496826 seconds. +- Overall skill 0.355846; relative MASE 0.766420; relative WQL 0.541393. +- term skill: long=0.3920, medium=0.3994, short=0.3237. +- domain skill: Econ/Fin=0.1304, Energy=0.1908, Healthcare=0.3939, Nature=0.4095, Sales=0.3479, Transport=0.4592, Web/CloudOps=0.4963. +- frequency skill: A=0.3691, D=0.3317, H=0.3867, M=0.0892, Q=0.1952, S=0.4178, T=0.4001, W=0.1953. +- variates skill: multivariate=0.3846, univariate=0.3320. +- Outcome: Improves the matched zero-step screen score 0.354979. Elapsed training-process time 104.3 seconds on the shared single H100. Temporal diagnostics determine whether the gain transfers across cutoffs. + +## E29 history memory 3000-step checkpoint +- Checkpoint SHA-256: `81b1e8dfae60e87a20a2f0ff6d3464a608c8b86624cfc3383ca29441e9f1fd92`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 20.785941123962402 seconds. +- Overall skill 0.356376; relative MASE 0.765914; relative WQL 0.540860. +- term skill: long=0.3932, medium=0.3995, short=0.3240. +- domain skill: Econ/Fin=0.1306, Energy=0.1923, Healthcare=0.3934, Nature=0.4102, Sales=0.3479, Transport=0.4591, Web/CloudOps=0.4965. +- frequency skill: A=0.3691, D=0.3318, H=0.3878, M=0.0892, Q=0.1952, S=0.4179, T=0.4005, W=0.1953. +- variates skill: multivariate=0.3854, univariate=0.3323. +- Outcome: Improves the matched zero-step screen score 0.354979. Elapsed training-process time 283.3 seconds on the shared single H100. Temporal diagnostics determine whether the gain transfers across cutoffs. + +E31 training started: seed 59, batch 256, 24,000-step schedule, learning rate 8e-5, E17 initialization, same query-feature architecture as E25. Tests verified that all corpus-only rows are identical to E25 and that the main RNG states remain identical after both corpus-only and synthetic-only batches; 11 of 32 synthetic test rows changed. The independent modulation stream is seed 100062. Evaluate at 3000/6000 steps before extending this trial. + +## E22 control 12000 with aligned templates, full validation +- Checkpoint SHA-256: `69e01d3fbc013287a1e63346e7cefbbe82acfb98f7d446459d52c931515bd8a8`. +- Evaluation: 97 configurations, 151170 instances, 0 failed configurations; not separately timed seconds. +- Overall skill 0.355096; relative MASE 0.766848; relative WQL 0.542351. +- term skill: long=0.3891, medium=0.3999, short=0.3233. +- domain skill: Econ/Fin=0.1147, Energy=0.1853, Healthcare=0.3958, Nature=0.4163, Sales=0.3582, Transport=0.4612, Web/CloudOps=0.4938. +- frequency skill: A=0.2887, D=0.3392, H=0.3848, M=0.1131, Q=0.1870, S=0.4202, T=0.3967, W=0.1906. +- variates skill: multivariate=0.3845, univariate=0.3307. +- Outcome: Published. Full validation 0.355096 versus preceding E25-6000 package 0.351407, first earlier diagnostic 0.325963 versus 0.323269, and second earlier diagnostic 0.352462 versus 0.350071. No failures; repeated relocated examples are bitwise identical, finite and monotone. Full inference 98.8 seconds under shared H100 contention. The matched E25-12000 checkpoint is still training. + +## E22 control12000 aligned first earlier diagnostic +- Checkpoint SHA-256: `69e01d3fbc013287a1e63346e7cefbbe82acfb98f7d446459d52c931515bd8a8`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 22.49058723449707 seconds. +- Overall skill 0.325963; relative MASE 0.809373; relative WQL 0.561330. +- term skill: long=0.3895, medium=0.3521, short=0.2893. +- domain skill: Econ/Fin=0.1619, Energy=0.2209, Healthcare=0.3713, Nature=0.3541, Sales=0.3962, Transport=0.3666, Web/CloudOps=0.4365. +- frequency skill: A=0.3123, D=0.3490, H=0.3551, M=0.1691, Q=0.2293, S=0.3380, T=0.3258, W=0.2557. +- variates skill: multivariate=0.3406, univariate=0.3141. +- Outcome: Improves the preceding package. + +## E22 control12000 aligned second earlier diagnostic +- Checkpoint SHA-256: `69e01d3fbc013287a1e63346e7cefbbe82acfb98f7d446459d52c931515bd8a8`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 21.788399934768677 seconds. +- Overall skill 0.352462; relative MASE 0.775936; relative WQL 0.540386. +- term skill: long=0.3649, medium=0.3793, short=0.3372. +- domain skill: Econ/Fin=0.1068, Energy=0.2227, Healthcare=0.3661, Nature=0.4623, Sales=0.5608, Transport=0.4167, Web/CloudOps=0.4248. +- frequency skill: A=0.3383, D=0.4276, H=0.3860, M=0.1616, Q=0.1520, S=0.2793, T=0.3458, W=0.2493. +- variates skill: multivariate=0.3545, univariate=0.3508. +- Outcome: Improves the preceding package. + +## E32: transfer the learned history memory to the improved backbone +Hypothesis: the frozen history memory learns useful features that remain compatible with a later continuation of the same backbone architecture. Combine E29 history-memory tensors at 6000 steps with every backbone tensor from E22 control at 12000 steps. This is a deterministic combination of our own trained assets, with no new training and no external weights. Both parent checkpoint hashes and full training lineages are retained. The publication utility now traverses both parent branches and declares all their sources and generator seeds. Compare to the E22-12000 aligned-template runtime across three cutoffs before adoption. + +## E29 history memory 6000-step screen +- Checkpoint SHA-256: `5c3b98e648e31f0d2aa61a150700be8147ba2638c975510fc15bdb311531cf43`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 43.3264684677124 seconds. +- Overall skill 0.357127; relative MASE 0.765099; relative WQL 0.540174. +- term skill: long=0.3941, medium=0.3993, short=0.3251. +- domain skill: Econ/Fin=0.1303, Energy=0.1925, Healthcare=0.3999, Nature=0.4104, Sales=0.3479, Transport=0.4597, Web/CloudOps=0.4973. +- frequency skill: A=0.3691, D=0.3342, H=0.3893, M=0.0892, Q=0.1952, S=0.4179, T=0.4002, W=0.1953. +- variates skill: multivariate=0.3861, univariate=0.3331. +- Outcome: Screen 0.357127 versus zero-step 0.354979. Training completed in 531.4 process seconds on the shared single H100. First earlier diagnostic regresses while the second improves; do not publish standalone without broader evidence. + +## E29 history memory first earlier diagnostic +- Checkpoint SHA-256: `5c3b98e648e31f0d2aa61a150700be8147ba2638c975510fc15bdb311531cf43`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 22.55209970474243 seconds. +- Overall skill 0.321189; relative MASE 0.812469; relative WQL 0.567141. +- term skill: long=0.3883, medium=0.3470, short=0.2831. +- domain skill: Econ/Fin=0.1541, Energy=0.2165, Healthcare=0.3555, Nature=0.3461, Sales=0.3966, Transport=0.3649, Web/CloudOps=0.4336. +- frequency skill: A=0.3153, D=0.3408, H=0.3550, M=0.1706, Q=0.2117, S=0.3336, T=0.3162, W=0.2543. +- variates skill: multivariate=0.3353, univariate=0.3098. +- Outcome: Regresses from the matched parent 0.322219 to 0.321189. + +## E29 history memory second earlier diagnostic +- Checkpoint SHA-256: `5c3b98e648e31f0d2aa61a150700be8147ba2638c975510fc15bdb311531cf43`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 22.82407259941101 seconds. +- Overall skill 0.350315; relative MASE 0.776760; relative WQL 0.543398. +- term skill: long=0.3664, medium=0.3780, short=0.3334. +- domain skill: Econ/Fin=0.1037, Energy=0.2222, Healthcare=0.3446, Nature=0.4601, Sales=0.5576, Transport=0.4171, Web/CloudOps=0.4239. +- frequency skill: A=0.3380, D=0.4241, H=0.3857, M=0.1568, Q=0.1399, S=0.2820, T=0.3431, W=0.2426. +- variates skill: multivariate=0.3544, univariate=0.3470. +- Outcome: Improves from the matched parent 0.349310 to 0.350315. + +## E28 stronger seasonal loss 6000-step checkpoint +- Checkpoint SHA-256: `6208c74c3a6902d0410708741fd3ee609649e28732e5d5ee2696169685768e9b`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 19.053489208221436 seconds. +- Overall skill 0.352533; relative MASE 0.769384; relative WQL 0.544869. +- term skill: long=0.3857, medium=0.3986, short=0.3205. +- domain skill: Econ/Fin=0.1093, Energy=0.1807, Healthcare=0.4083, Nature=0.4098, Sales=0.3497, Transport=0.4525, Web/CloudOps=0.4985. +- frequency skill: A=0.3742, D=0.3386, H=0.3743, M=0.0874, Q=0.1946, S=0.4388, T=0.3951, W=0.1953. +- variates skill: multivariate=0.3844, univariate=0.3260. +- Outcome: Screen 0.352533 versus matched control 0.352399; first earlier diagnostic 0.322419 versus control 0.322598. Differences are small and inconsistent; continue to the 12000-step comparison. Training time through 6000: 1375.1 process seconds. + +## E22 pruned depth model earlier diagnostic +- Checkpoint SHA-256: `a1efd06cff13f7f47559d83d37ea63f6bc65692df49fd2bfe039502d33978632`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 29.58867907524109 seconds. +- Overall skill 0.322537; relative MASE 0.811436; relative WQL 0.565609. +- term skill: long=0.3876, medium=0.3519, short=0.2839. +- domain skill: Econ/Fin=0.1430, Energy=0.2205, Healthcare=0.3835, Nature=0.3473, Sales=0.3985, Transport=0.3592, Web/CloudOps=0.4331. +- frequency skill: A=0.3156, D=0.3515, H=0.3521, M=0.1655, Q=0.2142, S=0.3417, T=0.3184, W=0.2490. +- variates skill: multivariate=0.3364, univariate=0.3113. +- Outcome: Score 0.322537 versus matched control 0.322598, confirming no useful advantage in the tested budgets. + +## E33: global quantile ensemble of the newer backbone and transferred memory +Hypothesis: averaging the unmodified E22-12000 forecasts with E32 reduces the history memory’s temporal instability. Compare fixed backbone weights 0.25/0.5/0.75, with the complementary weight on the memory model, across all three diagnostics. Both members must forecast every instance in any deployed package. This is a cached-output diagnostic first, with no training or per-dataset choice. Actual package inference and full validation remain required before publication. + +## E32 transferred history memory screen +- Checkpoint SHA-256: `c5a6d1fa7f637f2fa36f9176d66f39a71f8f3c8c84fef8098ec03a88a59f68e7`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 24.279379844665527 seconds. +- Overall skill 0.361285; relative MASE 0.762270; relative WQL 0.535186. +- term skill: long=0.3979, medium=0.4009, short=0.3306. +- domain skill: Econ/Fin=0.1354, Energy=0.1960, Healthcare=0.4004, Nature=0.4175, Sales=0.3496, Transport=0.4614, Web/CloudOps=0.5026. +- frequency skill: A=0.3746, D=0.3390, H=0.3931, M=0.0951, Q=0.1983, S=0.4210, T=0.4049, W=0.1967. +- variates skill: multivariate=0.3911, univariate=0.3365. +- Outcome: Main-screen gain persists on the newer backbone, but the first earlier diagnostic remains below its matched control. Not published standalone. + +## E32 transferred history memory first earlier +- Checkpoint SHA-256: `c5a6d1fa7f637f2fa36f9176d66f39a71f8f3c8c84fef8098ec03a88a59f68e7`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 24.01271629333496 seconds. +- Overall skill 0.324581; relative MASE 0.811091; relative WQL 0.562442. +- term skill: long=0.3866, medium=0.3491, short=0.2893. +- domain skill: Econ/Fin=0.1617, Energy=0.2185, Healthcare=0.3678, Nature=0.3513, Sales=0.3962, Transport=0.3659, Web/CloudOps=0.4368. +- frequency skill: A=0.3123, D=0.3475, H=0.3561, M=0.1691, Q=0.2293, S=0.3357, T=0.3214, W=0.2557. +- variates skill: multivariate=0.3385, univariate=0.3133. +- Outcome: Main-screen gain persists on the newer backbone, but the first earlier diagnostic remains below its matched control. Not published standalone. + +## E32 transferred history memory second earlier +- Checkpoint SHA-256: `c5a6d1fa7f637f2fa36f9176d66f39a71f8f3c8c84fef8098ec03a88a59f68e7`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 23.5328631401062 seconds. +- Overall skill 0.352606; relative MASE 0.775583; relative WQL 0.540391. +- term skill: long=0.3677, medium=0.3779, short=0.3370. +- domain skill: Econ/Fin=0.1079, Energy=0.2224, Healthcare=0.3668, Nature=0.4615, Sales=0.5608, Transport=0.4165, Web/CloudOps=0.4263. +- frequency skill: A=0.3383, D=0.4283, H=0.3855, M=0.1616, Q=0.1520, S=0.2804, T=0.3462, W=0.2493. +- variates skill: multivariate=0.3553, univariate=0.3504. +- Outcome: Main-screen gain persists on the newer backbone, but the first earlier diagnostic remains below its matched control. Not published standalone. + +E33 cached ensemble results. Neither member required new training. Backbone weights 0.25/0.5/0.75 apply globally to every instance; complementary weight is on E32. All tested mixtures retain a small first-earlier-cutoff regression. No ensemble is published yet; the simpler backbone continuations are still improving. +- screen, base weight 0.25: skill 0.3609597107729168; elapsed 31.589441299438477 CPU seconds; groups {"term": {"long": {"n_configs": 21, "rel_mase_gmean": 0.7485062013261629, "rel_wql_gmean": 0.48497053192140965}, "medium": {"n_configs": 21, "rel_mase_gmean": 0.7187220659985801, "rel_wql_gmean": 0.49872959388387217}, "short": {"n_configs": 55, "rel_mase_gmean": 0.7854775479522941, "rel_wql_gmean": 0.5715754588019885}}, "domain": {"Econ/Fin": {"n_configs": 6, "rel_mase_gmean": 0.8766794111084217, "rel_wql_gmean": 0.8521904674160014}, "Energy": {"n_configs": 32, "rel_mase_gmean": 0.9458381742339477, "rel_wql_gmean": 0.6841214470602749}, "Healthcare": {"n_configs": 5, "rel_mase_gmean": 0.6357518097122528, "rel_wql_gmean": 0.5708050606184818}, "Nature": {"n_configs": 15, "rel_mase_gmean": 0.8296139742081163, "rel_wql_gmean": 0.40898901267743815}, "Sales": {"n_configs": 4, "rel_mase_gmean": 0.8283216000359614, "rel_wql_gmean": 0.510813353500822}, "Transport": {"n_configs": 15, "rel_mase_gmean": 0.6491485866452709, "rel_wql_gmean": 0.4469444592152844}, "Web/CloudOps": {"n_configs": 20, "rel_mase_gmean": 0.564775788716386, "rel_wql_gmean": 0.4386209893190716}}, "frequency": {"A": {"n_configs": 1, "rel_mase_gmean": 0.6092189862308618, "rel_wql_gmean": 0.6444119562488515}, "D": {"n_configs": 15, "rel_mase_gmean": 0.7923969772018941, "rel_wql_gmean": 0.5529928138595462}, "H": {"n_configs": 31, "rel_mase_gmean": 0.7344815207835862, "rel_wql_gmean": 0.502366984331498}, "M": {"n_configs": 5, "rel_mase_gmean": 0.9818087731317099, "rel_wql_gmean": 0.8332936324629011}, "Q": {"n_configs": 1, "rel_mase_gmean": 0.7734447483921444, "rel_wql_gmean": 0.8291183442517216}, "S": {"n_configs": 6, "rel_mase_gmean": 0.662205210700223, "rel_wql_gmean": 0.5065947056042907}, "T": {"n_configs": 30, "rel_mase_gmean": 0.7321702800096546, "rel_wql_gmean": 0.4836230433794967}, "W": {"n_configs": 8, "rel_mase_gmean": 0.9308497588724332, "rel_wql_gmean": 0.6931956959471695}}, "variates": {"multivariate": {"n_configs": 43, "rel_mase_gmean": 0.7176036435313308, "rel_wql_gmean": 0.5172069567399432}, "univariate": {"n_configs": 54, "rel_mase_gmean": 0.800284652420953, "rel_wql_gmean": 0.5506355529979893}}} +- screen, base weight 0.5: skill 0.36051700538130327; elapsed 1.6923091411590576 CPU seconds; groups {"term": {"long": {"n_configs": 21, "rel_mase_gmean": 0.7491443694259866, "rel_wql_gmean": 0.48552116951145263}, "medium": {"n_configs": 21, "rel_mase_gmean": 0.717943946501363, "rel_wql_gmean": 0.49885742655549165}, "short": {"n_configs": 55, "rel_mase_gmean": 0.7862261945539069, "rel_wql_gmean": 0.572174296426093}}, "domain": {"Econ/Fin": {"n_configs": 6, "rel_mase_gmean": 0.8767314570553127, "rel_wql_gmean": 0.8518426772129285}, "Energy": {"n_configs": 32, "rel_mase_gmean": 0.9464868100785462, "rel_wql_gmean": 0.6847020626617584}, "Healthcare": {"n_configs": 5, "rel_mase_gmean": 0.6391927294627128, "rel_wql_gmean": 0.5728774819722747}, "Nature": {"n_configs": 15, "rel_mase_gmean": 0.8288486290328975, "rel_wql_gmean": 0.4095777628918776}, "Sales": {"n_configs": 4, "rel_mase_gmean": 0.828359895013336, "rel_wql_gmean": 0.5108331535102516}, "Transport": {"n_configs": 15, "rel_mase_gmean": 0.6492097960109925, "rel_wql_gmean": 0.44703510569395916}, "Web/CloudOps": {"n_configs": 20, "rel_mase_gmean": 0.5650725913141991, "rel_wql_gmean": 0.43904253902223594}}, "frequency": {"A": {"n_configs": 1, "rel_mase_gmean": 0.6107048585981317, "rel_wql_gmean": 0.6453081988530746}, "D": {"n_configs": 15, "rel_mase_gmean": 0.7937577174837149, "rel_wql_gmean": 0.5536527716998109}, "H": {"n_configs": 31, "rel_mase_gmean": 0.7349129886012886, "rel_wql_gmean": 0.5033244078192418}, "M": {"n_configs": 5, "rel_mase_gmean": 0.9816729369571708, "rel_wql_gmean": 0.83284954955612}, "Q": {"n_configs": 1, "rel_mase_gmean": 0.7729642350253297, "rel_wql_gmean": 0.8282079386900584}, "S": {"n_configs": 6, "rel_mase_gmean": 0.6624714487276662, "rel_wql_gmean": 0.5067064419332115}, "T": {"n_configs": 30, "rel_mase_gmean": 0.732172046143732, "rel_wql_gmean": 0.4837994768895142}, "W": {"n_configs": 8, "rel_mase_gmean": 0.930849298960232, "rel_wql_gmean": 0.6931955559830537}}, "variates": {"multivariate": {"n_configs": 43, "rel_mase_gmean": 0.717793296521423, "rel_wql_gmean": 0.5179713349770367}, "univariate": {"n_configs": 54, "rel_mase_gmean": 0.8008210552601016, "rel_wql_gmean": 0.5508732181941426}}} +- screen, base weight 0.75: skill 0.3599500839851063; elapsed 1.4231245517730713 CPU seconds; groups {"term": {"long": {"n_configs": 21, "rel_mase_gmean": 0.750042489425022, "rel_wql_gmean": 0.48623104748726004}, "medium": {"n_configs": 21, "rel_mase_gmean": 0.7173897864210821, "rel_wql_gmean": 0.4991516788000004}, "short": {"n_configs": 55, "rel_mase_gmean": 0.78703598003334, "rel_wql_gmean": 0.5728330044823371}}, "domain": {"Econ/Fin": {"n_configs": 6, "rel_mase_gmean": 0.8768876674480677, "rel_wql_gmean": 0.8515997053654789}, "Energy": {"n_configs": 32, "rel_mase_gmean": 0.9473562016160542, "rel_wql_gmean": 0.6855548779843715}, "Healthcare": {"n_configs": 5, "rel_mase_gmean": 0.642561102977203, "rel_wql_gmean": 0.5749859696863521}, "Nature": {"n_configs": 15, "rel_mase_gmean": 0.8285232450849535, "rel_wql_gmean": 0.4102456883415478}, "Sales": {"n_configs": 4, "rel_mase_gmean": 0.8284086809446388, "rel_wql_gmean": 0.5108547074028001}, "Transport": {"n_configs": 15, "rel_mase_gmean": 0.6493066620546145, "rel_wql_gmean": 0.44715612803391697}, "Web/CloudOps": {"n_configs": 20, "rel_mase_gmean": 0.5654188677782281, "rel_wql_gmean": 0.4395078746093791}}, "frequency": {"A": {"n_configs": 1, "rel_mase_gmean": 0.6122299433463864, "rel_wql_gmean": 0.6462324836335608}, "D": {"n_configs": 15, "rel_mase_gmean": 0.7950974689907988, "rel_wql_gmean": 0.5543319910897211}, "H": {"n_configs": 31, "rel_mase_gmean": 0.735615332675693, "rel_wql_gmean": 0.5044620646385107}, "M": {"n_configs": 5, "rel_mase_gmean": 0.9815783490405571, "rel_wql_gmean": 0.832453381029195}, "Q": {"n_configs": 1, "rel_mase_gmean": 0.7726561980040161, "rel_wql_gmean": 0.8274692503440843}, "S": {"n_configs": 6, "rel_mase_gmean": 0.6627478709382408, "rel_wql_gmean": 0.5068543440740843}, "T": {"n_configs": 30, "rel_mase_gmean": 0.7323316854508894, "rel_wql_gmean": 0.4840907541003884}, "W": {"n_configs": 8, "rel_mase_gmean": 0.9308491431521891, "rel_wql_gmean": 0.6931954208513348}}, "variates": {"multivariate": {"n_configs": 43, "rel_mase_gmean": 0.7182293746317306, "rel_wql_gmean": 0.5189159515589695}, "univariate": {"n_configs": 54, "rel_mase_gmean": 0.8014062938450294, "rel_wql_gmean": 0.5511589238591919}}} +- backcast, base weight 0.25: skill 0.32516390659459127; elapsed 25.728330373764038 CPU seconds; groups {"term": {"long": {"n_configs": 21, "rel_mase_gmean": 0.7877573688004119, "rel_wql_gmean": 0.4757505244331779}, "medium": {"n_configs": 21, "rel_mase_gmean": 0.7777646324659491, "rel_wql_gmean": 0.5427449141803178}, "short": {"n_configs": 55, "rel_mase_gmean": 0.8320626409877416, "rel_wql_gmean": 0.6069233027764227}}, "domain": {"Econ/Fin": {"n_configs": 6, "rel_mase_gmean": 0.8731645869233648, "rel_wql_gmean": 0.8046317212772931}, "Energy": {"n_configs": 32, "rel_mase_gmean": 0.9000885899955989, "rel_wql_gmean": 0.6764463826118567}, "Healthcare": {"n_configs": 5, "rel_mase_gmean": 0.6763673902063786, "rel_wql_gmean": 0.5893498915999001}, "Nature": {"n_configs": 15, "rel_mase_gmean": 0.9498042213778831, "rel_wql_gmean": 0.44171639005646535}, "Sales": {"n_configs": 4, "rel_mase_gmean": 0.7353166304138659, "rel_wql_gmean": 0.495785420303292}, "Transport": {"n_configs": 15, "rel_mase_gmean": 0.7449699119735571, "rel_wql_gmean": 0.5393127533664154}, "Web/CloudOps": {"n_configs": 20, "rel_mase_gmean": 0.6755793289890412, "rel_wql_gmean": 0.4696226318380198}}, "frequency": {"A": {"n_configs": 1, "rel_mase_gmean": 0.651838123897038, "rel_wql_gmean": 0.7256129506047462}, "D": {"n_configs": 15, "rel_mase_gmean": 0.8480816283629858, "rel_wql_gmean": 0.5013822816935581}, "H": {"n_configs": 31, "rel_mase_gmean": 0.7872906478235149, "rel_wql_gmean": 0.5262643957494131}, "M": {"n_configs": 5, "rel_mase_gmean": 0.867272967035772, "rel_wql_gmean": 0.7959646950903766}, "Q": {"n_configs": 1, "rel_mase_gmean": 0.7634980658181472, "rel_wql_gmean": 0.7778879435047819}, "S": {"n_configs": 6, "rel_mase_gmean": 0.8611665698543136, "rel_wql_gmean": 0.5114505986034271}, "T": {"n_configs": 30, "rel_mase_gmean": 0.7774300159704559, "rel_wql_gmean": 0.5898942963102115}, "W": {"n_configs": 8, "rel_mase_gmean": 0.921455165311994, "rel_wql_gmean": 0.6011456983078217}}, "variates": {"multivariate": {"n_configs": 43, "rel_mase_gmean": 0.8054278932888852, "rel_wql_gmean": 0.5417010935787644}, "univariate": {"n_configs": 54, "rel_mase_gmean": 0.8142697614393413, "rel_wql_gmean": 0.5786920991268066}}} +- backcast, base weight 0.5: skill 0.3255906425540577; elapsed 7.025062561035156 CPU seconds; groups {"term": {"long": {"n_configs": 21, "rel_mase_gmean": 0.7868531100085023, "rel_wql_gmean": 0.47494194797983313}, "medium": {"n_configs": 21, "rel_mase_gmean": 0.7767176724724971, "rel_wql_gmean": 0.5419949281040547}, "short": {"n_configs": 55, "rel_mase_gmean": 0.8318845792654018, "rel_wql_gmean": 0.606991975463184}}, "domain": {"Econ/Fin": {"n_configs": 6, "rel_mase_gmean": 0.8731690390439605, "rel_wql_gmean": 0.8045484945388448}, "Energy": {"n_configs": 32, "rel_mase_gmean": 0.8993476870381677, "rel_wql_gmean": 0.6755669234996251}, "Healthcare": {"n_configs": 5, "rel_mase_gmean": 0.6753662260274707, "rel_wql_gmean": 0.5885861458424224}, "Nature": {"n_configs": 15, "rel_mase_gmean": 0.9483032085189914, "rel_wql_gmean": 0.441350380267718}, "Sales": {"n_configs": 4, "rel_mase_gmean": 0.7353166304138659, "rel_wql_gmean": 0.495785420303292}, "Transport": {"n_configs": 15, "rel_mase_gmean": 0.7446948865024733, "rel_wql_gmean": 0.5392154113246899}, "Web/CloudOps": {"n_configs": 20, "rel_mase_gmean": 0.6755391890283506, "rel_wql_gmean": 0.469748030722515}}, "frequency": {"A": {"n_configs": 1, "rel_mase_gmean": 0.651838123897038, "rel_wql_gmean": 0.7256129506047462}, "D": {"n_configs": 15, "rel_mase_gmean": 0.8475410369158077, "rel_wql_gmean": 0.5011421156521402}, "H": {"n_configs": 31, "rel_mase_gmean": 0.7875436876281503, "rel_wql_gmean": 0.5262880067026078}, "M": {"n_configs": 5, "rel_mase_gmean": 0.867272967035772, "rel_wql_gmean": 0.7959646950903766}, "Q": {"n_configs": 1, "rel_mase_gmean": 0.7634980658181472, "rel_wql_gmean": 0.7778879435047819}, "S": {"n_configs": 6, "rel_mase_gmean": 0.8607773505813321, "rel_wql_gmean": 0.5107840537486803}, "T": {"n_configs": 30, "rel_mase_gmean": 0.7758285204666452, "rel_wql_gmean": 0.5890117516972101}, "W": {"n_configs": 8, "rel_mase_gmean": 0.921455165311994, "rel_wql_gmean": 0.6011456983078217}}, "variates": {"multivariate": {"n_configs": 43, "rel_mase_gmean": 0.8047280897548712, "rel_wql_gmean": 0.5410867356076619}, "univariate": {"n_configs": 54, "rel_mase_gmean": 0.8138657265706295, "rel_wql_gmean": 0.5785877053648649}}} +- backcast, base weight 0.75: skill 0.32585558132181525; elapsed 1.4801208972930908 CPU seconds; groups {"term": {"long": {"n_configs": 21, "rel_mase_gmean": 0.7864118030472989, "rel_wql_gmean": 0.47433966987370835}, "medium": {"n_configs": 21, "rel_mase_gmean": 0.7760856247602924, "rel_wql_gmean": 0.541419709057465}, "short": {"n_configs": 55, "rel_mase_gmean": 0.8317549187410698, "rel_wql_gmean": 0.6071042148592315}}, "domain": {"Econ/Fin": {"n_configs": 6, "rel_mase_gmean": 0.8731809073153128, "rel_wql_gmean": 0.8044818649657144}, "Energy": {"n_configs": 32, "rel_mase_gmean": 0.8991776752660365, "rel_wql_gmean": 0.6750015559883032}, "Healthcare": {"n_configs": 5, "rel_mase_gmean": 0.6743591342425898, "rel_wql_gmean": 0.5878184243392145}, "Nature": {"n_configs": 15, "rel_mase_gmean": 0.9471433052106504, "rel_wql_gmean": 0.4410648488568812}, "Sales": {"n_configs": 4, "rel_mase_gmean": 0.7353166304138659, "rel_wql_gmean": 0.495785420303292}, "Transport": {"n_configs": 15, "rel_mase_gmean": 0.744443044974495, "rel_wql_gmean": 0.5391442286013897}, "Web/CloudOps": {"n_configs": 20, "rel_mase_gmean": 0.6755193180086204, "rel_wql_gmean": 0.46990600477296696}}, "frequency": {"A": {"n_configs": 1, "rel_mase_gmean": 0.651838123897038, "rel_wql_gmean": 0.7256129506047462}, "D": {"n_configs": 15, "rel_mase_gmean": 0.8470002930114933, "rel_wql_gmean": 0.5009052086170435}, "H": {"n_configs": 31, "rel_mase_gmean": 0.7882647172004155, "rel_wql_gmean": 0.5264910423859007}, "M": {"n_configs": 5, "rel_mase_gmean": 0.867272967035772, "rel_wql_gmean": 0.7959646950903766}, "Q": {"n_configs": 1, "rel_mase_gmean": 0.7634980658181472, "rel_wql_gmean": 0.7778879435047819}, "S": {"n_configs": 6, "rel_mase_gmean": 0.8604064218762162, "rel_wql_gmean": 0.5101551146076984}, "T": {"n_configs": 30, "rel_mase_gmean": 0.774442079728573, "rel_wql_gmean": 0.5883004763096262}, "W": {"n_configs": 8, "rel_mase_gmean": 0.921455165311994, "rel_wql_gmean": 0.6011456983078217}}, "variates": {"multivariate": {"n_configs": 43, "rel_mase_gmean": 0.8044577867215783, "rel_wql_gmean": 0.5406785466562373}, "univariate": {"n_configs": 54, "rel_mase_gmean": 0.8135190933822734, "rel_wql_gmean": 0.5785199260327762}}} +- backcast2, base weight 0.25: skill 0.35287154434047796; elapsed 32.718568563461304 CPU seconds; groups {"term": {"long": {"n_configs": 19, "rel_mase_gmean": 0.7953937401265897, "rel_wql_gmean": 0.5030106493089533}, "medium": {"n_configs": 21, "rel_mase_gmean": 0.7678643593783896, "rel_wql_gmean": 0.5028055430553253}, "short": {"n_configs": 54, "rel_mase_gmean": 0.7711270557942318, "rel_wql_gmean": 0.5695813024863108}}, "domain": {"Econ/Fin": {"n_configs": 6, "rel_mase_gmean": 0.8805482364783594, "rel_wql_gmean": 0.9042209924611244}, "Energy": {"n_configs": 32, "rel_mase_gmean": 0.9117289903338895, "rel_wql_gmean": 0.6620020860753241}, "Healthcare": {"n_configs": 5, "rel_mase_gmean": 0.6839866145665877, "rel_wql_gmean": 0.5864976160474622}, "Nature": {"n_configs": 15, "rel_mase_gmean": 0.7748252117778318, "rel_wql_gmean": 0.3733068662798137}, "Sales": {"n_configs": 3, "rel_mase_gmean": 0.5489740065972382, "rel_wql_gmean": 0.3513233844778427}, "Transport": {"n_configs": 14, "rel_mase_gmean": 0.6725766506204502, "rel_wql_gmean": 0.5061420572217049}, "Web/CloudOps": {"n_configs": 19, "rel_mase_gmean": 0.6870083960785978, "rel_wql_gmean": 0.4794994231705838}}, "frequency": {"A": {"n_configs": 1, "rel_mase_gmean": 0.5819327138083403, "rel_wql_gmean": 0.7523849571908706}, "D": {"n_configs": 15, "rel_mase_gmean": 0.7299533930809837, "rel_wql_gmean": 0.4479740157977664}, "H": {"n_configs": 30, "rel_mase_gmean": 0.7604275957811419, "rel_wql_gmean": 0.4953118153144008}, "M": {"n_configs": 4, "rel_mase_gmean": 0.8158365215321529, "rel_wql_gmean": 0.8615342594759124}, "Q": {"n_configs": 1, "rel_mase_gmean": 0.8252565936089924, "rel_wql_gmean": 0.8713357271735944}, "S": {"n_configs": 6, "rel_mase_gmean": 0.9122753788008492, "rel_wql_gmean": 0.5679295721865012}, "T": {"n_configs": 29, "rel_mase_gmean": 0.7657639848982667, "rel_wql_gmean": 0.5579672183603664}, "W": {"n_configs": 8, "rel_mase_gmean": 0.8655383325021186, "rel_wql_gmean": 0.6510826830966135}}, "variates": {"multivariate": {"n_configs": 42, "rel_mase_gmean": 0.7902445203946336, "rel_wql_gmean": 0.5253027568920817}, "univariate": {"n_configs": 52, "rel_mase_gmean": 0.7633236727962595, "rel_wql_gmean": 0.5525218103974238}}} +- backcast2, base weight 0.5: skill 0.35293362223391267; elapsed 1.2891087532043457 CPU seconds; groups {"term": {"long": {"n_configs": 19, "rel_mase_gmean": 0.795490811324907, "rel_wql_gmean": 0.5038189345476245}, "medium": {"n_configs": 21, "rel_mase_gmean": 0.7674326315874551, "rel_wql_gmean": 0.5023119643797436}, "short": {"n_configs": 54, "rel_mase_gmean": 0.7711829671563578, "rel_wql_gmean": 0.5693457082014003}}, "domain": {"Econ/Fin": {"n_configs": 6, "rel_mase_gmean": 0.8808378054392396, "rel_wql_gmean": 0.9044589957290904}, "Energy": {"n_configs": 32, "rel_mase_gmean": 0.9113735276107076, "rel_wql_gmean": 0.6617472008949459}, "Healthcare": {"n_configs": 5, "rel_mase_gmean": 0.6842243004747667, "rel_wql_gmean": 0.5865985548061023}, "Nature": {"n_configs": 15, "rel_mase_gmean": 0.7748130011917327, "rel_wql_gmean": 0.37282859138217267}, "Sales": {"n_configs": 3, "rel_mase_gmean": 0.5489740065972382, "rel_wql_gmean": 0.3513233844778427}, "Transport": {"n_configs": 14, "rel_mase_gmean": 0.6724189210776539, "rel_wql_gmean": 0.5061490326925873}, "Web/CloudOps": {"n_configs": 19, "rel_mase_gmean": 0.6872511298933153, "rel_wql_gmean": 0.47991505019019964}}, "frequency": {"A": {"n_configs": 1, "rel_mase_gmean": 0.5819327138083403, "rel_wql_gmean": 0.7523849571908706}, "D": {"n_configs": 15, "rel_mase_gmean": 0.7301681468376378, "rel_wql_gmean": 0.4481185117970856}, "H": {"n_configs": 30, "rel_mase_gmean": 0.7599867700948899, "rel_wql_gmean": 0.49504239452481336}, "M": {"n_configs": 4, "rel_mase_gmean": 0.8158365215321529, "rel_wql_gmean": 0.8615342594759124}, "Q": {"n_configs": 1, "rel_mase_gmean": 0.8252565936089924, "rel_wql_gmean": 0.8713357271735944}, "S": {"n_configs": 6, "rel_mase_gmean": 0.9125454167444352, "rel_wql_gmean": 0.5681445429462755}, "T": {"n_configs": 29, "rel_mase_gmean": 0.7659127026855528, "rel_wql_gmean": 0.5579048015053354}, "W": {"n_configs": 8, "rel_mase_gmean": 0.8655383325021186, "rel_wql_gmean": 0.6510826830966135}}, "variates": {"multivariate": {"n_configs": 42, "rel_mase_gmean": 0.7903908108689007, "rel_wql_gmean": 0.5252368408110905}, "univariate": {"n_configs": 52, "rel_mase_gmean": 0.7631277150357363, "rel_wql_gmean": 0.5524454383766455}}} +- backcast2, base weight 0.75: skill 0.35279424558075034; elapsed 1.3640234470367432 CPU seconds; groups {"term": {"long": {"n_configs": 19, "rel_mase_gmean": 0.7960013691972241, "rel_wql_gmean": 0.5048538794748333}, "medium": {"n_configs": 21, "rel_mase_gmean": 0.7673586435302413, "rel_wql_gmean": 0.5020153819167671}, "short": {"n_configs": 54, "rel_mase_gmean": 0.7714553413789935, "rel_wql_gmean": 0.5691840862467166}}, "domain": {"Econ/Fin": {"n_configs": 6, "rel_mase_gmean": 0.881145657719554, "rel_wql_gmean": 0.9047199305925011}, "Energy": {"n_configs": 32, "rel_mase_gmean": 0.9115950570456508, "rel_wql_gmean": 0.6618010993808187}, "Healthcare": {"n_configs": 5, "rel_mase_gmean": 0.6844817312954508, "rel_wql_gmean": 0.5867080808867043}, "Nature": {"n_configs": 15, "rel_mase_gmean": 0.7754005359113609, "rel_wql_gmean": 0.3724980616976047}, "Sales": {"n_configs": 3, "rel_mase_gmean": 0.5489740065972382, "rel_wql_gmean": 0.3513233844778427}, "Transport": {"n_configs": 14, "rel_mase_gmean": 0.672286131185056, "rel_wql_gmean": 0.506183419259456}, "Web/CloudOps": {"n_configs": 19, "rel_mase_gmean": 0.6875722190026725, "rel_wql_gmean": 0.48037847185063465}}, "frequency": {"A": {"n_configs": 1, "rel_mase_gmean": 0.5819327138083403, "rel_wql_gmean": 0.7523849571908706}, "D": {"n_configs": 15, "rel_mase_gmean": 0.730395963063022, "rel_wql_gmean": 0.4482700955304752}, "H": {"n_configs": 30, "rel_mase_gmean": 0.7602248518219639, "rel_wql_gmean": 0.4950255629831832}, "M": {"n_configs": 4, "rel_mase_gmean": 0.8158365215321529, "rel_wql_gmean": 0.8615342594759124}, "Q": {"n_configs": 1, "rel_mase_gmean": 0.8252565936089924, "rel_wql_gmean": 0.8713357271735944}, "S": {"n_configs": 6, "rel_mase_gmean": 0.9128726300303336, "rel_wql_gmean": 0.5684332751933325}, "T": {"n_configs": 29, "rel_mase_gmean": 0.7662563237934747, "rel_wql_gmean": 0.5579847239947101}, "W": {"n_configs": 8, "rel_mase_gmean": 0.8655383325021186, "rel_wql_gmean": 0.6510826830966135}}, "variates": {"multivariate": {"n_configs": 42, "rel_mase_gmean": 0.7911061856256687, "rel_wql_gmean": 0.5254140703891469}, "univariate": {"n_configs": 52, "rel_mase_gmean": 0.7629991415479856, "rel_wql_gmean": 0.5524144817860636}}} + +## E34: multivariate attention with end-to-end pretraining and univariate rehearsal +Hypothesis: E20’s frozen backbone could not fully learn how to interpret cross-channel signals. Start from E22 control at 12000, add the same zero-output cross-variable attention layer, and train all 37,816,096 parameters. Three quarters of batches use the original 95-source univariate sampler, batch 128; one quarter use synchronized multivariate records, 32 groups with 2/3/4/8 channels. Six thousand steps, learning rate 4e-5 with 200-step warmup and cosine decay; main seed 73, independent joint-sampler seed 10073. Use only packed_sample and packed_joint and their local generators. This changes the training mixture and trainable parameter set together; it is a candidate method comparison, not a claim that either factor alone causes any gain. Zero-step output is the matched inference control. No validation observations enter gradients. + +## E25 learned recency 12000 with aligned templates, full validation +- Checkpoint SHA-256: `8ccb6870a025e1097331a3a288b1183741a413f3460fbf3352d0c589c6a4394c`. +- Evaluation: 97 configurations, 151170 instances, 0 failed configurations; not separately timed seconds. +- Overall skill 0.355628; relative MASE 0.765858; relative WQL 0.542156. +- term skill: long=0.3899, medium=0.4001, short=0.3239. +- domain skill: Econ/Fin=0.1162, Energy=0.1854, Healthcare=0.4030, Nature=0.4169, Sales=0.3571, Transport=0.4622, Web/CloudOps=0.4930. +- frequency skill: A=0.2912, D=0.3393, H=0.3859, M=0.1107, Q=0.1840, S=0.4221, T=0.3964, W=0.1942. +- variates skill: multivariate=0.3851, univariate=0.3311. +- Outcome: Published. Full validation 0.355628 versus matched E22-12000 package 0.355096; earlier diagnostics 0.327844 and 0.354561 versus 0.325963 and 0.352462. No failures. Repeated relocated examples are bitwise identical, finite and monotone. This extends the recency-feature benefit to a third matched training checkpoint. + +## E25 recency12000 first earlier diagnostic +- Checkpoint SHA-256: `8ccb6870a025e1097331a3a288b1183741a413f3460fbf3352d0c589c6a4394c`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 21.109707355499268 seconds. +- Overall skill 0.327844; relative MASE 0.806911; relative WQL 0.559904. +- term skill: long=0.3932, medium=0.3529, short=0.2909. +- domain skill: Econ/Fin=0.1636, Energy=0.2224, Healthcare=0.3816, Nature=0.3533, Sales=0.3955, Transport=0.3666, Web/CloudOps=0.4404. +- frequency skill: A=0.3134, D=0.3502, H=0.3567, M=0.1636, Q=0.2250, S=0.3402, T=0.3276, W=0.2656. +- variates skill: multivariate=0.3437, univariate=0.3150. +- Outcome: Improves the matched control. + +## E25 recency12000 second earlier diagnostic +- Checkpoint SHA-256: `8ccb6870a025e1097331a3a288b1183741a413f3460fbf3352d0c589c6a4394c`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 20.91800332069397 seconds. +- Overall skill 0.354561; relative MASE 0.773267; relative WQL 0.538742. +- term skill: long=0.3642, medium=0.3828, short=0.3397. +- domain skill: Econ/Fin=0.1095, Energy=0.2259, Healthcare=0.3738, Nature=0.4621, Sales=0.5594, Transport=0.4168, Web/CloudOps=0.4281. +- frequency skill: A=0.3385, D=0.4319, H=0.3875, M=0.1660, Q=0.1478, S=0.2841, T=0.3480, W=0.2461. +- variates skill: multivariate=0.3588, univariate=0.3511. +- Outcome: Improves the matched control. + +Measured continuation compute (elapsed training-process seconds, shared single H100; these are not additive dedicated GPU-seconds): +- depth36_control, step 1000: 124.8 seconds. +- depth36_control, step 3000: 365.5 seconds. +- depth36_control, step 6000: 869.5 seconds. +- depth36_control, step 12000: 2211.3 seconds. +- recency_features, step 1000: 168.9 seconds. +- recency_features, step 3000: 510.3 seconds. +- recency_features, step 6000: 1158.7 seconds. +- recency_features, step 12000: 2481.6 seconds. +- strong_loss, step 1000: 224.1 seconds. +- strong_loss, step 3000: 672.8 seconds. +- strong_loss, step 6000: 1375.1 seconds. +- amplitude_synth, step 1000: 227.1 seconds. +- amplitude_synth, step 3000: 678.7 seconds. +- joint_rehearsal, step 1000: 172.6 seconds. + +## E35: explicit local trend increments in future queries (prepared) +Hypothesis: the original damped trend feature clips normalized slopes at 0.03 per step, suppressing trends in short annual and quarterly contexts. Add two zero-initialized query features from differences of adjacent 4-point and 16-point means, extrapolated to each future step and softly capped at 3 context standard deviations. Each mean needs at least half its observations and at least two finite values. This is a fixed context calculation, not a fitted per-instance model. A separate 16,384-parameter query projection preserves the existing recency projection and all pretrained-in-this-workspace tensors. Planned E17 initialization, seed 59, batch 256 and 24,000-step schedule match E25 exactly; no new synthetic generator. Training not yet started. + +E28 stopped after the 12000-step comparison. Screen 0.355930 is below matched control 0.356664; earlier checkpoints gave small inconsistent differences. Training through 12000 took 2731.8 process seconds on the shared H100. Checkpoints are retained, but the stronger seasonal-error weighting is not adopted. + +## E28 stronger seasonal loss 12000-step checkpoint +- Checkpoint SHA-256: `9f67f75960a568c9bc42fdb2ec99c8852bb5136ae869b7f63ac3fd6aeb359aab`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 21.34673237800598 seconds. +- Overall skill 0.355930; relative MASE 0.766619; relative WQL 0.541111. +- term skill: long=0.3886, medium=0.4019, short=0.3241. +- domain skill: Econ/Fin=0.1123, Energy=0.1843, Healthcare=0.4078, Nature=0.4143, Sales=0.3492, Transport=0.4532, Web/CloudOps=0.5040. +- frequency skill: A=0.3801, D=0.3350, H=0.3784, M=0.1213, Q=0.1929, S=0.4399, T=0.3989, W=0.1948. +- variates skill: multivariate=0.3880, univariate=0.3292. +- Outcome: Below matched control; stop this branch after three comparisons without a consistent advantage. + +E35 training started with the planned matched seed 59, batch 256, learning rate 8e-5 and 24000-step schedule, replacing E28 GPU work. A synthetic forward check verified bitwise equality at zero projection, and backward propagation produced finite nonzero gradients for the new trend projection. No additional training source or generator is introduced. + +## E31 synthetic amplitude 3000-step screen +- Checkpoint SHA-256: `6f3e68f1b70e9cde6872473dc4d834c16195e72656ba974eb39d48413a10af63`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 22.430498361587524 seconds. +- Overall skill 0.352625; relative MASE 0.768870; relative WQL 0.545079. +- term skill: long=0.3854, medium=0.3995, short=0.3204. +- domain skill: Econ/Fin=0.1023, Energy=0.1772, Healthcare=0.4136, Nature=0.4097, Sales=0.3467, Transport=0.4530, Web/CloudOps=0.5025. +- frequency skill: A=0.3691, D=0.3356, H=0.3748, M=0.0875, Q=0.1887, S=0.4366, T=0.3965, W=0.1978. +- variates skill: multivariate=0.3840, univariate=0.3265. +- Outcome: Improves matched E25-3000 screen from 0.351702 to 0.352625. First earlier diagnostic improves 0.321665 to 0.322014. Keep training to assess persistence. + +## E34 joint rehearsal 1000-step screen +- Checkpoint SHA-256: `394f2003a6c00cdcb0f2b944d1e9cc8ae4f7aca9e513bf46dbb1f8a2489c8670`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 23.026655912399292 seconds. +- Overall skill 0.360583; relative MASE 0.762757; relative WQL 0.536022. +- term skill: long=0.3975, medium=0.4014, short=0.3292. +- domain skill: Econ/Fin=0.1394, Energy=0.1926, Healthcare=0.3956, Nature=0.4177, Sales=0.3466, Transport=0.4620, Web/CloudOps=0.5034. +- frequency skill: A=0.3785, D=0.3382, H=0.3903, M=0.0963, Q=0.1994, S=0.4210, T=0.4059, W=0.1960. +- variates skill: multivariate=0.3895, univariate=0.3366. +- Outcome: Improves matched zero-step control on main screen and both earlier diagnostics. Later checkpoints are needed before selecting a package. + +## E34 joint rehearsal 3000-step screen +- Checkpoint SHA-256: `6dd1560fb4d63eae0fa8d414252b55329371e397cee44dcff4c656ff3e2f3416`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 22.9136745929718 seconds. +- Overall skill 0.358556; relative MASE 0.764675; relative WQL 0.538072. +- term skill: long=0.3976, medium=0.4016, short=0.3253. +- domain skill: Econ/Fin=0.1364, Energy=0.1912, Healthcare=0.3737, Nature=0.4189, Sales=0.3465, Transport=0.4616, Web/CloudOps=0.5016. +- frequency skill: A=0.3793, D=0.3315, H=0.3904, M=0.0787, Q=0.2012, S=0.4202, T=0.4046, W=0.1966. +- variates skill: multivariate=0.3887, univariate=0.3335. +- Outcome: Screen falls below the zero-step control after the earlier gain; do not publish this checkpoint. Continue to the planned 6000-step endpoint to assess the lower learning rate. + +## E36: equal-weight control and recency ensemble +Hypothesis: averaging two strong continuations reduces differences across validation cutoffs. Compare a fixed 50/50 quantile average of E25 recency12000 and E22 control18000, each forecasting every instance with the aligned seasonal rule. No training or new data; no dataset-specific selection. Screen and both earlier diagnostics are computed from cached forecasts before constructing a runtime package. + +## E37: fixed zero-mass projection +Hypothesis: small positive forecasts on histories with an observed mass at exactly zero cause disproportionate median error. Diagnostic candidates snap nonnegative quantiles below 0, 0.001, 0.005 or 0.02 context standard deviations to zero, only when the recent4096 history is nonnegative and contains at least4 zeros comprising at least10% of observed points. All thresholds are fixed globally; no per-instance fitting. Test the same four candidates at all three validation cutoffs using E25 recency12000 aligned outputs. No training and no extra data. + +E37 initial sweep: threshold0.02 improved screen 0.359868→0.360509, first earlier0.327844→0.328180 and second earlier0.354561→0.354943. Smaller nonzero thresholds gave smaller gains. Build and fully evaluate the0.02 runtime. A separate follow-up will compare0.05 and0.1 to assess whether the original upper endpoint truncated the useful range; no additional fitted parameters. + +## E38: broader packed corpus for the 36.8M recency model (prepared) +Hypothesis: the earlier negative corpus-expansion result at6.7M parameters may not hold for the larger, more-trained model. Compare packed_sample (0.959B points) with packed_expanded (5.653B points), initializing both from E25 recency12000. Keep source mixture weights calculated from packed_sample in both arms, isolating broader series and crop coverage from source-reweighting. Seed79, batch256, learning rate5e-5, 12000-step schedule, saves every3000, same architecture/loss/window mixture/synthetic generator. Each arm uses two Torch CPU threads. Training will start after current jobs release GPU capacity. No new corpus directories or generators. + +E37 wider sweep: thresholds0.02/0.05/0.1 gave screen0.360509/0.362121/0.364736, earlier1 0.328180/0.328643/0.329276, earlier2 0.354943/0.355475/0.356263. All three improve with the larger threshold. A final bracket at0.1/0.2/0.4/0.8 will locate an interior useful range before full runtime selection. + +## E39: bounded quantiles during pretraining (prepared) +Hypothesis: the current continuous output head incurs small positive errors on genuinely zero-valued futures. Extend the existing nonnegativity heuristic symmetrically inside the training forward pass: histories entirely nonnegative clamp normalized output quantiles at standardized zero; entirely nonpositive histories clamp above at zero. This lets pinball loss learn exact boundary probability mass through negative latent quantiles, rather than requiring exact equality of a continuous prediction. No additional model parameters. Match E38 packed_sample control: own E25 recency12000 initialization, seed79, batch256, LR5e-5, 12000 steps, original source mixture and generator. Training not yet started; this is separate from the fixed E37 inference projection. + +E37 final bracket selected threshold0.4: screen/earlier1/earlier2 =0.370559/0.330696/0.357884, versus parent0.359868/0.327844/0.354561. Threshold0.8 regresses to0.364344/0.327637/0.350745, providing an interior optimum common to all three cutoffs. No finer sweep is planned. Assemble and fully evaluate threshold0.4 before publication. + +E36 equal-weight blend gives screen0.361191, earlier1 0.328179, earlier2 0.354067. The main screen remains below control18000 alone (0.361735), and second earlier remains below recency12000 (0.354561). Not selected; no ensemble runtime is published. + +E38 packed_sample control started with the planned seed79 and schedule after E34 completed. A sampler check confirmed bitwise equality with the original sampler and identical source probabilities for both packed corpora. The expanded arm remains prepared, awaiting GPU capacity. + +## E22 control18000 full validation with aligned seasonal rule +- Checkpoint SHA-256: `b7bbb7473a317145235c133492a0d743a90a01ff252577a4c8a4651db008a138`. +- Evaluation: 97 configurations, 151170 instances, 0 failed configurations; not separately timed seconds. +- Overall skill 0.357537; relative MASE 0.764724; relative WQL 0.539749. +- term skill: long=0.3898, medium=0.4009, short=0.3270. +- domain skill: Econ/Fin=0.1117, Energy=0.1855, Healthcare=0.4146, Nature=0.4204, Sales=0.3566, Transport=0.4642, Web/CloudOps=0.4949. +- frequency skill: A=0.2833, D=0.3419, H=0.3872, M=0.1236, Q=0.1877, S=0.4206, T=0.3976, W=0.1997. +- variates skill: multivariate=0.3862, univariate=0.3338. +- Outcome: Improves full validation to0.357537; first and second earlier0.327746/0.352885 remain slightly below published recency12000. Candidate retained while matched recency18000 is evaluated. + +## E31 amplitude synthetic 6000-step screen +- Checkpoint SHA-256: `7fe2746b237fb2699c2d8c812595666df0888cde656498043e01847bb552c783`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 21.376917362213135 seconds. +- Overall skill 0.355543; relative MASE 0.766576; relative WQL 0.541792. +- term skill: long=0.3869, medium=0.3997, short=0.3251. +- domain skill: Econ/Fin=0.1054, Energy=0.1826, Healthcare=0.4173, Nature=0.4166, Sales=0.3471, Transport=0.4535, Web/CloudOps=0.5020. +- frequency skill: A=0.3700, D=0.3444, H=0.3777, M=0.0986, Q=0.1941, S=0.4367, T=0.3980, W=0.1929. +- variates skill: multivariate=0.3869, univariate=0.3294. +- Outcome: Screen0.355543 improves matched E25-6000 0.352851. First earlier0.324002 is effectively tied with matched0.324008; second earlier0.349572 improves matched0.349098. Continue to12000. + +## E34 joint rehearsal 6000-step screen +- Checkpoint SHA-256: `44aa5f702a58845a427ad76818631e808362b7dc236a3648232db47d621db219`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 21.278470993041992 seconds. +- Overall skill 0.360025; relative MASE 0.763498; relative WQL 0.536437. +- term skill: long=0.3986, medium=0.4027, short=0.3272. +- domain skill: Econ/Fin=0.1375, Energy=0.1934, Healthcare=0.3748, Nature=0.4209, Sales=0.3465, Transport=0.4619, Web/CloudOps=0.5031. +- frequency skill: A=0.3720, D=0.3320, H=0.3916, M=0.0873, Q=0.1998, S=0.4184, T=0.4071, W=0.1973. +- variates skill: multivariate=0.3917, univariate=0.3337. +- Outcome: Final screen0.360025 improves parent0.359242 but is below the1000-step peak0.360583. Evaluate both earlier cutoffs; do not publish solely from the small screen gain. + +E34 completed6000 steps in1049.5 training-process seconds. Earlier1/earlier2 =0.326344/0.350746: first improves parent0.325963, second regresses from0.352462. The1000-step checkpoint remains the better joint candidate, but neither is selected over the stronger recency model. All weights are archived. + +## E37 threshold0.02 full package validation +- Checkpoint SHA-256: `8ccb6870a025e1097331a3a288b1183741a413f3460fbf3352d0c589c6a4394c`. +- Evaluation: 97 configurations, 151170 instances, 0 failed configurations; not separately timed seconds. +- Overall skill 0.356254; relative MASE 0.764978; relative WQL 0.541726. +- term skill: long=0.3904, medium=0.4005, short=0.3246. +- domain skill: Econ/Fin=0.1162, Energy=0.1871, Healthcare=0.4030, Nature=0.4175, Sales=0.3571, Transport=0.4622, Web/CloudOps=0.4933. +- frequency skill: A=0.2912, D=0.3393, H=0.3863, M=0.1108, Q=0.1840, S=0.4221, T=0.3979, W=0.1942. +- variates skill: multivariate=0.3855, univariate=0.3320. +- Outcome: Full skill0.356254 improves parent0.355628 with zero failed configurations. Repeated relocated examples are bitwise identical, finite and monotone. Temporarily published while the larger, consistently better threshold0.4 completes full validation. + +## E40: zero-mass projection with empirical phase probability +E37 helps solar and several zero-heavy channels but slightly hurts some sales and cloud series. Hypothesis: a quantile should be snapped only when the observed zero probability supports its level. Keep threshold0.4 fixed; compare unrestricted E37, global observed zero fraction, and phase-specific zero frequencies from the last4 or8 primary seasonal cycles. For phase estimates with at least3 observations use (zero_count+0.5)/(count+1), otherwise the global fraction. Only levels at or below that zero probability are eligible. All rules are fixed context formulas, applied independently per variate. Compare cached E25 recency12000 forecasts on all three cutoffs; no training. + +E37 final selection: use the18,000-step recency checkpoint with threshold0.4. Full validation0.370171 exceeds12,000-step+0.4 at0.366390; earlier1 improves0.330696→0.332400, while earlier2 decreases0.357884→0.356697. The three-cutoff mean improves, and all three exceed the previously published12,000-step+0.02 package. Prefer the newer checkpoint for its full-validation and first-earlier gains; retain the second-earlier regression as a limitation. Both candidate packages passed repeated relocated example inference, with exact equality, finite outputs and monotone quantiles. +- Measured depth36_control step18000: 3529.7 elapsed training-process seconds on the shared single H100. +- Measured recency_features step18000: 4008.8 elapsed training-process seconds on the shared single H100. +- Measured amplitude_synth step6000: 1498.1 elapsed training-process seconds on the shared single H100. +- Measured joint_rehearsal step6000: 1049.5 elapsed training-process seconds on the shared single H100. + +## E37 threshold0.4 on recency12000 full validation +- Checkpoint SHA-256: `8ccb6870a025e1097331a3a288b1183741a413f3460fbf3352d0c589c6a4394c`. +- Evaluation: 97 configurations, 151170 instances, 0 failed configurations; not separately timed seconds. +- Overall skill 0.366390; relative MASE 0.754640; relative WQL 0.531990. +- term skill: long=0.3917, medium=0.4037, short=0.3414. +- domain skill: Econ/Fin=0.1162, Energy=0.2258, Healthcare=0.4030, Nature=0.4203, Sales=0.3559, Transport=0.4622, Web/CloudOps=0.4911. +- frequency skill: A=0.2912, D=0.3374, H=0.3884, M=0.1159, Q=0.1840, S=0.4221, T=0.4262, W=0.1943. +- variates skill: multivariate=0.3853, univariate=0.3509. +- Outcome: Full0.366390, earlier1 0.330696, earlier2 0.357884. Clear improvement over the same checkpoint without zero projection. Superseded by the18000-step candidate on full validation and average across cutoffs. + +## E25 plus E37 recency18000 threshold0.4 full validation +- Checkpoint SHA-256: `f6d2c41a690159a5b9c2034be45718c408a30b0d34d9607c9a768b9926781bbd`. +- Evaluation: 97 configurations, 151170 instances, 0 failed configurations; not separately timed seconds. +- Overall skill 0.370171; relative MASE 0.750532; relative WQL 0.528537. +- term skill: long=0.3932, medium=0.4057, short=0.3469. +- domain skill: Econ/Fin=0.1099, Energy=0.2275, Healthcare=0.4340, Nature=0.4253, Sales=0.3541, Transport=0.4653, Web/CloudOps=0.4932. +- frequency skill: A=0.2819, D=0.3468, H=0.3906, M=0.1220, Q=0.1866, S=0.4218, T=0.4285, W=0.2054. +- variates skill: multivariate=0.3878, univariate=0.3558. +- Outcome: Published atomically. Full skill0.370171; earlier1 0.332400 and earlier2 0.356697. All97 configurations and151170 instances scored, zero failures. Actual package repeated examples are bitwise deterministic, finite and monotone; full inference118.1 seconds under concurrent training. + +## Published recency18000 zero0.4 first earlier diagnostic +- Checkpoint SHA-256: `f6d2c41a690159a5b9c2034be45718c408a30b0d34d9607c9a768b9926781bbd`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 24.86830711364746 seconds. +- Overall skill 0.332400; relative MASE 0.801955; relative WQL 0.555755. +- term skill: long=0.3980, medium=0.3574, short=0.2953. +- domain skill: Econ/Fin=0.1526, Energy=0.2268, Healthcare=0.3995, Nature=0.3561, Sales=0.3986, Transport=0.3699, Web/CloudOps=0.4472. +- frequency skill: A=0.2996, D=0.3516, H=0.3643, M=0.1721, Q=0.2330, S=0.3397, T=0.3325, W=0.2660. +- variates skill: multivariate=0.3492, univariate=0.3187. +- Outcome: Improves the previous published package and the12000-step zero0.4 candidate. + +## Published recency18000 zero0.4 second earlier diagnostic +- Checkpoint SHA-256: `f6d2c41a690159a5b9c2034be45718c408a30b0d34d9607c9a768b9926781bbd`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 24.40335988998413 seconds. +- Overall skill 0.356697; relative MASE 0.773731; relative WQL 0.534862. +- term skill: long=0.3657, medium=0.3874, short=0.3411. +- domain skill: Econ/Fin=0.1045, Energy=0.2331, Healthcare=0.3610, Nature=0.4656, Sales=0.5516, Transport=0.4179, Web/CloudOps=0.4303. +- frequency skill: A=0.3474, D=0.4275, H=0.3891, M=0.1599, Q=0.1548, S=0.2798, T=0.3574, W=0.2434. +- variates skill: multivariate=0.3611, univariate=0.3531. +- Outcome: Improves the previous published package; slightly below the12000-step zero0.4 candidate. + +## E37 complete diagnostic sweep receipts +All use the own recency12000 checkpoint SHA-256 `8ccb6870a025e1097331a3a288b1183741a413f3460fbf3352d0c589c6a4394c`; no training, fixed inference seed0. Compute below is CPU diagnostic elapsed time, not GPU training time. + +zero_mass, screen: 4.03 seconds. +- Setting 0.0: skill 0.359868; term short=0.3284, medium=0.4016, long=0.3960; domain Econ/Fin=0.1374, Energy=0.1931, Healthcare=0.3970, Nature=0.4170, Sales=0.3479, Transport=0.4621, Web/CloudOps=0.5005. +- Setting 0.001: skill 0.359874; term short=0.3284, medium=0.4016, long=0.3960; domain Econ/Fin=0.1374, Energy=0.1931, Healthcare=0.3970, Nature=0.4170, Sales=0.3479, Transport=0.4621, Web/CloudOps=0.5005. +- Setting 0.005: skill 0.359953; term short=0.3285, medium=0.4017, long=0.3961; domain Econ/Fin=0.1374, Energy=0.1933, Healthcare=0.3970, Nature=0.4171, Sales=0.3479, Transport=0.4621, Web/CloudOps=0.5006. +- Setting 0.02: skill 0.360509; term short=0.3292, medium=0.4020, long=0.3966; domain Econ/Fin=0.1374, Energy=0.1948, Healthcare=0.3970, Nature=0.4176, Sales=0.3480, Transport=0.4621, Web/CloudOps=0.5008. + +zero_mass, backcast: 3.65 seconds. +- Setting 0.0: skill 0.327844; term short=0.2909, medium=0.3529, long=0.3932; domain Econ/Fin=0.1636, Energy=0.2224, Healthcare=0.3816, Nature=0.3533, Sales=0.3955, Transport=0.3666, Web/CloudOps=0.4404. +- Setting 0.001: skill 0.327849; term short=0.2909, medium=0.3529, long=0.3932; domain Econ/Fin=0.1636, Energy=0.2224, Healthcare=0.3816, Nature=0.3533, Sales=0.3955, Transport=0.3666, Web/CloudOps=0.4404. +- Setting 0.005: skill 0.327890; term short=0.2909, medium=0.3529, long=0.3933; domain Econ/Fin=0.1636, Energy=0.2225, Healthcare=0.3816, Nature=0.3534, Sales=0.3955, Transport=0.3666, Web/CloudOps=0.4404. +- Setting 0.02: skill 0.328180; term short=0.2912, medium=0.3532, long=0.3937; domain Econ/Fin=0.1636, Energy=0.2229, Healthcare=0.3816, Nature=0.3537, Sales=0.3955, Transport=0.3666, Web/CloudOps=0.4409. + +zero_mass, backcast2: 3.62 seconds. +- Setting 0.0: skill 0.354561; term short=0.3397, medium=0.3828, long=0.3642; domain Econ/Fin=0.1095, Energy=0.2259, Healthcare=0.3738, Nature=0.4621, Sales=0.5594, Transport=0.4168, Web/CloudOps=0.4281. +- Setting 0.001: skill 0.354567; term short=0.3397, medium=0.3828, long=0.3642; domain Econ/Fin=0.1095, Energy=0.2259, Healthcare=0.3738, Nature=0.4621, Sales=0.5594, Transport=0.4168, Web/CloudOps=0.4282. +- Setting 0.005: skill 0.354631; term short=0.3398, medium=0.3829, long=0.3643; domain Econ/Fin=0.1095, Energy=0.2260, Healthcare=0.3738, Nature=0.4622, Sales=0.5594, Transport=0.4168, Web/CloudOps=0.4282. +- Setting 0.02: skill 0.354943; term short=0.3400, medium=0.3834, long=0.3646; domain Econ/Fin=0.1095, Energy=0.2266, Healthcare=0.3738, Nature=0.4627, Sales=0.5594, Transport=0.4168, Web/CloudOps=0.4283. + +zero_mass_wide, screen: 3.91 seconds. +- Setting 0.0: skill 0.359868; term short=0.3284, medium=0.4016, long=0.3960; domain Econ/Fin=0.1374, Energy=0.1931, Healthcare=0.3970, Nature=0.4170, Sales=0.3479, Transport=0.4621, Web/CloudOps=0.5005. +- Setting 0.02: skill 0.360509; term short=0.3292, medium=0.4020, long=0.3966; domain Econ/Fin=0.1374, Energy=0.1948, Healthcare=0.3970, Nature=0.4176, Sales=0.3480, Transport=0.4621, Web/CloudOps=0.5008. +- Setting 0.05: skill 0.362121; term short=0.3316, medium=0.4026, long=0.3972; domain Econ/Fin=0.1374, Energy=0.1998, Healthcare=0.3970, Nature=0.4186, Sales=0.3483, Transport=0.4621, Web/CloudOps=0.5012. +- Setting 0.1: skill 0.364736; term short=0.3357, medium=0.4036, long=0.3981; domain Econ/Fin=0.1374, Energy=0.2086, Healthcare=0.3970, Nature=0.4195, Sales=0.3487, Transport=0.4621, Web/CloudOps=0.5017. + +zero_mass_wide, backcast: 3.55 seconds. +- Setting 0.0: skill 0.327844; term short=0.2909, medium=0.3529, long=0.3932; domain Econ/Fin=0.1636, Energy=0.2224, Healthcare=0.3816, Nature=0.3533, Sales=0.3955, Transport=0.3666, Web/CloudOps=0.4404. +- Setting 0.02: skill 0.328180; term short=0.2912, medium=0.3532, long=0.3937; domain Econ/Fin=0.1636, Energy=0.2229, Healthcare=0.3816, Nature=0.3537, Sales=0.3955, Transport=0.3666, Web/CloudOps=0.4409. +- Setting 0.05: skill 0.328643; term short=0.2914, medium=0.3540, long=0.3942; domain Econ/Fin=0.1636, Energy=0.2235, Healthcare=0.3816, Nature=0.3546, Sales=0.3957, Transport=0.3666, Web/CloudOps=0.4415. +- Setting 0.1: skill 0.329276; term short=0.2917, medium=0.3550, long=0.3953; domain Econ/Fin=0.1636, Energy=0.2243, Healthcare=0.3816, Nature=0.3553, Sales=0.3959, Transport=0.3666, Web/CloudOps=0.4426. + +zero_mass_wide, backcast2: 3.53 seconds. +- Setting 0.0: skill 0.354561; term short=0.3397, medium=0.3828, long=0.3642; domain Econ/Fin=0.1095, Energy=0.2259, Healthcare=0.3738, Nature=0.4621, Sales=0.5594, Transport=0.4168, Web/CloudOps=0.4281. +- Setting 0.02: skill 0.354943; term short=0.3400, medium=0.3834, long=0.3646; domain Econ/Fin=0.1095, Energy=0.2266, Healthcare=0.3738, Nature=0.4627, Sales=0.5594, Transport=0.4168, Web/CloudOps=0.4283. +- Setting 0.05: skill 0.355475; term short=0.3406, medium=0.3840, long=0.3651; domain Econ/Fin=0.1095, Energy=0.2278, Healthcare=0.3738, Nature=0.4637, Sales=0.5595, Transport=0.4168, Web/CloudOps=0.4284. +- Setting 0.1: skill 0.356263; term short=0.3413, medium=0.3849, long=0.3660; domain Econ/Fin=0.1095, Energy=0.2295, Healthcare=0.3738, Nature=0.4650, Sales=0.5595, Transport=0.4168, Web/CloudOps=0.4287. + +zero_mass_range, screen: 3.63 seconds. +- Setting 0.1: skill 0.364736; term short=0.3357, medium=0.4036, long=0.3981; domain Econ/Fin=0.1374, Energy=0.2086, Healthcare=0.3970, Nature=0.4195, Sales=0.3487, Transport=0.4621, Web/CloudOps=0.5017. +- Setting 0.2: skill 0.368575; term short=0.3420, medium=0.4046, long=0.3988; domain Econ/Fin=0.1374, Energy=0.2225, Healthcare=0.3970, Nature=0.4210, Sales=0.3475, Transport=0.4621, Web/CloudOps=0.5015. +- Setting 0.4: skill 0.370559; term short=0.3458, medium=0.4052, long=0.3979; domain Econ/Fin=0.1374, Energy=0.2332, Healthcare=0.3970, Nature=0.4205, Sales=0.3463, Transport=0.4621, Web/CloudOps=0.4986. +- Setting 0.8: skill 0.364344; term short=0.3385, medium=0.4008, long=0.3925; domain Econ/Fin=0.1374, Energy=0.2220, Healthcare=0.3970, Nature=0.4198, Sales=0.3444, Transport=0.4621, Web/CloudOps=0.4869. + +zero_mass_range, backcast: 3.50 seconds. +- Setting 0.1: skill 0.329276; term short=0.2917, medium=0.3550, long=0.3953; domain Econ/Fin=0.1636, Energy=0.2243, Healthcare=0.3816, Nature=0.3553, Sales=0.3959, Transport=0.3666, Web/CloudOps=0.4426. +- Setting 0.2: skill 0.330173; term short=0.2923, medium=0.3563, long=0.3966; domain Econ/Fin=0.1636, Energy=0.2253, Healthcare=0.3816, Nature=0.3560, Sales=0.3970, Transport=0.3666, Web/CloudOps=0.4444. +- Setting 0.4: skill 0.330696; term short=0.2928, medium=0.3550, long=0.3988; domain Econ/Fin=0.1636, Energy=0.2247, Healthcare=0.3816, Nature=0.3559, Sales=0.3972, Transport=0.3666, Web/CloudOps=0.4472. +- Setting 0.8: skill 0.327637; term short=0.2916, medium=0.3471, long=0.3961; domain Econ/Fin=0.1636, Energy=0.2180, Healthcare=0.3815, Nature=0.3525, Sales=0.3939, Transport=0.3666, Web/CloudOps=0.4454. + +zero_mass_range, backcast2: 3.39 seconds. +- Setting 0.1: skill 0.356263; term short=0.3413, medium=0.3849, long=0.3660; domain Econ/Fin=0.1095, Energy=0.2295, Healthcare=0.3738, Nature=0.4650, Sales=0.5595, Transport=0.4168, Web/CloudOps=0.4287. +- Setting 0.2: skill 0.357389; term short=0.3423, medium=0.3862, long=0.3671; domain Econ/Fin=0.1095, Energy=0.2319, Healthcare=0.3738, Nature=0.4665, Sales=0.5592, Transport=0.4168, Web/CloudOps=0.4293. +- Setting 0.4: skill 0.357884; term short=0.3425, medium=0.3883, long=0.3665; domain Econ/Fin=0.1095, Energy=0.2327, Healthcare=0.3738, Nature=0.4661, Sales=0.5573, Transport=0.4168, Web/CloudOps=0.4312. +- Setting 0.8: skill 0.350745; term short=0.3358, medium=0.3808, long=0.3588; domain Econ/Fin=0.1095, Energy=0.2213, Healthcare=0.3737, Nature=0.4523, Sales=0.5499, Transport=0.4168, Web/CloudOps=0.4272. + +zero_phase, screen: 4.24 seconds. +- Setting None: skill 0.370559; term short=0.3458, medium=0.4052, long=0.3979; domain Econ/Fin=0.1374, Energy=0.2332, Healthcare=0.3970, Nature=0.4205, Sales=0.3463, Transport=0.4621, Web/CloudOps=0.4986. +- Setting 0: skill 0.367375; term short=0.3412, medium=0.4029, long=0.3972; domain Econ/Fin=0.1374, Energy=0.2196, Healthcare=0.3970, Nature=0.4183, Sales=0.3529, Transport=0.4621, Web/CloudOps=0.5008. +- Setting 4: skill 0.369637; term short=0.3443, medium=0.4040, long=0.3986; domain Econ/Fin=0.1374, Energy=0.2277, Healthcare=0.3970, Nature=0.4202, Sales=0.3515, Transport=0.4621, Web/CloudOps=0.5001. +- Setting 8: skill 0.369822; term short=0.3448, medium=0.4037, long=0.3986; domain Econ/Fin=0.1374, Energy=0.2278, Healthcare=0.3970, Nature=0.4202, Sales=0.3518, Transport=0.4621, Web/CloudOps=0.5007. + +zero_phase, backcast: 4.22 seconds. +- Setting None: skill 0.330696; term short=0.2928, medium=0.3550, long=0.3988; domain Econ/Fin=0.1636, Energy=0.2247, Healthcare=0.3816, Nature=0.3559, Sales=0.3972, Transport=0.3666, Web/CloudOps=0.4472. +- Setting 0: skill 0.328679; term short=0.2917, medium=0.3538, long=0.3940; domain Econ/Fin=0.1636, Energy=0.2231, Healthcare=0.3816, Nature=0.3547, Sales=0.4001, Transport=0.3666, Web/CloudOps=0.4412. +- Setting 4: skill 0.329503; term short=0.2920, medium=0.3549, long=0.3957; domain Econ/Fin=0.1636, Energy=0.2254, Healthcare=0.3816, Nature=0.3555, Sales=0.3995, Transport=0.3666, Web/CloudOps=0.4415. +- Setting 8: skill 0.329633; term short=0.2921, medium=0.3549, long=0.3960; domain Econ/Fin=0.1636, Energy=0.2252, Healthcare=0.3816, Nature=0.3555, Sales=0.4003, Transport=0.3666, Web/CloudOps=0.4420. + +zero_phase, backcast2: 3.98 seconds. +- Setting None: skill 0.357884; term short=0.3425, medium=0.3883, long=0.3665; domain Econ/Fin=0.1095, Energy=0.2327, Healthcare=0.3738, Nature=0.4661, Sales=0.5573, Transport=0.4168, Web/CloudOps=0.4312. +- Setting 0: skill 0.355941; term short=0.3416, medium=0.3833, long=0.3653; domain Econ/Fin=0.1095, Energy=0.2288, Healthcare=0.3738, Nature=0.4641, Sales=0.5605, Transport=0.4168, Web/CloudOps=0.4286. +- Setting 4: skill 0.357313; term short=0.3424, medium=0.3856, long=0.3670; domain Econ/Fin=0.1095, Energy=0.2321, Healthcare=0.3738, Nature=0.4661, Sales=0.5605, Transport=0.4168, Web/CloudOps=0.4289. +- Setting 8: skill 0.357230; term short=0.3422, medium=0.3858, long=0.3672; domain Econ/Fin=0.1095, Energy=0.2314, Healthcare=0.3738, Nature=0.4664, Sales=0.5608, Transport=0.4168, Web/CloudOps=0.4291. + +E40 outcome: unrestricted E37 threshold0.4 beats all global/phase-probability guards on every cutoff. Phase4 gives0.369637/0.329503/0.357313; phase8 gives0.369822/0.329633/0.357230; unrestricted gives0.370559/0.330696/0.357884. Do not add the probability guard. + +E36 component checkpoint hashes: recency12000 `8ccb6870a025e1097331a3a288b1183741a413f3460fbf3352d0c589c6a4394c`; control18000 `b7bbb7473a317145235c133492a0d743a90a01ff252577a4c8a4651db008a138`. These were cached diagnostic blends only, without additional training. + +## E41: learned zero-probability classifier with a frozen backbone +Hypothesis: a classifier trained on allowed windows can make the zero projection conditional on future zero probability more accurately than the empirical guards rejected in E40. Freeze E25 recency18000 and train only a small MLP on decoder representations, global zero fraction, two four-cycle phase zero frequencies and absolute normalized median forecast. The classifier receives BCE loss for exact-zero futures only on sign-homogeneous contexts containing at least4 zeros and10% zeros. At inference, average probabilities from both sign orientations and allow the existing threshold0.4 projection only for quantile levels at or below that probability. Every instance passes through the same backbone and classifier. Bias5 initialization makes probability0.993 and preserves E37 forecasts. Own packed_sample and unchanged synthetic generator; seed83, batch128, LR2e-4, 6000-step schedule, one Torch CPU thread. This adds no external data and trains no backbone parameters. + +## E35 explicit trend inputs 3000-step screen +- Checkpoint SHA-256: `17d346dde232341672545210839ea10fc6e147d6e1d65d2457497d790fc652f6`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 23.317448616027832 seconds. +- Overall skill 0.351994; relative MASE 0.770114; relative WQL 0.545259. +- term skill: long=0.3848, medium=0.3991, short=0.3197. +- domain skill: Econ/Fin=0.1029, Energy=0.1770, Healthcare=0.4091, Nature=0.4082, Sales=0.3492, Transport=0.4538, Web/CloudOps=0.5011. +- frequency skill: A=0.3685, D=0.3335, H=0.3745, M=0.0901, Q=0.1894, S=0.4379, T=0.3955, W=0.1971. +- variates skill: multivariate=0.3833, univariate=0.3260. +- Outcome: Small improvement over matched E25: screen0.351994 versus0.351702, first earlier0.321829 versus0.321665. Continue to6000 to determine whether this persists. + +E35 training through3000 took850.6 elapsed process seconds on the shared H100. + +## E42: match training decoder horizons to available labels (prepared) +Hypothesis: short pretraining series supply fewer finite future labels than the requested32/128/512/1024 horizon, yet the current decoder sees every requested future token and receives that larger horizon in its metadata. During training only, infer each row's available horizon as its last finite target position, rounded up to the patch boundary; use that length for horizon metadata and mask unused future tokens as self-attention keys in every decoder layer. The label mask and loss remain unchanged. At inference the full requested horizon is used exactly as before, with no new inputs or fitting. Match E38 packed_sample control: own recency12000 initialization, seed79, batch256, LR5e-5, 12000 steps, unchanged sampler. No new model parameters or data. Planned to begin after the small frozen classifier releases memory; GPU evaluations are serialized to bound peak memory. + +E38 expanded corpus arm training started at 2026-10-22T04:02:57Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E41 initialization check: all original backbone tensors match the parent bitwise. With identical screen batches, every quantile in all97 configurations is bitwise equal to the parent; maximum difference0. The parent direct-screen score is0.374499664. The cached subset of full-validation predictions scores0.374469795 because batch composition and padding differ slightly; matched direct evaluations are used for E41 comparisons. The classifier has75,920 trainable parameters; total36,873,648. At1000/3000 steps, screen0.373402/0.374243 remains below the unchanged parent. Continue to the planned6000-step endpoint. + +E42 data diagnostic (only packed pretraining data, seed79, 640 windows per requested horizon): H32: 6.4% partial futures, mean available31.0; H128: 14.5% partial futures, mean available117.9; H512: 16.7% partial futures, mean available456.8; H1024: 19.2% partial futures, mean available886.4. CPU elapsed 0.93 seconds. A forward check verified bitwise unchanged ordinary inference and agreement within5.4e-7 between a padded masked short target and an actual short-horizon call. + +E35 first three cutoff comparisons at3000 steps: screen0.351994 versus matched0.351702; earlier1 0.321829 versus0.321665; earlier2 0.346465 versus0.346396. All gains are small; keep the6000-step comparison before drawing an architectural conclusion. + +## E22 depth36 control final24000-step screen +- Checkpoint SHA-256: `d60cdc55e693df0caf601ded61031be859ee027b0da46585586a3c6a3b5276ba`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 22.044859170913696 seconds. +- Overall skill 0.359867; relative MASE 0.762956; relative WQL 0.537082. +- term skill: long=0.3922, medium=0.4034, short=0.3293. +- domain skill: Econ/Fin=0.1126, Energy=0.1866, Healthcare=0.4038, Nature=0.4208, Sales=0.3464, Transport=0.4583, Web/CloudOps=0.5101. +- frequency skill: A=0.3718, D=0.3396, H=0.3822, M=0.0911, Q=0.1974, S=0.4422, T=0.4054, W=0.2072. +- variates skill: multivariate=0.3956, univariate=0.3299. +- Outcome: Final mean-template screen0.359867 improves its18000-step0.359224 but remains below E25 recency18000 at0.361265. Finished5206.4 elapsed training-process seconds; no new package selected. GPU capacity transferred to E38 expanded corpus arm. + +E42 partial target horizons training started at 2026-10-22T04:06:37Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +## E43: recheck fixed prior strengths on the stronger backbone +Hypothesis: the seasonal and continuity corrections selected on earlier models may be too strong after continued pretraining. Cache uncorrected symmetric neural forecasts from E25 recency18000, then compare all nine combinations of seasonal blend strength0/0.5/1 and continuity blend strength0/0.5/1. The candidate seasonal forecast is the existing aligned rule; partial strength interpolates it with the neural forecast. Continuity strength similarly interpolates the existing tau24 correction with its input. Keep the selected zero-mass threshold0.4 fixed and apply it last. Use the same global settings on all three cutoffs. No training or new data; inference seed0. + +## E41 frozen zero classifier3000-step screen +- Checkpoint SHA-256: `08b5cc376746c87331cee4628ec56126adf48076aa08ffd2f2bd3f74427d4d96`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 27.868639707565308 seconds. +- Overall skill 0.374243; relative MASE 0.746287; relative WQL 0.524694. +- term skill: long=0.3998, medium=0.4060, short=0.3515. +- domain skill: Econ/Fin=0.1332, Energy=0.2307, Healthcare=0.4319, Nature=0.4244, Sales=0.3502, Transport=0.4650, Web/CloudOps=0.5035. +- frequency skill: A=0.3692, D=0.3463, H=0.3950, M=0.1023, Q=0.2006, S=0.4218, T=0.4344, W=0.2127. +- variates skill: multivariate=0.3931, univariate=0.3588. +- Outcome: Screen0.374243 is below unchanged parent0.374500. Earlier1 0.331330 versus0.332400; earlier2 0.356106 versus0.356697. The classifier repairs some sales and cloud errors but gives back more solar improvement; no package change. + +## E44: training-consistent trend summary on short contexts +Code review found that the original trend basis chooses its averaging width from padded tensor width: min(128,max(4,c//4)). Training always pads to at least512, making this width128, whereas short inference batches often select smaller widths. This also makes the fixed trend summary sensitive to batch padding. Test a globally fixed128-point width at inference, preserving the exact formula used throughout training. It uses only each row's observed values; other features and all selected corrections remain unchanged. No new parameters, training or data. Compare the recency18000 checkpoint on the screen and both earlier windows before selecting a package. + +E44 first diagnostic launch failed before producing a forecast: a source-edit comment accidentally hid the adjacent recent-mean assignment. Corrected the assignment and restarted all three diagnostics; no failed output was scored or published. + +## E41 frozen zero classifier final6000-step screen +- Checkpoint SHA-256: `9dcf4fa821ca636b648447e0516258a3da7056b5e98ec944d0251c73e5ae3006`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 27.14689803123474 seconds. +- Overall skill 0.374576; relative MASE 0.746312; relative WQL 0.524117. +- term skill: long=0.3999, medium=0.4061, short=0.3520. +- domain skill: Econ/Fin=0.1332, Energy=0.2315, Healthcare=0.4319, Nature=0.4249, Sales=0.3502, Transport=0.4650, Web/CloudOps=0.5037. +- frequency skill: A=0.3692, D=0.3465, H=0.3951, M=0.1017, Q=0.2006, S=0.4218, T=0.4353, W=0.2127. +- variates skill: multivariate=0.3934, univariate=0.3592. +- Outcome: Final screen0.374576 versus unchanged parent0.374500 is nearly tied. Both earlier cutoffs regress:0.331200 versus0.332400 and0.356162 versus0.356697. Do not select this classifier; retain fixed zero projection. Training took559.8 process seconds; backbone stayed frozen. + +## E43 complete prior-strength comparison +Checkpoint SHA-256 `f6d2c41a690159a5b9c2034be45718c408a30b0d34d9607c9a768b9926781bbd`; fixed inference seed0; no training. + +screen: 10.68 CPU diagnostic seconds. +- Seasonal0.0, continuity0.0: skill0.352854; term short=0.3372, medium=0.3820, long=0.3635; domain Econ/Fin=0.0649, Energy=0.2249, Healthcare=0.3918, Nature=0.4305, Sales=0.3458, Transport=0.4676, Web/CloudOps=0.4394. +- Seasonal0.0, continuity0.5: skill0.358015; term short=0.3463, medium=0.3820, long=0.3639; domain Econ/Fin=0.1059, Energy=0.2325, Healthcare=0.4145, Nature=0.4284, Sales=0.3457, Transport=0.4662, Web/CloudOps=0.4421. +- Seasonal0.0, continuity1.0: skill0.358419; term short=0.3472, medium=0.3814, long=0.3642; domain Econ/Fin=0.1280, Energy=0.2289, Healthcare=0.4280, Nature=0.4258, Sales=0.3457, Transport=0.4637, Web/CloudOps=0.4444. +- Seasonal0.5, continuity0.0: skill0.361594; term short=0.3390, medium=0.3982, long=0.3816; domain Econ/Fin=0.0723, Energy=0.2304, Healthcare=0.3951, Nature=0.4304, Sales=0.3450, Transport=0.4683, Web/CloudOps=0.4668. +- Seasonal0.5, continuity0.5: skill0.367185; term short=0.3491, medium=0.3978, long=0.3823; domain Econ/Fin=0.1132, Energy=0.2381, Healthcare=0.4171, Nature=0.4282, Sales=0.3449, Transport=0.4670, Web/CloudOps=0.4713. +- Seasonal0.5, continuity1.0: skill0.367831; term short=0.3505, medium=0.3970, long=0.3826; domain Econ/Fin=0.1347, Energy=0.2340, Healthcare=0.4301, Nature=0.4256, Sales=0.3449, Transport=0.4647, Web/CloudOps=0.4751. +- Seasonal1.0, continuity0.0: skill0.366912; term short=0.3385, medium=0.4065, long=0.3980; domain Econ/Fin=0.0640, Energy=0.2315, Healthcare=0.3974, Nature=0.4301, Sales=0.3440, Transport=0.4682, Web/CloudOps=0.4881. +- Seasonal1.0, continuity0.5: skill0.373401; term short=0.3497, medium=0.4072, long=0.3989; domain Econ/Fin=0.1094, Energy=0.2393, Healthcare=0.4192, Nature=0.4280, Sales=0.3439, Transport=0.4672, Web/CloudOps=0.4952. +- Seasonal1.0, continuity1.0: skill0.374500; term short=0.3517, medium=0.4069, long=0.3994; domain Econ/Fin=0.1332, Energy=0.2347, Healthcare=0.4319, Nature=0.4254, Sales=0.3438, Transport=0.4650, Web/CloudOps=0.5007. + +backcast: 11.26 CPU diagnostic seconds. +- Seasonal0.0, continuity0.0: skill0.307142; term short=0.2826, medium=0.3351, long=0.3410; domain Econ/Fin=0.1076, Energy=0.2255, Healthcare=0.3430, Nature=0.3552, Sales=0.3986, Transport=0.3768, Web/CloudOps=0.3599. +- Seasonal0.0, continuity0.5: skill0.312170; term short=0.2916, medium=0.3354, long=0.3411; domain Econ/Fin=0.1400, Energy=0.2277, Healthcare=0.3844, Nature=0.3556, Sales=0.3986, Transport=0.3764, Web/CloudOps=0.3620. +- Seasonal0.0, continuity1.0: skill0.314938; term short=0.2967, medium=0.3353, long=0.3409; domain Econ/Fin=0.1539, Energy=0.2269, Healthcare=0.4209, Nature=0.3555, Sales=0.3986, Transport=0.3753, Web/CloudOps=0.3636. +- Seasonal0.5, continuity0.0: skill0.318715; term short=0.2868, medium=0.3483, long=0.3683; domain Econ/Fin=0.1210, Energy=0.2277, Healthcare=0.3359, Nature=0.3556, Sales=0.3986, Transport=0.3747, Web/CloudOps=0.4076. +- Seasonal0.5, continuity0.5: skill0.323130; term short=0.2948, medium=0.3486, long=0.3682; domain Econ/Fin=0.1519, Energy=0.2300, Healthcare=0.3781, Nature=0.3560, Sales=0.3986, Transport=0.3744, Web/CloudOps=0.4072. +- Seasonal0.5, continuity1.0: skill0.325194; term short=0.2988, medium=0.3485, long=0.3679; domain Econ/Fin=0.1645, Energy=0.2291, Healthcare=0.4163, Nature=0.3559, Sales=0.3986, Transport=0.3733, Web/CloudOps=0.4059. +- Seasonal1.0, continuity0.0: skill0.326613; term short=0.2844, medium=0.3570, long=0.3986; domain Econ/Fin=0.1011, Energy=0.2252, Healthcare=0.3156, Nature=0.3558, Sales=0.3986, Transport=0.3713, Web/CloudOps=0.4530. +- Seasonal1.0, continuity0.5: skill0.330837; term short=0.2922, medium=0.3575, long=0.3984; domain Econ/Fin=0.1366, Energy=0.2277, Healthcare=0.3596, Nature=0.3563, Sales=0.3986, Transport=0.3710, Web/CloudOps=0.4510. +- Seasonal1.0, continuity1.0: skill0.332400; term short=0.2953, medium=0.3574, long=0.3980; domain Econ/Fin=0.1526, Energy=0.2268, Healthcare=0.3995, Nature=0.3561, Sales=0.3986, Transport=0.3699, Web/CloudOps=0.4472. + +backcast2: 10.77 CPU diagnostic seconds. +- Seasonal0.0, continuity0.0: skill0.342833; term short=0.3444, medium=0.3372, long=0.3447; domain Econ/Fin=0.0850, Energy=0.2421, Healthcare=0.3909, Nature=0.4651, Sales=0.5517, Transport=0.4200, Web/CloudOps=0.3492. +- Seasonal0.0, continuity0.5: skill0.343238; term short=0.3448, medium=0.3374, long=0.3451; domain Econ/Fin=0.1046, Energy=0.2395, Healthcare=0.3778, Nature=0.4655, Sales=0.5516, Transport=0.4195, Web/CloudOps=0.3541. +- Seasonal0.0, continuity1.0: skill0.341670; term short=0.3421, medium=0.3372, long=0.3453; domain Econ/Fin=0.1096, Energy=0.2345, Healthcare=0.3641, Nature=0.4656, Sales=0.5516, Transport=0.4183, Web/CloudOps=0.3571. +- Seasonal0.5, continuity0.0: skill0.353176; term short=0.3476, medium=0.3630, long=0.3580; domain Econ/Fin=0.0889, Energy=0.2454, Healthcare=0.3896, Nature=0.4651, Sales=0.5517, Transport=0.4202, Web/CloudOps=0.3933. +- Seasonal0.5, continuity0.5: skill0.353075; term short=0.3473, medium=0.3630, long=0.3584; domain Econ/Fin=0.1076, Energy=0.2421, Healthcare=0.3764, Nature=0.4655, Sales=0.5516, Transport=0.4198, Web/CloudOps=0.3966. +- Seasonal0.5, continuity1.0: skill0.350860; term short=0.3435, medium=0.3626, long=0.3584; domain Econ/Fin=0.1107, Energy=0.2362, Healthcare=0.3627, Nature=0.4656, Sales=0.5516, Transport=0.4185, Web/CloudOps=0.3980. +- Seasonal1.0, continuity0.0: skill0.359824; term short=0.3464, medium=0.3881, long=0.3655; domain Econ/Fin=0.0796, Energy=0.2431, Healthcare=0.3878, Nature=0.4651, Sales=0.5517, Transport=0.4196, Web/CloudOps=0.4291. +- Seasonal1.0, continuity0.5: skill0.359396; term short=0.3456, medium=0.3880, long=0.3658; domain Econ/Fin=0.1008, Energy=0.2396, Healthcare=0.3747, Nature=0.4655, Sales=0.5516, Transport=0.4192, Web/CloudOps=0.4307. +- Seasonal1.0, continuity1.0: skill0.356697; term short=0.3411, medium=0.3874, long=0.3657; domain Econ/Fin=0.1045, Energy=0.2331, Healthcare=0.3610, Nature=0.4656, Sales=0.5516, Transport=0.4179, Web/CloudOps=0.4303. + +E43 outcome: retain both corrections at full strength. Seasonal full strength wins at every cutoff. Full continuity wins the main screen and first earlier cutoff; removing or weakening it helps the second earlier cutoff. Half continuity has essentially the same three-cutoff average but lowers the main screen, so the current rule is retained. This confirms that the fixed corrections still contribute after additional pretraining. + +E39 pre-launch correction: require at least one strictly positive or negative observed value before imposing the corresponding training bound. All-zero contexts otherwise satisfy both signs and would force every quantile to zero. Such contexts retain the original unconstrained training forward pass; the existing final nonnegative inference projection remains unchanged. This correction was made before E39 training started. + +E44 selected: full validation0.371267 versus previous0.370171; matched direct screen0.375386 versus0.374500; earlier1 0.333401 versus0.332400; earlier2 0.357015 versus0.356697. All improve. Full package inference took116.2 seconds under concurrent training, with97 configurations and151170 instances, zero failures and no quantile crossings. Repeated relocated examples are bitwise identical. With the actual trained model, adding left padding to histories of lengths8/16/40 changes raw forecasts by at most3.82e-6 in float32, consistent with numerical reduction differences. The averaging width is now independent of batch padding and matches all pretraining context lengths. No training or parameter changes were needed. + +## E44 fixed128 trend summary full package validation +- Checkpoint SHA-256: `f6d2c41a690159a5b9c2034be45718c408a30b0d34d9607c9a768b9926781bbd`. +- Evaluation: 97 configurations, 151170 instances, 0 failed configurations; not separately timed seconds. +- Overall skill 0.371267; relative MASE 0.749824; relative WQL 0.527198. +- term skill: long=0.3932, medium=0.4057, short=0.3489. +- domain skill: Econ/Fin=0.1097, Energy=0.2283, Healthcare=0.4445, Nature=0.4270, Sales=0.3536, Transport=0.4653, Web/CloudOps=0.4932. +- frequency skill: A=0.2900, D=0.3545, H=0.3906, M=0.1144, Q=0.1842, S=0.4218, T=0.4285, W=0.2081. +- variates skill: multivariate=0.3889, univariate=0.3569. +- Outcome: Published atomically. Full0.371267, screen0.375386, first earlier0.333401, second earlier0.357015. All improve over the previous package; repeated relocated inference is bitwise deterministic and all151170 instances score successfully. + +## E44 first earlier diagnostic +- Checkpoint SHA-256: `f6d2c41a690159a5b9c2034be45718c408a30b0d34d9607c9a768b9926781bbd`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 24.190837860107422 seconds. +- Overall skill 0.333401; relative MASE 0.800857; relative WQL 0.554849. +- term skill: long=0.3980, medium=0.3574, short=0.2971. +- domain skill: Econ/Fin=0.1546, Energy=0.2269, Healthcare=0.4152, Nature=0.3561, Sales=0.3982, Transport=0.3697, Web/CloudOps=0.4472. +- frequency skill: A=0.3057, D=0.3535, H=0.3642, M=0.1858, Q=0.2322, S=0.3397, T=0.3325, W=0.2671. +- variates skill: multivariate=0.3493, univariate=0.3205. +- Outcome: Improves the preceding published package. + +## E44 second earlier diagnostic +- Checkpoint SHA-256: `f6d2c41a690159a5b9c2034be45718c408a30b0d34d9607c9a768b9926781bbd`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 24.125259160995483 seconds. +- Overall skill 0.357015; relative MASE 0.773709; relative WQL 0.534347. +- term skill: long=0.3657, medium=0.3874, short=0.3417. +- domain skill: Econ/Fin=0.1037, Energy=0.2341, Healthcare=0.3586, Nature=0.4669, Sales=0.5519, Transport=0.4175, Web/CloudOps=0.4304. +- frequency skill: A=0.3474, D=0.4297, H=0.3890, M=0.1482, Q=0.1491, S=0.2798, T=0.3574, W=0.2484. +- variates skill: multivariate=0.3619, univariate=0.3530. +- Outcome: Improves the preceding published package. + +E35 follow-up: compare both6000-step models again with the now-selected E44 fixed128 basis and E37 zero0.4 rule. The old adaptive-width basis may interact with the new learned short-trend features, so this paired diagnostic will check whether their small gain changes once training/inference formulas agree. No retraining or new thresholds. + +## E31 amplitude synthetic12000-step screen +- Checkpoint SHA-256: `88d6ebecc5342e428b803fcb60af38cafa8f94383976621f3f200abee9b2eb0e`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 25.205806970596313 seconds. +- Overall skill 0.358165; relative MASE 0.764973; relative WQL 0.538519. +- term skill: long=0.3902, medium=0.4022, short=0.3275. +- domain skill: Econ/Fin=0.1122, Energy=0.1848, Healthcare=0.3959, Nature=0.4185, Sales=0.3479, Transport=0.4568, Web/CloudOps=0.5094. +- frequency skill: A=0.3775, D=0.3345, H=0.3814, M=0.0974, Q=0.1993, S=0.4416, T=0.4040, W=0.1998. +- variates skill: multivariate=0.3933, univariate=0.3287. +- Outcome: Mean-template screen0.358165 remains above matched E25-12000 0.357241, after gains at3000 and6000. The advantage is smaller than at6000; continue to18000 and24000 before selecting a new package. + +## E35 explicit trend6000-step screen +- Checkpoint SHA-256: `2ad3f9148954d7b3a16365ec529767cc3a0803b4488c7a475838725497c13565`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 25.423240423202515 seconds. +- Overall skill 0.353152; relative MASE 0.769279; relative WQL 0.543902. +- term skill: long=0.3873, medium=0.3990, short=0.3208. +- domain skill: Econ/Fin=0.1103, Energy=0.1816, Healthcare=0.3998, Nature=0.4115, Sales=0.3496, Transport=0.4548, Web/CloudOps=0.4989. +- frequency skill: A=0.3705, D=0.3396, H=0.3769, M=0.0764, Q=0.1986, S=0.4369, T=0.3960, W=0.1933. +- variates skill: multivariate=0.3851, univariate=0.3265. +- Outcome: Mean-template screen0.353152 versus matched E25 0.352851; earlier1 0.323894 versus0.324008; earlier2 0.349429 versus0.349098. With all selected fixed rules, screen0.366300 versus matched0.366032. The effect remains small; retain checkpoints and compare at12000. + +amplitude_synth through12000: 3311.5 elapsed training-process seconds on the shared H100. + +trend_features through6000: 1795.6 elapsed training-process seconds on the shared H100. + +E39 bounded quantiles training started at 2026-10-22T04:19:57Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +## E25 recency final24000-step matched mean-template screen +- Checkpoint SHA-256: `1530fbb577a87ca4eb39da83d6fee9b8ee5bc924202e021e3a7b56493112f564`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 24.549001216888428 seconds. +- Overall skill 0.361808; relative MASE 0.760201; relative WQL 0.535765. +- term skill: long=0.3930, medium=0.4043, short=0.3321. +- domain skill: Econ/Fin=0.1144, Energy=0.1875, Healthcare=0.4304, Nature=0.4242, Sales=0.3432, Transport=0.4595, Web/CloudOps=0.5080. +- frequency skill: A=0.3731, D=0.3487, H=0.3832, M=0.0957, Q=0.1965, S=0.4423, T=0.4054, W=0.2079. +- variates skill: multivariate=0.3953, univariate=0.3338. +- Outcome: Final screen0.361808 versus matched E22-24000 0.359867. The learned recency features improve the matched comparison at every evaluated checkpoint. Completed5879.4 elapsed training-process seconds; full validation with selected fixed rules is pending. + +## E38 expanded corpus3000-step screen +- Checkpoint SHA-256: `13cb3d2a222cd09f622eff3fe1657c4aebe2b1f2ca22a226462ecd0bb2c94026`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 23.664713144302368 seconds. +- Overall skill 0.358667; relative MASE 0.763557; relative WQL 0.538674. +- term skill: long=0.3925, medium=0.4038, short=0.3268. +- domain skill: Econ/Fin=0.1145, Energy=0.1852, Healthcare=0.4021, Nature=0.4196, Sales=0.3470, Transport=0.4576, Web/CloudOps=0.5080. +- frequency skill: A=0.3749, D=0.3373, H=0.3835, M=0.0979, Q=0.1983, S=0.4405, T=0.4029, W=0.1974. +- variates skill: multivariate=0.3933, univariate=0.3297. +- Outcome: Screen0.358667 versus matched packed_sample control0.358802: nearly tied. Broader corpus coverage has not yet provided a clear advantage. Continue to6000 and12000; source probabilities remain fixed to the original mixture. + +## E38 packed_sample control6000-step screen +- Checkpoint SHA-256: `3b6a1f25cef4ecafcb7bde8ee9faf1cbe4c68a0c2fbb9594ce26eb3c222f3720`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 25.290119647979736 seconds. +- Overall skill 0.358628; relative MASE 0.763471; relative WQL 0.538799. +- term skill: long=0.3894, medium=0.4025, short=0.3286. +- domain skill: Econ/Fin=0.1093, Energy=0.1839, Healthcare=0.4157, Nature=0.4245, Sales=0.3451, Transport=0.4579, Web/CloudOps=0.5041. +- frequency skill: A=0.3762, D=0.3427, H=0.3805, M=0.1014, Q=0.1966, S=0.4404, T=0.4018, W=0.2035. +- variates skill: multivariate=0.3910, univariate=0.3316. +- Outcome: Screen0.358628 versus this restart at3000 0.358802. This restart has not surpassed uninterrupted E25 continuation. Retain as the matched control for corpus coverage, bounded quantiles and partial target horizons; assess after learning-rate decay. + +## E45: average late recency checkpoints +Hypothesis: uniform parameter averaging of the same training trajectory can reduce checkpoint variation without adding inference cost. Average own E25 EMA checkpoints at18000/21000/24000 in FP32, retaining their shared configuration. This is one model with fixed averaged weights; every parent was trained here from the same random-initialization lineage, seed59. No additional data or gradient updates. Use the selected aligned seasonal rule, continuity, zero0.4 and fixed128 trend basis. Evaluate all three cutoffs before building a full candidate. The averaging script and every parent hash are preserved. + +E25 final24000-step package selected: full0.371479 versus18000-step0.371267; direct screen0.375502 versus0.375386; first earlier0.334180 versus0.333401; second earlier0.358275 versus0.357015. All improve. Full inference126.1 seconds under concurrent training;97 configurations,151170 instances, zero failures and no quantile crossings. Repeated relocated examples are bitwise identical, finite and monotone. Fixed rules are unchanged from E44. + +E45 outcome: the uniform18000/21000/24000 EMA average scores0.375408/0.333912/0.358081 on the three cutoffs, below the final24000 checkpoint at0.375502/0.334180/0.358275 on every cutoff. Not selected; no full package evaluation. No training compute; parameter averaging was not separately timed, and individual diagnostic evaluation times are recorded below. + +## E25 final24000-step package with selected fixed rules +- Checkpoint SHA-256: `1530fbb577a87ca4eb39da83d6fee9b8ee5bc924202e021e3a7b56493112f564`. +- Evaluation: 97 configurations, 151170 instances, 0 failed configurations; not separately timed seconds. +- Overall skill 0.371479; relative MASE 0.748783; relative WQL 0.527575. +- term skill: long=0.3935, medium=0.4057, short=0.3491. +- domain skill: Econ/Fin=0.1165, Energy=0.2279, Healthcare=0.4442, Nature=0.4287, Sales=0.3521, Transport=0.4652, Web/CloudOps=0.4925. +- frequency skill: A=0.2919, D=0.3570, H=0.3902, M=0.1164, Q=0.1836, S=0.4232, T=0.4289, W=0.2028. +- variates skill: multivariate=0.3893, univariate=0.3569. +- Outcome: Published atomically. Full0.371479, screen0.375502, earlier1 0.334180, earlier2 0.358275. All improve over the preceding18000-step package. All151170 instances score; repeated relocated examples are bitwise deterministic, finite and monotone. + +## Published recency24000 first earlier diagnostic +- Checkpoint SHA-256: `1530fbb577a87ca4eb39da83d6fee9b8ee5bc924202e021e3a7b56493112f564`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 24.669825792312622 seconds. +- Overall skill 0.334180; relative MASE 0.799611; relative WQL 0.554415. +- term skill: long=0.3968, medium=0.3571, short=0.2993. +- domain skill: Econ/Fin=0.1593, Energy=0.2277, Healthcare=0.4063, Nature=0.3608, Sales=0.3980, Transport=0.3712, Web/CloudOps=0.4466. +- frequency skill: A=0.3097, D=0.3512, H=0.3634, M=0.1820, Q=0.2352, S=0.3426, T=0.3343, W=0.2771. +- variates skill: multivariate=0.3511, univariate=0.3204. +- Outcome: Improves the preceding package. + +## Published recency24000 second earlier diagnostic +- Checkpoint SHA-256: `1530fbb577a87ca4eb39da83d6fee9b8ee5bc924202e021e3a7b56493112f564`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 25.378834009170532 seconds. +- Overall skill 0.358275; relative MASE 0.771140; relative WQL 0.534029. +- term skill: long=0.3653, medium=0.3854, short=0.3449. +- domain skill: Econ/Fin=0.1098, Energy=0.2362, Healthcare=0.3503, Nature=0.4701, Sales=0.5516, Transport=0.4194, Web/CloudOps=0.4299. +- frequency skill: A=0.3501, D=0.4315, H=0.3891, M=0.1569, Q=0.1519, S=0.2833, T=0.3571, W=0.2551. +- variates skill: multivariate=0.3625, univariate=0.3548. +- Outcome: Improves the preceding package. + +## E45 averaged late EMA screen +- Checkpoint SHA-256: `9b3541cfc195324574d22e27a8e3ac38edf7408712372933c645c892f39fa746`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 25.790673971176147 seconds. +- Overall skill 0.375408; relative MASE 0.746595; relative WQL 0.522527. +- term skill: long=0.3999, medium=0.4064, short=0.3534. +- domain skill: Econ/Fin=0.1379, Energy=0.2352, Healthcare=0.4383, Nature=0.4274, Sales=0.3404, Transport=0.4653, Web/CloudOps=0.5004. +- frequency skill: A=0.3761, D=0.3516, H=0.3953, M=0.0934, Q=0.2004, S=0.4222, T=0.4355, W=0.2141. +- variates skill: multivariate=0.3931, univariate=0.3610. +- Outcome: Below the final24000 checkpoint on all three cutoffs; not selected. + +## E42 partial target horizons3000-step screen +- Checkpoint SHA-256: `fce955a709ee54429c943e3962df49055444d5a15453865a01e4883614425917`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 25.083299160003662 seconds. +- Overall skill 0.358812; relative MASE 0.763592; relative WQL 0.538405. +- term skill: long=0.3907, medium=0.4016, short=0.3287. +- domain skill: Econ/Fin=0.1123, Energy=0.1842, Healthcare=0.4163, Nature=0.4220, Sales=0.3469, Transport=0.4589, Web/CloudOps=0.5047. +- frequency skill: A=0.3754, D=0.3440, H=0.3817, M=0.1026, Q=0.1980, S=0.4409, T=0.3995, W=0.2076. +- variates skill: multivariate=0.3908, univariate=0.3321. +- Outcome: Screen0.358812 versus matched control0.358802 is effectively tied. Gains in annual, quarterly, monthly and weekly groups are offset by minute-frequency losses. Continue to6000 and12000 to assess persistence. + +## E46: use forecast slopes for the fixed continuity correction +A per-channel diagnostic found that several ETT2 short-horizon forecasts underreact to a rebound after the latest trough: truth rises about1.1–1.9 context standard deviations in multiple channels, while the model rises only0.6–0.9. The current continuity anchor extrapolates the previous eight differences and may continue the old direction across a turn. Keep the smoothness gate, tau24, seasonal rule and zero0.4 fixed; compare past8 (current), zero slope, first forecast difference, and median of the first eight forecast differences. These are fixed transformations, with no fitting. Reuse the E25-18000 raw forecast caches for a paired diagnostic on all three cutoffs; their old short-context trend basis is unchanged within this comparison. Any selected variant must transfer to the latest fixed128 package before publication. + +## E47: frozen-backbone confidence-query projection (prepared) +Hypothesis: fixed lag-difference statistics provide information about local noise and seasonal repeatability that the decoder may otherwise infer inefficiently from raw patches. Add a zero-initialized linear projection of six log-scaled normalized statistics: MAE and RMS difference at lag1 over512 points, and at each of the two frequency-derived periods over at most8 cycles. Fewer than8 valid pairs use neutral defaults1 and sqrt(2). The3072 new parameters affect decoder queries; freeze the complete E25 recency24000 backbone. Train with the original weighted quantile/median loss after averaging both sign orientations, matching inference. Own packed_sample and unchanged local generator, seed89, planned6000 steps atLR2e-4. Choose batch64 or32 after measuring maximum-shape memory, keeping the six existing trainers and serialized evaluations within the one H100. No new training data. + +E47 memory check at batch64 (paired batch128), context4096 and horizon1024 used1134.4 MiB peak allocated and1160.0 MiB peak reserved Torch memory. Gradients were finite; no optimizer update or checkpoint was made from the random fixture. Start the planned6000-step run at batch64 with only3072 trainable parameters. + +## E46 complete slope comparison +No training; checkpoint SHA-256 `f6d2c41a690159a5b9c2034be45718c408a30b0d34d9607c9a768b9926781bbd`; fixed inference seed0. + +screen: 9.50 CPU diagnostic seconds. +- past8: skill0.374500; term short=0.3517, medium=0.4069, long=0.3994; domain Econ/Fin=0.1332, Energy=0.2347, Healthcare=0.4319, Nature=0.4254, Sales=0.3438, Transport=0.4650, Web/CloudOps=0.5007; freq A-DEC=0.3692, Q-DEC=0.2006, M=0.1023, W-SUN=0.0521, D=0.3442, H=0.3953, 15T=0.2125, W-FRI=-0.0051, 10T=0.6138, W-TUE=0.5773, W-THU=0.1903, W-WED=0.3133, 5T=0.5112, 10S=0.4218. +- none: skill0.370718; term short=0.3457, medium=0.4054, long=0.3986; domain Econ/Fin=0.1111, Energy=0.2246, Healthcare=0.4321, Nature=0.4266, Sales=0.3438, Transport=0.4648, Web/CloudOps=0.4996; freq A-DEC=0.3202, Q-DEC=0.1821, M=0.1025, W-SUN=0.0486, D=0.3438, H=0.3946, 15T=0.2087, W-FRI=0.0306, 10T=0.5876, W-TUE=0.5831, W-THU=0.1779, W-WED=0.3133, 5T=0.5117, 10S=0.4176. +- future1: skill0.374205; term short=0.3511, medium=0.4072, long=0.3991; domain Econ/Fin=0.1137, Energy=0.2347, Healthcare=0.4268, Nature=0.4274, Sales=0.3439, Transport=0.4665, Web/CloudOps=0.5017; freq A-DEC=0.3598, Q-DEC=0.1662, M=0.1001, W-SUN=0.0181, D=0.3420, H=0.3984, 15T=0.2072, W-FRI=0.0122, 10T=0.6164, W-TUE=0.5675, W-THU=0.1755, W-WED=0.3133, 5T=0.5109, 10S=0.4256. +- future8: skill0.373161; term short=0.3495, medium=0.4067, long=0.3990; domain Econ/Fin=0.1251, Energy=0.2298, Healthcare=0.4305, Nature=0.4272, Sales=0.3439, Transport=0.4643, Web/CloudOps=0.5016; freq A-DEC=0.3602, Q-DEC=0.1852, M=0.1008, W-SUN=0.0383, D=0.3439, H=0.3960, 15T=0.2096, W-FRI=-0.0017, 10T=0.6059, W-TUE=0.5789, W-THU=0.1738, W-WED=0.3133, 5T=0.5112, 10S=0.4252. + +backcast: 9.40 CPU diagnostic seconds. +- past8: skill0.332400; term short=0.2953, medium=0.3574, long=0.3980; domain Econ/Fin=0.1526, Energy=0.2268, Healthcare=0.3995, Nature=0.3561, Sales=0.3986, Transport=0.3699, Web/CloudOps=0.4472; freq A-DEC=0.2996, Q-DEC=0.2330, M=0.1721, W-SUN=-0.0043, D=0.3516, H=0.3643, 15T=0.2254, W-FRI=0.2597, 10T=0.3130, W-TUE=0.5335, W-THU=0.2049, W-WED=0.3474, 5T=0.4329, 10S=0.3397. +- none: skill0.329297; term short=0.2895, medium=0.3574, long=0.3980; domain Econ/Fin=0.1286, Energy=0.2253, Healthcare=0.3653, Nature=0.3586, Sales=0.3986, Transport=0.3702, Web/CloudOps=0.4470; freq A-DEC=0.2562, Q-DEC=0.2285, M=0.1591, W-SUN=-0.0090, D=0.3530, H=0.3630, 15T=0.2276, W-FRI=0.2653, 10T=0.3102, W-TUE=0.4340, W-THU=0.1790, W-WED=0.3474, 5T=0.4328, 10S=0.3392. +- future1: skill0.331443; term short=0.2936, medium=0.3572, long=0.3981; domain Econ/Fin=0.1560, Energy=0.2259, Healthcare=0.3803, Nature=0.3573, Sales=0.3986, Transport=0.3708, Web/CloudOps=0.4467; freq A-DEC=0.2946, Q-DEC=0.2075, M=0.1779, W-SUN=-0.0420, D=0.3531, H=0.3699, 15T=0.2218, W-FRI=0.2626, 10T=0.3062, W-TUE=0.4321, W-THU=0.1844, W-WED=0.3474, 5T=0.4320, 10S=0.3387. +- future8: skill0.330724; term short=0.2923, medium=0.3572, long=0.3980; domain Econ/Fin=0.1495, Energy=0.2260, Healthcare=0.3767, Nature=0.3568, Sales=0.3986, Transport=0.3706, Web/CloudOps=0.4462; freq A-DEC=0.2971, Q-DEC=0.2312, M=0.1706, W-SUN=-0.0239, D=0.3528, H=0.3662, 15T=0.2272, W-FRI=0.2646, 10T=0.3066, W-TUE=0.4419, W-THU=0.1812, W-WED=0.3474, 5T=0.4320, 10S=0.3363. + +backcast2: 9.16 CPU diagnostic seconds. +- past8: skill0.356697; term short=0.3411, medium=0.3874, long=0.3657; domain Econ/Fin=0.1045, Energy=0.2331, Healthcare=0.3610, Nature=0.4656, Sales=0.5516, Transport=0.4179, Web/CloudOps=0.4303; freq A-DEC=0.3474, Q-DEC=0.1548, M=0.1599, W-SUN=0.0316, D=0.4275, H=0.3891, 15T=0.1072, W-FRI=0.1243, 10T=0.4930, W-TUE=0.0782, W-THU=0.3037, W-WED=0.5352, 5T=0.4648, 10S=0.2798. +- none: skill0.356132; term short=0.3406, medium=0.3873, long=0.3643; domain Econ/Fin=0.0852, Energy=0.2311, Healthcare=0.3675, Nature=0.4661, Sales=0.5516, Transport=0.4189, Web/CloudOps=0.4316; freq A-DEC=0.3237, Q-DEC=0.1547, M=0.1618, W-SUN=0.0515, D=0.4258, H=0.3870, 15T=0.1053, W-FRI=0.1317, 10T=0.4935, W-TUE=0.1348, W-THU=0.2945, W-WED=0.5352, 5T=0.4648, 10S=0.2854. +- future1: skill0.355261; term short=0.3386, medium=0.3872, long=0.3657; domain Econ/Fin=0.1174, Energy=0.2356, Healthcare=0.3303, Nature=0.4652, Sales=0.5516, Transport=0.4184, Web/CloudOps=0.4253; freq A-DEC=0.3497, Q-DEC=0.1386, M=0.1530, W-SUN=0.0379, D=0.4238, H=0.3954, 15T=0.1038, W-FRI=0.1264, 10T=0.4929, W-TUE=-0.1191, W-THU=0.2956, W-WED=0.5352, 5T=0.4644, 10S=0.2668. +- future8: skill0.355137; term short=0.3386, medium=0.3873, long=0.3650; domain Econ/Fin=0.1032, Energy=0.2310, Healthcare=0.3342, Nature=0.4659, Sales=0.5516, Transport=0.4189, Web/CloudOps=0.4316; freq A-DEC=0.3492, Q-DEC=0.1479, M=0.1571, W-SUN=0.0462, D=0.4251, H=0.3890, 15T=0.1053, W-FRI=0.1264, 10T=0.4931, W-TUE=-0.1021, W-THU=0.2982, W-WED=0.5352, 5T=0.4643, 10S=0.2886. + +E46 outcome: retain the existing past-eight-difference slope. It beats zero slope and both forecast-derived slopes on every cutoff. The local turning-point explanation does not justify changing the global correction. + +## E48: phase diffusion in synthetic seasonal series (queued) +Hypothesis: varying seasonal phase teaches the model when distant cycles should lose confidence, complementing E31's amplitude variation. Keep E31 unchanged except that half of synthetic calls add a Brownian phase to each Fourier period, shared across its harmonics. Draw one-cycle fundamental correlation log-uniformly from 0.90 to 0.999, with increment standard deviation sqrt(-2 log(correlation) / period). Phase RNG seed is 200062, independent of sampler seed 59 and amplitude seed 100062. Real corpus windows, frequency choices, all original generator draws, and amplitude draws remain matched to E31. A data-only check of 256 rows at each synthetic fraction 0, 0.2 and 1 verified equal original and amplitude RNG states; all corpus-only arrays were bitwise equal, and every finite output stayed finite (8.30 CPU seconds). No validation labels are used in this generator or training. + +Initialize from our E17 patch16 EMA6000; same E25 architecture, batch 256, LR 8e-5, 24000-step cosine schedule, seed 59, save every 3000. Compare to cached E31 at matched checkpoints and three cutoffs before publication. Queue after E38 control completes 12000, retaining at most six heavy trainers on the one H100. Directory phase_synth contains code and sampler_check.json; generator must be declared separately in sources_used if selected. + +## E49: uncertainty shape in the fixed seasonal correction +Hypothesis: rare seasonal jumps inflate Gaussian RMS intervals in otherwise regular series. Keep the selected seasonal median, confidence gate, continuity correction and zero projection fixed; compare Gaussian RMS intervals with centered empirical seasonal-difference quantiles and Gaussian MAD intervals. All widths use the same sqrt((1+1/cycles)/2) averaging correction. Empirical residual median is subtracted so the median forecast is unchanged. These are fixed context formulas, with no optimization. Reuse E25-18000 raw caches for an inexpensive paired test across three cutoffs; transfer any consistent improvement to the current E25-24000 fixed128 runtime before publication. No training and no new sources. + +## E38 expanded-corpus 6000-step screen +- Checkpoint SHA-256: `6f0068b79fbc501fb1ec9a76c88d91ceb9ffca46096900c18f5157a19784678f`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 25.27088236808777 seconds. +- Overall skill 0.358532; relative MASE 0.764393; relative WQL 0.538311. +- term skill: long=0.3918, medium=0.4028, short=0.3272. +- domain skill: Econ/Fin=0.1142, Energy=0.1855, Healthcare=0.3972, Nature=0.4197, Sales=0.3475, Transport=0.4581, Web/CloudOps=0.5080. +- frequency skill: A=0.3713, D=0.3310, H=0.3829, M=0.1077, Q=0.2043, S=0.4384, T=0.4038, W=0.2044. +- variates skill: multivariate=0.3933, univariate=0.3295. +- Outcome: Skill 0.358532 versus matched control 0.358628: near tie, with no demonstrated benefit from the larger packed corpus. Continue to 12000. + +## E39 bounded quantiles 3000-step screen +- Checkpoint SHA-256: `3932f19e396a2ec597a047116ad2e4b680a0e7c9638472434388843bd358b4c7`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 25.178418159484863 seconds. +- Overall skill 0.358466; relative MASE 0.764176; relative WQL 0.538575. +- term skill: long=0.3917, medium=0.4021, short=0.3274. +- domain skill: Econ/Fin=0.1098, Energy=0.1842, Healthcare=0.4143, Nature=0.4191, Sales=0.3505, Transport=0.4583, Web/CloudOps=0.5059. +- frequency skill: A=0.3753, D=0.3428, H=0.3828, M=0.0891, Q=0.1957, S=0.4411, T=0.4011, W=0.1992. +- variates skill: multivariate=0.3924, univariate=0.3301. +- Outcome: Skill 0.358466 versus control 0.358802: a small regression. Continue to 6000 before selection. + +## E35 trend-query features 12000-step screen +- Checkpoint SHA-256: `269be0627257c53343aac6d0609231865bd112be7e01944d966624160150d4a8`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 27.890631914138794 seconds. +- Overall skill 0.357547; relative MASE 0.765787; relative WQL 0.538983. +- term skill: long=0.3905, medium=0.4007, short=0.3268. +- domain skill: Econ/Fin=0.1107, Energy=0.1852, Healthcare=0.4068, Nature=0.4159, Sales=0.3502, Transport=0.4572, Web/CloudOps=0.5058. +- frequency skill: A=0.3786, D=0.3384, H=0.3803, M=0.0973, Q=0.2012, S=0.4413, T=0.4010, W=0.2023. +- variates skill: multivariate=0.3916, univariate=0.3291. +- Outcome: Skill 0.357547 versus recency control 0.357241: another small gain. Matched earlier-cutoff checks are running. + +## E31 amplitude variation 18000-step screen +- Checkpoint SHA-256: `f0d8484d5f1bee554939ffbe769b95e42ba94e0739db7c680fac1c9a132f8f43`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 28.11006808280945 seconds. +- Overall skill 0.361640; relative MASE 0.761418; relative WQL 0.535190. +- term skill: long=0.3939, medium=0.4045, short=0.3314. +- domain skill: Econ/Fin=0.1093, Energy=0.1877, Healthcare=0.4199, Nature=0.4206, Sales=0.3451, Transport=0.4594, Web/CloudOps=0.5124. +- frequency skill: A=0.3693, D=0.3400, H=0.3834, M=0.0980, Q=0.2014, S=0.4419, T=0.4075, W=0.2126. +- variates skill: multivariate=0.3966, univariate=0.3324. +- Outcome: Skill 0.361640 versus recency control 0.361265: a small gain persists. Transfer to the current fixed inference rules on three cutoffs before selection. + +## E42 paired comparison: large_corpus_control 6000, screen +- Checkpoint SHA-256: `3b6a1f25cef4ecafcb7bde8ee9faf1cbe4c68a0c2fbb9594ce26eb3c222f3720`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 25.290119647979736 seconds. +- Overall skill 0.358628; relative MASE 0.763471; relative WQL 0.538799. +- term skill: long=0.3894, medium=0.4025, short=0.3286. +- domain skill: Econ/Fin=0.1093, Energy=0.1839, Healthcare=0.4157, Nature=0.4245, Sales=0.3451, Transport=0.4579, Web/CloudOps=0.5041. +- frequency skill: A=0.3762, D=0.3427, H=0.3805, M=0.1014, Q=0.1966, S=0.4404, T=0.4018, W=0.2035. +- variates skill: multivariate=0.3910, univariate=0.3316. +- Outcome: Matched seed 79, same parent and data stream. This isolates training with per-row available target horizons; assess the three cutoffs jointly. + +## E42 paired comparison: partial_targets 6000, screen +- Checkpoint SHA-256: `67562486b099a350da53c3caa5ff0932fe7fecdfe72c1879b064b2a9bb173dfb`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 25.865007400512695 seconds. +- Overall skill 0.359222; relative MASE 0.762879; relative WQL 0.538220. +- term skill: long=0.3896, medium=0.4026, short=0.3295. +- domain skill: Econ/Fin=0.1138, Energy=0.1865, Healthcare=0.4140, Nature=0.4258, Sales=0.3420, Transport=0.4581, Web/CloudOps=0.5030. +- frequency skill: A=0.3767, D=0.3422, H=0.3805, M=0.1063, Q=0.1975, S=0.4407, T=0.4017, W=0.2108. +- variates skill: multivariate=0.3906, univariate=0.3331. +- Outcome: Matched seed 79, same parent and data stream. This isolates training with per-row available target horizons; assess the three cutoffs jointly. + +## E42 paired comparison: large_corpus_control 6000, backcast +- Checkpoint SHA-256: `3b6a1f25cef4ecafcb7bde8ee9faf1cbe4c68a0c2fbb9594ce26eb3c222f3720`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 27.584256172180176 seconds. +- Overall skill 0.329632; relative MASE 0.806661; relative WQL 0.557102. +- term skill: long=0.3889, medium=0.3561, short=0.2948. +- domain skill: Econ/Fin=0.1442, Energy=0.2289, Healthcare=0.4117, Nature=0.3487, Sales=0.3954, Transport=0.3632, Web/CloudOps=0.4421. +- frequency skill: A=0.3117, D=0.3564, H=0.3572, M=0.1570, Q=0.2265, S=0.3417, T=0.3299, W=0.2668. +- variates skill: multivariate=0.3466, univariate=0.3158. +- Outcome: Matched seed 79, same parent and data stream. This isolates training with per-row available target horizons; assess the three cutoffs jointly. + +## E42 paired comparison: partial_targets 6000, backcast +- Checkpoint SHA-256: `67562486b099a350da53c3caa5ff0932fe7fecdfe72c1879b064b2a9bb173dfb`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 27.306365728378296 seconds. +- Overall skill 0.330300; relative MASE 0.806062; relative WQL 0.556406. +- term skill: long=0.3903, medium=0.3564, short=0.2953. +- domain skill: Econ/Fin=0.1490, Energy=0.2297, Healthcare=0.4089, Nature=0.3480, Sales=0.3970, Transport=0.3635, Web/CloudOps=0.4436. +- frequency skill: A=0.3192, D=0.3533, H=0.3582, M=0.1614, Q=0.2265, S=0.3433, T=0.3300, W=0.2726. +- variates skill: multivariate=0.3477, univariate=0.3161. +- Outcome: Matched seed 79, same parent and data stream. This isolates training with per-row available target horizons; assess the three cutoffs jointly. + +## E42 paired comparison: large_corpus_control 6000, backcast2 +- Checkpoint SHA-256: `3b6a1f25cef4ecafcb7bde8ee9faf1cbe4c68a0c2fbb9594ce26eb3c222f3720`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 26.882598161697388 seconds. +- Overall skill 0.352570; relative MASE 0.776245; relative WQL 0.539992. +- term skill: long=0.3679, medium=0.3749, short=0.3381. +- domain skill: Econ/Fin=0.0867, Energy=0.2280, Healthcare=0.3674, Nature=0.4604, Sales=0.5586, Transport=0.4130, Web/CloudOps=0.4272. +- frequency skill: A=0.3401, D=0.4293, H=0.3864, M=0.1768, Q=0.1515, S=0.2810, T=0.3448, W=0.2406. +- variates skill: multivariate=0.3588, univariate=0.3475. +- Outcome: Matched seed 79, same parent and data stream. This isolates training with per-row available target horizons; assess the three cutoffs jointly. + +## E42 paired comparison: partial_targets 6000, backcast2 +- Checkpoint SHA-256: `67562486b099a350da53c3caa5ff0932fe7fecdfe72c1879b064b2a9bb173dfb`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 27.302276849746704 seconds. +- Overall skill 0.352901; relative MASE 0.775671; relative WQL 0.539838. +- term skill: long=0.3689, medium=0.3760, short=0.3379. +- domain skill: Econ/Fin=0.0894, Energy=0.2294, Healthcare=0.3710, Nature=0.4595, Sales=0.5574, Transport=0.4132, Web/CloudOps=0.4264. +- frequency skill: A=0.3430, D=0.4260, H=0.3868, M=0.1778, Q=0.1500, S=0.2820, T=0.3450, W=0.2490. +- variates skill: multivariate=0.3587, univariate=0.3482. +- Outcome: Matched seed 79, same parent and data stream. This isolates training with per-row available target horizons; assess the three cutoffs jointly. + +## E49 complete seasonal interval comparison +No training; inference seed 0. Own E25-18000 checkpoint SHA-256 f6d2c41a690159a5b9c2034be45718c408a30b0d34d9607c9a768b9926781bbd. + +screen: 12.53 CPU diagnostic seconds. +- gaussian: skill 0.374500; term: short=0.3517, medium=0.4069, long=0.3994; domain: Econ/Fin=0.1332, Energy=0.2347, Healthcare=0.4319, Nature=0.4254, Sales=0.3438, Transport=0.4650, Web/CloudOps=0.5007; freq: A-DEC=0.3692, Q-DEC=0.2006, M=0.1023, W-SUN=0.0521, D=0.3442, H=0.3953, 15T=0.2125, W-FRI=-0.0051, 10T=0.6138, W-TUE=0.5773, W-THU=0.1903, W-WED=0.3133, 5T=0.5112, 10S=0.4218. +- empirical: skill 0.374034; term: short=0.3515, medium=0.4062, long=0.3984; domain: Econ/Fin=0.1322, Energy=0.2332, Healthcare=0.4326, Nature=0.4254, Sales=0.3438, Transport=0.4650, Web/CloudOps=0.5005; freq: A-DEC=0.3692, Q-DEC=0.2007, M=0.1029, W-SUN=0.0515, D=0.3443, H=0.3941, 15T=0.2120, W-FRI=-0.0051, 10T=0.6138, W-TUE=0.5773, W-THU=0.1903, W-WED=0.3133, 5T=0.5112, 10S=0.4208. +- mad: skill 0.373768; term: short=0.3513, medium=0.4061, long=0.3979; domain: Econ/Fin=0.1328, Energy=0.2325, Healthcare=0.4325, Nature=0.4254, Sales=0.3438, Transport=0.4649, Web/CloudOps=0.5001; freq: A-DEC=0.3692, Q-DEC=0.2007, M=0.1027, W-SUN=0.0515, D=0.3444, H=0.3938, 15T=0.2115, W-FRI=-0.0051, 10T=0.6138, W-TUE=0.5773, W-THU=0.1903, W-WED=0.3133, 5T=0.5112, 10S=0.4194. + +backcast: 12.04 CPU diagnostic seconds. +- gaussian: skill 0.332400; term: short=0.2953, medium=0.3574, long=0.3980; domain: Econ/Fin=0.1526, Energy=0.2268, Healthcare=0.3995, Nature=0.3561, Sales=0.3986, Transport=0.3699, Web/CloudOps=0.4472; freq: A-DEC=0.2996, Q-DEC=0.2330, M=0.1721, W-SUN=-0.0043, D=0.3516, H=0.3643, 15T=0.2254, W-FRI=0.2597, 10T=0.3130, W-TUE=0.5335, W-THU=0.2049, W-WED=0.3474, 5T=0.4329, 10S=0.3397. +- empirical: skill 0.332227; term: short=0.2954, medium=0.3563, long=0.3981; domain: Econ/Fin=0.1521, Energy=0.2257, Healthcare=0.3995, Nature=0.3558, Sales=0.3986, Transport=0.3697, Web/CloudOps=0.4482; freq: A-DEC=0.2996, Q-DEC=0.2331, M=0.1717, W-SUN=-0.0053, D=0.3516, H=0.3630, 15T=0.2257, W-FRI=0.2597, 10T=0.3130, W-TUE=0.5335, W-THU=0.2049, W-WED=0.3474, 5T=0.4330, 10S=0.3436. +- mad: skill 0.331760; term: short=0.2949, medium=0.3559, long=0.3977; domain: Econ/Fin=0.1517, Energy=0.2248, Healthcare=0.3984, Nature=0.3554, Sales=0.3986, Transport=0.3696, Web/CloudOps=0.4480; freq: A-DEC=0.2996, Q-DEC=0.2330, M=0.1720, W-SUN=-0.0052, D=0.3511, H=0.3620, 15T=0.2253, W-FRI=0.2597, 10T=0.3129, W-TUE=0.5335, W-THU=0.2049, W-WED=0.3474, 5T=0.4330, 10S=0.3430. + +backcast2: 10.81 CPU diagnostic seconds. +- gaussian: skill 0.356697; term: short=0.3411, medium=0.3874, long=0.3657; domain: Econ/Fin=0.1045, Energy=0.2331, Healthcare=0.3610, Nature=0.4656, Sales=0.5516, Transport=0.4179, Web/CloudOps=0.4303; freq: A-DEC=0.3474, Q-DEC=0.1548, M=0.1599, W-SUN=0.0316, D=0.4275, H=0.3891, 15T=0.1072, W-FRI=0.1243, 10T=0.4930, W-TUE=0.0782, W-THU=0.3037, W-WED=0.5352, 5T=0.4648, 10S=0.2798. +- empirical: skill 0.356537; term: short=0.3408, medium=0.3876, long=0.3655; domain: Econ/Fin=0.1035, Energy=0.2316, Healthcare=0.3619, Nature=0.4656, Sales=0.5516, Transport=0.4178, Web/CloudOps=0.4315; freq: A-DEC=0.3474, Q-DEC=0.1549, M=0.1602, W-SUN=0.0311, D=0.4277, H=0.3876, 15T=0.1075, W-FRI=0.1243, 10T=0.4929, W-TUE=0.0782, W-THU=0.3037, W-WED=0.5352, 5T=0.4648, 10S=0.2846. +- mad: skill 0.356717; term: short=0.3409, medium=0.3871, long=0.3665; domain: Econ/Fin=0.1039, Energy=0.2307, Healthcare=0.3619, Nature=0.4656, Sales=0.5516, Transport=0.4176, Web/CloudOps=0.4335; freq: A-DEC=0.3474, Q-DEC=0.1549, M=0.1602, W-SUN=0.0312, D=0.4278, H=0.3869, 15T=0.1072, W-FRI=0.1243, 10T=0.4929, W-TUE=0.0782, W-THU=0.3037, W-WED=0.5352, 5T=0.4648, 10S=0.2923. + +Outcome: retain Gaussian RMS intervals. Centered empirical intervals lose at all three cutoffs. MAD loses on the main and first earlier cutoff, with only a negligible second-earlier gain. Median MASE is exactly unchanged for every setting as intended. No transfer or package change. + +## E35 matched 12000 comparison: recency_features, screen +- Checkpoint SHA-256: `8ccb6870a025e1097331a3a288b1183741a413f3460fbf3352d0c589c6a4394c`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 20.589985609054565 seconds. +- Overall skill 0.357241; relative MASE 0.765658; relative WQL 0.539588. +- term skill: long=0.3912, medium=0.4026, short=0.3252. +- domain skill: Econ/Fin=0.1133, Energy=0.1855, Healthcare=0.3939, Nature=0.4171, Sales=0.3483, Transport=0.4566, Web/CloudOps=0.5065. +- frequency skill: A=0.3781, D=0.3343, H=0.3817, M=0.0906, Q=0.1961, S=0.4411, T=0.4020, W=0.1998. +- variates skill: multivariate=0.3920, univariate=0.3281. +- Outcome: Trend features gain slightly on the main screen but lose on both earlier cutoffs. Stop this branch; its extra features are not selected. + +## E35 matched 12000 comparison: trend_features, screen +- Checkpoint SHA-256: `269be0627257c53343aac6d0609231865bd112be7e01944d966624160150d4a8`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 27.890631914138794 seconds. +- Overall skill 0.357547; relative MASE 0.765787; relative WQL 0.538983. +- term skill: long=0.3905, medium=0.4007, short=0.3268. +- domain skill: Econ/Fin=0.1107, Energy=0.1852, Healthcare=0.4068, Nature=0.4159, Sales=0.3502, Transport=0.4572, Web/CloudOps=0.5058. +- frequency skill: A=0.3786, D=0.3384, H=0.3803, M=0.0973, Q=0.2012, S=0.4413, T=0.4010, W=0.2023. +- variates skill: multivariate=0.3916, univariate=0.3291. +- Outcome: Trend features gain slightly on the main screen but lose on both earlier cutoffs. Stop this branch; its extra features are not selected. + +## E35 matched 12000 comparison: recency_features, backcast +- Checkpoint SHA-256: `8ccb6870a025e1097331a3a288b1183741a413f3460fbf3352d0c589c6a4394c`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 27.742298364639282 seconds. +- Overall skill 0.328112; relative MASE 0.807765; relative WQL 0.558868. +- term skill: long=0.3899, medium=0.3548, short=0.2920. +- domain skill: Econ/Fin=0.1488, Energy=0.2248, Healthcare=0.4036, Nature=0.3514, Sales=0.3955, Transport=0.3613, Web/CloudOps=0.4413. +- frequency skill: A=0.3134, D=0.3558, H=0.3562, M=0.1567, Q=0.2256, S=0.3420, T=0.3267, W=0.2651. +- variates skill: multivariate=0.3435, univariate=0.3156. +- Outcome: Trend features gain slightly on the main screen but lose on both earlier cutoffs. Stop this branch; its extra features are not selected. + +## E35 matched 12000 comparison: trend_features, backcast +- Checkpoint SHA-256: `269be0627257c53343aac6d0609231865bd112be7e01944d966624160150d4a8`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 27.06494641304016 seconds. +- Overall skill 0.327724; relative MASE 0.808759; relative WQL 0.558826. +- term skill: long=0.3886, medium=0.3555, short=0.2916. +- domain skill: Econ/Fin=0.1436, Energy=0.2247, Healthcare=0.3984, Nature=0.3522, Sales=0.3952, Transport=0.3621, Web/CloudOps=0.4411. +- frequency skill: A=0.3149, D=0.3546, H=0.3559, M=0.1602, Q=0.2281, S=0.3419, T=0.3284, W=0.2545. +- variates skill: multivariate=0.3441, univariate=0.3144. +- Outcome: Trend features gain slightly on the main screen but lose on both earlier cutoffs. Stop this branch; its extra features are not selected. + +## E35 matched 12000 comparison: recency_features, backcast2 +- Checkpoint SHA-256: `8ccb6870a025e1097331a3a288b1183741a413f3460fbf3352d0c589c6a4394c`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 27.009191036224365 seconds. +- Overall skill 0.353202; relative MASE 0.774939; relative WQL 0.539846. +- term skill: long=0.3671, medium=0.3766, short=0.3388. +- domain skill: Econ/Fin=0.0874, Energy=0.2254, Healthcare=0.3808, Nature=0.4621, Sales=0.5594, Transport=0.4116, Web/CloudOps=0.4293. +- frequency skill: A=0.3385, D=0.4312, H=0.3856, M=0.1786, Q=0.1474, S=0.2819, T=0.3451, W=0.2459. +- variates skill: multivariate=0.3594, univariate=0.3481. +- Outcome: Trend features gain slightly on the main screen but lose on both earlier cutoffs. Stop this branch; its extra features are not selected. + +## E35 matched 12000 comparison: trend_features, backcast2 +- Checkpoint SHA-256: `269be0627257c53343aac6d0609231865bd112be7e01944d966624160150d4a8`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 26.192188262939453 seconds. +- Overall skill 0.353075; relative MASE 0.775525; relative WQL 0.539650. +- term skill: long=0.3664, medium=0.3761, short=0.3391. +- domain skill: Econ/Fin=0.0837, Energy=0.2262, Healthcare=0.3801, Nature=0.4640, Sales=0.5598, Transport=0.4112, Web/CloudOps=0.4272. +- frequency skill: A=0.3402, D=0.4277, H=0.3854, M=0.1847, Q=0.1490, S=0.2774, T=0.3477, W=0.2433. +- variates skill: multivariate=0.3593, univariate=0.3480. +- Outcome: Trend features gain slightly on the main screen but lose on both earlier cutoffs. Stop this branch; its extra features are not selected. + +## E50: paired-sign loss for a frozen-backbone output head +Hypothesis: training against the averaged positive/negative forecasts used at inference can improve calibration over separately scoring the two orientations. Both arms initialize from our selected E25-24000 checkpoint with fixed128 trend features and freeze every parameter except the existing 147744-parameter output head. Both forward the same context and its sign reflection, consuming identical seed97 data windows. Control scores each orientation independently; candidate averages the two normalized forecasts before the original weighted quantile/median loss. This isolates the loss rather than data augmentation or forward compute. Same packed_sample, original local generator and independent sign augmentation, batch64, LR5e-5, 6000-step cosine schedule, save1000. No new data, no validation training, no parameter additions. + +A maximum-shape random fixture (paired batch128, context4096, horizon1024) verified finite gradients and measured peak Torch allocation697 MiB for the individual-loss control and729 MiB for the paired-loss candidate, with822 MiB reserved in each. No optimizer update or checkpoint was made from the fixture. Start the control after the rejected E35 trainer exits; start the paired arm after E47 finishes, keeping to one H100. The same fixed runtime evaluates both. + +E50 head_control training started at 2026-10-22T04:52:57Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E50 head_paired training started at 2026-10-22T04:53:18Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E35 stopped cleanly at step 13309, with 4327.0 elapsed process seconds at the stop request. Final checkpoint SHA-256 `be7cce34037750ef56be8a183b68af46dc2deec184ad228cd4c60ab91b51eb48`. The last validation was the paired 12000-step comparison above; the stop checkpoint was saved for provenance, not selected. + +## E31 amplitude 18000 with selected fixed rules, screen +- Checkpoint SHA-256: `f0d8484d5f1bee554939ffbe769b95e42ba94e0739db7c680fac1c9a132f8f43`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 27.18380904197693 seconds. +- Overall skill 0.375271; relative MASE 0.747344; relative WQL 0.522231. +- term skill: long=0.4000, medium=0.4069, short=0.3529. +- domain skill: Econ/Fin=0.1337, Energy=0.2361, Healthcare=0.4224, Nature=0.4258, Sales=0.3419, Transport=0.4649, Web/CloudOps=0.5043. +- frequency skill: A=0.3721, D=0.3448, H=0.3951, M=0.0876, Q=0.2019, S=0.4223, T=0.4386, W=0.2158. +- variates skill: multivariate=0.3950, univariate=0.3591. +- Outcome: The earlier mean-template screening gain does not transfer to the selected aligned/zero0.4/fixed128 runtime: below recency18000 at every cutoff. Do not publish; finish the planned 24000 for a matched late comparison. + +## E31 amplitude 18000 with selected fixed rules, backcast +- Checkpoint SHA-256: `f0d8484d5f1bee554939ffbe769b95e42ba94e0739db7c680fac1c9a132f8f43`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 27.348726511001587 seconds. +- Overall skill 0.333200; relative MASE 0.800924; relative WQL 0.555137. +- term skill: long=0.3941, medium=0.3576, short=0.2985. +- domain skill: Econ/Fin=0.1568, Energy=0.2260, Healthcare=0.4100, Nature=0.3583, Sales=0.3987, Transport=0.3697, Web/CloudOps=0.4467. +- frequency skill: A=0.3095, D=0.3534, H=0.3637, M=0.1993, Q=0.2273, S=0.3378, T=0.3326, W=0.2601. +- variates skill: multivariate=0.3488, univariate=0.3205. +- Outcome: The earlier mean-template screening gain does not transfer to the selected aligned/zero0.4/fixed128 runtime: below recency18000 at every cutoff. Do not publish; finish the planned 24000 for a matched late comparison. + +## E31 amplitude 18000 with selected fixed rules, backcast2 +- Checkpoint SHA-256: `f0d8484d5f1bee554939ffbe769b95e42ba94e0739db7c680fac1c9a132f8f43`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 27.135295629501343 seconds. +- Overall skill 0.356896; relative MASE 0.774845; relative WQL 0.533762. +- term skill: long=0.3678, medium=0.3811, short=0.3433. +- domain skill: Econ/Fin=0.1063, Energy=0.2350, Healthcare=0.3543, Nature=0.4630, Sales=0.5538, Transport=0.4181, Web/CloudOps=0.4317. +- frequency skill: A=0.3487, D=0.4308, H=0.3887, M=0.1298, Q=0.1454, S=0.2825, T=0.3581, W=0.2487. +- variates skill: multivariate=0.3617, univariate=0.3530. +- Outcome: The earlier mean-template screening gain does not transfer to the selected aligned/zero0.4/fixed128 runtime: below recency18000 at every cutoff. Do not publish; finish the planned 24000 for a matched late comparison. + +## E51: last optimizer weights versus EMA weights +The late E25 EMA checkpoints continue to improve, and averaging older EMA checkpoints regressed in E45. Check whether the final optimizer iterate is ahead of its lagging EMA or instead suffers from update noise. No training or inference-rule change: evaluate step024000 against the selected ema024000 with the identical fixed128/aligned/zero0.4 runtime. Only transfer to earlier cutoffs and full validation if the main screen improves. Both candidates have the same seed59 training lineage. + +## E47 confidence projection 1000-step screen +- Checkpoint SHA-256: `b2df8695413e53c7d62ec8f265affc31a43ca26e7b99b50e0a75f47782b95bfe`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 27.31796908378601 seconds. +- Overall skill 0.375491; relative MASE 0.746025; relative WQL 0.522786. +- term skill: long=0.3994, medium=0.4067, short=0.3536. +- domain skill: Econ/Fin=0.1396, Energy=0.2349, Healthcare=0.4370, Nature=0.4288, Sales=0.3397, Transport=0.4653, Web/CloudOps=0.5002. +- frequency skill: A=0.3765, D=0.3531, H=0.3948, M=0.0934, Q=0.1985, S=0.4235, T=0.4361, W=0.2100. +- variates skill: multivariate=0.3936, univariate=0.3607. +- Outcome: Backbone unchanged. Earlier checkpoints essentially tied; the 6000-step checkpoint gains 0.000291 over the parent. Earlier-cutoff checks are pending before any selection. + +## E47 confidence projection 3000-step screen +- Checkpoint SHA-256: `653081261875b023a5d8dea02c999762fa8a2a4601ce7b6ad3b55559172290ab`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 28.364450693130493 seconds. +- Overall skill 0.375482; relative MASE 0.745987; relative WQL 0.522828. +- term skill: long=0.3995, medium=0.4066, short=0.3536. +- domain skill: Econ/Fin=0.1394, Energy=0.2348, Healthcare=0.4379, Nature=0.4283, Sales=0.3403, Transport=0.4653, Web/CloudOps=0.5004. +- frequency skill: A=0.3762, D=0.3534, H=0.3949, M=0.0912, Q=0.1983, S=0.4238, T=0.4362, W=0.2092. +- variates skill: multivariate=0.3937, univariate=0.3606. +- Outcome: Backbone unchanged. Earlier checkpoints essentially tied; the 6000-step checkpoint gains 0.000291 over the parent. Earlier-cutoff checks are pending before any selection. + +## E47 confidence projection 6000-step screen +- Checkpoint SHA-256: `0bad97e8994aac49ea173443db0a4fa8d72d33f9eb9e2660f06de75f7f1403eb`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 26.593000650405884 seconds. +- Overall skill 0.375793; relative MASE 0.745649; relative WQL 0.522544. +- term skill: long=0.3998, medium=0.4067, short=0.3540. +- domain skill: Econ/Fin=0.1396, Energy=0.2348, Healthcare=0.4406, Nature=0.4284, Sales=0.3399, Transport=0.4658, Web/CloudOps=0.5006. +- frequency skill: A=0.3762, D=0.3542, H=0.3951, M=0.0954, Q=0.1982, S=0.4239, T=0.4362, W=0.2090. +- variates skill: multivariate=0.3937, univariate=0.3611. +- Outcome: Backbone unchanged. Earlier checkpoints essentially tied; the 6000-step checkpoint gains 0.000291 over the parent. Earlier-cutoff checks are pending before any selection. + +E47 completed 6000 steps in 818.8 elapsed training-loop seconds on the shared H100. Every original model tensor is bitwise equal to the frozen E25-24000 parent; only the 3072 confidence-projection parameters changed. + +E48 phase_synth training started at 2026-10-22T04:54:48Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +## E51 final optimizer iterate, screen +- Checkpoint SHA-256: `32b70d0e88532fb98746ea032c10be587383d80ed7b0951b41f778a39c9dc68b`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 26.315549850463867 seconds. +- Overall skill 0.374536; relative MASE 0.746570; relative WQL 0.524003. +- term skill: long=0.3980, medium=0.4073, short=0.3522. +- domain skill: Econ/Fin=0.1389, Energy=0.2328, Healthcare=0.4348, Nature=0.4279, Sales=0.3409, Transport=0.4652, Web/CloudOps=0.4998. +- frequency skill: A=0.3701, D=0.3497, H=0.3936, M=0.0914, Q=0.1977, S=0.4222, T=0.4369, W=0.2087. +- variates skill: multivariate=0.3931, univariate=0.3594. +- Outcome: Skill 0.374536 is below the selected EMA24000 skill 0.375502. Retain EMA weights; no earlier-window or full evaluation is needed. + +## E39 bounded quantiles 6000-step screen +- Checkpoint SHA-256: `4af38aa561df4d38c1f6df090f8a5dc364c38786eb2ab38933646d827cbe7669`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 25.320833683013916 seconds. +- Overall skill 0.357854; relative MASE 0.764623; relative WQL 0.539287. +- term skill: long=0.3907, medium=0.4019, short=0.3268. +- domain skill: Econ/Fin=0.1103, Energy=0.1849, Healthcare=0.4072, Nature=0.4203, Sales=0.3470, Transport=0.4571, Web/CloudOps=0.5050. +- frequency skill: A=0.3756, D=0.3402, H=0.3810, M=0.0920, Q=0.1957, S=0.4423, T=0.4023, W=0.1961. +- variates skill: multivariate=0.3917, univariate=0.3295. +- Outcome: Skill 0.357854 is below matched control 0.358628, following a smaller 3000-step regression. Stop this branch; retain the current inference-only positivity projection. + +## E52: varied requested horizons during partial-target training +E42's correct per-row horizon conditioning improves all three cutoffs at 6000 steps. Hypothesis: exposing the decoder to intermediate requested horizons will also reduce mismatch between four fixed training horizon lengths and arbitrary inference lengths. Match E42's parent E25-12000, seed79, packed_sample, source probabilities, batch256, LR5e-5 and 12000-step schedule. Keep half the sampled target windows unchanged; for the other half, independently choose a prefix length uniformly from one-quarter to the full batch horizon, rounded upward to a 16-step patch boundary. Mask only later training labels. The existing E42 loss masks unused future tokens and sets each row's horizon metadata. Corpus contexts and periods, original generator and sampler random draws remain unchanged. Independent horizon RNG seed300082. + +A data-only check at all four horizon sizes verified identical context/period arrays and exact preservation of every retained target value (0.66 CPU seconds). No validation labels enter training. No new model parameters or inference behavior; this is a training-window augmentation. Start after rejected E39 exits and compare against cached E42 at 3000/6000/12000. + +E52 horizon_jitter training started at 2026-10-22T04:56:42Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +## E47 confidence projection 6000, backcast +- Checkpoint SHA-256: `0bad97e8994aac49ea173443db0a4fa8d72d33f9eb9e2660f06de75f7f1403eb`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 25.725136041641235 seconds. +- Overall skill 0.334126; relative MASE 0.799732; relative WQL 0.554420. +- term skill: long=0.3968, medium=0.3571, short=0.2992. +- domain skill: Econ/Fin=0.1592, Energy=0.2275, Healthcare=0.4065, Nature=0.3605, Sales=0.3971, Transport=0.3716, Web/CloudOps=0.4467. +- frequency skill: A=0.3079, D=0.3510, H=0.3635, M=0.1810, Q=0.2346, S=0.3430, T=0.3344, W=0.2764. +- variates skill: multivariate=0.3510, univariate=0.3204. +- Outcome: Main screen gains 0.000291; first earlier cutoff loses only 0.000054; second earlier cutoff gains 0.000224. Proceed to full validation before deciding whether to replace the package. + +## E47 confidence projection 6000, backcast2 +- Checkpoint SHA-256: `0bad97e8994aac49ea173443db0a4fa8d72d33f9eb9e2660f06de75f7f1403eb`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 24.6521155834198 seconds. +- Overall skill 0.358499; relative MASE 0.770987; relative WQL 0.533762. +- term skill: long=0.3652, medium=0.3856, short=0.3452. +- domain skill: Econ/Fin=0.1095, Energy=0.2361, Healthcare=0.3507, Nature=0.4706, Sales=0.5514, Transport=0.4202, Web/CloudOps=0.4300. +- frequency skill: A=0.3495, D=0.4316, H=0.3891, M=0.1571, Q=0.1507, S=0.2825, T=0.3576, W=0.2564. +- variates skill: multivariate=0.3624, univariate=0.3553. +- Outcome: Main screen gains 0.000291; first earlier cutoff loses only 0.000054; second earlier cutoff gains 0.000224. Proceed to full validation before deciding whether to replace the package. + +E39 stopped cleanly at step 6298, with 2199.0 elapsed process seconds at the stop request. Final checkpoint SHA-256 `d1018a12abdb14c369ba55a561c3091bbc7dc4b25337345a0af68aa15e9afec2`. This stop checkpoint was retained for provenance and was not selected. + +## E53: within-cycle variance for seasonal confidence +Hypothesis: total variance over up to eight cycles can be dominated by a long trend, artificially lowering the seasonal-difference/variance ratio and assigning high seasonal confidence even to a nonseasonal ramp. Change only the gate denominator to pooled within-cycle variance, subtracting each cycle's finite-observation mean before pooling squared deviations. Compare the existing global variance and this within-cycle variance, with the selected aligned template, Gaussian RMS intervals, continuity and zero0.4 unchanged. Use cached E25-18000 forecasts across three cutoffs; no training, optimization or new source data. A selected formula must transfer to the current checkpoint and fixed128 runtime before publication. + +## E47 confidence projection 6000, exact full package validation +- Checkpoint SHA-256: `0bad97e8994aac49ea173443db0a4fa8d72d33f9eb9e2660f06de75f7f1403eb`. +- Evaluation: 97 configurations, 151170 instances, 0 failed configurations; not separately timed seconds. +- Overall skill 0.371766; relative MASE 0.748576; relative WQL 0.527239. +- term skill: long=0.3937, medium=0.4056, short=0.3496. +- domain skill: Econ/Fin=0.1167, Energy=0.2278, Healthcare=0.4464, Nature=0.4283, Sales=0.3521, Transport=0.4660, Web/CloudOps=0.4929. +- frequency skill: A=0.2915, D=0.3581, H=0.3903, M=0.1171, Q=0.1834, S=0.4239, T=0.4292, W=0.2017. +- variates skill: multivariate=0.3895, univariate=0.3573. +- Outcome: Selected for publication: skill 0.371766 versus 0.371479 for the previous package; relative MASE 0.748576 and WQL 0.527239. All 97 configurations and 151170 instances passed, with no quantile crossings. Actual package inference took 140.57 seconds on the one H100 while five heavy training runs and two head-only runs shared it. Relocation/determinism checks precede the atomic replacement. + +## E53 complete seasonal variance comparison +No training; inference seed 0. E25-18000 checkpoint SHA-256 f6d2c41a690159a5b9c2034be45718c408a30b0d34d9607c9a768b9926781bbd. + +screen: 8.50 CPU diagnostic seconds. +- global: skill 0.374500; term: short=0.3517, medium=0.4069, long=0.3994; domain: Econ/Fin=0.1332, Energy=0.2347, Healthcare=0.4319, Nature=0.4254, Sales=0.3438, Transport=0.4650, Web/CloudOps=0.5007; freq: A-DEC=0.3692, Q-DEC=0.2006, M=0.1023, W-SUN=0.0521, D=0.3442, H=0.3953, 15T=0.2125, W-FRI=-0.0051, 10T=0.6138, W-TUE=0.5773, W-THU=0.1903, W-WED=0.3133, 5T=0.5112, 10S=0.4218. +- within_cycle: skill 0.374386; term: short=0.3515, medium=0.4068, long=0.3994; domain: Econ/Fin=0.1320, Energy=0.2346, Healthcare=0.4305, Nature=0.4254, Sales=0.3450, Transport=0.4650, Web/CloudOps=0.5007; freq: A-DEC=0.3692, Q-DEC=0.2024, M=0.1005, W-SUN=0.0487, D=0.3444, H=0.3951, 15T=0.2124, W-FRI=-0.0050, 10T=0.6139, W-TUE=0.5773, W-THU=0.1903, W-WED=0.3133, 5T=0.5112, 10S=0.4218. + +backcast: 8.12 CPU diagnostic seconds. +- global: skill 0.332400; term: short=0.2953, medium=0.3574, long=0.3980; domain: Econ/Fin=0.1526, Energy=0.2268, Healthcare=0.3995, Nature=0.3561, Sales=0.3986, Transport=0.3699, Web/CloudOps=0.4472; freq: A-DEC=0.2996, Q-DEC=0.2330, M=0.1721, W-SUN=-0.0043, D=0.3516, H=0.3643, 15T=0.2254, W-FRI=0.2597, 10T=0.3130, W-TUE=0.5335, W-THU=0.2049, W-WED=0.3474, 5T=0.4329, 10S=0.3397. +- within_cycle: skill 0.332143; term: short=0.2948, medium=0.3575, long=0.3979; domain: Econ/Fin=0.1529, Energy=0.2266, Healthcare=0.3952, Nature=0.3561, Sales=0.3986, Transport=0.3704, Web/CloudOps=0.4471; freq: A-DEC=0.2996, Q-DEC=0.2353, M=0.1665, W-SUN=-0.0082, D=0.3519, H=0.3640, 15T=0.2255, W-FRI=0.2597, 10T=0.3130, W-TUE=0.5335, W-THU=0.2049, W-WED=0.3474, 5T=0.4329, 10S=0.3396. + +backcast2: 7.99 CPU diagnostic seconds. +- global: skill 0.356697; term: short=0.3411, medium=0.3874, long=0.3657; domain: Econ/Fin=0.1045, Energy=0.2331, Healthcare=0.3610, Nature=0.4656, Sales=0.5516, Transport=0.4179, Web/CloudOps=0.4303; freq: A-DEC=0.3474, Q-DEC=0.1548, M=0.1599, W-SUN=0.0316, D=0.4275, H=0.3891, 15T=0.1072, W-FRI=0.1243, 10T=0.4930, W-TUE=0.0782, W-THU=0.3037, W-WED=0.5352, 5T=0.4648, 10S=0.2798. +- within_cycle: skill 0.356794; term: short=0.3414, medium=0.3873, long=0.3654; domain: Econ/Fin=0.1040, Energy=0.2329, Healthcare=0.3653, Nature=0.4656, Sales=0.5516, Transport=0.4179, Web/CloudOps=0.4301; freq: A-DEC=0.3474, Q-DEC=0.1544, M=0.1677, W-SUN=0.0298, D=0.4273, H=0.3891, 15T=0.1064, W-FRI=0.1243, 10T=0.4930, W-TUE=0.0782, W-THU=0.3037, W-WED=0.5352, 5T=0.4647, 10S=0.2791. + +Outcome: retain total history variance. Within-cycle variance loses on the main and first earlier cutoff, with only a small second-earlier gain. The trend-related failure mode does not justify changing the global formula. + +E47 relocation and determinism passed: the candidate and a separately copied package in a fresh /tmp directory produced bitwise identical, finite, monotone quantiles for univariate daily, univariate hourly and multivariate medium-horizon examples. Both ran with /tmp as the working directory. Publish the complete candidate atomically after these checks. + +## E54: train the full model with longer raw context +E21's untrained extension and E29's frozen, coarsened history memory did not provide consistent gains. Hypothesis: adapting all existing parameters to raw 8192-point histories can use older cycles without the mismatch of an untrained extension or lossy extra memory. Two matched arms initialize from our E25-24000 EMA, with identical model size, original loss, seed101, packed_sample, source probabilities, batch128, LR3e-5 and 12000-step schedule. The sampler draws context sizes512/1024/2048/8192 with probabilities0.1/0.15/0.35/0.4 in both arms. The control then keeps only the last4096 points; the candidate keeps8192. Future labels and sampler RNG are matched exactly, including synthetic draws and aggregation. Both train every model parameter. This comparison changes only the retained raw history. + +At inference, positivity and the fixed seasonal rule continue to inspect only the recent4096 observations; continuity and zero projection retain their existing lookbacks. The candidate's neural encoder and normalization use up to8192. No external weights or new source data are introduced; the parameter count is unchanged. New generator/sign-augmentation seed101 must be declared if selected. Maximum-shape batch128/context8192/horizon1024 memory check, including allocated placeholders for Adam moments and EMA, measured9960 MiB peak allocated and10530 MiB reserved, with finite gradients in4.37 seconds. No optimizer update or checkpoint came from this random fixture. Queue the control after E50 head_control completes; queue the longer-context arm after E38 expanded corpus completes, preserving the one-H100 allocation. + +E54 data check passed in3.26 CPU seconds: all four sampled context sizes produced identical future labels, period metadata, overlapping recent history and sampler RNG states between the two arms. + +E54 long_context_control training started at 2026-10-22T05:04:35Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +## E55: transfer the matched partial-target training difference +E42's 6000-step checkpoint improves all three cutoffs over its exact seed/data/initialization-matched E38 control, but both restarted trajectories began from an older E25 checkpoint. Hypothesis: the parameter difference between these matched runs isolates a useful training correction that can transfer to the selected later model. Form one fixed model with weights = current E47 confidence6000 + E42 partial6000 - E38 control6000 for their common backbone tensors, leaving the confidence projection unchanged. Use coefficient1 with no grid search. This is a deterministic composition of our own trained weights, with all three parent hashes recorded. No new training or data, and one model forecasts every instance. Evaluate the main screen first; if promising, require earlier-cutoff and exact full-package checks. + +## E50 head_control 1000-step screen +- Checkpoint SHA-256: `a88f59494b256bf95addea9f00fa7b631cd67dc762228f523d95eec8047a05d8`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 26.136118412017822 seconds. +- Overall skill 0.375630; relative MASE 0.745780; relative WQL 0.522726. +- term skill: long=0.3996, medium=0.4068, short=0.3537. +- domain skill: Econ/Fin=0.1403, Energy=0.2347, Healthcare=0.4405, Nature=0.4291, Sales=0.3396, Transport=0.4656, Web/CloudOps=0.4997. +- frequency skill: A=0.3779, D=0.3539, H=0.3951, M=0.0943, Q=0.1980, S=0.4231, T=0.4359, W=0.2102. +- variates skill: multivariate=0.3935, univariate=0.3610. +- Outcome: Small gains at1000 are lost at3000 and6000. Paired loss trails the matched individual-loss control at the later checkpoints; neither arm surpasses the selected confidence model. No package replacement. + +## E50 head_control 3000-step screen +- Checkpoint SHA-256: `75b9f4860e4c4345f2cedb6eb2f9ffe5c9e65aede03a314c72b20b1e8a1f7aaf`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 27.069400310516357 seconds. +- Overall skill 0.375411; relative MASE 0.746024; relative WQL 0.522921. +- term skill: long=0.3996, medium=0.4066, short=0.3534. +- domain skill: Econ/Fin=0.1387, Energy=0.2345, Healthcare=0.4401, Nature=0.4293, Sales=0.3399, Transport=0.4650, Web/CloudOps=0.4996. +- frequency skill: A=0.3759, D=0.3533, H=0.3949, M=0.0963, Q=0.1980, S=0.4231, T=0.4355, W=0.2102. +- variates skill: multivariate=0.3933, univariate=0.3608. +- Outcome: Small gains at1000 are lost at3000 and6000. Paired loss trails the matched individual-loss control at the later checkpoints; neither arm surpasses the selected confidence model. No package replacement. + +## E50 head_control 6000-step screen +- Checkpoint SHA-256: `dd8fc459f097a0bc0c7cb133473130aa32e1dc520fd7f03ff50dc26366d1122e`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 24.82920217514038 seconds. +- Overall skill 0.375304; relative MASE 0.746102; relative WQL 0.523045. +- term skill: long=0.3996, medium=0.4065, short=0.3532. +- domain skill: Econ/Fin=0.1404, Energy=0.2343, Healthcare=0.4375, Nature=0.4291, Sales=0.3402, Transport=0.4652, Web/CloudOps=0.4997. +- frequency skill: A=0.3770, D=0.3531, H=0.3950, M=0.0965, Q=0.1987, S=0.4230, T=0.4355, W=0.2086. +- variates skill: multivariate=0.3931, univariate=0.3607. +- Outcome: Small gains at1000 are lost at3000 and6000. Paired loss trails the matched individual-loss control at the later checkpoints; neither arm surpasses the selected confidence model. No package replacement. + +E50 head_control completed6000 steps in 685.6 elapsed training-loop seconds. Every non-head tensor remains bitwise equal to the E25-24000 parent. + +## E50 head_paired 1000-step screen +- Checkpoint SHA-256: `337e19aac481543a8ba78bd837f00c8a714315313e665b1b5a038d009a905a2a`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 25.40800166130066 seconds. +- Overall skill 0.375721; relative MASE 0.745631; relative WQL 0.522677. +- term skill: long=0.3997, medium=0.4067, short=0.3539. +- domain skill: Econ/Fin=0.1403, Energy=0.2344, Healthcare=0.4425, Nature=0.4292, Sales=0.3396, Transport=0.4658, Web/CloudOps=0.4998. +- frequency skill: A=0.3786, D=0.3544, H=0.3951, M=0.0952, Q=0.1978, S=0.4234, T=0.4358, W=0.2099. +- variates skill: multivariate=0.3935, univariate=0.3612. +- Outcome: Small gains at1000 are lost at3000 and6000. Paired loss trails the matched individual-loss control at the later checkpoints; neither arm surpasses the selected confidence model. No package replacement. + +## E50 head_paired 3000-step screen +- Checkpoint SHA-256: `1043bbd666890cb730f2931875860ed661f54bae5236a7c93bbbe03764487222`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 27.516828536987305 seconds. +- Overall skill 0.375342; relative MASE 0.746117; relative WQL 0.522970. +- term skill: long=0.3997, medium=0.4065, short=0.3533. +- domain skill: Econ/Fin=0.1387, Energy=0.2340, Healthcare=0.4415, Nature=0.4295, Sales=0.3399, Transport=0.4651, Web/CloudOps=0.4994. +- frequency skill: A=0.3750, D=0.3534, H=0.3947, M=0.0981, Q=0.1978, S=0.4235, T=0.4353, W=0.2097. +- variates skill: multivariate=0.3930, univariate=0.3609. +- Outcome: Small gains at1000 are lost at3000 and6000. Paired loss trails the matched individual-loss control at the later checkpoints; neither arm surpasses the selected confidence model. No package replacement. + +## E50 head_paired 6000-step screen +- Checkpoint SHA-256: `8aacc5fadfa1a9d214aeba0cd1f39bde9aaf038b9ee2a487dafa57b9e904479e`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 25.942206621170044 seconds. +- Overall skill 0.375234; relative MASE 0.746235; relative WQL 0.523068. +- term skill: long=0.3997, medium=0.4064, short=0.3531. +- domain skill: Econ/Fin=0.1405, Energy=0.2337, Healthcare=0.4385, Nature=0.4294, Sales=0.3403, Transport=0.4654, Web/CloudOps=0.4995. +- frequency skill: A=0.3760, D=0.3533, H=0.3947, M=0.0981, Q=0.1988, S=0.4234, T=0.4354, W=0.2077. +- variates skill: multivariate=0.3928, univariate=0.3609. +- Outcome: Small gains at1000 are lost at3000 and6000. Paired loss trails the matched individual-loss control at the later checkpoints; neither arm surpasses the selected confidence model. No package replacement. + +E50 head_paired completed6000 steps in 687.3 elapsed training-loop seconds. Every non-head tensor remains bitwise equal to the E25-24000 parent. + +## E38 original corpus control12000, matched screening +- Checkpoint SHA-256: `7f9ba5e01ac59c51a3b63d3067b442e23e15d0abc51ddbcccdd04d6083ae4add`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 26.037413597106934 seconds. +- Overall skill 0.360533; relative MASE 0.761352; relative WQL 0.537094. +- term skill: long=0.3910, medium=0.4047, short=0.3305. +- domain skill: Econ/Fin=0.1118, Energy=0.1871, Healthcare=0.4084, Nature=0.4251, Sales=0.3445, Transport=0.4588, Web/CloudOps=0.5084. +- frequency skill: A=0.3744, D=0.3432, H=0.3820, M=0.0997, Q=0.1999, S=0.4419, T=0.4062, W=0.2010. +- variates skill: multivariate=0.3952, univariate=0.3315. +- Outcome: The restarted control improves over its12000-step parent but remains below uninterrupted E25-24000. Retain as the paired reference for corpus expansion and partial-target training. + +## E38 original corpus control12000, selected fixed inference rules +- Checkpoint SHA-256: `7f9ba5e01ac59c51a3b63d3067b442e23e15d0abc51ddbcccdd04d6083ae4add`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 25.83461022377014 seconds. +- Overall skill 0.373819; relative MASE 0.747477; relative WQL 0.524569. +- term skill: long=0.3971, medium=0.4072, short=0.3512. +- domain skill: Econ/Fin=0.1366, Energy=0.2343, Healthcare=0.4105, Nature=0.4297, Sales=0.3412, Transport=0.4642, Web/CloudOps=0.5006. +- frequency skill: A=0.3777, D=0.3471, H=0.3939, M=0.0915, Q=0.2002, S=0.4231, T=0.4362, W=0.2036. +- variates skill: multivariate=0.3936, univariate=0.3576. +- Outcome: The restarted control improves over its12000-step parent but remains below uninterrupted E25-24000. Retain as the paired reference for corpus expansion and partial-target training. + +E38 original-corpus control completed12000 steps in 3967.3 elapsed training-loop seconds. E48 phase_synth replaced it on the same H100 after completion. + +## E55 matched partial-target weight difference, screen +- Checkpoint SHA-256: `031411940fdebc895e3cf681512924f680e7feaccdfbda46f85890397fe20bd0`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 26.02963423728943 seconds. +- Overall skill 0.375848; relative MASE 0.745876; relative WQL 0.522292. +- term skill: long=0.3998, medium=0.4069, short=0.3540. +- domain skill: Econ/Fin=0.1449, Energy=0.2367, Healthcare=0.4308, Nature=0.4298, Sales=0.3356, Transport=0.4655, Web/CloudOps=0.5000. +- frequency skill: A=0.3786, D=0.3503, H=0.3960, M=0.1012, Q=0.2008, S=0.4236, T=0.4351, W=0.2163. +- variates skill: multivariate=0.3939, univariate=0.3611. +- Outcome: Skill 0.375848 is only 0.000056 above the selected E47 model. Check both earlier cutoffs before a full-package evaluation; no replacement yet. + +## E56: bounded influence of difficult training windows +Hypothesis: a linear average of normalized window losses gives unusually difficult or abruptly changing futures too much influence, while the benchmark aggregates relative configuration errors geometrically. Keep the original per-window weighted quantile/median loss and context-only seasonal weights, but replace each window loss L by 0.25*log1p(L/0.25) before averaging. The derivative is bounded by1 and declines for difficult windows; this is a robust surrogate, not a claim to exactly optimize benchmark skill. The scale0.25 is fixed in advance, with no sweep. + +Match E38 original-corpus control exactly: parent E25-12000, seed79, packed_sample, source weights, batch256, LR5e-5, 12000-step schedule and save3000. No new source data, architecture or inference rule. Queue after E42 completes12000, then compare against cached control checkpoints and earlier cutoffs. The loss scale is saved in training arguments. + +## E55 transferred partial-target update, backcast +- Checkpoint SHA-256: `031411940fdebc895e3cf681512924f680e7feaccdfbda46f85890397fe20bd0`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 24.927225589752197 seconds. +- Overall skill 0.335000; relative MASE 0.798832; relative WQL 0.553589. +- term skill: long=0.3978, medium=0.3567, short=0.3005. +- domain skill: Econ/Fin=0.1675, Energy=0.2279, Healthcare=0.4021, Nature=0.3600, Sales=0.3983, Transport=0.3718, Web/CloudOps=0.4491. +- frequency skill: A=0.3286, D=0.3484, H=0.3640, M=0.1855, Q=0.2333, S=0.3447, T=0.3347, W=0.2831. +- variates skill: multivariate=0.3522, univariate=0.3210. +- Outcome: Mixed transfer: main +0.000056, first earlier +0.000874, second earlier -0.000595 versus E47. Keep the published package. Revisit the same coefficient with the final12000-step matched checkpoints; no full-package test of this6000-step composition. + +## E55 transferred partial-target update, backcast2 +- Checkpoint SHA-256: `031411940fdebc895e3cf681512924f680e7feaccdfbda46f85890397fe20bd0`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 23.91679048538208 seconds. +- Overall skill 0.357904; relative MASE 0.771656; relative WQL 0.534289. +- term skill: long=0.3649, medium=0.3860, short=0.3441. +- domain skill: Econ/Fin=0.1130, Energy=0.2354, Healthcare=0.3520, Nature=0.4680, Sales=0.5482, Transport=0.4200, Web/CloudOps=0.4303. +- frequency skill: A=0.3535, D=0.4265, H=0.3897, M=0.1535, Q=0.1485, S=0.2805, T=0.3574, W=0.2617. +- variates skill: multivariate=0.3618, univariate=0.3547. +- Outcome: Mixed transfer: main +0.000056, first earlier +0.000874, second earlier -0.000595 versus E47. Keep the published package. Revisit the same coefficient with the final12000-step matched checkpoints; no full-package test of this6000-step composition. + +E54 long_context_8192 training started at 2026-10-22T05:11:31Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +## E38 expanded corpus final12000, matched screen +- Checkpoint SHA-256: `8aa07643add22cc1f8e45c069d19ff54bda8c0853c8e7076eb5923467942327b`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 23.707714796066284 seconds. +- Overall skill 0.359331; relative MASE 0.763140; relative WQL 0.537852. +- term skill: long=0.3931, medium=0.4039, short=0.3277. +- domain skill: Econ/Fin=0.1164, Energy=0.1854, Healthcare=0.3936, Nature=0.4242, Sales=0.3431, Transport=0.4578, Web/CloudOps=0.5093. +- frequency skill: A=0.3748, D=0.3312, H=0.3834, M=0.1029, Q=0.2013, S=0.4405, T=0.4056, W=0.2056. +- variates skill: multivariate=0.3951, univariate=0.3293. +- Outcome: Skill 0.359331 versus matched original-corpus control0.360533. The early near tie becomes a final regression. Do not select the expanded corpus for the current model; retain all packed data and receipts for future experiments. + +E38 expanded-corpus arm completed12000 steps in 4098.4 elapsed training-loop seconds. E54 long_context_8192 started after its process exited on the same H100. + +## E48 synthetic phase diffusion3000, matched screen +- Checkpoint SHA-256: `06c74c2540e7fd208186a407ae6c38fcdeafe5e152887e1d7642d65c18084e64`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 25.34250235557556 seconds. +- Overall skill 0.353459; relative MASE 0.767933; relative WQL 0.544338. +- term skill: long=0.3849, medium=0.3994, short=0.3222. +- domain skill: Econ/Fin=0.1025, Energy=0.1767, Healthcare=0.4158, Nature=0.4111, Sales=0.3476, Transport=0.4532, Web/CloudOps=0.5044. +- frequency skill: A=0.3736, D=0.3385, H=0.3748, M=0.0857, Q=0.1907, S=0.4365, T=0.3973, W=0.1999. +- variates skill: multivariate=0.3856, univariate=0.3267. +- Outcome: Skill0.353459 versus amplitude-only E31 score0.352625 at the same step/seed/data stream. Earlier-cutoff checks are pending; continue the trial. + +E56 log_window_loss training started at 2026-10-22T05:14:05Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +## E57: period-relative phase projections with a frozen backbone +Hypothesis: encoder and future-query attention can use seasonal history more efficiently when supplied explicit relative phase for each frequency-derived period, rather than having to reconstruct it from generic position embeddings and scalar period metadata. Add zero-initialized linear projections of per-point sine/cosine phase for the two periods to context patches and future-query patches. Positions are relative to the forecast origin; periods below2 yield zero features, and missing context positions are masked. There are65536 new parameters, with no calendar dates or dataset identifiers. + +Initialize from the selected E47 confidence6000 package; freeze every existing parameter, including the confidence projection. Train only the two phase projections on packed_sample and the unchanged local synthetic/sign generator, seed107, paired-sign weighted quantile/median loss, batch64, LR2e-4, 6000-step cosine schedule, save1000. Confirm zero-initialization equivalence and maximum-shape memory before starting alongside the six existing trainers on the one H100. No new source data. + +E57 checks passed: the zero-initialized model is bitwise equal to the parent on mixed-frequency, partially missing CPU contexts. Maximum-shape paired batch128/context4096/horizon1024 used3647 MiB peak allocated and3920 MiB reserved, including EMA and optimizer-state placeholders, with finite gradients in1.20 seconds. No optimizer update or checkpoint came from these fixtures. Start batch64 as planned; train only65536 projection parameters. + +## E52 varied requested horizons3000, matched screen +- Checkpoint SHA-256: `ef30f8bd58927ec0a18dc5c68a7b18c0d8066c0b3ff6dbe31b6fec82af26eb0c`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 25.744144678115845 seconds. +- Overall skill 0.359510; relative MASE 0.763513; relative WQL 0.537290. +- term skill: long=0.3912, medium=0.4026, short=0.3294. +- domain skill: Econ/Fin=0.1112, Energy=0.1841, Healthcare=0.4177, Nature=0.4232, Sales=0.3464, Transport=0.4589, Web/CloudOps=0.5065. +- frequency skill: A=0.3765, D=0.3429, H=0.3831, M=0.1035, Q=0.1995, S=0.4418, T=0.4003, W=0.2081. +- variates skill: multivariate=0.3922, univariate=0.3323. +- Outcome: Skill0.359510 versus E42 partial-target control0.358812. The gain is promising; matched earlier-cutoff evaluations are queued. + +## E48 matched3000 comparison: amplitude_synth, backcast +- Checkpoint SHA-256: `6f3e68f1b70e9cde6872473dc4d834c16195e72656ba974eb39d48413a10af63`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 23.832332372665405 seconds. +- Overall skill 0.322014; relative MASE 0.811414; relative WQL 0.566499. +- term skill: long=0.3860, medium=0.3513, short=0.2839. +- domain skill: Econ/Fin=0.1393, Energy=0.2195, Healthcare=0.3717, Nature=0.3475, Sales=0.3988, Transport=0.3598, Web/CloudOps=0.4348. +- frequency skill: A=0.3171, D=0.3485, H=0.3526, M=0.1707, Q=0.2099, S=0.3414, T=0.3170, W=0.2493. +- variates skill: multivariate=0.3360, univariate=0.3107. +- Outcome: Phase diffusion gains at all three cutoffs at3000: main+0.000834, earlier1+0.000612, earlier2+0.000501. Continue to6000 and later matched checkpoints. + +## E48 matched3000 comparison: phase_synth, backcast +- Checkpoint SHA-256: `06c74c2540e7fd208186a407ae6c38fcdeafe5e152887e1d7642d65c18084e64`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 25.44191288948059 seconds. +- Overall skill 0.322626; relative MASE 0.811284; relative WQL 0.565567. +- term skill: long=0.3871, medium=0.3526, short=0.2840. +- domain skill: Econ/Fin=0.1401, Energy=0.2216, Healthcare=0.3676, Nature=0.3459, Sales=0.3983, Transport=0.3597, Web/CloudOps=0.4368. +- frequency skill: A=0.3175, D=0.3449, H=0.3527, M=0.1680, Q=0.2099, S=0.3428, T=0.3207, W=0.2496. +- variates skill: multivariate=0.3385, univariate=0.3097. +- Outcome: Phase diffusion gains at all three cutoffs at3000: main+0.000834, earlier1+0.000612, earlier2+0.000501. Continue to6000 and later matched checkpoints. + +## E48 matched3000 comparison: amplitude_synth, backcast2 +- Checkpoint SHA-256: `6f3e68f1b70e9cde6872473dc4d834c16195e72656ba974eb39d48413a10af63`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 27.063983917236328 seconds. +- Overall skill 0.346071; relative MASE 0.781652; relative WQL 0.547076. +- term skill: long=0.3649, medium=0.3705, short=0.3294. +- domain skill: Econ/Fin=0.0773, Energy=0.2205, Healthcare=0.3375, Nature=0.4551, Sales=0.5561, Transport=0.4102, Web/CloudOps=0.4240. +- frequency skill: A=0.3378, D=0.4197, H=0.3812, M=0.1601, Q=0.1370, S=0.2856, T=0.3361, W=0.2413. +- variates skill: multivariate=0.3528, univariate=0.3406. +- Outcome: Phase diffusion gains at all three cutoffs at3000: main+0.000834, earlier1+0.000612, earlier2+0.000501. Continue to6000 and later matched checkpoints. + +## E48 matched3000 comparison: phase_synth, backcast2 +- Checkpoint SHA-256: `06c74c2540e7fd208186a407ae6c38fcdeafe5e152887e1d7642d65c18084e64`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 26.462491750717163 seconds. +- Overall skill 0.346572; relative MASE 0.781891; relative WQL 0.546071. +- term skill: long=0.3645, medium=0.3710, short=0.3303. +- domain skill: Econ/Fin=0.0768, Energy=0.2203, Healthcare=0.3341, Nature=0.4562, Sales=0.5562, Transport=0.4104, Web/CloudOps=0.4261. +- frequency skill: A=0.3370, D=0.4191, H=0.3813, M=0.1474, Q=0.1380, S=0.2827, T=0.3397, W=0.2426. +- variates skill: multivariate=0.3544, univariate=0.3402. +- Outcome: Phase diffusion gains at all three cutoffs at3000: main+0.000834, earlier1+0.000612, earlier2+0.000501. Continue to6000 and later matched checkpoints. + +## E42 final12000, matched mean-template screen +- Checkpoint SHA-256: `a0ef29e85d0cf01677a6a58e4a9f91b077073c4af95f85234eec2ddc223f4837`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 25.56895399093628 seconds. +- Overall skill 0.361108; relative MASE 0.761463; relative WQL 0.536050. +- term skill: long=0.3906, medium=0.4043, short=0.3319. +- domain skill: Econ/Fin=0.1096, Energy=0.1895, Healthcare=0.4193, Nature=0.4256, Sales=0.3404, Transport=0.4593, Web/CloudOps=0.5063. +- frequency skill: A=0.3721, D=0.3420, H=0.3825, M=0.1108, Q=0.1995, S=0.4420, T=0.4045, W=0.2122. +- variates skill: multivariate=0.3937, univariate=0.3339. +- Outcome: The partial-target change still improves over its matched original-corpus control. The direct model remains below the published later E25/E47 lineage. Earlier-cutoff checks and the prespecified final-checkpoint weight-difference transfer are pending. + +## E42 final12000, selected fixed inference rules +- Checkpoint SHA-256: `a0ef29e85d0cf01677a6a58e4a9f91b077073c4af95f85234eec2ddc223f4837`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 27.01974844932556 seconds. +- Overall skill 0.374349; relative MASE 0.747467; relative WQL 0.523688. +- term skill: long=0.3969, medium=0.4067, short=0.3525. +- domain skill: Econ/Fin=0.1345, Energy=0.2359, Healthcare=0.4230, Nature=0.4302, Sales=0.3371, Transport=0.4647, Web/CloudOps=0.4986. +- frequency skill: A=0.3753, D=0.3458, H=0.3943, M=0.1064, Q=0.1999, S=0.4233, T=0.4344, W=0.2143. +- variates skill: multivariate=0.3921, univariate=0.3599. +- Outcome: The partial-target change still improves over its matched original-corpus control. The direct model remains below the published later E25/E47 lineage. Earlier-cutoff checks and the prespecified final-checkpoint weight-difference transfer are pending. + +E42 completed12000 steps in 4034.2 elapsed training-loop seconds. E56 replaced it on the same H100. + +## E52 matched3000 comparison: partial_targets, backcast +- Checkpoint SHA-256: `fce955a709ee54429c943e3962df49055444d5a15453865a01e4883614425917`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 25.31913948059082 seconds. +- Overall skill 0.329377; relative MASE 0.806571; relative WQL 0.557590. +- term skill: long=0.3896, medium=0.3560, short=0.2940. +- domain skill: Econ/Fin=0.1487, Energy=0.2246, Healthcare=0.4210, Nature=0.3485, Sales=0.3987, Transport=0.3621, Web/CloudOps=0.4433. +- frequency skill: A=0.3183, D=0.3586, H=0.3563, M=0.1681, Q=0.2258, S=0.3434, T=0.3271, W=0.2657. +- variates skill: multivariate=0.3451, univariate=0.3166. +- Outcome: Horizon jitter gains main+0.000697 and earlier2+0.000423, but loses earlier1 by0.000300. Continue to6000 to assess whether the effect persists; no package change. + +## E52 matched3000 comparison: horizon_jitter, backcast +- Checkpoint SHA-256: `ef30f8bd58927ec0a18dc5c68a7b18c0d8066c0b3ff6dbe31b6fec82af26eb0c`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 27.87836766242981 seconds. +- Overall skill 0.329077; relative MASE 0.807099; relative WQL 0.557723. +- term skill: long=0.3896, medium=0.3557, short=0.2936. +- domain skill: Econ/Fin=0.1451, Energy=0.2244, Healthcare=0.4181, Nature=0.3490, Sales=0.3989, Transport=0.3628, Web/CloudOps=0.4429. +- frequency skill: A=0.3192, D=0.3567, H=0.3569, M=0.1660, Q=0.2272, S=0.3431, T=0.3263, W=0.2674. +- variates skill: multivariate=0.3446, univariate=0.3165. +- Outcome: Horizon jitter gains main+0.000697 and earlier2+0.000423, but loses earlier1 by0.000300. Continue to6000 to assess whether the effect persists; no package change. + +## E52 matched3000 comparison: partial_targets, backcast2 +- Checkpoint SHA-256: `fce955a709ee54429c943e3962df49055444d5a15453865a01e4883614425917`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 27.110735416412354 seconds. +- Overall skill 0.352022; relative MASE 0.776423; relative WQL 0.540782. +- term skill: long=0.3678, medium=0.3760, short=0.3367. +- domain skill: Econ/Fin=0.0867, Energy=0.2248, Healthcare=0.3701, Nature=0.4601, Sales=0.5593, Transport=0.4130, Web/CloudOps=0.4281. +- frequency skill: A=0.3418, D=0.4285, H=0.3860, M=0.1767, Q=0.1499, S=0.2821, T=0.3437, W=0.2407. +- variates skill: multivariate=0.3578, univariate=0.3473. +- Outcome: Horizon jitter gains main+0.000697 and earlier2+0.000423, but loses earlier1 by0.000300. Continue to6000 to assess whether the effect persists; no package change. + +## E52 matched3000 comparison: horizon_jitter, backcast2 +- Checkpoint SHA-256: `ef30f8bd58927ec0a18dc5c68a7b18c0d8066c0b3ff6dbe31b6fec82af26eb0c`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 26.243326425552368 seconds. +- Overall skill 0.352445; relative MASE 0.776496; relative WQL 0.540026. +- term skill: long=0.3678, medium=0.3759, short=0.3375. +- domain skill: Econ/Fin=0.0824, Energy=0.2247, Healthcare=0.3724, Nature=0.4606, Sales=0.5600, Transport=0.4138, Web/CloudOps=0.4293. +- frequency skill: A=0.3405, D=0.4280, H=0.3865, M=0.1811, Q=0.1490, S=0.2826, T=0.3439, W=0.2424. +- variates skill: multivariate=0.3585, univariate=0.3475. +- Outcome: Horizon jitter gains main+0.000697 and earlier2+0.000423, but loses earlier1 by0.000300. Continue to6000 to assess whether the effect persists; no package change. + +## E57 period-relative phase projection, initial screen +- Checkpoint SHA-256: `275e6d68dda364b71999bf311a8ce7acf09ae4fb4642b8e07c404dd1bd9849ca`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 29.636561393737793 seconds. +- Overall skill 0.375793; relative MASE 0.745649; relative WQL 0.522544. +- term skill: long=0.3998, medium=0.4067, short=0.3540. +- domain skill: Econ/Fin=0.1396, Energy=0.2348, Healthcare=0.4406, Nature=0.4284, Sales=0.3399, Transport=0.4658, Web/CloudOps=0.5006. +- frequency skill: A=0.3762, D=0.3542, H=0.3951, M=0.0954, Q=0.1982, S=0.4239, T=0.4362, W=0.2090. +- variates skill: multivariate=0.3937, univariate=0.3611. +- Outcome: Exactly equal to the E47 parent score0.3757929301726527, validating the zero-initialized runtime before training. + +## E55 final12000 matched training difference, screen +- Checkpoint SHA-256: `721d1029284ea6f36d4c6f169eb001382a97a2848953fad84e3e62fb5a222802`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 28.509355783462524 seconds. +- Overall skill 0.375956; relative MASE 0.746201; relative WQL 0.521885. +- term skill: long=0.3991, medium=0.4059, short=0.3549. +- domain skill: Econ/Fin=0.1387, Energy=0.2371, Healthcare=0.4442, Nature=0.4287, Sales=0.3348, Transport=0.4657, Web/CloudOps=0.4989. +- frequency skill: A=0.3739, D=0.3506, H=0.3961, M=0.1054, Q=0.1984, S=0.4235, T=0.4345, W=0.2191. +- variates skill: multivariate=0.3928, univariate=0.3622. +- Outcome: Skill0.375956 versus selected E47 score0.375793. This is a larger screen gain than the6000-step difference; evaluate both earlier cutoffs before selecting. + +## E57 period-relative phase projections1000, screen +- Checkpoint SHA-256: `2deeff17c98c6993f9da1713c973fe0f803358a717c021e81438cdf203ae5f51`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 29.055758476257324 seconds. +- Overall skill 0.375590; relative MASE 0.745958; relative WQL 0.522667. +- term skill: long=0.3989, medium=0.4062, short=0.3542. +- domain skill: Econ/Fin=0.1398, Energy=0.2354, Healthcare=0.4399, Nature=0.4278, Sales=0.3393, Transport=0.4661, Web/CloudOps=0.4996. +- frequency skill: A=0.3762, D=0.3549, H=0.3950, M=0.0942, Q=0.1970, S=0.4219, T=0.4359, W=0.2092. +- variates skill: multivariate=0.3933, univariate=0.3612. +- Outcome: Skill0.375590 is slightly below the parent0.375793. Continue to3000/6000 to assess whether training recovers, as the previous confidence projection did late in its schedule. + +## E42 final12000 matched comparison: large_corpus_control, backcast +- Checkpoint SHA-256: `7f9ba5e01ac59c51a3b63d3067b442e23e15d0abc51ddbcccdd04d6083ae4add`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 27.9762020111084 seconds. +- Overall skill 0.330213; relative MASE 0.806120; relative WQL 0.556510. +- term skill: long=0.3888, medium=0.3557, short=0.2960. +- domain skill: Econ/Fin=0.1456, Energy=0.2279, Healthcare=0.4182, Nature=0.3493, Sales=0.3975, Transport=0.3647, Web/CloudOps=0.4422. +- frequency skill: A=0.2987, D=0.3583, H=0.3572, M=0.1590, Q=0.2332, S=0.3409, T=0.3303, W=0.2690. +- variates skill: multivariate=0.3460, univariate=0.3174. +- Outcome: Final partial-target model gains main+0.000575 and earlier1+0.000861, but loses earlier2 by0.000358. Direct model remains below the published later lineage. + +## E42 final12000 matched comparison: partial_targets, backcast +- Checkpoint SHA-256: `a0ef29e85d0cf01677a6a58e4a9f91b077073c4af95f85234eec2ddc223f4837`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 27.47197651863098 seconds. +- Overall skill 0.331074; relative MASE 0.805060; relative WQL 0.555811. +- term skill: long=0.3901, medium=0.3561, short=0.2969. +- domain skill: Econ/Fin=0.1467, Energy=0.2289, Healthcare=0.4192, Nature=0.3505, Sales=0.3984, Transport=0.3646, Web/CloudOps=0.4431. +- frequency skill: A=0.3115, D=0.3560, H=0.3581, M=0.1677, Q=0.2337, S=0.3423, T=0.3297, W=0.2763. +- variates skill: multivariate=0.3468, univariate=0.3183. +- Outcome: Final partial-target model gains main+0.000575 and earlier1+0.000861, but loses earlier2 by0.000358. Direct model remains below the published later lineage. + +## E55 final12000 transferred difference, backcast +- Checkpoint SHA-256: `721d1029284ea6f36d4c6f169eb001382a97a2848953fad84e3e62fb5a222802`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 26.976391792297363 seconds. +- Overall skill 0.335609; relative MASE 0.797954; relative WQL 0.553184. +- term skill: long=0.3979, medium=0.3572, short=0.3014. +- domain skill: Econ/Fin=0.1631, Energy=0.2288, Healthcare=0.4091, Nature=0.3616, Sales=0.3971, Transport=0.3715, Web/CloudOps=0.4491. +- frequency skill: A=0.3254, D=0.3493, H=0.3647, M=0.1918, Q=0.2328, S=0.3430, T=0.3345, W=0.2857. +- variates skill: multivariate=0.3525, univariate=0.3218. +- Outcome: Transfer gains main+0.000163 and earlier1+0.001483, but loses earlier2 by0.001028. Average gain across the three cutoffs is positive; run exact full validation before deciding whether to publish this tradeoff. + +## E42 final12000 matched comparison: large_corpus_control, backcast2 +- Checkpoint SHA-256: `7f9ba5e01ac59c51a3b63d3067b442e23e15d0abc51ddbcccdd04d6083ae4add`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 26.495740175247192 seconds. +- Overall skill 0.353454; relative MASE 0.776299; relative WQL 0.538480. +- term skill: long=0.3687, medium=0.3751, short=0.3393. +- domain skill: Econ/Fin=0.0914, Energy=0.2288, Healthcare=0.3664, Nature=0.4591, Sales=0.5548, Transport=0.4142, Web/CloudOps=0.4303. +- frequency skill: A=0.3473, D=0.4293, H=0.3865, M=0.1743, Q=0.1540, S=0.2821, T=0.3466, W=0.2433. +- variates skill: multivariate=0.3605, univariate=0.3477. +- Outcome: Final partial-target model gains main+0.000575 and earlier1+0.000861, but loses earlier2 by0.000358. Direct model remains below the published later lineage. + +## E42 final12000 matched comparison: partial_targets, backcast2 +- Checkpoint SHA-256: `a0ef29e85d0cf01677a6a58e4a9f91b077073c4af95f85234eec2ddc223f4837`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 27.049270629882812 seconds. +- Overall skill 0.353096; relative MASE 0.776739; relative WQL 0.538771. +- term skill: long=0.3692, medium=0.3760, short=0.3381. +- domain skill: Econ/Fin=0.0920, Energy=0.2294, Healthcare=0.3671, Nature=0.4574, Sales=0.5540, Transport=0.4141, Web/CloudOps=0.4294. +- frequency skill: A=0.3519, D=0.4253, H=0.3874, M=0.1772, Q=0.1555, S=0.2805, T=0.3464, W=0.2443. +- variates skill: multivariate=0.3599, univariate=0.3476. +- Outcome: Final partial-target model gains main+0.000575 and earlier1+0.000861, but loses earlier2 by0.000358. Direct model remains below the published later lineage. + +## E55 final12000 transferred difference, backcast2 +- Checkpoint SHA-256: `721d1029284ea6f36d4c6f169eb001382a97a2848953fad84e3e62fb5a222802`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 26.92556405067444 seconds. +- Overall skill 0.357472; relative MASE 0.772231; relative WQL 0.534610. +- term skill: long=0.3642, medium=0.3858, short=0.3437. +- domain skill: Econ/Fin=0.1127, Energy=0.2350, Healthcare=0.3474, Nature=0.4678, Sales=0.5489, Transport=0.4199, Web/CloudOps=0.4300. +- frequency skill: A=0.3556, D=0.4262, H=0.3901, M=0.1532, Q=0.1527, S=0.2796, T=0.3567, W=0.2577. +- variates skill: multivariate=0.3616, univariate=0.3541. +- Outcome: Transfer gains main+0.000163 and earlier1+0.001483, but loses earlier2 by0.001028. Average gain across the three cutoffs is positive; run exact full validation before deciding whether to publish this tradeoff. + +E31 amplitude-varying synthetic run completed24000 steps in7471.1 elapsed training-loop seconds on the shared H100. Final checkpoint is being checked with the selected fixed inference rules at all three cutoffs. + +## E58: increase width from our own trained model (preparing) +Repeated continuations of the36.8M model show diminishing gains. Hypothesis: more capacity can improve learning from the allowed corpus after a function-preserving initialization, given a sufficiently long matched schedule. Widen the selected E47 model from d512/heads8 to d1024/heads16, retaining enc6/dec4 and patch16. Duplicate hidden representations; duplicate input columns with weights divided by2; duplicate output rows. Preserve attention K/V grouping, repeat layernorm vectors, and repeat the original512-dimensional positional vector. Verify the unperturbed conversion on fixed synthetic fixtures. Then add independently seeded1%-of-tensor-standard-deviation noise to matrix weights to break duplicated-neuron symmetry, measuring the resulting prediction change. This is an initialization derived only from our own trained weights. + +A matched original-width control will use the same parent, data windows, seed113 and original sign-augmented loss. Proposed batch128, LR3e-5 and24000-step schedule are subject to a maximum-shape memory check after E31 releases its training slot. For widened matrices with duplicated input columns, use half the base learning rate and twice the weight decay to retain comparable initial functional update/decay scales; other parameters use the original rate. These settings and any necessary memory-driven batch adjustment will be recorded before training. No external weights or data. + +## E55 final12000 transferred update, exact full package validation +- Checkpoint SHA-256: `721d1029284ea6f36d4c6f169eb001382a97a2848953fad84e3e62fb5a222802`. +- Evaluation: 97 configurations, 151170 instances, 0 failed configurations; not separately timed seconds. +- Overall skill 0.372143; relative MASE 0.748865; relative WQL 0.526402. +- term skill: long=0.3930, medium=0.4049, short=0.3509. +- domain skill: Econ/Fin=0.1163, Energy=0.2302, Healthcare=0.4510, Nature=0.4286, Sales=0.3487, Transport=0.4659, Web/CloudOps=0.4912. +- frequency skill: A=0.2931, D=0.3551, H=0.3913, M=0.1284, Q=0.1851, S=0.4235, T=0.4275, W=0.2120. +- variates skill: multivariate=0.3885, univariate=0.3588. +- Outcome: Select for publication after relocation and determinism checks. Full skill0.372143 improves on E47 score0.371766. All97 configurations and151170 instances passed, with no quantile crossings; actual inference123.68 seconds. Earlier temporal diagnostics retain a tradeoff: first earlier cutoff+0.001483, second earlier cutoff-0.001028. The mean gain across the main and two earlier screens is positive; this is validation selection, not a held-out reward claim. + +E58 conversion produced 146477344 parameters. Maximum normalized-quantile difference before noise was 0.000001669; after the fixed1% matrix noise it was 0.018048. Conversion took 2.38 CPU seconds. Parent hash and noise seed113 are recorded in wide_capacity_initial.pt.json. + +Maximum-shape memory checks, including optimizer moments and EMA placeholders, used13326 MiB reserved at batch128 and10708 MiB at batch96; both had finite gradients. Choose batch96 for both arms to preserve evaluation headroom. Increase the planned schedule from24000 to32000 steps so the planned number of windows remains3072000 per arm. Save/evaluate4000,8000,16000,24000,32000. Base LR3e-5, seed113, unchanged context/horizon mixture and packed_sample. Wider-matrix LR multiplier0.5 and decay multiplier2 remain as declared. Start the wide arm now that E31 has exited; queue the original-width control after E57 completes. Research and package inference use batch64 for both widths to keep memory comparable. + +E55 relocation/determinism checks passed: the candidate and a separate fresh /tmp copy, both launched from /tmp, produced bitwise identical finite monotone quantiles for daily, hourly and multivariate medium-horizon examples. Publish the complete model/report/manifest/provenance/log bundle atomically. + +## E59: equal-weight ensemble of complementary training variants +The final E31 amplitude-varying model improves both earlier cutoffs over its recency24000 control, while its main fixed-rule screen is lower. The selected E55 transfer has the opposite second-earlier tradeoff. Hypothesis: an equal-weight average can reduce these differences. Reuse cached quantiles for E55 partial_delta12k and E31 amplitude24000, with both members forecasting every instance. Test only the fixed50/50 average, with and without applying the selected zero0.4 projection once more after averaging; averaging two zero-projected forecasts can otherwise introduce small positive values. No weight sweep or training. If promising, build and validate the actual two-member runtime before publication. + +## E31 final24000 with selected fixed rules, screen +- Checkpoint SHA-256: `ecab9102fc11909555044c67dffda85280e06a375f1733351c7e9a39bf2ce9bb`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 23.934752464294434 seconds. +- Overall skill 0.375166; relative MASE 0.746944; relative WQL 0.522686. +- term skill: long=0.3998, medium=0.4070, short=0.3527. +- domain skill: Econ/Fin=0.1414, Energy=0.2355, Healthcare=0.4087, Nature=0.4266, Sales=0.3412, Transport=0.4655, Web/CloudOps=0.5053. +- frequency skill: A=0.3762, D=0.3445, H=0.3950, M=0.0900, Q=0.2023, S=0.4234, T=0.4389, W=0.2104. +- variates skill: multivariate=0.3958, univariate=0.3582. +- Outcome: Relative to E25 recency24000: main-0.000336, earlier1+0.000565, earlier2+0.000635. Do not replace the main package with this model alone. Test the prespecified equal-weight blend with the selected E55 model. + +## E31 final24000 with selected fixed rules, backcast +- Checkpoint SHA-256: `ecab9102fc11909555044c67dffda85280e06a375f1733351c7e9a39bf2ce9bb`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 23.675416946411133 seconds. +- Overall skill 0.334745; relative MASE 0.799254; relative WQL 0.553722. +- term skill: long=0.3965, medium=0.3574, short=0.3003. +- domain skill: Econ/Fin=0.1603, Energy=0.2277, Healthcare=0.4000, Nature=0.3619, Sales=0.3979, Transport=0.3709, Web/CloudOps=0.4497. +- frequency skill: A=0.3115, D=0.3485, H=0.3643, M=0.1990, Q=0.2289, S=0.3403, T=0.3365, W=0.2702. +- variates skill: multivariate=0.3522, univariate=0.3205. +- Outcome: Relative to E25 recency24000: main-0.000336, earlier1+0.000565, earlier2+0.000635. Do not replace the main package with this model alone. Test the prespecified equal-weight blend with the selected E55 model. + +## E31 final24000 with selected fixed rules, backcast2 +- Checkpoint SHA-256: `ecab9102fc11909555044c67dffda85280e06a375f1733351c7e9a39bf2ce9bb`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 24.473368406295776 seconds. +- Overall skill 0.358910; relative MASE 0.771616; relative WQL 0.532644. +- term skill: long=0.3672, medium=0.3833, short=0.3462. +- domain skill: Econ/Fin=0.1126, Energy=0.2349, Healthcare=0.3493, Nature=0.4705, Sales=0.5536, Transport=0.4202, Web/CloudOps=0.4327. +- frequency skill: A=0.3556, D=0.4300, H=0.3901, M=0.1370, Q=0.1497, S=0.2870, T=0.3573, W=0.2669. +- variates skill: multivariate=0.3623, univariate=0.3562. +- Outcome: Relative to E25 recency24000: main-0.000336, earlier1+0.000565, earlier2+0.000635. Do not replace the main package with this model alone. Test the prespecified equal-weight blend with the selected E55 model. + +## E59 cached equal-weight comparison +No training; fixed inference seed0 and ensemble weight0.5 for each member. Member weights: selected E55 partial_delta12k SHA-256 721d1029284ea6f36d4c6f169eb001382a97a2848953fad84e3e62fb5a222802; amplitude24000 hash is recorded in its matched reports. + +screen: 2.65 CPU diagnostic seconds. +- average: skill 0.376116; term: short=0.3545, medium=0.4069, long=0.3997; domain: Econ/Fin=0.1408, Energy=0.2367, Healthcare=0.4304, Nature=0.4279, Sales=0.3385, Transport=0.4658, Web/CloudOps=0.5025; freq: A-DEC=0.3755, Q-DEC=0.2008, M=0.0994, W-SUN=0.0865, D=0.3491, H=0.3958, 15T=0.2143, W-FRI=-0.0164, 10T=0.6125, W-TUE=0.5565, W-THU=0.2049, W-WED=0.3155, 5T=0.5141, 10S=0.4235. +- average_then_zero: skill 0.376000; term: short=0.3545, medium=0.4068, long=0.3994; domain: Econ/Fin=0.1408, Energy=0.2367, Healthcare=0.4304, Nature=0.4277, Sales=0.3386, Transport=0.4658, Web/CloudOps=0.5021; freq: A-DEC=0.3755, Q-DEC=0.2008, M=0.0999, W-SUN=0.0865, D=0.3489, H=0.3957, 15T=0.2143, W-FRI=-0.0164, 10T=0.6124, W-TUE=0.5565, W-THU=0.2049, W-WED=0.3154, 5T=0.5138, 10S=0.4235. + +backcast: 2.59 CPU diagnostic seconds. +- average: skill 0.335702; term: short=0.3015, medium=0.3577, long=0.3976; domain: Econ/Fin=0.1625, Energy=0.2286, Healthcare=0.4066, Nature=0.3622, Sales=0.3978, Transport=0.3714, Web/CloudOps=0.4500; freq: A-DEC=0.3193, Q-DEC=0.2313, M=0.1979, W-SUN=0.0360, D=0.3493, H=0.3648, 15T=0.2260, W-FRI=0.2606, 10T=0.3193, W-TUE=0.5296, W-THU=0.2330, W-WED=0.3440, 5T=0.4376, 10S=0.3419. +- average_then_zero: skill 0.335612; term: short=0.3014, medium=0.3575, long=0.3976; domain: Econ/Fin=0.1625, Energy=0.2286, Healthcare=0.4066, Nature=0.3619, Sales=0.3980, Transport=0.3714, Web/CloudOps=0.4498; freq: A-DEC=0.3193, Q-DEC=0.2313, M=0.1983, W-SUN=0.0360, D=0.3491, H=0.3648, 15T=0.2260, W-FRI=0.2606, 10T=0.3188, W-TUE=0.5296, W-THU=0.2330, W-WED=0.3440, 5T=0.4372, 10S=0.3419. + +backcast2: 2.43 CPU diagnostic seconds. +- average: skill 0.358667; term: short=0.3455, medium=0.3850, long=0.3661; domain: Econ/Fin=0.1134, Energy=0.2353, Healthcare=0.3493, Nature=0.4696, Sales=0.5519, Transport=0.4203, Web/CloudOps=0.4320; freq: A-DEC=0.3562, Q-DEC=0.1515, M=0.1452, W-SUN=0.0558, D=0.4288, H=0.3904, 15T=0.1044, W-FRI=0.1452, 10T=0.4937, W-TUE=0.1018, W-THU=0.3276, W-WED=0.5366, 5T=0.4664, 10S=0.2839. +- average_then_zero: skill 0.358497; term: short=0.3453, medium=0.3849, long=0.3659; domain: Econ/Fin=0.1134, Energy=0.2352, Healthcare=0.3493, Nature=0.4693, Sales=0.5513, Transport=0.4203, Web/CloudOps=0.4318; freq: A-DEC=0.3562, Q-DEC=0.1515, M=0.1452, W-SUN=0.0558, D=0.4286, H=0.3904, 15T=0.1044, W-FRI=0.1452, 10T=0.4927, W-TUE=0.1018, W-THU=0.3276, W-WED=0.5364, 5T=0.4661, 10S=0.2839. + +Outcome: plain averaging wins all three cutoffs over the selected single model. Reapplying the zero projection after averaging is worse at every cutoff. Build the actual two-member package and verify cached/runtime agreement, full validation and relocation before publication. + +E58 wide_capacity_control training started at 2026-10-22T05:35:38Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E59 actual two-member runtime produced bitwise identical quantiles to the cached plain50/50 average for every point in all97 main-screen configurations. Its screening skill is0.37611643951533646, matching the probe exactly. Proceed to actual full-package inference and scoring. + +## E57 period-relative phase projections3000, screen +- Checkpoint SHA-256: `740fed81313fbb2dc2060173ae11ed120d6cca9600620cd1c9d9331ccac699e5`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 26.340542793273926 seconds. +- Overall skill 0.375400; relative MASE 0.745694; relative WQL 0.523171. +- term skill: long=0.3995, medium=0.4066, short=0.3534. +- domain skill: Econ/Fin=0.1392, Energy=0.2355, Healthcare=0.4394, Nature=0.4265, Sales=0.3394, Transport=0.4660, Web/CloudOps=0.4999. +- frequency skill: A=0.3762, D=0.3544, H=0.3946, M=0.0943, Q=0.1976, S=0.4227, T=0.4359, W=0.2085. +- variates skill: multivariate=0.3928, univariate=0.3611. +- Outcome: The6000-step score0.375840 is only0.000047 above its E47 parent, after earlier regressions. Existing model tensors remain bitwise unchanged. Check earlier cutoffs before selecting any use of these projections. + +## E57 period-relative phase projections6000, screen +- Checkpoint SHA-256: `956fb0c541a5ae81aaccd7b059143720c5b55d0c030df0162d2eae0736701832`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 29.05087399482727 seconds. +- Overall skill 0.375840; relative MASE 0.745321; relative WQL 0.522695. +- term skill: long=0.3997, medium=0.4065, short=0.3542. +- domain skill: Econ/Fin=0.1396, Energy=0.2356, Healthcare=0.4472, Nature=0.4272, Sales=0.3377, Transport=0.4655, Web/CloudOps=0.4998. +- frequency skill: A=0.3762, D=0.3562, H=0.3947, M=0.0979, Q=0.1989, S=0.4232, T=0.4357, W=0.2089. +- variates skill: multivariate=0.3935, univariate=0.3614. +- Outcome: The6000-step score0.375840 is only0.000047 above its E47 parent, after earlier regressions. Existing model tensors remain bitwise unchanged. Check earlier cutoffs before selecting any use of these projections. + +E57 completed6000 steps in1147.4 elapsed training-loop seconds. Every pre-existing tensor is bitwise equal to the E47 parent; only the65536 phase-projection parameters changed. E58 original-width control started after this process exited. + +## E58 widened initialization, main screen at batch64 +- Checkpoint SHA-256: `495eed9e1a09379b3cbcdadbee447d2c519a2cff8239c0756cf94f49f8a1b55e`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 43.54188299179077 seconds. +- Overall skill 0.375710; relative MASE 0.745704; relative WQL 0.522645. +- term skill: long=0.3998, medium=0.4067, short=0.3538. +- domain skill: Econ/Fin=0.1394, Energy=0.2348, Healthcare=0.4397, Nature=0.4283, Sales=0.3400, Transport=0.4658, Web/CloudOps=0.5006. +- frequency skill: A=0.3762, D=0.3540, H=0.3951, M=0.0946, Q=0.1984, S=0.4240, T=0.4362, W=0.2087. +- variates skill: multivariate=0.3937, univariate=0.3610. +- Outcome: Initial score0.375710 remains close to the original model before any larger-model training. The matched original-width initialization at the same inference batch size is being checked. + +## E56 log window loss3000, matched screen +- Checkpoint SHA-256: `14dd06fb6dff3c336f5aa26b8525d7ccb921a80b3e7be4d22b285584c14ff3bd`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 28.476420640945435 seconds. +- Overall skill 0.357135; relative MASE 0.765561; relative WQL 0.539835. +- term skill: long=0.3893, medium=0.3998, short=0.3270. +- domain skill: Econ/Fin=0.1142, Energy=0.1808, Healthcare=0.3930, Nature=0.4235, Sales=0.3538, Transport=0.4615, Web/CloudOps=0.5024. +- frequency skill: A=0.3804, D=0.3293, H=0.3825, M=0.1125, Q=0.2032, S=0.4413, T=0.3984, W=0.2094. +- variates skill: multivariate=0.3893, univariate=0.3303. +- Outcome: Score0.357135 regresses versus original-loss control0.358802. Continue to6000 before deciding whether to stop this objective. + +## E48 phase diffusion6000, matched screen +- Checkpoint SHA-256: `8d6371333e936bbfc2aa746819bfd0cedd392f873ce79c1d6f729b205c3f0b87`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 26.55935049057007 seconds. +- Overall skill 0.356225; relative MASE 0.765189; relative WQL 0.541626. +- term skill: long=0.3862, medium=0.3999, short=0.3266. +- domain skill: Econ/Fin=0.1072, Energy=0.1811, Healthcare=0.4144, Nature=0.4178, Sales=0.3484, Transport=0.4543, Web/CloudOps=0.5048. +- frequency skill: A=0.3702, D=0.3423, H=0.3775, M=0.0903, Q=0.1971, S=0.4361, T=0.4007, W=0.2000. +- variates skill: multivariate=0.3887, univariate=0.3292. +- Outcome: Score0.356225 versus amplitude-only0.355543: the main gain persists at6000. Earlier cutoffs are being evaluated. + +## E52 varied requested horizons6000, matched screen +- Checkpoint SHA-256: `1276edf6f471ab96e61e61ead3cb813a58a4cadfac530d2c190072d9b211c182`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 27.603736400604248 seconds. +- Overall skill 0.359683; relative MASE 0.762743; relative WQL 0.537542. +- term skill: long=0.3900, medium=0.4024, short=0.3303. +- domain skill: Econ/Fin=0.1129, Energy=0.1876, Healthcare=0.4160, Nature=0.4253, Sales=0.3425, Transport=0.4576, Web/CloudOps=0.5040. +- frequency skill: A=0.3774, D=0.3429, H=0.3812, M=0.1107, Q=0.1984, S=0.4413, T=0.4021, W=0.2071. +- variates skill: multivariate=0.3915, univariate=0.3332. +- Outcome: Score0.359683 versus E42 partial-target control0.359222: a smaller main gain persists. Check both earlier cutoffs. + +## E54 original-context control6000, screen +- Checkpoint SHA-256: `14d964cb2b828f8e81c8b656b33da583b2f5fb48a3f003d043ba7c0b88cd3137`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 25.69702458381653 seconds. +- Overall skill 0.374515; relative MASE 0.746663; relative WQL 0.523973. +- term skill: long=0.3995, medium=0.4071, short=0.3516. +- domain skill: Econ/Fin=0.1381, Energy=0.2362, Healthcare=0.4110, Nature=0.4291, Sales=0.3380, Transport=0.4658, Web/CloudOps=0.5007. +- frequency skill: A=0.3757, D=0.3496, H=0.3960, M=0.0674, Q=0.2005, S=0.4225, T=0.4371, W=0.2070. +- variates skill: multivariate=0.3945, univariate=0.3581. +- Outcome: Fresh continuation is below the E25 parent. Keep as the matched source-window/seed reference for the8192-context arm. + +## E48 matched6000 comparison: amplitude_synth, backcast +- Checkpoint SHA-256: `7fe2746b237fb2699c2d8c812595666df0888cde656498043e01847bb552c783`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 21.44511580467224 seconds. +- Overall skill 0.324002; relative MASE 0.810229; relative WQL 0.564005. +- term skill: long=0.3880, medium=0.3521, short=0.2864. +- domain skill: Econ/Fin=0.1415, Energy=0.2210, Healthcare=0.3855, Nature=0.3485, Sales=0.3980, Transport=0.3607, Web/CloudOps=0.4366. +- frequency skill: A=0.3171, D=0.3509, H=0.3541, M=0.1703, Q=0.2160, S=0.3413, T=0.3204, W=0.2494. +- variates skill: multivariate=0.3381, univariate=0.3126. +- Outcome: Phase diffusion retains a main gain but loses about0.0011 at both earlier cutoffs. The earlier3000-step gains did not persist. Stop this branch; it is not selected. + +## E48 matched6000 comparison: phase_synth, backcast +- Checkpoint SHA-256: `8d6371333e936bbfc2aa746819bfd0cedd392f873ce79c1d6f729b205c3f0b87`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 26.959611415863037 seconds. +- Overall skill 0.322903; relative MASE 0.811500; relative WQL 0.564954. +- term skill: long=0.3870, medium=0.3532, short=0.2843. +- domain skill: Econ/Fin=0.1406, Energy=0.2220, Healthcare=0.3697, Nature=0.3497, Sales=0.3989, Transport=0.3583, Web/CloudOps=0.4353. +- frequency skill: A=0.3141, D=0.3444, H=0.3533, M=0.1676, Q=0.2139, S=0.3417, T=0.3204, W=0.2546. +- variates skill: multivariate=0.3382, univariate=0.3105. +- Outcome: Phase diffusion retains a main gain but loses about0.0011 at both earlier cutoffs. The earlier3000-step gains did not persist. Stop this branch; it is not selected. + +## E48 matched6000 comparison: amplitude_synth, backcast2 +- Checkpoint SHA-256: `7fe2746b237fb2699c2d8c812595666df0888cde656498043e01847bb552c783`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 20.365211486816406 seconds. +- Overall skill 0.349572; relative MASE 0.778615; relative WQL 0.543345. +- term skill: long=0.3660, medium=0.3724, short=0.3345. +- domain skill: Econ/Fin=0.0821, Energy=0.2234, Healthcare=0.3611, Nature=0.4581, Sales=0.5590, Transport=0.4121, Web/CloudOps=0.4247. +- frequency skill: A=0.3403, D=0.4277, H=0.3841, M=0.1545, Q=0.1409, S=0.2820, T=0.3394, W=0.2470. +- variates skill: multivariate=0.3548, univariate=0.3453. +- Outcome: Phase diffusion retains a main gain but loses about0.0011 at both earlier cutoffs. The earlier3000-step gains did not persist. Stop this branch; it is not selected. + +## E48 matched6000 comparison: phase_synth, backcast2 +- Checkpoint SHA-256: `8d6371333e936bbfc2aa746819bfd0cedd392f873ce79c1d6f729b205c3f0b87`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 25.906906366348267 seconds. +- Overall skill 0.348439; relative MASE 0.780846; relative WQL 0.543682. +- term skill: long=0.3636, medium=0.3707, short=0.3341. +- domain skill: Econ/Fin=0.0817, Energy=0.2219, Healthcare=0.3552, Nature=0.4580, Sales=0.5591, Transport=0.4110, Web/CloudOps=0.4239. +- frequency skill: A=0.3402, D=0.4247, H=0.3827, M=0.1524, Q=0.1420, S=0.2780, T=0.3407, W=0.2441. +- variates skill: multivariate=0.3541, univariate=0.3439. +- Outcome: Phase diffusion retains a main gain but loses about0.0011 at both earlier cutoffs. The earlier3000-step gains did not persist. Stop this branch; it is not selected. + +## E59 equal-weight two-member ensemble, exact full package validation +- Checkpoint SHA-256: `a5f575ec44defbc0ca0c4aeb29618bbcc0e09f726985851eee4027ea698cfadd`. +- Evaluation: 97 configurations, 151170 instances, 0 failed configurations; not separately timed seconds. +- Overall skill 0.372254; relative MASE 0.748754; relative WQL 0.526294. +- term skill: long=0.3937, medium=0.4059, short=0.3504. +- domain skill: Econ/Fin=0.1179, Energy=0.2297, Healthcare=0.4376, Nature=0.4278, Sales=0.3512, Transport=0.4661, Web/CloudOps=0.4950. +- frequency skill: A=0.2917, D=0.3537, H=0.3910, M=0.1216, Q=0.1860, S=0.4235, T=0.4302, W=0.2080. +- variates skill: multivariate=0.3905, univariate=0.3573. +- Outcome: Select after relocation/determinism checks: full skill0.372254 versus single-model0.372143; relative MASE0.748754 and WQL0.526294. All97 configurations and151170 instances passed with no quantile crossings. Actual package inference234.68 seconds while training shared the one H100. Main screening and both earlier cutoffs improve; every member forecasts every instance with fixed equal weights. + +E48 stopped cleanly at step7631, after 2736.0 elapsed process seconds at the stop request. Final checkpoint SHA-256 `702c419a404c2aad31011fb824ace504576f5e74244fc4228229fdfb2d970a9a`. The stop checkpoint is retained for provenance and is not selected. + +E59 relocation/determinism passed: the two-member candidate and a separate /tmp copy, both launched from /tmp, produced bitwise identical finite monotone forecasts on daily, hourly and multivariate medium-horizon examples. The complete two-member package is ready for atomic publication. + +## E57 phase projections final6000, backcast +- Checkpoint SHA-256: `956fb0c541a5ae81aaccd7b059143720c5b55d0c030df0162d2eae0736701832`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 25.856826066970825 seconds. +- Overall skill 0.333418; relative MASE 0.800235; relative WQL 0.555251. +- term skill: long=0.3968, medium=0.3558, short=0.2984. +- domain skill: Econ/Fin=0.1603, Energy=0.2271, Healthcare=0.4058, Nature=0.3594, Sales=0.3943, Transport=0.3716, Web/CloudOps=0.4455. +- frequency skill: A=0.3079, D=0.3513, H=0.3638, M=0.1776, Q=0.2354, S=0.3427, T=0.3327, W=0.2745. +- variates skill: multivariate=0.3498, univariate=0.3201. +- Outcome: Reject this feature addition: main gain0.000047 is offset by earlier1 loss0.000708 and earlier2 loss0.000030 versus the frozen E47 parent. No package change from this branch. + +## E52 varied requested horizons6000, backcast +- Checkpoint SHA-256: `1276edf6f471ab96e61e61ead3cb813a58a4cadfac530d2c190072d9b211c182`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 24.876362562179565 seconds. +- Overall skill 0.330107; relative MASE 0.806559; relative WQL 0.556384. +- term skill: long=0.3900, medium=0.3554, short=0.2954. +- domain skill: Econ/Fin=0.1459, Energy=0.2294, Healthcare=0.4132, Nature=0.3489, Sales=0.3970, Transport=0.3634, Web/CloudOps=0.4423. +- frequency skill: A=0.3187, D=0.3539, H=0.3583, M=0.1613, Q=0.2281, S=0.3442, T=0.3292, W=0.2708. +- variates skill: multivariate=0.3469, univariate=0.3164. +- Outcome: Relative to E42 partial-target control6000: main+0.000461, earlier1-0.000193, earlier2+0.000278. Continue to the final12000 checkpoint; a small positive average effect persists. + +## E57 phase projections final6000, backcast2 +- Checkpoint SHA-256: `956fb0c541a5ae81aaccd7b059143720c5b55d0c030df0162d2eae0736701832`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 25.712015867233276 seconds. +- Overall skill 0.358470; relative MASE 0.770691; relative WQL 0.534015. +- term skill: long=0.3646, medium=0.3858, short=0.3453. +- domain skill: Econ/Fin=0.1102, Energy=0.2363, Healthcare=0.3561, Nature=0.4700, Sales=0.5508, Transport=0.4205, Web/CloudOps=0.4287. +- frequency skill: A=0.3495, D=0.4331, H=0.3891, M=0.1593, Q=0.1505, S=0.2824, T=0.3568, W=0.2548. +- variates skill: multivariate=0.3620, univariate=0.3556. +- Outcome: Reject this feature addition: main gain0.000047 is offset by earlier1 loss0.000708 and earlier2 loss0.000030 versus the frozen E47 parent. No package change from this branch. + +## E52 varied requested horizons6000, backcast2 +- Checkpoint SHA-256: `1276edf6f471ab96e61e61ead3cb813a58a4cadfac530d2c190072d9b211c182`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 24.18545150756836 seconds. +- Overall skill 0.353179; relative MASE 0.775830; relative WQL 0.539265. +- term skill: long=0.3689, medium=0.3764, short=0.3382. +- domain skill: Econ/Fin=0.0847, Energy=0.2293, Healthcare=0.3759, Nature=0.4588, Sales=0.5595, Transport=0.4134, Web/CloudOps=0.4274. +- frequency skill: A=0.3432, D=0.4263, H=0.3869, M=0.1771, Q=0.1489, S=0.2829, T=0.3454, W=0.2495. +- variates skill: multivariate=0.3591, univariate=0.3484. +- Outcome: Relative to E42 partial-target control6000: main+0.000461, earlier1-0.000193, earlier2+0.000278. Continue to the final12000 checkpoint; a small positive average effect persists. + +## E60 filtered shared drivers for a frozen cross-channel adapter +Hypothesis: earlier joint adapters saw lagged shared latent drivers but no channel-specific response filtering. A synthetic fast driver and a smoothed response may better represent thermal and energy relationships. Compare original joint generation against causal exponential filtering of half the channels in half the synthetic groups. Filtering time constant is log-uniform from1 to316 steps, applied before observation noise with256 warmup points and stationary initial level. Real windows, latent drivers, coefficients, noise, signs and scales use matched main RNG draws. +- Parent: own E55 partial_delta12k checkpoint, SHA-256721d1029284ea6f36d4c6f169eb001382a97a2848953fad84e3e62fb5a222802. All original weights frozen. Add the previously tested zero-output cross-channel attention adapter (1051136 parameters). Every instance is forecast; one-channel inputs have the identity adapter. +- Data: the26 allow-listed sources in packed_joint plus the original locally generated multivariate latent-driver generator. Synthetic fraction0.30. Candidate adds the declared filtered-response generator. No validation input or labels enter training. +- Matched seed137; independent filter seed400140. Groups16, channels2/3/4/8 with probabilities0.4/0.2/0.2/0.2; contexts512/1024/2048/4096 and horizons32/128/512/1024 follow the original joint sampler. Paired-sign loss in both arms, AdamW LR0.0002,6000 steps, save1000/3000/6000 for diagnostics. One shared H100; training elapsed time will be recorded separately for each arm. +- Selection: compare all97 configurations and both earlier cutoffs against the frozen parent and matched control. First verify sampler matching, identity initialization and maximum-shape memory without optimizer updates. No outcome yet. + +## E56 logarithmic window loss3000 +- Checkpoint SHA-256: `14dd06fb6dff3c336f5aa26b8525d7ccb921a80b3e7be4d22b285584c14ff3bd`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 28.476420640945435 seconds. +- Overall skill 0.357135; relative MASE 0.765561; relative WQL 0.539835. +- term skill: long=0.3893, medium=0.3998, short=0.3270. +- domain skill: Econ/Fin=0.1142, Energy=0.1808, Healthcare=0.3930, Nature=0.4235, Sales=0.3538, Transport=0.4615, Web/CloudOps=0.5024. +- frequency skill: A=0.3804, D=0.3293, H=0.3825, M=0.1125, Q=0.2032, S=0.4413, T=0.3984, W=0.2094. +- variates skill: multivariate=0.3893, univariate=0.3303. +- Outcome: Below matched control; the loss transformation is not selected. + +## E56 logarithmic window loss6000 +- Checkpoint SHA-256: `3346c86c6ce73e739fdd2a286b7cd4c1dab7430f6ee1ea8056b8db4943c48d66`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 21.688469886779785 seconds. +- Overall skill 0.357689; relative MASE 0.764496; relative WQL 0.539655. +- term skill: long=0.3904, medium=0.4011, short=0.3270. +- domain skill: Econ/Fin=0.1167, Energy=0.1822, Healthcare=0.3871, Nature=0.4260, Sales=0.3525, Transport=0.4624, Web/CloudOps=0.5018. +- frequency skill: A=0.3766, D=0.3301, H=0.3834, M=0.1073, Q=0.2061, S=0.4406, T=0.3995, W=0.2098. +- variates skill: multivariate=0.3901, univariate=0.3306. +- Outcome: Skill0.357689 versus matched control0.358628; second regression. Stop and retain existing linear window loss. + +## E54 recent4096 matched control final12000 +- Checkpoint SHA-256: `372edd6a03da9f577992a9cf6363b26efe7b11b35fc3aed2d50868566efd0c71`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 23.02079463005066 seconds. +- Overall skill 0.375764; relative MASE 0.744880; relative WQL 0.523131. +- term skill: long=0.4000, medium=0.4083, short=0.3532. +- domain skill: Econ/Fin=0.1410, Energy=0.2368, Healthcare=0.4240, Nature=0.4300, Sales=0.3368, Transport=0.4653, Web/CloudOps=0.5016. +- frequency skill: A=0.3753, D=0.3535, H=0.3960, M=0.0712, Q=0.2025, S=0.4230, T=0.4374, W=0.2130. +- variates skill: multivariate=0.3961, univariate=0.3591. +- Outcome: Finished12000 steps in2491.2 training-loop seconds. Small gain over frozen parent; await the8192 arm before interpretation. + +## E58 widened146M first4000 +- Checkpoint SHA-256: `a8e3dbf8f591804fb3ac6c72ac632dd9e18038e4da7f195208e56f85f41ecd29`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 34.12893605232239 seconds. +- Overall skill 0.374121; relative MASE 0.747837; relative WQL 0.523810. +- term skill: long=0.3989, medium=0.4070, short=0.3512. +- domain skill: Econ/Fin=0.1400, Energy=0.2366, Healthcare=0.4144, Nature=0.4278, Sales=0.3414, Transport=0.4641, Web/CloudOps=0.4992. +- frequency skill: A=0.3730, D=0.3465, H=0.3947, M=0.0955, Q=0.1987, S=0.4198, T=0.4367, W=0.2046. +- variates skill: multivariate=0.3940, univariate=0.3578. +- Outcome: Ahead of matched37M control by0.000510, but below initial checkpoint. Continue the prespecified longer capacity comparison. + +## E58 matched37M first4000 +- Checkpoint SHA-256: `65969ac2e314e6103c326ab0fe1c550d53a285833d9f983e1c1cdff0d7fb66b3`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 23.00419569015503 seconds. +- Overall skill 0.373612; relative MASE 0.748644; relative WQL 0.524097. +- term skill: long=0.3990, medium=0.4070, short=0.3502. +- domain skill: Econ/Fin=0.1392, Energy=0.2363, Healthcare=0.4121, Nature=0.4272, Sales=0.3410, Transport=0.4638, Web/CloudOps=0.4989. +- frequency skill: A=0.3725, D=0.3451, H=0.3948, M=0.0947, Q=0.1985, S=0.4190, T=0.4363, W=0.2034. +- variates skill: multivariate=0.3937, univariate=0.3572. +- Outcome: Below starting checkpoint; matched capacity comparison continues. + +E56 stop receipt: {"stopped_utc": "2026-10-22T05:53:09.078048+00:00", "reason": "Main screen below matched E38 control at both3000 and6000; prune negative branch.", "final_checkpoint": "/workspace/research/runs/log_window_loss/ema006767.pt", "final_checkpoint_sha256": "ec25440f0d11ac776874679e366255ce9cf54138f2e6802efba22bc88157d06c", "final_step": 6767, "elapsed_training_process_seconds": null} + +E56 measured training-process elapsed time was2298.259 seconds (the previous receipt field was null because the reader used the wrong key; corrected in log_window_loss_stop_receipt.json). + +E60 checks passed: { + "cpu_check_seconds": 1.9617000540019944, + "changed_synthetic_context_values": 21054, + "identity_matches_parent_bitwise": true, + "main_and_filter_rng_matched": true, + "real_windows_unchanged": true, + "optimizer_updates": 0, + "gpu_fixture_seconds": 1.0786702629411593, + "allocated_mib": 2625.63525390625, + "reserved_mib": 3872.0, + "parameters": 37851936, + "trainable_parameters": 1051136, + "loss": 0.3574138879776001 +} +Both arms now start on the shared H100. No optimizer updates occurred during fixtures. + +## E61 log-uniform autoregressive memory in synthetic windows +Hypothesis: the original AR coefficient uniform0.2..0.995 overwhelmingly supplies rapidly decorrelating noise. Energy and short-horizon electricity remain weak across cutoffs; slow stochastic level variation may be missing. Change only the AR coefficient draw to phi=exp(-1/tau), log10(tau) uniform0..4. Keep the existing zero initial state and sqrt(1-phi^2) innovation normalization. All Fourier seasons, trends, changepoints, intermittency, observation-noise draws, synthetic fraction and real-window draws remain matched. +- Matched reference is the already completed E42 partial_targets run; do not retrain it. Same own E25 recency12000 initialization, seed79, packed_sample95-source corpus, B256, AdamW LR0.00005,12000 steps, saves3000/6000/12000. The E42 handling of partially observed targets is unchanged. +- Source declaration if selected: original local generator plus the modified log-uniform AR-time-constant generator, seed79. No new external data or pretrained assets. +- Scheduled after E52 releases its H100 allocation. Validate main screening and both earlier cutoffs against E42 at matched steps, then consider a matched parameter-difference transfer only if the learned effect is useful. No outcome yet. + +E61 sampler checks passed: {"cpu_seconds": 4.961035819957033, "main_rng_matched": true, "real_windows_unchanged": true, "periods_and_missing_masks_unchanged": true, "changed_synthetic_context_values": 31554, "optimizer_updates": 0} + +## E60 joint_filtered_control_ema0 +- Checkpoint SHA-256: `3a7e46a74247ccf366c4e2b950fe1e1cc3625c52f7db1f6fdebab261d1d66ae8`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 24.121415376663208 seconds. +- Overall skill 0.375956; relative MASE 0.746201; relative WQL 0.521885. +- term skill: long=0.3991, medium=0.4059, short=0.3549. +- domain skill: Econ/Fin=0.1387, Energy=0.2371, Healthcare=0.4442, Nature=0.4287, Sales=0.3348, Transport=0.4657, Web/CloudOps=0.4989. +- frequency skill: A=0.3739, D=0.3506, H=0.3961, M=0.1054, Q=0.1984, S=0.4235, T=0.4345, W=0.2191. +- variates skill: multivariate=0.3928, univariate=0.3622. +- Outcome: Initial identity is exact. At1000 both adapters show a small main-screen improvement; filtered versus control difference0.000043 is inconclusive. Continue to matched3000/6000 and earlier-cutoff diagnostics. + +## E60 joint_filtered_control_ema1000 +- Checkpoint SHA-256: `8f3493cddbf6579a69ed813b056f8a16110f6309d7589016703b68022bef205c`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 26.04537320137024 seconds. +- Overall skill 0.376238; relative MASE 0.745929; relative WQL 0.521603. +- term skill: long=0.4000, medium=0.4050, short=0.3554. +- domain skill: Econ/Fin=0.1387, Energy=0.2375, Healthcare=0.4442, Nature=0.4301, Sales=0.3348, Transport=0.4657, Web/CloudOps=0.4986. +- frequency skill: A=0.3739, D=0.3521, H=0.3962, M=0.1054, Q=0.1984, S=0.4213, T=0.4350, W=0.2191. +- variates skill: multivariate=0.3934, univariate=0.3622. +- Outcome: Initial identity is exact. At1000 both adapters show a small main-screen improvement; filtered versus control difference0.000043 is inconclusive. Continue to matched3000/6000 and earlier-cutoff diagnostics. + +## E60 joint_filtered_candidate_ema1000 +- Checkpoint SHA-256: `444ffa52005a89ef409a284a2a952d82da7f760e17f1ea865f118b1bb878fec5`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 25.930442571640015 seconds. +- Overall skill 0.376281; relative MASE 0.745845; relative WQL 0.521590. +- term skill: long=0.4002, medium=0.4050, short=0.3554. +- domain skill: Econ/Fin=0.1387, Energy=0.2376, Healthcare=0.4442, Nature=0.4299, Sales=0.3348, Transport=0.4657, Web/CloudOps=0.4988. +- frequency skill: A=0.3739, D=0.3524, H=0.3961, M=0.1054, Q=0.1984, S=0.4208, T=0.4351, W=0.2191. +- variates skill: multivariate=0.3935, univariate=0.3622. +- Outcome: Initial identity is exact. At1000 both adapters show a small main-screen improvement; filtered versus control difference0.000043 is inconclusive. Continue to matched3000/6000 and earlier-cutoff diagnostics. + +## E58 matched37M at8000 +- Checkpoint SHA-256: `2e8a53df1226d34548c14d2f6aa29531e9562825e077658040ad03cf1584e407`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 26.826340913772583 seconds. +- Overall skill 0.374665; relative MASE 0.746940; relative WQL 0.523529. +- term skill: long=0.3997, medium=0.4070, short=0.3518. +- domain skill: Econ/Fin=0.1410, Energy=0.2366, Healthcare=0.4123, Nature=0.4301, Sales=0.3395, Transport=0.4651, Web/CloudOps=0.4997. +- frequency skill: A=0.3794, D=0.3492, H=0.3961, M=0.0913, Q=0.2022, S=0.4225, T=0.4363, W=0.2001. +- variates skill: multivariate=0.3935, univariate=0.3592. +- Outcome: Recovered from the4000-step dip but remains below its parent. Await the matched146M checkpoint. + +## E31 amplitude synthesis final24000 with original mean-template runtime +- Checkpoint SHA-256: `ecab9102fc11909555044c67dffda85280e06a375f1733351c7e9a39bf2ce9bb`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 24.28603458404541 seconds. +- Overall skill 0.361862; relative MASE 0.761019; relative WQL 0.535099. +- term skill: long=0.3937, medium=0.4047, short=0.3318. +- domain skill: Econ/Fin=0.1167, Energy=0.1881, Healthcare=0.4079, Nature=0.4215, Sales=0.3445, Transport=0.4600, Web/CloudOps=0.5131. +- frequency skill: A=0.3736, D=0.3413, H=0.3832, M=0.0977, Q=0.2001, S=0.4426, T=0.4085, W=0.2080. +- variates skill: multivariate=0.3973, univariate=0.3321. +- Outcome: Finished24000 steps in7471.1 training-loop seconds. Original-rule screening score slightly exceeds matched E25; current-rule and ensemble comparisons are recorded separately. This checkpoint is member1 of E59. + +## E60 joint_filtered_control_ema3000 +- Checkpoint SHA-256: `97b73dfac1a108dd79b419bef760ae281f25de78496cf982297bcd6c46f2bf3b`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 25.558463096618652 seconds. +- Overall skill 0.376364; relative MASE 0.746340; relative WQL 0.521106. +- term skill: long=0.4004, medium=0.4033, short=0.3562. +- domain skill: Econ/Fin=0.1387, Energy=0.2353, Healthcare=0.4442, Nature=0.4338, Sales=0.3348, Transport=0.4657, Web/CloudOps=0.4989. +- frequency skill: A=0.3739, D=0.3535, H=0.3966, M=0.1054, Q=0.1984, S=0.4217, T=0.4342, W=0.2193. +- variates skill: multivariate=0.3937, univariate=0.3622. +- Outcome: Both remain ahead of the frozen parent on the main screen. Unfiltered control now leads by 0.000084; earlier-cutoff evaluations are running. Continue both to 6000 as specified. + +## E60 joint_filtered_candidate_ema3000 +- Checkpoint SHA-256: `c37a8eddae4fc7419ea3ae0a28efc99dd6346e84f2d1807b5b6cb4013eeb2699`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 25.436699151992798 seconds. +- Overall skill 0.376280; relative MASE 0.746320; relative WQL 0.521261. +- term skill: long=0.4005, medium=0.4035, short=0.3559. +- domain skill: Econ/Fin=0.1387, Energy=0.2352, Healthcare=0.4442, Nature=0.4324, Sales=0.3348, Transport=0.4657, Web/CloudOps=0.4997. +- frequency skill: A=0.3739, D=0.3528, H=0.3961, M=0.1054, Q=0.1984, S=0.4201, T=0.4351, W=0.2193. +- variates skill: multivariate=0.3935, univariate=0.3622. +- Outcome: Both remain ahead of the frozen parent on the main screen. Unfiltered control now leads by 0.000084; earlier-cutoff evaluations are running. Continue both to 6000 as specified. + +## E62 matched horizon-training correction transferred to the selected backbone +Hypothesis: E52's varied requested horizons may add to E42's partial-target correction when transferred to the later E47 backbone. Repeat the successful E55 matched-difference method with the E52 final checkpoint: E47 confidence6000 + E52 horizon_jitter12000 - E38 control12000. Coefficient is fixed at 1.0, with no sweep. This is equivalently the E55 backbone plus the E52-minus-E42 horizon-training difference, apart from floating-point order. Confidence projection remains unchanged. All three parents originate from our own random initialization and permitted sources. +- No new training or data. CPU merge records parent hashes and elapsed time; the candidate will use the current fixed inference rules. +- Compare the main screen and both earlier cutoffs against E55 and the current E59 package before any full validation or publication. A single main-screen gain is insufficient. No outcome yet. + +E61 long_memory_synth training started at 2026-10-22T06:01:39Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +## E60 joint_filtered_control at3000, backcast_evals +- Checkpoint SHA-256: `97b73dfac1a108dd79b419bef760ae281f25de78496cf982297bcd6c46f2bf3b`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 25.748270750045776 seconds. +- Overall skill 0.334618; relative MASE 0.799261; relative WQL 0.553928. +- term skill: long=0.3961, medium=0.3571, short=0.3004. +- domain skill: Econ/Fin=0.1631, Energy=0.2278, Healthcare=0.4091, Nature=0.3620, Sales=0.3971, Transport=0.3715, Web/CloudOps=0.4461. +- frequency skill: A=0.3254, D=0.3492, H=0.3639, M=0.1918, Q=0.2328, S=0.3399, T=0.3325, W=0.2872. +- variates skill: multivariate=0.3503, univariate=0.3218. +- Outcome: Reject the adapter branch: both earlier cutoffs regress against E55, by more than the main-screen gain. Filtering does not fix this failure. Prune both runs before their planned6000 endpoint; retain stop checkpoints for provenance. + +## E60 joint_filtered_control at3000, backcast2_evals +- Checkpoint SHA-256: `97b73dfac1a108dd79b419bef760ae281f25de78496cf982297bcd6c46f2bf3b`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 23.68830132484436 seconds. +- Overall skill 0.355826; relative MASE 0.774983; relative WQL 0.535445. +- term skill: long=0.3630, medium=0.3845, short=0.3417. +- domain skill: Econ/Fin=0.1127, Energy=0.2316, Healthcare=0.3474, Nature=0.4679, Sales=0.5489, Transport=0.4199, Web/CloudOps=0.4270. +- frequency skill: A=0.3556, D=0.4260, H=0.3879, M=0.1532, Q=0.1527, S=0.2768, T=0.3543, W=0.2578. +- variates skill: multivariate=0.3579, univariate=0.3541. +- Outcome: Reject the adapter branch: both earlier cutoffs regress against E55, by more than the main-screen gain. Filtering does not fix this failure. Prune both runs before their planned6000 endpoint; retain stop checkpoints for provenance. + +## E60 joint_filtered_candidate at3000, backcast_evals +- Checkpoint SHA-256: `c37a8eddae4fc7419ea3ae0a28efc99dd6346e84f2d1807b5b6cb4013eeb2699`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 24.67229199409485 seconds. +- Overall skill 0.334545; relative MASE 0.799017; relative WQL 0.554218. +- term skill: long=0.3960, medium=0.3575, short=0.3001. +- domain skill: Econ/Fin=0.1631, Energy=0.2272, Healthcare=0.4091, Nature=0.3627, Sales=0.3971, Transport=0.3715, Web/CloudOps=0.4460. +- frequency skill: A=0.3254, D=0.3486, H=0.3640, M=0.1918, Q=0.2328, S=0.3383, T=0.3328, W=0.2870. +- variates skill: multivariate=0.3502, univariate=0.3218. +- Outcome: Reject the adapter branch: both earlier cutoffs regress against E55, by more than the main-screen gain. Filtering does not fix this failure. Prune both runs before their planned6000 endpoint; retain stop checkpoints for provenance. + +## E60 joint_filtered_candidate at3000, backcast2_evals +- Checkpoint SHA-256: `c37a8eddae4fc7419ea3ae0a28efc99dd6346e84f2d1807b5b6cb4013eeb2699`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 24.532593488693237 seconds. +- Overall skill 0.356065; relative MASE 0.774672; relative WQL 0.535261. +- term skill: long=0.3639, medium=0.3845, short=0.3418. +- domain skill: Econ/Fin=0.1127, Energy=0.2321, Healthcare=0.3474, Nature=0.4679, Sales=0.5489, Transport=0.4199, Web/CloudOps=0.4274. +- frequency skill: A=0.3556, D=0.4256, H=0.3883, M=0.1532, Q=0.1527, S=0.2764, T=0.3550, W=0.2576. +- variates skill: multivariate=0.3584, univariate=0.3541. +- Outcome: Reject the adapter branch: both earlier cutoffs regress against E55, by more than the main-screen gain. Filtering does not fix this failure. Prune both runs before their planned6000 endpoint; retain stop checkpoints for provenance. + +## E63 corpus expansion at 146M capacity +Hypothesis: E38's larger packed corpus did not improve the 37M model over 12,000 continuation steps, but a larger model with a longer schedule may benefit from the additional diversity. Add one matched data arm to E58: the same 146M initialization and optimization, using packed_expanded instead of packed_sample. The already-running E58 146M arm is the control; it is not retrained. +- Both packs contain the same 95 allow-listed directories. Source probabilities are read from packed_sample in both arms, so this changes within-source diversity rather than source balance. The expanded pack contains 5,653,290,832 points versus 958,745,103 in the control. No new generator or external source. +- Same own wide_capacity_initial checkpoint, seed 113, B96, 32,000 steps, base LR 0.00003, matched width-dependent AdamW groups, independently sign-augmented loss and EMA. Same runtime and batch64 for validation. All parameters train. +- First verify that the new loader reproduces the control's sampler exactly when given the control pack, and that expanded source probabilities match. The model and maximum tensor shapes are unchanged from the measured E58 memory fixture. +- Start after E60 adapter jobs stop. Compare checkpoints at 4000/8000/16000/24000/32000; evaluate earlier cutoffs before selection. This explicitly tests the interaction of corpus diversity and capacity, rather than repeating the small-model data comparison. No outcome yet. + +E63 checks passed: {"cpu_seconds": 6.780377898016013, "control_sampler_bitwise_equal": true, "source_probabilities_identical": true, "optimizer_updates": 0, "initial_checkpoint_sha256": "c3d41b52987eb033dcc60b4cd59e13e8adb75e319fe5f5bc043296faaac04849"} + +E60 joint_filtered_control stopped: {"final_step": 4691, "final_checkpoint": "/workspace/research/runs/joint_filtered_control/ema004691.pt", "checkpoint_sha256": "8d48a377b49cfd980a973aa9505565a537ed69c27c621ccf39b19d5787fb720b", "last_logged_training_seconds": 592.3, "last_logged_step": 4650, "all_original_tensors_bitwise_unchanged": true, "reason": "Both earlier cutoffs regress at3000 by more than the main gain; negative branch pruned."} + +E60 joint_filtered_candidate stopped: {"final_step": 4648, "final_checkpoint": "/workspace/research/runs/joint_filtered_candidate/ema004648.pt", "checkpoint_sha256": "1574e71b8877b5620a5929a55df22347c9475184194dec37ccb38c0eb71ed9c8", "last_logged_training_seconds": 590.2, "last_logged_step": 4600, "all_original_tensors_bitwise_unchanged": true, "reason": "Both earlier cutoffs regress at3000 by more than the main gain; negative branch pruned."} + +## E52 varied requested horizons final12000 +- Checkpoint SHA-256: `830179d763916a1065fc615d2c5e22f4a3b5b19390dde707ab0f057e13cadff6`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 23.63369631767273 seconds. +- Overall skill 0.362379; relative MASE 0.760035; relative WQL 0.534923. +- term skill: long=0.3913, medium=0.4055, short=0.3334. +- domain skill: Econ/Fin=0.1099, Energy=0.1916, Healthcare=0.4150, Nature=0.4272, Sales=0.3410, Transport=0.4599, Web/CloudOps=0.5083. +- frequency skill: A=0.3715, D=0.3433, H=0.3828, M=0.1086, Q=0.1994, S=0.4416, T=0.4075, W=0.2138. +- variates skill: multivariate=0.3960, univariate=0.3343. +- Outcome: Completed in3887.5 training-loop seconds (3897.218 process seconds). Main improves versus matched E42; inspect both earlier cutoffs and E62 transfer. + +## E52 final12000 first earlier cutoff +- Checkpoint SHA-256: `830179d763916a1065fc615d2c5e22f4a3b5b19390dde707ab0f057e13cadff6`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 19.096883296966553 seconds. +- Overall skill 0.331566; relative MASE 0.804478; relative WQL 0.555396. +- term skill: long=0.3906, medium=0.3563, short=0.2975. +- domain skill: Econ/Fin=0.1463, Energy=0.2302, Healthcare=0.4120, Nature=0.3520, Sales=0.3984, Transport=0.3650, Web/CloudOps=0.4442. +- frequency skill: A=0.3138, D=0.3562, H=0.3588, M=0.1622, Q=0.2341, S=0.3415, T=0.3316, W=0.2747. +- variates skill: multivariate=0.3480, univariate=0.3182. +- Outcome: Improves over E42 by0.000492. + +## E52 final12000 second earlier cutoff +- Checkpoint SHA-256: `830179d763916a1065fc615d2c5e22f4a3b5b19390dde707ab0f057e13cadff6`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 18.59932589530945 seconds. +- Overall skill 0.353232; relative MASE 0.776549; relative WQL 0.538676. +- term skill: long=0.3692, medium=0.3768, short=0.3380. +- domain skill: Econ/Fin=0.0898, Energy=0.2297, Healthcare=0.3632, Nature=0.4567, Sales=0.5538, Transport=0.4144, Web/CloudOps=0.4314. +- frequency skill: A=0.3506, D=0.4238, H=0.3876, M=0.1727, Q=0.1527, S=0.2824, T=0.3479, W=0.2436. +- variates skill: multivariate=0.3614, univariate=0.3466. +- Outcome: Improves over E42 by0.000136. The final horizon variation treatment improves all three matched screening windows. + +## E62 transferred horizon correction main screen +- Checkpoint SHA-256: `22c08571978be31ba57368eb983089a40a44d56d4ae5e17da41afd2a761a258c`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 23.18038821220398 seconds. +- Overall skill 0.377343; relative MASE 0.744367; relative WQL 0.520847. +- term skill: long=0.3993, medium=0.4068, short=0.3570. +- domain skill: Econ/Fin=0.1398, Energy=0.2376, Healthcare=0.4513, Nature=0.4321, Sales=0.3339, Transport=0.4661, Web/CloudOps=0.4995. +- frequency skill: A=0.3721, D=0.3559, H=0.3958, M=0.1049, Q=0.1994, S=0.4226, T=0.4360, W=0.2230. +- variates skill: multivariate=0.3942, univariate=0.3636. +- Outcome: Main gain0.001387 over E55. CPU composition1.266 seconds; await both earlier-cutoff checks before full validation. + +## E62 transferred horizon correction first earlier cutoff +- Checkpoint SHA-256: `22c08571978be31ba57368eb983089a40a44d56d4ae5e17da41afd2a761a258c`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 22.59067988395691 seconds. +- Overall skill 0.336227; relative MASE 0.797258; relative WQL 0.552638. +- term skill: long=0.3980, medium=0.3585, short=0.3020. +- domain skill: Econ/Fin=0.1632, Energy=0.2299, Healthcare=0.4035, Nature=0.3641, Sales=0.3973, Transport=0.3720, Web/CloudOps=0.4497. +- frequency skill: A=0.3264, D=0.3494, H=0.3653, M=0.1894, Q=0.2332, S=0.3419, T=0.3364, W=0.2851. +- variates skill: multivariate=0.3539, univariate=0.3218. +- Outcome: Improves over E55 by0.000618 and current E59 ensemble by0.000525; second earlier cutoff pending. + +## E64 replace the horizon-corrected member in the fixed equal-weight ensemble +Hypothesis: E62 improves all three windows against E55, but the current E59 ensemble remains stronger at the second earlier cutoff. Replace only member0 of E59 with E62 and retain the amplitude-trained member1, applying the same equal quantile average after each member's fixed rules. No new weights, training, blend coefficient or postprocessing is introduced. Every member still forecasts every instance. +- Use cached forecasts first on the main screen and both earlier cutoffs. Compare the candidate ensemble with E62 alone and E59. Validate the actual package if the composition offers a useful improvement. + +## E62 transferred horizon correction second earlier cutoff +- Checkpoint SHA-256: `22c08571978be31ba57368eb983089a40a44d56d4ae5e17da41afd2a761a258c`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 21.85834312438965 seconds. +- Overall skill 0.357693; relative MASE 0.772232; relative WQL 0.534241. +- term skill: long=0.3647, medium=0.3858, short=0.3439. +- domain skill: Econ/Fin=0.1095, Energy=0.2360, Healthcare=0.3457, Nature=0.4673, Sales=0.5494, Transport=0.4200, Web/CloudOps=0.4312. +- frequency skill: A=0.3533, D=0.4246, H=0.3905, M=0.1533, Q=0.1508, S=0.2809, T=0.3574, W=0.2594. +- variates skill: multivariate=0.3632, univariate=0.3532. +- Outcome: Improves over E55 by0.000222. All three screening windows improve against the single-model parent; E59 still leads at this cutoff. Proceed to full validation and the fixed E64 ensemble comparison. + +E64 member checkpoint hashes: 22c08571978be31ba57368eb983089a40a44d56d4ae5e17da41afd2a761a258c, ecab9102fc11909555044c67dffda85280e06a375f1733351c7e9a39bf2ce9bb. + +E64 cached screen: skill 0.376788946; relative MASE 0.745126449; relative WQL 0.521243098; CPU elapsed 4.12 seconds. Group skill: {"term": {"short": 0.3554964007817075, "medium": 0.4073693459600539, "long": 0.3998307241854733}, "domain": {"Econ/Fin": 0.14130300023652653, "Energy": 0.2369496172656066, "Healthcare": 0.4331271903068751, "Nature": 0.4295973732895463, "Sales": 0.3381125790990753, "Transport": 0.4660477929672022, "Web/CloudOps": 0.5028903628931379}, "freq": {"A-DEC": 0.37465521703273497, "Q-DEC": 0.20133386157730448, "M": 0.09799796329514798, "W-SUN": 0.09310304137899561, "D": 0.35177652554445227, "H": 0.39569724381500315, "15T": 0.21510285937582785, "W-FRI": -0.01717810068114023, "10T": 0.6134978939570246, "W-TUE": 0.5590219029222432, "W-THU": 0.20713023925638596, "W-WED": 0.3147893218102069, "5T": 0.5146554293758923, "10S": 0.42304338912946016}}. + +E64 cached backcast: skill 0.336038010; relative MASE 0.797789283; relative WQL 0.552583914; CPU elapsed 3.90 seconds. Group skill: {"term": {"short": 0.3017705847743448, "medium": 0.3583628431586988, "long": 0.3977762964359516}, "domain": {"Econ/Fin": 0.16247452271830498, "Energy": 0.22924210402608347, "Healthcare": 0.4037429866174578, "Nature": 0.3634291235876055, "Sales": 0.3979195783227222, "Transport": 0.3717322673047254, "Web/CloudOps": 0.45027750430374125}, "freq": {"A-DEC": 0.31962125220900417, "Q-DEC": 0.23151630865404227, "M": 0.19676862244049742, "W-SUN": 0.04104954385433246, "D": 0.3494141749986718, "H": 0.36512969667883677, "15T": 0.22647340624655954, "W-FRI": 0.26044659511767176, "10T": 0.3206375756185784, "W-TUE": 0.5251272756681418, "W-THU": 0.23336875275806457, "W-WED": 0.34380336710053805, "5T": 0.4388723441407405, "10S": 0.34124569112919356}}. + +E64 cached backcast2: skill 0.358773194; relative MASE 0.771487726; relative WQL 0.532959635; CPU elapsed 3.84 seconds. Group skill: {"term": {"short": 0.3455453575305818, "medium": 0.3850562697420571, "long": 0.3662794409758179}, "domain": {"Econ/Fin": 0.11178929070509958, "Energy": 0.2358139051710867, "Healthcare": 0.3485087569088834, "Nature": 0.46931745466541086, "Sales": 0.5520970513032182, "Transport": 0.4203697870790297, "Web/CloudOps": 0.4324624263189104}, "freq": {"A-DEC": 0.3552674881858966, "Q-DEC": 0.15052699940899794, "M": 0.14543941174604302, "W-SUN": 0.05780563284435891, "D": 0.4280091613762501, "H": 0.39053406736994467, "15T": 0.10558086695082369, "W-FRI": 0.14677601366514947, "10T": 0.4931102944101511, "W-TUE": 0.10259191794259981, "W-THU": 0.32777977287160787, "W-WED": 0.5368109233756173, "5T": 0.46691593361082795, "10S": 0.2842010268357835}}. + +E64 improves over current E59 on all three cutoffs. Versus E62 alone, it trails on the main screen and first earlier cutoff but gains at the second. Both complete packages will receive full validation; the current root remains E59 until that comparison and determinism checks finish. + +E64 actual package matches the cached equal-weight composition bitwise for every quantile in all 97 screening configurations. Proceed to exact full-package validation. + +## E65 recent normalization with an 8192-point encoder context +Hypothesis: adding older history changes the normalization reference as well as supplying extra observations. E54's final8192 model scores0.375118 versus its matched4096 control0.375764. Test whether retaining the recent4096 mean and standard deviation makes older context easier to use. The encoder still receives all8192 points; every point and future target uses the recent reference frame. If the recent segment has no finite observations, fall back to the full available context. +- Change only normalization. Same E54 initialization from own recency24000, seed101, matched packed_sample windows, B128, LR0.00003,12000 steps, maximum context8192 and sample context8192. Contexts of at most4096 retain the original formula. Fixed inference corrections still see only4096 observations. The existing E54 long-context run is the control. No new sources or generators. +- Training-data diagnostic: 256 real allowed-corpus windows, seed151;101 had sufficient older and recent history. Full/recent standard-deviation ratio p10/p50/p90 was0.932/1.003/1.255; absolute mean shift in recent standard deviations was0.0068/0.0512/0.4089. This motivates testing the frame, without establishing it as the cause of the regression. Diagnostic CPU time1.90 seconds; no validation data used. +- Verify exact equivalence for contexts at most4096 and finite fallback behavior before launch. Check main screens at3000/6000/12000 and earlier cutoffs before selection. No outcome yet. + +E65 checks passed: {"cpu_seconds": 0.7186618210980669, "short_context_normalization_bitwise_equal": true, "short_context_forecast_bitwise_equal": true, "recent_reference_and_empty_recent_fallback_verified": true, "all_missing_finite": true, "optimizer_updates": 0} + +## E62 exact full-package validation +- Checkpoint SHA-256: `22c08571978be31ba57368eb983089a40a44d56d4ae5e17da41afd2a761a258c`. +- Evaluation: 97 configurations, 151170 instances, 0 failed configurations; not separately timed seconds. +- Overall skill 0.373420; relative MASE 0.747096; relative WQL 0.525505. +- term skill: long=0.3931, medium=0.4057, short=0.3528. +- domain skill: Econ/Fin=0.1173, Energy=0.2305, Healthcare=0.4574, Nature=0.4321, Sales=0.3479, Transport=0.4663, Web/CloudOps=0.4919. +- frequency skill: A=0.2918, D=0.3600, H=0.3910, M=0.1281, Q=0.1853, S=0.4226, T=0.4289, W=0.2156. +- variates skill: multivariate=0.3899, univariate=0.3600. +- Outcome: Full skill0.373420 versus E59 published0.372254. All97 configurations and151170 instances pass; no quantile crossings. Actual inference116.659 seconds. Await E64 full comparison and relocation/determinism before choosing the next publication. + +## E54 context8192 final12000 +- Checkpoint SHA-256: `90a1a9da78714594078b3cafd32b1812d633f5d6bf85ba8bfa60d09fbc3ebd38`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 25.50181746482849 seconds. +- Overall skill 0.375118; relative MASE 0.744591; relative WQL 0.524419. +- term skill: long=0.4042, medium=0.4057, short=0.3513. +- domain skill: Econ/Fin=0.1426, Energy=0.2337, Healthcare=0.4381, Nature=0.4222, Sales=0.3378, Transport=0.4707, Web/CloudOps=0.5001. +- frequency skill: A=0.3749, D=0.3573, H=0.3955, M=0.0779, Q=0.2010, S=0.4259, T=0.4332, W=0.2127. +- variates skill: multivariate=0.3910, univariate=0.3622. +- Outcome: Finished in3285.3 training-loop seconds (3296.255 process seconds). Main skill0.375118 remains below matched4096 control0.375764. Do not select this checkpoint; E65 isolates the normalization-frame hypothesis. + +## E58 widened146M at8000 +- Checkpoint SHA-256: `822fdf9f16fb741ab5e23728ad13cac2838a70ad4cfa23a191c9373294a6b4d5`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 33.286028146743774 seconds. +- Overall skill 0.374330; relative MASE 0.747410; relative WQL 0.523759. +- term skill: long=0.3993, medium=0.4074, short=0.3512. +- domain skill: Econ/Fin=0.1416, Energy=0.2364, Healthcare=0.4073, Nature=0.4301, Sales=0.3397, Transport=0.4652, Web/CloudOps=0.4995. +- frequency skill: A=0.3799, D=0.3459, H=0.3958, M=0.0911, Q=0.2002, S=0.4225, T=0.4364, W=0.2039. +- variates skill: multivariate=0.3933, univariate=0.3588. +- Outcome: Main skill0.374330 versus matched37M0.374665, reversing the small4000-step advantage. Both remain below initialization. Continue the prespecified32000-step capacity comparison; no capacity conclusion or package change yet. + +## E64 exact full-package validation after operator recovery +- Checkpoint SHA-256: `35306ec57b81c42e8fbdfab14adc96293400eee0dbd808fadbb3c973f9ff427e`. +- Evaluation: 97 configurations, 151170 instances, 0 failed configurations; not separately timed seconds. +- Overall skill 0.372871; relative MASE 0.747913; relative WQL 0.525850. +- term skill: long=0.3938, medium=0.4063, short=0.3513. +- domain skill: Econ/Fin=0.1184, Energy=0.2299, Healthcare=0.4400, Nature=0.4295, Sales=0.3508, Transport=0.4663, Web/CloudOps=0.4954. +- frequency skill: A=0.2911, D=0.3562, H=0.3909, M=0.1203, Q=0.1862, S=0.4230, T=0.4309, W=0.2097. +- variates skill: multivariate=0.3912, univariate=0.3579. +- Outcome: Full skill0.372871 beats E59 but trails E62 single0.373420. Both pass relocation/determinism. Select E62 single, retaining E64 as a replayable alternative. E64 full inference79.236 seconds on an otherwise idle H100; do not compare that timing directly with concurrent-training measurements. + +## Operator interruption and recovery, 2026-10-22 +All previous container processes were confirmed ended; the H100 was idle. No credentials were inspected. Completed reports and atomic checkpoints were retained. E64 full validation was rerun because no completed report survived. Both E62 and E64 passed asset hashes and independent relocation: [ + { + "package": "/run-state/workspace/research/candidate-horizon-delta12k", + "checkpoint_sha256": "22c08571978be31ba57368eb983089a40a44d56d4ae5e17da41afd2a761a258c", + "configurations": 3, + "bitwise_equal_after_relocation": true, + "finite_and_monotone": true, + "seconds": 6.016964558046311 + }, + { + "package": "/run-state/workspace/research/candidate-horizon-ensemble", + "checkpoint_sha256": "35306ec57b81c42e8fbdfab14adc96293400eee0dbd808fadbb3c973f9ff427e", + "configurations": 3, + "bitwise_equal_after_relocation": true, + "finite_and_monotone": true, + "seconds": 6.803807514021173 + } +] + + +Publication decision: E62 single has the highest exact full-validation skill among replayed candidates (0.373419858), improves all three screening cutoffs versus E55, and wins the main screen and first earlier cutoff against E64. E64 retains a second-earlier-cutoff advantage but is lower on full validation. Publish E62 with complete runtime, all own-checkpoint lineage, generator code, pinned requirements, this experiment log and the full report. Scores remain on the validation scale, not the held-out reward scale. + +## E66 matched recovery of interrupted research runs +The operator interruption ended all trainers. E58 146M had step/EMA8000, while its37M control also had12000; neither had Adam or sampler state. Both arms restart from their own step8000 and EMA8000, preserving a common comparison point. Fresh AdamW and a shared new sampler seed179 begin at global step8001, with400-step rewarmup and the original cosine schedule through32000. This is a documented matched continuation, not an exact resumption of the old optimizer trajectory. Existing control12000 is retained but is not the recovered comparison control. +- E63 expanded146M had only initialization saved, so it restarts from its own initial checkpoint with original seed113. It will receive the identical optimizer/stream reset at global8000 to match E58 recovery. E61 slow-memory and E65 recent normalization had no completed checkpoints, so they restart from their declared parent, original seeds and settings. No baseline or completed scientific comparison is retrained. +- New driver saves weights, EMA, optimizer, CPU/CUDA RNG, sampler and batch RNG states, and the prefetched next batch atomically every1000 steps. Independent interrupted/continuous fixture: {"seed": 191, "steps": 4, "batch": 2, "fixture_parameters": 164384, "purpose": "recovery fixture only; never selected", "maximum_model_difference": 1.2101430968414206e-14, "maximum_ema_difference": 2.4147350785597155e-15, "maximum_optimizer_difference": 7.095019016745141e-16, "rng_and_prefetched_batch_bitwise_equal": true, "note": "Complete state restored; GPU training replay differs by floating-point roundoff, so training replay is not claimed bitwise identical. Package inference checks are separately bitwise."}. Four optimizer updates per fixture path used only permitted data; fixture weights are never candidates. +- Work lost after the last usable checkpoints: E58 large at least800 steps, control at least1550 beyond its latest12000 (the matched restart also intentionally returns to8000); E63 at least1700; E61 at least2150; E65 at least300. Last logged elapsed times before interruption:2432.6,2101.5,388.0,542.2,71.8 seconds respectively. These are concurrent process times, not summed exclusive GPU time. + +## E67 end-to-end paired-sign training on the selected horizon-corrected model +Hypothesis: E50 updated only the output head and did not sustain a paired-loss gain. The full encoder/decoder may be able to learn complementary sign-orientation forecasts when optimized through the exact neural average used in inference. Compare two full-model continuations from own E62: both forward x and -x, but the control scores each orientation separately while the candidate scores their ordered-quantile average. This changes the loss, not the sampled windows, number of forward passes, architecture or inference. +- Both arms retain E52 random requested-horizon prefixes and E42 partial-target future-key masking, now integrated with the selected confidence features. At inference the requested horizon is fully available and the forward pass must remain bitwise identical at initialization to E62. +- Own parent horizon_delta12k.pt (SHA-25622c08571978be31ba57368eb983089a40a44d56d4ae5e17da41afd2a761a258c); seed197, independent horizon seed300200, packed_sample95 allowed sources and the same local generator, B64 distinct windows /128 signed rows, LR0.00002,12000 steps, all parameters train. Same warmup400 and cosine schedule. Every runtime member forecasts every instance; no validation data are used for gradients. +- Check initialization identity, paired-loss sign symmetry and the independence of unused future tokens. Measure maximum-shape memory before launch. Compare main and both earlier cutoffs; a main-only gain is insufficient. Complete recovery state includes both sampler RNGs. No outcome yet. + +E67 checks passed: { + "cpu_seconds": 3.4358641319558956, + "initial_forecast_bitwise_parent": true, + "unused_future_tokens_do_not_change_requested_prefix": true, + "paired_loss_sign_symmetric": true, + "matched_sampler_main_and_horizon_rng": true, + "gpu_fixture_seconds": 3.137407455011271, + "allocated_mib": 5783.81689453125, + "reserved_mib": 6266.0, + "optimizer_updates": 0 +}. Current allocated/reserved process footprint fits both additional paired arms within the single80GB H100. Each new arm uses about6.3GiB reserved at maximum shape. + +## E68 fixed upward quantile-level shift +Hypothesis: E62 coverage diagnostics show upper-tail underprediction in several groups, while lower-tail excess inclusive coverage is largely due to ties at exact zero. Test one globally fixed quantile-function shift from level p to p+0.025, linearly interpolating between adjacent predicted deciles and extrapolating the uppermost interval. This is equivalent to75% of q(p)+25% of q(p+0.1), with upper-end linear extrapolation. It shifts the median as well as intervals. No dataset-specific parameters, context optimization, new training or weight fitting. +- Apply after the existing fixed rules. Monotonicity and nonnegative quantiles for nonnegative histories are preserved by upward interpolation/extrapolation. Compare only unchanged and the predeclared+0.025 setting on the main screen and both earlier cutoffs. No coefficient sweep. +- Descriptive coverage files horizon_delta_calibration_bounds.json and calibration_diagnostic.py retain strict/inclusive tie bounds. Parent weights SHA-25622c08571978be31ba57368eb983089a40a44d56d4ae5e17da41afd2a761a258c. No outcome yet. + +E68 screen, CPU elapsed2.34 seconds: +- unchanged: skill0.377343216, relative MASE0.744366865, relative WQL0.520847298; group skill {"term": {"short": 0.35695456496017197, "medium": 0.4068421174843613, "long": 0.3992704749750494}, "domain": {"Econ/Fin": 0.1398359119561744, "Energy": 0.23759505750828103, "Healthcare": 0.4512562626750727, "Nature": 0.4321373180939323, "Sales": 0.33393397659338675, "Transport": 0.46608088355848554, "Web/CloudOps": 0.49950488336015364}, "freq": {"A-DEC": 0.37212708500173697, "Q-DEC": 0.19935115627243538, "M": 0.10494660003314427, "W-SUN": 0.09001322152715163, "D": 0.355915177294738, "H": 0.39579077444245214, "15T": 0.214120657226064, "W-FRI": -0.015604695485733178, "10T": 0.6146535484250835, "W-TUE": 0.5792731324380282, "W-THU": 0.21095087378926547, "W-WED": 0.3154347093297968, "5T": 0.5103163560669302, "10S": 0.42256110774455713}}. +- shift_up_0025: skill0.376908525, relative MASE0.742757759, relative WQL0.522704720; group skill {"term": {"short": 0.3566597008609087, "medium": 0.404403536500499, "long": 0.4005186267241073}, "domain": {"Econ/Fin": 0.14287974364263867, "Energy": 0.23414603173384185, "Healthcare": 0.43949354133666974, "Nature": 0.4298630701436009, "Sales": 0.32658918319903174, "Transport": 0.470151191104459, "Web/CloudOps": 0.5032582354135502}, "freq": {"A-DEC": 0.380333567897149, "Q-DEC": 0.20181706747540706, "M": 0.08925268144424381, "W-SUN": 0.07477217948655135, "D": 0.35474663372376547, "H": 0.3940149463382252, "15T": 0.21958831724211048, "W-FRI": -0.0580596428780249, "10T": 0.6129399194069542, "W-TUE": 0.5699015681127257, "W-THU": 0.21136203731846115, "W-WED": 0.3102694893262884, "5T": 0.5147323912192434, "10S": 0.4303777414462714}}. + +E68 backcast, CPU elapsed2.34 seconds: +- unchanged: skill0.336227035, relative MASE0.797257690, relative WQL0.552637565; group skill {"term": {"short": 0.3019534316321959, "medium": 0.35847999416902554, "long": 0.3980452217736976}, "domain": {"Econ/Fin": 0.16321936365108436, "Energy": 0.22989895953120598, "Healthcare": 0.4035339334978575, "Nature": 0.3640809439324144, "Sales": 0.39727796653561065, "Transport": 0.37202575172526886, "Web/CloudOps": 0.4496899590670599}, "freq": {"A-DEC": 0.32642568966436736, "Q-DEC": 0.23316387018660967, "M": 0.18942546327646903, "W-SUN": 0.03722616253430944, "D": 0.3493567465552936, "H": 0.3653486861566616, "15T": 0.22544143675041628, "W-FRI": 0.2612228517292393, "10T": 0.32002639781339237, "W-TUE": 0.5369423215086733, "W-THU": 0.24695593621438172, "W-WED": 0.34366857690318564, "5T": 0.43841920169431536, "10S": 0.34189056734107803}}. +- shift_up_0025: skill0.333181127, relative MASE0.800191338, relative WQL0.555676359; group skill {"term": {"short": 0.30012284957976143, "medium": 0.3563718754867885, "long": 0.3913827408796766}, "domain": {"Econ/Fin": 0.16216091726465265, "Energy": 0.22830088335034404, "Healthcare": 0.4226177811841181, "Nature": 0.3541417493195709, "Sales": 0.38842247511482564, "Transport": 0.3660239875770892, "Web/CloudOps": 0.4469561601104274}, "freq": {"A-DEC": 0.3265608246880194, "Q-DEC": 0.22474554051269913, "M": 0.18267190809841738, "W-SUN": 0.03302751086137623, "D": 0.35103471245845674, "H": 0.36176195029219793, "15T": 0.21821690985575604, "W-FRI": 0.25908813449545354, "10T": 0.3119130318041733, "W-TUE": 0.5410511096762922, "W-THU": 0.24171213296902283, "W-WED": 0.34305917574568634, "5T": 0.43719448871859334, "10S": 0.33922568556395327}}. + +E68 backcast2, CPU elapsed2.31 seconds: +- unchanged: skill0.357693384, relative MASE0.772231694, relative WQL0.534240944; group skill {"term": {"short": 0.34387576099815587, "medium": 0.38579809375160923, "long": 0.36474587566145333}, "domain": {"Econ/Fin": 0.10948663145426041, "Energy": 0.23595983020029976, "Healthcare": 0.3456833197210143, "Nature": 0.4672524394882832, "Sales": 0.5493882044206345, "Transport": 0.4200285125423293, "Web/CloudOps": 0.4311910731987415}, "freq": {"A-DEC": 0.3532937085689807, "Q-DEC": 0.15079546315571057, "M": 0.15334987951579737, "W-SUN": 0.053222430353438654, "D": 0.42461678912892176, "H": 0.39045164404809307, "15T": 0.1063009642103484, "W-FRI": 0.14702837959358672, "10T": 0.4925745835795794, "W-TUE": 0.10051793538767262, "W-THU": 0.31968494040001116, "W-WED": 0.5361596335033245, "5T": 0.4655530740312157, "10S": 0.280869499353007}}. +- shift_up_0025: skill0.352929872, relative MASE0.775985000, relative WQL0.539571964; group skill {"term": {"short": 0.3397486152051552, "medium": 0.38072074318949967, "long": 0.3585956199908913}, "domain": {"Econ/Fin": 0.10581887733310036, "Energy": 0.23338234809030112, "Healthcare": 0.3418028155977272, "Nature": 0.4611553878945821, "Sales": 0.543948848409417, "Transport": 0.4138948091247504, "Web/CloudOps": 0.42581951888726777}, "freq": {"A-DEC": 0.3525707634011239, "Q-DEC": 0.14006676676474916, "M": 0.14537682622646142, "W-SUN": 0.05718515322639861, "D": 0.42470757896302946, "H": 0.38580382383546696, "15T": 0.0967294266428953, "W-FRI": 0.16016050379952163, "10T": 0.4943536981461871, "W-TUE": 0.05512451342569891, "W-THU": 0.29480125149705005, "W-WED": 0.5302395339818361, "5T": 0.4614399225720033, "10S": 0.2693556274034984}}. + +E68 rejected: the fixed upward quantile shift loses on all three windows, including -0.00305 and -0.00476 at the earlier cutoffs. Main median MASE improves slightly but WQL worsens. Descriptive coverage imbalance does not justify a global quantile shift. Retain E62 quantiles unchanged; no further coefficient sweep. + +## E69 persistent stochastic volatility in synthetic training windows — prepared, not launched +Hypothesis: the local generator changes seasonal amplitude in E31 but its observation-noise scale stays constant throughout a window. Teach conditional uncertainty under persistent volatility by multiplying the Gaussian/AR noise component by an independent positive log-OU curve in half of synthetic windows. Leave signal, AR coefficient, observation-noise draws, real windows and the main RNG unchanged. +- Proposed matched reference: completed E42 partial-target training. Same own recency12000 parent, seed79, packed_sample, B256, LR0.00005,12000 steps and original schedule. Only the noise envelope differs; no architecture or inference change. +- Independent generator seed500082; log time constant uniform1.5..3.5 (about32..3162 steps), log standard deviation uniform0.1..0.8, stationary Gaussian initial log state, exp(logcurve-0.5*sd^2), log envelope clipped[-2.5,2.5]. Synthetic fraction remains0.2, so roughly10% of all windows receive the new envelope. +- Verify real-window and main-RNG equality before launch. Queue only when a GPU allocation is released; no training has started. Final selection requires main and both earlier-cutoff evidence. + +E69 preparation checks: {"cpu_seconds": 4.379837638000026, "main_rng_matched": true, "real_windows_unchanged": true, "periods_and_missing_masks_unchanged": true, "changed_synthetic_context_values": 52057, "optimizer_updates": 0} + +## E67 full_paired_control at1000 +- Checkpoint SHA-256: `0aa7ece151109e13af73e7ca2d6b75baa95e67898a6273a081ed38e92cfc63cd`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 26.88213801383972 seconds. +- Overall skill 0.376434; relative MASE 0.745243; relative WQL 0.521755. +- term skill: long=0.3984, medium=0.4065, short=0.3558. +- domain skill: Econ/Fin=0.1332, Energy=0.2361, Healthcare=0.4573, Nature=0.4305, Sales=0.3351, Transport=0.4660, Web/CloudOps=0.4983. +- frequency skill: A=0.3675, D=0.3539, H=0.3948, M=0.1051, Q=0.1982, S=0.4219, T=0.4350, W=0.2252. +- variates skill: multivariate=0.3925, univariate=0.3634. +- Outcome: Paired objective leads the matched individual-orientation control by0.000426, but both trail the frozen E62 parent0.377343. Continue to3000 before interpreting the early optimization drop. + +## E67 full_paired_candidate at1000 +- Checkpoint SHA-256: `256329643ba1d7074386d227f4dafd6bdbf0faca5bf2280a60be51ddf2ad90ee`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 26.336730480194092 seconds. +- Overall skill 0.376860; relative MASE 0.744723; relative WQL 0.521407. +- term skill: long=0.3991, medium=0.4063, short=0.3564. +- domain skill: Econ/Fin=0.1316, Energy=0.2364, Healthcare=0.4620, Nature=0.4301, Sales=0.3350, Transport=0.4669, Web/CloudOps=0.4985. +- frequency skill: A=0.3655, D=0.3560, H=0.3951, M=0.1058, Q=0.1980, S=0.4230, T=0.4348, W=0.2256. +- variates skill: multivariate=0.3926, univariate=0.3640. +- Outcome: Paired objective leads the matched individual-orientation control by0.000426, but both trail the frozen E62 parent0.377343. Continue to3000 before interpreting the early optimization drop. + +Additional historical diagnostic: valid_backcast3 contains93 configurations and8812 instances, derived only from existing validation histories. This cutoff was not used in earlier selection. Compare E62 and its E55 predecessor, plus the fixed amplitude ensemble option; all outputs are selection/diagnostics only. Scales use capped prefixes and its own Seasonal Naive baseline. + +## Previously unused third earlier cutoff: horizon_delta12k +- Checkpoint SHA-256: `22c08571978be31ba57368eb983089a40a44d56d4ae5e17da41afd2a761a258c`. +- Evaluation: 93 configurations, 8812 instances, 0 failed configurations; 25.37537980079651 seconds. +- Overall skill 0.387789; relative MASE 0.738165; relative WQL 0.507749. +- term skill: long=0.3944, medium=0.3602, short=0.3954. +- domain skill: Econ/Fin=0.1725, Energy=0.3191, Healthcare=0.2442, Nature=0.5053, Sales=0.3990, Transport=0.5060, Web/CloudOps=0.3880. +- frequency skill: A=0.3565, D=0.4418, H=0.4032, M=0.1118, Q=0.2628, S=0.2833, T=0.4297, W=0.2606. +- variates skill: multivariate=0.3722, univariate=0.3998. +- Outcome: 93 configurations and8812 instances have enough remaining history. E62 retains a small0.000124 gain over E55 here; amplitude-only is lower. Scores are diagnostic and have their own Seasonal Naive reference. Retain the published E62 while checking the fixed ensemble combinations. + +## Previously unused third earlier cutoff: partial_delta12k +- Checkpoint SHA-256: `721d1029284ea6f36d4c6f169eb001382a97a2848953fad84e3e62fb5a222802`. +- Evaluation: 93 configurations, 8812 instances, 0 failed configurations; 25.088595867156982 seconds. +- Overall skill 0.387664; relative MASE 0.738315; relative WQL 0.507852. +- term skill: long=0.3943, medium=0.3601, short=0.3953. +- domain skill: Econ/Fin=0.1728, Energy=0.3188, Healthcare=0.2482, Nature=0.5065, Sales=0.3984, Transport=0.5041, Web/CloudOps=0.3876. +- frequency skill: A=0.3519, D=0.4408, H=0.4034, M=0.1157, Q=0.2629, S=0.2853, T=0.4287, W=0.2628. +- variates skill: multivariate=0.3721, univariate=0.3997. +- Outcome: 93 configurations and8812 instances have enough remaining history. E62 retains a small0.000124 gain over E55 here; amplitude-only is lower. Scores are diagnostic and have their own Seasonal Naive reference. Retain the published E62 while checking the fixed ensemble combinations. + +## Previously unused third earlier cutoff: amplitude_fixed_ema24000 +- Checkpoint SHA-256: `ecab9102fc11909555044c67dffda85280e06a375f1733351c7e9a39bf2ce9bb`. +- Evaluation: 93 configurations, 8812 instances, 0 failed configurations; 24.98914361000061 seconds. +- Overall skill 0.386555; relative MASE 0.740761; relative WQL 0.508011. +- term skill: long=0.3906, medium=0.3617, short=0.3941. +- domain skill: Econ/Fin=0.1763, Energy=0.3186, Healthcare=0.2144, Nature=0.5055, Sales=0.3950, Transport=0.5054, Web/CloudOps=0.3892. +- frequency skill: A=0.3670, D=0.4397, H=0.4032, M=0.1018, Q=0.2609, S=0.2818, T=0.4298, W=0.2517. +- variates skill: multivariate=0.3715, univariate=0.3982. +- Outcome: 93 configurations and8812 instances have enough remaining history. E62 retains a small0.000124 gain over E55 here; amplitude-only is lower. Scores are diagnostic and have their own Seasonal Naive reference. Retain the published E62 while checking the fixed ensemble combinations. + +Third earlier cutoff, fixed horizon+amplitude ensemble: skill0.387712467, relative MASE0.738747107, relative WQL0.507475454; CPU1.61 seconds; group skill {"term": {"short": 0.3954701763614715, "medium": 0.36122355126648487, "long": 0.39279890497296066}, "domain": {"Econ/Fin": 0.1751736307959596, "Energy": 0.31921698125326037, "Healthcare": 0.23298033105692906, "Nature": 0.5060089627880903, "Sales": 0.3975145877969797, "Transport": 0.5058849307923443, "Web/CloudOps": 0.3889682376441502}, "freq": {"A-DEC": 0.3624040337196054, "Q-DEC": 0.2624518143609271, "M": 0.10707417310085743, "W-SUN": 0.1583361093273692, "D": 0.4418985852875217, "H": 0.403440739007801, "15T": 0.2601635557329961, "W-FRI": 0.014090974305712378, "10T": 0.6023775368816131, "W-TUE": 0.24266767576389037, "W-THU": 0.3814500446358562, "W-WED": 0.36993536616236844, "5T": 0.4629495965892555, "10S": 0.28289459770032044}}. + +Third earlier cutoff, fixed partial+amplitude ensemble: skill0.387583102, relative MASE0.738907219, relative WQL0.507579906; CPU1.63 seconds; group skill {"term": {"short": 0.39530402146176624, "medium": 0.36114921433277336, "long": 0.39271964935249504}, "domain": {"Econ/Fin": 0.17527256907786126, "Energy": 0.31900374729462777, "Healthcare": 0.23531552352603602, "Nature": 0.5063494545833882, "Sales": 0.3972024195554572, "Transport": 0.5049447049689553, "Web/CloudOps": 0.3887045854899489}, "freq": {"A-DEC": 0.36012619804016577, "Q-DEC": 0.2622822707122595, "M": 0.10906468169471106, "W-SUN": 0.15682778156902044, "D": 0.44126848409451547, "H": 0.4035052878161369, "15T": 0.26032721770481526, "W-FRI": 0.011894162492874005, "10T": 0.6016201297891219, "W-TUE": 0.2491326450741952, "W-THU": 0.38350286292612645, "W-WED": 0.3695417432322957, "5T": 0.4619676858363392, "10S": 0.2838781358710065}}. + +The new historical check does not overturn the publication: E62 beats E55 individually at this fourth available window, while the fixed ensemble comparison remains a documented alternative. Full validation and main screening still favor the published single model. + +## E70 training-only compiler throughput diagnostic +Hypothesis: operator/kernel overhead limits the many small transformer operations on one H100. Benchmark torch.compile on the existing own E62 model and unpaired training loss, using64 permitted pretraining windows of context2048/horizon512, seed223. No optimizer updates; no validation examples; no compiler change to the published runtime. Compare eager and compiled loss, gradient direction and absolute differences, then alternate20-step forward/backward timing blocks three times under the existing shared-GPU load. Compilation uses two CPU workers. Any numerical or performance difference is recorded before considering a separate training experiment. No outcome yet. + +## E58/E66 recovered37M control at global12000 +- Checkpoint SHA-256: `5341c5600f5fd3f82a33a9a756ce30ee980973e90c0163455ea2ce545601b051`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 29.337642669677734 seconds. +- Overall skill 0.374083; relative MASE 0.747749; relative WQL 0.523935. +- term skill: long=0.3989, medium=0.4070, short=0.3511. +- domain skill: Econ/Fin=0.1395, Energy=0.2360, Healthcare=0.4006, Nature=0.4331, Sales=0.3401, Transport=0.4656, Web/CloudOps=0.4984. +- frequency skill: A=0.3744, D=0.3455, H=0.3952, M=0.0891, Q=0.1999, S=0.4216, T=0.4369, W=0.2041. +- variates skill: multivariate=0.3932, univariate=0.3585. +- Outcome: Skill0.374083, below its own8000 EMA0.374665 and initial parent0.375793. First4000 updates after the documented optimizer reset; await the matched146M result. Training losses over shared steps9550..10500 are nearly equal: large0.345200, control0.345264. + +## E67 full_paired_control at3000 +- Checkpoint SHA-256: `c98f8d82047e6e0ecd00f144307623afdd581ee6624d880063f810d090e1a473`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 27.129313945770264 seconds. +- Overall skill 0.378018; relative MASE 0.743740; relative WQL 0.520156. +- term skill: long=0.4008, medium=0.4068, short=0.3576. +- domain skill: Econ/Fin=0.1354, Energy=0.2381, Healthcare=0.4531, Nature=0.4314, Sales=0.3329, Transport=0.4660, Web/CloudOps=0.5026. +- frequency skill: A=0.3720, D=0.3538, H=0.3970, M=0.1035, Q=0.1971, S=0.4224, T=0.4379, W=0.2235. +- variates skill: multivariate=0.3959, univariate=0.3634. +- Outcome: Both exceed the E62 main screen0.377343. Paired0.378318 leads control0.378018; check both earlier cutoffs before selection. Training continues toward6000. + +## E67 full_paired_candidate at3000 +- Checkpoint SHA-256: `2a19ebe0d41c1a18feaba318041795be4d268ce890162a5035e6fc6bf1844238`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 26.954200506210327 seconds. +- Overall skill 0.378318; relative MASE 0.743356; relative WQL 0.519924. +- term skill: long=0.4020, medium=0.4066, short=0.3577. +- domain skill: Econ/Fin=0.1339, Energy=0.2391, Healthcare=0.4511, Nature=0.4303, Sales=0.3325, Transport=0.4661, Web/CloudOps=0.5042. +- frequency skill: A=0.3674, D=0.3531, H=0.3978, M=0.1030, Q=0.1972, S=0.4232, T=0.4383, W=0.2236. +- variates skill: multivariate=0.3969, univariate=0.3631. +- Outcome: Both exceed the E62 main screen0.377343. Paired0.378318 leads control0.378018; check both earlier cutoffs before selection. Training continues toward6000. + +## E67 full_paired_control_ema3000 evals +- Checkpoint SHA-256: `c98f8d82047e6e0ecd00f144307623afdd581ee6624d880063f810d090e1a473`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 27.129313945770264 seconds. +- Overall skill 0.378018; relative MASE 0.743740; relative WQL 0.520156. +- term skill: long=0.4008, medium=0.4068, short=0.3576. +- domain skill: Econ/Fin=0.1354, Energy=0.2381, Healthcare=0.4531, Nature=0.4314, Sales=0.3329, Transport=0.4660, Web/CloudOps=0.5026. +- frequency skill: A=0.3720, D=0.3538, H=0.3970, M=0.1035, Q=0.1971, S=0.4224, T=0.4379, W=0.2235. +- variates skill: multivariate=0.3959, univariate=0.3634. +- Outcome: Matched whole-model sign-loss comparison; all parameters train, seed 197. Main screen improves; earlier cutoffs are mixed. Complete package validation follows. + +## E67 full_paired_control_ema3000 backcast_evals +- Checkpoint SHA-256: `c98f8d82047e6e0ecd00f144307623afdd581ee6624d880063f810d090e1a473`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 26.22196912765503 seconds. +- Overall skill 0.336172; relative MASE 0.797227; relative WQL 0.552750. +- term skill: long=0.3984, medium=0.3579, short=0.3019. +- domain skill: Econ/Fin=0.1591, Energy=0.2292, Healthcare=0.4105, Nature=0.3647, Sales=0.3944, Transport=0.3718, Web/CloudOps=0.4497. +- frequency skill: A=0.3173, D=0.3530, H=0.3656, M=0.1894, Q=0.2304, S=0.3411, T=0.3359, W=0.2800. +- variates skill: multivariate=0.3535, univariate=0.3220. +- Outcome: Matched whole-model sign-loss comparison; all parameters train, seed 197. Main screen improves; earlier cutoffs are mixed. Complete package validation follows. + +## E67 full_paired_control_ema3000 backcast2_evals +- Checkpoint SHA-256: `c98f8d82047e6e0ecd00f144307623afdd581ee6624d880063f810d090e1a473`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 26.114278316497803 seconds. +- Overall skill 0.357963; relative MASE 0.772252; relative WQL 0.533779. +- term skill: long=0.3643, medium=0.3867, short=0.3442. +- domain skill: Econ/Fin=0.1073, Energy=0.2363, Healthcare=0.3529, Nature=0.4659, Sales=0.5494, Transport=0.4196, Web/CloudOps=0.4322. +- frequency skill: A=0.3515, D=0.4255, H=0.3911, M=0.1494, Q=0.1504, S=0.2817, T=0.3589, W=0.2528. +- variates skill: multivariate=0.3643, univariate=0.3528. +- Outcome: Matched whole-model sign-loss comparison; all parameters train, seed 197. Main screen improves; earlier cutoffs are mixed. Complete package validation follows. + +## E67 full_paired_candidate_ema3000 evals +- Checkpoint SHA-256: `2a19ebe0d41c1a18feaba318041795be4d268ce890162a5035e6fc6bf1844238`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 26.954200506210327 seconds. +- Overall skill 0.378318; relative MASE 0.743356; relative WQL 0.519924. +- term skill: long=0.4020, medium=0.4066, short=0.3577. +- domain skill: Econ/Fin=0.1339, Energy=0.2391, Healthcare=0.4511, Nature=0.4303, Sales=0.3325, Transport=0.4661, Web/CloudOps=0.5042. +- frequency skill: A=0.3674, D=0.3531, H=0.3978, M=0.1030, Q=0.1972, S=0.4232, T=0.4383, W=0.2236. +- variates skill: multivariate=0.3969, univariate=0.3631. +- Outcome: Matched whole-model sign-loss comparison; all parameters train, seed 197. Main screen improves; earlier cutoffs are mixed. Complete package validation follows. + +## E67 full_paired_candidate_ema3000 backcast_evals +- Checkpoint SHA-256: `2a19ebe0d41c1a18feaba318041795be4d268ce890162a5035e6fc6bf1844238`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 26.824409246444702 seconds. +- Overall skill 0.335739; relative MASE 0.797824; relative WQL 0.553058. +- term skill: long=0.3982, medium=0.3579, short=0.3012. +- domain skill: Econ/Fin=0.1554, Energy=0.2283, Healthcare=0.4138, Nature=0.3640, Sales=0.3938, Transport=0.3730, Web/CloudOps=0.4488. +- frequency skill: A=0.3126, D=0.3515, H=0.3664, M=0.1838, Q=0.2305, S=0.3411, T=0.3345, W=0.2832. +- variates skill: multivariate=0.3522, univariate=0.3223. +- Outcome: Matched whole-model sign-loss comparison; all parameters train, seed 197. Main screen improves; earlier cutoffs are mixed. Complete package validation follows. + +## E67 full_paired_candidate_ema3000 backcast2_evals +- Checkpoint SHA-256: `2a19ebe0d41c1a18feaba318041795be4d268ce890162a5035e6fc6bf1844238`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 26.085822582244873 seconds. +- Overall skill 0.358235; relative MASE 0.771602; relative WQL 0.533775. +- term skill: long=0.3637, medium=0.3876, short=0.3445. +- domain skill: Econ/Fin=0.1066, Energy=0.2361, Healthcare=0.3468, Nature=0.4694, Sales=0.5483, Transport=0.4212, Web/CloudOps=0.4313. +- frequency skill: A=0.3537, D=0.4237, H=0.3911, M=0.1509, Q=0.1498, S=0.2809, T=0.3593, W=0.2593. +- variates skill: multivariate=0.3635, univariate=0.3540. +- Outcome: Matched whole-model sign-loss comparison; all parameters train, seed 197. Main screen improves; earlier cutoffs are mixed. Complete package validation follows. + +## long_memory_synth_recovery_ema3000 +- Checkpoint SHA-256: `c8d675cce3857f6c065a231ccbd4f2dfb76c6c49236da051d13b450287006a6f`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 25.661465406417847 seconds. +- Overall skill 0.360588; relative MASE 0.761649; relative WQL 0.536793. +- term skill: long=0.3910, medium=0.4017, short=0.3318. +- domain skill: Econ/Fin=0.1155, Energy=0.1829, Healthcare=0.4341, Nature=0.4242, Sales=0.3463, Transport=0.4592, Web/CloudOps=0.5066. +- frequency skill: A=0.3750, D=0.3500, H=0.3816, M=0.1111, Q=0.2000, S=0.4415, T=0.4013, W=0.2067. +- variates skill: multivariate=0.3919, univariate=0.3345. +- Outcome: E61 slower synthetic AR dynamics; seed79; improves main screen over matched E42 at3000 steps. Continue and check earlier cutoffs. + +## recent_normalization_recovery_ema3000 +- Checkpoint SHA-256: `a55a5681f52782a142f44595f69d5aef59579fa7f64124c72b9de918189d8ff9`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 33.14950752258301 seconds. +- Overall skill 0.373434; relative MASE 0.747021; relative WQL 0.525533. +- term skill: long=0.3987, medium=0.4024, short=0.3519. +- domain skill: Econ/Fin=0.1428, Energy=0.2320, Healthcare=0.4255, Nature=0.4235, Sales=0.3398, Transport=0.4701, Web/CloudOps=0.4974. +- frequency skill: A=0.3847, D=0.3515, H=0.3961, M=0.0795, Q=0.2007, S=0.4234, T=0.4320, W=0.2036. +- variates skill: multivariate=0.3889, univariate=0.3609. +- Outcome: E65 recent4096 normalization with8192 context; seed101; improves matched E54 3000-step long-context result .372681. Continue. + +### E70 compiler cache infrastructure diagnostic +Both the default and /tmp Triton caches reject child-directory-to-parent os.replace with EXDEV. Same-parent replacement succeeds. A local SiblingFileCacheManager preserves Triton keys and group formats while writing unique same-parent temporary files. Byte, text, overwrite and group fixtures passed (initial fixture used an invalid nonhex key; corrected before accepting the fixture). No installed library files, model parameters, optimizer state or inference runtime were changed. Retrying the identical training-only compile benchmark; no optimizer updates. + +### E70 fixed-shape compiler benchmark outcome +Seed223, B64, C2048, H512, own E62 checkpoint 22c08571978be31ba57368eb983089a40a44d56d4ae5e17da41afd2a761a258c; no optimizer updates and only allowed training windows. Compilation 51.065s; total benchmark 80.009s. Alternating three blocks: eager mean0.119890s versus compiled mean0.064745s, speedup1.852. Loss0.228576794 vs0.228607744; gradient cosine0.998925465, maximum absolute gradient difference0.000610351562. bf16 arithmetic differs slightly; this is not bitwise training equivalence. Other experiments shared the H100. Variable-shape compatibility is being checked before use in training; published inference is unchanged. + +## E71 finer eight-point patches — prepared, not launched +Hypothesis: E17 benefited from32→16-point patches, and the current model still has short-horizon energy errors. Test16→8-point patches while preserving physical position units and all attention/MLP/confidence parameters. Fold the two halves of context, query and recency input projections by summation and keep the first8 output rows, as in the earlier resolution experiment. This is an own-weight initialization, not an exact function-preserving conversion. Initialize from E62, use seed197/B64/LR2e-5/12000 steps with paired sign loss, and compare to the already-running E67 paired16-point arm. Keep the identical sampler and its16-point random-prefix rounding; only model patch resolution changes. CPU fixtures and initial evaluation precede training. No additional data or synthetic generator. Waiting for training memory to become available. + +E70 variable-shape follow-up: torch.compile(dynamic=True, fullgraph=True) failed in the installed PyTorch tensorification pass: TensorReferenceAnalysis lacks python_mod. No optimizer updates occurred. Test static shape specialization with a64-graph cache limit instead, preserving the existing16 context/horizon combinations. Dynamic failure log: compiler_variable_shapes.log. + +## E72 convex mixtures of training windows — prepared, not launched +Hypothesis: interpolating real dynamics can expand effective corpus diversity and regularize the forecast mapping beyond drawing additional series. On25% of sampled rows, choose a different row with the same two periods, normalize the donor using context-only mean/std into the primary context units, then combine context and future separately with a Beta(2,2) coefficient. Missing positions use mask intersection; require8 common observed context points and1 common future label. Both real and existing locally synthetic rows are eligible. Independent seed600200 preserves the main corpus/generator stream and requested-horizon stream. Planned own E62 initialization, seed197, paired loss, B64, LR2e-5,12000 steps, identical E67 paired control settings. No inference changes. Fixtures: {"cpu_seconds": 2.7141120220185257, "seed": 197, "mixture_seed": 600200, "rows": 192, "changed_context_rows": 43, "main_and_horizon_rng_matched": true, "changing_labels_does_not_change_contexts": true, "finite_masks_respected": true, "optimizer_updates": 0}. Await training allocation. + +### E58 symmetry diagnostic +Seed239, four allowed training windows, no optimizer updates, CPU5.262225491984282s. At global12000, duplicate-stream encoder5 activations differ by only0.001181 relative RMS, versus0.001124 at initialization. Sampled duplicate-row matrix cosines remain0.99987–0.99997. The nearly redundant streams weaken the interpretation that this experiment tested useful extra capacity. Full measurements: wide_capacity_symmetry_diagnostic.json. No current weights changed. + +## E73 independently initialized extra feature stream — prepared, not launched +Hypothesis: widening by near-identical copies keeps the extra neurons redundant. Build a146,477,344-parameter model with the original512 features and a separate randomly initialized512-feature stream. Inherited linear maps occupy their original blocks; new internal maps are independently random; cross-stream maps and new output-head columns start at zero. Layer normalization operates on each512-feature group separately so the parent function survives initialization. All maps, including cross-stream connections, will train. This changes initialization and normalization grouping relative to E58. Conversion seed241; own E47 parent. Same training seed113, B96, LR3e-5,32000-step schedule and optimizer/sampler reset at8000 with seed179 as the completed/recovered small control. Use unit LR multipliers because original columns are no longer duplicated or divided. No new data or generator. Conversion fixture: {"method": "independent random feature stream with block-diagonal inherited projections, zero cross-stream projections and zero new output columns; separate512-feature layer normalization", "parent_sha256": "0bad97e8994aac49ea173443db0a4fa8d72d33f9eb9e2660f06de75f7f1403eb", "random_initialization_seed": 241, "fixture_max_abs_difference": 1.6689300537109375e-06, "new_stream_activation": {"relative_rms_difference": 1.4169212579727173}, "learning_rate_multipliers": "one for every parameter", "checkpoint_sha256": "d164d8b12223032b23948d0dcb17389d10f8e739a30a1ade5f677d2a948e965b", "parameters": 146477344, "cpu_seconds": 2.802320774004329, "optimizer_updates": 0}. Initial screen and gradient checks precede training. + +### E70 static shape specialization outcome +All four tested context/horizon shapes compiled and produced finite gradients; returning to2048/512 reused graph1, with four unique graphs total. Loss differences remained below0.00007. First calls took47.33,38.52,51.27,46.47 seconds; steady forward/backward speedups ranged1.60–1.94 under shared load. Complete result compiler_static_shapes_result.json, elapsed208.31172983598663s. Static specialization is usable, but16 training shapes incur compilation cost and bf16 arithmetic changes; existing active training runs remain eager. + +## E58/E66 recovered146M at global12000 +- Checkpoint SHA-256: `3d39cb54e80093bf97c2d95eda6bd30fefa65ec47b33ba70838dc881321e31ea`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 41.74531269073486 seconds. +- Overall skill 0.373963; relative MASE 0.747878; relative WQL 0.524045. +- term skill: long=0.3982, medium=0.4082, short=0.3507. +- domain skill: Econ/Fin=0.1409, Energy=0.2357, Healthcare=0.3980, Nature=0.4325, Sales=0.3406, Transport=0.4658, Web/CloudOps=0.4987. +- frequency skill: A=0.3756, D=0.3419, H=0.3949, M=0.0902, Q=0.1997, S=0.4220, T=0.4377, W=0.2068. +- variates skill: multivariate=0.3930, univariate=0.3584. +- Outcome: Diagnostic checkpoint; training continues. See experiment hypothesis and matched controls above. + +## E63 expanded corpus at146M first4000 +- Checkpoint SHA-256: `c89939a906b619e3d119a26d2edf1b567ff902930ca78b3e58cdce5903ed3077`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 41.43943977355957 seconds. +- Overall skill 0.373186; relative MASE 0.749492; relative WQL 0.524216. +- term skill: long=0.3994, medium=0.4061, short=0.3496. +- domain skill: Econ/Fin=0.1406, Energy=0.2371, Healthcare=0.4020, Nature=0.4224, Sales=0.3395, Transport=0.4650, Web/CloudOps=0.5007. +- frequency skill: A=0.3699, D=0.3383, H=0.3939, M=0.1020, Q=0.2066, S=0.4209, T=0.4379, W=0.2018. +- variates skill: multivariate=0.3928, univariate=0.3571. +- Outcome: Diagnostic checkpoint; training continues. See experiment hypothesis and matched controls above. + +## E61 slow AR3000 first earlier cutoff +- Checkpoint SHA-256: `c8d675cce3857f6c065a231ccbd4f2dfb76c6c49236da051d13b450287006a6f`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 26.004189491271973 seconds. +- Overall skill 0.329626; relative MASE 0.805342; relative WQL 0.558025. +- term skill: long=0.3886, medium=0.3565, short=0.2947. +- domain skill: Econ/Fin=0.1530, Energy=0.2229, Healthcare=0.4151, Nature=0.3515, Sales=0.3980, Transport=0.3624, Web/CloudOps=0.4448. +- frequency skill: A=0.3216, D=0.3548, H=0.3555, M=0.1730, Q=0.2272, S=0.3450, T=0.3293, W=0.2673. +- variates skill: multivariate=0.3459, univariate=0.3164. +- Outcome: Diagnostic checkpoint; training continues. See experiment hypothesis and matched controls above. + +## E61 slow AR3000 second earlier cutoff +- Checkpoint SHA-256: `c8d675cce3857f6c065a231ccbd4f2dfb76c6c49236da051d13b450287006a6f`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 25.961536407470703 seconds. +- Overall skill 0.353271; relative MASE 0.774762; relative WQL 0.539854. +- term skill: long=0.3691, medium=0.3752, short=0.3388. +- domain skill: Econ/Fin=0.0921, Energy=0.2250, Healthcare=0.3726, Nature=0.4619, Sales=0.5589, Transport=0.4127, Web/CloudOps=0.4305. +- frequency skill: A=0.3401, D=0.4317, H=0.3862, M=0.1746, Q=0.1512, S=0.2822, T=0.3452, W=0.2437. +- variates skill: multivariate=0.3595, univariate=0.3482. +- Outcome: Diagnostic checkpoint; training continues. See experiment hypothesis and matched controls above. + +## E67 paired3000 third earlier cutoff +- Checkpoint SHA-256: `2a19ebe0d41c1a18feaba318041795be4d268ce890162a5035e6fc6bf1844238`. +- Evaluation: 93 configurations, 8812 instances, 0 failed configurations; 26.884973287582397 seconds. +- Overall skill 0.389069; relative MASE 0.736752; relative WQL 0.506597. +- term skill: long=0.3965, medium=0.3605, short=0.3968. +- domain skill: Econ/Fin=0.1707, Energy=0.3208, Healthcare=0.2592, Nature=0.5054, Sales=0.3991, Transport=0.5053, Web/CloudOps=0.3895. +- frequency skill: A=0.3624, D=0.4436, H=0.4039, M=0.1198, Q=0.2578, S=0.2862, T=0.4305, W=0.2611. +- variates skill: multivariate=0.3741, univariate=0.4006. +- Outcome: Diagnostic checkpoint; training continues. See experiment hypothesis and matched controls above. + +## E67 candidate3000 complete package validation +- Checkpoint SHA-256: `2a19ebe0d41c1a18feaba318041795be4d268ce890162a5035e6fc6bf1844238`. +- Evaluation: 97 configurations, 151170 instances, 0 failed configurations; not separately timed seconds. +- Overall skill 0.374401; relative MASE 0.746075; relative WQL 0.524578. +- term skill: long=0.3961, medium=0.4055, short=0.3534. +- domain skill: Econ/Fin=0.1115, Energy=0.2320, Healthcare=0.4573, Nature=0.4303, Sales=0.3470, Transport=0.4663, Web/CloudOps=0.4964. +- frequency skill: A=0.2888, D=0.3569, H=0.3930, M=0.1278, Q=0.1823, S=0.4232, T=0.4312, W=0.2160. +- variates skill: multivariate=0.3926, univariate=0.3596. +- Outcome: Full public-package validation. Training seed197, B64 distinct windows with both signs, LR2e-5;3000-step checkpoint at687.5s of training-loop elapsed time on the shared single H100. Exact public inference 129.863s. Paired candidate wins full validation and main screen; it improves earlier cutoffs2/3 versus E62, but loses0.000488 on cutoff1. Control full skill0.374180 versus paired0.374401. Select paired3000 with this temporal tradeoff recorded; training continues. + +## E67 control3000 complete package validation +- Checkpoint SHA-256: `c98f8d82047e6e0ecd00f144307623afdd581ee6624d880063f810d090e1a473`. +- Evaluation: 97 configurations, 151170 instances, 0 failed configurations; not separately timed seconds. +- Overall skill 0.374180; relative MASE 0.746358; relative WQL 0.524749. +- term skill: long=0.3948, medium=0.4057, short=0.3535. +- domain skill: Econ/Fin=0.1134, Energy=0.2311, Healthcare=0.4600, Nature=0.4313, Sales=0.3473, Transport=0.4663, Web/CloudOps=0.4949. +- frequency skill: A=0.2923, D=0.3579, H=0.3922, M=0.1281, Q=0.1825, S=0.4224, T=0.4308, W=0.2163. +- variates skill: multivariate=0.3915, univariate=0.3600. +- Outcome: Full public-package validation. Training seed197, B64 distinct windows with both signs, LR2e-5;3000-step checkpoint at687.5s of training-loop elapsed time on the shared single H100. Exact public inference 131.546s. Paired candidate wins full validation and main screen; it improves earlier cutoffs2/3 versus E62, but loses0.000488 on cutoff1. Control full skill0.374180 versus paired0.374401. Select paired3000 with this temporal tradeoff recorded; training continues. + +E67 publication decision: paired3000 checkpoint2a19ebe0d41c1a18feaba318041795be4d268ce890162a5035e6fc6bf1844238, full0.3744010291; main0.3783180328; earlier cutoffs0.3357387876/0.3582353306/0.3890690875. Relative to published E62, full gain0.000981171, main gain0.000974817, earlier changes-0.000488248/+0.000541947/+0.001280498. All97 full configurations and151170 instances pass with no quantile crossings. Three example configurations are bitwise equal after independent relocation; runtime/weight hashes verified. The published inference remains eager. + +## E74 equal ensemble of E62 and its paired3000 continuation +Hypothesis: fixed forecast averaging can retain the parent's stronger first earlier cutoff while preserving gains from paired-sign training. Test exactly one equal-weight quantile mean after each model's existing fixed rules, without a weight sweep or additional zero projection. Both models would forecast every instance. Reuse cached predictions for screening; no training, new seed or source. Evaluate main and all three earlier cutoffs, then full validation only if promising; an actual packaged replay remains required before publication. Members: E62 hash22c08571978be31ba57368eb983089a40a44d56d4ae5e17da41afd2a761a258c, E67 hash2a19ebe0d41c1a18feaba318041795be4d268ce890162a5035e6fc6bf1844238. + +## full_paired_control_ema6000 +- Checkpoint SHA-256: `4517cc18d0d7b022c728a208b53bb0088fcefe249246640d26e688ba800cf84c`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 27.108938932418823 seconds. +- Overall skill 0.377544; relative MASE 0.744699; relative WQL 0.520279. +- term skill: long=0.3999, medium=0.4077, short=0.3567. +- domain skill: Econ/Fin=0.1294, Energy=0.2391, Healthcare=0.4588, Nature=0.4300, Sales=0.3396, Transport=0.4652, Web/CloudOps=0.4999. +- frequency skill: A=0.3728, D=0.3542, H=0.3955, M=0.1113, Q=0.1942, S=0.4228, T=0.4360, W=0.2279. +- variates skill: multivariate=0.3946, univariate=0.3636. +- Outcome: Paired6000 main improves to0.378455; matched control0.377544. Graft initialization reproduces parent0.375793 within numerical precision. Earlier paired diagnostics and future training determine selection. + +## full_paired_candidate_ema6000 +- Checkpoint SHA-256: `b797a18346b75d6cc1f541b56f880cd43055890f86b872bb37425b1c92609e71`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 26.94004225730896 seconds. +- Overall skill 0.378455; relative MASE 0.743557; relative WQL 0.519554. +- term skill: long=0.4019, medium=0.4071, short=0.3578. +- domain skill: Econ/Fin=0.1262, Energy=0.2397, Healthcare=0.4622, Nature=0.4291, Sales=0.3379, Transport=0.4657, Web/CloudOps=0.5030. +- frequency skill: A=0.3687, D=0.3544, H=0.3962, M=0.1031, Q=0.1932, S=0.4249, T=0.4385, W=0.2281. +- variates skill: multivariate=0.3972, univariate=0.3631. +- Outcome: Paired6000 main improves to0.378455; matched control0.377544. Graft initialization reproduces parent0.375793 within numerical precision. Earlier paired diagnostics and future training determine selection. + +## wide_graft_initial +- Checkpoint SHA-256: `d164d8b12223032b23948d0dcb17389d10f8e739a30a1ade5f677d2a948e965b`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 44.365342140197754 seconds. +- Overall skill 0.375793; relative MASE 0.745650; relative WQL 0.522544. +- term skill: long=0.3998, medium=0.4067, short=0.3540. +- domain skill: Econ/Fin=0.1396, Energy=0.2348, Healthcare=0.4405, Nature=0.4284, Sales=0.3399, Transport=0.4658, Web/CloudOps=0.5006. +- frequency skill: A=0.3762, D=0.3542, H=0.3951, M=0.0953, Q=0.1981, S=0.4239, T=0.4362, W=0.2089. +- variates skill: multivariate=0.3938, univariate=0.3611. +- Outcome: Paired6000 main improves to0.378455; matched control0.377544. Graft initialization reproduces parent0.375793 within numerical precision. Earlier paired diagnostics and future training determine selection. + +E74 valid_screen: skill0.37807862274263027, relativeMASE0.7436448167242383, relativeWQL0.5201222287724669, CPU0.8619319740100764s; group skills {"term": {"short": 0.35759494914169054, "medium": 0.40699311016073325, "long": 0.40082709768107416}, "domain": {"Econ/Fin": 0.1373283443599086, "Energy": 0.23867787085456083, "Healthcare": 0.4514094815443358, "Nature": 0.4314394439880541, "Sales": 0.3334613777872122, "Transport": 0.46623492569656166, "Web/CloudOps": 0.5020547204722161}, "freq": {"A-DEC": 0.3700186215632586, "Q-DEC": 0.1986150873665018, "M": 0.10412662722790622, "W-SUN": 0.07901894069086524, "D": 0.35481222927845457, "H": 0.39699199743484126, "15T": 0.21413878856050306, "W-FRI": -0.0023901912492456656, "10T": 0.615926427622083, "W-TUE": 0.5812846025030445, "W-THU": 0.20706119312963223, "W-WED": 0.31744777723871154, "5T": 0.5126119145163621, "10S": 0.4229238092063159}}. + +E74 valid_backcast: skill0.3362925418425802, relativeMASE0.7972981372266922, relativeWQL0.552500463058947, CPU0.8971402349998243s; group skills {"term": {"short": 0.30190782919949666, "medium": 0.35857372233263296, "long": 0.3983345998796374}, "domain": {"Econ/Fin": 0.15970397473963605, "Energy": 0.22932627079926182, "Healthcare": 0.40921062898616656, "Nature": 0.3642338798926953, "Sales": 0.395796512384459, "Transport": 0.3726773780449273, "Web/CloudOps": 0.4497268240013762}, "freq": {"A-DEC": 0.31984516176318767, "Q-DEC": 0.23213469399614717, "M": 0.1867528733976035, "W-SUN": 0.027286458584816375, "D": 0.35084294376677716, "H": 0.36615049422003554, "15T": 0.22473053922570885, "W-FRI": 0.2587886969661052, "10T": 0.3198607928100037, "W-TUE": 0.5430562436146349, "W-THU": 0.24609593870252322, "W-WED": 0.3423884364810911, "5T": 0.4378462658914031, "10S": 0.34158786712809996}}. + +E74 valid_backcast2: skill0.3582180334801286, relativeMASE0.771690389912856, relativeWQL0.5337426744378997, CPU0.6840074959909543s; group skills {"term": {"short": 0.3444537095616398, "medium": 0.3869421164002306, "long": 0.36441392284164364}, "domain": {"Econ/Fin": 0.10841961881158191, "Energy": 0.2363021419988357, "Healthcare": 0.34644304914503876, "Nature": 0.4685938042819019, "Sales": 0.5492137665291525, "Transport": 0.4207857629370483, "Web/CloudOps": 0.4314575495135424}, "freq": {"A-DEC": 0.3538974701075839, "Q-DEC": 0.1504553008739551, "M": 0.15220470977886436, "W-SUN": 0.04613015348540839, "D": 0.42446352745465865, "H": 0.39096253798739566, "15T": 0.10670219795421398, "W-FRI": 0.14873972396574198, "10T": 0.4961638002828159, "W-TUE": 0.08195477095370607, "W-THU": 0.32491052813791066, "W-WED": 0.5372312006064026, "5T": 0.46600691242017644, "10S": 0.28101678592852175}}. + +E74 valid_backcast3: skill0.38866584889169165, relativeMASE0.7372042201081582, relativeWQL0.506955107034635, CPU0.6765452020335943s; group skills {"term": {"short": 0.39634584808261863, "medium": 0.36050403977747736, "long": 0.39564160116149116}, "domain": {"Econ/Fin": 0.17218827750208232, "Energy": 0.32018031275863146, "Healthcare": 0.251739940360198, "Nature": 0.505730039991936, "Sales": 0.3992528233665873, "Transport": 0.5057485203797758, "Web/CloudOps": 0.38900692766706535}, "freq": {"A-DEC": 0.35992280976221613, "Q-DEC": 0.2607290890980446, "M": 0.1158596568834448, "W-SUN": 0.14646809588021303, "D": 0.4430503070010823, "H": 0.40373923909167875, "15T": 0.26167249262649306, "W-FRI": 0.026229112650416053, "10T": 0.6033044583572338, "W-TUE": 0.2614261172432897, "W-THU": 0.3805020665242401, "W-WED": 0.37420834670061953, "5T": 0.4617999415682724, "10S": 0.28494980458180186}}. + +E74 fixed ensemble recovers cutoff1 but is below the paired member on main and cutoffs2/3. Check cached full validation before deciding; no mixture coefficient tuning. + +E73 gradient fixture: {"cpu_seconds": 3.0038612950011156, "seed": 251, "allowed_training_windows": 2, "loss": 0.6392828226089478, "initial_gradients": {"head_new_columns": 1.3039275407791138, "encoder0_new_to_old_attention": 0.16236796975135803, "decoder3_new_to_old_ff": 0.3286978602409363}, "all_gradients_finite": true, "optimizer_updates": 0}. All gradients finite, with nonzero gradient to new output columns and new-to-old attention/feedforward maps at initialization. + +## E67 paired6000 backcast_evals +- Checkpoint SHA-256: `b797a18346b75d6cc1f541b56f880cd43055890f86b872bb37425b1c92609e71`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 27.112698793411255 seconds. +- Overall skill 0.335119; relative MASE 0.798971; relative WQL 0.553296. +- term skill: long=0.3996, medium=0.3567, short=0.2999. +- domain skill: Econ/Fin=0.1484, Energy=0.2276, Healthcare=0.4122, Nature=0.3651, Sales=0.3962, Transport=0.3724, Web/CloudOps=0.4480. +- frequency skill: A=0.3127, D=0.3525, H=0.3668, M=0.1712, Q=0.2359, S=0.3414, T=0.3328, W=0.2844. +- variates skill: multivariate=0.3517, univariate=0.3216. +- Outcome: Compared with paired3000, cutoff1 loses0.000620 and cutoff2 gains0.001211. Main gains0.000137. Complete package validation and third earlier cutoff follow; keep paired3000 published meanwhile. + +## E67 paired6000 backcast2_evals +- Checkpoint SHA-256: `b797a18346b75d6cc1f541b56f880cd43055890f86b872bb37425b1c92609e71`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 25.65610408782959 seconds. +- Overall skill 0.359446; relative MASE 0.769629; relative WQL 0.533126. +- term skill: long=0.3637, medium=0.3914, short=0.3451. +- domain skill: Econ/Fin=0.0947, Energy=0.2369, Healthcare=0.3640, Nature=0.4722, Sales=0.5483, Transport=0.4203, Web/CloudOps=0.4322. +- frequency skill: A=0.3460, D=0.4239, H=0.3913, M=0.1623, Q=0.1478, S=0.2801, T=0.3609, W=0.2646. +- variates skill: multivariate=0.3635, univariate=0.3561. +- Outcome: Compared with paired3000, cutoff1 loses0.000620 and cutoff2 gains0.001211. Main gains0.000137. Complete package validation and third earlier cutoff follow; keep paired3000 published meanwhile. + +E74 cached full validation: skill0.37416157579966614, relativeMASE0.7463637996830615, relativeWQL0.5247758979895311, CPU1.7625104649923742s; group skills {"term": {"short": 0.35339006443372445, "medium": 0.4058776358425863, "long": 0.39478447597143573}, "domain": {"Econ/Fin": 0.1148260686606345, "Energy": 0.2315840307823489, "Healthcare": 0.45764579718017184, "Nature": 0.4314211475708052, "Sales": 0.3476654519885174, "Transport": 0.46645466438647154, "Web/CloudOps": 0.49435858431787905}, "freq": {"A-DEC": 0.2905258409636121, "Q-DEC": 0.18415390225031736, "M": 0.12808227393650784, "W-SUN": 0.042170378733840996, "D": 0.3587361531705563, "H": 0.39218267210684865, "15T": 0.20355479619501637, "W-FRI": -0.021429381368383904, "10T": 0.615926427622083, "W-TUE": 0.5812846025030445, "W-THU": 0.20706119312963223, "W-WED": 0.31744777723871154, "5T": 0.5037733014006005, "10S": 0.4229238092063159}}. Below paired3000 skill0.374401 by0.000239. Reject: the first earlier-cutoff benefit does not outweigh lower full/main/other-earlier scores. No ensemble package is published and no weight sweep follows. + +E71 initial8-point model main screen0.3622169411 versus E62 parent0.3773432163; conversion intentionally changes function. CPU fixture0.9008s verifies constant-input projection folding, unchanged inherited tensors, finite/ordered forecasts at6/18/720/900 steps. Training recovery must justify this initialization cost. + +E58/E63 resource decision fixed before the next results: at global16000, stop the near-duplicate width trial if it remains below both its E47 parent and the matched small control; preserve a complete recovery checkpoint. At8000, assess expanded-corpus146M against its same-width original-corpus8000. Prioritize the independent-stream E73 initialization when a large training slot is released. Existing runs retain eager arithmetic. + +## E67 paired6000 exact full package +- Checkpoint SHA-256: `b797a18346b75d6cc1f541b56f880cd43055890f86b872bb37425b1c92609e71`. +- Evaluation: 97 configurations, 151170 instances, 0 failed configurations; not separately timed seconds. +- Overall skill 0.374279; relative MASE 0.746472; relative WQL 0.524502. +- term skill: long=0.3958, medium=0.4059, short=0.3532. +- domain skill: Econ/Fin=0.1029, Energy=0.2327, Healthcare=0.4651, Nature=0.4291, Sales=0.3514, Transport=0.4660, Web/CloudOps=0.4952. +- frequency skill: A=0.2886, D=0.3570, H=0.3913, M=0.1264, Q=0.1824, S=0.4249, T=0.4314, W=0.2203. +- variates skill: multivariate=0.3928, univariate=0.3591. +- Outcome: Paired6000 full0.374279 is below published3000 full0.374401 despite main/earlier2/earlier3 gains; retain3000 while training continues. Recent normalization6000 improves matched long-context baseline0.373979 and slightly exceeds4096 control0.374515; continue to12000. + +## E67 paired6000 third earlier cutoff +- Checkpoint SHA-256: `b797a18346b75d6cc1f541b56f880cd43055890f86b872bb37425b1c92609e71`. +- Evaluation: 93 configurations, 8812 instances, 0 failed configurations; 25.89822793006897 seconds. +- Overall skill 0.389533; relative MASE 0.736193; relative WQL 0.506212. +- term skill: long=0.3966, medium=0.3607, short=0.3974. +- domain skill: Econ/Fin=0.1634, Energy=0.3178, Healthcare=0.2808, Nature=0.5081, Sales=0.3977, Transport=0.5055, Web/CloudOps=0.3908. +- frequency skill: A=0.3558, D=0.4451, H=0.4045, M=0.1415, Q=0.2554, S=0.2895, T=0.4276, W=0.2643. +- variates skill: multivariate=0.3722, univariate=0.4028. +- Outcome: Paired6000 full0.374279 is below published3000 full0.374401 despite main/earlier2/earlier3 gains; retain3000 while training continues. Recent normalization6000 improves matched long-context baseline0.373979 and slightly exceeds4096 control0.374515; continue to12000. + +## E65 recent normalization6000 +- Checkpoint SHA-256: `1c5bc9b814879a43941f6e59b6d2024152ec9db43014e2b4431195e52366f1ea`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 34.534422874450684 seconds. +- Overall skill 0.374709; relative MASE 0.745557; relative WQL 0.524426. +- term skill: long=0.4014, medium=0.4044, short=0.3523. +- domain skill: Econ/Fin=0.1384, Energy=0.2354, Healthcare=0.4238, Nature=0.4264, Sales=0.3389, Transport=0.4711, Web/CloudOps=0.4974. +- frequency skill: A=0.3756, D=0.3531, H=0.3970, M=0.0716, Q=0.2013, S=0.4239, T=0.4343, W=0.2078. +- variates skill: multivariate=0.3915, univariate=0.3610. +- Outcome: Paired6000 full0.374279 is below published3000 full0.374401 despite main/earlier2/earlier3 gains; retain3000 while training continues. Recent normalization6000 improves matched long-context baseline0.373979 and slightly exceeds4096 control0.374515; continue to12000. + +E67 paired6000 full public inference131.433437s on the shared single H100; all97 configurations and151170 instances passed. The original3k publication remains selected by full validation, with the temporal tradeoff documented. + +## E75 training loss after fixed inference transformations — prepared, not launched +Hypothesis: paired training aligns sign averaging but still scores raw neural forecasts, whereas inference changes them with seasonal and continuity priors and exact-zero projection. Compute the same fixed context statistics without model gradients, then apply the transforms differentiably to forecasts before the existing normalized median/quantile loss. Gradients include the continuity correction's dependence on the first forecast; zero/positivity thresholds remain fixed and piecewise differentiable. The target transform and seasonal loss weight stay unchanged. Planned E62 initialization, seed197, paired loss, B64, LR2e-5,12000 steps, identical data stream to E67 paired. No new data/generator and no inference changes. CPU implementation comparison: {"cpu_seconds": 0.11522011604392901, "seed": 263, "fixtures": [{"context": 8, "horizon": 6, "maximum_absolute_difference": 0.0, "finite_gradients": true}, {"context": 64, "horizon": 18, "maximum_absolute_difference": 2.384185791015625e-07, "finite_gradients": true}, {"context": 512, "horizon": 128, "maximum_absolute_difference": 1.1920928955078125e-06, "finite_gradients": true}, {"context": 4096, "horizon": 900, "maximum_absolute_difference": 7.152557373046875e-07, "finite_gradients": true}], "optimizer_updates": 0}. Fixture agreement is numerical, not bitwise, because training computes context statistics in float64. Await a training slot and one allowed-window end-to-end gradient check. + +## E61 slow AR6000 evals +- Checkpoint SHA-256: `fea5b5290a3a9be5618eaeaf67e918e4f677d5be908d562040ce4bdfeb549bd9`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 26.034730434417725 seconds. +- Overall skill 0.361281; relative MASE 0.760333; relative WQL 0.536557. +- term skill: long=0.3915, medium=0.4029, short=0.3324. +- domain skill: Econ/Fin=0.1215, Energy=0.1845, Healthcare=0.4313, Nature=0.4272, Sales=0.3429, Transport=0.4577, Web/CloudOps=0.5068. +- frequency skill: A=0.3788, D=0.3481, H=0.3812, M=0.1116, Q=0.2006, S=0.4421, T=0.4034, W=0.2113. +- variates skill: multivariate=0.3930, univariate=0.3349. +- Outcome: Main skill0.361281 exceeds matched partial-target0.359222. Compare both earlier windows with E42; continue to12000. + +## E61 slow AR6000 backcast_evals +- Checkpoint SHA-256: `fea5b5290a3a9be5618eaeaf67e918e4f677d5be908d562040ce4bdfeb549bd9`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 25.68802785873413 seconds. +- Overall skill 0.331040; relative MASE 0.803953; relative WQL 0.556635. +- term skill: long=0.3886, medium=0.3569, short=0.2972. +- domain skill: Econ/Fin=0.1588, Energy=0.2277, Healthcare=0.4061, Nature=0.3526, Sales=0.3967, Transport=0.3629, Web/CloudOps=0.4452. +- frequency skill: A=0.3244, D=0.3518, H=0.3577, M=0.1682, Q=0.2306, S=0.3442, T=0.3314, W=0.2762. +- variates skill: multivariate=0.3484, univariate=0.3169. +- Outcome: Main skill0.361281 exceeds matched partial-target0.359222. Compare both earlier windows with E42; continue to12000. + +## E61 slow AR6000 backcast2_evals +- Checkpoint SHA-256: `fea5b5290a3a9be5618eaeaf67e918e4f677d5be908d562040ce4bdfeb549bd9`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 25.468894004821777 seconds. +- Overall skill 0.354097; relative MASE 0.774005; relative WQL 0.539002. +- term skill: long=0.3704, medium=0.3752, short=0.3398. +- domain skill: Econ/Fin=0.0990, Energy=0.2275, Healthcare=0.3686, Nature=0.4617, Sales=0.5571, Transport=0.4131, Web/CloudOps=0.4308. +- frequency skill: A=0.3441, D=0.4303, H=0.3862, M=0.1683, Q=0.1512, S=0.2846, T=0.3470, W=0.2514. +- variates skill: multivariate=0.3602, univariate=0.3491. +- Outcome: Main skill0.361281 exceeds matched partial-target0.359222. Compare both earlier windows with E42; continue to12000. + +E73 compiler fixture: {"seed": 271, "batch": 16, "context": 512, "horizon": 128, "eager_loss": 0.2625328004360199, "compiled_loss": 0.26252102851867676, "gradient_cosine": 0.9994836559992685, "maximum_gradient_difference": 0.003173828125, "compile_and_gradient_comparison_seconds": 65.4888255270198, "total_seconds": 66.77216628700262, "optimizer_updates": 0, "source": "allowed packed_sample and own generator"}. Static compilation is numerically close, not bitwise; use it for the32k-step independent-stream trial to amortize the16 shape compilations. This implementation difference from the existing eager small control is explicit. Loss formula, sampler, optimizer and schedule stay fixed. + +E75 allowed-window end-to-end fixture: {"cpu_seconds": 2.641128608956933, "seed": 269, "allowed_training_and_own_synthetic_windows": 8, "loss": 0.2808418869972229, "gradient_norm": 0.18120726943016052, "all_gradients_finite": true, "optimizer_updates": 0}. No optimizer updates. + +E69 is now queued after the slow-AR trainer PID980 exits with ema012000.pt, using its declared eager settings and the same allocation. Queue receipt volatility_synth_queue.json and watcher watch_volatility_synth.log identify the run. No E69 training has started yet. + +E71 maximum-shape GPU fixture: {"seed": 277, "batch": 64, "signed_rows": 128, "context": 4096, "horizon": 1024, "optimizer_updates": 0, "loss": 0.2055814117193222, "seconds": 10.965134899015538, "peak_allocated_mib": 10373.298828125, "peak_reserved_mib": 10992.0}. Passed without optimizer updates. Queue after both E67 trainers finish12000, so its larger working set reuses their combined allocation. + +E75 queued after E65 recent-normalization finishes12000. Both new queues require the predecessor final EMA before starting, and use the declared eager settings. E72 mixup remains prepared only; E73 awaits the prespecified width checkpoint decision. + +## E76 transfer the matched slow-AR6000 correction +E61 improves the main and both earlier cutoffs at6000 versus E42. Hypothesis: this learned synthetic-dynamics correction also helps the selected paired3000 model. Form exactly base(E67 paired3000)+candidate(E61 slowAR6000)-control(E42 partial6000), coefficient1.0 on matching tensors; keep the base confidence projection unchanged. All three checkpoints were trained here on declared sources. No coefficient sweep, new training, data or inference changes. Compare the main and earlier screens before full replay. + +## E76 slow-AR correction evals +- Checkpoint SHA-256: `8562cb05319ed04fdd8544a1af80bf1688ba55284e59b4689aa646e34e38a105`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 26.135655403137207 seconds. +- Overall skill 0.379721; relative MASE 0.741564; relative WQL 0.518831. +- term skill: long=0.4036, medium=0.4064, short=0.3597. +- domain skill: Econ/Fin=0.1442, Energy=0.2362, Healthcare=0.4597, Nature=0.4330, Sales=0.3350, Transport=0.4655, Web/CloudOps=0.5071. +- frequency skill: A=0.3715, D=0.3604, H=0.3974, M=0.0968, Q=0.1987, S=0.4260, T=0.4397, W=0.2230. +- variates skill: multivariate=0.3981, univariate=0.3647. +- Outcome: Fixed coefficient1.0 matched own-model correction improves all three screens over paired3000. Full public-package validation and the third earlier cutoff follow before publication. No additional optimization. + +## E76 slow-AR correction backcast_evals +- Checkpoint SHA-256: `8562cb05319ed04fdd8544a1af80bf1688ba55284e59b4689aa646e34e38a105`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 25.913641452789307 seconds. +- Overall skill 0.336781; relative MASE 0.795517; relative WQL 0.552923. +- term skill: long=0.3965, medium=0.3587, short=0.3036. +- domain skill: Econ/Fin=0.1684, Energy=0.2257, Healthcare=0.4092, Nature=0.3689, Sales=0.3927, Transport=0.3721, Web/CloudOps=0.4520. +- frequency skill: A=0.3199, D=0.3498, H=0.3654, M=0.1876, Q=0.2323, S=0.3437, T=0.3374, W=0.2878. +- variates skill: multivariate=0.3539, univariate=0.3228. +- Outcome: Fixed coefficient1.0 matched own-model correction improves all three screens over paired3000. Full public-package validation and the third earlier cutoff follow before publication. No additional optimization. + +## E76 slow-AR correction backcast2_evals +- Checkpoint SHA-256: `8562cb05319ed04fdd8544a1af80bf1688ba55284e59b4689aa646e34e38a105`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 25.258840799331665 seconds. +- Overall skill 0.360577; relative MASE 0.768980; relative WQL 0.531693. +- term skill: long=0.3677, medium=0.3876, short=0.3472. +- domain skill: Econ/Fin=0.1192, Energy=0.2354, Healthcare=0.3433, Nature=0.4736, Sales=0.5465, Transport=0.4203, Web/CloudOps=0.4380. +- frequency skill: A=0.3515, D=0.4289, H=0.3897, M=0.1383, Q=0.1499, S=0.2861, T=0.3643, W=0.2654. +- variates skill: multivariate=0.3674, univariate=0.3550. +- Outcome: Fixed coefficient1.0 matched own-model correction improves all three screens over paired3000. Full public-package validation and the third earlier cutoff follow before publication. No additional optimization. + +E76 CPU composition receipt: {"method": "matched training delta", "formula": "base + candidate - control", "coefficient": 1.0, "parent_hashes": {"/workspace/research/runs/full_paired_candidate/ema003000.pt": "2a19ebe0d41c1a18feaba318041795be4d268ce890162a5035e6fc6bf1844238", "/workspace/research/runs/long_memory_synth_recovery/ema006000.pt": "fea5b5290a3a9be5618eaeaf67e918e4f677d5be908d562040ce4bdfeb549bd9", "/workspace/research/runs/partial_targets/ema006000.pt": "67562486b099a350da53c3caa5ff0932fe7fecdfe72c1879b064b2a9bb173dfb"}, "seconds": 1.1477709169848822}. + +## E77 slow-AR synthesis during full paired-sign training — prepared, not launched +E61's matched correction transfers favorably to the selected model on three screens. Hypothesis: training the confidence/horizon-aware model directly with the same slow-AR prior can improve on composing an older-backbone correction. Reuse E67's exact E62 initialization, seed197, B64, LR2e-5,12000-step schedule, paired-sign loss and independent horizon RNG300200. Change only synthetic AR phi fromU(.2,.995) toexp(-10**(-U(0,4))), preserving the main RNG calls and zero initial state. This yields time constants log-uniform1..10000 and keeps innovation variance normalized as before. Compare to the already-computed E67 paired control. No inference change, new corpus or validation training. Prioritize after a training allocation is released; E72 mixup remains an unlaunched alternative. + +## E76 slow-AR correction third earlier cutoff +- Checkpoint SHA-256: `8562cb05319ed04fdd8544a1af80bf1688ba55284e59b4689aa646e34e38a105`. +- Evaluation: 93 configurations, 8812 instances, 0 failed configurations; 25.890827178955078 seconds. +- Overall skill 0.389281; relative MASE 0.737064; relative WQL 0.506031. +- term skill: long=0.3949, medium=0.3619, short=0.3971. +- domain skill: Econ/Fin=0.1812, Energy=0.3198, Healthcare=0.2311, Nature=0.5053, Sales=0.3996, Transport=0.5073, Web/CloudOps=0.3940. +- frequency skill: A=0.3622, D=0.4457, H=0.4032, M=0.1047, Q=0.2602, S=0.2878, T=0.4313, W=0.2630. +- variates skill: multivariate=0.3743, univariate=0.4008. +- Outcome: Publish E76: full0.375612 improves paired3000 full0.374401; main0.379721 and earlier0.336781/0.360577/0.389281 all improve. All97 configurations and151170 instances pass; zero crossings. Fixed coefficient1.0 composition of own trained checkpoints; no additional training. + +## E76 slow-AR correction full package validation +- Checkpoint SHA-256: `8562cb05319ed04fdd8544a1af80bf1688ba55284e59b4689aa646e34e38a105`. +- Evaluation: 97 configurations, 151170 instances, 0 failed configurations; not separately timed seconds. +- Overall skill 0.375612; relative MASE 0.744415; relative WQL 0.523713. +- term skill: long=0.3976, medium=0.4054, short=0.3551. +- domain skill: Econ/Fin=0.1204, Energy=0.2291, Healthcare=0.4651, Nature=0.4330, Sales=0.3487, Transport=0.4658, Web/CloudOps=0.4992. +- frequency skill: A=0.2896, D=0.3638, H=0.3924, M=0.1218, Q=0.1820, S=0.4260, T=0.4325, W=0.2151. +- variates skill: multivariate=0.3936, univariate=0.3609. +- Outcome: Publish E76: full0.375612 improves paired3000 full0.374401; main0.379721 and earlier0.336781/0.360577/0.389281 all improve. All97 configurations and151170 instances pass; zero crossings. Fixed coefficient1.0 composition of own trained checkpoints; no additional training. + +E76 published checkpoint SHA2568562cb05319ed04fdd8544a1af80bf1688ba55284e59b4689aa646e34e38a105. Public full inference132.224730s on the shared H100. Relocation fixture15.725434s: three example configurations, bitwise identical, finite and monotone; all runtime/weight hashes verified. The checker initially ran before candidate assembly completed and was restarted after the package existed; the infrastructure error log is retained separately. No inference runtime change. + +E77 sampler fixture: {"seed": 197, "main_and_horizon_rng_matched": true, "real_windows_bitwise_equal": true, "changed_synthetic_context_values": 37211, "cpu_seconds": 4.491440053971019, "optimizer_updates": 0}. Prepared only; no optimizer updates or launch yet. + +## wide_capacity_146m_recovery_ema16000 +- Checkpoint SHA-256: `ad4960e948e64ecf25ec3be4cdc50bae6c7076d15cd7470b028f6ac703bb1081`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 40.720494747161865 seconds. +- Overall skill 0.375817; relative MASE 0.745785; relative WQL 0.522408. +- term skill: long=0.3987, medium=0.4075, short=0.3541. +- domain skill: Econ/Fin=0.1398, Energy=0.2372, Healthcare=0.4246, Nature=0.4298, Sales=0.3438, Transport=0.4655, Web/CloudOps=0.5003. +- frequency skill: A=0.3787, D=0.3494, H=0.3971, M=0.0940, Q=0.1979, S=0.4232, T=0.4362, W=0.2114. +- variates skill: multivariate=0.3941, univariate=0.3609. +- Outcome: Original-corpus146M at16000 reaches0.375817, above its E47 parent0.375793 and matched small control0.375510: retain the planned continuation. Expanded corpus at8000 scores0.374266 versus original-corpus8000 .374330, an essentially tied result after a worse4000 checkpoint. Stop the expanded branch, preserve full recovery state, and prioritize an initialization that actually diversifies features. This is inconclusive for data scaling, not proof that expanded data is harmful. + +## wide_corpus_expanded_recovery_ema8000 +- Checkpoint SHA-256: `fbab74444b04d805cc04ec612964fcad5e66766d55c3f566a8dc870328ca4493`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 40.68104600906372 seconds. +- Overall skill 0.374266; relative MASE 0.747150; relative WQL 0.524049. +- term skill: long=0.4008, medium=0.4075, short=0.3504. +- domain skill: Econ/Fin=0.1428, Energy=0.2366, Healthcare=0.4040, Nature=0.4268, Sales=0.3397, Transport=0.4655, Web/CloudOps=0.5014. +- frequency skill: A=0.3790, D=0.3421, H=0.3958, M=0.1065, Q=0.2072, S=0.4225, T=0.4375, W=0.1966. +- variates skill: multivariate=0.3942, univariate=0.3579. +- Outcome: Original-corpus146M at16000 reaches0.375817, above its E47 parent0.375793 and matched small control0.375510: retain the planned continuation. Expanded corpus at8000 scores0.374266 versus original-corpus8000 .374330, an essentially tied result after a worse4000 checkpoint. Stop the expanded branch, preserve full recovery state, and prioritize an initialization that actually diversifies features. This is inconclusive for data scaling, not proof that expanded data is harmful. + +E63 stop requested after8000 evaluation. No validation gain justifies continuing the nearly duplicated-width expanded-data arm while E73 is ready; the complete recovery state will allow later continuation. E73 takes that allocation with seed113/B96/LR3e-5/32000, reset at8000 toseed179, and static compiled loss. Its separate feature-group normalization and independent stream are the research changes; compiler numerical differences were measured explicitly. + +E75 maximum-shape bf16 GPU fixture: {"seed": 281, "batch": 64, "context": 4096, "horizon": 1024, "optimizer_updates": 0, "loss": 0.22305740416049957, "seconds": 10.91669597796863, "peak_allocated_mib": 5362.6640625, "peak_reserved_mib": 5694.0}. All model gradients finite; no optimizer updates. + +E73 independent feature stream with static compilation, seed113 training started at 2026-10-22T07:07:01Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E71 eight-point patches, seed197 training started at 2026-10-22T07:08:06Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E63 stop receipt: {"experiment": "E63 expanded146M stopped", "step": 8501, "training_loop_seconds": 2892.9847088330425, "checkpoint_sha256": "1d578f0a2278a3a4ad7011e24957797dde52c70b7e2c6f8b369aaf8227ac7133", "ema": "/workspace/research/runs/wide_corpus_expanded_recovery/ema008501.pt", "complete_recovery": "/workspace/research/runs/wide_corpus_expanded_recovery/recovery.pt", "selection_checkpoint_step": 8000, "selection_skill": 0.3742660744379728, "outcome": "Essentially tied with original-corpus same-width8000 .3743298586; prioritize independent stream. Data scaling remains inconclusive."}. + +## E67 full_paired_control final12000 +- Checkpoint SHA-256: `b79cfdeefa1b2b20af89c8484a447dc96bfdd31234f2b08346468c8d9ece62bd`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 20.30943751335144 seconds. +- Overall skill 0.377243; relative MASE 0.745277; relative WQL 0.520379. +- term skill: long=0.4013, medium=0.4067, short=0.3560. +- domain skill: Econ/Fin=0.1346, Energy=0.2365, Healthcare=0.4485, Nature=0.4306, Sales=0.3336, Transport=0.4666, Web/CloudOps=0.5025. +- frequency skill: A=0.3681, D=0.3525, H=0.3948, M=0.1073, Q=0.2012, S=0.4245, T=0.4384, W=0.2186. +- variates skill: multivariate=0.3950, univariate=0.3628. +- Outcome: Seed197/B64/LR2e-5; final12000 is worse than the selected paired3000 and its published slow-AR correction. No publication. Matched control and candidate complete; no baseline rerun. + +## E67 full_paired_candidate final12000 +- Checkpoint SHA-256: `26d529aeaaee4484b0b4375fdc379779b08b38ac5077f0147587421f4f5fc8b0`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 21.91175127029419 seconds. +- Overall skill 0.377427; relative MASE 0.744720; relative WQL 0.520460. +- term skill: long=0.4032, medium=0.4055, short=0.3560. +- domain skill: Econ/Fin=0.1326, Energy=0.2359, Healthcare=0.4464, Nature=0.4299, Sales=0.3326, Transport=0.4667, Web/CloudOps=0.5051. +- frequency skill: A=0.3614, D=0.3505, H=0.3948, M=0.1036, Q=0.1986, S=0.4251, T=0.4404, W=0.2181. +- variates skill: multivariate=0.3963, univariate=0.3620. +- Outcome: Seed197/B64/LR2e-5; final12000 is worse than the selected paired3000 and its published slow-AR correction. No publication. Matched control and candidate complete; no baseline rerun. + +E67 complete measured training loop times on the shared H100: individual control2794.8358459s; paired candidate2794.8673859s. These are overlapping wall times, not additive exclusive GPU seconds. + +## Operator recovery2 — 2026-10-22 +The operator reports152594 research seconds remaining; all old processes ended. Published E76 verified SHA2568562cb05319ed04fdd8544a1af80bf1688ba55284e59b4689aa646e34e38a105 and full validation0.3756123475. Resume complete optimizer/EMA/RNG/prefetched-batch checkpoints: E58/E66 wide17000 and control23000, E61 slowAR8000, E65 recent normalization9000. Their prior last logged steps17200/23750/8450/9600 represent at least200/750/450/600 unsaved updates discarded. Original phase logs remain intact, latest elapsed3043.3/3041.0/3037.0/3034.3s respectively. E73 graft had no checkpoint or logged50-step interval; E71 patch8 reached200/63.0s with no checkpoint. Restart both from saved own initialization with unchanged seeds. Compiler caches were absent after recovery, so E73 recompiles static shapes. E63 remains stopped; E67 remains complete. Phase commands/PIDs/timing are recorded in recovery2_launch_receipt.json and *_recovery2.log; queued E69/E75/E77 retain predeclared settings. + +## E78 multiple persistent scales in synthetic residuals — prepared, not launched +Hypothesis: the slow-AR improvement reflects missing persistent residual dynamics, but a single decay rate per synthetic sequence cannot represent fast variation superimposed on slow level changes. Compare four independent OU components to E77's one component. Keep the original component and main RNG draws; add three components with log-uniform time constants1..10000 from an independent RNG seed700200, then divide their sum by2 to preserve asymptotic stationary variance. All components retain zero initial state, isolating multiple scales from initialization. Other synthetic structure,20% synthetic fraction, real windows, horizon augmentation, architecture and loss remain unchanged. ParentE62, seed197/B64/LR2e-5/12000, paired-sign loss, main/horizon RNG identical to E77. This generator uses no external data. Prepare and check on allowed training windows; launch only after a suitable allocation is released. + +E78 sampler fixture passed: { "seed": 197, "extra_seed": 700200, "real_windows_bitwise_equal": 211, "synthetic_windows": 45, "changed_context_values": 26747, "main_and_horizon_rng_matched": true, "finite_masks_and_periods_matched": true, "cpu_seconds": 4.07623768504709, "optimizer_updates": 0 }; prepared only, no optimizer updates. + +## E58/E66 recovered37M control24000 +- Checkpoint SHA-256: `0a77157c454bf7a913b41493f052666ed1cfce3d65206b6c969fb8d95e6314a7`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 25.700880765914917 seconds. +- Overall skill 0.375681; relative MASE 0.745320; relative WQL 0.522962. +- term skill: long=0.4008, medium=0.4066, short=0.3534. +- domain skill: Econ/Fin=0.1417, Energy=0.2348, Healthcare=0.4210, Nature=0.4300, Sales=0.3397, Transport=0.4677, Web/CloudOps=0.5018. +- frequency skill: A=0.3784, D=0.3533, H=0.3961, M=0.0763, Q=0.2029, S=0.4222, T=0.4370, W=0.2113. +- variates skill: multivariate=0.3953, univariate=0.3596. +- Outcome: Seed113, matched reset at8000 toseed179. Skill0.375681 remains slightly below E47parent0.375793; continue the predeclared schedule to32000. E58large24000 is pending. + +## E79 fresh pretraining at37M and146M — prepared, not launched +Hypothesis: duplicating a mature smaller representation and continuing at a small learning rate limits the useful benefit of capacity. Test distinct random initializations under one matched modern recipe. Both arms use the same direct encoder/decoder architecture (patch16,6encoder/4decoder blocks, recency/confidence inputs and partial-target masks); widths512/1024 with8/16heads are the only architectural difference. Every tensor is initialized here with seed307; no parent weights. Both use packed_sample,20% own synthetic windows, the proven slow-AR time-constant prior1..10000, independent horizon-prefix augmentation seed300310, paired-sign objective, seed307 sampling, batch48 distinct/96signed rows, AdamW LR2e-4,400-step warmup and96000-step cosine schedule, EMA. Both use the same static compiled loss after a numerical/memory fixture. Save every1000; screen4000/8000/16000/24000/48000/72000/96000, with earlier cutoffs for promising candidates. This is a matched width comparison within the new recipe; comparisons to the old published lineage are model-selection comparisons, not clean causal claims about width. Reuse no released or baseline weights. Launch only after existing allocations release. The extended schedule supplies4.608M distinct sampled windows per arm; stop a clearly unpromising branch when its checkpoints establish that result. + +## E71 patch8 first1000 +- Checkpoint SHA-256: `67648eaef1f0a4fe5a7c5526f25c2c8724735720463d99250e814632841f9ada`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 32.271108627319336 seconds. +- Overall skill 0.374708; relative MASE 0.748109; relative WQL 0.522638. +- term skill: long=0.3990, medium=0.3996, short=0.3553. +- domain skill: Econ/Fin=0.1322, Energy=0.2323, Healthcare=0.4676, Nature=0.4328, Sales=0.3481, Transport=0.4583, Web/CloudOps=0.4952. +- frequency skill: A=0.3712, D=0.3577, H=0.3912, M=0.0847, Q=0.1944, S=0.4235, T=0.4328, W=0.2289. +- variates skill: multivariate=0.3876, univariate=0.3643. +- Outcome: Seed197/B64/LR2e-5; recovers most of the conversion loss, from initial0.362217 to0.374708. Still below matched patch16 paired1000 at0.376860 and parentE62 at0.377343; continue to3000/6000 before a decision. + +E79 initial checkpoint receipts: [ { "path": "/workspace/research/random_capacity_512_initial.pt", "sha256": "19da01694123fcb13df815689ca66460d0da596bd31dfabfabb08dda6f7801e4", "parameters": 36800800, "seed": 307, "cpu_seconds": 0.5544250560924411, "optimizer_updates": 0 }, { "path": "/workspace/research/random_capacity_1024_initial.pt", "sha256": "c9693619ca6277c26fef3b2bde37ff6796bec97b3af9f94588bbc5ddd329ec90", "parameters": 146477344, "seed": 307, "cpu_seconds": 2.0617611361667514, "optimizer_updates": 0 } ] + +E79 width512 fixture: { "width": 512, "initialization_seed": 307, "fixture_seed": 313, "optimizer_updates": 0, "maximum_shape_memory": { "batch": 48, "signed_rows": 96, "context": 4096, "horizon": 1024, "loss": 0.6031821966171265, "peak_allocated_mib": 4520.62451171875, "peak_reserved_mib": 4784.0 }, "eager_loss": 0.3412420153617859, "compiled_loss": 0.3412419855594635, "gradient_cosine": 0.9999952735476323, "max_gradient_difference": 4.57763671875e-05, "compile_comparison_seconds": 53.98739787377417, "total_seconds": 63.50496790325269, "source": "allowed packed_sample and own synthetic generator only" } + +E79 width1024 fixture: { "width": 1024, "initialization_seed": 307, "fixture_seed": 313, "optimizer_updates": 0, "maximum_shape_memory": { "batch": 48, "signed_rows": 96, "context": 4096, "horizon": 1024, "loss": 0.6031821966171265, "peak_allocated_mib": 10162.86376953125, "peak_reserved_mib": 10694.0 }, "eager_loss": 0.3412420153617859, "compiled_loss": 0.3412419855594635, "gradient_cosine": 0.9999932382274589, "max_gradient_difference": 6.103515625e-05, "compile_comparison_seconds": 62.02263342216611, "total_seconds": 72.94260076899081, "source": "allowed packed_sample and own synthetic generator only" } + +E79 both arms are queued after E58wide and E71patch8 release their allocations; their complete recovery files must exist. Queue receipts random_capacity_512_queue.json and random_capacity_1024_queue.json preserve exact commands. Both use B48/96000/seed307/static compilation. No training has started. Compiler caches are backed up under research/compiler_cache_backup and can be restored to the same /tmp paths after another recovery. + +postloss started 2026-10-22T07:27:21.677278+00:00 after recent_normalization_recovery completed. Original predeclared settings and seed retained. + +## Operator recovery3 — 2026-10-23 +Operator reports151596 research seconds remaining; all prior processes ended. Submission E76 hash verified unchanged. Resume complete state at wide20000/control28000/slowAR10000/patch8 2000. Last logged steps20100/28400/10850/2700 imply at least100/400/850/700 discarded unsaved updates; phase2 elapsed768.6/769.5/767.8/770.0s. Graft reached100 updates/722.7s without checkpoint; restart own seed113 initialization, restored compiler caches (13.8722s). Recent normalization completed12000 with final phase training loop708.0175s; do not retrain. Volatility/paired-slowAR and fresh-width queues restored with new dependencies. Postloss reached200/43.0s with nonfinite losses, no checkpoint; numerical diagnosis precedes restarting. Prior phase logs retained; no credential access. + +E75 numerical failure diagnosed on allowed-corpus step53, seed197, without optimizer updates: one row has context magnitude2.2842e18 and float32 variance accumulation overflow, yielding infinite normalization scale. The normalized neural output is finite, but conversion to raw units produces nonfinite values. Context postprocessing statistics themselves remain finite. Add a float64 fallback only on rows with nonfinite mean/scale; ordinary-row arithmetic remains bitwise unchanged. Restart this experiment from E62 after regression checks; no affected checkpoint will be selected. This correction is part of this comparison and will be retained in its inference runtime if selected. + +## E65 recent normalization final12000 +- Checkpoint SHA-256: `1fea846895698d0e33384a63e228b17de602d03154e41ad0c81d5cc060ed182f`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 31.676968097686768 seconds. +- Overall skill 0.375806; relative MASE 0.744151; relative WQL 0.523574. +- term skill: long=0.4022, medium=0.4055, short=0.3535. +- domain skill: Econ/Fin=0.1427, Energy=0.2348, Healthcare=0.4380, Nature=0.4255, Sales=0.3383, Transport=0.4706, Web/CloudOps=0.4994. +- frequency skill: A=0.3754, D=0.3572, H=0.3959, M=0.0785, Q=0.2042, S=0.4248, T=0.4352, W=0.2109. +- variates skill: multivariate=0.3924, univariate=0.3622. +- Outcome: Seed101/B128/LR3e-5. Main0.375806 narrowly exceeds4096-control0.375764 and8192-full-normalization0.375118; evaluate earlier windows against both matched controls. Final resumed phase708.0175 training-loop seconds; prior interrupted phases are retained separately. + +E75 numerical regression passed: ordinary rows bitwise original; observed overflowing row now finite loss2.6841469 and all gradients finite,7.0381s,0optimizer updates. Fixed-parent replay of250original training batches found no nonfinite postprocessed forecasts in21.9482s. Restarted seed197/B64/LR2e-5/12000 from E62. Future validation uses postloss_inference with the same overflow fallback. The first earlier-control evaluation launch used the old trend summary runtime by mistake and was cancelled; corrected comparisons are named long_context_control_fixed128_ema12000. No selection uses the cancelled diagnostic. + +E76 descriptive paired full-validation comparison against E67paired3000: improvement0.0012113184,51/97configurations improve. Resampling dataset-directory clusters (28keys, seed317,5000draws) gives skill-delta percentiles[-0.0006681,0.0012221,0.0031907]. The range crosses zero and adaptive validation reuse prevents a held-out significance claim. Retain E76 based on measured full/earlier scores, while recognizing this is a small improvement. Largest gains include us_births daily and bizitobs_l2c short; ETT2 minute short worsens. Full per-configuration log-error differences retained in slow_ar_delta6k_comparison.json. + +## E80 matched control for the overflow correction — prepared +E75 needs a numerical fallback for rare overflowing training rows. To isolate its postprocessing-aware objective, prepare a control with exactly the same fallback but the original E67 paired-sign loss. ParentE62,seed197,B64,LR2e-5,12000steps, matching data/horizon RNG. No other inference or training change. This is a newly required numerical control, not a baseline rerun. + +## E81 equal ensemble of E76 and recent-normalization12000 +The longer-history candidate has a stronger second earlier cutoff but lower main/first-earlier performance than E76. Test whether averaging their postprocessed quantiles reduces complementary errors. Fixed equal weights; every member must forecast every instance if packaged. Compare cached main and both earlier predictions first. No coefficient sweep, new fitting, data or training. Reject unless the diagnostic tradeoff justifies full public-package replay. + +E80 overflow-only paired control queued alongside fresh-capacity arms after the old wide/patch8 allocations release. E78 multiscale-AR queued after postloss releases its allocation. Both use declared seed197/B64/LR2e-5/12000 settings; every command is retained in its queue receipt. Neither has started. + +## E65 matched comparison recent_normalization_recovery backcast_evals +- Checkpoint SHA-256: `1fea846895698d0e33384a63e228b17de602d03154e41ad0c81d5cc060ed182f`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 23.444558143615723 seconds. +- Overall skill 0.335105; relative MASE 0.796743; relative WQL 0.554866. +- term skill: long=0.4010, medium=0.3564, short=0.2994. +- domain skill: Econ/Fin=0.1646, Energy=0.2213, Healthcare=0.4212, Nature=0.3540, Sales=0.3970, Transport=0.3770, Web/CloudOps=0.4538. +- frequency skill: A=0.3179, D=0.3541, H=0.3610, M=0.1841, Q=0.2288, S=0.3371, T=0.3395, W=0.2758. +- variates skill: multivariate=0.3510, univariate=0.3221. +- Outcome: Recent normalization main0.375806/earlier0.335105/0.361614; full-normalization8192 main0.375118/earlier0.335778/0.361619;4096control main0.375764/earlier0.335548/0.359190. Temporal tradeoff, no single-member publication. Test complementary equal ensemble with E76 as declared E81. + +## E65 matched comparison recent_normalization_recovery backcast2_evals +- Checkpoint SHA-256: `1fea846895698d0e33384a63e228b17de602d03154e41ad0c81d5cc060ed182f`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 23.86247205734253 seconds. +- Overall skill 0.361614; relative MASE 0.766245; relative WQL 0.531861. +- term skill: long=0.3676, medium=0.3942, short=0.3463. +- domain skill: Econ/Fin=0.1074, Energy=0.2351, Healthcare=0.3566, Nature=0.4647, Sales=0.5547, Transport=0.4203, Web/CloudOps=0.4480. +- frequency skill: A=0.3496, D=0.4310, H=0.3890, M=0.1517, Q=0.1448, S=0.2876, T=0.3677, W=0.2567. +- variates skill: multivariate=0.3709, univariate=0.3540. +- Outcome: Recent normalization main0.375806/earlier0.335105/0.361614; full-normalization8192 main0.375118/earlier0.335778/0.361619;4096control main0.375764/earlier0.335548/0.359190. Temporal tradeoff, no single-member publication. Test complementary equal ensemble with E76 as declared E81. + +## E65 matched comparison long_context_control_fixed128 backcast_evals +- Checkpoint SHA-256: `372edd6a03da9f577992a9cf6363b26efe7b11b35fc3aed2d50868566efd0c71`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 21.399088382720947 seconds. +- Overall skill 0.335548; relative MASE 0.797825; relative WQL 0.553375. +- term skill: long=0.3998, medium=0.3578, short=0.3002. +- domain skill: Econ/Fin=0.1618, Energy=0.2279, Healthcare=0.4256, Nature=0.3575, Sales=0.3966, Transport=0.3721, Web/CloudOps=0.4487. +- frequency skill: A=0.3187, D=0.3539, H=0.3656, M=0.1845, Q=0.2285, S=0.3427, T=0.3351, W=0.2751. +- variates skill: multivariate=0.3528, univariate=0.3215. +- Outcome: Recent normalization main0.375806/earlier0.335105/0.361614; full-normalization8192 main0.375118/earlier0.335778/0.361619;4096control main0.375764/earlier0.335548/0.359190. Temporal tradeoff, no single-member publication. Test complementary equal ensemble with E76 as declared E81. + +## E65 matched comparison long_context_control_fixed128 backcast2_evals +- Checkpoint SHA-256: `372edd6a03da9f577992a9cf6363b26efe7b11b35fc3aed2d50868566efd0c71`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 21.050649642944336 seconds. +- Overall skill 0.359190; relative MASE 0.769269; relative WQL 0.533801. +- term skill: long=0.3663, medium=0.3893, short=0.3445. +- domain skill: Econ/Fin=0.1046, Energy=0.2371, Healthcare=0.3554, Nature=0.4689, Sales=0.5535, Transport=0.4194, Web/CloudOps=0.4333. +- frequency skill: A=0.3493, D=0.4307, H=0.3894, M=0.1531, Q=0.1429, S=0.2835, T=0.3601, W=0.2577. +- variates skill: multivariate=0.3643, univariate=0.3551. +- Outcome: Recent normalization main0.375806/earlier0.335105/0.361614; full-normalization8192 main0.375118/earlier0.335778/0.361619;4096control main0.375764/earlier0.335548/0.359190. Temporal tradeoff, no single-member publication. Test complementary equal ensemble with E76 as declared E81. + +## E65 matched comparison long_context_8192 backcast_evals +- Checkpoint SHA-256: `90a1a9da78714594078b3cafd32b1812d633f5d6bf85ba8bfa60d09fbc3ebd38`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 24.02571153640747 seconds. +- Overall skill 0.335778; relative MASE 0.796740; relative WQL 0.553746. +- term skill: long=0.4000, medium=0.3562, short=0.3012. +- domain skill: Econ/Fin=0.1625, Energy=0.2211, Healthcare=0.4240, Nature=0.3584, Sales=0.3963, Transport=0.3783, Web/CloudOps=0.4528. +- frequency skill: A=0.3183, D=0.3550, H=0.3608, M=0.1825, Q=0.2283, S=0.3383, T=0.3410, W=0.2775. +- variates skill: multivariate=0.3516, univariate=0.3229. +- Outcome: Recent normalization main0.375806/earlier0.335105/0.361614; full-normalization8192 main0.375118/earlier0.335778/0.361619;4096control main0.375764/earlier0.335548/0.359190. Temporal tradeoff, no single-member publication. Test complementary equal ensemble with E76 as declared E81. + +## E65 matched comparison long_context_8192 backcast2_evals +- Checkpoint SHA-256: `90a1a9da78714594078b3cafd32b1812d633f5d6bf85ba8bfa60d09fbc3ebd38`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 24.033729791641235 seconds. +- Overall skill 0.361619; relative MASE 0.766647; relative WQL 0.531576. +- term skill: long=0.3678, medium=0.3937, short=0.3464. +- domain skill: Econ/Fin=0.1060, Energy=0.2331, Healthcare=0.3615, Nature=0.4677, Sales=0.5540, Transport=0.4209, Web/CloudOps=0.4469. +- frequency skill: A=0.3484, D=0.4320, H=0.3875, M=0.1537, Q=0.1444, S=0.2887, T=0.3679, W=0.2592. +- variates skill: multivariate=0.3695, univariate=0.3552. +- Outcome: Recent normalization main0.375806/earlier0.335105/0.361614; full-normalization8192 main0.375118/earlier0.335778/0.361619;4096control main0.375764/earlier0.335548/0.359190. Temporal tradeoff, no single-member publication. Test complementary equal ensemble with E76 as declared E81. + +E81 main: {"composition": "equal quantile mean after each member applies its own fixed rules", "skill_score": 0.3792404374337234, "rel_mase_gmean": 0.7413362113099933, "rel_wql_gmean": 0.5197944315124549, "groups": {"term": {"short": 0.3580501678473965, "medium": 0.4075051608812147, "long": 0.40436165270683755}, "domain": {"Econ/Fin": 0.14514965737880325, "Energy": 0.23693703384364162, "Healthcare": 0.4508892358362413, "Nature": 0.43068317186356664, "Sales": 0.3372290847442204, "Transport": 0.46921029381701185, "Web/CloudOps": 0.5049832577126345}, "freq": {"A-DEC": 0.3741084316720569, "Q-DEC": 0.2032048606604645, "M": 0.09063626527124269, "W-SUN": 0.11024985736894433, "D": 0.35966521985300126, "H": 0.39764382964309264, "15T": 0.21216406035245483, "W-FRI": -0.006517286299776881, "10T": 0.6144670200764979, "W-TUE": 0.5505379760713061, "W-THU": 0.20290227669295913, "W-WED": 0.3148429295780334, "5T": 0.5200294927472697, "10S": 0.42580083885860065}}, "cpu_seconds": 1.3077636559028178, "members": ["/workspace/research/evals/slow_ar_delta6k", "/workspace/research/evals/recent_normalization_recovery_ema12000"], "selection_only": true} + +E81 backcast: {"composition": "equal quantile mean after each member applies its own fixed rules", "skill_score": 0.3372609628923202, "rel_mase_gmean": 0.7949387478174683, "rel_wql_gmean": 0.5525243706037937, "groups": {"term": {"short": 0.30267748548708406, "medium": 0.3587870572492281, "long": 0.4004504376989413}, "domain": {"Econ/Fin": 0.16791580188275335, "Energy": 0.2249147271500851, "Healthcare": 0.41565091499514417, "Nature": 0.36337531871749584, "Sales": 0.3953576986774914, "Transport": 0.37558039099633533, "Web/CloudOps": 0.45422426929296467}, "freq": {"A-DEC": 0.3198896505754395, "Q-DEC": 0.2324966250821987, "M": 0.1868807358115966, "W-SUN": 0.05675657061089712, "D": 0.35253814976953, "H": 0.3643205260222693, "15T": 0.2214260132321374, "W-FRI": 0.25870400902354673, "10T": 0.32373236597235966, "W-TUE": 0.534873854215015, "W-THU": 0.23833675077582528, "W-WED": 0.34309889609685684, "5T": 0.44852116184278545, "10S": 0.34093317446682636}}, "cpu_seconds": 0.9129793490283191, "members": ["/workspace/research/backcast_evals/slow_ar_delta6k", "/workspace/research/backcast_evals/recent_normalization_recovery_ema12000"], "selection_only": true} + +E81 backcast2: {"composition": "equal quantile mean after each member applies its own fixed rules", "skill_score": 0.36253066634723885, "rel_mase_gmean": 0.7663699578325764, "rel_wql_gmean": 0.5302493230514544, "groups": {"term": {"short": 0.3479807306166687, "medium": 0.39255912185019026, "long": 0.3693846383480154}, "domain": {"Econ/Fin": 0.1149608358698847, "Energy": 0.23668310113177404, "Healthcare": 0.35088547046370666, "Nature": 0.47069187269468127, "Sales": 0.5515284168852219, "Transport": 0.42149224872299274, "Web/CloudOps": 0.44469672192663035}, "freq": {"A-DEC": 0.3516200787127538, "Q-DEC": 0.14815814613753098, "M": 0.1464874832493296, "W-SUN": 0.06348262953040695, "D": 0.4307487103712574, "H": 0.3906466140437964, "15T": 0.10333300498128906, "W-FRI": 0.155407323458577, "10T": 0.5012397694349602, "W-TUE": 0.09030520980227696, "W-THU": 0.32093855640615543, "W-WED": 0.5365268550523004, "5T": 0.4842228628098807, "10S": 0.2879093531003366}}, "cpu_seconds": 0.9467690440360457, "members": ["/workspace/research/backcast2_evals/slow_ar_delta6k", "/workspace/research/backcast2_evals/recent_normalization_recovery_ema12000"], "selection_only": true} + +E81 actual candidate hash500fdde392c269ef1a6830477580bc7890b711824097ac711885bf0220e657cb,73,598,528parameters, contains original4096 E76 and recent-normalized8192 E65. Full package replay and relocation verification started. Candidate-only, submission unchanged. + +## E71 patch8 at3000 +- Checkpoint SHA-256: `5be1ccd5e5539619e4f5ff221a4088437e7267ceb34928015a0348187e4a575e`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 28.875902891159058 seconds. +- Overall skill 0.378312; relative MASE 0.744947; relative WQL 0.518823. +- term skill: long=0.4027, medium=0.4023, short=0.3592. +- domain skill: Econ/Fin=0.1391, Energy=0.2401, Healthcare=0.4515, Nature=0.4387, Sales=0.3471, Transport=0.4584, Web/CloudOps=0.4997. +- frequency skill: A=0.3807, D=0.3546, H=0.3955, M=0.0952, Q=0.1935, S=0.4235, T=0.4386, W=0.2325. +- variates skill: multivariate=0.3942, univariate=0.3653. +- Outcome: Seed197, interrupted then full-state resumed at2000. Main0.378312 essentially matches E67paired16-point3000 at0.378318. Continue to6000; no publication on this near tie. + +Recovery-frequency change verified on the tiny permitted-data fixture: { "maximum_model_difference": 1.5543122344752192e-15, "maximum_ema_difference": 3.0531133177191805e-16, "batch_rng_equal": true, "sampler_rng_equal": true, "seconds": 29.735046536196023, "selection_checkpoint_every": 4, "recovery_checkpoint_every": 2, "fixture_only": true }; increasing recovery-state saves preserves the sampler stream and model/EMA up to measured GPU roundoff. Newly launched jobs default to complete-state saves every250steps, while selection weights remain every1000. Already-running processes retain their original code/schedule. + +## E82 final slow-AR correction transfer — predeclared comparison +When E61 completes12000, replace the6000-step correction with its12000-step counterpart: E67paired3000 + E61slowAR12000 - E42partial12000, coefficient1.0, confidence-only tensor retained from base. This is the already-planned final matched comparison, not addition on top of E76. No coefficient sweep or further training. Check all four screening cutoffs, then full public package only if justified. slow_ar_final_comparison.py executes the fixed composition and screens after the atomic EMA exists. + +## E81 equal long-history ensemble full package +- Checkpoint SHA-256: `500fdde392c269ef1a6830477580bc7890b711824097ac711885bf0220e657cb`. +- Evaluation: 97 configurations, 151170 instances, 0 failed configurations; not separately timed seconds. +- Overall skill 0.375233; relative MASE 0.744322; relative WQL 0.524415. +- term skill: long=0.3984, medium=0.4064, short=0.3536. +- domain skill: Econ/Fin=0.1215, Energy=0.2298, Healthcare=0.4558, Nature=0.4307, Sales=0.3504, Transport=0.4695, Web/CloudOps=0.4976. +- frequency skill: A=0.2913, D=0.3631, H=0.3929, M=0.1149, Q=0.1839, S=0.4258, T=0.4330, W=0.2096. +- variates skill: multivariate=0.3929, univariate=0.3608. +- Outcome: Reject for publication: full0.375233 is below selected E76 0.375612, despite first/second-earlier gains. All97configs/151170instances valid, zero crossings. Public inference213.940586s on shared H100. No coefficient sweep; retain singleton E76. + +volatility_synth started 2026-10-23T02:55:46.196186+00:00 after long_memory_synth_recovery completed. Original predeclared settings and seed retained. + +## E75 corrected postloss first1000 +- Checkpoint SHA-256: `d33a29e773434d2f0faf2bc85b73151354dcb98bedc83f28c44e776835310afa`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 22.844736576080322 seconds. +- Overall skill 0.376671; relative MASE 0.745163; relative WQL 0.521416. +- term skill: long=0.3992, medium=0.4062, short=0.3560. +- domain skill: Econ/Fin=0.1257, Energy=0.2385, Healthcare=0.4569, Nature=0.4304, Sales=0.3363, Transport=0.4666, Web/CloudOps=0.4975. +- frequency skill: A=0.3694, D=0.3556, H=0.3962, M=0.0824, Q=0.1976, S=0.4232, T=0.4357, W=0.2250. +- variates skill: multivariate=0.3926, univariate=0.3637. +- Outcome: Finite training after the verified normalization fallback. Main0.376671 is slightly below E67paired1000 at0.376860; continue to3000/6000, with newly queued overflow-only E80 control needed to isolate the objective. + +paired_long_memory started 2026-10-23T02:56:31.210459+00:00 after wide_capacity_control_recovery completed. Original predeclared settings and seed retained. + +## E61 slowAR final12000 +- Checkpoint SHA-256: `c27613689514c4d0cd008f3f5e6bf35a14d2ff170c3786820981e52c373de10e`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 23.156561374664307 seconds. +- Overall skill 0.362914; relative MASE 0.759071; relative WQL 0.534704. +- term skill: long=0.3926, medium=0.4046, short=0.3342. +- domain skill: Econ/Fin=0.1187, Energy=0.1874, Healthcare=0.4331, Nature=0.4271, Sales=0.3429, Transport=0.4595, Web/CloudOps=0.5091. +- frequency skill: A=0.3722, D=0.3472, H=0.3824, M=0.1132, Q=0.2021, S=0.4423, T=0.4070, W=0.2137. +- variates skill: multivariate=0.3958, univariate=0.3355. +- Outcome: Seed79; main0.362914 improves matched E42partial12000 at0.361108. Completed final resumed phase569.4896 training-loop seconds; prior interrupted phase logs retained. E82 transfers the final matched correction to selected paired3000, compared with the already published6000 correction. + +E75 overflow source replay identifies bitcoin_with_missing (seed197,step53,row37), with daily periods7/365 and observed values from6.0e11 to2.28e18. These scales can be legitimate crypto quantities; no data-cleaning or filtering rule is inferred. Source diagnostic0.9295CPU seconds, no optimizer updates. The numerical fallback addresses the representation range. + +E81 relocated package checks passed: three example configurations bitwise equal, finite and monotone,21.2942s. Third-earlier cached ensemble0.389488 slightly exceeds E76 0.389281, but main/full remain lower, so the publication decision remains rejection. The long-history member alone scores0.386764 at this third cutoff. + +## E58/E66 recovered37M control final32000 +- Checkpoint SHA-256: `570983ddd4f6d8e136906f1669798d938ecd93738da55f624afc5b25606249bb`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 26.769165754318237 seconds. +- Overall skill 0.375305; relative MASE 0.746308; relative WQL 0.522900. +- term skill: long=0.3997, medium=0.4059, short=0.3535. +- domain skill: Econ/Fin=0.1400, Energy=0.2324, Healthcare=0.4362, Nature=0.4284, Sales=0.3384, Transport=0.4676, Web/CloudOps=0.5011. +- frequency skill: A=0.3825, D=0.3508, H=0.3940, M=0.0846, Q=0.2029, S=0.4232, T=0.4370, W=0.2159. +- variates skill: multivariate=0.3936, univariate=0.3604. +- Outcome: Final0.375305 below E47parent0.375793 and own24000 at0.375681. Final resumed phase616.7562 training-loop seconds; prior phase logs retained. No publication. Its allocation now trains E77pairedslowAR. + +E61 final12k EMA hashc27613689514c4d0cd008f3f5e6bf35a14d2ff170c3786820981e52c373de10e. Last resumed phase569.4895656s; phase2 reached10850 in767.8s, phase1 reached8450 in3037.0s, original pre-recovery attempt reached2150 in542.2s. These are overlapping process elapsed times, with discarded unsaved updates counted as spent compute; not exclusive GPU seconds. E65 final resumed phase708.0175s, prior phases3034.3s and71.8s. + +## E82 slowAR final correction evals +- Checkpoint SHA-256: `f74bea6307738c331bd53618fde99f32238a72a0a85beb941f51446054e95c4c`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 23.064879655838013 seconds. +- Overall skill 0.379181; relative MASE 0.741695; relative WQL 0.519643. +- term skill: long=0.4028, medium=0.4057, short=0.3593. +- domain skill: Econ/Fin=0.1465, Energy=0.2342, Healthcare=0.4607, Nature=0.4319, Sales=0.3354, Transport=0.4660, Web/CloudOps=0.5068. +- frequency skill: A=0.3720, D=0.3593, H=0.3969, M=0.1007, Q=0.1994, S=0.4227, T=0.4390, W=0.2245. +- variates skill: multivariate=0.3977, univariate=0.3640. +- Outcome: Reject replacement of E76: final correction main0.379181/earlier0.336511/0.360111 loses three screens to6000 correction0.379721/0.336781/0.360577. Third-earlier improves0.389784 versus0.389281. Fixed coefficient1; no further sweep or full replay justified by this tradeoff. Retain E76. + +## E82 slowAR final correction backcast_evals +- Checkpoint SHA-256: `f74bea6307738c331bd53618fde99f32238a72a0a85beb941f51446054e95c4c`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 24.045677423477173 seconds. +- Overall skill 0.336511; relative MASE 0.796069; relative WQL 0.552989. +- term skill: long=0.3975, medium=0.3593, short=0.3024. +- domain skill: Econ/Fin=0.1707, Energy=0.2251, Healthcare=0.4072, Nature=0.3664, Sales=0.3935, Transport=0.3727, Web/CloudOps=0.4527. +- frequency skill: A=0.3195, D=0.3490, H=0.3653, M=0.1930, Q=0.2358, S=0.3419, T=0.3374, W=0.2844. +- variates skill: multivariate=0.3537, univariate=0.3225. +- Outcome: Reject replacement of E76: final correction main0.379181/earlier0.336511/0.360111 loses three screens to6000 correction0.379721/0.336781/0.360577. Third-earlier improves0.389784 versus0.389281. Fixed coefficient1; no further sweep or full replay justified by this tradeoff. Retain E76. + +## E82 slowAR final correction backcast2_evals +- Checkpoint SHA-256: `f74bea6307738c331bd53618fde99f32238a72a0a85beb941f51446054e95c4c`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 23.12555480003357 seconds. +- Overall skill 0.360111; relative MASE 0.768417; relative WQL 0.532858. +- term skill: long=0.3671, medium=0.3887, short=0.3461. +- domain skill: Econ/Fin=0.1203, Energy=0.2346, Healthcare=0.3518, Nature=0.4695, Sales=0.5471, Transport=0.4199, Web/CloudOps=0.4385. +- frequency skill: A=0.3524, D=0.4264, H=0.3900, M=0.1434, Q=0.1516, S=0.2859, T=0.3636, W=0.2642. +- variates skill: multivariate=0.3674, univariate=0.3541. +- Outcome: Reject replacement of E76: final correction main0.379181/earlier0.336511/0.360111 loses three screens to6000 correction0.379721/0.336781/0.360577. Third-earlier improves0.389784 versus0.389281. Fixed coefficient1; no further sweep or full replay justified by this tradeoff. Retain E76. + +## E82 slowAR final correction backcast3_evals +- Checkpoint SHA-256: `f74bea6307738c331bd53618fde99f32238a72a0a85beb941f51446054e95c4c`. +- Evaluation: 93 configurations, 8812 instances, 0 failed configurations; 23.64928960800171 seconds. +- Overall skill 0.389784; relative MASE 0.736377; relative WQL 0.505671. +- term skill: long=0.3953, medium=0.3617, short=0.3980. +- domain skill: Econ/Fin=0.1860, Energy=0.3200, Healthcare=0.2362, Nature=0.5068, Sales=0.3992, Transport=0.5052, Web/CloudOps=0.3945. +- frequency skill: A=0.3688, D=0.4453, H=0.4034, M=0.1130, Q=0.2642, S=0.2924, T=0.4309, W=0.2637. +- variates skill: multivariate=0.3749, univariate=0.4013. +- Outcome: Reject replacement of E76: final correction main0.379181/earlier0.336511/0.360111 loses three screens to6000 correction0.379721/0.336781/0.360577. Third-earlier improves0.389784 versus0.389281. Fixed coefficient1; no further sweep or full replay justified by this tradeoff. Retain E76. + +E82 composition receipt: {"method": "matched training delta", "formula": "base + candidate - control", "coefficient": 1.0, "parent_hashes": {"/workspace/research/runs/full_paired_candidate/ema003000.pt": "2a19ebe0d41c1a18feaba318041795be4d268ce890162a5035e6fc6bf1844238", "/workspace/research/runs/long_memory_synth_recovery/ema012000.pt": "c27613689514c4d0cd008f3f5e6bf35a14d2ff170c3786820981e52c373de10e", "/workspace/research/runs/partial_targets/ema012000.pt": "a0ef29e85d0cf01677a6a58e4a9f91b077073c4af95f85234eec2ddc223f4837"}, "seconds": 1.2579920410644263} + +## E61 slowAR final12k backcast_evals +- Checkpoint SHA-256: `c27613689514c4d0cd008f3f5e6bf35a14d2ff170c3786820981e52c373de10e`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 23.161132097244263 seconds. +- Overall skill 0.332462; relative MASE 0.802575; relative WQL 0.555221. +- term skill: long=0.3889, medium=0.3582, short=0.2991. +- domain skill: Econ/Fin=0.1592, Energy=0.2274, Healthcare=0.4159, Nature=0.3553, Sales=0.3990, Transport=0.3647, Web/CloudOps=0.4455. +- frequency skill: A=0.3164, D=0.3542, H=0.3581, M=0.1781, Q=0.2386, S=0.3429, T=0.3325, W=0.2793. +- variates skill: multivariate=0.3483, univariate=0.3196. +- Outcome: Final direct slow-AR improves E42partial12k on both earlier cutoffs:0.332462 versus0.331074 and0.354079 versus0.353096. Matched synthetic-prior benefit survives the full schedule, while transferring its final delta is weaker than transferring6000 at the selected backbone. + +## E61 slowAR final12k backcast2_evals +- Checkpoint SHA-256: `c27613689514c4d0cd008f3f5e6bf35a14d2ff170c3786820981e52c373de10e`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 22.80446219444275 seconds. +- Overall skill 0.354079; relative MASE 0.774604; relative WQL 0.538615. +- term skill: long=0.3715, medium=0.3752, short=0.3393. +- domain skill: Econ/Fin=0.1039, Energy=0.2274, Healthcare=0.3615, Nature=0.4600, Sales=0.5536, Transport=0.4138, Web/CloudOps=0.4332. +- frequency skill: A=0.3506, D=0.4274, H=0.3872, M=0.1661, Q=0.1581, S=0.2852, T=0.3480, W=0.2482. +- variates skill: multivariate=0.3615, univariate=0.3480. +- Outcome: Final direct slow-AR improves E42partial12k on both earlier cutoffs:0.332462 versus0.331074 and0.354079 versus0.353096. Matched synthetic-prior benefit survives the full schedule, while transferring its final delta is weaker than transferring6000 at the selected backbone. + +E73 usage diagnostic on8allowed-corpus windows,seed337,C512,H128,5.8388CPU seconds,0optimizer updates: initial added-head contribution is zero; atEMA2000 its output RMS is0.00924times the inherited head contribution. Cross-stream query-weight norm rises from0 to0.01672times within-stream norm; head-input streams remain distinct (relative RMS difference1.4274). Distinct features are being used, but this alone does not establish validation improvement. Full receipt wide_graft_usage2k.json includes hashes. + +## E75 corrected postloss3000 +- Checkpoint SHA-256: `82c785d40998e155a20290c9965c346c26cd397fa0f3cf36278377ad2aed5c7d`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 24.580218076705933 seconds. +- Overall skill 0.378814; relative MASE 0.742602; relative WQL 0.519622. +- term skill: long=0.4027, medium=0.4070, short=0.3582. +- domain skill: Econ/Fin=0.1222, Energy=0.2441, Healthcare=0.4509, Nature=0.4321, Sales=0.3355, Transport=0.4650, Web/CloudOps=0.5021. +- frequency skill: A=0.3710, D=0.3521, H=0.4006, M=0.0768, Q=0.1947, S=0.4220, T=0.4401, W=0.2249. +- variates skill: multivariate=0.3963, univariate=0.3645. +- Outcome: Main0.378814 exceeds original E67paired3000 at0.378318, but remains below selected E76 at0.379721. Check earlier cutoffs; numerical-only control E80 remains queued, so causal attribution to postprocessing loss is provisional. + +## E83 combine postprocessing-aware3000 with the selected slow-AR6000 correction +E75 improves the original paired3000 main screen, while E76 demonstrates that the matched slow-AR6000 correction transfers across cutoffs. Test a fixed composition: E75postloss3000 + E61slowAR6000 - E42partial6000. Keep E75 confidence parameters, its verified overflow fallback and all inference rules. Coefficient1.0, no sweep; evaluate all four screening cutoffs before full replay/publication. This is a predictive composition test; E80 is still needed to separate the numerical correction from the postprocessing-aware loss. No additional training or validation gradients. + +## E77 pairedslowAR first1000 +- Checkpoint SHA-256: `278af3b837eee9032d80e20e70dc9155bd1f272983232826f16ff9df95547846`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 24.467870473861694 seconds. +- Overall skill 0.377046; relative MASE 0.744404; relative WQL 0.521319. +- term skill: long=0.3994, medium=0.4062, short=0.3566. +- domain skill: Econ/Fin=0.1382, Energy=0.2363, Healthcare=0.4530, Nature=0.4321, Sales=0.3345, Transport=0.4673, Web/CloudOps=0.4987. +- frequency skill: A=0.3685, D=0.3562, H=0.3951, M=0.1012, Q=0.1989, S=0.4234, T=0.4360, W=0.2232. +- variates skill: multivariate=0.3931, univariate=0.3639. +- Outcome: Seed197/B64/LR2e-5; main0.377046 slightly exceeds original paired1000 at0.376860. Early checkpoint only; continue matched3000/6000/12000 comparison. + +## E75 postloss3000 backcast_evals +- Checkpoint SHA-256: `82c785d40998e155a20290c9965c346c26cd397fa0f3cf36278377ad2aed5c7d`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 24.485270261764526 seconds. +- Overall skill 0.333947; relative MASE 0.800204; relative WQL 0.554393. +- term skill: long=0.3971, medium=0.3587, short=0.2981. +- domain skill: Econ/Fin=0.1484, Energy=0.2303, Healthcare=0.3976, Nature=0.3612, Sales=0.3967, Transport=0.3722, Web/CloudOps=0.4461. +- frequency skill: A=0.3136, D=0.3467, H=0.3696, M=0.1659, Q=0.2280, S=0.3365, T=0.3319, W=0.2801. +- variates skill: multivariate=0.3510, univariate=0.3200. +- Outcome: Both earlier cutoffs regress against original E67paired3000:0.333947 versus0.335739 and0.357605 versus0.358235, exceeding the main gain. Prune corrected postloss continuation, preserve complete recovery and checkpoints, and release its allocation to E78multiscale. E83 composition screening continues; E80 numerical-only control remains needed for attribution. + +## E75 postloss3000 backcast2_evals +- Checkpoint SHA-256: `82c785d40998e155a20290c9965c346c26cd397fa0f3cf36278377ad2aed5c7d`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 23.475824117660522 seconds. +- Overall skill 0.357605; relative MASE 0.772196; relative WQL 0.534413. +- term skill: long=0.3631, medium=0.3873, short=0.3437. +- domain skill: Econ/Fin=0.1041, Energy=0.2395, Healthcare=0.3227, Nature=0.4712, Sales=0.5519, Transport=0.4212, Web/CloudOps=0.4278. +- frequency skill: A=0.3532, D=0.4162, H=0.3932, M=0.1558, Q=0.1493, S=0.2753, T=0.3604, W=0.2566. +- variates skill: multivariate=0.3621, univariate=0.3540. +- Outcome: Both earlier cutoffs regress against original E67paired3000:0.333947 versus0.335739 and0.357605 versus0.358235, exceeding the main gain. Prune corrected postloss continuation, preserve complete recovery and checkpoints, and release its allocation to E78multiscale. E83 composition screening continues; E80 numerical-only control remains needed for attribution. + +multiscale_ar seed197 training started at 2026-10-23T03:01:47Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E75 stop receipt: {"experiment": "E75 corrected postloss stopped", "step": 3653, "checkpoint_sha256": "760314a6d65350417c4a58e32eb21cebaac953dc83820d300a4b6b24b0977cb1", "weights": "/workspace/research/runs/postloss/ema003653.pt", "recovery": "/workspace/research/runs/postloss/recovery.pt", "training_loop_final_record": {"completed_step": 3653, "training_process_loop_seconds": 799.9150489440653}, "process_receipt": {"command": ["python3", "/workspace/research/recovery/train.py", "--code-dir", "/workspace/research/postloss", "--packed", "/workspace/research/packed_sample", "--source-weights-from", "/workspace/research/packed_sample", "--out", "/workspace/research/runs/postloss", "--initialize-from", "/workspace/research/horizon_delta12k.pt", "--steps", "12000", "--batch", "64", "--lr", "2e-05", "--seed", "197", "--stop-file", "/workspace/research/postloss.stop", "--loss-mode", "paired"], "status": "complete", "pid": 1280, "log": "/workspace/research/postloss_recovery3.log", "started_utc": "2026-10-23T02:48:16Z", "note": "Restart own E62 initialization after verified float32 variance-overflow correction; original seed and recipe unchanged.", "returncode": 0, "process_seconds": 810.3138020890765}, "outcome": "Both earlier3000 cutoffs regress; E83 saved-checkpoint composition remains in screening, E80 numerical control queued."} + +## E83 postloss+slowAR evals +- Checkpoint SHA-256: `0ae7875b49b99a44c295dc2b8243327aeacadc25b2354988abb2c37250359a49`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 23.666229724884033 seconds. +- Overall skill 0.380251; relative MASE 0.741085; relative WQL 0.518280. +- term skill: long=0.4038, medium=0.4070, short=0.3603. +- domain skill: Econ/Fin=0.1348, Energy=0.2414, Healthcare=0.4552, Nature=0.4344, Sales=0.3382, Transport=0.4643, Web/CloudOps=0.5059. +- frequency skill: A=0.3743, D=0.3567, H=0.4003, M=0.0763, Q=0.1987, S=0.4254, T=0.4419, W=0.2242. +- variates skill: multivariate=0.3980, univariate=0.3658. +- Outcome: Main0.380251 improves selectedE76 0.379721, while all earlier scores0.335421/0.360099/0.389069 are below E76 0.336781/0.360577/0.389281. Complete public full validation to check whether the main gain extends beyond the capped screen; report the temporal regressions explicitly. No publication yet. + +## E83 postloss+slowAR backcast_evals +- Checkpoint SHA-256: `0ae7875b49b99a44c295dc2b8243327aeacadc25b2354988abb2c37250359a49`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 23.061537742614746 seconds. +- Overall skill 0.335421; relative MASE 0.797508; relative WQL 0.553807. +- term skill: long=0.3950, medium=0.3597, short=0.3013. +- domain skill: Econ/Fin=0.1640, Energy=0.2281, Healthcare=0.3974, Nature=0.3657, Sales=0.3962, Transport=0.3713, Web/CloudOps=0.4494. +- frequency skill: A=0.3211, D=0.3463, H=0.3688, M=0.1723, Q=0.2313, S=0.3404, T=0.3344, W=0.2853. +- variates skill: multivariate=0.3526, univariate=0.3214. +- Outcome: Main0.380251 improves selectedE76 0.379721, while all earlier scores0.335421/0.360099/0.389069 are below E76 0.336781/0.360577/0.389281. Complete public full validation to check whether the main gain extends beyond the capped screen; report the temporal regressions explicitly. No publication yet. + +## E83 postloss+slowAR backcast2_evals +- Checkpoint SHA-256: `0ae7875b49b99a44c295dc2b8243327aeacadc25b2354988abb2c37250359a49`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 23.91576099395752 seconds. +- Overall skill 0.360099; relative MASE 0.769700; relative WQL 0.531990. +- term skill: long=0.3671, medium=0.3869, short=0.3468. +- domain skill: Econ/Fin=0.1196, Energy=0.2390, Healthcare=0.3200, Nature=0.4758, Sales=0.5509, Transport=0.4203, Web/CloudOps=0.4338. +- frequency skill: A=0.3513, D=0.4228, H=0.3920, M=0.1454, Q=0.1495, S=0.2810, T=0.3646, W=0.2628. +- variates skill: multivariate=0.3658, univariate=0.3555. +- Outcome: Main0.380251 improves selectedE76 0.379721, while all earlier scores0.335421/0.360099/0.389069 are below E76 0.336781/0.360577/0.389281. Complete public full validation to check whether the main gain extends beyond the capped screen; report the temporal regressions explicitly. No publication yet. + +## E83 postloss+slowAR backcast3_evals +- Checkpoint SHA-256: `0ae7875b49b99a44c295dc2b8243327aeacadc25b2354988abb2c37250359a49`. +- Evaluation: 93 configurations, 8812 instances, 0 failed configurations; 23.31220841407776 seconds. +- Overall skill 0.389069; relative MASE 0.739022; relative WQL 0.505041. +- term skill: long=0.3936, medium=0.3628, short=0.3969. +- domain skill: Econ/Fin=0.1785, Energy=0.3245, Healthcare=0.2109, Nature=0.5039, Sales=0.4010, Transport=0.5082, Web/CloudOps=0.3908. +- frequency skill: A=0.3606, D=0.4409, H=0.4062, M=0.1151, Q=0.2596, S=0.2759, T=0.4323, W=0.2589. +- variates skill: multivariate=0.3734, univariate=0.4011. +- Outcome: Main0.380251 improves selectedE76 0.379721, while all earlier scores0.335421/0.360099/0.389069 are below E76 0.336781/0.360577/0.389281. Complete public full validation to check whether the main gain extends beyond the capped screen; report the temporal regressions explicitly. No publication yet. + +E83 CPU composition receipt: {"method": "matched training delta", "formula": "base + candidate - control", "coefficient": 1.0, "parent_hashes": {"/workspace/research/runs/postloss/ema003000.pt": "82c785d40998e155a20290c9965c346c26cd397fa0f3cf36278377ad2aed5c7d", "/workspace/research/runs/long_memory_synth_recovery/ema006000.pt": "fea5b5290a3a9be5618eaeaf67e918e4f677d5be908d562040ce4bdfeb549bd9", "/workspace/research/runs/partial_targets/ema006000.pt": "67562486b099a350da53c3caa5ff0932fe7fecdfe72c1879b064b2a9bb173dfb"}, "seconds": 1.0092943429481238} + +## E83 postprocessing-aware3000 plus slowAR6000 full public-package replay +- Checkpoint SHA-256: `0ae7875b49b99a44c295dc2b8243327aeacadc25b2354988abb2c37250359a49`. +- Evaluation: 97 configurations, 151170 instances, 0 failed configurations; not separately timed seconds. +- Overall skill 0.376131; relative MASE 0.743936; relative WQL 0.523180. +- term skill: long=0.3978, medium=0.4059, short=0.3557. +- domain skill: Econ/Fin=0.1127, Energy=0.2338, Healthcare=0.4604, Nature=0.4345, Sales=0.3517, Transport=0.4644, Web/CloudOps=0.4981. +- frequency skill: A=0.2909, D=0.3608, H=0.3952, M=0.1011, Q=0.1844, S=0.4254, T=0.4346, W=0.2165. +- variates skill: multivariate=0.3936, univariate=0.3619. +- Outcome: Publish as best full primary validation: skill0.376130733 versus E76 0.375612348; relMASE0.743936224 and relWQL0.523180415, 97 configurations/151170 instances, zero failures. Public inference120.396952s; independent relocation14.861885s gave bitwise equal finite ordered forecasts on three examples. All three earlier cutoffs regress versus E76, so this is a narrow primary-validation selection, not evidence of broad temporal improvement. Keep E76 as the more stable rollback. No training in this composition; coefficient1.0 fixed, source training seeds197/79; hashes and parent compute above. E80 numerical-only control remains queued. + +E83 descriptive cluster comparison: {"candidate": "/workspace/research/valid-report-postloss-slow-ar.json", "parent": "/workspace/research/valid-report-slow-ar-delta6k.json", "candidate_hash": "0ae7875b49b99a44c295dc2b8243327aeacadc25b2354988abb2c37250359a49", "parent_hash": "8562cb05319ed04fdd8544a1af80bf1688ba55284e59b4689aa646e34e38a105", "skill_difference": 0.0005183850211532004, "n_configs": 97, "n_dataset_clusters": 28, "improved_configs": 51, "bootstrap_seed": 317, "bootstrap_samples": 5000, "dataset_cluster_delta_percentiles": {"p025": -0.0027720070621055277, "p50": 0.0002985771391603165, "p975": 0.004193731829011101}, "note": "Descriptive resampling only. Adaptive validation selection and reused windows prevent treating this as a held-out significance test."} + +## E58/E66 recovered146M at global24000 +- Checkpoint SHA-256: `8f9a786a85c8fcd3d4aaba9e5651a68b6f2df74d5cdc0e30907a4293dd297492`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 37.02190327644348 seconds. +- Overall skill 0.375978; relative MASE 0.744657; relative WQL 0.522931. +- term skill: long=0.4006, medium=0.4073, short=0.3537. +- domain skill: Econ/Fin=0.1411, Energy=0.2353, Healthcare=0.4235, Nature=0.4300, Sales=0.3398, Transport=0.4674, Web/CloudOps=0.5021. +- frequency skill: A=0.3775, D=0.3521, H=0.3962, M=0.0785, Q=0.2030, S=0.4233, T=0.4372, W=0.2148. +- variates skill: multivariate=0.3957, univariate=0.3598. +- Outcome: Matched 37M control24000 is0.375680951 and original E47parent0.375792930. Widened model0.375977511 is modestly higher; continue planned32000, no publication against stronger E83. Seed113 then recovery reset179, batch96, baseLR3e-5; complete recovery retained. + +## E73 independent feature stream first4000 +- Checkpoint SHA-256: `c16f146c285d9e5c8c9ae60e54af3d9d1dae3f48e1cf2104e37676062df8ad5e`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 40.91307091712952 seconds. +- Overall skill 0.372085; relative MASE 0.750057; relative WQL 0.525664. +- term skill: long=0.3976, medium=0.4060, short=0.3484. +- domain skill: Econ/Fin=0.1401, Energy=0.2348, Healthcare=0.4070, Nature=0.4248, Sales=0.3416, Transport=0.4634, Web/CloudOps=0.4971. +- frequency skill: A=0.3733, D=0.3439, H=0.3937, M=0.0971, Q=0.1987, S=0.4185, T=0.4336, W=0.2014. +- variates skill: multivariate=0.3914, univariate=0.3563. +- Outcome: Main0.372084568 regresses versus own function-preserving initialization0.375792503 and original-width parent. New-stream usage was nonzero at2000; use planned8000 to distinguish transient feature learning from persistent degradation. Seed113/B96/LR3e-5, compiled static loss; no publication. + +## E78 multiscale AR first1000 +- Checkpoint SHA-256: `a3c57dba6318728692a87990bf652a9a8469fa4fb24bf925e79a6f72510936d3`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 24.617778062820435 seconds. +- Overall skill 0.377072; relative MASE 0.744319; relative WQL 0.521335. +- term skill: long=0.3993, medium=0.4061, short=0.3568. +- domain skill: Econ/Fin=0.1341, Energy=0.2362, Healthcare=0.4612, Nature=0.4310, Sales=0.3345, Transport=0.4671, Web/CloudOps=0.4985. +- frequency skill: A=0.3662, D=0.3563, H=0.3950, M=0.1046, Q=0.1987, S=0.4232, T=0.4355, W=0.2248. +- variates skill: multivariate=0.3928, univariate=0.3643. +- Outcome: Main0.377071682 is effectively tied with E77 single slowAR1000 at0.377046018 and above E67 original AR1000 at0.376859515. Early checkpoint, continue matched3000/6000/12000. Seed197, extraRNG700200, B64/LR2e-5, unchanged corpus and main/horizon RNG. + +## E84 daily and weekly aggregation of permitted real series +Hypothesis: the original two/four-fold aggregation rarely exposes coarse energy and other dynamics. On20% of real rows, independently consider a daily or weekly block average of the same allowed series at the original cutoff. Only exact integral frequency ratios are used; require8 context blocks and1 future block. Select equally among eligible daily/weekly choices. Finite-value averages use float64 sums and disjoint past/future blocks. Context and target can be shorter than requested and remain masked; periods become[7,365] or[52,1]. All original sampling/random draws and original local synthetic windows remain unchanged; extra RNGseed900200. Planned own E62 initialization, seed197, paired B64, LR2e-5/12000steps match E67. This tests coarser real-series augmentation, not additional external data. Queue after E77 to stay within one H100. +Training-only fixture: {"seed": 197, "aggregation_seed": 900200, "diagnostic_shapes_seed": 331, "cpu_seconds": 3.8464299628976732, "rows": 4096, "aggregated_rows": 459, "main_and_horizon_rng_matched": true, "nonaggregated_rows_bitwise_equal": true, "changing_future_does_not_change_context": true, "before_period_counts": {"(24, 168)": 932, "(1440, 10080)": 160, "(288, 2016)": 805, "(12, 1)": 214, "(48, 336)": 249, "(4, 1)": 235, "(7, 365)": 513, "(96, 672)": 244, "(52, 1)": 148, "(144, 1008)": 149, "(2, 91)": 5, "(1, 1)": 153, "(900, 21600)": 23, "(360, 8640)": 73, "(4, 28)": 54, "(12, 84)": 30, "(720, 5040)": 14, "(6, 42)": 24, "(360, 2520)": 7, "(450, 10800)": 3, "(72, 504)": 51, "(4, 182)": 6, "(36, 252)": 3, "(1, 7)": 1}, "after_period_counts": {"(52, 1)": 352, "(1440, 10080)": 131, "(288, 2016)": 692, "(12, 1)": 214, "(48, 336)": 231, "(4, 1)": 235, "(7, 365)": 704, "(96, 672)": 223, "(24, 168)": 778, "(1, 1)": 153, "(900, 21600)": 23, "(360, 8640)": 73, "(144, 1008)": 133, "(4, 28)": 38, "(12, 84)": 26, "(720, 5040)": 10, "(360, 2520)": 6, "(450, 10800)": 3, "(72, 504)": 41, "(2, 91)": 3, "(4, 182)": 6, "(36, 252)": 3, "(6, 42)": 17, "(1, 7)": 1}, "factor_counts": {"168": 73, "288": 97, "2016": 37, "7": 66, "1440": 26, "24": 90, "48": 14, "96": 20, "28": 12, "144": 4, "336": 6, "4": 4, "10080": 8, "1008": 1, "672": 1}, "aggregated_context_percentiles": [8.0, 48.0, 4096.0], "aggregated_target_percentiles": [1.0, 60.0, 1024.0], "optimizer_updates": 0} + +## E71 patch8 at6000 +- Checkpoint SHA-256: `308389b7217c080af9eb185559d4ee3cafa0f3e0f8c4dd8f5526b68198c89988`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 32.29093050956726 seconds. +- Overall skill 0.381179; relative MASE 0.741215; relative WQL 0.516638. +- term skill: long=0.4036, medium=0.4049, short=0.3630. +- domain skill: Econ/Fin=0.1328, Energy=0.2446, Healthcare=0.4760, Nature=0.4387, Sales=0.3481, Transport=0.4598, Web/CloudOps=0.5005. +- frequency skill: A=0.3764, D=0.3587, H=0.3961, M=0.1191, Q=0.1895, S=0.4235, T=0.4409, W=0.2396. +- variates skill: multivariate=0.3970, univariate=0.3683. +- Outcome: Main0.381178739 exceeds matched E67paired6000 0.378455389 and selected E83main0.380250568. Test all three earlier cutoffs and full public replay before publication. Architecture change only; seed197/B64/LR2e-5; checkpoints resumed with full optimizer and RNG state. + +## E77 paired slowAR at3000 +- Checkpoint SHA-256: `0691cb2a1f55203c949dcdd159bc9da17d56a3cccbba57fa2c61a9f74b769376`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 24.542114734649658 seconds. +- Overall skill 0.378238; relative MASE 0.743200; relative WQL 0.520166. +- term skill: long=0.4019, medium=0.4056, short=0.3580. +- domain skill: Econ/Fin=0.1408, Energy=0.2382, Healthcare=0.4444, Nature=0.4319, Sales=0.3325, Transport=0.4662, Web/CloudOps=0.5040. +- frequency skill: A=0.3686, D=0.3549, H=0.3971, M=0.0926, Q=0.1967, S=0.4234, T=0.4392, W=0.2222. +- variates skill: multivariate=0.3972, univariate=0.3627. +- Outcome: Main0.378238485 is slightly below original E67paired3000 0.378318033; continue planned6000 before choosing. Seed197/B64/LR2e-5, main and requested-horizon sampling matched. + +## E85 transfer the slow-AR correction to the finer-patch model +E71patch8 at6000 improves the main screen and first earlier cutoff. E76 previously showed a matched slow-AR6000 correction improves all four cutoffs on patch16. Test one fixed composition: patch8_6000 + fold16to8(slowAR6000 - partial6000), where the linear fold is exactly E71 initialization: sum projection halves, retain first8 output positions, other tensors unchanged. Confidence parameters remain those of patch8. This is a transfer hypothesis, not exact function preservation. Coefficient1 with no sweep, original inference rules, all four cutoffs before full replay/publication. No new optimizer updates or random draws; original training seeds197 and79. Script patch8_delta/merge.py and all parent hashes retained. + +## E86 learn the added feature stream while freezing inherited parameters — prepared +E73 at4000 underperforms its function-preserving starting model despite using the new stream. Hypothesis: a low-rate update of every parameter disturbs the mature function while learning the random additions too slowly. Reuse exactly E73 independent-stream initialization, but protect all36,800,800 inherited entries and train the109,676,544 new/cross-stream entries atLR2e-4 for8000steps. Original seed113/B96/source/context/horizon/loss unchanged. This changes trainable scope and learning rate together and is a method comparison, not a one-factor causal attribution. Gradient entries for protected blocks are zeroed before clipping; inherited values are restored after AdamW to cancel its weight decay. References reconstruct from the saved checkpoint on resume. All outputs still come from one146M model; inference has no adaptation or freezing machinery. Await E73next8000 before allocation. +Fixture on6 allowed-corpus windows, discarded copy only: {"cpu_seconds": 8.51362281711772, "seed": 347, "optimizer_updates_on_discarded_fixture_copy": 3, "allowed_corpus_windows": 6, "protected_parameters": 36800800, "trainable_parameters": 109676544, "all_inherited_parameters_bitwise_equal_to_parent": true, "recovery_reference_reconstruction_equal": true, "new_head_max_change": 0.0006009560311213136, "losses": [0.3154084384441376, 0.5418640375137329, 3.4678804874420166], "selection_checkpoint_written": false} + +## E71 patch8 at6000 first earlier +- Checkpoint SHA-256: `308389b7217c080af9eb185559d4ee3cafa0f3e0f8c4dd8f5526b68198c89988`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 31.848629474639893 seconds. +- Overall skill 0.337263; relative MASE 0.796725; relative WQL 0.551283. +- term skill: long=0.4004, medium=0.3547, short=0.3044. +- domain skill: Econ/Fin=0.1652, Energy=0.2281, Healthcare=0.4272, Nature=0.3699, Sales=0.4068, Transport=0.3692, Web/CloudOps=0.4462. +- frequency skill: A=0.3305, D=0.3545, H=0.3635, M=0.2050, Q=0.2352, S=0.3470, T=0.3351, W=0.2877. +- variates skill: multivariate=0.3553, univariate=0.3226. +- Outcome: Earlier skills0.337262777/0.360619944/0.384512704. First two exceed E83 and E76; third regresses materially against both, including E83 0.389069333. Record this temporal tradeoff. Full primary validation0.377160271 exceeds E83 0.376130733. + +## E71 patch8 at6000 second earlier +- Checkpoint SHA-256: `308389b7217c080af9eb185559d4ee3cafa0f3e0f8c4dd8f5526b68198c89988`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 30.961294412612915 seconds. +- Overall skill 0.360620; relative MASE 0.769294; relative WQL 0.531405. +- term skill: long=0.3643, medium=0.3909, short=0.3471. +- domain skill: Econ/Fin=0.1073, Energy=0.2373, Healthcare=0.3614, Nature=0.4729, Sales=0.5535, Transport=0.4233, Web/CloudOps=0.4312. +- frequency skill: A=0.3265, D=0.4302, H=0.3900, M=0.1513, Q=0.1529, S=0.2830, T=0.3613, W=0.2737. +- variates skill: multivariate=0.3599, univariate=0.3612. +- Outcome: Earlier skills0.337262777/0.360619944/0.384512704. First two exceed E83 and E76; third regresses materially against both, including E83 0.389069333. Record this temporal tradeoff. Full primary validation0.377160271 exceeds E83 0.376130733. + +## E71 patch8 at6000 third earlier +- Checkpoint SHA-256: `308389b7217c080af9eb185559d4ee3cafa0f3e0f8c4dd8f5526b68198c89988`. +- Evaluation: 93 configurations, 8812 instances, 0 failed configurations; 30.769143104553223 seconds. +- Overall skill 0.384513; relative MASE 0.743664; relative WQL 0.509403. +- term skill: long=0.3930, medium=0.3668, short=0.3880. +- domain skill: Econ/Fin=0.1775, Energy=0.3064, Healthcare=0.2392, Nature=0.5093, Sales=0.3974, Transport=0.5038, Web/CloudOps=0.3894. +- frequency skill: A=0.3445, D=0.4405, H=0.4005, M=0.1373, Q=0.2471, S=0.2972, T=0.4240, W=0.2382. +- variates skill: multivariate=0.3641, univariate=0.4002. +- Outcome: Earlier skills0.337262777/0.360619944/0.384512704. First two exceed E83 and E76; third regresses materially against both, including E83 0.389069333. Record this temporal tradeoff. Full primary validation0.377160271 exceeds E83 0.376130733. + +## E71 patch8 at6000 full public-package replay +- Checkpoint SHA-256: `308389b7217c080af9eb185559d4ee3cafa0f3e0f8c4dd8f5526b68198c89988`. +- Evaluation: 97 configurations, 151170 instances, 0 failed configurations; not separately timed seconds. +- Overall skill 0.377160; relative MASE 0.744341; relative WQL 0.521172. +- term skill: long=0.3977, medium=0.4038, short=0.3585. +- domain skill: Econ/Fin=0.1125, Energy=0.2381, Healthcare=0.4791, Nature=0.4387, Sales=0.3613, Transport=0.4600, Web/CloudOps=0.4920. +- frequency skill: A=0.2981, D=0.3626, H=0.3904, M=0.1423, Q=0.1804, S=0.4235, T=0.4341, W=0.2328. +- variates skill: multivariate=0.3923, univariate=0.3649. +- Outcome: Publish strongest full primary candidate: skill0.377160271, relMASE0.744340532 and relWQL0.521171845; 97 configurations/151170 instances and zero failures. Inference149.631765s under shared H100; relocation14.860671s, three configurations bitwise equal, finite and ordered. Earlier cutoffs1/2 improve but cutoff3 falls to0.384512704 from E83 0.389069333. This selection is based on primary full validation, with a material earlier-window tradeoff. Seed197/B64/LR2e-5; model36,665,488 parameters. Training continues to12000; E85slowAR transfer currently lowers main skill. + +E71 descriptive full comparison: {"candidate": "/workspace/research/valid-report-patch8-6k.json", "parent": "/workspace/research/valid-report-postloss-slow-ar.json", "candidate_hash": "308389b7217c080af9eb185559d4ee3cafa0f3e0f8c4dd8f5526b68198c89988", "parent_hash": "0ae7875b49b99a44c295dc2b8243327aeacadc25b2354988abb2c37250359a49", "skill_difference": 0.001029538022933929, "n_configs": 97, "n_dataset_clusters": 28, "improved_configs": 51, "bootstrap_seed": 317, "bootstrap_samples": 5000, "dataset_cluster_delta_percentiles": {"p025": -0.0037342410536253257, "p50": 0.0011012262742491896, "p975": 0.005930261648940039}, "note": "Descriptive resampling only. Adaptive validation selection and reused windows prevent treating this as a held-out significance test."} + +## E87 equal ensemble of postloss+slowAR and patch8_6000 +E71 improves full and first two earlier scores but regresses on the third. Its per-configuration differences against E83 run in both directions. Test a single predeclared equal average of their final quantiles, every member on every instance, to reduce these disagreements. No coefficient sweep or per-dataset rules; no additional training. Screen all four cutoffs with cached forecasts, then require a complete public-package replay if promising. Member hashes0ae7875b49b99a44c295dc2b8243327aeacadc25b2354988abb2c37250359a49 and308389b7217c080af9eb185559d4ee3cafa0f3e0f8c4dd8f5526b68198c89988. + +E87 cached valid_screen: {"composition": "equal quantile mean after each member applies its own fixed rules", "skill_score": 0.38368555666405846, "rel_mase_gmean": 0.7380746260326486, "rel_wql_gmean": 0.5146410398989778, "groups": {"term": {"short": 0.36538266249250273, "medium": 0.4082837973759923, "long": 0.4054283252594051}, "domain": {"Econ/Fin": 0.13784772212566998, "Energy": 0.24686600590076013, "Healthcare": 0.4744445530216731, "Nature": 0.43858582844670857, "Sales": 0.34499044135263635, "Transport": 0.4641713711179224, "Web/CloudOps": 0.504852655777996}, "freq": {"A-DEC": 0.37872174128763647, "Q-DEC": 0.19576783224250183, "M": 0.10352329460914667, "W-SUN": 0.0815487165237122, "D": 0.3619759620437517, "H": 0.40136898241411867, "15T": 0.21618729924976976, "W-FRI": 0.0005727425187482815, "10T": 0.6270627319464949, "W-TUE": 0.6195479435809044, "W-THU": 0.20656160899192244, "W-WED": 0.3284622519828829, "5T": 0.5178170596317864, "10S": 0.4250896621077831}}, "cpu_seconds": 0.8467225290369242, "members": ["/workspace/research/evals/postloss_slow_ar_delta6k", "/workspace/research/evals/patch8_ema6000"], "selection_only": true} + +E87 cached valid_backcast: {"composition": "equal quantile mean after each member applies its own fixed rules", "skill_score": 0.33897078175106665, "rel_mase_gmean": 0.7947425391953629, "rel_wql_gmean": 0.549812808335635, "groups": {"term": {"short": 0.30566345086890123, "medium": 0.3596853813715456, "long": 0.4000253823922667}, "domain": {"Econ/Fin": 0.16860733481230095, "Energy": 0.23127409233361262, "Healthcare": 0.41508771848830917, "Nature": 0.3697364579642294, "Sales": 0.40314036211800997, "Transport": 0.3731226096810256, "Web/CloudOps": 0.44992972632456585}, "freq": {"A-DEC": 0.32848231511958337, "Q-DEC": 0.23562309290129158, "M": 0.19041732638938724, "W-SUN": 0.025351943698138202, "D": 0.3534437856481293, "H": 0.3688302027123801, "15T": 0.22312808413257845, "W-FRI": 0.2396493514491056, "10T": 0.3237622247956604, "W-TUE": 0.5543034150109358, "W-THU": 0.2604484095221261, "W-WED": 0.35736004737028026, "5T": 0.4409641017446271, "10S": 0.3450492950879055}}, "cpu_seconds": 0.7932982260826975, "members": ["/workspace/research/backcast_evals/postloss_slow_ar_delta6k", "/workspace/research/backcast_evals/patch8_ema6000"], "selection_only": true} + +E87 cached valid_backcast2: {"composition": "equal quantile mean after each member applies its own fixed rules", "skill_score": 0.36315845377936284, "rel_mase_gmean": 0.7669826024462578, "rel_wql_gmean": 0.5287827307935709, "groups": {"term": {"short": 0.3500710560941004, "medium": 0.39152062222827344, "long": 0.36789234736191556}, "domain": {"Econ/Fin": 0.11764473029610945, "Energy": 0.2411172995160572, "Healthcare": 0.3456990033484809, "Nature": 0.4766227701429041, "Sales": 0.5542499449658524, "Transport": 0.4240681895536792, "Web/CloudOps": 0.43520532523252287}, "freq": {"A-DEC": 0.3426922609629939, "Q-DEC": 0.15231664461723582, "M": 0.15186824306557356, "W-SUN": 0.05088825731569291, "D": 0.4296455306851713, "H": 0.39379373998466227, "15T": 0.10856607437428756, "W-FRI": 0.14720063917754334, "10T": 0.5085351252790775, "W-TUE": 0.07220161720253104, "W-THU": 0.3450882445488662, "W-WED": 0.5601701661454508, "5T": 0.47180636145224786, "10S": 0.2848018841721206}}, "cpu_seconds": 0.8004084089770913, "members": ["/workspace/research/backcast2_evals/postloss_slow_ar_delta6k", "/workspace/research/backcast2_evals/patch8_ema6000"], "selection_only": true} + +E87 cached valid_backcast3: {"composition": "equal quantile mean after each member applies its own fixed rules", "skill_score": 0.3893067316884232, "rel_mase_gmean": 0.7388677045007551, "rel_wql_gmean": 0.5047537816165226, "groups": {"term": {"short": 0.3954965650939142, "medium": 0.3665319698411411, "long": 0.3951340525388045}, "domain": {"Econ/Fin": 0.18260879016430553, "Energy": 0.31821834617690903, "Healthcare": 0.23007490883688486, "Nature": 0.5085775372702099, "Sales": 0.40095301819850215, "Transport": 0.5083874509785007, "Web/CloudOps": 0.39193111101214995}, "freq": {"A-DEC": 0.3560016768547195, "Q-DEC": 0.2553722438340734, "M": 0.12861913252670398, "W-SUN": 0.15123578049216402, "D": 0.44398634475249976, "H": 0.40571804459976457, "15T": 0.25382261362712966, "W-FRI": 0.03470000993227129, "10T": 0.6063950584074473, "W-TUE": 0.24994144625076442, "W-THU": 0.35649129369337096, "W-WED": 0.3788996637883131, "5T": 0.4648714119960353, "10S": 0.2886025572123534}}, "cpu_seconds": 0.7890921849757433, "members": ["/workspace/research/backcast3_evals/postloss_slow_ar_delta6k", "/workspace/research/backcast3_evals/patch8_ema6000"], "selection_only": true} + +E87 cached equal ensemble improves all four cutoffs over both members:0.383686/0.338971/0.363158/0.389307. Assemble exact per-member model code and start full public-package validation. No coefficient search or new optimization. + +## E88 matched late slow-AR continuation of patch8 — prepared +E71patch8 improves primary validation, while mapping the E61slowAR weight correction onto it lowers the main screen. Test direct training instead: preserve E71 complete model/EMA/AdamW/RNG/prefetched-batch state exactly at8000, then continue to12000 with only the synthetic AR coefficient law changed fromU(.2,.995) toexp(-10**(-U(0,4))). Reuse the already verified E77 data implementation and E71 model. All corpus windows, signs, horizon prefixes, batch64, seed197, original LR2e-5 cosine schedule and optimizer state stay matched. The saved prefetched batch is consumed once unchanged, so the changed generator starts with the following batch. No new random initialization, external data or validation training. Queue after E69 volatility releases its memory. Compare the unchanged E71 final12000 and the candidate; screen9000/12000 and earlier cutoffs for promising results. + +## E85 patch8 slowAR correction evals +- Checkpoint SHA-256: `7047bf350ed55e595b47c5f8e0b1712429d049d00967b5b126d1cd039b1c7ba4`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 32.3618426322937 seconds. +- Overall skill 0.379635; relative MASE 0.743623; relative WQL 0.517537. +- term skill: long=0.4040, medium=0.4057, short=0.3597. +- domain skill: Econ/Fin=0.1422, Energy=0.2420, Healthcare=0.4441, Nature=0.4393, Sales=0.3494, Transport=0.4592, Web/CloudOps=0.5028. +- frequency skill: A=0.3775, D=0.3606, H=0.3953, M=0.0567, Q=0.1914, S=0.4261, T=0.4427, W=0.2368. +- variates skill: multivariate=0.3979, univariate=0.3647. +- Outcome: Reject for primary selection: patch8 slowAR transfer main0.379634840 is below patch8 parent0.381178739; earlier1/2 improve to0.339492623/0.363603669, but earlier3 slightly regresses to0.384319115 versus0.384512704. This transfer trades main performance for earlier1/2 and does not dominate. No full replay; E88 tests direct training on slowAR instead. Fixed coefficient1, CPU composition1.039392s, no optimization. + +## E85 patch8 slowAR correction backcast_evals +- Checkpoint SHA-256: `7047bf350ed55e595b47c5f8e0b1712429d049d00967b5b126d1cd039b1c7ba4`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 32.34789538383484 seconds. +- Overall skill 0.339493; relative MASE 0.792721; relative WQL 0.550345. +- term skill: long=0.4006, medium=0.3577, short=0.3072. +- domain skill: Econ/Fin=0.1745, Energy=0.2254, Healthcare=0.4254, Nature=0.3780, Sales=0.4071, Transport=0.3673, Web/CloudOps=0.4527. +- frequency skill: A=0.3339, D=0.3537, H=0.3634, M=0.2145, Q=0.2368, S=0.3480, T=0.3408, W=0.2893. +- variates skill: multivariate=0.3590, univariate=0.3235. +- Outcome: Reject for primary selection: patch8 slowAR transfer main0.379634840 is below patch8 parent0.381178739; earlier1/2 improve to0.339492623/0.363603669, but earlier3 slightly regresses to0.384319115 versus0.384512704. This transfer trades main performance for earlier1/2 and does not dominate. No full replay; E88 tests direct training on slowAR instead. Fixed coefficient1, CPU composition1.039392s, no optimization. + +## E85 patch8 slowAR correction backcast2_evals +- Checkpoint SHA-256: `7047bf350ed55e595b47c5f8e0b1712429d049d00967b5b126d1cd039b1c7ba4`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 31.240530729293823 seconds. +- Overall skill 0.363604; relative MASE 0.765287; relative WQL 0.529214. +- term skill: long=0.3689, medium=0.3919, short=0.3503. +- domain skill: Econ/Fin=0.1175, Energy=0.2366, Healthcare=0.3619, Nature=0.4770, Sales=0.5513, Transport=0.4209, Web/CloudOps=0.4416. +- frequency skill: A=0.3278, D=0.4365, H=0.3885, M=0.1369, Q=0.1530, S=0.2924, T=0.3673, W=0.2792. +- variates skill: multivariate=0.3657, univariate=0.3619. +- Outcome: Reject for primary selection: patch8 slowAR transfer main0.379634840 is below patch8 parent0.381178739; earlier1/2 improve to0.339492623/0.363603669, but earlier3 slightly regresses to0.384319115 versus0.384512704. This transfer trades main performance for earlier1/2 and does not dominate. No full replay; E88 tests direct training on slowAR instead. Fixed coefficient1, CPU composition1.039392s, no optimization. + +## E85 patch8 slowAR correction backcast3_evals +- Checkpoint SHA-256: `7047bf350ed55e595b47c5f8e0b1712429d049d00967b5b126d1cd039b1c7ba4`. +- Evaluation: 93 configurations, 8812 instances, 0 failed configurations; 30.950783491134644 seconds. +- Overall skill 0.384319; relative MASE 0.743701; relative WQL 0.509698. +- term skill: long=0.3926, medium=0.3666, short=0.3878. +- domain skill: Econ/Fin=0.1844, Energy=0.3057, Healthcare=0.2112, Nature=0.5108, Sales=0.3977, Transport=0.5024, Web/CloudOps=0.3936. +- frequency skill: A=0.3446, D=0.4387, H=0.3996, M=0.1104, Q=0.2522, S=0.2976, T=0.4263, W=0.2439. +- variates skill: multivariate=0.3656, univariate=0.3987. +- Outcome: Reject for primary selection: patch8 slowAR transfer main0.379634840 is below patch8 parent0.381178739; earlier1/2 improve to0.339492623/0.363603669, but earlier3 slightly regresses to0.384319115 versus0.384512704. This transfer trades main performance for earlier1/2 and does not dominate. No full replay; E88 tests direct training on slowAR instead. Fixed coefficient1, CPU composition1.039392s, no optimization. + +## E69 stochastic volatility first3000 +- Checkpoint SHA-256: `f68cd2d694ecf03ff038c6a2f49657eb2f211f213d68c7dec3ed5cc0c5592c5c`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 23.498825311660767 seconds. +- Overall skill 0.359482; relative MASE 0.763227; relative WQL 0.537539. +- term skill: long=0.3909, medium=0.4022, short=0.3296. +- domain skill: Econ/Fin=0.1126, Energy=0.1841, Healthcare=0.4243, Nature=0.4229, Sales=0.3462, Transport=0.4587, Web/CloudOps=0.5052. +- frequency skill: A=0.3751, D=0.3459, H=0.3825, M=0.1061, Q=0.1992, S=0.4403, T=0.3990, W=0.2102. +- variates skill: multivariate=0.3912, univariate=0.3331. +- Outcome: Main0.359481571 exceeds matched E42partial3000 0.358812323, while E61slowAR3000 was0.360587999. Continue6000 to assess persistence before transfer or earlier-window selection. Seed79/B256/LR5e-5, independent generatorRNG500082, same real windows. + +## E78 multiscale AR at3000 +- Checkpoint SHA-256: `185d1a3d5d32a3cad539fb3a83bf98ae06a56606a35bafaf8deecd75c8b496d1`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 24.39926815032959 seconds. +- Overall skill 0.378048; relative MASE 0.743609; relative WQL 0.520198. +- term skill: long=0.4028, medium=0.4059, short=0.3572. +- domain skill: Econ/Fin=0.1377, Energy=0.2383, Healthcare=0.4460, Nature=0.4316, Sales=0.3318, Transport=0.4664, Web/CloudOps=0.5035. +- frequency skill: A=0.3675, D=0.3526, H=0.3972, M=0.1004, Q=0.1981, S=0.4242, T=0.4386, W=0.2228. +- variates skill: multivariate=0.3966, univariate=0.3629. +- Outcome: Main0.378048480 is slightly below E77single slowAR3000 0.378238485 and E67original AR3000 0.378318033. Continue planned6000; no publication or evidence of a gain yet. Seed197/B64/LR2e-5, extraRNG700200, main/horizon draws matched. + +E85 exact composition receipt: { + "method": "matched training delta with fixed linear patch conversion", + "formula": "patch8_base + fold16to8(slowAR6000 - partial6000)", + "coefficient": 1.0, + "mapping": "sum input/query/recency halves; take first8 output positions; other tensors unchanged", + "exact_function_preservation": false, + "parent_hashes": { + "/workspace/research/runs/patch8/ema006000.pt": "308389b7217c080af9eb185559d4ee3cafa0f3e0f8c4dd8f5526b68198c89988", + "/workspace/research/runs/long_memory_synth_recovery/ema006000.pt": "fea5b5290a3a9be5618eaeaf67e918e4f677d5be908d562040ce4bdfeb549bd9", + "/workspace/research/runs/partial_targets/ema006000.pt": "67562486b099a350da53c3caa5ff0932fe7fecdfe72c1879b064b2a9bb173dfb" + }, + "seconds": 1.0393919900525361, + "checkpoint_sha256": "7047bf350ed55e595b47c5f8e0b1712429d049d00967b5b126d1cd039b1c7ba4", + "optimizer_updates": 0 +} + +Measured checkpoint compute through current selection milestones: +```json +{ + "E71 patch8 selected6000": { + "phase_log": "patch8_recovery3.log", + "checkpoint_loop_record": { + "step": 6000, + "loss": 0.27341755777597426, + "seconds": 1302.8, + "lr": 1.2000000000000002e-05, + "grad_norm": 0.12276209145784378, + "context": 2048, + "horizon": 512 + }, + "prior_interrupted_logged_seconds": { + "initial_unsaved_attempt": 63.0, + "recovery2_last_logged2700_resumed_from2000": 770.0 + }, + "total_logged_process_loop_seconds_including_repeated_work": 2135.8 + }, + "E58 recoveredwide24000": { + "phase_log": "wide_capacity_146m_recovery_recovery3.log", + "checkpoint_loop_record": { + "step": 24000, + "loss": 0.3451157429814339, + "seconds": 1117.3, + "lr": 9.51471862576143e-06, + "grad_norm": 0.31578314304351807, + "context": 2048, + "horizon": 1024 + } + }, + "E73 graft4000": { + "phase_log": "wide_graft_recovery3.log", + "checkpoint_loop_record": { + "step": 4000, + "loss": 0.34949749410152436, + "seconds": 1146.4, + "lr": 2.908655439013544e-05, + "grad_norm": 0.47331908345222473, + "context": 1024, + "horizon": 1024 + } + }, + "E69 volatility3000": { + "phase_log": "volatility_synth_recovery3.log", + "checkpoint_loop_record": { + "step": 3000, + "loss": 0.33109228551387787, + "seconds": 977.8, + "lr": 4.4142135623730954e-05, + "grad_norm": 0.13540834188461304, + "context": 2048, + "horizon": 1024 + } + }, + "E77 pairedslowAR3000": { + "phase_log": "paired_long_memory_recovery3.log", + "checkpoint_loop_record": { + "step": 3000, + "loss": 0.31684702143073085, + "seconds": 624.8, + "lr": 1.765685424949238e-05, + "grad_norm": 1.3133997917175293, + "context": 2048, + "horizon": 1024 + } + }, + "E78 multiscale3000": { + "phase_log": "multiscale_ar_train.log", + "checkpoint_loop_record": { + "step": 3000, + "loss": 0.3144953328371048, + "seconds": 637.3, + "lr": 1.765685424949238e-05, + "grad_norm": 1.2501322031021118, + "context": 2048, + "horizon": 1024 + } + }, + "note": "These are concurrent training-process loop measurements on the one H100, not exclusive GPU seconds. Prefix records exclude startup and may exclude unlogged tails before operator interruption. Earlier parent training is recorded separately in the lineage experiments." +} +``` + +E88 launcher correction: naming the launcher queue.py shadowed Python standard-library queue during Torch import, causing a circular-import failure before snapshotting or training. Renamed it launch.py and restarted while E71recovery8000 was still present. Also renamed the E84launcher to avoid the same import hazard in future sampler checks. Existing E84 queued process is unchanged. No optimizer updates or validation results were affected. + +E88 preserved complete exact8000 state: { + "snapshot": "/workspace/research/patch8_recovery008000.pt", + "step": 8000, + "sha256": "2fa4b6f18df4a5f2eed7e1bc153f8f5e3755584305569db42e047f3b1312f5d5", + "snapshot_process_seconds_including_wait": 2.3576558139175177, + "prefetched_batch_preserved": true +} + +## E87 equal patch16/patch8 ensemble complete public-package replay +- Checkpoint SHA-256: `65e5698c0ee4fe1e9ae0607db6ef56c573aa4b82ec009b63ea1a861e4aec741d`. +- Evaluation: 97 configurations, 151170 instances, 0 failed configurations; not separately timed seconds. +- Overall skill 0.379630; relative MASE 0.741025; relative WQL 0.519360. +- term skill: long=0.3995, medium=0.4072, short=0.3609. +- domain skill: Econ/Fin=0.1168, Energy=0.2399, Healthcare=0.4788, Nature=0.4386, Sales=0.3583, Transport=0.4643, Web/CloudOps=0.4967. +- frequency skill: A=0.2977, D=0.3660, H=0.3960, M=0.1275, Q=0.1843, S=0.4251, T=0.4366, W=0.2280. +- variates skill: multivariate=0.3954, univariate=0.3668. +- Outcome: Publish strongest replayable candidate: full skill0.379629893, relMASE0.741025239, relWQL0.519360272; 97 configurations/151170 instances, zero failures. Both members forecast every instance with fixed .5/.5 weights, total73,466,288 parameters. Full inference229.446591s on the shared H100, relocation22.524727s with bitwise-equal finite ordered forecasts on3 examples. Actual package quantiles are bitwise equal to the independent member average on electricity hourly short, solar minute short and ETT2hourly long. Cached diagnostic skill0.383685557/0.338970782/0.363158454/0.389306732 exceeds each member at all four cutoffs. No additional training or coefficient sweep; member training seeds/compute recorded above. + +E87 composition verification: { + "cpu_seconds": 0.016339811962097883, + "comparisons": [ + { + "config_id": "electricity__H__short", + "shape": [ + 370, + 1, + 9, + 48 + ], + "bitwise_equal_to_fixed_member_average": true, + "max_abs_difference": 0.0, + "max_scaled_difference": 0.0 + }, + { + "config_id": "solar__T__short", + "shape": [ + 137, + 1, + 9, + 48 + ], + "bitwise_equal_to_fixed_member_average": true, + "max_abs_difference": 0.0, + "max_scaled_difference": 0.0 + }, + { + "config_id": "ett2__H__long", + "shape": [ + 1, + 7, + 9, + 720 + ], + "bitwise_equal_to_fixed_member_average": true, + "max_abs_difference": 0.0, + "max_scaled_difference": 0.0 + } + ], + "no_new_inference_or_training": true +} + +E87 descriptive cluster comparison: {"candidate": "/workspace/research/valid-report-mixed-patch-ensemble.json", "parent": "/workspace/research/valid-report-patch8-6k.json", "candidate_hash": "65e5698c0ee4fe1e9ae0607db6ef56c573aa4b82ec009b63ea1a861e4aec741d", "parent_hash": "308389b7217c080af9eb185559d4ee3cafa0f3e0f8c4dd8f5526b68198c89988", "skill_difference": 0.002469622689308837, "n_configs": 97, "n_dataset_clusters": 28, "improved_configs": 53, "bootstrap_seed": 317, "bootstrap_samples": 5000, "dataset_cluster_delta_percentiles": {"p025": 0.0003627411169234291, "p50": 0.002411418344102745, "p975": 0.004671754347801495}, "note": "Descriptive resampling only. Adaptive validation selection and reused windows prevent treating this as a held-out significance test."} + +## E77 paired slowAR at6000 +- Checkpoint SHA-256: `d471571ef423a63db1ab1b70922d691c31df6099238b1d2e53cb0b48b343a353`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 24.37148094177246 seconds. +- Overall skill 0.378677; relative MASE 0.743065; relative WQL 0.519526. +- term skill: long=0.4020, medium=0.4060, short=0.3586. +- domain skill: Econ/Fin=0.1354, Energy=0.2384, Healthcare=0.4567, Nature=0.4305, Sales=0.3378, Transport=0.4664, Web/CloudOps=0.5036. +- frequency skill: A=0.3690, D=0.3556, H=0.3958, M=0.1000, Q=0.1944, S=0.4250, T=0.4395, W=0.2269. +- variates skill: multivariate=0.3981, univariate=0.3628. +- Outcome: Main0.378677489 modestly exceeds matched E67paired6000 0.378455389, after3000 was slightly behind. Continue planned12000 and check three earlier cutoffs; this remains below selected individual E71 and ensemble E87. Seed197/B64/LR2e-5, same real-window and requested-horizon RNG. + +## E73 independent stream at8000, prune continuation +- Checkpoint SHA-256: `c75d9f9ceae94e22370c2cc8ce4aac6ca83f5474d32e9ca3c571d5aa381d8d4a`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 41.07528495788574 seconds. +- Overall skill 0.373597; relative MASE 0.747769; relative WQL 0.524735. +- term skill: long=0.3982, medium=0.4061, short=0.3509. +- domain skill: Econ/Fin=0.1426, Energy=0.2349, Healthcare=0.4024, Nature=0.4298, Sales=0.3401, Transport=0.4643, Web/CloudOps=0.4998. +- frequency skill: A=0.3809, D=0.3443, H=0.3950, M=0.0990, Q=0.2037, S=0.4221, T=0.4345, W=0.2060. +- variates skill: multivariate=0.3921, univariate=0.3585. +- Outcome: Main0.373596872 recovers from4000 0.372084568 but remains below its function-preserving start0.375792503 and matched original-width parent. Prune after this second negative checkpoint to prioritize E86 frozen-inherited higher-rate training; this does not establish that further E73 training could never recover. Checkpoint8000 training loop2058.7s this recovery plus722.7s logged in the prior interrupted attempt; complete stop receipt follows. Seed113/B96/LR3e-5, compiled static loss; resetseed179 occurred at8001 while waiting for evaluation. + +E86 frozen inherited stream seed113 training started at 2026-10-23T03:23:23Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E73 stop receipt: {"experiment": "E73 stopped after negative8000", "final_loop": {"completed_step": 8683, "training_process_loop_seconds": 2219.4671748820692}, "checkpoint": "/workspace/research/runs/wide_graft/ema008683.pt", "sha256": "36c21e4662c5c6e07cd3c2a34ecba515bc986d29deaef5e1856e6950c30e7db7", "complete_recovery": "/workspace/research/runs/wide_graft/recovery.pt"} + +## E77 paired slowAR6000 backcast_evals +- Checkpoint SHA-256: `d471571ef423a63db1ab1b70922d691c31df6099238b1d2e53cb0b48b343a353`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 24.434251308441162 seconds. +- Overall skill 0.337098; relative MASE 0.795494; relative WQL 0.552410. +- term skill: long=0.3992, medium=0.3581, short=0.3032. +- domain skill: Econ/Fin=0.1599, Energy=0.2277, Healthcare=0.4115, Nature=0.3693, Sales=0.3963, Transport=0.3724, Web/CloudOps=0.4511. +- frequency skill: A=0.3147, D=0.3511, H=0.3673, M=0.1858, Q=0.2368, S=0.3433, T=0.3357, W=0.2891. +- variates skill: multivariate=0.3547, univariate=0.3227. +- Outcome: Earlier0.337098369/0.360407088/0.389754840 each exceeds matched E67paired6000 0.335118632/0.359446144/0.389533029, with main0.378677489 also above0.378455389. Supports slower synthetic AR dynamics in the actual paired objective. Continue12000 and queued E88 patch8 continuation; selected E87ensemble remains stronger on primary validation. + +## E77 paired slowAR6000 backcast2_evals +- Checkpoint SHA-256: `d471571ef423a63db1ab1b70922d691c31df6099238b1d2e53cb0b48b343a353`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 23.03375768661499 seconds. +- Overall skill 0.360407; relative MASE 0.768163; relative WQL 0.532542. +- term skill: long=0.3654, medium=0.3912, short=0.3462. +- domain skill: Econ/Fin=0.1057, Energy=0.2366, Healthcare=0.3597, Nature=0.4721, Sales=0.5486, Transport=0.4198, Web/CloudOps=0.4360. +- frequency skill: A=0.3457, D=0.4251, H=0.3918, M=0.1564, Q=0.1512, S=0.2811, T=0.3637, W=0.2618. +- variates skill: multivariate=0.3657, univariate=0.3561. +- Outcome: Earlier0.337098369/0.360407088/0.389754840 each exceeds matched E67paired6000 0.335118632/0.359446144/0.389533029, with main0.378677489 also above0.378455389. Supports slower synthetic AR dynamics in the actual paired objective. Continue12000 and queued E88 patch8 continuation; selected E87ensemble remains stronger on primary validation. + +## E77 paired slowAR6000 backcast3_evals +- Checkpoint SHA-256: `d471571ef423a63db1ab1b70922d691c31df6099238b1d2e53cb0b48b343a353`. +- Evaluation: 93 configurations, 8812 instances, 0 failed configurations; 21.342447519302368 seconds. +- Overall skill 0.389755; relative MASE 0.736028; relative WQL 0.505958. +- term skill: long=0.3958, medium=0.3615, short=0.3978. +- domain skill: Econ/Fin=0.1734, Energy=0.3172, Healthcare=0.2610, Nature=0.5086, Sales=0.3982, Transport=0.5051, Web/CloudOps=0.3947. +- frequency skill: A=0.3572, D=0.4437, H=0.4041, M=0.1316, Q=0.2594, S=0.2895, T=0.4297, W=0.2664. +- variates skill: multivariate=0.3731, univariate=0.4026. +- Outcome: Earlier0.337098369/0.360407088/0.389754840 each exceeds matched E67paired6000 0.335118632/0.359446144/0.389533029, with main0.378677489 also above0.378455389. Supports slower synthetic AR dynamics in the actual paired objective. Continue12000 and queued E88 patch8 continuation; selected E87ensemble remains stronger on primary validation. + +## E89 matched patch4 versus patch8 continuation — prepared +E71 finer patches improved primary full validation. Test another halving of patch length. Both arms initialize from own E71EMA6000, with candidate applying the same fixed linear fold8to4 and first4 output rows. Positions preserve physical time units. Candidate starts functionally different, so record its zero-step screen. Width512/heads8/6encoder/4decoder/context4096/horizon1024 unchanged. New matched sampling seed401, B32 distinct/64signed, paired loss, LR2e-5/12000steps and fresh AdamW/EMA. Both use original synthetic generator and the same source and horizon-prefix streams; horizon truncation remains rounded16 in both to isolate model patch length. Candidate versus control changes patch length, while comparisons against E71 are method selections with a new optimizer/batch/seed. Measure maximum-shape memory before queuing both arms after E78 and E86 release their allocations. Screen1000/3000/6000/12000; earlier windows and full package replay for promising candidates. No external data or weights. + +## E89 patch4 zero-step conversion +- Checkpoint SHA-256: `60a834e264452f3acddfdf191115c6af7ce6e972d959909bf701bac5517420ed`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 52.6757493019104 seconds. +- Overall skill 0.370553; relative MASE 0.752738; relative WQL 0.526349. +- term skill: long=0.3989, medium=0.3945, short=0.3498. +- domain skill: Econ/Fin=0.1324, Energy=0.2289, Healthcare=0.4183, Nature=0.4394, Sales=0.3492, Transport=0.4525, Web/CloudOps=0.4931. +- frequency skill: A=0.3342, D=0.3388, H=0.3842, M=0.1611, Q=0.1857, S=0.4158, T=0.4284, W=0.2377. +- variates skill: multivariate=0.3847, univariate=0.3590. +- Outcome: Initial screen0.370553128 is below source E71patch8_6000 0.381178739, as expected from a non-function-preserving patch fold. This is the baseline before new training, not an improvement. Candidate/control maximum-shape checks are finite and fit: reserved11376/6224MiB including EMA and AdamW moment storage. Both B32/seed401 arms are queued after E78 and E86. + +E89 patch4_initial.json: { + "method": "sum input/query/recency halves and keep first4 output rows; same physical position coordinates", + "exact_function_preservation": false, + "parent_sha256": "308389b7217c080af9eb185559d4ee3cafa0f3e0f8c4dd8f5526b68198c89988", + "checkpoint_sha256": "60a834e264452f3acddfdf191115c6af7ce6e972d959909bf701bac5517420ed", + "parameters": 36597832, + "cpu_seconds": 0.6177915919106454, + "optimizer_updates": 0 +} + +E89 patch4_memory_check.json: { + "seed": 401, + "batch": 32, + "signed_rows": 64, + "patch": 4, + "context": 4096, + "horizon": 1024, + "EMA_and_AdamW_moment_storage_present": true, + "optimizer_updates": 0, + "loss": 0.2863434851169586, + "seconds": 10.160149822942913, + "peak_allocated_mib": 10789.2275390625, + "peak_reserved_mib": 11376.0 +} + +E89 patch4_control_memory_check.json: { + "seed": 401, + "batch": 32, + "signed_rows": 64, + "patch": 8, + "context": 4096, + "horizon": 1024, + "EMA_and_AdamW_moment_storage_present": true, + "optimizer_updates": 0, + "loss": 0.30326029658317566, + "seconds": 10.05252459505573, + "peak_allocated_mib": 5778.71923828125, + "peak_reserved_mib": 6224.0 +} + +E89 candidate and control queued after PIDs2497(E78) and3946(E86), with their complete recovery files required; inferred total memory replaces those two allocations while preserving evaluation headroom. + +## E86 protected inherited stream first1000 +- Checkpoint SHA-256: `048d9f14388ad2409cd2a3f0b352d5fc1b8525f2e1e5e196707a36fe84a193bc`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 41.35012197494507 seconds. +- Overall skill 0.372364; relative MASE 0.749500; relative WQL 0.525586. +- term skill: long=0.3978, medium=0.4046, short=0.3494. +- domain skill: Econ/Fin=0.1443, Energy=0.2339, Healthcare=0.4085, Nature=0.4257, Sales=0.3367, Transport=0.4639, Web/CloudOps=0.4980. +- frequency skill: A=0.3876, D=0.3511, H=0.3944, M=0.0661, Q=0.1958, S=0.4208, T=0.4323, W=0.2051. +- variates skill: multivariate=0.3906, univariate=0.3575. +- Outcome: Main0.372363971 is below own initialization0.375792503. Higher-rate added/cross-stream learning still changes predictions despite protecting inherited tensors. Continue predeclared3000 comparison before deciding. Seed113/B96/LR2e-4, compiled loss, 36,800,800 inherited parameters protected and109,676,544 new/cross-stream parameters train. + +## E78 multiscale AR at6000 +- Checkpoint SHA-256: `d517ab35a8bdaeb1b0d14d4fb1879a984cedec0663bc09e3a602497facbcf473`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 21.888899564743042 seconds. +- Overall skill 0.378668; relative MASE 0.743166; relative WQL 0.519472. +- term skill: long=0.4027, medium=0.4063, short=0.3582. +- domain skill: Econ/Fin=0.1300, Energy=0.2384, Healthcare=0.4669, Nature=0.4301, Sales=0.3370, Transport=0.4663, Web/CloudOps=0.5026. +- frequency skill: A=0.3680, D=0.3559, H=0.3959, M=0.1037, Q=0.1941, S=0.4255, T=0.4387, W=0.2279. +- variates skill: multivariate=0.3972, univariate=0.3635. +- Outcome: Main0.378667589 is effectively tied with E77single slowAR6000 0.378677489; both slightly exceed original E67paired6000 0.378455389. No demonstrated gain from adding AR components. Continue planned12000 endpoint; no publication. + +## E69 stochastic volatility at6000 +- Checkpoint SHA-256: `1161e76a6d17ace780f0bf63d6961a2ea28a4036ee5a29ee78b9e9897e7661ee`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 23.00778031349182 seconds. +- Overall skill 0.359792; relative MASE 0.762404; relative WQL 0.537598. +- term skill: long=0.3895, medium=0.4029, short=0.3305. +- domain skill: Econ/Fin=0.1133, Energy=0.1860, Healthcare=0.4240, Nature=0.4263, Sales=0.3419, Transport=0.4578, Web/CloudOps=0.5034. +- frequency skill: A=0.3769, D=0.3446, H=0.3811, M=0.1104, Q=0.1982, S=0.4402, T=0.4011, W=0.2124. +- variates skill: multivariate=0.3908, univariate=0.3340. +- Outcome: Main0.359791528 exceeds matched E42partial6000 0.359221833; E61slowAR6000 remains stronger at0.361281186. Check the first two earlier cutoffs to decide whether the volatility gain generalizes. Seed79/B256/LR5e-5, extraRNG500082; full continuation is planned12000. + +E86 actual GPU-trained EMA1000 preservation audit: { + "checkpoint": "/workspace/research/runs/wide_graft_frozen/ema001000.pt", + "step": 1000, + "cpu_seconds": 1.7478242949582636, + "inherited_parameters": 36800800, + "inherited_bitwise_equal_to_E47": true, + "changed_added_or_cross_stream_parameters": 109676526, + "optimizer_updates": 0 +} + +## E69 volatility6000 backcast_evals +- Checkpoint SHA-256: `1161e76a6d17ace780f0bf63d6961a2ea28a4036ee5a29ee78b9e9897e7661ee`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 22.790717124938965 seconds. +- Overall skill 0.330896; relative MASE 0.805425; relative WQL 0.555856. +- term skill: long=0.3909, medium=0.3566, short=0.2960. +- domain skill: Econ/Fin=0.1469, Energy=0.2301, Healthcare=0.4125, Nature=0.3497, Sales=0.3988, Transport=0.3637, Web/CloudOps=0.4436. +- frequency skill: A=0.3198, D=0.3550, H=0.3590, M=0.1648, Q=0.2278, S=0.3421, T=0.3294, W=0.2744. +- variates skill: multivariate=0.3479, univariate=0.3170. +- Outcome: Main0.359791528 and earlier1 0.330895782 improve matched E42partial6000 0.359221833/0.330299984; earlier2 0.352505400 is below control0.352900879. Mixed temporal evidence, so no transfer or publication. Finish predeclared12000 before deciding; E88 remains queued after this allocation. + +## E69 volatility6000 backcast2_evals +- Checkpoint SHA-256: `1161e76a6d17ace780f0bf63d6961a2ea28a4036ee5a29ee78b9e9897e7661ee`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 22.497740983963013 seconds. +- Overall skill 0.352505; relative MASE 0.776021; relative WQL 0.540255. +- term skill: long=0.3678, medium=0.3769, short=0.3372. +- domain skill: Econ/Fin=0.0890, Energy=0.2282, Healthcare=0.3738, Nature=0.4582, Sales=0.5585, Transport=0.4133, Web/CloudOps=0.4263. +- frequency skill: A=0.3446, D=0.4275, H=0.3868, M=0.1756, Q=0.1499, S=0.2802, T=0.3442, W=0.2458. +- variates skill: multivariate=0.3580, univariate=0.3481. +- Outcome: Main0.359791528 and earlier1 0.330895782 improve matched E42partial6000 0.359221833/0.330299984; earlier2 0.352505400 is below control0.352900879. Mixed temporal evidence, so no transfer or publication. Finish predeclared12000 before deciding; E88 remains queued after this allocation. + +## E86 protected inherited stream at3000 +- Checkpoint SHA-256: `45ac18a80765f03bca329ccef8d4c81f39fae8cb3f555e4e261b9a38c5fd253f`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 41.0149462223053 seconds. +- Overall skill 0.373573; relative MASE 0.748714; relative WQL 0.524113. +- term skill: long=0.3985, medium=0.4063, short=0.3506. +- domain skill: Econ/Fin=0.1401, Energy=0.2337, Healthcare=0.4215, Nature=0.4251, Sales=0.3422, Transport=0.4636, Web/CloudOps=0.5006. +- frequency skill: A=0.3797, D=0.3460, H=0.3949, M=0.0960, Q=0.1979, S=0.4211, T=0.4348, W=0.2041. +- variates skill: multivariate=0.3931, univariate=0.3576. +- Outcome: Main0.373573070 improves from1000 0.372363971 and reaches roughly E73unrestricted8000 0.373596872 in fewer updates, but still trails the starting model0.375792503. Continue planned6000/8000 to test recovery. This compares different trainable scopes and learning rates together. Actual EMA1000 audit showed all36,800,800 inherited entries bitwise unchanged; added connections can still change the inherited stream activations. + +E84 coarse aggregation seed197 training started at 2026-10-23T03:37:37Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +## E77 paired slowAR final12000 +- Checkpoint SHA-256: `61cdf64f284aaa5bd97be010a29178d8b6dc796af35898d9b0ea2a76dce7dd0e`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 23.205326557159424 seconds. +- Overall skill 0.377696; relative MASE 0.743749; relative WQL 0.520690. +- term skill: long=0.4033, medium=0.4049, short=0.3568. +- domain skill: Econ/Fin=0.1435, Energy=0.2349, Healthcare=0.4451, Nature=0.4300, Sales=0.3324, Transport=0.4672, Web/CloudOps=0.5053. +- frequency skill: A=0.3634, D=0.3546, H=0.3953, M=0.0987, Q=0.2009, S=0.4254, T=0.4404, W=0.2126. +- variates skill: multivariate=0.3967, univariate=0.3621. +- Outcome: Final main0.377696007 exceeds matched E67paired12000 0.377427077 but is below its own6000 checkpoint0.378677489; retain6000 for the method comparison. Training completed12000 in2453.330776 process-loop seconds on the shared H100, seed197/B64/LR2e-5. E84coarse aggregation started after this trainer exited. No publication against stronger E87ensemble. + +overflow_control seed197 training started at 2026-10-23T03:43:42Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +## E90 training loss scale for daily and weekly windows — prepared +The task metadata confirms daily and weekly MASE uses lag1, while the current training weight uses the first modeled seasonal period,7/52. Hypothesis: matching this scale improves coarse-frequency forecasting. Change only the lag used by the context seasonal-MAE loss weight for exact period pairs[7,365] and[52,1] to1; all other periods, weighting formula, forecasts and inference rules remain unchanged. Match E80overflow-only control: own E62 initialization, seed197/B64/paired loss/LR2e-5/12000steps, same original sampler and horizon RNG, verified float64 overflow fallback in both. Compare against E80, not the older normalization implementation. No generator or training source change. Queue after E84 releases its allocation. + +E79 fresh512 seed307 training started at 2026-10-23T03:43:44Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E79 fresh1024 seed307 training started at 2026-10-23T03:43:44Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E79 fresh512 seed307 training started at 2026-10-23T03:43:56Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E79 fresh1024 seed307 training started at 2026-10-23T03:43:56Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E79 fresh1024 seed307 training started at 2026-10-23T03:43:57Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E79 fresh512 seed307 training started at 2026-10-23T03:43:57Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E79 fresh512 seed307 training started at 2026-10-23T03:44:10Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E79 fresh1024 seed307 training started at 2026-10-23T03:44:10Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E79 fresh512 seed307 training started at 2026-10-23T03:44:11Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E79 fresh1024 seed307 training started at 2026-10-23T03:44:11Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E79 fresh512 seed307 training started at 2026-10-23T03:44:12Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E79 fresh1024 seed307 training started at 2026-10-23T03:44:12Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E79 fresh1024 seed307 training started at 2026-10-23T03:44:12Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E79 fresh512 seed307 training started at 2026-10-23T03:44:12Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E79 fresh1024 seed307 training started at 2026-10-23T03:44:24Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E79 fresh512 seed307 training started at 2026-10-23T03:44:24Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E79 fresh512 seed307 training started at 2026-10-23T03:44:25Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E79 fresh1024 seed307 training started at 2026-10-23T03:44:25Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E79 fresh512 seed307 training started at 2026-10-23T03:44:26Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E79 fresh1024 seed307 training started at 2026-10-23T03:44:26Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E79 fresh512 seed307 training started at 2026-10-23T03:44:26Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E79 fresh1024 seed307 training started at 2026-10-23T03:44:26Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E79 fresh512 seed307 training started at 2026-10-23T03:44:27Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E79 fresh1024 seed307 training started at 2026-10-23T03:44:27Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E79 fresh512 seed307 training started at 2026-10-23T03:44:27Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E79 fresh1024 seed307 training started at 2026-10-23T03:44:27Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E79 fresh512 seed307 training started at 2026-10-23T03:44:28Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E79 fresh1024 seed307 training started at 2026-10-23T03:44:28Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E79 fresh512 seed307 training started at 2026-10-23T03:44:28Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E79 fresh1024 seed307 training started at 2026-10-23T03:44:28Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E79 fresh512 seed307 training started at 2026-10-23T03:44:39Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E79 fresh1024 seed307 training started at 2026-10-23T03:44:39Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E79 fresh1024 seed307 training started at 2026-10-23T03:44:41Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E79 fresh512 seed307 training started at 2026-10-23T03:44:41Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E79 fresh1024 seed307 training started at 2026-10-23T03:44:41Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E79 fresh512 seed307 training started at 2026-10-23T03:44:41Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E79 fresh1024 seed307 training started at 2026-10-23T03:44:42Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E79 fresh512 seed307 training started at 2026-10-23T03:44:42Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E79 fresh1024 seed307 training started at 2026-10-23T03:44:45Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E79 fresh512 seed307 training started at 2026-10-23T03:44:45Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E79 fresh512 seed307 training started at 2026-10-23T03:44:46Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E79 fresh1024 seed307 training started at 2026-10-23T03:44:46Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E79 fresh512 seed307 training started at 2026-10-23T03:44:50Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E79 fresh1024 seed307 training started at 2026-10-23T03:44:50Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E79 fresh512 seed307 training started at 2026-10-23T03:44:50Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E79 fresh1024 seed307 training started at 2026-10-23T03:44:50Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E79 fresh512 seed307 training started at 2026-10-23T03:44:50Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E79 fresh1024 seed307 training started at 2026-10-23T03:44:50Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E79 fresh1024 seed307 training started at 2026-10-23T03:44:51Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E79 fresh512 seed307 training started at 2026-10-23T03:44:51Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +## E79 startup failure and clean matched restart +{ + "started_utc": "2026-10-23T03:43:44Z", + "cleanup_utc": "2026-10-23T03:47:40.492921+00:00", + "cause": "legacy random_capacity/queue.py shadowed stdlib queue inside compiler workers and launched recursive duplicate E79 trainers; OOM then closed pool errors", + "saved_checkpoints": 0, + "discarded_partial_optimizer_updates": "not recoverable from interleaved/overwritten logs; no model selected", + "established_trainers_affected": false, + "terminated_related_processes": 50, + "remedy": "rename and guard launchers; exclusive output-directory and receipt locks; clean fresh restart", + "numerical_recipe_correction": "both fresh arms now include previously verified float64 statistics fallback only for nonfinite float32 mean/scale; initial weights/seeds/source streams unchanged" +} +The incident interval is wall time on the sole shared H100; duplicate per-process compute cannot be reconstructed exactly because legacy launchers reused log paths. Original failed logs and receipts are retained. No valid E79 checkpoint exists from this attempt. The updated numerical normalization is shared by both fresh widths; width remains the only difference between their recipes. + +E79 corrected-normalization fixture: {"normalization_overflow_fallback": true, "width": 512, "initialization_seed": 307, "fixture_seed": 313, "optimizer_updates": 0, "maximum_shape_memory": {"batch": 48, "signed_rows": 96, "context": 4096, "horizon": 1024, "loss": 0.6031821966171265, "peak_allocated_mib": 4521.12451171875, "peak_reserved_mib": 4784.0}, "eager_loss": 0.3412420153617859, "compiled_loss": 0.3412419855594635, "gradient_cosine": 0.9999952735476323, "max_gradient_difference": 4.57763671875e-05, "compile_comparison_seconds": 43.313792017987, "total_seconds": 50.912394708022475, "source": "allowed packed_sample and own synthetic generator only"} + +E90 fixture and queue: { + "seed": 419, + "cpu_seconds": 1.048940374981612, + "forward_bitwise_unchanged": true, + "hourly_monthly_loss_bitwise_unchanged": true, + "mixed_loss_before": 0.4770006537437439, + "mixed_loss_after": 0.4904267191886902, + "all_gradients_finite": true, + "optimizer_updates": 0, + "diagnostic_input": "four locally generated random/smooth contexts; never used in selected weights" +} +Queued after E84(PID4254), using E80 as the matched control. + +E79 duplicate-output guard fixture: { + "duplicate_rejected_before_model_loading": true, + "optimizer_updates": 0, + "cpu_seconds": 1.6497254162095487 +} +With the training code directory on the import path, queue now resolves to the Python standard library. No queue.py/torch.py/multiprocessing.py/concurrent.py shadow files remain under research. + +E79 corrected-normalization fixture: {"normalization_overflow_fallback": true, "width": 1024, "initialization_seed": 307, "fixture_seed": 313, "optimizer_updates": 0, "maximum_shape_memory": {"batch": 48, "signed_rows": 96, "context": 4096, "horizon": 1024, "loss": 0.6031821966171265, "peak_allocated_mib": 10162.86376953125, "peak_reserved_mib": 10696.0}, "eager_loss": 0.3412420153617859, "compiled_loss": 0.3412419855594635, "gradient_cosine": 0.9999932382274589, "max_gradient_difference": 6.103515625e-05, "compile_comparison_seconds": 40.99431764590554, "total_seconds": 49.15364895504899, "source": "allowed packed_sample and own synthetic generator only"} + +E79 fresh1024 seed307 training started at 2026-10-23T03:50:34Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E79 fresh512 seed307 training started at 2026-10-23T03:50:34Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E89 patch4_candidate seed401 training started at 2026-10-23T03:50:45Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E89 patch4_control seed401 training started at 2026-10-23T03:50:45Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +## E58/E66 widened146M final32000 +- Checkpoint SHA-256: `ecbb1f28a9bced1c7ecc078593908435320a618cde23bf034719b92b14c12b96`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 26.13470983505249 seconds. +- Overall skill 0.375306; relative MASE 0.746016; relative WQL 0.523103. +- term skill: long=0.3994, medium=0.4059, short=0.3536. +- domain skill: Econ/Fin=0.1403, Energy=0.2325, Healthcare=0.4376, Nature=0.4286, Sales=0.3380, Transport=0.4675, Web/CloudOps=0.5006. +- frequency skill: A=0.3821, D=0.3507, H=0.3942, M=0.0875, Q=0.2028, S=0.4235, T=0.4362, W=0.2179. +- variates skill: multivariate=0.3934, univariate=0.3605. +- Outcome: Final0.375305635 is effectively identical to matched37Mcontrol0.375304864 and below own E47parent0.375792930. The small24000 advantage did not persist. This rejects a benefit from this duplicated-width continuation, not from fresh larger pretraining. Final recovery3 loop3443.875463s; previous phases recorded separately; seed113/reset179/B96/LR3e-5. E79 tests fresh capacity instead. + +## E86 protected inherited stream at6000 +- Checkpoint SHA-256: `73dfe63b77e9f981fec42ceff6b2c9ec8b69e887c6d1d42830629c729c989625`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 30.87101984024048 seconds. +- Overall skill 0.373645; relative MASE 0.748615; relative WQL 0.524061. +- term skill: long=0.3977, medium=0.4063, short=0.3511. +- domain skill: Econ/Fin=0.1394, Energy=0.2337, Healthcare=0.4357, Nature=0.4267, Sales=0.3377, Transport=0.4634, Web/CloudOps=0.4976. +- frequency skill: A=0.3780, D=0.3487, H=0.3934, M=0.1091, Q=0.2016, S=0.4221, T=0.4332, W=0.2062. +- variates skill: multivariate=0.3912, univariate=0.3593. +- Outcome: Main0.373645290 barely improves3000 0.373573070 and remains below starting model0.375792503. Finish planned8000, then release allocation to E89. Seed113/B96/LR2e-4; no publication. + +## E84 coarse-data first1000 +- Checkpoint SHA-256: `207329fa0c16814d1fa72b3683219761f5ca3b692fa7059730f76c3fe0e93712`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 24.292750597000122 seconds. +- Overall skill 0.377433; relative MASE 0.744088; relative WQL 0.520892. +- term skill: long=0.4001, medium=0.4067, short=0.3569. +- domain skill: Econ/Fin=0.1311, Energy=0.2365, Healthcare=0.4620, Nature=0.4308, Sales=0.3347, Transport=0.4671, Web/CloudOps=0.5002. +- frequency skill: A=0.3669, D=0.3545, H=0.3965, M=0.1063, Q=0.1974, S=0.4228, T=0.4351, W=0.2289. +- variates skill: multivariate=0.3942, univariate=0.3638. +- Outcome: Main0.377433346 exceeds matched E67paired1000 0.376859515. Early evidence only; same seed197/B64/LR2e-5, independent aggregationRNG900200; no inference changes. + +## E84 coarse-data at3000 +- Checkpoint SHA-256: `75b4b41869254617288521d3c0c3539c9d60c6cad6b259b6ff166d1c9fd78c29`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 18.35591197013855 seconds. +- Overall skill 0.378023; relative MASE 0.743608; relative WQL 0.520241. +- term skill: long=0.4019, medium=0.4064, short=0.3573. +- domain skill: Econ/Fin=0.1364, Energy=0.2363, Healthcare=0.4484, Nature=0.4319, Sales=0.3319, Transport=0.4672, Web/CloudOps=0.5044. +- frequency skill: A=0.3677, D=0.3514, H=0.3990, M=0.1053, Q=0.1979, S=0.4219, T=0.4378, W=0.2193. +- variates skill: multivariate=0.3966, univariate=0.3628. +- Outcome: Main0.378023141 is slightly below matched E67paired3000 0.378318033 after the first1000 gain. Continue6000/12000 and inspect frequency groups; no consistent gain yet. + +## E80 overflow-only control first1000 +- Checkpoint SHA-256: `fb64456ba0c2ebef979b8525274132618fe542f67e7193036e4a013de6629f5c`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 18.763219356536865 seconds. +- Overall skill 0.376804; relative MASE 0.744768; relative WQL 0.521468. +- term skill: long=0.3990, medium=0.4062, short=0.3563. +- domain skill: Econ/Fin=0.1319, Energy=0.2364, Healthcare=0.4621, Nature=0.4300, Sales=0.3347, Transport=0.4668, Web/CloudOps=0.4982. +- frequency skill: A=0.3657, D=0.3559, H=0.3950, M=0.1061, Q=0.1979, S=0.4228, T=0.4347, W=0.2257. +- variates skill: multivariate=0.3925, univariate=0.3640. +- Outcome: Main0.376804394 is effectively tied with original E67paired1000 0.376859515, and slightly above E75postloss1000 0.376670711. Numerical correction alone has not shown a predictive gain yet. Continue matched3000/6000/12000. + +## E78 multiscale AR final12000 +- Checkpoint SHA-256: `a9b6f03e211513684787db1d518696925351987e524cb969c3d3a184afde6f25`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 18.768662929534912 seconds. +- Overall skill 0.377173; relative MASE 0.744921; relative WQL 0.520745. +- term skill: long=0.4032, medium=0.4047, short=0.3559. +- domain skill: Econ/Fin=0.1376, Energy=0.2351, Healthcare=0.4499, Nature=0.4288, Sales=0.3321, Transport=0.4667, Web/CloudOps=0.5043. +- frequency skill: A=0.3628, D=0.3520, H=0.3946, M=0.1047, Q=0.2008, S=0.4249, T=0.4400, W=0.2136. +- variates skill: multivariate=0.3959, univariate=0.3619. +- Outcome: Final0.377172928 is below matched E77single slowAR12000 0.377696007 and original E67paired12000 0.377427077. At6000 it nearly tied single slowAR; no gain from extra components. Completed planned endpoint; retain negative result and release this allocation for queued E89 after E86 finishes. + +E88 patch8 late slowAR seed197 training started at 2026-10-23T03:55:05Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +## E86 protected inherited stream final8000 +- Checkpoint SHA-256: `8c868d08f583249ae38cd9173b7f19c530825dda785fe66011be60d3e1a6b2f4`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 30.288848638534546 seconds. +- Overall skill 0.373894; relative MASE 0.748106; relative WQL 0.524001. +- term skill: long=0.3986, medium=0.4065, short=0.3511. +- domain skill: Econ/Fin=0.1434, Energy=0.2349, Healthcare=0.4214, Nature=0.4283, Sales=0.3364, Transport=0.4640, Web/CloudOps=0.4986. +- frequency skill: A=0.3812, D=0.3459, H=0.3944, M=0.1025, Q=0.2000, S=0.4216, T=0.4346, W=0.2079. +- variates skill: multivariate=0.3920, univariate=0.3591. +- Outcome: Final0.373894042 remains below its own initialization0.375792503. Protecting inherited tensors while training additions at a higher rate improved recovery speed but did not improve the forecast model. Completed8000 in1625.057884loopseconds on the shared H100. Effective protected/trainable counts36,800,800/109,676,544; seed113/B96/LR2e-4. Released allocation to E89; retain as negative result. + +## E80 overflow-only control at3000 +- Checkpoint SHA-256: `2084f1888f8d9e5afe2c740769ea2b4167086cdd62dfb4014bc3a338c00d4c12`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 22.62967348098755 seconds. +- Overall skill 0.378664; relative MASE 0.743020; relative WQL 0.519581. +- term skill: long=0.4024, medium=0.4069, short=0.3581. +- domain skill: Econ/Fin=0.1345, Energy=0.2391, Healthcare=0.4537, Nature=0.4314, Sales=0.3327, Transport=0.4661, Web/CloudOps=0.5041. +- frequency skill: A=0.3682, D=0.3548, H=0.3976, M=0.1042, Q=0.1968, S=0.4234, T=0.4386, W=0.2234. +- variates skill: multivariate=0.3971, univariate=0.3636. +- Outcome: Main0.378663825 exceeds original E67paired3000 0.378318033 and nearly matches E75postloss3000 0.378813891. Most of the earlier raw main gain may come from the numerical correction rather than the postprocessing-aware loss. Check earlier cutoffs using the same overflow-safe runtime before attributing the remaining difference. Same seed197/B64/LR2e-5. + +## E84 coarse data at6000 +- Checkpoint SHA-256: `79cce8767ec35ed8ba6045957f2ef4147adb8fe312b03c50dc20ae635255926f`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 22.568254947662354 seconds. +- Overall skill 0.378304; relative MASE 0.743340; relative WQL 0.519958. +- term skill: long=0.4018, medium=0.4073, short=0.3574. +- domain skill: Econ/Fin=0.1325, Energy=0.2353, Healthcare=0.4579, Nature=0.4332, Sales=0.3368, Transport=0.4657, Web/CloudOps=0.5045. +- frequency skill: A=0.3681, D=0.3543, H=0.3963, M=0.1037, Q=0.1944, S=0.4243, T=0.4385, W=0.2257. +- variates skill: multivariate=0.3970, univariate=0.3630. +- Outcome: Main0.378304411 remains slightly below matched E67paired6000 0.378455389. Continue planned12000, then assess overall/frequency behavior; no consistent aggregate gain yet. Seed197/B64/LR2e-5, same base/source/horizon streams apart from independent coarse aggregation. + +## E89 patch8 matched control first1000 +- Checkpoint SHA-256: `ebf6cd1845311b149118beb13364892445388f124e9f706bffe7a317ab97b762`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 29.399544715881348 seconds. +- Overall skill 0.380274; relative MASE 0.743092; relative WQL 0.516841. +- term skill: long=0.4036, medium=0.4039, short=0.3617. +- domain skill: Econ/Fin=0.1303, Energy=0.2425, Healthcare=0.4624, Nature=0.4416, Sales=0.3473, Transport=0.4610, Web/CloudOps=0.5001. +- frequency skill: A=0.3689, D=0.3561, H=0.3952, M=0.1038, Q=0.1908, S=0.4222, T=0.4419, W=0.2419. +- variates skill: multivariate=0.3965, univariate=0.3670. +- Outcome: Control0.380274173 is below its shared starting E71patch8_6000 0.381178739. The patch4 candidate is still approaching1000. Fresh AdamW/EMA, seed401/B32/LR2e-5; wait for the matched comparison. + +Completed process loop receipts: E71 recovery3 final12000=3333.747876572s (earlier interrupted prefixes separately logged); E78 final12000=2448.526446433s; E86 final8000=1625.057883863s. All overlapped other training on the one H100 and are not exclusive GPU times. + +## E71 patch8 final12000 +- Checkpoint SHA-256: `313d035b782188253ecd27c0da37030b397b82e4fa596f3a944994be3f1d203f`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 28.39552927017212 seconds. +- Overall skill 0.379468; relative MASE 0.743587; relative WQL 0.517842. +- term skill: long=0.4043, medium=0.4042, short=0.3599. +- domain skill: Econ/Fin=0.1408, Energy=0.2402, Healthcare=0.4302, Nature=0.4416, Sales=0.3430, Transport=0.4619, Web/CloudOps=0.5048. +- frequency skill: A=0.3766, D=0.3605, H=0.3949, M=0.0689, Q=0.1914, S=0.4241, T=0.4445, W=0.2231. +- variates skill: multivariate=0.3987, univariate=0.3637. +- Outcome: Final main0.379467684 is below selected6000 0.381178739. Retain6000 as published ensemble member. Seed197/B64/LR2e-5; recovery3 loop3333.747877s, previous recovery phases recorded separately; no further continuation in this run. + +## E69 volatility final12000 +- Checkpoint SHA-256: `adddab6f07cb65843a1356ee2a3b36985fd56ecacc6fdb7703c465b0cfe21f5a`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 18.7578706741333 seconds. +- Overall skill 0.360846; relative MASE 0.761644; relative WQL 0.536363. +- term skill: long=0.3901, medium=0.4048, short=0.3314. +- domain skill: Econ/Fin=0.1094, Energy=0.1887, Healthcare=0.4132, Nature=0.4274, Sales=0.3422, Transport=0.4584, Web/CloudOps=0.5066. +- frequency skill: A=0.3708, D=0.3402, H=0.3826, M=0.1173, Q=0.1994, S=0.4419, T=0.4041, W=0.2107. +- variates skill: multivariate=0.3938, univariate=0.3333. +- Outcome: Final main0.360845700 is below matched E42partial12000 0.361108160. Earlier6000 diagnostics were mixed. The early main gain did not persist; no transfer or publication. Seed79/B256/LR5e-5; final recovery3 loop3542.503298s. Released allocation to E88. + +## E89 patch4 candidate first1000 +- Checkpoint SHA-256: `a0b4f56f9b3bbf26a94ee72a8f3487c1fb42c009c79ccb8fcef8538ffdb96e7f`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 47.17473244667053 seconds. +- Overall skill 0.378251; relative MASE 0.744567; relative WQL 0.519191. +- term skill: long=0.4036, medium=0.4019, short=0.3589. +- domain skill: Econ/Fin=0.1342, Energy=0.2339, Healthcare=0.4544, Nature=0.4415, Sales=0.3520, Transport=0.4631, Web/CloudOps=0.5002. +- frequency skill: A=0.3613, D=0.3424, H=0.3929, M=0.1696, Q=0.1890, S=0.4219, T=0.4368, W=0.2442. +- variates skill: multivariate=0.3925, univariate=0.3667. +- Outcome: Main0.378250742 improves folded initialization0.370553128 but trails matched patch8control1000 0.380274173 and shared original patch8parent0.381178739. Continue planned comparison; seed401/B32/LR2e-5. + +## E80 overflow-only3000 earlier cutoff1 +- Checkpoint SHA-256: `2084f1888f8d9e5afe2c740769ea2b4167086cdd62dfb4014bc3a338c00d4c12`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 22.02164888381958 seconds. +- Overall skill 0.336120; relative MASE 0.797369; relative WQL 0.552739. +- term skill: long=0.3981, medium=0.3582, short=0.3019. +- domain skill: Econ/Fin=0.1557, Energy=0.2287, Healthcare=0.4162, Nature=0.3643, Sales=0.3941, Transport=0.3729, Web/CloudOps=0.4489. +- frequency skill: A=0.3135, D=0.3521, H=0.3666, M=0.1852, Q=0.2300, S=0.3411, T=0.3348, W=0.2843. +- variates skill: multivariate=0.3527, univariate=0.3226. +- Outcome: Earlier0.336119626 exceeds E75postloss0.333946620 and original E67paired0.335738788. Numerical fix alone is a better base here; seed197/B64/LR2e-5, no extra optimization. + +## E80 overflow-only3000 earlier cutoff2 +- Checkpoint SHA-256: `2084f1888f8d9e5afe2c740769ea2b4167086cdd62dfb4014bc3a338c00d4c12`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 21.807528972625732 seconds. +- Overall skill 0.358235; relative MASE 0.771665; relative WQL 0.533732. +- term skill: long=0.3635, medium=0.3875, short=0.3446. +- domain skill: Econ/Fin=0.1067, Energy=0.2360, Healthcare=0.3485, Nature=0.4691, Sales=0.5486, Transport=0.4210, Web/CloudOps=0.4314. +- frequency skill: A=0.3545, D=0.4236, H=0.3910, M=0.1500, Q=0.1497, S=0.2812, T=0.3593, W=0.2599. +- variates skill: multivariate=0.3633, univariate=0.3541. +- Outcome: Earlier0.358234785 exceeds E75postloss0.357604589 and essentially ties original E67paired0.358235331. Main and first two earlier cutoffs warrant one fixed slowAR delta composition; no validation gradients. + +## E80 overflow-only3000 earlier cutoff3 +- Checkpoint SHA-256: `2084f1888f8d9e5afe2c740769ea2b4167086cdd62dfb4014bc3a338c00d4c12`. +- Evaluation: 93 configurations, 8812 instances, 0 failed configurations; 21.630401849746704 seconds. +- Overall skill 0.388792; relative MASE 0.737171; relative WQL 0.506769. +- term skill: long=0.3965, medium=0.3607, short=0.3962. +- domain skill: Econ/Fin=0.1707, Energy=0.3203, Healthcare=0.2577, Nature=0.5049, Sales=0.3995, Transport=0.5052, Web/CloudOps=0.3898. +- frequency skill: A=0.3632, D=0.4429, H=0.4039, M=0.1158, Q=0.2578, S=0.2865, T=0.4303, W=0.2614. +- variates skill: multivariate=0.3742, univariate=0.4001. +- Outcome: Earlier0.388791691 is slightly below original E67paired0.389069088. Numerical correction does not improve every cutoff. Keep all outcomes; assess one predeclared fixed composition across all four cutoffs. + +## E91 predeclared overflow-safe base plus slow-AR correction +Hypothesis: the overflow-only E80 paired3000 base retains the useful numerical correction without E75 postprocessing-aware objective regressions, while the independently matched E61 slowAR6000 minus E42partial6000 correction retains its previous benefit. Apply exactly one coefficient1 composition: E80paired3000 + E61slowAR6000 - E42partial6000. No coefficient sweep, no additional optimizer updates, no validation targets used in weight construction. All three parents were trained on allowed corpus/synthetic data from our own scratch lineage. Base seed197/B64/LR2e-5; matched delta parents seed79/B256/LR5e-5. Use the exact postloss_inference overflow-safe model with unchanged fixed inference rules. Evaluate all four established cutoffs, and only then consider equal-weight ensemble replacement with E71patch8_6000 and a full public-contract replay. + +## E80 overflow-only control at6000 +- Checkpoint SHA-256: `b19875c52ed5024383fb69ccc48cb07a5629ad8011abf134c7dcfcdc50fae2af`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 22.57701802253723 seconds. +- Overall skill 0.378289; relative MASE 0.743925; relative WQL 0.519575. +- term skill: long=0.4014, medium=0.4069, short=0.3578. +- domain skill: Econ/Fin=0.1256, Energy=0.2394, Healthcare=0.4638, Nature=0.4293, Sales=0.3386, Transport=0.4657, Web/CloudOps=0.5023. +- frequency skill: A=0.3687, D=0.3551, H=0.3958, M=0.1068, Q=0.1918, S=0.4249, T=0.4380, W=0.2268. +- variates skill: multivariate=0.3966, univariate=0.3633. +- Outcome: Main0.378288765 is below its3000 0.378663825 and matched original E67paired6000 0.378455389. The numerical correction is required for rare finite overflows but its forecasting gain is not monotonic. Continue planned12000; seed197/B64/LR2e-5. + +## E89 patch8 matched control at3000 +- Checkpoint SHA-256: `9083c6be954ec65ec6248801e719d6f182cd3d12bf116f8fc5fc4796675141c4`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 33.57180857658386 seconds. +- Overall skill 0.378946; relative MASE 0.744701; relative WQL 0.517938. +- term skill: long=0.4043, medium=0.4024, short=0.3597. +- domain skill: Econ/Fin=0.1384, Energy=0.2401, Healthcare=0.4325, Nature=0.4444, Sales=0.3407, Transport=0.4620, Web/CloudOps=0.5013. +- frequency skill: A=0.3736, D=0.3524, H=0.3933, M=0.0834, Q=0.1970, S=0.4232, T=0.4439, W=0.2376. +- variates skill: multivariate=0.3975, univariate=0.3638. +- Outcome: Control0.378945686 is below first1000 and original selected6000 parent. Continue matched patch4 comparison; seed401/B32/LR2e-5. + +## E88 late slowAR first9000 +- Checkpoint SHA-256: `fbd4b0d4f29fb162929a3cf9cd4bb0ae264a2e15d860519e0fc08fa314b6820d`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 30.04508352279663 seconds. +- Overall skill 0.380434; relative MASE 0.741856; relative WQL 0.517434. +- term skill: long=0.4054, medium=0.4044, short=0.3611. +- domain skill: Econ/Fin=0.1423, Energy=0.2409, Healthcare=0.4434, Nature=0.4404, Sales=0.3436, Transport=0.4625, Web/CloudOps=0.5050. +- frequency skill: A=0.3803, D=0.3586, H=0.3955, M=0.0778, Q=0.1920, S=0.4256, T=0.4443, W=0.2331. +- variates skill: multivariate=0.3993, univariate=0.3650. +- Outcome: Main0.380434469 exceeds original E71final12000 but is below selected E71earlier6000. Evaluate the exact original9000 checkpoint before attributing a gain to the late AR change. Resume8000 preserved optimizer/EMA/allRNG/prefetched batch; seed197/B64/global12kLRschedule. + +## E91 overflow-safe plus slowAR valid_screen +- Checkpoint SHA-256: `59b90e76823bd4b339c7b5d290c7afbdca9d1ba81848760aa5f80ee941cdd089`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 26.561925172805786 seconds. +- Overall skill 0.379922; relative MASE 0.741449; relative WQL 0.518575. +- term skill: long=0.4039, medium=0.4067, short=0.3598. +- domain skill: Econ/Fin=0.1450, Energy=0.2359, Healthcare=0.4601, Nature=0.4339, Sales=0.3351, Transport=0.4657, Web/CloudOps=0.5073. +- frequency skill: A=0.3727, D=0.3616, H=0.3973, M=0.0940, Q=0.1982, S=0.4264, T=0.4400, W=0.2228. +- variates skill: multivariate=0.3984, univariate=0.3648. +- Outcome: Fixed coefficient1 composition; zero optimizer updates, merge CPU1.173140s. Main0.379921968 is slightly below E83main0.380250568, but all three earlier cutoffs improve E83. Next compare one fixed equal ensemble with selected E71patch8_6000 across all four cutoffs; validation selection only. + +## E91 overflow-safe plus slowAR valid_backcast +- Checkpoint SHA-256: `59b90e76823bd4b339c7b5d290c7afbdca9d1ba81848760aa5f80ee941cdd089`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 26.259706020355225 seconds. +- Overall skill 0.337178; relative MASE 0.795032; relative WQL 0.552597. +- term skill: long=0.3962, medium=0.3594, short=0.3042. +- domain skill: Econ/Fin=0.1688, Energy=0.2262, Healthcare=0.4114, Nature=0.3695, Sales=0.3929, Transport=0.3721, Web/CloudOps=0.4520. +- frequency skill: A=0.3205, D=0.3501, H=0.3656, M=0.1901, Q=0.2319, S=0.3439, T=0.3378, W=0.2886. +- variates skill: multivariate=0.3544, univariate=0.3232. +- Outcome: Fixed coefficient1 composition; zero optimizer updates, merge CPU1.173140s. Main0.379921968 is slightly below E83main0.380250568, but all three earlier cutoffs improve E83. Next compare one fixed equal ensemble with selected E71patch8_6000 across all four cutoffs; validation selection only. + +## E91 overflow-safe plus slowAR valid_backcast2 +- Checkpoint SHA-256: `59b90e76823bd4b339c7b5d290c7afbdca9d1ba81848760aa5f80ee941cdd089`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 25.369709968566895 seconds. +- Overall skill 0.360453; relative MASE 0.769235; relative WQL 0.531723. +- term skill: long=0.3677, medium=0.3870, short=0.3472. +- domain skill: Econ/Fin=0.1196, Energy=0.2351, Healthcare=0.3437, Nature=0.4735, Sales=0.5473, Transport=0.4202, Web/CloudOps=0.4377. +- frequency skill: A=0.3522, D=0.4289, H=0.3897, M=0.1376, Q=0.1497, S=0.2867, T=0.3638, W=0.2656. +- variates skill: multivariate=0.3670, univariate=0.3551. +- Outcome: Fixed coefficient1 composition; zero optimizer updates, merge CPU1.173140s. Main0.379921968 is slightly below E83main0.380250568, but all three earlier cutoffs improve E83. Next compare one fixed equal ensemble with selected E71patch8_6000 across all four cutoffs; validation selection only. + +## E91 overflow-safe plus slowAR valid_backcast3 +- Checkpoint SHA-256: `59b90e76823bd4b339c7b5d290c7afbdca9d1ba81848760aa5f80ee941cdd089`. +- Evaluation: 93 configurations, 8812 instances, 0 failed configurations; 25.158844232559204 seconds. +- Overall skill 0.389176; relative MASE 0.737055; relative WQL 0.506212. +- term skill: long=0.3949, medium=0.3621, short=0.3969. +- domain skill: Econ/Fin=0.1809, Energy=0.3196, Healthcare=0.2279, Nature=0.5059, Sales=0.4000, Transport=0.5071, Web/CloudOps=0.3940. +- frequency skill: A=0.3624, D=0.4461, H=0.4034, M=0.1001, Q=0.2604, S=0.2871, T=0.4311, W=0.2634. +- variates skill: multivariate=0.3742, univariate=0.4008. +- Outcome: Fixed coefficient1 composition; zero optimizer updates, merge CPU1.173140s. Main0.379921968 is slightly below E83main0.380250568, but all three earlier cutoffs improve E83. Next compare one fixed equal ensemble with selected E71patch8_6000 across all four cutoffs; validation selection only. + +## E92 robust normalization — prepared, not launched +Hypothesis: rare large history observations dominate the current mean/RMS scale and compress typical dynamics. Change only the context normalization to winsorized statistics: center a clipping interval on the finite-value median, radius6 times the mean absolute deviation from that median; estimate mean and standard deviation of the clipped history in float64, retain the existing relative scale floor, and normalize the original history with the existing ±30 bound. This uses a mean absolute deviation, rather than median deviation, to retain scale for intermittent series. All-missing and constant histories use the same safe count/floor conventions. No future observations enter normalization. Initialize own E62 checkpoint; seed197/B64/LR2e-5/12000 paired steps, same original corpus/synthetic/horizon streams as E80overflow-only control. No new parameters, sources, or synthetic generator. A separate runtime will use identical robust statistics. Check finite outputs/gradients, affine and sign behavior, and unchanged loss machinery on locally generated fixtures before launch. Queue only after E80 releases its allocation. + +### E91 fixed ensemble outcome — retain E87 +[ + { + "cutoff": "valid_screen", + "candidate": 0.38295755880742377, + "published": 0.38368555666405846, + "cpu_seconds": 0.7978230791632086, + "groups": { + "term": { + "short": 0.3641412739810047, + "medium": 0.4081748699742944, + "long": 0.4053387686104565 + }, + "domain": { + "Econ/Fin": 0.14196055084083636, + "Energy": 0.2436181245717931, + "Healthcare": 0.47044789997945524, + "Nature": 0.43843771854824554, + "Sales": 0.3435316624897278, + "Transport": 0.4646935796341666, + "Web/CloudOps": 0.50560991569805 + }, + "freq": { + "A-DEC": 0.37806371948108464, + "Q-DEC": 0.1953743898001734, + "M": 0.10835758037283183, + "W-SUN": 0.09200217288388479, + "D": 0.36288028663668526, + "H": 0.39989339265058577, + "15T": 0.21574107475831517, + "W-FRI": 0.00590529614346913, + "10T": 0.6203515795555475, + "W-TUE": 0.5998659430846229, + "W-THU": 0.20928566575491192, + "W-WED": 0.32755565821641586, + "5T": 0.5196292524760446, + "10S": 0.4253796526525012 + } + } + }, + { + "cutoff": "valid_backcast", + "candidate": 0.33965252002132096, + "published": 0.33897078175106665, + "cpu_seconds": 0.8413949671667069, + "groups": { + "term": { + "short": 0.30682882244621934, + "medium": 0.3594584814302525, + "long": 0.4004578178388881 + }, + "domain": { + "Econ/Fin": 0.17015181674919277, + "Energy": 0.23013645693798135, + "Healthcare": 0.4218451623665679, + "Nature": 0.3716837571447873, + "Sales": 0.4016515190787069, + "Transport": 0.3732465934225949, + "Web/CloudOps": 0.450994086374909 + }, + "freq": { + "A-DEC": 0.3282816505284657, + "Q-DEC": 0.23566016127363243, + "M": 0.19914077895872262, + "W-SUN": 0.03865936211094867, + "D": 0.355074708701307, + "H": 0.36721923281513913, + "15T": 0.22292257615547317, + "W-FRI": 0.23702394178468034, + "10T": 0.32706954225689555, + "W-TUE": 0.5531057781818784, + "W-THU": 0.26381006300655674, + "W-WED": 0.35364720411869544, + "5T": 0.44270238618668056, + "10S": 0.34631632390506784 + } + } + }, + { + "cutoff": "valid_backcast2", + "candidate": 0.36318271604290864, + "published": 0.36315845377936284, + "cpu_seconds": 0.7982894480228424, + "groups": { + "term": { + "short": 0.3500873123601329, + "medium": 0.39140163998387134, + "long": 0.3681031208336688 + }, + "domain": { + "Econ/Fin": 0.11631521324076821, + "Energy": 0.23897422330833784, + "Healthcare": 0.3563145060249002, + "Nature": 0.4759919302878802, + "Sales": 0.5526652479550637, + "Transport": 0.42387192299481313, + "Web/CloudOps": 0.436824697056448 + }, + "freq": { + "A-DEC": 0.34293470421447503, + "Q-DEC": 0.15231508648525816, + "M": 0.14735330101758526, + "W-SUN": 0.05191699540908579, + "D": 0.4322785270529358, + "H": 0.39262772604483, + "15T": 0.10591962461225035, + "W-FRI": 0.14794480975291435, + "10T": 0.5077330623307716, + "W-TUE": 0.09268217269468071, + "W-THU": 0.34555097504792365, + "W-WED": 0.5579990641356007, + "5T": 0.4724634827891697, + "10S": 0.2869202644785588 + } + } + }, + { + "cutoff": "valid_backcast3", + "candidate": 0.3889402057921222, + "published": 0.3893067316884232, + "cpu_seconds": 1.0883019380271435, + "groups": { + "term": { + "short": 0.3948070762587602, + "medium": 0.36614080286851436, + "long": 0.3957100819716167 + }, + "domain": { + "Econ/Fin": 0.18258306326920215, + "Energy": 0.3151836976978215, + "Healthcare": 0.23576266671317847, + "Nature": 0.5094192054942891, + "Sales": 0.4006642315236326, + "Transport": 0.5077376839877803, + "Web/CloudOps": 0.39340413209496183 + }, + "freq": { + "A-DEC": 0.3560985343152149, + "Q-DEC": 0.25541091598546395, + "M": 0.11989423475215888, + "W-SUN": 0.15976888148282853, + "D": 0.4460752118885134, + "H": 0.40415283128676627, + "15T": 0.2542013440411708, + "W-FRI": 0.03652589348537405, + "10T": 0.6009630559934178, + "W-TUE": 0.25771359383581927, + "W-THU": 0.35674611651454924, + "W-WED": 0.37808927325032227, + "5T": 0.4654632139858025, + "10S": 0.29366540153879894 + } + } + } +] +The E91/E71 equal ensemble loses main0.382957559 versus E870.383685557 and third earlier0.388940206 versus0.389306732. First earlier improves0.339652520 versus0.338970782; second is effectively tied0.363182716 versus0.363158454. No consistent replacement gain; retain E87 and do not spend a full replay. E91 checkpoint SHA59b90e76823bd4b339c7b5d290c7afbdca9d1ba81848760aa5f80ee941cdd089, coefficient1, no optimization. The postloss-related earlier regressions were real, but removing that objective does not improve the selected equal ensemble overall. + +E92 CPU fixture passed: finite outputs/gradients, ordered quantiles, midpoint-median sign symmetry, affine behavior on nonconstant rows, eight own-generated contexts, seed431, zero updates,1.487883s. GPU autocast fixture queued. + +## E88 exact original patch8 control at9000 +- Checkpoint SHA-256: `342436626bc9219f068c118aefbe6ffb106f91e9f88acb01a9ee704cdfb7aa6b`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 34.10145950317383 seconds. +- Overall skill 0.380329; relative MASE 0.741988; relative WQL 0.517518. +- term skill: long=0.4051, medium=0.4042, short=0.3611. +- domain skill: Econ/Fin=0.1410, Energy=0.2410, Healthcare=0.4471, Nature=0.4399, Sales=0.3435, Transport=0.4623, Web/CloudOps=0.5043. +- frequency skill: A=0.3807, D=0.3585, H=0.3953, M=0.0838, Q=0.1923, S=0.4254, T=0.4436, W=0.2332. +- variates skill: multivariate=0.3986, univariate=0.3654. +- Outcome: Original9000 main0.380329158 versus E88late slowAR9000 0.380434469, a small0.000105310 gain after1000 changed steps. Both below original selected6000 0.381178739; continue exact final12000 comparison. One failed evaluator invocation used a nonexistent path and did no inference; rerun with full_paired_inference succeeded. + +E92 GPU bf16 paired-gradient fixture passed, seed433,8.773601s, zero optimizer updates. Queue behind E80PID4371; unchanged declared12k schedule. + +Provenance hardening for E88: publisher now includes the immutable external recovery008000 snapshot as a lineage parent and records its hash/step, in addition to the original initialization. This preserves the original8000-step recipe before the late slowAR change. Mutable within-run recovery files remain excluded to avoid self-referencing lineage; no training state or weights changed. + +## Permitted-sampler coverage diagnostic, seed449 +Independent E79sampler audit generated48000 windows in4.262272CPU seconds, zero optimizer updates, no validation data read, active training streams untouched. Full source probabilities and finite-history/target summaries are sampler_coverage_audit.json. Monthly[12,1] accounts for5.1104% of rows: medianfinitecontext43, medianfinitetarget57,42.68%histories below32. Quarterly[4,1] accounts for5.2792%: mediancontext33,target46,47.95%histories below32. Weekly[52,1] accounts for3.8188%: mediancontext51,target82,30.44%histories below32. Current synthetic-period list contains no[52,1]weekly case. These are training-distribution diagnostics, not performance evidence; context and target marginal medians do not imply every row has that ratio. Original sampler20%synthetic/randomC-H recipe preserved. + +## E79 fresh37M first4000 +- Checkpoint SHA-256: `dc04a05abefdb903497a3311e7eac289ccdeae75db0ada66d02e05e431ba4f1a`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 29.426799774169922 seconds. +- Overall skill 0.341862; relative MASE 0.775670; relative WQL 0.558415. +- term skill: long=0.3667, medium=0.3845, short=0.3148. +- domain skill: Econ/Fin=0.1118, Energy=0.2099, Healthcare=0.3250, Nature=0.4095, Sales=0.3041, Transport=0.4280, Web/CloudOps=0.4683. +- frequency skill: A=0.3520, D=0.3280, H=0.3608, M=-0.0493, Q=0.1682, S=0.4263, T=0.3918, W=0.2320. +- variates skill: multivariate=0.3630, univariate=0.3246. +- Outcome: Fresh random seed307/B48/LR2e-4/96000 static-compiled paired training, original random initialization hash19da01694123fcb13df815689ca66460d0da596bd31dfabfabb08dda6f7801e4. Main0.341861940 is below the published mature lineage but a promising early learning curve. Wait for the matched146M4000 result and planned8000/16000 checkpoints. Both arms share the corrected float64 overflow fallback and slowAR generator. Startup failures and discarded work were recorded separately; no baseline weights used. + +## E89 patch4 candidate at3000 +- Checkpoint SHA-256: `87fcd88001d63389726ff55885ef09933f912034662816cf2080d2f08a041542`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 58.48912262916565 seconds. +- Overall skill 0.379843; relative MASE 0.742829; relative WQL 0.517743. +- term skill: long=0.4040, medium=0.4031, short=0.3611. +- domain skill: Econ/Fin=0.1466, Energy=0.2356, Healthcare=0.4515, Nature=0.4449, Sales=0.3476, Transport=0.4665, Web/CloudOps=0.4992. +- frequency skill: A=0.3695, D=0.3423, H=0.3937, M=0.1494, Q=0.2020, S=0.4211, T=0.4409, W=0.2524. +- variates skill: multivariate=0.3948, univariate=0.3676. +- Outcome: Candidate main0.379842915 now exceeds matched patch8control3000 0.378945686 by0.000897230, though below selected starting parent0.381178739. Monthly skill0.1494 and weekly0.2524 are encouraging; daily0.3423 remains weak. Continue the declared6000/12000 comparisons before considering ensemble complementarity. Seed401/B32/LR2e-5; same original generator and matched fresh optimizer. + +E90 daily-weekly loss scale seed197 training started at 2026-10-23T04:12:55Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +## E93 patch8 encoder with patch4 forecast blocks — prepared +Hypothesis: E89patch4 improves monthly/weekly behavior by refining forecast blocks; part of the gain may survive with the cheaper patch8 encoder. Decouple input and output patch sizes, keeping input8 and output4. Initialize exactly from own E71patch8 EMA6000: retain all encoder/input tensors, fold query/recency halves and keep the first4 head rows as in E89. No function-preservation claim for output4; input8/output8 must reproduce the old implementation exactly. All other training settings match E89: seed401/B32/LR2e-5/12000 paired steps, original normalization and synthetic generator, horizonRNG300404, fresh optimizer/EMA. Compare with existing E89patch8control and fullpatch4 at1000/3000/6000/12000. No new data/generator or external weights. Queue after E88 releases its allocation, after equivalence and maximum-shape CUDA checks. + +## E84 coarse aggregation final12000 +- Checkpoint SHA-256: `bb3e1d1ef6b57ad9517e69c5f3c4fd5caac6e4fd0f50fa9273df2cd2b13b8a70`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 25.56629729270935 seconds. +- Overall skill 0.377144; relative MASE 0.744785; relative WQL 0.520888. +- term skill: long=0.4036, medium=0.4057, short=0.3553. +- domain skill: Econ/Fin=0.1335, Energy=0.2339, Healthcare=0.4474, Nature=0.4322, Sales=0.3330, Transport=0.4658, Web/CloudOps=0.5048. +- frequency skill: A=0.3623, D=0.3529, H=0.3953, M=0.1038, Q=0.1971, S=0.4244, T=0.4404, W=0.2071. +- variates skill: multivariate=0.3962, univariate=0.3616. +- Outcome: Final0.377143853 is below matched E67paired12000 0.377427077. Daily skill improves0.352881088 versus0.350503003, but weekly drops0.207079293 versus0.218111206. Short term loses0.000773 while long/medium gain slightly. The targeted daily/weekly augmentation is mixed and not selected. Seed197/B64/LR2e-5, final training loop2103.526387s. E90loss-scale-only starts in the released allocation. + +## E89 patch8 matched control at6000 +- Checkpoint SHA-256: `9e8f798ceb2e1b49d8bd92ba334c42470e780b8d6b62a14195bb268ae8ba872a`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 33.938090801239014 seconds. +- Overall skill 0.377735; relative MASE 0.746288; relative WQL 0.518853. +- term skill: long=0.4024, medium=0.4020, short=0.3584. +- domain skill: Econ/Fin=0.1414, Energy=0.2382, Healthcare=0.4376, Nature=0.4420, Sales=0.3419, Transport=0.4600, Web/CloudOps=0.4997. +- frequency skill: A=0.3730, D=0.3564, H=0.3927, M=0.0689, Q=0.1989, S=0.4229, T=0.4411, W=0.2355. +- variates skill: multivariate=0.3951, univariate=0.3636. +- Outcome: Main0.377734884 continues below original selected parent0.381178739 and control3000 0.378945686. Preserve this matched reference for fullpatch4 and E93splitpatch; seed401/B32/LR2e-5. Continue planned12000. + +E93 initialization SHA0719b4dce554764ef69181d8b19d8da11849ef32b35391ffee6700e639a73114;36,601,928parameters, CPUconversion0.663439s. CPUfixture1.433205s proves equal8/8 implementation bitwise unchanged and all converted tensors exactly match E89full4 except the retained input8 projection. CUDAmaximumshapeB32C4096H1024, EMA/moments present, finite loss/gradients,7082MiB reserved,10.871036s. Zero optimizer updates in fixtures. Queued behind E88PID7349 as declared. + +## E93 input8/output4 zero-step conversion +- Checkpoint SHA-256: `0719b4dce554764ef69181d8b19d8da11849ef32b35391ffee6700e639a73114`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 36.244373083114624 seconds. +- Overall skill 0.375817; relative MASE 0.747921; relative WQL 0.520916. +- term skill: long=0.4024, medium=0.4024, short=0.3547. +- domain skill: Econ/Fin=0.1375, Energy=0.2390, Healthcare=0.4236, Nature=0.4343, Sales=0.3477, Transport=0.4607, Web/CloudOps=0.4989. +- frequency skill: A=0.3643, D=0.3468, H=0.3925, M=0.0737, Q=0.1911, S=0.4237, T=0.4382, W=0.2424. +- variates skill: multivariate=0.3939, univariate=0.3610. +- Outcome: Initial main0.375817443 is below shared E71patch8parent0.381178739 but above fullpatch4 conversion0.370553128. Keeping the input projection preserves more initial accuracy; this is initialization behavior, not evidence for trained superiority. Conversion0.663439CPU seconds; no optimizer updates; queued matched seed401/B32/LR2e-5/12000 continuation. + +## E87 validation-only context/error audit +Read the established9473-instance screen, both selected member prediction caches, and the cached SeasonalNaive reference; no optimization or changed inference. Compute fixed context4096/recent512 level shifts, scale ratios, and RMS/mean-absolute-deviation ratios, then macro aggregate conditional median-error ratios over represented configurations. CPU2.732488s, zero optimizer updates; complete bins/counts/per-channel metrics in context_error_audit.json. Median-error ratios across recent-level-shift bins[0,.25),[.25,.75),[.75,1.5),[1.5,inf) are.73083,.71495,.77366,.88600. Last bin has only40rows/eightconfigurations. Outlier-dominance bins do not show a monotonic weakness; the highest ratio bin performs relatively well against SeasonalNaive. These are descriptive validation subsets, with different configurations represented; not benchmark skill, independent evidence, or causal estimates. No inference-rule change follows from this audit. + +## E79 fresh146M first4000 +- Checkpoint SHA-256: `ce1d3cf0e49de7acc168ca818424fef4c58feebc49e35ebccd79e6a7450c810a`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 41.41028594970703 seconds. +- Overall skill 0.328134; relative MASE 0.791714; relative WQL 0.570160. +- term skill: long=0.3561, medium=0.3699, short=0.3002. +- domain skill: Econ/Fin=0.1210, Energy=0.2038, Healthcare=0.2653, Nature=0.3940, Sales=0.2893, Transport=0.4160, Web/CloudOps=0.4518. +- frequency skill: A=0.3724, D=0.3122, H=0.3525, M=-0.0778, Q=0.2007, S=0.4142, T=0.3812, W=0.1775. +- variates skill: multivariate=0.3500, univariate=0.3102. +- Outcome: Main0.328133919 trails matched37M4000 0.341861940. Both use own random seed307, batch48, LR2e-4/96000, identical sampled windows and modern paired/slowAR/horizon recipe. This is early optimization, not evidence that larger capacity cannot improve. Continue planned8000/16000 while inspecting matched training loss. Static-compiler startup/abandoned duplicate launches were recorded separately. + +E93 input8/output4 seed401 training started at 2026-10-23T04:18:59Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E79 matched training-loss diagnostic at first4000: mean50-step-block losses37M/146M over steps1..400=.434227/.430111,401..1000=.397594/.402231,1001..2000=.381371/.386349,2001..3000=.374289/.377926,3001..4000=.361665/.366583. The larger model starts slightly better during warmup but trails after reachingLR2e-4. This is consistent with an optimization mismatch, not proof of its cause. First4000 training-loop times including static compilation:37M1106.1s,146M1563.7s; both share the sole H100. + +## E94 fresh146M with half learning rate — prepared +Hypothesis: the commonLR2e-4 is too aggressive at width1024, obscuring capacity benefits. Add one matched fresh146M arm withLR1e-4 only; same original random initialization SHA c9693619ca6277c26fef3b2bde37ff6796bec97b3af9f94588bbc5ddd329ec90, seed307, B48,96000-step cosine horizon,400 warmup, static compiled paired loss, allowed packed_sample/source weights, slowAR synthetic generator, requested-horizon augmentation, overflow fallback, optimizer/EMA, save/checkpoint cadence. All original E79 arms continue unchanged. Reuse the exact code and already verified width1024 maximum-shape/compiled-gradient fixtures; no architecture or memory change warrants rerunning them. Screen4000/8000/16000/24000, continuing longer only if supported. Queue after E89patch8control releases its allocation. No pretrained assets, new sources or generators. + +## E79 fresh37M at8000 +- Checkpoint SHA-256: `5e821b81ac42babdc67ed0f5368da07941be075784d1ded6ab6c65539458faf0`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 29.999473094940186 seconds. +- Overall skill 0.353509; relative MASE 0.763149; relative WQL 0.547666. +- term skill: long=0.3727, medium=0.3917, short=0.3307. +- domain skill: Econ/Fin=0.1196, Energy=0.2092, Healthcare=0.3930, Nature=0.4203, Sales=0.3250, Transport=0.4394, Web/CloudOps=0.4807. +- frequency skill: A=0.3577, D=0.3366, H=0.3677, M=0.0393, Q=0.1747, S=0.4203, T=0.4060, W=0.2420. +- variates skill: multivariate=0.3701, univariate=0.3400. +- Outcome: Main0.353508836 improves4000 0.341861940, still below the mature published model. Continue declared16k/24k/48k; own random seed307/B48/LR2e-4/96k, no pretrained assets. Fresh146M is still before its matched8k. + +## E90 daily-weekly loss scale first1000 +- Checkpoint SHA-256: `e0e1e3967da656eaa8184317b080a5f2064081d0d53e969c4f8a4894fa92d4f2`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 26.965925931930542 seconds. +- Overall skill 0.376961; relative MASE 0.744602; relative WQL 0.521322. +- term skill: long=0.3990, medium=0.4061, short=0.3567. +- domain skill: Econ/Fin=0.1300, Energy=0.2364, Healthcare=0.4663, Nature=0.4300, Sales=0.3344, Transport=0.4667, Web/CloudOps=0.4984. +- frequency skill: A=0.3661, D=0.3567, H=0.3951, M=0.1038, Q=0.1981, S=0.4227, T=0.4348, W=0.2267. +- variates skill: multivariate=0.3927, univariate=0.3641. +- Outcome: Main0.376961315 slightly exceeds matched overflow-only E801000 0.376804394. Too early for a method-selection claim; inspect3k/6k and frequency groups. Seed197/B64/LR2e-5, only exactdaily/weeklyseasonallosslag changes. + +## E88 late patch8 slowAR final12000 +- Checkpoint SHA-256: `81e020113b23e84d1df64458e7c1b4a4f6ad6ee24f7cdb601aeb3fbe5d20251f`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 33.93403601646423 seconds. +- Overall skill 0.379111; relative MASE 0.744397; relative WQL 0.517873. +- term skill: long=0.4044, medium=0.4045, short=0.3590. +- domain skill: Econ/Fin=0.1445, Energy=0.2396, Healthcare=0.4185, Nature=0.4414, Sales=0.3428, Transport=0.4624, Web/CloudOps=0.5058. +- frequency skill: A=0.3764, D=0.3621, H=0.3953, M=0.0393, Q=0.1919, S=0.4250, T=0.4450, W=0.2233. +- variates skill: multivariate=0.3996, univariate=0.3623. +- Outcome: Final0.379111337 is below exact original E71final12000 0.379467684. Its small9k gain did not persist, and neither checkpoint exceeds selected6k parent0.381178739. Reject the late slowAR continuation; no new package or earlier-cutoff selection. Resumed8000->12000 completed in1415.491672loopseconds, preserving original optimizer/EMA/RNG/prefetched batch; seed197/B64/same globalcosine. E93 starts in the released allocation. + +E92 robust normalization seed197 training started at 2026-10-23T04:21:37Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +## E95 broader source coverage at fixed packed volume — preparation +Hypothesis: restricting each large source to eight shards and early record batches limits the useful diversity, especially for buildings (127shards) and each climate source (96shards). Prepare packed_stratified with the same95allowlisted directories,24Mpoint/source soft cap, min16, maxcrop131072 as packed_sample. Select a uniform shuffled order of flattened series across every shard and record batch; take the first finite crops until the cap. Keep exact per-row frequency, exclude all-missing crops, and use independent deterministic per-series crop RNG. Thus coverage, row-frequency handling and empty-crop filtering are declared changes; this is not a claim that each can be isolated if actual mixed-frequency cases occur. Source mixture probabilities will remain those from packed_sample in any training comparison. No external data or validation values enter packing. + +Packer fixtures cover scalar, variable-channel and fixed-channel Arrow targets, null parents/variates, all-missing series, differing row frequencies and long crops:44retained series replay exactly, two fresh outputs have identical hashes,0.240463CPU seconds, zero updates. Initial fixture caught Arrow boolean conversion requiring zero_copy_only=False; fixed before any real-data packing. Per-directory receipts record selected source coordinates, shard coverage, binary hashes and elapsed time; output-wide lock and final atomic meta.json prevent reading an incomplete pack. + +Planned first training comparison, contingent on the completed real-data audit: own E62 parent, seed197/B64/LR2e-5/12000 paired steps with the exact E80overflow-control model/data code, changing only the packed corpus while retaining source probabilities from packed_sample. Screen1k/3k/6k/12k. No fresh training is launched yet; prefer the E90allocation after it finishes. A later fresh-capacity/data comparison remains a separate decision. + +## E80 overflow-only final12000 +- Checkpoint SHA-256: `f11d056b95f1c5eeef174265ebc51742952600e0dae1fa52900860447d5be819`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 24.899142265319824 seconds. +- Overall skill 0.377424; relative MASE 0.744802; relative WQL 0.520408. +- term skill: long=0.4025, medium=0.4056, short=0.3563. +- domain skill: Econ/Fin=0.1303, Energy=0.2363, Healthcare=0.4508, Nature=0.4285, Sales=0.3332, Transport=0.4665, Web/CloudOps=0.5051. +- frequency skill: A=0.3608, D=0.3513, H=0.3946, M=0.1037, Q=0.1974, S=0.4251, T=0.4405, W=0.2175. +- variates skill: multivariate=0.3963, univariate=0.3620. +- Outcome: Final0.377423946 effectively ties original E67paired12000 0.377427077; strongest main checkpoint remained3000. Numerical correction is still required for rare overflow but does not cause a consistent predictive gain by itself. Completed2264.013627training-loop seconds on sharedH100, seed197/B64/LR2e-5. E92robust normalization starts in its allocation. + +## E90 daily-weekly loss scale at3000 +- Checkpoint SHA-256: `a985b1af082ccd6e23a9ec3fd6d6bdd8e8f9ae44900d2c0e1f8d3737cd9fd8d3`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 26.59094786643982 seconds. +- Overall skill 0.378417; relative MASE 0.743144; relative WQL 0.519906. +- term skill: long=0.4018, medium=0.4067, short=0.3579. +- domain skill: Econ/Fin=0.1345, Energy=0.2395, Healthcare=0.4551, Nature=0.4311, Sales=0.3328, Transport=0.4655, Web/CloudOps=0.5031. +- frequency skill: A=0.3691, D=0.3557, H=0.3972, M=0.1020, Q=0.1974, S=0.4233, T=0.4378, W=0.2245. +- variates skill: multivariate=0.3966, univariate=0.3635. +- Outcome: Main0.378417277 trails matched E803000 0.378663825 after a small first1000 gain. Continue6000/12000 and inspect targeted frequency groups; no publication. Seed197/B64/LR2e-5. + +## E92 robust normalization first1000 +- Checkpoint SHA-256: `0067828e667139743a9908ff3a6d68f704197a1609935c64ae6f7a15c84884fa`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 27.180058240890503 seconds. +- Overall skill 0.377596; relative MASE 0.742948; relative WQL 0.521418. +- term skill: long=0.3986, medium=0.4060, short=0.3580. +- domain skill: Econ/Fin=0.1327, Energy=0.2358, Healthcare=0.4628, Nature=0.4326, Sales=0.3487, Transport=0.4670, Web/CloudOps=0.4977. +- frequency skill: A=0.3673, D=0.3569, H=0.3949, M=0.1225, Q=0.1981, S=0.4216, T=0.4346, W=0.2284. +- variates skill: multivariate=0.3923, univariate=0.3656. +- Outcome: Main0.377596201 exceeds matched E801000 0.376804394 by0.000791807. Early evidence only; changes fixed context mean/RMS estimation to median-centered winsorized statistics, retaining original history normalization bounds. Continue3000/6000 and earlier cutoffs if the gain persists. Seed197/B64/LR2e-5. + +## E93 input8/output4 first1000 +- Checkpoint SHA-256: `0aecc5af0ac9b0caf9949bd6601f2fe4ad96c5fdc9e1287c1ff2237439367b7a`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 35.963313579559326 seconds. +- Overall skill 0.379099; relative MASE 0.744060; relative WQL 0.518128. +- term skill: long=0.4046, medium=0.4041, short=0.3591. +- domain skill: Econ/Fin=0.1359, Energy=0.2378, Healthcare=0.4437, Nature=0.4406, Sales=0.3497, Transport=0.4667, Web/CloudOps=0.5000. +- frequency skill: A=0.3584, D=0.3472, H=0.3946, M=0.1244, Q=0.1932, S=0.4224, T=0.4398, W=0.2474. +- variates skill: multivariate=0.3943, univariate=0.3667. +- Outcome: Main0.379098968 exceeds fullpatch4 E891000 0.378250742 but trails matched patch8control1000 0.380274173. Keeping input8 retains initial accuracy; assess later recovery against both existing arms before an architectural conclusion. Seed401/B32/LR2e-5. + +E95 pack completed in109.068074s on two CPUworkers:95directories,342661series,952527771points (3.810GB), versus original357789series/958745103points. Identical softcaps, actualpointcount0.65%lower because overshoot/serieslengths differ. Building127/127shards, borg31/31, eachlargeclimate96/96 are represented. No selected candidate row differed from its shardfirst frequency;103all-missing crops excluded. Exact real-data audit replayed260series acrossall95dirs against independent Arrow row/var access, including frequencies and cropstarts; source probabilities bitwise equal to original. Seed461,7.897138CPU seconds, no validationdata/optimizerupdates. Training nowqueued afterE90PID8949 under the predeclared E80matched recipe. + +## E89 fullpatch4 at6000 +- Checkpoint SHA-256: `e50a2d43bb3b6b66a94a6a2d9d62f0cb3e404310352e0357cfe0f2a874a21727`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 58.3371467590332 seconds. +- Overall skill 0.380541; relative MASE 0.742008; relative WQL 0.517151. +- term skill: long=0.4046, medium=0.4023, short=0.3625. +- domain skill: Econ/Fin=0.1470, Energy=0.2361, Healthcare=0.4746, Nature=0.4451, Sales=0.3448, Transport=0.4655, Web/CloudOps=0.4969. +- frequency skill: A=0.3637, D=0.3535, H=0.3958, M=0.1449, Q=0.2068, S=0.4213, T=0.4378, W=0.2471. +- variates skill: multivariate=0.3932, univariate=0.3703. +- Outcome: Main0.380540506 improves3000 0.379842915 and beats matched patch8control6000 0.377734884, but remains below selected starting E71patch8parent0.381178739. Check all three earlier cutoffs to assess stability and possible ensemble complementarity. Seed401/B32/LR2e-5; same original generator and fresh optimizer. + +## E93 input8/output4 at3000 +- Checkpoint SHA-256: `1b82ca84aca9aaa2b8b6b1f944a865b6aad7560257f88b053ea5f62bf63a4eb8`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 35.112743854522705 seconds. +- Overall skill 0.379808; relative MASE 0.743342; relative WQL 0.517444. +- term skill: long=0.4052, medium=0.4025, short=0.3608. +- domain skill: Econ/Fin=0.1447, Energy=0.2358, Healthcare=0.4455, Nature=0.4421, Sales=0.3442, Transport=0.4692, Web/CloudOps=0.5011. +- frequency skill: A=0.3652, D=0.3489, H=0.3934, M=0.1161, Q=0.2001, S=0.4227, T=0.4417, W=0.2532. +- variates skill: multivariate=0.3949, univariate=0.3675. +- Outcome: Main0.379808189 nearly matches fullpatch4_3000 0.379842915 and exceeds matched patch8control3000 0.378945686. Much of the early finer-patch gain may be retained by output blocks alone, with7082MiB max-shape reserve versus11376MiB fullpatch4. Continue6000/12000; seed401/B32/LR2e-5. + +## E92 robust normalization at3000 +- Checkpoint SHA-256: `348934d9fbcc8f2a8c45f7ebdc6cd971678d190bcf6ec0c0bd1cf80a12334bbc`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 26.601238489151 seconds. +- Overall skill 0.378938; relative MASE 0.741788; relative WQL 0.519985. +- term skill: long=0.4019, medium=0.4060, short=0.3591. +- domain skill: Econ/Fin=0.1339, Energy=0.2386, Healthcare=0.4552, Nature=0.4314, Sales=0.3481, Transport=0.4662, Web/CloudOps=0.5030. +- frequency skill: A=0.3665, D=0.3532, H=0.3965, M=0.1254, Q=0.1981, S=0.4218, T=0.4381, W=0.2295. +- variates skill: multivariate=0.3961, univariate=0.3649. +- Outcome: Main0.378937598 exceeds matched overflow-only E803000 0.378663825 by0.000273773 and postlossE753000 0.378813891 by0.000123707. Small primary gain persists; check all three earlier cutoffs before any composition or selection. Same seed197/B64/LR2e-5. Float64 robust statistics replace the old normalization throughout both network and context loss-scale calculation. + +## E96 equal three-resolution ensemble — predeclared selection probe +Hypothesis: fullpatch4 E89EMA6000 adds complementary monthly/weekly behavior to the published E87patch16/patch8 pair. Test exactly equal1/3 quantile averaging after each member applies its own unchanged rules, ordered E83postloss+slowAR, E71patch8_6000, E89patch4_6000. No coefficient sweep, no additional optimization, no dataset/frequency selection. Every member must forecast every instance if packaged. Compare all four established cached cutoffs; require a complete public-contract replay and relocation/composition checks before any publication. E89patch4_6000 hash e50a2d43bb3b6b66a94a6a2d9d62f0cb3e404310352e0357cfe0f2a874a21727; earlier cutoffs currently running. + +E94 fresh146M halfLR seed307 training started at 2026-10-23T04:36:27Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E96 main cached probe: skill0.384594982171353,relMASE0.737391433574142,relWQL0.513598773629635,CPU1.411123s; currentE87main0.383685556664058. Promising0.000909426 main improvement with fixed1/3 weights; assemble a separate candidate while the remaining earlier-cutoff predictions finish. No publication before full public-contract replay/checks. + +## E89 patch4_6000 backcast_evals +- Checkpoint SHA-256: `e50a2d43bb3b6b66a94a6a2d9d62f0cb3e404310352e0357cfe0f2a874a21727`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 57.45131206512451 seconds. +- Overall skill 0.336072; relative MASE 0.796655; relative WQL 0.553314. +- term skill: long=0.4016, medium=0.3589, short=0.2999. +- domain skill: Econ/Fin=0.1775, Energy=0.2230, Healthcare=0.4006, Nature=0.3706, Sales=0.4131, Transport=0.3680, Web/CloudOps=0.4502. +- frequency skill: A=0.3160, D=0.3472, H=0.3715, M=0.2107, Q=0.2381, S=0.3496, T=0.3318, W=0.2614. +- variates skill: multivariate=0.3526, univariate=0.3226. +- Outcome: All three earlier cutoffs trail selected E71patch8_6000, so no standalone replacement. The predeclared equal three-model ensemble gains on main/earlier1/earlier2 and nearly ties earlier3; assess exact package replay. + +## E89 patch4_6000 backcast2_evals +- Checkpoint SHA-256: `e50a2d43bb3b6b66a94a6a2d9d62f0cb3e404310352e0357cfe0f2a874a21727`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 50.43167591094971 seconds. +- Overall skill 0.360368; relative MASE 0.769660; relative WQL 0.531571. +- term skill: long=0.3665, medium=0.3905, short=0.3460. +- domain skill: Econ/Fin=0.1116, Energy=0.2401, Healthcare=0.3295, Nature=0.4708, Sales=0.5563, Transport=0.4201, Web/CloudOps=0.4365. +- frequency skill: A=0.2963, D=0.4200, H=0.3926, M=0.1575, Q=0.1533, S=0.2829, T=0.3608, W=0.2868. +- variates skill: multivariate=0.3615, univariate=0.3594. +- Outcome: All three earlier cutoffs trail selected E71patch8_6000, so no standalone replacement. The predeclared equal three-model ensemble gains on main/earlier1/earlier2 and nearly ties earlier3; assess exact package replay. + +## E89 patch4_6000 backcast3_evals +- Checkpoint SHA-256: `e50a2d43bb3b6b66a94a6a2d9d62f0cb3e404310352e0357cfe0f2a874a21727`. +- Evaluation: 93 configurations, 8812 instances, 0 failed configurations; 55.502692461013794 seconds. +- Overall skill 0.383331; relative MASE 0.748104; relative WQL 0.508326. +- term skill: long=0.3963, medium=0.3680, short=0.3844. +- domain skill: Econ/Fin=0.1767, Energy=0.3066, Healthcare=0.2424, Nature=0.4983, Sales=0.3975, Transport=0.5047, Web/CloudOps=0.3929. +- frequency skill: A=0.3000, D=0.4228, H=0.4042, M=0.1613, Q=0.2599, S=0.3033, T=0.4260, W=0.2276. +- variates skill: multivariate=0.3668, univariate=0.3960. +- Outcome: All three earlier cutoffs trail selected E71patch8_6000, so no standalone replacement. The predeclared equal three-model ensemble gains on main/earlier1/earlier2 and nearly ties earlier3; assess exact package replay. + +## E92 robust_3000 backcast_evals +- Checkpoint SHA-256: `348934d9fbcc8f2a8c45f7ebdc6cd971678d190bcf6ec0c0bd1cf80a12334bbc`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 26.711654901504517 seconds. +- Overall skill 0.335781; relative MASE 0.797334; relative WQL 0.553328. +- term skill: long=0.3997, medium=0.3581, short=0.3006. +- domain skill: Econ/Fin=0.1550, Energy=0.2286, Healthcare=0.4082, Nature=0.3646, Sales=0.3970, Transport=0.3731, Web/CloudOps=0.4489. +- frequency skill: A=0.3150, D=0.3499, H=0.3669, M=0.1858, Q=0.2309, S=0.3411, T=0.3343, W=0.2844. +- variates skill: multivariate=0.3520, univariate=0.3226. +- Outcome: Earlier cutoff is below matched E80overflow-only3000. The main gain does not repeat temporally; continue the declared6k/12k training but do not select or transfer this3k checkpoint. + +## E92 robust_3000 backcast2_evals +- Checkpoint SHA-256: `348934d9fbcc8f2a8c45f7ebdc6cd971678d190bcf6ec0c0bd1cf80a12334bbc`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 25.730652570724487 seconds. +- Overall skill 0.358075; relative MASE 0.771535; relative WQL 0.534088. +- term skill: long=0.3627, medium=0.3886, short=0.3441. +- domain skill: Econ/Fin=0.1063, Energy=0.2373, Healthcare=0.3471, Nature=0.4675, Sales=0.5490, Transport=0.4200, Web/CloudOps=0.4314. +- frequency skill: A=0.3543, D=0.4241, H=0.3906, M=0.1525, Q=0.1489, S=0.2804, T=0.3600, W=0.2550. +- variates skill: multivariate=0.3640, univariate=0.3532. +- Outcome: Earlier cutoff is below matched E80overflow-only3000. The main gain does not repeat temporally; continue the declared6k/12k training but do not select or transfer this3k checkpoint. + +## E92 robust_3000 backcast3_evals +- Checkpoint SHA-256: `348934d9fbcc8f2a8c45f7ebdc6cd971678d190bcf6ec0c0bd1cf80a12334bbc`. +- Evaluation: 93 configurations, 8812 instances, 0 failed configurations; 25.396876335144043 seconds. +- Overall skill 0.387946; relative MASE 0.738909; relative WQL 0.506977. +- term skill: long=0.3950, medium=0.3615, short=0.3950. +- domain skill: Econ/Fin=0.1698, Energy=0.3214, Healthcare=0.2587, Nature=0.5024, Sales=0.3958, Transport=0.5033, Web/CloudOps=0.3888. +- frequency skill: A=0.3650, D=0.4381, H=0.4044, M=0.1203, Q=0.2538, S=0.2862, T=0.4293, W=0.2622. +- variates skill: multivariate=0.3739, univariate=0.3988. +- Outcome: Earlier cutoff is below matched E80overflow-only3000. The main gain does not repeat temporally; continue the declared6k/12k training but do not select or transfer this3k checkpoint. + +### E96 four-cutoff equal ensemble selection +{ + "valid_screen": { + "candidate": 0.384594982171353, + "E87": 0.38368555666405846, + "cpu_seconds": 1.4111226599197835, + "groups": { + "term": { + "short": 0.3668858469093572, + "medium": 0.4077230710992221, + "long": 0.40635338876251526 + }, + "domain": { + "Econ/Fin": 0.14395536397825648, + "Energy": 0.24582427470581425, + "Healthcare": 0.4767476122577817, + "Nature": 0.44212246483547213, + "Sales": 0.34646504369353526, + "Transport": 0.46693421316839256, + "Web/CloudOps": 0.5034023313828211 + }, + "freq": { + "A-DEC": 0.37656040036707195, + "Q-DEC": 0.20077338922637145, + "M": 0.1185115893357509, + "W-SUN": 0.10525031522270123, + "D": 0.36189985298754856, + "H": 0.40144834519193306, + "15T": 0.21610876368843102, + "W-FRI": 0.015068318308339101, + "10T": 0.6264434570332911, + "W-TUE": 0.6245141515082602, + "W-THU": 0.20878118292775294, + "W-WED": 0.32985721333447826, + "5T": 0.5176096384720621, + "10S": 0.4242433666861485 + } + } + }, + "valid_backcast": { + "candidate": 0.33975008510701665, + "E87": 0.33897078175106665, + "cpu_seconds": 1.2138579529710114, + "groups": { + "term": { + "short": 0.30570414138317814, + "medium": 0.3609015682591047, + "long": 0.4020582836765434 + }, + "domain": { + "Econ/Fin": 0.1743856017696448, + "Energy": 0.23046498734519416, + "Healthcare": 0.4113970603320174, + "Nature": 0.3716618234366038, + "Sales": 0.408030987603086, + "Transport": 0.3731794302285525, + "Web/CloudOps": 0.451509629697311 + }, + "freq": { + "A-DEC": 0.3279717662601809, + "Q-DEC": 0.2380599535136222, + "M": 0.19905386528004188, + "W-SUN": 0.04880471728272662, + "D": 0.35315023295661196, + "H": 0.3711978117933119, + "15T": 0.22358807419379623, + "W-FRI": 0.22824822674434042, + "10T": 0.322600023714811, + "W-TUE": 0.547413555209586, + "W-THU": 0.24438059706818105, + "W-WED": 0.3628856336883284, + "5T": 0.4412301876136191, + "10S": 0.3475276102698931 + } + } + }, + "valid_backcast2": { + "candidate": 0.36472017597795625, + "E87": 0.36315845377936284, + "cpu_seconds": 1.3266870640218258, + "groups": { + "term": { + "short": 0.35192307261410094, + "medium": 0.39289736169887557, + "long": 0.36886086281920194 + }, + "domain": { + "Econ/Fin": 0.11936723839740782, + "Energy": 0.24270008941522314, + "Healthcare": 0.34837441457268725, + "Nature": 0.4771559710187644, + "Sales": 0.556902251507494, + "Transport": 0.4248139750422676, + "Web/CloudOps": 0.43759149119826346 + }, + "freq": { + "A-DEC": 0.3311026308933668, + "Q-DEC": 0.15378540101465998, + "M": 0.16020062601089513, + "W-SUN": 0.06801117727416384, + "D": 0.4305843857907744, + "H": 0.3953546731641614, + "15T": 0.10577250483830014, + "W-FRI": 0.15138877778445536, + "10T": 0.5095975609862264, + "W-TUE": 0.10847360375070303, + "W-THU": 0.3459885667095576, + "W-WED": 0.5660655173116367, + "5T": 0.4731902812063754, + "10S": 0.28592028110498247 + } + } + }, + "valid_backcast3": { + "candidate": 0.389238119545644, + "E87": 0.3893067316884232, + "cpu_seconds": 1.2415199128445238, + "groups": { + "term": { + "short": 0.39417395687284207, + "medium": 0.36821605147108216, + "long": 0.396861173789945 + }, + "domain": { + "Econ/Fin": 0.18370373648624572, + "Energy": 0.31629238352886546, + "Healthcare": 0.2377535675450031, + "Nature": 0.5072143926034133, + "Sales": 0.40117499834543047, + "Transport": 0.5090476109622039, + "Web/CloudOps": 0.39339169169310506 + }, + "freq": { + "A-DEC": 0.3399962169002898, + "Q-DEC": 0.25825750036173534, + "M": 0.14131510737146213, + "W-SUN": 0.1672885644844745, + "D": 0.4408980632536098, + "H": 0.4067494659465881, + "15T": 0.2551059021117046, + "W-FRI": 0.016583036267497464, + "10T": 0.6063638743127748, + "W-TUE": 0.2532467022883038, + "W-THU": 0.3464821396686204, + "W-WED": 0.3777825141129817, + "5T": 0.46382868467749705, + "10S": 0.29461185618122454 + } + } + } +} +Three gains and effectively tied third cutoff justify full public-interface replay. Candidate descriptor1503d92ce031ec0c0e0533ece20d0516a0eceb134802d51746e24a44c4b5ee9b,110064120parameters. Every member retains its exact model code; shared postprocessing hashes checked during assembly. E87 remains published pending complete replay and checks. + +Fresh37M state preservation: wait for its complete recovery024000 state and archive model/EMA/Adam/allRNG/prefetchedbatch to random_capacity_512_recovery024000.pt. This is a zero-update checkpoint snapshot, not a new experiment or a changed active schedule. It preserves the option of a later controlled annealing comparison without repeating pretraining. No continuation is queued. + +Data preparation extension, no training scheduled: create packed_stratified_large with192Mpoint/source softcaps using the identical E95all-shard code/min16/maxcrop131072 and directory/per-series RNGs. Because global series order and crops are cap-independent, the24Mpack should be an exact per-source binary/record prefix of the192Mpack. Check that invariant before any future data-scaling experiment. This artifact is separate from E95training, which remains queued on the24Mpack. No new source directories/generators or validation data. Two CPUworkers; GPUtraining schedules unchanged. + +## E79 fresh146M at8000 +- Checkpoint SHA-256: `12ad3e4b1be6b38b31a3dee057805e2a532f48fe3723f6bcefb15ba63ca8ee97`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 39.91020727157593 seconds. +- Overall skill 0.343979; relative MASE 0.773251; relative WQL 0.556563. +- term skill: long=0.3755, medium=0.3854, short=0.3146. +- domain skill: Econ/Fin=0.1160, Energy=0.1969, Healthcare=0.3682, Nature=0.4144, Sales=0.3129, Transport=0.4343, Web/CloudOps=0.4719. +- frequency skill: A=0.3662, D=0.3440, H=0.3640, M=-0.0514, Q=0.1891, S=0.4174, T=0.3968, W=0.1930. +- variates skill: multivariate=0.3619, univariate=0.3293. +- Outcome: Main0.343979357 improves4000 0.328133919; still below matched37M8000 0.353508836, with a narrowing gap. Continue declared16k/24k; seed307/B48/LR2e-4/96k. E94halfLR is a separate matched optimization arm. + +## E79 fresh37M at16000 +- Checkpoint SHA-256: `a83c2bee0b284ab22ebb5107d79e2ff2ecd29a7de9a384d46d175dbffcf2c5b4`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 29.48415732383728 seconds. +- Overall skill 0.355318; relative MASE 0.763624; relative WQL 0.544266. +- term skill: long=0.3802, medium=0.3960, short=0.3290. +- domain skill: Econ/Fin=0.1292, Energy=0.2122, Healthcare=0.3475, Nature=0.4103, Sales=0.3304, Transport=0.4455, Web/CloudOps=0.4937. +- frequency skill: A=0.3719, D=0.3210, H=0.3755, M=0.0179, Q=0.1815, S=0.4231, T=0.4098, W=0.2504. +- variates skill: multivariate=0.3787, univariate=0.3361. +- Outcome: Main0.355318072 improves8000 0.353508836 only modestly. Continue original96k schedule unchanged and preserve complete24kstate for a possible later annealing comparison. Seed307/B48/LR2e-4, own scratch initialization. + +## E90 daily-weekly loss scale at6000 +- Checkpoint SHA-256: `d6b3d3e30290a9360789d236565ecb0acf410d4605bb50821f30b7886ed2d349`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 23.801913261413574 seconds. +- Overall skill 0.378435; relative MASE 0.743624; relative WQL 0.519542. +- term skill: long=0.4018, medium=0.4074, short=0.3577. +- domain skill: Econ/Fin=0.1254, Energy=0.2397, Healthcare=0.4663, Nature=0.4297, Sales=0.3355, Transport=0.4644, Web/CloudOps=0.5032. +- frequency skill: A=0.3677, D=0.3561, H=0.3960, M=0.0989, Q=0.1934, S=0.4243, T=0.4382, W=0.2295. +- variates skill: multivariate=0.3971, univariate=0.3632. +- Outcome: Main0.378434765 slightly exceeds matched E806000 0.378288765, reversing its small3k deficit. Effect is inconsistent and small; finish12k, then assess targeted frequency groups. Seed197/B64/LR2e-5. + +## E89 patch8 control final12000 +- Checkpoint SHA-256: `80519b37e670050b23c231718210bf49aaa64b5396e301a44975140d8075a85a`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 35.017725229263306 seconds. +- Overall skill 0.380847; relative MASE 0.742398; relative WQL 0.516367. +- term skill: long=0.4032, medium=0.4046, short=0.3626. +- domain skill: Econ/Fin=0.1449, Energy=0.2438, Healthcare=0.4363, Nature=0.4433, Sales=0.3387, Transport=0.4634, Web/CloudOps=0.5028. +- frequency skill: A=0.3691, D=0.3616, H=0.3940, M=0.0837, Q=0.1978, S=0.4249, T=0.4461, W=0.2290. +- variates skill: multivariate=0.3988, univariate=0.3662. +- Outcome: Final0.380847096 rebounds from6000 0.377734884 as the learning rate falls; still below initial selected E71parent0.381178739. Preserve as the final matched reference for fullpatch4 and input8/output4, which are still training. Seed401/B32/LR2e-5; do not infer final architectural superiority from the6k comparison alone. Released allocation to E94fresh146M halfLR. + +## Larger all-shard data preparation, no optimizer updates +Same fixed global-series order and crop rules as E95, raising only the per-directory cap from24M to192M points. Packed5,354,822,975points in1,059,868series across95allowed directories;125.173232s with2CPU workers. Independent260series Arrow replay plus binary/record-prefix checks for all95directories passed in19.984999s, seed461; source probabilities bitwise match the original source mixture. The24M pack is exactly a prefix within every source. Audit stratified_large_audit.json; no validation read and no training on this larger pack scheduled yet. + +E89patch8control final12000 training loop2729.052105s on shared singleH100; validation/hash/group results recorded above. No continuation of completed control. + +## E92 robust normalization at6000 +- Checkpoint SHA-256: `3c76ff01356bdf0de6219a0937fe43c25175caef19d4324b4e73c39310659fce`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 26.452584981918335 seconds. +- Overall skill 0.377780; relative MASE 0.743560; relative WQL 0.520681. +- term skill: long=0.4010, medium=0.4074, short=0.3568. +- domain skill: Econ/Fin=0.1250, Energy=0.2380, Healthcare=0.4626, Nature=0.4291, Sales=0.3516, Transport=0.4654, Web/CloudOps=0.5006. +- frequency skill: A=0.3659, D=0.3537, H=0.3957, M=0.1211, Q=0.1920, S=0.4237, T=0.4359, W=0.2278. +- variates skill: multivariate=0.3949, univariate=0.3638. +- Outcome: Main0.377780381 is below matched overflow-only E80at6000 0.378288765; earlier3k already regressed at all three cutoffs. Continue the predeclared final12k but no6k selection or composition. Seed197/B64/LR2e-5; normalization is the only changed factor. + +## E96 three-patch equal ensemble full public replay — selected +- Checkpoint SHA-256: `1503d92ce031ec0c0e0533ece20d0516a0eceb134802d51746e24a44c4b5ee9b`. +- Evaluation: 97 configurations, 151170 instances, 0 failed configurations; not separately timed seconds. +- Overall skill 0.380721; relative MASE 0.740204; relative WQL 0.518109. +- term skill: long=0.4003, medium=0.4066, short=0.3628. +- domain skill: Econ/Fin=0.1244, Energy=0.2393, Healthcare=0.4812, Nature=0.4421, Sales=0.3603, Transport=0.4671, Web/CloudOps=0.4951. +- frequency skill: A=0.2988, D=0.3660, H=0.3960, M=0.1437, Q=0.1866, S=0.4242, T=0.4364, W=0.2370. +- variates skill: multivariate=0.3947, univariate=0.3694. +- Outcome: Full validation skill0.380721445 improves E87by0.001091552; relativeMASE0.740203875 andrelativeWQL0.518108512 both improve. All97configs/151170instances,0failures,441.765573 inference seconds on shared singleH100. Every member forecasts every instance, equal1/3 weights fixed before replay; no extra training. Relocation bitwise/finite/ordered checks passed in33.315708s; independent third-member public replay10.848689s and bitwise three-member composition0.027575CPU s passed. Three of four selection cutoffs improve; third earlier loss0.0000686. Full55/97configs improve; descriptive dataset-bootstrap interval spans zero, so the small adaptive-validation gain is not a held-out significance claim. Publish the strongest complete replayable candidate; continue research. + +## E97 explicit weekly synthetic coverage — preparation +Hypothesis: the existing20% synthetic mixture omits[52,1]weekly seasonality, contributing to weak weekly transfer. Replace exactly a Bernoulli1/11 share of synthetic windows with the same own Fourier/trend/AR/intermittency/changepoint generator atperiods[52,1]. The total synthetic fraction remains20%; all ten original period families retain expected weight1/11 and the new weekly family gains1/11. Always consume the original generator first; independent RNGseed1000200 chooses/re-generates weekly windows, preserving every real row and non-replaced synthetic row and the original sampler/horizon streams bitwise. No other history/target-length change. Match E80overflow-only: ownE62 initialization,seed197/B64/LR2e-5/12000paired steps,original packed_sample/source probabilities/model/loss/runtime. Screen1/3/6/12k; require sampler stream/recovery checks before queueing after E92 completes. No validation used for generation or optimization; declare the new local generator if published. + +E97sampler check: {"seed": 467, "rows": 7680, "original_synthetic_rows": 1543, "replaced_weekly_rows": 134, "probability": 0.09090909090909091, "original_and_horizon_rng_bitwise_preserved": true, "unmodified_rows_bitwise_preserved": true, "finite_masks_unchanged": true, "all_numpy_rng_recovery_exact": true, "model_sha256": "44eeb23c037e91b8f67e432615ce46540a7ac4242919785f9c4218de23121499", "model_bitwise_unchanged": true, "seconds": 3.6882259079720825, "optimizer_updates": 0, "validation_data_read": false} +Queue declared after E92PID9354, requiring its final recovery. Existing model code is byte-identical to E80, so no new GPU arithmetic fixture is needed for this data-only change. Full command is weekly_synth_queue.json; launcher weekly_synth/launch.py. + +## E93 input8/output4 at6000 +- Checkpoint SHA-256: `8afbf4d2008aa7d5dab4ecbdcd1685f1a59b8fcb739a39f65fa8ba4b8cb4be9d`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 36.958359479904175 seconds. +- Overall skill 0.380224; relative MASE 0.742564; relative WQL 0.517292. +- term skill: long=0.4044, medium=0.4022, short=0.3620. +- domain skill: Econ/Fin=0.1461, Energy=0.2357, Healthcare=0.4662, Nature=0.4406, Sales=0.3432, Transport=0.4673, Web/CloudOps=0.5003. +- frequency skill: A=0.3656, D=0.3580, H=0.3941, M=0.1089, Q=0.2009, S=0.4225, T=0.4400, W=0.2482. +- variates skill: multivariate=0.3938, univariate=0.3692. +- Outcome: Main0.380224037 is between matched fullpatch4at6000 0.380540506 and patch8control0.377734884, below selected starting E71parent0.381178739. The decoder-only refinement recovers most of the full-resolution gain at lower encoder cost; continue final12k before any ensemble replacement. Seed401/B32/LR2e-5, same original generator. + +## E98 completion of deliberately pruned E75 schedule — declared revisit +E75 was intentionally stopped at3653 after earlier-cutoff regressions; that decision and its stopfile remain intact. E89patch8control subsequently recovered from0.377734884 at6k to0.380847096 at12k as learning rate decayed, showing that an intermediate trough can conceal a late recovery. Revisit the incomplete E75 schedule under a separate output, postloss_completion, by preserving and restoring its exact3653 model/EMA/Adam/allRNG/prefetched state. Continue original steps3654..12000 with the unchanged12k cosine schedule,seed197/B64/LR2e-5,original data/generator and postprocessing-aware objective. No new recipe factor and no reset; this is a completion of a previously pruned experiment, not an independent replication. Model/data/torch_post code byte-match the original archived provenance. Compare6k/12k against E80overflow-only, and examine earlier cutoffs before any composition. Queue only after E93 releases its allocation; retain original postloss.stop and all negative results. + +E98exact restart snapshot: {"source": "/workspace/research/runs/postloss/recovery.pt", "output": "/workspace/research/postloss_recovery003653.pt", "step": 3653, "sha256": "7d81547596356906fbac3a9aa3d47f84c27eabf845ba26e2c3c74ec369923c01", "seconds": 1.7649966378230602, "preserves": "model, EMA, optimizer, all RNG states and prefetched batch", "optimizer_updates": 0} +Queued after E93PID9274; launcher postloss/launch_completion.py, completecommand postloss_completion_queue.json. No GPU fixture repeated because model/loss/data code is identical to already verified E75, and no new optimizer update occurred during preparation. + +## E79 fresh37M at24000 +- Checkpoint SHA-256: `fbdb51213b3cf165273c4ea83c2386ec0bd496b182e31d57f421eee29c0da28a`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 29.551169872283936 seconds. +- Overall skill 0.357902; relative MASE 0.763517; relative WQL 0.539988. +- term skill: long=0.3831, medium=0.3912, short=0.3346. +- domain skill: Econ/Fin=0.1259, Energy=0.2164, Healthcare=0.3681, Nature=0.4073, Sales=0.3362, Transport=0.4526, Web/CloudOps=0.4919. +- frequency skill: A=0.3818, D=0.3384, H=0.3762, M=0.0189, Q=0.1970, S=0.4195, T=0.4130, W=0.2313. +- variates skill: multivariate=0.3766, univariate=0.3426. +- Outcome: Main0.357901602 improves16k0.355318072 but still trails the mature scratch lineage. Continue original96k schedule unchanged. Exact24k model/EMA/Adam/allRNG/prefetch snapshot preserved for a separately declared cooldown comparison; no continuation launched yet. Seed307/B48/LR2e-4/static compiled paired loss/slowAR original source mixture. + +E79small immutable24k snapshot: {"source": "/workspace/research/runs/random_capacity_512/recovery.pt", "output": "/workspace/research/random_capacity_512_recovery024000.pt", "step": 24000, "sha256": "32de72f3d09f8eee785c1d19a279541348de7ba129f79d62e5824e1223e19322", "seconds": 2.042371174087748, "preserves": "model, EMA, optimizer, all RNG states and prefetched batch", "optimizer_updates": 0} + +## E99 matched early cooldown of fresh37M model — declared +Hypothesis: E79fresh37M is held back by the still-high96k-schedule learning rate, rather than only a lack of capacity. Branch from the exact immutable24000 training state (SHA32de72f3d09f8eee785c1d19a279541348de7ba129f79d62e5824e1223e19322), preserving model/EMA/Adam/allRNG/prefetched batch. Change only the next12000-step learning-rate schedule: smoothly cosine-decay from the original step24000 rate0.00017656854249492381 to0.00001 at36000, with no optimizer reset or rewarmup. Original E79continues its96k schedule unchanged. Same seed307/B48/static compiled paired objective/slowAR generator/original pack and source probabilities. Compare candidate and original at global30000/36000; earlier windows only for a promising candidate. Queue after E89fullpatch4 releases its allocation. Default schedule arithmetic was verified bitwise at140000steps across three existing recipes; cooldown joins exactly and decreases monotonically. No GPU arithmetic or model change; reuse existing compiled/eager-gradient fixtures. +E99schedule checks: {"default_steps_bitwise_equal": 140000, "join_step": 24000, "join_lr": 0.00017656854249492381, "end_step": 36000, "end_lr": 1e-05, "schedule": "cosine from original step24000 rate to1e-5 by36000, no warmup/reset", "optimizer_updates": 0, "validation_data_read": false, "seconds": 0.14022667310200632} + +## E94 fresh146M halfLR first4000 +- Checkpoint SHA-256: `62c59ba50647d301fd5afd846b25c03271fe35b7d97fe63f5b2f7b931957090b`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 41.465235233306885 seconds. +- Overall skill 0.336895; relative MASE 0.784082; relative WQL 0.560794. +- term skill: long=0.3621, medium=0.3772, short=0.3107. +- domain skill: Econ/Fin=0.1179, Energy=0.2132, Healthcare=0.2861, Nature=0.4034, Sales=0.2941, Transport=0.4230, Web/CloudOps=0.4607. +- frequency skill: A=0.3563, D=0.3278, H=0.3600, M=-0.0301, Q=0.1751, S=0.4173, T=0.3872, W=0.1853. +- variates skill: multivariate=0.3571, univariate=0.3204. +- Outcome: Lower LR1e-4 improves matched146M4k main0.328133919 to0.336895196, still below37Mcontrol0.341861940. All three terms improve over high-LR146M; large capacity is not yet better than the smaller model. Afterwarmup its matched training loss beats high-LR146M consistently and slightly beats37M by steps2001..4000. Continue8k/16k before selecting a larger-corpus fresh recipe. Same initial weights/seed307/B48/data/objective; only learning rate changed. + +E79/E94matched first4k loss/compute: {"random_capacity_512": {"1-400": 0.4342267720028758, "401-1000": 0.3975941499322653, "1001-2000": 0.381371116399765, "2001-3000": 0.37428912545740606, "3001-4000": 0.3616653003469109, "through4000_loop_seconds": 1106.1}, "random_capacity_1024": {"1-400": 0.4301105997338891, "401-1000": 0.40223139939208824, "1001-2000": 0.3863489354848862, "2001-3000": 0.3779264837577939, "3001-4000": 0.36658306304365396, "through4000_loop_seconds": 1563.7}, "random_capacity_1024_halflr": {"1-400": 0.4339301012828946, "401-1000": 0.39748335411151253, "1001-2000": 0.3812341860383749, "2001-3000": 0.3728542738109827, "3001-4000": 0.36091782905161385, "through4000_loop_seconds": 1064.5}}. Shared-H100 process times include differing compiler-cache warm-up and are not exclusiveGPU efficiency measurements. + +E95 all-shard corpus seed197 training started at 2026-10-23T04:58:12Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +## E90 daily-weekly loss scale final12000 +- Checkpoint SHA-256: `4c5641b649529f9ac36c8679289c64bacf0b30e11dae8428620a0d59e56ffabc`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 24.18997550010681 seconds. +- Overall skill 0.377373; relative MASE 0.744776; relative WQL 0.520511. +- term skill: long=0.4024, medium=0.4060, short=0.3561. +- domain skill: Econ/Fin=0.1328, Energy=0.2359, Healthcare=0.4455, Nature=0.4306, Sales=0.3355, Transport=0.4657, Web/CloudOps=0.5050. +- frequency skill: A=0.3617, D=0.3526, H=0.3946, M=0.1059, Q=0.1975, S=0.4251, T=0.4399, W=0.2154. +- variates skill: multivariate=0.3960, univariate=0.3621. +- Outcome: Final main0.377373344 is effectively tied but slightly below matched E80overflow-only0.377423946. The isolated seasonal-loss-lag change has no sustained overall gain across1k/3k/6k/12k. Seed197/B64/LR2e-5; completed2702.166704 shared-H100 training-loop seconds. No candidate publication; E95broader-source-coverage starts in the released allocation. + +## E100 equal probability-distribution pool — predeclared cached comparison +Hypothesis: E96quantile averaging omits dispersion due to disagreement among its three members. Keep exactly the E83/E71/E89fixed models and equalweights, but average their CDFs and invert for the nine deciles. Each member distribution is piecewise-linear through its predicted deciles, extended to probabilities0/1 by one adjacent endpoint spacing; repeated quantiles retain atoms. Evaluate all four cached cutoffs, with no coefficient/tail-setting sweep and zero optimizer updates. Every member still forecasts every instance. Initial local fixture found only5.55e-17roundoff around exactzero; enforcing the mathematical bound between member quantiles at each level corrected it before any validation read. Identical-member, uniform-mixture, sign/affine, finite/ordered and chunk-size checks passed: {"seed": 479, "identical_members_bitwise_identity": true, "uniform_mixture_exact_within_float32": true, "atoms_at_zero_preserved": true, "ordered_finite": true, "chunk_size_bitwise_independent": true, "sign_reflection_and_affine_equivariance": true, "optimizer_updates": 0, "seconds": 0.09868191904388368} + +## E95 all-shard source coverage first1000 +- Checkpoint SHA-256: `17b2a03d282c141dbd68ac7f68df4626802f1a0323fff313f1a28192c5068b5b`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 26.06695008277893 seconds. +- Overall skill 0.377028; relative MASE 0.744820; relative WQL 0.521057. +- term skill: long=0.3997, medium=0.4068, short=0.3562. +- domain skill: Econ/Fin=0.1378, Energy=0.2376, Healthcare=0.4487, Nature=0.4311, Sales=0.3344, Transport=0.4669, Web/CloudOps=0.4993. +- frequency skill: A=0.3724, D=0.3543, H=0.3951, M=0.1080, Q=0.1986, S=0.4218, T=0.4370, W=0.2193. +- variates skill: multivariate=0.3940, univariate=0.3632. +- Outcome: Main0.377028371 exceeds matched E80at1000 0.376804394 by0.000223977. Medium/long improve while short is nearly unchanged; still below E62initialization0.377343216, so no selection claim yet. Continue3k/6k/12k. Seed197/B64/LR2e-5; pack coverage changes at nearly identical volume, same original source probabilities/model/loss/generator. + +E97 weekly synthetic coverage seed197 training started at 2026-10-23T05:06:47Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +### E100 probability-pool outcome — rejected +{"cutoff": "valid_screen", "skill_score": 0.38447708223972143, "rel_mase_gmean": 0.7377458188534619, "rel_wql_gmean": 0.5135487760227904, "groups": {"term": {"short": 0.36645074748329265, "medium": 0.40785519113120783, "long": 0.4067636672388967}, "domain": {"Econ/Fin": 0.14348007471775803, "Energy": 0.2450499585597603, "Healthcare": 0.4778661939355727, "Nature": 0.44167938695480613, "Sales": 0.34589247896287667, "Transport": 0.46735333815132574, "Web/CloudOps": 0.5036629603237621}, "freq": {"A-DEC": 0.37569899250005157, "Q-DEC": 0.20013922343000312, "M": 0.12148678908575261, "W-SUN": 0.10281895779812733, "D": 0.3613770705448509, "H": 0.40132102430667216, "15T": 0.21622161251725824, "W-FRI": 0.010849753325401168, "10T": 0.6253364743600922, "W-TUE": 0.6270406616896087, "W-THU": 0.2100424900094875, "W-WED": 0.3297769734384489, "5T": 0.5175830091172531, "10S": 0.424444633099896}}, "cpu_seconds": 59.980443592881784, "member_checkpoint_hashes": ["0ae7875b49b99a44c295dc2b8243327aeacadc25b2354988abb2c37250359a49", "308389b7217c080af9eb185559d4ee3cafa0f3e0f8c4dd8f5526b68198c89988", "e50a2d43bb3b6b66a94a6a2d9d62f0cb3e404310352e0357cfe0f2a874a21727"], "quantile_mean_skill": 0.384594982171353, "skill_difference": -0.00011789993163158208} +{"cutoff": "valid_backcast", "skill_score": 0.3396884750452879, "rel_mase_gmean": 0.7937686109009007, "rel_wql_gmean": 0.5492927082278539, "groups": {"term": {"short": 0.305359424616949, "medium": 0.3615421761351466, "long": 0.4019782542502155}, "domain": {"Econ/Fin": 0.17397857577775933, "Energy": 0.23077587806776068, "Healthcare": 0.4105170158829923, "Nature": 0.37090555838048966, "Sales": 0.40754241032517846, "Transport": 0.3735854351257373, "Web/CloudOps": 0.4515115490492597}, "freq": {"A-DEC": 0.3285015352119629, "Q-DEC": 0.23809442338781928, "M": 0.19846718923537676, "W-SUN": 0.044551228029835244, "D": 0.3527581961201992, "H": 0.37195542467805676, "15T": 0.22380832764902536, "W-FRI": 0.22713834170412128, "10T": 0.3209843494303689, "W-TUE": 0.5471337430335201, "W-THU": 0.24671528715780322, "W-WED": 0.36065042452889085, "5T": 0.440176624512733, "10S": 0.34765351732372307}}, "cpu_seconds": 57.84474289207719, "member_checkpoint_hashes": ["0ae7875b49b99a44c295dc2b8243327aeacadc25b2354988abb2c37250359a49", "308389b7217c080af9eb185559d4ee3cafa0f3e0f8c4dd8f5526b68198c89988", "e50a2d43bb3b6b66a94a6a2d9d62f0cb3e404310352e0357cfe0f2a874a21727"], "quantile_mean_skill": 0.33975008510701665, "skill_difference": -6.161006172877848e-05} +{"cutoff": "valid_backcast2", "skill_score": 0.3643569364713283, "rel_mase_gmean": 0.7656814703595871, "rel_wql_gmean": 0.5276895417390272, "groups": {"term": {"short": 0.35141014761082046, "medium": 0.3925477275360366, "long": 0.36889675295988844}, "domain": {"Econ/Fin": 0.11837724372992486, "Energy": 0.24257682706622608, "Healthcare": 0.3484957338430069, "Nature": 0.4765403493474547, "Sales": 0.5563991023520016, "Transport": 0.425156500116473, "Web/CloudOps": 0.43670286593915697}, "freq": {"A-DEC": 0.32966975290636025, "Q-DEC": 0.15381819951222442, "M": 0.15901923467685497, "W-SUN": 0.06330956349285344, "D": 0.43027727492156853, "H": 0.39548623856812215, "15T": 0.10618336189249866, "W-FRI": 0.14996401232455647, "10T": 0.5090292906528928, "W-TUE": 0.11021265661815505, "W-THU": 0.34484214889524656, "W-WED": 0.565895835912684, "5T": 0.47197167812560914, "10S": 0.2855930392816969}}, "cpu_seconds": 55.48255044897087, "member_checkpoint_hashes": ["0ae7875b49b99a44c295dc2b8243327aeacadc25b2354988abb2c37250359a49", "308389b7217c080af9eb185559d4ee3cafa0f3e0f8c4dd8f5526b68198c89988", "e50a2d43bb3b6b66a94a6a2d9d62f0cb3e404310352e0357cfe0f2a874a21727"], "quantile_mean_skill": 0.36472017597795625, "skill_difference": -0.000363239506627977} +{"cutoff": "valid_backcast3", "skill_score": 0.3894908456851319, "rel_mase_gmean": 0.7395191359520792, "rel_wql_gmean": 0.5040051154624993, "groups": {"term": {"short": 0.3944986218711739, "medium": 0.3683905810196345, "long": 0.3969887061132117}, "domain": {"Econ/Fin": 0.18408496490995196, "Energy": 0.3168114104271367, "Healthcare": 0.23983131130227353, "Nature": 0.5064220935312094, "Sales": 0.40140535360155616, "Transport": 0.5096985006120188, "Web/CloudOps": 0.393462743970424}, "freq": {"A-DEC": 0.34218212975771833, "Q-DEC": 0.25834447555512075, "M": 0.14460929216407215, "W-SUN": 0.16537651572223833, "D": 0.4408650435087358, "H": 0.40698403946159434, "15T": 0.25514902945862916, "W-FRI": 0.019067740904430974, "10T": 0.6070205489033722, "W-TUE": 0.25089200168813297, "W-THU": 0.3450365084609506, "W-WED": 0.378097845878244, "5T": 0.46374932773306954, "10S": 0.2954018250276097}}, "cpu_seconds": 54.93674235115759, "member_checkpoint_hashes": ["0ae7875b49b99a44c295dc2b8243327aeacadc25b2354988abb2c37250359a49", "308389b7217c080af9eb185559d4ee3cafa0f3e0f8c4dd8f5526b68198c89988", "e50a2d43bb3b6b66a94a6a2d9d62f0cb3e404310352e0357cfe0f2a874a21727"], "quantile_mean_skill": 0.389238119545644, "skill_difference": 0.0002527261394879021} +Probability pooling loses main and the first two earlier cutoffs, improving only the third. Retain E96 equal quantile averaging; no full replay or runtime publication. Zero optimizer updates; full CPU comparison time228.244479s, local fixture seed479. + +## E101 own-ensemble distillation — prepared, not queued + + +Prepared design, not yet queued. Complete the listed checks and record the exact experiment before launch. No external models, weights or data. + +Hypothesis: the larger fresh model can learn useful conditional forecasts faster when its proper real-target objective is supplemented by dense quantile targets from our own mature scratch-trained ensemble. This differs from the failed direct width conversions and protected random feature grafts: all student parameters begin at the same random initialization as E94. + +Match E94 exactly: own random_capacity_1024_initial.pt, seed307, batch48 distinct windows/96 signed rows, learning rate1e-4,96000-step schedule,400warmup, compiled paired-sign loss, original packed_sample/source probabilities,20% own slow-AR synthetic generator, original requested-horizon stream. Only the additional teacher loss changes. E94 remains the real-target-only control. + +Teacher: frozen E96 three members, descriptor1503d92ce031ec0c0e0533ece20d0516a0eceb134802d51746e24a44c4b5ee9b. Use each member's sign-averaged normalized neural quantiles BEFORE fixed postprocessing, then equal averaging. All members share the same ordinary-row normalization at training shapes (contexts are multiples of512); verify that. Pass the same per-row available forecast lengths to each member's partial-target mask. Mask teacher loss on rows with any nonfinite member normalization/output; retain the original real-target objective on those rows. The student loss and runtime remain the original E94 neural objective and fixed inference rules, so there is no simultaneous postprocessing-aware-loss change. + +Add coefficient0.5 times a teacher L1 objective: per valid target step,0.5*mean(abs(student_quantiles-teacher_quantiles)) +0.25*abs(student_median-teacher_median); average over the same valid target positions and apply the same context seasonal-error weight, normalized over teacher-valid rows. No coefficient sweep. The real-target objective is unchanged and retains weight1. Teacher targets are constants, with no gradients or updates to teacher weights. All teacher windows come only from the allowed sampler; no validation inputs or labels enter training. + +Compute teacher targets outside the compiled student objective. Student model state/config must retain exactly E94 keys and parameter count; teacher modules must not be registered on the student or enter its optimizer/EMA/checkpoints. Record teacher descriptor and all three checkpoint hashes in training args/lineage, and automatically declare own-teacher pseudo-target generation in sources_used on publication. Archive teacher code and generation code in provenance; deployed inference loads only the student. + +Required checks: zero teacher coefficient reproduces original loss/gradients on identical own-generated fixtures; teacher sign averaging/normalization matches independent raw-member forward passes; teacher parameters remain unchanged and have no gradients; student gradients finite; complete sampler/RNG recovery unchanged; eager/compiled gradient comparison; maximum-shape memory including student EMA/Adam and teacher weights. Initial fixture has zero optimizer updates. Runtime is unchanged random_capacity_inference. + +Potential allocation: queue only after both E99cooldown and E97weekly training finish, using their queue processes/checkpoint dependencies rather than unknown future trainer PIDs. Their released combined memory is sufficient for146M student plus frozen teacher. Watch4/8/16/24k before deciding longer allocation. Do not launch until code, checks, exact recipe declaration and source-lineage handling are complete. + +CPUfixture: {"seed": 487, "seconds": 5.1773834731429815, "teacher_descriptor_sha256": "1503d92ce031ec0c0e0533ece20d0516a0eceb134802d51746e24a44c4b5ee9b", "teacher_parameters": 110064120, "teacher_weights_frozen_bitwise": true, "teacher_gradients_absent": true, "independent_raw_member_average_bitwise": true, "ordinary_normalization_bitwise_same": true, "overflow_teacher_row_excluded_only_from_auxiliary": true, "sign_reflection_equivariant": true, "zero_coefficient_loss_and_gradients_bitwise_control": true, "student_state_keys_unchanged": true, "sampler_code_bitwise_control": true, "all_student_gradients_finite": true, "real_loss": 7.174529552459717, "combined_loss": 7.284832954406738, "optimizer_updates": 0, "validation_data_read": false} +Frozen teacher assets copied to distill_teacher_E96; descriptor unchanged. No student optimizer updates yet. + +## E92 robust normalization final12000 — rejected +- Checkpoint SHA-256: `25be8396d4a8c6ea98c67bca79060c4979a2829661016f0ed51b4e98c897c688`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 26.238795042037964 seconds. +- Overall skill 0.377099; relative MASE 0.744448; relative WQL 0.521199. +- term skill: long=0.4035, medium=0.4066, short=0.3549. +- domain skill: Econ/Fin=0.1295, Energy=0.2365, Healthcare=0.4448, Nature=0.4270, Sales=0.3471, Transport=0.4672, Web/CloudOps=0.5036. +- frequency skill: A=0.3570, D=0.3466, H=0.3946, M=0.1215, Q=0.1971, S=0.4235, T=0.4392, W=0.2223. +- variates skill: multivariate=0.3955, univariate=0.3620. +- Outcome: Final main0.377099312 is below matched overflow-only E80final0.377423946. The3k main gain did not transfer to any earlier cutoff, and6k/final main also regress. Reject this normalization change; retain ordinary statistics with the overflow-only fallback. Seed197/B64/LR2e-5, no new sources/generator. E97weekly-synthetic run has started in the released allocation. + +E92finalcompute: {"completed_step": 12000, "training_process_loop_seconds": 2692.7444765449036} + +## E79 fresh37M at30000, E99 future matched control +- Checkpoint SHA-256: `7965d1fe4b831143de6280ae873ec61a8024dbb6a14da5dfae1ef58098c33a59`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 28.895771265029907 seconds. +- Overall skill 0.358564; relative MASE 0.761438; relative WQL 0.540346. +- term skill: long=0.3844, medium=0.3900, short=0.3358. +- domain skill: Econ/Fin=0.1162, Energy=0.2193, Healthcare=0.3709, Nature=0.4110, Sales=0.3395, Transport=0.4511, Web/CloudOps=0.4907. +- frequency skill: A=0.3754, D=0.3312, H=0.3793, M=0.0636, Q=0.1845, S=0.4178, T=0.4155, W=0.2110. +- variates skill: multivariate=0.3768, univariate=0.3436. +- Outcome: Main0.358563990 improves24k0.357901602 by0.000662387 under the original96k schedule. This is the exact global30k control for the separately queued E99cooldown; no E99outcome yet. Seed307/B48/LR2e-4; continue unchanged original schedule. + +## E79 fresh146M at16000 +- Checkpoint SHA-256: `959ff6c885777e971d4ee25729d3406485404a69a0bbfe320959506b180e9e35`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 39.40332913398743 seconds. +- Overall skill 0.349499; relative MASE 0.768924; relative WQL 0.550316. +- term skill: long=0.3865, medium=0.3939, short=0.3166. +- domain skill: Econ/Fin=0.1199, Energy=0.2111, Healthcare=0.2664, Nature=0.4047, Sales=0.3301, Transport=0.4402, Web/CloudOps=0.4965. +- frequency skill: A=0.3766, D=0.3221, H=0.3700, M=-0.0589, Q=0.1818, S=0.4218, T=0.4156, W=0.1984. +- variates skill: multivariate=0.3768, univariate=0.3269. +- Outcome: Main0.349499286 improves8k0.343979357 but still trails matched37M16k0.355318072. Gap narrows to0.005818787; no capacity advantage established. Same seed307/B48/LR2e-4; continue24k while E94halfLR comparison matures. + +## E95 all-shard source coverage at3000 +- Checkpoint SHA-256: `ed98a18948ae0ad7cc18f1e2eb653f9af6bd6545ad81daa897b167b5ccf529ce`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 26.239446878433228 seconds. +- Overall skill 0.376742; relative MASE 0.745627; relative WQL 0.520972. +- term skill: long=0.4002, medium=0.4075, short=0.3552. +- domain skill: Econ/Fin=0.1328, Energy=0.2374, Healthcare=0.4444, Nature=0.4331, Sales=0.3350, Transport=0.4645, Web/CloudOps=0.5005. +- frequency skill: A=0.3721, D=0.3540, H=0.3968, M=0.0980, Q=0.1953, S=0.4214, T=0.4362, W=0.2177. +- variates skill: multivariate=0.3948, univariate=0.3620. +- Outcome: Main0.376741687 falls below matched E80at3000 0.378663825, reversing the small1k advantage. Broader uniform source coverage has not shown a sustained benefit in this mature-model continuation. Continue declared6k/12k before any data-mixture conclusion. Seed197/B64/LR2e-5, nearly matched packed volume and identical source probabilities. + +E98 complete original E75 schedule training started at 2026-10-23T05:11:48Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E101GPUfixture: {"initialization_seed": 307, "fixture_seed": 491, "optimizer_updates": 0, "maximum_shape_memory": {"batch": 48, "signed_rows": 96, "context": 4096, "horizon": 1024, "student_parameters": 146477344, "teacher_parameters": 110064120, "loss": 0.7845079898834229, "teacher_valid_fraction": 1.0, "peak_allocated_mib": 10583.0390625, "peak_reserved_mib": 11116.0}, "eager_loss": 0.3347933888435364, "compiled_loss": 0.3347933888435364, "gradient_cosine": 0.9999896108063672, "max_gradient_difference": 6.866455078125e-05, "teacher_gradients_absent": true, "compile_comparison_seconds": 54.64838738180697, "total_seconds": 79.89753107703291, "source": "allowed packed_sample and own slowAR generator only; frozen scratch-trained E96 neural teacher"} +Checks passed, zero optimizer updates. E101nowqueued after E99queuePID10701 and E97queuePID10513 both end, requiring their saved recovery checkpoints. These are dependency-launcher PIDs, not unknown future trainer PIDs. Exact recipe/command in distill_ensemble_queue.json; immutable teacher package distill_teacher_E96. Compare E94real-target-only at matching checkpoints. Student inference uses unchanged random_capacity_inference and contains no teacher dependency. + +## E93 input8/output4 final12000 +- Checkpoint SHA-256: `1a2fb20a9fb5cae6526f2e36ea47559626bece78fd9c284899836505030ae9fe`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 35.806113958358765 seconds. +- Overall skill 0.381712; relative MASE 0.740742; relative WQL 0.516077. +- term skill: long=0.4058, medium=0.4052, short=0.3629. +- domain skill: Econ/Fin=0.1468, Energy=0.2396, Healthcare=0.4600, Nature=0.4409, Sales=0.3373, Transport=0.4706, Web/CloudOps=0.5017. +- frequency skill: A=0.3633, D=0.3624, H=0.3942, M=0.1027, Q=0.1968, S=0.4248, T=0.4434, W=0.2445. +- variates skill: multivariate=0.3961, univariate=0.3700. +- Outcome: Final main0.381711986 exceeds matched E89patch8control12k0.380847096 and starting selected E71parent0.381178739. The smaller output blocks help at the final schedule; check all three earlier cutoffs and matched fullpatch4 final before any selection or architectural conclusion. Training loop3153.565149s, sharedH100; seed401/B32/LR2e-5, unchanged generator. E98exactpostloss completion started in the released allocation. + +## E97 weekly synthetic coverage first1000 +- Checkpoint SHA-256: `abd335075c429adc73f20e1e291146903a767a3e5c5a52669768863d5585031a`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 26.452547311782837 seconds. +- Overall skill 0.378319; relative MASE 0.743092; relative WQL 0.520107. +- term skill: long=0.3993, medium=0.4061, short=0.3590. +- domain skill: Econ/Fin=0.1270, Energy=0.2360, Healthcare=0.4896, Nature=0.4309, Sales=0.3352, Transport=0.4671, Web/CloudOps=0.4981. +- frequency skill: A=0.3664, D=0.3562, H=0.3957, M=0.1213, Q=0.1976, S=0.4232, T=0.4346, W=0.2365. +- variates skill: multivariate=0.3927, univariate=0.3666. +- Outcome: Main0.378319040 exceeds matched E80at1000 0.376804394 by0.001514645. Monthly skill rises0.10610to0.12127 and weekly0.22573to0.23646; most overall gain is short-term. Original real and unchanged synthetic windows/RNG remain bitwise matched. Continue3k/6k/12k before selection. Seed197/B64/LR2e-5, independentweeklyseed1000200, total20%synthetic unchanged. + +## E94 fresh146M halfLR at8000 +- Checkpoint SHA-256: `650a1a4177cae63f3ceab8a2255fbd2f9d281a7e83e8d380a34bb956bd690884`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 38.053096294403076 seconds. +- Overall skill 0.347153; relative MASE 0.771841; relative WQL 0.552198. +- term skill: long=0.3712, medium=0.3767, short=0.3259. +- domain skill: Econ/Fin=0.1161, Energy=0.2093, Healthcare=0.3516, Nature=0.4137, Sales=0.3243, Transport=0.4423, Web/CloudOps=0.4676. +- frequency skill: A=0.3714, D=0.3436, H=0.3637, M=0.0157, Q=0.1571, S=0.4182, T=0.3966, W=0.2130. +- variates skill: multivariate=0.3599, univariate=0.3368. +- Outcome: Main0.347153427 beats matched high-LR146M8k0.343979357, but remains below37M8k0.353508836. The rate benefit persists but shrinks versus4k; continue16k/24k before choosing a larger-corpus fresh recipe. Same owninit/seed307/B48/96k, only LR differs from E79wide. + +## E102 fixed E96 third-member replacement with E93final — predeclared +Replace only the fullpatch4 EMA6000 member with split input8/output4 EMA12000. Retain E83patch16 and E71patch8_6000, ordered equal1/3 quantile averaging after each unchanged member rule. Every member forecasts every instance. No new optimization, no coefficient sweep or configuration-specific selection. Compare all four established cached cutoffs, requiring full public replay and relocation/composition checks before publication. E93final individual main0.381711986 exceeds its control and parent; earlier cutoffs are currently running. The E101teacher remains the immutable E96 ensemble regardless of this selection result. + +E99 fresh37M early cooldown training started at 2026-10-23T05:15:29Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +## E89 fullpatch4 final12000 +- Checkpoint SHA-256: `a263e545cafb309e8b22dde151e6a8bd37166e1db346170ad7bd33f4a11cd6a3`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 51.19871735572815 seconds. +- Overall skill 0.381640; relative MASE 0.741276; relative WQL 0.515825. +- term skill: long=0.4055, medium=0.4047, short=0.3631. +- domain skill: Econ/Fin=0.1486, Energy=0.2408, Healthcare=0.4740, Nature=0.4424, Sales=0.3396, Transport=0.4680, Web/CloudOps=0.4971. +- frequency skill: A=0.3603, D=0.3552, H=0.3960, M=0.1392, Q=0.2025, S=0.4227, T=0.4401, W=0.2492. +- variates skill: multivariate=0.3948, univariate=0.3709. +- Outcome: Final main0.381640078 exceeds matched patch8control0.380847096, essentially ties the cheaper E93input8/output4 final0.381711986, and exceeds selected starting E71parent0.381178739. Training loop5066.016522s on sharedH100, seed401/B32/LR2e-5; actual memory advantage of E93 is supported by maximum-shape checks, while process timings are concurrent rather than exclusive. Evaluate all three earlier cutoffs before choosing a replacement for E96thirdmember. E99cooldown starts in the released allocation. + +## E103 fixed E96 third-member replacement with E89final — predeclared +Test the completed fullpatch4 EMA12000 as the third member, retaining E83patch16/E71patch8 and equal1/3 quantile averaging with unchanged per-member rules. This is the counterpart to E102splitpatch-final replacement, motivated by the near-tie of the matched architecture continuations at12k. No coefficient or per-config choice; every member forecasts every instance. Compare all four cached cutoffs against E96/E102 before selecting the next full replay. No additional optimizer updates. + +Recovery-provenance maintenance: trainer now carries immutable external resume snapshots in parent_checkpoints across subsequent restarts from a run's own mutable recovery.pt. This preserves E98/E99prefix ancestry after another operator recovery and avoids linking mutable source-run recovery files. Metadata only, no training arithmetic changed. CURRENT snapshots now explicitly record the known compiler environment for compiled jobs, including those whose launchers passed it via subprocess environment rather than an env command prefix. No credentials were read. + +### E102 four-cutoff replacement results +{"cutoff": "valid_screen", "skill_score": 0.38490788212550675, "rel_mase_gmean": 0.7369849187976256, "rel_wql_gmean": 0.5133596411831329, "groups": {"term": {"short": 0.3670856470642414, "medium": 0.4084718855262034, "long": 0.40650615955402314}, "domain": {"Econ/Fin": 0.1435289463184154, "Energy": 0.2468980568665663, "Healthcare": 0.4746000842796365, "Nature": 0.44061471938672714, "Sales": 0.3438839562187085, "Transport": 0.4681588575437192, "Web/CloudOps": 0.5046164356104859}, "freq": {"A-DEC": 0.37543835684208393, "Q-DEC": 0.19718024023430158, "M": 0.10850755704828396, "W-SUN": 0.10914931929038174, "D": 0.364713649661322, "H": 0.40088295006065944, "15T": 0.21696396975859744, "W-FRI": 0.016303274872958684, "10T": 0.6274098133659913, "W-TUE": 0.6163821514248893, "W-THU": 0.20854279501175432, "W-WED": 0.32935722968495507, "5T": 0.5196886329209323, "10S": 0.42527389349857736}}, "cpu_seconds": 1.1513165449723601, "member_checkpoint_hashes": ["0ae7875b49b99a44c295dc2b8243327aeacadc25b2354988abb2c37250359a49", "308389b7217c080af9eb185559d4ee3cafa0f3e0f8c4dd8f5526b68198c89988", "1a2fb20a9fb5cae6526f2e36ea47559626bece78fd9c284899836505030ae9fe"], "E96skill": 0.384594982171353, "difference": 0.0003128999541537336} +{"cutoff": "valid_backcast", "skill_score": 0.3397943577904946, "rel_mase_gmean": 0.7942938342926791, "rel_wql_gmean": 0.5487534602272348, "groups": {"term": {"short": 0.3060609208737005, "medium": 0.36022438378162913, "long": 0.40207177797998805}, "domain": {"Econ/Fin": 0.17314936720715002, "Energy": 0.2319064310330724, "Healthcare": 0.40898749701599635, "Nature": 0.3714427052655884, "Sales": 0.4054545766888219, "Transport": 0.37346761267845907, "Web/CloudOps": 0.4512796397157435}, "freq": {"A-DEC": 0.32636255116793356, "Q-DEC": 0.2369053047170233, "M": 0.1881408754401731, "W-SUN": 0.05514520346862939, "D": 0.35254747200062386, "H": 0.37162220001802326, "15T": 0.2225810499701737, "W-FRI": 0.23076747912755158, "10T": 0.32531767521178967, "W-TUE": 0.5449536336522042, "W-THU": 0.2550583257373391, "W-WED": 0.36148774693113794, "5T": 0.441771392840713, "10S": 0.34781169339869}}, "cpu_seconds": 0.9792960570193827, "member_checkpoint_hashes": ["0ae7875b49b99a44c295dc2b8243327aeacadc25b2354988abb2c37250359a49", "308389b7217c080af9eb185559d4ee3cafa0f3e0f8c4dd8f5526b68198c89988", "1a2fb20a9fb5cae6526f2e36ea47559626bece78fd9c284899836505030ae9fe"], "E96skill": 0.33975008510701665, "difference": 4.427268347795277e-05} +{"cutoff": "valid_backcast2", "skill_score": 0.3650870167535245, "rel_mase_gmean": 0.7649173761305604, "rel_wql_gmean": 0.527003973075039, "groups": {"term": {"short": 0.3525196178413804, "medium": 0.3930479998451024, "long": 0.3688394487554716}, "domain": {"Econ/Fin": 0.12187550267974279, "Energy": 0.24171273109616453, "Healthcare": 0.3558210371956918, "Nature": 0.4786187053429537, "Sales": 0.5559745534466993, "Transport": 0.42514365668969034, "Web/CloudOps": 0.4369290048270271}, "freq": {"A-DEC": 0.3369941826448156, "Q-DEC": 0.15634597829751584, "M": 0.16659776433783968, "W-SUN": 0.07034227201826782, "D": 0.4307838193118658, "H": 0.3947195332904091, "15T": 0.10843788342786231, "W-FRI": 0.15292520112219465, "10T": 0.5097026958567001, "W-TUE": 0.1163232645897253, "W-THU": 0.349832844039044, "W-WED": 0.5634413265331784, "5T": 0.4725475721543746, "10S": 0.2849619587969022}}, "cpu_seconds": 1.3131735338829458, "member_checkpoint_hashes": ["0ae7875b49b99a44c295dc2b8243327aeacadc25b2354988abb2c37250359a49", "308389b7217c080af9eb185559d4ee3cafa0f3e0f8c4dd8f5526b68198c89988", "1a2fb20a9fb5cae6526f2e36ea47559626bece78fd9c284899836505030ae9fe"], "E96skill": 0.36472017597795625, "difference": 0.00036684077556825567} +{"cutoff": "valid_backcast3", "skill_score": 0.38962589808404846, "rel_mase_gmean": 0.7393031561148107, "rel_wql_gmean": 0.5039293302189662, "groups": {"term": {"short": 0.3950146881429296, "medium": 0.3683351816334438, "long": 0.3962356024661119}, "domain": {"Econ/Fin": 0.1866323514229733, "Energy": 0.31708138786412254, "Healthcare": 0.2340457735690984, "Nature": 0.5075633858787092, "Sales": 0.3999844088004907, "Transport": 0.5091845709202749, "Web/CloudOps": 0.3939387141464573}, "freq": {"A-DEC": 0.35740138324250814, "Q-DEC": 0.2545638826926907, "M": 0.14196420345262517, "W-SUN": 0.1692422167486961, "D": 0.44092551174968075, "H": 0.4060276831713958, "15T": 0.2544847257167575, "W-FRI": 0.03945021050804143, "10T": 0.6073743483329828, "W-TUE": 0.25124832856283164, "W-THU": 0.3470992258549631, "W-WED": 0.3775958266712779, "5T": 0.46513388285277635, "10S": 0.29273333259972834}}, "cpu_seconds": 0.9749888752121478, "member_checkpoint_hashes": ["0ae7875b49b99a44c295dc2b8243327aeacadc25b2354988abb2c37250359a49", "308389b7217c080af9eb185559d4ee3cafa0f3e0f8c4dd8f5526b68198c89988", "1a2fb20a9fb5cae6526f2e36ea47559626bece78fd9c284899836505030ae9fe"], "E96skill": 0.389238119545644, "difference": 0.00038777853840443743} + +### E103 four-cutoff replacement results +{"cutoff": "valid_screen", "skill_score": 0.38500541763348517, "rel_mase_gmean": 0.7370491942191689, "rel_wql_gmean": 0.5131520925694101, "groups": {"term": {"short": 0.36722493789915567, "medium": 0.40845783827201154, "long": 0.4066128546537624}, "domain": {"Econ/Fin": 0.14488968734284446, "Energy": 0.2473756772173874, "Healthcare": 0.4777300437443104, "Nature": 0.4411115514129288, "Sales": 0.3448077959265311, "Transport": 0.46774095296357987, "Web/CloudOps": 0.5033387584756153}, "freq": {"A-DEC": 0.37541665630455645, "Q-DEC": 0.19911678292032942, "M": 0.11881300866622979, "W-SUN": 0.1096477052731838, "D": 0.362528588146091, "H": 0.4015705047657928, "15T": 0.21804762920144782, "W-FRI": 0.016363727924622262, "10T": 0.6271485862780906, "W-TUE": 0.6209733756670539, "W-THU": 0.20999017480896343, "W-WED": 0.3297749874361884, "5T": 0.5175349566789766, "10S": 0.42462313787098094}}, "cpu_seconds": 1.0732698428910226, "member_checkpoint_hashes": ["0ae7875b49b99a44c295dc2b8243327aeacadc25b2354988abb2c37250359a49", "308389b7217c080af9eb185559d4ee3cafa0f3e0f8c4dd8f5526b68198c89988", "a263e545cafb309e8b22dde151e6a8bd37166e1db346170ad7bd33f4a11cd6a3"], "E96skill": 0.384594982171353, "difference": 0.00041043546213215265} +{"cutoff": "valid_backcast", "skill_score": 0.3398214546118604, "rel_mase_gmean": 0.7942044163673427, "rel_wql_gmean": 0.5487701941828703, "groups": {"term": {"short": 0.305847769661334, "medium": 0.3615040967825627, "long": 0.40146856729517433}, "domain": {"Econ/Fin": 0.17464373027255042, "Energy": 0.23108171914379005, "Healthcare": 0.41082426569988595, "Nature": 0.3718443434112704, "Sales": 0.40646820364012926, "Transport": 0.3728762819285243, "Web/CloudOps": 0.4515441161888809}, "freq": {"A-DEC": 0.32427594695442885, "Q-DEC": 0.23945276396724646, "M": 0.19719617479508833, "W-SUN": 0.052844558516275786, "D": 0.35260466772957, "H": 0.3721367040211806, "15T": 0.2223065777034271, "W-FRI": 0.22845992938029724, "10T": 0.3234396022330981, "W-TUE": 0.5459245154169383, "W-THU": 0.24711082469129164, "W-WED": 0.36312061525273154, "5T": 0.4404099962380955, "10S": 0.3485327044406994}}, "cpu_seconds": 0.9945498188026249, "member_checkpoint_hashes": ["0ae7875b49b99a44c295dc2b8243327aeacadc25b2354988abb2c37250359a49", "308389b7217c080af9eb185559d4ee3cafa0f3e0f8c4dd8f5526b68198c89988", "a263e545cafb309e8b22dde151e6a8bd37166e1db346170ad7bd33f4a11cd6a3"], "E96skill": 0.33975008510701665, "difference": 7.13695048437657e-05} +{"cutoff": "valid_backcast2", "skill_score": 0.3647180336171173, "rel_mase_gmean": 0.7654029032858002, "rel_wql_gmean": 0.5272820041297973, "groups": {"term": {"short": 0.3518878749308295, "medium": 0.3927580540668256, "long": 0.3691077522689188}, "domain": {"Econ/Fin": 0.12218990276622621, "Energy": 0.24251138907504843, "Healthcare": 0.34933847363414383, "Nature": 0.4781212829897, "Sales": 0.55694372735719, "Transport": 0.4243899770061409, "Web/CloudOps": 0.43650428576145894}, "freq": {"A-DEC": 0.33629748314335295, "Q-DEC": 0.1560373253956937, "M": 0.16237816345656342, "W-SUN": 0.07189010798504825, "D": 0.43022756178029165, "H": 0.39543965655443114, "15T": 0.10619855263453626, "W-FRI": 0.15256288862137302, "10T": 0.5099262713842705, "W-TUE": 0.11275167806759523, "W-THU": 0.3476561865337633, "W-WED": 0.565409644514056, "5T": 0.4712731877671763, "10S": 0.2859728774327921}}, "cpu_seconds": 0.9891702111344784, "member_checkpoint_hashes": ["0ae7875b49b99a44c295dc2b8243327aeacadc25b2354988abb2c37250359a49", "308389b7217c080af9eb185559d4ee3cafa0f3e0f8c4dd8f5526b68198c89988", "a263e545cafb309e8b22dde151e6a8bd37166e1db346170ad7bd33f4a11cd6a3"], "E96skill": 0.36472017597795625, "difference": -2.142360838952584e-06} +{"cutoff": "valid_backcast3", "skill_score": 0.38952531921448574, "rel_mase_gmean": 0.7397344287798532, "rel_wql_gmean": 0.5038015284686523, "groups": {"term": {"short": 0.39470492326109163, "medium": 0.3679378045902095, "long": 0.39702622151428124}, "domain": {"Econ/Fin": 0.18635232828843817, "Energy": 0.3167555032477224, "Healthcare": 0.2321529881554648, "Nature": 0.5080109601079104, "Sales": 0.40020731613048277, "Transport": 0.5096409724474877, "Web/CloudOps": 0.3934863582665823}, "freq": {"A-DEC": 0.34966366686932726, "Q-DEC": 0.25774901005566275, "M": 0.13921842550571784, "W-SUN": 0.1678888068666432, "D": 0.4412824281729495, "H": 0.40605210717475726, "15T": 0.2556303886920226, "W-FRI": 0.03145225561173515, "10T": 0.6068260917454812, "W-TUE": 0.2595682801406983, "W-THU": 0.3474528636749996, "W-WED": 0.3763281957599267, "5T": 0.4644139584813969, "10S": 0.29384233335279064}}, "cpu_seconds": 1.3381098771933466, "member_checkpoint_hashes": ["0ae7875b49b99a44c295dc2b8243327aeacadc25b2354988abb2c37250359a49", "308389b7217c080af9eb185559d4ee3cafa0f3e0f8c4dd8f5526b68198c89988", "a263e545cafb309e8b22dde151e6a8bd37166e1db346170ad7bd33f4a11cd6a3"], "E96skill": 0.389238119545644, "difference": 0.00028719966884172} +Next full replay: E102 improves all four cutoffs and has the cheaper input8 encoder. E103 is slightly stronger on main/first earlier but weaker thanE102 onsecond/third; secondearlier effectivelyties E96. E103is retained as a cached alternative, without a claimed full-suite result. No new optimizer updates in either ensemble composition. + +## E97 weekly synthetic coverage at3000 +- Checkpoint SHA-256: `a5619c3da9cb9049d92c9582e7fd74dea3e3d474bf5cf8499522e739cd202305`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 26.279794216156006 seconds. +- Overall skill 0.380663; relative MASE 0.740647; relative WQL 0.517896. +- term skill: long=0.4025, medium=0.4068, short=0.3617. +- domain skill: Econ/Fin=0.1317, Energy=0.2379, Healthcare=0.4904, Nature=0.4332, Sales=0.3335, Transport=0.4661, Web/CloudOps=0.5036. +- frequency skill: A=0.3690, D=0.3546, H=0.3977, M=0.1269, Q=0.1964, S=0.4224, T=0.4386, W=0.2419. +- variates skill: multivariate=0.3970, univariate=0.3674. +- Outcome: Main0.380663183 exceeds matched E80at3000 0.378663825 by0.001999358, sustaining the1k gain. Earlier cutoffs are now running; no independent-model publication yet. Seed197/B64/LR2e-5, exact original real/non-replaced synthetic streams preserved, weekly replacement1/11 of20%synthetic. + +## E104 transfer the matched weekly-synthesis correction — predeclared +Hypothesis: E97weekly3000 minus E80overflow-control3000 isolates the new weekly synthetic coverage and can improve E83, while retaining E83postprocessing-aware and slowAR contributions. Apply exactly coefficient1: E83postloss_slow_ar_delta6k + E97weekly_synthEMA3000 - E80overflow_controlEMA3000. All model keys/configurations align; all weights were trained here on allowed data, with the delta pair sharing seed197/B64/LR2e-5 and original sampler/horizon streams. No coefficient sweep or optimizer updates. E97earlier results are not yet available at declaration. Evaluate the fixed composition at all four cutoffs and then its fixed equal1/3 ensemble with E71patch8_6000 and E93splitpatch_12000, replacing only E102firstmember. Use unchanged postloss_inference numerical fallback and fixed rules. This is a predictive composition test, with full public replay/checks required for any publication. E101teacher remains frozen E96. + +## E93 split patch final earlier cutoff1 +- Checkpoint SHA-256: `1a2fb20a9fb5cae6526f2e36ea47559626bece78fd9c284899836505030ae9fe`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 35.36992645263672 seconds. +- Overall skill 0.336872; relative MASE 0.797481; relative WQL 0.551410. +- term skill: long=0.4020, medium=0.3579, short=0.3016. +- domain skill: Econ/Fin=0.1748, Energy=0.2280, Healthcare=0.3931, Nature=0.3699, Sales=0.4068, Transport=0.3691, Web/CloudOps=0.4509. +- frequency skill: A=0.3160, D=0.3464, H=0.3726, M=0.1800, Q=0.2360, S=0.3514, T=0.3341, W=0.2756. +- variates skill: multivariate=0.3569, univariate=0.3205. +- Outcome: Fixed final12000 checkpoint, seed401/B32/LR2e-5. Used for the predeclared equal-member replacement comparison E102/E103; validation only, no further optimizer updates. + +## E93 split patch final earlier cutoff2 +- Checkpoint SHA-256: `1a2fb20a9fb5cae6526f2e36ea47559626bece78fd9c284899836505030ae9fe`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 31.873882293701172 seconds. +- Overall skill 0.361104; relative MASE 0.770556; relative WQL 0.529731. +- term skill: long=0.3665, medium=0.3913, short=0.3470. +- domain skill: Econ/Fin=0.1207, Energy=0.2377, Healthcare=0.3430, Nature=0.4729, Sales=0.5545, Transport=0.4214, Web/CloudOps=0.4356. +- frequency skill: A=0.3185, D=0.4195, H=0.3908, M=0.1553, Q=0.1616, S=0.2820, T=0.3625, W=0.2958. +- variates skill: multivariate=0.3609, univariate=0.3613. +- Outcome: Fixed final12000 checkpoint, seed401/B32/LR2e-5. Used for the predeclared equal-member replacement comparison E102/E103; validation only, no further optimizer updates. + +## E93 split patch final earlier cutoff3 +- Checkpoint SHA-256: `1a2fb20a9fb5cae6526f2e36ea47559626bece78fd9c284899836505030ae9fe`. +- Evaluation: 93 configurations, 8812 instances, 0 failed configurations; 33.14549136161804 seconds. +- Overall skill 0.385555; relative MASE 0.745119; relative WQL 0.506687. +- term skill: long=0.3946, medium=0.3685, short=0.3886. +- domain skill: Econ/Fin=0.1861, Energy=0.3097, Healthcare=0.2354, Nature=0.5014, Sales=0.3950, Transport=0.5057, Web/CloudOps=0.3950. +- frequency skill: A=0.3543, D=0.4270, H=0.4025, M=0.1610, Q=0.2496, S=0.2977, T=0.4286, W=0.2436. +- variates skill: multivariate=0.3696, univariate=0.3979. +- Outcome: Fixed final12000 checkpoint, seed401/B32/LR2e-5. Used for the predeclared equal-member replacement comparison E102/E103; validation only, no further optimizer updates. + +## E89 full patch4 final earlier cutoff1 +- Checkpoint SHA-256: `a263e545cafb309e8b22dde151e6a8bd37166e1db346170ad7bd33f4a11cd6a3`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 55.011173486709595 seconds. +- Overall skill 0.336345; relative MASE 0.797972; relative WQL 0.551947. +- term skill: long=0.3997, medium=0.3611, short=0.3004. +- domain skill: Econ/Fin=0.1781, Energy=0.2248, Healthcare=0.3992, Nature=0.3709, Sales=0.4088, Transport=0.3668, Web/CloudOps=0.4509. +- frequency skill: A=0.3067, D=0.3457, H=0.3740, M=0.2061, Q=0.2429, S=0.3533, T=0.3298, W=0.2654. +- variates skill: multivariate=0.3532, univariate=0.3226. +- Outcome: Fixed final12000 checkpoint, seed401/B32/LR2e-5. Used for the predeclared equal-member replacement comparison E102/E103; validation only, no further optimizer updates. + +## E89 full patch4 final earlier cutoff2 +- Checkpoint SHA-256: `a263e545cafb309e8b22dde151e6a8bd37166e1db346170ad7bd33f4a11cd6a3`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 54.35282373428345 seconds. +- Overall skill 0.359845; relative MASE 0.771620; relative WQL 0.531089. +- term skill: long=0.3668, medium=0.3902, short=0.3451. +- domain skill: Econ/Fin=0.1192, Energy=0.2393, Healthcare=0.3219, Nature=0.4739, Sales=0.5564, Transport=0.4186, Web/CloudOps=0.4338. +- frequency skill: A=0.3129, D=0.4161, H=0.3924, M=0.1622, Q=0.1597, S=0.2850, T=0.3585, W=0.2927. +- variates skill: multivariate=0.3606, univariate=0.3592. +- Outcome: Fixed final12000 checkpoint, seed401/B32/LR2e-5. Used for the predeclared equal-member replacement comparison E102/E103; validation only, no further optimizer updates. + +## E89 full patch4 final earlier cutoff3 +- Checkpoint SHA-256: `a263e545cafb309e8b22dde151e6a8bd37166e1db346170ad7bd33f4a11cd6a3`. +- Evaluation: 93 configurations, 8812 instances, 0 failed configurations; 54.33600902557373 seconds. +- Overall skill 0.384241; relative MASE 0.747472; relative WQL 0.507256. +- term skill: long=0.3960, medium=0.3667, short=0.3865. +- domain skill: Econ/Fin=0.1847, Energy=0.3079, Healthcare=0.2301, Nature=0.5006, Sales=0.3948, Transport=0.5062, Web/CloudOps=0.3930. +- frequency skill: A=0.3322, D=0.4254, H=0.4016, M=0.1568, Q=0.2587, S=0.3002, T=0.4273, W=0.2401. +- variates skill: multivariate=0.3670, univariate=0.3975. +- Outcome: Fixed final12000 checkpoint, seed401/B32/LR2e-5. Used for the predeclared equal-member replacement comparison E102/E103; validation only, no further optimizer updates. + +## E95 all-shard coverage at6000 +- Checkpoint SHA-256: `78a3c47718545643662029245141e6d39e64cf0853d2502f20222123ce3cd5c7`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 25.874247789382935 seconds. +- Overall skill 0.376043; relative MASE 0.746531; relative WQL 0.521508. +- term skill: long=0.4012, medium=0.4068, short=0.3538. +- domain skill: Econ/Fin=0.1318, Energy=0.2380, Healthcare=0.4414, Nature=0.4294, Sales=0.3318, Transport=0.4670, Web/CloudOps=0.4991. +- frequency skill: A=0.3714, D=0.3507, H=0.3948, M=0.0936, Q=0.1963, S=0.4213, T=0.4386, W=0.2145. +- variates skill: multivariate=0.3939, univariate=0.3614. +- Outcome: Skill0.376043220 falls below matched E80control6000 0.378288765. Continue the declared12000 schedule; broader coverage at fixed volume has not improved the mature model. + +## E98 original postloss schedule at6000 +- Checkpoint SHA-256: `7f1a2200b0f6a2cd63a378b001010e4a4a9776eba76c800ee1d61c23fc8bf9cb`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 25.866560697555542 seconds. +- Overall skill 0.377594; relative MASE 0.744160; relative WQL 0.520572. +- term skill: long=0.4019, medium=0.4066, short=0.3564. +- domain skill: Econ/Fin=0.1081, Energy=0.2440, Healthcare=0.4585, Nature=0.4289, Sales=0.3383, Transport=0.4638, Web/CloudOps=0.5007. +- frequency skill: A=0.3681, D=0.3493, H=0.3983, M=0.0713, Q=0.1895, S=0.4227, T=0.4403, W=0.2264. +- variates skill: multivariate=0.3955, univariate=0.3630. +- Outcome: Exact optimizer/RNG continuation from originalE75step3653; no reset. Skill0.377594313 is below E75at3000 0.378813891 and E80at6000 0.378288765. Continue to predeclared12000; no checkpoint replacement. + +## E79 fresh37M original schedule at36000 +- Checkpoint SHA-256: `06778302f2e405ecd30fd00407523d03be8756c7a6029c38a26360cbeb98becf`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 29.79560947418213 seconds. +- Overall skill 0.364859; relative MASE 0.756433; relative WQL 0.533298. +- term skill: long=0.3873, medium=0.3910, short=0.3457. +- domain skill: Econ/Fin=0.1266, Energy=0.2248, Healthcare=0.4265, Nature=0.4125, Sales=0.3402, Transport=0.4559, Web/CloudOps=0.4912. +- frequency skill: A=0.3896, D=0.3497, H=0.3830, M=0.0639, Q=0.1985, S=0.4187, T=0.4195, W=0.2201. +- variates skill: multivariate=0.3809, univariate=0.3518. +- Outcome: Original96k schedule control, seed307/B48/LR2e-4. Skill0.364859034 improves on30k0.358563990; compare E99cooldown at the same step when available. + +## E105 nested corpus volume at fixed source probabilities — predeclared +Hypothesis: the mature model may benefit from more distinct allowed series beyond the all-shard coverage change. Compare against E95 using the exactly nested packed_stratified_large instead of packed_stratified. Source probabilities stay bitwise those of packed_sample, all95directories, all model/optimizer/EMA/horizon settings unchanged: ownE62initial SHA22c08571978be31ba57368eb983089a40a44d56d4ae5e17da41afd2a761a258c, seed197/B64/LR2e-5/12000steps, paired loss, overflow_control code, postloss_inference runtime. Per-directory softcap192M versus24M points; total5,354,822,975points/1,059,868series versus952,527,771points/342,661series. Same global series order and per-series crop rules, exact binary/record prefix checked for all95dirs. stratified_large_audit.json replays260actualseries and verifies source probabilities, seed461,19.984999CPU seconds,0optimizerupdates/no validationreads. More series changes the sampler trajectory; this is a single-seed volume comparison, not identical sampled rows. E95at6000 currently trails E80; E105 tests whether volume recovers that deficit. Queue after E95 in its allocation. Screens1000/3000/6000/12000; earlier cutoffs and full replay required before publication. No added training data sources or new generator. + +## E106 spectral smoothness prior in synthetic residuals — preparation +Hypothesis: the original white/AR1 synthetic residuals underrepresent smooth stochastic changes. Replace only the noise residual in half of synthetic windows (total synthetic share unchanged20%) with a unit-marginal-variance stationary Gaussian draw generated here by FFT. Equal kernel-family prior: Matérn nu0.5/1.5/2.5 or squared-exponential; length scale10**U(0,4) steps. Generate a periodic FFT field of next-power-of-two length at least4times the window and keep its prefix; normalize by theoretical spectral variance, never by realized future values. Keep the original Fourier components, trend, changepoint, intermittent and positivity transforms, periods and observed masks. Always consume the original residual RNG before replacement; independent spectral seed1100200 preserves the full original sampler/horizon streams and all non-replaced rows. This differs from E14's multi-family whole-series replacement and E78's four-AR-component sum. Comparator E80: ownE62initial SHA22c08571978be31ba57368eb983089a40a44d56d4ae5e17da41afd2a761a258c, seed197/B64/LR2e-5/12000steps, paired loss, oldpacked_sample/sourceweights, overflow-safe model unchanged. CPU distribution/RNG checks required before launch; no validation in generator or training. Queue after E98 when checks pass. Screen1000/3000/6000/12000 and earlier cutoffs for promising checkpoints; no coefficient sweep. +E106 CPU audit passed: seed499,7680paired candidate/control windows,1535synthetic rows,743spectral replacements. All non-replaced rows, period labels, finite masks and original/horizon RNG states are bitwise unchanged; saving/restoring all NumPy states replays the next batch exactly. Model file byte-identical toE80 SHA44eeb23c037e91b8f67e432615ce46540a7ac4242919785f9c4218de23121499. Four kernel-family empirical variances/autocovariances over1024draws each match their declared discrete spectral covariances within0.005 (tolerance0.045); extreme length scales1/10000 and window lengths8/40/5120 remain finite. Sampler comparison4.179206CPU seconds,total4.517388seconds,0optimizerupdates/no validationread. Receipt spectral_synth_checks.json. Queued after E98queue10664; full training metadata and publisher generator provenance added. + +## E102 split-patch replacement full public replay +- Checkpoint SHA-256: `2dedb7fd1052bf72a38fc005cc8c89f65d42a50260830de0f0efbb5f16a30b4f`. +- Evaluation: 97 configurations, 151170 instances, 0 failed configurations; not separately timed seconds. +- Overall skill 0.381163; relative MASE 0.739673; relative WQL 0.517741. +- term skill: long=0.4007, medium=0.4074, short=0.3631. +- domain skill: Econ/Fin=0.1245, Energy=0.2404, Healthcare=0.4799, Nature=0.4407, Sales=0.3581, Transport=0.4683, Web/CloudOps=0.4964. +- frequency skill: A=0.2968, D=0.3691, H=0.3956, M=0.1343, Q=0.1868, S=0.4253, T=0.4379, W=0.2354. +- variates skill: multivariate=0.3952, univariate=0.3698. +- Outcome: Fixed equal1/3 ensemble E83patch16/E71patch8_6000/E93input8output4_12000. Full skill0.38116304998662165 exceeds E96full0.3807214453622526 by0.00044160462436904; zero failures across97configurations/151170instances. Inference358.197612shared-H100 seconds. Relocation already bitwise; independent component/composition checks pending before atomic publication. Validation selection only; no held-out reward claim. + +E102 final checks all passed before publication: split_ensemble_validation_receipt.json completes allfive steps in510.069582wall seconds including lock waits. Public inference358.197612seconds. Relocated three-example inference is bitwise identical/finite/ordered,31.745146seconds. Independent public third-member replay plus orderedfloat32 component mean exactly match bundled output for three complete actual configurations; see split_patch_composition_replay.json and split_ensemble_composition_checks.json. Descriptor2dedb7fd1052bf72a38fc005cc8c89f65d42a50260830de0f0efbb5f16a30b4f;110,068,216parameters. Selected for atomic publication over E96. Allfour diagnostic cutoffs improve; full-term skills long0.400651,medium0.407396,short0.363109. Descriptive group/config comparison and cluster bootstrap saved in split_ensemble_comparison.json; no held-out significance claim. E101teacher remains immutable E96. + +## E107 learned use of sixteen-cycle centered seasonal summaries — preparation +Hypothesis: within the existing4096-point context, averaging more observed cycles can reduce phase-pattern noise, while centering each cycle prevents old levels from biasing the forecast. Add fixed context features for each of the two existing frequency periods: the16cycle-minus4cycle mean of cycle-centered phase observations and the16cycle support fraction. Enable a phase only with at least8observed cycles, at least2recent cycles and period>=2. A zero-initialized linear query projection exposes these four features to the existing decoder; a separate zero-initialized two-gate head adds tanh-bounded multiples of the two template differences to the median. All quantiles shift together; original interval widths are unchanged initially. The initial function must be exactly preserved and all parameters train. No increased context, raw-memory encoder or fitted seasonal parameters; this differs from E29/E54 older-history experiments. Comparator E80uses the same ownE62initial, seed197/B64/LR2e-5/12000steps, paired loss, original corpus/generator/horizon streams and overflow fallback. New weights start exactlyzero, conversion seed503; no external weights. Audit independent feature arithmetic, initialization equivalence, gradient flow and max-shape GPU memory before launch. Screen1000/3000/6000/12000, earlier/fullreplay for selection. Queue after E105 when ready; no launch yet. + +## E97 weekly synthetic coverage at6000 +- Checkpoint SHA-256: `de053e5baf9641e9245519990d6e5193fc91392cb76e72ceffee1ce63f578fca`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 26.010923624038696 seconds. +- Overall skill 0.380716; relative MASE 0.741210; relative WQL 0.517415. +- term skill: long=0.4022, medium=0.4073, short=0.3617. +- domain skill: Econ/Fin=0.1254, Energy=0.2389, Healthcare=0.4994, Nature=0.4301, Sales=0.3392, Transport=0.4658, Web/CloudOps=0.5031. +- frequency skill: A=0.3704, D=0.3555, H=0.3964, M=0.1253, Q=0.1936, S=0.4249, T=0.4385, W=0.2461. +- variates skill: multivariate=0.3971, univariate=0.3673. +- Outcome: Main0.380715730 exceeds matched E80at6000 0.378288765 by0.002426965; nearly ties E97at3000. Continue declared12000 schedule. + +## E99 early cooldown at30000 +- Checkpoint SHA-256: `ffa1f38d24165a7167a319a609bc03fa14cbe471ea7785659f10d7c953889661`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 28.24539875984192 seconds. +- Overall skill 0.363004; relative MASE 0.756412; relative WQL 0.536432. +- term skill: long=0.3857, medium=0.3920, short=0.3425. +- domain skill: Econ/Fin=0.1135, Energy=0.2193, Healthcare=0.4094, Nature=0.4163, Sales=0.3443, Transport=0.4551, Web/CloudOps=0.4933. +- frequency skill: A=0.3737, D=0.3414, H=0.3797, M=0.0903, Q=0.1811, S=0.4171, T=0.4196, W=0.2193. +- variates skill: multivariate=0.3812, univariate=0.3481. +- Outcome: Skill0.363004205 exceeds original E79at30000 0.358563990 by0.004440216. Same immutable24000optimizer/EMA/RNG state, only the declared LR cooldown differs. Continue to36000 before schedule selection. + +## E97 weekly3000 earlier cutoff1 +- Checkpoint SHA-256: `a5619c3da9cb9049d92c9582e7fd74dea3e3d474bf5cf8499522e739cd202305`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 26.978241682052612 seconds. +- Overall skill 0.336324; relative MASE 0.797606; relative WQL 0.552235. +- term skill: long=0.3979, medium=0.3586, short=0.3021. +- domain skill: Econ/Fin=0.1518, Energy=0.2284, Healthcare=0.4155, Nature=0.3672, Sales=0.3939, Transport=0.3733, Web/CloudOps=0.4489. +- frequency skill: A=0.3129, D=0.3516, H=0.3666, M=0.1788, Q=0.2305, S=0.3410, T=0.3350, W=0.2907. +- variates skill: multivariate=0.3530, univariate=0.3227. +- Outcome: Fixed3000checkpoint, seed197/B64/LR2e-5. Matched E80earlier scores0.336119626/0.358234785/0.388791691. Candidate first/third improve slightly and second regresses; mixed standalone evidence. E104 matched-delta composition evaluated separately. + +## E97 weekly3000 earlier cutoff2 +- Checkpoint SHA-256: `a5619c3da9cb9049d92c9582e7fd74dea3e3d474bf5cf8499522e739cd202305`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 26.026545524597168 seconds. +- Overall skill 0.357608; relative MASE 0.772348; relative WQL 0.534302. +- term skill: long=0.3634, medium=0.3874, short=0.3435. +- domain skill: Econ/Fin=0.1055, Energy=0.2359, Healthcare=0.3296, Nature=0.4704, Sales=0.5497, Transport=0.4211, Web/CloudOps=0.4319. +- frequency skill: A=0.3536, D=0.4229, H=0.3913, M=0.1492, Q=0.1501, S=0.2808, T=0.3592, W=0.2527. +- variates skill: multivariate=0.3632, univariate=0.3530. +- Outcome: Fixed3000checkpoint, seed197/B64/LR2e-5. Matched E80earlier scores0.336119626/0.358234785/0.388791691. Candidate first/third improve slightly and second regresses; mixed standalone evidence. E104 matched-delta composition evaluated separately. + +## E97 weekly3000 earlier cutoff3 +- Checkpoint SHA-256: `a5619c3da9cb9049d92c9582e7fd74dea3e3d474bf5cf8499522e739cd202305`. +- Evaluation: 93 configurations, 8812 instances, 0 failed configurations; 25.23224711418152 seconds. +- Overall skill 0.389288; relative MASE 0.737704; relative WQL 0.505581. +- term skill: long=0.3960, medium=0.3604, short=0.3973. +- domain skill: Econ/Fin=0.1690, Energy=0.3192, Healthcare=0.2786, Nature=0.5046, Sales=0.3991, Transport=0.5056, Web/CloudOps=0.3897. +- frequency skill: A=0.3644, D=0.4424, H=0.4032, M=0.1383, Q=0.2578, S=0.2856, T=0.4308, W=0.2610. +- variates skill: multivariate=0.3738, univariate=0.4012. +- Outcome: Fixed3000checkpoint, seed197/B64/LR2e-5. Matched E80earlier scores0.336119626/0.358234785/0.388791691. Candidate first/third improve slightly and second regresses; mixed standalone evidence. E104 matched-delta composition evaluated separately. + +## E104 weekly matched-delta standalone valid_screen +- Checkpoint SHA-256: `094c7c694406075967f392a0d9ac1146bac984a90ab468c59d660a1b92fa7ba2`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 26.348880529403687 seconds. +- Overall skill 0.381830; relative MASE 0.739086; relative WQL 0.517036. +- term skill: long=0.4034, medium=0.4069, short=0.3634. +- domain skill: Econ/Fin=0.1309, Energy=0.2397, Healthcare=0.4832, Nature=0.4388, Sales=0.3386, Transport=0.4639, Web/CloudOps=0.5053. +- frequency skill: A=0.3743, D=0.3550, H=0.4003, M=0.1128, Q=0.1977, S=0.4242, T=0.4413, W=0.2371. +- variates skill: multivariate=0.3976, univariate=0.3690. +- Outcome: Fixed E83 + E97weekly3000 - E80overflow3000, coefficient1. Merge1.392576CPU seconds, no optimizer updates. Standalone improves main/first earlier versus E83 and declines at second/third; fixed equal ensemble assessed separately. + +## E104 weekly matched-delta standalone valid_backcast +- Checkpoint SHA-256: `094c7c694406075967f392a0d9ac1146bac984a90ab468c59d660a1b92fa7ba2`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 31.152572631835938 seconds. +- Overall skill 0.336131; relative MASE 0.797469; relative WQL 0.552651. +- term skill: long=0.3953, medium=0.3602, short=0.3023. +- domain skill: Econ/Fin=0.1601, Energy=0.2285, Healthcare=0.3995, Nature=0.3691, Sales=0.3960, Transport=0.3717, Web/CloudOps=0.4496. +- frequency skill: A=0.3204, D=0.3464, H=0.3692, M=0.1755, Q=0.2317, S=0.3401, T=0.3348, W=0.2897. +- variates skill: multivariate=0.3531, univariate=0.3223. +- Outcome: Fixed E83 + E97weekly3000 - E80overflow3000, coefficient1. Merge1.392576CPU seconds, no optimizer updates. Standalone improves main/first earlier versus E83 and declines at second/third; fixed equal ensemble assessed separately. + +## E104 weekly matched-delta standalone valid_backcast2 +- Checkpoint SHA-256: `094c7c694406075967f392a0d9ac1146bac984a90ab468c59d660a1b92fa7ba2`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 24.71313166618347 seconds. +- Overall skill 0.359266; relative MASE 0.771102; relative WQL 0.532407. +- term skill: long=0.3665, medium=0.3870, short=0.3455. +- domain skill: Econ/Fin=0.1182, Energy=0.2385, Healthcare=0.3103, Nature=0.4745, Sales=0.5516, Transport=0.4204, Web/CloudOps=0.4341. +- frequency skill: A=0.3507, D=0.4222, H=0.3921, M=0.1412, Q=0.1508, S=0.2801, T=0.3641, W=0.2573. +- variates skill: multivariate=0.3652, univariate=0.3544. +- Outcome: Fixed E83 + E97weekly3000 - E80overflow3000, coefficient1. Merge1.392576CPU seconds, no optimizer updates. Standalone improves main/first earlier versus E83 and declines at second/third; fixed equal ensemble assessed separately. + +## E104 weekly matched-delta standalone valid_backcast3 +- Checkpoint SHA-256: `094c7c694406075967f392a0d9ac1146bac984a90ab468c59d660a1b92fa7ba2`. +- Evaluation: 93 configurations, 8812 instances, 0 failed configurations; 27.16672372817993 seconds. +- Overall skill 0.388450; relative MASE 0.741068; relative WQL 0.504669. +- term skill: long=0.3933, medium=0.3623, short=0.3962. +- domain skill: Econ/Fin=0.1766, Energy=0.3223, Healthcare=0.2292, Nature=0.5006, Sales=0.4004, Transport=0.5087, Web/CloudOps=0.3907. +- frequency skill: A=0.3616, D=0.4377, H=0.4053, M=0.1372, Q=0.2595, S=0.2755, T=0.4323, W=0.2534. +- variates skill: multivariate=0.3728, univariate=0.4005. +- Outcome: Fixed E83 + E97weekly3000 - E80overflow3000, coefficient1. Merge1.392576CPU seconds, no optimizer updates. Standalone improves main/first earlier versus E83 and declines at second/third; fixed equal ensemble assessed separately. + +## E104 fixed equal ensemble four-cutoff result +{"composition": "equal quantile mean after each member applies its own fixed rules", "skill_score": 0.3854686334562757, "rel_mase_gmean": 0.736317060829138, "rel_wql_gmean": 0.5128888362858817, "groups": {"term": {"short": 0.36816414362245353, "medium": 0.408440542958879, "long": 0.40638695737391495}, "domain": {"Econ/Fin": 0.1425263103369776, "Energy": 0.24632269833233222, "Healthcare": 0.4841127370370696, "Nature": 0.4419832586228435, "Sales": 0.34402063532792737, "Transport": 0.46813360862898734, "Web/CloudOps": 0.5044110005980553}, "freq": {"A-DEC": 0.3754462639697367, "Q-DEC": 0.19683288984300373, "M": 0.12041158797480767, "W-SUN": 0.10445402624428435, "D": 0.36437209338558496, "H": 0.40083310684490536, "15T": 0.21665767736788544, "W-FRI": 0.012382553366723226, "10T": 0.627237041718931, "W-TUE": 0.6419405160293805, "W-THU": 0.2063343746335743, "W-WED": 0.3296903939083894, "5T": 0.5194953263110145, "10S": 0.42496228760958743}}, "configs": [{"config_id": "m4_yearly__A__short", "leaderboard_key": "m4_yearly/A/short", "dataset": "m4_yearly", "term": "short", "freq": "A-DEC", "prediction_length": 6, "seasonality": 1, "n_variates": 1, "n_instances": 192, "domain": "Econ/Fin", "n_cohorts": 3, "skipped_series": 235, "dropped_containers": 11, "metrics": {"mase": 2.795416976588694, "wql": 0.08756880337104156, "wsql_by_level": [0.05252887822448462, 0.07932989461227326, 0.0959700106880147, 0.10455763068237416, 0.1063572505530461, 0.10658406951368415, 0.09915145380020426, 0.08468878326621433, 0.05895125899907835], "n_valid_labels": 1152, "n_masked_labels": 0, "mae_median": 549.2148649295171, "n_mase_elements": 1152, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.6126392994384536, "wql": 0.6366998812301077}}, {"config_id": "m4_quarterly__Q__short", "leaderboard_key": "m4_quarterly/Q/short", "dataset": "m4_quarterly", "term": "short", "freq": "Q-DEC", "prediction_length": 8, "seasonality": 4, "n_variates": 1, "n_instances": 192, "domain": "Econ/Fin", "n_cohorts": 3, "dropped_containers": 95, "metrics": {"mase": 1.268227388475534, "wql": 0.07681830668494384, "wsql_by_level": [0.04042083458880533, 0.06359275473978293, 0.08000831523251448, 0.09091168162013274, 0.09651369946150555, 0.09673283523414461, 0.09151898821247428, 0.0778237643192909, 0.05384188675584369], "n_valid_labels": 1536, "n_masked_labels": 0, "mae_median": 519.8114858369032, "n_mase_elements": 1536, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.7767149083028737, "wql": 0.8305201817838648}}, {"config_id": "m4_monthly__M__short", "leaderboard_key": "m4_monthly/M/short", "dataset": "m4_monthly", "term": "short", "freq": "M", "prediction_length": 18, "seasonality": 12, "n_variates": 1, "n_instances": 192, "domain": "Econ/Fin", "n_cohorts": 3, "dropped_containers": 499, "metrics": {"mase": 0.9387358782206154, "wql": 0.11285109298383048, "wsql_by_level": [0.06134478839940721, 0.09485179214060362, 0.11540523935164874, 0.12890946874409262, 0.136647556715382, 0.13749452198589188, 0.13098699298148542, 0.11774639704301346, 0.0922730794929493], "n_valid_labels": 3456, "n_masked_labels": 0, "mae_median": 646.7568616337246, "n_mase_elements": 3456, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.816335853241079, "wql": 0.8288358266707591}}, {"config_id": "m4_weekly__W__short", "leaderboard_key": "m4_weekly/W/short", "dataset": "m4_weekly", "term": "short", "freq": "W-SUN", "prediction_length": 13, "seasonality": 1, "n_variates": 1, "n_instances": 192, "domain": "Econ/Fin", "n_cohorts": 2, "dropped_containers": 4, "metrics": {"mase": 2.8867052151722588, "wql": 0.05404656893968851, "wsql_by_level": [0.029807414872656677, 0.04605890529290171, 0.05673686200647567, 0.06333934400212216, 0.06718069790237324, 0.0684244799429442, 0.06408761552005404, 0.053931994669479406, 0.036851806248189484], "n_valid_labels": 2496, "n_masked_labels": 0, "mae_median": 333.4642290518834, "n_mase_elements": 2496, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 1.098295162106453, "wql": 0.7302250057916019}}, {"config_id": "m4_daily__D__short", "leaderboard_key": "m4_daily/D/short", "dataset": "m4_daily", "term": "short", "freq": "D", "prediction_length": 14, "seasonality": 1, "n_variates": 1, "n_instances": 192, "domain": "Econ/Fin", "n_cohorts": 2, "dropped_containers": 23, "metrics": {"mase": 3.1936882256260537, "wql": 0.019256542436877896, "wsql_by_level": [0.011530887742870673, 0.016857927154135987, 0.020548250829197437, 0.022889113930561356, 0.02395622004597089, 0.023773593914345643, 0.022079570197996758, 0.01863521994753962, 0.013038098169282733], "n_valid_labels": 2688, "n_masked_labels": 0, "mae_median": 172.77467766262237, "n_mase_elements": 2688, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 1.023209338914692, "wql": 1.0250642421255833}}, {"config_id": "m4_hourly__H__short", "leaderboard_key": "m4_hourly/H/short", "dataset": "m4_hourly", "term": "short", "freq": "H", "prediction_length": 48, "seasonality": 24, "n_variates": 1, "n_instances": 192, "domain": "Econ/Fin", "n_cohorts": 1, "metrics": {"mase": 1.2094391645761666, "wql": 0.038116260503183425, "wsql_by_level": [0.019263175762145472, 0.03230955303590387, 0.04137014097843697, 0.046555300547802186, 0.048861706646772, 0.04826905847853227, 0.04460205648239837, 0.03699396057937847, 0.024821392017281237], "n_valid_labels": 9216, "n_masked_labels": 0, "mae_median": 391.8570696660835, "n_mase_elements": 9216, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 1.0001696160920521, "wql": 1.1030515057204093}}, {"config_id": "electricity__T__short", "leaderboard_key": "electricity/15T/short", "dataset": "electricity/15T", "term": "short", "freq": "15T", "prediction_length": 48, "seasonality": 96, "n_variates": 1, "n_instances": 192, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 0.9824612882781023, "wql": 0.04899481001536353, "wsql_by_level": [0.028395811361843548, 0.044092878604357774, 0.05412045723259588, 0.05992756900431569, 0.06226886608424658, 0.0607567109377272, 0.055284712749889435, 0.0456100312892153, 0.03049625287408038], "n_valid_labels": 9216, "n_masked_labels": 0, "mae_median": 35.737774749823274, "n_mase_elements": 9216, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.9154363074357945, "wql": 0.870276133011924}}, {"config_id": "electricity__T__medium", "leaderboard_key": "electricity/15T/medium", "dataset": "electricity/15T", "term": "medium", "freq": "15T", "prediction_length": 480, "seasonality": 96, "n_variates": 1, "n_instances": 192, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 0.9138171992921842, "wql": 0.06777267665914909, "wsql_by_level": [0.03736362960213149, 0.05831936817269399, 0.07212694659974693, 0.08075107449309941, 0.08507402474802193, 0.0848937494604228, 0.07937858123492646, 0.06702806179388453, 0.04501865382741436], "n_valid_labels": 92160, "n_masked_labels": 0, "mae_median": 50.67895454541528, "n_mase_elements": 92160, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.6101086438088109, "wql": 0.5783935026933213}}, {"config_id": "electricity__T__long", "leaderboard_key": "electricity/15T/long", "dataset": "electricity/15T", "term": "long", "freq": "15T", "prediction_length": 720, "seasonality": 96, "n_variates": 1, "n_instances": 192, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 0.8447145538964363, "wql": 0.06827385263696915, "wsql_by_level": [0.034366406591681255, 0.054758756540683524, 0.06867134398777669, 0.07815171621716906, 0.08360791483416628, 0.08514868000485296, 0.08210597264875295, 0.07291497326855305, 0.05473890963908665], "n_valid_labels": 138240, "n_masked_labels": 0, "mae_median": 58.010600292991874, "n_mase_elements": 138240, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.793087238785798, "wql": 0.6830225886678682}}, {"config_id": "electricity__H__short", "leaderboard_key": "electricity/H/short", "dataset": "electricity/H", "term": "short", "freq": "H", "prediction_length": 48, "seasonality": 24, "n_variates": 1, "n_instances": 192, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.0541225658397144, "wql": 0.08072226170236818, "wsql_by_level": [0.052059029989780965, 0.07381706780740498, 0.08940650364012412, 0.09766545900035152, 0.10082063296922232, 0.09910661858775432, 0.09154474356341316, 0.07554767215719776, 0.046532627606064456], "n_valid_labels": 9216, "n_masked_labels": 0, "mae_median": 390.0401897939802, "n_mase_elements": 9216, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 1.0354875111412227, "wql": 1.135230642035518}}, {"config_id": "electricity__H__medium", "leaderboard_key": "electricity/H/medium", "dataset": "electricity/H", "term": "medium", "freq": "H", "prediction_length": 480, "seasonality": 24, "n_variates": 1, "n_instances": 192, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 0.987906550246096, "wql": 0.05831413221480887, "wsql_by_level": [0.035281333139195646, 0.05204886496969009, 0.06226172565504222, 0.06849759857719877, 0.07160528468705928, 0.07136948746888597, 0.06706557636024374, 0.05729945878038814, 0.03939786029557599], "n_valid_labels": 91680, "n_masked_labels": 480, "mae_median": 123.75324168954644, "n_mase_elements": 91680, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 1}, "relative": {"mase": 0.8019251745922997, "wql": 0.5430069851629276}}, {"config_id": "electricity__H__long", "leaderboard_key": "electricity/H/long", "dataset": "electricity/H", "term": "long", "freq": "H", "prediction_length": 720, "seasonality": 24, "n_variates": 1, "n_instances": 192, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.1658983357361172, "wql": 0.07357137105462702, "wsql_by_level": [0.03806675818908281, 0.059142989437638696, 0.07342462305723155, 0.08285541620257916, 0.08838165621663885, 0.09018932974142142, 0.08792010941992093, 0.07996623752695645, 0.06219521970017341], "n_valid_labels": 138240, "n_masked_labels": 0, "mae_median": 186.11038970290943, "n_mase_elements": 138240, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8774867972029426, "wql": 0.5455441107583858}}, {"config_id": "electricity__D__short", "leaderboard_key": "electricity/D/short", "dataset": "electricity/D", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 1, "n_instances": 192, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.5099228588256168, "wql": 0.07527743513872845, "wsql_by_level": [0.028622408054189894, 0.04768450605964861, 0.06725250904152086, 0.08213824752270928, 0.09297724078143454, 0.09881426714227798, 0.09865420796317632, 0.09083260698582611, 0.07052092269777245], "n_valid_labels": 5760, "n_masked_labels": 0, "mae_median": 7288.701407634384, "n_mase_elements": 5760, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8926983627507425, "wql": 0.79849359571092}}, {"config_id": "electricity__W__short", "leaderboard_key": "electricity/W/short", "dataset": "electricity/W", "term": "short", "freq": "W-FRI", "prediction_length": 8, "seasonality": 1, "n_variates": 1, "n_instances": 192, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.4392953288002797, "wql": 0.07420910508641608, "wsql_by_level": [0.028263841036851898, 0.04947998113827854, 0.07029779814024846, 0.08377757347254892, 0.09415267782839486, 0.09698646132937698, 0.09468528173713849, 0.08549470200807237, 0.06474362908683412], "n_valid_labels": 1528, "n_masked_labels": 8, "mae_median": 51115.92140796921, "n_mase_elements": 1528, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 1}, "relative": {"mase": 1.0668448666538084, "wql": 1.0087383094433606}}, {"config_id": "solar__T__short", "leaderboard_key": "solar/10T/short", "dataset": "solar/10T", "term": "short", "freq": "10T", "prediction_length": 48, "seasonality": 144, "n_variates": 1, "n_instances": 137, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 0.01781347502043181, "wql": 0.42143977766900104, "wsql_by_level": [0.17504993687835133, 0.3294048479026965, 0.42535470871197667, 0.47927406289283053, 0.5120761379588328, 0.5104829060919627, 0.5115224252725261, 0.4839584145927364, 0.36583455871909654], "n_valid_labels": 6576, "n_masked_labels": 0, "mae_median": 0.04948667653070405, "n_mase_elements": 6576, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 1.1120657611865516, "wql": 0.03477638127025891}}, {"config_id": "solar__T__medium", "leaderboard_key": "solar/10T/medium", "dataset": "solar/10T", "term": "medium", "freq": "10T", "prediction_length": 480, "seasonality": 144, "n_variates": 1, "n_instances": 137, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 0.6985151810314955, "wql": 0.2855006101463456, "wsql_by_level": [0.2169575653904273, 0.3172811042774564, 0.3523149180545522, 0.35215603486356883, 0.3379716322295703, 0.318100703509344, 0.28609829522194585, 0.2334167585437219, 0.15520847922652367], "n_valid_labels": 65760, "n_masked_labels": 0, "mae_median": 1.6148956313713991, "n_mase_elements": 65760, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8384101144161774, "wql": 0.5052721781327353}}, {"config_id": "solar__T__long", "leaderboard_key": "solar/10T/long", "dataset": "solar/10T", "term": "long", "freq": "10T", "prediction_length": 720, "seasonality": 144, "n_variates": 1, "n_instances": 137, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 0.6978424350693991, "wql": 0.22233494197166248, "wsql_by_level": [0.166332992574431, 0.2595059797989555, 0.29659837268966455, 0.29931074035142674, 0.27858571503504526, 0.24242162336894557, 0.19627915034004179, 0.1502371646644031, 0.11174273892204904], "n_valid_labels": 98640, "n_masked_labels": 0, "mae_median": 1.6368925869296436, "n_mase_elements": 98640, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.32577257090458905, "wql": 0.24615579268877133}}, {"config_id": "solar__H__short", "leaderboard_key": "solar/H/short", "dataset": "solar/H", "term": "short", "freq": "H", "prediction_length": 48, "seasonality": 24, "n_variates": 1, "n_instances": 137, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 0.8617467091885954, "wql": 0.3293434646453593, "wsql_by_level": [0.21653214324107156, 0.3608860084185891, 0.4238913877404794, 0.4319325450630538, 0.4078626713071489, 0.3677051265706955, 0.31726362737950115, 0.25946595473130807, 0.1785517173563864], "n_valid_labels": 6576, "n_masked_labels": 0, "mae_median": 11.249563878051452, "n_mase_elements": 6576, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8153283079097247, "wql": 0.546812071142352}}, {"config_id": "solar__H__medium", "leaderboard_key": "solar/H/medium", "dataset": "solar/H", "term": "medium", "freq": "H", "prediction_length": 480, "seasonality": 24, "n_variates": 1, "n_instances": 137, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.2022744177567275, "wql": 0.4450076691075868, "wsql_by_level": [0.45330812773553775, 0.5680630656352184, 0.5907064246201226, 0.5694126752918893, 0.523723531935585, 0.46059598495992393, 0.38173554779181534, 0.28563632923846516, 0.1718873347597239], "n_valid_labels": 65760, "n_masked_labels": 0, "mae_median": 15.694438455592719, "n_mase_elements": 65760, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8723069938406994, "wql": 0.45972699007357887}}, {"config_id": "solar__H__long", "leaderboard_key": "solar/H/long", "dataset": "solar/H", "term": "long", "freq": "H", "prediction_length": 720, "seasonality": 24, "n_variates": 1, "n_instances": 137, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.0399757532265896, "wql": 0.3554566364255842, "wsql_by_level": [0.4236411108275793, 0.4641399602000191, 0.4632445721303884, 0.44104649567727083, 0.40539762952064134, 0.35730628180110435, 0.2962660494071995, 0.2203389636641255, 0.12772866460192975], "n_valid_labels": 98640, "n_masked_labels": 0, "mae_median": 13.666343091270907, "n_mase_elements": 98640, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.9698189740538452, "wql": 0.3937320083199028}}, {"config_id": "solar__D__short", "leaderboard_key": "solar/D/short", "dataset": "solar/D", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 1, "n_instances": 137, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.1393415951992427, "wql": 0.28779881110159267, "wsql_by_level": [0.246847555738178, 0.35144868180361505, 0.3848117555811675, 0.3828138817256278, 0.3563405183132376, 0.3142248147378668, 0.25713374018742813, 0.18831075367532824, 0.1082575981518845], "n_valid_labels": 4110, "n_masked_labels": 0, "mae_median": 288.3019393257271, "n_mase_elements": 4110, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.9762506655223895, "wql": 0.6104917515406019}}, {"config_id": "solar__W__short", "leaderboard_key": "solar/W/short", "dataset": "solar/W", "term": "short", "freq": "W-FRI", "prediction_length": 8, "seasonality": 1, "n_variates": 1, "n_instances": 137, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.0268852032580833, "wql": 0.12052706700107489, "wsql_by_level": [0.05818950699285998, 0.11595881963990586, 0.14642893441175975, 0.15527060942685042, 0.15356069013241036, 0.14427571098979933, 0.12882774565443475, 0.1071060410364652, 0.0751255447251884], "n_valid_labels": 1096, "n_masked_labels": 0, "mae_median": 942.9758961252923, "n_mase_elements": 1096, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 1.0188790216573897, "wql": 0.8676660533162098}}, {"config_id": "hospital__M__short", "leaderboard_key": "hospital/M/short", "dataset": "hospital", "term": "short", "freq": "M", "prediction_length": 12, "seasonality": 12, "n_variates": 1, "n_instances": 192, "domain": "Healthcare", "n_cohorts": 1, "metrics": {"mase": 0.7847733130457222, "wql": 0.053420509620148826, "wsql_by_level": [0.027790076786016814, 0.04430160082100439, 0.05484753898873574, 0.06334639970768964, 0.06797641550890926, 0.06789033535039125, 0.06360322310563211, 0.05369613414971308, 0.03733286216324714], "n_valid_labels": 2304, "n_masked_labels": 0, "mae_median": 24.31328149450322, "n_mase_elements": 2304, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8685161977502073, "wql": 0.9428099884765189}}, {"config_id": "covid_deaths__D__short", "leaderboard_key": "covid_deaths/D/short", "dataset": "covid_deaths", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 1, "n_instances": 192, "domain": "Healthcare", "n_cohorts": 1, "metrics": {"mase": 38.23095597530944, "wql": 0.07565835856235899, "wsql_by_level": [0.06488312664714146, 0.09355169771892499, 0.10868264832032903, 0.10597437880207744, 0.09027346424775537, 0.056965212817616045, 0.04246456866517384, 0.053367319049436694, 0.06476281079277596], "n_valid_labels": 5760, "n_masked_labels": 0, "mae_median": 119.48539306917745, "n_mase_elements": 4980, "n_seasonal_error_zero": 26, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8523760722942941, "wql": 0.601940457311472}}, {"config_id": "us_births__D__short", "leaderboard_key": "us_births/D/short", "dataset": "us_births/D", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 1, "n_instances": 1, "domain": "Healthcare", "n_cohorts": 1, "metrics": {"mase": 0.4683471073212719, "wql": 0.02690163787960409, "wsql_by_level": [0.012519404448211847, 0.018547585448283086, 0.024551840767867615, 0.02741222552467023, 0.030394372626209108, 0.03538051003031574, 0.037291790440225105, 0.03347683644816188, 0.022540175182492208], "n_valid_labels": 30, "n_masked_labels": 0, "mae_median": 309.30022786458335, "n_mase_elements": 30, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.2011708799119241, "wql": 0.20603760414131309}}, {"config_id": "us_births__M__short", "leaderboard_key": "us_births/M/short", "dataset": "us_births/M", "term": "short", "freq": "M", "prediction_length": 12, "seasonality": 12, "n_variates": 1, "n_instances": 1, "domain": "Healthcare", "n_cohorts": 1, "metrics": {"mase": 0.2632496713784672, "wql": 0.007624636894155283, "wsql_by_level": [0.005740636266914142, 0.00669562959867952, 0.006415264111996609, 0.007365210476773466, 0.007865769392696903, 0.007709336643382707, 0.009020174329738895, 0.009829421143081944, 0.007980290084133368], "n_valid_labels": 12, "n_masked_labels": 0, "mae_median": 2469.2708333333335, "n_mase_elements": 12, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8707902315739978, "wql": 0.686792676525858}}, {"config_id": "us_births__W__short", "leaderboard_key": "us_births/W/short", "dataset": "us_births/W", "term": "short", "freq": "W-TUE", "prediction_length": 8, "seasonality": 1, "n_variates": 1, "n_instances": 1, "domain": "Healthcare", "n_cohorts": 1, "metrics": {"mase": 1.3439668302592565, "wql": 0.015538928857283843, "wsql_by_level": [0.008149730706929493, 0.015485149708547646, 0.018908646300848733, 0.01980101172362688, 0.019660444668581117, 0.0187701796519375, 0.016784749749211507, 0.013938410631079623, 0.0083520365747921], "n_valid_labels": 8, "n_masked_labels": 0, "mae_median": 1462.5478515625, "n_mase_elements": 8, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.3483189786698818, "wql": 0.3680723759322161}}, {"config_id": "saugeenday__D__short", "leaderboard_key": "saugeen/D/short", "dataset": "saugeenday/D", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 1, "n_instances": 1, "domain": "Nature", "n_cohorts": 1, "metrics": {"mase": 3.2379394826019117, "wql": 0.32258585175584387, "wsql_by_level": [0.15009877492359122, 0.2699071963054936, 0.36480964084176287, 0.429573899167784, 0.45823803356515874, 0.42717553516290857, 0.3351583385200374, 0.2215160947494623, 0.24679515256639606], "n_valid_labels": 30, "n_masked_labels": 0, "mae_median": 14.235928344726563, "n_mase_elements": 30, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8305675631954952, "wql": 0.5953264411491401}}, {"config_id": "saugeenday__M__short", "leaderboard_key": "saugeen/M/short", "dataset": "saugeenday/M", "term": "short", "freq": "M", "prediction_length": 12, "seasonality": 12, "n_variates": 1, "n_instances": 1, "domain": "Nature", "n_cohorts": 1, "metrics": {"mase": 0.447265017966201, "wql": 0.2307741278381414, "wsql_by_level": [0.11948748410211966, 0.20558068850434347, 0.25366673650790045, 0.2711589268222958, 0.2666016298699337, 0.25080164410889916, 0.2536812298869933, 0.2631835026219238, 0.19280530811886343], "n_valid_labels": 12, "n_masked_labels": 0, "mae_median": 7.753377676010132, "n_mase_elements": 12, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 1.346044379035233, "wql": 0.882496776385616}}, {"config_id": "saugeenday__W__short", "leaderboard_key": "saugeen/W/short", "dataset": "saugeenday/W", "term": "short", "freq": "W-THU", "prediction_length": 8, "seasonality": 1, "n_variates": 1, "n_instances": 1, "domain": "Nature", "n_cohorts": 1, "metrics": {"mase": 0.7330330272586232, "wql": 0.24147546142758547, "wsql_by_level": [0.10751263398587159, 0.18331227585741458, 0.2502510695301909, 0.3133840201557028, 0.3592666151397, 0.36245011569972874, 0.2884292388494765, 0.13843016727866211, 0.1702430163515221], "n_valid_labels": 8, "n_masked_labels": 0, "mae_median": 8.785351753234863, "n_mase_elements": 8, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 1.2892549439821193, "wql": 0.4028557997401655}}, {"config_id": "temperature_rain_with_missing__D__short", "leaderboard_key": "temperature_rain/D/short", "dataset": "temperature_rain_with_missing", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 1, "n_instances": 192, "domain": "Nature", "n_cohorts": 1, "metrics": {"mase": 1.9559930019720881, "wql": 0.4947299668702683, "wsql_by_level": [0.1802116378075862, 0.33158236937698643, 0.4579114859648925, 0.5564406030720168, 0.6162810537447235, 0.6492325225743822, 0.6515226891383746, 0.5857612147562478, 0.42362612539720557], "n_valid_labels": 5760, "n_masked_labels": 0, "mae_median": 6.430995614538632, "n_mase_elements": 5760, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.6695614586247304, "wql": 0.4691966328995636}}, {"config_id": "kdd_cup_2018_with_missing__H__short", "leaderboard_key": "kdd_cup_2018/H/short", "dataset": "kdd_cup_2018_with_missing/H", "term": "short", "freq": "H", "prediction_length": 48, "seasonality": 24, "n_variates": 1, "n_instances": 192, "domain": "Nature", "n_cohorts": 2, "metrics": {"mase": 0.5205984182413413, "wql": 0.37434376546657755, "wsql_by_level": [0.14874802649519717, 0.249307214916932, 0.33521712975229895, 0.410567172978763, 0.4656408160355961, 0.490297506901656, 0.48628563319462764, 0.44844947895039156, 0.3345809099737359], "n_valid_labels": 8214, "n_masked_labels": 1002, "mae_median": 11.944559938516282, "n_mase_elements": 8214, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.7847300683952065, "wql": 0.5948636206793396}}, {"config_id": "kdd_cup_2018_with_missing__H__medium", "leaderboard_key": "kdd_cup_2018/H/medium", "dataset": "kdd_cup_2018_with_missing/H", "term": "medium", "freq": "H", "prediction_length": 480, "seasonality": 24, "n_variates": 1, "n_instances": 192, "domain": "Nature", "n_cohorts": 2, "metrics": {"mase": 0.9403458002900037, "wql": 0.46836186898669285, "wsql_by_level": [0.18146211048472, 0.33377540218943186, 0.4570456131597061, 0.5504150893516991, 0.6088735954505923, 0.6247770468735193, 0.5930208842717021, 0.5088418252502578, 0.35704525384860764], "n_valid_labels": 83394, "n_masked_labels": 8766, "mae_median": 20.235989950861445, "n_mase_elements": 83394, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.730416022325679, "wql": 0.4444610118863832}}, {"config_id": "kdd_cup_2018_with_missing__H__long", "leaderboard_key": "kdd_cup_2018/H/long", "dataset": "kdd_cup_2018_with_missing/H", "term": "long", "freq": "H", "prediction_length": 720, "seasonality": 24, "n_variates": 1, "n_instances": 192, "domain": "Nature", "n_cohorts": 2, "metrics": {"mase": 0.8626181081013944, "wql": 0.48346631841404303, "wsql_by_level": [0.1879849503192842, 0.33672916352113014, 0.46084527271172426, 0.5559294727548728, 0.6193657068681274, 0.6438925278545381, 0.6255484892201704, 0.5490170982348758, 0.37188418424166453], "n_valid_labels": 125466, "n_masked_labels": 12774, "mae_median": 18.72813091088498, "n_mase_elements": 125466, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8894528621182541, "wql": 0.3782618005091297}}, {"config_id": "kdd_cup_2018_with_missing__D__short", "leaderboard_key": "kdd_cup_2018/D/short", "dataset": "kdd_cup_2018_with_missing/D", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 1, "n_instances": 192, "domain": "Nature", "n_cohorts": 2, "metrics": {"mase": 1.0411937701254517, "wql": 0.4017401138759986, "wsql_by_level": [0.17039599861666724, 0.30036137669036833, 0.3951034986671659, 0.4626857576284326, 0.5043410347516797, 0.5198680964731249, 0.5064294526635623, 0.4485036332408756, 0.3079721761521109], "n_valid_labels": 5469, "n_masked_labels": 291, "mae_median": 14.86369142490634, "n_mase_elements": 5469, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8448323206680709, "wql": 0.4519564588216427}}, {"config_id": "car_parts_with_missing__M__short", "leaderboard_key": "car_parts/M/short", "dataset": "car_parts_with_missing", "term": "short", "freq": "M", "prediction_length": 12, "seasonality": 12, "n_variates": 1, "n_instances": 192, "domain": "Sales", "n_cohorts": 1, "metrics": {"mase": 1.4856197613408295, "wql": 1.1765739846415382, "wsql_by_level": [0.347378921593696, 0.6162032901660557, 0.8861393399177081, 1.163433632451788, 1.3996605600026089, 1.579024745281525, 1.6780076107891573, 1.620651945864646, 1.2986658157066575], "n_valid_labels": 2244, "n_masked_labels": 60, "mae_median": 0.6567925889851814, "n_mase_elements": 2088, "n_seasonal_error_zero": 14, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.9767913606049345, "wql": 0.7210111618390951}}, {"config_id": "restaurant__D__short", "leaderboard_key": "restaurant/D/short", "dataset": "restaurant", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 1, "n_instances": 192, "domain": "Sales", "n_cohorts": 13, "skipped_series": 1, "metrics": {"mase": 0.699855230782104, "wql": 0.27002494185730236, "wsql_by_level": [0.14043272840861099, 0.2258430954556171, 0.28520270278041004, 0.3234761507573261, 0.34280856791706654, 0.3415619693520698, 0.31838648863722496, 0.2699097244944028, 0.1826030489129928], "n_valid_labels": 5052, "n_masked_labels": 708, "mae_median": 7.281492835717454, "n_mase_elements": 5052, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.709182128880753, "wql": 0.40231357659350614}}, {"config_id": "hierarchical_sales__D__short", "leaderboard_key": "hierarchical_sales/D/short", "dataset": "hierarchical_sales/D", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 1, "n_instances": 118, "domain": "Sales", "n_cohorts": 1, "metrics": {"mase": 0.9601874654243095, "wql": 0.6321255477753337, "wsql_by_level": [0.19862388530516814, 0.3730169278374515, 0.5264879563294177, 0.6595736148618315, 0.7652012576813627, 0.8399677859584039, 0.8725574744659007, 0.8262736512102663, 0.6274273763282014], "n_valid_labels": 3304, "n_masked_labels": 236, "mae_median": 3.000821033830937, "n_mase_elements": 3304, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8763760759910977, "wql": 0.4333250079859994}}, {"config_id": "hierarchical_sales__W__short", "leaderboard_key": "hierarchical_sales/W/short", "dataset": "hierarchical_sales/W", "term": "short", "freq": "W-WED", "prediction_length": 8, "seasonality": 1, "n_variates": 1, "n_instances": 118, "domain": "Sales", "n_cohorts": 1, "metrics": {"mase": 0.8202442974975183, "wql": 0.40248813326840344, "wsql_by_level": [0.1461635361113414, 0.2613576072043297, 0.3528116270399404, 0.4256032260565851, 0.4830573802552875, 0.5212339277970817, 0.5351582677907385, 0.5065778532959115, 0.3904297738644151], "n_valid_labels": 944, "n_masked_labels": 0, "mae_median": 11.794992176784298, "n_mase_elements": 944, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8241952573447494, "wql": 0.5451559736781498}}, {"config_id": "LOOP_SEATTLE__T__short", "leaderboard_key": "loop_seattle/5T/short", "dataset": "LOOP_SEATTLE/5T", "term": "short", "freq": "5T", "prediction_length": 48, "seasonality": 288, "n_variates": 1, "n_instances": 192, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 0.42519817427238726, "wql": 0.031181385576846916, "wsql_by_level": [0.019991528972427054, 0.02862708174718625, 0.034158205344288976, 0.037402554486037624, 0.0387730100623944, 0.038081308079914646, 0.035126824198851936, 0.02929620986760633, 0.019175747432914985], "n_valid_labels": 9216, "n_masked_labels": 0, "mae_median": 2.516321830658449, "n_mase_elements": 9216, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.6679218720728912, "wql": 0.5267364609894027}}, {"config_id": "LOOP_SEATTLE__T__medium", "leaderboard_key": "loop_seattle/5T/medium", "dataset": "LOOP_SEATTLE/5T", "term": "medium", "freq": "5T", "prediction_length": 480, "seasonality": 288, "n_variates": 1, "n_instances": 192, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 0.6153700402510184, "wql": 0.05035107470783137, "wsql_by_level": [0.03952728883626551, 0.05328890428855708, 0.060342494227199305, 0.0630604828177886, 0.062388730693246866, 0.05825063883612515, 0.05095447011576748, 0.04017562129751607, 0.025171041258016308], "n_valid_labels": 92160, "n_masked_labels": 0, "mae_median": 3.792207310537601, "n_mase_elements": 92160, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.3930037647961648, "wql": 0.3676395081796952}}, {"config_id": "LOOP_SEATTLE__T__long", "leaderboard_key": "loop_seattle/5T/long", "dataset": "LOOP_SEATTLE/5T", "term": "long", "freq": "5T", "prediction_length": 720, "seasonality": 288, "n_variates": 1, "n_instances": 192, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 0.6761649990417691, "wql": 0.0572653168383857, "wsql_by_level": [0.04464085282520972, 0.06137228261772506, 0.06953601879031288, 0.07232146505861785, 0.07082666909956455, 0.06575204178086193, 0.057327744747106474, 0.04516514571291398, 0.028445630913158826], "n_valid_labels": 138240, "n_masked_labels": 0, "mae_median": 4.172172207085209, "n_mase_elements": 138240, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.42402706126430506, "wql": 0.38779650693166234}}, {"config_id": "LOOP_SEATTLE__H__short", "leaderboard_key": "loop_seattle/H/short", "dataset": "LOOP_SEATTLE/H", "term": "short", "freq": "H", "prediction_length": 48, "seasonality": 24, "n_variates": 1, "n_instances": 192, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 0.6765087096621438, "wql": 0.043084712418972035, "wsql_by_level": [0.03528189165819572, 0.04652347491581842, 0.05148850420576167, 0.05320583232573008, 0.05219769809306395, 0.04947828167100879, 0.04395338924341385, 0.03450724079183582, 0.021126098865920005], "n_valid_labels": 9216, "n_masked_labels": 0, "mae_median": 3.1703119290889137, "n_mase_elements": 9216, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.3365815681101067, "wql": 0.3199350052903054}}, {"config_id": "LOOP_SEATTLE__H__medium", "leaderboard_key": "loop_seattle/H/medium", "dataset": "LOOP_SEATTLE/H", "term": "medium", "freq": "H", "prediction_length": 480, "seasonality": 24, "n_variates": 1, "n_instances": 192, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 0.7292184192203195, "wql": 0.05217279238334474, "wsql_by_level": [0.04425665343251407, 0.05828015503094614, 0.0639051096731201, 0.06473293891349434, 0.062383728766628496, 0.05750692334672778, 0.05049835212803286, 0.04099334550485246, 0.026997924653786365], "n_valid_labels": 92160, "n_masked_labels": 0, "mae_median": 3.477931014522134, "n_mase_elements": 92160, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.6389119611838323, "wql": 0.3503693234376778}}, {"config_id": "LOOP_SEATTLE__H__long", "leaderboard_key": "loop_seattle/H/long", "dataset": "LOOP_SEATTLE/H", "term": "long", "freq": "H", "prediction_length": 720, "seasonality": 24, "n_variates": 1, "n_instances": 192, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 0.716336874401693, "wql": 0.05060183047334479, "wsql_by_level": [0.042326896443685355, 0.05512505028509922, 0.06045247252338499, 0.06163221696794006, 0.06009255595339377, 0.056268611642367385, 0.05016698696722147, 0.041354068187107, 0.027997615289903844], "n_valid_labels": 138240, "n_masked_labels": 0, "mae_median": 3.373641640123808, "n_mase_elements": 138240, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.5728641867081193, "wql": 0.2878770265416452}}, {"config_id": "LOOP_SEATTLE__D__short", "leaderboard_key": "loop_seattle/D/short", "dataset": "LOOP_SEATTLE/D", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 1, "n_instances": 192, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 0.6223643606000772, "wql": 0.027812585959345843, "wsql_by_level": [0.020193561936795393, 0.028768861819276254, 0.03316673265530382, 0.03484293197107184, 0.03434676837941751, 0.032068569956341296, 0.028439043963701557, 0.023200065216247664, 0.015286737735957246], "n_valid_labels": 5760, "n_masked_labels": 0, "mae_median": 1.9391787310441335, "n_mase_elements": 5760, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.5152328993290893, "wql": 0.3111097947854181}}, {"config_id": "SZ_TAXI__T__short", "leaderboard_key": "sz_taxi/15T/short", "dataset": "SZ_TAXI/15T", "term": "short", "freq": "15T", "prediction_length": 48, "seasonality": 96, "n_variates": 1, "n_instances": 156, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 0.5228579784923939, "wql": 0.1970768936004838, "wsql_by_level": [0.10235310180573008, 0.16716537193245276, 0.21124872256221705, 0.2388910729780476, 0.2508754203710049, 0.24788375961668113, 0.22992413632960368, 0.19350285463576386, 0.13184760217285352], "n_valid_labels": 7488, "n_masked_labels": 0, "mae_median": 2.807908297890408, "n_mase_elements": 7488, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.721074961455623, "wql": 0.6518174809201931}}, {"config_id": "SZ_TAXI__T__medium", "leaderboard_key": "sz_taxi/15T/medium", "dataset": "SZ_TAXI/15T", "term": "medium", "freq": "15T", "prediction_length": 480, "seasonality": 96, "n_variates": 1, "n_instances": 156, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 0.4667788179289419, "wql": 0.19457245178550936, "wsql_by_level": [0.10116326516600097, 0.16112263364312396, 0.20181353850447256, 0.22790857986297222, 0.24114373914778028, 0.24148401288875812, 0.22849603678209912, 0.20024771765220972, 0.14777254242216753], "n_valid_labels": 74880, "n_masked_labels": 0, "mae_median": 2.6688034212137905, "n_mase_elements": 74880, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.7350787932775339, "wql": 0.49685998962622685}}, {"config_id": "SZ_TAXI__T__long", "leaderboard_key": "sz_taxi/15T/long", "dataset": "SZ_TAXI/15T", "term": "long", "freq": "15T", "prediction_length": 720, "seasonality": 96, "n_variates": 1, "n_instances": 156, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 0.4980129818863368, "wql": 0.21872471124890402, "wsql_by_level": [0.115304589447597, 0.1808413247621152, 0.2239024911223661, 0.25036149025498944, 0.2633789287653999, 0.26498570979372804, 0.2558955406474298, 0.23366484942790997, 0.18018747701860072], "n_valid_labels": 112320, "n_masked_labels": 0, "mae_median": 2.92501272927982, "n_mase_elements": 112320, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.818532286161662, "wql": 0.4804784573972439}}, {"config_id": "SZ_TAXI__H__short", "leaderboard_key": "sz_taxi/H/short", "dataset": "SZ_TAXI/H", "term": "short", "freq": "H", "prediction_length": 48, "seasonality": 24, "n_variates": 1, "n_instances": 156, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 0.4818650986186548, "wql": 0.13137636241942816, "wsql_by_level": [0.07027531157556749, 0.10955661008410027, 0.13567807139460025, 0.15209392037294905, 0.15971802754840733, 0.15941767608567592, 0.15145593641185795, 0.13686964832319354, 0.10732205997850143], "n_valid_labels": 7488, "n_masked_labels": 0, "mae_median": 1.7657058466388544, "n_mase_elements": 7488, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.7916113352519928, "wql": 0.6361103130073918}}, {"config_id": "M_DENSE__H__short", "leaderboard_key": "m_dense/H/short", "dataset": "M_DENSE/H", "term": "short", "freq": "H", "prediction_length": 48, "seasonality": 24, "n_variates": 1, "n_instances": 30, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 0.70816880088421, "wql": 0.12777595583992035, "wsql_by_level": [0.0940416557167201, 0.12730103163408915, 0.14547232558437032, 0.15496933303481944, 0.15639081556034648, 0.14938035993420723, 0.13527714716477465, 0.11226154476456596, 0.07488938916538992], "n_valid_labels": 1440, "n_masked_labels": 0, "mae_median": 98.50395038790172, "n_mase_elements": 1440, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8098302153525787, "wql": 0.6730978396901373}}, {"config_id": "M_DENSE__H__medium", "leaderboard_key": "m_dense/H/medium", "dataset": "M_DENSE/H", "term": "medium", "freq": "H", "prediction_length": 480, "seasonality": 24, "n_variates": 1, "n_instances": 30, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 0.7813052589383122, "wql": 0.13916150958667817, "wsql_by_level": [0.0839468237473706, 0.12200603082797291, 0.1442479668226164, 0.1581304855238339, 0.16666886566377695, 0.16843687032708576, 0.1611353821990735, 0.14238774187967418, 0.10549341928869949], "n_valid_labels": 14400, "n_masked_labels": 0, "mae_median": 97.8280440486802, "n_mase_elements": 14400, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.6668565885084394, "wql": 0.39789275746283403}}, {"config_id": "M_DENSE__H__long", "leaderboard_key": "m_dense/H/long", "dataset": "M_DENSE/H", "term": "long", "freq": "H", "prediction_length": 720, "seasonality": 24, "n_variates": 1, "n_instances": 30, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 1.0764692554309299, "wql": 0.17809570501739747, "wsql_by_level": [0.08815323250629209, 0.1410735540862456, 0.17854143324240113, 0.20517321300852073, 0.22310047192928828, 0.2285954304677697, 0.2190965517658008, 0.18834030598237086, 0.13078715216788814], "n_valid_labels": 21600, "n_masked_labels": 0, "mae_median": 130.75150047112393, "n_mase_elements": 21600, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.9962526555087059, "wql": 0.4636470652582325}}, {"config_id": "M_DENSE__D__short", "leaderboard_key": "m_dense/D/short", "dataset": "M_DENSE/D", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 1, "n_instances": 30, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 1.033643950960055, "wql": 0.09542454774756803, "wsql_by_level": [0.06347547236550455, 0.09393188407318352, 0.11335914009161366, 0.12391438627455373, 0.12531051830391837, 0.1169795823579093, 0.10132838913546541, 0.07562780002886973, 0.04489375709709404], "n_valid_labels": 900, "n_masked_labels": 0, "mae_median": 73.44017768436008, "n_mase_elements": 900, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 1.025757335852437, "wql": 0.47901057475682746}}, {"config_id": "ett1__T__short", "leaderboard_key": "ett1/15T/short", "dataset": "ett1/15T", "term": "short", "freq": "15T", "prediction_length": 48, "seasonality": 96, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 0.7877373638727412, "wql": 0.27766561273673457, "wsql_by_level": [0.17115798799986884, 0.26325074213497096, 0.31732494743666456, 0.3486148190888516, 0.35724245077913813, 0.35352405536602427, 0.31859189379715164, 0.24150481804585935, 0.12777879998208178], "n_valid_labels": 336, "n_masked_labels": 0, "mae_median": 1.3056446033006068, "n_mase_elements": 336, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.6534624112178543, "wql": 0.577214746526443}}, {"config_id": "ett1__T__medium", "leaderboard_key": "ett1/15T/medium", "dataset": "ett1/15T", "term": "medium", "freq": "15T", "prediction_length": 480, "seasonality": 96, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 0.9498380421522724, "wql": 0.3705354577532055, "wsql_by_level": [0.18479904170851444, 0.3262891631785495, 0.43720298942516617, 0.4902123894444339, 0.49835194618526213, 0.4725493348123783, 0.410498000302961, 0.3181601290123875, 0.19675612570919634], "n_valid_labels": 3360, "n_masked_labels": 0, "mae_median": 1.6250812006056377, "n_mase_elements": 3360, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 1.2262810923768237, "wql": 0.8446611031596755}}, {"config_id": "ett1__T__long", "leaderboard_key": "ett1/15T/long", "dataset": "ett1/15T", "term": "long", "freq": "15T", "prediction_length": 720, "seasonality": 96, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.307144751187593, "wql": 0.484231353164451, "wsql_by_level": [0.32044519379308123, 0.4796127755126053, 0.5892257298256933, 0.6426452886050719, 0.6392561091822294, 0.5873755132834569, 0.49750931033550294, 0.37792387166450886, 0.22408838627790922], "n_valid_labels": 5040, "n_masked_labels": 0, "mae_median": 2.1915924136447886, "n_mase_elements": 5040, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.9849832397532534, "wql": 0.8353424856889321}}, {"config_id": "ett1__H__short", "leaderboard_key": "ett1/H/short", "dataset": "ett1/H", "term": "short", "freq": "H", "prediction_length": 48, "seasonality": 24, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 0.7726356581245624, "wql": 0.34251968289765683, "wsql_by_level": [0.19759934766088905, 0.3031639190338136, 0.3731717231822459, 0.42378386420456776, 0.44475795105448696, 0.44057830291431305, 0.40092626065039877, 0.31933512444671125, 0.17936065293148531], "n_valid_labels": 336, "n_masked_labels": 0, "mae_median": 5.374857471989734, "n_mase_elements": 336, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.7399586764835896, "wql": 0.6790479669247866}}, {"config_id": "ett1__H__medium", "leaderboard_key": "ett1/H/medium", "dataset": "ett1/H", "term": "medium", "freq": "H", "prediction_length": 480, "seasonality": 24, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.3991428670417723, "wql": 0.4332363035852189, "wsql_by_level": [0.30410618415640356, 0.4704771858545054, 0.5392114172157767, 0.5576007510909506, 0.5436870557396306, 0.5015203970655315, 0.43198146856622777, 0.33937526714055377, 0.21116700543738964], "n_valid_labels": 3360, "n_masked_labels": 0, "mae_median": 8.319531202429374, "n_mase_elements": 3360, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 1.1434762057287606, "wql": 0.7877949971718228}}, {"config_id": "ett1__H__long", "leaderboard_key": "ett1/H/long", "dataset": "ett1/H", "term": "long", "freq": "H", "prediction_length": 720, "seasonality": 24, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.436061394009377, "wql": 0.4187041967200971, "wsql_by_level": [0.3100586483740042, 0.47347088300421175, 0.5447297538736405, 0.5578969570024439, 0.5319711553700133, 0.4751547539889456, 0.3955262397911802, 0.2974199205118426, 0.18210945856459188], "n_valid_labels": 5040, "n_masked_labels": 0, "mae_median": 8.957151509213837, "n_mase_elements": 5040, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 1.0027919313374156, "wql": 0.7239955943608372}}, {"config_id": "ett1__D__short", "leaderboard_key": "ett1/D/short", "dataset": "ett1/D", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.7379944124041118, "wql": 0.33756847378928573, "wsql_by_level": [0.1620133170878742, 0.2962002627857162, 0.3988072918909074, 0.4513767846788654, 0.4528711596212441, 0.4241558967561161, 0.36387028038267033, 0.2908148576147514, 0.19800641328542687], "n_valid_labels": 210, "n_masked_labels": 0, "mae_median": 143.75229959487916, "n_mase_elements": 210, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.9558890891083643, "wql": 0.6956112870175899}}, {"config_id": "ett1__W__short", "leaderboard_key": "ett1/W/short", "dataset": "ett1/W", "term": "short", "freq": "W-THU", "prediction_length": 8, "seasonality": 1, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.0401542904755747, "wql": 0.19655578741796256, "wsql_by_level": [0.1417659685354361, 0.19202323511237912, 0.23171246827783198, 0.23833150059355862, 0.2226324734280471, 0.21453460320583057, 0.21010518507123527, 0.1822399923304321, 0.13565666020691236], "n_valid_labels": 56, "n_masked_labels": 0, "mae_median": 555.6324206760952, "n_mase_elements": 56, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8358595974022779, "wql": 0.7614204440831972}}, {"config_id": "ett2__T__short", "leaderboard_key": "ett2/15T/short", "dataset": "ett2/15T", "term": "short", "freq": "15T", "prediction_length": 48, "seasonality": 96, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.0694336064769143, "wql": 0.1300259440329757, "wsql_by_level": [0.07024619154982942, 0.10910481518272273, 0.1369538766922629, 0.1554215670776755, 0.16554360726393702, 0.16515344449365948, 0.15417793517110404, 0.13000491823775007, 0.08362714062784012], "n_valid_labels": 336, "n_masked_labels": 0, "mae_median": 2.6415581504503884, "n_mase_elements": 336, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 1.403778404354072, "wql": 1.3842912839493247}}, {"config_id": "ett2__T__medium", "leaderboard_key": "ett2/15T/medium", "dataset": "ett2/15T", "term": "medium", "freq": "15T", "prediction_length": 480, "seasonality": 96, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 0.8013788268197071, "wql": 0.09589557037266866, "wsql_by_level": [0.062442344077559137, 0.09532673585996267, 0.11402786174212132, 0.1225096423836964, 0.12218240427468238, 0.11474202571235899, 0.1006774633802991, 0.07950371576259843, 0.051647940160739494], "n_valid_labels": 3360, "n_masked_labels": 0, "mae_median": 1.8594081902516164, "n_mase_elements": 3360, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8877389913113496, "wql": 0.7025782241924592}}, {"config_id": "ett2__T__long", "leaderboard_key": "ett2/15T/long", "dataset": "ett2/15T", "term": "long", "freq": "15T", "prediction_length": 720, "seasonality": 96, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.0070280976302255, "wql": 0.12508008701264237, "wsql_by_level": [0.0861425888728795, 0.1261291943561307, 0.15091368842654168, 0.1631320691714223, 0.16156487527481217, 0.1485440862740269, 0.12629619158849958, 0.09799194762903372, 0.06500614152043467], "n_valid_labels": 5040, "n_masked_labels": 0, "mae_median": 2.4367197962529543, "n_mase_elements": 5040, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.9530875983260918, "wql": 0.7464822626784796}}, {"config_id": "ett2__H__short", "leaderboard_key": "ett2/H/short", "dataset": "ett2/H", "term": "short", "freq": "H", "prediction_length": 48, "seasonality": 24, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 0.7005212020970276, "wql": 0.0760180875396463, "wsql_by_level": [0.05297798128578211, 0.07899861436753486, 0.09249208354052788, 0.09768586778808594, 0.09564036146174022, 0.08604012801734809, 0.0730743783629783, 0.06183555113359217, 0.045417821899227155], "n_valid_labels": 336, "n_masked_labels": 0, "mae_median": 5.863916364454088, "n_mase_elements": 336, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.7064821802191489, "wql": 0.637125813789166}}, {"config_id": "ett2__H__medium", "leaderboard_key": "ett2/H/medium", "dataset": "ett2/H", "term": "medium", "freq": "H", "prediction_length": 480, "seasonality": 24, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 2.6997179603989685, "wql": 0.26034717331086205, "wsql_by_level": [0.10473916331099253, 0.18863697282489295, 0.26186317542946996, 0.3193415719452675, 0.35743111979962355, 0.36208092114892465, 0.330859277439312, 0.2626379885729415, 0.15553436932633372], "n_valid_labels": 3360, "n_masked_labels": 0, "mae_median": 20.329321246146268, "n_mase_elements": 3360, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 1.0191178708314248, "wql": 0.7528429238363763}}, {"config_id": "ett2__H__long", "leaderboard_key": "ett2/H/long", "dataset": "ett2/H", "term": "long", "freq": "H", "prediction_length": 720, "seasonality": 24, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 3.2217239655101504, "wql": 0.3559165218046931, "wsql_by_level": [0.2900237568768538, 0.39104001404476496, 0.43848327271807586, 0.4553130903730483, 0.44681216585979033, 0.4122155914838351, 0.35228942504880745, 0.26646637709171755, 0.15060500274534422], "n_valid_labels": 5040, "n_masked_labels": 0, "mae_median": 25.212170086302315, "n_mase_elements": 5040, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 1.0157463673452953, "wql": 0.9611658017781922}}, {"config_id": "ett2__D__short", "leaderboard_key": "ett2/D/short", "dataset": "ett2/D", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 4.734661744814033, "wql": 0.32867900858724947, "wsql_by_level": [0.3016735859700118, 0.39890578527586945, 0.4314240723591547, 0.430661558111209, 0.40573626215401437, 0.3589212649061593, 0.29505514020428636, 0.21482601335951942, 0.1209073949450205], "n_valid_labels": 210, "n_masked_labels": 0, "mae_median": 548.6558208556403, "n_mase_elements": 210, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 1.006424061452747, "wql": 1.031392816210494}}, {"config_id": "ett2__W__short", "leaderboard_key": "ett2/W/short", "dataset": "ett2/W", "term": "short", "freq": "W-THU", "prediction_length": 8, "seasonality": 1, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.6321554468961936, "wql": 0.17309921274194798, "wsql_by_level": [0.10348270441451943, 0.17462612359193827, 0.20931293600096204, 0.22361376288623414, 0.22312351495354324, 0.20781433434280577, 0.1750220314962269, 0.14161511914865027, 0.09928238784265167], "n_valid_labels": 56, "n_masked_labels": 0, "mae_median": 2171.5529644829885, "n_mase_elements": 56, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.9231329960664922, "wql": 0.8190583801256105}}, {"config_id": "jena_weather__T__short", "leaderboard_key": "jena_weather/10T/short", "dataset": "jena_weather/10T", "term": "short", "freq": "10T", "prediction_length": 48, "seasonality": 144, "n_variates": 21, "n_instances": 1, "domain": "Nature", "n_cohorts": 1, "metrics": {"mase": 0.4136366926205477, "wql": 0.01826307160877487, "wsql_by_level": [0.0066087252793233554, 0.011898878670890902, 0.015671763715629672, 0.018800183444110972, 0.021650031026221712, 0.02338061649971047, 0.024199116963668072, 0.022989197851183103, 0.01916913102823559], "n_valid_labels": 1008, "n_masked_labels": 0, "mae_median": 3.411707038030265, "n_mase_elements": 1008, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.5427111850349482, "wql": 0.1336250356188434}}, {"config_id": "jena_weather__T__medium", "leaderboard_key": "jena_weather/10T/medium", "dataset": "jena_weather/10T", "term": "medium", "freq": "10T", "prediction_length": 480, "seasonality": 144, "n_variates": 21, "n_instances": 1, "domain": "Nature", "n_cohorts": 1, "metrics": {"mase": 0.8092460761827927, "wql": 0.08302469555381571, "wsql_by_level": [0.023866667411919253, 0.04969422934316776, 0.07292001673125874, 0.09019619510717572, 0.10190225442268169, 0.10859629677824016, 0.10887568558944763, 0.10266840189325654, 0.08850251270719396], "n_valid_labels": 10080, "n_masked_labels": 0, "mae_median": 17.233196419801576, "n_mase_elements": 10080, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8275817045838775, "wql": 0.3642966052609432}}, {"config_id": "jena_weather__T__long", "leaderboard_key": "jena_weather/10T/long", "dataset": "jena_weather/10T", "term": "long", "freq": "10T", "prediction_length": 720, "seasonality": 144, "n_variates": 21, "n_instances": 1, "domain": "Nature", "n_cohorts": 1, "metrics": {"mase": 0.71085785589237, "wql": 0.07753375982735178, "wsql_by_level": [0.026517810899215753, 0.05158263867650761, 0.07151602829720438, 0.08621359050795607, 0.09551192887993631, 0.0986228221593162, 0.09749944405281147, 0.09151698890186007, 0.07882258607135817], "n_valid_labels": 15120, "n_masked_labels": 0, "mae_median": 16.328159357761105, "n_mase_elements": 15120, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.7849992115784338, "wql": 0.31921246064856895}}, {"config_id": "jena_weather__H__short", "leaderboard_key": "jena_weather/H/short", "dataset": "jena_weather/H", "term": "short", "freq": "H", "prediction_length": 48, "seasonality": 24, "n_variates": 21, "n_instances": 1, "domain": "Nature", "n_cohorts": 1, "metrics": {"mase": 0.501028407452742, "wql": 0.05475492069058009, "wsql_by_level": [0.021104770494709237, 0.04377233789533583, 0.057354816974309435, 0.06463419667570057, 0.06637619051863189, 0.06578395304758333, 0.06397621320592457, 0.06058291153542194, 0.04920889586760403], "n_valid_labels": 1008, "n_masked_labels": 0, "mae_median": 11.091345129694442, "n_mase_elements": 1008, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.6599621484749805, "wql": 0.29836444197683304}}, {"config_id": "jena_weather__H__medium", "leaderboard_key": "jena_weather/H/medium", "dataset": "jena_weather/H", "term": "medium", "freq": "H", "prediction_length": 480, "seasonality": 24, "n_variates": 21, "n_instances": 1, "domain": "Nature", "n_cohorts": 1, "metrics": {"mase": 0.8128829413765802, "wql": 0.08957674510059367, "wsql_by_level": [0.041600030760003424, 0.07088384477188964, 0.088614759505003, 0.09871587715928565, 0.10349411265634889, 0.10705025355950666, 0.1073536633919154, 0.10222347904294532, 0.08625468505844502], "n_valid_labels": 10080, "n_masked_labels": 0, "mae_median": 17.826358951349487, "n_mase_elements": 10080, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.7591849551593689, "wql": 0.246023059258878}}, {"config_id": "jena_weather__H__long", "leaderboard_key": "jena_weather/H/long", "dataset": "jena_weather/H", "term": "long", "freq": "H", "prediction_length": 720, "seasonality": 24, "n_variates": 21, "n_instances": 1, "domain": "Nature", "n_cohorts": 1, "metrics": {"mase": 0.9833592005773739, "wql": 0.11928175584415124, "wsql_by_level": [0.06021289491839813, 0.10980343022798765, 0.13527727841893505, 0.14548322832648072, 0.14471711673100054, 0.1395123022974652, 0.12994232757621146, 0.11532789130025589, 0.09325933280062645], "n_valid_labels": 15120, "n_masked_labels": 0, "mae_median": 25.224927203146795, "n_mase_elements": 15120, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.658841755665935, "wql": 0.2687262784398826}}, {"config_id": "jena_weather__D__short", "leaderboard_key": "jena_weather/D/short", "dataset": "jena_weather/D", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 21, "n_instances": 1, "domain": "Nature", "n_cohorts": 1, "metrics": {"mase": 1.4535239618710496, "wql": 0.11146099179186322, "wsql_by_level": [0.05772887196401991, 0.1000696255021768, 0.12447077518288599, 0.13643453611532597, 0.14036779213683404, 0.13622245910614034, 0.12708195479253323, 0.1064783364660867, 0.074294574860766], "n_valid_labels": 630, "n_masked_labels": 0, "mae_median": 24.466817761288073, "n_mase_elements": 630, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.7823702149104226, "wql": 0.48171649762027424}}, {"config_id": "bitbrains_fast_storage__T__short", "leaderboard_key": "bitbrains_fast_storage/5T/short", "dataset": "bitbrains_fast_storage/5T", "term": "short", "freq": "5T", "prediction_length": 48, "seasonality": 288, "n_variates": 2, "n_instances": 192, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.6396329283345135, "wql": 0.4893255945916352, "wsql_by_level": [0.20707631155256367, 0.3426775091737015, 0.44425791785215585, 0.5136279327329788, 0.569970469171546, 0.6190315287681786, 0.6357219087280306, 0.5964443919918374, 0.4751223813537247], "n_valid_labels": 16726, "n_masked_labels": 1706, "mae_median": 135.9774617170374, "n_mase_elements": 16078, "n_seasonal_error_zero": 12, "n_seasonal_error_nan": 4}, "relative": {"mase": 0.4336113552721743, "wql": 0.19973415252734247}}, {"config_id": "bitbrains_fast_storage__T__medium", "leaderboard_key": "bitbrains_fast_storage/5T/medium", "dataset": "bitbrains_fast_storage/5T", "term": "medium", "freq": "5T", "prediction_length": 480, "seasonality": 288, "n_variates": 2, "n_instances": 192, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 1.2823505350856539, "wql": 0.9204756719991529, "wsql_by_level": [0.7068885439884177, 1.2199587038249335, 1.2986491543478493, 1.242500227271508, 1.1296531051462149, 0.9783808120520179, 0.797424797059384, 0.5826653607547148, 0.3281603435473359], "n_valid_labels": 173366, "n_masked_labels": 10954, "mae_median": 531.1822922052705, "n_mase_elements": 169900, "n_seasonal_error_zero": 2, "n_seasonal_error_nan": 20}, "relative": {"mase": 0.8995106320827394, "wql": 0.922140110905034}}, {"config_id": "bitbrains_fast_storage__T__long", "leaderboard_key": "bitbrains_fast_storage/5T/long", "dataset": "bitbrains_fast_storage/5T", "term": "long", "freq": "5T", "prediction_length": 720, "seasonality": 288, "n_variates": 2, "n_instances": 192, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 1.003057003333043, "wql": 0.4342224496133564, "wsql_by_level": [0.23793413043329423, 0.4048407657343644, 0.49331326145922405, 0.5436802338256669, 0.5607834178723312, 0.5400986043326984, 0.4897609579905021, 0.3945289451674268, 0.24306172970469872], "n_valid_labels": 263236, "n_masked_labels": 13244, "mae_median": 455.6692861078686, "n_mase_elements": 252350, "n_seasonal_error_zero": 12, "n_seasonal_error_nan": 12}, "relative": {"mase": 0.8278558454895827, "wql": 0.6744046853095246}}, {"config_id": "bitbrains_fast_storage__H__short", "leaderboard_key": "bitbrains_fast_storage/H/short", "dataset": "bitbrains_fast_storage/H", "term": "short", "freq": "H", "prediction_length": 48, "seasonality": 24, "n_variates": 2, "n_instances": 192, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 1.566240723083086, "wql": 0.460430501484308, "wsql_by_level": [0.3284192317937252, 0.5271802482699615, 0.5968982554258156, 0.6041513004765608, 0.5733865939898345, 0.5132410217013492, 0.4367964799587199, 0.3447941864604242, 0.21900719528238058], "n_valid_labels": 17892, "n_masked_labels": 540, "mae_median": 397.57576030244593, "n_mase_elements": 17316, "n_seasonal_error_zero": 12, "n_seasonal_error_nan": 6}, "relative": {"mase": 0.9109722316466803, "wql": 0.766521326783759}}, {"config_id": "bitbrains_rnd__T__short", "leaderboard_key": "bitbrains_rnd/5T/short", "dataset": "bitbrains_rnd/5T", "term": "short", "freq": "5T", "prediction_length": 48, "seasonality": 288, "n_variates": 2, "n_instances": 192, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.5211174300914677, "wql": 0.19250376266775776, "wsql_by_level": [0.11130984871831118, 0.16474338601595379, 0.1979934855669115, 0.21911239798363313, 0.22465474438653157, 0.22210064241016592, 0.21243437961395384, 0.20082723783963055, 0.17935774147472835], "n_valid_labels": 17856, "n_masked_labels": 576, "mae_median": 102.21508052536883, "n_mase_elements": 17376, "n_seasonal_error_zero": 10, "n_seasonal_error_nan": 12}, "relative": {"mase": 0.634958543756279, "wql": 0.20032237276725073}}, {"config_id": "bitbrains_rnd__T__medium", "leaderboard_key": "bitbrains_rnd/5T/medium", "dataset": "bitbrains_rnd/5T", "term": "medium", "freq": "5T", "prediction_length": 480, "seasonality": 288, "n_variates": 2, "n_instances": 192, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.9277904693654061, "wql": 0.8123310042815085, "wsql_by_level": [0.3793326641892228, 0.7323109225631247, 0.8980399863374966, 0.9736284030250074, 0.9945762735485142, 0.9695789961224563, 0.9065584121238849, 0.8071500210131923, 0.6498033596106778], "n_valid_labels": 179348, "n_masked_labels": 4972, "mae_median": 312.3318546654097, "n_mase_elements": 176510, "n_seasonal_error_zero": 2, "n_seasonal_error_nan": 8}, "relative": {"mase": 0.8958969667427079, "wql": 0.8584347201196296}}, {"config_id": "bitbrains_rnd__T__long", "leaderboard_key": "bitbrains_rnd/5T/long", "dataset": "bitbrains_rnd/5T", "term": "long", "freq": "5T", "prediction_length": 720, "seasonality": 288, "n_variates": 2, "n_instances": 192, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.8388015954178812, "wql": 0.8515044254818762, "wsql_by_level": [0.4453629273731855, 0.6063950180783263, 0.7172052349133586, 0.8185647701585127, 0.912490397348722, 1.0057434139863084, 1.0799059574881968, 1.1114984838279558, 0.96637362616232], "n_valid_labels": 262774, "n_masked_labels": 13706, "mae_median": 239.42580187128624, "n_mase_elements": 256386, "n_seasonal_error_zero": 2, "n_seasonal_error_nan": 22}, "relative": {"mase": 0.8795781411608433, "wql": 0.7119784512335846}}, {"config_id": "bitbrains_rnd__H__short", "leaderboard_key": "bitbrains_rnd/H/short", "dataset": "bitbrains_rnd/H", "term": "short", "freq": "H", "prediction_length": 48, "seasonality": 24, "n_variates": 2, "n_instances": 192, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.7868212161796346, "wql": 0.6295687211926445, "wsql_by_level": [0.15042726171777046, 0.31537820331132177, 0.5139129442012994, 0.6825863404660105, 0.8273207875925015, 0.8954290416125545, 0.8778721210277796, 0.802465268498955, 0.6007265223056075], "n_valid_labels": 18028, "n_masked_labels": 404, "mae_median": 320.7036235593324, "n_mase_elements": 17472, "n_seasonal_error_zero": 4, "n_seasonal_error_nan": 16}, "relative": {"mase": 0.6557939572938044, "wql": 0.6541876308215867}}, {"config_id": "bizitobs_application__S__short", "leaderboard_key": "bizitobs_application/10S/short", "dataset": "bizitobs_application", "term": "short", "freq": "10S", "prediction_length": 60, "seasonality": 360, "n_variates": 2, "n_instances": 1, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.5365259750149728, "wql": 0.009654993860777627, "wsql_by_level": [0.005724845362497532, 0.00920887429438802, 0.011466729962842885, 0.01266084206423771, 0.012951872384924368, 0.012313010096105564, 0.010544246709686766, 0.00775752984075642, 0.004266994031559382], "n_valid_labels": 120, "n_masked_labels": 0, "mae_median": 335.13487946192424, "n_mase_elements": 120, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.38500187920526924, "wql": 0.52459756299694}}, {"config_id": "bizitobs_application__S__medium", "leaderboard_key": "bizitobs_application/10S/medium", "dataset": "bizitobs_application", "term": "medium", "freq": "10S", "prediction_length": 600, "seasonality": 360, "n_variates": 2, "n_instances": 1, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.670653392134585, "wql": 0.008981826130304946, "wsql_by_level": [0.0053366038757372, 0.008049966794615416, 0.00992207713123076, 0.011052931794968844, 0.01154130838274721, 0.011256373314944335, 0.010204657507417605, 0.008291323572934061, 0.005181192798149096], "n_valid_labels": 1200, "n_masked_labels": 0, "mae_median": 276.3001642068227, "n_mase_elements": 1200, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.7302938272520174, "wql": 0.6535816313232373}}, {"config_id": "bizitobs_application__S__long", "leaderboard_key": "bizitobs_application/10S/long", "dataset": "bizitobs_application", "term": "long", "freq": "10S", "prediction_length": 900, "seasonality": 360, "n_variates": 2, "n_instances": 1, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.7073717633687269, "wql": 0.00936897182344085, "wsql_by_level": [0.0056248523183692915, 0.008790223831655883, 0.010743770191326657, 0.011757188151021558, 0.011915729308279865, 0.011455608273473097, 0.010329936196961464, 0.008389199827276088, 0.00531423831260375], "n_valid_labels": 1800, "n_masked_labels": 0, "mae_median": 290.33115371280246, "n_mase_elements": 1800, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.9447672897600948, "wql": 0.7238819059421883}}, {"config_id": "bizitobs_service__S__short", "leaderboard_key": "bizitobs_service/10S/short", "dataset": "bizitobs_service", "term": "short", "freq": "10S", "prediction_length": 60, "seasonality": 360, "n_variates": 2, "n_instances": 21, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.5056253458415603, "wql": 0.008997030137135983, "wsql_by_level": [0.005544246292032471, 0.008735699680501302, 0.01078215627564844, 0.011832983659387085, 0.012001755131681273, 0.011368232217467607, 0.009836286187428203, 0.007227603780454877, 0.0036443080096225976], "n_valid_labels": 2520, "n_masked_labels": 0, "mae_median": 16.092892949141206, "n_mase_elements": 2520, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.4788533738841219, "wql": 0.352616776583892}}, {"config_id": "bizitobs_service__S__medium", "leaderboard_key": "bizitobs_service/10S/medium", "dataset": "bizitobs_service", "term": "medium", "freq": "10S", "prediction_length": 600, "seasonality": 360, "n_variates": 2, "n_instances": 21, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.6760128108560223, "wql": 0.00981458802096833, "wsql_by_level": [0.0060991305699777745, 0.009245982524425041, 0.011209319536050581, 0.012253208488651208, 0.012497058851992919, 0.012008801468687425, 0.010785806750653507, 0.00873847968665123, 0.0054935043116252965], "n_valid_labels": 25200, "n_masked_labels": 0, "mae_median": 15.762687789265598, "n_mase_elements": 25200, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.7081158524164899, "wql": 0.4174036444620968}}, {"config_id": "bizitobs_service__S__long", "leaderboard_key": "bizitobs_service/10S/long", "dataset": "bizitobs_service", "term": "long", "freq": "10S", "prediction_length": 900, "seasonality": 360, "n_variates": 2, "n_instances": 21, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.7411342906991989, "wql": 0.010556989822489177, "wsql_by_level": [0.006410213440200779, 0.009894457883444204, 0.012035222781647042, 0.013195692023143005, 0.013489119352055726, 0.013023600495377506, 0.011666882061255542, 0.009323164267890002, 0.0059745560973887835], "n_valid_labels": 37800, "n_masked_labels": 0, "mae_median": 17.23687046433836, "n_mase_elements": 37800, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8911148567780734, "wql": 0.4458379328384122}}, {"config_id": "bizitobs_l2c__T__short", "leaderboard_key": "bizitobs_l2c/5T/short", "dataset": "bizitobs_l2c/5T", "term": "short", "freq": "5T", "prediction_length": 48, "seasonality": 288, "n_variates": 7, "n_instances": 1, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.18322311795554455, "wql": 0.054518895403781596, "wsql_by_level": [0.036908051629222303, 0.055444112480953024, 0.06565553562335827, 0.06940281424515697, 0.06840994660832993, 0.06426975462043978, 0.0553060782947343, 0.04397503126257423, 0.031298733869265495], "n_valid_labels": 336, "n_masked_labels": 0, "mae_median": 1.7574006347429185, "n_mase_elements": 336, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.2372922751834896, "wql": 0.24675367177697805}}, {"config_id": "bizitobs_l2c__T__medium", "leaderboard_key": "bizitobs_l2c/5T/medium", "dataset": "bizitobs_l2c/5T", "term": "medium", "freq": "5T", "prediction_length": 480, "seasonality": 288, "n_variates": 7, "n_instances": 1, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.4610753969735693, "wql": 0.1528605630177465, "wsql_by_level": [0.12384610134301514, 0.1678060742527983, 0.18818114349117637, 0.18628440521650788, 0.1788416975151349, 0.17203827233629065, 0.15227199762905824, 0.11956653494393596, 0.08690884043180094], "n_valid_labels": 3360, "n_masked_labels": 0, "mae_median": 3.9802337528694243, "n_mase_elements": 3360, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.3198153451739089, "wql": 0.324605479579304}}, {"config_id": "bizitobs_l2c__T__long", "leaderboard_key": "bizitobs_l2c/5T/long", "dataset": "bizitobs_l2c/5T", "term": "long", "freq": "5T", "prediction_length": 720, "seasonality": 288, "n_variates": 7, "n_instances": 1, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.7459196494649294, "wql": 0.28002923026495735, "wsql_by_level": [0.14189577835254674, 0.22637030369472252, 0.289039711240719, 0.3354423425265624, 0.37103875275917725, 0.37788119691475053, 0.3580260520587308, 0.27691033483740524, 0.1436586000000015], "n_valid_labels": 5040, "n_masked_labels": 0, "mae_median": 6.787637180119517, "n_mase_elements": 5040, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.44346423004685526, "wql": 0.41450854587151004}}, {"config_id": "bizitobs_l2c__H__short", "leaderboard_key": "bizitobs_l2c/H/short", "dataset": "bizitobs_l2c/H", "term": "short", "freq": "H", "prediction_length": 48, "seasonality": 24, "n_variates": 7, "n_instances": 1, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.7505402275148327, "wql": 0.2262536880109035, "wsql_by_level": [0.13227568214422789, 0.2326930988529389, 0.30614538883800735, 0.329868513126158, 0.3282708313225938, 0.28868459830168486, 0.20890769001996812, 0.13036976360724126, 0.07906762588531176], "n_valid_labels": 336, "n_masked_labels": 0, "mae_median": 6.868164217365639, "n_mase_elements": 336, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.4736514683215731, "wql": 0.4059262777826502}}, {"config_id": "bizitobs_l2c__H__medium", "leaderboard_key": "bizitobs_l2c/H/medium", "dataset": "bizitobs_l2c/H", "term": "medium", "freq": "H", "prediction_length": 480, "seasonality": 24, "n_variates": 7, "n_instances": 1, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.35672871360610625, "wql": 0.2151929516544161, "wsql_by_level": [0.11857116283033574, 0.1845369054539126, 0.21966346683797974, 0.24345271425312393, 0.2562009800788367, 0.25523936841907074, 0.24786605846265178, 0.23175813842136378, 0.17944777013246996], "n_valid_labels": 3360, "n_masked_labels": 0, "mae_median": 3.5065599092326702, "n_mase_elements": 3360, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.22075296885394705, "wql": 0.19268863222793592}}, {"config_id": "bizitobs_l2c__H__long", "leaderboard_key": "bizitobs_l2c/H/long", "dataset": "bizitobs_l2c/H", "term": "long", "freq": "H", "prediction_length": 720, "seasonality": 24, "n_variates": 7, "n_instances": 1, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.4325885606544303, "wql": 0.21763516941937858, "wsql_by_level": [0.11999215158299158, 0.19215285432455603, 0.2356988499450652, 0.2593403749509408, 0.26444359568403997, 0.25745491168733164, 0.24400614746013263, 0.21989427543055365, 0.16573336370879574], "n_valid_labels": 5040, "n_masked_labels": 0, "mae_median": 3.9954311957050646, "n_mase_elements": 5040, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.3379006855428726, "wql": 0.21475638959074228}}], "cpu_seconds": 1.3254058239981532, "members": ["/workspace/research/evals/weekly_slow_ar_delta3k", "/workspace/research/evals/patch8_ema6000", "/workspace/research/evals/split_patch_ema12000"], "member_checkpoint_hashes": ["094c7c694406075967f392a0d9ac1146bac984a90ab468c59d660a1b92fa7ba2", "308389b7217c080af9eb185559d4ee3cafa0f3e0f8c4dd8f5526b68198c89988", "1a2fb20a9fb5cae6526f2e36ea47559626bece78fd9c284899836505030ae9fe"], "weights": [0.3333333333333333, 0.3333333333333333, 0.3333333333333333], "selection_only": true, "cutoff": "valid_screen", "E102skill": 0.38490788212550675, "difference": 0.0005607513307689382} +{"composition": "equal quantile mean after each member applies its own fixed rules", "skill_score": 0.34022701617855455, "rel_mase_gmean": 0.793943875648557, "rel_wql_gmean": 0.5482760224393256, "groups": {"term": {"short": 0.30679900406441385, "medium": 0.36032523598865074, "long": 0.4021215513716557}, "domain": {"Econ/Fin": 0.1721308320213788, "Energy": 0.23201167666328837, "Healthcare": 0.41340649703065946, "Nature": 0.3726147779766633, "Sales": 0.40537645795323973, "Transport": 0.3736005845535242, "Web/CloudOps": 0.4512360055080098}, "freq": {"A-DEC": 0.32618793542255464, "Q-DEC": 0.23705558696487827, "M": 0.18927345845861632, "W-SUN": 0.04774678469324367, "D": 0.3525759177381407, "H": 0.3717309606412096, "15T": 0.22268456202455988, "W-FRI": 0.23138568044707775, "10T": 0.32565055179276703, "W-TUE": 0.5626997768481531, "W-THU": 0.2588925082219147, "W-WED": 0.36108396742238325, "5T": 0.44162689257641674, "10S": 0.34789392531645824}}, "configs": [{"config_id": "m4_yearly__A__short", "leaderboard_key": "m4_yearly/A/short", "dataset": "m4_yearly", "term": "short", "freq": "A-DEC", "prediction_length": 6, "seasonality": 1, "n_variates": 1, "n_instances": 152, "domain": "Econ/Fin", "n_cohorts": 3, "skipped_series": 235, "dropped_containers": 11, "metrics": {"mase": 3.037902337626994, "wql": 0.09815505039265969, "wsql_by_level": [0.05160042192944336, 0.0811926081610661, 0.10477089379142959, 0.11816640740805852, 0.12242559934653295, 0.12257290813667518, 0.11503862092825626, 0.09804872106545864, 0.06957927276701664], "n_valid_labels": 912, "n_masked_labels": 0, "mae_median": 521.7503059788754, "n_mase_elements": 912, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.6383825071799306, "wql": 0.7112079251290501}}, {"config_id": "m4_quarterly__Q__short", "leaderboard_key": "m4_quarterly/Q/short", "dataset": "m4_quarterly", "term": "short", "freq": "Q-DEC", "prediction_length": 8, "seasonality": 4, "n_variates": 1, "n_instances": 190, "domain": "Econ/Fin", "n_cohorts": 3, "dropped_containers": 95, "metrics": {"mase": 1.1658471474205265, "wql": 0.07590016082227818, "wsql_by_level": [0.04536972898090432, 0.06673398496299082, 0.0791267276623346, 0.08758012702442965, 0.09189271723631638, 0.09232417412241245, 0.08807945136398072, 0.07637413311013558, 0.05562040293699915], "n_valid_labels": 1520, "n_masked_labels": 0, "mae_median": 470.5227991405286, "n_mase_elements": 1520, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.7561361981507358, "wql": 0.7698139287671926}}, {"config_id": "m4_monthly__M__short", "leaderboard_key": "m4_monthly/M/short", "dataset": "m4_monthly", "term": "short", "freq": "M", "prediction_length": 18, "seasonality": 12, "n_variates": 1, "n_instances": 192, "domain": "Econ/Fin", "n_cohorts": 3, "dropped_containers": 499, "metrics": {"mase": 0.9139769716535198, "wql": 0.0871699317752213, "wsql_by_level": [0.04608788598960208, 0.07304806082562258, 0.09096215954844103, 0.10182623614350343, 0.10779716433420318, 0.10903505271737492, 0.1032173746742856, 0.08877763366532075, 0.06377781807863801], "n_valid_labels": 3456, "n_masked_labels": 0, "mae_median": 488.5874289362519, "n_mase_elements": 3456, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.7164257853065333, "wql": 0.6235116787717548}}, {"config_id": "m4_weekly__W__short", "leaderboard_key": "m4_weekly/W/short", "dataset": "m4_weekly", "term": "short", "freq": "W-SUN", "prediction_length": 13, "seasonality": 1, "n_variates": 1, "n_instances": 192, "domain": "Econ/Fin", "n_cohorts": 2, "dropped_containers": 4, "metrics": {"mase": 3.1100809288727103, "wql": 0.055098038079052614, "wsql_by_level": [0.032602047194699495, 0.04785429715208218, 0.05725972722518824, 0.06333705164638065, 0.06706519071059011, 0.06758570043383451, 0.06409405578058587, 0.05605318360657813, 0.04003108896153436], "n_valid_labels": 2496, "n_masked_labels": 0, "mae_median": 336.8346457389685, "n_mase_elements": 2496, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 1.158338248458987, "wql": 0.7828336733837569}}, {"config_id": "m4_daily__D__short", "leaderboard_key": "m4_daily/D/short", "dataset": "m4_daily", "term": "short", "freq": "D", "prediction_length": 14, "seasonality": 1, "n_variates": 1, "n_instances": 192, "domain": "Econ/Fin", "n_cohorts": 2, "dropped_containers": 23, "metrics": {"mase": 3.365311284055928, "wql": 0.01953638209252006, "wsql_by_level": [0.01299470704967311, 0.019569479837904673, 0.02314227463682247, 0.024675381709502498, 0.02471096336713756, 0.023348724884659326, 0.020517867021259475, 0.016315514473370443, 0.010552525852351015], "n_valid_labels": 2688, "n_masked_labels": 0, "mae_median": 178.2896702403114, "n_mase_elements": 2688, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 1.147522273526741, "wql": 1.1860716967977745}}, {"config_id": "m4_hourly__H__short", "leaderboard_key": "m4_hourly/H/short", "dataset": "m4_hourly", "term": "short", "freq": "H", "prediction_length": 48, "seasonality": 24, "n_variates": 1, "n_instances": 192, "domain": "Econ/Fin", "n_cohorts": 1, "metrics": {"mase": 1.1122722486534364, "wql": 0.03736682604153149, "wsql_by_level": [0.01874741392379996, 0.03145967904991591, 0.04068737146647257, 0.0456794174593893, 0.04753805000550144, 0.04721690942603064, 0.04404922953445294, 0.03685106292326483, 0.024072300584955922], "n_valid_labels": 9216, "n_masked_labels": 0, "mae_median": 352.90519963156515, "n_mase_elements": 9216, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8953871829604685, "wql": 0.7944626922388952}}, {"config_id": "electricity__T__short", "leaderboard_key": "electricity/15T/short", "dataset": "electricity/15T", "term": "short", "freq": "15T", "prediction_length": 48, "seasonality": 96, "n_variates": 1, "n_instances": 192, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 0.7414485035347453, "wql": 0.05874078023278089, "wsql_by_level": [0.03660522792607276, 0.054623159839400255, 0.06574675212827316, 0.07161938696534081, 0.07289646506205745, 0.0709393775615199, 0.06491803982321434, 0.05428902047892521, 0.03702959231022416], "n_valid_labels": 9216, "n_masked_labels": 0, "mae_median": 24.881237040894728, "n_mase_elements": 9168, "n_seasonal_error_zero": 1, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.9007102952311252, "wql": 0.8955152027394758}}, {"config_id": "electricity__T__medium", "leaderboard_key": "electricity/15T/medium", "dataset": "electricity/15T", "term": "medium", "freq": "15T", "prediction_length": 480, "seasonality": 96, "n_variates": 1, "n_instances": 192, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 0.8341249217131992, "wql": 0.0588387869460271, "wsql_by_level": [0.032029932243865376, 0.05030349324262281, 0.06257228393377615, 0.07028636322757713, 0.07393768470060368, 0.0734247240139721, 0.06850076640753922, 0.05820932687517861, 0.040284507869108886], "n_valid_labels": 92160, "n_masked_labels": 0, "mae_median": 42.24310534259891, "n_mase_elements": 92160, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.7399527532889328, "wql": 0.6348937040939772}}, {"config_id": "electricity__T__long", "leaderboard_key": "electricity/15T/long", "dataset": "electricity/15T", "term": "long", "freq": "15T", "prediction_length": 720, "seasonality": 96, "n_variates": 1, "n_instances": 192, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 0.7783637870874349, "wql": 0.05518133110407022, "wsql_by_level": [0.03188683872861633, 0.048383447963460495, 0.05900291425963093, 0.06546503930631685, 0.06854103198610194, 0.06818039746638782, 0.06368531022730614, 0.05412012180224378, 0.03736687819656763], "n_valid_labels": 138240, "n_masked_labels": 0, "mae_median": 44.27354983369999, "n_mase_elements": 137520, "n_seasonal_error_zero": 1, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.7682049221663798, "wql": 0.6060938006492076}}, {"config_id": "electricity__H__short", "leaderboard_key": "electricity/H/short", "dataset": "electricity/H", "term": "short", "freq": "H", "prediction_length": 48, "seasonality": 24, "n_variates": 1, "n_instances": 192, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.005195247495848, "wql": 0.1076856363194789, "wsql_by_level": [0.056397069100389094, 0.08542071182630076, 0.10586568127503418, 0.12027328825594023, 0.12946795446135537, 0.13311199502313206, 0.12999302041997104, 0.1175107840454948, 0.0911302224676928], "n_valid_labels": 9216, "n_masked_labels": 0, "mae_median": 469.98805135850694, "n_mase_elements": 9216, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.9662502361868567, "wql": 0.9473149320482348}}, {"config_id": "electricity__H__medium", "leaderboard_key": "electricity/H/medium", "dataset": "electricity/H", "term": "medium", "freq": "H", "prediction_length": 480, "seasonality": 24, "n_variates": 1, "n_instances": 191, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.278985998725151, "wql": 0.08168963046658351, "wsql_by_level": [0.038246727237136076, 0.06055069824767401, 0.07688735765720536, 0.08883191357429941, 0.09690449614467006, 0.10127365248392153, 0.100903593259357, 0.09422247612259164, 0.07738575947239647], "n_valid_labels": 91680, "n_masked_labels": 0, "mae_median": 167.4791256503792, "n_mase_elements": 91680, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8050794219396586, "wql": 0.6818928301208295}}, {"config_id": "electricity__H__long", "leaderboard_key": "electricity/H/long", "dataset": "electricity/H", "term": "long", "freq": "H", "prediction_length": 720, "seasonality": 24, "n_variates": 1, "n_instances": 192, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.005989986542046, "wql": 0.0717512335841778, "wsql_by_level": [0.049766060526332916, 0.0693342995653751, 0.08060650327958628, 0.08627758903474247, 0.0875531085760828, 0.0847966155464082, 0.07769951011733353, 0.06513523172470284, 0.04459218388703604], "n_valid_labels": 138240, "n_masked_labels": 0, "mae_median": 167.4959181247693, "n_mase_elements": 138240, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8444221392598532, "wql": 0.49822417172241473}}, {"config_id": "electricity__D__short", "leaderboard_key": "electricity/D/short", "dataset": "electricity/D", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 1, "n_instances": 192, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.1917353430285285, "wql": 0.05653707378588931, "wsql_by_level": [0.028734693953438258, 0.046048837523563535, 0.0540482446124841, 0.06007380156021994, 0.06768452994506077, 0.07239000603555543, 0.07146735784754593, 0.06328271681240813, 0.045103475782727644], "n_valid_labels": 5760, "n_masked_labels": 0, "mae_median": 4460.843291813383, "n_mase_elements": 5760, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.9078475373444427, "wql": 0.7012293467791362}}, {"config_id": "electricity__W__short", "leaderboard_key": "electricity/W/short", "dataset": "electricity/W", "term": "short", "freq": "W-FRI", "prediction_length": 8, "seasonality": 1, "n_variates": 1, "n_instances": 191, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.1478089106300988, "wql": 0.05751283904096939, "wsql_by_level": [0.042071013341648984, 0.06220590585953188, 0.07164510277304512, 0.07673931931529472, 0.0740760284170807, 0.06473270874411347, 0.045854636942121274, 0.04171226851328447, 0.03857856746260389], "n_valid_labels": 1528, "n_masked_labels": 0, "mae_median": 34350.672626595224, "n_mase_elements": 1528, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8916680515190532, "wql": 0.7078612687253304}}, {"config_id": "solar__T__short", "leaderboard_key": "solar/10T/short", "dataset": "solar/10T", "term": "short", "freq": "10T", "prediction_length": 48, "seasonality": 144, "n_variates": 1, "n_instances": 137, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 2.2569681674637607, "wql": 0.27450083346814824, "wsql_by_level": [0.17580773794424964, 0.26214253166540347, 0.30958668541568485, 0.3326243908805928, 0.3385805727016281, 0.3285689033235246, 0.3036853577440995, 0.2542765365056289, 0.16523478503252242], "n_valid_labels": 6576, "n_masked_labels": 0, "mae_median": 4.793607888196044, "n_mase_elements": 6576, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.7899645662054536, "wql": 0.7814825817695297}}, {"config_id": "solar__T__medium", "leaderboard_key": "solar/10T/medium", "dataset": "solar/10T", "term": "medium", "freq": "10T", "prediction_length": 480, "seasonality": 144, "n_variates": 1, "n_instances": 137, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.411404056768297, "wql": 0.4897848466734051, "wsql_by_level": [0.339130686589927, 0.5559608554346483, 0.6400826123950002, 0.6509103069605772, 0.6176635830074539, 0.5558985852383285, 0.46434349103858485, 0.3527329145514503, 0.23134058484467496], "n_valid_labels": 65760, "n_masked_labels": 0, "mae_median": 3.0150506714476757, "n_mase_elements": 65760, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8376883417448442, "wql": 0.6607978423819508}}, {"config_id": "solar__T__long", "leaderboard_key": "solar/10T/long", "dataset": "solar/10T", "term": "long", "freq": "10T", "prediction_length": 720, "seasonality": 144, "n_variates": 1, "n_instances": 137, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.430149138591592, "wql": 0.5495577844671765, "wsql_by_level": [0.4157401410782553, 0.6083748609468729, 0.6967427243138244, 0.7227016883592806, 0.7000813698397036, 0.6349690598273663, 0.5349107411605489, 0.39991406028280785, 0.23258541439592897], "n_valid_labels": 98640, "n_masked_labels": 0, "mae_median": 3.0458078342487633, "n_mase_elements": 98640, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.964859187184016, "wql": 0.657464015239788}}, {"config_id": "solar__H__short", "leaderboard_key": "solar/H/short", "dataset": "solar/H", "term": "short", "freq": "H", "prediction_length": 48, "seasonality": 24, "n_variates": 1, "n_instances": 137, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 0.6032989531688455, "wql": 0.1562461810465075, "wsql_by_level": [0.1269083400787946, 0.16975321749136202, 0.1870554715552497, 0.19526095379716882, 0.19537370345968197, 0.1804040518453034, 0.15323976337516274, 0.11880742989820889, 0.07941269791763558], "n_valid_labels": 6576, "n_masked_labels": 0, "mae_median": 8.069525182930924, "n_mase_elements": 6576, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.9112658674603129, "wql": 0.4977486438341271}}, {"config_id": "solar__H__medium", "leaderboard_key": "solar/H/medium", "dataset": "solar/H", "term": "medium", "freq": "H", "prediction_length": 480, "seasonality": 24, "n_variates": 1, "n_instances": 137, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 0.8298881294707111, "wql": 0.20765944252671026, "wsql_by_level": [0.13702955611790757, 0.20442243059967066, 0.24086463443054604, 0.2603003402361452, 0.26689643592954443, 0.25744601781061316, 0.2300159089787736, 0.1781150671560422, 0.09384459148114953], "n_valid_labels": 65760, "n_masked_labels": 0, "mae_median": 11.036797324489177, "n_mase_elements": 65760, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.6338663004639878, "wql": 0.30866947754193164}}, {"config_id": "solar__H__long", "leaderboard_key": "solar/H/long", "dataset": "solar/H", "term": "long", "freq": "H", "prediction_length": 720, "seasonality": 24, "n_variates": 1, "n_instances": 137, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 0.8664748980834234, "wql": 0.24149192208142528, "wsql_by_level": [0.20212932324840507, 0.26476239855549133, 0.29158481759233384, 0.2990499375543338, 0.29371152501441994, 0.2763990815201093, 0.2440782241170833, 0.19064763041624877, 0.11106436071440225], "n_valid_labels": 98640, "n_masked_labels": 0, "mae_median": 11.45228937594979, "n_mase_elements": 98640, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.9187700921037038, "wql": 0.31406052602147916}}, {"config_id": "solar__D__short", "leaderboard_key": "solar/D/short", "dataset": "solar/D", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 1, "n_instances": 137, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 0.8662851913167189, "wql": 0.18096753724081802, "wsql_by_level": [0.13449481850277614, 0.2025700781264022, 0.23433717425007533, 0.24304762270253996, 0.23482219503100754, 0.21122660012807895, 0.17501660705638253, 0.12582756656144395, 0.06736517280865549], "n_valid_labels": 4110, "n_masked_labels": 0, "mae_median": 219.74637008444236, "n_mase_elements": 4110, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.9695104857715756, "wql": 0.46212316645231355}}, {"config_id": "solar__W__short", "leaderboard_key": "solar/W/short", "dataset": "solar/W", "term": "short", "freq": "W-FRI", "prediction_length": 8, "seasonality": 1, "n_variates": 1, "n_instances": 137, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 0.4968143843922421, "wql": 0.07159665674111809, "wsql_by_level": [0.08119457306313575, 0.08510824224183965, 0.07550284183365813, 0.06882739354028107, 0.0698621354913643, 0.0725424822367246, 0.07162788277173564, 0.06606170669939873, 0.05364265279192507], "n_valid_labels": 1096, "n_masked_labels": 0, "mae_median": 491.3424066696724, "n_mase_elements": 1096, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8469430211434178, "wql": 0.6528724385888193}}, {"config_id": "hospital__M__short", "leaderboard_key": "hospital/M/short", "dataset": "hospital", "term": "short", "freq": "M", "prediction_length": 12, "seasonality": 12, "n_variates": 1, "n_instances": 192, "domain": "Healthcare", "n_cohorts": 1, "metrics": {"mase": 0.8481243709218815, "wql": 0.0665162351031477, "wsql_by_level": [0.03760282071491459, 0.05621833396756983, 0.06829957085769918, 0.0773011330794918, 0.08258827118115555, 0.08398543271819885, 0.07980048778138711, 0.06773460883029214, 0.045115456797620405], "n_valid_labels": 2304, "n_masked_labels": 0, "mae_median": 29.84849091122548, "n_mase_elements": 2304, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8634206906224304, "wql": 0.9269797009125593}}, {"config_id": "covid_deaths__D__short", "leaderboard_key": "covid_deaths/D/short", "dataset": "covid_deaths", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 1, "n_instances": 192, "domain": "Healthcare", "n_cohorts": 1, "metrics": {"mase": 41.65824528650925, "wql": 0.09378869450337197, "wsql_by_level": [0.06893365326520318, 0.09745776414805045, 0.11347630040720862, 0.11327189144529728, 0.10493573295622083, 0.10197121627492853, 0.08579602466634267, 0.0759116145972824, 0.08234405276981378], "n_valid_labels": 5760, "n_masked_labels": 0, "mae_median": 104.63141933064779, "n_mase_elements": 4830, "n_seasonal_error_zero": 31, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.902118695367908, "wql": 0.6264220401997149}}, {"config_id": "us_births__D__short", "leaderboard_key": "us_births/D/short", "dataset": "us_births/D", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 1, "n_instances": 1, "domain": "Healthcare", "n_cohorts": 1, "metrics": {"mase": 0.7505052337781618, "wql": 0.03418652269517344, "wsql_by_level": [0.019749713764894636, 0.03171121505489005, 0.03927113138939224, 0.04338475020201229, 0.0447388278680091, 0.04228310721274306, 0.03756746364626895, 0.029155380423803685, 0.01981711469454688], "n_valid_labels": 30, "n_masked_labels": 0, "mae_median": 494.60712890625, "n_mase_elements": 30, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.4887905216980433, "wql": 0.32205892136256864}}, {"config_id": "us_births__M__short", "leaderboard_key": "us_births/M/short", "dataset": "us_births/M", "term": "short", "freq": "M", "prediction_length": 12, "seasonality": 12, "n_variates": 1, "n_instances": 1, "domain": "Healthcare", "n_cohorts": 1, "metrics": {"mase": 0.4641970150847043, "wql": 0.010839906647462445, "wsql_by_level": [0.007690452660143038, 0.011101179131491754, 0.013314852898448347, 0.013933100581369, 0.01413719115604733, 0.012927403511671366, 0.01051376419769212, 0.008277431100709318, 0.005663784589589735], "n_valid_labels": 12, "n_masked_labels": 0, "mae_median": 4419.627604166667, "n_mase_elements": 12, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.6064599747287054, "wql": 0.5841568114542499}}, {"config_id": "us_births__W__short", "leaderboard_key": "us_births/W/short", "dataset": "us_births/W", "term": "short", "freq": "W-TUE", "prediction_length": 8, "seasonality": 1, "n_variates": 1, "n_instances": 1, "domain": "Healthcare", "n_cohorts": 1, "metrics": {"mase": 0.4843569991561676, "wql": 0.005578090588797161, "wsql_by_level": [0.0035051770054383377, 0.0061232056864479805, 0.007010747861980568, 0.0072738841606162915, 0.006934070457851651, 0.006446740210251619, 0.005279154454708256, 0.00407659575081509, 0.003553239711064651], "n_valid_labels": 8, "n_masked_labels": 0, "mae_median": 526.111328125, "n_mase_elements": 8, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.4492358442736684, "wql": 0.4256817161992966}}, {"config_id": "saugeenday__D__short", "leaderboard_key": "saugeen/D/short", "dataset": "saugeenday/D", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 1, "n_instances": 1, "domain": "Nature", "n_cohorts": 1, "metrics": {"mase": 1.675554660589966, "wql": 0.31344431652848964, "wsql_by_level": [0.12161772616823995, 0.19689573333266563, 0.2341903522250219, 0.2574401621359866, 0.3589836675399531, 0.4293852679891742, 0.45935019692894014, 0.4411765039690803, 0.3219592384673449], "n_valid_labels": 30, "n_masked_labels": 0, "mae_median": 7.4788263956705725, "n_mase_elements": 30, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 1.2879724425121457, "wql": 0.4718377991729083}}, {"config_id": "saugeenday__M__short", "leaderboard_key": "saugeen/M/short", "dataset": "saugeenday/M", "term": "short", "freq": "M", "prediction_length": 12, "seasonality": 12, "n_variates": 1, "n_instances": 1, "domain": "Nature", "n_cohorts": 1, "metrics": {"mase": 0.5927630646565163, "wql": 0.3203269447356998, "wsql_by_level": [0.12598857865704416, 0.18968222121544395, 0.24040851967481697, 0.3136420374208496, 0.38228621366892634, 0.42160177466840687, 0.45474315632306894, 0.43669600555236926, 0.3178939954403716], "n_valid_labels": 12, "n_masked_labels": 0, "mae_median": 10.376739422480265, "n_mase_elements": 12, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 1.3051388914641786, "wql": 1.0458487266954335}}, {"config_id": "saugeenday__W__short", "leaderboard_key": "saugeen/W/short", "dataset": "saugeenday/W", "term": "short", "freq": "W-THU", "prediction_length": 8, "seasonality": 1, "n_variates": 1, "n_instances": 1, "domain": "Nature", "n_cohorts": 1, "metrics": {"mase": 0.3519638114323024, "wql": 0.2662752495211793, "wsql_by_level": [0.11372987147884636, 0.18552782814033983, 0.23128901181167458, 0.27377207562527, 0.32433923441108065, 0.3547655413558739, 0.39123735928434705, 0.3490464389655082, 0.17276988461767362], "n_valid_labels": 8, "n_masked_labels": 0, "mae_median": 4.22625607252121, "n_mase_elements": 8, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8894037617219445, "wql": 0.24018150950267242}}, {"config_id": "temperature_rain_with_missing__D__short", "leaderboard_key": "temperature_rain/D/short", "dataset": "temperature_rain_with_missing", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 1, "n_instances": 192, "domain": "Nature", "n_cohorts": 1, "metrics": {"mase": 1.5515686319785789, "wql": 0.5381728314133933, "wsql_by_level": [0.18632494166550886, 0.34708943125977854, 0.48836454284916286, 0.6053340733310679, 0.686717752974089, 0.7200669298086018, 0.7158889436906286, 0.6381245989700771, 0.4556442681716257], "n_valid_labels": 5760, "n_masked_labels": 0, "mae_median": 6.085248474554371, "n_mase_elements": 5760, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 1.054893375281003, "wql": 0.5056231367221576}}, {"config_id": "kdd_cup_2018_with_missing__H__short", "leaderboard_key": "kdd_cup_2018/H/short", "dataset": "kdd_cup_2018_with_missing/H", "term": "short", "freq": "H", "prediction_length": 48, "seasonality": 24, "n_variates": 1, "n_instances": 176, "domain": "Nature", "n_cohorts": 2, "metrics": {"mase": 0.9314590653179857, "wql": 0.4144698581629218, "wsql_by_level": [0.17042770636579477, 0.31958737278243426, 0.43495208981935, 0.5140882428507184, 0.5569903741134093, 0.5563970412640289, 0.5050260744081512, 0.40239699224894754, 0.27036282961346225], "n_valid_labels": 8071, "n_masked_labels": 377, "mae_median": 18.78991258007594, "n_mase_elements": 8071, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8075459670396663, "wql": 0.7189950739967459}}, {"config_id": "kdd_cup_2018_with_missing__H__medium", "leaderboard_key": "kdd_cup_2018/H/medium", "dataset": "kdd_cup_2018_with_missing/H", "term": "medium", "freq": "H", "prediction_length": 480, "seasonality": 24, "n_variates": 1, "n_instances": 183, "domain": "Nature", "n_cohorts": 2, "metrics": {"mase": 0.8480288628030781, "wql": 0.470069973426411, "wsql_by_level": [0.17893876446622387, 0.32772203748762174, 0.4507381237346121, 0.5418444741746805, 0.5981812239304258, 0.6181714963553333, 0.5994242556270963, 0.5328490400735261, 0.38276034498817996], "n_valid_labels": 84423, "n_masked_labels": 3417, "mae_median": 17.355613578305753, "n_mase_elements": 84423, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.7006489300316523, "wql": 0.412321717770212}}, {"config_id": "kdd_cup_2018_with_missing__H__long", "leaderboard_key": "kdd_cup_2018/H/long", "dataset": "kdd_cup_2018_with_missing/H", "term": "long", "freq": "H", "prediction_length": 720, "seasonality": 24, "n_variates": 1, "n_instances": 182, "domain": "Nature", "n_cohorts": 2, "metrics": {"mase": 0.857558379067222, "wql": 0.47829225390599056, "wsql_by_level": [0.17818917454251948, 0.3338041316392467, 0.4596481048436853, 0.5522913851434088, 0.61105096369842, 0.6339827967625987, 0.6151859222096626, 0.5407691871915298, 0.37970861912284326], "n_valid_labels": 124627, "n_masked_labels": 6413, "mae_median": 18.779386165107308, "n_mase_elements": 124627, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.7889175398800053, "wql": 0.3718634450419643}}, {"config_id": "kdd_cup_2018_with_missing__D__short", "leaderboard_key": "kdd_cup_2018/D/short", "dataset": "kdd_cup_2018_with_missing/D", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 1, "n_instances": 184, "domain": "Nature", "n_cohorts": 2, "metrics": {"mase": 1.1398713402362113, "wql": 0.4452585200870648, "wsql_by_level": [0.23439720860283367, 0.3630833673662009, 0.4535136492570833, 0.5149219367451351, 0.5514592922543351, 0.5604099266997383, 0.5370881317145794, 0.4682844182400131, 0.32416874990366445], "n_valid_labels": 5433, "n_masked_labels": 87, "mae_median": 16.537140032977618, "n_mase_elements": 5433, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 1.0568695442143516, "wql": 0.517322856079971}}, {"config_id": "car_parts_with_missing__M__short", "leaderboard_key": "car_parts/M/short", "dataset": "car_parts_with_missing", "term": "short", "freq": "M", "prediction_length": 12, "seasonality": 12, "n_variates": 1, "n_instances": 187, "domain": "Sales", "n_cohorts": 1, "metrics": {"mase": 0.8263689971998104, "wql": 1.2192532765615771, "wsql_by_level": [0.2766903109814157, 0.6254175547601963, 0.9438783489916143, 1.2223525838813596, 1.4755679973457547, 1.657124344371809, 1.7430252986469423, 1.6540169406612468, 1.375206109413854], "n_valid_labels": 2244, "n_masked_labels": 0, "mae_median": 0.748962544107315, "n_mase_elements": 1368, "n_seasonal_error_zero": 73, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.9001036285124183, "wql": 0.7882894800168283}}, {"config_id": "restaurant__D__short", "leaderboard_key": "restaurant/D/short", "dataset": "restaurant", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 1, "n_instances": 188, "domain": "Sales", "n_cohorts": 13, "skipped_series": 1, "metrics": {"mase": 0.7032572725336931, "wql": 0.29388985640575416, "wsql_by_level": [0.14388509764644014, 0.2374718115070401, 0.3045734092783732, 0.35000386166169445, 0.37377117701051293, 0.37533248318597334, 0.3520210542915942, 0.3000197969740691, 0.20793001609608977], "n_valid_labels": 4908, "n_masked_labels": 732, "mae_median": 7.39111940554224, "n_mase_elements": 4879, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 1}, "relative": {"mase": 0.6372438611435927, "wql": 0.3962249469444833}}, {"config_id": "hierarchical_sales__D__short", "leaderboard_key": "hierarchical_sales/D/short", "dataset": "hierarchical_sales/D", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 1, "n_instances": 118, "domain": "Sales", "n_cohorts": 1, "metrics": {"mase": 0.7348890090260285, "wql": 0.5734915322577943, "wsql_by_level": [0.2123124849189796, 0.37864348610574, 0.5201218954642599, 0.6358867324597284, 0.7166157852320038, 0.7657184055714783, 0.7738833937793305, 0.6742189100170203, 0.4840226967716072], "n_valid_labels": 3422, "n_masked_labels": 118, "mae_median": 2.345021497085908, "n_mase_elements": 3422, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.637460473750277, "wql": 0.335251124750253}}, {"config_id": "hierarchical_sales__W__short", "leaderboard_key": "hierarchical_sales/W/short", "dataset": "hierarchical_sales/W", "term": "short", "freq": "W-WED", "prediction_length": 8, "seasonality": 1, "n_variates": 1, "n_instances": 118, "domain": "Sales", "n_cohorts": 1, "metrics": {"mase": 0.811843611649546, "wql": 0.428206896002995, "wsql_by_level": [0.14393482815309452, 0.2502359699546728, 0.33823247780256843, 0.41385793315226654, 0.47960619545690814, 0.5352625072635407, 0.5769880606821238, 0.5938267044023506, 0.5219173871594297], "n_valid_labels": 944, "n_masked_labels": 0, "mae_median": 13.82576631034835, "n_mase_elements": 944, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.7478520895769962, "wql": 0.5458481728861894}}, {"config_id": "LOOP_SEATTLE__T__short", "leaderboard_key": "loop_seattle/5T/short", "dataset": "LOOP_SEATTLE/5T", "term": "short", "freq": "5T", "prediction_length": 48, "seasonality": 288, "n_variates": 1, "n_instances": 192, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 0.5864394836519787, "wql": 0.05428408817899554, "wsql_by_level": [0.04479178098907267, 0.06000763809732082, 0.06637466849100017, 0.06788984760988573, 0.06605520506110114, 0.061294463229775095, 0.053358117703003374, 0.042244454810520214, 0.026540617619280685], "n_valid_labels": 9216, "n_masked_labels": 0, "mae_median": 3.9955498398695557, "n_mase_elements": 9216, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8253045664949409, "wql": 0.7091877102191098}}, {"config_id": "LOOP_SEATTLE__T__medium", "leaderboard_key": "loop_seattle/5T/medium", "dataset": "LOOP_SEATTLE/5T", "term": "medium", "freq": "5T", "prediction_length": 480, "seasonality": 288, "n_variates": 1, "n_instances": 192, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 0.74182900729652, "wql": 0.06788873443760415, "wsql_by_level": [0.05357422454078263, 0.07493314508780921, 0.08472113983743966, 0.08724279381143979, 0.08435672147263845, 0.07730137093578172, 0.06638934676629683, 0.051380998284025835, 0.03109886920222329], "n_valid_labels": 92160, "n_masked_labels": 0, "mae_median": 4.579496950264244, "n_mase_elements": 92160, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.755158697865816, "wql": 0.6385961674510584}}, {"config_id": "LOOP_SEATTLE__T__long", "leaderboard_key": "loop_seattle/5T/long", "dataset": "LOOP_SEATTLE/5T", "term": "long", "freq": "5T", "prediction_length": 720, "seasonality": 288, "n_variates": 1, "n_instances": 192, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 0.7465064067482573, "wql": 0.0718782304981459, "wsql_by_level": [0.05180627157965504, 0.07442746588233085, 0.08624474272042683, 0.09078284999619254, 0.08968703608200657, 0.08429582001894365, 0.07419009199650099, 0.058873657814727316, 0.03659613839252939], "n_valid_labels": 138240, "n_masked_labels": 0, "mae_median": 4.707955171464494, "n_mase_elements": 138240, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.7823282219272191, "wql": 0.6217114573451009}}, {"config_id": "LOOP_SEATTLE__H__short", "leaderboard_key": "loop_seattle/H/short", "dataset": "LOOP_SEATTLE/H", "term": "short", "freq": "H", "prediction_length": 48, "seasonality": 24, "n_variates": 1, "n_instances": 192, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 0.7790671230574661, "wql": 0.056192889416918024, "wsql_by_level": [0.04702487987186681, 0.0623758295313483, 0.06896356914078333, 0.07004562495761203, 0.06746910304840772, 0.06199981916614292, 0.05439636364683567, 0.04431985166795878, 0.029140963721306687], "n_valid_labels": 9216, "n_masked_labels": 0, "mae_median": 3.5669649561039276, "n_mase_elements": 9216, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8684396521913409, "wql": 0.6895963495119618}}, {"config_id": "LOOP_SEATTLE__H__medium", "leaderboard_key": "loop_seattle/H/medium", "dataset": "LOOP_SEATTLE/H", "term": "medium", "freq": "H", "prediction_length": 480, "seasonality": 24, "n_variates": 1, "n_instances": 192, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 0.7919756972825184, "wql": 0.056683030945589144, "wsql_by_level": [0.0497444993514591, 0.06313123056500668, 0.06854955380599254, 0.06947031458062264, 0.06742205770250141, 0.06256440075956698, 0.05523141115237446, 0.04481747578808889, 0.029216334804689603], "n_valid_labels": 92160, "n_masked_labels": 0, "mae_median": 3.7603892812712325, "n_mase_elements": 92160, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.6638118359610692, "wql": 0.37381839332646466}}, {"config_id": "LOOP_SEATTLE__H__long", "leaderboard_key": "loop_seattle/H/long", "dataset": "LOOP_SEATTLE/H", "term": "long", "freq": "H", "prediction_length": 720, "seasonality": 24, "n_variates": 1, "n_instances": 192, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 0.738829739885067, "wql": 0.052308953536778224, "wsql_by_level": [0.039299238664245624, 0.05255967792580262, 0.05936548448019612, 0.062281229622256615, 0.06242582927152043, 0.06017755752451767, 0.055325450299709304, 0.04694625617869633, 0.032399857864059314], "n_valid_labels": 138240, "n_masked_labels": 0, "mae_median": 3.517151350220148, "n_mase_elements": 138240, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.6601483744160617, "wql": 0.30585123119424396}}, {"config_id": "LOOP_SEATTLE__D__short", "leaderboard_key": "loop_seattle/D/short", "dataset": "LOOP_SEATTLE/D", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 1, "n_instances": 192, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 0.6562146459533866, "wql": 0.029987287094365996, "wsql_by_level": [0.018323798041140163, 0.02760173533914183, 0.03314279031738056, 0.03620883489365932, 0.037273057818275786, 0.036196217843546305, 0.03324895703842775, 0.028101569026567724, 0.019788623531154504], "n_valid_labels": 5760, "n_masked_labels": 0, "mae_median": 2.1110521952311196, "n_mase_elements": 5760, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.6250123240755511, "wql": 0.3491149302247672}}, {"config_id": "SZ_TAXI__T__short", "leaderboard_key": "sz_taxi/15T/short", "dataset": "SZ_TAXI/15T", "term": "short", "freq": "15T", "prediction_length": 48, "seasonality": 96, "n_variates": 1, "n_instances": 156, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 0.4626850814794651, "wql": 0.1808778853917687, "wsql_by_level": [0.09152374229134473, 0.14991132036443927, 0.19007622164072213, 0.2160504160188806, 0.2286942847375343, 0.22882632172005063, 0.2147448931457453, 0.18291428918473465, 0.12515947942246664], "n_valid_labels": 7488, "n_masked_labels": 0, "mae_median": 2.496985606481987, "n_mase_elements": 7488, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.7548541376291873, "wql": 0.6456545135962624}}, {"config_id": "SZ_TAXI__T__medium", "leaderboard_key": "sz_taxi/15T/medium", "dataset": "SZ_TAXI/15T", "term": "medium", "freq": "15T", "prediction_length": 480, "seasonality": 96, "n_variates": 1, "n_instances": 156, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 0.5008475574542578, "wql": 0.24294826960572802, "wsql_by_level": [0.1144784379080718, 0.18109881224225755, 0.22839716900666954, 0.2632517694336473, 0.28869728020287816, 0.30456811389744826, 0.3066071083453445, 0.28593691229547863, 0.21349882311975676], "n_valid_labels": 74880, "n_masked_labels": 0, "mae_median": 3.186576861898866, "n_mase_elements": 74880, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.843510613849713, "wql": 0.5671558774065893}}, {"config_id": "SZ_TAXI__T__long", "leaderboard_key": "sz_taxi/15T/long", "dataset": "SZ_TAXI/15T", "term": "long", "freq": "15T", "prediction_length": 720, "seasonality": 96, "n_variates": 1, "n_instances": 156, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 1.2714380607200964, "wql": 0.5053214252545055, "wsql_by_level": [0.3837884898338214, 0.5145672121895367, 0.5878809607458092, 0.6205584479386093, 0.619577141276385, 0.5883309106434682, 0.5283571131532746, 0.4297701066185521, 0.27506244489109344], "n_valid_labels": 112320, "n_masked_labels": 0, "mae_median": 7.75467368370671, "n_mase_elements": 112320, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8566686903348999, "wql": 0.7853460499598182}}, {"config_id": "SZ_TAXI__H__short", "leaderboard_key": "sz_taxi/H/short", "dataset": "SZ_TAXI/H", "term": "short", "freq": "H", "prediction_length": 48, "seasonality": 24, "n_variates": 1, "n_instances": 156, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 0.47345451712987424, "wql": 0.13107144630496928, "wsql_by_level": [0.07168371404348971, 0.11062127195213284, 0.13574895353242047, 0.15137690630330758, 0.15985518210004876, 0.15975554696182498, 0.15159900283284908, 0.13529366643313054, 0.10370877258551961], "n_valid_labels": 7488, "n_masked_labels": 0, "mae_median": 1.7788976422031202, "n_mase_elements": 7488, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8187380577833887, "wql": 0.6338111871439569}}, {"config_id": "M_DENSE__H__short", "leaderboard_key": "m_dense/H/short", "dataset": "M_DENSE/H", "term": "short", "freq": "H", "prediction_length": 48, "seasonality": 24, "n_variates": 1, "n_instances": 30, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 0.6673477339598097, "wql": 0.13381121739461577, "wsql_by_level": [0.07646318303094778, 0.11560903093371483, 0.14019385353585342, 0.15541976040070474, 0.16345965850577704, 0.16431241336887312, 0.1564272476816878, 0.13593208290942133, 0.09648372618456158], "n_valid_labels": 1440, "n_masked_labels": 0, "mae_median": 91.79810526702138, "n_mase_elements": 1440, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.48186482983036266, "wql": 0.5419359172124095}}, {"config_id": "M_DENSE__H__medium", "leaderboard_key": "m_dense/H/medium", "dataset": "M_DENSE/H", "term": "medium", "freq": "H", "prediction_length": 480, "seasonality": 24, "n_variates": 1, "n_instances": 30, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 1.1023516251122774, "wql": 0.22740508980268567, "wsql_by_level": [0.10112015585497222, 0.16695728722522082, 0.2175547342833934, 0.25686230897469, 0.28505085746368725, 0.2978260076547916, 0.29139076819452586, 0.2557078083184608, 0.1741758802544288], "n_valid_labels": 14400, "n_masked_labels": 0, "mae_median": 150.24812372797066, "n_mase_elements": 14400, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.9159202242343034, "wql": 0.619367971150801}}, {"config_id": "M_DENSE__H__long", "leaderboard_key": "m_dense/H/long", "dataset": "M_DENSE/H", "term": "long", "freq": "H", "prediction_length": 720, "seasonality": 24, "n_variates": 1, "n_instances": 30, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 0.877295611800436, "wql": 0.23923573976712356, "wsql_by_level": [0.13525328549690072, 0.21459976076575216, 0.26852823138537474, 0.2991725933161364, 0.30700966487585296, 0.2939798674862894, 0.26147771508661855, 0.21698062485528127, 0.15611991463590622], "n_valid_labels": 21600, "n_masked_labels": 0, "mae_median": 131.68062999712097, "n_mase_elements": 21600, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.7276824551361437, "wql": 0.4362160022315357}}, {"config_id": "M_DENSE__D__short", "leaderboard_key": "m_dense/D/short", "dataset": "M_DENSE/D", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 1, "n_instances": 30, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 0.8196729786938285, "wql": 0.11209314497244116, "wsql_by_level": [0.0807601741683664, 0.11281415574834637, 0.12866431854257337, 0.13424117321141613, 0.13110805376462456, 0.12534945960064903, 0.11722106015594659, 0.10267272744110614, 0.07600718211894188], "n_valid_labels": 900, "n_masked_labels": 0, "mae_median": 56.234031346639, "n_mase_elements": 900, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.6243486437915622, "wql": 0.37453130535027723}}, {"config_id": "ett1__T__short", "leaderboard_key": "ett1/15T/short", "dataset": "ett1/15T", "term": "short", "freq": "15T", "prediction_length": 48, "seasonality": 96, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 0.5708853042944508, "wql": 0.2463715128723785, "wsql_by_level": [0.16400218592871096, 0.2209048333404705, 0.25009514187287185, 0.28636883518720563, 0.30217447690601895, 0.3066069876564013, 0.28578592381915535, 0.23769464717162778, 0.1637105839689438], "n_valid_labels": 336, "n_masked_labels": 0, "mae_median": 0.82533742073879, "n_mase_elements": 336, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.6103915361813244, "wql": 0.47356494274680283}}, {"config_id": "ett1__T__medium", "leaderboard_key": "ett1/15T/medium", "dataset": "ett1/15T", "term": "medium", "freq": "15T", "prediction_length": 480, "seasonality": 96, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 0.9656647615391196, "wql": 0.3351660915837733, "wsql_by_level": [0.2219368106918946, 0.3472761207016973, 0.41775119517537523, 0.4446392771767811, 0.43434917469794937, 0.4033060833000697, 0.3397643262596162, 0.2539064451094817, 0.1535653911410951], "n_valid_labels": 3360, "n_masked_labels": 0, "mae_median": 1.6562388141462137, "n_mase_elements": 3360, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.9821210166045352, "wql": 0.7574072980094135}}, {"config_id": "ett1__T__long", "leaderboard_key": "ett1/15T/long", "dataset": "ett1/15T", "term": "long", "freq": "15T", "prediction_length": 720, "seasonality": 96, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 0.9981941011380466, "wql": 0.3341812007426018, "wsql_by_level": [0.17604461969397395, 0.30606202331419974, 0.39350708727911426, 0.44093391078866023, 0.4533487609029168, 0.43228551872328214, 0.37722060649662625, 0.2807368069639273, 0.14749147252071573], "n_valid_labels": 5040, "n_masked_labels": 0, "mae_median": 1.78651595814634, "n_mase_elements": 5040, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.9510582227463917, "wql": 0.716810411846765}}, {"config_id": "ett1__H__short", "leaderboard_key": "ett1/H/short", "dataset": "ett1/H", "term": "short", "freq": "H", "prediction_length": 48, "seasonality": 24, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.0872611679136062, "wql": 0.34736108490237666, "wsql_by_level": [0.1514118953058142, 0.32051725290272637, 0.42456589444848597, 0.46715596044238133, 0.46963146146470147, 0.4384089289055736, 0.37952209792833436, 0.2978647374627226, 0.17717153526065016], "n_valid_labels": 336, "n_masked_labels": 0, "mae_median": 6.745783526073431, "n_mase_elements": 336, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 1.1773105697244175, "wql": 0.905695260450443}}, {"config_id": "ett1__H__medium", "leaderboard_key": "ett1/H/medium", "dataset": "ett1/H", "term": "medium", "freq": "H", "prediction_length": 480, "seasonality": 24, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.2143995688190363, "wql": 0.2937695158276702, "wsql_by_level": [0.16182556979140045, 0.2566703247646637, 0.3179489848185056, 0.3541190232345261, 0.3704390450363359, 0.3672515650523988, 0.34074828752681774, 0.2844462990740073, 0.19047654315037613], "n_valid_labels": 3360, "n_masked_labels": 0, "mae_median": 7.120665203544887, "n_mase_elements": 3360, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8713861852411183, "wql": 0.6837159505652904}}, {"config_id": "ett1__H__long", "leaderboard_key": "ett1/H/long", "dataset": "ett1/H", "term": "long", "freq": "H", "prediction_length": 720, "seasonality": 24, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.108403107049459, "wql": 0.26932565727244423, "wsql_by_level": [0.18580205173921305, 0.2691977943702413, 0.31432952759334043, 0.3357948938746346, 0.3368756881855405, 0.32147375815247675, 0.28621902161368934, 0.22914730127554972, 0.1450908786473119], "n_valid_labels": 5040, "n_masked_labels": 0, "mae_median": 6.310423026872533, "n_mase_elements": 5040, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.7644035739323134, "wql": 0.5072743027547193}}, {"config_id": "ett1__D__short", "leaderboard_key": "ett1/D/short", "dataset": "ett1/D", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.3338834402028559, "wql": 0.2206528626585563, "wsql_by_level": [0.15649360362438544, 0.2303063783024349, 0.2682668707833516, 0.28042882156590027, 0.2818932849855062, 0.2623312262814881, 0.222607064312146, 0.16755314667045879, 0.11599536740133552], "n_valid_labels": 210, "n_masked_labels": 0, "mae_median": 115.04867627677463, "n_mase_elements": 210, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.6945867018524801, "wql": 0.5679786095136372}}, {"config_id": "ett1__W__short", "leaderboard_key": "ett1/W/short", "dataset": "ett1/W", "term": "short", "freq": "W-THU", "prediction_length": 8, "seasonality": 1, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.7872141092783826, "wql": 0.350722739439398, "wsql_by_level": [0.25740515084491233, 0.36722578222770363, 0.4341312748791001, 0.4698497916628444, 0.47558501620376037, 0.43992886363316525, 0.3682594082264771, 0.2352245408730326, 0.10889482640358612], "n_valid_labels": 56, "n_masked_labels": 0, "mae_median": 1206.4078138896398, "n_mase_elements": 56, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 1.1878188416566207, "wql": 0.9823258018145309}}, {"config_id": "ett2__T__short", "leaderboard_key": "ett2/15T/short", "dataset": "ett2/15T", "term": "short", "freq": "15T", "prediction_length": 48, "seasonality": 96, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 0.7334312991377362, "wql": 0.09034943889243417, "wsql_by_level": [0.04996557085755058, 0.08156682729735686, 0.100392275643997, 0.11005223439949974, 0.11454438833014206, 0.11198991891836993, 0.10268340572706176, 0.08531853826517385, 0.056631790592755686], "n_valid_labels": 336, "n_masked_labels": 0, "mae_median": 1.6327879840419406, "n_mase_elements": 336, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.9502422871919158, "wql": 0.8986485212055849}}, {"config_id": "ett2__T__medium", "leaderboard_key": "ett2/15T/medium", "dataset": "ett2/15T", "term": "medium", "freq": "15T", "prediction_length": 480, "seasonality": 96, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 0.9688128767833858, "wql": 0.11409979342549387, "wsql_by_level": [0.07361681477023599, 0.11133464695296702, 0.13270487095982894, 0.1440311981626583, 0.14805075627645434, 0.14162851828917508, 0.12419906598251608, 0.09503742561681594, 0.05629484381879317], "n_valid_labels": 3360, "n_masked_labels": 0, "mae_median": 2.1427634680022796, "n_mase_elements": 3360, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 1.04290069549812, "wql": 0.7905715012820052}}, {"config_id": "ett2__T__long", "leaderboard_key": "ett2/15T/long", "dataset": "ett2/15T", "term": "long", "freq": "15T", "prediction_length": 720, "seasonality": 96, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.1814935595212168, "wql": 0.1518794297450886, "wsql_by_level": [0.08573930208102536, 0.1256910603887048, 0.15486537904412703, 0.17940530803092924, 0.19544675389931845, 0.19590265286986644, 0.18027881898760942, 0.1487984125519407, 0.10078717985227596], "n_valid_labels": 5040, "n_masked_labels": 0, "mae_median": 2.6614835896640128, "n_mase_elements": 5040, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 1.0221257530089185, "wql": 0.8109950843353438}}, {"config_id": "ett2__H__short", "leaderboard_key": "ett2/H/short", "dataset": "ett2/H", "term": "short", "freq": "H", "prediction_length": 48, "seasonality": 24, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 0.9103654412061127, "wql": 0.1138812898763956, "wsql_by_level": [0.060818171359859466, 0.10352711408995882, 0.1280990270501541, 0.14037094991506227, 0.14472871297163692, 0.14151891524938315, 0.130715044030325, 0.10698919780618057, 0.06816447641500023], "n_valid_labels": 336, "n_masked_labels": 0, "mae_median": 8.656774342060089, "n_mase_elements": 336, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 1.0134098694730314, "wql": 0.9397892290630341}}, {"config_id": "ett2__H__medium", "leaderboard_key": "ett2/H/medium", "dataset": "ett2/H", "term": "medium", "freq": "H", "prediction_length": 480, "seasonality": 24, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.8694182427593795, "wql": 0.25023382477764383, "wsql_by_level": [0.220076891420819, 0.28039882522030457, 0.30656915583097655, 0.31040645068461287, 0.29721700118072714, 0.27393192051510545, 0.24077174371249124, 0.19556643453938347, 0.12716599989437424], "n_valid_labels": 3360, "n_masked_labels": 0, "mae_median": 16.37365030462942, "n_mase_elements": 3360, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8224600750099719, "wql": 0.7992166251430929}}, {"config_id": "ett2__H__long", "leaderboard_key": "ett2/H/long", "dataset": "ett2/H", "term": "long", "freq": "H", "prediction_length": 720, "seasonality": 24, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 2.23374691186863, "wql": 0.19834196458622855, "wsql_by_level": [0.10201105137789299, 0.16346227198220944, 0.20400863175825276, 0.2298445545815791, 0.2453488648604956, 0.248015414715013, 0.2371621949432866, 0.20775795738618005, 0.14746673967114723], "n_valid_labels": 5040, "n_masked_labels": 0, "mae_median": 14.948326876998342, "n_mase_elements": 5040, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.9277932661452751, "wql": 0.6905087978434369}}, {"config_id": "ett2__D__short", "leaderboard_key": "ett2/D/short", "dataset": "ett2/D", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 3.404406995021055, "wql": 0.1918257823859732, "wsql_by_level": [0.10945473409087089, 0.16743746408255653, 0.20527960686654992, 0.2285801873993269, 0.23887596568471434, 0.2355004008313435, 0.22034273377818359, 0.1887640988490374, 0.13219684989117594], "n_valid_labels": 210, "n_masked_labels": 0, "mae_median": 348.4026689252683, "n_mase_elements": 210, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.987838692674619, "wql": 0.873445782463934}}, {"config_id": "ett2__W__short", "leaderboard_key": "ett2/W/short", "dataset": "ett2/W", "term": "short", "freq": "W-THU", "prediction_length": 8, "seasonality": 1, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 0.9115859642912271, "wql": 0.1204472615024173, "wsql_by_level": [0.08616865338245543, 0.11273013021246696, 0.11918473584177104, 0.12394733728017499, 0.13595853548360168, 0.1461198671533806, 0.1436604493547486, 0.12448990089370228, 0.09176574391945433], "n_valid_labels": 56, "n_masked_labels": 0, "mae_median": 1376.942128249577, "n_mase_elements": 56, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.9785192706599976, "wql": 0.6793186610726261}}, {"config_id": "jena_weather__T__short", "leaderboard_key": "jena_weather/10T/short", "dataset": "jena_weather/10T", "term": "short", "freq": "10T", "prediction_length": 48, "seasonality": 144, "n_variates": 21, "n_instances": 1, "domain": "Nature", "n_cohorts": 1, "metrics": {"mase": 0.6567776950876182, "wql": 0.10390181982960771, "wsql_by_level": [0.032702103921265824, 0.051871420161722005, 0.08150691540344444, 0.1085879172513168, 0.1283605940657619, 0.14296673640107685, 0.14603120266302402, 0.1352920872213466, 0.10779740137751087], "n_valid_labels": 1008, "n_masked_labels": 0, "mae_median": 23.64989696035073, "n_mase_elements": 1008, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 1.0386262245009232, "wql": 0.7307616392787628}}, {"config_id": "jena_weather__T__medium", "leaderboard_key": "jena_weather/10T/medium", "dataset": "jena_weather/10T", "term": "medium", "freq": "10T", "prediction_length": 480, "seasonality": 144, "n_variates": 21, "n_instances": 1, "domain": "Nature", "n_cohorts": 1, "metrics": {"mase": 0.8367471886797653, "wql": 0.07105917062773195, "wsql_by_level": [0.03440606641296538, 0.05942451747618064, 0.07495589803699289, 0.08474438180798205, 0.08929319800113891, 0.08794267549414034, 0.08171248813648332, 0.07016853398959526, 0.056884776294108874], "n_valid_labels": 10080, "n_masked_labels": 0, "mae_median": 15.519449593482488, "n_mase_elements": 10080, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8940784095923496, "wql": 0.3328005013577497}}, {"config_id": "jena_weather__T__long", "leaderboard_key": "jena_weather/10T/long", "dataset": "jena_weather/10T", "term": "long", "freq": "10T", "prediction_length": 720, "seasonality": 144, "n_variates": 21, "n_instances": 1, "domain": "Nature", "n_cohorts": 1, "metrics": {"mase": 0.6355318728376552, "wql": 0.06488234596988064, "wsql_by_level": [0.03484147055585464, 0.057717572158342695, 0.07169477064502051, 0.08002494830477477, 0.08232802171025812, 0.07914022773691949, 0.07143942419855309, 0.059993541794748216, 0.04676113662445417], "n_valid_labels": 15120, "n_masked_labels": 0, "mae_median": 14.16328993834735, "n_mase_elements": 15120, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.6594381615983075, "wql": 0.2739286586856853}}, {"config_id": "jena_weather__H__short", "leaderboard_key": "jena_weather/H/short", "dataset": "jena_weather/H", "term": "short", "freq": "H", "prediction_length": 48, "seasonality": 24, "n_variates": 21, "n_instances": 1, "domain": "Nature", "n_cohorts": 1, "metrics": {"mase": 0.7566441877218407, "wql": 0.08283165018375324, "wsql_by_level": [0.030581945405944517, 0.05137454871395742, 0.07062253019359829, 0.08460918614431572, 0.09420930226255605, 0.10199047834610948, 0.1089697787648516, 0.11031500836157337, 0.0928120734608727], "n_valid_labels": 1008, "n_masked_labels": 0, "mae_median": 16.5090222686191, "n_mase_elements": 1008, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8336503105845321, "wql": 0.4801528639999464}}, {"config_id": "jena_weather__H__medium", "leaderboard_key": "jena_weather/H/medium", "dataset": "jena_weather/H", "term": "medium", "freq": "H", "prediction_length": 480, "seasonality": 24, "n_variates": 21, "n_instances": 1, "domain": "Nature", "n_cohorts": 1, "metrics": {"mase": 1.099199699911339, "wql": 0.11812050772931568, "wsql_by_level": [0.11657790757847461, 0.13855340831394772, 0.14632593379857026, 0.14388637692896508, 0.13452738848123366, 0.1231768233627765, 0.10804714815512985, 0.08870020748898999, 0.06328937545575362], "n_valid_labels": 10080, "n_masked_labels": 0, "mae_median": 24.37716235135583, "n_mase_elements": 10080, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.7300963316874448, "wql": 0.33088668826658996}}, {"config_id": "jena_weather__H__long", "leaderboard_key": "jena_weather/H/long", "dataset": "jena_weather/H", "term": "long", "freq": "H", "prediction_length": 720, "seasonality": 24, "n_variates": 21, "n_instances": 1, "domain": "Nature", "n_cohorts": 1, "metrics": {"mase": 1.0287052164817878, "wql": 0.08571698754034823, "wsql_by_level": [0.05112869529819806, 0.07881822275377764, 0.09521211722243107, 0.1028508759819873, 0.10438748307772369, 0.10052790069166972, 0.09273136046856695, 0.08167146928105229, 0.06412476308772742], "n_valid_labels": 15120, "n_masked_labels": 0, "mae_median": 20.256139428320107, "n_mase_elements": 15120, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 1.023473634676717, "wql": 0.2175284728920603}}, {"config_id": "jena_weather__D__short", "leaderboard_key": "jena_weather/D/short", "dataset": "jena_weather/D", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 21, "n_instances": 1, "domain": "Nature", "n_cohorts": 1, "metrics": {"mase": 1.2260421303547482, "wql": 0.07062996890613342, "wsql_by_level": [0.037566261048266984, 0.06001960183833484, 0.07579125133427225, 0.08643661282874487, 0.09088247242255622, 0.0878164474304829, 0.08223889554683157, 0.06890530160982503, 0.04601287609588614], "n_valid_labels": 630, "n_masked_labels": 0, "mae_median": 17.63552465090798, "n_mase_elements": 630, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 1.0409201289037093, "wql": 0.36279590867078565}}, {"config_id": "bitbrains_fast_storage__T__short", "leaderboard_key": "bitbrains_fast_storage/5T/short", "dataset": "bitbrains_fast_storage/5T", "term": "short", "freq": "5T", "prediction_length": 48, "seasonality": 288, "n_variates": 2, "n_instances": 189, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.5495690409618929, "wql": 0.4640114691068969, "wsql_by_level": [0.2735727210349164, 0.41126061433918715, 0.4773614782159531, 0.5097300459438864, 0.5302770091595749, 0.5516661797740225, 0.5459540768906436, 0.4995231463148054, 0.37675795028908265], "n_valid_labels": 18124, "n_masked_labels": 20, "mae_median": 164.91747839772205, "n_mase_elements": 17454, "n_seasonal_error_zero": 12, "n_seasonal_error_nan": 2}, "relative": {"mase": 0.5592570882200334, "wql": 0.23452315349567934}}, {"config_id": "bitbrains_fast_storage__T__medium", "leaderboard_key": "bitbrains_fast_storage/5T/medium", "dataset": "bitbrains_fast_storage/5T", "term": "medium", "freq": "5T", "prediction_length": 480, "seasonality": 288, "n_variates": 2, "n_instances": 184, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.8537420640137354, "wql": 0.3475119141408658, "wsql_by_level": [0.14851780246237994, 0.2619325858301886, 0.3562623489519422, 0.4308924916002662, 0.48124148139269113, 0.49618091496030575, 0.4684975993344411, 0.3563007186937533, 0.12778128404182415], "n_valid_labels": 175364, "n_masked_labels": 1276, "mae_median": 375.3476695428092, "n_mase_elements": 173750, "n_seasonal_error_zero": 2, "n_seasonal_error_nan": 4}, "relative": {"mase": 0.802478242122517, "wql": 0.5530322889608165}}, {"config_id": "bitbrains_fast_storage__T__long", "leaderboard_key": "bitbrains_fast_storage/5T/long", "dataset": "bitbrains_fast_storage/5T", "term": "long", "freq": "5T", "prediction_length": 720, "seasonality": 288, "n_variates": 2, "n_instances": 182, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.7621650331510523, "wql": 0.5470072015588816, "wsql_by_level": [0.2968334547515154, 0.47999623085957555, 0.5998344678722822, 0.6776370093847325, 0.7144447053365166, 0.7064816013600345, 0.6484886354250166, 0.5162975409801511, 0.2830511680601104], "n_valid_labels": 262080, "n_masked_labels": 0, "mae_median": 425.5427895169757, "n_mase_elements": 254880, "n_seasonal_error_zero": 10, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8682223785356328, "wql": 0.7114087638496536}}, {"config_id": "bitbrains_fast_storage__H__short", "leaderboard_key": "bitbrains_fast_storage/H/short", "dataset": "bitbrains_fast_storage/H", "term": "short", "freq": "H", "prediction_length": 48, "seasonality": 24, "n_variates": 2, "n_instances": 188, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.8782510282113798, "wql": 0.6249780145611263, "wsql_by_level": [0.3414958373352421, 0.6040678304015741, 0.7731398110158448, 0.8418376720783018, 0.8374039796915037, 0.7631582332493825, 0.644374016270727, 0.49883149361525647, 0.32049325739230455], "n_valid_labels": 18042, "n_masked_labels": 6, "mae_median": 491.7578944897342, "n_mase_elements": 17466, "n_seasonal_error_zero": 12, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8937180939836543, "wql": 0.878934753600448}}, {"config_id": "bitbrains_rnd__T__short", "leaderboard_key": "bitbrains_rnd/5T/short", "dataset": "bitbrains_rnd/5T", "term": "short", "freq": "5T", "prediction_length": 48, "seasonality": 288, "n_variates": 2, "n_instances": 186, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.9855778026707239, "wql": 0.7002636946401669, "wsql_by_level": [0.15854831614964782, 0.3073962918894868, 0.4502861740964458, 0.5910852639913861, 0.7274652658554417, 0.8632444042222703, 0.9908741198357276, 1.103960010980373, 1.1095134047407234], "n_valid_labels": 17856, "n_masked_labels": 0, "mae_median": 262.20216032318325, "n_mase_elements": 17376, "n_seasonal_error_zero": 10, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8265802855038655, "wql": 0.5333497188237823}}, {"config_id": "bitbrains_rnd__T__medium", "leaderboard_key": "bitbrains_rnd/5T/medium", "dataset": "bitbrains_rnd/5T", "term": "medium", "freq": "5T", "prediction_length": 480, "seasonality": 288, "n_variates": 2, "n_instances": 190, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 1.1074614495310078, "wql": 0.4739412828125972, "wsql_by_level": [0.13849494472882778, 0.2729460200568033, 0.3875664515868339, 0.48722993987297364, 0.5719146863149911, 0.6424389237087188, 0.6892778516686807, 0.6756300539499801, 0.39997267342556553], "n_valid_labels": 181300, "n_masked_labels": 1100, "mae_median": 165.4849557380094, "n_mase_elements": 177590, "n_seasonal_error_zero": 2, "n_seasonal_error_nan": 8}, "relative": {"mase": 0.8509824401976337, "wql": 0.5825912354590667}}, {"config_id": "bitbrains_rnd__T__long", "leaderboard_key": "bitbrains_rnd/5T/long", "dataset": "bitbrains_rnd/5T", "term": "long", "freq": "5T", "prediction_length": 720, "seasonality": 288, "n_variates": 2, "n_instances": 183, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.7321179294190999, "wql": 0.7556704428037802, "wsql_by_level": [0.43086307309383404, 0.7640450817796286, 0.895850551794913, 0.9424746594341056, 0.9326704461007479, 0.8834700216740905, 0.7873138681072934, 0.6612523873598382, 0.5030938958895704], "n_valid_labels": 261076, "n_masked_labels": 2444, "mae_median": 173.10021903609947, "n_mase_elements": 257668, "n_seasonal_error_zero": 4, "n_seasonal_error_nan": 4}, "relative": {"mase": 0.9271972181904886, "wql": 0.4452092664511326}}, {"config_id": "bitbrains_rnd__H__short", "leaderboard_key": "bitbrains_rnd/H/short", "dataset": "bitbrains_rnd/H", "term": "short", "freq": "H", "prediction_length": 48, "seasonality": 24, "n_variates": 2, "n_instances": 187, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 1.111504471519387, "wql": 0.4003264076306634, "wsql_by_level": [0.14237119303408338, 0.25782396189694645, 0.3626456361992451, 0.43885336274804965, 0.48894998551374863, 0.5224329418408078, 0.5128626702070823, 0.49009149966704707, 0.38690641756895994], "n_valid_labels": 17622, "n_masked_labels": 330, "mae_median": 149.52690210467262, "n_mase_elements": 16992, "n_seasonal_error_zero": 6, "n_seasonal_error_nan": 14}, "relative": {"mase": 0.8684486324844234, "wql": 0.481850025263346}}, {"config_id": "bizitobs_application__S__short", "leaderboard_key": "bizitobs_application/10S/short", "dataset": "bizitobs_application", "term": "short", "freq": "10S", "prediction_length": 60, "seasonality": 360, "n_variates": 2, "n_instances": 1, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.7019078777385723, "wql": 0.007163020842642658, "wsql_by_level": [0.0048323953217077175, 0.007428689548045082, 0.00880632022869619, 0.00922815800829287, 0.009240588644501887, 0.008852255472677557, 0.007735533214100556, 0.005460030581390467, 0.002883216564371579], "n_valid_labels": 120, "n_masked_labels": 0, "mae_median": 237.88245471318564, "n_mase_elements": 120, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.9708410885426743, "wql": 0.6045244118723399}}, {"config_id": "bizitobs_application__S__medium", "leaderboard_key": "bizitobs_application/10S/medium", "dataset": "bizitobs_application", "term": "medium", "freq": "10S", "prediction_length": 600, "seasonality": 360, "n_variates": 2, "n_instances": 1, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.6817085244875766, "wql": 0.00908305176245739, "wsql_by_level": [0.0062095942843725885, 0.008970014505947982, 0.01051934205054723, 0.011257378777146233, 0.011346542971008068, 0.010808225766877181, 0.009729047591349151, 0.007907085317193958, 0.005000234597674131], "n_valid_labels": 1200, "n_masked_labels": 0, "mae_median": 278.2595032596588, "n_mase_elements": 1200, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8879461934578673, "wql": 0.7616154085572984}}, {"config_id": "bizitobs_application__S__long", "leaderboard_key": "bizitobs_application/10S/long", "dataset": "bizitobs_application", "term": "long", "freq": "10S", "prediction_length": 900, "seasonality": 360, "n_variates": 2, "n_instances": 1, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.47039677164969534, "wql": 0.0069275774196375945, "wsql_by_level": [0.004539485797206928, 0.006361344864985718, 0.007201870509530482, 0.007636722525801759, 0.008063931285277545, 0.008292973433903702, 0.008112719388224904, 0.007130441459236186, 0.005008707512571115], "n_valid_labels": 1800, "n_masked_labels": 0, "mae_median": 192.6971052148607, "n_mase_elements": 1800, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8535136868258836, "wql": 0.5544770786481568}}, {"config_id": "bizitobs_service__S__short", "leaderboard_key": "bizitobs_service/10S/short", "dataset": "bizitobs_service", "term": "short", "freq": "10S", "prediction_length": 60, "seasonality": 360, "n_variates": 2, "n_instances": 21, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.4949962544597988, "wql": 0.006549953409254277, "wsql_by_level": [0.004442757460789555, 0.006606321187581675, 0.007784137504677365, 0.008214760553852686, 0.008319303075487582, 0.00793713373963574, 0.007023749197421014, 0.005407263156896729, 0.003214154806946143], "n_valid_labels": 2520, "n_masked_labels": 0, "mae_median": 11.094890022940106, "n_mase_elements": 2520, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.6821867814552184, "wql": 0.35568480632273597}}, {"config_id": "bizitobs_service__S__medium", "leaderboard_key": "bizitobs_service/10S/medium", "dataset": "bizitobs_service", "term": "medium", "freq": "10S", "prediction_length": 600, "seasonality": 360, "n_variates": 2, "n_instances": 21, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.7127825594019868, "wql": 0.01067594117051045, "wsql_by_level": [0.007043672747066382, 0.010247076607099828, 0.01214680903015517, 0.013113579326992524, 0.013293415891855499, 0.012830367828236839, 0.01160501471039321, 0.009510649916310737, 0.006292884476483866], "n_valid_labels": 25200, "n_masked_labels": 0, "mae_median": 17.058138304800977, "n_mase_elements": 25200, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.884530481811879, "wql": 0.48693155408691524}}, {"config_id": "bizitobs_service__S__long", "leaderboard_key": "bizitobs_service/10S/long", "dataset": "bizitobs_service", "term": "long", "freq": "10S", "prediction_length": 900, "seasonality": 360, "n_variates": 2, "n_instances": 21, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.5855097987971744, "wql": 0.008541787992337763, "wsql_by_level": [0.005347169484117975, 0.00742687531847613, 0.008760381786199532, 0.009707581076710757, 0.010341851103091921, 0.010532398012756468, 0.010036556837851937, 0.00865577178193952, 0.006067506529895632], "n_valid_labels": 37800, "n_masked_labels": 0, "mae_median": 13.017232756930053, "n_mase_elements": 37800, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8298664374836866, "wql": 0.36298022285353765}}, {"config_id": "bizitobs_l2c__T__short", "leaderboard_key": "bizitobs_l2c/5T/short", "dataset": "bizitobs_l2c/5T", "term": "short", "freq": "5T", "prediction_length": 48, "seasonality": 288, "n_variates": 7, "n_instances": 1, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.22382198847707513, "wql": 0.08186275444872211, "wsql_by_level": [0.037408019609334854, 0.0587024836969484, 0.07274663658623153, 0.08546096903659495, 0.09553181181020633, 0.1023533552907774, 0.10414736405542024, 0.09814263389813305, 0.0822715160548523], "n_valid_labels": 336, "n_masked_labels": 0, "mae_median": 2.464862904378346, "n_mase_elements": 336, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.3141628202629681, "wql": 0.40902169334995897}}, {"config_id": "bizitobs_l2c__T__medium", "leaderboard_key": "bizitobs_l2c/5T/medium", "dataset": "bizitobs_l2c/5T", "term": "medium", "freq": "5T", "prediction_length": 480, "seasonality": 288, "n_variates": 7, "n_instances": 1, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.4407966027857633, "wql": 0.520422498817802, "wsql_by_level": [0.22978402310712473, 0.36165335731056003, 0.46592120999148956, 0.5478746493831328, 0.6186311495874676, 0.6448182830937803, 0.6550486809870452, 0.6207646219800333, 0.5393065139195853], "n_valid_labels": 3360, "n_masked_labels": 0, "mae_median": 4.267838733288504, "n_mase_elements": 3360, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.4960515060225297, "wql": 0.41974068372145845}}, {"config_id": "bizitobs_l2c__T__long", "leaderboard_key": "bizitobs_l2c/5T/long", "dataset": "bizitobs_l2c/5T", "term": "long", "freq": "5T", "prediction_length": 720, "seasonality": 288, "n_variates": 7, "n_instances": 1, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.3944093443876808, "wql": 0.670821020204813, "wsql_by_level": [0.20348635948821533, 0.4055405210610619, 0.5543135992200804, 0.673438203664718, 0.7792245439047436, 0.8435686573300065, 0.8817232379021219, 0.879307778029058, 0.8167862812433121], "n_valid_labels": 5040, "n_masked_labels": 0, "mae_median": 3.6977173183408993, "n_mase_elements": 5040, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.2558446503954267, "wql": 0.276780534576553}}, {"config_id": "bizitobs_l2c__H__short", "leaderboard_key": "bizitobs_l2c/H/short", "dataset": "bizitobs_l2c/H", "term": "short", "freq": "H", "prediction_length": 48, "seasonality": 24, "n_variates": 7, "n_instances": 1, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.40004485130097434, "wql": 0.9345752346818303, "wsql_by_level": [0.9007532928297839, 0.9956025797043763, 0.9990633699137654, 1.0538246849540982, 1.051375534094755, 1.0057298018953584, 0.930539836300793, 0.8177558526503745, 0.6565321597931688], "n_valid_labels": 336, "n_masked_labels": 0, "mae_median": 3.639788052355427, "n_mase_elements": 336, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.5082574591296873, "wql": 0.4082143613285467}}, {"config_id": "bizitobs_l2c__H__medium", "leaderboard_key": "bizitobs_l2c/H/medium", "dataset": "bizitobs_l2c/H", "term": "medium", "freq": "H", "prediction_length": 480, "seasonality": 24, "n_variates": 7, "n_instances": 1, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.5221058974261685, "wql": 0.27240897937295977, "wsql_by_level": [0.13013451384900276, 0.22117940454590101, 0.2751250741357467, 0.3115947965021312, 0.3368170295202441, 0.3416225788178767, 0.3309159542200145, 0.29263050398847507, 0.2116609587772456], "n_valid_labels": 3360, "n_masked_labels": 0, "mae_median": 4.964060758289304, "n_mase_elements": 3360, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.37993860849764666, "wql": 0.3088321968073675}}, {"config_id": "bizitobs_l2c__H__long", "leaderboard_key": "bizitobs_l2c/H/long", "dataset": "bizitobs_l2c/H", "term": "long", "freq": "H", "prediction_length": 720, "seasonality": 24, "n_variates": 7, "n_instances": 1, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.5968389877417738, "wql": 0.3011822329583366, "wsql_by_level": [0.14526495877212975, 0.25054966257046185, 0.31308607361678453, 0.34185030922902476, 0.3954609389648448, 0.396417300782174, 0.3591385200219045, 0.2966344116703586, 0.21223792099734698], "n_valid_labels": 5040, "n_masked_labels": 0, "mae_median": 5.701087109615938, "n_mase_elements": 5040, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.4490006084453436, "wql": 0.28811590287425715}}], "cpu_seconds": 1.1467377638909966, "members": ["/workspace/research/backcast_evals/weekly_slow_ar_delta3k", "/workspace/research/backcast_evals/patch8_ema6000", "/workspace/research/backcast_evals/split_patch_ema12000"], "member_checkpoint_hashes": ["094c7c694406075967f392a0d9ac1146bac984a90ab468c59d660a1b92fa7ba2", "308389b7217c080af9eb185559d4ee3cafa0f3e0f8c4dd8f5526b68198c89988", "1a2fb20a9fb5cae6526f2e36ea47559626bece78fd9c284899836505030ae9fe"], "weights": [0.3333333333333333, 0.3333333333333333, 0.3333333333333333], "selection_only": true, "cutoff": "valid_backcast", "E102skill": 0.3397943577904946, "difference": 0.0004326583880599477} +{"composition": "equal quantile mean after each member applies its own fixed rules", "skill_score": 0.36494952219954613, "rel_mase_gmean": 0.7652921044693154, "rel_wql_gmean": 0.5269740887164148, "groups": {"term": {"short": 0.35231864866246176, "medium": 0.39298299792182056, "long": 0.3687947028461305}, "domain": {"Econ/Fin": 0.12172660354585485, "Energy": 0.24152286056809502, "Healthcare": 0.3524592910484051, "Nature": 0.4788459673908466, "Sales": 0.5562200646344707, "Transport": 0.42520099368193554, "Web/CloudOps": 0.4370802681174131}, "freq": {"A-DEC": 0.3367893179024516, "Q-DEC": 0.15679817162375864, "M": 0.16573415798569047, "W-SUN": 0.06797376532770616, "D": 0.43063552907975755, "H": 0.3947520428143986, "15T": 0.10816823329454162, "W-FRI": 0.15582466897824498, "10T": 0.5091318264307638, "W-TUE": 0.09072022101156729, "W-THU": 0.35383995123098644, "W-WED": 0.563658397919643, "5T": 0.47248290588277875, "10S": 0.28530046798638997}}, "configs": [{"config_id": "m4_yearly__A__short", "leaderboard_key": "m4_yearly/A/short", "dataset": "m4_yearly", "term": "short", "freq": "A-DEC", "prediction_length": 6, "seasonality": 1, "n_variates": 1, "n_instances": 117, "domain": "Econ/Fin", "n_cohorts": 3, "skipped_series": 235, "dropped_containers": 11, "metrics": {"mase": 2.9310956808598876, "wql": 0.1120823955071256, "wsql_by_level": [0.05644202792579237, 0.0905053717375648, 0.11408590505170658, 0.12930253744442674, 0.13960575186697724, 0.1391001159288124, 0.13444935326991628, 0.11877412643252444, 0.08647636990640943], "n_valid_labels": 702, "n_masked_labels": 0, "mae_median": 497.2042572803986, "n_mase_elements": 702, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.5810671768613991, "wql": 0.7569665373702766}}, {"config_id": "m4_quarterly__Q__short", "leaderboard_key": "m4_quarterly/Q/short", "dataset": "m4_quarterly", "term": "short", "freq": "Q-DEC", "prediction_length": 8, "seasonality": 4, "n_variates": 1, "n_instances": 187, "domain": "Econ/Fin", "n_cohorts": 3, "dropped_containers": 95, "metrics": {"mase": 1.6478859979869742, "wql": 0.10829988142949554, "wsql_by_level": [0.056003642707730145, 0.08983228427039322, 0.11123343407784438, 0.12480187246088971, 0.1322823443816346, 0.13234772923365642, 0.12698538731234796, 0.11318215410203093, 0.0880300843189324], "n_valid_labels": 1496, "n_masked_labels": 0, "mae_median": 658.2217914356905, "n_mase_elements": 1496, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8236951165880326, "wql": 0.8631704972613484}}, {"config_id": "m4_monthly__M__short", "leaderboard_key": "m4_monthly/M/short", "dataset": "m4_monthly", "term": "short", "freq": "M", "prediction_length": 18, "seasonality": 12, "n_variates": 1, "n_instances": 192, "domain": "Econ/Fin", "n_cohorts": 3, "dropped_containers": 499, "metrics": {"mase": 1.2065657349170607, "wql": 0.11616278210500203, "wsql_by_level": [0.06629914650161015, 0.10673308107406702, 0.1299410869238568, 0.1420671300945937, 0.146201258287822, 0.14056828824772014, 0.12820119810683464, 0.10795273317008502, 0.07750111653842881], "n_valid_labels": 3456, "n_masked_labels": 0, "mae_median": 685.2708041403029, "n_mase_elements": 3438, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 1}, "relative": {"mase": 0.8023830743189523, "wql": 0.8362369063369826}}, {"config_id": "m4_weekly__W__short", "leaderboard_key": "m4_weekly/W/short", "dataset": "m4_weekly", "term": "short", "freq": "W-SUN", "prediction_length": 13, "seasonality": 1, "n_variates": 1, "n_instances": 192, "domain": "Econ/Fin", "n_cohorts": 2, "dropped_containers": 4, "metrics": {"mase": 3.4120286945915503, "wql": 0.06543789387564042, "wsql_by_level": [0.03568810513079098, 0.05573298663766547, 0.06941860827544521, 0.07742239160518294, 0.08155154894880773, 0.0820178043222598, 0.07725284580870735, 0.06601944523015421, 0.0438373089217501], "n_valid_labels": 2496, "n_masked_labels": 0, "mae_median": 421.99554291443945, "n_mase_elements": 2496, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 1.055884538770714, "wql": 0.8226968671486973}}, {"config_id": "m4_daily__D__short", "leaderboard_key": "m4_daily/D/short", "dataset": "m4_daily", "term": "short", "freq": "D", "prediction_length": 14, "seasonality": 1, "n_variates": 1, "n_instances": 192, "domain": "Econ/Fin", "n_cohorts": 2, "dropped_containers": 23, "metrics": {"mase": 3.198081444911027, "wql": 0.017990809522792868, "wsql_by_level": [0.011334370410659413, 0.01708152964339461, 0.020489328746587362, 0.02218487101773786, 0.022524596765804428, 0.02176468750400583, 0.01964995836602746, 0.01603944649549975, 0.010848496755419105], "n_valid_labels": 2688, "n_masked_labels": 0, "mae_median": 160.98624503044854, "n_mase_elements": 2688, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 1.104570424679131, "wql": 1.1209370715015687}}, {"config_id": "m4_hourly__H__short", "leaderboard_key": "m4_hourly/H/short", "dataset": "m4_hourly", "term": "short", "freq": "H", "prediction_length": 48, "seasonality": 24, "n_variates": 1, "n_instances": 192, "domain": "Econ/Fin", "n_cohorts": 1, "metrics": {"mase": 1.2051508031734401, "wql": 0.035455791086468784, "wsql_by_level": [0.022635859061656737, 0.031868857116692025, 0.03783818151612068, 0.042129871543003294, 0.044377254084510626, 0.043981818274749666, 0.04074230287417112, 0.03367133925465812, 0.021856636052656822], "n_valid_labels": 9216, "n_masked_labels": 0, "mae_median": 324.76857741891257, "n_mase_elements": 9216, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.9686625638484314, "wql": 0.9635541079372303}}, {"config_id": "electricity__T__short", "leaderboard_key": "electricity/15T/short", "dataset": "electricity/15T", "term": "short", "freq": "15T", "prediction_length": 48, "seasonality": 96, "n_variates": 1, "n_instances": 192, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.061137228646092, "wql": 0.04591758165497868, "wsql_by_level": [0.026081163297573977, 0.040577145372865414, 0.04973832461946903, 0.05510200546983552, 0.057696196719431804, 0.057247755878974904, 0.05347010788765257, 0.044527117196815375, 0.028818418452189545], "n_valid_labels": 9216, "n_masked_labels": 0, "mae_median": 31.861565152073226, "n_mase_elements": 9168, "n_seasonal_error_zero": 1, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.9505070462344758, "wql": 0.9362673863304282}}, {"config_id": "electricity__T__medium", "leaderboard_key": "electricity/15T/medium", "dataset": "electricity/15T", "term": "medium", "freq": "15T", "prediction_length": 480, "seasonality": 96, "n_variates": 1, "n_instances": 192, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 0.7747484929662815, "wql": 0.05309715861514194, "wsql_by_level": [0.030180252210181283, 0.04596581504333987, 0.05636227583964971, 0.06297520734873935, 0.06639451806383717, 0.06627160807306913, 0.06197078540317996, 0.05236928965253693, 0.035384675901744045], "n_valid_labels": 92160, "n_masked_labels": 0, "mae_median": 37.07979084028054, "n_mase_elements": 92160, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.7208015867064266, "wql": 0.6017494925974258}}, {"config_id": "electricity__T__long", "leaderboard_key": "electricity/15T/long", "dataset": "electricity/15T", "term": "long", "freq": "15T", "prediction_length": 720, "seasonality": 96, "n_variates": 1, "n_instances": 192, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 0.9631048407873014, "wql": 0.06530777451639308, "wsql_by_level": [0.03868243596033826, 0.05779712956476083, 0.07041444297527456, 0.07805245423605922, 0.08156683542619748, 0.0810059250720502, 0.07510093629409416, 0.06302772507444722, 0.04212208604431579], "n_valid_labels": 138240, "n_masked_labels": 0, "mae_median": 54.271278551763494, "n_mase_elements": 137520, "n_seasonal_error_zero": 1, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8373763327252927, "wql": 0.682692595415901}}, {"config_id": "electricity__H__short", "leaderboard_key": "electricity/H/short", "dataset": "electricity/H", "term": "short", "freq": "H", "prediction_length": 48, "seasonality": 24, "n_variates": 1, "n_instances": 192, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.1860486086671909, "wql": 0.12013049348037932, "wsql_by_level": [0.096727096738415, 0.13408846786092338, 0.150329087482554, 0.15458854056498766, 0.14894639634645762, 0.13563981815790846, 0.11593386248863469, 0.08978187340561354, 0.05513929827791953], "n_valid_labels": 9216, "n_masked_labels": 0, "mae_median": 491.3261660417807, "n_mase_elements": 9216, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.9624248739757734, "wql": 1.2265362305458265}}, {"config_id": "electricity__H__medium", "leaderboard_key": "electricity/H/medium", "dataset": "electricity/H", "term": "medium", "freq": "H", "prediction_length": 480, "seasonality": 24, "n_variates": 1, "n_instances": 191, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.0450184810481011, "wql": 0.06694406280534905, "wsql_by_level": [0.04150106060160619, 0.06102083502791941, 0.07311294372802071, 0.07970163345112803, 0.08197371341192622, 0.08039645950436046, 0.07485210114064052, 0.06415357520889897, 0.04578424317364093], "n_valid_labels": 91680, "n_masked_labels": 0, "mae_median": 130.55320361785553, "n_mase_elements": 91680, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8449165096305236, "wql": 0.5871682426273181}}, {"config_id": "electricity__H__long", "leaderboard_key": "electricity/H/long", "dataset": "electricity/H", "term": "long", "freq": "H", "prediction_length": 720, "seasonality": 24, "n_variates": 1, "n_instances": 192, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 0.9998993403902402, "wql": 0.06818011784879856, "wsql_by_level": [0.03836064953172228, 0.05651673040533495, 0.06909567595139311, 0.07748233882709064, 0.0822167438527255, 0.08330189576376698, 0.08018491768541545, 0.07164780265095338, 0.05481430597078458], "n_valid_labels": 138240, "n_masked_labels": 0, "mae_median": 156.94477863154995, "n_mase_elements": 138240, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8216033574470202, "wql": 0.47852007257023116}}, {"config_id": "electricity__D__short", "leaderboard_key": "electricity/D/short", "dataset": "electricity/D", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 1, "n_instances": 192, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.1131579576678026, "wql": 0.04849914537664307, "wsql_by_level": [0.028828026115528017, 0.04565428828905595, 0.05588957267330372, 0.06014304029525304, 0.06103558996707249, 0.05887061087185514, 0.053607789451018385, 0.043479301282370944, 0.028984089444329876], "n_valid_labels": 5760, "n_masked_labels": 0, "mae_median": 3925.439582457104, "n_mase_elements": 5760, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.7985622713150854, "wql": 0.556481621909801}}, {"config_id": "electricity__W__short", "leaderboard_key": "electricity/W/short", "dataset": "electricity/W", "term": "short", "freq": "W-FRI", "prediction_length": 8, "seasonality": 1, "n_variates": 1, "n_instances": 191, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.0793149662245882, "wql": 0.04086397317219995, "wsql_by_level": [0.022948895531247317, 0.03184474849617729, 0.037373845841537426, 0.04288584810894898, 0.0465127528640773, 0.0479516852887964, 0.049952008912604984, 0.04849472174460474, 0.039811251761805055], "n_valid_labels": 1511, "n_masked_labels": 17, "mae_median": 19573.32892012328, "n_mase_elements": 1488, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 5}, "relative": {"mase": 0.8656625303046482, "wql": 0.6713736379674927}}, {"config_id": "solar__T__short", "leaderboard_key": "solar/10T/short", "dataset": "solar/10T", "term": "short", "freq": "10T", "prediction_length": 48, "seasonality": 144, "n_variates": 1, "n_instances": 137, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 0.19084156010689463, "wql": 0.4343575072579486, "wsql_by_level": [0.20779253832517464, 0.3849556409106096, 0.48689698493658684, 0.5496040418311166, 0.5736991639310752, 0.5627726299759063, 0.5065792133568167, 0.3869834899753305, 0.24993386207892077], "n_valid_labels": 6576, "n_masked_labels": 0, "mae_median": 0.43314461463919574, "n_mase_elements": 6576, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.772953237778248, "wql": 0.2251192058640265}}, {"config_id": "solar__T__medium", "leaderboard_key": "solar/10T/medium", "dataset": "solar/10T", "term": "medium", "freq": "10T", "prediction_length": 480, "seasonality": 144, "n_variates": 1, "n_instances": 137, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.035240092542235, "wql": 0.2947679001329638, "wsql_by_level": [0.19672717626798267, 0.3161935250005014, 0.37869650273195526, 0.3992906209489416, 0.3845364049578158, 0.3504917996538294, 0.29357824325670967, 0.21489950037823272, 0.11849732800070568], "n_valid_labels": 65760, "n_masked_labels": 0, "mae_median": 2.1841585941461465, "n_mase_elements": 65760, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8174635334771951, "wql": 0.5190789613049622}}, {"config_id": "solar__T__long", "leaderboard_key": "solar/10T/long", "dataset": "solar/10T", "term": "long", "freq": "10T", "prediction_length": 720, "seasonality": 144, "n_variates": 1, "n_instances": 137, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.2519314274970368, "wql": 0.446648833448481, "wsql_by_level": [0.37457636523739346, 0.5490203140498611, 0.5980099238426476, 0.5891475795016288, 0.5450058799385539, 0.47844673954273, 0.39681956532878426, 0.299551662152704, 0.18926147144202576], "n_valid_labels": 98640, "n_masked_labels": 0, "mae_median": 2.5721531510475453, "n_mase_elements": 98640, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8011385519783164, "wql": 0.5653112957646796}}, {"config_id": "solar__H__short", "leaderboard_key": "solar/H/short", "dataset": "solar/H", "term": "short", "freq": "H", "prediction_length": 48, "seasonality": 24, "n_variates": 1, "n_instances": 137, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.2511227283133475, "wql": 0.6311422099652426, "wsql_by_level": [0.5670637267850912, 0.8627076067697685, 0.8957423054194338, 0.8377163362117935, 0.742347572107844, 0.6315121972069098, 0.5094404688815857, 0.3863295401040202, 0.24742013620073655], "n_valid_labels": 6576, "n_masked_labels": 0, "mae_median": 16.6063073140262, "n_mase_elements": 6576, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8899817189144198, "wql": 0.6968449432343201}}, {"config_id": "solar__H__medium", "leaderboard_key": "solar/H/medium", "dataset": "solar/H", "term": "medium", "freq": "H", "prediction_length": 480, "seasonality": 24, "n_variates": 1, "n_instances": 137, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 0.9325988326921647, "wql": 0.2717962382032388, "wsql_by_level": [0.2388186398097979, 0.3059638219945535, 0.33189523266564636, 0.3363412715892501, 0.3268453555834686, 0.30505546211175677, 0.26838445234232905, 0.20983039989810057, 0.12303150783424639], "n_valid_labels": 65760, "n_masked_labels": 0, "mae_median": 12.333341748959446, "n_mase_elements": 65760, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.930396450637462, "wql": 0.3948994384819965}}, {"config_id": "solar__H__long", "leaderboard_key": "solar/H/long", "dataset": "solar/H", "term": "long", "freq": "H", "prediction_length": 720, "seasonality": 24, "n_variates": 1, "n_instances": 137, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 0.7256882690377002, "wql": 0.18953329380033834, "wsql_by_level": [0.129437628172716, 0.19180382598905768, 0.2248972203588008, 0.23937464205632103, 0.2393617476759598, 0.22600921676530114, 0.19935205530955077, 0.1577053847749484, 0.09785792310038957], "n_valid_labels": 98640, "n_masked_labels": 0, "mae_median": 9.873129255650301, "n_mase_elements": 98640, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8624529299069983, "wql": 0.26015448798234825}}, {"config_id": "solar__D__short", "leaderboard_key": "solar/D/short", "dataset": "solar/D", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 1, "n_instances": 137, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 0.577381964419038, "wql": 0.12152042589107188, "wsql_by_level": [0.08003448281021071, 0.11780832849619896, 0.14114201439510723, 0.15296349702749676, 0.15540871822133015, 0.14868468500616785, 0.1310813522291261, 0.1030661446792501, 0.06349461015475899], "n_valid_labels": 4110, "n_masked_labels": 0, "mae_median": 153.8461724608484, "n_mase_elements": 4110, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.7416265839767592, "wql": 0.3262377109510743}}, {"config_id": "solar__W__short", "leaderboard_key": "solar/W/short", "dataset": "solar/W", "term": "short", "freq": "W-FRI", "prediction_length": 8, "seasonality": 1, "n_variates": 1, "n_instances": 137, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.409378944950785, "wql": 0.13747223830275362, "wsql_by_level": [0.09879871761569382, 0.13926128338425484, 0.1642148838804733, 0.17956636196376843, 0.18085820246876824, 0.17296996304258708, 0.1497466687389315, 0.10583791387032208, 0.04599614975998329], "n_valid_labels": 1096, "n_masked_labels": 0, "mae_median": 1462.9799609775962, "n_mase_elements": 1096, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.944606579751424, "wql": 0.9250532999889218}}, {"config_id": "hospital__M__short", "leaderboard_key": "hospital/M/short", "dataset": "hospital", "term": "short", "freq": "M", "prediction_length": 12, "seasonality": 12, "n_variates": 1, "n_instances": 192, "domain": "Healthcare", "n_cohorts": 1, "metrics": {"mase": 1.1872953754864706, "wql": 0.09033552842454197, "wsql_by_level": [0.05327101396064397, 0.08275308836121681, 0.10064665406714206, 0.1115716767764172, 0.11642451859276132, 0.11378717724161538, 0.10397332258146984, 0.08258679382620689, 0.04800551041340429], "n_valid_labels": 2304, "n_masked_labels": 0, "mae_median": 39.48999405755765, "n_mase_elements": 2304, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.9163974870962155, "wql": 1.0227912518950282}}, {"config_id": "covid_deaths__D__short", "leaderboard_key": "covid_deaths/D/short", "dataset": "covid_deaths", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 1, "n_instances": 192, "domain": "Healthcare", "n_cohorts": 1, "metrics": {"mase": 48.12474977081638, "wql": 0.17856830413663605, "wsql_by_level": [0.10029766305721693, 0.15761679068042614, 0.19909568121718552, 0.21568803436801545, 0.20598700534658185, 0.17979196516825632, 0.16843612027495572, 0.19314640964449412, 0.18705506747259212], "n_valid_labels": 5760, "n_masked_labels": 0, "mae_median": 140.89114211581312, "n_mase_elements": 4560, "n_seasonal_error_zero": 40, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.9664090981300282, "wql": 0.6744684525277332}}, {"config_id": "us_births__D__short", "leaderboard_key": "us_births/D/short", "dataset": "us_births/D", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 1, "n_instances": 1, "domain": "Healthcare", "n_cohorts": 1, "metrics": {"mase": 0.32740795206129847, "wql": 0.019424147474869674, "wsql_by_level": [0.019445241568923403, 0.02336107806595078, 0.024346462543590804, 0.022189927979153222, 0.01986436201877285, 0.018588094716870982, 0.01862441358842597, 0.01624212076957937, 0.012155626022559683], "n_valid_labels": 30, "n_masked_labels": 0, "mae_median": 215.50846354166666, "n_mase_elements": 30, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.2451931851581462, "wql": 0.19108750531666133}}, {"config_id": "us_births__M__short", "leaderboard_key": "us_births/M/short", "dataset": "us_births/M", "term": "short", "freq": "M", "prediction_length": 12, "seasonality": 12, "n_variates": 1, "n_instances": 1, "domain": "Healthcare", "n_cohorts": 1, "metrics": {"mase": 0.5608100261546994, "wql": 0.012788781420142236, "wsql_by_level": [0.006231326829633014, 0.010045851851306103, 0.013142028587465819, 0.016606814968716254, 0.01778984021264595, 0.017387134849044243, 0.015351196474565468, 0.011324881306241222, 0.007219957701662052], "n_valid_labels": 12, "n_masked_labels": 0, "mae_median": 5432.84375, "n_mase_elements": 12, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.7526712423658174, "wql": 0.7276728033996893}}, {"config_id": "us_births__W__short", "leaderboard_key": "us_births/W/short", "dataset": "us_births/W", "term": "short", "freq": "W-TUE", "prediction_length": 8, "seasonality": 1, "n_variates": 1, "n_instances": 1, "domain": "Healthcare", "n_cohorts": 1, "metrics": {"mase": 1.1354599702535948, "wql": 0.01303864029036468, "wsql_by_level": [0.007080270651410994, 0.013386538091011058, 0.016205541384536514, 0.016823123103362852, 0.016890607474384648, 0.01559078204241586, 0.013600947329397275, 0.010634957345017647, 0.007134995191745283], "n_valid_labels": 8, "n_masked_labels": 0, "mae_median": 1227.296875, "n_mase_elements": 8, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.9935615260068812, "wql": 0.8321474763622507}}, {"config_id": "saugeenday__D__short", "leaderboard_key": "saugeen/D/short", "dataset": "saugeenday/D", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 1, "n_instances": 1, "domain": "Nature", "n_cohorts": 1, "metrics": {"mase": 1.6507610560614754, "wql": 0.3521973340896551, "wsql_by_level": [0.12364373939688048, 0.21335570906115603, 0.2886726770445971, 0.3680583703859994, 0.43830693765189266, 0.4855708578366647, 0.4964484369014292, 0.44846730034139826, 0.3072519781868776], "n_valid_labels": 30, "n_masked_labels": 0, "mae_median": 7.373783683776855, "n_mase_elements": 30, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.969809350802278, "wql": 0.41490670800427915}}, {"config_id": "saugeenday__M__short", "leaderboard_key": "saugeen/M/short", "dataset": "saugeenday/M", "term": "short", "freq": "M", "prediction_length": 12, "seasonality": 12, "n_variates": 1, "n_instances": 1, "domain": "Nature", "n_cohorts": 1, "metrics": {"mase": 0.6558419406565725, "wql": 0.367224836950706, "wsql_by_level": [0.14533155878930448, 0.2609865011154885, 0.35636153526869563, 0.40374047557186615, 0.42543790813955895, 0.4503184706943847, 0.48092014120937, 0.4654226900962902, 0.31650425167139495], "n_valid_labels": 12, "n_masked_labels": 0, "mae_median": 11.517845710118612, "n_mase_elements": 12, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.7959641353687992, "wql": 0.8558915681597892}}, {"config_id": "saugeenday__W__short", "leaderboard_key": "saugeen/W/short", "dataset": "saugeenday/W", "term": "short", "freq": "W-THU", "prediction_length": 8, "seasonality": 1, "n_variates": 1, "n_instances": 1, "domain": "Nature", "n_cohorts": 1, "metrics": {"mase": 0.2623838915907404, "wql": 0.23391760552191043, "wsql_by_level": [0.09660638083203833, 0.15169760153288214, 0.19252882576794153, 0.2191029896774264, 0.24334744767371147, 0.27529677515189954, 0.3370562819009359, 0.3534970620350443, 0.23612508512531416], "n_valid_labels": 8, "n_masked_labels": 0, "mae_median": 3.1556949615478516, "n_mase_elements": 8, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.511931989647992, "wql": 0.20502447442064026}}, {"config_id": "temperature_rain_with_missing__D__short", "leaderboard_key": "temperature_rain/D/short", "dataset": "temperature_rain_with_missing", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 1, "n_instances": 192, "domain": "Nature", "n_cohorts": 1, "metrics": {"mase": 0.6836916958010785, "wql": 0.5503255914030781, "wsql_by_level": [0.18114413832866588, 0.3458062364826655, 0.48865794463237877, 0.6058729128405423, 0.6908055643666081, 0.7396425302133325, 0.7430349579054545, 0.6656114143928422, 0.4923546234652134], "n_valid_labels": 5732, "n_masked_labels": 28, "mae_median": 4.245014685762957, "n_mase_elements": 5732, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.718970185522625, "wql": 0.3548679503623587}}, {"config_id": "kdd_cup_2018_with_missing__H__short", "leaderboard_key": "kdd_cup_2018/H/short", "dataset": "kdd_cup_2018_with_missing/H", "term": "short", "freq": "H", "prediction_length": 48, "seasonality": 24, "n_variates": 1, "n_instances": 176, "domain": "Nature", "n_cohorts": 2, "metrics": {"mase": 0.7467770125483886, "wql": 0.5260201815505297, "wsql_by_level": [0.21229944031244535, 0.3721926050004192, 0.5035340156300437, 0.6039977449411132, 0.6722016352233492, 0.6978572592385401, 0.6792612003265401, 0.5930794710528546, 0.3997582622294606], "n_valid_labels": 7994, "n_masked_labels": 454, "mae_median": 16.75100575813598, "n_mase_elements": 7994, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 1.1490537608893228, "wql": 0.906615565799268}}, {"config_id": "kdd_cup_2018_with_missing__H__medium", "leaderboard_key": "kdd_cup_2018/H/medium", "dataset": "kdd_cup_2018_with_missing/H", "term": "medium", "freq": "H", "prediction_length": 480, "seasonality": 24, "n_variates": 1, "n_instances": 183, "domain": "Nature", "n_cohorts": 2, "metrics": {"mase": 0.8271580987122301, "wql": 0.47418914844558135, "wsql_by_level": [0.1758515949546377, 0.3340822655272025, 0.4615559865178126, 0.5534118165702606, 0.6105013952742315, 0.6298848044936609, 0.6073596316789519, 0.5290803286201458, 0.36597451237332823], "n_valid_labels": 83400, "n_masked_labels": 4440, "mae_median": 17.40643863505485, "n_mase_elements": 83400, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.7219635400561616, "wql": 0.4031871638198852}}, {"config_id": "kdd_cup_2018_with_missing__H__long", "leaderboard_key": "kdd_cup_2018/H/long", "dataset": "kdd_cup_2018_with_missing/H", "term": "long", "freq": "H", "prediction_length": 720, "seasonality": 24, "n_variates": 1, "n_instances": 182, "domain": "Nature", "n_cohorts": 2, "metrics": {"mase": 0.8417188469943878, "wql": 0.454385779300152, "wsql_by_level": [0.1910487834514514, 0.3444472331626547, 0.4627891880034824, 0.5450057049080962, 0.5913329213644287, 0.5991410023559574, 0.5635978125533547, 0.47551081396307016, 0.3165985539388721], "n_valid_labels": 124670, "n_masked_labels": 6370, "mae_median": 19.157532229761546, "n_mase_elements": 124670, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.7860392483075707, "wql": 0.367081603822145}}, {"config_id": "kdd_cup_2018_with_missing__D__short", "leaderboard_key": "kdd_cup_2018/D/short", "dataset": "kdd_cup_2018_with_missing/D", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 1, "n_instances": 184, "domain": "Nature", "n_cohorts": 2, "metrics": {"mase": 0.9731026563071604, "wql": 0.3618683962324938, "wsql_by_level": [0.16891787704362585, 0.28076358810240654, 0.3650952627657956, 0.42573921467526593, 0.46175204430315486, 0.4694310730435063, 0.4460503358614484, 0.37872282481547914, 0.26034334548176175], "n_valid_labels": 5452, "n_masked_labels": 68, "mae_median": 14.280525457100316, "n_mase_elements": 5452, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.6954914997585044, "wql": 0.4101977548318569}}, {"config_id": "restaurant__D__short", "leaderboard_key": "restaurant/D/short", "dataset": "restaurant", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 1, "n_instances": 187, "domain": "Sales", "n_cohorts": 13, "skipped_series": 1, "metrics": {"mase": 0.8266709730317843, "wql": 0.32644913849321516, "wsql_by_level": [0.17724339906405612, 0.27715916260973633, 0.34594166785126407, 0.38876537515995313, 0.40968647661066604, 0.40748798070518794, 0.38082780692388535, 0.3245481243241838, 0.22638225319000363], "n_valid_labels": 4315, "n_masked_labels": 1295, "mae_median": 8.628766249671044, "n_mase_elements": 4315, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.680304862437252, "wql": 0.44520610487500445}}, {"config_id": "hierarchical_sales__D__short", "leaderboard_key": "hierarchical_sales/D/short", "dataset": "hierarchical_sales/D", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 1, "n_instances": 118, "domain": "Sales", "n_cohorts": 1, "metrics": {"mase": 0.8848156527449037, "wql": 0.6636354646686073, "wsql_by_level": [0.2153590107876379, 0.3775907377845517, 0.52773037847808, 0.667930906163994, 0.7958236864677126, 0.8865128577171479, 0.9300890829888578, 0.8900604788298458, 0.6816220427996388], "n_valid_labels": 3540, "n_masked_labels": 0, "mae_median": 2.8348408718525016, "n_mase_elements": 3540, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.47269492857869055, "wql": 0.28022514514941543}}, {"config_id": "hierarchical_sales__W__short", "leaderboard_key": "hierarchical_sales/W/short", "dataset": "hierarchical_sales/W", "term": "short", "freq": "W-WED", "prediction_length": 8, "seasonality": 1, "n_variates": 1, "n_instances": 118, "domain": "Sales", "n_cohorts": 1, "metrics": {"mase": 0.688349341334979, "wql": 0.29516711557019454, "wsql_by_level": [0.1342657644058261, 0.2174622471569406, 0.2773994812659516, 0.31980641655424935, 0.3454592294020399, 0.35325513921582674, 0.3499432804581461, 0.34068254486517663, 0.3182299368075937], "n_valid_labels": 944, "n_masked_labels": 0, "mae_median": 8.317736043515852, "n_mase_elements": 944, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.5465837254098869, "wql": 0.3483345457519338}}, {"config_id": "LOOP_SEATTLE__T__short", "leaderboard_key": "loop_seattle/5T/short", "dataset": "LOOP_SEATTLE/5T", "term": "short", "freq": "5T", "prediction_length": 48, "seasonality": 288, "n_variates": 1, "n_instances": 192, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 0.619426023168628, "wql": 0.05831865403682283, "wsql_by_level": [0.049583559939091526, 0.06606104296761284, 0.07287325962414125, 0.07397327966108512, 0.07086285002412619, 0.06507150056332438, 0.05602616211356297, 0.04372435605975259, 0.026691875378708634], "n_valid_labels": 9216, "n_masked_labels": 0, "mae_median": 4.120602800407344, "n_mase_elements": 9216, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.6824586969691046, "wql": 0.6127625347157203}}, {"config_id": "LOOP_SEATTLE__T__medium", "leaderboard_key": "loop_seattle/5T/medium", "dataset": "LOOP_SEATTLE/5T", "term": "medium", "freq": "5T", "prediction_length": 480, "seasonality": 288, "n_variates": 1, "n_instances": 192, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 0.7236690091469337, "wql": 0.06901664939356221, "wsql_by_level": [0.04922209623783197, 0.07109489674952088, 0.08254247176331708, 0.08696535020990583, 0.08605364420060367, 0.08101989432401416, 0.07156044535768286, 0.05703689116016593, 0.03565415453901756], "n_valid_labels": 92160, "n_masked_labels": 0, "mae_median": 4.532584031478877, "n_mase_elements": 92160, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.7535041326714996, "wql": 0.6331818372782158}}, {"config_id": "LOOP_SEATTLE__T__long", "leaderboard_key": "loop_seattle/5T/long", "dataset": "LOOP_SEATTLE/5T", "term": "long", "freq": "5T", "prediction_length": 720, "seasonality": 288, "n_variates": 1, "n_instances": 192, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 0.9310019968557798, "wql": 0.08766539101773935, "wsql_by_level": [0.07174411347309662, 0.09762971655843491, 0.1090345068249475, 0.1119508330221983, 0.1082489733907105, 0.09931322948368128, 0.08533728131102443, 0.06591531123592403, 0.03981455385963659], "n_valid_labels": 138240, "n_masked_labels": 0, "mae_median": 5.83313470481619, "n_mase_elements": 138240, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.5499788486325501, "wql": 0.4985434566000823}}, {"config_id": "LOOP_SEATTLE__H__short", "leaderboard_key": "loop_seattle/H/short", "dataset": "LOOP_SEATTLE/H", "term": "short", "freq": "H", "prediction_length": 48, "seasonality": 24, "n_variates": 1, "n_instances": 192, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 0.7641490521664479, "wql": 0.05575730791788738, "wsql_by_level": [0.04469594671245008, 0.05916655714182244, 0.06637444331492785, 0.06834809212645392, 0.06708957262978296, 0.06274388862715742, 0.05594740748580088, 0.0463437666888313, 0.031106096533759616], "n_valid_labels": 9216, "n_masked_labels": 0, "mae_median": 3.549170459750005, "n_mase_elements": 9216, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.7266364371020412, "wql": 0.6132222335435451}}, {"config_id": "LOOP_SEATTLE__H__medium", "leaderboard_key": "loop_seattle/H/medium", "dataset": "LOOP_SEATTLE/H", "term": "medium", "freq": "H", "prediction_length": 480, "seasonality": 24, "n_variates": 1, "n_instances": 192, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 0.7162499484103702, "wql": 0.05008735845492902, "wsql_by_level": [0.03665382381247482, 0.049308702031704406, 0.055949295159185286, 0.05912453730737827, 0.059721017375504205, 0.05809575317953436, 0.053877582653537544, 0.045993586237147575, 0.032061928337894674], "n_valid_labels": 92160, "n_masked_labels": 0, "mae_median": 3.3963020701685713, "n_mase_elements": 92160, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.6383153449125551, "wql": 0.34264036822884186}}, {"config_id": "LOOP_SEATTLE__H__long", "leaderboard_key": "loop_seattle/H/long", "dataset": "LOOP_SEATTLE/H", "term": "long", "freq": "H", "prediction_length": 720, "seasonality": 24, "n_variates": 1, "n_instances": 192, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 0.6730999548261424, "wql": 0.04738473747520454, "wsql_by_level": [0.03741420298926475, 0.049003076365163316, 0.05456816163843598, 0.05670344612452634, 0.056392474262329954, 0.053872629865046366, 0.04903879186669284, 0.04124862630978554, 0.028221227855595804], "n_valid_labels": 138240, "n_masked_labels": 0, "mae_median": 3.1660571400395217, "n_mase_elements": 138240, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.6479154578840101, "wql": 0.2831342224745045}}, {"config_id": "LOOP_SEATTLE__D__short", "leaderboard_key": "loop_seattle/D/short", "dataset": "LOOP_SEATTLE/D", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 1, "n_instances": 192, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 0.5869527498943429, "wql": 0.026517682768301874, "wsql_by_level": [0.018836363470185382, 0.026725220148757133, 0.03085448306553965, 0.032604502211547, 0.032476990740548155, 0.030763722380641685, 0.027792403818444496, 0.022993790058456615, 0.015611669020596772], "n_valid_labels": 5760, "n_masked_labels": 0, "mae_median": 1.8353070232603286, "n_mase_elements": 5760, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.5674112681823771, "wql": 0.3153108094409606}}, {"config_id": "SZ_TAXI__T__short", "leaderboard_key": "sz_taxi/15T/short", "dataset": "SZ_TAXI/15T", "term": "short", "freq": "15T", "prediction_length": 48, "seasonality": 96, "n_variates": 1, "n_instances": 156, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 0.5275099821911426, "wql": 0.20434423431930657, "wsql_by_level": [0.1063352570127323, 0.17224981969772526, 0.21653015626983474, 0.2443338898174095, 0.2577343162728452, 0.25695140799535693, 0.23999858073348534, 0.20446561578853037, 0.14049906528583933], "n_valid_labels": 7488, "n_masked_labels": 0, "mae_median": 2.828674548874095, "n_mase_elements": 7488, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.7528484432860356, "wql": 0.6706520413345237}}, {"config_id": "SZ_TAXI__T__medium", "leaderboard_key": "sz_taxi/15T/medium", "dataset": "SZ_TAXI/15T", "term": "medium", "freq": "15T", "prediction_length": 480, "seasonality": 96, "n_variates": 1, "n_instances": 156, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 1.2247380279585667, "wql": 0.4606462422807205, "wsql_by_level": [0.35271563027858044, 0.46916671844764296, 0.5347574666973072, 0.5645971811346638, 0.5639857267667516, 0.5360861472248911, 0.4816248899642675, 0.3916217673837492, 0.25126065262863073], "n_valid_labels": 74880, "n_masked_labels": 0, "mae_median": 7.516599158164984, "n_mase_elements": 74880, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8464958215201235, "wql": 0.8074034064141411}}, {"config_id": "SZ_TAXI__H__short", "leaderboard_key": "sz_taxi/H/short", "dataset": "SZ_TAXI/H", "term": "short", "freq": "H", "prediction_length": 48, "seasonality": 24, "n_variates": 1, "n_instances": 156, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 0.48236939748182234, "wql": 0.1354479873405955, "wsql_by_level": [0.07083712908538735, 0.1105372186115372, 0.13693856479136124, 0.15434980584193558, 0.16477553303477152, 0.16617163715875705, 0.15956254128526853, 0.14421913712925524, 0.11164031912708551], "n_valid_labels": 7488, "n_masked_labels": 0, "mae_median": 1.8412857813400945, "n_mase_elements": 7488, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8145983157874067, "wql": 0.628189930360445}}, {"config_id": "M_DENSE__H__short", "leaderboard_key": "m_dense/H/short", "dataset": "M_DENSE/H", "term": "short", "freq": "H", "prediction_length": 48, "seasonality": 24, "n_variates": 1, "n_instances": 30, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 0.6162997543359653, "wql": 0.10877191722864998, "wsql_by_level": [0.06842868632873086, 0.09740792301646804, 0.1160604477140447, 0.12857126860399587, 0.13560961697225254, 0.13573949532414786, 0.12534388643656147, 0.10358798916803391, 0.06819794149361473], "n_valid_labels": 1440, "n_masked_labels": 0, "mae_median": 81.5105882300271, "n_mase_elements": 1440, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.46661331281821217, "wql": 0.4736986381907257}}, {"config_id": "M_DENSE__H__medium", "leaderboard_key": "m_dense/H/medium", "dataset": "M_DENSE/H", "term": "medium", "freq": "H", "prediction_length": 480, "seasonality": 24, "n_variates": 1, "n_instances": 30, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 0.9148011108326657, "wql": 0.24504539102617562, "wsql_by_level": [0.14577099949003738, 0.22502219095496742, 0.27481079495526645, 0.30219021195853174, 0.30826281677348044, 0.2953885829843998, 0.2648341688065938, 0.22490004916309475, 0.1642287041492086], "n_valid_labels": 14400, "n_masked_labels": 0, "mae_median": 125.8994382126795, "n_mase_elements": 14400, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8400498271111567, "wql": 0.503397100948463}}, {"config_id": "M_DENSE__H__long", "leaderboard_key": "m_dense/H/long", "dataset": "M_DENSE/H", "term": "long", "freq": "H", "prediction_length": 720, "seasonality": 24, "n_variates": 1, "n_instances": 30, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 0.7819969830359697, "wql": 0.19776195024018062, "wsql_by_level": [0.15134470327137428, 0.20260209627716286, 0.22826577814636828, 0.23789205268069274, 0.23559926372484558, 0.22473934562755532, 0.2048769050860482, 0.17312237115020496, 0.12141503619737332], "n_valid_labels": 21600, "n_masked_labels": 0, "mae_median": 120.48273391845049, "n_mase_elements": 21600, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.6098391116491899, "wql": 0.40316645461133116}}, {"config_id": "M_DENSE__D__short", "leaderboard_key": "m_dense/D/short", "dataset": "M_DENSE/D", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 1, "n_instances": 30, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 0.7738065478738333, "wql": 0.12120110479278938, "wsql_by_level": [0.08607953195096542, 0.11947397605395241, 0.14036146571913397, 0.15063517229645662, 0.15061120626314242, 0.14340735182437886, 0.12780760139289363, 0.10374263393804896, 0.06869100369613208], "n_valid_labels": 900, "n_masked_labels": 0, "mae_median": 77.02082595825195, "n_mase_elements": 900, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.549989437783038, "wql": 0.47290777871154444}}, {"config_id": "ett1__T__short", "leaderboard_key": "ett1/15T/short", "dataset": "ett1/15T", "term": "short", "freq": "15T", "prediction_length": 48, "seasonality": 96, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.107083738198638, "wql": 0.5316922568983645, "wsql_by_level": [0.5029810745408837, 0.6338315695950164, 0.6753554104316974, 0.6742020897094367, 0.6409019880677244, 0.5812692632016984, 0.49237570731020813, 0.373691657366816, 0.21062155186179923], "n_valid_labels": 336, "n_masked_labels": 0, "mae_median": 2.062846050642076, "n_mase_elements": 336, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.9245781564552206, "wql": 1.0262072040911547}}, {"config_id": "ett1__T__medium", "leaderboard_key": "ett1/15T/medium", "dataset": "ett1/15T", "term": "medium", "freq": "15T", "prediction_length": 480, "seasonality": 96, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.0151525991880934, "wql": 0.3436310755687199, "wsql_by_level": [0.18236583162500872, 0.3237334768715601, 0.40952103959242186, 0.45340760079656006, 0.4644181827193618, 0.44080993665116874, 0.3842897872189889, 0.285010745952635, 0.14912307869077415], "n_valid_labels": 3360, "n_masked_labels": 0, "mae_median": 1.8481640429681214, "n_mase_elements": 3360, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.9760175426447272, "wql": 0.7797003304065692}}, {"config_id": "ett1__T__long", "leaderboard_key": "ett1/15T/long", "dataset": "ett1/15T", "term": "long", "freq": "15T", "prediction_length": 720, "seasonality": 96, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.27307247294281, "wql": 0.3282946572402945, "wsql_by_level": [0.1986055679793525, 0.32963009334568827, 0.40464662823603, 0.4298134323826024, 0.4252601705899528, 0.3950404252046606, 0.34232899486159035, 0.2677727721923813, 0.16155383037039198], "n_valid_labels": 5040, "n_masked_labels": 0, "mae_median": 1.8683039446764196, "n_mase_elements": 5040, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 1.0291183243563582, "wql": 0.9052467154063255}}, {"config_id": "ett1__H__short", "leaderboard_key": "ett1/H/short", "dataset": "ett1/H", "term": "short", "freq": "H", "prediction_length": 48, "seasonality": 24, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 0.9129143559624434, "wql": 0.34525472332347, "wsql_by_level": [0.22660598368120843, 0.3171342306770723, 0.3892051243710807, 0.4526477770519681, 0.4649088283402593, 0.43816249084566516, 0.37952975924819127, 0.2841396536602566, 0.1549586620355285], "n_valid_labels": 336, "n_masked_labels": 0, "mae_median": 5.417795660705971, "n_mase_elements": 336, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.720688952054486, "wql": 0.49139043771251073}}, {"config_id": "ett1__H__medium", "leaderboard_key": "ett1/H/medium", "dataset": "ett1/H", "term": "medium", "freq": "H", "prediction_length": 480, "seasonality": 24, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.0214294966412503, "wql": 0.24595398164793053, "wsql_by_level": [0.17406814006790872, 0.25245690613813665, 0.2916652230833364, 0.3078214520838479, 0.304365418806307, 0.2861875993700716, 0.2538061200774976, 0.2059109555179105, 0.13730401968635877], "n_valid_labels": 3360, "n_masked_labels": 0, "mae_median": 5.731355004216589, "n_mase_elements": 3360, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.6755707955775141, "wql": 0.4958830967109687}}, {"config_id": "ett1__H__long", "leaderboard_key": "ett1/H/long", "dataset": "ett1/H", "term": "long", "freq": "H", "prediction_length": 720, "seasonality": 24, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 0.9184933289661569, "wql": 0.2433123192760126, "wsql_by_level": [0.148087687622324, 0.2254563058854089, 0.2648049834729476, 0.28675883967819676, 0.297921759296374, 0.29718192906862895, 0.27793974878550404, 0.23383002176933265, 0.15782959790539627], "n_valid_labels": 5040, "n_masked_labels": 0, "mae_median": 5.45492329030549, "n_mase_elements": 5040, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.7635105614810753, "wql": 0.4861402649246405}}, {"config_id": "ett1__D__short", "leaderboard_key": "ett1/D/short", "dataset": "ett1/D", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.2362219565396784, "wql": 0.21211818079512806, "wsql_by_level": [0.12759474468457743, 0.20016557795687595, 0.2450403479988854, 0.2690227946277039, 0.27601033694224114, 0.26289772789069005, 0.23030779703065501, 0.18160797888721447, 0.11641632113730907], "n_valid_labels": 210, "n_masked_labels": 0, "mae_median": 101.23239531744095, "n_mase_elements": 210, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 1.1437216981005118, "wql": 0.5927534593021693}}, {"config_id": "ett1__W__short", "leaderboard_key": "ett1/W/short", "dataset": "ett1/W", "term": "short", "freq": "W-THU", "prediction_length": 8, "seasonality": 1, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.5817972675735799, "wql": 0.2921973343828827, "wsql_by_level": [0.17739626287432736, 0.2657361769468288, 0.33113457925827, 0.35921673551398514, 0.3726774138843192, 0.3692334104671081, 0.32880365974566456, 0.2511231373457456, 0.17445463340969528], "n_valid_labels": 56, "n_masked_labels": 0, "mae_median": 887.4289741516113, "n_mase_elements": 56, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.9560732123503632, "wql": 0.8619209911132996}}, {"config_id": "ett2__T__short", "leaderboard_key": "ett2/15T/short", "dataset": "ett2/15T", "term": "short", "freq": "15T", "prediction_length": 48, "seasonality": 96, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.2112942226535321, "wql": 0.10603323316944578, "wsql_by_level": [0.05555965645990992, 0.09118557231149862, 0.11608241426198763, 0.13235425709829884, 0.14054109753033928, 0.1378913565280705, 0.12474886142503079, 0.09823391892168855, 0.057701963988187825], "n_valid_labels": 336, "n_masked_labels": 0, "mae_median": 2.3284006239402864, "n_mase_elements": 336, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 1.325018254897407, "wql": 1.0341219872765686}}, {"config_id": "ett2__T__medium", "leaderboard_key": "ett2/15T/medium", "dataset": "ett2/15T", "term": "medium", "freq": "15T", "prediction_length": 480, "seasonality": 96, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.1125619361426078, "wql": 0.14794900206922662, "wsql_by_level": [0.07797574792800502, 0.11103643536660461, 0.14002828934016004, 0.1709334350168507, 0.19261772408209973, 0.1960801454455856, 0.18402660763026965, 0.15401239083343302, 0.10483024298003114], "n_valid_labels": 3360, "n_masked_labels": 0, "mae_median": 2.5729244746528344, "n_mase_elements": 3360, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.9696438663585314, "wql": 0.8447528997618089}}, {"config_id": "ett2__T__long", "leaderboard_key": "ett2/15T/long", "dataset": "ett2/15T", "term": "long", "freq": "15T", "prediction_length": 720, "seasonality": 96, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 3.132940668573695, "wql": 0.40124570231715473, "wsql_by_level": [0.37730294414013316, 0.46656567513758473, 0.5038930442282548, 0.5078262594027046, 0.48564469472572414, 0.4406983717335641, 0.3738659991398243, 0.2859758751299265, 0.16943845721667647], "n_valid_labels": 5040, "n_masked_labels": 0, "mae_median": 6.437485706969488, "n_mase_elements": 5040, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 1.1117072218371524, "wql": 1.2608097043818878}}, {"config_id": "ett2__H__short", "leaderboard_key": "ett2/H/short", "dataset": "ett2/H", "term": "short", "freq": "H", "prediction_length": 48, "seasonality": 24, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 0.6563529338448054, "wql": 0.0862884390726809, "wsql_by_level": [0.06938829387567377, 0.10122261034470352, 0.11337074919837953, 0.1117961904391991, 0.09917241903269325, 0.08668258638540494, 0.07708285140796965, 0.06754543705426297, 0.050334813915841346], "n_valid_labels": 336, "n_masked_labels": 0, "mae_median": 5.987722199587595, "n_mase_elements": 336, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8289956718205904, "wql": 0.7613814868523202}}, {"config_id": "ett2__H__medium", "leaderboard_key": "ett2/H/medium", "dataset": "ett2/H", "term": "medium", "freq": "H", "prediction_length": 480, "seasonality": 24, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 2.2075137248499512, "wql": 0.18439759967917982, "wsql_by_level": [0.08817730746844442, 0.1412533046409432, 0.17940398523137663, 0.2063651328459806, 0.22440375088238398, 0.2319564432707547, 0.2276133614516551, 0.205835015194146, 0.15457009612693381], "n_valid_labels": 3360, "n_masked_labels": 0, "mae_median": 14.37627405598732, "n_mase_elements": 3360, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.9145284159882985, "wql": 0.7521615481310319}}, {"config_id": "ett2__H__long", "leaderboard_key": "ett2/H/long", "dataset": "ett2/H", "term": "long", "freq": "H", "prediction_length": 720, "seasonality": 24, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.394798318269394, "wql": 0.1611886217250057, "wsql_by_level": [0.11527137813406174, 0.16411191658426302, 0.1910512770653619, 0.2027425152895694, 0.20221066171358998, 0.19019332494177116, 0.16763191820242476, 0.13294724491987017, 0.0845373586741391], "n_valid_labels": 5040, "n_masked_labels": 0, "mae_median": 12.173998493500171, "n_mase_elements": 5040, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 1.0851923982475131, "wql": 0.6065658921590206}}, {"config_id": "ett2__D__short", "leaderboard_key": "ett2/D/short", "dataset": "ett2/D", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.6994531212586015, "wql": 0.13292929996003863, "wsql_by_level": [0.11347945972700656, 0.1474595699205491, 0.1646314501935089, 0.16653716913443242, 0.16051770159505488, 0.14520457750039695, 0.12595022495289165, 0.10029361350798896, 0.0722899331085184], "n_valid_labels": 210, "n_masked_labels": 0, "mae_median": 231.56498560905456, "n_mase_elements": 210, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 1.0461322783283002, "wql": 0.6669074142925306}}, {"config_id": "ett2__W__short", "leaderboard_key": "ett2/W/short", "dataset": "ett2/W", "term": "short", "freq": "W-THU", "prediction_length": 8, "seasonality": 1, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 2.7207313917731892, "wql": 0.2439608460673083, "wsql_by_level": [0.2123043410143094, 0.2360606948537212, 0.2628012649520402, 0.2949735441893475, 0.3030302356922222, 0.2900898749855996, 0.255908406398546, 0.2048120514281047, 0.13566720109188443], "n_valid_labels": 56, "n_masked_labels": 0, "mae_median": 3183.673274074282, "n_mase_elements": 56, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.9881762125721921, "wql": 0.8515882038546841}}, {"config_id": "jena_weather__T__short", "leaderboard_key": "jena_weather/10T/short", "dataset": "jena_weather/10T", "term": "short", "freq": "10T", "prediction_length": 48, "seasonality": 144, "n_variates": 21, "n_instances": 1, "domain": "Nature", "n_cohorts": 1, "metrics": {"mase": 0.3693799156133635, "wql": 0.03857587237506894, "wsql_by_level": [0.010771764445689159, 0.02024841146306703, 0.027892457408170743, 0.034847879870089984, 0.04111959615798594, 0.046979672544462864, 0.05141035091302487, 0.05522032308707679, 0.05869239548605312], "n_valid_labels": 1008, "n_masked_labels": 0, "mae_median": 6.649642039245616, "n_mase_elements": 1008, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.620697524222115, "wql": 0.26077522062932934}}, {"config_id": "jena_weather__T__medium", "leaderboard_key": "jena_weather/10T/medium", "dataset": "jena_weather/10T", "term": "medium", "freq": "10T", "prediction_length": 480, "seasonality": 144, "n_variates": 21, "n_instances": 1, "domain": "Nature", "n_cohorts": 1, "metrics": {"mase": 0.5413986589833613, "wql": 0.05367567446141438, "wsql_by_level": [0.03001228670780097, 0.04860846118302179, 0.06016931792661841, 0.06723564070031182, 0.06922530584714544, 0.06652758814760626, 0.0591056417206643, 0.04727754051934235, 0.034919287400218005], "n_valid_labels": 10080, "n_masked_labels": 0, "mae_median": 11.876657931865859, "n_mase_elements": 10080, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.7181975850720205, "wql": 0.26429131030519104}}, {"config_id": "jena_weather__T__long", "leaderboard_key": "jena_weather/10T/long", "dataset": "jena_weather/10T", "term": "long", "freq": "10T", "prediction_length": 720, "seasonality": 144, "n_variates": 21, "n_instances": 1, "domain": "Nature", "n_cohorts": 1, "metrics": {"mase": 0.7594754178515889, "wql": 0.06366694627814617, "wsql_by_level": [0.035884214832891774, 0.0529284746807158, 0.06322715370665824, 0.06983585961097323, 0.07315002437881775, 0.07568589020748705, 0.07452279102216243, 0.06934186160871068, 0.05842624645489858], "n_valid_labels": 15120, "n_masked_labels": 0, "mae_median": 12.655410731558948, "n_mase_elements": 15120, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.7458502225804546, "wql": 0.25538232386627097}}, {"config_id": "jena_weather__H__short", "leaderboard_key": "jena_weather/H/short", "dataset": "jena_weather/H", "term": "short", "freq": "H", "prediction_length": 48, "seasonality": 24, "n_variates": 21, "n_instances": 1, "domain": "Nature", "n_cohorts": 1, "metrics": {"mase": 0.33191519473523495, "wql": 0.04738684853278885, "wsql_by_level": [0.027985432833509728, 0.038955617603439664, 0.04517740355470951, 0.050102263715761174, 0.05421992312086661, 0.05573756454830676, 0.05730162379080594, 0.05367931504126654, 0.043322492586433725], "n_valid_labels": 1008, "n_masked_labels": 0, "mae_median": 9.382634961705966, "n_mase_elements": 1008, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.37532523759556985, "wql": 0.25553695505697527}}, {"config_id": "jena_weather__H__medium", "leaderboard_key": "jena_weather/H/medium", "dataset": "jena_weather/H", "term": "medium", "freq": "H", "prediction_length": 480, "seasonality": 24, "n_variates": 21, "n_instances": 1, "domain": "Nature", "n_cohorts": 1, "metrics": {"mase": 0.9677294126704467, "wql": 0.08082793326156262, "wsql_by_level": [0.052850077276572836, 0.07992208185597273, 0.09437410985182884, 0.10050465489996874, 0.10006670080201084, 0.09254463400255994, 0.08109815551600089, 0.06981744828458945, 0.056273536864559486], "n_valid_labels": 10080, "n_masked_labels": 0, "mae_median": 19.92106823067713, "n_mase_elements": 10080, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 1.0177542533513237, "wql": 0.25349829803305995}}, {"config_id": "jena_weather__H__long", "leaderboard_key": "jena_weather/H/long", "dataset": "jena_weather/H", "term": "long", "freq": "H", "prediction_length": 720, "seasonality": 24, "n_variates": 21, "n_instances": 1, "domain": "Nature", "n_cohorts": 1, "metrics": {"mase": 1.3942574079014727, "wql": 0.11464388218242544, "wsql_by_level": [0.07528698117500926, 0.1105696461852858, 0.13315981104348013, 0.14245028978155674, 0.14196177356913645, 0.13467972619837376, 0.12119504127525058, 0.10021379760450566, 0.07227787280923058], "n_valid_labels": 15120, "n_masked_labels": 0, "mae_median": 28.905303384889336, "n_mase_elements": 15120, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.9458660496522819, "wql": 0.2947195312591485}}, {"config_id": "jena_weather__D__short", "leaderboard_key": "jena_weather/D/short", "dataset": "jena_weather/D", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 21, "n_instances": 1, "domain": "Nature", "n_cohorts": 1, "metrics": {"mase": 1.5093121737156134, "wql": 0.09724836964952815, "wsql_by_level": [0.06768729792131656, 0.09533974371540223, 0.11081749220812914, 0.11844442995185328, 0.12076572727729964, 0.11604674267461824, 0.10497925816880616, 0.08433185101141111, 0.056822783916916975], "n_valid_labels": 630, "n_masked_labels": 0, "mae_median": 24.450099781597594, "n_mase_elements": 630, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.9063957442681962, "wql": 0.48151458212352155}}, {"config_id": "bitbrains_fast_storage__T__short", "leaderboard_key": "bitbrains_fast_storage/5T/short", "dataset": "bitbrains_fast_storage/5T", "term": "short", "freq": "5T", "prediction_length": 48, "seasonality": 288, "n_variates": 2, "n_instances": 189, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.7873417787456084, "wql": 0.17004234287352293, "wsql_by_level": [0.10419149307524825, 0.14694589153060567, 0.17381513031474, 0.1885775453605322, 0.19636511235874685, 0.194198080946545, 0.18048859045029986, 0.1699597711345186, 0.17583947069047004], "n_valid_labels": 18144, "n_masked_labels": 0, "mae_median": 76.28833707197467, "n_mase_elements": 17472, "n_seasonal_error_zero": 12, "n_seasonal_error_nan": 2}, "relative": {"mase": 0.9301168785823798, "wql": 0.13950583511064976}}, {"config_id": "bitbrains_fast_storage__T__medium", "leaderboard_key": "bitbrains_fast_storage/5T/medium", "dataset": "bitbrains_fast_storage/5T", "term": "medium", "freq": "5T", "prediction_length": 480, "seasonality": 288, "n_variates": 2, "n_instances": 182, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.7112655547226566, "wql": 0.5879802217038006, "wsql_by_level": [0.3335109407036411, 0.5510798369187269, 0.6640653949799512, 0.7292558148169821, 0.756650871113682, 0.7358371570152223, 0.6711333545136516, 0.5422782560286026, 0.308010369243744], "n_valid_labels": 174720, "n_masked_labels": 0, "mae_median": 395.6898486661917, "n_mase_elements": 173760, "n_seasonal_error_zero": 2, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8132431660475362, "wql": 0.7421229429809829}}, {"config_id": "bitbrains_fast_storage__T__long", "leaderboard_key": "bitbrains_fast_storage/5T/long", "dataset": "bitbrains_fast_storage/5T", "term": "long", "freq": "5T", "prediction_length": 720, "seasonality": 288, "n_variates": 2, "n_instances": 182, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.7214092088082876, "wql": 0.4972824133703841, "wsql_by_level": [0.3064214127552295, 0.5225172656270939, 0.5818980520212783, 0.5960653227032154, 0.593892465089494, 0.5760645833731588, 0.5375496968441965, 0.4615169686208724, 0.29961595329891844], "n_valid_labels": 262080, "n_masked_labels": 0, "mae_median": 443.1621442951751, "n_mase_elements": 252000, "n_seasonal_error_zero": 10, "n_seasonal_error_nan": 4}, "relative": {"mase": 0.7804660417878175, "wql": 0.7032124595530006}}, {"config_id": "bitbrains_fast_storage__H__short", "leaderboard_key": "bitbrains_fast_storage/H/short", "dataset": "bitbrains_fast_storage/H", "term": "short", "freq": "H", "prediction_length": 48, "seasonality": 24, "n_variates": 2, "n_instances": 188, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.5690350150639927, "wql": 0.34840789929643523, "wsql_by_level": [0.16967738691785286, 0.302882880307531, 0.39966400144092246, 0.4525647753293816, 0.46521437463772825, 0.4470010118091984, 0.4027574753294348, 0.31925003082592074, 0.17665915706994673], "n_valid_labels": 18048, "n_masked_labels": 0, "mae_median": 335.3995370736956, "n_mase_elements": 17472, "n_seasonal_error_zero": 12, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.7843670429667351, "wql": 0.6042522353305465}}, {"config_id": "bitbrains_rnd__T__short", "leaderboard_key": "bitbrains_rnd/5T/short", "dataset": "bitbrains_rnd/5T", "term": "short", "freq": "5T", "prediction_length": 48, "seasonality": 288, "n_variates": 2, "n_instances": 186, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 1.1762276768493416, "wql": 0.29305788852580017, "wsql_by_level": [0.0941130412093545, 0.16622963545994934, 0.226678972851334, 0.27978610366565937, 0.3269947778695106, 0.3686592579693599, 0.4020833311541577, 0.41608000269585727, 0.3568958738570189], "n_valid_labels": 17856, "n_masked_labels": 0, "mae_median": 52.206851834061446, "n_mase_elements": 17376, "n_seasonal_error_zero": 10, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.853011114931803, "wql": 0.302634558662142}}, {"config_id": "bitbrains_rnd__T__medium", "leaderboard_key": "bitbrains_rnd/5T/medium", "dataset": "bitbrains_rnd/5T", "term": "medium", "freq": "5T", "prediction_length": 480, "seasonality": 288, "n_variates": 2, "n_instances": 188, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.7018403923087395, "wql": 0.8763071749093687, "wsql_by_level": [0.4593097018225786, 0.9207738511644981, 1.0929373491978462, 1.1319649154348952, 1.1000326475380773, 1.0137410432291196, 0.8788118060722624, 0.7181236981849387, 0.5710695615401022], "n_valid_labels": 178498, "n_masked_labels": 1982, "mae_median": 195.70914827139654, "n_mase_elements": 177486, "n_seasonal_error_zero": 2, "n_seasonal_error_nan": 4}, "relative": {"mase": 0.8424568913342672, "wql": 0.4601642426171456}}, {"config_id": "bitbrains_rnd__T__long", "leaderboard_key": "bitbrains_rnd/5T/long", "dataset": "bitbrains_rnd/5T", "term": "long", "freq": "5T", "prediction_length": 720, "seasonality": 288, "n_variates": 2, "n_instances": 181, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 1.1018156833060604, "wql": 0.6628716401107811, "wsql_by_level": [0.20530593636375716, 0.3717069457920215, 0.518072770111531, 0.6517749761797804, 0.7620512965890279, 0.8697410983682754, 0.9144529240804049, 0.9053833830481348, 0.7673554304640974], "n_valid_labels": 260626, "n_masked_labels": 14, "mae_median": 209.089716706767, "n_mase_elements": 246232, "n_seasonal_error_zero": 4, "n_seasonal_error_nan": 16}, "relative": {"mase": 0.7693993451517863, "wql": 0.6084504573504855}}, {"config_id": "bitbrains_rnd__H__short", "leaderboard_key": "bitbrains_rnd/H/short", "dataset": "bitbrains_rnd/H", "term": "short", "freq": "H", "prediction_length": 48, "seasonality": 24, "n_variates": 2, "n_instances": 180, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 1.2215021770399326, "wql": 0.36860351639044364, "wsql_by_level": [0.14886295299375826, 0.2641160652678832, 0.3535642757534057, 0.44892928556562695, 0.5143735939904236, 0.5221533797370183, 0.46486019908891, 0.3523978235325424, 0.2481740715844244], "n_valid_labels": 17280, "n_masked_labels": 0, "mae_median": 250.59353141244387, "n_mase_elements": 16992, "n_seasonal_error_zero": 6, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8251812853807775, "wql": 0.4597046797120189}}, {"config_id": "bizitobs_application__S__short", "leaderboard_key": "bizitobs_application/10S/short", "dataset": "bizitobs_application", "term": "short", "freq": "10S", "prediction_length": 60, "seasonality": 360, "n_variates": 2, "n_instances": 1, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.4062655295463454, "wql": 0.006554902715506177, "wsql_by_level": [0.001765639491537941, 0.003677057251152104, 0.005721009967562471, 0.00740489998704737, 0.008884389930746837, 0.009561424272219617, 0.009204914185693592, 0.00775450057763828, 0.00502028877595738], "n_valid_labels": 120, "n_masked_labels": 0, "mae_median": 226.22181529998778, "n_mase_elements": 120, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 1.0914920939774215, "wql": 0.8113244574488367}}, {"config_id": "bizitobs_application__S__medium", "leaderboard_key": "bizitobs_application/10S/medium", "dataset": "bizitobs_application", "term": "medium", "freq": "10S", "prediction_length": 600, "seasonality": 360, "n_variates": 2, "n_instances": 1, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.4703034034625197, "wql": 0.00669723470787308, "wsql_by_level": [0.004606076681672416, 0.006445194841912462, 0.007311925529992874, 0.0077634796399292105, 0.007855401423663174, 0.007724686936390077, 0.007453408045348879, 0.006523392176113295, 0.004591547095835339], "n_valid_labels": 1200, "n_masked_labels": 0, "mae_median": 187.96784063339234, "n_mase_elements": 1200, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8849852965089385, "wql": 0.5926567331089186}}, {"config_id": "bizitobs_application__S__long", "leaderboard_key": "bizitobs_application/10S/long", "dataset": "bizitobs_application", "term": "long", "freq": "10S", "prediction_length": 900, "seasonality": 360, "n_variates": 2, "n_instances": 1, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.6654016738485262, "wql": 0.011677349915199205, "wsql_by_level": [0.011072168278189536, 0.01512204458353631, 0.016228991617481307, 0.015169236927761277, 0.01320514614232288, 0.010918002761176599, 0.008785145277329313, 0.007835656948784589, 0.00675975670021103], "n_valid_labels": 1800, "n_masked_labels": 0, "mae_median": 323.02682648764716, "n_mase_elements": 1800, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 1.0038139945754476, "wql": 0.8458267168495301}}, {"config_id": "bizitobs_service__S__short", "leaderboard_key": "bizitobs_service/10S/short", "dataset": "bizitobs_service", "term": "short", "freq": "10S", "prediction_length": 60, "seasonality": 360, "n_variates": 2, "n_instances": 21, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.5911467133771469, "wql": 0.008201373646660888, "wsql_by_level": [0.004057122255436924, 0.00663481674992507, 0.00848352286574821, 0.009837478530932867, 0.010565611856506289, 0.010618757352089779, 0.009928090259344657, 0.008306594949895255, 0.005380368000068941], "n_valid_labels": 2520, "n_masked_labels": 0, "mae_median": 13.990628957348905, "n_mase_elements": 2520, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.7740464521109395, "wql": 0.4906841904603532}}, {"config_id": "bizitobs_service__S__medium", "leaderboard_key": "bizitobs_service/10S/medium", "dataset": "bizitobs_service", "term": "medium", "freq": "10S", "prediction_length": 600, "seasonality": 360, "n_variates": 2, "n_instances": 21, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.5845086884755826, "wql": 0.008399305981727882, "wsql_by_level": [0.0053232467060303525, 0.007428680774369053, 0.008813081163579473, 0.009741711463396563, 0.010266253138463466, 0.010284305113961138, 0.009685945822732973, 0.008290074331809337, 0.005760455321208573], "n_valid_labels": 25200, "n_masked_labels": 0, "mae_median": 12.938362117326921, "n_mase_elements": 25200, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8394513110829915, "wql": 0.394265471797736}}, {"config_id": "bizitobs_service__S__long", "leaderboard_key": "bizitobs_service/10S/long", "dataset": "bizitobs_service", "term": "long", "freq": "10S", "prediction_length": 900, "seasonality": 360, "n_variates": 2, "n_instances": 21, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.7293534428628334, "wql": 0.010389260259255953, "wsql_by_level": [0.0072624646328127065, 0.010321832856757153, 0.012023497528620112, 0.012818662254133417, 0.012900946360225922, 0.01232845830991949, 0.011047585669131875, 0.008907567335014127, 0.00589232738668876], "n_valid_labels": 37800, "n_masked_labels": 0, "mae_median": 16.5367922705065, "n_mase_elements": 37800, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8900132461854047, "wql": 0.40257154138262724}}, {"config_id": "bizitobs_l2c__T__short", "leaderboard_key": "bizitobs_l2c/5T/short", "dataset": "bizitobs_l2c/5T", "term": "short", "freq": "5T", "prediction_length": 48, "seasonality": 288, "n_variates": 7, "n_instances": 1, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.2095262378348314, "wql": 0.0739445046795741, "wsql_by_level": [0.033110671484900586, 0.052002194573316715, 0.06505702329612414, 0.0770106599351185, 0.08776760413787124, 0.09483606922862413, 0.09668902741370758, 0.09005576656204753, 0.06897152548445652], "n_valid_labels": 336, "n_masked_labels": 0, "mae_median": 2.1584483129637584, "n_mase_elements": 336, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.3275733914863857, "wql": 0.396731646948172}}, {"config_id": "bizitobs_l2c__T__medium", "leaderboard_key": "bizitobs_l2c/5T/medium", "dataset": "bizitobs_l2c/5T", "term": "medium", "freq": "5T", "prediction_length": 480, "seasonality": 288, "n_variates": 7, "n_instances": 1, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.3440786668313065, "wql": 0.5938867322323665, "wsql_by_level": [0.13600572828480512, 0.36147536137441144, 0.47508819657130597, 0.5721192663332282, 0.6723217686989006, 0.7375980346365651, 0.7914280009022922, 0.8207589470617863, 0.7781852862280043], "n_valid_labels": 3360, "n_masked_labels": 0, "mae_median": 3.633236852332595, "n_mase_elements": 3360, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.22607178220419485, "wql": 0.2819516465789851}}, {"config_id": "bizitobs_l2c__T__long", "leaderboard_key": "bizitobs_l2c/5T/long", "dataset": "bizitobs_l2c/5T", "term": "long", "freq": "5T", "prediction_length": 720, "seasonality": 288, "n_variates": 7, "n_instances": 1, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.45511087159958724, "wql": 0.19160275633213286, "wsql_by_level": [0.11921702306453705, 0.1798427767400755, 0.21040762287704848, 0.2321147763267757, 0.24018903730717306, 0.2330038092952642, 0.20994098572164058, 0.17722710493187102, 0.12248167072481017], "n_valid_labels": 5040, "n_masked_labels": 0, "mae_median": 5.020375507525982, "n_mase_elements": 5040, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.45570853675646317, "wql": 0.5185063261158916}}, {"config_id": "bizitobs_l2c__H__short", "leaderboard_key": "bizitobs_l2c/H/short", "dataset": "bizitobs_l2c/H", "term": "short", "freq": "H", "prediction_length": 48, "seasonality": 24, "n_variates": 7, "n_instances": 1, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.43744211877725736, "wql": 0.306751021444636, "wsql_by_level": [0.12845518194518704, 0.22146909752749813, 0.28943233655169903, 0.33668810146483885, 0.37014855030159677, 0.38925141609197206, 0.38404756827844544, 0.3604672440158595, 0.2807996968246274], "n_valid_labels": 336, "n_masked_labels": 0, "mae_median": 5.071506102525053, "n_mase_elements": 336, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.3840288994664711, "wql": 0.4652754878218807}}, {"config_id": "bizitobs_l2c__H__medium", "leaderboard_key": "bizitobs_l2c/H/medium", "dataset": "bizitobs_l2c/H", "term": "medium", "freq": "H", "prediction_length": 480, "seasonality": 24, "n_variates": 7, "n_instances": 1, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.6304829242294927, "wql": 0.2828865952176213, "wsql_by_level": [0.15106216711713033, 0.25351171362375946, 0.3105823304861972, 0.34165283339413277, 0.37635173300444147, 0.3679158123250064, 0.3232675397260872, 0.25181060871544203, 0.16982461856639489], "n_valid_labels": 3360, "n_masked_labels": 0, "mae_median": 5.9699882950345495, "n_mase_elements": 3360, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.44472341451408304, "wql": 0.3287825561336583}}], "cpu_seconds": 1.0800957710016519, "members": ["/workspace/research/backcast2_evals/weekly_slow_ar_delta3k", "/workspace/research/backcast2_evals/patch8_ema6000", "/workspace/research/backcast2_evals/split_patch_ema12000"], "member_checkpoint_hashes": ["094c7c694406075967f392a0d9ac1146bac984a90ab468c59d660a1b92fa7ba2", "308389b7217c080af9eb185559d4ee3cafa0f3e0f8c4dd8f5526b68198c89988", "1a2fb20a9fb5cae6526f2e36ea47559626bece78fd9c284899836505030ae9fe"], "weights": [0.3333333333333333, 0.3333333333333333, 0.3333333333333333], "selection_only": true, "cutoff": "valid_backcast2", "E102skill": 0.3650870167535245, "difference": -0.00013749455397837895} +{"composition": "equal quantile mean after each member applies its own fixed rules", "skill_score": 0.3895560076325473, "rel_mase_gmean": 0.7397944917104605, "rel_wql_gmean": 0.5037099789104116, "groups": {"term": {"short": 0.39497499447719087, "medium": 0.36817084374084685, "long": 0.3961751351498505}, "domain": {"Econ/Fin": 0.1867078283664393, "Energy": 0.31635325174873963, "Healthcare": 0.2409392551732944, "Nature": 0.5066352280851036, "Sales": 0.39984868686183916, "Transport": 0.5093415403788037, "Web/CloudOps": 0.3940107201665548}, "freq": {"A-DEC": 0.35784995850867973, "Q-DEC": 0.25447966877928774, "M": 0.148976696722656, "W-SUN": 0.1683943609547428, "D": 0.4400873284135568, "H": 0.4057663179487805, "15T": 0.2545202824131877, "W-FRI": 0.03968631706726722, "10T": 0.6070409132004327, "W-TUE": 0.2726738628251745, "W-THU": 0.3390868412221538, "W-WED": 0.37715156511841175, "5T": 0.4653160336561383, "10S": 0.2927867937240686}}, "configs": [{"config_id": "m4_yearly__A__short", "leaderboard_key": "m4_yearly/A/short", "dataset": "m4_yearly", "term": "short", "freq": "A-DEC", "prediction_length": 6, "seasonality": 1, "n_variates": 1, "n_instances": 72, "domain": "Econ/Fin", "n_cohorts": 3, "skipped_series": 235, "dropped_containers": 11, "metrics": {"mase": 1.9968311000247458, "wql": 0.09431077343688035, "wsql_by_level": [0.057351370674834486, 0.08460425826103793, 0.09675036185704364, 0.10488426826187748, 0.1141929048203329, 0.11318498653042676, 0.10820881729176861, 0.09524758021703066, 0.07437241301757068], "n_valid_labels": 432, "n_masked_labels": 0, "mae_median": 386.90164022092466, "n_mase_elements": 432, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.5327260887435096, "wql": 0.7740500878413724}}, {"config_id": "m4_quarterly__Q__short", "leaderboard_key": "m4_quarterly/Q/short", "dataset": "m4_quarterly", "term": "short", "freq": "Q-DEC", "prediction_length": 8, "seasonality": 4, "n_variates": 1, "n_instances": 164, "domain": "Econ/Fin", "n_cohorts": 3, "dropped_containers": 95, "metrics": {"mase": 1.3466628410343882, "wql": 0.07619546429116468, "wsql_by_level": [0.042053495533562364, 0.06642435787204258, 0.0810742047190762, 0.08988202179447301, 0.09444603993760482, 0.09470428424835266, 0.08887245008707427, 0.07575735078687426, 0.052544973641421994], "n_valid_labels": 1312, "n_masked_labels": 0, "mae_median": 467.81559930196624, "n_mase_elements": 1312, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.7201529208440769, "wql": 0.7717813094641036}}, {"config_id": "m4_monthly__M__short", "leaderboard_key": "m4_monthly/M/short", "dataset": "m4_monthly", "term": "short", "freq": "M", "prediction_length": 18, "seasonality": 12, "n_variates": 1, "n_instances": 148, "domain": "Econ/Fin", "n_cohorts": 3, "dropped_containers": 499, "metrics": {"mase": 1.3586919716401007, "wql": 0.1137018990727708, "wsql_by_level": [0.07387143973071765, 0.10365601243650747, 0.12558889012990404, 0.13686400165768292, 0.13963017215907328, 0.13580584565048176, 0.12544054841260036, 0.10674629458647017, 0.07571388689149945], "n_valid_labels": 2664, "n_masked_labels": 0, "mae_median": 632.0187633502949, "n_mase_elements": 2664, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.779267946142973, "wql": 0.7562270530823811}}, {"config_id": "m4_weekly__W__short", "leaderboard_key": "m4_weekly/W/short", "dataset": "m4_weekly", "term": "short", "freq": "W-SUN", "prediction_length": 13, "seasonality": 1, "n_variates": 1, "n_instances": 192, "domain": "Econ/Fin", "n_cohorts": 2, "dropped_containers": 4, "metrics": {"mase": 3.1376710929808236, "wql": 0.05610427278366708, "wsql_by_level": [0.03207904965590628, 0.04743180538291435, 0.057305160776317136, 0.06428230854640059, 0.06812246664712152, 0.06918429210907566, 0.06656931715735032, 0.0586662174764149, 0.04129783730150303], "n_valid_labels": 2496, "n_masked_labels": 0, "mae_median": 347.26442183898047, "n_mase_elements": 2496, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.9927479701235363, "wql": 0.6966198468336456}}, {"config_id": "m4_daily__D__short", "leaderboard_key": "m4_daily/D/short", "dataset": "m4_daily", "term": "short", "freq": "D", "prediction_length": 14, "seasonality": 1, "n_variates": 1, "n_instances": 192, "domain": "Econ/Fin", "n_cohorts": 2, "dropped_containers": 23, "metrics": {"mase": 2.899294632917307, "wql": 0.01782209940529695, "wsql_by_level": [0.012368559288437032, 0.017953943856232044, 0.020997375199711395, 0.022303848398829706, 0.02211073841633459, 0.020777217756722845, 0.018327784517731156, 0.014925917277556348, 0.01063350993611742], "n_valid_labels": 2688, "n_masked_labels": 0, "mae_median": 157.58748077210925, "n_mase_elements": 2688, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 1.1233738943586717, "wql": 1.1683129880583574}}, {"config_id": "m4_hourly__H__short", "leaderboard_key": "m4_hourly/H/short", "dataset": "m4_hourly", "term": "short", "freq": "H", "prediction_length": 48, "seasonality": 24, "n_variates": 1, "n_instances": 192, "domain": "Econ/Fin", "n_cohorts": 1, "metrics": {"mase": 1.1448737645362772, "wql": 0.030195311576824854, "wsql_by_level": [0.01450632321854546, 0.023160041176966722, 0.029678064430175035, 0.0358304213678648, 0.03931481124092293, 0.04008023758962699, 0.037634115512838316, 0.031165855762965624, 0.02038793389151782], "n_valid_labels": 9216, "n_masked_labels": 0, "mae_median": 292.94997708439445, "n_mase_elements": 9216, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.9366634566620275, "wql": 0.7293334098979858}}, {"config_id": "electricity__T__short", "leaderboard_key": "electricity/15T/short", "dataset": "electricity/15T", "term": "short", "freq": "15T", "prediction_length": 48, "seasonality": 96, "n_variates": 1, "n_instances": 192, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 0.6963746720913301, "wql": 0.05573553609690128, "wsql_by_level": [0.03357291719577235, 0.05048769495355534, 0.06113133394546291, 0.0673339201516293, 0.06955087669417274, 0.06858196942696926, 0.06365083936968094, 0.052885465011481225, 0.034424808123387406], "n_valid_labels": 9216, "n_masked_labels": 0, "mae_median": 23.270813270649846, "n_mase_elements": 9168, "n_seasonal_error_zero": 1, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8564447332091749, "wql": 0.8239957863230027}}, {"config_id": "electricity__T__medium", "leaderboard_key": "electricity/15T/medium", "dataset": "electricity/15T", "term": "medium", "freq": "15T", "prediction_length": 480, "seasonality": 96, "n_variates": 1, "n_instances": 192, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 0.9086374800774779, "wql": 0.06562175592497879, "wsql_by_level": [0.03810428198148621, 0.058562556936855206, 0.07160368470090045, 0.07931327378437407, 0.08240346934426789, 0.08132439285170404, 0.07526672608421923, 0.06265865854174585, 0.04135875909925615], "n_valid_labels": 92160, "n_masked_labels": 0, "mae_median": 45.90769322239002, "n_mase_elements": 92160, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.7273277053860124, "wql": 0.6700476497993054}}, {"config_id": "electricity__T__long", "leaderboard_key": "electricity/15T/long", "dataset": "electricity/15T", "term": "long", "freq": "15T", "prediction_length": 720, "seasonality": 96, "n_variates": 1, "n_instances": 192, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.525505258771378, "wql": 0.10136274316991528, "wsql_by_level": [0.044960879821685326, 0.07365369312572438, 0.09534593040703065, 0.11150829597624808, 0.12236944961760891, 0.12791602471238733, 0.1272245464872267, 0.11713715388789882, 0.09214871449342744], "n_valid_labels": 138240, "n_masked_labels": 0, "mae_median": 85.60192187346344, "n_mase_elements": 137520, "n_seasonal_error_zero": 1, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.9718135129102374, "wql": 0.8832261889065163}}, {"config_id": "electricity__H__short", "leaderboard_key": "electricity/H/short", "dataset": "electricity/H", "term": "short", "freq": "H", "prediction_length": 48, "seasonality": 24, "n_variates": 1, "n_instances": 192, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 0.9339368071829378, "wql": 0.08451570457917906, "wsql_by_level": [0.057753048430970115, 0.08226480428322495, 0.09582090553613322, 0.10229778463115763, 0.10328533576443624, 0.10005686705048246, 0.09174950283440365, 0.07641853333832672, 0.05099455934347652], "n_valid_labels": 9216, "n_masked_labels": 0, "mae_median": 365.78789349765026, "n_mase_elements": 9216, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.9021533773762123, "wql": 0.914463408155945}}, {"config_id": "electricity__H__medium", "leaderboard_key": "electricity/H/medium", "dataset": "electricity/H", "term": "medium", "freq": "H", "prediction_length": 480, "seasonality": 24, "n_variates": 1, "n_instances": 191, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.006297427269044, "wql": 0.061165138419857774, "wsql_by_level": [0.03361703495649566, 0.05166759434578359, 0.06347512617417748, 0.07096351483682163, 0.0748634270052266, 0.07546739246049308, 0.07202832763351609, 0.0630162031797374, 0.0453876251864683], "n_valid_labels": 91680, "n_masked_labels": 0, "mae_median": 119.91655007300226, "n_mase_elements": 91680, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8386311394110976, "wql": 0.5370471342452036}}, {"config_id": "electricity__H__long", "leaderboard_key": "electricity/H/long", "dataset": "electricity/H", "term": "long", "freq": "H", "prediction_length": 720, "seasonality": 24, "n_variates": 1, "n_instances": 192, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 0.9482095470456032, "wql": 0.05615345836757914, "wsql_by_level": [0.035456049559589815, 0.05064282126602756, 0.060462722237666244, 0.06617908206370164, 0.06854991299709427, 0.06769838405559461, 0.06329345961627485, 0.054382815434690944, 0.038715878077572256], "n_valid_labels": 138240, "n_masked_labels": 0, "mae_median": 124.21419495831209, "n_mase_elements": 137520, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 1}, "relative": {"mase": 0.828125229606739, "wql": 0.3895974292070914}}, {"config_id": "electricity__D__short", "leaderboard_key": "electricity/D/short", "dataset": "electricity/D", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 1, "n_instances": 192, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.0208449978332912, "wql": 0.04236610716126062, "wsql_by_level": [0.022930174804668003, 0.034609920466850554, 0.04320888101367589, 0.05061157488192572, 0.054984504292154554, 0.0550782045903533, 0.05050751702191169, 0.04103818935327935, 0.028325998026526526], "n_valid_labels": 5760, "n_masked_labels": 0, "mae_median": 3155.0729112885065, "n_mase_elements": 5730, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 1}, "relative": {"mase": 0.8879976876707474, "wql": 0.49665715084116496}}, {"config_id": "electricity__W__short", "leaderboard_key": "electricity/W/short", "dataset": "electricity/W", "term": "short", "freq": "W-FRI", "prediction_length": 8, "seasonality": 1, "n_variates": 1, "n_instances": 186, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.4911280475115984, "wql": 0.056031502441841186, "wsql_by_level": [0.03403167157968172, 0.05032646338430331, 0.06381012997265191, 0.07221977643955861, 0.07228943944903228, 0.06428776091367575, 0.05186269586027058, 0.05123353902703701, 0.044222045350359424], "n_valid_labels": 1452, "n_masked_labels": 36, "mae_median": 32724.16763078674, "n_mase_elements": 1440, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 6}, "relative": {"mase": 0.9705294841674605, "wql": 0.8299011498843935}}, {"config_id": "solar__T__short", "leaderboard_key": "solar/10T/short", "dataset": "solar/10T", "term": "short", "freq": "10T", "prediction_length": 48, "seasonality": 144, "n_variates": 1, "n_instances": 137, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 0.01601852853255743, "wql": 0.4304672828217729, "wsql_by_level": [0.19313393587875957, 0.31669038670192684, 0.4073168348047967, 0.4666404347287517, 0.5035122099136743, 0.528858131399247, 0.5308552246819881, 0.5142831168260029, 0.41291527046080884], "n_valid_labels": 6576, "n_masked_labels": 0, "mae_median": 0.04024039566632442, "n_mase_elements": 6576, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.7017727033189929, "wql": 0.02929915989361301}}, {"config_id": "solar__T__medium", "leaderboard_key": "solar/10T/medium", "dataset": "solar/10T", "term": "medium", "freq": "10T", "prediction_length": 480, "seasonality": 144, "n_variates": 1, "n_instances": 137, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 0.9600420031253558, "wql": 0.3500907238317365, "wsql_by_level": [0.27418397431172375, 0.40510800273791686, 0.45478022132823825, 0.4598562656660608, 0.4349718395633114, 0.3893210354750151, 0.3276210975418393, 0.24943900345006845, 0.1555350744114546], "n_valid_labels": 65760, "n_masked_labels": 0, "mae_median": 1.9883911493226405, "n_mase_elements": 65760, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.6998297201573468, "wql": 0.4757784389558314}}, {"config_id": "solar__T__long", "leaderboard_key": "solar/10T/long", "dataset": "solar/10T", "term": "long", "freq": "10T", "prediction_length": 720, "seasonality": 144, "n_variates": 1, "n_instances": 137, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.3710659245706367, "wql": 0.4921561471624368, "wsql_by_level": [0.5921053099511725, 0.6730755278015691, 0.6700792780273112, 0.6272611645515841, 0.5619412380643437, 0.4805118303950251, 0.3848602220207613, 0.2772256579743168, 0.16234509567584657], "n_valid_labels": 98640, "n_masked_labels": 0, "mae_median": 2.8277735929062633, "n_mase_elements": 98640, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8906144584774237, "wql": 0.6661135728385024}}, {"config_id": "solar__H__short", "leaderboard_key": "solar/H/short", "dataset": "solar/H", "term": "short", "freq": "H", "prediction_length": 48, "seasonality": 24, "n_variates": 1, "n_instances": 137, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.8215647883066035, "wql": 1.2809713286445232, "wsql_by_level": [1.1562071116288766, 1.6875777465060555, 1.7867397013661925, 1.6948241337233199, 1.5158755806283277, 1.3086838994999097, 1.0709737284645895, 0.807118874193595, 0.5007411817898416], "n_valid_labels": 6576, "n_masked_labels": 0, "mae_median": 23.96474583904483, "n_mase_elements": 6576, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.7739858536922466, "wql": 0.6587816242911256}}, {"config_id": "solar__H__medium", "leaderboard_key": "solar/H/medium", "dataset": "solar/H", "term": "medium", "freq": "H", "prediction_length": 480, "seasonality": 24, "n_variates": 1, "n_instances": 137, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 0.7577705618447346, "wql": 0.19958721292674253, "wsql_by_level": [0.1185204016846511, 0.179705312059717, 0.2170112984802342, 0.23903490662722385, 0.24939234708792876, 0.24776146142371328, 0.2317259163719266, 0.1942496757572412, 0.1188835968480468], "n_valid_labels": 65760, "n_masked_labels": 0, "mae_median": 10.199804727017876, "n_mase_elements": 65760, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.6376097136259046, "wql": 0.2982413140172017}}, {"config_id": "solar__H__long", "leaderboard_key": "solar/H/long", "dataset": "solar/H", "term": "long", "freq": "H", "prediction_length": 720, "seasonality": 24, "n_variates": 1, "n_instances": 137, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 0.7200532477625126, "wql": 0.20559683285571348, "wsql_by_level": [0.18231550942937055, 0.22492229637420466, 0.24380659902260088, 0.24805215853445903, 0.24173553692921843, 0.22780238889473872, 0.2044210061618349, 0.16758868731046145, 0.1097273130445326], "n_valid_labels": 98640, "n_masked_labels": 0, "mae_median": 10.123846055358113, "n_mase_elements": 98640, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8334464887619782, "wql": 0.27455215119878584}}, {"config_id": "solar__D__short", "leaderboard_key": "solar/D/short", "dataset": "solar/D", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 1, "n_instances": 137, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 0.6828874993941112, "wql": 0.14928606155763943, "wsql_by_level": [0.10293948175520116, 0.15253657328349718, 0.1783256054978091, 0.1895798660138208, 0.19036392291864423, 0.17968131931487913, 0.1554834674117354, 0.1208024580499453, 0.07386185977322247], "n_valid_labels": 4110, "n_masked_labels": 0, "mae_median": 191.33786379960333, "n_mase_elements": 4110, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 1.0265669616847226, "wql": 0.3903500708379611}}, {"config_id": "solar__W__short", "leaderboard_key": "solar/W/short", "dataset": "solar/W", "term": "short", "freq": "W-FRI", "prediction_length": 8, "seasonality": 1, "n_variates": 1, "n_instances": 137, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.1796782633405722, "wql": 0.13237867192981143, "wsql_by_level": [0.09880627671933405, 0.13614151430116472, 0.15900204650471061, 0.17001123473369792, 0.17033158367737974, 0.16396449717472925, 0.1440218180265793, 0.09904185086789351, 0.050087225362813806], "n_valid_labels": 1096, "n_masked_labels": 0, "mae_median": 1265.9088820854242, "n_mase_elements": 1096, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 1.1358319139891182, "wql": 0.9296153808012306}}, {"config_id": "hospital__M__short", "leaderboard_key": "hospital/M/short", "dataset": "hospital", "term": "short", "freq": "M", "prediction_length": 12, "seasonality": 12, "n_variates": 1, "n_instances": 192, "domain": "Healthcare", "n_cohorts": 1, "metrics": {"mase": 0.9650611808951928, "wql": 0.06701452164733225, "wsql_by_level": [0.04391370384633518, 0.06437858547937508, 0.07569239050600829, 0.08171296943136121, 0.0819235831312105, 0.07792278242192055, 0.07243126027340525, 0.06182548285151166, 0.043329936884862516], "n_valid_labels": 2304, "n_masked_labels": 0, "mae_median": 26.339854261113537, "n_mase_elements": 2304, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.917184901657952, "wql": 0.958614463965833}}, {"config_id": "covid_deaths__D__short", "leaderboard_key": "covid_deaths/D/short", "dataset": "covid_deaths", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 1, "n_instances": 192, "domain": "Healthcare", "n_cohorts": 1, "metrics": {"mase": 685.332318203542, "wql": 0.8367400585246769, "wsql_by_level": [0.18347583918359756, 0.3596452067883896, 0.5329096021613966, 0.7026816771446398, 0.8672663728531759, 1.0265614009114306, 1.17488841742336, 1.3028572800560336, 1.3803747302000688], "n_valid_labels": 5760, "n_masked_labels": 0, "mae_median": 214.7057933381154, "n_mase_elements": 2850, "n_seasonal_error_zero": 97, "n_seasonal_error_nan": 0}, "relative": {"mase": 1.0306658614045787, "wql": 1.0057055964429988}}, {"config_id": "us_births__D__short", "leaderboard_key": "us_births/D/short", "dataset": "us_births/D", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 1, "n_instances": 1, "domain": "Healthcare", "n_cohorts": 1, "metrics": {"mase": 0.5647386579920928, "wql": 0.028919259682802442, "wsql_by_level": [0.02051734202246418, 0.031027893371614705, 0.036048502539453756, 0.03611405511675562, 0.034044943289992816, 0.031894461658740235, 0.029141546710848253, 0.025542773595797708, 0.015941818839554693], "n_valid_labels": 30, "n_masked_labels": 0, "mae_median": 371.05016276041664, "n_mase_elements": 30, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.4820711481881469, "wql": 0.3032253073879135}}, {"config_id": "us_births__M__short", "leaderboard_key": "us_births/M/short", "dataset": "us_births/M", "term": "short", "freq": "M", "prediction_length": 12, "seasonality": 12, "n_variates": 1, "n_instances": 1, "domain": "Healthcare", "n_cohorts": 1, "metrics": {"mase": 0.5085407789942138, "wql": 0.012968075292075526, "wsql_by_level": [0.004303102041051231, 0.0077363949558552384, 0.012788252650658938, 0.015424604209921663, 0.016811657692282395, 0.017535840899075446, 0.016611887089931665, 0.014957049431829392, 0.010543888658073763], "n_valid_labels": 12, "n_masked_labels": 0, "mae_median": 5112.010416666667, "n_mase_elements": 12, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 1.0212446727042683, "wql": 0.8822890961122436}}, {"config_id": "us_births__W__short", "leaderboard_key": "us_births/W/short", "dataset": "us_births/W", "term": "short", "freq": "W-TUE", "prediction_length": 8, "seasonality": 1, "n_variates": 1, "n_instances": 1, "domain": "Healthcare", "n_cohorts": 1, "metrics": {"mase": 0.4881749759964642, "wql": 0.006742915263625082, "wsql_by_level": [0.006003898814607167, 0.006864239108807159, 0.005948443577625446, 0.0063774292893453745, 0.007463318545270138, 0.0075996400416965286, 0.0072948178242089904, 0.006914686976702416, 0.006219763194362515], "n_valid_labels": 8, "n_masked_labels": 0, "mae_median": 529.814453125, "n_mase_elements": 8, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.9212161758313413, "wql": 0.5742444864694869}}, {"config_id": "saugeenday__D__short", "leaderboard_key": "saugeen/D/short", "dataset": "saugeenday/D", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 1, "n_instances": 1, "domain": "Nature", "n_cohorts": 1, "metrics": {"mase": 0.2668320637788269, "wql": 0.16900847968998908, "wsql_by_level": [0.07731043710157902, 0.09124374221006319, 0.09234677100494404, 0.11806301745523912, 0.14212591848273898, 0.19090958210984946, 0.23801582344370076, 0.2782598482649291, 0.29280117713685794], "n_valid_labels": 30, "n_masked_labels": 0, "mae_median": 1.1938577175140381, "n_mase_elements": 30, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 1.185951288877324, "wql": 0.10866533134256415}}, {"config_id": "saugeenday__M__short", "leaderboard_key": "saugeen/M/short", "dataset": "saugeenday/M", "term": "short", "freq": "M", "prediction_length": 12, "seasonality": 12, "n_variates": 1, "n_instances": 1, "domain": "Nature", "n_cohorts": 1, "metrics": {"mase": 0.8019083143691277, "wql": 0.3447663630082628, "wsql_by_level": [0.17685088733973128, 0.2665897273923398, 0.3216868529352762, 0.36900570307676295, 0.4005632985087462, 0.403448819158748, 0.41850731516322986, 0.4139981157307005, 0.3322465477688303], "n_valid_labels": 12, "n_masked_labels": 0, "mae_median": 14.064674973487854, "n_mase_elements": 12, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.7490568384215482, "wql": 0.7867490607033338}}, {"config_id": "saugeenday__W__short", "leaderboard_key": "saugeen/W/short", "dataset": "saugeenday/W", "term": "short", "freq": "W-THU", "prediction_length": 8, "seasonality": 1, "n_variates": 1, "n_instances": 1, "domain": "Nature", "n_cohorts": 1, "metrics": {"mase": 0.4479101428518725, "wql": 0.2716841719150056, "wsql_by_level": [0.1302206753745989, 0.22571368822749546, 0.28360011107221816, 0.3030837154060274, 0.26828749390164414, 0.22140996478166136, 0.29143766285264155, 0.3385625826829112, 0.3828416529358519], "n_valid_labels": 8, "n_masked_labels": 0, "mae_median": 5.392578601837158, "n_mase_elements": 8, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.4029682529677202, "wql": 0.34371576208954147}}, {"config_id": "temperature_rain_with_missing__D__short", "leaderboard_key": "temperature_rain/D/short", "dataset": "temperature_rain_with_missing", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 1, "n_instances": 192, "domain": "Nature", "n_cohorts": 1, "metrics": {"mase": 0.9418289288006938, "wql": 0.6678012207864849, "wsql_by_level": [0.21678625563079706, 0.4055330389598721, 0.5741468141477218, 0.7166200981909755, 0.8262107881608138, 0.906820720334431, 0.9181700096954959, 0.8415931616676545, 0.6043301002906023], "n_valid_labels": 5760, "n_masked_labels": 0, "mae_median": 5.243044345335806, "n_mase_elements": 5760, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.38143077166730627, "wql": 0.35509874777654266}}, {"config_id": "kdd_cup_2018_with_missing__H__short", "leaderboard_key": "kdd_cup_2018/H/short", "dataset": "kdd_cup_2018_with_missing/H", "term": "short", "freq": "H", "prediction_length": 48, "seasonality": 24, "n_variates": 1, "n_instances": 176, "domain": "Nature", "n_cohorts": 2, "metrics": {"mase": 0.4705943860133582, "wql": 0.4157966504863415, "wsql_by_level": [0.17254159087564677, 0.28887740978273146, 0.38128217839593653, 0.4510005026827958, 0.4982290485585779, 0.5249752291595532, 0.5292355589634328, 0.5068742135827407, 0.3891541223756586], "n_valid_labels": 7981, "n_masked_labels": 467, "mae_median": 10.333274213277207, "n_mase_elements": 7981, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.5189791285857186, "wql": 0.4866925068041162}}, {"config_id": "kdd_cup_2018_with_missing__H__medium", "leaderboard_key": "kdd_cup_2018/H/medium", "dataset": "kdd_cup_2018_with_missing/H", "term": "medium", "freq": "H", "prediction_length": 480, "seasonality": 24, "n_variates": 1, "n_instances": 183, "domain": "Nature", "n_cohorts": 2, "metrics": {"mase": 0.8432648563645159, "wql": 0.45561038716194907, "wsql_by_level": [0.19433888141411107, 0.34997383353645295, 0.468540211270749, 0.5514200899126277, 0.5973268195665872, 0.600990390533035, 0.5597073850207196, 0.46791517731668153, 0.3102806958865783], "n_valid_labels": 83859, "n_masked_labels": 3981, "mae_median": 18.662953259113344, "n_mase_elements": 83859, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.9205105077950781, "wql": 0.44149985180090867}}, {"config_id": "kdd_cup_2018_with_missing__H__long", "leaderboard_key": "kdd_cup_2018/H/long", "dataset": "kdd_cup_2018_with_missing/H", "term": "long", "freq": "H", "prediction_length": 720, "seasonality": 24, "n_variates": 1, "n_instances": 182, "domain": "Nature", "n_cohorts": 2, "metrics": {"mase": 0.6980256671825639, "wql": 0.4487673088169827, "wsql_by_level": [0.17348640444749572, 0.30772369928549254, 0.41658445328133825, 0.5004838902081757, 0.5589181528747673, 0.5899371073891406, 0.5825362296732435, 0.5240547282709421, 0.3851811139222486], "n_valid_labels": 115026, "n_masked_labels": 16014, "mae_median": 17.113191825177523, "n_mase_elements": 115026, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.854371130522864, "wql": 0.36483190985630665}}, {"config_id": "kdd_cup_2018_with_missing__D__short", "leaderboard_key": "kdd_cup_2018/D/short", "dataset": "kdd_cup_2018_with_missing/D", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 1, "n_instances": 184, "domain": "Nature", "n_cohorts": 2, "metrics": {"mase": 0.9126124710638742, "wql": 0.41400514179295, "wsql_by_level": [0.20452037508282037, 0.34441885780525205, 0.43628570291190966, 0.4949969396197756, 0.5252641092480357, 0.5255472305126704, 0.49360785896235715, 0.4155642423487188, 0.2858409596450099], "n_valid_labels": 5412, "n_masked_labels": 108, "mae_median": 15.377688205629553, "n_mase_elements": 5412, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8823531141056573, "wql": 0.4698728814533824}}, {"config_id": "restaurant__D__short", "leaderboard_key": "restaurant/D/short", "dataset": "restaurant", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 1, "n_instances": 185, "domain": "Sales", "n_cohorts": 13, "skipped_series": 1, "metrics": {"mase": 0.7829474600874426, "wql": 0.293452765014078, "wsql_by_level": [0.14353622237796626, 0.23801112762248375, 0.3058506358647123, 0.35097433010561774, 0.3749722288517917, 0.3757465455619672, 0.3517836269109516, 0.2969150508493311, 0.20328511698188054], "n_valid_labels": 4965, "n_masked_labels": 585, "mae_median": 8.113220871875413, "n_mase_elements": 4965, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.6841832295346499, "wql": 0.4256411108889322}}, {"config_id": "hierarchical_sales__D__short", "leaderboard_key": "hierarchical_sales/D/short", "dataset": "hierarchical_sales/D", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 1, "n_instances": 118, "domain": "Sales", "n_cohorts": 1, "metrics": {"mase": 0.9165945404575011, "wql": 0.6230634195715564, "wsql_by_level": [0.19257177817151197, 0.3603045874468261, 0.5095166508624822, 0.6359077151337503, 0.7379809904740019, 0.8123449553136631, 0.8455490288160323, 0.8254601801752675, 0.6879348897504717], "n_valid_labels": 3540, "n_masked_labels": 0, "mae_median": 3.427442221577137, "n_mase_elements": 3540, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8600305398926182, "wql": 0.4809167937236858}}, {"config_id": "hierarchical_sales__W__short", "leaderboard_key": "hierarchical_sales/W/short", "dataset": "hierarchical_sales/W", "term": "short", "freq": "W-WED", "prediction_length": 8, "seasonality": 1, "n_variates": 1, "n_instances": 118, "domain": "Sales", "n_cohorts": 1, "metrics": {"mase": 0.8220106273494577, "wql": 0.40495970254413577, "wsql_by_level": [0.15586326408034157, 0.2598813650234217, 0.3419402614463747, 0.41102547931667366, 0.4673878267784049, 0.5103664274969811, 0.536013719436909, 0.523902537839536, 0.43825644147857956], "n_valid_labels": 944, "n_masked_labels": 0, "mae_median": 12.497673224089509, "n_mase_elements": 944, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.7306805360613744, "wql": 0.5309299395404431}}, {"config_id": "LOOP_SEATTLE__T__short", "leaderboard_key": "loop_seattle/5T/short", "dataset": "LOOP_SEATTLE/5T", "term": "short", "freq": "5T", "prediction_length": 48, "seasonality": 288, "n_variates": 1, "n_instances": 192, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 0.5349187112936977, "wql": 0.04573537190151744, "wsql_by_level": [0.03428067708385898, 0.050560965715162325, 0.05771704611606272, 0.05919957489943087, 0.05683773267977635, 0.05163142966080383, 0.044323800741619825, 0.034772381380048074, 0.022294738836893993], "n_valid_labels": 9216, "n_masked_labels": 0, "mae_median": 3.5091780909957984, "n_mase_elements": 9216, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.5702956121105398, "wql": 0.5609616785436202}}, {"config_id": "LOOP_SEATTLE__T__medium", "leaderboard_key": "loop_seattle/5T/medium", "dataset": "LOOP_SEATTLE/5T", "term": "medium", "freq": "5T", "prediction_length": 480, "seasonality": 288, "n_variates": 1, "n_instances": 192, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 0.9100552906137017, "wql": 0.08722277834839087, "wsql_by_level": [0.07171478445747766, 0.09605247952509383, 0.10698190437053635, 0.10981982512303494, 0.10684941078441199, 0.09858129647547335, 0.0856824335264002, 0.067393864987149, 0.04192900588594062], "n_valid_labels": 92160, "n_masked_labels": 0, "mae_median": 5.628008592525859, "n_mase_elements": 92160, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.49074362490102813, "wql": 0.4686240915854403}}, {"config_id": "LOOP_SEATTLE__T__long", "leaderboard_key": "loop_seattle/5T/long", "dataset": "LOOP_SEATTLE/5T", "term": "long", "freq": "5T", "prediction_length": 720, "seasonality": 288, "n_variates": 1, "n_instances": 192, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 0.6500794945211592, "wql": 0.05655358138192314, "wsql_by_level": [0.04690253043030119, 0.06130389392980508, 0.06795076629385957, 0.07000752172425144, 0.06880546053447704, 0.06415634750682926, 0.05641048814910025, 0.04487950019025415, 0.028565723678430247], "n_valid_labels": 138240, "n_masked_labels": 0, "mae_median": 4.0464437110547875, "n_mase_elements": 138240, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.4918715457546411, "wql": 0.43868824252633043}}, {"config_id": "LOOP_SEATTLE__H__short", "leaderboard_key": "loop_seattle/H/short", "dataset": "LOOP_SEATTLE/H", "term": "short", "freq": "H", "prediction_length": 48, "seasonality": 24, "n_variates": 1, "n_instances": 192, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 0.9335724414415559, "wql": 0.06235202029034882, "wsql_by_level": [0.05540359400420743, 0.07429583746227142, 0.08062058737963897, 0.08004392991866151, 0.07490475079481466, 0.06699605380792523, 0.056826319133918245, 0.04419908553122781, 0.02787802458047405], "n_valid_labels": 9216, "n_masked_labels": 0, "mae_median": 4.250828761348708, "n_mase_elements": 9216, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.5940801903714601, "wql": 0.5336932904315588}}, {"config_id": "LOOP_SEATTLE__H__medium", "leaderboard_key": "loop_seattle/H/medium", "dataset": "LOOP_SEATTLE/H", "term": "medium", "freq": "H", "prediction_length": 480, "seasonality": 24, "n_variates": 1, "n_instances": 192, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 0.696462120275957, "wql": 0.04875368636697769, "wsql_by_level": [0.04009743154774071, 0.050917997788528395, 0.05587980728692514, 0.057644577700848146, 0.05725514473093831, 0.054916759478981995, 0.05029918120513576, 0.042454197067577235, 0.029318080496123507], "n_valid_labels": 92160, "n_masked_labels": 0, "mae_median": 3.235563015043994, "n_mase_elements": 92160, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.513109309628044, "wql": 0.30897393470128104}}, {"config_id": "LOOP_SEATTLE__H__long", "leaderboard_key": "loop_seattle/H/long", "dataset": "LOOP_SEATTLE/H", "term": "long", "freq": "H", "prediction_length": 720, "seasonality": 24, "n_variates": 1, "n_instances": 192, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 0.659594595128472, "wql": 0.04652156907223157, "wsql_by_level": [0.03696938958324002, 0.04797240355180647, 0.05319179969074284, 0.055207529140060496, 0.05503048579964364, 0.052904051043625965, 0.048350700326860584, 0.04088944544614024, 0.028178317067963872], "n_valid_labels": 138240, "n_masked_labels": 0, "mae_median": 3.107244679397748, "n_mase_elements": 138240, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.3637817074585924, "wql": 0.2405754932931896}}, {"config_id": "LOOP_SEATTLE__D__short", "leaderboard_key": "loop_seattle/D/short", "dataset": "LOOP_SEATTLE/D", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 1, "n_instances": 192, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 0.5699060118700859, "wql": 0.025853525061792275, "wsql_by_level": [0.01605180072598903, 0.024115159749420762, 0.028956438289505317, 0.031647710856624406, 0.032403588501368104, 0.03138535687511882, 0.028663864561458544, 0.02380367119086307, 0.015654134805782413], "n_valid_labels": 5760, "n_masked_labels": 0, "mae_median": 1.8398868117067548, "n_mase_elements": 5760, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.2419606925978111, "wql": 0.22503868921418613}}, {"config_id": "SZ_TAXI__T__short", "leaderboard_key": "sz_taxi/15T/short", "dataset": "SZ_TAXI/15T", "term": "short", "freq": "15T", "prediction_length": 48, "seasonality": 96, "n_variates": 1, "n_instances": 156, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 0.44001407608885196, "wql": 0.17317839503205723, "wsql_by_level": [0.0918683183386289, 0.1482533375713214, 0.18532258633115162, 0.20822598576712967, 0.21829957538935266, 0.2166084884429117, 0.20147087443913778, 0.17033557402975635, 0.11822081497912507], "n_valid_labels": 7488, "n_masked_labels": 0, "mae_median": 2.4306645335226107, "n_mase_elements": 7488, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.732549022492019, "wql": 0.6274538572147967}}, {"config_id": "SZ_TAXI__T__medium", "leaderboard_key": "sz_taxi/15T/medium", "dataset": "SZ_TAXI/15T", "term": "medium", "freq": "15T", "prediction_length": 480, "seasonality": 96, "n_variates": 1, "n_instances": 156, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 0.7848120300942381, "wql": 0.22272686892869617, "wsql_by_level": [0.11035496118260098, 0.180175244707686, 0.23094012357907617, 0.2651585906375767, 0.2831106844186403, 0.28394505145066806, 0.266920182701546, 0.22754385162106588, 0.1563931300594054], "n_valid_labels": 74880, "n_masked_labels": 0, "mae_median": 5.410191487493221, "n_mase_elements": 74880, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.7767024784125712, "wql": 0.6707301058681476}}, {"config_id": "SZ_TAXI__H__short", "leaderboard_key": "sz_taxi/H/short", "dataset": "SZ_TAXI/H", "term": "short", "freq": "H", "prediction_length": 48, "seasonality": 24, "n_variates": 1, "n_instances": 156, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 0.49185003433263047, "wql": 0.15369062752044496, "wsql_by_level": [0.07554497150479685, 0.11681149879243229, 0.14493173672624501, 0.1658950321787611, 0.18193956179753445, 0.19115575853432623, 0.19085004343161233, 0.17944422336264146, 0.13664282135565506], "n_valid_labels": 7488, "n_masked_labels": 0, "mae_median": 1.9981748695999213, "n_mase_elements": 7488, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.9040617541728057, "wql": 0.6892342353634504}}, {"config_id": "M_DENSE__H__short", "leaderboard_key": "m_dense/H/short", "dataset": "M_DENSE/H", "term": "short", "freq": "H", "prediction_length": 48, "seasonality": 24, "n_variates": 1, "n_instances": 30, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 0.6788798307801768, "wql": 0.1072155029554015, "wsql_by_level": [0.06304705255997374, 0.09368898346820752, 0.11444276296324982, 0.1289585313492226, 0.13608976457337305, 0.13424200850645152, 0.12228386403700417, 0.1012077377524911, 0.07097882138863988], "n_valid_labels": 1440, "n_masked_labels": 0, "mae_median": 88.09738378094302, "n_mase_elements": 1440, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.89325809773895, "wql": 0.7557497116993788}}, {"config_id": "M_DENSE__H__medium", "leaderboard_key": "m_dense/H/medium", "dataset": "M_DENSE/H", "term": "medium", "freq": "H", "prediction_length": 480, "seasonality": 24, "n_variates": 1, "n_instances": 30, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 0.761243171153656, "wql": 0.2377963135549466, "wsql_by_level": [0.20532608577138486, 0.25786811480515437, 0.28003101675574993, 0.2845439400276828, 0.2775444865629882, 0.2610872560941965, 0.23549050353901294, 0.1977578488489696, 0.14051756958938003], "n_valid_labels": 14400, "n_masked_labels": 0, "mae_median": 138.13142140063974, "n_mase_elements": 14400, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.4805327452766241, "wql": 0.5151776256680263}}, {"config_id": "M_DENSE__H__long", "leaderboard_key": "m_dense/H/long", "dataset": "M_DENSE/H", "term": "long", "freq": "H", "prediction_length": 720, "seasonality": 24, "n_variates": 1, "n_instances": 30, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 0.559679298547275, "wql": 0.10569530934174286, "wsql_by_level": [0.07337071834538977, 0.09934257262428997, 0.11506212103078202, 0.12339593305735484, 0.12586162253554598, 0.12358171780611381, 0.11619305307280318, 0.10140128698145694, 0.07304875862194925], "n_valid_labels": 21600, "n_masked_labels": 0, "mae_median": 73.45239408764574, "n_mase_elements": 21600, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.4852246411753012, "wql": 0.2689333495030699}}, {"config_id": "M_DENSE__D__short", "leaderboard_key": "m_dense/D/short", "dataset": "M_DENSE/D", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 1, "n_instances": 30, "domain": "Transport", "n_cohorts": 1, "metrics": {"mase": 0.5483876750056417, "wql": 0.07647292066749443, "wsql_by_level": [0.05341867331397267, 0.07508299173830851, 0.08669133459613743, 0.09177776441175675, 0.09310897920042048, 0.08912780847684652, 0.08109498905096064, 0.06919910619556133, 0.048754639023485605], "n_valid_labels": 900, "n_masked_labels": 0, "mae_median": 54.33806819703844, "n_mase_elements": 900, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.47465494664322866, "wql": 0.3740681934091836}}, {"config_id": "ett1__T__short", "leaderboard_key": "ett1/15T/short", "dataset": "ett1/15T", "term": "short", "freq": "15T", "prediction_length": 48, "seasonality": 96, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 0.5526814562793871, "wql": 0.29843604841613736, "wsql_by_level": [0.20691749029848022, 0.3069824132012207, 0.357625133393576, 0.3775163445388652, 0.3864057890888009, 0.3789150718302819, 0.32953131404329067, 0.2347051960096339, 0.10732568334108707], "n_valid_labels": 336, "n_masked_labels": 0, "mae_median": 1.0350132066800835, "n_mase_elements": 336, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.48914610225278815, "wql": 0.39342343830265486}}, {"config_id": "ett1__T__medium", "leaderboard_key": "ett1/15T/medium", "dataset": "ett1/15T", "term": "medium", "freq": "15T", "prediction_length": 480, "seasonality": 96, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.2021965798071157, "wql": 0.35301164437566457, "wsql_by_level": [0.23663649787628022, 0.3728780016518156, 0.43339213234098417, 0.45640821246289887, 0.4508935997697171, 0.419267217684821, 0.36198980732512154, 0.27861382561154885, 0.16702550465779376], "n_valid_labels": 3360, "n_masked_labels": 0, "mae_median": 1.947610077766599, "n_mase_elements": 3360, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 1.1364297732354351, "wql": 0.9018485537621849}}, {"config_id": "ett1__T__long", "leaderboard_key": "ett1/15T/long", "dataset": "ett1/15T", "term": "long", "freq": "15T", "prediction_length": 720, "seasonality": 96, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.1857530774319667, "wql": 0.31836691457830624, "wsql_by_level": [0.2393167362106497, 0.3583668770377532, 0.40730622420542884, 0.41757846236023904, 0.399440931321071, 0.36232735301280705, 0.3067155772153581, 0.23213043201230665, 0.1421196378291424], "n_valid_labels": 5040, "n_masked_labels": 0, "mae_median": 2.062943595556158, "n_mase_elements": 5040, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 1.115106494776113, "wql": 0.969971104698872}}, {"config_id": "ett1__H__short", "leaderboard_key": "ett1/H/short", "dataset": "ett1/H", "term": "short", "freq": "H", "prediction_length": 48, "seasonality": 24, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.3969756521681276, "wql": 0.547784226092488, "wsql_by_level": [0.6309129480562058, 0.7233234785017986, 0.7433296932207936, 0.7065080183734245, 0.6364317338965346, 0.5444938305093084, 0.4403698371575645, 0.3235647200822271, 0.18112377503453564], "n_valid_labels": 336, "n_masked_labels": 0, "mae_median": 10.292127795694839, "n_mase_elements": 336, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.9576505831494143, "wql": 0.924903696699536}}, {"config_id": "ett1__H__medium", "leaderboard_key": "ett1/H/medium", "dataset": "ett1/H", "term": "medium", "freq": "H", "prediction_length": 480, "seasonality": 24, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 0.9120439870082669, "wql": 0.2328172728406775, "wsql_by_level": [0.13561523592604321, 0.20531428280037428, 0.2505461697224516, 0.27710169647176924, 0.289364013879569, 0.28808988739470315, 0.2689686693046782, 0.22664269787575075, 0.1537128021907578], "n_valid_labels": 3360, "n_masked_labels": 0, "mae_median": 5.362109633286794, "n_mase_elements": 3360, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.7318752185840395, "wql": 0.5139836535208311}}, {"config_id": "ett1__H__long", "leaderboard_key": "ett1/H/long", "dataset": "ett1/H", "term": "long", "freq": "H", "prediction_length": 720, "seasonality": 24, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.0149191095031243, "wql": 0.2724525708011962, "wsql_by_level": [0.16996791715962825, 0.25857478100850056, 0.3156856238919604, 0.3463162087036214, 0.34956017842903375, 0.33023875242508477, 0.2935743938200357, 0.2359814346550274, 0.15217384711787413], "n_valid_labels": 5040, "n_masked_labels": 0, "mae_median": 6.260802358313508, "n_mase_elements": 5040, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8027460243261768, "wql": 0.5060308656392628}}, {"config_id": "ett1__D__short", "leaderboard_key": "ett1/D/short", "dataset": "ett1/D", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.1976404475081437, "wql": 0.25459974539317337, "wsql_by_level": [0.15601203150078552, 0.24108454771575316, 0.29721257336355317, 0.32311188528679957, 0.3288063230801001, 0.31718133145661476, 0.2788511142584925, 0.21770195081747268, 0.13143595105898845], "n_valid_labels": 210, "n_masked_labels": 0, "mae_median": 112.48274988446917, "n_mase_elements": 210, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8735438407394557, "wql": 0.5764250532376664}}, {"config_id": "ett1__W__short", "leaderboard_key": "ett1/W/short", "dataset": "ett1/W", "term": "short", "freq": "W-THU", "prediction_length": 8, "seasonality": 1, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.9975674282776272, "wql": 0.29824257931804005, "wsql_by_level": [0.1421766677834141, 0.26933999775539097, 0.3287667008214046, 0.3642887035098973, 0.3734986910331037, 0.3727228887739497, 0.3484712079034589, 0.28946701960934296, 0.19545133667239808], "n_valid_labels": 56, "n_masked_labels": 0, "mae_median": 1271.3011454854693, "n_mase_elements": 56, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.9138432945570321, "wql": 1.0557308321464913}}, {"config_id": "ett2__T__short", "leaderboard_key": "ett2/15T/short", "dataset": "ett2/15T", "term": "short", "freq": "15T", "prediction_length": 48, "seasonality": 96, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 0.5397899386368822, "wql": 0.058414618020196554, "wsql_by_level": [0.033940518844315495, 0.050988146793909644, 0.059417056843117176, 0.06893266721551414, 0.07304518847229997, 0.07157788018495834, 0.0671871254391825, 0.05919982410359633, 0.04144315428487537], "n_valid_labels": 336, "n_masked_labels": 0, "mae_median": 1.0615838755454337, "n_mase_elements": 336, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.5071014012257135, "wql": 0.5060448348253209}}, {"config_id": "ett2__T__medium", "leaderboard_key": "ett2/15T/medium", "dataset": "ett2/15T", "term": "medium", "freq": "15T", "prediction_length": 480, "seasonality": 96, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.8614065796982358, "wql": 0.20608910780717146, "wsql_by_level": [0.07968990759342594, 0.12333733319957815, 0.17902671796276284, 0.2375942891299248, 0.27822085980789407, 0.2923347476194478, 0.2797793254261682, 0.23510443483955226, 0.14971435468578914], "n_valid_labels": 3360, "n_masked_labels": 0, "mae_median": 3.8472014122874714, "n_mase_elements": 3360, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8494888979663114, "wql": 0.6707721158442258}}, {"config_id": "ett2__T__long", "leaderboard_key": "ett2/15T/long", "dataset": "ett2/15T", "term": "long", "freq": "15T", "prediction_length": 720, "seasonality": 96, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.2344364244301387, "wql": 0.1440127861556565, "wsql_by_level": [0.11286240292772985, 0.15229720755890813, 0.17398000040622816, 0.18363012653296734, 0.18296628246632324, 0.16984708897381534, 0.14557005803744172, 0.11045491756558166, 0.06450699093191302], "n_valid_labels": 5040, "n_masked_labels": 0, "mae_median": 2.648470590596082, "n_mase_elements": 5040, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.9005424683558261, "wql": 0.7864686274825242}}, {"config_id": "ett2__H__short", "leaderboard_key": "ett2/H/short", "dataset": "ett2/H", "term": "short", "freq": "H", "prediction_length": 48, "seasonality": 24, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 0.8617553955177528, "wql": 0.11761517254785575, "wsql_by_level": [0.06989247654540615, 0.10329216587550691, 0.12715020024876683, 0.14049864936366663, 0.14562135012330293, 0.1415270148464149, 0.13260051521626717, 0.11614534082138937, 0.08180883988998097], "n_valid_labels": 336, "n_masked_labels": 0, "mae_median": 8.441254699514026, "n_mase_elements": 336, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.6943250986762217, "wql": 0.6957294118589596}}, {"config_id": "ett2__H__medium", "leaderboard_key": "ett2/H/medium", "dataset": "ett2/H", "term": "medium", "freq": "H", "prediction_length": 480, "seasonality": 24, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.2847900281433562, "wql": 0.1476510065866977, "wsql_by_level": [0.10910900890512192, 0.15529118459641364, 0.1819653640586392, 0.1913806168208345, 0.1858115279411601, 0.1710364968619861, 0.14881233298825255, 0.11580681341690481, 0.0696457136909665], "n_valid_labels": 3360, "n_masked_labels": 0, "mae_median": 11.451942405441619, "n_mase_elements": 3360, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 1.0022553016535802, "wql": 0.64824365036072}}, {"config_id": "ett2__H__long", "leaderboard_key": "ett2/H/long", "dataset": "ett2/H", "term": "long", "freq": "H", "prediction_length": 720, "seasonality": 24, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 0.8979591627120591, "wql": 0.10928966783870943, "wsql_by_level": [0.07601515889840231, 0.11175223903784692, 0.13147008165804627, 0.1382616531113939, 0.1340717527308429, 0.12559414048009354, 0.1119791473601466, 0.09135724648200182, 0.06310559078961053], "n_valid_labels": 5040, "n_masked_labels": 0, "mae_median": 8.216585392958997, "n_mase_elements": 5040, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.9100354689715255, "wql": 0.44309698768119626}}, {"config_id": "ett2__D__short", "leaderboard_key": "ett2/D/short", "dataset": "ett2/D", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.022710476565899, "wql": 0.08571220836430982, "wsql_by_level": [0.06961399704427605, 0.09282097047628182, 0.101026802533916, 0.09767543120760304, 0.09061522495494707, 0.08568563819259305, 0.08402818907453616, 0.08253035381401871, 0.06741326798061655], "n_valid_labels": 210, "n_masked_labels": 0, "mae_median": 133.17818326609475, "n_mase_elements": 210, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.9712828802468455, "wql": 0.5033638182193978}}, {"config_id": "ett2__W__short", "leaderboard_key": "ett2/W/short", "dataset": "ett2/W", "term": "short", "freq": "W-THU", "prediction_length": 8, "seasonality": 1, "n_variates": 7, "n_instances": 1, "domain": "Energy", "n_cohorts": 1, "metrics": {"mase": 1.4876685668409757, "wql": 0.11951459050115701, "wsql_by_level": [0.051666036971811755, 0.0689555716174706, 0.10047224327312931, 0.13767464749914238, 0.15745899330415508, 0.16632721002079978, 0.15866770002712827, 0.1374571839017068, 0.09695172789506916], "n_valid_labels": 56, "n_masked_labels": 0, "mae_median": 2210.6731781278336, "n_mase_elements": 56, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8226945465478942, "wql": 0.7581105816648592}}, {"config_id": "jena_weather__T__short", "leaderboard_key": "jena_weather/10T/short", "dataset": "jena_weather/10T", "term": "short", "freq": "10T", "prediction_length": 48, "seasonality": 144, "n_variates": 21, "n_instances": 1, "domain": "Nature", "n_cohorts": 1, "metrics": {"mase": 0.17283917280642122, "wql": 0.011274075976301126, "wsql_by_level": [0.004190315907400383, 0.008358343309081931, 0.01212666500777335, 0.014242825750575457, 0.015028476895567503, 0.014806443430653023, 0.014161790799763702, 0.011685523897972644, 0.006866298787922164], "n_valid_labels": 1008, "n_masked_labels": 0, "mae_median": 2.3502964941370816, "n_mase_elements": 1008, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.33981830359096293, "wql": 0.08197060799265798}}, {"config_id": "jena_weather__T__medium", "leaderboard_key": "jena_weather/10T/medium", "dataset": "jena_weather/10T", "term": "medium", "freq": "10T", "prediction_length": 480, "seasonality": 144, "n_variates": 21, "n_instances": 1, "domain": "Nature", "n_cohorts": 1, "metrics": {"mase": 0.9359756012619731, "wql": 0.06251301260081452, "wsql_by_level": [0.04030677468480963, 0.05710356400441254, 0.06595931213499077, 0.07091396741116544, 0.07228599892715848, 0.07163377429598924, 0.06801967892693718, 0.06419218737018752, 0.05220185565167988], "n_valid_labels": 10080, "n_masked_labels": 0, "mae_median": 12.437287454637477, "n_mase_elements": 10080, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.891443941337575, "wql": 0.301860017340692}}, {"config_id": "jena_weather__T__long", "leaderboard_key": "jena_weather/10T/long", "dataset": "jena_weather/10T", "term": "long", "freq": "10T", "prediction_length": 720, "seasonality": 144, "n_variates": 21, "n_instances": 1, "domain": "Nature", "n_cohorts": 1, "metrics": {"mase": 0.9317266387722616, "wql": 0.14882085566681172, "wsql_by_level": [0.06784464623768538, 0.11331229099730114, 0.14445958315725885, 0.1656997865515866, 0.17842666197213566, 0.18220283521081568, 0.18093277352149875, 0.1703187884639328, 0.1361903348890907], "n_valid_labels": 15120, "n_masked_labels": 0, "mae_median": 30.86520005103876, "n_mase_elements": 15120, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8838609587201758, "wql": 0.5038400918455571}}, {"config_id": "jena_weather__H__short", "leaderboard_key": "jena_weather/H/short", "dataset": "jena_weather/H", "term": "short", "freq": "H", "prediction_length": 48, "seasonality": 24, "n_variates": 21, "n_instances": 1, "domain": "Nature", "n_cohorts": 1, "metrics": {"mase": 0.6107823588570258, "wql": 0.07669683228192102, "wsql_by_level": [0.04666547322770843, 0.07339487497444658, 0.08650145971410184, 0.08990786506049749, 0.08958417753912905, 0.0869146391932048, 0.0816856024567423, 0.07325550107593726, 0.06236189729552142], "n_valid_labels": 1008, "n_masked_labels": 0, "mae_median": 15.185915632592884, "n_mase_elements": 1008, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8137232307811588, "wql": 0.4378086066199777}}, {"config_id": "jena_weather__H__medium", "leaderboard_key": "jena_weather/H/medium", "dataset": "jena_weather/H", "term": "medium", "freq": "H", "prediction_length": 480, "seasonality": 24, "n_variates": 21, "n_instances": 1, "domain": "Nature", "n_cohorts": 1, "metrics": {"mase": 1.1913123647234558, "wql": 0.11209131866002037, "wsql_by_level": [0.06604408496557185, 0.1065844128505221, 0.13075097992069085, 0.14098647359860592, 0.14015487506524252, 0.1334371384086362, 0.12044367424201248, 0.0997580674535337, 0.07066216143536748], "n_valid_labels": 10080, "n_masked_labels": 0, "mae_median": 27.629648347108834, "n_mase_elements": 10080, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.7852571106345393, "wql": 0.31847760283253534}}, {"config_id": "jena_weather__H__long", "leaderboard_key": "jena_weather/H/long", "dataset": "jena_weather/H", "term": "long", "freq": "H", "prediction_length": 720, "seasonality": 24, "n_variates": 21, "n_instances": 1, "domain": "Nature", "n_cohorts": 1, "metrics": {"mase": 1.1582470478607643, "wql": 0.10991399672500349, "wsql_by_level": [0.07211148557111993, 0.10751573996782803, 0.12784974811795977, 0.13673691650509825, 0.13633691733660547, 0.1296792694492055, 0.11675839960038996, 0.09643154149308036, 0.06580595248374412], "n_valid_labels": 15120, "n_masked_labels": 0, "mae_median": 29.32110430865546, "n_mase_elements": 15120, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.9783182793839802, "wql": 0.2978120885271558}}, {"config_id": "jena_weather__D__short", "leaderboard_key": "jena_weather/D/short", "dataset": "jena_weather/D", "term": "short", "freq": "D", "prediction_length": 30, "seasonality": 1, "n_variates": 21, "n_instances": 1, "domain": "Nature", "n_cohorts": 1, "metrics": {"mase": 1.169232124719657, "wql": 0.08263878579567557, "wsql_by_level": [0.05035811391017428, 0.07745369201187415, 0.093523806890676, 0.10119608368204751, 0.10393133512837573, 0.09946228434855345, 0.09043205971875563, 0.07484276620877442, 0.052548930261848786], "n_valid_labels": 630, "n_masked_labels": 0, "mae_median": 22.120076842580474, "n_mase_elements": 630, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8993452976498786, "wql": 0.4235376735067755}}, {"config_id": "bitbrains_fast_storage__T__short", "leaderboard_key": "bitbrains_fast_storage/5T/short", "dataset": "bitbrains_fast_storage/5T", "term": "short", "freq": "5T", "prediction_length": 48, "seasonality": 288, "n_variates": 2, "n_instances": 189, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.5775079655580716, "wql": 0.2003865645400581, "wsql_by_level": [0.057581083723544625, 0.0881114449259535, 0.122510531686695, 0.16534422109678518, 0.210537010260304, 0.27209070169916355, 0.3052127538046056, 0.3120231595396627, 0.2700681741238087], "n_valid_labels": 18144, "n_masked_labels": 0, "mae_median": 84.10285570596922, "n_mase_elements": 17472, "n_seasonal_error_zero": 12, "n_seasonal_error_nan": 2}, "relative": {"mase": 0.6263304129352975, "wql": 0.11344683650428948}}, {"config_id": "bitbrains_fast_storage__T__medium", "leaderboard_key": "bitbrains_fast_storage/5T/medium", "dataset": "bitbrains_fast_storage/5T", "term": "medium", "freq": "5T", "prediction_length": 480, "seasonality": 288, "n_variates": 2, "n_instances": 182, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.6901348857829284, "wql": 0.3690107213720071, "wsql_by_level": [0.2394821605659565, 0.3765867192719276, 0.4373699012404232, 0.4672045371031635, 0.4625693322492428, 0.445653120013799, 0.39670337398190186, 0.3086371862982958, 0.18689016162335328], "n_valid_labels": 174720, "n_masked_labels": 0, "mae_median": 333.437771724836, "n_mase_elements": 173760, "n_seasonal_error_zero": 2, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.7580440319692938, "wql": 0.6636975592817896}}, {"config_id": "bitbrains_fast_storage__T__long", "leaderboard_key": "bitbrains_fast_storage/5T/long", "dataset": "bitbrains_fast_storage/5T", "term": "long", "freq": "5T", "prediction_length": 720, "seasonality": 288, "n_variates": 2, "n_instances": 182, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.9868312775335087, "wql": 0.5691717412593821, "wsql_by_level": [0.1828466210858052, 0.34869782511028885, 0.49381012858918694, 0.6222312402659418, 0.7322196443407388, 0.8100066639410942, 0.8320495756195957, 0.7273056661836043, 0.3733783061981832], "n_valid_labels": 259510, "n_masked_labels": 2570, "mae_median": 647.4131234153801, "n_mase_elements": 248816, "n_seasonal_error_zero": 14, "n_seasonal_error_nan": 4}, "relative": {"mase": 0.8593137135599643, "wql": 1.0890087001299449}}, {"config_id": "bitbrains_fast_storage__H__short", "leaderboard_key": "bitbrains_fast_storage/H/short", "dataset": "bitbrains_fast_storage/H", "term": "short", "freq": "H", "prediction_length": 48, "seasonality": 24, "n_variates": 2, "n_instances": 188, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.9121125488117836, "wql": 0.3020528598958529, "wsql_by_level": [0.17952938021818973, 0.2925645070444723, 0.36247531793442833, 0.38969727421325245, 0.3817279180563985, 0.35904048291781365, 0.32029901406979105, 0.2636516852898642, 0.16949015931846617], "n_valid_labels": 18046, "n_masked_labels": 2, "mae_median": 297.34607857405393, "n_mase_elements": 17376, "n_seasonal_error_zero": 12, "n_seasonal_error_nan": 2}, "relative": {"mase": 0.7808303490333722, "wql": 0.6130798320221182}}, {"config_id": "bitbrains_rnd__T__short", "leaderboard_key": "bitbrains_rnd/5T/short", "dataset": "bitbrains_rnd/5T", "term": "short", "freq": "5T", "prediction_length": 48, "seasonality": 288, "n_variates": 2, "n_instances": 186, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.6116898085802783, "wql": 0.42191622608687807, "wsql_by_level": [0.15741022590636347, 0.2806321699485745, 0.37907485985623507, 0.45605955153627137, 0.5084182259368423, 0.5347493952683592, 0.533884997613639, 0.5094612702121236, 0.43755533850349426], "n_valid_labels": 17852, "n_masked_labels": 4, "mae_median": 77.61263406785552, "n_mase_elements": 17372, "n_seasonal_error_zero": 10, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.7106670928425681, "wql": 0.3310458527503943}}, {"config_id": "bitbrains_rnd__T__medium", "leaderboard_key": "bitbrains_rnd/5T/medium", "dataset": "bitbrains_rnd/5T", "term": "medium", "freq": "5T", "prediction_length": 480, "seasonality": 288, "n_variates": 2, "n_instances": 186, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 2.5272951374448316, "wql": 0.4741736014365157, "wsql_by_level": [0.159968494166483, 0.2923112225822017, 0.40287267674048294, 0.4945387763965621, 0.5653422778782251, 0.6185353688016403, 0.6447388529399369, 0.6288295104417871, 0.4604252329813219], "n_valid_labels": 178546, "n_masked_labels": 14, "mae_median": 233.5457129488998, "n_mase_elements": 177586, "n_seasonal_error_zero": 2, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.9330031433613323, "wql": 0.6121586408927034}}, {"config_id": "bitbrains_rnd__T__long", "leaderboard_key": "bitbrains_rnd/5T/long", "dataset": "bitbrains_rnd/5T", "term": "long", "freq": "5T", "prediction_length": 720, "seasonality": 288, "n_variates": 2, "n_instances": 181, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 1.1053764003353481, "wql": 0.6697040550925483, "wsql_by_level": [0.18371166619539286, 0.37607132655599246, 0.5599576240982479, 0.6861712982110791, 0.7812030446717791, 0.8598786819806716, 0.9094358238031027, 0.9090658558450779, 0.7618411744715904], "n_valid_labels": 135432, "n_masked_labels": 125208, "mae_median": 152.67101505556622, "n_mase_elements": 125728, "n_seasonal_error_zero": 4, "n_seasonal_error_nan": 22}, "relative": {"mase": 0.7757110898961324, "wql": 0.2951096369992216}}, {"config_id": "bitbrains_rnd__H__short", "leaderboard_key": "bitbrains_rnd/H/short", "dataset": "bitbrains_rnd/H", "term": "short", "freq": "H", "prediction_length": 48, "seasonality": 24, "n_variates": 2, "n_instances": 180, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 3.0096275310538014, "wql": 0.7518463657852327, "wsql_by_level": [0.38281130738336255, 0.6003541475766203, 0.7589626924917248, 0.8618057853404499, 0.9208951307196822, 0.9411039272231803, 0.9095647235282212, 0.8086026286770345, 0.5825169491268176], "n_valid_labels": 17280, "n_masked_labels": 0, "mae_median": 286.53255175107023, "n_mase_elements": 16320, "n_seasonal_error_zero": 6, "n_seasonal_error_nan": 14}, "relative": {"mase": 0.7775211881304942, "wql": 0.7617587014570445}}, {"config_id": "bizitobs_application__S__short", "leaderboard_key": "bizitobs_application/10S/short", "dataset": "bizitobs_application", "term": "short", "freq": "10S", "prediction_length": 60, "seasonality": 360, "n_variates": 2, "n_instances": 1, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.7318707225660919, "wql": 0.011281935885806905, "wsql_by_level": [0.008002952977089394, 0.012216445889839864, 0.014686335829542527, 0.015516230895705337, 0.015197434804566525, 0.013521153057479978, 0.01107071802032153, 0.007616451470211374, 0.0037097000275056217], "n_valid_labels": 120, "n_masked_labels": 0, "mae_median": 273.68488483428956, "n_mase_elements": 120, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8909428002602146, "wql": 0.7847250474451015}}, {"config_id": "bizitobs_application__S__medium", "leaderboard_key": "bizitobs_application/10S/medium", "dataset": "bizitobs_application", "term": "medium", "freq": "10S", "prediction_length": 600, "seasonality": 360, "n_variates": 2, "n_instances": 1, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.6319621067448185, "wql": 0.010551142170748325, "wsql_by_level": [0.008911790600579, 0.011083299612751915, 0.011366365425819949, 0.01110912057453741, 0.011002333712473809, 0.01097793218961999, 0.011199751093972607, 0.0109601698426615, 0.008349516484318753], "n_valid_labels": 1200, "n_masked_labels": 0, "mae_median": 263.9901331138611, "n_mase_elements": 1200, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.7743391009935632, "wql": 0.7965834991628736}}, {"config_id": "bizitobs_application__S__long", "leaderboard_key": "bizitobs_application/10S/long", "dataset": "bizitobs_application", "term": "long", "freq": "10S", "prediction_length": 900, "seasonality": 360, "n_variates": 2, "n_instances": 1, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.5720653459306403, "wql": 0.012138446231322628, "wsql_by_level": [0.008623859466472211, 0.009611433300550209, 0.009459482680717134, 0.01004388243342679, 0.012582167540513662, 0.015076849738837201, 0.01661950834678241, 0.0158053799855722, 0.011423452589031817], "n_valid_labels": 1800, "n_masked_labels": 0, "mae_median": 299.4340139155918, "n_mase_elements": 1800, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.9567305254553605, "wql": 0.8227330180228468}}, {"config_id": "bizitobs_service__S__short", "leaderboard_key": "bizitobs_service/10S/short", "dataset": "bizitobs_service", "term": "short", "freq": "10S", "prediction_length": 60, "seasonality": 360, "n_variates": 2, "n_instances": 21, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.7324628601848132, "wql": 0.012468266168907526, "wsql_by_level": [0.008215030129070992, 0.012485755828051727, 0.014889145286160158, 0.016000871359545917, 0.016105768183720788, 0.015278630292856189, 0.013275651753476963, 0.010118624988524415, 0.005844917698760588], "n_valid_labels": 2520, "n_masked_labels": 0, "mae_median": 16.491911796350326, "n_mase_elements": 2520, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.7696556880179742, "wql": 0.503318066478902}}, {"config_id": "bizitobs_service__S__medium", "leaderboard_key": "bizitobs_service/10S/medium", "dataset": "bizitobs_service", "term": "medium", "freq": "10S", "prediction_length": 600, "seasonality": 360, "n_variates": 2, "n_instances": 21, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.7984312321992689, "wql": 0.011001039924959608, "wsql_by_level": [0.007518777611379767, 0.010577598061715378, 0.012318945521906922, 0.013262129629493939, 0.013534719675842093, 0.013194749673509063, 0.01211883979469059, 0.01007703901860633, 0.006406560337492398], "n_valid_labels": 25200, "n_masked_labels": 0, "mae_median": 17.09932730270047, "n_mase_elements": 25200, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8673632301139702, "wql": 0.45992525896546305}}, {"config_id": "bizitobs_service__S__long", "leaderboard_key": "bizitobs_service/10S/long", "dataset": "bizitobs_service", "term": "long", "freq": "10S", "prediction_length": 900, "seasonality": 360, "n_variates": 2, "n_instances": 21, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.646613369495283, "wql": 0.010402683917260002, "wsql_by_level": [0.0062267995817844955, 0.008538692518941748, 0.010108725971076577, 0.011376764214893436, 0.012436127694055487, 0.013155873427271378, 0.012787249144287667, 0.011013426596545082, 0.007980496106484125], "n_valid_labels": 37800, "n_masked_labels": 0, "mae_median": 15.606604814255048, "n_mase_elements": 37800, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8002403081371326, "wql": 0.3728878713837755}}, {"config_id": "bizitobs_l2c__T__short", "leaderboard_key": "bizitobs_l2c/5T/short", "dataset": "bizitobs_l2c/5T", "term": "short", "freq": "5T", "prediction_length": 48, "seasonality": 288, "n_variates": 7, "n_instances": 1, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.28996107175004043, "wql": 0.08935709313411225, "wsql_by_level": [0.03476836707761851, 0.05700713165647231, 0.0733345462727266, 0.08690633538697647, 0.10064485729347158, 0.11181830219704957, 0.11767262198806329, 0.11786800047570861, 0.10419367585892322], "n_valid_labels": 336, "n_masked_labels": 0, "mae_median": 2.548459583804721, "n_mase_elements": 336, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.3641853237606104, "wql": 0.4278913576057856}}, {"config_id": "bizitobs_l2c__T__medium", "leaderboard_key": "bizitobs_l2c/5T/medium", "dataset": "bizitobs_l2c/5T", "term": "medium", "freq": "5T", "prediction_length": 480, "seasonality": 288, "n_variates": 7, "n_instances": 1, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.4321503031836867, "wql": 0.18432258806548052, "wsql_by_level": [0.09018466538428084, 0.14253605337405711, 0.18038778677145245, 0.20804248017819088, 0.22944895995378836, 0.2356383014527587, 0.22753973179059417, 0.19975734445073456, 0.1453679692334674], "n_valid_labels": 3360, "n_masked_labels": 0, "mae_median": 4.786018498880523, "n_mase_elements": 3360, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.8225710682193722, "wql": 0.7122892501188703}}, {"config_id": "bizitobs_l2c__T__long", "leaderboard_key": "bizitobs_l2c/5T/long", "dataset": "bizitobs_l2c/5T", "term": "long", "freq": "5T", "prediction_length": 720, "seasonality": 288, "n_variates": 7, "n_instances": 1, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.699228756292291, "wql": 0.34073021038707835, "wsql_by_level": [0.1277722036256575, 0.22579297019476952, 0.31174281595824704, 0.37821302407612, 0.4231092894326387, 0.45462519155466463, 0.4514393600779259, 0.4146039750481884, 0.27927306351549336], "n_valid_labels": 5040, "n_masked_labels": 0, "mae_median": 6.934133305663746, "n_mase_elements": 5040, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.4479447069213554, "wql": 0.4461418940946688}}, {"config_id": "bizitobs_l2c__H__short", "leaderboard_key": "bizitobs_l2c/H/short", "dataset": "bizitobs_l2c/H", "term": "short", "freq": "H", "prediction_length": 48, "seasonality": 24, "n_variates": 7, "n_instances": 1, "domain": "Web/CloudOps", "n_cohorts": 1, "metrics": {"mase": 0.47224914020222897, "wql": 0.182787381279163, "wsql_by_level": [0.1240704270771492, 0.20018397060257917, 0.2164037952932672, 0.22330980998235528, 0.21512922606792495, 0.20148822613798775, 0.18792831045147373, 0.1614166682162592, 0.11515599768347046], "n_valid_labels": 336, "n_masked_labels": 0, "mae_median": 4.900850257703236, "n_mase_elements": 336, "n_seasonal_error_zero": 0, "n_seasonal_error_nan": 0}, "relative": {"mase": 0.3716596580112479, "wql": 0.47618212083808953}}], "cpu_seconds": 1.03408993803896, "members": ["/workspace/research/backcast3_evals/weekly_slow_ar_delta3k", "/workspace/research/backcast3_evals/patch8_ema6000", "/workspace/research/backcast3_evals/split_patch_ema12000"], "member_checkpoint_hashes": ["094c7c694406075967f392a0d9ac1146bac984a90ab468c59d660a1b92fa7ba2", "308389b7217c080af9eb185559d4ee3cafa0f3e0f8c4dd8f5526b68198c89988", "1a2fb20a9fb5cae6526f2e36ea47559626bece78fd9c284899836505030ae9fe"], "weights": [0.3333333333333333, 0.3333333333333333, 0.3333333333333333], "selection_only": true, "cutoff": "valid_backcast3", "E102skill": 0.38962589808404846, "difference": -6.989045150118667e-05} +Main+0.000560751 and firstearlier+0.000432658; secondearlier-0.000137495 and thirdearlier-0.000069890. Mixed cutoff evidence, positive average diagnostic gain; select this one fixed candidate for full public replay and relocation/composition checks. No coefficient sweep. Publish only if fullscore exceeds E102 and all replay checks pass; do not claim held-out significance. +E107 audits passed before launch. CPU seed503:1.633014seconds; independent float64 NumPy feature reference, per-cycle-offset invariance, sampler byte identity, inherited parameters and CPU forward outputs bitwise preserved. Added49,184zero-initialized parameters,total36,849,984. Initialcheckpoint SHA470ef98d69d00b17defbf41c70a92b22574154cdb6e0317993bccf113e4af93b. GPU seed509: initial BF16 outputs bitwise identical; maxB64/C4096/H1024 paired objective0.314552695 and finite gradients; new query/head gradient norms0.00467448/0.01857908,headbias0.00118291. Peakreserved6290MiB/allocated5785.632MiB including EMA and Adam placeholders. Check wall45.549493seconds includes waiting on global evaluation lock;0optimizerupdates/no validationread. Model embeds its helper function directly, so generic standalone/ensemble publishers need no extra runtime module. Queued after E105queue12006; unchanged control stream and full-model optimizer. + +## E108 complete eligible-series corpus packing — resource preparation, no model training +Hypothesis for later data scaling: repeated training on the first approximately1B or5.35B packed points may limit fresh larger models even with fixed source balancing. Prepare every allowed series of length>=16 whose deterministic crop has a finite observation, using the already audited stratified_corpus/pack.py with a nonbinding1e12per-directory pointcap. Preserve the exact shuffled global series order, min length16, maximum deterministic crop131072, row-specific frequency, and95allowlisted directories. This extends packed_stratified_large as an exact prefix; it does not imply retaining every observation of series longer than131072. Use2CPUworkers, no GPU/model optimization. Audit every directory's exact binary/record prefix against the5.35Bpoint pack, independent Arrow replays, and bitwise original source probabilities before any training. No data downloads, no validation reads. Any fresh-model training recipe will be declared separately after current E94/E101 evidence. + +## Training exposure diagnostic for fresh capacity +Allowed-corpus/local-generator audit seed521,20480windows,3.303616CPU seconds,0optimizerupdates/no validationread. Meanfinite context1599.5786,target444.9583,total2044.537points per sampled row. Thus fresh96k/B48 presents approximately9.421Bfinite observations over4.608Mrows before sign duplication, including resampled/overlapping windows and synthetic values. Published E102ancestry contains22.848Msampled rows when taking each unique trained-run maximum; this includes subtracted-control branches and is compute invested, not an equivalent single-model trajectory. Complete per-run audit training_exposure_audit.json. Fresh146M currently has substantially less training exposure than the mature lineage; early capacity comparisons should not be interpreted as a scaling limit. Full eligible-series pack E108 is preparation for later longer training; no new training recipe selected by this audit alone. + +## E104 weekly matched-delta ensemble full public replay +- Checkpoint SHA-256: `1669bc65e42eaf879ed99fab670b8c12a950c4245c341a6f0bd8354c8494a2b8`. +- Evaluation: 97 configurations, 151170 instances, 0 failed configurations; not separately timed seconds. +- Overall skill 0.381736; relative MASE 0.738984; relative WQL 0.517264. +- term skill: long=0.4005, medium=0.4074, short=0.3642. +- domain skill: Econ/Fin=0.1238, Energy=0.2398, Healthcare=0.4894, Nature=0.4421, Sales=0.3581, Transport=0.4683, Web/CloudOps=0.4962. +- frequency skill: A=0.2968, D=0.3688, H=0.3955, M=0.1458, Q=0.1868, S=0.4250, T=0.4377, W=0.2400. +- variates skill: multivariate=0.3951, univariate=0.3709. +- Outcome: Fixed equal1/3 ensemble E104weekly correction/E71patch8_6000/E93splitpatch_12000. Full skill0.381736117455058 exceeds E102full0.38116304998662165 by0.00057306746843635. RelativeMASE0.7389844981008465 and WQL0.517264204380349 both improve;97configurations/151170instances/0failures,inference358.357500shared-H100 seconds. Two of four diagnostic cutoffs improve and two slightly decline; fullscore supports selecting this candidate after independent component/composition checks. No held-out reward or significance claim. + +E105 nested corpus volume seed197 training started at 2026-10-23T05:42:47Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +## E99 early cooldown final36000 +- Checkpoint SHA-256: `b985ce73ed119243ef51e5f0579bc43633419ce375eb7ce2fad7d1a1103acb51`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 26.4186589717865 seconds. +- Overall skill 0.363307; relative MASE 0.758030; relative WQL 0.534779. +- term skill: long=0.3893, medium=0.3898, short=0.3425. +- domain skill: Econ/Fin=0.1268, Energy=0.2221, Healthcare=0.4006, Nature=0.4132, Sales=0.3453, Transport=0.4557, Web/CloudOps=0.4925. +- frequency skill: A=0.3909, D=0.3370, H=0.3814, M=0.1134, Q=0.1976, S=0.4152, T=0.4195, W=0.2100. +- variates skill: multivariate=0.3805, univariate=0.3493. +- Outcome: Final0.363306598 trails original E79at36000 0.364859034 by0.001552437. The30k gain did not persist. Declared cooldown branch complete; no schedule replacement and no standalone publication. Exact24000state restored, same seed307/B48; only learning-rate schedule differs. + +## E79 fresh146M original schedule at24000 +- Checkpoint SHA-256: `e03ce08a9c1c357bce9d0aca3871c8817627cc660d16706cd85fddba9b5fe5eb`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 34.343666791915894 seconds. +- Overall skill 0.354494; relative MASE 0.763098; relative WQL 0.546035. +- term skill: long=0.3782, medium=0.3903, short=0.3308. +- domain skill: Econ/Fin=0.1204, Energy=0.2113, Healthcare=0.3859, Nature=0.4116, Sales=0.3203, Transport=0.4432, Web/CloudOps=0.4876. +- frequency skill: A=0.3886, D=0.3283, H=0.3717, M=0.0151, Q=0.1916, S=0.4207, T=0.4085, W=0.2469. +- variates skill: multivariate=0.3720, univariate=0.3402. +- Outcome: Skill0.354493848 improves on16000 0.349499286 but trails matched37M24000 0.357901602. Continue declared schedule; await halfLR at matched checkpoints. All own random initialization, seed307/B48/LR2e-4. + +E104 final replay suite passed in438.071371wall seconds including lock waits. Relocated examples bitwise identical,finite/ordered,31.678684seconds. Public inference358.357500seconds. Independently replayed changed first member and orderedfloat32 component average match allthree complete actual configurations exactly; receipts weekly_slow_ar_composition_replay.json and weekly_slow_ensemble_composition_checks.json. Descriptor1669bc65e42eaf879ed99fab670b8c12a950c4245c341a6f0bd8354c8494a2b8,110,068,216parameters. Selected for atomic publication over E102. Descriptive comparison: {"improved_configs": 42, "dataset_cluster_delta_percentiles": {"p025": -0.00031799803137674555, "p50": 0.0005000199376024583, "p975": 0.002059979380489236}, "bootstrap_seed": 317, "bootstrap_samples": 5000}. No held-out significance claim; two earlier diagnostic cutoffs have small regressions. E101teacher stays frozen E96. + +E99cooldown24k-to36k branch completed in1603.635706shared-H100 training-loop seconds; final rejected as recorded. E95all-shard24Mcap run completed12000 in2657.504791loop seconds; final evaluation pending while E105nested-volume starts in its allocation. + +## E109 duration of the matched weekly-synthetic correction — predeclared +E104's fixed3000-step correction improves the full replay but has two small earlier-cutoff regressions. At6000, E97weekly skill0.380715730 exceeds its matched E80control0.378288765 by0.002426965. Test the next already scheduled checkpoint duration with exactly the same coefficient1 formula E83 + E97weeklyEMA6000 - E80overflowEMA6000, then the same equal1/3 ensemble with E71patch8_6000 and E93splitpatch_12000. No coefficient search, optimizer updates or change to any inference rule. Evaluate all four diagnostic cutoffs before choosing a full replay; compare directly to currently published E104. This is validation checkpoint selection along the declared training run, not independent replication. All weights and synthetic generators were trained/generated here on allowed data. + +E106 spectral synthetic residuals seed197 training started at 2026-10-23T05:45:28Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +## E95 all-shard fixed-volume final12000 +- Checkpoint SHA-256: `453c1e5c5ff189f961d2b4001e9e299c72e26f86d3c4afe5b5a6a46fe5acaafe`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 25.615615367889404 seconds. +- Overall skill 0.377983; relative MASE 0.744078; relative WQL 0.519979. +- term skill: long=0.4039, medium=0.4059, short=0.3566. +- domain skill: Econ/Fin=0.1366, Energy=0.2370, Healthcare=0.4437, Nature=0.4338, Sales=0.3305, Transport=0.4678, Web/CloudOps=0.5031. +- frequency skill: A=0.3715, D=0.3556, H=0.3975, M=0.0998, Q=0.1933, S=0.4243, T=0.4390, W=0.2113. +- variates skill: multivariate=0.3973, univariate=0.3622. +- Outcome: Final0.377983250 recovers from weak3k/6k and exceeds matched E80final0.377423946 by0.000559304, while remaining below the old-corpus best3000checkpoint0.378663825. Training2657.504791loop seconds, seed197/B64/LR2e-5. Earlier matched-final cutoffs queued to test whether the late gain persists. E105nested-volume training now active. + +## E79 fresh37M original schedule at48000 +- Checkpoint SHA-256: `855f37f248e8104578ae2b356d2b7326a73236476f888fd1468e988be4238509`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 26.904500484466553 seconds. +- Overall skill 0.366773; relative MASE 0.755679; relative WQL 0.530618. +- term skill: long=0.3907, medium=0.3907, short=0.3479. +- domain skill: Econ/Fin=0.1392, Energy=0.2294, Healthcare=0.4025, Nature=0.4162, Sales=0.3289, Transport=0.4575, Web/CloudOps=0.4950. +- frequency skill: A=0.3873, D=0.3499, H=0.3856, M=0.0362, Q=0.2082, S=0.4181, T=0.4257, W=0.2180. +- variates skill: multivariate=0.3836, univariate=0.3530. +- Outcome: Skill0.366772722 improves over36000 0.364859034. Original96k schedule continues after E99cooldown failed its final comparison. Seed307/B48/LR2e-4, own random initialization and slow-AR generator; no publication yet. + +## E105 output-path collision incident and correction +At05:46UTC the E105watcher reported the exact E95checkpoint hash, revealing a launcher path error: packed_stratified_large training and its watcher both pointed to completed runs/stratified_corpus instead of runs/stratified_volume. This was an implementation error, not a model result. All four mislabeled E105cached evaluations were quarantined under incidents/stratified_volume_output_collision and are invalid for selection. The new trainer was stopped; its complete model/EMA/Adam/allRNG/prefetched-batch state at1000 was saved immutably as stratified_volume_recovery001000.pt SHA f153b05103d51042525b0ba765dc0a826241791ea7611baba8cfd07a54b5bca8. Its actual1000EMA SHA dd2b7db79f33a230724fe26a33e07793547329639046e32e4a380cc8b1a23485 and raw checkpoint were moved into the corrected directory. Resume from1000 preserves the intended training trajectory apart from normal numerical restart effects; unsaved later work is discarded and counted as incident compute. Original E95EMA/raw1000 and final optimizer recovery were overwritten and are no longer replayable; original E95EMA/raw2000..12000 including all selected later checkpoints remain intact. FinalE95EMA SHA453c1e5c5ff189f961d2b4001e9e299c72e26f86d3c4afe5b5a6a46fe5acaafe was verified unchanged. E95is complete and must not be resumed. Published E104and its assets were untouched; no E105result was published. Corrected E105launcher uses runs/stratified_volume and explicit immutable resume, watcher rescoring actual1000. E107queue was stopped while waiting and will be requeued against the new E105launcherPID. A process-start guard now rejects any fresh trainer output containing EMA/raw/recovery checkpoints unless --resume is explicit; CPU fixture verifies refusal before GPU initialization and preserves the existing marker. Incident logs/receipt/checkpoints retained. + +E105 nested corpus volume seed197 training started at 2026-10-23T05:47:49Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E101 own-ensemble distillation fresh146M training started at 2026-10-23T05:50:23Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +E105 incident first-phase last measured record: {"step": 1000, "loss": 0.2910519391298294, "seconds": 202.5, "lr": 1.9727406610312548e-05, "grad_norm": 0.13067036867141724, "context": 4096, "horizon": 512}. Corrected trainer13473 restored1000 exactly from immutable rescue and is progressing in runs/stratified_volume. E107requeued against corrected queue13470. New watch_evaluate.py verifies every cached/result checkpoint SHA and optionally the expected packed corpus; CPU behavioral fixture rejects wrong corpus/hash and accepts matching cached reports in3.652652seconds with no evaluator/GPU/optimizer execution (watch_evaluation_guard_checks.json). The completed sourceE95run now has no recovery.pt, preventing accidental use of the overwritten optimizer state. + +## E94 fresh146M half learning rate at16000 +- Checkpoint SHA-256: `19f9ead156ea9bc4a3edca1303bc5595057b2e1b89ff88e7bb7d9acf39618ba5`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 33.574928522109985 seconds. +- Overall skill 0.354616; relative MASE 0.765691; relative WQL 0.543981. +- term skill: long=0.3807, medium=0.3858, short=0.3318. +- domain skill: Econ/Fin=0.1226, Energy=0.2154, Healthcare=0.3836, Nature=0.4162, Sales=0.3402, Transport=0.4491, Web/CloudOps=0.4736. +- frequency skill: A=0.3784, D=0.3518, H=0.3719, M=0.0534, Q=0.1915, S=0.4189, T=0.4000, W=0.2223. +- variates skill: multivariate=0.3672, univariate=0.3444. +- Outcome: Skill0.354615664 exceeds highLR146Mat16000 0.349499286 by0.005116378, nearly matches highLRat24000 0.354493848, and trails matched37M16000 0.355318072 by0.000702409. Consistent rate advantage across4/8/16k supports LR1e-4 for a later fresh146Mdata comparison. Continue96k schedule. + +## E108 complete corpus pack audited +Complete pack contains62,399,537,510points and7,652,636series from all95allowed directories. Packer550.026052wall seconds with2CPUworkers; independent audit80.076772seconds; preparation total631.880773seconds. Exact binary and record prefix against packed_stratified_large in all95directories,260independent Arrow series replays with row-specific frequencies/crops, source probabilities bitwise equal to packed_sample. Receipts stratified_full_prepare_receipt.json and stratified_full_audit.json. No optimizer updates or validation reads. Runtime publication never depends on this training pack. + +## E110 fresh146M full eligible-series data comparison — predeclared +Hypothesis: greater allowed-series diversity improves a fresh larger model beyond the narrow original pack. E94halfLR beats E79wide at matched4k/8k/16k, so use E94's exact recipe and own random initial checkpoint SHA c9693619ca6277c26fef3b2bde37ff6796bec97b3af9f94588bbc5ddd329ec90. Same d1024/heads16/enc6/dec4/patch16/context4096/horizon1024,146,477,344parameters, seed307/B48/LR1e-4/96000steps/400warmup, paired loss,20%slow-AR synthetic, horizon RNG300310, static compilation, Adam/EMA settings. Change only packed_sample to audited packed_stratified_full; retain original source probabilities via source-weights-from packed_sample. This is a joint coverage+volume comparison against E94, not an isolation of either factor, and differing series lengths change subsequent sampling trajectories despite the same seed. No teacher or newly tested synthetic generator in this arm. Queue after E106spectral run in its released allocation; max-shape memory is covered by the unchanged E79/E94 architecture check at10,696MiB reserved. Screen4/8/16/24/48/72/96k; longer continuation decisions remain open for later evidence. Expected-output and corpus/hash guards apply. No external/pretrained assets. + +## E98 original postloss completion final12000 +- Checkpoint SHA-256: `b4b36749b469b0a5024747e6407351cc77fbfc0e77cd1776eabdc07318299f4c`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 24.10327959060669 seconds. +- Overall skill 0.376034; relative MASE 0.745577; relative WQL 0.522191. +- term skill: long=0.4024, medium=0.4041, short=0.3544. +- domain skill: Econ/Fin=0.1158, Energy=0.2406, Healthcare=0.4413, Nature=0.4287, Sales=0.3336, Transport=0.4650, Web/CloudOps=0.5007. +- frequency skill: A=0.3675, D=0.3453, H=0.3958, M=0.0708, Q=0.1957, S=0.4234, T=0.4412, W=0.2183. +- variates skill: multivariate=0.3933, univariate=0.3620. +- Outcome: Final0.376034254 is below originalE75at3000 0.378813891 and matchedE80final0.377423946. Completion3654..12000 cost1995.386513training-loop seconds, plus original799.915049seconds. Reject late completion; selected postloss contribution stays at3000. Full-state branch restored optimizer/EMA/allRNG without reset. + +## E105 corrected actual larger-volume first1000 +- Checkpoint SHA-256: `dd2b7db79f33a230724fe26a33e07793547329639046e32e4a380cc8b1a23485`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 24.012547969818115 seconds. +- Overall skill 0.377047; relative MASE 0.745081; relative WQL 0.520844. +- term skill: long=0.3978, medium=0.4060, short=0.3574. +- domain skill: Econ/Fin=0.1346, Energy=0.2367, Healthcare=0.4623, Nature=0.4324, Sales=0.3353, Transport=0.4653, Web/CloudOps=0.4978. +- frequency skill: A=0.3704, D=0.3548, H=0.3960, M=0.1135, Q=0.1955, S=0.4239, T=0.4334, W=0.2282. +- variates skill: multivariate=0.3927, univariate=0.3643. +- Outcome: Actual packed_stratified_large checkpoint SHA dd2b7db79f33a230724fe26a33e07793547329639046e32e4a380cc8b1a23485; skill0.377046610 nearly ties E95smallpack1000 0.377028371. Earlier mislabeled cached E105results were quarantined and are invalid. This correctly rescored checkpoint was moved from the incident directory and retains its original metadata/hash; continued training now uses a separate output. + +## E106 spectral synthetic residuals first1000 +- Checkpoint SHA-256: `6d81b602d598a452ab114d27433d713831611e69925cf81857839a083d14925c`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 22.007343530654907 seconds. +- Overall skill 0.377778; relative MASE 0.743525; relative WQL 0.520710. +- term skill: long=0.3998, medium=0.4063, short=0.3578. +- domain skill: Econ/Fin=0.1359, Energy=0.2365, Healthcare=0.4618, Nature=0.4329, Sales=0.3341, Transport=0.4674, Web/CloudOps=0.4992. +- frequency skill: A=0.3667, D=0.3581, H=0.3950, M=0.1087, Q=0.1987, S=0.4227, T=0.4366, W=0.2240. +- variates skill: multivariate=0.3935, univariate=0.3650. +- Outcome: Skill0.377777744 exceeds matched E80at1000 0.376804394 by0.000973350. Only half of locally generated residuals changed, original real/non-replaced streams preserved. Seed197/B64/LR2e-5, continue declared3000/6000/12000 before selection. + +## E109 fixed6000correction ensemble four-cutoff result +{"skill_score": 0.38571041915894055, "rel_mase_gmean": 0.7360297117883622, "rel_wql_gmean": 0.5126854026218823, "groups": {"term": {"short": 0.3684054892093498, "medium": 0.40861792906707406, "long": 0.40669389489538343}, "domain": {"Econ/Fin": 0.14352283454252435, "Energy": 0.24673599474557084, "Healthcare": 0.4852425866482829, "Nature": 0.44163298463938605, "Sales": 0.34379367871415345, "Transport": 0.46820747636240867, "Web/CloudOps": 0.5046932217026704}, "freq": {"A-DEC": 0.3760321167863795, "Q-DEC": 0.19766380569346853, "M": 0.12098833477007476, "W-SUN": 0.10769661791141583, "D": 0.3645387551794308, "H": 0.40107642673673183, "15T": 0.21690311587788813, "W-FRI": 0.015770663763870485, "10T": 0.6272364379377529, "W-TUE": 0.6408660517579567, "W-THU": 0.20503433411830196, "W-WED": 0.32981773944316883, "5T": 0.5197675944998887, "10S": 0.4252552385586551}}, "cpu_seconds": 1.219195496989414, "member_checkpoint_hashes": ["c8adf9cadf97dac5e120d8d4d2c8c025bffa2e8b55d8664bf900cce55d00a70b", "308389b7217c080af9eb185559d4ee3cafa0f3e0f8c4dd8f5526b68198c89988", "1a2fb20a9fb5cae6526f2e36ea47559626bece78fd9c284899836505030ae9fe"], "cutoff": "valid_screen", "E104skill": 0.3854686334562757, "difference": 0.0002417857026648651} +{"skill_score": 0.34038453448144423, "rel_mase_gmean": 0.7936376163611775, "rel_wql_gmean": 0.5482257309654212, "groups": {"term": {"short": 0.30705150791287494, "medium": 0.36037259523502396, "long": 0.40216620546988446}, "domain": {"Econ/Fin": 0.17253359368549226, "Energy": 0.23204288671949924, "Healthcare": 0.4136249395275713, "Nature": 0.3730211654221537, "Sales": 0.40518403019805194, "Transport": 0.3736095722850602, "Web/CloudOps": 0.45146748825459326}, "freq": {"A-DEC": 0.32644250202504, "Q-DEC": 0.23690729834334368, "M": 0.19096290262857263, "W-SUN": 0.05220186917057601, "D": 0.35265301620275713, "H": 0.3717913194271458, "15T": 0.22264807081310156, "W-FRI": 0.2309648955865844, "10T": 0.3251814465668018, "W-TUE": 0.5629848975400014, "W-THU": 0.2613953386383071, "W-WED": 0.3604296268765198, "5T": 0.44169178473335347, "10S": 0.3476495261147444}}, "cpu_seconds": 1.4167720968835056, "member_checkpoint_hashes": ["c8adf9cadf97dac5e120d8d4d2c8c025bffa2e8b55d8664bf900cce55d00a70b", "308389b7217c080af9eb185559d4ee3cafa0f3e0f8c4dd8f5526b68198c89988", "1a2fb20a9fb5cae6526f2e36ea47559626bece78fd9c284899836505030ae9fe"], "cutoff": "valid_backcast", "E104skill": 0.34022701617855455, "difference": 0.00015751830288968094} +{"skill_score": 0.3650268512866791, "rel_mase_gmean": 0.7650984666186498, "rel_wql_gmean": 0.5269790976955032, "groups": {"term": {"short": 0.35239958764222634, "medium": 0.3931690597943601, "long": 0.3687369083593992}, "domain": {"Econ/Fin": 0.12213255276326718, "Energy": 0.24166462607625983, "Healthcare": 0.3517132635055068, "Nature": 0.47875836217412926, "Sales": 0.5562721649607756, "Transport": 0.42517847470928805, "Web/CloudOps": 0.43741099158446717}, "freq": {"A-DEC": 0.33656065874085495, "Q-DEC": 0.15684832945264293, "M": 0.16665053208003056, "W-SUN": 0.07150895572001315, "D": 0.43035508666570155, "H": 0.39490487280100917, "15T": 0.10882809267173599, "W-FRI": 0.15456262907954288, "10T": 0.5092255418082989, "W-TUE": 0.08691901966493587, "W-THU": 0.35389841775428443, "W-WED": 0.5635809755138526, "5T": 0.4725753025882409, "10S": 0.2851839750626278}}, "cpu_seconds": 1.239942419109866, "member_checkpoint_hashes": ["c8adf9cadf97dac5e120d8d4d2c8c025bffa2e8b55d8664bf900cce55d00a70b", "308389b7217c080af9eb185559d4ee3cafa0f3e0f8c4dd8f5526b68198c89988", "1a2fb20a9fb5cae6526f2e36ea47559626bece78fd9c284899836505030ae9fe"], "cutoff": "valid_backcast2", "E104skill": 0.36494952219954613, "difference": 7.732908713298237e-05} +{"skill_score": 0.38931035191213115, "rel_mase_gmean": 0.7402180023142099, "rel_wql_gmean": 0.5038270416495189, "groups": {"term": {"short": 0.3946100958444625, "medium": 0.3680969397604268, "long": 0.39609503944824875}, "domain": {"Econ/Fin": 0.18617468677704974, "Energy": 0.31652315087317884, "Healthcare": 0.24343015434307236, "Nature": 0.5047900396770414, "Sales": 0.4000084000969678, "Transport": 0.5092713174572736, "Web/CloudOps": 0.3939880442254168}, "freq": {"A-DEC": 0.3575108227176348, "Q-DEC": 0.2547450248116794, "M": 0.148792543537967, "W-SUN": 0.17031337870235352, "D": 0.4392381685936584, "H": 0.40578214745866226, "15T": 0.2545743158438908, "W-FRI": 0.03969737538520679, "10T": 0.6065987129573612, "W-TUE": 0.2789739520044787, "W-THU": 0.3351510988039397, "W-WED": 0.3774145654877956, "5T": 0.46539939355428894, "10S": 0.2923169693971158}}, "cpu_seconds": 1.0821592810098082, "member_checkpoint_hashes": ["c8adf9cadf97dac5e120d8d4d2c8c025bffa2e8b55d8664bf900cce55d00a70b", "308389b7217c080af9eb185559d4ee3cafa0f3e0f8c4dd8f5526b68198c89988", "1a2fb20a9fb5cae6526f2e36ea47559626bece78fd9c284899836505030ae9fe"], "cutoff": "valid_backcast3", "E104skill": 0.3895560076325473, "difference": -0.00024565572041612693} +Three diagnostic gains and one decline: main+0.000241786,first+0.000157518,second+0.000077329,third-0.000245656. Small positive average; select this one fixed checkpoint-duration candidate for full public replay. No coefficient sweep or new optimizer updates. Merge2.075168CPU seconds, standalone SHA c8adf9cadf97dac5e120d8d4d2c8c025bffa2e8b55d8664bf900cce55d00a70b. + +## E109 weekly6000 matched-delta standalone valid_screen +- Checkpoint SHA-256: `c8adf9cadf97dac5e120d8d4d2c8c025bffa2e8b55d8664bf900cce55d00a70b`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 23.40149998664856 seconds. +- Overall skill 0.382470; relative MASE 0.738351; relative WQL 0.516480. +- term skill: long=0.4043, medium=0.4074, short=0.3640. +- domain skill: Econ/Fin=0.1333, Energy=0.2409, Healthcare=0.4856, Nature=0.4375, Sales=0.3381, Transport=0.4644, Web/CloudOps=0.5062. +- frequency skill: A=0.3761, D=0.3559, H=0.4008, M=0.1140, Q=0.2001, S=0.4253, T=0.4418, W=0.2372. +- variates skill: multivariate=0.3982, univariate=0.3696. +- Outcome: Fixed E83+E97weekly6000-E80overflow6000, coefficient1; no optimizer updates. Ensemble comparison is the selection criterion; third-earlier standalone performance declines. + +## E109 weekly6000 matched-delta standalone valid_backcast +- Checkpoint SHA-256: `c8adf9cadf97dac5e120d8d4d2c8c025bffa2e8b55d8664bf900cce55d00a70b`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 21.963260173797607 seconds. +- Overall skill 0.336472; relative MASE 0.796772; relative WQL 0.552567. +- term skill: long=0.3951, medium=0.3601, short=0.3030. +- domain skill: Econ/Fin=0.1606, Energy=0.2286, Healthcare=0.4001, Nature=0.3703, Sales=0.3955, Transport=0.3719, Web/CloudOps=0.4498. +- frequency skill: A=0.3210, D=0.3470, H=0.3693, M=0.1803, Q=0.2309, S=0.3394, T=0.3343, W=0.2926. +- variates skill: multivariate=0.3535, univariate=0.3226. +- Outcome: Fixed E83+E97weekly6000-E80overflow6000, coefficient1; no optimizer updates. Ensemble comparison is the selection criterion; third-earlier standalone performance declines. + +## E109 weekly6000 matched-delta standalone valid_backcast2 +- Checkpoint SHA-256: `c8adf9cadf97dac5e120d8d4d2c8c025bffa2e8b55d8664bf900cce55d00a70b`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 22.833601474761963 seconds. +- Overall skill 0.359364; relative MASE 0.770770; relative WQL 0.532473. +- term skill: long=0.3665, medium=0.3870, short=0.3457. +- domain skill: Econ/Fin=0.1191, Energy=0.2389, Healthcare=0.3074, Nature=0.4743, Sales=0.5518, Transport=0.4204, Web/CloudOps=0.4347. +- frequency skill: A=0.3504, D=0.4213, H=0.3925, M=0.1454, Q=0.1508, S=0.2803, T=0.3644, W=0.2553. +- variates skill: multivariate=0.3658, univariate=0.3541. +- Outcome: Fixed E83+E97weekly6000-E80overflow6000, coefficient1; no optimizer updates. Ensemble comparison is the selection criterion; third-earlier standalone performance declines. + +## E109 weekly6000 matched-delta standalone valid_backcast3 +- Checkpoint SHA-256: `c8adf9cadf97dac5e120d8d4d2c8c025bffa2e8b55d8664bf900cce55d00a70b`. +- Evaluation: 93 configurations, 8812 instances, 0 failed configurations; 21.22951889038086 seconds. +- Overall skill 0.387648; relative MASE 0.742514; relative WQL 0.505006. +- term skill: long=0.3931, medium=0.3619, short=0.3950. +- domain skill: Econ/Fin=0.1745, Energy=0.3225, Healthcare=0.2373, Nature=0.4950, Sales=0.4012, Transport=0.5086, Web/CloudOps=0.3906. +- frequency skill: A=0.3606, D=0.4357, H=0.4053, M=0.1367, Q=0.2600, S=0.2740, T=0.4318, W=0.2506. +- variates skill: multivariate=0.3723, univariate=0.3995. +- Outcome: Fixed E83+E97weekly6000-E80overflow6000, coefficient1; no optimizer updates. Ensemble comparison is the selection criterion; third-earlier standalone performance declines. + +## E95 all-shard final earlier cutoff1 +- Checkpoint SHA-256: `453c1e5c5ff189f961d2b4001e9e299c72e26f86d3c4afe5b5a6a46fe5acaafe`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 22.185170888900757 seconds. +- Overall skill 0.337351; relative MASE 0.796681; relative WQL 0.551166. +- term skill: long=0.3975, medium=0.3600, short=0.3037. +- domain skill: Econ/Fin=0.1590, Energy=0.2333, Healthcare=0.4170, Nature=0.3635, Sales=0.3931, Transport=0.3751, Web/CloudOps=0.4471. +- frequency skill: A=0.3146, D=0.3506, H=0.3671, M=0.1813, Q=0.2349, S=0.3420, T=0.3372, W=0.2919. +- variates skill: multivariate=0.3535, univariate=0.3242. +- Outcome: Matched seed197/B64/LR2e-5 final12000 comparison. E95gains main/first/third earlier but loses0.001849350at second earlier; average four-cutoff gain is essentially zero. Do not select a standalone or transferred coverage correction; E105volume and E110freshfull data comparisons remain separate experiments. + +## E80 matched original-corpus final earlier cutoff1 +- Checkpoint SHA-256: `f11d056b95f1c5eeef174265ebc51742952600e0dae1fa52900860447d5be819`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 22.276308298110962 seconds. +- Overall skill 0.336528; relative MASE 0.797567; relative WQL 0.551922. +- term skill: long=0.3974, medium=0.3587, short=0.3027. +- domain skill: Econ/Fin=0.1549, Energy=0.2300, Healthcare=0.4194, Nature=0.3635, Sales=0.3947, Transport=0.3732, Web/CloudOps=0.4488. +- frequency skill: A=0.3168, D=0.3524, H=0.3669, M=0.1806, Q=0.2286, S=0.3418, T=0.3360, W=0.2847. +- variates skill: multivariate=0.3529, univariate=0.3232. +- Outcome: Matched seed197/B64/LR2e-5 final12000 comparison. E95gains main/first/third earlier but loses0.001849350at second earlier; average four-cutoff gain is essentially zero. Do not select a standalone or transferred coverage correction; E105volume and E110freshfull data comparisons remain separate experiments. + +## E95 all-shard final earlier cutoff2 +- Checkpoint SHA-256: `453c1e5c5ff189f961d2b4001e9e299c72e26f86d3c4afe5b5a6a46fe5acaafe`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 22.514131546020508 seconds. +- Overall skill 0.359124; relative MASE 0.770269; relative WQL 0.533219. +- term skill: long=0.3649, medium=0.3876, short=0.3456. +- domain skill: Econ/Fin=0.1057, Energy=0.2383, Healthcare=0.3457, Nature=0.4701, Sales=0.5518, Transport=0.4215, Web/CloudOps=0.4312. +- frequency skill: A=0.3487, D=0.4241, H=0.3889, M=0.1590, Q=0.1439, S=0.2824, T=0.3606, W=0.2711. +- variates skill: multivariate=0.3622, univariate=0.3566. +- Outcome: Matched seed197/B64/LR2e-5 final12000 comparison. E95gains main/first/third earlier but loses0.001849350at second earlier; average four-cutoff gain is essentially zero. Do not select a standalone or transferred coverage correction; E105volume and E110freshfull data comparisons remain separate experiments. + +## E80 matched original-corpus final earlier cutoff2 +- Checkpoint SHA-256: `f11d056b95f1c5eeef174265ebc51742952600e0dae1fa52900860447d5be819`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 22.563663959503174 seconds. +- Overall skill 0.360973; relative MASE 0.768847; relative WQL 0.531126. +- term skill: long=0.3646, medium=0.3902, short=0.3479. +- domain skill: Econ/Fin=0.1009, Energy=0.2385, Healthcare=0.3613, Nature=0.4749, Sales=0.5481, Transport=0.4204, Web/CloudOps=0.4340. +- frequency skill: A=0.3509, D=0.4270, H=0.3905, M=0.1611, Q=0.1432, S=0.2801, T=0.3626, W=0.2745. +- variates skill: multivariate=0.3648, univariate=0.3579. +- Outcome: Matched seed197/B64/LR2e-5 final12000 comparison. E95gains main/first/third earlier but loses0.001849350at second earlier; average four-cutoff gain is essentially zero. Do not select a standalone or transferred coverage correction; E105volume and E110freshfull data comparisons remain separate experiments. + +## E95 all-shard final earlier cutoff3 +- Checkpoint SHA-256: `453c1e5c5ff189f961d2b4001e9e299c72e26f86d3c4afe5b5a6a46fe5acaafe`. +- Evaluation: 93 configurations, 8812 instances, 0 failed configurations; 22.70902395248413 seconds. +- Overall skill 0.387881; relative MASE 0.740491; relative WQL 0.506003. +- term skill: long=0.3979, medium=0.3625, short=0.3935. +- domain skill: Econ/Fin=0.1693, Energy=0.3185, Healthcare=0.2544, Nature=0.4987, Sales=0.3991, Transport=0.5048, Web/CloudOps=0.3958. +- frequency skill: A=0.3523, D=0.4336, H=0.4042, M=0.1203, Q=0.2579, S=0.2981, T=0.4301, W=0.2615. +- variates skill: multivariate=0.3768, univariate=0.3965. +- Outcome: Matched seed197/B64/LR2e-5 final12000 comparison. E95gains main/first/third earlier but loses0.001849350at second earlier; average four-cutoff gain is essentially zero. Do not select a standalone or transferred coverage correction; E105volume and E110freshfull data comparisons remain separate experiments. + +## E80 matched original-corpus final earlier cutoff3 +- Checkpoint SHA-256: `f11d056b95f1c5eeef174265ebc51742952600e0dae1fa52900860447d5be819`. +- Evaluation: 93 configurations, 8812 instances, 0 failed configurations; 22.906182527542114 seconds. +- Overall skill 0.387481; relative MASE 0.740121; relative WQL 0.506916. +- term skill: long=0.3953, medium=0.3592, short=0.3949. +- domain skill: Econ/Fin=0.1649, Energy=0.3182, Healthcare=0.2719, Nature=0.5016, Sales=0.3989, Transport=0.5041, Web/CloudOps=0.3891. +- frequency skill: A=0.3478, D=0.4406, H=0.4026, M=0.1367, Q=0.2596, S=0.2884, T=0.4271, W=0.2609. +- variates skill: multivariate=0.3727, univariate=0.3989. +- Outcome: Matched seed197/B64/LR2e-5 final12000 comparison. E95gains main/first/third earlier but loses0.001849350at second earlier; average four-cutoff gain is essentially zero. Do not select a standalone or transferred coverage correction; E105volume and E110freshfull data comparisons remain separate experiments. + +## E111 independent-seed replication of weekly synthetic coverage — predeclared +Hypothesis: the weekly-coverage gain is a reproducible training-data effect, rather than a favorable seed197continuation. Train two new matched arms from the same ownE62initial checkpoint with seed523/B64/LR2e-5/12000steps, paired loss, packed_sample and original source weights. Control uses overflow_control; candidate uses the already checked weekly_synth generator (unchanged20%synthetic; independent Bernoulli1/11 weekly replacement, weekly seed1000526, horizon seed300526). Both consume identical original real/non-replaced streams for this new seed. The primary matched comparison is at6000;1000/3000 are learning-curve diagnostics and12000tests durability. This is a new causal replication of the generator effect, not a retraining of any supplied reference baseline. Queue control after E107 and candidate after control, using one released allocation sequentially. Every output name is distinct and guarded; expected packed corpus and checkpoint hashes are checked by watchers. Earlier cutoffs required before any transfer or averaging of seed-specific corrections. No new model-soup rule is selected yet. + +## E97 weekly synthetic coverage final12000 +- Checkpoint SHA-256: `5104b21697e423740d2fa0fb55c4010759a83ab7f376b8704b0b992f56850203`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 20.680010318756104 seconds. +- Overall skill 0.380440; relative MASE 0.741395; relative WQL 0.517747. +- term skill: long=0.4027, medium=0.4063, short=0.3614. +- domain skill: Econ/Fin=0.1282, Energy=0.2358, Healthcare=0.4938, Nature=0.4316, Sales=0.3351, Transport=0.4668, Web/CloudOps=0.5051. +- frequency skill: A=0.3616, D=0.3526, H=0.3946, M=0.1286, Q=0.1969, S=0.4251, T=0.4412, W=0.2425. +- variates skill: multivariate=0.3967, univariate=0.3672. +- Outcome: Final0.380439539 remains above matchedE80final0.377423946 by0.003015593, though slightly below its own6000 0.380715730. Complete12000 in2600.472750shared-H100 training-loop seconds. The fixed6000delta ensemble E109 is being fully replayed; E111seed523 matched replication is queued. No held-out claim. + +## E109 weekly6000 correction ensemble full public replay +- Checkpoint SHA-256: `6bb9ddf58411d410255e32206c4ef484576a3818cbc27bb574159ebe56957573`. +- Evaluation: 97 configurations, 151170 instances, 0 failed configurations; not separately timed seconds. +- Overall skill 0.381981; relative MASE 0.738680; relative WQL 0.517067. +- term skill: long=0.4009, medium=0.4075, short=0.3645. +- domain skill: Econ/Fin=0.1246, Energy=0.2403, Healthcare=0.4904, Nature=0.4418, Sales=0.3580, Transport=0.4684, Web/CloudOps=0.4965. +- frequency skill: A=0.2972, D=0.3689, H=0.3957, M=0.1465, Q=0.1871, S=0.4253, T=0.4379, W=0.2406. +- variates skill: multivariate=0.3953, univariate=0.3712. +- Outcome: Full0.38198119952338705 exceeds publishedE1040.381736117455058 by0.00024508206832905, with both relativeMASE0.7386798626058647 and WQL0.5170673482219265 improved.97configs151170instances0fail,inference295.661474shared-H100 seconds. Three of four diagnostic cutoffs improve, third earlier declines0.000245656. Publish only after independent component/composition checks complete; adaptive validation result, not held-out significance. + +Recovery robustness: future trainer starts/resumes now save the already audited complete recovery state after their first completed update, in addition to every250steps. This protects progress during later static-shape compiler warmup; no objective, sampler or optimizer arithmetic changes. Already running trainers retain their loaded code. E101first50updates completed with finite loss0.744227227/gradientnorm0.361719310,teacher-valid1.0in logged batch,458.4loop seconds including compilation; remaining rare shapes may still compile. Compiler cache backup refreshed independently. + +E109 complete replay/check suite375.233383wall seconds includinglockwaits; inference295.661474seconds. Relocation bitwise/finite/ordered25.588799seconds. Independent changed-member replay and fixed orderedfloat32 composition match three complete actual configurations exactly (weekly_slow_ar6_composition_replay.json,weekly_slow6_ensemble_composition_checks.json). Descriptor6bb9ddf58411d410255e32206c4ef484576a3818cbc27bb574159ebe56957573,110068216parameters. Selected for atomic publication. Descriptive comparison {"improved_configs": 52, "dataset_cluster_delta_percentiles": {"p025": -4.58150388659706e-05, "p50": 0.00024309038144720851, "p975": 0.0005397384010364019}, "bootstrap_seed": 317, "bootstrap_samples": 5000}; no held-out significance claim. E101teacher staysE96. + +## E105 corrected larger-volume at3000 +- Checkpoint SHA-256: `df5bc1e16aa79d1074d7f2fb12f9b66ebdc8debf302fae7e7f388a89d2d2793a`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 21.78273630142212 seconds. +- Overall skill 0.376761; relative MASE 0.744501; relative WQL 0.521728. +- term skill: long=0.3980, medium=0.4051, short=0.3571. +- domain skill: Econ/Fin=0.1385, Energy=0.2347, Healthcare=0.4694, Nature=0.4324, Sales=0.3388, Transport=0.4642, Web/CloudOps=0.4967. +- frequency skill: A=0.3747, D=0.3532, H=0.3950, M=0.1208, Q=0.1966, S=0.4235, T=0.4334, W=0.2280. +- variates skill: multivariate=0.3912, univariate=0.3650. +- Outcome: Skill0.376761202 nearly ties E95smallpack3000 0.376741687 and trails E80original-pack3000 0.378663825. Corrected separate output;1001onward restored full1000state. Continue declared6000/12000, no selection. + +## E106 spectral residuals at3000 +- Checkpoint SHA-256: `a2445412f640657c3396806783fbcbbed5243b9443fe08615a45760c4becd98e`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 21.065938234329224 seconds. +- Overall skill 0.378295; relative MASE 0.743170; relative WQL 0.520091. +- term skill: long=0.4031, medium=0.4065, short=0.3573. +- domain skill: Econ/Fin=0.1451, Energy=0.2383, Healthcare=0.4329, Nature=0.4339, Sales=0.3314, Transport=0.4654, Web/CloudOps=0.5053. +- frequency skill: A=0.3698, D=0.3530, H=0.3972, M=0.1006, Q=0.2014, S=0.4236, T=0.4398, W=0.2184. +- variates skill: multivariate=0.3981, univariate=0.3621. +- Outcome: Skill0.378295411 trails matched E80at3000 0.378663825 by0.000368414. The1000gain did not persist. Continue declared6000/12000 before any earlier-cutoff selection; no transfer or publication. + +## E112 final-duration matched weekly correction — predeclared +E104at3000 and E109at6000 improved complete public replay with coefficient1 and unchanged equal-member composition. Finish the checkpoint-duration comparison at the already scheduled final12000: E83 + E97weeklyEMA12000 - E80overflowEMA12000, coefficient1. E97final0.380439539 minus E80final0.377423946 is a larger standalone matched gap than at6000, despite the candidate's own slight decline. Evaluate the fixed merged checkpoint at all four cutoffs, then the same equal1/3 ensemble with E71patch8_6000 and E93splitpatch_12000. No optimizer updates, coefficient sweep or change to any runtime rule. Compare to published E109; full public replay and checks required for publication. This completes the declared3k/6k/12k duration sequence, not a new training run or independent replication. E111seed523 pair separately tests reproducibility. + +## E113 frequency-scaled short training windows — preparation +Hypothesis: the sampler coverage audit shows many low-frequency real windows with short histories and long future labels, while low-frequency synthetic contexts are usually hundreds/thousands of steps. Change only the training-window distribution for half of rows whose existing period pair is[first<=52,second=1]. First consume the original sampler and requested-horizon augmentation completely. Using independent RNG seed1200200, choose a new forecast endpoint uniformly among finite original target positions; choose an integer horizon log-uniform from1 to min(originalH,max(8,2*period),available_span-8); retain the most recent min(originalC,max(64,32*period),available_span-newH) context positions. Require at least4finite context values. Move only existing contiguous allowed-series/local-generator observations across the new training cutoff, preserving all internal missing values and period labels; no new values, validation reads or cross-series information. Unselected rows and original/horizon RNG streams must remain bitwise unchanged. This is one joint history/horizon sampling hypothesis, not a separate causal claim about either subfactor. ComparatorE80: ownE62initial,seed197/B64/LR2e-5/12000,paired loss,original20%synthetic and source probabilities, unchanged overflow-safe model/runtime. CPU index/mask/RNG checks required before queueing after the E111pair. Screens1000/3000/6000/12000; earlier/full replay for selection. +E113 pretraining-only design revision before any optimizer step: initial CPU audit seed541/15360windows found median requested horizon2 for annual/quarterly changed rows. To avoid concentrating the new supervision on1–2step forecasts, set the log-uniform lower bound to4 whenever at least4future positions are available (otherwise the available maximum). All other rules are unchanged. No validation outcome was used for this revision. Initial audit retained as lowfreq_windows_checks_initial_horizon1.json,4.844810CPU seconds; rerun the index/RNG audit on the final sampler before queueing. + +E113 final sampler audit passes: seed541,15360paired control/candidate windows,2679eligible,1360changed,4.688498CPU seconds,0optimizerupdates/no validationread. Exact contiguous source indices verified for every changed context/target, all unselected rows and period labels unchanged, original/horizon RNG states bitwise identical, all three NumPy streams recover exactly. Model file byte-identical toE80 SHA44eeb23c037e91b8f67e432615ce46540a7ac4242919785f9c4218de23121499. Sampling diagnostics {"4": {"rows": 392, "median_context_before": 38.5, "median_context_after": 56.0, "median_target_before": 48.0, "median_target_after": 5.0}, "1": {"rows": 255, "median_context_before": 714.0, "median_context_after": 64.0, "median_target_before": 112.0, "median_target_after": 5.0}, "52": {"rows": 298, "median_context_before": 53.0, "median_context_after": 76.0, "median_target_before": 84.0, "median_target_after": 16.0}, "12": {"rows": 415, "median_context_before": 60.0, "median_context_after": 88.0, "median_target_before": 66.0, "median_target_after": 9.0}}. Queue after E111candidate14350. Final generator/rule metadata and publication provenance added; runtime remains postloss_inference. + +## E112 final-duration ensemble four-cutoff result +{"skill_score": 0.3858712532527797, "rel_mase_gmean": 0.7358504086107674, "rel_wql_gmean": 0.512541833459536, "groups": {"term": {"short": 0.36862786434327777, "medium": 0.4088431767481189, "long": 0.4066382857473849}, "domain": {"Econ/Fin": 0.1427335412380505, "Energy": 0.24665585766807274, "Healthcare": 0.4865626055775951, "Nature": 0.4421324797730376, "Sales": 0.3441164280500456, "Transport": 0.46824759257656046, "Web/CloudOps": 0.5048162617852268}, "freq": {"A-DEC": 0.3751097673324215, "Q-DEC": 0.1969044501960543, "M": 0.12093463923233339, "W-SUN": 0.1050444592094002, "D": 0.36501445271701716, "H": 0.40096290360047526, "15T": 0.21688931337366202, "W-FRI": 0.01363906764599443, "10T": 0.6277697339150299, "W-TUE": 0.6448188288204655, "W-THU": 0.20576781810192735, "W-WED": 0.33017644200384, "5T": 0.5200746054287371, "10S": 0.42522083651418774}}, "cpu_seconds": 1.3133022310212255, "member_checkpoint_hashes": ["6f1f0f6025afbe565633fee0b937a14f1efedf83ffbe7de65641c3800f60d8c7", "308389b7217c080af9eb185559d4ee3cafa0f3e0f8c4dd8f5526b68198c89988", "1a2fb20a9fb5cae6526f2e36ea47559626bece78fd9c284899836505030ae9fe"], "cutoff": "valid_screen", "E109skill": 0.38571041915894055, "difference": 0.00016083409383915725} +{"skill_score": 0.34026453805586865, "rel_mase_gmean": 0.7938743991145676, "rel_wql_gmean": 0.5482616396650213, "groups": {"term": {"short": 0.3069591344201037, "medium": 0.360270352157806, "long": 0.401968127644735}, "domain": {"Econ/Fin": 0.1719491915504786, "Energy": 0.23186920778828224, "Healthcare": 0.4136537686496582, "Nature": 0.3727904917107857, "Sales": 0.40577071577146684, "Transport": 0.3736370692721874, "Web/CloudOps": 0.4513164517386834}, "freq": {"A-DEC": 0.3259591929532375, "Q-DEC": 0.23688125417263828, "M": 0.19019710487662123, "W-SUN": 0.04859397725596748, "D": 0.35267813857571817, "H": 0.3715520522339072, "15T": 0.22235983728090003, "W-FRI": 0.23099317599917168, "10T": 0.3253705594505678, "W-TUE": 0.5636487610465628, "W-THU": 0.2596937123136588, "W-WED": 0.3622295587104454, "5T": 0.44209582636515465, "10S": 0.34758760809251354}}, "cpu_seconds": 1.2864791969768703, "member_checkpoint_hashes": ["6f1f0f6025afbe565633fee0b937a14f1efedf83ffbe7de65641c3800f60d8c7", "308389b7217c080af9eb185559d4ee3cafa0f3e0f8c4dd8f5526b68198c89988", "1a2fb20a9fb5cae6526f2e36ea47559626bece78fd9c284899836505030ae9fe"], "cutoff": "valid_backcast", "E109skill": 0.34038453448144423, "difference": -0.00011999642557558587} +{"skill_score": 0.36500280105746885, "rel_mase_gmean": 0.7650616372712448, "rel_wql_gmean": 0.5270443883489382, "groups": {"term": {"short": 0.3522992147072812, "medium": 0.39323093590574965, "long": 0.36882551999825675}, "domain": {"Econ/Fin": 0.12172400330140187, "Energy": 0.24177568201657473, "Healthcare": 0.351634580322554, "Nature": 0.47856500731963436, "Sales": 0.556767594467451, "Transport": 0.42520135798126146, "Web/CloudOps": 0.43731641066930993}, "freq": {"A-DEC": 0.3368001909919832, "Q-DEC": 0.15714702439125794, "M": 0.166107338147097, "W-SUN": 0.06814222014322535, "D": 0.4306717956748586, "H": 0.394613806291076, "15T": 0.10893648874402395, "W-FRI": 0.1553435881509515, "10T": 0.5096714148955988, "W-TUE": 0.0852329830425479, "W-THU": 0.35258387477718955, "W-WED": 0.5645835048514585, "5T": 0.4726250053861992, "10S": 0.2856493230118694}}, "cpu_seconds": 1.1841424808371812, "member_checkpoint_hashes": ["6f1f0f6025afbe565633fee0b937a14f1efedf83ffbe7de65641c3800f60d8c7", "308389b7217c080af9eb185559d4ee3cafa0f3e0f8c4dd8f5526b68198c89988", "1a2fb20a9fb5cae6526f2e36ea47559626bece78fd9c284899836505030ae9fe"], "cutoff": "valid_backcast2", "E109skill": 0.3650268512866791, "difference": -2.4050229210259566e-05} +{"skill_score": 0.38948675360484886, "rel_mase_gmean": 0.7399201304191406, "rel_wql_gmean": 0.5037387262498307, "groups": {"term": {"short": 0.3948199478576392, "medium": 0.3681915847463416, "long": 0.39625870682346687}, "domain": {"Econ/Fin": 0.1861914584696166, "Energy": 0.3162396550654769, "Healthcare": 0.2449973656886668, "Nature": 0.5053241835290441, "Sales": 0.400142202691233, "Transport": 0.5092939425383289, "Web/CloudOps": 0.39439674653047185}, "freq": {"A-DEC": 0.3579795125033336, "Q-DEC": 0.25418213861585404, "M": 0.14903096998383114, "W-SUN": 0.16834143185233952, "D": 0.44005142265195263, "H": 0.4058611111478776, "15T": 0.25413569489604193, "W-FRI": 0.03894964894687247, "10T": 0.6066278797992326, "W-TUE": 0.2775687319750957, "W-THU": 0.33593939814117346, "W-WED": 0.37754976142332153, "5T": 0.4657926027011683, "10S": 0.29225163220286654}}, "cpu_seconds": 1.1745618879795074, "member_checkpoint_hashes": ["6f1f0f6025afbe565633fee0b937a14f1efedf83ffbe7de65641c3800f60d8c7", "308389b7217c080af9eb185559d4ee3cafa0f3e0f8c4dd8f5526b68198c89988", "1a2fb20a9fb5cae6526f2e36ea47559626bece78fd9c284899836505030ae9fe"], "cutoff": "valid_backcast3", "E109skill": 0.38931035191213115, "difference": 0.00017640169271770922} +Main+0.000160834,firstearlier-0.000119996,secondearlier-0.000024050,thirdearlier+0.000176402. Mixed evidence with small positive average, select the final planned duration for one full public replay; no coefficient search or further intermediate-duration scouting. Merge1.324673CPU seconds, standaloneSHA6f1f0f6025afbe565633fee0b937a14f1efedf83ffbe7de65641c3800f60d8c7. + +## E112 weekly12000 matched-delta standalone valid_screen +- Checkpoint SHA-256: `6f1f0f6025afbe565633fee0b937a14f1efedf83ffbe7de65641c3800f60d8c7`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 23.014628887176514 seconds. +- Overall skill 0.382923; relative MASE 0.737814; relative WQL 0.516097. +- term skill: long=0.4041, medium=0.4080, short=0.3647. +- domain skill: Econ/Fin=0.1314, Energy=0.2405, Healthcare=0.4896, Nature=0.4389, Sales=0.3390, Transport=0.4645, Web/CloudOps=0.5065. +- frequency skill: A=0.3734, D=0.3574, H=0.4005, M=0.1143, Q=0.1979, S=0.4251, T=0.4425, W=0.2393. +- variates skill: multivariate=0.3987, univariate=0.3701. +- Outcome: Fixed E83+E97weekly12000-E80overflow12000, coefficient1; no optimizer updates. Final declared duration; equal-ensemble four-cutoff comparison recorded separately. + +## E112 weekly12000 matched-delta standalone valid_backcast +- Checkpoint SHA-256: `6f1f0f6025afbe565633fee0b937a14f1efedf83ffbe7de65641c3800f60d8c7`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 24.712749242782593 seconds. +- Overall skill 0.336057; relative MASE 0.797482; relative WQL 0.552765. +- term skill: long=0.3943, medium=0.3598, short=0.3028. +- domain skill: Econ/Fin=0.1596, Energy=0.2279, Healthcare=0.4002, Nature=0.3697, Sales=0.3973, Transport=0.3719, Web/CloudOps=0.4492. +- frequency skill: A=0.3195, D=0.3471, H=0.3685, M=0.1781, Q=0.2311, S=0.3391, T=0.3345, W=0.2912. +- variates skill: multivariate=0.3529, univariate=0.3224. +- Outcome: Fixed E83+E97weekly12000-E80overflow12000, coefficient1; no optimizer updates. Final declared duration; equal-ensemble four-cutoff comparison recorded separately. + +## E112 weekly12000 matched-delta standalone valid_backcast2 +- Checkpoint SHA-256: `6f1f0f6025afbe565633fee0b937a14f1efedf83ffbe7de65641c3800f60d8c7`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 22.29803729057312 seconds. +- Overall skill 0.359294; relative MASE 0.770653; relative WQL 0.532671. +- term skill: long=0.3666, medium=0.3870, short=0.3456. +- domain skill: Econ/Fin=0.1183, Energy=0.2393, Healthcare=0.3076, Nature=0.4737, Sales=0.5535, Transport=0.4205, Web/CloudOps=0.4340. +- frequency skill: A=0.3509, D=0.4224, H=0.3915, M=0.1439, Q=0.1518, S=0.2810, T=0.3649, W=0.2544. +- variates skill: multivariate=0.3654, univariate=0.3543. +- Outcome: Fixed E83+E97weekly12000-E80overflow12000, coefficient1; no optimizer updates. Final declared duration; equal-ensemble four-cutoff comparison recorded separately. + +## E112 weekly12000 matched-delta standalone valid_backcast3 +- Checkpoint SHA-256: `6f1f0f6025afbe565633fee0b937a14f1efedf83ffbe7de65641c3800f60d8c7`. +- Evaluation: 93 configurations, 8812 instances, 0 failed configurations; 23.48830485343933 seconds. +- Overall skill 0.388305; relative MASE 0.741401; relative WQL 0.504680. +- term skill: long=0.3936, medium=0.3621, short=0.3959. +- domain skill: Econ/Fin=0.1754, Energy=0.3218, Healthcare=0.2432, Nature=0.4966, Sales=0.4018, Transport=0.5087, Web/CloudOps=0.3917. +- frequency skill: A=0.3624, D=0.4385, H=0.4055, M=0.1372, Q=0.2587, S=0.2738, T=0.4319, W=0.2514. +- variates skill: multivariate=0.3722, univariate=0.4007. +- Outcome: Fixed E83+E97weekly12000-E80overflow12000, coefficient1; no optimizer updates. Final declared duration; equal-ensemble four-cutoff comparison recorded separately. + +## E94 fresh146M halfLR at24000 +- Checkpoint SHA-256: `ee69006629037179a8fd6d09233755cb8efceafb0a47494abceceea3cb7fae52`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 37.77550005912781 seconds. +- Overall skill 0.355452; relative MASE 0.766772; relative WQL 0.541806. +- term skill: long=0.3783, medium=0.3844, short=0.3349. +- domain skill: Econ/Fin=0.1190, Energy=0.2184, Healthcare=0.3835, Nature=0.4109, Sales=0.3450, Transport=0.4523, Web/CloudOps=0.4748. +- frequency skill: A=0.3831, D=0.3537, H=0.3714, M=0.0510, Q=0.1900, S=0.4180, T=0.4033, W=0.2182. +- variates skill: multivariate=0.3639, univariate=0.3487. +- Outcome: Skill0.355452449 exceeds highLR146M24000 0.354493848 by0.000958601; smaller than the16k advantage. Below37M24000 0.357901602. Continue existing schedule; E110full-corpus comparison retains this rate, unchanged recipe otherwise. + +## E105 corrected larger-volume at6000 +- Checkpoint SHA-256: `ec7daab696252802849e28ee1b8348e500ebe094e8ece39a956f01daff5a6943`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 23.547231912612915 seconds. +- Overall skill 0.376970; relative MASE 0.744376; relative WQL 0.521465. +- term skill: long=0.3995, medium=0.4061, short=0.3565. +- domain skill: Econ/Fin=0.1376, Energy=0.2329, Healthcare=0.4645, Nature=0.4332, Sales=0.3377, Transport=0.4673, Web/CloudOps=0.4981. +- frequency skill: A=0.3771, D=0.3531, H=0.3960, M=0.1187, Q=0.1962, S=0.4239, T=0.4342, W=0.2227. +- variates skill: multivariate=0.3915, univariate=0.3652. +- Outcome: Skill0.376970385 exceeds E95smallpack6000 0.376043220 by0.000927165 but remains below original-corpus E80at6000 0.378288765. Correct output and checkpoint hash; continue12000 before selection. + +## E106 spectral residuals at6000 +- Checkpoint SHA-256: `683f3824d3c1f605d17bb08d3eef127a54c67eca3867cfbcf1158710a55c4b24`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 24.36519145965576 seconds. +- Overall skill 0.379248; relative MASE 0.742652; relative WQL 0.518861. +- term skill: long=0.4037, medium=0.4079, short=0.3582. +- domain skill: Econ/Fin=0.1453, Energy=0.2390, Healthcare=0.4421, Nature=0.4321, Sales=0.3360, Transport=0.4646, Web/CloudOps=0.5073. +- frequency skill: A=0.3711, D=0.3532, H=0.3962, M=0.1095, Q=0.1992, S=0.4251, T=0.4421, W=0.2198. +- variates skill: multivariate=0.3998, univariate=0.3624. +- Outcome: Skill0.379247830 exceeds matched E80at6000 0.378288765 by0.000959065, recovering the3k deficit. Queue matched earlier-cutoff evaluations before any fixed weight transfer or publication. Original sampler/horizon streams preserved; only the declared stochastic residual law differs. + +## E106 spectral residuals at6000 valid_backcast +- Checkpoint SHA-256: `683f3824d3c1f605d17bb08d3eef127a54c67eca3867cfbcf1158710a55c4b24`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 24.24050521850586 seconds. +- Overall skill 0.337595; relative MASE 0.795167; relative WQL 0.551809. +- term skill: long=0.3992, medium=0.3598, short=0.3034. +- domain skill: Econ/Fin=0.1714, Energy=0.2258, Healthcare=0.4113, Nature=0.3681, Sales=0.3959, Transport=0.3715, Web/CloudOps=0.4544. +- frequency skill: A=0.3144, D=0.3510, H=0.3671, M=0.1923, Q=0.2368, S=0.3431, T=0.3372, W=0.2876. +- variates skill: multivariate=0.3548, univariate=0.3236. +- Outcome: Matched seed197/B64/LR2e-5 comparison. E106 minus E80: main +0.000959065, first earlier +0.002438307, second +0.001622232, third -0.002173652. Three gains and one regression; use all four for transfer selection. + +## E106 spectral residuals at6000 valid_backcast2 +- Checkpoint SHA-256: `683f3824d3c1f605d17bb08d3eef127a54c67eca3867cfbcf1158710a55c4b24`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 23.82012963294983 seconds. +- Overall skill 0.361328; relative MASE 0.767561; relative WQL 0.531426. +- term skill: long=0.3654, medium=0.3919, short=0.3475. +- domain skill: Econ/Fin=0.1166, Energy=0.2360, Healthcare=0.3636, Nature=0.4724, Sales=0.5443, Transport=0.4198, Web/CloudOps=0.4383. +- frequency skill: A=0.3461, D=0.4280, H=0.3911, M=0.1469, Q=0.1522, S=0.2809, T=0.3651, W=0.2687. +- variates skill: multivariate=0.3660, univariate=0.3575. +- Outcome: Matched seed197/B64/LR2e-5 comparison. E106 minus E80: main +0.000959065, first earlier +0.002438307, second +0.001622232, third -0.002173652. Three gains and one regression; use all four for transfer selection. + +## E106 spectral residuals at6000 valid_backcast3 +- Checkpoint SHA-256: `683f3824d3c1f605d17bb08d3eef127a54c67eca3867cfbcf1158710a55c4b24`. +- Evaluation: 93 configurations, 8812 instances, 0 failed configurations; 22.619502544403076 seconds. +- Overall skill 0.387494; relative MASE 0.739218; relative WQL 0.507514. +- term skill: long=0.3976, medium=0.3604, short=0.3937. +- domain skill: Econ/Fin=0.1834, Energy=0.3158, Healthcare=0.2403, Nature=0.5028, Sales=0.3975, Transport=0.5052, Web/CloudOps=0.3936. +- frequency skill: A=0.3594, D=0.4421, H=0.4034, M=0.1060, Q=0.2636, S=0.2895, T=0.4283, W=0.2584. +- variates skill: multivariate=0.3719, univariate=0.3995. +- Outcome: Matched seed197/B64/LR2e-5 comparison. E106 minus E80: main +0.000959065, first earlier +0.002438307, second +0.001622232, third -0.002173652. Three gains and one regression; use all four for transfer selection. + +## E80 matched overflow control at6000 valid_backcast +- Checkpoint SHA-256: `b19875c52ed5024383fb69ccc48cb07a5629ad8011abf134c7dcfcdc50fae2af`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 24.008483409881592 seconds. +- Overall skill 0.335156; relative MASE 0.799092; relative WQL 0.553149. +- term skill: long=0.3994, medium=0.3566, short=0.3001. +- domain skill: Econ/Fin=0.1475, Energy=0.2281, Healthcare=0.4131, Nature=0.3644, Sales=0.3963, Transport=0.3724, Web/CloudOps=0.4481. +- frequency skill: A=0.3117, D=0.3511, H=0.3667, M=0.1735, Q=0.2355, S=0.3418, T=0.3331, W=0.2854. +- variates skill: multivariate=0.3519, univariate=0.3215. +- Outcome: Matched seed197/B64/LR2e-5 comparison. E106 minus E80: main +0.000959065, first earlier +0.002438307, second +0.001622232, third -0.002173652. Three gains and one regression; use all four for transfer selection. + +## E80 matched overflow control at6000 valid_backcast2 +- Checkpoint SHA-256: `b19875c52ed5024383fb69ccc48cb07a5629ad8011abf134c7dcfcdc50fae2af`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 22.792612314224243 seconds. +- Overall skill 0.359706; relative MASE 0.769403; relative WQL 0.532850. +- term skill: long=0.3636, medium=0.3907, short=0.3458. +- domain skill: Econ/Fin=0.0946, Energy=0.2378, Healthcare=0.3660, Nature=0.4719, Sales=0.5485, Transport=0.4205, Web/CloudOps=0.4319. +- frequency skill: A=0.3470, D=0.4246, H=0.3913, M=0.1616, Q=0.1478, S=0.2802, T=0.3612, W=0.2648. +- variates skill: multivariate=0.3639, univariate=0.3563. +- Outcome: Matched seed197/B64/LR2e-5 comparison. E106 minus E80: main +0.000959065, first earlier +0.002438307, second +0.001622232, third -0.002173652. Three gains and one regression; use all four for transfer selection. + +## E80 matched overflow control at6000 valid_backcast3 +- Checkpoint SHA-256: `b19875c52ed5024383fb69ccc48cb07a5629ad8011abf134c7dcfcdc50fae2af`. +- Evaluation: 93 configurations, 8812 instances, 0 failed configurations; 23.62287187576294 seconds. +- Overall skill 0.389668; relative MASE 0.736019; relative WQL 0.506109. +- term skill: long=0.3966, medium=0.3611, short=0.3975. +- domain skill: Econ/Fin=0.1636, Energy=0.3183, Healthcare=0.2809, Nature=0.5072, Sales=0.3984, Transport=0.5059, Web/CloudOps=0.3910. +- frequency skill: A=0.3571, D=0.4456, H=0.4044, M=0.1427, Q=0.2560, S=0.2903, T=0.4280, W=0.2623. +- variates skill: multivariate=0.3727, univariate=0.4027. +- Outcome: Matched seed197/B64/LR2e-5 comparison. E106 minus E80: main +0.000959065, first earlier +0.002438307, second +0.001622232, third -0.002173652. Three gains and one regression; use all four for transfer selection. + +## E114 spectral-prior transfer — predeclared +E1066000 improves three of four cutoffs over matched E80, with a regression on the oldest cutoff. Test two fixed coefficient-one corrections on the E109 first member. A (additive): weekly_slow_ar_delta6k + spectral_synth/ema006000 - overflow_control/ema006000. B (replacement): A + partial_targets/ema006000 - long_memory_synth_recovery/ema006000; this removes the earlier slow-AR correction, testing overlap between the two stochastic priors. Keep the weekly6000 correction fixed for both even if E112publishes. All ancestors are our own allowed-data training. No optimizer updates, new training seed, coefficient search, runtime change or per-instance routing. Evaluate both standalone at all four cutoffs and as the unchanged equal1/3 ensemble with E71patch8_6000 and E93splitpatch_12000. Select for full replay only if the complete diagnostic pattern supports it; compare to E109 and the current published model. CPU merges and all evaluation times/hashes recorded in spectral_transfer_receipt.json and reports. + +## E112 final weekly12000 ensemble full public replay — selected +- Checkpoint SHA-256: `f01498eb73e4aa0539e81c67a8a80e56af47d1437f4d65ecc882d551468241a1`. +- Evaluation: 97 configurations, 151170 instances, 0 failed configurations; not separately timed seconds. +- Overall skill 0.382143; relative MASE 0.738501; relative WQL 0.516922. +- term skill: long=0.4008, medium=0.4078, short=0.3647. +- domain skill: Econ/Fin=0.1239, Energy=0.2402, Healthcare=0.4917, Nature=0.4423, Sales=0.3583, Transport=0.4684, Web/CloudOps=0.4966. +- frequency skill: A=0.2967, D=0.3694, H=0.3956, M=0.1464, Q=0.1869, S=0.4252, T=0.4382, W=0.2411. +- variates skill: multivariate=0.3955, univariate=0.3713. +- Outcome: Full skill0.382143195 exceeds E1090.381981200 by0.000161996. All97configs151170instances succeeded. Relocation deterministic and finite/ordered; independent three-configuration composition exact. Four-cutoff evidence is mixed with small positive average. Validation selection, not a held-out significance claim. + +E112 complete public suite {"package": "/workspace/research/candidate-weekly-slow12-ensemble", "status": "complete", "steps": [{"name": "relocation", "returncode": 0, "seconds": 61.15590557013638}, {"name": "full_public_replay", "returncode": 0, "seconds": 382.10087375016883}, {"name": "independent_weekly_slow_replay", "returncode": 0, "seconds": 31.673624618910253}, {"name": "composition", "returncode": 0, "seconds": 0.6345367848407477}, {"name": "descriptive_comparison", "returncode": 0, "seconds": 0.2616488521452993}], "current_step": "descriptive_comparison", "seconds": 475.838925806107, "skill": 0.3821431951028217}. Descriptive comparison {"candidate": "/workspace/research/valid-report-weekly-slow12-ensemble.json", "parent": "/workspace/research/valid-report-weekly-slow6-ensemble.json", "candidate_hash": "f01498eb73e4aa0539e81c67a8a80e56af47d1437f4d65ecc882d551468241a1", "parent_hash": "6bb9ddf58411d410255e32206c4ef484576a3818cbc27bb574159ebe56957573", "skill_difference": 0.00016199557943463727, "n_configs": 97, "n_dataset_clusters": 28, "improved_configs": 55, "bootstrap_seed": 317, "bootstrap_samples": 5000, "dataset_cluster_delta_percentiles": {"p025": -4.304766264538462e-05, "p50": 0.00016053828879819543, "p975": 0.0003767170761483723}, "note": "Descriptive resampling only. Adaptive validation selection and reused windows prevent treating this as a held-out significance test."}. Atomic publication selected. Model tensors, runtime code and equal weights are unchanged from replay. E101teacher remains frozen E96. + +E107 learned sixteen-cycle summary seed197 training started at 2026-10-23T06:21:44Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +## E114 spectral_add_delta6k valid_screen +- Checkpoint SHA-256: `c3dfc433d51355228fc13d04913db1a7edf83030c33283b150bdcc50f5ae6ea2`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 23.866043090820312 seconds. +- Overall skill 0.382009; relative MASE 0.739202; relative WQL 0.516656. +- term skill: long=0.4047, medium=0.4077, short=0.3629. +- domain skill: Econ/Fin=0.1448, Energy=0.2399, Healthcare=0.4635, Nature=0.4395, Sales=0.3355, Transport=0.4625, Web/CloudOps=0.5089. +- frequency skill: A=0.3780, D=0.3567, H=0.4013, M=0.0935, Q=0.2062, S=0.4246, T=0.4432, W=0.2297. +- variates skill: multivariate=0.3997, univariate=0.3676. +- Outcome: Fixed coefficient-one spectral transfer; additive and old-slow-AR replacement are the two predeclared ablations. No optimization. Ensemble selection recorded separately. + +## E114 spectral_add_delta6k valid_backcast +- Checkpoint SHA-256: `c3dfc433d51355228fc13d04913db1a7edf83030c33283b150bdcc50f5ae6ea2`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 23.915529251098633 seconds. +- Overall skill 0.338230; relative MASE 0.793941; relative WQL 0.551602. +- term skill: long=0.3953, medium=0.3603, short=0.3061. +- domain skill: Econ/Fin=0.1783, Energy=0.2263, Healthcare=0.4002, Nature=0.3726, Sales=0.3946, Transport=0.3707, Web/CloudOps=0.4554. +- frequency skill: A=0.3234, D=0.3463, H=0.3697, M=0.2025, Q=0.2286, S=0.3392, T=0.3373, W=0.2912. +- variates skill: multivariate=0.3554, univariate=0.3242. +- Outcome: Fixed coefficient-one spectral transfer; additive and old-slow-AR replacement are the two predeclared ablations. No optimization. Ensemble selection recorded separately. + +## E114 spectral_add_delta6k valid_backcast2 +- Checkpoint SHA-256: `c3dfc433d51355228fc13d04913db1a7edf83030c33283b150bdcc50f5ae6ea2`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 22.574910163879395 seconds. +- Overall skill 0.360737; relative MASE 0.769308; relative WQL 0.531202. +- term skill: long=0.3675, medium=0.3883, short=0.3472. +- domain skill: Econ/Fin=0.1344, Energy=0.2381, Healthcare=0.3027, Nature=0.4740, Sales=0.5467, Transport=0.4200, Web/CloudOps=0.4411. +- frequency skill: A=0.3495, D=0.4226, H=0.3924, M=0.1272, Q=0.1523, S=0.2785, T=0.3691, W=0.2610. +- variates skill: multivariate=0.3682, univariate=0.3546. +- Outcome: Fixed coefficient-one spectral transfer; additive and old-slow-AR replacement are the two predeclared ablations. No optimization. Ensemble selection recorded separately. + +## E114 spectral_add_delta6k valid_backcast3 +- Checkpoint SHA-256: `c3dfc433d51355228fc13d04913db1a7edf83030c33283b150bdcc50f5ae6ea2`. +- Evaluation: 93 configurations, 8812 instances, 0 failed configurations; 21.270376443862915 seconds. +- Overall skill 0.385446; relative MASE 0.745841; relative WQL 0.506377. +- term skill: long=0.3926, medium=0.3611, short=0.3917. +- domain skill: Econ/Fin=0.1886, Energy=0.3194, Healthcare=0.2003, Nature=0.4920, Sales=0.4005, Transport=0.5087, Web/CloudOps=0.3919. +- frequency skill: A=0.3636, D=0.4339, H=0.4034, M=0.1065, Q=0.2631, S=0.2741, T=0.4316, W=0.2453. +- variates skill: multivariate=0.3711, univariate=0.3965. +- Outcome: Fixed coefficient-one spectral transfer; additive and old-slow-AR replacement are the two predeclared ablations. No optimization. Ensemble selection recorded separately. + +E110 fresh146M full eligible-series corpus training started at 2026-10-23T06:22:29Z, after the preceding trainer exited with its final checkpoint. Settings are unchanged from the declared comparison. + +## E105 corrected larger-volume final12000 +- Checkpoint SHA-256: `c14daa56b23ee830ac5e0e50bcab588d8beac92ae756f038bed83431031c4b4d`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 23.560805082321167 seconds. +- Overall skill 0.377529; relative MASE 0.743201; relative WQL 0.521353. +- term skill: long=0.4045, medium=0.4073, short=0.3550. +- domain skill: Econ/Fin=0.1278, Energy=0.2347, Healthcare=0.4489, Nature=0.4326, Sales=0.3346, Transport=0.4664, Web/CloudOps=0.5052. +- frequency skill: A=0.3643, D=0.3476, H=0.3969, M=0.0868, Q=0.1944, S=0.4248, T=0.4408, W=0.2231. +- variates skill: multivariate=0.3969, univariate=0.3616. +- Outcome: Final0.377529200 trails E95nested-small0.377983250 by0.000454050 and is nearly tied with E80oldpack0.377423946. No selection from the main score; all three earlier cutoffs are running to complete the volume comparison. Continuation preserves exact1000optimizer/EMA/RNG/prefetch state; the original output collision and lost E95weights remain documented. + +E105 completed12000: corrected continuation loop2013.982814125s, process2034.180478418s. Original interrupted phase process237.888408643s, last logged step1000 at202.5loopseconds; full1000state resumed exactly. Total observed process wall2272.068887061s includes setup and incident handling inside those phases. E106 completed12000,loop2206.272277840s,process2220.040782971s. These are shared-H100 process wall times, not isolated GPU hours. Both final checkpoints now get all three earlier-cutoff diagnostics; no new training or changes to their declared recipes. E107started06:21:44trainer15845; E110started06:22:29trainer15925. + +## E115 end-to-end period-phase conditioning — predeclared preparation +E57 added sine/cosine period-relative inputs but froze the entire existing backbone; its +0.000047 main gain was offset by earlier losses and it was rejected. Test the different hypothesis that attention and projections must co-adapt. Add the same two zero-initialized per-point phase projections (context and future query, two frequency periods, sine/cosine, origin at forecast start, periods<2 zero, missing context positions zero) to the current overflow-safe E62 model. Train all parameters jointly, matching E80 seed197/B64/LR2e-5/12000/paired loss/original source probabilities, generator and requested-horizon stream exactly. No calendar dates, dataset identities or new sources. This compares phase conditioning against E80; it is not a matched causal comparison of training scope against the older E57 run, which used another parent/rate/seed. Verify initial function/inherited tensors and phase arithmetic, then max-shape finite gradients including backbone and new projections before queueing after E79fresh37M96000. Screens1000/3000/6000/12000; earlier/full replay before any selection. + +## E106 spectral residuals final12000 valid_screen +- Checkpoint SHA-256: `1c5c735147bcd1679bc761d091aaf4369c37ce4c14efd65e19b91ffd7a524756`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 21.81789803504944 seconds. +- Overall skill 0.377641; relative MASE 0.743803; relative WQL 0.520743. +- term skill: long=0.4039, medium=0.4060, short=0.3559. +- domain skill: Econ/Fin=0.1485, Energy=0.2343, Healthcare=0.4336, Nature=0.4316, Sales=0.3325, Transport=0.4654, Web/CloudOps=0.5076. +- frequency skill: A=0.3624, D=0.3521, H=0.3945, M=0.1015, Q=0.2039, S=0.4248, T=0.4419, W=0.2125. +- variates skill: multivariate=0.3976, univariate=0.3613. +- Outcome: Final main0.377641399 versus E80.377423946; earlier0.337647555/0.361626447/0.385497870 versus control0.336528337/0.360973470/0.387481485. Three small gains offset by oldest-cutoff regression; average gap about0.0000015. The6000checkpoint remains the only transfer under consideration. No final-duration transfer selected. + +## E106 spectral residuals final12000 valid_backcast +- Checkpoint SHA-256: `1c5c735147bcd1679bc761d091aaf4369c37ce4c14efd65e19b91ffd7a524756`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 20.256327152252197 seconds. +- Overall skill 0.337648; relative MASE 0.795467; relative WQL 0.551513. +- term skill: long=0.3962, medium=0.3603, short=0.3046. +- domain skill: Econ/Fin=0.1743, Energy=0.2267, Healthcare=0.4112, Nature=0.3671, Sales=0.3950, Transport=0.3721, Web/CloudOps=0.4535. +- frequency skill: A=0.3210, D=0.3506, H=0.3659, M=0.1951, Q=0.2332, S=0.3426, T=0.3392, W=0.2845. +- variates skill: multivariate=0.3547, univariate=0.3237. +- Outcome: Final main0.377641399 versus E80.377423946; earlier0.337647555/0.361626447/0.385497870 versus control0.336528337/0.360973470/0.387481485. Three small gains offset by oldest-cutoff regression; average gap about0.0000015. The6000checkpoint remains the only transfer under consideration. No final-duration transfer selected. + +## E106 spectral residuals final12000 valid_backcast2 +- Checkpoint SHA-256: `1c5c735147bcd1679bc761d091aaf4369c37ce4c14efd65e19b91ffd7a524756`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 24.78632402420044 seconds. +- Overall skill 0.361626; relative MASE 0.767884; relative WQL 0.530706. +- term skill: long=0.3650, medium=0.3904, short=0.3489. +- domain skill: Econ/Fin=0.1188, Energy=0.2375, Healthcare=0.3551, Nature=0.4741, Sales=0.5473, Transport=0.4192, Web/CloudOps=0.4377. +- frequency skill: A=0.3482, D=0.4309, H=0.3898, M=0.1385, Q=0.1489, S=0.2820, T=0.3651, W=0.2748. +- variates skill: multivariate=0.3657, univariate=0.3583. +- Outcome: Final main0.377641399 versus E80.377423946; earlier0.337647555/0.361626447/0.385497870 versus control0.336528337/0.360973470/0.387481485. Three small gains offset by oldest-cutoff regression; average gap about0.0000015. The6000checkpoint remains the only transfer under consideration. No final-duration transfer selected. + +## E106 spectral residuals final12000 valid_backcast3 +- Checkpoint SHA-256: `1c5c735147bcd1679bc761d091aaf4369c37ce4c14efd65e19b91ffd7a524756`. +- Evaluation: 93 configurations, 8812 instances, 0 failed configurations; 22.51108193397522 seconds. +- Overall skill 0.385498; relative MASE 0.742905; relative WQL 0.508292. +- term skill: long=0.3945, medium=0.3594, short=0.3917. +- domain skill: Econ/Fin=0.1811, Energy=0.3163, Healthcare=0.2183, Nature=0.5001, Sales=0.3991, Transport=0.5041, Web/CloudOps=0.3915. +- frequency skill: A=0.3530, D=0.4381, H=0.4016, M=0.0934, Q=0.2652, S=0.2859, T=0.4287, W=0.2549. +- variates skill: multivariate=0.3723, univariate=0.3957. +- Outcome: Final main0.377641399 versus E80.377423946; earlier0.337647555/0.361626447/0.385497870 versus control0.336528337/0.360973470/0.387481485. Three small gains offset by oldest-cutoff regression; average gap about0.0000015. The6000checkpoint remains the only transfer under consideration. No final-duration transfer selected. + +## E105 corrected larger-volume final12000 valid_backcast +- Checkpoint SHA-256: `c14daa56b23ee830ac5e0e50bcab588d8beac92ae756f038bed83431031c4b4d`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 22.00239086151123 seconds. +- Overall skill 0.336714; relative MASE 0.797414; relative WQL 0.551719. +- term skill: long=0.3996, medium=0.3592, short=0.3019. +- domain skill: Econ/Fin=0.1536, Energy=0.2291, Healthcare=0.4203, Nature=0.3659, Sales=0.3940, Transport=0.3743, Web/CloudOps=0.4484. +- frequency skill: A=0.3155, D=0.3546, H=0.3681, M=0.1764, Q=0.2336, S=0.3396, T=0.3370, W=0.2766. +- variates skill: multivariate=0.3543, univariate=0.3224. +- Outcome: Compared with E95nested-small: main-0.000454050, earlier1-0.000637726, earlier2+0.000411577, earlier3+0.002468634. Mixed results, strongest gain on the oldest cutoff; no clear uniform benefit or publication selected. Original output collision remains documented; these reports use the corrected actual E105weights. + +## E105 corrected larger-volume final12000 valid_backcast2 +- Checkpoint SHA-256: `c14daa56b23ee830ac5e0e50bcab588d8beac92ae756f038bed83431031c4b4d`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 23.669189453125 seconds. +- Overall skill 0.359536; relative MASE 0.770749; relative WQL 0.532203. +- term skill: long=0.3638, medium=0.3913, short=0.3452. +- domain skill: Econ/Fin=0.1019, Energy=0.2364, Healthcare=0.3499, Nature=0.4709, Sales=0.5511, Transport=0.4222, Web/CloudOps=0.4343. +- frequency skill: A=0.3525, D=0.4266, H=0.3904, M=0.1615, Q=0.1480, S=0.2795, T=0.3626, W=0.2558. +- variates skill: multivariate=0.3641, univariate=0.3558. +- Outcome: Compared with E95nested-small: main-0.000454050, earlier1-0.000637726, earlier2+0.000411577, earlier3+0.002468634. Mixed results, strongest gain on the oldest cutoff; no clear uniform benefit or publication selected. Original output collision remains documented; these reports use the corrected actual E105weights. + +## E105 corrected larger-volume final12000 valid_backcast3 +- Checkpoint SHA-256: `c14daa56b23ee830ac5e0e50bcab588d8beac92ae756f038bed83431031c4b4d`. +- Evaluation: 93 configurations, 8812 instances, 0 failed configurations; 24.15644383430481 seconds. +- Overall skill 0.390349; relative MASE 0.736786; relative WQL 0.504453. +- term skill: long=0.3958, medium=0.3608, short=0.3990. +- domain skill: Econ/Fin=0.1696, Energy=0.3184, Healthcare=0.2721, Nature=0.5101, Sales=0.3969, Transport=0.5048, Web/CloudOps=0.3932. +- frequency skill: A=0.3711, D=0.4486, H=0.4049, M=0.1322, Q=0.2537, S=0.2882, T=0.4301, W=0.2569. +- variates skill: multivariate=0.3757, univariate=0.4016. +- Outcome: Compared with E95nested-small: main-0.000454050, earlier1-0.000637726, earlier2+0.000411577, earlier3+0.002468634. Mixed results, strongest gain on the oldest cutoff; no clear uniform benefit or publication selected. Original output collision remains documented; these reports use the corrected actual E105weights. + +## E114 spectral_replace_delta6k valid_screen +- Checkpoint SHA-256: `b01ff54ba0bd947f4806bd08793288a8202a1c8de153db482666aee3458395ac`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 22.1757493019104 seconds. +- Overall skill 0.382039; relative MASE 0.738892; relative WQL 0.516823. +- term skill: long=0.4049, medium=0.4087, short=0.3624. +- domain skill: Econ/Fin=0.1375, Energy=0.2428, Healthcare=0.4698, Nature=0.4360, Sales=0.3332, Transport=0.4634, Web/CloudOps=0.5079. +- frequency skill: A=0.3761, D=0.3509, H=0.4018, M=0.1029, Q=0.2052, S=0.4222, T=0.4437, W=0.2355. +- variates skill: multivariate=0.4001, univariate=0.3672. +- Outcome: Fixed coefficient-one spectral transfer; additive and old-slow-AR replacement are the two predeclared ablations. No optimization. Ensemble selection recorded separately. + +## E114 spectral_replace_delta6k valid_backcast +- Checkpoint SHA-256: `b01ff54ba0bd947f4806bd08793288a8202a1c8de153db482666aee3458395ac`. +- Evaluation: 97 configurations, 9330 instances, 0 failed configurations; 22.24388575553894 seconds. +- Overall skill 0.337298; relative MASE 0.795806; relative WQL 0.551861. +- term skill: long=0.3970, medium=0.3617, short=0.3030. +- domain skill: Econ/Fin=0.1666, Energy=0.2287, Healthcare=0.3986, Nature=0.3693, Sales=0.3952, Transport=0.3715, Web/CloudOps=0.4531. +- frequency skill: A=0.3150, D=0.3467, H=0.3702, M=0.1914, Q=0.2292, S=0.3361, T=0.3366, W=0.2879. +- variates skill: multivariate=0.3553, univariate=0.3226. +- Outcome: Fixed coefficient-one spectral transfer; additive and old-slow-AR replacement are the two predeclared ablations. No optimization. Ensemble selection recorded separately. + +## E114 spectral_replace_delta6k valid_backcast2 +- Checkpoint SHA-256: `b01ff54ba0bd947f4806bd08793288a8202a1c8de153db482666aee3458395ac`. +- Evaluation: 94 configurations, 8934 instances, 0 failed configurations; 23.31834578514099 seconds. +- Overall skill 0.358167; relative MASE 0.771957; relative WQL 0.533643. +- term skill: long=0.3638, medium=0.3887, short=0.3438. +- domain skill: Econ/Fin=0.1247, Energy=0.2380, Healthcare=0.3032, Nature=0.4702, Sales=0.5491, Transport=0.4202, Web/CloudOps=0.4344. +- frequency skill: A=0.3507, D=0.4174, H=0.3934, M=0.1411, Q=0.1551, S=0.2738, T=0.3644, W=0.2504. +- variates skill: multivariate=0.3640, univariate=0.3534. +- Outcome: Fixed coefficient-one spectral transfer; additive and old-slow-AR replacement are the two predeclared ablations. No optimization. Ensemble selection recorded separately. + +## E114 spectral_replace_delta6k valid_backcast3 +- Checkpoint SHA-256: `b01ff54ba0bd947f4806bd08793288a8202a1c8de153db482666aee3458395ac`. +- Evaluation: 93 configurations, 8812 instances, 0 failed configurations; 24.276151657104492 seconds. +- Overall skill 0.385845; relative MASE 0.745123; relative WQL 0.506207. +- term skill: long=0.3948, medium=0.3605, short=0.3918. +- domain skill: Econ/Fin=0.1804, Energy=0.3205, Healthcare=0.2235, Nature=0.4938, Sales=0.4003, Transport=0.5072, Web/CloudOps=0.3888. +- frequency skill: A=0.3630, D=0.4320, H=0.4048, M=0.1164, Q=0.2614, S=0.2715, T=0.4319, W=0.2461. +- variates skill: multivariate=0.3719, univariate=0.3966. +- Outcome: Fixed coefficient-one spectral transfer; additive and old-slow-AR replacement are the two predeclared ablations. No optimization. Ensemble selection recorded separately. + +E115 checks complete: {"seed": 563, "independent_phase_arithmetic": true, "phase_left_padding_invariance": true, "periods_below_two_zero": true, "initial_function_bitwise_equal": true, "inherited_weights_bitwise_equal": true, "sampler_byte_identical": true, "all_parameters_trainable": true, "added_parameters": 65536, "total_parameters": 36866336, "checkpoint_sha256": "70d0fe416fc633d9bd5d8432735ae1725cdf16bcc56824fbd2b973276d90116b", "seconds": 1.7632095960434526, "optimizer_updates": 0, "validation_data_read": false}; GPU {"seed": 569, "gpu_initial_function_bitwise_equal": true, "max_shape": [64, 4096, 1024], "loss": 0.54439777135849, "selected_gradient_norms": {"phase_context.weight": 0.014588589780032635, "phase_query.weight": 0.01659703068435192, "encoder.0.attn.q.weight": 0.002245454117655754, "head.weight": 0.029972484335303307}, "all_parameters_trainable": true, "reserved_mib": 6272.0, "allocated_mib": 5789.81689453125, "includes_ema_and_adam_placeholders": true, "seconds": 125.7952905651182, "optimizer_updates": 0, "validation_data_read": false}. GPU seconds include serialized evaluation-lock wait; no optimizer update or validation read. Zero initialization preserves inherited tensors and forecasts bitwise; both added projections and inherited attention/head receive finite nonzero gradients. Runtime model is identical to the training model. Queue after E79small96000. Publisher documentation now derives frozen-versus-joint phase training from actual lineage; no runtime changes to published packages. + +## E114 fixed spectral transfer ensemble outcomes +{"skill_score": 0.3859105542007717, "rel_mase_gmean": 0.7358684109009667, "rel_wql_gmean": 0.5124636984760504, "groups": {"term": {"short": 0.36841730807118356, "medium": 0.4090050160435663, "long": 0.40716915412299237}, "domain": {"Econ/Fin": 0.14811696868566626, "Energy": 0.24660436752069403, "Healthcare": 0.47910058788021426, "Nature": 0.44240542330694954, "Sales": 0.34307605991799384, "Transport": 0.46771149823781855, "Web/CloudOps": 0.5062219614466995}, "freq": {"A-DEC": 0.37669669863368394, "Q-DEC": 0.200340326472501, "M": 0.11908763465172645, "W-SUN": 0.12532801227165324, "D": 0.36422932549961984, "H": 0.40123365786788323, "15T": 0.21729188974855052, "W-FRI": 0.015453408823068893, "10T": 0.6278668799855711, "W-TUE": 0.6255256773761033, "W-THU": 0.2055099177488643, "W-WED": 0.3287751407658812, "5T": 0.5215363726041493, "10S": 0.42516355809197104}}, "cpu_seconds": 1.0599841580260545, "member_checkpoint_hashes": ["c3dfc433d51355228fc13d04913db1a7edf83030c33283b150bdcc50f5ae6ea2", "308389b7217c080af9eb185559d4ee3cafa0f3e0f8c4dd8f5526b68198c89988", "1a2fb20a9fb5cae6526f2e36ea47559626bece78fd9c284899836505030ae9fe"], "candidate": "spectral_add_delta6k", "cutoff": "valid_screen", "E112skill": 0.3858712532527797, "difference": 3.930094799198258e-05} +{"skill_score": 0.3412336108260463, "rel_mase_gmean": 0.7923075693116662, "rel_wql_gmean": 0.5477331939190134, "groups": {"term": {"short": 0.3082380704419988, "medium": 0.36087755992185644, "long": 0.40256738708364537}, "domain": {"Econ/Fin": 0.17928739133939553, "Energy": 0.23149418505070973, "Healthcare": 0.4142126388904961, "Nature": 0.3739148820510916, "Sales": 0.40499124016503796, "Transport": 0.37331945935003474, "Web/CloudOps": 0.45366968215211745}, "freq": {"A-DEC": 0.32728365516656444, "Q-DEC": 0.236748044898076, "M": 0.19835812917105478, "W-SUN": 0.07360873539461676, "D": 0.35259911130364885, "H": 0.3719231643339844, "15T": 0.2213306919945408, "W-FRI": 0.2288725313306662, "10T": 0.32822175650292673, "W-TUE": 0.559366215155875, "W-THU": 0.25990001317199096, "W-WED": 0.360055735229183, "5T": 0.44455182384807246, "10S": 0.347846510903316}}, "cpu_seconds": 1.0289423430804163, "member_checkpoint_hashes": ["c3dfc433d51355228fc13d04913db1a7edf83030c33283b150bdcc50f5ae6ea2", "308389b7217c080af9eb185559d4ee3cafa0f3e0f8c4dd8f5526b68198c89988", "1a2fb20a9fb5cae6526f2e36ea47559626bece78fd9c284899836505030ae9fe"], "candidate": "spectral_add_delta6k", "cutoff": "valid_backcast", "E112skill": 0.34026453805586865, "difference": 0.0009690727701776591} +{"skill_score": 0.36575134769765616, "rel_mase_gmean": 0.7643280805916521, "rel_wql_gmean": 0.5263071751020174, "groups": {"term": {"short": 0.35313765392056196, "medium": 0.3940145011079407, "long": 0.36928346944084967}, "domain": {"Econ/Fin": 0.1278772851976926, "Energy": 0.24145749844953146, "Healthcare": 0.35086323444911927, "Nature": 0.4791524685105649, "Sales": 0.5547328500628512, "Transport": 0.4250780374879125, "Web/CloudOps": 0.43991341613268353}, "freq": {"A-DEC": 0.33586764940966785, "Q-DEC": 0.15779445087152755, "M": 0.16375055154356122, "W-SUN": 0.08390542109684229, "D": 0.4307789359841945, "H": 0.3948583749831561, "15T": 0.10818558944800316, "W-FRI": 0.15292053290873164, "10T": 0.5107332028367493, "W-TUE": 0.09532113367661221, "W-THU": 0.35588558530569137, "W-WED": 0.5627227566205757, "5T": 0.4760121317899746, "10S": 0.2848510509521789}}, "cpu_seconds": 1.175089841010049, "member_checkpoint_hashes": ["c3dfc433d51355228fc13d04913db1a7edf83030c33283b150bdcc50f5ae6ea2", "308389b7217c080af9eb185559d4ee3cafa0f3e0f8c4dd8f5526b68198c89988", "1a2fb20a9fb5cae6526f2e36ea47559626bece78fd9c284899836505030ae9fe"], "candidate": "spectral_add_delta6k", "cutoff": "valid_backcast2", "E112skill": 0.36500280105746885, "difference": 0.0007485466401873087} +{"skill_score": 0.388763997234149, "rel_mase_gmean": 0.7411269672326161, "rel_wql_gmean": 0.5041099131397703, "groups": {"term": {"short": 0.3936943170093701, "medium": 0.36798445243024747, "long": 0.39615921182618374}, "domain": {"Econ/Fin": 0.1909220354405753, "Energy": 0.31559006097512954, "Healthcare": 0.23199415024755954, "Nature": 0.5039982625361157, "Sales": 0.39988753803404353, "Transport": 0.5093753126309916, "Web/CloudOps": 0.3947283481141741}, "freq": {"A-DEC": 0.3583022117406983, "Q-DEC": 0.2566121509078392, "M": 0.13878112747670346, "W-SUN": 0.17907630757955872, "D": 0.4388632040643935, "H": 0.405288967030186, "15T": 0.2540225780499259, "W-FRI": 0.03649862826525585, "10T": 0.6060275093557081, "W-TUE": 0.26615750127784543, "W-THU": 0.33504744208892767, "W-WED": 0.37704039372015596, "5T": 0.46645862961129225, "10S": 0.29251927680018197}}, "cpu_seconds": 1.1375589109957218, "member_checkpoint_hashes": ["c3dfc433d51355228fc13d04913db1a7edf83030c33283b150bdcc50f5ae6ea2", "308389b7217c080af9eb185559d4ee3cafa0f3e0f8c4dd8f5526b68198c89988", "1a2fb20a9fb5cae6526f2e36ea47559626bece78fd9c284899836505030ae9fe"], "candidate": "spectral_add_delta6k", "cutoff": "valid_backcast3", "E112skill": 0.38948675360484886, "difference": -0.0007227563706998508} +{"skill_score": 0.38538242748882945, "rel_mase_gmean": 0.736575164356215, "rel_wql_gmean": 0.5128529696893745, "groups": {"term": {"short": 0.3675950378502798, "medium": 0.4090321072718678, "long": 0.4068080010769052}, "domain": {"Econ/Fin": 0.1452107005254969, "Energy": 0.24720144190287108, "Healthcare": 0.4773960655138917, "Nature": 0.4411401520810895, "Sales": 0.3422136708191351, "Transport": 0.46776594940797556, "Web/CloudOps": 0.5053750267603281}, "freq": {"A-DEC": 0.3762239031537611, "Q-DEC": 0.19964405404447882, "M": 0.11772763314619139, "W-SUN": 0.11426532226198283, "D": 0.3618358770783556, "H": 0.4012391303794067, "15T": 0.21828910758964182, "W-FRI": 0.0158268795014036, "10T": 0.6269679416145453, "W-TUE": 0.6374273197245699, "W-THU": 0.20444633086852815, "W-WED": 0.3293023694518882, "5T": 0.520446433050282, "10S": 0.4243254373932551}}, "cpu_seconds": 1.0959253669716418, "member_checkpoint_hashes": ["b01ff54ba0bd947f4806bd08793288a8202a1c8de153db482666aee3458395ac", "308389b7217c080af9eb185559d4ee3cafa0f3e0f8c4dd8f5526b68198c89988", "1a2fb20a9fb5cae6526f2e36ea47559626bece78fd9c284899836505030ae9fe"], "candidate": "spectral_replace_delta6k", "cutoff": "valid_screen", "E112skill": 0.3858712532527797, "difference": -0.0004888257639502624} +{"skill_score": 0.3406802195876929, "rel_mase_gmean": 0.7932581807222594, "rel_wql_gmean": 0.5479963313421329, "groups": {"term": {"short": 0.3072113460670465, "medium": 0.3609289231624365, "long": 0.4025228284048611}, "domain": {"Econ/Fin": 0.17519659434666768, "Energy": 0.23205216431370745, "Healthcare": 0.41457631581368715, "Nature": 0.37248553469222323, "Sales": 0.4051051613684693, "Transport": 0.37330292125603537, "Web/CloudOps": 0.4524628983508361}, "freq": {"A-DEC": 0.3247221726362275, "Q-DEC": 0.23679225957378447, "M": 0.19494676959754076, "W-SUN": 0.06360311378805661, "D": 0.35276837361420454, "H": 0.372002261486453, "15T": 0.22209503268624742, "W-FRI": 0.22895441819580886, "10T": 0.3247372972264523, "W-TUE": 0.5627629693024542, "W-THU": 0.2585092983543258, "W-WED": 0.35938474562086387, "5T": 0.4432621496867426, "10S": 0.34700427098942754}}, "cpu_seconds": 1.5319079000037163, "member_checkpoint_hashes": ["b01ff54ba0bd947f4806bd08793288a8202a1c8de153db482666aee3458395ac", "308389b7217c080af9eb185559d4ee3cafa0f3e0f8c4dd8f5526b68198c89988", "1a2fb20a9fb5cae6526f2e36ea47559626bece78fd9c284899836505030ae9fe"], "candidate": "spectral_replace_delta6k", "cutoff": "valid_backcast", "E112skill": 0.34026453805586865, "difference": 0.0004156815318242524} +{"skill_score": 0.3645638328287083, "rel_mase_gmean": 0.7655529003321527, "rel_wql_gmean": 0.5274346454361977, "groups": {"term": {"short": 0.35186763351956485, "medium": 0.39321263800713, "long": 0.3678828400958726}, "domain": {"Econ/Fin": 0.12424108633012076, "Energy": 0.24135890916218927, "Healthcare": 0.35067839600874395, "Nature": 0.4774941308360753, "Sales": 0.5553672377118917, "Transport": 0.42513094655931627, "Web/CloudOps": 0.43686388883653227}, "freq": {"A-DEC": 0.336016644671164, "Q-DEC": 0.1585853880353536, "M": 0.16597963033077545, "W-SUN": 0.07588756093646032, "D": 0.42914434851192584, "H": 0.3951850713687237, "15T": 0.10848567130668929, "W-FRI": 0.15162235166311566, "10T": 0.508604696908483, "W-TUE": 0.08008393561824934, "W-THU": 0.35379846085908884, "W-WED": 0.5621221829283422, "5T": 0.4723996609971295, "10S": 0.28287996534579274}}, "cpu_seconds": 1.1693297398742288, "member_checkpoint_hashes": ["b01ff54ba0bd947f4806bd08793288a8202a1c8de153db482666aee3458395ac", "308389b7217c080af9eb185559d4ee3cafa0f3e0f8c4dd8f5526b68198c89988", "1a2fb20a9fb5cae6526f2e36ea47559626bece78fd9c284899836505030ae9fe"], "candidate": "spectral_replace_delta6k", "cutoff": "valid_backcast2", "E112skill": 0.36500280105746885, "difference": -0.0004389682287605501} +{"skill_score": 0.3887657720103035, "rel_mase_gmean": 0.7410046782980017, "rel_wql_gmean": 0.504190179101556, "groups": {"term": {"short": 0.3936432761250075, "medium": 0.3675850585692205, "long": 0.3967135529057608}, "domain": {"Econ/Fin": 0.18838704424082175, "Energy": 0.31576821178040126, "Healthcare": 0.23963002301962777, "Nature": 0.5044876407125312, "Sales": 0.39975495300854236, "Transport": 0.5088397838295604, "Web/CloudOps": 0.393445049293746}, "freq": {"A-DEC": 0.3588124703265817, "Q-DEC": 0.2560486792582567, "M": 0.1429024757751649, "W-SUN": 0.1749136920607539, "D": 0.4382471228895556, "H": 0.4056385181220228, "15T": 0.2544805853997113, "W-FRI": 0.0366545562900642, "10T": 0.606714665207392, "W-TUE": 0.27687389203140456, "W-THU": 0.33308740205358955, "W-WED": 0.37665824463477027, "5T": 0.465156868376136, "10S": 0.29156742693850557}}, "cpu_seconds": 1.2852319721132517, "member_checkpoint_hashes": ["b01ff54ba0bd947f4806bd08793288a8202a1c8de153db482666aee3458395ac", "308389b7217c080af9eb185559d4ee3cafa0f3e0f8c4dd8f5526b68198c89988", "1a2fb20a9fb5cae6526f2e36ea47559626bece78fd9c284899836505030ae9fe"], "candidate": "spectral_replace_delta6k", "cutoff": "valid_backcast3", "E112skill": 0.38948675360484886, "difference": -0.0007209815945453668} +Additive wins three cutoffs over replacement and ties the fourth within0.000002. Versus publishedE112, additive gains main0.000039301,firstearlier0.000969073,secondearlier0.000748547 and loses thirdearlier0.000722756. Select additive for one full public replay. Reject replacement; do not tune a coefficient. Total two-ablation suite623.425876410wallseconds includes evaluation-lock waits; zero optimizer updates. Merge CPU times1.420432522 and1.159398519seconds; candidate hashes in spectral_transfer_receipt.json. + +## E107 sixteen-cycle learned summaries at1000 +- Checkpoint SHA-256: `31a9cdfb13341bf068d62dcd67df55a48ecc8f539676fc9aa18b17a87967aaaf`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 27.538329362869263 seconds. +- Overall skill 0.378727; relative MASE 0.742222; relative WQL 0.520032. +- term skill: long=0.4007, medium=0.4068, short=0.3589. +- domain skill: Econ/Fin=0.1331, Energy=0.2370, Healthcare=0.4629, Nature=0.4319, Sales=0.3365, Transport=0.4721, Web/CloudOps=0.4995. +- frequency skill: A=0.3659, D=0.3628, H=0.3966, M=0.1077, Q=0.1987, S=0.4237, T=0.4357, W=0.2244. +- variates skill: multivariate=0.3931, univariate=0.3671. +- Outcome: First skill0.378727349 exceeds matched E80at1000 0.376804394 by0.001922954. Initial function was preserved; whole model and new query/head train jointly. Continue declared3000/6000/12000 and earlier-cutoff diagnostics before selection. + +## E79 fresh37M at72000 +- Checkpoint SHA-256: `8439114a6db9c3441824266cca82575413c81d4d06843f89c3ce365220bdd491`. +- Evaluation: 97 configurations, 9473 instances, 0 failed configurations; 26.264113903045654 seconds. +- Overall skill 0.368966; relative MASE 0.753206; relative WQL 0.528678. +- term skill: long=0.3954, medium=0.3943, short=0.3484. +- domain skill: Econ/Fin=0.1436, Energy=0.2321, Healthcare=0.4098, Nature=0.4180, Sales=0.3528, Transport=0.4585, Web/CloudOps=0.4929. +- frequency skill: A=0.3884, D=0.3520, H=0.3888, M=0.0702, Q=0.2092, S=0.4184, T=0.4268, W=0.2065. +- variates skill: multivariate=0.3853, univariate=0.3556. +- Outcome: Skill0.368966239 improves over48000 0.366772722 by0.002193517. Still below the mature trained lineage. Keep the declared96000schedule; earlier cooldown lost its final matched comparison. No new learning-rate changes or model selection yet. + +Fresh capacity compute audit at 2026-10-23T06:30:58Z: capacity_learning_curves.json/csv join each measured checkpoint report to its actual training log, with no inferred missing times. Latest selected checkpoints: random_capacity_512 seed307 step72000 logged shared-H100 loop9277.7seconds; random_capacity_1024 seed307 step24000 logged shared-H100 loop6492.7seconds; random_capacity_1024_halflr seed307 step24000 logged shared-H100 loop5576.8seconds; All original96k schedules unchanged. No new optimization or inference in this audit. + +## E114 additive spectral ensemble full public replay — selected +- Checkpoint SHA-256: `9a31b69cbb9c32bdc51541d93b569334a408445233579f43935adc92072526bc`. +- Evaluation: 97 configurations, 151170 instances, 0 failed configurations; not separately timed seconds. +- Overall skill 0.382197; relative MASE 0.738486; relative WQL 0.516841. +- term skill: long=0.4013, medium=0.4079, short=0.3645. +- domain skill: Econ/Fin=0.1297, Energy=0.2401, Healthcare=0.4846, Nature=0.4425, Sales=0.3573, Transport=0.4679, Web/CloudOps=0.4980. +- frequency skill: A=0.2970, D=0.3687, H=0.3959, M=0.1449, Q=0.1880, S=0.4252, T=0.4390, W=0.2388. +- variates skill: multivariate=0.3963, univariate=0.3708. +- Outcome: Full0.382197314 exceeds E1120.382143195 by0.000054118. All97configs151170instances passed. Relocation and independent fixed-average composition checks passed. Three diagnostic gains and one regression; tiny full improvement is validation selection, not held-out significance. + +E114 complete public suite {"package": "/workspace/research/candidate-spectral-add-ensemble", "status": "complete", "steps": [{"name": "relocation", "returncode": 0, "seconds": 31.251009764848277}, {"name": "full_public_replay", "returncode": 0, "seconds": 333.7630249520298}, {"name": "independent_spectral_replay", "returncode": 0, "seconds": 72.58775101904757}, {"name": "composition", "returncode": 0, "seconds": 0.2565292678773403}, {"name": "descriptive_comparison", "returncode": 0, "seconds": 0.17433986882679164}], "current_step": "descriptive_comparison", "seconds": 438.11250560800545, "skill": 0.3821973136018404}. Descriptive comparison {"candidate": "/workspace/research/valid-report-spectral-add-ensemble.json", "parent": "/workspace/research/valid-report-weekly-slow12-ensemble.json", "candidate_hash": "9a31b69cbb9c32bdc51541d93b569334a408445233579f43935adc92072526bc", "parent_hash": "f01498eb73e4aa0539e81c67a8a80e56af47d1437f4d65ecc882d551468241a1", "skill_difference": 5.4118499018707134e-05, "n_configs": 97, "n_dataset_clusters": 28, "improved_configs": 53, "bootstrap_seed": 317, "bootstrap_samples": 5000, "dataset_cluster_delta_percentiles": {"p025": -0.0012920618845766562, "p50": 6.553719107660338e-05, "p975": 0.001266637510104884}, "note": "Descriptive resampling only. Adaptive validation selection and reused windows prevent treating this as a held-out significance test."}. +Provenance repair before publication: the old hard-coded archive filename list omitted spectral.py and recovery/schedules.py. The publisher now archives every Python module in each explicitly declared trainer directory and records their hashes. Reassembled three source packages with complete archives:81/61/67modules. Every runtime-code hash and weight hash is identical to its replayed source package; no inference behavior changed and no extra forecast run was required. Candidate package in the full replay remains immutable. diff --git a/shared/package-files/3e/3e093f7eaf4fa1083d82559c3cdda65ecf8c655482e11f58f36823e58e310ced/logging.py b/shared/package-files/3e/3e093f7eaf4fa1083d82559c3cdda65ecf8c655482e11f58f36823e58e310ced/logging.py new file mode 100644 index 0000000000000000000000000000000000000000..d50b559bdd6528c179b3a8b824a4f823d294ec69 --- /dev/null +++ b/shared/package-files/3e/3e093f7eaf4fa1083d82559c3cdda65ecf8c655482e11f58f36823e58e310ced/logging.py @@ -0,0 +1,229 @@ +# Copyright (C) 2012 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause +import logging +import re +import sys +from datetime import datetime +from functools import lru_cache, partial +from logging import ( + DEBUG, + ERROR, + INFO, + WARN, + Filter, + Formatter, + StreamHandler, + getLogger, +) + +from .. import CondaError +from ..common.io import _FORMATTER, attach_stderr_handler + +log = getLogger(__name__) +TRACE = 5 # TRACE LOG LEVEL +VERBOSITY_LEVELS = (WARN, INFO, DEBUG, TRACE) + + +class TokenURLFilter(Filter): + TOKEN_URL_PATTERN = re.compile( + r"(|https?://)" # \1 scheme + r"(|\s" # \2 space, or + r"|(?:(?:\d{1,3}\.){3}\d{1,3})" # ipv4, or + r"|(?:" # domain name + r"(?:[a-zA-Z0-9-]{1,20}\.){0,10}" # non-tld + r"(?:[a-zA-Z]{2}[a-zA-Z0-9-]{0,18})" # tld + r"))" # end domain name + r"(|:\d{1,5})?" # \3 port + r"/t/[a-z0-9A-Z-]+/" # token + ) + TOKEN_REPLACE = partial(TOKEN_URL_PATTERN.sub, r"\1\2\3/t//") + + def filter(self, record): + """ + Since Python 2's getMessage() is incapable of handling any + strings that are not unicode when it interpolates the message + with the arguments, we fix that here by doing it ourselves. + + At the same time we replace tokens in the arguments which was + not happening until now. + """ + record.msg = self.TOKEN_REPLACE(record.msg) + if record.args: + new_args = tuple( + self.TOKEN_REPLACE(arg) if isinstance(arg, str) else arg + for arg in record.args + ) + record.msg = record.msg % new_args + record.args = None + return True + + +class StdStreamHandler(StreamHandler): + """Log StreamHandler that always writes to the current sys stream.""" + + terminator = "\n" + + def __init__(self, sys_stream): + """ + Args: + sys_stream: stream name, either "stdout" or "stderr" (attribute of module sys) + """ + super().__init__(getattr(sys, sys_stream)) + self.sys_stream = sys_stream + del self.stream + + def __getattr__(self, attr): + # always get current sys.stdout/sys.stderr, unless self.stream has been set explicitly + if attr == "stream": + return getattr(sys, self.sys_stream) + return super().__getattribute__(attr) + + """ + def emit(self, record): + # in contrast to the Python 2.7 StreamHandler, this has no special Unicode handling; + # however, this backports the Python >=3.2 terminator attribute and additionally makes it + # further customizable by giving record an identically named attribute, e.g., via + # logger.log(..., extra={"terminator": ""}) or LoggerAdapter(logger, {"terminator": ""}). + try: + msg = self.format(record) + terminator = getattr(record, "terminator", self.terminator) + stream = self.stream + stream.write(msg) + stream.write(terminator) + self.flush() + except Exception: + self.handleError(record) + + """ + + # Updated Python 2.7.15's stdlib, with terminator and unicode support. + def emit(self, record): + """ + Emit a record. + + If a formatter is specified, it is used to format the record. + The record is then written to the stream with a trailing newline. If + exception information is present, it is formatted using + traceback.print_exception and appended to the stream. If the stream + has an 'encoding' attribute, it is used to determine how to do the + output to the stream. + """ + try: + msg = self.format(record) + stream = self.stream + fs = "%s" + stream.write(fs % msg) + terminator = getattr(record, "terminator", self.terminator) + stream.write(terminator) + self.flush() + # How does conda handle Ctrl-C? Find out.. + # except (KeyboardInterrupt, SystemExit): + # raise + except Exception: + self.handleError(record) + + +# Don't use initialize_logging/initialize_root_logger/set_conda_log_level in +# cli.python_api! There we want the user to have control over their logging, +# e.g., using their own levels, handlers, formatters and propagation settings. + + +@lru_cache(maxsize=None) +def initialize_logging(): + # root gets level ERROR; 'conda' gets level WARN and propagates to root. + initialize_root_logger() + set_conda_log_level() + initialize_std_loggers() + + +def initialize_std_loggers(): + # Set up special loggers 'conda.stdout'/'conda.stderr' which output directly to the + # corresponding sys streams, filter token urls and don't propagate. + formatter = Formatter("%(message)s") + + for stream in ("stdout", "stderr"): + logger = getLogger("conda.%s" % stream) + logger.handlers = [] + logger.setLevel(INFO) + handler = StdStreamHandler(stream) + handler.setLevel(INFO) + handler.setFormatter(formatter) + logger.addHandler(handler) + logger.addFilter(TokenURLFilter()) + logger.propagate = False + + stdlog_logger = getLogger("conda.%slog" % stream) + stdlog_logger.handlers = [] + stdlog_logger.setLevel(DEBUG) + stdlog_handler = StdStreamHandler(stream) + stdlog_handler.terminator = "" + stdlog_handler.setLevel(DEBUG) + stdlog_handler.setFormatter(formatter) + stdlog_logger.addHandler(stdlog_handler) + stdlog_logger.propagate = False + + verbose_logger = getLogger("conda.stdout.verbose") + verbose_logger.handlers = [] + verbose_logger.setLevel(INFO) + verbose_handler = StdStreamHandler("stdout") + verbose_handler.setLevel(INFO) + verbose_handler.setFormatter(formatter) + verbose_logger.addHandler(verbose_handler) + verbose_logger.propagate = False + + +def initialize_root_logger(level=ERROR): + attach_stderr_handler(level=level) + + +def set_conda_log_level(level=WARN): + conda_logger = getLogger("conda") + conda_logger.setLevel(logging.NOTSET) + attach_stderr_handler(level=level, logger_name="conda") + conda_logger.propagate = False + + +def set_all_logger_level(level=DEBUG): + formatter = Formatter("%(message)s\n") if level >= INFO else None + attach_stderr_handler(level, formatter=formatter) + set_conda_log_level(level) + # 'requests' loggers get their own handlers so that they always output messages in long format + # regardless of the level. + attach_stderr_handler(level, "requests") + attach_stderr_handler(level, "requests.packages.urllib3") + + +@lru_cache(maxsize=None) +def set_file_logging(logger_name=None, level=DEBUG, path=None): + if path is None: + timestamp = datetime.utcnow().strftime("%Y%m%d-%H%M%S") + path = f".conda.{timestamp}.log" + + conda_logger = getLogger(logger_name) + handler = logging.FileHandler(path) + handler.setFormatter(_FORMATTER) + handler.setLevel(level) + conda_logger.addHandler(handler) + + +def set_verbosity(verbosity_level): + try: + set_all_logger_level(VERBOSITY_LEVELS[verbosity_level]) + except IndexError: + raise CondaError( + "Invalid verbosity level: %(verbosity_level)s", + verbosity_level=verbosity_level, + ) + log.debug("verbosity set to %s", verbosity_level) + + +def trace(self, message, *args, **kwargs): + if self.isEnabledFor(TRACE): + self._log(TRACE, message, args, **kwargs) + + +logging.addLevelName(TRACE, "TRACE") +logging.Logger.trace = trace + +# suppress DeprecationWarning for warn method +logging.Logger.warn = logging.Logger.warning diff --git a/shared/package-files/3e/3e0be3e7554cda44dcf5f961978ac4ee12bc9d111cbab518515dfb8432ea0ecf/pipeline.py b/shared/package-files/3e/3e0be3e7554cda44dcf5f961978ac4ee12bc9d111cbab518515dfb8432ea0ecf/pipeline.py new file mode 100644 index 0000000000000000000000000000000000000000..8eccc68183fa947248baaa30dc7d2fa722789157 --- /dev/null +++ b/shared/package-files/3e/3e0be3e7554cda44dcf5f961978ac4ee12bc9d111cbab518515dfb8432ea0ecf/pipeline.py @@ -0,0 +1,255 @@ +# 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. +"""The pipeline parallelism of Pipe.""" +from queue import Queue +from types import TracebackType +from typing import TYPE_CHECKING, Iterable, List, Optional, Tuple, Type, Union, cast, Sequence + +import torch +from torch import Tensor, nn +from torch.autograd.profiler import record_function + +from .checkpoint import Checkpointing +from .copy import Copy, Wait +from .dependency import fork, join +from .microbatch import Batch +from .skip.layout import SkipLayout +from .skip.tracker import SkipTrackerThroughPotals, use_skip_tracker +from .stream import AbstractStream, current_stream, use_device +from .worker import Task, create_workers + +__all__: List[str] = ["Pipeline"] + + +Tensors = Sequence[Tensor] +TensorOrTensors = Union[Tensor, Tensors] + +ExcInfo = Tuple[Type[BaseException], BaseException, TracebackType] + +# Queue is generic only in stubs. +# https://mypy.readthedocs.io/en/latest/common_issues.html#using-classes-that-are-generic-in-stubs-but-not-at-runtime +if TYPE_CHECKING: + InQueue = Queue[Optional["Task"]] + OutQueue = Queue[Tuple[bool, Union[Tuple["Task", Batch], ExcInfo, None]]] +else: + InQueue = Queue + OutQueue = Queue + + +def _depend(fork_from: Batch, join_to: Batch) -> None: + fork_from_idx = fork_from.find_tensor_idx() + join_to_idx = join_to.find_tensor_idx() + + fork_from[fork_from_idx], phony = fork(fork_from[fork_from_idx]) + join_to[join_to_idx] = join(join_to[join_to_idx], phony) + + +def _copy(batch: Batch, prev_stream: AbstractStream, next_stream: AbstractStream) -> None: + batch[:] = Copy.apply(prev_stream, next_stream, *batch) + # Gradients are only supported for float Tensors. + batch[:] = tuple([x.detach() if torch.is_tensor(x) and not x.is_floating_point() else x for x in batch]) + + +def _wait(batch: Batch, prev_stream: AbstractStream, next_stream: AbstractStream) -> None: + batch[:] = Wait.apply(prev_stream, next_stream, *batch) + # Gradients are only supported for float Tensors. + batch[:] = tuple([x.detach() if torch.is_tensor(x) and not x.is_floating_point() else x for x in batch]) + + +def _clock_cycles(m: int, n: int) -> Iterable[List[Tuple[int, int]]]: + """Generate schedules for each clock cycle.""" + # m: number of micro-batches + # n: number of partitions + # i: index of micro-batch + # j: index of partition + # k: clock number + # + # k (i,j) (i,j) (i,j) + # - ----- ----- ----- + # 0 (0,0) + # 1 (1,0) (0,1) + # 2 (2,0) (1,1) (0,2) + # 3 (2,1) (1,2) + # 4 (2,2) + for k in range(m + n - 1): + yield [(k - j, j) for j in range(max(1 + k - m, 0), min(1 + k, n))] + + +class Pipeline: + """The pipeline parallelism for Pipe.""" + + def __init__( + self, + partitions: List[nn.Sequential], + devices: List[torch.device], + copy_streams: List[List[AbstractStream]], + skip_layout: SkipLayout, + checkpoint_stop: int, + ) -> None: + self.partitions = partitions + self.devices = devices + self.copy_streams = copy_streams + self.skip_layout = skip_layout + self.checkpoint_stop = checkpoint_stop + (self.in_queues, self.out_queues) = create_workers(devices) + + def run(self, batches: List[Batch]) -> None: + """Runs pipeline parallelism. + + It modifies the given batches in place. + + """ + partitions = self.partitions + devices = self.devices + skip_layout = self.skip_layout + + m = len(batches) + n = len(partitions) + + skip_trackers = [SkipTrackerThroughPotals(skip_layout) for _ in batches] + + for schedule in _clock_cycles(m, n): + self.fence(batches, schedule, skip_trackers) + self.compute(batches, schedule, skip_trackers) + + def fence( + self, batches: List[Batch], schedule: List[Tuple[int, int]], skip_trackers: List[SkipTrackerThroughPotals], + ) -> None: + """Copy micro-batches after computation for the previous micro-batches.""" + copy_streams = self.copy_streams + skip_layout = self.skip_layout + + for i, j in schedule: + # Ensure that batches[i-1] is executed after batches[i] in + # backpropagation by an explicit dependency. + if i != 0 and j != 0: + _depend(batches[i - 1], batches[i]) + + next_stream = copy_streams[j][i] + + for prev_j, ns, name in skip_layout.copy_policy(j): + prev_stream = copy_streams[prev_j][i] + skip_trackers[i].copy(batches[i], prev_stream, next_stream, ns, name) + + if j != 0: + prev_stream = copy_streams[j - 1][i] + _copy(batches[i], prev_stream, next_stream) + + def compute( + self, batches: List[Batch], schedule: List[Tuple[int, int]], skip_trackers: List[SkipTrackerThroughPotals], + ) -> None: + """Run tasks with synchronization to copy streams.""" + partitions = self.partitions + devices = self.devices + copy_streams = self.copy_streams + checkpoint_stop = self.checkpoint_stop + + # Disable checkpointing if in eval mode. + if not self.partitions[0].training: + checkpoint_stop = 0 + + n = len(partitions) + streams = [current_stream(d) for d in devices] + exc_info: Optional[ExcInfo] = None + + # With checkpointing, the autograd graph looks like this diagram: + # ┌─────┸──────┐ + # │ Copy │ + # └─────┰──────┘ (fence) + # ─ ─ ─ ╂ ─ ─ ─ ─ ─ ─ ─ ─ ─ + # ┃ (compute) + # ┌─────┸──────┐ + # │ Wait │ [1] Synchronize the current stream with the copy stream. + # └─────┰──────┘ + # ┌─────┸──────┐ + # │ Checkpoint │ [2] Compute a partition within checkpointing. + # └─────┰──────┘ + # ┌─────┸──────┐ + # │ Wait │ [3] Synchronize the copy stream with the current stream. + # └─────┰──────┘ + # ┠ ─ ─ ─ ┐ + # ┃ ┌─────┴─────┐ + # ┃ │ Recompute │ [4] Schedule the recomputation at backpropagation. + # ┃ └─────┬─────┘ + # ┠ ─ ─ ─ ┘ + # ┃ + # ─ ─ ─ ╂ ─ ─ ─ ─ ─ ─ ─ ─ ─ + # ┌─────┸──────┐ (fence) + # │ Copy │ + # └─────┰──────┘ + for i, j in schedule: + batch = batches[i] + partition = partitions[j] + + # Synchronize with the copied input. ([1] in the diagram) + if j != 0: + _wait(batch, copy_streams[j][i], streams[j]) + + # Determine whether checkpointing or not. + checkpoint = i < checkpoint_stop + if checkpoint: + + def function( + *inputs, + partition: nn.Module = partition, + skip_tracker: SkipTrackerThroughPotals = skip_trackers[i], + chunk_id: int = i, + part_id: int = j, + ) -> TensorOrTensors: + with use_skip_tracker(skip_tracker), record_function("chunk%d-part%d" % (chunk_id, part_id)): + return partition(*inputs) + + chk = Checkpointing(function, batch) # type: ignore[arg-type] + task = Task(streams[j], compute=chk.checkpoint, finalize=chk.recompute) + del function, chk + + else: + + def compute( + batch: Batch = batch, + partition: nn.Module = partition, + skip_tracker: SkipTrackerThroughPotals = skip_trackers[i], + chunk_id: int = i, + part_id: int = j, + ) -> Batch: + with use_skip_tracker(skip_tracker), record_function("chunk%d-part%d" % (chunk_id, part_id)): + return batch.call(partition) + + task = Task(streams[j], compute=compute, finalize=None) + del compute + + # Compute tasks in parallel. ([2] in the diagram) + self.in_queues[j].put(task) + + for i, j in schedule: + ok, payload = self.out_queues[j].get() + + # Hold the first exception. + if exc_info is not None: + continue + elif not ok: + exc_info = cast(ExcInfo, payload) + continue + + task, batch = cast(Tuple[Task, Batch], payload) + + # The copy stream synchronizes to copy the output. ([3] in the + # diagram) + if j != n - 1: + _wait(batch, streams[j], copy_streams[j][i]) + + # Finalize tasks. If checkpointing is enabled, here the + # recomputation is scheduled at backpropagation. ([4] in the + # diagram) + with use_device(devices[j]): + task.finalize(batch) + + batches[i] = batch + + # Fail at the first exception. + if exc_info is not None: + raise exc_info[0].with_traceback(exc_info[1], exc_info[2]) diff --git a/shared/package-files/3e/3e0c7c091a948b82533ba98fd7cbb40432d6f1a9acbf85f5922d2f99a93ae6bb/LICENSE b/shared/package-files/3e/3e0c7c091a948b82533ba98fd7cbb40432d6f1a9acbf85f5922d2f99a93ae6bb/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..b11f379efe1504d235b4d2d42685ba5dc6af6e9f --- /dev/null +++ b/shared/package-files/3e/3e0c7c091a948b82533ba98fd7cbb40432d6f1a9acbf85f5922d2f99a93ae6bb/LICENSE @@ -0,0 +1,3 @@ +This software is made available under the terms of *either* of the licenses +found in LICENSE.APACHE or LICENSE.BSD. Contributions to cryptography are made +under the terms of *both* these licenses. diff --git a/shared/package-files/3e/3e0d5099db94656e53e184d26324cb608c080f5265613ff43af27214501e4315/__init__.py b/shared/package-files/3e/3e0d5099db94656e53e184d26324cb608c080f5265613ff43af27214501e4315/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..4c416297170c1bbe365daf9698183567a40f44d7 --- /dev/null +++ b/shared/package-files/3e/3e0d5099db94656e53e184d26324cb608c080f5265613ff43af27214501e4315/__init__.py @@ -0,0 +1,25 @@ +""" +Get information about what a frame is currently doing. Typical usage: + + import executing + + node = executing.Source.executing(frame).node + # node will be an AST node or None +""" + +from collections import namedtuple +_VersionInfo = namedtuple('VersionInfo', ('major', 'minor', 'micro')) +from .executing import Source, Executing, only, NotOneValueFound, cache, future_flags +try: + from .version import __version__ + if "dev" in __version__: + raise ValueError +except Exception: + # version.py is auto-generated with the git tag when building + __version__ = "???" + __version_info__ = _VersionInfo(-1, -1, -1) +else: + __version_info__ = _VersionInfo(*map(int, __version__.split('.'))) + + +__all__ = ["Source"] diff --git a/shared/package-files/3e/3e0d95173b372b4409b2e81842343f97d47af939467356ebe389fc3784358f69/unwind.h b/shared/package-files/3e/3e0d95173b372b4409b2e81842343f97d47af939467356ebe389fc3784358f69/unwind.h new file mode 100644 index 0000000000000000000000000000000000000000..69b27f49e5b79988da6f68345cf61db0f802ec89 --- /dev/null +++ b/shared/package-files/3e/3e0d95173b372b4409b2e81842343f97d47af939467356ebe389fc3784358f69/unwind.h @@ -0,0 +1,40 @@ +#pragma once +#include +#include +#include +#include + +namespace torch { +namespace unwind { +// gather current stack, relatively fast. +// gets faster once the cache of program counter locations is warm. +TORCH_API std::vector unwind(); + +struct Frame { + std::string filename; + std::string funcname; + uint64_t lineno; +}; + +// note: symbolize is really slow +// it will launch an addr2line process that has to parse dwarf +// information from the libraries that frames point into. +// Callers should first batch up all the unique void* pointers +// across a number of unwind states and make a single call to +// symbolize. +TORCH_API std::vector symbolize(const std::vector& frames); + +// returns path to the library, and the offset of the addr inside the library +TORCH_API c10::optional> libraryFor( + void* addr); + +struct Stats { + size_t hits = 0; + size_t misses = 0; + size_t unsupported = 0; + size_t resets = 0; +}; +Stats stats(); + +} // namespace unwind +} // namespace torch diff --git a/shared/package-files/3e/3e0dba2d1a6fd3240307901cfacc605571bb86c035358bdaa45800a597d8cd98/isatty_test.py b/shared/package-files/3e/3e0dba2d1a6fd3240307901cfacc605571bb86c035358bdaa45800a597d8cd98/isatty_test.py new file mode 100644 index 0000000000000000000000000000000000000000..0f84e4befe550d4386d24264648abf1323e682ff --- /dev/null +++ b/shared/package-files/3e/3e0dba2d1a6fd3240307901cfacc605571bb86c035358bdaa45800a597d8cd98/isatty_test.py @@ -0,0 +1,57 @@ +# Copyright Jonathan Hartley 2013. BSD 3-Clause license, see LICENSE file. +import sys +from unittest import TestCase, main + +from ..ansitowin32 import StreamWrapper, AnsiToWin32 +from .utils import pycharm, replace_by, replace_original_by, StreamTTY, StreamNonTTY + + +def is_a_tty(stream): + return StreamWrapper(stream, None).isatty() + +class IsattyTest(TestCase): + + def test_TTY(self): + tty = StreamTTY() + self.assertTrue(is_a_tty(tty)) + with pycharm(): + self.assertTrue(is_a_tty(tty)) + + def test_nonTTY(self): + non_tty = StreamNonTTY() + self.assertFalse(is_a_tty(non_tty)) + with pycharm(): + self.assertFalse(is_a_tty(non_tty)) + + def test_withPycharm(self): + with pycharm(): + self.assertTrue(is_a_tty(sys.stderr)) + self.assertTrue(is_a_tty(sys.stdout)) + + def test_withPycharmTTYOverride(self): + tty = StreamTTY() + with pycharm(), replace_by(tty): + self.assertTrue(is_a_tty(tty)) + + def test_withPycharmNonTTYOverride(self): + non_tty = StreamNonTTY() + with pycharm(), replace_by(non_tty): + self.assertFalse(is_a_tty(non_tty)) + + def test_withPycharmNoneOverride(self): + with pycharm(): + with replace_by(None), replace_original_by(None): + self.assertFalse(is_a_tty(None)) + self.assertFalse(is_a_tty(StreamNonTTY())) + self.assertTrue(is_a_tty(StreamTTY())) + + def test_withPycharmStreamWrapped(self): + with pycharm(): + self.assertTrue(AnsiToWin32(StreamTTY()).stream.isatty()) + self.assertFalse(AnsiToWin32(StreamNonTTY()).stream.isatty()) + self.assertTrue(AnsiToWin32(sys.stdout).stream.isatty()) + self.assertTrue(AnsiToWin32(sys.stderr).stream.isatty()) + + +if __name__ == '__main__': + main() diff --git a/shared/package-files/3e/3e0f6789616442f4dcb521f5b6f22e78c3711a1c4237468b80a15efdc58428c6/_test_autograd_multiple_dispatch_ops.h b/shared/package-files/3e/3e0f6789616442f4dcb521f5b6f22e78c3711a1c4237468b80a15efdc58428c6/_test_autograd_multiple_dispatch_ops.h new file mode 100644 index 0000000000000000000000000000000000000000..aba9833ebcebc86aff330796d313bf92b99ac2d9 --- /dev/null +++ b/shared/package-files/3e/3e0f6789616442f4dcb521f5b6f22e78c3711a1c4237468b80a15efdc58428c6/_test_autograd_multiple_dispatch_ops.h @@ -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 _test_autograd_multiple_dispatch_fullcoverage { + 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::_test_autograd_multiple_dispatch") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "fullcoverage") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "_test_autograd_multiple_dispatch.fullcoverage(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 _test_autograd_multiple_dispatch_ntonly { + using schema = at::Tensor (const at::Tensor &, bool); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::_test_autograd_multiple_dispatch") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "ntonly") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "_test_autograd_multiple_dispatch.ntonly(Tensor self, bool b) -> Tensor") + static at::Tensor call(const at::Tensor & self, bool b); + static at::Tensor redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, bool b); +}; + +struct TORCH_API _test_autograd_multiple_dispatch_fullcoverage_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::_test_autograd_multiple_dispatch") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "fullcoverage_out") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "_test_autograd_multiple_dispatch.fullcoverage_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/3e/3e16383634590e853965b73c316d2cc0f126f3587081667ade0014f776cb5552/ndarrayobject.h b/shared/package-files/3e/3e16383634590e853965b73c316d2cc0f126f3587081667ade0014f776cb5552/ndarrayobject.h new file mode 100644 index 0000000000000000000000000000000000000000..36cfdd6f67643c9ea63d0c0e50acc59aac2bf72e --- /dev/null +++ b/shared/package-files/3e/3e16383634590e853965b73c316d2cc0f126f3587081667ade0014f776cb5552/ndarrayobject.h @@ -0,0 +1,251 @@ +/* + * DON'T INCLUDE THIS DIRECTLY. + */ +#ifndef NUMPY_CORE_INCLUDE_NUMPY_NDARRAYOBJECT_H_ +#define NUMPY_CORE_INCLUDE_NUMPY_NDARRAYOBJECT_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +#include +#include "ndarraytypes.h" + +/* Includes the "function" C-API -- these are all stored in a + list of pointers --- one for each file + The two lists are concatenated into one in multiarray. + + They are available as import_array() +*/ + +#include "__multiarray_api.h" + + +/* C-API that requires previous API to be defined */ + +#define PyArray_DescrCheck(op) PyObject_TypeCheck(op, &PyArrayDescr_Type) + +#define PyArray_Check(op) PyObject_TypeCheck(op, &PyArray_Type) +#define PyArray_CheckExact(op) (((PyObject*)(op))->ob_type == &PyArray_Type) + +#define PyArray_HasArrayInterfaceType(op, type, context, out) \ + ((((out)=PyArray_FromStructInterface(op)) != Py_NotImplemented) || \ + (((out)=PyArray_FromInterface(op)) != Py_NotImplemented) || \ + (((out)=PyArray_FromArrayAttr(op, type, context)) != \ + Py_NotImplemented)) + +#define PyArray_HasArrayInterface(op, out) \ + PyArray_HasArrayInterfaceType(op, NULL, NULL, out) + +#define PyArray_IsZeroDim(op) (PyArray_Check(op) && \ + (PyArray_NDIM((PyArrayObject *)op) == 0)) + +#define PyArray_IsScalar(obj, cls) \ + (PyObject_TypeCheck(obj, &Py##cls##ArrType_Type)) + +#define PyArray_CheckScalar(m) (PyArray_IsScalar(m, Generic) || \ + PyArray_IsZeroDim(m)) +#define PyArray_IsPythonNumber(obj) \ + (PyFloat_Check(obj) || PyComplex_Check(obj) || \ + PyLong_Check(obj) || PyBool_Check(obj)) +#define PyArray_IsIntegerScalar(obj) (PyLong_Check(obj) \ + || PyArray_IsScalar((obj), Integer)) +#define PyArray_IsPythonScalar(obj) \ + (PyArray_IsPythonNumber(obj) || PyBytes_Check(obj) || \ + PyUnicode_Check(obj)) + +#define PyArray_IsAnyScalar(obj) \ + (PyArray_IsScalar(obj, Generic) || PyArray_IsPythonScalar(obj)) + +#define PyArray_CheckAnyScalar(obj) (PyArray_IsPythonScalar(obj) || \ + PyArray_CheckScalar(obj)) + + +#define PyArray_GETCONTIGUOUS(m) (PyArray_ISCONTIGUOUS(m) ? \ + Py_INCREF(m), (m) : \ + (PyArrayObject *)(PyArray_Copy(m))) + +#define PyArray_SAMESHAPE(a1,a2) ((PyArray_NDIM(a1) == PyArray_NDIM(a2)) && \ + PyArray_CompareLists(PyArray_DIMS(a1), \ + PyArray_DIMS(a2), \ + PyArray_NDIM(a1))) + +#define PyArray_SIZE(m) PyArray_MultiplyList(PyArray_DIMS(m), PyArray_NDIM(m)) +#define PyArray_NBYTES(m) (PyArray_ITEMSIZE(m) * PyArray_SIZE(m)) +#define PyArray_FROM_O(m) PyArray_FromAny(m, NULL, 0, 0, 0, NULL) + +#define PyArray_FROM_OF(m,flags) PyArray_CheckFromAny(m, NULL, 0, 0, flags, \ + NULL) + +#define PyArray_FROM_OT(m,type) PyArray_FromAny(m, \ + PyArray_DescrFromType(type), 0, 0, 0, NULL) + +#define PyArray_FROM_OTF(m, type, flags) \ + PyArray_FromAny(m, PyArray_DescrFromType(type), 0, 0, \ + (((flags) & NPY_ARRAY_ENSURECOPY) ? \ + ((flags) | NPY_ARRAY_DEFAULT) : (flags)), NULL) + +#define PyArray_FROMANY(m, type, min, max, flags) \ + PyArray_FromAny(m, PyArray_DescrFromType(type), min, max, \ + (((flags) & NPY_ARRAY_ENSURECOPY) ? \ + (flags) | NPY_ARRAY_DEFAULT : (flags)), NULL) + +#define PyArray_ZEROS(m, dims, type, is_f_order) \ + PyArray_Zeros(m, dims, PyArray_DescrFromType(type), is_f_order) + +#define PyArray_EMPTY(m, dims, type, is_f_order) \ + PyArray_Empty(m, dims, PyArray_DescrFromType(type), is_f_order) + +#define PyArray_FILLWBYTE(obj, val) memset(PyArray_DATA(obj), val, \ + PyArray_NBYTES(obj)) +#ifndef PYPY_VERSION +#define PyArray_REFCOUNT(obj) (((PyObject *)(obj))->ob_refcnt) +#define NPY_REFCOUNT PyArray_REFCOUNT +#endif +#define NPY_MAX_ELSIZE (2 * NPY_SIZEOF_LONGDOUBLE) + +#define PyArray_ContiguousFromAny(op, type, min_depth, max_depth) \ + PyArray_FromAny(op, PyArray_DescrFromType(type), min_depth, \ + max_depth, NPY_ARRAY_DEFAULT, NULL) + +#define PyArray_EquivArrTypes(a1, a2) \ + PyArray_EquivTypes(PyArray_DESCR(a1), PyArray_DESCR(a2)) + +#define PyArray_EquivByteorders(b1, b2) \ + (((b1) == (b2)) || (PyArray_ISNBO(b1) == PyArray_ISNBO(b2))) + +#define PyArray_SimpleNew(nd, dims, typenum) \ + PyArray_New(&PyArray_Type, nd, dims, typenum, NULL, NULL, 0, 0, NULL) + +#define PyArray_SimpleNewFromData(nd, dims, typenum, data) \ + PyArray_New(&PyArray_Type, nd, dims, typenum, NULL, \ + data, 0, NPY_ARRAY_CARRAY, NULL) + +#define PyArray_SimpleNewFromDescr(nd, dims, descr) \ + PyArray_NewFromDescr(&PyArray_Type, descr, nd, dims, \ + NULL, NULL, 0, NULL) + +#define PyArray_ToScalar(data, arr) \ + PyArray_Scalar(data, PyArray_DESCR(arr), (PyObject *)arr) + + +/* These might be faster without the dereferencing of obj + going on inside -- of course an optimizing compiler should + inline the constants inside a for loop making it a moot point +*/ + +#define PyArray_GETPTR1(obj, i) ((void *)(PyArray_BYTES(obj) + \ + (i)*PyArray_STRIDES(obj)[0])) + +#define PyArray_GETPTR2(obj, i, j) ((void *)(PyArray_BYTES(obj) + \ + (i)*PyArray_STRIDES(obj)[0] + \ + (j)*PyArray_STRIDES(obj)[1])) + +#define PyArray_GETPTR3(obj, i, j, k) ((void *)(PyArray_BYTES(obj) + \ + (i)*PyArray_STRIDES(obj)[0] + \ + (j)*PyArray_STRIDES(obj)[1] + \ + (k)*PyArray_STRIDES(obj)[2])) + +#define PyArray_GETPTR4(obj, i, j, k, l) ((void *)(PyArray_BYTES(obj) + \ + (i)*PyArray_STRIDES(obj)[0] + \ + (j)*PyArray_STRIDES(obj)[1] + \ + (k)*PyArray_STRIDES(obj)[2] + \ + (l)*PyArray_STRIDES(obj)[3])) + +static inline void +PyArray_DiscardWritebackIfCopy(PyArrayObject *arr) +{ + PyArrayObject_fields *fa = (PyArrayObject_fields *)arr; + if (fa && fa->base) { + if (fa->flags & NPY_ARRAY_WRITEBACKIFCOPY) { + PyArray_ENABLEFLAGS((PyArrayObject*)fa->base, NPY_ARRAY_WRITEABLE); + Py_DECREF(fa->base); + fa->base = NULL; + PyArray_CLEARFLAGS(arr, NPY_ARRAY_WRITEBACKIFCOPY); + } + } +} + +#define PyArray_DESCR_REPLACE(descr) do { \ + PyArray_Descr *_new_; \ + _new_ = PyArray_DescrNew(descr); \ + Py_XDECREF(descr); \ + descr = _new_; \ + } while(0) + +/* Copy should always return contiguous array */ +#define PyArray_Copy(obj) PyArray_NewCopy(obj, NPY_CORDER) + +#define PyArray_FromObject(op, type, min_depth, max_depth) \ + PyArray_FromAny(op, PyArray_DescrFromType(type), min_depth, \ + max_depth, NPY_ARRAY_BEHAVED | \ + NPY_ARRAY_ENSUREARRAY, NULL) + +#define PyArray_ContiguousFromObject(op, type, min_depth, max_depth) \ + PyArray_FromAny(op, PyArray_DescrFromType(type), min_depth, \ + max_depth, NPY_ARRAY_DEFAULT | \ + NPY_ARRAY_ENSUREARRAY, NULL) + +#define PyArray_CopyFromObject(op, type, min_depth, max_depth) \ + PyArray_FromAny(op, PyArray_DescrFromType(type), min_depth, \ + max_depth, NPY_ARRAY_ENSURECOPY | \ + NPY_ARRAY_DEFAULT | \ + NPY_ARRAY_ENSUREARRAY, NULL) + +#define PyArray_Cast(mp, type_num) \ + PyArray_CastToType(mp, PyArray_DescrFromType(type_num), 0) + +#define PyArray_Take(ap, items, axis) \ + PyArray_TakeFrom(ap, items, axis, NULL, NPY_RAISE) + +#define PyArray_Put(ap, items, values) \ + PyArray_PutTo(ap, items, values, NPY_RAISE) + +/* Compatibility with old Numeric stuff -- don't use in new code */ + +#define PyArray_FromDimsAndData(nd, d, type, data) \ + PyArray_FromDimsAndDataAndDescr(nd, d, PyArray_DescrFromType(type), \ + data) + + +/* + Check to see if this key in the dictionary is the "title" + entry of the tuple (i.e. a duplicate dictionary entry in the fields + dict). +*/ + +static inline int +NPY_TITLE_KEY_check(PyObject *key, PyObject *value) +{ + PyObject *title; + if (PyTuple_Size(value) != 3) { + return 0; + } + title = PyTuple_GetItem(value, 2); + if (key == title) { + return 1; + } +#ifdef PYPY_VERSION + /* + * On PyPy, dictionary keys do not always preserve object identity. + * Fall back to comparison by value. + */ + if (PyUnicode_Check(title) && PyUnicode_Check(key)) { + return PyUnicode_Compare(title, key) == 0 ? 1 : 0; + } +#endif + return 0; +} + +/* Macro, for backward compat with "if NPY_TITLE_KEY(key, value) { ..." */ +#define NPY_TITLE_KEY(key, value) (NPY_TITLE_KEY_check((key), (value))) + +#define DEPRECATE(msg) PyErr_WarnEx(PyExc_DeprecationWarning,msg,1) +#define DEPRECATE_FUTUREWARNING(msg) PyErr_WarnEx(PyExc_FutureWarning,msg,1) + +#ifdef __cplusplus +} +#endif + + +#endif /* NUMPY_CORE_INCLUDE_NUMPY_NDARRAYOBJECT_H_ */ diff --git a/shared/package-files/3e/3e1b155a36233873d946a5f89b051cee394e1f7b6777ba7da6430587cec2b4a5/test_label_or_level_utils.py b/shared/package-files/3e/3e1b155a36233873d946a5f89b051cee394e1f7b6777ba7da6430587cec2b4a5/test_label_or_level_utils.py new file mode 100644 index 0000000000000000000000000000000000000000..97be46f716d7daa98c1c1ebab04e1e6abb3a55bc --- /dev/null +++ b/shared/package-files/3e/3e1b155a36233873d946a5f89b051cee394e1f7b6777ba7da6430587cec2b4a5/test_label_or_level_utils.py @@ -0,0 +1,336 @@ +import pytest + +from pandas.core.dtypes.missing import array_equivalent + +import pandas as pd + + +# Fixtures +# ======== +@pytest.fixture +def df(): + """DataFrame with columns 'L1', 'L2', and 'L3'""" + return pd.DataFrame({"L1": [1, 2, 3], "L2": [11, 12, 13], "L3": ["A", "B", "C"]}) + + +@pytest.fixture(params=[[], ["L1"], ["L1", "L2"], ["L1", "L2", "L3"]]) +def df_levels(request, df): + """DataFrame with columns or index levels 'L1', 'L2', and 'L3'""" + levels = request.param + + if levels: + df = df.set_index(levels) + + return df + + +@pytest.fixture +def df_ambig(df): + """DataFrame with levels 'L1' and 'L2' and labels 'L1' and 'L3'""" + df = df.set_index(["L1", "L2"]) + + df["L1"] = df["L3"] + + return df + + +@pytest.fixture +def df_duplabels(df): + """DataFrame with level 'L1' and labels 'L2', 'L3', and 'L2'""" + df = df.set_index(["L1"]) + df = pd.concat([df, df["L2"]], axis=1) + + return df + + +# Test is label/level reference +# ============================= +def get_labels_levels(df_levels): + expected_labels = list(df_levels.columns) + expected_levels = [name for name in df_levels.index.names if name is not None] + return expected_labels, expected_levels + + +def assert_label_reference(frame, labels, axis): + for label in labels: + assert frame._is_label_reference(label, axis=axis) + assert not frame._is_level_reference(label, axis=axis) + assert frame._is_label_or_level_reference(label, axis=axis) + + +def assert_level_reference(frame, levels, axis): + for level in levels: + assert frame._is_level_reference(level, axis=axis) + assert not frame._is_label_reference(level, axis=axis) + assert frame._is_label_or_level_reference(level, axis=axis) + + +# DataFrame +# --------- +def test_is_level_or_label_reference_df_simple(df_levels, axis): + axis = df_levels._get_axis_number(axis) + # Compute expected labels and levels + expected_labels, expected_levels = get_labels_levels(df_levels) + + # Transpose frame if axis == 1 + if axis == 1: + df_levels = df_levels.T + + # Perform checks + assert_level_reference(df_levels, expected_levels, axis=axis) + assert_label_reference(df_levels, expected_labels, axis=axis) + + +def test_is_level_reference_df_ambig(df_ambig, axis): + axis = df_ambig._get_axis_number(axis) + + # Transpose frame if axis == 1 + if axis == 1: + df_ambig = df_ambig.T + + # df has both an on-axis level and off-axis label named L1 + # Therefore L1 should reference the label, not the level + assert_label_reference(df_ambig, ["L1"], axis=axis) + + # df has an on-axis level named L2 and it is not ambiguous + # Therefore L2 is an level reference + assert_level_reference(df_ambig, ["L2"], axis=axis) + + # df has a column named L3 and it not an level reference + assert_label_reference(df_ambig, ["L3"], axis=axis) + + +# Series +# ------ +def test_is_level_reference_series_simple_axis0(df): + # Make series with L1 as index + s = df.set_index("L1").L2 + assert_level_reference(s, ["L1"], axis=0) + assert not s._is_level_reference("L2") + + # Make series with L1 and L2 as index + s = df.set_index(["L1", "L2"]).L3 + assert_level_reference(s, ["L1", "L2"], axis=0) + assert not s._is_level_reference("L3") + + +def test_is_level_reference_series_axis1_error(df): + # Make series with L1 as index + s = df.set_index("L1").L2 + + with pytest.raises(ValueError, match="No axis named 1"): + s._is_level_reference("L1", axis=1) + + +# Test _check_label_or_level_ambiguity_df +# ======================================= + + +# DataFrame +# --------- +def test_check_label_or_level_ambiguity_df(df_ambig, axis): + axis = df_ambig._get_axis_number(axis) + # Transpose frame if axis == 1 + if axis == 1: + df_ambig = df_ambig.T + msg = "'L1' is both a column level and an index label" + + else: + msg = "'L1' is both an index level and a column label" + # df_ambig has both an on-axis level and off-axis label named L1 + # Therefore, L1 is ambiguous. + with pytest.raises(ValueError, match=msg): + df_ambig._check_label_or_level_ambiguity("L1", axis=axis) + + # df_ambig has an on-axis level named L2,, and it is not ambiguous. + df_ambig._check_label_or_level_ambiguity("L2", axis=axis) + + # df_ambig has an off-axis label named L3, and it is not ambiguous + assert not df_ambig._check_label_or_level_ambiguity("L3", axis=axis) + + +# Series +# ------ +def test_check_label_or_level_ambiguity_series(df): + # A series has no columns and therefore references are never ambiguous + + # Make series with L1 as index + s = df.set_index("L1").L2 + s._check_label_or_level_ambiguity("L1", axis=0) + s._check_label_or_level_ambiguity("L2", axis=0) + + # Make series with L1 and L2 as index + s = df.set_index(["L1", "L2"]).L3 + s._check_label_or_level_ambiguity("L1", axis=0) + s._check_label_or_level_ambiguity("L2", axis=0) + s._check_label_or_level_ambiguity("L3", axis=0) + + +def test_check_label_or_level_ambiguity_series_axis1_error(df): + # Make series with L1 as index + s = df.set_index("L1").L2 + + with pytest.raises(ValueError, match="No axis named 1"): + s._check_label_or_level_ambiguity("L1", axis=1) + + +# Test _get_label_or_level_values +# =============================== +def assert_label_values(frame, labels, axis): + axis = frame._get_axis_number(axis) + for label in labels: + if axis == 0: + expected = frame[label]._values + else: + expected = frame.loc[label]._values + + result = frame._get_label_or_level_values(label, axis=axis) + assert array_equivalent(expected, result) + + +def assert_level_values(frame, levels, axis): + axis = frame._get_axis_number(axis) + for level in levels: + if axis == 0: + expected = frame.index.get_level_values(level=level)._values + else: + expected = frame.columns.get_level_values(level=level)._values + + result = frame._get_label_or_level_values(level, axis=axis) + assert array_equivalent(expected, result) + + +# DataFrame +# --------- +def test_get_label_or_level_values_df_simple(df_levels, axis): + # Compute expected labels and levels + expected_labels, expected_levels = get_labels_levels(df_levels) + + axis = df_levels._get_axis_number(axis) + # Transpose frame if axis == 1 + if axis == 1: + df_levels = df_levels.T + + # Perform checks + assert_label_values(df_levels, expected_labels, axis=axis) + assert_level_values(df_levels, expected_levels, axis=axis) + + +def test_get_label_or_level_values_df_ambig(df_ambig, axis): + axis = df_ambig._get_axis_number(axis) + # Transpose frame if axis == 1 + if axis == 1: + df_ambig = df_ambig.T + + # df has an on-axis level named L2, and it is not ambiguous. + assert_level_values(df_ambig, ["L2"], axis=axis) + + # df has an off-axis label named L3, and it is not ambiguous. + assert_label_values(df_ambig, ["L3"], axis=axis) + + +def test_get_label_or_level_values_df_duplabels(df_duplabels, axis): + axis = df_duplabels._get_axis_number(axis) + # Transpose frame if axis == 1 + if axis == 1: + df_duplabels = df_duplabels.T + + # df has unambiguous level 'L1' + assert_level_values(df_duplabels, ["L1"], axis=axis) + + # df has unique label 'L3' + assert_label_values(df_duplabels, ["L3"], axis=axis) + + # df has duplicate labels 'L2' + if axis == 0: + expected_msg = "The column label 'L2' is not unique" + else: + expected_msg = "The index label 'L2' is not unique" + + with pytest.raises(ValueError, match=expected_msg): + assert_label_values(df_duplabels, ["L2"], axis=axis) + + +# Series +# ------ +def test_get_label_or_level_values_series_axis0(df): + # Make series with L1 as index + s = df.set_index("L1").L2 + assert_level_values(s, ["L1"], axis=0) + + # Make series with L1 and L2 as index + s = df.set_index(["L1", "L2"]).L3 + assert_level_values(s, ["L1", "L2"], axis=0) + + +def test_get_label_or_level_values_series_axis1_error(df): + # Make series with L1 as index + s = df.set_index("L1").L2 + + with pytest.raises(ValueError, match="No axis named 1"): + s._get_label_or_level_values("L1", axis=1) + + +# Test _drop_labels_or_levels +# =========================== +def assert_labels_dropped(frame, labels, axis): + axis = frame._get_axis_number(axis) + for label in labels: + df_dropped = frame._drop_labels_or_levels(label, axis=axis) + + if axis == 0: + assert label in frame.columns + assert label not in df_dropped.columns + else: + assert label in frame.index + assert label not in df_dropped.index + + +def assert_levels_dropped(frame, levels, axis): + axis = frame._get_axis_number(axis) + for level in levels: + df_dropped = frame._drop_labels_or_levels(level, axis=axis) + + if axis == 0: + assert level in frame.index.names + assert level not in df_dropped.index.names + else: + assert level in frame.columns.names + assert level not in df_dropped.columns.names + + +# DataFrame +# --------- +def test_drop_labels_or_levels_df(df_levels, axis): + # Compute expected labels and levels + expected_labels, expected_levels = get_labels_levels(df_levels) + + axis = df_levels._get_axis_number(axis) + # Transpose frame if axis == 1 + if axis == 1: + df_levels = df_levels.T + + # Perform checks + assert_labels_dropped(df_levels, expected_labels, axis=axis) + assert_levels_dropped(df_levels, expected_levels, axis=axis) + + with pytest.raises(ValueError, match="not valid labels or levels"): + df_levels._drop_labels_or_levels("L4", axis=axis) + + +# Series +# ------ +def test_drop_labels_or_levels_series(df): + # Make series with L1 as index + s = df.set_index("L1").L2 + assert_levels_dropped(s, ["L1"], axis=0) + + with pytest.raises(ValueError, match="not valid labels or levels"): + s._drop_labels_or_levels("L4", axis=0) + + # Make series with L1 and L2 as index + s = df.set_index(["L1", "L2"]).L3 + assert_levels_dropped(s, ["L1", "L2"], axis=0) + + with pytest.raises(ValueError, match="not valid labels or levels"): + s._drop_labels_or_levels("L4", axis=0) diff --git a/shared/package-files/3e/3e1b3eec43196ef0c946b23d1e3fea481c2f24dcfdec2da3c98fee61fb150812/vec256_quint8_vsx.h b/shared/package-files/3e/3e1b3eec43196ef0c946b23d1e3fea481c2f24dcfdec2da3c98fee61fb150812/vec256_quint8_vsx.h new file mode 100644 index 0000000000000000000000000000000000000000..c3a320af156decf30009f906d3904caef028a173 --- /dev/null +++ b/shared/package-files/3e/3e1b3eec43196ef0c946b23d1e3fea481c2f24dcfdec2da3c98fee61fb150812/vec256_quint8_vsx.h @@ -0,0 +1,466 @@ +#pragma once + +#include +#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 -> 4x 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 { + +const vint16 mask_unsigned = vec_splats((short int)0xFF); +template <> +struct Vectorized { + private: + union { + struct { + vuint8 _vec0; + vuint8 _vec1; + }; + struct { + vbool8 _vecb0; + vbool8 _vecb1; + }; + + } __attribute__((__may_alias__)); + + public: + Vectorized() {} + using size_type = int; + static constexpr size_type size() { + return 32; + } + + static constexpr size_t float_num_vecs() { + return 4; + } + static constexpr int int_num_vecs() { + return 4; + } + using float_vec_return_type = std::array, 4>; + using int_vec_return_type = std::array, 4>; + using value_type = typename c10::quint8::underlying; + using vec_internal_type = vuint8; + using vec_internal_mask_type = vbool8; + // Broadcast constructor + C10_ALWAYS_INLINE Vectorized(const c10::quint8& val) + : _vec0(vec_splats(val.val_)), _vec1(vec_splats(val.val_)) {} + + C10_ALWAYS_INLINE Vectorized(const Vectorized& other) + : _vec0{other._vec0}, _vec1(other._vec1) {} + + C10_ALWAYS_INLINE Vectorized(vuint8 v) : _vec0{v}, _vec1{v} {} + C10_ALWAYS_INLINE Vectorized(vbool8 vmask) : _vecb0{vmask}, _vecb1{vmask} {} + C10_ALWAYS_INLINE Vectorized(vuint8 v1, vuint8 v2) : _vec0{v1}, _vec1{v2} {} + C10_ALWAYS_INLINE Vectorized(vbool8 v1, vbool8 v2) : _vecb0{v1}, _vecb1{v2} {} + + C10_ALWAYS_INLINE const vec_internal_type& vec0() const { + return _vec0; + } + C10_ALWAYS_INLINE const vec_internal_type& vec1() const { + return _vec1; + } + + static C10_ALWAYS_INLINE Vectorized 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)); + } + } + + public: + float_vec_return_type C10_ALWAYS_INLINE dequantize( + Vectorized scale, + Vectorized zero_point, + Vectorized scale_zp_premul) const { + // unpacking unsigned as signed + vint16 vecshi0 = vec_unpackh((vint8)_vec0); + vint16 vecshi1 = vec_unpackl((vint8)_vec0); + + vint16 vecshi2 = vec_unpackh((vint8)_vec1); + vint16 vecshi3 = vec_unpackl((vint8)_vec1); + + // signed -> unsigned + vecshi0 = vec_and(vecshi0, mask_unsigned); + vecshi1 = vec_and(vecshi1, mask_unsigned); + + vecshi2 = vec_and(vecshi2, mask_unsigned); + vecshi3 = vec_and(vecshi3, mask_unsigned); + + vint32 veci0 = vec_unpackh(vecshi0); + vint32 veci1 = vec_unpackl(vecshi0); + + vint32 veci2 = vec_unpackh(vecshi1); + vint32 veci3 = vec_unpackl(vecshi1); + + vint32 veci4 = vec_unpackh(vecshi2); + vint32 veci5 = vec_unpackl(vecshi2); + + vint32 veci6 = vec_unpackh(vecshi3); + vint32 veci7 = vec_unpackl(vecshi3); + + vfloat32 vecf0_0 = vec_float(veci0); + vfloat32 vecf1_0 = vec_float(veci1); + + vfloat32 vecf0_1 = vec_float(veci2); + vfloat32 vecf1_1 = vec_float(veci3); + + vfloat32 vecf0_2 = vec_float(veci4); + vfloat32 vecf1_2 = vec_float(veci5); + + vfloat32 vecf0_3 = vec_float(veci6); + vfloat32 vecf1_3 = vec_float(veci7); + 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, vecf0_0, scale_zp_premul0), + vec_madd(scale_vec1, vecf1_0, scale_zp_premul1)}, + Vectorized{ + vec_madd(scale_vec0, vecf0_1, scale_zp_premul0), + vec_madd(scale_vec1, vecf1_1, scale_zp_premul1)}, + Vectorized{ + vec_madd(scale_vec0, vecf0_2, scale_zp_premul0), + vec_madd(scale_vec1, vecf1_2, scale_zp_premul1)}, + Vectorized{ + vec_madd(scale_vec0, vecf0_3, scale_zp_premul0), + vec_madd(scale_vec1, vecf1_3, scale_zp_premul1)}}; + } + + float_vec_return_type C10_ALWAYS_INLINE dequantize( + Vectorized scale, + Vectorized zero_point) const { + // unpacking unsigned as signed + vint16 vecshi0 = vec_unpackh((vint8)_vec0); + vint16 vecshi1 = vec_unpackl((vint8)_vec0); + + vint16 vecshi2 = vec_unpackh((vint8)_vec1); + vint16 vecshi3 = vec_unpackl((vint8)_vec1); + + // signed -> unsigned + vecshi0 = vec_and(vecshi0, mask_unsigned); + vecshi1 = vec_and(vecshi1, mask_unsigned); + + vecshi2 = vec_and(vecshi2, mask_unsigned); + vecshi3 = vec_and(vecshi3, mask_unsigned); + + vint32 veci0 = vec_unpackh(vecshi0); + vint32 veci1 = vec_unpackl(vecshi0); + + vint32 veci2 = vec_unpackh(vecshi1); + vint32 veci3 = vec_unpackl(vecshi1); + + vint32 veci4 = vec_unpackh(vecshi2); + vint32 veci5 = vec_unpackl(vecshi2); + + vint32 veci6 = vec_unpackh(vecshi3); + vint32 veci7 = vec_unpackl(vecshi3); + + vfloat32 vecf0_0 = vec_float(veci0); + vfloat32 vecf1_0 = vec_float(veci1); + + vfloat32 vecf0_1 = vec_float(veci2); + vfloat32 vecf1_1 = vec_float(veci3); + + vfloat32 vecf0_2 = vec_float(veci4); + vfloat32 vecf1_2 = vec_float(veci5); + + vfloat32 vecf0_3 = vec_float(veci6); + vfloat32 vecf1_3 = vec_float(veci7); + vfloat32 scale_vec0 = scale.vec0(); + vfloat32 scale_vec1 = scale.vec1(); + vfloat32 zero_point0 = zero_point.vec0(); + vfloat32 zero_point1 = zero_point.vec1(); + return { + Vectorized{ + (vecf0_0 - zero_point0) * scale_vec0, + (vecf1_0 - zero_point1) * scale_vec1}, + Vectorized{ + (vecf0_1 - zero_point0) * scale_vec0, + (vecf1_1 - zero_point1) * scale_vec1}, + Vectorized{ + (vecf0_2 - zero_point0) * scale_vec0, + (vecf1_2 - zero_point1) * scale_vec1}, + Vectorized{ + (vecf0_3 - zero_point0) * scale_vec0, + (vecf1_3 - zero_point1) * scale_vec1}}; + } + + static Vectorized quantize( + const float_vec_return_type& rhs, + float scale, + int32_t zero_point, + float inverse_scale) { + // constexpr int32_t min_val = std::numeric_limits::min(); + // constexpr int32_t max_val = std::numeric_limits::max(); + + vfloat32 vec_inverse = vec_splats(inverse_scale); + vfloat32 vec_zero_point = vec_splats((float)zero_point); + // vuint32 vmin = vec_splats(min_val); + // vuint32 vmax = vec_splats(max_val); + Vectorized vf0 = rhs[0]; + Vectorized vf1 = rhs[1]; + Vectorized vf2 = rhs[2]; + Vectorized vf3 = rhs[3]; + vfloat32 vecf0 = vf0.vec0(); + vfloat32 vecf1 = vf0.vec1(); + vfloat32 vecf2 = vf1.vec0(); + vfloat32 vecf3 = vf1.vec1(); + + vfloat32 vecf4 = vf2.vec0(); + vfloat32 vecf5 = vf2.vec1(); + vfloat32 vecf6 = vf3.vec0(); + vfloat32 vecf7 = vf3.vec1(); + + vecf0 = vec_mul(vecf0, vec_inverse); + vecf1 = vec_mul(vecf1, vec_inverse); + vecf2 = vec_mul(vecf2, vec_inverse); + vecf3 = vec_mul(vecf3, vec_inverse); + + vecf4 = vec_mul(vecf4, vec_inverse); + vecf5 = vec_mul(vecf5, vec_inverse); + vecf6 = vec_mul(vecf6, vec_inverse); + vecf7 = vec_mul(vecf7, vec_inverse); + + vecf0 = vec_add(vec_rint(vecf0), vec_zero_point); + vecf1 = vec_add(vec_rint(vecf1), vec_zero_point); + vecf2 = vec_add(vec_rint(vecf2), vec_zero_point); + vecf3 = vec_add(vec_rint(vecf3), vec_zero_point); + + vecf4 = vec_add(vec_rint(vecf4), vec_zero_point); + vecf5 = vec_add(vec_rint(vecf5), vec_zero_point); + vecf6 = vec_add(vec_rint(vecf6), vec_zero_point); + vecf7 = vec_add(vec_rint(vecf7), vec_zero_point); + + vint32 veci0 = vec_signed(vecf0); + vint32 veci1 = vec_signed(vecf1); + vint32 veci2 = vec_signed(vecf2); + vint32 veci3 = vec_signed(vecf3); + + vint32 veci4 = vec_signed(vecf4); + vint32 veci5 = vec_signed(vecf5); + vint32 veci6 = vec_signed(vecf6); + vint32 veci7 = vec_signed(vecf7); + + vint16 vecshi0 = vec_packs(veci0, veci1); + vint16 vecshi1 = vec_packs(veci2, veci3); + vint16 vecshi2 = vec_packs(veci4, veci5); + vint16 vecshi3 = vec_packs(veci6, veci7); + + vuint8 vec0 = vec_packsu(vecshi0, vecshi1); + vuint8 vec1 = vec_packsu(vecshi2, vecshi3); + + return {vec0, vec1}; + } + + Vectorized C10_ALWAYS_INLINE relu(Vectorized zero_point) const { + return {vec_max(_vec0, zero_point._vec0), vec_max(_vec1, zero_point._vec1)}; + } + + Vectorized C10_ALWAYS_INLINE + relu6(Vectorized zero_point, Vectorized q_six) const { + vuint8 max0 = vec_max(_vec0, zero_point._vec0); + vuint8 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 { + vint16 vecshi0 = vec_unpackh((vint8)_vec0); + vint16 vecBshi0 = vec_unpackh((vint8)b._vec0); + vint16 vecshi1 = vec_unpackl((vint8)_vec0); + vint16 vecBshi1 = vec_unpackl((vint8)b._vec0); + + vint16 vecshi2 = vec_unpackh((vint8)_vec1); + vint16 vecBshi2 = vec_unpackh((vint8)b._vec1); + vint16 vecshi3 = vec_unpackl((vint8)_vec1); + vint16 vecBshi3 = vec_unpackl((vint8)b._vec1); + + vecshi0 = vec_and(vecshi0, mask_unsigned); + vecBshi0 = vec_and(vecBshi0, mask_unsigned); + vecshi1 = vec_and(vecshi1, mask_unsigned); + vecBshi1 = vec_and(vecBshi1, mask_unsigned); + + vecshi2 = vec_and(vecshi2, mask_unsigned); + vecBshi2 = vec_and(vecBshi2, mask_unsigned); + vecshi3 = vec_and(vecshi3, mask_unsigned); + vecBshi3 = vec_and(vecBshi3, mask_unsigned); + + vint32 veci0 = vec_unpackh(vecshi0); + vint32 vecBi0 = vec_unpackh(vecBshi0); + vint32 veci1 = vec_unpackl(vecshi0); + vint32 vecBi1 = vec_unpackl(vecBshi0); + + vint32 veci2 = vec_unpackh(vecshi1); + vint32 vecBi2 = vec_unpackh(vecBshi1); + vint32 veci3 = vec_unpackl(vecshi1); + vint32 vecBi3 = vec_unpackl(vecBshi1); + + vint32 veci4 = vec_unpackh(vecshi2); + vint32 vecBi4 = vec_unpackh(vecBshi2); + vint32 veci5 = vec_unpackl(vecshi2); + vint32 vecBi5 = vec_unpackl(vecBshi2); + + vint32 veci6 = vec_unpackh(vecshi3); + vint32 vecBi6 = vec_unpackh(vecBshi3); + vint32 veci7 = vec_unpackl(vecshi3); + vint32 vecBi7 = vec_unpackl(vecBshi3); + + return { + Vectorized(veci0 - vecBi0, veci1 - vecBi1), + Vectorized(veci2 - vecBi2, veci3 - vecBi3), + Vectorized(veci4 - vecBi4, veci5 - vecBi5), + Vectorized(veci6 - vecBi6, veci7 - vecBi7)}; + } + + static Vectorized requantize_from_int( + const int_vec_return_type& inp, + float multiplier, + int32_t zero_point) { + vfloat32 vec_multiplier = vec_splats(multiplier); + vint32 vec_zero_point = vec_splats(zero_point); + + Vectorized vi0 = inp[0]; + Vectorized vi1 = inp[1]; + Vectorized vi2 = inp[2]; + Vectorized vi3 = inp[3]; + + vfloat32 vecf0 = vec_float(vi0.vec0()); + vfloat32 vecf1 = vec_float(vi0.vec1()); + vfloat32 vecf2 = vec_float(vi1.vec0()); + vfloat32 vecf3 = vec_float(vi1.vec1()); + + vfloat32 vecf4 = vec_float(vi2.vec0()); + vfloat32 vecf5 = vec_float(vi2.vec1()); + vfloat32 vecf6 = vec_float(vi3.vec0()); + vfloat32 vecf7 = vec_float(vi3.vec1()); + + vecf0 = vec_mul(vecf0, vec_multiplier); + vecf1 = vec_mul(vecf1, vec_multiplier); + vecf2 = vec_mul(vecf2, vec_multiplier); + vecf3 = vec_mul(vecf3, vec_multiplier); + + vecf4 = vec_mul(vecf4, vec_multiplier); + vecf5 = vec_mul(vecf5, vec_multiplier); + vecf6 = vec_mul(vecf6, vec_multiplier); + vecf7 = vec_mul(vecf7, vec_multiplier); + + vecf0 = vec_rint(vecf0); + vecf1 = vec_rint(vecf1); + vecf2 = vec_rint(vecf2); + vecf3 = vec_rint(vecf3); + + vecf4 = vec_rint(vecf4); + vecf5 = vec_rint(vecf5); + vecf6 = vec_rint(vecf6); + vecf7 = vec_rint(vecf7); + + vint32 veci0 = vec_signed(vecf0); + vint32 veci1 = vec_signed(vecf1); + vint32 veci2 = vec_signed(vecf2); + vint32 veci3 = vec_signed(vecf3); + + vint32 veci4 = vec_signed(vecf4); + vint32 veci5 = vec_signed(vecf5); + vint32 veci6 = vec_signed(vecf6); + vint32 veci7 = vec_signed(vecf7); + + veci0 = vec_add(veci0, vec_zero_point); + veci1 = vec_add(veci1, vec_zero_point); + veci2 = vec_add(veci2, vec_zero_point); + veci3 = vec_add(veci3, vec_zero_point); + + veci4 = vec_add(veci4, vec_zero_point); + veci5 = vec_add(veci5, vec_zero_point); + veci6 = vec_add(veci6, vec_zero_point); + veci7 = vec_add(veci7, vec_zero_point); + + vint16 vecshi0 = vec_packs(veci0, veci1); + vint16 vecshi1 = vec_packs(veci2, veci3); + vint16 vecshi2 = vec_packs(veci4, veci5); + vint16 vecshi3 = vec_packs(veci6, veci7); + + vuint8 vec0 = vec_packsu(vecshi0, vecshi1); + vuint8 vec1 = vec_packsu(vecshi2, vecshi3); + + return {vec0, vec1}; + } + + DEFINE_MEMBER_OP(operator==, c10::quint8, vec_cmpeq) + DEFINE_MEMBER_OP(operator!=, c10::quint8, vec_cmpne) + DEFINE_MEMBER_OP(operator<, c10::quint8, vec_cmplt) + DEFINE_MEMBER_OP(operator<=, c10::quint8, vec_cmple) + DEFINE_MEMBER_OP(operator>, c10::quint8, vec_cmpgt) + DEFINE_MEMBER_OP(operator>=, c10::quint8, vec_cmpge) + DEFINE_MEMBER_OP(operator+, c10::quint8, vec_add) + DEFINE_MEMBER_OP(operator-, c10::quint8, vec_sub) + DEFINE_MEMBER_OP(operator*, c10::quint8, vec_mul) + DEFINE_MEMBER_EMULATE_BINARY_OP(operator/, c10::quint8, /) + DEFINE_MEMBER_OP(maximum, c10::quint8, vec_max) + DEFINE_MEMBER_OP(minimum, c10::quint8, vec_min) + DEFINE_MEMBER_OP(operator&, c10::quint8, vec_and) + DEFINE_MEMBER_OP(operator|, c10::quint8, vec_or) + DEFINE_MEMBER_OP(operator^, c10::quint8, 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/3e/3e1e03abc1efd0f13eeb05f0cb581f4665d57f9ac3788ddda389e3dd9236163e/utils_testing.py b/shared/package-files/3e/3e1e03abc1efd0f13eeb05f0cb581f4665d57f9ac3788ddda389e3dd9236163e/utils_testing.py new file mode 100644 index 0000000000000000000000000000000000000000..f288f253c2150ab870df355772b7f5d6af7ee2c1 --- /dev/null +++ b/shared/package-files/3e/3e1e03abc1efd0f13eeb05f0cb581f4665d57f9ac3788ddda389e3dd9236163e/utils_testing.py @@ -0,0 +1,54 @@ +""" Testing utilities that allow for easier assertions on collections. +Do you love tests? Neither do we. +""" +# TODO: This module due is for a refactor. +from typing import Any +import numbers +import numpy as np +import torch +import pandas as pd +from scipy.sparse import csc_matrix +from scipy.sparse import csr_matrix +from scipy.sparse import dok_matrix +from scipy.sparse import lil_matrix + + +def coerced(o: Any): + if isinstance(o, (csc_matrix, csr_matrix, dok_matrix, lil_matrix)): + o = o.toarray() + + to_list_collections = tuple([np.ndarray, torch.Tensor, pd.core.series.Series]) + if isinstance(o, (list, tuple)): + return o + elif isinstance(o, to_list_collections): + return o.tolist() + elif isinstance(o, pd.core.frame.DataFrame): + return o.values.tolist() + elif isinstance(o, dict): + li = [np.nan] * len(o) + for k, v in o.items(): + li[k] = v + return li + else: + raise ValueError(f"Object {o} of {type(o)} is not a list, tuple nor array.") + + +def is_close( + a: numbers.Number, b: numbers.Number, rel_tol: float = 1e-09, abs_tol: float = 0.0 +): + return abs(a - b) <= max(rel_tol * max(abs(a), abs(b)), abs_tol) + + +def ctr_eq(c1: Any, c2: Any): + if isinstance(c1, torch.Tensor) and c1.shape == torch.Size([]): + c1 = c1.item() + if isinstance(c2, torch.Tensor) and c2.shape == torch.Size([]): + c2 = c2.item() + + if isinstance(c1, numbers.Number) and isinstance(c2, numbers.Number): + return is_close(c1, c2) + + c1 = coerced(c1) + c2 = coerced(c2) + + return all([ctr_eq(c1[i], c2[i]) for i in range(max(len(c1), len(c2)))]) diff --git a/shared/package-files/3e/3e24357a0dbcd2f5809d268c330e9185e109234a088b061ae0afec1e65161207/_trigonometric_special.py b/shared/package-files/3e/3e24357a0dbcd2f5809d268c330e9185e109234a088b061ae0afec1e65161207/_trigonometric_special.py new file mode 100644 index 0000000000000000000000000000000000000000..b3fb37cae0e4a261eab599daa02633f5a05dd704 --- /dev/null +++ b/shared/package-files/3e/3e24357a0dbcd2f5809d268c330e9185e109234a088b061ae0afec1e65161207/_trigonometric_special.py @@ -0,0 +1,260 @@ +r"""A module for special angle forumlas for trigonometric functions + +TODO +==== + +This module should be developed in the future to contain direct squrae root +representation of + +.. math + F(\frac{n}{m} \pi) + +for every + +- $m \in \{ 3, 5, 17, 257, 65537 \}$ +- $n \in \mathbb{N}$, $0 \le n < m$ +- $F \in \{\sin, \cos, \tan, \csc, \sec, \cot\}$ + +Without multi-step rewrites +(e.g. $\tan \to \cos/\sin \to \cos/\sqrt \to \ sqrt$) +or using chebyshev identities +(e.g. $\cos \to \cos + \cos^2 + \cdots \to \sqrt{} + \sqrt{}^2 + \cdots $), +which are trivial to implement in sympy, +and had used to give overly complicated expressions. + +The reference can be found below, if anyone may need help implementing them. + +References +========== + +.. [*] Gottlieb, Christian. (1999). The Simple and straightforward construction + of the regular 257-gon. The Mathematical Intelligencer. 21. 31-37. + 10.1007/BF03024829. +.. [*] https://resources.wolframcloud.com/FunctionRepository/resources/Cos2PiOverFermatPrime +""" +from __future__ import annotations +from typing import Callable +from functools import reduce +from sympy.core.expr import Expr +from sympy.core.singleton import S +from sympy.core.numbers import igcdex, Integer +from sympy.functions.elementary.miscellaneous import sqrt +from sympy.core.cache import cacheit + + +def migcdex(*x: int) -> tuple[tuple[int, ...], int]: + r"""Compute extended gcd for multiple integers. + + Explanation + =========== + + Given the integers $x_1, \cdots, x_n$ and + an extended gcd for multiple arguments are defined as a solution + $(y_1, \cdots, y_n), g$ for the diophantine equation + $x_1 y_1 + \cdots + x_n y_n = g$ such that + $g = \gcd(x_1, \cdots, x_n)$. + + Examples + ======== + + >>> from sympy.functions.elementary._trigonometric_special import migcdex + >>> migcdex() + ((), 0) + >>> migcdex(4) + ((1,), 4) + >>> migcdex(4, 6) + ((-1, 1), 2) + >>> migcdex(6, 10, 15) + ((1, 1, -1), 1) + """ + if not x: + return (), 0 + + if len(x) == 1: + return (1,), x[0] + + if len(x) == 2: + u, v, h = igcdex(x[0], x[1]) + return (u, v), h + + y, g = migcdex(*x[1:]) + u, v, h = igcdex(x[0], g) + return (u, *(v * i for i in y)), h + + +def ipartfrac(*denoms: int) -> tuple[int, ...]: + r"""Compute the the partial fraction decomposition. + + Explanation + =========== + + Given a rational number $\frac{1}{q_1 \cdots q_n}$ where all + $q_1, \cdots, q_n$ are pairwise coprime, + + A partial fraction decomposition is defined as + + .. math:: + \frac{1}{q_1 \cdots q_n} = \frac{p_1}{q_1} + \cdots + \frac{p_n}{q_n} + + And it can be derived from solving the following diophantine equation for + the $p_1, \cdots, p_n$ + + .. math:: + 1 = p_1 \prod_{i \ne 1}q_i + \cdots + p_n \prod_{i \ne n}q_i + + Where $q_1, \cdots, q_n$ being pairwise coprime implies + $\gcd(\prod_{i \ne 1}q_i, \cdots, \prod_{i \ne n}q_i) = 1$, + which guarantees the existance of the solution. + + It is sufficient to compute partial fraction decomposition only + for numerator $1$ because partial fraction decomposition for any + $\frac{n}{q_1 \cdots q_n}$ can be easily computed by multiplying + the result by $n$ afterwards. + + Parameters + ========== + + denoms : int + The pairwise coprime integer denominators $q_i$ which defines the + rational number $\frac{1}{q_1 \cdots q_n}$ + + Returns + ======= + + tuple[int, ...] + The list of numerators which semantically corresponds to $p_i$ of the + partial fraction decomposition + $\frac{1}{q_1 \cdots q_n} = \frac{p_1}{q_1} + \cdots + \frac{p_n}{q_n}$ + + Examples + ======== + + >>> from sympy import Rational, Mul + >>> from sympy.functions.elementary._trigonometric_special import ipartfrac + + >>> denoms = 2, 3, 5 + >>> numers = ipartfrac(2, 3, 5) + >>> numers + (1, 7, -14) + + >>> Rational(1, Mul(*denoms)) + 1/30 + >>> out = 0 + >>> for n, d in zip(numers, denoms): + ... out += Rational(n, d) + >>> out + 1/30 + """ + if not denoms: + return () + + def mul(x: int, y: int) -> int: + return x * y + + denom = reduce(mul, denoms) + a = [denom // x for x in denoms] + h, _ = migcdex(*a) + return h + + +def fermat_coords(n: int) -> list[int] | None: + """If n can be factored in terms of Fermat primes with + multiplicity of each being 1, return those primes, else + None + """ + primes = [] + for p in [3, 5, 17, 257, 65537]: + quotient, remainder = divmod(n, p) + if remainder == 0: + n = quotient + primes.append(p) + if n == 1: + return primes + return None + + +@cacheit +def cos_3() -> Expr: + r"""Computes $\cos \frac{\pi}{3}$ in square roots""" + return S.Half + + +@cacheit +def cos_5() -> Expr: + r"""Computes $\cos \frac{\pi}{5}$ in square roots""" + return (sqrt(5) + 1) / 4 + + +@cacheit +def cos_17() -> Expr: + r"""Computes $\cos \frac{\pi}{17}$ in square roots""" + return sqrt( + (15 + sqrt(17)) / 32 + sqrt(2) * (sqrt(17 - sqrt(17)) + + sqrt(sqrt(2) * (-8 * sqrt(17 + sqrt(17)) - (1 - sqrt(17)) + * sqrt(17 - sqrt(17))) + 6 * sqrt(17) + 34)) / 32) + + +@cacheit +def cos_257() -> Expr: + r"""Computes $\cos \frac{\pi}{257}$ in square roots + + References + ========== + + .. [*] https://math.stackexchange.com/questions/516142/how-does-cos2-pi-257-look-like-in-real-radicals + .. [*] https://r-knott.surrey.ac.uk/Fibonacci/simpleTrig.html + """ + def f1(a: Expr, b: Expr) -> tuple[Expr, Expr]: + return (a + sqrt(a**2 + b)) / 2, (a - sqrt(a**2 + b)) / 2 + + def f2(a: Expr, b: Expr) -> Expr: + return (a - sqrt(a**2 + b))/2 + + t1, t2 = f1(S.NegativeOne, Integer(256)) + z1, z3 = f1(t1, Integer(64)) + z2, z4 = f1(t2, Integer(64)) + y1, y5 = f1(z1, 4*(5 + t1 + 2*z1)) + y6, y2 = f1(z2, 4*(5 + t2 + 2*z2)) + y3, y7 = f1(z3, 4*(5 + t1 + 2*z3)) + y8, y4 = f1(z4, 4*(5 + t2 + 2*z4)) + x1, x9 = f1(y1, -4*(t1 + y1 + y3 + 2*y6)) + x2, x10 = f1(y2, -4*(t2 + y2 + y4 + 2*y7)) + x3, x11 = f1(y3, -4*(t1 + y3 + y5 + 2*y8)) + x4, x12 = f1(y4, -4*(t2 + y4 + y6 + 2*y1)) + x5, x13 = f1(y5, -4*(t1 + y5 + y7 + 2*y2)) + x6, x14 = f1(y6, -4*(t2 + y6 + y8 + 2*y3)) + x15, x7 = f1(y7, -4*(t1 + y7 + y1 + 2*y4)) + x8, x16 = f1(y8, -4*(t2 + y8 + y2 + 2*y5)) + v1 = f2(x1, -4*(x1 + x2 + x3 + x6)) + v2 = f2(x2, -4*(x2 + x3 + x4 + x7)) + v3 = f2(x8, -4*(x8 + x9 + x10 + x13)) + v4 = f2(x9, -4*(x9 + x10 + x11 + x14)) + v5 = f2(x10, -4*(x10 + x11 + x12 + x15)) + v6 = f2(x16, -4*(x16 + x1 + x2 + x5)) + u1 = -f2(-v1, -4*(v2 + v3)) + u2 = -f2(-v4, -4*(v5 + v6)) + w1 = -2*f2(-u1, -4*u2) + return sqrt(sqrt(2)*sqrt(w1 + 4)/8 + S.Half) + + +def cos_table() -> dict[int, Callable[[], Expr]]: + r"""Lazily evaluated table for $\cos \frac{\pi}{n}$ in square roots for + $n \in \{3, 5, 17, 257, 65537\}$. + + Notes + ===== + + 65537 is the only other known Fermat prime and it is nearly impossible to + build in the current SymPy due to performance issues. + + References + ========== + + https://r-knott.surrey.ac.uk/Fibonacci/simpleTrig.html + """ + return { + 3: cos_3, + 5: cos_5, + 17: cos_17, + 257: cos_257 + } diff --git a/shared/package-files/3e/3e27f4ffacef7f0018777726da828c0c91ddc923f64fb0b31d93c59c63266e82/make.py b/shared/package-files/3e/3e27f4ffacef7f0018777726da828c0c91ddc923f64fb0b31d93c59c63266e82/make.py new file mode 100644 index 0000000000000000000000000000000000000000..bf1976146dd758ec5d2a0ff76c24f17f1359dced --- /dev/null +++ b/shared/package-files/3e/3e27f4ffacef7f0018777726da828c0c91ddc923f64fb0b31d93c59c63266e82/make.py @@ -0,0 +1,210 @@ +""" + pygments.lexers.make + ~~~~~~~~~~~~~~~~~~~~ + + Lexers for Makefiles and similar. + + :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS. + :license: BSD, see LICENSE for details. +""" + +import re + +from pygments.lexer import Lexer, RegexLexer, include, bygroups, \ + do_insertions, using +from pygments.token import Text, Comment, Operator, Keyword, Name, String, \ + Punctuation, Whitespace +from pygments.lexers.shell import BashLexer + +__all__ = ['MakefileLexer', 'BaseMakefileLexer', 'CMakeLexer'] + + +class MakefileLexer(Lexer): + """ + Lexer for BSD and GNU make extensions (lenient enough to handle both in + the same file even). + + *Rewritten in Pygments 0.10.* + """ + + name = 'Makefile' + aliases = ['make', 'makefile', 'mf', 'bsdmake'] + filenames = ['*.mak', '*.mk', 'Makefile', 'makefile', 'Makefile.*', 'GNUmakefile'] + mimetypes = ['text/x-makefile'] + + r_special = re.compile( + r'^(?:' + # BSD Make + r'\.\s*(include|undef|error|warning|if|else|elif|endif|for|endfor)|' + # GNU Make + r'\s*(ifeq|ifneq|ifdef|ifndef|else|endif|-?include|define|endef|:|vpath)|' + # GNU Automake + r'\s*(if|else|endif))(?=\s)') + r_comment = re.compile(r'^\s*@?#') + + def get_tokens_unprocessed(self, text): + ins = [] + lines = text.splitlines(keepends=True) + done = '' + lex = BaseMakefileLexer(**self.options) + backslashflag = False + for line in lines: + if self.r_special.match(line) or backslashflag: + ins.append((len(done), [(0, Comment.Preproc, line)])) + backslashflag = line.strip().endswith('\\') + elif self.r_comment.match(line): + ins.append((len(done), [(0, Comment, line)])) + else: + done += line + yield from do_insertions(ins, lex.get_tokens_unprocessed(done)) + + def analyse_text(text): + # Many makefiles have $(BIG_CAPS) style variables + if re.search(r'\$\([A-Z_]+\)', text): + return 0.1 + + +class BaseMakefileLexer(RegexLexer): + """ + Lexer for simple Makefiles (no preprocessing). + + .. versionadded:: 0.10 + """ + + name = 'Base Makefile' + aliases = ['basemake'] + filenames = [] + mimetypes = [] + + tokens = { + 'root': [ + # recipes (need to allow spaces because of expandtabs) + (r'^(?:[\t ]+.*\n|\n)+', using(BashLexer)), + # special variables + (r'\$[<@$+%?|*]', Keyword), + (r'\s+', Whitespace), + (r'#.*?\n', Comment), + (r'((?:un)?export)(\s+)(?=[\w${}\t -]+\n)', + bygroups(Keyword, Whitespace), 'export'), + (r'(?:un)?export\s+', Keyword), + # assignment + (r'([\w${}().-]+)(\s*)([!?:+]?=)([ \t]*)((?:.*\\\n)+|.*\n)', + bygroups( + Name.Variable, Whitespace, Operator, Whitespace, + using(BashLexer))), + # strings + (r'"(\\\\|\\[^\\]|[^"\\])*"', String.Double), + (r"'(\\\\|\\[^\\]|[^'\\])*'", String.Single), + # targets + (r'([^\n:]+)(:+)([ \t]*)', bygroups( + Name.Function, Operator, Whitespace), + 'block-header'), + # expansions + (r'\$\(', Keyword, 'expansion'), + ], + 'expansion': [ + (r'[^\w$().-]+', Text), + (r'[\w.-]+', Name.Variable), + (r'\$', Keyword), + (r'\(', Keyword, '#push'), + (r'\)', Keyword, '#pop'), + ], + 'export': [ + (r'[\w${}-]+', Name.Variable), + (r'\n', Text, '#pop'), + (r'\s+', Whitespace), + ], + 'block-header': [ + (r'[,|]', Punctuation), + (r'#.*?\n', Comment, '#pop'), + (r'\\\n', Text), # line continuation + (r'\$\(', Keyword, 'expansion'), + (r'[a-zA-Z_]+', Name), + (r'\n', Whitespace, '#pop'), + (r'.', Text), + ], + } + + +class CMakeLexer(RegexLexer): + """ + Lexer for CMake files. + + .. versionadded:: 1.2 + """ + name = 'CMake' + url = 'https://cmake.org/documentation/' + aliases = ['cmake'] + filenames = ['*.cmake', 'CMakeLists.txt'] + mimetypes = ['text/x-cmake'] + + tokens = { + 'root': [ + # (r'(ADD_CUSTOM_COMMAND|ADD_CUSTOM_TARGET|ADD_DEFINITIONS|' + # r'ADD_DEPENDENCIES|ADD_EXECUTABLE|ADD_LIBRARY|ADD_SUBDIRECTORY|' + # r'ADD_TEST|AUX_SOURCE_DIRECTORY|BUILD_COMMAND|BUILD_NAME|' + # r'CMAKE_MINIMUM_REQUIRED|CONFIGURE_FILE|CREATE_TEST_SOURCELIST|' + # r'ELSE|ELSEIF|ENABLE_LANGUAGE|ENABLE_TESTING|ENDFOREACH|' + # r'ENDFUNCTION|ENDIF|ENDMACRO|ENDWHILE|EXEC_PROGRAM|' + # r'EXECUTE_PROCESS|EXPORT_LIBRARY_DEPENDENCIES|FILE|FIND_FILE|' + # r'FIND_LIBRARY|FIND_PACKAGE|FIND_PATH|FIND_PROGRAM|FLTK_WRAP_UI|' + # r'FOREACH|FUNCTION|GET_CMAKE_PROPERTY|GET_DIRECTORY_PROPERTY|' + # r'GET_FILENAME_COMPONENT|GET_SOURCE_FILE_PROPERTY|' + # r'GET_TARGET_PROPERTY|GET_TEST_PROPERTY|IF|INCLUDE|' + # r'INCLUDE_DIRECTORIES|INCLUDE_EXTERNAL_MSPROJECT|' + # r'INCLUDE_REGULAR_EXPRESSION|INSTALL|INSTALL_FILES|' + # r'INSTALL_PROGRAMS|INSTALL_TARGETS|LINK_DIRECTORIES|' + # r'LINK_LIBRARIES|LIST|LOAD_CACHE|LOAD_COMMAND|MACRO|' + # r'MAKE_DIRECTORY|MARK_AS_ADVANCED|MATH|MESSAGE|OPTION|' + # r'OUTPUT_REQUIRED_FILES|PROJECT|QT_WRAP_CPP|QT_WRAP_UI|REMOVE|' + # r'REMOVE_DEFINITIONS|SEPARATE_ARGUMENTS|SET|' + # r'SET_DIRECTORY_PROPERTIES|SET_SOURCE_FILES_PROPERTIES|' + # r'SET_TARGET_PROPERTIES|SET_TESTS_PROPERTIES|SITE_NAME|' + # r'SOURCE_GROUP|STRING|SUBDIR_DEPENDS|SUBDIRS|' + # r'TARGET_LINK_LIBRARIES|TRY_COMPILE|TRY_RUN|UNSET|' + # r'USE_MANGLED_MESA|UTILITY_SOURCE|VARIABLE_REQUIRES|' + # r'VTK_MAKE_INSTANTIATOR|VTK_WRAP_JAVA|VTK_WRAP_PYTHON|' + # r'VTK_WRAP_TCL|WHILE|WRITE_FILE|' + # r'COUNTARGS)\b', Name.Builtin, 'args'), + (r'\b(\w+)([ \t]*)(\()', bygroups(Name.Builtin, Whitespace, + Punctuation), 'args'), + include('keywords'), + include('ws') + ], + 'args': [ + (r'\(', Punctuation, '#push'), + (r'\)', Punctuation, '#pop'), + (r'(\$\{)(.+?)(\})', bygroups(Operator, Name.Variable, Operator)), + (r'(\$ENV\{)(.+?)(\})', bygroups(Operator, Name.Variable, Operator)), + (r'(\$<)(.+?)(>)', bygroups(Operator, Name.Variable, Operator)), + (r'(?s)".*?"', String.Double), + (r'\\\S+', String), + (r'[^)$"# \t\n]+', String), + (r'\n', Whitespace), # explicitly legal + include('keywords'), + include('ws') + ], + 'string': [ + + ], + 'keywords': [ + (r'\b(WIN32|UNIX|APPLE|CYGWIN|BORLAND|MINGW|MSVC|MSVC_IDE|MSVC60|' + r'MSVC70|MSVC71|MSVC80|MSVC90)\b', Keyword), + ], + 'ws': [ + (r'[ \t]+', Whitespace), + (r'#\[(?P=*)\[[\w\W]*?\](?P=level)\]', Comment), + (r'#.*\n', Comment), + ] + } + + def analyse_text(text): + exp = ( + r'^[ \t]*CMAKE_MINIMUM_REQUIRED[ \t]*' + r'\([ \t]*VERSION[ \t]*\d+(\.\d+)*[ \t]*' + r'([ \t]FATAL_ERROR)?[ \t]*\)[ \t]*' + r'(#[^\n]*)?$' + ) + if re.search(exp, text, flags=re.MULTILINE | re.IGNORECASE): + return 0.8 + return 0.0 diff --git a/shared/package-files/3e/3e294417f129d7e7c37b86d016455a166fe7e2e4cbb66cc7bf67b058cf15073a/dummy.pyi b/shared/package-files/3e/3e294417f129d7e7c37b86d016455a166fe7e2e4cbb66cc7bf67b058cf15073a/dummy.pyi new file mode 100644 index 0000000000000000000000000000000000000000..8984faadc05e9e5cc50228d00b4957eaae8211da --- /dev/null +++ b/shared/package-files/3e/3e294417f129d7e7c37b86d016455a166fe7e2e4cbb66cc7bf67b058cf15073a/dummy.pyi @@ -0,0 +1,6 @@ +from typing import Any + +from django.core.cache.backends.base import BaseCache + +class DummyCache(BaseCache): + def __init__(self, host: str, *args: Any, **kwargs: Any) -> None: ... diff --git a/shared/package-files/3e/3e2aae3311ee1dac91bdd1f784c5d24253a70ecc0add318d584341dbd617fc55/errors.py b/shared/package-files/3e/3e2aae3311ee1dac91bdd1f784c5d24253a70ecc0add318d584341dbd617fc55/errors.py new file mode 100644 index 0000000000000000000000000000000000000000..2930117b51706426216d9c3815437b02c32c302b --- /dev/null +++ b/shared/package-files/3e/3e2aae3311ee1dac91bdd1f784c5d24253a70ecc0add318d584341dbd617fc55/errors.py @@ -0,0 +1,52 @@ +import ast +from typing import Optional, Union + + +class CompilationError(Exception): + source_line_count_max_in_message = 12 + + def _format_message(self) -> str: + node = self.node + if self.src is None: + source_excerpt = " " + else: + source_excerpt = self.src.split('\n')[:node.lineno][-self.source_line_count_max_in_message:] + if source_excerpt: + source_excerpt.append(' ' * node.col_offset + '^') + source_excerpt = '\n'.join(source_excerpt) + else: + source_excerpt = " " + + message = "at {}:{}:{}".format(node.lineno, node.col_offset, source_excerpt) + if self.error_message: + message += '\n' + self.error_message + return message + + def __init__(self, src: Optional[str], node: ast.AST, error_message: Union[str, None]): + self.src = src + self.node = node + self.error_message = error_message + self.message = self._format_message() + + def set_source_code(self, src: Optional[str]): + self.src = src + self.message = self._format_message() + + def __str__(self): + return self.message + + def __repr__(self): + return "{}({!r})".format(type(self).__name__, self.message) + + def __reduce__(self): + # this is necessary to make CompilationError picklable + return type(self), (self.src, self.node, self.error_message) + + +class CompileTimeAssertionFailure(CompilationError): + """Specific exception for failed tests in `static_assert` invocations""" + pass + + +class UnsupportedLanguageConstruct(CompilationError): + pass diff --git a/shared/package-files/3e/3e2ec416916f057b05375c4a3b26634d23fde71343b3a5b98716f91ae7285551/type_fwd.h b/shared/package-files/3e/3e2ec416916f057b05375c4a3b26634d23fde71343b3a5b98716f91ae7285551/type_fwd.h new file mode 100644 index 0000000000000000000000000000000000000000..a1b9e626bba289a030d87d0a14bfa2f1fb2dc29d --- /dev/null +++ b/shared/package-files/3e/3e2ec416916f057b05375c4a3b26634d23fde71343b3a5b98716f91ae7285551/type_fwd.h @@ -0,0 +1,77 @@ +// 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/type_fwd.h" +#include "arrow/util/visibility.h" + +namespace arrow { +namespace io { + +struct FileMode { + enum type { READ, WRITE, READWRITE }; +}; + +struct IOContext; +struct CacheOptions; + +/// EXPERIMENTAL: convenience global singleton for default IOContext settings +ARROW_EXPORT +const IOContext& default_io_context(); + +/// \brief Get the capacity of the global I/O thread pool +/// +/// Return the number of worker threads in the thread pool to which +/// Arrow dispatches various I/O-bound tasks. This is an ideal number, +/// not necessarily the exact number of threads at a given point in time. +/// +/// You can change this number using SetIOThreadPoolCapacity(). +ARROW_EXPORT int GetIOThreadPoolCapacity(); + +/// \brief Set the capacity of the global I/O thread pool +/// +/// Set the number of worker threads in the thread pool to which +/// Arrow dispatches various I/O-bound tasks. +/// +/// The current number is returned by GetIOThreadPoolCapacity(). +ARROW_EXPORT Status SetIOThreadPoolCapacity(int threads); + +class FileInterface; +class Seekable; +class Writable; +class Readable; +class OutputStream; +class FileOutputStream; +class InputStream; +class ReadableFile; +class RandomAccessFile; +class MemoryMappedFile; +class WritableFile; +class ReadWriteFileInterface; + +class LatencyGenerator; + +class BufferOutputStream; +class BufferReader; +class CompressedInputStream; +class CompressedOutputStream; +class BufferedInputStream; +class BufferedOutputStream; + +} // namespace io +} // namespace arrow diff --git a/shared/package-files/3e/3e310b30bc4a1bf8aedc75a328039d2a1b8dac77d68297531764389ce6ec65e3/metadata.py b/shared/package-files/3e/3e310b30bc4a1bf8aedc75a328039d2a1b8dac77d68297531764389ce6ec65e3/metadata.py new file mode 100644 index 0000000000000000000000000000000000000000..e76a60c395eb62d5f05d7248cf67210cdd10740d --- /dev/null +++ b/shared/package-files/3e/3e310b30bc4a1bf8aedc75a328039d2a1b8dac77d68297531764389ce6ec65e3/metadata.py @@ -0,0 +1,408 @@ +import email.feedparser +import email.header +import email.message +import email.parser +import email.policy +import sys +import typing +from typing import Dict, List, Optional, Tuple, Union, cast + +if sys.version_info >= (3, 8): # pragma: no cover + from typing import TypedDict +else: # pragma: no cover + if typing.TYPE_CHECKING: + from typing_extensions import TypedDict + else: + try: + from typing_extensions import TypedDict + except ImportError: + + class TypedDict: + def __init_subclass__(*_args, **_kwargs): + pass + + +# The RawMetadata class attempts to make as few assumptions about the underlying +# serialization formats as possible. The idea is that as long as a serialization +# formats offer some very basic primitives in *some* way then we can support +# serializing to and from that format. +class RawMetadata(TypedDict, total=False): + """A dictionary of raw core metadata. + + Each field in core metadata maps to a key of this dictionary (when data is + provided). The key is lower-case and underscores are used instead of dashes + compared to the equivalent core metadata field. Any core metadata field that + can be specified multiple times or can hold multiple values in a single + field have a key with a plural name. + + Core metadata fields that can be specified multiple times are stored as a + list or dict depending on which is appropriate for the field. Any fields + which hold multiple values in a single field are stored as a list. + + """ + + # Metadata 1.0 - PEP 241 + metadata_version: str + name: str + version: str + platforms: List[str] + summary: str + description: str + keywords: List[str] + home_page: str + author: str + author_email: str + license: str + + # Metadata 1.1 - PEP 314 + supported_platforms: List[str] + download_url: str + classifiers: List[str] + requires: List[str] + provides: List[str] + obsoletes: List[str] + + # Metadata 1.2 - PEP 345 + maintainer: str + maintainer_email: str + requires_dist: List[str] + provides_dist: List[str] + obsoletes_dist: List[str] + requires_python: str + requires_external: List[str] + project_urls: Dict[str, str] + + # Metadata 2.0 + # PEP 426 attempted to completely revamp the metadata format + # but got stuck without ever being able to build consensus on + # it and ultimately ended up withdrawn. + # + # However, a number of tools had started emiting METADATA with + # `2.0` Metadata-Version, so for historical reasons, this version + # was skipped. + + # Metadata 2.1 - PEP 566 + description_content_type: str + provides_extra: List[str] + + # Metadata 2.2 - PEP 643 + dynamic: List[str] + + # Metadata 2.3 - PEP 685 + # No new fields were added in PEP 685, just some edge case were + # tightened up to provide better interoptability. + + +_STRING_FIELDS = { + "author", + "author_email", + "description", + "description_content_type", + "download_url", + "home_page", + "license", + "maintainer", + "maintainer_email", + "metadata_version", + "name", + "requires_python", + "summary", + "version", +} + +_LIST_STRING_FIELDS = { + "classifiers", + "dynamic", + "obsoletes", + "obsoletes_dist", + "platforms", + "provides", + "provides_dist", + "provides_extra", + "requires", + "requires_dist", + "requires_external", + "supported_platforms", +} + + +def _parse_keywords(data: str) -> List[str]: + """Split a string of comma-separate keyboards into a list of keywords.""" + return [k.strip() for k in data.split(",")] + + +def _parse_project_urls(data: List[str]) -> Dict[str, str]: + """Parse a list of label/URL string pairings separated by a comma.""" + urls = {} + for pair in data: + # Our logic is slightly tricky here as we want to try and do + # *something* reasonable with malformed data. + # + # The main thing that we have to worry about, is data that does + # not have a ',' at all to split the label from the Value. There + # isn't a singular right answer here, and we will fail validation + # later on (if the caller is validating) so it doesn't *really* + # matter, but since the missing value has to be an empty str + # and our return value is dict[str, str], if we let the key + # be the missing value, then they'd have multiple '' values that + # overwrite each other in a accumulating dict. + # + # The other potentional issue is that it's possible to have the + # same label multiple times in the metadata, with no solid "right" + # answer with what to do in that case. As such, we'll do the only + # thing we can, which is treat the field as unparseable and add it + # to our list of unparsed fields. + parts = [p.strip() for p in pair.split(",", 1)] + parts.extend([""] * (max(0, 2 - len(parts)))) # Ensure 2 items + + # TODO: The spec doesn't say anything about if the keys should be + # considered case sensitive or not... logically they should + # be case-preserving and case-insensitive, but doing that + # would open up more cases where we might have duplicate + # entries. + label, url = parts + if label in urls: + # The label already exists in our set of urls, so this field + # is unparseable, and we can just add the whole thing to our + # unparseable data and stop processing it. + raise KeyError("duplicate labels in project urls") + urls[label] = url + + return urls + + +def _get_payload(msg: email.message.Message, source: Union[bytes, str]) -> str: + """Get the body of the message.""" + # If our source is a str, then our caller has managed encodings for us, + # and we don't need to deal with it. + if isinstance(source, str): + payload: str = msg.get_payload() + return payload + # If our source is a bytes, then we're managing the encoding and we need + # to deal with it. + else: + bpayload: bytes = msg.get_payload(decode=True) + try: + return bpayload.decode("utf8", "strict") + except UnicodeDecodeError: + raise ValueError("payload in an invalid encoding") + + +# The various parse_FORMAT functions here are intended to be as lenient as +# possible in their parsing, while still returning a correctly typed +# RawMetadata. +# +# To aid in this, we also generally want to do as little touching of the +# data as possible, except where there are possibly some historic holdovers +# that make valid data awkward to work with. +# +# While this is a lower level, intermediate format than our ``Metadata`` +# class, some light touch ups can make a massive difference in usability. + +# Map METADATA fields to RawMetadata. +_EMAIL_TO_RAW_MAPPING = { + "author": "author", + "author-email": "author_email", + "classifier": "classifiers", + "description": "description", + "description-content-type": "description_content_type", + "download-url": "download_url", + "dynamic": "dynamic", + "home-page": "home_page", + "keywords": "keywords", + "license": "license", + "maintainer": "maintainer", + "maintainer-email": "maintainer_email", + "metadata-version": "metadata_version", + "name": "name", + "obsoletes": "obsoletes", + "obsoletes-dist": "obsoletes_dist", + "platform": "platforms", + "project-url": "project_urls", + "provides": "provides", + "provides-dist": "provides_dist", + "provides-extra": "provides_extra", + "requires": "requires", + "requires-dist": "requires_dist", + "requires-external": "requires_external", + "requires-python": "requires_python", + "summary": "summary", + "supported-platform": "supported_platforms", + "version": "version", +} + + +def parse_email(data: Union[bytes, str]) -> Tuple[RawMetadata, Dict[str, List[str]]]: + """Parse a distribution's metadata. + + This function returns a two-item tuple of dicts. The first dict is of + recognized fields from the core metadata specification. Fields that can be + parsed and translated into Python's built-in types are converted + appropriately. All other fields are left as-is. Fields that are allowed to + appear multiple times are stored as lists. + + The second dict contains all other fields from the metadata. This includes + any unrecognized fields. It also includes any fields which are expected to + be parsed into a built-in type but were not formatted appropriately. Finally, + any fields that are expected to appear only once but are repeated are + included in this dict. + + """ + raw: Dict[str, Union[str, List[str], Dict[str, str]]] = {} + unparsed: Dict[str, List[str]] = {} + + if isinstance(data, str): + parsed = email.parser.Parser(policy=email.policy.compat32).parsestr(data) + else: + parsed = email.parser.BytesParser(policy=email.policy.compat32).parsebytes(data) + + # We have to wrap parsed.keys() in a set, because in the case of multiple + # values for a key (a list), the key will appear multiple times in the + # list of keys, but we're avoiding that by using get_all(). + for name in frozenset(parsed.keys()): + # Header names in RFC are case insensitive, so we'll normalize to all + # lower case to make comparisons easier. + name = name.lower() + + # We use get_all() here, even for fields that aren't multiple use, + # because otherwise someone could have e.g. two Name fields, and we + # would just silently ignore it rather than doing something about it. + headers = parsed.get_all(name) + + # The way the email module works when parsing bytes is that it + # unconditionally decodes the bytes as ascii using the surrogateescape + # handler. When you pull that data back out (such as with get_all() ), + # it looks to see if the str has any surrogate escapes, and if it does + # it wraps it in a Header object instead of returning the string. + # + # As such, we'll look for those Header objects, and fix up the encoding. + value = [] + # Flag if we have run into any issues processing the headers, thus + # signalling that the data belongs in 'unparsed'. + valid_encoding = True + for h in headers: + # It's unclear if this can return more types than just a Header or + # a str, so we'll just assert here to make sure. + assert isinstance(h, (email.header.Header, str)) + + # If it's a header object, we need to do our little dance to get + # the real data out of it. In cases where there is invalid data + # we're going to end up with mojibake, but there's no obvious, good + # way around that without reimplementing parts of the Header object + # ourselves. + # + # That should be fine since, if mojibacked happens, this key is + # going into the unparsed dict anyways. + if isinstance(h, email.header.Header): + # The Header object stores it's data as chunks, and each chunk + # can be independently encoded, so we'll need to check each + # of them. + chunks: List[Tuple[bytes, Optional[str]]] = [] + for bin, encoding in email.header.decode_header(h): + try: + bin.decode("utf8", "strict") + except UnicodeDecodeError: + # Enable mojibake. + encoding = "latin1" + valid_encoding = False + else: + encoding = "utf8" + chunks.append((bin, encoding)) + + # Turn our chunks back into a Header object, then let that + # Header object do the right thing to turn them into a + # string for us. + value.append(str(email.header.make_header(chunks))) + # This is already a string, so just add it. + else: + value.append(h) + + # We've processed all of our values to get them into a list of str, + # but we may have mojibake data, in which case this is an unparsed + # field. + if not valid_encoding: + unparsed[name] = value + continue + + raw_name = _EMAIL_TO_RAW_MAPPING.get(name) + if raw_name is None: + # This is a bit of a weird situation, we've encountered a key that + # we don't know what it means, so we don't know whether it's meant + # to be a list or not. + # + # Since we can't really tell one way or another, we'll just leave it + # as a list, even though it may be a single item list, because that's + # what makes the most sense for email headers. + unparsed[name] = value + continue + + # If this is one of our string fields, then we'll check to see if our + # value is a list of a single item. If it is then we'll assume that + # it was emitted as a single string, and unwrap the str from inside + # the list. + # + # If it's any other kind of data, then we haven't the faintest clue + # what we should parse it as, and we have to just add it to our list + # of unparsed stuff. + if raw_name in _STRING_FIELDS and len(value) == 1: + raw[raw_name] = value[0] + # If this is one of our list of string fields, then we can just assign + # the value, since email *only* has strings, and our get_all() call + # above ensures that this is a list. + elif raw_name in _LIST_STRING_FIELDS: + raw[raw_name] = value + # Special Case: Keywords + # The keywords field is implemented in the metadata spec as a str, + # but it conceptually is a list of strings, and is serialized using + # ", ".join(keywords), so we'll do some light data massaging to turn + # this into what it logically is. + elif raw_name == "keywords" and len(value) == 1: + raw[raw_name] = _parse_keywords(value[0]) + # Special Case: Project-URL + # The project urls is implemented in the metadata spec as a list of + # specially-formatted strings that represent a key and a value, which + # is fundamentally a mapping, however the email format doesn't support + # mappings in a sane way, so it was crammed into a list of strings + # instead. + # + # We will do a little light data massaging to turn this into a map as + # it logically should be. + elif raw_name == "project_urls": + try: + raw[raw_name] = _parse_project_urls(value) + except KeyError: + unparsed[name] = value + # Nothing that we've done has managed to parse this, so it'll just + # throw it in our unparseable data and move on. + else: + unparsed[name] = value + + # We need to support getting the Description from the message payload in + # addition to getting it from the the headers. This does mean, though, there + # is the possibility of it being set both ways, in which case we put both + # in 'unparsed' since we don't know which is right. + try: + payload = _get_payload(parsed, data) + except ValueError: + unparsed.setdefault("description", []).append( + parsed.get_payload(decode=isinstance(data, bytes)) + ) + else: + if payload: + # Check to see if we've already got a description, if so then both + # it, and this body move to unparseable. + if "description" in raw: + description_header = cast(str, raw.pop("description")) + unparsed.setdefault("description", []).extend( + [description_header, payload] + ) + elif "description" in unparsed: + unparsed["description"].append(payload) + else: + raw["description"] = payload + + # We need to cast our `raw` to a metadata, because a TypedDict only support + # literal key names, but we're computing our key names on purpose, but the + # way this function is implemented, our `TypedDict` can only have valid key + # names. + return cast(RawMetadata, raw), unparsed diff --git a/shared/package-files/3e/3e35244156a623d4380a5ef045f067c93869a47511cb4d63254d5f20dccf10a1/test_xml.py b/shared/package-files/3e/3e35244156a623d4380a5ef045f067c93869a47511cb4d63254d5f20dccf10a1/test_xml.py new file mode 100644 index 0000000000000000000000000000000000000000..92e89ddbc8e80d2f3e2275b8d48a44c614b9338e --- /dev/null +++ b/shared/package-files/3e/3e35244156a623d4380a5ef045f067c93869a47511cb4d63254d5f20dccf10a1/test_xml.py @@ -0,0 +1,2079 @@ +from __future__ import annotations + +from io import ( + BytesIO, + StringIO, +) +from lzma import LZMAError +import os +from tarfile import ReadError +from urllib.error import HTTPError +from xml.etree.ElementTree import ParseError +from zipfile import BadZipFile + +import numpy as np +import pytest + +from pandas.compat._optional import import_optional_dependency +from pandas.errors import ( + EmptyDataError, + ParserError, +) +import pandas.util._test_decorators as td + +import pandas as pd +from pandas import ( + NA, + DataFrame, + Series, +) +import pandas._testing as tm + +from pandas.io.common import get_handle +from pandas.io.xml import read_xml + +# CHECK LIST + +# [x] - ValueError: "Values for parser can only be lxml or etree." + +# etree +# [X] - ImportError: "lxml not found, please install or use the etree parser." +# [X] - TypeError: "expected str, bytes or os.PathLike object, not NoneType" +# [X] - ValueError: "Either element or attributes can be parsed not both." +# [X] - ValueError: "xpath does not return any nodes..." +# [X] - SyntaxError: "You have used an incorrect or unsupported XPath" +# [X] - ValueError: "names does not match length of child elements in xpath." +# [X] - TypeError: "...is not a valid type for names" +# [X] - ValueError: "To use stylesheet, you need lxml installed..." +# [] - URLError: (GENERAL ERROR WITH HTTPError AS SUBCLASS) +# [X] - HTTPError: "HTTP Error 404: Not Found" +# [] - OSError: (GENERAL ERROR WITH FileNotFoundError AS SUBCLASS) +# [X] - FileNotFoundError: "No such file or directory" +# [] - ParseError (FAILSAFE CATCH ALL FOR VERY COMPLEX XML) +# [X] - UnicodeDecodeError: "'utf-8' codec can't decode byte 0xe9..." +# [X] - UnicodeError: "UTF-16 stream does not start with BOM" +# [X] - BadZipFile: "File is not a zip file" +# [X] - OSError: "Invalid data stream" +# [X] - LZMAError: "Input format not supported by decoder" +# [X] - ValueError: "Unrecognized compression type" +# [X] - PermissionError: "Forbidden" + +# lxml +# [X] - ValueError: "Either element or attributes can be parsed not both." +# [X] - AttributeError: "__enter__" +# [X] - XSLTApplyError: "Cannot resolve URI" +# [X] - XSLTParseError: "document is not a stylesheet" +# [X] - ValueError: "xpath does not return any nodes." +# [X] - XPathEvalError: "Invalid expression" +# [] - XPathSyntaxError: (OLD VERSION IN lxml FOR XPATH ERRORS) +# [X] - TypeError: "empty namespace prefix is not supported in XPath" +# [X] - ValueError: "names does not match length of child elements in xpath." +# [X] - TypeError: "...is not a valid type for names" +# [X] - LookupError: "unknown encoding" +# [] - URLError: (USUALLY DUE TO NETWORKING) +# [X - HTTPError: "HTTP Error 404: Not Found" +# [X] - OSError: "failed to load external entity" +# [X] - XMLSyntaxError: "Start tag expected, '<' not found" +# [] - ParserError: (FAILSAFE CATCH ALL FOR VERY COMPLEX XML +# [X] - ValueError: "Values for parser can only be lxml or etree." +# [X] - UnicodeDecodeError: "'utf-8' codec can't decode byte 0xe9..." +# [X] - UnicodeError: "UTF-16 stream does not start with BOM" +# [X] - BadZipFile: "File is not a zip file" +# [X] - OSError: "Invalid data stream" +# [X] - LZMAError: "Input format not supported by decoder" +# [X] - ValueError: "Unrecognized compression type" +# [X] - PermissionError: "Forbidden" + +geom_df = DataFrame( + { + "shape": ["square", "circle", "triangle"], + "degrees": [360, 360, 180], + "sides": [4, np.nan, 3], + } +) + +xml_default_nmsp = """\ + + + + square + 360 + 4 + + + circle + 360 + + + + triangle + 180 + 3 + +""" + +xml_prefix_nmsp = """\ + + + + square + 360 + 4.0 + + + circle + 360 + + + + triangle + 180 + 3.0 + +""" + + +df_kml = DataFrame( + { + "id": { + 0: "ID_00001", + 1: "ID_00002", + 2: "ID_00003", + 3: "ID_00004", + 4: "ID_00005", + }, + "name": { + 0: "Blue Line (Forest Park)", + 1: "Red, Purple Line", + 2: "Red, Purple Line", + 3: "Red, Purple Line", + 4: "Red, Purple Line", + }, + "styleUrl": { + 0: "#LineStyle01", + 1: "#LineStyle01", + 2: "#LineStyle01", + 3: "#LineStyle01", + 4: "#LineStyle01", + }, + "extrude": {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, + "altitudeMode": { + 0: "clampedToGround", + 1: "clampedToGround", + 2: "clampedToGround", + 3: "clampedToGround", + 4: "clampedToGround", + }, + "coordinates": { + 0: ( + "-87.77678526964958,41.8708863930319,0 " + "-87.77826234150609,41.87097820122218,0 " + "-87.78251583439344,41.87130129991005,0 " + "-87.78418294588424,41.87145055520308,0 " + "-87.7872369165933,41.8717239119163,0 " + "-87.79160214925886,41.87210797280065,0" + ), + 1: ( + "-87.65758750947528,41.96427269188822,0 " + "-87.65802133507393,41.96581929055245,0 " + "-87.65819033925305,41.96621846093642,0 " + "-87.6583189819129,41.96650362897086,0 " + "-87.65835858701473,41.96669002089185,0 " + "-87.65838428411853,41.96688150295095,0 " + "-87.65842208882658,41.96745896091846,0 " + "-87.65846556843937,41.9683761425439,0 " + "-87.65849296214573,41.96913893870342,0" + ), + 2: ( + "-87.65492939166126,41.95377494531437,0 " + "-87.65557043199591,41.95376544118533,0 " + "-87.65606302030132,41.95376391658746,0 " + "-87.65623502146268,41.95377379126367,0 " + "-87.65634748981634,41.95380103566435,0 " + "-87.65646537904269,41.95387703994676,0 " + "-87.65656532461145,41.95396622645799,0 " + "-87.65664760856414,41.95404201996044,0 " + "-87.65671750555913,41.95416647054043,0 " + "-87.65673983607117,41.95429949810849,0 " + "-87.65673866475777,41.95441024240925,0 " + "-87.6567690255541,41.95490657227902,0 " + "-87.65683672482363,41.95692259283837,0 " + "-87.6568900886376,41.95861070983142,0 " + "-87.65699865558875,41.96181418669004,0 " + "-87.65756347177603,41.96397045777844,0 " + "-87.65758750947528,41.96427269188822,0" + ), + 3: ( + "-87.65362593118043,41.94742799535678,0 " + "-87.65363554415794,41.94819886386848,0 " + "-87.6536456393239,41.95059994675451,0 " + "-87.65365831235026,41.95108288489359,0 " + "-87.6536604873874,41.9519954657554,0 " + "-87.65362592053201,41.95245597302328,0 " + "-87.65367158496069,41.95311153649393,0 " + "-87.65368468595476,41.9533202828916,0 " + "-87.65369271253692,41.95343095587119,0 " + "-87.65373335834569,41.95351536301472,0 " + "-87.65378605844126,41.95358212680591,0 " + "-87.65385067928185,41.95364452823767,0 " + "-87.6539390793817,41.95370263886964,0 " + "-87.6540786298351,41.95373403675265,0 " + "-87.65430648647626,41.9537535411832,0 " + "-87.65492939166126,41.95377494531437,0" + ), + 4: ( + "-87.65345391792157,41.94217681262115,0 " + "-87.65342448305786,41.94237224420864,0 " + "-87.65339745703922,41.94268217746244,0 " + "-87.65337753982941,41.94288140770284,0 " + "-87.65336256753105,41.94317369618263,0 " + "-87.65338799707138,41.94357253961736,0 " + "-87.65340240886648,41.94389158188269,0 " + "-87.65341837392448,41.94406444407721,0 " + "-87.65342275247338,41.94421065714904,0 " + "-87.65347469646018,41.94434829382345,0 " + "-87.65351486483024,41.94447699917548,0 " + "-87.65353483605053,41.9453896864472,0 " + "-87.65361975532807,41.94689193720703,0 " + "-87.65362593118043,41.94742799535678,0" + ), + }, + } +) + + +def test_literal_xml_deprecation(): + # GH 53809 + pytest.importorskip("lxml") + msg = ( + "Passing literal xml to 'read_xml' is deprecated and " + "will be removed in a future version. To read from a " + "literal string, wrap it in a 'StringIO' object." + ) + + with tm.assert_produces_warning(FutureWarning, match=msg): + read_xml(xml_default_nmsp) + + +@pytest.fixture(params=["rb", "r"]) +def mode(request): + return request.param + + +@pytest.fixture(params=[pytest.param("lxml", marks=td.skip_if_no("lxml")), "etree"]) +def parser(request): + return request.param + + +def read_xml_iterparse(data, **kwargs): + with tm.ensure_clean() as path: + with open(path, "w", encoding="utf-8") as f: + f.write(data) + return read_xml(path, **kwargs) + + +def read_xml_iterparse_comp(comp_path, compression_only, **kwargs): + with get_handle(comp_path, "r", compression=compression_only) as handles: + with tm.ensure_clean() as path: + with open(path, "w", encoding="utf-8") as f: + f.write(handles.handle.read()) + return read_xml(path, **kwargs) + + +# FILE / URL + + +def test_parser_consistency_file(xml_books): + pytest.importorskip("lxml") + df_file_lxml = read_xml(xml_books, parser="lxml") + df_file_etree = read_xml(xml_books, parser="etree") + + df_iter_lxml = read_xml( + xml_books, + parser="lxml", + iterparse={"book": ["category", "title", "year", "author", "price"]}, + ) + df_iter_etree = read_xml( + xml_books, + parser="etree", + iterparse={"book": ["category", "title", "year", "author", "price"]}, + ) + + tm.assert_frame_equal(df_file_lxml, df_file_etree) + tm.assert_frame_equal(df_file_lxml, df_iter_lxml) + tm.assert_frame_equal(df_iter_lxml, df_iter_etree) + + +@pytest.mark.network +@pytest.mark.single_cpu +def test_parser_consistency_url(parser, httpserver): + httpserver.serve_content(content=xml_default_nmsp) + + df_xpath = read_xml(StringIO(xml_default_nmsp), parser=parser) + df_iter = read_xml( + BytesIO(xml_default_nmsp.encode()), + parser=parser, + iterparse={"row": ["shape", "degrees", "sides"]}, + ) + + tm.assert_frame_equal(df_xpath, df_iter) + + +def test_file_like(xml_books, parser, mode): + with open(xml_books, mode, encoding="utf-8" if mode == "r" else None) as f: + df_file = read_xml(f, parser=parser) + + df_expected = DataFrame( + { + "category": ["cooking", "children", "web"], + "title": ["Everyday Italian", "Harry Potter", "Learning XML"], + "author": ["Giada De Laurentiis", "J K. Rowling", "Erik T. Ray"], + "year": [2005, 2005, 2003], + "price": [30.00, 29.99, 39.95], + } + ) + + tm.assert_frame_equal(df_file, df_expected) + + +def test_file_io(xml_books, parser, mode): + with open(xml_books, mode, encoding="utf-8" if mode == "r" else None) as f: + xml_obj = f.read() + + df_io = read_xml( + (BytesIO(xml_obj) if isinstance(xml_obj, bytes) else StringIO(xml_obj)), + parser=parser, + ) + + df_expected = DataFrame( + { + "category": ["cooking", "children", "web"], + "title": ["Everyday Italian", "Harry Potter", "Learning XML"], + "author": ["Giada De Laurentiis", "J K. Rowling", "Erik T. Ray"], + "year": [2005, 2005, 2003], + "price": [30.00, 29.99, 39.95], + } + ) + + tm.assert_frame_equal(df_io, df_expected) + + +def test_file_buffered_reader_string(xml_books, parser, mode): + with open(xml_books, mode, encoding="utf-8" if mode == "r" else None) as f: + xml_obj = f.read() + + if mode == "rb": + xml_obj = StringIO(xml_obj.decode()) + elif mode == "r": + xml_obj = StringIO(xml_obj) + + df_str = read_xml(xml_obj, parser=parser) + + df_expected = DataFrame( + { + "category": ["cooking", "children", "web"], + "title": ["Everyday Italian", "Harry Potter", "Learning XML"], + "author": ["Giada De Laurentiis", "J K. Rowling", "Erik T. Ray"], + "year": [2005, 2005, 2003], + "price": [30.00, 29.99, 39.95], + } + ) + + tm.assert_frame_equal(df_str, df_expected) + + +def test_file_buffered_reader_no_xml_declaration(xml_books, parser, mode): + with open(xml_books, mode, encoding="utf-8" if mode == "r" else None) as f: + next(f) + xml_obj = f.read() + + if mode == "rb": + xml_obj = StringIO(xml_obj.decode()) + elif mode == "r": + xml_obj = StringIO(xml_obj) + + df_str = read_xml(xml_obj, parser=parser) + + df_expected = DataFrame( + { + "category": ["cooking", "children", "web"], + "title": ["Everyday Italian", "Harry Potter", "Learning XML"], + "author": ["Giada De Laurentiis", "J K. Rowling", "Erik T. Ray"], + "year": [2005, 2005, 2003], + "price": [30.00, 29.99, 39.95], + } + ) + + tm.assert_frame_equal(df_str, df_expected) + + +def test_string_charset(parser): + txt = "<中文標籤>12" + + df_str = read_xml(StringIO(txt), parser=parser) + + df_expected = DataFrame({"c1": 1, "c2": 2}, index=[0]) + + tm.assert_frame_equal(df_str, df_expected) + + +def test_file_charset(xml_doc_ch_utf, parser): + df_file = read_xml(xml_doc_ch_utf, parser=parser) + + df_expected = DataFrame( + { + "問": [ + "問 若箇是邪而言破邪 何者是正而道(Sorry, this is Big5 only)申正", + "問 既破有得申無得 亦應但破性執申假名以不", + "問 既破性申假 亦應但破有申無 若有無兩洗 亦應性假雙破耶", + ], + "答": [ + "".join( + [ + "答 邪既無量 正亦多途 大略為言不出二種 謂", + "有得與無得 有得是邪須破 無得是正須申\n\t\t故", + ] + ), + None, + "答 不例 有無皆是性 所以須雙破 既分性假異 故有破不破", + ], + "a": [ + None, + "答 性執是有得 假名是無得 今破有得申無得 即是破性執申假名也", + None, + ], + } + ) + + tm.assert_frame_equal(df_file, df_expected) + + +def test_file_handle_close(xml_books, parser): + with open(xml_books, "rb") as f: + read_xml(BytesIO(f.read()), parser=parser) + + assert not f.closed + + +@pytest.mark.parametrize("val", ["", b""]) +def test_empty_string_lxml(val): + lxml_etree = pytest.importorskip("lxml.etree") + + msg = "|".join( + [ + "Document is empty", + # Seen on Mac with lxml 4.91 + r"None \(line 0\)", + ] + ) + with pytest.raises(lxml_etree.XMLSyntaxError, match=msg): + if isinstance(val, str): + read_xml(StringIO(val), parser="lxml") + else: + read_xml(BytesIO(val), parser="lxml") + + +@pytest.mark.parametrize("val", ["", b""]) +def test_empty_string_etree(val): + with pytest.raises(ParseError, match="no element found"): + if isinstance(val, str): + read_xml(StringIO(val), parser="etree") + else: + read_xml(BytesIO(val), parser="etree") + + +def test_wrong_file_path(parser): + msg = ( + "Passing literal xml to 'read_xml' is deprecated and " + "will be removed in a future version. To read from a " + "literal string, wrap it in a 'StringIO' object." + ) + filename = os.path.join("data", "html", "books.xml") + + with pytest.raises( + FutureWarning, + match=msg, + ): + read_xml(filename, parser=parser) + + +@pytest.mark.network +@pytest.mark.single_cpu +def test_url(httpserver, xml_file): + pytest.importorskip("lxml") + with open(xml_file, encoding="utf-8") as f: + httpserver.serve_content(content=f.read()) + df_url = read_xml(httpserver.url, xpath=".//book[count(*)=4]") + + df_expected = DataFrame( + { + "category": ["cooking", "children", "web"], + "title": ["Everyday Italian", "Harry Potter", "Learning XML"], + "author": ["Giada De Laurentiis", "J K. Rowling", "Erik T. Ray"], + "year": [2005, 2005, 2003], + "price": [30.00, 29.99, 39.95], + } + ) + + tm.assert_frame_equal(df_url, df_expected) + + +@pytest.mark.network +@pytest.mark.single_cpu +def test_wrong_url(parser, httpserver): + httpserver.serve_content("NOT FOUND", code=404) + with pytest.raises(HTTPError, match=("HTTP Error 404: NOT FOUND")): + read_xml(httpserver.url, xpath=".//book[count(*)=4]", parser=parser) + + +# CONTENT + + +def test_whitespace(parser): + xml = """ + + + + square + + 360 + + + + circle + + 360 + + + + triangle + + 180 + + """ + + df_xpath = read_xml(StringIO(xml), parser=parser, dtype="string") + + df_iter = read_xml_iterparse( + xml, + parser=parser, + iterparse={"row": ["sides", "shape", "degrees"]}, + dtype="string", + ) + + df_expected = DataFrame( + { + "sides": [" 4 ", " 0 ", " 3 "], + "shape": [ + "\n square\n ", + "\n circle\n ", + "\n triangle\n ", + ], + "degrees": ["\t360\t", "\t360\t", "\t180\t"], + }, + dtype="string", + ) + + tm.assert_frame_equal(df_xpath, df_expected) + tm.assert_frame_equal(df_iter, df_expected) + + +# XPATH + + +def test_empty_xpath_lxml(xml_books): + pytest.importorskip("lxml") + with pytest.raises(ValueError, match=("xpath does not return any nodes")): + read_xml(xml_books, xpath=".//python", parser="lxml") + + +def test_bad_xpath_etree(xml_books): + with pytest.raises( + SyntaxError, match=("You have used an incorrect or unsupported XPath") + ): + read_xml(xml_books, xpath=".//[book]", parser="etree") + + +def test_bad_xpath_lxml(xml_books): + lxml_etree = pytest.importorskip("lxml.etree") + + with pytest.raises(lxml_etree.XPathEvalError, match=("Invalid expression")): + read_xml(xml_books, xpath=".//[book]", parser="lxml") + + +# NAMESPACE + + +def test_default_namespace(parser): + df_nmsp = read_xml( + StringIO(xml_default_nmsp), + xpath=".//ns:row", + namespaces={"ns": "http://example.com"}, + parser=parser, + ) + + df_iter = read_xml_iterparse( + xml_default_nmsp, + parser=parser, + iterparse={"row": ["shape", "degrees", "sides"]}, + ) + + df_expected = DataFrame( + { + "shape": ["square", "circle", "triangle"], + "degrees": [360, 360, 180], + "sides": [4.0, float("nan"), 3.0], + } + ) + + tm.assert_frame_equal(df_nmsp, df_expected) + tm.assert_frame_equal(df_iter, df_expected) + + +def test_prefix_namespace(parser): + df_nmsp = read_xml( + StringIO(xml_prefix_nmsp), + xpath=".//doc:row", + namespaces={"doc": "http://example.com"}, + parser=parser, + ) + df_iter = read_xml_iterparse( + xml_prefix_nmsp, parser=parser, iterparse={"row": ["shape", "degrees", "sides"]} + ) + + df_expected = DataFrame( + { + "shape": ["square", "circle", "triangle"], + "degrees": [360, 360, 180], + "sides": [4.0, float("nan"), 3.0], + } + ) + + tm.assert_frame_equal(df_nmsp, df_expected) + tm.assert_frame_equal(df_iter, df_expected) + + +def test_consistency_default_namespace(): + pytest.importorskip("lxml") + df_lxml = read_xml( + StringIO(xml_default_nmsp), + xpath=".//ns:row", + namespaces={"ns": "http://example.com"}, + parser="lxml", + ) + + df_etree = read_xml( + StringIO(xml_default_nmsp), + xpath=".//doc:row", + namespaces={"doc": "http://example.com"}, + parser="etree", + ) + + tm.assert_frame_equal(df_lxml, df_etree) + + +def test_consistency_prefix_namespace(): + pytest.importorskip("lxml") + df_lxml = read_xml( + StringIO(xml_prefix_nmsp), + xpath=".//doc:row", + namespaces={"doc": "http://example.com"}, + parser="lxml", + ) + + df_etree = read_xml( + StringIO(xml_prefix_nmsp), + xpath=".//doc:row", + namespaces={"doc": "http://example.com"}, + parser="etree", + ) + + tm.assert_frame_equal(df_lxml, df_etree) + + +# PREFIX + + +def test_missing_prefix_with_default_namespace(xml_books, parser): + with pytest.raises(ValueError, match=("xpath does not return any nodes")): + read_xml(xml_books, xpath=".//Placemark", parser=parser) + + +def test_missing_prefix_definition_etree(kml_cta_rail_lines): + with pytest.raises(SyntaxError, match=("you used an undeclared namespace prefix")): + read_xml(kml_cta_rail_lines, xpath=".//kml:Placemark", parser="etree") + + +def test_missing_prefix_definition_lxml(kml_cta_rail_lines): + lxml_etree = pytest.importorskip("lxml.etree") + + with pytest.raises(lxml_etree.XPathEvalError, match=("Undefined namespace prefix")): + read_xml(kml_cta_rail_lines, xpath=".//kml:Placemark", parser="lxml") + + +@pytest.mark.parametrize("key", ["", None]) +def test_none_namespace_prefix(key): + pytest.importorskip("lxml") + with pytest.raises( + TypeError, match=("empty namespace prefix is not supported in XPath") + ): + read_xml( + StringIO(xml_default_nmsp), + xpath=".//kml:Placemark", + namespaces={key: "http://www.opengis.net/kml/2.2"}, + parser="lxml", + ) + + +# ELEMS AND ATTRS + + +def test_file_elems_and_attrs(xml_books, parser): + df_file = read_xml(xml_books, parser=parser) + df_iter = read_xml( + xml_books, + parser=parser, + iterparse={"book": ["category", "title", "author", "year", "price"]}, + ) + df_expected = DataFrame( + { + "category": ["cooking", "children", "web"], + "title": ["Everyday Italian", "Harry Potter", "Learning XML"], + "author": ["Giada De Laurentiis", "J K. Rowling", "Erik T. Ray"], + "year": [2005, 2005, 2003], + "price": [30.00, 29.99, 39.95], + } + ) + + tm.assert_frame_equal(df_file, df_expected) + tm.assert_frame_equal(df_iter, df_expected) + + +def test_file_only_attrs(xml_books, parser): + df_file = read_xml(xml_books, attrs_only=True, parser=parser) + df_iter = read_xml(xml_books, parser=parser, iterparse={"book": ["category"]}) + df_expected = DataFrame({"category": ["cooking", "children", "web"]}) + + tm.assert_frame_equal(df_file, df_expected) + tm.assert_frame_equal(df_iter, df_expected) + + +def test_file_only_elems(xml_books, parser): + df_file = read_xml(xml_books, elems_only=True, parser=parser) + df_iter = read_xml( + xml_books, + parser=parser, + iterparse={"book": ["title", "author", "year", "price"]}, + ) + df_expected = DataFrame( + { + "title": ["Everyday Italian", "Harry Potter", "Learning XML"], + "author": ["Giada De Laurentiis", "J K. Rowling", "Erik T. Ray"], + "year": [2005, 2005, 2003], + "price": [30.00, 29.99, 39.95], + } + ) + + tm.assert_frame_equal(df_file, df_expected) + tm.assert_frame_equal(df_iter, df_expected) + + +def test_elem_and_attrs_only(kml_cta_rail_lines, parser): + with pytest.raises( + ValueError, + match=("Either element or attributes can be parsed not both"), + ): + read_xml(kml_cta_rail_lines, elems_only=True, attrs_only=True, parser=parser) + + +def test_empty_attrs_only(parser): + xml = """ + + + square + 360 + + + circle + 360 + + + triangle + 180 + + """ + + with pytest.raises( + ValueError, + match=("xpath does not return any nodes or attributes"), + ): + read_xml(StringIO(xml), xpath="./row", attrs_only=True, parser=parser) + + +def test_empty_elems_only(parser): + xml = """ + + + + + """ + + with pytest.raises( + ValueError, + match=("xpath does not return any nodes or attributes"), + ): + read_xml(StringIO(xml), xpath="./row", elems_only=True, parser=parser) + + +def test_attribute_centric_xml(): + pytest.importorskip("lxml") + xml = """\ + + + + + + + + + + + + + + + + + +""" + + df_lxml = read_xml(StringIO(xml), xpath=".//station") + df_etree = read_xml(StringIO(xml), xpath=".//station", parser="etree") + + df_iter_lx = read_xml_iterparse(xml, iterparse={"station": ["Name", "coords"]}) + df_iter_et = read_xml_iterparse( + xml, parser="etree", iterparse={"station": ["Name", "coords"]} + ) + + tm.assert_frame_equal(df_lxml, df_etree) + tm.assert_frame_equal(df_iter_lx, df_iter_et) + + +# NAMES + + +def test_names_option_output(xml_books, parser): + df_file = read_xml( + xml_books, names=["Col1", "Col2", "Col3", "Col4", "Col5"], parser=parser + ) + df_iter = read_xml( + xml_books, + parser=parser, + names=["Col1", "Col2", "Col3", "Col4", "Col5"], + iterparse={"book": ["category", "title", "author", "year", "price"]}, + ) + + df_expected = DataFrame( + { + "Col1": ["cooking", "children", "web"], + "Col2": ["Everyday Italian", "Harry Potter", "Learning XML"], + "Col3": ["Giada De Laurentiis", "J K. Rowling", "Erik T. Ray"], + "Col4": [2005, 2005, 2003], + "Col5": [30.00, 29.99, 39.95], + } + ) + + tm.assert_frame_equal(df_file, df_expected) + tm.assert_frame_equal(df_iter, df_expected) + + +def test_repeat_names(parser): + xml = """\ + + + circle + curved + + + sphere + curved + +""" + df_xpath = read_xml( + StringIO(xml), + xpath=".//shape", + parser=parser, + names=["type_dim", "shape", "type_edge"], + ) + + df_iter = read_xml_iterparse( + xml, + parser=parser, + iterparse={"shape": ["type", "name", "type"]}, + names=["type_dim", "shape", "type_edge"], + ) + + df_expected = DataFrame( + { + "type_dim": ["2D", "3D"], + "shape": ["circle", "sphere"], + "type_edge": ["curved", "curved"], + } + ) + + tm.assert_frame_equal(df_xpath, df_expected) + tm.assert_frame_equal(df_iter, df_expected) + + +def test_repeat_values_new_names(parser): + xml = """\ + + + rectangle + rectangle + + + square + rectangle + + + ellipse + ellipse + + + circle + ellipse + +""" + df_xpath = read_xml( + StringIO(xml), xpath=".//shape", parser=parser, names=["name", "group"] + ) + + df_iter = read_xml_iterparse( + xml, + parser=parser, + iterparse={"shape": ["name", "family"]}, + names=["name", "group"], + ) + + df_expected = DataFrame( + { + "name": ["rectangle", "square", "ellipse", "circle"], + "group": ["rectangle", "rectangle", "ellipse", "ellipse"], + } + ) + + tm.assert_frame_equal(df_xpath, df_expected) + tm.assert_frame_equal(df_iter, df_expected) + + +def test_repeat_elements(parser): + xml = """\ + + + circle + ellipse + 360 + 0 + + + triangle + polygon + 180 + 3 + + + square + polygon + 360 + 4 + +""" + df_xpath = read_xml( + StringIO(xml), + xpath=".//shape", + parser=parser, + names=["name", "family", "degrees", "sides"], + ) + + df_iter = read_xml_iterparse( + xml, + parser=parser, + iterparse={"shape": ["value", "value", "value", "value"]}, + names=["name", "family", "degrees", "sides"], + ) + + df_expected = DataFrame( + { + "name": ["circle", "triangle", "square"], + "family": ["ellipse", "polygon", "polygon"], + "degrees": [360, 180, 360], + "sides": [0, 3, 4], + } + ) + + tm.assert_frame_equal(df_xpath, df_expected) + tm.assert_frame_equal(df_iter, df_expected) + + +def test_names_option_wrong_length(xml_books, parser): + with pytest.raises(ValueError, match=("names does not match length")): + read_xml(xml_books, names=["Col1", "Col2", "Col3"], parser=parser) + + +def test_names_option_wrong_type(xml_books, parser): + with pytest.raises(TypeError, match=("is not a valid type for names")): + read_xml(xml_books, names="Col1, Col2, Col3", parser=parser) + + +# ENCODING + + +def test_wrong_encoding(xml_baby_names, parser): + with pytest.raises(UnicodeDecodeError, match=("'utf-8' codec can't decode")): + read_xml(xml_baby_names, parser=parser) + + +def test_utf16_encoding(xml_baby_names, parser): + with pytest.raises( + UnicodeError, + match=( + "UTF-16 stream does not start with BOM|" + "'utf-16(-le)?' codec can't decode byte" + ), + ): + read_xml(xml_baby_names, encoding="UTF-16", parser=parser) + + +def test_unknown_encoding(xml_baby_names, parser): + with pytest.raises(LookupError, match=("unknown encoding: UFT-8")): + read_xml(xml_baby_names, encoding="UFT-8", parser=parser) + + +def test_ascii_encoding(xml_baby_names, parser): + with pytest.raises(UnicodeDecodeError, match=("'ascii' codec can't decode byte")): + read_xml(xml_baby_names, encoding="ascii", parser=parser) + + +def test_parser_consistency_with_encoding(xml_baby_names): + pytest.importorskip("lxml") + df_xpath_lxml = read_xml(xml_baby_names, parser="lxml", encoding="ISO-8859-1") + df_xpath_etree = read_xml(xml_baby_names, parser="etree", encoding="iso-8859-1") + + df_iter_lxml = read_xml( + xml_baby_names, + parser="lxml", + encoding="ISO-8859-1", + iterparse={"row": ["rank", "malename", "femalename"]}, + ) + df_iter_etree = read_xml( + xml_baby_names, + parser="etree", + encoding="ISO-8859-1", + iterparse={"row": ["rank", "malename", "femalename"]}, + ) + + tm.assert_frame_equal(df_xpath_lxml, df_xpath_etree) + tm.assert_frame_equal(df_xpath_etree, df_iter_etree) + tm.assert_frame_equal(df_iter_lxml, df_iter_etree) + + +def test_wrong_encoding_for_lxml(): + pytest.importorskip("lxml") + # GH#45133 + data = """ + + c + + +""" + with pytest.raises(TypeError, match="encoding None"): + read_xml(StringIO(data), parser="lxml", encoding=None) + + +def test_none_encoding_etree(): + # GH#45133 + data = """ + + c + + +""" + result = read_xml(StringIO(data), parser="etree", encoding=None) + expected = DataFrame({"a": ["c"]}) + tm.assert_frame_equal(result, expected) + + +# PARSER + + +@td.skip_if_installed("lxml") +def test_default_parser_no_lxml(xml_books): + with pytest.raises( + ImportError, match=("lxml not found, please install or use the etree parser.") + ): + read_xml(xml_books) + + +def test_wrong_parser(xml_books): + with pytest.raises( + ValueError, match=("Values for parser can only be lxml or etree.") + ): + read_xml(xml_books, parser="bs4") + + +# STYLESHEET + + +def test_stylesheet_file(kml_cta_rail_lines, xsl_flatten_doc): + pytest.importorskip("lxml") + df_style = read_xml( + kml_cta_rail_lines, + xpath=".//k:Placemark", + namespaces={"k": "http://www.opengis.net/kml/2.2"}, + stylesheet=xsl_flatten_doc, + ) + + df_iter = read_xml( + kml_cta_rail_lines, + iterparse={ + "Placemark": [ + "id", + "name", + "styleUrl", + "extrude", + "altitudeMode", + "coordinates", + ] + }, + ) + + tm.assert_frame_equal(df_kml, df_style) + tm.assert_frame_equal(df_kml, df_iter) + + +def test_stylesheet_file_like(kml_cta_rail_lines, xsl_flatten_doc, mode): + pytest.importorskip("lxml") + with open(xsl_flatten_doc, mode, encoding="utf-8" if mode == "r" else None) as f: + df_style = read_xml( + kml_cta_rail_lines, + xpath=".//k:Placemark", + namespaces={"k": "http://www.opengis.net/kml/2.2"}, + stylesheet=f, + ) + + tm.assert_frame_equal(df_kml, df_style) + + +def test_stylesheet_io(kml_cta_rail_lines, xsl_flatten_doc, mode): + # note: By default the bodies of untyped functions are not checked, + # consider using --check-untyped-defs + pytest.importorskip("lxml") + xsl_obj: BytesIO | StringIO # type: ignore[annotation-unchecked] + + with open(xsl_flatten_doc, mode, encoding="utf-8" if mode == "r" else None) as f: + if mode == "rb": + xsl_obj = BytesIO(f.read()) + else: + xsl_obj = StringIO(f.read()) + + df_style = read_xml( + kml_cta_rail_lines, + xpath=".//k:Placemark", + namespaces={"k": "http://www.opengis.net/kml/2.2"}, + stylesheet=xsl_obj, + ) + + tm.assert_frame_equal(df_kml, df_style) + + +def test_stylesheet_buffered_reader(kml_cta_rail_lines, xsl_flatten_doc, mode): + pytest.importorskip("lxml") + with open(xsl_flatten_doc, mode, encoding="utf-8" if mode == "r" else None) as f: + xsl_obj = f.read() + + df_style = read_xml( + kml_cta_rail_lines, + xpath=".//k:Placemark", + namespaces={"k": "http://www.opengis.net/kml/2.2"}, + stylesheet=xsl_obj, + ) + + tm.assert_frame_equal(df_kml, df_style) + + +def test_style_charset(): + pytest.importorskip("lxml") + xml = "<中文標籤>12" + + xsl = """\ + + + + + + + + + + + + <根> + + + + +""" + + df_orig = read_xml(StringIO(xml)) + df_style = read_xml(StringIO(xml), stylesheet=xsl) + + tm.assert_frame_equal(df_orig, df_style) + + +def test_not_stylesheet(kml_cta_rail_lines, xml_books): + lxml_etree = pytest.importorskip("lxml.etree") + + with pytest.raises( + lxml_etree.XSLTParseError, match=("document is not a stylesheet") + ): + read_xml(kml_cta_rail_lines, stylesheet=xml_books) + + +def test_incorrect_xsl_syntax(kml_cta_rail_lines): + lxml_etree = pytest.importorskip("lxml.etree") + + xsl = """\ + + + + + + + + + + + + + + + +""" + + with pytest.raises( + lxml_etree.XMLSyntaxError, match=("Extra content at the end of the document") + ): + read_xml(kml_cta_rail_lines, stylesheet=xsl) + + +def test_incorrect_xsl_eval(kml_cta_rail_lines): + lxml_etree = pytest.importorskip("lxml.etree") + + xsl = """\ + + + + + + + + + + + + + + + +""" + + with pytest.raises(lxml_etree.XSLTParseError, match=("failed to compile")): + read_xml(kml_cta_rail_lines, stylesheet=xsl) + + +def test_incorrect_xsl_apply(kml_cta_rail_lines): + lxml_etree = pytest.importorskip("lxml.etree") + + xsl = """\ + + + + + + + + + +""" + + with pytest.raises(lxml_etree.XSLTApplyError, match=("Cannot resolve URI")): + read_xml(kml_cta_rail_lines, stylesheet=xsl) + + +def test_wrong_stylesheet(kml_cta_rail_lines, xml_data_path): + xml_etree = pytest.importorskip("lxml.etree") + + xsl = xml_data_path / "flatten.xsl" + + with pytest.raises( + xml_etree.XMLSyntaxError, + match=("Start tag expected, '<' not found"), + ): + read_xml(kml_cta_rail_lines, stylesheet=xsl) + + +def test_stylesheet_file_close(kml_cta_rail_lines, xsl_flatten_doc, mode): + # note: By default the bodies of untyped functions are not checked, + # consider using --check-untyped-defs + pytest.importorskip("lxml") + xsl_obj: BytesIO | StringIO # type: ignore[annotation-unchecked] + + with open(xsl_flatten_doc, mode, encoding="utf-8" if mode == "r" else None) as f: + if mode == "rb": + xsl_obj = BytesIO(f.read()) + else: + xsl_obj = StringIO(f.read()) + + read_xml(kml_cta_rail_lines, stylesheet=xsl_obj) + + assert not f.closed + + +def test_stylesheet_with_etree(kml_cta_rail_lines, xsl_flatten_doc): + pytest.importorskip("lxml") + with pytest.raises( + ValueError, match=("To use stylesheet, you need lxml installed") + ): + read_xml(kml_cta_rail_lines, parser="etree", stylesheet=xsl_flatten_doc) + + +@pytest.mark.parametrize("val", ["", b""]) +def test_empty_stylesheet(val): + pytest.importorskip("lxml") + msg = ( + "Passing literal xml to 'read_xml' is deprecated and " + "will be removed in a future version. To read from a " + "literal string, wrap it in a 'StringIO' object." + ) + kml = os.path.join("data", "xml", "cta_rail_lines.kml") + + with pytest.raises(FutureWarning, match=msg): + read_xml(kml, stylesheet=val) + + +# ITERPARSE +def test_file_like_iterparse(xml_books, parser, mode): + with open(xml_books, mode, encoding="utf-8" if mode == "r" else None) as f: + if mode == "r" and parser == "lxml": + with pytest.raises( + TypeError, match=("reading file objects must return bytes objects") + ): + read_xml( + f, + parser=parser, + iterparse={ + "book": ["category", "title", "year", "author", "price"] + }, + ) + return None + else: + df_filelike = read_xml( + f, + parser=parser, + iterparse={"book": ["category", "title", "year", "author", "price"]}, + ) + + df_expected = DataFrame( + { + "category": ["cooking", "children", "web"], + "title": ["Everyday Italian", "Harry Potter", "Learning XML"], + "author": ["Giada De Laurentiis", "J K. Rowling", "Erik T. Ray"], + "year": [2005, 2005, 2003], + "price": [30.00, 29.99, 39.95], + } + ) + + tm.assert_frame_equal(df_filelike, df_expected) + + +def test_file_io_iterparse(xml_books, parser, mode): + funcIO = StringIO if mode == "r" else BytesIO + with open( + xml_books, + mode, + encoding="utf-8" if mode == "r" else None, + ) as f: + with funcIO(f.read()) as b: + if mode == "r" and parser == "lxml": + with pytest.raises( + TypeError, match=("reading file objects must return bytes objects") + ): + read_xml( + b, + parser=parser, + iterparse={ + "book": ["category", "title", "year", "author", "price"] + }, + ) + return None + else: + df_fileio = read_xml( + b, + parser=parser, + iterparse={ + "book": ["category", "title", "year", "author", "price"] + }, + ) + + df_expected = DataFrame( + { + "category": ["cooking", "children", "web"], + "title": ["Everyday Italian", "Harry Potter", "Learning XML"], + "author": ["Giada De Laurentiis", "J K. Rowling", "Erik T. Ray"], + "year": [2005, 2005, 2003], + "price": [30.00, 29.99, 39.95], + } + ) + + tm.assert_frame_equal(df_fileio, df_expected) + + +@pytest.mark.network +@pytest.mark.single_cpu +def test_url_path_error(parser, httpserver, xml_file): + with open(xml_file, encoding="utf-8") as f: + httpserver.serve_content(content=f.read()) + with pytest.raises( + ParserError, match=("iterparse is designed for large XML files") + ): + read_xml( + httpserver.url, + parser=parser, + iterparse={"row": ["shape", "degrees", "sides", "date"]}, + ) + + +def test_compression_error(parser, compression_only): + with tm.ensure_clean(filename="geom_xml.zip") as path: + geom_df.to_xml(path, parser=parser, compression=compression_only) + + with pytest.raises( + ParserError, match=("iterparse is designed for large XML files") + ): + read_xml( + path, + parser=parser, + iterparse={"row": ["shape", "degrees", "sides", "date"]}, + compression=compression_only, + ) + + +def test_wrong_dict_type(xml_books, parser): + with pytest.raises(TypeError, match="list is not a valid type for iterparse"): + read_xml( + xml_books, + parser=parser, + iterparse=["category", "title", "year", "author", "price"], + ) + + +def test_wrong_dict_value(xml_books, parser): + with pytest.raises( + TypeError, match=" is not a valid type for value in iterparse" + ): + read_xml(xml_books, parser=parser, iterparse={"book": "category"}) + + +def test_bad_xml(parser): + bad_xml = """\ + + + square + 00360 + 4.0 + 2020-01-01 + + + circle + 00360 + + 2021-01-01 + + + triangle + 00180 + 3.0 + 2022-01-01 + +""" + with tm.ensure_clean(filename="bad.xml") as path: + with open(path, "w", encoding="utf-8") as f: + f.write(bad_xml) + + with pytest.raises( + SyntaxError, + match=( + "Extra content at the end of the document|" + "junk after document element" + ), + ): + read_xml( + path, + parser=parser, + parse_dates=["date"], + iterparse={"row": ["shape", "degrees", "sides", "date"]}, + ) + + +def test_comment(parser): + xml = """\ + + + + + circle + 2D + + + sphere + 3D + + + + +""" + + df_xpath = read_xml(StringIO(xml), xpath=".//shape", parser=parser) + + df_iter = read_xml_iterparse( + xml, parser=parser, iterparse={"shape": ["name", "type"]} + ) + + df_expected = DataFrame( + { + "name": ["circle", "sphere"], + "type": ["2D", "3D"], + } + ) + + tm.assert_frame_equal(df_xpath, df_expected) + tm.assert_frame_equal(df_iter, df_expected) + + +def test_dtd(parser): + xml = """\ + + + + +]> + + + circle + 2D + + + sphere + 3D + +""" + + df_xpath = read_xml(StringIO(xml), xpath=".//shape", parser=parser) + + df_iter = read_xml_iterparse( + xml, parser=parser, iterparse={"shape": ["name", "type"]} + ) + + df_expected = DataFrame( + { + "name": ["circle", "sphere"], + "type": ["2D", "3D"], + } + ) + + tm.assert_frame_equal(df_xpath, df_expected) + tm.assert_frame_equal(df_iter, df_expected) + + +def test_processing_instruction(parser): + xml = """\ + + + + + +, , ?> + + + circle + 2D + + + sphere + 3D + +""" + + df_xpath = read_xml(StringIO(xml), xpath=".//shape", parser=parser) + + df_iter = read_xml_iterparse( + xml, parser=parser, iterparse={"shape": ["name", "type"]} + ) + + df_expected = DataFrame( + { + "name": ["circle", "sphere"], + "type": ["2D", "3D"], + } + ) + + tm.assert_frame_equal(df_xpath, df_expected) + tm.assert_frame_equal(df_iter, df_expected) + + +def test_no_result(xml_books, parser): + with pytest.raises( + ParserError, match="No result from selected items in iterparse." + ): + read_xml( + xml_books, + parser=parser, + iterparse={"node": ["attr1", "elem1", "elem2", "elem3"]}, + ) + + +def test_empty_data(xml_books, parser): + with pytest.raises(EmptyDataError, match="No columns to parse from file"): + read_xml( + xml_books, + parser=parser, + iterparse={"book": ["attr1", "elem1", "elem2", "elem3"]}, + ) + + +def test_online_stylesheet(): + pytest.importorskip("lxml") + xml = """\ + + + + Empire Burlesque + Bob Dylan + USA + Columbia + 10.90 + 1985 + + + Hide your heart + Bonnie Tyler + UK + CBS Records + 9.90 + 1988 + + + Greatest Hits + Dolly Parton + USA + RCA + 9.90 + 1982 + + + Still got the blues + Gary Moore + UK + Virgin records + 10.20 + 1990 + + + Eros + Eros Ramazzotti + EU + BMG + 9.90 + 1997 + + + One night only + Bee Gees + UK + Polydor + 10.90 + 1998 + + + Sylvias Mother + Dr.Hook + UK + CBS + 8.10 + 1973 + + + Maggie May + Rod Stewart + UK + Pickwick + 8.50 + 1990 + + + Romanza + Andrea Bocelli + EU + Polydor + 10.80 + 1996 + + + When a man loves a woman + Percy Sledge + USA + Atlantic + 8.70 + 1987 + + + Black angel + Savage Rose + EU + Mega + 10.90 + 1995 + + + 1999 Grammy Nominees + Many + USA + Grammy + 10.20 + 1999 + + + For the good times + Kenny Rogers + UK + Mucik Master + 8.70 + 1995 + + + Big Willie style + Will Smith + USA + Columbia + 9.90 + 1997 + + + Tupelo Honey + Van Morrison + UK + Polydor + 8.20 + 1971 + + + Soulsville + Jorn Hoel + Norway + WEA + 7.90 + 1996 + + + The very best of + Cat Stevens + UK + Island + 8.90 + 1990 + + + Stop + Sam Brown + UK + A and M + 8.90 + 1988 + + + Bridge of Spies + T`Pau + UK + Siren + 7.90 + 1987 + + + Private Dancer + Tina Turner + UK + Capitol + 8.90 + 1983 + + + Midt om natten + Kim Larsen + EU + Medley + 7.80 + 1983 + + + Pavarotti Gala Concert + Luciano Pavarotti + UK + DECCA + 9.90 + 1991 + + + The dock of the bay + Otis Redding + USA + Stax Records + 7.90 + 1968 + + + Picture book + Simply Red + EU + Elektra + 7.20 + 1985 + + + Red + The Communards + UK + London + 7.80 + 1987 + + + Unchain my heart + Joe Cocker + USA + EMI + 8.20 + 1987 + + +""" + xsl = """\ + + + + + +

My CD Collection

+ + + + + + + + + + + +
TitleArtist
+ + +
+
+""" + + df_xsl = read_xml( + StringIO(xml), + xpath=".//tr[td and position() <= 6]", + names=["title", "artist"], + stylesheet=xsl, + ) + + df_expected = DataFrame( + { + "title": { + 0: "Empire Burlesque", + 1: "Hide your heart", + 2: "Greatest Hits", + 3: "Still got the blues", + 4: "Eros", + }, + "artist": { + 0: "Bob Dylan", + 1: "Bonnie Tyler", + 2: "Dolly Parton", + 3: "Gary Moore", + 4: "Eros Ramazzotti", + }, + } + ) + + tm.assert_frame_equal(df_expected, df_xsl) + + +# COMPRESSION + + +def test_compression_read(parser, compression_only): + with tm.ensure_clean() as comp_path: + geom_df.to_xml( + comp_path, index=False, parser=parser, compression=compression_only + ) + + df_xpath = read_xml(comp_path, parser=parser, compression=compression_only) + + df_iter = read_xml_iterparse_comp( + comp_path, + compression_only, + parser=parser, + iterparse={"row": ["shape", "degrees", "sides"]}, + compression=compression_only, + ) + + tm.assert_frame_equal(df_xpath, geom_df) + tm.assert_frame_equal(df_iter, geom_df) + + +def test_wrong_compression(parser, compression, compression_only): + actual_compression = compression + attempted_compression = compression_only + + if actual_compression == attempted_compression: + pytest.skip(f"{actual_compression} == {attempted_compression}") + + errors = { + "bz2": (OSError, "Invalid data stream"), + "gzip": (OSError, "Not a gzipped file"), + "zip": (BadZipFile, "File is not a zip file"), + "tar": (ReadError, "file could not be opened successfully"), + } + zstd = import_optional_dependency("zstandard", errors="ignore") + if zstd is not None: + errors["zstd"] = (zstd.ZstdError, "Unknown frame descriptor") + lzma = import_optional_dependency("lzma", errors="ignore") + if lzma is not None: + errors["xz"] = (LZMAError, "Input format not supported by decoder") + error_cls, error_str = errors[attempted_compression] + + with tm.ensure_clean() as path: + geom_df.to_xml(path, parser=parser, compression=actual_compression) + + with pytest.raises(error_cls, match=error_str): + read_xml(path, parser=parser, compression=attempted_compression) + + +def test_unsuported_compression(parser): + with pytest.raises(ValueError, match="Unrecognized compression type"): + with tm.ensure_clean() as path: + read_xml(path, parser=parser, compression="7z") + + +# STORAGE OPTIONS + + +@pytest.mark.network +@pytest.mark.single_cpu +def test_s3_parser_consistency(s3_public_bucket_with_data, s3so): + pytest.importorskip("s3fs") + pytest.importorskip("lxml") + s3 = f"s3://{s3_public_bucket_with_data.name}/books.xml" + + df_lxml = read_xml(s3, parser="lxml", storage_options=s3so) + + df_etree = read_xml(s3, parser="etree", storage_options=s3so) + + tm.assert_frame_equal(df_lxml, df_etree) + + +def test_read_xml_nullable_dtypes( + parser, string_storage, dtype_backend, using_infer_string +): + # GH#50500 + data = """ + + + x + 1 + 4.0 + x + 2 + 4.0 + + True + False + + + y + 2 + 5.0 + + + + + False + + +""" + + with pd.option_context("mode.string_storage", string_storage): + result = read_xml(StringIO(data), parser=parser, dtype_backend=dtype_backend) + + if dtype_backend == "pyarrow": + pa = pytest.importorskip("pyarrow") + string_dtype = pd.ArrowDtype(pa.string()) + else: + string_dtype = pd.StringDtype(string_storage) + + expected = DataFrame( + { + "a": Series(["x", "y"], dtype=string_dtype), + "b": Series([1, 2], dtype="Int64"), + "c": Series([4.0, 5.0], dtype="Float64"), + "d": Series(["x", None], dtype=string_dtype), + "e": Series([2, NA], dtype="Int64"), + "f": Series([4.0, NA], dtype="Float64"), + "g": Series([NA, NA], dtype="Int64"), + "h": Series([True, False], dtype="boolean"), + "i": Series([False, NA], dtype="boolean"), + } + ) + + if dtype_backend == "pyarrow": + pa = pytest.importorskip("pyarrow") + from pandas.arrays import ArrowExtensionArray + + expected = DataFrame( + { + col: ArrowExtensionArray(pa.array(expected[col], from_pandas=True)) + for col in expected.columns + } + ) + expected["g"] = ArrowExtensionArray(pa.array([None, None])) + + # the storage of the str columns' Index is also affected by the + # string_storage setting -> ignore that for checking the result + tm.assert_frame_equal(result, expected, check_column_type=False) + + +def test_invalid_dtype_backend(): + msg = ( + "dtype_backend numpy is invalid, only 'numpy_nullable' and " + "'pyarrow' are allowed." + ) + with pytest.raises(ValueError, match=msg): + read_xml("test", dtype_backend="numpy") diff --git a/shared/package-files/3e/3e3600195f335ea4d6a18341c5225250d03b24acac6ebab38375b331695bb520/typing.py b/shared/package-files/3e/3e3600195f335ea4d6a18341c5225250d03b24acac6ebab38375b331695bb520/typing.py new file mode 100644 index 0000000000000000000000000000000000000000..139bde96f83cd7dcc4d52488fb256f9294e759cc --- /dev/null +++ b/shared/package-files/3e/3e3600195f335ea4d6a18341c5225250d03b24acac6ebab38375b331695bb520/typing.py @@ -0,0 +1,42 @@ +from __future__ import annotations # pragma: no cover + +from typing import TYPE_CHECKING # pragma: no cover + +from narwhals._typing_compat import TypeVar + +if TYPE_CHECKING: + from typing import Any, TypeAlias + + import pandas as pd + + from narwhals._native import ( + NativePandasLikeDataFrame, + _CuDFDataFrame, + _CuDFSeries, + _ModinDataFrame, + _ModinSeries, + ) + from narwhals._pandas_like.expr import PandasLikeExpr + from narwhals._pandas_like.series import PandasLikeSeries + + IntoPandasLikeExpr: TypeAlias = "PandasLikeExpr | PandasLikeSeries" + +NativeSeriesT = TypeVar( + "NativeSeriesT", + "pd.Series[Any]", + "_CuDFSeries", + "_ModinSeries", + default="pd.Series[Any]", +) +NativeDataFrameT = TypeVar( + "NativeDataFrameT", bound="NativePandasLikeDataFrame", default="pd.DataFrame" +) +NativeNDFrameT = TypeVar( + "NativeNDFrameT", + "pd.DataFrame", + "pd.Series[Any]", + "_CuDFDataFrame", + "_CuDFSeries", + "_ModinDataFrame", + "_ModinSeries", +) diff --git a/shared/package-files/3e/3e380bdfb3c23f0883c7fa6daa798a5dcd56dd01a54638cfac6d27239140e12a/mstats_basic.py b/shared/package-files/3e/3e380bdfb3c23f0883c7fa6daa798a5dcd56dd01a54638cfac6d27239140e12a/mstats_basic.py new file mode 100644 index 0000000000000000000000000000000000000000..19cc67a6acdfa054ffa2b29b6e774dd7aafda263 --- /dev/null +++ b/shared/package-files/3e/3e380bdfb3c23f0883c7fa6daa798a5dcd56dd01a54638cfac6d27239140e12a/mstats_basic.py @@ -0,0 +1,42 @@ +# This file is not meant for public use and will be removed in SciPy v2.0.0. +# Use the `scipy.stats` namespace for importing the functions +# included below. + +from scipy._lib.deprecation import _sub_module_deprecation + + +__all__ = [ # noqa: F822 + 'argstoarray', + 'count_tied_groups', + 'describe', + 'f_oneway', 'find_repeats','friedmanchisquare', + 'kendalltau','kendalltau_seasonal','kruskal','kruskalwallis', + 'ks_twosamp', 'ks_2samp', 'kurtosis', 'kurtosistest', + 'ks_1samp', 'kstest', + 'linregress', + 'mannwhitneyu', 'meppf','mode','moment','mquantiles','msign', + 'normaltest', + 'obrientransform', + 'pearsonr','plotting_positions','pointbiserialr', + 'rankdata', + 'scoreatpercentile','sem', + 'sen_seasonal_slopes','skew','skewtest','spearmanr', + 'siegelslopes', 'theilslopes', + 'tmax','tmean','tmin','trim','trimboth', + 'trimtail','trima','trimr','trimmed_mean','trimmed_std', + 'trimmed_stde','trimmed_var','tsem','ttest_1samp','ttest_onesamp', + 'ttest_ind','ttest_rel','tvar', + 'variation', + 'winsorize', + 'brunnermunzel', +] + + +def __dir__(): + return __all__ + + +def __getattr__(name): + return _sub_module_deprecation(sub_package="stats", module="mstats_basic", + private_modules=["_mstats_basic"], all=__all__, + attribute=name, correct_module="mstats") diff --git a/shared/package-files/3e/3e3eec15301b451c1a9acf152d111453bfd48b71928337ba848f8ae766046d4f/test_pandas.py b/shared/package-files/3e/3e3eec15301b451c1a9acf152d111453bfd48b71928337ba848f8ae766046d4f/test_pandas.py new file mode 100644 index 0000000000000000000000000000000000000000..10f1e7df648f0d0aada247e6cb9182e8f4409189 --- /dev/null +++ b/shared/package-files/3e/3e3eec15301b451c1a9acf152d111453bfd48b71928337ba848f8ae766046d4f/test_pandas.py @@ -0,0 +1,2188 @@ +import datetime +from datetime import timedelta +from decimal import Decimal +from io import ( + BytesIO, + StringIO, +) +import json +import os +import sys +import time + +import numpy as np +import pytest + +from pandas._config import using_string_dtype + +from pandas.compat import IS64 +import pandas.util._test_decorators as td + +import pandas as pd +from pandas import ( + NA, + DataFrame, + DatetimeIndex, + Index, + RangeIndex, + Series, + Timestamp, + date_range, + read_json, +) +import pandas._testing as tm + +from pandas.io.json import ujson_dumps + + +def test_literal_json_deprecation(): + # PR 53409 + expected = DataFrame([[1, 2], [1, 2]], columns=["a", "b"]) + + jsonl = """{"a": 1, "b": 2} + {"a": 3, "b": 4} + {"a": 5, "b": 6} + {"a": 7, "b": 8}""" + + msg = ( + "Passing literal json to 'read_json' is deprecated and " + "will be removed in a future version. To read from a " + "literal string, wrap it in a 'StringIO' object." + ) + + with tm.assert_produces_warning(FutureWarning, match=msg): + try: + read_json(jsonl, lines=False) + except ValueError: + pass + + with tm.assert_produces_warning(FutureWarning, match=msg): + read_json(expected.to_json(), lines=False) + + with tm.assert_produces_warning(FutureWarning, match=msg): + result = read_json('{"a": 1, "b": 2}\n{"b":2, "a" :1}\n', lines=True) + tm.assert_frame_equal(result, expected) + + with tm.assert_produces_warning(FutureWarning, match=msg): + try: + result = read_json( + '{"a\\\\":"foo\\\\","b":"bar"}\n{"a\\\\":"foo\\"","b":"bar"}\n', + lines=False, + ) + except ValueError: + pass + + with tm.assert_produces_warning(FutureWarning, match=msg): + try: + result = read_json('{"a": 1, "b": 2}\n{"b":2, "a" :1}\n', lines=False) + except ValueError: + pass + tm.assert_frame_equal(result, expected) + + +def assert_json_roundtrip_equal(result, expected, orient): + if orient in ("records", "values"): + expected = expected.reset_index(drop=True) + if orient == "values": + expected.columns = range(len(expected.columns)) + tm.assert_frame_equal(result, expected) + + +class TestPandasContainer: + @pytest.fixture + def categorical_frame(self): + data = { + c: np.random.default_rng(i).standard_normal(30) + for i, c in enumerate(list("ABCD")) + } + cat = ["bah"] * 5 + ["bar"] * 5 + ["baz"] * 5 + ["foo"] * 15 + data["E"] = list(reversed(cat)) + data["sort"] = np.arange(30, dtype="int64") + return DataFrame(data, index=pd.CategoricalIndex(cat, name="E")) + + @pytest.fixture + def datetime_series(self): + # Same as usual datetime_series, but with index freq set to None, + # since that doesn't round-trip, see GH#33711 + ser = Series( + 1.1 * np.arange(10, dtype=np.float64), + index=date_range("2020-01-01", periods=10), + name="ts", + ) + ser.index = ser.index._with_freq(None) + return ser + + @pytest.fixture + def datetime_frame(self): + # Same as usual datetime_frame, but with index freq set to None, + # since that doesn't round-trip, see GH#33711 + df = DataFrame( + np.random.default_rng(2).standard_normal((30, 4)), + columns=Index(list("ABCD")), + index=date_range("2000-01-01", periods=30, freq="B"), + ) + df.index = df.index._with_freq(None) + return df + + def test_frame_double_encoded_labels(self, orient): + df = DataFrame( + [["a", "b"], ["c", "d"]], + index=['index " 1', "index / 2"], + columns=["a \\ b", "y / z"], + ) + + data = StringIO(df.to_json(orient=orient)) + result = read_json(data, orient=orient) + expected = df.copy() + assert_json_roundtrip_equal(result, expected, orient) + + @pytest.mark.parametrize("orient", ["split", "records", "values"]) + def test_frame_non_unique_index(self, orient): + df = DataFrame([["a", "b"], ["c", "d"]], index=[1, 1], columns=["x", "y"]) + data = StringIO(df.to_json(orient=orient)) + result = read_json(data, orient=orient) + expected = df.copy() + + assert_json_roundtrip_equal(result, expected, orient) + + @pytest.mark.parametrize("orient", ["index", "columns"]) + def test_frame_non_unique_index_raises(self, orient): + df = DataFrame([["a", "b"], ["c", "d"]], index=[1, 1], columns=["x", "y"]) + msg = f"DataFrame index must be unique for orient='{orient}'" + with pytest.raises(ValueError, match=msg): + df.to_json(orient=orient) + + @pytest.mark.parametrize("orient", ["split", "values"]) + @pytest.mark.parametrize( + "data", + [ + [["a", "b"], ["c", "d"]], + [[1.5, 2.5], [3.5, 4.5]], + [[1, 2.5], [3, 4.5]], + [[Timestamp("20130101"), 3.5], [Timestamp("20130102"), 4.5]], + ], + ) + def test_frame_non_unique_columns(self, orient, data): + df = DataFrame(data, index=[1, 2], columns=["x", "x"]) + + result = read_json( + StringIO(df.to_json(orient=orient)), orient=orient, convert_dates=["x"] + ) + if orient == "values": + expected = DataFrame(data) + if expected.iloc[:, 0].dtype == "datetime64[ns]": + # orient == "values" by default will write Timestamp objects out + # in milliseconds; these are internally stored in nanosecond, + # so divide to get where we need + # TODO: a to_epoch method would also solve; see GH 14772 + expected.isetitem(0, expected.iloc[:, 0].astype(np.int64) // 1000000) + elif orient == "split": + expected = df + expected.columns = ["x", "x.1"] + + tm.assert_frame_equal(result, expected) + + @pytest.mark.parametrize("orient", ["index", "columns", "records"]) + def test_frame_non_unique_columns_raises(self, orient): + df = DataFrame([["a", "b"], ["c", "d"]], index=[1, 2], columns=["x", "x"]) + + msg = f"DataFrame columns must be unique for orient='{orient}'" + with pytest.raises(ValueError, match=msg): + df.to_json(orient=orient) + + def test_frame_default_orient(self, float_frame): + assert float_frame.to_json() == float_frame.to_json(orient="columns") + + @pytest.mark.parametrize("dtype", [False, float]) + @pytest.mark.parametrize("convert_axes", [True, False]) + def test_roundtrip_simple(self, orient, convert_axes, dtype, float_frame): + data = StringIO(float_frame.to_json(orient=orient)) + result = read_json(data, orient=orient, convert_axes=convert_axes, dtype=dtype) + + expected = float_frame + + assert_json_roundtrip_equal(result, expected, orient) + + @pytest.mark.parametrize("dtype", [False, np.int64]) + @pytest.mark.parametrize("convert_axes", [True, False]) + def test_roundtrip_intframe(self, orient, convert_axes, dtype, int_frame): + data = StringIO(int_frame.to_json(orient=orient)) + result = read_json(data, orient=orient, convert_axes=convert_axes, dtype=dtype) + expected = int_frame + assert_json_roundtrip_equal(result, expected, orient) + + @pytest.mark.parametrize("dtype", [None, np.float64, int, "U3"]) + @pytest.mark.parametrize("convert_axes", [True, False]) + def test_roundtrip_str_axes(self, orient, convert_axes, dtype): + df = DataFrame( + np.zeros((200, 4)), + columns=[str(i) for i in range(4)], + index=[str(i) for i in range(200)], + dtype=dtype, + ) + + data = StringIO(df.to_json(orient=orient)) + result = read_json(data, orient=orient, convert_axes=convert_axes, dtype=dtype) + + expected = df.copy() + if not dtype: + expected = expected.astype(np.int64) + + # index columns, and records orients cannot fully preserve the string + # dtype for axes as the index and column labels are used as keys in + # JSON objects. JSON keys are by definition strings, so there's no way + # to disambiguate whether those keys actually were strings or numeric + # beforehand and numeric wins out. + if convert_axes and (orient in ("index", "columns")): + expected.columns = expected.columns.astype(np.int64) + expected.index = expected.index.astype(np.int64) + elif orient == "records" and convert_axes: + expected.columns = expected.columns.astype(np.int64) + elif convert_axes and orient == "split": + expected.columns = expected.columns.astype(np.int64) + + assert_json_roundtrip_equal(result, expected, orient) + + @pytest.mark.parametrize("convert_axes", [True, False]) + def test_roundtrip_categorical( + self, request, orient, categorical_frame, convert_axes, using_infer_string + ): + # TODO: create a better frame to test with and improve coverage + if orient in ("index", "columns"): + request.applymarker( + pytest.mark.xfail( + reason=f"Can't have duplicate index values for orient '{orient}')" + ) + ) + + data = StringIO(categorical_frame.to_json(orient=orient)) + result = read_json(data, orient=orient, convert_axes=convert_axes) + + expected = categorical_frame.copy() + expected.index = expected.index.astype( + str if not using_infer_string else "str" + ) # Categorical not preserved + expected.index.name = None # index names aren't preserved in JSON + assert_json_roundtrip_equal(result, expected, orient) + + @pytest.mark.parametrize("convert_axes", [True, False]) + def test_roundtrip_empty(self, orient, convert_axes): + empty_frame = DataFrame() + data = StringIO(empty_frame.to_json(orient=orient)) + result = read_json(data, orient=orient, convert_axes=convert_axes) + if orient == "split": + idx = Index([], dtype=(float if convert_axes else object)) + expected = DataFrame(index=idx, columns=idx) + elif orient in ["index", "columns"]: + expected = DataFrame() + else: + expected = empty_frame.copy() + + tm.assert_frame_equal(result, expected) + + @pytest.mark.parametrize("convert_axes", [True, False]) + def test_roundtrip_timestamp(self, orient, convert_axes, datetime_frame): + # TODO: improve coverage with date_format parameter + data = StringIO(datetime_frame.to_json(orient=orient)) + result = read_json(data, orient=orient, convert_axes=convert_axes) + expected = datetime_frame.copy() + + if not convert_axes: # one off for ts handling + # DTI gets converted to epoch values + idx = expected.index.view(np.int64) // 1000000 + if orient != "split": # TODO: handle consistently across orients + idx = idx.astype(str) + + expected.index = idx + + assert_json_roundtrip_equal(result, expected, orient) + + @pytest.mark.parametrize("convert_axes", [True, False]) + def test_roundtrip_mixed(self, orient, convert_axes): + index = Index(["a", "b", "c", "d", "e"]) + values = { + "A": [0.0, 1.0, 2.0, 3.0, 4.0], + "B": [0.0, 1.0, 0.0, 1.0, 0.0], + "C": ["foo1", "foo2", "foo3", "foo4", "foo5"], + "D": [True, False, True, False, True], + } + + df = DataFrame(data=values, index=index) + + data = StringIO(df.to_json(orient=orient)) + result = read_json(data, orient=orient, convert_axes=convert_axes) + + expected = df.copy() + expected = expected.assign(**expected.select_dtypes("number").astype(np.int64)) + + assert_json_roundtrip_equal(result, expected, orient) + + @pytest.mark.xfail( + reason="#50456 Column multiindex is stored and loaded differently", + raises=AssertionError, + ) + @pytest.mark.parametrize( + "columns", + [ + [["2022", "2022"], ["JAN", "FEB"]], + [["2022", "2023"], ["JAN", "JAN"]], + [["2022", "2022"], ["JAN", "JAN"]], + ], + ) + def test_roundtrip_multiindex(self, columns): + df = DataFrame( + [[1, 2], [3, 4]], + columns=pd.MultiIndex.from_arrays(columns), + ) + data = StringIO(df.to_json(orient="split")) + result = read_json(data, orient="split") + tm.assert_frame_equal(result, df) + + @pytest.mark.parametrize( + "data,msg,orient", + [ + ('{"key":b:a:d}', "Expected object or value", "columns"), + # too few indices + ( + '{"columns":["A","B"],' + '"index":["2","3"],' + '"data":[[1.0,"1"],[2.0,"2"],[null,"3"]]}', + "|".join( + [ + r"Length of values \(3\) does not match length of index \(2\)", + ] + ), + "split", + ), + # too many columns + ( + '{"columns":["A","B","C"],' + '"index":["1","2","3"],' + '"data":[[1.0,"1"],[2.0,"2"],[null,"3"]]}', + "3 columns passed, passed data had 2 columns", + "split", + ), + # bad key + ( + '{"badkey":["A","B"],' + '"index":["2","3"],' + '"data":[[1.0,"1"],[2.0,"2"],[null,"3"]]}', + r"unexpected key\(s\): badkey", + "split", + ), + ], + ) + def test_frame_from_json_bad_data_raises(self, data, msg, orient): + with pytest.raises(ValueError, match=msg): + read_json(StringIO(data), orient=orient) + + @pytest.mark.parametrize("dtype", [True, False]) + @pytest.mark.parametrize("convert_axes", [True, False]) + def test_frame_from_json_missing_data(self, orient, convert_axes, dtype): + num_df = DataFrame([[1, 2], [4, 5, 6]]) + + result = read_json( + StringIO(num_df.to_json(orient=orient)), + orient=orient, + convert_axes=convert_axes, + dtype=dtype, + ) + assert np.isnan(result.iloc[0, 2]) + + obj_df = DataFrame([["1", "2"], ["4", "5", "6"]]) + result = read_json( + StringIO(obj_df.to_json(orient=orient)), + orient=orient, + convert_axes=convert_axes, + dtype=dtype, + ) + assert np.isnan(result.iloc[0, 2]) + + @pytest.mark.parametrize("dtype", [True, False]) + def test_frame_read_json_dtype_missing_value(self, dtype): + # GH28501 Parse missing values using read_json with dtype=False + # to NaN instead of None + result = read_json(StringIO("[null]"), dtype=dtype) + expected = DataFrame([np.nan]) + + tm.assert_frame_equal(result, expected) + + @pytest.mark.parametrize("inf", [np.inf, -np.inf]) + @pytest.mark.parametrize("dtype", [True, False]) + def test_frame_infinity(self, inf, dtype): + # infinities get mapped to nulls which get mapped to NaNs during + # deserialisation + df = DataFrame([[1, 2], [4, 5, 6]]) + df.loc[0, 2] = inf + + data = StringIO(df.to_json()) + result = read_json(data, dtype=dtype) + assert np.isnan(result.iloc[0, 2]) + + @pytest.mark.skipif(not IS64, reason="not compliant on 32-bit, xref #15865") + @pytest.mark.parametrize( + "value,precision,expected_val", + [ + (0.95, 1, 1.0), + (1.95, 1, 2.0), + (-1.95, 1, -2.0), + (0.995, 2, 1.0), + (0.9995, 3, 1.0), + (0.99999999999999944, 15, 1.0), + ], + ) + def test_frame_to_json_float_precision(self, value, precision, expected_val): + df = DataFrame([{"a_float": value}]) + encoded = df.to_json(double_precision=precision) + assert encoded == f'{{"a_float":{{"0":{expected_val}}}}}' + + def test_frame_to_json_except(self): + df = DataFrame([1, 2, 3]) + msg = "Invalid value 'garbage' for option 'orient'" + with pytest.raises(ValueError, match=msg): + df.to_json(orient="garbage") + + def test_frame_empty(self): + df = DataFrame(columns=["jim", "joe"]) + assert not df._is_mixed_type + + data = StringIO(df.to_json()) + result = read_json(data, dtype=dict(df.dtypes)) + tm.assert_frame_equal(result, df, check_index_type=False) + + def test_frame_empty_to_json(self): + # GH 7445 + df = DataFrame({"test": []}, index=[]) + result = df.to_json(orient="columns") + expected = '{"test":{}}' + assert result == expected + + def test_frame_empty_mixedtype(self): + # mixed type + df = DataFrame(columns=["jim", "joe"]) + df["joe"] = df["joe"].astype("i8") + assert df._is_mixed_type + data = df.to_json() + tm.assert_frame_equal( + read_json(StringIO(data), dtype=dict(df.dtypes)), + df, + check_index_type=False, + ) + + def test_frame_mixedtype_orient(self): # GH10289 + vals = [ + [10, 1, "foo", 0.1, 0.01], + [20, 2, "bar", 0.2, 0.02], + [30, 3, "baz", 0.3, 0.03], + [40, 4, "qux", 0.4, 0.04], + ] + + df = DataFrame( + vals, index=list("abcd"), columns=["1st", "2nd", "3rd", "4th", "5th"] + ) + + assert df._is_mixed_type + right = df.copy() + + for orient in ["split", "index", "columns"]: + inp = StringIO(df.to_json(orient=orient)) + left = read_json(inp, orient=orient, convert_axes=False) + tm.assert_frame_equal(left, right) + + right.index = RangeIndex(len(df)) + inp = StringIO(df.to_json(orient="records")) + left = read_json(inp, orient="records", convert_axes=False) + tm.assert_frame_equal(left, right) + + right.columns = RangeIndex(df.shape[1]) + inp = StringIO(df.to_json(orient="values")) + left = read_json(inp, orient="values", convert_axes=False) + tm.assert_frame_equal(left, right) + + def test_v12_compat(self, datapath): + dti = date_range("2000-01-03", "2000-01-07") + # freq doesn't roundtrip + dti = DatetimeIndex(np.asarray(dti), freq=None) + df = DataFrame( + [ + [1.56808523, 0.65727391, 1.81021139, -0.17251653], + [-0.2550111, -0.08072427, -0.03202878, -0.17581665], + [1.51493992, 0.11805825, 1.629455, -1.31506612], + [-0.02765498, 0.44679743, 0.33192641, -0.27885413], + [0.05951614, -2.69652057, 1.28163262, 0.34703478], + ], + columns=["A", "B", "C", "D"], + index=dti, + ) + df["date"] = Timestamp("19920106 18:21:32.12").as_unit("ns") + df.iloc[3, df.columns.get_loc("date")] = Timestamp("20130101") + df["modified"] = df["date"] + df.iloc[1, df.columns.get_loc("modified")] = pd.NaT + + dirpath = datapath("io", "json", "data") + v12_json = os.path.join(dirpath, "tsframe_v012.json") + df_unser = read_json(v12_json) + tm.assert_frame_equal(df, df_unser) + + df_iso = df.drop(["modified"], axis=1) + v12_iso_json = os.path.join(dirpath, "tsframe_iso_v012.json") + df_unser_iso = read_json(v12_iso_json) + tm.assert_frame_equal(df_iso, df_unser_iso, check_column_type=False) + + def test_blocks_compat_GH9037(self, using_infer_string): + index = date_range("20000101", periods=10, freq="h") + # freq doesn't round-trip + index = DatetimeIndex(list(index), freq=None) + + df_mixed = DataFrame( + { + "float_1": [ + -0.92077639, + 0.77434435, + 1.25234727, + 0.61485564, + -0.60316077, + 0.24653374, + 0.28668979, + -2.51969012, + 0.95748401, + -1.02970536, + ], + "int_1": [ + 19680418, + 75337055, + 99973684, + 65103179, + 79373900, + 40314334, + 21290235, + 4991321, + 41903419, + 16008365, + ], + "str_1": [ + "78c608f1", + "64a99743", + "13d2ff52", + "ca7f4af2", + "97236474", + "bde7e214", + "1a6bde47", + "b1190be5", + "7a669144", + "8d64d068", + ], + "float_2": [ + -0.0428278, + -1.80872357, + 3.36042349, + -0.7573685, + -0.48217572, + 0.86229683, + 1.08935819, + 0.93898739, + -0.03030452, + 1.43366348, + ], + "str_2": [ + "14f04af9", + "d085da90", + "4bcfac83", + "81504caf", + "2ffef4a9", + "08e2f5c4", + "07e1af03", + "addbd4a7", + "1f6a09ba", + "4bfc4d87", + ], + "int_2": [ + 86967717, + 98098830, + 51927505, + 20372254, + 12601730, + 20884027, + 34193846, + 10561746, + 24867120, + 76131025, + ], + }, + index=index, + ) + + # JSON deserialisation always creates unicode strings + df_mixed.columns = df_mixed.columns.astype( + np.str_ if not using_infer_string else "str" + ) + data = StringIO(df_mixed.to_json(orient="split")) + df_roundtrip = read_json(data, orient="split") + tm.assert_frame_equal( + df_mixed, + df_roundtrip, + check_index_type=True, + check_column_type=True, + by_blocks=True, + check_exact=True, + ) + + def test_frame_nonprintable_bytes(self): + # GH14256: failing column caused segfaults, if it is not the last one + + class BinaryThing: + def __init__(self, hexed) -> None: + self.hexed = hexed + self.binary = bytes.fromhex(hexed) + + def __str__(self) -> str: + return self.hexed + + hexed = "574b4454ba8c5eb4f98a8f45" + binthing = BinaryThing(hexed) + + # verify the proper conversion of printable content + df_printable = DataFrame({"A": [binthing.hexed]}) + assert df_printable.to_json() == f'{{"A":{{"0":"{hexed}"}}}}' + + # check if non-printable content throws appropriate Exception + df_nonprintable = DataFrame({"A": [binthing]}) + msg = "Unsupported UTF-8 sequence length when encoding string" + with pytest.raises(OverflowError, match=msg): + df_nonprintable.to_json() + + # the same with multiple columns threw segfaults + df_mixed = DataFrame({"A": [binthing], "B": [1]}, columns=["A", "B"]) + with pytest.raises(OverflowError, match=msg): + df_mixed.to_json() + + # default_handler should resolve exceptions for non-string types + result = df_nonprintable.to_json(default_handler=str) + expected = f'{{"A":{{"0":"{hexed}"}}}}' + assert result == expected + assert ( + df_mixed.to_json(default_handler=str) + == f'{{"A":{{"0":"{hexed}"}},"B":{{"0":1}}}}' + ) + + def test_label_overflow(self): + # GH14256: buffer length not checked when writing label + result = DataFrame({"bar" * 100000: [1], "foo": [1337]}).to_json() + expected = f'{{"{"bar" * 100000}":{{"0":1}},"foo":{{"0":1337}}}}' + assert result == expected + + def test_series_non_unique_index(self): + s = Series(["a", "b"], index=[1, 1]) + + msg = "Series index must be unique for orient='index'" + with pytest.raises(ValueError, match=msg): + s.to_json(orient="index") + + tm.assert_series_equal( + s, + read_json( + StringIO(s.to_json(orient="split")), orient="split", typ="series" + ), + ) + unserialized = read_json( + StringIO(s.to_json(orient="records")), orient="records", typ="series" + ) + tm.assert_equal(s.values, unserialized.values) + + def test_series_default_orient(self, string_series): + assert string_series.to_json() == string_series.to_json(orient="index") + + def test_series_roundtrip_simple(self, orient, string_series, using_infer_string): + data = StringIO(string_series.to_json(orient=orient)) + result = read_json(data, typ="series", orient=orient) + + expected = string_series + if using_infer_string and orient in ("split", "index", "columns"): + # These schemas don't contain dtypes, so we infer string + expected.index = expected.index.astype("str") + if orient in ("values", "records"): + expected = expected.reset_index(drop=True) + if orient != "split": + expected.name = None + + tm.assert_series_equal(result, expected) + + @pytest.mark.parametrize("dtype", [False, None]) + def test_series_roundtrip_object(self, orient, dtype, object_series): + data = StringIO(object_series.to_json(orient=orient)) + result = read_json(data, typ="series", orient=orient, dtype=dtype) + + expected = object_series + if orient in ("values", "records"): + expected = expected.reset_index(drop=True) + if orient != "split": + expected.name = None + + if using_string_dtype(): + expected = expected.astype("str") + + tm.assert_series_equal(result, expected) + + def test_series_roundtrip_empty(self, orient): + empty_series = Series([], index=[], dtype=np.float64) + data = StringIO(empty_series.to_json(orient=orient)) + result = read_json(data, typ="series", orient=orient) + + expected = empty_series.reset_index(drop=True) + if orient in ("split"): + expected.index = expected.index.astype(np.float64) + + tm.assert_series_equal(result, expected) + + def test_series_roundtrip_timeseries(self, orient, datetime_series): + data = StringIO(datetime_series.to_json(orient=orient)) + result = read_json(data, typ="series", orient=orient) + + expected = datetime_series + if orient in ("values", "records"): + expected = expected.reset_index(drop=True) + if orient != "split": + expected.name = None + + tm.assert_series_equal(result, expected) + + @pytest.mark.parametrize("dtype", [np.float64, int]) + def test_series_roundtrip_numeric(self, orient, dtype): + s = Series(range(6), index=["a", "b", "c", "d", "e", "f"]) + data = StringIO(s.to_json(orient=orient)) + result = read_json(data, typ="series", orient=orient) + + expected = s.copy() + if orient in ("values", "records"): + expected = expected.reset_index(drop=True) + + tm.assert_series_equal(result, expected) + + def test_series_to_json_except(self): + s = Series([1, 2, 3]) + msg = "Invalid value 'garbage' for option 'orient'" + with pytest.raises(ValueError, match=msg): + s.to_json(orient="garbage") + + def test_series_from_json_precise_float(self): + s = Series([4.56, 4.56, 4.56]) + result = read_json(StringIO(s.to_json()), typ="series", precise_float=True) + tm.assert_series_equal(result, s, check_index_type=False) + + def test_series_with_dtype(self): + # GH 21986 + s = Series([4.56, 4.56, 4.56]) + result = read_json(StringIO(s.to_json()), typ="series", dtype=np.int64) + expected = Series([4] * 3) + tm.assert_series_equal(result, expected) + + @pytest.mark.parametrize( + "dtype,expected", + [ + (True, Series(["2000-01-01"], dtype="datetime64[ns]")), + (False, Series([946684800000])), + ], + ) + def test_series_with_dtype_datetime(self, dtype, expected): + s = Series(["2000-01-01"], dtype="datetime64[ns]") + data = StringIO(s.to_json()) + result = read_json(data, typ="series", dtype=dtype) + tm.assert_series_equal(result, expected) + + def test_frame_from_json_precise_float(self): + df = DataFrame([[4.56, 4.56, 4.56], [4.56, 4.56, 4.56]]) + result = read_json(StringIO(df.to_json()), precise_float=True) + tm.assert_frame_equal(result, df) + + def test_typ(self): + s = Series(range(6), index=["a", "b", "c", "d", "e", "f"], dtype="int64") + result = read_json(StringIO(s.to_json()), typ=None) + tm.assert_series_equal(result, s) + + def test_reconstruction_index(self): + df = DataFrame([[1, 2, 3], [4, 5, 6]]) + result = read_json(StringIO(df.to_json())) + tm.assert_frame_equal(result, df) + + df = DataFrame({"a": [1, 2, 3], "b": [4, 5, 6]}, index=["A", "B", "C"]) + result = read_json(StringIO(df.to_json())) + tm.assert_frame_equal(result, df) + + def test_path(self, float_frame, int_frame, datetime_frame): + with tm.ensure_clean("test.json") as path: + for df in [float_frame, int_frame, datetime_frame]: + df.to_json(path) + read_json(path) + + def test_axis_dates(self, datetime_series, datetime_frame): + # frame + json = StringIO(datetime_frame.to_json()) + result = read_json(json) + tm.assert_frame_equal(result, datetime_frame) + + # series + json = StringIO(datetime_series.to_json()) + result = read_json(json, typ="series") + tm.assert_series_equal(result, datetime_series, check_names=False) + assert result.name is None + + def test_convert_dates(self, datetime_series, datetime_frame): + # frame + df = datetime_frame + df["date"] = Timestamp("20130101").as_unit("ns") + + json = StringIO(df.to_json()) + result = read_json(json) + tm.assert_frame_equal(result, df) + + df["foo"] = 1.0 + json = StringIO(df.to_json(date_unit="ns")) + + result = read_json(json, convert_dates=False) + expected = df.copy() + expected["date"] = expected["date"].values.view("i8") + expected["foo"] = expected["foo"].astype("int64") + tm.assert_frame_equal(result, expected) + + # series + ts = Series(Timestamp("20130101").as_unit("ns"), index=datetime_series.index) + json = StringIO(ts.to_json()) + result = read_json(json, typ="series") + tm.assert_series_equal(result, ts) + + @pytest.mark.parametrize("date_format", ["epoch", "iso"]) + @pytest.mark.parametrize("as_object", [True, False]) + @pytest.mark.parametrize("date_typ", [datetime.date, datetime.datetime, Timestamp]) + def test_date_index_and_values(self, date_format, as_object, date_typ): + data = [date_typ(year=2020, month=1, day=1), pd.NaT] + if as_object: + data.append("a") + + ser = Series(data, index=data) + result = ser.to_json(date_format=date_format) + + if date_format == "epoch": + expected = '{"1577836800000":1577836800000,"null":null}' + else: + expected = ( + '{"2020-01-01T00:00:00.000":"2020-01-01T00:00:00.000","null":null}' + ) + + if as_object: + expected = expected.replace("}", ',"a":"a"}') + + assert result == expected + + @pytest.mark.parametrize( + "infer_word", + [ + "trade_time", + "date", + "datetime", + "sold_at", + "modified", + "timestamp", + "timestamps", + ], + ) + def test_convert_dates_infer(self, infer_word): + # GH10747 + + data = [{"id": 1, infer_word: 1036713600000}, {"id": 2}] + expected = DataFrame( + [[1, Timestamp("2002-11-08")], [2, pd.NaT]], columns=["id", infer_word] + ) + + result = read_json(StringIO(ujson_dumps(data)))[["id", infer_word]] + tm.assert_frame_equal(result, expected) + + @pytest.mark.parametrize( + "date,date_unit", + [ + ("20130101 20:43:42.123", None), + ("20130101 20:43:42", "s"), + ("20130101 20:43:42.123", "ms"), + ("20130101 20:43:42.123456", "us"), + ("20130101 20:43:42.123456789", "ns"), + ], + ) + def test_date_format_frame(self, date, date_unit, datetime_frame): + df = datetime_frame + + df["date"] = Timestamp(date).as_unit("ns") + df.iloc[1, df.columns.get_loc("date")] = pd.NaT + df.iloc[5, df.columns.get_loc("date")] = pd.NaT + if date_unit: + json = df.to_json(date_format="iso", date_unit=date_unit) + else: + json = df.to_json(date_format="iso") + + result = read_json(StringIO(json)) + expected = df.copy() + tm.assert_frame_equal(result, expected) + + def test_date_format_frame_raises(self, datetime_frame): + df = datetime_frame + msg = "Invalid value 'foo' for option 'date_unit'" + with pytest.raises(ValueError, match=msg): + df.to_json(date_format="iso", date_unit="foo") + + @pytest.mark.parametrize( + "date,date_unit", + [ + ("20130101 20:43:42.123", None), + ("20130101 20:43:42", "s"), + ("20130101 20:43:42.123", "ms"), + ("20130101 20:43:42.123456", "us"), + ("20130101 20:43:42.123456789", "ns"), + ], + ) + def test_date_format_series(self, date, date_unit, datetime_series): + ts = Series(Timestamp(date).as_unit("ns"), index=datetime_series.index) + ts.iloc[1] = pd.NaT + ts.iloc[5] = pd.NaT + if date_unit: + json = ts.to_json(date_format="iso", date_unit=date_unit) + else: + json = ts.to_json(date_format="iso") + + result = read_json(StringIO(json), typ="series") + expected = ts.copy() + tm.assert_series_equal(result, expected) + + def test_date_format_series_raises(self, datetime_series): + ts = Series(Timestamp("20130101 20:43:42.123"), index=datetime_series.index) + msg = "Invalid value 'foo' for option 'date_unit'" + with pytest.raises(ValueError, match=msg): + ts.to_json(date_format="iso", date_unit="foo") + + @pytest.mark.parametrize("unit", ["s", "ms", "us", "ns"]) + def test_date_unit(self, unit, datetime_frame): + df = datetime_frame + df["date"] = Timestamp("20130101 20:43:42").as_unit("ns") + dl = df.columns.get_loc("date") + df.iloc[1, dl] = Timestamp("19710101 20:43:42") + df.iloc[2, dl] = Timestamp("21460101 20:43:42") + df.iloc[4, dl] = pd.NaT + + json = df.to_json(date_format="epoch", date_unit=unit) + + # force date unit + result = read_json(StringIO(json), date_unit=unit) + tm.assert_frame_equal(result, df) + + # detect date unit + result = read_json(StringIO(json), date_unit=None) + tm.assert_frame_equal(result, df) + + @pytest.mark.parametrize("unit", ["s", "ms", "us"]) + def test_iso_non_nano_datetimes(self, unit): + # Test that numpy datetimes + # in an Index or a column with non-nano resolution can be serialized + # correctly + # GH53686 + index = DatetimeIndex( + [np.datetime64("2023-01-01T11:22:33.123456", unit)], + dtype=f"datetime64[{unit}]", + ) + df = DataFrame( + { + "date": Series( + [np.datetime64("2022-01-01T11:22:33.123456", unit)], + dtype=f"datetime64[{unit}]", + index=index, + ), + "date_obj": Series( + [np.datetime64("2023-01-01T11:22:33.123456", unit)], + dtype=object, + index=index, + ), + }, + ) + + buf = StringIO() + df.to_json(buf, date_format="iso", date_unit=unit) + buf.seek(0) + + # read_json always reads datetimes in nanosecond resolution + # TODO: check_dtype/check_index_type should be removable + # once read_json gets non-nano support + tm.assert_frame_equal( + read_json(buf, convert_dates=["date", "date_obj"]), + df, + check_index_type=False, + check_dtype=False, + ) + + def test_weird_nested_json(self): + # this used to core dump the parser + s = r"""{ + "status": "success", + "data": { + "posts": [ + { + "id": 1, + "title": "A blog post", + "body": "Some useful content" + }, + { + "id": 2, + "title": "Another blog post", + "body": "More content" + } + ] + } + }""" + read_json(StringIO(s)) + + def test_doc_example(self): + dfj2 = DataFrame( + np.random.default_rng(2).standard_normal((5, 2)), columns=list("AB") + ) + dfj2["date"] = Timestamp("20130101") + dfj2["ints"] = range(5) + dfj2["bools"] = True + dfj2.index = date_range("20130101", periods=5) + + json = StringIO(dfj2.to_json()) + result = read_json(json, dtype={"ints": np.int64, "bools": np.bool_}) + tm.assert_frame_equal(result, result) + + def test_round_trip_exception(self, datapath): + # GH 3867 + path = datapath("io", "json", "data", "teams.csv") + df = pd.read_csv(path) + s = df.to_json() + + result = read_json(StringIO(s)) + res = result.reindex(index=df.index, columns=df.columns) + msg = "The 'downcast' keyword in fillna is deprecated" + with tm.assert_produces_warning(FutureWarning, match=msg): + res = res.fillna(np.nan, downcast=False) + tm.assert_frame_equal(res, df) + + @pytest.mark.network + @pytest.mark.single_cpu + @pytest.mark.parametrize( + "field,dtype", + [ + ["created_at", pd.DatetimeTZDtype(tz="UTC")], + ["closed_at", "datetime64[ns]"], + ["updated_at", pd.DatetimeTZDtype(tz="UTC")], + ], + ) + def test_url(self, field, dtype, httpserver): + data = '{"created_at": ["2023-06-23T18:21:36Z"], "closed_at": ["2023-06-23T18:21:36"], "updated_at": ["2023-06-23T18:21:36Z"]}\n' # noqa: E501 + httpserver.serve_content(content=data) + result = read_json(httpserver.url, convert_dates=True) + assert result[field].dtype == dtype + + def test_timedelta(self): + converter = lambda x: pd.to_timedelta(x, unit="ms") + + ser = Series([timedelta(23), timedelta(seconds=5)]) + assert ser.dtype == "timedelta64[ns]" + + result = read_json(StringIO(ser.to_json()), typ="series").apply(converter) + tm.assert_series_equal(result, ser) + + ser = Series([timedelta(23), timedelta(seconds=5)], index=Index([0, 1])) + assert ser.dtype == "timedelta64[ns]" + result = read_json(StringIO(ser.to_json()), typ="series").apply(converter) + tm.assert_series_equal(result, ser) + + frame = DataFrame([timedelta(23), timedelta(seconds=5)]) + assert frame[0].dtype == "timedelta64[ns]" + tm.assert_frame_equal( + frame, read_json(StringIO(frame.to_json())).apply(converter) + ) + + def test_timedelta2(self): + frame = DataFrame( + { + "a": [timedelta(days=23), timedelta(seconds=5)], + "b": [1, 2], + "c": date_range(start="20130101", periods=2), + } + ) + data = StringIO(frame.to_json(date_unit="ns")) + result = read_json(data) + result["a"] = pd.to_timedelta(result.a, unit="ns") + result["c"] = pd.to_datetime(result.c) + tm.assert_frame_equal(frame, result) + + def test_mixed_timedelta_datetime(self): + td = timedelta(23) + ts = Timestamp("20130101") + frame = DataFrame({"a": [td, ts]}, dtype=object) + + expected = DataFrame( + {"a": [pd.Timedelta(td).as_unit("ns")._value, ts.as_unit("ns")._value]} + ) + data = StringIO(frame.to_json(date_unit="ns")) + result = read_json(data, dtype={"a": "int64"}) + tm.assert_frame_equal(result, expected, check_index_type=False) + + @pytest.mark.parametrize("as_object", [True, False]) + @pytest.mark.parametrize("date_format", ["iso", "epoch"]) + @pytest.mark.parametrize("timedelta_typ", [pd.Timedelta, timedelta]) + def test_timedelta_to_json(self, as_object, date_format, timedelta_typ): + # GH28156: to_json not correctly formatting Timedelta + data = [timedelta_typ(days=1), timedelta_typ(days=2), pd.NaT] + if as_object: + data.append("a") + + ser = Series(data, index=data) + if date_format == "iso": + expected = ( + '{"P1DT0H0M0S":"P1DT0H0M0S","P2DT0H0M0S":"P2DT0H0M0S","null":null}' + ) + else: + expected = '{"86400000":86400000,"172800000":172800000,"null":null}' + + if as_object: + expected = expected.replace("}", ',"a":"a"}') + + result = ser.to_json(date_format=date_format) + assert result == expected + + @pytest.mark.parametrize("as_object", [True, False]) + @pytest.mark.parametrize("timedelta_typ", [pd.Timedelta, timedelta]) + def test_timedelta_to_json_fractional_precision(self, as_object, timedelta_typ): + data = [timedelta_typ(milliseconds=42)] + ser = Series(data, index=data) + if as_object: + ser = ser.astype(object) + + result = ser.to_json() + expected = '{"42":42}' + assert result == expected + + def test_default_handler(self): + value = object() + frame = DataFrame({"a": [7, value]}) + expected = DataFrame({"a": [7, str(value)]}) + result = read_json(StringIO(frame.to_json(default_handler=str))) + tm.assert_frame_equal(expected, result, check_index_type=False) + + def test_default_handler_indirect(self): + def default(obj): + if isinstance(obj, complex): + return [("mathjs", "Complex"), ("re", obj.real), ("im", obj.imag)] + return str(obj) + + df_list = [ + 9, + DataFrame( + {"a": [1, "STR", complex(4, -5)], "b": [float("nan"), None, "N/A"]}, + columns=["a", "b"], + ), + ] + expected = ( + '[9,[[1,null],["STR",null],[[["mathjs","Complex"],' + '["re",4.0],["im",-5.0]],"N\\/A"]]]' + ) + assert ( + ujson_dumps(df_list, default_handler=default, orient="values") == expected + ) + + def test_default_handler_numpy_unsupported_dtype(self): + # GH12554 to_json raises 'Unhandled numpy dtype 15' + df = DataFrame( + {"a": [1, 2.3, complex(4, -5)], "b": [float("nan"), None, complex(1.2, 0)]}, + columns=["a", "b"], + ) + expected = ( + '[["(1+0j)","(nan+0j)"],' + '["(2.3+0j)","(nan+0j)"],' + '["(4-5j)","(1.2+0j)"]]' + ) + assert df.to_json(default_handler=str, orient="values") == expected + + def test_default_handler_raises(self): + msg = "raisin" + + def my_handler_raises(obj): + raise TypeError(msg) + + with pytest.raises(TypeError, match=msg): + DataFrame({"a": [1, 2, object()]}).to_json( + default_handler=my_handler_raises + ) + with pytest.raises(TypeError, match=msg): + DataFrame({"a": [1, 2, complex(4, -5)]}).to_json( + default_handler=my_handler_raises + ) + + def test_categorical(self): + # GH4377 df.to_json segfaults with non-ndarray blocks + df = DataFrame({"A": ["a", "b", "c", "a", "b", "b", "a"]}) + df["B"] = df["A"] + expected = df.to_json() + + df["B"] = df["A"].astype("category") + assert expected == df.to_json() + + s = df["A"] + sc = df["B"] + assert s.to_json() == sc.to_json() + + def test_datetime_tz(self): + # GH4377 df.to_json segfaults with non-ndarray blocks + tz_range = date_range("20130101", periods=3, tz="US/Eastern") + tz_naive = tz_range.tz_convert("utc").tz_localize(None) + + df = DataFrame({"A": tz_range, "B": date_range("20130101", periods=3)}) + + df_naive = df.copy() + df_naive["A"] = tz_naive + expected = df_naive.to_json() + assert expected == df.to_json() + + stz = Series(tz_range) + s_naive = Series(tz_naive) + assert stz.to_json() == s_naive.to_json() + + def test_sparse(self): + # GH4377 df.to_json segfaults with non-ndarray blocks + df = DataFrame(np.random.default_rng(2).standard_normal((10, 4))) + df.loc[:8] = np.nan + + sdf = df.astype("Sparse") + expected = df.to_json() + assert expected == sdf.to_json() + + s = Series(np.random.default_rng(2).standard_normal(10)) + s.loc[:8] = np.nan + ss = s.astype("Sparse") + + expected = s.to_json() + assert expected == ss.to_json() + + @pytest.mark.parametrize( + "ts", + [ + Timestamp("2013-01-10 05:00:00Z"), + Timestamp("2013-01-10 00:00:00", tz="US/Eastern"), + Timestamp("2013-01-10 00:00:00-0500"), + ], + ) + def test_tz_is_utc(self, ts): + exp = '"2013-01-10T05:00:00.000Z"' + + assert ujson_dumps(ts, iso_dates=True) == exp + dt = ts.to_pydatetime() + assert ujson_dumps(dt, iso_dates=True) == exp + + def test_tz_is_naive(self): + ts = Timestamp("2013-01-10 05:00:00") + exp = '"2013-01-10T05:00:00.000"' + + assert ujson_dumps(ts, iso_dates=True) == exp + dt = ts.to_pydatetime() + assert ujson_dumps(dt, iso_dates=True) == exp + + @pytest.mark.parametrize( + "tz_range", + [ + date_range("2013-01-01 05:00:00Z", periods=2), + date_range("2013-01-01 00:00:00", periods=2, tz="US/Eastern"), + date_range("2013-01-01 00:00:00-0500", periods=2), + ], + ) + def test_tz_range_is_utc(self, tz_range): + exp = '["2013-01-01T05:00:00.000Z","2013-01-02T05:00:00.000Z"]' + dfexp = ( + '{"DT":{' + '"0":"2013-01-01T05:00:00.000Z",' + '"1":"2013-01-02T05:00:00.000Z"}}' + ) + + assert ujson_dumps(tz_range, iso_dates=True) == exp + dti = DatetimeIndex(tz_range) + # Ensure datetimes in object array are serialized correctly + # in addition to the normal DTI case + assert ujson_dumps(dti, iso_dates=True) == exp + assert ujson_dumps(dti.astype(object), iso_dates=True) == exp + df = DataFrame({"DT": dti}) + result = ujson_dumps(df, iso_dates=True) + assert result == dfexp + assert ujson_dumps(df.astype({"DT": object}), iso_dates=True) + + def test_tz_range_is_naive(self): + dti = date_range("2013-01-01 05:00:00", periods=2) + + exp = '["2013-01-01T05:00:00.000","2013-01-02T05:00:00.000"]' + dfexp = '{"DT":{"0":"2013-01-01T05:00:00.000","1":"2013-01-02T05:00:00.000"}}' + + # Ensure datetimes in object array are serialized correctly + # in addition to the normal DTI case + assert ujson_dumps(dti, iso_dates=True) == exp + assert ujson_dumps(dti.astype(object), iso_dates=True) == exp + df = DataFrame({"DT": dti}) + result = ujson_dumps(df, iso_dates=True) + assert result == dfexp + assert ujson_dumps(df.astype({"DT": object}), iso_dates=True) + + def test_read_inline_jsonl(self): + # GH9180 + + result = read_json(StringIO('{"a": 1, "b": 2}\n{"b":2, "a" :1}\n'), lines=True) + expected = DataFrame([[1, 2], [1, 2]], columns=["a", "b"]) + tm.assert_frame_equal(result, expected) + + @pytest.mark.single_cpu + @td.skip_if_not_us_locale + def test_read_s3_jsonl(self, s3_public_bucket_with_data, s3so): + # GH17200 + + result = read_json( + f"s3n://{s3_public_bucket_with_data.name}/items.jsonl", + lines=True, + storage_options=s3so, + ) + expected = DataFrame([[1, 2], [1, 2]], columns=["a", "b"]) + tm.assert_frame_equal(result, expected) + + def test_read_local_jsonl(self): + # GH17200 + with tm.ensure_clean("tmp_items.json") as path: + with open(path, "w", encoding="utf-8") as infile: + infile.write('{"a": 1, "b": 2}\n{"b":2, "a" :1}\n') + result = read_json(path, lines=True) + expected = DataFrame([[1, 2], [1, 2]], columns=["a", "b"]) + tm.assert_frame_equal(result, expected) + + def test_read_jsonl_unicode_chars(self): + # GH15132: non-ascii unicode characters + # \u201d == RIGHT DOUBLE QUOTATION MARK + + # simulate file handle + json = '{"a": "foo”", "b": "bar"}\n{"a": "foo", "b": "bar"}\n' + json = StringIO(json) + result = read_json(json, lines=True) + expected = DataFrame([["foo\u201d", "bar"], ["foo", "bar"]], columns=["a", "b"]) + tm.assert_frame_equal(result, expected) + + # simulate string + json = StringIO('{"a": "foo”", "b": "bar"}\n{"a": "foo", "b": "bar"}\n') + result = read_json(json, lines=True) + expected = DataFrame([["foo\u201d", "bar"], ["foo", "bar"]], columns=["a", "b"]) + tm.assert_frame_equal(result, expected) + + @pytest.mark.parametrize("bigNum", [sys.maxsize + 1, -(sys.maxsize + 2)]) + def test_to_json_large_numbers(self, bigNum): + # GH34473 + series = Series(bigNum, dtype=object, index=["articleId"]) + json = series.to_json() + expected = '{"articleId":' + str(bigNum) + "}" + assert json == expected + + df = DataFrame(bigNum, dtype=object, index=["articleId"], columns=[0]) + json = df.to_json() + expected = '{"0":{"articleId":' + str(bigNum) + "}}" + assert json == expected + + @pytest.mark.parametrize("bigNum", [-(2**63) - 1, 2**64]) + def test_read_json_large_numbers(self, bigNum): + # GH20599, 26068 + json = StringIO('{"articleId":' + str(bigNum) + "}") + msg = r"Value is too small|Value is too big" + with pytest.raises(ValueError, match=msg): + read_json(json) + + json = StringIO('{"0":{"articleId":' + str(bigNum) + "}}") + with pytest.raises(ValueError, match=msg): + read_json(json) + + def test_read_json_large_numbers2(self): + # GH18842 + json = '{"articleId": "1404366058080022500245"}' + json = StringIO(json) + result = read_json(json, typ="series") + expected = Series(1.404366e21, index=["articleId"]) + tm.assert_series_equal(result, expected) + + json = '{"0": {"articleId": "1404366058080022500245"}}' + json = StringIO(json) + result = read_json(json) + expected = DataFrame(1.404366e21, index=["articleId"], columns=[0]) + tm.assert_frame_equal(result, expected) + + def test_to_jsonl(self): + # GH9180 + df = DataFrame([[1, 2], [1, 2]], columns=["a", "b"]) + result = df.to_json(orient="records", lines=True) + expected = '{"a":1,"b":2}\n{"a":1,"b":2}\n' + assert result == expected + + df = DataFrame([["foo}", "bar"], ['foo"', "bar"]], columns=["a", "b"]) + result = df.to_json(orient="records", lines=True) + expected = '{"a":"foo}","b":"bar"}\n{"a":"foo\\"","b":"bar"}\n' + assert result == expected + tm.assert_frame_equal(read_json(StringIO(result), lines=True), df) + + # GH15096: escaped characters in columns and data + df = DataFrame([["foo\\", "bar"], ['foo"', "bar"]], columns=["a\\", "b"]) + result = df.to_json(orient="records", lines=True) + expected = '{"a\\\\":"foo\\\\","b":"bar"}\n{"a\\\\":"foo\\"","b":"bar"}\n' + assert result == expected + + tm.assert_frame_equal(read_json(StringIO(result), lines=True), df) + + # TODO: there is a near-identical test for pytables; can we share? + @pytest.mark.xfail(reason="GH#13774 encoding kwarg not supported", raises=TypeError) + @pytest.mark.parametrize( + "val", + [ + [b"E\xc9, 17", b"", b"a", b"b", b"c"], + [b"E\xc9, 17", b"a", b"b", b"c"], + [b"EE, 17", b"", b"a", b"b", b"c"], + [b"E\xc9, 17", b"\xf8\xfc", b"a", b"b", b"c"], + [b"", b"a", b"b", b"c"], + [b"\xf8\xfc", b"a", b"b", b"c"], + [b"A\xf8\xfc", b"", b"a", b"b", b"c"], + [np.nan, b"", b"b", b"c"], + [b"A\xf8\xfc", np.nan, b"", b"b", b"c"], + ], + ) + @pytest.mark.parametrize("dtype", ["category", object]) + def test_latin_encoding(self, dtype, val): + # GH 13774 + ser = Series( + [x.decode("latin-1") if isinstance(x, bytes) else x for x in val], + dtype=dtype, + ) + encoding = "latin-1" + with tm.ensure_clean("test.json") as path: + ser.to_json(path, encoding=encoding) + retr = read_json(StringIO(path), encoding=encoding) + tm.assert_series_equal(ser, retr, check_categorical=False) + + def test_data_frame_size_after_to_json(self): + # GH15344 + df = DataFrame({"a": [str(1)]}) + + size_before = df.memory_usage(index=True, deep=True).sum() + df.to_json() + size_after = df.memory_usage(index=True, deep=True).sum() + + assert size_before == size_after + + @pytest.mark.parametrize( + "index", [None, [1, 2], [1.0, 2.0], ["a", "b"], ["1", "2"], ["1.", "2."]] + ) + @pytest.mark.parametrize("columns", [["a", "b"], ["1", "2"], ["1.", "2."]]) + def test_from_json_to_json_table_index_and_columns(self, index, columns): + # GH25433 GH25435 + expected = DataFrame([[1, 2], [3, 4]], index=index, columns=columns) + dfjson = expected.to_json(orient="table") + + result = read_json(StringIO(dfjson), orient="table") + tm.assert_frame_equal(result, expected) + + def test_from_json_to_json_table_dtypes(self): + # GH21345 + expected = DataFrame({"a": [1, 2], "b": [3.0, 4.0], "c": ["5", "6"]}) + dfjson = expected.to_json(orient="table") + result = read_json(StringIO(dfjson), orient="table") + tm.assert_frame_equal(result, expected) + + # TODO: We are casting to string which coerces None to NaN before casting back + # to object, ending up with incorrect na values + @pytest.mark.xfail(using_string_dtype(), reason="incorrect na conversion") + @pytest.mark.parametrize("orient", ["split", "records", "index", "columns"]) + def test_to_json_from_json_columns_dtypes(self, orient): + # GH21892 GH33205 + expected = DataFrame.from_dict( + { + "Integer": Series([1, 2, 3], dtype="int64"), + "Float": Series([None, 2.0, 3.0], dtype="float64"), + "Object": Series([None, "", "c"], dtype="object"), + "Bool": Series([True, False, True], dtype="bool"), + "Category": Series(["a", "b", None], dtype="category"), + "Datetime": Series( + ["2020-01-01", None, "2020-01-03"], dtype="datetime64[ns]" + ), + } + ) + dfjson = expected.to_json(orient=orient) + + result = read_json( + StringIO(dfjson), + orient=orient, + dtype={ + "Integer": "int64", + "Float": "float64", + "Object": "object", + "Bool": "bool", + "Category": "category", + "Datetime": "datetime64[ns]", + }, + ) + tm.assert_frame_equal(result, expected) + + @pytest.mark.parametrize("dtype", [True, {"b": int, "c": int}]) + def test_read_json_table_dtype_raises(self, dtype): + # GH21345 + df = DataFrame({"a": [1, 2], "b": [3.0, 4.0], "c": ["5", "6"]}) + dfjson = df.to_json(orient="table") + msg = "cannot pass both dtype and orient='table'" + with pytest.raises(ValueError, match=msg): + read_json(dfjson, orient="table", dtype=dtype) + + @pytest.mark.parametrize("orient", ["index", "columns", "records", "values"]) + def test_read_json_table_empty_axes_dtype(self, orient): + # GH28558 + + expected = DataFrame() + result = read_json(StringIO("{}"), orient=orient, convert_axes=True) + tm.assert_index_equal(result.index, expected.index) + tm.assert_index_equal(result.columns, expected.columns) + + def test_read_json_table_convert_axes_raises(self): + # GH25433 GH25435 + df = DataFrame([[1, 2], [3, 4]], index=[1.0, 2.0], columns=["1.", "2."]) + dfjson = df.to_json(orient="table") + msg = "cannot pass both convert_axes and orient='table'" + with pytest.raises(ValueError, match=msg): + read_json(dfjson, orient="table", convert_axes=True) + + @pytest.mark.parametrize( + "data, expected", + [ + ( + DataFrame([[1, 2], [4, 5]], columns=["a", "b"]), + {"columns": ["a", "b"], "data": [[1, 2], [4, 5]]}, + ), + ( + DataFrame([[1, 2], [4, 5]], columns=["a", "b"]).rename_axis("foo"), + {"columns": ["a", "b"], "data": [[1, 2], [4, 5]]}, + ), + ( + DataFrame( + [[1, 2], [4, 5]], columns=["a", "b"], index=[["a", "b"], ["c", "d"]] + ), + {"columns": ["a", "b"], "data": [[1, 2], [4, 5]]}, + ), + (Series([1, 2, 3], name="A"), {"name": "A", "data": [1, 2, 3]}), + ( + Series([1, 2, 3], name="A").rename_axis("foo"), + {"name": "A", "data": [1, 2, 3]}, + ), + ( + Series([1, 2], name="A", index=[["a", "b"], ["c", "d"]]), + {"name": "A", "data": [1, 2]}, + ), + ], + ) + def test_index_false_to_json_split(self, data, expected): + # GH 17394 + # Testing index=False in to_json with orient='split' + + result = data.to_json(orient="split", index=False) + result = json.loads(result) + + assert result == expected + + @pytest.mark.parametrize( + "data", + [ + (DataFrame([[1, 2], [4, 5]], columns=["a", "b"])), + (DataFrame([[1, 2], [4, 5]], columns=["a", "b"]).rename_axis("foo")), + ( + DataFrame( + [[1, 2], [4, 5]], columns=["a", "b"], index=[["a", "b"], ["c", "d"]] + ) + ), + (Series([1, 2, 3], name="A")), + (Series([1, 2, 3], name="A").rename_axis("foo")), + (Series([1, 2], name="A", index=[["a", "b"], ["c", "d"]])), + ], + ) + def test_index_false_to_json_table(self, data): + # GH 17394 + # Testing index=False in to_json with orient='table' + + result = data.to_json(orient="table", index=False) + result = json.loads(result) + + expected = { + "schema": pd.io.json.build_table_schema(data, index=False), + "data": DataFrame(data).to_dict(orient="records"), + } + + assert result == expected + + @pytest.mark.parametrize("orient", ["index", "columns"]) + def test_index_false_error_to_json(self, orient): + # GH 17394, 25513 + # Testing error message from to_json with index=False + + df = DataFrame([[1, 2], [4, 5]], columns=["a", "b"]) + + msg = ( + "'index=False' is only valid when 'orient' is 'split', " + "'table', 'records', or 'values'" + ) + with pytest.raises(ValueError, match=msg): + df.to_json(orient=orient, index=False) + + @pytest.mark.parametrize("orient", ["records", "values"]) + def test_index_true_error_to_json(self, orient): + # GH 25513 + # Testing error message from to_json with index=True + + df = DataFrame([[1, 2], [4, 5]], columns=["a", "b"]) + + msg = ( + "'index=True' is only valid when 'orient' is 'split', " + "'table', 'index', or 'columns'" + ) + with pytest.raises(ValueError, match=msg): + df.to_json(orient=orient, index=True) + + @pytest.mark.parametrize("orient", ["split", "table"]) + @pytest.mark.parametrize("index", [True, False]) + def test_index_false_from_json_to_json(self, orient, index): + # GH25170 + # Test index=False in from_json to_json + expected = DataFrame({"a": [1, 2], "b": [3, 4]}) + dfjson = expected.to_json(orient=orient, index=index) + result = read_json(StringIO(dfjson), orient=orient) + tm.assert_frame_equal(result, expected) + + def test_read_timezone_information(self): + # GH 25546 + result = read_json( + StringIO('{"2019-01-01T11:00:00.000Z":88}'), typ="series", orient="index" + ) + exp_dti = DatetimeIndex(["2019-01-01 11:00:00"], dtype="M8[ns, UTC]") + expected = Series([88], index=exp_dti) + tm.assert_series_equal(result, expected) + + @pytest.mark.parametrize( + "url", + [ + "s3://example-fsspec/", + "gcs://another-fsspec/file.json", + "https://example-site.com/data", + "some-protocol://data.txt", + ], + ) + def test_read_json_with_url_value(self, url): + # GH 36271 + result = read_json(StringIO(f'{{"url":{{"0":"{url}"}}}}')) + expected = DataFrame({"url": [url]}) + tm.assert_frame_equal(result, expected) + + @pytest.mark.parametrize( + "compression", + ["", ".gz", ".bz2", ".tar"], + ) + def test_read_json_with_very_long_file_path(self, compression): + # GH 46718 + long_json_path = f'{"a" * 1000}.json{compression}' + with pytest.raises( + FileNotFoundError, match=f"File {long_json_path} does not exist" + ): + # path too long for Windows is handled in file_exists() but raises in + # _get_data_from_filepath() + read_json(long_json_path) + + @pytest.mark.parametrize( + "date_format,key", [("epoch", 86400000), ("iso", "P1DT0H0M0S")] + ) + def test_timedelta_as_label(self, date_format, key): + df = DataFrame([[1]], columns=[pd.Timedelta("1D")]) + expected = f'{{"{key}":{{"0":1}}}}' + result = df.to_json(date_format=date_format) + + assert result == expected + + @pytest.mark.parametrize( + "orient,expected", + [ + ("index", "{\"('a', 'b')\":{\"('c', 'd')\":1}}"), + ("columns", "{\"('c', 'd')\":{\"('a', 'b')\":1}}"), + # TODO: the below have separate encoding procedures + pytest.param( + "split", + "", + marks=pytest.mark.xfail( + reason="Produces JSON but not in a consistent manner" + ), + ), + pytest.param( + "table", + "", + marks=pytest.mark.xfail( + reason="Produces JSON but not in a consistent manner" + ), + ), + ], + ) + def test_tuple_labels(self, orient, expected): + # GH 20500 + df = DataFrame([[1]], index=[("a", "b")], columns=[("c", "d")]) + result = df.to_json(orient=orient) + assert result == expected + + @pytest.mark.parametrize("indent", [1, 2, 4]) + def test_to_json_indent(self, indent): + # GH 12004 + df = DataFrame([["foo", "bar"], ["baz", "qux"]], columns=["a", "b"]) + + result = df.to_json(indent=indent) + spaces = " " * indent + expected = f"""{{ +{spaces}"a":{{ +{spaces}{spaces}"0":"foo", +{spaces}{spaces}"1":"baz" +{spaces}}}, +{spaces}"b":{{ +{spaces}{spaces}"0":"bar", +{spaces}{spaces}"1":"qux" +{spaces}}} +}}""" + + assert result == expected + + @pytest.mark.skipif( + using_string_dtype(), + reason="Adjust expected when infer_string is default, no bug here, " + "just a complicated parametrization", + ) + @pytest.mark.parametrize( + "orient,expected", + [ + ( + "split", + """{ + "columns":[ + "a", + "b" + ], + "index":[ + 0, + 1 + ], + "data":[ + [ + "foo", + "bar" + ], + [ + "baz", + "qux" + ] + ] +}""", + ), + ( + "records", + """[ + { + "a":"foo", + "b":"bar" + }, + { + "a":"baz", + "b":"qux" + } +]""", + ), + ( + "index", + """{ + "0":{ + "a":"foo", + "b":"bar" + }, + "1":{ + "a":"baz", + "b":"qux" + } +}""", + ), + ( + "columns", + """{ + "a":{ + "0":"foo", + "1":"baz" + }, + "b":{ + "0":"bar", + "1":"qux" + } +}""", + ), + ( + "values", + """[ + [ + "foo", + "bar" + ], + [ + "baz", + "qux" + ] +]""", + ), + ( + "table", + """{ + "schema":{ + "fields":[ + { + "name":"index", + "type":"integer" + }, + { + "name":"a", + "type":"string" + }, + { + "name":"b", + "type":"string" + } + ], + "primaryKey":[ + "index" + ], + "pandas_version":"1.4.0" + }, + "data":[ + { + "index":0, + "a":"foo", + "b":"bar" + }, + { + "index":1, + "a":"baz", + "b":"qux" + } + ] +}""", + ), + ], + ) + def test_json_indent_all_orients(self, orient, expected): + # GH 12004 + df = DataFrame([["foo", "bar"], ["baz", "qux"]], columns=["a", "b"]) + result = df.to_json(orient=orient, indent=4) + assert result == expected + + def test_json_negative_indent_raises(self): + with pytest.raises(ValueError, match="must be a nonnegative integer"): + DataFrame().to_json(indent=-1) + + def test_emca_262_nan_inf_support(self): + # GH 12213 + data = StringIO( + '["a", NaN, "NaN", Infinity, "Infinity", -Infinity, "-Infinity"]' + ) + result = read_json(data) + expected = DataFrame( + ["a", None, "NaN", np.inf, "Infinity", -np.inf, "-Infinity"] + ) + tm.assert_frame_equal(result, expected) + + def test_frame_int_overflow(self): + # GH 30320 + encoded_json = json.dumps([{"col": "31900441201190696999"}, {"col": "Text"}]) + expected = DataFrame({"col": ["31900441201190696999", "Text"]}) + result = read_json(StringIO(encoded_json)) + tm.assert_frame_equal(result, expected) + + @pytest.mark.parametrize( + "dataframe,expected", + [ + ( + DataFrame({"x": [1, 2, 3], "y": ["a", "b", "c"]}), + '{"(0, \'x\')":1,"(0, \'y\')":"a","(1, \'x\')":2,' + '"(1, \'y\')":"b","(2, \'x\')":3,"(2, \'y\')":"c"}', + ) + ], + ) + def test_json_multiindex(self, dataframe, expected): + series = dataframe.stack(future_stack=True) + result = series.to_json(orient="index") + assert result == expected + + @pytest.mark.single_cpu + def test_to_s3(self, s3_public_bucket, s3so): + # GH 28375 + mock_bucket_name, target_file = s3_public_bucket.name, "test.json" + df = DataFrame({"x": [1, 2, 3], "y": [2, 4, 6]}) + df.to_json(f"s3://{mock_bucket_name}/{target_file}", storage_options=s3so) + timeout = 5 + while True: + if target_file in (obj.key for obj in s3_public_bucket.objects.all()): + break + time.sleep(0.1) + timeout -= 0.1 + assert timeout > 0, "Timed out waiting for file to appear on moto" + + def test_json_pandas_nulls(self, nulls_fixture, request): + # GH 31615 + if isinstance(nulls_fixture, Decimal): + mark = pytest.mark.xfail(reason="not implemented") + request.applymarker(mark) + + result = DataFrame([[nulls_fixture]]).to_json() + assert result == '{"0":{"0":null}}' + + def test_readjson_bool_series(self): + # GH31464 + result = read_json(StringIO("[true, true, false]"), typ="series") + expected = Series([True, True, False]) + tm.assert_series_equal(result, expected) + + def test_to_json_multiindex_escape(self): + # GH 15273 + df = DataFrame( + True, + index=date_range("2017-01-20", "2017-01-23"), + columns=["foo", "bar"], + ).stack(future_stack=True) + result = df.to_json() + expected = ( + "{\"(Timestamp('2017-01-20 00:00:00'), 'foo')\":true," + "\"(Timestamp('2017-01-20 00:00:00'), 'bar')\":true," + "\"(Timestamp('2017-01-21 00:00:00'), 'foo')\":true," + "\"(Timestamp('2017-01-21 00:00:00'), 'bar')\":true," + "\"(Timestamp('2017-01-22 00:00:00'), 'foo')\":true," + "\"(Timestamp('2017-01-22 00:00:00'), 'bar')\":true," + "\"(Timestamp('2017-01-23 00:00:00'), 'foo')\":true," + "\"(Timestamp('2017-01-23 00:00:00'), 'bar')\":true}" + ) + assert result == expected + + def test_to_json_series_of_objects(self): + class _TestObject: + def __init__(self, a, b, _c, d) -> None: + self.a = a + self.b = b + self._c = _c + self.d = d + + def e(self): + return 5 + + # JSON keys should be all non-callable non-underscore attributes, see GH-42768 + series = Series([_TestObject(a=1, b=2, _c=3, d=4)]) + assert json.loads(series.to_json()) == {"0": {"a": 1, "b": 2, "d": 4}} + + @pytest.mark.parametrize( + "data,expected", + [ + ( + Series({0: -6 + 8j, 1: 0 + 1j, 2: 9 - 5j}), + '{"0":{"imag":8.0,"real":-6.0},' + '"1":{"imag":1.0,"real":0.0},' + '"2":{"imag":-5.0,"real":9.0}}', + ), + ( + Series({0: -9.39 + 0.66j, 1: 3.95 + 9.32j, 2: 4.03 - 0.17j}), + '{"0":{"imag":0.66,"real":-9.39},' + '"1":{"imag":9.32,"real":3.95},' + '"2":{"imag":-0.17,"real":4.03}}', + ), + ( + DataFrame([[-2 + 3j, -1 - 0j], [4 - 3j, -0 - 10j]]), + '{"0":{"0":{"imag":3.0,"real":-2.0},' + '"1":{"imag":-3.0,"real":4.0}},' + '"1":{"0":{"imag":0.0,"real":-1.0},' + '"1":{"imag":-10.0,"real":0.0}}}', + ), + ( + DataFrame( + [[-0.28 + 0.34j, -1.08 - 0.39j], [0.41 - 0.34j, -0.78 - 1.35j]] + ), + '{"0":{"0":{"imag":0.34,"real":-0.28},' + '"1":{"imag":-0.34,"real":0.41}},' + '"1":{"0":{"imag":-0.39,"real":-1.08},' + '"1":{"imag":-1.35,"real":-0.78}}}', + ), + ], + ) + def test_complex_data_tojson(self, data, expected): + # GH41174 + result = data.to_json() + assert result == expected + + def test_json_uint64(self): + # GH21073 + expected = ( + '{"columns":["col1"],"index":[0,1],' + '"data":[[13342205958987758245],[12388075603347835679]]}' + ) + df = DataFrame(data={"col1": [13342205958987758245, 12388075603347835679]}) + result = df.to_json(orient="split") + assert result == expected + + @pytest.mark.xfail(using_string_dtype(), reason="TODO(infer_string)", strict=False) + def test_read_json_dtype_backend( + self, string_storage, dtype_backend, orient, using_infer_string + ): + # GH#50750 + df = DataFrame( + { + "a": Series([1, np.nan, 3], dtype="Int64"), + "b": Series([1, 2, 3], dtype="Int64"), + "c": Series([1.5, np.nan, 2.5], dtype="Float64"), + "d": Series([1.5, 2.0, 2.5], dtype="Float64"), + "e": [True, False, None], + "f": [True, False, True], + "g": ["a", "b", "c"], + "h": ["a", "b", None], + } + ) + + out = df.to_json(orient=orient) + with pd.option_context("mode.string_storage", string_storage): + result = read_json( + StringIO(out), dtype_backend=dtype_backend, orient=orient + ) + + if dtype_backend == "pyarrow": + pa = pytest.importorskip("pyarrow") + string_dtype = pd.ArrowDtype(pa.string()) + else: + string_dtype = pd.StringDtype(string_storage) + + expected = DataFrame( + { + "a": Series([1, np.nan, 3], dtype="Int64"), + "b": Series([1, 2, 3], dtype="Int64"), + "c": Series([1.5, np.nan, 2.5], dtype="Float64"), + "d": Series([1.5, 2.0, 2.5], dtype="Float64"), + "e": Series([True, False, NA], dtype="boolean"), + "f": Series([True, False, True], dtype="boolean"), + "g": Series(["a", "b", "c"], dtype=string_dtype), + "h": Series(["a", "b", None], dtype=string_dtype), + } + ) + + if dtype_backend == "pyarrow": + pa = pytest.importorskip("pyarrow") + from pandas.arrays import ArrowExtensionArray + + expected = DataFrame( + { + col: ArrowExtensionArray(pa.array(expected[col], from_pandas=True)) + for col in expected.columns + } + ) + + if orient == "values": + expected.columns = list(range(8)) + + # the storage of the str columns' Index is also affected by the + # string_storage setting -> ignore that for checking the result + tm.assert_frame_equal(result, expected, check_column_type=False) + + @pytest.mark.parametrize("orient", ["split", "records", "index"]) + def test_read_json_nullable_series(self, string_storage, dtype_backend, orient): + # GH#50750 + pa = pytest.importorskip("pyarrow") + ser = Series([1, np.nan, 3], dtype="Int64") + + out = ser.to_json(orient=orient) + with pd.option_context("mode.string_storage", string_storage): + result = read_json( + StringIO(out), dtype_backend=dtype_backend, orient=orient, typ="series" + ) + + expected = Series([1, np.nan, 3], dtype="Int64") + + if dtype_backend == "pyarrow": + from pandas.arrays import ArrowExtensionArray + + expected = Series(ArrowExtensionArray(pa.array(expected, from_pandas=True))) + + tm.assert_series_equal(result, expected) + + def test_invalid_dtype_backend(self): + msg = ( + "dtype_backend numpy is invalid, only 'numpy_nullable' and " + "'pyarrow' are allowed." + ) + with pytest.raises(ValueError, match=msg): + read_json("test", dtype_backend="numpy") + + +def test_invalid_engine(): + # GH 48893 + ser = Series(range(1)) + out = ser.to_json() + with pytest.raises(ValueError, match="The engine type foo"): + read_json(out, engine="foo") + + +def test_pyarrow_engine_lines_false(): + # GH 48893 + ser = Series(range(1)) + out = ser.to_json() + with pytest.raises(ValueError, match="currently pyarrow engine only supports"): + read_json(out, engine="pyarrow", lines=False) + + +def test_json_roundtrip_string_inference(orient): + df = DataFrame( + [["a", "b"], ["c", "d"]], index=["row 1", "row 2"], columns=["col 1", "col 2"] + ) + out = df.to_json() + with pd.option_context("future.infer_string", True): + result = read_json(StringIO(out)) + dtype = pd.StringDtype(na_value=np.nan) + expected = DataFrame( + [["a", "b"], ["c", "d"]], + dtype=dtype, + index=Index(["row 1", "row 2"], dtype=dtype), + columns=Index(["col 1", "col 2"], dtype=dtype), + ) + tm.assert_frame_equal(result, expected) + + +def test_json_pos_args_deprecation(): + # GH-54229 + df = DataFrame({"a": [1, 2, 3]}) + msg = ( + r"Starting with pandas version 3.0 all arguments of to_json except for the " + r"argument 'path_or_buf' will be keyword-only." + ) + with tm.assert_produces_warning(FutureWarning, match=msg): + buf = BytesIO() + df.to_json(buf, "split") + + +@td.skip_if_no("pyarrow") +def test_to_json_ea_null(): + # GH#57224 + df = DataFrame( + { + "a": Series([1, NA], dtype="int64[pyarrow]"), + "b": Series([2, NA], dtype="Int64"), + } + ) + result = df.to_json(orient="records", lines=True) + expected = """{"a":1,"b":2} +{"a":null,"b":null} +""" + assert result == expected + + +def test_read_json_lines_rangeindex(): + # GH 57429 + data = """ +{"a": 1, "b": 2} +{"a": 3, "b": 4} +""" + result = read_json(StringIO(data), lines=True).index + expected = RangeIndex(2) + tm.assert_index_equal(result, expected, exact=True) diff --git a/shared/package-files/3e/3e400e774a03bde3c1b572fe37432798418298330fdff0f0f98c29c6035f97e9/conftest.py b/shared/package-files/3e/3e400e774a03bde3c1b572fe37432798418298330fdff0f0f98c29c6035f97e9/conftest.py new file mode 100644 index 0000000000000000000000000000000000000000..5e971c66029d5ba90ecaa5eb3437246f1548557a --- /dev/null +++ b/shared/package-files/3e/3e400e774a03bde3c1b572fe37432798418298330fdff0f0f98c29c6035f97e9/conftest.py @@ -0,0 +1,48 @@ +import numpy as np +import pytest + +import pandas as pd +from pandas.core.arrays.floating import ( + Float32Dtype, + Float64Dtype, +) + + +@pytest.fixture(params=[Float32Dtype, Float64Dtype]) +def dtype(request): + """Parametrized fixture returning a float 'dtype'""" + return request.param() + + +@pytest.fixture +def data(dtype): + """Fixture returning 'data' array according to parametrized float 'dtype'""" + return pd.array( + list(np.arange(0.1, 0.9, 0.1)) + + [pd.NA] + + list(np.arange(1, 9.8, 0.1)) + + [pd.NA] + + [9.9, 10.0], + dtype=dtype, + ) + + +@pytest.fixture +def data_missing(dtype): + """ + Fixture returning array with missing data according to parametrized float + 'dtype'. + """ + return pd.array([np.nan, 0.1], dtype=dtype) + + +@pytest.fixture(params=["data", "data_missing"]) +def all_data(request, data, data_missing): + """Parametrized fixture returning 'data' or 'data_missing' float arrays. + + Used to test dtype conversion with and without missing values. + """ + if request.param == "data": + return data + elif request.param == "data_missing": + return data_missing diff --git a/shared/package-files/3e/3e43d3ae9b2b4cb2ffdd5775ec434fd08dcd144ef55e94908b7f071b4f615f1a/test_interval_pyarrow.py b/shared/package-files/3e/3e43d3ae9b2b4cb2ffdd5775ec434fd08dcd144ef55e94908b7f071b4f615f1a/test_interval_pyarrow.py new file mode 100644 index 0000000000000000000000000000000000000000..ef8701be81e2b9248c29fc4e901161fd18d72bbe --- /dev/null +++ b/shared/package-files/3e/3e43d3ae9b2b4cb2ffdd5775ec434fd08dcd144ef55e94908b7f071b4f615f1a/test_interval_pyarrow.py @@ -0,0 +1,160 @@ +import numpy as np +import pytest + +import pandas as pd +import pandas._testing as tm +from pandas.core.arrays import IntervalArray + + +def test_arrow_extension_type(): + pa = pytest.importorskip("pyarrow") + + from pandas.core.arrays.arrow.extension_types import ArrowIntervalType + + p1 = ArrowIntervalType(pa.int64(), "left") + p2 = ArrowIntervalType(pa.int64(), "left") + p3 = ArrowIntervalType(pa.int64(), "right") + + assert p1.closed == "left" + assert p1 == p2 + assert p1 != p3 + assert hash(p1) == hash(p2) + assert hash(p1) != hash(p3) + + +def test_arrow_array(): + pa = pytest.importorskip("pyarrow") + + from pandas.core.arrays.arrow.extension_types import ArrowIntervalType + + intervals = pd.interval_range(1, 5, freq=1).array + + result = pa.array(intervals) + assert isinstance(result.type, ArrowIntervalType) + assert result.type.closed == intervals.closed + assert result.type.subtype == pa.int64() + assert result.storage.field("left").equals(pa.array([1, 2, 3, 4], type="int64")) + assert result.storage.field("right").equals(pa.array([2, 3, 4, 5], type="int64")) + + expected = pa.array([{"left": i, "right": i + 1} for i in range(1, 5)]) + assert result.storage.equals(expected) + + # convert to its storage type + result = pa.array(intervals, type=expected.type) + assert result.equals(expected) + + # unsupported conversions + with pytest.raises(TypeError, match="Not supported to convert IntervalArray"): + pa.array(intervals, type="float64") + + with pytest.raises(TypeError, match="Not supported to convert IntervalArray"): + pa.array(intervals, type=ArrowIntervalType(pa.float64(), "left")) + + +def test_arrow_array_missing(): + pa = pytest.importorskip("pyarrow") + + from pandas.core.arrays.arrow.extension_types import ArrowIntervalType + + arr = IntervalArray.from_breaks([0.0, 1.0, 2.0, 3.0]) + arr[1] = None + + result = pa.array(arr) + assert isinstance(result.type, ArrowIntervalType) + assert result.type.closed == arr.closed + assert result.type.subtype == pa.float64() + + # fields have missing values (not NaN) + left = pa.array([0.0, None, 2.0], type="float64") + right = pa.array([1.0, None, 3.0], type="float64") + assert result.storage.field("left").equals(left) + assert result.storage.field("right").equals(right) + + # structarray itself also has missing values on the array level + vals = [ + {"left": 0.0, "right": 1.0}, + {"left": None, "right": None}, + {"left": 2.0, "right": 3.0}, + ] + expected = pa.StructArray.from_pandas(vals, mask=np.array([False, True, False])) + assert result.storage.equals(expected) + + +@pytest.mark.filterwarnings( + "ignore:Passing a BlockManager to DataFrame:DeprecationWarning" +) +@pytest.mark.parametrize( + "breaks", + [[0.0, 1.0, 2.0, 3.0], pd.date_range("2017", periods=4, freq="D")], + ids=["float", "datetime64[ns]"], +) +def test_arrow_table_roundtrip(breaks): + pa = pytest.importorskip("pyarrow") + + from pandas.core.arrays.arrow.extension_types import ArrowIntervalType + + arr = IntervalArray.from_breaks(breaks) + arr[1] = None + df = pd.DataFrame({"a": arr}) + + table = pa.table(df) + assert isinstance(table.field("a").type, ArrowIntervalType) + result = table.to_pandas() + assert isinstance(result["a"].dtype, pd.IntervalDtype) + tm.assert_frame_equal(result, df) + + table2 = pa.concat_tables([table, table]) + result = table2.to_pandas() + expected = pd.concat([df, df], ignore_index=True) + tm.assert_frame_equal(result, expected) + + # GH#41040 + table = pa.table( + [pa.chunked_array([], type=table.column(0).type)], schema=table.schema + ) + result = table.to_pandas() + tm.assert_frame_equal(result, expected[0:0]) + + +@pytest.mark.filterwarnings( + "ignore:Passing a BlockManager to DataFrame:DeprecationWarning" +) +@pytest.mark.parametrize( + "breaks", + [[0.0, 1.0, 2.0, 3.0], pd.date_range("2017", periods=4, freq="D")], + ids=["float", "datetime64[ns]"], +) +def test_arrow_table_roundtrip_without_metadata(breaks): + pa = pytest.importorskip("pyarrow") + + arr = IntervalArray.from_breaks(breaks) + arr[1] = None + df = pd.DataFrame({"a": arr}) + + table = pa.table(df) + # remove the metadata + table = table.replace_schema_metadata() + assert table.schema.metadata is None + + result = table.to_pandas() + assert isinstance(result["a"].dtype, pd.IntervalDtype) + tm.assert_frame_equal(result, df) + + +def test_from_arrow_from_raw_struct_array(): + # in case pyarrow lost the Interval extension type (eg on parquet roundtrip + # with datetime64[ns] subtype, see GH-45881), still allow conversion + # from arrow to IntervalArray + pa = pytest.importorskip("pyarrow") + + arr = pa.array([{"left": 0, "right": 1}, {"left": 1, "right": 2}]) + dtype = pd.IntervalDtype(np.dtype("int64"), closed="neither") + + result = dtype.__from_arrow__(arr) + expected = IntervalArray.from_breaks( + np.array([0, 1, 2], dtype="int64"), closed="neither" + ) + tm.assert_extension_array_equal(result, expected) + + result = dtype.__from_arrow__(pa.chunked_array([arr])) + tm.assert_extension_array_equal(result, expected) diff --git a/shared/package-files/3e/3e47955ad2dbdfe0aa8d68b57cedbd3826e3e791215ff72184aac276b55eff3b/top_level.txt b/shared/package-files/3e/3e47955ad2dbdfe0aa8d68b57cedbd3826e3e791215ff72184aac276b55eff3b/top_level.txt new file mode 100644 index 0000000000000000000000000000000000000000..7f7afbf3bf54b346092be6a72070fcbd305ead1e --- /dev/null +++ b/shared/package-files/3e/3e47955ad2dbdfe0aa8d68b57cedbd3826e3e791215ff72184aac276b55eff3b/top_level.txt @@ -0,0 +1 @@ +jinja2 diff --git a/shared/package-files/3e/3e4a922f29f04fffde9ae01ef851f0bd7341d68f04f85541540e78d653e41745/_new_zeros_with_same_feature_meta.h b/shared/package-files/3e/3e4a922f29f04fffde9ae01ef851f0bd7341d68f04f85541540e78d653e41745/_new_zeros_with_same_feature_meta.h new file mode 100644 index 0000000000000000000000000000000000000000..9253c827b2076e5ccc78cba6c45b235e89d0672b --- /dev/null +++ b/shared/package-files/3e/3e4a922f29f04fffde9ae01ef851f0bd7341d68f04f85541540e78d653e41745/_new_zeros_with_same_feature_meta.h @@ -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::_new_zeros_with_same_feature_meta(Tensor self, Tensor other, *, int self_num_batch_dims=0) -> Tensor +inline at::Tensor _new_zeros_with_same_feature_meta(const at::Tensor & self, const at::Tensor & other, int64_t self_num_batch_dims=0) { + return at::_ops::_new_zeros_with_same_feature_meta::call(self, other, self_num_batch_dims); +} + +// aten::_new_zeros_with_same_feature_meta.out(Tensor self, Tensor other, *, int self_num_batch_dims=0, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & _new_zeros_with_same_feature_meta_out(at::Tensor & out, const at::Tensor & self, const at::Tensor & other, int64_t self_num_batch_dims=0) { + return at::_ops::_new_zeros_with_same_feature_meta_out::call(self, other, self_num_batch_dims, out); +} +// aten::_new_zeros_with_same_feature_meta.out(Tensor self, Tensor other, *, int self_num_batch_dims=0, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & _new_zeros_with_same_feature_meta_outf(const at::Tensor & self, const at::Tensor & other, int64_t self_num_batch_dims, at::Tensor & out) { + return at::_ops::_new_zeros_with_same_feature_meta_out::call(self, other, self_num_batch_dims, out); +} + +} diff --git a/shared/package-files/3e/3e4a9f5d3fb18069b84aad5b2b2c6d5fb164d64188e16c789add8316ba8e6d13/pycurl.pyi b/shared/package-files/3e/3e4a9f5d3fb18069b84aad5b2b2c6d5fb164d64188e16c789add8316ba8e6d13/pycurl.pyi new file mode 100644 index 0000000000000000000000000000000000000000..ca6538d3274fded11c3a32b0412083dbf0aa7d44 --- /dev/null +++ b/shared/package-files/3e/3e4a9f5d3fb18069b84aad5b2b2c6d5fb164d64188e16c789add8316ba8e6d13/pycurl.pyi @@ -0,0 +1,644 @@ +# TODO(MichalPokorny): more precise types + +from typing import Any, List, Text, Tuple + +GLOBAL_ACK_EINTR: int +GLOBAL_ALL: int +GLOBAL_DEFAULT: int +GLOBAL_NOTHING: int +GLOBAL_SSL: int +GLOBAL_WIN32: int + +def global_init(option: int) -> None: ... +def global_cleanup() -> None: ... + +version: str + +def version_info() -> Tuple[int, str, int, str, int, str, int, str, Tuple[str, ...], Any, int, Any]: ... + +class error(Exception): ... + +class Curl(object): + def close(self) -> None: ... + def setopt(self, option: int, value: Any) -> None: ... + def setopt_string(self, option: int, value: str) -> None: ... + def perform(self) -> None: ... + def perform_rb(self) -> bytes: ... + def perform_rs(self) -> Text: ... + def getinfo(self, info: Any) -> Any: ... + def getinfo_raw(self, info: Any) -> Any: ... + def reset(self) -> None: ... + def unsetopt(self, option: int) -> Any: ... + def pause(self, bitmask: Any) -> Any: ... + def errstr(self) -> str: ... + # TODO(MichalPokorny): wat? + USERPWD: int + +class CurlMulti(object): + def close(self) -> None: ... + def add_handle(self, obj: Curl) -> None: ... + def remove_handle(self, obj: Curl) -> None: ... + def perform(self) -> Tuple[Any, int]: ... + def fdset(self) -> Tuple[List[Any], List[Any], List[Any]]: ... + def select(self, timeout: float = ...) -> int: ... + def info_read(self, max_objects: int = ...) -> Tuple[int, List[Any], List[Any]]: ... + def socket_action(self, sockfd: int, ev_bitmask: int) -> Tuple[int, int]: ... + +class CurlShare(object): + def close(self) -> None: ... + def setopt(self, option: int, value: Any) -> Any: ... + +ACCEPTTIMEOUT_MS: int +ACCEPT_ENCODING: int +ADDRESS_SCOPE: int +APPCONNECT_TIME: int +APPEND: int +AUTOREFERER: int +BUFFERSIZE: int +CAINFO: int +CAPATH: int +CLOSESOCKETFUNCTION: int +COMPILE_LIBCURL_VERSION_NUM: int +COMPILE_PY_VERSION_HEX: int +CONDITION_UNMET: int +CONNECTTIMEOUT: int +CONNECTTIMEOUT_MS: int +CONNECT_ONLY: int +CONNECT_TIME: int +CONNECT_TO: int +CONTENT_LENGTH_DOWNLOAD: int +CONTENT_LENGTH_UPLOAD: int +CONTENT_TYPE: int +COOKIE: int +COOKIEFILE: int +COOKIEJAR: int +COOKIELIST: int +COOKIESESSION: int +COPYPOSTFIELDS: int +CRLF: int +CRLFILE: int +CSELECT_ERR: int +CSELECT_IN: int +CSELECT_OUT: int +CURL_HTTP_VERSION_1_0: int +CURL_HTTP_VERSION_1_1: int +CURL_HTTP_VERSION_2: int +CURL_HTTP_VERSION_2_0: int +CURL_HTTP_VERSION_LAST: int +CURL_HTTP_VERSION_NONE: int +CUSTOMREQUEST: int +DEBUGFUNCTION: int +DEFAULT_PROTOCOL: int +DIRLISTONLY: int +DNS_CACHE_TIMEOUT: int +DNS_SERVERS: int +DNS_USE_GLOBAL_CACHE: int +EFFECTIVE_URL: int +EGDSOCKET: int +ENCODING: int +EXPECT_100_TIMEOUT_MS: int +FAILONERROR: int +FILE: int +FOLLOWLOCATION: int +FORBID_REUSE: int +FORM_BUFFER: int +FORM_BUFFERPTR: int +FORM_CONTENTS: int +FORM_CONTENTTYPE: int +FORM_FILE: int +FORM_FILENAME: int +FRESH_CONNECT: int +FTPAPPEND: int +FTPAUTH_DEFAULT: int +FTPAUTH_SSL: int +FTPAUTH_TLS: int +FTPLISTONLY: int +FTPMETHOD_DEFAULT: int +FTPMETHOD_MULTICWD: int +FTPMETHOD_NOCWD: int +FTPMETHOD_SINGLECWD: int +FTPPORT: int +FTPSSLAUTH: int +FTPSSL_ALL: int +FTPSSL_CONTROL: int +FTPSSL_NONE: int +FTPSSL_TRY: int +FTP_ACCOUNT: int +FTP_ALTERNATIVE_TO_USER: int +FTP_CREATE_MISSING_DIRS: int +FTP_ENTRY_PATH: int +FTP_FILEMETHOD: int +FTP_RESPONSE_TIMEOUT: int +FTP_SKIP_PASV_IP: int +FTP_SSL: int +FTP_SSL_CCC: int +FTP_USE_EPRT: int +FTP_USE_EPSV: int +FTP_USE_PRET: int +GSSAPI_DELEGATION: int +GSSAPI_DELEGATION_FLAG: int +GSSAPI_DELEGATION_NONE: int +GSSAPI_DELEGATION_POLICY_FLAG: int +HEADER: int +HEADERFUNCTION: int +HEADEROPT: int +HEADER_SEPARATE: int +HEADER_SIZE: int +HEADER_UNIFIED: int +HTTP200ALIASES: int +HTTPAUTH: int +HTTPAUTH_ANY: int +HTTPAUTH_ANYSAFE: int +HTTPAUTH_AVAIL: int +HTTPAUTH_BASIC: int +HTTPAUTH_DIGEST: int +HTTPAUTH_DIGEST_IE: int +HTTPAUTH_GSSNEGOTIATE: int +HTTPAUTH_NEGOTIATE: int +HTTPAUTH_NONE: int +HTTPAUTH_NTLM: int +HTTPAUTH_NTLM_WB: int +HTTPAUTH_ONLY: int +HTTPGET: int +HTTPHEADER: int +HTTPPOST: int +HTTPPROXYTUNNEL: int +HTTP_CODE: int +HTTP_CONNECTCODE: int +HTTP_CONTENT_DECODING: int +HTTP_TRANSFER_DECODING: int +HTTP_VERSION: int +IGNORE_CONTENT_LENGTH: int +INFILE: int +INFILESIZE: int +INFILESIZE_LARGE: int +INFOTYPE_DATA_IN: int +INFOTYPE_DATA_OUT: int +INFOTYPE_HEADER_IN: int +INFOTYPE_HEADER_OUT: int +INFOTYPE_SSL_DATA_IN: int +INFOTYPE_SSL_DATA_OUT: int +INFOTYPE_TEXT: int +INFO_CERTINFO: int +INFO_COOKIELIST: int +INFO_FILETIME: int +INFO_HTTP_VERSION: int +INFO_RTSP_CLIENT_CSEQ: int +INFO_RTSP_CSEQ_RECV: int +INFO_RTSP_SERVER_CSEQ: int +INFO_RTSP_SESSION_ID: int +INTERFACE: int +IOCMD_NOP: int +IOCMD_RESTARTREAD: int +IOCTLFUNCTION: int +IOE_FAILRESTART: int +IOE_OK: int +IOE_UNKNOWNCMD: int +IPRESOLVE: int +IPRESOLVE_V4: int +IPRESOLVE_V6: int +IPRESOLVE_WHATEVER: int +ISSUERCERT: int +KEYPASSWD: int +KHMATCH_MISMATCH: int +KHMATCH_MISSING: int +KHMATCH_OK: int +KHSTAT_DEFER: int +KHSTAT_FINE: int +KHSTAT_FINE_ADD_TO_FILE: int +KHSTAT_REJECT: int +KHTYPE_DSS: int +KHTYPE_RSA: int +KHTYPE_RSA1: int +KHTYPE_UNKNOWN: int +KRB4LEVEL: int +KRBLEVEL: int +LASTSOCKET: int +LOCALPORT: int +LOCALPORTRANGE: int +LOCAL_IP: int +LOCAL_PORT: int +LOCK_DATA_COOKIE: int +LOCK_DATA_DNS: int +LOCK_DATA_SSL_SESSION: int +LOGIN_OPTIONS: int +LOW_SPEED_LIMIT: int +LOW_SPEED_TIME: int +MAIL_AUTH: int +MAIL_FROM: int +MAIL_RCPT: int +MAXCONNECTS: int +MAXFILESIZE: int +MAXFILESIZE_LARGE: int +MAXREDIRS: int +MAX_RECV_SPEED_LARGE: int +MAX_SEND_SPEED_LARGE: int +M_CHUNK_LENGTH_PENALTY_SIZE: int +M_CONTENT_LENGTH_PENALTY_SIZE: int +M_MAXCONNECTS: int +M_MAX_HOST_CONNECTIONS: int +M_MAX_PIPELINE_LENGTH: int +M_MAX_TOTAL_CONNECTIONS: int +M_PIPELINING: int +M_PIPELINING_SERVER_BL: int +M_PIPELINING_SITE_BL: int +M_SOCKETFUNCTION: int +M_TIMERFUNCTION: int +NAMELOOKUP_TIME: int +NETRC: int +NETRC_FILE: int +NETRC_IGNORED: int +NETRC_OPTIONAL: int +NETRC_REQUIRED: int +NEW_DIRECTORY_PERMS: int +NEW_FILE_PERMS: int +NOBODY: int +NOPROGRESS: int +NOPROXY: int +NOSIGNAL: int +NUM_CONNECTS: int +OPENSOCKETFUNCTION: int +OPT_CERTINFO: int +OPT_COOKIELIST: int +OPT_FILETIME: int +OPT_RTSP_CLIENT_CSEQ: int +OPT_RTSP_REQUEST: int +OPT_RTSP_SERVER_CSEQ: int +OPT_RTSP_SESSION_ID: int +OPT_RTSP_STREAM_URI: int +OPT_RTSP_TRANSPORT: int +OS_ERRNO: int +PASSWORD: int +PATH_AS_IS: int +PAUSE_ALL: int +PAUSE_CONT: int +PAUSE_RECV: int +PAUSE_SEND: int +PINNEDPUBLICKEY: int +PIPEWAIT: int +PIPE_MULTIPLEX: int +PIPE_NOTHING: int +POLL_IN: int +POLL_INOUT: int +POLL_NONE: int +POLL_OUT: int +POLL_REMOVE: int +PORT: int +POST: int +POST301: int +POSTFIELDS: int +POSTFIELDSIZE: int +POSTFIELDSIZE_LARGE: int +POSTQUOTE: int +POSTREDIR: int +PREQUOTE: int +PRETRANSFER_TIME: int +PRE_PROXY: int +PRIMARY_IP: int +PRIMARY_PORT: int +PROGRESSFUNCTION: int +PROTOCOLS: int +PROTO_ALL: int +PROTO_DICT: int +PROTO_FILE: int +PROTO_FTP: int +PROTO_FTPS: int +PROTO_GOPHER: int +PROTO_HTTP: int +PROTO_HTTPS: int +PROTO_IMAP: int +PROTO_IMAPS: int +PROTO_LDAP: int +PROTO_LDAPS: int +PROTO_POP3: int +PROTO_POP3S: int +PROTO_RTMP: int +PROTO_RTMPE: int +PROTO_RTMPS: int +PROTO_RTMPT: int +PROTO_RTMPTE: int +PROTO_RTMPTS: int +PROTO_RTSP: int +PROTO_SCP: int +PROTO_SFTP: int +PROTO_SMB: int +PROTO_SMBS: int +PROTO_SMTP: int +PROTO_SMTPS: int +PROTO_TELNET: int +PROTO_TFTP: int +PROXY: int +PROXYAUTH: int +PROXYAUTH_AVAIL: int +PROXYHEADER: int +PROXYPASSWORD: int +PROXYPORT: int +PROXYTYPE: int +PROXYTYPE_HTTP: int +PROXYTYPE_HTTP_1_0: int +PROXYTYPE_SOCKS4: int +PROXYTYPE_SOCKS4A: int +PROXYTYPE_SOCKS5: int +PROXYTYPE_SOCKS5_HOSTNAME: int +PROXYUSERNAME: int +PROXYUSERPWD: int +PROXY_CAINFO: int +PROXY_CAPATH: int +PROXY_SERVICE_NAME: int +PROXY_SSLCERT: int +PROXY_SSLCERTTYPE: int +PROXY_SSLKEY: int +PROXY_SSLKEYTYPE: int +PROXY_SSL_VERIFYHOST: int +PROXY_SSL_VERIFYPEER: int +PROXY_TRANSFER_MODE: int +PUT: int +QUOTE: int +RANDOM_FILE: int +RANGE: int +READDATA: int +READFUNCTION: int +READFUNC_ABORT: int +READFUNC_PAUSE: int +REDIRECT_COUNT: int +REDIRECT_TIME: int +REDIRECT_URL: int +REDIR_POST_301: int +REDIR_POST_302: int +REDIR_POST_303: int +REDIR_POST_ALL: int +REDIR_PROTOCOLS: int +REFERER: int +REQUEST_SIZE: int +RESOLVE: int +RESPONSE_CODE: int +RESUME_FROM: int +RESUME_FROM_LARGE: int +RTSPREQ_ANNOUNCE: int +RTSPREQ_DESCRIBE: int +RTSPREQ_GET_PARAMETER: int +RTSPREQ_LAST: int +RTSPREQ_NONE: int +RTSPREQ_OPTIONS: int +RTSPREQ_PAUSE: int +RTSPREQ_PLAY: int +RTSPREQ_RECEIVE: int +RTSPREQ_RECORD: int +RTSPREQ_SETUP: int +RTSPREQ_SET_PARAMETER: int +RTSPREQ_TEARDOWN: int +SASL_IR: int +SEEKFUNCTION: int +SEEKFUNC_CANTSEEK: int +SEEKFUNC_FAIL: int +SEEKFUNC_OK: int +SERVICE_NAME: int +SHARE: int +SH_SHARE: int +SH_UNSHARE: int +SIZE_DOWNLOAD: int +SIZE_UPLOAD: int +SOCKET_BAD: int +SOCKET_TIMEOUT: int +SOCKOPTFUNCTION: int +SOCKOPT_ALREADY_CONNECTED: int +SOCKOPT_ERROR: int +SOCKOPT_OK: int +SOCKS5_GSSAPI_NEC: int +SOCKS5_GSSAPI_SERVICE: int +SOCKTYPE_ACCEPT: int +SOCKTYPE_IPCXN: int +SPEED_DOWNLOAD: int +SPEED_UPLOAD: int +SSH_AUTH_AGENT: int +SSH_AUTH_ANY: int +SSH_AUTH_DEFAULT: int +SSH_AUTH_HOST: int +SSH_AUTH_KEYBOARD: int +SSH_AUTH_NONE: int +SSH_AUTH_PASSWORD: int +SSH_AUTH_PUBLICKEY: int +SSH_AUTH_TYPES: int +SSH_HOST_PUBLIC_KEY_MD5: int +SSH_KEYFUNCTION: int +SSH_KNOWNHOSTS: int +SSH_PRIVATE_KEYFILE: int +SSH_PUBLIC_KEYFILE: int +SSLCERT: int +SSLCERTPASSWD: int +SSLCERTTYPE: int +SSLENGINE: int +SSLENGINE_DEFAULT: int +SSLKEY: int +SSLKEYPASSWD: int +SSLKEYTYPE: int +SSLOPT_ALLOW_BEAST: int +SSLOPT_NO_REVOKE: int +SSLVERSION: int +SSLVERSION_DEFAULT: int +SSLVERSION_SSLv2: int +SSLVERSION_SSLv3: int +SSLVERSION_TLSv1: int +SSLVERSION_TLSv1_0: int +SSLVERSION_TLSv1_1: int +SSLVERSION_TLSv1_2: int +SSLVERSION_MAX_DEFAULT: int +SSL_CIPHER_LIST: int +SSL_ENABLE_ALPN: int +SSL_ENABLE_NPN: int +SSL_ENGINES: int +SSL_FALSESTART: int +SSL_OPTIONS: int +SSL_SESSIONID_CACHE: int +SSL_VERIFYHOST: int +SSL_VERIFYPEER: int +SSL_VERIFYRESULT: int +SSL_VERIFYSTATUS: int +STARTTRANSFER_TIME: int +STDERR: int +TCP_FASTOPEN: int +TCP_KEEPALIVE: int +TCP_KEEPIDLE: int +TCP_KEEPINTVL: int +TCP_NODELAY: int +TELNETOPTIONS: int +TFTP_BLKSIZE: int +TIMECONDITION: int +TIMECONDITION_IFMODSINCE: int +TIMECONDITION_IFUNMODSINCE: int +TIMECONDITION_LASTMOD: int +TIMECONDITION_NONE: int +TIMEOUT: int +TIMEOUT_MS: int +TIMEVALUE: int +TLSAUTH_PASSWORD: int +TLSAUTH_TYPE: int +TLSAUTH_USERNAME: int +TOTAL_TIME: int +TRANSFERTEXT: int +TRANSFER_ENCODING: int +UNIX_SOCKET_PATH: int +UNRESTRICTED_AUTH: int +UPLOAD: int +URL: int +USERAGENT: int +USERNAME: int +USERPWD: int +USESSL_ALL: int +USESSL_CONTROL: int +USESSL_NONE: int +USESSL_TRY: int +USE_SSL: int +VERBOSE: int +VERSION_ASYNCHDNS: int +VERSION_CONV: int +VERSION_CURLDEBUG: int +VERSION_DEBUG: int +VERSION_FIRST: int +VERSION_GSSAPI: int +VERSION_GSSNEGOTIATE: int +VERSION_HTTP2: int +VERSION_IDN: int +VERSION_IPV6: int +VERSION_KERBEROS4: int +VERSION_KERBEROS5: int +VERSION_LARGEFILE: int +VERSION_LIBZ: int +VERSION_NTLM: int +VERSION_NTLM_WB: int +VERSION_PSL: int +VERSION_SPNEGO: int +VERSION_SSL: int +VERSION_SSPI: int +VERSION_TLSAUTH_SRP: int +VERSION_UNIX_SOCKETS: int +WILDCARDMATCH: int +WRITEDATA: int +WRITEFUNCTION: int +WRITEFUNC_PAUSE: int +WRITEHEADER: int +XFERINFOFUNCTION: int +XOAUTH2_BEARER: int + +E_ABORTED_BY_CALLBACK: int +E_AGAIN: int +E_ALREADY_COMPLETE: int +E_BAD_CALLING_ORDER: int +E_BAD_CONTENT_ENCODING: int +E_BAD_DOWNLOAD_RESUME: int +E_BAD_FUNCTION_ARGUMENT: int +E_BAD_PASSWORD_ENTERED: int +E_CALL_MULTI_PERFORM: int +E_CHUNK_FAILED: int +E_CONV_FAILED: int +E_CONV_REQD: int +E_COULDNT_CONNECT: int +E_COULDNT_RESOLVE_HOST: int +E_COULDNT_RESOLVE_PROXY: int +E_FAILED_INIT: int +E_FILESIZE_EXCEEDED: int +E_FILE_COULDNT_READ_FILE: int +E_FTP_ACCEPT_FAILED: int +E_FTP_ACCEPT_TIMEOUT: int +E_FTP_ACCESS_DENIED: int +E_FTP_BAD_DOWNLOAD_RESUME: int +E_FTP_BAD_FILE_LIST: int +E_FTP_CANT_GET_HOST: int +E_FTP_CANT_RECONNECT: int +E_FTP_COULDNT_GET_SIZE: int +E_FTP_COULDNT_RETR_FILE: int +E_FTP_COULDNT_SET_ASCII: int +E_FTP_COULDNT_SET_BINARY: int +E_FTP_COULDNT_SET_TYPE: int +E_FTP_COULDNT_STOR_FILE: int +E_FTP_COULDNT_USE_REST: int +E_FTP_PARTIAL_FILE: int +E_FTP_PORT_FAILED: int +E_FTP_PRET_FAILED: int +E_FTP_QUOTE_ERROR: int +E_FTP_SSL_FAILED: int +E_FTP_USER_PASSWORD_INCORRECT: int +E_FTP_WEIRD_227_FORMAT: int +E_FTP_WEIRD_PASS_REPLY: int +E_FTP_WEIRD_PASV_REPLY: int +E_FTP_WEIRD_SERVER_REPLY: int +E_FTP_WEIRD_USER_REPLY: int +E_FTP_WRITE_ERROR: int +E_FUNCTION_NOT_FOUND: int +E_GOT_NOTHING: int +E_HTTP2: int +E_HTTP_NOT_FOUND: int +E_HTTP_PORT_FAILED: int +E_HTTP_POST_ERROR: int +E_HTTP_RANGE_ERROR: int +E_HTTP_RETURNED_ERROR: int +E_INTERFACE_FAILED: int +E_LDAP_CANNOT_BIND: int +E_LDAP_INVALID_URL: int +E_LDAP_SEARCH_FAILED: int +E_LIBRARY_NOT_FOUND: int +E_LOGIN_DENIED: int +E_MALFORMAT_USER: int +E_MULTI_ADDED_ALREADY: int +E_MULTI_BAD_EASY_HANDLE: int +E_MULTI_BAD_HANDLE: int +E_MULTI_BAD_SOCKET: int +E_MULTI_CALL_MULTI_PERFORM: int +E_MULTI_CALL_MULTI_SOCKET: int +E_MULTI_INTERNAL_ERROR: int +E_MULTI_OK: int +E_MULTI_OUT_OF_MEMORY: int +E_MULTI_UNKNOWN_OPTION: int +E_NOT_BUILT_IN: int +E_NO_CONNECTION_AVAILABLE: int +E_OK: int +E_OPERATION_TIMEDOUT: int +E_OPERATION_TIMEOUTED: int +E_OUT_OF_MEMORY: int +E_PARTIAL_FILE: int +E_PEER_FAILED_VERIFICATION: int +E_QUOTE_ERROR: int +E_RANGE_ERROR: int +E_READ_ERROR: int +E_RECV_ERROR: int +E_REMOTE_ACCESS_DENIED: int +E_REMOTE_DISK_FULL: int +E_REMOTE_FILE_EXISTS: int +E_REMOTE_FILE_NOT_FOUND: int +E_RTSP_CSEQ_ERROR: int +E_RTSP_SESSION_ERROR: int +E_SEND_ERROR: int +E_SEND_FAIL_REWIND: int +E_SHARE_IN_USE: int +E_SSH: int +E_SSL_CACERT: int +E_SSL_CACERT_BADFILE: int +E_SSL_CERTPROBLEM: int +E_SSL_CIPHER: int +E_SSL_CONNECT_ERROR: int +E_SSL_CRL_BADFILE: int +E_SSL_ENGINE_INITFAILED: int +E_SSL_ENGINE_NOTFOUND: int +E_SSL_ENGINE_SETFAILED: int +E_SSL_INVALIDCERTSTATUS: int +E_SSL_ISSUER_ERROR: int +E_SSL_PEER_CERTIFICATE: int +E_SSL_PINNEDPUBKEYNOTMATCH: int +E_SSL_SHUTDOWN_FAILED: int +E_TELNET_OPTION_SYNTAX: int +E_TFTP_DISKFULL: int +E_TFTP_EXISTS: int +E_TFTP_ILLEGAL: int +E_TFTP_NOSUCHUSER: int +E_TFTP_NOTFOUND: int +E_TFTP_PERM: int +E_TFTP_UNKNOWNID: int +E_TOO_MANY_REDIRECTS: int +E_UNKNOWN_OPTION: int +E_UNKNOWN_TELNET_OPTION: int +E_UNSUPPORTED_PROTOCOL: int +E_UPLOAD_FAILED: int +E_URL_MALFORMAT: int +E_URL_MALFORMAT_USER: int +E_USE_SSL_FAILED: int +E_WRITE_ERROR: int diff --git a/shared/package-files/3e/3e4ef3ab9dfc0d2063b5a87ee0030158bb17ee1b174f56f35ff5dcd1f5a5abe7/libavcodec.pc b/shared/package-files/3e/3e4ef3ab9dfc0d2063b5a87ee0030158bb17ee1b174f56f35ff5dcd1f5a5abe7/libavcodec.pc new file mode 100644 index 0000000000000000000000000000000000000000..a00339d19cc60be1b3f3037d9058392ad3a8ce94 --- /dev/null +++ b/shared/package-files/3e/3e4ef3ab9dfc0d2063b5a87ee0030158bb17ee1b174f56f35ff5dcd1f5a5abe7/libavcodec.pc @@ -0,0 +1,14 @@ +prefix=/opt/conda +exec_prefix=${prefix} +libdir=/opt/conda/lib +includedir=/opt/conda/include + +Name: libavcodec +Description: FFmpeg codec library +Version: 58.91.100 +Requires: +Requires.private: libswresample >= 3.7.100, libavutil >= 56.51.100 +Conflicts: +Libs: -L${libdir} -lavcodec +Libs.private: -pthread -liconv -lm -L/opt/conda/lib -lz -lmp3lame -lm -L/opt/conda/lib -lopenh264 +Cflags: -I${includedir} diff --git a/shared/package-files/3e/3e4f5099fe2bfa0efe65013d702b2ef7f05aaa24090d172762524bf38d16790a/_mmio.py b/shared/package-files/3e/3e4f5099fe2bfa0efe65013d702b2ef7f05aaa24090d172762524bf38d16790a/_mmio.py new file mode 100644 index 0000000000000000000000000000000000000000..32db20065d632d582f04addcf766daa4e6b5fd8e --- /dev/null +++ b/shared/package-files/3e/3e4f5099fe2bfa0efe65013d702b2ef7f05aaa24090d172762524bf38d16790a/_mmio.py @@ -0,0 +1,968 @@ +""" + Matrix Market I/O in Python. + See http://math.nist.gov/MatrixMarket/formats.html + for information about the Matrix Market format. +""" +# +# Author: Pearu Peterson +# Created: October, 2004 +# +# References: +# http://math.nist.gov/MatrixMarket/ +# +import os + +import numpy as np +from numpy import (asarray, real, imag, conj, zeros, ndarray, concatenate, + ones, can_cast) + +from scipy.sparse import coo_array, issparse, coo_matrix + +__all__ = ['mminfo', 'mmread', 'mmwrite', 'MMFile'] + + +# ----------------------------------------------------------------------------- +def asstr(s): + if isinstance(s, bytes): + return s.decode('latin1') + return str(s) + + +def mminfo(source): + """ + Return size and storage parameters from Matrix Market file-like 'source'. + + Parameters + ---------- + source : str or file-like + Matrix Market filename (extension .mtx) or open file-like object + + Returns + ------- + rows : int + Number of matrix rows. + cols : int + Number of matrix columns. + entries : int + Number of non-zero entries of a sparse matrix + or rows*cols for a dense matrix. + format : str + Either 'coordinate' or 'array'. + field : str + Either 'real', 'complex', 'pattern', or 'integer'. + symmetry : str + Either 'general', 'symmetric', 'skew-symmetric', or 'hermitian'. + + Examples + -------- + >>> from io import StringIO + >>> from scipy.io import mminfo + + >>> text = '''%%MatrixMarket matrix coordinate real general + ... 5 5 7 + ... 2 3 1.0 + ... 3 4 2.0 + ... 3 5 3.0 + ... 4 1 4.0 + ... 4 2 5.0 + ... 4 3 6.0 + ... 4 4 7.0 + ... ''' + + + ``mminfo(source)`` returns the number of rows, number of columns, + format, field type and symmetry attribute of the source file. + + >>> mminfo(StringIO(text)) + (5, 5, 7, 'coordinate', 'real', 'general') + """ + return MMFile.info(source) + +# ----------------------------------------------------------------------------- + + +def mmread(source, *, spmatrix=True): + """ + Reads the contents of a Matrix Market file-like 'source' into a matrix. + + Parameters + ---------- + source : str or file-like + Matrix Market filename (extensions .mtx, .mtz.gz) + or open file-like object. + spmatrix : bool, optional (default: True) + If ``True``, return sparse ``coo_matrix``. Otherwise return ``coo_array``. + + Returns + ------- + a : ndarray or coo_array or coo_matrix + Dense or sparse array depending on the matrix format in the + Matrix Market file. + + Examples + -------- + >>> from io import StringIO + >>> from scipy.io import mmread + + >>> text = '''%%MatrixMarket matrix coordinate real general + ... 5 5 7 + ... 2 3 1.0 + ... 3 4 2.0 + ... 3 5 3.0 + ... 4 1 4.0 + ... 4 2 5.0 + ... 4 3 6.0 + ... 4 4 7.0 + ... ''' + + ``mmread(source)`` returns the data as sparse matrix in COO format. + + >>> m = mmread(StringIO(text), spmatrix=False) + >>> m + + >>> m.toarray() + array([[0., 0., 0., 0., 0.], + [0., 0., 1., 0., 0.], + [0., 0., 0., 2., 3.], + [4., 5., 6., 7., 0.], + [0., 0., 0., 0., 0.]]) + """ + return MMFile().read(source, spmatrix=spmatrix) + +# ----------------------------------------------------------------------------- + + +def mmwrite(target, a, comment='', field=None, precision=None, symmetry=None): + r""" + Writes the sparse or dense array `a` to Matrix Market file-like `target`. + + Parameters + ---------- + target : str or file-like + Matrix Market filename (extension .mtx) or open file-like object. + a : array like + Sparse or dense 2-D array. + comment : str, optional + Comments to be prepended to the Matrix Market file. + field : None or str, optional + Either 'real', 'complex', 'pattern', or 'integer'. + precision : None or int, optional + Number of digits to display for real or complex values. + symmetry : None or str, optional + Either 'general', 'symmetric', 'skew-symmetric', or 'hermitian'. + If symmetry is None the symmetry type of 'a' is determined by its + values. + + Returns + ------- + None + + Examples + -------- + >>> from io import BytesIO + >>> import numpy as np + >>> from scipy.sparse import coo_array + >>> from scipy.io import mmwrite + + Write a small NumPy array to a matrix market file. The file will be + written in the ``'array'`` format. + + >>> a = np.array([[1.0, 0, 0, 0], [0, 2.5, 0, 6.25]]) + >>> target = BytesIO() + >>> mmwrite(target, a) + >>> print(target.getvalue().decode('latin1')) + %%MatrixMarket matrix array real general + % + 2 4 + 1 + 0 + 0 + 2.5 + 0 + 0 + 0 + 6.25 + + Add a comment to the output file, and set the precision to 3. + + >>> target = BytesIO() + >>> mmwrite(target, a, comment='\n Some test data.\n', precision=3) + >>> print(target.getvalue().decode('latin1')) + %%MatrixMarket matrix array real general + % + % Some test data. + % + 2 4 + 1.00e+00 + 0.00e+00 + 0.00e+00 + 2.50e+00 + 0.00e+00 + 0.00e+00 + 0.00e+00 + 6.25e+00 + + Convert to a sparse matrix before calling ``mmwrite``. This will + result in the output format being ``'coordinate'`` rather than + ``'array'``. + + >>> target = BytesIO() + >>> mmwrite(target, coo_array(a), precision=3) + >>> print(target.getvalue().decode('latin1')) + %%MatrixMarket matrix coordinate real general + % + 2 4 3 + 1 1 1.00e+00 + 2 2 2.50e+00 + 2 4 6.25e+00 + + Write a complex Hermitian array to a matrix market file. Note that + only six values are actually written to the file; the other values + are implied by the symmetry. + + >>> z = np.array([[3, 1+2j, 4-3j], [1-2j, 1, -5j], [4+3j, 5j, 2.5]]) + >>> z + array([[ 3. +0.j, 1. +2.j, 4. -3.j], + [ 1. -2.j, 1. +0.j, -0. -5.j], + [ 4. +3.j, 0. +5.j, 2.5+0.j]]) + + >>> target = BytesIO() + >>> mmwrite(target, z, precision=2) + >>> print(target.getvalue().decode('latin1')) + %%MatrixMarket matrix array complex hermitian + % + 3 3 + 3.0e+00 0.0e+00 + 1.0e+00 -2.0e+00 + 4.0e+00 3.0e+00 + 1.0e+00 0.0e+00 + 0.0e+00 5.0e+00 + 2.5e+00 0.0e+00 + + """ + MMFile().write(target, a, comment, field, precision, symmetry) + + +############################################################################### +class MMFile: + __slots__ = ('_rows', + '_cols', + '_entries', + '_format', + '_field', + '_symmetry') + + @property + def rows(self): + return self._rows + + @property + def cols(self): + return self._cols + + @property + def entries(self): + return self._entries + + @property + def format(self): + return self._format + + @property + def field(self): + return self._field + + @property + def symmetry(self): + return self._symmetry + + @property + def has_symmetry(self): + return self._symmetry in (self.SYMMETRY_SYMMETRIC, + self.SYMMETRY_SKEW_SYMMETRIC, + self.SYMMETRY_HERMITIAN) + + # format values + FORMAT_COORDINATE = 'coordinate' + FORMAT_ARRAY = 'array' + FORMAT_VALUES = (FORMAT_COORDINATE, FORMAT_ARRAY) + + @classmethod + def _validate_format(self, format): + if format not in self.FORMAT_VALUES: + msg = f'unknown format type {format}, must be one of {self.FORMAT_VALUES}' + raise ValueError(msg) + + # field values + FIELD_INTEGER = 'integer' + FIELD_UNSIGNED = 'unsigned-integer' + FIELD_REAL = 'real' + FIELD_COMPLEX = 'complex' + FIELD_PATTERN = 'pattern' + FIELD_VALUES = (FIELD_INTEGER, FIELD_UNSIGNED, FIELD_REAL, FIELD_COMPLEX, + FIELD_PATTERN) + + @classmethod + def _validate_field(self, field): + if field not in self.FIELD_VALUES: + msg = f'unknown field type {field}, must be one of {self.FIELD_VALUES}' + raise ValueError(msg) + + # symmetry values + SYMMETRY_GENERAL = 'general' + SYMMETRY_SYMMETRIC = 'symmetric' + SYMMETRY_SKEW_SYMMETRIC = 'skew-symmetric' + SYMMETRY_HERMITIAN = 'hermitian' + SYMMETRY_VALUES = (SYMMETRY_GENERAL, SYMMETRY_SYMMETRIC, + SYMMETRY_SKEW_SYMMETRIC, SYMMETRY_HERMITIAN) + + @classmethod + def _validate_symmetry(self, symmetry): + if symmetry not in self.SYMMETRY_VALUES: + raise ValueError(f'unknown symmetry type {symmetry}, ' + f'must be one of {self.SYMMETRY_VALUES}') + + DTYPES_BY_FIELD = {FIELD_INTEGER: 'intp', + FIELD_UNSIGNED: 'uint64', + FIELD_REAL: 'd', + FIELD_COMPLEX: 'D', + FIELD_PATTERN: 'd'} + + # ------------------------------------------------------------------------- + @staticmethod + def reader(): + pass + + # ------------------------------------------------------------------------- + @staticmethod + def writer(): + pass + + # ------------------------------------------------------------------------- + @classmethod + def info(self, source): + """ + Return size, storage parameters from Matrix Market file-like 'source'. + + Parameters + ---------- + source : str or file-like + Matrix Market filename (extension .mtx) or open file-like object + + Returns + ------- + rows : int + Number of matrix rows. + cols : int + Number of matrix columns. + entries : int + Number of non-zero entries of a sparse matrix + or rows*cols for a dense matrix. + format : str + Either 'coordinate' or 'array'. + field : str + Either 'real', 'complex', 'pattern', or 'integer'. + symmetry : str + Either 'general', 'symmetric', 'skew-symmetric', or 'hermitian'. + """ + + stream, close_it = self._open(source) + + try: + + # read and validate header line + line = stream.readline() + mmid, matrix, format, field, symmetry = \ + (asstr(part.strip()) for part in line.split()) + if not mmid.startswith('%%MatrixMarket'): + raise ValueError('source is not in Matrix Market format') + if not matrix.lower() == 'matrix': + raise ValueError("Problem reading file header: " + line) + + # http://math.nist.gov/MatrixMarket/formats.html + if format.lower() == 'array': + format = self.FORMAT_ARRAY + elif format.lower() == 'coordinate': + format = self.FORMAT_COORDINATE + + # skip comments + # line.startswith('%') + while line: + if line.lstrip() and line.lstrip()[0] in ['%', 37]: + line = stream.readline() + else: + break + + # skip empty lines + while not line.strip(): + line = stream.readline() + + split_line = line.split() + if format == self.FORMAT_ARRAY: + if not len(split_line) == 2: + raise ValueError("Header line not of length 2: " + + line.decode('ascii')) + rows, cols = map(int, split_line) + entries = rows * cols + else: + if not len(split_line) == 3: + raise ValueError("Header line not of length 3: " + + line.decode('ascii')) + rows, cols, entries = map(int, split_line) + + return (rows, cols, entries, format, field.lower(), + symmetry.lower()) + + finally: + if close_it: + stream.close() + + # ------------------------------------------------------------------------- + @staticmethod + def _open(filespec, mode='rb'): + """ Return an open file stream for reading based on source. + + If source is a file name, open it (after trying to find it with mtx and + gzipped mtx extensions). Otherwise, just return source. + + Parameters + ---------- + filespec : str or file-like + String giving file name or file-like object + mode : str, optional + Mode with which to open file, if `filespec` is a file name. + + Returns + ------- + fobj : file-like + Open file-like object. + close_it : bool + True if the calling function should close this file when done, + false otherwise. + """ + # If 'filespec' is path-like (str, pathlib.Path, os.DirEntry, other class + # implementing a '__fspath__' method), try to convert it to str. If this + # fails by throwing a 'TypeError', assume it's an open file handle and + # return it as-is. + try: + filespec = os.fspath(filespec) + except TypeError: + return filespec, False + + # 'filespec' is definitely a str now + + # open for reading + if mode[0] == 'r': + + # determine filename plus extension + if not os.path.isfile(filespec): + if os.path.isfile(filespec+'.mtx'): + filespec = filespec + '.mtx' + elif os.path.isfile(filespec+'.mtx.gz'): + filespec = filespec + '.mtx.gz' + elif os.path.isfile(filespec+'.mtx.bz2'): + filespec = filespec + '.mtx.bz2' + # open filename + if filespec.endswith('.gz'): + import gzip + stream = gzip.open(filespec, mode) + elif filespec.endswith('.bz2'): + import bz2 + stream = bz2.BZ2File(filespec, 'rb') + else: + stream = open(filespec, mode) + + # open for writing + else: + if filespec[-4:] != '.mtx': + filespec = filespec + '.mtx' + stream = open(filespec, mode) + + return stream, True + + # ------------------------------------------------------------------------- + @staticmethod + def _get_symmetry(a): + m, n = a.shape + if m != n: + return MMFile.SYMMETRY_GENERAL + issymm = True + isskew = True + isherm = a.dtype.char in 'FD' + + # sparse input + if issparse(a): + # check if number of nonzero entries of lower and upper triangle + # matrix are equal + a = a.tocoo() + (row, col) = a.nonzero() + if (row < col).sum() != (row > col).sum(): + return MMFile.SYMMETRY_GENERAL + + # define iterator over symmetric pair entries + a = a.todok() + + def symm_iterator(): + for ((i, j), aij) in a.items(): + if i > j: + aji = a[j, i] + yield (aij, aji, False) + elif i == j: + yield (aij, aij, True) + + # non-sparse input + else: + # define iterator over symmetric pair entries + def symm_iterator(): + for j in range(n): + for i in range(j, n): + aij, aji = a[i][j], a[j][i] + yield (aij, aji, i == j) + + # check for symmetry + # yields aij, aji, is_diagonal + for (aij, aji, is_diagonal) in symm_iterator(): + if isskew and is_diagonal and aij != 0: + isskew = False + else: + if issymm and aij != aji: + issymm = False + with np.errstate(over="ignore"): + # This can give a warning for uint dtypes, so silence that + if isskew and aij != -aji: + isskew = False + if isherm and aij != conj(aji): + isherm = False + if not (issymm or isskew or isherm): + break + + # return symmetry value + if issymm: + return MMFile.SYMMETRY_SYMMETRIC + if isskew: + return MMFile.SYMMETRY_SKEW_SYMMETRIC + if isherm: + return MMFile.SYMMETRY_HERMITIAN + return MMFile.SYMMETRY_GENERAL + + # ------------------------------------------------------------------------- + @staticmethod + def _field_template(field, precision): + return {MMFile.FIELD_REAL: '%%.%ie\n' % precision, + MMFile.FIELD_INTEGER: '%i\n', + MMFile.FIELD_UNSIGNED: '%u\n', + MMFile.FIELD_COMPLEX: '%%.%ie %%.%ie\n' % + (precision, precision) + }.get(field, None) + + # ------------------------------------------------------------------------- + def __init__(self, **kwargs): + self._init_attrs(**kwargs) + + # ------------------------------------------------------------------------- + def read(self, source, *, spmatrix=True): + """ + Reads the contents of a Matrix Market file-like 'source' into a matrix. + + Parameters + ---------- + source : str or file-like + Matrix Market filename (extensions .mtx, .mtz.gz) + or open file object. + spmatrix : bool, optional (default: True) + If ``True``, return sparse ``coo_matrix``. Otherwise return ``coo_array``. + + Returns + ------- + a : ndarray or coo_array or coo_matrix + Dense or sparse array depending on the matrix format in the + Matrix Market file. + """ + stream, close_it = self._open(source) + + try: + self._parse_header(stream) + data = self._parse_body(stream) + + finally: + if close_it: + stream.close() + if spmatrix and isinstance(data, coo_array): + data = coo_matrix(data) + return data + + + # ------------------------------------------------------------------------- + def write(self, target, a, comment='', field=None, precision=None, + symmetry=None): + """ + Writes sparse or dense array `a` to Matrix Market file-like `target`. + + Parameters + ---------- + target : str or file-like + Matrix Market filename (extension .mtx) or open file-like object. + a : array like + Sparse or dense 2-D array. + comment : str, optional + Comments to be prepended to the Matrix Market file. + field : None or str, optional + Either 'real', 'complex', 'pattern', or 'integer'. + precision : None or int, optional + Number of digits to display for real or complex values. + symmetry : None or str, optional + Either 'general', 'symmetric', 'skew-symmetric', or 'hermitian'. + If symmetry is None the symmetry type of 'a' is determined by its + values. + """ + + stream, close_it = self._open(target, 'wb') + + try: + self._write(stream, a, comment, field, precision, symmetry) + + finally: + if close_it: + stream.close() + else: + stream.flush() + + # ------------------------------------------------------------------------- + def _init_attrs(self, **kwargs): + """ + Initialize each attributes with the corresponding keyword arg value + or a default of None + """ + + attrs = self.__class__.__slots__ + public_attrs = [attr[1:] for attr in attrs] + invalid_keys = set(kwargs.keys()) - set(public_attrs) + + if invalid_keys: + raise ValueError(f"found {tuple(invalid_keys)} invalid keyword " + f"arguments, please only use {public_attrs}") + + for attr in attrs: + setattr(self, attr, kwargs.get(attr[1:], None)) + + # ------------------------------------------------------------------------- + def _parse_header(self, stream): + rows, cols, entries, format, field, symmetry = \ + self.__class__.info(stream) + self._init_attrs(rows=rows, cols=cols, entries=entries, format=format, + field=field, symmetry=symmetry) + + # ------------------------------------------------------------------------- + def _parse_body(self, stream): + rows, cols, entries, format, field, symm = (self.rows, self.cols, + self.entries, self.format, + self.field, self.symmetry) + + dtype = self.DTYPES_BY_FIELD.get(field, None) + + has_symmetry = self.has_symmetry + is_integer = field == self.FIELD_INTEGER + is_unsigned_integer = field == self.FIELD_UNSIGNED + is_complex = field == self.FIELD_COMPLEX + is_skew = symm == self.SYMMETRY_SKEW_SYMMETRIC + is_herm = symm == self.SYMMETRY_HERMITIAN + is_pattern = field == self.FIELD_PATTERN + + if format == self.FORMAT_ARRAY: + a = zeros((rows, cols), dtype=dtype) + line = 1 + i, j = 0, 0 + if is_skew: + a[i, j] = 0 + if i < rows - 1: + i += 1 + while line: + line = stream.readline() + # line.startswith('%') + if not line or line[0] in ['%', 37] or not line.strip(): + continue + if is_integer: + aij = int(line) + elif is_unsigned_integer: + aij = int(line) + elif is_complex: + aij = complex(*map(float, line.split())) + else: + aij = float(line) + a[i, j] = aij + if has_symmetry and i != j: + if is_skew: + a[j, i] = -aij + elif is_herm: + a[j, i] = conj(aij) + else: + a[j, i] = aij + if i < rows-1: + i = i + 1 + else: + j = j + 1 + if not has_symmetry: + i = 0 + else: + i = j + if is_skew: + a[i, j] = 0 + if i < rows-1: + i += 1 + + if is_skew: + if not (i in [0, j] and j == cols - 1): + raise ValueError("Parse error, did not read all lines.") + else: + if not (i in [0, j] and j == cols): + raise ValueError("Parse error, did not read all lines.") + + elif format == self.FORMAT_COORDINATE: + # Read sparse COOrdinate format + + if entries == 0: + # empty matrix + return coo_array((rows, cols), dtype=dtype) + + I = zeros(entries, dtype='intc') + J = zeros(entries, dtype='intc') + if is_pattern: + V = ones(entries, dtype='int8') + elif is_integer: + V = zeros(entries, dtype='intp') + elif is_unsigned_integer: + V = zeros(entries, dtype='uint64') + elif is_complex: + V = zeros(entries, dtype='complex') + else: + V = zeros(entries, dtype='float') + + entry_number = 0 + for line in stream: + # line.startswith('%') + if not line or line[0] in ['%', 37] or not line.strip(): + continue + + if entry_number+1 > entries: + raise ValueError("'entries' in header is smaller than " + "number of entries") + l = line.split() + I[entry_number], J[entry_number] = map(int, l[:2]) + + if not is_pattern: + if is_integer: + V[entry_number] = int(l[2]) + elif is_unsigned_integer: + V[entry_number] = int(l[2]) + elif is_complex: + V[entry_number] = complex(*map(float, l[2:])) + else: + V[entry_number] = float(l[2]) + entry_number += 1 + if entry_number < entries: + raise ValueError("'entries' in header is larger than " + "number of entries") + + I -= 1 # adjust indices (base 1 -> base 0) + J -= 1 + + if has_symmetry: + mask = (I != J) # off diagonal mask + od_I = I[mask] + od_J = J[mask] + od_V = V[mask] + + I = concatenate((I, od_J)) + J = concatenate((J, od_I)) + + if is_skew: + od_V *= -1 + elif is_herm: + od_V = od_V.conjugate() + + V = concatenate((V, od_V)) + + a = coo_array((V, (I, J)), shape=(rows, cols), dtype=dtype) + else: + raise NotImplementedError(format) + + return a + + # ------------------------------------------------------------------------ + def _write(self, stream, a, comment='', field=None, precision=None, + symmetry=None): + if isinstance(a, list) or isinstance(a, ndarray) or \ + isinstance(a, tuple) or hasattr(a, '__array__'): + rep = self.FORMAT_ARRAY + a = asarray(a) + if len(a.shape) != 2: + raise ValueError('Expected 2 dimensional array') + rows, cols = a.shape + + if field is not None: + + if field == self.FIELD_INTEGER: + if not can_cast(a.dtype, 'intp'): + raise OverflowError("mmwrite does not support integer " + "dtypes larger than native 'intp'.") + a = a.astype('intp') + elif field == self.FIELD_REAL: + if a.dtype.char not in 'fd': + a = a.astype('d') + elif field == self.FIELD_COMPLEX: + if a.dtype.char not in 'FD': + a = a.astype('D') + + else: + if not issparse(a): + raise ValueError(f'unknown matrix type: {type(a)}') + + rep = 'coordinate' + rows, cols = a.shape + + typecode = a.dtype.char + + if precision is None: + if typecode in 'fF': + precision = 8 + else: + precision = 16 + if field is None: + kind = a.dtype.kind + if kind == 'i': + if not can_cast(a.dtype, 'intp'): + raise OverflowError("mmwrite does not support integer " + "dtypes larger than native 'intp'.") + field = 'integer' + elif kind == 'f': + field = 'real' + elif kind == 'c': + field = 'complex' + elif kind == 'u': + field = 'unsigned-integer' + else: + raise TypeError('unexpected dtype kind ' + kind) + + if symmetry is None: + symmetry = self._get_symmetry(a) + + # validate rep, field, and symmetry + self.__class__._validate_format(rep) + self.__class__._validate_field(field) + self.__class__._validate_symmetry(symmetry) + + # write initial header line + data = f'%%MatrixMarket matrix {rep} {field} {symmetry}\n' + stream.write(data.encode('latin1')) + + # write comments + for line in comment.split('\n'): + data = f'%{line}\n' + stream.write(data.encode('latin1')) + + template = self._field_template(field, precision) + # write dense format + if rep == self.FORMAT_ARRAY: + # write shape spec + data = '%i %i\n' % (rows, cols) + stream.write(data.encode('latin1')) + + if field in (self.FIELD_INTEGER, self.FIELD_REAL, + self.FIELD_UNSIGNED): + if symmetry == self.SYMMETRY_GENERAL: + for j in range(cols): + for i in range(rows): + data = template % a[i, j] + stream.write(data.encode('latin1')) + + elif symmetry == self.SYMMETRY_SKEW_SYMMETRIC: + for j in range(cols): + for i in range(j + 1, rows): + data = template % a[i, j] + stream.write(data.encode('latin1')) + + else: + for j in range(cols): + for i in range(j, rows): + data = template % a[i, j] + stream.write(data.encode('latin1')) + + elif field == self.FIELD_COMPLEX: + + if symmetry == self.SYMMETRY_GENERAL: + for j in range(cols): + for i in range(rows): + aij = a[i, j] + data = template % (real(aij), imag(aij)) + stream.write(data.encode('latin1')) + else: + for j in range(cols): + for i in range(j, rows): + aij = a[i, j] + data = template % (real(aij), imag(aij)) + stream.write(data.encode('latin1')) + + elif field == self.FIELD_PATTERN: + raise ValueError('pattern type inconsisted with dense format') + + else: + raise TypeError(f'Unknown field type {field}') + + # write sparse format + else: + coo = a.tocoo() # convert to COOrdinate format + + # if symmetry format used, remove values above main diagonal + if symmetry != self.SYMMETRY_GENERAL: + lower_triangle_mask = coo.row >= coo.col + coo = coo_array((coo.data[lower_triangle_mask], + (coo.row[lower_triangle_mask], + coo.col[lower_triangle_mask])), + shape=coo.shape) + + # write shape spec + data = '%i %i %i\n' % (rows, cols, coo.nnz) + stream.write(data.encode('latin1')) + + template = self._field_template(field, precision-1) + + if field == self.FIELD_PATTERN: + for r, c in zip(coo.row+1, coo.col+1): + data = "%i %i\n" % (r, c) + stream.write(data.encode('latin1')) + elif field in (self.FIELD_INTEGER, self.FIELD_REAL, + self.FIELD_UNSIGNED): + for r, c, d in zip(coo.row+1, coo.col+1, coo.data): + data = ("%i %i " % (r, c)) + (template % d) + stream.write(data.encode('latin1')) + elif field == self.FIELD_COMPLEX: + for r, c, d in zip(coo.row+1, coo.col+1, coo.data): + data = ("%i %i " % (r, c)) + (template % (d.real, d.imag)) + stream.write(data.encode('latin1')) + else: + raise TypeError(f'Unknown field type {field}') + + +def _is_fromfile_compatible(stream): + """ + Check whether `stream` is compatible with numpy.fromfile. + + Passing a gzipped file object to ``fromfile/fromstring`` doesn't work with + Python 3. + """ + + bad_cls = [] + try: + import gzip + bad_cls.append(gzip.GzipFile) + except ImportError: + pass + try: + import bz2 + bad_cls.append(bz2.BZ2File) + except ImportError: + pass + + bad_cls = tuple(bad_cls) + return not isinstance(stream, bad_cls) diff --git a/shared/package-files/3e/3e55e88fb6f803c01af670036e0f37bb34c1449697f1dbc998475b9f81433cfa/constants.py b/shared/package-files/3e/3e55e88fb6f803c01af670036e0f37bb34c1449697f1dbc998475b9f81433cfa/constants.py new file mode 100644 index 0000000000000000000000000000000000000000..4db5c639047fc3de2c519b2ca1f6b8d525469900 --- /dev/null +++ b/shared/package-files/3e/3e55e88fb6f803c01af670036e0f37bb34c1449697f1dbc998475b9f81433cfa/constants.py @@ -0,0 +1,412 @@ +""" +========= +Constants +========= + +.. currentmodule:: numpy + +NumPy includes several constants: + +%(constant_list)s +""" +# +# Note: the docstring is autogenerated. +# +import re +import textwrap + +# Maintain same format as in numpy.add_newdocs +constants = [] +def add_newdoc(module, name, doc): + constants.append((name, doc)) + +add_newdoc('numpy', 'pi', + """ + ``pi = 3.1415926535897932384626433...`` + + References + ---------- + https://en.wikipedia.org/wiki/Pi + + """) + +add_newdoc('numpy', 'e', + """ + Euler's constant, base of natural logarithms, Napier's constant. + + ``e = 2.71828182845904523536028747135266249775724709369995...`` + + See Also + -------- + exp : Exponential function + log : Natural logarithm + + References + ---------- + https://en.wikipedia.org/wiki/E_%28mathematical_constant%29 + + """) + +add_newdoc('numpy', 'euler_gamma', + """ + ``γ = 0.5772156649015328606065120900824024310421...`` + + References + ---------- + https://en.wikipedia.org/wiki/Euler-Mascheroni_constant + + """) + +add_newdoc('numpy', 'inf', + """ + IEEE 754 floating point representation of (positive) infinity. + + Returns + ------- + y : float + A floating point representation of positive infinity. + + See Also + -------- + isinf : Shows which elements are positive or negative infinity + + isposinf : Shows which elements are positive infinity + + isneginf : Shows which elements are negative infinity + + isnan : Shows which elements are Not a Number + + isfinite : Shows which elements are finite (not one of Not a Number, + positive infinity and negative infinity) + + 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. + Also that positive infinity is not equivalent to negative infinity. But + infinity is equivalent to positive infinity. + + `Inf`, `Infinity`, `PINF` and `infty` are aliases for `inf`. + + Examples + -------- + >>> np.inf + inf + >>> np.array([1]) / 0. + array([ Inf]) + + """) + +add_newdoc('numpy', 'nan', + """ + IEEE 754 floating point representation of Not a Number (NaN). + + Returns + ------- + y : A floating point representation of Not a Number. + + See Also + -------- + isnan : Shows which elements are Not a Number. + + isfinite : Shows which elements are finite (not one of + Not a Number, positive infinity and negative infinity) + + 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. + + `NaN` and `NAN` are aliases of `nan`. + + Examples + -------- + >>> np.nan + nan + >>> np.log(-1) + nan + >>> np.log([-1, 1, 2]) + array([ NaN, 0. , 0.69314718]) + + """) + +add_newdoc('numpy', 'newaxis', + """ + A convenient alias for None, useful for indexing arrays. + + Examples + -------- + >>> newaxis is None + True + >>> x = np.arange(3) + >>> x + array([0, 1, 2]) + >>> x[:, newaxis] + array([[0], + [1], + [2]]) + >>> x[:, newaxis, newaxis] + array([[[0]], + [[1]], + [[2]]]) + >>> x[:, newaxis] * x + array([[0, 0, 0], + [0, 1, 2], + [0, 2, 4]]) + + Outer product, same as ``outer(x, y)``: + + >>> y = np.arange(3, 6) + >>> x[:, newaxis] * y + array([[ 0, 0, 0], + [ 3, 4, 5], + [ 6, 8, 10]]) + + ``x[newaxis, :]`` is equivalent to ``x[newaxis]`` and ``x[None]``: + + >>> x[newaxis, :].shape + (1, 3) + >>> x[newaxis].shape + (1, 3) + >>> x[None].shape + (1, 3) + >>> x[:, newaxis].shape + (3, 1) + + """) + +add_newdoc('numpy', 'NZERO', + """ + IEEE 754 floating point representation of negative zero. + + Returns + ------- + y : float + A floating point representation of negative zero. + + See Also + -------- + PZERO : Defines positive zero. + + isinf : Shows which elements are positive or negative infinity. + + isposinf : Shows which elements are positive infinity. + + isneginf : Shows which elements are negative infinity. + + isnan : Shows which elements are Not a Number. + + isfinite : Shows which elements are finite - not one of + Not a Number, positive infinity and negative infinity. + + Notes + ----- + NumPy uses the IEEE Standard for Binary Floating-Point for Arithmetic + (IEEE 754). Negative zero is considered to be a finite number. + + Examples + -------- + >>> np.NZERO + -0.0 + >>> np.PZERO + 0.0 + + >>> np.isfinite([np.NZERO]) + array([ True]) + >>> np.isnan([np.NZERO]) + array([False]) + >>> np.isinf([np.NZERO]) + array([False]) + + """) + +add_newdoc('numpy', 'PZERO', + """ + IEEE 754 floating point representation of positive zero. + + Returns + ------- + y : float + A floating point representation of positive zero. + + See Also + -------- + NZERO : Defines negative zero. + + isinf : Shows which elements are positive or negative infinity. + + isposinf : Shows which elements are positive infinity. + + isneginf : Shows which elements are negative infinity. + + isnan : Shows which elements are Not a Number. + + isfinite : Shows which elements are finite - not one of + Not a Number, positive infinity and negative infinity. + + Notes + ----- + NumPy uses the IEEE Standard for Binary Floating-Point for Arithmetic + (IEEE 754). Positive zero is considered to be a finite number. + + Examples + -------- + >>> np.PZERO + 0.0 + >>> np.NZERO + -0.0 + + >>> np.isfinite([np.PZERO]) + array([ True]) + >>> np.isnan([np.PZERO]) + array([False]) + >>> np.isinf([np.PZERO]) + array([False]) + + """) + +add_newdoc('numpy', 'NAN', + """ + IEEE 754 floating point representation of Not a Number (NaN). + + `NaN` and `NAN` are equivalent definitions of `nan`. Please use + `nan` instead of `NAN`. + + See Also + -------- + nan + + """) + +add_newdoc('numpy', 'NaN', + """ + IEEE 754 floating point representation of Not a Number (NaN). + + `NaN` and `NAN` are equivalent definitions of `nan`. Please use + `nan` instead of `NaN`. + + See Also + -------- + nan + + """) + +add_newdoc('numpy', 'NINF', + """ + IEEE 754 floating point representation of negative infinity. + + Returns + ------- + y : float + A floating point representation of negative infinity. + + See Also + -------- + isinf : Shows which elements are positive or negative infinity + + isposinf : Shows which elements are positive infinity + + isneginf : Shows which elements are negative infinity + + isnan : Shows which elements are Not a Number + + isfinite : Shows which elements are finite (not one of Not a Number, + positive infinity and negative infinity) + + 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. + Also that positive infinity is not equivalent to negative infinity. But + infinity is equivalent to positive infinity. + + Examples + -------- + >>> np.NINF + -inf + >>> np.log(0) + -inf + + """) + +add_newdoc('numpy', 'PINF', + """ + IEEE 754 floating point representation of (positive) infinity. + + Use `inf` because `Inf`, `Infinity`, `PINF` and `infty` are aliases for + `inf`. For more details, see `inf`. + + See Also + -------- + inf + + """) + +add_newdoc('numpy', 'infty', + """ + IEEE 754 floating point representation of (positive) infinity. + + Use `inf` because `Inf`, `Infinity`, `PINF` and `infty` are aliases for + `inf`. For more details, see `inf`. + + See Also + -------- + inf + + """) + +add_newdoc('numpy', 'Inf', + """ + IEEE 754 floating point representation of (positive) infinity. + + Use `inf` because `Inf`, `Infinity`, `PINF` and `infty` are aliases for + `inf`. For more details, see `inf`. + + See Also + -------- + inf + + """) + +add_newdoc('numpy', 'Infinity', + """ + IEEE 754 floating point representation of (positive) infinity. + + Use `inf` because `Inf`, `Infinity`, `PINF` and `infty` are aliases for + `inf`. For more details, see `inf`. + + See Also + -------- + inf + + """) + + +if __doc__: + constants_str = [] + constants.sort() + for name, doc in constants: + s = textwrap.dedent(doc).replace("\n", "\n ") + + # Replace sections by rubrics + lines = s.split("\n") + new_lines = [] + for line in lines: + m = re.match(r'^(\s+)[-=]+\s*$', line) + if m and new_lines: + prev = textwrap.dedent(new_lines.pop()) + new_lines.append('%s.. rubric:: %s' % (m.group(1), prev)) + new_lines.append('') + else: + new_lines.append(line) + s = "\n".join(new_lines) + + # Done. + constants_str.append(""".. data:: %s\n %s""" % (name, s)) + constants_str = "\n".join(constants_str) + + __doc__ = __doc__ % dict(constant_list=constants_str) + del constants_str, name, doc + del line, lines, new_lines, m, s, prev + +del constants, add_newdoc diff --git a/shared/package-files/3e/3e5df730974ff60ad46499a69f6e5ed0f47857a2f27253434e6791a45265a234/linalg_matrix_rank_compositeimplicitautograd_dispatch.h b/shared/package-files/3e/3e5df730974ff60ad46499a69f6e5ed0f47857a2f27253434e6791a45265a234/linalg_matrix_rank_compositeimplicitautograd_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..a7d581b0f8f987a2a155999a73b5c0439d0b0fdb --- /dev/null +++ b/shared/package-files/3e/3e5df730974ff60ad46499a69f6e5ed0f47857a2f27253434e6791a45265a234/linalg_matrix_rank_compositeimplicitautograd_dispatch.h @@ -0,0 +1,34 @@ +#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 linalg_matrix_rank(const at::Tensor & input, const c10::optional & atol={}, const c10::optional & rtol={}, bool hermitian=false); +TORCH_API at::Tensor & linalg_matrix_rank_out(at::Tensor & out, const at::Tensor & input, const c10::optional & atol={}, const c10::optional & rtol={}, bool hermitian=false); +TORCH_API at::Tensor & linalg_matrix_rank_outf(const at::Tensor & input, const c10::optional & atol, const c10::optional & rtol, bool hermitian, at::Tensor & out); +TORCH_API at::Tensor linalg_matrix_rank(const at::Tensor & self, c10::optional atol, c10::optional rtol, bool hermitian=false); +TORCH_API at::Tensor & linalg_matrix_rank_out(at::Tensor & out, const at::Tensor & self, c10::optional atol, c10::optional rtol, bool hermitian=false); +TORCH_API at::Tensor & linalg_matrix_rank_outf(const at::Tensor & self, c10::optional atol, c10::optional rtol, bool hermitian, at::Tensor & out); +TORCH_API at::Tensor linalg_matrix_rank(const at::Tensor & self, double tol, bool hermitian=false); +TORCH_API at::Tensor & linalg_matrix_rank_out(at::Tensor & out, const at::Tensor & self, double tol, bool hermitian=false); +TORCH_API at::Tensor & linalg_matrix_rank_outf(const at::Tensor & self, double tol, bool hermitian, at::Tensor & out); +TORCH_API at::Tensor linalg_matrix_rank(const at::Tensor & input, const at::Tensor & tol, bool hermitian=false); +TORCH_API at::Tensor & linalg_matrix_rank_out(at::Tensor & out, const at::Tensor & input, const at::Tensor & tol, bool hermitian=false); +TORCH_API at::Tensor & linalg_matrix_rank_outf(const at::Tensor & input, const at::Tensor & tol, bool hermitian, at::Tensor & out); + +} // namespace compositeimplicitautograd +} // namespace at diff --git a/shared/package-files/3e/3e62e0e68136e609ce207555fb853e9df504b0a75f81a73833d39a0528caae8c/_fit.py b/shared/package-files/3e/3e62e0e68136e609ce207555fb853e9df504b0a75f81a73833d39a0528caae8c/_fit.py new file mode 100644 index 0000000000000000000000000000000000000000..bdb10606fdf60eed02790bbf27fe5152293a2b3b --- /dev/null +++ b/shared/package-files/3e/3e62e0e68136e609ce207555fb853e9df504b0a75f81a73833d39a0528caae8c/_fit.py @@ -0,0 +1,1351 @@ +import warnings +from collections import namedtuple +import numpy as np +from scipy import optimize, stats +from scipy._lib._util import check_random_state, _transition_to_rng + + +def _combine_bounds(name, user_bounds, shape_domain, integral): + """Intersection of user-defined bounds and distribution PDF/PMF domain""" + + user_bounds = np.atleast_1d(user_bounds) + + if user_bounds[0] > user_bounds[1]: + message = (f"There are no values for `{name}` on the interval " + f"{list(user_bounds)}.") + raise ValueError(message) + + bounds = (max(user_bounds[0], shape_domain[0]), + min(user_bounds[1], shape_domain[1])) + + if integral and (np.ceil(bounds[0]) > np.floor(bounds[1])): + message = (f"There are no integer values for `{name}` on the interval " + f"defined by the user-provided bounds and the domain " + "of the distribution.") + raise ValueError(message) + elif not integral and (bounds[0] > bounds[1]): + message = (f"There are no values for `{name}` on the interval " + f"defined by the user-provided bounds and the domain " + "of the distribution.") + raise ValueError(message) + + if not np.all(np.isfinite(bounds)): + message = (f"The intersection of user-provided bounds for `{name}` " + f"and the domain of the distribution is not finite. Please " + f"provide finite bounds for shape `{name}` in `bounds`.") + raise ValueError(message) + + return bounds + + +class FitResult: + r"""Result of fitting a discrete or continuous distribution to data + + Attributes + ---------- + params : namedtuple + A namedtuple containing the maximum likelihood estimates of the + shape parameters, location, and (if applicable) scale of the + distribution. + success : bool or None + Whether the optimizer considered the optimization to terminate + successfully or not. + message : str or None + Any status message provided by the optimizer. + + """ + + def __init__(self, dist, data, discrete, res): + self._dist = dist + self._data = data + self.discrete = discrete + self.pxf = getattr(dist, "pmf", None) or getattr(dist, "pdf", None) + + shape_names = [] if dist.shapes is None else dist.shapes.split(", ") + if not discrete: + FitParams = namedtuple('FitParams', shape_names + ['loc', 'scale']) + else: + FitParams = namedtuple('FitParams', shape_names + ['loc']) + + self.params = FitParams(*res.x) + + # Optimizer can report success even when nllf is infinite + if res.success and not np.isfinite(self.nllf()): + res.success = False + res.message = ("Optimization converged to parameter values that " + "are inconsistent with the data.") + self.success = getattr(res, "success", None) + self.message = getattr(res, "message", None) + + def __repr__(self): + keys = ["params", "success", "message"] + m = max(map(len, keys)) + 1 + return '\n'.join([key.rjust(m) + ': ' + repr(getattr(self, key)) + for key in keys if getattr(self, key) is not None]) + + def nllf(self, params=None, data=None): + """Negative log-likelihood function + + Evaluates the negative of the log-likelihood function of the provided + data at the provided parameters. + + Parameters + ---------- + params : tuple, optional + The shape parameters, location, and (if applicable) scale of the + distribution as a single tuple. Default is the maximum likelihood + estimates (``self.params``). + data : array_like, optional + The data for which the log-likelihood function is to be evaluated. + Default is the data to which the distribution was fit. + + Returns + ------- + nllf : float + The negative of the log-likelihood function. + + """ + params = params if params is not None else self.params + data = data if data is not None else self._data + return self._dist.nnlf(theta=params, x=data) + + def plot(self, ax=None, *, plot_type="hist"): + """Visually compare the data against the fitted distribution. + + Available only if `matplotlib` is installed. + + Parameters + ---------- + ax : `matplotlib.axes.Axes` + Axes object to draw the plot onto, otherwise uses the current Axes. + plot_type : {"hist", "qq", "pp", "cdf"} + Type of plot to draw. Options include: + + - "hist": Superposes the PDF/PMF of the fitted distribution + over a normalized histogram of the data. + - "qq": Scatter plot of theoretical quantiles against the + empirical quantiles. Specifically, the x-coordinates are the + values of the fitted distribution PPF evaluated at the + percentiles ``(np.arange(1, n) - 0.5)/n``, where ``n`` is the + number of data points, and the y-coordinates are the sorted + data points. + - "pp": Scatter plot of theoretical percentiles against the + observed percentiles. Specifically, the x-coordinates are the + percentiles ``(np.arange(1, n) - 0.5)/n``, where ``n`` is + the number of data points, and the y-coordinates are the values + of the fitted distribution CDF evaluated at the sorted + data points. + - "cdf": Superposes the CDF of the fitted distribution over the + empirical CDF. Specifically, the x-coordinates of the empirical + CDF are the sorted data points, and the y-coordinates are the + percentiles ``(np.arange(1, n) - 0.5)/n``, where ``n`` is + the number of data points. + + Returns + ------- + ax : `matplotlib.axes.Axes` + The matplotlib Axes object on which the plot was drawn. + + Examples + -------- + >>> import numpy as np + >>> from scipy import stats + >>> import matplotlib.pyplot as plt # matplotlib must be installed + >>> rng = np.random.default_rng() + >>> data = stats.nbinom(5, 0.5).rvs(size=1000, random_state=rng) + >>> bounds = [(0, 30), (0, 1)] + >>> res = stats.fit(stats.nbinom, data, bounds) + >>> ax = res.plot() # save matplotlib Axes object + + The `matplotlib.axes.Axes` object can be used to customize the plot. + See `matplotlib.axes.Axes` documentation for details. + + >>> ax.set_xlabel('number of trials') # customize axis label + >>> ax.get_children()[0].set_linewidth(5) # customize line widths + >>> ax.legend() + >>> plt.show() + """ + try: + import matplotlib # noqa: F401 + except ModuleNotFoundError as exc: + message = "matplotlib must be installed to use method `plot`." + raise ModuleNotFoundError(message) from exc + + plots = {'histogram': self._hist_plot, 'qq': self._qq_plot, + 'pp': self._pp_plot, 'cdf': self._cdf_plot, + 'hist': self._hist_plot} + if plot_type.lower() not in plots: + message = f"`plot_type` must be one of {set(plots.keys())}" + raise ValueError(message) + plot = plots[plot_type.lower()] + + if ax is None: + import matplotlib.pyplot as plt + ax = plt.gca() + + fit_params = np.atleast_1d(self.params) + + return plot(ax=ax, fit_params=fit_params) + + def _hist_plot(self, ax, fit_params): + from matplotlib.ticker import MaxNLocator + + support = self._dist.support(*fit_params) + lb = support[0] if np.isfinite(support[0]) else min(self._data) + ub = support[1] if np.isfinite(support[1]) else max(self._data) + pxf = "PMF" if self.discrete else "PDF" + + if self.discrete: + x = np.arange(lb, ub + 2) + y = self.pxf(x, *fit_params) + ax.vlines(x[:-1], 0, y[:-1], label='Fitted Distribution PMF', + color='C0') + options = dict(density=True, bins=x, align='left', color='C1') + ax.xaxis.set_major_locator(MaxNLocator(integer=True)) + ax.set_xlabel('k') + ax.set_ylabel('PMF') + else: + x = np.linspace(lb, ub, 200) + y = self.pxf(x, *fit_params) + ax.plot(x, y, '--', label='Fitted Distribution PDF', color='C0') + options = dict(density=True, bins=50, align='mid', color='C1') + ax.set_xlabel('x') + ax.set_ylabel('PDF') + + if len(self._data) > 50 or self.discrete: + ax.hist(self._data, label="Histogram of Data", **options) + else: + ax.plot(self._data, np.zeros_like(self._data), "*", + label='Data', color='C1') + + ax.set_title(rf"Fitted $\tt {self._dist.name}$ {pxf} and Histogram") + ax.legend(*ax.get_legend_handles_labels()) + return ax + + def _qp_plot(self, ax, fit_params, qq): + data = np.sort(self._data) + ps = self._plotting_positions(len(self._data)) + + if qq: + qp = "Quantiles" + plot_type = 'Q-Q' + x = self._dist.ppf(ps, *fit_params) + y = data + else: + qp = "Percentiles" + plot_type = 'P-P' + x = ps + y = self._dist.cdf(data, *fit_params) + + ax.plot(x, y, '.', label=f'Fitted Distribution {plot_type}', + color='C0', zorder=1) + xlim = ax.get_xlim() + ylim = ax.get_ylim() + lim = [min(xlim[0], ylim[0]), max(xlim[1], ylim[1])] + if not qq: + lim = max(lim[0], 0), min(lim[1], 1) + + if self.discrete and qq: + q_min, q_max = int(lim[0]), int(lim[1]+1) + q_ideal = np.arange(q_min, q_max) + # q_ideal = np.unique(self._dist.ppf(ps, *fit_params)) + ax.plot(q_ideal, q_ideal, 'o', label='Reference', color='k', + alpha=0.25, markerfacecolor='none', clip_on=True) + elif self.discrete and not qq: + # The intent of this is to match the plot that would be produced + # if x were continuous on [0, 1] and y were cdf(ppf(x)). + # It can be approximated by letting x = np.linspace(0, 1, 1000), + # but this might not look great when zooming in. The vertical + # portions are included to indicate where the transition occurs + # where the data completely obscures the horizontal portions. + p_min, p_max = lim + a, b = self._dist.support(*fit_params) + p_min = max(p_min, 0 if np.isfinite(a) else 1e-3) + p_max = min(p_max, 1 if np.isfinite(b) else 1-1e-3) + q_min, q_max = self._dist.ppf([p_min, p_max], *fit_params) + qs = np.arange(q_min-1, q_max+1) + ps = self._dist.cdf(qs, *fit_params) + ax.step(ps, ps, '-', label='Reference', color='k', alpha=0.25, + clip_on=True) + else: + ax.plot(lim, lim, '-', label='Reference', color='k', alpha=0.25, + clip_on=True) + + ax.set_xlim(lim) + ax.set_ylim(lim) + ax.set_xlabel(rf"Fitted $\tt {self._dist.name}$ Theoretical {qp}") + ax.set_ylabel(f"Data {qp}") + ax.set_title(rf"Fitted $\tt {self._dist.name}$ {plot_type} Plot") + ax.legend(*ax.get_legend_handles_labels()) + ax.set_aspect('equal') + return ax + + def _qq_plot(self, **kwargs): + return self._qp_plot(qq=True, **kwargs) + + def _pp_plot(self, **kwargs): + return self._qp_plot(qq=False, **kwargs) + + def _plotting_positions(self, n, a=.5): + # See https://en.wikipedia.org/wiki/Q%E2%80%93Q_plot#Plotting_positions + k = np.arange(1, n+1) + return (k-a) / (n + 1 - 2*a) + + def _cdf_plot(self, ax, fit_params): + data = np.sort(self._data) + ecdf = self._plotting_positions(len(self._data)) + ls = '--' if len(np.unique(data)) < 30 else '.' + xlabel = 'k' if self.discrete else 'x' + ax.step(data, ecdf, ls, label='Empirical CDF', color='C1', zorder=0) + + xlim = ax.get_xlim() + q = np.linspace(*xlim, 300) + tcdf = self._dist.cdf(q, *fit_params) + + ax.plot(q, tcdf, label='Fitted Distribution CDF', color='C0', zorder=1) + ax.set_xlim(xlim) + ax.set_ylim(0, 1) + ax.set_xlabel(xlabel) + ax.set_ylabel("CDF") + ax.set_title(rf"Fitted $\tt {self._dist.name}$ and Empirical CDF") + handles, labels = ax.get_legend_handles_labels() + ax.legend(handles[::-1], labels[::-1]) + return ax + + +def fit(dist, data, bounds=None, *, guess=None, method='mle', + optimizer=optimize.differential_evolution): + r"""Fit a discrete or continuous distribution to data + + Given a distribution, data, and bounds on the parameters of the + distribution, return maximum likelihood estimates of the parameters. + + Parameters + ---------- + dist : `scipy.stats.rv_continuous` or `scipy.stats.rv_discrete` + The object representing the distribution to be fit to the data. + data : 1D array_like + The data to which the distribution is to be fit. If the data contain + any of ``np.nan``, ``np.inf``, or -``np.inf``, the fit method will + raise a ``ValueError``. + bounds : dict or sequence of tuples, optional + If a dictionary, each key is the name of a parameter of the + distribution, and the corresponding value is a tuple containing the + lower and upper bound on that parameter. If the distribution is + defined only for a finite range of values of that parameter, no entry + for that parameter is required; e.g., some distributions have + parameters which must be on the interval [0, 1]. Bounds for parameters + location (``loc``) and scale (``scale``) are optional; by default, + they are fixed to 0 and 1, respectively. + + If a sequence, element *i* is a tuple containing the lower and upper + bound on the *i*\ th parameter of the distribution. In this case, + bounds for *all* distribution shape parameters must be provided. + Optionally, bounds for location and scale may follow the + distribution shape parameters. + + If a shape is to be held fixed (e.g. if it is known), the + lower and upper bounds may be equal. If a user-provided lower or upper + bound is beyond a bound of the domain for which the distribution is + defined, the bound of the distribution's domain will replace the + user-provided value. Similarly, parameters which must be integral + will be constrained to integral values within the user-provided bounds. + guess : dict or array_like, optional + If a dictionary, each key is the name of a parameter of the + distribution, and the corresponding value is a guess for the value + of the parameter. + + If a sequence, element *i* is a guess for the *i*\ th parameter of the + distribution. In this case, guesses for *all* distribution shape + parameters must be provided. + + If `guess` is not provided, guesses for the decision variables will + not be passed to the optimizer. If `guess` is provided, guesses for + any missing parameters will be set at the mean of the lower and + upper bounds. Guesses for parameters which must be integral will be + rounded to integral values, and guesses that lie outside the + intersection of the user-provided bounds and the domain of the + distribution will be clipped. + method : {'mle', 'mse'} + With ``method="mle"`` (default), the fit is computed by minimizing + the negative log-likelihood function. A large, finite penalty + (rather than infinite negative log-likelihood) is applied for + observations beyond the support of the distribution. + With ``method="mse"``, the fit is computed by minimizing + the negative log-product spacing function. The same penalty is applied + for observations beyond the support. We follow the approach of [1]_, + which is generalized for samples with repeated observations. + optimizer : callable, optional + `optimizer` is a callable that accepts the following positional + argument. + + fun : callable + The objective function to be optimized. `fun` accepts one argument + ``x``, candidate shape parameters of the distribution, and returns + the objective function value given ``x``, `dist`, and the provided + `data`. + The job of `optimizer` is to find values of the decision variables + that minimizes `fun`. + + `optimizer` must also accept the following keyword argument. + + bounds : sequence of tuples + The bounds on values of the decision variables; each element will + be a tuple containing the lower and upper bound on a decision + variable. + + If `guess` is provided, `optimizer` must also accept the following + keyword argument. + + x0 : array_like + The guesses for each decision variable. + + If the distribution has any shape parameters that must be integral or + if the distribution is discrete and the location parameter is not + fixed, `optimizer` must also accept the following keyword argument. + + integrality : array_like of bools + For each decision variable, True if the decision variable + must be constrained to integer values and False if the decision + variable is continuous. + + `optimizer` must return an object, such as an instance of + `scipy.optimize.OptimizeResult`, which holds the optimal values of + the decision variables in an attribute ``x``. If attributes + ``fun``, ``status``, or ``message`` are provided, they will be + included in the result object returned by `fit`. + + Returns + ------- + result : `~scipy.stats._result_classes.FitResult` + An object with the following fields. + + params : namedtuple + A namedtuple containing the maximum likelihood estimates of the + shape parameters, location, and (if applicable) scale of the + distribution. + success : bool or None + Whether the optimizer considered the optimization to terminate + successfully or not. + message : str or None + Any status message provided by the optimizer. + + The object has the following method: + + nllf(params=None, data=None) + By default, the negative log-likelihood function at the fitted + `params` for the given `data`. Accepts a tuple containing + alternative shapes, location, and scale of the distribution and + an array of alternative data. + + plot(ax=None) + Superposes the PDF/PMF of the fitted distribution over a normalized + histogram of the data. + + See Also + -------- + rv_continuous, rv_discrete + + Notes + ----- + Optimization is more likely to converge to the maximum likelihood estimate + when the user provides tight bounds containing the maximum likelihood + estimate. For example, when fitting a binomial distribution to data, the + number of experiments underlying each sample may be known, in which case + the corresponding shape parameter ``n`` can be fixed. + + References + ---------- + .. [1] Shao, Yongzhao, and Marjorie G. Hahn. "Maximum product of spacings + method: a unified formulation with illustration of strong + consistency." Illinois Journal of Mathematics 43.3 (1999): 489-499. + + Examples + -------- + Suppose we wish to fit a distribution to the following data. + + >>> import numpy as np + >>> from scipy import stats + >>> rng = np.random.default_rng() + >>> dist = stats.nbinom + >>> shapes = (5, 0.5) + >>> data = dist.rvs(*shapes, size=1000, random_state=rng) + + Suppose we do not know how the data were generated, but we suspect that + it follows a negative binomial distribution with parameters *n* and *p*\. + (See `scipy.stats.nbinom`.) We believe that the parameter *n* was fewer + than 30, and we know that the parameter *p* must lie on the interval + [0, 1]. We record this information in a variable `bounds` and pass + this information to `fit`. + + >>> bounds = [(0, 30), (0, 1)] + >>> res = stats.fit(dist, data, bounds) + + `fit` searches within the user-specified `bounds` for the + values that best match the data (in the sense of maximum likelihood + estimation). In this case, it found shape values similar to those + from which the data were actually generated. + + >>> res.params + FitParams(n=5.0, p=0.5028157644634368, loc=0.0) # may vary + + We can visualize the results by superposing the probability mass function + of the distribution (with the shapes fit to the data) over a normalized + histogram of the data. + + >>> import matplotlib.pyplot as plt # matplotlib must be installed to plot + >>> res.plot() + >>> plt.show() + + Note that the estimate for *n* was exactly integral; this is because + the domain of the `nbinom` PMF includes only integral *n*, and the `nbinom` + object "knows" that. `nbinom` also knows that the shape *p* must be a + value between 0 and 1. In such a case - when the domain of the distribution + with respect to a parameter is finite - we are not required to specify + bounds for the parameter. + + >>> bounds = {'n': (0, 30)} # omit parameter p using a `dict` + >>> res2 = stats.fit(dist, data, bounds) + >>> res2.params + FitParams(n=5.0, p=0.5016492009232932, loc=0.0) # may vary + + If we wish to force the distribution to be fit with *n* fixed at 6, we can + set both the lower and upper bounds on *n* to 6. Note, however, that the + value of the objective function being optimized is typically worse (higher) + in this case. + + >>> bounds = {'n': (6, 6)} # fix parameter `n` + >>> res3 = stats.fit(dist, data, bounds) + >>> res3.params + FitParams(n=6.0, p=0.5486556076755706, loc=0.0) # may vary + >>> res3.nllf() > res.nllf() + True # may vary + + Note that the numerical results of the previous examples are typical, but + they may vary because the default optimizer used by `fit`, + `scipy.optimize.differential_evolution`, is stochastic. However, we can + customize the settings used by the optimizer to ensure reproducibility - + or even use a different optimizer entirely - using the `optimizer` + parameter. + + >>> from scipy.optimize import differential_evolution + >>> rng = np.random.default_rng(767585560716548) + >>> def optimizer(fun, bounds, *, integrality): + ... return differential_evolution(fun, bounds, strategy='best2bin', + ... rng=rng, integrality=integrality) + >>> bounds = [(0, 30), (0, 1)] + >>> res4 = stats.fit(dist, data, bounds, optimizer=optimizer) + >>> res4.params + FitParams(n=5.0, p=0.5015183149259951, loc=0.0) + + """ + # --- Input Validation / Standardization --- # + user_bounds = bounds + user_guess = guess + + # distribution input validation and information collection + if hasattr(dist, "pdf"): # can't use isinstance for types + default_bounds = {'loc': (0, 0), 'scale': (1, 1)} + discrete = False + elif hasattr(dist, "pmf"): + default_bounds = {'loc': (0, 0)} + discrete = True + else: + message = ("`dist` must be an instance of `rv_continuous` " + "or `rv_discrete.`") + raise ValueError(message) + + try: + param_info = dist._param_info() + except AttributeError as e: + message = (f"Distribution `{dist.name}` is not yet supported by " + "`scipy.stats.fit` because shape information has " + "not been defined.") + raise ValueError(message) from e + + # data input validation + data = np.asarray(data) + if data.ndim != 1: + message = "`data` must be exactly one-dimensional." + raise ValueError(message) + if not (np.issubdtype(data.dtype, np.number) + and np.all(np.isfinite(data))): + message = "All elements of `data` must be finite numbers." + raise ValueError(message) + + # bounds input validation and information collection + n_params = len(param_info) + n_shapes = n_params - (1 if discrete else 2) + param_list = [param.name for param in param_info] + param_names = ", ".join(param_list) + shape_names = ", ".join(param_list[:n_shapes]) + + if user_bounds is None: + user_bounds = {} + + if isinstance(user_bounds, dict): + default_bounds.update(user_bounds) + user_bounds = default_bounds + user_bounds_array = np.empty((n_params, 2)) + for i in range(n_params): + param_name = param_info[i].name + user_bound = user_bounds.pop(param_name, None) + if user_bound is None: + user_bound = param_info[i].domain + user_bounds_array[i] = user_bound + if user_bounds: + message = ("Bounds provided for the following unrecognized " + f"parameters will be ignored: {set(user_bounds)}") + warnings.warn(message, RuntimeWarning, stacklevel=2) + + else: + try: + user_bounds = np.asarray(user_bounds, dtype=float) + if user_bounds.size == 0: + user_bounds = np.empty((0, 2)) + except ValueError as e: + message = ("Each element of a `bounds` sequence must be a tuple " + "containing two elements: the lower and upper bound of " + "a distribution parameter.") + raise ValueError(message) from e + if (user_bounds.ndim != 2 or user_bounds.shape[1] != 2): + message = ("Each element of `bounds` must be a tuple specifying " + "the lower and upper bounds of a shape parameter") + raise ValueError(message) + if user_bounds.shape[0] < n_shapes: + message = (f"A `bounds` sequence must contain at least {n_shapes} " + "elements: tuples specifying the lower and upper " + f"bounds of all shape parameters {shape_names}.") + raise ValueError(message) + if user_bounds.shape[0] > n_params: + message = ("A `bounds` sequence may not contain more than " + f"{n_params} elements: tuples specifying the lower and " + "upper bounds of distribution parameters " + f"{param_names}.") + raise ValueError(message) + + user_bounds_array = np.empty((n_params, 2)) + user_bounds_array[n_shapes:] = list(default_bounds.values()) + user_bounds_array[:len(user_bounds)] = user_bounds + + user_bounds = user_bounds_array + validated_bounds = [] + for i in range(n_params): + name = param_info[i].name + user_bound = user_bounds_array[i] + param_domain = param_info[i].domain + integral = param_info[i].integrality + combined = _combine_bounds(name, user_bound, param_domain, integral) + validated_bounds.append(combined) + + bounds = np.asarray(validated_bounds) + integrality = [param.integrality for param in param_info] + + # guess input validation + + if user_guess is None: + guess_array = None + elif isinstance(user_guess, dict): + default_guess = {param.name: np.mean(bound) + for param, bound in zip(param_info, bounds)} + unrecognized = set(user_guess) - set(default_guess) + if unrecognized: + message = ("Guesses provided for the following unrecognized " + f"parameters will be ignored: {unrecognized}") + warnings.warn(message, RuntimeWarning, stacklevel=2) + default_guess.update(user_guess) + + message = ("Each element of `guess` must be a scalar " + "guess for a distribution parameter.") + try: + guess_array = np.asarray([default_guess[param.name] + for param in param_info], dtype=float) + except ValueError as e: + raise ValueError(message) from e + + else: + message = ("Each element of `guess` must be a scalar " + "guess for a distribution parameter.") + try: + user_guess = np.asarray(user_guess, dtype=float) + except ValueError as e: + raise ValueError(message) from e + if user_guess.ndim != 1: + raise ValueError(message) + if user_guess.shape[0] < n_shapes: + message = (f"A `guess` sequence must contain at least {n_shapes} " + "elements: scalar guesses for the distribution shape " + f"parameters {shape_names}.") + raise ValueError(message) + if user_guess.shape[0] > n_params: + message = ("A `guess` sequence may not contain more than " + f"{n_params} elements: scalar guesses for the " + f"distribution parameters {param_names}.") + raise ValueError(message) + + guess_array = np.mean(bounds, axis=1) + guess_array[:len(user_guess)] = user_guess + + if guess_array is not None: + guess_rounded = guess_array.copy() + + guess_rounded[integrality] = np.round(guess_rounded[integrality]) + rounded = np.where(guess_rounded != guess_array)[0] + for i in rounded: + message = (f"Guess for parameter `{param_info[i].name}` " + f"rounded from {guess_array[i]} to {guess_rounded[i]}.") + warnings.warn(message, RuntimeWarning, stacklevel=2) + + guess_clipped = np.clip(guess_rounded, bounds[:, 0], bounds[:, 1]) + clipped = np.where(guess_clipped != guess_rounded)[0] + for i in clipped: + message = (f"Guess for parameter `{param_info[i].name}` " + f"clipped from {guess_rounded[i]} to " + f"{guess_clipped[i]}.") + warnings.warn(message, RuntimeWarning, stacklevel=2) + + guess = guess_clipped + else: + guess = None + + # --- Fitting --- # + def nllf(free_params, data=data): # bind data NOW + with np.errstate(invalid='ignore', divide='ignore'): + return dist._penalized_nnlf(free_params, data) + + def nlpsf(free_params, data=data): # bind data NOW + with np.errstate(invalid='ignore', divide='ignore'): + return dist._penalized_nlpsf(free_params, data) + + methods = {'mle': nllf, 'mse': nlpsf} + objective = methods[method.lower()] + + with np.errstate(invalid='ignore', divide='ignore'): + kwds = {} + if bounds is not None: + kwds['bounds'] = bounds + if np.any(integrality): + kwds['integrality'] = integrality + if guess is not None: + kwds['x0'] = guess + res = optimizer(objective, **kwds) + + return FitResult(dist, data, discrete, res) + + +GoodnessOfFitResult = namedtuple('GoodnessOfFitResult', + ('fit_result', 'statistic', 'pvalue', + 'null_distribution')) + + +@_transition_to_rng('random_state') +def goodness_of_fit(dist, data, *, known_params=None, fit_params=None, + guessed_params=None, statistic='ad', n_mc_samples=9999, + rng=None): + r""" + Perform a goodness of fit test comparing data to a distribution family. + + Given a distribution family and data, perform a test of the null hypothesis + that the data were drawn from a distribution in that family. Any known + parameters of the distribution may be specified. Remaining parameters of + the distribution will be fit to the data, and the p-value of the test + is computed accordingly. Several statistics for comparing the distribution + to data are available. + + Parameters + ---------- + dist : `scipy.stats.rv_continuous` + The object representing the distribution family under the null + hypothesis. + data : 1D array_like + Finite, uncensored data to be tested. + known_params : dict, optional + A dictionary containing name-value pairs of known distribution + parameters. Monte Carlo samples are randomly drawn from the + null-hypothesized distribution with these values of the parameters. + Before the statistic is evaluated for the observed `data` and each + Monte Carlo sample, only remaining unknown parameters of the + null-hypothesized distribution family are fit to the samples; the + known parameters are held fixed. If all parameters of the distribution + family are known, then the step of fitting the distribution family to + each sample is omitted. + fit_params : dict, optional + A dictionary containing name-value pairs of distribution parameters + that have already been fit to the data, e.g. using `scipy.stats.fit` + or the ``fit`` method of `dist`. Monte Carlo samples are drawn from the + null-hypothesized distribution with these specified values of the + parameter. However, these and all other unknown parameters of the + null-hypothesized distribution family are always fit to the sample, + whether that is the observed `data` or a Monte Carlo sample, before + the statistic is evaluated. + guessed_params : dict, optional + A dictionary containing name-value pairs of distribution parameters + which have been guessed. These parameters are always considered as + free parameters and are fit both to the provided `data` as well as + to the Monte Carlo samples drawn from the null-hypothesized + distribution. The purpose of these `guessed_params` is to be used as + initial values for the numerical fitting procedure. + statistic : {"ad", "ks", "cvm", "filliben"} or callable, optional + The statistic used to compare data to a distribution after fitting + unknown parameters of the distribution family to the data. The + Anderson-Darling ("ad") [1]_, Kolmogorov-Smirnov ("ks") [1]_, + Cramer-von Mises ("cvm") [1]_, and Filliben ("filliben") [7]_ + statistics are available. Alternatively, a callable with signature + ``(dist, data, axis)`` may be supplied to compute the statistic. Here + ``dist`` is a frozen distribution object (potentially with array + parameters), ``data`` is an array of Monte Carlo samples (of + compatible shape), and ``axis`` is the axis of ``data`` along which + the statistic must be computed. + n_mc_samples : int, default: 9999 + The number of Monte Carlo samples drawn from the null hypothesized + distribution to form the null distribution of the statistic. The + sample size of each is the same as the given `data`. + 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 + ------- + res : GoodnessOfFitResult + An object with the following attributes. + + fit_result : `~scipy.stats._result_classes.FitResult` + An object representing the fit of the provided `dist` to `data`. + This object includes the values of distribution family parameters + that fully define the null-hypothesized distribution, that is, + the distribution from which Monte Carlo samples are drawn. + statistic : float + The value of the statistic comparing provided `data` to the + null-hypothesized distribution. + pvalue : float + The proportion of elements in the null distribution with + statistic values at least as extreme as the statistic value of the + provided `data`. + null_distribution : ndarray + The value of the statistic for each Monte Carlo sample + drawn from the null-hypothesized distribution. + + Notes + ----- + This is a generalized Monte Carlo goodness-of-fit procedure, special cases + of which correspond with various Anderson-Darling tests, Lilliefors' test, + etc. The test is described in [2]_, [3]_, and [4]_ as a parametric + bootstrap test. This is a Monte Carlo test in which parameters that + specify the distribution from which samples are drawn have been estimated + from the data. We describe the test using "Monte Carlo" rather than + "parametric bootstrap" throughout to avoid confusion with the more familiar + nonparametric bootstrap, and describe how the test is performed below. + + *Traditional goodness of fit tests* + + Traditionally, critical values corresponding with a fixed set of + significance levels are pre-calculated using Monte Carlo methods. Users + perform the test by calculating the value of the test statistic only for + their observed `data` and comparing this value to tabulated critical + values. This practice is not very flexible, as tables are not available for + all distributions and combinations of known and unknown parameter values. + Also, results can be inaccurate when critical values are interpolated from + limited tabulated data to correspond with the user's sample size and + fitted parameter values. To overcome these shortcomings, this function + allows the user to perform the Monte Carlo trials adapted to their + particular data. + + *Algorithmic overview* + + In brief, this routine executes the following steps: + + 1. Fit unknown parameters to the given `data`, thereby forming the + "null-hypothesized" distribution, and compute the statistic of + this pair of data and distribution. + 2. Draw random samples from this null-hypothesized distribution. + 3. Fit the unknown parameters to each random sample. + 4. Calculate the statistic between each sample and the distribution that + has been fit to the sample. + 5. Compare the value of the statistic corresponding with `data` from (1) + against the values of the statistic corresponding with the random + samples from (4). The p-value is the proportion of samples with a + statistic value greater than or equal to the statistic of the observed + data. + + In more detail, the steps are as follows. + + First, any unknown parameters of the distribution family specified by + `dist` are fit to the provided `data` using maximum likelihood estimation. + (One exception is the normal distribution with unknown location and scale: + we use the bias-corrected standard deviation ``np.std(data, ddof=1)`` for + the scale as recommended in [1]_.) + These values of the parameters specify a particular member of the + distribution family referred to as the "null-hypothesized distribution", + that is, the distribution from which the data were sampled under the null + hypothesis. The `statistic`, which compares data to a distribution, is + computed between `data` and the null-hypothesized distribution. + + Next, many (specifically `n_mc_samples`) new samples, each containing the + same number of observations as `data`, are drawn from the + null-hypothesized distribution. All unknown parameters of the distribution + family `dist` are fit to *each resample*, and the `statistic` is computed + between each sample and its corresponding fitted distribution. These + values of the statistic form the Monte Carlo null distribution (not to be + confused with the "null-hypothesized distribution" above). + + The p-value of the test is the proportion of statistic values in the Monte + Carlo null distribution that are at least as extreme as the statistic value + of the provided `data`. More precisely, the p-value is given by + + .. math:: + + p = \frac{b + 1} + {m + 1} + + where :math:`b` is the number of statistic values in the Monte Carlo null + distribution that are greater than or equal to the statistic value + calculated for `data`, and :math:`m` is the number of elements in the + Monte Carlo null distribution (`n_mc_samples`). The addition of :math:`1` + to the numerator and denominator can be thought of as including the + value of the statistic corresponding with `data` in the null distribution, + but a more formal explanation is given in [5]_. + + *Limitations* + + The test can be very slow for some distribution families because unknown + parameters of the distribution family must be fit to each of the Monte + Carlo samples, and for most distributions in SciPy, distribution fitting + performed via numerical optimization. + + *Anti-Pattern* + + For this reason, it may be tempting + to treat parameters of the distribution pre-fit to `data` (by the user) + as though they were `known_params`, as specification of all parameters of + the distribution precludes the need to fit the distribution to each Monte + Carlo sample. (This is essentially how the original Kilmogorov-Smirnov + test is performed.) Although such a test can provide evidence against the + null hypothesis, the test is conservative in the sense that small p-values + will tend to (greatly) *overestimate* the probability of making a type I + error (that is, rejecting the null hypothesis although it is true), and the + power of the test is low (that is, it is less likely to reject the null + hypothesis even when the null hypothesis is false). + This is because the Monte Carlo samples are less likely to agree with the + null-hypothesized distribution as well as `data`. This tends to increase + the values of the statistic recorded in the null distribution, so that a + larger number of them exceed the value of statistic for `data`, thereby + inflating the p-value. + + References + ---------- + .. [1] M. A. Stephens (1974). "EDF Statistics for Goodness of Fit and + Some Comparisons." Journal of the American Statistical Association, + Vol. 69, pp. 730-737. + .. [2] W. Stute, W. G. Manteiga, and M. P. Quindimil (1993). + "Bootstrap based goodness-of-fit-tests." Metrika 40.1: 243-256. + .. [3] C. Genest, & B Rémillard. (2008). "Validity of the parametric + bootstrap for goodness-of-fit testing in semiparametric models." + Annales de l'IHP Probabilités et statistiques. Vol. 44. No. 6. + .. [4] I. Kojadinovic and J. Yan (2012). "Goodness-of-fit testing based on + a weighted bootstrap: A fast large-sample alternative to the + parametric bootstrap." Canadian Journal of Statistics 40.3: 480-500. + .. [5] B. Phipson and G. K. Smyth (2010). "Permutation P-values Should + Never Be Zero: Calculating Exact P-values When Permutations Are + Randomly Drawn." Statistical Applications in Genetics and Molecular + Biology 9.1. + .. [6] H. W. Lilliefors (1967). "On the Kolmogorov-Smirnov test for + normality with mean and variance unknown." Journal of the American + statistical Association 62.318: 399-402. + .. [7] Filliben, James J. "The probability plot correlation coefficient + test for normality." Technometrics 17.1 (1975): 111-117. + + Examples + -------- + A well-known test of the null hypothesis that data were drawn from a + given distribution is the Kolmogorov-Smirnov (KS) test, available in SciPy + as `scipy.stats.ks_1samp`. Suppose we wish to test whether the following + data: + + >>> import numpy as np + >>> from scipy import stats + >>> rng = np.random.default_rng() + >>> x = stats.uniform.rvs(size=75, random_state=rng) + + were sampled from a normal distribution. To perform a KS test, the + empirical distribution function of the observed data will be compared + against the (theoretical) cumulative distribution function of a normal + distribution. Of course, to do this, the normal distribution under the null + hypothesis must be fully specified. This is commonly done by first fitting + the ``loc`` and ``scale`` parameters of the distribution to the observed + data, then performing the test. + + >>> loc, scale = np.mean(x), np.std(x, ddof=1) + >>> cdf = stats.norm(loc, scale).cdf + >>> stats.ks_1samp(x, cdf) + KstestResult(statistic=0.1119257570456813, + pvalue=0.2827756409939257, + statistic_location=0.7751845155861765, + statistic_sign=-1) + + An advantage of the KS-test is that the p-value - the probability of + obtaining a value of the test statistic under the null hypothesis as + extreme as the value obtained from the observed data - can be calculated + exactly and efficiently. `goodness_of_fit` can only approximate these + results. + + >>> known_params = {'loc': loc, 'scale': scale} + >>> res = stats.goodness_of_fit(stats.norm, x, known_params=known_params, + ... statistic='ks', rng=rng) + >>> res.statistic, res.pvalue + (0.1119257570456813, 0.2788) + + The statistic matches exactly, but the p-value is estimated by forming + a "Monte Carlo null distribution", that is, by explicitly drawing random + samples from `scipy.stats.norm` with the provided parameters and + calculating the stastic for each. The fraction of these statistic values + at least as extreme as ``res.statistic`` approximates the exact p-value + calculated by `scipy.stats.ks_1samp`. + + However, in many cases, we would prefer to test only that the data were + sampled from one of *any* member of the normal distribution family, not + specifically from the normal distribution with the location and scale + fitted to the observed sample. In this case, Lilliefors [6]_ argued that + the KS test is far too conservative (that is, the p-value overstates + the actual probability of rejecting a true null hypothesis) and thus lacks + power - the ability to reject the null hypothesis when the null hypothesis + is actually false. + Indeed, our p-value above is approximately 0.28, which is far too large + to reject the null hypothesis at any common significance level. + + Consider why this might be. Note that in the KS test above, the statistic + always compares data against the CDF of a normal distribution fitted to the + *observed data*. This tends to reduce the value of the statistic for the + observed data, but it is "unfair" when computing the statistic for other + samples, such as those we randomly draw to form the Monte Carlo null + distribution. It is easy to correct for this: whenever we compute the KS + statistic of a sample, we use the CDF of a normal distribution fitted + to *that sample*. The null distribution in this case has not been + calculated exactly and is tyically approximated using Monte Carlo methods + as described above. This is where `goodness_of_fit` excels. + + >>> res = stats.goodness_of_fit(stats.norm, x, statistic='ks', + ... rng=rng) + >>> res.statistic, res.pvalue + (0.1119257570456813, 0.0196) + + Indeed, this p-value is much smaller, and small enough to (correctly) + reject the null hypothesis at common significance levels, including 5% and + 2.5%. + + However, the KS statistic is not very sensitive to all deviations from + normality. The original advantage of the KS statistic was the ability + to compute the null distribution theoretically, but a more sensitive + statistic - resulting in a higher test power - can be used now that we can + approximate the null distribution + computationally. The Anderson-Darling statistic [1]_ tends to be more + sensitive, and critical values of the this statistic have been tabulated + for various significance levels and sample sizes using Monte Carlo methods. + + >>> res = stats.anderson(x, 'norm') + >>> print(res.statistic) + 1.2139573337497467 + >>> print(res.critical_values) + [0.549 0.625 0.75 0.875 1.041] + >>> print(res.significance_level) + [15. 10. 5. 2.5 1. ] + + Here, the observed value of the statistic exceeds the critical value + corresponding with a 1% significance level. This tells us that the p-value + of the observed data is less than 1%, but what is it? We could interpolate + from these (already-interpolated) values, but `goodness_of_fit` can + estimate it directly. + + >>> res = stats.goodness_of_fit(stats.norm, x, statistic='ad', + ... rng=rng) + >>> res.statistic, res.pvalue + (1.2139573337497467, 0.0034) + + A further advantage is that use of `goodness_of_fit` is not limited to + a particular set of distributions or conditions on which parameters + are known versus which must be estimated from data. Instead, + `goodness_of_fit` can estimate p-values relatively quickly for any + distribution with a sufficiently fast and reliable ``fit`` method. For + instance, here we perform a goodness of fit test using the Cramer-von Mises + statistic against the Rayleigh distribution with known location and unknown + scale. + + >>> rng = np.random.default_rng() + >>> x = stats.chi(df=2.2, loc=0, scale=2).rvs(size=1000, random_state=rng) + >>> res = stats.goodness_of_fit(stats.rayleigh, x, statistic='cvm', + ... known_params={'loc': 0}, rng=rng) + + This executes fairly quickly, but to check the reliability of the ``fit`` + method, we should inspect the fit result. + + >>> res.fit_result # location is as specified, and scale is reasonable + params: FitParams(loc=0.0, scale=2.1026719844231243) + success: True + message: 'The fit was performed successfully.' + >>> import matplotlib.pyplot as plt # matplotlib must be installed to plot + >>> res.fit_result.plot() + >>> plt.show() + + If the distribution is not fit to the observed data as well as possible, + the test may not control the type I error rate, that is, the chance of + rejecting the null hypothesis even when it is true. + + We should also look for extreme outliers in the null distribution that + may be caused by unreliable fitting. These do not necessarily invalidate + the result, but they tend to reduce the test's power. + + >>> _, ax = plt.subplots() + >>> ax.hist(np.log10(res.null_distribution)) + >>> ax.set_xlabel("log10 of CVM statistic under the null hypothesis") + >>> ax.set_ylabel("Frequency") + >>> ax.set_title("Histogram of the Monte Carlo null distribution") + >>> plt.show() + + This plot seems reassuring. + + If ``fit`` method is working reliably, and if the distribution of the test + statistic is not particularly sensitive to the values of the fitted + parameters, then the p-value provided by `goodness_of_fit` is expected to + be a good approximation. + + >>> res.statistic, res.pvalue + (0.2231991510248692, 0.0525) + + """ + args = _gof_iv(dist, data, known_params, fit_params, guessed_params, + statistic, n_mc_samples, rng) + (dist, data, fixed_nhd_params, fixed_rfd_params, guessed_nhd_params, + guessed_rfd_params, statistic, n_mc_samples_int, rng) = args + + # Fit null hypothesis distribution to data + nhd_fit_fun = _get_fit_fun(dist, data, guessed_nhd_params, + fixed_nhd_params) + nhd_vals = nhd_fit_fun(data) + nhd_dist = dist(*nhd_vals) + + def rvs(size): + return nhd_dist.rvs(size=size, random_state=rng) + + # Define statistic + fit_fun = _get_fit_fun(dist, data, guessed_rfd_params, fixed_rfd_params) + if callable(statistic): + compare_fun = statistic + else: + compare_fun = _compare_dict[statistic] + alternative = getattr(compare_fun, 'alternative', 'greater') + + def statistic_fun(data, axis): + # Make things simple by always working along the last axis. + data = np.moveaxis(data, axis, -1) + rfd_vals = fit_fun(data) + rfd_dist = dist(*rfd_vals) + return compare_fun(rfd_dist, data, axis=-1) + + res = stats.monte_carlo_test(data, rvs, statistic_fun, vectorized=True, + n_resamples=n_mc_samples, axis=-1, + alternative=alternative) + opt_res = optimize.OptimizeResult() + opt_res.success = True + opt_res.message = "The fit was performed successfully." + opt_res.x = nhd_vals + # Only continuous distributions for now, hence discrete=False + # There's no fundamental limitation; it's just that we're not using + # stats.fit, discrete distributions don't have `fit` method, and + # we haven't written any vectorized fit functions for a discrete + # distribution yet. + return GoodnessOfFitResult(FitResult(dist, data, False, opt_res), + res.statistic, res.pvalue, + res.null_distribution) + + +def _get_fit_fun(dist, data, guessed_params, fixed_params): + + shape_names = [] if dist.shapes is None else dist.shapes.split(", ") + param_names = shape_names + ['loc', 'scale'] + fparam_names = ['f'+name for name in param_names] + all_fixed = not set(fparam_names).difference(fixed_params) + guessed_shapes = [guessed_params.pop(x, None) + for x in shape_names if x in guessed_params] + + if all_fixed: + def fit_fun(data): + return [fixed_params[name] for name in fparam_names] + # Define statistic, including fitting distribution to data + elif dist in _fit_funs: + def fit_fun(data): + params = _fit_funs[dist](data, **fixed_params) + params = np.asarray(np.broadcast_arrays(*params)) + if params.ndim > 1: + params = params[..., np.newaxis] + return params + else: + def fit_fun_1d(data): + return dist.fit(data, *guessed_shapes, **guessed_params, + **fixed_params) + + def fit_fun(data): + params = np.apply_along_axis(fit_fun_1d, axis=-1, arr=data) + if params.ndim > 1: + params = params.T[..., np.newaxis] + return params + + return fit_fun + + +# Vectorized fitting functions. These are to accept ND `data` in which each +# row (slice along last axis) is a sample to fit and scalar fixed parameters. +# They return a tuple of shape parameter arrays, each of shape data.shape[:-1]. +def _fit_norm(data, floc=None, fscale=None): + loc = floc + scale = fscale + if loc is None and scale is None: + loc = np.mean(data, axis=-1) + scale = np.std(data, ddof=1, axis=-1) + elif loc is None: + loc = np.mean(data, axis=-1) + elif scale is None: + scale = np.sqrt(((data - loc)**2).mean(axis=-1)) + return loc, scale + + +_fit_funs = {stats.norm: _fit_norm} # type: ignore[attr-defined] + + +# Vectorized goodness of fit statistic functions. These accept a frozen +# distribution object and `data` in which each row (slice along last axis) is +# a sample. + + +def _anderson_darling(dist, data, axis): + x = np.sort(data, axis=-1) + n = data.shape[-1] + i = np.arange(1, n+1) + Si = (2*i - 1)/n * (dist.logcdf(x) + dist.logsf(x[..., ::-1])) + S = np.sum(Si, axis=-1) + return -n - S + + +def _compute_dplus(cdfvals): # adapted from _stats_py before gh-17062 + n = cdfvals.shape[-1] + return (np.arange(1.0, n + 1) / n - cdfvals).max(axis=-1) + + +def _compute_dminus(cdfvals): + n = cdfvals.shape[-1] + return (cdfvals - np.arange(0.0, n)/n).max(axis=-1) + + +def _kolmogorov_smirnov(dist, data, axis=-1): + x = np.sort(data, axis=axis) + cdfvals = dist.cdf(x) + cdfvals = np.moveaxis(cdfvals, axis, -1) + Dplus = _compute_dplus(cdfvals) # always works along last axis + Dminus = _compute_dminus(cdfvals) + return np.maximum(Dplus, Dminus) + + +def _corr(X, M): + # Correlation coefficient r, simplified and vectorized as we need it. + # See [7] Equation (2). Lemma 1/2 are only for distributions symmetric + # about 0. + Xm = X.mean(axis=-1, keepdims=True) + Mm = M.mean(axis=-1, keepdims=True) + num = np.sum((X - Xm) * (M - Mm), axis=-1) + den = np.sqrt(np.sum((X - Xm)**2, axis=-1) * np.sum((M - Mm)**2, axis=-1)) + return num/den + + +def _filliben(dist, data, axis): + # [7] Section 8 # 1 + X = np.sort(data, axis=-1) + + # [7] Section 8 # 2 + n = data.shape[-1] + k = np.arange(1, n+1) + # Filliben used an approximation for the uniform distribution order + # statistic medians. + # m = (k - .3175)/(n + 0.365) + # m[-1] = 0.5**(1/n) + # m[0] = 1 - m[-1] + # We can just as easily use the (theoretically) exact values. See e.g. + # https://en.wikipedia.org/wiki/Order_statistic + # "Order statistics sampled from a uniform distribution" + m = stats.beta(k, n + 1 - k).median() + + # [7] Section 8 # 3 + M = dist.ppf(m) + + # [7] Section 8 # 4 + return _corr(X, M) +_filliben.alternative = 'less' # type: ignore[attr-defined] + + +def _cramer_von_mises(dist, data, axis): + x = np.sort(data, axis=-1) + n = data.shape[-1] + cdfvals = dist.cdf(x) + u = (2*np.arange(1, n+1) - 1)/(2*n) + w = 1 / (12*n) + np.sum((u - cdfvals)**2, axis=-1) + return w + + +_compare_dict = {"ad": _anderson_darling, "ks": _kolmogorov_smirnov, + "cvm": _cramer_von_mises, "filliben": _filliben} + + +def _gof_iv(dist, data, known_params, fit_params, guessed_params, statistic, + n_mc_samples, rng): + + if not isinstance(dist, stats.rv_continuous): + message = ("`dist` must be a (non-frozen) instance of " + "`stats.rv_continuous`.") + raise TypeError(message) + + data = np.asarray(data, dtype=float) + if not data.ndim == 1: + message = "`data` must be a one-dimensional array of numbers." + raise ValueError(message) + + # Leave validation of these key/value pairs to the `fit` method, + # but collect these into dictionaries that will be used + known_params = known_params or dict() + fit_params = fit_params or dict() + guessed_params = guessed_params or dict() + + known_params_f = {("f"+key): val for key, val in known_params.items()} + fit_params_f = {("f"+key): val for key, val in fit_params.items()} + + # These are the values of parameters of the null distribution family + # with which resamples are drawn + fixed_nhd_params = known_params_f.copy() + fixed_nhd_params.update(fit_params_f) + + # These are fixed when fitting the distribution family to resamples + fixed_rfd_params = known_params_f.copy() + + # These are used as guesses when fitting the distribution family to + # the original data + guessed_nhd_params = guessed_params.copy() + + # These are used as guesses when fitting the distribution family to + # resamples + guessed_rfd_params = fit_params.copy() + guessed_rfd_params.update(guessed_params) + + if not callable(statistic): + statistic = statistic.lower() + statistics = {'ad', 'ks', 'cvm', 'filliben'} + if statistic not in statistics: + message = f"`statistic` must be one of {statistics}." + raise ValueError(message) + + n_mc_samples_int = int(n_mc_samples) + if n_mc_samples_int != n_mc_samples: + message = "`n_mc_samples` must be an integer." + raise TypeError(message) + + rng = check_random_state(rng) + + return (dist, data, fixed_nhd_params, fixed_rfd_params, guessed_nhd_params, + guessed_rfd_params, statistic, n_mc_samples_int, rng) diff --git a/shared/package-files/3e/3e645fe03caa6f493df79799322e7bfdcbda225fe6a99e82af8cd55f8a338826/_bayesian_mixture.py b/shared/package-files/3e/3e645fe03caa6f493df79799322e7bfdcbda225fe6a99e82af8cd55f8a338826/_bayesian_mixture.py new file mode 100644 index 0000000000000000000000000000000000000000..57220186faf61694f0945a276bc60254ba861bd5 --- /dev/null +++ b/shared/package-files/3e/3e645fe03caa6f493df79799322e7bfdcbda225fe6a99e82af8cd55f8a338826/_bayesian_mixture.py @@ -0,0 +1,891 @@ +"""Bayesian Gaussian Mixture Model.""" + +# Authors: The scikit-learn developers +# SPDX-License-Identifier: BSD-3-Clause + +import math +from numbers import Real + +import numpy as np +from scipy.special import betaln, digamma, gammaln + +from ..utils import check_array +from ..utils._param_validation import Interval, StrOptions +from ._base import BaseMixture, _check_shape +from ._gaussian_mixture import ( + _check_precision_matrix, + _check_precision_positivity, + _compute_log_det_cholesky, + _compute_precision_cholesky, + _estimate_gaussian_parameters, + _estimate_log_gaussian_prob, +) + + +def _log_dirichlet_norm(dirichlet_concentration): + """Compute the log of the Dirichlet distribution normalization term. + + Parameters + ---------- + dirichlet_concentration : array-like of shape (n_samples,) + The parameters values of the Dirichlet distribution. + + Returns + ------- + log_dirichlet_norm : float + The log normalization of the Dirichlet distribution. + """ + return gammaln(np.sum(dirichlet_concentration)) - np.sum( + gammaln(dirichlet_concentration) + ) + + +def _log_wishart_norm(degrees_of_freedom, log_det_precisions_chol, n_features): + """Compute the log of the Wishart distribution normalization term. + + Parameters + ---------- + degrees_of_freedom : array-like of shape (n_components,) + The number of degrees of freedom on the covariance Wishart + distributions. + + log_det_precision_chol : array-like of shape (n_components,) + The determinant of the precision matrix for each component. + + n_features : int + The number of features. + + Return + ------ + log_wishart_norm : array-like of shape (n_components,) + The log normalization of the Wishart distribution. + """ + # To simplify the computation we have removed the np.log(np.pi) term + return -( + degrees_of_freedom * log_det_precisions_chol + + degrees_of_freedom * n_features * 0.5 * math.log(2.0) + + np.sum( + gammaln(0.5 * (degrees_of_freedom - np.arange(n_features)[:, np.newaxis])), + 0, + ) + ) + + +class BayesianGaussianMixture(BaseMixture): + """Variational Bayesian estimation of a Gaussian mixture. + + This class allows to infer an approximate posterior distribution over the + parameters of a Gaussian mixture distribution. The effective number of + components can be inferred from the data. + + This class implements two types of prior for the weights distribution: a + finite mixture model with Dirichlet distribution and an infinite mixture + model with the Dirichlet Process. In practice Dirichlet Process inference + algorithm is approximated and uses a truncated distribution with a fixed + maximum number of components (called the Stick-breaking representation). + The number of components actually used almost always depends on the data. + + .. versionadded:: 0.18 + + Read more in the :ref:`User Guide `. + + Parameters + ---------- + n_components : int, default=1 + The number of mixture components. Depending on the data and the value + of the `weight_concentration_prior` the model can decide to not use + all the components by setting some component `weights_` to values very + close to zero. The number of effective components is therefore smaller + than n_components. + + covariance_type : {'full', 'tied', 'diag', 'spherical'}, default='full' + String describing the type of covariance parameters to use. + Must be one of: + + - 'full' (each component has its own general covariance matrix), + - 'tied' (all components share the same general covariance matrix), + - 'diag' (each component has its own diagonal covariance matrix), + - 'spherical' (each component has its own single variance). + + tol : float, default=1e-3 + The convergence threshold. EM iterations will stop when the + lower bound average gain on the likelihood (of the training data with + respect to the model) is below this threshold. + + reg_covar : float, default=1e-6 + Non-negative regularization added to the diagonal of covariance. + Allows to assure that the covariance matrices are all positive. + + max_iter : int, default=100 + The number of EM iterations to perform. + + n_init : int, default=1 + The number of initializations to perform. The result with the highest + lower bound value on the likelihood is kept. + + init_params : {'kmeans', 'k-means++', 'random', 'random_from_data'}, \ + default='kmeans' + The method used to initialize the weights, the means and the + covariances. String must be one of: + + - 'kmeans': responsibilities are initialized using kmeans. + - 'k-means++': use the k-means++ method to initialize. + - 'random': responsibilities are initialized randomly. + - 'random_from_data': initial means are randomly selected data points. + + .. versionchanged:: v1.1 + `init_params` now accepts 'random_from_data' and 'k-means++' as + initialization methods. + + weight_concentration_prior_type : {'dirichlet_process', 'dirichlet_distribution'}, \ + default='dirichlet_process' + String describing the type of the weight concentration prior. + + weight_concentration_prior : float or None, default=None + The dirichlet concentration of each component on the weight + distribution (Dirichlet). This is commonly called gamma in the + literature. The higher concentration puts more mass in + the center and will lead to more components being active, while a lower + concentration parameter will lead to more mass at the edge of the + mixture weights simplex. The value of the parameter must be greater + than 0. If it is None, it's set to ``1. / n_components``. + + mean_precision_prior : float or None, default=None + The precision prior on the mean distribution (Gaussian). + Controls the extent of where means can be placed. Larger + values concentrate the cluster means around `mean_prior`. + The value of the parameter must be greater than 0. + If it is None, it is set to 1. + + mean_prior : array-like, shape (n_features,), default=None + The prior on the mean distribution (Gaussian). + If it is None, it is set to the mean of X. + + degrees_of_freedom_prior : float or None, default=None + The prior of the number of degrees of freedom on the covariance + distributions (Wishart). If it is None, it's set to `n_features`. + + covariance_prior : float or array-like, default=None + The prior on the covariance distribution (Wishart). + If it is None, the emiprical covariance prior is initialized using the + covariance of X. The shape depends on `covariance_type`:: + + (n_features, n_features) if 'full', + (n_features, n_features) if 'tied', + (n_features) if 'diag', + float if 'spherical' + + random_state : int, RandomState instance or None, default=None + Controls the random seed given to the method chosen to initialize the + parameters (see `init_params`). + In addition, it controls the generation of random samples from the + fitted distribution (see the method `sample`). + Pass an int for reproducible output across multiple function calls. + See :term:`Glossary `. + + warm_start : bool, default=False + If 'warm_start' is True, the solution of the last fitting is used as + initialization for the next call of fit(). This can speed up + convergence when fit is called several times on similar problems. + See :term:`the Glossary `. + + verbose : int, default=0 + Enable verbose output. If 1 then it prints the current + initialization and each iteration step. If greater than 1 then + it prints also the log probability and the time needed + for each step. + + verbose_interval : int, default=10 + Number of iteration done before the next print. + + Attributes + ---------- + weights_ : array-like of shape (n_components,) + The weights of each mixture components. + + means_ : array-like of shape (n_components, n_features) + The mean of each mixture component. + + covariances_ : array-like + The covariance of each mixture component. + The shape depends on `covariance_type`:: + + (n_components,) if 'spherical', + (n_features, n_features) if 'tied', + (n_components, n_features) if 'diag', + (n_components, n_features, n_features) if 'full' + + precisions_ : array-like + The precision matrices for each component in the mixture. A precision + matrix is the inverse of a covariance matrix. A covariance matrix is + symmetric positive definite so the mixture of Gaussian can be + equivalently parameterized by the precision matrices. Storing the + precision matrices instead of the covariance matrices makes it more + efficient to compute the log-likelihood of new samples at test time. + The shape depends on ``covariance_type``:: + + (n_components,) if 'spherical', + (n_features, n_features) if 'tied', + (n_components, n_features) if 'diag', + (n_components, n_features, n_features) if 'full' + + precisions_cholesky_ : array-like + The cholesky decomposition of the precision matrices of each mixture + component. A precision matrix is the inverse of a covariance matrix. + A covariance matrix is symmetric positive definite so the mixture of + Gaussian can be equivalently parameterized by the precision matrices. + Storing the precision matrices instead of the covariance matrices makes + it more efficient to compute the log-likelihood of new samples at test + time. The shape depends on ``covariance_type``:: + + (n_components,) if 'spherical', + (n_features, n_features) if 'tied', + (n_components, n_features) if 'diag', + (n_components, n_features, n_features) if 'full' + + converged_ : bool + True when convergence of the best fit of inference was reached, False otherwise. + + n_iter_ : int + Number of step used by the best fit of inference to reach the + convergence. + + lower_bound_ : float + Lower bound value on the model evidence (of the training data) of the + best fit of inference. + + lower_bounds_ : array-like of shape (`n_iter_`,) + The list of lower bound values on the model evidence from each iteration + of the best fit of inference. + + weight_concentration_prior_ : tuple or float + The dirichlet concentration of each component on the weight + distribution (Dirichlet). The type depends on + ``weight_concentration_prior_type``:: + + (float, float) if 'dirichlet_process' (Beta parameters), + float if 'dirichlet_distribution' (Dirichlet parameters). + + The higher concentration puts more mass in + the center and will lead to more components being active, while a lower + concentration parameter will lead to more mass at the edge of the + simplex. + + weight_concentration_ : array-like of shape (n_components,) + The dirichlet concentration of each component on the weight + distribution (Dirichlet). + + mean_precision_prior_ : float + The precision prior on the mean distribution (Gaussian). + Controls the extent of where means can be placed. + Larger values concentrate the cluster means around `mean_prior`. + If mean_precision_prior is set to None, `mean_precision_prior_` is set + to 1. + + mean_precision_ : array-like of shape (n_components,) + The precision of each components on the mean distribution (Gaussian). + + mean_prior_ : array-like of shape (n_features,) + The prior on the mean distribution (Gaussian). + + degrees_of_freedom_prior_ : float + The prior of the number of degrees of freedom on the covariance + distributions (Wishart). + + degrees_of_freedom_ : array-like of shape (n_components,) + The number of degrees of freedom of each components in the model. + + covariance_prior_ : float or array-like + The prior on the covariance distribution (Wishart). + The shape depends on `covariance_type`:: + + (n_features, n_features) if 'full', + (n_features, n_features) if 'tied', + (n_features) if 'diag', + float if 'spherical' + + 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 + -------- + GaussianMixture : Finite Gaussian mixture fit with EM. + + References + ---------- + + .. [1] `Bishop, Christopher M. (2006). "Pattern recognition and machine + learning". Vol. 4 No. 4. New York: Springer. + `_ + + .. [2] `Hagai Attias. (2000). "A Variational Bayesian Framework for + Graphical Models". In Advances in Neural Information Processing + Systems 12. + `_ + + .. [3] `Blei, David M. and Michael I. Jordan. (2006). "Variational + inference for Dirichlet process mixtures". Bayesian analysis 1.1 + `_ + + Examples + -------- + >>> import numpy as np + >>> from sklearn.mixture import BayesianGaussianMixture + >>> X = np.array([[1, 2], [1, 4], [1, 0], [4, 2], [12, 4], [10, 7]]) + >>> bgm = BayesianGaussianMixture(n_components=2, random_state=42).fit(X) + >>> bgm.means_ + array([[2.49 , 2.29], + [8.45, 4.52 ]]) + >>> bgm.predict([[0, 0], [9, 3]]) + array([0, 1]) + """ + + _parameter_constraints: dict = { + **BaseMixture._parameter_constraints, + "covariance_type": [StrOptions({"spherical", "tied", "diag", "full"})], + "weight_concentration_prior_type": [ + StrOptions({"dirichlet_process", "dirichlet_distribution"}) + ], + "weight_concentration_prior": [ + None, + Interval(Real, 0.0, None, closed="neither"), + ], + "mean_precision_prior": [None, Interval(Real, 0.0, None, closed="neither")], + "mean_prior": [None, "array-like"], + "degrees_of_freedom_prior": [None, Interval(Real, 0.0, None, closed="neither")], + "covariance_prior": [ + None, + "array-like", + Interval(Real, 0.0, None, closed="neither"), + ], + } + + def __init__( + self, + *, + n_components=1, + covariance_type="full", + tol=1e-3, + reg_covar=1e-6, + max_iter=100, + n_init=1, + init_params="kmeans", + weight_concentration_prior_type="dirichlet_process", + weight_concentration_prior=None, + mean_precision_prior=None, + mean_prior=None, + degrees_of_freedom_prior=None, + covariance_prior=None, + random_state=None, + warm_start=False, + verbose=0, + verbose_interval=10, + ): + super().__init__( + n_components=n_components, + tol=tol, + reg_covar=reg_covar, + max_iter=max_iter, + n_init=n_init, + init_params=init_params, + random_state=random_state, + warm_start=warm_start, + verbose=verbose, + verbose_interval=verbose_interval, + ) + + self.covariance_type = covariance_type + self.weight_concentration_prior_type = weight_concentration_prior_type + self.weight_concentration_prior = weight_concentration_prior + self.mean_precision_prior = mean_precision_prior + self.mean_prior = mean_prior + self.degrees_of_freedom_prior = degrees_of_freedom_prior + self.covariance_prior = covariance_prior + + def _check_parameters(self, X): + """Check that the parameters are well defined. + + Parameters + ---------- + X : array-like of shape (n_samples, n_features) + """ + self._check_weights_parameters() + self._check_means_parameters(X) + self._check_precision_parameters(X) + self._checkcovariance_prior_parameter(X) + + def _check_weights_parameters(self): + """Check the parameter of the Dirichlet distribution.""" + if self.weight_concentration_prior is None: + self.weight_concentration_prior_ = 1.0 / self.n_components + else: + self.weight_concentration_prior_ = self.weight_concentration_prior + + def _check_means_parameters(self, X): + """Check the parameters of the Gaussian distribution. + + Parameters + ---------- + X : array-like of shape (n_samples, n_features) + """ + _, n_features = X.shape + + if self.mean_precision_prior is None: + self.mean_precision_prior_ = 1.0 + else: + self.mean_precision_prior_ = self.mean_precision_prior + + if self.mean_prior is None: + self.mean_prior_ = X.mean(axis=0) + else: + self.mean_prior_ = check_array( + self.mean_prior, dtype=[np.float64, np.float32], ensure_2d=False + ) + _check_shape(self.mean_prior_, (n_features,), "means") + + def _check_precision_parameters(self, X): + """Check the prior parameters of the precision distribution. + + Parameters + ---------- + X : array-like of shape (n_samples, n_features) + """ + _, n_features = X.shape + + if self.degrees_of_freedom_prior is None: + self.degrees_of_freedom_prior_ = n_features + elif self.degrees_of_freedom_prior > n_features - 1.0: + self.degrees_of_freedom_prior_ = self.degrees_of_freedom_prior + else: + raise ValueError( + "The parameter 'degrees_of_freedom_prior' " + "should be greater than %d, but got %.3f." + % (n_features - 1, self.degrees_of_freedom_prior) + ) + + def _checkcovariance_prior_parameter(self, X): + """Check the `covariance_prior_`. + + Parameters + ---------- + X : array-like of shape (n_samples, n_features) + """ + _, n_features = X.shape + + if self.covariance_prior is None: + self.covariance_prior_ = { + "full": np.atleast_2d(np.cov(X.T)), + "tied": np.atleast_2d(np.cov(X.T)), + "diag": np.var(X, axis=0, ddof=1), + "spherical": np.var(X, axis=0, ddof=1).mean(), + }[self.covariance_type] + + elif self.covariance_type in ["full", "tied"]: + self.covariance_prior_ = check_array( + self.covariance_prior, dtype=[np.float64, np.float32], ensure_2d=False + ) + _check_shape( + self.covariance_prior_, + (n_features, n_features), + "%s covariance_prior" % self.covariance_type, + ) + _check_precision_matrix(self.covariance_prior_, self.covariance_type) + elif self.covariance_type == "diag": + self.covariance_prior_ = check_array( + self.covariance_prior, dtype=[np.float64, np.float32], ensure_2d=False + ) + _check_shape( + self.covariance_prior_, + (n_features,), + "%s covariance_prior" % self.covariance_type, + ) + _check_precision_positivity(self.covariance_prior_, self.covariance_type) + # spherical case + else: + self.covariance_prior_ = self.covariance_prior + + def _initialize(self, X, resp): + """Initialization of the mixture parameters. + + Parameters + ---------- + X : array-like of shape (n_samples, n_features) + + resp : array-like of shape (n_samples, n_components) + """ + nk, xk, sk = _estimate_gaussian_parameters( + X, resp, self.reg_covar, self.covariance_type + ) + + self._estimate_weights(nk) + self._estimate_means(nk, xk) + self._estimate_precisions(nk, xk, sk) + + def _estimate_weights(self, nk): + """Estimate the parameters of the Dirichlet distribution. + + Parameters + ---------- + nk : array-like of shape (n_components,) + """ + if self.weight_concentration_prior_type == "dirichlet_process": + # For dirichlet process weight_concentration will be a tuple + # containing the two parameters of the beta distribution + self.weight_concentration_ = ( + 1.0 + nk, + ( + self.weight_concentration_prior_ + + np.hstack((np.cumsum(nk[::-1])[-2::-1], 0)) + ), + ) + else: + # case Variational Gaussian mixture with dirichlet distribution + self.weight_concentration_ = self.weight_concentration_prior_ + nk + + def _estimate_means(self, nk, xk): + """Estimate the parameters of the Gaussian distribution. + + Parameters + ---------- + nk : array-like of shape (n_components,) + + xk : array-like of shape (n_components, n_features) + """ + self.mean_precision_ = self.mean_precision_prior_ + nk + self.means_ = ( + self.mean_precision_prior_ * self.mean_prior_ + nk[:, np.newaxis] * xk + ) / self.mean_precision_[:, np.newaxis] + + def _estimate_precisions(self, nk, xk, sk): + """Estimate the precisions parameters of the precision distribution. + + Parameters + ---------- + nk : array-like of shape (n_components,) + + xk : array-like of shape (n_components, n_features) + + sk : array-like + The shape depends of `covariance_type`: + 'full' : (n_components, n_features, n_features) + 'tied' : (n_features, n_features) + 'diag' : (n_components, n_features) + 'spherical' : (n_components,) + """ + { + "full": self._estimate_wishart_full, + "tied": self._estimate_wishart_tied, + "diag": self._estimate_wishart_diag, + "spherical": self._estimate_wishart_spherical, + }[self.covariance_type](nk, xk, sk) + + self.precisions_cholesky_ = _compute_precision_cholesky( + self.covariances_, self.covariance_type + ) + + def _estimate_wishart_full(self, nk, xk, sk): + """Estimate the full Wishart distribution parameters. + + Parameters + ---------- + X : array-like of shape (n_samples, n_features) + + nk : array-like of shape (n_components,) + + xk : array-like of shape (n_components, n_features) + + sk : array-like of shape (n_components, n_features, n_features) + """ + _, n_features = xk.shape + + # Warning : in some Bishop book, there is a typo on the formula 10.63 + # `degrees_of_freedom_k = degrees_of_freedom_0 + Nk` is + # the correct formula + self.degrees_of_freedom_ = self.degrees_of_freedom_prior_ + nk + + self.covariances_ = np.empty((self.n_components, n_features, n_features)) + + for k in range(self.n_components): + diff = xk[k] - self.mean_prior_ + self.covariances_[k] = ( + self.covariance_prior_ + + nk[k] * sk[k] + + nk[k] + * self.mean_precision_prior_ + / self.mean_precision_[k] + * np.outer(diff, diff) + ) + + # Contrary to the original bishop book, we normalize the covariances + self.covariances_ /= self.degrees_of_freedom_[:, np.newaxis, np.newaxis] + + def _estimate_wishart_tied(self, nk, xk, sk): + """Estimate the tied Wishart distribution parameters. + + Parameters + ---------- + X : array-like of shape (n_samples, n_features) + + nk : array-like of shape (n_components,) + + xk : array-like of shape (n_components, n_features) + + sk : array-like of shape (n_features, n_features) + """ + _, n_features = xk.shape + + # Warning : in some Bishop book, there is a typo on the formula 10.63 + # `degrees_of_freedom_k = degrees_of_freedom_0 + Nk` + # is the correct formula + self.degrees_of_freedom_ = ( + self.degrees_of_freedom_prior_ + nk.sum() / self.n_components + ) + + diff = xk - self.mean_prior_ + self.covariances_ = ( + self.covariance_prior_ + + sk * nk.sum() / self.n_components + + self.mean_precision_prior_ + / self.n_components + * np.dot((nk / self.mean_precision_) * diff.T, diff) + ) + + # Contrary to the original bishop book, we normalize the covariances + self.covariances_ /= self.degrees_of_freedom_ + + def _estimate_wishart_diag(self, nk, xk, sk): + """Estimate the diag Wishart distribution parameters. + + Parameters + ---------- + X : array-like of shape (n_samples, n_features) + + nk : array-like of shape (n_components,) + + xk : array-like of shape (n_components, n_features) + + sk : array-like of shape (n_components, n_features) + """ + _, n_features = xk.shape + + # Warning : in some Bishop book, there is a typo on the formula 10.63 + # `degrees_of_freedom_k = degrees_of_freedom_0 + Nk` + # is the correct formula + self.degrees_of_freedom_ = self.degrees_of_freedom_prior_ + nk + + diff = xk - self.mean_prior_ + self.covariances_ = self.covariance_prior_ + nk[:, np.newaxis] * ( + sk + + (self.mean_precision_prior_ / self.mean_precision_)[:, np.newaxis] + * np.square(diff) + ) + + # Contrary to the original bishop book, we normalize the covariances + self.covariances_ /= self.degrees_of_freedom_[:, np.newaxis] + + def _estimate_wishart_spherical(self, nk, xk, sk): + """Estimate the spherical Wishart distribution parameters. + + Parameters + ---------- + X : array-like of shape (n_samples, n_features) + + nk : array-like of shape (n_components,) + + xk : array-like of shape (n_components, n_features) + + sk : array-like of shape (n_components,) + """ + _, n_features = xk.shape + + # Warning : in some Bishop book, there is a typo on the formula 10.63 + # `degrees_of_freedom_k = degrees_of_freedom_0 + Nk` + # is the correct formula + self.degrees_of_freedom_ = self.degrees_of_freedom_prior_ + nk + + diff = xk - self.mean_prior_ + self.covariances_ = self.covariance_prior_ + nk * ( + sk + + self.mean_precision_prior_ + / self.mean_precision_ + * np.mean(np.square(diff), 1) + ) + + # Contrary to the original bishop book, we normalize the covariances + self.covariances_ /= self.degrees_of_freedom_ + + def _m_step(self, X, log_resp): + """M step. + + Parameters + ---------- + X : array-like of shape (n_samples, n_features) + + log_resp : array-like of shape (n_samples, n_components) + Logarithm of the posterior probabilities (or responsibilities) of + the point of each sample in X. + """ + n_samples, _ = X.shape + + nk, xk, sk = _estimate_gaussian_parameters( + X, np.exp(log_resp), self.reg_covar, self.covariance_type + ) + self._estimate_weights(nk) + self._estimate_means(nk, xk) + self._estimate_precisions(nk, xk, sk) + + def _estimate_log_weights(self): + if self.weight_concentration_prior_type == "dirichlet_process": + digamma_sum = digamma( + self.weight_concentration_[0] + self.weight_concentration_[1] + ) + digamma_a = digamma(self.weight_concentration_[0]) + digamma_b = digamma(self.weight_concentration_[1]) + return ( + digamma_a + - digamma_sum + + np.hstack((0, np.cumsum(digamma_b - digamma_sum)[:-1])) + ) + else: + # case Variational Gaussian mixture with dirichlet distribution + return digamma(self.weight_concentration_) - digamma( + np.sum(self.weight_concentration_) + ) + + def _estimate_log_prob(self, X): + _, n_features = X.shape + # We remove `n_features * np.log(self.degrees_of_freedom_)` because + # the precision matrix is normalized + log_gauss = _estimate_log_gaussian_prob( + X, self.means_, self.precisions_cholesky_, self.covariance_type + ) - 0.5 * n_features * np.log(self.degrees_of_freedom_) + + log_lambda = n_features * np.log(2.0) + np.sum( + digamma( + 0.5 + * (self.degrees_of_freedom_ - np.arange(0, n_features)[:, np.newaxis]) + ), + 0, + ) + + return log_gauss + 0.5 * (log_lambda - n_features / self.mean_precision_) + + def _compute_lower_bound(self, log_resp, log_prob_norm): + """Estimate the lower bound of the model. + + The lower bound on the likelihood (of the training data with respect to + the model) is used to detect the convergence and has to increase at + each iteration. + + Parameters + ---------- + X : array-like of shape (n_samples, n_features) + + log_resp : array, shape (n_samples, n_components) + Logarithm of the posterior probabilities (or responsibilities) of + the point of each sample in X. + + log_prob_norm : float + Logarithm of the probability of each sample in X. + + Returns + ------- + lower_bound : float + """ + # Contrary to the original formula, we have done some simplification + # and removed all the constant terms. + (n_features,) = self.mean_prior_.shape + + # We removed `.5 * n_features * np.log(self.degrees_of_freedom_)` + # because the precision matrix is normalized. + log_det_precisions_chol = _compute_log_det_cholesky( + self.precisions_cholesky_, self.covariance_type, n_features + ) - 0.5 * n_features * np.log(self.degrees_of_freedom_) + + if self.covariance_type == "tied": + log_wishart = self.n_components * np.float64( + _log_wishart_norm( + self.degrees_of_freedom_, log_det_precisions_chol, n_features + ) + ) + else: + log_wishart = np.sum( + _log_wishart_norm( + self.degrees_of_freedom_, log_det_precisions_chol, n_features + ) + ) + + if self.weight_concentration_prior_type == "dirichlet_process": + log_norm_weight = -np.sum( + betaln(self.weight_concentration_[0], self.weight_concentration_[1]) + ) + else: + log_norm_weight = _log_dirichlet_norm(self.weight_concentration_) + + return ( + -np.sum(np.exp(log_resp) * log_resp) + - log_wishart + - log_norm_weight + - 0.5 * n_features * np.sum(np.log(self.mean_precision_)) + ) + + def _get_parameters(self): + return ( + self.weight_concentration_, + self.mean_precision_, + self.means_, + self.degrees_of_freedom_, + self.covariances_, + self.precisions_cholesky_, + ) + + def _set_parameters(self, params): + ( + self.weight_concentration_, + self.mean_precision_, + self.means_, + self.degrees_of_freedom_, + self.covariances_, + self.precisions_cholesky_, + ) = params + + # Weights computation + if self.weight_concentration_prior_type == "dirichlet_process": + weight_dirichlet_sum = ( + self.weight_concentration_[0] + self.weight_concentration_[1] + ) + tmp = self.weight_concentration_[1] / weight_dirichlet_sum + self.weights_ = ( + self.weight_concentration_[0] + / weight_dirichlet_sum + * np.hstack((1, np.cumprod(tmp[:-1]))) + ) + self.weights_ /= np.sum(self.weights_) + else: + self.weights_ = self.weight_concentration_ / np.sum( + self.weight_concentration_ + ) + + # Precisions matrices computation + if self.covariance_type == "full": + self.precisions_ = np.array( + [ + np.dot(prec_chol, prec_chol.T) + for prec_chol in self.precisions_cholesky_ + ] + ) + + elif self.covariance_type == "tied": + self.precisions_ = np.dot( + self.precisions_cholesky_, self.precisions_cholesky_.T + ) + else: + self.precisions_ = self.precisions_cholesky_**2 diff --git a/shared/package-files/3e/3e68c8c54909a29bd5abd9cc171da6dfdf32a05e1158f3850d541869bb0e4214/RECORD b/shared/package-files/3e/3e68c8c54909a29bd5abd9cc171da6dfdf32a05e1158f3850d541869bb0e4214/RECORD new file mode 100644 index 0000000000000000000000000000000000000000..bc4f21bcaa5163143e3b25758d6fbc7cc7197200 --- /dev/null +++ b/shared/package-files/3e/3e68c8c54909a29bd5abd9cc171da6dfdf32a05e1158f3850d541869bb0e4214/RECORD @@ -0,0 +1,1967 @@ +jedi-0.18.1.dist-info/AUTHORS.txt,sha256=20VRK-DhyfUWkl2ZHzcxVAh3by1HDq-PRTak7f25B_Y,2478 +jedi-0.18.1.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4 +jedi-0.18.1.dist-info/LICENSE.txt,sha256=eOYM0LjyhpTzAZVILDPXaQjYRrDRUnjetzMqoiuo5BI,1241 +jedi-0.18.1.dist-info/METADATA,sha256=eYo3OGmfobJ2cE8-Vep0RHY98e0Ye1TLb2fNrAmqnpA,20321 +jedi-0.18.1.dist-info/RECORD,, +jedi-0.18.1.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi-0.18.1.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110 +jedi-0.18.1.dist-info/direct_url.json,sha256=hjp97BrKCWtxkKjpnnCvxXEkygUYq0lVzUglZGUYGng,77 +jedi-0.18.1.dist-info/top_level.txt,sha256=SqNj9U77yOn5Zf4Ji6CqL8-D2eNg_F71GHo8V8SMV04,5 +jedi/__init__.py,sha256=ss_QDI_xMQIvJ14DC6CwkfGgiW1tP77jEfvXcr3Vybk,1486 +jedi/__main__.py,sha256=SONRAB5KoCcU3DRfUZhWWFG8n_fs7Rls-bzzM4VWqD0,1950 +jedi/__pycache__/__init__.cpython-310.pyc,, +jedi/__pycache__/__main__.cpython-310.pyc,, +jedi/__pycache__/_compatibility.cpython-310.pyc,, +jedi/__pycache__/cache.cpython-310.pyc,, +jedi/__pycache__/common.cpython-310.pyc,, +jedi/__pycache__/debug.cpython-310.pyc,, +jedi/__pycache__/file_io.cpython-310.pyc,, +jedi/__pycache__/parser_utils.cpython-310.pyc,, +jedi/__pycache__/settings.cpython-310.pyc,, +jedi/__pycache__/utils.cpython-310.pyc,, +jedi/_compatibility.py,sha256=uSI5oS3axM4l5qnr64Qe5nxHA3zGe2QBaTC4rAdRMls,918 +jedi/api/__init__.py,sha256=nYey7Au1LXXz4z64YQR0PVgXwM3Yx6lES25BmdoKnaM,31271 +jedi/api/__pycache__/__init__.cpython-310.pyc,, +jedi/api/__pycache__/classes.cpython-310.pyc,, +jedi/api/__pycache__/completion.cpython-310.pyc,, +jedi/api/__pycache__/completion_cache.cpython-310.pyc,, +jedi/api/__pycache__/environment.cpython-310.pyc,, +jedi/api/__pycache__/errors.cpython-310.pyc,, +jedi/api/__pycache__/exceptions.cpython-310.pyc,, +jedi/api/__pycache__/file_name.cpython-310.pyc,, +jedi/api/__pycache__/helpers.cpython-310.pyc,, +jedi/api/__pycache__/interpreter.cpython-310.pyc,, +jedi/api/__pycache__/keywords.cpython-310.pyc,, +jedi/api/__pycache__/project.cpython-310.pyc,, +jedi/api/__pycache__/replstartup.cpython-310.pyc,, +jedi/api/__pycache__/strings.cpython-310.pyc,, +jedi/api/classes.py,sha256=kuHamCk6drdONF_IgeqXBArM3w9XMPuLMtqx7LD2jfw,29637 +jedi/api/completion.py,sha256=rx9NFRmQNPSZETe3sC453v5VcfYZIX0BF23kwz4-R44,27191 +jedi/api/completion_cache.py,sha256=UOaBWoCsSLjyOiDEWHlUwgDiMCY2Rn2J2zMeI_s5lCM,954 +jedi/api/environment.py,sha256=gZJ_jtqk8U26LZLXg6zEew2QIXBXQspPCTbEGPAdv38,16956 +jedi/api/errors.py,sha256=jvJvx0Sk8mWLQagxZlZuDszOrQ8DYenfViZrlgWUdeU,1253 +jedi/api/exceptions.py,sha256=mJ4eBaYkHh5QB5CZ_D4BkCrQp6l2Put7-dIEUZu8wTU,991 +jedi/api/file_name.py,sha256=xlevCfp9B5hUsR94AH09tg4Qn1YXkGxM92uQPf8WpTw,5620 +jedi/api/helpers.py,sha256=JgeRO7nedD54jbgOjzBbJnDpo7o0NGbyaNvJWzRz_P4,18944 +jedi/api/interpreter.py,sha256=BQrbeTG2uKT3YtJxVria3raXqiCvYj-wl3nSxWvqOkU,2415 +jedi/api/keywords.py,sha256=bBj6gP7Sa9Fd_aDc3bRAgtSARLPY1xcYqGg8-qQwFcQ,1283 +jedi/api/project.py,sha256=qEZewDa5osnvmr0pO_M3jcBUMRu2PswuiybApVb1niQ,16613 +jedi/api/refactoring/__init__.py,sha256=4-_5mXa5lCfVuwICrXZ-bcOu-4mTll91KKY46YGiKNs,8820 +jedi/api/refactoring/__pycache__/__init__.cpython-310.pyc,, +jedi/api/refactoring/__pycache__/extract.cpython-310.pyc,, +jedi/api/refactoring/extract.py,sha256=u-IRD0BEVoMUDRTMRP9cD-R6DczHNsikaedOeThOBso,13933 +jedi/api/replstartup.py,sha256=o4FaVzt1PX05uHDITgu7NZkSiqMZbkdAI004b4BHy8g,950 +jedi/api/strings.py,sha256=quHhY42s1fkTvxk1Za_bIc1fLGLqK0YXk3rX1Y9asdA,3616 +jedi/cache.py,sha256=fHEukjwaHSOiE1Z6UG5HMg-mH5fzfOTILZsWvxRaDV8,3674 +jedi/common.py,sha256=jL8TzWZ6Wl5ovayygpX5-bruk6ibu_kq5mh6FZcSGkI,668 +jedi/debug.py,sha256=WuLOoaRBKfuKEf-mZIIbMSSu2LMQJEVUS2opXQMY5aU,3504 +jedi/file_io.py,sha256=yYnkY_nUnB7pSQAjWXFyCS_8IN3BuDlXmPIuZbklPoU,2337 +jedi/inference/__init__.py,sha256=oLUO6VkJ5H0Uf7153yF54lsYjdJzJFR8v4lmvHsBx50,8441 +jedi/inference/__pycache__/__init__.cpython-310.pyc,, +jedi/inference/__pycache__/analysis.cpython-310.pyc,, +jedi/inference/__pycache__/arguments.cpython-310.pyc,, +jedi/inference/__pycache__/base_value.cpython-310.pyc,, +jedi/inference/__pycache__/cache.cpython-310.pyc,, +jedi/inference/__pycache__/context.cpython-310.pyc,, +jedi/inference/__pycache__/docstring_utils.cpython-310.pyc,, +jedi/inference/__pycache__/docstrings.cpython-310.pyc,, +jedi/inference/__pycache__/dynamic_params.cpython-310.pyc,, +jedi/inference/__pycache__/filters.cpython-310.pyc,, +jedi/inference/__pycache__/finder.cpython-310.pyc,, +jedi/inference/__pycache__/flow_analysis.cpython-310.pyc,, +jedi/inference/__pycache__/helpers.cpython-310.pyc,, +jedi/inference/__pycache__/imports.cpython-310.pyc,, +jedi/inference/__pycache__/lazy_value.cpython-310.pyc,, +jedi/inference/__pycache__/names.cpython-310.pyc,, +jedi/inference/__pycache__/param.cpython-310.pyc,, +jedi/inference/__pycache__/parser_cache.cpython-310.pyc,, +jedi/inference/__pycache__/recursion.cpython-310.pyc,, +jedi/inference/__pycache__/references.cpython-310.pyc,, +jedi/inference/__pycache__/signature.cpython-310.pyc,, +jedi/inference/__pycache__/star_args.cpython-310.pyc,, +jedi/inference/__pycache__/syntax_tree.cpython-310.pyc,, +jedi/inference/__pycache__/sys_path.cpython-310.pyc,, +jedi/inference/__pycache__/utils.cpython-310.pyc,, +jedi/inference/analysis.py,sha256=vbRF2gOLzm4lEQq9amaVEkQlWsshjl-tKEiOqUSAzYg,7763 +jedi/inference/arguments.py,sha256=zjQcIwW-m8J2Wy0MU_O_u1sTiNIXQk7du3Vcilm5FNM,12218 +jedi/inference/base_value.py,sha256=6o0ksK7YqSiMNErehIrShAMslwOCqtslYg_qZpWVhLo,18221 +jedi/inference/cache.py,sha256=_eOYHP3jZbLVWC2tuoBpjcLQNIWDCsDH3sCzz81mgfw,4191 +jedi/inference/compiled/__init__.py,sha256=MlKPMiQqzDJ6tUMgevROr5n0yyNubjImuRYUqM8jF1Y,2651 +jedi/inference/compiled/__pycache__/__init__.cpython-310.pyc,, +jedi/inference/compiled/__pycache__/access.cpython-310.pyc,, +jedi/inference/compiled/__pycache__/getattr_static.cpython-310.pyc,, +jedi/inference/compiled/__pycache__/mixed.cpython-310.pyc,, +jedi/inference/compiled/__pycache__/value.cpython-310.pyc,, +jedi/inference/compiled/access.py,sha256=kl6dQkSjOWE1cgm9Mx4egYz0Fohasg6SdBAKKWB8h30,18442 +jedi/inference/compiled/getattr_static.py,sha256=Wv5XDvWS7Q7YtmuGp83Ey74Zhsor5BZS9597U-qRquE,3862 +jedi/inference/compiled/mixed.py,sha256=v7Ug53_ZzeCoCDG6l_Xv-Dr3r2tBi4VszTL4q2A0Ge0,11355 +jedi/inference/compiled/subprocess/__init__.py,sha256=bFN8a7SvRjX4BOZtA9B-15oqNJ6mxFFcAgshzvavC7I,13490 +jedi/inference/compiled/subprocess/__main__.py,sha256=GRDb0xiWCV5aj4JkUF-F5euuF4-sWt_BQpSHQlJFk60,1167 +jedi/inference/compiled/subprocess/__pycache__/__init__.cpython-310.pyc,, +jedi/inference/compiled/subprocess/__pycache__/__main__.cpython-310.pyc,, +jedi/inference/compiled/subprocess/__pycache__/functions.cpython-310.pyc,, +jedi/inference/compiled/subprocess/functions.py,sha256=_Q0iG-6OauJto_UOHBYQdrDDf4cP161cKws8_V_r404,8666 +jedi/inference/compiled/value.py,sha256=aQA7Gxwwc8_9f1AFbZqNll_Q-iLZ_w_Or959Poj1UWU,20526 +jedi/inference/context.py,sha256=ioyAcWxvFLqI13VezWzCgQAAJ5NJgNn8sDcdWolxrFg,17164 +jedi/inference/docstring_utils.py,sha256=GTk3ZuWNIo8fFC9kt8NjOF_Wn0mYKjzKLrAswgvoJKI,759 +jedi/inference/docstrings.py,sha256=g5bqKJ8q7ZpLT32NVA2aCGISrG4X2aC0gDRE0OsB_IM,9824 +jedi/inference/dynamic_params.py,sha256=xIC_49MIGQIfRs-Hpx6TCyrl-tsu57siHruKJMwlpag,8122 +jedi/inference/filters.py,sha256=43Dtz4_VeOF6k39YueBFvZaHj_RLC8Wtpfwt9NF28Hc,12493 +jedi/inference/finder.py,sha256=bx-TVatGVvPs696vDS-CWFbclUOdwWvXZPMJF8Vp9Gg,5326 +jedi/inference/flow_analysis.py,sha256=p-za41-mt90PvgwCZi8cCfhw1DiJCMZ2XjdCwh_rHBk,4583 +jedi/inference/gradual/__init__.py,sha256=Xzh7u-vHsvyHAzr_2kP8PY4NieFh35o-TmQY3KAttlI,143 +jedi/inference/gradual/__pycache__/__init__.cpython-310.pyc,, +jedi/inference/gradual/__pycache__/annotation.cpython-310.pyc,, +jedi/inference/gradual/__pycache__/base.cpython-310.pyc,, +jedi/inference/gradual/__pycache__/conversion.cpython-310.pyc,, +jedi/inference/gradual/__pycache__/generics.cpython-310.pyc,, +jedi/inference/gradual/__pycache__/stub_value.cpython-310.pyc,, +jedi/inference/gradual/__pycache__/type_var.cpython-310.pyc,, +jedi/inference/gradual/__pycache__/typeshed.cpython-310.pyc,, +jedi/inference/gradual/__pycache__/typing.cpython-310.pyc,, +jedi/inference/gradual/__pycache__/utils.cpython-310.pyc,, +jedi/inference/gradual/annotation.py,sha256=GzakrJjdbaVtnPg_gr0WYTOu_uk4QtMIlNwyqgLrUko,15932 +jedi/inference/gradual/base.py,sha256=g3XVBA4aX40yxpJKFI6TtOCtFrJW0HAoNECLv2xn68w,15554 +jedi/inference/gradual/conversion.py,sha256=vqVITY30kczXEuF59RV5Kp9FNx0P545ctEfCtwX9aSg,7601 +jedi/inference/gradual/generics.py,sha256=gdqzR1SlT6U-I4l6VWqRih_zSXmz69BgwcFNehXEWF4,3144 +jedi/inference/gradual/stub_value.py,sha256=jk3YSZ5WLl5xFf-V_Jd2wptLs-r4hs0PjLsGfahEAYk,3329 +jedi/inference/gradual/type_var.py,sha256=twrYAoTRNRLHXGPs5CwOZtkvKXGGA8ynczEe9IM1jcU,4139 +jedi/inference/gradual/typeshed.py,sha256=AtR0EBoTlObIzM2c7VQI-Jn_AWsjt0YKp4NYTWOpirE,11467 +jedi/inference/gradual/typing.py,sha256=HJwIbd5jFLkpXJULhWmNQHW22--VlhgEy5pNn8xHilw,17149 +jedi/inference/gradual/utils.py,sha256=PXn4xXlo09fQJVfqHrhA3MdLuAn4mqqujhCTuMutzkI,1147 +jedi/inference/helpers.py,sha256=MJp-HLdtz8_jh9U62CnHVXfDZnFoyg8DlXSY1r1WdKw,5943 +jedi/inference/imports.py,sha256=9tpF3lBsrxLi1R3zEdncPNvZv_mTqhFXO-BhKpHL7VI,23082 +jedi/inference/lazy_value.py,sha256=LtD4RiWs_rQ58ZEZLp-_1Bce1B15t4GS1WpixHW891g,1667 +jedi/inference/names.py,sha256=wkVf9qldsiGOJJht1hj_bAMoRj3g4PvnRDdP03n8ahk,23188 +jedi/inference/param.py,sha256=EEQZwUHY6MUjX3x4A5gl-NzKHXfJ7Ehx7Iza_s6948Q,10450 +jedi/inference/parser_cache.py,sha256=GOOahC8GvDcGW-Ct653Uts5IZ0EaymB4OwyfKm5WClg,191 +jedi/inference/recursion.py,sha256=2rSUGzs1GqMH8274KrgjLTQMLD76ld_dnopbHckM8qo,4932 +jedi/inference/references.py,sha256=1Ol-yxFrMbI9nlRx62xM7v4rKl1HVUjxLd4luRRRAsw,10855 +jedi/inference/signature.py,sha256=uh22vizTq9VsQg-5hYVPDeNs6PYV_YOW9HbCZttWo5g,4859 +jedi/inference/star_args.py,sha256=785E1MC3vvE8zQJ9w0VGei84B2lrLmvxrqYtkyehlbA,7895 +jedi/inference/syntax_tree.py,sha256=HcQLIZMnxS-Lmomb315VlXTVkcfwjNdKl0KxY_X-7Qo,35356 +jedi/inference/sys_path.py,sha256=coTcmTe997sITzKjzXqyppFYJKpRXNO8mVaFfOIWJ7w,10218 +jedi/inference/utils.py,sha256=63DG77XBZ0b8BTKXqNl8ki-4ySyAO75IoCdFIMvttFk,2706 +jedi/inference/value/__init__.py,sha256=Pyi9BuCJvvWQue2MJH2Lsb-ffK_9MKjRVGjY5NvvhkQ,416 +jedi/inference/value/__pycache__/__init__.cpython-310.pyc,, +jedi/inference/value/__pycache__/decorator.cpython-310.pyc,, +jedi/inference/value/__pycache__/dynamic_arrays.cpython-310.pyc,, +jedi/inference/value/__pycache__/function.cpython-310.pyc,, +jedi/inference/value/__pycache__/instance.cpython-310.pyc,, +jedi/inference/value/__pycache__/iterable.cpython-310.pyc,, +jedi/inference/value/__pycache__/klass.cpython-310.pyc,, +jedi/inference/value/__pycache__/module.cpython-310.pyc,, +jedi/inference/value/__pycache__/namespace.cpython-310.pyc,, +jedi/inference/value/decorator.py,sha256=b8jWqSZQTrQ1rzThPSYCToEAC0Hfx19XEvgJsMXftus,1207 +jedi/inference/value/dynamic_arrays.py,sha256=ccEsii4GjsBiBZ0Oyp9gjTSYcZ5ghqbt43z8hXncPWI,7526 +jedi/inference/value/function.py,sha256=dwUEHCOwVT-lnZXaqV0P0Xrf2rPuCksXSPRVzGmrqps,17424 +jedi/inference/value/instance.py,sha256=1UthMNhM2piZaUaNuWHjOnInVKuGKqCbjdmbgCMKjyY,22511 +jedi/inference/value/iterable.py,sha256=fxMp3UiqM8xx7pHT_q30Y4thoDrBUIq62unMdBwAnpI,23305 +jedi/inference/value/klass.py,sha256=ltXpsp2ytmVqRoE0zt8oagifTEEpqi0hRVX0YTPdB4g,16685 +jedi/inference/value/module.py,sha256=mgmTCAOaELoMcAbmnNVbvzLIdZYXTK-vPsxA9dIOpRY,8118 +jedi/inference/value/namespace.py,sha256=yfw8pjmT705joRJSKU-CfmuiyJ-XdcelbDCzKCxqxVk,2101 +jedi/parser_utils.py,sha256=201oI88ateim7dZDh29T7obso1xqbw5Hdxv66swGuf4,10900 +jedi/plugins/__init__.py,sha256=O3yXGTvWanhnZnKubQJhsnDlyXbl23hlt2aGmhy-UUU,1445 +jedi/plugins/__pycache__/__init__.cpython-310.pyc,, +jedi/plugins/__pycache__/django.cpython-310.pyc,, +jedi/plugins/__pycache__/flask.cpython-310.pyc,, +jedi/plugins/__pycache__/pytest.cpython-310.pyc,, +jedi/plugins/__pycache__/registry.cpython-310.pyc,, +jedi/plugins/__pycache__/stdlib.cpython-310.pyc,, +jedi/plugins/django.py,sha256=n-jg8n9bXNjeuqqu46PsiyypzGjFdUjtYJIGcbiBrtI,10895 +jedi/plugins/flask.py,sha256=SRdiNzObi4Xonq3BqjdNRyz08fHPk5ZvbERyNtYgsSs,916 +jedi/plugins/pytest.py,sha256=3c-KcJFr4CZ7wwX9M4W2UYXAvMovCmQe0u5iuJo8V4o,7730 +jedi/plugins/registry.py,sha256=Z3aaj2W2mpwO2Av4apD_vlkPvorJPljvy4xtJsOHrfc,307 +jedi/plugins/stdlib.py,sha256=9C7PfFohKdJ6fWbr2GmpBCMGjKbk_laMionNBQ56TME,29917 +jedi/settings.py,sha256=-5Ha07yoBZ1XFjVD9FypGNQPbL1IG63wpxuhv71dcYs,3526 +jedi/third_party/django-stubs/LICENSE.txt,sha256=I16ZOWXTmaJefUk9JchiL3hxhRCIS5wFHx8YZrbzTp0,1075 +jedi/third_party/django-stubs/django-stubs/__init__.pyi,sha256=t008ZLMgegSQayAawLGBCwygFeVfDKqQEAqTpXj_9yA,432 +jedi/third_party/django-stubs/django-stubs/apps/__init__.pyi,sha256=Y3Y6Hf-auytvp3gQT19bAYTGM1e3f9BBktHVMvr2KQU,79 +jedi/third_party/django-stubs/django-stubs/apps/config.pyi,sha256=5WdAiYznWIzxBXj7DUdYwg0ZIYp2pZHi2uUuD8oumQc,834 +jedi/third_party/django-stubs/django-stubs/apps/registry.pyi,sha256=gu9N7TVSYlhW--1o8FaRhD1S7W4DbF5_tAw4VkxBcsw,2050 +jedi/third_party/django-stubs/django-stubs/conf/__init__.pyi,sha256=iD_WNEjoMcZZwVw_OsvIr-qT1D-WAyVhwGHURaVG9hQ,899 +jedi/third_party/django-stubs/django-stubs/conf/global_settings.pyi,sha256=uUXM1AzZ6y9TcZd_wEBD-MksMBnnA0S1oncpezQApoQ,17462 +jedi/third_party/django-stubs/django-stubs/conf/locale/__init__.pyi,sha256=M1UVxxBgBcKY0r7pv8DvOE6_CJavw0Od3fi8iH-APEk,62 +jedi/third_party/django-stubs/django-stubs/conf/urls/__init__.pyi,sha256=SisGWP0M2DqTBeYjxgaoseKtVjQhpvEopgidp_u0BG8,1033 +jedi/third_party/django-stubs/django-stubs/conf/urls/i18n.pyi,sha256=x4QdXccNgttRURmMrKKE5BDhfk_sc9GRyzSJPbbQDKU,297 +jedi/third_party/django-stubs/django-stubs/conf/urls/static.pyi,sha256=BXdu_MPkrP5LIynxR3lUVc6AAK_y45T8YVn_lp-UVow,172 +jedi/third_party/django-stubs/django-stubs/contrib/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/django-stubs/django-stubs/contrib/admin/__init__.pyi,sha256=EqcwNegHa1kj1bgto5_xljmuP4Ym54wt-_A7nia4WEA,881 +jedi/third_party/django-stubs/django-stubs/contrib/admin/actions.pyi,sha256=O3SXOhCX1-BkDiPxDh9BDUppLQhopWyDj2p1l71XmMo,351 +jedi/third_party/django-stubs/django-stubs/contrib/admin/apps.pyi,sha256=1q33ihcO10A_m7HB5gHdU8S1YpVohz6ihgzo9QMPYnk,142 +jedi/third_party/django-stubs/django-stubs/contrib/admin/checks.pyi,sha256=fWhQq3debqlWvigQzUZNuORAVzHw61iWmi0emeczJC8,849 +jedi/third_party/django-stubs/django-stubs/contrib/admin/decorators.pyi,sha256=Ws4zXIAH5jDgEi60FmJ_Mry9eU5rCJmpJ5lNM2XQXbs,170 +jedi/third_party/django-stubs/django-stubs/contrib/admin/filters.pyi,sha256=fQk48FO4Aik5qG-yUHr7XmW1wgJtCHM4YeWc2PEIvkU,3487 +jedi/third_party/django-stubs/django-stubs/contrib/admin/forms.pyi,sha256=vAAUpUCC7gxxUnBDCwNmPrk1L-NOCHx8lHwlceqBNDY,249 +jedi/third_party/django-stubs/django-stubs/contrib/admin/helpers.pyi,sha256=KD26oTSFhlCVWOzH2jzoAx1Oqhncx5aSUd6ySd3qR0M,4790 +jedi/third_party/django-stubs/django-stubs/contrib/admin/models.pyi,sha256=B8NtoXvvjj8pW0fyQQXwsFJ7j7j3DlaxgxuXwY4Y514,1220 +jedi/third_party/django-stubs/django-stubs/contrib/admin/options.pyi,sha256=TpeeMIIkoNO4Ky8VYdxejUzxmV8R1S3t25ofOD5Nilc,13828 +jedi/third_party/django-stubs/django-stubs/contrib/admin/sites.pyi,sha256=Di-VbTnbIqoK8xDO-IOw64s7JrRQ3CoZKYIvGXKwvOs,3288 +jedi/third_party/django-stubs/django-stubs/contrib/admin/templatetags/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/django-stubs/django-stubs/contrib/admin/templatetags/admin_list.pyi,sha256=HSelmnczfnb-E2QvjhmWkHbwTMp7zx9AoxTqWW_HkBI,2028 +jedi/third_party/django-stubs/django-stubs/contrib/admin/templatetags/admin_modify.pyi,sha256=7cJfilSXB5nWosnNDsgAMMJbZXExtCJAjJmCkvKT6a8,690 +jedi/third_party/django-stubs/django-stubs/contrib/admin/templatetags/admin_static.pyi,sha256=FV9QQ0gLLyXEtmmJqGFWRFRo-eJcvO71aRcFqZJn1sI,73 +jedi/third_party/django-stubs/django-stubs/contrib/admin/templatetags/admin_urls.pyi,sha256=BP_vzmHQ3W7lwC1qCuy7_CSL52pWF5_kyx9okRQT100,547 +jedi/third_party/django-stubs/django-stubs/contrib/admin/templatetags/base.pyi,sha256=_2N03P5IN0Y66vpFrz5l0aRyEQjJgCll8w-FJ1CsP8Y,592 +jedi/third_party/django-stubs/django-stubs/contrib/admin/templatetags/log.pyi,sha256=8m7bTnfmhLLycZoE3Aapyyz4JzO_G8I_e3L16FZATWM,454 +jedi/third_party/django-stubs/django-stubs/contrib/admin/tests.pyi,sha256=IGDA9zE9QPLNB5xgBFFr9j3AbMyufxTm2NUPqmP8mpA,1417 +jedi/third_party/django-stubs/django-stubs/contrib/admin/utils.pyi,sha256=RoMzCbcgb_dKDrY8ezXh93jNJQEEuJ3JAHDitnWZ4To,3107 +jedi/third_party/django-stubs/django-stubs/contrib/admin/views/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/django-stubs/django-stubs/contrib/admin/views/autocomplete.pyi,sha256=AmCorbocq3VfqVJnU6wtVyGESgls1a-WePP5Bl3Vi3E,349 +jedi/third_party/django-stubs/django-stubs/contrib/admin/views/decorators.pyi,sha256=xF9kl3mBijo2Ucnac0ituCn5nq2dyDYNXReYMgX-Rm8,335 +jedi/third_party/django-stubs/django-stubs/contrib/admin/views/main.pyi,sha256=MnJzYgIiYc6K7yPGAzzKokM2YwHbqYwWzVpEfQwdYf8,3390 +jedi/third_party/django-stubs/django-stubs/contrib/admin/widgets.pyi,sha256=i1bW9opYwddEL9f6hhekwMNYhg_2vbo3CPn9-DY173Y,3375 +jedi/third_party/django-stubs/django-stubs/contrib/admindocs/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/django-stubs/django-stubs/contrib/admindocs/middleware.pyi,sha256=DlifCzWN3f9RB-PoedyUCPz3MhpqODdJxEk1xRYyYu4,409 +jedi/third_party/django-stubs/django-stubs/contrib/admindocs/urls.pyi,sha256=oIadLJRRqUS4fwWe3F2TwdQViIuYuSR7iutUidncun0,59 +jedi/third_party/django-stubs/django-stubs/contrib/admindocs/utils.pyi,sha256=aKdHFqtElfEWLRx9LgJRBZby7VKeAvCFRfSh9J_yOVc,725 +jedi/third_party/django-stubs/django-stubs/contrib/admindocs/views.pyi,sha256=JvdGvkWE5fJULlrrbucwuvbOkwPSL9b2I5hsVmBZxAY,852 +jedi/third_party/django-stubs/django-stubs/contrib/auth/__init__.pyi,sha256=hDspBupLxVr58AAo69fVZa9d_pWAkORdzOcjUVxB49M,1316 +jedi/third_party/django-stubs/django-stubs/contrib/auth/admin.pyi,sha256=t3LSFWjHf93LRhNmB3Pn5bd9X4NE9kFzbYCsyDrg930,527 +jedi/third_party/django-stubs/django-stubs/contrib/auth/apps.pyi,sha256=783HiaS66kh94JjcTQDjxdhqTsecaKqZrwJ6rLSB6AQ,68 +jedi/third_party/django-stubs/django-stubs/contrib/auth/backends.pyi,sha256=OzBwXj0hB-Im6o9-2OHAOVCAkP07BG6DQzg0BIMT9d4,1605 +jedi/third_party/django-stubs/django-stubs/contrib/auth/base_user.pyi,sha256=p2mB5q8Pvv1BrE3CgnwXgfLITW3bFSNQVCp388wjxMs,1493 +jedi/third_party/django-stubs/django-stubs/contrib/auth/checks.pyi,sha256=GeMx3ueyYHAufqpprS_roDPC-MGC9jZZiiob_Yj2j1w,371 +jedi/third_party/django-stubs/django-stubs/contrib/auth/context_processors.pyi,sha256=ysQRV_JT1XA8buH6W5mkGbefSDy0nRVumXGjToqgoAg,617 +jedi/third_party/django-stubs/django-stubs/contrib/auth/decorators.pyi,sha256=D-szKzg_wbjHQsdAY7Y_SE4s7fOrE1PQRTqXDdo_acs,982 +jedi/third_party/django-stubs/django-stubs/contrib/auth/forms.pyi,sha256=jpqKdxAYIElU-TlfLzvZNefMnn1Uo3vXEJArzBainZE,3149 +jedi/third_party/django-stubs/django-stubs/contrib/auth/handlers/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/django-stubs/django-stubs/contrib/auth/handlers/modwsgi.pyi,sha256=bv6dWYpTbWYlCQjWyc76cB_lH3akN0WYDyuTmnLXiS8,204 +jedi/third_party/django-stubs/django-stubs/contrib/auth/hashers.pyi,sha256=xdR_649Y60eS-C4VcQUDn76n07U5Tzwl6DlLOcOr8Ek,1969 +jedi/third_party/django-stubs/django-stubs/contrib/auth/management/__init__.pyi,sha256=r_Nm0u9_QFypD1ZAkzWIrPzTRiKM0Vwj8N1BPgEjjUA,384 +jedi/third_party/django-stubs/django-stubs/contrib/auth/management/commands/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/django-stubs/django-stubs/contrib/auth/management/commands/changepassword.pyi,sha256=sINAEC_pucjlldxJChrjgnhv_PzIBOAi3mPOqdHYZNE,125 +jedi/third_party/django-stubs/django-stubs/contrib/auth/management/commands/createsuperuser.pyi,sha256=LI2_hmrgjeizJ0L0Pe4lo2lqvgqvfd0XDovYSbrx9bk,208 +jedi/third_party/django-stubs/django-stubs/contrib/auth/middleware.pyi,sha256=WwvDTYBlZdi21Ackk6Aksuwgt0JIOOAPOc3niDsN0J0,774 +jedi/third_party/django-stubs/django-stubs/contrib/auth/mixins.pyi,sha256=7Ca0TCSsaszq71MDnCaO2-MqySWlZc2CQQqtQZBIaL0,1150 +jedi/third_party/django-stubs/django-stubs/contrib/auth/models.pyi,sha256=nDsbZgiHmYUmC8TSu1ZAmk5uEVGlEodFN6B2dXhwaec,4641 +jedi/third_party/django-stubs/django-stubs/contrib/auth/password_validation.pyi,sha256=9KOmo5wQfvW4U_qh6yIMczt5izwIRS2GMQQ5vGX2D8I,2052 +jedi/third_party/django-stubs/django-stubs/contrib/auth/signals.pyi,sha256=0qXrIYBrx2XYwRrx1N5V5h9HgFtdmK4pzQfEMPr-EPY,120 +jedi/third_party/django-stubs/django-stubs/contrib/auth/tokens.pyi,sha256=IcHQN4Pn8ikV2qI1e4_VWkLjVbfPR5tOEM2iQR3Dz-c,361 +jedi/third_party/django-stubs/django-stubs/contrib/auth/urls.pyi,sha256=oIadLJRRqUS4fwWe3F2TwdQViIuYuSR7iutUidncun0,59 +jedi/third_party/django-stubs/django-stubs/contrib/auth/validators.pyi,sha256=3P7MK_049xYExFIZVQCaic-iuFgFGaZouQBS4RYe_6I,160 +jedi/third_party/django-stubs/django-stubs/contrib/auth/views.pyi,sha256=BPnTwECkJfap0jz0Mi1RII3PLHeHI6eH3Z3mnBZoFvQ,2478 +jedi/third_party/django-stubs/django-stubs/contrib/contenttypes/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/django-stubs/django-stubs/contrib/contenttypes/admin.pyi,sha256=hQT_hpYtA2aHrknPNDLX9Fl6NSVJbdtKpWhiGOsk-VM,586 +jedi/third_party/django-stubs/django-stubs/contrib/contenttypes/apps.pyi,sha256=WUN_nGxl5mnIB9IctYlkCrswHF8BpQo2yRbRywZ69c0,76 +jedi/third_party/django-stubs/django-stubs/contrib/contenttypes/checks.pyi,sha256=3PeRWTpBcWB1u-66ueZ6RVWFIZReu5OOYpoN7r2JCBQ,318 +jedi/third_party/django-stubs/django-stubs/contrib/contenttypes/fields.pyi,sha256=hW1z3wwu_lRFpF6Zkz2pR3pb7yh1za9PgaZFJ6o5XPY,4097 +jedi/third_party/django-stubs/django-stubs/contrib/contenttypes/forms.pyi,sha256=-j9hvsPL-3syqd6O5gTcXzh3xeCQ-isFdtkhfuUwIX4,1159 +jedi/third_party/django-stubs/django-stubs/contrib/contenttypes/management/__init__.pyi,sha256=B0Gku6qIM0KlOwC2zQyZVrNE2Stj4JylnzhQ4-gswiA,1350 +jedi/third_party/django-stubs/django-stubs/contrib/contenttypes/management/commands/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/django-stubs/django-stubs/contrib/contenttypes/management/commands/remove_stale_contenttypes.pyi,sha256=-wUrCoB87Ueb8337psYunjcfoiKpxqyestpVHKzvaUE,411 +jedi/third_party/django-stubs/django-stubs/contrib/contenttypes/models.pyi,sha256=PcA_Yze4dDqmxsDJqCYKm_5ZnmfaxW4VNyfGjHqkavI,1085 +jedi/third_party/django-stubs/django-stubs/contrib/contenttypes/views.pyi,sha256=wK8to6ffyMuyyrlNJu9-7nzhOASZRr-x_MWdSgd_G_4,257 +jedi/third_party/django-stubs/django-stubs/contrib/flatpages/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/django-stubs/django-stubs/contrib/flatpages/forms.pyi,sha256=XNJrR-mHjiKpxf_r5sPxXC2De-Lyh37BL309dtR_f2I,142 +jedi/third_party/django-stubs/django-stubs/contrib/flatpages/middleware.pyi,sha256=6PzgiwFmjk4K4EBW7tfiUtdxI0x-f81N6RmbMOa5e1g,299 +jedi/third_party/django-stubs/django-stubs/contrib/flatpages/models.pyi,sha256=sd9sLh0PBc86GpcJrEtE4vaPVvs8xE1gifekJbBuyDo,445 +jedi/third_party/django-stubs/django-stubs/contrib/flatpages/sitemaps.pyi,sha256=-JeEn0-5EwpyJHOtgYd8IK_C8fGTmLPtk_UpgiwsiX4,81 +jedi/third_party/django-stubs/django-stubs/contrib/flatpages/templatetags/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/django-stubs/django-stubs/contrib/flatpages/templatetags/flatpages.pyi,sha256=U1qIuNadeeNP9oodmb1pXDt9Mrc7urXsAvA0c0bLmC0,518 +jedi/third_party/django-stubs/django-stubs/contrib/flatpages/urls.pyi,sha256=oIadLJRRqUS4fwWe3F2TwdQViIuYuSR7iutUidncun0,59 +jedi/third_party/django-stubs/django-stubs/contrib/flatpages/views.pyi,sha256=aJzjM06Iu8BG4w5frT51cpHotQ6e4GKH18Cukc-yDbo,315 +jedi/third_party/django-stubs/django-stubs/contrib/gis/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/django-stubs/django-stubs/contrib/gis/db/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/django-stubs/django-stubs/contrib/gis/db/models/__init__.pyi,sha256=I8SirL0ClZODX-As42cycJ4VjKnCc97cK9hVKBY6hH0,418 +jedi/third_party/django-stubs/django-stubs/contrib/gis/db/models/fields.pyi,sha256=HgR0BvodeWJ2iGkP8pLuFvI9SQ5DTWbP0oMzsZwEbHU,3133 +jedi/third_party/django-stubs/django-stubs/contrib/humanize/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/django-stubs/django-stubs/contrib/humanize/templatetags/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/django-stubs/django-stubs/contrib/humanize/templatetags/humanize.pyi,sha256=4pEElOr5jWoM1AAc-wq4HSLz-0iSrGwmeqqlJqdq2fs,619 +jedi/third_party/django-stubs/django-stubs/contrib/messages/__init__.pyi,sha256=UHr4xfoH6faNXSh6Xq-6OaRhgsi57MkDktuW_MgfDDs,524 +jedi/third_party/django-stubs/django-stubs/contrib/messages/api.pyi,sha256=ue6Dc8C-dHtJuRlcoQE5zPPsmSGOkgUem_H35681jk0,1169 +jedi/third_party/django-stubs/django-stubs/contrib/messages/constants.pyi,sha256=gBM2s_ImbX0K4W0mcwvmesgrEboAd_f_Pzq-lbUQ-IU,187 +jedi/third_party/django-stubs/django-stubs/contrib/messages/context_processors.pyi,sha256=FSJ6CYdzc9OLaBZyMQe1UlTIYq7ROchz_wBsQn-tEGo,249 +jedi/third_party/django-stubs/django-stubs/contrib/messages/middleware.pyi,sha256=H237yhPKbsl-Civ4R6Et_LX5uBUBLrDqTDvBT1JMef4,349 +jedi/third_party/django-stubs/django-stubs/contrib/messages/storage/__init__.pyi,sha256=ySIlvAEkKK1c5eDrg4u2cs-Mu-xkBuIjVqMjlOMqNBo,202 +jedi/third_party/django-stubs/django-stubs/contrib/messages/storage/base.pyi,sha256=EWpGkx7m2iNNqXTYTYTgeQtTmdH_loN6ba3XHbZo8QU,907 +jedi/third_party/django-stubs/django-stubs/contrib/messages/storage/cookie.pyi,sha256=h99T_FYt4AvNx7MaYtCJ42yuXxw2-u4dDaWgX2aqOHQ,487 +jedi/third_party/django-stubs/django-stubs/contrib/messages/storage/fallback.pyi,sha256=9FSrcnvxbwiGz34cVG8v8jOPOBl7cXK8Nvd97wbUCVs,240 +jedi/third_party/django-stubs/django-stubs/contrib/messages/storage/session.pyi,sha256=MsQOXu0WRhdg3mjL51hB_VYTSYspwgCyUfwK7pyEgyA,482 +jedi/third_party/django-stubs/django-stubs/contrib/messages/utils.pyi,sha256=BMBEulwgQtm_k9l8rf5DNeZ-KpKvth7kqf7kzEL2908,69 +jedi/third_party/django-stubs/django-stubs/contrib/messages/views.pyi,sha256=kkAB26i4kilkRl9AJbWCbW5zoy_uuKr33MBLu8Fp4qA,308 +jedi/third_party/django-stubs/django-stubs/contrib/postgres/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/django-stubs/django-stubs/contrib/postgres/aggregates/__init__.pyi,sha256=dDW1jG5QW0rYRWbzlmBQ8PT2v9ZdWgFJ0IRHhvBJQyQ,540 +jedi/third_party/django-stubs/django-stubs/contrib/postgres/aggregates/general.pyi,sha256=s1jdffCAM8P8TUYWwwu5ZAjm38N8K7wU_UWR_2wR2SI,338 +jedi/third_party/django-stubs/django-stubs/contrib/postgres/aggregates/mixins.pyi,sha256=BE72JG-si9GbSvdXWBTN2asV9jYrZIh2GldTVScgC1I,29 +jedi/third_party/django-stubs/django-stubs/contrib/postgres/aggregates/statistics.pyi,sha256=PqsAq9E7Jf6IUi3xYpm9LMCl52R6XMfMQieQxe-d49w,470 +jedi/third_party/django-stubs/django-stubs/contrib/postgres/constraints.pyi,sha256=s2FgJy9Rl1JnijuF4VQKTz6aVahFoJAwnO1C36sJQ4I,576 +jedi/third_party/django-stubs/django-stubs/contrib/postgres/fields/__init__.pyi,sha256=nAMbC_GxM8b8-dR9AlAQ9W__vybgo-3-X6bSBi0un48,695 +jedi/third_party/django-stubs/django-stubs/contrib/postgres/fields/array.pyi,sha256=B19PlhiKI8jhgJQq6fK_2SMXtZ1-yq0RyGe6QWwPHik,1729 +jedi/third_party/django-stubs/django-stubs/contrib/postgres/fields/citext.pyi,sha256=bC3-GS1JBsGcBiF5ve1dN3O8vG2eKjJSH0UB7mO7kFA,216 +jedi/third_party/django-stubs/django-stubs/contrib/postgres/fields/hstore.pyi,sha256=f6qGgeaD_ypIuIsPMGlgm_D48zms5vJ5VCclCp-iSCc,519 +jedi/third_party/django-stubs/django-stubs/contrib/postgres/fields/jsonb.pyi,sha256=XQpN-W-SzUoLm8M84ebg9ccGTZ51oMvpNU2S7PGdYMo,1011 +jedi/third_party/django-stubs/django-stubs/contrib/postgres/fields/mixins.pyi,sha256=NAiNjruhDqjVpZdusWemB8_eZhe54CHtvAGKDjvHFKY,113 +jedi/third_party/django-stubs/django-stubs/contrib/postgres/fields/ranges.pyi,sha256=yq6_zMfmqvqbCO627VtFM96DiGfUgdp3tku9RBxv7Vo,1342 +jedi/third_party/django-stubs/django-stubs/contrib/postgres/functions.pyi,sha256=__zcyTUVl9N7_5NVTzZ_SAXvflnckIVZtz46hcSiesI,95 +jedi/third_party/django-stubs/django-stubs/contrib/postgres/indexes.pyi,sha256=WsAYW3VLoP4rQ4p8ra4gkNPYcBH4XU6R-5b5HfvRZ8I,2272 +jedi/third_party/django-stubs/django-stubs/contrib/postgres/lookups.pyi,sha256=6XUZ02CEjDiE_s6sGMCTHuLk1R_MtdkGGjAASJzGVEk,579 +jedi/third_party/django-stubs/django-stubs/contrib/postgres/operations.pyi,sha256=Z8SEkq9xL8vu8ZhaEUZr9DqaN-oBSeu855ng3KXSGXg,735 +jedi/third_party/django-stubs/django-stubs/contrib/postgres/search.pyi,sha256=m0sqtO97PEv8__bspxNgeLfBaMga2rnZUnkHl-6jckk,2195 +jedi/third_party/django-stubs/django-stubs/contrib/postgres/signals.pyi,sha256=yeuM0ob6OaYoACmfLBdZCNWgPlm7A9ZwWjoZi-7Kb0M,237 +jedi/third_party/django-stubs/django-stubs/contrib/postgres/validators.pyi,sha256=s2eEtAs0EGPZdPztDX4Q4ZLLf5fm23Z_ggZU4yWSo0k,653 +jedi/third_party/django-stubs/django-stubs/contrib/redirects/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/django-stubs/django-stubs/contrib/redirects/middleware.pyi,sha256=fKa3O8n_i5HyNVUHXOaTIar7d5SmNOPwUqmo5FRDqx0,391 +jedi/third_party/django-stubs/django-stubs/contrib/redirects/models.pyi,sha256=h-aCkCB9-5rhIRn1zd1DhgCRzFbwbi8n3ogO2THqDDI,168 +jedi/third_party/django-stubs/django-stubs/contrib/sessions/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/django-stubs/django-stubs/contrib/sessions/backends/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/django-stubs/django-stubs/contrib/sessions/backends/base.pyi,sha256=Ny7D5lAHrEndxAQ_1CPFZZM2DsHMoMUnBdJanHOSw0k,1527 +jedi/third_party/django-stubs/django-stubs/contrib/sessions/backends/cache.pyi,sha256=7wCasZDS2jUxauFRfc1hgCbbMhdu3BV0eyNaJDMTTnU,299 +jedi/third_party/django-stubs/django-stubs/contrib/sessions/backends/cached_db.pyi,sha256=8jDkOaweqsMtw0xxE-TMfqKVF-EOhZYEN3kjasw_f9w,305 +jedi/third_party/django-stubs/django-stubs/contrib/sessions/backends/db.pyi,sha256=tVGmHGKuGZGDYi4l8aR1a6BlQKRYYDrNI1qorOiCOYI,577 +jedi/third_party/django-stubs/django-stubs/contrib/sessions/backends/file.pyi,sha256=cT7G4hn-3A_ZdlWH1TPH8K_Q9bAoKUUjjLlAwFvFPro,283 +jedi/third_party/django-stubs/django-stubs/contrib/sessions/backends/signed_cookies.pyi,sha256=qBbI8hMn_5IEPkzq2AQW54pFZN-d0lVUhSZ0W6DgC84,100 +jedi/third_party/django-stubs/django-stubs/contrib/sessions/base_session.pyi,sha256=1NPvIW3qfHt-WF1wOYh7FGLoPasYJ80KTw0pdrWOh3c,665 +jedi/third_party/django-stubs/django-stubs/contrib/sessions/exceptions.pyi,sha256=JjF0Gti8-WnILz7dVoTAv1yCrbhMLsvBe3e1z3Zzu50,156 +jedi/third_party/django-stubs/django-stubs/contrib/sessions/management/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/django-stubs/django-stubs/contrib/sessions/management/commands/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/django-stubs/django-stubs/contrib/sessions/management/commands/clearsessions.pyi,sha256=Gk-hDddr6HHr5PArycz3DqoeF476UpGqav9HGp_NsnI,85 +jedi/third_party/django-stubs/django-stubs/contrib/sessions/middleware.pyi,sha256=ZaLlZVRmZZgZaDMmC-j4YZVKDSMjdFYW7WOTru56gOg,478 +jedi/third_party/django-stubs/django-stubs/contrib/sessions/models.pyi,sha256=5Xexgn7rtazccT-DG_4gm4-Lc1NtQTZZBYZQn9LdWdk,176 +jedi/third_party/django-stubs/django-stubs/contrib/sessions/serializers.pyi,sha256=IDMgSeFmLRJYNp5_5jiYaTPKxPBLaEVbEWqPbSqRYaM,311 +jedi/third_party/django-stubs/django-stubs/contrib/sitemaps/__init__.pyi,sha256=jH3-BaWLaKwI5DATtZlXtMLNVETNStRqeviv6zqvv4M,1559 +jedi/third_party/django-stubs/django-stubs/contrib/sitemaps/management/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/django-stubs/django-stubs/contrib/sitemaps/management/commands/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/django-stubs/django-stubs/contrib/sitemaps/management/commands/ping_google.pyi,sha256=Gk-hDddr6HHr5PArycz3DqoeF476UpGqav9HGp_NsnI,85 +jedi/third_party/django-stubs/django-stubs/contrib/sitemaps/views.pyi,sha256=JueiGm9sG9TSRfC_6FP7SpdjeOxKko1he1IJJmvWl2Q,762 +jedi/third_party/django-stubs/django-stubs/contrib/sites/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/django-stubs/django-stubs/contrib/sites/apps.pyi,sha256=hA4WuIXyL9iDiIYzysxfk73L--Va48Ede2GGIvVCxPQ,69 +jedi/third_party/django-stubs/django-stubs/contrib/sites/management.pyi,sha256=tMS5XtfebpRS5cGVshTDsfF5tQmiBZqdVLH3Exey-vw,288 +jedi/third_party/django-stubs/django-stubs/contrib/sites/managers.pyi,sha256=9NB542AluxPiwc0ey-I-FDQKSlria3-A9ROMwdg6GXI,170 +jedi/third_party/django-stubs/django-stubs/contrib/sites/middleware.pyi,sha256=XdobZMJ16FQk-rt57wCtkkJ2NoJfD1LQrRz1lZfx8ZA,209 +jedi/third_party/django-stubs/django-stubs/contrib/sites/models.pyi,sha256=CAVo7Xo9pU0SQQ_-CBooqLbMaUjgqugtqvQUXAcmLrM,614 +jedi/third_party/django-stubs/django-stubs/contrib/sites/requests.pyi,sha256=9cA6iRYob33A_N7AHCWhB5HV0u7CBaa3YFxBwKtNjXc,298 +jedi/third_party/django-stubs/django-stubs/contrib/sites/shortcuts.pyi,sha256=dPbrudBzry6CawfRV1IbbF7SHGvSa6oDjGJayELnFzI,266 +jedi/third_party/django-stubs/django-stubs/contrib/staticfiles/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/django-stubs/django-stubs/contrib/staticfiles/apps.pyi,sha256=JiBc5TPKiv6yGihDg8hKxxONGJOnOn-rZmbU_P4rbxc,126 +jedi/third_party/django-stubs/django-stubs/contrib/staticfiles/checks.pyi,sha256=_LvpylIL3RjCRsZOzCn7MMuBD41DFLEZNWDolU61Ihs,242 +jedi/third_party/django-stubs/django-stubs/contrib/staticfiles/finders.pyi,sha256=uYtF_5sLYizgcESyiWVSsqwCHonIPf2CPF1Lh0Qg09w,1715 +jedi/third_party/django-stubs/django-stubs/contrib/staticfiles/handlers.pyi,sha256=H6xAYLSqzoYTmTD20s-nvsaEaWChXbQWcMsllwq5zJQ,417 +jedi/third_party/django-stubs/django-stubs/contrib/staticfiles/management/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/django-stubs/django-stubs/contrib/staticfiles/management/commands/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/django-stubs/django-stubs/contrib/staticfiles/management/commands/collectstatic.pyi,sha256=aauFD0KDUGYrHRVy-El3hUVhCkTXtWty213H0YRRjHc,1125 +jedi/third_party/django-stubs/django-stubs/contrib/staticfiles/management/commands/findstatic.pyi,sha256=AoPCqwNz4yYQQm1z6WCDMdxcWrBURx1I5iPsHJQvdOo,87 +jedi/third_party/django-stubs/django-stubs/contrib/staticfiles/management/commands/runserver.pyi,sha256=3uTSyH43HWzNj2ysIJXyT32MaF4q1_gz6q2hJJy2nRM,136 +jedi/third_party/django-stubs/django-stubs/contrib/staticfiles/storage.pyi,sha256=WRfGAaDXcvPjl7ICgAkaxm_lD8dNx9EqikVnBd-Bie0,2262 +jedi/third_party/django-stubs/django-stubs/contrib/staticfiles/templatetags/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/django-stubs/django-stubs/contrib/staticfiles/templatetags/staticfiles.pyi,sha256=3rNdwJS7hrGHEmWcCDQXI195iq8q2A_fB9K-mjIFLtg,234 +jedi/third_party/django-stubs/django-stubs/contrib/staticfiles/testing.pyi,sha256=sD4CDNL4bD-9nTfvLSMK8D7_Oc0UlxpMgraoUAGzr7s,100 +jedi/third_party/django-stubs/django-stubs/contrib/staticfiles/urls.pyi,sha256=e3hDRnM55Tey8gm6uIZkU9XaKL6K1hQCqbgwo2JEfD8,198 +jedi/third_party/django-stubs/django-stubs/contrib/staticfiles/utils.pyi,sha256=5kh8wIGL3tKBTFQ2tv-beeXeSlQvKS9_S8LVXflcybg,438 +jedi/third_party/django-stubs/django-stubs/contrib/staticfiles/views.pyi,sha256=Q2CX7w--nytsntQ6IkUxHuthpEHo8HQMeIsaC4Moq1c,222 +jedi/third_party/django-stubs/django-stubs/contrib/syndication/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/django-stubs/django-stubs/contrib/syndication/views.pyi,sha256=1HnKaVl09EenWI_V6xo-qcobr45hCSLC3uUtoimfGoU,1251 +jedi/third_party/django-stubs/django-stubs/core/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/django-stubs/django-stubs/core/cache/__init__.pyi,sha256=6zFjJ1q_xONqYBqBOcphnTqp49ZU8UrglfT-DCibJ-A,717 +jedi/third_party/django-stubs/django-stubs/core/cache/backends/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/django-stubs/django-stubs/core/cache/backends/base.pyi,sha256=YQGqJhft7pHV6PSlOwIi5WMK_Zhpqld19F1zp6axjnI,2327 +jedi/third_party/django-stubs/django-stubs/core/cache/backends/db.pyi,sha256=wGdUsoR-ow-u2LRIjaakjcwPByKQb8-U-KOXhTbW9wg,595 +jedi/third_party/django-stubs/django-stubs/core/cache/backends/dummy.pyi,sha256=PilEF_Ep1-fDe4bQFkVaFm_n4uTLtmzHv2ewWM8VBzo,182 +jedi/third_party/django-stubs/django-stubs/core/cache/backends/filebased.pyi,sha256=-ShvV4mAtuzKC617Q2qMr7FHZkwoBpG_KP-pfOBW02Y,216 +jedi/third_party/django-stubs/django-stubs/core/cache/backends/locmem.pyi,sha256=kz1dYtPcAvhw-OAgRG0Vd0n92M_1xxN8iaGoU-s4FZA,186 +jedi/third_party/django-stubs/django-stubs/core/cache/backends/memcached.pyi,sha256=08qEPXnng3yPOK9ZYP4WtWrtENsavVyQbI0ebWLffjI,352 +jedi/third_party/django-stubs/django-stubs/core/cache/utils.pyi,sha256=2rG3g9PW3FWNflGxI84bpIfvpVQlzYYg7FaZre1vEA0,184 +jedi/third_party/django-stubs/django-stubs/core/checks/__init__.pyi,sha256=lNFmiy3qR0A9eHFRAQT7h5sP7a8jHqRUDc6RhhBnjRo,430 +jedi/third_party/django-stubs/django-stubs/core/checks/caches.pyi,sha256=ILPwDMFMEiAA7KYy_G2He5djgU5iZiA8-kq3t8jgeTM,267 +jedi/third_party/django-stubs/django-stubs/core/checks/database.pyi,sha256=a86fSgBJq1RN7ReWxynzDzEJeRf-_SNW2pP5RuavEL4,103 +jedi/third_party/django-stubs/django-stubs/core/checks/messages.pyi,sha256=crXlAhQmqdtkL65DgmJf7T1h7zPJ6LlqXq2wVH0Nx1w,925 +jedi/third_party/django-stubs/django-stubs/core/checks/model_checks.pyi,sha256=YUzLAMcJQ8wgRiN41JJ1kUlkArL9cNW-mzN4z4qIPQ0,358 +jedi/third_party/django-stubs/django-stubs/core/checks/registry.pyi,sha256=djmQNgx4H932hka9_kArUfRrH-MRxMfQS5SchBapFqM,1212 +jedi/third_party/django-stubs/django-stubs/core/checks/security/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/django-stubs/django-stubs/core/checks/security/base.pyi,sha256=iPHQ9r4dT1LPGKvNGYzbup-1So13CsG4CB88tcL0s5w,1592 +jedi/third_party/django-stubs/django-stubs/core/checks/security/csrf.pyi,sha256=ql6NePz-3tHvFrRs1-RiUL7hu-YTeqvOjJDJKWECx4o,379 +jedi/third_party/django-stubs/django-stubs/core/checks/security/sessions.pyi,sha256=GtTSJmziKaY-VxLKo9uZ2Iv2Bm_Q1GucnscQ9IcqI3k,527 +jedi/third_party/django-stubs/django-stubs/core/checks/templates.pyi,sha256=onbDwInTuNoww68Ei0NcAl3zBYRJ1YXTL7ihxAhfyN4,391 +jedi/third_party/django-stubs/django-stubs/core/checks/translation.pyi,sha256=KB0XkeUqlgS1O-HFeVcF0gP09nv9su--tX6fJmTNFKA,155 +jedi/third_party/django-stubs/django-stubs/core/checks/urls.pyi,sha256=cPGPCVBb1TtYLLIgid6su5NcNd9p90b7-40uT9kYhq4,780 +jedi/third_party/django-stubs/django-stubs/core/exceptions.pyi,sha256=VPgD4WzafSFza0Gv5-D0WmJrdtcBAkBKhLirWk9n4h0,1543 +jedi/third_party/django-stubs/django-stubs/core/files/__init__.pyi,sha256=hdnkFb2OQ7nFCvlNdWdVo4qsMPLXN_YaeyRdMAineH0,68 +jedi/third_party/django-stubs/django-stubs/core/files/base.pyi,sha256=EEh_-8b3WGLzwLAKVaKHe_-FNW4yipUv4cEWCThurls,1435 +jedi/third_party/django-stubs/django-stubs/core/files/images.pyi,sha256=SMT0wolMYso4QmCGlPtKmBirJOnvghPc8TkUgMFGe6M,309 +jedi/third_party/django-stubs/django-stubs/core/files/locks.pyi,sha256=EHZ7epp-o3EYCF3vCAPw3DLI5QAPNTg63LDLJL-BP50,308 +jedi/third_party/django-stubs/django-stubs/core/files/move.pyi,sha256=PISpZOttN4V_udjfb3adCtD-4oZ6Xaq8W79I6MddcrY,130 +jedi/third_party/django-stubs/django-stubs/core/files/storage.pyi,sha256=JeqnJwGpqWlD-FDfKMVYM0uTcoHcCaFehqwxyrFcOsQ,1769 +jedi/third_party/django-stubs/django-stubs/core/files/temp.pyi,sha256=GXys-R-G1z3HKO90VbMZqW5mpy8e468QbczNs9k9vQM,100 +jedi/third_party/django-stubs/django-stubs/core/files/uploadedfile.pyi,sha256=mmdboWz3QcaLVWHtiB4GWI5GowWOgQXPpSZoZGJuxqo,1486 +jedi/third_party/django-stubs/django-stubs/core/files/uploadhandler.pyi,sha256=yDWGn8nxgymZGsTNoPles2N1JgzZfvJnR8SGQivSRA8,3195 +jedi/third_party/django-stubs/django-stubs/core/files/utils.pyi,sha256=-YkCeClNFbCHxU418Pbn4t8p451gwLt5UfHnv-1twCc,547 +jedi/third_party/django-stubs/django-stubs/core/handlers/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/django-stubs/django-stubs/core/handlers/base.pyi,sha256=zr5dcNLmsLL8WK45_pof5Whiw8JyVqNe-nQNNTaRBUc,572 +jedi/third_party/django-stubs/django-stubs/core/handlers/exception.pyi,sha256=9Z2sl79zEx6EkjxA7930oIYYsuaOZQNKf_zNUa21YV0,570 +jedi/third_party/django-stubs/django-stubs/core/handlers/wsgi.pyi,sha256=ZmdUpvNrkmvBNxddhxasurnqfL2cXAYWiDchJMTFfVw,1325 +jedi/third_party/django-stubs/django-stubs/core/mail/__init__.pyi,sha256=fS7DQB-KYK0_XQ5JJ_mfNooDw4aI8K3DQOGmUW2cjKQ,1504 +jedi/third_party/django-stubs/django-stubs/core/mail/backends/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/django-stubs/django-stubs/core/mail/backends/base.pyi,sha256=gRQflStnEnexigKiEhXW9ew01NFWHkgEErsO7zGkmq8,604 +jedi/third_party/django-stubs/django-stubs/core/mail/backends/console.pyi,sha256=rp3gJ_WRrP7cC6OHCZxDmMCEGpwSZTXTE_-9sYGE7qA,103 +jedi/third_party/django-stubs/django-stubs/core/mail/backends/dummy.pyi,sha256=rp3gJ_WRrP7cC6OHCZxDmMCEGpwSZTXTE_-9sYGE7qA,103 +jedi/third_party/django-stubs/django-stubs/core/mail/backends/filebased.pyi,sha256=rp3gJ_WRrP7cC6OHCZxDmMCEGpwSZTXTE_-9sYGE7qA,103 +jedi/third_party/django-stubs/django-stubs/core/mail/backends/locmem.pyi,sha256=rp3gJ_WRrP7cC6OHCZxDmMCEGpwSZTXTE_-9sYGE7qA,103 +jedi/third_party/django-stubs/django-stubs/core/mail/backends/smtp.pyi,sha256=9fsENrJbPIEXUtnYhW_1dADqpcj7I4Z3kR2-3DGwdHg,510 +jedi/third_party/django-stubs/django-stubs/core/mail/message.pyi,sha256=AJVmTc2Ih1J4hsxLyE5ESK8r611Ooqk1thh39cW28v0,4094 +jedi/third_party/django-stubs/django-stubs/core/mail/utils.pyi,sha256=HiKGzyDfshoDMKu0_OuSD262A10HLjhURdD4ZNJt1ec,95 +jedi/third_party/django-stubs/django-stubs/core/management/__init__.pyi,sha256=xqh8MGApVKxQeURNp9Rp8zkm_4VlnefNkcDNnLiF6Yw,841 +jedi/third_party/django-stubs/django-stubs/core/management/base.pyi,sha256=ek1zS9nL1nCODxJGB2tJ6UXz2KjHoJzXeYa54B_wJU4,2922 +jedi/third_party/django-stubs/django-stubs/core/management/color.pyi,sha256=vnwktv_gcMVYi1TUqZBJ1DQZzpUMkwEzyZxs4FE47OQ,1052 +jedi/third_party/django-stubs/django-stubs/core/management/commands/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/django-stubs/django-stubs/core/management/commands/dumpdata.pyi,sha256=BnOg4pY4rHhpAptNOtprYlnqdHCdnFygXlshZu_g62Y,123 +jedi/third_party/django-stubs/django-stubs/core/management/commands/loaddata.pyi,sha256=jbmimF-dEcZb-DftHd6JuveAc_o50YWVGpnajeiVKOo,625 +jedi/third_party/django-stubs/django-stubs/core/management/commands/makemessages.pyi,sha256=hXQnwklaQn5pUiJSvIq757ECX5yJd5IcE3X6-d78G84,1134 +jedi/third_party/django-stubs/django-stubs/core/management/commands/runserver.pyi,sha256=if7vEdyAi4nKamysFhqo6H_JDGRhSPSZhEGigVamK4g,194 +jedi/third_party/django-stubs/django-stubs/core/management/commands/testserver.pyi,sha256=Gk-hDddr6HHr5PArycz3DqoeF476UpGqav9HGp_NsnI,85 +jedi/third_party/django-stubs/django-stubs/core/management/sql.pyi,sha256=fi7T3XJ92IYa50gpmW8vwmA9QPag-oU5XLP2WBo6rpI,429 +jedi/third_party/django-stubs/django-stubs/core/management/templates.pyi,sha256=vHW_QxpqF7tt5xpREpcMA7pdHKkY5E53MkzQaTtkASQ,624 +jedi/third_party/django-stubs/django-stubs/core/management/utils.pyi,sha256=UfBxh4njLLSBSor3WdNJt1clcHylFcqwkiSivhLHK3s,527 +jedi/third_party/django-stubs/django-stubs/core/paginator.pyi,sha256=3ha_zAANkWUw_GUkgCYaQULZQRGcxXCS5gaBdkozVdg,1896 +jedi/third_party/django-stubs/django-stubs/core/serializers/__init__.pyi,sha256=fLovD32hc1-1o1kK0wjYy7LdtzF5VcQ0C-Pc8Ta1wGo,1377 +jedi/third_party/django-stubs/django-stubs/core/serializers/base.pyi,sha256=5Lcy5QIKxdt26oPFUeZS6ix1WGk7UlsFLnYLFCgM-GE,3388 +jedi/third_party/django-stubs/django-stubs/core/serializers/json.pyi,sha256=mAtdKicHMrrrYDSb_3TUv5lhhg41Rbdukqrupkc8SqI,422 +jedi/third_party/django-stubs/django-stubs/core/serializers/python.pyi,sha256=QctI1p3qqQiaqLpGJdLwvIvECRDz5taXFR1ElFZB1x0,535 +jedi/third_party/django-stubs/django-stubs/core/servers/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/django-stubs/django-stubs/core/servers/basehttp.pyi,sha256=7PZLnV2hBprVabl_Ph9E6v0w4pjdXcbWKP49uijiD1A,1301 +jedi/third_party/django-stubs/django-stubs/core/signals.pyi,sha256=oSxvwX4-JFULZ6XVH3IH9fIoB7yQP7qWf1q2ifN1wNw,163 +jedi/third_party/django-stubs/django-stubs/core/signing.pyi,sha256=nMLdl0czCgg1pQPSO-8Y8DRyUlbk6t_czM4GzRe1pAA,1467 +jedi/third_party/django-stubs/django-stubs/core/validators.pyi,sha256=EeHJ3xcX9cpZ75vv8vVgZ7XdrRXHU0x8c40lJYMq9G0,3934 +jedi/third_party/django-stubs/django-stubs/core/wsgi.pyi,sha256=6VtHyJCF0P4EmH0PppqXcZMZ3kV75FuSjKglcvueZ9M,98 +jedi/third_party/django-stubs/django-stubs/db/__init__.pyi,sha256=RFbCnbvJwrVkhhkwk-OUM4Q7hCIx88ESSptH3qqQGhE,936 +jedi/third_party/django-stubs/django-stubs/db/backends/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/django-stubs/django-stubs/db/backends/base/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/django-stubs/django-stubs/db/backends/base/base.pyi,sha256=NvNs0Fpr2hOcUhZu0WswbNUaxheO1_haci7_WcMnFgs,4348 +jedi/third_party/django-stubs/django-stubs/db/backends/base/client.pyi,sha256=M2_0vbL99q0t6Y0mKHT-TJ0FHOnXrfz0UFVxQxHIqWQ,274 +jedi/third_party/django-stubs/django-stubs/db/backends/base/creation.pyi,sha256=x9cz11-3RbcDHEAmN2Gr6Efvg3wMqhMx1tweI_z8jbU,1103 +jedi/third_party/django-stubs/django-stubs/db/backends/base/features.pyi,sha256=cbWlLXRFXtvJTHSOm71kTMmvlYLvzVejJ6PIu4_R5PM,4244 +jedi/third_party/django-stubs/django-stubs/db/backends/base/introspection.pyi,sha256=CGlvGS9dFb32sBC_llaLmhVlBxwcO26JTsdA3mW8-9A,1490 +jedi/third_party/django-stubs/django-stubs/db/backends/base/operations.pyi,sha256=-k3Ca4u2vUCVTYS04vxgzD-XpX7PCE9o6RBP_--kJKs,6237 +jedi/third_party/django-stubs/django-stubs/db/backends/base/schema.pyi,sha256=PrP7x6JM2lfZFJcZYIXN7OjevwSeJXHX77uIkFFGcv8,3346 +jedi/third_party/django-stubs/django-stubs/db/backends/base/validation.pyi,sha256=c-X0DuxTKiXBUrZ1xrN2vxE9EC0hRfG2aS3tg3ikZyI,386 +jedi/third_party/django-stubs/django-stubs/db/backends/ddl_references.pyi,sha256=WsOtVIe0GMwG-3kuNxjJaAjg7NDl0FgPfKAIufsvIDY,2657 +jedi/third_party/django-stubs/django-stubs/db/backends/dummy/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/django-stubs/django-stubs/db/backends/dummy/base.pyi,sha256=Bybortoqc2aftoDUI9JOW6B3eA8RmtNnPI8IswCBw_w,1029 +jedi/third_party/django-stubs/django-stubs/db/backends/mysql/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/django-stubs/django-stubs/db/backends/mysql/client.pyi,sha256=LuRBeD30YTt7ZKkIy0QPI5cUoCdDkcFUphPF3P6VHmU,383 +jedi/third_party/django-stubs/django-stubs/db/backends/postgresql/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/django-stubs/django-stubs/db/backends/postgresql/base.pyi,sha256=m4ZIq3xup97EwKqz215v0DPzkl64DGJ8ckiJOzWkPHg,459 +jedi/third_party/django-stubs/django-stubs/db/backends/postgresql/client.pyi,sha256=KnnW4cVB55-O1rySn8y0wxf1HmInCvUppc4Ylzg1HVM,281 +jedi/third_party/django-stubs/django-stubs/db/backends/postgresql/creation.pyi,sha256=fnJLgXWLVw9MDbkPM_PrlgCNeEovyRFWahmCpmGtL9A,117 +jedi/third_party/django-stubs/django-stubs/db/backends/postgresql/operations.pyi,sha256=8l4IrNRrQZJk-LLbH3zGWqgpTmBXA2-rUsP76GgpY_Y,125 +jedi/third_party/django-stubs/django-stubs/db/backends/signals.pyi,sha256=fLFzAfAJ6fuAuy0wVTa0zHBeFCgG7bMLOi_kT7diVBs,69 +jedi/third_party/django-stubs/django-stubs/db/backends/sqlite3/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/django-stubs/django-stubs/db/backends/sqlite3/base.pyi,sha256=bVWwqWyV2s6IXlN9-njHCzdAwLlhw05GFlNq9QT-xG0,349 +jedi/third_party/django-stubs/django-stubs/db/backends/sqlite3/creation.pyi,sha256=fnJLgXWLVw9MDbkPM_PrlgCNeEovyRFWahmCpmGtL9A,117 +jedi/third_party/django-stubs/django-stubs/db/backends/sqlite3/features.pyi,sha256=QBNQPU-dQwPzmhxGH3AcxhgcJ5rCwtLeWJbelW3Lw3E,117 +jedi/third_party/django-stubs/django-stubs/db/backends/sqlite3/introspection.pyi,sha256=7bAlv3kwuzQxii9IDzIOLFHKsr2_TjCkC9wBFmEB2CQ,363 +jedi/third_party/django-stubs/django-stubs/db/backends/sqlite3/operations.pyi,sha256=8l4IrNRrQZJk-LLbH3zGWqgpTmBXA2-rUsP76GgpY_Y,125 +jedi/third_party/django-stubs/django-stubs/db/backends/sqlite3/schema.pyi,sha256=LYEtIfhLNap5vTN1wwBi2NvjgvyRQPhbFpMAYOybr68,127 +jedi/third_party/django-stubs/django-stubs/db/backends/utils.pyi,sha256=yDvBVaKmX_paln-6-vFqr6EQt-vqucdEqkZm3UKvpnA,1835 +jedi/third_party/django-stubs/django-stubs/db/migrations/__init__.pyi,sha256=hhLMlg4osD2PgLKlq76pVHYWqPXZMnA4BpE9v8tDWyQ,243 +jedi/third_party/django-stubs/django-stubs/db/migrations/autodetector.pyi,sha256=xQmcpsLs8jTPIMGuwaASncuUExFQeutQDKJdzNwjAQE,3011 +jedi/third_party/django-stubs/django-stubs/db/migrations/exceptions.pyi,sha256=qoLgU_vrG4a68pzirMdWXBunpPEbYOxdV_m7hJrfKh4,709 +jedi/third_party/django-stubs/django-stubs/db/migrations/executor.pyi,sha256=0s4j-NtGdXyt6dN-GUzjQfPmvvuZAiO-qph4OSIk0_I,1679 +jedi/third_party/django-stubs/django-stubs/db/migrations/graph.pyi,sha256=gZ2DtdRW8WGaNagYSS450xy37jIEYHwXrp4NK6UEUfo,2531 +jedi/third_party/django-stubs/django-stubs/db/migrations/loader.pyi,sha256=FzXHEFMvG28529zVgYPqvIUVmgu4b6ItJHmyLDOcjsU,1547 +jedi/third_party/django-stubs/django-stubs/db/migrations/migration.pyi,sha256=EC3sKQH__KdAQHdtVlB9Mdng9PZRjXfRr5kq_C4QIsU,1064 +jedi/third_party/django-stubs/django-stubs/db/migrations/operations/__init__.pyi,sha256=7V9NE9LUjCDMmYRbbA_DpyByGdwqYJGP4PP4eb9irGM,796 +jedi/third_party/django-stubs/django-stubs/db/migrations/operations/base.pyi,sha256=Yf5Kls_4hSQsIXjlL9OK08vwdBoC-U9HZUEqFAgt3iU,902 +jedi/third_party/django-stubs/django-stubs/db/migrations/operations/fields.pyi,sha256=K3iNfmrU5ih3R9q5iWbWd9vzvwfdKEI5t1mTSOQp6PM,1166 +jedi/third_party/django-stubs/django-stubs/db/migrations/operations/models.pyi,sha256=-PMXj0mF4RpqFF5EfGbXLjb6OL6M3N-IiLppkp1zhNU,3154 +jedi/third_party/django-stubs/django-stubs/db/migrations/operations/special.pyi,sha256=IUylNYPs2amdxe0LXDpAcgG38E6MidF-HqfSXB-rqT4,1340 +jedi/third_party/django-stubs/django-stubs/db/migrations/operations/utils.pyi,sha256=c3JLPgnNvLkXPqd58STsQgONi7i1eUn081TgQaGOehY,217 +jedi/third_party/django-stubs/django-stubs/db/migrations/optimizer.pyi,sha256=4oDcfA4PXyGPtc1C6MmknB-6TaaNtYdeWSyE7JTmMzk,343 +jedi/third_party/django-stubs/django-stubs/db/migrations/questioner.pyi,sha256=734ewVOcc5I9wlAUW2DJ8BVBqACx6C1pm4cHY0ZlwUo,1156 +jedi/third_party/django-stubs/django-stubs/db/migrations/recorder.pyi,sha256=j2th14mIxchOJ3s1ar2nbloAI6Xy4wiVDitnw-i9snE,806 +jedi/third_party/django-stubs/django-stubs/db/migrations/serializer.pyi,sha256=GRls6awL8QgjOVzgNassbBe6H4bEhT1h1vgdjxD97T8,1828 +jedi/third_party/django-stubs/django-stubs/db/migrations/state.pyi,sha256=3Hflqo8oiCVz-oSprFYyKetkhQsjU69QtTViZimP5Q0,2640 +jedi/third_party/django-stubs/django-stubs/db/migrations/topological_sort.pyi,sha256=NJzfRJYQwJeJS8fCVme_hYGsbrt14h7EGAcs2W0fmL8,348 +jedi/third_party/django-stubs/django-stubs/db/migrations/utils.pyi,sha256=yRlE8__8quhMrlAMU1F282hQftrxxiSQbja20o8hYmc,207 +jedi/third_party/django-stubs/django-stubs/db/migrations/writer.pyi,sha256=cNq1r8wj7KawULnICxXBTWDqO0QVGCoBKLls3O_o48M,1441 +jedi/third_party/django-stubs/django-stubs/db/models/__init__.pyi,sha256=7nR-mr7WV8G0f6Cs5Hcblfww2y2WzC1oQxd31mhnx0Q,3576 +jedi/third_party/django-stubs/django-stubs/db/models/aggregates.pyi,sha256=PrOHocknn7Wmh2aq93_WVq50dx9SOifIIBHvN8F6GVE,501 +jedi/third_party/django-stubs/django-stubs/db/models/base.pyi,sha256=77FrtJ8O86v8HFichcpzYvYxYetw0sS1ArGFdd10uNc,2400 +jedi/third_party/django-stubs/django-stubs/db/models/constraints.pyi,sha256=CXaVfiv0tWcDNPkxg8j7s1Be-teHkwMVuYZLZtMVasM,1089 +jedi/third_party/django-stubs/django-stubs/db/models/deletion.pyi,sha256=GEJcVeD0a_5KMj6u_kVxGQ1ezJj7rW5iccRZkQitN00,1149 +jedi/third_party/django-stubs/django-stubs/db/models/enums.pyi,sha256=Tu87vXSWCvRlSS_Sq3k8aptOXzmMF9JQj4Hk6pW3m3s,814 +jedi/third_party/django-stubs/django-stubs/db/models/expressions.pyi,sha256=QmaztG7k_UEThUZgtlDcwHxQASmil4xVM8ZfG6HQ-cg,8583 +jedi/third_party/django-stubs/django-stubs/db/models/fields/__init__.pyi,sha256=7cRcjZV7AVblUEXaAnQfzpnHX5yqCmenp8fyr9Ce_vA,13788 +jedi/third_party/django-stubs/django-stubs/db/models/fields/files.pyi,sha256=5EFmMvl68KKIC0O7BG7w4f-CEmLvtlxPHswHC8AtHTA,3640 +jedi/third_party/django-stubs/django-stubs/db/models/fields/mixins.pyi,sha256=myGDhO7COLmmouchsjRU57lQpXnJahzqaffXmya4r6c,453 +jedi/third_party/django-stubs/django-stubs/db/models/fields/proxy.pyi,sha256=HJvfUvqFTmnGwe3bZs0eHumpAvOdFYTJeX-KzOPvR80,161 +jedi/third_party/django-stubs/django-stubs/db/models/fields/related.pyi,sha256=6kgc4LA0vqc4JVg0Q9GRkHDuKr_6IfHwxVAoYFly2-I,9289 +jedi/third_party/django-stubs/django-stubs/db/models/fields/related_descriptors.pyi,sha256=foBVVlhgtaoOz6iRbAmh5Az18ZNbxND6gDncol863WA,3184 +jedi/third_party/django-stubs/django-stubs/db/models/fields/related_lookups.pyi,sha256=tPhBih5TNsVbpZ4_j-HM5Gt8tehukUcWxh-cnzARJw4,1500 +jedi/third_party/django-stubs/django-stubs/db/models/fields/reverse_related.pyi,sha256=EzSzqqZdtRcfUwzFDBZLZu8Nw1wbx5fyiyjzTfcSDEk,4045 +jedi/third_party/django-stubs/django-stubs/db/models/functions/__init__.pyi,sha256=zwujZ_mDvMGvDG7PZntnImLITlio1OMJlvuvH0hwmlk,2077 +jedi/third_party/django-stubs/django-stubs/db/models/functions/comparison.pyi,sha256=zMX1rKOTcfMhIyWmstp9DLfT06lDE7Yz-znCQVan-OE,312 +jedi/third_party/django-stubs/django-stubs/db/models/functions/datetime.pyi,sha256=YuYkZO0-rVO_6ChthbPlNHuB24w33RMSLAsipoUTn0s,972 +jedi/third_party/django-stubs/django-stubs/db/models/functions/math.pyi,sha256=4rGyuph9f9-2jlUnUDcCm2DKhTgkHvU4w2UOuGTzd_I,1222 +jedi/third_party/django-stubs/django-stubs/db/models/functions/mixins.pyi,sha256=HW4qO_JX_b1oScltR83xx0ekxCrXcvFMFZNCf6Hp5DY,100 +jedi/third_party/django-stubs/django-stubs/db/models/functions/text.pyi,sha256=8oIROhzzKZO1b8MvEmARBx4LgmfDNG-2ZRoNpYsK3yU,2228 +jedi/third_party/django-stubs/django-stubs/db/models/functions/window.pyi,sha256=poxMB0VKvi7XGx_8imATTi1aaOTGcEuaPLCv3zifFC0,702 +jedi/third_party/django-stubs/django-stubs/db/models/indexes.pyi,sha256=eKOgHZWF1_TUVZl3a8W3UpoDf3N73D07NU5Iw1qiaGE,1241 +jedi/third_party/django-stubs/django-stubs/db/models/lookups.pyi,sha256=BI1Ly6Sa_U1zDza00zTlC3pPF-bI4eKKev4L2bTlmqE,4475 +jedi/third_party/django-stubs/django-stubs/db/models/manager.pyi,sha256=w5myME9kNAigRReNYiUSNGjRzLUGWcwoqSfd49zmWH8,1796 +jedi/third_party/django-stubs/django-stubs/db/models/options.pyi,sha256=YC_LwZgqFGmUtfNhVmfRRTjSpTKpMCWbh8MxSXdLuoM,4993 +jedi/third_party/django-stubs/django-stubs/db/models/query.pyi,sha256=I04vyx6gHnK0Wm2atkwItk31rQBzNt2WwUx0u9YiB2M,9202 +jedi/third_party/django-stubs/django-stubs/db/models/query_utils.pyi,sha256=_FWehOpztavNcVxGBrAg7VFLdUNJeRigE7dqPt3-PDQ,3011 +jedi/third_party/django-stubs/django-stubs/db/models/signals.pyi,sha256=UvyKPck5LFYqOCeet0Z9HCxbtF9HKOofVak2mnyfPqM,850 +jedi/third_party/django-stubs/django-stubs/db/models/sql/__init__.pyi,sha256=mcrelxpwAAcq3e68wtJ3Y8vbb0JwRwln3GFy3PXTBf0,219 +jedi/third_party/django-stubs/django-stubs/db/models/sql/compiler.pyi,sha256=01_nE7RT8qgJbDsvul5mI-vifLFTQAwk1ETcJxc3U60,4712 +jedi/third_party/django-stubs/django-stubs/db/models/sql/constants.pyi,sha256=wqrVp2CmNwQGTE6G48hxopiddIaPjheG3aF0bNrfrxI,262 +jedi/third_party/django-stubs/django-stubs/db/models/sql/datastructures.pyi,sha256=aP3H2772NScQipXPMjWN8hReyS1cMtP35Tj0FOV0tTo,1909 +jedi/third_party/django-stubs/django-stubs/db/models/sql/query.pyi,sha256=HT_Qr-1R-rZvhpcYgMxLfWT3Xu82PmfvP7JyXNKMKgM,9072 +jedi/third_party/django-stubs/django-stubs/db/models/sql/subqueries.pyi,sha256=AvzqhSc6nWUiriu4jd62PAQt77fJ004mIDDuuzWpJu0,1828 +jedi/third_party/django-stubs/django-stubs/db/models/sql/where.pyi,sha256=SF_adSLaf14MqiKd-bjuWeX9eZFMBEXstMHnZS9hlT4,1918 +jedi/third_party/django-stubs/django-stubs/db/models/utils.pyi,sha256=ooqtUE_Tbh7fBMCgqzG9BkkycU8Pj3fD-tx3OEkqMuM,157 +jedi/third_party/django-stubs/django-stubs/db/transaction.pyi,sha256=8jqZMjzJCdLIVsBvkw_2elm7gagC_80GoW1SnhbmOs0,2032 +jedi/third_party/django-stubs/django-stubs/db/utils.pyi,sha256=EalrPIBxRawmO26UrJuJmUTeXCB8x24ehargXA4Gm9s,1244 +jedi/third_party/django-stubs/django-stubs/dispatch/__init__.pyi,sha256=SQUYnc7LrrXNZN_Ch5JdeGL9HDU-gaTK6G4Yxrr-rvc,78 +jedi/third_party/django-stubs/django-stubs/dispatch/dispatcher.pyi,sha256=mU0d9m4337GccA9rnNHlGm4xaj7ik5QY39cIeKK8VKM,994 +jedi/third_party/django-stubs/django-stubs/forms/__init__.pyi,sha256=4coCEFdYif8MNg0AXsb9poFP6Ih5OiB9Nytd_goGZmk,2957 +jedi/third_party/django-stubs/django-stubs/forms/boundfield.pyi,sha256=jiT0VOrFHPAwTTJYoFiHrtgZbVa8kxv8OjCwA_JuUSo,2308 +jedi/third_party/django-stubs/django-stubs/forms/fields.pyi,sha256=0F8m3ToEyszYNG0eB0VX-UgaYBlplgt2B1QPpmVAyc0,13037 +jedi/third_party/django-stubs/django-stubs/forms/forms.pyi,sha256=UHB2YbGoqojA9mu6mH7vFcHyFTgSa_y7cTcv7h2pF2s,3096 +jedi/third_party/django-stubs/django-stubs/forms/formsets.pyi,sha256=PWlKGK54Iu7khVNdt8nkqFnAHvlF1LkZCPttxU5jRpc,2397 +jedi/third_party/django-stubs/django-stubs/forms/models.pyi,sha256=B3ET3PjsUBJQWUasxTXCEOmoMsL9EOfdNTDnpchkzvw,10173 +jedi/third_party/django-stubs/django-stubs/forms/renderers.pyi,sha256=GSv3bIQiNtMy2NxLMWqZMSpGNQTJQUygIDYCecN41uE,724 +jedi/third_party/django-stubs/django-stubs/forms/utils.pyi,sha256=MgzO6rPlH29FFb7nkg-7ZSQYUjvQ92m-gqiS-bq5Z2w,1257 +jedi/third_party/django-stubs/django-stubs/forms/widgets.pyi,sha256=xO_oOqc02RaK07qV-g17bKBYlXyFhmRie6Nqrb5eq0o,6094 +jedi/third_party/django-stubs/django-stubs/http/__init__.pyi,sha256=tpXEfW48QUEnzOLVM9glXI6MLX3VX6_a-DmbzjIhvF0,988 +jedi/third_party/django-stubs/django-stubs/http/cookie.pyi,sha256=alynIOZMj8djeNCol-x2_mSUeNUtoO-stYZrboEDHnQ,102 +jedi/third_party/django-stubs/django-stubs/http/multipartparser.pyi,sha256=tq4nBvZN_mSeNC82urno1t2JhEKAqkXOPHpno5LIglQ,1986 +jedi/third_party/django-stubs/django-stubs/http/request.pyi,sha256=hxikJdIej6joG5W7mcj6h74Je5DvynLBpaoYT4vmxfg,3786 +jedi/third_party/django-stubs/django-stubs/http/response.pyi,sha256=JpWbTjhXgAGp7qotHfUTgHRLXoq49jL7YRDNrsjRi6Q,4994 +jedi/third_party/django-stubs/django-stubs/middleware/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/django-stubs/django-stubs/middleware/cache.pyi,sha256=2eNzy0MekvcFiR52WXQ1er12Gl3ZPNaYQBAesnRkaWM,1095 +jedi/third_party/django-stubs/django-stubs/middleware/clickjacking.pyi,sha256=KcQDinOFpxOnJt_bWJpFLk350ceGcODerjF3xcc4gEg,387 +jedi/third_party/django-stubs/django-stubs/middleware/common.pyi,sha256=KmN-G-bFLmSpqbZYXKF2rCWFbyT1thGKKQVscfCdLGQ,987 +jedi/third_party/django-stubs/django-stubs/middleware/csrf.pyi,sha256=-jr3w2lhfv_YPC74qNWZ_r8-CQ8jaJz9AU7c5te2FGA,1250 +jedi/third_party/django-stubs/django-stubs/middleware/gzip.pyi,sha256=If78A7dw_ILgnSCY2L8wkjNF2qqk7SkBVK17WAxVx7Q,339 +jedi/third_party/django-stubs/django-stubs/middleware/http.pyi,sha256=mdaMBPWaWuwjz0g400w1t5N3TkNGL9dG-TCmmkbAOd0,369 +jedi/third_party/django-stubs/django-stubs/middleware/locale.pyi,sha256=typ6K2fi1-vG64j0GVCSAXKCKzcpzmVE2bdDzoe8bes,423 +jedi/third_party/django-stubs/django-stubs/middleware/security.pyi,sha256=4ee7wQgRxiwpP_vwfG5IM68TYyCGpVPuTYEwp8uoM88,715 +jedi/third_party/django-stubs/django-stubs/shortcuts.pyi,sha256=WRzWWQatCnOL3yp2KLZ1H6b35J-eq3H6Ipk66YA2Y6s,1972 +jedi/third_party/django-stubs/django-stubs/template/__init__.pyi,sha256=87Omlyr7XLi5x8bbxTBby2htPXGn79eytzb2jguf2EU,648 +jedi/third_party/django-stubs/django-stubs/template/backends/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/django-stubs/django-stubs/template/backends/base.pyi,sha256=iHw-0xrm6rTptCjmp4N7VEZZRSHEGacxetcQotMVyBU,601 +jedi/third_party/django-stubs/django-stubs/template/backends/django.pyi,sha256=Ds2mLWa5DQirwlyvcy9SzMQVJDbiuvrV5jpYvTUbwbA,706 +jedi/third_party/django-stubs/django-stubs/template/backends/dummy.pyi,sha256=jhUAbJ7I1y6I56DI71u6geDjdndUJn1Fu4RkNIGh7AA,478 +jedi/third_party/django-stubs/django-stubs/template/backends/jinja2.pyi,sha256=ROpMhGxnaNlxWdYlvRWhvdEIFS7HQx1dB-x_FNK1WuQ,581 +jedi/third_party/django-stubs/django-stubs/template/backends/utils.pyi,sha256=Sbwk0bMuzGHJqvrhODl47g0H0n_LiFl7YYOwjHHWGVk,211 +jedi/third_party/django-stubs/django-stubs/template/base.pyi,sha256=eR590K7BCZtsab-Strdw8ju0Luft-YxFl7gme_g9pto,6030 +jedi/third_party/django-stubs/django-stubs/template/context.pyi,sha256=F1mgkncBKN_OeGuDO-dR3dZoYKVE2pxIoFu7ZnAcKUA,3208 +jedi/third_party/django-stubs/django-stubs/template/context_processors.pyi,sha256=bMVI13GgofaJnXyDHRgj09wVxMt0sA1DxawMrzwAtQc,640 +jedi/third_party/django-stubs/django-stubs/template/defaultfilters.pyi,sha256=fFNBc7tz39VsgxpHu5pOGyI1hyjQ44gwpSkObxGe6VA,3651 +jedi/third_party/django-stubs/django-stubs/template/defaulttags.pyi,sha256=hvxjkL-tRoFTg1JeScbEUeiMYF5HrnDw2XQpN4aY0QU,7237 +jedi/third_party/django-stubs/django-stubs/template/engine.pyi,sha256=fVxtt56BiOR-fLxGZtYFwvJD_ygYgu9Bhy5I39c7QbM,2158 +jedi/third_party/django-stubs/django-stubs/template/exceptions.pyi,sha256=XKMDInGTVL9Zr_exfpi6tS-zliwBuK5Dwg2hU9ZwAiE,596 +jedi/third_party/django-stubs/django-stubs/template/library.pyi,sha256=wqpD6-eFu6CHuraBEiO37sRG2Zhmkea1rv0I9eR2StA,3079 +jedi/third_party/django-stubs/django-stubs/template/loader.pyi,sha256=8O6_g_3h_zkRVqC5OdBbHG0MvIcPNWDr2qszobREPsM,620 +jedi/third_party/django-stubs/django-stubs/template/loader_tags.pyi,sha256=uhPtslJdwFOhqdsWtTzgOPgTFle7rf_eeQDVmmwFCuI,2363 +jedi/third_party/django-stubs/django-stubs/template/loaders/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/django-stubs/django-stubs/template/loaders/app_directories.pyi,sha256=tIrBH9Efep-8HYF_maLVfKPj8eGF_xY4ZxB22AmZsNI,88 +jedi/third_party/django-stubs/django-stubs/template/loaders/base.pyi,sha256=XNXihk_WvxirQJ20BpEPQZqcOms77836aOJYjCLwMl4,476 +jedi/third_party/django-stubs/django-stubs/template/loaders/cached.pyi,sha256=WROvtCtkV0dc4-6h2KISA3zO_h_73eo2id2bxRzLiz0,564 +jedi/third_party/django-stubs/django-stubs/template/loaders/filesystem.pyi,sha256=n3c4eQtiR0RBWkrPXGY8fi3bRTjEPlOnpEwawsQlojQ,433 +jedi/third_party/django-stubs/django-stubs/template/loaders/locmem.pyi,sha256=7P_Vsr1xLb_8tZ4QxEFF-31souSiyLHH0cKqlEcwIPA,354 +jedi/third_party/django-stubs/django-stubs/template/response.pyi,sha256=j1Fl0YSJTvostAVTfkMYy8g2KB9YlP3DBTaAZBMdLbU,2344 +jedi/third_party/django-stubs/django-stubs/template/smartif.pyi,sha256=PAKYMxW4Q6JY0l8TLmwR7B90xy8IYnMXTf7e6Atog_w,1267 +jedi/third_party/django-stubs/django-stubs/template/utils.pyi,sha256=keI7BX8onKPNwTqz9O1Osr1Rk7ZiyPIntQOvsPBo8Os,558 +jedi/third_party/django-stubs/django-stubs/templatetags/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/django-stubs/django-stubs/templatetags/cache.pyi,sha256=u-SCt-L2RlRBD9xG-pVTkwhThwJ7eNazTInZFAXHPWg,682 +jedi/third_party/django-stubs/django-stubs/templatetags/i18n.pyi,sha256=gca9DVbprTHJzIGX-GCcxEUViYDYfH10HffLu3xK9Ik,3176 +jedi/third_party/django-stubs/django-stubs/templatetags/l10n.pyi,sha256=8OV4XSr_rPNMhLOzxVu00SzC9VEnmt4OTRZmMZRqDZc,429 +jedi/third_party/django-stubs/django-stubs/templatetags/static.pyi,sha256=cUQ9iIHKXWgJXY2Qh9M1VXFgD_ASyNQbkVk4Unwg7oo,1170 +jedi/third_party/django-stubs/django-stubs/templatetags/tz.pyi,sha256=da1r04-aB0s1v4PR4d_TKredXpVkZR-kluQw1q07V-U,1166 +jedi/third_party/django-stubs/django-stubs/test/__init__.pyi,sha256=FxU0Xt4wJj1Jf3kdcL0lt-dpEDUN1wFe7LsyMiJvjjc,671 +jedi/third_party/django-stubs/django-stubs/test/client.pyi,sha256=A8dwFxbKc1rfjesp2FlOT__QXWPU0aEBOVZHmkyIFsA,5593 +jedi/third_party/django-stubs/django-stubs/test/html.pyi,sha256=k-d7X-HIXjPYhPpAggZQ9GR6MvkBGh1XmY5PnxGnuOY,1203 +jedi/third_party/django-stubs/django-stubs/test/runner.pyi,sha256=0fO4ry5uDw6o-wvnoBhSf8snCK6gd5yTQqw6b1RVJjc,5210 +jedi/third_party/django-stubs/django-stubs/test/selenium.pyi,sha256=CKW-XlD6SUu9pLyxUt6p8l5uYzN-RjkrGqnji-Dup7Y,368 +jedi/third_party/django-stubs/django-stubs/test/signals.pyi,sha256=yBlj9hfd9baDs5gt0x6Ymdg9L4cOtqPe1TRg63VXxKk,986 +jedi/third_party/django-stubs/django-stubs/test/testcases.pyi,sha256=rUMMlG0haG8l9frb1RRgLMZZtRLKEV5a0JAsLJa7jOU,8273 +jedi/third_party/django-stubs/django-stubs/test/utils.pyi,sha256=GmKL_4fBsAa__tn0gXHPJeIq1MsiUN9utqm9t2fsJ-E,5436 +jedi/third_party/django-stubs/django-stubs/urls/__init__.pyi,sha256=nQLDuDGK7FnjTv35h5oWaHGxEj7LUxTpXHmM1bPV1n0,1197 +jedi/third_party/django-stubs/django-stubs/urls/base.pyi,sha256=RtQApc1gUSPpnAw1gm3HqvNai7lYb0k3r2kS6wcKMk0,887 +jedi/third_party/django-stubs/django-stubs/urls/conf.pyi,sha256=7wH1fulW8v9yZlqEy4yQFSGfVznjPJM1DC5V-ZiSoEY,224 +jedi/third_party/django-stubs/django-stubs/urls/converters.pyi,sha256=--viS0cndpAqzNeusl7RLKBVhsrPIoOikVgmQDNxGxc,827 +jedi/third_party/django-stubs/django-stubs/urls/exceptions.pyi,sha256=4UVr_L5SexIY1ok1zhdDAq1v1iyt7l0NiDdOu7i07lg,102 +jedi/third_party/django-stubs/django-stubs/urls/resolvers.pyi,sha256=gvKPNzAwWo1kE-wvLFhWk83C7qm1hsuF7CPPzCv9ypQ,4029 +jedi/third_party/django-stubs/django-stubs/urls/utils.pyi,sha256=aHMnJJ_yLIRc1jFBsuwInS1i07sg_TNCRFfpBdVliWA,168 +jedi/third_party/django-stubs/django-stubs/utils/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/django-stubs/django-stubs/utils/_os.pyi,sha256=o_1Okw2HuOcaOrD-_SzHIgSVDNmBShknGwqd5uat8ps,307 +jedi/third_party/django-stubs/django-stubs/utils/archive.pyi,sha256=uYtbaGft9lKuO5eEfMBWnmOX3lD-ztopvgNhLZaP4QM,1043 +jedi/third_party/django-stubs/django-stubs/utils/autoreload.pyi,sha256=C8KHbfg9nGyhfbNa56RXXP0v1rlIkTUvYw1zkmv3bOk,2702 +jedi/third_party/django-stubs/django-stubs/utils/baseconv.pyi,sha256=Myy9JlfWTJ29J8Oyiq-upqag-VfsPHg3jsuq7HHU9iE,593 +jedi/third_party/django-stubs/django-stubs/utils/cache.pyi,sha256=9ss0oBvIs1-gBExjVldryr4hESowSSeQdShVgMZdugs,1338 +jedi/third_party/django-stubs/django-stubs/utils/crypto.pyi,sha256=uccSZ_WsmWkCQ_4V6SQXOJd8NUn3FdyjnUbcP5K1I0U,543 +jedi/third_party/django-stubs/django-stubs/utils/datastructures.pyi,sha256=CUquMJUCgGCjeVUk3QSx9vVcZjmHKJsgVI3Vjqti1Zk,2624 +jedi/third_party/django-stubs/django-stubs/utils/dateformat.pyi,sha256=KLHBQh9aWgLYWbeqw2kiyQauGNDiKmadeMmltidGlrk,1782 +jedi/third_party/django-stubs/django-stubs/utils/dateparse.pyi,sha256=PX8c8e3ma-IOaj-F0RrBF4XTTVngSfkGNKt24AMy4qo,425 +jedi/third_party/django-stubs/django-stubs/utils/dates.pyi,sha256=eDDUi7Z7G3VU8h_6q4Z63l_7L2zgcyYuTE3yf-GSt-I,181 +jedi/third_party/django-stubs/django-stubs/utils/datetime_safe.pyi,sha256=fXQJdx9zqee-Jac6dhydWUMKvz8JzQYnKhwPsxiDnfY,341 +jedi/third_party/django-stubs/django-stubs/utils/deconstruct.pyi,sha256=6IL3eW3s2avXEeGE_oJW3Mxg6Hk3387euuFekBeHY0A,105 +jedi/third_party/django-stubs/django-stubs/utils/decorators.pyi,sha256=AEPbjOpQtJGpOjwrri-6wV2gzUIvNZ5EIVJVsTEushk,935 +jedi/third_party/django-stubs/django-stubs/utils/deprecation.pyi,sha256=yGFYy_fyf37-YpyWdalYAdQXCX8YLVCOgu8lQVVBxpk,1345 +jedi/third_party/django-stubs/django-stubs/utils/duration.pyi,sha256=W8vapfROyCEor7wRgPdoqY7cpLg8kFEqiAKHqjEYfUk,198 +jedi/third_party/django-stubs/django-stubs/utils/encoding.pyi,sha256=e-_D5ZVUcDKL6yXDbcj1BpXsovmfiOogb9ioT1j0vl0,2416 +jedi/third_party/django-stubs/django-stubs/utils/feedgenerator.pyi,sha256=fxf5z74HoHuKF_W1XVOxHMs1VbbD233GHN1o2pkMl68,2677 +jedi/third_party/django-stubs/django-stubs/utils/formats.pyi,sha256=WLkueQDaB2Gg2MTb_SxnFkpQpR49O6ogaZEKhy2JGFQ,1271 +jedi/third_party/django-stubs/django-stubs/utils/functional.pyi,sha256=_k802K-xEtUcEFBrH09Sxsh_7ObZAARVF12UAMGqkug,1923 +jedi/third_party/django-stubs/django-stubs/utils/hashable.pyi,sha256=l25xFctJPg50l6Y129bvdAFJc8QqefkXx40amy6LkhU,66 +jedi/third_party/django-stubs/django-stubs/utils/html.pyi,sha256=uRHTbSOfG3lG2pwS5CdKwRmnfAC2DSgG7UoWkrXZRFM,1366 +jedi/third_party/django-stubs/django-stubs/utils/http.pyi,sha256=zUCz7anMbyPWISp458GPg3TfnE6iehGn1LPBsPE6ru0,1544 +jedi/third_party/django-stubs/django-stubs/utils/inspect.pyi,sha256=4ifnyH12SSqy2OzqUkuJxvFGTkiirblPt4eo1Xu8GyI,391 +jedi/third_party/django-stubs/django-stubs/utils/ipv6.pyi,sha256=_VLusX7GiWNffbeDTqd_jnJPOdxyVS179DFuB61CjhA,168 +jedi/third_party/django-stubs/django-stubs/utils/itercompat.pyi,sha256=UpxNkxuzzgXwrBfRqew_8T5D5tx5WBsCTP933uGVHwI,61 +jedi/third_party/django-stubs/django-stubs/utils/jslex.pyi,sha256=_R3st8851lEA_sUS5i_Kneche-ZPrCtpIsBtzFQZS_U,748 +jedi/third_party/django-stubs/django-stubs/utils/log.pyi,sha256=yVMX_aEDnocTx6PpJgpvOLVqD-cCmBz9-DnFDpl5ckI,1501 +jedi/third_party/django-stubs/django-stubs/utils/lorem_ipsum.pyi,sha256=hM07Nj_QipTFShSP7PrhQxlwAlYcgcEpH3vXRF_gzcA,248 +jedi/third_party/django-stubs/django-stubs/utils/module_loading.pyi,sha256=sd6wFSrhzvHm648lgnvfdcmkR3PC8SPC925rP83DNkw,247 +jedi/third_party/django-stubs/django-stubs/utils/numberformat.pyi,sha256=tGq_aAmrf_lkWdZ4XUMlf4h0DUtc185bwfgJefaXYkw,344 +jedi/third_party/django-stubs/django-stubs/utils/regex_helper.pyi,sha256=REFgvf8HYnE-XsiepvPLjd2HZyMWlUJDC2ILtUDS0Ws,658 +jedi/third_party/django-stubs/django-stubs/utils/safestring.pyi,sha256=G4jCaiDDv7gb75b9pJFVMOVRZfnECaDk0JYn8jZmxag,629 +jedi/third_party/django-stubs/django-stubs/utils/six.pyi,sha256=fGwtJGbkPulV7pzqEeAdgzVv6z2mDiFtgtios6tWzS4,3408 +jedi/third_party/django-stubs/django-stubs/utils/termcolors.pyi,sha256=gqCN0etzSjG8bN21K_j1d1Jw0UaluPrlEznqx36bGek,517 +jedi/third_party/django-stubs/django-stubs/utils/text.pyi,sha256=ZbmkpySA5CNdPKorDNm5WHh0n0hcF7pp8vI_35z2Bw4,1583 +jedi/third_party/django-stubs/django-stubs/utils/timesince.pyi,sha256=7qwEhIWEQeKk71J8pQJzr7QCljggRtDHEs8-GUiiLOU,362 +jedi/third_party/django-stubs/django-stubs/utils/timezone.pyi,sha256=S6fV8Ub-gZuQzIPWx7RSlugjjcWQFDJVlPxFnq280tE,2714 +jedi/third_party/django-stubs/django-stubs/utils/topological_sort.pyi,sha256=vaxSleSm6rJ0axW_bodRRXA6a82056AxplxL7hbdwTY,297 +jedi/third_party/django-stubs/django-stubs/utils/translation/__init__.pyi,sha256=Xb8uG790oIzlgTor_Czpto7O1o3slls-Yb1gRKqzFvc,2232 +jedi/third_party/django-stubs/django-stubs/utils/translation/reloader.pyi,sha256=WysOUTcv4mLco3UizcmXdD5Im-HrD8nrBy71A_3Phd8,299 +jedi/third_party/django-stubs/django-stubs/utils/translation/template.pyi,sha256=H4yDCnEfEMFUE4OIMg1FJYn9cvj5CbQRv1zeokTe6QY,235 +jedi/third_party/django-stubs/django-stubs/utils/translation/trans_null.pyi,sha256=x7RjAzIctThGOsg6ZKE0NpO6ekKpl1TgsCxaop9G864,729 +jedi/third_party/django-stubs/django-stubs/utils/translation/trans_real.pyi,sha256=uXK53giQyz6hE5WsJPBCkBepZjw9Ljxhwhqk7MLYo_I,1815 +jedi/third_party/django-stubs/django-stubs/utils/tree.pyi,sha256=sR1J0tJzZIGobNu8-XiJ2qr94SlwiM164sF8lD5-8aE,799 +jedi/third_party/django-stubs/django-stubs/utils/version.pyi,sha256=kwDgHzvG-PW5Gs-2ch8lTduLItyo4asFa509YOQd15A,516 +jedi/third_party/django-stubs/django-stubs/utils/xmlutils.pyi,sha256=wGOSksvFX7wd6dl7Yoz836aEyZ-D6jxi4R9kBaaeEtY,433 +jedi/third_party/django-stubs/django-stubs/views/__init__.pyi,sha256=aq7HMnOVrisbvfSuGERsghE8UbQzyGkJq-QpU0Tcv9w,39 +jedi/third_party/django-stubs/django-stubs/views/csrf.pyi,sha256=IWUdDCiJjyVfGZHpN0fHH6nu7yYmVbXyDvWg-Bea23Y,274 +jedi/third_party/django-stubs/django-stubs/views/debug.pyi,sha256=4oGmtVDkDja_yZdqDmfpXGR7-UncwY28nsYv9posmrY,2781 +jedi/third_party/django-stubs/django-stubs/views/decorators/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/django-stubs/django-stubs/views/decorators/cache.pyi,sha256=HNIBcnkLIFOVKkhlD6NCF8hX3MWGBr6pclv27ty-1LY,303 +jedi/third_party/django-stubs/django-stubs/views/decorators/clickjacking.pyi,sha256=Ok9pqjwji2pR7WQPLtZ1CrRu0W9ahdyb-JaP6c4wq5c,247 +jedi/third_party/django-stubs/django-stubs/views/decorators/csrf.pyi,sha256=AWLjm6s5aCI5QnU96JbH6Y5UZxMrmpY227yLDq0jf78,477 +jedi/third_party/django-stubs/django-stubs/views/decorators/debug.pyi,sha256=wZ1YJ1dKztkQ6wd3ED0G6G4l4WuHSRcABy5qOlmFYCo,157 +jedi/third_party/django-stubs/django-stubs/views/decorators/gzip.pyi,sha256=Xjc5S0snvNoApW9JpvSQUhGypsjoCUE8bC0HwaVdL4k,129 +jedi/third_party/django-stubs/django-stubs/views/decorators/http.pyi,sha256=ZTJ_lLWuXIdnX80y1OA230O8ep50pxlSa2acazv-1gw,576 +jedi/third_party/django-stubs/django-stubs/views/decorators/vary.pyi,sha256=yKYeW6Fa4M_bbOYU0evNeMS_0ly-9ZCJonlkD_VqhRQ,181 +jedi/third_party/django-stubs/django-stubs/views/defaults.pyi,sha256=qnKCAJ0gMNl7y0DbyQRDVDm0WnR7iWhIAFZgsILVQqY,814 +jedi/third_party/django-stubs/django-stubs/views/generic/__init__.pyi,sha256=RMzs5h07bv50ftLnRSYnrWOJXkth7PTyU5odn0GCw68,637 +jedi/third_party/django-stubs/django-stubs/views/generic/base.pyi,sha256=EcfZBLJd_E_yktw5j8YYeCKO4OKdOnY8Pns7x9XT2BI,2239 +jedi/third_party/django-stubs/django-stubs/views/generic/dates.pyi,sha256=sV3GQ35fJCDh5I19zVFQkvEHhkIUeVyHqQ9UBRRBVRM,3771 +jedi/third_party/django-stubs/django-stubs/views/generic/detail.pyi,sha256=PNnYL1e7LJxYr71wI93v0kuwfra8YGOHZvD6-1wIodA,1090 +jedi/third_party/django-stubs/django-stubs/views/generic/edit.pyi,sha256=-ngfSEOCkreuUeU0XcL9s1eNWnZHlPw6VlxdUYvix5E,2234 +jedi/third_party/django-stubs/django-stubs/views/generic/list.pyi,sha256=-Hj-OCJw6BgmXFsUgNHSJfeeECrpyqbBWShSLxJaveU,1625 +jedi/third_party/django-stubs/django-stubs/views/i18n.pyi,sha256=uL-yCYqHyEFkfL2He_UTt_OnBnom8TlqhAquvxMd1Sc,1257 +jedi/third_party/django-stubs/django-stubs/views/static.pyi,sha256=tX0ADulNf2Yh6fJhKh6PSS9a8AsAt1gijAMu2iehhP8,461 +jedi/third_party/typeshed/LICENSE,sha256=tBt49WKi5lt1yrRDVDNfb0NdTvcwZVCWAKyRDPTiL-A,12658 +jedi/third_party/typeshed/stdlib/2/BaseHTTPServer.pyi,sha256=0VJgE581N-I4xIycM3XdZA3Ag9e5du0W2tzWwWvuPjY,1747 +jedi/third_party/typeshed/stdlib/2/CGIHTTPServer.pyi,sha256=pv5Xb3udKa7NXOLe3MI__b_zP6a0wmYuFmOYP_N3kuc,187 +jedi/third_party/typeshed/stdlib/2/ConfigParser.pyi,sha256=lFmtKNTfILcHhIRgVu3-d0jKhaBtggGm9qSjqmIBH-Q,3869 +jedi/third_party/typeshed/stdlib/2/Cookie.pyi,sha256=Ke_iU9vRRHFMkJrben9gxXLss3nTR0bw5ZPvN_abYdc,1342 +jedi/third_party/typeshed/stdlib/2/HTMLParser.pyi,sha256=4mV-tgsweFHjVH6VFVR6pwxsUJt8Ttszq4Ka3gtSOPA,1064 +jedi/third_party/typeshed/stdlib/2/Queue.pyi,sha256=jVv-Ahqmn2SC748u_-61UeRcrK4cQXiQbm5lVgxCDeM,895 +jedi/third_party/typeshed/stdlib/2/SimpleHTTPServer.pyi,sha256=kgfdaGTvBrw515C2tKgPM6PBG1vx8Uym30edR9hVnoU,648 +jedi/third_party/typeshed/stdlib/2/SocketServer.pyi,sha256=4V7NHwSn6jAPavRtz1w8bBwPNNXvGL02UYQAlm6bA-c,4559 +jedi/third_party/typeshed/stdlib/2/StringIO.pyi,sha256=GBqd-c4z25y99oSUVcsEMh98LoMruu1ZOb0AE5UOtzk,1146 +jedi/third_party/typeshed/stdlib/2/UserDict.pyi,sha256=h0miLRBjzRA6LL-sfVhN5lIN19AjToRaByhueNrVxoQ,1663 +jedi/third_party/typeshed/stdlib/2/UserList.pyi,sha256=aDxMr5yhCHPZT-SacAYmju5xaCquHi1Nk_z_rZRvHN8,630 +jedi/third_party/typeshed/stdlib/2/UserString.pyi,sha256=3391hc_oGw3FFPX1zlPbil5GVZbqKqlLbGup-08BnLE,3844 +jedi/third_party/typeshed/stdlib/2/__builtin__.pyi,sha256=-CqbxZmdacwEbwoRuybLasluru9S8wSSaWEfq57ZfU8,48853 +jedi/third_party/typeshed/stdlib/2/_ast.pyi,sha256=36MwM7zIYwSWhw4G2sLtd-L8I9hAZs3lUEw4n_J88a4,5726 +jedi/third_party/typeshed/stdlib/2/_collections.pyi,sha256=cMqBXKAr1o6kdqDM8RkZNclFduh0s-QAv-jUmpUYHc0,1430 +jedi/third_party/typeshed/stdlib/2/_functools.pyi,sha256=rDxIud_hO61m7kUqrvpkJT4mwoiyOvTxqMejOjY5nhM,576 +jedi/third_party/typeshed/stdlib/2/_hotshot.pyi,sha256=ffVl3P1C-rfN5DN6smwzDGDOoUNEasmNkrMKo5mnTbc,635 +jedi/third_party/typeshed/stdlib/2/_io.pyi,sha256=JoQeS8uF6Nz0yz_qbFHinI5YarcMPl7fkWpWv5aHwtQ,7016 +jedi/third_party/typeshed/stdlib/2/_json.pyi,sha256=VGD_NDPa30SGzHZ17hKmgnCk91AhGeOP_klprIkApio,226 +jedi/third_party/typeshed/stdlib/2/_md5.pyi,sha256=pGqwb01a_RcSP1QRE8XtVPB0RKaoJOGuRdVk6pwvEag,300 +jedi/third_party/typeshed/stdlib/2/_sha.pyi,sha256=32F3_E2nGplztFti0fx5GwfPqobLiyg2rtTLHopfCw4,348 +jedi/third_party/typeshed/stdlib/2/_sha256.pyi,sha256=1Z5g4wLOL9-z6gasal2kMoBb7yBHPJMFSCgPts_GTRM,632 +jedi/third_party/typeshed/stdlib/2/_sha512.pyi,sha256=6AyOELlW_oDueP9i8yvirht0BdJO0itNx9-deuMYCeA,632 +jedi/third_party/typeshed/stdlib/2/_socket.pyi,sha256=wVuvH1tMPqjPe89bG7pmVsuaXZJfSdvw4qWRD9geQBU,6286 +jedi/third_party/typeshed/stdlib/2/_sre.pyi,sha256=mcck_gioJ8R-V4cW7y7GuCuOihgfKTGcP8RSV_eO6l8,1934 +jedi/third_party/typeshed/stdlib/2/_struct.pyi,sha256=cAuIIq62g6PJsL_G5z16j4v5aTGqYDM6j69kyRcPIsM,767 +jedi/third_party/typeshed/stdlib/2/_symtable.pyi,sha256=LLeUYtJkj_EBmkpwSffnopwY_lsPpopzvM-kXQOwg_I,677 +jedi/third_party/typeshed/stdlib/2/_threading_local.pyi,sha256=1y8WTQOMyBV6cA0BZRbm0Q7bDtCDciIspnuKwYHTrd8,319 +jedi/third_party/typeshed/stdlib/2/_winreg.pyi,sha256=4Q60Z4nLxuUQi1LRbBAKKdAOy0Ir5b-2Bk-RDhYYsU8,3696 +jedi/third_party/typeshed/stdlib/2/abc.pyi,sha256=tzQd1K85KZQBh7b4lulFwkRc2GitR7uplj5toNIJsCA,1147 +jedi/third_party/typeshed/stdlib/2/ast.pyi,sha256=fkVIuq6FiMNU3VMVnZmttTt4-OLZ-CfNMoGexWCZLh0,1199 +jedi/third_party/typeshed/stdlib/2/atexit.pyi,sha256=Zx4nX1WyFC_XDP2Pp17lXrMMJiaCjCut0VWHgtXWBok,117 +jedi/third_party/typeshed/stdlib/2/builtins.pyi,sha256=-CqbxZmdacwEbwoRuybLasluru9S8wSSaWEfq57ZfU8,48853 +jedi/third_party/typeshed/stdlib/2/cPickle.pyi,sha256=FR7Mq3gugr2YQWV0TgHkrE0e-UgEB7OrklOlOg66vdc,795 +jedi/third_party/typeshed/stdlib/2/cStringIO.pyi,sha256=PQQ1dSSTlVi-NTl8Qv0IKwYATynJuLz14g6b27C0G-s,1870 +jedi/third_party/typeshed/stdlib/2/collections.pyi,sha256=5psNp9WgNtInnDK2-chmkny_9NkQcbG7TeFsQZCiX6c,4913 +jedi/third_party/typeshed/stdlib/2/commands.pyi,sha256=nGsS9_5mqYgZqIx-g-A0eQ4Vd9WQWvp53Fv8PEpAeic,329 +jedi/third_party/typeshed/stdlib/2/compileall.pyi,sha256=gx2rOct4wjjTrX8pbrd0ZR3CPNiQkjP1OQ1LARDIftw,628 +jedi/third_party/typeshed/stdlib/2/cookielib.pyi,sha256=f3yMHlsN0iK7oqGhGUD2_0lEHw3mljQ00itXN6T6Qwg,4716 +jedi/third_party/typeshed/stdlib/2/copy_reg.pyi,sha256=-GmSIudewg4xblZXLSvErhpunAMi1bsqdQUEXujpFlI,739 +jedi/third_party/typeshed/stdlib/2/dircache.pyi,sha256=cOqJhmlvq7Vl92FUWcfQGX7aedsgjCOYPTuyZEKD2uo,273 +jedi/third_party/typeshed/stdlib/2/distutils/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/stdlib/2/distutils/archive_util.pyi,sha256=WaUu32XUCstlA4zE0WS-PvA9UF0mdyuDgDbZZd1LN0A,447 +jedi/third_party/typeshed/stdlib/2/distutils/bcppcompiler.pyi,sha256=fge2cMbG4jp--o0I2zNcwykh24tJWZtk6leQgAH2NJw,78 +jedi/third_party/typeshed/stdlib/2/distutils/ccompiler.pyi,sha256=N38wYG41RyiEuowx_ZvpZIqVVZYiz1NGcGHHDJ9MbWs,6449 +jedi/third_party/typeshed/stdlib/2/distutils/cmd.pyi,sha256=SywVh_oj7uAo1tmMjytIafcLCJMfAtMFFZe9Q3vA6Yg,2817 +jedi/third_party/typeshed/stdlib/2/distutils/command/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/stdlib/2/distutils/command/bdist.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/stdlib/2/distutils/command/bdist_dumb.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/stdlib/2/distutils/command/bdist_msi.pyi,sha256=sDSqH7TRcOiXC5S4VXxJ_YHB-WFPpa1fo8F8g5XeV3Y,182 +jedi/third_party/typeshed/stdlib/2/distutils/command/bdist_packager.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/stdlib/2/distutils/command/bdist_rpm.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/stdlib/2/distutils/command/bdist_wininst.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/stdlib/2/distutils/command/build.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/stdlib/2/distutils/command/build_clib.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/stdlib/2/distutils/command/build_ext.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/stdlib/2/distutils/command/build_py.pyi,sha256=z4m9RU6PID-qalM7jzvc2mIWMwk0saczeEmqq9qleH0,181 +jedi/third_party/typeshed/stdlib/2/distutils/command/build_scripts.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/stdlib/2/distutils/command/check.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/stdlib/2/distutils/command/clean.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/stdlib/2/distutils/command/config.pyi,sha256=DV1oMIztVDdk46W43HGioP_n6b3x9FgSqvFr2rwPVoY,3059 +jedi/third_party/typeshed/stdlib/2/distutils/command/install.pyi,sha256=BCv1Lbe-6AHxtaHuhIGd3nOtN-efRmZI-xvpxwKd4Fk,338 +jedi/third_party/typeshed/stdlib/2/distutils/command/install_data.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/stdlib/2/distutils/command/install_egg_info.pyi,sha256=WcnLycNSSWSZ8Z_vHIohu0-3qKnCih2qoJaGBPtjQGY,380 +jedi/third_party/typeshed/stdlib/2/distutils/command/install_headers.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/stdlib/2/distutils/command/install_lib.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/stdlib/2/distutils/command/install_scripts.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/stdlib/2/distutils/command/register.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/stdlib/2/distutils/command/sdist.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/stdlib/2/distutils/command/upload.pyi,sha256=Sv7tBpCnOzInTz9nVhZeo6Waz4brX1PtS51GKzQNwOU,296 +jedi/third_party/typeshed/stdlib/2/distutils/config.pyi,sha256=M4b9_7PKsO74DhsIBFoTAB5I99hXrlBJcjxghWhI8vc,523 +jedi/third_party/typeshed/stdlib/2/distutils/core.pyi,sha256=lq1S8lRqeGqK6U3z7_UsVg2TR7xbx7Z2YXJ0ekIo9Vk,1688 +jedi/third_party/typeshed/stdlib/2/distutils/cygwinccompiler.pyi,sha256=Y7qhVOqXrkPT0yyQnudNCtTzBYC2lzS38HB5Mh45zEI,138 +jedi/third_party/typeshed/stdlib/2/distutils/debug.pyi,sha256=7_zuriUBqHbc62x7tCONq7LQXLuK_hCaBK0laoR3HeY,12 +jedi/third_party/typeshed/stdlib/2/distutils/dep_util.pyi,sha256=QCheHEDF7waISF42_aaumqvVOIcTw-yh5e5-CbPvQ2o,252 +jedi/third_party/typeshed/stdlib/2/distutils/dir_util.pyi,sha256=0nHuLCqZ36gvDVaF6PoC76_JOC3v6P_310eFauW1ZDM,555 +jedi/third_party/typeshed/stdlib/2/distutils/dist.pyi,sha256=DtSDKCXM6UsXnoN7zpt_vxjOgLJu8qeFY2RBcwaB8RM,508 +jedi/third_party/typeshed/stdlib/2/distutils/emxccompiler.pyi,sha256=FxHjF75rMcBNR4odfAyfbbayTXE-2tfbAkHtKxGgYHw,90 +jedi/third_party/typeshed/stdlib/2/distutils/errors.pyi,sha256=l1W_FgoP9L-D-hEPFA2BzZuybjN0lV4WBXl0VJ-k7J8,852 +jedi/third_party/typeshed/stdlib/2/distutils/extension.pyi,sha256=tsIOARiVdGDcvsnxVFxBa80iydfox_Bt6EGqlJsL7kU,706 +jedi/third_party/typeshed/stdlib/2/distutils/fancy_getopt.pyi,sha256=ai-0E83HnTOcYCWO9zq4tDVvnef04SRRoa-F8baso_o,859 +jedi/third_party/typeshed/stdlib/2/distutils/file_util.pyi,sha256=RFpiizXMdhhcji98pIscfHW4r6i9KLzM2D15gA6_eow,439 +jedi/third_party/typeshed/stdlib/2/distutils/filelist.pyi,sha256=-WeYFFKsEUUjPvbzeZbVCOKkPV-oqc3RoZvN2SB1VOE,20 +jedi/third_party/typeshed/stdlib/2/distutils/log.pyi,sha256=9vvQVRer-_-S5lcV7OHF1Ptr1N3npjKvzTVXReSpZKA,863 +jedi/third_party/typeshed/stdlib/2/distutils/msvccompiler.pyi,sha256=qQLr26msfhjz-omJutWcRHik3shLh1CIt7CDI3jBd3I,78 +jedi/third_party/typeshed/stdlib/2/distutils/spawn.pyi,sha256=iDdi2WvST9yeFDlKWy0Wlye-x67W-ah5nta7EuRW2W4,227 +jedi/third_party/typeshed/stdlib/2/distutils/sysconfig.pyi,sha256=FSdBoSTsVvKAF5D2lkWBwxH15ockfFZv6L06mrgeAb0,620 +jedi/third_party/typeshed/stdlib/2/distutils/text_file.pyi,sha256=vCQLwggDaocAqqR7v1WJjOeS_wgxqjI5xDkyxHJlzcw,716 +jedi/third_party/typeshed/stdlib/2/distutils/unixccompiler.pyi,sha256=R3VKldSfFPIPPIhygeq0KEphtTp0gxUzLoOHd0QoWW8,79 +jedi/third_party/typeshed/stdlib/2/distutils/util.pyi,sha256=KSpX8rQ6qJXqToJBKdwhlpe-jd1QQcacg7wsH_6dKXo,829 +jedi/third_party/typeshed/stdlib/2/distutils/version.pyi,sha256=PU7GKbMl1ivgTKVK54jB2fgIufr_hDCUgzjYyNXt-4E,1160 +jedi/third_party/typeshed/stdlib/2/dummy_thread.pyi,sha256=755Cy6AXyEo3RowYk0pQm5I5mkAIE3yQrkWImnrlHOA,794 +jedi/third_party/typeshed/stdlib/2/email/MIMEText.pyi,sha256=4Hjv1f-LZwoj-ihndmbQNHdwpjOy6wUOJoKS_axJmNo,159 +jedi/third_party/typeshed/stdlib/2/email/__init__.pyi,sha256=iUDv6ttU1qT359eOAubG1JtxNmrJGu8QxH_aXPvOz9w,270 +jedi/third_party/typeshed/stdlib/2/email/_parseaddr.pyi,sha256=oqGaUf13WZALSq7cyULZ0c_6iFKjH8rdnAfAkm6y3Hw,1072 +jedi/third_party/typeshed/stdlib/2/email/base64mime.pyi,sha256=Qb1Q4NHIbSJOcsZ8vUBqaPT-s6lWpj-YD1kI9DI6Xfo,303 +jedi/third_party/typeshed/stdlib/2/email/charset.pyi,sha256=VVEUOTe1XZ824-FhBuIBrSCB16hMAnQ1Ygseu3Noc_Q,902 +jedi/third_party/typeshed/stdlib/2/email/encoders.pyi,sha256=s8kQE5AG1wvh0h0qbNn3_As6ExYQccVdg6Bx2PKGu8E,143 +jedi/third_party/typeshed/stdlib/2/email/feedparser.pyi,sha256=cKLfhKboxZeJxceH5e_broSJZDa4teMu_ZJvZRhREQU,536 +jedi/third_party/typeshed/stdlib/2/email/generator.pyi,sha256=TOAFU4Cb0_a3EitMT62JWGtcoGuvgrfKlbWpNAmwEuA,377 +jedi/third_party/typeshed/stdlib/2/email/header.pyi,sha256=sCk_MfWl5P_bc5v9302SubX0hqgODtlpJsnPb6h-eC8,457 +jedi/third_party/typeshed/stdlib/2/email/iterators.pyi,sha256=vPq5eJF8HBwFQ1hS--niEmurSl4x42YOrU65TxKk0Jc,256 +jedi/third_party/typeshed/stdlib/2/email/message.pyi,sha256=M3XzQbdji1k8_hygt88priwEMJqWKRixQsN4qDLmfeU,1950 +jedi/third_party/typeshed/stdlib/2/email/mime/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/stdlib/2/email/mime/application.pyi,sha256=zlzwumM16ipPeDnDgS11A0hzIJ1LEegxL7g0-I3dSWw,371 +jedi/third_party/typeshed/stdlib/2/email/mime/audio.pyi,sha256=GYtzGiC2dTHTPD3Cm3uIUlBAQ_25NK2BsbbcuDbLZiU,176 +jedi/third_party/typeshed/stdlib/2/email/mime/base.pyi,sha256=lG1Re_xRHsaw4WRUnLh1Jyneb4M6m8kxqa0NUfwuONg,128 +jedi/third_party/typeshed/stdlib/2/email/mime/image.pyi,sha256=-HVa8k6js_9-sGt5jFg2SF-UjZ6cLP53T9GvRIVI63s,176 +jedi/third_party/typeshed/stdlib/2/email/mime/message.pyi,sha256=OwJjEUiejk2bc9FGqgbvz8Q6ZgQyAg9gphhDXPyXsLU,147 +jedi/third_party/typeshed/stdlib/2/email/mime/multipart.pyi,sha256=1pTSK5lU6L5AJG5H35PTIQtHYIplMoipa7Kkd_m9HNQ,159 +jedi/third_party/typeshed/stdlib/2/email/mime/nonmultipart.pyi,sha256=C9WcyywCzQqkL9MPpSlWHgChmP04r0rrWVw3VlSVHQo,107 +jedi/third_party/typeshed/stdlib/2/email/mime/text.pyi,sha256=4Hjv1f-LZwoj-ihndmbQNHdwpjOy6wUOJoKS_axJmNo,159 +jedi/third_party/typeshed/stdlib/2/email/parser.pyi,sha256=9QChl7gsm0KPwZHUYy5tR_kZkmQpdSnxCwuZTnp9ceo,415 +jedi/third_party/typeshed/stdlib/2/email/quoprimime.pyi,sha256=ZRJzHi-3Fszfa8nRpz6EpGYZdSpLyGc4K3pxr1uyMUA,490 +jedi/third_party/typeshed/stdlib/2/email/utils.pyi,sha256=Znm4b4ImavrJrwGc_6PcBqyhqo3zIbqDc7gSS_6NU0w,760 +jedi/third_party/typeshed/stdlib/2/encodings/__init__.pyi,sha256=q95Eqw-U2YICiPawMyarXy1iWCXsz1wV_793ZSg_4ek,184 +jedi/third_party/typeshed/stdlib/2/encodings/utf_8.pyi,sha256=tgCdNX8etJQWYWmOYAIZhK8lcYm_Kn67kylKJp0SgUo,573 +jedi/third_party/typeshed/stdlib/2/exceptions.pyi,sha256=i3AvRM6Osg9r_q5outQ4hn7COs0fyhsJizSH5M72G7k,1756 +jedi/third_party/typeshed/stdlib/2/fcntl.pyi,sha256=4A81Md4YTEt71UFrJWD8E4Pp7iQGMiXN5geQ1-AEuA4,1580 +jedi/third_party/typeshed/stdlib/2/fnmatch.pyi,sha256=8kgI-ZZR0lhAGSuQk0M0kt3cYrYRx29bwhIg9ESvLbs,348 +jedi/third_party/typeshed/stdlib/2/functools.pyi,sha256=t_xmkNhLllvRSRG-5X1uP9sW-IHgkAns8ts0uTLllrw,1180 +jedi/third_party/typeshed/stdlib/2/future_builtins.pyi,sha256=vkVYaUei63-XJqSnDDLn7KwkUyLpVwbP01ZGTRWlySc,194 +jedi/third_party/typeshed/stdlib/2/gc.pyi,sha256=5Lfpz5C3KDyocZ8qEKncV-mvf192A-3xlMModHwVFi4,752 +jedi/third_party/typeshed/stdlib/2/getopt.pyi,sha256=6hPbDzz4CuSglcyFspFGyWCNVW0AKygfMXPTD0LKI8Q,448 +jedi/third_party/typeshed/stdlib/2/getpass.pyi,sha256=5FZTPudjVwTRUD2BQJhOr0pyxEyTeXUxYmj_xt1VC0E,160 +jedi/third_party/typeshed/stdlib/2/gettext.pyi,sha256=FT_rx4GptZANYzTplDlzUgSQS7aNuiF0V-mYsJzK0eE,2285 +jedi/third_party/typeshed/stdlib/2/glob.pyi,sha256=q5eeP2SFk94tP3PwKZOVOdGhS-XoaGeyXiiKtWVdvwU,375 +jedi/third_party/typeshed/stdlib/2/gzip.pyi,sha256=YIsrQQFHmhyG8XrqIaWZV1glkmXHWa837LAk-f_ZDT0,997 +jedi/third_party/typeshed/stdlib/2/hashlib.pyi,sha256=46pv8pBLAtNJTc2Ndh_IadSJsmzUj_hH8xYzp_cgJFg,971 +jedi/third_party/typeshed/stdlib/2/heapq.pyi,sha256=oKTl_WDSRYheNCenxMjwR0rHAPfAltZ-xLrApwdB1N4,756 +jedi/third_party/typeshed/stdlib/2/htmlentitydefs.pyi,sha256=1dyH0i00daNQ_7gDuT-mxXzx-V_nDSRuF4q_vjkSUHg,114 +jedi/third_party/typeshed/stdlib/2/httplib.pyi,sha256=Pzw93K9nIBJ28c66a-GVmWSiZOaYwtOZB1e6P03adOI,5929 +jedi/third_party/typeshed/stdlib/2/imp.pyi,sha256=8qatIBDkbAIbC137jA5zRPVO9PRgIe8rDUwaceORVXY,1290 +jedi/third_party/typeshed/stdlib/2/importlib.pyi,sha256=N1OsqmcdpbeN7RTNU4s2zQgnoQhkwECT5z5bv035F-g,134 +jedi/third_party/typeshed/stdlib/2/inspect.pyi,sha256=WJqBL9pFUFyIEFEZGvIZOD6mW1AgywTV1UNtTMap-Dc,4692 +jedi/third_party/typeshed/stdlib/2/io.pyi,sha256=_9t3YnEw4vkpHSL39UdKGnOXiqy2L_ps-DZtqK1noPI,1136 +jedi/third_party/typeshed/stdlib/2/itertools.pyi,sha256=2kBOMB5H_2z8-Z-WGWYlSimAiKFNGH1-5inZJJPbe-c,5975 +jedi/third_party/typeshed/stdlib/2/json.pyi,sha256=gouCsXdr9Y4KBmiwsvl6oN8ULrxIAnL-zBiTRIiWGiQ,3206 +jedi/third_party/typeshed/stdlib/2/markupbase.pyi,sha256=GmpHjRP9pa1Ybup4LFHoYS0TKu9oh8EOqX5-CY2yNb4,264 +jedi/third_party/typeshed/stdlib/2/md5.pyi,sha256=RxbpEbnpbF491HuNmiN3legMGS-8W11hHBxE1tcy7b4,74 +jedi/third_party/typeshed/stdlib/2/mimetools.pyi,sha256=vZd4d0QRIrqrvjtei-P-uK-vhduilbUpT55hlBGzIFA,703 +jedi/third_party/typeshed/stdlib/2/multiprocessing/__init__.pyi,sha256=i3uPVztHhIhN7ZQjtUjwbR3qvjZnMAi4qKeE0x5JU5s,1921 +jedi/third_party/typeshed/stdlib/2/multiprocessing/dummy/__init__.pyi,sha256=YQzAQbXIOWxv1gTPvKeNeduNGN2r40OLyPYE7rCo2Vc,1392 +jedi/third_party/typeshed/stdlib/2/multiprocessing/dummy/connection.pyi,sha256=OkvPY8s58y6GC-8yF1y8QyqxZAoZHxeDPfHDOfJXnaQ,673 +jedi/third_party/typeshed/stdlib/2/multiprocessing/pool.pyi,sha256=H24VaPQgs8EFjcmWtI9dn4nvFsjCb7xIDv8xQzTR7Cw,2038 +jedi/third_party/typeshed/stdlib/2/multiprocessing/process.pyi,sha256=2AyzstRaJgHXufF7RSpgBgtVD3BmsdXFgd6SSRwJqKU,906 +jedi/third_party/typeshed/stdlib/2/multiprocessing/util.pyi,sha256=xjwHWnEAqauPnOxaopyvJ6irZXQOv7qZ07PRv0YzCnM,758 +jedi/third_party/typeshed/stdlib/2/mutex.pyi,sha256=lQeSSkY5dwRUOdavqMyCEafd8j5XK6Y76vYMH43tyuE,363 +jedi/third_party/typeshed/stdlib/2/ntpath.pyi,sha256=upbuNccYoJZOEeauXVuegAuTUMr9LsDZ6E0c9PCsJwI,2937 +jedi/third_party/typeshed/stdlib/2/nturl2path.pyi,sha256=_u8yHiGMMnRRTjQAs37HCefvy5193SJDBUZTw1nZ0I4,115 +jedi/third_party/typeshed/stdlib/2/os/__init__.pyi,sha256=njHsqKbPSqEyAtvIOGFdEva0es8A5Siemx_9wu92JZE,13380 +jedi/third_party/typeshed/stdlib/2/os/path.pyi,sha256=upbuNccYoJZOEeauXVuegAuTUMr9LsDZ6E0c9PCsJwI,2937 +jedi/third_party/typeshed/stdlib/2/os2emxpath.pyi,sha256=upbuNccYoJZOEeauXVuegAuTUMr9LsDZ6E0c9PCsJwI,2937 +jedi/third_party/typeshed/stdlib/2/pipes.pyi,sha256=OTfpqql0CUZDbJx-Ka4gWuoDub7FsF7bH7N1PplvU6s,467 +jedi/third_party/typeshed/stdlib/2/platform.pyi,sha256=E8pD_04NuJTBrY5bFIdiAgncffdCfeKjgq_mV_uwIZs,1536 +jedi/third_party/typeshed/stdlib/2/popen2.pyi,sha256=dyNtDrnabvCpQVm7i8TVQpDMIvWKoK_2otJgd41hUYI,999 +jedi/third_party/typeshed/stdlib/2/posix.pyi,sha256=KdclicEcb0wBRDaJhr_avbFQJ3HOYr3U7ZZOyoZjpyo,6396 +jedi/third_party/typeshed/stdlib/2/posixpath.pyi,sha256=upbuNccYoJZOEeauXVuegAuTUMr9LsDZ6E0c9PCsJwI,2937 +jedi/third_party/typeshed/stdlib/2/random.pyi,sha256=MSUCctD3w_mmXrrjtfYKuQ2_DF-26GGNnvrhN8APGZ8,3156 +jedi/third_party/typeshed/stdlib/2/re.pyi,sha256=3pi-S5VeaGgnyZGfY9n0kaBqCR4n7bS5BFjPLt_8e_8,3641 +jedi/third_party/typeshed/stdlib/2/repr.pyi,sha256=Ic8zKDnkZLcpQmOGBLvScWrBx4sYHHmlA4gSoIrSQOM,1095 +jedi/third_party/typeshed/stdlib/2/resource.pyi,sha256=ZMxMAadyqjJ7Nmvu-GFPdy5XwG7RKunEkKu3LuRevPE,877 +jedi/third_party/typeshed/stdlib/2/rfc822.pyi,sha256=PYDCMDz6R87HI7iOVAVbqK4Sr7aTijXVK9kBsDw_KBE,2163 +jedi/third_party/typeshed/stdlib/2/robotparser.pyi,sha256=IpfpnvNmCtN84yyZR9TmNdCQA7F1M5MQcqbUdkwoPXQ,230 +jedi/third_party/typeshed/stdlib/2/runpy.pyi,sha256=D-ttE7Yt0BQGuEMaHf5GUyzWrdW_onB8qwW1Opwrn_E,541 +jedi/third_party/typeshed/stdlib/2/sets.pyi,sha256=hbfbabNHU03vRbZSQ2o1QyghdUm5J5w1eNXpFzHM8D4,2975 +jedi/third_party/typeshed/stdlib/2/sha.pyi,sha256=35pkvQygB0J3E1etUSO_ijjsk_H8Q8k6EYjuNMLFHQQ,236 +jedi/third_party/typeshed/stdlib/2/shelve.pyi,sha256=ac7Jr7saU4x3m9hQIQzPKRhuRJqAQO5_uLvwxcs6u9o,1612 +jedi/third_party/typeshed/stdlib/2/shlex.pyi,sha256=gs-tAXy6la_1_qoR0tQhxfMzXXGWDC3qoir1ofNnOd4,1025 +jedi/third_party/typeshed/stdlib/2/signal.pyi,sha256=qEcMv8og5esD8oDAycqwzU276cqYm6_61n-41UVOJ1c,1571 +jedi/third_party/typeshed/stdlib/2/smtplib.pyi,sha256=8wiSP1iFF9-l9IKgh8p6S0rGwLuguGQfFH3xyWPh4ec,2542 +jedi/third_party/typeshed/stdlib/2/spwd.pyi,sha256=BDoGUDub7DFTKhD_tzXW6DbD3uGX15Ujm2DzuFF_cvA,308 +jedi/third_party/typeshed/stdlib/2/sre_constants.pyi,sha256=T6kBTKeYYGkM83SbbgVx9L38eaZgqEY-AkgfCLr9GbU,1744 +jedi/third_party/typeshed/stdlib/2/sre_parse.pyi,sha256=meZYm_VskCn193qP3aV71kf61HJ8KWYKT55LISLYP9Q,2311 +jedi/third_party/typeshed/stdlib/2/stat.pyi,sha256=Tzy8jDY2wz2pZucTjKwCHly-4C9c3bhLBpQaZW8zk7o,992 +jedi/third_party/typeshed/stdlib/2/string.pyi,sha256=WRgPuXahi1tCgo4iM7HQI7fr4qcc1gOanuuA0Cjh1Qw,3567 +jedi/third_party/typeshed/stdlib/2/stringold.pyi,sha256=cefNX8V9XsaCmguO3e32tYNdfUnfMHZ48Gu8smUUCuw,2010 +jedi/third_party/typeshed/stdlib/2/strop.pyi,sha256=kF2oXemBZd_VaHlTzV19pp9fi8iwcVsq8avQS8YwdXc,1157 +jedi/third_party/typeshed/stdlib/2/subprocess.pyi,sha256=JV6VJpxGqVfwky5ZAmL54wLvYHwEucisA1xWCZunUKA,3282 +jedi/third_party/typeshed/stdlib/2/symbol.pyi,sha256=gmMHvO88vurNaeIXHNnl7UgNPg0gdf8D6iuxX5aTJiM,1341 +jedi/third_party/typeshed/stdlib/2/sys.pyi,sha256=L0K5SKIRsKdL_WJIz735YgaSPvxBXtVPHWY0dvxumZ4,3616 +jedi/third_party/typeshed/stdlib/2/tempfile.pyi,sha256=BbSxin5u5F2m-KXj0ucDGPMIIxyv_lO-VJSpLQa14bY,3696 +jedi/third_party/typeshed/stdlib/2/textwrap.pyi,sha256=8VV3JRR4Lq73UZ4t9gtYOBeM-YcbOCaGbUDPmKHQeJM,1854 +jedi/third_party/typeshed/stdlib/2/thread.pyi,sha256=P3v99RXZZFRPUzpe9St8fswlzP4IEStuPFKdlwlUJvk,920 +jedi/third_party/typeshed/stdlib/2/toaiff.pyi,sha256=FA2QwiYCh-YuKQyMuSj4DhQQo9iTASevNspzkoWfRB4,243 +jedi/third_party/typeshed/stdlib/2/tokenize.pyi,sha256=NC9RJ7aJxIBijxom_sURphAu-rVlnF8j0cHhY_VbJkc,2686 +jedi/third_party/typeshed/stdlib/2/types.pyi,sha256=YKV40Mmm-geFO0fRjHduzNW-0RRYjhOgzoeKWkBVKJo,5465 +jedi/third_party/typeshed/stdlib/2/typing.pyi,sha256=eVRiPuinpIP89d6cVv8AK1x1DlXngv32iRpORi8yNc0,17772 +jedi/third_party/typeshed/stdlib/2/unittest.pyi,sha256=a7yf589r5b0mArYulqLfbvmW8NdJNTnHXZh9rclXTVQ,12726 +jedi/third_party/typeshed/stdlib/2/urllib.pyi,sha256=upPSXvIUWm-CLSW7TwMXageO9i3zNZMpOWzlWR9mmyQ,4765 +jedi/third_party/typeshed/stdlib/2/urllib2.pyi,sha256=xZez6mOO-ku7JSJAEnfZK-Epo0Atd5ZMTfooXukDA6c,8312 +jedi/third_party/typeshed/stdlib/2/urlparse.pyi,sha256=rQEJa_Oyy2KoO9WWgonvFDCfkDgfTgqReuGRU8ky1f8,1944 +jedi/third_party/typeshed/stdlib/2/user.pyi,sha256=Mz3QGfgG58h1uuCR-b9r_Pv8L-vA8oH4I4NN6L6hfC0,83 +jedi/third_party/typeshed/stdlib/2/whichdb.pyi,sha256=k7vfuOkgz6kZd_6mVSsP36DBR16mfRZNpO0kngswZEg,85 +jedi/third_party/typeshed/stdlib/2/xmlrpclib.pyi,sha256=6H5putpgG72kUD6x5OLeJKtMzXkvrMMOkNx-zShk27U,9769 +jedi/third_party/typeshed/stdlib/2and3/__future__.pyi,sha256=b7dmNhiJdcJM2cyLfX1i73MNfiVwTUfMmyOdZzBU2fw,587 +jedi/third_party/typeshed/stdlib/2and3/_bisect.pyi,sha256=MURhFGAf_n_yms64euXpOGBeEY3932tibeH9gkxDsQc,471 +jedi/third_party/typeshed/stdlib/2and3/_codecs.pyi,sha256=i_rEwDVsWLSSK7M1ShCr3jZ79V9MwQY4on1CF8PBQ74,5308 +jedi/third_party/typeshed/stdlib/2and3/_csv.pyi,sha256=OZpwhCxRKWUNfzD-TFlmjGgx1WnbSAY1f5CruGAieEc,1574 +jedi/third_party/typeshed/stdlib/2and3/_curses.pyi,sha256=nI5pvFuJzbmoa8ZOIZ4I94UPStHtWM_wQsO84a8J4pw,13596 +jedi/third_party/typeshed/stdlib/2and3/_dummy_threading.pyi,sha256=__eLfXz1Hygl5swKoIL4JZtQ-JBIKkr-yExKwKl6eD0,6309 +jedi/third_party/typeshed/stdlib/2and3/_heapq.pyi,sha256=heTQYQlAQ5f-78bm3rPkSeoQWoxIQ4_pX44TcFx0AGE,612 +jedi/third_party/typeshed/stdlib/2and3/_msi.pyi,sha256=tAOc34He8wJWmW1WsINZxT0ns-a8zYfV-rlhnDKzg-g,2168 +jedi/third_party/typeshed/stdlib/2and3/_random.pyi,sha256=Ot_yeMIsjSxwYFMkes_URP2OlZqzRePVeYaCbnQr-qI,478 +jedi/third_party/typeshed/stdlib/2and3/_typeshed/__init__.pyi,sha256=auqNqMA9bWUD9jKmsHaWidPPnFFcc0M4c4a9M3nHChU,4615 +jedi/third_party/typeshed/stdlib/2and3/_typeshed/wsgi.pyi,sha256=n0p7egUjhY7Hni-BwmOZd1OpOWy_GkpNDKDYHHHcrKE,1293 +jedi/third_party/typeshed/stdlib/2and3/_typeshed/xml.pyi,sha256=sWVM_2a0LZudB2irKi_UO4fJHhMiYz8OFLeTtvhByz8,528 +jedi/third_party/typeshed/stdlib/2and3/_warnings.pyi,sha256=5h2niNh47xb7G7p6MOvQSj-NVnFJf_hiwyO4aLN05BY,2233 +jedi/third_party/typeshed/stdlib/2and3/_weakref.pyi,sha256=-638OW7gOKVYT51Bp8QkXKc13qvnhpl_6NCQCvdaY6s,1200 +jedi/third_party/typeshed/stdlib/2and3/_weakrefset.pyi,sha256=FY1Fl7JZpGeVBFKZV3MhCGOR8WoD8jGnH6g7Gd_0OW4,2417 +jedi/third_party/typeshed/stdlib/2and3/aifc.pyi,sha256=R9iiBcPS2xH4RSRcwydKcpWuxhDP4K4HANvaYLsERKk,3393 +jedi/third_party/typeshed/stdlib/2and3/antigravity.pyi,sha256=hXe2_7W39SOiBPpQJb8e-9pre8_0DIGWXRZY1IFp-6c,123 +jedi/third_party/typeshed/stdlib/2and3/argparse.pyi,sha256=7AG5GfwwiCJe3UqjaIRP5xtbyRNKCyqOunne245uml0,18335 +jedi/third_party/typeshed/stdlib/2and3/array.pyi,sha256=VADSEevIbSyboD2_W-2eF51q8nJp2QcgPF5d0Siqp_c,3489 +jedi/third_party/typeshed/stdlib/2and3/asynchat.pyi,sha256=v-upDoOfXdG1839UdJj6wkBosW0914umWN-BOjaGrwM,1555 +jedi/third_party/typeshed/stdlib/2and3/asyncore.pyi,sha256=OS5PpOKzhv4BM7wNNTDgky5rJtoFE1yuz-ZIZ7bPwdc,5534 +jedi/third_party/typeshed/stdlib/2and3/audioop.pyi,sha256=lBRWVdim8hPgzNwMIWQSs_nvv7b7uoBqjuEbXG7FiqM,2119 +jedi/third_party/typeshed/stdlib/2and3/base64.pyi,sha256=E8MqdBGhXIjIXkqSkLdkS6645St1pMYR59syRKr5oeQ,1614 +jedi/third_party/typeshed/stdlib/2and3/bdb.pyi,sha256=dZP-An_qNDJXxMzWsIX1fcTIoc3qI-WIm48BS3gAJLk,4644 +jedi/third_party/typeshed/stdlib/2and3/binascii.pyi,sha256=HgN_QgHsAdhRgpelHyZsSWnup-Tce23veb46498Mo6U,1552 +jedi/third_party/typeshed/stdlib/2and3/binhex.pyi,sha256=KPO4jyuFjgvRV1ryvanL0j0cIThoIoDisYOz3TBm_nw,1147 +jedi/third_party/typeshed/stdlib/2and3/bisect.pyi,sha256=sQn9UUS0Cw5XZMEGcEj8Ka5VKPVobL43Pex_SagjXg8,67 +jedi/third_party/typeshed/stdlib/2and3/bz2.pyi,sha256=RO-rYMH1TpprITXeCtqhU5TM6I7gQDRutpgh_bSvZAo,2267 +jedi/third_party/typeshed/stdlib/2and3/cProfile.pyi,sha256=IhoIaaoA9_bIN4ifc6d0qX3kO1so5Lss17OCrBW8HcE,1239 +jedi/third_party/typeshed/stdlib/2and3/calendar.pyi,sha256=iB08ixpoedGoLTBZovdy7JavZEqFYF0kxwXctgez0qI,5773 +jedi/third_party/typeshed/stdlib/2and3/cgi.pyi,sha256=HUlFXoovlydtwen1RnQdlLPQC4a26fXe5wrAR0f38bM,6016 +jedi/third_party/typeshed/stdlib/2and3/cgitb.pyi,sha256=-5_uqith9S9ZHOXQf-2Z76Q3I7UeBX2kxRoijoQbvnI,1447 +jedi/third_party/typeshed/stdlib/2and3/chunk.pyi,sha256=juLgoUjtZJj3tExr1grorsVNUnVZtTgoJ8N9gj8opXs,613 +jedi/third_party/typeshed/stdlib/2and3/cmath.pyi,sha256=jSud27iMIBSTw2I2NhIUJa38VEC8X1h7YlN7SbQqWhk,1217 +jedi/third_party/typeshed/stdlib/2and3/cmd.pyi,sha256=-8dq1Td5QhOzLoBkeK3EZjYTfNvxJUTZHrBj0H03cl8,1658 +jedi/third_party/typeshed/stdlib/2and3/code.pyi,sha256=A9cTESdR37TyuZeiiIjfDJhI-0Baizcu_YGHZU6hqTU,1522 +jedi/third_party/typeshed/stdlib/2and3/codecs.pyi,sha256=DXqiWmZp5ZhfIw6zib357lvj9OnTmMmKgh8uQ6SBLu8,12312 +jedi/third_party/typeshed/stdlib/2and3/codeop.pyi,sha256=Ypyu2k5z5r6B2tNkO9JKM8YM-CBXT3SZUL0Ak8P8qag,489 +jedi/third_party/typeshed/stdlib/2and3/colorsys.pyi,sha256=JwCA0W2O9-JS0KA9u7kKNVJKRiu1ACOPzxy-SEKzDRg,578 +jedi/third_party/typeshed/stdlib/2and3/contextlib.pyi,sha256=sV5PoppaY5WggvWnKN7ZpAnKWFITWtTPV6CEPLnmrKY,4419 +jedi/third_party/typeshed/stdlib/2and3/copy.pyi,sha256=EOWzpARbTnxmkq3u6Om9nYpYG62ts2WqfquBObFQgxM,328 +jedi/third_party/typeshed/stdlib/2and3/crypt.pyi,sha256=_D__DDlGumti-2YksSJiOjFJ0tJbckFBKrszPdbtWrg,648 +jedi/third_party/typeshed/stdlib/2and3/csv.pyi,sha256=26HmvwJBnGEWObBRHj0xS0p68q1192_ygtQd2rEgB9g,2751 +jedi/third_party/typeshed/stdlib/2and3/ctypes/__init__.pyi,sha256=Br0DywqyGaVwHaWbgbIWZLnQYQ7Spa04Z4eU8TrHz-8,11893 +jedi/third_party/typeshed/stdlib/2and3/ctypes/util.pyi,sha256=fO9_MTBB4lpXUvuQzrFT4yuIzt9x_FsEWtW6kbAWtkg,163 +jedi/third_party/typeshed/stdlib/2and3/ctypes/wintypes.pyi,sha256=4mLfzJ8kXytQo4DDsO5HX13sZWXUcs-XdwPygO6MOE0,4642 +jedi/third_party/typeshed/stdlib/2and3/curses/__init__.pyi,sha256=e6zyQJFe4QJgc6mUK3ZqOqRTKGXq_QxJLXLs3vyVQHU,370 +jedi/third_party/typeshed/stdlib/2and3/curses/ascii.pyi,sha256=9MeRhsGJwmIcMsL77Ct9QOrt5TKS_JRtgjyv_nbmQZQ,1212 +jedi/third_party/typeshed/stdlib/2and3/curses/panel.pyi,sha256=Wsl42xkXk8GQesNABDijIoBVX5Nx8dGm6prO1-gxlyU,801 +jedi/third_party/typeshed/stdlib/2and3/curses/textpad.pyi,sha256=V-6r4xPbkITORxiUCAPV-QzWi69JZV0tZwO72HDbuU8,457 +jedi/third_party/typeshed/stdlib/2and3/datetime.pyi,sha256=vfY8l1ocVFixSnpqCIp6nGbp8NT1aU_hksSYpeAoTpw,12699 +jedi/third_party/typeshed/stdlib/2and3/decimal.pyi,sha256=94S0G8TK1ytezWJuoH_gHpnAeNswravx_BXo3nJO9Mc,17787 +jedi/third_party/typeshed/stdlib/2and3/difflib.pyi,sha256=gZTDgj3DFNFmIpbQ_Ju2zcsVT3xop8yB1JSbAi1XWz8,4936 +jedi/third_party/typeshed/stdlib/2and3/dis.pyi,sha256=3FFtM_e7jcMgzXw60pTLZZWMEO4nV3K6iZVuXwbSwXQ,3089 +jedi/third_party/typeshed/stdlib/2and3/doctest.pyi,sha256=kfWLoM--CjzB1TW3481RvTfVDOOgbQy1oL94-2joI2M,7083 +jedi/third_party/typeshed/stdlib/2and3/dummy_threading.pyi,sha256=ZI04ySfGgI8qdlogWtA8USUTFGfzm32t2ZxL5Ps53O8,79 +jedi/third_party/typeshed/stdlib/2and3/ensurepip/__init__.pyi,sha256=dTpEX_z-rFEqnQI3XvpxGCw-IE1aqUxZw6KEv0k86So,562 +jedi/third_party/typeshed/stdlib/2and3/errno.pyi,sha256=KDjlJTkt1sdcrwGgLkPMZlSwz1Dp0Xkt6PqEnqcLZWY,2011 +jedi/third_party/typeshed/stdlib/2and3/filecmp.pyi,sha256=z5T2uxVBjwdWIzrhR-zlRqIV9rg08EpUldQgr3-AfJ0,2566 +jedi/third_party/typeshed/stdlib/2and3/fileinput.pyi,sha256=01vjE75hR9lXLH-S_MN-RAeieTiBGcg4_of-zNyDmnU,2601 +jedi/third_party/typeshed/stdlib/2and3/formatter.pyi,sha256=lxpoZgWeuh3fyJu7ew4O00DBospTKRxateEK7f99zMU,4639 +jedi/third_party/typeshed/stdlib/2and3/fractions.pyi,sha256=VblZe5mtSJGL7fUSRronuksTeO24OLVAGghS_rEDpog,5936 +jedi/third_party/typeshed/stdlib/2and3/ftplib.pyi,sha256=4FqgC8unm_zR1CcpJalpHvRzODOmy0IuZk_Fggoercc,6278 +jedi/third_party/typeshed/stdlib/2and3/genericpath.pyi,sha256=Wob25JMIB38kmxD3fbyEmW_zOZ30A-0RR41OymvOg_E,806 +jedi/third_party/typeshed/stdlib/2and3/grp.pyi,sha256=fm0JOwvJ8CGCXSVWyqQuXFBPBfoVC8b5CyWTq-5fcvs,295 +jedi/third_party/typeshed/stdlib/2and3/hmac.pyi,sha256=DRSe8IPnvSQ6DCIhG8IFosACcpsOngQftNJRjEj4WkU,1607 +jedi/third_party/typeshed/stdlib/2and3/imaplib.pyi,sha256=d8rIKtUeqXt5O51dNweLcp_J6445KdC9aWJnGKR7zdI,8034 +jedi/third_party/typeshed/stdlib/2and3/imghdr.pyi,sha256=38fd4eD_xncwov0L7vvbaDGjKi9gGzLPbgsD3oe_I0A,604 +jedi/third_party/typeshed/stdlib/2and3/keyword.pyi,sha256=48hMnou7HbA580mGfRyd4uPgxmnbSt4KM_STSGMFzFA,210 +jedi/third_party/typeshed/stdlib/2and3/lib2to3/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/stdlib/2and3/lib2to3/pgen2/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/stdlib/2and3/lib2to3/pgen2/driver.pyi,sha256=FqgZDUSf1X9X55R7dm4YxYIIzu3zAXjB0x6T_zQl92w,956 +jedi/third_party/typeshed/stdlib/2and3/lib2to3/pgen2/grammar.pyi,sha256=zuKtRoL1GMizL8ij0akjhZVXH2mBsbb2LxJkFJPi0ME,733 +jedi/third_party/typeshed/stdlib/2and3/lib2to3/pgen2/literals.pyi,sha256=CSUI0I_W6I9fN-nb6rGgzLjGMIO0C6OwOmzYz-HEQZU,172 +jedi/third_party/typeshed/stdlib/2and3/lib2to3/pgen2/parse.pyi,sha256=Vd7LRmWw5Q9pWzYBbDsKAvL2NdyCZNEFCa0kysAtrsU,1107 +jedi/third_party/typeshed/stdlib/2and3/lib2to3/pgen2/pgen.pyi,sha256=ZhxquDht1cGiy0KiclTZSKGSctTRM21QTQDJEY38nC4,2140 +jedi/third_party/typeshed/stdlib/2and3/lib2to3/pgen2/token.pyi,sha256=YpBo_itTcpSXfWPpPFYEdTLcdEerPoAw8nuHpAGEo1Y,1065 +jedi/third_party/typeshed/stdlib/2and3/lib2to3/pgen2/tokenize.pyi,sha256=pA9uvZ22MHGVm37U1xhMEde2hUPvJQJBq6XDQ3Gzcts,883 +jedi/third_party/typeshed/stdlib/2and3/lib2to3/pygram.pyi,sha256=lyhgf6kpNVMPN6g6W-DSxt8E2_IyVguf7JjKzVhAmzc,2208 +jedi/third_party/typeshed/stdlib/2and3/lib2to3/pytree.pyi,sha256=Zz0sUjSMFvxHKpIPlvzNCRyJtzT2vEzYKPPGha8LRFk,3322 +jedi/third_party/typeshed/stdlib/2and3/linecache.pyi,sha256=mfzNP8AUc3yd_VahaBEaSYt7-zDAKneFa7rjFQE8sIU,591 +jedi/third_party/typeshed/stdlib/2and3/locale.pyi,sha256=t-y1NnMHom3HdCewxj1zq7-83xAEdC2FR7KC7P3K67w,2555 +jedi/third_party/typeshed/stdlib/2and3/logging/__init__.pyi,sha256=zMbblZS9jbaC4hrktbUu0rzfZKP_AKhN2shNU0kgh_M,28358 +jedi/third_party/typeshed/stdlib/2and3/logging/config.pyi,sha256=oreN5ILtTK6x7s5m0n7-wqM4fG3e4WYp8uRhu9Qmtl0,967 +jedi/third_party/typeshed/stdlib/2and3/logging/handlers.pyi,sha256=J36V-7X3w-tFAH57rE6YkYU20tvEDzQF_omTvHIPDp4,8847 +jedi/third_party/typeshed/stdlib/2and3/macpath.pyi,sha256=B6y98iSZAXQPkStHypSps3hvpzq4eBmfYL6uMyBYj4E,5330 +jedi/third_party/typeshed/stdlib/2and3/mailbox.pyi,sha256=IrYfGXuaCVIJDADHUZ-1D5OOvHHeULJdTsWySzYCL5I,8071 +jedi/third_party/typeshed/stdlib/2and3/mailcap.pyi,sha256=5MWzikKoMQEkohWxGbzZUPwY6E_g1-i-nvPQw13Zxwk,330 +jedi/third_party/typeshed/stdlib/2and3/marshal.pyi,sha256=zXZaX_H3VD9clK-iiNZz7f5GKDdG4_TriqlTPCBR6oM,253 +jedi/third_party/typeshed/stdlib/2and3/math.pyi,sha256=RA890_35QPnZF7K2393I3qhr0My1U62LVK2UjXyv9Fw,3835 +jedi/third_party/typeshed/stdlib/2and3/mimetypes.pyi,sha256=wEC12QuS8DXgpM9ZMB-SZ1Zh2GA494p-cRBZQvnV6dI,1641 +jedi/third_party/typeshed/stdlib/2and3/mmap.pyi,sha256=BZHJGHPpkicsCQSIgZOUZA62JaXkafcpm4Vj8cYZjsU,4006 +jedi/third_party/typeshed/stdlib/2and3/modulefinder.pyi,sha256=Pwx90XH7YRRF4Dm1mUNBtIP8xb-5eDwTi6bwl1x4k_o,3674 +jedi/third_party/typeshed/stdlib/2and3/msilib/__init__.pyi,sha256=vruWL_rWAZiYVXQMq4jwiqVTzrIXKw2g5PSf59FOJu4,6306 +jedi/third_party/typeshed/stdlib/2and3/msilib/schema.pyi,sha256=LEZZXliX-2N73ryhJtTAuTvP_RZVsD4i7S1CRTLNtik,2214 +jedi/third_party/typeshed/stdlib/2and3/msilib/sequence.pyi,sha256=XQC-7D28bgEuJzAFC7WIX86AtUBrQ7pC5Sc1JTyPwEk,356 +jedi/third_party/typeshed/stdlib/2and3/msilib/text.pyi,sha256=drG3KVxFc8MYRrdkm3oJWaivBvZecq6pdKoFEemvF2Y,202 +jedi/third_party/typeshed/stdlib/2and3/msvcrt.pyi,sha256=DDiTa2YmqkChpLzKr80n-ZOfJAXWb6YYB0RER013dHw,795 +jedi/third_party/typeshed/stdlib/2and3/netrc.pyi,sha256=6ipkr1k-p5Pve7y-PTtCH0sZqeFV19Aw33SkQddMJm0,444 +jedi/third_party/typeshed/stdlib/2and3/nis.pyi,sha256=CUnTx-mKL-YinbUfrvw8WIWLwuqu4PtSVZ9M2mxSSvY,322 +jedi/third_party/typeshed/stdlib/2and3/numbers.pyi,sha256=73gLvE-jPZrLxYYhVHJfA--xYyIjJJG9_06iU3Vdauk,4335 +jedi/third_party/typeshed/stdlib/2and3/opcode.pyi,sha256=k_DFbtjvSdVKzq72SSztF8K4GKK-tk_WMSITs6EKUTI,609 +jedi/third_party/typeshed/stdlib/2and3/operator.pyi,sha256=JoI0OeQjkMbyEoD4cYXn9R1CVf2GXNOlFKKkgKfUmZ0,7146 +jedi/third_party/typeshed/stdlib/2and3/optparse.pyi,sha256=6YXlTrzWD4rA0HUYfQ8odZlsCza7ln4bT9srOGv7d-k,10096 +jedi/third_party/typeshed/stdlib/2and3/parser.pyi,sha256=AZjxkjNl47Rk3MMk38Muh7gpibhfs6EeTrHNubEsgTA,966 +jedi/third_party/typeshed/stdlib/2and3/pdb.pyi,sha256=mppJ9PSllcPnOcziqt3ua1Ne-N8BKDC7_kCa0xCNc7o,10325 +jedi/third_party/typeshed/stdlib/2and3/pickle.pyi,sha256=HgJusFb0xpfdwPMgh689OtA9zWULEUC_ob_3bSQNVgk,5322 +jedi/third_party/typeshed/stdlib/2and3/pickletools.pyi,sha256=LekbII856jROKj6nerzKVY3tr0J3rjFh7aHiiB9fMHQ,4510 +jedi/third_party/typeshed/stdlib/2and3/pkgutil.pyi,sha256=EXApPfIH6cq6nCJ3dgWY27Z2vO95y0_4sjUspTLJRSA,1558 +jedi/third_party/typeshed/stdlib/2and3/plistlib.pyi,sha256=SufCK1SjP-QOhGd1VhStpLcdRiuoczBGX3KdB4C4ICs,2742 +jedi/third_party/typeshed/stdlib/2and3/poplib.pyi,sha256=CezxOiUqIikxqAv4df5G5rs2jqmGMIWYVfbYt2hvUZg,2500 +jedi/third_party/typeshed/stdlib/2and3/pprint.pyi,sha256=Eox19Bw2R4Uyl87ilwJHr38pEFhBdHRWC2TgW9A2T6E,2893 +jedi/third_party/typeshed/stdlib/2and3/profile.pyi,sha256=4mezNO66Y3vWX9SIftkcbeQcA3Swuc62yNxPkmmwk1w,1199 +jedi/third_party/typeshed/stdlib/2and3/pstats.pyi,sha256=trO8Oc7GQ4nRAdays5pWi5Viib1tKQwkwnQH0upmcJ4,2213 +jedi/third_party/typeshed/stdlib/2and3/pty.pyi,sha256=aCa6VBas1vNafTUiBCmFI-W9SR018bDjy1WtJmIqxOg,592 +jedi/third_party/typeshed/stdlib/2and3/pwd.pyi,sha256=s48Hp0pbMoMBpWg6glXl1ABEcLU4zLj_wV-PloenVI0,350 +jedi/third_party/typeshed/stdlib/2and3/py_compile.pyi,sha256=1A3_VdW5WwbifT-CTrSoXy0ZNFoN5zsqUUuUyPXJjfA,1642 +jedi/third_party/typeshed/stdlib/2and3/pyclbr.pyi,sha256=xirCZDC7Q7ffw0CZ3V6_62EbwCSSE4UXe0-DYatTLUs,1192 +jedi/third_party/typeshed/stdlib/2and3/pydoc.pyi,sha256=aHbKeX9juIvggS2xrKYVGkVBHvxJRBAJLMmtuYS5Xms,10660 +jedi/third_party/typeshed/stdlib/2and3/pydoc_data/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/stdlib/2and3/pydoc_data/topics.pyi,sha256=PLI9r9ujTHeIKw7D9GxCeB_LwxV17eUTauVx9AKiU8k,48 +jedi/third_party/typeshed/stdlib/2and3/pyexpat/__init__.pyi,sha256=XJx933QTavu4mJNP63uHUFwncDx2wlbv1O1DarVJQ9E,3404 +jedi/third_party/typeshed/stdlib/2and3/pyexpat/errors.pyi,sha256=TVdXkdX10ZCjPuBYAy3yNQzUJMo5lCjsl8bv4VJ8PU0,1275 +jedi/third_party/typeshed/stdlib/2and3/pyexpat/model.pyi,sha256=LlBMaLvt3TBD1JQSAQTYUrHKAfKNEeQYaDw5GsJA--g,205 +jedi/third_party/typeshed/stdlib/2and3/quopri.pyi,sha256=0zH--hEadPU_f_GNqwlxU8vrs2tqmPaLCO94BeZXCyo,343 +jedi/third_party/typeshed/stdlib/2and3/readline.pyi,sha256=-Yx9NN7kGQwlGTwubEhIUIFPiMHQJY0z8QbuCE8u7xo,1585 +jedi/third_party/typeshed/stdlib/2and3/rlcompleter.pyi,sha256=1aZLE2z6iAikB08PpAEuc-UeL63VZhgHYQpBT4ssVGI,308 +jedi/third_party/typeshed/stdlib/2and3/sched.pyi,sha256=D7Y2BV6CNyRrJNn0UwLp1sYVTxu1TMw_CR4U3HUs03Q,1497 +jedi/third_party/typeshed/stdlib/2and3/select.pyi,sha256=zpT6GIDgll2LngtzJbW2ZV1qLyJAMpLwJwLMKynskxI,4828 +jedi/third_party/typeshed/stdlib/2and3/shutil.pyi,sha256=O5GZv_Ion6daXUfCfJLjhNPfefuLArzzCK0cYWVVxuA,5961 +jedi/third_party/typeshed/stdlib/2and3/site.pyi,sha256=dG90RROJAZP04P8KTzbJOEm5w-5lbHPfP1tU5IbErJo,450 +jedi/third_party/typeshed/stdlib/2and3/smtpd.pyi,sha256=mKs96L0YHWx4Mk3DXIq0ROLiettU1muAHz_MoksxOwk,2935 +jedi/third_party/typeshed/stdlib/2and3/sndhdr.pyi,sha256=Kbdxb_xqFGOZzce1apkDVbj2dpoMWKplNAP5KNV6tRc,501 +jedi/third_party/typeshed/stdlib/2and3/socket.pyi,sha256=y2Db0P_TYtBdVuWiG3xXxsr0AbSxa5sXbyLf0or_wuI,22711 +jedi/third_party/typeshed/stdlib/2and3/sqlite3/__init__.pyi,sha256=aJu9MCNl8y9HCykdUpo1Z-LSiP3mxRSxrWkCsMxemYI,43 +jedi/third_party/typeshed/stdlib/2and3/sqlite3/dbapi2.pyi,sha256=hdn9VtF3aSsI-oGdY4XObtCo8kSUVGOPuZP51f2Z9aM,11315 +jedi/third_party/typeshed/stdlib/2and3/sre_compile.pyi,sha256=a7wV8OxkRzj0F1L7B02gcZrvMi5Uz87g2wG0pHvWtNI,1073 +jedi/third_party/typeshed/stdlib/2and3/ssl.pyi,sha256=igBbyUhdonNcvRkjzUaRf2r8LIOx1J2lwYzHVC9AEvk,14626 +jedi/third_party/typeshed/stdlib/2and3/stringprep.pyi,sha256=fqKAxHgpLExMmFDO66rJ-kFZS5mVKeWvK_qWQ2yvsWc,817 +jedi/third_party/typeshed/stdlib/2and3/struct.pyi,sha256=FnlORamrhrWi59qMGSXUL_px20rH8QAgFyrptIv3Qxw,1568 +jedi/third_party/typeshed/stdlib/2and3/sunau.pyi,sha256=8nruVjfJtTIU816plhmHsGL5VRubbsWem5hvWiyiONc,3085 +jedi/third_party/typeshed/stdlib/2and3/symtable.pyi,sha256=Dff6o3EDAli4Mzo-Jx8aSN9iiCxlEN-hC82OFaJOHVg,1645 +jedi/third_party/typeshed/stdlib/2and3/sysconfig.pyi,sha256=ISugdNUmN9ycQF8mHoiBL8zoy9As_QcIBRvRPbUTamY,843 +jedi/third_party/typeshed/stdlib/2and3/syslog.pyi,sha256=WbINKcwKTg5WFsn4f06K3-jriyoYXzqnOU9HwbAFbZY,821 +jedi/third_party/typeshed/stdlib/2and3/tabnanny.pyi,sha256=g_vgZl-PEUiu0JEx0LxnwPaDmgP65k9Hva0zVCIDUQU,447 +jedi/third_party/typeshed/stdlib/2and3/tarfile.pyi,sha256=1RRfYoQGC8KVZABw5FH0PGk5I3cgS90HWN_s-EoboRQ,8182 +jedi/third_party/typeshed/stdlib/2and3/telnetlib.pyi,sha256=TRsxrafitwtsxZ6m-KzsFEy-9uFpypw-r2bmW6Mz2lQ,2680 +jedi/third_party/typeshed/stdlib/2and3/termios.pyi,sha256=ZJKwv-a6e8w8frrD3Wgo_I66YNXNtQkhY59jymFZ-wI,3504 +jedi/third_party/typeshed/stdlib/2and3/this.pyi,sha256=5hi7CD2tChI9_genuMBxsS8GOFo0gAVvFGuv-_Uc9p0,50 +jedi/third_party/typeshed/stdlib/2and3/threading.pyi,sha256=__eLfXz1Hygl5swKoIL4JZtQ-JBIKkr-yExKwKl6eD0,6309 +jedi/third_party/typeshed/stdlib/2and3/time.pyi,sha256=jnR64tSQq-k6AOYxmFOxLD2FPFy71v0BPWsic4F1fVM,3900 +jedi/third_party/typeshed/stdlib/2and3/timeit.pyi,sha256=AXtKdk4M2pfi6_KCgmpkDujbaVuR1smNIgpz6_90fIQ,1623 +jedi/third_party/typeshed/stdlib/2and3/token.pyi,sha256=04p49poqkYTWUiSpb2syf7dX84i-eP_NBUXbJIkFcRY,1468 +jedi/third_party/typeshed/stdlib/2and3/trace.pyi,sha256=JzpexVtFU46sf7VlGb7mnpvyLMKxuco6OAk-pQRnhLM,2037 +jedi/third_party/typeshed/stdlib/2and3/traceback.pyi,sha256=O9stbkIrGRLbmSg-nBxrEFlEkk9Kxp-yJiQXnJzc5hs,5545 +jedi/third_party/typeshed/stdlib/2and3/tty.pyi,sha256=A25_a1yrTL55nQAsEpOWKsni215-75a4rAoFJ7g7Qr0,275 +jedi/third_party/typeshed/stdlib/2and3/turtle.pyi,sha256=sbaGlYhQbjQoqfJNX_mxNqMeJEqjNpuVQJe5L0Ci4Zs,19476 +jedi/third_party/typeshed/stdlib/2and3/unicodedata.pyi,sha256=AdW8_ww_4_Oh5undlAXiNUJF6elKYALIyc_cMMJsqpg,1902 +jedi/third_party/typeshed/stdlib/2and3/uu.pyi,sha256=j8lHTLVoMNPv2EJ1py5ozflgE5M1tHFrCOjydfSbPts,549 +jedi/third_party/typeshed/stdlib/2and3/uuid.pyi,sha256=NnP8AHc5cneMi37IHGdBBvmVqPSAlTUK_4qOfEYMMhA,3448 +jedi/third_party/typeshed/stdlib/2and3/warnings.pyi,sha256=byrds4TJ9vuk0d5ohkeFcm81yadHPfmudeFBE1JEQ8A,2583 +jedi/third_party/typeshed/stdlib/2and3/wave.pyi,sha256=EWn5CUj5JmmpZHDy6nfHuxkLSHhEZ8vPl-iH5rOeyrk,2651 +jedi/third_party/typeshed/stdlib/2and3/weakref.pyi,sha256=yK1h8AhDi0SMSMS3jih101FhTimqaZl_g-uIcc1hcNQ,4433 +jedi/third_party/typeshed/stdlib/2and3/webbrowser.pyi,sha256=Aic7NcY6wXkRP5SU66vAhrcWylwe8i78u2nzfenn7FY,3295 +jedi/third_party/typeshed/stdlib/2and3/winsound.pyi,sha256=i7oaOMrdRL5hMtBGZXQtB2jR_gIDcqltc0JMZPeTHMY,811 +jedi/third_party/typeshed/stdlib/2and3/wsgiref/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/stdlib/2and3/wsgiref/handlers.pyi,sha256=HkQCK0geDJd1kFX6FWlydyu7QWG-rcDM2P2BHXKAsrI,3125 +jedi/third_party/typeshed/stdlib/2and3/wsgiref/headers.pyi,sha256=j5-Y2n64U9US_Xld0JtgrWjA8eYlo6BOzu89HKdDsaE,1250 +jedi/third_party/typeshed/stdlib/2and3/wsgiref/simple_server.pyi,sha256=4pAabsnp0x4uyrHdtxchezvI8cudyl4F6K4VlCX5VFk,1528 +jedi/third_party/typeshed/stdlib/2and3/wsgiref/types.pyi,sha256=1qhS0qVWoV0IVfe3b1y4Mzhou65EPtwb_QLmWfX5_I4,71 +jedi/third_party/typeshed/stdlib/2and3/wsgiref/util.pyi,sha256=Ly4ctt2LOpbP9t5YeKU9wwov7iN1uFqeAtBjJ-O1HtU,893 +jedi/third_party/typeshed/stdlib/2and3/wsgiref/validate.pyi,sha256=YB_yhIz9Dl3b8s_-ASpzsPpRSpCwCuZ1jMaLAB_7q4g,1861 +jedi/third_party/typeshed/stdlib/2and3/xdrlib.pyi,sha256=yHZnDsb7h-kuMZ04mQip7YRjBSX-g900SOE0HhGyMl4,2315 +jedi/third_party/typeshed/stdlib/2and3/xml/__init__.pyi,sha256=BqMXnsXiYPoalMzEakn6mYDxgyW5N2UPF0Ao7xPuGVY,30 +jedi/third_party/typeshed/stdlib/2and3/xml/dom/NodeFilter.pyi,sha256=bi0L5SEOxk4FyEhf18oU-I8Msf9S9o_tJt-mVc93f28,457 +jedi/third_party/typeshed/stdlib/2and3/xml/dom/__init__.pyi,sha256=gjfWhkwyNoY8SeH6cztWZ9W8w9E4CLgCpHeP8vnHM5c,1844 +jedi/third_party/typeshed/stdlib/2and3/xml/dom/domreg.pyi,sha256=Sq02GZ6VRiXWCy2lUE1e47_EUDdr88rmWZoKCxH0fgQ,462 +jedi/third_party/typeshed/stdlib/2and3/xml/dom/expatbuilder.pyi,sha256=wI_eu1G8yaaquRHmZ9mYRgjy4zNNhJC385TjSMoamRg,77 +jedi/third_party/typeshed/stdlib/2and3/xml/dom/minicompat.pyi,sha256=wI_eu1G8yaaquRHmZ9mYRgjy4zNNhJC385TjSMoamRg,77 +jedi/third_party/typeshed/stdlib/2and3/xml/dom/minidom.pyi,sha256=DSNxhSfqdzlQQ5HjeRZHxB2mhshhLkDfeAmeOY5I9K4,287 +jedi/third_party/typeshed/stdlib/2and3/xml/dom/pulldom.pyi,sha256=wI_eu1G8yaaquRHmZ9mYRgjy4zNNhJC385TjSMoamRg,77 +jedi/third_party/typeshed/stdlib/2and3/xml/dom/xmlbuilder.pyi,sha256=wI_eu1G8yaaquRHmZ9mYRgjy4zNNhJC385TjSMoamRg,77 +jedi/third_party/typeshed/stdlib/2and3/xml/etree/ElementInclude.pyi,sha256=4e6cquTvRpyBS1UBTNomH5ghEtSzMHr3im5VwFAzvEI,873 +jedi/third_party/typeshed/stdlib/2and3/xml/etree/ElementPath.pyi,sha256=lJV3KlSWuf_anuM3hIRwdD-n-hpO4b7MzCKg0FxyFAE,1561 +jedi/third_party/typeshed/stdlib/2and3/xml/etree/ElementTree.pyi,sha256=YbNf8vOL8aKD-MjSJufTgeTcip6A270muX9zWiKQzDQ,14905 +jedi/third_party/typeshed/stdlib/2and3/xml/etree/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/stdlib/2and3/xml/etree/cElementTree.pyi,sha256=D25RVU5Y1Sai47EQ49UTStrYaY39HMqT1HUOZrSioRg,50 +jedi/third_party/typeshed/stdlib/2and3/xml/parsers/__init__.pyi,sha256=FHZYB9bXDrj4RiKUgrctpkuf7_Rms9PqQrGyjkn0EE4,34 +jedi/third_party/typeshed/stdlib/2and3/xml/parsers/expat/__init__.pyi,sha256=qmz8tuPGbZ2rBfRrfYANxDZNxn9BTQXdd9AugF5wDW0,22 +jedi/third_party/typeshed/stdlib/2and3/xml/parsers/expat/errors.pyi,sha256=mH9YRZuV4quzksDMLEmxiisAFgNhMOhl8p07ZzlS2XE,29 +jedi/third_party/typeshed/stdlib/2and3/xml/parsers/expat/model.pyi,sha256=M7GVdd-AxOh6oGw6zfONEATLMsxAIYW2y9kROXnn-Zg,28 +jedi/third_party/typeshed/stdlib/2and3/xml/sax/__init__.pyi,sha256=PuxAYEbGDZ-GvZFBPhpKAnN5935WR5dRWaGbhdUN1Nc,1389 +jedi/third_party/typeshed/stdlib/2and3/xml/sax/handler.pyi,sha256=lzRvfmcsC4Px11th3C-OB53OJgrSxHHTkgWKkFnYYII,1391 +jedi/third_party/typeshed/stdlib/2and3/xml/sax/saxutils.pyi,sha256=GPHCPJVekBwXRuRViACPSwgJ6WvTn3bKK7Vfy4hgFwA,2825 +jedi/third_party/typeshed/stdlib/2and3/xml/sax/xmlreader.pyi,sha256=6xszLDpI9jWetj83aFhYiq2XKeTvp6A1vj0gT2grXqE,2477 +jedi/third_party/typeshed/stdlib/2and3/zipfile.pyi,sha256=WDrnBqQDKJpsKwqAATU8DrbT4_9fi1ZtMz_6j1antOQ,7249 +jedi/third_party/typeshed/stdlib/2and3/zipimport.pyi,sha256=zdgTOt05qDHBEdkU8TmZXXu_VeX4BXptVsGnYu39eiM,1244 +jedi/third_party/typeshed/stdlib/2and3/zlib.pyi,sha256=fn9NyYniW7bGyLOaipjK0mBXQnUqlmowBBc5BPAM_gk,1692 +jedi/third_party/typeshed/stdlib/3.7/_py_abc.pyi,sha256=vReNkdPnizulbWOKGaxCg-6CslS4zvzEtheQOazNlxM,376 +jedi/third_party/typeshed/stdlib/3.7/contextvars.pyi,sha256=buC4sVtTFV1eqWvJ3Xd53ymdER7bHRY7RXGcN21HF68,1514 +jedi/third_party/typeshed/stdlib/3.7/dataclasses.pyi,sha256=KYjW7iSlZ42rrD1Z34CvtIjUSzOTm2lcLozDVSAOkSo,2737 +jedi/third_party/typeshed/stdlib/3.9/graphlib.pyi,sha256=Spt7N2qI_jP87TY6Oqfn5q1JKonbPmQnGn7yMBPAq9s,592 +jedi/third_party/typeshed/stdlib/3.9/zoneinfo/__init__.pyi,sha256=QjdggL46x_feOdxU4aioHhVM0-obo-vi_N-SBsgR-S4,1183 +jedi/third_party/typeshed/stdlib/3/_ast.pyi,sha256=xgO_RWFNlpKCgJ-N8Oz0MLoNxsluUZK6-LgvM7GHk9s,7851 +jedi/third_party/typeshed/stdlib/3/_bootlocale.pyi,sha256=0g5u3OybUgqbQUaK32XpV2OY1vMr_tMyvv-xWePyn60,63 +jedi/third_party/typeshed/stdlib/3/_compat_pickle.pyi,sha256=bgMC5XUuSbLzpZNo1xi_Lmdhuk7YEkNehIU3VbxJF0A,388 +jedi/third_party/typeshed/stdlib/3/_compression.pyi,sha256=2oEmy37B7HOAAXqPvDtdlBgIuI4veE3Zn_ahmMZek9I,761 +jedi/third_party/typeshed/stdlib/3/_decimal.pyi,sha256=gKb8JF9qlgs-k7lWkc6x13adH918J9IBSh2vJJO2-Es,22 +jedi/third_party/typeshed/stdlib/3/_dummy_thread.pyi,sha256=eurqRwuKXCugsXKBB_45dhYwMfGsEOI3JM36MU0_38c,800 +jedi/third_party/typeshed/stdlib/3/_imp.pyi,sha256=ncrUaJ1P-gDktpPYaAEDEd6O0vWZoQbZaEUYkJJEUi0,705 +jedi/third_party/typeshed/stdlib/3/_importlib_modulespec.pyi,sha256=2H1Bqwkmzeu7VdhBr_ZD4YGYLfFCcQPtfrs8Vc8-B0I,1586 +jedi/third_party/typeshed/stdlib/3/_json.pyi,sha256=TLqFcbDts6gPDQGO1UBQuu7Sgr707zI5mIsc0nE4468,1124 +jedi/third_party/typeshed/stdlib/3/_markupbase.pyi,sha256=bxmSN6aw-V3qwShSR82gk2l_ZrCF0KGQhP3baRo7TPE,256 +jedi/third_party/typeshed/stdlib/3/_operator.pyi,sha256=cW8gndiQv2Ge6SxDU1TYCmdDJ1jjCpRO4Blp3IzYBJ4,1310 +jedi/third_party/typeshed/stdlib/3/_osx_support.pyi,sha256=UzxlYXvWxj-409uwv1Qlrt2Dz7SljoBGbxpQn2Rgeok,1796 +jedi/third_party/typeshed/stdlib/3/_posixsubprocess.pyi,sha256=CSDkhdm87FCJzDPSZ7kRSuruLaUJCFO6-grnXJAohPg,557 +jedi/third_party/typeshed/stdlib/3/_pydecimal.pyi,sha256=droa2p0DPjlLpftTkyseRtRiWWwFEFuBmsKmAEBykHI,157 +jedi/third_party/typeshed/stdlib/3/_sitebuiltins.pyi,sha256=joHmJtcwuqTJzYC9Yz8ExsAOrT2ImObL7RzK1J_YKmA,534 +jedi/third_party/typeshed/stdlib/3/_stat.pyi,sha256=rOfqArOAol_zPagL6lyRodbmL93Qsb1vl1UMNz9x5QE,1179 +jedi/third_party/typeshed/stdlib/3/_thread.pyi,sha256=bwRRV0tuEwneVnc4LSBeYjCZp6rbUVAxzFU17xRxVzc,1451 +jedi/third_party/typeshed/stdlib/3/_threading_local.pyi,sha256=nxpI1n5Bmux1ymFk1lGgWgzSzqFHIDvH_y_FJzSGMqc,490 +jedi/third_party/typeshed/stdlib/3/_tkinter.pyi,sha256=yIaAQOXeQdYw5KzaBCpRx8VZJ67khvPs95zlZI9cM4k,2531 +jedi/third_party/typeshed/stdlib/3/_tracemalloc.pyi,sha256=0mp3PJAcjINGNLU8pmyA2_18SfGMgVN8p72QNz-TfPU,563 +jedi/third_party/typeshed/stdlib/3/_winapi.pyi,sha256=e80Wj1rKs41wv4T4tVVGedGngTWfXB8Yal7OS3iXRKs,4507 +jedi/third_party/typeshed/stdlib/3/abc.pyi,sha256=sFDzu6W3-WI8VhWu-3f7oy89xu-T2ad5AkZOr-oaKbk,597 +jedi/third_party/typeshed/stdlib/3/ast.pyi,sha256=rN2zXBxVShE5080Uq3D6J8cFVU0PMumhHOWLGBp6EyE,9090 +jedi/third_party/typeshed/stdlib/3/asyncio/__init__.pyi,sha256=vQqBti5lCesBtJosU6ISR_TaGXUnon5V2niuGmIAFgM,4242 +jedi/third_party/typeshed/stdlib/3/asyncio/base_events.pyi,sha256=z3HWCTbmefm0vunGqkQwL2fvzDwHWxeQGyI6FtzfHIA,14112 +jedi/third_party/typeshed/stdlib/3/asyncio/base_futures.pyi,sha256=S2IqXCOFikl3_yUkCuiONt0mvmvxW_OcK5ZhlWv38cQ,733 +jedi/third_party/typeshed/stdlib/3/asyncio/base_subprocess.pyi,sha256=BY-Dg-c_bEEe9OMq3LkTlsf3b9GfDTy9GpG6ff7os-Y,3239 +jedi/third_party/typeshed/stdlib/3/asyncio/base_tasks.pyi,sha256=WgkoJoXQj11Dp8EFMNpux0aZD5C62kXOyEVuPgTHUNU,412 +jedi/third_party/typeshed/stdlib/3/asyncio/compat.pyi,sha256=5RcYr5xnYP7yXeBN4CKGSeYeNXUNNU1OCkeliI5fmXM,180 +jedi/third_party/typeshed/stdlib/3/asyncio/constants.pyi,sha256=mi5hQw879HlxJe6jIB5ZGcFF7IwUSNwV39dUXP14JG8,327 +jedi/third_party/typeshed/stdlib/3/asyncio/coroutines.pyi,sha256=KSMF7NRW8a61FFkMXSbI-I957V8-cnI4vr-y5jPIcLE,226 +jedi/third_party/typeshed/stdlib/3/asyncio/events.pyi,sha256=GfQt1pVJScwwdoKJOILTBFFA4ew_qTSYteCM-W6laQI,18648 +jedi/third_party/typeshed/stdlib/3/asyncio/exceptions.pyi,sha256=dROhdLRjCGhqH7bI3_yUbPBr7aIKBM1Ks_iWi-7HOq0,562 +jedi/third_party/typeshed/stdlib/3/asyncio/format_helpers.pyi,sha256=3fVMBIqfwuM6eLWjnNv0OFdNZEs9uk2on5NbaeCTW5Q,921 +jedi/third_party/typeshed/stdlib/3/asyncio/futures.pyi,sha256=pKyo4aaJBbPLHDZepPclI8A-2flbzGx60pWiCn49dTw,2581 +jedi/third_party/typeshed/stdlib/3/asyncio/locks.pyi,sha256=UFo1H-sg4cOAyT0rj-Rbm_58FyR73NGvXT70-vbWMW4,2806 +jedi/third_party/typeshed/stdlib/3/asyncio/log.pyi,sha256=Ql97njxNKmNn76c8-vomSAM7P-V14o-17SOIgG47V-U,39 +jedi/third_party/typeshed/stdlib/3/asyncio/proactor_events.pyi,sha256=VcgZHD_Vsu0VSBYYXa4pZTwntgr9okSrLZs-6xcR9o0,2783 +jedi/third_party/typeshed/stdlib/3/asyncio/protocols.pyi,sha256=SBG_ZeDS4RSwq6vj0uppbRezcJKyjRGpqnWOSWSqlqY,1072 +jedi/third_party/typeshed/stdlib/3/asyncio/queues.pyi,sha256=KWOi5Y1t8_v4Nlf0T50xiTi4okN1kxpU1kw74TnBLIM,1166 +jedi/third_party/typeshed/stdlib/3/asyncio/runners.pyi,sha256=8fwyzaEpkiQuUJBAJGdA4QLa6keFBm_ojm0N5KQn2pk,314 +jedi/third_party/typeshed/stdlib/3/asyncio/selector_events.pyi,sha256=ajnESF-_WSF-65nUWRQKJJrq95fJAkO6mYUIdpDWRL0,215 +jedi/third_party/typeshed/stdlib/3/asyncio/sslproto.pyi,sha256=bXJ1AhfKicw_i991U4uAnI6LIC5NCTotbzIX_o_tEAY,5415 +jedi/third_party/typeshed/stdlib/3/asyncio/staggered.pyi,sha256=5ysf7K4OZzJoslO6Jyutra3HVjrgdYXzOxBDc9SpnS8,396 +jedi/third_party/typeshed/stdlib/3/asyncio/streams.pyi,sha256=Vjlv0BjrBw-jAlUE7AYF-V3-GqMYJO8waNOpLBRKs3M,3941 +jedi/third_party/typeshed/stdlib/3/asyncio/subprocess.pyi,sha256=qeMUmUnuAWmms9LYfR5Ldgao3tWDPhxuwprVQ9rRE6I,2265 +jedi/third_party/typeshed/stdlib/3/asyncio/tasks.pyi,sha256=NR-30BS6Tgn5Xd5qj_HMiN1yvd6xT0D21HYLmSkOO8Q,7153 +jedi/third_party/typeshed/stdlib/3/asyncio/threads.pyi,sha256=xNqf8z1pbCIoeaO4w4YTzcuqOoGKbb1bJ7KjXpP7vWU,194 +jedi/third_party/typeshed/stdlib/3/asyncio/transports.pyi,sha256=81VjVySq54ht5UnyaxEaYhjBgt263z0nUGuwl2zNWvc,1886 +jedi/third_party/typeshed/stdlib/3/asyncio/trsock.pyi,sha256=Gywt7hJSyhtc9oIGAhTZUls1u_5C_AtmGKlOCkdqyIk,4582 +jedi/third_party/typeshed/stdlib/3/asyncio/unix_events.pyi,sha256=xnaVSEGzJn3AKT0eCG9g0xacrj5EG9K6fA8MNbD2EEw,2144 +jedi/third_party/typeshed/stdlib/3/asyncio/windows_events.pyi,sha256=SQQ4tw0uGxFkIaFjMhVwqHlpU2kyBt-7Zb1qUKbNmGM,3554 +jedi/third_party/typeshed/stdlib/3/asyncio/windows_utils.pyi,sha256=sPyeKsJrsOsSHFop6mMTdPdyiOasrfvAVWRCLVDDruY,983 +jedi/third_party/typeshed/stdlib/3/atexit.pyi,sha256=NLT6GZV7DmuNcHb-lTn2R5mT-V12bibRWe12ittWOeo,271 +jedi/third_party/typeshed/stdlib/3/builtins.pyi,sha256=OnHDGVqjdghwpPVhsTK7DHElTolNSs8MvfAHEwoLw8o,54524 +jedi/third_party/typeshed/stdlib/3/collections/__init__.pyi,sha256=CRVuUl5jM4mQlf1i1Xsn2zm1KljSS0XzEvNpAI2kPRk,14502 +jedi/third_party/typeshed/stdlib/3/collections/abc.pyi,sha256=dVx25fVnQBL30UcThhhbW3wcpH5Ru5EM_hW448QeFPg,744 +jedi/third_party/typeshed/stdlib/3/compileall.pyi,sha256=YYPeCHqW1sy_ecwW2gdNA4JErmOMqzizTus5hYh__IM,3367 +jedi/third_party/typeshed/stdlib/3/concurrent/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/stdlib/3/concurrent/futures/__init__.pyi,sha256=ZyXXp9i057jbhjo8WeR9SYBT0dhFnwyZ-L1cJP4pQWg,629 +jedi/third_party/typeshed/stdlib/3/concurrent/futures/_base.pyi,sha256=4tKni6V8xudjGjgdqmUCyWa4aQFINZrLlzIzJegI4O4,4676 +jedi/third_party/typeshed/stdlib/3/concurrent/futures/process.pyi,sha256=ZJi1cVZxQPFoJnHUunWf_kUSlEVX_NBbj3asiI8_shM,804 +jedi/third_party/typeshed/stdlib/3/concurrent/futures/thread.pyi,sha256=7thIcnDTCR-0-lB5jJFN4xWzpt4MoQiGy2vKkymPA4w,1421 +jedi/third_party/typeshed/stdlib/3/configparser.pyi,sha256=v_JccqizVrtoccBdWqJSDGiZUbDQaXu2Eoh96AI3EHM,10095 +jedi/third_party/typeshed/stdlib/3/copyreg.pyi,sha256=-GmSIudewg4xblZXLSvErhpunAMi1bsqdQUEXujpFlI,739 +jedi/third_party/typeshed/stdlib/3/dbm/__init__.pyi,sha256=fxHKjeckXzF2s17gpHZ7mD2CKOw42qFaX8oTsa2wUGM,945 +jedi/third_party/typeshed/stdlib/3/dbm/dumb.pyi,sha256=f1YcbTYCzE8bcoC-J9jL8-tKlwTMMV0JBjGFzuj4EQk,1010 +jedi/third_party/typeshed/stdlib/3/dbm/gnu.pyi,sha256=zMcocoAPlm0vkOt5kqWVu6eBe7HZ74A3xl0W7PgrpSc,1363 +jedi/third_party/typeshed/stdlib/3/dbm/ndbm.pyi,sha256=mCED-czlQBkm28csVVuyWFXNQ282xg1sUAnsCOvaMP4,1236 +jedi/third_party/typeshed/stdlib/3/distutils/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/stdlib/3/distutils/archive_util.pyi,sha256=WaUu32XUCstlA4zE0WS-PvA9UF0mdyuDgDbZZd1LN0A,447 +jedi/third_party/typeshed/stdlib/3/distutils/bcppcompiler.pyi,sha256=fge2cMbG4jp--o0I2zNcwykh24tJWZtk6leQgAH2NJw,78 +jedi/third_party/typeshed/stdlib/3/distutils/ccompiler.pyi,sha256=N38wYG41RyiEuowx_ZvpZIqVVZYiz1NGcGHHDJ9MbWs,6449 +jedi/third_party/typeshed/stdlib/3/distutils/cmd.pyi,sha256=wquIAgFbqLNsoHDPGQm3WuGU13054o1u4FGHprpI_9Q,2803 +jedi/third_party/typeshed/stdlib/3/distutils/command/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/stdlib/3/distutils/command/bdist.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/stdlib/3/distutils/command/bdist_dumb.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/stdlib/3/distutils/command/bdist_msi.pyi,sha256=sDSqH7TRcOiXC5S4VXxJ_YHB-WFPpa1fo8F8g5XeV3Y,182 +jedi/third_party/typeshed/stdlib/3/distutils/command/bdist_packager.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/stdlib/3/distutils/command/bdist_rpm.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/stdlib/3/distutils/command/bdist_wininst.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/stdlib/3/distutils/command/build.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/stdlib/3/distutils/command/build_clib.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/stdlib/3/distutils/command/build_ext.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/stdlib/3/distutils/command/build_py.pyi,sha256=lBXy2QTRaedFpVnXmdyJonKRrnEjAKYViarVHccdb1w,217 +jedi/third_party/typeshed/stdlib/3/distutils/command/build_scripts.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/stdlib/3/distutils/command/check.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/stdlib/3/distutils/command/clean.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/stdlib/3/distutils/command/config.pyi,sha256=DV1oMIztVDdk46W43HGioP_n6b3x9FgSqvFr2rwPVoY,3059 +jedi/third_party/typeshed/stdlib/3/distutils/command/install.pyi,sha256=z_gxnwFlHhSicrx9YRtsJnJQ1YG7mu6zERZwZ-1RJi8,365 +jedi/third_party/typeshed/stdlib/3/distutils/command/install_data.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/stdlib/3/distutils/command/install_egg_info.pyi,sha256=WcnLycNSSWSZ8Z_vHIohu0-3qKnCih2qoJaGBPtjQGY,380 +jedi/third_party/typeshed/stdlib/3/distutils/command/install_headers.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/stdlib/3/distutils/command/install_lib.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/stdlib/3/distutils/command/install_scripts.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/stdlib/3/distutils/command/register.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/stdlib/3/distutils/command/sdist.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/stdlib/3/distutils/command/upload.pyi,sha256=NQ4QYCmhC98gBW2Fv2LW0xzFNZI-9gI6AjTW_UqeOJY,279 +jedi/third_party/typeshed/stdlib/3/distutils/config.pyi,sha256=M4b9_7PKsO74DhsIBFoTAB5I99hXrlBJcjxghWhI8vc,523 +jedi/third_party/typeshed/stdlib/3/distutils/core.pyi,sha256=lq1S8lRqeGqK6U3z7_UsVg2TR7xbx7Z2YXJ0ekIo9Vk,1688 +jedi/third_party/typeshed/stdlib/3/distutils/cygwinccompiler.pyi,sha256=Y7qhVOqXrkPT0yyQnudNCtTzBYC2lzS38HB5Mh45zEI,138 +jedi/third_party/typeshed/stdlib/3/distutils/debug.pyi,sha256=7_zuriUBqHbc62x7tCONq7LQXLuK_hCaBK0laoR3HeY,12 +jedi/third_party/typeshed/stdlib/3/distutils/dep_util.pyi,sha256=QCheHEDF7waISF42_aaumqvVOIcTw-yh5e5-CbPvQ2o,252 +jedi/third_party/typeshed/stdlib/3/distutils/dir_util.pyi,sha256=0nHuLCqZ36gvDVaF6PoC76_JOC3v6P_310eFauW1ZDM,555 +jedi/third_party/typeshed/stdlib/3/distutils/dist.pyi,sha256=a5bZv3WJK1cAA-rXLz2WRgvWRr_KrNShz1ho37Z73nA,2557 +jedi/third_party/typeshed/stdlib/3/distutils/errors.pyi,sha256=l1W_FgoP9L-D-hEPFA2BzZuybjN0lV4WBXl0VJ-k7J8,852 +jedi/third_party/typeshed/stdlib/3/distutils/extension.pyi,sha256=DSCTrWp6UVQGcvlVM-07HCJUNMT7ggxg8-gGBL1hKlg,736 +jedi/third_party/typeshed/stdlib/3/distutils/fancy_getopt.pyi,sha256=ai-0E83HnTOcYCWO9zq4tDVvnef04SRRoa-F8baso_o,859 +jedi/third_party/typeshed/stdlib/3/distutils/file_util.pyi,sha256=RFpiizXMdhhcji98pIscfHW4r6i9KLzM2D15gA6_eow,439 +jedi/third_party/typeshed/stdlib/3/distutils/filelist.pyi,sha256=-WeYFFKsEUUjPvbzeZbVCOKkPV-oqc3RoZvN2SB1VOE,20 +jedi/third_party/typeshed/stdlib/3/distutils/log.pyi,sha256=CXViHmBVIadN4DWrSddT9lN1O1WaNjpxvaz-KUCD8C0,845 +jedi/third_party/typeshed/stdlib/3/distutils/msvccompiler.pyi,sha256=qQLr26msfhjz-omJutWcRHik3shLh1CIt7CDI3jBd3I,78 +jedi/third_party/typeshed/stdlib/3/distutils/spawn.pyi,sha256=iDdi2WvST9yeFDlKWy0Wlye-x67W-ah5nta7EuRW2W4,227 +jedi/third_party/typeshed/stdlib/3/distutils/sysconfig.pyi,sha256=FSdBoSTsVvKAF5D2lkWBwxH15ockfFZv6L06mrgeAb0,620 +jedi/third_party/typeshed/stdlib/3/distutils/text_file.pyi,sha256=vCQLwggDaocAqqR7v1WJjOeS_wgxqjI5xDkyxHJlzcw,716 +jedi/third_party/typeshed/stdlib/3/distutils/unixccompiler.pyi,sha256=R3VKldSfFPIPPIhygeq0KEphtTp0gxUzLoOHd0QoWW8,79 +jedi/third_party/typeshed/stdlib/3/distutils/util.pyi,sha256=KSpX8rQ6qJXqToJBKdwhlpe-jd1QQcacg7wsH_6dKXo,829 +jedi/third_party/typeshed/stdlib/3/distutils/version.pyi,sha256=-MSresMMQbCxM9NDl_Hof4kDdGYmlJmqL8QWHCbliqM,1429 +jedi/third_party/typeshed/stdlib/3/email/__init__.pyi,sha256=5hwilWCw-1AiwWEMUfgVza8eTnH1vsqSL4Dkjx44w4c,757 +jedi/third_party/typeshed/stdlib/3/email/charset.pyi,sha256=tKEN5fdqEvA9KmtWRqGdv7MFSdI8IKcRMrkjzvdUpyQ,1062 +jedi/third_party/typeshed/stdlib/3/email/contentmanager.pyi,sha256=1onMqjP_pwFFABKkXAJMpLssp2eCajYb_DmfdGW88dg,489 +jedi/third_party/typeshed/stdlib/3/email/encoders.pyi,sha256=WIE0oEGqiDZZCnaaUganOj3RIHvNpdH1H6_uYsb9BCU,214 +jedi/third_party/typeshed/stdlib/3/email/errors.pyi,sha256=5uMjZNDOPcQBIOB08smMOo19sHIAc_Zcbsbz4OAjrlM,833 +jedi/third_party/typeshed/stdlib/3/email/feedparser.pyi,sha256=-El1uWq32_69H0WtIpGT6eiEsyCQRcHuGUxKSlE7OdI,823 +jedi/third_party/typeshed/stdlib/3/email/generator.pyi,sha256=aBWIi9nhJSWROoxD0pIk0TMLt0j2epr_ASen8iiUKPs,967 +jedi/third_party/typeshed/stdlib/3/email/header.pyi,sha256=N32hw4GGgE82e7R8dpDHQnQXLf6YABLJ5OGWFuvwQNw,1025 +jedi/third_party/typeshed/stdlib/3/email/headerregistry.pyi,sha256=M9ZBxQ_YJIe_lWFLyr0AkvgkIy0ch1rhnZm7JNIT2LE,2828 +jedi/third_party/typeshed/stdlib/3/email/iterators.pyi,sha256=kVhrZU7h-D41NBZrgFU_h2xeBs02vSRL56lfxXiRy8g,266 +jedi/third_party/typeshed/stdlib/3/email/message.pyi,sha256=4OVN83CSaSRycbt4NmwrHwB643-65ibkluIiQqNa4Os,4681 +jedi/third_party/typeshed/stdlib/3/email/mime/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/stdlib/3/email/mime/application.pyi,sha256=1nvquRMV3pfipzE_Db77xQA2YiVshkslbrR6KJZXN2k,499 +jedi/third_party/typeshed/stdlib/3/email/mime/audio.pyi,sha256=hsj22zxJwLlF6TPXDzRMksu4oUoxnypUshYenxXSkE8,502 +jedi/third_party/typeshed/stdlib/3/email/mime/base.pyi,sha256=PLTWaSsib758s-xoTPQE43teS-vStf7nOoPLiq_evHg,325 +jedi/third_party/typeshed/stdlib/3/email/mime/image.pyi,sha256=DpDOxmW7k3nF8WzPhaeLLyYWNeYIQgW1v5OU7v3U4_E,502 +jedi/third_party/typeshed/stdlib/3/email/mime/message.pyi,sha256=BbZ7ULwq3vT6-MPS2QFmkIuWqxgC9vDLWD9x0zv9oXk,292 +jedi/third_party/typeshed/stdlib/3/email/mime/multipart.pyi,sha256=CTHQJbuC-ZAgPKymxr62DjsslnF4P45RZQ_a17481UA,507 +jedi/third_party/typeshed/stdlib/3/email/mime/nonmultipart.pyi,sha256=gAN-hOmjxz3lcG8FK3lbvlEOoz_yhG9rKIslq3WLil4,76 +jedi/third_party/typeshed/stdlib/3/email/mime/text.pyi,sha256=uqvOSr2SoHrbTcLikt1P7Gm0L9sjyy6c5TeuX1cbvBY,297 +jedi/third_party/typeshed/stdlib/3/email/parser.pyi,sha256=p-CbSumd_5JYzgkS81GOZofpQuameh6ajoLtJifdpyQ,1328 +jedi/third_party/typeshed/stdlib/3/email/policy.pyi,sha256=sFF7jOYVcLw_gIS27K7CxMFbz62BbWXM_qVPQQakyx8,2159 +jedi/third_party/typeshed/stdlib/3/email/utils.pyi,sha256=V-8KVirBmcrTekDW6TW7gqkV3bPCh2l9RJKtGHCyg5M,1832 +jedi/third_party/typeshed/stdlib/3/encodings/__init__.pyi,sha256=q95Eqw-U2YICiPawMyarXy1iWCXsz1wV_793ZSg_4ek,184 +jedi/third_party/typeshed/stdlib/3/encodings/utf_8.pyi,sha256=QvCf0jkCM3g7fA1rzv7IB8onY_ciFLPaySvkBQ95aOM,561 +jedi/third_party/typeshed/stdlib/3/enum.pyi,sha256=iY_vEF2WHiMhmgZTtBGnE_XdzdPx90709cxW0BP9o4M,2643 +jedi/third_party/typeshed/stdlib/3/faulthandler.pyi,sha256=jn6gMdF0GEZljfFTc1splgef8zIo99X1H44qgWxU8sE,644 +jedi/third_party/typeshed/stdlib/3/fcntl.pyi,sha256=YNY4OFCzwUNVzqaocJgNzrS7kwsRrKCzFmXfv9ukHUc,2244 +jedi/third_party/typeshed/stdlib/3/fnmatch.pyi,sha256=_sH2M1wxuUFryRYDO_K2eXtxxJPSRHHRRuz2nzUqf6Y,257 +jedi/third_party/typeshed/stdlib/3/functools.pyi,sha256=twLVNCB5Heu0Y1yfJbaDdFbDCP0kX9PYYg4vumV3iKI,4613 +jedi/third_party/typeshed/stdlib/3/gc.pyi,sha256=mfh-9jtsLPOaFLuBwkRgt1rPjpuRf6GelyMb8PJjokc,1135 +jedi/third_party/typeshed/stdlib/3/getopt.pyi,sha256=QUWgEAjkZEgYEDX83HNFzlLqoM7tWZfu35croNXpYUk,352 +jedi/third_party/typeshed/stdlib/3/getpass.pyi,sha256=VZjU7IEeEVtL8nHUcWRbbOkNYAegfSRiTDc5QFY-BuM,178 +jedi/third_party/typeshed/stdlib/3/gettext.pyi,sha256=hI05wMFAUpQqs9xphkmJdM2UbLKcvQ9--PNPwOaPQiQ,3208 +jedi/third_party/typeshed/stdlib/3/glob.pyi,sha256=l-vPtsxqdYR6852YtsLh8m9dS4g2OvnU2hDUPHnwRw4,442 +jedi/third_party/typeshed/stdlib/3/gzip.pyi,sha256=hxBMzBPUEElN-Q0CyO7__tQ8cOH0kboT5Oqqah3HLms,2909 +jedi/third_party/typeshed/stdlib/3/hashlib.pyi,sha256=a1LtNJGGukXpq3P09xQvoAfU9aDsTR3nZ09T7EyFOL8,4195 +jedi/third_party/typeshed/stdlib/3/heapq.pyi,sha256=ZXIM49YLZnLiEMSQlWt9uUzX6fxgNXH5HIQwBVhcneI,798 +jedi/third_party/typeshed/stdlib/3/html/__init__.pyi,sha256=qKsbjN2OJn_AoUr9a4zdFC8juUG9ii6rqYp3EQTSG-Q,122 +jedi/third_party/typeshed/stdlib/3/html/entities.pyi,sha256=ap6jI6Fw355WC0vSd-WGc957p_KpAJDGONUeAlItYzI,136 +jedi/third_party/typeshed/stdlib/3/html/parser.pyi,sha256=odnTynZ-Cz1KlNCzxR_nl3NY_vEHlg1iha4DGTHCX0Q,984 +jedi/third_party/typeshed/stdlib/3/http/__init__.pyi,sha256=bE3i99Lkeat-Seo0TTAm-dDauYTTNtih512Tt6ij9G8,1940 +jedi/third_party/typeshed/stdlib/3/http/client.pyi,sha256=N-CIvhqvj7MhnMDK-rhyuH5FgsBQCjsTcuP230LsH7M,6034 +jedi/third_party/typeshed/stdlib/3/http/cookiejar.pyi,sha256=vIs7US67GiRUDVmq_qdQ9a48s4Iv73h4_S6D8OYrNcA,4991 +jedi/third_party/typeshed/stdlib/3/http/cookies.pyi,sha256=pfXrzKusaD-sxZsv92P84Vw0sgoGrE-KKhiuXm15vz0,1364 +jedi/third_party/typeshed/stdlib/3/http/server.pyi,sha256=C9LgOZw5ZoAYzbXN-y9BXdS31iaEiwwo-QpynkLS_QM,3036 +jedi/third_party/typeshed/stdlib/3/imp.pyi,sha256=_zd93_282PmC8cqim3FPUsFeYrIl8-dp_WFab_v7nac,2343 +jedi/third_party/typeshed/stdlib/3/importlib/__init__.pyi,sha256=xuq-05qRDyIRBetquMX_JB1dMc_BLme0WAZ3MpggjPQ,571 +jedi/third_party/typeshed/stdlib/3/importlib/abc.pyi,sha256=polXx3wt7y2EQYqfND7eD1OA0hMt1ucG_vQoACtvq4U,3960 +jedi/third_party/typeshed/stdlib/3/importlib/machinery.pyi,sha256=FXq0GgiGYrJRtZKN76mlRVRuum88bdiq_k_ZuF08I18,4006 +jedi/third_party/typeshed/stdlib/3/importlib/metadata.pyi,sha256=e-uCY4Q7Su-dTeeUl-sGUF9F7-70Vd2hf_CQ2Y0IT9k,3786 +jedi/third_party/typeshed/stdlib/3/importlib/resources.pyi,sha256=zYjYz5gFHS1eT5roJ2glvvqhVwjJBkLdxkMYUj3FhJo,1026 +jedi/third_party/typeshed/stdlib/3/importlib/util.pyi,sha256=bqqXx43SyHCCERNe7jA-i6MjfUdyPpQtimtuqqTKF2M,1782 +jedi/third_party/typeshed/stdlib/3/inspect.pyi,sha256=yYThFqYLPUJToz4Fz9LYxI-ZJ89k94wqpvhUoK1K-QA,9929 +jedi/third_party/typeshed/stdlib/3/io.pyi,sha256=OQHQh77AvF1wqIqeqUPiHDO9nKgRX45O6ZgOrQap7xE,7499 +jedi/third_party/typeshed/stdlib/3/ipaddress.pyi,sha256=74Fj1yj7-tgOJeSSR8LKvfqIUyY1UzTQN6q_lrUcgpU,5252 +jedi/third_party/typeshed/stdlib/3/itertools.pyi,sha256=Up21RC9zUGPLkg3vHuuQ7iSWpphBCeWGBH0Txn1mUk4,4524 +jedi/third_party/typeshed/stdlib/3/json/__init__.pyi,sha256=dWEcInSJdvZapNjd2VvnksUHKyj4_AVSVJasp7uqFBw,1919 +jedi/third_party/typeshed/stdlib/3/json/decoder.pyi,sha256=85tOPFvXraUsmSgW1Sn7FPqKAxSWwPZwjAZ7Aa6CMFM,1090 +jedi/third_party/typeshed/stdlib/3/json/encoder.pyi,sha256=FIZVowFsNCGiAAKqnohbOQkmFKsvujvwkzk2qu0OCSg,779 +jedi/third_party/typeshed/stdlib/3/json/tool.pyi,sha256=d4f22QGwpb1ZtDk-1Sn72ftvo4incC5E2JAikmjzfJI,24 +jedi/third_party/typeshed/stdlib/3/lzma.pyi,sha256=t8jPcnq6o5L1t3nKdw_dmeFFovwCAkQZnKnMltEypTc,4580 +jedi/third_party/typeshed/stdlib/3/macurl2path.pyi,sha256=IjGXxi7XlrbJwIcpfitwuKQWR635yLOf6Sh3N1o25Do,225 +jedi/third_party/typeshed/stdlib/3/multiprocessing/__init__.pyi,sha256=J3pDzfv93b1AS4hf69jhyonvhWmrj1eYbCcnApCWlUI,3802 +jedi/third_party/typeshed/stdlib/3/multiprocessing/connection.pyi,sha256=ReCch6MGZ-m4TSo6bSFHUv9byxu79g2GP7chnYmhD8w,2602 +jedi/third_party/typeshed/stdlib/3/multiprocessing/context.pyi,sha256=LQireotdnvV1vrojP-BTgtSyAZpius2NGrbl1kbUpmc,6698 +jedi/third_party/typeshed/stdlib/3/multiprocessing/dummy/__init__.pyi,sha256=0n5irDRx6L6Q8NlRCxq9w-Dlk4DhJhiGxbFiFTPZSgM,1572 +jedi/third_party/typeshed/stdlib/3/multiprocessing/dummy/connection.pyi,sha256=1h-QyO57HTVQN_OiJjuiNp9QSEkuXKZDdR-jrhasw44,1431 +jedi/third_party/typeshed/stdlib/3/multiprocessing/managers.pyi,sha256=_owX_1Pum7mnYDXFKtk72T8KHfckdNl_hg8FT5AUsoQ,4584 +jedi/third_party/typeshed/stdlib/3/multiprocessing/pool.pyi,sha256=Zz1Lx-lpsQrJHgsAS6xqCUqsh2F-E6lP0Iu_Vc4RXA4,3224 +jedi/third_party/typeshed/stdlib/3/multiprocessing/process.pyi,sha256=Eupk7EcZSXHEe_LcXKt_uY_oYt5ZGpwFoIVVVAiCq78,1143 +jedi/third_party/typeshed/stdlib/3/multiprocessing/queues.pyi,sha256=fXQ9gQc8wqYmEgwBCK6bpaTLUR-tPGAZxtADAw6OdUw,1288 +jedi/third_party/typeshed/stdlib/3/multiprocessing/shared_memory.pyi,sha256=oZEZSEATdR5PqJEtyd6E3ZWsSsM_mjvOW_CRhVjP1JM,1302 +jedi/third_party/typeshed/stdlib/3/multiprocessing/sharedctypes.pyi,sha256=qg970qF7Qy0nnIWPnqV3q0Sycxx0dZAV60Fa88oUyOM,1526 +jedi/third_party/typeshed/stdlib/3/multiprocessing/spawn.pyi,sha256=cMRcm2n3hnOszIByMFkG3H7PatT472zWi-g-s8ZdkPk,690 +jedi/third_party/typeshed/stdlib/3/multiprocessing/synchronize.pyi,sha256=ZUPVL36s3ANf4divriLWpgHYFBva09_09IK7hORTSns,1799 +jedi/third_party/typeshed/stdlib/3/nntplib.pyi,sha256=KSCji19ptgFnr26zKlzgLulK7e0LSfPLZHLBSMKYN54,4325 +jedi/third_party/typeshed/stdlib/3/ntpath.pyi,sha256=MZG5ucT7dEvAJYFsJHN7SHM2Frs4Nyf3eLm6VqhUAX0,4721 +jedi/third_party/typeshed/stdlib/3/nturl2path.pyi,sha256=E4_g6cF1KbaY3WxuH-K0-fdoY_Awea4D2Q0hQCFf3pQ,76 +jedi/third_party/typeshed/stdlib/3/os/__init__.pyi,sha256=sqb9_zZjeE44gdDnephPQIj8rzLZU8WIuVAj13qcdu4,28846 +jedi/third_party/typeshed/stdlib/3/os/path.pyi,sha256=MZG5ucT7dEvAJYFsJHN7SHM2Frs4Nyf3eLm6VqhUAX0,4721 +jedi/third_party/typeshed/stdlib/3/pathlib.pyi,sha256=WxnASz0QaegMLAzqln-6G529DGVub-Jg8D8lyWGjGSM,6899 +jedi/third_party/typeshed/stdlib/3/pipes.pyi,sha256=cgke6nDBXMhLkpcUUsV_y61rc2ujKCydFa6kl3oYVdU,518 +jedi/third_party/typeshed/stdlib/3/platform.pyi,sha256=_a4cugd9uoy8pzW0KE0U0feB2O5k4Co1X_VeKHbgbGQ,2272 +jedi/third_party/typeshed/stdlib/3/posix.pyi,sha256=YNT-Sw-8HFLKnXeCg2GRN97r0K6piolWHPuiD-qPK6k,2810 +jedi/third_party/typeshed/stdlib/3/posixpath.pyi,sha256=MZG5ucT7dEvAJYFsJHN7SHM2Frs4Nyf3eLm6VqhUAX0,4721 +jedi/third_party/typeshed/stdlib/3/queue.pyi,sha256=W1aF5vLpBMTnl4ObekHw4B67WbhjoUSukrz3g6opa0k,1884 +jedi/third_party/typeshed/stdlib/3/random.pyi,sha256=G3NB5JMkfENo8v1u6X00c1-V2HEX4W9fRqcNibNdGNc,3901 +jedi/third_party/typeshed/stdlib/3/re.pyi,sha256=E1wPk3W7Mp-0VSatzEl1WR058yXWhyau-vJfFsr4Ovo,4442 +jedi/third_party/typeshed/stdlib/3/reprlib.pyi,sha256=Hn5K7nvw9i4uwyrxH7BkSSbA8_na_24t6YJ8YleX0cQ,1228 +jedi/third_party/typeshed/stdlib/3/resource.pyi,sha256=Je96IzWSE5BZkL25TXCyg3wVbGO2zMHGrLjjqKgl-gY,1243 +jedi/third_party/typeshed/stdlib/3/runpy.pyi,sha256=kYMEMd1kHr9LmvQzt9-s4xXrAAth_upzRtxbkXtl_r8,746 +jedi/third_party/typeshed/stdlib/3/secrets.pyi,sha256=38xdvca6iVqHllAA8pfiRXMnSFEZ_AakTCHjVjksHIo,467 +jedi/third_party/typeshed/stdlib/3/selectors.pyi,sha256=5Mg36Zke6M8UL4t91QuDDY5LX6kHwgluUwr4zGSezBk,3644 +jedi/third_party/typeshed/stdlib/3/shelve.pyi,sha256=9NdL2QZYd9Wtqsz991GfroFbZ553lesYsKujKZCrPbI,1605 +jedi/third_party/typeshed/stdlib/3/shlex.pyi,sha256=pVtr3Hc4_Wx7qgcfQPf6DepYemtlrQaZ58l7jckycVI,1325 +jedi/third_party/typeshed/stdlib/3/signal.pyi,sha256=aFVl8Op3n4JAQhj_jEta45aGGmXQciIRswTbmx5VJ68,5209 +jedi/third_party/typeshed/stdlib/3/smtplib.pyi,sha256=DobAN5UFsK41cOSl_hPqRBQskhdlTxUPTbJBH3iH7-k,5606 +jedi/third_party/typeshed/stdlib/3/socketserver.pyi,sha256=7ASKFWF67wQOePi5HR3RqEuAAb2xqkf1YrRhlmNS4RQ,5367 +jedi/third_party/typeshed/stdlib/3/spwd.pyi,sha256=aAmkS56-90q7hfKMkpAmUifbEQy32e2c-gW_KVHTEn8,310 +jedi/third_party/typeshed/stdlib/3/sre_constants.pyi,sha256=j5xp3zUP6iox81-rrMQSi6OqC7s99PXncyL6YCjwMAc,3348 +jedi/third_party/typeshed/stdlib/3/sre_parse.pyi,sha256=JYDEHNQG-Tw_Bwj77fpG7I-7bIk2skV2eMjIQ7ggbcI,3820 +jedi/third_party/typeshed/stdlib/3/stat.pyi,sha256=WYG0DONENxta5efsANvcWTQiy_kkB5NjSYl7oJBgrv8,1805 +jedi/third_party/typeshed/stdlib/3/statistics.pyi,sha256=nVUX7Tcg6mZeuTzdOWCDLH-jULHlCCOf-s0RnPhK0K4,3149 +jedi/third_party/typeshed/stdlib/3/string.pyi,sha256=CNCZS22ux7JIYv0mm9KGJ1sPWk4-ziwN13SKAC0u36M,1423 +jedi/third_party/typeshed/stdlib/3/subprocess.pyi,sha256=aVTeOMtFq4uJMnSXkZG9YA8jjXdhxxY_yjo4e9mLMqI,34320 +jedi/third_party/typeshed/stdlib/3/symbol.pyi,sha256=6iOqBcaia5f9UZcXxZaDy9qBA4Boe35Uy4WxQmhFWcg,1383 +jedi/third_party/typeshed/stdlib/3/sys.pyi,sha256=7WyG6k19z77CBdUUkNVQiAR_YxpKCamnsxjsFX_06MU,6337 +jedi/third_party/typeshed/stdlib/3/tempfile.pyi,sha256=FyzDCJDCZvkXsxr_0arm8Q3vMKgWO58vw4LPl8ZghT0,11371 +jedi/third_party/typeshed/stdlib/3/textwrap.pyi,sha256=SA66hWuD6KU0BfK8EUpEwnm8tKgyWbYcHJVaj_qXdzM,3234 +jedi/third_party/typeshed/stdlib/3/tkinter/__init__.pyi,sha256=zXaLTPom1qPFajA0dc2Ic0_43bCd0gQqvUsu1NhtsvE,110919 +jedi/third_party/typeshed/stdlib/3/tkinter/commondialog.pyi,sha256=GXUxL-Y2G2Y3DgfMNMNpCUzuRnZ746Iij-R56ZXCu6E,277 +jedi/third_party/typeshed/stdlib/3/tkinter/constants.pyi,sha256=WfBSeKTB52NfPVFdsdaRrnsmDOvT3FoP8j4QK1T3yxU,1886 +jedi/third_party/typeshed/stdlib/3/tkinter/dialog.pyi,sha256=SqRt2lN2RMOtj5B9Q1h73xcxbVJTfZ0bYzfgH0nnNpY,291 +jedi/third_party/typeshed/stdlib/3/tkinter/filedialog.pyi,sha256=xM4DePZxB81ctUBT5Wp6hxfQAQAXqunHfv5idcVx71g,2247 +jedi/third_party/typeshed/stdlib/3/tkinter/font.pyi,sha256=HVeakp_l7Vqh6sbakpZ6XlilT2oIQhQA5AajfLhANtY,3812 +jedi/third_party/typeshed/stdlib/3/tkinter/messagebox.pyi,sha256=Q0-rK5wXBbbzvx4Mpf92dITPgL7Lwjw8t4CLfpYV0hw,1150 +jedi/third_party/typeshed/stdlib/3/tkinter/ttk.pyi,sha256=f5W5gEAauDlNzBBJ7e43tuyu9_SzdA4rWxRhhOHlGvE,43748 +jedi/third_party/typeshed/stdlib/3/tokenize.pyi,sha256=MKMkZ5E-aZIObWJom5U1-4JcKMEUuykkKDNs1tcko2M,3110 +jedi/third_party/typeshed/stdlib/3/tracemalloc.pyi,sha256=VqPd3kiHw2LM5yb0YDtj_Rx-kSlOUon2W3cSu1d49KY,2795 +jedi/third_party/typeshed/stdlib/3/types.pyi,sha256=KsTXLa4cimtNz6HGMOn6whGh07tR0NJkc1_PabY6l3A,11027 +jedi/third_party/typeshed/stdlib/3/typing.pyi,sha256=lh5-KS3cFrYby3k1Etdksa6_IZBaTd0V-8o3aV_ztcc,25040 +jedi/third_party/typeshed/stdlib/3/unittest/__init__.pyi,sha256=mot-stW02w3PxX7Q8XcXM-wNPkyICkUEcthaTuzIMh4,387 +jedi/third_party/typeshed/stdlib/3/unittest/async_case.pyi,sha256=8FL7FHo9f5ZAO1veWlhC6r1WXpC4JBSZ9jAGr5VBrhs,372 +jedi/third_party/typeshed/stdlib/3/unittest/case.pyi,sha256=h5wnJUGhA_Jw3GstvFcaWX5jXfFnXnZcODW3nLzfP7o,12483 +jedi/third_party/typeshed/stdlib/3/unittest/loader.pyi,sha256=8wcy7fsfMDuHjVSNzD6bwmPmnUGiNG0PTLz0HpLjDWU,2067 +jedi/third_party/typeshed/stdlib/3/unittest/main.pyi,sha256=TM86Ac-1qF3P9JogJ2rYwE3E4dKi7ke1G8RwLeBEiaA,1691 +jedi/third_party/typeshed/stdlib/3/unittest/mock.pyi,sha256=dXwIB0Naj-0TjlamsKQcrlNRThPHW3nvBHtUt28nR6A,14809 +jedi/third_party/typeshed/stdlib/3/unittest/result.pyi,sha256=v11JXslVniIzkCYnUnalSJ2ndJc4I-Bxt8_Mie_6teI,1859 +jedi/third_party/typeshed/stdlib/3/unittest/runner.pyi,sha256=l-eVrz13ec-okAuc0MGdYbo192H2ep3adVycY6dnUYE,1339 +jedi/third_party/typeshed/stdlib/3/unittest/signals.pyi,sha256=uL7z9v81sng6PtI-FqweH7jef7o41fQD3AL8WoIxuFU,402 +jedi/third_party/typeshed/stdlib/3/unittest/suite.pyi,sha256=YPg_NeVuWOBeQCdI_NHPFyRDhsLy6E0rgmH96jNyj58,892 +jedi/third_party/typeshed/stdlib/3/unittest/util.pyi,sha256=rs8aUKwYgAQfqWYmsy-OEMdcNgeBOMktmf-wmFjd67c,906 +jedi/third_party/typeshed/stdlib/3/urllib/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/stdlib/3/urllib/error.pyi,sha256=9VToSt5hDZo_aKbL2MRVwQ019iJ9LFmlaJg5hPOxTsA,391 +jedi/third_party/typeshed/stdlib/3/urllib/parse.pyi,sha256=yj_xX2qv1FoEtJJOk7naDIRVxuGKKwuTWolsztAekG4,5436 +jedi/third_party/typeshed/stdlib/3/urllib/request.pyi,sha256=-tFU7MccfufD8Iss9KyLS0uoWYmX_q3lKeqZJf_x6AI,15581 +jedi/third_party/typeshed/stdlib/3/urllib/response.pyi,sha256=lFv0RWV2D9QrkSrXlCD_Mx9iKdCz6TkOuTy6BA4bdcE,2107 +jedi/third_party/typeshed/stdlib/3/urllib/robotparser.pyi,sha256=vTWHNtcRWcgDk3DwlPv2ULB913AI8l6JpbdMAaTnlJc,704 +jedi/third_party/typeshed/stdlib/3/venv/__init__.pyi,sha256=f_2SVkhePBtzrvKVcVVyS79VKHy6V37E_99ToJRmnXk,2967 +jedi/third_party/typeshed/stdlib/3/winreg.pyi,sha256=Yz2wG-34BwXWx4JaU2TqPjHlLm_eiPoALQm97KGcI2w,3779 +jedi/third_party/typeshed/stdlib/3/xmlrpc/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/stdlib/3/xmlrpc/client.pyi,sha256=iak5sIIqou0OLODL8DPFbpAAFO3_k8SmIHmgLvPYcbE,12285 +jedi/third_party/typeshed/stdlib/3/xmlrpc/server.pyi,sha256=OguOW818SOafYK9lArrfOt7Nw7NgfaGcx9ERt1rBxWo,6810 +jedi/third_party/typeshed/stdlib/3/xxlimited.pyi,sha256=IeL0poSgoE8vvdo93lscYL9hdc2xqfSgnzzb1iQ6hgc,211 +jedi/third_party/typeshed/stdlib/3/zipapp.pyi,sha256=gjXsMJc9OrQhFpRaUVZrrN7ACwo-oMr54g0KTKx0zIQ,678 +jedi/third_party/typeshed/third_party/2/OpenSSL/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/third_party/2/OpenSSL/crypto.pyi,sha256=N5TmTvFyT5KzQsoHdU7x2nU_G1Kf5TTQF1mFK-HBwMk,7588 +jedi/third_party/typeshed/third_party/2/concurrent/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/third_party/2/concurrent/futures/__init__.pyi,sha256=zAZn69ohscdtL7rotnHyxSu7jzhVMw005ANG7J09apw,436 +jedi/third_party/typeshed/third_party/2/concurrent/futures/_base.pyi,sha256=rPSXJhb-LKP8qcFX9YQou0wCs33t6a3_hgfdD1zO278,3701 +jedi/third_party/typeshed/third_party/2/concurrent/futures/process.pyi,sha256=rGmQHTSHwVsXVPxwu4R1efuU0b8D1gqAEG9N_XH3vr8,195 +jedi/third_party/typeshed/third_party/2/concurrent/futures/thread.pyi,sha256=jEiKlhYG3p-MOOEpWFeYHNOKzK9vL7eAYEe-bI2V4XY,574 +jedi/third_party/typeshed/third_party/2/enum.pyi,sha256=iY_vEF2WHiMhmgZTtBGnE_XdzdPx90709cxW0BP9o4M,2643 +jedi/third_party/typeshed/third_party/2/fb303/FacebookService.pyi,sha256=ypViThxa9-z-_FsAfoHiXj9175tTBfqK2Vf2-8H7EL0,8692 +jedi/third_party/typeshed/third_party/2/fb303/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/third_party/2/ipaddress.pyi,sha256=pkTNeeQfeOrdmRZd3aZanIWk4vgyW8bbDOfqrLrZvvM,5107 +jedi/third_party/typeshed/third_party/2/kazoo/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/third_party/2/kazoo/client.pyi,sha256=fUPUW9-5VQibevcTDbpkhTkorz9JNyBfw6e03lrKgxs,3400 +jedi/third_party/typeshed/third_party/2/kazoo/exceptions.pyi,sha256=7DhQ3xMt63lVinoWQv0vwI6VmG2IfNPlMpLRGu_gq-s,2054 +jedi/third_party/typeshed/third_party/2/kazoo/recipe/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/third_party/2/kazoo/recipe/watchers.pyi,sha256=Pxdwrx10R_orsLVINsoCsy-TL6a96EumRsENf2G11BE,551 +jedi/third_party/typeshed/third_party/2/pathlib2.pyi,sha256=Q9vqVVrQppWLvGeGATrn66__LyzByFxgWQ0maNUpYgk,4283 +jedi/third_party/typeshed/third_party/2/pymssql.pyi,sha256=vJAY2YPlF2arXuP2Yg05pFN8onxIqonFQD5uOqejAQY,1685 +jedi/third_party/typeshed/third_party/2/routes/__init__.pyi,sha256=JsiOugLeCiWHyhEHnCrs-i0H288m2ZaDpocEKY80qzE,364 +jedi/third_party/typeshed/third_party/2/routes/mapper.pyi,sha256=oBumS7A80xLzb_YA8ZEUnsqm5YjqE91r8m-9cw0lLlM,2362 +jedi/third_party/typeshed/third_party/2/routes/util.pyi,sha256=U9AvEa_p8Q1eq1zmIMKpGMjYqFbd9YSvTbv7W1Ez49Y,576 +jedi/third_party/typeshed/third_party/2/scribe/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/third_party/2/scribe/scribe.pyi,sha256=2Yexj6Ymfe-Kj4_jigeicxrB2NEZryKUOtAqNN8Mm2s,1216 +jedi/third_party/typeshed/third_party/2/scribe/ttypes.pyi,sha256=Ub8_sHFFbDuMouo-wUU4bkr-WhUpSOVLBJ6zb9amqBs,383 +jedi/third_party/typeshed/third_party/2/six/__init__.pyi,sha256=L7AgaYaMdkiwH6Psg5nWG0MIvZ8gX4twwJ-Glf8zJqM,4390 +jedi/third_party/typeshed/third_party/2/six/moves/BaseHTTPServer.pyi,sha256=tGipj5ccgHt3EnzbxpPyQGUVnvu7RltrUOqgqWNGwpw,29 +jedi/third_party/typeshed/third_party/2/six/moves/CGIHTTPServer.pyi,sha256=omAocPqXteLJkGtdobdZjdzXynzCtn0jCFwBBlc3LUc,28 +jedi/third_party/typeshed/third_party/2/six/moves/SimpleHTTPServer.pyi,sha256=nC0fjp9wrhSnJMI8N2QD7ovWp1CW-dJWLyaV4K_Ql54,31 +jedi/third_party/typeshed/third_party/2/six/moves/__init__.pyi,sha256=6ipHwbeU3E61Sk4ZTAvfGuW7gr17r6zDZlINNDf2_4k,2105 +jedi/third_party/typeshed/third_party/2/six/moves/_dummy_thread.pyi,sha256=Va4LPdV5kK4luB-1NlkmycnVpXD4kKeYFD5QmmNqE8U,27 +jedi/third_party/typeshed/third_party/2/six/moves/_thread.pyi,sha256=9194lgQXs2W3sR00kP7Zn9gx9WWl0C49GEsbvzshDy0,21 +jedi/third_party/typeshed/third_party/2/six/moves/cPickle.pyi,sha256=hS7yIew9WYdHI_b6XwIlHAfRFRpUTKj7IokSZcpJ4PY,22 +jedi/third_party/typeshed/third_party/2/six/moves/collections_abc.pyi,sha256=Fcq1sut9OLQ824MQ69luYDJSzEB0LroJqTsXWgWGcDo,26 +jedi/third_party/typeshed/third_party/2/six/moves/configparser.pyi,sha256=r3G3JXE9Yo34AASn9AoNcielq9KuyQ3xrtElpnhRJYc,27 +jedi/third_party/typeshed/third_party/2/six/moves/email_mime_base.pyi,sha256=WcWEleCKHROrfdXpRuKABrT_Va1hx90NY_kxYeul3Sk,30 +jedi/third_party/typeshed/third_party/2/six/moves/email_mime_multipart.pyi,sha256=HRKWFU9qh95-mEE22_2NzEKL6lx7ynvhcfHjUcYWuZ8,35 +jedi/third_party/typeshed/third_party/2/six/moves/email_mime_nonmultipart.pyi,sha256=n5hD7R_rktJj3hiHYzEqr3CJCHSW4ikfObKHmUrXBw0,38 +jedi/third_party/typeshed/third_party/2/six/moves/email_mime_text.pyi,sha256=55VzBSQimrZf6UgotoXMiJDvqbKXly6-E_IXo6Ix22c,29 +jedi/third_party/typeshed/third_party/2/six/moves/html_entities.pyi,sha256=I0BI00vvC21L_BgnCbpjio-s1jqF4ARTt-qaol7mGig,29 +jedi/third_party/typeshed/third_party/2/six/moves/html_parser.pyi,sha256=hivJeBkqiAIZ6mvO1v4tOC9Mg6MzMR08P9tzsODdul4,25 +jedi/third_party/typeshed/third_party/2/six/moves/http_client.pyi,sha256=P8tgtt5Icp-ksHij6yPb_zuKk7ckcAHt_HM3aO0WrSM,22 +jedi/third_party/typeshed/third_party/2/six/moves/http_cookiejar.pyi,sha256=HUlF3MydQRX2Vv5G6KtN_Q6iCS48LBDggoDuPbEQUCc,24 +jedi/third_party/typeshed/third_party/2/six/moves/http_cookies.pyi,sha256=itzb5D5Mp66bx7hjyI3u-hri4h9jgqVzZyMfz4xNu2k,21 +jedi/third_party/typeshed/third_party/2/six/moves/queue.pyi,sha256=6Llng-UlZW_9HSWFgmIgW2q9YhaZ-Nzh2zJ8hkqoaZA,20 +jedi/third_party/typeshed/third_party/2/six/moves/reprlib.pyi,sha256=SWZYhGRU6moFAVBo5dUFUB9kyY6TO_kgrIqxzqDQ3C0,19 +jedi/third_party/typeshed/third_party/2/six/moves/socketserver.pyi,sha256=oeRnmecMYQfMmwRFVydatyCfs_HLrJYZvf5p7nm_ryE,27 +jedi/third_party/typeshed/third_party/2/six/moves/urllib/__init__.pyi,sha256=F_1V8NcR4jGkws85IUurYLi4JnGh7_HttdVHvj8cQZM,217 +jedi/third_party/typeshed/third_party/2/six/moves/urllib/error.pyi,sha256=73JoWrqvixKdnpT83GQ-6DsBc0gxqFC_xXN009qtCi4,129 +jedi/third_party/typeshed/third_party/2/six/moves/urllib/parse.pyi,sha256=Tv-Yji1tm-ikeaeLPXCcp1YVUa8y296SNV7YVupJtNg,744 +jedi/third_party/typeshed/third_party/2/six/moves/urllib/request.pyi,sha256=Z-EBXRE0CyHR8oOekYW6bl_w--YlvIVxkdbfcxtNKWQ,1453 +jedi/third_party/typeshed/third_party/2/six/moves/urllib/response.pyi,sha256=iSs21E6BAaB6P9CQngcuzBsGnGa9XN8P7P8GO2xYWjI,114 +jedi/third_party/typeshed/third_party/2/six/moves/urllib/robotparser.pyi,sha256=C8_E9lApZyMQpHflnHpYeyAgvQ_vFSuKon9Gl5DM3Q0,59 +jedi/third_party/typeshed/third_party/2/six/moves/urllib_error.pyi,sha256=7RTGNFpeUX5KEap9vyjA1Xc3Twfkut431Nu5290po1U,28 +jedi/third_party/typeshed/third_party/2/six/moves/urllib_parse.pyi,sha256=Q3BVGITL1UwlTmBsFD9iLf2pggJgTE5bG32QANdkMvo,28 +jedi/third_party/typeshed/third_party/2/six/moves/urllib_request.pyi,sha256=8WFe7ycArSuM6wJfgcXWLDRKNsymd0UlxWlflszb2yk,30 +jedi/third_party/typeshed/third_party/2/six/moves/urllib_response.pyi,sha256=dokFMleMVEVFVxBgSkrcn4f4yM7RhR3zkk0iDQGOC_U,31 +jedi/third_party/typeshed/third_party/2/six/moves/urllib_robotparser.pyi,sha256=8c26GW8MTI6cxDTD65N_18NRQcqWY4P9v8mrQm8c-oI,26 +jedi/third_party/typeshed/third_party/2/six/moves/xmlrpc_client.pyi,sha256=hL_FNiBles8aoJq0XQLbEHvWX1AedYbQopgRVQlbCEI,24 +jedi/third_party/typeshed/third_party/2/tornado/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/third_party/2/tornado/concurrent.pyi,sha256=THaUUH9XW_opc-G528IhDDrf-cOBVx9ZJAQKAgoqr34,1016 +jedi/third_party/typeshed/third_party/2/tornado/gen.pyi,sha256=WPudybrtny-geS69g62Hkv-NApwTukIA8BrPCn5QzVg,2785 +jedi/third_party/typeshed/third_party/2/tornado/httpclient.pyi,sha256=FDo5peSsvOJFAfIxTgbvVqxk4zfsTxFYXcx7GEnDus4,3219 +jedi/third_party/typeshed/third_party/2/tornado/httpserver.pyi,sha256=YHoHZwbU43MoKk6EBgiWzu7OwD6jQTTdzjrIg4EbEac,1617 +jedi/third_party/typeshed/third_party/2/tornado/httputil.pyi,sha256=Ypkdy7WEucueAK8huNsEbp-SG5RoCiLuxzY2VFfYlbo,2853 +jedi/third_party/typeshed/third_party/2/tornado/ioloop.pyi,sha256=pO0QehC4_KN3eVtj7lnt4Z5PoCkzUT5CiTL6XxWsvyk,2798 +jedi/third_party/typeshed/third_party/2/tornado/locks.pyi,sha256=6LDrW8nuBZLsAe90h1UYs92k_41UjcxE8vpEhc_LBzM,1279 +jedi/third_party/typeshed/third_party/2/tornado/netutil.pyi,sha256=0u8D481OqDC_ZuSTQjFzWCmDmPp2H-xJuP2hsA2J8_Y,1350 +jedi/third_party/typeshed/third_party/2/tornado/process.pyi,sha256=NsnEzaGJtchXD3_1d5-cZ-C2q-h9ocucfLvT575cbrg,662 +jedi/third_party/typeshed/third_party/2/tornado/tcpserver.pyi,sha256=1N0cm3HUZlN3dfsgzrdYTNMEN3nvGu7r2UsE7WuJQ9Y,556 +jedi/third_party/typeshed/third_party/2/tornado/testing.pyi,sha256=L25CKrPr6bQA9NTQo5bDHfttn5WSAEwlky9y3vIINgo,1865 +jedi/third_party/typeshed/third_party/2/tornado/util.pyi,sha256=8eT1IqgZQAG2ffDTCdkAufpPxgtarCEPwbDua2Nuuqg,1072 +jedi/third_party/typeshed/third_party/2/tornado/web.pyi,sha256=3D7aMJ7GBsCFu8dho6qlXOnkklJxcPC37100DvJd1Wc,8848 +jedi/third_party/typeshed/third_party/2and3/atomicwrites/__init__.pyi,sha256=2rvz0VcbCzK5PZ_z1EkWACfHYm2-Lr68oowyr4P3pp0,850 +jedi/third_party/typeshed/third_party/2and3/attr/__init__.pyi,sha256=VDc3e_MSaIhknnBqIv-6XNjmDYR7pK2WCKydzh6D1Pg,8149 +jedi/third_party/typeshed/third_party/2and3/attr/_version_info.pyi,sha256=x_M3L3WuB7r_ULXAWjx959udKQ4HLB8l-hsc1FDGNvk,209 +jedi/third_party/typeshed/third_party/2and3/attr/converters.pyi,sha256=Bk1t2LtjazrzPzOBElUr6xTXwm1bSRT9yqX87xrEdeQ,346 +jedi/third_party/typeshed/third_party/2and3/attr/exceptions.pyi,sha256=4zuaJyl2axxWbqnZgxo_2oTpPNbyowEw3A4hqV5PmAc,458 +jedi/third_party/typeshed/third_party/2and3/attr/filters.pyi,sha256=_Sm80jGySETX_Clzdkon5NHVjQWRl3Y3liQKZX1czXc,215 +jedi/third_party/typeshed/third_party/2and3/attr/validators.pyi,sha256=ycA4ztBcRNQeniNpAENIu4BHB1RAyHgbZpS-8r8mwvI,1814 +jedi/third_party/typeshed/third_party/2and3/backports/__init__.pyi,sha256=CKeVKOomLpAIZH2ipts0a2F9ugydH1mCvfIGlfvtEbc,109 +jedi/third_party/typeshed/third_party/2and3/backports/ssl_match_hostname.pyi,sha256=jAdLMMvdxdszZCIdVGxRZw7i5waIBqb4RqwketJqMr4,81 +jedi/third_party/typeshed/third_party/2and3/backports_abc.pyi,sha256=z8KwJUh51HVvBluyv29D8TM7-fSQNZf_WPXGvddzV3M,220 +jedi/third_party/typeshed/third_party/2and3/bleach/__init__.pyi,sha256=M2COlKhdPdtUHIMaOWtlGIVk5NGzag1OEEcXL0vtTo4,841 +jedi/third_party/typeshed/third_party/2and3/bleach/callbacks.pyi,sha256=Wpeg0LxBAend5GwNZVw0u6dKT4ZoicVDrUqsGqFJMFs,206 +jedi/third_party/typeshed/third_party/2and3/bleach/linkifier.pyi,sha256=vQleEwvJ8ucOi0oyBhRnOXj6dAGZe_2bHRHX8UqRFPA,978 +jedi/third_party/typeshed/third_party/2and3/bleach/sanitizer.pyi,sha256=1-c_WuvDFDEVINySuZEuaBq_RfYjf7UV74b9pq-15YQ,1148 +jedi/third_party/typeshed/third_party/2and3/bleach/utils.pyi,sha256=RSxKxwsKbaak2b50U5iFJsnkMGQDSEADBN8fqamTZGw,286 +jedi/third_party/typeshed/third_party/2and3/boto/__init__.pyi,sha256=daXgcCm5ezx16EpC83J04doV5fHQ1mZlLLCEgIltRZY,7183 +jedi/third_party/typeshed/third_party/2and3/boto/auth.pyi,sha256=H6ZtG0lKjp4WCcoUcNxecLo4CzDs1xCsUYmwI3yeSYg,4141 +jedi/third_party/typeshed/third_party/2and3/boto/auth_handler.pyi,sha256=7QChS7_s-Uit5ZNCr4FCtMRFRw7uOIJUUW3ISeAckXQ,251 +jedi/third_party/typeshed/third_party/2and3/boto/compat.pyi,sha256=v6PUjkCJ0tdXWWUz-0vx2vSFBbh0pmk3yfY3EFhLg_g,384 +jedi/third_party/typeshed/third_party/2and3/boto/connection.pyi,sha256=g7eTL8QplrrRBsQoGhIEEE4y4puNzPFQDuEDXq1o4bc,5679 +jedi/third_party/typeshed/third_party/2and3/boto/ec2/__init__.pyi,sha256=mJotwEhqx0uTOkp7ABAXmgruW432cmd_CLfyqwIdh7c,256 +jedi/third_party/typeshed/third_party/2and3/boto/elb/__init__.pyi,sha256=vIwGOPGo2wMeNQLxYnBTI5nq-35Q2bcZCyXmgK7WfGA,2629 +jedi/third_party/typeshed/third_party/2and3/boto/exception.pyi,sha256=pp1-GMr4VjeXHcmHJsiBvyiYC5I1MN6iHV_kclA1Mg8,4569 +jedi/third_party/typeshed/third_party/2and3/boto/kms/__init__.pyi,sha256=kblf2ubHjX319n44aDeqTcaZmNGcE1aCNVX1_eprqM8,157 +jedi/third_party/typeshed/third_party/2and3/boto/kms/exceptions.pyi,sha256=WKhoeQKeApIczWPJz3vC5A7K03AmbNAM4bnBuVuNVCw,829 +jedi/third_party/typeshed/third_party/2and3/boto/kms/layer1.pyi,sha256=OgMqR0jIffdQCX7bqbN8WybQrfrr6sXj9CGvNUC_cHA,3972 +jedi/third_party/typeshed/third_party/2and3/boto/plugin.pyi,sha256=rquBCp_gv_wSNNcWYijFPURhXO48ELzf5XItCuPv7nI,235 +jedi/third_party/typeshed/third_party/2and3/boto/regioninfo.pyi,sha256=QkiqbCcldisKPERnXU6fgKYlOHD4ojOWssGq87r2KMw,701 +jedi/third_party/typeshed/third_party/2and3/boto/s3/__init__.pyi,sha256=9lKx0pFB5gzA3515idyUeg6YF8zryDGfm1hWzOWlSbo,523 +jedi/third_party/typeshed/third_party/2and3/boto/s3/acl.pyi,sha256=01T9Ak5fcjt4TGf2vpCW-T0rS-miWRpcdKttcYBBZhk,1686 +jedi/third_party/typeshed/third_party/2and3/boto/s3/bucket.pyi,sha256=576y7ybFKFnWpxcFeYHsmCg1iXsy0fv3BST2eIbEDG0,8747 +jedi/third_party/typeshed/third_party/2and3/boto/s3/bucketlistresultset.pyi,sha256=3UER4BACEqM1ZpY6P3kefwwXuBP2TxD8UoqMhPbWtl0,2029 +jedi/third_party/typeshed/third_party/2and3/boto/s3/bucketlogging.pyi,sha256=3A-6a-73DgObYEzBbcUcknHJQyw4e3ihu0NDL4qRmGQ,400 +jedi/third_party/typeshed/third_party/2and3/boto/s3/connection.pyi,sha256=pkr9v7Bxd0pyu-IA_bkW-ueRCTb5uzed_UT8G_Frp-g,4829 +jedi/third_party/typeshed/third_party/2and3/boto/s3/cors.pyi,sha256=wrlgEU_VFds-ZtwzNG00aCwil2hZxRaSaBkMq6yGKo4,1088 +jedi/third_party/typeshed/third_party/2and3/boto/s3/deletemarker.pyi,sha256=T6AWOwNnW391UjVpzJ8tfbaOtM_hSaNa2wyJV02f5wQ,366 +jedi/third_party/typeshed/third_party/2and3/boto/s3/key.pyi,sha256=73WWtWTIbSJl_vHm8DqYCi2DCa7IuVsCq07I4TKtw-g,8317 +jedi/third_party/typeshed/third_party/2and3/boto/s3/keyfile.pyi,sha256=EcfBooXpPExAghucYEM6sxPVsp32wueqK_-5Kk-66rI,684 +jedi/third_party/typeshed/third_party/2and3/boto/s3/lifecycle.pyi,sha256=eevvO0p0sW2lQYzyxVGUgEe7yLDsnia-Tnqq0ibgwU4,1984 +jedi/third_party/typeshed/third_party/2and3/boto/s3/multidelete.pyi,sha256=GpNwfrASD9rWAfPhd1HoZf-6rBT2Lf3bbJyj_8fX4Kg,1075 +jedi/third_party/typeshed/third_party/2and3/boto/s3/multipart.pyi,sha256=G1A4EP8qX15z724aoTc-13cAZnuSl2V-2Gbp4GjlPjA,1997 +jedi/third_party/typeshed/third_party/2and3/boto/s3/prefix.pyi,sha256=UDLPJn1XiSFLXxd0RdeOMzUfzEyYUnCAiGPACntnkkI,324 +jedi/third_party/typeshed/third_party/2and3/boto/s3/tagging.pyi,sha256=JgNFPHTLi7TR0HbeasYlSnbVA-GzNXzYJ9H6sBmLz0c,748 +jedi/third_party/typeshed/third_party/2and3/boto/s3/user.pyi,sha256=nFbH3dOf5SfNoaTyNwkiu2q3ZR82iPYVr-LfXzUGzYg,362 +jedi/third_party/typeshed/third_party/2and3/boto/s3/website.pyi,sha256=O-9DSWitjeUMEkGVnCUzOQjEOuX94HDt_9bPgLEnkBw,2649 +jedi/third_party/typeshed/third_party/2and3/boto/utils.pyi,sha256=9iLNLIEyh6Z5rbXpdGef7V5eQ0jih7eSA5sEwgtxAOI,5876 +jedi/third_party/typeshed/third_party/2and3/cachetools/__init__.pyi,sha256=i7v_tIZJRWRJCFiADCwVOOp_t9Vo_aZp_cEL0lcOBJ8,254 +jedi/third_party/typeshed/third_party/2and3/cachetools/abc.pyi,sha256=IqWLRykYAB0tVeDGtxAv4hEBeotGQaxIPkrSMYWdlAg,182 +jedi/third_party/typeshed/third_party/2and3/cachetools/cache.pyi,sha256=xnBVZ9h9R56nhR4vWfH_MAXev9KnLLtEqLN4405zQww,712 +jedi/third_party/typeshed/third_party/2and3/cachetools/decorators.pyi,sha256=jao0eXl3rjETbO5_TUtpRNiHg83q6MqK-YPtshaldk4,605 +jedi/third_party/typeshed/third_party/2and3/cachetools/func.pyi,sha256=p4rD-rrZVbHD3x0HVrmQf2Sv6gCqDxqo5Ln-AGCnfSc,510 +jedi/third_party/typeshed/third_party/2and3/cachetools/lfu.pyi,sha256=hEuvwO-6VmvZdl2bkFWuP7yq6jmCeB2Z9HVPC-vC9Rg,632 +jedi/third_party/typeshed/third_party/2and3/cachetools/lru.pyi,sha256=1PkODHl1pNoGmDhZEUh0qvQQLDZKUJTfKPhjhuT73WU,607 +jedi/third_party/typeshed/third_party/2and3/cachetools/rr.pyi,sha256=f76mZgCsS7a8K44HFchyia1hAAAAxDIg6pdlVhfOQ-g,683 +jedi/third_party/typeshed/third_party/2and3/cachetools/ttl.pyi,sha256=I-P_gSblYWVijxd6WIFFAYEuqf6qI2wApq4RuFxekPk,926 +jedi/third_party/typeshed/third_party/2and3/certifi.pyi,sha256=L-Idpv54Z5MALmou6rENZOu7F_jAFD5CPo1hb5amF2s,24 +jedi/third_party/typeshed/third_party/2and3/characteristic/__init__.pyi,sha256=3h0tr1yazsqIaoo23raa-kUVvvfFTzzsMHllLmJBgY8,1330 +jedi/third_party/typeshed/third_party/2and3/chardet/__init__.pyi,sha256=iTl0aDlS_uQVPCs4ZQSsAYwNveIOYkE3ADM0Bu09Q04,667 +jedi/third_party/typeshed/third_party/2and3/chardet/enums.pyi,sha256=inSdRKDA-1mWbD2S2Wk1NRmWRmefiYx5YQxJMGimkz4,710 +jedi/third_party/typeshed/third_party/2and3/chardet/langbulgarianmodel.pyi,sha256=OpF1fUvRwXdQXUXoJs33oTP4KRMWZF05xwZjkLu6iyc,263 +jedi/third_party/typeshed/third_party/2and3/chardet/langcyrillicmodel.pyi,sha256=QbAYnXFTbOS3n1OntaCWI1x3XIbWX96oRwyyA9A5vZw,536 +jedi/third_party/typeshed/third_party/2and3/chardet/langgreekmodel.pyi,sha256=T0VzNfG5ktCgMT8PY-JSmVToVUXYxY9T72iaYQ9xmmk,240 +jedi/third_party/typeshed/third_party/2and3/chardet/langhebrewmodel.pyi,sha256=tUeIdTVWsWmI-RJAIkk5ubiUqeI9R1vUElAk1cdCxP4,169 +jedi/third_party/typeshed/third_party/2and3/chardet/langhungarianmodel.pyi,sha256=6sMaBbtCipjI9zwb3pK2ojnJ1V50ueO7cLd3ODuBkVo,263 +jedi/third_party/typeshed/third_party/2and3/chardet/langthaimodel.pyi,sha256=X0Ot8G3kPmA4VrnAxy7wwAkLyZJ5QfLOQMMSZfDpNH4,157 +jedi/third_party/typeshed/third_party/2and3/chardet/langturkishmodel.pyi,sha256=0xxalkd4p4lrZFWdCy9OZhvAG_S1rPEH2HuguWFe_7o,171 +jedi/third_party/typeshed/third_party/2and3/chardet/universaldetector.pyi,sha256=Cv9ikp-HF1JsbmUUnfrTGdj-ogw_iFVSf0yOQEE5Hxs,809 +jedi/third_party/typeshed/third_party/2and3/chardet/version.pyi,sha256=9L2O530uTJPPoHbmYkRjZwFkoIeIOhCWwGGBYouCKN4,61 +jedi/third_party/typeshed/third_party/2and3/click/__init__.pyi,sha256=3oe1-v8WfI-v6asPrtdIp1ochj2vT_cKOt4W6PBUx0E,2273 +jedi/third_party/typeshed/third_party/2and3/click/_termui_impl.pyi,sha256=gMqbhjSvNlAmi6GaFanVip40LRi4taeSN4sR_ck10II,442 +jedi/third_party/typeshed/third_party/2and3/click/core.pyi,sha256=lRB0bp9srrgM9TRZ8ZKRV71c2QRF1EOi2DBE7ePclQs,11012 +jedi/third_party/typeshed/third_party/2and3/click/decorators.pyi,sha256=UbSVA_xm2O6BZhfl-K0Xi4a_xzuMiby4_pz9gZx2X8I,9143 +jedi/third_party/typeshed/third_party/2and3/click/exceptions.pyi,sha256=o4rbUXi-6iBjHNiHUjnEo-Ad02Dy3xrZL_YYPVkWN78,1936 +jedi/third_party/typeshed/third_party/2and3/click/formatting.pyi,sha256=D6GMWwb6-9mM7-F7Om4bQP-pbtFKD2NZ_rDUKYNpjvA,1383 +jedi/third_party/typeshed/third_party/2and3/click/globals.pyi,sha256=Xi3fHtTEJHjVyQ-djJEaQkDxnZ9RE5xD-uh2B1xs9ho,274 +jedi/third_party/typeshed/third_party/2and3/click/parser.pyi,sha256=tSKZ0bKLpIObxaSZ86IBpk7PsR6idJGXD2bZzgya5ss,2006 +jedi/third_party/typeshed/third_party/2and3/click/termui.pyi,sha256=cG1FM90WpFvr8VQ9-XY_zstLebtXRK2MLZ0ncPqwMXg,3291 +jedi/third_party/typeshed/third_party/2and3/click/testing.pyi,sha256=s1GKTPK-blyfhaXqk3NvFBAXRBGuCR73RRH_weGbOcs,2136 +jedi/third_party/typeshed/third_party/2and3/click/types.pyi,sha256=VSx6kUdgT7LHTW2Ig8-pvnD9t8AxUYYSYUabbpsDdyM,5045 +jedi/third_party/typeshed/third_party/2and3/click/utils.pyi,sha256=Rgm3qjXceoORj5TgL7fHcBMs5bU6j2EU7qC68ZaVElU,1752 +jedi/third_party/typeshed/third_party/2and3/croniter.pyi,sha256=TJBwRUQdiVQbCYBiao1VL2Esal2U_I3n6ZR38NtOd7o,1934 +jedi/third_party/typeshed/third_party/2and3/cryptography/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/third_party/2and3/cryptography/exceptions.pyi,sha256=CpK5HtZvigk1U7yYLlqYcXGJaOzknyfhUUittXFuKiM,262 +jedi/third_party/typeshed/third_party/2and3/cryptography/fernet.pyi,sha256=pr8Po1ra3EdG9lMU8osc1fg0-ZOoASGAHtccbhcbr80,1282 +jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/__init__.pyi,sha256=3fBxcSppJr6EOEcUojvflG3Eegg7lv2Qp0dNQQILrP4,63 +jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/backends/__init__.pyi,sha256=dKFUFhsHmSbNrHdG2a_5CErfvQu9hdnIWMA1vys9LaI,124 +jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/backends/interfaces.pyi,sha256=B6ll_f3g9smOyhOZR8hRLJcc891y2yr57KPSVQYb1PI,8238 +jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/bindings/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/bindings/openssl/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/bindings/openssl/binding.pyi,sha256=QHIbjl0Q39fxas4DabuLytXjjBZrfqNkft0H_nWwXr4,148 +jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/__init__.pyi,sha256=3fBxcSppJr6EOEcUojvflG3Eegg7lv2Qp0dNQQILrP4,63 +jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/asymmetric/__init__.pyi,sha256=3fBxcSppJr6EOEcUojvflG3Eegg7lv2Qp0dNQQILrP4,63 +jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/asymmetric/dh.pyi,sha256=AHR65ed03NWB6oK8YoTQYt3AgCk0fMk179NRcE5WfmQ,2651 +jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/asymmetric/dsa.pyi,sha256=AeKPk-Evk0aTJufLg3ohlne7qR2CXJqMse8gNoAD-y0,2965 +jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/asymmetric/ec.pyi,sha256=VoSyXBfG2NuAqHd_WARe7UH1eqq9jaO5vijRMNk3AFQ,6340 +jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/asymmetric/ed25519.pyi,sha256=OiE4CJcNDIaqd_VzdmQGn28WPdT5PBQ5jVKfq_ZRc3k,985 +jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/asymmetric/ed448.pyi,sha256=Mw-p07GDyttBXKaNB5Su5hw01DQXZgjEZe5M1e7PlhE,973 +jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/asymmetric/padding.pyi,sha256=g1sB5wpH6yoi9LrLUSHOejKdt8xiLmkPvDdUn6Cm1UY,787 +jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/asymmetric/rsa.pyi,sha256=rT_qcbpenlB8wuhg3jRcMm-5OErh2cCc3tkNFn-x1d0,3288 +jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/asymmetric/utils.pyi,sha256=nTFxj83DVi4OEi8B9wokES2Vh-HwUsxZHiEA4PcH068,406 +jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/asymmetric/x25519.pyi,sha256=JHX8lIJN0j94AsHIS4jQWCrlcOgLdb3Ud2QznMRXOC0,919 +jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/asymmetric/x448.pyi,sha256=efSTvyRkpVAcxtAwzYymDbnOQPA-dJW7YAliRVA5_cc,905 +jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/ciphers/__init__.pyi,sha256=eOEIBpUXLaH5IkOca5Ko3HQdUGfDIDFDwmlsz7RBGJA,1363 +jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/ciphers/aead.pyi,sha256=MhkfsUnaMVEi6oRrcfTgp6h1_1QCS8bvxtwoE6bqZS4,1065 +jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/ciphers/algorithms.pyi,sha256=Ig9mWCRz8rM6X5js1D4rlT06YbdALJ5RUpO4i6Qb7Io,2245 +jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/ciphers/modes.pyi,sha256=3rIwa-kj4k0wj8YfZeesqX6jEJhHtUZth6-ivi76etE,3089 +jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/cmac.pyi,sha256=HO4SJ5cJgPcP3cBjXg6n8nAKBWpyOlQzyXZfyQz_af8,461 +jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/constant_time.pyi,sha256=47ogru9j6XG5mLMDsl2iGKxhZjsH_bKhWYBt4c1jQk0,46 +jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/hashes.pyi,sha256=j3L6NIrR867bxvIoY6FVw10HEZz-0alVzDTUdPqf48w,1342 +jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/hmac.pyi,sha256=4iDj3W1Nk5MKJdkpNVRsY3Q_KP9NBOK_zS7pbo1Wj_0,457 +jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/kdf/__init__.pyi,sha256=fymJGVYF4JGsuO5IUacyuYb4Xunrps4mFrJ0XFEUdfU,261 +jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/kdf/concatkdf.pyi,sha256=Qmc9PP5j2fsiJfQltiWvgywgNLPQVTcyofH2mNqmWmI,951 +jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/kdf/hkdf.pyi,sha256=m_JHDA0r_aZGcOT5B0_3H9VpNfN9WnEAvb1zvgIssa8,902 +jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/kdf/kbkdf.pyi,sha256=MCUGyI5wZWLcPd9Sh_aHnDfumqS9ZoCYsQ2WseK-BM8,867 +jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/kdf/pbkdf2.pyi,sha256=-MWdJfLGEKiNC3qavnm2unJDtndsBFmZmQoj4Cbi_N8,561 +jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/kdf/scrypt.pyi,sha256=wKA2YyDAullLwwfR9Ng43xn2gKd7GyCH9NGVSRz1Ycs,452 +jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/kdf/x963kdf.pyi,sha256=wvi3YJDqDJdqVT-Dgr84e4-cqosiq2f_wQQD6mgFXsk,545 +jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/keywrap.pyi,sha256=FGJg_GstrQcaavqriIfHdq_aOQPVeq_F9CpN8Nw0gvI,611 +jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/padding.pyi,sha256=RYc1U9k5Vw4NzpT-JXi_AwRiPXwzu7XLVyG6HtDy_gM,540 +jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/poly1305.pyi,sha256=ON5PxE5sYR6YLf8grWy-8FwUfGiQt28l1s2elvrKgYw,375 +jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/serialization/__init__.pyi,sha256=7RHfNmeDX9gwtceJXJ7kdp_YCpqHB1BZObkeDk2YSAI,2359 +jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/serialization/pkcs12.pyi,sha256=NwgQSXWYnaOm4717c2v92AP8jrw0davzciJDVzeDIjE,933 +jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/twofactor/__init__.pyi,sha256=MV00ZbBi-FKgHi9PYY2ZS7tneV2rghu2eVi1KgxRZzs,35 +jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/twofactor/hotp.pyi,sha256=ibl6C1ISmQ5H6nmmT_axuSuhPmPUn7YBx7A4i5PoFbY,540 +jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/twofactor/totp.pyi,sha256=p2rGTlM-DzrBmqLnYQKklWHjJJbDwQ0yf_J1BfJqf8g,585 +jedi/third_party/typeshed/third_party/2and3/cryptography/x509/__init__.pyi,sha256=3xR6GVwKT2nPtrlazcfVcs_r5DmEFkYk1OnstSBjiQ4,17734 +jedi/third_party/typeshed/third_party/2and3/cryptography/x509/extensions.pyi,sha256=zMbVNkp-hl_XW3RW71h0MlwUM-Rrz3X0OxEEZbZAo-Y,557 +jedi/third_party/typeshed/third_party/2and3/cryptography/x509/oid.pyi,sha256=eHglWkt4t9CRxOwXqdsocMPa8MpJFTHn1lhBf5EAfMU,4153 +jedi/third_party/typeshed/third_party/2and3/dateparser.pyi,sha256=xAhfYbQgduxqvMxoMSfuaBeQ5pzwLWVrZTdbOzHWMYo,522 +jedi/third_party/typeshed/third_party/2and3/datetimerange/__init__.pyi,sha256=_CLVxkVpVy20mXcnlMv8KzMcvSEbnEKgYfScf_swPuk,2062 +jedi/third_party/typeshed/third_party/2and3/dateutil/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/third_party/2and3/dateutil/_common.pyi,sha256=Xxs-IpVplkwjwEnqCLwzA-JIm6I9kzAFkcLQWyzZWvY,340 +jedi/third_party/typeshed/third_party/2and3/dateutil/easter.pyi,sha256=5mypiQN0QZHpFBk80RddMUkFuRHb4qWOX8wJCbx4a6s,214 +jedi/third_party/typeshed/third_party/2and3/dateutil/parser.pyi,sha256=Brz_8xe_yX14RB6B8pVk6BacM6HizqkUCIQ5vc9U-_I,1779 +jedi/third_party/typeshed/third_party/2and3/dateutil/relativedelta.pyi,sha256=SfCOq1b8otE6in4nsnH0m0Kbyl2jbWaxGwcBoeapTHk,3243 +jedi/third_party/typeshed/third_party/2and3/dateutil/rrule.pyi,sha256=EBup_m5smahe2tbtJG_-0kj6pyZjyv0YKi5oWKjwP1s,3219 +jedi/third_party/typeshed/third_party/2and3/dateutil/tz/__init__.pyi,sha256=MlXCZJGqduJh-Mk0pHLw06oNxeW1fvPP3ixfo2SM8ak,340 +jedi/third_party/typeshed/third_party/2and3/dateutil/tz/_common.pyi,sha256=0C_pqZ2TLRyKAsg_lS6WR-pwbGiezi4PY7uotzfUMjk,818 +jedi/third_party/typeshed/third_party/2and3/dateutil/tz/tz.pyi,sha256=mExYydbsNJYcED03KVMfEHthqixakuSa3Qq_9mDczUc,3970 +jedi/third_party/typeshed/third_party/2and3/dateutil/utils.pyi,sha256=c9oLGnocofsb4y9CPpCIZGPFF_tysaA6P9i_g3CpZVE,281 +jedi/third_party/typeshed/third_party/2and3/decorator.pyi,sha256=MXFxKax2ovqI9ZAJRmWIyNzOxL1sYQ2vGBM6JGkl_44,2760 +jedi/third_party/typeshed/third_party/2and3/deprecated/__init__.pyi,sha256=Q5NJtAoHP5mH31hhagi9d8-jI3qoRJDlRQNCMMBpOG8,46 +jedi/third_party/typeshed/third_party/2and3/deprecated/classic.pyi,sha256=lWfx7eJTqKQPcZr3oKLHHrPB29S-vYm8yImwb3enRM0,783 +jedi/third_party/typeshed/third_party/2and3/deprecated/sphinx.pyi,sha256=NvfjRlHcPAeTbI_BkSg9ygv0klEMxTShqP9i5GjfaSQ,1129 +jedi/third_party/typeshed/third_party/2and3/emoji/__init__.pyi,sha256=Ix7SRTSbCqLgmR0L0MCBIW72Zs0t3-mmmbdMzg4Axbo,373 +jedi/third_party/typeshed/third_party/2and3/emoji/core.pyi,sha256=-4Hs3zO0KZtnou62-FII7AZbyEpL__-VRSziFn8acTo,419 +jedi/third_party/typeshed/third_party/2and3/emoji/unicode_codes.pyi,sha256=qwYCvETNLt20Ok76oiBBIuVfIzzEkdLt1jhxGzdqHUA,171 +jedi/third_party/typeshed/third_party/2and3/first.pyi,sha256=jk0nVWOV_kqCy1ZIvuTPGbggVajhW9SnGVYdDflfss4,481 +jedi/third_party/typeshed/third_party/2and3/flask/__init__.pyi,sha256=dKC5xsUiM9a0nh1zxuP991HYODlG4Th_-2_uifzieFI,1688 +jedi/third_party/typeshed/third_party/2and3/flask/app.pyi,sha256=E352cSxQISVJ894PKmp07vTwurIyadV2RRI1Cro7m-Y,8224 +jedi/third_party/typeshed/third_party/2and3/flask/blueprints.pyi,sha256=g_ZbSf5GoDmzEbTyJUnDydPwfK--8soIOApyjCgjg3w,3564 +jedi/third_party/typeshed/third_party/2and3/flask/cli.pyi,sha256=WwdlCr0pd8tNj8W8B2XHg6jIlh-ryn5vzaBvvWe2b3U,2195 +jedi/third_party/typeshed/third_party/2and3/flask/config.pyi,sha256=KjCQX-yxie9WA0K5-Zujen_kja_GyptfYqTw_L-QdhM,871 +jedi/third_party/typeshed/third_party/2and3/flask/ctx.pyi,sha256=JJ9QMsJoIWCudf9Gwi_9PmFhLHh3Qi-m50IklJOrnOg,1335 +jedi/third_party/typeshed/third_party/2and3/flask/debughelpers.pyi,sha256=xW9zO6fuhvTJ4rk-tQFWucJOzufOJjHaahF7_Hm4HYQ,507 +jedi/third_party/typeshed/third_party/2and3/flask/globals.pyi,sha256=C86I2edNhxlipXPH6Ghwf2gN2E0ALtd7uRe2f1A5NOM,322 +jedi/third_party/typeshed/third_party/2and3/flask/helpers.pyi,sha256=2sriNHIKIlknrelbfl2Kh9Fd-Gzqo1qX3G0pptqn5ig,2036 +jedi/third_party/typeshed/third_party/2and3/flask/json/__init__.pyi,sha256=1UCkfXT-tCvt4MW1loZM4fXMd9_8U91nYZyMCzddUSY,654 +jedi/third_party/typeshed/third_party/2and3/flask/json/tag.pyi,sha256=_cOpm75btUJ-zPPdvBeGxj12fENH_9XY0_I32Ounk3I,1918 +jedi/third_party/typeshed/third_party/2and3/flask/logging.pyi,sha256=AOGLuCAg9HnXXkXQsVGa2lQ6TAxqk18G0RpytsD0SBo,150 +jedi/third_party/typeshed/third_party/2and3/flask/sessions.pyi,sha256=rrIKmlljalXzcTNH_x5YVEVsmMKuIJnJ1r7XHI2RTfo,2017 +jedi/third_party/typeshed/third_party/2and3/flask/signals.pyi,sha256=HRUu9jh583VLFfxUmdNjJ17XnVdziRDu-_9NIgnf2yc,718 +jedi/third_party/typeshed/third_party/2and3/flask/templating.pyi,sha256=xBS-FLM_qPjNQwx5Z5a-c48hQ77vfC5LXLNCJCSmI4g,604 +jedi/third_party/typeshed/third_party/2and3/flask/testing.pyi,sha256=oiZz2eCxXMLPjChHuLps-2HwtApsmWgY0nU1fFmXc74,1827 +jedi/third_party/typeshed/third_party/2and3/flask/views.pyi,sha256=AXG5OxY9r03ZDSFtV48yXsFPXQlMFZtD0cHceIpwzIg,530 +jedi/third_party/typeshed/third_party/2and3/flask/wrappers.pyi,sha256=Qhblio57KSJw-stcPOYTRxCWtRZ7V7yCCMtz8q2JkBc,1145 +jedi/third_party/typeshed/third_party/2and3/geoip2/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/third_party/2and3/geoip2/database.pyi,sha256=KiGpw7XqZHu0bSQSFNDu9yW-RDbP8XGTQCD0LTO_soM,1133 +jedi/third_party/typeshed/third_party/2and3/geoip2/errors.pyi,sha256=pZ2Y9djJdVQVgKMnPXPI77UKCF_gs6v9ApuWSj4tgSY,494 +jedi/third_party/typeshed/third_party/2and3/geoip2/mixins.pyi,sha256=ZpggdVI7qLOYVHt91mL8uPwWq4E07MxpN_UfAgoPcB8,120 +jedi/third_party/typeshed/third_party/2and3/geoip2/models.pyi,sha256=h0flgP22m1KL7U55cg1PAhoQ73XeGPg5s2nLn6B_5aY,1867 +jedi/third_party/typeshed/third_party/2and3/geoip2/records.pyi,sha256=3-gke4nBlwnk09iOiT8tRdusFPi6CewrJn9foXKvI_M,2071 +jedi/third_party/typeshed/third_party/2and3/gflags.pyi,sha256=c32SjcBY5EaEWC0ZzMWqfEM9BfMa8sMc4nX_WntL3fc,10776 +jedi/third_party/typeshed/third_party/2and3/google/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/third_party/2and3/google/protobuf/__init__.pyi,sha256=U54VfsG7-8DG_1f27w_Gmz8NunTjIR0iCWEXUCuKKVA,19 +jedi/third_party/typeshed/third_party/2and3/google/protobuf/any_pb2.pyi,sha256=r12boNnMlrqzwGMOVLK3YUILTg26UVP3uGOav2S3vgo,1353 +jedi/third_party/typeshed/third_party/2and3/google/protobuf/api_pb2.pyi,sha256=Vk1syiUbOtrQuhC5HKZX4RPYKtdAbypTsX-fZox8Gtc,4881 +jedi/third_party/typeshed/third_party/2and3/google/protobuf/compiler/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/third_party/2and3/google/protobuf/compiler/plugin_pb2.pyi,sha256=MhJF46Zpl7YfIhQyUBXmG5pkOYIww3CSrkhyIK_FL58,6548 +jedi/third_party/typeshed/third_party/2and3/google/protobuf/descriptor.pyi,sha256=fkv0RR_gPgZr9EJS7tisfkMQtiYDX8OOCGeY7DKBSvc,7843 +jedi/third_party/typeshed/third_party/2and3/google/protobuf/descriptor_pb2.pyi,sha256=A7YzWInNH0SSQrlE4wXAw2vbnCNw93zkyu196Gm8rto,43146 +jedi/third_party/typeshed/third_party/2and3/google/protobuf/descriptor_pool.pyi,sha256=dsqeewyqydUwYE9sNscI2qvYE1h5huXeZQ9igxjQD8I,744 +jedi/third_party/typeshed/third_party/2and3/google/protobuf/duration_pb2.pyi,sha256=jBEaeqcqCopxOCSWjbhP8zjXLf-VkCBFSZeZ1G8I1UU,1348 +jedi/third_party/typeshed/third_party/2and3/google/protobuf/empty_pb2.pyi,sha256=FWX0qLZZMDX34-I45EwCjvOWnNdvwGJ-yE3DcZXoZJc,603 +jedi/third_party/typeshed/third_party/2and3/google/protobuf/field_mask_pb2.pyi,sha256=6E26cc872vDtSCX0B1XQGAHUW_ajwYcCtKKg-jrejJg,1558 +jedi/third_party/typeshed/third_party/2and3/google/protobuf/internal/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/third_party/2and3/google/protobuf/internal/containers.pyi,sha256=FRcEQWw5vvdjZ5fD80mj9G_9tdZjOTgWiMGIoV6fhnc,3653 +jedi/third_party/typeshed/third_party/2and3/google/protobuf/internal/decoder.pyi,sha256=roJK89CkgjVKjRJbEnQ5ik1KdfXhwxymSyRIg7c5WW0,860 +jedi/third_party/typeshed/third_party/2and3/google/protobuf/internal/encoder.pyi,sha256=3rRgqC6ceJ7LtL7Qo5YiAK6CwE_HigHMsj9l-oa_5iE,1045 +jedi/third_party/typeshed/third_party/2and3/google/protobuf/internal/enum_type_wrapper.pyi,sha256=HPVeZHGr2DNnMI9bX8hRNii3OrD8DtWIr2fawf8BQ2Q,650 +jedi/third_party/typeshed/third_party/2and3/google/protobuf/internal/extension_dict.pyi,sha256=e54-8z3JwpIKs36-NI9VWfQ9LEncwDMCXJrJI0wint8,1795 +jedi/third_party/typeshed/third_party/2and3/google/protobuf/internal/message_listener.pyi,sha256=EiRlRR-kzJlKV3NXoYtYrGhMS3lZ2oWwQdq77h1cY8E,148 +jedi/third_party/typeshed/third_party/2and3/google/protobuf/internal/python_message.pyi,sha256=IESr1OjAZD9idg1OgWzMfeV2Sta08R0uHLAbweljTD4,46 +jedi/third_party/typeshed/third_party/2and3/google/protobuf/internal/well_known_types.pyi,sha256=DFxcLR_wHeTGdA49Vl-dr8k0zdm7LlksB6Dqj3ZD5Yg,3756 +jedi/third_party/typeshed/third_party/2and3/google/protobuf/internal/wire_format.pyi,sha256=ncrIlZeBjytfWeG9rQX8VdHO8YvS3EmqBJ4rIbaZVxw,1554 +jedi/third_party/typeshed/third_party/2and3/google/protobuf/json_format.pyi,sha256=ZCsnQy2nbUTYAkOHilhoGAu0gMyiTGx7rD1wTMEH75M,903 +jedi/third_party/typeshed/third_party/2and3/google/protobuf/message.pyi,sha256=wxYo7wptWBT2maYMBCMwEGIyuTrPzmjUNmGOly4wmhE,2522 +jedi/third_party/typeshed/third_party/2and3/google/protobuf/message_factory.pyi,sha256=LOP5EeGqIi8j6R0V-4eoG9iZNX30c3dQb1J59td_4Ks,631 +jedi/third_party/typeshed/third_party/2and3/google/protobuf/reflection.pyi,sha256=VahfyfCz4LzllaCNcv6qXVMa6sWQZ9PEbM9yTKrC9d0,230 +jedi/third_party/typeshed/third_party/2and3/google/protobuf/service.pyi,sha256=khFSQ7jbdMgCZRnhTDDIXnaDvS_GsjhllVxiJpDu9yg,1371 +jedi/third_party/typeshed/third_party/2and3/google/protobuf/source_context_pb2.pyi,sha256=ojA6bEP8HWs-2i-UH8GOxc8z3fYZGq6diaj1vZLTEgU,1097 +jedi/third_party/typeshed/third_party/2and3/google/protobuf/struct_pb2.pyi,sha256=g1CuFe2Cd37bigkRiOudt2hoIA27LIH0YcxxM1iym1w,5358 +jedi/third_party/typeshed/third_party/2and3/google/protobuf/symbol_database.pyi,sha256=skHeJKelHAiApzBN2EKOd6VaWP3IsyjOxoe0HDS3X84,912 +jedi/third_party/typeshed/third_party/2and3/google/protobuf/timestamp_pb2.pyi,sha256=3WwiKOf2BEcFMLwe480tAQWPDG1xRtRebgwvj2xIN9o,1354 +jedi/third_party/typeshed/third_party/2and3/google/protobuf/type_pb2.pyi,sha256=TNdAmPxbIYjLzTc_4nMSy3tyBY3gPN7Vteotfh6aNxM,11139 +jedi/third_party/typeshed/third_party/2and3/google/protobuf/util/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/third_party/2and3/google/protobuf/wrappers_pb2.pyi,sha256=rew4YgJVRs7PuxNVZggdHPISr2QuNOYmDbj2gmZIv8k,4287 +jedi/third_party/typeshed/third_party/2and3/itsdangerous.pyi,sha256=ufy10z6xR-SpjLpa8c89G4uN-vu_LGaGGiSMzA-PtYw,8405 +jedi/third_party/typeshed/third_party/2and3/jinja2/__init__.pyi,sha256=FGOBNYKOz5GYd8TgZutpo9IKAZ32BiGnbkiz1dWTIpg,1529 +jedi/third_party/typeshed/third_party/2and3/jinja2/_compat.pyi,sha256=7I95GYBNx-7EWPd3BvePzanb1IWGiOJZwAW2AdCJLwQ,598 +jedi/third_party/typeshed/third_party/2and3/jinja2/_stringdefs.pyi,sha256=_gw2yhYfWIlqy06ve5t93z3SIVXX2j5Md3rz58LIKjE,360 +jedi/third_party/typeshed/third_party/2and3/jinja2/bccache.pyi,sha256=ypfXFrP5k-Phe6dJ3jLwn3yhRMzDSYPHTpsJT4Hx56M,1396 +jedi/third_party/typeshed/third_party/2and3/jinja2/compiler.pyi,sha256=PGyzLL8q-_nQVW45vTCeyclt-UuWjln6UqewcHsju9E,6363 +jedi/third_party/typeshed/third_party/2and3/jinja2/constants.pyi,sha256=seJNAMX1_sGZ8wi8SB5qbZtSUvYiQMelMpXMyxl-AR4,23 +jedi/third_party/typeshed/third_party/2and3/jinja2/debug.pyi,sha256=6XZeMpZjfFUP-Mh5tEof8P8UANNgJ7lsBq1RUbjL_M4,1018 +jedi/third_party/typeshed/third_party/2and3/jinja2/defaults.pyi,sha256=fe4KjTE3_Kh0bG7yXzSy6cqtlkHTsRgMWYyMzLnBsag,532 +jedi/third_party/typeshed/third_party/2and3/jinja2/environment.pyi,sha256=7cYxhgLusiW6bw8147dTFHfjesFH_ytARlKw5bmfLL4,8493 +jedi/third_party/typeshed/third_party/2and3/jinja2/exceptions.pyi,sha256=P52TnpizVoU2vAeayt4MZlTYMnhJYiMrWxiLMWP1LeQ,1050 +jedi/third_party/typeshed/third_party/2and3/jinja2/ext.pyi,sha256=w5pYOcJ4h9vgSon1YceCeXsGDWjvUQjGSdCOhoScYXQ,1684 +jedi/third_party/typeshed/third_party/2and3/jinja2/filters.pyi,sha256=OxR24skT1uz7n2J-h3voluptB-l21pQ9KTx0CQnGsVU,2425 +jedi/third_party/typeshed/third_party/2and3/jinja2/lexer.pyi,sha256=evBj10x_89jlfuVacpADTOynp2XF9n8d2vQf5lZg-pE,2764 +jedi/third_party/typeshed/third_party/2and3/jinja2/loaders.pyi,sha256=EbGBtL810XARseWeDa6srKOlNUiUesvlJllf8Li-dw8,2923 +jedi/third_party/typeshed/third_party/2and3/jinja2/meta.pyi,sha256=_R2ui6gjeNSl5x59dwZjhL1WxTG0oKqXSCrgLx-2L24,339 +jedi/third_party/typeshed/third_party/2and3/jinja2/nodes.pyi,sha256=-86WsO5Cbws9IqXBSZidnIVlKesGmV2VFdhIUMrK8Vs,5271 +jedi/third_party/typeshed/third_party/2and3/jinja2/optimizer.pyi,sha256=1bIneJHqfKubBDxSn7sWv2-tGGZ06G6c4zr9Lxbd4X4,661 +jedi/third_party/typeshed/third_party/2and3/jinja2/parser.pyi,sha256=G6S7SzeUUTs_AGL916QYuaEKRhGyrpCekEVt0JOoRRk,2576 +jedi/third_party/typeshed/third_party/2and3/jinja2/runtime.pyi,sha256=8uryZzgqtGakyVDyA7OGzI9uqvSobgIoGrsj5MWmwb4,3463 +jedi/third_party/typeshed/third_party/2and3/jinja2/sandbox.pyi,sha256=zhmpDnPs50ugSYwrdg7V9r3OCbM839NHfBHILwfse-M,1146 +jedi/third_party/typeshed/third_party/2and3/jinja2/tests.pyi,sha256=dixzMe9BiHnvbL8KyR-KY9LLX-VD1-pgbWXC6Mwc4LA,561 +jedi/third_party/typeshed/third_party/2and3/jinja2/utils.pyi,sha256=oCtfBv7W9JqYQMU7nukSm8kVK1wy38U7db3oFsnXaUI,2957 +jedi/third_party/typeshed/third_party/2and3/jinja2/visitor.pyi,sha256=yeJ6g3RC5bitP3tG-btWLOZn954E_e9RxKPtgsiwcVc,306 +jedi/third_party/typeshed/third_party/2and3/markdown/__init__.pyi,sha256=31jve2aAqalclv4Hgat04sP28Oz06Nh8qwJVkC4dB84,146 +jedi/third_party/typeshed/third_party/2and3/markdown/__meta__.pyi,sha256=lugjndxerVWkOhrd9Mo0zDlN4utrCKIse4vNsqQFvxU,46 +jedi/third_party/typeshed/third_party/2and3/markdown/blockparser.pyi,sha256=OYDwhQquCvSSpAxoXCZ0z5kABsWuvCog4LqG3HEePE4,463 +jedi/third_party/typeshed/third_party/2and3/markdown/blockprocessors.pyi,sha256=Hd8EgV71NYEe-nx1m2WHIoQ4p7dXJbzYRiA5vXka1O4,1490 +jedi/third_party/typeshed/third_party/2and3/markdown/core.pyi,sha256=K4hpNVt2gTOP72HB8YSv-xf6uHu_qsUTuBWKnAb9D_0,2555 +jedi/third_party/typeshed/third_party/2and3/markdown/extensions/__init__.pyi,sha256=qaZiIY5BUSCBliWaMIWdX4v-ROFISLWzp6juNrXQi08,549 +jedi/third_party/typeshed/third_party/2and3/markdown/extensions/abbr.pyi,sha256=NWvh4SRoU2bI0X7gdc0Gc5FNu3y51gIkRyDNfU93ozI,428 +jedi/third_party/typeshed/third_party/2and3/markdown/extensions/admonition.pyi,sha256=tX58KZyPP03stonTmJnnvgR8J-QL8MT6i6ILHtFZ_8U,385 +jedi/third_party/typeshed/third_party/2and3/markdown/extensions/attr_list.pyi,sha256=cQaSO-jiaqUGZN1BZoISNSAvLM9m9Y8W2-DJ5Qi9ytA,498 +jedi/third_party/typeshed/third_party/2and3/markdown/extensions/codehilite.pyi,sha256=HRl9kJHv2nleEi84BdCR9cIZ1w4yiOauvFKdmsXgieg,979 +jedi/third_party/typeshed/third_party/2and3/markdown/extensions/def_list.pyi,sha256=-aeDlJbL4JICSTuizcoBkYIHmkEfb6gpkGQEWpMc0r4,360 +jedi/third_party/typeshed/third_party/2and3/markdown/extensions/extra.pyi,sha256=_cNunwRxZSkv3OT-m9oWf76bVVMcJiTkosNCFtH3cz0,197 +jedi/third_party/typeshed/third_party/2and3/markdown/extensions/fenced_code.pyi,sha256=wLqffeWN4EVg1IpvnMeHW9CTfWJ7WC3Vwz8fi-_XrBE,428 +jedi/third_party/typeshed/third_party/2and3/markdown/extensions/footnotes.pyi,sha256=B219DIvS8G0RbJu_ThwOD0qxXME5Ble7k64ak8dfwak,1751 +jedi/third_party/typeshed/third_party/2and3/markdown/extensions/legacy_attrs.pyi,sha256=UE5KQPkirTdRMr90C4WqPUpKKHOALOQpT4HkHPrPxNs,300 +jedi/third_party/typeshed/third_party/2and3/markdown/extensions/legacy_em.pyi,sha256=S5wb-FfHSfIq9o5Uc1ZeQm3BwfR7mjRX8g2km5EV90U,306 +jedi/third_party/typeshed/third_party/2and3/markdown/extensions/md_in_html.pyi,sha256=BFh_ogT03pnKfpqUb0DY5LLw9T330erK3NzOBMOkI1o,260 +jedi/third_party/typeshed/third_party/2and3/markdown/extensions/meta.pyi,sha256=3eRiqW2npoe0iuhFt5BgFVGjhlSSKc4vYOkDjYltaJ8,361 +jedi/third_party/typeshed/third_party/2and3/markdown/extensions/nl2br.pyi,sha256=mjR-zAlnbfZkttPcKAihZt-8vj9VcsOvADl9LzTgW2E,150 +jedi/third_party/typeshed/third_party/2and3/markdown/extensions/sane_lists.pyi,sha256=hqqMgizBkpFc4msXW6IQjsGDp3WFwfeTvRHxSMuKk5E,392 +jedi/third_party/typeshed/third_party/2and3/markdown/extensions/smarty.pyi,sha256=RsAPMqFAK3Qfz51st2J6SdY7s0yDJXQMnl2HbRtHDJc,1080 +jedi/third_party/typeshed/third_party/2and3/markdown/extensions/tables.pyi,sha256=Eg96sG_ww2G6kt6N4jlSwVA-LE834KZGp4-EgDacB9k,414 +jedi/third_party/typeshed/third_party/2and3/markdown/extensions/toc.pyi,sha256=fcqE9YDibJzb8P1Ox7WWczXi_34dCvpcPwXCLkrjagE,1178 +jedi/third_party/typeshed/third_party/2and3/markdown/extensions/wikilinks.pyi,sha256=Q2FIa1iPu0XMRqJTb8wewdPoTXEnJXZiFuYL-Zm0T1o,404 +jedi/third_party/typeshed/third_party/2and3/markdown/inlinepatterns.pyi,sha256=W_AMUX0BcD5vv8OJRL9D2hJfAc0BzK1hs12kOgKKr08,3022 +jedi/third_party/typeshed/third_party/2and3/markdown/pep562.pyi,sha256=pLjxji-A4xeBVYjntboexEwwoSp-JO4CbTLziUGvYqc,276 +jedi/third_party/typeshed/third_party/2and3/markdown/postprocessors.pyi,sha256=BRcuzX2JjjkfSk-OxVyYiPl27LjR9ak-u9kp2xZRVe8,400 +jedi/third_party/typeshed/third_party/2and3/markdown/preprocessors.pyi,sha256=oo3D5AAExEaq9GWiXhVblF37c2cojo7hjTsfh3IiOVY,550 +jedi/third_party/typeshed/third_party/2and3/markdown/serializers.pyi,sha256=V3npjXzO5oR8Ov6K-4JZTa96ma5VQGrtKDRjdvRvCG4,91 +jedi/third_party/typeshed/third_party/2and3/markdown/treeprocessors.pyi,sha256=_DfzQcWXflM9vqyQYWmPb0DfH5b8PEFTBRhBrpUEsaQ,469 +jedi/third_party/typeshed/third_party/2and3/markdown/util.pyi,sha256=4tEwF_04Z1zG_yu314kiwQCJUfnVO9AFLFoDUAU04a4,1584 +jedi/third_party/typeshed/third_party/2and3/markupsafe/__init__.pyi,sha256=RTRaycAzCzRQGvRT-ejSLNdvwg5kQsXB5oHcBPHypjo,2861 +jedi/third_party/typeshed/third_party/2and3/markupsafe/_compat.pyi,sha256=xN1vhSTmy2fXTE5pUrL_NRkYoOLH3lBY6YDf7ZR9czM,435 +jedi/third_party/typeshed/third_party/2and3/markupsafe/_constants.pyi,sha256=Kk2R4mLBd9wpcFgKA0k4u87FmXD-v1U6ODEduwhFkVE,62 +jedi/third_party/typeshed/third_party/2and3/markupsafe/_native.pyi,sha256=reb7nc_c28JTwKoUYlgirotBiOiESx1M1bpLZtXt6DQ,242 +jedi/third_party/typeshed/third_party/2and3/markupsafe/_speedups.pyi,sha256=reb7nc_c28JTwKoUYlgirotBiOiESx1M1bpLZtXt6DQ,242 +jedi/third_party/typeshed/third_party/2and3/maxminddb/__init__.pyi,sha256=VeOvFZHkaU9NmEfD-ZxOq735CGwfJmnMkDRUmkYLDW8,177 +jedi/third_party/typeshed/third_party/2and3/maxminddb/compat.pyi,sha256=lE11t1KuE4nA0ph6Bw9dWfhNE4l45r-4fCxOVRy4AfQ,194 +jedi/third_party/typeshed/third_party/2and3/maxminddb/const.pyi,sha256=c1LWH0XYtbcs9T0mJz5lyj6ZAVBwU2zZJdRk7Dd4Fc0,130 +jedi/third_party/typeshed/third_party/2and3/maxminddb/decoder.pyi,sha256=lZIOBE8OKJGu1fMmiH_n0b46qbmDxnXNsCq2Ed9oxzA,215 +jedi/third_party/typeshed/third_party/2and3/maxminddb/errors.pyi,sha256=ifm1u-yPLyPC5KPPF7F5vswnJ2X-TeGc5EgYXvWvn30,46 +jedi/third_party/typeshed/third_party/2and3/maxminddb/extension.pyi,sha256=k7yLS2l266OjFQfh4zmzOwO-46LpvnT3KM9FnvrZybU,1122 +jedi/third_party/typeshed/third_party/2and3/maxminddb/reader.pyi,sha256=X414tjdlsmCmS-fFfxFTqHn5-E8ifpb9_ckjzM-g9iM,1269 +jedi/third_party/typeshed/third_party/2and3/mock.pyi,sha256=Al3tA7zKNLXxUAeGa1e1ndsoaQtSm8ouPYT7_zifejI,14819 +jedi/third_party/typeshed/third_party/2and3/mypy_extensions.pyi,sha256=w1Erg7Whcf03pE8mI0T5qLwLPoaHncPRRJMrcgAomQs,2198 +jedi/third_party/typeshed/third_party/2and3/nmap/__init__.pyi,sha256=x_aIpzoj5vmzZKXKDrwrKEN5CWrg7XCDZ1-xOdfGOj0,20 +jedi/third_party/typeshed/third_party/2and3/nmap/nmap.pyi,sha256=hUW8b9yuNGhk4-XFq89rFhnzIghRIVN4wmYUiFwGjYw,3953 +jedi/third_party/typeshed/third_party/2and3/paramiko/__init__.pyi,sha256=0oM8LtFIAnlG-laK6WjyklSWeCGB9wdSzK7gVUbRlsg,1919 +jedi/third_party/typeshed/third_party/2and3/paramiko/_version.pyi,sha256=EeKXNTXM6-EkF3h5RGFiff1iafaFyZYoMscJOfcYuHc,65 +jedi/third_party/typeshed/third_party/2and3/paramiko/_winapi.pyi,sha256=yFTkwFHb32lUW4WD6Eq8onLhRGGCenZZMOxAdvUvYIo,2649 +jedi/third_party/typeshed/third_party/2and3/paramiko/agent.pyi,sha256=VmUg7we1YYno6H4zHgjCoPY7pTO3zzFHknFMC8oYwEc,2057 +jedi/third_party/typeshed/third_party/2and3/paramiko/auth_handler.pyi,sha256=qbisXIS9P2lmxsw2cSVxh7y6WIMLsD9YRbBMdPOtpjA,1934 +jedi/third_party/typeshed/third_party/2and3/paramiko/ber.pyi,sha256=4OoK5kdfYx8MVMfmbZLxMVuu5xLxaPJe8uTnu0n8_Bc,611 +jedi/third_party/typeshed/third_party/2and3/paramiko/buffered_pipe.pyi,sha256=mvCBsHuL3EIsyewdEIiwUZNYpn7AaSBxcqTH_md14lE,520 +jedi/third_party/typeshed/third_party/2and3/paramiko/channel.pyi,sha256=2smxhSShd9xXKGqHb5MqB6Bo23CpUJIi1dQwHBiOIag,3796 +jedi/third_party/typeshed/third_party/2and3/paramiko/client.pyi,sha256=-zCUwFWZIcgSSwVKiEnzC8jsuiPC_DGdJUNaw1kXQ-s,2932 +jedi/third_party/typeshed/third_party/2and3/paramiko/common.pyi,sha256=MfByis2G6kU5-y4FjhhRTQD5DQaP5OOFrc-ciC9JiKE,3167 +jedi/third_party/typeshed/third_party/2and3/paramiko/compress.pyi,sha256=_nA_oaAuza2Oxg0glDo-ov6uYbAIYlKcrkY5spOfqAk,296 +jedi/third_party/typeshed/third_party/2and3/paramiko/config.pyi,sha256=uxhOYKOIPM7jGe8ZsKKh9f_yNtKEdLdxfFC2mV9nwSc,1170 +jedi/third_party/typeshed/third_party/2and3/paramiko/dsskey.pyi,sha256=RdWJ9CuhBviY1c7FChwLDe_ZTOzLukxqaC1K5A6AmpM,1242 +jedi/third_party/typeshed/third_party/2and3/paramiko/ecdsakey.pyi,sha256=q8KVhmbEGp9_YW_9AYcEx_nKshajW_qzWl8QcKSTv5I,2338 +jedi/third_party/typeshed/third_party/2and3/paramiko/ed25519key.pyi,sha256=4aW1Q8tt2U2QIY5uVuSuAczVFBLkP8PR3_AgniR1tlU,703 +jedi/third_party/typeshed/third_party/2and3/paramiko/file.pyi,sha256=Lu1hmKapmlk3_jd1FcIPbrnz89WVlTNCwY46D4TFbfE,1342 +jedi/third_party/typeshed/third_party/2and3/paramiko/hostkeys.pyi,sha256=S1zc4QbgA7dGlEtcixKZ8WrT2Ok861yy-zU8DLtvZpc,1942 +jedi/third_party/typeshed/third_party/2and3/paramiko/kex_curve25519.pyi,sha256=naqQ5GRL0pVcTXD-_XQX1yXd2EpEk0Uu9vNRTfo1Xws,771 +jedi/third_party/typeshed/third_party/2and3/paramiko/kex_ecdh_nist.pyi,sha256=5n2l13AS1p4jz4LbYhSZiJ1Q5xYt4VYIUYLLvJ61ydk,1112 +jedi/third_party/typeshed/third_party/2and3/paramiko/kex_gex.pyi,sha256=NuQIADC7WgKxmDy2NCSzx4cTCDALv9x5Nlp_YxZ900Y,1023 +jedi/third_party/typeshed/third_party/2and3/paramiko/kex_group1.pyi,sha256=h9Vj1_2oQa6qTdB60kAF7MrpScKW9522kG3FL4SUmvk,679 +jedi/third_party/typeshed/third_party/2and3/paramiko/kex_group14.pyi,sha256=JyCccRukC_ojKvgpoVaTxH7dacQN5ICaJrRU6DX2_ZQ,453 +jedi/third_party/typeshed/third_party/2and3/paramiko/kex_group16.pyi,sha256=8unnknuU2cuPNUKhFO13YzhPsaOXewViTCsW8f9cw3Q,359 +jedi/third_party/typeshed/third_party/2and3/paramiko/kex_gss.pyi,sha256=7v4a1mbwTtuKVNmkU91yWlU7e-8VGVaq96xwsvB3iIw,1539 +jedi/third_party/typeshed/third_party/2and3/paramiko/message.pyi,sha256=6MGhnlQZ53mxrYlQ5JjloSks1tlqUJDAzc7RZeZ9E8M,1496 +jedi/third_party/typeshed/third_party/2and3/paramiko/packet.pyi,sha256=0X8hvx7r-I2siTS7L5IJVzf0GeAmX3BOHXcOxxJuOtc,2187 +jedi/third_party/typeshed/third_party/2and3/paramiko/pipe.pyi,sha256=qnF6412bon86OfW4FrlTJjey2atC9u3eDLQKqH8QDZ0,951 +jedi/third_party/typeshed/third_party/2and3/paramiko/pkey.pyi,sha256=ZtYonbeM4kI4Xu6_eM0wU7aLzHFsEX6M3sG96x7b_2M,1800 +jedi/third_party/typeshed/third_party/2and3/paramiko/primes.pyi,sha256=e2J5npj8PeYfnQq2pW1RLCgMofmSITjDVWH0Z2lmv0Y,308 +jedi/third_party/typeshed/third_party/2and3/paramiko/proxy.pyi,sha256=4VFZ2iL-P85RBWXliik--vmtlAUsngl4CT2giLlxuHg,504 +jedi/third_party/typeshed/third_party/2and3/paramiko/py3compat.pyi,sha256=KWCrIqjmlN5keG1E5Ns6jDa46z8yMym8hJpv-1Deuuc,1053 +jedi/third_party/typeshed/third_party/2and3/paramiko/rsakey.pyi,sha256=uHpfuSfDNTe7MsIdb9H6x5fKd1vP0SAKIcdOerxOTFc,1347 +jedi/third_party/typeshed/third_party/2and3/paramiko/server.pyi,sha256=lyv5SoRjT2tkm3AzCFG8CA9D1OtJKSdCCiQ5fNxfNi0,3062 +jedi/third_party/typeshed/third_party/2and3/paramiko/sftp.pyi,sha256=I81h3XktYUmZyfhBMsJJwWFYOxTiA60IAohoy_ekfZc,1065 +jedi/third_party/typeshed/third_party/2and3/paramiko/sftp_attr.pyi,sha256=7kLm3Cjr6Pm40VuoEzfV_u6zA_Ua2Pknu7-D5FxTpaw,667 +jedi/third_party/typeshed/third_party/2and3/paramiko/sftp_client.pyi,sha256=lgZedQtTqoeS7zSEO2r2Byo6mTO-DJxXgDxmQtRJva8,3133 +jedi/third_party/typeshed/third_party/2and3/paramiko/sftp_file.pyi,sha256=41HlM6ayMJaExhuvTI599gyKLtJhWOgxNTpIcXgkYlo,1356 +jedi/third_party/typeshed/third_party/2and3/paramiko/sftp_handle.pyi,sha256=OnJmN4k7typ9GyVtWukw4CuBvDIDvpWCdBQ4PxGPqJQ,531 +jedi/third_party/typeshed/third_party/2and3/paramiko/sftp_server.pyi,sha256=4aNH4sKvRI-49RNeOzFdSJAnvBnrgy0slFWrQ0AOPsk,1094 +jedi/third_party/typeshed/third_party/2and3/paramiko/sftp_si.pyi,sha256=RICAJB149dHYRnGFNgSwzZapr2Opr9-Eif4UCP1w7OU,1193 +jedi/third_party/typeshed/third_party/2and3/paramiko/ssh_exception.pyi,sha256=Nf27JN0Bt6JPpmMNEBC_LejuvbCi_P-ul9PYDqWd1t8,1454 +jedi/third_party/typeshed/third_party/2and3/paramiko/ssh_gss.pyi,sha256=WmUhwBWyvaof_6oP0ROFfrTo9OWccXMQ8_Q6USJq3bI,2774 +jedi/third_party/typeshed/third_party/2and3/paramiko/transport.pyi,sha256=kfJrcgrIs3Qu4KC7rd4EOcWMtz7ikEMeVqpgbvdMrVA,7945 +jedi/third_party/typeshed/third_party/2and3/paramiko/util.pyi,sha256=dxK3QYafkuBXobGkL0wBrZ3mJPz7ZwU-AFy2-1QaViI,1880 +jedi/third_party/typeshed/third_party/2and3/paramiko/win_pageant.pyi,sha256=X8oLeKZslmregVnQLAwaLDz8q95pCqVJ2ahSz3wVOI4,349 +jedi/third_party/typeshed/third_party/2and3/polib.pyi,sha256=kPN8NED1QJMdtkOwNC1Jh03d_i3iM8iaL7_vLaXoYao,5764 +jedi/third_party/typeshed/third_party/2and3/pyVmomi/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/third_party/2and3/pyVmomi/vim/__init__.pyi,sha256=wddK6G7TpjbfWY1cCqoYTDgoLmqoUWTHC5cmy8he_LI,2197 +jedi/third_party/typeshed/third_party/2and3/pyVmomi/vim/event.pyi,sha256=GIxugpgYOODuc5rSewssVmYlRAZ8qmkC1C38rbD4yhA,395 +jedi/third_party/typeshed/third_party/2and3/pyVmomi/vim/fault.pyi,sha256=LYt9WpvRZNEwWlR55k6l7CxSFbS8k_FLJLjU-TGoP8U,195 +jedi/third_party/typeshed/third_party/2and3/pyVmomi/vim/option.pyi,sha256=YCaLxJmOtTldHIlo984EI6d9ykGsFbelNGuTHL70Ar8,204 +jedi/third_party/typeshed/third_party/2and3/pyVmomi/vim/view.pyi,sha256=hLDI0bDPEkPnxpLliSBlcmYgond-3RCxWc1_3NU-5Bc,586 +jedi/third_party/typeshed/third_party/2and3/pyVmomi/vmodl/__init__.pyi,sha256=DuLSUTy9Szmd-_pUmuOcSXoaWrnCPCH3HU9xUtW6AVo,74 +jedi/third_party/typeshed/third_party/2and3/pyVmomi/vmodl/fault.pyi,sha256=l8VLbRpKzACCz_wqwXLJkyxLwYRS0XiUl9JmKy2Vixw,116 +jedi/third_party/typeshed/third_party/2and3/pyVmomi/vmodl/query.pyi,sha256=h0HhTZVJIG0t0yvxp3bgwjVJEOJDyO1iDmPPShwj5C8,1430 +jedi/third_party/typeshed/third_party/2and3/pycurl.pyi,sha256=PkqfXT-xgGm4Sq1bKyxtX7Fk1kGI4Wx4mt2DFrqObRM,13755 +jedi/third_party/typeshed/third_party/2and3/pymysql/__init__.pyi,sha256=uughCRiT4wuIMgn5-CDOZwZWaFcJg2ZzWSqEVK6AU6k,1625 +jedi/third_party/typeshed/third_party/2and3/pymysql/charset.pyi,sha256=8pQ9uIfBVCKgQE42rgAV8Oc1RAUiR7c8k2z4w64zVso,327 +jedi/third_party/typeshed/third_party/2and3/pymysql/connections.pyi,sha256=Eno05u1fJ2WBME7vc-WAzP0ztvE4Khh9JbZ1VqI0Ci4,5627 +jedi/third_party/typeshed/third_party/2and3/pymysql/constants/CLIENT.pyi,sha256=vnIE4D-CCZ2-TwRYvficDcBx-luonNhHmsuxq8M0V6U,308 +jedi/third_party/typeshed/third_party/2and3/pymysql/constants/COMMAND.pyi,sha256=SAol0UV6ttKwz1i9DUn_DydO1HByeSodgDC3Qyv1BTA,407 +jedi/third_party/typeshed/third_party/2and3/pymysql/constants/ER.pyi,sha256=0O0FmmEhzeeEUmlkmSNluHuZVhhlTOIEHq1Yc-hXLFY,11280 +jedi/third_party/typeshed/third_party/2and3/pymysql/constants/FIELD_TYPE.pyi,sha256=112f_ZZ3GXSiGv5q3fY04FLq-NMWWh8zDSsneoGKfzE,354 +jedi/third_party/typeshed/third_party/2and3/pymysql/constants/FLAG.pyi,sha256=LJ19iNTKdV_tqShn5GyJbTc3JtGr7IesoCQy058KPx0,226 +jedi/third_party/typeshed/third_party/2and3/pymysql/constants/SERVER_STATUS.pyi,sha256=uoVJx08QJpMZzBiyZXTG1Hr7zcSahGx2zR89eOtYxec,331 +jedi/third_party/typeshed/third_party/2and3/pymysql/constants/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/third_party/2and3/pymysql/converters.pyi,sha256=JNCfG3LgOn6QUtAQm7Dkf5j5MAKasP9tOLDWGzD30jc,1331 +jedi/third_party/typeshed/third_party/2and3/pymysql/cursors.pyi,sha256=V0DYB2ILjVUjOc79rveMPALidnQ3ZlfRRiv_ZS608Hw,2180 +jedi/third_party/typeshed/third_party/2and3/pymysql/err.pyi,sha256=vz8muipV5ryF9NuS_6aya2mWwgAJ9JzdhAN-NvyhyBk,606 +jedi/third_party/typeshed/third_party/2and3/pymysql/times.pyi,sha256=N3iYLkF3MEtwRa8muKj4ViRXS7ON8fcW5XANu2VMxXo,170 +jedi/third_party/typeshed/third_party/2and3/pymysql/util.pyi,sha256=fKG9sTGCjyLG5L-n5K8STqna8XVfKzQ2a-X46ozbk20,66 +jedi/third_party/typeshed/third_party/2and3/pynamodb/__init__.pyi,sha256=qp8cF6TlhBd5820jKiBRcrR-qumnONUUlUKCzf4rib0,17 +jedi/third_party/typeshed/third_party/2and3/pynamodb/attributes.pyi,sha256=-GsbmMFuySBUZVphL5s770L_BinXheI-_8jEZWFcaa0,4342 +jedi/third_party/typeshed/third_party/2and3/pynamodb/connection/__init__.pyi,sha256=tIcusRqjD5cbw9gURA6V6gJS3kotd6qBxua-WeuUSfg,135 +jedi/third_party/typeshed/third_party/2and3/pynamodb/connection/base.pyi,sha256=lRRsdiy4q2wxWEKFd9f70MNqsUvGiaz3HbEYW366KXA,6089 +jedi/third_party/typeshed/third_party/2and3/pynamodb/connection/table.pyi,sha256=ybdRMvW7ihut6ROMqnP8Di_1janFYH82iN2BAO4Rreg,3825 +jedi/third_party/typeshed/third_party/2and3/pynamodb/connection/util.pyi,sha256=VelfJ8xvQieSdjx4hkp5g0W73tyArG2qobRxY2xccWs,67 +jedi/third_party/typeshed/third_party/2and3/pynamodb/constants.pyi,sha256=2DxSY2CwYrKx_uT0QKHorzmekcf6bcKWxQ5lZp6PRco,3038 +jedi/third_party/typeshed/third_party/2and3/pynamodb/exceptions.pyi,sha256=oN2x-x1qyp5WVRK-jF9rVjzQIHiUjNO5RAwfRTQSRdA,887 +jedi/third_party/typeshed/third_party/2and3/pynamodb/indexes.pyi,sha256=a5MVXShQkb2UUh5hJiX1S_UaLJ3Rzqp2IKB9ZfuU2SQ,1052 +jedi/third_party/typeshed/third_party/2and3/pynamodb/models.pyi,sha256=zg1iyUvCjODMELDKSPXncRXAZfyr-TePSzI61qfjUeo,5702 +jedi/third_party/typeshed/third_party/2and3/pynamodb/settings.pyi,sha256=nfytWdsaKGyoTVPsIi0B-15yecRvNQ61Y3L_sT0qpvo,145 +jedi/third_party/typeshed/third_party/2and3/pynamodb/throttle.pyi,sha256=Xnxx2caEi3AgLinoHSCVZUkuEPV5XxwMw83tpUaUvRk,472 +jedi/third_party/typeshed/third_party/2and3/pynamodb/types.pyi,sha256=BCI-zF5K_mOWPzGVixMvVXqISqSxWokGjR0aVosyvK0,57 +jedi/third_party/typeshed/third_party/2and3/pyre_extensions.pyi,sha256=CJ0jUa1yruR4a_cVqcFRpORBpYGea9C5vQ5lwGfWUZI,267 +jedi/third_party/typeshed/third_party/2and3/pytz/__init__.pyi,sha256=-LDivLI7EkEywpVQfVyMFuVNEDZFbod-zNxGNlQO_A8,1892 +jedi/third_party/typeshed/third_party/2and3/redis/__init__.pyi,sha256=pNlwX9y10ONwvlK1yzT9MMA6hQx06nW8u1qHrVpMmEE,829 +jedi/third_party/typeshed/third_party/2and3/redis/client.pyi,sha256=hKMjp_LRcqsk8xf2tv9HRdFVqqqJ46QH1MHbRgAReIE,26034 +jedi/third_party/typeshed/third_party/2and3/redis/connection.pyi,sha256=aMlTz2YmsHb6igv5yajn4gJswPs9frFa_grs2eEqCLc,5595 +jedi/third_party/typeshed/third_party/2and3/redis/exceptions.pyi,sha256=d2fmJa9u5GrrAaST8JgdfpFsBxKupvKLb2iH9VgP7Wg,569 +jedi/third_party/typeshed/third_party/2and3/redis/utils.pyi,sha256=a5cyDCASB0E1ZuBKK33dZI7ZBcr2rISkiWU5alhjJbA,136 +jedi/third_party/typeshed/third_party/2and3/requests/__init__.pyi,sha256=LIORHwdjl-Ogkvvd5Fs_GZS3k_LcEOd9qglRpTQnYDs,928 +jedi/third_party/typeshed/third_party/2and3/requests/adapters.pyi,sha256=OfzqJV64CBHmzwroW2Tm14e5kZyCu_L6NJWSUhBgKLI,2925 +jedi/third_party/typeshed/third_party/2and3/requests/api.pyi,sha256=Gcw_jo5GO0jbLDMvukc10WFuXCngBEjyTbTTNgvgeMY,1216 +jedi/third_party/typeshed/third_party/2and3/requests/auth.pyi,sha256=q63njtnTjj3AICWDacBKsIS7DjLikQsJwRd7CtWa26o,1148 +jedi/third_party/typeshed/third_party/2and3/requests/compat.pyi,sha256=d3SHDa-UnNy17Mv0aio7kQEf6qsRzEpgA31-MwWuBIo,58 +jedi/third_party/typeshed/third_party/2and3/requests/cookies.pyi,sha256=wn0Y-_dNxjgTjY9WfRuJplkBLY41YyhUS4cDAiFGGo8,2033 +jedi/third_party/typeshed/third_party/2and3/requests/exceptions.pyi,sha256=RxHFR2hELgvFoBEa0AKeYaWNmjDyrWJrvJ6RKAr24UI,1259 +jedi/third_party/typeshed/third_party/2and3/requests/hooks.pyi,sha256=daf3Tp5DknV7lyWtGe5n0jV7U0I_6HwoMpOnlgCdYv0,117 +jedi/third_party/typeshed/third_party/2and3/requests/models.pyi,sha256=ynI5o3SRKsMTkXyxba2NCAVdTtGgC1hSqQj-4QXMLSs,4578 +jedi/third_party/typeshed/third_party/2and3/requests/packages/__init__.pyi,sha256=cnNTJT8mNb7zJ8vT6jKdpiWxIYAZMw3Qz6frelGgzbs,158 +jedi/third_party/typeshed/third_party/2and3/requests/packages/urllib3/__init__.pyi,sha256=noXIj8HyCJNtp4CXGIfsy6-yAi7pT1P4uTn-_vYdGPo,825 +jedi/third_party/typeshed/third_party/2and3/requests/packages/urllib3/_collections.pyi,sha256=aHphg2k55d7e0tqFKmSyIvsa2vRgJNA3rr_GvV28BF8,1535 +jedi/third_party/typeshed/third_party/2and3/requests/packages/urllib3/connection.pyi,sha256=gW4ugIttzymKZSoRvGOSD65mT69TANr35_NBfNIn8mk,1907 +jedi/third_party/typeshed/third_party/2and3/requests/packages/urllib3/connectionpool.pyi,sha256=CQdrc51bqLxZG_Sd_u23SPcIxffQtggfp1sS8FJLiog,3170 +jedi/third_party/typeshed/third_party/2and3/requests/packages/urllib3/contrib/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/third_party/2and3/requests/packages/urllib3/exceptions.pyi,sha256=TxvMswYXJdgim9frBpmQbC5q_Cu8SM37vW2ZFrfvH20,1413 +jedi/third_party/typeshed/third_party/2and3/requests/packages/urllib3/fields.pyi,sha256=ol7EAXCmRCqnANBpCeua5OHNjWGz3aCVf_2j-eIZlgc,442 +jedi/third_party/typeshed/third_party/2and3/requests/packages/urllib3/filepost.pyi,sha256=VdQ66F4SjusF9qTkUP8U0yUbrRqIJv8DWfTISgJ7N3g,244 +jedi/third_party/typeshed/third_party/2and3/requests/packages/urllib3/packages/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/third_party/2and3/requests/packages/urllib3/packages/ssl_match_hostname/__init__.pyi,sha256=8-WNQ8HsF7JWBeN1n0qoPU84HsAouCrHj4R5qrGKrVQ,88 +jedi/third_party/typeshed/third_party/2and3/requests/packages/urllib3/packages/ssl_match_hostname/_implementation.pyi,sha256=jAdLMMvdxdszZCIdVGxRZw7i5waIBqb4RqwketJqMr4,81 +jedi/third_party/typeshed/third_party/2and3/requests/packages/urllib3/poolmanager.pyi,sha256=66XnVPM1snW_kgKDX2_21PwyN-As7xtgAiCEHXf6U14,1309 +jedi/third_party/typeshed/third_party/2and3/requests/packages/urllib3/request.pyi,sha256=chC2ml6eAcw5E2ILdPySz_aZ9OQMeD5nx0hlmYVfkz8,534 +jedi/third_party/typeshed/third_party/2and3/requests/packages/urllib3/response.pyi,sha256=Qpkf8CpEW5s2pKMxwAVfgz2zQ4miW7kyd-FiOeHyvG8,1788 +jedi/third_party/typeshed/third_party/2and3/requests/packages/urllib3/util/__init__.pyi,sha256=xacNymxEsCZp5wlKo15L8WSYXzhruHcRtGMqamjArZM,615 +jedi/third_party/typeshed/third_party/2and3/requests/packages/urllib3/util/connection.pyi,sha256=XaFYtI2YyZGnOVivtXsLW6jMSb6FKpfIh3aIQInJLR0,188 +jedi/third_party/typeshed/third_party/2and3/requests/packages/urllib3/util/request.pyi,sha256=hbniWmj2f5WG5m6qurjL54K3VzMhAffiSMa-rr1CO0s,227 +jedi/third_party/typeshed/third_party/2and3/requests/packages/urllib3/util/response.pyi,sha256=Q0CWgpQG5zMPxwc0LOr5eQOEfmOqglfpydPfBVxiStc,27 +jedi/third_party/typeshed/third_party/2and3/requests/packages/urllib3/util/retry.pyi,sha256=DWGmbAvdoZc9gL9-7N-wU4A-SmtfWYpKmSRoZFno-kc,1161 +jedi/third_party/typeshed/third_party/2and3/requests/packages/urllib3/util/ssl_.pyi,sha256=VY_E6OYlixXdjHOT_FYYFjaECs7n8BxzU1O9rAvp1hI,691 +jedi/third_party/typeshed/third_party/2and3/requests/packages/urllib3/util/timeout.pyi,sha256=EojIS91DNeDBfY9TONTAuJkoR6LmHGeX3IYNmLZdvWY,499 +jedi/third_party/typeshed/third_party/2and3/requests/packages/urllib3/util/url.pyi,sha256=iXePrO9HE5OJVXeWx0nu4PKX8ZX3ScJt1KgPrYpUtrA,492 +jedi/third_party/typeshed/third_party/2and3/requests/sessions.pyi,sha256=qpxhe7nKCvlYZbWU_HcgynucxH5vvj7D31tEIkNq6R8,4727 +jedi/third_party/typeshed/third_party/2and3/requests/status_codes.pyi,sha256=miO3NECO-3yQmK56zg67HzZSbx1eER1xmKABjoDMuXs,35 +jedi/third_party/typeshed/third_party/2and3/requests/structures.pyi,sha256=7Dr21XygxBfDVhOr83FfWEiJNt_W6uNzOmyLfermE_o,968 +jedi/third_party/typeshed/third_party/2and3/requests/utils.pyi,sha256=cYgq8lcqt9s25H2SfQ_TuTvZfGFMlpJEH6yW43yX_IE,1989 +jedi/third_party/typeshed/third_party/2and3/retry/__init__.pyi,sha256=oURuYy9CoiIEbeBziwmNwAexn1hXNQlhL1_lH15UZZw,32 +jedi/third_party/typeshed/third_party/2and3/retry/api.pyi,sha256=fnNyTJFt_8RiZ5QT87GTrUPQvH8Lqrwm7WXT74s51-g,935 +jedi/third_party/typeshed/third_party/2and3/simplejson/__init__.pyi,sha256=r6sZ4B_hGIz2y83FiFs5WvQweXydgb2GfykOzF0Gd3g,538 +jedi/third_party/typeshed/third_party/2and3/simplejson/decoder.pyi,sha256=ijcE8aSOnNvjIOQ0s3eiKjq7GYcIOGe9_lESZPAmweM,229 +jedi/third_party/typeshed/third_party/2and3/simplejson/encoder.pyi,sha256=Ju-aWi4B6WNQ3G-6n7VQw7idFNeKMhS9g_b7XcHSXLo,264 +jedi/third_party/typeshed/third_party/2and3/simplejson/scanner.pyi,sha256=_AUT1GJRNYopQ98J8rRXtig5nCunjXLoiCf5gN9dpXo,262 +jedi/third_party/typeshed/third_party/2and3/singledispatch.pyi,sha256=snB5T00WMlJzaeON3HT586VTC_rlHBZ5d4Q-Seaj1VM,624 +jedi/third_party/typeshed/third_party/2and3/slugify/__init__.pyi,sha256=oS6sazgR3xHmORcsqDRk6ZulbTzRF1UJaDw1V2i9428,46 +jedi/third_party/typeshed/third_party/2and3/slugify/slugify.pyi,sha256=dRDus-8qkVm5OBBP31a-RdSahYcrn9HGYJcgTa_LPBI,561 +jedi/third_party/typeshed/third_party/2and3/slugify/special.pyi,sha256=Nw6LzOLeZREXSk-gK6A_pqAcurWVlbnE-TAzw6pkMwk,279 +jedi/third_party/typeshed/third_party/2and3/tabulate.pyi,sha256=JJ7kYLQU-3I7s68wXecrchQU6zKeYPHH7mb6yGdcsHE,1413 +jedi/third_party/typeshed/third_party/2and3/termcolor.pyi,sha256=bvMVbmC_0sADtLLJ1gTgz0qy7u6z0nxMmPyumxJurUM,350 +jedi/third_party/typeshed/third_party/2and3/toml.pyi,sha256=wqxUoqPomQnEzd6_LnLALaHqfgqKJH2O4wbLkCBA61M,697 +jedi/third_party/typeshed/third_party/2and3/typing_extensions.pyi,sha256=Yv2B_WZlMZ9ZF5LzirIeruXF56kHMW22DLFGtnx_3l8,3358 +jedi/third_party/typeshed/third_party/2and3/tzlocal/__init__.pyi,sha256=gZwxQC65kbnoMEOnhjkBKqvx2aJayhHsQ52R1s_Bl2E,104 +jedi/third_party/typeshed/third_party/2and3/ujson.pyi,sha256=YuEF8oRji3rvUknBhjJBa8bJqdZD2H07ZGDIUwyjSP0,938 +jedi/third_party/typeshed/third_party/2and3/werkzeug/__init__.pyi,sha256=Z4tIEffX6wFRXuakZjYqPUNOnfUbr7STWtzAAWlF11E,5307 +jedi/third_party/typeshed/third_party/2and3/werkzeug/_compat.pyi,sha256=XYwsJu2d8JZH41AXqSDlRaODFAG8hzsrIVrjlnHAaDE,1271 +jedi/third_party/typeshed/third_party/2and3/werkzeug/_internal.pyi,sha256=xff0Vbs8wNEN9bykzs7k9bgLdhDY-DiIUj1NbsY0ZOE,644 +jedi/third_party/typeshed/third_party/2and3/werkzeug/_reloader.pyi,sha256=QCQ4dGw3MM4rhwKmKntyLJ7JB-neMbnRuRrm2scpZgE,826 +jedi/third_party/typeshed/third_party/2and3/werkzeug/contrib/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/third_party/2and3/werkzeug/contrib/atom.pyi,sha256=LAPRofmeDhSpU418KTzoATp5cB2D9daWgcgP_A2YrDI,1136 +jedi/third_party/typeshed/third_party/2and3/werkzeug/contrib/cache.pyi,sha256=qzO8UcufWrYMdYREIG3H0rutk922G-3guC4zNJoWFlI,3375 +jedi/third_party/typeshed/third_party/2and3/werkzeug/contrib/fixers.pyi,sha256=mvPRIfbtHVRE98seLNNyHSonlGnl7uxSZC0s9TfSEa0,1650 +jedi/third_party/typeshed/third_party/2and3/werkzeug/contrib/iterio.pyi,sha256=2yRg8voINYQF23YfRkpGPXaaaX4jpupooKthKwfX4kU,1202 +jedi/third_party/typeshed/third_party/2and3/werkzeug/contrib/jsrouting.pyi,sha256=4s_tRK57Yu_n1O1Zk85Nty48UaBHu6AsgeHHxLTS0ko,325 +jedi/third_party/typeshed/third_party/2and3/werkzeug/contrib/limiter.pyi,sha256=qLbYIPMTBsgaYe74m3NerbQ1AkW_57LKwY0iW_zaIXU,192 +jedi/third_party/typeshed/third_party/2and3/werkzeug/contrib/lint.pyi,sha256=vnPiJs5jXekVZmugPlmkXITga2URy2gh6vngdxkn_Ls,32 +jedi/third_party/typeshed/third_party/2and3/werkzeug/contrib/profiler.pyi,sha256=HtjfNVB5ydRd_FfwMkAzJ05aHtFcN2Eecjf2nHQfJVM,315 +jedi/third_party/typeshed/third_party/2and3/werkzeug/contrib/securecookie.pyi,sha256=EUmDrvenhGHAJ9GUO20vYOlwNon9XoAVABBxREOqnBs,1212 +jedi/third_party/typeshed/third_party/2and3/werkzeug/contrib/sessions.pyi,sha256=7V-lJ3FrbkOIp0RK42KtlhntH3SinErVLH78sgu5Zes,2074 +jedi/third_party/typeshed/third_party/2and3/werkzeug/contrib/testtools.pyi,sha256=OOwXK52N2t35kMCMl0B4zBK-d85PcqGG_nOAbhsEAD8,188 +jedi/third_party/typeshed/third_party/2and3/werkzeug/contrib/wrappers.pyi,sha256=AdT0yvz1TaiY0mn6zlt_ET3DKsTywVVjkErC769c6L0,603 +jedi/third_party/typeshed/third_party/2and3/werkzeug/datastructures.pyi,sha256=nzcm32yD5-va5Toukm8sXENL4F6AUFxyAD3iAkF2OQg,15587 +jedi/third_party/typeshed/third_party/2and3/werkzeug/debug/__init__.pyi,sha256=Th_QGEjQE3niHm77xHcmtgRUFZxFd2IsIUhqNGymRdE,1384 +jedi/third_party/typeshed/third_party/2and3/werkzeug/debug/console.pyi,sha256=DBWA7QK0dluokniouOizZ1h5oAIcWi47N7i6UiSDRiU,1207 +jedi/third_party/typeshed/third_party/2and3/werkzeug/debug/repr.pyi,sha256=dqtVFNOfcjINAMzaJ-tHiW6SO37ZwVtVT1J7SS7yWh0,846 +jedi/third_party/typeshed/third_party/2and3/werkzeug/debug/tbtools.pyi,sha256=tbrAcENEbWQEOxxSrEKr_5GA3i-OaKn7K5QPA4Sk6TU,1687 +jedi/third_party/typeshed/third_party/2and3/werkzeug/exceptions.pyi,sha256=xvGHuWowxhPqNfh4VqLPjTsRubPoapE3-Jo_k7T3UMk,4942 +jedi/third_party/typeshed/third_party/2and3/werkzeug/filesystem.pyi,sha256=te3jyfyiDfsnFU0MEYw-wB5jBgWgw4VAbIpQzGAs9Vs,169 +jedi/third_party/typeshed/third_party/2and3/werkzeug/formparser.pyi,sha256=cr1vdd95MjSLCA0VyEutG3F4ezKQpuY54LSj3d03F7M,3702 +jedi/third_party/typeshed/third_party/2and3/werkzeug/http.pyi,sha256=gQCvsTijEmaeJXpTMvKOFt_o-XTAtNtfSggTeBqhSq4,5335 +jedi/third_party/typeshed/third_party/2and3/werkzeug/local.pyi,sha256=ZWdRsm--5mtPjtmAH_7-0JBQmvQUfAba_VbReVyAVIg,2315 +jedi/third_party/typeshed/third_party/2and3/werkzeug/middleware/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/third_party/2and3/werkzeug/middleware/dispatcher.pyi,sha256=CYiiHkHrQ9Qlc0JmtZvUBWUPxeUJDjaxzwBbriStxo8,451 +jedi/third_party/typeshed/third_party/2and3/werkzeug/middleware/http_proxy.pyi,sha256=5S5vt4U681ugR9lV5G6ZFkopoSw9tHCocHenpeSJAA4,652 +jedi/third_party/typeshed/third_party/2and3/werkzeug/middleware/lint.pyi,sha256=fKmZa4yVYgObsnOwlVaYh7jo9bQrVQu4BA15g2uzeLY,2389 +jedi/third_party/typeshed/third_party/2and3/werkzeug/middleware/profiler.pyi,sha256=_DWwg99Hb3nYORrYOngd_L6LGGV5rWjIC1EXuucQ6LA,569 +jedi/third_party/typeshed/third_party/2and3/werkzeug/middleware/proxy_fix.pyi,sha256=oJCpfNfoF8oKte5Ikmu4XBdYv_4pJqgFGOf86Iq47u8,712 +jedi/third_party/typeshed/third_party/2and3/werkzeug/middleware/shared_data.pyi,sha256=JVOyPz2zNzW2AlLdc0uAQQ10SQ3Ved-rLzv3cVdwVwA,1295 +jedi/third_party/typeshed/third_party/2and3/werkzeug/posixemulation.pyi,sha256=L5e2d7yb54c171JGU8g_r6G4qIDx4Av28BY12iiwT6w,199 +jedi/third_party/typeshed/third_party/2and3/werkzeug/routing.pyi,sha256=dY-lLGVr0rQ-p_y-8xP5papvCEuSBuaFkNeC8ADEN_M,6802 +jedi/third_party/typeshed/third_party/2and3/werkzeug/script.pyi,sha256=ifTEJ5yx1gam9_q9RnsxmiN3W4GRvegb2kRTfZ-z_0g,768 +jedi/third_party/typeshed/third_party/2and3/werkzeug/security.pyi,sha256=utyGUghv_u_Rsb4p48VUyXuDJuLo621MJZuafdW4Gd4,524 +jedi/third_party/typeshed/third_party/2and3/werkzeug/serving.pyi,sha256=gNa8EOCapHswvpWYh4qYN1783afRO18_26L5jYmGRaU,4057 +jedi/third_party/typeshed/third_party/2and3/werkzeug/test.pyi,sha256=ICgRxquqP1H5-8Tlk7UAn2DXcl7IvF2ZV_7LV93SZng,6138 +jedi/third_party/typeshed/third_party/2and3/werkzeug/testapp.pyi,sha256=O0O2-rhExeAFHWIryQcjWpQhGPQfkkU8SuV0uLbbpco,226 +jedi/third_party/typeshed/third_party/2and3/werkzeug/urls.pyi,sha256=CKx_xMwXyR1EXEx7DFrXZIr8OdrpyZ3m2htWiCWGvgQ,2898 +jedi/third_party/typeshed/third_party/2and3/werkzeug/useragents.pyi,sha256=4LzBjciKyh8zZcufKX8SjjvDAu_rrCsEdxr4-LwZbKY,431 +jedi/third_party/typeshed/third_party/2and3/werkzeug/utils.pyi,sha256=kPk0JhxbcvYk-AAWyo3s-8nhsUxm32PpEa5hjVTilHw,1962 +jedi/third_party/typeshed/third_party/2and3/werkzeug/wrappers.pyi,sha256=uWHxu1UBSC9WlMmZ-HbIk71sgRb0-euFZ5lY4xUh5g0,9115 +jedi/third_party/typeshed/third_party/2and3/werkzeug/wsgi.pyi,sha256=1TOv_UGcc16Znog_D-iNwXHnnlIwSfFk97mA_zcL2cY,3030 +jedi/third_party/typeshed/third_party/2and3/yaml/__init__.pyi,sha256=bElbXZu32G81wGc_WxNeXTnPxSStYTaJFRzrPjj8kxU,6559 +jedi/third_party/typeshed/third_party/2and3/yaml/composer.pyi,sha256=Vl74-4GCncmKS-eb06xYTS5KZtmmOl_4DlXceFg_lbY,496 +jedi/third_party/typeshed/third_party/2and3/yaml/constructor.pyi,sha256=K8dllpXyNJoRWMHkbGLYZJvnoNO33n3nv3VCdRWOR8c,3603 +jedi/third_party/typeshed/third_party/2and3/yaml/cyaml.pyi,sha256=1mixUYME26X3XC9R1onrnbH91b5S94KPpnVZRc0Z0CA,2292 +jedi/third_party/typeshed/third_party/2and3/yaml/dumper.pyi,sha256=Q3Byffe7aMWtkkC0wdCgWognnXnQch-sHziRFxQASdo,1548 +jedi/third_party/typeshed/third_party/2and3/yaml/emitter.pyi,sha256=TPp-ubnhpVa6Vp89RdhjjfIMbMoI35XSj5t5_pL5OSE,3802 +jedi/third_party/typeshed/third_party/2and3/yaml/error.pyi,sha256=kYhKOUoSrnEQLvgIvG_qmPKgMQ53ADqFHOPPDTlRTs4,535 +jedi/third_party/typeshed/third_party/2and3/yaml/events.pyi,sha256=IXJuqeHbEQtHZ4mD36QQ1-CAQaLbKua8JEZ-qh7jPKg,1662 +jedi/third_party/typeshed/third_party/2and3/yaml/loader.pyi,sha256=Q_smlF0bYLSXJ8O9TH93ErQmInWH0S8dqibxbXG6API,767 +jedi/third_party/typeshed/third_party/2and3/yaml/nodes.pyi,sha256=HXEU6EM5Z7O0WqO8hCQbRXW_BCGYAzK68xKTZC5yDJs,685 +jedi/third_party/typeshed/third_party/2and3/yaml/parser.pyi,sha256=0uGiWaCcBAoSQBsXUVRqYGAevPu8GLG5ANORAGS_snE,1664 +jedi/third_party/typeshed/third_party/2and3/yaml/reader.pyi,sha256=i91dNQcOijQHle6687O3xJHWAVy5Sq_k-ko79nolORo,832 +jedi/third_party/typeshed/third_party/2and3/yaml/representer.pyi,sha256=J7rrcGo3XvshSlUyHGbJXMprquSaD3oTHv51VwqWr3Y,2185 +jedi/third_party/typeshed/third_party/2and3/yaml/resolver.pyi,sha256=h32kNW_kLa4Ckxc8DxTHcsFvvgvYKcQQ7lFsV3Pt3s4,786 +jedi/third_party/typeshed/third_party/2and3/yaml/scanner.pyi,sha256=Ly12oPYyJVNrdODBM-F9dVO1EzK3hiiItMgay0hDQAE,3573 +jedi/third_party/typeshed/third_party/2and3/yaml/serializer.pyi,sha256=W27WLPu0g0Cm6vnExbuG3NGLdzUK8tuPM17SSEwY4HU,666 +jedi/third_party/typeshed/third_party/2and3/yaml/tokens.pyi,sha256=lRuHaCHbPMRTOm3WEhanBssRRnJHUiGh1mjNmE4CND8,1792 +jedi/third_party/typeshed/third_party/3/aiofiles/__init__.pyi,sha256=JV9ztGDgZgmwrcgLqJ_R6o8Fgf3cmJWE5MgYjP2BEE0,37 +jedi/third_party/typeshed/third_party/3/aiofiles/base.pyi,sha256=gL3zcEhpb3ZeAHKbouMayq0UIzTDrsE8oTwKU8Yhyq0,1490 +jedi/third_party/typeshed/third_party/3/aiofiles/os.pyi,sha256=G9ZSixzRK7_9tZ5sSjqhp-c7Uy5f8tfI_SEQUwYnScw,1040 +jedi/third_party/typeshed/third_party/3/aiofiles/threadpool/__init__.pyi,sha256=plwVo_uI0AiOap217i7Ef_Gh_TGyOOeJren5WnTIZds,2812 +jedi/third_party/typeshed/third_party/3/aiofiles/threadpool/binary.pyi,sha256=xmn9nxqyzM5XQCr5H8sx2xzW7YkqAOQ159cL1yljyIA,1619 +jedi/third_party/typeshed/third_party/3/aiofiles/threadpool/text.pyi,sha256=X4W8oOVHyTrz32gJ-W_-rYQIw9A92MUd1pp3okUG3xY,1416 +jedi/third_party/typeshed/third_party/3/contextvars.pyi,sha256=vR-ubUfhlQVgLJbJzuVOM5UTc-sFCVSEg2EzcqLMxzI,1405 +jedi/third_party/typeshed/third_party/3/dataclasses.pyi,sha256=KYjW7iSlZ42rrD1Z34CvtIjUSzOTm2lcLozDVSAOkSo,2737 +jedi/third_party/typeshed/third_party/3/docutils/__init__.pyi,sha256=3fBxcSppJr6EOEcUojvflG3Eegg7lv2Qp0dNQQILrP4,63 +jedi/third_party/typeshed/third_party/3/docutils/examples.pyi,sha256=3DheJVl7ojvJt4_YF7b1hRFNExi-vO9IWxtfojfi0uo,80 +jedi/third_party/typeshed/third_party/3/docutils/nodes.pyi,sha256=yxmAtZCJ_mCnQ6pH3u3qACugJ_Tpis4DrrkGGTyIcTk,203 +jedi/third_party/typeshed/third_party/3/docutils/parsers/__init__.pyi,sha256=3fBxcSppJr6EOEcUojvflG3Eegg7lv2Qp0dNQQILrP4,63 +jedi/third_party/typeshed/third_party/3/docutils/parsers/rst/__init__.pyi,sha256=3fBxcSppJr6EOEcUojvflG3Eegg7lv2Qp0dNQQILrP4,63 +jedi/third_party/typeshed/third_party/3/docutils/parsers/rst/nodes.pyi,sha256=3fBxcSppJr6EOEcUojvflG3Eegg7lv2Qp0dNQQILrP4,63 +jedi/third_party/typeshed/third_party/3/docutils/parsers/rst/roles.pyi,sha256=7P4PG1OuDMfSK1DnTQzcOtAeQVqUViHtNXrn3G8hjCo,418 +jedi/third_party/typeshed/third_party/3/docutils/parsers/rst/states.pyi,sha256=qb0d-B857-wAVpdJ7vT06HNQRkpaTDj1YXl3cOWzqVs,115 +jedi/third_party/typeshed/third_party/3/filelock/__init__.pyi,sha256=diWa8QPjqlZ7BhKzJxWLqfFHOgE3XYRWfe06UbvgWlU,1789 +jedi/third_party/typeshed/third_party/3/freezegun/__init__.pyi,sha256=xM4QVDAOY8pmP9Isl_PcX_TU5zDCY7rP0U5dY9pWQzE,44 +jedi/third_party/typeshed/third_party/3/freezegun/api.pyi,sha256=6Infm2WmoBzTquz0uTNPmAYJ9b8sE8cEHuWo2tMaPLY,2266 +jedi/third_party/typeshed/third_party/3/frozendict.pyi,sha256=E89ILrzNgYcRBsm_vnQLOvKuit1t2WhnQVdq60lLeuM,895 +jedi/third_party/typeshed/third_party/3/jwt/__init__.pyi,sha256=975_sUWTv0BaJ04jZpVTmd7WNFmu25f82KqqMReqI3k,1724 +jedi/third_party/typeshed/third_party/3/jwt/algorithms.pyi,sha256=Vp1NVzBfM8jz0VJGhop3UOnKXa1mmJSNI3u0iv_-N70,4299 +jedi/third_party/typeshed/third_party/3/jwt/contrib/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/third_party/3/jwt/contrib/algorithms/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/third_party/3/jwt/contrib/algorithms/py_ecdsa.pyi,sha256=43zFcZpLRNwzuol7DXZi7jGaQ0M6jDzfyTNeWsuwtRk,251 +jedi/third_party/typeshed/third_party/3/jwt/contrib/algorithms/pycrypto.pyi,sha256=w-Prvq6u6oOOCt6KPuTT1p86AW7cABIOj8iDa00gvyM,252 +jedi/third_party/typeshed/third_party/3/orjson.pyi,sha256=BKaBOXNbLXb2MHYpT8BwCh78j8HagLQq51uZY0Dq5nU,656 +jedi/third_party/typeshed/third_party/3/pkg_resources/__init__.pyi,sha256=h-i-Ph-0RjoeDFw5lowMgeyOK73tbkz_iaP28vyYUsU,12105 +jedi/third_party/typeshed/third_party/3/pkg_resources/py31compat.pyi,sha256=ouFLzqmJqfMmT4orlwN1utMnk2R5vHeXxDSk2FI-7I4,56 +jedi/third_party/typeshed/third_party/3/pyrfc3339/__init__.pyi,sha256=GdEm76Fq93-yKV0jkd5FMP5HR8CCpDV6-1R888e5sI0,79 +jedi/third_party/typeshed/third_party/3/pyrfc3339/generator.pyi,sha256=Y8yuzXtNLGik4y6l4TgvvU9ehZGNUK0Pe-MZVvddL4A,139 +jedi/third_party/typeshed/third_party/3/pyrfc3339/parser.pyi,sha256=E4529DNPk1MqcLAd-DgDjRo9onMQzi6rquEEIDZgZ_A,118 +jedi/third_party/typeshed/third_party/3/pyrfc3339/utils.pyi,sha256=wxuOjaaxzHH_PlMf8YxP4oVh5Oq_QayX3Kdfz9CHD_8,447 +jedi/third_party/typeshed/third_party/3/six/__init__.pyi,sha256=43jcx_IPU45XeUJ44qydi-un8-jRZFH4kya6OUlkuvw,4169 +jedi/third_party/typeshed/third_party/3/six/moves/BaseHTTPServer.pyi,sha256=vtBUJUabTrIVK97Cn0MhLUhHSlbmHB8QgQlWwadH-6w,26 +jedi/third_party/typeshed/third_party/3/six/moves/CGIHTTPServer.pyi,sha256=vtBUJUabTrIVK97Cn0MhLUhHSlbmHB8QgQlWwadH-6w,26 +jedi/third_party/typeshed/third_party/3/six/moves/SimpleHTTPServer.pyi,sha256=vtBUJUabTrIVK97Cn0MhLUhHSlbmHB8QgQlWwadH-6w,26 +jedi/third_party/typeshed/third_party/3/six/moves/__init__.pyi,sha256=Vsp6DhxVU4xIcJ8eDyruQNQz2a_ERZmnHjA2_5MOyTk,2363 +jedi/third_party/typeshed/third_party/3/six/moves/_dummy_thread.pyi,sha256=QcsaN0JxBr9ArwQnzhmN06G8dMTpqIuIbapJvWWr8IQ,28 +jedi/third_party/typeshed/third_party/3/six/moves/_thread.pyi,sha256=An3Es1KPMtE47GK-HKV_WnuG7kfoT5bh-bn_SfOQ5Pc,22 +jedi/third_party/typeshed/third_party/3/six/moves/builtins.pyi,sha256=VVjpGGLJ2CYwC3lYePGY6TLTEhwcdru3YV-nV2ZAzL8,23 +jedi/third_party/typeshed/third_party/3/six/moves/cPickle.pyi,sha256=pezOsQZrW9XS1R09Ote5u1Wtw9FHC0k8Kjp4g44_PgI,21 +jedi/third_party/typeshed/third_party/3/six/moves/collections_abc.pyi,sha256=9kznK-Qq5Rqt-V--bq6awTNs5NISIlTFiOZLVI4BvBA,30 +jedi/third_party/typeshed/third_party/3/six/moves/configparser.pyi,sha256=Wp5Y7Z134PHLahfawLJDB7WyIBpdLooaGKLQmEr7veQ,27 +jedi/third_party/typeshed/third_party/3/six/moves/email_mime_base.pyi,sha256=WcWEleCKHROrfdXpRuKABrT_Va1hx90NY_kxYeul3Sk,30 +jedi/third_party/typeshed/third_party/3/six/moves/email_mime_multipart.pyi,sha256=HRKWFU9qh95-mEE22_2NzEKL6lx7ynvhcfHjUcYWuZ8,35 +jedi/third_party/typeshed/third_party/3/six/moves/email_mime_nonmultipart.pyi,sha256=n5hD7R_rktJj3hiHYzEqr3CJCHSW4ikfObKHmUrXBw0,38 +jedi/third_party/typeshed/third_party/3/six/moves/email_mime_text.pyi,sha256=M7mb9V3f5JUut8yf8UfL3rG4XPr-Lr692DGjk1OR9d4,30 +jedi/third_party/typeshed/third_party/3/six/moves/html_entities.pyi,sha256=YkFcpA-UjTm7ps8gp1Xs6Ye9eu-fRHUlSrZPc00LZuk,28 +jedi/third_party/typeshed/third_party/3/six/moves/html_parser.pyi,sha256=EhnBFGx0nBd-ZHMy53ihoemWud0xnNYYYzQDrqWZ7SM,26 +jedi/third_party/typeshed/third_party/3/six/moves/http_client.pyi,sha256=a-UAXTgUTrJNFFiQWThbgVvOsqCJXXiFTxjOG4QgbiE,26 +jedi/third_party/typeshed/third_party/3/six/moves/http_cookiejar.pyi,sha256=_qfFwqs5DnvAOqLWCAdCzWjnwVFi2tkRjypRcow1Kgw,29 +jedi/third_party/typeshed/third_party/3/six/moves/http_cookies.pyi,sha256=dKSPvohzW_QPkOUb0gxj3rsshfRDYb9krTqjID3wN68,27 +jedi/third_party/typeshed/third_party/3/six/moves/queue.pyi,sha256=_rNUYjj1lkl5pRaQP4GWCuWEHBSetCgHhvSnWjgBuhk,20 +jedi/third_party/typeshed/third_party/3/six/moves/reprlib.pyi,sha256=gzyGHWv3b10R17IbpgllskSTyulpq6RWGb7I5KAbSh0,22 +jedi/third_party/typeshed/third_party/3/six/moves/socketserver.pyi,sha256=GWp7BzDMpq3JNfA3H3Pn0iyENzAcy5ufcvuvlkEzmFg,27 +jedi/third_party/typeshed/third_party/3/six/moves/tkinter.pyi,sha256=R-kj-ZjyE6cnPhkAhJLQIA2zyggMRHyf4azpH_WtXNo,22 +jedi/third_party/typeshed/third_party/3/six/moves/tkinter_commondialog.pyi,sha256=piW_7DIKFPiFl8awGTKEBkW-toBwMu7ySfSgxT39Qsc,35 +jedi/third_party/typeshed/third_party/3/six/moves/tkinter_constants.pyi,sha256=sB-tEEYJXZlnQEvgUxsHYFp3yyp3F7NtblS3_hRFVFM,32 +jedi/third_party/typeshed/third_party/3/six/moves/tkinter_dialog.pyi,sha256=Lk_TOa4m8kLSRZRs2-zLtgFnpbtkGcs2eu1YgCjNzmM,29 +jedi/third_party/typeshed/third_party/3/six/moves/tkinter_filedialog.pyi,sha256=znHuWqubMwXiONWP1bhNRmAXUVcHdXn9B8AqoJu4EgY,33 +jedi/third_party/typeshed/third_party/3/six/moves/tkinter_tkfiledialog.pyi,sha256=znHuWqubMwXiONWP1bhNRmAXUVcHdXn9B8AqoJu4EgY,33 +jedi/third_party/typeshed/third_party/3/six/moves/tkinter_ttk.pyi,sha256=4JCeiL-sndFy8xykanaUTbW3-ESBr4w8Dd1gOMAvrag,26 +jedi/third_party/typeshed/third_party/3/six/moves/urllib/__init__.pyi,sha256=F_1V8NcR4jGkws85IUurYLi4JnGh7_HttdVHvj8cQZM,217 +jedi/third_party/typeshed/third_party/3/six/moves/urllib/error.pyi,sha256=tOHyCWru4FB-CVZpdZ5tzT5jUW7R6e1NHrm_AOEx5Zo,116 +jedi/third_party/typeshed/third_party/3/six/moves/urllib/parse.pyi,sha256=LYJLXIl0_B1NV-7WuGMWjM9E12zpMbsB0SMqi4ubpR4,981 +jedi/third_party/typeshed/third_party/3/six/moves/urllib/request.pyi,sha256=Y9e1cIOCqpbA9u9wdHkuk7XkhKW4C_BR-th2joh4rKM,1639 +jedi/third_party/typeshed/third_party/3/six/moves/urllib/response.pyi,sha256=MLuhuwcVdryiGU6pB2rkOWjdFnFcm7NsXJxqFt9-YlI,389 +jedi/third_party/typeshed/third_party/3/six/moves/urllib/robotparser.pyi,sha256=WK-Nrt7QFCWmAxfbrK0Mecw9NZur54H8AoYbslX6vSg,66 +jedi/third_party/typeshed/third_party/3/six/moves/urllib_error.pyi,sha256=ZLiDEtiqtoYYbNDYF4LjnxKRd_uFft6Yi5QQyNEkZm8,27 +jedi/third_party/typeshed/third_party/3/six/moves/urllib_parse.pyi,sha256=PQR8avzMMvUSLV96WLv3J4leuJpKEUBoo7vDzP6M848,27 +jedi/third_party/typeshed/third_party/3/six/moves/urllib_request.pyi,sha256=8WFe7ycArSuM6wJfgcXWLDRKNsymd0UlxWlflszb2yk,30 +jedi/third_party/typeshed/third_party/3/six/moves/urllib_response.pyi,sha256=dokFMleMVEVFVxBgSkrcn4f4yM7RhR3zkk0iDQGOC_U,31 +jedi/third_party/typeshed/third_party/3/six/moves/urllib_robotparser.pyi,sha256=BiNO0kuoX9quQRDQsnPLr04VZLHOj57CmrJJN5OuBn4,33 +jedi/third_party/typeshed/third_party/3/typed_ast/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +jedi/third_party/typeshed/third_party/3/typed_ast/ast27.pyi,sha256=8l8h1iTl2STMguvaHgJ6LObWVTN-vi7jkq7F7grliuY,6949 +jedi/third_party/typeshed/third_party/3/typed_ast/ast3.pyi,sha256=rBHvYHpYGPkPYcSCvtsS5PvfUScfOXa5NLzA0sLnjDg,7946 +jedi/third_party/typeshed/third_party/3/typed_ast/conversions.pyi,sha256=fNBvV3U3qM1ehj0f9uO9xPT9XL43AiT7v51N2S39Qf0,71 +jedi/third_party/typeshed/third_party/3/waitress/__init__.pyi,sha256=AyhjsF-JhGwHdZo_BHPZnAqQg5p6I4yrQ-GAzbIgiCE,308 +jedi/third_party/typeshed/third_party/3/waitress/adjustments.pyi,sha256=Ci0sGEaI8sgN3oQ4m63cI7_fk6b9YcQCle1SEIpkMLo,2162 +jedi/third_party/typeshed/third_party/3/waitress/buffers.pyi,sha256=BAUmNMbRRvJmXspos4XTqxpGuPcG-m8_52-ZzP1RsBU,2179 +jedi/third_party/typeshed/third_party/3/waitress/channel.pyi,sha256=yEVhDA-LraBWtHs-Qh1btontCRgfNj1crB76Mj1UeVM,1843 +jedi/third_party/typeshed/third_party/3/waitress/compat.pyi,sha256=DEqpWPIWRpAINum_lKdh8-FvKsx-8J-TnGcubrxzA6k,719 +jedi/third_party/typeshed/third_party/3/waitress/parser.pyi,sha256=xxkLG3DSOAG0gsULfgKnIDWRqDPgznvkSPm4XtD6c4o,1442 +jedi/third_party/typeshed/third_party/3/waitress/proxy_headers.pyi,sha256=dg-1E5AEYcDAdcehvBlLT_3ATo94vfS2f8GZwBZ46do,1100 +jedi/third_party/typeshed/third_party/3/waitress/receiver.pyi,sha256=ZOcx0IC-LJC3W0BwO2cZfeP7xzlFEm9ESca3oxsIm_4,1044 +jedi/third_party/typeshed/third_party/3/waitress/rfc7230.pyi,sha256=Q31Np-HnKfD9_-8UHRr4KvzdviLI4HjaIacvMKQGBFc,226 +jedi/third_party/typeshed/third_party/3/waitress/runner.pyi,sha256=ReRs3WT9zH73aXEgBq9O7e_YHDwvTlhtsZ2G-m302Hk,469 +jedi/third_party/typeshed/third_party/3/waitress/server.pyi,sha256=BLVopN0ySFAhfTjaSg-9ctygNpoMxToxGNzog_2eF2E,3500 +jedi/third_party/typeshed/third_party/3/waitress/task.pyi,sha256=uZEpvbFNjJjGtzx9HMt2vgRG1VhgzUIT7aoEN3roOGk,2216 +jedi/third_party/typeshed/third_party/3/waitress/trigger.pyi,sha256=BJ6rU86VdsB281MqGmHwUkyvf661Za4H_qhSHi5nivU,1079 +jedi/third_party/typeshed/third_party/3/waitress/utilities.pyi,sha256=jUJUiahQzp3KRB3zgfX1Zx1ebKgK-81Nz7e32ez-s4E,1875 +jedi/third_party/typeshed/third_party/3/waitress/wasyncore.pyi,sha256=mOMVSFL7majEQSv_8fEMKMGqtAXrGEqipcZ_lkQHCOY,4059 +jedi/utils.py,sha256=rDF3XD7L8zpZjv5elYa2JQvP3moROmBbiYcyMIstwCM,4704 diff --git a/shared/package-files/3e/3e68cfc25b42bfa166bf3a165bb6462c649a084d2365e9db03b9574e7db03d37/zeros.h b/shared/package-files/3e/3e68cfc25b42bfa166bf3a165bb6462c649a084d2365e9db03b9574e7db03d37/zeros.h new file mode 100644 index 0000000000000000000000000000000000000000..b3b849648328c2a7e7e128738056ade58db75a73 --- /dev/null +++ b/shared/package-files/3e/3e68cfc25b42bfa166bf3a165bb6462c649a084d2365e9db03b9574e7db03d37/zeros.h @@ -0,0 +1,131 @@ +#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::zeros.names(int[] size, *, Dimname[]? names, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor +inline at::Tensor zeros(at::IntArrayRef size, c10::optional names, at::TensorOptions options={}) { + return at::_ops::zeros_names::call(size, names, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); +} +// aten::zeros.names(int[] size, *, Dimname[]? names, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor +inline at::Tensor zeros(at::IntArrayRef size, c10::optional names, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::zeros_names::call(size, names, dtype, layout, device, pin_memory); +} + +// aten::zeros(SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor +inline at::Tensor zeros(at::IntArrayRef size, at::TensorOptions options={}) { + return at::_ops::zeros::call(c10::fromIntArrayRefSlow(size), c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); +} +namespace symint { + template ::value>> + at::Tensor zeros(at::IntArrayRef size, at::TensorOptions options={}) { + return at::_ops::zeros::call(c10::fromIntArrayRefSlow(size), c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } +} + +// aten::zeros(SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor +inline at::Tensor zeros(at::IntArrayRef size, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::zeros::call(c10::fromIntArrayRefSlow(size), dtype, layout, device, pin_memory); +} +namespace symint { + template ::value>> + at::Tensor zeros(at::IntArrayRef size, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::zeros::call(c10::fromIntArrayRefSlow(size), dtype, layout, device, pin_memory); + } +} + +// aten::zeros(SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor +inline at::Tensor zeros_symint(c10::SymIntArrayRef size, at::TensorOptions options={}) { + return at::_ops::zeros::call(size, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); +} +namespace symint { + template ::value>> + at::Tensor zeros(c10::SymIntArrayRef size, at::TensorOptions options={}) { + return at::_ops::zeros::call(size, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); + } +} + +// aten::zeros(SymInt[] size, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor +inline at::Tensor zeros_symint(c10::SymIntArrayRef size, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::zeros::call(size, dtype, layout, device, pin_memory); +} +namespace symint { + template ::value>> + at::Tensor zeros(c10::SymIntArrayRef size, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::zeros::call(size, dtype, layout, device, pin_memory); + } +} + +// aten::zeros.out(SymInt[] size, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & zeros_out(at::Tensor & out, at::IntArrayRef size) { + return at::_ops::zeros_out::call(c10::fromIntArrayRefSlow(size), out); +} +namespace symint { + template ::value>> + at::Tensor & zeros_out(at::Tensor & out, at::IntArrayRef size) { + return at::_ops::zeros_out::call(c10::fromIntArrayRefSlow(size), out); + } +} + +// aten::zeros.out(SymInt[] size, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & zeros_outf(at::IntArrayRef size, at::Tensor & out) { + return at::_ops::zeros_out::call(c10::fromIntArrayRefSlow(size), out); +} +namespace symint { + template ::value>> + at::Tensor & zeros_outf(at::IntArrayRef size, at::Tensor & out) { + return at::_ops::zeros_out::call(c10::fromIntArrayRefSlow(size), out); + } +} + +// aten::zeros.out(SymInt[] size, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & zeros_symint_out(at::Tensor & out, c10::SymIntArrayRef size) { + return at::_ops::zeros_out::call(size, out); +} +namespace symint { + template ::value>> + at::Tensor & zeros_out(at::Tensor & out, c10::SymIntArrayRef size) { + return at::_ops::zeros_out::call(size, out); + } +} + +// aten::zeros.out(SymInt[] size, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & zeros_symint_outf(c10::SymIntArrayRef size, at::Tensor & out) { + return at::_ops::zeros_out::call(size, out); +} +namespace symint { + template ::value>> + at::Tensor & zeros_outf(c10::SymIntArrayRef size, at::Tensor & out) { + return at::_ops::zeros_out::call(size, out); + } +} + +// aten::zeros.names_out(int[] size, *, Dimname[]? names, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & zeros_out(at::Tensor & out, at::IntArrayRef size, c10::optional names) { + return at::_ops::zeros_names_out::call(size, names, out); +} +// aten::zeros.names_out(int[] size, *, Dimname[]? names, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & zeros_outf(at::IntArrayRef size, c10::optional names, at::Tensor & out) { + return at::_ops::zeros_names_out::call(size, names, out); +} + +} diff --git a/shared/package-files/3e/3e69c4b56b4e4da9ac3c95c4a3b3dc3500b2d91a7e7af1b2261e1c7f4a63011e/Guyana b/shared/package-files/3e/3e69c4b56b4e4da9ac3c95c4a3b3dc3500b2d91a7e7af1b2261e1c7f4a63011e/Guyana new file mode 100644 index 0000000000000000000000000000000000000000..bcc66881c17cebf8767b7a147b1fcf7ab29bbd9f Binary files /dev/null and b/shared/package-files/3e/3e69c4b56b4e4da9ac3c95c4a3b3dc3500b2d91a7e7af1b2261e1c7f4a63011e/Guyana differ diff --git a/shared/package-files/3e/3e6ef22397267f3c7c0865d1da64090e3b47d76282a71f1ecc529c862255549e/Aqtobe b/shared/package-files/3e/3e6ef22397267f3c7c0865d1da64090e3b47d76282a71f1ecc529c862255549e/Aqtobe new file mode 100644 index 0000000000000000000000000000000000000000..62c5840a83e29b4fcedba95e438581cec96b3cf6 Binary files /dev/null and b/shared/package-files/3e/3e6ef22397267f3c7c0865d1da64090e3b47d76282a71f1ecc529c862255549e/Aqtobe differ diff --git a/shared/package-files/3e/3e71fe0a5b223b2d1e90e4d8d51281f9c2fac6b4cfb6bce6b97197dee8004e9b/_sox_io_backend.py b/shared/package-files/3e/3e71fe0a5b223b2d1e90e4d8d51281f9c2fac6b4cfb6bce6b97197dee8004e9b/_sox_io_backend.py new file mode 100644 index 0000000000000000000000000000000000000000..6af267b17a48d330c699e72dd3e31bc336a7d3da --- /dev/null +++ b/shared/package-files/3e/3e71fe0a5b223b2d1e90e4d8d51281f9c2fac6b4cfb6bce6b97197dee8004e9b/_sox_io_backend.py @@ -0,0 +1,294 @@ +import os +from typing import Optional, Tuple + +import torch +import torchaudio +from torchaudio import AudioMetaData + +sox_ext = torchaudio._extension.lazy_import_sox_ext() + + +def info( + filepath: str, + format: Optional[str] = None, +) -> AudioMetaData: + """Get signal information of an audio file. + + Args: + filepath (str): + Source of audio data. + + format (str or None, optional): + Override the format detection with the given format. + Providing the argument might help when libsox can not infer the format + from header or extension. + + Returns: + AudioMetaData: Metadata of the given audio. + """ + if not torch.jit.is_scripting(): + if hasattr(filepath, "read"): + raise RuntimeError("sox_io backend does not support file-like object.") + filepath = os.fspath(filepath) + sinfo = sox_ext.get_info(filepath, format) + return AudioMetaData(*sinfo) + + +def load( + filepath: str, + frame_offset: int = 0, + num_frames: int = -1, + normalize: bool = True, + channels_first: bool = True, + format: Optional[str] = None, +) -> Tuple[torch.Tensor, int]: + """Load audio data from file. + + Note: + This function can handle all the codecs that underlying libsox can handle, + however it is tested on the following formats; + + * WAV, AMB + + * 32-bit floating-point + * 32-bit signed integer + * 24-bit signed integer + * 16-bit signed integer + * 8-bit unsigned integer (WAV only) + + * MP3 + * FLAC + * OGG/VORBIS + * OPUS + * SPHERE + * AMR-NB + + To load ``MP3``, ``FLAC``, ``OGG/VORBIS``, ``OPUS`` and other codecs ``libsox`` does not + handle natively, your installation of ``torchaudio`` has to be linked to ``libsox`` + and corresponding codec libraries such as ``libmad`` or ``libmp3lame`` etc. + + By default (``normalize=True``, ``channels_first=True``), this function returns Tensor with + ``float32`` dtype, and the shape of `[channel, time]`. + + .. warning:: + + ``normalize`` argument does not perform volume normalization. + It only converts the sample type to `torch.float32` from the native sample + type. + + When the input format is WAV with integer type, such as 32-bit signed integer, 16-bit + signed integer, 24-bit signed integer, and 8-bit unsigned integer, by providing ``normalize=False``, + this function can return integer Tensor, where the samples are expressed within the whole range + of the corresponding dtype, that is, ``int32`` tensor for 32-bit signed PCM, + ``int16`` for 16-bit signed PCM and ``uint8`` for 8-bit unsigned PCM. Since torch does not + support ``int24`` dtype, 24-bit signed PCM are converted to ``int32`` tensors. + + ``normalize`` argument has no effect on 32-bit floating-point WAV and other formats, such as + ``flac`` and ``mp3``. + + For these formats, this function always returns ``float32`` Tensor with values. + + Args: + filepath (path-like object): Source of audio data. + frame_offset (int): + Number of frames to skip before start reading data. + num_frames (int, optional): + Maximum number of frames to read. ``-1`` reads all the remaining samples, + starting from ``frame_offset``. + This function may return the less number of frames if there is not enough + frames in the given file. + normalize (bool, optional): + When ``True``, this function converts the native sample type to ``float32``. + Default: ``True``. + + If input file is integer WAV, giving ``False`` will change the resulting Tensor type to + integer type. + This argument has no effect for formats other than integer WAV type. + + channels_first (bool, optional): + When True, the returned Tensor has dimension `[channel, time]`. + Otherwise, the returned Tensor's dimension is `[time, channel]`. + format (str or None, optional): + Override the format detection with the given format. + Providing the argument might help when libsox can not infer the format + from header or extension. + + Returns: + (torch.Tensor, int): Resulting Tensor and sample rate. + If the input file has integer wav format and ``normalize=False``, then it has + integer type, else ``float32`` type. If ``channels_first=True``, it has + `[channel, time]` else `[time, channel]`. + """ + if not torch.jit.is_scripting(): + if hasattr(filepath, "read"): + raise RuntimeError("sox_io backend does not support file-like object.") + filepath = os.fspath(filepath) + return sox_ext.load_audio_file(filepath, frame_offset, num_frames, normalize, channels_first, format) + + +def save( + filepath: str, + src: torch.Tensor, + sample_rate: int, + channels_first: bool = True, + compression: Optional[float] = None, + format: Optional[str] = None, + encoding: Optional[str] = None, + bits_per_sample: Optional[int] = None, +): + """Save audio data to file. + + Args: + filepath (path-like object): Path to save file. + src (torch.Tensor): Audio data to save. must be 2D tensor. + sample_rate (int): sampling rate + channels_first (bool, optional): If ``True``, the given tensor is interpreted as `[channel, time]`, + otherwise `[time, channel]`. + compression (float or None, optional): Used for formats other than WAV. + This corresponds to ``-C`` option of ``sox`` command. + + ``"mp3"`` + Either bitrate (in ``kbps``) with quality factor, such as ``128.2``, or + VBR encoding with quality factor such as ``-4.2``. Default: ``-4.5``. + + ``"flac"`` + Whole number from ``0`` to ``8``. ``8`` is default and highest compression. + + ``"ogg"``, ``"vorbis"`` + Number from ``-1`` to ``10``; ``-1`` is the highest compression + and lowest quality. Default: ``3``. + + See the detail at http://sox.sourceforge.net/soxformat.html. + format (str or None, optional): Override the audio format. + When ``filepath`` argument is path-like object, audio format is infered from + file extension. If file extension is missing or different, you can specify the + correct format with this argument. + + When ``filepath`` argument is file-like object, this argument is required. + + Valid values are ``"wav"``, ``"mp3"``, ``"ogg"``, ``"vorbis"``, ``"amr-nb"``, + ``"amb"``, ``"flac"``, ``"sph"``, ``"gsm"``, and ``"htk"``. + + encoding (str or None, optional): Changes the encoding for the supported formats. + This argument is effective only for supported formats, such as ``"wav"``, ``""amb"`` + and ``"sph"``. Valid values are; + + - ``"PCM_S"`` (signed integer Linear PCM) + - ``"PCM_U"`` (unsigned integer Linear PCM) + - ``"PCM_F"`` (floating point PCM) + - ``"ULAW"`` (mu-law) + - ``"ALAW"`` (a-law) + + Default values + If not provided, the default value is picked based on ``format`` and ``bits_per_sample``. + + ``"wav"``, ``"amb"`` + - | If both ``encoding`` and ``bits_per_sample`` are not provided, the ``dtype`` of the + | Tensor is used to determine the default value. + + - ``"PCM_U"`` if dtype is ``uint8`` + - ``"PCM_S"`` if dtype is ``int16`` or ``int32`` + - ``"PCM_F"`` if dtype is ``float32`` + + - ``"PCM_U"`` if ``bits_per_sample=8`` + - ``"PCM_S"`` otherwise + + ``"sph"`` format; + - the default value is ``"PCM_S"`` + + bits_per_sample (int or None, optional): Changes the bit depth for the supported formats. + When ``format`` is one of ``"wav"``, ``"flac"``, ``"sph"``, or ``"amb"``, you can change the + bit depth. Valid values are ``8``, ``16``, ``32`` and ``64``. + + Default Value; + If not provided, the default values are picked based on ``format`` and ``"encoding"``; + + ``"wav"``, ``"amb"``; + - | If both ``encoding`` and ``bits_per_sample`` are not provided, the ``dtype`` of the + | Tensor is used. + + - ``8`` if dtype is ``uint8`` + - ``16`` if dtype is ``int16`` + - ``32`` if dtype is ``int32`` or ``float32`` + + - ``8`` if ``encoding`` is ``"PCM_U"``, ``"ULAW"`` or ``"ALAW"`` + - ``16`` if ``encoding`` is ``"PCM_S"`` + - ``32`` if ``encoding`` is ``"PCM_F"`` + + ``"flac"`` format; + - the default value is ``24`` + + ``"sph"`` format; + - ``16`` if ``encoding`` is ``"PCM_U"``, ``"PCM_S"``, ``"PCM_F"`` or not provided. + - ``8`` if ``encoding`` is ``"ULAW"`` or ``"ALAW"`` + + ``"amb"`` format; + - ``8`` if ``encoding`` is ``"PCM_U"``, ``"ULAW"`` or ``"ALAW"`` + - ``16`` if ``encoding`` is ``"PCM_S"`` or not provided. + - ``32`` if ``encoding`` is ``"PCM_F"`` + + Supported formats/encodings/bit depth/compression are; + + ``"wav"``, ``"amb"`` + - 32-bit floating-point PCM + - 32-bit signed integer PCM + - 24-bit signed integer PCM + - 16-bit signed integer PCM + - 8-bit unsigned integer PCM + - 8-bit mu-law + - 8-bit a-law + + Note: Default encoding/bit depth is determined by the dtype of the input Tensor. + + ``"mp3"`` + Fixed bit rate (such as 128kHz) and variable bit rate compression. + Default: VBR with high quality. + + ``"flac"`` + - 8-bit + - 16-bit + - 24-bit (default) + + ``"ogg"``, ``"vorbis"`` + - Different quality level. Default: approx. 112kbps + + ``"sph"`` + - 8-bit signed integer PCM + - 16-bit signed integer PCM + - 24-bit signed integer PCM + - 32-bit signed integer PCM (default) + - 8-bit mu-law + - 8-bit a-law + - 16-bit a-law + - 24-bit a-law + - 32-bit a-law + + ``"amr-nb"`` + Bitrate ranging from 4.75 kbit/s to 12.2 kbit/s. Default: 4.75 kbit/s + + ``"gsm"`` + Lossy Speech Compression, CPU intensive. + + ``"htk"`` + Uses a default single-channel 16-bit PCM format. + + Note: + To save into formats that ``libsox`` does not handle natively, (such as ``"mp3"``, + ``"flac"``, ``"ogg"`` and ``"vorbis"``), your installation of ``torchaudio`` has + to be linked to ``libsox`` and corresponding codec libraries such as ``libmad`` + or ``libmp3lame`` etc. + """ + if not torch.jit.is_scripting(): + if hasattr(filepath, "write"): + raise RuntimeError("sox_io backend does not handle file-like object.") + filepath = os.fspath(filepath) + sox_ext.save_audio_file( + filepath, + src, + sample_rate, + channels_first, + compression, + format, + encoding, + bits_per_sample, + ) diff --git a/shared/package-files/3e/3e764fcd1193fd8a0653cacc05616ad4893c2f47c1246f07a5c0f635860e76e8/MaxUnpoolKernel.h b/shared/package-files/3e/3e764fcd1193fd8a0653cacc05616ad4893c2f47c1246f07a5c0f635860e76e8/MaxUnpoolKernel.h new file mode 100644 index 0000000000000000000000000000000000000000..1c6507909ca4aa7e49fbaa420e407b211023b1b7 --- /dev/null +++ b/shared/package-files/3e/3e764fcd1193fd8a0653cacc05616ad4893c2f47c1246f07a5c0f635860e76e8/MaxUnpoolKernel.h @@ -0,0 +1,14 @@ +#pragma once +#include + +namespace at { +class Tensor; + +namespace native { + +using max_unpooling_fn = void(*)(Tensor&, const Tensor&, const Tensor&); + +DECLARE_DISPATCH(max_unpooling_fn, max_unpool2d_kernel); +DECLARE_DISPATCH(max_unpooling_fn, max_unpool3d_kernel); + +}} // at::native diff --git a/shared/package-files/3e/3e766557b6f7591b07ef34e5d9783163503bd0f096a6f58361f3b554d4fe7233/_opcode.cpython-310-x86_64-linux-gnu.so b/shared/package-files/3e/3e766557b6f7591b07ef34e5d9783163503bd0f096a6f58361f3b554d4fe7233/_opcode.cpython-310-x86_64-linux-gnu.so new file mode 100644 index 0000000000000000000000000000000000000000..1ccef8406cca0a9db57d64822c6461f2015a9bb9 Binary files /dev/null and b/shared/package-files/3e/3e766557b6f7591b07ef34e5d9783163503bd0f096a6f58361f3b554d4fe7233/_opcode.cpython-310-x86_64-linux-gnu.so differ diff --git a/shared/package-files/3e/3e79c04dce58e83486d4fc4b43c42e6e92d6be2b566b26bb27e0028efe0a2173/_segment_reduce_backward_compositeexplicitautograd_dispatch.h b/shared/package-files/3e/3e79c04dce58e83486d4fc4b43c42e6e92d6be2b566b26bb27e0028efe0a2173/_segment_reduce_backward_compositeexplicitautograd_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..4cd97c9f0777a2bcd44ec1441c9137becd79b493 --- /dev/null +++ b/shared/package-files/3e/3e79c04dce58e83486d4fc4b43c42e6e92d6be2b566b26bb27e0028efe0a2173/_segment_reduce_backward_compositeexplicitautograd_dispatch.h @@ -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 compositeexplicitautograd { + +TORCH_API at::Tensor & _segment_reduce_backward_out(at::Tensor & out, const at::Tensor & grad, const at::Tensor & output, const at::Tensor & data, c10::string_view reduce, const c10::optional & lengths={}, const c10::optional & offsets={}, int64_t axis=0, const c10::optional & initial=c10::nullopt); +TORCH_API at::Tensor & _segment_reduce_backward_outf(const at::Tensor & grad, const at::Tensor & output, const at::Tensor & data, c10::string_view reduce, const c10::optional & lengths, const c10::optional & offsets, int64_t axis, const c10::optional & initial, at::Tensor & out); + +} // namespace compositeexplicitautograd +} // namespace at diff --git a/shared/package-files/3e/3e7c327f9e9077a5b71541fe64c8275c46246fb827d7ca6d3537709866a7d09a/publicmod.f90 b/shared/package-files/3e/3e7c327f9e9077a5b71541fe64c8275c46246fb827d7ca6d3537709866a7d09a/publicmod.f90 new file mode 100644 index 0000000000000000000000000000000000000000..1db76e3fe06828ba0d1b640720ec70422cde6872 --- /dev/null +++ b/shared/package-files/3e/3e7c327f9e9077a5b71541fe64c8275c46246fb827d7ca6d3537709866a7d09a/publicmod.f90 @@ -0,0 +1,10 @@ +module foo + public + integer, private :: a + public :: setA +contains + subroutine setA(v) + integer, intent(in) :: v + a = v + end subroutine setA +end module foo diff --git a/shared/package-files/3e/3e7d0dde06cea00c1eed56b129c43b0cdf96360d8c6f0e1152a9925de6f3428b/mosh b/shared/package-files/3e/3e7d0dde06cea00c1eed56b129c43b0cdf96360d8c6f0e1152a9925de6f3428b/mosh new file mode 100644 index 0000000000000000000000000000000000000000..070ae4a06d51d78db171049a73ef6dec2cff4101 Binary files /dev/null and b/shared/package-files/3e/3e7d0dde06cea00c1eed56b129c43b0cdf96360d8c6f0e1152a9925de6f3428b/mosh differ diff --git a/shared/package-files/3e/3e7d1b530a1db7e4c2cbb7f629d605397419fb6736048f7cae1a574e9096e2e1/test_user_interface.py b/shared/package-files/3e/3e7d1b530a1db7e4c2cbb7f629d605397419fb6736048f7cae1a574e9096e2e1/test_user_interface.py new file mode 100644 index 0000000000000000000000000000000000000000..9aa9d41ba9aef78700c3e8b43dcd40e7012c94e2 --- /dev/null +++ b/shared/package-files/3e/3e7d1b530a1db7e4c2cbb7f629d605397419fb6736048f7cae1a574e9096e2e1/test_user_interface.py @@ -0,0 +1,65 @@ +import string +import timeit + +import pytest + +from sklearn.utils._user_interface import _message_with_time, _print_elapsed_time + + +@pytest.mark.parametrize( + ["source", "message", "is_long"], + [ + ("ABC", string.ascii_lowercase, False), + ("ABCDEF", string.ascii_lowercase, False), + ("ABC", string.ascii_lowercase * 3, True), + ("ABC" * 10, string.ascii_lowercase, True), + ("ABC", string.ascii_lowercase + "\u1048", False), + ], +) +@pytest.mark.parametrize( + ["time", "time_str"], + [ + (0.2, " 0.2s"), + (20, " 20.0s"), + (2000, "33.3min"), + (20000, "333.3min"), + ], +) +def test_message_with_time(source, message, is_long, time, time_str): + out = _message_with_time(source, message, time) + if is_long: + assert len(out) > 70 + else: + assert len(out) == 70 + + assert out.startswith("[" + source + "] ") + out = out[len(source) + 3 :] + + assert out.endswith(time_str) + out = out[: -len(time_str)] + assert out.endswith(", total=") + out = out[: -len(", total=")] + assert out.endswith(message) + out = out[: -len(message)] + assert out.endswith(" ") + out = out[:-1] + + if is_long: + assert not out + else: + assert list(set(out)) == ["."] + + +@pytest.mark.parametrize( + ["message", "expected"], + [ + ("hello", _message_with_time("ABC", "hello", 0.1) + "\n"), + ("", _message_with_time("ABC", "", 0.1) + "\n"), + (None, ""), + ], +) +def test_print_elapsed_time(message, expected, capsys, monkeypatch): + monkeypatch.setattr(timeit, "default_timer", lambda: 0) + with _print_elapsed_time("ABC", message): + monkeypatch.setattr(timeit, "default_timer", lambda: 0.1) + assert capsys.readouterr().out == expected diff --git a/shared/package-files/3e/3e7df25b8dfb658c9a91501930d4d943b05087a8347c7e2b4325616af535047b/LICENSE b/shared/package-files/3e/3e7df25b8dfb658c9a91501930d4d943b05087a8347c7e2b4325616af535047b/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..ea215f2dbb279c7759384cce82de5fd320e75ccb --- /dev/null +++ b/shared/package-files/3e/3e7df25b8dfb658c9a91501930d4d943b05087a8347c7e2b4325616af535047b/LICENSE @@ -0,0 +1,27 @@ +pycparser -- A C parser in Python + +Copyright (c) 2008-2020, Eli Bendersky +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 Eli Bendersky 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 HOLDER 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. diff --git a/shared/package-files/3e/3e7e0f7086ce051b5226ecfd02bfe872e6dca3440e319f9e004f41b3b5a9e260/test_adhoc_memory_leak.py b/shared/package-files/3e/3e7e0f7086ce051b5226ecfd02bfe872e6dca3440e319f9e004f41b3b5a9e260/test_adhoc_memory_leak.py new file mode 100644 index 0000000000000000000000000000000000000000..76a766984dab6c8b430cf53aec5d91b9a4b787e0 --- /dev/null +++ b/shared/package-files/3e/3e7e0f7086ce051b5226ecfd02bfe872e6dca3440e319f9e004f41b3b5a9e260/test_adhoc_memory_leak.py @@ -0,0 +1,46 @@ +# 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. + +import pytest + +try: + import numpy as np +except ImportError: + np = None +import pyarrow as pa + +import pyarrow.tests.util as test_util + +try: + import pandas as pd +except ImportError: + pass + + +@pytest.mark.memory_leak +@pytest.mark.pandas +def test_deserialize_pandas_arrow_7956(): + df = pd.DataFrame({'a': np.arange(10000), + 'b': [test_util.rands(5) for _ in range(10000)]}) + + def action(): + df_bytes = pa.ipc.serialize_pandas(df).to_pybytes() + buf = pa.py_buffer(df_bytes) + pa.ipc.deserialize_pandas(buf) + + # Abort at 128MB threshold + test_util.memory_leak_check(action, threshold=1 << 27, iterations=100) diff --git a/shared/package-files/3e/3e7e236524ec2d6f0c0253325d4a2498976ea57e78bb5e7819823902f0f90720/api.h b/shared/package-files/3e/3e7e236524ec2d6f0c0253325d4a2498976ea57e78bb5e7819823902f0f90720/api.h new file mode 100644 index 0000000000000000000000000000000000000000..d55b2c2d55a8afc1a84fb204b2356e93503def42 --- /dev/null +++ b/shared/package-files/3e/3e7e236524ec2d6f0c0253325d4a2498976ea57e78bb5e7819823902f0f90720/api.h @@ -0,0 +1,25 @@ +// 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/buffered.h" +#include "arrow/io/compressed.h" +#include "arrow/io/file.h" +#include "arrow/io/hdfs.h" +#include "arrow/io/interfaces.h" +#include "arrow/io/memory.h" diff --git a/shared/package-files/3e/3e7eebe1dcda8166aa31ff2bca66d70485a2b31a2705a4ad6605c28bba5fad92/_orc.pyx b/shared/package-files/3e/3e7eebe1dcda8166aa31ff2bca66d70485a2b31a2705a4ad6605c28bba5fad92/_orc.pyx new file mode 100644 index 0000000000000000000000000000000000000000..1dd6848122c2d4d5d2a40faf70bbb4647329f9d8 --- /dev/null +++ b/shared/package-files/3e/3e7eebe1dcda8166aa31ff2bca66d70485a2b31a2705a4ad6605c28bba5fad92/_orc.pyx @@ -0,0 +1,445 @@ +# 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. + +# cython: profile=False +# distutils: language = c++ + +from cython.operator cimport dereference as deref +from libcpp.vector cimport vector as std_vector +from libcpp.utility cimport move +from pyarrow.includes.common cimport * +from pyarrow.includes.libarrow cimport * +from pyarrow.lib cimport (check_status, _Weakrefable, + MemoryPool, maybe_unbox_memory_pool, + pyarrow_wrap_schema, + pyarrow_wrap_batch, + Table, + pyarrow_wrap_table, + pyarrow_wrap_metadata, + pyarrow_unwrap_table, + get_reader, + get_writer) +from pyarrow.lib import frombytes, tobytes +from pyarrow.util import _stringify_path + + +cdef compression_type_from_enum(CCompressionType compression_type): + compression_map = { + CCompressionType_UNCOMPRESSED: 'UNCOMPRESSED', + CCompressionType_GZIP: 'ZLIB', + CCompressionType_SNAPPY: 'SNAPPY', + CCompressionType_LZ4: 'LZ4', + CCompressionType_ZSTD: 'ZSTD', + } + if compression_type in compression_map: + return compression_map[compression_type] + raise ValueError('Unsupported compression') + + +cdef CCompressionType compression_type_from_name(name) except *: + if not isinstance(name, str): + raise TypeError('compression must be a string') + name = name.upper() + if name == 'ZLIB': + return CCompressionType_GZIP + elif name == 'SNAPPY': + return CCompressionType_SNAPPY + elif name == 'LZ4': + return CCompressionType_LZ4 + elif name == 'ZSTD': + return CCompressionType_ZSTD + elif name == 'UNCOMPRESSED': + return CCompressionType_UNCOMPRESSED + raise ValueError(f'Unknown CompressionKind: {name}') + + +cdef compression_strategy_from_enum( + CompressionStrategy compression_strategy +): + compression_strategy_map = { + _CompressionStrategy_SPEED: 'SPEED', + _CompressionStrategy_COMPRESSION: 'COMPRESSION', + } + if compression_strategy in compression_strategy_map: + return compression_strategy_map[compression_strategy] + raise ValueError('Unsupported compression strategy') + + +cdef CompressionStrategy compression_strategy_from_name(name) except *: + if not isinstance(name, str): + raise TypeError('compression strategy must be a string') + name = name.upper() + if name == 'COMPRESSION': + return _CompressionStrategy_COMPRESSION + elif name == 'SPEED': + return _CompressionStrategy_SPEED + raise ValueError(f'Unknown CompressionStrategy: {name}') + + +cdef file_version_from_class(FileVersion file_version): + return frombytes(file_version.ToString()) + + +cdef writer_id_from_enum(WriterId writer_id): + writer_id_map = { + _WriterId_ORC_JAVA_WRITER: 'ORC_JAVA', + _WriterId_ORC_CPP_WRITER: 'ORC_CPP', + _WriterId_PRESTO_WRITER: 'PRESTO', + _WriterId_SCRITCHLEY_GO: 'SCRITCHLEY_GO', + _WriterId_TRINO_WRITER: 'TRINO', + } + if writer_id in writer_id_map: + return writer_id_map[writer_id] + raise ValueError('Unsupported writer ID') + + +cdef writer_version_from_enum(WriterVersion writer_version): + writer_version_map = { + _WriterVersion_ORIGINAL: 'ORIGINAL', + _WriterVersion_HIVE_8732: 'HIVE_8732', + _WriterVersion_HIVE_4243: 'HIVE_4243', + _WriterVersion_HIVE_12055: 'HIVE_12055', + _WriterVersion_HIVE_13083: 'HIVE_13083', + _WriterVersion_ORC_101: 'ORC_101', + _WriterVersion_ORC_135: 'ORC_135', + _WriterVersion_ORC_517: 'ORC_517', + _WriterVersion_ORC_203: 'ORC_203', + _WriterVersion_ORC_14: 'ORC_14', + } + if writer_version in writer_version_map: + return writer_version_map[writer_version] + raise ValueError('Unsupported writer version') + + +cdef shared_ptr[WriteOptions] _create_write_options( + file_version=None, + batch_size=None, + stripe_size=None, + compression=None, + compression_block_size=None, + compression_strategy=None, + row_index_stride=None, + padding_tolerance=None, + dictionary_key_size_threshold=None, + bloom_filter_columns=None, + bloom_filter_fpp=None +) except *: + """General writer options""" + cdef: + shared_ptr[WriteOptions] options + options = make_shared[WriteOptions]() + # batch_size + if batch_size is not None: + if isinstance(batch_size, int) and batch_size > 0: + deref(options).batch_size = batch_size + else: + raise ValueError(f"Invalid ORC writer batch size: {batch_size}") + # file_version + if file_version is not None: + if file_version == "0.12": + deref(options).file_version = FileVersion(0, 12) + elif file_version == "0.11": + deref(options).file_version = FileVersion(0, 11) + else: + raise ValueError(f"Unsupported ORC file version: {file_version}") + # stripe_size + if stripe_size is not None: + if isinstance(stripe_size, int) and stripe_size > 0: + deref(options).stripe_size = stripe_size + else: + raise ValueError(f"Invalid ORC stripe size: {stripe_size}") + # compression + if compression is not None: + if isinstance(compression, str): + deref(options).compression = compression_type_from_name( + compression) + else: + raise TypeError("Unsupported ORC compression type: " + f"{compression}") + # compression_block_size + if compression_block_size is not None: + if (isinstance(compression_block_size, int) and + compression_block_size > 0): + deref(options).compression_block_size = compression_block_size + else: + raise ValueError("Invalid ORC compression block size: " + f"{compression_block_size}") + # compression_strategy + if compression_strategy is not None: + if isinstance(compression, str): + deref(options).compression_strategy = \ + compression_strategy_from_name(compression_strategy) + else: + raise TypeError("Unsupported ORC compression strategy: " + f"{compression_strategy}") + # row_index_stride + if row_index_stride is not None: + if isinstance(row_index_stride, int) and row_index_stride > 0: + deref(options).row_index_stride = row_index_stride + else: + raise ValueError("Invalid ORC row index stride: " + f"{row_index_stride}") + # padding_tolerance + if padding_tolerance is not None: + try: + padding_tolerance = float(padding_tolerance) + deref(options).padding_tolerance = padding_tolerance + except Exception: + raise ValueError("Invalid ORC padding tolerance: " + f"{padding_tolerance}") + # dictionary_key_size_threshold + if dictionary_key_size_threshold is not None: + try: + dictionary_key_size_threshold = float( + dictionary_key_size_threshold) + assert 0 <= dictionary_key_size_threshold <= 1 + deref(options).dictionary_key_size_threshold = \ + dictionary_key_size_threshold + except Exception: + raise ValueError("Invalid ORC dictionary key size threshold: " + f"{dictionary_key_size_threshold}") + # bloom_filter_columns + if bloom_filter_columns is not None: + try: + bloom_filter_columns = list(bloom_filter_columns) + for col in bloom_filter_columns: + assert isinstance(col, int) and col >= 0 + deref(options).bloom_filter_columns = bloom_filter_columns + except Exception: + raise ValueError("Invalid ORC BloomFilter columns: " + f"{bloom_filter_columns}") + # Max false positive rate of the Bloom Filter + if bloom_filter_fpp is not None: + try: + bloom_filter_fpp = float(bloom_filter_fpp) + assert 0 <= bloom_filter_fpp <= 1 + deref(options).bloom_filter_fpp = bloom_filter_fpp + except Exception: + raise ValueError("Invalid ORC BloomFilter false positive rate: " + f"{bloom_filter_fpp}") + return options + + +cdef class ORCReader(_Weakrefable): + cdef: + object source + CMemoryPool* allocator + unique_ptr[ORCFileReader] reader + + def __cinit__(self, MemoryPool memory_pool=None): + self.allocator = maybe_unbox_memory_pool(memory_pool) + + def open(self, object source, c_bool use_memory_map=True): + cdef: + shared_ptr[CRandomAccessFile] rd_handle + + self.source = source + + get_reader(source, use_memory_map, &rd_handle) + with nogil: + self.reader = move(GetResultValue( + ORCFileReader.Open(rd_handle, self.allocator) + )) + + def metadata(self): + """ + The arrow metadata for this file. + + Returns + ------- + metadata : pyarrow.KeyValueMetadata + """ + cdef: + shared_ptr[const CKeyValueMetadata] sp_arrow_metadata + + with nogil: + sp_arrow_metadata = GetResultValue( + deref(self.reader).ReadMetadata() + ) + + return pyarrow_wrap_metadata(sp_arrow_metadata) + + def schema(self): + """ + The arrow schema for this file. + + Returns + ------- + schema : pyarrow.Schema + """ + cdef: + shared_ptr[CSchema] sp_arrow_schema + + with nogil: + sp_arrow_schema = GetResultValue(deref(self.reader).ReadSchema()) + + return pyarrow_wrap_schema(sp_arrow_schema) + + def nrows(self): + return deref(self.reader).NumberOfRows() + + def nstripes(self): + return deref(self.reader).NumberOfStripes() + + def file_version(self): + return file_version_from_class(deref(self.reader).GetFileVersion()) + + def software_version(self): + return frombytes(deref(self.reader).GetSoftwareVersion()) + + def compression(self): + return compression_type_from_enum( + GetResultValue(deref(self.reader).GetCompression())) + + def compression_size(self): + return deref(self.reader).GetCompressionSize() + + def row_index_stride(self): + return deref(self.reader).GetRowIndexStride() + + def writer(self): + writer_name = writer_id_from_enum(deref(self.reader).GetWriterId()) + if writer_name == 'UNKNOWN': + return deref(self.reader).GetWriterIdValue() + else: + return writer_name + + def writer_version(self): + return writer_version_from_enum(deref(self.reader).GetWriterVersion()) + + def nstripe_statistics(self): + return deref(self.reader).GetNumberOfStripeStatistics() + + def content_length(self): + return deref(self.reader).GetContentLength() + + def stripe_statistics_length(self): + return deref(self.reader).GetStripeStatisticsLength() + + def file_footer_length(self): + return deref(self.reader).GetFileFooterLength() + + def file_postscript_length(self): + return deref(self.reader).GetFilePostscriptLength() + + def file_length(self): + return deref(self.reader).GetFileLength() + + def serialized_file_tail(self): + return deref(self.reader).GetSerializedFileTail() + + def read_stripe(self, n, columns=None): + cdef: + shared_ptr[CRecordBatch] sp_record_batch + int64_t stripe + std_vector[c_string] c_names + + stripe = n + + if columns is None: + with nogil: + sp_record_batch = GetResultValue( + deref(self.reader).ReadStripe(stripe) + ) + else: + c_names = [tobytes(name) for name in columns] + with nogil: + sp_record_batch = GetResultValue( + deref(self.reader).ReadStripe(stripe, c_names) + ) + + return pyarrow_wrap_batch(sp_record_batch) + + def read(self, columns=None): + cdef: + shared_ptr[CTable] sp_table + std_vector[c_string] c_names + + if columns is None: + with nogil: + sp_table = GetResultValue(deref(self.reader).Read()) + else: + c_names = [tobytes(name) for name in columns] + with nogil: + sp_table = GetResultValue(deref(self.reader).Read(c_names)) + + return pyarrow_wrap_table(sp_table) + + +cdef class ORCWriter(_Weakrefable): + cdef: + unique_ptr[ORCFileWriter] writer + shared_ptr[COutputStream] sink + c_bool own_sink + + def open(self, object where, *, + file_version=None, + batch_size=None, + stripe_size=None, + compression=None, + compression_block_size=None, + compression_strategy=None, + row_index_stride=None, + padding_tolerance=None, + dictionary_key_size_threshold=None, + bloom_filter_columns=None, + bloom_filter_fpp=None): + cdef: + shared_ptr[WriteOptions] write_options + c_string c_where + try: + where = _stringify_path(where) + except TypeError: + get_writer(where, &self.sink) + self.own_sink = False + else: + c_where = tobytes(where) + with nogil: + self.sink = GetResultValue(FileOutputStream.Open(c_where)) + self.own_sink = True + + write_options = _create_write_options( + file_version=file_version, + batch_size=batch_size, + stripe_size=stripe_size, + compression=compression, + compression_block_size=compression_block_size, + compression_strategy=compression_strategy, + row_index_stride=row_index_stride, + padding_tolerance=padding_tolerance, + dictionary_key_size_threshold=dictionary_key_size_threshold, + bloom_filter_columns=bloom_filter_columns, + bloom_filter_fpp=bloom_filter_fpp + ) + + with nogil: + self.writer = move(GetResultValue( + ORCFileWriter.Open(self.sink.get(), + deref(write_options)))) + + def write(self, Table table): + cdef: + shared_ptr[CTable] sp_table + sp_table = pyarrow_unwrap_table(table) + with nogil: + check_status(deref(self.writer).Write(deref(sp_table))) + + def close(self): + with nogil: + check_status(deref(self.writer).Close()) + if self.own_sink: + check_status(deref(self.sink).Close()) diff --git a/shared/package-files/3e/3e8831ec98b56d552aa800e13e3f88c877f8e183e9ce6e952e02ccfa1e8af758/linalg_lu_solve_cpu_dispatch.h b/shared/package-files/3e/3e8831ec98b56d552aa800e13e3f88c877f8e183e9ce6e952e02ccfa1e8af758/linalg_lu_solve_cpu_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..deecd795b72a7db02f83fcf879633760898d3b99 --- /dev/null +++ b/shared/package-files/3e/3e8831ec98b56d552aa800e13e3f88c877f8e183e9ce6e952e02ccfa1e8af758/linalg_lu_solve_cpu_dispatch.h @@ -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 linalg_lu_solve(const at::Tensor & LU, const at::Tensor & pivots, const at::Tensor & B, bool left=true, bool adjoint=false); +TORCH_API at::Tensor & linalg_lu_solve_out(at::Tensor & out, const at::Tensor & LU, const at::Tensor & pivots, const at::Tensor & B, bool left=true, bool adjoint=false); +TORCH_API at::Tensor & linalg_lu_solve_outf(const at::Tensor & LU, const at::Tensor & pivots, const at::Tensor & B, bool left, bool adjoint, at::Tensor & out); + +} // namespace cpu +} // namespace at diff --git a/shared/package-files/3e/3e89bfdbaeebb28665eb22ef62596efd25b5922c48ad23e6b1df872f3b67df76/Davis b/shared/package-files/3e/3e89bfdbaeebb28665eb22ef62596efd25b5922c48ad23e6b1df872f3b67df76/Davis new file mode 100644 index 0000000000000000000000000000000000000000..3ec32224f2982db46a19d1a159f9017286fd1413 Binary files /dev/null and b/shared/package-files/3e/3e89bfdbaeebb28665eb22ef62596efd25b5922c48ad23e6b1df872f3b67df76/Davis differ diff --git a/shared/package-files/3e/3e89f34dba42355bcd12adcfc77d5d958bc7f375d89d90204cc0bf7fb36504f8/while_loop.py b/shared/package-files/3e/3e89f34dba42355bcd12adcfc77d5d958bc7f375d89d90204cc0bf7fb36504f8/while_loop.py new file mode 100644 index 0000000000000000000000000000000000000000..2ee4b51f2da6975b50b7df7ba0f3555bd77b21fe --- /dev/null +++ b/shared/package-files/3e/3e89f34dba42355bcd12adcfc77d5d958bc7f375d89d90204cc0bf7fb36504f8/while_loop.py @@ -0,0 +1,232 @@ +import torch +import torch.utils._pytree as pytree + +from torch._C import DispatchKey + +from torch._higher_order_ops.utils import ( + _has_potential_branch_input_alias, + _has_potential_branch_input_mutation, + _set_compilation_env, + autograd_not_implemented, + reenter_make_fx, + UnsupportedAliasMutationException, +) +from torch._ops import HigherOrderOperator +from torch._subclasses.fake_tensor import FakeTensorMode +from torch.fx.experimental.proxy_tensor import ( + disable_proxy_modes_tracing, + ProxyTorchDispatchMode, + track_tensor_tree, +) + + +class WhileLoopOp(HigherOrderOperator): + def __call__(self, cond_fn, body_fn, operands): + if not isinstance(cond_fn, torch.fx.GraphModule) or not isinstance( + body_fn, torch.fx.GraphModule + ): + raise RuntimeError( + "cond_fn and body_fn must be torch.fx.GraphModule, got " + f"{type(cond_fn)} and {type(body_fn)}" + ) + if not isinstance(operands, tuple): + raise RuntimeError("operands must be a tuple, got " f"{type(operands)}") + if not all(isinstance(t, (torch.Tensor, int, float, bool)) for t in operands): + raise RuntimeError( + "operands must be a tuple of tensors, ints, floats, or bools, got " + f"{operands}" + ) + return super().__call__(cond_fn, body_fn, operands) + + +while_loop_op = HigherOrderOperator("while_loop") + + +def while_loop(cond_fn, body_fn, operands): + r""" + Run body_fn(*operands) while cond_fn(*operands) returns a True scalar tensor. Returns the output of body_fn or + initial operands. + + .. warning:: + `torch.while_loop` is a prototype feature in PyTorch. It has limited support for input and output types and + doesn't support training currently. Please look forward to a more stable implementation in a future version of PyTorch. + Read more about feature classification at: https://pytorch.org/blog/pytorch-feature-classification-changes/#prototype + + `while_loop` is a structured control flow operator. It preserves the loop semantic across the torch.compile and torch.export. + + `while_loop` is equivalent to the following: + + def while_loop(cond_fn, body_fn, operands): + val = operands + while cond_fn(*val): + val = body_fn(*val) + return val + + Args: + cond_fn (Callable): A callable function that returns a boolean Scalar tensor. + + body_fn (Callable): A callable function that takes the same inputs as `cond_fn` and returns a tuple of tensors + + operands (Tuple of possibly nested dict/list/tuple of tensors): A tuple of inputs to cond_fn and body_fn. It's also + the initial value of states that are carried across iterations. + + Example: + + def cond_fn(iter, x): + return iter.sum() < 10 + + def body_fn(iter, x): + return iter + 1, x.sin() + + while_loop(cond_fn, body_fn, (torch.zeros(1), torch.randn(3, 4))) + + Restrictions: + + - body_fn must return tensors with the same metadata (e.g.shape, dtype) as inputs. + + - body_fn and cond_fn must not in-place mutate the operands. A clone before the mutation is required. + + - body_fn and cond_fn must not mutate python varialbles (e.g. list/dict) created outside of the body_fn. + + - body_fn and cond_fn's output cannot aliase any of the inputs. A clone is required. + + .. warning:: + Temporal Limitations: + + - 'while_loop' only supports **inference** right now. Autograd will be supported in the future. + + """ + if torch.compiler.is_dynamo_compiling(): + return while_loop_op(cond_fn, body_fn, operands) + + def _validate_input(cond_fn, body_fn, operands): + if not callable(cond_fn) or not callable(body_fn): + raise RuntimeError("Expect cond_fn and body_fn to be callbale.") + + if not isinstance(operands, (tuple, list)) or pytree.tree_any( + lambda t: not isinstance(t, torch.Tensor), operands + ): + raise RuntimeError( + "Expect operands to be a tuple of possibly nested dict/list/tuple that only" + f"consists of tensor leaves, but got {operands}." + ) + + _validate_input(cond_fn, body_fn, operands) + + with _set_compilation_env(), torch._dynamo.utils.disable_cache_limit(): + return torch.compile(while_loop_op, backend="eager", fullgraph=True)( + cond_fn, body_fn, operands + ) + + +@while_loop_op.py_impl(DispatchKey.CompositeExplicitAutograd) +def while_loop_dense(cond_fn, body_fn, operands): + init_val = operands + + def _is_boolean_scalar_tensor(pred): + return ( + isinstance(pred, torch.Tensor) + and pred.size() == torch.Size([]) + and pred.dtype == torch.bool + ) + + if not isinstance(operands, tuple): + raise RuntimeError(f"operands must be a tuple but got {type(operands)}") + + while pred := cond_fn(*init_val): + if not _is_boolean_scalar_tensor(pred): + raise RuntimeError( + f"cond_fn must return a boolean scalar tensor but got {pred}" + ) + out = body_fn(*init_val) + assert isinstance( + out, tuple + ), f"body_fn should return a tuple but got {type(out)}" + assert len(out) == len( + init_val + ), "body_fn should return the same number of elements as operands" + init_val = out + return init_val + + +while_loop_op.py_impl(DispatchKey.Autograd)( + autograd_not_implemented(while_loop_op, deferred_error=True) +) + + +@while_loop_op.py_impl(ProxyTorchDispatchMode) +def while_loop_tracing(mode, cond_fn, body_fn, operands): + def _trace_while_loop(proxy_mode, while_loop_op, cond_fn, body_fn, operands): + pre_dispatch = getattr(proxy_mode, "pre_dispatch", False) + with disable_proxy_modes_tracing(): + cond_graph = reenter_make_fx(cond_fn, pre_dispatch)(*operands) + body_graph = reenter_make_fx(body_fn, pre_dispatch)(*operands) + + next_name = None + i = 0 + while not next_name: + candidate = f"while_loop_cond_graph_{i}" + if hasattr(proxy_mode.tracer.root, candidate): + i += 1 + else: + next_name = candidate + cond_graph_name = next_name + body_graph_name = f"while_loop_body_graph_{i}" + assert not hasattr(proxy_mode.tracer.root, body_graph_name) + + proxy_mode.tracer.root.register_module(cond_graph_name, cond_graph) + proxy_mode.tracer.root.register_module(body_graph_name, body_graph) + + args = (cond_graph, body_graph, operands) + + proxy_args = pytree.tree_map(proxy_mode.tracer.unwrap_proxy, args) + + out_proxy = proxy_mode.tracer.create_proxy( + "call_function", while_loop_op, proxy_args, {}, name="while_loop" + ) + + # body_fn return output with the same pytree and tensor meta data as operands + # so we could just return the output after one iteration. + out = body_fn(*operands) + return track_tensor_tree( + out, out_proxy, constant=None, tracer=proxy_mode.tracer + ) + + if mode.enable_tracing: + return _trace_while_loop(mode, while_loop_op, cond_fn, body_fn, operands) + else: + return while_loop_op(cond_fn, body_fn, operands) + + +@while_loop_op.py_impl(FakeTensorMode) +def while_loop_fake_tensor_mode(mode, cond_fn, body_fn, operands): + return body_fn(*operands) + + +@while_loop_op.py_functionalize_impl +def while_loop_func(ctx, cond_fn, body_fn, operands): + unwrapped_operands = ctx.unwrap_tensors(operands) + with ctx.redispatch_to_next() as m: + functional_cond_fn = ctx.functionalize(cond_fn) + functional_body_fn = ctx.functionalize(body_fn) + pre_dispatch = hasattr(ctx, "mode") and ctx.mode.pre_dispatch + for fn, fn_name in [ + (functional_cond_fn, "cond_fn"), + (functional_body_fn, "body_fn"), + ]: + if _has_potential_branch_input_mutation( + fn, unwrapped_operands, pre_dispatch=pre_dispatch + ): + raise UnsupportedAliasMutationException( + f"torch.while_loop's {fn_name} might be modifying the input!" + ) + + for fn in [functional_cond_fn, functional_body_fn]: + if _has_potential_branch_input_alias( + fn, unwrapped_operands, pre_dispatch=pre_dispatch + ): + raise UnsupportedAliasMutationException( + f"torch.while_loop's {fn_name} might be aliasing the input!" + ) + ret = while_loop_op(functional_cond_fn, functional_body_fn, unwrapped_operands) + return ctx.wrap_tensors(ret) diff --git a/shared/package-files/3e/3e8a61b1b0442f1d04e7ea946723c4583bffb16eee4b07963ce849952d31b5bf/PyProcessGroup.hpp b/shared/package-files/3e/3e8a61b1b0442f1d04e7ea946723c4583bffb16eee4b07963ce849952d31b5bf/PyProcessGroup.hpp new file mode 100644 index 0000000000000000000000000000000000000000..d10f0a6986929949cd08e1ce11b9d51769c4bdc1 --- /dev/null +++ b/shared/package-files/3e/3e8a61b1b0442f1d04e7ea946723c4583bffb16eee4b07963ce849952d31b5bf/PyProcessGroup.hpp @@ -0,0 +1,219 @@ +#pragma once + +#include +#include +#include + +namespace c10d { + +// PyProcessGroup is a pybind11 trampoline class to allow a Python +// class to inherit from torch.distributed.ProcessGroup +class PyProcessGroup : public ProcessGroup { + public: + // PyWork is a pybind11 trampoline class to allow a Python + // class to inherit from torch.distributed.Work + class PyWork : public Work { + public: + PyWork() = default; + + bool wait(std::chrono::milliseconds timeout = kNoTimeout) override { + PYBIND11_OVERRIDE( + bool, /* Return type */ + Work, /* Parent class */ + wait, /* Name of function in C++ */ + timeout); + } + + c10::intrusive_ptr getFuture() override { + // We cannot use PYBIND11_OVERRIDE because: + // 1. We have to >MANUALLY< unwrap the PyFutureWrapper and + // 2. The python name is get_future + pybind11::gil_scoped_acquire gil; + auto override = + pybind11::get_override(static_cast(this), "get_future"); + + if (override) { + py::object o = override(); + auto futWrapper = + o.cast>(); + return futWrapper->fut; + } + + return Work::getFuture(); + } + }; + + using ProcessGroup::ProcessGroup; + + const std::string getBackendName() const override { + PYBIND11_OVERRIDE_PURE( + std::string, /* Return type */ + ProcessGroup, /* Parent class */ + getBackendName, /* Name of function in C++ */ + ); + } + + c10::intrusive_ptr allgather( + std::vector>& outputTensors, + std::vector& inputTensors, + const AllgatherOptions& opts = AllgatherOptions()) override { + PYBIND11_OVERRIDE( + c10::intrusive_ptr, /* Return type */ + ProcessGroup, /* Parent class */ + allgather, /* Name of function in C++ */ + outputTensors, + inputTensors, + opts); + } + + c10::intrusive_ptr allgather_into_tensor_coalesced( + std::vector& outputTensors, + std::vector& inputTensors, + const AllgatherOptions& opts = AllgatherOptions()) override { + PYBIND11_OVERRIDE( + c10::intrusive_ptr, /* Return type */ + ProcessGroup, /* Parent class */ + allgather_into_tensor_coalesced, /* Name of function in C++ */ + outputTensors, + inputTensors, + opts); + } + + c10::intrusive_ptr allreduce( + std::vector& tensors, + const AllreduceOptions& opts = AllreduceOptions()) override { + PYBIND11_OVERRIDE( + c10::intrusive_ptr, /* Return type */ + ProcessGroup, /* Parent class */ + allreduce, /* Name of function in C++ */ + tensors, + opts); + } + + c10::intrusive_ptr allreduce_coalesced( + std::vector& tensors, + const AllreduceCoalescedOptions& opts = + AllreduceCoalescedOptions()) override { + PYBIND11_OVERRIDE( + c10::intrusive_ptr, /* Return type */ + ProcessGroup, /* Parent class */ + allreduce_coalesced, /* Name of function in C++ */ + tensors, + opts); + } + + c10::intrusive_ptr barrier( + const BarrierOptions& opts = BarrierOptions()) override { + PYBIND11_OVERRIDE( + c10::intrusive_ptr, /* Return type */ + ProcessGroup, /* Parent class */ + barrier, /* Name of function in C++ */ + opts); + } + + c10::intrusive_ptr broadcast( + std::vector& tensors, + const BroadcastOptions& opts = BroadcastOptions()) override { + PYBIND11_OVERRIDE( + c10::intrusive_ptr, /* Return type */ + ProcessGroup, /* Parent class */ + broadcast, /* Name of function in C++ */ + tensors, + opts); + } + + c10::intrusive_ptr reduce_scatter( + std::vector& outputTensors, + std::vector>& inputTensors, + const ReduceScatterOptions& opts = ReduceScatterOptions()) override { + PYBIND11_OVERRIDE( + c10::intrusive_ptr, /* Return type */ + ProcessGroup, /* Parent class */ + reduce_scatter, /* Name of function in C++ */ + outputTensors, + inputTensors, + opts); + } + + c10::intrusive_ptr reduce_scatter_tensor_coalesced( + std::vector& outputTensors, + std::vector& inputTensors, + const ReduceScatterOptions& opts = ReduceScatterOptions()) override { + PYBIND11_OVERRIDE( + c10::intrusive_ptr, /* Return type */ + ProcessGroup, /* Parent class */ + reduce_scatter_tensor_coalesced, /* Name of function in C++ */ + outputTensors, + inputTensors, + opts); + } + + c10::intrusive_ptr send( + std::vector& tensors, + int dstRank, + int tag) override { + PYBIND11_OVERRIDE( + c10::intrusive_ptr, /* Return type */ + ProcessGroup, /* Parent class */ + send, /* Name of function in C++ */ + tensors, + dstRank, + tag); + } + + c10::intrusive_ptr recv( + std::vector& tensors, + int srcRank, + int tag) override { + PYBIND11_OVERRIDE( + c10::intrusive_ptr, /* Return type */ + ProcessGroup, /* Parent class */ + recv, /* Name of function in C++ */ + tensors, + srcRank, + tag); + } +}; + +class TORCH_PYTHON_API PythonOnCompletionHook { + public: + // Wraps a py::object hook and acquires Python GIL in dtor before + // destructing the hook object. + PythonOnCompletionHook(py::object hook) : hook_(std::move(hook)) {} + + ~PythonOnCompletionHook() { + py::gil_scoped_acquire ag; + hook_.dec_ref(); + // Explicitly set hook_ to nullptr to prevent py::object's dtor + // to decref on the PyObject again. + // See Note [Destructing py::object] in python_ivalue.h + hook_.ptr() = nullptr; + } + + void operator()(std::shared_ptr workInfo) const { + std::exception_ptr eptr; + { + py::gil_scoped_acquire acquire; + try { + hook_(workInfo); + } catch (py::error_already_set& e) { + // py::error_already_set requires GIL to destruct, take + // special care. + eptr = std::make_exception_ptr(std::runtime_error(e.what())); + e.restore(); + PyErr_Clear(); + } catch (std::exception& e) { + eptr = std::current_exception(); + } + } + // No more Python-related stuff at this point, i.e., this + // exception can be captured and handled by PG backend. + if (eptr) + std::rethrow_exception(eptr); + } + + private: + py::object hook_; +}; + +} // namespace c10d diff --git a/shared/package-files/3e/3e8ba3ffe348df24521038268b6715d85b9a8446536bb46e531f91e21d4e0368/_scaled_dot_product_flash_attention_for_cpu_backward_ops.h b/shared/package-files/3e/3e8ba3ffe348df24521038268b6715d85b9a8446536bb46e531f91e21d4e0368/_scaled_dot_product_flash_attention_for_cpu_backward_ops.h new file mode 100644 index 0000000000000000000000000000000000000000..39371fc5824f76cb9f885d8ed1f6a8b92bb1e37b --- /dev/null +++ b/shared/package-files/3e/3e8ba3ffe348df24521038268b6715d85b9a8446536bb46e531f91e21d4e0368/_scaled_dot_product_flash_attention_for_cpu_backward_ops.h @@ -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 _scaled_dot_product_flash_attention_for_cpu_backward { + using schema = ::std::tuple (const at::Tensor &, const at::Tensor &, const at::Tensor &, const at::Tensor &, const at::Tensor &, const at::Tensor &, double, bool, const 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::_scaled_dot_product_flash_attention_for_cpu_backward") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "_scaled_dot_product_flash_attention_for_cpu_backward(Tensor grad_out, Tensor query, Tensor key, Tensor value, Tensor out, Tensor logsumexp, float dropout_p, bool is_causal, *, Tensor? attn_mask=None, float? scale=None) -> (Tensor grad_query, Tensor grad_key, Tensor grad_value)") + static ::std::tuple call(const at::Tensor & grad_out, const at::Tensor & query, const at::Tensor & key, const at::Tensor & value, const at::Tensor & out, const at::Tensor & logsumexp, double dropout_p, bool is_causal, const c10::optional & attn_mask, c10::optional scale); + static ::std::tuple redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_out, const at::Tensor & query, const at::Tensor & key, const at::Tensor & value, const at::Tensor & out, const at::Tensor & logsumexp, double dropout_p, bool is_causal, const c10::optional & attn_mask, c10::optional scale); +}; + +}} // namespace at::_ops diff --git a/shared/package-files/3e/3e8c7bd477ec1271860753c6538e29c2bae68f13cb42503e21b5fa9d04680363/__init__.py b/shared/package-files/3e/3e8c7bd477ec1271860753c6538e29c2bae68f13cb42503e21b5fa9d04680363/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..3824a0a09ebcef2a5102a48348d5a9e21f50b383 --- /dev/null +++ b/shared/package-files/3e/3e8c7bd477ec1271860753c6538e29c2bae68f13cb42503e21b5fa9d04680363/__init__.py @@ -0,0 +1,68 @@ +# Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license + +# Copyright (C) 2003-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. + +"""Class ANY (generic) rdata type classes.""" + +__all__ = [ + "AFSDB", + "AMTRELAY", + "AVC", + "CAA", + "CDNSKEY", + "CDS", + "CERT", + "CNAME", + "CSYNC", + "DLV", + "DNAME", + "DNSKEY", + "DS", + "EUI48", + "EUI64", + "GPOS", + "HINFO", + "HIP", + "ISDN", + "L32", + "L64", + "LOC", + "LP", + "MX", + "NID", + "NINFO", + "NS", + "NSEC", + "NSEC3", + "NSEC3PARAM", + "OPENPGPKEY", + "OPT", + "PTR", + "RP", + "RRSIG", + "RT", + "SMIMEA", + "SOA", + "SPF", + "SSHFP", + "TKEY", + "TLSA", + "TSIG", + "TXT", + "URI", + "X25", + "ZONEMD", +] diff --git a/shared/package-files/3e/3e8e170967f1870150d50f31f0379ac8688c0892f14446820e45727a569dc415/ctypeslib.py b/shared/package-files/3e/3e8e170967f1870150d50f31f0379ac8688c0892f14446820e45727a569dc415/ctypeslib.py new file mode 100644 index 0000000000000000000000000000000000000000..d9f64fd9e716830ff33d4d787a0492c65d517603 --- /dev/null +++ b/shared/package-files/3e/3e8e170967f1870150d50f31f0379ac8688c0892f14446820e45727a569dc415/ctypeslib.py @@ -0,0 +1,545 @@ +""" +============================ +``ctypes`` Utility Functions +============================ + +See Also +-------- +load_library : Load a C library. +ndpointer : Array restype/argtype with verification. +as_ctypes : Create a ctypes array from an ndarray. +as_array : Create an ndarray from a ctypes array. + +References +---------- +.. [1] "SciPy Cookbook: ctypes", https://scipy-cookbook.readthedocs.io/items/Ctypes.html + +Examples +-------- +Load the C library: + +>>> _lib = np.ctypeslib.load_library('libmystuff', '.') #doctest: +SKIP + +Our result type, an ndarray that must be of type double, be 1-dimensional +and is C-contiguous in memory: + +>>> array_1d_double = np.ctypeslib.ndpointer( +... dtype=np.double, +... ndim=1, flags='CONTIGUOUS') #doctest: +SKIP + +Our C-function typically takes an array and updates its values +in-place. For example:: + + void foo_func(double* x, int length) + { + int i; + for (i = 0; i < length; i++) { + x[i] = i*i; + } + } + +We wrap it using: + +>>> _lib.foo_func.restype = None #doctest: +SKIP +>>> _lib.foo_func.argtypes = [array_1d_double, c_int] #doctest: +SKIP + +Then, we're ready to call ``foo_func``: + +>>> out = np.empty(15, dtype=np.double) +>>> _lib.foo_func(out, len(out)) #doctest: +SKIP + +""" +__all__ = ['load_library', 'ndpointer', 'c_intp', 'as_ctypes', 'as_array', + 'as_ctypes_type'] + +import os +from numpy import ( + integer, ndarray, dtype as _dtype, asarray, frombuffer +) +from numpy.core.multiarray import _flagdict, flagsobj + +try: + import ctypes +except ImportError: + ctypes = None + +if ctypes is None: + def _dummy(*args, **kwds): + """ + Dummy object that raises an ImportError if ctypes is not available. + + Raises + ------ + ImportError + If ctypes is not available. + + """ + raise ImportError("ctypes is not available.") + load_library = _dummy + as_ctypes = _dummy + as_array = _dummy + from numpy import intp as c_intp + _ndptr_base = object +else: + import numpy.core._internal as nic + c_intp = nic._getintp_ctype() + del nic + _ndptr_base = ctypes.c_void_p + + # Adapted from Albert Strasheim + def load_library(libname, loader_path): + """ + It is possible to load a library using + + >>> lib = ctypes.cdll[] # doctest: +SKIP + + But there are cross-platform considerations, such as library file extensions, + plus the fact Windows will just load the first library it finds with that name. + NumPy supplies the load_library function as a convenience. + + .. versionchanged:: 1.20.0 + Allow libname and loader_path to take any + :term:`python:path-like object`. + + Parameters + ---------- + libname : path-like + Name of the library, which can have 'lib' as a prefix, + but without an extension. + loader_path : path-like + Where the library can be found. + + Returns + ------- + ctypes.cdll[libpath] : library object + A ctypes library object + + Raises + ------ + OSError + If there is no library with the expected extension, or the + library is defective and cannot be loaded. + """ + # Convert path-like objects into strings + libname = os.fsdecode(libname) + loader_path = os.fsdecode(loader_path) + + ext = os.path.splitext(libname)[1] + if not ext: + import sys + import sysconfig + # Try to load library with platform-specific name, otherwise + # default to libname.[so|dll|dylib]. Sometimes, these files are + # built erroneously on non-linux platforms. + base_ext = ".so" + if sys.platform.startswith("darwin"): + base_ext = ".dylib" + elif sys.platform.startswith("win"): + base_ext = ".dll" + libname_ext = [libname + base_ext] + so_ext = sysconfig.get_config_var("EXT_SUFFIX") + if not so_ext == base_ext: + libname_ext.insert(0, libname + so_ext) + else: + libname_ext = [libname] + + loader_path = os.path.abspath(loader_path) + if not os.path.isdir(loader_path): + libdir = os.path.dirname(loader_path) + else: + libdir = loader_path + + for ln in libname_ext: + libpath = os.path.join(libdir, ln) + if os.path.exists(libpath): + try: + return ctypes.cdll[libpath] + except OSError: + ## defective lib file + raise + ## if no successful return in the libname_ext loop: + raise OSError("no file with expected extension") + + +def _num_fromflags(flaglist): + num = 0 + for val in flaglist: + num += _flagdict[val] + return num + +_flagnames = ['C_CONTIGUOUS', 'F_CONTIGUOUS', 'ALIGNED', 'WRITEABLE', + 'OWNDATA', 'WRITEBACKIFCOPY'] +def _flags_fromnum(num): + res = [] + for key in _flagnames: + value = _flagdict[key] + if (num & value): + res.append(key) + return res + + +class _ndptr(_ndptr_base): + @classmethod + def from_param(cls, obj): + if not isinstance(obj, ndarray): + raise TypeError("argument must be an ndarray") + if cls._dtype_ is not None \ + and obj.dtype != cls._dtype_: + raise TypeError("array must have data type %s" % cls._dtype_) + if cls._ndim_ is not None \ + and obj.ndim != cls._ndim_: + raise TypeError("array must have %d dimension(s)" % cls._ndim_) + if cls._shape_ is not None \ + and obj.shape != cls._shape_: + raise TypeError("array must have shape %s" % str(cls._shape_)) + if cls._flags_ is not None \ + and ((obj.flags.num & cls._flags_) != cls._flags_): + raise TypeError("array must have flags %s" % + _flags_fromnum(cls._flags_)) + return obj.ctypes + + +class _concrete_ndptr(_ndptr): + """ + Like _ndptr, but with `_shape_` and `_dtype_` specified. + + Notably, this means the pointer has enough information to reconstruct + the array, which is not generally true. + """ + def _check_retval_(self): + """ + This method is called when this class is used as the .restype + attribute for a shared-library function, to automatically wrap the + pointer into an array. + """ + return self.contents + + @property + def contents(self): + """ + Get an ndarray viewing the data pointed to by this pointer. + + This mirrors the `contents` attribute of a normal ctypes pointer + """ + full_dtype = _dtype((self._dtype_, self._shape_)) + full_ctype = ctypes.c_char * full_dtype.itemsize + buffer = ctypes.cast(self, ctypes.POINTER(full_ctype)).contents + return frombuffer(buffer, dtype=full_dtype).squeeze(axis=0) + + +# Factory for an array-checking class with from_param defined for +# use with ctypes argtypes mechanism +_pointer_type_cache = {} +def ndpointer(dtype=None, ndim=None, shape=None, flags=None): + """ + Array-checking restype/argtypes. + + An ndpointer instance is used to describe an ndarray in restypes + and argtypes specifications. This approach is more flexible than + using, for example, ``POINTER(c_double)``, since several restrictions + can be specified, which are verified upon calling the ctypes function. + These include data type, number of dimensions, shape and flags. If a + given array does not satisfy the specified restrictions, + a ``TypeError`` is raised. + + Parameters + ---------- + dtype : data-type, optional + Array data-type. + ndim : int, optional + Number of array dimensions. + shape : tuple of ints, optional + Array shape. + flags : str or tuple of str + Array flags; may be one or more of: + + - C_CONTIGUOUS / C / CONTIGUOUS + - F_CONTIGUOUS / F / FORTRAN + - OWNDATA / O + - WRITEABLE / W + - ALIGNED / A + - WRITEBACKIFCOPY / X + + Returns + ------- + klass : ndpointer type object + A type object, which is an ``_ndtpr`` instance containing + dtype, ndim, shape and flags information. + + Raises + ------ + TypeError + If a given array does not satisfy the specified restrictions. + + Examples + -------- + >>> clib.somefunc.argtypes = [np.ctypeslib.ndpointer(dtype=np.float64, + ... ndim=1, + ... flags='C_CONTIGUOUS')] + ... #doctest: +SKIP + >>> clib.somefunc(np.array([1, 2, 3], dtype=np.float64)) + ... #doctest: +SKIP + + """ + + # normalize dtype to an Optional[dtype] + if dtype is not None: + dtype = _dtype(dtype) + + # normalize flags to an Optional[int] + num = None + if flags is not None: + if isinstance(flags, str): + flags = flags.split(',') + elif isinstance(flags, (int, integer)): + num = flags + flags = _flags_fromnum(num) + elif isinstance(flags, flagsobj): + num = flags.num + flags = _flags_fromnum(num) + if num is None: + try: + flags = [x.strip().upper() for x in flags] + except Exception as e: + raise TypeError("invalid flags specification") from e + num = _num_fromflags(flags) + + # normalize shape to an Optional[tuple] + if shape is not None: + try: + shape = tuple(shape) + except TypeError: + # single integer -> 1-tuple + shape = (shape,) + + cache_key = (dtype, ndim, shape, num) + + try: + return _pointer_type_cache[cache_key] + except KeyError: + pass + + # produce a name for the new type + if dtype is None: + name = 'any' + elif dtype.names is not None: + name = str(id(dtype)) + else: + name = dtype.str + if ndim is not None: + name += "_%dd" % ndim + if shape is not None: + name += "_"+"x".join(str(x) for x in shape) + if flags is not None: + name += "_"+"_".join(flags) + + if dtype is not None and shape is not None: + base = _concrete_ndptr + else: + base = _ndptr + + klass = type("ndpointer_%s"%name, (base,), + {"_dtype_": dtype, + "_shape_" : shape, + "_ndim_" : ndim, + "_flags_" : num}) + _pointer_type_cache[cache_key] = klass + return klass + + +if ctypes is not None: + def _ctype_ndarray(element_type, shape): + """ Create an ndarray of the given element type and shape """ + for dim in shape[::-1]: + element_type = dim * element_type + # prevent the type name include np.ctypeslib + element_type.__module__ = None + return element_type + + + def _get_scalar_type_map(): + """ + Return a dictionary mapping native endian scalar dtype to ctypes types + """ + ct = ctypes + simple_types = [ + ct.c_byte, ct.c_short, ct.c_int, ct.c_long, ct.c_longlong, + ct.c_ubyte, ct.c_ushort, ct.c_uint, ct.c_ulong, ct.c_ulonglong, + ct.c_float, ct.c_double, + ct.c_bool, + ] + return {_dtype(ctype): ctype for ctype in simple_types} + + + _scalar_type_map = _get_scalar_type_map() + + + def _ctype_from_dtype_scalar(dtype): + # swapping twice ensure that `=` is promoted to <, >, or | + dtype_with_endian = dtype.newbyteorder('S').newbyteorder('S') + dtype_native = dtype.newbyteorder('=') + try: + ctype = _scalar_type_map[dtype_native] + except KeyError as e: + raise NotImplementedError( + "Converting {!r} to a ctypes type".format(dtype) + ) from None + + if dtype_with_endian.byteorder == '>': + ctype = ctype.__ctype_be__ + elif dtype_with_endian.byteorder == '<': + ctype = ctype.__ctype_le__ + + return ctype + + + def _ctype_from_dtype_subarray(dtype): + element_dtype, shape = dtype.subdtype + ctype = _ctype_from_dtype(element_dtype) + return _ctype_ndarray(ctype, shape) + + + def _ctype_from_dtype_structured(dtype): + # extract offsets of each field + field_data = [] + for name in dtype.names: + field_dtype, offset = dtype.fields[name][:2] + field_data.append((offset, name, _ctype_from_dtype(field_dtype))) + + # ctypes doesn't care about field order + field_data = sorted(field_data, key=lambda f: f[0]) + + if len(field_data) > 1 and all(offset == 0 for offset, name, ctype in field_data): + # union, if multiple fields all at address 0 + size = 0 + _fields_ = [] + for offset, name, ctype in field_data: + _fields_.append((name, ctype)) + size = max(size, ctypes.sizeof(ctype)) + + # pad to the right size + if dtype.itemsize != size: + _fields_.append(('', ctypes.c_char * dtype.itemsize)) + + # we inserted manual padding, so always `_pack_` + return type('union', (ctypes.Union,), dict( + _fields_=_fields_, + _pack_=1, + __module__=None, + )) + else: + last_offset = 0 + _fields_ = [] + for offset, name, ctype in field_data: + padding = offset - last_offset + if padding < 0: + raise NotImplementedError("Overlapping fields") + if padding > 0: + _fields_.append(('', ctypes.c_char * padding)) + + _fields_.append((name, ctype)) + last_offset = offset + ctypes.sizeof(ctype) + + + padding = dtype.itemsize - last_offset + if padding > 0: + _fields_.append(('', ctypes.c_char * padding)) + + # we inserted manual padding, so always `_pack_` + return type('struct', (ctypes.Structure,), dict( + _fields_=_fields_, + _pack_=1, + __module__=None, + )) + + + def _ctype_from_dtype(dtype): + if dtype.fields is not None: + return _ctype_from_dtype_structured(dtype) + elif dtype.subdtype is not None: + return _ctype_from_dtype_subarray(dtype) + else: + return _ctype_from_dtype_scalar(dtype) + + + def as_ctypes_type(dtype): + r""" + Convert a dtype into a ctypes type. + + Parameters + ---------- + dtype : dtype + The dtype to convert + + Returns + ------- + ctype + A ctype scalar, union, array, or struct + + Raises + ------ + NotImplementedError + If the conversion is not possible + + Notes + ----- + This function does not losslessly round-trip in either direction. + + ``np.dtype(as_ctypes_type(dt))`` will: + + - insert padding fields + - reorder fields to be sorted by offset + - discard field titles + + ``as_ctypes_type(np.dtype(ctype))`` will: + + - discard the class names of `ctypes.Structure`\ s and + `ctypes.Union`\ s + - convert single-element `ctypes.Union`\ s into single-element + `ctypes.Structure`\ s + - insert padding fields + + """ + return _ctype_from_dtype(_dtype(dtype)) + + + def as_array(obj, shape=None): + """ + Create a numpy array from a ctypes array or POINTER. + + The numpy array shares the memory with the ctypes object. + + The shape parameter must be given if converting from a ctypes POINTER. + The shape parameter is ignored if converting from a ctypes array + """ + if isinstance(obj, ctypes._Pointer): + # convert pointers to an array of the desired shape + if shape is None: + raise TypeError( + 'as_array() requires a shape argument when called on a ' + 'pointer') + p_arr_type = ctypes.POINTER(_ctype_ndarray(obj._type_, shape)) + obj = ctypes.cast(obj, p_arr_type).contents + + return asarray(obj) + + + def as_ctypes(obj): + """Create and return a ctypes object from a numpy array. Actually + anything that exposes the __array_interface__ is accepted.""" + ai = obj.__array_interface__ + if ai["strides"]: + raise TypeError("strided arrays not supported") + if ai["version"] != 3: + raise TypeError("only __array_interface__ version 3 supported") + addr, readonly = ai["data"] + if readonly: + raise TypeError("readonly arrays unsupported") + + # can't use `_dtype((ai["typestr"], ai["shape"]))` here, as it overflows + # dtype.itemsize (gh-14214) + ctype_scalar = as_ctypes_type(ai["typestr"]) + result_type = _ctype_ndarray(ctype_scalar, ai["shape"]) + result = result_type.from_address(addr) + result.__keep = obj + return result diff --git a/shared/package-files/3e/3e9095fd581f99e9b20e7d2350e1d92ac7701df7aef900a9aa645a496d60d328/test_sandwich.py b/shared/package-files/3e/3e9095fd581f99e9b20e7d2350e1d92ac7701df7aef900a9aa645a496d60d328/test_sandwich.py new file mode 100644 index 0000000000000000000000000000000000000000..0b494863f91ff0fcf5df6ab79b90dd6b874c7f8f --- /dev/null +++ b/shared/package-files/3e/3e9095fd581f99e9b20e7d2350e1d92ac7701df7aef900a9aa645a496d60d328/test_sandwich.py @@ -0,0 +1,127 @@ +"""Tests for sandwich robust covariance estimation + +see also in regression for cov_hac compared to Gretl and +sandbox.panel test_random_panel for comparing cov_cluster, cov_hac_panel and +cov_white + +Created on Sat Dec 17 08:39:16 2011 + +Author: Josef Perktold +""" +from pathlib import Path + +import numpy as np +from numpy.testing import assert_allclose, assert_almost_equal +import pandas as pd + +from statsmodels.regression.linear_model import OLS +import statsmodels.stats.sandwich_covariance as sw +from statsmodels.tools.tools import add_constant + + +def test_cov_cluster_2groups(): + # comparing cluster robust standard errors to Peterson + # requires Petersen's test_data + # http://www.kellogg.northwestern.edu/faculty/petersen + # .../htm/papers/se/test_data.txt + cur_dir = Path(__file__).parent.resolve() + fpath = Path(cur_dir).joinpath("test_data.txt") + pet = pd.read_csv(fpath, delimiter=r"\s+", header=None).values + endog = pet[:, -1] + group = pet[:, 0].astype(int) + time = pet[:, 1].astype(int) + exog = add_constant(pet[:, 2]) + res = OLS(endog, exog).fit() + + cov01, covg, covt = sw.cov_cluster_2groups(res, group, group2=time) + + # Reference number from Petersen + # http://www.kellogg.northwestern.edu/faculty/petersen/htm + # .../papers/se/test_data.htm + + bse_petw = [0.0284, 0.0284] + bse_pet0 = [0.0670, 0.0506] + bse_pet1 = [0.0234, 0.0334] # year + bse_pet01 = [0.0651, 0.0536] # firm and year + bse_0 = sw.se_cov(covg) + bse_1 = sw.se_cov(covt) + bse_01 = sw.se_cov(cov01) + # print res.HC0_se, bse_petw - res.HC0_se + # print bse_0, bse_0 - bse_pet0 + # print bse_1, bse_1 - bse_pet1 + # print bse_01, bse_01 - bse_pet01 + assert_almost_equal(bse_petw, res.HC0_se, decimal=4) + assert_almost_equal(bse_0, bse_pet0, decimal=4) + assert_almost_equal(bse_1, bse_pet1, decimal=4) + assert_almost_equal(bse_01, bse_pet01, decimal=4) + + +def test_hac_simple(): + from statsmodels.datasets import macrodata + d2 = macrodata.load_pandas().data + g_gdp = 400 * np.diff(np.log(d2["realgdp"].values)) + g_inv = 400 * np.diff(np.log(d2["realinv"].values)) + exogg = add_constant(np.c_[g_gdp, d2["realint"][:-1].values]) + res_olsg = OLS(g_inv, exogg).fit() + + # > NeweyWest(fm, lag = 4, prewhite = FALSE, sandwich = TRUE, + # verbose=TRUE, adjust=TRUE) + # Lag truncation parameter chosen: 4 + # (Intercept) ggdp lint + cov1_r = [ + [+1.40643899878678802, -0.3180328707083329709, -0.060621111216488610], + [-0.31803287070833292, 0.1097308348999818661, +0.000395311760301478], + [-0.06062111121648865, 0.0003953117603014895, +0.087511528912470993] + ] + + # > NeweyWest(fm, lag = 4, prewhite = FALSE, sandwich = TRUE, + # verbose=TRUE, adjust=FALSE) + # Lag truncation parameter chosen: 4 + # (Intercept) ggdp lint + cov2_r = [ + [+1.3855512908840137, -0.313309610252268500, -0.059720797683570477], + [-0.3133096102522685, +0.108101169035130618, +0.000389440793564339], + [-0.0597207976835705, +0.000389440793564336, +0.086211852740503622] + ] + + cov1 = sw.cov_hac_simple(res_olsg, nlags=4, use_correction=True) + se1 = sw.se_cov(cov1) + cov2 = sw.cov_hac_simple(res_olsg, nlags=4, use_correction=False) + se2 = sw.se_cov(cov2) + # Relax precision requirements for this test due to failure in NumPy 1.23 + assert_allclose(cov1, cov1_r) + assert_allclose(cov2, cov2_r) + assert_allclose(np.sqrt(np.diag(cov1_r)), se1) + assert_allclose(np.sqrt(np.diag(cov2_r)), se2) + + # compare default for nlags + cov3 = sw.cov_hac_simple(res_olsg, use_correction=False) + cov4 = sw.cov_hac_simple(res_olsg, nlags=4, use_correction=False) + assert_allclose(cov3, cov4) + + +def test_cov_hc0_to_hc3_match_results_attributes(): + # cov_hc0..cov_hc3 are exported from statsmodels.stats.api but were only + # ever exercised in examples/ex_sandwich.py, which pytest does not + # collect. RegressionResults independently computes the same HCx + # covariances for its HCx_se attributes, giving a second implementation + # to check the standalone functions against. + rs = np.random.RandomState(12345) + nobs, kvars = 100, 4 + x = rs.standard_normal((nobs, kvars - 1)) + exog = add_constant(x) + beta = np.ones(kvars) + sigma = 0.1 + np.exp(exog[:, -1]) + endog = exog.dot(beta) + sigma * rs.standard_normal(nobs) + + res = OLS(endog, exog).fit() + + assert_almost_equal(sw.se_cov(sw.cov_hc0(res)), res.HC0_se, decimal=13) + assert_almost_equal(sw.se_cov(sw.cov_hc1(res)), res.HC1_se, decimal=13) + assert_almost_equal(sw.se_cov(sw.cov_hc2(res)), res.HC2_se, decimal=13) + assert_almost_equal(sw.se_cov(sw.cov_hc3(res)), res.HC3_se, decimal=13) + + assert_allclose(sw.cov_hc0(res), res.cov_HC0) + assert_allclose(sw.cov_hc1(res), res.cov_HC1) + assert_allclose(sw.cov_hc2(res), res.cov_HC2) + assert_allclose(sw.cov_hc3(res), res.cov_HC3) diff --git a/shared/package-files/3e/3e923b911b994c71aa994f47e9b96da74be8d1f0b0465c02bea283982a86e113/decomp.py b/shared/package-files/3e/3e923b911b994c71aa994f47e9b96da74be8d1f0b0465c02bea283982a86e113/decomp.py new file mode 100644 index 0000000000000000000000000000000000000000..b9a131b974666869c6a8b3c1b4ace0a3afb841d9 --- /dev/null +++ b/shared/package-files/3e/3e923b911b994c71aa994f47e9b96da74be8d1f0b0465c02bea283982a86e113/decomp.py @@ -0,0 +1,83 @@ +from __future__ import annotations + +import contextlib + +from typing import Callable, Mapping, Optional + +import torch +import torch._ops +import torch.fx +from torch._dispatch import python as python_dispatch +from torch._subclasses import fake_tensor +from torch.fx.experimental import proxy_tensor +from torch.onnx._internal import _beartype +from torch.onnx._internal.fx import _pass, diagnostics +from torch.onnx._internal.fx.passes import _utils + + +class Decompose(_pass.Transform): + def __init__( + self, + diagnostic_context: diagnostics.DiagnosticContext, + module: torch.fx.GraphModule, + decomposition_table: Mapping[torch._ops.OpOverload, Callable], + enable_dynamic_axes: bool, + allow_fake_constant: Optional[bool] = False, + ): + super().__init__(diagnostic_context, module) + self.decomposition_table = decomposition_table + self.enable_dynamic_axes = enable_dynamic_axes + self.allow_fake_constant = allow_fake_constant + + @_beartype.beartype + def _run(self, *args, **kwargs) -> torch.fx.GraphModule: + assert not kwargs, "kwargs is not supported in Decompose." + + # To preserve stack trace info after `make_fx`. + module = _utils.wrap_graph_module_for_node_meta_preservation(self.module) + + # fake mode use static size to trace the size of tensors. while symbolic + # mode generates aten::sym_size to dynamically trace the size of tensors. + + # e.g. fake mode: + # view: f32[3, 5, 20] = torch.ops.aten.view.default(x, [3, 5, 20]) + + # e.g. symbolic mode: + # sym_size = torch.ops.aten.sym_size(x, 0) + # sym_size_1 = torch.ops.aten.sym_size(x, 1) + # sym_size_2 = torch.ops.aten.sym_size(x, 2) + # sym_size_3 = torch.ops.aten.sym_size(x, 3) + # mul = sym_size_2 * sym_size_3; sym_size_2 = sym_size_3 = None + # view: f32[3, 5, 20] = torch.ops.aten.view.default(x, [sym_size, sym_size_1, mul]) + + # Mimic `torch._dynamo.export(aten_graph=True)` behavior in invoking `make_fx`. + # TODO: May need revisit for user fake mode export + dynamic shape scenario. + fake_mode: Optional[fake_tensor.FakeTensorMode] = self.fake_mode + maybe_fake_args = self._maybe_fakefy_args(fake_mode, *args) + if fake_mode is not None: + # Using existing fake mode as context, signal `make_fx` that it does not need + # to create a new fake mode by passing tracing_mode as "real". + tracing_mode = "real" + else: + # Existing fake mode not found, signal `make_fx` to create one. + fake_mode = contextlib.nullcontext() # type: ignore[assignment] + tracing_mode = "symbolic" if self.enable_dynamic_axes else "fake" + + # Apply decomposition table to the input graph. + assert fake_mode is not None # for mypy + with proxy_tensor.maybe_disable_fake_tensor_mode(), python_dispatch.enable_python_dispatcher(), ( + fake_mode + ): + decomposed_module = proxy_tensor.make_fx( + module, + decomposition_table=self.decomposition_table, + tracing_mode=tracing_mode, + _allow_non_fake_inputs=True, + _allow_fake_constant=self.allow_fake_constant, + )(*maybe_fake_args) + + # Rename placeholder targets to match the original module's signature since + # We don't want to map forward(x, y, z) to forward(arg0, arg1, arg2). + _utils.replace_placeholder_name_and_target(decomposed_module, self.module) + + return decomposed_module diff --git a/shared/package-files/3e/3e92a6f9a5a96582183f4367c86ad071e38ef66dffec96cde2eae8d088484fdc/simd.h b/shared/package-files/3e/3e92a6f9a5a96582183f4367c86ad071e38ef66dffec96cde2eae8d088484fdc/simd.h new file mode 100644 index 0000000000000000000000000000000000000000..cc1a7d6cc807cc2139d3bb0ee706e51f4c2a0192 --- /dev/null +++ b/shared/package-files/3e/3e92a6f9a5a96582183f4367c86ad071e38ef66dffec96cde2eae8d088484fdc/simd.h @@ -0,0 +1,51 @@ +// 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 _MSC_VER +// MSVC x86_64/arm64 + +# if defined(_M_AMD64) || defined(_M_X64) +# include +# endif + +#else +// gcc/clang (possibly others) + +# if defined(ARROW_HAVE_BMI2) || defined(ARROW_HAVE_RUNTIME_BMI2) +# include +# endif + +# if defined(ARROW_HAVE_AVX2) || defined(ARROW_HAVE_AVX512) || \ + defined(ARROW_HAVE_RUNTIME_AVX2) || defined(ARROW_HAVE_RUNTIME_AVX512) +# include +# elif defined(ARROW_HAVE_SSE4_2) || defined(ARROW_HAVE_RUNTIME_SSE4_2) +# include +# endif + +# ifdef ARROW_HAVE_NEON +# include +# endif + +// GH-44098: Workaround for missing _mm256_set_m128i in older versions of GCC. +# if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8 +# define _mm256_set_m128i(hi, lo) \ + _mm256_inserti128_si256(_mm256_castsi128_si256(lo), (hi), 1) +# endif + +#endif diff --git a/shared/package-files/3e/3e932a9615b6a278da861fea2a1bf7acedf2cbc840570ef4ea2f94f2f2d2f159/trapz_native.h b/shared/package-files/3e/3e932a9615b6a278da861fea2a1bf7acedf2cbc840570ef4ea2f94f2f2d2f159/trapz_native.h new file mode 100644 index 0000000000000000000000000000000000000000..8a274341b5a1e1360cc19e16ce1a155cf6da73c8 --- /dev/null +++ b/shared/package-files/3e/3e932a9615b6a278da861fea2a1bf7acedf2cbc840570ef4ea2f94f2f2d2f159/trapz_native.h @@ -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 trapz(const at::Tensor & y, const at::Tensor & x, int64_t dim=-1); +TORCH_API at::Tensor trapz(const at::Tensor & y, double dx=1, int64_t dim=-1); +} // namespace native +} // namespace at diff --git a/shared/package-files/3e/3e95e8444061d36a85a6fc55323da957d200cd242f044ed73ef9cdf6a499f8a7/GMT-14 b/shared/package-files/3e/3e95e8444061d36a85a6fc55323da957d200cd242f044ed73ef9cdf6a499f8a7/GMT-14 new file mode 100644 index 0000000000000000000000000000000000000000..7e9f9c465ce6211c65d617f60472c9b55b5052c5 Binary files /dev/null and b/shared/package-files/3e/3e95e8444061d36a85a6fc55323da957d200cd242f044ed73ef9cdf6a499f8a7/GMT-14 differ diff --git a/shared/package-files/3e/3e98e682310a8a08435efb77f2569b284e8bedfda33fbe14126a772516ff88e6/test_interaction.py b/shared/package-files/3e/3e98e682310a8a08435efb77f2569b284e8bedfda33fbe14126a772516ff88e6/test_interaction.py new file mode 100644 index 0000000000000000000000000000000000000000..5154bd621c61d7c081630c4659f74d70059e1746 --- /dev/null +++ b/shared/package-files/3e/3e98e682310a8a08435efb77f2569b284e8bedfda33fbe14126a772516ff88e6/test_interaction.py @@ -0,0 +1,354 @@ +"""Tests of interaction of matrix with other parts of numpy. + +Note that tests with MaskedArray and linalg are done in separate files. +""" +import pytest + +import textwrap +import warnings + +import numpy as np +from numpy.testing import (assert_, assert_equal, assert_raises, + assert_raises_regex, assert_array_equal, + assert_almost_equal, assert_array_almost_equal) + + +def test_fancy_indexing(): + # The matrix class messes with the shape. While this is always + # weird (getitem is not used, it does not have setitem nor knows + # about fancy indexing), this tests gh-3110 + # 2018-04-29: moved here from core.tests.test_index. + m = np.matrix([[1, 2], [3, 4]]) + + assert_(isinstance(m[[0, 1, 0], :], np.matrix)) + + # gh-3110. Note the transpose currently because matrices do *not* + # support dimension fixing for fancy indexing correctly. + x = np.asmatrix(np.arange(50).reshape(5, 10)) + assert_equal(x[:2, np.array(-1)], x[:2, -1].T) + + +def test_polynomial_mapdomain(): + # test that polynomial preserved matrix subtype. + # 2018-04-29: moved here from polynomial.tests.polyutils. + dom1 = [0, 4] + dom2 = [1, 3] + x = np.matrix([dom1, dom1]) + res = np.polynomial.polyutils.mapdomain(x, dom1, dom2) + assert_(isinstance(res, np.matrix)) + + +def test_sort_matrix_none(): + # 2018-04-29: moved here from core.tests.test_multiarray + a = np.matrix([[2, 1, 0]]) + actual = np.sort(a, axis=None) + expected = np.matrix([[0, 1, 2]]) + assert_equal(actual, expected) + assert_(type(expected) is np.matrix) + + +def test_partition_matrix_none(): + # gh-4301 + # 2018-04-29: moved here from core.tests.test_multiarray + a = np.matrix([[2, 1, 0]]) + actual = np.partition(a, 1, axis=None) + expected = np.matrix([[0, 1, 2]]) + assert_equal(actual, expected) + assert_(type(expected) is np.matrix) + + +def test_dot_scalar_and_matrix_of_objects(): + # Ticket #2469 + # 2018-04-29: moved here from core.tests.test_multiarray + arr = np.matrix([1, 2], dtype=object) + desired = np.matrix([[3, 6]], dtype=object) + assert_equal(np.dot(arr, 3), desired) + assert_equal(np.dot(3, arr), desired) + + +def test_inner_scalar_and_matrix(): + # 2018-04-29: moved here from core.tests.test_multiarray + for dt in np.typecodes['AllInteger'] + np.typecodes['AllFloat'] + '?': + sca = np.array(3, dtype=dt)[()] + arr = np.matrix([[1, 2], [3, 4]], dtype=dt) + desired = np.matrix([[3, 6], [9, 12]], dtype=dt) + assert_equal(np.inner(arr, sca), desired) + assert_equal(np.inner(sca, arr), desired) + + +def test_inner_scalar_and_matrix_of_objects(): + # Ticket #4482 + # 2018-04-29: moved here from core.tests.test_multiarray + arr = np.matrix([1, 2], dtype=object) + desired = np.matrix([[3, 6]], dtype=object) + assert_equal(np.inner(arr, 3), desired) + assert_equal(np.inner(3, arr), desired) + + +def test_iter_allocate_output_subtype(): + # Make sure that the subtype with priority wins + # 2018-04-29: moved here from core.tests.test_nditer, given the + # matrix specific shape test. + + # matrix vs ndarray + a = np.matrix([[1, 2], [3, 4]]) + b = np.arange(4).reshape(2, 2).T + i = np.nditer([a, b, None], [], + [['readonly'], ['readonly'], ['writeonly', 'allocate']]) + assert_(type(i.operands[2]) is np.matrix) + assert_(type(i.operands[2]) is not np.ndarray) + assert_equal(i.operands[2].shape, (2, 2)) + + # matrix always wants things to be 2D + b = np.arange(4).reshape(1, 2, 2) + assert_raises(RuntimeError, np.nditer, [a, b, None], [], + [['readonly'], ['readonly'], ['writeonly', 'allocate']]) + # but if subtypes are disabled, the result can still work + i = np.nditer([a, b, None], [], + [['readonly'], ['readonly'], + ['writeonly', 'allocate', 'no_subtype']]) + assert_(type(i.operands[2]) is np.ndarray) + assert_(type(i.operands[2]) is not np.matrix) + assert_equal(i.operands[2].shape, (1, 2, 2)) + + +def like_function(): + # 2018-04-29: moved here from core.tests.test_numeric + a = np.matrix([[1, 2], [3, 4]]) + for like_function in np.zeros_like, np.ones_like, np.empty_like: + b = like_function(a) + assert_(type(b) is np.matrix) + + c = like_function(a, subok=False) + assert_(type(c) is not np.matrix) + + +def test_array_astype(): + # 2018-04-29: copied here from core.tests.test_api + # subok=True passes through a matrix + a = np.matrix([[0, 1, 2], [3, 4, 5]], dtype='f4') + b = a.astype('f4', subok=True, copy=False) + assert_(a is b) + + # subok=True is default, and creates a subtype on a cast + b = a.astype('i4', copy=False) + assert_equal(a, b) + assert_equal(type(b), np.matrix) + + # subok=False never returns a matrix + b = a.astype('f4', subok=False, copy=False) + assert_equal(a, b) + assert_(not (a is b)) + assert_(type(b) is not np.matrix) + + +def test_stack(): + # 2018-04-29: copied here from core.tests.test_shape_base + # check np.matrix cannot be stacked + m = np.matrix([[1, 2], [3, 4]]) + assert_raises_regex(ValueError, 'shape too large to be a matrix', + np.stack, [m, m]) + + +def test_object_scalar_multiply(): + # Tickets #2469 and #4482 + # 2018-04-29: moved here from core.tests.test_ufunc + arr = np.matrix([1, 2], dtype=object) + desired = np.matrix([[3, 6]], dtype=object) + assert_equal(np.multiply(arr, 3), desired) + assert_equal(np.multiply(3, arr), desired) + + +def test_nanfunctions_matrices(): + # Check that it works and that type and + # shape are preserved + # 2018-04-29: moved here from core.tests.test_nanfunctions + mat = np.matrix(np.eye(3)) + for f in [np.nanmin, np.nanmax]: + res = f(mat, axis=0) + assert_(isinstance(res, np.matrix)) + assert_(res.shape == (1, 3)) + res = f(mat, axis=1) + assert_(isinstance(res, np.matrix)) + assert_(res.shape == (3, 1)) + res = f(mat) + assert_(np.isscalar(res)) + # check that rows of nan are dealt with for subclasses (#4628) + mat[1] = np.nan + for f in [np.nanmin, np.nanmax]: + with warnings.catch_warnings(record=True) as w: + warnings.simplefilter('always') + res = f(mat, axis=0) + assert_(isinstance(res, np.matrix)) + assert_(not np.any(np.isnan(res))) + assert_(len(w) == 0) + + with warnings.catch_warnings(record=True) as w: + warnings.simplefilter('always') + res = f(mat, axis=1) + assert_(isinstance(res, np.matrix)) + assert_(np.isnan(res[1, 0]) and not np.isnan(res[0, 0]) + and not np.isnan(res[2, 0])) + assert_(len(w) == 1, 'no warning raised') + assert_(issubclass(w[0].category, RuntimeWarning)) + + with warnings.catch_warnings(record=True) as w: + warnings.simplefilter('always') + res = f(mat) + assert_(np.isscalar(res)) + assert_(res != np.nan) + assert_(len(w) == 0) + + +def test_nanfunctions_matrices_general(): + # Check that it works and that type and + # shape are preserved + # 2018-04-29: moved here from core.tests.test_nanfunctions + mat = np.matrix(np.eye(3)) + for f in (np.nanargmin, np.nanargmax, np.nansum, np.nanprod, + np.nanmean, np.nanvar, np.nanstd): + res = f(mat, axis=0) + assert_(isinstance(res, np.matrix)) + assert_(res.shape == (1, 3)) + res = f(mat, axis=1) + assert_(isinstance(res, np.matrix)) + assert_(res.shape == (3, 1)) + res = f(mat) + assert_(np.isscalar(res)) + + for f in np.nancumsum, np.nancumprod: + res = f(mat, axis=0) + assert_(isinstance(res, np.matrix)) + assert_(res.shape == (3, 3)) + res = f(mat, axis=1) + assert_(isinstance(res, np.matrix)) + assert_(res.shape == (3, 3)) + res = f(mat) + assert_(isinstance(res, np.matrix)) + assert_(res.shape == (1, 3*3)) + + +def test_average_matrix(): + # 2018-04-29: moved here from core.tests.test_function_base. + y = np.matrix(np.random.rand(5, 5)) + assert_array_equal(y.mean(0), np.average(y, 0)) + + a = np.matrix([[1, 2], [3, 4]]) + w = np.matrix([[1, 2], [3, 4]]) + + r = np.average(a, axis=0, weights=w) + assert_equal(type(r), np.matrix) + assert_equal(r, [[2.5, 10.0/3]]) + + +def test_trapz_matrix(): + # Test to make sure matrices give the same answer as ndarrays + # 2018-04-29: moved here from core.tests.test_function_base. + x = np.linspace(0, 5) + y = x * x + r = np.trapz(y, x) + mx = np.matrix(x) + my = np.matrix(y) + mr = np.trapz(my, mx) + assert_almost_equal(mr, r) + + +def test_ediff1d_matrix(): + # 2018-04-29: moved here from core.tests.test_arraysetops. + assert(isinstance(np.ediff1d(np.matrix(1)), np.matrix)) + assert(isinstance(np.ediff1d(np.matrix(1), to_begin=1), np.matrix)) + + +def test_apply_along_axis_matrix(): + # this test is particularly malicious because matrix + # refuses to become 1d + # 2018-04-29: moved here from core.tests.test_shape_base. + def double(row): + return row * 2 + + m = np.matrix([[0, 1], [2, 3]]) + expected = np.matrix([[0, 2], [4, 6]]) + + result = np.apply_along_axis(double, 0, m) + assert_(isinstance(result, np.matrix)) + assert_array_equal(result, expected) + + result = np.apply_along_axis(double, 1, m) + assert_(isinstance(result, np.matrix)) + assert_array_equal(result, expected) + + +def test_kron_matrix(): + # 2018-04-29: moved here from core.tests.test_shape_base. + a = np.ones([2, 2]) + m = np.asmatrix(a) + assert_equal(type(np.kron(a, a)), np.ndarray) + assert_equal(type(np.kron(m, m)), np.matrix) + assert_equal(type(np.kron(a, m)), np.matrix) + assert_equal(type(np.kron(m, a)), np.matrix) + + +class TestConcatenatorMatrix: + # 2018-04-29: moved here from core.tests.test_index_tricks. + def test_matrix(self): + a = [1, 2] + b = [3, 4] + + ab_r = np.r_['r', a, b] + ab_c = np.r_['c', a, b] + + assert_equal(type(ab_r), np.matrix) + assert_equal(type(ab_c), np.matrix) + + assert_equal(np.array(ab_r), [[1, 2, 3, 4]]) + assert_equal(np.array(ab_c), [[1], [2], [3], [4]]) + + assert_raises(ValueError, lambda: np.r_['rc', a, b]) + + def test_matrix_scalar(self): + r = np.r_['r', [1, 2], 3] + assert_equal(type(r), np.matrix) + assert_equal(np.array(r), [[1, 2, 3]]) + + def test_matrix_builder(self): + a = np.array([1]) + b = np.array([2]) + c = np.array([3]) + d = np.array([4]) + actual = np.r_['a, b; c, d'] + expected = np.bmat([[a, b], [c, d]]) + + assert_equal(actual, expected) + assert_equal(type(actual), type(expected)) + + +def test_array_equal_error_message_matrix(): + # 2018-04-29: moved here from testing.tests.test_utils. + with pytest.raises(AssertionError) as exc_info: + assert_equal(np.array([1, 2]), np.matrix([1, 2])) + msg = str(exc_info.value) + msg_reference = textwrap.dedent("""\ + + Arrays are not equal + + (shapes (2,), (1, 2) mismatch) + x: array([1, 2]) + y: matrix([[1, 2]])""") + assert_equal(msg, msg_reference) + + +def test_array_almost_equal_matrix(): + # Matrix slicing keeps things 2-D, while array does not necessarily. + # See gh-8452. + # 2018-04-29: moved here from testing.tests.test_utils. + m1 = np.matrix([[1., 2.]]) + m2 = np.matrix([[1., np.nan]]) + m3 = np.matrix([[1., -np.inf]]) + m4 = np.matrix([[np.nan, np.inf]]) + m5 = np.matrix([[1., 2.], [np.nan, np.inf]]) + for assert_func in assert_array_almost_equal, assert_almost_equal: + for m in m1, m2, m3, m4, m5: + assert_func(m, m) + a = np.array(m) + assert_func(a, m) + assert_func(m, a) diff --git a/shared/package-files/3e/3e98f7db9c81a015131d68217b29e9a6374de61035ee4729aa659ffd78c7550c/direct_url.json b/shared/package-files/3e/3e98f7db9c81a015131d68217b29e9a6374de61035ee4729aa659ffd78c7550c/direct_url.json new file mode 100644 index 0000000000000000000000000000000000000000..46662be7e7f7884edc2c24bdaacc27275d21ffd3 --- /dev/null +++ b/shared/package-files/3e/3e98f7db9c81a015131d68217b29e9a6374de61035ee4729aa659ffd78c7550c/direct_url.json @@ -0,0 +1 @@ +{"dir_info": {}, "url": "file:///croot/mpmath_1690848262763/work"} \ No newline at end of file diff --git a/shared/package-files/3e/3ea4310a3f8ab2ee731c29d8000f0e3f1e521344cdb750912175aa10f66ddd74/slow_conv_dilated3d_compositeexplicitautograd_dispatch.h b/shared/package-files/3e/3ea4310a3f8ab2ee731c29d8000f0e3f1e521344cdb750912175aa10f66ddd74/slow_conv_dilated3d_compositeexplicitautograd_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..a09090c1ef08593fd90507f8cace3a9909b2ed57 --- /dev/null +++ b/shared/package-files/3e/3ea4310a3f8ab2ee731c29d8000f0e3f1e521344cdb750912175aa10f66ddd74/slow_conv_dilated3d_compositeexplicitautograd_dispatch.h @@ -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 & slow_conv_dilated3d_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 dilation=1); +TORCH_API at::Tensor & slow_conv_dilated3d_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 dilation, at::Tensor & out); +TORCH_API at::Tensor & slow_conv_dilated3d_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 dilation=c10::SymInt(1)); +TORCH_API at::Tensor & slow_conv_dilated3d_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 dilation, at::Tensor & out); + +} // namespace compositeexplicitautograd +} // namespace at diff --git a/shared/package-files/3e/3ea61faf76a486105c9acc14dd02d214dcab98d4dcf768ab4e7d167ffda376fe/test_rcode.py b/shared/package-files/3e/3ea61faf76a486105c9acc14dd02d214dcab98d4dcf768ab4e7d167ffda376fe/test_rcode.py new file mode 100644 index 0000000000000000000000000000000000000000..55ce092deb270d2edbd7d509dfebf258f7473556 --- /dev/null +++ b/shared/package-files/3e/3ea61faf76a486105c9acc14dd02d214dcab98d4dcf768ab4e7d167ffda376fe/test_rcode.py @@ -0,0 +1,476 @@ +from sympy.core import (S, pi, oo, Symbol, symbols, Rational, Integer, + GoldenRatio, EulerGamma, Catalan, Lambda, Dummy) +from sympy.functions import (Piecewise, sin, cos, Abs, exp, ceiling, sqrt, + gamma, sign, Max, Min, factorial, beta) +from sympy.core.relational import (Eq, Ge, Gt, Le, Lt, Ne) +from sympy.sets import Range +from sympy.logic import ITE +from sympy.codegen import For, aug_assign, Assignment +from sympy.testing.pytest import raises +from sympy.printing.rcode import RCodePrinter +from sympy.utilities.lambdify import implemented_function +from sympy.tensor import IndexedBase, Idx +from sympy.matrices import Matrix, MatrixSymbol + +from sympy.printing.rcode import rcode + +x, y, z = symbols('x,y,z') + + +def test_printmethod(): + class fabs(Abs): + def _rcode(self, printer): + return "abs(%s)" % printer._print(self.args[0]) + + assert rcode(fabs(x)) == "abs(x)" + + +def test_rcode_sqrt(): + assert rcode(sqrt(x)) == "sqrt(x)" + assert rcode(x**0.5) == "sqrt(x)" + assert rcode(sqrt(x)) == "sqrt(x)" + + +def test_rcode_Pow(): + assert rcode(x**3) == "x^3" + assert rcode(x**(y**3)) == "x^(y^3)" + g = implemented_function('g', Lambda(x, 2*x)) + assert rcode(1/(g(x)*3.5)**(x - y**x)/(x**2 + y)) == \ + "(3.5*2*x)^(-x + y^x)/(x^2 + y)" + assert rcode(x**-1.0) == '1.0/x' + assert rcode(x**Rational(2, 3)) == 'x^(2.0/3.0)' + _cond_cfunc = [(lambda base, exp: exp.is_integer, "dpowi"), + (lambda base, exp: not exp.is_integer, "pow")] + assert rcode(x**3, user_functions={'Pow': _cond_cfunc}) == 'dpowi(x, 3)' + assert rcode(x**3.2, user_functions={'Pow': _cond_cfunc}) == 'pow(x, 3.2)' + + +def test_rcode_Max(): + # Test for gh-11926 + assert rcode(Max(x,x*x),user_functions={"Max":"my_max", "Pow":"my_pow"}) == 'my_max(x, my_pow(x, 2))' + + +def test_rcode_constants_mathh(): + assert rcode(exp(1)) == "exp(1)" + assert rcode(pi) == "pi" + assert rcode(oo) == "Inf" + assert rcode(-oo) == "-Inf" + + +def test_rcode_constants_other(): + assert rcode(2*GoldenRatio) == "GoldenRatio = 1.61803398874989;\n2*GoldenRatio" + assert rcode( + 2*Catalan) == "Catalan = 0.915965594177219;\n2*Catalan" + assert rcode(2*EulerGamma) == "EulerGamma = 0.577215664901533;\n2*EulerGamma" + + +def test_rcode_Rational(): + assert rcode(Rational(3, 7)) == "3.0/7.0" + assert rcode(Rational(18, 9)) == "2" + assert rcode(Rational(3, -7)) == "-3.0/7.0" + assert rcode(Rational(-3, -7)) == "3.0/7.0" + assert rcode(x + Rational(3, 7)) == "x + 3.0/7.0" + assert rcode(Rational(3, 7)*x) == "(3.0/7.0)*x" + + +def test_rcode_Integer(): + assert rcode(Integer(67)) == "67" + assert rcode(Integer(-1)) == "-1" + + +def test_rcode_functions(): + assert rcode(sin(x) ** cos(x)) == "sin(x)^cos(x)" + assert rcode(factorial(x) + gamma(y)) == "factorial(x) + gamma(y)" + assert rcode(beta(Min(x, y), Max(x, y))) == "beta(min(x, y), max(x, y))" + + +def test_rcode_inline_function(): + x = symbols('x') + g = implemented_function('g', Lambda(x, 2*x)) + assert rcode(g(x)) == "2*x" + g = implemented_function('g', Lambda(x, 2*x/Catalan)) + assert rcode( + g(x)) == "Catalan = %s;\n2*x/Catalan" % Catalan.n() + A = IndexedBase('A') + i = Idx('i', symbols('n', integer=True)) + g = implemented_function('g', Lambda(x, x*(1 + x)*(2 + x))) + res=rcode(g(A[i]), assign_to=A[i]) + ref=( + "for (i in 1:n){\n" + " A[i] = (A[i] + 1)*(A[i] + 2)*A[i];\n" + "}" + ) + assert res == ref + + +def test_rcode_exceptions(): + assert rcode(ceiling(x)) == "ceiling(x)" + assert rcode(Abs(x)) == "abs(x)" + assert rcode(gamma(x)) == "gamma(x)" + + +def test_rcode_user_functions(): + x = symbols('x', integer=False) + n = symbols('n', integer=True) + custom_functions = { + "ceiling": "myceil", + "Abs": [(lambda x: not x.is_integer, "fabs"), (lambda x: x.is_integer, "abs")], + } + assert rcode(ceiling(x), user_functions=custom_functions) == "myceil(x)" + assert rcode(Abs(x), user_functions=custom_functions) == "fabs(x)" + assert rcode(Abs(n), user_functions=custom_functions) == "abs(n)" + + +def test_rcode_boolean(): + assert rcode(True) == "True" + assert rcode(S.true) == "True" + assert rcode(False) == "False" + assert rcode(S.false) == "False" + assert rcode(x & y) == "x & y" + assert rcode(x | y) == "x | y" + assert rcode(~x) == "!x" + assert rcode(x & y & z) == "x & y & z" + assert rcode(x | y | z) == "x | y | z" + assert rcode((x & y) | z) == "z | x & y" + assert rcode((x | y) & z) == "z & (x | y)" + +def test_rcode_Relational(): + assert rcode(Eq(x, y)) == "x == y" + assert rcode(Ne(x, y)) == "x != y" + assert rcode(Le(x, y)) == "x <= y" + assert rcode(Lt(x, y)) == "x < y" + assert rcode(Gt(x, y)) == "x > y" + assert rcode(Ge(x, y)) == "x >= y" + + +def test_rcode_Piecewise(): + expr = Piecewise((x, x < 1), (x**2, True)) + res=rcode(expr) + ref="ifelse(x < 1,x,x^2)" + assert res == ref + tau=Symbol("tau") + res=rcode(expr,tau) + ref="tau = ifelse(x < 1,x,x^2);" + assert res == ref + + expr = 2*Piecewise((x, x < 1), (x**2, x<2), (x**3,True)) + assert rcode(expr) == "2*ifelse(x < 1,x,ifelse(x < 2,x^2,x^3))" + res = rcode(expr, assign_to='c') + assert res == "c = 2*ifelse(x < 1,x,ifelse(x < 2,x^2,x^3));" + + # Check that Piecewise without a True (default) condition error + #expr = Piecewise((x, x < 1), (x**2, x > 1), (sin(x), x > 0)) + #raises(ValueError, lambda: rcode(expr)) + expr = 2*Piecewise((x, x < 1), (x**2, x<2)) + assert(rcode(expr))== "2*ifelse(x < 1,x,ifelse(x < 2,x^2,NA))" + + +def test_rcode_sinc(): + from sympy.functions.elementary.trigonometric import sinc + expr = sinc(x) + res = rcode(expr) + ref = "ifelse(x != 0,sin(x)/x,1)" + assert res == ref + + +def test_rcode_Piecewise_deep(): + p = rcode(2*Piecewise((x, x < 1), (x + 1, x < 2), (x**2, True))) + assert p == "2*ifelse(x < 1,x,ifelse(x < 2,x + 1,x^2))" + expr = x*y*z + x**2 + y**2 + Piecewise((0, x < 0.5), (1, True)) + cos(z) - 1 + p = rcode(expr) + ref="x^2 + x*y*z + y^2 + ifelse(x < 0.5,0,1) + cos(z) - 1" + assert p == ref + + ref="c = x^2 + x*y*z + y^2 + ifelse(x < 0.5,0,1) + cos(z) - 1;" + p = rcode(expr, assign_to='c') + assert p == ref + + +def test_rcode_ITE(): + expr = ITE(x < 1, y, z) + p = rcode(expr) + ref="ifelse(x < 1,y,z)" + assert p == ref + + +def test_rcode_settings(): + raises(TypeError, lambda: rcode(sin(x), method="garbage")) + + +def test_rcode_Indexed(): + n, m, o = symbols('n m o', integer=True) + i, j, k = Idx('i', n), Idx('j', m), Idx('k', o) + p = RCodePrinter() + p._not_r = set() + + x = IndexedBase('x')[j] + assert p._print_Indexed(x) == 'x[j]' + A = IndexedBase('A')[i, j] + assert p._print_Indexed(A) == 'A[i, j]' + B = IndexedBase('B')[i, j, k] + assert p._print_Indexed(B) == 'B[i, j, k]' + + assert p._not_r == set() + +def test_rcode_Indexed_without_looking_for_contraction(): + len_y = 5 + y = IndexedBase('y', shape=(len_y,)) + x = IndexedBase('x', shape=(len_y,)) + Dy = IndexedBase('Dy', shape=(len_y-1,)) + i = Idx('i', len_y-1) + e=Eq(Dy[i], (y[i+1]-y[i])/(x[i+1]-x[i])) + code0 = rcode(e.rhs, assign_to=e.lhs, contract=False) + assert code0 == 'Dy[i] = (y[%s] - y[i])/(x[%s] - x[i]);' % (i + 1, i + 1) + + +def test_rcode_loops_matrix_vector(): + n, m = symbols('n m', integer=True) + A = IndexedBase('A') + x = IndexedBase('x') + y = IndexedBase('y') + i = Idx('i', m) + j = Idx('j', n) + + s = ( + 'for (i in 1:m){\n' + ' y[i] = 0;\n' + '}\n' + 'for (i in 1:m){\n' + ' for (j in 1:n){\n' + ' y[i] = A[i, j]*x[j] + y[i];\n' + ' }\n' + '}' + ) + c = rcode(A[i, j]*x[j], assign_to=y[i]) + assert c == s + + +def test_dummy_loops(): + # the following line could also be + # [Dummy(s, integer=True) for s in 'im'] + # or [Dummy(integer=True) for s in 'im'] + i, m = symbols('i m', integer=True, cls=Dummy) + x = IndexedBase('x') + y = IndexedBase('y') + i = Idx(i, m) + + expected = ( + 'for (i_%(icount)i in 1:m_%(mcount)i){\n' + ' y[i_%(icount)i] = x[i_%(icount)i];\n' + '}' + ) % {'icount': i.label.dummy_index, 'mcount': m.dummy_index} + code = rcode(x[i], assign_to=y[i]) + assert code == expected + + +def test_rcode_loops_add(): + n, m = symbols('n m', integer=True) + A = IndexedBase('A') + x = IndexedBase('x') + y = IndexedBase('y') + z = IndexedBase('z') + i = Idx('i', m) + j = Idx('j', n) + + s = ( + 'for (i in 1:m){\n' + ' y[i] = x[i] + z[i];\n' + '}\n' + 'for (i in 1:m){\n' + ' for (j in 1:n){\n' + ' y[i] = A[i, j]*x[j] + y[i];\n' + ' }\n' + '}' + ) + c = rcode(A[i, j]*x[j] + x[i] + z[i], assign_to=y[i]) + assert c == s + + +def test_rcode_loops_multiple_contractions(): + n, m, o, p = symbols('n m o p', integer=True) + a = IndexedBase('a') + b = IndexedBase('b') + y = IndexedBase('y') + i = Idx('i', m) + j = Idx('j', n) + k = Idx('k', o) + l = Idx('l', p) + + s = ( + 'for (i in 1:m){\n' + ' y[i] = 0;\n' + '}\n' + 'for (i in 1:m){\n' + ' for (j in 1:n){\n' + ' for (k in 1:o){\n' + ' for (l in 1:p){\n' + ' y[i] = a[i, j, k, l]*b[j, k, l] + y[i];\n' + ' }\n' + ' }\n' + ' }\n' + '}' + ) + c = rcode(b[j, k, l]*a[i, j, k, l], assign_to=y[i]) + assert c == s + + +def test_rcode_loops_addfactor(): + n, m, o, p = symbols('n m o p', integer=True) + a = IndexedBase('a') + b = IndexedBase('b') + c = IndexedBase('c') + y = IndexedBase('y') + i = Idx('i', m) + j = Idx('j', n) + k = Idx('k', o) + l = Idx('l', p) + + s = ( + 'for (i in 1:m){\n' + ' y[i] = 0;\n' + '}\n' + 'for (i in 1:m){\n' + ' for (j in 1:n){\n' + ' for (k in 1:o){\n' + ' for (l in 1:p){\n' + ' y[i] = (a[i, j, k, l] + b[i, j, k, l])*c[j, k, l] + y[i];\n' + ' }\n' + ' }\n' + ' }\n' + '}' + ) + c = rcode((a[i, j, k, l] + b[i, j, k, l])*c[j, k, l], assign_to=y[i]) + assert c == s + + +def test_rcode_loops_multiple_terms(): + n, m, o, p = symbols('n m o p', integer=True) + a = IndexedBase('a') + b = IndexedBase('b') + c = IndexedBase('c') + y = IndexedBase('y') + i = Idx('i', m) + j = Idx('j', n) + k = Idx('k', o) + + s0 = ( + 'for (i in 1:m){\n' + ' y[i] = 0;\n' + '}\n' + ) + s1 = ( + 'for (i in 1:m){\n' + ' for (j in 1:n){\n' + ' for (k in 1:o){\n' + ' y[i] = b[j]*b[k]*c[i, j, k] + y[i];\n' + ' }\n' + ' }\n' + '}\n' + ) + s2 = ( + 'for (i in 1:m){\n' + ' for (k in 1:o){\n' + ' y[i] = a[i, k]*b[k] + y[i];\n' + ' }\n' + '}\n' + ) + s3 = ( + 'for (i in 1:m){\n' + ' for (j in 1:n){\n' + ' y[i] = a[i, j]*b[j] + y[i];\n' + ' }\n' + '}\n' + ) + c = rcode( + b[j]*a[i, j] + b[k]*a[i, k] + b[j]*b[k]*c[i, j, k], assign_to=y[i]) + + ref={} + ref[0] = s0 + s1 + s2 + s3[:-1] + ref[1] = s0 + s1 + s3 + s2[:-1] + ref[2] = s0 + s2 + s1 + s3[:-1] + ref[3] = s0 + s2 + s3 + s1[:-1] + ref[4] = s0 + s3 + s1 + s2[:-1] + ref[5] = s0 + s3 + s2 + s1[:-1] + + assert (c == ref[0] or + c == ref[1] or + c == ref[2] or + c == ref[3] or + c == ref[4] or + c == ref[5]) + + +def test_dereference_printing(): + expr = x + y + sin(z) + z + assert rcode(expr, dereference=[z]) == "x + y + (*z) + sin((*z))" + + +def test_Matrix_printing(): + # Test returning a Matrix + mat = Matrix([x*y, Piecewise((2 + x, y>0), (y, True)), sin(z)]) + A = MatrixSymbol('A', 3, 1) + p = rcode(mat, A) + assert p == ( + "A[0] = x*y;\n" + "A[1] = ifelse(y > 0,x + 2,y);\n" + "A[2] = sin(z);") + # Test using MatrixElements in expressions + expr = Piecewise((2*A[2, 0], x > 0), (A[2, 0], True)) + sin(A[1, 0]) + A[0, 0] + p = rcode(expr) + assert p == ("ifelse(x > 0,2*A[2],A[2]) + sin(A[1]) + A[0]") + # Test using MatrixElements in a Matrix + q = MatrixSymbol('q', 5, 1) + M = MatrixSymbol('M', 3, 3) + m = Matrix([[sin(q[1,0]), 0, cos(q[2,0])], + [q[1,0] + q[2,0], q[3, 0], 5], + [2*q[4, 0]/q[1,0], sqrt(q[0,0]) + 4, 0]]) + assert rcode(m, M) == ( + "M[0] = sin(q[1]);\n" + "M[1] = 0;\n" + "M[2] = cos(q[2]);\n" + "M[3] = q[1] + q[2];\n" + "M[4] = q[3];\n" + "M[5] = 5;\n" + "M[6] = 2*q[4]/q[1];\n" + "M[7] = sqrt(q[0]) + 4;\n" + "M[8] = 0;") + + +def test_rcode_sgn(): + + expr = sign(x) * y + assert rcode(expr) == 'y*sign(x)' + p = rcode(expr, 'z') + assert p == 'z = y*sign(x);' + + p = rcode(sign(2 * x + x**2) * x + x**2) + assert p == "x^2 + x*sign(x^2 + 2*x)" + + expr = sign(cos(x)) + p = rcode(expr) + assert p == 'sign(cos(x))' + +def test_rcode_Assignment(): + assert rcode(Assignment(x, y + z)) == 'x = y + z;' + assert rcode(aug_assign(x, '+', y + z)) == 'x += y + z;' + + +def test_rcode_For(): + f = For(x, Range(0, 10, 2), [aug_assign(y, '*', x)]) + sol = rcode(f) + assert sol == ("for(x in seq(from=0, to=9, by=2){\n" + " y *= x;\n" + "}") + + +def test_MatrixElement_printing(): + # test cases for issue #11821 + A = MatrixSymbol("A", 1, 3) + B = MatrixSymbol("B", 1, 3) + C = MatrixSymbol("C", 1, 3) + + assert(rcode(A[0, 0]) == "A[0]") + assert(rcode(3 * A[0, 0]) == "3*A[0]") + + F = C[0, 0].subs(C, A - B) + assert(rcode(F) == "(A - B)[0]") diff --git a/shared/package-files/3e/3eaa299f2d38f3873c8659841272d3136fd478d341727ffdae54321b8465dcad/_importlib.py b/shared/package-files/3e/3eaa299f2d38f3873c8659841272d3136fd478d341727ffdae54321b8465dcad/_importlib.py new file mode 100644 index 0000000000000000000000000000000000000000..fd303b6141e7eeeeb891927c063ed5588927388a --- /dev/null +++ b/shared/package-files/3e/3eaa299f2d38f3873c8659841272d3136fd478d341727ffdae54321b8465dcad/_importlib.py @@ -0,0 +1,93 @@ +import _warnings +import os.path + +# note: implementations +# copied from cpython's import code + + +# _zip_searchorder defines how we search for a module in the Zip +# archive: we first search for a package __init__, then for +# non-package .pyc, and .py entries. The .pyc entries +# are swapped by initzipimport() if we run in optimized mode. Also, +# '/' is replaced by path_sep there. + +_zip_searchorder = ( + ("/__init__.py", True), + (".py", False), +) + + +# Replace any occurrences of '\r\n?' in the input string with '\n'. +# This converts DOS and Mac line endings to Unix line endings. +def _normalize_line_endings(source): + source = source.replace(b"\r\n", b"\n") + source = source.replace(b"\r", b"\n") + return source + + +def _resolve_name(name, package, level): + """Resolve a relative module name to an absolute one.""" + bits = package.rsplit(".", level - 1) + if len(bits) < level: + raise ValueError("attempted relative import beyond top-level package") + base = bits[0] + return f"{base}.{name}" if name else base + + +def _sanity_check(name, package, level): + """Verify arguments are "sane".""" + if not isinstance(name, str): + raise TypeError(f"module name must be str, not {type(name)}") + if level < 0: + raise ValueError("level must be >= 0") + if level > 0: + if not isinstance(package, str): + raise TypeError("__package__ not set to a string") + elif not package: + raise ImportError("attempted relative import with no known parent package") + if not name and level == 0: + raise ValueError("Empty module name") + + +def _calc___package__(globals): + """Calculate what __package__ should be. + + __package__ is not guaranteed to be defined or could be set to None + to represent that its proper value is unknown. + + """ + package = globals.get("__package__") + spec = globals.get("__spec__") + if package is not None: + if spec is not None and package != spec.parent: + _warnings.warn( # noqa: G010 + f"__package__ != __spec__.parent ({package!r} != {spec.parent!r})", # noqa: G004 + ImportWarning, + stacklevel=3, + ) + return package + elif spec is not None: + return spec.parent + else: + _warnings.warn( # noqa: G010 + "can't resolve package from __spec__ or __package__, " + "falling back on __name__ and __path__", + ImportWarning, + stacklevel=3, + ) + package = globals["__name__"] + if "__path__" not in globals: + package = package.rpartition(".")[0] + return package + + +def _normalize_path(path): + """Normalize a path by ensuring it is a string. + + If the resulting string contains path separators, an exception is raised. + """ + parent, file_name = os.path.split(path) + if parent: + raise ValueError(f"{path!r} must be only a file name") + else: + return file_name diff --git a/shared/package-files/3e/3eab00abd13b25fe88522df16299bd2cc0a5e7647a5cc7cc422790c5ef9de3dc/statistics.pyi b/shared/package-files/3e/3eab00abd13b25fe88522df16299bd2cc0a5e7647a5cc7cc422790c5ef9de3dc/statistics.pyi new file mode 100644 index 0000000000000000000000000000000000000000..9e7d1380ce1f90a8ef5deb542d4ee3c6bd1a82ca --- /dev/null +++ b/shared/package-files/3e/3eab00abd13b25fe88522df16299bd2cc0a5e7647a5cc7cc422790c5ef9de3dc/statistics.pyi @@ -0,0 +1,14 @@ +from django.db.models.aggregates import Aggregate + +class StatAggregate(Aggregate): ... +class Corr(StatAggregate): ... +class CovarPop(StatAggregate): ... +class RegrAvgX(StatAggregate): ... +class RegrAvgY(StatAggregate): ... +class RegrCount(StatAggregate): ... +class RegrIntercept(StatAggregate): ... +class RegrR2(StatAggregate): ... +class RegrSlope(StatAggregate): ... +class RegrSXX(StatAggregate): ... +class RegrSXY(StatAggregate): ... +class RegrSYY(StatAggregate): ... diff --git a/shared/package-files/3e/3eabd6182525355286d714822fd97b6699bd41ce8a4a5c541e133e9dcda3ef80/_dim_arange_native.h b/shared/package-files/3e/3eabd6182525355286d714822fd97b6699bd41ce8a4a5c541e133e9dcda3ef80/_dim_arange_native.h new file mode 100644 index 0000000000000000000000000000000000000000..961b3141da93af8af7c68e831f111b373d26910a --- /dev/null +++ b/shared/package-files/3e/3eabd6182525355286d714822fd97b6699bd41ce8a4a5c541e133e9dcda3ef80/_dim_arange_native.h @@ -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 _dim_arange(const at::Tensor & like, int64_t dim); +} // namespace native +} // namespace at diff --git a/shared/package-files/3e/3eac52282c1c7205d90edfa1ff5afbec355cb8d47f42eafbee1e8e3eb010496b/miopen_convolution_ops.h b/shared/package-files/3e/3eac52282c1c7205d90edfa1ff5afbec355cb8d47f42eafbee1e8e3eb010496b/miopen_convolution_ops.h new file mode 100644 index 0000000000000000000000000000000000000000..8dfa1c422428f6152f34a2210a5be4716d0f8154 --- /dev/null +++ b/shared/package-files/3e/3eac52282c1c7205d90edfa1ff5afbec355cb8d47f42eafbee1e8e3eb010496b/miopen_convolution_ops.h @@ -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 miopen_convolution { + using schema = at::Tensor (const at::Tensor &, const at::Tensor &, const c10::optional &, c10::SymIntArrayRef, c10::SymIntArrayRef, c10::SymIntArrayRef, c10::SymInt, bool, bool); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::miopen_convolution") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "miopen_convolution(Tensor self, Tensor weight, Tensor? bias, SymInt[] padding, SymInt[] stride, SymInt[] dilation, SymInt groups, bool benchmark, bool deterministic) -> Tensor") + static at::Tensor call(const at::Tensor & self, const at::Tensor & weight, const c10::optional & bias, c10::SymIntArrayRef padding, c10::SymIntArrayRef stride, c10::SymIntArrayRef dilation, c10::SymInt groups, bool benchmark, bool deterministic); + static at::Tensor redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, const c10::optional & bias, c10::SymIntArrayRef padding, c10::SymIntArrayRef stride, c10::SymIntArrayRef dilation, c10::SymInt groups, bool benchmark, bool deterministic); +}; + +struct TORCH_API miopen_convolution_out { + using schema = at::Tensor & (const at::Tensor &, const at::Tensor &, const c10::optional &, c10::SymIntArrayRef, c10::SymIntArrayRef, c10::SymIntArrayRef, c10::SymInt, bool, 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::miopen_convolution") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "out") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "miopen_convolution.out(Tensor self, Tensor weight, Tensor? bias, SymInt[] padding, SymInt[] stride, SymInt[] dilation, SymInt groups, bool benchmark, bool deterministic, *, Tensor(a!) out) -> Tensor(a!)") + static at::Tensor & call(const at::Tensor & self, const at::Tensor & weight, const c10::optional & bias, c10::SymIntArrayRef padding, c10::SymIntArrayRef stride, c10::SymIntArrayRef dilation, c10::SymInt groups, bool benchmark, bool deterministic, at::Tensor & out); + static at::Tensor & redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & weight, const c10::optional & bias, c10::SymIntArrayRef padding, c10::SymIntArrayRef stride, c10::SymIntArrayRef dilation, c10::SymInt groups, bool benchmark, bool deterministic, at::Tensor & out); +}; + +}} // namespace at::_ops diff --git a/shared/package-files/3e/3eb387a1c9279fb5a68766aaf77fd656ae74771f523a27c82011ef37c17a1951/aggregates.pyi b/shared/package-files/3e/3eb387a1c9279fb5a68766aaf77fd656ae74771f523a27c82011ef37c17a1951/aggregates.pyi new file mode 100644 index 0000000000000000000000000000000000000000..1522d34b7b33e7eb7ff2fdc5d259d4db4f55befa --- /dev/null +++ b/shared/package-files/3e/3eb387a1c9279fb5a68766aaf77fd656ae74771f523a27c82011ef37c17a1951/aggregates.pyi @@ -0,0 +1,17 @@ +from typing import Any, Optional + +from django.db.models.expressions import Func + +class Aggregate(Func): + filter_template: str = ... + filter: Any = ... + allow_distinct: bool = ... + def __init__(self, *expressions: Any, distinct: bool = ..., filter: Optional[Any] = ..., **extra: Any) -> None: ... + +class Avg(Aggregate): ... +class Count(Aggregate): ... +class Max(Aggregate): ... +class Min(Aggregate): ... +class StdDev(Aggregate): ... +class Sum(Aggregate): ... +class Variance(Aggregate): ... diff --git a/shared/package-files/3e/3eb3a10619a69c78f9ecbdc324af1a5cc7fa8f0ac3498a77f55b401df046ced4/tril_meta_dispatch.h b/shared/package-files/3e/3eb3a10619a69c78f9ecbdc324af1a5cc7fa8f0ac3498a77f55b401df046ced4/tril_meta_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..73546783d411935e2414458e84da3d473d05c509 --- /dev/null +++ b/shared/package-files/3e/3eb3a10619a69c78f9ecbdc324af1a5cc7fa8f0ac3498a77f55b401df046ced4/tril_meta_dispatch.h @@ -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 tril(const at::Tensor & self, int64_t diagonal=0); +TORCH_API at::Tensor & tril_out(at::Tensor & out, const at::Tensor & self, int64_t diagonal=0); +TORCH_API at::Tensor & tril_outf(const at::Tensor & self, int64_t diagonal, at::Tensor & out); +TORCH_API at::Tensor & tril_(at::Tensor & self, int64_t diagonal=0); + +} // namespace meta +} // namespace at diff --git a/shared/package-files/3e/3eb3fbc7a24cda57d91497196085cdece8debf049e2571d7efbb8890514672ff/schema.pyi b/shared/package-files/3e/3eb3fbc7a24cda57d91497196085cdece8debf049e2571d7efbb8890514672ff/schema.pyi new file mode 100644 index 0000000000000000000000000000000000000000..4da424849dadd7c56b5c3a2a3ea00c37f3a89b3a --- /dev/null +++ b/shared/package-files/3e/3eb3fbc7a24cda57d91497196085cdece8debf049e2571d7efbb8890514672ff/schema.pyi @@ -0,0 +1,77 @@ +from typing import Any, ContextManager, List, Optional, Sequence, Tuple, Type, Union + +from django.db.backends.ddl_references import Statement +from django.db.models.base import Model +from django.db.models.indexes import Index + +from django.db.models.fields import Field + +logger: Any + +class BaseDatabaseSchemaEditor(ContextManager[Any]): + sql_create_table: str = ... + sql_rename_table: str = ... + sql_retablespace_table: str = ... + sql_delete_table: str = ... + sql_create_column: str = ... + sql_alter_column: str = ... + sql_alter_column_type: str = ... + sql_alter_column_null: str = ... + sql_alter_column_not_null: str = ... + sql_alter_column_default: str = ... + sql_alter_column_no_default: str = ... + sql_delete_column: str = ... + sql_rename_column: str = ... + sql_update_with_default: str = ... + sql_create_check: str = ... + sql_delete_check: str = ... + sql_create_unique: str = ... + sql_delete_unique: str = ... + sql_create_fk: str = ... + sql_create_inline_fk: str = ... + sql_delete_fk: str = ... + sql_create_index: str = ... + sql_delete_index: str = ... + sql_create_pk: str = ... + sql_delete_pk: str = ... + sql_delete_procedure: str = ... + connection: Any = ... + collect_sql: bool = ... + collected_sql: Any = ... + atomic_migration: Any = ... + def __init__(self, connection: Any, collect_sql: bool = ..., atomic: bool = ...) -> None: ... + deferred_sql: Any = ... + atomic: Any = ... + def __enter__(self) -> BaseDatabaseSchemaEditor: ... + def __exit__(self, exc_type: Any, exc_value: Any, traceback: Any) -> None: ... + def execute(self, sql: Union[Statement, str], params: Optional[Union[List[int], Tuple]] = ...) -> None: ... + def quote_name(self, name: str) -> str: ... + def column_sql( + self, model: Type[Model], field: Field, include_default: bool = ... + ) -> Tuple[Optional[str], Optional[List[Any]]]: ... + def skip_default(self, field: Any): ... + def prepare_default(self, value: Any) -> None: ... + def effective_default(self, field: Field) -> Optional[Union[int, str]]: ... + def quote_value(self, value: Any) -> None: ... + def create_model(self, model: Type[Model]) -> None: ... + def delete_model(self, model: Type[Model]) -> None: ... + def add_index(self, model: Type[Model], index: Index) -> None: ... + def remove_index(self, model: Type[Model], index: Index) -> None: ... + def alter_unique_together( + self, + model: Type[Model], + old_unique_together: Sequence[Sequence[str]], + new_unique_together: Sequence[Sequence[str]], + ) -> None: ... + def alter_index_together( + self, + model: Type[Model], + old_index_together: Sequence[Sequence[str]], + new_index_together: Sequence[Sequence[str]], + ) -> None: ... + def alter_db_table(self, model: Type[Model], old_db_table: str, new_db_table: str) -> None: ... + def alter_db_tablespace(self, model: Any, old_db_tablespace: Any, new_db_tablespace: Any) -> None: ... + def add_field(self, model: Any, field: Any): ... + def remove_field(self, model: Any, field: Any): ... + def alter_field(self, model: Type[Model], old_field: Field, new_field: Field, strict: bool = ...) -> None: ... + def remove_procedure(self, procedure_name: Any, param_types: Any = ...) -> None: ... diff --git a/shared/package-files/3e/3eb47b5a855c9f831d1b80cfacebee6758eb38864f14fa24db4cda9e7af87702/common.py b/shared/package-files/3e/3eb47b5a855c9f831d1b80cfacebee6758eb38864f14fa24db4cda9e7af87702/common.py new file mode 100644 index 0000000000000000000000000000000000000000..54a993db76933a5e710f0ddd20a4efd0118ecf95 --- /dev/null +++ b/shared/package-files/3e/3eb47b5a855c9f831d1b80cfacebee6758eb38864f14fa24db4cda9e7af87702/common.py @@ -0,0 +1,24 @@ +""" +Common utilities for testing model selection. +""" + +import numpy as np + +from sklearn.model_selection import KFold + + +class OneTimeSplitter: + """A wrapper to make KFold single entry cv iterator""" + + def __init__(self, n_splits=4, n_samples=99): + self.n_splits = n_splits + self.n_samples = n_samples + self.indices = iter(KFold(n_splits=n_splits).split(np.ones(n_samples))) + + def split(self, X=None, y=None, groups=None): + """Split can be called only once""" + for index in self.indices: + yield index + + def get_n_splits(self, X=None, y=None, groups=None): + return self.n_splits diff --git a/shared/package-files/3e/3eb6d80c523b20637719fd0e3c19157de7f342ce005c7c03438f79a6fad7dd16/warnings_and_errors.pyi b/shared/package-files/3e/3eb6d80c523b20637719fd0e3c19157de7f342ce005c7c03438f79a6fad7dd16/warnings_and_errors.pyi new file mode 100644 index 0000000000000000000000000000000000000000..f4fa38293738a2d1d61d522927aea367e21cb9c6 --- /dev/null +++ b/shared/package-files/3e/3eb6d80c523b20637719fd0e3c19157de7f342ce005c7c03438f79a6fad7dd16/warnings_and_errors.pyi @@ -0,0 +1,5 @@ +import numpy as np + +np.AxisError(1.0) # E: No overload variant +np.AxisError(1, ndim=2.0) # E: No overload variant +np.AxisError(2, msg_prefix=404) # E: No overload variant diff --git a/shared/package-files/3e/3eb95fce341f625525b38e3ddca9a80cf3bffce53e2fa64381c3449e5aa9f81a/_posixshmem.cpython-310-x86_64-linux-gnu.so b/shared/package-files/3e/3eb95fce341f625525b38e3ddca9a80cf3bffce53e2fa64381c3449e5aa9f81a/_posixshmem.cpython-310-x86_64-linux-gnu.so new file mode 100644 index 0000000000000000000000000000000000000000..fcf46986a9c62afdd9e73c50ca9c8660474a0217 Binary files /dev/null and b/shared/package-files/3e/3eb95fce341f625525b38e3ddca9a80cf3bffce53e2fa64381c3449e5aa9f81a/_posixshmem.cpython-310-x86_64-linux-gnu.so differ diff --git a/shared/package-files/3e/3ec26152500181da52b0f51e8a3a277f214dab3e407cd486413b4952d7bbcadb/test_mrecords.py b/shared/package-files/3e/3ec26152500181da52b0f51e8a3a277f214dab3e407cd486413b4952d7bbcadb/test_mrecords.py new file mode 100644 index 0000000000000000000000000000000000000000..77123c3cda941636354a7b282777f3f0e55d3ab0 --- /dev/null +++ b/shared/package-files/3e/3ec26152500181da52b0f51e8a3a277f214dab3e407cd486413b4952d7bbcadb/test_mrecords.py @@ -0,0 +1,493 @@ +# pylint: disable-msg=W0611, W0612, W0511,R0201 +"""Tests suite for mrecords. + +:author: Pierre Gerard-Marchant +:contact: pierregm_at_uga_dot_edu + +""" +import numpy as np +import numpy.ma as ma +from numpy import recarray +from numpy.ma import masked, nomask +from numpy.testing import temppath +from numpy.core.records import ( + fromrecords as recfromrecords, fromarrays as recfromarrays + ) +from numpy.ma.mrecords import ( + MaskedRecords, mrecarray, fromarrays, fromtextfile, fromrecords, + addfield + ) +from numpy.ma.testutils import ( + assert_, assert_equal, + assert_equal_records, + ) +from numpy.compat import pickle + + +class TestMRecords: + + ilist = [1, 2, 3, 4, 5] + flist = [1.1, 2.2, 3.3, 4.4, 5.5] + slist = [b'one', b'two', b'three', b'four', b'five'] + ddtype = [('a', int), ('b', float), ('c', '|S8')] + mask = [0, 1, 0, 0, 1] + base = ma.array(list(zip(ilist, flist, slist)), mask=mask, dtype=ddtype) + + def test_byview(self): + # Test creation by view + base = self.base + mbase = base.view(mrecarray) + assert_equal(mbase.recordmask, base.recordmask) + assert_equal_records(mbase._mask, base._mask) + assert_(isinstance(mbase._data, recarray)) + assert_equal_records(mbase._data, base._data.view(recarray)) + for field in ('a', 'b', 'c'): + assert_equal(base[field], mbase[field]) + assert_equal_records(mbase.view(mrecarray), mbase) + + def test_get(self): + # Tests fields retrieval + base = self.base.copy() + mbase = base.view(mrecarray) + # As fields.......... + for field in ('a', 'b', 'c'): + assert_equal(getattr(mbase, field), mbase[field]) + assert_equal(base[field], mbase[field]) + # as elements ....... + mbase_first = mbase[0] + assert_(isinstance(mbase_first, mrecarray)) + assert_equal(mbase_first.dtype, mbase.dtype) + assert_equal(mbase_first.tolist(), (1, 1.1, b'one')) + # Used to be mask, now it's recordmask + assert_equal(mbase_first.recordmask, nomask) + assert_equal(mbase_first._mask.item(), (False, False, False)) + assert_equal(mbase_first['a'], mbase['a'][0]) + mbase_last = mbase[-1] + assert_(isinstance(mbase_last, mrecarray)) + assert_equal(mbase_last.dtype, mbase.dtype) + assert_equal(mbase_last.tolist(), (None, None, None)) + # Used to be mask, now it's recordmask + assert_equal(mbase_last.recordmask, True) + assert_equal(mbase_last._mask.item(), (True, True, True)) + assert_equal(mbase_last['a'], mbase['a'][-1]) + assert_((mbase_last['a'] is masked)) + # as slice .......... + mbase_sl = mbase[:2] + assert_(isinstance(mbase_sl, mrecarray)) + assert_equal(mbase_sl.dtype, mbase.dtype) + # Used to be mask, now it's recordmask + assert_equal(mbase_sl.recordmask, [0, 1]) + assert_equal_records(mbase_sl.mask, + np.array([(False, False, False), + (True, True, True)], + dtype=mbase._mask.dtype)) + assert_equal_records(mbase_sl, base[:2].view(mrecarray)) + for field in ('a', 'b', 'c'): + assert_equal(getattr(mbase_sl, field), base[:2][field]) + + def test_set_fields(self): + # Tests setting fields. + base = self.base.copy() + mbase = base.view(mrecarray) + mbase = mbase.copy() + mbase.fill_value = (999999, 1e20, 'N/A') + # Change the data, the mask should be conserved + mbase.a._data[:] = 5 + assert_equal(mbase['a']._data, [5, 5, 5, 5, 5]) + assert_equal(mbase['a']._mask, [0, 1, 0, 0, 1]) + # Change the elements, and the mask will follow + mbase.a = 1 + assert_equal(mbase['a']._data, [1]*5) + assert_equal(ma.getmaskarray(mbase['a']), [0]*5) + # Use to be _mask, now it's recordmask + assert_equal(mbase.recordmask, [False]*5) + assert_equal(mbase._mask.tolist(), + np.array([(0, 0, 0), + (0, 1, 1), + (0, 0, 0), + (0, 0, 0), + (0, 1, 1)], + dtype=bool)) + # Set a field to mask ........................ + mbase.c = masked + # Use to be mask, and now it's still mask ! + assert_equal(mbase.c.mask, [1]*5) + assert_equal(mbase.c.recordmask, [1]*5) + assert_equal(ma.getmaskarray(mbase['c']), [1]*5) + assert_equal(ma.getdata(mbase['c']), [b'N/A']*5) + assert_equal(mbase._mask.tolist(), + np.array([(0, 0, 1), + (0, 1, 1), + (0, 0, 1), + (0, 0, 1), + (0, 1, 1)], + dtype=bool)) + # Set fields by slices ....................... + mbase = base.view(mrecarray).copy() + mbase.a[3:] = 5 + assert_equal(mbase.a, [1, 2, 3, 5, 5]) + assert_equal(mbase.a._mask, [0, 1, 0, 0, 0]) + mbase.b[3:] = masked + assert_equal(mbase.b, base['b']) + assert_equal(mbase.b._mask, [0, 1, 0, 1, 1]) + # Set fields globally.......................... + ndtype = [('alpha', '|S1'), ('num', int)] + data = ma.array([('a', 1), ('b', 2), ('c', 3)], dtype=ndtype) + rdata = data.view(MaskedRecords) + val = ma.array([10, 20, 30], mask=[1, 0, 0]) + + rdata['num'] = val + assert_equal(rdata.num, val) + assert_equal(rdata.num.mask, [1, 0, 0]) + + def test_set_fields_mask(self): + # Tests setting the mask of a field. + base = self.base.copy() + # This one has already a mask.... + mbase = base.view(mrecarray) + mbase['a'][-2] = masked + assert_equal(mbase.a, [1, 2, 3, 4, 5]) + assert_equal(mbase.a._mask, [0, 1, 0, 1, 1]) + # This one has not yet + mbase = fromarrays([np.arange(5), np.random.rand(5)], + dtype=[('a', int), ('b', float)]) + mbase['a'][-2] = masked + assert_equal(mbase.a, [0, 1, 2, 3, 4]) + assert_equal(mbase.a._mask, [0, 0, 0, 1, 0]) + + def test_set_mask(self): + base = self.base.copy() + mbase = base.view(mrecarray) + # Set the mask to True ....................... + mbase.mask = masked + assert_equal(ma.getmaskarray(mbase['b']), [1]*5) + assert_equal(mbase['a']._mask, mbase['b']._mask) + assert_equal(mbase['a']._mask, mbase['c']._mask) + assert_equal(mbase._mask.tolist(), + np.array([(1, 1, 1)]*5, dtype=bool)) + # Delete the mask ............................ + mbase.mask = nomask + assert_equal(ma.getmaskarray(mbase['c']), [0]*5) + assert_equal(mbase._mask.tolist(), + np.array([(0, 0, 0)]*5, dtype=bool)) + + def test_set_mask_fromarray(self): + base = self.base.copy() + mbase = base.view(mrecarray) + # Sets the mask w/ an array + mbase.mask = [1, 0, 0, 0, 1] + assert_equal(mbase.a.mask, [1, 0, 0, 0, 1]) + assert_equal(mbase.b.mask, [1, 0, 0, 0, 1]) + assert_equal(mbase.c.mask, [1, 0, 0, 0, 1]) + # Yay, once more ! + mbase.mask = [0, 0, 0, 0, 1] + assert_equal(mbase.a.mask, [0, 0, 0, 0, 1]) + assert_equal(mbase.b.mask, [0, 0, 0, 0, 1]) + assert_equal(mbase.c.mask, [0, 0, 0, 0, 1]) + + def test_set_mask_fromfields(self): + mbase = self.base.copy().view(mrecarray) + + nmask = np.array( + [(0, 1, 0), (0, 1, 0), (1, 0, 1), (1, 0, 1), (0, 0, 0)], + dtype=[('a', bool), ('b', bool), ('c', bool)]) + mbase.mask = nmask + assert_equal(mbase.a.mask, [0, 0, 1, 1, 0]) + assert_equal(mbase.b.mask, [1, 1, 0, 0, 0]) + assert_equal(mbase.c.mask, [0, 0, 1, 1, 0]) + # Reinitialize and redo + mbase.mask = False + mbase.fieldmask = nmask + assert_equal(mbase.a.mask, [0, 0, 1, 1, 0]) + assert_equal(mbase.b.mask, [1, 1, 0, 0, 0]) + assert_equal(mbase.c.mask, [0, 0, 1, 1, 0]) + + def test_set_elements(self): + base = self.base.copy() + # Set an element to mask ..................... + mbase = base.view(mrecarray).copy() + mbase[-2] = masked + assert_equal( + mbase._mask.tolist(), + np.array([(0, 0, 0), (1, 1, 1), (0, 0, 0), (1, 1, 1), (1, 1, 1)], + dtype=bool)) + # Used to be mask, now it's recordmask! + assert_equal(mbase.recordmask, [0, 1, 0, 1, 1]) + # Set slices ................................. + mbase = base.view(mrecarray).copy() + mbase[:2] = (5, 5, 5) + assert_equal(mbase.a._data, [5, 5, 3, 4, 5]) + assert_equal(mbase.a._mask, [0, 0, 0, 0, 1]) + assert_equal(mbase.b._data, [5., 5., 3.3, 4.4, 5.5]) + assert_equal(mbase.b._mask, [0, 0, 0, 0, 1]) + assert_equal(mbase.c._data, + [b'5', b'5', b'three', b'four', b'five']) + assert_equal(mbase.b._mask, [0, 0, 0, 0, 1]) + + mbase = base.view(mrecarray).copy() + mbase[:2] = masked + assert_equal(mbase.a._data, [1, 2, 3, 4, 5]) + assert_equal(mbase.a._mask, [1, 1, 0, 0, 1]) + assert_equal(mbase.b._data, [1.1, 2.2, 3.3, 4.4, 5.5]) + assert_equal(mbase.b._mask, [1, 1, 0, 0, 1]) + assert_equal(mbase.c._data, + [b'one', b'two', b'three', b'four', b'five']) + assert_equal(mbase.b._mask, [1, 1, 0, 0, 1]) + + def test_setslices_hardmask(self): + # Tests setting slices w/ hardmask. + base = self.base.copy() + mbase = base.view(mrecarray) + mbase.harden_mask() + try: + mbase[-2:] = (5, 5, 5) + assert_equal(mbase.a._data, [1, 2, 3, 5, 5]) + assert_equal(mbase.b._data, [1.1, 2.2, 3.3, 5, 5.5]) + assert_equal(mbase.c._data, + [b'one', b'two', b'three', b'5', b'five']) + assert_equal(mbase.a._mask, [0, 1, 0, 0, 1]) + assert_equal(mbase.b._mask, mbase.a._mask) + assert_equal(mbase.b._mask, mbase.c._mask) + except NotImplementedError: + # OK, not implemented yet... + pass + except AssertionError: + raise + else: + raise Exception("Flexible hard masks should be supported !") + # Not using a tuple should crash + try: + mbase[-2:] = 3 + except (NotImplementedError, TypeError): + pass + else: + raise TypeError("Should have expected a readable buffer object!") + + def test_hardmask(self): + # Test hardmask + base = self.base.copy() + mbase = base.view(mrecarray) + mbase.harden_mask() + assert_(mbase._hardmask) + mbase.mask = nomask + assert_equal_records(mbase._mask, base._mask) + mbase.soften_mask() + assert_(not mbase._hardmask) + mbase.mask = nomask + # So, the mask of a field is no longer set to nomask... + assert_equal_records(mbase._mask, + ma.make_mask_none(base.shape, base.dtype)) + assert_(ma.make_mask(mbase['b']._mask) is nomask) + assert_equal(mbase['a']._mask, mbase['b']._mask) + + def test_pickling(self): + # Test pickling + base = self.base.copy() + mrec = base.view(mrecarray) + for proto in range(2, pickle.HIGHEST_PROTOCOL + 1): + _ = pickle.dumps(mrec, protocol=proto) + mrec_ = pickle.loads(_) + assert_equal(mrec_.dtype, mrec.dtype) + assert_equal_records(mrec_._data, mrec._data) + assert_equal(mrec_._mask, mrec._mask) + assert_equal_records(mrec_._mask, mrec._mask) + + def test_filled(self): + # Test filling the array + _a = ma.array([1, 2, 3], mask=[0, 0, 1], dtype=int) + _b = ma.array([1.1, 2.2, 3.3], mask=[0, 0, 1], dtype=float) + _c = ma.array(['one', 'two', 'three'], mask=[0, 0, 1], dtype='|S8') + ddtype = [('a', int), ('b', float), ('c', '|S8')] + mrec = fromarrays([_a, _b, _c], dtype=ddtype, + fill_value=(99999, 99999., 'N/A')) + mrecfilled = mrec.filled() + assert_equal(mrecfilled['a'], np.array((1, 2, 99999), dtype=int)) + assert_equal(mrecfilled['b'], np.array((1.1, 2.2, 99999.), + dtype=float)) + assert_equal(mrecfilled['c'], np.array(('one', 'two', 'N/A'), + dtype='|S8')) + + def test_tolist(self): + # Test tolist. + _a = ma.array([1, 2, 3], mask=[0, 0, 1], dtype=int) + _b = ma.array([1.1, 2.2, 3.3], mask=[0, 0, 1], dtype=float) + _c = ma.array(['one', 'two', 'three'], mask=[1, 0, 0], dtype='|S8') + ddtype = [('a', int), ('b', float), ('c', '|S8')] + mrec = fromarrays([_a, _b, _c], dtype=ddtype, + fill_value=(99999, 99999., 'N/A')) + + assert_equal(mrec.tolist(), + [(1, 1.1, None), (2, 2.2, b'two'), + (None, None, b'three')]) + + def test_withnames(self): + # Test the creation w/ format and names + x = mrecarray(1, formats=float, names='base') + x[0]['base'] = 10 + assert_equal(x['base'][0], 10) + + def test_exotic_formats(self): + # Test that 'exotic' formats are processed properly + easy = mrecarray(1, dtype=[('i', int), ('s', '|S8'), ('f', float)]) + easy[0] = masked + assert_equal(easy.filled(1).item(), (1, b'1', 1.)) + + solo = mrecarray(1, dtype=[('f0', '>> class MyClass: + ... calls = 0 + ... + ... @method_cache + ... def method(self, value): + ... self.calls += 1 + ... return value + + >>> a = MyClass() + >>> a.method(3) + 3 + >>> for x in range(75): + ... res = a.method(x) + >>> a.calls + 75 + + Note that the apparent behavior will be exactly like that of lru_cache + except that the cache is stored on each instance, so values in one + instance will not flush values from another, and when an instance is + deleted, so are the cached values for that instance. + + >>> b = MyClass() + >>> for x in range(35): + ... res = b.method(x) + >>> b.calls + 35 + >>> a.method(0) + 0 + >>> a.calls + 75 + + Note that if method had been decorated with ``functools.lru_cache()``, + a.calls would have been 76 (due to the cached value of 0 having been + flushed by the 'b' instance). + + Clear the cache with ``.cache_clear()`` + + >>> a.method.cache_clear() + + Same for a method that hasn't yet been called. + + >>> c = MyClass() + >>> c.method.cache_clear() + + Another cache wrapper may be supplied: + + >>> cache = functools.lru_cache(maxsize=2) + >>> MyClass.method2 = method_cache(lambda self: 3, cache_wrapper=cache) + >>> a = MyClass() + >>> a.method2() + 3 + + Caution - do not subsequently wrap the method with another decorator, such + as ``@property``, which changes the semantics of the function. + + See also + http://code.activestate.com/recipes/577452-a-memoize-decorator-for-instance-methods/ + for another implementation and additional justification. + """ + cache_wrapper = cache_wrapper or functools.lru_cache() + + def wrapper(self, *args, **kwargs): + # it's the first call, replace the method with a cached, bound method + bound_method = types.MethodType(method, self) + cached_method = cache_wrapper(bound_method) + setattr(self, method.__name__, cached_method) + return cached_method(*args, **kwargs) + + # Support cache clear even before cache has been created. + wrapper.cache_clear = lambda: None + + return wrapper + + +# From jaraco.functools 3.3 +def pass_none(func): + """ + Wrap func so it's not called if its first param is None + + >>> print_text = pass_none(print) + >>> print_text('text') + text + >>> print_text(None) + """ + + @functools.wraps(func) + def wrapper(param, *args, **kwargs): + if param is not None: + return func(param, *args, **kwargs) + + return wrapper diff --git a/shared/package-files/3e/3ec693b2ab596193ba8bd5dc2e9bd9e7feb1995c3f178e61b9724981b823b1fb/xterm-1002 b/shared/package-files/3e/3ec693b2ab596193ba8bd5dc2e9bd9e7feb1995c3f178e61b9724981b823b1fb/xterm-1002 new file mode 100644 index 0000000000000000000000000000000000000000..061884ba9850937f439aea979ec80c3f0b5fb520 Binary files /dev/null and b/shared/package-files/3e/3ec693b2ab596193ba8bd5dc2e9bd9e7feb1995c3f178e61b9724981b823b1fb/xterm-1002 differ diff --git a/shared/package-files/3e/3ec96fbfb6fd43243ea4900ea0dc8c51e4b3848e26759ab3365af2cf9232cbc0/__init__.py b/shared/package-files/3e/3ec96fbfb6fd43243ea4900ea0dc8c51e4b3848e26759ab3365af2cf9232cbc0/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..5aaafa4ad97e379502efab99165f8a4a0bd9e4a8 --- /dev/null +++ b/shared/package-files/3e/3ec96fbfb6fd43243ea4900ea0dc8c51e4b3848e26759ab3365af2cf9232cbc0/__init__.py @@ -0,0 +1,22 @@ +import sys + +import numba + +from .pynndescent_ import NNDescent, PyNNDescentTransformer + +if sys.version_info[:2] >= (3, 8): + import importlib.metadata as importlib_metadata +else: + import importlib_metadata + +# Workaround: https://github.com/numba/numba/issues/3341 +if numba.config.THREADING_LAYER == "omp": + try: + from numba.np.ufunc import tbbpool + + numba.config.THREADING_LAYER = "tbb" + except ImportError as e: + # might be a missing symbol due to e.g. tbb libraries missing + numba.config.THREADING_LAYER = "workqueue" + +__version__ = importlib_metadata.version("pynndescent") diff --git a/shared/package-files/3e/3eca93ed152688ef298798c6f061d898f6da7034059638dcd122fb44cc707895/sputils.py b/shared/package-files/3e/3eca93ed152688ef298798c6f061d898f6da7034059638dcd122fb44cc707895/sputils.py new file mode 100644 index 0000000000000000000000000000000000000000..4ddd27a43889609b0642bd7579e13c8e3c460a8b --- /dev/null +++ b/shared/package-files/3e/3eca93ed152688ef298798c6f061d898f6da7034059638dcd122fb44cc707895/sputils.py @@ -0,0 +1,17 @@ +# 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__: list[str] = [] + + +def __dir__(): + return __all__ + + +def __getattr__(name): + return _sub_module_deprecation(sub_package="sparse", module="sputils", + private_modules=["_sputils"], all=__all__, + attribute=name) diff --git a/shared/package-files/3e/3ecb8025e59d289a0b495ffa37a229079fb43daf382b32d4b9c24c1516b3c372/text_file.py b/shared/package-files/3e/3ecb8025e59d289a0b495ffa37a229079fb43daf382b32d4b9c24c1516b3c372/text_file.py new file mode 100644 index 0000000000000000000000000000000000000000..93abad38f434d7ecf8d208cdefc310bd73a5a673 --- /dev/null +++ b/shared/package-files/3e/3ecb8025e59d289a0b495ffa37a229079fb43daf382b32d4b9c24c1516b3c372/text_file.py @@ -0,0 +1,286 @@ +"""text_file + +provides the TextFile class, which gives an interface to text files +that (optionally) takes care of stripping comments, ignoring blank +lines, and joining lines with backslashes.""" + +import sys, io + + +class TextFile: + """Provides a file-like object that takes care of all the things you + commonly want to do when processing a text file that has some + line-by-line syntax: strip comments (as long as "#" is your + comment character), skip blank lines, join adjacent lines by + escaping the newline (ie. backslash at end of line), strip + leading and/or trailing whitespace. All of these are optional + and independently controllable. + + Provides a 'warn()' method so you can generate warning messages that + report physical line number, even if the logical line in question + spans multiple physical lines. Also provides 'unreadline()' for + implementing line-at-a-time lookahead. + + Constructor is called as: + + TextFile (filename=None, file=None, **options) + + It bombs (RuntimeError) if both 'filename' and 'file' are None; + 'filename' should be a string, and 'file' a file object (or + something that provides 'readline()' and 'close()' methods). It is + recommended that you supply at least 'filename', so that TextFile + can include it in warning messages. If 'file' is not supplied, + TextFile creates its own using 'io.open()'. + + The options are all boolean, and affect the value returned by + 'readline()': + strip_comments [default: true] + strip from "#" to end-of-line, as well as any whitespace + leading up to the "#" -- unless it is escaped by a backslash + lstrip_ws [default: false] + strip leading whitespace from each line before returning it + rstrip_ws [default: true] + strip trailing whitespace (including line terminator!) from + each line before returning it + skip_blanks [default: true} + skip lines that are empty *after* stripping comments and + whitespace. (If both lstrip_ws and rstrip_ws are false, + then some lines may consist of solely whitespace: these will + *not* be skipped, even if 'skip_blanks' is true.) + join_lines [default: false] + if a backslash is the last non-newline character on a line + after stripping comments and whitespace, join the following line + to it to form one "logical line"; if N consecutive lines end + with a backslash, then N+1 physical lines will be joined to + form one logical line. + collapse_join [default: false] + strip leading whitespace from lines that are joined to their + predecessor; only matters if (join_lines and not lstrip_ws) + errors [default: 'strict'] + error handler used to decode the file content + + Note that since 'rstrip_ws' can strip the trailing newline, the + semantics of 'readline()' must differ from those of the builtin file + object's 'readline()' method! In particular, 'readline()' returns + None for end-of-file: an empty string might just be a blank line (or + an all-whitespace line), if 'rstrip_ws' is true but 'skip_blanks' is + not.""" + + default_options = { 'strip_comments': 1, + 'skip_blanks': 1, + 'lstrip_ws': 0, + 'rstrip_ws': 1, + 'join_lines': 0, + 'collapse_join': 0, + 'errors': 'strict', + } + + def __init__(self, filename=None, file=None, **options): + """Construct a new TextFile object. At least one of 'filename' + (a string) and 'file' (a file-like object) must be supplied. + They keyword argument options are described above and affect + the values returned by 'readline()'.""" + if filename is None and file is None: + raise RuntimeError("you must supply either or both of 'filename' and 'file'") + + # set values for all options -- either from client option hash + # or fallback to default_options + for opt in self.default_options.keys(): + if opt in options: + setattr(self, opt, options[opt]) + else: + setattr(self, opt, self.default_options[opt]) + + # sanity check client option hash + for opt in options.keys(): + if opt not in self.default_options: + raise KeyError("invalid TextFile option '%s'" % opt) + + if file is None: + self.open(filename) + else: + self.filename = filename + self.file = file + self.current_line = 0 # assuming that file is at BOF! + + # 'linebuf' is a stack of lines that will be emptied before we + # actually read from the file; it's only populated by an + # 'unreadline()' operation + self.linebuf = [] + + def open(self, filename): + """Open a new file named 'filename'. This overrides both the + 'filename' and 'file' arguments to the constructor.""" + self.filename = filename + self.file = io.open(self.filename, 'r', errors=self.errors) + self.current_line = 0 + + def close(self): + """Close the current file and forget everything we know about it + (filename, current line number).""" + file = self.file + self.file = None + self.filename = None + self.current_line = None + file.close() + + def gen_error(self, msg, line=None): + outmsg = [] + if line is None: + line = self.current_line + outmsg.append(self.filename + ", ") + if isinstance(line, (list, tuple)): + outmsg.append("lines %d-%d: " % tuple(line)) + else: + outmsg.append("line %d: " % line) + outmsg.append(str(msg)) + return "".join(outmsg) + + def error(self, msg, line=None): + raise ValueError("error: " + self.gen_error(msg, line)) + + def warn(self, msg, line=None): + """Print (to stderr) a warning message tied to the current logical + line in the current file. If the current logical line in the + file spans multiple physical lines, the warning refers to the + whole range, eg. "lines 3-5". If 'line' supplied, it overrides + the current line number; it may be a list or tuple to indicate a + range of physical lines, or an integer for a single physical + line.""" + sys.stderr.write("warning: " + self.gen_error(msg, line) + "\n") + + def readline(self): + """Read and return a single logical line from the current file (or + from an internal buffer if lines have previously been "unread" + with 'unreadline()'). If the 'join_lines' option is true, this + may involve reading multiple physical lines concatenated into a + single string. Updates the current line number, so calling + 'warn()' after 'readline()' emits a warning about the physical + line(s) just read. Returns None on end-of-file, since the empty + string can occur if 'rstrip_ws' is true but 'strip_blanks' is + not.""" + # If any "unread" lines waiting in 'linebuf', return the top + # one. (We don't actually buffer read-ahead data -- lines only + # get put in 'linebuf' if the client explicitly does an + # 'unreadline()'. + if self.linebuf: + line = self.linebuf[-1] + del self.linebuf[-1] + return line + + buildup_line = '' + + while True: + # read the line, make it None if EOF + line = self.file.readline() + if line == '': + line = None + + if self.strip_comments and line: + + # Look for the first "#" in the line. If none, never + # mind. If we find one and it's the first character, or + # is not preceded by "\", then it starts a comment -- + # strip the comment, strip whitespace before it, and + # carry on. Otherwise, it's just an escaped "#", so + # unescape it (and any other escaped "#"'s that might be + # lurking in there) and otherwise leave the line alone. + + pos = line.find("#") + if pos == -1: # no "#" -- no comments + pass + + # It's definitely a comment -- either "#" is the first + # character, or it's elsewhere and unescaped. + elif pos == 0 or line[pos-1] != "\\": + # Have to preserve the trailing newline, because it's + # the job of a later step (rstrip_ws) to remove it -- + # and if rstrip_ws is false, we'd better preserve it! + # (NB. this means that if the final line is all comment + # and has no trailing newline, we will think that it's + # EOF; I think that's OK.) + eol = (line[-1] == '\n') and '\n' or '' + line = line[0:pos] + eol + + # If all that's left is whitespace, then skip line + # *now*, before we try to join it to 'buildup_line' -- + # that way constructs like + # hello \\ + # # comment that should be ignored + # there + # result in "hello there". + if line.strip() == "": + continue + else: # it's an escaped "#" + line = line.replace("\\#", "#") + + # did previous line end with a backslash? then accumulate + if self.join_lines and buildup_line: + # oops: end of file + if line is None: + self.warn("continuation line immediately precedes " + "end-of-file") + return buildup_line + + if self.collapse_join: + line = line.lstrip() + line = buildup_line + line + + # careful: pay attention to line number when incrementing it + if isinstance(self.current_line, list): + self.current_line[1] = self.current_line[1] + 1 + else: + self.current_line = [self.current_line, + self.current_line + 1] + # just an ordinary line, read it as usual + else: + if line is None: # eof + return None + + # still have to be careful about incrementing the line number! + if isinstance(self.current_line, list): + self.current_line = self.current_line[1] + 1 + else: + self.current_line = self.current_line + 1 + + # strip whitespace however the client wants (leading and + # trailing, or one or the other, or neither) + if self.lstrip_ws and self.rstrip_ws: + line = line.strip() + elif self.lstrip_ws: + line = line.lstrip() + elif self.rstrip_ws: + line = line.rstrip() + + # blank line (whether we rstrip'ed or not)? skip to next line + # if appropriate + if (line == '' or line == '\n') and self.skip_blanks: + continue + + if self.join_lines: + if line[-1] == '\\': + buildup_line = line[:-1] + continue + + if line[-2:] == '\\\n': + buildup_line = line[0:-2] + '\n' + continue + + # well, I guess there's some actual content there: return it + return line + + def readlines(self): + """Read and return the list of all logical lines remaining in the + current file.""" + lines = [] + while True: + line = self.readline() + if line is None: + return lines + lines.append(line) + + def unreadline(self, line): + """Push 'line' (a string) onto an internal buffer that will be + checked by future 'readline()' calls. Handy for implementing + a parser with line-at-a-time lookahead.""" + self.linebuf.append(line) diff --git a/shared/package-files/3e/3ecc4a04b3201e5171ef4d87e5c4c757aa93821509bc0e8c9eac55a77b7f91f2/f100-rv b/shared/package-files/3e/3ecc4a04b3201e5171ef4d87e5c4c757aa93821509bc0e8c9eac55a77b7f91f2/f100-rv new file mode 100644 index 0000000000000000000000000000000000000000..c33a95d40688b3a8fdbde74508486672455cb4a9 Binary files /dev/null and b/shared/package-files/3e/3ecc4a04b3201e5171ef4d87e5c4c757aa93821509bc0e8c9eac55a77b7f91f2/f100-rv differ diff --git a/shared/package-files/3e/3ecc4a04b3201e5171ef4d87e5c4c757aa93821509bc0e8c9eac55a77b7f91f2/freedom-rv b/shared/package-files/3e/3ecc4a04b3201e5171ef4d87e5c4c757aa93821509bc0e8c9eac55a77b7f91f2/freedom-rv new file mode 100644 index 0000000000000000000000000000000000000000..c33a95d40688b3a8fdbde74508486672455cb4a9 Binary files /dev/null and b/shared/package-files/3e/3ecc4a04b3201e5171ef4d87e5c4c757aa93821509bc0e8c9eac55a77b7f91f2/freedom-rv differ diff --git a/shared/package-files/3e/3ecc503d65fb416cb68975162447a50b93ba991d532abf4c07f8ba3b9455c66b/group_by.py b/shared/package-files/3e/3ecc503d65fb416cb68975162447a50b93ba991d532abf4c07f8ba3b9455c66b/group_by.py new file mode 100644 index 0000000000000000000000000000000000000000..e0722565bb76b528e5b5f7d6b8d3926bb20f796e --- /dev/null +++ b/shared/package-files/3e/3ecc503d65fb416cb68975162447a50b93ba991d532abf4c07f8ba3b9455c66b/group_by.py @@ -0,0 +1,76 @@ +from __future__ import annotations + +from typing import TYPE_CHECKING, cast + +from narwhals._utils import is_sequence_of + +if TYPE_CHECKING: + from collections.abc import Iterator, Sequence + + from polars.dataframe.group_by import GroupBy as NativeGroupBy + from polars.lazyframe.group_by import LazyGroupBy as NativeLazyGroupBy + + from narwhals._polars.dataframe import PolarsDataFrame, PolarsLazyFrame + from narwhals._polars.expr import PolarsExpr + + +class PolarsGroupBy: + _compliant_frame: PolarsDataFrame + _grouped: NativeGroupBy + + @property + def compliant(self) -> PolarsDataFrame: + return self._compliant_frame + + def __init__( + self, + df: PolarsDataFrame, + keys: Sequence[PolarsExpr] | Sequence[str], + /, + *, + drop_null_keys: bool, + ) -> None: + self._keys = list(keys) + self._compliant_frame = df.drop_nulls(keys) if drop_null_keys else df + self._grouped = ( + self.compliant.native.group_by(keys) + if is_sequence_of(keys, str) + else self.compliant.native.group_by(arg.native for arg in keys) + ) + + def agg(self, *aggs: PolarsExpr) -> PolarsDataFrame: + agg_result = self._grouped.agg(arg.native for arg in aggs) + return self.compliant._with_native(agg_result) + + def __iter__(self) -> Iterator[tuple[tuple[str, ...], PolarsDataFrame]]: + for key, df in self._grouped: + yield tuple(cast("str", key)), self.compliant._with_native(df) + + +class PolarsLazyGroupBy: + _compliant_frame: PolarsLazyFrame + _grouped: NativeLazyGroupBy + + @property + def compliant(self) -> PolarsLazyFrame: + return self._compliant_frame + + def __init__( + self, + df: PolarsLazyFrame, + keys: Sequence[PolarsExpr] | Sequence[str], + /, + *, + drop_null_keys: bool, + ) -> None: + self._keys = list(keys) + self._compliant_frame = df.drop_nulls(keys) if drop_null_keys else df + self._grouped = ( + self.compliant.native.group_by(keys) + if is_sequence_of(keys, str) + else self.compliant.native.group_by(arg.native for arg in keys) + ) + + def agg(self, *aggs: PolarsExpr) -> PolarsLazyFrame: + agg_result = self._grouped.agg(arg.native for arg in aggs) + return self.compliant._with_native(agg_result) diff --git a/shared/package-files/3e/3ecc687159b9b850bb4ecc57b4ad5f0ae5fba3bb92873bfe53214fc16d4e9e68/tek4113-nd b/shared/package-files/3e/3ecc687159b9b850bb4ecc57b4ad5f0ae5fba3bb92873bfe53214fc16d4e9e68/tek4113-nd new file mode 100644 index 0000000000000000000000000000000000000000..a08ee68f8fcdd1eb00ef25035c349398be24339f Binary files /dev/null and b/shared/package-files/3e/3ecc687159b9b850bb4ecc57b4ad5f0ae5fba3bb92873bfe53214fc16d4e9e68/tek4113-nd differ diff --git a/shared/package-files/3e/3ed224cccbb17a1b6dda352f3236b2d2cb82a3e8bb3c7db554e13251afaf1670/isnan_native.h b/shared/package-files/3e/3ed224cccbb17a1b6dda352f3236b2d2cb82a3e8bb3c7db554e13251afaf1670/isnan_native.h new file mode 100644 index 0000000000000000000000000000000000000000..549f7df0770387ca194f9b337a05644090658c85 --- /dev/null +++ b/shared/package-files/3e/3ed224cccbb17a1b6dda352f3236b2d2cb82a3e8bb3c7db554e13251afaf1670/isnan_native.h @@ -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 at::Tensor & isnan_out(const at::Tensor & self, at::Tensor & out); +TORCH_API at::Tensor isnan(const at::Tensor & self); +TORCH_API at::Tensor isnan_sparse(const at::Tensor & self); +TORCH_API at::Tensor isnan_sparse_csr(const at::Tensor & self); +} // namespace native +} // namespace at diff --git a/shared/package-files/3e/3ed22e744f25d1dfd9b475efdafb954a4f298884595f88bf6a77e8d7fed7100c/_test_ambiguous_defaults.h b/shared/package-files/3e/3ed22e744f25d1dfd9b475efdafb954a4f298884595f88bf6a77e8d7fed7100c/_test_ambiguous_defaults.h new file mode 100644 index 0000000000000000000000000000000000000000..5f72c772895de2f116c8e8a9d0b0ea51295e6305 --- /dev/null +++ b/shared/package-files/3e/3ed22e744f25d1dfd9b475efdafb954a4f298884595f88bf6a77e8d7fed7100c/_test_ambiguous_defaults.h @@ -0,0 +1,35 @@ +#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::_test_ambiguous_defaults.a(Tensor dummy, int a=1, int b=1) -> Tensor +inline at::Tensor _test_ambiguous_defaults(const at::Tensor & dummy, int64_t a=1, int64_t b=1) { + return at::_ops::_test_ambiguous_defaults_a::call(dummy, a, b); +} + +// aten::_test_ambiguous_defaults.b(Tensor dummy, int a=2, str b="2") -> Tensor +inline at::Tensor _test_ambiguous_defaults(const at::Tensor & dummy, int64_t a, c10::string_view b) { + return at::_ops::_test_ambiguous_defaults_b::call(dummy, a, b); +} + +} diff --git a/shared/package-files/3e/3ed30812e627a60fbc3b76b923b5a6b0cb9ee2f163362e47f2dc59e4218203be/fliplr_ops.h b/shared/package-files/3e/3ed30812e627a60fbc3b76b923b5a6b0cb9ee2f163362e47f2dc59e4218203be/fliplr_ops.h new file mode 100644 index 0000000000000000000000000000000000000000..9ee54af05f3c9af5ebd95544f733b4e69c746e83 --- /dev/null +++ b/shared/package-files/3e/3ed30812e627a60fbc3b76b923b5a6b0cb9ee2f163362e47f2dc59e4218203be/fliplr_ops.h @@ -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 fliplr { + 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::fliplr") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "fliplr(Tensor self) -> Tensor") + 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/3e/3ed6950148d80c98a97c393a31dba7000a70096959e04001d9435b3e5758d919/strategies.py b/shared/package-files/3e/3ed6950148d80c98a97c393a31dba7000a70096959e04001d9435b3e5758d919/strategies.py new file mode 100644 index 0000000000000000000000000000000000000000..448f7e51ac0787170aeeb2366cbf3e2012c2a6db --- /dev/null +++ b/shared/package-files/3e/3ed6950148d80c98a97c393a31dba7000a70096959e04001d9435b3e5758d919/strategies.py @@ -0,0 +1,1047 @@ +# 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 sys +import warnings +from collections import abc, defaultdict +from functools import lru_cache +from random import shuffle +from typing import ( + TYPE_CHECKING, + Any, + Callable, + ClassVar, + Dict, + Generic, + List, + Sequence, + TypeVar, + Union, + cast, + overload, +) + +from hypothesis._settings import HealthCheck, Phase, Verbosity, settings +from hypothesis.control import _current_build_context +from hypothesis.errors import ( + HypothesisException, + HypothesisWarning, + InvalidArgument, + NonInteractiveExampleWarning, + UnsatisfiedAssumption, +) +from hypothesis.internal.conjecture import utils as cu +from hypothesis.internal.conjecture.data import ConjectureData +from hypothesis.internal.conjecture.utils import ( + calc_label_from_cls, + calc_label_from_name, + combine_labels, +) +from hypothesis.internal.coverage import check_function +from hypothesis.internal.reflection import ( + get_pretty_function_description, + is_identity_function, +) +from hypothesis.strategies._internal.utils import defines_strategy +from hypothesis.utils.conventions import UniqueIdentifier + +# TODO: Use `(3, 13)` once Python 3.13 is released. +if sys.version_info >= (3, 13, 0, "final"): + Ex = TypeVar("Ex", covariant=True, default=Any) +elif TYPE_CHECKING: + from typing_extensions import TypeVar # type: ignore[assignment] + + Ex = TypeVar("Ex", covariant=True, default=Any) # type: ignore[call-arg,misc] +else: + Ex = TypeVar("Ex", covariant=True) + +Ex_Inv = TypeVar("Ex_Inv") +T = TypeVar("T") +T3 = TypeVar("T3") +T4 = TypeVar("T4") +T5 = TypeVar("T5") + +calculating = UniqueIdentifier("calculating") + +MAPPED_SEARCH_STRATEGY_DO_DRAW_LABEL = calc_label_from_name( + "another attempted draw in MappedStrategy" +) + +FILTERED_SEARCH_STRATEGY_DO_DRAW_LABEL = calc_label_from_name( + "single loop iteration in FilteredStrategy" +) + + +def recursive_property(name, default): + """Handle properties which may be mutually recursive among a set of + strategies. + + These are essentially lazily cached properties, with the ability to set + an override: If the property has not been explicitly set, we calculate + it on first access and memoize the result for later. + + The problem is that for properties that depend on each other, a naive + calculation strategy may hit infinite recursion. Consider for example + the property is_empty. A strategy defined as x = st.deferred(lambda: x) + is certainly empty (in order to draw a value from x we would have to + draw a value from x, for which we would have to draw a value from x, + ...), but in order to calculate it the naive approach would end up + calling x.is_empty in order to calculate x.is_empty in order to etc. + + The solution is one of fixed point calculation. We start with a default + value that is the value of the property in the absence of evidence to + the contrary, and then update the values of the property for all + dependent strategies until we reach a fixed point. + + The approach taken roughly follows that in section 4.2 of Adams, + Michael D., Celeste Hollenbeck, and Matthew Might. "On the complexity + and performance of parsing with derivatives." ACM SIGPLAN Notices 51.6 + (2016): 224-236. + """ + cache_key = "cached_" + name + calculation = "calc_" + name + force_key = "force_" + name + + def forced_value(target): + try: + return getattr(target, force_key) + except AttributeError: + return getattr(target, cache_key) + + def accept(self): + try: + return forced_value(self) + except AttributeError: + pass + + mapping = {} + sentinel = object() + hit_recursion = [False] + + # For a first pass we do a direct recursive calculation of the + # property, but we block recursively visiting a value in the + # computation of its property: When that happens, we simply + # note that it happened and return the default value. + def recur(strat): + try: + return forced_value(strat) + except AttributeError: + pass + result = mapping.get(strat, sentinel) + if result is calculating: + hit_recursion[0] = True + return default + elif result is sentinel: + mapping[strat] = calculating + mapping[strat] = getattr(strat, calculation)(recur) + return mapping[strat] + return result + + recur(self) + + # If we hit self-recursion in the computation of any strategy + # value, our mapping at the end is imprecise - it may or may + # not have the right values in it. We now need to proceed with + # a more careful fixed point calculation to get the exact + # values. Hopefully our mapping is still pretty good and it + # won't take a large number of updates to reach a fixed point. + if hit_recursion[0]: + needs_update = set(mapping) + + # We track which strategies use which in the course of + # calculating their property value. If A ever uses B in + # the course of calculating its value, then whenever the + # value of B changes we might need to update the value of + # A. + listeners = defaultdict(set) + else: + needs_update = None + + def recur2(strat): + def recur_inner(other): + try: + return forced_value(other) + except AttributeError: + pass + listeners[other].add(strat) + result = mapping.get(other, sentinel) + if result is sentinel: + needs_update.add(other) + mapping[other] = default + return default + return result + + return recur_inner + + count = 0 + seen = set() + while needs_update: + count += 1 + # If we seem to be taking a really long time to stabilize we + # start tracking seen values to attempt to detect an infinite + # loop. This should be impossible, and most code will never + # hit the count, but having an assertion for it means that + # testing is easier to debug and we don't just have a hung + # test. + # Note: This is actually covered, by test_very_deep_deferral + # in tests/cover/test_deferred_strategies.py. Unfortunately it + # runs into a coverage bug. See + # https://github.com/nedbat/coveragepy/issues/605 + # for details. + if count > 50: # pragma: no cover + key = frozenset(mapping.items()) + assert key not in seen, (key, name) + seen.add(key) + to_update = needs_update + needs_update = set() + for strat in to_update: + new_value = getattr(strat, calculation)(recur2(strat)) + if new_value != mapping[strat]: + needs_update.update(listeners[strat]) + mapping[strat] = new_value + + # We now have a complete and accurate calculation of the + # property values for everything we have seen in the course of + # running this calculation. We simultaneously update all of + # them (not just the strategy we started out with). + for k, v in mapping.items(): + setattr(k, cache_key, v) + return getattr(self, cache_key) + + accept.__name__ = name + return property(accept) + + +class SearchStrategy(Generic[Ex]): + """A SearchStrategy is an object that knows how to explore data of a given + type. + + Except where noted otherwise, methods on this class are not part of + the public API and their behaviour may change significantly between + minor version releases. They will generally be stable between patch + releases. + """ + + supports_find = True + validate_called = False + __label = None + __module__ = "hypothesis.strategies" + + def available(self, data): + """Returns whether this strategy can *currently* draw any + values. This typically useful for stateful testing where ``Bundle`` + grows over time a list of value to choose from. + + Unlike ``empty`` property, this method's return value may change + over time. + Note: ``data`` parameter will only be used for introspection and no + value drawn from it. + """ + return not self.is_empty + + # Returns True if this strategy can never draw a value and will always + # result in the data being marked invalid. + # The fact that this returns False does not guarantee that a valid value + # can be drawn - this is not intended to be perfect, and is primarily + # intended to be an optimisation for some cases. + is_empty = recursive_property("is_empty", True) + + # Returns True if values from this strategy can safely be reused without + # this causing unexpected behaviour. + + # True if values from this strategy can be implicitly reused (e.g. as + # background values in a numpy array) without causing surprising + # user-visible behaviour. Should be false for built-in strategies that + # produce mutable values, and for strategies that have been mapped/filtered + # by arbitrary user-provided functions. + has_reusable_values = recursive_property("has_reusable_values", True) + + # Whether this strategy is suitable for holding onto in a cache. + is_cacheable = recursive_property("is_cacheable", True) + + def calc_is_cacheable(self, recur): + return True + + def calc_is_empty(self, recur): + # Note: It is correct and significant that the default return value + # from calc_is_empty is False despite the default value for is_empty + # being true. The reason for this is that strategies should be treated + # as empty absent evidence to the contrary, but most basic strategies + # are trivially non-empty and it would be annoying to have to override + # this method to show that. + return False + + def calc_has_reusable_values(self, recur): + return False + + def example(self) -> Ex: + """Provide an example of the sort of value that this strategy + generates. This is biased to be slightly simpler than is typical for + values from this strategy, for clarity purposes. + + This method shouldn't be taken too seriously. It's here for interactive + exploration of the API, not for any sort of real testing. + + This method is part of the public API. + """ + if getattr(sys, "ps1", None) is None: # pragma: no branch + # The other branch *is* covered in cover/test_examples.py; but as that + # uses `pexpect` for an interactive session `coverage` doesn't see it. + warnings.warn( + "The `.example()` method is good for exploring strategies, but should " + "only be used interactively. We recommend using `@given` for tests - " + "it performs better, saves and replays failures to avoid flakiness, " + "and reports minimal examples. (strategy: %r)" % (self,), + NonInteractiveExampleWarning, + stacklevel=2, + ) + + context = _current_build_context.value + if context is not None: + if context.data is not None and context.data.depth > 0: + raise HypothesisException( + "Using example() inside a strategy definition is a bad " + "idea. Instead consider using hypothesis.strategies.builds() " + "or @hypothesis.strategies.composite to define your strategy." + " See https://hypothesis.readthedocs.io/en/latest/data.html" + "#hypothesis.strategies.builds or " + "https://hypothesis.readthedocs.io/en/latest/data.html" + "#composite-strategies for more details." + ) + else: + raise HypothesisException( + "Using example() inside a test function is a bad " + "idea. Instead consider using hypothesis.strategies.data() " + "to draw more examples during testing. See " + "https://hypothesis.readthedocs.io/en/latest/data.html" + "#drawing-interactively-in-tests for more details." + ) + + try: + return self.__examples.pop() + except (AttributeError, IndexError): + self.__examples: List[Ex] = [] + + from hypothesis.core import given + + # Note: this function has a weird name because it might appear in + # tracebacks, and we want users to know that they can ignore it. + @given(self) + @settings( + database=None, + max_examples=100, + deadline=None, + verbosity=Verbosity.quiet, + phases=(Phase.generate,), + suppress_health_check=list(HealthCheck), + ) + def example_generating_inner_function(ex): + self.__examples.append(ex) + + example_generating_inner_function() + shuffle(self.__examples) + return self.__examples.pop() + + def map(self, pack: Callable[[Ex], T]) -> "SearchStrategy[T]": + """Returns a new strategy that generates values by generating a value + from this strategy and then calling pack() on the result, giving that. + + This method is part of the public API. + """ + if is_identity_function(pack): + return self # type: ignore # Mypy has no way to know that `Ex == T` + return MappedStrategy(self, pack=pack) + + def flatmap( + self, expand: Callable[[Ex], "SearchStrategy[T]"] + ) -> "SearchStrategy[T]": + """Returns a new strategy that generates values by generating a value + from this strategy, say x, then generating a value from + strategy(expand(x)) + + This method is part of the public API. + """ + from hypothesis.strategies._internal.flatmapped import FlatMapStrategy + + return FlatMapStrategy(expand=expand, strategy=self) + + def filter(self, condition: Callable[[Ex], Any]) -> "SearchStrategy[Ex]": + """Returns a new strategy that generates values from this strategy + which satisfy the provided condition. Note that if the condition is too + hard to satisfy this might result in your tests failing with + Unsatisfiable. + + This method is part of the public API. + """ + return FilteredStrategy(conditions=(condition,), strategy=self) + + def _filter_for_filtered_draw(self, condition): + # Hook for parent strategies that want to perform fallible filtering + # on one of their internal strategies (e.g. UniqueListStrategy). + # The returned object must have a `.do_filtered_draw(data)` method + # that behaves like `do_draw`, but returns the sentinel object + # `filter_not_satisfied` if the condition could not be satisfied. + + # This is separate from the main `filter` method so that strategies + # can override `filter` without having to also guarantee a + # `do_filtered_draw` method. + return FilteredStrategy(conditions=(condition,), strategy=self) + + @property + def branches(self) -> List["SearchStrategy[Ex]"]: + return [self] + + def __or__(self, other: "SearchStrategy[T]") -> "SearchStrategy[Union[Ex, T]]": + """Return a strategy which produces values by randomly drawing from one + of this strategy or the other strategy. + + This method is part of the public API. + """ + if not isinstance(other, SearchStrategy): + raise ValueError(f"Cannot | a SearchStrategy with {other!r}") + return OneOfStrategy((self, other)) + + def __bool__(self) -> bool: + warnings.warn( + f"bool({self!r}) is always True, did you mean to draw a value?", + HypothesisWarning, + stacklevel=2, + ) + return True + + def validate(self) -> None: + """Throw an exception if the strategy is not valid. + + This can happen due to lazy construction + """ + if self.validate_called: + return + try: + self.validate_called = True + self.do_validate() + self.is_empty + self.has_reusable_values + except Exception: + self.validate_called = False + raise + + LABELS: ClassVar[Dict[type, int]] = {} + + @property + def class_label(self): + cls = self.__class__ + try: + return cls.LABELS[cls] + except KeyError: + pass + result = calc_label_from_cls(cls) + cls.LABELS[cls] = result + return result + + @property + def label(self) -> int: + if self.__label is calculating: + return 0 + if self.__label is None: + self.__label = calculating + self.__label = self.calc_label() + return cast(int, self.__label) + + def calc_label(self): + return self.class_label + + def do_validate(self): + pass + + def do_draw(self, data: ConjectureData) -> Ex: + raise NotImplementedError(f"{type(self).__name__}.do_draw") + + def __init__(self): + pass + + +def is_simple_data(value): + try: + hash(value) + return True + except TypeError: + return False + + +class SampledFromStrategy(SearchStrategy): + """A strategy which samples from a set of elements. This is essentially + equivalent to using a OneOfStrategy over Just strategies but may be more + efficient and convenient. + """ + + _MAX_FILTER_CALLS = 10_000 + + def __init__(self, elements, repr_=None, transformations=()): + super().__init__() + self.elements = cu.check_sample(elements, "sampled_from") + assert self.elements + self.repr_ = repr_ + self._transformations = transformations + + def map(self, pack): + return type(self)( + self.elements, + repr_=self.repr_, + transformations=(*self._transformations, ("map", pack)), + ) + + def filter(self, condition): + return type(self)( + self.elements, + repr_=self.repr_, + transformations=(*self._transformations, ("filter", condition)), + ) + + def __repr__(self): + return ( + self.repr_ + or "sampled_from([" + + ", ".join(map(get_pretty_function_description, self.elements)) + + "])" + ) + "".join( + f".{name}({get_pretty_function_description(f)})" + for name, f in self._transformations + ) + + def calc_has_reusable_values(self, recur): + # Because our custom .map/.filter implementations skip the normal + # wrapper strategies (which would automatically return False for us), + # we need to manually return False here if any transformations have + # been applied. + return not self._transformations + + def calc_is_cacheable(self, recur): + return is_simple_data(self.elements) + + def _transform(self, element): + # Used in UniqueSampledListStrategy + for name, f in self._transformations: + if name == "map": + result = f(element) + if build_context := _current_build_context.value: + build_context.record_call(result, f, [element], {}) + element = result + else: + assert name == "filter" + if not f(element): + return filter_not_satisfied + return element + + def do_draw(self, data): + result = self.do_filtered_draw(data) + if isinstance(result, SearchStrategy) and all( + isinstance(x, SearchStrategy) for x in self.elements + ): + data._sampled_from_all_strategies_elements_message = ( + "sample_from was given a collection of strategies: " + "{!r}. Was one_of intended?", + self.elements, + ) + if result is filter_not_satisfied: + data.mark_invalid(f"Aborted test because unable to satisfy {self!r}") + return result + + def get_element(self, i): + return self._transform(self.elements[i]) + + def do_filtered_draw(self, data): + # Set of indices that have been tried so far, so that we never test + # the same element twice during a draw. + known_bad_indices = set() + + # Start with ordinary rejection sampling. It's fast if it works, and + # if it doesn't work then it was only a small amount of overhead. + for _ in range(3): + i = data.draw_integer(0, len(self.elements) - 1) + if i not in known_bad_indices: + element = self.get_element(i) + if element is not filter_not_satisfied: + return element + if not known_bad_indices: + data.events[f"Retried draw from {self!r} to satisfy filter"] = "" + known_bad_indices.add(i) + + # If we've tried all the possible elements, give up now. + max_good_indices = len(self.elements) - len(known_bad_indices) + if not max_good_indices: + return filter_not_satisfied + + # Impose an arbitrary cutoff to prevent us from wasting too much time + # on very large element lists. + max_good_indices = min(max_good_indices, self._MAX_FILTER_CALLS - 3) + + # Before building the list of allowed indices, speculatively choose + # one of them. We don't yet know how many allowed indices there will be, + # so this choice might be out-of-bounds, but that's OK. + speculative_index = data.draw_integer(0, max_good_indices - 1) + + # Calculate the indices of allowed values, so that we can choose one + # of them at random. But if we encounter the speculatively-chosen one, + # just use that and return immediately. Note that we also track the + # allowed elements, in case of .map(some_stateful_function) + allowed = [] + for i in range(min(len(self.elements), self._MAX_FILTER_CALLS - 3)): + if i not in known_bad_indices: + element = self.get_element(i) + if element is not filter_not_satisfied: + allowed.append((i, element)) + if len(allowed) > speculative_index: + # Early-exit case: We reached the speculative index, so + # we just return the corresponding element. + data.draw_integer(0, len(self.elements) - 1, forced=i) + return element + + # The speculative index didn't work out, but at this point we've built + # and can choose from the complete list of allowed indices and elements. + if allowed: + i, element = data.choice(allowed) + data.draw_integer(0, len(self.elements) - 1, forced=i) + return element + # If there are no allowed indices, the filter couldn't be satisfied. + return filter_not_satisfied + + +class OneOfStrategy(SearchStrategy[Ex]): + """Implements a union of strategies. Given a number of strategies this + generates values which could have come from any of them. + + The conditional distribution draws uniformly at random from some + non-empty subset of these strategies and then draws from the + conditional distribution of that strategy. + """ + + def __init__(self, strategies): + super().__init__() + strategies = tuple(strategies) + self.original_strategies = list(strategies) + self.__element_strategies = None + self.__in_branches = False + + def calc_is_empty(self, recur): + return all(recur(e) for e in self.original_strategies) + + def calc_has_reusable_values(self, recur): + return all(recur(e) for e in self.original_strategies) + + def calc_is_cacheable(self, recur): + return all(recur(e) for e in self.original_strategies) + + @property + def element_strategies(self): + if self.__element_strategies is None: + # While strategies are hashable, they use object.__hash__ and are + # therefore distinguished only by identity. + # + # In principle we could "just" define a __hash__ method + # (and __eq__, but that's easy in terms of type() and hash()) + # to make this more powerful, but this is harder than it sounds: + # + # 1. Strategies are often distinguished by non-hashable attributes, + # or by attributes that have the same hash value ("^.+" / b"^.+"). + # 2. LazyStrategy: can't reify the wrapped strategy without breaking + # laziness, so there's a hash each for the lazy and the nonlazy. + # + # Having made several attempts, the minor benefits of making strategies + # hashable are simply not worth the engineering effort it would take. + # See also issues #2291 and #2327. + seen = {self} + strategies = [] + for arg in self.original_strategies: + check_strategy(arg) + if not arg.is_empty: + for s in arg.branches: + if s not in seen and not s.is_empty: + seen.add(s) + strategies.append(s) + self.__element_strategies = strategies + return self.__element_strategies + + def calc_label(self): + return combine_labels( + self.class_label, *(p.label for p in self.original_strategies) + ) + + def do_draw(self, data: ConjectureData) -> Ex: + strategy = data.draw( + SampledFromStrategy(self.element_strategies).filter( + lambda s: s.available(data) + ) + ) + return data.draw(strategy) + + def __repr__(self): + return "one_of(%s)" % ", ".join(map(repr, self.original_strategies)) + + def do_validate(self): + for e in self.element_strategies: + e.validate() + + @property + def branches(self): + if not self.__in_branches: + try: + self.__in_branches = True + return self.element_strategies + finally: + self.__in_branches = False + else: + return [self] + + def filter(self, condition): + return FilteredStrategy( + OneOfStrategy([s.filter(condition) for s in self.original_strategies]), + conditions=(), + ) + + +@overload +def one_of( + __args: Sequence[SearchStrategy[Any]], +) -> SearchStrategy[Any]: # pragma: no cover + ... + + +@overload +def one_of(__a1: SearchStrategy[Ex]) -> SearchStrategy[Ex]: # pragma: no cover + ... + + +@overload +def one_of( + __a1: SearchStrategy[Ex], __a2: SearchStrategy[T] +) -> SearchStrategy[Union[Ex, T]]: # pragma: no cover + ... + + +@overload +def one_of( + __a1: SearchStrategy[Ex], __a2: SearchStrategy[T], __a3: SearchStrategy[T3] +) -> SearchStrategy[Union[Ex, T, T3]]: # pragma: no cover + ... + + +@overload +def one_of( + __a1: SearchStrategy[Ex], + __a2: SearchStrategy[T], + __a3: SearchStrategy[T3], + __a4: SearchStrategy[T4], +) -> SearchStrategy[Union[Ex, T, T3, T4]]: # pragma: no cover + ... + + +@overload +def one_of( + __a1: SearchStrategy[Ex], + __a2: SearchStrategy[T], + __a3: SearchStrategy[T3], + __a4: SearchStrategy[T4], + __a5: SearchStrategy[T5], +) -> SearchStrategy[Union[Ex, T, T3, T4, T5]]: # pragma: no cover + ... + + +@overload +def one_of(*args: SearchStrategy[Any]) -> SearchStrategy[Any]: # pragma: no cover + ... + + +@defines_strategy(never_lazy=True) +def one_of( + *args: Union[Sequence[SearchStrategy[Any]], SearchStrategy[Any]] +) -> SearchStrategy[Any]: + # Mypy workaround alert: Any is too loose above; the return parameter + # should be the union of the input parameters. Unfortunately, Mypy <=0.600 + # raises errors due to incompatible inputs instead. See #1270 for links. + # v0.610 doesn't error; it gets inference wrong for 2+ arguments instead. + """Return a strategy which generates values from any of the argument + strategies. + + This may be called with one iterable argument instead of multiple + strategy arguments, in which case ``one_of(x)`` and ``one_of(*x)`` are + equivalent. + + Examples from this strategy will generally shrink to ones that come from + strategies earlier in the list, then shrink according to behaviour of the + strategy that produced them. In order to get good shrinking behaviour, + try to put simpler strategies first. e.g. ``one_of(none(), text())`` is + better than ``one_of(text(), none())``. + + This is especially important when using recursive strategies. e.g. + ``x = st.deferred(lambda: st.none() | st.tuples(x, x))`` will shrink well, + but ``x = st.deferred(lambda: st.tuples(x, x) | st.none())`` will shrink + very badly indeed. + """ + if len(args) == 1 and not isinstance(args[0], SearchStrategy): + try: + args = tuple(args[0]) + except TypeError: + pass + if len(args) == 1 and isinstance(args[0], SearchStrategy): + # This special-case means that we can one_of over lists of any size + # without incurring any performance overhead when there is only one + # strategy, and keeps our reprs simple. + return args[0] + if args and not any(isinstance(a, SearchStrategy) for a in args): + # And this special case is to give a more-specific error message if it + # seems that the user has confused `one_of()` for `sampled_from()`; + # the remaining validation is left to OneOfStrategy. See PR #2627. + raise InvalidArgument( + f"Did you mean st.sampled_from({list(args)!r})? st.one_of() is used " + "to combine strategies, but all of the arguments were of other types." + ) + return OneOfStrategy(args) + + +class MappedStrategy(SearchStrategy[Ex]): + """A strategy which is defined purely by conversion to and from another + strategy. + + Its parameter and distribution come from that other strategy. + """ + + def __init__(self, strategy, pack): + super().__init__() + self.mapped_strategy = strategy + self.pack = pack + + def calc_is_empty(self, recur): + return recur(self.mapped_strategy) + + def calc_is_cacheable(self, recur): + return recur(self.mapped_strategy) + + def __repr__(self): + if not hasattr(self, "_cached_repr"): + self._cached_repr = f"{self.mapped_strategy!r}.map({get_pretty_function_description(self.pack)})" + return self._cached_repr + + def do_validate(self): + self.mapped_strategy.validate() + + def do_draw(self, data: ConjectureData) -> Any: + with warnings.catch_warnings(): + if isinstance(self.pack, type) and issubclass( + self.pack, (abc.Mapping, abc.Set) + ): + warnings.simplefilter("ignore", BytesWarning) + for _ in range(3): + try: + data.start_example(MAPPED_SEARCH_STRATEGY_DO_DRAW_LABEL) + x = data.draw(self.mapped_strategy) + result = self.pack(x) # type: ignore + data.stop_example() + _current_build_context.value.record_call(result, self.pack, [x], {}) + return result + except UnsatisfiedAssumption: + data.stop_example(discard=True) + raise UnsatisfiedAssumption + + @property + def branches(self) -> List[SearchStrategy[Ex]]: + return [ + MappedStrategy(strategy, pack=self.pack) + for strategy in self.mapped_strategy.branches + ] + + def filter(self, condition: Callable[[Ex], Any]) -> "SearchStrategy[Ex]": + # Includes a special case so that we can rewrite filters on collection + # lengths, when most collections are `st.lists(...).map(the_type)`. + ListStrategy = _list_strategy_type() + if not isinstance(self.mapped_strategy, ListStrategy) or not ( + (isinstance(self.pack, type) and issubclass(self.pack, abc.Collection)) + or self.pack in _collection_ish_functions() + ): + return super().filter(condition) + + # Check whether our inner list strategy can rewrite this filter condition. + # If not, discard the result and _only_ apply a new outer filter. + new = ListStrategy.filter(self.mapped_strategy, condition) + if getattr(new, "filtered_strategy", None) is self.mapped_strategy: + return super().filter(condition) # didn't rewrite + + # Apply a new outer filter even though we rewrote the inner strategy, + # because some collections can change the list length (dict, set, etc). + return FilteredStrategy(type(self)(new, self.pack), conditions=(condition,)) + + +@lru_cache +def _list_strategy_type(): + from hypothesis.strategies._internal.collections import ListStrategy + + return ListStrategy + + +def _collection_ish_functions(): + funcs = [sorted] + if np := sys.modules.get("numpy"): + # c.f. https://numpy.org/doc/stable/reference/routines.array-creation.html + # Probably only `np.array` and `np.asarray` will be used in practice, + # but why should that stop us when we've already gone this far? + funcs += [ + np.empty_like, + np.eye, + np.identity, + np.ones_like, + np.zeros_like, + np.array, + np.asarray, + np.asanyarray, + np.ascontiguousarray, + np.asmatrix, + np.copy, + np.rec.array, + np.rec.fromarrays, + np.rec.fromrecords, + np.diag, + # bonus undocumented functions from tab-completion: + np.asarray_chkfinite, + np.asfarray, + np.asfortranarray, + ] + return funcs + + +filter_not_satisfied = UniqueIdentifier("filter not satisfied") + + +class FilteredStrategy(SearchStrategy[Ex]): + def __init__(self, strategy, conditions): + super().__init__() + if isinstance(strategy, FilteredStrategy): + # Flatten chained filters into a single filter with multiple conditions. + self.flat_conditions = strategy.flat_conditions + conditions + self.filtered_strategy = strategy.filtered_strategy + else: + self.flat_conditions = conditions + self.filtered_strategy = strategy + + assert isinstance(self.flat_conditions, tuple) + assert not isinstance(self.filtered_strategy, FilteredStrategy) + + self.__condition = None + + def calc_is_empty(self, recur): + return recur(self.filtered_strategy) + + def calc_is_cacheable(self, recur): + return recur(self.filtered_strategy) + + def __repr__(self): + if not hasattr(self, "_cached_repr"): + self._cached_repr = "{!r}{}".format( + self.filtered_strategy, + "".join( + f".filter({get_pretty_function_description(cond)})" + for cond in self.flat_conditions + ), + ) + return self._cached_repr + + def do_validate(self): + # Start by validating our inner filtered_strategy. If this was a LazyStrategy, + # validation also reifies it so that subsequent calls to e.g. `.filter()` will + # be passed through. + self.filtered_strategy.validate() + # So now we have a reified inner strategy, we'll replay all our saved + # predicates in case some or all of them can be rewritten. Note that this + # replaces the `fresh` strategy too! + fresh = self.filtered_strategy + for cond in self.flat_conditions: + fresh = fresh.filter(cond) + if isinstance(fresh, FilteredStrategy): + # In this case we have at least some non-rewritten filter predicates, + # so we just re-initialize the strategy. + FilteredStrategy.__init__( + self, fresh.filtered_strategy, fresh.flat_conditions + ) + else: + # But if *all* the predicates were rewritten... well, do_validate() is + # an in-place method so we still just re-initialize the strategy! + FilteredStrategy.__init__(self, fresh, ()) + + def filter(self, condition): + # If we can, it's more efficient to rewrite our strategy to satisfy the + # condition. We therefore exploit the fact that the order of predicates + # doesn't matter (`f(x) and g(x) == g(x) and f(x)`) by attempting to apply + # condition directly to our filtered strategy as the inner-most filter. + out = self.filtered_strategy.filter(condition) + # If it couldn't be rewritten, we'll get a new FilteredStrategy - and then + # combine the conditions of each in our expected newest=last order. + if isinstance(out, FilteredStrategy): + return FilteredStrategy( + out.filtered_strategy, self.flat_conditions + out.flat_conditions + ) + # But if it *could* be rewritten, we can return the more efficient form! + return FilteredStrategy(out, self.flat_conditions) + + @property + def condition(self): + if self.__condition is None: + if len(self.flat_conditions) == 1: + # Avoid an extra indirection in the common case of only one condition. + self.__condition = self.flat_conditions[0] + elif len(self.flat_conditions) == 0: + # Possible, if unlikely, due to filter predicate rewriting + self.__condition = lambda _: True + else: + self.__condition = lambda x: all( + cond(x) for cond in self.flat_conditions + ) + return self.__condition + + def do_draw(self, data: ConjectureData) -> Ex: + result = self.do_filtered_draw(data) + if result is not filter_not_satisfied: + return result + + data.mark_invalid(f"Aborted test because unable to satisfy {self!r}") + raise NotImplementedError("Unreachable, for Mypy") + + def do_filtered_draw(self, data): + for i in range(3): + data.start_example(FILTERED_SEARCH_STRATEGY_DO_DRAW_LABEL) + value = data.draw(self.filtered_strategy) + if self.condition(value): + data.stop_example() + return value + else: + data.stop_example(discard=True) + if i == 0: + data.events[f"Retried draw from {self!r} to satisfy filter"] = "" + + return filter_not_satisfied + + @property + def branches(self) -> List[SearchStrategy[Ex]]: + return [ + FilteredStrategy(strategy=strategy, conditions=self.flat_conditions) + for strategy in self.filtered_strategy.branches + ] + + +@check_function +def check_strategy(arg, name=""): + assert isinstance(name, str) + if not isinstance(arg, SearchStrategy): + hint = "" + if isinstance(arg, (list, tuple)): + hint = ", such as st.sampled_from({}),".format(name or "...") + if name: + name += "=" + raise InvalidArgument( + "Expected a SearchStrategy%s but got %s%r (type=%s)" + % (hint, name, arg, type(arg).__name__) + ) diff --git a/shared/package-files/3e/3ed830545aac090073087ccaf95aa140e753c94f49e12ce243f967c51c0285fb/libarrow_substrait.pxd b/shared/package-files/3e/3ed830545aac090073087ccaf95aa140e753c94f49e12ce243f967c51c0285fb/libarrow_substrait.pxd new file mode 100644 index 0000000000000000000000000000000000000000..865568e2ba6f141c29271527093e33547bafb263 --- /dev/null +++ b/shared/package-files/3e/3ed830545aac090073087ccaf95aa140e753c94f49e12ce243f967c51c0285fb/libarrow_substrait.pxd @@ -0,0 +1,100 @@ +# 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 libcpp.vector cimport vector as std_vector + +from pyarrow.includes.common cimport * +from pyarrow.includes.libarrow cimport * +from pyarrow.includes.libarrow_acero cimport * + +ctypedef CResult[CDeclaration] CNamedTableProvider(const std_vector[c_string]&, const CSchema&) + +cdef extern from "arrow/engine/substrait/options.h" namespace "arrow::engine" nogil: + cdef enum ConversionStrictness \ + "arrow::engine::ConversionStrictness": + EXACT_ROUNDTRIP \ + "arrow::engine::ConversionStrictness::EXACT_ROUNDTRIP" + PRESERVE_STRUCTURE \ + "arrow::engine::ConversionStrictness::PRESERVE_STRUCTURE" + BEST_EFFORT \ + "arrow::engine::ConversionStrictness::BEST_EFFORT" + + cdef cppclass CConversionOptions \ + "arrow::engine::ConversionOptions": + CConversionOptions() + ConversionStrictness strictness + function[CNamedTableProvider] named_table_provider + c_bool allow_arrow_extensions + +cdef extern from "arrow/engine/substrait/extension_set.h" \ + namespace "arrow::engine" nogil: + + cdef struct CSubstraitId "arrow::engine::Id": + cpp_string_view uri + cpp_string_view name + + cdef struct CExtensionSetTypeRecord "arrow::engine::ExtensionSet::TypeRecord": + CSubstraitId id + shared_ptr[CDataType] type + + cdef cppclass CExtensionSet "arrow::engine::ExtensionSet": + CExtensionSet() + unordered_map[uint32_t, cpp_string_view]& uris() + CResult[uint32_t] EncodeType(const CDataType&) + CResult[CExtensionSetTypeRecord] DecodeType(uint32_t) + + cdef cppclass ExtensionIdRegistry: + std_vector[c_string] GetSupportedSubstraitFunctions() + + ExtensionIdRegistry* default_extension_id_registry() + +cdef extern from "arrow/engine/substrait/relation.h" namespace "arrow::engine" nogil: + + cdef cppclass CNamedExpression "arrow::engine::NamedExpression": + CExpression expression + c_string name + + cdef cppclass CBoundExpressions "arrow::engine::BoundExpressions": + std_vector[CNamedExpression] named_expressions + shared_ptr[CSchema] schema + +cdef extern from "arrow/engine/substrait/serde.h" namespace "arrow::engine" nogil: + + CResult[shared_ptr[CBuffer]] SerializeExpressions( + const CBoundExpressions& bound_expressions, const CConversionOptions& conversion_options) + + CResult[CBoundExpressions] DeserializeExpressions( + const CBuffer& serialized_expressions) + + CResult[shared_ptr[CBuffer]] SerializeSchema( + const CSchema &schema, CExtensionSet* extension_set, + const CConversionOptions& conversion_options) + + CResult[shared_ptr[CSchema]] DeserializeSchema( + const CBuffer& serialized_schema, const CExtensionSet& extension_set, + const CConversionOptions& conversion_options) + + +cdef extern from "arrow/engine/substrait/util.h" namespace "arrow::engine" nogil: + CResult[shared_ptr[CRecordBatchReader]] ExecuteSerializedPlan( + const CBuffer& substrait_buffer, const ExtensionIdRegistry* registry, + CFunctionRegistry* func_registry, const CConversionOptions& conversion_options, + c_bool use_threads) + + CResult[shared_ptr[CBuffer]] SerializeJsonPlan(const c_string& substrait_json) diff --git a/shared/package-files/3e/3eddf3a3db60437e3e56841e9043f9c54f4bec3a68fffdc355c963ba2dbf7ed6/load_derivatives.py b/shared/package-files/3e/3eddf3a3db60437e3e56841e9043f9c54f4bec3a68fffdc355c963ba2dbf7ed6/load_derivatives.py new file mode 100644 index 0000000000000000000000000000000000000000..ad05cf187ef5e281e00d66e668d93df9078112b3 --- /dev/null +++ b/shared/package-files/3e/3eddf3a3db60437e3e56841e9043f9c54f4bec3a68fffdc355c963ba2dbf7ed6/load_derivatives.py @@ -0,0 +1,1013 @@ +# Parses derivatives.yaml into autograd functions +# +# Each autograd function is represented by `DifferentiabilityInfo` containing +# a list of `Derivative`. See `torchgen.api.autograd` for the data models. +import re +from collections import defaultdict +from typing import Any, Counter, Dict, List, Match, Optional, Sequence, Set, Tuple + +import yaml +from torchgen.api import cpp + +from torchgen.api.autograd import ( + Derivative, + DifferentiabilityInfo, + ForwardDerivative, + SavedAttribute, +) +from torchgen.api.types import ( + BaseCType, + Binding, + boolT, + CppSignatureGroup, + layoutT, + longT, + NamedCType, + OptionalCType, + scalarTypeT, + SpecialArgName, + stringT, + symIntArrayRefT, + SymIntT, + tensorGeometryT, + tensorOptionsT, + typeAndSizeT, + VectorCType, +) +from torchgen.context import with_native_function +from torchgen.gen import get_grouped_by_view_native_functions, parse_native_yaml +from torchgen.model import ( + AUTOGRAD_KEYS, + FunctionSchema, + NativeFunction, + NativeFunctionsViewGroup, + OperatorName, + SchemaKind, + Type, + Variant, +) +from torchgen.utils import concatMap, IDENT_REGEX, split_name_params +from torchgen.yaml_utils import YamlLoader + +DerivativeRet = Tuple[Dict[FunctionSchema, Dict[str, DifferentiabilityInfo]], Set[str]] + +_GLOBAL_LOAD_DERIVATIVE_CACHE: Dict[Tuple[str, str], DerivativeRet] = {} + +_VALID_AUTOGRAD_KEYS = set(AUTOGRAD_KEYS) + + +# This function directly adds per-dispatchkey derivative entries for {view}_copy variants of each view op. +# Since every {view} and {view}_copy op shares the same derivative formula, +# we generate them here instead of duplicating them in the yaml. +# See Note [Codegen'd {view}_copy Operators] +def add_view_copy_derivatives( + infos: Dict[FunctionSchema, Dict[str, DifferentiabilityInfo]], + view_groups: List[NativeFunctionsViewGroup], +) -> None: + # Get the map from each view op's name to its corresponding view group + view_name_to_group: Dict[OperatorName, NativeFunctionsViewGroup] = { + g.view.func.name: g for g in view_groups + } + + view_infos = {} + + for info_dispatch_dict in infos.values(): + # maybe_view_group only needs to be calculated once per info_dispatch_dict + maybe_view_group = None + view_copy_differentiability_infos = {} + for dispatch_key, info in info_dispatch_dict.items(): + maybe_view_group = view_name_to_group.get(info.func.func.name, None) + if maybe_view_group is not None and maybe_view_group.view_copy is not None: + view_copy_info = info.create_view_copy_from_view_derivative( + maybe_view_group + ) + if view_copy_info is not None: + fn_schema = view_copy_info.func.func + view_copy_differentiability_infos[dispatch_key] = view_copy_info + else: + break + # prefer manually-defined derivatives if any + if len(view_copy_differentiability_infos) > 0 and fn_schema not in infos: + assert fn_schema is not None + view_infos[fn_schema] = view_copy_differentiability_infos + + infos.update(view_infos) + + +def load_derivatives( + derivatives_yaml_path: str, native_yaml_path: str, tags_yaml_path: str +) -> DerivativeRet: + # Do some caching as this is a deterministic function + global _GLOBAL_LOAD_DERIVATIVE_CACHE + key = (derivatives_yaml_path, native_yaml_path) + if key not in _GLOBAL_LOAD_DERIVATIVE_CACHE: + with open(derivatives_yaml_path) as f: + definitions = yaml.load(f, Loader=YamlLoader) + + funcs = parse_native_yaml(native_yaml_path, tags_yaml_path).native_functions + # From the parsed native functions, separate out the (generated) view_copy functions, + # so we can generate derivatives for them separately. + native_functions_with_view_groups = get_grouped_by_view_native_functions(funcs) + native_functions = concatMap( + lambda g: [g] + if isinstance(g, NativeFunction) + else list(g.functions(include_copy=True)), + native_functions_with_view_groups, + ) + view_groups = [ + g + for g in native_functions_with_view_groups + if isinstance(g, NativeFunctionsViewGroup) + ] + + # What's the difference between function schema v.s. signature? + # function schema is the complete declaration including mutability annotation / default value and etc. + # signature is the canonical schema for a group of functions (in-place/out/functional variants) + # that are semantically related. + functions_by_signature: Dict[ + FunctionSchema, List[NativeFunction] + ] = defaultdict(list) + functions_by_schema: Dict[str, NativeFunction] = {} + for function in native_functions: + functions_by_signature[function.func.signature()].append(function) + assert str(function.func) not in functions_by_schema + functions_by_schema[str(function.func)] = function + + # Keep track of how many of which ops we've seen so we can + # disambiguate them with a numeric suffix. + op_counter = Counter[str]() + + # infos is a dict that maps FunctionSchema -> a dict of per dispatch key DifferentiabilityInfos + # this is useful because in tools/autograd/gen_autograd.py:match_differentiability_info + # we ultimately need to categorize the DifferentiabilityInfos by FunctionSchema + infos: Dict[FunctionSchema, Dict[str, DifferentiabilityInfo]] = {} + used_dispatch_keys: Set[str] = set() + for defn_dict in definitions: + # Ensure that the old derivatives.yaml schema with no dispatch key can be loaded. + if "dispatch" not in defn_dict: + specification = defn_dict.pop("name") + output_differentiability = defn_dict.pop( + "output_differentiability", None + ) + defn_dict = {"name": specification, "dispatch": {"Default": defn_dict}} + if output_differentiability: + defn_dict["output_differentiability"] = output_differentiability + name, per_dispatch_diffinfos = create_differentiability_info( + defn_dict, + functions_by_signature, + functions_by_schema, + op_counter, + used_dispatch_keys, + ) + infos[name] = per_dispatch_diffinfos + + add_view_copy_derivatives(infos, view_groups) + + # cache both loaded infos as well a a set of all the dispatch_keys/aliases + # that appear in derivatives.yaml. used_dispatch_keys is useful for generating + # VariableType.cpp where we need a TORCH_LIBRARY_IMPL for every autograd dispatch key used + _GLOBAL_LOAD_DERIVATIVE_CACHE[key] = infos, used_dispatch_keys + + return _GLOBAL_LOAD_DERIVATIVE_CACHE[key] + + +# TODO: Why is this going through CppSignatureGroup, that doesn't make sense... +@with_native_function +def cpp_arguments(f: NativeFunction) -> Sequence[Binding]: + sigs = CppSignatureGroup.from_native_function(f, method=False) + if sigs.symint_signature is not None: + return sigs.symint_signature.arguments() + else: + return sigs.signature.arguments() + + +def create_derivative( + f: NativeFunction, + formula: str, + var_names: Tuple[str, ...], + available_named_gradients: Sequence[str], +) -> Derivative: + original_formula = formula + arguments: List[NamedCType] = [ + a.nctype.remove_const_ref() for a in cpp_arguments(f) + ] + + return_names = tuple(n if n != "self" else "result" for n in cpp.return_names(f)) + return_types = tuple( + cpp.return_type(r, symint=True).remove_const_ref() for r in f.func.returns + ) + + named_returns = [ + NamedCType(name, type) for name, type in zip(return_names, return_types) + ] + + formula, saved_inputs = saved_variables(formula, arguments, var_names) + formula, saved_outputs = saved_variables(formula, named_returns, var_names) + + used_named_gradients = { + name + for name in available_named_gradients + if re.search(IDENT_REGEX.format(name), formula) + } + + # Check that the referenced derivatives in the formula are in bounds + for i in used_gradient_indices(formula): + if i >= len(f.func.returns): + raise RuntimeError( + f"Out of bounds grads access: derivative formula for {cpp.name(f.func)} " + f"used grads[{i}], but the forward only returns {len(f.func.returns)} outputs." + ) + + return Derivative( + formula=formula, + original_formula=original_formula, + var_names=var_names, + saved_inputs=saved_inputs, + saved_outputs=saved_outputs, + named_gradients=used_named_gradients, + ) + + +def create_forward_derivative( + f: NativeFunction, formula: str, names: Tuple[str, ...] +) -> ForwardDerivative: + var_names = names + var_types: Optional[Tuple[Type, ...]] = None + for r in f.func.returns: + if r.name in var_names: + if var_types is None: + var_types = tuple() + var_types = var_types + (r.type,) + + # Handle default return names + if var_types is None: + if var_names == ("result",): + assert len(f.func.returns) == 1 + var_types = (f.func.returns[0].type,) + else: + for var_name in var_names: + res = re.findall(r"^result(\d+)$", var_name) + if len(res) == 1: + if var_types is None: + var_types = tuple() + arg_idx = int(res[0]) + var_types = var_types + (f.func.returns[arg_idx].type,) + + assert var_types is not None, "No matching output for forward derivative definition" + return ForwardDerivative( + formula=formula, + var_names=var_names, + var_types=var_types, + required_inputs_fw_grad=None, + required_inputs_primal=None, + required_original_self_value=False, + is_reusing_outplace_formula=False, + ) + + +def postprocess_forward_derivatives( + f: NativeFunction, + defn_name: str, + all_arg_names: List[str], + derivatives: List[Derivative], + forward_derivatives: List[ForwardDerivative], + args_with_derivatives: Sequence[Binding], +) -> List[ForwardDerivative]: + def find_required_inputs(formula: str, postfix: str) -> Tuple[str, ...]: + is_foreach = f.func.name.name.base.startswith("_foreach_") + required_inputs = set() + for arg in args_with_derivatives: + if ( + arg.type in ("at::TensorList", "const at::ITensorListRef &") + and not is_foreach + ): + # The functions taking TensorList handle everything internally + continue + arg_name = arg.name + + found = re.search(IDENT_REGEX.format(arg_name), formula) + if found: + raise RuntimeError( + f"The forward formula for {defn_name} is using the base name of the {arg_name} " + f"argument which is ambiguous. You should use {arg_name}_p to access the primal " + f"value and {arg_name}_t to access the tangent." + ) + + found = re.search(IDENT_REGEX.format(arg_name + postfix), formula) + if found: + required_inputs.add(arg_name) + + return tuple(required_inputs) + + updated_derivatives: List[ForwardDerivative] = [] + + for defn in forward_derivatives: + formula = defn.formula + required_inputs_tangent = find_required_inputs(formula, "_t") + if formula == "auto_element_wise": + assert ( + f.func.kind() != SchemaKind.inplace + ), f"Cannot use auto_element_wise with {f.func.name} because it is an in-place variant" + if ( + (not len(args_with_derivatives) == 1) + or len(forward_derivatives) > 1 + or len(forward_derivatives[0].var_names) > 1 + ): + raise RuntimeError( + f"Derivative definition of {defn_name} in derivatives.yaml defines the " + "forward definition of gradient as element_wise but this only " + "works for functions with a single differentiable input and a " + "single differentiable output." + ) + if not len(derivatives) == 1: + raise RuntimeError( + f"Derivative definition of {defn_name} in derivatives.yaml defines the " + "forward definition of gradient as element_wise but it does not " + "defines the gradient formula for its argument which is required." + ) + # This transformation is based on the observation that for element-wise functions, the Jacobian + # matrix is diagonal and thus doing J * v is the same as (v^T J)^T (in practice, we ignore the transpositions) + # For the complex case, we use hermitian transpose and get (v.conj() J).conj() + # So here we are going to re-use the backward formula and replace two things: + # 1) all occurrences of "grad" with "foo_t.conj()", where foo is the name of the unique differentiable input. + # 2) all usage of an original input "foo" with its primal value "foo_p". + # 3) conjugate the final result + # For example, for abs, the backward formula is: + # grad * self.sgn() + # And this function generates a forward formula that is: + # (self_t.conj() * self_p.sgn()).conj() + + backward_formula = derivatives[0].original_formula + input_name = args_with_derivatives[0].name + + # Do replacement 1) of the grad + def repl(m: Any) -> str: + return f"{m.group(1)}{input_name}_t.conj(){m.group(2)}" + + fw_formula = re.sub(IDENT_REGEX.format("grad"), repl, backward_formula) + + # Do replacement 2) of the input variables + for arg in args_with_derivatives: + arg_name = arg.name + + def repl(m: Any) -> str: + return f"{m.group(1)}{arg_name}_p{m.group(2)}" + + fw_formula = re.sub(IDENT_REGEX.format(arg_name), repl, fw_formula) + + # Do the final conjugate 3) + fw_formula = f"({fw_formula}).conj()" + + # Since there is a single differentiable inputs and we necessarily need its tangent we can + # simply require all differentiable input's tangent. + required_inputs_tangent = tuple(all_arg_names) + formula = fw_formula + elif formula == "auto_linear": + if ( + len(forward_derivatives) > 1 + or len(forward_derivatives[0].var_names) > 1 + ): + raise RuntimeError( + f"Derivative definition of {defn_name} in derivatives.yaml defines the " + "forward definition of gradient as linear but this only works " + "for functions with a single differentiable output." + ) + # This transformation is based on the observation that linear functions can be written as: + # y = f(x) = A * x + # For some matrix A and the Jacobian of the function f is also A. + # So doing J * v = A * v = f(v). + # Hence to do the jvp, we simply need to evaluate the function at the point v instead of x. + # We do this by calling the forward again by replacing any occurrence of the differentiable + # input "foo" by it's tangent "foo_t". + # Note that multiple inputs are not a problem as long as the function is truly linear wrt to + # the vector where all the differentiable inputs are stacked. + + diff_arg_names = [arg.name for arg in args_with_derivatives] + assert len(diff_arg_names) > 0 + + # Do replacement of input variables + new_args = [] + for arg_name in all_arg_names: + if arg_name in diff_arg_names: + arg_name = arg_name + "_t" + new_args.append(arg_name) + + # TODO we are trolling + if f.func.has_symint(): + defn_name += "_symint" + + # Call into the forward again. We need two cases here to handle both Tensor methods and at:: functions. + if Variant.function in f.variants: + fw_formula = f"at::{defn_name}({', '.join(new_args)})" + else: + assert Variant.method in f.variants + fw_formula = f"{new_args[0]}.{defn_name}({', '.join(new_args[1:])})" + + # All of the input tangents are always used so all of them are required here. + required_inputs_tangent = tuple(diff_arg_names) + formula = fw_formula + + # At this point, the formula is final and is not modified anymore. + + # During forward formula, we use the primal instead of the input Tensors. + # This call inspects the formula to find for which input's primal are used. + required_inputs_primal = find_required_inputs(formula, "_p") + + updated_derivatives.append( + ForwardDerivative( + formula=formula, + var_names=defn.var_names, + var_types=defn.var_types, + required_inputs_fw_grad=required_inputs_tangent, + required_inputs_primal=required_inputs_primal, + required_original_self_value=False, + is_reusing_outplace_formula=False, + ) + ) + + return updated_derivatives + + +def is_forward_derivative_definition( + all_arg_names: List[str], names: Tuple[str, ...] +) -> bool: + for name in names: + if name not in all_arg_names: + return True + else: + return False + raise RuntimeError("Expected `names` to be non-empty") + + +def create_differentiability_info( + defn_dict: Dict[Any, Any], + functions_by_signature: Dict[FunctionSchema, List[NativeFunction]], + functions_by_schema: Dict[str, NativeFunction], + op_counter: Counter[str], + used_dispatch_keys: Set[str], +) -> Tuple[FunctionSchema, Dict[str, DifferentiabilityInfo]]: + """Processes a single entry `defn` in derivatives.yaml""" + + def canonical_function( + functions: Sequence[NativeFunction], name: str + ) -> NativeFunction: + for f in functions: + if ( + not f.func.is_functional_fn() + and not f.func.is_out_fn() + and name == str(f.func.name.name) + ): + return f + # some functions only have in-place variants + assert name + "_" == cpp.name(functions[0].func) + return functions[0] + + def split_names(raw_names: str) -> Tuple[str, ...]: + """Given "foo, bar", return ["foo", "bar"].""" + return tuple(x.strip() for x in raw_names.split(",")) + + def check_grad_usage(defn_name: str, derivatives: Sequence[Derivative]) -> None: + """ + Check for some subtle mistakes one might make when writing derivatives. + These mistakes will compile, but will be latent until a function is + used with double backwards. + """ + + uses_grad = False # true if any derivative uses "grad" + num_grads_uses = 0 # count of uses of "grads" or "grads[INDEX]" + uses_named_grads = False # true if any derivative uses "grad_{name}" + used_grads_indices: List[int] = [] # which indices of grads are used + for d in derivatives: + formula = d.formula + uses_grad = uses_grad or bool( + re.findall(IDENT_REGEX.format("grad"), formula) + ) + num_grads_uses += len(re.findall(IDENT_REGEX.format("grads"), formula)) + uses_named_grads = uses_named_grads or bool(d.named_gradients) + used_grads_indices.extend(used_gradient_indices(formula)) + # This is a basic sanity check: the number of places we see + # "grads" should be no fewer than the number of indices we see + # inside "grads". They may not be equal because we may use + # "grads" without an index. + assert num_grads_uses >= len(used_grads_indices) + # Thus if the number is equal, every use of grads is also + # indexed. + only_used_grads_indices = num_grads_uses == len(used_grads_indices) + + if uses_grad and num_grads_uses > 0: + raise RuntimeError( + f"Derivative definition of {defn_name} in derivatives.yaml illegally " + "mixes use of 'grad' and 'grads'. Consider replacing " + "occurrences of 'grad' with 'grads[0]'" + ) + + if only_used_grads_indices and set(used_grads_indices) == {0}: + raise RuntimeError( + f"Derivative definition of {defn_name} in derivatives.yaml solely " + "refers to 'grads[0]'. If the first output is indeed the " + "only differentiable output, replace 'grads[0]' with 'grad'; " + "otherwise, there is a likely error in your derivatives " + "declaration." + ) + + if uses_named_grads and (uses_grad or num_grads_uses > 0): + raise RuntimeError( + f"Derivative definition of {defn_name} in derivatives.yaml illegally " + 'mixes use of "grad_RETURN_NAME" and "grad" or "grads[x]". Use ' + "only one method for identifying gradients." + ) + + @with_native_function + def set_up_derivatives( + f: NativeFunction, + ) -> Tuple[ + Sequence[Derivative], + Sequence[ForwardDerivative], + Sequence[Binding], + Sequence[str], + Sequence[str], + ]: + # Set up the derivative information + derivatives: List[Derivative] = [] + forward_derivatives: List[ForwardDerivative] = [] + non_differentiable_arg_names: List[str] = [] + args_with_derivatives_set: Set[str] = set() + + all_arg_names = [a.name for a in cpp_arguments(f)] + all_ret_names = [ + r.name for r in f.func.returns + ] # only used for the assert below + # output_differentiability is captured from the enclosed + # scope. Don't modify it. + # + # If it is not present, then no output is explicitly + # undifferentiable. + # + # It may be present and shorter than the length of return + # values. If that's the case, any return value that does not + # have a corresponding entry is considered not differentiable. + differentiability = output_differentiability or [True] * len(f.func.returns) + # A return is available as a named gradient ... + available_named_gradients = [ + f"grad_{ret.name}" + for ret, differentiable in zip(f.func.returns, differentiability) + # if it has not been explicitly made undifferentiable + if differentiable + # and if it has a name + and ret.name is not None + # and if its type is differentiable + and ret.type.is_tensor_like() + ] + + for raw_names in sorted(defn.keys()): + formula = defn[raw_names] + names = split_names(raw_names) + + for name in names: + assert not (name in all_arg_names and name in all_ret_names), ( + f"While processing the derivative formula for '{f.func.name}' wrt '{name}', " + f"expected '{name}' to not be both an input arg and named return. " + ) + + if is_forward_derivative_definition(all_arg_names, names): + forward_derivatives.append(create_forward_derivative(f, formula, names)) + else: + if formula.lower().strip() == "non_differentiable": + non_differentiable_arg_names += names + else: + derivative = create_derivative( + f, formula, names, available_named_gradients + ) + derivatives.append(derivative) + args_with_derivatives_set |= set(names) + + overlap = args_with_derivatives_set.intersection(non_differentiable_arg_names) + if overlap: + raise RuntimeError( + f"derivatives definition for {defn} have overlapped non_differentiable " + f"and differentiable variables: {overlap}" + ) + + # Next, let us determine the list of inputs in order. + # TODO: do we need eagerly calculate and save it here? Can it be derived + # from NativeFunction and `derivatives` on callsites instead? + args_with_derivatives = [ + a for a in cpp_arguments(f) if a.name in args_with_derivatives_set + ] + + # Postprocess forward derivatives definitions now that we know the differentiable arguments + forward_derivatives = postprocess_forward_derivatives( + f, + defn_name, + all_arg_names, + derivatives, + forward_derivatives, + args_with_derivatives, + ) + + # Test to see if the use of 'grads' makes sense. + check_grad_usage(defn_name, derivatives) + + return ( + derivatives, + forward_derivatives, + args_with_derivatives, + non_differentiable_arg_names, + available_named_gradients, + ) + + # NB: Removes 'name' from defn dictionary + specification = defn_dict.pop("name") + defn_name, _ = split_name_params(specification) + # NB: Removes 'output_differentiability' from defn dictionary + # `None` means all differentiable. + output_differentiability = defn_dict.pop("output_differentiability", None) + output_differentiability_conditions = None + if output_differentiability and any( + isinstance(diff, str) for diff in output_differentiability + ): + if len(output_differentiability) != 1: + raise RuntimeError( + f"Not supported: for {specification}," + f"output_differentiability must either be " + f"List[bool] or a List[str] where each str is a " + f"condition. In the case where it is a condition, " + f"we only support single-output functions. " + f"Please file us an issue. " + ) + output_differentiability_conditions = output_differentiability + output_differentiability = [True] + + schema_function = functions_by_schema.get(specification) + if not schema_function: + avail = "\n".join( + k for k, v in functions_by_schema.items() if cpp.name(v.func) == defn_name + ) + raise RuntimeError( + f"could not find ATen function for schema: {specification} " + f". Available signatures:\n{avail}" + ) + + # now map this to the legacy schema; this isn't technically necessary, but we'd need some logic here + # to map in-place schemas to the out-of-place variants. + # TODO: maybe the logic to handle the legacy schema is no longer necessary? + signature = schema_function.func.signature() + functions = functions_by_signature[signature] + if len(functions) == 0: + avail = "\n".join( + str(k) + for k, v in functions_by_signature.items() + if cpp.name(k) == defn_name + ) + raise RuntimeError( + f"could not find ATen function for legacy signature: {signature} " + f"corresponding to schema {specification}. Please report a bug to PyTorch. " + f"Available signatures:\n{avail}" + ) + + canonical = canonical_function(functions, defn_name) + if "grad_input_mask" in (a.name for a in cpp_arguments(canonical)): + raise RuntimeError( + f"Schema for {defn_name} has an argument named grad_input_mask, " + "but this name would be shadowed by our codegen. " + "Please use a different name in native_functions.yaml." + ) + + if "result" in (a.name for a in cpp_arguments(canonical)): + raise RuntimeError( + f"Schema for {defn_name} has an argument named result, " + "but this is only allowed for outputs." + "Please use a different name in native_functions.yaml." + ) + + diffinfo_dict = {} + for key, defn in defn_dict["dispatch"].items(): + if key != "Default" and key not in _VALID_AUTOGRAD_KEYS: + raise RuntimeError( + f"Invalid dispatch key {key} in derivatives.yaml for {specification}," + f" expected key to be one of {_VALID_AUTOGRAD_KEYS}" + ) + if key not in used_dispatch_keys: + used_dispatch_keys.add(key) + + ( + derivatives, + forward_derivatives, + args_with_derivatives, + non_differentiable_arg_names, + available_named_gradients, + ) = set_up_derivatives(canonical) + + used_named_gradients: Set[str] = set() + for d in derivatives: + used_named_gradients |= d.named_gradients + + # only assign an op name if we are actually going to calculate a derivative + op = None + if args_with_derivatives: + op_prefix = _create_op_prefix(defn_name) + if key != "Default": + op_prefix = op_prefix + key + op = f"{op_prefix}{op_counter[op_prefix]}" + op_counter[op_prefix] += 1 + + diffinfo_dict[key] = DifferentiabilityInfo( + name=defn_name, + func=canonical, + op=op, + derivatives=derivatives, + forward_derivatives=forward_derivatives, + all_saved_inputs=dedup_vars( + [v for d in derivatives for v in d.saved_inputs] + ), + all_saved_outputs=dedup_vars( + [v for d in derivatives for v in d.saved_outputs] + ), + available_named_gradients=available_named_gradients, + used_named_gradients=used_named_gradients, + args_with_derivatives=args_with_derivatives, + non_differentiable_arg_names=non_differentiable_arg_names, + output_differentiability=output_differentiability, + output_differentiability_conditions=output_differentiability_conditions, + ) + + return canonical.func, diffinfo_dict + + +GRAD_INDEX_REGEX = r"(?:^|\W)grads\[(\d+)\]" + + +def used_gradient_indices(formula: str) -> List[int]: + """Determine a list of gradient indices (the i in grads[i]) that + are used by the formula. + + >>> used_gradient_indices("foo(grads[0], grads[1])") + [0, 1] + """ + return [int(i) for i in re.findall(GRAD_INDEX_REGEX, formula)] + + +def saved_variables( + formula: str, + nctypes: List[NamedCType], + var_names: Tuple[str, ...], +) -> Tuple[str, Tuple[SavedAttribute, ...]]: + def stride_expr(name: str) -> str: + assert var_names == (name,), ( + 'Replacement for ".strides()" is currently only supported for single derivatives of the same tensor ' + 'that ".strides()" is being called on.' + ) + return f'strides_or_error({name}, "{name}")' + + REPLACEMENTS: List[Tuple[str, Dict[str, Any]]] = [ + # replace self.sym_sizes() with self_sym_sizes + ( + r"{}.sym_sizes\(\)", + { + "suffix": "_sym_sizes", + "nctype": lambda name: NamedCType(name, BaseCType(symIntArrayRefT)), + }, + ), + # replace self->sym_sizes() with self_sym_sizes_opt + ( + r"{}->sym_sizes\(\)", + { + "suffix": "_sym_sizes_opt", + "nctype": lambda name: NamedCType( + name, OptionalCType(BaseCType(symIntArrayRefT)) + ), + "expr": lambda name: f"{name}.has_value() ? c10::optional({name}->sym_sizes()) : c10::nullopt", + }, + ), + # replace self.sym_blocksize() with self_sym_blocksize_opt + ( + r"{}.sym_blocksize\(\)", + { + "suffix": "_self_sym_blocksize_opt", + "nctype": lambda name: NamedCType( + name, OptionalCType(BaseCType(symIntArrayRefT)) + ), + "expr": lambda name: f"at::sparse_csr::getSymIntBlockSize({name})", + }, + ), + # replace self.options() with self_options + ( + r"{}.options\(\)", + { + "suffix": "_options", + "nctype": lambda name: NamedCType(name, BaseCType(tensorOptionsT)), + }, + ), + # replace zeros_like(self) with self_info + ( + r"zeros_like\({}\)", + { + "suffix": "_info", + "nctype": lambda name: NamedCType(name, BaseCType(typeAndSizeT)), + "expr": lambda name: name, # at save-time + "res": lambda name: name + "_info.zeros()", # at eval-time + }, + ), + # replace self.sym_size(2) with self_sym_size_2 + ( + r"{}.sym_size\((-?\w+)\)", + { + "suffix": lambda m: f"_sym_argsize_{m.groups()[0].replace('-', 'minus_')}", + "nctype": lambda name: NamedCType(name, BaseCType(SymIntT)), + }, + ), + # replace self.numel() with self_numel + ( + r"{}.numel\(\)", + { + "suffix": "_numel", + "nctype": lambda name: NamedCType(name, BaseCType(longT)), + }, + ), + # replace self.sym_numel() with self_sym_numel + ( + r"{}.sym_numel\(\)", + { + "suffix": "_sym_numel", + "nctype": lambda name: NamedCType(name, BaseCType(SymIntT)), + }, + ), + # replace to_args_sizes(self) with self_args_sizes + ( + r"to_args_sizes\({}\)", + { + "suffix": "_args_sizes", + "nctype": lambda name: NamedCType( + name, VectorCType(VectorCType(BaseCType(longT))) + ), + }, + ), + # replace to_args_sizes_symint(self) with self_args_sizes + ( + r"to_args_sizes_symint\({}\)", + { + "suffix": "_args_sizes_symint", + "nctype": lambda name: NamedCType( + name, VectorCType(VectorCType(BaseCType(SymIntT))) + ), + }, + ), + # replace to_args_scalartypes(self) with self_args_scalartypes + ( + r"to_args_scalartypes\({}\)", + { + "suffix": "_args_scalartypes", + "nctype": lambda name: NamedCType( + name, VectorCType(BaseCType(scalarTypeT)) + ), + }, + ), + # replace TensorGeometry(self) with self_geometry + ( + r"TensorGeometry\({}\)", + { + "suffix": "_geometry", + "nctype": lambda name: NamedCType(name, BaseCType(tensorGeometryT)), + }, + ), + ( + r"{}.scalar_type\(\)", + { + "suffix": "_scalar_type", + "nctype": lambda name: NamedCType(name, BaseCType(scalarTypeT)), + }, + ), + # replace self.dim() with self_dim + ( + r"{}.dim\(\)", + { + "suffix": "_dim", + "nctype": lambda name: NamedCType(name, BaseCType(longT)), + }, + ), + # replace self.sym_strides() with self_sym_strides + ( + r"{}.sym_strides\(\)", + { + "suffix": "_sym_strides", + "nctype": lambda name: NamedCType(name, BaseCType(symIntArrayRefT)), + "expr": stride_expr, + }, + ), + # replace self.layout() with self_layout + ( + r"{}.layout\(\)", + { + "suffix": "_layout", + "nctype": lambda name: NamedCType(name, BaseCType(layoutT)), + }, + ), + # replace self.is_conj() with self_conjugate + ( + r"{}.is_conj\(\)", + { + "suffix": "_conjugate", + "nctype": lambda name: NamedCType(name, BaseCType(boolT)), + }, + ), + ] + + # find which arguments need to be saved + saved: List[SavedAttribute] = [] + + if ".sizes()" in formula or "->sizes()" in formula: + raise RuntimeError( + ".sizes() is not supported in derivative formulas. Instead, please use the SymInt version," + + f".sym_sizes(), which returned a c10::SymIntArrayRef. formula={formula}" + ) + if re.search(r"\.size\([-]?\d+\)", formula) or re.search( + r"->size\([-]?\d+\)", formula + ): + raise RuntimeError( + ".size(int) is not supported in derivative formulas. Instead, please use the SymInt version," + + f".sym_size(int), which returned a c10::SymIntArrayRef. formula={formula}" + ) + if ".strides()" in formula or "->strides()" in formula: + raise RuntimeError( + ".strides() is not supported in derivative formulas. Instead, please use the SymInt version," + + f".sym_strides(), which returned a c10::SymIntArrayRef. formula={formula}" + ) + for nctype in nctypes: + name = ( + nctype.name.name if isinstance(nctype.name, SpecialArgName) else nctype.name + ) + # First search the formula for expressions which can be evaluated + # when the autograd Function is created to avoid saving variables + for regex, info in REPLACEMENTS: + + def repl(m: Match[str]) -> str: + suffix: str = ( + info["suffix"](m) if callable(info["suffix"]) else info["suffix"] + ) + expr: str = info["expr"](name) if "expr" in info else m.group(0) + saved.append( + SavedAttribute( + nctype=info["nctype"](name + suffix), + expr=expr, + ) + ) + if "res" in info: + replacement: str = info["res"](name) + return replacement + return name + suffix + + formula = re.sub(regex.format(name), repl, formula) + + # c10::optional types stored in Backward nodes must be + # converted to c10::optional before being passed into + # the backward function + if nctype.type == OptionalCType(BaseCType(stringT)): + formula = re.sub( + rf"\b{name}\b", + f"{name}.has_value() ? c10::optional({name}.value()) : c10::nullopt", + formula, + ) + + # Find any variables which remain in the formula and save them + if re.search(IDENT_REGEX.format(name), formula): + saved.append( + SavedAttribute( + nctype=nctype, + expr=name, + ) + ) + + return formula, tuple(saved) + + +def _create_op_prefix(name: str) -> str: + """Takes a native function name converts to a op prefix name. + + Note that the "name" parameter must be the native function name + without the optional variant suffix, so "add" instead of + "add.out". + + OP names correspond to classes, hence the change to title case. + + Example:: + >>> _create_op_prefix('add') + 'AddBackward' + """ + camel_case = "".join([p.title() for p in name.split("_")]) + return (camel_case + "Backward").replace("ForwardBackward", "Backward") + + +def dedup_vars(vars: Sequence[SavedAttribute]) -> Sequence[SavedAttribute]: + seen: Set[str] = set() + saved: List[SavedAttribute] = [] + for var in vars: + name = ( + var.nctype.name.name + if isinstance(var.nctype.name, SpecialArgName) + else var.nctype.name + ) + if name in seen: + continue + seen.add(name) + saved.append(var) + return saved diff --git a/shared/package-files/3e/3ee51aaf39155ebc1d60117aa4aa8a6d1c3f194b97758b123e83689a0483cb37/test_clip.py b/shared/package-files/3e/3ee51aaf39155ebc1d60117aa4aa8a6d1c3f194b97758b123e83689a0483cb37/test_clip.py new file mode 100644 index 0000000000000000000000000000000000000000..5bbf35f6e39bb237ef1a3853403d47f1fed5b3de --- /dev/null +++ b/shared/package-files/3e/3ee51aaf39155ebc1d60117aa4aa8a6d1c3f194b97758b123e83689a0483cb37/test_clip.py @@ -0,0 +1,146 @@ +from datetime import datetime + +import numpy as np +import pytest + +import pandas as pd +from pandas import ( + Series, + Timestamp, + isna, + notna, +) +import pandas._testing as tm + + +class TestSeriesClip: + def test_clip(self, datetime_series): + val = datetime_series.median() + + assert datetime_series.clip(lower=val).min() == val + assert datetime_series.clip(upper=val).max() == val + + result = datetime_series.clip(-0.5, 0.5) + expected = np.clip(datetime_series, -0.5, 0.5) + tm.assert_series_equal(result, expected) + assert isinstance(expected, Series) + + def test_clip_types_and_nulls(self): + sers = [ + Series([np.nan, 1.0, 2.0, 3.0]), + Series([None, "a", "b", "c"]), + Series(pd.to_datetime([np.nan, 1, 2, 3], unit="D")), + ] + + for s in sers: + thresh = s[2] + lower = s.clip(lower=thresh) + upper = s.clip(upper=thresh) + assert lower[notna(lower)].min() == thresh + assert upper[notna(upper)].max() == thresh + assert list(isna(s)) == list(isna(lower)) + assert list(isna(s)) == list(isna(upper)) + + def test_series_clipping_with_na_values(self, any_numeric_ea_dtype, nulls_fixture): + # Ensure that clipping method can handle NA values with out failing + # GH#40581 + + if nulls_fixture is pd.NaT: + # constructor will raise, see + # test_constructor_mismatched_null_nullable_dtype + pytest.skip("See test_constructor_mismatched_null_nullable_dtype") + + ser = Series([nulls_fixture, 1.0, 3.0], dtype=any_numeric_ea_dtype) + s_clipped_upper = ser.clip(upper=2.0) + s_clipped_lower = ser.clip(lower=2.0) + + expected_upper = Series([nulls_fixture, 1.0, 2.0], dtype=any_numeric_ea_dtype) + expected_lower = Series([nulls_fixture, 2.0, 3.0], dtype=any_numeric_ea_dtype) + + tm.assert_series_equal(s_clipped_upper, expected_upper) + tm.assert_series_equal(s_clipped_lower, expected_lower) + + def test_clip_with_na_args(self): + """Should process np.nan argument as None""" + # GH#17276 + s = Series([1, 2, 3]) + + tm.assert_series_equal(s.clip(np.nan), Series([1, 2, 3])) + tm.assert_series_equal(s.clip(upper=np.nan, lower=np.nan), Series([1, 2, 3])) + + # GH#19992 + 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): + res = s.clip(lower=[0, 4, np.nan]) + tm.assert_series_equal(res, Series([1, 4, 3])) + with tm.assert_produces_warning(FutureWarning, match=msg): + res = s.clip(upper=[1, np.nan, 1]) + tm.assert_series_equal(res, Series([1, 2, 1])) + + # GH#40420 + s = Series([1, 2, 3]) + result = s.clip(0, [np.nan, np.nan, np.nan]) + tm.assert_series_equal(s, result) + + def test_clip_against_series(self): + # GH#6966 + + s = Series([1.0, 1.0, 4.0]) + + lower = Series([1.0, 2.0, 3.0]) + upper = Series([1.5, 2.5, 3.5]) + + tm.assert_series_equal(s.clip(lower, upper), Series([1.0, 2.0, 3.5])) + tm.assert_series_equal(s.clip(1.5, upper), Series([1.5, 1.5, 3.5])) + + @pytest.mark.parametrize("inplace", [True, False]) + @pytest.mark.parametrize("upper", [[1, 2, 3], np.asarray([1, 2, 3])]) + def test_clip_against_list_like(self, inplace, upper): + # GH#15390 + original = Series([5, 6, 7]) + result = original.clip(upper=upper, inplace=inplace) + expected = Series([1, 2, 3]) + + if inplace: + result = original + tm.assert_series_equal(result, expected, check_exact=True) + + def test_clip_with_datetimes(self): + # GH#11838 + # naive and tz-aware datetimes + + t = Timestamp("2015-12-01 09:30:30") + s = Series([Timestamp("2015-12-01 09:30:00"), Timestamp("2015-12-01 09:31:00")]) + result = s.clip(upper=t) + expected = Series( + [Timestamp("2015-12-01 09:30:00"), Timestamp("2015-12-01 09:30:30")] + ) + tm.assert_series_equal(result, expected) + + t = Timestamp("2015-12-01 09:30:30", tz="US/Eastern") + s = Series( + [ + Timestamp("2015-12-01 09:30:00", tz="US/Eastern"), + Timestamp("2015-12-01 09:31:00", tz="US/Eastern"), + ] + ) + result = s.clip(upper=t) + expected = Series( + [ + Timestamp("2015-12-01 09:30:00", tz="US/Eastern"), + Timestamp("2015-12-01 09:30:30", tz="US/Eastern"), + ] + ) + tm.assert_series_equal(result, expected) + + @pytest.mark.parametrize("dtype", [object, "M8[us]"]) + def test_clip_with_timestamps_and_oob_datetimes(self, dtype): + # GH-42794 + ser = Series([datetime(1, 1, 1), datetime(9999, 9, 9)], dtype=dtype) + + result = ser.clip(lower=Timestamp.min, upper=Timestamp.max) + expected = Series([Timestamp.min, Timestamp.max], dtype=dtype) + + tm.assert_series_equal(result, expected) diff --git a/shared/package-files/3e/3ee608024529cf8bb86a2523bdd5799e321f1b427f31063da4cd98cf78f7297b/_cm.py b/shared/package-files/3e/3ee608024529cf8bb86a2523bdd5799e321f1b427f31063da4cd98cf78f7297b/_cm.py new file mode 100644 index 0000000000000000000000000000000000000000..b942d1697934789f26c522b3e7592671540919a6 --- /dev/null +++ b/shared/package-files/3e/3ee608024529cf8bb86a2523bdd5799e321f1b427f31063da4cd98cf78f7297b/_cm.py @@ -0,0 +1,1460 @@ +""" +Nothing here but dictionaries for generating LinearSegmentedColormaps, +and a dictionary of these dictionaries. + +Documentation for each is in pyplot.colormaps(). Please update this +with the purpose and type of your colormap if you add data for one here. +""" + +from functools import partial + +import numpy as np + +_binary_data = { + 'red': ((0., 1., 1.), (1., 0., 0.)), + 'green': ((0., 1., 1.), (1., 0., 0.)), + 'blue': ((0., 1., 1.), (1., 0., 0.)) + } + +_autumn_data = {'red': ((0., 1.0, 1.0), (1.0, 1.0, 1.0)), + 'green': ((0., 0., 0.), (1.0, 1.0, 1.0)), + 'blue': ((0., 0., 0.), (1.0, 0., 0.))} + +_bone_data = {'red': ((0., 0., 0.), + (0.746032, 0.652778, 0.652778), + (1.0, 1.0, 1.0)), + 'green': ((0., 0., 0.), + (0.365079, 0.319444, 0.319444), + (0.746032, 0.777778, 0.777778), + (1.0, 1.0, 1.0)), + 'blue': ((0., 0., 0.), + (0.365079, 0.444444, 0.444444), + (1.0, 1.0, 1.0))} + +_cool_data = {'red': ((0., 0., 0.), (1.0, 1.0, 1.0)), + 'green': ((0., 1., 1.), (1.0, 0., 0.)), + 'blue': ((0., 1., 1.), (1.0, 1., 1.))} + +_copper_data = {'red': ((0., 0., 0.), + (0.809524, 1.000000, 1.000000), + (1.0, 1.0, 1.0)), + 'green': ((0., 0., 0.), + (1.0, 0.7812, 0.7812)), + 'blue': ((0., 0., 0.), + (1.0, 0.4975, 0.4975))} + +def _flag_red(x): return 0.75 * np.sin((x * 31.5 + 0.25) * np.pi) + 0.5 +def _flag_green(x): return np.sin(x * 31.5 * np.pi) +def _flag_blue(x): return 0.75 * np.sin((x * 31.5 - 0.25) * np.pi) + 0.5 +_flag_data = {'red': _flag_red, 'green': _flag_green, 'blue': _flag_blue} + +def _prism_red(x): return 0.75 * np.sin((x * 20.9 + 0.25) * np.pi) + 0.67 +def _prism_green(x): return 0.75 * np.sin((x * 20.9 - 0.25) * np.pi) + 0.33 +def _prism_blue(x): return -1.1 * np.sin((x * 20.9) * np.pi) +_prism_data = {'red': _prism_red, 'green': _prism_green, 'blue': _prism_blue} + +def _ch_helper(gamma, s, r, h, p0, p1, x): + """Helper function for generating picklable cubehelix colormaps.""" + # Apply gamma factor to emphasise low or high intensity values + xg = x ** gamma + # Calculate amplitude and angle of deviation from the black to white + # diagonal in the plane of constant perceived intensity. + a = h * xg * (1 - xg) / 2 + phi = 2 * np.pi * (s / 3 + r * x) + return xg + a * (p0 * np.cos(phi) + p1 * np.sin(phi)) + +def cubehelix(gamma=1.0, s=0.5, r=-1.5, h=1.0): + """ + Return custom data dictionary of (r, g, b) conversion functions, which can + be used with `.ColormapRegistry.register`, for the cubehelix color scheme. + + Unlike most other color schemes cubehelix was designed by D.A. Green to + be monotonically increasing in terms of perceived brightness. + Also, when printed on a black and white postscript printer, the scheme + results in a greyscale with monotonically increasing brightness. + This color scheme is named cubehelix because the (r, g, b) values produced + can be visualised as a squashed helix around the diagonal in the + (r, g, b) color cube. + + For a unit color cube (i.e. 3D coordinates for (r, g, b) each in the + range 0 to 1) the color scheme starts at (r, g, b) = (0, 0, 0), i.e. black, + and finishes at (r, g, b) = (1, 1, 1), i.e. white. For some fraction *x*, + between 0 and 1, the color is the corresponding grey value at that + fraction along the black to white diagonal (x, x, x) plus a color + element. This color element is calculated in a plane of constant + perceived intensity and controlled by the following parameters. + + Parameters + ---------- + gamma : float, default: 1 + Gamma factor emphasizing either low intensity values (gamma < 1), or + high intensity values (gamma > 1). + s : float, default: 0.5 (purple) + The starting color. + r : float, default: -1.5 + The number of r, g, b rotations in color that are made from the start + to the end of the color scheme. The default of -1.5 corresponds to -> + B -> G -> R -> B. + h : float, default: 1 + The hue, i.e. how saturated the colors are. If this parameter is zero + then the color scheme is purely a greyscale. + """ + return {'red': partial(_ch_helper, gamma, s, r, h, -0.14861, 1.78277), + 'green': partial(_ch_helper, gamma, s, r, h, -0.29227, -0.90649), + 'blue': partial(_ch_helper, gamma, s, r, h, 1.97294, 0.0)} + +_cubehelix_data = cubehelix() + +_bwr_data = ((0.0, 0.0, 1.0), (1.0, 1.0, 1.0), (1.0, 0.0, 0.0)) +_brg_data = ((0.0, 0.0, 1.0), (1.0, 0.0, 0.0), (0.0, 1.0, 0.0)) + +# Gnuplot palette functions +def _g0(x): return 0 +def _g1(x): return 0.5 +def _g2(x): return 1 +def _g3(x): return x +def _g4(x): return x ** 2 +def _g5(x): return x ** 3 +def _g6(x): return x ** 4 +def _g7(x): return np.sqrt(x) +def _g8(x): return np.sqrt(np.sqrt(x)) +def _g9(x): return np.sin(x * np.pi / 2) +def _g10(x): return np.cos(x * np.pi / 2) +def _g11(x): return np.abs(x - 0.5) +def _g12(x): return (2 * x - 1) ** 2 +def _g13(x): return np.sin(x * np.pi) +def _g14(x): return np.abs(np.cos(x * np.pi)) +def _g15(x): return np.sin(x * 2 * np.pi) +def _g16(x): return np.cos(x * 2 * np.pi) +def _g17(x): return np.abs(np.sin(x * 2 * np.pi)) +def _g18(x): return np.abs(np.cos(x * 2 * np.pi)) +def _g19(x): return np.abs(np.sin(x * 4 * np.pi)) +def _g20(x): return np.abs(np.cos(x * 4 * np.pi)) +def _g21(x): return 3 * x +def _g22(x): return 3 * x - 1 +def _g23(x): return 3 * x - 2 +def _g24(x): return np.abs(3 * x - 1) +def _g25(x): return np.abs(3 * x - 2) +def _g26(x): return (3 * x - 1) / 2 +def _g27(x): return (3 * x - 2) / 2 +def _g28(x): return np.abs((3 * x - 1) / 2) +def _g29(x): return np.abs((3 * x - 2) / 2) +def _g30(x): return x / 0.32 - 0.78125 +def _g31(x): return 2 * x - 0.84 +def _g32(x): + ret = np.zeros(len(x)) + m = (x < 0.25) + ret[m] = 4 * x[m] + m = (x >= 0.25) & (x < 0.92) + ret[m] = -2 * x[m] + 1.84 + m = (x >= 0.92) + ret[m] = x[m] / 0.08 - 11.5 + return ret +def _g33(x): return np.abs(2 * x - 0.5) +def _g34(x): return 2 * x +def _g35(x): return 2 * x - 0.5 +def _g36(x): return 2 * x - 1 + +gfunc = {i: globals()[f"_g{i}"] for i in range(37)} + +_gnuplot_data = { + 'red': gfunc[7], + 'green': gfunc[5], + 'blue': gfunc[15], +} + +_gnuplot2_data = { + 'red': gfunc[30], + 'green': gfunc[31], + 'blue': gfunc[32], +} + +_ocean_data = { + 'red': gfunc[23], + 'green': gfunc[28], + 'blue': gfunc[3], +} + +_afmhot_data = { + 'red': gfunc[34], + 'green': gfunc[35], + 'blue': gfunc[36], +} + +_rainbow_data = { + 'red': gfunc[33], + 'green': gfunc[13], + 'blue': gfunc[10], +} + +_seismic_data = ( + (0.0, 0.0, 0.3), (0.0, 0.0, 1.0), + (1.0, 1.0, 1.0), (1.0, 0.0, 0.0), + (0.5, 0.0, 0.0)) + +_terrain_data = ( + (0.00, (0.2, 0.2, 0.6)), + (0.15, (0.0, 0.6, 1.0)), + (0.25, (0.0, 0.8, 0.4)), + (0.50, (1.0, 1.0, 0.6)), + (0.75, (0.5, 0.36, 0.33)), + (1.00, (1.0, 1.0, 1.0))) + +_gray_data = {'red': ((0., 0, 0), (1., 1, 1)), + 'green': ((0., 0, 0), (1., 1, 1)), + 'blue': ((0., 0, 0), (1., 1, 1))} + +_hot_data = {'red': ((0., 0.0416, 0.0416), + (0.365079, 1.000000, 1.000000), + (1.0, 1.0, 1.0)), + 'green': ((0., 0., 0.), + (0.365079, 0.000000, 0.000000), + (0.746032, 1.000000, 1.000000), + (1.0, 1.0, 1.0)), + 'blue': ((0., 0., 0.), + (0.746032, 0.000000, 0.000000), + (1.0, 1.0, 1.0))} + +_hsv_data = {'red': ((0., 1., 1.), + (0.158730, 1.000000, 1.000000), + (0.174603, 0.968750, 0.968750), + (0.333333, 0.031250, 0.031250), + (0.349206, 0.000000, 0.000000), + (0.666667, 0.000000, 0.000000), + (0.682540, 0.031250, 0.031250), + (0.841270, 0.968750, 0.968750), + (0.857143, 1.000000, 1.000000), + (1.0, 1.0, 1.0)), + 'green': ((0., 0., 0.), + (0.158730, 0.937500, 0.937500), + (0.174603, 1.000000, 1.000000), + (0.507937, 1.000000, 1.000000), + (0.666667, 0.062500, 0.062500), + (0.682540, 0.000000, 0.000000), + (1.0, 0., 0.)), + 'blue': ((0., 0., 0.), + (0.333333, 0.000000, 0.000000), + (0.349206, 0.062500, 0.062500), + (0.507937, 1.000000, 1.000000), + (0.841270, 1.000000, 1.000000), + (0.857143, 0.937500, 0.937500), + (1.0, 0.09375, 0.09375))} + +_jet_data = {'red': ((0.00, 0, 0), + (0.35, 0, 0), + (0.66, 1, 1), + (0.89, 1, 1), + (1.00, 0.5, 0.5)), + 'green': ((0.000, 0, 0), + (0.125, 0, 0), + (0.375, 1, 1), + (0.640, 1, 1), + (0.910, 0, 0), + (1.000, 0, 0)), + 'blue': ((0.00, 0.5, 0.5), + (0.11, 1, 1), + (0.34, 1, 1), + (0.65, 0, 0), + (1.00, 0, 0))} + +_pink_data = {'red': ((0., 0.1178, 0.1178), (0.015873, 0.195857, 0.195857), + (0.031746, 0.250661, 0.250661), + (0.047619, 0.295468, 0.295468), + (0.063492, 0.334324, 0.334324), + (0.079365, 0.369112, 0.369112), + (0.095238, 0.400892, 0.400892), + (0.111111, 0.430331, 0.430331), + (0.126984, 0.457882, 0.457882), + (0.142857, 0.483867, 0.483867), + (0.158730, 0.508525, 0.508525), + (0.174603, 0.532042, 0.532042), + (0.190476, 0.554563, 0.554563), + (0.206349, 0.576204, 0.576204), + (0.222222, 0.597061, 0.597061), + (0.238095, 0.617213, 0.617213), + (0.253968, 0.636729, 0.636729), + (0.269841, 0.655663, 0.655663), + (0.285714, 0.674066, 0.674066), + (0.301587, 0.691980, 0.691980), + (0.317460, 0.709441, 0.709441), + (0.333333, 0.726483, 0.726483), + (0.349206, 0.743134, 0.743134), + (0.365079, 0.759421, 0.759421), + (0.380952, 0.766356, 0.766356), + (0.396825, 0.773229, 0.773229), + (0.412698, 0.780042, 0.780042), + (0.428571, 0.786796, 0.786796), + (0.444444, 0.793492, 0.793492), + (0.460317, 0.800132, 0.800132), + (0.476190, 0.806718, 0.806718), + (0.492063, 0.813250, 0.813250), + (0.507937, 0.819730, 0.819730), + (0.523810, 0.826160, 0.826160), + (0.539683, 0.832539, 0.832539), + (0.555556, 0.838870, 0.838870), + (0.571429, 0.845154, 0.845154), + (0.587302, 0.851392, 0.851392), + (0.603175, 0.857584, 0.857584), + (0.619048, 0.863731, 0.863731), + (0.634921, 0.869835, 0.869835), + (0.650794, 0.875897, 0.875897), + (0.666667, 0.881917, 0.881917), + (0.682540, 0.887896, 0.887896), + (0.698413, 0.893835, 0.893835), + (0.714286, 0.899735, 0.899735), + (0.730159, 0.905597, 0.905597), + (0.746032, 0.911421, 0.911421), + (0.761905, 0.917208, 0.917208), + (0.777778, 0.922958, 0.922958), + (0.793651, 0.928673, 0.928673), + (0.809524, 0.934353, 0.934353), + (0.825397, 0.939999, 0.939999), + (0.841270, 0.945611, 0.945611), + (0.857143, 0.951190, 0.951190), + (0.873016, 0.956736, 0.956736), + (0.888889, 0.962250, 0.962250), + (0.904762, 0.967733, 0.967733), + (0.920635, 0.973185, 0.973185), + (0.936508, 0.978607, 0.978607), + (0.952381, 0.983999, 0.983999), + (0.968254, 0.989361, 0.989361), + (0.984127, 0.994695, 0.994695), (1.0, 1.0, 1.0)), + 'green': ((0., 0., 0.), (0.015873, 0.102869, 0.102869), + (0.031746, 0.145479, 0.145479), + (0.047619, 0.178174, 0.178174), + (0.063492, 0.205738, 0.205738), + (0.079365, 0.230022, 0.230022), + (0.095238, 0.251976, 0.251976), + (0.111111, 0.272166, 0.272166), + (0.126984, 0.290957, 0.290957), + (0.142857, 0.308607, 0.308607), + (0.158730, 0.325300, 0.325300), + (0.174603, 0.341178, 0.341178), + (0.190476, 0.356348, 0.356348), + (0.206349, 0.370899, 0.370899), + (0.222222, 0.384900, 0.384900), + (0.238095, 0.398410, 0.398410), + (0.253968, 0.411476, 0.411476), + (0.269841, 0.424139, 0.424139), + (0.285714, 0.436436, 0.436436), + (0.301587, 0.448395, 0.448395), + (0.317460, 0.460044, 0.460044), + (0.333333, 0.471405, 0.471405), + (0.349206, 0.482498, 0.482498), + (0.365079, 0.493342, 0.493342), + (0.380952, 0.517549, 0.517549), + (0.396825, 0.540674, 0.540674), + (0.412698, 0.562849, 0.562849), + (0.428571, 0.584183, 0.584183), + (0.444444, 0.604765, 0.604765), + (0.460317, 0.624669, 0.624669), + (0.476190, 0.643958, 0.643958), + (0.492063, 0.662687, 0.662687), + (0.507937, 0.680900, 0.680900), + (0.523810, 0.698638, 0.698638), + (0.539683, 0.715937, 0.715937), + (0.555556, 0.732828, 0.732828), + (0.571429, 0.749338, 0.749338), + (0.587302, 0.765493, 0.765493), + (0.603175, 0.781313, 0.781313), + (0.619048, 0.796819, 0.796819), + (0.634921, 0.812029, 0.812029), + (0.650794, 0.826960, 0.826960), + (0.666667, 0.841625, 0.841625), + (0.682540, 0.856040, 0.856040), + (0.698413, 0.870216, 0.870216), + (0.714286, 0.884164, 0.884164), + (0.730159, 0.897896, 0.897896), + (0.746032, 0.911421, 0.911421), + (0.761905, 0.917208, 0.917208), + (0.777778, 0.922958, 0.922958), + (0.793651, 0.928673, 0.928673), + (0.809524, 0.934353, 0.934353), + (0.825397, 0.939999, 0.939999), + (0.841270, 0.945611, 0.945611), + (0.857143, 0.951190, 0.951190), + (0.873016, 0.956736, 0.956736), + (0.888889, 0.962250, 0.962250), + (0.904762, 0.967733, 0.967733), + (0.920635, 0.973185, 0.973185), + (0.936508, 0.978607, 0.978607), + (0.952381, 0.983999, 0.983999), + (0.968254, 0.989361, 0.989361), + (0.984127, 0.994695, 0.994695), (1.0, 1.0, 1.0)), + 'blue': ((0., 0., 0.), (0.015873, 0.102869, 0.102869), + (0.031746, 0.145479, 0.145479), + (0.047619, 0.178174, 0.178174), + (0.063492, 0.205738, 0.205738), + (0.079365, 0.230022, 0.230022), + (0.095238, 0.251976, 0.251976), + (0.111111, 0.272166, 0.272166), + (0.126984, 0.290957, 0.290957), + (0.142857, 0.308607, 0.308607), + (0.158730, 0.325300, 0.325300), + (0.174603, 0.341178, 0.341178), + (0.190476, 0.356348, 0.356348), + (0.206349, 0.370899, 0.370899), + (0.222222, 0.384900, 0.384900), + (0.238095, 0.398410, 0.398410), + (0.253968, 0.411476, 0.411476), + (0.269841, 0.424139, 0.424139), + (0.285714, 0.436436, 0.436436), + (0.301587, 0.448395, 0.448395), + (0.317460, 0.460044, 0.460044), + (0.333333, 0.471405, 0.471405), + (0.349206, 0.482498, 0.482498), + (0.365079, 0.493342, 0.493342), + (0.380952, 0.503953, 0.503953), + (0.396825, 0.514344, 0.514344), + (0.412698, 0.524531, 0.524531), + (0.428571, 0.534522, 0.534522), + (0.444444, 0.544331, 0.544331), + (0.460317, 0.553966, 0.553966), + (0.476190, 0.563436, 0.563436), + (0.492063, 0.572750, 0.572750), + (0.507937, 0.581914, 0.581914), + (0.523810, 0.590937, 0.590937), + (0.539683, 0.599824, 0.599824), + (0.555556, 0.608581, 0.608581), + (0.571429, 0.617213, 0.617213), + (0.587302, 0.625727, 0.625727), + (0.603175, 0.634126, 0.634126), + (0.619048, 0.642416, 0.642416), + (0.634921, 0.650600, 0.650600), + (0.650794, 0.658682, 0.658682), + (0.666667, 0.666667, 0.666667), + (0.682540, 0.674556, 0.674556), + (0.698413, 0.682355, 0.682355), + (0.714286, 0.690066, 0.690066), + (0.730159, 0.697691, 0.697691), + (0.746032, 0.705234, 0.705234), + (0.761905, 0.727166, 0.727166), + (0.777778, 0.748455, 0.748455), + (0.793651, 0.769156, 0.769156), + (0.809524, 0.789314, 0.789314), + (0.825397, 0.808969, 0.808969), + (0.841270, 0.828159, 0.828159), + (0.857143, 0.846913, 0.846913), + (0.873016, 0.865261, 0.865261), + (0.888889, 0.883229, 0.883229), + (0.904762, 0.900837, 0.900837), + (0.920635, 0.918109, 0.918109), + (0.936508, 0.935061, 0.935061), + (0.952381, 0.951711, 0.951711), + (0.968254, 0.968075, 0.968075), + (0.984127, 0.984167, 0.984167), (1.0, 1.0, 1.0))} + +_spring_data = {'red': ((0., 1., 1.), (1.0, 1.0, 1.0)), + 'green': ((0., 0., 0.), (1.0, 1.0, 1.0)), + 'blue': ((0., 1., 1.), (1.0, 0.0, 0.0))} + + +_summer_data = {'red': ((0., 0., 0.), (1.0, 1.0, 1.0)), + 'green': ((0., 0.5, 0.5), (1.0, 1.0, 1.0)), + 'blue': ((0., 0.4, 0.4), (1.0, 0.4, 0.4))} + + +_winter_data = {'red': ((0., 0., 0.), (1.0, 0.0, 0.0)), + 'green': ((0., 0., 0.), (1.0, 1.0, 1.0)), + 'blue': ((0., 1., 1.), (1.0, 0.5, 0.5))} + +_nipy_spectral_data = { + 'red': [ + (0.0, 0.0, 0.0), (0.05, 0.4667, 0.4667), + (0.10, 0.5333, 0.5333), (0.15, 0.0, 0.0), + (0.20, 0.0, 0.0), (0.25, 0.0, 0.0), + (0.30, 0.0, 0.0), (0.35, 0.0, 0.0), + (0.40, 0.0, 0.0), (0.45, 0.0, 0.0), + (0.50, 0.0, 0.0), (0.55, 0.0, 0.0), + (0.60, 0.0, 0.0), (0.65, 0.7333, 0.7333), + (0.70, 0.9333, 0.9333), (0.75, 1.0, 1.0), + (0.80, 1.0, 1.0), (0.85, 1.0, 1.0), + (0.90, 0.8667, 0.8667), (0.95, 0.80, 0.80), + (1.0, 0.80, 0.80), + ], + 'green': [ + (0.0, 0.0, 0.0), (0.05, 0.0, 0.0), + (0.10, 0.0, 0.0), (0.15, 0.0, 0.0), + (0.20, 0.0, 0.0), (0.25, 0.4667, 0.4667), + (0.30, 0.6000, 0.6000), (0.35, 0.6667, 0.6667), + (0.40, 0.6667, 0.6667), (0.45, 0.6000, 0.6000), + (0.50, 0.7333, 0.7333), (0.55, 0.8667, 0.8667), + (0.60, 1.0, 1.0), (0.65, 1.0, 1.0), + (0.70, 0.9333, 0.9333), (0.75, 0.8000, 0.8000), + (0.80, 0.6000, 0.6000), (0.85, 0.0, 0.0), + (0.90, 0.0, 0.0), (0.95, 0.0, 0.0), + (1.0, 0.80, 0.80), + ], + 'blue': [ + (0.0, 0.0, 0.0), (0.05, 0.5333, 0.5333), + (0.10, 0.6000, 0.6000), (0.15, 0.6667, 0.6667), + (0.20, 0.8667, 0.8667), (0.25, 0.8667, 0.8667), + (0.30, 0.8667, 0.8667), (0.35, 0.6667, 0.6667), + (0.40, 0.5333, 0.5333), (0.45, 0.0, 0.0), + (0.5, 0.0, 0.0), (0.55, 0.0, 0.0), + (0.60, 0.0, 0.0), (0.65, 0.0, 0.0), + (0.70, 0.0, 0.0), (0.75, 0.0, 0.0), + (0.80, 0.0, 0.0), (0.85, 0.0, 0.0), + (0.90, 0.0, 0.0), (0.95, 0.0, 0.0), + (1.0, 0.80, 0.80), + ], +} + + +# 34 colormaps based on color specifications and designs +# developed by Cynthia Brewer (https://colorbrewer2.org/). +# The ColorBrewer palettes have been included under the terms +# of an Apache-stype license (for details, see the file +# LICENSE_COLORBREWER in the license directory of the matplotlib +# source distribution). + +# RGB values taken from Brewer's Excel sheet, divided by 255 + +_Blues_data = ( + (0.96862745098039216, 0.98431372549019602, 1.0 ), + (0.87058823529411766, 0.92156862745098034, 0.96862745098039216), + (0.77647058823529413, 0.85882352941176465, 0.93725490196078431), + (0.61960784313725492, 0.792156862745098 , 0.88235294117647056), + (0.41960784313725491, 0.68235294117647061, 0.83921568627450982), + (0.25882352941176473, 0.5725490196078431 , 0.77647058823529413), + (0.12941176470588237, 0.44313725490196076, 0.70980392156862748), + (0.03137254901960784, 0.31764705882352939, 0.61176470588235299), + (0.03137254901960784, 0.18823529411764706, 0.41960784313725491) + ) + +_BrBG_data = ( + (0.32941176470588235, 0.18823529411764706, 0.0196078431372549 ), + (0.5490196078431373 , 0.31764705882352939, 0.0392156862745098 ), + (0.74901960784313726, 0.50588235294117645, 0.17647058823529413), + (0.87450980392156863, 0.76078431372549016, 0.49019607843137253), + (0.96470588235294119, 0.90980392156862744, 0.76470588235294112), + (0.96078431372549022, 0.96078431372549022, 0.96078431372549022), + (0.7803921568627451 , 0.91764705882352937, 0.89803921568627454), + (0.50196078431372548, 0.80392156862745101, 0.75686274509803919), + (0.20784313725490197, 0.59215686274509804, 0.5607843137254902 ), + (0.00392156862745098, 0.4 , 0.36862745098039218), + (0.0 , 0.23529411764705882, 0.18823529411764706) + ) + +_BuGn_data = ( + (0.96862745098039216, 0.9882352941176471 , 0.99215686274509807), + (0.89803921568627454, 0.96078431372549022, 0.97647058823529409), + (0.8 , 0.92549019607843142, 0.90196078431372551), + (0.6 , 0.84705882352941175, 0.78823529411764703), + (0.4 , 0.76078431372549016, 0.64313725490196083), + (0.25490196078431371, 0.68235294117647061, 0.46274509803921571), + (0.13725490196078433, 0.54509803921568623, 0.27058823529411763), + (0.0 , 0.42745098039215684, 0.17254901960784313), + (0.0 , 0.26666666666666666, 0.10588235294117647) + ) + +_BuPu_data = ( + (0.96862745098039216, 0.9882352941176471 , 0.99215686274509807), + (0.8784313725490196 , 0.92549019607843142, 0.95686274509803926), + (0.74901960784313726, 0.82745098039215681, 0.90196078431372551), + (0.61960784313725492, 0.73725490196078436, 0.85490196078431369), + (0.5490196078431373 , 0.58823529411764708, 0.77647058823529413), + (0.5490196078431373 , 0.41960784313725491, 0.69411764705882351), + (0.53333333333333333, 0.25490196078431371, 0.61568627450980395), + (0.50588235294117645, 0.05882352941176471, 0.48627450980392156), + (0.30196078431372547, 0.0 , 0.29411764705882354) + ) + +_GnBu_data = ( + (0.96862745098039216, 0.9882352941176471 , 0.94117647058823528), + (0.8784313725490196 , 0.95294117647058818, 0.85882352941176465), + (0.8 , 0.92156862745098034, 0.77254901960784317), + (0.6588235294117647 , 0.8666666666666667 , 0.70980392156862748), + (0.4823529411764706 , 0.8 , 0.7686274509803922 ), + (0.30588235294117649, 0.70196078431372544, 0.82745098039215681), + (0.16862745098039217, 0.5490196078431373 , 0.74509803921568629), + (0.03137254901960784, 0.40784313725490196, 0.67450980392156867), + (0.03137254901960784, 0.25098039215686274, 0.50588235294117645) + ) + +_Greens_data = ( + (0.96862745098039216, 0.9882352941176471 , 0.96078431372549022), + (0.89803921568627454, 0.96078431372549022, 0.8784313725490196 ), + (0.7803921568627451 , 0.9137254901960784 , 0.75294117647058822), + (0.63137254901960782, 0.85098039215686272, 0.60784313725490191), + (0.45490196078431372, 0.7686274509803922 , 0.46274509803921571), + (0.25490196078431371, 0.6705882352941176 , 0.36470588235294116), + (0.13725490196078433, 0.54509803921568623, 0.27058823529411763), + (0.0 , 0.42745098039215684, 0.17254901960784313), + (0.0 , 0.26666666666666666, 0.10588235294117647) + ) + +_Greys_data = ( + (1.0 , 1.0 , 1.0 ), + (0.94117647058823528, 0.94117647058823528, 0.94117647058823528), + (0.85098039215686272, 0.85098039215686272, 0.85098039215686272), + (0.74117647058823533, 0.74117647058823533, 0.74117647058823533), + (0.58823529411764708, 0.58823529411764708, 0.58823529411764708), + (0.45098039215686275, 0.45098039215686275, 0.45098039215686275), + (0.32156862745098042, 0.32156862745098042, 0.32156862745098042), + (0.14509803921568629, 0.14509803921568629, 0.14509803921568629), + (0.0 , 0.0 , 0.0 ) + ) + +_Oranges_data = ( + (1.0 , 0.96078431372549022, 0.92156862745098034), + (0.99607843137254903, 0.90196078431372551, 0.80784313725490198), + (0.99215686274509807, 0.81568627450980391, 0.63529411764705879), + (0.99215686274509807, 0.68235294117647061, 0.41960784313725491), + (0.99215686274509807, 0.55294117647058827, 0.23529411764705882), + (0.94509803921568625, 0.41176470588235292, 0.07450980392156863), + (0.85098039215686272, 0.28235294117647058, 0.00392156862745098), + (0.65098039215686276, 0.21176470588235294, 0.01176470588235294), + (0.49803921568627452, 0.15294117647058825, 0.01568627450980392) + ) + +_OrRd_data = ( + (1.0 , 0.96862745098039216, 0.92549019607843142), + (0.99607843137254903, 0.90980392156862744, 0.78431372549019607), + (0.99215686274509807, 0.83137254901960789, 0.61960784313725492), + (0.99215686274509807, 0.73333333333333328, 0.51764705882352946), + (0.9882352941176471 , 0.55294117647058827, 0.34901960784313724), + (0.93725490196078431, 0.396078431372549 , 0.28235294117647058), + (0.84313725490196079, 0.18823529411764706, 0.12156862745098039), + (0.70196078431372544, 0.0 , 0.0 ), + (0.49803921568627452, 0.0 , 0.0 ) + ) + +_PiYG_data = ( + (0.55686274509803924, 0.00392156862745098, 0.32156862745098042), + (0.77254901960784317, 0.10588235294117647, 0.49019607843137253), + (0.87058823529411766, 0.46666666666666667, 0.68235294117647061), + (0.94509803921568625, 0.71372549019607845, 0.85490196078431369), + (0.99215686274509807, 0.8784313725490196 , 0.93725490196078431), + (0.96862745098039216, 0.96862745098039216, 0.96862745098039216), + (0.90196078431372551, 0.96078431372549022, 0.81568627450980391), + (0.72156862745098038, 0.88235294117647056, 0.52549019607843139), + (0.49803921568627452, 0.73725490196078436, 0.25490196078431371), + (0.30196078431372547, 0.5725490196078431 , 0.12941176470588237), + (0.15294117647058825, 0.39215686274509803, 0.09803921568627451) + ) + +_PRGn_data = ( + (0.25098039215686274, 0.0 , 0.29411764705882354), + (0.46274509803921571, 0.16470588235294117, 0.51372549019607838), + (0.6 , 0.4392156862745098 , 0.6705882352941176 ), + (0.76078431372549016, 0.6470588235294118 , 0.81176470588235294), + (0.90588235294117647, 0.83137254901960789, 0.90980392156862744), + (0.96862745098039216, 0.96862745098039216, 0.96862745098039216), + (0.85098039215686272, 0.94117647058823528, 0.82745098039215681), + (0.65098039215686276, 0.85882352941176465, 0.62745098039215685), + (0.35294117647058826, 0.68235294117647061, 0.38039215686274508), + (0.10588235294117647, 0.47058823529411764, 0.21568627450980393), + (0.0 , 0.26666666666666666, 0.10588235294117647) + ) + +_PuBu_data = ( + (1.0 , 0.96862745098039216, 0.98431372549019602), + (0.92549019607843142, 0.90588235294117647, 0.94901960784313721), + (0.81568627450980391, 0.81960784313725488, 0.90196078431372551), + (0.65098039215686276, 0.74117647058823533, 0.85882352941176465), + (0.45490196078431372, 0.66274509803921566, 0.81176470588235294), + (0.21176470588235294, 0.56470588235294117, 0.75294117647058822), + (0.0196078431372549 , 0.4392156862745098 , 0.69019607843137254), + (0.01568627450980392, 0.35294117647058826, 0.55294117647058827), + (0.00784313725490196, 0.2196078431372549 , 0.34509803921568627) + ) + +_PuBuGn_data = ( + (1.0 , 0.96862745098039216, 0.98431372549019602), + (0.92549019607843142, 0.88627450980392153, 0.94117647058823528), + (0.81568627450980391, 0.81960784313725488, 0.90196078431372551), + (0.65098039215686276, 0.74117647058823533, 0.85882352941176465), + (0.40392156862745099, 0.66274509803921566, 0.81176470588235294), + (0.21176470588235294, 0.56470588235294117, 0.75294117647058822), + (0.00784313725490196, 0.50588235294117645, 0.54117647058823526), + (0.00392156862745098, 0.42352941176470588, 0.34901960784313724), + (0.00392156862745098, 0.27450980392156865, 0.21176470588235294) + ) + +_PuOr_data = ( + (0.49803921568627452, 0.23137254901960785, 0.03137254901960784), + (0.70196078431372544, 0.34509803921568627, 0.02352941176470588), + (0.8784313725490196 , 0.50980392156862742, 0.07843137254901961), + (0.99215686274509807, 0.72156862745098038, 0.38823529411764707), + (0.99607843137254903, 0.8784313725490196 , 0.71372549019607845), + (0.96862745098039216, 0.96862745098039216, 0.96862745098039216), + (0.84705882352941175, 0.85490196078431369, 0.92156862745098034), + (0.69803921568627447, 0.6705882352941176 , 0.82352941176470584), + (0.50196078431372548, 0.45098039215686275, 0.67450980392156867), + (0.32941176470588235, 0.15294117647058825, 0.53333333333333333), + (0.17647058823529413, 0.0 , 0.29411764705882354) + ) + +_PuRd_data = ( + (0.96862745098039216, 0.95686274509803926, 0.97647058823529409), + (0.90588235294117647, 0.88235294117647056, 0.93725490196078431), + (0.83137254901960789, 0.72549019607843135, 0.85490196078431369), + (0.78823529411764703, 0.58039215686274515, 0.7803921568627451 ), + (0.87450980392156863, 0.396078431372549 , 0.69019607843137254), + (0.90588235294117647, 0.16078431372549021, 0.54117647058823526), + (0.80784313725490198, 0.07058823529411765, 0.33725490196078434), + (0.59607843137254901, 0.0 , 0.2627450980392157 ), + (0.40392156862745099, 0.0 , 0.12156862745098039) + ) + +_Purples_data = ( + (0.9882352941176471 , 0.98431372549019602, 0.99215686274509807), + (0.93725490196078431, 0.92941176470588238, 0.96078431372549022), + (0.85490196078431369, 0.85490196078431369, 0.92156862745098034), + (0.73725490196078436, 0.74117647058823533, 0.86274509803921573), + (0.61960784313725492, 0.60392156862745094, 0.78431372549019607), + (0.50196078431372548, 0.49019607843137253, 0.72941176470588232), + (0.41568627450980394, 0.31764705882352939, 0.63921568627450975), + (0.32941176470588235, 0.15294117647058825, 0.5607843137254902 ), + (0.24705882352941178, 0.0 , 0.49019607843137253) + ) + +_RdBu_data = ( + (0.40392156862745099, 0.0 , 0.12156862745098039), + (0.69803921568627447, 0.09411764705882353, 0.16862745098039217), + (0.83921568627450982, 0.37647058823529411, 0.30196078431372547), + (0.95686274509803926, 0.6470588235294118 , 0.50980392156862742), + (0.99215686274509807, 0.85882352941176465, 0.7803921568627451 ), + (0.96862745098039216, 0.96862745098039216, 0.96862745098039216), + (0.81960784313725488, 0.89803921568627454, 0.94117647058823528), + (0.5725490196078431 , 0.77254901960784317, 0.87058823529411766), + (0.2627450980392157 , 0.57647058823529407, 0.76470588235294112), + (0.12941176470588237, 0.4 , 0.67450980392156867), + (0.0196078431372549 , 0.18823529411764706, 0.38039215686274508) + ) + +_RdGy_data = ( + (0.40392156862745099, 0.0 , 0.12156862745098039), + (0.69803921568627447, 0.09411764705882353, 0.16862745098039217), + (0.83921568627450982, 0.37647058823529411, 0.30196078431372547), + (0.95686274509803926, 0.6470588235294118 , 0.50980392156862742), + (0.99215686274509807, 0.85882352941176465, 0.7803921568627451 ), + (1.0 , 1.0 , 1.0 ), + (0.8784313725490196 , 0.8784313725490196 , 0.8784313725490196 ), + (0.72941176470588232, 0.72941176470588232, 0.72941176470588232), + (0.52941176470588236, 0.52941176470588236, 0.52941176470588236), + (0.30196078431372547, 0.30196078431372547, 0.30196078431372547), + (0.10196078431372549, 0.10196078431372549, 0.10196078431372549) + ) + +_RdPu_data = ( + (1.0 , 0.96862745098039216, 0.95294117647058818), + (0.99215686274509807, 0.8784313725490196 , 0.86666666666666667), + (0.9882352941176471 , 0.77254901960784317, 0.75294117647058822), + (0.98039215686274506, 0.62352941176470589, 0.70980392156862748), + (0.96862745098039216, 0.40784313725490196, 0.63137254901960782), + (0.86666666666666667, 0.20392156862745098, 0.59215686274509804), + (0.68235294117647061, 0.00392156862745098, 0.49411764705882355), + (0.47843137254901963, 0.00392156862745098, 0.46666666666666667), + (0.28627450980392155, 0.0 , 0.41568627450980394) + ) + +_RdYlBu_data = ( + (0.6470588235294118 , 0.0 , 0.14901960784313725), + (0.84313725490196079, 0.18823529411764706 , 0.15294117647058825), + (0.95686274509803926, 0.42745098039215684 , 0.2627450980392157 ), + (0.99215686274509807, 0.68235294117647061 , 0.38039215686274508), + (0.99607843137254903, 0.8784313725490196 , 0.56470588235294117), + (1.0 , 1.0 , 0.74901960784313726), + (0.8784313725490196 , 0.95294117647058818 , 0.97254901960784312), + (0.6705882352941176 , 0.85098039215686272 , 0.9137254901960784 ), + (0.45490196078431372, 0.67843137254901964 , 0.81960784313725488), + (0.27058823529411763, 0.45882352941176469 , 0.70588235294117652), + (0.19215686274509805, 0.21176470588235294 , 0.58431372549019611) + ) + +_RdYlGn_data = ( + (0.6470588235294118 , 0.0 , 0.14901960784313725), + (0.84313725490196079, 0.18823529411764706 , 0.15294117647058825), + (0.95686274509803926, 0.42745098039215684 , 0.2627450980392157 ), + (0.99215686274509807, 0.68235294117647061 , 0.38039215686274508), + (0.99607843137254903, 0.8784313725490196 , 0.54509803921568623), + (1.0 , 1.0 , 0.74901960784313726), + (0.85098039215686272, 0.93725490196078431 , 0.54509803921568623), + (0.65098039215686276, 0.85098039215686272 , 0.41568627450980394), + (0.4 , 0.74117647058823533 , 0.38823529411764707), + (0.10196078431372549, 0.59607843137254901 , 0.31372549019607843), + (0.0 , 0.40784313725490196 , 0.21568627450980393) + ) + +_Reds_data = ( + (1.0 , 0.96078431372549022 , 0.94117647058823528), + (0.99607843137254903, 0.8784313725490196 , 0.82352941176470584), + (0.9882352941176471 , 0.73333333333333328 , 0.63137254901960782), + (0.9882352941176471 , 0.5725490196078431 , 0.44705882352941179), + (0.98431372549019602, 0.41568627450980394 , 0.29019607843137257), + (0.93725490196078431, 0.23137254901960785 , 0.17254901960784313), + (0.79607843137254897, 0.094117647058823528, 0.11372549019607843), + (0.6470588235294118 , 0.058823529411764705, 0.08235294117647058), + (0.40392156862745099, 0.0 , 0.05098039215686274) + ) + +_Spectral_data = ( + (0.61960784313725492, 0.003921568627450980, 0.25882352941176473), + (0.83529411764705885, 0.24313725490196078 , 0.30980392156862746), + (0.95686274509803926, 0.42745098039215684 , 0.2627450980392157 ), + (0.99215686274509807, 0.68235294117647061 , 0.38039215686274508), + (0.99607843137254903, 0.8784313725490196 , 0.54509803921568623), + (1.0 , 1.0 , 0.74901960784313726), + (0.90196078431372551, 0.96078431372549022 , 0.59607843137254901), + (0.6705882352941176 , 0.8666666666666667 , 0.64313725490196083), + (0.4 , 0.76078431372549016 , 0.6470588235294118 ), + (0.19607843137254902, 0.53333333333333333 , 0.74117647058823533), + (0.36862745098039218, 0.30980392156862746 , 0.63529411764705879) + ) + +_YlGn_data = ( + (1.0 , 1.0 , 0.89803921568627454), + (0.96862745098039216, 0.9882352941176471 , 0.72549019607843135), + (0.85098039215686272, 0.94117647058823528 , 0.63921568627450975), + (0.67843137254901964, 0.8666666666666667 , 0.55686274509803924), + (0.47058823529411764, 0.77647058823529413 , 0.47450980392156861), + (0.25490196078431371, 0.6705882352941176 , 0.36470588235294116), + (0.13725490196078433, 0.51764705882352946 , 0.2627450980392157 ), + (0.0 , 0.40784313725490196 , 0.21568627450980393), + (0.0 , 0.27058823529411763 , 0.16078431372549021) + ) + +_YlGnBu_data = ( + (1.0 , 1.0 , 0.85098039215686272), + (0.92941176470588238, 0.97254901960784312 , 0.69411764705882351), + (0.7803921568627451 , 0.9137254901960784 , 0.70588235294117652), + (0.49803921568627452, 0.80392156862745101 , 0.73333333333333328), + (0.25490196078431371, 0.71372549019607845 , 0.7686274509803922 ), + (0.11372549019607843, 0.56862745098039214 , 0.75294117647058822), + (0.13333333333333333, 0.36862745098039218 , 0.6588235294117647 ), + (0.14509803921568629, 0.20392156862745098 , 0.58039215686274515), + (0.03137254901960784, 0.11372549019607843 , 0.34509803921568627) + ) + +_YlOrBr_data = ( + (1.0 , 1.0 , 0.89803921568627454), + (1.0 , 0.96862745098039216 , 0.73725490196078436), + (0.99607843137254903, 0.8901960784313725 , 0.56862745098039214), + (0.99607843137254903, 0.7686274509803922 , 0.30980392156862746), + (0.99607843137254903, 0.6 , 0.16078431372549021), + (0.92549019607843142, 0.4392156862745098 , 0.07843137254901961), + (0.8 , 0.29803921568627451 , 0.00784313725490196), + (0.6 , 0.20392156862745098 , 0.01568627450980392), + (0.4 , 0.14509803921568629 , 0.02352941176470588) + ) + +_YlOrRd_data = ( + (1.0 , 1.0 , 0.8 ), + (1.0 , 0.92941176470588238 , 0.62745098039215685), + (0.99607843137254903, 0.85098039215686272 , 0.46274509803921571), + (0.99607843137254903, 0.69803921568627447 , 0.29803921568627451), + (0.99215686274509807, 0.55294117647058827 , 0.23529411764705882), + (0.9882352941176471 , 0.30588235294117649 , 0.16470588235294117), + (0.8901960784313725 , 0.10196078431372549 , 0.10980392156862745), + (0.74117647058823533, 0.0 , 0.14901960784313725), + (0.50196078431372548, 0.0 , 0.14901960784313725) + ) + + +# ColorBrewer's qualitative maps, implemented using ListedColormap +# for use with mpl.colors.NoNorm + +_Accent_data = ( + (0.49803921568627452, 0.78823529411764703, 0.49803921568627452), + (0.74509803921568629, 0.68235294117647061, 0.83137254901960789), + (0.99215686274509807, 0.75294117647058822, 0.52549019607843139), + (1.0, 1.0, 0.6 ), + (0.2196078431372549, 0.42352941176470588, 0.69019607843137254), + (0.94117647058823528, 0.00784313725490196, 0.49803921568627452), + (0.74901960784313726, 0.35686274509803922, 0.09019607843137254), + (0.4, 0.4, 0.4 ), + ) + +_Dark2_data = ( + (0.10588235294117647, 0.61960784313725492, 0.46666666666666667), + (0.85098039215686272, 0.37254901960784315, 0.00784313725490196), + (0.45882352941176469, 0.4392156862745098, 0.70196078431372544), + (0.90588235294117647, 0.16078431372549021, 0.54117647058823526), + (0.4, 0.65098039215686276, 0.11764705882352941), + (0.90196078431372551, 0.6705882352941176, 0.00784313725490196), + (0.65098039215686276, 0.46274509803921571, 0.11372549019607843), + (0.4, 0.4, 0.4 ), + ) + +_Paired_data = ( + (0.65098039215686276, 0.80784313725490198, 0.8901960784313725 ), + (0.12156862745098039, 0.47058823529411764, 0.70588235294117652), + (0.69803921568627447, 0.87450980392156863, 0.54117647058823526), + (0.2, 0.62745098039215685, 0.17254901960784313), + (0.98431372549019602, 0.60392156862745094, 0.6 ), + (0.8901960784313725, 0.10196078431372549, 0.10980392156862745), + (0.99215686274509807, 0.74901960784313726, 0.43529411764705883), + (1.0, 0.49803921568627452, 0.0 ), + (0.792156862745098, 0.69803921568627447, 0.83921568627450982), + (0.41568627450980394, 0.23921568627450981, 0.60392156862745094), + (1.0, 1.0, 0.6 ), + (0.69411764705882351, 0.34901960784313724, 0.15686274509803921), + ) + +_Pastel1_data = ( + (0.98431372549019602, 0.70588235294117652, 0.68235294117647061), + (0.70196078431372544, 0.80392156862745101, 0.8901960784313725 ), + (0.8, 0.92156862745098034, 0.77254901960784317), + (0.87058823529411766, 0.79607843137254897, 0.89411764705882357), + (0.99607843137254903, 0.85098039215686272, 0.65098039215686276), + (1.0, 1.0, 0.8 ), + (0.89803921568627454, 0.84705882352941175, 0.74117647058823533), + (0.99215686274509807, 0.85490196078431369, 0.92549019607843142), + (0.94901960784313721, 0.94901960784313721, 0.94901960784313721), + ) + +_Pastel2_data = ( + (0.70196078431372544, 0.88627450980392153, 0.80392156862745101), + (0.99215686274509807, 0.80392156862745101, 0.67450980392156867), + (0.79607843137254897, 0.83529411764705885, 0.90980392156862744), + (0.95686274509803926, 0.792156862745098, 0.89411764705882357), + (0.90196078431372551, 0.96078431372549022, 0.78823529411764703), + (1.0, 0.94901960784313721, 0.68235294117647061), + (0.94509803921568625, 0.88627450980392153, 0.8 ), + (0.8, 0.8, 0.8 ), + ) + +_Set1_data = ( + (0.89411764705882357, 0.10196078431372549, 0.10980392156862745), + (0.21568627450980393, 0.49411764705882355, 0.72156862745098038), + (0.30196078431372547, 0.68627450980392157, 0.29019607843137257), + (0.59607843137254901, 0.30588235294117649, 0.63921568627450975), + (1.0, 0.49803921568627452, 0.0 ), + (1.0, 1.0, 0.2 ), + (0.65098039215686276, 0.33725490196078434, 0.15686274509803921), + (0.96862745098039216, 0.50588235294117645, 0.74901960784313726), + (0.6, 0.6, 0.6), + ) + +_Set2_data = ( + (0.4, 0.76078431372549016, 0.6470588235294118 ), + (0.9882352941176471, 0.55294117647058827, 0.3843137254901961 ), + (0.55294117647058827, 0.62745098039215685, 0.79607843137254897), + (0.90588235294117647, 0.54117647058823526, 0.76470588235294112), + (0.65098039215686276, 0.84705882352941175, 0.32941176470588235), + (1.0, 0.85098039215686272, 0.18431372549019609), + (0.89803921568627454, 0.7686274509803922, 0.58039215686274515), + (0.70196078431372544, 0.70196078431372544, 0.70196078431372544), + ) + +_Set3_data = ( + (0.55294117647058827, 0.82745098039215681, 0.7803921568627451 ), + (1.0, 1.0, 0.70196078431372544), + (0.74509803921568629, 0.72941176470588232, 0.85490196078431369), + (0.98431372549019602, 0.50196078431372548, 0.44705882352941179), + (0.50196078431372548, 0.69411764705882351, 0.82745098039215681), + (0.99215686274509807, 0.70588235294117652, 0.3843137254901961 ), + (0.70196078431372544, 0.87058823529411766, 0.41176470588235292), + (0.9882352941176471, 0.80392156862745101, 0.89803921568627454), + (0.85098039215686272, 0.85098039215686272, 0.85098039215686272), + (0.73725490196078436, 0.50196078431372548, 0.74117647058823533), + (0.8, 0.92156862745098034, 0.77254901960784317), + (1.0, 0.92941176470588238, 0.43529411764705883), + ) + + +# The next 7 palettes are from the Yorick scientific visualization package, +# an evolution of the GIST package, both by David H. Munro. +# They are released under a BSD-like license (see LICENSE_YORICK in +# the license directory of the matplotlib source distribution). +# +# Most palette functions have been reduced to simple function descriptions +# by Reinier Heeres, since the rgb components were mostly straight lines. +# gist_earth_data and gist_ncar_data were simplified by a script and some +# manual effort. + +_gist_earth_data = { + 'red': ( + (0.0, 0.0, 0.0000), + (0.2824, 0.1882, 0.1882), + (0.4588, 0.2714, 0.2714), + (0.5490, 0.4719, 0.4719), + (0.6980, 0.7176, 0.7176), + (0.7882, 0.7553, 0.7553), + (1.0000, 0.9922, 0.9922), + ), + 'green': ( + (0.0, 0.0, 0.0000), + (0.0275, 0.0000, 0.0000), + (0.1098, 0.1893, 0.1893), + (0.1647, 0.3035, 0.3035), + (0.2078, 0.3841, 0.3841), + (0.2824, 0.5020, 0.5020), + (0.5216, 0.6397, 0.6397), + (0.6980, 0.7171, 0.7171), + (0.7882, 0.6392, 0.6392), + (0.7922, 0.6413, 0.6413), + (0.8000, 0.6447, 0.6447), + (0.8078, 0.6481, 0.6481), + (0.8157, 0.6549, 0.6549), + (0.8667, 0.6991, 0.6991), + (0.8745, 0.7103, 0.7103), + (0.8824, 0.7216, 0.7216), + (0.8902, 0.7323, 0.7323), + (0.8980, 0.7430, 0.7430), + (0.9412, 0.8275, 0.8275), + (0.9569, 0.8635, 0.8635), + (0.9647, 0.8816, 0.8816), + (0.9961, 0.9733, 0.9733), + (1.0000, 0.9843, 0.9843), + ), + 'blue': ( + (0.0, 0.0, 0.0000), + (0.0039, 0.1684, 0.1684), + (0.0078, 0.2212, 0.2212), + (0.0275, 0.4329, 0.4329), + (0.0314, 0.4549, 0.4549), + (0.2824, 0.5004, 0.5004), + (0.4667, 0.2748, 0.2748), + (0.5451, 0.3205, 0.3205), + (0.7843, 0.3961, 0.3961), + (0.8941, 0.6651, 0.6651), + (1.0000, 0.9843, 0.9843), + ) +} + +_gist_gray_data = { + 'red': gfunc[3], + 'green': gfunc[3], + 'blue': gfunc[3], +} + +def _gist_heat_red(x): return 1.5 * x +def _gist_heat_green(x): return 2 * x - 1 +def _gist_heat_blue(x): return 4 * x - 3 +_gist_heat_data = { + 'red': _gist_heat_red, 'green': _gist_heat_green, 'blue': _gist_heat_blue} + +_gist_ncar_data = { + 'red': ( + (0.0, 0.0, 0.0000), + (0.3098, 0.0000, 0.0000), + (0.3725, 0.3993, 0.3993), + (0.4235, 0.5003, 0.5003), + (0.5333, 1.0000, 1.0000), + (0.7922, 1.0000, 1.0000), + (0.8471, 0.6218, 0.6218), + (0.8980, 0.9235, 0.9235), + (1.0000, 0.9961, 0.9961), + ), + 'green': ( + (0.0, 0.0, 0.0000), + (0.0510, 0.3722, 0.3722), + (0.1059, 0.0000, 0.0000), + (0.1569, 0.7202, 0.7202), + (0.1608, 0.7537, 0.7537), + (0.1647, 0.7752, 0.7752), + (0.2157, 1.0000, 1.0000), + (0.2588, 0.9804, 0.9804), + (0.2706, 0.9804, 0.9804), + (0.3176, 1.0000, 1.0000), + (0.3686, 0.8081, 0.8081), + (0.4275, 1.0000, 1.0000), + (0.5216, 1.0000, 1.0000), + (0.6314, 0.7292, 0.7292), + (0.6863, 0.2796, 0.2796), + (0.7451, 0.0000, 0.0000), + (0.7922, 0.0000, 0.0000), + (0.8431, 0.1753, 0.1753), + (0.8980, 0.5000, 0.5000), + (1.0000, 0.9725, 0.9725), + ), + 'blue': ( + (0.0, 0.5020, 0.5020), + (0.0510, 0.0222, 0.0222), + (0.1098, 1.0000, 1.0000), + (0.2039, 1.0000, 1.0000), + (0.2627, 0.6145, 0.6145), + (0.3216, 0.0000, 0.0000), + (0.4157, 0.0000, 0.0000), + (0.4745, 0.2342, 0.2342), + (0.5333, 0.0000, 0.0000), + (0.5804, 0.0000, 0.0000), + (0.6314, 0.0549, 0.0549), + (0.6902, 0.0000, 0.0000), + (0.7373, 0.0000, 0.0000), + (0.7922, 0.9738, 0.9738), + (0.8000, 1.0000, 1.0000), + (0.8431, 1.0000, 1.0000), + (0.8980, 0.9341, 0.9341), + (1.0000, 0.9961, 0.9961), + ) +} + +_gist_rainbow_data = ( + (0.000, (1.00, 0.00, 0.16)), + (0.030, (1.00, 0.00, 0.00)), + (0.215, (1.00, 1.00, 0.00)), + (0.400, (0.00, 1.00, 0.00)), + (0.586, (0.00, 1.00, 1.00)), + (0.770, (0.00, 0.00, 1.00)), + (0.954, (1.00, 0.00, 1.00)), + (1.000, (1.00, 0.00, 0.75)) +) + +_gist_stern_data = { + 'red': ( + (0.000, 0.000, 0.000), (0.0547, 1.000, 1.000), + (0.250, 0.027, 0.250), # (0.2500, 0.250, 0.250), + (1.000, 1.000, 1.000)), + 'green': ((0, 0, 0), (1, 1, 1)), + 'blue': ( + (0.000, 0.000, 0.000), (0.500, 1.000, 1.000), + (0.735, 0.000, 0.000), (1.000, 1.000, 1.000)) +} + +def _gist_yarg(x): return 1 - x +_gist_yarg_data = {'red': _gist_yarg, 'green': _gist_yarg, 'blue': _gist_yarg} + +# This bipolar colormap was generated from CoolWarmFloat33.csv of +# "Diverging Color Maps for Scientific Visualization" by Kenneth Moreland. +# +_coolwarm_data = { + 'red': [ + (0.0, 0.2298057, 0.2298057), + (0.03125, 0.26623388, 0.26623388), + (0.0625, 0.30386891, 0.30386891), + (0.09375, 0.342804478, 0.342804478), + (0.125, 0.38301334, 0.38301334), + (0.15625, 0.424369608, 0.424369608), + (0.1875, 0.46666708, 0.46666708), + (0.21875, 0.509635204, 0.509635204), + (0.25, 0.552953156, 0.552953156), + (0.28125, 0.596262162, 0.596262162), + (0.3125, 0.639176211, 0.639176211), + (0.34375, 0.681291281, 0.681291281), + (0.375, 0.722193294, 0.722193294), + (0.40625, 0.761464949, 0.761464949), + (0.4375, 0.798691636, 0.798691636), + (0.46875, 0.833466556, 0.833466556), + (0.5, 0.865395197, 0.865395197), + (0.53125, 0.897787179, 0.897787179), + (0.5625, 0.924127593, 0.924127593), + (0.59375, 0.944468518, 0.944468518), + (0.625, 0.958852946, 0.958852946), + (0.65625, 0.96732803, 0.96732803), + (0.6875, 0.969954137, 0.969954137), + (0.71875, 0.966811177, 0.966811177), + (0.75, 0.958003065, 0.958003065), + (0.78125, 0.943660866, 0.943660866), + (0.8125, 0.923944917, 0.923944917), + (0.84375, 0.89904617, 0.89904617), + (0.875, 0.869186849, 0.869186849), + (0.90625, 0.834620542, 0.834620542), + (0.9375, 0.795631745, 0.795631745), + (0.96875, 0.752534934, 0.752534934), + (1.0, 0.705673158, 0.705673158)], + 'green': [ + (0.0, 0.298717966, 0.298717966), + (0.03125, 0.353094838, 0.353094838), + (0.0625, 0.406535296, 0.406535296), + (0.09375, 0.458757618, 0.458757618), + (0.125, 0.50941904, 0.50941904), + (0.15625, 0.558148092, 0.558148092), + (0.1875, 0.604562568, 0.604562568), + (0.21875, 0.648280772, 0.648280772), + (0.25, 0.688929332, 0.688929332), + (0.28125, 0.726149107, 0.726149107), + (0.3125, 0.759599947, 0.759599947), + (0.34375, 0.788964712, 0.788964712), + (0.375, 0.813952739, 0.813952739), + (0.40625, 0.834302879, 0.834302879), + (0.4375, 0.849786142, 0.849786142), + (0.46875, 0.860207984, 0.860207984), + (0.5, 0.86541021, 0.86541021), + (0.53125, 0.848937047, 0.848937047), + (0.5625, 0.827384882, 0.827384882), + (0.59375, 0.800927443, 0.800927443), + (0.625, 0.769767752, 0.769767752), + (0.65625, 0.734132809, 0.734132809), + (0.6875, 0.694266682, 0.694266682), + (0.71875, 0.650421156, 0.650421156), + (0.75, 0.602842431, 0.602842431), + (0.78125, 0.551750968, 0.551750968), + (0.8125, 0.49730856, 0.49730856), + (0.84375, 0.439559467, 0.439559467), + (0.875, 0.378313092, 0.378313092), + (0.90625, 0.312874446, 0.312874446), + (0.9375, 0.24128379, 0.24128379), + (0.96875, 0.157246067, 0.157246067), + (1.0, 0.01555616, 0.01555616)], + 'blue': [ + (0.0, 0.753683153, 0.753683153), + (0.03125, 0.801466763, 0.801466763), + (0.0625, 0.84495867, 0.84495867), + (0.09375, 0.883725899, 0.883725899), + (0.125, 0.917387822, 0.917387822), + (0.15625, 0.945619588, 0.945619588), + (0.1875, 0.968154911, 0.968154911), + (0.21875, 0.98478814, 0.98478814), + (0.25, 0.995375608, 0.995375608), + (0.28125, 0.999836203, 0.999836203), + (0.3125, 0.998151185, 0.998151185), + (0.34375, 0.990363227, 0.990363227), + (0.375, 0.976574709, 0.976574709), + (0.40625, 0.956945269, 0.956945269), + (0.4375, 0.931688648, 0.931688648), + (0.46875, 0.901068838, 0.901068838), + (0.5, 0.865395561, 0.865395561), + (0.53125, 0.820880546, 0.820880546), + (0.5625, 0.774508472, 0.774508472), + (0.59375, 0.726736146, 0.726736146), + (0.625, 0.678007945, 0.678007945), + (0.65625, 0.628751763, 0.628751763), + (0.6875, 0.579375448, 0.579375448), + (0.71875, 0.530263762, 0.530263762), + (0.75, 0.481775914, 0.481775914), + (0.78125, 0.434243684, 0.434243684), + (0.8125, 0.387970225, 0.387970225), + (0.84375, 0.343229596, 0.343229596), + (0.875, 0.300267182, 0.300267182), + (0.90625, 0.259301199, 0.259301199), + (0.9375, 0.220525627, 0.220525627), + (0.96875, 0.184115123, 0.184115123), + (1.0, 0.150232812, 0.150232812)] + } + +# Implementation of Carey Rappaport's CMRmap. +# See `A Color Map for Effective Black-and-White Rendering of Color-Scale +# Images' by Carey Rappaport +# https://www.mathworks.com/matlabcentral/fileexchange/2662-cmrmap-m +_CMRmap_data = {'red': ((0.000, 0.00, 0.00), + (0.125, 0.15, 0.15), + (0.250, 0.30, 0.30), + (0.375, 0.60, 0.60), + (0.500, 1.00, 1.00), + (0.625, 0.90, 0.90), + (0.750, 0.90, 0.90), + (0.875, 0.90, 0.90), + (1.000, 1.00, 1.00)), + 'green': ((0.000, 0.00, 0.00), + (0.125, 0.15, 0.15), + (0.250, 0.15, 0.15), + (0.375, 0.20, 0.20), + (0.500, 0.25, 0.25), + (0.625, 0.50, 0.50), + (0.750, 0.75, 0.75), + (0.875, 0.90, 0.90), + (1.000, 1.00, 1.00)), + 'blue': ((0.000, 0.00, 0.00), + (0.125, 0.50, 0.50), + (0.250, 0.75, 0.75), + (0.375, 0.50, 0.50), + (0.500, 0.15, 0.15), + (0.625, 0.00, 0.00), + (0.750, 0.10, 0.10), + (0.875, 0.50, 0.50), + (1.000, 1.00, 1.00))} + + +# An MIT licensed, colorblind-friendly heatmap from Wistia: +# https://github.com/wistia/heatmap-palette +# https://wistia.com/learn/culture/heatmaps-for-colorblindness +# +# >>> import matplotlib.colors as c +# >>> colors = ["#e4ff7a", "#ffe81a", "#ffbd00", "#ffa000", "#fc7f00"] +# >>> cm = c.LinearSegmentedColormap.from_list('wistia', colors) +# >>> _wistia_data = cm._segmentdata +# >>> del _wistia_data['alpha'] +# +_wistia_data = { + 'red': [(0.0, 0.8941176470588236, 0.8941176470588236), + (0.25, 1.0, 1.0), + (0.5, 1.0, 1.0), + (0.75, 1.0, 1.0), + (1.0, 0.9882352941176471, 0.9882352941176471)], + 'green': [(0.0, 1.0, 1.0), + (0.25, 0.9098039215686274, 0.9098039215686274), + (0.5, 0.7411764705882353, 0.7411764705882353), + (0.75, 0.6274509803921569, 0.6274509803921569), + (1.0, 0.4980392156862745, 0.4980392156862745)], + 'blue': [(0.0, 0.47843137254901963, 0.47843137254901963), + (0.25, 0.10196078431372549, 0.10196078431372549), + (0.5, 0.0, 0.0), + (0.75, 0.0, 0.0), + (1.0, 0.0, 0.0)], +} + + +# Categorical palettes from Vega: +# https://github.com/vega/vega/wiki/Scales +# (divided by 255) +# + +_tab10_data = ( + (0.12156862745098039, 0.4666666666666667, 0.7058823529411765 ), # 1f77b4 + (1.0, 0.4980392156862745, 0.054901960784313725), # ff7f0e + (0.17254901960784313, 0.6274509803921569, 0.17254901960784313 ), # 2ca02c + (0.8392156862745098, 0.15294117647058825, 0.1568627450980392 ), # d62728 + (0.5803921568627451, 0.403921568627451, 0.7411764705882353 ), # 9467bd + (0.5490196078431373, 0.33725490196078434, 0.29411764705882354 ), # 8c564b + (0.8901960784313725, 0.4666666666666667, 0.7607843137254902 ), # e377c2 + (0.4980392156862745, 0.4980392156862745, 0.4980392156862745 ), # 7f7f7f + (0.7372549019607844, 0.7411764705882353, 0.13333333333333333 ), # bcbd22 + (0.09019607843137255, 0.7450980392156863, 0.8117647058823529), # 17becf +) + +_tab20_data = ( + (0.12156862745098039, 0.4666666666666667, 0.7058823529411765 ), # 1f77b4 + (0.6823529411764706, 0.7803921568627451, 0.9098039215686274 ), # aec7e8 + (1.0, 0.4980392156862745, 0.054901960784313725), # ff7f0e + (1.0, 0.7333333333333333, 0.47058823529411764 ), # ffbb78 + (0.17254901960784313, 0.6274509803921569, 0.17254901960784313 ), # 2ca02c + (0.596078431372549, 0.8745098039215686, 0.5411764705882353 ), # 98df8a + (0.8392156862745098, 0.15294117647058825, 0.1568627450980392 ), # d62728 + (1.0, 0.596078431372549, 0.5882352941176471 ), # ff9896 + (0.5803921568627451, 0.403921568627451, 0.7411764705882353 ), # 9467bd + (0.7725490196078432, 0.6901960784313725, 0.8352941176470589 ), # c5b0d5 + (0.5490196078431373, 0.33725490196078434, 0.29411764705882354 ), # 8c564b + (0.7686274509803922, 0.611764705882353, 0.5803921568627451 ), # c49c94 + (0.8901960784313725, 0.4666666666666667, 0.7607843137254902 ), # e377c2 + (0.9686274509803922, 0.7137254901960784, 0.8235294117647058 ), # f7b6d2 + (0.4980392156862745, 0.4980392156862745, 0.4980392156862745 ), # 7f7f7f + (0.7803921568627451, 0.7803921568627451, 0.7803921568627451 ), # c7c7c7 + (0.7372549019607844, 0.7411764705882353, 0.13333333333333333 ), # bcbd22 + (0.8588235294117647, 0.8588235294117647, 0.5529411764705883 ), # dbdb8d + (0.09019607843137255, 0.7450980392156863, 0.8117647058823529 ), # 17becf + (0.6196078431372549, 0.8549019607843137, 0.8980392156862745), # 9edae5 +) + +_tab20b_data = ( + (0.2235294117647059, 0.23137254901960785, 0.4745098039215686 ), # 393b79 + (0.3215686274509804, 0.32941176470588235, 0.6392156862745098 ), # 5254a3 + (0.4196078431372549, 0.43137254901960786, 0.8117647058823529 ), # 6b6ecf + (0.611764705882353, 0.6196078431372549, 0.8705882352941177 ), # 9c9ede + (0.38823529411764707, 0.4745098039215686, 0.2235294117647059 ), # 637939 + (0.5490196078431373, 0.6352941176470588, 0.3215686274509804 ), # 8ca252 + (0.7098039215686275, 0.8117647058823529, 0.4196078431372549 ), # b5cf6b + (0.807843137254902, 0.8588235294117647, 0.611764705882353 ), # cedb9c + (0.5490196078431373, 0.42745098039215684, 0.19215686274509805), # 8c6d31 + (0.7411764705882353, 0.6196078431372549, 0.2235294117647059 ), # bd9e39 + (0.9058823529411765, 0.7294117647058823, 0.3215686274509804 ), # e7ba52 + (0.9058823529411765, 0.796078431372549, 0.5803921568627451 ), # e7cb94 + (0.5176470588235295, 0.23529411764705882, 0.2235294117647059 ), # 843c39 + (0.6784313725490196, 0.28627450980392155, 0.2901960784313726 ), # ad494a + (0.8392156862745098, 0.3803921568627451, 0.4196078431372549 ), # d6616b + (0.9058823529411765, 0.5882352941176471, 0.611764705882353 ), # e7969c + (0.4823529411764706, 0.2549019607843137, 0.45098039215686275), # 7b4173 + (0.6470588235294118, 0.3176470588235294, 0.5803921568627451 ), # a55194 + (0.807843137254902, 0.42745098039215684, 0.7411764705882353 ), # ce6dbd + (0.8705882352941177, 0.6196078431372549, 0.8392156862745098 ), # de9ed6 +) + +_tab20c_data = ( + (0.19215686274509805, 0.5098039215686274, 0.7411764705882353 ), # 3182bd + (0.4196078431372549, 0.6823529411764706, 0.8392156862745098 ), # 6baed6 + (0.6196078431372549, 0.792156862745098, 0.8823529411764706 ), # 9ecae1 + (0.7764705882352941, 0.8588235294117647, 0.9372549019607843 ), # c6dbef + (0.9019607843137255, 0.3333333333333333, 0.050980392156862744), # e6550d + (0.9921568627450981, 0.5529411764705883, 0.23529411764705882 ), # fd8d3c + (0.9921568627450981, 0.6823529411764706, 0.4196078431372549 ), # fdae6b + (0.9921568627450981, 0.8156862745098039, 0.6352941176470588 ), # fdd0a2 + (0.19215686274509805, 0.6392156862745098, 0.32941176470588235 ), # 31a354 + (0.4549019607843137, 0.7686274509803922, 0.4627450980392157 ), # 74c476 + (0.6313725490196078, 0.8509803921568627, 0.6078431372549019 ), # a1d99b + (0.7803921568627451, 0.9137254901960784, 0.7529411764705882 ), # c7e9c0 + (0.4588235294117647, 0.4196078431372549, 0.6941176470588235 ), # 756bb1 + (0.6196078431372549, 0.6039215686274509, 0.7843137254901961 ), # 9e9ac8 + (0.7372549019607844, 0.7411764705882353, 0.8627450980392157 ), # bcbddc + (0.8549019607843137, 0.8549019607843137, 0.9215686274509803 ), # dadaeb + (0.38823529411764707, 0.38823529411764707, 0.38823529411764707 ), # 636363 + (0.5882352941176471, 0.5882352941176471, 0.5882352941176471 ), # 969696 + (0.7411764705882353, 0.7411764705882353, 0.7411764705882353 ), # bdbdbd + (0.8509803921568627, 0.8509803921568627, 0.8509803921568627 ), # d9d9d9 +) + + +_petroff10_data = ( + (0.24705882352941178, 0.5647058823529412, 0.8549019607843137), # 3f90da + (1.0, 0.6627450980392157, 0.054901960784313725), # ffa90e + (0.7411764705882353, 0.12156862745098039, 0.00392156862745098), # bd1f01 + (0.5803921568627451, 0.6431372549019608, 0.6352941176470588), # 94a4a2 + (0.5137254901960784, 0.17647058823529413, 0.7137254901960784), # 832db6 + (0.6627450980392157, 0.4196078431372549, 0.34901960784313724), # a96b59 + (0.9058823529411765, 0.38823529411764707, 0.0), # e76300 + (0.7254901960784313, 0.6745098039215687, 0.4392156862745098), # b9ac70 + (0.44313725490196076, 0.4588235294117647, 0.5058823529411764), # 717581 + (0.5725490196078431, 0.8549019607843137, 0.8666666666666667), # 92dadd +) + + +datad = { + 'Blues': _Blues_data, + 'BrBG': _BrBG_data, + 'BuGn': _BuGn_data, + 'BuPu': _BuPu_data, + 'CMRmap': _CMRmap_data, + 'GnBu': _GnBu_data, + 'Greens': _Greens_data, + 'Greys': _Greys_data, + 'OrRd': _OrRd_data, + 'Oranges': _Oranges_data, + 'PRGn': _PRGn_data, + 'PiYG': _PiYG_data, + 'PuBu': _PuBu_data, + 'PuBuGn': _PuBuGn_data, + 'PuOr': _PuOr_data, + 'PuRd': _PuRd_data, + 'Purples': _Purples_data, + 'RdBu': _RdBu_data, + 'RdGy': _RdGy_data, + 'RdPu': _RdPu_data, + 'RdYlBu': _RdYlBu_data, + 'RdYlGn': _RdYlGn_data, + 'Reds': _Reds_data, + 'Spectral': _Spectral_data, + 'Wistia': _wistia_data, + 'YlGn': _YlGn_data, + 'YlGnBu': _YlGnBu_data, + 'YlOrBr': _YlOrBr_data, + 'YlOrRd': _YlOrRd_data, + 'afmhot': _afmhot_data, + 'autumn': _autumn_data, + 'binary': _binary_data, + 'bone': _bone_data, + 'brg': _brg_data, + 'bwr': _bwr_data, + 'cool': _cool_data, + 'coolwarm': _coolwarm_data, + 'copper': _copper_data, + 'cubehelix': _cubehelix_data, + 'flag': _flag_data, + 'gist_earth': _gist_earth_data, + 'gist_gray': _gist_gray_data, + 'gist_heat': _gist_heat_data, + 'gist_ncar': _gist_ncar_data, + 'gist_rainbow': _gist_rainbow_data, + 'gist_stern': _gist_stern_data, + 'gist_yarg': _gist_yarg_data, + 'gnuplot': _gnuplot_data, + 'gnuplot2': _gnuplot2_data, + 'gray': _gray_data, + 'hot': _hot_data, + 'hsv': _hsv_data, + 'jet': _jet_data, + 'nipy_spectral': _nipy_spectral_data, + 'ocean': _ocean_data, + 'pink': _pink_data, + 'prism': _prism_data, + 'rainbow': _rainbow_data, + 'seismic': _seismic_data, + 'spring': _spring_data, + 'summer': _summer_data, + 'terrain': _terrain_data, + 'winter': _winter_data, + # Qualitative + 'Accent': {'listed': _Accent_data}, + 'Dark2': {'listed': _Dark2_data}, + 'Paired': {'listed': _Paired_data}, + 'Pastel1': {'listed': _Pastel1_data}, + 'Pastel2': {'listed': _Pastel2_data}, + 'Set1': {'listed': _Set1_data}, + 'Set2': {'listed': _Set2_data}, + 'Set3': {'listed': _Set3_data}, + 'tab10': {'listed': _tab10_data}, + 'tab20': {'listed': _tab20_data}, + 'tab20b': {'listed': _tab20b_data}, + 'tab20c': {'listed': _tab20c_data}, +} diff --git a/shared/package-files/3e/3ee6c0f4399b77d6e20727218bbe0e47fb5a54084fe10dc3e190f10ee9e1eab3/mul_cpu_dispatch.h b/shared/package-files/3e/3ee6c0f4399b77d6e20727218bbe0e47fb5a54084fe10dc3e190f10ee9e1eab3/mul_cpu_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..d782ab7eb92a28508672316dfe4485a83af2be80 --- /dev/null +++ b/shared/package-files/3e/3ee6c0f4399b77d6e20727218bbe0e47fb5a54084fe10dc3e190f10ee9e1eab3/mul_cpu_dispatch.h @@ -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 mul(const at::Tensor & self, const at::Tensor & other); +TORCH_API at::Tensor & mul_out(at::Tensor & out, const at::Tensor & self, const at::Tensor & other); +TORCH_API at::Tensor & mul_outf(const at::Tensor & self, const at::Tensor & other, at::Tensor & out); +TORCH_API at::Tensor & mul_(at::Tensor & self, const at::Tensor & other); + +} // namespace cpu +} // namespace at diff --git a/shared/package-files/3e/3ee71fe12dd510bfac4f9d84b371bd897a57f565171a3c11d7e46f375fba1f0c/NumericLimits.cuh b/shared/package-files/3e/3ee71fe12dd510bfac4f9d84b371bd897a57f565171a3c11d7e46f375fba1f0c/NumericLimits.cuh new file mode 100644 index 0000000000000000000000000000000000000000..7081e94837caa7d5050128e0bfe19aa67f93cd39 --- /dev/null +++ b/shared/package-files/3e/3ee71fe12dd510bfac4f9d84b371bd897a57f565171a3c11d7e46f375fba1f0c/NumericLimits.cuh @@ -0,0 +1,121 @@ +#pragma once + +#include +#include +#include +#include + +// NumericLimits.cuh is a holder for numeric limits definitions of commonly used +// types. This header is very specific to ROCm HIP and may be removed in the future. +// This header is derived from the legacy THCNumerics.cuh. + +// The lower_bound and upper_bound constants are same as lowest and max for +// integral types, but are -inf and +inf for floating point types. They are +// useful in implementing min, max, etc. + +namespace at { + +template +struct numeric_limits { +}; + +// WARNING: the following at::numeric_limits definitions are there only to support +// HIP compilation for the moment. Use std::numeric_limits if you are not +// compiling for ROCm. +// from @colesbury: "The functions on numeric_limits aren't marked with +// __device__ which is why they don't work with ROCm. CUDA allows them +// because they're constexpr." + +namespace { + // ROCm doesn't like INFINITY too. + constexpr double inf = INFINITY; +} + +template <> +struct numeric_limits { + static inline __host__ __device__ bool lowest() { return false; } + static inline __host__ __device__ bool max() { return true; } + static inline __host__ __device__ bool lower_bound() { return false; } + static inline __host__ __device__ bool upper_bound() { return true; } +}; + +template <> +struct numeric_limits { + static inline __host__ __device__ uint8_t lowest() { return 0; } + static inline __host__ __device__ uint8_t max() { return UINT8_MAX; } + static inline __host__ __device__ uint8_t lower_bound() { return 0; } + static inline __host__ __device__ uint8_t upper_bound() { return UINT8_MAX; } +}; + +template <> +struct numeric_limits { + static inline __host__ __device__ int8_t lowest() { return INT8_MIN; } + static inline __host__ __device__ int8_t max() { return INT8_MAX; } + static inline __host__ __device__ int8_t lower_bound() { return INT8_MIN; } + static inline __host__ __device__ int8_t upper_bound() { return INT8_MAX; } +}; + +template <> +struct numeric_limits { + static inline __host__ __device__ int16_t lowest() { return INT16_MIN; } + static inline __host__ __device__ int16_t max() { return INT16_MAX; } + static inline __host__ __device__ int16_t lower_bound() { return INT16_MIN; } + static inline __host__ __device__ int16_t upper_bound() { return INT16_MAX; } +}; + +template <> +struct numeric_limits { + static inline __host__ __device__ int32_t lowest() { return INT32_MIN; } + static inline __host__ __device__ int32_t max() { return INT32_MAX; } + static inline __host__ __device__ int32_t lower_bound() { return INT32_MIN; } + static inline __host__ __device__ int32_t upper_bound() { return INT32_MAX; } +}; + +template <> +struct numeric_limits { +#ifdef _MSC_VER + static inline __host__ __device__ int64_t lowest() { return _I64_MIN; } + static inline __host__ __device__ int64_t max() { return _I64_MAX; } + static inline __host__ __device__ int64_t lower_bound() { return _I64_MIN; } + static inline __host__ __device__ int64_t upper_bound() { return _I64_MAX; } +#else + static inline __host__ __device__ int64_t lowest() { return INT64_MIN; } + static inline __host__ __device__ int64_t max() { return INT64_MAX; } + static inline __host__ __device__ int64_t lower_bound() { return INT64_MIN; } + static inline __host__ __device__ int64_t upper_bound() { return INT64_MAX; } +#endif +}; + +template <> +struct numeric_limits { + static inline __host__ __device__ at::Half lowest() { return at::Half(0xFBFF, at::Half::from_bits()); } + static inline __host__ __device__ at::Half max() { return at::Half(0x7BFF, at::Half::from_bits()); } + static inline __host__ __device__ at::Half lower_bound() { return at::Half(0xFC00, at::Half::from_bits()); } + static inline __host__ __device__ at::Half upper_bound() { return at::Half(0x7C00, at::Half::from_bits()); } +}; + +template <> +struct numeric_limits { + static inline __host__ __device__ at::BFloat16 lowest() { return at::BFloat16(0xFF7F, at::BFloat16::from_bits()); } + static inline __host__ __device__ at::BFloat16 max() { return at::BFloat16(0x7F7F, at::BFloat16::from_bits()); } + static inline __host__ __device__ at::BFloat16 lower_bound() { return at::BFloat16(0xFF80, at::BFloat16::from_bits()); } + static inline __host__ __device__ at::BFloat16 upper_bound() { return at::BFloat16(0x7F80, at::BFloat16::from_bits()); } +}; + +template <> +struct numeric_limits { + static inline __host__ __device__ float lowest() { return -FLT_MAX; } + static inline __host__ __device__ float max() { return FLT_MAX; } + static inline __host__ __device__ float lower_bound() { return -static_cast(inf); } + static inline __host__ __device__ float upper_bound() { return static_cast(inf); } +}; + +template <> +struct numeric_limits { + static inline __host__ __device__ double lowest() { return -DBL_MAX; } + static inline __host__ __device__ double max() { return DBL_MAX; } + static inline __host__ __device__ double lower_bound() { return -inf; } + static inline __host__ __device__ double upper_bound() { return inf; } +}; + +} // namespace at diff --git a/shared/package-files/3e/3ee9584a994bb4eb4b44af6446bf04a009e9a62f71bffd6a516ed8991f7c3b28/fill_meta_dispatch.h b/shared/package-files/3e/3ee9584a994bb4eb4b44af6446bf04a009e9a62f71bffd6a516ed8991f7c3b28/fill_meta_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..97fe69bc140d0408365f51e546b2ebbc0350a031 --- /dev/null +++ b/shared/package-files/3e/3ee9584a994bb4eb4b44af6446bf04a009e9a62f71bffd6a516ed8991f7c3b28/fill_meta_dispatch.h @@ -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 & fill_(at::Tensor & self, const at::Scalar & value); +TORCH_API at::Tensor & fill_(at::Tensor & self, const at::Tensor & value); + +} // namespace meta +} // namespace at diff --git a/shared/package-files/3e/3eec22d346ec8e83f211755ee10dcb1c1e515038130022135d4b1fb84b16a612/fft_irfft2.h b/shared/package-files/3e/3eec22d346ec8e83f211755ee10dcb1c1e515038130022135d4b1fb84b16a612/fft_irfft2.h new file mode 100644 index 0000000000000000000000000000000000000000..713b32d5c919d4caec56c746bef4ac8e0fca5139 --- /dev/null +++ b/shared/package-files/3e/3eec22d346ec8e83f211755ee10dcb1c1e515038130022135d4b1fb84b16a612/fft_irfft2.h @@ -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::fft_irfft2(Tensor self, SymInt[1]? s=None, int[1] dim=[-2,-1], str? norm=None) -> Tensor +inline at::Tensor fft_irfft2(const at::Tensor & self, at::OptionalIntArrayRef s=c10::nullopt, at::IntArrayRef dim={-2,-1}, c10::optional norm=c10::nullopt) { + return at::_ops::fft_irfft2::call(self, s.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*s)) : c10::nullopt, dim, norm); +} +namespace symint { + template ::value>> + at::Tensor fft_irfft2(const at::Tensor & self, at::OptionalIntArrayRef s=c10::nullopt, at::IntArrayRef dim={-2,-1}, c10::optional norm=c10::nullopt) { + return at::_ops::fft_irfft2::call(self, s.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*s)) : c10::nullopt, dim, norm); + } +} + +// aten::fft_irfft2(Tensor self, SymInt[1]? s=None, int[1] dim=[-2,-1], str? norm=None) -> Tensor +inline at::Tensor fft_irfft2_symint(const at::Tensor & self, at::OptionalSymIntArrayRef s=c10::nullopt, at::IntArrayRef dim={-2,-1}, c10::optional norm=c10::nullopt) { + return at::_ops::fft_irfft2::call(self, s, dim, norm); +} +namespace symint { + template ::value>> + at::Tensor fft_irfft2(const at::Tensor & self, at::OptionalSymIntArrayRef s=c10::nullopt, at::IntArrayRef dim={-2,-1}, c10::optional norm=c10::nullopt) { + return at::_ops::fft_irfft2::call(self, s, dim, norm); + } +} + +// aten::fft_irfft2.out(Tensor self, SymInt[1]? s=None, int[1] dim=[-2,-1], str? norm=None, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & fft_irfft2_out(at::Tensor & out, const at::Tensor & self, at::OptionalIntArrayRef s=c10::nullopt, at::IntArrayRef dim={-2,-1}, c10::optional norm=c10::nullopt) { + return at::_ops::fft_irfft2_out::call(self, s.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*s)) : c10::nullopt, dim, norm, out); +} +namespace symint { + template ::value>> + at::Tensor & fft_irfft2_out(at::Tensor & out, const at::Tensor & self, at::OptionalIntArrayRef s=c10::nullopt, at::IntArrayRef dim={-2,-1}, c10::optional norm=c10::nullopt) { + return at::_ops::fft_irfft2_out::call(self, s.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*s)) : c10::nullopt, dim, norm, out); + } +} + +// aten::fft_irfft2.out(Tensor self, SymInt[1]? s=None, int[1] dim=[-2,-1], str? norm=None, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & fft_irfft2_outf(const at::Tensor & self, at::OptionalIntArrayRef s, at::IntArrayRef dim, c10::optional norm, at::Tensor & out) { + return at::_ops::fft_irfft2_out::call(self, s.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*s)) : c10::nullopt, dim, norm, out); +} +namespace symint { + template ::value>> + at::Tensor & fft_irfft2_outf(const at::Tensor & self, at::OptionalIntArrayRef s, at::IntArrayRef dim, c10::optional norm, at::Tensor & out) { + return at::_ops::fft_irfft2_out::call(self, s.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*s)) : c10::nullopt, dim, norm, out); + } +} + +// aten::fft_irfft2.out(Tensor self, SymInt[1]? s=None, int[1] dim=[-2,-1], str? norm=None, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & fft_irfft2_symint_out(at::Tensor & out, const at::Tensor & self, at::OptionalSymIntArrayRef s=c10::nullopt, at::IntArrayRef dim={-2,-1}, c10::optional norm=c10::nullopt) { + return at::_ops::fft_irfft2_out::call(self, s, dim, norm, out); +} +namespace symint { + template ::value>> + at::Tensor & fft_irfft2_out(at::Tensor & out, const at::Tensor & self, at::OptionalSymIntArrayRef s=c10::nullopt, at::IntArrayRef dim={-2,-1}, c10::optional norm=c10::nullopt) { + return at::_ops::fft_irfft2_out::call(self, s, dim, norm, out); + } +} + +// aten::fft_irfft2.out(Tensor self, SymInt[1]? s=None, int[1] dim=[-2,-1], str? norm=None, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & fft_irfft2_symint_outf(const at::Tensor & self, at::OptionalSymIntArrayRef s, at::IntArrayRef dim, c10::optional norm, at::Tensor & out) { + return at::_ops::fft_irfft2_out::call(self, s, dim, norm, out); +} +namespace symint { + template ::value>> + at::Tensor & fft_irfft2_outf(const at::Tensor & self, at::OptionalSymIntArrayRef s, at::IntArrayRef dim, c10::optional norm, at::Tensor & out) { + return at::_ops::fft_irfft2_out::call(self, s, dim, norm, out); + } +} + +} diff --git a/shared/package-files/3e/3eec406046c60d9f86bd91413e1a4a027379f77e5647975159a19b85d50dd4d7/__init__.pyi b/shared/package-files/3e/3eec406046c60d9f86bd91413e1a4a027379f77e5647975159a19b85d50dd4d7/__init__.pyi new file mode 100644 index 0000000000000000000000000000000000000000..a95fde106535553067230c337cc7f60cd4518fc7 --- /dev/null +++ b/shared/package-files/3e/3eec406046c60d9f86bd91413e1a4a027379f77e5647975159a19b85d50dd4d7/__init__.pyi @@ -0,0 +1,33 @@ +import sys +from typing import IO, Any, Iterable, List, NoReturn, Optional, Text, Union +from xml.sax.handler import ContentHandler, ErrorHandler +from xml.sax.xmlreader import Locator, XMLReader + +class SAXException(Exception): + def __init__(self, msg: str, exception: Optional[Exception] = ...) -> None: ... + def getMessage(self) -> str: ... + def getException(self) -> Exception: ... + def __getitem__(self, ix: Any) -> NoReturn: ... + +class SAXParseException(SAXException): + def __init__(self, msg: str, exception: Exception, locator: Locator) -> None: ... + def getColumnNumber(self) -> int: ... + def getLineNumber(self) -> int: ... + def getPublicId(self): ... + def getSystemId(self): ... + +class SAXNotRecognizedException(SAXException): ... +class SAXNotSupportedException(SAXException): ... +class SAXReaderNotAvailable(SAXNotSupportedException): ... + +default_parser_list: List[str] + +if sys.version_info >= (3, 8): + def make_parser(parser_list: Iterable[str] = ...) -> XMLReader: ... + +else: + def make_parser(parser_list: List[str] = ...) -> XMLReader: ... + +def parse(source: Union[str, IO[str], IO[bytes]], handler: ContentHandler, errorHandler: ErrorHandler = ...) -> None: ... +def parseString(string: Union[bytes, Text], handler: ContentHandler, errorHandler: Optional[ErrorHandler] = ...) -> None: ... +def _create_parser(parser_name: str) -> XMLReader: ... diff --git a/shared/package-files/3e/3eec6a0f6703f7d3f38dbf211fdf43c2cd39dddff35e76478de1f4919f0b48b2/Bermuda b/shared/package-files/3e/3eec6a0f6703f7d3f38dbf211fdf43c2cd39dddff35e76478de1f4919f0b48b2/Bermuda new file mode 100644 index 0000000000000000000000000000000000000000..abc75ea7ef87f054cdcea06728b99e3540108860 Binary files /dev/null and b/shared/package-files/3e/3eec6a0f6703f7d3f38dbf211fdf43c2cd39dddff35e76478de1f4919f0b48b2/Bermuda differ diff --git a/shared/package-files/3e/3eed50fb1bce5be8bd9cd01ba8d2520e82c70f294d9051ddd861c5bed9be7106/libjpeg.pc b/shared/package-files/3e/3eed50fb1bce5be8bd9cd01ba8d2520e82c70f294d9051ddd861c5bed9be7106/libjpeg.pc new file mode 100644 index 0000000000000000000000000000000000000000..8bebae804b4c01ee2784c3ceaede87cfe158e93b --- /dev/null +++ b/shared/package-files/3e/3eed50fb1bce5be8bd9cd01ba8d2520e82c70f294d9051ddd861c5bed9be7106/libjpeg.pc @@ -0,0 +1,10 @@ +prefix=/opt/conda +exec_prefix=/opt/conda +libdir=/opt/conda/lib +includedir=/opt/conda/include + +Name: libjpeg +Description: A SIMD-accelerated JPEG codec that provides the libjpeg API +Version: 2.0.0 +Libs: -L${libdir} -ljpeg +Cflags: -I${includedir} diff --git a/shared/package-files/3e/3eef79d73e3261830e5c129c36d787eb785303198d5fcef4da74901ffa5c8851/test_index_methods.py b/shared/package-files/3e/3eef79d73e3261830e5c129c36d787eb785303198d5fcef4da74901ffa5c8851/test_index_methods.py new file mode 100644 index 0000000000000000000000000000000000000000..df20f7e7c1ab392321e8350b95dd07c5639c1865 --- /dev/null +++ b/shared/package-files/3e/3eef79d73e3261830e5c129c36d787eb785303198d5fcef4da74901ffa5c8851/test_index_methods.py @@ -0,0 +1,227 @@ +from sympy.core import symbols, S, Pow, Function +from sympy.functions import exp +from sympy.testing.pytest import raises +from sympy.tensor.indexed import Idx, IndexedBase +from sympy.tensor.index_methods import IndexConformanceException + +from sympy.tensor.index_methods import (get_contraction_structure, get_indices) + + +def test_trivial_indices(): + x, y = symbols('x y') + assert get_indices(x) == (set(), {}) + assert get_indices(x*y) == (set(), {}) + assert get_indices(x + y) == (set(), {}) + assert get_indices(x**y) == (set(), {}) + + +def test_get_indices_Indexed(): + x = IndexedBase('x') + i, j = Idx('i'), Idx('j') + assert get_indices(x[i, j]) == ({i, j}, {}) + assert get_indices(x[j, i]) == ({j, i}, {}) + + +def test_get_indices_Idx(): + f = Function('f') + i, j = Idx('i'), Idx('j') + assert get_indices(f(i)*j) == ({i, j}, {}) + assert get_indices(f(j, i)) == ({j, i}, {}) + assert get_indices(f(i)*i) == (set(), {}) + + +def test_get_indices_mul(): + x = IndexedBase('x') + y = IndexedBase('y') + i, j = Idx('i'), Idx('j') + assert get_indices(x[j]*y[i]) == ({i, j}, {}) + assert get_indices(x[i]*y[j]) == ({i, j}, {}) + + +def test_get_indices_exceptions(): + x = IndexedBase('x') + y = IndexedBase('y') + i, j = Idx('i'), Idx('j') + raises(IndexConformanceException, lambda: get_indices(x[i] + y[j])) + + +def test_scalar_broadcast(): + x = IndexedBase('x') + y = IndexedBase('y') + i, j = Idx('i'), Idx('j') + assert get_indices(x[i] + y[i, i]) == ({i}, {}) + assert get_indices(x[i] + y[j, j]) == ({i}, {}) + + +def test_get_indices_add(): + x = IndexedBase('x') + y = IndexedBase('y') + A = IndexedBase('A') + i, j, k = Idx('i'), Idx('j'), Idx('k') + assert get_indices(x[i] + 2*y[i]) == ({i}, {}) + assert get_indices(y[i] + 2*A[i, j]*x[j]) == ({i}, {}) + assert get_indices(y[i] + 2*(x[i] + A[i, j]*x[j])) == ({i}, {}) + assert get_indices(y[i] + x[i]*(A[j, j] + 1)) == ({i}, {}) + assert get_indices( + y[i] + x[i]*x[j]*(y[j] + A[j, k]*x[k])) == ({i}, {}) + + +def test_get_indices_Pow(): + x = IndexedBase('x') + y = IndexedBase('y') + A = IndexedBase('A') + i, j, k = Idx('i'), Idx('j'), Idx('k') + assert get_indices(Pow(x[i], y[j])) == ({i, j}, {}) + assert get_indices(Pow(x[i, k], y[j, k])) == ({i, j, k}, {}) + assert get_indices(Pow(A[i, k], y[k] + A[k, j]*x[j])) == ({i, k}, {}) + assert get_indices(Pow(2, x[i])) == get_indices(exp(x[i])) + + # test of a design decision, this may change: + assert get_indices(Pow(x[i], 2)) == ({i}, {}) + + +def test_get_contraction_structure_basic(): + x = IndexedBase('x') + y = IndexedBase('y') + i, j = Idx('i'), Idx('j') + assert get_contraction_structure(x[i]*y[j]) == {None: {x[i]*y[j]}} + assert get_contraction_structure(x[i] + y[j]) == {None: {x[i], y[j]}} + assert get_contraction_structure(x[i]*y[i]) == {(i,): {x[i]*y[i]}} + assert get_contraction_structure( + 1 + x[i]*y[i]) == {None: {S.One}, (i,): {x[i]*y[i]}} + assert get_contraction_structure(x[i]**y[i]) == {None: {x[i]**y[i]}} + + +def test_get_contraction_structure_complex(): + x = IndexedBase('x') + y = IndexedBase('y') + A = IndexedBase('A') + i, j, k = Idx('i'), Idx('j'), Idx('k') + expr1 = y[i] + A[i, j]*x[j] + d1 = {None: {y[i]}, (j,): {A[i, j]*x[j]}} + assert get_contraction_structure(expr1) == d1 + expr2 = expr1*A[k, i] + x[k] + d2 = {None: {x[k]}, (i,): {expr1*A[k, i]}, expr1*A[k, i]: [d1]} + assert get_contraction_structure(expr2) == d2 + + +def test_contraction_structure_simple_Pow(): + x = IndexedBase('x') + y = IndexedBase('y') + i, j, k = Idx('i'), Idx('j'), Idx('k') + ii_jj = x[i, i]**y[j, j] + assert get_contraction_structure(ii_jj) == { + None: {ii_jj}, + ii_jj: [ + {(i,): {x[i, i]}}, + {(j,): {y[j, j]}} + ] + } + + ii_jk = x[i, i]**y[j, k] + assert get_contraction_structure(ii_jk) == { + None: {x[i, i]**y[j, k]}, + x[i, i]**y[j, k]: [ + {(i,): {x[i, i]}} + ] + } + + +def test_contraction_structure_Mul_and_Pow(): + x = IndexedBase('x') + y = IndexedBase('y') + i, j, k = Idx('i'), Idx('j'), Idx('k') + + i_ji = x[i]**(y[j]*x[i]) + assert get_contraction_structure(i_ji) == {None: {i_ji}} + ij_i = (x[i]*y[j])**(y[i]) + assert get_contraction_structure(ij_i) == {None: {ij_i}} + j_ij_i = x[j]*(x[i]*y[j])**(y[i]) + assert get_contraction_structure(j_ij_i) == {(j,): {j_ij_i}} + j_i_ji = x[j]*x[i]**(y[j]*x[i]) + assert get_contraction_structure(j_i_ji) == {(j,): {j_i_ji}} + ij_exp_kki = x[i]*y[j]*exp(y[i]*y[k, k]) + result = get_contraction_structure(ij_exp_kki) + expected = { + (i,): {ij_exp_kki}, + ij_exp_kki: [{ + None: {exp(y[i]*y[k, k])}, + exp(y[i]*y[k, k]): [{ + None: {y[i]*y[k, k]}, + y[i]*y[k, k]: [{(k,): {y[k, k]}}] + }]} + ] + } + assert result == expected + + +def test_contraction_structure_Add_in_Pow(): + x = IndexedBase('x') + y = IndexedBase('y') + i, j, k = Idx('i'), Idx('j'), Idx('k') + s_ii_jj_s = (1 + x[i, i])**(1 + y[j, j]) + expected = { + None: {s_ii_jj_s}, + s_ii_jj_s: [ + {None: {S.One}, (i,): {x[i, i]}}, + {None: {S.One}, (j,): {y[j, j]}} + ] + } + result = get_contraction_structure(s_ii_jj_s) + assert result == expected + + s_ii_jk_s = (1 + x[i, i]) ** (1 + y[j, k]) + expected_2 = { + None: {(x[i, i] + 1)**(y[j, k] + 1)}, + s_ii_jk_s: [ + {None: {S.One}, (i,): {x[i, i]}} + ] + } + result_2 = get_contraction_structure(s_ii_jk_s) + assert result_2 == expected_2 + + +def test_contraction_structure_Pow_in_Pow(): + x = IndexedBase('x') + y = IndexedBase('y') + z = IndexedBase('z') + i, j, k = Idx('i'), Idx('j'), Idx('k') + ii_jj_kk = x[i, i]**y[j, j]**z[k, k] + expected = { + None: {ii_jj_kk}, + ii_jj_kk: [ + {(i,): {x[i, i]}}, + { + None: {y[j, j]**z[k, k]}, + y[j, j]**z[k, k]: [ + {(j,): {y[j, j]}}, + {(k,): {z[k, k]}} + ] + } + ] + } + assert get_contraction_structure(ii_jj_kk) == expected + + +def test_ufunc_support(): + f = Function('f') + g = Function('g') + x = IndexedBase('x') + y = IndexedBase('y') + i, j = Idx('i'), Idx('j') + a = symbols('a') + + assert get_indices(f(x[i])) == ({i}, {}) + assert get_indices(f(x[i], y[j])) == ({i, j}, {}) + assert get_indices(f(y[i])*g(x[i])) == (set(), {}) + assert get_indices(f(a, x[i])) == ({i}, {}) + assert get_indices(f(a, y[i], x[j])*g(x[i])) == ({j}, {}) + assert get_indices(g(f(x[i]))) == ({i}, {}) + + assert get_contraction_structure(f(x[i])) == {None: {f(x[i])}} + assert get_contraction_structure( + f(y[i])*g(x[i])) == {(i,): {f(y[i])*g(x[i])}} + assert get_contraction_structure( + f(y[i])*g(f(x[i]))) == {(i,): {f(y[i])*g(f(x[i]))}} + assert get_contraction_structure( + f(x[j], y[i])*g(x[i])) == {(i,): {f(x[j], y[i])*g(x[i])}} diff --git a/shared/package-files/3e/3ef0bd0207834b8093af03d4b7d1b67d479b10b571a322273096ff6900125320/miopen_rnn_compositeexplicitautograd_dispatch.h b/shared/package-files/3e/3ef0bd0207834b8093af03d4b7d1b67d479b10b571a322273096ff6900125320/miopen_rnn_compositeexplicitautograd_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..70e6378179530cd1f66725d6717e3e3425c7ba4e --- /dev/null +++ b/shared/package-files/3e/3ef0bd0207834b8093af03d4b7d1b67d479b10b571a322273096ff6900125320/miopen_rnn_compositeexplicitautograd_dispatch.h @@ -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 compositeexplicitautograd { + +TORCH_API ::std::tuple miopen_rnn_out(at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, at::Tensor & out3, at::Tensor & out4, const at::Tensor & input, at::TensorList weight, int64_t weight_stride0, const at::Tensor & hx, const c10::optional & cx, int64_t mode, int64_t hidden_size, int64_t num_layers, bool batch_first, double dropout, bool train, bool bidirectional, at::IntArrayRef batch_sizes, const c10::optional & dropout_state); +TORCH_API ::std::tuple miopen_rnn_outf(const at::Tensor & input, at::TensorList weight, int64_t weight_stride0, const at::Tensor & hx, const c10::optional & cx, int64_t mode, int64_t hidden_size, int64_t num_layers, bool batch_first, double dropout, bool train, bool bidirectional, at::IntArrayRef batch_sizes, const c10::optional & dropout_state, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, at::Tensor & out3, at::Tensor & out4); + +} // namespace compositeexplicitautograd +} // namespace at diff --git a/shared/package-files/3e/3ef1da15a7140f2c50e0f7c7333829d8abd62bb13424ac1754d4fc099074b4b3/from_file_cpu_dispatch.h b/shared/package-files/3e/3ef1da15a7140f2c50e0f7c7333829d8abd62bb13424ac1754d4fc099074b4b3/from_file_cpu_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..9e14e31da1c9fb135f83d1c84ce66b8418b0c533 --- /dev/null +++ b/shared/package-files/3e/3ef1da15a7140f2c50e0f7c7333829d8abd62bb13424ac1754d4fc099074b4b3/from_file_cpu_dispatch.h @@ -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 at::Tensor from_file(c10::string_view filename, c10::optional shared=c10::nullopt, c10::optional size=0, at::TensorOptions options={}); +TORCH_API at::Tensor from_file(c10::string_view filename, c10::optional shared, c10::optional size, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory); + +} // namespace cpu +} // namespace at diff --git a/shared/package-files/3e/3ef343ba4437ec96d98fc8ca8aca737e625191f9c6745c73a6b8f4724b9a4fea/test_http_headers.py b/shared/package-files/3e/3ef343ba4437ec96d98fc8ca8aca737e625191f9c6745c73a6b8f4724b9a4fea/test_http_headers.py new file mode 100644 index 0000000000000000000000000000000000000000..9918435cae15b000171efad0242c652a31859505 --- /dev/null +++ b/shared/package-files/3e/3ef343ba4437ec96d98fc8ca8aca737e625191f9c6745c73a6b8f4724b9a4fea/test_http_headers.py @@ -0,0 +1,175 @@ +""" +Tests for the pandas custom headers in http(s) requests +""" +from functools import partial +import gzip +from io import BytesIO + +import pytest + +from pandas._config import using_string_dtype + +import pandas.util._test_decorators as td + +import pandas as pd +import pandas._testing as tm + +pytestmark = [ + pytest.mark.single_cpu, + pytest.mark.network, + pytest.mark.filterwarnings( + "ignore:Passing a BlockManager to DataFrame:DeprecationWarning" + ), +] + + +def gzip_bytes(response_bytes): + with BytesIO() as bio: + with gzip.GzipFile(fileobj=bio, mode="w") as zipper: + zipper.write(response_bytes) + return bio.getvalue() + + +def csv_responder(df): + return df.to_csv(index=False).encode("utf-8") + + +def gz_csv_responder(df): + return gzip_bytes(csv_responder(df)) + + +def json_responder(df): + return df.to_json().encode("utf-8") + + +def gz_json_responder(df): + return gzip_bytes(json_responder(df)) + + +def html_responder(df): + return df.to_html(index=False).encode("utf-8") + + +def parquetpyarrow_reponder(df): + return df.to_parquet(index=False, engine="pyarrow") + + +def parquetfastparquet_responder(df): + # the fastparquet engine doesn't like to write to a buffer + # it can do it via the open_with function being set appropriately + # however it automatically calls the close method and wipes the buffer + # so just overwrite that attribute on this instance to not do that + + # protected by an importorskip in the respective test + import fsspec + + df.to_parquet( + "memory://fastparquet_user_agent.parquet", + index=False, + engine="fastparquet", + compression=None, + ) + with fsspec.open("memory://fastparquet_user_agent.parquet", "rb") as f: + return f.read() + + +def pickle_respnder(df): + with BytesIO() as bio: + df.to_pickle(bio) + return bio.getvalue() + + +def stata_responder(df): + with BytesIO() as bio: + df.to_stata(bio, write_index=False) + return bio.getvalue() + + +@pytest.mark.parametrize( + "responder, read_method", + [ + (csv_responder, pd.read_csv), + (json_responder, pd.read_json), + ( + html_responder, + lambda *args, **kwargs: pd.read_html(*args, **kwargs)[0], + ), + pytest.param( + parquetpyarrow_reponder, + partial(pd.read_parquet, engine="pyarrow"), + marks=td.skip_if_no("pyarrow"), + ), + pytest.param( + parquetfastparquet_responder, + partial(pd.read_parquet, engine="fastparquet"), + # TODO(ArrayManager) fastparquet + marks=[ + td.skip_if_no("fastparquet"), + td.skip_if_no("fsspec"), + td.skip_array_manager_not_yet_implemented, + pytest.mark.xfail(using_string_dtype(), reason="TODO(infer_string"), + ], + ), + (pickle_respnder, pd.read_pickle), + (stata_responder, pd.read_stata), + (gz_csv_responder, pd.read_csv), + (gz_json_responder, pd.read_json), + ], +) +@pytest.mark.parametrize( + "storage_options", + [ + None, + {"User-Agent": "foo"}, + {"User-Agent": "foo", "Auth": "bar"}, + ], +) +def test_request_headers(responder, read_method, httpserver, storage_options): + expected = pd.DataFrame({"a": ["b"]}) + default_headers = ["Accept-Encoding", "Host", "Connection", "User-Agent"] + if "gz" in responder.__name__: + extra = {"Content-Encoding": "gzip"} + if storage_options is None: + storage_options = extra + else: + storage_options |= extra + else: + extra = None + expected_headers = set(default_headers).union( + storage_options.keys() if storage_options else [] + ) + httpserver.serve_content(content=responder(expected), headers=extra) + result = read_method(httpserver.url, storage_options=storage_options) + tm.assert_frame_equal(result, expected) + + request_headers = dict(httpserver.requests[0].headers) + for header in expected_headers: + exp = request_headers.pop(header) + if storage_options and header in storage_options: + assert exp == storage_options[header] + # No extra headers added + assert not request_headers + + +@pytest.mark.parametrize( + "engine", + [ + "pyarrow", + "fastparquet", + ], +) +def test_to_parquet_to_disk_with_storage_options(engine): + headers = { + "User-Agent": "custom", + "Auth": "other_custom", + } + + pytest.importorskip(engine) + + true_df = pd.DataFrame({"column_name": ["column_value"]}) + msg = ( + "storage_options passed with file object or non-fsspec file path|" + "storage_options passed with buffer, or non-supported URL" + ) + with pytest.raises(ValueError, match=msg): + true_df.to_parquet("/tmp/junk.parquet", storage_options=headers, engine=engine) diff --git a/shared/package-files/3e/3ef429d7a917a4dbc633e9fbbb19a077ca4ca840ba9112c839632d3ce1631461/darwin-144x48-m b/shared/package-files/3e/3ef429d7a917a4dbc633e9fbbb19a077ca4ca840ba9112c839632d3ce1631461/darwin-144x48-m new file mode 100644 index 0000000000000000000000000000000000000000..a489ec63b23c5a6cf892f4a15cd4860cfbfe17e8 Binary files /dev/null and b/shared/package-files/3e/3ef429d7a917a4dbc633e9fbbb19a077ca4ca840ba9112c839632d3ce1631461/darwin-144x48-m differ diff --git a/shared/package-files/3e/3ef429d7a917a4dbc633e9fbbb19a077ca4ca840ba9112c839632d3ce1631461/xnuppc-144x48-m b/shared/package-files/3e/3ef429d7a917a4dbc633e9fbbb19a077ca4ca840ba9112c839632d3ce1631461/xnuppc-144x48-m new file mode 100644 index 0000000000000000000000000000000000000000..a489ec63b23c5a6cf892f4a15cd4860cfbfe17e8 Binary files /dev/null and b/shared/package-files/3e/3ef429d7a917a4dbc633e9fbbb19a077ca4ca840ba9112c839632d3ce1631461/xnuppc-144x48-m differ diff --git a/shared/package-files/3e/3ef6815ed8f8dabc39919520cb20fd36fa36354f512d80f2e58ace9b855eb14f/feature_alpha_dropout_native.h b/shared/package-files/3e/3ef6815ed8f8dabc39919520cb20fd36fa36354f512d80f2e58ace9b855eb14f/feature_alpha_dropout_native.h new file mode 100644 index 0000000000000000000000000000000000000000..af648fcf4982fb2a6d5eba9ac93d85fb8a15b220 --- /dev/null +++ b/shared/package-files/3e/3ef6815ed8f8dabc39919520cb20fd36fa36354f512d80f2e58ace9b855eb14f/feature_alpha_dropout_native.h @@ -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 feature_alpha_dropout(const at::Tensor & input, double p, bool train); +TORCH_API at::Tensor & feature_alpha_dropout_(at::Tensor & self, double p, bool train); +} // namespace native +} // namespace at diff --git a/shared/package-files/3e/3ef7da6e9518705e3fedcb180d37136ae103f2b9c510661b758e51a935c3d3cb/json_schema_test_suite.py b/shared/package-files/3e/3ef7da6e9518705e3fedcb180d37136ae103f2b9c510661b758e51a935c3d3cb/json_schema_test_suite.py new file mode 100644 index 0000000000000000000000000000000000000000..905fb6a3b88faf56e3288f7eb5053172f97abe8b --- /dev/null +++ b/shared/package-files/3e/3ef7da6e9518705e3fedcb180d37136ae103f2b9c510661b758e51a935c3d3cb/json_schema_test_suite.py @@ -0,0 +1,12 @@ +""" +A performance benchmark using the official test suite. + +This benchmarks jsonschema using every valid example in the +JSON-Schema-Test-Suite. It will take some time to complete. +""" +from pyperf import Runner + +from jsonschema.tests._suite import Suite + +if __name__ == "__main__": + Suite().benchmark(runner=Runner()) diff --git a/shared/package-files/43/4301b2b74b67badba8bb6e664b4bb62e34600d3608ea884cd9c6d9f877ba3ace/test_bdtr.py b/shared/package-files/43/4301b2b74b67badba8bb6e664b4bb62e34600d3608ea884cd9c6d9f877ba3ace/test_bdtr.py new file mode 100644 index 0000000000000000000000000000000000000000..57694becc49b2028f17eac819b80a225ac010795 --- /dev/null +++ b/shared/package-files/43/4301b2b74b67badba8bb6e664b4bb62e34600d3608ea884cd9c6d9f877ba3ace/test_bdtr.py @@ -0,0 +1,112 @@ +import numpy as np +import scipy.special as sc +import pytest +from numpy.testing import assert_allclose, assert_array_equal, suppress_warnings + + +class TestBdtr: + def test(self): + val = sc.bdtr(0, 1, 0.5) + assert_allclose(val, 0.5) + + def test_sum_is_one(self): + val = sc.bdtr([0, 1, 2], 2, 0.5) + assert_array_equal(val, [0.25, 0.75, 1.0]) + + def test_rounding(self): + double_val = sc.bdtr([0.1, 1.1, 2.1], 2, 0.5) + int_val = sc.bdtr([0, 1, 2], 2, 0.5) + assert_array_equal(double_val, int_val) + + @pytest.mark.parametrize('k, n, p', [ + (np.inf, 2, 0.5), + (1.0, np.inf, 0.5), + (1.0, 2, np.inf) + ]) + def test_inf(self, k, n, p): + with suppress_warnings() as sup: + sup.filter(DeprecationWarning) + val = sc.bdtr(k, n, p) + assert np.isnan(val) + + def test_domain(self): + val = sc.bdtr(-1.1, 1, 0.5) + assert np.isnan(val) + + +class TestBdtrc: + def test_value(self): + val = sc.bdtrc(0, 1, 0.5) + assert_allclose(val, 0.5) + + def test_sum_is_one(self): + val = sc.bdtrc([0, 1, 2], 2, 0.5) + assert_array_equal(val, [0.75, 0.25, 0.0]) + + def test_rounding(self): + double_val = sc.bdtrc([0.1, 1.1, 2.1], 2, 0.5) + int_val = sc.bdtrc([0, 1, 2], 2, 0.5) + assert_array_equal(double_val, int_val) + + @pytest.mark.parametrize('k, n, p', [ + (np.inf, 2, 0.5), + (1.0, np.inf, 0.5), + (1.0, 2, np.inf) + ]) + def test_inf(self, k, n, p): + with suppress_warnings() as sup: + sup.filter(DeprecationWarning) + val = sc.bdtrc(k, n, p) + assert np.isnan(val) + + def test_domain(self): + val = sc.bdtrc(-1.1, 1, 0.5) + val2 = sc.bdtrc(2.1, 1, 0.5) + assert np.isnan(val2) + assert_allclose(val, 1.0) + + def test_bdtr_bdtrc_sum_to_one(self): + bdtr_vals = sc.bdtr([0, 1, 2], 2, 0.5) + bdtrc_vals = sc.bdtrc([0, 1, 2], 2, 0.5) + vals = bdtr_vals + bdtrc_vals + assert_allclose(vals, [1.0, 1.0, 1.0]) + + +class TestBdtri: + def test_value(self): + val = sc.bdtri(0, 1, 0.5) + assert_allclose(val, 0.5) + + def test_sum_is_one(self): + val = sc.bdtri([0, 1], 2, 0.5) + actual = np.asarray([1 - 1/np.sqrt(2), 1/np.sqrt(2)]) + assert_allclose(val, actual) + + def test_rounding(self): + double_val = sc.bdtri([0.1, 1.1], 2, 0.5) + int_val = sc.bdtri([0, 1], 2, 0.5) + assert_allclose(double_val, int_val) + + @pytest.mark.parametrize('k, n, p', [ + (np.inf, 2, 0.5), + (1.0, np.inf, 0.5), + (1.0, 2, np.inf) + ]) + def test_inf(self, k, n, p): + with suppress_warnings() as sup: + sup.filter(DeprecationWarning) + val = sc.bdtri(k, n, p) + assert np.isnan(val) + + @pytest.mark.parametrize('k, n, p', [ + (-1.1, 1, 0.5), + (2.1, 1, 0.5) + ]) + def test_domain(self, k, n, p): + val = sc.bdtri(k, n, p) + assert np.isnan(val) + + def test_bdtr_bdtri_roundtrip(self): + bdtr_vals = sc.bdtr([0, 1, 2], 2, 0.5) + roundtrip_vals = sc.bdtri([0, 1, 2], 2, bdtr_vals) + assert_allclose(roundtrip_vals, [0.5, 0.5, np.nan]) diff --git a/shared/package-files/43/430247c7d47bd0b166713b8a8cb705ade7f40bde1921a7e90f7522b5d528edbb/resize_as_sparse_compositeexplicitautograd_dispatch.h b/shared/package-files/43/430247c7d47bd0b166713b8a8cb705ade7f40bde1921a7e90f7522b5d528edbb/resize_as_sparse_compositeexplicitautograd_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..468897e957bb1ebcff5d66863de0b29543ca4fd2 --- /dev/null +++ b/shared/package-files/43/430247c7d47bd0b166713b8a8cb705ade7f40bde1921a7e90f7522b5d528edbb/resize_as_sparse_compositeexplicitautograd_dispatch.h @@ -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 compositeexplicitautograd { + +TORCH_API at::Tensor resize_as_sparse(const at::Tensor & self, const at::Tensor & the_template); +TORCH_API const at::Tensor & resize_as_sparse_out(const at::Tensor & out, const at::Tensor & self, const at::Tensor & the_template); +TORCH_API const at::Tensor & resize_as_sparse_outf(const at::Tensor & self, const at::Tensor & the_template, const at::Tensor & out); + +} // namespace compositeexplicitautograd +} // namespace at diff --git a/shared/package-files/43/4303dddc93afa2dd629e950461ec6163793f355a193f5ef18a3c086cc68011e7/_operand_flag_tests.cpython-310-x86_64-linux-gnu.so b/shared/package-files/43/4303dddc93afa2dd629e950461ec6163793f355a193f5ef18a3c086cc68011e7/_operand_flag_tests.cpython-310-x86_64-linux-gnu.so new file mode 100644 index 0000000000000000000000000000000000000000..fb1f207ed3d9c0824fc27325aec4677730d27bf3 Binary files /dev/null and b/shared/package-files/43/4303dddc93afa2dd629e950461ec6163793f355a193f5ef18a3c086cc68011e7/_operand_flag_tests.cpython-310-x86_64-linux-gnu.so differ diff --git a/shared/package-files/43/4305da1ea25c27fce08bd14001b76fd54fe42a0724bbd5168c76680a56eda5be/grammar310.txt b/shared/package-files/43/4305da1ea25c27fce08bd14001b76fd54fe42a0724bbd5168c76680a56eda5be/grammar310.txt new file mode 100644 index 0000000000000000000000000000000000000000..f092050d881db65ec25e1cebbc34921500b60eca --- /dev/null +++ b/shared/package-files/43/4305da1ea25c27fce08bd14001b76fd54fe42a0724bbd5168c76680a56eda5be/grammar310.txt @@ -0,0 +1,169 @@ +# Grammar for Python + +# NOTE WELL: You should also follow all the steps listed at +# https://devguide.python.org/grammar/ + +# Start symbols for the grammar: +# single_input is a single interactive statement; +# file_input is a module or sequence of commands read from an input file; +# eval_input is the input for the eval() functions. +# NB: compound_stmt in single_input is followed by extra NEWLINE! +single_input: NEWLINE | simple_stmt | compound_stmt NEWLINE +file_input: stmt* ENDMARKER +eval_input: testlist NEWLINE* ENDMARKER + +decorator: '@' namedexpr_test NEWLINE +decorators: decorator+ +decorated: decorators (classdef | funcdef | async_funcdef) + +async_funcdef: 'async' funcdef +funcdef: 'def' NAME parameters ['->' test] ':' suite + +parameters: '(' [typedargslist] ')' +typedargslist: ( + (tfpdef ['=' test] (',' tfpdef ['=' test])* ',' '/' [',' [ tfpdef ['=' test] ( + ',' tfpdef ['=' test])* ([',' [ + '*' [tfpdef] (',' tfpdef ['=' test])* [',' ['**' tfpdef [',']]] + | '**' tfpdef [',']]]) + | '*' [tfpdef] (',' tfpdef ['=' test])* ([',' ['**' tfpdef [',']]]) + | '**' tfpdef [',']]] ) +| (tfpdef ['=' test] (',' tfpdef ['=' test])* [',' [ + '*' [tfpdef] (',' tfpdef ['=' test])* [',' ['**' tfpdef [',']]] + | '**' tfpdef [',']]] + | '*' [tfpdef] (',' tfpdef ['=' test])* [',' ['**' tfpdef [',']]] + | '**' tfpdef [',']) +) +tfpdef: NAME [':' test] +varargslist: vfpdef ['=' test ](',' vfpdef ['=' test])* ',' '/' [',' [ (vfpdef ['=' test] (',' vfpdef ['=' test])* [',' [ + '*' [vfpdef] (',' vfpdef ['=' test])* [',' ['**' vfpdef [',']]] + | '**' vfpdef [',']]] + | '*' [vfpdef] (',' vfpdef ['=' test])* [',' ['**' vfpdef [',']]] + | '**' vfpdef [',']) ]] | (vfpdef ['=' test] (',' vfpdef ['=' test])* [',' [ + '*' [vfpdef] (',' vfpdef ['=' test])* [',' ['**' vfpdef [',']]] + | '**' vfpdef [',']]] + | '*' [vfpdef] (',' vfpdef ['=' test])* [',' ['**' vfpdef [',']]] + | '**' vfpdef [','] +) +vfpdef: NAME + +stmt: simple_stmt | compound_stmt | NEWLINE +simple_stmt: small_stmt (';' small_stmt)* [';'] NEWLINE +small_stmt: (expr_stmt | del_stmt | pass_stmt | flow_stmt | + import_stmt | global_stmt | nonlocal_stmt | assert_stmt) +expr_stmt: testlist_star_expr (annassign | augassign (yield_expr|testlist) | + ('=' (yield_expr|testlist_star_expr))*) +annassign: ':' test ['=' (yield_expr|testlist_star_expr)] +testlist_star_expr: (test|star_expr) (',' (test|star_expr))* [','] +augassign: ('+=' | '-=' | '*=' | '@=' | '/=' | '%=' | '&=' | '|=' | '^=' | + '<<=' | '>>=' | '**=' | '//=') +# For normal and annotated assignments, additional restrictions enforced by the interpreter +del_stmt: 'del' exprlist +pass_stmt: 'pass' +flow_stmt: break_stmt | continue_stmt | return_stmt | raise_stmt | yield_stmt +break_stmt: 'break' +continue_stmt: 'continue' +return_stmt: 'return' [testlist_star_expr] +yield_stmt: yield_expr +raise_stmt: 'raise' [test ['from' test]] +import_stmt: import_name | import_from +import_name: 'import' dotted_as_names +# note below: the ('.' | '...') is necessary because '...' is tokenized as ELLIPSIS +import_from: ('from' (('.' | '...')* dotted_name | ('.' | '...')+) + 'import' ('*' | '(' import_as_names ')' | import_as_names)) +import_as_name: NAME ['as' NAME] +dotted_as_name: dotted_name ['as' NAME] +import_as_names: import_as_name (',' import_as_name)* [','] +dotted_as_names: dotted_as_name (',' dotted_as_name)* +dotted_name: NAME ('.' NAME)* +global_stmt: 'global' NAME (',' NAME)* +nonlocal_stmt: 'nonlocal' NAME (',' NAME)* +assert_stmt: 'assert' test [',' test] + +compound_stmt: if_stmt | while_stmt | for_stmt | try_stmt | with_stmt | funcdef | classdef | decorated | async_stmt +async_stmt: 'async' (funcdef | with_stmt | for_stmt) +if_stmt: 'if' namedexpr_test ':' suite ('elif' namedexpr_test ':' suite)* ['else' ':' suite] +while_stmt: 'while' namedexpr_test ':' suite ['else' ':' suite] +for_stmt: 'for' exprlist 'in' testlist ':' suite ['else' ':' suite] +try_stmt: ('try' ':' suite + ((except_clause ':' suite)+ + ['else' ':' suite] + ['finally' ':' suite] | + 'finally' ':' suite)) +with_stmt: 'with' with_item (',' with_item)* ':' suite +with_item: test ['as' expr] +# NB compile.c makes sure that the default except clause is last +except_clause: 'except' [test ['as' NAME]] +suite: simple_stmt | NEWLINE INDENT stmt+ DEDENT + +namedexpr_test: test [':=' test] +test: or_test ['if' or_test 'else' test] | lambdef +lambdef: 'lambda' [varargslist] ':' test +or_test: and_test ('or' and_test)* +and_test: not_test ('and' not_test)* +not_test: 'not' not_test | comparison +comparison: expr (comp_op expr)* +# <> isn't actually a valid comparison operator in Python. It's here for the +# sake of a __future__ import described in PEP 401 (which really works :-) +comp_op: '<'|'>'|'=='|'>='|'<='|'<>'|'!='|'in'|'not' 'in'|'is'|'is' 'not' +star_expr: '*' expr +expr: xor_expr ('|' xor_expr)* +xor_expr: and_expr ('^' and_expr)* +and_expr: shift_expr ('&' shift_expr)* +shift_expr: arith_expr (('<<'|'>>') arith_expr)* +arith_expr: term (('+'|'-') term)* +term: factor (('*'|'@'|'/'|'%'|'//') factor)* +factor: ('+'|'-'|'~') factor | power +power: atom_expr ['**' factor] +atom_expr: ['await'] atom trailer* +atom: ('(' [yield_expr|testlist_comp] ')' | + '[' [testlist_comp] ']' | + '{' [dictorsetmaker] '}' | + NAME | NUMBER | strings | '...' | 'None' | 'True' | 'False') +testlist_comp: (namedexpr_test|star_expr) ( comp_for | (',' (namedexpr_test|star_expr))* [','] ) +trailer: '(' [arglist] ')' | '[' subscriptlist ']' | '.' NAME +subscriptlist: subscript (',' subscript)* [','] +subscript: test [':=' test] | [test] ':' [test] [sliceop] +sliceop: ':' [test] +exprlist: (expr|star_expr) (',' (expr|star_expr))* [','] +testlist: test (',' test)* [','] +dictorsetmaker: ( ((test ':' test | '**' expr) + (comp_for | (',' (test ':' test | '**' expr))* [','])) | + ((test [':=' test] | star_expr) + (comp_for | (',' (test [':=' test] | star_expr))* [','])) ) + +classdef: 'class' NAME ['(' [arglist] ')'] ':' suite + +arglist: argument (',' argument)* [','] + +# The reason that keywords are test nodes instead of NAME is that using NAME +# results in an ambiguity. ast.c makes sure it's a NAME. +# "test '=' test" is really "keyword '=' test", but we have no such token. +# These need to be in a single rule to avoid grammar that is ambiguous +# to our LL(1) parser. Even though 'test' includes '*expr' in star_expr, +# we explicitly match '*' here, too, to give it proper precedence. +# Illegal combinations and orderings are blocked in ast.c: +# multiple (test comp_for) arguments are blocked; keyword unpackings +# that precede iterable unpackings are blocked; etc. +argument: ( test [comp_for] | + test ':=' test | + test '=' test | + '**' test | + '*' test ) + +comp_iter: comp_for | comp_if +sync_comp_for: 'for' exprlist 'in' or_test [comp_iter] +comp_for: ['async'] sync_comp_for +comp_if: 'if' or_test [comp_iter] + +# not used in grammar, but may appear in "node" passed from Parser to Compiler +encoding_decl: NAME + +yield_expr: 'yield' [yield_arg] +yield_arg: 'from' test | testlist_star_expr + +strings: (STRING | fstring)+ +fstring: FSTRING_START fstring_content* FSTRING_END +fstring_content: FSTRING_STRING | fstring_expr +fstring_conversion: '!' NAME +fstring_expr: '{' (testlist_comp | yield_expr) ['='] [ fstring_conversion ] [ fstring_format_spec ] '}' +fstring_format_spec: ':' fstring_content* diff --git a/shared/package-files/43/4305da1ea25c27fce08bd14001b76fd54fe42a0724bbd5168c76680a56eda5be/grammar311.txt b/shared/package-files/43/4305da1ea25c27fce08bd14001b76fd54fe42a0724bbd5168c76680a56eda5be/grammar311.txt new file mode 100644 index 0000000000000000000000000000000000000000..f092050d881db65ec25e1cebbc34921500b60eca --- /dev/null +++ b/shared/package-files/43/4305da1ea25c27fce08bd14001b76fd54fe42a0724bbd5168c76680a56eda5be/grammar311.txt @@ -0,0 +1,169 @@ +# Grammar for Python + +# NOTE WELL: You should also follow all the steps listed at +# https://devguide.python.org/grammar/ + +# Start symbols for the grammar: +# single_input is a single interactive statement; +# file_input is a module or sequence of commands read from an input file; +# eval_input is the input for the eval() functions. +# NB: compound_stmt in single_input is followed by extra NEWLINE! +single_input: NEWLINE | simple_stmt | compound_stmt NEWLINE +file_input: stmt* ENDMARKER +eval_input: testlist NEWLINE* ENDMARKER + +decorator: '@' namedexpr_test NEWLINE +decorators: decorator+ +decorated: decorators (classdef | funcdef | async_funcdef) + +async_funcdef: 'async' funcdef +funcdef: 'def' NAME parameters ['->' test] ':' suite + +parameters: '(' [typedargslist] ')' +typedargslist: ( + (tfpdef ['=' test] (',' tfpdef ['=' test])* ',' '/' [',' [ tfpdef ['=' test] ( + ',' tfpdef ['=' test])* ([',' [ + '*' [tfpdef] (',' tfpdef ['=' test])* [',' ['**' tfpdef [',']]] + | '**' tfpdef [',']]]) + | '*' [tfpdef] (',' tfpdef ['=' test])* ([',' ['**' tfpdef [',']]]) + | '**' tfpdef [',']]] ) +| (tfpdef ['=' test] (',' tfpdef ['=' test])* [',' [ + '*' [tfpdef] (',' tfpdef ['=' test])* [',' ['**' tfpdef [',']]] + | '**' tfpdef [',']]] + | '*' [tfpdef] (',' tfpdef ['=' test])* [',' ['**' tfpdef [',']]] + | '**' tfpdef [',']) +) +tfpdef: NAME [':' test] +varargslist: vfpdef ['=' test ](',' vfpdef ['=' test])* ',' '/' [',' [ (vfpdef ['=' test] (',' vfpdef ['=' test])* [',' [ + '*' [vfpdef] (',' vfpdef ['=' test])* [',' ['**' vfpdef [',']]] + | '**' vfpdef [',']]] + | '*' [vfpdef] (',' vfpdef ['=' test])* [',' ['**' vfpdef [',']]] + | '**' vfpdef [',']) ]] | (vfpdef ['=' test] (',' vfpdef ['=' test])* [',' [ + '*' [vfpdef] (',' vfpdef ['=' test])* [',' ['**' vfpdef [',']]] + | '**' vfpdef [',']]] + | '*' [vfpdef] (',' vfpdef ['=' test])* [',' ['**' vfpdef [',']]] + | '**' vfpdef [','] +) +vfpdef: NAME + +stmt: simple_stmt | compound_stmt | NEWLINE +simple_stmt: small_stmt (';' small_stmt)* [';'] NEWLINE +small_stmt: (expr_stmt | del_stmt | pass_stmt | flow_stmt | + import_stmt | global_stmt | nonlocal_stmt | assert_stmt) +expr_stmt: testlist_star_expr (annassign | augassign (yield_expr|testlist) | + ('=' (yield_expr|testlist_star_expr))*) +annassign: ':' test ['=' (yield_expr|testlist_star_expr)] +testlist_star_expr: (test|star_expr) (',' (test|star_expr))* [','] +augassign: ('+=' | '-=' | '*=' | '@=' | '/=' | '%=' | '&=' | '|=' | '^=' | + '<<=' | '>>=' | '**=' | '//=') +# For normal and annotated assignments, additional restrictions enforced by the interpreter +del_stmt: 'del' exprlist +pass_stmt: 'pass' +flow_stmt: break_stmt | continue_stmt | return_stmt | raise_stmt | yield_stmt +break_stmt: 'break' +continue_stmt: 'continue' +return_stmt: 'return' [testlist_star_expr] +yield_stmt: yield_expr +raise_stmt: 'raise' [test ['from' test]] +import_stmt: import_name | import_from +import_name: 'import' dotted_as_names +# note below: the ('.' | '...') is necessary because '...' is tokenized as ELLIPSIS +import_from: ('from' (('.' | '...')* dotted_name | ('.' | '...')+) + 'import' ('*' | '(' import_as_names ')' | import_as_names)) +import_as_name: NAME ['as' NAME] +dotted_as_name: dotted_name ['as' NAME] +import_as_names: import_as_name (',' import_as_name)* [','] +dotted_as_names: dotted_as_name (',' dotted_as_name)* +dotted_name: NAME ('.' NAME)* +global_stmt: 'global' NAME (',' NAME)* +nonlocal_stmt: 'nonlocal' NAME (',' NAME)* +assert_stmt: 'assert' test [',' test] + +compound_stmt: if_stmt | while_stmt | for_stmt | try_stmt | with_stmt | funcdef | classdef | decorated | async_stmt +async_stmt: 'async' (funcdef | with_stmt | for_stmt) +if_stmt: 'if' namedexpr_test ':' suite ('elif' namedexpr_test ':' suite)* ['else' ':' suite] +while_stmt: 'while' namedexpr_test ':' suite ['else' ':' suite] +for_stmt: 'for' exprlist 'in' testlist ':' suite ['else' ':' suite] +try_stmt: ('try' ':' suite + ((except_clause ':' suite)+ + ['else' ':' suite] + ['finally' ':' suite] | + 'finally' ':' suite)) +with_stmt: 'with' with_item (',' with_item)* ':' suite +with_item: test ['as' expr] +# NB compile.c makes sure that the default except clause is last +except_clause: 'except' [test ['as' NAME]] +suite: simple_stmt | NEWLINE INDENT stmt+ DEDENT + +namedexpr_test: test [':=' test] +test: or_test ['if' or_test 'else' test] | lambdef +lambdef: 'lambda' [varargslist] ':' test +or_test: and_test ('or' and_test)* +and_test: not_test ('and' not_test)* +not_test: 'not' not_test | comparison +comparison: expr (comp_op expr)* +# <> isn't actually a valid comparison operator in Python. It's here for the +# sake of a __future__ import described in PEP 401 (which really works :-) +comp_op: '<'|'>'|'=='|'>='|'<='|'<>'|'!='|'in'|'not' 'in'|'is'|'is' 'not' +star_expr: '*' expr +expr: xor_expr ('|' xor_expr)* +xor_expr: and_expr ('^' and_expr)* +and_expr: shift_expr ('&' shift_expr)* +shift_expr: arith_expr (('<<'|'>>') arith_expr)* +arith_expr: term (('+'|'-') term)* +term: factor (('*'|'@'|'/'|'%'|'//') factor)* +factor: ('+'|'-'|'~') factor | power +power: atom_expr ['**' factor] +atom_expr: ['await'] atom trailer* +atom: ('(' [yield_expr|testlist_comp] ')' | + '[' [testlist_comp] ']' | + '{' [dictorsetmaker] '}' | + NAME | NUMBER | strings | '...' | 'None' | 'True' | 'False') +testlist_comp: (namedexpr_test|star_expr) ( comp_for | (',' (namedexpr_test|star_expr))* [','] ) +trailer: '(' [arglist] ')' | '[' subscriptlist ']' | '.' NAME +subscriptlist: subscript (',' subscript)* [','] +subscript: test [':=' test] | [test] ':' [test] [sliceop] +sliceop: ':' [test] +exprlist: (expr|star_expr) (',' (expr|star_expr))* [','] +testlist: test (',' test)* [','] +dictorsetmaker: ( ((test ':' test | '**' expr) + (comp_for | (',' (test ':' test | '**' expr))* [','])) | + ((test [':=' test] | star_expr) + (comp_for | (',' (test [':=' test] | star_expr))* [','])) ) + +classdef: 'class' NAME ['(' [arglist] ')'] ':' suite + +arglist: argument (',' argument)* [','] + +# The reason that keywords are test nodes instead of NAME is that using NAME +# results in an ambiguity. ast.c makes sure it's a NAME. +# "test '=' test" is really "keyword '=' test", but we have no such token. +# These need to be in a single rule to avoid grammar that is ambiguous +# to our LL(1) parser. Even though 'test' includes '*expr' in star_expr, +# we explicitly match '*' here, too, to give it proper precedence. +# Illegal combinations and orderings are blocked in ast.c: +# multiple (test comp_for) arguments are blocked; keyword unpackings +# that precede iterable unpackings are blocked; etc. +argument: ( test [comp_for] | + test ':=' test | + test '=' test | + '**' test | + '*' test ) + +comp_iter: comp_for | comp_if +sync_comp_for: 'for' exprlist 'in' or_test [comp_iter] +comp_for: ['async'] sync_comp_for +comp_if: 'if' or_test [comp_iter] + +# not used in grammar, but may appear in "node" passed from Parser to Compiler +encoding_decl: NAME + +yield_expr: 'yield' [yield_arg] +yield_arg: 'from' test | testlist_star_expr + +strings: (STRING | fstring)+ +fstring: FSTRING_START fstring_content* FSTRING_END +fstring_content: FSTRING_STRING | fstring_expr +fstring_conversion: '!' NAME +fstring_expr: '{' (testlist_comp | yield_expr) ['='] [ fstring_conversion ] [ fstring_format_spec ] '}' +fstring_format_spec: ':' fstring_content* diff --git a/shared/package-files/43/4305da1ea25c27fce08bd14001b76fd54fe42a0724bbd5168c76680a56eda5be/grammar312.txt b/shared/package-files/43/4305da1ea25c27fce08bd14001b76fd54fe42a0724bbd5168c76680a56eda5be/grammar312.txt new file mode 100644 index 0000000000000000000000000000000000000000..f092050d881db65ec25e1cebbc34921500b60eca --- /dev/null +++ b/shared/package-files/43/4305da1ea25c27fce08bd14001b76fd54fe42a0724bbd5168c76680a56eda5be/grammar312.txt @@ -0,0 +1,169 @@ +# Grammar for Python + +# NOTE WELL: You should also follow all the steps listed at +# https://devguide.python.org/grammar/ + +# Start symbols for the grammar: +# single_input is a single interactive statement; +# file_input is a module or sequence of commands read from an input file; +# eval_input is the input for the eval() functions. +# NB: compound_stmt in single_input is followed by extra NEWLINE! +single_input: NEWLINE | simple_stmt | compound_stmt NEWLINE +file_input: stmt* ENDMARKER +eval_input: testlist NEWLINE* ENDMARKER + +decorator: '@' namedexpr_test NEWLINE +decorators: decorator+ +decorated: decorators (classdef | funcdef | async_funcdef) + +async_funcdef: 'async' funcdef +funcdef: 'def' NAME parameters ['->' test] ':' suite + +parameters: '(' [typedargslist] ')' +typedargslist: ( + (tfpdef ['=' test] (',' tfpdef ['=' test])* ',' '/' [',' [ tfpdef ['=' test] ( + ',' tfpdef ['=' test])* ([',' [ + '*' [tfpdef] (',' tfpdef ['=' test])* [',' ['**' tfpdef [',']]] + | '**' tfpdef [',']]]) + | '*' [tfpdef] (',' tfpdef ['=' test])* ([',' ['**' tfpdef [',']]]) + | '**' tfpdef [',']]] ) +| (tfpdef ['=' test] (',' tfpdef ['=' test])* [',' [ + '*' [tfpdef] (',' tfpdef ['=' test])* [',' ['**' tfpdef [',']]] + | '**' tfpdef [',']]] + | '*' [tfpdef] (',' tfpdef ['=' test])* [',' ['**' tfpdef [',']]] + | '**' tfpdef [',']) +) +tfpdef: NAME [':' test] +varargslist: vfpdef ['=' test ](',' vfpdef ['=' test])* ',' '/' [',' [ (vfpdef ['=' test] (',' vfpdef ['=' test])* [',' [ + '*' [vfpdef] (',' vfpdef ['=' test])* [',' ['**' vfpdef [',']]] + | '**' vfpdef [',']]] + | '*' [vfpdef] (',' vfpdef ['=' test])* [',' ['**' vfpdef [',']]] + | '**' vfpdef [',']) ]] | (vfpdef ['=' test] (',' vfpdef ['=' test])* [',' [ + '*' [vfpdef] (',' vfpdef ['=' test])* [',' ['**' vfpdef [',']]] + | '**' vfpdef [',']]] + | '*' [vfpdef] (',' vfpdef ['=' test])* [',' ['**' vfpdef [',']]] + | '**' vfpdef [','] +) +vfpdef: NAME + +stmt: simple_stmt | compound_stmt | NEWLINE +simple_stmt: small_stmt (';' small_stmt)* [';'] NEWLINE +small_stmt: (expr_stmt | del_stmt | pass_stmt | flow_stmt | + import_stmt | global_stmt | nonlocal_stmt | assert_stmt) +expr_stmt: testlist_star_expr (annassign | augassign (yield_expr|testlist) | + ('=' (yield_expr|testlist_star_expr))*) +annassign: ':' test ['=' (yield_expr|testlist_star_expr)] +testlist_star_expr: (test|star_expr) (',' (test|star_expr))* [','] +augassign: ('+=' | '-=' | '*=' | '@=' | '/=' | '%=' | '&=' | '|=' | '^=' | + '<<=' | '>>=' | '**=' | '//=') +# For normal and annotated assignments, additional restrictions enforced by the interpreter +del_stmt: 'del' exprlist +pass_stmt: 'pass' +flow_stmt: break_stmt | continue_stmt | return_stmt | raise_stmt | yield_stmt +break_stmt: 'break' +continue_stmt: 'continue' +return_stmt: 'return' [testlist_star_expr] +yield_stmt: yield_expr +raise_stmt: 'raise' [test ['from' test]] +import_stmt: import_name | import_from +import_name: 'import' dotted_as_names +# note below: the ('.' | '...') is necessary because '...' is tokenized as ELLIPSIS +import_from: ('from' (('.' | '...')* dotted_name | ('.' | '...')+) + 'import' ('*' | '(' import_as_names ')' | import_as_names)) +import_as_name: NAME ['as' NAME] +dotted_as_name: dotted_name ['as' NAME] +import_as_names: import_as_name (',' import_as_name)* [','] +dotted_as_names: dotted_as_name (',' dotted_as_name)* +dotted_name: NAME ('.' NAME)* +global_stmt: 'global' NAME (',' NAME)* +nonlocal_stmt: 'nonlocal' NAME (',' NAME)* +assert_stmt: 'assert' test [',' test] + +compound_stmt: if_stmt | while_stmt | for_stmt | try_stmt | with_stmt | funcdef | classdef | decorated | async_stmt +async_stmt: 'async' (funcdef | with_stmt | for_stmt) +if_stmt: 'if' namedexpr_test ':' suite ('elif' namedexpr_test ':' suite)* ['else' ':' suite] +while_stmt: 'while' namedexpr_test ':' suite ['else' ':' suite] +for_stmt: 'for' exprlist 'in' testlist ':' suite ['else' ':' suite] +try_stmt: ('try' ':' suite + ((except_clause ':' suite)+ + ['else' ':' suite] + ['finally' ':' suite] | + 'finally' ':' suite)) +with_stmt: 'with' with_item (',' with_item)* ':' suite +with_item: test ['as' expr] +# NB compile.c makes sure that the default except clause is last +except_clause: 'except' [test ['as' NAME]] +suite: simple_stmt | NEWLINE INDENT stmt+ DEDENT + +namedexpr_test: test [':=' test] +test: or_test ['if' or_test 'else' test] | lambdef +lambdef: 'lambda' [varargslist] ':' test +or_test: and_test ('or' and_test)* +and_test: not_test ('and' not_test)* +not_test: 'not' not_test | comparison +comparison: expr (comp_op expr)* +# <> isn't actually a valid comparison operator in Python. It's here for the +# sake of a __future__ import described in PEP 401 (which really works :-) +comp_op: '<'|'>'|'=='|'>='|'<='|'<>'|'!='|'in'|'not' 'in'|'is'|'is' 'not' +star_expr: '*' expr +expr: xor_expr ('|' xor_expr)* +xor_expr: and_expr ('^' and_expr)* +and_expr: shift_expr ('&' shift_expr)* +shift_expr: arith_expr (('<<'|'>>') arith_expr)* +arith_expr: term (('+'|'-') term)* +term: factor (('*'|'@'|'/'|'%'|'//') factor)* +factor: ('+'|'-'|'~') factor | power +power: atom_expr ['**' factor] +atom_expr: ['await'] atom trailer* +atom: ('(' [yield_expr|testlist_comp] ')' | + '[' [testlist_comp] ']' | + '{' [dictorsetmaker] '}' | + NAME | NUMBER | strings | '...' | 'None' | 'True' | 'False') +testlist_comp: (namedexpr_test|star_expr) ( comp_for | (',' (namedexpr_test|star_expr))* [','] ) +trailer: '(' [arglist] ')' | '[' subscriptlist ']' | '.' NAME +subscriptlist: subscript (',' subscript)* [','] +subscript: test [':=' test] | [test] ':' [test] [sliceop] +sliceop: ':' [test] +exprlist: (expr|star_expr) (',' (expr|star_expr))* [','] +testlist: test (',' test)* [','] +dictorsetmaker: ( ((test ':' test | '**' expr) + (comp_for | (',' (test ':' test | '**' expr))* [','])) | + ((test [':=' test] | star_expr) + (comp_for | (',' (test [':=' test] | star_expr))* [','])) ) + +classdef: 'class' NAME ['(' [arglist] ')'] ':' suite + +arglist: argument (',' argument)* [','] + +# The reason that keywords are test nodes instead of NAME is that using NAME +# results in an ambiguity. ast.c makes sure it's a NAME. +# "test '=' test" is really "keyword '=' test", but we have no such token. +# These need to be in a single rule to avoid grammar that is ambiguous +# to our LL(1) parser. Even though 'test' includes '*expr' in star_expr, +# we explicitly match '*' here, too, to give it proper precedence. +# Illegal combinations and orderings are blocked in ast.c: +# multiple (test comp_for) arguments are blocked; keyword unpackings +# that precede iterable unpackings are blocked; etc. +argument: ( test [comp_for] | + test ':=' test | + test '=' test | + '**' test | + '*' test ) + +comp_iter: comp_for | comp_if +sync_comp_for: 'for' exprlist 'in' or_test [comp_iter] +comp_for: ['async'] sync_comp_for +comp_if: 'if' or_test [comp_iter] + +# not used in grammar, but may appear in "node" passed from Parser to Compiler +encoding_decl: NAME + +yield_expr: 'yield' [yield_arg] +yield_arg: 'from' test | testlist_star_expr + +strings: (STRING | fstring)+ +fstring: FSTRING_START fstring_content* FSTRING_END +fstring_content: FSTRING_STRING | fstring_expr +fstring_conversion: '!' NAME +fstring_expr: '{' (testlist_comp | yield_expr) ['='] [ fstring_conversion ] [ fstring_format_spec ] '}' +fstring_format_spec: ':' fstring_content* diff --git a/shared/package-files/43/4308932872acbf4a674312a45a49b870e48026e3dfedc878ee2f512ddf2f30ba/_parseaddr.py b/shared/package-files/43/4308932872acbf4a674312a45a49b870e48026e3dfedc878ee2f512ddf2f30ba/_parseaddr.py new file mode 100644 index 0000000000000000000000000000000000000000..febe411355d6be3be8b60bd8c845479451149d6f --- /dev/null +++ b/shared/package-files/43/4308932872acbf4a674312a45a49b870e48026e3dfedc878ee2f512ddf2f30ba/_parseaddr.py @@ -0,0 +1,557 @@ +# Copyright (C) 2002-2007 Python Software Foundation +# Contact: email-sig@python.org + +"""Email address parsing code. + +Lifted directly from rfc822.py. This should eventually be rewritten. +""" + +__all__ = [ + 'mktime_tz', + 'parsedate', + 'parsedate_tz', + 'quote', + ] + +import time, calendar + +SPACE = ' ' +EMPTYSTRING = '' +COMMASPACE = ', ' + +# Parse a date field +_monthnames = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', + 'aug', 'sep', 'oct', 'nov', 'dec', + 'january', 'february', 'march', 'april', 'may', 'june', 'july', + 'august', 'september', 'october', 'november', 'december'] + +_daynames = ['mon', 'tue', 'wed', 'thu', 'fri', 'sat', 'sun'] + +# The timezone table does not include the military time zones defined +# in RFC822, other than Z. According to RFC1123, the description in +# RFC822 gets the signs wrong, so we can't rely on any such time +# zones. RFC1123 recommends that numeric timezone indicators be used +# instead of timezone names. + +_timezones = {'UT':0, 'UTC':0, 'GMT':0, 'Z':0, + 'AST': -400, 'ADT': -300, # Atlantic (used in Canada) + 'EST': -500, 'EDT': -400, # Eastern + 'CST': -600, 'CDT': -500, # Central + 'MST': -700, 'MDT': -600, # Mountain + 'PST': -800, 'PDT': -700 # Pacific + } + + +def parsedate_tz(data): + """Convert a date string to a time tuple. + + Accounts for military timezones. + """ + res = _parsedate_tz(data) + if not res: + return + if res[9] is None: + res[9] = 0 + return tuple(res) + +def _parsedate_tz(data): + """Convert date to extended time tuple. + + The last (additional) element is the time zone offset in seconds, except if + the timezone was specified as -0000. In that case the last element is + None. This indicates a UTC timestamp that explicitly declaims knowledge of + the source timezone, as opposed to a +0000 timestamp that indicates the + source timezone really was UTC. + + """ + if not data: + return None + data = data.split() + if not data: # This happens for whitespace-only input. + return None + # The FWS after the comma after the day-of-week is optional, so search and + # adjust for this. + if data[0].endswith(',') or data[0].lower() in _daynames: + # There's a dayname here. Skip it + del data[0] + else: + i = data[0].rfind(',') + if i >= 0: + data[0] = data[0][i+1:] + if len(data) == 3: # RFC 850 date, deprecated + stuff = data[0].split('-') + if len(stuff) == 3: + data = stuff + data[1:] + if len(data) == 4: + s = data[3] + i = s.find('+') + if i == -1: + i = s.find('-') + if i > 0: + data[3:] = [s[:i], s[i:]] + else: + data.append('') # Dummy tz + if len(data) < 5: + return None + data = data[:5] + [dd, mm, yy, tm, tz] = data + if not (dd and mm and yy): + return None + mm = mm.lower() + if mm not in _monthnames: + dd, mm = mm, dd.lower() + if mm not in _monthnames: + return None + mm = _monthnames.index(mm) + 1 + if mm > 12: + mm -= 12 + if dd[-1] == ',': + dd = dd[:-1] + i = yy.find(':') + if i > 0: + yy, tm = tm, yy + if yy[-1] == ',': + yy = yy[:-1] + if not yy: + return None + if not yy[0].isdigit(): + yy, tz = tz, yy + if tm[-1] == ',': + tm = tm[:-1] + tm = tm.split(':') + if len(tm) == 2: + [thh, tmm] = tm + tss = '0' + elif len(tm) == 3: + [thh, tmm, tss] = tm + elif len(tm) == 1 and '.' in tm[0]: + # Some non-compliant MUAs use '.' to separate time elements. + tm = tm[0].split('.') + if len(tm) == 2: + [thh, tmm] = tm + tss = 0 + elif len(tm) == 3: + [thh, tmm, tss] = tm + else: + return None + else: + return None + try: + yy = int(yy) + dd = int(dd) + thh = int(thh) + tmm = int(tmm) + tss = int(tss) + except ValueError: + return None + # Check for a yy specified in two-digit format, then convert it to the + # appropriate four-digit format, according to the POSIX standard. RFC 822 + # calls for a two-digit yy, but RFC 2822 (which obsoletes RFC 822) + # mandates a 4-digit yy. For more information, see the documentation for + # the time module. + if yy < 100: + # The year is between 1969 and 1999 (inclusive). + if yy > 68: + yy += 1900 + # The year is between 2000 and 2068 (inclusive). + else: + yy += 2000 + tzoffset = None + tz = tz.upper() + if tz in _timezones: + tzoffset = _timezones[tz] + else: + try: + tzoffset = int(tz) + except ValueError: + pass + if tzoffset==0 and tz.startswith('-'): + tzoffset = None + # Convert a timezone offset into seconds ; -0500 -> -18000 + if tzoffset: + if tzoffset < 0: + tzsign = -1 + tzoffset = -tzoffset + else: + tzsign = 1 + tzoffset = tzsign * ( (tzoffset//100)*3600 + (tzoffset % 100)*60) + # Daylight Saving Time flag is set to -1, since DST is unknown. + return [yy, mm, dd, thh, tmm, tss, 0, 1, -1, tzoffset] + + +def parsedate(data): + """Convert a time string to a time tuple.""" + t = parsedate_tz(data) + if isinstance(t, tuple): + return t[:9] + else: + return t + + +def mktime_tz(data): + """Turn a 10-tuple as returned by parsedate_tz() into a POSIX timestamp.""" + if data[9] is None: + # No zone info, so localtime is better assumption than GMT + return time.mktime(data[:8] + (-1,)) + else: + t = calendar.timegm(data) + return t - data[9] + + +def quote(str): + """Prepare string to be used in a quoted string. + + Turns backslash and double quote characters into quoted pairs. These + are the only characters that need to be quoted inside a quoted string. + Does not add the surrounding double quotes. + """ + return str.replace('\\', '\\\\').replace('"', '\\"') + + +class AddrlistClass: + """Address parser class by Ben Escoto. + + To understand what this class does, it helps to have a copy of RFC 2822 in + front of you. + + Note: this class interface is deprecated and may be removed in the future. + Use email.utils.AddressList instead. + """ + + def __init__(self, field): + """Initialize a new instance. + + `field' is an unparsed address header field, containing + one or more addresses. + """ + self.specials = '()<>@,:;.\"[]' + self.pos = 0 + self.LWS = ' \t' + self.CR = '\r\n' + self.FWS = self.LWS + self.CR + self.atomends = self.specials + self.LWS + self.CR + # Note that RFC 2822 now specifies `.' as obs-phrase, meaning that it + # is obsolete syntax. RFC 2822 requires that we recognize obsolete + # syntax, so allow dots in phrases. + self.phraseends = self.atomends.replace('.', '') + self.field = field + self.commentlist = [] + + def gotonext(self): + """Skip white space and extract comments.""" + wslist = [] + while self.pos < len(self.field): + if self.field[self.pos] in self.LWS + '\n\r': + if self.field[self.pos] not in '\n\r': + wslist.append(self.field[self.pos]) + self.pos += 1 + elif self.field[self.pos] == '(': + self.commentlist.append(self.getcomment()) + else: + break + return EMPTYSTRING.join(wslist) + + def getaddrlist(self): + """Parse all addresses. + + Returns a list containing all of the addresses. + """ + result = [] + while self.pos < len(self.field): + ad = self.getaddress() + if ad: + result += ad + else: + result.append(('', '')) + return result + + def getaddress(self): + """Parse the next address.""" + self.commentlist = [] + self.gotonext() + + oldpos = self.pos + oldcl = self.commentlist + plist = self.getphraselist() + + self.gotonext() + returnlist = [] + + if self.pos >= len(self.field): + # Bad email address technically, no domain. + if plist: + returnlist = [(SPACE.join(self.commentlist), plist[0])] + + elif self.field[self.pos] in '.@': + # email address is just an addrspec + # this isn't very efficient since we start over + self.pos = oldpos + self.commentlist = oldcl + addrspec = self.getaddrspec() + returnlist = [(SPACE.join(self.commentlist), addrspec)] + + elif self.field[self.pos] == ':': + # address is a group + returnlist = [] + + fieldlen = len(self.field) + self.pos += 1 + while self.pos < len(self.field): + self.gotonext() + if self.pos < fieldlen and self.field[self.pos] == ';': + self.pos += 1 + break + returnlist = returnlist + self.getaddress() + + elif self.field[self.pos] == '<': + # Address is a phrase then a route addr + routeaddr = self.getrouteaddr() + + if self.commentlist: + returnlist = [(SPACE.join(plist) + ' (' + + ' '.join(self.commentlist) + ')', routeaddr)] + else: + returnlist = [(SPACE.join(plist), routeaddr)] + + else: + if plist: + returnlist = [(SPACE.join(self.commentlist), plist[0])] + elif self.field[self.pos] in self.specials: + self.pos += 1 + + self.gotonext() + if self.pos < len(self.field) and self.field[self.pos] == ',': + self.pos += 1 + return returnlist + + def getrouteaddr(self): + """Parse a route address (Return-path value). + + This method just skips all the route stuff and returns the addrspec. + """ + if self.field[self.pos] != '<': + return + + expectroute = False + self.pos += 1 + self.gotonext() + adlist = '' + while self.pos < len(self.field): + if expectroute: + self.getdomain() + expectroute = False + elif self.field[self.pos] == '>': + self.pos += 1 + break + elif self.field[self.pos] == '@': + self.pos += 1 + expectroute = True + elif self.field[self.pos] == ':': + self.pos += 1 + else: + adlist = self.getaddrspec() + self.pos += 1 + break + self.gotonext() + + return adlist + + def getaddrspec(self): + """Parse an RFC 2822 addr-spec.""" + aslist = [] + + self.gotonext() + while self.pos < len(self.field): + preserve_ws = True + if self.field[self.pos] == '.': + if aslist and not aslist[-1].strip(): + aslist.pop() + aslist.append('.') + self.pos += 1 + preserve_ws = False + elif self.field[self.pos] == '"': + aslist.append('"%s"' % quote(self.getquote())) + elif self.field[self.pos] in self.atomends: + if aslist and not aslist[-1].strip(): + aslist.pop() + break + else: + aslist.append(self.getatom()) + ws = self.gotonext() + if preserve_ws and ws: + aslist.append(ws) + + if self.pos >= len(self.field) or self.field[self.pos] != '@': + return EMPTYSTRING.join(aslist) + + aslist.append('@') + self.pos += 1 + self.gotonext() + domain = self.getdomain() + if not domain: + # Invalid domain, return an empty address instead of returning a + # local part to denote failed parsing. + return EMPTYSTRING + return EMPTYSTRING.join(aslist) + domain + + def getdomain(self): + """Get the complete domain name from an address.""" + sdlist = [] + while self.pos < len(self.field): + if self.field[self.pos] in self.LWS: + self.pos += 1 + elif self.field[self.pos] == '(': + self.commentlist.append(self.getcomment()) + elif self.field[self.pos] == '[': + sdlist.append(self.getdomainliteral()) + elif self.field[self.pos] == '.': + self.pos += 1 + sdlist.append('.') + elif self.field[self.pos] == '@': + # bpo-34155: Don't parse domains with two `@` like + # `a@malicious.org@important.com`. + return EMPTYSTRING + elif self.field[self.pos] in self.atomends: + break + else: + sdlist.append(self.getatom()) + return EMPTYSTRING.join(sdlist) + + def getdelimited(self, beginchar, endchars, allowcomments=True): + """Parse a header fragment delimited by special characters. + + `beginchar' is the start character for the fragment. + If self is not looking at an instance of `beginchar' then + getdelimited returns the empty string. + + `endchars' is a sequence of allowable end-delimiting characters. + Parsing stops when one of these is encountered. + + If `allowcomments' is non-zero, embedded RFC 2822 comments are allowed + within the parsed fragment. + """ + if self.field[self.pos] != beginchar: + return '' + + slist = [''] + quote = False + self.pos += 1 + while self.pos < len(self.field): + if quote: + slist.append(self.field[self.pos]) + quote = False + elif self.field[self.pos] in endchars: + self.pos += 1 + break + elif allowcomments and self.field[self.pos] == '(': + slist.append(self.getcomment()) + continue # have already advanced pos from getcomment + elif self.field[self.pos] == '\\': + quote = True + else: + slist.append(self.field[self.pos]) + self.pos += 1 + + return EMPTYSTRING.join(slist) + + def getquote(self): + """Get a quote-delimited fragment from self's field.""" + return self.getdelimited('"', '"\r', False) + + def getcomment(self): + """Get a parenthesis-delimited fragment from self's field.""" + return self.getdelimited('(', ')\r', True) + + def getdomainliteral(self): + """Parse an RFC 2822 domain-literal.""" + return '[%s]' % self.getdelimited('[', ']\r', False) + + def getatom(self, atomends=None): + """Parse an RFC 2822 atom. + + Optional atomends specifies a different set of end token delimiters + (the default is to use self.atomends). This is used e.g. in + getphraselist() since phrase endings must not include the `.' (which + is legal in phrases).""" + atomlist = [''] + if atomends is None: + atomends = self.atomends + + while self.pos < len(self.field): + if self.field[self.pos] in atomends: + break + else: + atomlist.append(self.field[self.pos]) + self.pos += 1 + + return EMPTYSTRING.join(atomlist) + + def getphraselist(self): + """Parse a sequence of RFC 2822 phrases. + + A phrase is a sequence of words, which are in turn either RFC 2822 + atoms or quoted-strings. Phrases are canonicalized by squeezing all + runs of continuous whitespace into one space. + """ + plist = [] + + while self.pos < len(self.field): + if self.field[self.pos] in self.FWS: + self.pos += 1 + elif self.field[self.pos] == '"': + plist.append(self.getquote()) + elif self.field[self.pos] == '(': + self.commentlist.append(self.getcomment()) + elif self.field[self.pos] in self.phraseends: + break + else: + plist.append(self.getatom(self.phraseends)) + + return plist + +class AddressList(AddrlistClass): + """An AddressList encapsulates a list of parsed RFC 2822 addresses.""" + def __init__(self, field): + AddrlistClass.__init__(self, field) + if field: + self.addresslist = self.getaddrlist() + else: + self.addresslist = [] + + def __len__(self): + return len(self.addresslist) + + def __add__(self, other): + # Set union + newaddr = AddressList(None) + newaddr.addresslist = self.addresslist[:] + for x in other.addresslist: + if not x in self.addresslist: + newaddr.addresslist.append(x) + return newaddr + + def __iadd__(self, other): + # Set union, in-place + for x in other.addresslist: + if not x in self.addresslist: + self.addresslist.append(x) + return self + + def __sub__(self, other): + # Set difference + newaddr = AddressList(None) + for x in self.addresslist: + if not x in other.addresslist: + newaddr.addresslist.append(x) + return newaddr + + def __isub__(self, other): + # Set difference, in-place + for x in other.addresslist: + if x in self.addresslist: + self.addresslist.remove(x) + return self + + def __getitem__(self, index): + # Make indexing, slices, and 'in' work + return self.addresslist[index] diff --git a/shared/package-files/43/430d155c8246464c3a6624b3bed47428589698fbb223dc715e00e5fe5ddc1e67/promql.py b/shared/package-files/43/430d155c8246464c3a6624b3bed47428589698fbb223dc715e00e5fe5ddc1e67/promql.py new file mode 100644 index 0000000000000000000000000000000000000000..b6d2d666a5f709c8eaf9a5b9c130953371e8df2f --- /dev/null +++ b/shared/package-files/43/430d155c8246464c3a6624b3bed47428589698fbb223dc715e00e5fe5ddc1e67/promql.py @@ -0,0 +1,175 @@ +""" + pygments.lexers.promql + ~~~~~~~~~~~~~~~~~~~~~~ + + Lexer for Prometheus Query Language. + + :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS. + :license: BSD, see LICENSE for details. +""" + +from pygments.lexer import RegexLexer, bygroups, default, words +from pygments.token import Comment, Keyword, Name, Number, Operator, \ + Punctuation, String, Whitespace + +__all__ = ["PromQLLexer"] + + +class PromQLLexer(RegexLexer): + """ + For PromQL queries. + + For details about the grammar see: + https://github.com/prometheus/prometheus/tree/master/promql/parser + + .. versionadded: 2.7 + """ + + name = "PromQL" + url = 'https://prometheus.io/docs/prometheus/latest/querying/basics/' + aliases = ["promql"] + filenames = ["*.promql"] + + base_keywords = ( + words( + ( + "bool", + "by", + "group_left", + "group_right", + "ignoring", + "offset", + "on", + "without", + ), + suffix=r"\b", + ), + Keyword, + ) + + aggregator_keywords = ( + words( + ( + "sum", + "min", + "max", + "avg", + "group", + "stddev", + "stdvar", + "count", + "count_values", + "bottomk", + "topk", + "quantile", + ), + suffix=r"\b", + ), + Keyword, + ) + + function_keywords = ( + words( + ( + "abs", + "absent", + "absent_over_time", + "avg_over_time", + "ceil", + "changes", + "clamp_max", + "clamp_min", + "count_over_time", + "day_of_month", + "day_of_week", + "days_in_month", + "delta", + "deriv", + "exp", + "floor", + "histogram_quantile", + "holt_winters", + "hour", + "idelta", + "increase", + "irate", + "label_join", + "label_replace", + "ln", + "log10", + "log2", + "max_over_time", + "min_over_time", + "minute", + "month", + "predict_linear", + "quantile_over_time", + "rate", + "resets", + "round", + "scalar", + "sort", + "sort_desc", + "sqrt", + "stddev_over_time", + "stdvar_over_time", + "sum_over_time", + "time", + "timestamp", + "vector", + "year", + ), + suffix=r"\b", + ), + Keyword.Reserved, + ) + + tokens = { + "root": [ + (r"\n", Whitespace), + (r"\s+", Whitespace), + (r",", Punctuation), + # Keywords + base_keywords, + aggregator_keywords, + function_keywords, + # Offsets + (r"[1-9][0-9]*[smhdwy]", String), + # Numbers + (r"-?[0-9]+\.[0-9]+", Number.Float), + (r"-?[0-9]+", Number.Integer), + # Comments + (r"#.*?$", Comment.Single), + # Operators + (r"(\+|\-|\*|\/|\%|\^)", Operator), + (r"==|!=|>=|<=|<|>", Operator), + (r"and|or|unless", Operator.Word), + # Metrics + (r"[_a-zA-Z][a-zA-Z0-9_]+", Name.Variable), + # Params + (r'(["\'])(.*?)(["\'])', bygroups(Punctuation, String, Punctuation)), + # Other states + (r"\(", Operator, "function"), + (r"\)", Operator), + (r"\{", Punctuation, "labels"), + (r"\[", Punctuation, "range"), + ], + "labels": [ + (r"\}", Punctuation, "#pop"), + (r"\n", Whitespace), + (r"\s+", Whitespace), + (r",", Punctuation), + (r'([_a-zA-Z][a-zA-Z0-9_]*?)(\s*?)(=~|!=|=|!~)(\s*?)("|\')(.*?)("|\')', + bygroups(Name.Label, Whitespace, Operator, Whitespace, + Punctuation, String, Punctuation)), + ], + "range": [ + (r"\]", Punctuation, "#pop"), + (r"[1-9][0-9]*[smhdwy]", String), + ], + "function": [ + (r"\)", Operator, "#pop"), + (r"\(", Operator, "#push"), + default("#pop"), + ], + } diff --git a/shared/package-files/43/430fa71f7c5b5bf9dd708163d6f4ecbab4b4eec2e28ee4e3c9c20e89f7811b26/main_init.py b/shared/package-files/43/430fa71f7c5b5bf9dd708163d6f4ecbab4b4eec2e28ee4e3c9c20e89f7811b26/main_init.py new file mode 100644 index 0000000000000000000000000000000000000000..bc12284944621bc524d9255462ea422b89f0443a --- /dev/null +++ b/shared/package-files/43/430fa71f7c5b5bf9dd708163d6f4ecbab4b4eec2e28ee4e3c9c20e89f7811b26/main_init.py @@ -0,0 +1,39 @@ +# Copyright (C) 2012 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause +from logging import getLogger + +from ..base.context import context +from ..common.compat import on_win +from ..exceptions import ArgumentError + +log = getLogger(__name__) + + +def execute(args, parser): + from ..base.constants import COMPATIBLE_SHELLS + from ..core.initialize import initialize, initialize_dev, install + + if args.install: + return install(context.conda_prefix) + + if args.all: + selected_shells = COMPATIBLE_SHELLS + else: + selected_shells = tuple(args.shells) + + if args.dev: + if len(selected_shells) != 1: + raise ArgumentError("--dev can only handle one shell at a time right now") + return initialize_dev(selected_shells[0]) + + else: + for_user = args.user and not args.system + anaconda_prompt = on_win and args.anaconda_prompt + return initialize( + context.conda_prefix, + selected_shells, + for_user, + args.system, + anaconda_prompt, + args.reverse, + ) diff --git a/shared/package-files/43/4311fbd18d0d0f19ebd0b7c906a372ebb739a1e30fd86150c359d7acb2049877/decorators.py b/shared/package-files/43/4311fbd18d0d0f19ebd0b7c906a372ebb739a1e30fd86150c359d7acb2049877/decorators.py new file mode 100644 index 0000000000000000000000000000000000000000..0934c4330d857c7c4b0ca62b76ca723e59996c71 --- /dev/null +++ b/shared/package-files/43/4311fbd18d0d0f19ebd0b7c906a372ebb739a1e30fd86150c359d7acb2049877/decorators.py @@ -0,0 +1,348 @@ +from collections.abc import Hashable +from types import GeneratorType + +from functools import wraps +from ..deprecations import deprecated + + +# TODO: spend time filling out functionality and make these more robust + + +@deprecated("23.3", "23.9", addendum="Use `functools.lru_cache` instead.") +def memoize(func): + """ + Decorator to cause a function to cache it's results for each combination of + inputs and return the cached result on subsequent calls. Does not support + named arguments or arg values that are not hashable. + + >>> @memoize + ... def foo(x): + ... print('running function with', x) + ... return x+3 + ... + >>> foo(10) + running function with 10 + 13 + >>> foo(10) + 13 + >>> foo(11) + running function with 11 + 14 + >>> @memoize + ... def range_tuple(limit): + ... print('running function') + ... return tuple(i for i in range(limit)) + ... + >>> range_tuple(3) + running function + (0, 1, 2) + >>> range_tuple(3) + (0, 1, 2) + >>> @memoize + ... def range_iter(limit): + ... print('running function') + ... return (i for i in range(limit)) + ... + >>> range_iter(3) + Traceback (most recent call last): + TypeError: Can't memoize a generator or non-hashable object! + """ + func._result_cache = {} # pylint: disable-msg=W0212 + + @wraps(func) + def _memoized_func(*args, **kwargs): + key = (args, tuple(sorted(kwargs.items()))) + if key in func._result_cache: # pylint: disable-msg=W0212 + return func._result_cache[key] # pylint: disable-msg=W0212 + else: + result = func(*args, **kwargs) + if isinstance(result, GeneratorType) or not isinstance(result, Hashable): + raise TypeError("Can't memoize a generator or non-hashable object!") + func._result_cache[key] = result # pylint: disable-msg=W0212 + return result + + return _memoized_func + + +def memoizemethod(method): + """ + Decorator to cause a method to cache it's results in self for each + combination of inputs and return the cached result on subsequent calls. + Does not support named arguments or arg values that are not hashable. + + >>> class Foo (object): + ... @memoizemethod + ... def foo(self, x, y=0): + ... print('running method with', x, y) + ... return x + y + 3 + ... + >>> foo1 = Foo() + >>> foo2 = Foo() + >>> foo1.foo(10) + running method with 10 0 + 13 + >>> foo1.foo(10) + 13 + >>> foo2.foo(11, y=7) + running method with 11 7 + 21 + >>> foo2.foo(11) + running method with 11 0 + 14 + >>> foo2.foo(11, y=7) + 21 + >>> class Foo (object): + ... def __init__(self, lower): + ... self.lower = lower + ... @memoizemethod + ... def range_tuple(self, upper): + ... print('running function') + ... return tuple(i for i in range(self.lower, upper)) + ... @memoizemethod + ... def range_iter(self, upper): + ... print('running function') + ... return (i for i in range(self.lower, upper)) + ... + >>> foo = Foo(3) + >>> foo.range_tuple(6) + running function + (3, 4, 5) + >>> foo.range_tuple(7) + running function + (3, 4, 5, 6) + >>> foo.range_tuple(6) + (3, 4, 5) + >>> foo.range_iter(6) + Traceback (most recent call last): + TypeError: Can't memoize a generator or non-hashable object! + """ + + @wraps(method) + def _wrapper(self, *args, **kwargs): + # NOTE: a __dict__ check is performed here rather than using the + # built-in hasattr function because hasattr will look up to an object's + # class if the attr is not directly found in the object's dict. That's + # bad for this if the class itself has a memoized classmethod for + # example that has been called before the memoized instance method, + # then the instance method will use the class's result cache, causing + # its results to be globally stored rather than on a per instance + # basis. + if '_memoized_results' not in self.__dict__: + self._memoized_results = {} + memoized_results = self._memoized_results + + key = (method.__name__, args, tuple(sorted(kwargs.items()))) + if key in memoized_results: + return memoized_results[key] + else: + try: + result = method(self, *args, **kwargs) + except KeyError as e: + if '__wrapped__' in str(e): + result = None # is this the right thing to do? happened during py3 conversion + else: + raise + if isinstance(result, GeneratorType) or not isinstance(result, Hashable): + raise TypeError("Can't memoize a generator or non-hashable object!") + return memoized_results.setdefault(key, result) + + return _wrapper + + +# class memoizemethod(object): +# """cache the return value of a method +# +# This class is meant to be used as a decorator of methods. The return value +# from a given method invocation will be cached on the instance whose method +# was invoked. All arguments passed to a method decorated with memoize must +# be hashable. +# +# If a memoized method is invoked directly on its class the result will not +# be cached. Instead the method will be invoked like a static method: +# class Obj(object): +# @memoize +# def add_to(self, arg): +# return self + arg +# Obj.add_to(1) # not enough arguments +# Obj.add_to(1, 2) # returns 3, result is not cached +# """ +# def __init__(self, func): +# self.func = func +# def __get__(self, obj, objtype=None): +# if obj is None: +# return self.func +# return partial(self, obj) +# def __call__(self, *args, **kw): +# obj = args[0] +# try: +# cache = obj.__cache +# except AttributeError: +# cache = obj.__cache = {} +# key = (self.func, args[1:], frozenset(kw.items())) +# try: +# res = cache[key] +# except KeyError: +# res = cache[key] = self.func(*args, **kw) +# return res + + +def clear_memoized_methods(obj, *method_names): + """ + Clear the memoized method or @memoizedproperty results for the given + method names from the given object. + + >>> v = [0] + >>> def inc(): + ... v[0] += 1 + ... return v[0] + ... + >>> class Foo(object): + ... @memoizemethod + ... def foo(self): + ... return inc() + ... @memoizedproperty + ... def g(self): + ... return inc() + ... + >>> f = Foo() + >>> f.foo(), f.foo() + (1, 1) + >>> clear_memoized_methods(f, 'foo') + >>> (f.foo(), f.foo(), f.g, f.g) + (2, 2, 3, 3) + >>> (f.foo(), f.foo(), f.g, f.g) + (2, 2, 3, 3) + >>> clear_memoized_methods(f, 'g', 'no_problem_if_undefined') + >>> f.g, f.foo(), f.g + (4, 2, 4) + >>> f.foo() + 2 + """ + for key in list(getattr(obj, '_memoized_results', {}).keys()): + # key[0] is the method name + if key[0] in method_names: + del obj._memoized_results[key] + + property_dict = obj._cache_ + for prop in method_names: + inner_attname = '__%s' % prop + if inner_attname in property_dict: + del property_dict[inner_attname] + + +def memoizedproperty(func): + """ + Decorator to cause a method to cache it's results in self for each + combination of inputs and return the cached result on subsequent calls. + Does not support named arguments or arg values that are not hashable. + + >>> class Foo (object): + ... _x = 1 + ... @memoizedproperty + ... def foo(self): + ... self._x += 1 + ... print('updating and returning {0}'.format(self._x)) + ... return self._x + ... + >>> foo1 = Foo() + >>> foo2 = Foo() + >>> foo1.foo + updating and returning 2 + 2 + >>> foo1.foo + 2 + >>> foo2.foo + updating and returning 2 + 2 + >>> foo1.foo + 2 + """ + inner_attname = '__%s' % func.__name__ + + def new_fget(self): + if not hasattr(self, '_cache_'): + self._cache_ = {} + cache = self._cache_ + if inner_attname not in cache: + cache[inner_attname] = func(self) + return cache[inner_attname] + + return property(new_fget) + + +# def memoized_property(fget): +# """ +# Return a property attribute for new-style classes that only calls its getter on the first +# access. The result is stored and on subsequent accesses is returned, preventing the need to +# call the getter any more. +# Example:: +# >>> class C(object): +# ... load_name_count = 0 +# ... @memoized_property +# ... def name(self): +# ... "name's docstring" +# ... self.load_name_count += 1 +# ... return "the name" +# >>> c = C() +# >>> c.load_name_count +# 0 +# >>> c.name +# "the name" +# >>> c.load_name_count +# 1 +# >>> c.name +# "the name" +# >>> c.load_name_count +# 1 +# """ +# attr_name = '_{0}'.format(fget.__name__) +# +# @wraps(fget) +# def fget_memoized(self): +# if not hasattr(self, attr_name): +# setattr(self, attr_name, fget(self)) +# return getattr(self, attr_name) +# +# return property(fget_memoized) + + +class classproperty: # pylint: disable=C0103 + # from celery.five + + def __init__(self, getter=None, setter=None): + if getter is not None and not isinstance(getter, classmethod): + getter = classmethod(getter) + if setter is not None and not isinstance(setter, classmethod): + setter = classmethod(setter) + self.__get = getter + self.__set = setter + + info = getter.__get__(object) # just need the info attrs. + self.__doc__ = info.__doc__ + self.__name__ = info.__name__ + self.__module__ = info.__module__ + + def __get__(self, obj, type_=None): + if obj and type_ is None: + type_ = obj.__class__ + return self.__get.__get__(obj, type_)() + + def __set__(self, obj, value): + if obj is None: + return self + return self.__set.__get__(obj)(value) + + def setter(self, setter): + return self.__class__(self.__get, setter) + +# memoize & clear: +# class method +# function +# classproperty +# property +# staticproperty? +# memoizefunction +# memoizemethod +# memoizedproperty +# +# diff --git a/shared/package-files/43/4312af0a14da44f8f4a2fbf176b7ebde93b31311087f9b2f0f0c5113b7a71178/axislines.py b/shared/package-files/43/4312af0a14da44f8f4a2fbf176b7ebde93b31311087f9b2f0f0c5113b7a71178/axislines.py new file mode 100644 index 0000000000000000000000000000000000000000..8d06cb236269d00ed20a27297b59fa816338e79a --- /dev/null +++ b/shared/package-files/43/4312af0a14da44f8f4a2fbf176b7ebde93b31311087f9b2f0f0c5113b7a71178/axislines.py @@ -0,0 +1,479 @@ +""" +Axislines includes modified implementation of the Axes class. The +biggest difference is that the artists responsible for drawing the axis spine, +ticks, ticklabels and axis labels are separated out from Matplotlib's Axis +class. Originally, this change was motivated to support curvilinear +grid. Here are a few reasons that I came up with a new axes class: + +* "top" and "bottom" x-axis (or "left" and "right" y-axis) can have + different ticks (tick locations and labels). This is not possible + with the current Matplotlib, although some twin axes trick can help. + +* Curvilinear grid. + +* angled ticks. + +In the new axes class, xaxis and yaxis is set to not visible by +default, and new set of artist (AxisArtist) are defined to draw axis +line, ticks, ticklabels and axis label. Axes.axis attribute serves as +a dictionary of these artists, i.e., ax.axis["left"] is a AxisArtist +instance responsible to draw left y-axis. The default Axes.axis contains +"bottom", "left", "top" and "right". + +AxisArtist can be considered as a container artist and has the following +children artists which will draw ticks, labels, etc. + +* line +* major_ticks, major_ticklabels +* minor_ticks, minor_ticklabels +* offsetText +* label + +Note that these are separate artists from `matplotlib.axis.Axis`, thus most +tick-related functions in Matplotlib won't work. For example, color and +markerwidth of the ``ax.axis["bottom"].major_ticks`` will follow those of +Axes.xaxis unless explicitly specified. + +In addition to AxisArtist, the Axes will have *gridlines* attribute, +which obviously draws grid lines. The gridlines needs to be separated +from the axis as some gridlines can never pass any axis. +""" + +import numpy as np + +import matplotlib as mpl +from matplotlib import _api +import matplotlib.axes as maxes +from matplotlib.path import Path +from mpl_toolkits.axes_grid1 import mpl_axes +from .axisline_style import AxislineStyle # noqa +from .axis_artist import AxisArtist, GridlinesCollection + + +class _AxisArtistHelperBase: + """ + Base class for axis helper. + + Subclasses should define the methods listed below. The *axes* + argument will be the ``.axes`` attribute of the caller artist. :: + + # Construct the spine. + + def get_line_transform(self, axes): + return transform + + def get_line(self, axes): + return path + + # Construct the label. + + def get_axislabel_transform(self, axes): + return transform + + def get_axislabel_pos_angle(self, axes): + return (x, y), angle + + # Construct the ticks. + + def get_tick_transform(self, axes): + return transform + + def get_tick_iterators(self, axes): + # A pair of iterables (one for major ticks, one for minor ticks) + # that yield (tick_position, tick_angle, tick_label). + return iter_major, iter_minor + """ + + def __init__(self, nth_coord): + self.nth_coord = nth_coord + + def update_lim(self, axes): + pass + + def get_nth_coord(self): + return self.nth_coord + + def _to_xy(self, values, const): + """ + Create a (*values.shape, 2)-shape array representing (x, y) pairs. + + The other coordinate is filled with the constant *const*. + + Example:: + + >>> self.nth_coord = 0 + >>> self._to_xy([1, 2, 3], const=0) + array([[1, 0], + [2, 0], + [3, 0]]) + """ + if self.nth_coord == 0: + return np.stack(np.broadcast_arrays(values, const), axis=-1) + elif self.nth_coord == 1: + return np.stack(np.broadcast_arrays(const, values), axis=-1) + else: + raise ValueError("Unexpected nth_coord") + + +class _FixedAxisArtistHelperBase(_AxisArtistHelperBase): + """Helper class for a fixed (in the axes coordinate) axis.""" + + @_api.delete_parameter("3.9", "nth_coord") + def __init__(self, loc, nth_coord=None): + """``nth_coord = 0``: x-axis; ``nth_coord = 1``: y-axis.""" + super().__init__(_api.check_getitem( + {"bottom": 0, "top": 0, "left": 1, "right": 1}, loc=loc)) + self._loc = loc + self._pos = {"bottom": 0, "top": 1, "left": 0, "right": 1}[loc] + # axis line in transAxes + self._path = Path(self._to_xy((0, 1), const=self._pos)) + + # LINE + + def get_line(self, axes): + return self._path + + def get_line_transform(self, axes): + return axes.transAxes + + # LABEL + + def get_axislabel_transform(self, axes): + return axes.transAxes + + def get_axislabel_pos_angle(self, axes): + """ + Return the label reference position in transAxes. + + get_label_transform() returns a transform of (transAxes+offset) + """ + return dict(left=((0., 0.5), 90), # (position, angle_tangent) + right=((1., 0.5), 90), + bottom=((0.5, 0.), 0), + top=((0.5, 1.), 0))[self._loc] + + # TICK + + def get_tick_transform(self, axes): + return [axes.get_xaxis_transform(), axes.get_yaxis_transform()][self.nth_coord] + + +class _FloatingAxisArtistHelperBase(_AxisArtistHelperBase): + def __init__(self, nth_coord, value): + self._value = value + super().__init__(nth_coord) + + def get_line(self, axes): + raise RuntimeError("get_line method should be defined by the derived class") + + +class FixedAxisArtistHelperRectilinear(_FixedAxisArtistHelperBase): + + @_api.delete_parameter("3.9", "nth_coord") + def __init__(self, axes, loc, nth_coord=None): + """ + nth_coord = along which coordinate value varies + in 2D, nth_coord = 0 -> x axis, nth_coord = 1 -> y axis + """ + super().__init__(loc) + self.axis = [axes.xaxis, axes.yaxis][self.nth_coord] + + # TICK + + def get_tick_iterators(self, axes): + """tick_loc, tick_angle, tick_label""" + angle_normal, angle_tangent = {0: (90, 0), 1: (0, 90)}[self.nth_coord] + + major = self.axis.major + major_locs = major.locator() + major_labels = major.formatter.format_ticks(major_locs) + + minor = self.axis.minor + minor_locs = minor.locator() + minor_labels = minor.formatter.format_ticks(minor_locs) + + tick_to_axes = self.get_tick_transform(axes) - axes.transAxes + + def _f(locs, labels): + for loc, label in zip(locs, labels): + c = self._to_xy(loc, const=self._pos) + # check if the tick point is inside axes + c2 = tick_to_axes.transform(c) + if mpl.transforms._interval_contains_close((0, 1), c2[self.nth_coord]): + yield c, angle_normal, angle_tangent, label + + return _f(major_locs, major_labels), _f(minor_locs, minor_labels) + + +class FloatingAxisArtistHelperRectilinear(_FloatingAxisArtistHelperBase): + + def __init__(self, axes, nth_coord, + passingthrough_point, axis_direction="bottom"): + super().__init__(nth_coord, passingthrough_point) + self._axis_direction = axis_direction + self.axis = [axes.xaxis, axes.yaxis][self.nth_coord] + + def get_line(self, axes): + fixed_coord = 1 - self.nth_coord + data_to_axes = axes.transData - axes.transAxes + p = data_to_axes.transform([self._value, self._value]) + return Path(self._to_xy((0, 1), const=p[fixed_coord])) + + def get_line_transform(self, axes): + return axes.transAxes + + def get_axislabel_transform(self, axes): + return axes.transAxes + + def get_axislabel_pos_angle(self, axes): + """ + Return the label reference position in transAxes. + + get_label_transform() returns a transform of (transAxes+offset) + """ + angle = [0, 90][self.nth_coord] + fixed_coord = 1 - self.nth_coord + data_to_axes = axes.transData - axes.transAxes + p = data_to_axes.transform([self._value, self._value]) + verts = self._to_xy(0.5, const=p[fixed_coord]) + return (verts, angle) if 0 <= verts[fixed_coord] <= 1 else (None, None) + + def get_tick_transform(self, axes): + return axes.transData + + def get_tick_iterators(self, axes): + """tick_loc, tick_angle, tick_label""" + angle_normal, angle_tangent = {0: (90, 0), 1: (0, 90)}[self.nth_coord] + + major = self.axis.major + major_locs = major.locator() + major_labels = major.formatter.format_ticks(major_locs) + + minor = self.axis.minor + minor_locs = minor.locator() + minor_labels = minor.formatter.format_ticks(minor_locs) + + data_to_axes = axes.transData - axes.transAxes + + def _f(locs, labels): + for loc, label in zip(locs, labels): + c = self._to_xy(loc, const=self._value) + c1, c2 = data_to_axes.transform(c) + if 0 <= c1 <= 1 and 0 <= c2 <= 1: + yield c, angle_normal, angle_tangent, label + + return _f(major_locs, major_labels), _f(minor_locs, minor_labels) + + +class AxisArtistHelper: # Backcompat. + Fixed = _FixedAxisArtistHelperBase + Floating = _FloatingAxisArtistHelperBase + + +class AxisArtistHelperRectlinear: # Backcompat. + Fixed = FixedAxisArtistHelperRectilinear + Floating = FloatingAxisArtistHelperRectilinear + + +class GridHelperBase: + + def __init__(self): + self._old_limits = None + super().__init__() + + def update_lim(self, axes): + x1, x2 = axes.get_xlim() + y1, y2 = axes.get_ylim() + if self._old_limits != (x1, x2, y1, y2): + self._update_grid(x1, y1, x2, y2) + self._old_limits = (x1, x2, y1, y2) + + def _update_grid(self, x1, y1, x2, y2): + """Cache relevant computations when the axes limits have changed.""" + + def get_gridlines(self, which, axis): + """ + Return list of grid lines as a list of paths (list of points). + + Parameters + ---------- + which : {"both", "major", "minor"} + axis : {"both", "x", "y"} + """ + return [] + + +class GridHelperRectlinear(GridHelperBase): + + def __init__(self, axes): + super().__init__() + self.axes = axes + + @_api.delete_parameter( + "3.9", "nth_coord", addendum="'nth_coord' is now inferred from 'loc'.") + def new_fixed_axis( + self, loc, nth_coord=None, axis_direction=None, offset=None, axes=None): + if axes is None: + _api.warn_external( + "'new_fixed_axis' explicitly requires the axes keyword.") + axes = self.axes + if axis_direction is None: + axis_direction = loc + return AxisArtist(axes, FixedAxisArtistHelperRectilinear(axes, loc), + offset=offset, axis_direction=axis_direction) + + def new_floating_axis(self, nth_coord, value, axis_direction="bottom", axes=None): + if axes is None: + _api.warn_external( + "'new_floating_axis' explicitly requires the axes keyword.") + axes = self.axes + helper = FloatingAxisArtistHelperRectilinear( + axes, nth_coord, value, axis_direction) + axisline = AxisArtist(axes, helper, axis_direction=axis_direction) + axisline.line.set_clip_on(True) + axisline.line.set_clip_box(axisline.axes.bbox) + return axisline + + def get_gridlines(self, which="major", axis="both"): + """ + Return list of gridline coordinates in data coordinates. + + Parameters + ---------- + which : {"both", "major", "minor"} + axis : {"both", "x", "y"} + """ + _api.check_in_list(["both", "major", "minor"], which=which) + _api.check_in_list(["both", "x", "y"], axis=axis) + gridlines = [] + + if axis in ("both", "x"): + locs = [] + y1, y2 = self.axes.get_ylim() + if which in ("both", "major"): + locs.extend(self.axes.xaxis.major.locator()) + if which in ("both", "minor"): + locs.extend(self.axes.xaxis.minor.locator()) + gridlines.extend([[x, x], [y1, y2]] for x in locs) + + if axis in ("both", "y"): + x1, x2 = self.axes.get_xlim() + locs = [] + if self.axes.yaxis._major_tick_kw["gridOn"]: + locs.extend(self.axes.yaxis.major.locator()) + if self.axes.yaxis._minor_tick_kw["gridOn"]: + locs.extend(self.axes.yaxis.minor.locator()) + gridlines.extend([[x1, x2], [y, y]] for y in locs) + + return gridlines + + +class Axes(maxes.Axes): + + def __init__(self, *args, grid_helper=None, **kwargs): + self._axisline_on = True + self._grid_helper = grid_helper if grid_helper else GridHelperRectlinear(self) + super().__init__(*args, **kwargs) + self.toggle_axisline(True) + + def toggle_axisline(self, b=None): + if b is None: + b = not self._axisline_on + if b: + self._axisline_on = True + self.spines[:].set_visible(False) + self.xaxis.set_visible(False) + self.yaxis.set_visible(False) + else: + self._axisline_on = False + self.spines[:].set_visible(True) + self.xaxis.set_visible(True) + self.yaxis.set_visible(True) + + @property + def axis(self): + return self._axislines + + def clear(self): + # docstring inherited + + # Init gridlines before clear() as clear() calls grid(). + self.gridlines = gridlines = GridlinesCollection( + [], + colors=mpl.rcParams['grid.color'], + linestyles=mpl.rcParams['grid.linestyle'], + linewidths=mpl.rcParams['grid.linewidth']) + self._set_artist_props(gridlines) + gridlines.set_grid_helper(self.get_grid_helper()) + + super().clear() + + # clip_path is set after Axes.clear(): that's when a patch is created. + gridlines.set_clip_path(self.axes.patch) + + # Init axis artists. + self._axislines = mpl_axes.Axes.AxisDict(self) + new_fixed_axis = self.get_grid_helper().new_fixed_axis + self._axislines.update({ + loc: new_fixed_axis(loc=loc, axes=self, axis_direction=loc) + for loc in ["bottom", "top", "left", "right"]}) + for axisline in [self._axislines["top"], self._axislines["right"]]: + axisline.label.set_visible(False) + axisline.major_ticklabels.set_visible(False) + axisline.minor_ticklabels.set_visible(False) + + def get_grid_helper(self): + return self._grid_helper + + def grid(self, visible=None, which='major', axis="both", **kwargs): + """ + Toggle the gridlines, and optionally set the properties of the lines. + """ + # There are some discrepancies in the behavior of grid() between + # axes_grid and Matplotlib, because axes_grid explicitly sets the + # visibility of the gridlines. + super().grid(visible, which=which, axis=axis, **kwargs) + if not self._axisline_on: + return + if visible is None: + visible = (self.axes.xaxis._minor_tick_kw["gridOn"] + or self.axes.xaxis._major_tick_kw["gridOn"] + or self.axes.yaxis._minor_tick_kw["gridOn"] + or self.axes.yaxis._major_tick_kw["gridOn"]) + self.gridlines.set(which=which, axis=axis, visible=visible) + self.gridlines.set(**kwargs) + + def get_children(self): + if self._axisline_on: + children = [*self._axislines.values(), self.gridlines] + else: + children = [] + children.extend(super().get_children()) + return children + + def new_fixed_axis(self, loc, offset=None): + return self.get_grid_helper().new_fixed_axis(loc, offset=offset, axes=self) + + def new_floating_axis(self, nth_coord, value, axis_direction="bottom"): + return self.get_grid_helper().new_floating_axis( + nth_coord, value, axis_direction=axis_direction, axes=self) + + +class AxesZero(Axes): + + def clear(self): + super().clear() + new_floating_axis = self.get_grid_helper().new_floating_axis + self._axislines.update( + xzero=new_floating_axis( + nth_coord=0, value=0., axis_direction="bottom", axes=self), + yzero=new_floating_axis( + nth_coord=1, value=0., axis_direction="left", axes=self), + ) + for k in ["xzero", "yzero"]: + self._axislines[k].line.set_clip_path(self.patch) + self._axislines[k].set_visible(False) + + +Subplot = Axes +SubplotZero = AxesZero diff --git a/shared/package-files/43/43153707e1effd1b2811c3064bdfb5e37e2e828b8bdb2802eb82eae8582f88d3/csv.h b/shared/package-files/43/43153707e1effd1b2811c3064bdfb5e37e2e828b8bdb2802eb82eae8582f88d3/csv.h new file mode 100644 index 0000000000000000000000000000000000000000..34302e93667394d616692a6a4603e6d0be67d211 --- /dev/null +++ b/shared/package-files/43/43153707e1effd1b2811c3064bdfb5e37e2e828b8bdb2802eb82eae8582f88d3/csv.h @@ -0,0 +1,42 @@ +// 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/csv/options.h" +#include "arrow/python/common.h" +#include "arrow/util/macros.h" + +namespace arrow { +namespace py { +namespace csv { + +using PyInvalidRowCallback = std::function<::arrow::csv::InvalidRowResult( + PyObject*, const ::arrow::csv::InvalidRow&)>; + +ARROW_PYTHON_EXPORT +::arrow::csv::InvalidRowHandler MakeInvalidRowHandler(PyInvalidRowCallback, + PyObject* handler); + +} // namespace csv +} // namespace py +} // namespace arrow diff --git a/shared/package-files/43/43174a95a284e9c2762eda1ca0b6a6afb4768a17ce16532379169783a3737f8c/gtest.pc b/shared/package-files/43/43174a95a284e9c2762eda1ca0b6a6afb4768a17ce16532379169783a3737f8c/gtest.pc new file mode 100644 index 0000000000000000000000000000000000000000..4240778ecb5c87e57b70823b4f1b6a495663ca6a --- /dev/null +++ b/shared/package-files/43/43174a95a284e9c2762eda1ca0b6a6afb4768a17ce16532379169783a3737f8c/gtest.pc @@ -0,0 +1,9 @@ +libdir=/opt/conda/lib +includedir=/opt/conda/include + +Name: gtest +Description: GoogleTest (without main() function) +Version: 1.11.0 +URL: https://github.com/google/googletest +Libs: -L${libdir} -lgtest -lpthread +Cflags: -I${includedir} -DGTEST_HAS_PTHREAD=1 diff --git a/shared/package-files/43/431963e89066e2898960ad425fc02dee17d5d6503b4eb6b13196fe1b005b6a93/row_indices_copy_ops.h b/shared/package-files/43/431963e89066e2898960ad425fc02dee17d5d6503b4eb6b13196fe1b005b6a93/row_indices_copy_ops.h new file mode 100644 index 0000000000000000000000000000000000000000..baae27176dc89777a16c69944b096195dd0aa83b --- /dev/null +++ b/shared/package-files/43/431963e89066e2898960ad425fc02dee17d5d6503b4eb6b13196fe1b005b6a93/row_indices_copy_ops.h @@ -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 row_indices_copy { + 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::row_indices_copy") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "row_indices_copy(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 row_indices_copy_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::row_indices_copy") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "out") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "row_indices_copy.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/43/431d26bbaeedad684782899327ae73bc67c89325ab6ad9caa59f1c09c4b4461c/expand_compositeexplicitautograd_dispatch.h b/shared/package-files/43/431d26bbaeedad684782899327ae73bc67c89325ab6ad9caa59f1c09c4b4461c/expand_compositeexplicitautograd_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..caee23e50b40484c91aab65ea8ccce0db45bd305 --- /dev/null +++ b/shared/package-files/43/431d26bbaeedad684782899327ae73bc67c89325ab6ad9caa59f1c09c4b4461c/expand_compositeexplicitautograd_dispatch.h @@ -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 compositeexplicitautograd { + +TORCH_API at::Tensor expand(const at::Tensor & self, at::IntArrayRef size, bool implicit=false); +TORCH_API at::Tensor expand_symint(const at::Tensor & self, c10::SymIntArrayRef size, bool implicit=false); + +} // namespace compositeexplicitautograd +} // namespace at diff --git a/shared/package-files/43/431f8002db4b53ecc500f00f0e346990f0fb0fe70cf1d28d1af0a71ca055303a/ldd.py b/shared/package-files/43/431f8002db4b53ecc500f00f0e346990f0fb0fe70cf1d28d1af0a71ca055303a/ldd.py new file mode 100644 index 0000000000000000000000000000000000000000..6f15173f29e02994ee983a3e9895d52918e045fc --- /dev/null +++ b/shared/package-files/43/431f8002db4b53ecc500f00f0e346990f0fb0fe70cf1d28d1af0a71ca055303a/ldd.py @@ -0,0 +1,130 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause +from __future__ import annotations + +import re +import subprocess +from functools import lru_cache +from os.path import basename +from pathlib import Path +from typing import TYPE_CHECKING + +from ..conda_interface import untracked +from ..utils import on_linux, on_mac +from .macho import otool +from .pyldd import codefile_class, inspect_linkages, machofile + +if TYPE_CHECKING: + import os + from typing import Iterable + + from conda.models.records import PrefixRecord + +LDD_RE = re.compile(r"\s*(.*?)\s*=>\s*(.*?)\s*\(.*\)") +LDD_NOT_FOUND_RE = re.compile(r"\s*(.*?)\s*=>\s*not found") + + +def ldd(path): + "thin wrapper around ldd" + lines = subprocess.check_output(["ldd", path]).decode("utf-8").splitlines() + res = [] + for line in lines: + if "=>" not in line: + continue + + assert line[0] == "\t", (path, line) + m = LDD_RE.match(line) + if m: + res.append(m.groups()) + continue + m = LDD_NOT_FOUND_RE.match(line) + if m: + res.append((m.group(1), "not found")) + continue + if "ld-linux" in line: + continue + raise RuntimeError("Unexpected output from ldd: %s" % line) + + return res + + +def get_linkages( + obj_files: Iterable[str], + prefix: str | os.PathLike | Path, + sysroot, +) -> dict[str, list[tuple[str, str]]]: + return _get_linkages(tuple(obj_files), Path(prefix), sysroot) + + +@lru_cache(maxsize=None) +def _get_linkages( + obj_files: tuple[str], + prefix: Path, + sysroot, +) -> dict[str, list[tuple[str, str]]]: + linkages = {} + for file in obj_files: + # Detect the filetype to emulate what the system-native tool does. + path = prefix / file + if codefile_class(path) == machofile: + resolve_filenames = False + recurse = False + else: + resolve_filenames = True + recurse = True + ldd_emulate = [ + (basename(link), link) + for link in inspect_linkages( + path, + resolve_filenames=resolve_filenames, + sysroot=sysroot, + recurse=recurse, + ) + ] + + try: + if on_linux: + ldd_computed = ldd(path) + elif on_mac: + ldd_computed = [ + (basename(link["name"]), link["name"]) for link in otool(path) + ] + except: + # ldd quite often fails on foreign architectures, fallback to + ldd_computed = ldd_emulate + + if set(ldd_computed) != set(ldd_emulate): + print("WARNING: pyldd disagrees with ldd/otool. This will not cause any") + print("WARNING: problems for this build, but please file a bug at:") + print("WARNING: https://github.com/conda/conda-build") + print(f"WARNING: and (if possible) attach file {path}") + print("WARNING:") + print(" ldd/otool gives:") + print(" " + "\n ".join(map(str, ldd_computed))) + print(" pyldd gives:") + print(" " + "\n ".join(map(str, ldd_emulate))) + print(f"Diffs\n{set(ldd_computed) - set(ldd_emulate)}") + print(f"Diffs\n{set(ldd_emulate) - set(ldd_computed)}") + + linkages[file] = ldd_computed + return linkages + + +@lru_cache(maxsize=None) +def get_package_obj_files( + prec: PrefixRecord, prefix: str | os.PathLike | Path +) -> list[str]: + return [ + file + for file in prec["files"] + if codefile_class(Path(prefix, file), skip_symlinks=True) + ] + + +@lru_cache(maxsize=None) +def get_untracked_obj_files(prefix: str | os.PathLike | Path) -> list[str]: + return [ + file + for file in untracked(str(prefix)) + if codefile_class(Path(prefix, file), skip_symlinks=True) + ] diff --git a/shared/package-files/43/432048e096a91b1777dba8e023153a5ec40c73f986fb7679f11080c184942608/linalg_matrix_exp_native.h b/shared/package-files/43/432048e096a91b1777dba8e023153a5ec40c73f986fb7679f11080c184942608/linalg_matrix_exp_native.h new file mode 100644 index 0000000000000000000000000000000000000000..f436c941f3f95b66788d249ddc885acd305bf499 --- /dev/null +++ b/shared/package-files/43/432048e096a91b1777dba8e023153a5ec40c73f986fb7679f11080c184942608/linalg_matrix_exp_native.h @@ -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 & linalg_matrix_exp_out(const at::Tensor & self, at::Tensor & out); +TORCH_API at::Tensor linalg_matrix_exp(const at::Tensor & self); +} // namespace native +} // namespace at diff --git a/shared/package-files/43/4320d52271eff309c04dbb5b6c3531203ba465835b8d37510b887fb147a1bd33/lift_constants_pass.py b/shared/package-files/43/4320d52271eff309c04dbb5b6c3531203ba465835b8d37510b887fb147a1bd33/lift_constants_pass.py new file mode 100644 index 0000000000000000000000000000000000000000..5f93eabdc2b5d8cea145ebc8399ccc3e2c5a7816 --- /dev/null +++ b/shared/package-files/43/4320d52271eff309c04dbb5b6c3531203ba465835b8d37510b887fb147a1bd33/lift_constants_pass.py @@ -0,0 +1,248 @@ +import collections +from typing import Any, Dict, Union + +import torch +from torch._export.verifier import SpecViolationError +from torch._guards import detect_fake_mode +from torch.export.exported_program import ( + ArgumentSpec, + CustomObjArgument, + ExportGraphSignature, + InputKind, + InputSpec, + TensorArgument, +) + + +class ConstantAttrMap(collections.abc.MutableMapping): + """A mapping class that understands how to use module constants (tensors and + ScriptObjects) as keys. We store tensors normally, but ScriptObjects are + stored by hash, because different torch.ScriptObjects can point to the same + underlying value (but we guarantee that they will `hash()` to the same value + if that's the case). + """ + + def __init__(self): + # Underlying dict that we use to implement this mapping. + self._constant_attrs: Dict[Union[int, torch.Tensor], Any] = {} + # Map from the hash(ScriptObject) to the ScriptObject itself. Used for + # APIs like `__iter__` that should look like they're returning the + # original ScriptObjects. + self._script_object_map: Dict[int, torch.ScriptObject] = {} + + def __getitem__(self, key: Union[torch.Tensor, torch.ScriptObject]) -> Any: + real_key = hash(key) if isinstance(key, torch.ScriptObject) else key + assert isinstance(real_key, (int, torch.Tensor)) + return self._constant_attrs[real_key] + + def __setitem__( + self, key: Union[torch.Tensor, torch.ScriptObject], value: Any + ) -> None: + if isinstance(key, torch.ScriptObject): + self._constant_attrs[hash(key)] = value + self._script_object_map[hash(key)] = key + elif isinstance(key, torch.Tensor): + self._constant_attrs[key] = value + else: + raise TypeError( + f"Expected key to be a tensor or ScriptObject, got {type(key)}" + ) + + def __delitem__(self, key): + real_key = hash(key) if isinstance(key, torch.ScriptObject) else key + + del self._constant_attrs[real_key] + + def __iter__(self): + for key in self._constant_attrs: + if isinstance(key, int): + yield self._script_object_map[key] + else: + yield key + + def __len__(self): + return len(self._constant_attrs) + + def __contains__(self, key: object) -> bool: + real_key = hash(key) if isinstance(key, torch.ScriptObject) else key + return real_key in self._constant_attrs + + +def get_constant_fqn(node: torch.fx.Node, constant_name: str) -> str: + # The FQN of the constant tensor in the state dict should + # correspond to the module where the constant tensor was + # originally used. + parent_fqn = list(node.meta["nn_module_stack"].values())[-1][0] + if len(parent_fqn) > 0: + return f"{parent_fqn}.{constant_name}" + else: + return constant_name + + +def lift_constants_pass( + gm: torch.fx.GraphModule, + graph_signature: ExportGraphSignature, + constant_attrs: ConstantAttrMap, +) -> Dict[str, Union[torch.Tensor, torch._C.ScriptObject]]: + """ + Takes a graph module, graph signature, and modifies them implace to lift any + constants (tensors or custom classes) as inputs to the graph. Returns a + dictionary of names to constants. + + Arguments: + gm (torch.fx.GraphModule): The graph module containing the graph and constants to lift. + graph_signature (ExportGraphSignature): This graph signature will be + mutated to add additional CONSTANT_TENSOR and CUSTOM_OBJ inputs. + constant_attrs (ConstantAttr): A mapping from a constant value to its + fully-qualified path in `gm`. This is used to maintain consistent + location of constants between the original module and the exported + version. + + Returns: + A dictionary of fqn => constant value. + """ + all_constants: Dict[str, Union[torch.Tensor, torch._C.ScriptObject]] = {} + + inputs = graph_signature.input_specs + num_custom_obj = sum( + input_specs.kind == InputKind.CUSTOM_OBJ for input_specs in inputs + ) + num_tensor_constants = sum( + input_specs.kind == InputKind.CONSTANT_TENSOR for input_specs in inputs + ) + + fake_mode = detect_fake_mode( + tuple(node.meta["val"] for node in gm.graph.nodes if node.op == "placeholder") + ) + + first_user_input_loc, first_user_input = 0, None + for node in gm.graph.nodes: + if node.op == "placeholder" and node.name in graph_signature.user_inputs: + first_user_input = node + break + first_user_input_loc += 1 + + lifted_objs = ConstantAttrMap() + for node in gm.graph.nodes: + if node.op == "get_attr": + constant_val = getattr(gm, node.target) + if constant_val in lifted_objs: + # We already lifted this constant elsewhere. Just rewrite uses + # of this get_attr to point to the already-existing placeholder + # node. + const_placeholder_node = lifted_objs[constant_val] + node.replace_all_uses_with(const_placeholder_node) + gm.graph.erase_node(node) + continue + + # For ScriptObject and Tensor constants: + # First check if the constant was an attribute on some module by + # consulting `constant_attrs` map. If it is, use the fqn that keeps + # its location consistent with the eager module. + # + # If it's not in the `constant_attrs` map, that means it's an inline + # constant (e.g. x + torch.tensor(0)), and thus did not have a + # specific location in the eager module. In that case, just generate + # some name and attach it to the module in which it was used. + if isinstance(constant_val, torch.ScriptObject): + constant_kind = InputKind.CUSTOM_OBJ + constant_fqn = constant_attrs.get(constant_val) + if constant_fqn is not None: + _, _, constant_name = constant_fqn.rpartition(".") + else: + constant_name = f"_lifted_custom_obj{num_custom_obj}" + constant_fqn = get_constant_fqn(node, constant_name) + num_custom_obj += 1 + elif isinstance(constant_val, torch.Tensor): + constant_kind = InputKind.CONSTANT_TENSOR + constant_fqn = constant_attrs.get(constant_val) + if constant_fqn is not None: + _, _, constant_name = constant_fqn.rpartition(".") + else: + constant_name = f"_lifted_tensor_constant{num_tensor_constants}" + constant_fqn = get_constant_fqn(node, constant_name) + num_tensor_constants += 1 + elif isinstance(constant_val, torch.fx.GraphModule): + continue + elif "LoweredBackendModule" in type(constant_val).__name__: + continue + else: + raise SpecViolationError( + f"getattr node {node} referencing unsupported type {type(constant_val)}" + ) + + with gm.graph.inserting_before(first_user_input): + # Insert the constant node before the first user input + const_placeholder_node = gm.graph.placeholder(constant_name) + # match target name with its node name in case there is name collision + # and suffix is added to node name in fx + const_placeholder_node.target = const_placeholder_node.name + + for k, v in node.meta.items(): + const_placeholder_node.meta[k] = v + + input_spec_arg: ArgumentSpec + if isinstance(constant_val, torch.Tensor): + if fake_mode is not None: + const_placeholder_node.meta["val"] = fake_mode.from_tensor( + constant_val, static_shapes=True + ) + const_placeholder_node.meta["val"].constant = constant_val + else: + const_placeholder_node.meta["val"] = constant_val + input_spec_arg = TensorArgument(name=const_placeholder_node.name) + elif isinstance(constant_val, torch._C.ScriptObject): + class_fqn = constant_val._type().qualified_name() # type: ignore[attr-defined] + const_placeholder_node.meta["val"] = CustomObjArgument( + constant_fqn, class_fqn + ) + input_spec_arg = CustomObjArgument( + name=const_placeholder_node.name, class_fqn=class_fqn + ) + else: + raise SpecViolationError( + f"tried to lift unsupported type {type(constant_val)} from node {node.format_node()}" + ) + + lifted_objs[constant_val] = const_placeholder_node + node.replace_all_uses_with(const_placeholder_node) + gm.graph.erase_node(node) + + # Add the constant as a buffer to the graph signature + graph_signature.input_specs.insert( + first_user_input_loc, + InputSpec( + kind=constant_kind, + arg=input_spec_arg, + target=constant_fqn, + ), + ) + all_constants[constant_fqn] = constant_val + first_user_input_loc += 1 + + return all_constants + + +def rewrite_script_object_meta( + gm: torch.fx.GraphModule, +) -> Dict[str, Union[torch.Tensor, torch.ScriptObject]]: + """When tracing, we produce a graph with an actual ScriptObject in the + meta["val"]. Eventually we want to change this behavior, when FakeMode infra + for ScriptObjects lands. + + For now, we rewrie meta["val"] to be a placeholder CustomObjArgument + """ + constants: Dict[str, Union[torch.Tensor, torch._C.ScriptObject]] = {} + for node in gm.graph.nodes: + if "val" not in node.meta or not isinstance( + node.meta["val"], torch.ScriptObject + ): + continue + + old_meta = node.meta["val"] + class_fqn = old_meta._type().qualified_name() # type: ignore[attr-defined] + new_meta = CustomObjArgument(node.name, class_fqn) + constants[node.name] = old_meta + node.meta["val"] = new_meta + + return constants diff --git a/shared/package-files/43/43219de1f312f36d004db3fc62006dbbb6d248ad3da70e5166496c3c9f097f46/quesst14.py b/shared/package-files/43/43219de1f312f36d004db3fc62006dbbb6d248ad3da70e5166496c3c9f097f46/quesst14.py new file mode 100644 index 0000000000000000000000000000000000000000..064423c4494850f2ad8f43fb00a956be21fcb95e --- /dev/null +++ b/shared/package-files/43/43219de1f312f36d004db3fc62006dbbb6d248ad3da70e5166496c3c9f097f46/quesst14.py @@ -0,0 +1,136 @@ +import os +import re +from pathlib import Path +from typing import Optional, Tuple, Union + +import torch +from torch.utils.data import Dataset +from torchaudio._internal import download_url_to_file +from torchaudio.datasets.utils import _extract_tar, _load_waveform + + +URL = "https://speech.fit.vutbr.cz/files/quesst14Database.tgz" +SAMPLE_RATE = 8000 +_CHECKSUM = "4f869e06bc066bbe9c5dde31dbd3909a0870d70291110ebbb38878dcbc2fc5e4" +_LANGUAGES = [ + "albanian", + "basque", + "czech", + "nnenglish", + "romanian", + "slovak", +] + + +class QUESST14(Dataset): + """*QUESST14* :cite:`Mir2015QUESST2014EQ` dataset. + + Args: + root (str or Path): Root directory where the dataset's top level directory is found + subset (str): Subset of the dataset to use. Options: [``"docs"``, ``"dev"``, ``"eval"``]. + language (str or None, optional): Language to get dataset for. + Options: [``None``, ``albanian``, ``basque``, ``czech``, ``nnenglish``, ``romanian``, ``slovak``]. + If ``None``, dataset consists of all languages. (default: ``"nnenglish"``) + download (bool, optional): Whether to download the dataset if it is not found at root path. + (default: ``False``) + """ + + def __init__( + self, + root: Union[str, Path], + subset: str, + language: Optional[str] = "nnenglish", + download: bool = False, + ) -> None: + if subset not in ["docs", "dev", "eval"]: + raise ValueError("`subset` must be one of ['docs', 'dev', 'eval']") + + if language is not None and language not in _LANGUAGES: + raise ValueError(f"`language` must be None or one of {str(_LANGUAGES)}") + + # Get string representation of 'root' + root = os.fspath(root) + + basename = os.path.basename(URL) + archive = os.path.join(root, basename) + + basename = basename.rsplit(".", 2)[0] + self._path = os.path.join(root, basename) + + if not os.path.isdir(self._path): + if not os.path.isfile(archive): + if not download: + raise RuntimeError("Dataset not found. Please use `download=True` to download") + download_url_to_file(URL, archive, hash_prefix=_CHECKSUM) + _extract_tar(archive, root) + + if subset == "docs": + self.data = filter_audio_paths(self._path, language, "language_key_utterances.lst") + elif subset == "dev": + self.data = filter_audio_paths(self._path, language, "language_key_dev.lst") + elif subset == "eval": + self.data = filter_audio_paths(self._path, language, "language_key_eval.lst") + + def get_metadata(self, n: int) -> Tuple[str, int, str]: + """Get metadata for the n-th sample from the dataset. Returns filepath instead of waveform, + but otherwise returns the same fields as :py:func:`__getitem__`. + + Args: + n (int): The index of the sample to be loaded + + Returns: + Tuple of the following items; + + str: + Path to audio + int: + Sample rate + str: + File name + """ + audio_path = self.data[n] + relpath = os.path.relpath(audio_path, self._path) + return relpath, SAMPLE_RATE, audio_path.with_suffix("").name + + def __getitem__(self, n: int) -> Tuple[torch.Tensor, int, str]: + """Load the n-th sample from the dataset. + + Args: + n (int): The index of the sample to be loaded + + Returns: + Tuple of the following items; + + Tensor: + Waveform + int: + Sample rate + str: + File name + """ + metadata = self.get_metadata(n) + waveform = _load_waveform(self._path, metadata[0], metadata[1]) + return (waveform,) + metadata[1:] + + def __len__(self) -> int: + return len(self.data) + + +def filter_audio_paths( + path: str, + language: str, + lst_name: str, +): + """Extract audio paths for the given language.""" + audio_paths = [] + + path = Path(path) + with open(path / "scoring" / lst_name) as f: + for line in f: + audio_path, lang = line.strip().split() + if language is not None and lang != language: + continue + audio_path = re.sub(r"^.*?\/", "", audio_path) + audio_paths.append(path / audio_path) + + return audio_paths diff --git a/shared/package-files/43/4321b12a7a530da1b15b0f5dbbfdbeb8bb30b3d26277c123f4eb56f7010e4340/tek4207-s b/shared/package-files/43/4321b12a7a530da1b15b0f5dbbfdbeb8bb30b3d26277c123f4eb56f7010e4340/tek4207-s new file mode 100644 index 0000000000000000000000000000000000000000..8b20f115a4d00ccf8ae2e1d171104d69e166149f Binary files /dev/null and b/shared/package-files/43/4321b12a7a530da1b15b0f5dbbfdbeb8bb30b3d26277c123f4eb56f7010e4340/tek4207-s differ diff --git a/shared/package-files/43/43261fe01347495b3c2e06da1cb0cdb3fdac1f097fa3879a3eee893454a97ff2/Gaza b/shared/package-files/43/43261fe01347495b3c2e06da1cb0cdb3fdac1f097fa3879a3eee893454a97ff2/Gaza new file mode 100644 index 0000000000000000000000000000000000000000..c9b2ff90823a5809d877fb68c10494a38ab183b1 Binary files /dev/null and b/shared/package-files/43/43261fe01347495b3c2e06da1cb0cdb3fdac1f097fa3879a3eee893454a97ff2/Gaza differ diff --git a/shared/package-files/43/4326c0947fb5deeba0324690ef91c80a959da3bbb3e974958890c61236cbf07a/special_polygamma_ops.h b/shared/package-files/43/4326c0947fb5deeba0324690ef91c80a959da3bbb3e974958890c61236cbf07a/special_polygamma_ops.h new file mode 100644 index 0000000000000000000000000000000000000000..0b7d7832dd4d31db9a6df005d8011a7706f3f756 --- /dev/null +++ b/shared/package-files/43/4326c0947fb5deeba0324690ef91c80a959da3bbb3e974958890c61236cbf07a/special_polygamma_ops.h @@ -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 special_polygamma { + using schema = at::Tensor (int64_t, 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::special_polygamma") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "special_polygamma(int n, Tensor self) -> Tensor") + static at::Tensor call(int64_t n, const at::Tensor & self); + static at::Tensor redispatch(c10::DispatchKeySet dispatchKeySet, int64_t n, const at::Tensor & self); +}; + +struct TORCH_API special_polygamma_out { + using schema = at::Tensor & (int64_t, 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::special_polygamma") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "out") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "special_polygamma.out(int n, Tensor self, *, Tensor(a!) out) -> Tensor(a!)") + static at::Tensor & call(int64_t n, const at::Tensor & self, at::Tensor & out); + static at::Tensor & redispatch(c10::DispatchKeySet dispatchKeySet, int64_t n, const at::Tensor & self, at::Tensor & out); +}; + +}} // namespace at::_ops diff --git a/shared/package-files/43/432742fb8212c983085960981155d9441aa0a2ebfb4bc706ed2ab6db6c0d93c0/XVThumbImagePlugin.py b/shared/package-files/43/432742fb8212c983085960981155d9441aa0a2ebfb4bc706ed2ab6db6c0d93c0/XVThumbImagePlugin.py new file mode 100644 index 0000000000000000000000000000000000000000..47ba1c54803159de8ce209b701597f1a1bc0f3fa --- /dev/null +++ b/shared/package-files/43/432742fb8212c983085960981155d9441aa0a2ebfb4bc706ed2ab6db6c0d93c0/XVThumbImagePlugin.py @@ -0,0 +1,79 @@ +# +# The Python Imaging Library. +# $Id$ +# +# XV Thumbnail file handler by Charles E. "Gene" Cash +# (gcash@magicnet.net) +# +# see xvcolor.c and xvbrowse.c in the sources to John Bradley's XV, +# available from ftp://ftp.cis.upenn.edu/pub/xv/ +# +# history: +# 98-08-15 cec created (b/w only) +# 98-12-09 cec added color palette +# 98-12-28 fl added to PIL (with only a few very minor modifications) +# +# To do: +# FIXME: make save work (this requires quantization support) +# +from __future__ import annotations + +from . import Image, ImageFile, ImagePalette +from ._binary import o8 + +_MAGIC = b"P7 332" + +# standard color palette for thumbnails (RGB332) +PALETTE = b"" +for r in range(8): + for g in range(8): + for b in range(4): + PALETTE = PALETTE + ( + o8((r * 255) // 7) + o8((g * 255) // 7) + o8((b * 255) // 3) + ) + + +def _accept(prefix): + return prefix[:6] == _MAGIC + + +## +# Image plugin for XV thumbnail images. + + +class XVThumbImageFile(ImageFile.ImageFile): + format = "XVThumb" + format_description = "XV thumbnail image" + + def _open(self): + # check magic + if not _accept(self.fp.read(6)): + msg = "not an XV thumbnail file" + raise SyntaxError(msg) + + # Skip to beginning of next line + self.fp.readline() + + # skip info comments + while True: + s = self.fp.readline() + if not s: + msg = "Unexpected EOF reading XV thumbnail file" + raise SyntaxError(msg) + if s[0] != 35: # ie. when not a comment: '#' + break + + # parse header line (already read) + s = s.strip().split() + + self._mode = "P" + self._size = int(s[0]), int(s[1]) + + self.palette = ImagePalette.raw("RGB", PALETTE) + + self.tile = [("raw", (0, 0) + self.size, self.fp.tell(), (self.mode, 0, 1))] + + +# -------------------------------------------------------------------- + +Image.register_open(XVThumbImageFile.format, XVThumbImageFile, _accept) diff --git a/shared/package-files/43/432a0aa04ffc21d09baed8921e9f53b1348dc931d8d053b9c2113b8ce4ddf541/jupyter.py b/shared/package-files/43/432a0aa04ffc21d09baed8921e9f53b1348dc931d8d053b9c2113b8ce4ddf541/jupyter.py new file mode 100644 index 0000000000000000000000000000000000000000..22f4d716ac9764ee18005b9b852946d614152375 --- /dev/null +++ b/shared/package-files/43/432a0aa04ffc21d09baed8921e9f53b1348dc931d8d053b9c2113b8ce4ddf541/jupyter.py @@ -0,0 +1,101 @@ +from typing import TYPE_CHECKING, Any, Dict, Iterable, List, Sequence + +if TYPE_CHECKING: + from pip._vendor.rich.console import ConsoleRenderable + +from . import get_console +from .segment import Segment +from .terminal_theme import DEFAULT_TERMINAL_THEME + +if TYPE_CHECKING: + from pip._vendor.rich.console import ConsoleRenderable + +JUPYTER_HTML_FORMAT = """\ +
{code}
+""" + + +class JupyterRenderable: + """A shim to write html to Jupyter notebook.""" + + def __init__(self, html: str, text: str) -> None: + self.html = html + self.text = text + + def _repr_mimebundle_( + self, include: Sequence[str], exclude: Sequence[str], **kwargs: Any + ) -> Dict[str, str]: + data = {"text/plain": self.text, "text/html": self.html} + if include: + data = {k: v for (k, v) in data.items() if k in include} + if exclude: + data = {k: v for (k, v) in data.items() if k not in exclude} + return data + + +class JupyterMixin: + """Add to an Rich renderable to make it render in Jupyter notebook.""" + + __slots__ = () + + def _repr_mimebundle_( + self: "ConsoleRenderable", + include: Sequence[str], + exclude: Sequence[str], + **kwargs: Any, + ) -> Dict[str, str]: + console = get_console() + segments = list(console.render(self, console.options)) + html = _render_segments(segments) + text = console._render_buffer(segments) + data = {"text/plain": text, "text/html": html} + if include: + data = {k: v for (k, v) in data.items() if k in include} + if exclude: + data = {k: v for (k, v) in data.items() if k not in exclude} + return data + + +def _render_segments(segments: Iterable[Segment]) -> str: + def escape(text: str) -> str: + """Escape html.""" + return text.replace("&", "&").replace("<", "<").replace(">", ">") + + fragments: List[str] = [] + append_fragment = fragments.append + theme = DEFAULT_TERMINAL_THEME + for text, style, control in Segment.simplify(segments): + if control: + continue + text = escape(text) + if style: + rule = style.get_html_style(theme) + text = f'{text}' if rule else text + if style.link: + text = f'{text}' + append_fragment(text) + + code = "".join(fragments) + html = JUPYTER_HTML_FORMAT.format(code=code) + + return html + + +def display(segments: Iterable[Segment], text: str) -> None: + """Render segments to Jupyter.""" + html = _render_segments(segments) + jupyter_renderable = JupyterRenderable(html, text) + try: + from IPython.display import display as ipython_display + + ipython_display(jupyter_renderable) + except ModuleNotFoundError: + # Handle the case where the Console has force_jupyter=True, + # but IPython is not installed. + pass + + +def print(*args: Any, **kwargs: Any) -> None: + """Proxy for Console print.""" + console = get_console() + return console.print(*args, **kwargs) diff --git a/shared/package-files/43/432a6581ec57b7774039ae13eac07cb4850a9c3506368613b96b7a09976b6d9e/_softmax_backward_data.h b/shared/package-files/43/432a6581ec57b7774039ae13eac07cb4850a9c3506368613b96b7a09976b6d9e/_softmax_backward_data.h new file mode 100644 index 0000000000000000000000000000000000000000..2d749a1878b16c88e5251f633f122f65c4ff84ac --- /dev/null +++ b/shared/package-files/43/432a6581ec57b7774039ae13eac07cb4850a9c3506368613b96b7a09976b6d9e/_softmax_backward_data.h @@ -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::_softmax_backward_data(Tensor grad_output, Tensor output, int dim, ScalarType input_dtype) -> Tensor +inline at::Tensor _softmax_backward_data(const at::Tensor & grad_output, const at::Tensor & output, int64_t dim, at::ScalarType input_dtype) { + return at::_ops::_softmax_backward_data::call(grad_output, output, dim, input_dtype); +} + +// aten::_softmax_backward_data.out(Tensor grad_output, Tensor output, int dim, ScalarType input_dtype, *, Tensor(a!) grad_input) -> Tensor(a!) +inline at::Tensor & _softmax_backward_data_out(at::Tensor & grad_input, const at::Tensor & grad_output, const at::Tensor & output, int64_t dim, at::ScalarType input_dtype) { + return at::_ops::_softmax_backward_data_out::call(grad_output, output, dim, input_dtype, grad_input); +} +// aten::_softmax_backward_data.out(Tensor grad_output, Tensor output, int dim, ScalarType input_dtype, *, Tensor(a!) grad_input) -> Tensor(a!) +inline at::Tensor & _softmax_backward_data_outf(const at::Tensor & grad_output, const at::Tensor & output, int64_t dim, at::ScalarType input_dtype, at::Tensor & grad_input) { + return at::_ops::_softmax_backward_data_out::call(grad_output, output, dim, input_dtype, grad_input); +} + +} diff --git a/shared/package-files/43/432c3d4b02dc1e1bf3fddce2fab00ab175580321052cdce8321bc242f4ba7a8e/constructor.py b/shared/package-files/43/432c3d4b02dc1e1bf3fddce2fab00ab175580321052cdce8321bc242f4ba7a8e/constructor.py new file mode 100644 index 0000000000000000000000000000000000000000..6aa6371779b0efbad18e63d0f906403e9581df07 --- /dev/null +++ b/shared/package-files/43/432c3d4b02dc1e1bf3fddce2fab00ab175580321052cdce8321bc242f4ba7a8e/constructor.py @@ -0,0 +1,1845 @@ +# coding: utf-8 + +import datetime +import base64 +import binascii +import sys +import types +import warnings +from collections.abc import Hashable, MutableSequence, MutableMapping + +# fmt: off +from ruamel.yaml.error import (MarkedYAMLError, MarkedYAMLFutureWarning, + MantissaNoDotYAML1_1Warning) +from ruamel.yaml.nodes import * # NOQA +from ruamel.yaml.nodes import (SequenceNode, MappingNode, ScalarNode) +from ruamel.yaml.compat import (_F, builtins_module, # NOQA + nprint, nprintf, version_tnf) +from ruamel.yaml.compat import ordereddict + +from ruamel.yaml.comments import * # NOQA +from ruamel.yaml.comments import (CommentedMap, CommentedOrderedMap, CommentedSet, + CommentedKeySeq, CommentedSeq, TaggedScalar, + CommentedKeyMap, + C_KEY_PRE, C_KEY_EOL, C_KEY_POST, + C_VALUE_PRE, C_VALUE_EOL, C_VALUE_POST, + ) +from ruamel.yaml.scalarstring import (SingleQuotedScalarString, DoubleQuotedScalarString, + LiteralScalarString, FoldedScalarString, + PlainScalarString, ScalarString,) +from ruamel.yaml.scalarint import ScalarInt, BinaryInt, OctalInt, HexInt, HexCapsInt +from ruamel.yaml.scalarfloat import ScalarFloat +from ruamel.yaml.scalarbool import ScalarBoolean +from ruamel.yaml.timestamp import TimeStamp +from ruamel.yaml.util import timestamp_regexp, create_timestamp + +if False: # MYPY + from typing import Any, Dict, List, Set, Generator, Union, Optional # NOQA + + +__all__ = ['BaseConstructor', 'SafeConstructor', 'Constructor', + 'ConstructorError', 'RoundTripConstructor'] +# fmt: on + + +class ConstructorError(MarkedYAMLError): + pass + + +class DuplicateKeyFutureWarning(MarkedYAMLFutureWarning): + pass + + +class DuplicateKeyError(MarkedYAMLError): + pass + + +class BaseConstructor: + + yaml_constructors = {} # type: Dict[Any, Any] + yaml_multi_constructors = {} # type: Dict[Any, Any] + + def __init__(self, preserve_quotes=None, loader=None): + # type: (Optional[bool], Any) -> None + self.loader = loader + if self.loader is not None and getattr(self.loader, '_constructor', None) is None: + self.loader._constructor = self + self.loader = loader + self.yaml_base_dict_type = dict + self.yaml_base_list_type = list + self.constructed_objects = {} # type: Dict[Any, Any] + self.recursive_objects = {} # type: Dict[Any, Any] + self.state_generators = [] # type: List[Any] + self.deep_construct = False + self._preserve_quotes = preserve_quotes + self.allow_duplicate_keys = version_tnf((0, 15, 1), (0, 16)) + + @property + def composer(self): + # type: () -> Any + if hasattr(self.loader, 'typ'): + return self.loader.composer + try: + return self.loader._composer + except AttributeError: + sys.stdout.write('slt {}\n'.format(type(self))) + sys.stdout.write('slc {}\n'.format(self.loader._composer)) + sys.stdout.write('{}\n'.format(dir(self))) + raise + + @property + def resolver(self): + # type: () -> Any + if hasattr(self.loader, 'typ'): + return self.loader.resolver + return self.loader._resolver + + @property + def scanner(self): + # type: () -> Any + # needed to get to the expanded comments + if hasattr(self.loader, 'typ'): + return self.loader.scanner + return self.loader._scanner + + def check_data(self): + # type: () -> Any + # If there are more documents available? + return self.composer.check_node() + + def get_data(self): + # type: () -> Any + # Construct and return the next document. + if self.composer.check_node(): + return self.construct_document(self.composer.get_node()) + + def get_single_data(self): + # type: () -> Any + # Ensure that the stream contains a single document and construct it. + node = self.composer.get_single_node() + if node is not None: + return self.construct_document(node) + return None + + def construct_document(self, node): + # type: (Any) -> Any + data = self.construct_object(node) + while bool(self.state_generators): + state_generators = self.state_generators + self.state_generators = [] + for generator in state_generators: + for _dummy in generator: + pass + self.constructed_objects = {} + self.recursive_objects = {} + self.deep_construct = False + return data + + def construct_object(self, node, deep=False): + # type: (Any, bool) -> Any + """deep is True when creating an object/mapping recursively, + in that case want the underlying elements available during construction + """ + if node in self.constructed_objects: + return self.constructed_objects[node] + if deep: + old_deep = self.deep_construct + self.deep_construct = True + if node in self.recursive_objects: + return self.recursive_objects[node] + # raise ConstructorError( + # None, None, 'found unconstructable recursive node', node.start_mark + # ) + self.recursive_objects[node] = None + data = self.construct_non_recursive_object(node) + + self.constructed_objects[node] = data + del self.recursive_objects[node] + if deep: + self.deep_construct = old_deep + return data + + def construct_non_recursive_object(self, node, tag=None): + # type: (Any, Optional[str]) -> Any + constructor = None # type: Any + tag_suffix = None + if tag is None: + tag = node.tag + if tag in self.yaml_constructors: + constructor = self.yaml_constructors[tag] + else: + for tag_prefix in self.yaml_multi_constructors: + if tag.startswith(tag_prefix): + tag_suffix = tag[len(tag_prefix) :] + constructor = self.yaml_multi_constructors[tag_prefix] + break + else: + if None in self.yaml_multi_constructors: + tag_suffix = tag + constructor = self.yaml_multi_constructors[None] + elif None in self.yaml_constructors: + constructor = self.yaml_constructors[None] + elif isinstance(node, ScalarNode): + constructor = self.__class__.construct_scalar + elif isinstance(node, SequenceNode): + constructor = self.__class__.construct_sequence + elif isinstance(node, MappingNode): + constructor = self.__class__.construct_mapping + if tag_suffix is None: + data = constructor(self, node) + else: + data = constructor(self, tag_suffix, node) + if isinstance(data, types.GeneratorType): + generator = data + data = next(generator) + if self.deep_construct: + for _dummy in generator: + pass + else: + self.state_generators.append(generator) + return data + + def construct_scalar(self, node): + # type: (Any) -> Any + if not isinstance(node, ScalarNode): + raise ConstructorError( + None, + None, + _F('expected a scalar node, but found {node_id!s}', node_id=node.id), + node.start_mark, + ) + return node.value + + def construct_sequence(self, node, deep=False): + # type: (Any, bool) -> Any + """deep is True when creating an object/mapping recursively, + in that case want the underlying elements available during construction + """ + if not isinstance(node, SequenceNode): + raise ConstructorError( + None, + None, + _F('expected a sequence node, but found {node_id!s}', node_id=node.id), + node.start_mark, + ) + return [self.construct_object(child, deep=deep) for child in node.value] + + def construct_mapping(self, node, deep=False): + # type: (Any, bool) -> Any + """deep is True when creating an object/mapping recursively, + in that case want the underlying elements available during construction + """ + if not isinstance(node, MappingNode): + raise ConstructorError( + None, + None, + _F('expected a mapping node, but found {node_id!s}', node_id=node.id), + node.start_mark, + ) + total_mapping = self.yaml_base_dict_type() + if getattr(node, 'merge', None) is not None: + todo = [(node.merge, False), (node.value, False)] + else: + todo = [(node.value, True)] + for values, check in todo: + mapping = self.yaml_base_dict_type() # type: Dict[Any, Any] + for key_node, value_node in values: + # keys can be list -> deep + key = self.construct_object(key_node, deep=True) + # lists are not hashable, but tuples are + if not isinstance(key, Hashable): + if isinstance(key, list): + key = tuple(key) + if not isinstance(key, Hashable): + raise ConstructorError( + 'while constructing a mapping', + node.start_mark, + 'found unhashable key', + key_node.start_mark, + ) + + value = self.construct_object(value_node, deep=deep) + if check: + if self.check_mapping_key(node, key_node, mapping, key, value): + mapping[key] = value + else: + mapping[key] = value + total_mapping.update(mapping) + return total_mapping + + def check_mapping_key(self, node, key_node, mapping, key, value): + # type: (Any, Any, Any, Any, Any) -> bool + """return True if key is unique""" + if key in mapping: + if not self.allow_duplicate_keys: + mk = mapping.get(key) + args = [ + 'while constructing a mapping', + node.start_mark, + 'found duplicate key "{}" with value "{}" ' + '(original value: "{}")'.format(key, value, mk), + key_node.start_mark, + """ + To suppress this check see: + http://yaml.readthedocs.io/en/latest/api.html#duplicate-keys + """, + """\ + Duplicate keys will become an error in future releases, and are errors + by default when using the new API. + """, + ] + if self.allow_duplicate_keys is None: + warnings.warn(DuplicateKeyFutureWarning(*args)) + else: + raise DuplicateKeyError(*args) + return False + return True + + def check_set_key(self, node, key_node, setting, key): + # type: (Any, Any, Any, Any, Any) -> None + if key in setting: + if not self.allow_duplicate_keys: + args = [ + 'while constructing a set', + node.start_mark, + 'found duplicate key "{}"'.format(key), + key_node.start_mark, + """ + To suppress this check see: + http://yaml.readthedocs.io/en/latest/api.html#duplicate-keys + """, + """\ + Duplicate keys will become an error in future releases, and are errors + by default when using the new API. + """, + ] + if self.allow_duplicate_keys is None: + warnings.warn(DuplicateKeyFutureWarning(*args)) + else: + raise DuplicateKeyError(*args) + + def construct_pairs(self, node, deep=False): + # type: (Any, bool) -> Any + if not isinstance(node, MappingNode): + raise ConstructorError( + None, + None, + _F('expected a mapping node, but found {node_id!s}', node_id=node.id), + node.start_mark, + ) + pairs = [] + for key_node, value_node in node.value: + key = self.construct_object(key_node, deep=deep) + value = self.construct_object(value_node, deep=deep) + pairs.append((key, value)) + return pairs + + @classmethod + def add_constructor(cls, tag, constructor): + # type: (Any, Any) -> None + if 'yaml_constructors' not in cls.__dict__: + cls.yaml_constructors = cls.yaml_constructors.copy() + cls.yaml_constructors[tag] = constructor + + @classmethod + def add_multi_constructor(cls, tag_prefix, multi_constructor): + # type: (Any, Any) -> None + if 'yaml_multi_constructors' not in cls.__dict__: + cls.yaml_multi_constructors = cls.yaml_multi_constructors.copy() + cls.yaml_multi_constructors[tag_prefix] = multi_constructor + + +class SafeConstructor(BaseConstructor): + def construct_scalar(self, node): + # type: (Any) -> Any + if isinstance(node, MappingNode): + for key_node, value_node in node.value: + if key_node.tag == 'tag:yaml.org,2002:value': + return self.construct_scalar(value_node) + return BaseConstructor.construct_scalar(self, node) + + def flatten_mapping(self, node): + # type: (Any) -> Any + """ + This implements the merge key feature http://yaml.org/type/merge.html + by inserting keys from the merge dict/list of dicts if not yet + available in this node + """ + merge = [] # type: List[Any] + index = 0 + while index < len(node.value): + key_node, value_node = node.value[index] + if key_node.tag == 'tag:yaml.org,2002:merge': + if merge: # double << key + if self.allow_duplicate_keys: + del node.value[index] + index += 1 + continue + args = [ + 'while constructing a mapping', + node.start_mark, + 'found duplicate key "{}"'.format(key_node.value), + key_node.start_mark, + """ + To suppress this check see: + http://yaml.readthedocs.io/en/latest/api.html#duplicate-keys + """, + """\ + Duplicate keys will become an error in future releases, and are errors + by default when using the new API. + """, + ] + if self.allow_duplicate_keys is None: + warnings.warn(DuplicateKeyFutureWarning(*args)) + else: + raise DuplicateKeyError(*args) + del node.value[index] + if isinstance(value_node, MappingNode): + self.flatten_mapping(value_node) + merge.extend(value_node.value) + elif isinstance(value_node, SequenceNode): + submerge = [] + for subnode in value_node.value: + if not isinstance(subnode, MappingNode): + raise ConstructorError( + 'while constructing a mapping', + node.start_mark, + _F( + 'expected a mapping for merging, but found {subnode_id!s}', + subnode_id=subnode.id, + ), + subnode.start_mark, + ) + self.flatten_mapping(subnode) + submerge.append(subnode.value) + submerge.reverse() + for value in submerge: + merge.extend(value) + else: + raise ConstructorError( + 'while constructing a mapping', + node.start_mark, + _F( + 'expected a mapping or list of mappings for merging, ' + 'but found {value_node_id!s}', + value_node_id=value_node.id, + ), + value_node.start_mark, + ) + elif key_node.tag == 'tag:yaml.org,2002:value': + key_node.tag = 'tag:yaml.org,2002:str' + index += 1 + else: + index += 1 + if bool(merge): + node.merge = merge # separate merge keys to be able to update without duplicate + node.value = merge + node.value + + def construct_mapping(self, node, deep=False): + # type: (Any, bool) -> Any + """deep is True when creating an object/mapping recursively, + in that case want the underlying elements available during construction + """ + if isinstance(node, MappingNode): + self.flatten_mapping(node) + return BaseConstructor.construct_mapping(self, node, deep=deep) + + def construct_yaml_null(self, node): + # type: (Any) -> Any + self.construct_scalar(node) + return None + + # YAML 1.2 spec doesn't mention yes/no etc any more, 1.1 does + bool_values = { + 'yes': True, + 'no': False, + 'y': True, + 'n': False, + 'true': True, + 'false': False, + 'on': True, + 'off': False, + } + + def construct_yaml_bool(self, node): + # type: (Any) -> bool + value = self.construct_scalar(node) + return self.bool_values[value.lower()] + + def construct_yaml_int(self, node): + # type: (Any) -> int + value_s = self.construct_scalar(node) + value_s = value_s.replace('_', "") + sign = +1 + if value_s[0] == '-': + sign = -1 + if value_s[0] in '+-': + value_s = value_s[1:] + if value_s == '0': + return 0 + elif value_s.startswith('0b'): + return sign * int(value_s[2:], 2) + elif value_s.startswith('0x'): + return sign * int(value_s[2:], 16) + elif value_s.startswith('0o'): + return sign * int(value_s[2:], 8) + elif self.resolver.processing_version == (1, 1) and value_s[0] == '0': + return sign * int(value_s, 8) + elif self.resolver.processing_version == (1, 1) and ':' in value_s: + digits = [int(part) for part in value_s.split(':')] + digits.reverse() + base = 1 + value = 0 + for digit in digits: + value += digit * base + base *= 60 + return sign * value + else: + return sign * int(value_s) + + inf_value = 1e300 + while inf_value != inf_value * inf_value: + inf_value *= inf_value + nan_value = -inf_value / inf_value # Trying to make a quiet NaN (like C99). + + def construct_yaml_float(self, node): + # type: (Any) -> float + value_so = self.construct_scalar(node) + value_s = value_so.replace('_', "").lower() + sign = +1 + if value_s[0] == '-': + sign = -1 + if value_s[0] in '+-': + value_s = value_s[1:] + if value_s == '.inf': + return sign * self.inf_value + elif value_s == '.nan': + return self.nan_value + elif self.resolver.processing_version != (1, 2) and ':' in value_s: + digits = [float(part) for part in value_s.split(':')] + digits.reverse() + base = 1 + value = 0.0 + for digit in digits: + value += digit * base + base *= 60 + return sign * value + else: + if self.resolver.processing_version != (1, 2) and 'e' in value_s: + # value_s is lower case independent of input + mantissa, exponent = value_s.split('e') + if '.' not in mantissa: + warnings.warn(MantissaNoDotYAML1_1Warning(node, value_so)) + return sign * float(value_s) + + def construct_yaml_binary(self, node): + # type: (Any) -> Any + try: + value = self.construct_scalar(node).encode('ascii') + except UnicodeEncodeError as exc: + raise ConstructorError( + None, + None, + _F('failed to convert base64 data into ascii: {exc!s}', exc=exc), + node.start_mark, + ) + try: + return base64.decodebytes(value) + except binascii.Error as exc: + raise ConstructorError( + None, + None, + _F('failed to decode base64 data: {exc!s}', exc=exc), + node.start_mark, + ) + + timestamp_regexp = timestamp_regexp # moved to util 0.17.17 + + def construct_yaml_timestamp(self, node, values=None): + # type: (Any, Any) -> Any + if values is None: + try: + match = self.timestamp_regexp.match(node.value) + except TypeError: + match = None + if match is None: + raise ConstructorError( + None, + None, + 'failed to construct timestamp from "{}"'.format(node.value), + node.start_mark, + ) + values = match.groupdict() + return create_timestamp(**values) + + def construct_yaml_omap(self, node): + # type: (Any) -> Any + # Note: we do now check for duplicate keys + omap = ordereddict() + yield omap + if not isinstance(node, SequenceNode): + raise ConstructorError( + 'while constructing an ordered map', + node.start_mark, + _F('expected a sequence, but found {node_id!s}', node_id=node.id), + node.start_mark, + ) + for subnode in node.value: + if not isinstance(subnode, MappingNode): + raise ConstructorError( + 'while constructing an ordered map', + node.start_mark, + _F( + 'expected a mapping of length 1, but found {subnode_id!s}', + subnode_id=subnode.id, + ), + subnode.start_mark, + ) + if len(subnode.value) != 1: + raise ConstructorError( + 'while constructing an ordered map', + node.start_mark, + _F( + 'expected a single mapping item, but found {len_subnode_val:d} items', + len_subnode_val=len(subnode.value), + ), + subnode.start_mark, + ) + key_node, value_node = subnode.value[0] + key = self.construct_object(key_node) + assert key not in omap + value = self.construct_object(value_node) + omap[key] = value + + def construct_yaml_pairs(self, node): + # type: (Any) -> Any + # Note: the same code as `construct_yaml_omap`. + pairs = [] # type: List[Any] + yield pairs + if not isinstance(node, SequenceNode): + raise ConstructorError( + 'while constructing pairs', + node.start_mark, + _F('expected a sequence, but found {node_id!s}', node_id=node.id), + node.start_mark, + ) + for subnode in node.value: + if not isinstance(subnode, MappingNode): + raise ConstructorError( + 'while constructing pairs', + node.start_mark, + _F( + 'expected a mapping of length 1, but found {subnode_id!s}', + subnode_id=subnode.id, + ), + subnode.start_mark, + ) + if len(subnode.value) != 1: + raise ConstructorError( + 'while constructing pairs', + node.start_mark, + _F( + 'expected a single mapping item, but found {len_subnode_val:d} items', + len_subnode_val=len(subnode.value), + ), + subnode.start_mark, + ) + key_node, value_node = subnode.value[0] + key = self.construct_object(key_node) + value = self.construct_object(value_node) + pairs.append((key, value)) + + def construct_yaml_set(self, node): + # type: (Any) -> Any + data = set() # type: Set[Any] + yield data + value = self.construct_mapping(node) + data.update(value) + + def construct_yaml_str(self, node): + # type: (Any) -> Any + value = self.construct_scalar(node) + return value + + def construct_yaml_seq(self, node): + # type: (Any) -> Any + data = self.yaml_base_list_type() # type: List[Any] + yield data + data.extend(self.construct_sequence(node)) + + def construct_yaml_map(self, node): + # type: (Any) -> Any + data = self.yaml_base_dict_type() # type: Dict[Any, Any] + yield data + value = self.construct_mapping(node) + data.update(value) + + def construct_yaml_object(self, node, cls): + # type: (Any, Any) -> Any + data = cls.__new__(cls) + yield data + if hasattr(data, '__setstate__'): + state = self.construct_mapping(node, deep=True) + data.__setstate__(state) + else: + state = self.construct_mapping(node) + data.__dict__.update(state) + + def construct_undefined(self, node): + # type: (Any) -> None + raise ConstructorError( + None, + None, + _F( + 'could not determine a constructor for the tag {node_tag!r}', node_tag=node.tag + ), + node.start_mark, + ) + + +SafeConstructor.add_constructor('tag:yaml.org,2002:null', SafeConstructor.construct_yaml_null) + +SafeConstructor.add_constructor('tag:yaml.org,2002:bool', SafeConstructor.construct_yaml_bool) + +SafeConstructor.add_constructor('tag:yaml.org,2002:int', SafeConstructor.construct_yaml_int) + +SafeConstructor.add_constructor( + 'tag:yaml.org,2002:float', SafeConstructor.construct_yaml_float +) + +SafeConstructor.add_constructor( + 'tag:yaml.org,2002:binary', SafeConstructor.construct_yaml_binary +) + +SafeConstructor.add_constructor( + 'tag:yaml.org,2002:timestamp', SafeConstructor.construct_yaml_timestamp +) + +SafeConstructor.add_constructor('tag:yaml.org,2002:omap', SafeConstructor.construct_yaml_omap) + +SafeConstructor.add_constructor( + 'tag:yaml.org,2002:pairs', SafeConstructor.construct_yaml_pairs +) + +SafeConstructor.add_constructor('tag:yaml.org,2002:set', SafeConstructor.construct_yaml_set) + +SafeConstructor.add_constructor('tag:yaml.org,2002:str', SafeConstructor.construct_yaml_str) + +SafeConstructor.add_constructor('tag:yaml.org,2002:seq', SafeConstructor.construct_yaml_seq) + +SafeConstructor.add_constructor('tag:yaml.org,2002:map', SafeConstructor.construct_yaml_map) + +SafeConstructor.add_constructor(None, SafeConstructor.construct_undefined) + + +class Constructor(SafeConstructor): + def construct_python_str(self, node): + # type: (Any) -> Any + return self.construct_scalar(node) + + def construct_python_unicode(self, node): + # type: (Any) -> Any + return self.construct_scalar(node) + + def construct_python_bytes(self, node): + # type: (Any) -> Any + try: + value = self.construct_scalar(node).encode('ascii') + except UnicodeEncodeError as exc: + raise ConstructorError( + None, + None, + _F('failed to convert base64 data into ascii: {exc!s}', exc=exc), + node.start_mark, + ) + try: + return base64.decodebytes(value) + except binascii.Error as exc: + raise ConstructorError( + None, + None, + _F('failed to decode base64 data: {exc!s}', exc=exc), + node.start_mark, + ) + + def construct_python_long(self, node): + # type: (Any) -> int + val = self.construct_yaml_int(node) + return val + + def construct_python_complex(self, node): + # type: (Any) -> Any + return complex(self.construct_scalar(node)) + + def construct_python_tuple(self, node): + # type: (Any) -> Any + return tuple(self.construct_sequence(node)) + + def find_python_module(self, name, mark): + # type: (Any, Any) -> Any + if not name: + raise ConstructorError( + 'while constructing a Python module', + mark, + 'expected non-empty name appended to the tag', + mark, + ) + try: + __import__(name) + except ImportError as exc: + raise ConstructorError( + 'while constructing a Python module', + mark, + _F('cannot find module {name!r} ({exc!s})', name=name, exc=exc), + mark, + ) + return sys.modules[name] + + def find_python_name(self, name, mark): + # type: (Any, Any) -> Any + if not name: + raise ConstructorError( + 'while constructing a Python object', + mark, + 'expected non-empty name appended to the tag', + mark, + ) + if '.' in name: + lname = name.split('.') + lmodule_name = lname + lobject_name = [] # type: List[Any] + while len(lmodule_name) > 1: + lobject_name.insert(0, lmodule_name.pop()) + module_name = '.'.join(lmodule_name) + try: + __import__(module_name) + # object_name = '.'.join(object_name) + break + except ImportError: + continue + else: + module_name = builtins_module + lobject_name = [name] + try: + __import__(module_name) + except ImportError as exc: + raise ConstructorError( + 'while constructing a Python object', + mark, + _F( + 'cannot find module {module_name!r} ({exc!s})', + module_name=module_name, + exc=exc, + ), + mark, + ) + module = sys.modules[module_name] + object_name = '.'.join(lobject_name) + obj = module + while lobject_name: + if not hasattr(obj, lobject_name[0]): + + raise ConstructorError( + 'while constructing a Python object', + mark, + _F( + 'cannot find {object_name!r} in the module {module_name!r}', + object_name=object_name, + module_name=module.__name__, + ), + mark, + ) + obj = getattr(obj, lobject_name.pop(0)) + return obj + + def construct_python_name(self, suffix, node): + # type: (Any, Any) -> Any + value = self.construct_scalar(node) + if value: + raise ConstructorError( + 'while constructing a Python name', + node.start_mark, + _F('expected the empty value, but found {value!r}', value=value), + node.start_mark, + ) + return self.find_python_name(suffix, node.start_mark) + + def construct_python_module(self, suffix, node): + # type: (Any, Any) -> Any + value = self.construct_scalar(node) + if value: + raise ConstructorError( + 'while constructing a Python module', + node.start_mark, + _F('expected the empty value, but found {value!r}', value=value), + node.start_mark, + ) + return self.find_python_module(suffix, node.start_mark) + + def make_python_instance(self, suffix, node, args=None, kwds=None, newobj=False): + # type: (Any, Any, Any, Any, bool) -> Any + if not args: + args = [] + if not kwds: + kwds = {} + cls = self.find_python_name(suffix, node.start_mark) + if newobj and isinstance(cls, type): + return cls.__new__(cls, *args, **kwds) + else: + return cls(*args, **kwds) + + def set_python_instance_state(self, instance, state): + # type: (Any, Any) -> None + if hasattr(instance, '__setstate__'): + instance.__setstate__(state) + else: + slotstate = {} # type: Dict[Any, Any] + if isinstance(state, tuple) and len(state) == 2: + state, slotstate = state + if hasattr(instance, '__dict__'): + instance.__dict__.update(state) + elif state: + slotstate.update(state) + for key, value in slotstate.items(): + setattr(instance, key, value) + + def construct_python_object(self, suffix, node): + # type: (Any, Any) -> Any + # Format: + # !!python/object:module.name { ... state ... } + instance = self.make_python_instance(suffix, node, newobj=True) + self.recursive_objects[node] = instance + yield instance + deep = hasattr(instance, '__setstate__') + state = self.construct_mapping(node, deep=deep) + self.set_python_instance_state(instance, state) + + def construct_python_object_apply(self, suffix, node, newobj=False): + # type: (Any, Any, bool) -> Any + # Format: + # !!python/object/apply # (or !!python/object/new) + # args: [ ... arguments ... ] + # kwds: { ... keywords ... } + # state: ... state ... + # listitems: [ ... listitems ... ] + # dictitems: { ... dictitems ... } + # or short format: + # !!python/object/apply [ ... arguments ... ] + # The difference between !!python/object/apply and !!python/object/new + # is how an object is created, check make_python_instance for details. + if isinstance(node, SequenceNode): + args = self.construct_sequence(node, deep=True) + kwds = {} # type: Dict[Any, Any] + state = {} # type: Dict[Any, Any] + listitems = [] # type: List[Any] + dictitems = {} # type: Dict[Any, Any] + else: + value = self.construct_mapping(node, deep=True) + args = value.get('args', []) + kwds = value.get('kwds', {}) + state = value.get('state', {}) + listitems = value.get('listitems', []) + dictitems = value.get('dictitems', {}) + instance = self.make_python_instance(suffix, node, args, kwds, newobj) + if bool(state): + self.set_python_instance_state(instance, state) + if bool(listitems): + instance.extend(listitems) + if bool(dictitems): + for key in dictitems: + instance[key] = dictitems[key] + return instance + + def construct_python_object_new(self, suffix, node): + # type: (Any, Any) -> Any + return self.construct_python_object_apply(suffix, node, newobj=True) + + +Constructor.add_constructor('tag:yaml.org,2002:python/none', Constructor.construct_yaml_null) + +Constructor.add_constructor('tag:yaml.org,2002:python/bool', Constructor.construct_yaml_bool) + +Constructor.add_constructor('tag:yaml.org,2002:python/str', Constructor.construct_python_str) + +Constructor.add_constructor( + 'tag:yaml.org,2002:python/unicode', Constructor.construct_python_unicode +) + +Constructor.add_constructor( + 'tag:yaml.org,2002:python/bytes', Constructor.construct_python_bytes +) + +Constructor.add_constructor('tag:yaml.org,2002:python/int', Constructor.construct_yaml_int) + +Constructor.add_constructor('tag:yaml.org,2002:python/long', Constructor.construct_python_long) + +Constructor.add_constructor('tag:yaml.org,2002:python/float', Constructor.construct_yaml_float) + +Constructor.add_constructor( + 'tag:yaml.org,2002:python/complex', Constructor.construct_python_complex +) + +Constructor.add_constructor('tag:yaml.org,2002:python/list', Constructor.construct_yaml_seq) + +Constructor.add_constructor( + 'tag:yaml.org,2002:python/tuple', Constructor.construct_python_tuple +) + +Constructor.add_constructor('tag:yaml.org,2002:python/dict', Constructor.construct_yaml_map) + +Constructor.add_multi_constructor( + 'tag:yaml.org,2002:python/name:', Constructor.construct_python_name +) + +Constructor.add_multi_constructor( + 'tag:yaml.org,2002:python/module:', Constructor.construct_python_module +) + +Constructor.add_multi_constructor( + 'tag:yaml.org,2002:python/object:', Constructor.construct_python_object +) + +Constructor.add_multi_constructor( + 'tag:yaml.org,2002:python/object/apply:', Constructor.construct_python_object_apply +) + +Constructor.add_multi_constructor( + 'tag:yaml.org,2002:python/object/new:', Constructor.construct_python_object_new +) + + +class RoundTripConstructor(SafeConstructor): + """need to store the comments on the node itself, + as well as on the items + """ + + def comment(self, idx): + # type: (Any) -> Any + assert self.loader.comment_handling is not None + x = self.scanner.comments[idx] + x.set_assigned() + return x + + def comments(self, list_of_comments, idx=None): + # type: (Any, Optional[Any]) -> Any + # hand in the comment and optional pre, eol, post segment + if list_of_comments is None: + return [] + if idx is not None: + if list_of_comments[idx] is None: + return [] + list_of_comments = list_of_comments[idx] + for x in list_of_comments: + yield self.comment(x) + + def construct_scalar(self, node): + # type: (Any) -> Any + if not isinstance(node, ScalarNode): + raise ConstructorError( + None, + None, + _F('expected a scalar node, but found {node_id!s}', node_id=node.id), + node.start_mark, + ) + + if node.style == '|' and isinstance(node.value, str): + lss = LiteralScalarString(node.value, anchor=node.anchor) + if self.loader and self.loader.comment_handling is None: + if node.comment and node.comment[1]: + lss.comment = node.comment[1][0] # type: ignore + else: + # NEWCMNT + if node.comment is not None and node.comment[1]: + # nprintf('>>>>nc1', node.comment) + # EOL comment after | + lss.comment = self.comment(node.comment[1][0]) # type: ignore + return lss + if node.style == '>' and isinstance(node.value, str): + fold_positions = [] # type: List[int] + idx = -1 + while True: + idx = node.value.find('\a', idx + 1) + if idx < 0: + break + fold_positions.append(idx - len(fold_positions)) + fss = FoldedScalarString(node.value.replace('\a', ''), anchor=node.anchor) + if self.loader and self.loader.comment_handling is None: + if node.comment and node.comment[1]: + fss.comment = node.comment[1][0] # type: ignore + else: + # NEWCMNT + if node.comment is not None and node.comment[1]: + # nprintf('>>>>nc2', node.comment) + # EOL comment after > + fss.comment = self.comment(node.comment[1][0]) # type: ignore + if fold_positions: + fss.fold_pos = fold_positions # type: ignore + return fss + elif bool(self._preserve_quotes) and isinstance(node.value, str): + if node.style == "'": + return SingleQuotedScalarString(node.value, anchor=node.anchor) + if node.style == '"': + return DoubleQuotedScalarString(node.value, anchor=node.anchor) + if node.anchor: + return PlainScalarString(node.value, anchor=node.anchor) + return node.value + + def construct_yaml_int(self, node): + # type: (Any) -> Any + width = None # type: Any + value_su = self.construct_scalar(node) + try: + sx = value_su.rstrip('_') + underscore = [len(sx) - sx.rindex('_') - 1, False, False] # type: Any + except ValueError: + underscore = None + except IndexError: + underscore = None + value_s = value_su.replace('_', "") + sign = +1 + if value_s[0] == '-': + sign = -1 + if value_s[0] in '+-': + value_s = value_s[1:] + if value_s == '0': + return 0 + elif value_s.startswith('0b'): + if self.resolver.processing_version > (1, 1) and value_s[2] == '0': + width = len(value_s[2:]) + if underscore is not None: + underscore[1] = value_su[2] == '_' + underscore[2] = len(value_su[2:]) > 1 and value_su[-1] == '_' + return BinaryInt( + sign * int(value_s[2:], 2), + width=width, + underscore=underscore, + anchor=node.anchor, + ) + elif value_s.startswith('0x'): + # default to lower-case if no a-fA-F in string + if self.resolver.processing_version > (1, 1) and value_s[2] == '0': + width = len(value_s[2:]) + hex_fun = HexInt # type: Any + for ch in value_s[2:]: + if ch in 'ABCDEF': # first non-digit is capital + hex_fun = HexCapsInt + break + if ch in 'abcdef': + break + if underscore is not None: + underscore[1] = value_su[2] == '_' + underscore[2] = len(value_su[2:]) > 1 and value_su[-1] == '_' + return hex_fun( + sign * int(value_s[2:], 16), + width=width, + underscore=underscore, + anchor=node.anchor, + ) + elif value_s.startswith('0o'): + if self.resolver.processing_version > (1, 1) and value_s[2] == '0': + width = len(value_s[2:]) + if underscore is not None: + underscore[1] = value_su[2] == '_' + underscore[2] = len(value_su[2:]) > 1 and value_su[-1] == '_' + return OctalInt( + sign * int(value_s[2:], 8), + width=width, + underscore=underscore, + anchor=node.anchor, + ) + elif self.resolver.processing_version != (1, 2) and value_s[0] == '0': + return sign * int(value_s, 8) + elif self.resolver.processing_version != (1, 2) and ':' in value_s: + digits = [int(part) for part in value_s.split(':')] + digits.reverse() + base = 1 + value = 0 + for digit in digits: + value += digit * base + base *= 60 + return sign * value + elif self.resolver.processing_version > (1, 1) and value_s[0] == '0': + # not an octal, an integer with leading zero(s) + if underscore is not None: + # cannot have a leading underscore + underscore[2] = len(value_su) > 1 and value_su[-1] == '_' + return ScalarInt(sign * int(value_s), width=len(value_s), underscore=underscore) + elif underscore: + # cannot have a leading underscore + underscore[2] = len(value_su) > 1 and value_su[-1] == '_' + return ScalarInt( + sign * int(value_s), width=None, underscore=underscore, anchor=node.anchor + ) + elif node.anchor: + return ScalarInt(sign * int(value_s), width=None, anchor=node.anchor) + else: + return sign * int(value_s) + + def construct_yaml_float(self, node): + # type: (Any) -> Any + def leading_zeros(v): + # type: (Any) -> int + lead0 = 0 + idx = 0 + while idx < len(v) and v[idx] in '0.': + if v[idx] == '0': + lead0 += 1 + idx += 1 + return lead0 + + # underscore = None + m_sign = False # type: Any + value_so = self.construct_scalar(node) + value_s = value_so.replace('_', "").lower() + sign = +1 + if value_s[0] == '-': + sign = -1 + if value_s[0] in '+-': + m_sign = value_s[0] + value_s = value_s[1:] + if value_s == '.inf': + return sign * self.inf_value + if value_s == '.nan': + return self.nan_value + if self.resolver.processing_version != (1, 2) and ':' in value_s: + digits = [float(part) for part in value_s.split(':')] + digits.reverse() + base = 1 + value = 0.0 + for digit in digits: + value += digit * base + base *= 60 + return sign * value + if 'e' in value_s: + try: + mantissa, exponent = value_so.split('e') + exp = 'e' + except ValueError: + mantissa, exponent = value_so.split('E') + exp = 'E' + if self.resolver.processing_version != (1, 2): + # value_s is lower case independent of input + if '.' not in mantissa: + warnings.warn(MantissaNoDotYAML1_1Warning(node, value_so)) + lead0 = leading_zeros(mantissa) + width = len(mantissa) + prec = mantissa.find('.') + if m_sign: + width -= 1 + e_width = len(exponent) + e_sign = exponent[0] in '+-' + # nprint('sf', width, prec, m_sign, exp, e_width, e_sign) + return ScalarFloat( + sign * float(value_s), + width=width, + prec=prec, + m_sign=m_sign, + m_lead0=lead0, + exp=exp, + e_width=e_width, + e_sign=e_sign, + anchor=node.anchor, + ) + width = len(value_so) + prec = value_so.index('.') # you can use index, this would not be float without dot + lead0 = leading_zeros(value_so) + return ScalarFloat( + sign * float(value_s), + width=width, + prec=prec, + m_sign=m_sign, + m_lead0=lead0, + anchor=node.anchor, + ) + + def construct_yaml_str(self, node): + # type: (Any) -> Any + value = self.construct_scalar(node) + if isinstance(value, ScalarString): + return value + return value + + def construct_rt_sequence(self, node, seqtyp, deep=False): + # type: (Any, Any, bool) -> Any + if not isinstance(node, SequenceNode): + raise ConstructorError( + None, + None, + _F('expected a sequence node, but found {node_id!s}', node_id=node.id), + node.start_mark, + ) + ret_val = [] + if self.loader and self.loader.comment_handling is None: + if node.comment: + seqtyp._yaml_add_comment(node.comment[:2]) + if len(node.comment) > 2: + # this happens e.g. if you have a sequence element that is a flow-style + # mapping and that has no EOL comment but a following commentline or + # empty line + seqtyp.yaml_end_comment_extend(node.comment[2], clear=True) + else: + # NEWCMNT + if node.comment: + nprintf('nc3', node.comment) + if node.anchor: + from ruamel.yaml.serializer import templated_id + + if not templated_id(node.anchor): + seqtyp.yaml_set_anchor(node.anchor) + for idx, child in enumerate(node.value): + if child.comment: + seqtyp._yaml_add_comment(child.comment, key=idx) + child.comment = None # if moved to sequence remove from child + ret_val.append(self.construct_object(child, deep=deep)) + seqtyp._yaml_set_idx_line_col( + idx, [child.start_mark.line, child.start_mark.column] + ) + return ret_val + + def flatten_mapping(self, node): + # type: (Any) -> Any + """ + This implements the merge key feature http://yaml.org/type/merge.html + by inserting keys from the merge dict/list of dicts if not yet + available in this node + """ + + def constructed(value_node): + # type: (Any) -> Any + # If the contents of a merge are defined within the + # merge marker, then they won't have been constructed + # yet. But if they were already constructed, we need to use + # the existing object. + if value_node in self.constructed_objects: + value = self.constructed_objects[value_node] + else: + value = self.construct_object(value_node, deep=False) + return value + + # merge = [] + merge_map_list = [] # type: List[Any] + index = 0 + while index < len(node.value): + key_node, value_node = node.value[index] + if key_node.tag == 'tag:yaml.org,2002:merge': + if merge_map_list: # double << key + if self.allow_duplicate_keys: + del node.value[index] + index += 1 + continue + args = [ + 'while constructing a mapping', + node.start_mark, + 'found duplicate key "{}"'.format(key_node.value), + key_node.start_mark, + """ + To suppress this check see: + http://yaml.readthedocs.io/en/latest/api.html#duplicate-keys + """, + """\ + Duplicate keys will become an error in future releases, and are errors + by default when using the new API. + """, + ] + if self.allow_duplicate_keys is None: + warnings.warn(DuplicateKeyFutureWarning(*args)) + else: + raise DuplicateKeyError(*args) + del node.value[index] + if isinstance(value_node, MappingNode): + merge_map_list.append((index, constructed(value_node))) + # self.flatten_mapping(value_node) + # merge.extend(value_node.value) + elif isinstance(value_node, SequenceNode): + # submerge = [] + for subnode in value_node.value: + if not isinstance(subnode, MappingNode): + raise ConstructorError( + 'while constructing a mapping', + node.start_mark, + _F( + 'expected a mapping for merging, but found {subnode_id!s}', + subnode_id=subnode.id, + ), + subnode.start_mark, + ) + merge_map_list.append((index, constructed(subnode))) + # self.flatten_mapping(subnode) + # submerge.append(subnode.value) + # submerge.reverse() + # for value in submerge: + # merge.extend(value) + else: + raise ConstructorError( + 'while constructing a mapping', + node.start_mark, + _F( + 'expected a mapping or list of mappings for merging, ' + 'but found {value_node_id!s}', + value_node_id=value_node.id, + ), + value_node.start_mark, + ) + elif key_node.tag == 'tag:yaml.org,2002:value': + key_node.tag = 'tag:yaml.org,2002:str' + index += 1 + else: + index += 1 + return merge_map_list + # if merge: + # node.value = merge + node.value + + def _sentinel(self): + # type: () -> None + pass + + def construct_mapping(self, node, maptyp, deep=False): # type: ignore + # type: (Any, Any, bool) -> Any + if not isinstance(node, MappingNode): + raise ConstructorError( + None, + None, + _F('expected a mapping node, but found {node_id!s}', node_id=node.id), + node.start_mark, + ) + merge_map = self.flatten_mapping(node) + # mapping = {} + if self.loader and self.loader.comment_handling is None: + if node.comment: + maptyp._yaml_add_comment(node.comment[:2]) + if len(node.comment) > 2: + maptyp.yaml_end_comment_extend(node.comment[2], clear=True) + else: + # NEWCMNT + if node.comment: + # nprintf('nc4', node.comment, node.start_mark) + if maptyp.ca.pre is None: + maptyp.ca.pre = [] + for cmnt in self.comments(node.comment, 0): + maptyp.ca.pre.append(cmnt) + if node.anchor: + from ruamel.yaml.serializer import templated_id + + if not templated_id(node.anchor): + maptyp.yaml_set_anchor(node.anchor) + last_key, last_value = None, self._sentinel + for key_node, value_node in node.value: + # keys can be list -> deep + key = self.construct_object(key_node, deep=True) + # lists are not hashable, but tuples are + if not isinstance(key, Hashable): + if isinstance(key, MutableSequence): + key_s = CommentedKeySeq(key) + if key_node.flow_style is True: + key_s.fa.set_flow_style() + elif key_node.flow_style is False: + key_s.fa.set_block_style() + key = key_s + elif isinstance(key, MutableMapping): + key_m = CommentedKeyMap(key) + if key_node.flow_style is True: + key_m.fa.set_flow_style() + elif key_node.flow_style is False: + key_m.fa.set_block_style() + key = key_m + if not isinstance(key, Hashable): + raise ConstructorError( + 'while constructing a mapping', + node.start_mark, + 'found unhashable key', + key_node.start_mark, + ) + value = self.construct_object(value_node, deep=deep) + if self.check_mapping_key(node, key_node, maptyp, key, value): + if self.loader and self.loader.comment_handling is None: + if key_node.comment and len(key_node.comment) > 4 and key_node.comment[4]: + if last_value is None: + key_node.comment[0] = key_node.comment.pop(4) + maptyp._yaml_add_comment(key_node.comment, value=last_key) + else: + key_node.comment[2] = key_node.comment.pop(4) + maptyp._yaml_add_comment(key_node.comment, key=key) + key_node.comment = None + if key_node.comment: + maptyp._yaml_add_comment(key_node.comment, key=key) + if value_node.comment: + maptyp._yaml_add_comment(value_node.comment, value=key) + else: + # NEWCMNT + if key_node.comment: + nprintf('nc5a', key, key_node.comment) + if key_node.comment[0]: + maptyp.ca.set(key, C_KEY_PRE, key_node.comment[0]) + if key_node.comment[1]: + maptyp.ca.set(key, C_KEY_EOL, key_node.comment[1]) + if key_node.comment[2]: + maptyp.ca.set(key, C_KEY_POST, key_node.comment[2]) + if value_node.comment: + nprintf('nc5b', key, value_node.comment) + if value_node.comment[0]: + maptyp.ca.set(key, C_VALUE_PRE, value_node.comment[0]) + if value_node.comment[1]: + maptyp.ca.set(key, C_VALUE_EOL, value_node.comment[1]) + if value_node.comment[2]: + maptyp.ca.set(key, C_VALUE_POST, value_node.comment[2]) + maptyp._yaml_set_kv_line_col( + key, + [ + key_node.start_mark.line, + key_node.start_mark.column, + value_node.start_mark.line, + value_node.start_mark.column, + ], + ) + maptyp[key] = value + last_key, last_value = key, value # could use indexing + # do this last, or <<: before a key will prevent insertion in instances + # of collections.OrderedDict (as they have no __contains__ + if merge_map: + maptyp.add_yaml_merge(merge_map) + + def construct_setting(self, node, typ, deep=False): + # type: (Any, Any, bool) -> Any + if not isinstance(node, MappingNode): + raise ConstructorError( + None, + None, + _F('expected a mapping node, but found {node_id!s}', node_id=node.id), + node.start_mark, + ) + if self.loader and self.loader.comment_handling is None: + if node.comment: + typ._yaml_add_comment(node.comment[:2]) + if len(node.comment) > 2: + typ.yaml_end_comment_extend(node.comment[2], clear=True) + else: + # NEWCMNT + if node.comment: + nprintf('nc6', node.comment) + if node.anchor: + from ruamel.yaml.serializer import templated_id + + if not templated_id(node.anchor): + typ.yaml_set_anchor(node.anchor) + for key_node, value_node in node.value: + # keys can be list -> deep + key = self.construct_object(key_node, deep=True) + # lists are not hashable, but tuples are + if not isinstance(key, Hashable): + if isinstance(key, list): + key = tuple(key) + if not isinstance(key, Hashable): + raise ConstructorError( + 'while constructing a mapping', + node.start_mark, + 'found unhashable key', + key_node.start_mark, + ) + # construct but should be null + value = self.construct_object(value_node, deep=deep) # NOQA + self.check_set_key(node, key_node, typ, key) + if self.loader and self.loader.comment_handling is None: + if key_node.comment: + typ._yaml_add_comment(key_node.comment, key=key) + if value_node.comment: + typ._yaml_add_comment(value_node.comment, value=key) + else: + # NEWCMNT + if key_node.comment: + nprintf('nc7a', key_node.comment) + if value_node.comment: + nprintf('nc7b', value_node.comment) + typ.add(key) + + def construct_yaml_seq(self, node): + # type: (Any) -> Any + data = CommentedSeq() + data._yaml_set_line_col(node.start_mark.line, node.start_mark.column) + # if node.comment: + # data._yaml_add_comment(node.comment) + yield data + data.extend(self.construct_rt_sequence(node, data)) + self.set_collection_style(data, node) + + def construct_yaml_map(self, node): + # type: (Any) -> Any + data = CommentedMap() + data._yaml_set_line_col(node.start_mark.line, node.start_mark.column) + yield data + self.construct_mapping(node, data, deep=True) + self.set_collection_style(data, node) + + def set_collection_style(self, data, node): + # type: (Any, Any) -> None + if len(data) == 0: + return + if node.flow_style is True: + data.fa.set_flow_style() + elif node.flow_style is False: + data.fa.set_block_style() + + def construct_yaml_object(self, node, cls): + # type: (Any, Any) -> Any + data = cls.__new__(cls) + yield data + if hasattr(data, '__setstate__'): + state = SafeConstructor.construct_mapping(self, node, deep=True) + data.__setstate__(state) + else: + state = SafeConstructor.construct_mapping(self, node) + if hasattr(data, '__attrs_attrs__'): # issue 394 + data.__init__(**state) + else: + data.__dict__.update(state) + if node.anchor: + from ruamel.yaml.serializer import templated_id + from ruamel.yaml.anchor import Anchor + + if not templated_id(node.anchor): + if not hasattr(data, Anchor.attrib): + a = Anchor() + setattr(data, Anchor.attrib, a) + else: + a = getattr(data, Anchor.attrib) + a.value = node.anchor + + def construct_yaml_omap(self, node): + # type: (Any) -> Any + # Note: we do now check for duplicate keys + omap = CommentedOrderedMap() + omap._yaml_set_line_col(node.start_mark.line, node.start_mark.column) + if node.flow_style is True: + omap.fa.set_flow_style() + elif node.flow_style is False: + omap.fa.set_block_style() + yield omap + if self.loader and self.loader.comment_handling is None: + if node.comment: + omap._yaml_add_comment(node.comment[:2]) + if len(node.comment) > 2: + omap.yaml_end_comment_extend(node.comment[2], clear=True) + else: + # NEWCMNT + if node.comment: + nprintf('nc8', node.comment) + if not isinstance(node, SequenceNode): + raise ConstructorError( + 'while constructing an ordered map', + node.start_mark, + _F('expected a sequence, but found {node_id!s}', node_id=node.id), + node.start_mark, + ) + for subnode in node.value: + if not isinstance(subnode, MappingNode): + raise ConstructorError( + 'while constructing an ordered map', + node.start_mark, + _F( + 'expected a mapping of length 1, but found {subnode_id!s}', + subnode_id=subnode.id, + ), + subnode.start_mark, + ) + if len(subnode.value) != 1: + raise ConstructorError( + 'while constructing an ordered map', + node.start_mark, + _F( + 'expected a single mapping item, but found {len_subnode_val:d} items', + len_subnode_val=len(subnode.value), + ), + subnode.start_mark, + ) + key_node, value_node = subnode.value[0] + key = self.construct_object(key_node) + assert key not in omap + value = self.construct_object(value_node) + if self.loader and self.loader.comment_handling is None: + if key_node.comment: + omap._yaml_add_comment(key_node.comment, key=key) + if subnode.comment: + omap._yaml_add_comment(subnode.comment, key=key) + if value_node.comment: + omap._yaml_add_comment(value_node.comment, value=key) + else: + # NEWCMNT + if key_node.comment: + nprintf('nc9a', key_node.comment) + if subnode.comment: + nprintf('nc9b', subnode.comment) + if value_node.comment: + nprintf('nc9c', value_node.comment) + omap[key] = value + + def construct_yaml_set(self, node): + # type: (Any) -> Any + data = CommentedSet() + data._yaml_set_line_col(node.start_mark.line, node.start_mark.column) + yield data + self.construct_setting(node, data) + + def construct_undefined(self, node): + # type: (Any) -> Any + try: + if isinstance(node, MappingNode): + data = CommentedMap() + data._yaml_set_line_col(node.start_mark.line, node.start_mark.column) + if node.flow_style is True: + data.fa.set_flow_style() + elif node.flow_style is False: + data.fa.set_block_style() + data.yaml_set_tag(node.tag) + yield data + if node.anchor: + from ruamel.yaml.serializer import templated_id + + if not templated_id(node.anchor): + data.yaml_set_anchor(node.anchor) + self.construct_mapping(node, data) + return + elif isinstance(node, ScalarNode): + data2 = TaggedScalar() + data2.value = self.construct_scalar(node) + data2.style = node.style + data2.yaml_set_tag(node.tag) + yield data2 + if node.anchor: + from ruamel.yaml.serializer import templated_id + + if not templated_id(node.anchor): + data2.yaml_set_anchor(node.anchor, always_dump=True) + return + elif isinstance(node, SequenceNode): + data3 = CommentedSeq() + data3._yaml_set_line_col(node.start_mark.line, node.start_mark.column) + if node.flow_style is True: + data3.fa.set_flow_style() + elif node.flow_style is False: + data3.fa.set_block_style() + data3.yaml_set_tag(node.tag) + yield data3 + if node.anchor: + from ruamel.yaml.serializer import templated_id + + if not templated_id(node.anchor): + data3.yaml_set_anchor(node.anchor) + data3.extend(self.construct_sequence(node)) + return + except: # NOQA + pass + raise ConstructorError( + None, + None, + _F( + 'could not determine a constructor for the tag {node_tag!r}', node_tag=node.tag + ), + node.start_mark, + ) + + def construct_yaml_timestamp(self, node, values=None): + # type: (Any, Any) -> Any + try: + match = self.timestamp_regexp.match(node.value) + except TypeError: + match = None + if match is None: + raise ConstructorError( + None, + None, + 'failed to construct timestamp from "{}"'.format(node.value), + node.start_mark, + ) + values = match.groupdict() + if not values['hour']: + return create_timestamp(**values) + # return SafeConstructor.construct_yaml_timestamp(self, node, values) + for part in ['t', 'tz_sign', 'tz_hour', 'tz_minute']: + if values[part]: + break + else: + return create_timestamp(**values) + # return SafeConstructor.construct_yaml_timestamp(self, node, values) + dd = create_timestamp(**values) # this has delta applied + delta = None + if values['tz_sign']: + tz_hour = int(values['tz_hour']) + minutes = values['tz_minute'] + tz_minute = int(minutes) if minutes else 0 + delta = datetime.timedelta(hours=tz_hour, minutes=tz_minute) + if values['tz_sign'] == '-': + delta = -delta + # should check for None and solve issue 366 should be tzinfo=delta) + data = TimeStamp( + dd.year, dd.month, dd.day, dd.hour, dd.minute, dd.second, dd.microsecond + ) + if delta: + data._yaml['delta'] = delta + tz = values['tz_sign'] + values['tz_hour'] + if values['tz_minute']: + tz += ':' + values['tz_minute'] + data._yaml['tz'] = tz + else: + if values['tz']: # no delta + data._yaml['tz'] = values['tz'] + + if values['t']: + data._yaml['t'] = True + return data + + def construct_yaml_bool(self, node): + # type: (Any) -> Any + b = SafeConstructor.construct_yaml_bool(self, node) + if node.anchor: + return ScalarBoolean(b, anchor=node.anchor) + return b + + +RoundTripConstructor.add_constructor( + 'tag:yaml.org,2002:null', RoundTripConstructor.construct_yaml_null +) + +RoundTripConstructor.add_constructor( + 'tag:yaml.org,2002:bool', RoundTripConstructor.construct_yaml_bool +) + +RoundTripConstructor.add_constructor( + 'tag:yaml.org,2002:int', RoundTripConstructor.construct_yaml_int +) + +RoundTripConstructor.add_constructor( + 'tag:yaml.org,2002:float', RoundTripConstructor.construct_yaml_float +) + +RoundTripConstructor.add_constructor( + 'tag:yaml.org,2002:binary', RoundTripConstructor.construct_yaml_binary +) + +RoundTripConstructor.add_constructor( + 'tag:yaml.org,2002:timestamp', RoundTripConstructor.construct_yaml_timestamp +) + +RoundTripConstructor.add_constructor( + 'tag:yaml.org,2002:omap', RoundTripConstructor.construct_yaml_omap +) + +RoundTripConstructor.add_constructor( + 'tag:yaml.org,2002:pairs', RoundTripConstructor.construct_yaml_pairs +) + +RoundTripConstructor.add_constructor( + 'tag:yaml.org,2002:set', RoundTripConstructor.construct_yaml_set +) + +RoundTripConstructor.add_constructor( + 'tag:yaml.org,2002:str', RoundTripConstructor.construct_yaml_str +) + +RoundTripConstructor.add_constructor( + 'tag:yaml.org,2002:seq', RoundTripConstructor.construct_yaml_seq +) + +RoundTripConstructor.add_constructor( + 'tag:yaml.org,2002:map', RoundTripConstructor.construct_yaml_map +) + +RoundTripConstructor.add_constructor(None, RoundTripConstructor.construct_undefined) diff --git a/shared/package-files/43/432c8f3f76370e8dc77cbb441ce61d2d42901c15d7f52d231dde6e26f042fc28/masscomp b/shared/package-files/43/432c8f3f76370e8dc77cbb441ce61d2d42901c15d7f52d231dde6e26f042fc28/masscomp new file mode 100644 index 0000000000000000000000000000000000000000..97ef38184c76c52c142e55fe0107aa8dea2c8eb4 Binary files /dev/null and b/shared/package-files/43/432c8f3f76370e8dc77cbb441ce61d2d42901c15d7f52d231dde6e26f042fc28/masscomp differ diff --git a/shared/package-files/43/432d1f2df98a3f5d33db80534f27fc35244805a529f58f4297c1d12ad68b5930/test_chained_assign.py b/shared/package-files/43/432d1f2df98a3f5d33db80534f27fc35244805a529f58f4297c1d12ad68b5930/test_chained_assign.py new file mode 100644 index 0000000000000000000000000000000000000000..fd3b8952b4bbb3d8c7d173f1ce81e22da07b0f99 --- /dev/null +++ b/shared/package-files/43/432d1f2df98a3f5d33db80534f27fc35244805a529f58f4297c1d12ad68b5930/test_chained_assign.py @@ -0,0 +1,89 @@ +from numba import jit +import unittest +import numpy as np +import copy +from numba.tests.support import MemoryLeakMixin + + +class TestChainedAssign(MemoryLeakMixin, unittest.TestCase): + def test_chain1(self): + from numba.tests.chained_assign_usecases import chain1 + args = [ + [np.arange(2)], + [np.arange(4, dtype=np.double)], + ] + self._test_template(chain1, args) + + def test_chain2(self): + from numba.tests.chained_assign_usecases import chain2 + args = [ + [3], + [3.0], + ] + self._test_template(chain2, args) + + def test_unpack1(self): + from numba.tests.chained_assign_usecases import unpack1 + args = [ + [1, 3.0], + [1.0, 3], + ] + self._test_template(unpack1, args) + + def test_unpack2(self): + from numba.tests.chained_assign_usecases import unpack2 + args = [ + [np.array([2]), np.array([4.0])], + [np.array([2.0]), np.array([4])], + ] + self._test_template(unpack2, args) + + def test_chain3(self): + from numba.tests.chained_assign_usecases import chain3 + args = [ + [np.array([0]), np.array([1.5])], + [np.array([0.5]), np.array([1])], + ] + self._test_template(chain3, args) + + def test_unpack3(self): + from numba.tests.chained_assign_usecases import unpack3 + args = [ + [np.array([1])], + [np.array([1.0])], + ] + self._test_template(unpack3, args) + + def test_unpack4(self): + from numba.tests.chained_assign_usecases import unpack4 + args = [ + [np.array([1])], + [np.array([1.0])], + ] + self._test_template(unpack4, args) + + def test_unpack5(self): + from numba.tests.chained_assign_usecases import unpack5 + args = [ + [np.array([2])], + [np.array([2.0])], + ] + self._test_template(unpack5, args) + + def test_unpack6(self): + from numba.tests.chained_assign_usecases import unpack6 + args1 = 3.0, 2 + args2 = 3.0, 2.0 + self._test_template(unpack6, [args1, args2]) + + def _test_template(self, pyfunc, argcases): + cfunc = jit(pyfunc) + for args in argcases: + a1 = copy.deepcopy(args) + a2 = copy.deepcopy(args) + np.testing.assert_allclose(pyfunc(*a1), cfunc(*a2)) + + +if __name__ == '__main__': + unittest.main() + diff --git a/shared/package-files/43/432dfbcfbbfa7758cb38777aef36d1bb6d5d80be859a5d6b4ddee3e0997536c3/rnnt_pipeline.py b/shared/package-files/43/432dfbcfbbfa7758cb38777aef36d1bb6d5d80be859a5d6b4ddee3e0997536c3/rnnt_pipeline.py new file mode 100644 index 0000000000000000000000000000000000000000..11b5a479f3785241a00313a85ead1405b2f673cd --- /dev/null +++ b/shared/package-files/43/432dfbcfbbfa7758cb38777aef36d1bb6d5d80be859a5d6b4ddee3e0997536c3/rnnt_pipeline.py @@ -0,0 +1,380 @@ +import json +import math +from abc import ABC, abstractmethod +from dataclasses import dataclass +from functools import partial +from typing import Callable, List, Tuple + +import torch +import torchaudio +from torchaudio._internal import module_utils +from torchaudio.models import emformer_rnnt_base, RNNT, RNNTBeamSearch + + +__all__ = [] + +_decibel = 2 * 20 * math.log10(torch.iinfo(torch.int16).max) +_gain = pow(10, 0.05 * _decibel) + + +def _piecewise_linear_log(x): + x[x > math.e] = torch.log(x[x > math.e]) + x[x <= math.e] = x[x <= math.e] / math.e + return x + + +class _FunctionalModule(torch.nn.Module): + def __init__(self, functional): + super().__init__() + self.functional = functional + + def forward(self, input): + return self.functional(input) + + +class _GlobalStatsNormalization(torch.nn.Module): + def __init__(self, global_stats_path): + super().__init__() + + with open(global_stats_path) as f: + blob = json.loads(f.read()) + + self.register_buffer("mean", torch.tensor(blob["mean"])) + self.register_buffer("invstddev", torch.tensor(blob["invstddev"])) + + def forward(self, input): + return (input - self.mean) * self.invstddev + + +class _FeatureExtractor(ABC): + @abstractmethod + def __call__(self, input: torch.Tensor) -> Tuple[torch.Tensor, torch.Tensor]: + """Generates features and length output from the given input tensor. + + Args: + input (torch.Tensor): input tensor. + + Returns: + (torch.Tensor, torch.Tensor): + torch.Tensor: + Features, with shape `(length, *)`. + torch.Tensor: + Length, with shape `(1,)`. + """ + + +class _TokenProcessor(ABC): + @abstractmethod + def __call__(self, tokens: List[int], **kwargs) -> str: + """Decodes given list of tokens to text sequence. + + Args: + tokens (List[int]): list of tokens to decode. + + Returns: + str: + Decoded text sequence. + """ + + +class _ModuleFeatureExtractor(torch.nn.Module, _FeatureExtractor): + """``torch.nn.Module``-based feature extraction pipeline. + + Args: + pipeline (torch.nn.Module): module that implements feature extraction logic. + """ + + def __init__(self, pipeline: torch.nn.Module) -> None: + super().__init__() + self.pipeline = pipeline + + def forward(self, input: torch.Tensor) -> Tuple[torch.Tensor, torch.Tensor]: + """Generates features and length output from the given input tensor. + + Args: + input (torch.Tensor): input tensor. + + Returns: + (torch.Tensor, torch.Tensor): + torch.Tensor: + Features, with shape `(length, *)`. + torch.Tensor: + Length, with shape `(1,)`. + """ + features = self.pipeline(input) + length = torch.tensor([features.shape[0]]) + return features, length + + +class _SentencePieceTokenProcessor(_TokenProcessor): + """SentencePiece-model-based token processor. + + Args: + sp_model_path (str): path to SentencePiece model. + """ + + def __init__(self, sp_model_path: str) -> None: + if not module_utils.is_module_available("sentencepiece"): + raise RuntimeError("SentencePiece is not available. Please install it.") + + import sentencepiece as spm + + self.sp_model = spm.SentencePieceProcessor(model_file=sp_model_path) + self.post_process_remove_list = { + self.sp_model.unk_id(), + self.sp_model.eos_id(), + self.sp_model.pad_id(), + } + + def __call__(self, tokens: List[int], lstrip: bool = True) -> str: + """Decodes given list of tokens to text sequence. + + Args: + tokens (List[int]): list of tokens to decode. + lstrip (bool, optional): if ``True``, returns text sequence with leading whitespace + removed. (Default: ``True``). + + Returns: + str: + Decoded text sequence. + """ + filtered_hypo_tokens = [ + token_index for token_index in tokens[1:] if token_index not in self.post_process_remove_list + ] + output_string = "".join(self.sp_model.id_to_piece(filtered_hypo_tokens)).replace("\u2581", " ") + + if lstrip: + return output_string.lstrip() + else: + return output_string + + +@dataclass +class RNNTBundle: + """Dataclass that bundles components for performing automatic speech recognition (ASR, speech-to-text) + inference with an RNN-T model. + + More specifically, the class provides methods that produce the featurization pipeline, + decoder wrapping the specified RNN-T model, and output token post-processor that together + constitute a complete end-to-end ASR inference pipeline that produces a text sequence + given a raw waveform. + + It can support non-streaming (full-context) inference as well as streaming inference. + + Users should not directly instantiate objects of this class; rather, users should use the + instances (representing pre-trained models) that exist within the module, + e.g. :data:`torchaudio.pipelines.EMFORMER_RNNT_BASE_LIBRISPEECH`. + + Example + >>> import torchaudio + >>> from torchaudio.pipelines import EMFORMER_RNNT_BASE_LIBRISPEECH + >>> import torch + >>> + >>> # Non-streaming inference. + >>> # Build feature extractor, decoder with RNN-T model, and token processor. + >>> feature_extractor = EMFORMER_RNNT_BASE_LIBRISPEECH.get_feature_extractor() + 100%|███████████████████████████████| 3.81k/3.81k [00:00<00:00, 4.22MB/s] + >>> decoder = EMFORMER_RNNT_BASE_LIBRISPEECH.get_decoder() + Downloading: "https://download.pytorch.org/torchaudio/models/emformer_rnnt_base_librispeech.pt" + 100%|███████████████████████████████| 293M/293M [00:07<00:00, 42.1MB/s] + >>> token_processor = EMFORMER_RNNT_BASE_LIBRISPEECH.get_token_processor() + 100%|███████████████████████████████| 295k/295k [00:00<00:00, 25.4MB/s] + >>> + >>> # Instantiate LibriSpeech dataset; retrieve waveform for first sample. + >>> dataset = torchaudio.datasets.LIBRISPEECH("/home/librispeech", url="test-clean") + >>> waveform = next(iter(dataset))[0].squeeze() + >>> + >>> with torch.no_grad(): + >>> # Produce mel-scale spectrogram features. + >>> features, length = feature_extractor(waveform) + >>> + >>> # Generate top-10 hypotheses. + >>> hypotheses = decoder(features, length, 10) + >>> + >>> # For top hypothesis, convert predicted tokens to text. + >>> text = token_processor(hypotheses[0][0]) + >>> print(text) + he hoped there would be stew for dinner turnips and carrots and bruised potatoes and fat mutton pieces to [...] + >>> + >>> + >>> # Streaming inference. + >>> hop_length = EMFORMER_RNNT_BASE_LIBRISPEECH.hop_length + >>> num_samples_segment = EMFORMER_RNNT_BASE_LIBRISPEECH.segment_length * hop_length + >>> num_samples_segment_right_context = ( + >>> num_samples_segment + EMFORMER_RNNT_BASE_LIBRISPEECH.right_context_length * hop_length + >>> ) + >>> + >>> # Build streaming inference feature extractor. + >>> streaming_feature_extractor = EMFORMER_RNNT_BASE_LIBRISPEECH.get_streaming_feature_extractor() + >>> + >>> # Process same waveform as before, this time sequentially across overlapping segments + >>> # to simulate streaming inference. Note the usage of ``streaming_feature_extractor`` and ``decoder.infer``. + >>> state, hypothesis = None, None + >>> for idx in range(0, len(waveform), num_samples_segment): + >>> segment = waveform[idx: idx + num_samples_segment_right_context] + >>> segment = torch.nn.functional.pad(segment, (0, num_samples_segment_right_context - len(segment))) + >>> with torch.no_grad(): + >>> features, length = streaming_feature_extractor(segment) + >>> hypotheses, state = decoder.infer(features, length, 10, state=state, hypothesis=hypothesis) + >>> hypothesis = hypotheses[0] + >>> transcript = token_processor(hypothesis[0]) + >>> if transcript: + >>> print(transcript, end=" ", flush=True) + he hoped there would be stew for dinner turn ips and car rots and bru 'd oes and fat mut ton pieces to [...] + """ + + class FeatureExtractor(_FeatureExtractor): + """Interface of the feature extraction part of RNN-T pipeline""" + + class TokenProcessor(_TokenProcessor): + """Interface of the token processor part of RNN-T pipeline""" + + _rnnt_path: str + _rnnt_factory_func: Callable[[], RNNT] + _global_stats_path: str + _sp_model_path: str + _right_padding: int + _blank: int + _sample_rate: int + _n_fft: int + _n_mels: int + _hop_length: int + _segment_length: int + _right_context_length: int + + def _get_model(self) -> RNNT: + model = self._rnnt_factory_func() + path = torchaudio.utils.download_asset(self._rnnt_path) + state_dict = torch.load(path) + model.load_state_dict(state_dict) + model.eval() + return model + + @property + def sample_rate(self) -> int: + """Sample rate (in cycles per second) of input waveforms. + + :type: int + """ + return self._sample_rate + + @property + def n_fft(self) -> int: + """Size of FFT window to use. + + :type: int + """ + return self._n_fft + + @property + def n_mels(self) -> int: + """Number of mel spectrogram features to extract from input waveforms. + + :type: int + """ + return self._n_mels + + @property + def hop_length(self) -> int: + """Number of samples between successive frames in input expected by model. + + :type: int + """ + return self._hop_length + + @property + def segment_length(self) -> int: + """Number of frames in segment in input expected by model. + + :type: int + """ + return self._segment_length + + @property + def right_context_length(self) -> int: + """Number of frames in right contextual block in input expected by model. + + :type: int + """ + return self._right_context_length + + def get_decoder(self) -> RNNTBeamSearch: + """Constructs RNN-T decoder. + + Returns: + RNNTBeamSearch + """ + model = self._get_model() + return RNNTBeamSearch(model, self._blank) + + def get_feature_extractor(self) -> FeatureExtractor: + """Constructs feature extractor for non-streaming (full-context) ASR. + + Returns: + FeatureExtractor + """ + local_path = torchaudio.utils.download_asset(self._global_stats_path) + return _ModuleFeatureExtractor( + torch.nn.Sequential( + torchaudio.transforms.MelSpectrogram( + sample_rate=self.sample_rate, n_fft=self.n_fft, n_mels=self.n_mels, hop_length=self.hop_length + ), + _FunctionalModule(lambda x: x.transpose(1, 0)), + _FunctionalModule(lambda x: _piecewise_linear_log(x * _gain)), + _GlobalStatsNormalization(local_path), + _FunctionalModule(lambda x: torch.nn.functional.pad(x, (0, 0, 0, self._right_padding))), + ) + ) + + def get_streaming_feature_extractor(self) -> FeatureExtractor: + """Constructs feature extractor for streaming (simultaneous) ASR. + + Returns: + FeatureExtractor + """ + local_path = torchaudio.utils.download_asset(self._global_stats_path) + return _ModuleFeatureExtractor( + torch.nn.Sequential( + torchaudio.transforms.MelSpectrogram( + sample_rate=self.sample_rate, n_fft=self.n_fft, n_mels=self.n_mels, hop_length=self.hop_length + ), + _FunctionalModule(lambda x: x.transpose(1, 0)), + _FunctionalModule(lambda x: _piecewise_linear_log(x * _gain)), + _GlobalStatsNormalization(local_path), + ) + ) + + def get_token_processor(self) -> TokenProcessor: + """Constructs token processor. + + Returns: + TokenProcessor + """ + local_path = torchaudio.utils.download_asset(self._sp_model_path) + return _SentencePieceTokenProcessor(local_path) + + +EMFORMER_RNNT_BASE_LIBRISPEECH = RNNTBundle( + _rnnt_path="models/emformer_rnnt_base_librispeech.pt", + _rnnt_factory_func=partial(emformer_rnnt_base, num_symbols=4097), + _global_stats_path="pipeline-assets/global_stats_rnnt_librispeech.json", + _sp_model_path="pipeline-assets/spm_bpe_4096_librispeech.model", + _right_padding=4, + _blank=4096, + _sample_rate=16000, + _n_fft=400, + _n_mels=80, + _hop_length=160, + _segment_length=16, + _right_context_length=4, +) +EMFORMER_RNNT_BASE_LIBRISPEECH.__doc__ = """ASR pipeline based on Emformer-RNNT, +pretrained on *LibriSpeech* dataset :cite:`7178964`, +capable of performing both streaming and non-streaming inference. + +The underlying model is constructed by :py:func:`torchaudio.models.emformer_rnnt_base` +and utilizes weights trained on LibriSpeech using training script ``train.py`` +`here `__ with default arguments. + +Please refer to :py:class:`RNNTBundle` for usage instructions. +""" diff --git a/shared/package-files/43/43306f7300abebb050136b978957142a7bdb7645decc24d82477c36b65c37b53/lowest_common_ancestors.py b/shared/package-files/43/43306f7300abebb050136b978957142a7bdb7645decc24d82477c36b65c37b53/lowest_common_ancestors.py new file mode 100644 index 0000000000000000000000000000000000000000..9c40758f8cffb7532dc9260f5ebe30ad9c78f96b --- /dev/null +++ b/shared/package-files/43/43306f7300abebb050136b978957142a7bdb7645decc24d82477c36b65c37b53/lowest_common_ancestors.py @@ -0,0 +1,265 @@ +"""Algorithms for finding the lowest common ancestor of trees and DAGs.""" +from collections import defaultdict +from collections.abc import Mapping, Set +from itertools import combinations_with_replacement + +import networkx as nx +from networkx.utils import UnionFind, arbitrary_element, not_implemented_for + +__all__ = [ + "all_pairs_lowest_common_ancestor", + "tree_all_pairs_lowest_common_ancestor", + "lowest_common_ancestor", +] + + +@not_implemented_for("undirected") +def all_pairs_lowest_common_ancestor(G, pairs=None): + """Return the lowest common ancestor of all pairs or the provided pairs + + Parameters + ---------- + G : NetworkX directed graph + + pairs : iterable of pairs of nodes, optional (default: all pairs) + The pairs of nodes of interest. + If None, will find the LCA of all pairs of nodes. + + Yields + ------ + ((node1, node2), lca) : 2-tuple + Where lca is least common ancestor of node1 and node2. + Note that for the default case, the order of the node pair is not considered, + e.g. you will not get both ``(a, b)`` and ``(b, a)`` + + Raises + ------ + NetworkXPointlessConcept + If `G` is null. + NetworkXError + If `G` is not a DAG. + + Examples + -------- + The default behavior is to yield the lowest common ancestor for all + possible combinations of nodes in `G`, including self-pairings: + + >>> G = nx.DiGraph([(0, 1), (0, 3), (1, 2)]) + >>> dict(nx.all_pairs_lowest_common_ancestor(G)) + {(0, 0): 0, (0, 1): 0, (0, 3): 0, (0, 2): 0, (1, 1): 1, (1, 3): 0, (1, 2): 1, (3, 3): 3, (3, 2): 0, (2, 2): 2} + + The pairs argument can be used to limit the output to only the + specified node pairings: + + >>> dict(nx.all_pairs_lowest_common_ancestor(G, pairs=[(1, 2), (2, 3)])) + {(1, 2): 1, (2, 3): 0} + + Notes + ----- + Only defined on non-null directed acyclic graphs. + + See Also + -------- + lowest_common_ancestor + """ + if not nx.is_directed_acyclic_graph(G): + raise nx.NetworkXError("LCA only defined on directed acyclic graphs.") + if len(G) == 0: + raise nx.NetworkXPointlessConcept("LCA meaningless on null graphs.") + + if pairs is None: + pairs = combinations_with_replacement(G, 2) + else: + # Convert iterator to iterable, if necessary. Trim duplicates. + pairs = dict.fromkeys(pairs) + # Verify that each of the nodes in the provided pairs is in G + nodeset = set(G) + for pair in pairs: + if set(pair) - nodeset: + raise nx.NodeNotFound( + f"Node(s) {set(pair) - nodeset} from pair {pair} not in G." + ) + + # Once input validation is done, construct the generator + def generate_lca_from_pairs(G, pairs): + ancestor_cache = {} + + for v, w in pairs: + if v not in ancestor_cache: + ancestor_cache[v] = nx.ancestors(G, v) + ancestor_cache[v].add(v) + if w not in ancestor_cache: + ancestor_cache[w] = nx.ancestors(G, w) + ancestor_cache[w].add(w) + + common_ancestors = ancestor_cache[v] & ancestor_cache[w] + + if common_ancestors: + common_ancestor = next(iter(common_ancestors)) + while True: + successor = None + for lower_ancestor in G.successors(common_ancestor): + if lower_ancestor in common_ancestors: + successor = lower_ancestor + break + if successor is None: + break + common_ancestor = successor + yield ((v, w), common_ancestor) + + return generate_lca_from_pairs(G, pairs) + + +@not_implemented_for("undirected") +def lowest_common_ancestor(G, node1, node2, default=None): + """Compute the lowest common ancestor of the given pair of nodes. + + Parameters + ---------- + G : NetworkX directed graph + + node1, node2 : nodes in the graph. + + default : object + Returned if no common ancestor between `node1` and `node2` + + Returns + ------- + The lowest common ancestor of node1 and node2, + or default if they have no common ancestors. + + Examples + -------- + >>> G = nx.DiGraph() + >>> nx.add_path(G, (0, 1, 2, 3)) + >>> nx.add_path(G, (0, 4, 3)) + >>> nx.lowest_common_ancestor(G, 2, 4) + 0 + + See Also + -------- + all_pairs_lowest_common_ancestor""" + + ans = list(all_pairs_lowest_common_ancestor(G, pairs=[(node1, node2)])) + if ans: + assert len(ans) == 1 + return ans[0][1] + return default + + +@not_implemented_for("undirected") +def tree_all_pairs_lowest_common_ancestor(G, root=None, pairs=None): + r"""Yield the lowest common ancestor for sets of pairs in a tree. + + Parameters + ---------- + G : NetworkX directed graph (must be a tree) + + root : node, optional (default: None) + The root of the subtree to operate on. + If None, assume the entire graph has exactly one source and use that. + + pairs : iterable or iterator of pairs of nodes, optional (default: None) + The pairs of interest. If None, Defaults to all pairs of nodes + under `root` that have a lowest common ancestor. + + Returns + ------- + lcas : generator of tuples `((u, v), lca)` where `u` and `v` are nodes + in `pairs` and `lca` is their lowest common ancestor. + + Examples + -------- + >>> import pprint + >>> G = nx.DiGraph([(1, 3), (2, 4), (1, 2)]) + >>> pprint.pprint(dict(nx.tree_all_pairs_lowest_common_ancestor(G))) + {(1, 1): 1, + (2, 1): 1, + (2, 2): 2, + (3, 1): 1, + (3, 2): 1, + (3, 3): 3, + (3, 4): 1, + (4, 1): 1, + (4, 2): 2, + (4, 4): 4} + + We can also use `pairs` argument to specify the pairs of nodes for which we + want to compute lowest common ancestors. Here is an example: + + >>> dict(nx.tree_all_pairs_lowest_common_ancestor(G, pairs=[(1, 4), (2, 3)])) + {(2, 3): 1, (1, 4): 1} + + Notes + ----- + Only defined on non-null trees represented with directed edges from + parents to children. Uses Tarjan's off-line lowest-common-ancestors + algorithm. Runs in time $O(4 \times (V + E + P))$ time, where 4 is the largest + value of the inverse Ackermann function likely to ever come up in actual + use, and $P$ is the number of pairs requested (or $V^2$ if all are needed). + + Tarjan, R. E. (1979), "Applications of path compression on balanced trees", + Journal of the ACM 26 (4): 690-715, doi:10.1145/322154.322161. + + See Also + -------- + all_pairs_lowest_common_ancestor: similar routine for general DAGs + lowest_common_ancestor: just a single pair for general DAGs + """ + if len(G) == 0: + raise nx.NetworkXPointlessConcept("LCA meaningless on null graphs.") + + # Index pairs of interest for efficient lookup from either side. + if pairs is not None: + pair_dict = defaultdict(set) + # See note on all_pairs_lowest_common_ancestor. + if not isinstance(pairs, (Mapping, Set)): + pairs = set(pairs) + for u, v in pairs: + for n in (u, v): + if n not in G: + msg = f"The node {str(n)} is not in the digraph." + raise nx.NodeNotFound(msg) + pair_dict[u].add(v) + pair_dict[v].add(u) + + # If root is not specified, find the exactly one node with in degree 0 and + # use it. Raise an error if none are found, or more than one is. Also check + # for any nodes with in degree larger than 1, which would imply G is not a + # tree. + if root is None: + for n, deg in G.in_degree: + if deg == 0: + if root is not None: + msg = "No root specified and tree has multiple sources." + raise nx.NetworkXError(msg) + root = n + # checking deg>1 is not sufficient for MultiDiGraphs + elif deg > 1 and len(G.pred[n]) > 1: + msg = "Tree LCA only defined on trees; use DAG routine." + raise nx.NetworkXError(msg) + if root is None: + raise nx.NetworkXError("Graph contains a cycle.") + + # Iterative implementation of Tarjan's offline lca algorithm + # as described in CLRS on page 521 (2nd edition)/page 584 (3rd edition) + uf = UnionFind() + ancestors = {} + for node in G: + ancestors[node] = uf[node] + + colors = defaultdict(bool) + for node in nx.dfs_postorder_nodes(G, root): + colors[node] = True + for v in pair_dict[node] if pairs is not None else G: + if colors[v]: + # If the user requested both directions of a pair, give it. + # Otherwise, just give one. + if pairs is not None and (node, v) in pairs: + yield (node, v), ancestors[uf[v]] + if pairs is None or (v, node) in pairs: + yield (v, node), ancestors[uf[v]] + if node != root: + parent = arbitrary_element(G.pred[node]) + uf.union(parent, node) + ancestors[uf[parent]] = parent diff --git a/shared/package-files/43/4332091478c51b69dc229a09ec218ccc9e87b9d56a07644da76c811c18e44b3f/qs.py b/shared/package-files/43/4332091478c51b69dc229a09ec218ccc9e87b9d56a07644da76c811c18e44b3f/qs.py new file mode 100644 index 0000000000000000000000000000000000000000..993a8e33fe8aa588f9953970a6f238ad3b7d363b --- /dev/null +++ b/shared/package-files/43/4332091478c51b69dc229a09ec218ccc9e87b9d56a07644da76c811c18e44b3f/qs.py @@ -0,0 +1,515 @@ +from sympy.core.numbers import igcd, mod_inverse +from sympy.core.power import integer_nthroot +from sympy.ntheory.residue_ntheory import _sqrt_mod_prime_power +from sympy.ntheory import isprime +from math import log, sqrt +import random + +rgen = random.Random() + +class SievePolynomial: + def __init__(self, modified_coeff=(), a=None, b=None): + """This class denotes the seive polynomial. + If ``g(x) = (a*x + b)**2 - N``. `g(x)` can be expanded + to ``a*x**2 + 2*a*b*x + b**2 - N``, so the coefficient + is stored in the form `[a**2, 2*a*b, b**2 - N]`. This + ensures faster `eval` method because we dont have to + perform `a**2, 2*a*b, b**2` every time we call the + `eval` method. As multiplication is more expensive + than addition, by using modified_coefficient we get + a faster seiving process. + + Parameters + ========== + + modified_coeff : modified_coefficient of sieve polynomial + a : parameter of the sieve polynomial + b : parameter of the sieve polynomial + """ + self.modified_coeff = modified_coeff + self.a = a + self.b = b + + def eval(self, x): + """ + Compute the value of the sieve polynomial at point x. + + Parameters + ========== + + x : Integer parameter for sieve polynomial + """ + ans = 0 + for coeff in self.modified_coeff: + ans *= x + ans += coeff + return ans + + +class FactorBaseElem: + """This class stores an element of the `factor_base`. + """ + def __init__(self, prime, tmem_p, log_p): + """ + Initialization of factor_base_elem. + + Parameters + ========== + + prime : prime number of the factor_base + tmem_p : Integer square root of x**2 = n mod prime + log_p : Compute Natural Logarithm of the prime + """ + self.prime = prime + self.tmem_p = tmem_p + self.log_p = log_p + self.soln1 = None + self.soln2 = None + self.a_inv = None + self.b_ainv = None + + +def _generate_factor_base(prime_bound, n): + """Generate `factor_base` for Quadratic Sieve. The `factor_base` + consists of all the points whose ``legendre_symbol(n, p) == 1`` + and ``p < num_primes``. Along with the prime `factor_base` also stores + natural logarithm of prime and the residue n modulo p. + It also returns the of primes numbers in the `factor_base` which are + close to 1000 and 5000. + + Parameters + ========== + + prime_bound : upper prime bound of the factor_base + n : integer to be factored + """ + from sympy.ntheory.generate import sieve + factor_base = [] + idx_1000, idx_5000 = None, None + for prime in sieve.primerange(1, prime_bound): + if pow(n, (prime - 1) // 2, prime) == 1: + if prime > 1000 and idx_1000 is None: + idx_1000 = len(factor_base) - 1 + if prime > 5000 and idx_5000 is None: + idx_5000 = len(factor_base) - 1 + residue = _sqrt_mod_prime_power(n, prime, 1)[0] + log_p = round(log(prime)*2**10) + factor_base.append(FactorBaseElem(prime, residue, log_p)) + return idx_1000, idx_5000, factor_base + + +def _initialize_first_polynomial(N, M, factor_base, idx_1000, idx_5000, seed=None): + """This step is the initialization of the 1st sieve polynomial. + Here `a` is selected as a product of several primes of the factor_base + such that `a` is about to ``sqrt(2*N) / M``. Other initial values of + factor_base elem are also initialized which includes a_inv, b_ainv, soln1, + soln2 which are used when the sieve polynomial is changed. The b_ainv + is required for fast polynomial change as we do not have to calculate + `2*b*mod_inverse(a, prime)` every time. + We also ensure that the `factor_base` primes which make `a` are between + 1000 and 5000. + + Parameters + ========== + + N : Number to be factored + M : sieve interval + factor_base : factor_base primes + idx_1000 : index of prime number in the factor_base near 1000 + idx_5000 : index of prime number in the factor_base near to 5000 + seed : Generate pseudoprime numbers + """ + if seed is not None: + rgen.seed(seed) + approx_val = sqrt(2*N) / M + # `a` is a parameter of the sieve polynomial and `q` is the prime factors of `a` + # randomly search for a combination of primes whose multiplication is close to approx_val + # This multiplication of primes will be `a` and the primes will be `q` + # `best_a` denotes that `a` is close to approx_val in the random search of combination + best_a, best_q, best_ratio = None, None, None + start = 0 if idx_1000 is None else idx_1000 + end = len(factor_base) - 1 if idx_5000 is None else idx_5000 + for _ in range(50): + a = 1 + q = [] + while(a < approx_val): + rand_p = 0 + while(rand_p == 0 or rand_p in q): + rand_p = rgen.randint(start, end) + p = factor_base[rand_p].prime + a *= p + q.append(rand_p) + ratio = a / approx_val + if best_ratio is None or abs(ratio - 1) < abs(best_ratio - 1): + best_q = q + best_a = a + best_ratio = ratio + + a = best_a + q = best_q + + B = [] + for idx, val in enumerate(q): + q_l = factor_base[val].prime + gamma = factor_base[val].tmem_p * mod_inverse(a // q_l, q_l) % q_l + if gamma > q_l / 2: + gamma = q_l - gamma + B.append(a//q_l*gamma) + + b = sum(B) + g = SievePolynomial([a*a, 2*a*b, b*b - N], a, b) + + for fb in factor_base: + if a % fb.prime == 0: + continue + fb.a_inv = mod_inverse(a, fb.prime) + fb.b_ainv = [2*b_elem*fb.a_inv % fb.prime for b_elem in B] + fb.soln1 = (fb.a_inv*(fb.tmem_p - b)) % fb.prime + fb.soln2 = (fb.a_inv*(-fb.tmem_p - b)) % fb.prime + return g, B + + +def _initialize_ith_poly(N, factor_base, i, g, B): + """Initialization stage of ith poly. After we finish sieving 1`st polynomial + here we quickly change to the next polynomial from which we will again + start sieving. Suppose we generated ith sieve polynomial and now we + want to generate (i + 1)th polynomial, where ``1 <= i <= 2**(j - 1) - 1`` + where `j` is the number of prime factors of the coefficient `a` + then this function can be used to go to the next polynomial. If + ``i = 2**(j - 1) - 1`` then go to _initialize_first_polynomial stage. + + Parameters + ========== + + N : number to be factored + factor_base : factor_base primes + i : integer denoting ith polynomial + g : (i - 1)th polynomial + B : array that stores a//q_l*gamma + """ + from sympy.functions.elementary.integers import ceiling + v = 1 + j = i + while(j % 2 == 0): + v += 1 + j //= 2 + if ceiling(i / (2**v)) % 2 == 1: + neg_pow = -1 + else: + neg_pow = 1 + b = g.b + 2*neg_pow*B[v - 1] + a = g.a + g = SievePolynomial([a*a, 2*a*b, b*b - N], a, b) + for fb in factor_base: + if a % fb.prime == 0: + continue + fb.soln1 = (fb.soln1 - neg_pow*fb.b_ainv[v - 1]) % fb.prime + fb.soln2 = (fb.soln2 - neg_pow*fb.b_ainv[v - 1]) % fb.prime + + return g + + +def _gen_sieve_array(M, factor_base): + """Sieve Stage of the Quadratic Sieve. For every prime in the factor_base + that does not divide the coefficient `a` we add log_p over the sieve_array + such that ``-M <= soln1 + i*p <= M`` and ``-M <= soln2 + i*p <= M`` where `i` + is an integer. When p = 2 then log_p is only added using + ``-M <= soln1 + i*p <= M``. + + Parameters + ========== + + M : sieve interval + factor_base : factor_base primes + """ + sieve_array = [0]*(2*M + 1) + for factor in factor_base: + if factor.soln1 is None: #The prime does not divides a + continue + for idx in range((M + factor.soln1) % factor.prime, 2*M, factor.prime): + sieve_array[idx] += factor.log_p + if factor.prime == 2: + continue + #if prime is 2 then sieve only with soln_1_p + for idx in range((M + factor.soln2) % factor.prime, 2*M, factor.prime): + sieve_array[idx] += factor.log_p + return sieve_array + + +def _check_smoothness(num, factor_base): + """Here we check that if `num` is a smooth number or not. If `a` is a smooth + number then it returns a vector of prime exponents modulo 2. For example + if a = 2 * 5**2 * 7**3 and the factor base contains {2, 3, 5, 7} then + `a` is a smooth number and this function returns ([1, 0, 0, 1], True). If + `a` is a partial relation which means that `a` a has one prime factor + greater than the `factor_base` then it returns `(a, False)` which denotes `a` + is a partial relation. + + Parameters + ========== + + a : integer whose smootheness is to be checked + factor_base : factor_base primes + """ + vec = [] + if num < 0: + vec.append(1) + num *= -1 + else: + vec.append(0) + #-1 is not included in factor_base add -1 in vector + for factor in factor_base: + if num % factor.prime != 0: + vec.append(0) + continue + factor_exp = 0 + while num % factor.prime == 0: + factor_exp += 1 + num //= factor.prime + vec.append(factor_exp % 2) + if num == 1: + return vec, True + if isprime(num): + return num, False + return None, None + + +def _trial_division_stage(N, M, factor_base, sieve_array, sieve_poly, partial_relations, ERROR_TERM): + """Trial division stage. Here we trial divide the values generetated + by sieve_poly in the sieve interval and if it is a smooth number then + it is stored in `smooth_relations`. Moreover, if we find two partial relations + with same large prime then they are combined to form a smooth relation. + First we iterate over sieve array and look for values which are greater + than accumulated_val, as these values have a high chance of being smooth + number. Then using these values we find smooth relations. + In general, let ``t**2 = u*p modN`` and ``r**2 = v*p modN`` be two partial relations + with the same large prime p. Then they can be combined ``(t*r/p)**2 = u*v modN`` + to form a smooth relation. + + Parameters + ========== + + N : Number to be factored + M : sieve interval + factor_base : factor_base primes + sieve_array : stores log_p values + sieve_poly : polynomial from which we find smooth relations + partial_relations : stores partial relations with one large prime + ERROR_TERM : error term for accumulated_val + """ + sqrt_n = sqrt(float(N)) + accumulated_val = log(M * sqrt_n)*2**10 - ERROR_TERM + smooth_relations = [] + proper_factor = set() + partial_relation_upper_bound = 128*factor_base[-1].prime + for idx, val in enumerate(sieve_array): + if val < accumulated_val: + continue + x = idx - M + v = sieve_poly.eval(x) + vec, is_smooth = _check_smoothness(v, factor_base) + if is_smooth is None:#Neither smooth nor partial + continue + u = sieve_poly.a*x + sieve_poly.b + # Update the partial relation + # If 2 partial relation with same large prime is found then generate smooth relation + if is_smooth is False:#partial relation found + large_prime = vec + #Consider the large_primes under 128*F + if large_prime > partial_relation_upper_bound: + continue + if large_prime not in partial_relations: + partial_relations[large_prime] = (u, v) + continue + else: + u_prev, v_prev = partial_relations[large_prime] + partial_relations.pop(large_prime) + try: + large_prime_inv = mod_inverse(large_prime, N) + except ValueError:#if large_prine divides N + proper_factor.add(large_prime) + continue + u = u*u_prev*large_prime_inv + v = v*v_prev // (large_prime*large_prime) + vec, is_smooth = _check_smoothness(v, factor_base) + #assert u*u % N == v % N + smooth_relations.append((u, v, vec)) + return smooth_relations, proper_factor + + +#LINEAR ALGEBRA STAGE +def _build_matrix(smooth_relations): + """Build a 2D matrix from smooth relations. + + Parameters + ========== + + smooth_relations : Stores smooth relations + """ + matrix = [] + for s_relation in smooth_relations: + matrix.append(s_relation[2]) + return matrix + + +def _gauss_mod_2(A): + """Fast gaussian reduction for modulo 2 matrix. + + Parameters + ========== + + A : Matrix + + Examples + ======== + + >>> from sympy.ntheory.qs import _gauss_mod_2 + >>> _gauss_mod_2([[0, 1, 1], [1, 0, 1], [0, 1, 0], [1, 1, 1]]) + ([[[1, 0, 1], 3]], + [True, True, True, False], + [[0, 1, 0], [1, 0, 0], [0, 0, 1], [1, 0, 1]]) + + Reference + ========== + + .. [1] A fast algorithm for gaussian elimination over GF(2) and + its implementation on the GAPP. Cetin K.Koc, Sarath N.Arachchige""" + import copy + matrix = copy.deepcopy(A) + row = len(matrix) + col = len(matrix[0]) + mark = [False]*row + for c in range(col): + for r in range(row): + if matrix[r][c] == 1: + break + mark[r] = True + for c1 in range(col): + if c1 == c: + continue + if matrix[r][c1] == 1: + for r2 in range(row): + matrix[r2][c1] = (matrix[r2][c1] + matrix[r2][c]) % 2 + dependent_row = [] + for idx, val in enumerate(mark): + if val == False: + dependent_row.append([matrix[idx], idx]) + return dependent_row, mark, matrix + + +def _find_factor(dependent_rows, mark, gauss_matrix, index, smooth_relations, N): + """Finds proper factor of N. Here, transform the dependent rows as a + combination of independent rows of the gauss_matrix to form the desired + relation of the form ``X**2 = Y**2 modN``. After obtaining the desired relation + we obtain a proper factor of N by `gcd(X - Y, N)`. + + Parameters + ========== + + dependent_rows : denoted dependent rows in the reduced matrix form + mark : boolean array to denoted dependent and independent rows + gauss_matrix : Reduced form of the smooth relations matrix + index : denoted the index of the dependent_rows + smooth_relations : Smooth relations vectors matrix + N : Number to be factored + """ + idx_in_smooth = dependent_rows[index][1] + independent_u = [smooth_relations[idx_in_smooth][0]] + independent_v = [smooth_relations[idx_in_smooth][1]] + dept_row = dependent_rows[index][0] + + for idx, val in enumerate(dept_row): + if val == 1: + for row in range(len(gauss_matrix)): + if gauss_matrix[row][idx] == 1 and mark[row] == True: + independent_u.append(smooth_relations[row][0]) + independent_v.append(smooth_relations[row][1]) + break + + u = 1 + v = 1 + for i in independent_u: + u *= i + for i in independent_v: + v *= i + #assert u**2 % N == v % N + v = integer_nthroot(v, 2)[0] + return igcd(u - v, N) + + +def qs(N, prime_bound, M, ERROR_TERM=25, seed=1234): + """Performs factorization using Self-Initializing Quadratic Sieve. + In SIQS, let N be a number to be factored, and this N should not be a + perfect power. If we find two integers such that ``X**2 = Y**2 modN`` and + ``X != +-Y modN``, then `gcd(X + Y, N)` will reveal a proper factor of N. + In order to find these integers X and Y we try to find relations of form + t**2 = u modN where u is a product of small primes. If we have enough of + these relations then we can form ``(t1*t2...ti)**2 = u1*u2...ui modN`` such that + the right hand side is a square, thus we found a relation of ``X**2 = Y**2 modN``. + + Here, several optimizations are done like using multiple polynomials for + sieving, fast changing between polynomials and using partial relations. + The use of partial relations can speeds up the factoring by 2 times. + + Parameters + ========== + + N : Number to be Factored + prime_bound : upper bound for primes in the factor base + M : Sieve Interval + ERROR_TERM : Error term for checking smoothness + threshold : Extra smooth relations for factorization + seed : generate pseudo prime numbers + + Examples + ======== + + >>> from sympy.ntheory import qs + >>> qs(25645121643901801, 2000, 10000) + {5394769, 4753701529} + >>> qs(9804659461513846513, 2000, 10000) + {4641991, 2112166839943} + + References + ========== + + .. [1] https://pdfs.semanticscholar.org/5c52/8a975c1405bd35c65993abf5a4edb667c1db.pdf + .. [2] https://www.rieselprime.de/ziki/Self-initializing_quadratic_sieve + """ + ERROR_TERM*=2**10 + rgen.seed(seed) + idx_1000, idx_5000, factor_base = _generate_factor_base(prime_bound, N) + smooth_relations = [] + ith_poly = 0 + partial_relations = {} + proper_factor = set() + threshold = 5*len(factor_base) // 100 + while True: + if ith_poly == 0: + ith_sieve_poly, B_array = _initialize_first_polynomial(N, M, factor_base, idx_1000, idx_5000) + else: + ith_sieve_poly = _initialize_ith_poly(N, factor_base, ith_poly, ith_sieve_poly, B_array) + ith_poly += 1 + if ith_poly >= 2**(len(B_array) - 1): # time to start with a new sieve polynomial + ith_poly = 0 + sieve_array = _gen_sieve_array(M, factor_base) + s_rel, p_f = _trial_division_stage(N, M, factor_base, sieve_array, ith_sieve_poly, partial_relations, ERROR_TERM) + smooth_relations += s_rel + proper_factor |= p_f + if len(smooth_relations) >= len(factor_base) + threshold: + break + matrix = _build_matrix(smooth_relations) + dependent_row, mark, gauss_matrix = _gauss_mod_2(matrix) + N_copy = N + for index in range(len(dependent_row)): + factor = _find_factor(dependent_row, mark, gauss_matrix, index, smooth_relations, N) + if factor > 1 and factor < N: + proper_factor.add(factor) + while(N_copy % factor == 0): + N_copy //= factor + if isprime(N_copy): + proper_factor.add(N_copy) + break + if(N_copy == 1): + break + return proper_factor diff --git a/shared/package-files/43/4334003c80be2234d5dc3c73f7b8419ef2c10a617c929b014c17244e18604634/test_einsum.py b/shared/package-files/43/4334003c80be2234d5dc3c73f7b8419ef2c10a617c929b014c17244e18604634/test_einsum.py new file mode 100644 index 0000000000000000000000000000000000000000..702be2486515402d835e44d361d8642211919487 --- /dev/null +++ b/shared/package-files/43/4334003c80be2234d5dc3c73f7b8419ef2c10a617c929b014c17244e18604634/test_einsum.py @@ -0,0 +1,1248 @@ +import itertools +import sys +import platform + +import pytest + +import numpy as np +from numpy.testing import ( + assert_, assert_equal, assert_array_equal, assert_almost_equal, + assert_raises, suppress_warnings, assert_raises_regex, assert_allclose + ) + +try: + COMPILERS = np.show_config(mode="dicts")["Compilers"] + USING_CLANG_CL = COMPILERS["c"]["name"] == "clang-cl" +except TypeError: + USING_CLANG_CL = False + +# Setup for optimize einsum +chars = 'abcdefghij' +sizes = np.array([2, 3, 4, 5, 4, 3, 2, 6, 5, 4, 3]) +global_size_dict = dict(zip(chars, sizes)) + + +class TestEinsum: + def test_einsum_errors(self): + for do_opt in [True, False]: + # Need enough arguments + assert_raises(ValueError, np.einsum, optimize=do_opt) + assert_raises(ValueError, np.einsum, "", optimize=do_opt) + + # subscripts must be a string + assert_raises(TypeError, np.einsum, 0, 0, optimize=do_opt) + + # out parameter must be an array + assert_raises(TypeError, np.einsum, "", 0, out='test', + optimize=do_opt) + + # order parameter must be a valid order + assert_raises(ValueError, np.einsum, "", 0, order='W', + optimize=do_opt) + + # casting parameter must be a valid casting + assert_raises(ValueError, np.einsum, "", 0, casting='blah', + optimize=do_opt) + + # dtype parameter must be a valid dtype + assert_raises(TypeError, np.einsum, "", 0, dtype='bad_data_type', + optimize=do_opt) + + # other keyword arguments are rejected + assert_raises(TypeError, np.einsum, "", 0, bad_arg=0, + optimize=do_opt) + + # issue 4528 revealed a segfault with this call + assert_raises(TypeError, np.einsum, *(None,)*63, optimize=do_opt) + + # number of operands must match count in subscripts string + assert_raises(ValueError, np.einsum, "", 0, 0, optimize=do_opt) + assert_raises(ValueError, np.einsum, ",", 0, [0], [0], + optimize=do_opt) + assert_raises(ValueError, np.einsum, ",", [0], optimize=do_opt) + + # can't have more subscripts than dimensions in the operand + assert_raises(ValueError, np.einsum, "i", 0, optimize=do_opt) + assert_raises(ValueError, np.einsum, "ij", [0, 0], optimize=do_opt) + assert_raises(ValueError, np.einsum, "...i", 0, optimize=do_opt) + assert_raises(ValueError, np.einsum, "i...j", [0, 0], optimize=do_opt) + assert_raises(ValueError, np.einsum, "i...", 0, optimize=do_opt) + assert_raises(ValueError, np.einsum, "ij...", [0, 0], optimize=do_opt) + + # invalid ellipsis + assert_raises(ValueError, np.einsum, "i..", [0, 0], optimize=do_opt) + assert_raises(ValueError, np.einsum, ".i...", [0, 0], optimize=do_opt) + assert_raises(ValueError, np.einsum, "j->..j", [0, 0], optimize=do_opt) + assert_raises(ValueError, np.einsum, "j->.j...", [0, 0], optimize=do_opt) + + # invalid subscript character + assert_raises(ValueError, np.einsum, "i%...", [0, 0], optimize=do_opt) + assert_raises(ValueError, np.einsum, "...j$", [0, 0], optimize=do_opt) + assert_raises(ValueError, np.einsum, "i->&", [0, 0], optimize=do_opt) + + # output subscripts must appear in input + assert_raises(ValueError, np.einsum, "i->ij", [0, 0], optimize=do_opt) + + # output subscripts may only be specified once + assert_raises(ValueError, np.einsum, "ij->jij", [[0, 0], [0, 0]], + optimize=do_opt) + + # dimensions much match when being collapsed + assert_raises(ValueError, np.einsum, "ii", + np.arange(6).reshape(2, 3), optimize=do_opt) + assert_raises(ValueError, np.einsum, "ii->i", + np.arange(6).reshape(2, 3), optimize=do_opt) + + # broadcasting to new dimensions must be enabled explicitly + assert_raises(ValueError, np.einsum, "i", np.arange(6).reshape(2, 3), + optimize=do_opt) + assert_raises(ValueError, np.einsum, "i->i", [[0, 1], [0, 1]], + out=np.arange(4).reshape(2, 2), optimize=do_opt) + with assert_raises_regex(ValueError, "'b'"): + # gh-11221 - 'c' erroneously appeared in the error message + a = np.ones((3, 3, 4, 5, 6)) + b = np.ones((3, 4, 5)) + np.einsum('aabcb,abc', a, b) + + # Check order kwarg, asanyarray allows 1d to pass through + assert_raises(ValueError, np.einsum, "i->i", np.arange(6).reshape(-1, 1), + optimize=do_opt, order='d') + + def test_einsum_object_errors(self): + # Exceptions created by object arithmetic should + # successfully propagate + + class CustomException(Exception): + pass + + class DestructoBox: + + def __init__(self, value, destruct): + self._val = value + self._destruct = destruct + + def __add__(self, other): + tmp = self._val + other._val + if tmp >= self._destruct: + raise CustomException + else: + self._val = tmp + return self + + def __radd__(self, other): + if other == 0: + return self + else: + return self.__add__(other) + + def __mul__(self, other): + tmp = self._val * other._val + if tmp >= self._destruct: + raise CustomException + else: + self._val = tmp + return self + + def __rmul__(self, other): + if other == 0: + return self + else: + return self.__mul__(other) + + a = np.array([DestructoBox(i, 5) for i in range(1, 10)], + dtype='object').reshape(3, 3) + + # raised from unbuffered_loop_nop1_ndim2 + assert_raises(CustomException, np.einsum, "ij->i", a) + + # raised from unbuffered_loop_nop1_ndim3 + b = np.array([DestructoBox(i, 100) for i in range(0, 27)], + dtype='object').reshape(3, 3, 3) + assert_raises(CustomException, np.einsum, "i...k->...", b) + + # raised from unbuffered_loop_nop2_ndim2 + b = np.array([DestructoBox(i, 55) for i in range(1, 4)], + dtype='object') + assert_raises(CustomException, np.einsum, "ij, j", a, b) + + # raised from unbuffered_loop_nop2_ndim3 + assert_raises(CustomException, np.einsum, "ij, jh", a, a) + + # raised from PyArray_EinsteinSum + assert_raises(CustomException, np.einsum, "ij->", a) + + def test_einsum_views(self): + # pass-through + for do_opt in [True, False]: + a = np.arange(6) + a.shape = (2, 3) + + b = np.einsum("...", a, optimize=do_opt) + assert_(b.base is a) + + b = np.einsum(a, [Ellipsis], optimize=do_opt) + assert_(b.base is a) + + b = np.einsum("ij", a, optimize=do_opt) + assert_(b.base is a) + assert_equal(b, a) + + b = np.einsum(a, [0, 1], optimize=do_opt) + assert_(b.base is a) + assert_equal(b, a) + + # output is writeable whenever input is writeable + b = np.einsum("...", a, optimize=do_opt) + assert_(b.flags['WRITEABLE']) + a.flags['WRITEABLE'] = False + b = np.einsum("...", a, optimize=do_opt) + assert_(not b.flags['WRITEABLE']) + + # transpose + a = np.arange(6) + a.shape = (2, 3) + + b = np.einsum("ji", a, optimize=do_opt) + assert_(b.base is a) + assert_equal(b, a.T) + + b = np.einsum(a, [1, 0], optimize=do_opt) + assert_(b.base is a) + assert_equal(b, a.T) + + # diagonal + a = np.arange(9) + a.shape = (3, 3) + + b = np.einsum("ii->i", a, optimize=do_opt) + assert_(b.base is a) + assert_equal(b, [a[i, i] for i in range(3)]) + + b = np.einsum(a, [0, 0], [0], optimize=do_opt) + assert_(b.base is a) + assert_equal(b, [a[i, i] for i in range(3)]) + + # diagonal with various ways of broadcasting an additional dimension + a = np.arange(27) + a.shape = (3, 3, 3) + + b = np.einsum("...ii->...i", a, optimize=do_opt) + assert_(b.base is a) + assert_equal(b, [[x[i, i] for i in range(3)] for x in a]) + + b = np.einsum(a, [Ellipsis, 0, 0], [Ellipsis, 0], optimize=do_opt) + assert_(b.base is a) + assert_equal(b, [[x[i, i] for i in range(3)] for x in a]) + + b = np.einsum("ii...->...i", a, optimize=do_opt) + assert_(b.base is a) + assert_equal(b, [[x[i, i] for i in range(3)] + for x in a.transpose(2, 0, 1)]) + + b = np.einsum(a, [0, 0, Ellipsis], [Ellipsis, 0], optimize=do_opt) + assert_(b.base is a) + assert_equal(b, [[x[i, i] for i in range(3)] + for x in a.transpose(2, 0, 1)]) + + b = np.einsum("...ii->i...", a, optimize=do_opt) + assert_(b.base is a) + assert_equal(b, [a[:, i, i] for i in range(3)]) + + b = np.einsum(a, [Ellipsis, 0, 0], [0, Ellipsis], optimize=do_opt) + assert_(b.base is a) + assert_equal(b, [a[:, i, i] for i in range(3)]) + + b = np.einsum("jii->ij", a, optimize=do_opt) + assert_(b.base is a) + assert_equal(b, [a[:, i, i] for i in range(3)]) + + b = np.einsum(a, [1, 0, 0], [0, 1], optimize=do_opt) + assert_(b.base is a) + assert_equal(b, [a[:, i, i] for i in range(3)]) + + b = np.einsum("ii...->i...", a, optimize=do_opt) + assert_(b.base is a) + assert_equal(b, [a.transpose(2, 0, 1)[:, i, i] for i in range(3)]) + + b = np.einsum(a, [0, 0, Ellipsis], [0, Ellipsis], optimize=do_opt) + assert_(b.base is a) + assert_equal(b, [a.transpose(2, 0, 1)[:, i, i] for i in range(3)]) + + b = np.einsum("i...i->i...", a, optimize=do_opt) + assert_(b.base is a) + assert_equal(b, [a.transpose(1, 0, 2)[:, i, i] for i in range(3)]) + + b = np.einsum(a, [0, Ellipsis, 0], [0, Ellipsis], optimize=do_opt) + assert_(b.base is a) + assert_equal(b, [a.transpose(1, 0, 2)[:, i, i] for i in range(3)]) + + b = np.einsum("i...i->...i", a, optimize=do_opt) + assert_(b.base is a) + assert_equal(b, [[x[i, i] for i in range(3)] + for x in a.transpose(1, 0, 2)]) + + b = np.einsum(a, [0, Ellipsis, 0], [Ellipsis, 0], optimize=do_opt) + assert_(b.base is a) + assert_equal(b, [[x[i, i] for i in range(3)] + for x in a.transpose(1, 0, 2)]) + + # triple diagonal + a = np.arange(27) + a.shape = (3, 3, 3) + + b = np.einsum("iii->i", a, optimize=do_opt) + assert_(b.base is a) + assert_equal(b, [a[i, i, i] for i in range(3)]) + + b = np.einsum(a, [0, 0, 0], [0], optimize=do_opt) + assert_(b.base is a) + assert_equal(b, [a[i, i, i] for i in range(3)]) + + # swap axes + a = np.arange(24) + a.shape = (2, 3, 4) + + b = np.einsum("ijk->jik", a, optimize=do_opt) + assert_(b.base is a) + assert_equal(b, a.swapaxes(0, 1)) + + b = np.einsum(a, [0, 1, 2], [1, 0, 2], optimize=do_opt) + assert_(b.base is a) + assert_equal(b, a.swapaxes(0, 1)) + + @np._no_nep50_warning() + def check_einsum_sums(self, dtype, do_opt=False): + dtype = np.dtype(dtype) + # Check various sums. Does many sizes to exercise unrolled loops. + + # sum(a, axis=-1) + for n in range(1, 17): + a = np.arange(n, dtype=dtype) + b = np.sum(a, axis=-1) + if hasattr(b, 'astype'): + b = b.astype(dtype) + assert_equal(np.einsum("i->", a, optimize=do_opt), b) + assert_equal(np.einsum(a, [0], [], optimize=do_opt), b) + + for n in range(1, 17): + a = np.arange(2*3*n, dtype=dtype).reshape(2, 3, n) + b = np.sum(a, axis=-1) + if hasattr(b, 'astype'): + b = b.astype(dtype) + assert_equal(np.einsum("...i->...", a, optimize=do_opt), b) + assert_equal(np.einsum(a, [Ellipsis, 0], [Ellipsis], optimize=do_opt), b) + + # sum(a, axis=0) + for n in range(1, 17): + a = np.arange(2*n, dtype=dtype).reshape(2, n) + b = np.sum(a, axis=0) + if hasattr(b, 'astype'): + b = b.astype(dtype) + assert_equal(np.einsum("i...->...", a, optimize=do_opt), b) + assert_equal(np.einsum(a, [0, Ellipsis], [Ellipsis], optimize=do_opt), b) + + for n in range(1, 17): + a = np.arange(2*3*n, dtype=dtype).reshape(2, 3, n) + b = np.sum(a, axis=0) + if hasattr(b, 'astype'): + b = b.astype(dtype) + assert_equal(np.einsum("i...->...", a, optimize=do_opt), b) + assert_equal(np.einsum(a, [0, Ellipsis], [Ellipsis], optimize=do_opt), b) + + # trace(a) + for n in range(1, 17): + a = np.arange(n*n, dtype=dtype).reshape(n, n) + b = np.trace(a) + if hasattr(b, 'astype'): + b = b.astype(dtype) + assert_equal(np.einsum("ii", a, optimize=do_opt), b) + assert_equal(np.einsum(a, [0, 0], optimize=do_opt), b) + + # gh-15961: should accept numpy int64 type in subscript list + np_array = np.asarray([0, 0]) + assert_equal(np.einsum(a, np_array, optimize=do_opt), b) + assert_equal(np.einsum(a, list(np_array), optimize=do_opt), b) + + # multiply(a, b) + assert_equal(np.einsum("..., ...", 3, 4), 12) # scalar case + for n in range(1, 17): + a = np.arange(3 * n, dtype=dtype).reshape(3, n) + b = np.arange(2 * 3 * n, dtype=dtype).reshape(2, 3, n) + assert_equal(np.einsum("..., ...", a, b, optimize=do_opt), + np.multiply(a, b)) + assert_equal(np.einsum(a, [Ellipsis], b, [Ellipsis], optimize=do_opt), + np.multiply(a, b)) + + # inner(a,b) + for n in range(1, 17): + a = np.arange(2 * 3 * n, dtype=dtype).reshape(2, 3, n) + b = np.arange(n, dtype=dtype) + assert_equal(np.einsum("...i, ...i", a, b, optimize=do_opt), np.inner(a, b)) + assert_equal(np.einsum(a, [Ellipsis, 0], b, [Ellipsis, 0], optimize=do_opt), + np.inner(a, b)) + + for n in range(1, 11): + a = np.arange(n * 3 * 2, dtype=dtype).reshape(n, 3, 2) + b = np.arange(n, dtype=dtype) + assert_equal(np.einsum("i..., i...", a, b, optimize=do_opt), + np.inner(a.T, b.T).T) + assert_equal(np.einsum(a, [0, Ellipsis], b, [0, Ellipsis], optimize=do_opt), + np.inner(a.T, b.T).T) + + # outer(a,b) + for n in range(1, 17): + a = np.arange(3, dtype=dtype)+1 + b = np.arange(n, dtype=dtype)+1 + assert_equal(np.einsum("i,j", a, b, optimize=do_opt), + np.outer(a, b)) + assert_equal(np.einsum(a, [0], b, [1], optimize=do_opt), + np.outer(a, b)) + + # Suppress the complex warnings for the 'as f8' tests + with suppress_warnings() as sup: + sup.filter(np.ComplexWarning) + + # matvec(a,b) / a.dot(b) where a is matrix, b is vector + for n in range(1, 17): + a = np.arange(4*n, dtype=dtype).reshape(4, n) + b = np.arange(n, dtype=dtype) + assert_equal(np.einsum("ij, j", a, b, optimize=do_opt), + np.dot(a, b)) + assert_equal(np.einsum(a, [0, 1], b, [1], optimize=do_opt), + np.dot(a, b)) + + c = np.arange(4, dtype=dtype) + np.einsum("ij,j", a, b, out=c, + dtype='f8', casting='unsafe', optimize=do_opt) + assert_equal(c, + np.dot(a.astype('f8'), + b.astype('f8')).astype(dtype)) + c[...] = 0 + np.einsum(a, [0, 1], b, [1], out=c, + dtype='f8', casting='unsafe', optimize=do_opt) + assert_equal(c, + np.dot(a.astype('f8'), + b.astype('f8')).astype(dtype)) + + for n in range(1, 17): + a = np.arange(4*n, dtype=dtype).reshape(4, n) + b = np.arange(n, dtype=dtype) + assert_equal(np.einsum("ji,j", a.T, b.T, optimize=do_opt), + np.dot(b.T, a.T)) + assert_equal(np.einsum(a.T, [1, 0], b.T, [1], optimize=do_opt), + np.dot(b.T, a.T)) + + c = np.arange(4, dtype=dtype) + np.einsum("ji,j", a.T, b.T, out=c, + dtype='f8', casting='unsafe', optimize=do_opt) + assert_equal(c, + np.dot(b.T.astype('f8'), + a.T.astype('f8')).astype(dtype)) + c[...] = 0 + np.einsum(a.T, [1, 0], b.T, [1], out=c, + dtype='f8', casting='unsafe', optimize=do_opt) + assert_equal(c, + np.dot(b.T.astype('f8'), + a.T.astype('f8')).astype(dtype)) + + # matmat(a,b) / a.dot(b) where a is matrix, b is matrix + for n in range(1, 17): + if n < 8 or dtype != 'f2': + a = np.arange(4*n, dtype=dtype).reshape(4, n) + b = np.arange(n*6, dtype=dtype).reshape(n, 6) + assert_equal(np.einsum("ij,jk", a, b, optimize=do_opt), + np.dot(a, b)) + assert_equal(np.einsum(a, [0, 1], b, [1, 2], optimize=do_opt), + np.dot(a, b)) + + for n in range(1, 17): + a = np.arange(4*n, dtype=dtype).reshape(4, n) + b = np.arange(n*6, dtype=dtype).reshape(n, 6) + c = np.arange(24, dtype=dtype).reshape(4, 6) + np.einsum("ij,jk", a, b, out=c, dtype='f8', casting='unsafe', + optimize=do_opt) + assert_equal(c, + np.dot(a.astype('f8'), + b.astype('f8')).astype(dtype)) + c[...] = 0 + np.einsum(a, [0, 1], b, [1, 2], out=c, + dtype='f8', casting='unsafe', optimize=do_opt) + assert_equal(c, + np.dot(a.astype('f8'), + b.astype('f8')).astype(dtype)) + + # matrix triple product (note this is not currently an efficient + # way to multiply 3 matrices) + a = np.arange(12, dtype=dtype).reshape(3, 4) + b = np.arange(20, dtype=dtype).reshape(4, 5) + c = np.arange(30, dtype=dtype).reshape(5, 6) + if dtype != 'f2': + assert_equal(np.einsum("ij,jk,kl", a, b, c, optimize=do_opt), + a.dot(b).dot(c)) + assert_equal(np.einsum(a, [0, 1], b, [1, 2], c, [2, 3], + optimize=do_opt), a.dot(b).dot(c)) + + d = np.arange(18, dtype=dtype).reshape(3, 6) + np.einsum("ij,jk,kl", a, b, c, out=d, + dtype='f8', casting='unsafe', optimize=do_opt) + tgt = a.astype('f8').dot(b.astype('f8')) + tgt = tgt.dot(c.astype('f8')).astype(dtype) + assert_equal(d, tgt) + + d[...] = 0 + np.einsum(a, [0, 1], b, [1, 2], c, [2, 3], out=d, + dtype='f8', casting='unsafe', optimize=do_opt) + tgt = a.astype('f8').dot(b.astype('f8')) + tgt = tgt.dot(c.astype('f8')).astype(dtype) + assert_equal(d, tgt) + + # tensordot(a, b) + if np.dtype(dtype) != np.dtype('f2'): + a = np.arange(60, dtype=dtype).reshape(3, 4, 5) + b = np.arange(24, dtype=dtype).reshape(4, 3, 2) + assert_equal(np.einsum("ijk, jil -> kl", a, b), + np.tensordot(a, b, axes=([1, 0], [0, 1]))) + assert_equal(np.einsum(a, [0, 1, 2], b, [1, 0, 3], [2, 3]), + np.tensordot(a, b, axes=([1, 0], [0, 1]))) + + c = np.arange(10, dtype=dtype).reshape(5, 2) + np.einsum("ijk,jil->kl", a, b, out=c, + dtype='f8', casting='unsafe', optimize=do_opt) + assert_equal(c, np.tensordot(a.astype('f8'), b.astype('f8'), + axes=([1, 0], [0, 1])).astype(dtype)) + c[...] = 0 + np.einsum(a, [0, 1, 2], b, [1, 0, 3], [2, 3], out=c, + dtype='f8', casting='unsafe', optimize=do_opt) + assert_equal(c, np.tensordot(a.astype('f8'), b.astype('f8'), + axes=([1, 0], [0, 1])).astype(dtype)) + + # logical_and(logical_and(a!=0, b!=0), c!=0) + neg_val = -2 if dtype.kind != "u" else np.iinfo(dtype).max - 1 + a = np.array([1, 3, neg_val, 0, 12, 13, 0, 1], dtype=dtype) + b = np.array([0, 3.5, 0., neg_val, 0, 1, 3, 12], dtype=dtype) + c = np.array([True, True, False, True, True, False, True, True]) + + assert_equal(np.einsum("i,i,i->i", a, b, c, + dtype='?', casting='unsafe', optimize=do_opt), + np.logical_and(np.logical_and(a != 0, b != 0), c != 0)) + assert_equal(np.einsum(a, [0], b, [0], c, [0], [0], + dtype='?', casting='unsafe'), + np.logical_and(np.logical_and(a != 0, b != 0), c != 0)) + + a = np.arange(9, dtype=dtype) + assert_equal(np.einsum(",i->", 3, a), 3*np.sum(a)) + assert_equal(np.einsum(3, [], a, [0], []), 3*np.sum(a)) + assert_equal(np.einsum("i,->", a, 3), 3*np.sum(a)) + assert_equal(np.einsum(a, [0], 3, [], []), 3*np.sum(a)) + + # Various stride0, contiguous, and SSE aligned variants + for n in range(1, 25): + a = np.arange(n, dtype=dtype) + if np.dtype(dtype).itemsize > 1: + assert_equal(np.einsum("...,...", a, a, optimize=do_opt), + np.multiply(a, a)) + assert_equal(np.einsum("i,i", a, a, optimize=do_opt), np.dot(a, a)) + assert_equal(np.einsum("i,->i", a, 2, optimize=do_opt), 2*a) + assert_equal(np.einsum(",i->i", 2, a, optimize=do_opt), 2*a) + assert_equal(np.einsum("i,->", a, 2, optimize=do_opt), 2*np.sum(a)) + assert_equal(np.einsum(",i->", 2, a, optimize=do_opt), 2*np.sum(a)) + + assert_equal(np.einsum("...,...", a[1:], a[:-1], optimize=do_opt), + np.multiply(a[1:], a[:-1])) + assert_equal(np.einsum("i,i", a[1:], a[:-1], optimize=do_opt), + np.dot(a[1:], a[:-1])) + assert_equal(np.einsum("i,->i", a[1:], 2, optimize=do_opt), 2*a[1:]) + assert_equal(np.einsum(",i->i", 2, a[1:], optimize=do_opt), 2*a[1:]) + assert_equal(np.einsum("i,->", a[1:], 2, optimize=do_opt), + 2*np.sum(a[1:])) + assert_equal(np.einsum(",i->", 2, a[1:], optimize=do_opt), + 2*np.sum(a[1:])) + + # An object array, summed as the data type + a = np.arange(9, dtype=object) + + b = np.einsum("i->", a, dtype=dtype, casting='unsafe') + assert_equal(b, np.sum(a)) + if hasattr(b, "dtype"): + # Can be a python object when dtype is object + assert_equal(b.dtype, np.dtype(dtype)) + + b = np.einsum(a, [0], [], dtype=dtype, casting='unsafe') + assert_equal(b, np.sum(a)) + if hasattr(b, "dtype"): + # Can be a python object when dtype is object + assert_equal(b.dtype, np.dtype(dtype)) + + # A case which was failing (ticket #1885) + p = np.arange(2) + 1 + q = np.arange(4).reshape(2, 2) + 3 + r = np.arange(4).reshape(2, 2) + 7 + assert_equal(np.einsum('z,mz,zm->', p, q, r), 253) + + # singleton dimensions broadcast (gh-10343) + p = np.ones((10,2)) + q = np.ones((1,2)) + assert_array_equal(np.einsum('ij,ij->j', p, q, optimize=True), + np.einsum('ij,ij->j', p, q, optimize=False)) + assert_array_equal(np.einsum('ij,ij->j', p, q, optimize=True), + [10.] * 2) + + # a blas-compatible contraction broadcasting case which was failing + # for optimize=True (ticket #10930) + x = np.array([2., 3.]) + y = np.array([4.]) + assert_array_equal(np.einsum("i, i", x, y, optimize=False), 20.) + assert_array_equal(np.einsum("i, i", x, y, optimize=True), 20.) + + # all-ones array was bypassing bug (ticket #10930) + p = np.ones((1, 5)) / 2 + q = np.ones((5, 5)) / 2 + for optimize in (True, False): + assert_array_equal(np.einsum("...ij,...jk->...ik", p, p, + optimize=optimize), + np.einsum("...ij,...jk->...ik", p, q, + optimize=optimize)) + assert_array_equal(np.einsum("...ij,...jk->...ik", p, q, + optimize=optimize), + np.full((1, 5), 1.25)) + + # Cases which were failing (gh-10899) + x = np.eye(2, dtype=dtype) + y = np.ones(2, dtype=dtype) + assert_array_equal(np.einsum("ji,i->", x, y, optimize=optimize), + [2.]) # contig_contig_outstride0_two + assert_array_equal(np.einsum("i,ij->", y, x, optimize=optimize), + [2.]) # stride0_contig_outstride0_two + assert_array_equal(np.einsum("ij,i->", x, y, optimize=optimize), + [2.]) # contig_stride0_outstride0_two + + def test_einsum_sums_int8(self): + if ( + (sys.platform == 'darwin' and platform.machine() == 'x86_64') + or + USING_CLANG_CL + ): + pytest.xfail('Fails on macOS x86-64 and when using clang-cl ' + 'with Meson, see gh-23838') + self.check_einsum_sums('i1') + + def test_einsum_sums_uint8(self): + if ( + (sys.platform == 'darwin' and platform.machine() == 'x86_64') + or + USING_CLANG_CL + ): + pytest.xfail('Fails on macOS x86-64 and when using clang-cl ' + 'with Meson, see gh-23838') + self.check_einsum_sums('u1') + + def test_einsum_sums_int16(self): + self.check_einsum_sums('i2') + + def test_einsum_sums_uint16(self): + self.check_einsum_sums('u2') + + def test_einsum_sums_int32(self): + self.check_einsum_sums('i4') + self.check_einsum_sums('i4', True) + + def test_einsum_sums_uint32(self): + self.check_einsum_sums('u4') + self.check_einsum_sums('u4', True) + + def test_einsum_sums_int64(self): + self.check_einsum_sums('i8') + + def test_einsum_sums_uint64(self): + self.check_einsum_sums('u8') + + def test_einsum_sums_float16(self): + self.check_einsum_sums('f2') + + def test_einsum_sums_float32(self): + self.check_einsum_sums('f4') + + def test_einsum_sums_float64(self): + self.check_einsum_sums('f8') + self.check_einsum_sums('f8', True) + + def test_einsum_sums_longdouble(self): + self.check_einsum_sums(np.longdouble) + + def test_einsum_sums_cfloat64(self): + self.check_einsum_sums('c8') + self.check_einsum_sums('c8', True) + + def test_einsum_sums_cfloat128(self): + self.check_einsum_sums('c16') + + def test_einsum_sums_clongdouble(self): + self.check_einsum_sums(np.clongdouble) + + def test_einsum_sums_object(self): + self.check_einsum_sums('object') + self.check_einsum_sums('object', True) + + def test_einsum_misc(self): + # This call used to crash because of a bug in + # PyArray_AssignZero + a = np.ones((1, 2)) + b = np.ones((2, 2, 1)) + assert_equal(np.einsum('ij...,j...->i...', a, b), [[[2], [2]]]) + assert_equal(np.einsum('ij...,j...->i...', a, b, optimize=True), [[[2], [2]]]) + + # Regression test for issue #10369 (test unicode inputs with Python 2) + assert_equal(np.einsum('ij...,j...->i...', a, b), [[[2], [2]]]) + assert_equal(np.einsum('...i,...i', [1, 2, 3], [2, 3, 4]), 20) + assert_equal(np.einsum('...i,...i', [1, 2, 3], [2, 3, 4], + optimize='greedy'), 20) + + # The iterator had an issue with buffering this reduction + a = np.ones((5, 12, 4, 2, 3), np.int64) + b = np.ones((5, 12, 11), np.int64) + assert_equal(np.einsum('ijklm,ijn,ijn->', a, b, b), + np.einsum('ijklm,ijn->', a, b)) + assert_equal(np.einsum('ijklm,ijn,ijn->', a, b, b, optimize=True), + np.einsum('ijklm,ijn->', a, b, optimize=True)) + + # Issue #2027, was a problem in the contiguous 3-argument + # inner loop implementation + a = np.arange(1, 3) + b = np.arange(1, 5).reshape(2, 2) + c = np.arange(1, 9).reshape(4, 2) + assert_equal(np.einsum('x,yx,zx->xzy', a, b, c), + [[[1, 3], [3, 9], [5, 15], [7, 21]], + [[8, 16], [16, 32], [24, 48], [32, 64]]]) + assert_equal(np.einsum('x,yx,zx->xzy', a, b, c, optimize=True), + [[[1, 3], [3, 9], [5, 15], [7, 21]], + [[8, 16], [16, 32], [24, 48], [32, 64]]]) + + # Ensure explicitly setting out=None does not cause an error + # see issue gh-15776 and issue gh-15256 + assert_equal(np.einsum('i,j', [1], [2], out=None), [[2]]) + + def test_object_loop(self): + + class Mult: + def __mul__(self, other): + return 42 + + objMult = np.array([Mult()]) + objNULL = np.ndarray(buffer = b'\0' * np.intp(0).itemsize, shape=1, dtype=object) + + with pytest.raises(TypeError): + np.einsum("i,j", [1], objNULL) + with pytest.raises(TypeError): + np.einsum("i,j", objNULL, [1]) + assert np.einsum("i,j", objMult, objMult) == 42 + + def test_subscript_range(self): + # Issue #7741, make sure that all letters of Latin alphabet (both uppercase & lowercase) can be used + # when creating a subscript from arrays + a = np.ones((2, 3)) + b = np.ones((3, 4)) + np.einsum(a, [0, 20], b, [20, 2], [0, 2], optimize=False) + np.einsum(a, [0, 27], b, [27, 2], [0, 2], optimize=False) + np.einsum(a, [0, 51], b, [51, 2], [0, 2], optimize=False) + assert_raises(ValueError, lambda: np.einsum(a, [0, 52], b, [52, 2], [0, 2], optimize=False)) + assert_raises(ValueError, lambda: np.einsum(a, [-1, 5], b, [5, 2], [-1, 2], optimize=False)) + + def test_einsum_broadcast(self): + # Issue #2455 change in handling ellipsis + # remove the 'middle broadcast' error + # only use the 'RIGHT' iteration in prepare_op_axes + # adds auto broadcast on left where it belongs + # broadcast on right has to be explicit + # We need to test the optimized parsing as well + + A = np.arange(2 * 3 * 4).reshape(2, 3, 4) + B = np.arange(3) + ref = np.einsum('ijk,j->ijk', A, B, optimize=False) + for opt in [True, False]: + assert_equal(np.einsum('ij...,j...->ij...', A, B, optimize=opt), ref) + assert_equal(np.einsum('ij...,...j->ij...', A, B, optimize=opt), ref) + assert_equal(np.einsum('ij...,j->ij...', A, B, optimize=opt), ref) # used to raise error + + A = np.arange(12).reshape((4, 3)) + B = np.arange(6).reshape((3, 2)) + ref = np.einsum('ik,kj->ij', A, B, optimize=False) + for opt in [True, False]: + assert_equal(np.einsum('ik...,k...->i...', A, B, optimize=opt), ref) + assert_equal(np.einsum('ik...,...kj->i...j', A, B, optimize=opt), ref) + assert_equal(np.einsum('...k,kj', A, B, optimize=opt), ref) # used to raise error + assert_equal(np.einsum('ik,k...->i...', A, B, optimize=opt), ref) # used to raise error + + dims = [2, 3, 4, 5] + a = np.arange(np.prod(dims)).reshape(dims) + v = np.arange(dims[2]) + ref = np.einsum('ijkl,k->ijl', a, v, optimize=False) + for opt in [True, False]: + assert_equal(np.einsum('ijkl,k', a, v, optimize=opt), ref) + assert_equal(np.einsum('...kl,k', a, v, optimize=opt), ref) # used to raise error + assert_equal(np.einsum('...kl,k...', a, v, optimize=opt), ref) + + J, K, M = 160, 160, 120 + A = np.arange(J * K * M).reshape(1, 1, 1, J, K, M) + B = np.arange(J * K * M * 3).reshape(J, K, M, 3) + ref = np.einsum('...lmn,...lmno->...o', A, B, optimize=False) + for opt in [True, False]: + assert_equal(np.einsum('...lmn,lmno->...o', A, B, + optimize=opt), ref) # used to raise error + + def test_einsum_fixedstridebug(self): + # Issue #4485 obscure einsum bug + # This case revealed a bug in nditer where it reported a stride + # as 'fixed' (0) when it was in fact not fixed during processing + # (0 or 4). The reason for the bug was that the check for a fixed + # stride was using the information from the 2D inner loop reuse + # to restrict the iteration dimensions it had to validate to be + # the same, but that 2D inner loop reuse logic is only triggered + # during the buffer copying step, and hence it was invalid to + # rely on those values. The fix is to check all the dimensions + # of the stride in question, which in the test case reveals that + # the stride is not fixed. + # + # NOTE: This test is triggered by the fact that the default buffersize, + # used by einsum, is 8192, and 3*2731 = 8193, is larger than that + # and results in a mismatch between the buffering and the + # striding for operand A. + A = np.arange(2 * 3).reshape(2, 3).astype(np.float32) + B = np.arange(2 * 3 * 2731).reshape(2, 3, 2731).astype(np.int16) + es = np.einsum('cl, cpx->lpx', A, B) + tp = np.tensordot(A, B, axes=(0, 0)) + assert_equal(es, tp) + # The following is the original test case from the bug report, + # made repeatable by changing random arrays to aranges. + A = np.arange(3 * 3).reshape(3, 3).astype(np.float64) + B = np.arange(3 * 3 * 64 * 64).reshape(3, 3, 64, 64).astype(np.float32) + es = np.einsum('cl, cpxy->lpxy', A, B) + tp = np.tensordot(A, B, axes=(0, 0)) + assert_equal(es, tp) + + def test_einsum_fixed_collapsingbug(self): + # Issue #5147. + # The bug only occurred when output argument of einssum was used. + x = np.random.normal(0, 1, (5, 5, 5, 5)) + y1 = np.zeros((5, 5)) + np.einsum('aabb->ab', x, out=y1) + idx = np.arange(5) + y2 = x[idx[:, None], idx[:, None], idx, idx] + assert_equal(y1, y2) + + def test_einsum_failed_on_p9_and_s390x(self): + # Issues gh-14692 and gh-12689 + # Bug with signed vs unsigned char errored on power9 and s390x Linux + tensor = np.random.random_sample((10, 10, 10, 10)) + x = np.einsum('ijij->', tensor) + y = tensor.trace(axis1=0, axis2=2).trace() + assert_allclose(x, y) + + def test_einsum_all_contig_non_contig_output(self): + # Issue gh-5907, tests that the all contiguous special case + # actually checks the contiguity of the output + x = np.ones((5, 5)) + out = np.ones(10)[::2] + correct_base = np.ones(10) + correct_base[::2] = 5 + # Always worked (inner iteration is done with 0-stride): + np.einsum('mi,mi,mi->m', x, x, x, out=out) + assert_array_equal(out.base, correct_base) + # Example 1: + out = np.ones(10)[::2] + np.einsum('im,im,im->m', x, x, x, out=out) + assert_array_equal(out.base, correct_base) + # Example 2, buffering causes x to be contiguous but + # special cases do not catch the operation before: + out = np.ones((2, 2, 2))[..., 0] + correct_base = np.ones((2, 2, 2)) + correct_base[..., 0] = 2 + x = np.ones((2, 2), np.float32) + np.einsum('ij,jk->ik', x, x, out=out) + assert_array_equal(out.base, correct_base) + + @pytest.mark.parametrize("dtype", + np.typecodes["AllFloat"] + np.typecodes["AllInteger"]) + def test_different_paths(self, dtype): + # Test originally added to cover broken float16 path: gh-20305 + # Likely most are covered elsewhere, at least partially. + dtype = np.dtype(dtype) + # Simple test, designed to exercise most specialized code paths, + # note the +0.5 for floats. This makes sure we use a float value + # where the results must be exact. + arr = (np.arange(7) + 0.5).astype(dtype) + scalar = np.array(2, dtype=dtype) + + # contig -> scalar: + res = np.einsum('i->', arr) + assert res == arr.sum() + # contig, contig -> contig: + res = np.einsum('i,i->i', arr, arr) + assert_array_equal(res, arr * arr) + # noncontig, noncontig -> contig: + res = np.einsum('i,i->i', arr.repeat(2)[::2], arr.repeat(2)[::2]) + assert_array_equal(res, arr * arr) + # contig + contig -> scalar + assert np.einsum('i,i->', arr, arr) == (arr * arr).sum() + # contig + scalar -> contig (with out) + out = np.ones(7, dtype=dtype) + res = np.einsum('i,->i', arr, dtype.type(2), out=out) + assert_array_equal(res, arr * dtype.type(2)) + # scalar + contig -> contig (with out) + res = np.einsum(',i->i', scalar, arr) + assert_array_equal(res, arr * dtype.type(2)) + # scalar + contig -> scalar + res = np.einsum(',i->', scalar, arr) + # Use einsum to compare to not have difference due to sum round-offs: + assert res == np.einsum('i->', scalar * arr) + # contig + scalar -> scalar + res = np.einsum('i,->', arr, scalar) + # Use einsum to compare to not have difference due to sum round-offs: + assert res == np.einsum('i->', scalar * arr) + # contig + contig + contig -> scalar + arr = np.array([0.5, 0.5, 0.25, 4.5, 3.], dtype=dtype) + res = np.einsum('i,i,i->', arr, arr, arr) + assert_array_equal(res, (arr * arr * arr).sum()) + # four arrays: + res = np.einsum('i,i,i,i->', arr, arr, arr, arr) + assert_array_equal(res, (arr * arr * arr * arr).sum()) + + def test_small_boolean_arrays(self): + # See gh-5946. + # Use array of True embedded in False. + a = np.zeros((16, 1, 1), dtype=np.bool_)[:2] + a[...] = True + out = np.zeros((16, 1, 1), dtype=np.bool_)[:2] + tgt = np.ones((2, 1, 1), dtype=np.bool_) + res = np.einsum('...ij,...jk->...ik', a, a, out=out) + assert_equal(res, tgt) + + def test_out_is_res(self): + a = np.arange(9).reshape(3, 3) + res = np.einsum('...ij,...jk->...ik', a, a, out=a) + assert res is a + + def optimize_compare(self, subscripts, operands=None): + # Tests all paths of the optimization function against + # conventional einsum + if operands is None: + args = [subscripts] + terms = subscripts.split('->')[0].split(',') + for term in terms: + dims = [global_size_dict[x] for x in term] + args.append(np.random.rand(*dims)) + else: + args = [subscripts] + operands + + noopt = np.einsum(*args, optimize=False) + opt = np.einsum(*args, optimize='greedy') + assert_almost_equal(opt, noopt) + opt = np.einsum(*args, optimize='optimal') + assert_almost_equal(opt, noopt) + + def test_hadamard_like_products(self): + # Hadamard outer products + self.optimize_compare('a,ab,abc->abc') + self.optimize_compare('a,b,ab->ab') + + def test_index_transformations(self): + # Simple index transformation cases + self.optimize_compare('ea,fb,gc,hd,abcd->efgh') + self.optimize_compare('ea,fb,abcd,gc,hd->efgh') + self.optimize_compare('abcd,ea,fb,gc,hd->efgh') + + def test_complex(self): + # Long test cases + self.optimize_compare('acdf,jbje,gihb,hfac,gfac,gifabc,hfac') + self.optimize_compare('acdf,jbje,gihb,hfac,gfac,gifabc,hfac') + self.optimize_compare('cd,bdhe,aidb,hgca,gc,hgibcd,hgac') + self.optimize_compare('abhe,hidj,jgba,hiab,gab') + self.optimize_compare('bde,cdh,agdb,hica,ibd,hgicd,hiac') + self.optimize_compare('chd,bde,agbc,hiad,hgc,hgi,hiad') + self.optimize_compare('chd,bde,agbc,hiad,bdi,cgh,agdb') + self.optimize_compare('bdhe,acad,hiab,agac,hibd') + + def test_collapse(self): + # Inner products + self.optimize_compare('ab,ab,c->') + self.optimize_compare('ab,ab,c->c') + self.optimize_compare('ab,ab,cd,cd->') + self.optimize_compare('ab,ab,cd,cd->ac') + self.optimize_compare('ab,ab,cd,cd->cd') + self.optimize_compare('ab,ab,cd,cd,ef,ef->') + + def test_expand(self): + # Outer products + self.optimize_compare('ab,cd,ef->abcdef') + self.optimize_compare('ab,cd,ef->acdf') + self.optimize_compare('ab,cd,de->abcde') + self.optimize_compare('ab,cd,de->be') + self.optimize_compare('ab,bcd,cd->abcd') + self.optimize_compare('ab,bcd,cd->abd') + + def test_edge_cases(self): + # Difficult edge cases for optimization + self.optimize_compare('eb,cb,fb->cef') + self.optimize_compare('dd,fb,be,cdb->cef') + self.optimize_compare('bca,cdb,dbf,afc->') + self.optimize_compare('dcc,fce,ea,dbf->ab') + self.optimize_compare('fdf,cdd,ccd,afe->ae') + self.optimize_compare('abcd,ad') + self.optimize_compare('ed,fcd,ff,bcf->be') + self.optimize_compare('baa,dcf,af,cde->be') + self.optimize_compare('bd,db,eac->ace') + self.optimize_compare('fff,fae,bef,def->abd') + self.optimize_compare('efc,dbc,acf,fd->abe') + self.optimize_compare('ba,ac,da->bcd') + + def test_inner_product(self): + # Inner products + self.optimize_compare('ab,ab') + self.optimize_compare('ab,ba') + self.optimize_compare('abc,abc') + self.optimize_compare('abc,bac') + self.optimize_compare('abc,cba') + + def test_random_cases(self): + # Randomly built test cases + self.optimize_compare('aab,fa,df,ecc->bde') + self.optimize_compare('ecb,fef,bad,ed->ac') + self.optimize_compare('bcf,bbb,fbf,fc->') + self.optimize_compare('bb,ff,be->e') + self.optimize_compare('bcb,bb,fc,fff->') + self.optimize_compare('fbb,dfd,fc,fc->') + self.optimize_compare('afd,ba,cc,dc->bf') + self.optimize_compare('adb,bc,fa,cfc->d') + self.optimize_compare('bbd,bda,fc,db->acf') + self.optimize_compare('dba,ead,cad->bce') + self.optimize_compare('aef,fbc,dca->bde') + + def test_combined_views_mapping(self): + # gh-10792 + a = np.arange(9).reshape(1, 1, 3, 1, 3) + b = np.einsum('bbcdc->d', a) + assert_equal(b, [12]) + + def test_broadcasting_dot_cases(self): + # Ensures broadcasting cases are not mistaken for GEMM + + a = np.random.rand(1, 5, 4) + b = np.random.rand(4, 6) + c = np.random.rand(5, 6) + d = np.random.rand(10) + + self.optimize_compare('ijk,kl,jl', operands=[a, b, c]) + self.optimize_compare('ijk,kl,jl,i->i', operands=[a, b, c, d]) + + e = np.random.rand(1, 1, 5, 4) + f = np.random.rand(7, 7) + self.optimize_compare('abjk,kl,jl', operands=[e, b, c]) + self.optimize_compare('abjk,kl,jl,ab->ab', operands=[e, b, c, f]) + + # Edge case found in gh-11308 + g = np.arange(64).reshape(2, 4, 8) + self.optimize_compare('obk,ijk->ioj', operands=[g, g]) + + def test_output_order(self): + # Ensure output order is respected for optimize cases, the below + # conraction should yield a reshaped tensor view + # gh-16415 + + a = np.ones((2, 3, 5), order='F') + b = np.ones((4, 3), order='F') + + for opt in [True, False]: + tmp = np.einsum('...ft,mf->...mt', a, b, order='a', optimize=opt) + assert_(tmp.flags.f_contiguous) + + tmp = np.einsum('...ft,mf->...mt', a, b, order='f', optimize=opt) + assert_(tmp.flags.f_contiguous) + + tmp = np.einsum('...ft,mf->...mt', a, b, order='c', optimize=opt) + assert_(tmp.flags.c_contiguous) + + tmp = np.einsum('...ft,mf->...mt', a, b, order='k', optimize=opt) + assert_(tmp.flags.c_contiguous is False) + assert_(tmp.flags.f_contiguous is False) + + tmp = np.einsum('...ft,mf->...mt', a, b, optimize=opt) + assert_(tmp.flags.c_contiguous is False) + assert_(tmp.flags.f_contiguous is False) + + c = np.ones((4, 3), order='C') + for opt in [True, False]: + tmp = np.einsum('...ft,mf->...mt', a, c, order='a', optimize=opt) + assert_(tmp.flags.c_contiguous) + + d = np.ones((2, 3, 5), order='C') + for opt in [True, False]: + tmp = np.einsum('...ft,mf->...mt', d, c, order='a', optimize=opt) + assert_(tmp.flags.c_contiguous) + +class TestEinsumPath: + def build_operands(self, string, size_dict=global_size_dict): + + # Builds views based off initial operands + operands = [string] + terms = string.split('->')[0].split(',') + for term in terms: + dims = [size_dict[x] for x in term] + operands.append(np.random.rand(*dims)) + + return operands + + def assert_path_equal(self, comp, benchmark): + # Checks if list of tuples are equivalent + ret = (len(comp) == len(benchmark)) + assert_(ret) + for pos in range(len(comp) - 1): + ret &= isinstance(comp[pos + 1], tuple) + ret &= (comp[pos + 1] == benchmark[pos + 1]) + assert_(ret) + + def test_memory_contraints(self): + # Ensure memory constraints are satisfied + + outer_test = self.build_operands('a,b,c->abc') + + path, path_str = np.einsum_path(*outer_test, optimize=('greedy', 0)) + self.assert_path_equal(path, ['einsum_path', (0, 1, 2)]) + + path, path_str = np.einsum_path(*outer_test, optimize=('optimal', 0)) + self.assert_path_equal(path, ['einsum_path', (0, 1, 2)]) + + long_test = self.build_operands('acdf,jbje,gihb,hfac') + path, path_str = np.einsum_path(*long_test, optimize=('greedy', 0)) + self.assert_path_equal(path, ['einsum_path', (0, 1, 2, 3)]) + + path, path_str = np.einsum_path(*long_test, optimize=('optimal', 0)) + self.assert_path_equal(path, ['einsum_path', (0, 1, 2, 3)]) + + def test_long_paths(self): + # Long complex cases + + # Long test 1 + long_test1 = self.build_operands('acdf,jbje,gihb,hfac,gfac,gifabc,hfac') + path, path_str = np.einsum_path(*long_test1, optimize='greedy') + self.assert_path_equal(path, ['einsum_path', + (3, 6), (3, 4), (2, 4), (2, 3), (0, 2), (0, 1)]) + + path, path_str = np.einsum_path(*long_test1, optimize='optimal') + self.assert_path_equal(path, ['einsum_path', + (3, 6), (3, 4), (2, 4), (2, 3), (0, 2), (0, 1)]) + + # Long test 2 + long_test2 = self.build_operands('chd,bde,agbc,hiad,bdi,cgh,agdb') + path, path_str = np.einsum_path(*long_test2, optimize='greedy') + self.assert_path_equal(path, ['einsum_path', + (3, 4), (0, 3), (3, 4), (1, 3), (1, 2), (0, 1)]) + + path, path_str = np.einsum_path(*long_test2, optimize='optimal') + self.assert_path_equal(path, ['einsum_path', + (0, 5), (1, 4), (3, 4), (1, 3), (1, 2), (0, 1)]) + + def test_edge_paths(self): + # Difficult edge cases + + # Edge test1 + edge_test1 = self.build_operands('eb,cb,fb->cef') + path, path_str = np.einsum_path(*edge_test1, optimize='greedy') + self.assert_path_equal(path, ['einsum_path', (0, 2), (0, 1)]) + + path, path_str = np.einsum_path(*edge_test1, optimize='optimal') + self.assert_path_equal(path, ['einsum_path', (0, 2), (0, 1)]) + + # Edge test2 + edge_test2 = self.build_operands('dd,fb,be,cdb->cef') + path, path_str = np.einsum_path(*edge_test2, optimize='greedy') + self.assert_path_equal(path, ['einsum_path', (0, 3), (0, 1), (0, 1)]) + + path, path_str = np.einsum_path(*edge_test2, optimize='optimal') + self.assert_path_equal(path, ['einsum_path', (0, 3), (0, 1), (0, 1)]) + + # Edge test3 + edge_test3 = self.build_operands('bca,cdb,dbf,afc->') + path, path_str = np.einsum_path(*edge_test3, optimize='greedy') + self.assert_path_equal(path, ['einsum_path', (1, 2), (0, 2), (0, 1)]) + + path, path_str = np.einsum_path(*edge_test3, optimize='optimal') + self.assert_path_equal(path, ['einsum_path', (1, 2), (0, 2), (0, 1)]) + + # Edge test4 + edge_test4 = self.build_operands('dcc,fce,ea,dbf->ab') + path, path_str = np.einsum_path(*edge_test4, optimize='greedy') + self.assert_path_equal(path, ['einsum_path', (1, 2), (0, 1), (0, 1)]) + + path, path_str = np.einsum_path(*edge_test4, optimize='optimal') + self.assert_path_equal(path, ['einsum_path', (1, 2), (0, 2), (0, 1)]) + + # Edge test5 + edge_test4 = self.build_operands('a,ac,ab,ad,cd,bd,bc->', + size_dict={"a": 20, "b": 20, "c": 20, "d": 20}) + path, path_str = np.einsum_path(*edge_test4, optimize='greedy') + self.assert_path_equal(path, ['einsum_path', (0, 1), (0, 1, 2, 3, 4, 5)]) + + path, path_str = np.einsum_path(*edge_test4, optimize='optimal') + self.assert_path_equal(path, ['einsum_path', (0, 1), (0, 1, 2, 3, 4, 5)]) + + def test_path_type_input(self): + # Test explicit path handling + path_test = self.build_operands('dcc,fce,ea,dbf->ab') + + path, path_str = np.einsum_path(*path_test, optimize=False) + self.assert_path_equal(path, ['einsum_path', (0, 1, 2, 3)]) + + path, path_str = np.einsum_path(*path_test, optimize=True) + self.assert_path_equal(path, ['einsum_path', (1, 2), (0, 1), (0, 1)]) + + exp_path = ['einsum_path', (0, 2), (0, 2), (0, 1)] + path, path_str = np.einsum_path(*path_test, optimize=exp_path) + self.assert_path_equal(path, exp_path) + + # Double check einsum works on the input path + noopt = np.einsum(*path_test, optimize=False) + opt = np.einsum(*path_test, optimize=exp_path) + assert_almost_equal(noopt, opt) + + def test_path_type_input_internal_trace(self): + #gh-20962 + path_test = self.build_operands('cab,cdd->ab') + exp_path = ['einsum_path', (1,), (0, 1)] + + path, path_str = np.einsum_path(*path_test, optimize=exp_path) + self.assert_path_equal(path, exp_path) + + # Double check einsum works on the input path + noopt = np.einsum(*path_test, optimize=False) + opt = np.einsum(*path_test, optimize=exp_path) + assert_almost_equal(noopt, opt) + + def test_path_type_input_invalid(self): + path_test = self.build_operands('ab,bc,cd,de->ae') + exp_path = ['einsum_path', (2, 3), (0, 1)] + assert_raises(RuntimeError, np.einsum, *path_test, optimize=exp_path) + assert_raises( + RuntimeError, np.einsum_path, *path_test, optimize=exp_path) + + path_test = self.build_operands('a,a,a->a') + exp_path = ['einsum_path', (1,), (0, 1)] + assert_raises(RuntimeError, np.einsum, *path_test, optimize=exp_path) + assert_raises( + RuntimeError, np.einsum_path, *path_test, optimize=exp_path) + + def test_spaces(self): + #gh-10794 + arr = np.array([[1]]) + for sp in itertools.product(['', ' '], repeat=4): + # no error for any spacing + np.einsum('{}...a{}->{}...a{}'.format(*sp), arr) + +def test_overlap(): + a = np.arange(9, dtype=int).reshape(3, 3) + b = np.arange(9, dtype=int).reshape(3, 3) + d = np.dot(a, b) + # sanity check + c = np.einsum('ij,jk->ik', a, b) + assert_equal(c, d) + #gh-10080, out overlaps one of the operands + c = np.einsum('ij,jk->ik', a, b, out=b) + assert_equal(c, d) diff --git a/shared/package-files/43/4338c1aef91147bfc194833b7f3cd078105b0e8d2de261edb49d52610838d168/p2g.py b/shared/package-files/43/4338c1aef91147bfc194833b7f3cd078105b0e8d2de261edb49d52610838d168/p2g.py new file mode 100644 index 0000000000000000000000000000000000000000..6e23812bf276959533844a8d962de9a27c1fdec8 --- /dev/null +++ b/shared/package-files/43/4338c1aef91147bfc194833b7f3cd078105b0e8d2de261edb49d52610838d168/p2g.py @@ -0,0 +1,102 @@ +""" +This module provides the following: read and write of p2g format +used in metabolic pathway studies. + +See https://web.archive.org/web/20080626113807/http://www.cs.purdue.edu/homes/koyuturk/pathway/ for a description. + +The summary is included here: + +A file that describes a uniquely labeled graph (with extension ".gr") +format looks like the following: + + +name +3 4 +a +1 2 +b + +c +0 2 + +"name" is simply a description of what the graph corresponds to. The +second line displays the number of nodes and number of edges, +respectively. This sample graph contains three nodes labeled "a", "b", +and "c". The rest of the graph contains two lines for each node. The +first line for a node contains the node label. After the declaration +of the node label, the out-edges of that node in the graph are +provided. For instance, "a" is linked to nodes 1 and 2, which are +labeled "b" and "c", while the node labeled "b" has no outgoing +edges. Observe that node labeled "c" has an outgoing edge to +itself. Indeed, self-loops are allowed. Node index starts from 0. + +""" +import networkx +from networkx.utils import open_file + + +@open_file(1, mode="w") +def write_p2g(G, path, encoding="utf-8"): + """Write NetworkX graph in p2g format. + + Notes + ----- + This format is meant to be used with directed graphs with + possible self loops. + """ + path.write((f"{G.name}\n").encode(encoding)) + path.write((f"{G.order()} {G.size()}\n").encode(encoding)) + nodes = list(G) + # make dictionary mapping nodes to integers + nodenumber = dict(zip(nodes, range(len(nodes)))) + for n in nodes: + path.write((f"{n}\n").encode(encoding)) + for nbr in G.neighbors(n): + path.write((f"{nodenumber[nbr]} ").encode(encoding)) + path.write("\n".encode(encoding)) + + +@open_file(0, mode="r") +def read_p2g(path, encoding="utf-8"): + """Read graph in p2g format from path. + + Returns + ------- + MultiDiGraph + + Notes + ----- + If you want a DiGraph (with no self loops allowed and no edge data) + use D=networkx.DiGraph(read_p2g(path)) + """ + lines = (line.decode(encoding) for line in path) + G = parse_p2g(lines) + return G + + +def parse_p2g(lines): + """Parse p2g format graph from string or iterable. + + Returns + ------- + MultiDiGraph + """ + description = next(lines).strip() + # are multiedges (parallel edges) allowed? + G = networkx.MultiDiGraph(name=description, selfloops=True) + nnodes, nedges = map(int, next(lines).split()) + nodelabel = {} + nbrs = {} + # loop over the nodes keeping track of node labels and out neighbors + # defer adding edges until all node labels are known + for i in range(nnodes): + n = next(lines).strip() + nodelabel[i] = n + G.add_node(n) + nbrs[n] = map(int, next(lines).split()) + # now we know all of the node labels so we can add the edges + # with the correct labels + for n in G: + for nbr in nbrs[n]: + G.add_edge(n, nodelabel[nbr]) + return G diff --git a/shared/package-files/43/433c589e472f3494bf0124daf171a87bc34d369f0b5fc5ae695aac4266c9e4e0/_addmm_activation_cpu_dispatch.h b/shared/package-files/43/433c589e472f3494bf0124daf171a87bc34d369f0b5fc5ae695aac4266c9e4e0/_addmm_activation_cpu_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..de606b9fbf58001178e402e172dc46edb2436b47 --- /dev/null +++ b/shared/package-files/43/433c589e472f3494bf0124daf171a87bc34d369f0b5fc5ae695aac4266c9e4e0/_addmm_activation_cpu_dispatch.h @@ -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 _addmm_activation(const at::Tensor & self, const at::Tensor & mat1, const at::Tensor & mat2, const at::Scalar & beta=1, const at::Scalar & alpha=1, bool use_gelu=false); +TORCH_API at::Tensor & _addmm_activation_out(at::Tensor & out, const at::Tensor & self, const at::Tensor & mat1, const at::Tensor & mat2, const at::Scalar & beta=1, const at::Scalar & alpha=1, bool use_gelu=false); +TORCH_API at::Tensor & _addmm_activation_outf(const at::Tensor & self, const at::Tensor & mat1, const at::Tensor & mat2, const at::Scalar & beta, const at::Scalar & alpha, bool use_gelu, at::Tensor & out); + +} // namespace cpu +} // namespace at diff --git a/shared/package-files/43/434096829406e7330fc707342ceaf97903847e63aa8257e9c9d3df055c624ad7/response.pyi b/shared/package-files/43/434096829406e7330fc707342ceaf97903847e63aa8257e9c9d3df055c624ad7/response.pyi new file mode 100644 index 0000000000000000000000000000000000000000..30463da4e4de705df72619ca186997e44e17dfa2 --- /dev/null +++ b/shared/package-files/43/434096829406e7330fc707342ceaf97903847e63aa8257e9c9d3df055c624ad7/response.pyi @@ -0,0 +1 @@ +def is_fp_closed(obj): ... diff --git a/shared/package-files/43/43421286ad234a4240f8d4bc09f67bb58da0bf9d9b07bf93010989ef2c17f2f8/template.py b/shared/package-files/43/43421286ad234a4240f8d4bc09f67bb58da0bf9d9b07bf93010989ef2c17f2f8/template.py new file mode 100644 index 0000000000000000000000000000000000000000..725a55b9c47230c32c63b3e6cd036f0319173046 --- /dev/null +++ b/shared/package-files/43/43421286ad234a4240f8d4bc09f67bb58da0bf9d9b07bf93010989ef2c17f2f8/template.py @@ -0,0 +1,30 @@ +"Test , coverage %." + +from idlelib import zzdummy +import unittest +from test.support import requires +from tkinter import Tk + + +class Test(unittest.TestCase): + + @classmethod + def setUpClass(cls): + requires('gui') + cls.root = Tk() + cls.root.withdraw() + + @classmethod + def tearDownClass(cls): + cls.root.update_idletasks() +## for id in cls.root.tk.call('after', 'info'): +## cls.root.after_cancel(id) # Need for EditorWindow. + cls.root.destroy() + del cls.root + + def test_init(self): + self.assertTrue(True) + + +if __name__ == '__main__': + unittest.main(verbosity=2) diff --git a/shared/package-files/43/4343151fbedc5015ccb4a5740f67fc4b27fdd2b7a63ded047cba9eebe9ac01e2/util.py b/shared/package-files/43/4343151fbedc5015ccb4a5740f67fc4b27fdd2b7a63ded047cba9eebe9ac01e2/util.py new file mode 100644 index 0000000000000000000000000000000000000000..9b2e64df22bd3c9259af5273b412d356d6d889c1 --- /dev/null +++ b/shared/package-files/43/4343151fbedc5015ccb4a5740f67fc4b27fdd2b7a63ded047cba9eebe9ac01e2/util.py @@ -0,0 +1,117 @@ +"""Utility.""" +from __future__ import annotations +from functools import wraps, lru_cache +import warnings +import re +from typing import Callable, Any + +DEBUG = 0x00001 + +RE_PATTERN_LINE_SPLIT = re.compile(r'(?:\r\n|(?!\r\n)[\n\r])|$') + +UC_A = ord('A') +UC_Z = ord('Z') + + +@lru_cache(maxsize=512) +def lower(string: str) -> str: + """Lower.""" + + new_string = [] + for c in string: + o = ord(c) + new_string.append(chr(o + 32) if UC_A <= o <= UC_Z else c) + return ''.join(new_string) + + +class SelectorSyntaxError(Exception): + """Syntax error in a CSS selector.""" + + def __init__(self, msg: str, pattern: str | None = None, index: int | None = None) -> None: + """Initialize.""" + + self.line = None + self.col = None + self.context = None + + if pattern is not None and index is not None: + # Format pattern to show line and column position + self.context, self.line, self.col = get_pattern_context(pattern, index) + msg = f'{msg}\n line {self.line}:\n{self.context}' + + super().__init__(msg) + + +def deprecated(message: str, stacklevel: int = 2) -> Callable[..., Any]: # pragma: no cover + """ + Raise a `DeprecationWarning` when wrapped function/method is called. + + Usage: + + @deprecated("This method will be removed in version X; use Y instead.") + def some_method()" + pass + """ + + def _wrapper(func: Callable[..., Any]) -> Callable[..., Any]: + @wraps(func) + def _deprecated_func(*args: Any, **kwargs: Any) -> Any: + warnings.warn( + f"'{func.__name__}' is deprecated. {message}", + category=DeprecationWarning, + stacklevel=stacklevel + ) + return func(*args, **kwargs) + return _deprecated_func + return _wrapper + + +def warn_deprecated(message: str, stacklevel: int = 2) -> None: # pragma: no cover + """Warn deprecated.""" + + warnings.warn( + message, + category=DeprecationWarning, + stacklevel=stacklevel + ) + + +def get_pattern_context(pattern: str, index: int) -> tuple[str, int, int]: + """Get the pattern context.""" + + last = 0 + current_line = 1 + col = 1 + text = [] # type: list[str] + line = 1 + offset = None # type: int | None + + # Split pattern by newline and handle the text before the newline + for m in RE_PATTERN_LINE_SPLIT.finditer(pattern): + linetext = pattern[last:m.start(0)] + if not len(m.group(0)) and not len(text): + indent = '' + offset = -1 + col = index - last + 1 + elif last <= index < m.end(0): + indent = '--> ' + offset = (-1 if index > m.start(0) else 0) + 3 + col = index - last + 1 + else: + indent = ' ' + offset = None + if len(text): + # Regardless of whether we are presented with `\r\n`, `\r`, or `\n`, + # we will render the output with just `\n`. We will still log the column + # correctly though. + text.append('\n') + text.append(f'{indent}{linetext}') + if offset is not None: + text.append('\n') + text.append(' ' * (col + offset) + '^') + line = current_line + + current_line += 1 + last = m.end(0) + + return ''.join(text), line, col diff --git a/shared/package-files/43/43455392e64315bf29a808669fc4ab06175ff703465e14728a52dc6fb9ec673a/floor_meta_dispatch.h b/shared/package-files/43/43455392e64315bf29a808669fc4ab06175ff703465e14728a52dc6fb9ec673a/floor_meta_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..058fdbb796fc12e1238b3a76ade4575504b0f0f0 --- /dev/null +++ b/shared/package-files/43/43455392e64315bf29a808669fc4ab06175ff703465e14728a52dc6fb9ec673a/floor_meta_dispatch.h @@ -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 floor(const at::Tensor & self); +TORCH_API at::Tensor & floor_out(at::Tensor & out, const at::Tensor & self); +TORCH_API at::Tensor & floor_outf(const at::Tensor & self, at::Tensor & out); +TORCH_API at::Tensor & floor_(at::Tensor & self); + +} // namespace meta +} // namespace at diff --git a/shared/package-files/43/43468b24c718f10346d5b61b54b90a50fb97417dc4f9fa2a39fd58b979f5ba60/triu_indices_compositeexplicitautograd_dispatch.h b/shared/package-files/43/43468b24c718f10346d5b61b54b90a50fb97417dc4f9fa2a39fd58b979f5ba60/triu_indices_compositeexplicitautograd_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..4f8b922fd1a2d4b97b8322328461c2b5dd528dcc --- /dev/null +++ b/shared/package-files/43/43468b24c718f10346d5b61b54b90a50fb97417dc4f9fa2a39fd58b979f5ba60/triu_indices_compositeexplicitautograd_dispatch.h @@ -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 compositeexplicitautograd { + +TORCH_API at::Tensor & triu_indices_out(at::Tensor & out, int64_t row, int64_t col, int64_t offset=0); +TORCH_API at::Tensor & triu_indices_outf(int64_t row, int64_t col, int64_t offset, at::Tensor & out); + +} // namespace compositeexplicitautograd +} // namespace at diff --git a/shared/package-files/43/4347103a34515e5a5989ec49fc4ea8fe142e0daecf73feb1e28dc1ce097046db/cli.py b/shared/package-files/43/4347103a34515e5a5989ec49fc4ea8fe142e0daecf73feb1e28dc1ce097046db/cli.py new file mode 100644 index 0000000000000000000000000000000000000000..e5cff27878114cfd50192a97d2efdc7bed7228a0 --- /dev/null +++ b/shared/package-files/43/4347103a34515e5a5989ec49fc4ea8fe142e0daecf73feb1e28dc1ce097046db/cli.py @@ -0,0 +1,141 @@ +import argparse +import os +import sys +from pprint import pprint + +from . import __version__, api + + +def parse_args(parse_this=None): + parser = build_parser() + return parser.parse_args(parse_this) + + +def build_parser(): + parser = argparse.ArgumentParser() + parser.add_argument( + "-V", + "--version", + action="version", + help="Show the conda-package-handling version number and exit.", + version=f"conda-package-handling {__version__}", + ) + sp = parser.add_subparsers(title="subcommands", dest="subcommand", required=True) + + extract_parser = sp.add_parser("extract", help="extract package contents", aliases=["x"]) + extract_parser.add_argument("archive_path", help="path to archive to extract") + extract_parser.add_argument( + "--dest", + help="destination folder to extract to. If not set, defaults to" + " package filename minus extension in the same folder as the input archive." + " May be relative path used in tandem with the --prefix flag.", + ) + extract_parser.add_argument( + "--prefix", + help="base directory to extract to. Use this to set the base" + " directory, while allowing the folder name to be automatically determined " + "by the input filename. An abspath --prefix with an unset --dest will " + "achieve this.", + ) + extract_parser.add_argument( + "--info", + help="If the archive supports separate metadata, this" + " flag extracts only the metadata in the info folder from the " + "package. If the archive does not support separate metadata, this " + "flag has no effect and all files are extracted.", + action="store_true", + ) + + create_parser = sp.add_parser("create", help="bundle files into a package", aliases=["c"]) + create_parser.add_argument( + "prefix", + help="folder of files to bundle. Not strictly required to" + " have conda package metadata, but if conda package metadata isn't " + "present, you'll see a warning and your file will not work as a " + "conda package", + ) + create_parser.add_argument( + "out_fn", + help="Filename of archive to be created. Extension determines package type.", + ) + create_parser.add_argument( + "--file-list", + help="Path to file containing one relative path per" + " line that should be included in the archive. If not provided, " + "lists all files in the prefix.", + ) + create_parser.add_argument("--out-folder", help="Folder to dump final archive to") + + convert_parser = sp.add_parser( + "transmute", help="convert from one package type to another", aliases=["t"] + ) + convert_parser.add_argument( + "in_file", help="existing file to convert from. Glob patterns accepted." + ) + convert_parser.add_argument( + "out_ext", + help="extension of file to convert to. Examples: .tar.bz2, .conda", + ) + convert_parser.add_argument("--out-folder", help="Folder to dump final archive to") + convert_parser.add_argument( + "--force", action="store_true", help="Force overwrite existing package" + ) + convert_parser.add_argument( + "--processes", + type=int, + help="Max number of processes to use. If not set, defaults to 1.", + ) + convert_parser.add_argument( + "--zstd-compression-level", + help=( + "When building v2 packages, set the compression level used by " + "conda-package-handling. Defaults to 19." + ), + type=int, + choices=range(1, 23), + default=19, + ) + convert_parser.add_argument( + "--zstd-compression-threads", + help=( + "When building v2 packages, set the compression threads used by " + "conda-package-handling. Defaults to 1. -1=automatic." + ), + type=int, + default=1, + ) + + return parser + + +def main(args=None): + args = parse_args(args) + if hasattr(args, "out_folder") and args.out_folder: + args.out_folder = ( + os.path.abspath(os.path.normpath(os.path.expanduser(args.out_folder))) + os.sep + ) + if args.subcommand in ("extract", "x"): + if args.info: + api.extract(args.archive_path, args.dest, components="info", prefix=args.prefix) + else: + api.extract(args.archive_path, args.dest, prefix=args.prefix) + elif args.subcommand in ("create", "c"): + api.create(args.prefix, args.file_list, args.out_fn, args.out_folder) + elif args.subcommand in ("transmute", "t"): + failed_files = api.transmute( + args.in_file, + args.out_ext, + args.out_folder, + args.processes or 1, + force=args.force, + zstd_compress_level=args.zstd_compression_level, + zstd_compress_threads=args.zstd_compression_threads, + ) + if failed_files: + print("failed files:") + pprint(failed_files) + sys.exit(1) + + +if __name__ == "__main__": # pragma: no cover + main(args=None) diff --git a/shared/package-files/43/43478e3e3c1982284b64c0a2a217b73580dd38e9b332be9a888e20ebac18c516/_to_sparse_csr_native.h b/shared/package-files/43/43478e3e3c1982284b64c0a2a217b73580dd38e9b332be9a888e20ebac18c516/_to_sparse_csr_native.h new file mode 100644 index 0000000000000000000000000000000000000000..670eff51bdf56c0e2fe9fd64a60f3e4d65020c1f --- /dev/null +++ b/shared/package-files/43/43478e3e3c1982284b64c0a2a217b73580dd38e9b332be9a888e20ebac18c516/_to_sparse_csr_native.h @@ -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 at::Tensor & _to_sparse_csr_out(const at::Tensor & self, c10::optional dense_dim, at::Tensor & out); +TORCH_API at::Tensor dense_to_sparse_csr(const at::Tensor & self, c10::optional dense_dim=c10::nullopt); +TORCH_API at::Tensor coo_to_sparse_csr(const at::Tensor & self, c10::optional dense_dim=c10::nullopt); +TORCH_API at::Tensor sparse_compressed_to_sparse_csr(const at::Tensor & self, c10::optional dense_dim=c10::nullopt); +} // namespace native +} // namespace at diff --git a/shared/package-files/43/4348eb6f8cde0eb77ad5b53857c4ea8cc73421ea7cad667266a274baab2e9f1b/Kosrae b/shared/package-files/43/4348eb6f8cde0eb77ad5b53857c4ea8cc73421ea7cad667266a274baab2e9f1b/Kosrae new file mode 100644 index 0000000000000000000000000000000000000000..0666fb0dd161cb732b29f84d49c49cc985a3559a Binary files /dev/null and b/shared/package-files/43/4348eb6f8cde0eb77ad5b53857c4ea8cc73421ea7cad667266a274baab2e9f1b/Kosrae differ diff --git a/shared/package-files/43/434af71ad039cb644690e8f9e8e4d91b9b6e072d41ea47db872ac9a8281fdbb8/DeNoronha b/shared/package-files/43/434af71ad039cb644690e8f9e8e4d91b9b6e072d41ea47db872ac9a8281fdbb8/DeNoronha new file mode 100644 index 0000000000000000000000000000000000000000..9e74745ca79137918281337fa270c5fec4bd7da1 Binary files /dev/null and b/shared/package-files/43/434af71ad039cb644690e8f9e8e4d91b9b6e072d41ea47db872ac9a8281fdbb8/DeNoronha differ diff --git a/shared/package-files/43/434af71ad039cb644690e8f9e8e4d91b9b6e072d41ea47db872ac9a8281fdbb8/Noronha b/shared/package-files/43/434af71ad039cb644690e8f9e8e4d91b9b6e072d41ea47db872ac9a8281fdbb8/Noronha new file mode 100644 index 0000000000000000000000000000000000000000..9e74745ca79137918281337fa270c5fec4bd7da1 Binary files /dev/null and b/shared/package-files/43/434af71ad039cb644690e8f9e8e4d91b9b6e072d41ea47db872ac9a8281fdbb8/Noronha differ diff --git a/shared/package-files/43/434b323cc23912fb6033e084f985ca3a42fd7855006678ff5f6221a23e91e29e/subplots.pdf b/shared/package-files/43/434b323cc23912fb6033e084f985ca3a42fd7855006678ff5f6221a23e91e29e/subplots.pdf new file mode 100644 index 0000000000000000000000000000000000000000..f404665579a0b1916174203f13f7339a75a347a5 Binary files /dev/null and b/shared/package-files/43/434b323cc23912fb6033e084f985ca3a42fd7855006678ff5f6221a23e91e29e/subplots.pdf differ diff --git a/shared/package-files/43/434fab2b9c1705b6f3bf1e0ca5ff767484cf80becbc23c3cb7808b7e9615d21c/messagebox.pyi b/shared/package-files/43/434fab2b9c1705b6f3bf1e0ca5ff767484cf80becbc23c3cb7808b7e9615d21c/messagebox.pyi new file mode 100644 index 0000000000000000000000000000000000000000..b44e66081fab5c788faf712ec4cece96d2a6db6f --- /dev/null +++ b/shared/package-files/43/434fab2b9c1705b6f3bf1e0ca5ff767484cf80becbc23c3cb7808b7e9615d21c/messagebox.pyi @@ -0,0 +1,31 @@ +from tkinter.commondialog import Dialog +from typing import Any, Optional + +ERROR: str +INFO: str +QUESTION: str +WARNING: str +ABORTRETRYIGNORE: str +OK: str +OKCANCEL: str +RETRYCANCEL: str +YESNO: str +YESNOCANCEL: str +ABORT: str +RETRY: str +IGNORE: str +CANCEL: str +YES: str +NO: str + +class Message(Dialog): + command: str = ... + +def showinfo(title: Optional[str] = ..., message: Optional[str] = ..., **options: Any) -> str: ... +def showwarning(title: Optional[str] = ..., message: Optional[str] = ..., **options: Any) -> str: ... +def showerror(title: Optional[str] = ..., message: Optional[str] = ..., **options: Any) -> str: ... +def askquestion(title: Optional[str] = ..., message: Optional[str] = ..., **options: Any) -> str: ... +def askokcancel(title: Optional[str] = ..., message: Optional[str] = ..., **options: Any) -> bool: ... +def askyesno(title: Optional[str] = ..., message: Optional[str] = ..., **options: Any) -> bool: ... +def askyesnocancel(title: Optional[str] = ..., message: Optional[str] = ..., **options: Any) -> Optional[bool]: ... +def askretrycancel(title: Optional[str] = ..., message: Optional[str] = ..., **options: Any) -> bool: ... diff --git a/shared/package-files/43/43526b09c1f8f6d7854fa767c51a347d0bc323d495e380470a4f6d8c97372e9d/max_pool3d_with_indices_backward_ops.h b/shared/package-files/43/43526b09c1f8f6d7854fa767c51a347d0bc323d495e380470a4f6d8c97372e9d/max_pool3d_with_indices_backward_ops.h new file mode 100644 index 0000000000000000000000000000000000000000..b6227e6152ef9b8743d08c60bb0492a07bf9cf80 --- /dev/null +++ b/shared/package-files/43/43526b09c1f8f6d7854fa767c51a347d0bc323d495e380470a4f6d8c97372e9d/max_pool3d_with_indices_backward_ops.h @@ -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 max_pool3d_with_indices_backward_grad_input { + using schema = at::Tensor & (const at::Tensor &, const at::Tensor &, at::IntArrayRef, at::IntArrayRef, at::IntArrayRef, at::IntArrayRef, bool, 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::max_pool3d_with_indices_backward") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "grad_input") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "max_pool3d_with_indices_backward.grad_input(Tensor grad_output, Tensor self, int[3] kernel_size, int[3] stride, int[3] padding, int[3] dilation, bool ceil_mode, Tensor indices, *, Tensor(a!) grad_input) -> Tensor(a!)") + static at::Tensor & call(const at::Tensor & grad_output, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, bool ceil_mode, const at::Tensor & indices, at::Tensor & grad_input); + static at::Tensor & redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, bool ceil_mode, const at::Tensor & indices, at::Tensor & grad_input); +}; + +struct TORCH_API max_pool3d_with_indices_backward { + using schema = at::Tensor (const at::Tensor &, const at::Tensor &, at::IntArrayRef, at::IntArrayRef, at::IntArrayRef, at::IntArrayRef, 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::max_pool3d_with_indices_backward") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "max_pool3d_with_indices_backward(Tensor grad_output, Tensor self, int[3] kernel_size, int[3] stride, int[3] padding, int[3] dilation, bool ceil_mode, Tensor indices) -> Tensor") + static at::Tensor call(const at::Tensor & grad_output, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, bool ceil_mode, const at::Tensor & indices); + static at::Tensor redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, bool ceil_mode, const at::Tensor & indices); +}; + +}} // namespace at::_ops diff --git a/shared/package-files/43/4355a8ae1353dc1f690b923a8aa2fad9b50e905130dc1d5cacf049b0752c6636/test_dtypes_basic.py b/shared/package-files/43/4355a8ae1353dc1f690b923a8aa2fad9b50e905130dc1d5cacf049b0752c6636/test_dtypes_basic.py new file mode 100644 index 0000000000000000000000000000000000000000..d28c43c45647a53bea2877760868ae1fa11264d6 --- /dev/null +++ b/shared/package-files/43/4355a8ae1353dc1f690b923a8aa2fad9b50e905130dc1d5cacf049b0752c6636/test_dtypes_basic.py @@ -0,0 +1,644 @@ +""" +Tests dtype specification during parsing +for all of the parsers defined in parsers.py +""" +from collections import defaultdict +from io import StringIO + +import numpy as np +import pytest + +from pandas.errors import ParserWarning + +import pandas as pd +from pandas import ( + DataFrame, + Timestamp, +) +import pandas._testing as tm +from pandas.core.arrays import IntegerArray + +pytestmark = pytest.mark.filterwarnings( + "ignore:Passing a BlockManager to DataFrame:DeprecationWarning" +) + +xfail_pyarrow = pytest.mark.usefixtures("pyarrow_xfail") + + +@pytest.mark.parametrize("dtype", [str, object]) +@pytest.mark.parametrize("check_orig", [True, False]) +@pytest.mark.usefixtures("pyarrow_xfail") +def test_dtype_all_columns(all_parsers, dtype, check_orig, using_infer_string): + # see gh-3795, gh-6607 + parser = all_parsers + + df = DataFrame( + np.random.default_rng(2).random((5, 2)).round(4), + columns=list("AB"), + index=["1A", "1B", "1C", "1D", "1E"], + ) + + with tm.ensure_clean("__passing_str_as_dtype__.csv") as path: + df.to_csv(path) + + result = parser.read_csv(path, dtype=dtype, index_col=0) + + if check_orig: + expected = df.copy() + result = result.astype(float) + elif using_infer_string and dtype is str: + expected = df.astype(str) + else: + expected = df.astype(str).astype(object) + + tm.assert_frame_equal(result, expected) + + +@pytest.mark.usefixtures("pyarrow_xfail") +def test_dtype_per_column(all_parsers): + parser = all_parsers + data = """\ +one,two +1,2.5 +2,3.5 +3,4.5 +4,5.5""" + expected = DataFrame( + [[1, "2.5"], [2, "3.5"], [3, "4.5"], [4, "5.5"]], columns=["one", "two"] + ) + expected["one"] = expected["one"].astype(np.float64) + + result = parser.read_csv(StringIO(data), dtype={"one": np.float64, 1: str}) + tm.assert_frame_equal(result, expected) + + +def test_invalid_dtype_per_column(all_parsers): + parser = all_parsers + data = """\ +one,two +1,2.5 +2,3.5 +3,4.5 +4,5.5""" + + with pytest.raises(TypeError, match="data type [\"']foo[\"'] not understood"): + parser.read_csv(StringIO(data), dtype={"one": "foo", 1: "int"}) + + +def test_raise_on_passed_int_dtype_with_nas(all_parsers): + # see gh-2631 + parser = all_parsers + data = """YEAR, DOY, a +2001,106380451,10 +2001,,11 +2001,106380451,67""" + + if parser.engine == "c": + msg = "Integer column has NA values" + elif parser.engine == "pyarrow": + msg = "The 'skipinitialspace' option is not supported with the 'pyarrow' engine" + else: + msg = "Unable to convert column DOY" + + with pytest.raises(ValueError, match=msg): + parser.read_csv(StringIO(data), dtype={"DOY": np.int64}, skipinitialspace=True) + + +def test_dtype_with_converters(all_parsers): + parser = all_parsers + data = """a,b +1.1,2.2 +1.2,2.3""" + + if parser.engine == "pyarrow": + msg = "The 'converters' option is not supported with the 'pyarrow' engine" + with pytest.raises(ValueError, match=msg): + parser.read_csv( + StringIO(data), dtype={"a": "i8"}, converters={"a": lambda x: str(x)} + ) + return + + # Dtype spec ignored if converted specified. + result = parser.read_csv_check_warnings( + ParserWarning, + "Both a converter and dtype were specified for column a " + "- only the converter will be used.", + StringIO(data), + dtype={"a": "i8"}, + converters={"a": lambda x: str(x)}, + ) + expected = DataFrame({"a": ["1.1", "1.2"], "b": [2.2, 2.3]}) + tm.assert_frame_equal(result, expected) + + +@pytest.mark.parametrize( + "dtype", list(np.typecodes["AllInteger"] + np.typecodes["Float"]) +) +def test_numeric_dtype(all_parsers, dtype): + data = "0\n1" + parser = all_parsers + expected = DataFrame([0, 1], dtype=dtype) + + result = parser.read_csv(StringIO(data), header=None, dtype=dtype) + tm.assert_frame_equal(expected, result) + + +@pytest.mark.usefixtures("pyarrow_xfail") +def test_boolean_dtype(all_parsers): + parser = all_parsers + data = "\n".join( + [ + "a", + "True", + "TRUE", + "true", + "1", + "1.0", + "False", + "FALSE", + "false", + "0", + "0.0", + "NaN", + "nan", + "NA", + "null", + "NULL", + ] + ) + + result = parser.read_csv(StringIO(data), dtype="boolean") + expected = DataFrame( + { + "a": pd.array( + [ + True, + True, + True, + True, + True, + False, + False, + False, + False, + False, + None, + None, + None, + None, + None, + ], + dtype="boolean", + ) + } + ) + + tm.assert_frame_equal(result, expected) + + +@pytest.mark.usefixtures("pyarrow_xfail") +def test_delimiter_with_usecols_and_parse_dates(all_parsers): + # GH#35873 + result = all_parsers.read_csv( + StringIO('"dump","-9,1","-9,1",20101010'), + engine="python", + names=["col", "col1", "col2", "col3"], + usecols=["col1", "col2", "col3"], + parse_dates=["col3"], + decimal=",", + ) + expected = DataFrame( + {"col1": [-9.1], "col2": [-9.1], "col3": [Timestamp("2010-10-10")]} + ) + tm.assert_frame_equal(result, expected) + + +@pytest.mark.parametrize("thousands", ["_", None]) +def test_decimal_and_exponential( + request, python_parser_only, numeric_decimal, thousands +): + # GH#31920 + decimal_number_check(request, python_parser_only, numeric_decimal, thousands, None) + + +@pytest.mark.parametrize("thousands", ["_", None]) +@pytest.mark.parametrize("float_precision", [None, "legacy", "high", "round_trip"]) +def test_1000_sep_decimal_float_precision( + request, c_parser_only, numeric_decimal, float_precision, thousands +): + # test decimal and thousand sep handling in across 'float_precision' + # parsers + decimal_number_check( + request, c_parser_only, numeric_decimal, thousands, float_precision + ) + text, value = numeric_decimal + text = " " + text + " " + if isinstance(value, str): # the negative cases (parse as text) + value = " " + value + " " + decimal_number_check( + request, c_parser_only, (text, value), thousands, float_precision + ) + + +def decimal_number_check(request, parser, numeric_decimal, thousands, float_precision): + # GH#31920 + value = numeric_decimal[0] + if thousands is None and value in ("1_,", "1_234,56", "1_234,56e0"): + request.applymarker( + pytest.mark.xfail(reason=f"thousands={thousands} and sep is in {value}") + ) + df = parser.read_csv( + StringIO(value), + float_precision=float_precision, + sep="|", + thousands=thousands, + decimal=",", + header=None, + ) + val = df.iloc[0, 0] + assert val == numeric_decimal[1] + + +@pytest.mark.parametrize("float_precision", [None, "legacy", "high", "round_trip"]) +def test_skip_whitespace(c_parser_only, float_precision): + DATA = """id\tnum\t +1\t1.2 \t +1\t 2.1\t +2\t 1\t +2\t 1.2 \t +""" + df = c_parser_only.read_csv( + StringIO(DATA), + float_precision=float_precision, + sep="\t", + header=0, + dtype={1: np.float64}, + ) + tm.assert_series_equal(df.iloc[:, 1], pd.Series([1.2, 2.1, 1.0, 1.2], name="num")) + + +@pytest.mark.usefixtures("pyarrow_xfail") +def test_true_values_cast_to_bool(all_parsers): + # GH#34655 + text = """a,b +yes,xxx +no,yyy +1,zzz +0,aaa + """ + parser = all_parsers + result = parser.read_csv( + StringIO(text), + true_values=["yes"], + false_values=["no"], + dtype={"a": "boolean"}, + ) + expected = DataFrame( + {"a": [True, False, True, False], "b": ["xxx", "yyy", "zzz", "aaa"]} + ) + expected["a"] = expected["a"].astype("boolean") + tm.assert_frame_equal(result, expected) + + +@pytest.mark.usefixtures("pyarrow_xfail") +@pytest.mark.parametrize("dtypes, exp_value", [({}, "1"), ({"a.1": "int64"}, 1)]) +def test_dtype_mangle_dup_cols(all_parsers, dtypes, exp_value): + # GH#35211 + parser = all_parsers + data = """a,a\n1,1""" + dtype_dict = {"a": str, **dtypes} + # GH#42462 + dtype_dict_copy = dtype_dict.copy() + result = parser.read_csv(StringIO(data), dtype=dtype_dict) + expected = DataFrame({"a": ["1"], "a.1": [exp_value]}) + assert dtype_dict == dtype_dict_copy, "dtype dict changed" + tm.assert_frame_equal(result, expected) + + +@pytest.mark.usefixtures("pyarrow_xfail") +def test_dtype_mangle_dup_cols_single_dtype(all_parsers): + # GH#42022 + parser = all_parsers + data = """a,a\n1,1""" + result = parser.read_csv(StringIO(data), dtype=str) + expected = DataFrame({"a": ["1"], "a.1": ["1"]}) + tm.assert_frame_equal(result, expected) + + +@pytest.mark.usefixtures("pyarrow_xfail") +def test_dtype_multi_index(all_parsers): + # GH 42446 + parser = all_parsers + data = "A,B,B\nX,Y,Z\n1,2,3" + + result = parser.read_csv( + StringIO(data), + header=list(range(2)), + dtype={ + ("A", "X"): np.int32, + ("B", "Y"): np.int32, + ("B", "Z"): np.float32, + }, + ) + + expected = DataFrame( + { + ("A", "X"): np.int32([1]), + ("B", "Y"): np.int32([2]), + ("B", "Z"): np.float32([3]), + } + ) + + tm.assert_frame_equal(result, expected) + + +def test_nullable_int_dtype(all_parsers, any_int_ea_dtype): + # GH 25472 + parser = all_parsers + dtype = any_int_ea_dtype + + data = """a,b,c +,3,5 +1,,6 +2,4,""" + expected = DataFrame( + { + "a": pd.array([pd.NA, 1, 2], dtype=dtype), + "b": pd.array([3, pd.NA, 4], dtype=dtype), + "c": pd.array([5, 6, pd.NA], dtype=dtype), + } + ) + actual = parser.read_csv(StringIO(data), dtype=dtype) + tm.assert_frame_equal(actual, expected) + + +@pytest.mark.usefixtures("pyarrow_xfail") +@pytest.mark.parametrize("default", ["float", "float64"]) +def test_dtypes_defaultdict(all_parsers, default): + # GH#41574 + data = """a,b +1,2 +""" + dtype = defaultdict(lambda: default, a="int64") + parser = all_parsers + result = parser.read_csv(StringIO(data), dtype=dtype) + expected = DataFrame({"a": [1], "b": 2.0}) + tm.assert_frame_equal(result, expected) + + +@pytest.mark.usefixtures("pyarrow_xfail") +def test_dtypes_defaultdict_mangle_dup_cols(all_parsers): + # GH#41574 + data = """a,b,a,b,b.1 +1,2,3,4,5 +""" + dtype = defaultdict(lambda: "float64", a="int64") + dtype["b.1"] = "int64" + parser = all_parsers + result = parser.read_csv(StringIO(data), dtype=dtype) + expected = DataFrame({"a": [1], "b": [2.0], "a.1": [3], "b.2": [4.0], "b.1": [5]}) + tm.assert_frame_equal(result, expected) + + +@pytest.mark.usefixtures("pyarrow_xfail") +def test_dtypes_defaultdict_invalid(all_parsers): + # GH#41574 + data = """a,b +1,2 +""" + dtype = defaultdict(lambda: "invalid_dtype", a="int64") + parser = all_parsers + with pytest.raises(TypeError, match="not understood"): + parser.read_csv(StringIO(data), dtype=dtype) + + +def test_dtype_backend(all_parsers): + # GH#36712 + + parser = all_parsers + + data = """a,b,c,d,e,f,g,h,i,j +1,2.5,True,a,,,,,12-31-2019, +3,4.5,False,b,6,7.5,True,a,12-31-2019, +""" + result = parser.read_csv( + StringIO(data), dtype_backend="numpy_nullable", parse_dates=["i"] + ) + expected = DataFrame( + { + "a": pd.Series([1, 3], dtype="Int64"), + "b": pd.Series([2.5, 4.5], dtype="Float64"), + "c": pd.Series([True, False], dtype="boolean"), + "d": pd.Series(["a", "b"], dtype="string"), + "e": pd.Series([pd.NA, 6], dtype="Int64"), + "f": pd.Series([pd.NA, 7.5], dtype="Float64"), + "g": pd.Series([pd.NA, True], dtype="boolean"), + "h": pd.Series([pd.NA, "a"], dtype="string"), + "i": pd.Series([Timestamp("2019-12-31")] * 2), + "j": pd.Series([pd.NA, pd.NA], dtype="Int64"), + } + ) + tm.assert_frame_equal(result, expected) + + +def test_dtype_backend_and_dtype(all_parsers): + # GH#36712 + + parser = all_parsers + + data = """a,b +1,2.5 +, +""" + result = parser.read_csv( + StringIO(data), dtype_backend="numpy_nullable", dtype="float64" + ) + expected = DataFrame({"a": [1.0, np.nan], "b": [2.5, np.nan]}) + tm.assert_frame_equal(result, expected) + + +def test_dtype_backend_string(all_parsers, string_storage): + # GH#36712 + with pd.option_context("mode.string_storage", string_storage): + parser = all_parsers + + data = """a,b +a,x +b, +""" + result = parser.read_csv(StringIO(data), dtype_backend="numpy_nullable") + + expected = DataFrame( + { + "a": pd.array(["a", "b"], dtype=pd.StringDtype(string_storage)), + "b": pd.array(["x", pd.NA], dtype=pd.StringDtype(string_storage)), + }, + ) + tm.assert_frame_equal(result, expected) + + +def test_dtype_backend_ea_dtype_specified(all_parsers): + # GH#491496 + data = """a,b +1,2 +""" + parser = all_parsers + result = parser.read_csv( + StringIO(data), dtype="Int64", dtype_backend="numpy_nullable" + ) + expected = DataFrame({"a": [1], "b": 2}, dtype="Int64") + tm.assert_frame_equal(result, expected) + + +def test_dtype_backend_pyarrow(all_parsers, request): + # GH#36712 + pa = pytest.importorskip("pyarrow") + parser = all_parsers + + data = """a,b,c,d,e,f,g,h,i,j +1,2.5,True,a,,,,,12-31-2019, +3,4.5,False,b,6,7.5,True,a,12-31-2019, +""" + result = parser.read_csv(StringIO(data), dtype_backend="pyarrow", parse_dates=["i"]) + expected = DataFrame( + { + "a": pd.Series([1, 3], dtype="int64[pyarrow]"), + "b": pd.Series([2.5, 4.5], dtype="float64[pyarrow]"), + "c": pd.Series([True, False], dtype="bool[pyarrow]"), + "d": pd.Series(["a", "b"], dtype=pd.ArrowDtype(pa.string())), + "e": pd.Series([pd.NA, 6], dtype="int64[pyarrow]"), + "f": pd.Series([pd.NA, 7.5], dtype="float64[pyarrow]"), + "g": pd.Series([pd.NA, True], dtype="bool[pyarrow]"), + "h": pd.Series( + [pd.NA, "a"], + dtype=pd.ArrowDtype(pa.string()), + ), + "i": pd.Series([Timestamp("2019-12-31")] * 2), + "j": pd.Series([pd.NA, pd.NA], dtype="null[pyarrow]"), + } + ) + tm.assert_frame_equal(result, expected) + + +# pyarrow engine failing: +# https://github.com/pandas-dev/pandas/issues/56136 +@pytest.mark.usefixtures("pyarrow_xfail") +def test_ea_int_avoid_overflow(all_parsers): + # GH#32134 + parser = all_parsers + data = """a,b +1,1 +,1 +1582218195625938945,1 +""" + result = parser.read_csv(StringIO(data), dtype={"a": "Int64"}) + expected = DataFrame( + { + "a": IntegerArray( + np.array([1, 1, 1582218195625938945]), np.array([False, True, False]) + ), + "b": 1, + } + ) + tm.assert_frame_equal(result, expected) + + +def test_string_inference(all_parsers): + # GH#54430 + dtype = pd.StringDtype(na_value=np.nan) + + data = """a,b +x,1 +y,2 +,3""" + parser = all_parsers + with pd.option_context("future.infer_string", True): + result = parser.read_csv(StringIO(data)) + + expected = DataFrame( + {"a": pd.Series(["x", "y", None], dtype=dtype), "b": [1, 2, 3]}, + columns=pd.Index(["a", "b"], dtype=dtype), + ) + tm.assert_frame_equal(result, expected) + + +@pytest.mark.parametrize("dtype", ["O", object, "object", np.object_, str, np.str_]) +def test_string_inference_object_dtype(all_parsers, dtype, using_infer_string): + # GH#56047 + data = """a,b +x,a +y,a +z,a""" + parser = all_parsers + with pd.option_context("future.infer_string", True): + result = parser.read_csv(StringIO(data), dtype=dtype) + + expected_dtype = pd.StringDtype(na_value=np.nan) if dtype is str else object + expected = DataFrame( + { + "a": pd.Series(["x", "y", "z"], dtype=expected_dtype), + "b": pd.Series(["a", "a", "a"], dtype=expected_dtype), + }, + columns=pd.Index(["a", "b"], dtype=pd.StringDtype(na_value=np.nan)), + ) + tm.assert_frame_equal(result, expected) + + with pd.option_context("future.infer_string", True): + result = parser.read_csv(StringIO(data), dtype={"a": dtype}) + + expected = DataFrame( + { + "a": pd.Series(["x", "y", "z"], dtype=expected_dtype), + "b": pd.Series(["a", "a", "a"], dtype=pd.StringDtype(na_value=np.nan)), + }, + columns=pd.Index(["a", "b"], dtype=pd.StringDtype(na_value=np.nan)), + ) + tm.assert_frame_equal(result, expected) + + +@xfail_pyarrow +def test_accurate_parsing_of_large_integers(all_parsers): + # GH#52505 + data = """SYMBOL,MOMENT,ID,ID_DEAL +AAPL,20230301181139587,1925036343869802844, +AAPL,20230301181139587,2023552585717889863,2023552585717263358 +NVDA,20230301181139587,2023552585717889863,2023552585717263359 +AMC,20230301181139587,2023552585717889863,2023552585717263360 +AMZN,20230301181139587,2023552585717889759,2023552585717263360 +MSFT,20230301181139587,2023552585717889863,2023552585717263361 +NVDA,20230301181139587,2023552585717889827,2023552585717263361""" + orders = all_parsers.read_csv(StringIO(data), dtype={"ID_DEAL": pd.Int64Dtype()}) + assert len(orders.loc[orders["ID_DEAL"] == 2023552585717263358, "ID_DEAL"]) == 1 + assert len(orders.loc[orders["ID_DEAL"] == 2023552585717263359, "ID_DEAL"]) == 1 + assert len(orders.loc[orders["ID_DEAL"] == 2023552585717263360, "ID_DEAL"]) == 2 + assert len(orders.loc[orders["ID_DEAL"] == 2023552585717263361, "ID_DEAL"]) == 2 + + +def test_dtypes_with_usecols(all_parsers): + # GH#54868 + + parser = all_parsers + data = """a,b,c +1,2,3 +4,5,6""" + + result = parser.read_csv(StringIO(data), usecols=["a", "c"], dtype={"a": object}) + if parser.engine == "pyarrow": + values = [1, 4] + else: + values = ["1", "4"] + expected = DataFrame({"a": pd.Series(values, dtype=object), "c": [3, 6]}) + tm.assert_frame_equal(result, expected) + + +def test_index_col_with_dtype_no_rangeindex(all_parsers): + data = StringIO("345.5,519.5,0\n519.5,726.5,1") + result = all_parsers.read_csv( + data, + header=None, + names=["start", "stop", "bin_id"], + dtype={"start": np.float32, "stop": np.float32, "bin_id": np.uint32}, + index_col="bin_id", + ).index + expected = pd.Index([0, 1], dtype=np.uint32, name="bin_id") + tm.assert_index_equal(result, expected) diff --git a/shared/package-files/43/435a5c538077791b30e63b2ff92d0cb047cd51ba7fe1a31d3bfa379f4aed0360/arraypad.pyi b/shared/package-files/43/435a5c538077791b30e63b2ff92d0cb047cd51ba7fe1a31d3bfa379f4aed0360/arraypad.pyi new file mode 100644 index 0000000000000000000000000000000000000000..f53613ba2fd4bb70ec28c0d38b2c4197232e5dce --- /dev/null +++ b/shared/package-files/43/435a5c538077791b30e63b2ff92d0cb047cd51ba7fe1a31d3bfa379f4aed0360/arraypad.pyi @@ -0,0 +1,28 @@ +import sys +from collections.abc import Mapping +from typing import Any, SupportsIndex + +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 + +def mode_func( + ar: npt.NDArray[np.number[Any]], + width: tuple[int, int], + iaxis: SupportsIndex, + kwargs: Mapping[str, Any], +) -> None: ... + +AR_i8: npt.NDArray[np.int64] +AR_f8: npt.NDArray[np.float64] +AR_LIKE: list[int] + +assert_type(np.pad(AR_i8, (2, 3), "constant"), npt.NDArray[np.int64]) +assert_type(np.pad(AR_LIKE, (2, 3), "constant"), npt.NDArray[Any]) + +assert_type(np.pad(AR_f8, (2, 3), mode_func), npt.NDArray[np.float64]) +assert_type(np.pad(AR_f8, (2, 3), mode_func, a=1, b=2), npt.NDArray[np.float64]) diff --git a/shared/package-files/43/435acc190d018d9421baa224d25b8d893967af5c5737a1e42f1bbf614c8e2bf3/trsock.py b/shared/package-files/43/435acc190d018d9421baa224d25b8d893967af5c5737a1e42f1bbf614c8e2bf3/trsock.py new file mode 100644 index 0000000000000000000000000000000000000000..e9ebcc326142596b289ef74ee3c35460f598b138 --- /dev/null +++ b/shared/package-files/43/435acc190d018d9421baa224d25b8d893967af5c5737a1e42f1bbf614c8e2bf3/trsock.py @@ -0,0 +1,206 @@ +import socket +import warnings + + +class TransportSocket: + + """A socket-like wrapper for exposing real transport sockets. + + These objects can be safely returned by APIs like + `transport.get_extra_info('socket')`. All potentially disruptive + operations (like "socket.close()") are banned. + """ + + __slots__ = ('_sock',) + + def __init__(self, sock: socket.socket): + self._sock = sock + + def _na(self, what): + warnings.warn( + f"Using {what} on sockets returned from get_extra_info('socket') " + f"will be prohibited in asyncio 3.9. Please report your use case " + f"to bugs.python.org.", + DeprecationWarning, source=self) + + @property + def family(self): + return self._sock.family + + @property + def type(self): + return self._sock.type + + @property + def proto(self): + return self._sock.proto + + def __repr__(self): + s = ( + f"" + + def __getstate__(self): + raise TypeError("Cannot serialize asyncio.TransportSocket object") + + def fileno(self): + return self._sock.fileno() + + def dup(self): + return self._sock.dup() + + def get_inheritable(self): + return self._sock.get_inheritable() + + def shutdown(self, how): + # asyncio doesn't currently provide a high-level transport API + # to shutdown the connection. + self._sock.shutdown(how) + + def getsockopt(self, *args, **kwargs): + return self._sock.getsockopt(*args, **kwargs) + + def setsockopt(self, *args, **kwargs): + self._sock.setsockopt(*args, **kwargs) + + def getpeername(self): + return self._sock.getpeername() + + def getsockname(self): + return self._sock.getsockname() + + def getsockbyname(self): + return self._sock.getsockbyname() + + def accept(self): + self._na('accept() method') + return self._sock.accept() + + def connect(self, *args, **kwargs): + self._na('connect() method') + return self._sock.connect(*args, **kwargs) + + def connect_ex(self, *args, **kwargs): + self._na('connect_ex() method') + return self._sock.connect_ex(*args, **kwargs) + + def bind(self, *args, **kwargs): + self._na('bind() method') + return self._sock.bind(*args, **kwargs) + + def ioctl(self, *args, **kwargs): + self._na('ioctl() method') + return self._sock.ioctl(*args, **kwargs) + + def listen(self, *args, **kwargs): + self._na('listen() method') + return self._sock.listen(*args, **kwargs) + + def makefile(self): + self._na('makefile() method') + return self._sock.makefile() + + def sendfile(self, *args, **kwargs): + self._na('sendfile() method') + return self._sock.sendfile(*args, **kwargs) + + def close(self): + self._na('close() method') + return self._sock.close() + + def detach(self): + self._na('detach() method') + return self._sock.detach() + + def sendmsg_afalg(self, *args, **kwargs): + self._na('sendmsg_afalg() method') + return self._sock.sendmsg_afalg(*args, **kwargs) + + def sendmsg(self, *args, **kwargs): + self._na('sendmsg() method') + return self._sock.sendmsg(*args, **kwargs) + + def sendto(self, *args, **kwargs): + self._na('sendto() method') + return self._sock.sendto(*args, **kwargs) + + def send(self, *args, **kwargs): + self._na('send() method') + return self._sock.send(*args, **kwargs) + + def sendall(self, *args, **kwargs): + self._na('sendall() method') + return self._sock.sendall(*args, **kwargs) + + def set_inheritable(self, *args, **kwargs): + self._na('set_inheritable() method') + return self._sock.set_inheritable(*args, **kwargs) + + def share(self, process_id): + self._na('share() method') + return self._sock.share(process_id) + + def recv_into(self, *args, **kwargs): + self._na('recv_into() method') + return self._sock.recv_into(*args, **kwargs) + + def recvfrom_into(self, *args, **kwargs): + self._na('recvfrom_into() method') + return self._sock.recvfrom_into(*args, **kwargs) + + def recvmsg_into(self, *args, **kwargs): + self._na('recvmsg_into() method') + return self._sock.recvmsg_into(*args, **kwargs) + + def recvmsg(self, *args, **kwargs): + self._na('recvmsg() method') + return self._sock.recvmsg(*args, **kwargs) + + def recvfrom(self, *args, **kwargs): + self._na('recvfrom() method') + return self._sock.recvfrom(*args, **kwargs) + + def recv(self, *args, **kwargs): + self._na('recv() method') + return self._sock.recv(*args, **kwargs) + + def settimeout(self, value): + if value == 0: + return + raise ValueError( + 'settimeout(): only 0 timeout is allowed on transport sockets') + + def gettimeout(self): + return 0 + + def setblocking(self, flag): + if not flag: + return + raise ValueError( + 'setblocking(): transport sockets cannot be blocking') + + def __enter__(self): + self._na('context manager protocol') + return self._sock.__enter__() + + def __exit__(self, *err): + self._na('context manager protocol') + return self._sock.__exit__(*err) diff --git a/shared/package-files/43/435ea41af1cbc72636039cb3c7a968a62f747944ddc00d04aa4c62c6a395bca5/_native_batch_norm_legit_no_training_ops.h b/shared/package-files/43/435ea41af1cbc72636039cb3c7a968a62f747944ddc00d04aa4c62c6a395bca5/_native_batch_norm_legit_no_training_ops.h new file mode 100644 index 0000000000000000000000000000000000000000..447db7a23ebbac3eac27e0d2d53bdd6fd598c64b --- /dev/null +++ b/shared/package-files/43/435ea41af1cbc72636039cb3c7a968a62f747944ddc00d04aa4c62c6a395bca5/_native_batch_norm_legit_no_training_ops.h @@ -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 _native_batch_norm_legit_no_training { + using schema = ::std::tuple (const at::Tensor &, const c10::optional &, const c10::optional &, const at::Tensor &, const at::Tensor &, double, double); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::_native_batch_norm_legit_no_training") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "_native_batch_norm_legit_no_training(Tensor input, Tensor? weight, Tensor? bias, Tensor running_mean, Tensor running_var, float momentum, float eps) -> (Tensor, Tensor, Tensor)") + static ::std::tuple call(const at::Tensor & input, const c10::optional & weight, const c10::optional & bias, const at::Tensor & running_mean, const at::Tensor & running_var, double momentum, double eps); + static ::std::tuple redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const c10::optional & weight, const c10::optional & bias, const at::Tensor & running_mean, const at::Tensor & running_var, double momentum, double eps); +}; + +struct TORCH_API _native_batch_norm_legit_no_training_out { + using schema = ::std::tuple (const at::Tensor &, const c10::optional &, const c10::optional &, const at::Tensor &, const at::Tensor &, double, double, at::Tensor &, 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::_native_batch_norm_legit_no_training") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "out") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "_native_batch_norm_legit_no_training.out(Tensor input, Tensor? weight, Tensor? bias, Tensor running_mean, Tensor running_var, float momentum, float eps, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2) -> (Tensor(a!), Tensor(b!), Tensor(c!))") + static ::std::tuple call(const at::Tensor & input, const c10::optional & weight, const c10::optional & bias, const at::Tensor & running_mean, const at::Tensor & running_var, double momentum, double eps, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2); + static ::std::tuple redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const c10::optional & weight, const c10::optional & bias, const at::Tensor & running_mean, const at::Tensor & running_var, double momentum, double eps, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2); +}; + +}} // namespace at::_ops diff --git a/shared/package-files/43/436097ef0fbe9f2b6c9ed43a2245311eeb61a441e8f0740c788b1a0b8328ab57/views.pyi b/shared/package-files/43/436097ef0fbe9f2b6c9ed43a2245311eeb61a441e8f0740c788b1a0b8328ab57/views.pyi new file mode 100644 index 0000000000000000000000000000000000000000..8d1ef04dafc2e8f6b68aa35753fadac4348c9df4 --- /dev/null +++ b/shared/package-files/43/436097ef0fbe9f2b6c9ed43a2245311eeb61a441e8f0740c788b1a0b8328ab57/views.pyi @@ -0,0 +1,6 @@ +from typing import Any + +from django.core.handlers.wsgi import WSGIRequest +from django.http.response import FileResponse + +def serve(request: WSGIRequest, path: str, insecure: bool = ..., **kwargs: Any) -> FileResponse: ... diff --git a/shared/package-files/43/4361486b588fbb45cc46a2536fcc1ec1d3e84d712725766216e60bf999b44f5a/wikilinks.pyi b/shared/package-files/43/4361486b588fbb45cc46a2536fcc1ec1d3e84d712725766216e60bf999b44f5a/wikilinks.pyi new file mode 100644 index 0000000000000000000000000000000000000000..044edb0e33e47a472990d8264bfa0758e6d8b3c3 --- /dev/null +++ b/shared/package-files/43/4361486b588fbb45cc46a2536fcc1ec1d3e84d712725766216e60bf999b44f5a/wikilinks.pyi @@ -0,0 +1,16 @@ +from typing import Any + +from markdown.extensions import Extension +from markdown.inlinepatterns import InlineProcessor + +def build_url(label, base, end): ... + +class WikiLinkExtension(Extension): + def __init__(self, **kwargs) -> None: ... + md: Any + +class WikiLinksInlineProcessor(InlineProcessor): + config: Any + def __init__(self, pattern, config) -> None: ... + +def makeExtension(**kwargs): ... diff --git a/shared/package-files/43/43628687aa0cac91af25c910a5106439c01c446d8a31999dc4f9bd944d2753ff/_lazy_clone_native.h b/shared/package-files/43/43628687aa0cac91af25c910a5106439c01c446d8a31999dc4f9bd944d2753ff/_lazy_clone_native.h new file mode 100644 index 0000000000000000000000000000000000000000..02dd3d04941a3aec22c40cb05ac0ebfdad6d7bd3 --- /dev/null +++ b/shared/package-files/43/43628687aa0cac91af25c910a5106439c01c446d8a31999dc4f9bd944d2753ff/_lazy_clone_native.h @@ -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 _lazy_clone(const at::Tensor & self); +} // namespace native +} // namespace at diff --git a/shared/package-files/43/4362b3293c5c8a44c481d340a2e1708f0b28ac56b7c04f485642aa61df28fcbc/thread_pool.h b/shared/package-files/43/4362b3293c5c8a44c481d340a2e1708f0b28ac56b7c04f485642aa61df28fcbc/thread_pool.h new file mode 100644 index 0000000000000000000000000000000000000000..201b8cef790d0bf617b91e93b85a507676660424 --- /dev/null +++ b/shared/package-files/43/4362b3293c5c8a44c481d340a2e1708f0b28ac56b7c04f485642aa61df28fcbc/thread_pool.h @@ -0,0 +1,643 @@ +// 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 "arrow/result.h" +#include "arrow/status.h" +#include "arrow/util/cancel.h" +#include "arrow/util/config.h" +#include "arrow/util/functional.h" +#include "arrow/util/future.h" +#include "arrow/util/iterator.h" +#include "arrow/util/macros.h" +#include "arrow/util/visibility.h" + +#if defined(_MSC_VER) +// Disable harmless warning for decorated name length limit +# pragma warning(disable : 4503) +#endif + +namespace arrow { + +/// \brief Get the capacity of the global thread pool +/// +/// Return the number of worker threads in the thread pool to which +/// Arrow dispatches various CPU-bound tasks. This is an ideal number, +/// not necessarily the exact number of threads at a given point in time. +/// +/// You can change this number using SetCpuThreadPoolCapacity(). +ARROW_EXPORT int GetCpuThreadPoolCapacity(); + +/// \brief Set the capacity of the global thread pool +/// +/// Set the number of worker threads int the thread pool to which +/// Arrow dispatches various CPU-bound tasks. +/// +/// The current number is returned by GetCpuThreadPoolCapacity(). +ARROW_EXPORT Status SetCpuThreadPoolCapacity(int threads); + +namespace internal { + +// Hints about a task that may be used by an Executor. +// They are ignored by the provided ThreadPool implementation. +struct TaskHints { + // The lower, the more urgent + int32_t priority = 0; + // The IO transfer size in bytes + int64_t io_size = -1; + // The approximate CPU cost in number of instructions + int64_t cpu_cost = -1; + // An application-specific ID + int64_t external_id = -1; +}; + +class ARROW_EXPORT Executor { + public: + using StopCallback = internal::FnOnce; + + virtual ~Executor(); + + // Spawn a fire-and-forget task. + template + Status Spawn(Function&& func) { + return SpawnReal(TaskHints{}, std::forward(func), StopToken::Unstoppable(), + StopCallback{}); + } + template + Status Spawn(Function&& func, StopToken stop_token) { + return SpawnReal(TaskHints{}, std::forward(func), std::move(stop_token), + StopCallback{}); + } + template + Status Spawn(TaskHints hints, Function&& func) { + return SpawnReal(hints, std::forward(func), StopToken::Unstoppable(), + StopCallback{}); + } + template + Status Spawn(TaskHints hints, Function&& func, StopToken stop_token) { + return SpawnReal(hints, std::forward(func), std::move(stop_token), + StopCallback{}); + } + template + Status Spawn(TaskHints hints, Function&& func, StopToken stop_token, + StopCallback stop_callback) { + return SpawnReal(hints, std::forward(func), std::move(stop_token), + std::move(stop_callback)); + } + + // Transfers a future to this executor. Any continuations added to the + // returned future will run in this executor. Otherwise they would run + // on the same thread that called MarkFinished. + // + // This is necessary when (for example) an I/O task is completing a future. + // The continuations of that future should run on the CPU thread pool keeping + // CPU heavy work off the I/O thread pool. So the I/O task should transfer + // the future to the CPU executor before returning. + // + // By default this method will only transfer if the future is not already completed. If + // the future is already completed then any callback would be run synchronously and so + // no transfer is typically necessary. However, in cases where you want to force a + // transfer (e.g. to help the scheduler break up units of work across multiple cores) + // then you can override this behavior with `always_transfer`. + template + Future Transfer(Future future) { + return DoTransfer(std::move(future), false); + } + + // Overload of Transfer which will always schedule callbacks on new threads even if the + // future is finished when the callback is added. + // + // This can be useful in cases where you want to ensure parallelism + template + Future TransferAlways(Future future) { + return DoTransfer(std::move(future), true); + } + + // Submit a callable and arguments for execution. Return a future that + // will return the callable's result value once. + // The callable's arguments are copied before execution. + template > + Result Submit(TaskHints hints, StopToken stop_token, Function&& func, + Args&&... args) { + using ValueType = typename FutureType::ValueType; + + auto future = FutureType::Make(); + auto task = std::bind(::arrow::detail::ContinueFuture{}, future, + std::forward(func), std::forward(args)...); + struct { + WeakFuture weak_fut; + + void operator()(const Status& st) { + auto fut = weak_fut.get(); + if (fut.is_valid()) { + fut.MarkFinished(st); + } + } + } stop_callback{WeakFuture(future)}; + ARROW_RETURN_NOT_OK(SpawnReal(hints, std::move(task), std::move(stop_token), + std::move(stop_callback))); + + return future; + } + + template > + Result Submit(StopToken stop_token, Function&& func, Args&&... args) { + return Submit(TaskHints{}, stop_token, std::forward(func), + std::forward(args)...); + } + + template > + Result Submit(TaskHints hints, Function&& func, Args&&... args) { + return Submit(std::move(hints), StopToken::Unstoppable(), + std::forward(func), std::forward(args)...); + } + + template > + Result Submit(Function&& func, Args&&... args) { + return Submit(TaskHints{}, StopToken::Unstoppable(), std::forward(func), + std::forward(args)...); + } + + // Return the level of parallelism (the number of tasks that may be executed + // concurrently). This may be an approximate number. + virtual int GetCapacity() = 0; + + // Return true if the thread from which this function is called is owned by this + // Executor. Returns false if this Executor does not support this property. + virtual bool OwnsThisThread() { return false; } + + // Return true if this is the current executor being called + // n.b. this defaults to just calling OwnsThisThread + // unless the threadpool is disabled + virtual bool IsCurrentExecutor() { return OwnsThisThread(); } + + /// \brief An interface to represent something with a custom destructor + /// + /// \see KeepAlive + class ARROW_EXPORT Resource { + public: + virtual ~Resource() = default; + }; + + /// \brief Keep a resource alive until all executor threads have terminated + /// + /// Executors may have static storage duration. In particular, the CPU and I/O + /// executors are currently implemented this way. These threads may access other + /// objects with static storage duration such as the OpenTelemetry runtime context + /// the default memory pool, or other static executors. + /// + /// The order in which these objects are destroyed is difficult to control. In order + /// to ensure those objects remain alive until all threads have finished those objects + /// should be wrapped in a Resource object and passed into this method. The given + /// shared_ptr will be kept alive until all threads have finished their worker loops. + virtual void KeepAlive(std::shared_ptr resource); + + protected: + ARROW_DISALLOW_COPY_AND_ASSIGN(Executor); + + Executor() = default; + + template , typename FTSync = typename FT::SyncType> + Future DoTransfer(Future future, bool always_transfer = false) { + auto transferred = Future::Make(); + if (always_transfer) { + CallbackOptions callback_options = CallbackOptions::Defaults(); + callback_options.should_schedule = ShouldSchedule::Always; + callback_options.executor = this; + auto sync_callback = [transferred](const FTSync& result) mutable { + transferred.MarkFinished(result); + }; + future.AddCallback(sync_callback, callback_options); + return transferred; + } + + // We could use AddCallback's ShouldSchedule::IfUnfinished but we can save a bit of + // work by doing the test here. + auto callback = [this, transferred](const FTSync& result) mutable { + auto spawn_status = + Spawn([transferred, result]() mutable { transferred.MarkFinished(result); }); + if (!spawn_status.ok()) { + transferred.MarkFinished(spawn_status); + } + }; + auto callback_factory = [&callback]() { return callback; }; + if (future.TryAddCallback(callback_factory)) { + return transferred; + } + // If the future is already finished and we aren't going to force spawn a thread + // then we don't need to add another layer of callback and can return the original + // future + return future; + } + + // Subclassing API + virtual Status SpawnReal(TaskHints hints, FnOnce task, StopToken, + StopCallback&&) = 0; +}; + +/// \brief An executor implementation that runs all tasks on a single thread using an +/// event loop. +/// +/// Note: Any sort of nested parallelism will deadlock this executor. Blocking waits are +/// fine but if one task needs to wait for another task it must be expressed as an +/// asynchronous continuation. +class ARROW_EXPORT SerialExecutor : public Executor { + public: + template + using TopLevelTask = internal::FnOnce(Executor*)>; + + ~SerialExecutor() override; + + int GetCapacity() override { return 1; }; + bool OwnsThisThread() override; + Status SpawnReal(TaskHints hints, FnOnce task, StopToken, + StopCallback&&) override; + + // Return the number of tasks either running or in the queue. + int GetNumTasks(); + + /// \brief Runs the TopLevelTask and any scheduled tasks + /// + /// The TopLevelTask (or one of the tasks it schedules) must either return an invalid + /// status or call the finish signal. Failure to do this will result in a deadlock. For + /// this reason it is preferable (if possible) to use the helper methods (below) + /// RunSynchronously/RunSerially which delegates the responsibility onto a Future + /// producer's existing responsibility to always mark a future finished (which can + /// someday be aided by ARROW-12207). + template , + typename FTSync = typename FT::SyncType> + static FTSync RunInSerialExecutor(TopLevelTask initial_task) { + Future fut = SerialExecutor().Run(std::move(initial_task)); + return FutureToSync(fut); + } + + /// \brief Transform an AsyncGenerator into an Iterator + /// + /// An event loop will be created and each call to Next will power the event loop with + /// the calling thread until the next item is ready to be delivered. + /// + /// Note: The iterator's destructor will run until the given generator is fully + /// exhausted. If you wish to abandon iteration before completion then the correct + /// approach is to use a stop token to cause the generator to exhaust early. + template + static Iterator IterateGenerator( + internal::FnOnce()>>(Executor*)> initial_task) { + auto serial_executor = std::unique_ptr(new SerialExecutor()); + auto maybe_generator = std::move(initial_task)(serial_executor.get()); + if (!maybe_generator.ok()) { + return MakeErrorIterator(maybe_generator.status()); + } + auto generator = maybe_generator.MoveValueUnsafe(); + struct SerialIterator { + SerialIterator(std::unique_ptr executor, + std::function()> generator) + : executor(std::move(executor)), generator(std::move(generator)) {} + ARROW_DISALLOW_COPY_AND_ASSIGN(SerialIterator); + ARROW_DEFAULT_MOVE_AND_ASSIGN(SerialIterator); + ~SerialIterator() { + // A serial iterator must be consumed before it can be destroyed. Allowing it to + // do otherwise would lead to resource leakage. There will likely be deadlocks at + // this spot in the future but these will be the result of other bugs and not the + // fact that we are forcing consumption here. + + // If a streaming API needs to support early abandonment then it should be done so + // with a cancellation token and not simply discarding the iterator and expecting + // the underlying work to clean up correctly. + if (executor && !executor->IsFinished()) { + while (true) { + Result maybe_next = Next(); + if (!maybe_next.ok() || IsIterationEnd(*maybe_next)) { + break; + } + } + } + } + + Result Next() { + executor->Unpause(); + // This call may lead to tasks being scheduled in the serial executor + Future next_fut = generator(); + next_fut.AddCallback([this](const Result& res) { + // If we're done iterating we should drain the rest of the tasks in the executor + if (!res.ok() || IsIterationEnd(*res)) { + executor->Finish(); + return; + } + // Otherwise we will break out immediately, leaving the remaining tasks for + // the next call. + executor->Pause(); + }); +#ifdef ARROW_ENABLE_THREADING + // future must run on this thread + // Borrow this thread and run tasks until the future is finished + executor->RunLoop(); +#else + next_fut.Wait(); +#endif + if (!next_fut.is_finished()) { + // Not clear this is possible since RunLoop wouldn't generally exit + // unless we paused/finished which would imply next_fut has been + // finished. + return Status::Invalid( + "Serial executor terminated before next result computed"); + } + // At this point we may still have tasks in the executor, that is ok. + // We will run those tasks the next time through. + return next_fut.result(); + } + + std::unique_ptr executor; + std::function()> generator; + }; + return Iterator(SerialIterator{std::move(serial_executor), std::move(generator)}); + } + +#ifndef ARROW_ENABLE_THREADING + // run a pending task from loop + // returns true if any tasks were run in the last go round the loop (i.e. if it + // returns false, all executors are waiting) + static bool RunTasksOnAllExecutors(); + static SerialExecutor* GetCurrentExecutor(); + + bool IsCurrentExecutor() override; + +#endif + + protected: + virtual void RunLoop(); + + // State uses mutex + struct State; + std::shared_ptr state_; + + SerialExecutor(); + + // We mark the serial executor "finished" when there should be + // no more tasks scheduled on it. It's not strictly needed but + // can help catch bugs where we are trying to use the executor + // after we are done with it. + void Finish(); + bool IsFinished(); + // We pause the executor when we are running an async generator + // and we have received an item that we can deliver. + void Pause(); + void Unpause(); + + template ::SyncType> + Future Run(TopLevelTask initial_task) { + auto final_fut = std::move(initial_task)(this); + final_fut.AddCallback([this](const FTSync&) { Finish(); }); + RunLoop(); + return final_fut; + } + +#ifndef ARROW_ENABLE_THREADING + // we have to run tasks from all live executors + // during RunLoop if we don't have threading + static std::unordered_set all_executors; + // a pointer to the last one called by the loop + // so all tasks get spawned equally + // on multiple calls to RunTasksOnAllExecutors + static SerialExecutor* last_called_executor; + // without threading we can't tell which executor called the + // current process - so we set it in spawning the task + static SerialExecutor* current_executor; +#endif // ARROW_ENABLE_THREADING +}; + +#ifdef ARROW_ENABLE_THREADING + +/// An Executor implementation spawning tasks in FIFO manner on a fixed-size +/// pool of worker threads. +/// +/// Note: Any sort of nested parallelism will deadlock this executor. Blocking waits are +/// fine but if one task needs to wait for another task it must be expressed as an +/// asynchronous continuation. +class ARROW_EXPORT ThreadPool : public Executor { + public: + // Construct a thread pool with the given number of worker threads + static Result> Make(int threads); + + // Like Make(), but takes care that the returned ThreadPool is compatible + // with destruction late at process exit. + static Result> MakeEternal(int threads); + + // Destroy thread pool; the pool will first be shut down + ~ThreadPool() override; + + // Return the desired number of worker threads. + // The actual number of workers may lag a bit before being adjusted to + // match this value. + int GetCapacity() override; + + // Return the number of tasks either running or in the queue. + int GetNumTasks(); + + bool OwnsThisThread() override; + // Dynamically change the number of worker threads. + // + // This function always returns immediately. + // If fewer threads are running than this number, new threads are spawned + // on-demand when needed for task execution. + // If more threads are running than this number, excess threads are reaped + // as soon as possible. + Status SetCapacity(int threads); + + // Heuristic for the default capacity of a thread pool for CPU-bound tasks. + // This is exposed as a static method to help with testing. + // The number returned is guaranteed to be greater or equal to one. + static int DefaultCapacity(); + + // Shutdown the pool. Once the pool starts shutting down, new tasks + // cannot be submitted anymore. + // If "wait" is true, shutdown waits for all pending tasks to be finished. + // If "wait" is false, workers are stopped as soon as currently executing + // tasks are finished. + Status Shutdown(bool wait = true); + + // Wait for the thread pool to become idle + // + // This is useful for sequencing tests + void WaitForIdle(); + + void KeepAlive(std::shared_ptr resource) override; + + struct State; + + protected: + FRIEND_TEST(TestThreadPool, SetCapacity); + FRIEND_TEST(TestGlobalThreadPool, Capacity); + ARROW_FRIEND_EXPORT friend ThreadPool* GetCpuThreadPool(); + + ThreadPool(); + + Status SpawnReal(TaskHints hints, FnOnce task, StopToken, + StopCallback&&) override; + + // Collect finished worker threads, making sure the OS threads have exited + void CollectFinishedWorkersUnlocked(); + // Launch a given number of additional workers + void LaunchWorkersUnlocked(int threads); + // Get the current actual capacity + int GetActualCapacity(); + + static std::shared_ptr MakeCpuThreadPool(); + + std::shared_ptr sp_state_; + State* state_; + bool shutdown_on_destroy_; +}; +#else // ARROW_ENABLE_THREADING +// an executor implementation which pretends to be a thread pool but runs everything +// on the main thread using a static queue (shared between all thread pools, otherwise +// cross-threadpool dependencies will break everything) +class ARROW_EXPORT ThreadPool : public SerialExecutor { + public: + ARROW_FRIEND_EXPORT friend ThreadPool* GetCpuThreadPool(); + + static Result> Make(int threads); + + // Like Make(), but takes care that the returned ThreadPool is compatible + // with destruction late at process exit. + static Result> MakeEternal(int threads); + + // Destroy thread pool; the pool will first be shut down + ~ThreadPool() override; + + // Return the desired number of worker threads. + // The actual number of workers may lag a bit before being adjusted to + // match this value. + int GetCapacity() override; + + virtual int GetActualCapacity(); + + bool OwnsThisThread() override { return true; } + + // Dynamically change the number of worker threads. + // without threading this is equal to the + // number of tasks that can be running at once + // (inside each other) + Status SetCapacity(int threads); + + static int DefaultCapacity() { return 8; } + + // Shutdown the pool. Once the pool starts shutting down, new tasks + // cannot be submitted anymore. + // If "wait" is true, shutdown waits for all pending tasks to be finished. + // If "wait" is false, workers are stopped as soon as currently executing + // tasks are finished. + Status Shutdown(bool wait = true); + + // Wait for the thread pool to become idle + // + // This is useful for sequencing tests + void WaitForIdle(); + + protected: + static std::shared_ptr MakeCpuThreadPool(); + ThreadPool(); +}; + +#endif // ARROW_ENABLE_THREADING + +// Return the process-global thread pool for CPU-bound tasks. +ARROW_EXPORT ThreadPool* GetCpuThreadPool(); + +/// \brief Potentially run an async operation serially (if use_threads is false) +/// \see RunSerially +/// +/// If `use_threads` is true, the global CPU executor is used. +/// If `use_threads` is false, a temporary SerialExecutor is used. +/// `get_future` is called (from this thread) with the chosen executor and must +/// return a future that will eventually finish. This function returns once the +/// future has finished. +template +typename Fut::SyncType RunSynchronously(FnOnce get_future, + bool use_threads) { + if (use_threads) { + auto fut = std::move(get_future)(GetCpuThreadPool()); + return FutureToSync(fut); + } else { + return SerialExecutor::RunInSerialExecutor(std::move(get_future)); + } +} + +/// \brief Potentially iterate an async generator serially (if use_threads is false) +/// using a potentially custom Executor +/// \see IterateGenerator +/// +/// If `use_threads` is true, the custom executor or, if null, +/// the global CPU executor will be used. Each call to +/// the iterator will simply wait until the next item is available. Tasks may run in +/// the background between calls. +/// +/// If `use_threads` is false, the calling thread only will be used. Each call to +/// the iterator will use the calling thread to do enough work to generate one item. +/// Tasks will be left in a queue until the next call and no work will be done between +/// calls. +template +Iterator IterateSynchronously( + FnOnce()>>(Executor*)> get_gen, bool use_threads, + Executor* executor) { + if (use_threads) { + auto used_executor = executor != NULLPTR ? executor : GetCpuThreadPool(); + auto maybe_gen = std::move(get_gen)(used_executor); + if (!maybe_gen.ok()) { + return MakeErrorIterator(maybe_gen.status()); + } + return MakeGeneratorIterator(*maybe_gen); + } else { + return SerialExecutor::IterateGenerator(std::move(get_gen)); + } +} + +/// \brief Potentially iterate an async generator serially (if use_threads is false) +/// using the default CPU thread pool +/// \see IterateGenerator +/// +/// If `use_threads` is true, the global CPU executor will be used. Each call to +/// the iterator will simply wait until the next item is available. Tasks may run in +/// the background between calls. +/// +/// If `use_threads` is false, the calling thread only will be used. Each call to +/// the iterator will use the calling thread to do enough work to generate one item. +/// Tasks will be left in a queue until the next call and no work will be done between +/// calls. +template +Iterator IterateSynchronously( + FnOnce()>>(Executor*)> get_gen, bool use_threads) { + return IterateSynchronously(std::move(get_gen), use_threads, NULLPTR); +} + +} // namespace internal +} // namespace arrow diff --git a/shared/package-files/43/4367347163a998ff4b7ce6cc2c84db86672e2800757dde85695225822320c3a9/ncr160wy60pp b/shared/package-files/43/4367347163a998ff4b7ce6cc2c84db86672e2800757dde85695225822320c3a9/ncr160wy60pp new file mode 100644 index 0000000000000000000000000000000000000000..236664d9dd6e9750075979ee6d5f9fc517dbdc4f Binary files /dev/null and b/shared/package-files/43/4367347163a998ff4b7ce6cc2c84db86672e2800757dde85695225822320c3a9/ncr160wy60pp differ diff --git a/shared/package-files/43/4368c00966aec2cd06c4873f433c5b00e80cac947a42cee8cb1ffa2caef356df/test_values.py b/shared/package-files/43/4368c00966aec2cd06c4873f433c5b00e80cac947a42cee8cb1ffa2caef356df/test_values.py new file mode 100644 index 0000000000000000000000000000000000000000..cb1595e68264fbe5f07b014be4975657fa2fa8cf --- /dev/null +++ b/shared/package-files/43/4368c00966aec2cd06c4873f433c5b00e80cac947a42cee8cb1ffa2caef356df/test_values.py @@ -0,0 +1,29 @@ +import numpy as np +import pytest + +from pandas import ( + IntervalIndex, + Series, + period_range, +) +import pandas._testing as tm + + +class TestValues: + @pytest.mark.parametrize( + "data", + [ + period_range("2000", periods=4), + IntervalIndex.from_breaks([1, 2, 3, 4]), + ], + ) + def test_values_object_extension_dtypes(self, data): + # https://github.com/pandas-dev/pandas/issues/23995 + result = Series(data).values + expected = np.array(data.astype(object)) + tm.assert_numpy_array_equal(result, expected) + + def test_values(self, datetime_series): + tm.assert_almost_equal( + datetime_series.values, list(datetime_series), check_dtype=False + ) diff --git a/shared/package-files/43/4369cfb0a2da996dee21db528550931887deb74233d10cc7e3f854c3b9e2ee33/bincount_cpu_dispatch.h b/shared/package-files/43/4369cfb0a2da996dee21db528550931887deb74233d10cc7e3f854c3b9e2ee33/bincount_cpu_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..cbd582bd3ae4c0f38c4ab3c019d053cf665f61f1 --- /dev/null +++ b/shared/package-files/43/4369cfb0a2da996dee21db528550931887deb74233d10cc7e3f854c3b9e2ee33/bincount_cpu_dispatch.h @@ -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 at::Tensor bincount(const at::Tensor & self, const c10::optional & weights={}, int64_t minlength=0); + +} // namespace cpu +} // namespace at diff --git a/shared/package-files/43/436cdf92c51d61cf764cbf29a3cd48fda40e9b01d3c1918f8ea5ef24cedc81e9/basic_decimal.h b/shared/package-files/43/436cdf92c51d61cf764cbf29a3cd48fda40e9b01d3c1918f8ea5ef24cedc81e9/basic_decimal.h new file mode 100644 index 0000000000000000000000000000000000000000..638c4870f1ded4567f9b77f695ac8c8f67db85b5 --- /dev/null +++ b/shared/package-files/43/436cdf92c51d61cf764cbf29a3cd48fda40e9b01d3c1918f8ea5ef24cedc81e9/basic_decimal.h @@ -0,0 +1,887 @@ +// 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 "arrow/util/endian.h" +#include "arrow/util/macros.h" +#include "arrow/util/type_traits.h" +#include "arrow/util/visibility.h" + +namespace arrow { + +enum class DecimalStatus { + kSuccess, + kDivideByZero, + kOverflow, + kRescaleDataLoss, +}; + +template +class GenericBasicDecimal { + protected: + struct LittleEndianArrayTag {}; + +#if ARROW_LITTLE_ENDIAN + static constexpr int kHighWordIndex = NWORDS - 1; + static constexpr int kLowWordIndex = 0; +#else + static constexpr int kHighWordIndex = 0; + static constexpr int kLowWordIndex = NWORDS - 1; +#endif + + public: + static constexpr int kBitWidth = BIT_WIDTH; + static constexpr int kByteWidth = kBitWidth / 8; + static constexpr int kNumWords = NWORDS; + + // A constructor tag to introduce a little-endian encoded array + static constexpr LittleEndianArrayTag LittleEndianArray{}; + + using WordArray = std::array; + + /// \brief Empty constructor creates a decimal with a value of 0. + constexpr GenericBasicDecimal() noexcept : array_({0}) {} + + /// \brief Create a decimal from the two's complement representation. + /// + /// Input array is assumed to be in native endianness. + explicit constexpr GenericBasicDecimal(const WordArray& array) noexcept + : array_(array) {} + + /// \brief Create a decimal from the two's complement representation. + /// + /// Input array is assumed to be in little endianness, with native endian elements. + GenericBasicDecimal(LittleEndianArrayTag, const WordArray& array) noexcept + : GenericBasicDecimal(bit_util::little_endian::ToNative(array)) {} + + /// \brief Create a decimal from any integer not wider than 64 bits. + template ::value && (sizeof(T) <= sizeof(uint64_t)), T>::type> + constexpr GenericBasicDecimal(T value) noexcept // NOLINT(runtime/explicit) + : array_(WordsFromLowBits(value)) {} + + /// \brief Create a decimal from an array of bytes. + /// + /// Bytes are assumed to be in native-endian byte order. + explicit GenericBasicDecimal(const uint8_t* bytes) { + memcpy(array_.data(), bytes, sizeof(array_)); + } + + /// \brief Get the bits of the two's complement representation of the number. + /// + /// The elements are in native endian order. The bits within each uint64_t element + /// are in native endian order. For example, on a little endian machine, + /// BasicDecimal128(123).native_endian_array() = {123, 0}; + /// but on a big endian machine, + /// BasicDecimal128(123).native_endian_array() = {0, 123}; + constexpr const WordArray& native_endian_array() const { return array_; } + + /// \brief Get the bits of the two's complement representation of the number. + /// + /// The elements are in little endian order. However, the bits within each + /// uint64_t element are in native endian order. + /// For example, BasicDecimal128(123).little_endian_array() = {123, 0}; + WordArray little_endian_array() const { + return bit_util::little_endian::FromNative(array_); + } + + const uint8_t* native_endian_bytes() const { + return reinterpret_cast(array_.data()); + } + + uint8_t* mutable_native_endian_bytes() { + return reinterpret_cast(array_.data()); + } + + /// \brief Return the raw bytes of the value in native-endian byte order. + std::array ToBytes() const { + std::array out{{0}}; + memcpy(out.data(), array_.data(), kByteWidth); + return out; + } + + /// \brief Copy the raw bytes of the value in native-endian byte order. + void ToBytes(uint8_t* out) const { memcpy(out, array_.data(), kByteWidth); } + + /// Return 1 if positive or zero, -1 if strictly negative. + int64_t Sign() const { + return 1 | (static_cast(array_[kHighWordIndex]) >> 63); + } + + bool IsNegative() const { return static_cast(array_[kHighWordIndex]) < 0; } + + explicit operator bool() const { return array_ != WordArray{}; } + + friend bool operator==(const GenericBasicDecimal& left, + const GenericBasicDecimal& right) { + return left.array_ == right.array_; + } + + friend bool operator!=(const GenericBasicDecimal& left, + const GenericBasicDecimal& right) { + return left.array_ != right.array_; + } + + protected: + WordArray array_; + + template + static constexpr uint64_t SignExtend(T low_bits) noexcept { + return low_bits >= T{} ? uint64_t{0} : ~uint64_t{0}; + } + + template + static constexpr WordArray WordsFromLowBits(T low_bits) { + WordArray words{}; + if (low_bits < T{}) { + for (auto& word : words) { + word = ~uint64_t{0}; + } + } + words[kLowWordIndex] = static_cast(low_bits); + return words; + } +}; + +template +class ARROW_EXPORT SmallBasicDecimal { + public: + static_assert( + std::is_same_v || std::is_same_v, + "for bitwidths larger than 64 bits use BasicDecimal128 and BasicDecimal256"); + + static constexpr int kMaxPrecision = std::numeric_limits::digits10; + static constexpr int kMaxScale = kMaxPrecision; + static constexpr int kBitWidth = sizeof(DigitType) * CHAR_BIT; + static constexpr int kByteWidth = sizeof(DigitType); + + using WordArray = std::array, 1>; + + /// \brief Empty constructor creates a decimal with a value of 0. + constexpr SmallBasicDecimal() noexcept : value_(0) {} + + /// \brief Create a decimal from any integer not wider than 64 bits. + template ::value && (sizeof(T) <= sizeof(int64_t)), T>::type> + constexpr SmallBasicDecimal(T value) noexcept // NOLINT(runtime/explicit) + : value_(static_cast(value)) {} + + /// \brief Create a decimal from an array of bytes. + /// + /// Bytes are assumed to be in native-endian byte order. + explicit SmallBasicDecimal(const uint8_t* bytes) { + memcpy(&value_, bytes, sizeof(value_)); + } + + constexpr const WordArray native_endian_array() const { + return WordArray{static_cast(value_)}; + } + + constexpr const WordArray little_endian_array() const { + return bit_util::little_endian::FromNative( + WordArray{static_cast(value_)}); + } + + const uint8_t* native_endian_bytes() const { + return reinterpret_cast(&value_); + } + + uint8_t* mutable_native_endian_bytes() { return reinterpret_cast(&value_); } + + /// \brief Return the raw bytes of the value in native-endian byte order. + std::array ToBytes() const { + std::array out{{0}}; + memcpy(out.data(), &value_, kByteWidth); + return out; + } + + /// \brief Copy the raw bytes of the value in native-endian byte order + void ToBytes(uint8_t* out) const { memcpy(out, &value_, kByteWidth); } + + /// \brief Return 1 if positive or 0, -1 if strictly negative + int64_t Sign() const { return 1 | (value_ >> (kBitWidth - 1)); } + + bool IsNegative() const { return value_ < 0; } + + explicit operator bool() const { return value_ != 0; } + + friend bool operator==(const SmallBasicDecimal& left, const SmallBasicDecimal& right) { + return left.value_ == right.value_; + } + + friend bool operator!=(const SmallBasicDecimal& left, const SmallBasicDecimal& right) { + return left.value_ != right.value_; + } + + DigitType value() const { return value_; } + + /// \brief count the number of leading binary zeroes. + int32_t CountLeadingBinaryZeros() const; + + constexpr uint64_t low_bits() const { return static_cast(value_); } + + protected: + DigitType value_; +}; + +class BasicDecimal32; +class BasicDecimal64; + +ARROW_EXPORT bool operator<(const BasicDecimal32& left, const BasicDecimal32& right); +ARROW_EXPORT bool operator<=(const BasicDecimal32& left, const BasicDecimal32& right); +ARROW_EXPORT bool operator>(const BasicDecimal32& left, const BasicDecimal32& right); +ARROW_EXPORT bool operator>=(const BasicDecimal32& left, const BasicDecimal32& right); + +ARROW_EXPORT BasicDecimal32 operator-(const BasicDecimal32& self); +ARROW_EXPORT BasicDecimal32 operator~(const BasicDecimal32& self); +ARROW_EXPORT BasicDecimal32 operator+(const BasicDecimal32& left, + const BasicDecimal32& right); +ARROW_EXPORT BasicDecimal32 operator-(const BasicDecimal32& left, + const BasicDecimal32& right); +ARROW_EXPORT BasicDecimal32 operator*(const BasicDecimal32& left, + const BasicDecimal32& right); +ARROW_EXPORT BasicDecimal32 operator/(const BasicDecimal32& left, + const BasicDecimal32& right); +ARROW_EXPORT BasicDecimal32 operator%(const BasicDecimal32& left, + const BasicDecimal32& right); + +class ARROW_EXPORT BasicDecimal32 : public SmallBasicDecimal { + public: + using SmallBasicDecimal::SmallBasicDecimal; + using ValueType = int32_t; + + /// \brief Negate the current value (in-place) + BasicDecimal32& Negate(); + + /// \brief Absolute value (in-place) + BasicDecimal32& Abs() { return *this < 0 ? Negate() : *this; } + + /// \brief Absolute value + static BasicDecimal32 Abs(const BasicDecimal32& in) { + BasicDecimal32 result(in); + return result.Abs(); + } + + /// \brief Add a number to this one. The result is truncated to 32 bits. + BasicDecimal32& operator+=(const BasicDecimal32& right) { + value_ += right.value_; + return *this; + } + + /// \brief Subtract a number from this one. The result is truncated to 32 bits. + BasicDecimal32& operator-=(const BasicDecimal32& right) { + value_ -= right.value_; + return *this; + } + + /// \brief Multiply this number by another. The result is truncated to 32 bits. + BasicDecimal32& operator*=(const BasicDecimal32& right) { + value_ *= static_cast(right.value_); + return *this; + } + + /// \brief Divide this number by the divisor and return the result. + /// + /// This operation is not destructive. + /// The answer rounds to zero. Signs work like: + /// 21 / 5 -> 4, 1 + /// -21 / 5 -> -4, -1 + /// 21 / -5 -> -4, 1 + /// -21 / -5 -> 4, -1 + /// \param[in] divisor the number to divide by + /// \param[out] result the quotient + /// \param[out] remainder the remainder after the division + DecimalStatus Divide(const BasicDecimal32& divisor, BasicDecimal32* result, + BasicDecimal32* remainder) const; + + /// \brief In-place division + BasicDecimal32& operator/=(const BasicDecimal32& right) { + value_ /= right.value_; + return *this; + } + + /// \brief Bitwise "or" between two BasicDecimal32s + BasicDecimal32& operator|=(const BasicDecimal32& right) { + value_ |= right.value_; + return *this; + } + + /// \brief Bitwise "and" between two BasicDecimal32s + BasicDecimal32& operator&=(const BasicDecimal32& right) { + value_ &= right.value_; + return *this; + } + /// \brief Shift left by the given number of bits. + BasicDecimal32& operator<<=(uint32_t bits); + + BasicDecimal32 operator<<(uint32_t bits) const { + auto res = *this; + res <<= bits; + return res; + } + + /// \brief Shift right by the given number of bits. + /// + /// Negative values will sign-extend + BasicDecimal32& operator>>=(uint32_t bits); + + BasicDecimal32 operator>>(uint32_t bits) const { + auto res = *this; + res >>= bits; + return res; + } + + /// \brief Convert BasicDecimal32 from one scale to another + DecimalStatus Rescale(int32_t original_scale, int32_t new_scale, + BasicDecimal32* out) const; + + void GetWholeAndFraction(int scale, BasicDecimal32* whole, + BasicDecimal32* fraction) const; + + /// \brief Scale up. + BasicDecimal32 IncreaseScaleBy(int32_t increase_by) const; + + /// \brief Scale down. + /// + /// - If 'round' is true, the right-most digits are dropped and the result value is + /// rounded up (+1 for +ve, -1 for -ve) based on the value of the dropped digits + /// (>= 10^reduce_by / 2). + /// - If 'round' is false, the right-most digits are simply dropped. + BasicDecimal32 ReduceScaleBy(int32_t reduce_by, bool round = true) const; + + /// \brief Whether this number fits in the given precision + /// + /// Return true if the number of significant digits is less or equal to 'precision'. + bool FitsInPrecision(int32_t precision) const; + + /// \brief Get the maximum valid unscaled decimal value. + static const BasicDecimal32& GetMaxValue(); + /// \brief Get the maximum valid unscaled decimal value for the given precision. + static BasicDecimal32 GetMaxValue(int32_t precision); + + /// \brief Get the maximum decimal value (is not a valid value). + static constexpr BasicDecimal32 GetMaxSentinel() { + return BasicDecimal32(std::numeric_limits::max()); + } + + /// \brief Get the minimum decimal value (is not a valid value). + static constexpr BasicDecimal32 GetMinSentinel() { + return BasicDecimal32(std::numeric_limits::min()); + } + + /// \brief Scale multiplier for a given scale value. + static const BasicDecimal32& GetScaleMultiplier(int32_t scale); + /// \brief Half-scale multiplier for a given scale value. + static const BasicDecimal32& GetHalfScaleMultiplier(int32_t scale); + + explicit operator BasicDecimal64() const; +}; + +ARROW_EXPORT bool operator<(const BasicDecimal64& left, const BasicDecimal64& right); +ARROW_EXPORT bool operator<=(const BasicDecimal64& left, const BasicDecimal64& right); +ARROW_EXPORT bool operator>(const BasicDecimal64& left, const BasicDecimal64& right); +ARROW_EXPORT bool operator>=(const BasicDecimal64& left, const BasicDecimal64& right); + +ARROW_EXPORT BasicDecimal64 operator-(const BasicDecimal64& self); +ARROW_EXPORT BasicDecimal64 operator~(const BasicDecimal64& self); +ARROW_EXPORT BasicDecimal64 operator+(const BasicDecimal64& left, + const BasicDecimal64& right); +ARROW_EXPORT BasicDecimal64 operator-(const BasicDecimal64& left, + const BasicDecimal64& right); +ARROW_EXPORT BasicDecimal64 operator*(const BasicDecimal64& left, + const BasicDecimal64& right); +ARROW_EXPORT BasicDecimal64 operator/(const BasicDecimal64& left, + const BasicDecimal64& right); +ARROW_EXPORT BasicDecimal64 operator%(const BasicDecimal64& left, + const BasicDecimal64& right); + +class ARROW_EXPORT BasicDecimal64 : public SmallBasicDecimal { + public: + using SmallBasicDecimal::SmallBasicDecimal; + using ValueType = int64_t; + + /// \brief Negate the current value (in-place) + BasicDecimal64& Negate(); + + /// \brief Absolute value (in-place) + BasicDecimal64& Abs() { return *this < 0 ? Negate() : *this; } + + /// \brief Absolute value + static BasicDecimal64 Abs(const BasicDecimal64& in) { + BasicDecimal64 result(in); + return result.Abs(); + } + + /// \brief Add a number to this one. The result is truncated to 32 bits. + BasicDecimal64& operator+=(const BasicDecimal64& right) { + value_ += right.value_; + return *this; + } + + /// \brief Subtract a number from this one. The result is truncated to 32 bits. + BasicDecimal64& operator-=(const BasicDecimal64& right) { + value_ -= right.value_; + return *this; + } + + /// \brief Multiply this number by another. The result is truncated to 32 bits. + BasicDecimal64& operator*=(const BasicDecimal64& right) { + value_ *= static_cast(right.value_); + return *this; + } + + /// \brief Divide this number by the divisor and return the result. + /// + /// This operation is not destructive. + /// The answer rounds to zero. Signs work like: + /// 21 / 5 -> 4, 1 + /// -21 / 5 -> -4, -1 + /// 21 / -5 -> -4, 1 + /// -21 / -5 -> 4, -1 + /// \param[in] divisor the number to divide by + /// \param[out] result the quotient + /// \param[out] remainder the remainder after the division + DecimalStatus Divide(const BasicDecimal64& divisor, BasicDecimal64* result, + BasicDecimal64* remainder) const; + + /// \brief In-place division + BasicDecimal64& operator/=(const BasicDecimal64& right) { + value_ /= right.value_; + return *this; + } + + /// \brief Bitwise "or" between two BasicDecimal64s + BasicDecimal64& operator|=(const BasicDecimal64& right) { + value_ |= right.value_; + return *this; + } + + /// \brief Bitwise "and" between two BasicDecimal64s + BasicDecimal64& operator&=(const BasicDecimal64& right) { + value_ &= right.value_; + return *this; + } + + /// \brief Shift left by the given number of bits. + BasicDecimal64& operator<<=(uint32_t bits); + + BasicDecimal64 operator<<(uint32_t bits) const { + auto res = *this; + res <<= bits; + return res; + } + + /// \brief Shift right by the given number of bits. + /// + /// Negative values will sign-extend + BasicDecimal64& operator>>=(uint32_t bits); + + BasicDecimal64 operator>>(uint32_t bits) const { + auto res = *this; + res >>= bits; + return res; + } + + /// \brief Convert BasicDecimal32 from one scale to another + DecimalStatus Rescale(int32_t original_scale, int32_t new_scale, + BasicDecimal64* out) const; + + void GetWholeAndFraction(int scale, BasicDecimal64* whole, + BasicDecimal64* fraction) const; + + /// \brief Scale up. + BasicDecimal64 IncreaseScaleBy(int32_t increase_by) const; + + /// \brief Scale down. + /// + /// - If 'round' is true, the right-most digits are dropped and the result value is + /// rounded up (+1 for +ve, -1 for -ve) based on the value of the dropped digits + /// (>= 10^reduce_by / 2). + /// - If 'round' is false, the right-most digits are simply dropped. + BasicDecimal64 ReduceScaleBy(int32_t reduce_by, bool round = true) const; + + /// \brief Whether this number fits in the given precision + /// + /// Return true if the number of significant digits is less or equal to 'precision'. + bool FitsInPrecision(int32_t precision) const; + + /// \brief Get the maximum valid unscaled decimal value. + static const BasicDecimal64& GetMaxValue(); + /// \brief Get the maximum valid unscaled decimal value for the given precision. + static BasicDecimal64 GetMaxValue(int32_t precision); + + /// \brief Get the maximum decimal value (is not a valid value). + static constexpr BasicDecimal64 GetMaxSentinel() { + return BasicDecimal64(std::numeric_limits::max()); + } + + /// \brief Get the minimum decimal value (is not a valid value). + static constexpr BasicDecimal64 GetMinSentinel() { + return BasicDecimal64(std::numeric_limits::min()); + } + + /// \brief Scale multiplier for a given scale value. + static const BasicDecimal64& GetScaleMultiplier(int32_t scale); + /// \brief Half-scale multiplier for a given scale value. + static const BasicDecimal64& GetHalfScaleMultiplier(int32_t scale); +}; + +/// Represents a signed 128-bit integer in two's complement. +/// +/// This class is also compiled into LLVM IR - so, it should not have cpp references like +/// streams and boost. +class ARROW_EXPORT BasicDecimal128 : public GenericBasicDecimal { + public: + static constexpr int kMaxPrecision = 38; + static constexpr int kMaxScale = 38; + + using GenericBasicDecimal::GenericBasicDecimal; + + constexpr BasicDecimal128() noexcept : GenericBasicDecimal() {} + + /// \brief Create a BasicDecimal128 from the two's complement representation. +#if ARROW_LITTLE_ENDIAN + constexpr BasicDecimal128(int64_t high, uint64_t low) noexcept + : BasicDecimal128(WordArray{low, static_cast(high)}) {} +#else + constexpr BasicDecimal128(int64_t high, uint64_t low) noexcept + : BasicDecimal128(WordArray{static_cast(high), low}) {} +#endif + + /// \brief Negate the current value (in-place) + BasicDecimal128& Negate(); + + /// \brief Absolute value (in-place) + BasicDecimal128& Abs(); + + /// \brief Absolute value + static BasicDecimal128 Abs(const BasicDecimal128& left); + + /// \brief Add a number to this one. The result is truncated to 128 bits. + BasicDecimal128& operator+=(const BasicDecimal128& right); + + /// \brief Subtract a number from this one. The result is truncated to 128 bits. + BasicDecimal128& operator-=(const BasicDecimal128& right); + + /// \brief Multiply this number by another number. The result is truncated to 128 bits. + BasicDecimal128& operator*=(const BasicDecimal128& right); + + /// Divide this number by right and return the result. + /// + /// This operation is not destructive. + /// The answer rounds to zero. Signs work like: + /// 21 / 5 -> 4, 1 + /// -21 / 5 -> -4, -1 + /// 21 / -5 -> -4, 1 + /// -21 / -5 -> 4, -1 + /// \param[in] divisor the number to divide by + /// \param[out] result the quotient + /// \param[out] remainder the remainder after the division + DecimalStatus Divide(const BasicDecimal128& divisor, BasicDecimal128* result, + BasicDecimal128* remainder) const; + + /// \brief In-place division. + BasicDecimal128& operator/=(const BasicDecimal128& right); + + /// \brief Bitwise "or" between two BasicDecimal128. + BasicDecimal128& operator|=(const BasicDecimal128& right); + + /// \brief Bitwise "and" between two BasicDecimal128. + BasicDecimal128& operator&=(const BasicDecimal128& right); + + /// \brief Shift left by the given number of bits. + BasicDecimal128& operator<<=(uint32_t bits); + + BasicDecimal128 operator<<(uint32_t bits) const { + auto res = *this; + res <<= bits; + return res; + } + + /// \brief Shift right by the given number of bits. + /// + /// Negative values will sign-extend. + BasicDecimal128& operator>>=(uint32_t bits); + + BasicDecimal128 operator>>(uint32_t bits) const { + auto res = *this; + res >>= bits; + return res; + } + + /// \brief Get the high bits of the two's complement representation of the number. + constexpr int64_t high_bits() const { +#if ARROW_LITTLE_ENDIAN + return static_cast(array_[1]); +#else + return static_cast(array_[0]); +#endif + } + + /// \brief Get the low bits of the two's complement representation of the number. + constexpr uint64_t low_bits() const { +#if ARROW_LITTLE_ENDIAN + return array_[0]; +#else + return array_[1]; +#endif + } + + /// \brief separate the integer and fractional parts for the given scale. + void GetWholeAndFraction(int32_t scale, BasicDecimal128* whole, + BasicDecimal128* fraction) const; + + /// \brief Scale multiplier for given scale value. + static const BasicDecimal128& GetScaleMultiplier(int32_t scale); + /// \brief Half-scale multiplier for given scale value. + static const BasicDecimal128& GetHalfScaleMultiplier(int32_t scale); + + /// \brief Convert BasicDecimal128 from one scale to another + DecimalStatus Rescale(int32_t original_scale, int32_t new_scale, + BasicDecimal128* out) const; + + /// \brief Scale up. + BasicDecimal128 IncreaseScaleBy(int32_t increase_by) const; + + /// \brief Scale down. + /// - If 'round' is true, the right-most digits are dropped and the result value is + /// rounded up (+1 for +ve, -1 for -ve) based on the value of the dropped digits + /// (>= 10^reduce_by / 2). + /// - If 'round' is false, the right-most digits are simply dropped. + BasicDecimal128 ReduceScaleBy(int32_t reduce_by, bool round = true) const; + + /// \brief Whether this number fits in the given precision + /// + /// Return true if the number of significant digits is less or equal to `precision`. + bool FitsInPrecision(int32_t precision) const; + + /// \brief count the number of leading binary zeroes. + int32_t CountLeadingBinaryZeros() const; + + /// \brief Get the maximum valid unscaled decimal value. + static const BasicDecimal128& GetMaxValue(); + + /// \brief Get the maximum valid unscaled decimal value for the given precision. + static BasicDecimal128 GetMaxValue(int32_t precision); + + /// \brief Get the maximum decimal value (is not a valid value). + static constexpr BasicDecimal128 GetMaxSentinel() { + return BasicDecimal128(/*high=*/std::numeric_limits::max(), + /*low=*/std::numeric_limits::max()); + } + /// \brief Get the minimum decimal value (is not a valid value). + static constexpr BasicDecimal128 GetMinSentinel() { + return BasicDecimal128(/*high=*/std::numeric_limits::min(), + /*low=*/std::numeric_limits::min()); + } +}; + +ARROW_EXPORT bool operator<(const BasicDecimal128& left, const BasicDecimal128& right); +ARROW_EXPORT bool operator<=(const BasicDecimal128& left, const BasicDecimal128& right); +ARROW_EXPORT bool operator>(const BasicDecimal128& left, const BasicDecimal128& right); +ARROW_EXPORT bool operator>=(const BasicDecimal128& left, const BasicDecimal128& right); + +ARROW_EXPORT BasicDecimal128 operator-(const BasicDecimal128& operand); +ARROW_EXPORT BasicDecimal128 operator~(const BasicDecimal128& operand); +ARROW_EXPORT BasicDecimal128 operator+(const BasicDecimal128& left, + const BasicDecimal128& right); +ARROW_EXPORT BasicDecimal128 operator-(const BasicDecimal128& left, + const BasicDecimal128& right); +ARROW_EXPORT BasicDecimal128 operator*(const BasicDecimal128& left, + const BasicDecimal128& right); +ARROW_EXPORT BasicDecimal128 operator/(const BasicDecimal128& left, + const BasicDecimal128& right); +ARROW_EXPORT BasicDecimal128 operator%(const BasicDecimal128& left, + const BasicDecimal128& right); + +class ARROW_EXPORT BasicDecimal256 : public GenericBasicDecimal { + public: + using GenericBasicDecimal::GenericBasicDecimal; + + static constexpr int kMaxPrecision = 76; + static constexpr int kMaxScale = 76; + + constexpr BasicDecimal256() noexcept : GenericBasicDecimal() {} + + explicit BasicDecimal256(const BasicDecimal128& value) noexcept + : BasicDecimal256(bit_util::little_endian::ToNative( + {value.low_bits(), static_cast(value.high_bits()), + SignExtend(value.high_bits()), SignExtend(value.high_bits())})) {} + + explicit BasicDecimal256(const BasicDecimal64& value) noexcept + : BasicDecimal256(bit_util::little_endian::ToNative( + {value.low_bits(), SignExtend(value.value()), SignExtend(value.value()), + SignExtend(value.value())})) {} + + explicit BasicDecimal256(const BasicDecimal32& value) noexcept + : BasicDecimal256(bit_util::little_endian::ToNative( + {value.low_bits(), SignExtend(value.value()), SignExtend(value.value()), + SignExtend(value.value())})) {} + + /// \brief Negate the current value (in-place) + BasicDecimal256& Negate(); + + /// \brief Absolute value (in-place) + BasicDecimal256& Abs(); + + /// \brief Absolute value + static BasicDecimal256 Abs(const BasicDecimal256& left); + + /// \brief Add a number to this one. The result is truncated to 256 bits. + BasicDecimal256& operator+=(const BasicDecimal256& right); + + /// \brief Subtract a number from this one. The result is truncated to 256 bits. + BasicDecimal256& operator-=(const BasicDecimal256& right); + + /// \brief Get the lowest bits of the two's complement representation of the number. + uint64_t low_bits() const { return bit_util::little_endian::Make(array_)[0]; } + + /// \brief separate the integer and fractional parts for the given scale. + void GetWholeAndFraction(int32_t scale, BasicDecimal256* whole, + BasicDecimal256* fraction) const; + + /// \brief Scale multiplier for given scale value. + static const BasicDecimal256& GetScaleMultiplier(int32_t scale); + /// \brief Half-scale multiplier for given scale value. + static const BasicDecimal256& GetHalfScaleMultiplier(int32_t scale); + + /// \brief Convert BasicDecimal256 from one scale to another + DecimalStatus Rescale(int32_t original_scale, int32_t new_scale, + BasicDecimal256* out) const; + + /// \brief Scale up. + BasicDecimal256 IncreaseScaleBy(int32_t increase_by) const; + + /// \brief Scale down. + /// - If 'round' is true, the right-most digits are dropped and the result value is + /// rounded up (+1 for positive, -1 for negative) based on the value of the + /// dropped digits (>= 10^reduce_by / 2). + /// - If 'round' is false, the right-most digits are simply dropped. + BasicDecimal256 ReduceScaleBy(int32_t reduce_by, bool round = true) const; + + /// \brief Whether this number fits in the given precision + /// + /// Return true if the number of significant digits is less or equal to `precision`. + bool FitsInPrecision(int32_t precision) const; + + /// \brief Multiply this number by another number. The result is truncated to 256 bits. + BasicDecimal256& operator*=(const BasicDecimal256& right); + + /// Divide this number by right and return the result. + /// + /// This operation is not destructive. + /// The answer rounds to zero. Signs work like: + /// 21 / 5 -> 4, 1 + /// -21 / 5 -> -4, -1 + /// 21 / -5 -> -4, 1 + /// -21 / -5 -> 4, -1 + /// \param[in] divisor the number to divide by + /// \param[out] result the quotient + /// \param[out] remainder the remainder after the division + DecimalStatus Divide(const BasicDecimal256& divisor, BasicDecimal256* result, + BasicDecimal256* remainder) const; + + /// \brief Shift left by the given number of bits. + BasicDecimal256& operator<<=(uint32_t bits); + + BasicDecimal256 operator<<(uint32_t bits) const { + auto res = *this; + res <<= bits; + return res; + } + + /// \brief Shift right by the given number of bits. + /// + /// Negative values will sign-extend. + BasicDecimal256& operator>>=(uint32_t bits); + + BasicDecimal256 operator>>(uint32_t bits) const { + auto res = *this; + res >>= bits; + return res; + } + + /// \brief In-place division. + BasicDecimal256& operator/=(const BasicDecimal256& right); + + /// \brief Get the maximum valid unscaled decimal value for the given precision. + static BasicDecimal256 GetMaxValue(int32_t precision); + + /// \brief Get the maximum decimal value (is not a valid value). + static constexpr BasicDecimal256 GetMaxSentinel() { +#if ARROW_LITTLE_ENDIAN + return BasicDecimal256({std::numeric_limits::max(), + std::numeric_limits::max(), + std::numeric_limits::max(), + static_cast(std::numeric_limits::max())}); +#else + return BasicDecimal256({static_cast(std::numeric_limits::max()), + std::numeric_limits::max(), + std::numeric_limits::max(), + std::numeric_limits::max()}); +#endif + } + /// \brief Get the minimum decimal value (is not a valid value). + static constexpr BasicDecimal256 GetMinSentinel() { +#if ARROW_LITTLE_ENDIAN + return BasicDecimal256( + {0, 0, 0, static_cast(std::numeric_limits::min())}); +#else + return BasicDecimal256( + {static_cast(std::numeric_limits::min()), 0, 0, 0}); +#endif + } +}; + +ARROW_EXPORT bool operator<(const BasicDecimal256& left, const BasicDecimal256& right); + +ARROW_EXPORT inline bool operator<=(const BasicDecimal256& left, + const BasicDecimal256& right) { + return !operator<(right, left); +} + +ARROW_EXPORT inline bool operator>(const BasicDecimal256& left, + const BasicDecimal256& right) { + return operator<(right, left); +} + +ARROW_EXPORT inline bool operator>=(const BasicDecimal256& left, + const BasicDecimal256& right) { + return !operator<(left, right); +} + +ARROW_EXPORT BasicDecimal256 operator-(const BasicDecimal256& operand); +ARROW_EXPORT BasicDecimal256 operator~(const BasicDecimal256& operand); +ARROW_EXPORT BasicDecimal256 operator+(const BasicDecimal256& left, + const BasicDecimal256& right); +ARROW_EXPORT BasicDecimal256 operator*(const BasicDecimal256& left, + const BasicDecimal256& right); +ARROW_EXPORT BasicDecimal256 operator/(const BasicDecimal256& left, + const BasicDecimal256& right); + +} // namespace arrow diff --git a/shared/package-files/43/436e5e803854b3ec6b961e68cb86419673aa179a49b50d52468dbcaf99e7b9d6/control_plots.py b/shared/package-files/43/436e5e803854b3ec6b961e68cb86419673aa179a49b50d52468dbcaf99e7b9d6/control_plots.py new file mode 100644 index 0000000000000000000000000000000000000000..53f0ac4a8d610192733aaca456b3a69e03bbd97f --- /dev/null +++ b/shared/package-files/43/436e5e803854b3ec6b961e68cb86419673aa179a49b50d52468dbcaf99e7b9d6/control_plots.py @@ -0,0 +1,961 @@ +from sympy.core.numbers import I, pi +from sympy.functions.elementary.exponential import (exp, log) +from sympy.polys.partfrac import apart +from sympy.core.symbol import Dummy +from sympy.external import import_module +from sympy.functions import arg, Abs +from sympy.integrals.laplace import _fast_inverse_laplace +from sympy.physics.control.lti import SISOLinearTimeInvariant +from sympy.plotting.plot import LineOver1DRangeSeries +from sympy.polys.polytools import Poly +from sympy.printing.latex import latex + +__all__ = ['pole_zero_numerical_data', 'pole_zero_plot', + 'step_response_numerical_data', 'step_response_plot', + 'impulse_response_numerical_data', 'impulse_response_plot', + 'ramp_response_numerical_data', 'ramp_response_plot', + 'bode_magnitude_numerical_data', 'bode_phase_numerical_data', + 'bode_magnitude_plot', 'bode_phase_plot', 'bode_plot'] + +matplotlib = import_module( + 'matplotlib', import_kwargs={'fromlist': ['pyplot']}, + catch=(RuntimeError,)) + +numpy = import_module('numpy') + +if matplotlib: + plt = matplotlib.pyplot + +if numpy: + np = numpy # Matplotlib already has numpy as a compulsory dependency. No need to install it separately. + + +def _check_system(system): + """Function to check whether the dynamical system passed for plots is + compatible or not.""" + if not isinstance(system, SISOLinearTimeInvariant): + raise NotImplementedError("Only SISO LTI systems are currently supported.") + sys = system.to_expr() + len_free_symbols = len(sys.free_symbols) + if len_free_symbols > 1: + raise ValueError("Extra degree of freedom found. Make sure" + " that there are no free symbols in the dynamical system other" + " than the variable of Laplace transform.") + if sys.has(exp): + # Should test that exp is not part of a constant, in which case + # no exception is required, compare exp(s) with s*exp(1) + raise NotImplementedError("Time delay terms are not supported.") + + +def pole_zero_numerical_data(system): + """ + Returns the numerical data of poles and zeros of the system. + It is internally used by ``pole_zero_plot`` to get the data + for plotting poles and zeros. Users can use this data to further + analyse the dynamics of the system or plot using a different + backend/plotting-module. + + Parameters + ========== + + system : SISOLinearTimeInvariant + The system for which the pole-zero data is to be computed. + + Returns + ======= + + tuple : (zeros, poles) + zeros = Zeros of the system. NumPy array of complex numbers. + poles = Poles of the system. NumPy array of complex numbers. + + Raises + ====== + + NotImplementedError + When a SISO LTI system is not passed. + + When time delay terms are present in the system. + + ValueError + When more than one free symbol is present in the system. + The only variable in the transfer function should be + the variable of the Laplace transform. + + Examples + ======== + + >>> from sympy.abc import s + >>> from sympy.physics.control.lti import TransferFunction + >>> from sympy.physics.control.control_plots import pole_zero_numerical_data + >>> tf1 = TransferFunction(s**2 + 1, s**4 + 4*s**3 + 6*s**2 + 5*s + 2, s) + >>> pole_zero_numerical_data(tf1) # doctest: +SKIP + ([-0.+1.j 0.-1.j], [-2. +0.j -0.5+0.8660254j -0.5-0.8660254j -1. +0.j ]) + + See Also + ======== + + pole_zero_plot + + """ + _check_system(system) + system = system.doit() # Get the equivalent TransferFunction object. + + num_poly = Poly(system.num, system.var).all_coeffs() + den_poly = Poly(system.den, system.var).all_coeffs() + + num_poly = np.array(num_poly, dtype=np.complex128) + den_poly = np.array(den_poly, dtype=np.complex128) + + zeros = np.roots(num_poly) + poles = np.roots(den_poly) + + return zeros, poles + + +def pole_zero_plot(system, pole_color='blue', pole_markersize=10, + zero_color='orange', zero_markersize=7, grid=True, show_axes=True, + show=True, **kwargs): + r""" + Returns the Pole-Zero plot (also known as PZ Plot or PZ Map) of a system. + + A Pole-Zero plot is a graphical representation of a system's poles and + zeros. It is plotted on a complex plane, with circular markers representing + the system's zeros and 'x' shaped markers representing the system's poles. + + Parameters + ========== + + system : SISOLinearTimeInvariant type systems + The system for which the pole-zero plot is to be computed. + pole_color : str, tuple, optional + The color of the pole points on the plot. Default color + is blue. The color can be provided as a matplotlib color string, + or a 3-tuple of floats each in the 0-1 range. + pole_markersize : Number, optional + The size of the markers used to mark the poles in the plot. + Default pole markersize is 10. + zero_color : str, tuple, optional + The color of the zero points on the plot. Default color + is orange. The color can be provided as a matplotlib color string, + or a 3-tuple of floats each in the 0-1 range. + zero_markersize : Number, optional + The size of the markers used to mark the zeros in the plot. + Default zero markersize is 7. + grid : boolean, optional + If ``True``, the plot will have a grid. Defaults to True. + show_axes : boolean, optional + If ``True``, the coordinate axes will be shown. Defaults to False. + show : boolean, optional + If ``True``, the plot will be displayed otherwise + the equivalent matplotlib ``plot`` object will be returned. + Defaults to True. + + Examples + ======== + + .. plot:: + :context: close-figs + :format: doctest + :include-source: True + + >>> from sympy.abc import s + >>> from sympy.physics.control.lti import TransferFunction + >>> from sympy.physics.control.control_plots import pole_zero_plot + >>> tf1 = TransferFunction(s**2 + 1, s**4 + 4*s**3 + 6*s**2 + 5*s + 2, s) + >>> pole_zero_plot(tf1) # doctest: +SKIP + + See Also + ======== + + pole_zero_numerical_data + + References + ========== + + .. [1] https://en.wikipedia.org/wiki/Pole%E2%80%93zero_plot + + """ + zeros, poles = pole_zero_numerical_data(system) + + zero_real = np.real(zeros) + zero_imag = np.imag(zeros) + + pole_real = np.real(poles) + pole_imag = np.imag(poles) + + plt.plot(pole_real, pole_imag, 'x', mfc='none', + markersize=pole_markersize, color=pole_color) + plt.plot(zero_real, zero_imag, 'o', markersize=zero_markersize, + color=zero_color) + plt.xlabel('Real Axis') + plt.ylabel('Imaginary Axis') + plt.title(f'Poles and Zeros of ${latex(system)}$', pad=20) + + if grid: + plt.grid() + if show_axes: + plt.axhline(0, color='black') + plt.axvline(0, color='black') + if show: + plt.show() + return + + return plt + + +def step_response_numerical_data(system, prec=8, lower_limit=0, + upper_limit=10, **kwargs): + """ + Returns the numerical values of the points in the step response plot + of a SISO continuous-time system. By default, adaptive sampling + is used. If the user wants to instead get an uniformly + sampled response, then ``adaptive`` kwarg should be passed ``False`` + and ``nb_of_points`` must be passed as additional kwargs. + Refer to the parameters of class :class:`sympy.plotting.plot.LineOver1DRangeSeries` + for more details. + + Parameters + ========== + + system : SISOLinearTimeInvariant + The system for which the unit step response data is to be computed. + prec : int, optional + The decimal point precision for the point coordinate values. + Defaults to 8. + lower_limit : Number, optional + The lower limit of the plot range. Defaults to 0. + upper_limit : Number, optional + The upper limit of the plot range. Defaults to 10. + kwargs : + Additional keyword arguments are passed to the underlying + :class:`sympy.plotting.plot.LineOver1DRangeSeries` class. + + Returns + ======= + + tuple : (x, y) + x = Time-axis values of the points in the step response. NumPy array. + y = Amplitude-axis values of the points in the step response. NumPy array. + + Raises + ====== + + NotImplementedError + When a SISO LTI system is not passed. + + When time delay terms are present in the system. + + ValueError + When more than one free symbol is present in the system. + The only variable in the transfer function should be + the variable of the Laplace transform. + + When ``lower_limit`` parameter is less than 0. + + Examples + ======== + + >>> from sympy.abc import s + >>> from sympy.physics.control.lti import TransferFunction + >>> from sympy.physics.control.control_plots import step_response_numerical_data + >>> tf1 = TransferFunction(s, s**2 + 5*s + 8, s) + >>> step_response_numerical_data(tf1) # doctest: +SKIP + ([0.0, 0.025413462339411542, 0.0484508722725343, ... , 9.670250533855183, 9.844291913708725, 10.0], + [0.0, 0.023844582399907256, 0.042894276802320226, ..., 6.828770759094287e-12, 6.456457160755703e-12]) + + See Also + ======== + + step_response_plot + + """ + if lower_limit < 0: + raise ValueError("Lower limit of time must be greater " + "than or equal to zero.") + _check_system(system) + _x = Dummy("x") + expr = system.to_expr()/(system.var) + expr = apart(expr, system.var, full=True) + _y = _fast_inverse_laplace(expr, system.var, _x).evalf(prec) + return LineOver1DRangeSeries(_y, (_x, lower_limit, upper_limit), + **kwargs).get_points() + + +def step_response_plot(system, color='b', prec=8, lower_limit=0, + upper_limit=10, show_axes=False, grid=True, show=True, **kwargs): + r""" + Returns the unit step response of a continuous-time system. It is + the response of the system when the input signal is a step function. + + Parameters + ========== + + system : SISOLinearTimeInvariant type + The LTI SISO system for which the Step Response is to be computed. + color : str, tuple, optional + The color of the line. Default is Blue. + show : boolean, optional + If ``True``, the plot will be displayed otherwise + the equivalent matplotlib ``plot`` object will be returned. + Defaults to True. + lower_limit : Number, optional + The lower limit of the plot range. Defaults to 0. + upper_limit : Number, optional + The upper limit of the plot range. Defaults to 10. + prec : int, optional + The decimal point precision for the point coordinate values. + Defaults to 8. + show_axes : boolean, optional + If ``True``, the coordinate axes will be shown. Defaults to False. + grid : boolean, optional + If ``True``, the plot will have a grid. Defaults to True. + + Examples + ======== + + .. plot:: + :context: close-figs + :format: doctest + :include-source: True + + >>> from sympy.abc import s + >>> from sympy.physics.control.lti import TransferFunction + >>> from sympy.physics.control.control_plots import step_response_plot + >>> tf1 = TransferFunction(8*s**2 + 18*s + 32, s**3 + 6*s**2 + 14*s + 24, s) + >>> step_response_plot(tf1) # doctest: +SKIP + + See Also + ======== + + impulse_response_plot, ramp_response_plot + + References + ========== + + .. [1] https://www.mathworks.com/help/control/ref/lti.step.html + + """ + x, y = step_response_numerical_data(system, prec=prec, + lower_limit=lower_limit, upper_limit=upper_limit, **kwargs) + plt.plot(x, y, color=color) + plt.xlabel('Time (s)') + plt.ylabel('Amplitude') + plt.title(f'Unit Step Response of ${latex(system)}$', pad=20) + + if grid: + plt.grid() + if show_axes: + plt.axhline(0, color='black') + plt.axvline(0, color='black') + if show: + plt.show() + return + + return plt + + +def impulse_response_numerical_data(system, prec=8, lower_limit=0, + upper_limit=10, **kwargs): + """ + Returns the numerical values of the points in the impulse response plot + of a SISO continuous-time system. By default, adaptive sampling + is used. If the user wants to instead get an uniformly + sampled response, then ``adaptive`` kwarg should be passed ``False`` + and ``nb_of_points`` must be passed as additional kwargs. + Refer to the parameters of class :class:`sympy.plotting.plot.LineOver1DRangeSeries` + for more details. + + Parameters + ========== + + system : SISOLinearTimeInvariant + The system for which the impulse response data is to be computed. + prec : int, optional + The decimal point precision for the point coordinate values. + Defaults to 8. + lower_limit : Number, optional + The lower limit of the plot range. Defaults to 0. + upper_limit : Number, optional + The upper limit of the plot range. Defaults to 10. + kwargs : + Additional keyword arguments are passed to the underlying + :class:`sympy.plotting.plot.LineOver1DRangeSeries` class. + + Returns + ======= + + tuple : (x, y) + x = Time-axis values of the points in the impulse response. NumPy array. + y = Amplitude-axis values of the points in the impulse response. NumPy array. + + Raises + ====== + + NotImplementedError + When a SISO LTI system is not passed. + + When time delay terms are present in the system. + + ValueError + When more than one free symbol is present in the system. + The only variable in the transfer function should be + the variable of the Laplace transform. + + When ``lower_limit`` parameter is less than 0. + + Examples + ======== + + >>> from sympy.abc import s + >>> from sympy.physics.control.lti import TransferFunction + >>> from sympy.physics.control.control_plots import impulse_response_numerical_data + >>> tf1 = TransferFunction(s, s**2 + 5*s + 8, s) + >>> impulse_response_numerical_data(tf1) # doctest: +SKIP + ([0.0, 0.06616480200395854,... , 9.854500743565858, 10.0], + [0.9999999799999999, 0.7042848373025861,...,7.170748906965121e-13, -5.1901263495547205e-12]) + + See Also + ======== + + impulse_response_plot + + """ + if lower_limit < 0: + raise ValueError("Lower limit of time must be greater " + "than or equal to zero.") + _check_system(system) + _x = Dummy("x") + expr = system.to_expr() + expr = apart(expr, system.var, full=True) + _y = _fast_inverse_laplace(expr, system.var, _x).evalf(prec) + return LineOver1DRangeSeries(_y, (_x, lower_limit, upper_limit), + **kwargs).get_points() + + +def impulse_response_plot(system, color='b', prec=8, lower_limit=0, + upper_limit=10, show_axes=False, grid=True, show=True, **kwargs): + r""" + Returns the unit impulse response (Input is the Dirac-Delta Function) of a + continuous-time system. + + Parameters + ========== + + system : SISOLinearTimeInvariant type + The LTI SISO system for which the Impulse Response is to be computed. + color : str, tuple, optional + The color of the line. Default is Blue. + show : boolean, optional + If ``True``, the plot will be displayed otherwise + the equivalent matplotlib ``plot`` object will be returned. + Defaults to True. + lower_limit : Number, optional + The lower limit of the plot range. Defaults to 0. + upper_limit : Number, optional + The upper limit of the plot range. Defaults to 10. + prec : int, optional + The decimal point precision for the point coordinate values. + Defaults to 8. + show_axes : boolean, optional + If ``True``, the coordinate axes will be shown. Defaults to False. + grid : boolean, optional + If ``True``, the plot will have a grid. Defaults to True. + + Examples + ======== + + .. plot:: + :context: close-figs + :format: doctest + :include-source: True + + >>> from sympy.abc import s + >>> from sympy.physics.control.lti import TransferFunction + >>> from sympy.physics.control.control_plots import impulse_response_plot + >>> tf1 = TransferFunction(8*s**2 + 18*s + 32, s**3 + 6*s**2 + 14*s + 24, s) + >>> impulse_response_plot(tf1) # doctest: +SKIP + + See Also + ======== + + step_response_plot, ramp_response_plot + + References + ========== + + .. [1] https://www.mathworks.com/help/control/ref/lti.impulse.html + + """ + x, y = impulse_response_numerical_data(system, prec=prec, + lower_limit=lower_limit, upper_limit=upper_limit, **kwargs) + plt.plot(x, y, color=color) + plt.xlabel('Time (s)') + plt.ylabel('Amplitude') + plt.title(f'Impulse Response of ${latex(system)}$', pad=20) + + if grid: + plt.grid() + if show_axes: + plt.axhline(0, color='black') + plt.axvline(0, color='black') + if show: + plt.show() + return + + return plt + + +def ramp_response_numerical_data(system, slope=1, prec=8, + lower_limit=0, upper_limit=10, **kwargs): + """ + Returns the numerical values of the points in the ramp response plot + of a SISO continuous-time system. By default, adaptive sampling + is used. If the user wants to instead get an uniformly + sampled response, then ``adaptive`` kwarg should be passed ``False`` + and ``nb_of_points`` must be passed as additional kwargs. + Refer to the parameters of class :class:`sympy.plotting.plot.LineOver1DRangeSeries` + for more details. + + Parameters + ========== + + system : SISOLinearTimeInvariant + The system for which the ramp response data is to be computed. + slope : Number, optional + The slope of the input ramp function. Defaults to 1. + prec : int, optional + The decimal point precision for the point coordinate values. + Defaults to 8. + lower_limit : Number, optional + The lower limit of the plot range. Defaults to 0. + upper_limit : Number, optional + The upper limit of the plot range. Defaults to 10. + kwargs : + Additional keyword arguments are passed to the underlying + :class:`sympy.plotting.plot.LineOver1DRangeSeries` class. + + Returns + ======= + + tuple : (x, y) + x = Time-axis values of the points in the ramp response plot. NumPy array. + y = Amplitude-axis values of the points in the ramp response plot. NumPy array. + + Raises + ====== + + NotImplementedError + When a SISO LTI system is not passed. + + When time delay terms are present in the system. + + ValueError + When more than one free symbol is present in the system. + The only variable in the transfer function should be + the variable of the Laplace transform. + + When ``lower_limit`` parameter is less than 0. + + When ``slope`` is negative. + + Examples + ======== + + >>> from sympy.abc import s + >>> from sympy.physics.control.lti import TransferFunction + >>> from sympy.physics.control.control_plots import ramp_response_numerical_data + >>> tf1 = TransferFunction(s, s**2 + 5*s + 8, s) + >>> ramp_response_numerical_data(tf1) # doctest: +SKIP + (([0.0, 0.12166980856813935,..., 9.861246379582118, 10.0], + [1.4504508011325967e-09, 0.006046440489058766,..., 0.12499999999568202, 0.12499999999661349])) + + See Also + ======== + + ramp_response_plot + + """ + if slope < 0: + raise ValueError("Slope must be greater than or equal" + " to zero.") + if lower_limit < 0: + raise ValueError("Lower limit of time must be greater " + "than or equal to zero.") + _check_system(system) + _x = Dummy("x") + expr = (slope*system.to_expr())/((system.var)**2) + expr = apart(expr, system.var, full=True) + _y = _fast_inverse_laplace(expr, system.var, _x).evalf(prec) + return LineOver1DRangeSeries(_y, (_x, lower_limit, upper_limit), + **kwargs).get_points() + + +def ramp_response_plot(system, slope=1, color='b', prec=8, lower_limit=0, + upper_limit=10, show_axes=False, grid=True, show=True, **kwargs): + r""" + Returns the ramp response of a continuous-time system. + + Ramp function is defined as the straight line + passing through origin ($f(x) = mx$). The slope of + the ramp function can be varied by the user and + the default value is 1. + + Parameters + ========== + + system : SISOLinearTimeInvariant type + The LTI SISO system for which the Ramp Response is to be computed. + slope : Number, optional + The slope of the input ramp function. Defaults to 1. + color : str, tuple, optional + The color of the line. Default is Blue. + show : boolean, optional + If ``True``, the plot will be displayed otherwise + the equivalent matplotlib ``plot`` object will be returned. + Defaults to True. + lower_limit : Number, optional + The lower limit of the plot range. Defaults to 0. + upper_limit : Number, optional + The upper limit of the plot range. Defaults to 10. + prec : int, optional + The decimal point precision for the point coordinate values. + Defaults to 8. + show_axes : boolean, optional + If ``True``, the coordinate axes will be shown. Defaults to False. + grid : boolean, optional + If ``True``, the plot will have a grid. Defaults to True. + + Examples + ======== + + .. plot:: + :context: close-figs + :format: doctest + :include-source: True + + >>> from sympy.abc import s + >>> from sympy.physics.control.lti import TransferFunction + >>> from sympy.physics.control.control_plots import ramp_response_plot + >>> tf1 = TransferFunction(s, (s+4)*(s+8), s) + >>> ramp_response_plot(tf1, upper_limit=2) # doctest: +SKIP + + See Also + ======== + + step_response_plot, ramp_response_plot + + References + ========== + + .. [1] https://en.wikipedia.org/wiki/Ramp_function + + """ + x, y = ramp_response_numerical_data(system, slope=slope, prec=prec, + lower_limit=lower_limit, upper_limit=upper_limit, **kwargs) + plt.plot(x, y, color=color) + plt.xlabel('Time (s)') + plt.ylabel('Amplitude') + plt.title(f'Ramp Response of ${latex(system)}$ [Slope = {slope}]', pad=20) + + if grid: + plt.grid() + if show_axes: + plt.axhline(0, color='black') + plt.axvline(0, color='black') + if show: + plt.show() + return + + return plt + + +def bode_magnitude_numerical_data(system, initial_exp=-5, final_exp=5, freq_unit='rad/sec', **kwargs): + """ + Returns the numerical data of the Bode magnitude plot of the system. + It is internally used by ``bode_magnitude_plot`` to get the data + for plotting Bode magnitude plot. Users can use this data to further + analyse the dynamics of the system or plot using a different + backend/plotting-module. + + Parameters + ========== + + system : SISOLinearTimeInvariant + The system for which the data is to be computed. + initial_exp : Number, optional + The initial exponent of 10 of the semilog plot. Defaults to -5. + final_exp : Number, optional + The final exponent of 10 of the semilog plot. Defaults to 5. + freq_unit : string, optional + User can choose between ``'rad/sec'`` (radians/second) and ``'Hz'`` (Hertz) as frequency units. + + Returns + ======= + + tuple : (x, y) + x = x-axis values of the Bode magnitude plot. + y = y-axis values of the Bode magnitude plot. + + Raises + ====== + + NotImplementedError + When a SISO LTI system is not passed. + + When time delay terms are present in the system. + + ValueError + When more than one free symbol is present in the system. + The only variable in the transfer function should be + the variable of the Laplace transform. + + When incorrect frequency units are given as input. + + Examples + ======== + + >>> from sympy.abc import s + >>> from sympy.physics.control.lti import TransferFunction + >>> from sympy.physics.control.control_plots import bode_magnitude_numerical_data + >>> tf1 = TransferFunction(s**2 + 1, s**4 + 4*s**3 + 6*s**2 + 5*s + 2, s) + >>> bode_magnitude_numerical_data(tf1) # doctest: +SKIP + ([1e-05, 1.5148378120533502e-05,..., 68437.36188804005, 100000.0], + [-6.020599914256786, -6.0205999155219505,..., -193.4117304087953, -200.00000000260573]) + + See Also + ======== + + bode_magnitude_plot, bode_phase_numerical_data + + """ + _check_system(system) + expr = system.to_expr() + freq_units = ('rad/sec', 'Hz') + if freq_unit not in freq_units: + raise ValueError('Only "rad/sec" and "Hz" are accepted frequency units.') + + _w = Dummy("w", real=True) + if freq_unit == 'Hz': + repl = I*_w*2*pi + else: + repl = I*_w + w_expr = expr.subs({system.var: repl}) + + mag = 20*log(Abs(w_expr), 10) + + x, y = LineOver1DRangeSeries(mag, + (_w, 10**initial_exp, 10**final_exp), xscale='log', **kwargs).get_points() + + return x, y + + +def bode_magnitude_plot(system, initial_exp=-5, final_exp=5, + color='b', show_axes=False, grid=True, show=True, freq_unit='rad/sec', **kwargs): + r""" + Returns the Bode magnitude plot of a continuous-time system. + + See ``bode_plot`` for all the parameters. + """ + x, y = bode_magnitude_numerical_data(system, initial_exp=initial_exp, + final_exp=final_exp, freq_unit=freq_unit) + plt.plot(x, y, color=color, **kwargs) + plt.xscale('log') + + + plt.xlabel('Frequency (%s) [Log Scale]' % freq_unit) + plt.ylabel('Magnitude (dB)') + plt.title(f'Bode Plot (Magnitude) of ${latex(system)}$', pad=20) + + if grid: + plt.grid(True) + if show_axes: + plt.axhline(0, color='black') + plt.axvline(0, color='black') + if show: + plt.show() + return + + return plt + + +def bode_phase_numerical_data(system, initial_exp=-5, final_exp=5, freq_unit='rad/sec', phase_unit='rad', **kwargs): + """ + Returns the numerical data of the Bode phase plot of the system. + It is internally used by ``bode_phase_plot`` to get the data + for plotting Bode phase plot. Users can use this data to further + analyse the dynamics of the system or plot using a different + backend/plotting-module. + + Parameters + ========== + + system : SISOLinearTimeInvariant + The system for which the Bode phase plot data is to be computed. + initial_exp : Number, optional + The initial exponent of 10 of the semilog plot. Defaults to -5. + final_exp : Number, optional + The final exponent of 10 of the semilog plot. Defaults to 5. + freq_unit : string, optional + User can choose between ``'rad/sec'`` (radians/second) and '``'Hz'`` (Hertz) as frequency units. + phase_unit : string, optional + User can choose between ``'rad'`` (radians) and ``'deg'`` (degree) as phase units. + + Returns + ======= + + tuple : (x, y) + x = x-axis values of the Bode phase plot. + y = y-axis values of the Bode phase plot. + + Raises + ====== + + NotImplementedError + When a SISO LTI system is not passed. + + When time delay terms are present in the system. + + ValueError + When more than one free symbol is present in the system. + The only variable in the transfer function should be + the variable of the Laplace transform. + + When incorrect frequency or phase units are given as input. + + Examples + ======== + + >>> from sympy.abc import s + >>> from sympy.physics.control.lti import TransferFunction + >>> from sympy.physics.control.control_plots import bode_phase_numerical_data + >>> tf1 = TransferFunction(s**2 + 1, s**4 + 4*s**3 + 6*s**2 + 5*s + 2, s) + >>> bode_phase_numerical_data(tf1) # doctest: +SKIP + ([1e-05, 1.4472354033813751e-05, 2.035581932165858e-05,..., 47577.3248186011, 67884.09326036123, 100000.0], + [-2.5000000000291665e-05, -3.6180885085e-05, -5.08895483066e-05,...,-3.1415085799262523, -3.14155265358979]) + + See Also + ======== + + bode_magnitude_plot, bode_phase_numerical_data + + """ + _check_system(system) + expr = system.to_expr() + freq_units = ('rad/sec', 'Hz') + phase_units = ('rad', 'deg') + if freq_unit not in freq_units: + raise ValueError('Only "rad/sec" and "Hz" are accepted frequency units.') + if phase_unit not in phase_units: + raise ValueError('Only "rad" and "deg" are accepted phase units.') + + _w = Dummy("w", real=True) + if freq_unit == 'Hz': + repl = I*_w*2*pi + else: + repl = I*_w + w_expr = expr.subs({system.var: repl}) + + if phase_unit == 'deg': + phase = arg(w_expr)*180/pi + else: + phase = arg(w_expr) + + x, y = LineOver1DRangeSeries(phase, + (_w, 10**initial_exp, 10**final_exp), xscale='log', **kwargs).get_points() + + return x, y + + +def bode_phase_plot(system, initial_exp=-5, final_exp=5, + color='b', show_axes=False, grid=True, show=True, freq_unit='rad/sec', phase_unit='rad', **kwargs): + r""" + Returns the Bode phase plot of a continuous-time system. + + See ``bode_plot`` for all the parameters. + """ + x, y = bode_phase_numerical_data(system, initial_exp=initial_exp, + final_exp=final_exp, freq_unit=freq_unit, phase_unit=phase_unit) + plt.plot(x, y, color=color, **kwargs) + plt.xscale('log') + + plt.xlabel('Frequency (%s) [Log Scale]' % freq_unit) + plt.ylabel('Phase (%s)' % phase_unit) + plt.title(f'Bode Plot (Phase) of ${latex(system)}$', pad=20) + + if grid: + plt.grid(True) + if show_axes: + plt.axhline(0, color='black') + plt.axvline(0, color='black') + if show: + plt.show() + return + + return plt + + +def bode_plot(system, initial_exp=-5, final_exp=5, + grid=True, show_axes=False, show=True, freq_unit='rad/sec', phase_unit='rad', **kwargs): + r""" + Returns the Bode phase and magnitude plots of a continuous-time system. + + Parameters + ========== + + system : SISOLinearTimeInvariant type + The LTI SISO system for which the Bode Plot is to be computed. + initial_exp : Number, optional + The initial exponent of 10 of the semilog plot. Defaults to -5. + final_exp : Number, optional + The final exponent of 10 of the semilog plot. Defaults to 5. + show : boolean, optional + If ``True``, the plot will be displayed otherwise + the equivalent matplotlib ``plot`` object will be returned. + Defaults to True. + prec : int, optional + The decimal point precision for the point coordinate values. + Defaults to 8. + grid : boolean, optional + If ``True``, the plot will have a grid. Defaults to True. + show_axes : boolean, optional + If ``True``, the coordinate axes will be shown. Defaults to False. + freq_unit : string, optional + User can choose between ``'rad/sec'`` (radians/second) and ``'Hz'`` (Hertz) as frequency units. + phase_unit : string, optional + User can choose between ``'rad'`` (radians) and ``'deg'`` (degree) as phase units. + + Examples + ======== + + .. plot:: + :context: close-figs + :format: doctest + :include-source: True + + >>> from sympy.abc import s + >>> from sympy.physics.control.lti import TransferFunction + >>> from sympy.physics.control.control_plots import bode_plot + >>> tf1 = TransferFunction(1*s**2 + 0.1*s + 7.5, 1*s**4 + 0.12*s**3 + 9*s**2, s) + >>> bode_plot(tf1, initial_exp=0.2, final_exp=0.7) # doctest: +SKIP + + See Also + ======== + + bode_magnitude_plot, bode_phase_plot + + """ + plt.subplot(211) + mag = bode_magnitude_plot(system, initial_exp=initial_exp, final_exp=final_exp, + show=False, grid=grid, show_axes=show_axes, + freq_unit=freq_unit, **kwargs) + mag.title(f'Bode Plot of ${latex(system)}$', pad=20) + mag.xlabel(None) + plt.subplot(212) + bode_phase_plot(system, initial_exp=initial_exp, final_exp=final_exp, + show=False, grid=grid, show_axes=show_axes, freq_unit=freq_unit, phase_unit=phase_unit, **kwargs).title(None) + + if show: + plt.show() + return + + return plt diff --git a/shared/package-files/43/436f0c44005a2cd0a5e49a6fa6d0c0bd1d950b8565a1c1d2bfd948d279cb95d5/test_multivariate_ols.py b/shared/package-files/43/436f0c44005a2cd0a5e49a6fa6d0c0bd1d950b8565a1c1d2bfd948d279cb95d5/test_multivariate_ols.py new file mode 100644 index 0000000000000000000000000000000000000000..a42b424e66b29cf0720a83ff4a8883868b8db5d2 --- /dev/null +++ b/shared/package-files/43/436f0c44005a2cd0a5e49a6fa6d0c0bd1d950b8565a1c1d2bfd948d279cb95d5/test_multivariate_ols.py @@ -0,0 +1,384 @@ +from pathlib import Path + +import numpy as np +from numpy.testing import ( + assert_allclose, + assert_array_almost_equal, +) +import pandas as pd +import pytest + +from statsmodels.formula._manager import FormulaManager +from statsmodels.multivariate.multivariate_ols import ( + MultivariateLS, + _MultivariateOLS, +) +from statsmodels.regression.linear_model import OLS + +dir_path = Path(__file__).resolve().parent +csv_path = Path(dir_path).joinpath("results", "mvreg.csv") +data_mvreg = pd.read_csv(csv_path) + +data = pd.DataFrame( + [ + ["Morphine", "N", 0.04, 0.20, 0.10, 0.08], + ["Morphine", "N", 0.02, 0.06, 0.02, 0.02], + ["Morphine", "N", 0.07, 1.40, 0.48, 0.24], + ["Morphine", "N", 0.17, 0.57, 0.35, 0.24], + ["Morphine", "Y", 0.10, 0.09, 0.13, 0.14], + ["placebo", "Y", 0.07, 0.07, 0.06, 0.07], + ["placebo", "Y", 0.05, 0.07, 0.06, 0.07], + ["placebo", "N", 0.03, 0.62, 0.31, 0.22], + ["placebo", "N", 0.03, 1.05, 0.73, 0.60], + ["placebo", "N", 0.07, 0.83, 1.07, 0.80], + ["Trimethaphan", "N", 0.09, 3.13, 2.06, 1.23], + ["Trimethaphan", "Y", 0.10, 0.09, 0.09, 0.08], + ["Trimethaphan", "Y", 0.08, 0.09, 0.09, 0.10], + ["Trimethaphan", "Y", 0.13, 0.10, 0.12, 0.12], + ["Trimethaphan", "Y", 0.06, 0.05, 0.05, 0.05], + ], + columns=[ + "Drug", + "Depleted", + "Histamine0", + "Histamine1", + "Histamine3", + "Histamine5", + ], +) + +for i in range(2, 6): + data.iloc[:, i] = np.log(data.iloc[:, i]) + +models = [_MultivariateOLS, MultivariateLS] + + +def compare_r_output_dogs_data(method, model): + """Testing within-subject effect interact with 2 between-subject effect + Compares with R car library Anova(, type=3) output + + Note: The test statistis Phillai, Wilks, Hotelling-Lawley + and Roy are the same as R output but the approximate F and degree + of freedoms can be different. This is due to the fact that this + implementation is based on SAS formula [1] + + .. [*] https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/ + viewer.htm#statug_introreg_sect012.htm + """ + + # Repeated measures with orthogonal polynomial contrasts coding + mod = model.from_formula( + "Histamine0 + Histamine1 + Histamine3 + Histamine5 ~ Drug * Depleted", data + ) + r = mod.fit(method=method) + r = r.mv_test() + a = [ + [2.68607660e-02, 4, 6, 5.43435304e01, 7.59585610e-05], + [9.73139234e-01, 4, 6, 5.43435304e01, 7.59585610e-05], + [3.62290202e01, 4, 6, 5.43435304e01, 7.59585610e-05], + [3.62290202e01, 4, 6, 5.43435304e01, 7.59585610e-05], + ] + assert_array_almost_equal(r["Intercept"]["stat"].values, a, decimal=6) + a = [ + [8.39646619e-02, 8, 1.20000000e01, 3.67658068e00, 2.12614444e-02], + [1.18605382e00, 8, 1.40000000e01, 2.55003861e00, 6.01270701e-02], + [7.69391362e00, 8, 6.63157895e00, 5.50814270e00, 2.07392260e-02], + [7.25036952e00, 4, 7.00000000e00, 1.26881467e01, 2.52669877e-03], + ] + assert_array_almost_equal(r["Drug"]["stat"].values, a, decimal=6) + a = [ + [0.32048892, 4.0, 6.0, 3.18034906, 0.10002373], + [0.67951108, 4.0, 6.0, 3.18034906, 0.10002373], + [2.12023271, 4.0, 6.0, 3.18034906, 0.10002373], + [2.12023271, 4.0, 6.0, 3.18034906, 0.10002373], + ] + assert_array_almost_equal(r["Depleted"]["stat"].values, a, decimal=6) + a = [ + [0.15234366, 8.0, 12.0, 2.34307678, 0.08894239], + [1.13013353, 8.0, 14.0, 2.27360606, 0.08553213], + [3.70989596, 8.0, 6.63157895, 2.65594824, 0.11370285], + [3.1145597, 4.0, 7.0, 5.45047947, 0.02582767], + ] + assert_array_almost_equal(r["Drug:Depleted"]["stat"].values, a, decimal=6) + + +@pytest.mark.parametrize("model", models) +def test_glm_dogs_example(model): + compare_r_output_dogs_data(method="svd", model=model) + compare_r_output_dogs_data(method="pinv", model=model) + + +@pytest.mark.parametrize("model", models) +def test_invalid_fit_method_raises(model): + mod = model.from_formula( + "Histamine0 + Histamine1 + Histamine3 + Histamine5 ~ Drug * Depleted", data + ) + with pytest.raises(ValueError, match="method"): + mod.fit(method="not-a-method") + + +@pytest.mark.parametrize("model", models) +def test_specify_L_M_by_string(model): + mod = model.from_formula( + "Histamine0 + Histamine1 + Histamine3 + Histamine5 ~ Drug * Depleted", data + ) + r = mod.fit() + r1 = r.mv_test(hypotheses=[["Intercept", ["Intercept"], None]]) + a = [ + [2.68607660e-02, 4, 6, 5.43435304e01, 7.59585610e-05], + [9.73139234e-01, 4, 6, 5.43435304e01, 7.59585610e-05], + [3.62290202e01, 4, 6, 5.43435304e01, 7.59585610e-05], + [3.62290202e01, 4, 6, 5.43435304e01, 7.59585610e-05], + ] + assert_array_almost_equal(r1["Intercept"]["stat"].values, a, decimal=6) + L = ["Intercept", "Drug[T.Trimethaphan]", "Drug[T.placebo]"] + M = ["Histamine1", "Histamine3", "Histamine5"] + r1 = r.mv_test(hypotheses=[["a", L, M]]) + a = [[1, 0, 0, 0, 0, 0], [0, 1, 0, 0, 0, 0], [0, 0, 1, 0, 0, 0]] + assert_array_almost_equal(r1["a"]["contrast_L"], a, decimal=10) + a = [[0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]] + assert_array_almost_equal(r1["a"]["transform_M"].T, a, decimal=10) + + +@pytest.mark.parametrize("model", models) +def test_independent_variable_singular(model): + data1 = data.copy() + data1["dup"] = data1["Drug"] + mod = model.from_formula( + "Histamine0 + Histamine1 + Histamine3 + Histamine5 ~ Drug * dup", data1 + ) + with pytest.raises(ValueError): + mod.fit() + mod = model.from_formula( + "Histamine0 + Histamine1 + Histamine3 + Histamine5 ~ Drug * dup", data1 + ) + with pytest.raises(ValueError): + mod.fit() + + +@pytest.mark.parametrize("model", models) +def test_from_formula_vs_no_formula(model): + mod = model.from_formula( + "Histamine0 + Histamine1 + Histamine3 + Histamine5 ~ Drug * Depleted", data + ) + r = mod.fit(method="svd") + r0 = r.mv_test() + mgr = FormulaManager() + endog, exog = mgr.get_matrices( + "Histamine0 + Histamine1 + Histamine3 + Histamine5 ~ Drug * Depleted", data + ) + L = np.array([[1, 0, 0, 0, 0, 0]]) + # DataFrame input + r = model(endog, exog).fit(method="svd") + r1 = r.mv_test(hypotheses=[["Intercept", L, None]]) + assert_array_almost_equal( + r1["Intercept"]["stat"].values, r0["Intercept"]["stat"].values, decimal=6 + ) + # Numpy array input + r = model(endog.values, exog.values).fit(method="svd") + r1 = r.mv_test(hypotheses=[["Intercept", L, None]]) + assert_array_almost_equal( + r1["Intercept"]["stat"].values, r0["Intercept"]["stat"].values, decimal=6 + ) + L = np.array( + [ + [0, 1, 0, 0, 0, 0], + [0, 0, 1, 0, 0, 0], + ] + ) + r1 = r.mv_test(hypotheses=[["Drug", L, None]]) + # DataFrame input + r = model(endog, exog).fit(method="svd") + r1 = r.mv_test(hypotheses=[["Drug", L, None]]) + assert_array_almost_equal( + r1["Drug"]["stat"].values, r0["Drug"]["stat"].values, decimal=6 + ) + # Numpy array input + r = model(endog.values, exog.values).fit(method="svd") + r1 = r.mv_test(hypotheses=[["Drug", L, None]]) + assert_array_almost_equal( + r1["Drug"]["stat"].values, r0["Drug"]["stat"].values, decimal=6 + ) + + +@pytest.mark.parametrize("model", models) +def test_L_M_matrices_1D_array(model): + mod = model.from_formula( + "Histamine0 + Histamine1 + Histamine3 + Histamine5 ~ Drug * Depleted", data + ) + r = mod.fit(method="svd") + L = np.array([1, 0, 0, 0, 0, 0]) + with pytest.raises(ValueError): + r.mv_test(hypotheses=[["Drug", L, None]]) + L = np.array([[1, 0, 0, 0, 0, 0]]) + M = np.array([1, 0, 0, 0, 0, 0]) + with pytest.raises(ValueError): + r.mv_test(hypotheses=[["Drug", L, M]]) + + +@pytest.mark.parametrize("model", models) +def test_exog_1D_array(model): + mod = model.from_formula( + "Histamine0 + Histamine1 + Histamine3 + Histamine5 ~ 0 + Depleted", data + ) + r = mod.fit(method="svd") + r0 = r.mv_test() + a = [ + [0.0019, 8.0000, 20.0000, 55.0013, 0.0000], + [1.8112, 8.0000, 22.0000, 26.3796, 0.0000], + [97.8858, 8.0000, 12.1818, 117.1133, 0.0000], + [93.2742, 4.0000, 11.0000, 256.5041, 0.0000], + ] + assert_array_almost_equal(r0["Depleted"]["stat"].values, a, decimal=4) + + +def test_endog_1D_array(): + with pytest.raises(ValueError): + _MultivariateOLS.from_formula("Histamine0 ~ 0 + Depleted", data) + + +@pytest.mark.parametrize("model", models) +def test_affine_hypothesis(model): + # Testing affine hypothesis, compared with R car linearHypothesis + # Note: The test statistis Phillai, Wilks, Hotelling-Lawley + # and Roy are the same as R output but the approximate F and degree + # of freedoms can be different. This is due to the fact that this + # implementation is based on SAS formula [1] + mod = model.from_formula( + "Histamine0 + Histamine1 + Histamine3 + Histamine5 ~ Drug * Depleted", data + ) + r = mod.fit(method="svd") + L = np.array([[0, 1.2, 1.1, 1.3, 1.5, 1.4], [0, 3.2, 2.1, 3.3, 5.5, 4.4]]) + M = None + C = np.array([[1, 2, 3, 4], [5, 6, 7, 8]]) + r0 = r.mv_test(hypotheses=[("test1", L, M, C)]) + a = [ + [0.0269, 8.0000, 12.0000, 7.6441, 0.0010], + [1.4277, 8.0000, 14.0000, 4.3657, 0.0080], + [19.2678, 8.0000, 6.6316, 13.7940, 0.0016], + [18.3470, 4.0000, 7.0000, 32.1072, 0.0001], + ] + assert_array_almost_equal(r0["test1"]["stat"].values, a, decimal=4) + r0.summary(show_contrast_L=True, show_transform_M=True, show_constant_C=True) + + +class CheckMVConsistent: + + def test_basic(self): + res = self.res + tt = res.t_test(np.eye(res.params.size)) + assert_allclose(tt.effect, res.params.to_numpy().ravel(order="F"), rtol=1e-13) + assert_allclose(tt.sd, res.bse.to_numpy().ravel(order="F"), rtol=1e-13) + assert_allclose(tt.tvalue, res.tvalues.to_numpy().ravel(order="F"), rtol=1e-13) + assert_allclose(tt.pvalue, res.pvalues.to_numpy().ravel(order="F"), rtol=1e-13) + assert_allclose(tt.conf_int(), res.conf_int().to_numpy(), rtol=1e-13) + + exog_names = res.model.exog_names + endog_names = res.model.endog_names + + # hypothesis test for one parameter: + for xn in exog_names: + cnx = [] + for yn in endog_names: + cn = f"y{yn}_{xn}" + tt = res.t_test(cn) + mvt = res.mv_test(hypotheses=[("one", [xn], [yn])]) + assert_allclose( + tt.pvalue, mvt.summary_frame["Pr > F"].iloc[0], rtol=1e-10 + ) + cnx.append(cn) + + # wald test effect of an exog is zero across all endog + # test methods are only asymptotically equivalent + tt = res.wald_test(cnx, scalar=True) + mvt = res.mv_test(hypotheses=[(xn, [xn], endog_names)]) + assert_allclose( + tt.pvalue, mvt.summary_frame["Pr > F"].iloc[0], rtol=0.1, atol=1e-20 + ) + + def test_ols(self): + res1 = self.res._results # use numpy results, not pandas + endog = res1.model.endog + exog = res1.model.exog + k_endog = endog.shape[1] + k_exog = exog.shape[1] + + for k in range(k_endog): + res_ols = OLS(endog[:, k], exog).fit() + assert_allclose(res1.params[:, k], res_ols.params, rtol=1e-12) + assert_allclose(res1.bse[:, k], res_ols.bse, rtol=1e-13) + assert_allclose(res1.tvalues[:, k], res_ols.tvalues, rtol=1e-12) + assert_allclose(res1.pvalues[:, k], res_ols.pvalues, rtol=1e-12, atol=1e-15) + # todo: why does conf_int have endog at axis=0 + assert_allclose(res1.conf_int()[k], res_ols.conf_int(), rtol=1e-10) + + idx0 = k * k_exog + idx1 = (k + 1) * k_exog + assert_allclose( + res1.cov_params()[idx0:idx1, idx0:idx1], + res_ols.cov_params(), + rtol=1e-12, + ) + + assert_allclose(res1.resid[:, k], res_ols.resid, rtol=1e-10) + assert_allclose(res1.fittedvalues[:, k], res_ols.fittedvalues, rtol=1e-10) + + +class TestMultivariateLS(CheckMVConsistent): + + @classmethod + def setup_class(cls): + formula2 = ( + "locus_of_control + self_concept + motivation ~ " + "read + write + science + prog" + ) + mod = MultivariateLS.from_formula(formula2, data=data_mvreg) + cls.res = mod.fit() + # ttn = cls.res.mv_test() + + +def test_multivariate_ls_results_summary(): + # MultivariateLSResults.summary is exported via the multivariate api + # but had no direct test coverage: existing tests call mv_test() + # rather than summary() on the fit result itself. + mod = MultivariateLS.from_formula( + "Histamine0 + Histamine1 + Histamine3 + Histamine5 ~ Drug * Depleted", + data, + ) + res = mod.fit(method="svd") + smry = res.summary() + text = str(smry) + + assert "MultivariateLS Regression Results" in text + for name in ["Histamine0", "Histamine1", "Histamine3", "Histamine5"]: + assert name in text + assert str(res.model.endog.shape[0]) in text # No. Observations + + custom = res.summary(title="Custom Title") + assert "Custom Title" in str(custom) + + +def test_resid_distance_and_hat_matrix_diag(): + rs = np.random.RandomState(20260821) + n, k_endog, k_exog = 40, 3, 2 + exog = np.column_stack([np.ones(n), rs.standard_normal((n, k_exog))]) + beta = rs.standard_normal((k_exog + 1, k_endog)) + endog = exog @ beta + rs.standard_normal((n, k_endog)) + + mod = MultivariateLS(endog, exog) + res = mod.fit(method="svd") + + resid = res.resid + cov = res.cov_resid + expected_dist = (resid * np.linalg.solve(cov, resid.T).T).sum(1) + assert_allclose(res.resid_distance, expected_dist) + assert np.all(res.resid_distance >= 0) + + pinv_exog = np.linalg.pinv(exog) + expected_hd = (exog * pinv_exog.T).sum(1) + assert_allclose(res._hat_matrix_diag, expected_hd) + # OLS leverage: diagonal of a projection matrix, sums to the rank + assert_allclose(res._hat_matrix_diag.sum(), np.linalg.matrix_rank(exog), + atol=1e-8) + assert np.all(res._hat_matrix_diag > -1e-10) + assert np.all(res._hat_matrix_diag < 1 + 1e-10) diff --git a/shared/package-files/43/4370551884cbd54c254e606c143f622dfda98202604c4e5b1b7d9000d76432fa/urllib_parse.pyi b/shared/package-files/43/4370551884cbd54c254e606c143f622dfda98202604c4e5b1b7d9000d76432fa/urllib_parse.pyi new file mode 100644 index 0000000000000000000000000000000000000000..bdb4d1c03e6880c97f96698520b2075c0bef1a57 --- /dev/null +++ b/shared/package-files/43/4370551884cbd54c254e606c143f622dfda98202604c4e5b1b7d9000d76432fa/urllib_parse.pyi @@ -0,0 +1 @@ +from .urllib.parse import * diff --git a/shared/package-files/43/4370727df7bb68c5ad9240b4c1d0a05a88279d79d0721fac1f389117140049da/dumper.pyi b/shared/package-files/43/4370727df7bb68c5ad9240b4c1d0a05a88279d79d0721fac1f389117140049da/dumper.pyi new file mode 100644 index 0000000000000000000000000000000000000000..b2ca83fc8701f4a427a9b1e74cf2eb9aae1327e8 --- /dev/null +++ b/shared/package-files/43/4370727df7bb68c5ad9240b4c1d0a05a88279d79d0721fac1f389117140049da/dumper.pyi @@ -0,0 +1,61 @@ +from yaml.emitter import Emitter +from yaml.representer import BaseRepresenter, Representer, SafeRepresenter +from yaml.resolver import BaseResolver, Resolver +from yaml.serializer import Serializer + +class BaseDumper(Emitter, Serializer, BaseRepresenter, BaseResolver): + def __init__( + self, + stream, + default_style=..., + default_flow_style=..., + canonical=..., + indent=..., + width=..., + allow_unicode=..., + line_break=..., + encoding=..., + explicit_start=..., + explicit_end=..., + version=..., + tags=..., + sort_keys: bool = ..., + ) -> None: ... + +class SafeDumper(Emitter, Serializer, SafeRepresenter, Resolver): + def __init__( + self, + stream, + default_style=..., + default_flow_style=..., + canonical=..., + indent=..., + width=..., + allow_unicode=..., + line_break=..., + encoding=..., + explicit_start=..., + explicit_end=..., + version=..., + tags=..., + sort_keys: bool = ..., + ) -> None: ... + +class Dumper(Emitter, Serializer, Representer, Resolver): + def __init__( + self, + stream, + default_style=..., + default_flow_style=..., + canonical=..., + indent=..., + width=..., + allow_unicode=..., + line_break=..., + encoding=..., + explicit_start=..., + explicit_end=..., + version=..., + tags=..., + sort_keys: bool = ..., + ) -> None: ... diff --git a/shared/package-files/43/4370d23bfe1c34d8c0bc0c02ff042510fb2ce393d51ebae9e75a977681d99637/mvlgamma_native.h b/shared/package-files/43/4370d23bfe1c34d8c0bc0c02ff042510fb2ce393d51ebae9e75a977681d99637/mvlgamma_native.h new file mode 100644 index 0000000000000000000000000000000000000000..231f838d4aa4bee22d39fe0680b1af8ad858f96a --- /dev/null +++ b/shared/package-files/43/4370d23bfe1c34d8c0bc0c02ff042510fb2ce393d51ebae9e75a977681d99637/mvlgamma_native.h @@ -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 mvlgamma(const at::Tensor & self, int64_t p); +TORCH_API at::Tensor & mvlgamma_(at::Tensor & self, int64_t p); +TORCH_API at::Tensor & mvlgamma_out(const at::Tensor & self, int64_t p, at::Tensor & out); +} // namespace native +} // namespace at diff --git a/shared/package-files/43/4370db5b3a96745b7c864ab5e816e0e0c43c59ac602ae8612a9e9710467c6d6c/conftest.py b/shared/package-files/43/4370db5b3a96745b7c864ab5e816e0e0c43c59ac602ae8612a9e9710467c6d6c/conftest.py new file mode 100644 index 0000000000000000000000000000000000000000..05129585b8f7041c202f1ae8a1d47d56336b4b67 --- /dev/null +++ b/shared/package-files/43/4370db5b3a96745b7c864ab5e816e0e0c43c59ac602ae8612a9e9710467c6d6c/conftest.py @@ -0,0 +1,552 @@ +# Pytest customization +import json +import os +import warnings +import tempfile +from contextlib import contextmanager + +import numpy as np +import numpy.testing as npt +import pytest +import hypothesis + +from scipy._lib._fpumode import get_fpu_mode +from scipy._lib._testutils import FPUModeChangeWarning +from scipy._lib._array_api import SCIPY_ARRAY_API, SCIPY_DEVICE +from scipy._lib import _pep440 + +try: + from scipy_doctest.conftest import dt_config + HAVE_SCPDT = True +except ModuleNotFoundError: + HAVE_SCPDT = False + +try: + import pytest_run_parallel # noqa:F401 + PARALLEL_RUN_AVAILABLE = True +except Exception: + PARALLEL_RUN_AVAILABLE = False + + +def pytest_configure(config): + config.addinivalue_line("markers", + "slow: Tests that are very slow.") + config.addinivalue_line("markers", + "xslow: mark test as extremely slow (not run unless explicitly requested)") + config.addinivalue_line("markers", + "xfail_on_32bit: mark test as failing on 32-bit platforms") + try: + import pytest_timeout # noqa:F401 + except Exception: + config.addinivalue_line( + "markers", 'timeout: mark a test for a non-default timeout') + try: + # This is a more reliable test of whether pytest_fail_slow is installed + # When I uninstalled it, `import pytest_fail_slow` didn't fail! + from pytest_fail_slow import parse_duration # type: ignore[import-not-found] # noqa:F401,E501 + except Exception: + config.addinivalue_line( + "markers", 'fail_slow: mark a test for a non-default timeout failure') + config.addinivalue_line("markers", + "skip_xp_backends(backends, reason=None, np_only=False, cpu_only=False, " + "exceptions=None): " + "mark the desired skip configuration for the `skip_xp_backends` fixture.") + config.addinivalue_line("markers", + "xfail_xp_backends(backends, reason=None, np_only=False, cpu_only=False, " + "exceptions=None): " + "mark the desired xfail configuration for the `xfail_xp_backends` fixture.") + if not PARALLEL_RUN_AVAILABLE: + config.addinivalue_line( + 'markers', + 'parallel_threads(n): run the given test function in parallel ' + 'using `n` threads.') + config.addinivalue_line( + "markers", + "thread_unsafe: mark the test function as single-threaded", + ) + config.addinivalue_line( + "markers", + "iterations(n): run the given test function `n` times in each thread", + ) + + +def pytest_runtest_setup(item): + mark = item.get_closest_marker("xslow") + if mark is not None: + try: + v = int(os.environ.get('SCIPY_XSLOW', '0')) + except ValueError: + v = False + if not v: + pytest.skip("very slow test; " + "set environment variable SCIPY_XSLOW=1 to run it") + mark = item.get_closest_marker("xfail_on_32bit") + if mark is not None and np.intp(0).itemsize < 8: + pytest.xfail(f'Fails on our 32-bit test platform(s): {mark.args[0]}') + + # Older versions of threadpoolctl have an issue that may lead to this + # warning being emitted, see gh-14441 + with npt.suppress_warnings() as sup: + sup.filter(pytest.PytestUnraisableExceptionWarning) + + try: + from threadpoolctl import threadpool_limits + + HAS_THREADPOOLCTL = True + except Exception: # observed in gh-14441: (ImportError, AttributeError) + # Optional dependency only. All exceptions are caught, for robustness + HAS_THREADPOOLCTL = False + + if HAS_THREADPOOLCTL: + # Set the number of openmp threads based on the number of workers + # xdist is using to prevent oversubscription. Simplified version of what + # sklearn does (it can rely on threadpoolctl and its builtin OpenMP helper + # functions) + try: + xdist_worker_count = int(os.environ['PYTEST_XDIST_WORKER_COUNT']) + except KeyError: + # raises when pytest-xdist is not installed + return + + if not os.getenv('OMP_NUM_THREADS'): + max_openmp_threads = os.cpu_count() // 2 # use nr of physical cores + threads_per_worker = max(max_openmp_threads // xdist_worker_count, 1) + try: + threadpool_limits(threads_per_worker, user_api='blas') + except Exception: + # May raise AttributeError for older versions of OpenBLAS. + # Catch any error for robustness. + return + + +@pytest.fixture(scope="function", autouse=True) +def check_fpu_mode(request): + """ + Check FPU mode was not changed during the test. + """ + old_mode = get_fpu_mode() + yield + new_mode = get_fpu_mode() + + if old_mode != new_mode: + warnings.warn(f"FPU mode changed from {old_mode:#x} to {new_mode:#x} during " + "the test", + category=FPUModeChangeWarning, stacklevel=0) + + +if not PARALLEL_RUN_AVAILABLE: + @pytest.fixture + def num_parallel_threads(): + return 1 + + +# Array API backend handling +xp_available_backends = {'numpy': np} + +if SCIPY_ARRAY_API and isinstance(SCIPY_ARRAY_API, str): + # fill the dict of backends with available libraries + try: + import array_api_strict + xp_available_backends.update({'array_api_strict': array_api_strict}) + if _pep440.parse(array_api_strict.__version__) < _pep440.Version('2.0'): + raise ImportError("array-api-strict must be >= version 2.0") + array_api_strict.set_array_api_strict_flags( + api_version='2023.12' + ) + except ImportError: + pass + + try: + import torch # type: ignore[import-not-found] + xp_available_backends.update({'torch': torch}) + # can use `mps` or `cpu` + torch.set_default_device(SCIPY_DEVICE) + except ImportError: + pass + + try: + import cupy # type: ignore[import-not-found] + xp_available_backends.update({'cupy': cupy}) + except ImportError: + pass + + try: + import jax.numpy # type: ignore[import-not-found] + xp_available_backends.update({'jax.numpy': jax.numpy}) + jax.config.update("jax_enable_x64", True) + jax.config.update("jax_default_device", jax.devices(SCIPY_DEVICE)[0]) + except ImportError: + pass + + # by default, use all available backends + if SCIPY_ARRAY_API.lower() not in ("1", "true"): + SCIPY_ARRAY_API_ = json.loads(SCIPY_ARRAY_API) + + if 'all' in SCIPY_ARRAY_API_: + pass # same as True + else: + # only select a subset of backend by filtering out the dict + try: + xp_available_backends = { + backend: xp_available_backends[backend] + for backend in SCIPY_ARRAY_API_ + } + except KeyError: + msg = f"'--array-api-backend' must be in {xp_available_backends.keys()}" + raise ValueError(msg) + +if 'cupy' in xp_available_backends: + SCIPY_DEVICE = 'cuda' + +array_api_compatible = pytest.mark.parametrize("xp", xp_available_backends.values()) + +skip_xp_invalid_arg = pytest.mark.skipif(SCIPY_ARRAY_API, + reason = ('Test involves masked arrays, object arrays, or other types ' + 'that are not valid input when `SCIPY_ARRAY_API` is used.')) + + +def _backends_kwargs_from_request(request, skip_or_xfail): + """A helper for {skip,xfail}_xp_backends""" + # do not allow multiple backends + args_ = request.keywords[f'{skip_or_xfail}_xp_backends'].args + if len(args_) > 1: + # np_only / cpu_only has args=(), otherwise it's ('numpy',) + # and we do not allow ('numpy', 'cupy') + raise ValueError(f"multiple backends: {args_}") + + markers = list(request.node.iter_markers(f'{skip_or_xfail}_xp_backends')) + backends = [] + kwargs = {} + for marker in markers: + if marker.kwargs.get('np_only'): + kwargs['np_only'] = True + kwargs['exceptions'] = marker.kwargs.get('exceptions', []) + elif marker.kwargs.get('cpu_only'): + if not kwargs.get('np_only'): + # if np_only is given, it is certainly cpu only + kwargs['cpu_only'] = True + kwargs['exceptions'] = marker.kwargs.get('exceptions', []) + + # add backends, if any + if len(marker.args) > 0: + backend = marker.args[0] # was a tuple, ('numpy',) etc + backends.append(backend) + kwargs.update(**{backend: marker.kwargs}) + + return backends, kwargs + + +@pytest.fixture +def skip_xp_backends(xp, request): + """skip_xp_backends(backend=None, reason=None, np_only=False, cpu_only=False, exceptions=None) + + Skip a decorated test for the provided backend, or skip a category of backends. + + See ``skip_or_xfail_backends`` docstring for details. Note that, contrary to + ``skip_or_xfail_backends``, the ``backend`` and ``reason`` arguments are optional + single strings: this function only skips a single backend at a time. + To skip multiple backends, provide multiple decorators. + """ # noqa: E501 + if "skip_xp_backends" not in request.keywords: + return + + backends, kwargs = _backends_kwargs_from_request(request, skip_or_xfail='skip') + skip_or_xfail_xp_backends(xp, backends, kwargs, skip_or_xfail='skip') + + +@pytest.fixture +def xfail_xp_backends(xp, request): + """xfail_xp_backends(backend=None, reason=None, np_only=False, cpu_only=False, exceptions=None) + + xfail a decorated test for the provided backend, or xfail a category of backends. + + See ``skip_or_xfail_backends`` docstring for details. Note that, contrary to + ``skip_or_xfail_backends``, the ``backend`` and ``reason`` arguments are optional + single strings: this function only xfails a single backend at a time. + To xfail multiple backends, provide multiple decorators. + """ # noqa: E501 + if "xfail_xp_backends" not in request.keywords: + return + backends, kwargs = _backends_kwargs_from_request(request, skip_or_xfail='xfail') + skip_or_xfail_xp_backends(xp, backends, kwargs, skip_or_xfail='xfail') + + +def skip_or_xfail_xp_backends(xp, backends, kwargs, skip_or_xfail='skip'): + """ + Skip based on the ``skip_xp_backends`` or ``xfail_xp_backends`` marker. + + See the "Support for the array API standard" docs page for usage examples. + + Parameters + ---------- + backends : tuple + Backends to skip/xfail, e.g. ``("array_api_strict", "torch")``. + These are overriden when ``np_only`` is ``True``, and are not + necessary to provide for non-CPU backends when ``cpu_only`` is ``True``. + For a custom reason to apply, you should pass a dict ``{'reason': '...'}`` + to a keyword matching the name of the backend. + reason : str, optional + A reason for the skip/xfail in the case of ``np_only=True``. + If unprovided, a default reason is used. Note that it is not possible + to specify a custom reason with ``cpu_only``. + np_only : bool, optional + When ``True``, the test is skipped/xfailed for all backends other + than the default NumPy backend. There is no need to provide + any ``backends`` in this case. To specify a reason, pass a + value to ``reason``. Default: ``False``. + cpu_only : bool, optional + When ``True``, the test is skipped/xfailed on non-CPU devices. + There is no need to provide any ``backends`` in this case, + but any ``backends`` will also be skipped on the CPU. + Default: ``False``. + exceptions : list, optional + A list of exceptions for use with ``cpu_only`` or ``np_only``. + This should be provided when delegation is implemented for some, + but not all, non-CPU/non-NumPy backends. + skip_or_xfail : str + ``'skip'`` to skip, ``'xfail'`` to xfail. + """ + skip_or_xfail = getattr(pytest, skip_or_xfail) + np_only = kwargs.get("np_only", False) + cpu_only = kwargs.get("cpu_only", False) + exceptions = kwargs.get("exceptions", []) + + if reasons := kwargs.get("reasons"): + raise ValueError(f"provide a single `reason=` kwarg; got {reasons=} instead") + + # input validation + if np_only and cpu_only: + # np_only is a stricter subset of cpu_only + cpu_only = False + if exceptions and not (cpu_only or np_only): + raise ValueError("`exceptions` is only valid alongside `cpu_only` or `np_only`") + + if np_only: + reason = kwargs.get("reason", "do not run with non-NumPy backends.") + if not isinstance(reason, str) and len(reason) > 1: + raise ValueError("please provide a singleton `reason` " + "when using `np_only`") + if xp.__name__ != 'numpy' and xp.__name__ not in exceptions: + skip_or_xfail(reason=reason) + return + if cpu_only: + reason = ("no array-agnostic implementation or delegation available " + "for this backend and device") + exceptions = [] if exceptions is None else exceptions + if SCIPY_ARRAY_API and SCIPY_DEVICE != 'cpu': + if xp.__name__ == 'cupy' and 'cupy' not in exceptions: + skip_or_xfail(reason=reason) + elif xp.__name__ == 'torch' and 'torch' not in exceptions: + if 'cpu' not in xp.empty(0).device.type: + skip_or_xfail(reason=reason) + elif xp.__name__ == 'jax.numpy' and 'jax.numpy' not in exceptions: + for d in xp.empty(0).devices(): + if 'cpu' not in d.device_kind: + skip_or_xfail(reason=reason) + + if backends is not None: + for i, backend in enumerate(backends): + if xp.__name__ == backend: + reason = kwargs[backend].get('reason') + if not reason: + reason = f"do not run with array API backend: {backend}" + + skip_or_xfail(reason=reason) + + +# Following the approach of NumPy's conftest.py... +# Use a known and persistent tmpdir for hypothesis' caches, which +# can be automatically cleared by the OS or user. +hypothesis.configuration.set_hypothesis_home_dir( + os.path.join(tempfile.gettempdir(), ".hypothesis") +) + +# We register two custom profiles for SciPy - for details see +# https://hypothesis.readthedocs.io/en/latest/settings.html +# The first is designed for our own CI runs; the latter also +# forces determinism and is designed for use via scipy.test() +hypothesis.settings.register_profile( + name="nondeterministic", deadline=None, print_blob=True, +) +hypothesis.settings.register_profile( + name="deterministic", + deadline=None, print_blob=True, database=None, derandomize=True, + suppress_health_check=list(hypothesis.HealthCheck), +) + +# Profile is currently set by environment variable `SCIPY_HYPOTHESIS_PROFILE` +# In the future, it would be good to work the choice into dev.py. +SCIPY_HYPOTHESIS_PROFILE = os.environ.get("SCIPY_HYPOTHESIS_PROFILE", + "deterministic") +hypothesis.settings.load_profile(SCIPY_HYPOTHESIS_PROFILE) + + +############################################################################ +# doctesting stuff + +if HAVE_SCPDT: + + # FIXME: populate the dict once + @contextmanager + def warnings_errors_and_rng(test=None): + """Temporarily turn (almost) all warnings to errors. + + Filter out known warnings which we allow. + """ + known_warnings = dict() + + # these functions are known to emit "divide by zero" RuntimeWarnings + divide_by_zero = [ + 'scipy.linalg.norm', 'scipy.ndimage.center_of_mass', + ] + for name in divide_by_zero: + known_warnings[name] = dict(category=RuntimeWarning, + message='divide by zero') + + # Deprecated stuff in scipy.signal and elsewhere + deprecated = [ + 'scipy.signal.cwt', 'scipy.signal.morlet', 'scipy.signal.morlet2', + 'scipy.signal.ricker', + 'scipy.integrate.simpson', + 'scipy.interpolate.interp2d', + 'scipy.linalg.kron', + ] + for name in deprecated: + known_warnings[name] = dict(category=DeprecationWarning) + + from scipy import integrate + # the functions are known to emit IntegrationWarnings + integration_w = ['scipy.special.ellip_normal', + 'scipy.special.ellip_harm_2', + ] + for name in integration_w: + known_warnings[name] = dict(category=integrate.IntegrationWarning, + message='The occurrence of roundoff') + + # scipy.stats deliberately emits UserWarnings sometimes + user_w = ['scipy.stats.anderson_ksamp', 'scipy.stats.kurtosistest', + 'scipy.stats.normaltest', 'scipy.sparse.linalg.norm'] + for name in user_w: + known_warnings[name] = dict(category=UserWarning) + + # additional one-off warnings to filter + dct = { + 'scipy.sparse.linalg.norm': + dict(category=UserWarning, message="Exited at iteration"), + # tutorials + 'linalg.rst': + dict(message='the matrix subclass is not', + category=PendingDeprecationWarning), + 'stats.rst': + dict(message='The maximum number of subdivisions', + category=integrate.IntegrationWarning), + } + known_warnings.update(dct) + + # these legitimately emit warnings in examples + legit = set('scipy.signal.normalize') + + # Now, the meat of the matter: filter warnings, + # also control the random seed for each doctest. + + # XXX: this matches the refguide-check behavior, but is a tad strange: + # makes sure that the seed the old-fashioned np.random* methods is + # *NOT* reproducible but the new-style `default_rng()` *IS* repoducible. + # Should these two be either both repro or both not repro? + + from scipy._lib._util import _fixed_default_rng + import numpy as np + with _fixed_default_rng(): + np.random.seed(None) + with warnings.catch_warnings(): + if test and test.name in known_warnings: + warnings.filterwarnings('ignore', + **known_warnings[test.name]) + yield + elif test and test.name in legit: + yield + else: + warnings.simplefilter('error', Warning) + yield + + dt_config.user_context_mgr = warnings_errors_and_rng + dt_config.skiplist = set([ + 'scipy.linalg.LinAlgError', # comes from numpy + 'scipy.fftpack.fftshift', # fftpack stuff is also from numpy + 'scipy.fftpack.ifftshift', + 'scipy.fftpack.fftfreq', + 'scipy.special.sinc', # sinc is from numpy + 'scipy.optimize.show_options', # does not have much to doctest + 'scipy.signal.normalize', # manipulates warnings (XXX temp skip) + 'scipy.sparse.linalg.norm', # XXX temp skip + # these below test things which inherit from np.ndarray + # cross-ref https://github.com/numpy/numpy/issues/28019 + 'scipy.io.matlab.MatlabObject.strides', + 'scipy.io.matlab.MatlabObject.dtype', + 'scipy.io.matlab.MatlabOpaque.dtype', + 'scipy.io.matlab.MatlabOpaque.strides', + 'scipy.io.matlab.MatlabFunction.strides', + 'scipy.io.matlab.MatlabFunction.dtype' + ]) + + # these are affected by NumPy 2.0 scalar repr: rely on string comparison + if np.__version__ < "2": + dt_config.skiplist.update(set([ + 'scipy.io.hb_read', + 'scipy.io.hb_write', + 'scipy.sparse.csgraph.connected_components', + 'scipy.sparse.csgraph.depth_first_order', + 'scipy.sparse.csgraph.shortest_path', + 'scipy.sparse.csgraph.floyd_warshall', + 'scipy.sparse.csgraph.dijkstra', + 'scipy.sparse.csgraph.bellman_ford', + 'scipy.sparse.csgraph.johnson', + 'scipy.sparse.csgraph.yen', + 'scipy.sparse.csgraph.breadth_first_order', + 'scipy.sparse.csgraph.reverse_cuthill_mckee', + 'scipy.sparse.csgraph.structural_rank', + 'scipy.sparse.csgraph.construct_dist_matrix', + 'scipy.sparse.csgraph.reconstruct_path', + 'scipy.ndimage.value_indices', + 'scipy.stats.mstats.describe', + ])) + + # help pytest collection a bit: these names are either private + # (distributions), or just do not need doctesting. + dt_config.pytest_extra_ignore = [ + "scipy.stats.distributions", + "scipy.optimize.cython_optimize", + "scipy.test", + "scipy.show_config", + # equivalent to "pytest --ignore=path/to/file" + "scipy/special/_precompute", + "scipy/interpolate/_interpnd_info.py", + "scipy/_lib/array_api_compat", + "scipy/_lib/highs", + "scipy/_lib/unuran", + "scipy/_lib/_gcutils.py", + "scipy/_lib/doccer.py", + "scipy/_lib/_uarray", + ] + + dt_config.pytest_extra_xfail = { + # name: reason + "ND_regular_grid.rst": "ReST parser limitation", + "extrapolation_examples.rst": "ReST parser limitation", + "sampling_pinv.rst": "__cinit__ unexpected argument", + "sampling_srou.rst": "nan in scalar_power", + "probability_distributions.rst": "integration warning", + } + + # tutorials + dt_config.pseudocode = set(['integrate.nquad(func,']) + dt_config.local_resources = { + 'io.rst': [ + "octave_a.mat", + "octave_cells.mat", + "octave_struct.mat" + ] + } + + dt_config.strict_check = True +############################################################################ diff --git a/shared/package-files/43/4374e6c327df169558404a79e59a164c30e19ed7bbcd02a25f296c7db10c0ae2/helpers.h b/shared/package-files/43/4374e6c327df169558404a79e59a164c30e19ed7bbcd02a25f296c7db10c0ae2/helpers.h new file mode 100644 index 0000000000000000000000000000000000000000..b0cf1010289ead191c735ad48c999f1a850953b4 --- /dev/null +++ b/shared/package-files/43/4374e6c327df169558404a79e59a164c30e19ed7bbcd02a25f296c7db10c0ae2/helpers.h @@ -0,0 +1,160 @@ +// 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/python/platform.h" + +#include +#include +#include +#include + +#include "arrow/python/numpy_interop.h" + +#include "arrow/python/visibility.h" +#include "arrow/type.h" +#include "arrow/util/macros.h" + +namespace arrow { + +namespace py { + +class OwnedRef; + +// \brief Get an arrow DataType instance from Arrow's Type::type enum +// \param[in] type One of the values of Arrow's Type::type enum +// \return A shared pointer to DataType +ARROW_PYTHON_EXPORT std::shared_ptr GetPrimitiveType(Type::type type); + +// \brief Construct a Python float object from a half-float uint16_t value. +ARROW_PYTHON_EXPORT PyObject* PyFloat_FromHalf(uint16_t value); + +// \brief Convert a Python object to a half-float uint16_t value. +ARROW_PYTHON_EXPORT Result PyFloat_AsHalf(PyObject* obj); + +namespace internal { + +// \brief Check that a Python module has been already imported +// \param[in] module_name The name of the module +Result IsModuleImported(const std::string& module_name); + +// \brief Import a Python module +// \param[in] module_name The name of the module +// \param[out] ref The OwnedRef containing the module PyObject* +ARROW_PYTHON_EXPORT +Status ImportModule(const std::string& module_name, OwnedRef* ref); + +// \brief Import an object from a Python module +// \param[in] module A Python module +// \param[in] name The name of the object to import +// \param[out] ref The OwnedRef containing the \c name attribute of the Python module \c +// module +ARROW_PYTHON_EXPORT +Status ImportFromModule(PyObject* module, const std::string& name, OwnedRef* ref); + +// \brief Check whether obj is an integer, independent of Python versions. +inline bool IsPyInteger(PyObject* obj) { return PyLong_Check(obj); } + +// \brief Import symbols from pandas that we need for various type-checking, +// like pandas.NaT or pandas.NA +void InitPandasStaticData(); + +// \brief Use pandas missing value semantics to check if a value is null +ARROW_PYTHON_EXPORT +bool PandasObjectIsNull(PyObject* obj); + +// \brief Check that obj is a pandas.Timedelta instance +ARROW_PYTHON_EXPORT +bool IsPandasTimedelta(PyObject* obj); + +// \brief Check that obj is a pandas.Timestamp instance +bool IsPandasTimestamp(PyObject* obj); + +// \brief Returned a borrowed reference to the pandas.tseries.offsets.DateOffset +PyObject* BorrowPandasDataOffsetType(); + +// \brief Check whether obj is a floating-point NaN +ARROW_PYTHON_EXPORT +bool PyFloat_IsNaN(PyObject* obj); + +inline bool IsPyBinary(PyObject* obj) { + return PyBytes_Check(obj) || PyByteArray_Check(obj) || PyMemoryView_Check(obj); +} + +// \brief Convert a Python integer into a C integer +// \param[in] obj A Python integer +// \param[out] out A pointer to a C integer to hold the result of the conversion +// \return The status of the operation +template +Status CIntFromPython(PyObject* obj, Int* out, const std::string& overflow_message = ""); + +// \brief Convert a Python unicode string to a std::string +ARROW_PYTHON_EXPORT +Status PyUnicode_AsStdString(PyObject* obj, std::string* out); + +// \brief Convert a Python bytes object to a std::string +ARROW_PYTHON_EXPORT +std::string PyBytes_AsStdString(PyObject* obj); + +// \brief Call str() on the given object and return the result as a std::string +ARROW_PYTHON_EXPORT +Status PyObject_StdStringStr(PyObject* obj, std::string* out); + +// \brief Return the repr() of the given object (always succeeds) +ARROW_PYTHON_EXPORT +std::string PyObject_StdStringRepr(PyObject* obj); + +// \brief Cast the given size to int32_t, with error checking +inline Status CastSize(Py_ssize_t size, int32_t* out, + const char* error_msg = "Maximum size exceeded (2GB)") { + // size is assumed to be positive + if (size > std::numeric_limits::max()) { + return Status::Invalid(error_msg); + } + *out = static_cast(size); + return Status::OK(); +} + +inline Status CastSize(Py_ssize_t size, int64_t* out, const char* error_msg = NULLPTR) { + // size is assumed to be positive + *out = static_cast(size); + return Status::OK(); +} + +// \brief Print the Python object's __str__ form along with the passed error +// message +ARROW_PYTHON_EXPORT +Status InvalidValue(PyObject* obj, const std::string& why); + +ARROW_PYTHON_EXPORT +Status InvalidType(PyObject* obj, const std::string& why); + +ARROW_PYTHON_EXPORT +Status IntegerScalarToDoubleSafe(PyObject* obj, double* result); +ARROW_PYTHON_EXPORT +Status IntegerScalarToFloat32Safe(PyObject* obj, float* result); + +// \brief Print Python object __repr__ +void DebugPrint(PyObject* obj); + +ARROW_PYTHON_EXPORT +bool IsThreadingEnabled(); + +} // namespace internal +} // namespace py +} // namespace arrow diff --git a/shared/package-files/43/437bb3e916b0b52e2babfc844ed0f39b6ddb3f8bf7e730deb2653c2a39018fc2/linalg_matmul_compositeimplicitautograd_dispatch.h b/shared/package-files/43/437bb3e916b0b52e2babfc844ed0f39b6ddb3f8bf7e730deb2653c2a39018fc2/linalg_matmul_compositeimplicitautograd_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..8ef384282b37fc358c66b289825fa229a0133d2d --- /dev/null +++ b/shared/package-files/43/437bb3e916b0b52e2babfc844ed0f39b6ddb3f8bf7e730deb2653c2a39018fc2/linalg_matmul_compositeimplicitautograd_dispatch.h @@ -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 linalg_matmul(const at::Tensor & self, const at::Tensor & other); +TORCH_API at::Tensor & linalg_matmul_out(at::Tensor & out, const at::Tensor & self, const at::Tensor & other); +TORCH_API at::Tensor & linalg_matmul_outf(const at::Tensor & self, const at::Tensor & other, at::Tensor & out); + +} // namespace compositeimplicitautograd +} // namespace at diff --git a/shared/package-files/43/437c598dd05017878cda71e0e25a772570bcef7bdc87b53bee99740820c5a610/test_config.py b/shared/package-files/43/437c598dd05017878cda71e0e25a772570bcef7bdc87b53bee99740820c5a610/test_config.py new file mode 100644 index 0000000000000000000000000000000000000000..14a84485bf62f735eca43ae48b379150ca0da17e --- /dev/null +++ b/shared/package-files/43/437c598dd05017878cda71e0e25a772570bcef7bdc87b53bee99740820c5a610/test_config.py @@ -0,0 +1,186 @@ +import collections +import pickle + +import pytest + +import networkx as nx +from networkx.utils.configs import Config + + +# Define this at module level so we can test pickling +class ExampleConfig(Config): + """Example configuration.""" + + x: int + y: str + + def _check_config(self, key, value): + if key == "x" and value <= 0: + raise ValueError("x must be positive") + if key == "y" and not isinstance(value, str): + raise TypeError("y must be a str") + + +class EmptyConfig(Config): + pass + + +@pytest.mark.parametrize("cfg", [EmptyConfig(), Config()]) +def test_config_empty(cfg): + assert dir(cfg) == [] + with pytest.raises(AttributeError): + cfg.x = 1 + with pytest.raises(KeyError): + cfg["x"] = 1 + with pytest.raises(AttributeError): + cfg.x + with pytest.raises(KeyError): + cfg["x"] + assert len(cfg) == 0 + assert "x" not in cfg + assert cfg == cfg + assert cfg.get("x", 2) == 2 + assert set(cfg.keys()) == set() + assert set(cfg.values()) == set() + assert set(cfg.items()) == set() + cfg2 = pickle.loads(pickle.dumps(cfg)) + assert cfg == cfg2 + assert isinstance(cfg, collections.abc.Collection) + assert isinstance(cfg, collections.abc.Mapping) + + +def test_config_subclass(): + with pytest.raises(TypeError, match="missing 2 required keyword-only"): + ExampleConfig() + with pytest.raises(ValueError, match="x must be positive"): + ExampleConfig(x=0, y="foo") + with pytest.raises(TypeError, match="unexpected keyword"): + ExampleConfig(x=1, y="foo", z="bad config") + with pytest.raises(TypeError, match="unexpected keyword"): + EmptyConfig(z="bad config") + cfg = ExampleConfig(x=1, y="foo") + assert cfg.x == 1 + assert cfg["x"] == 1 + assert cfg["y"] == "foo" + assert cfg.y == "foo" + assert "x" in cfg + assert "y" in cfg + assert "z" not in cfg + assert len(cfg) == 2 + assert set(iter(cfg)) == {"x", "y"} + assert set(cfg.keys()) == {"x", "y"} + assert set(cfg.values()) == {1, "foo"} + assert set(cfg.items()) == {("x", 1), ("y", "foo")} + assert dir(cfg) == ["x", "y"] + cfg.x = 2 + cfg["y"] = "bar" + assert cfg["x"] == 2 + assert cfg.y == "bar" + with pytest.raises(TypeError, match="can't be deleted"): + del cfg.x + with pytest.raises(TypeError, match="can't be deleted"): + del cfg["y"] + assert cfg.x == 2 + assert cfg == cfg + assert cfg == ExampleConfig(x=2, y="bar") + assert cfg != ExampleConfig(x=3, y="baz") + assert cfg != Config(x=2, y="bar") + with pytest.raises(TypeError, match="y must be a str"): + cfg["y"] = 5 + with pytest.raises(ValueError, match="x must be positive"): + cfg.x = -5 + assert cfg.get("x", 10) == 2 + with pytest.raises(AttributeError): + cfg.z = 5 + with pytest.raises(KeyError): + cfg["z"] = 5 + with pytest.raises(AttributeError): + cfg.z + with pytest.raises(KeyError): + cfg["z"] + cfg2 = pickle.loads(pickle.dumps(cfg)) + assert cfg == cfg2 + assert cfg.__doc__ == "Example configuration." + assert cfg2.__doc__ == "Example configuration." + + +def test_config_defaults(): + class DefaultConfig(Config): + x: int = 0 + y: int + + cfg = DefaultConfig(y=1) + assert cfg.x == 0 + cfg = DefaultConfig(x=2, y=1) + assert cfg.x == 2 + + +def test_nxconfig(): + assert isinstance(nx.config.backend_priority, list) + assert isinstance(nx.config.backends, Config) + with pytest.raises(TypeError, match="must be a list of backend names"): + nx.config.backend_priority = "nx_loopback" + with pytest.raises(ValueError, match="Unknown backend when setting"): + nx.config.backend_priority = ["this_almost_certainly_is_not_a_backend"] + with pytest.raises(TypeError, match="must be a Config of backend configs"): + nx.config.backends = {} + with pytest.raises(TypeError, match="must be a Config of backend configs"): + nx.config.backends = Config(plausible_backend_name={}) + with pytest.raises(ValueError, match="Unknown backend when setting"): + nx.config.backends = Config(this_almost_certainly_is_not_a_backend=Config()) + with pytest.raises(TypeError, match="must be True or False"): + nx.config.cache_converted_graphs = "bad value" + + +def test_not_strict(): + class FlexibleConfig(Config, strict=False): + x: int + + cfg = FlexibleConfig(x=1) + assert "_strict" not in cfg + assert len(cfg) == 1 + assert list(cfg) == ["x"] + assert list(cfg.keys()) == ["x"] + assert list(cfg.values()) == [1] + assert list(cfg.items()) == [("x", 1)] + assert cfg.x == 1 + assert cfg["x"] == 1 + assert "x" in cfg + assert hasattr(cfg, "x") + assert "FlexibleConfig(x=1)" in repr(cfg) + assert cfg == FlexibleConfig(x=1) + del cfg.x + assert "FlexibleConfig()" in repr(cfg) + assert len(cfg) == 0 + assert not hasattr(cfg, "x") + assert "x" not in cfg + assert not hasattr(cfg, "y") + assert "y" not in cfg + cfg.y = 2 + assert len(cfg) == 1 + assert list(cfg) == ["y"] + assert list(cfg.keys()) == ["y"] + assert list(cfg.values()) == [2] + assert list(cfg.items()) == [("y", 2)] + assert cfg.y == 2 + assert cfg["y"] == 2 + assert hasattr(cfg, "y") + assert "y" in cfg + del cfg["y"] + assert len(cfg) == 0 + assert list(cfg) == [] + with pytest.raises(AttributeError, match="y"): + del cfg.y + with pytest.raises(KeyError, match="y"): + del cfg["y"] + with pytest.raises(TypeError, match="missing 1 required keyword-only"): + FlexibleConfig() + # Be strict when first creating the config object + with pytest.raises(TypeError, match="unexpected keyword argument 'y'"): + FlexibleConfig(x=1, y=2) + + class FlexibleConfigWithDefault(Config, strict=False): + x: int = 0 + + assert FlexibleConfigWithDefault().x == 0 + assert FlexibleConfigWithDefault(x=1)["x"] == 1 diff --git a/shared/package-files/43/437d4da7e1e729f0fdffef141d1af82afcddbe22c8e078da21a72f30a4060457/rfc7230.pyi b/shared/package-files/43/437d4da7e1e729f0fdffef141d1af82afcddbe22c8e078da21a72f30a4060457/rfc7230.pyi new file mode 100644 index 0000000000000000000000000000000000000000..a4bf5489baf95ec7ae4580fd06185ae43c221438 --- /dev/null +++ b/shared/package-files/43/437d4da7e1e729f0fdffef141d1af82afcddbe22c8e078da21a72f30a4060457/rfc7230.pyi @@ -0,0 +1,16 @@ +from typing import Pattern + +from .compat import tobytes as tobytes + +WS: str +OWS: str +RWS: str +BWS = str +TCHAR: str +OBS_TEXT: str +TOKEN: str +VCHAR: str +FIELD_VCHAR: str +FIELD_CONTENT: str +FIELD_VALUE: str +HEADER_FIELD: Pattern diff --git a/shared/package-files/43/437ff3964bd30fb04ea74f68d2fa4f848f6bff50016ffea7e42ba75cf4bc6425/datasets.h b/shared/package-files/43/437ff3964bd30fb04ea74f68d2fa4f848f6bff50016ffea7e42ba75cf4bc6425/datasets.h new file mode 100644 index 0000000000000000000000000000000000000000..df565e97235828e5c89c76f0373bc1cdaee01287 --- /dev/null +++ b/shared/package-files/43/437ff3964bd30fb04ea74f68d2fa4f848f6bff50016ffea7e42ba75cf4bc6425/datasets.h @@ -0,0 +1,9 @@ +#pragma once + +#include +#include +#include +#include +#include +#include +#include diff --git a/shared/package-files/43/43853874c3cd489f5ec8568aba1839e589a8d60406976e54ea628f024015ab4c/max_pool2d_with_indices_backward_native.h b/shared/package-files/43/43853874c3cd489f5ec8568aba1839e589a8d60406976e54ea628f024015ab4c/max_pool2d_with_indices_backward_native.h new file mode 100644 index 0000000000000000000000000000000000000000..b0cfa308aee66c616230154d7713d09a74e491d9 --- /dev/null +++ b/shared/package-files/43/43853874c3cd489f5ec8568aba1839e589a8d60406976e54ea628f024015ab4c/max_pool2d_with_indices_backward_native.h @@ -0,0 +1,26 @@ +#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_max_pool2d_with_indices_backward_out_cpu : public at::meta::structured_max_pool2d_with_indices_backward { +void impl(const at::Tensor & grad_output, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, bool ceil_mode, const at::Tensor & indices, const at::Tensor & grad_input); +}; +struct TORCH_API structured_max_pool2d_with_indices_backward_out_cuda : public at::meta::structured_max_pool2d_with_indices_backward { +void impl(const at::Tensor & grad_output, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, bool ceil_mode, const at::Tensor & indices, const at::Tensor & grad_input); +}; +} // namespace native +} // namespace at diff --git a/shared/package-files/43/438551a6034e4e8f57dc2d71904785e46def84c8128c13e40d1bfeac23d67804/any_native.h b/shared/package-files/43/438551a6034e4e8f57dc2d71904785e46def84c8128c13e40d1bfeac23d67804/any_native.h new file mode 100644 index 0000000000000000000000000000000000000000..007aa045513c189e941d8b9acc03a8b18121b0dc --- /dev/null +++ b/shared/package-files/43/438551a6034e4e8f57dc2d71904785e46def84c8128c13e40d1bfeac23d67804/any_native.h @@ -0,0 +1,34 @@ +#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_any_out : public at::meta::structured_any_dim { +void impl(const at::Tensor & self, int64_t dim, bool keepdim, const at::Tensor & out); +}; +TORCH_API at::Tensor any_dims_default(const at::Tensor & self, at::OptionalIntArrayRef dim=c10::nullopt, bool keepdim=false); +TORCH_API at::Tensor & any_dims_out_default(const at::Tensor & self, at::OptionalIntArrayRef dim, bool keepdim, at::Tensor & out); +struct TORCH_API structured_any_dims_out : public at::meta::structured_any_dims { +void impl(const at::Tensor & self, at::OptionalIntArrayRef dim, bool keepdim, const at::Tensor & out); +}; +TORCH_API at::Tensor any(const at::Tensor & self, at::Dimname dim, bool keepdim=false); +TORCH_API at::Tensor & any_out(const at::Tensor & self, at::Dimname dim, bool keepdim, at::Tensor & out); +struct TORCH_API structured_any_all_out : public at::meta::structured_any { +void impl(const at::Tensor & self, const at::Tensor & out); +}; +TORCH_API at::Tensor any_sparse(const at::Tensor & self); +} // namespace native +} // namespace at diff --git a/shared/package-files/43/4387a80905442a99eb95baa2419d723c066eecc9cd42012aa00c245ddd93d3ad/col_indices.h b/shared/package-files/43/4387a80905442a99eb95baa2419d723c066eecc9cd42012aa00c245ddd93d3ad/col_indices.h new file mode 100644 index 0000000000000000000000000000000000000000..afd71cf7dbe0d98f61816cbbf960e19ab16231d3 --- /dev/null +++ b/shared/package-files/43/4387a80905442a99eb95baa2419d723c066eecc9cd42012aa00c245ddd93d3ad/col_indices.h @@ -0,0 +1,26 @@ +#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 { + + + +} diff --git a/shared/package-files/43/438a4c75f3be39ee7ce1ce2a04e9466309ea29383e744158af1b61c7877a01d6/fortune b/shared/package-files/43/438a4c75f3be39ee7ce1ce2a04e9466309ea29383e744158af1b61c7877a01d6/fortune new file mode 100644 index 0000000000000000000000000000000000000000..518ed94a2a0f6fb00c4b7ba9097bbe595b66eec5 Binary files /dev/null and b/shared/package-files/43/438a4c75f3be39ee7ce1ce2a04e9466309ea29383e744158af1b61c7877a01d6/fortune differ diff --git a/shared/package-files/43/438a4c75f3be39ee7ce1ce2a04e9466309ea29383e744158af1b61c7877a01d6/fos b/shared/package-files/43/438a4c75f3be39ee7ce1ce2a04e9466309ea29383e744158af1b61c7877a01d6/fos new file mode 100644 index 0000000000000000000000000000000000000000..518ed94a2a0f6fb00c4b7ba9097bbe595b66eec5 Binary files /dev/null and b/shared/package-files/43/438a4c75f3be39ee7ce1ce2a04e9466309ea29383e744158af1b61c7877a01d6/fos differ diff --git a/shared/package-files/43/4391efa11d42d3bca6045b24768f32d93533a7f4ef4d5f43d804d8efc6b107be/normalization.py b/shared/package-files/43/4391efa11d42d3bca6045b24768f32d93533a7f4ef4d5f43d804d8efc6b107be/normalization.py new file mode 100644 index 0000000000000000000000000000000000000000..1127bf9acb81ea9a5803bd18181f25a311cefa07 --- /dev/null +++ b/shared/package-files/43/4391efa11d42d3bca6045b24768f32d93533a7f4ef4d5f43d804d8efc6b107be/normalization.py @@ -0,0 +1,17 @@ +# flake8: noqa: F401 +r"""Quantized Modules. + +This file is in the process of migration to `torch/ao/nn/quantized`, 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/quantized/modules`, +while adding an import statement here. +""" + +__all__ = ['LayerNorm', 'GroupNorm', 'InstanceNorm1d', 'InstanceNorm2d', 'InstanceNorm3d'] + +from torch.ao.nn.quantized.modules.normalization import LayerNorm +from torch.ao.nn.quantized.modules.normalization import GroupNorm +from torch.ao.nn.quantized.modules.normalization import InstanceNorm1d +from torch.ao.nn.quantized.modules.normalization import InstanceNorm2d +from torch.ao.nn.quantized.modules.normalization import InstanceNorm3d diff --git a/shared/package-files/43/43930bfd3e191ca2e015a768bf7d4b43ade8592b577fe51a8af13de58a162250/gen_contingency_table_tests.R b/shared/package-files/43/43930bfd3e191ca2e015a768bf7d4b43ade8592b577fe51a8af13de58a162250/gen_contingency_table_tests.R new file mode 100644 index 0000000000000000000000000000000000000000..af7e27a9053fa12a668672d41f32af1619f526dd --- /dev/null +++ b/shared/package-files/43/43930bfd3e191ca2e015a768bf7d4b43ade8592b577fe51a8af13de58a162250/gen_contingency_table_tests.R @@ -0,0 +1,74 @@ +library(coin) +library(exact2x2) + +tables = list() + +tables[[1]] = matrix(c(23, 15, 19, 31), ncol=2, byrow=TRUE) + +tables[[2]] = matrix(c(144, 33, 84, 126, + 2, 4, 14, 29, + 0, 2, 6, 25, + 0, 0, 1, 5), ncol=4, byrow=TRUE) + +tables[[3]] = matrix(c(20, 10, 5, + 3, 30, 15, + 0, 5, 40), + ncol=3, byrow=TRUE) + +results = array(0, c(length(tables), 17)) + +for (k in 1:3) { + + table = as.table(tables[[k]]) + names(attributes(table)$dimnames) = c("x", "y") + + # Nominal homogeneity test with chi^2 reference + rslt = mh_test(table) + results[k, 1] = rslt@statistic@teststatistic + results[k, 2] = rslt@statistic@df + + # Nominal homogeneity test with binomial reference + if (prod(dim(table)) == 4) { + rslt = mcnemar.exact(table) + results[k, 3] = rslt$p.value + } + + # Nominal homogeneity test with continuity correction + if (prod(dim(table)) == 4) { + rslt = mcnemar.test(table) + results[k, 4] = rslt$p.value + } + + # Linear-by-linear homogeneity test with linear weights + scores = list(x=seq(dim(table)[1]), y=seq(dim(table)[2])) + rslt = lbl_test(table, scores=scores) + results[k, 5] = rslt@statistic@linearstatistic + results[k, 6] = rslt@statistic@expectation + results[k, 7] = rslt@statistic@covariance@variance + results[k, 8] = rslt@statistic@teststatistic + results[k, 9] = rslt@distribution@pvalue(rslt@statistic@teststatistic) + + # Linear-by-linear homogeneity test with quadratic column weights + scores = list(x=seq(dim(table)[1]), y=seq(dim(table)[2])^2) + rslt = lbl_test(table, scores=scores) + results[k, 10] = rslt@statistic@linearstatistic + results[k, 11] = rslt@statistic@expectation + results[k, 12] = rslt@statistic@covariance@variance + results[k, 13] = rslt@statistic@teststatistic + results[k, 14] = rslt@distribution@pvalue(rslt@statistic@teststatistic) + + # Bowker symmetry test (apparently mcnemar.test performs a + # symmetry test when dim>2 although this is not documented). + rslt = mcnemar.test(table, correct=FALSE) + results[k, 15] = rslt$statistic + results[k, 16] = rslt$parameter[1] + results[k, 17] = rslt$p.value +} + +colnames(results) = c("homog_stat", "homog_df", "homog_binom_p", + "homog_cont_p", "lbl_stat", "lbl_expval", "lbl_var", + "lbl_chi2", "lbl_pvalue", "lbl2_stat", "lbl2_expval", + "lbl2_var", "lbl2_chi2", "lbl2_pvalue", "bowker_stat", + "bowker_df", "bowker_pvalue") + +write.csv(results, file="contingency_table_r_results.csv", row.names=FALSE) diff --git a/shared/package-files/43/439349b40a073f9987df58616a08bd77cfa3237aa84490e545034230c069386f/__init__.pyi b/shared/package-files/43/439349b40a073f9987df58616a08bd77cfa3237aa84490e545034230c069386f/__init__.pyi new file mode 100644 index 0000000000000000000000000000000000000000..25df24324da5a2191b5d894a8df4642737b103a9 --- /dev/null +++ b/shared/package-files/43/439349b40a073f9987df58616a08bd77cfa3237aa84490e545034230c069386f/__init__.pyi @@ -0,0 +1 @@ +from .classic import deprecated as deprecated diff --git a/shared/package-files/43/4393eb6733fa1e367f41769b382f4f1be7bf0daeb1e243ed92b3f5d8bafd236f/LICENSE b/shared/package-files/43/4393eb6733fa1e367f41769b382f4f1be7bf0daeb1e243ed92b3f5d8bafd236f/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..c8fc60f32e80077abc2c7c1e968b3fcf44cde304 --- /dev/null +++ b/shared/package-files/43/4393eb6733fa1e367f41769b382f4f1be7bf0daeb1e243ed92b3f5d8bafd236f/LICENSE @@ -0,0 +1,11 @@ +Copyright (c) 2011 Stefan Kögl + +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. Neither the name of the copyright holder 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 HOLDER 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. diff --git a/shared/package-files/43/4396805681a2e0ccc08ce1d4dbb22eb0610c1cfc179fdd0f20e258b13ae49f56/news-unk b/shared/package-files/43/4396805681a2e0ccc08ce1d4dbb22eb0610c1cfc179fdd0f20e258b13ae49f56/news-unk new file mode 100644 index 0000000000000000000000000000000000000000..14538b858416e4439783f1653585ec5053040c2b Binary files /dev/null and b/shared/package-files/43/4396805681a2e0ccc08ce1d4dbb22eb0610c1cfc179fdd0f20e258b13ae49f56/news-unk differ diff --git a/shared/package-files/43/4399faf37922b5c18b28a3a64408329ae99b0b5c6f408043df1242d761c83138/upsample_bicubic2d_meta_dispatch.h b/shared/package-files/43/4399faf37922b5c18b28a3a64408329ae99b0b5c6f408043df1242d761c83138/upsample_bicubic2d_meta_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..2dbc1290e9ef045f39404f2f229bdf360e565af0 --- /dev/null +++ b/shared/package-files/43/4399faf37922b5c18b28a3a64408329ae99b0b5c6f408043df1242d761c83138/upsample_bicubic2d_meta_dispatch.h @@ -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 upsample_bicubic2d(const at::Tensor & self, at::IntArrayRef output_size, bool align_corners, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt); +TORCH_API at::Tensor upsample_bicubic2d_symint(const at::Tensor & self, c10::SymIntArrayRef output_size, bool align_corners, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt); +TORCH_API at::Tensor & upsample_bicubic2d_out(at::Tensor & out, const at::Tensor & self, at::IntArrayRef output_size, bool align_corners, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt); +TORCH_API at::Tensor & upsample_bicubic2d_outf(const at::Tensor & self, at::IntArrayRef output_size, bool align_corners, c10::optional scales_h, c10::optional scales_w, at::Tensor & out); +TORCH_API at::Tensor & upsample_bicubic2d_symint_out(at::Tensor & out, const at::Tensor & self, c10::SymIntArrayRef output_size, bool align_corners, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt); +TORCH_API at::Tensor & upsample_bicubic2d_symint_outf(const at::Tensor & self, c10::SymIntArrayRef output_size, bool align_corners, c10::optional scales_h, c10::optional scales_w, at::Tensor & out); + +} // namespace meta +} // namespace at diff --git a/shared/package-files/43/439e1ca44e245387148c1141d7d7c5e84bcca73188ff85351a126c8deea0e12e/Chisinau b/shared/package-files/43/439e1ca44e245387148c1141d7d7c5e84bcca73188ff85351a126c8deea0e12e/Chisinau new file mode 100644 index 0000000000000000000000000000000000000000..a60bddd7b2c96628f11598f143918915c98052cc Binary files /dev/null and b/shared/package-files/43/439e1ca44e245387148c1141d7d7c5e84bcca73188ff85351a126c8deea0e12e/Chisinau differ diff --git a/shared/package-files/43/439e1ca44e245387148c1141d7d7c5e84bcca73188ff85351a126c8deea0e12e/Tiraspol b/shared/package-files/43/439e1ca44e245387148c1141d7d7c5e84bcca73188ff85351a126c8deea0e12e/Tiraspol new file mode 100644 index 0000000000000000000000000000000000000000..a60bddd7b2c96628f11598f143918915c98052cc Binary files /dev/null and b/shared/package-files/43/439e1ca44e245387148c1141d7d7c5e84bcca73188ff85351a126c8deea0e12e/Tiraspol differ diff --git a/shared/package-files/43/43a263316c6b9d854248f4cf0d1baa79744a6be29d80d6da57eb476ddc45ed89/optimiser.py b/shared/package-files/43/43a263316c6b9d854248f4cf0d1baa79744a6be29d80d6da57eb476ddc45ed89/optimiser.py new file mode 100644 index 0000000000000000000000000000000000000000..4594979199a3581e2b82464526cc85a3a6029c39 --- /dev/null +++ b/shared/package-files/43/43a263316c6b9d854248f4cf0d1baa79744a6be29d80d6da57eb476ddc45ed89/optimiser.py @@ -0,0 +1,168 @@ +# 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 hypothesis.internal.compat import int_from_bytes, int_to_bytes +from hypothesis.internal.conjecture.data import Status +from hypothesis.internal.conjecture.engine import BUFFER_SIZE +from hypothesis.internal.conjecture.junkdrawer import find_integer +from hypothesis.internal.conjecture.pareto import NO_SCORE + + +class Optimiser: + """A fairly basic optimiser designed to increase the value of scores for + targeted property-based testing. + + This implements a fairly naive hill climbing algorithm based on randomly + regenerating parts of the test case to attempt to improve the result. It is + not expected to produce amazing results, because it is designed to be run + in a fairly small testing budget, so it prioritises finding easy wins and + bailing out quickly if that doesn't work. + + For more information about targeted property-based testing, see + Löscher, Andreas, and Konstantinos Sagonas. "Targeted property-based + testing." Proceedings of the 26th ACM SIGSOFT International Symposium on + Software Testing and Analysis. ACM, 2017. + """ + + def __init__(self, engine, data, target, max_improvements=100): + """Optimise ``target`` starting from ``data``. Will stop either when + we seem to have found a local maximum or when the target score has + been improved ``max_improvements`` times. This limit is in place to + deal with the fact that the target score may not be bounded above.""" + self.engine = engine + self.current_data = data + self.target = target + self.max_improvements = max_improvements + self.improvements = 0 + + def run(self): + self.hill_climb() + + def score_function(self, data): + return data.target_observations.get(self.target, NO_SCORE) + + @property + def current_score(self): + return self.score_function(self.current_data) + + def consider_new_test_data(self, data): + """Consider a new data object as a candidate target. If it is better + than the current one, return True.""" + if data.status < Status.VALID: + return False + score = self.score_function(data) + if score < self.current_score: + return False + if score > self.current_score: + self.improvements += 1 + self.current_data = data + return True + assert score == self.current_score + # We allow transitions that leave the score unchanged as long as they + # don't increase the buffer size. This gives us a certain amount of + # freedom for lateral moves that will take us out of local maxima. + if len(data.buffer) <= len(self.current_data.buffer): + self.current_data = data + return True + return False + + def hill_climb(self): + """The main hill climbing loop where we actually do the work: Take + data, and attempt to improve its score for target. select_example takes + a data object and returns an index to an example where we should focus + our efforts.""" + + blocks_examined = set() + + prev = None + i = len(self.current_data.blocks) - 1 + while i >= 0 and self.improvements <= self.max_improvements: + if prev is not self.current_data: + i = len(self.current_data.blocks) - 1 + prev = self.current_data + + if i in blocks_examined: + i -= 1 + continue + + blocks_examined.add(i) + data = self.current_data + block = data.blocks[i] + prefix = data.buffer[: block.start] + + existing = data.buffer[block.start : block.end] + existing_as_int = int_from_bytes(existing) + max_int_value = (256 ** len(existing)) - 1 + + if existing_as_int == max_int_value: + continue + + def attempt_replace(v): + """Try replacing the current block in the current best test case + with an integer of value i. Note that we use the *current* + best and not the one we started with. This helps ensure that + if we luck into a good draw when making random choices we get + to keep the good bits.""" + if v < 0 or v > max_int_value: + return False + v_as_bytes = int_to_bytes(v, len(existing)) + + # We make a couple attempts at replacement. This only matters + # if we end up growing the buffer - otherwise we exit the loop + # early - but in the event that there *is* some randomized + # component we want to give it a couple of tries to succeed. + for _ in range(3): + attempt = self.engine.cached_test_function( + prefix + + v_as_bytes + + self.current_data.buffer[block.end :] + + bytes(BUFFER_SIZE), + ) + + if self.consider_new_test_data(attempt): + return True + + if attempt.status < Status.INVALID or len(attempt.buffer) == len( + self.current_data.buffer + ): + return False + + for i, ex in enumerate(self.current_data.examples): + if ex.start >= block.end: + break + if ex.end <= block.start: + continue + ex_attempt = attempt.examples[i] + if ex.length == ex_attempt.length: + continue + replacement = attempt.buffer[ex_attempt.start : ex_attempt.end] + if self.consider_new_test_data( + self.engine.cached_test_function( + prefix + + replacement + + self.current_data.buffer[ex.end :] + ) + ): + return True + return False + + # We unconditionally scan both upwards and downwards. The reason + # for this is that we allow "lateral" moves that don't increase the + # score but instead leave it constant. All else being equal we'd + # like to leave the test case closer to shrunk, so afterwards we + # try lowering the value towards zero even if we've just raised it. + + if not attempt_replace(max_int_value): + find_integer(lambda k: attempt_replace(k + existing_as_int)) + + existing = self.current_data.buffer[block.start : block.end] + existing_as_int = int_from_bytes(existing) + if not attempt_replace(0): + find_integer(lambda k: attempt_replace(existing_as_int - k)) diff --git a/shared/package-files/43/43a6bc37d209bb25353d8bb8862f32822c11e33927b528a2b35fe7c67d033ee1/abstract.pyi b/shared/package-files/43/43a6bc37d209bb25353d8bb8862f32822c11e33927b528a2b35fe7c67d033ee1/abstract.pyi new file mode 100644 index 0000000000000000000000000000000000000000..ff40dbe779bbaff085240ce2af06c52aede3197d --- /dev/null +++ b/shared/package-files/43/43a6bc37d209bb25353d8bb8862f32822c11e33927b528a2b35fe7c67d033ee1/abstract.pyi @@ -0,0 +1,189 @@ +import abc +import functools +from collections.abc import Hashable as _CanHash, Mapping, Sequence as _Sequence +from typing import ( + Any, + Literal as _Literal, + Protocol, + TypeAlias, + overload, + type_check_only, +) +from typing_extensions import ClassVar, Generic, Never, Self, TypeVar, override + +from numba.core.typeconv import castgraph +from numba.core.typing import context, templates +from .npytypes import Array + +### + +_T1 = TypeVar("_T1") +_T2 = TypeVar("_T2") +_T_contra = TypeVar("_T_contra", contravariant=True) +_T_co = TypeVar("_T_co", covariant=True) +_TypeT_co = TypeVar("_TypeT_co", bound=Type, default=Type, covariant=True) + +@type_check_only +class _CanCastPythonValue(Protocol[_T_contra, _T_co]): + def cast_python_value(self, value: _T_contra, /) -> _T_co: ... + +# the step is `Any` instead of `Literal[1] | None` so we can use it as invariant `list` +# element type +_SpecSlice: TypeAlias = slice[None, None, Any] +_Layout: TypeAlias = _Literal["C", "F", "CS", "FS", "A"] + +### + +class _TypeMetaclass(abc.ABCMeta): + def __init__( + cls, name: str, bases: tuple[type, ...], orig_vars: dict[str, Any] + ) -> None: ... + def __call__(cls, *args: Any, **kwargs: Any) -> Any: ... + +class Type(metaclass=_TypeMetaclass): + reflected: ClassVar[bool] = False + + name: str + mutable: bool = False + + def __init__(self, name: str) -> None: ... + + # + @overload # () -> Signature + def __call__(self, /) -> templates.Signature: ... + @overload # (Type, ...) -> Signature + def __call__(self, arg0: Type, /, *args: Type) -> templates.Signature: ... + @overload # (_: object) -> self.cast_python_value(_) + def __call__(self: _CanCastPythonValue[_T1, _T2], arg0: _T1, /) -> _T2: ... + + # + def __getitem__( + self, args: _SpecSlice | tuple[_SpecSlice, ...] | list[_SpecSlice], / + ) -> Array: ... + + # + @property + def key(self) -> _CanHash: ... + @property + def mangling_args(self) -> tuple[str, tuple[object, ...]]: ... + @property + def is_internal(self) -> bool: ... + + # + def can_convert_to( + self, + typingctx: context.Context, + other: Type, + ) -> castgraph.Conversion | None: ... + def can_convert_from( + self, + typingctx: context.Context, + other: Type, + ) -> castgraph.Conversion | None: ... + def cast_python_value(self, args: Never, /) -> Any: ... + + # + def is_precise(self) -> bool: ... + def augment(self, other: Type) -> Self | None: ... + def unify(self, typingctx: context.Context, other: Type) -> Type | None: ... + def dump(self, tab: str = "") -> None: ... + +class Dummy(Type): ... +class Hashable(Type): ... + +class Number(Hashable): + @override + @overload + def unify(self, typingctx: context.Context, other: Number) -> Number: ... + @overload + def unify(self, typingctx: context.Context, other: Type) -> Number | None: ... + +class Callable(Type): + @abc.abstractmethod + def get_call_type( + self, context: context.Context, args: tuple[Type, ...], kws: Mapping[str, Type] + ) -> templates.Signature | None: ... + @abc.abstractmethod + def get_call_signatures(self) -> tuple[_Sequence[templates.Signature], bool]: ... + @abc.abstractmethod + def get_impl_key(self, sig: templates.Signature) -> _CanHash: ... + +class DTypeSpec(Type): + @property + @abc.abstractmethod + def dtype(self) -> Any: ... + +class IterableType(Type, Generic[_TypeT_co]): + @property + @abc.abstractmethod + def iterator_type(self) -> IteratorType[_TypeT_co]: ... + +class Sized(Type): ... + +class ConstSized(Sized): + @abc.abstractmethod + def __len__(self) -> int: ... + +class IteratorType(IterableType[_TypeT_co], Generic[_TypeT_co]): + def __init__(self, name: str, **kwargs: Never) -> None: ... + @property + @abc.abstractmethod + def yield_type(self) -> _TypeT_co: ... + @property + @override + def iterator_type(self) -> Self: ... + +# pyrefly: ignore[invalid-inheritance] +class Container( + Sized, + IterableType[_TypeT_co], + Generic[_TypeT_co], + metaclass=abc.ABCMeta, +): ... +class Sequence(Container[_TypeT_co], Generic[_TypeT_co], metaclass=abc.ABCMeta): ... + +class MutableSequence(Sequence[_TypeT_co], Generic[_TypeT_co], metaclass=abc.ABCMeta): + mutable: bool = True + +class ArrayCompatible(Type): + array_priority: ClassVar[float] = 0.0 + + @property + @abc.abstractmethod + def as_array(self) -> ArrayCompatible: ... + + # + @functools.cached_property + def ndim(self) -> int: ... + @functools.cached_property + def layout(self) -> _Layout: ... + @functools.cached_property + def dtype(self) -> Type: ... + +class Literal(Type, Generic[_T_co]): + ctor_map: ClassVar[dict[type, type[Literal[Any]]]] = ... + + def __init__(self, value: _T_co) -> None: ... + @property + def literal_value(self) -> _T_co: ... + @property + def literal_type(self) -> Type: ... + +class TypeRef(Dummy, Generic[_TypeT_co]): + instance_type: _TypeT_co # readonly + + def __init__(self, instance_type: _TypeT_co) -> None: ... + @property + @override + def key(self) -> _TypeT_co: ... + +class InitialValue(Generic[_T_co]): + def __init__(self, initial_value: _T_co) -> None: ... + @property + def initial_value(self) -> _T_co: ... + +class Poison(Type, Generic[_TypeT_co]): # like `Never` + def __init__(self, ty: _TypeT_co) -> None: ... + def __unliteral__(self) -> Poison[Self]: ... + @override + def unify(self, typingctx: context.Context, other: Type) -> None: ... diff --git a/shared/package-files/43/43a7ed8d8fe1b67caea71704e8236d271f78dae9e193991b1195c069b4cf9b3e/select_scatter_native.h b/shared/package-files/43/43a7ed8d8fe1b67caea71704e8236d271f78dae9e193991b1195c069b4cf9b3e/select_scatter_native.h new file mode 100644 index 0000000000000000000000000000000000000000..6ba7d6a2207b60ee99d67f79ebc302c57f564907 --- /dev/null +++ b/shared/package-files/43/43a7ed8d8fe1b67caea71704e8236d271f78dae9e193991b1195c069b4cf9b3e/select_scatter_native.h @@ -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 & select_scatter_out_symint(const at::Tensor & self, const at::Tensor & src, int64_t dim, c10::SymInt index, at::Tensor & out); +TORCH_API at::Tensor select_scatter_symint(const at::Tensor & self, const at::Tensor & src, int64_t dim, c10::SymInt index); +} // namespace native +} // namespace at diff --git a/shared/package-files/43/43ab8c767e1e6da404a0b73dd4ff8d219b05742a8a85f0b1b427a4cbaf99d71d/replace.py b/shared/package-files/43/43ab8c767e1e6da404a0b73dd4ff8d219b05742a8a85f0b1b427a4cbaf99d71d/replace.py new file mode 100644 index 0000000000000000000000000000000000000000..16239ed8c46970f38159ae12bc9a45da31ffd617 --- /dev/null +++ b/shared/package-files/43/43ab8c767e1e6da404a0b73dd4ff8d219b05742a8a85f0b1b427a4cbaf99d71d/replace.py @@ -0,0 +1,155 @@ +""" +Methods used by Block.replace and related methods. +""" +from __future__ import annotations + +import operator +import re +from re import Pattern +from typing import ( + TYPE_CHECKING, + Any, +) + +import numpy as np + +from pandas.core.dtypes.common import ( + is_bool, + is_re, + is_re_compilable, +) +from pandas.core.dtypes.missing import isna + +if TYPE_CHECKING: + from pandas._typing import ( + ArrayLike, + Scalar, + npt, + ) + + +def should_use_regex(regex: bool, to_replace: Any) -> bool: + """ + Decide whether to treat `to_replace` as a regular expression. + """ + if is_re(to_replace): + regex = True + + regex = regex and is_re_compilable(to_replace) + + # Don't use regex if the pattern is empty. + regex = regex and re.compile(to_replace).pattern != "" + return regex + + +def compare_or_regex_search( + a: ArrayLike, b: Scalar | Pattern, regex: bool, mask: npt.NDArray[np.bool_] +) -> ArrayLike: + """ + Compare two array-like inputs of the same shape or two scalar values + + Calls operator.eq or re.search, depending on regex argument. If regex is + True, perform an element-wise regex matching. + + Parameters + ---------- + a : array-like + b : scalar or regex pattern + regex : bool + mask : np.ndarray[bool] + + Returns + ------- + mask : array-like of bool + """ + if isna(b): + return ~mask + + def _check_comparison_types( + result: ArrayLike | bool, a: ArrayLike, b: Scalar | Pattern + ): + """ + Raises an error if the two arrays (a,b) cannot be compared. + Otherwise, returns the comparison result as expected. + """ + if is_bool(result) and isinstance(a, np.ndarray): + type_names = [type(a).__name__, type(b).__name__] + + type_names[0] = f"ndarray(dtype={a.dtype})" + + raise TypeError( + f"Cannot compare types {repr(type_names[0])} and {repr(type_names[1])}" + ) + + if not regex or not should_use_regex(regex, b): + # TODO: should use missing.mask_missing? + op = lambda x: operator.eq(x, b) + else: + op = np.vectorize( + lambda x: bool(re.search(b, x)) + if isinstance(x, str) and isinstance(b, (str, Pattern)) + else False + ) + + # GH#32621 use mask to avoid comparing to NAs + if isinstance(a, np.ndarray) and mask is not None: + a = a[mask] + result = op(a) + + if isinstance(result, np.ndarray): + # The shape of the mask can differ to that of the result + # since we may compare only a subset of a's or b's elements + tmp = np.zeros(mask.shape, dtype=np.bool_) + np.place(tmp, mask, result) + result = tmp + else: + result = op(a) + + _check_comparison_types(result, a, b) + return result + + +def replace_regex( + values: ArrayLike, rx: re.Pattern, value, mask: npt.NDArray[np.bool_] | None +) -> None: + """ + Parameters + ---------- + values : ArrayLike + Object dtype. + rx : re.Pattern + value : Any + mask : np.ndarray[bool], optional + + Notes + ----- + Alters values in-place. + """ + + # deal with replacing values with objects (strings) that match but + # whose replacement is not a string (numeric, nan, object) + if isna(value) or not isinstance(value, str): + + def re_replacer(s): + if is_re(rx) and isinstance(s, str): + return value if rx.search(s) is not None else s + else: + return s + + else: + # value is guaranteed to be a string here, s can be either a string + # or null if it's null it gets returned + def re_replacer(s): + if is_re(rx) and isinstance(s, str): + return rx.sub(value, s) + else: + return s + + f = np.vectorize(re_replacer, otypes=[np.object_]) + + if mask is None: + values[:] = f(values) + else: + if values.ndim != mask.ndim: + mask = np.broadcast_to(mask, values.shape) + values[mask] = f(values[mask]) diff --git a/shared/package-files/43/43ad6a32c4ac342b663b410c4711e3e59ed1613cab10b5699337c963978af19d/false_positives.pyi b/shared/package-files/43/43ad6a32c4ac342b663b410c4711e3e59ed1613cab10b5699337c963978af19d/false_positives.pyi new file mode 100644 index 0000000000000000000000000000000000000000..7e79230663c2956acdc6addeab8efaca5b44d563 --- /dev/null +++ b/shared/package-files/43/43ad6a32c4ac342b663b410c4711e3e59ed1613cab10b5699337c963978af19d/false_positives.pyi @@ -0,0 +1,11 @@ +import numpy as np +import numpy.typing as npt + +AR_f8: npt.NDArray[np.float64] + +# NOTE: Mypy bug presumably due to the special-casing of heterogeneous tuples; +# xref numpy/numpy#20901 +# +# The expected output should be no different than, e.g., when using a +# list instead of a tuple +np.concatenate(([1], AR_f8)) # E: Argument 1 to "concatenate" has incompatible type diff --git a/shared/package-files/43/43af59cbca29df506af21ff4b3f92869a4ecf9fd3dcb24eaab439b17e788e21f/nll_loss_nd_compositeimplicitautograd_dispatch.h b/shared/package-files/43/43af59cbca29df506af21ff4b3f92869a4ecf9fd3dcb24eaab439b17e788e21f/nll_loss_nd_compositeimplicitautograd_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..fc9f643c96938040defbb326562e0a7eb8896297 --- /dev/null +++ b/shared/package-files/43/43af59cbca29df506af21ff4b3f92869a4ecf9fd3dcb24eaab439b17e788e21f/nll_loss_nd_compositeimplicitautograd_dispatch.h @@ -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 nll_loss_nd(const at::Tensor & self, const at::Tensor & target, const c10::optional & weight={}, int64_t reduction=at::Reduction::Mean, int64_t ignore_index=-100); +TORCH_API at::Tensor nll_loss_nd_symint(const at::Tensor & self, const at::Tensor & target, const c10::optional & weight={}, int64_t reduction=at::Reduction::Mean, c10::SymInt ignore_index=-100); + +} // namespace compositeimplicitautograd +} // namespace at diff --git a/shared/package-files/43/43b039e25b28bc3c410c4a94ed734126a9773e834b17b355797c2f30582b548d/test_tz_localize.py b/shared/package-files/43/43b039e25b28bc3c410c4a94ed734126a9773e834b17b355797c2f30582b548d/test_tz_localize.py new file mode 100644 index 0000000000000000000000000000000000000000..ad7769c6b96714b30fe4f3a1e1468de05ec1e6f2 --- /dev/null +++ b/shared/package-files/43/43b039e25b28bc3c410c4a94ed734126a9773e834b17b355797c2f30582b548d/test_tz_localize.py @@ -0,0 +1,402 @@ +from datetime import ( + datetime, + timedelta, +) + +import dateutil.tz +from dateutil.tz import gettz +import numpy as np +import pytest +import pytz + +from pandas import ( + DatetimeIndex, + Timestamp, + bdate_range, + date_range, + offsets, + to_datetime, +) +import pandas._testing as tm + +try: + from zoneinfo import ZoneInfo +except ImportError: + # Cannot assign to a type [misc] + ZoneInfo = None # type: ignore[misc, assignment] + + +easts = [pytz.timezone("US/Eastern"), gettz("US/Eastern")] +if ZoneInfo is not None: + try: + tz = ZoneInfo("US/Eastern") + except KeyError: + # no tzdata + pass + else: + easts.append(tz) + + +class TestTZLocalize: + def test_tz_localize_invalidates_freq(self): + # we only preserve freq in unambiguous cases + + # if localized to US/Eastern, this crosses a DST transition + dti = date_range("2014-03-08 23:00", "2014-03-09 09:00", freq="h") + assert dti.freq == "h" + + result = dti.tz_localize(None) # no-op + assert result.freq == "h" + + result = dti.tz_localize("UTC") # unambiguous freq preservation + assert result.freq == "h" + + result = dti.tz_localize("US/Eastern", nonexistent="shift_forward") + assert result.freq is None + assert result.inferred_freq is None # i.e. we are not _too_ strict here + + # Case where we _can_ keep freq because we're length==1 + dti2 = dti[:1] + result = dti2.tz_localize("US/Eastern") + assert result.freq == "h" + + def test_tz_localize_utc_copies(self, utc_fixture): + # GH#46460 + times = ["2015-03-08 01:00", "2015-03-08 02:00", "2015-03-08 03:00"] + index = DatetimeIndex(times) + + res = index.tz_localize(utc_fixture) + assert not tm.shares_memory(res, index) + + res2 = index._data.tz_localize(utc_fixture) + assert not tm.shares_memory(index._data, res2) + + def test_dti_tz_localize_nonexistent_raise_coerce(self): + # GH#13057 + times = ["2015-03-08 01:00", "2015-03-08 02:00", "2015-03-08 03:00"] + index = DatetimeIndex(times) + tz = "US/Eastern" + with pytest.raises(pytz.NonExistentTimeError, match="|".join(times)): + index.tz_localize(tz=tz) + + with pytest.raises(pytz.NonExistentTimeError, match="|".join(times)): + index.tz_localize(tz=tz, nonexistent="raise") + + result = index.tz_localize(tz=tz, nonexistent="NaT") + test_times = ["2015-03-08 01:00-05:00", "NaT", "2015-03-08 03:00-04:00"] + dti = to_datetime(test_times, utc=True) + expected = dti.tz_convert("US/Eastern") + tm.assert_index_equal(result, expected) + + @pytest.mark.parametrize("tz", easts) + def test_dti_tz_localize_ambiguous_infer(self, tz): + # November 6, 2011, fall back, repeat 2 AM hour + # With no repeated hours, we cannot infer the transition + dr = date_range(datetime(2011, 11, 6, 0), periods=5, freq=offsets.Hour()) + with pytest.raises(pytz.AmbiguousTimeError, match="Cannot infer dst time"): + dr.tz_localize(tz) + + @pytest.mark.parametrize("tz", easts) + def test_dti_tz_localize_ambiguous_infer2(self, tz, unit): + # With repeated hours, we can infer the transition + dr = date_range( + datetime(2011, 11, 6, 0), periods=5, freq=offsets.Hour(), tz=tz, unit=unit + ) + times = [ + "11/06/2011 00:00", + "11/06/2011 01:00", + "11/06/2011 01:00", + "11/06/2011 02:00", + "11/06/2011 03:00", + ] + di = DatetimeIndex(times).as_unit(unit) + result = di.tz_localize(tz, ambiguous="infer") + expected = dr._with_freq(None) + tm.assert_index_equal(result, expected) + result2 = DatetimeIndex(times, tz=tz, ambiguous="infer").as_unit(unit) + tm.assert_index_equal(result2, expected) + + @pytest.mark.parametrize("tz", easts) + def test_dti_tz_localize_ambiguous_infer3(self, tz): + # When there is no dst transition, nothing special happens + dr = date_range(datetime(2011, 6, 1, 0), periods=10, freq=offsets.Hour()) + localized = dr.tz_localize(tz) + localized_infer = dr.tz_localize(tz, ambiguous="infer") + tm.assert_index_equal(localized, localized_infer) + + @pytest.mark.parametrize("tz", easts) + def test_dti_tz_localize_ambiguous_times(self, tz): + # March 13, 2011, spring forward, skip from 2 AM to 3 AM + dr = date_range(datetime(2011, 3, 13, 1, 30), periods=3, freq=offsets.Hour()) + with pytest.raises(pytz.NonExistentTimeError, match="2011-03-13 02:30:00"): + dr.tz_localize(tz) + + # after dst transition, it works + dr = date_range( + datetime(2011, 3, 13, 3, 30), periods=3, freq=offsets.Hour(), tz=tz + ) + + # November 6, 2011, fall back, repeat 2 AM hour + dr = date_range(datetime(2011, 11, 6, 1, 30), periods=3, freq=offsets.Hour()) + with pytest.raises(pytz.AmbiguousTimeError, match="Cannot infer dst time"): + dr.tz_localize(tz) + + # UTC is OK + dr = date_range( + datetime(2011, 3, 13), periods=48, freq=offsets.Minute(30), tz=pytz.utc + ) + + @pytest.mark.parametrize("tzstr", ["US/Eastern", "dateutil/US/Eastern"]) + def test_dti_tz_localize_pass_dates_to_utc(self, tzstr): + strdates = ["1/1/2012", "3/1/2012", "4/1/2012"] + + idx = DatetimeIndex(strdates) + conv = idx.tz_localize(tzstr) + + fromdates = DatetimeIndex(strdates, tz=tzstr) + + assert conv.tz == fromdates.tz + tm.assert_numpy_array_equal(conv.values, fromdates.values) + + @pytest.mark.parametrize("prefix", ["", "dateutil/"]) + def test_dti_tz_localize(self, prefix): + tzstr = prefix + "US/Eastern" + dti = date_range(start="1/1/2005", end="1/1/2005 0:00:30.256", freq="ms") + dti2 = dti.tz_localize(tzstr) + + dti_utc = date_range( + start="1/1/2005 05:00", end="1/1/2005 5:00:30.256", freq="ms", tz="utc" + ) + + tm.assert_numpy_array_equal(dti2.values, dti_utc.values) + + dti3 = dti2.tz_convert(prefix + "US/Pacific") + tm.assert_numpy_array_equal(dti3.values, dti_utc.values) + + dti = date_range(start="11/6/2011 1:59", end="11/6/2011 2:00", freq="ms") + with pytest.raises(pytz.AmbiguousTimeError, match="Cannot infer dst time"): + dti.tz_localize(tzstr) + + dti = date_range(start="3/13/2011 1:59", end="3/13/2011 2:00", freq="ms") + with pytest.raises(pytz.NonExistentTimeError, match="2011-03-13 02:00:00"): + dti.tz_localize(tzstr) + + @pytest.mark.parametrize( + "tz", + [ + "US/Eastern", + "dateutil/US/Eastern", + pytz.timezone("US/Eastern"), + gettz("US/Eastern"), + ], + ) + def test_dti_tz_localize_utc_conversion(self, tz): + # Localizing to time zone should: + # 1) check for DST ambiguities + # 2) convert to UTC + + rng = date_range("3/10/2012", "3/11/2012", freq="30min") + + converted = rng.tz_localize(tz) + expected_naive = rng + offsets.Hour(5) + tm.assert_numpy_array_equal(converted.asi8, expected_naive.asi8) + + # DST ambiguity, this should fail + rng = date_range("3/11/2012", "3/12/2012", freq="30min") + # Is this really how it should fail?? + with pytest.raises(pytz.NonExistentTimeError, match="2012-03-11 02:00:00"): + rng.tz_localize(tz) + + def test_dti_tz_localize_roundtrip(self, tz_aware_fixture): + # note: this tz tests that a tz-naive index can be localized + # and de-localized successfully, when there are no DST transitions + # in the range. + idx = date_range(start="2014-06-01", end="2014-08-30", freq="15min") + tz = tz_aware_fixture + localized = idx.tz_localize(tz) + # can't localize a tz-aware object + with pytest.raises( + TypeError, match="Already tz-aware, use tz_convert to convert" + ): + localized.tz_localize(tz) + reset = localized.tz_localize(None) + assert reset.tzinfo is None + expected = idx._with_freq(None) + tm.assert_index_equal(reset, expected) + + def test_dti_tz_localize_naive(self): + rng = date_range("1/1/2011", periods=100, freq="h") + + conv = rng.tz_localize("US/Pacific") + exp = date_range("1/1/2011", periods=100, freq="h", tz="US/Pacific") + + tm.assert_index_equal(conv, exp._with_freq(None)) + + def test_dti_tz_localize_tzlocal(self): + # GH#13583 + offset = dateutil.tz.tzlocal().utcoffset(datetime(2011, 1, 1)) + offset = int(offset.total_seconds() * 1000000000) + + dti = date_range(start="2001-01-01", end="2001-03-01") + dti2 = dti.tz_localize(dateutil.tz.tzlocal()) + tm.assert_numpy_array_equal(dti2.asi8 + offset, dti.asi8) + + dti = date_range(start="2001-01-01", end="2001-03-01", tz=dateutil.tz.tzlocal()) + dti2 = dti.tz_localize(None) + tm.assert_numpy_array_equal(dti2.asi8 - offset, dti.asi8) + + @pytest.mark.parametrize("tz", easts) + def test_dti_tz_localize_ambiguous_nat(self, tz): + times = [ + "11/06/2011 00:00", + "11/06/2011 01:00", + "11/06/2011 01:00", + "11/06/2011 02:00", + "11/06/2011 03:00", + ] + di = DatetimeIndex(times) + localized = di.tz_localize(tz, ambiguous="NaT") + + times = [ + "11/06/2011 00:00", + np.nan, + np.nan, + "11/06/2011 02:00", + "11/06/2011 03:00", + ] + di_test = DatetimeIndex(times, tz="US/Eastern") + + # left dtype is datetime64[ns, US/Eastern] + # right is datetime64[ns, tzfile('/usr/share/zoneinfo/US/Eastern')] + tm.assert_numpy_array_equal(di_test.values, localized.values) + + @pytest.mark.parametrize("tz", easts) + def test_dti_tz_localize_ambiguous_flags(self, tz, unit): + # November 6, 2011, fall back, repeat 2 AM hour + + # Pass in flags to determine right dst transition + dr = date_range( + datetime(2011, 11, 6, 0), periods=5, freq=offsets.Hour(), tz=tz, unit=unit + ) + times = [ + "11/06/2011 00:00", + "11/06/2011 01:00", + "11/06/2011 01:00", + "11/06/2011 02:00", + "11/06/2011 03:00", + ] + + # Test tz_localize + di = DatetimeIndex(times).as_unit(unit) + is_dst = [1, 1, 0, 0, 0] + localized = di.tz_localize(tz, ambiguous=is_dst) + expected = dr._with_freq(None) + tm.assert_index_equal(expected, localized) + + result = DatetimeIndex(times, tz=tz, ambiguous=is_dst).as_unit(unit) + tm.assert_index_equal(result, expected) + + localized = di.tz_localize(tz, ambiguous=np.array(is_dst)) + tm.assert_index_equal(dr, localized) + + localized = di.tz_localize(tz, ambiguous=np.array(is_dst).astype("bool")) + tm.assert_index_equal(dr, localized) + + # Test constructor + localized = DatetimeIndex(times, tz=tz, ambiguous=is_dst).as_unit(unit) + tm.assert_index_equal(dr, localized) + + # Test duplicate times where inferring the dst fails + times += times + di = DatetimeIndex(times).as_unit(unit) + + # When the sizes are incompatible, make sure error is raised + msg = "Length of ambiguous bool-array must be the same size as vals" + with pytest.raises(Exception, match=msg): + di.tz_localize(tz, ambiguous=is_dst) + + # When sizes are compatible and there are repeats ('infer' won't work) + is_dst = np.hstack((is_dst, is_dst)) + localized = di.tz_localize(tz, ambiguous=is_dst) + dr = dr.append(dr) + tm.assert_index_equal(dr, localized) + + @pytest.mark.parametrize("tz", easts) + def test_dti_tz_localize_ambiguous_flags2(self, tz, unit): + # When there is no dst transition, nothing special happens + dr = date_range(datetime(2011, 6, 1, 0), periods=10, freq=offsets.Hour()) + is_dst = np.array([1] * 10) + localized = dr.tz_localize(tz) + localized_is_dst = dr.tz_localize(tz, ambiguous=is_dst) + tm.assert_index_equal(localized, localized_is_dst) + + def test_dti_tz_localize_bdate_range(self): + dr = bdate_range("1/1/2009", "1/1/2010") + dr_utc = bdate_range("1/1/2009", "1/1/2010", tz=pytz.utc) + localized = dr.tz_localize(pytz.utc) + tm.assert_index_equal(dr_utc, localized) + + @pytest.mark.parametrize( + "start_ts, tz, end_ts, shift", + [ + ["2015-03-29 02:20:00", "Europe/Warsaw", "2015-03-29 03:00:00", "forward"], + [ + "2015-03-29 02:20:00", + "Europe/Warsaw", + "2015-03-29 01:59:59.999999999", + "backward", + ], + [ + "2015-03-29 02:20:00", + "Europe/Warsaw", + "2015-03-29 03:20:00", + timedelta(hours=1), + ], + [ + "2015-03-29 02:20:00", + "Europe/Warsaw", + "2015-03-29 01:20:00", + timedelta(hours=-1), + ], + ["2018-03-11 02:33:00", "US/Pacific", "2018-03-11 03:00:00", "forward"], + [ + "2018-03-11 02:33:00", + "US/Pacific", + "2018-03-11 01:59:59.999999999", + "backward", + ], + [ + "2018-03-11 02:33:00", + "US/Pacific", + "2018-03-11 03:33:00", + timedelta(hours=1), + ], + [ + "2018-03-11 02:33:00", + "US/Pacific", + "2018-03-11 01:33:00", + timedelta(hours=-1), + ], + ], + ) + @pytest.mark.parametrize("tz_type", ["", "dateutil/"]) + def test_dti_tz_localize_nonexistent_shift( + self, start_ts, tz, end_ts, shift, tz_type, unit + ): + # GH#8917 + tz = tz_type + tz + if isinstance(shift, str): + shift = "shift_" + shift + dti = DatetimeIndex([Timestamp(start_ts)]).as_unit(unit) + result = dti.tz_localize(tz, nonexistent=shift) + expected = DatetimeIndex([Timestamp(end_ts)]).tz_localize(tz).as_unit(unit) + tm.assert_index_equal(result, expected) + + @pytest.mark.parametrize("offset", [-1, 1]) + def test_dti_tz_localize_nonexistent_shift_invalid(self, offset, warsaw): + # GH#8917 + tz = warsaw + dti = DatetimeIndex([Timestamp("2015-03-29 02:20:00")]) + msg = "The provided timedelta will relocalize on a nonexistent time" + with pytest.raises(ValueError, match=msg): + dti.tz_localize(tz, nonexistent=timedelta(seconds=offset)) diff --git a/shared/package-files/43/43b1dba08ece96a76809dc9bcae54caad34fd97455d98d949e664b1bab14694a/special_bessel_j0_cuda_dispatch.h b/shared/package-files/43/43b1dba08ece96a76809dc9bcae54caad34fd97455d98d949e664b1bab14694a/special_bessel_j0_cuda_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..1067bdad16589995b51a1e6b3c5ad2024fbfb766 --- /dev/null +++ b/shared/package-files/43/43b1dba08ece96a76809dc9bcae54caad34fd97455d98d949e664b1bab14694a/special_bessel_j0_cuda_dispatch.h @@ -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_bessel_j0(const at::Tensor & self); +TORCH_API at::Tensor & special_bessel_j0_out(at::Tensor & out, const at::Tensor & self); +TORCH_API at::Tensor & special_bessel_j0_outf(const at::Tensor & self, at::Tensor & out); + +} // namespace cuda +} // namespace at diff --git a/shared/package-files/43/43b27f3746ecf713b935288b3bbe212c813935421c9abd859a4492fde2dfd462/TensorIterator.h b/shared/package-files/43/43b27f3746ecf713b935288b3bbe212c813935421c9abd859a4492fde2dfd462/TensorIterator.h new file mode 100644 index 0000000000000000000000000000000000000000..e55d2a58d709926a24467a0056323096e0890fa9 --- /dev/null +++ b/shared/package-files/43/43b27f3746ecf713b935288b3bbe212c813935421c9abd859a4492fde2dfd462/TensorIterator.h @@ -0,0 +1,2 @@ +#pragma once +#include diff --git a/shared/package-files/43/43b2dcaa9f24d5edfd4f1da736b63496bde5b938bbddc9170c15cb5d8917c629/hardsigmoid_ops.h b/shared/package-files/43/43b2dcaa9f24d5edfd4f1da736b63496bde5b938bbddc9170c15cb5d8917c629/hardsigmoid_ops.h new file mode 100644 index 0000000000000000000000000000000000000000..a8e6e18b645ef9781acbf9d05c463c6a431d6c83 --- /dev/null +++ b/shared/package-files/43/43b2dcaa9f24d5edfd4f1da736b63496bde5b938bbddc9170c15cb5d8917c629/hardsigmoid_ops.h @@ -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 hardsigmoid_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::hardsigmoid") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "out") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "hardsigmoid.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 hardsigmoid { + 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::hardsigmoid") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "hardsigmoid(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 hardsigmoid_ { + 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::hardsigmoid_") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "hardsigmoid_(Tensor(a!) self) -> Tensor(a!)") + static at::Tensor & call(at::Tensor & self); + static at::Tensor & redispatch(c10::DispatchKeySet dispatchKeySet, at::Tensor & self); +}; + +}} // namespace at::_ops diff --git a/shared/package-files/43/43b4c22e413af5aea0ee63e83c092a860fb4752b728800b48d594cef6286fd1f/PST8PDT b/shared/package-files/43/43b4c22e413af5aea0ee63e83c092a860fb4752b728800b48d594cef6286fd1f/PST8PDT new file mode 100644 index 0000000000000000000000000000000000000000..99d246baa35cb9c6f56d50adbec163452e2a47fa Binary files /dev/null and b/shared/package-files/43/43b4c22e413af5aea0ee63e83c092a860fb4752b728800b48d594cef6286fd1f/PST8PDT differ diff --git a/shared/package-files/43/43bb52d9c74667d6b8348ff5b201aea157120effeb224f80bf40691536ba1330/importtools.py b/shared/package-files/43/43bb52d9c74667d6b8348ff5b201aea157120effeb224f80bf40691536ba1330/importtools.py new file mode 100644 index 0000000000000000000000000000000000000000..5008b3dd4634d3cee10744a0a92b1204051f07cc --- /dev/null +++ b/shared/package-files/43/43bb52d9c74667d6b8348ff5b201aea157120effeb224f80bf40691536ba1330/importtools.py @@ -0,0 +1,187 @@ +"""Tools to assist importing optional external modules.""" + +import sys +import re + +# Override these in the module to change the default warning behavior. +# For example, you might set both to False before running the tests so that +# warnings are not printed to the console, or set both to True for debugging. + +WARN_NOT_INSTALLED = None # Default is False +WARN_OLD_VERSION = None # Default is True + + +def __sympy_debug(): + # helper function from sympy/__init__.py + # We don't just import SYMPY_DEBUG from that file because we don't want to + # import all of SymPy just to use this module. + import os + debug_str = os.getenv('SYMPY_DEBUG', 'False') + if debug_str in ('True', 'False'): + return eval(debug_str) + else: + raise RuntimeError("unrecognized value for SYMPY_DEBUG: %s" % + debug_str) + +if __sympy_debug(): + WARN_OLD_VERSION = True + WARN_NOT_INSTALLED = True + + +_component_re = re.compile(r'(\d+ | [a-z]+ | \.)', re.VERBOSE) + +def version_tuple(vstring): + # Parse a version string to a tuple e.g. '1.2' -> (1, 2) + # Simplified from distutils.version.LooseVersion which was deprecated in + # Python 3.10. + components = [] + for x in _component_re.split(vstring): + if x and x != '.': + try: + x = int(x) + except ValueError: + pass + components.append(x) + return tuple(components) + + +def import_module(module, min_module_version=None, min_python_version=None, + warn_not_installed=None, warn_old_version=None, + module_version_attr='__version__', module_version_attr_call_args=None, + import_kwargs={}, catch=()): + """ + Import and return a module if it is installed. + + If the module is not installed, it returns None. + + A minimum version for the module can be given as the keyword argument + min_module_version. This should be comparable against the module version. + By default, module.__version__ is used to get the module version. To + override this, set the module_version_attr keyword argument. If the + attribute of the module to get the version should be called (e.g., + module.version()), then set module_version_attr_call_args to the args such + that module.module_version_attr(*module_version_attr_call_args) returns the + module's version. + + If the module version is less than min_module_version using the Python < + comparison, None will be returned, even if the module is installed. You can + use this to keep from importing an incompatible older version of a module. + + You can also specify a minimum Python version by using the + min_python_version keyword argument. This should be comparable against + sys.version_info. + + If the keyword argument warn_not_installed is set to True, the function will + emit a UserWarning when the module is not installed. + + If the keyword argument warn_old_version is set to True, the function will + emit a UserWarning when the library is installed, but cannot be imported + because of the min_module_version or min_python_version options. + + Note that because of the way warnings are handled, a warning will be + emitted for each module only once. You can change the default warning + behavior by overriding the values of WARN_NOT_INSTALLED and WARN_OLD_VERSION + in sympy.external.importtools. By default, WARN_NOT_INSTALLED is False and + WARN_OLD_VERSION is True. + + This function uses __import__() to import the module. To pass additional + options to __import__(), use the import_kwargs keyword argument. For + example, to import a submodule A.B, you must pass a nonempty fromlist option + to __import__. See the docstring of __import__(). + + This catches ImportError to determine if the module is not installed. To + catch additional errors, pass them as a tuple to the catch keyword + argument. + + Examples + ======== + + >>> from sympy.external import import_module + + >>> numpy = import_module('numpy') + + >>> numpy = import_module('numpy', min_python_version=(2, 7), + ... warn_old_version=False) + + >>> numpy = import_module('numpy', min_module_version='1.5', + ... warn_old_version=False) # numpy.__version__ is a string + + >>> # gmpy does not have __version__, but it does have gmpy.version() + + >>> gmpy = import_module('gmpy', min_module_version='1.14', + ... module_version_attr='version', module_version_attr_call_args=(), + ... warn_old_version=False) + + >>> # To import a submodule, you must pass a nonempty fromlist to + >>> # __import__(). The values do not matter. + >>> p3 = import_module('mpl_toolkits.mplot3d', + ... import_kwargs={'fromlist':['something']}) + + >>> # matplotlib.pyplot can raise RuntimeError when the display cannot be opened + >>> matplotlib = import_module('matplotlib', + ... import_kwargs={'fromlist':['pyplot']}, catch=(RuntimeError,)) + + """ + # keyword argument overrides default, and global variable overrides + # keyword argument. + warn_old_version = (WARN_OLD_VERSION if WARN_OLD_VERSION is not None + else warn_old_version or True) + warn_not_installed = (WARN_NOT_INSTALLED if WARN_NOT_INSTALLED is not None + else warn_not_installed or False) + + import warnings + + # Check Python first so we don't waste time importing a module we can't use + if min_python_version: + if sys.version_info < min_python_version: + if warn_old_version: + warnings.warn("Python version is too old to use %s " + "(%s or newer required)" % ( + module, '.'.join(map(str, min_python_version))), + UserWarning, stacklevel=2) + return + + try: + mod = __import__(module, **import_kwargs) + + ## there's something funny about imports with matplotlib and py3k. doing + ## from matplotlib import collections + ## gives python's stdlib collections module. explicitly re-importing + ## the module fixes this. + from_list = import_kwargs.get('fromlist', ()) + for submod in from_list: + if submod == 'collections' and mod.__name__ == 'matplotlib': + __import__(module + '.' + submod) + except ImportError: + if warn_not_installed: + warnings.warn("%s module is not installed" % module, UserWarning, + stacklevel=2) + return + except catch as e: + if warn_not_installed: + warnings.warn( + "%s module could not be used (%s)" % (module, repr(e)), + stacklevel=2) + return + + if min_module_version: + modversion = getattr(mod, module_version_attr) + if module_version_attr_call_args is not None: + modversion = modversion(*module_version_attr_call_args) + if version_tuple(modversion) < version_tuple(min_module_version): + if warn_old_version: + # Attempt to create a pretty string version of the version + if isinstance(min_module_version, str): + verstr = min_module_version + elif isinstance(min_module_version, (tuple, list)): + verstr = '.'.join(map(str, min_module_version)) + else: + # Either don't know what this is. Hopefully + # it's something that has a nice str version, like an int. + verstr = str(min_module_version) + warnings.warn("%s version is too old to use " + "(%s or newer required)" % (module, verstr), + UserWarning, stacklevel=2) + return + + return mod diff --git a/shared/package-files/43/43bbb4e266dba82a1ef55c6ca9172c5933f1807d82c78f5e596822db05326475/asyncquery.py b/shared/package-files/43/43bbb4e266dba82a1ef55c6ca9172c5933f1807d82c78f5e596822db05326475/asyncquery.py new file mode 100644 index 0000000000000000000000000000000000000000..4d9ab9ae49385e83515143ced8a04b01938fcab1 --- /dev/null +++ b/shared/package-files/43/43bbb4e266dba82a1ef55c6ca9172c5933f1807d82c78f5e596822db05326475/asyncquery.py @@ -0,0 +1,780 @@ +# Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license + +# Copyright (C) 2003-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. + +"""Talk to a DNS server.""" + +import base64 +import contextlib +import socket +import struct +import time +from typing import Any, Dict, Optional, Tuple, Union + +import dns.asyncbackend +import dns.exception +import dns.inet +import dns.message +import dns.name +import dns.quic +import dns.rcode +import dns.rdataclass +import dns.rdatatype +import dns.transaction +from dns._asyncbackend import NullContext +from dns.query import ( + BadResponse, + NoDOH, + NoDOQ, + UDPMode, + _compute_times, + _make_dot_ssl_context, + _matches_destination, + _remaining, + have_doh, + ssl, +) + +if have_doh: + import httpx + +# for brevity +_lltuple = dns.inet.low_level_address_tuple + + +def _source_tuple(af, address, port): + # Make a high level source tuple, or return None if address and port + # are both None + if address or port: + if address is None: + if af == socket.AF_INET: + address = "0.0.0.0" + elif af == socket.AF_INET6: + address = "::" + else: + raise NotImplementedError(f"unknown address family {af}") + return (address, port) + else: + return None + + +def _timeout(expiration, now=None): + if expiration is not None: + if not now: + now = time.time() + return max(expiration - now, 0) + else: + return None + + +async def send_udp( + sock: dns.asyncbackend.DatagramSocket, + what: Union[dns.message.Message, bytes], + destination: Any, + expiration: Optional[float] = None, +) -> Tuple[int, float]: + """Send a DNS message to the specified UDP socket. + + *sock*, a ``dns.asyncbackend.DatagramSocket``. + + *what*, a ``bytes`` or ``dns.message.Message``, the message to send. + + *destination*, a destination tuple appropriate for the address family + of the socket, specifying where to send the query. + + *expiration*, a ``float`` or ``None``, the absolute time at which + a timeout exception should be raised. If ``None``, no timeout will + occur. The expiration value is meaningless for the asyncio backend, as + asyncio's transport sendto() never blocks. + + Returns an ``(int, float)`` tuple of bytes sent and the sent time. + """ + + if isinstance(what, dns.message.Message): + what = what.to_wire() + sent_time = time.time() + n = await sock.sendto(what, destination, _timeout(expiration, sent_time)) + return (n, sent_time) + + +async def receive_udp( + sock: dns.asyncbackend.DatagramSocket, + destination: Optional[Any] = None, + expiration: Optional[float] = None, + ignore_unexpected: bool = False, + one_rr_per_rrset: bool = False, + keyring: Optional[Dict[dns.name.Name, dns.tsig.Key]] = None, + request_mac: Optional[bytes] = b"", + ignore_trailing: bool = False, + raise_on_truncation: bool = False, + ignore_errors: bool = False, + query: Optional[dns.message.Message] = None, +) -> Any: + """Read a DNS message from a UDP socket. + + *sock*, a ``dns.asyncbackend.DatagramSocket``. + + See :py:func:`dns.query.receive_udp()` for the documentation of the other + parameters, and exceptions. + + Returns a ``(dns.message.Message, float, tuple)`` tuple of the received message, the + received time, and the address where the message arrived from. + """ + + wire = b"" + while True: + (wire, from_address) = await sock.recvfrom(65535, _timeout(expiration)) + if not _matches_destination( + sock.family, from_address, destination, ignore_unexpected + ): + continue + received_time = time.time() + try: + r = dns.message.from_wire( + wire, + keyring=keyring, + request_mac=request_mac, + one_rr_per_rrset=one_rr_per_rrset, + ignore_trailing=ignore_trailing, + raise_on_truncation=raise_on_truncation, + ) + except dns.message.Truncated as e: + # See the comment in query.py for details. + if ( + ignore_errors + and query is not None + and not query.is_response(e.message()) + ): + continue + else: + raise + except Exception: + if ignore_errors: + continue + else: + raise + if ignore_errors and query is not None and not query.is_response(r): + continue + return (r, received_time, from_address) + + +async def udp( + q: dns.message.Message, + where: str, + timeout: Optional[float] = None, + port: int = 53, + source: Optional[str] = None, + source_port: int = 0, + ignore_unexpected: bool = False, + one_rr_per_rrset: bool = False, + ignore_trailing: bool = False, + raise_on_truncation: bool = False, + sock: Optional[dns.asyncbackend.DatagramSocket] = None, + backend: Optional[dns.asyncbackend.Backend] = None, + ignore_errors: bool = False, +) -> dns.message.Message: + """Return the response obtained after sending a query via UDP. + + *sock*, a ``dns.asyncbackend.DatagramSocket``, or ``None``, + the socket to use for the query. If ``None``, the default, a + socket is created. Note that if a socket is provided, the + *source*, *source_port*, and *backend* are ignored. + + *backend*, a ``dns.asyncbackend.Backend``, or ``None``. If ``None``, + the default, then dnspython will use the default backend. + + See :py:func:`dns.query.udp()` for the documentation of the other + parameters, exceptions, and return type of this method. + """ + wire = q.to_wire() + (begin_time, expiration) = _compute_times(timeout) + af = dns.inet.af_for_address(where) + destination = _lltuple((where, port), af) + if sock: + cm: contextlib.AbstractAsyncContextManager = NullContext(sock) + else: + if not backend: + backend = dns.asyncbackend.get_default_backend() + stuple = _source_tuple(af, source, source_port) + if backend.datagram_connection_required(): + dtuple = (where, port) + else: + dtuple = None + cm = await backend.make_socket(af, socket.SOCK_DGRAM, 0, stuple, dtuple) + async with cm as s: + await send_udp(s, wire, destination, expiration) + (r, received_time, _) = await receive_udp( + s, + destination, + expiration, + ignore_unexpected, + one_rr_per_rrset, + q.keyring, + q.mac, + ignore_trailing, + raise_on_truncation, + ignore_errors, + q, + ) + r.time = received_time - begin_time + # We don't need to check q.is_response() if we are in ignore_errors mode + # as receive_udp() will have checked it. + if not (ignore_errors or q.is_response(r)): + raise BadResponse + return r + + +async def udp_with_fallback( + q: dns.message.Message, + where: str, + timeout: Optional[float] = None, + port: int = 53, + source: Optional[str] = None, + source_port: int = 0, + ignore_unexpected: bool = False, + one_rr_per_rrset: bool = False, + ignore_trailing: bool = False, + udp_sock: Optional[dns.asyncbackend.DatagramSocket] = None, + tcp_sock: Optional[dns.asyncbackend.StreamSocket] = None, + backend: Optional[dns.asyncbackend.Backend] = None, + ignore_errors: bool = False, +) -> Tuple[dns.message.Message, bool]: + """Return the response to the query, trying UDP first and falling back + to TCP if UDP results in a truncated response. + + *udp_sock*, a ``dns.asyncbackend.DatagramSocket``, or ``None``, + the socket to use for the UDP query. If ``None``, the default, a + socket is created. Note that if a socket is provided the *source*, + *source_port*, and *backend* are ignored for the UDP query. + + *tcp_sock*, a ``dns.asyncbackend.StreamSocket``, or ``None``, the + socket to use for the TCP query. If ``None``, the default, a + socket is created. Note that if a socket is provided *where*, + *source*, *source_port*, and *backend* are ignored for the TCP query. + + *backend*, a ``dns.asyncbackend.Backend``, or ``None``. If ``None``, + the default, then dnspython will use the default backend. + + See :py:func:`dns.query.udp_with_fallback()` for the documentation + of the other parameters, exceptions, and return type of this + method. + """ + try: + response = await udp( + q, + where, + timeout, + port, + source, + source_port, + ignore_unexpected, + one_rr_per_rrset, + ignore_trailing, + True, + udp_sock, + backend, + ignore_errors, + ) + return (response, False) + except dns.message.Truncated: + response = await tcp( + q, + where, + timeout, + port, + source, + source_port, + one_rr_per_rrset, + ignore_trailing, + tcp_sock, + backend, + ) + return (response, True) + + +async def send_tcp( + sock: dns.asyncbackend.StreamSocket, + what: Union[dns.message.Message, bytes], + expiration: Optional[float] = None, +) -> Tuple[int, float]: + """Send a DNS message to the specified TCP socket. + + *sock*, a ``dns.asyncbackend.StreamSocket``. + + See :py:func:`dns.query.send_tcp()` for the documentation of the other + parameters, exceptions, and return type of this method. + """ + + if isinstance(what, dns.message.Message): + tcpmsg = what.to_wire(prepend_length=True) + else: + # copying the wire into tcpmsg is inefficient, but lets us + # avoid writev() or doing a short write that would get pushed + # onto the net + tcpmsg = len(what).to_bytes(2, "big") + what + sent_time = time.time() + await sock.sendall(tcpmsg, _timeout(expiration, sent_time)) + return (len(tcpmsg), sent_time) + + +async def _read_exactly(sock, count, expiration): + """Read the specified number of bytes from stream. Keep trying until we + either get the desired amount, or we hit EOF. + """ + s = b"" + while count > 0: + n = await sock.recv(count, _timeout(expiration)) + if n == b"": + raise EOFError + count = count - len(n) + s = s + n + return s + + +async def receive_tcp( + sock: dns.asyncbackend.StreamSocket, + expiration: Optional[float] = None, + one_rr_per_rrset: bool = False, + keyring: Optional[Dict[dns.name.Name, dns.tsig.Key]] = None, + request_mac: Optional[bytes] = b"", + ignore_trailing: bool = False, +) -> Tuple[dns.message.Message, float]: + """Read a DNS message from a TCP socket. + + *sock*, a ``dns.asyncbackend.StreamSocket``. + + See :py:func:`dns.query.receive_tcp()` for the documentation of the other + parameters, exceptions, and return type of this method. + """ + + ldata = await _read_exactly(sock, 2, expiration) + (l,) = struct.unpack("!H", ldata) + wire = await _read_exactly(sock, l, expiration) + received_time = time.time() + r = dns.message.from_wire( + wire, + keyring=keyring, + request_mac=request_mac, + one_rr_per_rrset=one_rr_per_rrset, + ignore_trailing=ignore_trailing, + ) + return (r, received_time) + + +async def tcp( + q: dns.message.Message, + where: str, + timeout: Optional[float] = None, + port: int = 53, + source: Optional[str] = None, + source_port: int = 0, + one_rr_per_rrset: bool = False, + ignore_trailing: bool = False, + sock: Optional[dns.asyncbackend.StreamSocket] = None, + backend: Optional[dns.asyncbackend.Backend] = None, +) -> dns.message.Message: + """Return the response obtained after sending a query via TCP. + + *sock*, a ``dns.asyncbacket.StreamSocket``, or ``None``, the + socket to use for the query. If ``None``, the default, a socket + is created. Note that if a socket is provided + *where*, *port*, *source*, *source_port*, and *backend* are ignored. + + *backend*, a ``dns.asyncbackend.Backend``, or ``None``. If ``None``, + the default, then dnspython will use the default backend. + + See :py:func:`dns.query.tcp()` for the documentation of the other + parameters, exceptions, and return type of this method. + """ + + wire = q.to_wire() + (begin_time, expiration) = _compute_times(timeout) + if sock: + # Verify that the socket is connected, as if it's not connected, + # it's not writable, and the polling in send_tcp() will time out or + # hang forever. + await sock.getpeername() + cm: contextlib.AbstractAsyncContextManager = NullContext(sock) + else: + # These are simple (address, port) pairs, not family-dependent tuples + # you pass to low-level socket code. + af = dns.inet.af_for_address(where) + stuple = _source_tuple(af, source, source_port) + dtuple = (where, port) + if not backend: + backend = dns.asyncbackend.get_default_backend() + cm = await backend.make_socket( + af, socket.SOCK_STREAM, 0, stuple, dtuple, timeout + ) + async with cm as s: + await send_tcp(s, wire, expiration) + (r, received_time) = await receive_tcp( + s, expiration, one_rr_per_rrset, q.keyring, q.mac, ignore_trailing + ) + r.time = received_time - begin_time + if not q.is_response(r): + raise BadResponse + return r + + +async def tls( + q: dns.message.Message, + where: str, + timeout: Optional[float] = None, + port: int = 853, + source: Optional[str] = None, + source_port: int = 0, + one_rr_per_rrset: bool = False, + ignore_trailing: bool = False, + sock: Optional[dns.asyncbackend.StreamSocket] = None, + backend: Optional[dns.asyncbackend.Backend] = None, + ssl_context: Optional[ssl.SSLContext] = None, + server_hostname: Optional[str] = None, + verify: Union[bool, str] = True, +) -> dns.message.Message: + """Return the response obtained after sending a query via TLS. + + *sock*, an ``asyncbackend.StreamSocket``, or ``None``, the socket + to use for the query. If ``None``, the default, a socket is + created. Note that if a socket is provided, it must be a + connected SSL stream socket, and *where*, *port*, + *source*, *source_port*, *backend*, *ssl_context*, and *server_hostname* + are ignored. + + *backend*, a ``dns.asyncbackend.Backend``, or ``None``. If ``None``, + the default, then dnspython will use the default backend. + + See :py:func:`dns.query.tls()` for the documentation of the other + parameters, exceptions, and return type of this method. + """ + (begin_time, expiration) = _compute_times(timeout) + if sock: + cm: contextlib.AbstractAsyncContextManager = NullContext(sock) + else: + if ssl_context is None: + ssl_context = _make_dot_ssl_context(server_hostname, verify) + af = dns.inet.af_for_address(where) + stuple = _source_tuple(af, source, source_port) + dtuple = (where, port) + if not backend: + backend = dns.asyncbackend.get_default_backend() + cm = await backend.make_socket( + af, + socket.SOCK_STREAM, + 0, + stuple, + dtuple, + timeout, + ssl_context, + server_hostname, + ) + async with cm as s: + timeout = _timeout(expiration) + response = await tcp( + q, + where, + timeout, + port, + source, + source_port, + one_rr_per_rrset, + ignore_trailing, + s, + backend, + ) + end_time = time.time() + response.time = end_time - begin_time + return response + + +async def https( + q: dns.message.Message, + where: str, + timeout: Optional[float] = None, + port: int = 443, + source: Optional[str] = None, + source_port: int = 0, # pylint: disable=W0613 + one_rr_per_rrset: bool = False, + ignore_trailing: bool = False, + client: Optional["httpx.AsyncClient"] = None, + path: str = "/dns-query", + post: bool = True, + verify: Union[bool, str] = True, + bootstrap_address: Optional[str] = None, + resolver: Optional["dns.asyncresolver.Resolver"] = None, + family: Optional[int] = socket.AF_UNSPEC, +) -> dns.message.Message: + """Return the response obtained after sending a query via DNS-over-HTTPS. + + *client*, a ``httpx.AsyncClient``. If provided, the client to use for + the query. + + Unlike the other dnspython async functions, a backend cannot be provided + in this function because httpx always auto-detects the async backend. + + See :py:func:`dns.query.https()` for the documentation of the other + parameters, exceptions, and return type of this method. + """ + + if not have_doh: + raise NoDOH # pragma: no cover + if client and not isinstance(client, httpx.AsyncClient): + raise ValueError("session parameter must be an httpx.AsyncClient") + + wire = q.to_wire() + try: + af = dns.inet.af_for_address(where) + except ValueError: + af = None + transport = None + headers = {"accept": "application/dns-message"} + if af is not None and dns.inet.is_address(where): + if af == socket.AF_INET: + url = "https://{}:{}{}".format(where, port, path) + elif af == socket.AF_INET6: + url = "https://[{}]:{}{}".format(where, port, path) + else: + url = where + + backend = dns.asyncbackend.get_default_backend() + + if source is None: + local_address = None + local_port = 0 + else: + local_address = source + local_port = source_port + transport = backend.get_transport_class()( + local_address=local_address, + http1=True, + http2=True, + verify=verify, + local_port=local_port, + bootstrap_address=bootstrap_address, + resolver=resolver, + family=family, + ) + + if client: + cm: contextlib.AbstractAsyncContextManager = NullContext(client) + else: + cm = httpx.AsyncClient( + http1=True, http2=True, verify=verify, transport=transport + ) + + async with cm as the_client: + # see https://tools.ietf.org/html/rfc8484#section-4.1.1 for DoH + # GET and POST examples + if post: + headers.update( + { + "content-type": "application/dns-message", + "content-length": str(len(wire)), + } + ) + response = await backend.wait_for( + the_client.post(url, headers=headers, content=wire), timeout + ) + else: + wire = base64.urlsafe_b64encode(wire).rstrip(b"=") + twire = wire.decode() # httpx does a repr() if we give it bytes + response = await backend.wait_for( + the_client.get(url, headers=headers, params={"dns": twire}), timeout + ) + + # see https://tools.ietf.org/html/rfc8484#section-4.2.1 for info about DoH + # status codes + if response.status_code < 200 or response.status_code > 299: + raise ValueError( + "{} responded with status code {}" + "\nResponse body: {!r}".format( + where, response.status_code, response.content + ) + ) + r = dns.message.from_wire( + response.content, + keyring=q.keyring, + request_mac=q.request_mac, + one_rr_per_rrset=one_rr_per_rrset, + ignore_trailing=ignore_trailing, + ) + r.time = response.elapsed.total_seconds() + if not q.is_response(r): + raise BadResponse + return r + + +async def inbound_xfr( + where: str, + txn_manager: dns.transaction.TransactionManager, + query: Optional[dns.message.Message] = None, + port: int = 53, + timeout: Optional[float] = None, + lifetime: Optional[float] = None, + source: Optional[str] = None, + source_port: int = 0, + udp_mode: UDPMode = UDPMode.NEVER, + backend: Optional[dns.asyncbackend.Backend] = None, +) -> None: + """Conduct an inbound transfer and apply it via a transaction from the + txn_manager. + + *backend*, a ``dns.asyncbackend.Backend``, or ``None``. If ``None``, + the default, then dnspython will use the default backend. + + See :py:func:`dns.query.inbound_xfr()` for the documentation of + the other parameters, exceptions, and return type of this method. + """ + if query is None: + (query, serial) = dns.xfr.make_query(txn_manager) + else: + serial = dns.xfr.extract_serial_from_query(query) + rdtype = query.question[0].rdtype + is_ixfr = rdtype == dns.rdatatype.IXFR + origin = txn_manager.from_wire_origin() + wire = query.to_wire() + af = dns.inet.af_for_address(where) + stuple = _source_tuple(af, source, source_port) + dtuple = (where, port) + (_, expiration) = _compute_times(lifetime) + retry = True + while retry: + retry = False + if is_ixfr and udp_mode != UDPMode.NEVER: + sock_type = socket.SOCK_DGRAM + is_udp = True + else: + sock_type = socket.SOCK_STREAM + is_udp = False + if not backend: + backend = dns.asyncbackend.get_default_backend() + s = await backend.make_socket( + af, sock_type, 0, stuple, dtuple, _timeout(expiration) + ) + async with s: + if is_udp: + await s.sendto(wire, dtuple, _timeout(expiration)) + else: + tcpmsg = struct.pack("!H", len(wire)) + wire + await s.sendall(tcpmsg, expiration) + with dns.xfr.Inbound(txn_manager, rdtype, serial, is_udp) as inbound: + done = False + tsig_ctx = None + while not done: + (_, mexpiration) = _compute_times(timeout) + if mexpiration is None or ( + expiration is not None and mexpiration > expiration + ): + mexpiration = expiration + if is_udp: + destination = _lltuple((where, port), af) + while True: + timeout = _timeout(mexpiration) + (rwire, from_address) = await s.recvfrom(65535, timeout) + if _matches_destination( + af, from_address, destination, True + ): + break + else: + ldata = await _read_exactly(s, 2, mexpiration) + (l,) = struct.unpack("!H", ldata) + rwire = await _read_exactly(s, l, mexpiration) + is_ixfr = rdtype == dns.rdatatype.IXFR + r = dns.message.from_wire( + rwire, + keyring=query.keyring, + request_mac=query.mac, + xfr=True, + origin=origin, + tsig_ctx=tsig_ctx, + multi=(not is_udp), + one_rr_per_rrset=is_ixfr, + ) + try: + done = inbound.process_message(r) + except dns.xfr.UseTCP: + assert is_udp # should not happen if we used TCP! + if udp_mode == UDPMode.ONLY: + raise + done = True + retry = True + udp_mode = UDPMode.NEVER + continue + tsig_ctx = r.tsig_ctx + if not retry and query.keyring and not r.had_tsig: + raise dns.exception.FormError("missing TSIG") + + +async def quic( + q: dns.message.Message, + where: str, + timeout: Optional[float] = None, + port: int = 853, + source: Optional[str] = None, + source_port: int = 0, + one_rr_per_rrset: bool = False, + ignore_trailing: bool = False, + connection: Optional[dns.quic.AsyncQuicConnection] = None, + verify: Union[bool, str] = True, + backend: Optional[dns.asyncbackend.Backend] = None, + server_hostname: Optional[str] = None, +) -> dns.message.Message: + """Return the response obtained after sending an asynchronous query via + DNS-over-QUIC. + + *backend*, a ``dns.asyncbackend.Backend``, or ``None``. If ``None``, + the default, then dnspython will use the default backend. + + See :py:func:`dns.query.quic()` for the documentation of the other + parameters, exceptions, and return type of this method. + """ + + if not dns.quic.have_quic: + raise NoDOQ("DNS-over-QUIC is not available.") # pragma: no cover + + q.id = 0 + wire = q.to_wire() + the_connection: dns.quic.AsyncQuicConnection + if connection: + cfactory = dns.quic.null_factory + mfactory = dns.quic.null_factory + the_connection = connection + else: + (cfactory, mfactory) = dns.quic.factories_for_backend(backend) + + async with cfactory() as context: + async with mfactory( + context, verify_mode=verify, server_name=server_hostname + ) as the_manager: + if not connection: + the_connection = the_manager.connect(where, port, source, source_port) + (start, expiration) = _compute_times(timeout) + stream = await the_connection.make_stream(timeout) + async with stream: + await stream.send(wire, True) + wire = await stream.receive(_remaining(expiration)) + finish = time.time() + r = dns.message.from_wire( + wire, + keyring=q.keyring, + request_mac=q.request_mac, + one_rr_per_rrset=one_rr_per_rrset, + ignore_trailing=ignore_trailing, + ) + r.time = max(finish - start, 0.0) + if not q.is_response(r): + raise BadResponse + return r diff --git a/shared/package-files/43/43beef19f1f5a41fcb022618a0a480b7b8da04669b014b47c82c2f307984cf49/test_mds.py b/shared/package-files/43/43beef19f1f5a41fcb022618a0a480b7b8da04669b014b47c82c2f307984cf49/test_mds.py new file mode 100644 index 0000000000000000000000000000000000000000..88dc842a1d5fc4168a3cc9003c929f1770e839bb --- /dev/null +++ b/shared/package-files/43/43beef19f1f5a41fcb022618a0a480b7b8da04669b014b47c82c2f307984cf49/test_mds.py @@ -0,0 +1,234 @@ +from unittest.mock import Mock + +import numpy as np +import pytest +from numpy.testing import assert_allclose, assert_array_almost_equal, assert_equal + +from sklearn.datasets import load_digits +from sklearn.manifold import _mds as mds +from sklearn.metrics import euclidean_distances + + +def test_smacof(): + # test metric smacof using the data of "Modern Multidimensional Scaling", + # Borg & Groenen, p 154 + sim = np.array([[0, 5, 3, 4], [5, 0, 2, 2], [3, 2, 0, 1], [4, 2, 1, 0]]) + Z = np.array([[-0.266, -0.539], [0.451, 0.252], [0.016, -0.238], [-0.200, 0.524]]) + X, _ = mds.smacof(sim, init=Z, n_components=2, max_iter=1, n_init=1) + X_true = np.array( + [[-1.415, -2.471], [1.633, 1.107], [0.249, -0.067], [-0.468, 1.431]] + ) + assert_array_almost_equal(X, X_true, decimal=3) + + +def test_nonmetric_lower_normalized_stress(): + # Testing that nonmetric MDS results in lower normalized stress compared + # compared to metric MDS (non-regression test for issue 27028) + sim = np.array([[0, 5, 3, 4], [5, 0, 2, 2], [3, 2, 0, 1], [4, 2, 1, 0]]) + Z = np.array([[-0.266, -0.539], [0.451, 0.252], [0.016, -0.238], [-0.200, 0.524]]) + + _, stress1 = mds.smacof( + sim, init=Z, n_components=2, max_iter=1000, n_init=1, normalized_stress=True + ) + + _, stress2 = mds.smacof( + sim, + init=Z, + n_components=2, + max_iter=1000, + n_init=1, + normalized_stress=True, + metric=False, + ) + assert stress1 > stress2 + + +def test_nonmetric_mds_optimization(): + # Test that stress is decreasing during nonmetric MDS optimization + # (non-regression test for issue 27028) + X, _ = load_digits(return_X_y=True) + rng = np.random.default_rng(seed=42) + ind_subset = rng.choice(len(X), size=200, replace=False) + X = X[ind_subset] + + mds_est = mds.MDS( + n_components=2, + n_init=1, + max_iter=2, + metric=False, + random_state=42, + ).fit(X) + stress_after_2_iter = mds_est.stress_ + + mds_est = mds.MDS( + n_components=2, + n_init=1, + max_iter=3, + metric=False, + random_state=42, + ).fit(X) + stress_after_3_iter = mds_est.stress_ + + assert stress_after_2_iter > stress_after_3_iter + + +@pytest.mark.parametrize("metric", [True, False]) +def test_mds_recovers_true_data(metric): + X = np.array([[1, 1], [1, 4], [1, 5], [3, 3]]) + mds_est = mds.MDS( + n_components=2, + n_init=1, + eps=1e-15, + max_iter=1000, + metric=metric, + random_state=42, + ).fit(X) + stress = mds_est.stress_ + assert_allclose(stress, 0, atol=1e-6) + + +def test_smacof_error(): + # Not symmetric similarity matrix: + sim = np.array([[0, 5, 9, 4], [5, 0, 2, 2], [3, 2, 0, 1], [4, 2, 1, 0]]) + + with pytest.raises(ValueError): + mds.smacof(sim, n_init=1) + + # Not squared similarity matrix: + sim = np.array([[0, 5, 9, 4], [5, 0, 2, 2], [4, 2, 1, 0]]) + + with pytest.raises(ValueError): + mds.smacof(sim, n_init=1) + + # init not None and not correct format: + sim = np.array([[0, 5, 3, 4], [5, 0, 2, 2], [3, 2, 0, 1], [4, 2, 1, 0]]) + + Z = np.array([[-0.266, -0.539], [0.016, -0.238], [-0.200, 0.524]]) + with pytest.raises(ValueError): + mds.smacof(sim, init=Z, n_init=1) + + +def test_MDS(): + sim = np.array([[0, 5, 3, 4], [5, 0, 2, 2], [3, 2, 0, 1], [4, 2, 1, 0]]) + mds_clf = mds.MDS( + metric=False, + n_jobs=3, + n_init=3, + dissimilarity="precomputed", + ) + mds_clf.fit(sim) + + +# TODO(1.9): remove warning filter +@pytest.mark.filterwarnings("ignore::FutureWarning") +@pytest.mark.parametrize("k", [0.5, 1.5, 2]) +def test_normed_stress(k): + """Test that non-metric MDS normalized stress is scale-invariant.""" + sim = np.array([[0, 5, 3, 4], [5, 0, 2, 2], [3, 2, 0, 1], [4, 2, 1, 0]]) + + X1, stress1 = mds.smacof(sim, metric=False, max_iter=5, random_state=0) + X2, stress2 = mds.smacof(k * sim, metric=False, max_iter=5, random_state=0) + + assert_allclose(stress1, stress2, rtol=1e-5) + assert_allclose(X1, X2, rtol=1e-5) + + +# TODO(1.9): remove warning filter +@pytest.mark.filterwarnings("ignore::FutureWarning") +@pytest.mark.parametrize("metric", [True, False]) +def test_normalized_stress_auto(metric, monkeypatch): + rng = np.random.RandomState(0) + X = rng.randn(4, 3) + dist = euclidean_distances(X) + + mock = Mock(side_effect=mds._smacof_single) + monkeypatch.setattr("sklearn.manifold._mds._smacof_single", mock) + + est = mds.MDS(metric=metric, normalized_stress="auto", random_state=rng) + est.fit_transform(X) + assert mock.call_args[1]["normalized_stress"] != metric + + mds.smacof(dist, metric=metric, normalized_stress="auto", random_state=rng) + assert mock.call_args[1]["normalized_stress"] != metric + + +def test_isotonic_outofbounds(): + # This particular configuration can trigger out of bounds error + # in the isotonic regression (non-regression test for issue 26999) + dis = np.array( + [ + [0.0, 1.732050807568877, 1.7320508075688772], + [1.732050807568877, 0.0, 6.661338147750939e-16], + [1.7320508075688772, 6.661338147750939e-16, 0.0], + ] + ) + init = np.array( + [ + [0.08665881585055124, 0.7939114643387546], + [0.9959834154297658, 0.7555546025640025], + [0.8766008278401566, 0.4227358815811242], + ] + ) + mds.smacof(dis, init=init, metric=False, n_init=1) + + +# TODO(1.9): remove warning filter +@pytest.mark.filterwarnings("ignore::FutureWarning") +@pytest.mark.parametrize("normalized_stress", [True, False]) +def test_returned_stress(normalized_stress): + # Test that the final stress corresponds to the final embedding + # (non-regression test for issue 16846) + X = np.array([[1, 1], [1, 4], [1, 5], [3, 3]]) + D = euclidean_distances(X) + + mds_est = mds.MDS( + n_components=2, + random_state=42, + normalized_stress=normalized_stress, + ).fit(X) + + Z = mds_est.embedding_ + stress = mds_est.stress_ + + D_mds = euclidean_distances(Z) + stress_Z = ((D_mds.ravel() - D.ravel()) ** 2).sum() / 2 + + if normalized_stress: + stress_Z = np.sqrt(stress_Z / ((D_mds.ravel() ** 2).sum() / 2)) + + assert_allclose(stress, stress_Z) + + +# TODO(1.9): remove warning filter +@pytest.mark.filterwarnings("ignore::FutureWarning") +@pytest.mark.parametrize("metric", [True, False]) +def test_convergence_does_not_depend_on_scale(metric): + # Test that the number of iterations until convergence does not depend on + # the scale of the input data + X = np.array([[1, 1], [1, 4], [1, 5], [3, 3]]) + + mds_est = mds.MDS( + n_components=2, + random_state=42, + metric=metric, + ) + + mds_est.fit(X * 100) + n_iter1 = mds_est.n_iter_ + + mds_est.fit(X / 100) + n_iter2 = mds_est.n_iter_ + + assert_equal(n_iter1, n_iter2) + + +# TODO(1.9): delete this test +def test_future_warning_n_init(): + X = np.array([[1, 1], [1, 4], [1, 5], [3, 3]]) + sim = np.array([[0, 5, 3, 4], [5, 0, 2, 2], [3, 2, 0, 1], [4, 2, 1, 0]]) + + with pytest.warns(FutureWarning): + mds.smacof(sim) + + with pytest.warns(FutureWarning): + mds.MDS().fit(X) diff --git a/shared/package-files/43/43c06c3a50653871c048bf2d3cb1da5e34054754b8fbf35c08dbeb2c142bd861/_distributed_rpc_testing.pyi b/shared/package-files/43/43c06c3a50653871c048bf2d3cb1da5e34054754b8fbf35c08dbeb2c142bd861/_distributed_rpc_testing.pyi new file mode 100644 index 0000000000000000000000000000000000000000..1ed8304bc6378bb1fbd5e2d15369fe66969acae4 --- /dev/null +++ b/shared/package-files/43/43c06c3a50653871c048bf2d3cb1da5e34054754b8fbf35c08dbeb2c142bd861/_distributed_rpc_testing.pyi @@ -0,0 +1,35 @@ +from typing import Dict, List + +import torch + +from ._distributed_c10d import Store +from ._distributed_rpc import _TensorPipeRpcBackendOptionsBase, TensorPipeAgent + +# This module is defined in torch/csrc/distributed/rpc/testing/init.cpp + +class FaultyTensorPipeRpcBackendOptions(_TensorPipeRpcBackendOptionsBase): + def __init__( + self, + num_worker_threads: int, + rpc_timeout: float, + init_method: str, + messages_to_fail: List[str], + messages_to_delay: Dict[str, float], + num_fail_sends: int, + ): ... + num_send_recv_threads: int + messages_to_fail: List[str] + messages_to_delay: Dict[str, float] + num_fail_sends: int + +class FaultyTensorPipeAgent(TensorPipeAgent): + def __init__( + self, + store: Store, + name: str, + rank: int, + world_size: int, + options: FaultyTensorPipeRpcBackendOptions, + reverse_device_maps: Dict[str, Dict[torch.device, torch.device]], + devices: List[torch.device], + ): ... diff --git a/shared/package-files/43/43c688b22a4c017494c28878041eae2ddd9dd84016fab9f6b9cf1bbb6884a7fb/masscomp2 b/shared/package-files/43/43c688b22a4c017494c28878041eae2ddd9dd84016fab9f6b9cf1bbb6884a7fb/masscomp2 new file mode 100644 index 0000000000000000000000000000000000000000..5e99cbb00f89ea26a37445fff1808c4f355827b7 Binary files /dev/null and b/shared/package-files/43/43c688b22a4c017494c28878041eae2ddd9dd84016fab9f6b9cf1bbb6884a7fb/masscomp2 differ diff --git a/shared/package-files/43/43c92c003dddf7b0abb9a629dc864571f2bb5890951bb0a22aaf8269c2d6af39/cumsum_compositeexplicitautogradnonfunctional_dispatch.h b/shared/package-files/43/43c92c003dddf7b0abb9a629dc864571f2bb5890951bb0a22aaf8269c2d6af39/cumsum_compositeexplicitautogradnonfunctional_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..cdac1e43e8f4d5e5942fccd0bb261b6815fc1019 --- /dev/null +++ b/shared/package-files/43/43c92c003dddf7b0abb9a629dc864571f2bb5890951bb0a22aaf8269c2d6af39/cumsum_compositeexplicitautogradnonfunctional_dispatch.h @@ -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 cumsum(const at::Tensor & self, int64_t dim, c10::optional dtype=c10::nullopt); +TORCH_API at::Tensor & cumsum_(at::Tensor & self, int64_t dim, c10::optional dtype=c10::nullopt); + +} // namespace compositeexplicitautogradnonfunctional +} // namespace at diff --git a/shared/package-files/43/43cb2e798656c1dc646950da6ee8251ccdd7b8ffbe35ead882af14c6c5478056/async_generator_fwd.h b/shared/package-files/43/43cb2e798656c1dc646950da6ee8251ccdd7b8ffbe35ead882af14c6c5478056/async_generator_fwd.h new file mode 100644 index 0000000000000000000000000000000000000000..59c4276f4524cf5e124fe0bd2266579b5c28d06b --- /dev/null +++ b/shared/package-files/43/43cb2e798656c1dc646950da6ee8251ccdd7b8ffbe35ead882af14c6c5478056/async_generator_fwd.h @@ -0,0 +1,69 @@ +// 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 "arrow/type_fwd.h" +#include "arrow/util/type_fwd.h" + +namespace arrow { + +template +using AsyncGenerator = std::function()>; + +template +class MappingGenerator; + +template +class SequencingGenerator; + +template +class TransformingGenerator; + +template +class SerialReadaheadGenerator; + +template +class ReadaheadGenerator; + +template +class PushGenerator; + +template +class MergedGenerator; + +template +class EnumeratingGenerator; + +template +class TransferringGenerator; + +template +class BackgroundGenerator; + +template +class GeneratorIterator; + +template +struct CancellableGenerator; + +template +class DefaultIfEmptyGenerator; + +} // namespace arrow diff --git a/shared/package-files/43/43cc3648c375efb9594c9e476555ce2ad7f006d655fcfbff1f402bbadd4df112/threshold_meta.h b/shared/package-files/43/43cc3648c375efb9594c9e476555ce2ad7f006d655fcfbff1f402bbadd4df112/threshold_meta.h new file mode 100644 index 0000000000000000000000000000000000000000..142dca42e1dec43530c546d5c4b2aa4d90c5994c --- /dev/null +++ b/shared/package-files/43/43cc3648c375efb9594c9e476555ce2ad7f006d655fcfbff1f402bbadd4df112/threshold_meta.h @@ -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_threshold : public TensorIteratorBase { + + + void meta(const at::Tensor & self, const at::Scalar & threshold, const at::Scalar & value); +}; + +} // namespace native +} // namespace at diff --git a/shared/package-files/43/43cfdf58e4762439c7bb44d34661f346323704e25ad21188025d1c8ed00b82c4/utils.py b/shared/package-files/43/43cfdf58e4762439c7bb44d34661f346323704e25ad21188025d1c8ed00b82c4/utils.py new file mode 100644 index 0000000000000000000000000000000000000000..e690e8103c7a47a01d719e746e6c98a9c7f6c8db --- /dev/null +++ b/shared/package-files/43/43cfdf58e4762439c7bb44d34661f346323704e25ad21188025d1c8ed00b82c4/utils.py @@ -0,0 +1,346 @@ +from typing import List, Optional, Tuple + +import torch +from torch import nn, Tensor + +from torchaudio._internal import load_state_dict_from_url +from torchaudio.models import wav2vec2_model, Wav2Vec2Model, wavlm_model + + +def _get_model(type_, params): + factories = { + "Wav2Vec2": wav2vec2_model, + "WavLM": wavlm_model, + } + if type_ not in factories: + raise ValueError(f"Supported model types are {tuple(factories.keys())}. Found: {type_}") + factory = factories[type_] + return factory(**params) + + +class _Wav2Vec2Model(nn.Module): + """Wrapper class for :py:class:`~torchaudio.models.Wav2Vec2Model`. + + This is used for layer normalization at the input + """ + + def __init__(self, model: Wav2Vec2Model, normalize_waveform: bool, apply_log_softmax: bool, append_star: bool): + super().__init__() + self.model = model + self.normalize_waveform = normalize_waveform + self.apply_log_softmax = apply_log_softmax + self.append_star = append_star + + def forward(self, waveforms: Tensor, lengths: Optional[Tensor] = None) -> Tuple[Tensor, Optional[Tensor]]: + if self.normalize_waveform: + waveforms = nn.functional.layer_norm(waveforms, waveforms.shape) + output, output_lengths = self.model(waveforms, lengths) + if self.apply_log_softmax: + output = torch.nn.functional.log_softmax(output, dim=-1) + if self.append_star: + star_dim = torch.zeros((1, output.size(1), 1), dtype=output.dtype, device=output.device) + output = torch.cat((output, star_dim), dim=-1) + return output, output_lengths + + @torch.jit.export + def extract_features( + self, + waveforms: Tensor, + lengths: Optional[Tensor] = None, + num_layers: Optional[int] = None, + ) -> Tuple[List[Tensor], Optional[Tensor]]: + if self.normalize_waveform: + waveforms = nn.functional.layer_norm(waveforms, waveforms.shape) + return self.model.extract_features(waveforms, lengths, num_layers) + + +def _extend_model(module, normalize_waveform, apply_log_softmax=False, append_star=False): + """Add extra transformations to the model""" + return _Wav2Vec2Model(module, normalize_waveform, apply_log_softmax, append_star) + + +def _remove_aux_axes(state_dict, axes): + # Remove the seemingly unnecessary axis + # For ASR task, the pretrained weights originated from fairseq has unrelated dimensions at index 1, 2, 3 + # It's originated from the Dictionary implementation of fairseq, which was intended for NLP tasks, + # but not used during the ASR training. + # https://github.com/pytorch/fairseq/blob/c5ff181125c7e6126b49a85e5ebdd5f5b6a07914/fairseq/data/dictionary.py#L21-L37 + # https://github.com/pytorch/fairseq/blob/c5ff181125c7e6126b49a85e5ebdd5f5b6a07914/fairseq/criterions/ctc.py#L126-L129 + # + # Also, some pretrained weights originated from voxpopuli has an extra dimensions that almost never used and + # that resembles mistake. + # The label `1` shows up in the training dataset of German (1 out of 16M), + # English (1 / 28M), Spanish (1 / 9.4M), Romanian (1 / 4.7M) and Polish (6 / 5.8M) + for key in ["aux.weight", "aux.bias"]: + mat = state_dict[key] + state_dict[key] = torch.stack([mat[i] for i in range(mat.size(0)) if i not in axes]) + + +def _get_state_dict(url, dl_kwargs, remove_axes=None): + if not url.startswith("https"): + url = f"https://download.pytorch.org/torchaudio/models/{url}" + dl_kwargs = {} if dl_kwargs is None else dl_kwargs + state_dict = load_state_dict_from_url(url, **dl_kwargs) + if remove_axes: + _remove_aux_axes(state_dict, remove_axes) + return state_dict + + +def _get_en_labels(): + return ( + "|", + "E", + "T", + "A", + "O", + "N", + "I", + "H", + "S", + "R", + "D", + "L", + "U", + "M", + "W", + "C", + "F", + "G", + "Y", + "P", + "B", + "V", + "K", + "'", + "X", + "J", + "Q", + "Z", + ) + + +def _get_de_labels(): + return ( + "|", + "e", + "n", + "i", + "r", + "s", + "t", + "a", + "d", + "h", + "u", + "l", + "g", + "c", + "m", + "o", + "b", + "w", + "f", + "k", + "z", + "p", + "v", + "ü", + "ä", + "ö", + "j", + "ß", + "y", + "x", + "q", + ) + + +def _get_vp_en_labels(): + return ( + "|", + "e", + "t", + "o", + "i", + "a", + "n", + "s", + "r", + "h", + "l", + "d", + "c", + "u", + "m", + "p", + "f", + "g", + "w", + "y", + "b", + "v", + "k", + "x", + "j", + "q", + "z", + ) + + +def _get_es_labels(): + return ( + "|", + "e", + "a", + "o", + "s", + "n", + "r", + "i", + "l", + "d", + "c", + "t", + "u", + "p", + "m", + "b", + "q", + "y", + "g", + "v", + "h", + "ó", + "f", + "í", + "á", + "j", + "z", + "ñ", + "é", + "x", + "ú", + "k", + "w", + "ü", + ) + + +def _get_fr_labels(): + return ( + "|", + "e", + "s", + "n", + "i", + "t", + "r", + "a", + "o", + "u", + "l", + "d", + "c", + "p", + "m", + "é", + "v", + "q", + "f", + "g", + "b", + "h", + "x", + "à", + "j", + "è", + "y", + "ê", + "z", + "ô", + "k", + "ç", + "œ", + "û", + "ù", + "î", + "â", + "w", + "ï", + "ë", + "ü", + "æ", + ) + + +def _get_it_labels(): + return ( + "|", + "e", + "i", + "a", + "o", + "n", + "t", + "r", + "l", + "s", + "c", + "d", + "u", + "p", + "m", + "g", + "v", + "h", + "z", + "f", + "b", + "q", + "à", + "è", + "ù", + "é", + "ò", + "ì", + "k", + "y", + "x", + "w", + "j", + "ó", + "í", + "ï", + ) + + +def _get_mms_labels(): + return ( + "a", + "i", + "e", + "n", + "o", + "u", + "t", + "s", + "r", + "m", + "k", + "l", + "d", + "g", + "h", + "y", + "b", + "p", + "w", + "c", + "v", + "j", + "z", + "f", + "'", + "q", + "x", + ) diff --git a/shared/package-files/43/43d4c47f73aec832316659a8cfd6b773e98332524ae98050f4a7189a2c0545b5/J_S_T_F_.py b/shared/package-files/43/43d4c47f73aec832316659a8cfd6b773e98332524ae98050f4a7189a2c0545b5/J_S_T_F_.py new file mode 100644 index 0000000000000000000000000000000000000000..b185f30f3a9a2978c1d4278b920f69969fe79b97 --- /dev/null +++ b/shared/package-files/43/43d4c47f73aec832316659a8cfd6b773e98332524ae98050f4a7189a2c0545b5/J_S_T_F_.py @@ -0,0 +1,13 @@ +from .otBase import BaseTTXConverter + + +class table_J_S_T_F_(BaseTTXConverter): + """Justification table + + The ``JSTF`` table contains glyph substitution and positioning + data used to perform text justification. + + See also https://learn.microsoft.com/en-us/typography/opentype/spec/jstf + """ + + pass diff --git a/shared/package-files/43/43d60df16d077753de7e51cbbcebd267e87178b5382aade75052d80c2d31d04f/plot_axes.py b/shared/package-files/43/43d60df16d077753de7e51cbbcebd267e87178b5382aade75052d80c2d31d04f/plot_axes.py new file mode 100644 index 0000000000000000000000000000000000000000..ae26fb0b2fa64e7f7318c51ce3fe5afaa276b48e --- /dev/null +++ b/shared/package-files/43/43d60df16d077753de7e51cbbcebd267e87178b5382aade75052d80c2d31d04f/plot_axes.py @@ -0,0 +1,251 @@ +import pyglet.gl as pgl +from pyglet import font + +from sympy.core import S +from sympy.plotting.pygletplot.plot_object import PlotObject +from sympy.plotting.pygletplot.util import billboard_matrix, dot_product, \ + get_direction_vectors, strided_range, vec_mag, vec_sub +from sympy.utilities.iterables import is_sequence + + +class PlotAxes(PlotObject): + + def __init__(self, *args, + style='', none=None, frame=None, box=None, ordinate=None, + stride=0.25, + visible='', overlay='', colored='', label_axes='', label_ticks='', + tick_length=0.1, + font_face='Arial', font_size=28, + **kwargs): + # initialize style parameter + style = style.lower() + + # allow alias kwargs to override style kwarg + if none is not None: + style = 'none' + if frame is not None: + style = 'frame' + if box is not None: + style = 'box' + if ordinate is not None: + style = 'ordinate' + + if style in ['', 'ordinate']: + self._render_object = PlotAxesOrdinate(self) + elif style in ['frame', 'box']: + self._render_object = PlotAxesFrame(self) + elif style in ['none']: + self._render_object = None + else: + raise ValueError(("Unrecognized axes style %s.") % (style)) + + # initialize stride parameter + try: + stride = eval(stride) + except TypeError: + pass + if is_sequence(stride): + if len(stride) != 3: + raise ValueError("length should be equal to 3") + self._stride = stride + else: + self._stride = [stride, stride, stride] + self._tick_length = float(tick_length) + + # setup bounding box and ticks + self._origin = [0, 0, 0] + self.reset_bounding_box() + + def flexible_boolean(input, default): + if input in [True, False]: + return input + if input in ('f', 'F', 'false', 'False'): + return False + if input in ('t', 'T', 'true', 'True'): + return True + return default + + # initialize remaining parameters + self.visible = flexible_boolean(kwargs, True) + self._overlay = flexible_boolean(overlay, True) + self._colored = flexible_boolean(colored, False) + self._label_axes = flexible_boolean(label_axes, False) + self._label_ticks = flexible_boolean(label_ticks, True) + + # setup label font + self.font_face = font_face + self.font_size = font_size + + # this is also used to reinit the + # font on window close/reopen + self.reset_resources() + + def reset_resources(self): + self.label_font = None + + def reset_bounding_box(self): + self._bounding_box = [[None, None], [None, None], [None, None]] + self._axis_ticks = [[], [], []] + + def draw(self): + if self._render_object: + pgl.glPushAttrib(pgl.GL_ENABLE_BIT | pgl.GL_POLYGON_BIT | pgl.GL_DEPTH_BUFFER_BIT) + if self._overlay: + pgl.glDisable(pgl.GL_DEPTH_TEST) + self._render_object.draw() + pgl.glPopAttrib() + + def adjust_bounds(self, child_bounds): + b = self._bounding_box + c = child_bounds + for i in range(3): + if abs(c[i][0]) is S.Infinity or abs(c[i][1]) is S.Infinity: + continue + b[i][0] = c[i][0] if b[i][0] is None else min([b[i][0], c[i][0]]) + b[i][1] = c[i][1] if b[i][1] is None else max([b[i][1], c[i][1]]) + self._bounding_box = b + self._recalculate_axis_ticks(i) + + def _recalculate_axis_ticks(self, axis): + b = self._bounding_box + if b[axis][0] is None or b[axis][1] is None: + self._axis_ticks[axis] = [] + else: + self._axis_ticks[axis] = strided_range(b[axis][0], b[axis][1], + self._stride[axis]) + + def toggle_visible(self): + self.visible = not self.visible + + def toggle_colors(self): + self._colored = not self._colored + + +class PlotAxesBase(PlotObject): + + def __init__(self, parent_axes): + self._p = parent_axes + + def draw(self): + color = [([0.2, 0.1, 0.3], [0.2, 0.1, 0.3], [0.2, 0.1, 0.3]), + ([0.9, 0.3, 0.5], [0.5, 1.0, 0.5], [0.3, 0.3, 0.9])][self._p._colored] + self.draw_background(color) + self.draw_axis(2, color[2]) + self.draw_axis(1, color[1]) + self.draw_axis(0, color[0]) + + def draw_background(self, color): + pass # optional + + def draw_axis(self, axis, color): + raise NotImplementedError() + + def draw_text(self, text, position, color, scale=1.0): + if len(color) == 3: + color = (color[0], color[1], color[2], 1.0) + + if self._p.label_font is None: + self._p.label_font = font.load(self._p.font_face, + self._p.font_size, + bold=True, italic=False) + + label = font.Text(self._p.label_font, text, + color=color, + valign=font.Text.BASELINE, + halign=font.Text.CENTER) + + pgl.glPushMatrix() + pgl.glTranslatef(*position) + billboard_matrix() + scale_factor = 0.005 * scale + pgl.glScalef(scale_factor, scale_factor, scale_factor) + pgl.glColor4f(0, 0, 0, 0) + label.draw() + pgl.glPopMatrix() + + def draw_line(self, v, color): + o = self._p._origin + pgl.glBegin(pgl.GL_LINES) + pgl.glColor3f(*color) + pgl.glVertex3f(v[0][0] + o[0], v[0][1] + o[1], v[0][2] + o[2]) + pgl.glVertex3f(v[1][0] + o[0], v[1][1] + o[1], v[1][2] + o[2]) + pgl.glEnd() + + +class PlotAxesOrdinate(PlotAxesBase): + + def __init__(self, parent_axes): + super().__init__(parent_axes) + + def draw_axis(self, axis, color): + ticks = self._p._axis_ticks[axis] + radius = self._p._tick_length / 2.0 + if len(ticks) < 2: + return + + # calculate the vector for this axis + axis_lines = [[0, 0, 0], [0, 0, 0]] + axis_lines[0][axis], axis_lines[1][axis] = ticks[0], ticks[-1] + axis_vector = vec_sub(axis_lines[1], axis_lines[0]) + + # calculate angle to the z direction vector + pos_z = get_direction_vectors()[2] + d = abs(dot_product(axis_vector, pos_z)) + d = d / vec_mag(axis_vector) + + # don't draw labels if we're looking down the axis + labels_visible = abs(d - 1.0) > 0.02 + + # draw the ticks and labels + for tick in ticks: + self.draw_tick_line(axis, color, radius, tick, labels_visible) + + # draw the axis line and labels + self.draw_axis_line(axis, color, ticks[0], ticks[-1], labels_visible) + + def draw_axis_line(self, axis, color, a_min, a_max, labels_visible): + axis_line = [[0, 0, 0], [0, 0, 0]] + axis_line[0][axis], axis_line[1][axis] = a_min, a_max + self.draw_line(axis_line, color) + if labels_visible: + self.draw_axis_line_labels(axis, color, axis_line) + + def draw_axis_line_labels(self, axis, color, axis_line): + if not self._p._label_axes: + return + axis_labels = [axis_line[0][::], axis_line[1][::]] + axis_labels[0][axis] -= 0.3 + axis_labels[1][axis] += 0.3 + a_str = ['X', 'Y', 'Z'][axis] + self.draw_text("-" + a_str, axis_labels[0], color) + self.draw_text("+" + a_str, axis_labels[1], color) + + def draw_tick_line(self, axis, color, radius, tick, labels_visible): + tick_axis = {0: 1, 1: 0, 2: 1}[axis] + tick_line = [[0, 0, 0], [0, 0, 0]] + tick_line[0][axis] = tick_line[1][axis] = tick + tick_line[0][tick_axis], tick_line[1][tick_axis] = -radius, radius + self.draw_line(tick_line, color) + if labels_visible: + self.draw_tick_line_label(axis, color, radius, tick) + + def draw_tick_line_label(self, axis, color, radius, tick): + if not self._p._label_axes: + return + tick_label_vector = [0, 0, 0] + tick_label_vector[axis] = tick + tick_label_vector[{0: 1, 1: 0, 2: 1}[axis]] = [-1, 1, 1][ + axis] * radius * 3.5 + self.draw_text(str(tick), tick_label_vector, color, scale=0.5) + + +class PlotAxesFrame(PlotAxesBase): + + def __init__(self, parent_axes): + super().__init__(parent_axes) + + def draw_background(self, color): + pass + + def draw_axis(self, axis, color): + raise NotImplementedError() diff --git a/shared/package-files/43/43d8e6e85db3e0c0513ffc7a90b3574cb3847d64b5daf171845bafa9ad483bd5/loss.h b/shared/package-files/43/43d8e6e85db3e0c0513ffc7a90b3574cb3847d64b5daf171845bafa9ad483bd5/loss.h new file mode 100644 index 0000000000000000000000000000000000000000..c9eb2b66f3e0b2122639f6354dadf539819efc48 --- /dev/null +++ b/shared/package-files/43/43d8e6e85db3e0c0513ffc7a90b3574cb3847d64b5daf171845bafa9ad483bd5/loss.h @@ -0,0 +1,802 @@ +#pragma once + +#include +#include +#include +#include + +namespace torch { +namespace nn { + +/// Options for the `L1Loss` module. +/// +/// Example: +/// ``` +/// L1Loss model(L1LossOptions(torch::kNone)); +/// ``` +struct TORCH_API L1LossOptions { + typedef std::variant + reduction_t; + + TORCH_OPTIONS_CTOR_VARIANT_ARG3(L1LossOptions, reduction, kNone, kMean, kSum) + + /// Specifies the reduction to apply to the output. + TORCH_ARG(reduction_t, reduction) = torch::kMean; +}; + +namespace functional { +/// Options for `torch::nn::functional::l1_loss`. +/// +/// See the documentation for `torch::nn::L1LossOptions` class to learn what +/// arguments are supported. +/// +/// Example: +/// ``` +/// namespace F = torch::nn::functional; +/// F::l1_loss(input, target, F::L1LossFuncOptions(torch::kNone)); +/// ``` +using L1LossFuncOptions = L1LossOptions; +} // namespace functional + +// ============================================================================ + +/// Options for the `KLDivLoss` module. +/// +/// Example: +/// ``` +/// KLDivLoss +/// model(KLDivLossOptions().reduction(torch::kNone).log_target(false)); +/// ``` +struct TORCH_API KLDivLossOptions { + typedef std::variant< + enumtype::kNone, + enumtype::kBatchMean, + enumtype::kSum, + enumtype::kMean> + reduction_t; + + TORCH_OPTIONS_CTOR_VARIANT_ARG4( + KLDivLossOptions, + reduction, + kNone, + kBatchMean, + kSum, + kMean) + + /// Specifies the reduction to apply to the output. + /// ``'none'`` | ``'batchmean'`` | ``'sum'`` | ``'mean'``. Default: ``'mean'`` + TORCH_ARG(reduction_t, reduction) = torch::kMean; + + /// Specifies whether `target` is accepted in the log space. Default: False + TORCH_ARG(bool, log_target) = false; +}; + +namespace functional { +/// Options for `torch::nn::functional::kl_div`. +/// +/// See the documentation for `torch::nn::KLDivLossOptions` class to learn what +/// arguments are supported. +/// +/// Example: +/// ``` +/// namespace F = torch::nn::functional; +/// F::kl_div(input, target, +/// F::KLDivFuncOptions().reduction(torch::kNone).log_target(false)); +/// ``` +using KLDivFuncOptions = KLDivLossOptions; +} // namespace functional + +// ============================================================================ + +/// Options for the `MSELoss` module. +/// +/// Example: +/// ``` +/// MSELoss model(MSELossOptions(torch::kNone)); +/// ``` +struct TORCH_API MSELossOptions { + typedef std::variant + reduction_t; + + TORCH_OPTIONS_CTOR_VARIANT_ARG3(MSELossOptions, reduction, kNone, kMean, kSum) + + /// Specifies the reduction to apply to the output. + /// ``'none'`` | ``'mean'`` | ``'sum'``. Default: ``'mean'`` + TORCH_ARG(reduction_t, reduction) = torch::kMean; +}; + +namespace functional { +/// Options for `torch::nn::functional::mse_loss`. +/// +/// See the documentation for `torch::nn::MSELossOptions` class to learn what +/// arguments are supported. +/// +/// Example: +/// ``` +/// namespace F = torch::nn::functional; +/// F::mse_loss(input, target, F::MSELossFuncOptions(torch::kNone)); +/// ``` +using MSELossFuncOptions = MSELossOptions; +} // namespace functional + +// ============================================================================ + +/// Options for the `BCELoss` module. +/// +/// Example: +/// ``` +/// BCELoss model(BCELossOptions().reduction(torch::kNone).weight(weight)); +/// ``` +struct TORCH_API BCELossOptions { + typedef std::variant + reduction_t; + + /// A manual rescaling weight given to the loss of each batch element. + TORCH_ARG(Tensor, weight) = {}; + /// Specifies the reduction to apply to the output. + /// ``'none'`` | ``'mean'`` | ``'sum'``. Default: ``'mean'`` + TORCH_ARG(reduction_t, reduction) = torch::kMean; +}; + +namespace functional { +/// Options for `torch::nn::functional::binary_cross_entropy`. +/// +/// See the documentation for `torch::nn::BCELossOptions` class to learn what +/// arguments are supported. +/// +/// Example: +/// ``` +/// namespace F = torch::nn::functional; +/// F::binary_cross_entropy(input, target, +/// F::BinaryCrossEntropyFuncOptions().weight(weight)); +/// ``` +using BinaryCrossEntropyFuncOptions = BCELossOptions; +} // namespace functional + +// ============================================================================ + +/// Options for the `HingeEmbeddingLoss` module. +/// +/// Example: +/// ``` +/// HingeEmbeddingLoss +/// model(HingeEmbeddingLossOptions().margin(4).reduction(torch::kNone)); +/// ``` +struct TORCH_API HingeEmbeddingLossOptions { + typedef std::variant + reduction_t; + + /// Specifies the threshold for which the distance of a negative sample must + /// reach in order to incur zero loss. Default: 1 + TORCH_ARG(double, margin) = 1.0; + /// Specifies the reduction to apply to the output. Default: Mean + TORCH_ARG(reduction_t, reduction) = torch::kMean; +}; + +namespace functional { +/// Options for `torch::nn::functional::hinge_embedding_loss`. +/// +/// See the documentation for `torch::nn::HingeEmbeddingLossOptions` class to +/// learn what arguments are supported. +/// +/// Example: +/// ``` +/// namespace F = torch::nn::functional; +/// F::hinge_embedding_loss(input, target, +/// F::HingeEmbeddingLossFuncOptions().margin(2)); +/// ``` +using HingeEmbeddingLossFuncOptions = HingeEmbeddingLossOptions; +} // namespace functional + +// ============================================================================ + +/// Options for the `MultiMarginLoss` module. +/// +/// Example: +/// ``` +/// MultiMarginLoss model(MultiMarginLossOptions().margin(2).weight(weight)); +/// ``` +struct TORCH_API MultiMarginLossOptions { + typedef std::variant + reduction_t; + + /// Has a default value of :math:`1`. :math:`1` and :math:`2` + /// are the only supported values. + TORCH_ARG(int64_t, p) = 1; + /// Has a default value of :math:`1`. + TORCH_ARG(double, margin) = 1.0; + /// A manual rescaling weight given to each + /// class. If given, it has to be a Tensor of size `C`. Otherwise, it is + /// treated as if having all ones. + TORCH_ARG(Tensor, weight) = Tensor(); + /// Specifies the reduction to apply to the output: + /// ``'none'`` | ``'mean'`` | ``'sum'``. ``'none'``: no reduction will be + /// applied, + /// ``'mean'``: the sum of the output will be divided by the number of + /// elements in the output, ``'sum'``: the output will be summed. Default: + /// ``'mean'`` + TORCH_ARG(reduction_t, reduction) = torch::kMean; +}; + +namespace functional { +/// Options for `torch::nn::functional::multi_margin_loss`. +/// +/// See the documentation for `torch::nn::MultiMarginLossOptions` class to learn +/// what arguments are supported. +/// +/// Example: +/// ``` +/// namespace F = torch::nn::functional; +/// F::multi_margin_loss(input, target, +/// F::MultiMarginLossFuncOptions().margin(2).weight(weight)); +/// ``` +using MultiMarginLossFuncOptions = MultiMarginLossOptions; +} // namespace functional + +// ============================================================================ + +/// Options for the `CosineEmbeddingLoss` module. +/// +/// Example: +/// ``` +/// CosineEmbeddingLoss model(CosineEmbeddingLossOptions().margin(0.5)); +/// ``` +struct TORCH_API CosineEmbeddingLossOptions { + typedef std::variant + reduction_t; + + /// Specifies the threshold for which the distance of a negative sample must + /// reach in order to incur zero loss. Should be a number from -1 to 1, 0 + /// to 0.5 is suggested. Default: 0.0 + TORCH_ARG(double, margin) = 0.0; + /// Specifies the reduction to apply to the output. Default: Mean + TORCH_ARG(reduction_t, reduction) = torch::kMean; +}; + +namespace functional { +/// Options for `torch::nn::functional::cosine_embedding_loss`. +/// +/// See the documentation for `torch::nn::CosineEmbeddingLossOptions` class to +/// learn what arguments are supported. +/// +/// Example: +/// ``` +/// namespace F = torch::nn::functional; +/// F::cosine_embedding_loss(input1, input2, target, +/// F::CosineEmbeddingLossFuncOptions().margin(0.5)); +/// ``` +using CosineEmbeddingLossFuncOptions = CosineEmbeddingLossOptions; +} // namespace functional + +// ============================================================================ + +/// Options for the `MultiLabelMarginLoss` module. +/// +/// Example: +/// ``` +/// MultiLabelMarginLoss model(MultiLabelMarginLossOptions(torch::kNone)); +/// ``` +struct TORCH_API MultiLabelMarginLossOptions { + typedef std::variant + reduction_t; + + TORCH_OPTIONS_CTOR_VARIANT_ARG3( + MultiLabelMarginLossOptions, + reduction, + kNone, + kMean, + kSum) + + /// Specifies the reduction to apply to the output: 'none' | 'mean' | 'sum'. + /// 'none': no reduction will be applied, 'mean': the sum of the output will + /// be divided by the number of elements in the output, 'sum': the output will + /// be summed. Default: 'mean' + TORCH_ARG(reduction_t, reduction) = torch::kMean; +}; + +namespace functional { +/// Options for `torch::nn::functional::multilabel_margin_loss`. +/// +/// See the documentation for `torch::nn::MultiLabelMarginLossOptions` class to +/// learn what arguments are supported. +/// +/// Example: +/// ``` +/// namespace F = torch::nn::functional; +/// F::multilabel_margin_loss(input, target, +/// F::MultilabelMarginLossFuncOptions(torch::kNone)); +/// ``` +using MultilabelMarginLossFuncOptions = MultiLabelMarginLossOptions; +} // namespace functional + +// ============================================================================ + +/// Options for the `SoftMarginLoss` module. +/// +/// Example: +/// ``` +/// SoftMarginLoss model(SoftMarginLossOptions(torch::kNone)); +/// ``` +struct TORCH_API SoftMarginLossOptions { + typedef std::variant + reduction_t; + + TORCH_OPTIONS_CTOR_VARIANT_ARG3( + SoftMarginLossOptions, + reduction, + kNone, + kMean, + kSum) + + /// Specifies the reduction to apply to the output: 'none' | 'mean' | 'sum'. + /// 'none': no reduction will be applied, 'mean': the sum of the output will + /// be divided by the number of elements in the output, 'sum': the output will + /// be summed. Default: 'mean' + TORCH_ARG(reduction_t, reduction) = torch::kMean; +}; + +namespace functional { +/// Options for `torch::nn::functional::soft_margin_loss`. +/// +/// See the documentation for `torch::nn::SoftMarginLossOptions` class to learn +/// what arguments are supported. +/// +/// Example: +/// ``` +/// namespace F = torch::nn::functional; +/// F::soft_margin_loss(input, target, +/// F::SoftMarginLossFuncOptions(torch::kNone)); +/// ``` +using SoftMarginLossFuncOptions = SoftMarginLossOptions; +} // namespace functional + +// ============================================================================ + +/// Options for the `MultiLabelSoftMarginLoss` module. +/// +/// Example: +/// ``` +/// MultiLabelSoftMarginLoss +/// model(MultiLabelSoftMarginLossOptions().reduction(torch::kNone).weight(weight)); +/// ``` +struct TORCH_API MultiLabelSoftMarginLossOptions { + typedef std::variant + reduction_t; + + /// A manual rescaling weight given to each + /// class. If given, it has to be a Tensor of size `C`. Otherwise, it is + /// treated as if having all ones. + TORCH_ARG(Tensor, weight) = Tensor(); + + /// Specifies the reduction to apply to the output: 'none' | 'mean' | 'sum'. + /// 'none': no reduction will be applied, 'mean': the sum of the output will + /// be divided by the number of elements in the output, 'sum': the output will + /// be summed. Default: 'mean' + TORCH_ARG(reduction_t, reduction) = torch::kMean; +}; + +namespace functional { +/// Options for `torch::nn::functional::multilabel_soft_margin_loss`. +/// +/// See the documentation for `torch::nn::MultiLabelSoftMarginLossOptions` class +/// to learn what arguments are supported. +/// +/// Example: +/// ``` +/// namespace F = torch::nn::functional; +/// F::multilabel_soft_margin_loss(input, target, +/// F::MultilabelSoftMarginLossFuncOptions().reduction(torch::kNone).weight(weight)); +/// ``` +using MultilabelSoftMarginLossFuncOptions = MultiLabelSoftMarginLossOptions; +} // namespace functional + +// ============================================================================ + +/// Options for the `TripletMarginLoss` module. +/// +/// Example: +/// ``` +/// TripletMarginLoss +/// model(TripletMarginLossOptions().margin(3).p(2).eps(1e-06).swap(false)); +/// ``` +struct TORCH_API TripletMarginLossOptions { + typedef std::variant + reduction_t; + + /// Specifies the threshold for which the distance of a negative sample must + /// reach in order to incur zero loss. Default: 1 + TORCH_ARG(double, margin) = 1.0; + /// Specifies the norm degree for pairwise distance. Default: 2 + TORCH_ARG(double, p) = 2.0; + TORCH_ARG(double, eps) = 1e-6; + /// The distance swap is described in detail in the paper Learning shallow + /// convolutional feature descriptors with triplet losses by V. Balntas, + /// E. Riba et al. Default: False + TORCH_ARG(bool, swap) = false; + /// Specifies the reduction to apply to the output. Default: Mean + TORCH_ARG(reduction_t, reduction) = torch::kMean; +}; + +namespace functional { +/// Options for `torch::nn::functional::triplet_margin_loss`. +/// +/// See the documentation for `torch::nn::TripletMarginLossOptions` class to +/// learn what arguments are supported. +/// +/// Example: +/// ``` +/// namespace F = torch::nn::functional; +/// F::triplet_margin_loss(anchor, positive, negative, +/// F::TripletMarginLossFuncOptions().margin(1.0)); +/// ``` +using TripletMarginLossFuncOptions = TripletMarginLossOptions; +} // namespace functional + +// ============================================================================ + +/// Options for the `TripletMarginWithDistanceLoss` module. +/// +/// Example: +/// ``` +/// TripletMarginWithDistanceLoss +/// model(TripletMarginWithDistanceLossOptions().margin(3).swap(false)); +/// ``` +struct TORCH_API TripletMarginWithDistanceLossOptions { + typedef std::variant + reduction_t; + typedef std::function + distance_function_t; + + /// Specifies a nonnegative, real-valued function that quantifies the + /// closeness of two tensors. If not specified, `F::pairwise_distance` will + /// be used. Default: nullopt + TORCH_ARG(c10::optional, distance_function) = + c10::nullopt; + /// Specifies a nonnegative margin representing the minimum difference + /// between the positive and negative distances required for the loss to be 0. + /// Larger margins penalize cases where the negative examples are not distance + /// enough from the anchors, relative to the positives. Default: 1 + TORCH_ARG(double, margin) = 1.0; + /// Whether to use the distance swap described in the paper Learning shallow + /// convolutional feature descriptors with triplet losses by V. Balntas, + /// E. Riba et al. If True, and if the positive example is closer to the + /// negative example than the anchor is, swaps the positive example and the + /// anchor in the loss computation. Default: False + TORCH_ARG(bool, swap) = false; + /// Specifies the reduction to apply to the output. Default: Mean + TORCH_ARG(reduction_t, reduction) = torch::kMean; +}; + +namespace functional { +/// Options for `torch::nn::functional::triplet_margin_with_distance_loss`. +/// +/// See the documentation for `torch::nn::TripletMarginWithDistanceLossOptions` +/// class to learn what arguments are supported. +/// +/// Example: +/// ``` +/// namespace F = torch::nn::functional; +/// F::triplet_margin_with_distance_loss(anchor, positive, negative, +/// F::TripletMarginWithDistanceLossFuncOptions().margin(1.0)); +/// ``` +using TripletMarginWithDistanceLossFuncOptions = + TripletMarginWithDistanceLossOptions; +} // namespace functional + +// ============================================================================ + +/// Options for the `CTCLoss` module. +/// +/// Example: +/// ``` +/// CTCLoss +/// model(CTCLossOptions().blank(42).zero_infinity(false).reduction(torch::kSum)); +/// ``` +struct TORCH_API CTCLossOptions { + typedef std::variant + reduction_t; + + /// blank label. Default `0`. + TORCH_ARG(int64_t, blank) = 0; + /// Specifies the reduction to apply to the output. Default: Mean + TORCH_ARG(reduction_t, reduction) = torch::kMean; + /// Whether to zero infinite losses and the associated gradients. + /// Default: `false`. Infinite losses mainly occur when the inputs are + /// too short to be aligned to the targets. + TORCH_ARG(bool, zero_infinity) = false; +}; + +namespace functional { +/// Options for `torch::nn::functional::ctc_loss`. +/// +/// See the documentation for `torch::nn::CTCLossOptions` class to learn what +/// arguments are supported. +/// +/// Example: +/// ``` +/// namespace F = torch::nn::functional; +/// F::ctc_loss(log_probs, targets, input_lengths, target_lengths, +/// F::CTCLossFuncOptions().reduction(torch::kNone)); +/// ``` +using CTCLossFuncOptions = CTCLossOptions; +} // namespace functional + +// ============================================================================ + +/// Options for the `SmoothL1Loss` module. +/// +/// Example: +/// ``` +/// SmoothL1Loss model(SmoothL1LossOptions().reduction(torch::kNone).beta(0.5)); +/// ``` +struct TORCH_API SmoothL1LossOptions { + typedef std::variant + reduction_t; + + TORCH_OPTIONS_CTOR_VARIANT_ARG3( + SmoothL1LossOptions, + reduction, + kNone, + kMean, + kSum) + + /// Specifies the reduction to apply to the output: 'none' | 'mean' | 'sum'. + /// 'none': no reduction will be applied, 'mean': the sum of the output will + /// be divided by the number of elements in the output, 'sum': the output will + /// be summed. Default: 'mean' + TORCH_ARG(reduction_t, reduction) = torch::kMean; + /// Specifies the threshold at which to change between L1 and L2 loss. + /// If beta is not specified, a value of 1.0 will be used. + /// Default: nullopt + TORCH_ARG(c10::optional, beta) = c10::nullopt; +}; + +namespace functional { +/// Options for `torch::nn::functional::smooth_l1_loss`. +/// +/// See the documentation for `torch::nn::SmoothL1LossOptions` class to learn +/// what arguments are supported. +/// +/// Example: +/// ``` +/// namespace F = torch::nn::functional; +/// F::smooth_l1_loss(input, target, F::SmoothL1LossFuncOptions(torch::kNone)); +/// ``` +using SmoothL1LossFuncOptions = SmoothL1LossOptions; +} // namespace functional + +// ============================================================================ + +/// Options for the `HuberLoss` module. +/// +/// Example: +/// ``` +/// HuberLoss model(HuberLossOptions().reduction(torch::kNone).delta(0.5)); +/// ``` +struct TORCH_API HuberLossOptions { + typedef std::variant + reduction_t; + + TORCH_OPTIONS_CTOR_VARIANT_ARG3( + HuberLossOptions, + reduction, + kNone, + kMean, + kSum) + + /// Specifies the reduction to apply to the output: 'none' | 'mean' | 'sum'. + /// 'none': no reduction will be applied, 'mean': the sum of the output will + /// be divided by the number of elements in the output, 'sum': the output will + /// be summed. Default: 'mean' + TORCH_ARG(reduction_t, reduction) = torch::kMean; + /// Specifies the threshold at which to change between L1 and L2 loss. + /// Default: 1.0 + TORCH_ARG(double, delta) = 1.0; +}; + +namespace functional { +/// Options for `torch::nn::functional::huber_loss`. +/// +/// See the documentation for `torch::nn::HuberLossOptions` class to learn what +/// arguments are supported. +/// +/// Example: +/// ``` +/// namespace F = torch::nn::functional; +/// F::huber_loss(input, target, F::HuberLossFuncOptions(torch::kNone)); +/// ``` +using HuberLossFuncOptions = HuberLossOptions; +} // namespace functional + +// ============================================================================ + +/// Options for the `PoissonNLLLoss` module. +/// +/// Example: +/// ``` +/// PoissonNLLLoss +/// model(PoissonNLLLossOptions().log_input(false).full(true).eps(0.42).reduction(torch::kSum)); +/// ``` +struct TORCH_API PoissonNLLLossOptions { + typedef std::variant + reduction_t; + + /// if true the loss is computed as `exp(input) - target * input`, + /// if false the loss is `input - target * log(input + eps)`. + TORCH_ARG(bool, log_input) = true; + /// whether to compute full loss, i.e. to add the Stirling approximation term + /// target * log(target) - target + 0.5 * log(2 * pi * target). + TORCH_ARG(bool, full) = false; + /// Small value to avoid evaluation of `log(0)` when `log_input = false`. + /// Default: 1e-8 + TORCH_ARG(double, eps) = 1e-8; + /// Specifies the reduction to apply to the output. Default: Mean + TORCH_ARG(reduction_t, reduction) = torch::kMean; +}; + +namespace functional { +/// Options for `torch::nn::functional::poisson_nll_loss`. +/// +/// See the documentation for `torch::nn::PoissonNLLLossOptions` class to learn +/// what arguments are supported. +/// +/// Example: +/// ``` +/// namespace F = torch::nn::functional; +/// F::poisson_nll_loss(input, target, +/// F::PoissonNLLLossFuncOptions().reduction(torch::kNone)); +/// ``` +using PoissonNLLLossFuncOptions = PoissonNLLLossOptions; +} // namespace functional + +// ============================================================================ + +/// Options for the `MarginRankingLoss` module. +/// +/// Example: +/// ``` +/// MarginRankingLoss +/// model(MarginRankingLossOptions().margin(0.5).reduction(torch::kSum)); +/// ``` +struct TORCH_API MarginRankingLossOptions { + typedef std::variant + reduction_t; + + /// Has a default value of `0`. + TORCH_ARG(double, margin) = 0; + /// Specifies the reduction to apply to the output. Default: Mean + TORCH_ARG(reduction_t, reduction) = torch::kMean; +}; + +namespace functional { +/// Options for `torch::nn::functional::margin_ranking_loss`. +/// +/// See the documentation for `torch::nn::MarginRankingLossOptions` class to +/// learn what arguments are supported. +/// +/// Example: +/// ``` +/// namespace F = torch::nn::functional; +/// F::margin_ranking_loss(input1, input2, target, +/// F::MarginRankingLossFuncOptions().margin(0.5).reduction(torch::kSum)); +/// ``` +using MarginRankingLossFuncOptions = MarginRankingLossOptions; +} // namespace functional + +// ============================================================================ + +/// Options for the `NLLLoss` module. +/// +/// Example: +/// ``` +/// NLLLoss model(NLLLossOptions().ignore_index(-100).reduction(torch::kMean)); +/// ``` +struct TORCH_API NLLLossOptions { + typedef std::variant + reduction_t; + + /// A manual rescaling weight given to each + /// class. If given, it has to be a Tensor of size `C`. Otherwise, it is + /// treated as if having all ones. + TORCH_ARG(Tensor, weight) = {}; + /// Specifies a target value that is ignored + /// and does not contribute to the input gradient. + TORCH_ARG(int64_t, ignore_index) = -100; + /// Specifies the reduction to apply to the output. Default: Mean + TORCH_ARG(reduction_t, reduction) = torch::kMean; +}; + +namespace functional { +/// Options for `torch::nn::functional::nll_loss`. +/// +/// See the documentation for `torch::nn::NLLLossOptions` class to learn what +/// arguments are supported. +/// +/// Example: +/// ``` +/// namespace F = torch::nn::functional; +/// F::nll_loss(input, target, +/// F::NLLLossFuncOptions().ignore_index(-100).reduction(torch::kMean)); +/// ``` +using NLLLossFuncOptions = NLLLossOptions; +} // namespace functional + +// ============================================================================ + +/// Options for the `CrossEntropyLoss` module. +/// +/// Example: +/// ``` +/// CrossEntropyLoss +/// model(CrossEntropyLossOptions().ignore_index(-100).reduction(torch::kMean)); +/// ``` +struct TORCH_API CrossEntropyLossOptions { + typedef std::variant + reduction_t; + + /// A manual rescaling weight given to each class. If given, has to be a + /// Tensor of size C + TORCH_ARG(Tensor, weight) = {}; + /// Specifies a target value that is ignored + /// and does not contribute to the input gradient. + TORCH_ARG(int64_t, ignore_index) = -100; + /// Specifies the reduction to apply to the output. Default: Mean + TORCH_ARG(reduction_t, reduction) = torch::kMean; + /// Specifies the amount of smoothing when computing the loss. Default: 0.0 + TORCH_ARG(double, label_smoothing) = 0.0; +}; + +namespace functional { +/// Options for `torch::nn::functional::cross_entropy`. +/// +/// See the documentation for `torch::nn::CrossEntropyLossOptions` class to +/// learn what arguments are supported. +/// +/// Example: +/// ``` +/// namespace F = torch::nn::functional; +/// F::cross_entropy(input, target, +/// F::CrossEntropyFuncOptions().ignore_index(-100).reduction(torch::kMean)); +/// ``` +using CrossEntropyFuncOptions = CrossEntropyLossOptions; +} // namespace functional + +// ============================================================================ + +/// Options for the `BCEWithLogitsLoss` module. +/// +/// Example: +/// ``` +/// BCEWithLogitsLoss +/// model(BCEWithLogitsLossOptions().reduction(torch::kNone).weight(weight)); +/// ``` +struct TORCH_API BCEWithLogitsLossOptions { + typedef std::variant + reduction_t; + /// A manual rescaling weight given to the loss of each batch element. + /// If given, has to be a Tensor of size `nbatch`. + TORCH_ARG(Tensor, weight) = {}; + /// Specifies the reduction to apply to the output. Default: Mean + TORCH_ARG(reduction_t, reduction) = torch::kMean; + /// A weight of positive examples. + /// Must be a vector with length equal to the number of classes. + TORCH_ARG(Tensor, pos_weight) = {}; +}; + +namespace functional { +/// Options for `torch::nn::functional::binary_cross_entropy_with_logits`. +/// +/// See the documentation for `torch::nn::BCEWithLogitsLossOptions` class to +/// learn what arguments are supported. +/// +/// Example: +/// ``` +/// namespace F = torch::nn::functional; +/// F::binary_cross_entropy_with_logits(input, target, +/// F::BinaryCrossEntropyWithLogitsFuncOptions().pos_weight(pos_weight).reduction(torch::kSum)); +/// ``` +using BinaryCrossEntropyWithLogitsFuncOptions = BCEWithLogitsLossOptions; +} // namespace functional + +} // namespace nn +} // namespace torch diff --git a/shared/package-files/43/43dae39173eb53df978bae3f7cc2cf6c16d6fdbca18c916cbc7a693f50ae99d0/function_options.h b/shared/package-files/43/43dae39173eb53df978bae3f7cc2cf6c16d6fdbca18c916cbc7a693f50ae99d0/function_options.h new file mode 100644 index 0000000000000000000000000000000000000000..88ec2fd2d0679b5c849549179aa652bec9b37b56 --- /dev/null +++ b/shared/package-files/43/43dae39173eb53df978bae3f7cc2cf6c16d6fdbca18c916cbc7a693f50ae99d0/function_options.h @@ -0,0 +1,81 @@ +// 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 + +#include "arrow/compute/type_fwd.h" +#include "arrow/result.h" +#include "arrow/status.h" +#include "arrow/type_fwd.h" +#include "arrow/util/visibility.h" + +namespace arrow { +namespace compute { + +/// \addtogroup compute-functions +/// @{ + +/// \brief Extension point for defining options outside libarrow (but +/// still within this project). +class ARROW_EXPORT FunctionOptionsType { + public: + virtual ~FunctionOptionsType() = default; + + virtual const char* type_name() const = 0; + virtual std::string Stringify(const FunctionOptions&) const = 0; + virtual bool Compare(const FunctionOptions&, const FunctionOptions&) const = 0; + virtual Result> Serialize(const FunctionOptions&) const; + virtual Result> Deserialize( + const Buffer& buffer) const; + virtual std::unique_ptr Copy(const FunctionOptions&) const = 0; +}; + +/// \brief Base class for specifying options configuring a function's behavior, +/// such as error handling. +class ARROW_EXPORT FunctionOptions : public util::EqualityComparable { + public: + virtual ~FunctionOptions() = default; + + const FunctionOptionsType* options_type() const { return options_type_; } + const char* type_name() const { return options_type()->type_name(); } + + bool Equals(const FunctionOptions& other) const; + std::string ToString() const; + std::unique_ptr Copy() const; + /// \brief Serialize an options struct to a buffer. + Result> Serialize() const; + /// \brief Deserialize an options struct from a buffer. + /// Note: this will only look for `type_name` in the default FunctionRegistry; + /// to use a custom FunctionRegistry, look up the FunctionOptionsType, then + /// call FunctionOptionsType::Deserialize(). + static Result> Deserialize( + const std::string& type_name, const Buffer& buffer); + + protected: + explicit FunctionOptions(const FunctionOptionsType* type) : options_type_(type) {} + const FunctionOptionsType* options_type_; +}; + +ARROW_EXPORT void PrintTo(const FunctionOptions&, std::ostream*); + +/// @} + +} // namespace compute +} // namespace arrow diff --git a/shared/package-files/43/43dbea555ad0a6958bbc6786013ae7ebafff2f2cc1c85c60590d2668d5296209/pathlib2.pyi b/shared/package-files/43/43dbea555ad0a6958bbc6786013ae7ebafff2f2cc1c85c60590d2668d5296209/pathlib2.pyi new file mode 100644 index 0000000000000000000000000000000000000000..ce9bbc1d4939649495995a695c9a2d64b64a69a5 --- /dev/null +++ b/shared/package-files/43/43dbea555ad0a6958bbc6786013ae7ebafff2f2cc1c85c60590d2668d5296209/pathlib2.pyi @@ -0,0 +1,103 @@ +import os +import sys +from _typeshed import OpenBinaryMode, OpenBinaryModeReading, OpenBinaryModeUpdating, OpenBinaryModeWriting, OpenTextMode +from io import BufferedRandom, BufferedReader, BufferedWriter, FileIO, TextIOWrapper +from types import TracebackType +from typing import IO, Any, BinaryIO, Generator, List, Optional, Sequence, Text, TextIO, Tuple, Type, TypeVar, Union, overload +from typing_extensions import Literal + +_P = TypeVar("_P", bound=PurePath) + +_PurePathBase = object +_PathLike = PurePath + +class PurePath(_PurePathBase): + parts: Tuple[str, ...] + drive: str + root: str + anchor: str + name: str + suffix: str + suffixes: List[str] + stem: str + def __new__(cls: Type[_P], *args: Union[str, _PathLike]) -> _P: ... + def __hash__(self) -> int: ... + def __lt__(self, other: PurePath) -> bool: ... + def __le__(self, other: PurePath) -> bool: ... + def __gt__(self, other: PurePath) -> bool: ... + def __ge__(self, other: PurePath) -> bool: ... + def __truediv__(self: _P, key: Union[str, _PathLike]) -> _P: ... + def __rtruediv__(self: _P, key: Union[str, _PathLike]) -> _P: ... + def __div__(self: _P, key: Union[str, PurePath]) -> _P: ... + def __bytes__(self) -> bytes: ... + def as_posix(self) -> str: ... + def as_uri(self) -> str: ... + def is_absolute(self) -> bool: ... + def is_reserved(self) -> bool: ... + def match(self, path_pattern: str) -> bool: ... + def relative_to(self: _P, *other: Union[str, _PathLike]) -> _P: ... + def with_name(self: _P, name: str) -> _P: ... + def with_suffix(self: _P, suffix: str) -> _P: ... + def joinpath(self: _P, *other: Union[str, _PathLike]) -> _P: ... + @property + def parents(self: _P) -> Sequence[_P]: ... + @property + def parent(self: _P) -> _P: ... + +class PurePosixPath(PurePath): ... +class PureWindowsPath(PurePath): ... + +class Path(PurePath): + def __new__(cls: Type[_P], *args: Union[str, _PathLike], **kwargs: Any) -> _P: ... + def __enter__(self) -> Path: ... + def __exit__( + self, exc_type: Optional[Type[BaseException]], exc_value: Optional[BaseException], traceback: Optional[TracebackType] + ) -> Optional[bool]: ... + @classmethod + def cwd(cls: Type[_P]) -> _P: ... + def stat(self) -> os.stat_result: ... + def chmod(self, mode: int) -> None: ... + def exists(self) -> bool: ... + def glob(self, pattern: str) -> Generator[Path, None, None]: ... + def group(self) -> str: ... + def is_dir(self) -> bool: ... + def is_file(self) -> bool: ... + def is_symlink(self) -> bool: ... + def is_socket(self) -> bool: ... + def is_fifo(self) -> bool: ... + def is_block_device(self) -> bool: ... + def is_char_device(self) -> bool: ... + def iterdir(self) -> Generator[Path, None, None]: ... + def lchmod(self, mode: int) -> None: ... + def lstat(self) -> os.stat_result: ... + def mkdir(self, mode: int = ..., parents: bool = ...) -> None: ... + # Adapted from _io.open + def open( + self, + mode: Text = ..., + buffering: int = ..., + encoding: Optional[Text] = ..., + errors: Optional[Text] = ..., + newline: Optional[Text] = ..., + ) -> IO[Any]: ... + def owner(self) -> str: ... + def rename(self, target: Union[str, PurePath]) -> None: ... + def replace(self, target: Union[str, PurePath]) -> None: ... + def resolve(self: _P) -> _P: ... + def rglob(self, pattern: str) -> Generator[Path, None, None]: ... + def rmdir(self) -> None: ... + def symlink_to(self, target: Union[str, Path], target_is_directory: bool = ...) -> None: ... + def touch(self, mode: int = ..., exist_ok: bool = ...) -> None: ... + def unlink(self) -> None: ... + @classmethod + def home(cls: Type[_P]) -> _P: ... + def absolute(self: _P) -> _P: ... + def expanduser(self: _P) -> _P: ... + def read_bytes(self) -> bytes: ... + def read_text(self, encoding: Optional[str] = ..., errors: Optional[str] = ...) -> str: ... + def samefile(self, other_path: Union[str, bytes, int, Path]) -> bool: ... + def write_bytes(self, data: bytes) -> int: ... + def write_text(self, data: str, encoding: Optional[str] = ..., errors: Optional[str] = ...) -> int: ... + +class PosixPath(Path, PurePosixPath): ... +class WindowsPath(Path, PureWindowsPath): ... diff --git a/shared/package-files/43/43e17f87077c285a2471f6955ceb303965d58dd223890444a1044b691c65f5d6/_sorting.pyx b/shared/package-files/43/43e17f87077c285a2471f6955ceb303965d58dd223890444a1044b691c65f5d6/_sorting.pyx new file mode 100644 index 0000000000000000000000000000000000000000..13b2d872392b9941de18ebfce519e330960fcd22 --- /dev/null +++ b/shared/package-files/43/43e17f87077c285a2471f6955ceb303965d58dd223890444a1044b691c65f5d6/_sorting.pyx @@ -0,0 +1,93 @@ +from cython cimport floating + +cdef inline void dual_swap( + floating* darr, + intp_t *iarr, + intp_t a, + intp_t b, +) noexcept nogil: + """Swap the values at index a and b of both darr and iarr""" + cdef floating dtmp = darr[a] + darr[a] = darr[b] + darr[b] = dtmp + + cdef intp_t itmp = iarr[a] + iarr[a] = iarr[b] + iarr[b] = itmp + + +cdef int simultaneous_sort( + floating* values, + intp_t* indices, + intp_t size, +) noexcept nogil: + """ + Perform a recursive quicksort on the values array as to sort them ascendingly. + This simultaneously performs the swaps on both the values and the indices arrays. + + The numpy equivalent is: + + def simultaneous_sort(dist, idx): + i = np.argsort(dist) + return dist[i], idx[i] + + Notes + ----- + Arrays are manipulated via a pointer to there first element and their size + as to ease the processing of dynamically allocated buffers. + """ + # TODO: In order to support discrete distance metrics, we need to have a + # simultaneous sort which breaks ties on indices when distances are identical. + # The best might be using a std::stable_sort and a Comparator which might need + # an Array of Structures (AoS) instead of the Structure of Arrays (SoA) + # currently used. + cdef: + intp_t pivot_idx, i, store_idx + floating pivot_val + + # in the small-array case, do things efficiently + if size <= 1: + pass + elif size == 2: + if values[0] > values[1]: + dual_swap(values, indices, 0, 1) + elif size == 3: + if values[0] > values[1]: + dual_swap(values, indices, 0, 1) + if values[1] > values[2]: + dual_swap(values, indices, 1, 2) + if values[0] > values[1]: + dual_swap(values, indices, 0, 1) + else: + # Determine the pivot using the median-of-three rule. + # The smallest of the three is moved to the beginning of the array, + # the middle (the pivot value) is moved to the end, and the largest + # is moved to the pivot index. + pivot_idx = size // 2 + if values[0] > values[size - 1]: + dual_swap(values, indices, 0, size - 1) + if values[size - 1] > values[pivot_idx]: + dual_swap(values, indices, size - 1, pivot_idx) + if values[0] > values[size - 1]: + dual_swap(values, indices, 0, size - 1) + pivot_val = values[size - 1] + + # Partition indices about pivot. At the end of this operation, + # pivot_idx will contain the pivot value, everything to the left + # will be smaller, and everything to the right will be larger. + store_idx = 0 + for i in range(size - 1): + if values[i] < pivot_val: + dual_swap(values, indices, i, store_idx) + store_idx += 1 + dual_swap(values, indices, store_idx, size - 1) + pivot_idx = store_idx + + # Recursively sort each side of the pivot + if pivot_idx > 1: + simultaneous_sort(values, indices, pivot_idx) + if pivot_idx + 2 < size: + simultaneous_sort(values + pivot_idx + 1, + indices + pivot_idx + 1, + size - pivot_idx - 1) + return 0 diff --git a/shared/package-files/43/43e19ff39348bdd02d539d999207fbf2b5473e583ce71c8c7bd666f726e1d29a/Oral b/shared/package-files/43/43e19ff39348bdd02d539d999207fbf2b5473e583ce71c8c7bd666f726e1d29a/Oral new file mode 100644 index 0000000000000000000000000000000000000000..25a63ec8b9951c94fc00a8c6c9d18d2151b26dde Binary files /dev/null and b/shared/package-files/43/43e19ff39348bdd02d539d999207fbf2b5473e583ce71c8c7bd666f726e1d29a/Oral differ diff --git a/shared/package-files/43/43e22c222c617ca31b0170fbb2ebb8250c02807d8801c4eaa46a4b94e380b1ab/test_correlation.py b/shared/package-files/43/43e22c222c617ca31b0170fbb2ebb8250c02807d8801c4eaa46a4b94e380b1ab/test_correlation.py new file mode 100644 index 0000000000000000000000000000000000000000..d85ac363c80dd169c26634ff8d14b2d5e4db72fb --- /dev/null +++ b/shared/package-files/43/43e22c222c617ca31b0170fbb2ebb8250c02807d8801c4eaa46a4b94e380b1ab/test_correlation.py @@ -0,0 +1,31 @@ +import numpy as np +import pytest + +from statsmodels.datasets import randhie +from statsmodels.graphics.correlation import plot_corr, plot_corr_grid + + +@pytest.mark.thread_unsafe(reason="Uses matplotlib") +@pytest.mark.matplotlib +def test_plot_corr(close_figures): + hie_data = randhie.load_pandas() + corr_matrix = np.corrcoef(hie_data.data.values.T) + + plot_corr(corr_matrix, xnames=hie_data.names) + + plot_corr(corr_matrix, xnames=[], ynames=hie_data.names) + + plot_corr(corr_matrix, normcolor=True, title="", cmap="jet") + + +@pytest.mark.thread_unsafe(reason="Uses matplotlib") +@pytest.mark.matplotlib +def test_plot_corr_grid(close_figures): + hie_data = randhie.load_pandas() + corr_matrix = np.corrcoef(hie_data.data.values.T) + + plot_corr_grid([corr_matrix] * 2, xnames=hie_data.names) + + plot_corr_grid([corr_matrix] * 5, xnames=[], ynames=hie_data.names) + + plot_corr_grid([corr_matrix] * 3, normcolor=True, titles="", cmap="jet") diff --git a/shared/package-files/43/43e2bc3fd746cfd7e68cca4a9d8c4f226d2008a826fc479144ba2b18a06e593b/softmax_compositeexplicitautograd_dispatch.h b/shared/package-files/43/43e2bc3fd746cfd7e68cca4a9d8c4f226d2008a826fc479144ba2b18a06e593b/softmax_compositeexplicitautograd_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..223a5b7b7ca57675dd0563425a448680acdccb68 --- /dev/null +++ b/shared/package-files/43/43e2bc3fd746cfd7e68cca4a9d8c4f226d2008a826fc479144ba2b18a06e593b/softmax_compositeexplicitautograd_dispatch.h @@ -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 compositeexplicitautograd { + +TORCH_API at::Tensor & softmax_out(at::Tensor & out, const at::Tensor & self, int64_t dim, c10::optional dtype=c10::nullopt); +TORCH_API at::Tensor & softmax_outf(const at::Tensor & self, int64_t dim, c10::optional dtype, at::Tensor & out); + +} // namespace compositeexplicitautograd +} // namespace at diff --git a/shared/package-files/43/43eb1f8ad5620a6dfea104151d60f08ca2a26b566e517eb4efd7069afde2de85/test_stat_reductions.py b/shared/package-files/43/43eb1f8ad5620a6dfea104151d60f08ca2a26b566e517eb4efd7069afde2de85/test_stat_reductions.py new file mode 100644 index 0000000000000000000000000000000000000000..8fbb78737474c8abf34b8720603e32f6a93d83e7 --- /dev/null +++ b/shared/package-files/43/43eb1f8ad5620a6dfea104151d60f08ca2a26b566e517eb4efd7069afde2de85/test_stat_reductions.py @@ -0,0 +1,276 @@ +""" +Tests for statistical reductions of 2nd moment or higher: var, skew, kurt, ... +""" +import inspect + +import numpy as np +import pytest + +import pandas as pd +from pandas import ( + DataFrame, + Series, + date_range, +) +import pandas._testing as tm + + +class TestDatetimeLikeStatReductions: + @pytest.mark.parametrize("box", [Series, pd.Index, pd.array]) + def test_dt64_mean(self, tz_naive_fixture, box): + tz = tz_naive_fixture + + dti = date_range("2001-01-01", periods=11, tz=tz) + # shuffle so that we are not just working with monotone-increasing + dti = dti.take([4, 1, 3, 10, 9, 7, 8, 5, 0, 2, 6]) + dtarr = dti._data + + obj = box(dtarr) + assert obj.mean() == pd.Timestamp("2001-01-06", tz=tz) + assert obj.mean(skipna=False) == pd.Timestamp("2001-01-06", tz=tz) + + # dtarr[-2] will be the first date 2001-01-1 + dtarr[-2] = pd.NaT + + obj = box(dtarr) + assert obj.mean() == pd.Timestamp("2001-01-06 07:12:00", tz=tz) + assert obj.mean(skipna=False) is pd.NaT + + @pytest.mark.parametrize("box", [Series, pd.Index, pd.array]) + @pytest.mark.parametrize("freq", ["s", "h", "D", "W", "B"]) + def test_period_mean(self, box, freq): + # GH#24757 + dti = date_range("2001-01-01", periods=11) + # shuffle so that we are not just working with monotone-increasing + dti = dti.take([4, 1, 3, 10, 9, 7, 8, 5, 0, 2, 6]) + + warn = FutureWarning if freq == "B" else None + msg = r"PeriodDtype\[B\] is deprecated" + with tm.assert_produces_warning(warn, match=msg): + parr = dti._data.to_period(freq) + obj = box(parr) + with pytest.raises(TypeError, match="ambiguous"): + obj.mean() + with pytest.raises(TypeError, match="ambiguous"): + obj.mean(skipna=True) + + # parr[-2] will be the first date 2001-01-1 + parr[-2] = pd.NaT + + with pytest.raises(TypeError, match="ambiguous"): + obj.mean() + with pytest.raises(TypeError, match="ambiguous"): + obj.mean(skipna=True) + + @pytest.mark.parametrize("box", [Series, pd.Index, pd.array]) + def test_td64_mean(self, box): + m8values = np.array([0, 3, -2, -7, 1, 2, -1, 3, 5, -2, 4], "m8[D]") + tdi = pd.TimedeltaIndex(m8values).as_unit("ns") + + tdarr = tdi._data + obj = box(tdarr, copy=False) + + result = obj.mean() + expected = np.array(tdarr).mean() + assert result == expected + + tdarr[0] = pd.NaT + assert obj.mean(skipna=False) is pd.NaT + + result2 = obj.mean(skipna=True) + assert result2 == tdi[1:].mean() + + # exact equality fails by 1 nanosecond + assert result2.round("us") == (result * 11.0 / 10).round("us") + + +class TestSeriesStatReductions: + # Note: the name TestSeriesStatReductions indicates these tests + # were moved from a series-specific test file, _not_ that these tests are + # intended long-term to be series-specific + + def _check_stat_op( + self, name, alternate, string_series_, check_objects=False, check_allna=False + ): + with pd.option_context("use_bottleneck", False): + f = getattr(Series, name) + + # add some NaNs + string_series_[5:15] = np.nan + + # mean, idxmax, idxmin, min, and max are valid for dates + if name not in ["max", "min", "mean", "median", "std"]: + ds = Series(date_range("1/1/2001", periods=10)) + msg = f"does not support reduction '{name}'" + with pytest.raises(TypeError, match=msg): + f(ds) + + # skipna or no + assert pd.notna(f(string_series_)) + assert pd.isna(f(string_series_, skipna=False)) + + # check the result is correct + nona = string_series_.dropna() + tm.assert_almost_equal(f(nona), alternate(nona.values)) + tm.assert_almost_equal(f(string_series_), alternate(nona.values)) + + allna = string_series_ * np.nan + + if check_allna: + assert np.isnan(f(allna)) + + # dtype=object with None, it works! + s = Series([1, 2, 3, None, 5]) + f(s) + + # GH#2888 + items = [0] + items.extend(range(2**40, 2**40 + 1000)) + s = Series(items, dtype="int64") + tm.assert_almost_equal(float(f(s)), float(alternate(s.values))) + + # check date range + if check_objects: + s = Series(pd.bdate_range("1/1/2000", periods=10)) + res = f(s) + exp = alternate(s) + assert res == exp + + # check on string data + if name not in ["sum", "min", "max"]: + with pytest.raises(TypeError, match=None): + f(Series(list("abc"))) + + # Invalid axis. + msg = "No axis named 1 for object type Series" + with pytest.raises(ValueError, match=msg): + f(string_series_, axis=1) + + if "numeric_only" in inspect.getfullargspec(f).args: + # only the index is string; dtype is float + f(string_series_, numeric_only=True) + + def test_sum(self): + string_series = Series(range(20), dtype=np.float64, name="series") + self._check_stat_op("sum", np.sum, string_series, check_allna=False) + + def test_mean(self): + string_series = Series(range(20), dtype=np.float64, name="series") + self._check_stat_op("mean", np.mean, string_series) + + def test_median(self): + string_series = Series(range(20), dtype=np.float64, name="series") + self._check_stat_op("median", np.median, string_series) + + # test with integers, test failure + int_ts = Series(np.ones(10, dtype=int), index=range(10)) + tm.assert_almost_equal(np.median(int_ts), int_ts.median()) + + def test_prod(self): + string_series = Series(range(20), dtype=np.float64, name="series") + self._check_stat_op("prod", np.prod, string_series) + + def test_min(self): + string_series = Series(range(20), dtype=np.float64, name="series") + self._check_stat_op("min", np.min, string_series, check_objects=True) + + def test_max(self): + string_series = Series(range(20), dtype=np.float64, name="series") + self._check_stat_op("max", np.max, string_series, check_objects=True) + + def test_var_std(self): + string_series = Series(range(20), dtype=np.float64, name="series") + datetime_series = Series( + np.arange(10, dtype=np.float64), + index=date_range("2020-01-01", periods=10), + name="ts", + ) + + alt = lambda x: np.std(x, ddof=1) + self._check_stat_op("std", alt, string_series) + + alt = lambda x: np.var(x, ddof=1) + self._check_stat_op("var", alt, string_series) + + result = datetime_series.std(ddof=4) + expected = np.std(datetime_series.values, ddof=4) + tm.assert_almost_equal(result, expected) + + result = datetime_series.var(ddof=4) + expected = np.var(datetime_series.values, ddof=4) + tm.assert_almost_equal(result, expected) + + # 1 - element series with ddof=1 + s = datetime_series.iloc[[0]] + result = s.var(ddof=1) + assert pd.isna(result) + + result = s.std(ddof=1) + assert pd.isna(result) + + def test_sem(self): + string_series = Series(range(20), dtype=np.float64, name="series") + datetime_series = Series( + np.arange(10, dtype=np.float64), + index=date_range("2020-01-01", periods=10), + name="ts", + ) + + alt = lambda x: np.std(x, ddof=1) / np.sqrt(len(x)) + self._check_stat_op("sem", alt, string_series) + + result = datetime_series.sem(ddof=4) + expected = np.std(datetime_series.values, ddof=4) / np.sqrt( + len(datetime_series.values) + ) + tm.assert_almost_equal(result, expected) + + # 1 - element series with ddof=1 + s = datetime_series.iloc[[0]] + result = s.sem(ddof=1) + assert pd.isna(result) + + def test_skew(self): + sp_stats = pytest.importorskip("scipy.stats") + + string_series = Series(range(20), dtype=np.float64, name="series") + + alt = lambda x: sp_stats.skew(x, bias=False) + self._check_stat_op("skew", alt, string_series) + + # test corner cases, skew() returns NaN unless there's at least 3 + # values + min_N = 3 + for i in range(1, min_N + 1): + s = Series(np.ones(i)) + df = DataFrame(np.ones((i, i))) + if i < min_N: + assert np.isnan(s.skew()) + assert np.isnan(df.skew()).all() + else: + assert 0 == s.skew() + assert isinstance(s.skew(), np.float64) # GH53482 + assert (df.skew() == 0).all() + + def test_kurt(self): + sp_stats = pytest.importorskip("scipy.stats") + + string_series = Series(range(20), dtype=np.float64, name="series") + + alt = lambda x: sp_stats.kurtosis(x, bias=False) + self._check_stat_op("kurt", alt, string_series) + + def test_kurt_corner(self): + # test corner cases, kurt() returns NaN unless there's at least 4 + # values + min_N = 4 + for i in range(1, min_N + 1): + s = Series(np.ones(i)) + df = DataFrame(np.ones((i, i))) + if i < min_N: + assert np.isnan(s.kurt()) + assert np.isnan(df.kurt()).all() + else: + assert 0 == s.kurt() + assert isinstance(s.kurt(), np.float64) # GH53482 + assert (df.kurt() == 0).all() diff --git a/shared/package-files/43/43f3271c8292301bc8bc0e83a4c36472c412bfc694f438af527d66940ffdcc4b/concat.py b/shared/package-files/43/43f3271c8292301bc8bc0e83a4c36472c412bfc694f438af527d66940ffdcc4b/concat.py new file mode 100644 index 0000000000000000000000000000000000000000..b2d463a8c6c26f62ded5a06283f29275612c9b40 --- /dev/null +++ b/shared/package-files/43/43f3271c8292301bc8bc0e83a4c36472c412bfc694f438af527d66940ffdcc4b/concat.py @@ -0,0 +1,598 @@ +from __future__ import annotations + +from typing import ( + TYPE_CHECKING, + cast, +) +import warnings + +import numpy as np + +from pandas._libs import ( + NaT, + algos as libalgos, + internals as libinternals, + lib, +) +from pandas._libs.missing import NA +from pandas.util._decorators import cache_readonly +from pandas.util._exceptions import find_stack_level + +from pandas.core.dtypes.cast import ( + ensure_dtype_can_hold_na, + find_common_type, +) +from pandas.core.dtypes.common import ( + is_1d_only_ea_dtype, + is_scalar, + needs_i8_conversion, +) +from pandas.core.dtypes.concat import concat_compat +from pandas.core.dtypes.dtypes import ( + ExtensionDtype, + SparseDtype, +) +from pandas.core.dtypes.missing import ( + is_valid_na_for_dtype, + isna, + isna_all, +) + +from pandas.core.construction import ensure_wrapped_if_datetimelike +from pandas.core.internals.array_manager import ArrayManager +from pandas.core.internals.blocks import ( + ensure_block_shape, + new_block_2d, +) +from pandas.core.internals.managers import ( + BlockManager, + make_na_array, +) + +if TYPE_CHECKING: + from collections.abc import Sequence + + from pandas._typing import ( + ArrayLike, + AxisInt, + DtypeObj, + Manager2D, + Shape, + ) + + from pandas import Index + from pandas.core.internals.blocks import ( + Block, + BlockPlacement, + ) + + +def _concatenate_array_managers( + mgrs: list[ArrayManager], axes: list[Index], concat_axis: AxisInt +) -> Manager2D: + """ + Concatenate array managers into one. + + Parameters + ---------- + mgrs_indexers : list of (ArrayManager, {axis: indexer,...}) tuples + axes : list of Index + concat_axis : int + + Returns + ------- + ArrayManager + """ + if concat_axis == 1: + return mgrs[0].concat_vertical(mgrs, axes) + else: + # concatting along the columns -> combine reindexed arrays in a single manager + assert concat_axis == 0 + return mgrs[0].concat_horizontal(mgrs, axes) + + +def concatenate_managers( + mgrs_indexers, axes: list[Index], concat_axis: AxisInt, copy: bool +) -> Manager2D: + """ + Concatenate block managers into one. + + Parameters + ---------- + mgrs_indexers : list of (BlockManager, {axis: indexer,...}) tuples + axes : list of Index + concat_axis : int + copy : bool + + Returns + ------- + BlockManager + """ + + needs_copy = copy and concat_axis == 0 + + # TODO(ArrayManager) this assumes that all managers are of the same type + if isinstance(mgrs_indexers[0][0], ArrayManager): + mgrs = _maybe_reindex_columns_na_proxy(axes, mgrs_indexers, needs_copy) + # error: Argument 1 to "_concatenate_array_managers" has incompatible + # type "List[BlockManager]"; expected "List[Union[ArrayManager, + # SingleArrayManager, BlockManager, SingleBlockManager]]" + return _concatenate_array_managers( + mgrs, axes, concat_axis # type: ignore[arg-type] + ) + + # Assertions disabled for performance + # for tup in mgrs_indexers: + # # caller is responsible for ensuring this + # indexers = tup[1] + # assert concat_axis not in indexers + + if concat_axis == 0: + mgrs = _maybe_reindex_columns_na_proxy(axes, mgrs_indexers, needs_copy) + return mgrs[0].concat_horizontal(mgrs, axes) + + if len(mgrs_indexers) > 0 and mgrs_indexers[0][0].nblocks > 0: + first_dtype = mgrs_indexers[0][0].blocks[0].dtype + if first_dtype in [np.float64, np.float32]: + # TODO: support more dtypes here. This will be simpler once + # JoinUnit.is_na behavior is deprecated. + if ( + all(_is_homogeneous_mgr(mgr, first_dtype) for mgr, _ in mgrs_indexers) + and len(mgrs_indexers) > 1 + ): + # Fastpath! + # Length restriction is just to avoid having to worry about 'copy' + shape = tuple(len(x) for x in axes) + nb = _concat_homogeneous_fastpath(mgrs_indexers, shape, first_dtype) + return BlockManager((nb,), axes) + + mgrs = _maybe_reindex_columns_na_proxy(axes, mgrs_indexers, needs_copy) + + if len(mgrs) == 1: + mgr = mgrs[0] + out = mgr.copy(deep=False) + out.axes = axes + return out + + concat_plan = _get_combined_plan(mgrs) + + blocks = [] + values: ArrayLike + + for placement, join_units in concat_plan: + unit = join_units[0] + blk = unit.block + + if _is_uniform_join_units(join_units): + vals = [ju.block.values for ju in join_units] + + if not blk.is_extension: + # _is_uniform_join_units ensures a single dtype, so + # we can use np.concatenate, which is more performant + # than concat_compat + # error: Argument 1 to "concatenate" has incompatible type + # "List[Union[ndarray[Any, Any], ExtensionArray]]"; + # expected "Union[_SupportsArray[dtype[Any]], + # _NestedSequence[_SupportsArray[dtype[Any]]]]" + values = np.concatenate(vals, axis=1) # type: ignore[arg-type] + elif is_1d_only_ea_dtype(blk.dtype): + # TODO(EA2D): special-casing not needed with 2D EAs + values = concat_compat(vals, axis=0, ea_compat_axis=True) + values = ensure_block_shape(values, ndim=2) + else: + values = concat_compat(vals, axis=1) + + values = ensure_wrapped_if_datetimelike(values) + + fastpath = blk.values.dtype == values.dtype + else: + values = _concatenate_join_units(join_units, copy=copy) + fastpath = False + + if fastpath: + b = blk.make_block_same_class(values, placement=placement) + else: + b = new_block_2d(values, placement=placement) + + blocks.append(b) + + return BlockManager(tuple(blocks), axes) + + +def _maybe_reindex_columns_na_proxy( + axes: list[Index], + mgrs_indexers: list[tuple[BlockManager, dict[int, np.ndarray]]], + needs_copy: bool, +) -> list[BlockManager]: + """ + Reindex along columns so that all of the BlockManagers being concatenated + have matching columns. + + Columns added in this reindexing have dtype=np.void, indicating they + should be ignored when choosing a column's final dtype. + """ + new_mgrs = [] + + for mgr, indexers in mgrs_indexers: + # For axis=0 (i.e. columns) we use_na_proxy and only_slice, so this + # is a cheap reindexing. + for i, indexer in indexers.items(): + mgr = mgr.reindex_indexer( + axes[i], + indexers[i], + axis=i, + copy=False, + only_slice=True, # only relevant for i==0 + allow_dups=True, + use_na_proxy=True, # only relevant for i==0 + ) + if needs_copy and not indexers: + mgr = mgr.copy() + + new_mgrs.append(mgr) + return new_mgrs + + +def _is_homogeneous_mgr(mgr: BlockManager, first_dtype: DtypeObj) -> bool: + """ + Check if this Manager can be treated as a single ndarray. + """ + if mgr.nblocks != 1: + return False + blk = mgr.blocks[0] + if not (blk.mgr_locs.is_slice_like and blk.mgr_locs.as_slice.step == 1): + return False + + return blk.dtype == first_dtype + + +def _concat_homogeneous_fastpath( + mgrs_indexers, shape: Shape, first_dtype: np.dtype +) -> Block: + """ + With single-Block managers with homogeneous dtypes (that can already hold nan), + we avoid [...] + """ + # assumes + # all(_is_homogeneous_mgr(mgr, first_dtype) for mgr, _ in in mgrs_indexers) + + if all(not indexers for _, indexers in mgrs_indexers): + # https://github.com/pandas-dev/pandas/pull/52685#issuecomment-1523287739 + arrs = [mgr.blocks[0].values.T for mgr, _ in mgrs_indexers] + arr = np.concatenate(arrs).T + bp = libinternals.BlockPlacement(slice(shape[0])) + nb = new_block_2d(arr, bp) + return nb + + arr = np.empty(shape, dtype=first_dtype) + + if first_dtype == np.float64: + take_func = libalgos.take_2d_axis0_float64_float64 + else: + take_func = libalgos.take_2d_axis0_float32_float32 + + start = 0 + for mgr, indexers in mgrs_indexers: + mgr_len = mgr.shape[1] + end = start + mgr_len + + if 0 in indexers: + take_func( + mgr.blocks[0].values, + indexers[0], + arr[:, start:end], + ) + else: + # No reindexing necessary, we can copy values directly + arr[:, start:end] = mgr.blocks[0].values + + start += mgr_len + + bp = libinternals.BlockPlacement(slice(shape[0])) + nb = new_block_2d(arr, bp) + return nb + + +def _get_combined_plan( + mgrs: list[BlockManager], +) -> list[tuple[BlockPlacement, list[JoinUnit]]]: + plan = [] + + max_len = mgrs[0].shape[0] + + blknos_list = [mgr.blknos for mgr in mgrs] + pairs = libinternals.get_concat_blkno_indexers(blknos_list) + for ind, (blknos, bp) in enumerate(pairs): + # assert bp.is_slice_like + # assert len(bp) > 0 + + units_for_bp = [] + for k, mgr in enumerate(mgrs): + blkno = blknos[k] + + nb = _get_block_for_concat_plan(mgr, bp, blkno, max_len=max_len) + unit = JoinUnit(nb) + units_for_bp.append(unit) + + plan.append((bp, units_for_bp)) + + return plan + + +def _get_block_for_concat_plan( + mgr: BlockManager, bp: BlockPlacement, blkno: int, *, max_len: int +) -> Block: + blk = mgr.blocks[blkno] + # Assertions disabled for performance: + # assert bp.is_slice_like + # assert blkno != -1 + # assert (mgr.blknos[bp] == blkno).all() + + if len(bp) == len(blk.mgr_locs) and ( + blk.mgr_locs.is_slice_like and blk.mgr_locs.as_slice.step == 1 + ): + nb = blk + else: + ax0_blk_indexer = mgr.blklocs[bp.indexer] + + slc = lib.maybe_indices_to_slice(ax0_blk_indexer, max_len) + # TODO: in all extant test cases 2023-04-08 we have a slice here. + # Will this always be the case? + if isinstance(slc, slice): + nb = blk.slice_block_columns(slc) + else: + nb = blk.take_block_columns(slc) + + # assert nb.shape == (len(bp), mgr.shape[1]) + return nb + + +class JoinUnit: + def __init__(self, block: Block) -> None: + self.block = block + + def __repr__(self) -> str: + return f"{type(self).__name__}({repr(self.block)})" + + def _is_valid_na_for(self, dtype: DtypeObj) -> bool: + """ + Check that we are all-NA of a type/dtype that is compatible with this dtype. + Augments `self.is_na` with an additional check of the type of NA values. + """ + if not self.is_na: + return False + + blk = self.block + if blk.dtype.kind == "V": + return True + + if blk.dtype == object: + values = blk.values + return all(is_valid_na_for_dtype(x, dtype) for x in values.ravel(order="K")) + + na_value = blk.fill_value + if na_value is NaT and blk.dtype != dtype: + # e.g. we are dt64 and other is td64 + # fill_values match but we should not cast blk.values to dtype + # TODO: this will need updating if we ever have non-nano dt64/td64 + return False + + if na_value is NA and needs_i8_conversion(dtype): + # FIXME: kludge; test_append_empty_frame_with_timedelta64ns_nat + # e.g. blk.dtype == "Int64" and dtype is td64, we dont want + # to consider these as matching + return False + + # TODO: better to use can_hold_element? + return is_valid_na_for_dtype(na_value, dtype) + + @cache_readonly + def is_na(self) -> bool: + blk = self.block + if blk.dtype.kind == "V": + return True + + if not blk._can_hold_na: + return False + + values = blk.values + if values.size == 0: + # GH#39122 this case will return False once deprecation is enforced + return True + + if isinstance(values.dtype, SparseDtype): + return False + + if values.ndim == 1: + # TODO(EA2D): no need for special case with 2D EAs + val = values[0] + if not is_scalar(val) or not isna(val): + # ideally isna_all would do this short-circuiting + return False + return isna_all(values) + else: + val = values[0][0] + if not is_scalar(val) or not isna(val): + # ideally isna_all would do this short-circuiting + return False + return all(isna_all(row) for row in values) + + @cache_readonly + def is_na_after_size_and_isna_all_deprecation(self) -> bool: + """ + Will self.is_na be True after values.size == 0 deprecation and isna_all + deprecation are enforced? + """ + blk = self.block + if blk.dtype.kind == "V": + return True + return False + + def get_reindexed_values(self, empty_dtype: DtypeObj, upcasted_na) -> ArrayLike: + values: ArrayLike + + if upcasted_na is None and self.block.dtype.kind != "V": + # No upcasting is necessary + return self.block.values + else: + fill_value = upcasted_na + + if self._is_valid_na_for(empty_dtype): + # note: always holds when self.block.dtype.kind == "V" + blk_dtype = self.block.dtype + + if blk_dtype == np.dtype("object"): + # we want to avoid filling with np.nan if we are + # using None; we already know that we are all + # nulls + values = cast(np.ndarray, self.block.values) + if values.size and values[0, 0] is None: + fill_value = None + + return make_na_array(empty_dtype, self.block.shape, fill_value) + + return self.block.values + + +def _concatenate_join_units(join_units: list[JoinUnit], copy: bool) -> ArrayLike: + """ + Concatenate values from several join units along axis=1. + """ + empty_dtype, empty_dtype_future = _get_empty_dtype(join_units) + + has_none_blocks = any(unit.block.dtype.kind == "V" for unit in join_units) + upcasted_na = _dtype_to_na_value(empty_dtype, has_none_blocks) + + to_concat = [ + ju.get_reindexed_values(empty_dtype=empty_dtype, upcasted_na=upcasted_na) + for ju in join_units + ] + + if any(is_1d_only_ea_dtype(t.dtype) for t in to_concat): + # TODO(EA2D): special case not needed if all EAs used HybridBlocks + + # error: No overload variant of "__getitem__" of "ExtensionArray" matches + # argument type "Tuple[int, slice]" + to_concat = [ + t + if is_1d_only_ea_dtype(t.dtype) + else t[0, :] # type: ignore[call-overload] + for t in to_concat + ] + concat_values = concat_compat(to_concat, axis=0, ea_compat_axis=True) + concat_values = ensure_block_shape(concat_values, 2) + + else: + concat_values = concat_compat(to_concat, axis=1) + + if empty_dtype != empty_dtype_future: + if empty_dtype == concat_values.dtype: + # GH#39122, GH#40893 + warnings.warn( + "The behavior of DataFrame concatenation with empty or all-NA " + "entries is deprecated. In a future version, this will no longer " + "exclude empty or all-NA columns when determining the result dtypes. " + "To retain the old behavior, exclude the relevant entries before " + "the concat operation.", + FutureWarning, + stacklevel=find_stack_level(), + ) + return concat_values + + +def _dtype_to_na_value(dtype: DtypeObj, has_none_blocks: bool): + """ + Find the NA value to go with this dtype. + """ + if isinstance(dtype, ExtensionDtype): + return dtype.na_value + elif dtype.kind in "mM": + return dtype.type("NaT") + elif dtype.kind in "fc": + return dtype.type("NaN") + elif dtype.kind == "b": + # different from missing.na_value_for_dtype + return None + elif dtype.kind in "iu": + if not has_none_blocks: + # different from missing.na_value_for_dtype + return None + return np.nan + elif dtype.kind == "O": + return np.nan + raise NotImplementedError + + +def _get_empty_dtype(join_units: Sequence[JoinUnit]) -> tuple[DtypeObj, DtypeObj]: + """ + Return dtype and N/A values to use when concatenating specified units. + + Returned N/A value may be None which means there was no casting involved. + + Returns + ------- + dtype + """ + if lib.dtypes_all_equal([ju.block.dtype for ju in join_units]): + empty_dtype = join_units[0].block.dtype + return empty_dtype, empty_dtype + + has_none_blocks = any(unit.block.dtype.kind == "V" for unit in join_units) + + dtypes = [unit.block.dtype for unit in join_units if not unit.is_na] + if not len(dtypes): + dtypes = [ + unit.block.dtype for unit in join_units if unit.block.dtype.kind != "V" + ] + + dtype = find_common_type(dtypes) + if has_none_blocks: + dtype = ensure_dtype_can_hold_na(dtype) + + dtype_future = dtype + if len(dtypes) != len(join_units): + dtypes_future = [ + unit.block.dtype + for unit in join_units + if not unit.is_na_after_size_and_isna_all_deprecation + ] + if not len(dtypes_future): + dtypes_future = [ + unit.block.dtype for unit in join_units if unit.block.dtype.kind != "V" + ] + + if len(dtypes) != len(dtypes_future): + dtype_future = find_common_type(dtypes_future) + if has_none_blocks: + dtype_future = ensure_dtype_can_hold_na(dtype_future) + + return dtype, dtype_future + + +def _is_uniform_join_units(join_units: list[JoinUnit]) -> bool: + """ + Check if the join units consist of blocks of uniform type that can + be concatenated using Block.concat_same_type instead of the generic + _concatenate_join_units (which uses `concat_compat`). + + """ + first = join_units[0].block + if first.dtype.kind == "V": + return False + return ( + # exclude cases where a) ju.block is None or b) we have e.g. Int64+int64 + all(type(ju.block) is type(first) for ju in join_units) + and + # e.g. DatetimeLikeBlock can be dt64 or td64, but these are not uniform + all( + ju.block.dtype == first.dtype + # GH#42092 we only want the dtype_equal check for non-numeric blocks + # (for now, may change but that would need a deprecation) + or ju.block.dtype.kind in "iub" + for ju in join_units + ) + and + # no blocks that would get missing values (can lead to type upcasts) + # unless we're an extension dtype. + all(not ju.is_na or ju.block.is_extension for ju in join_units) + ) diff --git a/shared/package-files/43/43f42e8df0740be08859b713964b66074d9183109fef142c3a0124395ebb54fa/concat.py b/shared/package-files/43/43f42e8df0740be08859b713964b66074d9183109fef142c3a0124395ebb54fa/concat.py new file mode 100644 index 0000000000000000000000000000000000000000..9ec662a6cd3520aaa49fdc96142ad1b02bb518d8 --- /dev/null +++ b/shared/package-files/43/43f42e8df0740be08859b713964b66074d9183109fef142c3a0124395ebb54fa/concat.py @@ -0,0 +1,348 @@ +""" +Utility functions related to concat. +""" +from __future__ import annotations + +from typing import ( + TYPE_CHECKING, + cast, +) +import warnings + +import numpy as np + +from pandas._libs import lib +from pandas.util._exceptions import find_stack_level + +from pandas.core.dtypes.astype import astype_array +from pandas.core.dtypes.cast import ( + common_dtype_categorical_compat, + find_common_type, + np_find_common_type, +) +from pandas.core.dtypes.dtypes import CategoricalDtype +from pandas.core.dtypes.generic import ( + ABCCategoricalIndex, + ABCSeries, +) + +if TYPE_CHECKING: + from collections.abc import Sequence + + from pandas._typing import ( + ArrayLike, + AxisInt, + DtypeObj, + ) + + from pandas.core.arrays import ( + Categorical, + ExtensionArray, + ) + + +def _is_nonempty(x, axis) -> bool: + # filter empty arrays + # 1-d dtypes always are included here + if x.ndim <= axis: + return True + return x.shape[axis] > 0 + + +def concat_compat( + to_concat: Sequence[ArrayLike], axis: AxisInt = 0, ea_compat_axis: bool = False +) -> ArrayLike: + """ + provide concatenation of an array of arrays each of which is a single + 'normalized' dtypes (in that for example, if it's object, then it is a + non-datetimelike and provide a combined dtype for the resulting array that + preserves the overall dtype if possible) + + Parameters + ---------- + to_concat : sequence of arrays + axis : axis to provide concatenation + ea_compat_axis : bool, default False + For ExtensionArray compat, behave as if axis == 1 when determining + whether to drop empty arrays. + + Returns + ------- + a single array, preserving the combined dtypes + """ + if len(to_concat) and lib.dtypes_all_equal([obj.dtype for obj in to_concat]): + # fastpath! + obj = to_concat[0] + if isinstance(obj, np.ndarray): + to_concat_arrs = cast("Sequence[np.ndarray]", to_concat) + return np.concatenate(to_concat_arrs, axis=axis) + + to_concat_eas = cast("Sequence[ExtensionArray]", to_concat) + if ea_compat_axis: + # We have 1D objects, that don't support axis keyword + return obj._concat_same_type(to_concat_eas) + elif axis == 0: + return obj._concat_same_type(to_concat_eas) + else: + # e.g. DatetimeArray + # NB: We are assuming here that ensure_wrapped_if_arraylike has + # been called where relevant. + return obj._concat_same_type( + # error: Unexpected keyword argument "axis" for "_concat_same_type" + # of "ExtensionArray" + to_concat_eas, + axis=axis, # type: ignore[call-arg] + ) + + # If all arrays are empty, there's nothing to convert, just short-cut to + # the concatenation, #3121. + # + # Creating an empty array directly is tempting, but the winnings would be + # marginal given that it would still require shape & dtype calculation and + # np.concatenate which has them both implemented is compiled. + orig = to_concat + non_empties = [x for x in to_concat if _is_nonempty(x, axis)] + if non_empties and axis == 0 and not ea_compat_axis: + # ea_compat_axis see GH#39574 + to_concat = non_empties + + any_ea, kinds, target_dtype = _get_result_dtype(to_concat, non_empties) + + if len(to_concat) < len(orig): + _, _, alt_dtype = _get_result_dtype(orig, non_empties) + if alt_dtype != target_dtype: + # GH#39122 + warnings.warn( + "The behavior of array concatenation with empty entries is " + "deprecated. In a future version, this will no longer exclude " + "empty items when determining the result dtype. " + "To retain the old behavior, exclude the empty entries before " + "the concat operation.", + FutureWarning, + stacklevel=find_stack_level(), + ) + + if target_dtype is not None: + to_concat = [astype_array(arr, target_dtype, copy=False) for arr in to_concat] + + if not isinstance(to_concat[0], np.ndarray): + # i.e. isinstance(to_concat[0], ExtensionArray) + to_concat_eas = cast("Sequence[ExtensionArray]", to_concat) + cls = type(to_concat[0]) + # GH#53640: eg. for datetime array, axis=1 but 0 is default + # However, class method `_concat_same_type()` for some classes + # may not support the `axis` keyword + if ea_compat_axis or axis == 0: + return cls._concat_same_type(to_concat_eas) + else: + return cls._concat_same_type( + to_concat_eas, + axis=axis, # type: ignore[call-arg] + ) + else: + to_concat_arrs = cast("Sequence[np.ndarray]", to_concat) + result = np.concatenate(to_concat_arrs, axis=axis) + + if not any_ea and "b" in kinds and result.dtype.kind in "iuf": + # GH#39817 cast to object instead of casting bools to numeric + result = result.astype(object, copy=False) + return result + + +def _get_result_dtype( + to_concat: Sequence[ArrayLike], non_empties: Sequence[ArrayLike] +) -> tuple[bool, set[str], DtypeObj | None]: + target_dtype = None + + dtypes = {obj.dtype for obj in to_concat} + kinds = {obj.dtype.kind for obj in to_concat} + + any_ea = any(not isinstance(x, np.ndarray) for x in to_concat) + if any_ea: + # i.e. any ExtensionArrays + + # we ignore axis here, as internally concatting with EAs is always + # for axis=0 + if len(dtypes) != 1: + target_dtype = find_common_type([x.dtype for x in to_concat]) + target_dtype = common_dtype_categorical_compat(to_concat, target_dtype) + + elif not len(non_empties): + # we have all empties, but may need to coerce the result dtype to + # object if we have non-numeric type operands (numpy would otherwise + # cast this to float) + if len(kinds) != 1: + if not len(kinds - {"i", "u", "f"}) or not len(kinds - {"b", "i", "u"}): + # let numpy coerce + pass + else: + # coerce to object + target_dtype = np.dtype(object) + kinds = {"o"} + else: + # error: Argument 1 to "np_find_common_type" has incompatible type + # "*Set[Union[ExtensionDtype, Any]]"; expected "dtype[Any]" + target_dtype = np_find_common_type(*dtypes) # type: ignore[arg-type] + + return any_ea, kinds, target_dtype + + +def union_categoricals( + to_union, sort_categories: bool = False, ignore_order: bool = False +) -> Categorical: + """ + Combine list-like of Categorical-like, unioning categories. + + All categories must have the same dtype. + + Parameters + ---------- + to_union : list-like + Categorical, CategoricalIndex, or Series with dtype='category'. + sort_categories : bool, default False + If true, resulting categories will be lexsorted, otherwise + they will be ordered as they appear in the data. + ignore_order : bool, default False + If true, the ordered attribute of the Categoricals will be ignored. + Results in an unordered categorical. + + Returns + ------- + Categorical + + Raises + ------ + TypeError + - all inputs do not have the same dtype + - all inputs do not have the same ordered property + - all inputs are ordered and their categories are not identical + - sort_categories=True and Categoricals are ordered + ValueError + Empty list of categoricals passed + + Notes + ----- + To learn more about categories, see `link + `__ + + Examples + -------- + If you want to combine categoricals that do not necessarily have + the same categories, `union_categoricals` will combine a list-like + of categoricals. The new categories will be the union of the + categories being combined. + + >>> a = pd.Categorical(["b", "c"]) + >>> b = pd.Categorical(["a", "b"]) + >>> pd.api.types.union_categoricals([a, b]) + ['b', 'c', 'a', 'b'] + Categories (3, object): ['b', 'c', 'a'] + + By default, the resulting categories will be ordered as they appear + in the `categories` of the data. If you want the categories to be + lexsorted, use `sort_categories=True` argument. + + >>> pd.api.types.union_categoricals([a, b], sort_categories=True) + ['b', 'c', 'a', 'b'] + Categories (3, object): ['a', 'b', 'c'] + + `union_categoricals` also works with the case of combining two + categoricals of the same categories and order information (e.g. what + you could also `append` for). + + >>> a = pd.Categorical(["a", "b"], ordered=True) + >>> b = pd.Categorical(["a", "b", "a"], ordered=True) + >>> pd.api.types.union_categoricals([a, b]) + ['a', 'b', 'a', 'b', 'a'] + Categories (2, object): ['a' < 'b'] + + Raises `TypeError` because the categories are ordered and not identical. + + >>> a = pd.Categorical(["a", "b"], ordered=True) + >>> b = pd.Categorical(["a", "b", "c"], ordered=True) + >>> pd.api.types.union_categoricals([a, b]) + Traceback (most recent call last): + ... + TypeError: to union ordered Categoricals, all categories must be the same + + Ordered categoricals with different categories or orderings can be + combined by using the `ignore_ordered=True` argument. + + >>> a = pd.Categorical(["a", "b", "c"], ordered=True) + >>> b = pd.Categorical(["c", "b", "a"], ordered=True) + >>> pd.api.types.union_categoricals([a, b], ignore_order=True) + ['a', 'b', 'c', 'c', 'b', 'a'] + Categories (3, object): ['a', 'b', 'c'] + + `union_categoricals` also works with a `CategoricalIndex`, or `Series` + containing categorical data, but note that the resulting array will + always be a plain `Categorical` + + >>> a = pd.Series(["b", "c"], dtype='category') + >>> b = pd.Series(["a", "b"], dtype='category') + >>> pd.api.types.union_categoricals([a, b]) + ['b', 'c', 'a', 'b'] + Categories (3, object): ['b', 'c', 'a'] + """ + from pandas import Categorical + from pandas.core.arrays.categorical import recode_for_categories + + if len(to_union) == 0: + raise ValueError("No Categoricals to union") + + def _maybe_unwrap(x): + if isinstance(x, (ABCCategoricalIndex, ABCSeries)): + return x._values + elif isinstance(x, Categorical): + return x + else: + raise TypeError("all components to combine must be Categorical") + + to_union = [_maybe_unwrap(x) for x in to_union] + first = to_union[0] + + if not lib.dtypes_all_equal([obj.categories.dtype for obj in to_union]): + raise TypeError("dtype of categories must be the same") + + ordered = False + if all(first._categories_match_up_to_permutation(other) for other in to_union[1:]): + # identical categories - fastpath + categories = first.categories + ordered = first.ordered + + all_codes = [first._encode_with_my_categories(x)._codes for x in to_union] + new_codes = np.concatenate(all_codes) + + if sort_categories and not ignore_order and ordered: + raise TypeError("Cannot use sort_categories=True with ordered Categoricals") + + if sort_categories and not categories.is_monotonic_increasing: + categories = categories.sort_values() + indexer = categories.get_indexer(first.categories) + + from pandas.core.algorithms import take_nd + + new_codes = take_nd(indexer, new_codes, fill_value=-1) + elif ignore_order or all(not c.ordered for c in to_union): + # different categories - union and recode + cats = first.categories.append([c.categories for c in to_union[1:]]) + categories = cats.unique() + if sort_categories: + categories = categories.sort_values() + + new_codes = [ + recode_for_categories(c.codes, c.categories, categories) for c in to_union + ] + new_codes = np.concatenate(new_codes) + else: + # ordered - to show a proper error message + if all(c.ordered for c in to_union): + msg = "to union ordered Categoricals, all categories must be the same" + raise TypeError(msg) + raise TypeError("Categorical.ordered must be the same") + + if ignore_order: + ordered = False + + dtype = CategoricalDtype(categories=categories, ordered=ordered) + return Categorical._simple_new(new_codes, dtype=dtype) diff --git a/shared/package-files/43/43f44351530075474c762b19600d950a2f36a40c4dfdd8263527dcc13351e9d8/importstring.py b/shared/package-files/43/43f44351530075474c762b19600d950a2f36a40c4dfdd8263527dcc13351e9d8/importstring.py new file mode 100644 index 0000000000000000000000000000000000000000..7ac1e9aba7ed53b3239b5071e1e5474b13bb8d30 --- /dev/null +++ b/shared/package-files/43/43f44351530075474c762b19600d950a2f36a40c4dfdd8263527dcc13351e9d8/importstring.py @@ -0,0 +1,38 @@ +""" +A simple utility to import something by its string name. +""" +# Copyright (c) IPython Development Team. +# Distributed under the terms of the Modified BSD License. + + +def import_item(name): + """Import and return ``bar`` given the string ``foo.bar``. + + Calling ``bar = import_item("foo.bar")`` is the functional equivalent of + executing the code ``from foo import bar``. + + Parameters + ---------- + name : string + The fully qualified name of the module/package being imported. + + Returns + ------- + mod : module object + The module that was imported. + """ + if not isinstance(name, str): + raise TypeError("import_item accepts strings, not '%s'." % type(name)) + parts = name.rsplit(".", 1) + if len(parts) == 2: + # called with 'foo.bar....' + package, obj = parts + module = __import__(package, fromlist=[obj]) + try: + pak = getattr(module, obj) + except AttributeError as e: + raise ImportError("No module named %s" % obj) from e + return pak + else: + # called with un-dotted string + return __import__(parts[0]) diff --git a/shared/package-files/43/43f46031a78a16fc0ea157567ddc272f40a6a50962fed9a2e303d0d91447c910/utils.py b/shared/package-files/43/43f46031a78a16fc0ea157567ddc272f40a6a50962fed9a2e303d0d91447c910/utils.py new file mode 100644 index 0000000000000000000000000000000000000000..0cde6b1927d2b35e34d4ab0e99124fde146e724d --- /dev/null +++ b/shared/package-files/43/43f46031a78a16fc0ea157567ddc272f40a6a50962fed9a2e303d0d91447c910/utils.py @@ -0,0 +1,317 @@ +import os +from functools import lru_cache +from typing import BinaryIO, Dict, Optional, Tuple, Type, Union + +import torch + +from torchaudio._extension import lazy_import_sox_ext +from torchaudio.io import CodecConfig +from torio._extension import lazy_import_ffmpeg_ext + +from . import soundfile_backend + +from .backend import Backend +from .common import AudioMetaData +from .ffmpeg import FFmpegBackend +from .soundfile import SoundfileBackend +from .sox import SoXBackend + + +@lru_cache(None) +def get_available_backends() -> Dict[str, Type[Backend]]: + backend_specs: Dict[str, Type[Backend]] = {} + if lazy_import_ffmpeg_ext().is_available(): + backend_specs["ffmpeg"] = FFmpegBackend + if lazy_import_sox_ext().is_available(): + backend_specs["sox"] = SoXBackend + if soundfile_backend._IS_SOUNDFILE_AVAILABLE: + backend_specs["soundfile"] = SoundfileBackend + return backend_specs + + +def get_backend(backend_name, backends) -> Backend: + if backend := backends.get(backend_name): + return backend + else: + raise ValueError( + f"Unsupported backend '{backend_name}' specified; ", + f"please select one of {list(backends.keys())} instead.", + ) + + +def get_info_func(): + backends = get_available_backends() + + def dispatcher( + uri: Union[BinaryIO, str, os.PathLike], format: Optional[str], backend_name: Optional[str] + ) -> Backend: + if backend_name is not None: + return get_backend(backend_name, backends) + + for backend in backends.values(): + if backend.can_decode(uri, format): + return backend + raise RuntimeError(f"Couldn't find appropriate backend to handle uri {uri} and format {format}.") + + def info( + uri: Union[BinaryIO, str, os.PathLike], + format: Optional[str] = None, + buffer_size: int = 4096, + backend: Optional[str] = None, + ) -> AudioMetaData: + """Get signal information of an audio file. + + Note: + When the input type is file-like object, this function cannot + get the correct length (``num_samples``) for certain formats, + such as ``vorbis``. + In this case, the value of ``num_samples`` is ``0``. + + Args: + uri (path-like object or file-like object): + Source of audio data. The following types are accepted: + + * ``path-like``: File path or URL. + * ``file-like``: Object with ``read(size: int) -> bytes`` method, + which returns byte string of at most ``size`` length. + + format (str or None, optional): + If not ``None``, interpreted as hint that may allow backend to override the detected format. + (Default: ``None``) + + buffer_size (int, optional): + Size of buffer to use when processing file-like objects, in bytes. (Default: ``4096``) + + backend (str or None, optional): + I/O backend to use. + If ``None``, function selects backend given input and available backends. + Otherwise, must be one of [``"ffmpeg"``, ``"sox"``, ``"soundfile"``], + with the corresponding backend available. + (Default: ``None``) + + .. seealso:: + :ref:`backend` + + Returns: + AudioMetaData + """ + backend = dispatcher(uri, format, backend) + return backend.info(uri, format, buffer_size) + + return info + + +def get_load_func(): + backends = get_available_backends() + + def dispatcher( + uri: Union[BinaryIO, str, os.PathLike], format: Optional[str], backend_name: Optional[str] + ) -> Backend: + if backend_name is not None: + return get_backend(backend_name, backends) + + for backend in backends.values(): + if backend.can_decode(uri, format): + return backend + raise RuntimeError(f"Couldn't find appropriate backend to handle uri {uri} and format {format}.") + + def load( + uri: Union[BinaryIO, str, os.PathLike], + frame_offset: int = 0, + num_frames: int = -1, + normalize: bool = True, + channels_first: bool = True, + format: Optional[str] = None, + buffer_size: int = 4096, + backend: Optional[str] = None, + ) -> Tuple[torch.Tensor, int]: + """Load audio data from source. + + By default (``normalize=True``, ``channels_first=True``), this function returns Tensor with + ``float32`` dtype, and the shape of `[channel, time]`. + + Note: + The formats this function can handle depend on the availability of backends. + Please use the following functions to fetch the supported formats. + + - FFmpeg: :py:func:`torchaudio.utils.ffmpeg_utils.get_audio_decoders` + - Sox: :py:func:`torchaudio.utils.sox_utils.list_read_formats` + - SoundFile: Refer to `the official document `__. + + .. warning:: + + ``normalize`` argument does not perform volume normalization. + It only converts the sample type to `torch.float32` from the native sample + type. + + When the input format is WAV with integer type, such as 32-bit signed integer, 16-bit + signed integer, 24-bit signed integer, and 8-bit unsigned integer, by providing ``normalize=False``, + this function can return integer Tensor, where the samples are expressed within the whole range + of the corresponding dtype, that is, ``int32`` tensor for 32-bit signed PCM, + ``int16`` for 16-bit signed PCM and ``uint8`` for 8-bit unsigned PCM. Since torch does not + support ``int24`` dtype, 24-bit signed PCM are converted to ``int32`` tensors. + + ``normalize`` argument has no effect on 32-bit floating-point WAV and other formats, such as + ``flac`` and ``mp3``. + + For these formats, this function always returns ``float32`` Tensor with values. + + + Args: + uri (path-like object or file-like object): + Source of audio data. + frame_offset (int, optional): + Number of frames to skip before start reading data. + num_frames (int, optional): + Maximum number of frames to read. ``-1`` reads all the remaining samples, + starting from ``frame_offset``. + This function may return the less number of frames if there is not enough + frames in the given file. + normalize (bool, optional): + When ``True``, this function converts the native sample type to ``float32``. + Default: ``True``. + + If input file is integer WAV, giving ``False`` will change the resulting Tensor type to + integer type. + This argument has no effect for formats other than integer WAV type. + + channels_first (bool, optional): + When True, the returned Tensor has dimension `[channel, time]`. + Otherwise, the returned Tensor's dimension is `[time, channel]`. + + format (str or None, optional): + If not ``None``, interpreted as hint that may allow backend to override the detected format. + (Default: ``None``) + + buffer_size (int, optional): + Size of buffer to use when processing file-like objects, in bytes. (Default: ``4096``) + + backend (str or None, optional): + I/O backend to use. + If ``None``, function selects backend given input and available backends. + Otherwise, must be one of [``"ffmpeg"``, ``"sox"``, ``"soundfile"``], + with the corresponding backend being available. (Default: ``None``) + + .. seealso:: + :ref:`backend` + + Returns: + (torch.Tensor, int): Resulting Tensor and sample rate. + If the input file has integer wav format and normalization is off, then it has + integer type, else ``float32`` type. If ``channels_first=True``, it has + `[channel, time]` else `[time, channel]`. + """ + backend = dispatcher(uri, format, backend) + return backend.load(uri, frame_offset, num_frames, normalize, channels_first, format, buffer_size) + + return load + + +def get_save_func(): + backends = get_available_backends() + + def dispatcher( + uri: Union[BinaryIO, str, os.PathLike], format: Optional[str], backend_name: Optional[str] + ) -> Backend: + if backend_name is not None: + return get_backend(backend_name, backends) + + for backend in backends.values(): + if backend.can_encode(uri, format): + return backend + raise RuntimeError(f"Couldn't find appropriate backend to handle uri {uri} and format {format}.") + + def save( + uri: Union[BinaryIO, str, os.PathLike], + src: torch.Tensor, + sample_rate: int, + channels_first: bool = True, + format: Optional[str] = None, + encoding: Optional[str] = None, + bits_per_sample: Optional[int] = None, + buffer_size: int = 4096, + backend: Optional[str] = None, + compression: Optional[Union[CodecConfig, float, int]] = None, + ): + """Save audio data to file. + + Note: + The formats this function can handle depend on the availability of backends. + Please use the following functions to fetch the supported formats. + + - FFmpeg: :py:func:`torchaudio.utils.ffmpeg_utils.get_audio_encoders` + - Sox: :py:func:`torchaudio.utils.sox_utils.list_write_formats` + - SoundFile: Refer to `the official document `__. + + Args: + uri (str or pathlib.Path): Path to audio file. + src (torch.Tensor): Audio data to save. must be 2D tensor. + sample_rate (int): sampling rate + channels_first (bool, optional): If ``True``, the given tensor is interpreted as `[channel, time]`, + otherwise `[time, channel]`. + format (str or None, optional): Override the audio format. + When ``uri`` argument is path-like object, audio format is + inferred from file extension. If the file extension is missing or + different, you can specify the correct format with this argument. + + When ``uri`` argument is file-like object, + this argument is required. + + Valid values are ``"wav"``, ``"ogg"``, and ``"flac"``. + encoding (str or None, optional): Changes the encoding for supported formats. + This argument is effective only for supported formats, i.e. + ``"wav"`` and ``""flac"```. Valid values are + + - ``"PCM_S"`` (signed integer Linear PCM) + - ``"PCM_U"`` (unsigned integer Linear PCM) + - ``"PCM_F"`` (floating point PCM) + - ``"ULAW"`` (mu-law) + - ``"ALAW"`` (a-law) + + bits_per_sample (int or None, optional): Changes the bit depth for the + supported formats. + When ``format`` is one of ``"wav"`` and ``"flac"``, + you can change the bit depth. + Valid values are ``8``, ``16``, ``24``, ``32`` and ``64``. + + buffer_size (int, optional): + Size of buffer to use when processing file-like objects, in bytes. (Default: ``4096``) + + backend (str or None, optional): + I/O backend to use. + If ``None``, function selects backend given input and available backends. + Otherwise, must be one of [``"ffmpeg"``, ``"sox"``, ``"soundfile"``], + with the corresponding backend being available. + (Default: ``None``) + + .. seealso:: + :ref:`backend` + + compression (CodecConfig, float, int, or None, optional): + Compression configuration to apply. + + If the selected backend is FFmpeg, an instance of :py:class:`CodecConfig` must be provided. + + Otherwise, if the selected backend is SoX, a float or int value corresponding to option ``-C`` of the + ``sox`` command line interface must be provided. For instance: + + ``"mp3"`` + Either bitrate (in ``kbps``) with quality factor, such as ``128.2``, or + VBR encoding with quality factor such as ``-4.2``. Default: ``-4.5``. + + ``"flac"`` + Whole number from ``0`` to ``8``. ``8`` is default and highest compression. + + ``"ogg"``, ``"vorbis"`` + Number from ``-1`` to ``10``; ``-1`` is the highest compression + and lowest quality. Default: ``3``. + + Refer to http://sox.sourceforge.net/soxformat.html for more details. + + """ + backend = dispatcher(uri, format, backend) + return backend.save( + uri, src, sample_rate, channels_first, format, encoding, bits_per_sample, buffer_size, compression + ) + + return save diff --git a/shared/package-files/43/43f49e12f0258cf67ae3c20dec2aa8d02174aa10ab4a7549177f0f987a812002/tek4015-sm b/shared/package-files/43/43f49e12f0258cf67ae3c20dec2aa8d02174aa10ab4a7549177f0f987a812002/tek4015-sm new file mode 100644 index 0000000000000000000000000000000000000000..1f7cafa51b7d8c5b4a6d0ea5edbb74b38bd2616c Binary files /dev/null and b/shared/package-files/43/43f49e12f0258cf67ae3c20dec2aa8d02174aa10ab4a7549177f0f987a812002/tek4015-sm differ diff --git a/shared/package-files/43/43f659f8e772f6cf2b499941cc8c0d72070f8a45ed9c072fe3be600a0a91939a/level_conversion_inc.h b/shared/package-files/43/43f659f8e772f6cf2b499941cc8c0d72070f8a45ed9c072fe3be600a0a91939a/level_conversion_inc.h new file mode 100644 index 0000000000000000000000000000000000000000..335f5b92154b389babb15ac644b6d3b51076fcaa --- /dev/null +++ b/shared/package-files/43/43f659f8e772f6cf2b499941cc8c0d72070f8a45ed9c072fe3be600a0a91939a/level_conversion_inc.h @@ -0,0 +1,355 @@ +// 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 "parquet/level_conversion.h" + +#include +#include +#include + +#include "arrow/util/bit_run_reader.h" +#include "arrow/util/bit_util.h" +#include "arrow/util/bitmap_writer.h" +#include "arrow/util/logging.h" +#include "arrow/util/simd.h" +#include "parquet/exception.h" +#include "parquet/level_comparison.h" + +#ifndef PARQUET_IMPL_NAMESPACE +# error "PARQUET_IMPL_NAMESPACE must be defined" +#endif + +namespace parquet::internal::PARQUET_IMPL_NAMESPACE { + +// clang-format off +/* Python code to generate lookup table: + +kLookupBits = 5 +count = 0 +print('constexpr int kLookupBits = {};'.format(kLookupBits)) +print('constexpr uint8_t kPextTable[1 << kLookupBits][1 << kLookupBits] = {') +print(' ', end = '') +for mask in range(1 << kLookupBits): + for data in range(1 << kLookupBits): + bit_value = 0 + bit_len = 0 + for i in range(kLookupBits): + if mask & (1 << i): + bit_value |= (((data >> i) & 1) << bit_len) + bit_len += 1 + out = '0x{:02X},'.format(bit_value) + count += 1 + if count % (1 << kLookupBits) == 1: + print(' {') + if count % 8 == 1: + print(' ', end = '') + if count % 8 == 0: + print(out, end = '\n') + else: + print(out, end = ' ') + if count % (1 << kLookupBits) == 0: + print(' },', end = '') +print('\n};') + +*/ +// clang-format on + +constexpr int kLookupBits = 5; +constexpr uint8_t kPextTable[1 << kLookupBits][1 << kLookupBits] = { + { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + }, + { + 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, + 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, + 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, + }, + { + 0x00, 0x00, 0x01, 0x01, 0x00, 0x00, 0x01, 0x01, 0x00, 0x00, 0x01, + 0x01, 0x00, 0x00, 0x01, 0x01, 0x00, 0x00, 0x01, 0x01, 0x00, 0x00, + 0x01, 0x01, 0x00, 0x00, 0x01, 0x01, 0x00, 0x00, 0x01, 0x01, + }, + { + 0x00, 0x01, 0x02, 0x03, 0x00, 0x01, 0x02, 0x03, 0x00, 0x01, 0x02, + 0x03, 0x00, 0x01, 0x02, 0x03, 0x00, 0x01, 0x02, 0x03, 0x00, 0x01, + 0x02, 0x03, 0x00, 0x01, 0x02, 0x03, 0x00, 0x01, 0x02, 0x03, + }, + { + 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, + 0x00, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, + 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, + }, + { + 0x00, 0x01, 0x00, 0x01, 0x02, 0x03, 0x02, 0x03, 0x00, 0x01, 0x00, + 0x01, 0x02, 0x03, 0x02, 0x03, 0x00, 0x01, 0x00, 0x01, 0x02, 0x03, + 0x02, 0x03, 0x00, 0x01, 0x00, 0x01, 0x02, 0x03, 0x02, 0x03, + }, + { + 0x00, 0x00, 0x01, 0x01, 0x02, 0x02, 0x03, 0x03, 0x00, 0x00, 0x01, + 0x01, 0x02, 0x02, 0x03, 0x03, 0x00, 0x00, 0x01, 0x01, 0x02, 0x02, + 0x03, 0x03, 0x00, 0x00, 0x01, 0x01, 0x02, 0x02, 0x03, 0x03, + }, + { + 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x00, 0x01, 0x02, + 0x03, 0x04, 0x05, 0x06, 0x07, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, + 0x06, 0x07, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, + }, + { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, + 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, + }, + { + 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x02, 0x03, 0x02, + 0x03, 0x02, 0x03, 0x02, 0x03, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, + 0x00, 0x01, 0x02, 0x03, 0x02, 0x03, 0x02, 0x03, 0x02, 0x03, + }, + { + 0x00, 0x00, 0x01, 0x01, 0x00, 0x00, 0x01, 0x01, 0x02, 0x02, 0x03, + 0x03, 0x02, 0x02, 0x03, 0x03, 0x00, 0x00, 0x01, 0x01, 0x00, 0x00, + 0x01, 0x01, 0x02, 0x02, 0x03, 0x03, 0x02, 0x02, 0x03, 0x03, + }, + { + 0x00, 0x01, 0x02, 0x03, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, + 0x07, 0x04, 0x05, 0x06, 0x07, 0x00, 0x01, 0x02, 0x03, 0x00, 0x01, + 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x04, 0x05, 0x06, 0x07, + }, + { + 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x02, 0x02, 0x02, + 0x02, 0x03, 0x03, 0x03, 0x03, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, + 0x01, 0x01, 0x02, 0x02, 0x02, 0x02, 0x03, 0x03, 0x03, 0x03, + }, + { + 0x00, 0x01, 0x00, 0x01, 0x02, 0x03, 0x02, 0x03, 0x04, 0x05, 0x04, + 0x05, 0x06, 0x07, 0x06, 0x07, 0x00, 0x01, 0x00, 0x01, 0x02, 0x03, + 0x02, 0x03, 0x04, 0x05, 0x04, 0x05, 0x06, 0x07, 0x06, 0x07, + }, + { + 0x00, 0x00, 0x01, 0x01, 0x02, 0x02, 0x03, 0x03, 0x04, 0x04, 0x05, + 0x05, 0x06, 0x06, 0x07, 0x07, 0x00, 0x00, 0x01, 0x01, 0x02, 0x02, + 0x03, 0x03, 0x04, 0x04, 0x05, 0x05, 0x06, 0x06, 0x07, 0x07, + }, + { + 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, + 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, + 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, + }, + { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, + 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, + }, + { + 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, + 0x01, 0x00, 0x01, 0x00, 0x01, 0x02, 0x03, 0x02, 0x03, 0x02, 0x03, + 0x02, 0x03, 0x02, 0x03, 0x02, 0x03, 0x02, 0x03, 0x02, 0x03, + }, + { + 0x00, 0x00, 0x01, 0x01, 0x00, 0x00, 0x01, 0x01, 0x00, 0x00, 0x01, + 0x01, 0x00, 0x00, 0x01, 0x01, 0x02, 0x02, 0x03, 0x03, 0x02, 0x02, + 0x03, 0x03, 0x02, 0x02, 0x03, 0x03, 0x02, 0x02, 0x03, 0x03, + }, + { + 0x00, 0x01, 0x02, 0x03, 0x00, 0x01, 0x02, 0x03, 0x00, 0x01, 0x02, + 0x03, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x04, 0x05, + 0x06, 0x07, 0x04, 0x05, 0x06, 0x07, 0x04, 0x05, 0x06, 0x07, + }, + { + 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, + 0x00, 0x01, 0x01, 0x01, 0x01, 0x02, 0x02, 0x02, 0x02, 0x03, 0x03, + 0x03, 0x03, 0x02, 0x02, 0x02, 0x02, 0x03, 0x03, 0x03, 0x03, + }, + { + 0x00, 0x01, 0x00, 0x01, 0x02, 0x03, 0x02, 0x03, 0x00, 0x01, 0x00, + 0x01, 0x02, 0x03, 0x02, 0x03, 0x04, 0x05, 0x04, 0x05, 0x06, 0x07, + 0x06, 0x07, 0x04, 0x05, 0x04, 0x05, 0x06, 0x07, 0x06, 0x07, + }, + { + 0x00, 0x00, 0x01, 0x01, 0x02, 0x02, 0x03, 0x03, 0x00, 0x00, 0x01, + 0x01, 0x02, 0x02, 0x03, 0x03, 0x04, 0x04, 0x05, 0x05, 0x06, 0x06, + 0x07, 0x07, 0x04, 0x04, 0x05, 0x05, 0x06, 0x06, 0x07, 0x07, + }, + { + 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x00, 0x01, 0x02, + 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, + 0x0E, 0x0F, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, + }, + { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, + 0x01, 0x01, 0x01, 0x01, 0x01, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, + 0x02, 0x02, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, + }, + { + 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x02, 0x03, 0x02, + 0x03, 0x02, 0x03, 0x02, 0x03, 0x04, 0x05, 0x04, 0x05, 0x04, 0x05, + 0x04, 0x05, 0x06, 0x07, 0x06, 0x07, 0x06, 0x07, 0x06, 0x07, + }, + { + 0x00, 0x00, 0x01, 0x01, 0x00, 0x00, 0x01, 0x01, 0x02, 0x02, 0x03, + 0x03, 0x02, 0x02, 0x03, 0x03, 0x04, 0x04, 0x05, 0x05, 0x04, 0x04, + 0x05, 0x05, 0x06, 0x06, 0x07, 0x07, 0x06, 0x06, 0x07, 0x07, + }, + { + 0x00, 0x01, 0x02, 0x03, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, + 0x07, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x08, 0x09, + 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x0C, 0x0D, 0x0E, 0x0F, + }, + { + 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x02, 0x02, 0x02, + 0x02, 0x03, 0x03, 0x03, 0x03, 0x04, 0x04, 0x04, 0x04, 0x05, 0x05, + 0x05, 0x05, 0x06, 0x06, 0x06, 0x06, 0x07, 0x07, 0x07, 0x07, + }, + { + 0x00, 0x01, 0x00, 0x01, 0x02, 0x03, 0x02, 0x03, 0x04, 0x05, 0x04, + 0x05, 0x06, 0x07, 0x06, 0x07, 0x08, 0x09, 0x08, 0x09, 0x0A, 0x0B, + 0x0A, 0x0B, 0x0C, 0x0D, 0x0C, 0x0D, 0x0E, 0x0F, 0x0E, 0x0F, + }, + { + 0x00, 0x00, 0x01, 0x01, 0x02, 0x02, 0x03, 0x03, 0x04, 0x04, 0x05, + 0x05, 0x06, 0x06, 0x07, 0x07, 0x08, 0x08, 0x09, 0x09, 0x0A, 0x0A, + 0x0B, 0x0B, 0x0C, 0x0C, 0x0D, 0x0D, 0x0E, 0x0E, 0x0F, 0x0F, + }, + { + 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, + 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, + 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, + }, +}; + +inline uint64_t ExtractBitsSoftware(uint64_t bitmap, uint64_t select_bitmap) { + // A software emulation of _pext_u64 + + // These checks should be inline and are likely to be common cases. + if (select_bitmap == ~uint64_t{0}) { + return bitmap; + } else if (select_bitmap == 0) { + return 0; + } + + // Fallback to lookup table method + uint64_t bit_value = 0; + int bit_len = 0; + constexpr uint8_t kLookupMask = (1U << kLookupBits) - 1; + while (select_bitmap != 0) { + const auto mask_len = ARROW_POPCOUNT32(select_bitmap & kLookupMask); + const uint64_t value = kPextTable[select_bitmap & kLookupMask][bitmap & kLookupMask]; + bit_value |= (value << bit_len); + bit_len += mask_len; + bitmap >>= kLookupBits; + select_bitmap >>= kLookupBits; + } + return bit_value; +} + +#ifdef ARROW_HAVE_BMI2 + +// Use _pext_u64 on 64-bit builds, _pext_u32 on 32-bit builds, +# if UINTPTR_MAX == 0xFFFFFFFF + +using extract_bitmap_t = uint32_t; +inline extract_bitmap_t ExtractBits(extract_bitmap_t bitmap, + extract_bitmap_t select_bitmap) { + return _pext_u32(bitmap, select_bitmap); +} + +# else + +using extract_bitmap_t = uint64_t; +inline extract_bitmap_t ExtractBits(extract_bitmap_t bitmap, + extract_bitmap_t select_bitmap) { + return _pext_u64(bitmap, select_bitmap); +} + +# endif + +#else // !defined(ARROW_HAVE_BMI2) + +// Use 64-bit pext emulation when BMI2 isn't available. +using extract_bitmap_t = uint64_t; +inline extract_bitmap_t ExtractBits(extract_bitmap_t bitmap, + extract_bitmap_t select_bitmap) { + return ExtractBitsSoftware(bitmap, select_bitmap); +} + +#endif + +static constexpr int64_t kExtractBitsSize = 8 * sizeof(extract_bitmap_t); + +template +int64_t DefLevelsBatchToBitmap(const int16_t* def_levels, const int64_t batch_size, + int64_t upper_bound_remaining, LevelInfo level_info, + ::arrow::internal::FirstTimeBitmapWriter* writer) { + ARROW_DCHECK_LE(batch_size, kExtractBitsSize); + + // Greater than level_info.def_level - 1 implies >= the def_level + auto defined_bitmap = static_cast(::arrow::bit_util::FromLittleEndian( + internal::GreaterThanBitmap(def_levels, batch_size, level_info.def_level - 1))); + + if (has_repeated_parent) { + // Greater than level_info.repeated_ancestor_def_level - 1 implies >= the + // repeated_ancestor_def_level + auto present_bitmap = static_cast( + ::arrow::bit_util::FromLittleEndian(internal::GreaterThanBitmap( + def_levels, batch_size, level_info.repeated_ancestor_def_level - 1))); + auto selected_bits = ExtractBits(defined_bitmap, present_bitmap); + int64_t selected_count = ::arrow::bit_util::PopCount(present_bitmap); + if (ARROW_PREDICT_FALSE(selected_count > upper_bound_remaining)) { + throw ParquetException("Values read exceeded upper bound"); + } + writer->AppendWord(selected_bits, selected_count); + return ::arrow::bit_util::PopCount(selected_bits); + } else { + if (ARROW_PREDICT_FALSE(batch_size > upper_bound_remaining)) { + std::stringstream ss; + ss << "Values read exceeded upper bound"; + throw ParquetException(ss.str()); + } + + writer->AppendWord(defined_bitmap, batch_size); + return ::arrow::bit_util::PopCount(defined_bitmap); + } +} + +template +void DefLevelsToBitmapSimd(const int16_t* def_levels, int64_t num_def_levels, + LevelInfo level_info, ValidityBitmapInputOutput* output) { + ::arrow::internal::FirstTimeBitmapWriter writer( + output->valid_bits, + /*start_offset=*/output->valid_bits_offset, + /*length=*/output->values_read_upper_bound); + int64_t set_count = 0; + output->values_read = 0; + int64_t values_read_remaining = output->values_read_upper_bound; + while (num_def_levels > kExtractBitsSize) { + set_count += DefLevelsBatchToBitmap( + def_levels, kExtractBitsSize, values_read_remaining, level_info, &writer); + def_levels += kExtractBitsSize; + num_def_levels -= kExtractBitsSize; + values_read_remaining = output->values_read_upper_bound - writer.position(); + } + set_count += DefLevelsBatchToBitmap( + def_levels, num_def_levels, values_read_remaining, level_info, &writer); + + output->values_read = writer.position(); + output->null_count += output->values_read - set_count; + writer.Finish(); +} + +} // namespace parquet::internal::PARQUET_IMPL_NAMESPACE diff --git a/shared/package-files/43/43f7483da076bb9e246df350333aa66de97e81b1ba442e6f5b33ba3921431aa3/__about__.py b/shared/package-files/43/43f7483da076bb9e246df350333aa66de97e81b1ba442e6f5b33ba3921431aa3/__about__.py new file mode 100644 index 0000000000000000000000000000000000000000..b933afb35fd6168ee783a2049dcb87aaa6e75aeb --- /dev/null +++ b/shared/package-files/43/43f7483da076bb9e246df350333aa66de97e81b1ba442e6f5b33ba3921431aa3/__about__.py @@ -0,0 +1,17 @@ +# 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 + +__all__ = [ + "__version__", + "__author__", + "__copyright__", +] + +__version__ = "42.0.5" + + +__author__ = "The Python Cryptographic Authority and individual contributors" +__copyright__ = f"Copyright 2013-2024 {__author__}" diff --git a/shared/package-files/43/43f7702535ed4ae5584e53269c6862346091aea1ce36ef70bb6379c20670e296/test_datetime.py b/shared/package-files/43/43f7702535ed4ae5584e53269c6862346091aea1ce36ef70bb6379c20670e296/test_datetime.py new file mode 100644 index 0000000000000000000000000000000000000000..f7fc64d4b01633edc011349441b1f75dd2f00cb9 --- /dev/null +++ b/shared/package-files/43/43f7702535ed4ae5584e53269c6862346091aea1ce36ef70bb6379c20670e296/test_datetime.py @@ -0,0 +1,216 @@ +import datetime as dt +from datetime import date +import re + +import numpy as np +import pytest + +from pandas.compat.numpy import np_long + +import pandas as pd +from pandas import ( + DataFrame, + DatetimeIndex, + Index, + Timestamp, + date_range, + offsets, +) +import pandas._testing as tm + + +class TestDatetimeIndex: + def test_is_(self): + dti = date_range(start="1/1/2005", end="12/1/2005", freq="ME") + assert dti.is_(dti) + assert dti.is_(dti.view()) + assert not dti.is_(dti.copy()) + + def test_time_overflow_for_32bit_machines(self): + # GH8943. On some machines NumPy defaults to np.int32 (for example, + # 32-bit Linux machines). In the function _generate_regular_range + # found in tseries/index.py, `periods` gets multiplied by `strides` + # (which has value 1e9) and since the max value for np.int32 is ~2e9, + # and since those machines won't promote np.int32 to np.int64, we get + # overflow. + periods = np_long(1000) + + idx1 = date_range(start="2000", periods=periods, freq="s") + assert len(idx1) == periods + + idx2 = date_range(end="2000", periods=periods, freq="s") + assert len(idx2) == periods + + def test_nat(self): + assert DatetimeIndex([np.nan])[0] is pd.NaT + + def test_week_of_month_frequency(self): + # GH 5348: "ValueError: Could not evaluate WOM-1SUN" shouldn't raise + d1 = date(2002, 9, 1) + d2 = date(2013, 10, 27) + d3 = date(2012, 9, 30) + idx1 = DatetimeIndex([d1, d2]) + idx2 = DatetimeIndex([d3]) + result_append = idx1.append(idx2) + expected = DatetimeIndex([d1, d2, d3]) + tm.assert_index_equal(result_append, expected) + result_union = idx1.union(idx2) + expected = DatetimeIndex([d1, d3, d2]) + tm.assert_index_equal(result_union, expected) + + def test_append_nondatetimeindex(self): + rng = date_range("1/1/2000", periods=10) + idx = Index(["a", "b", "c", "d"]) + + result = rng.append(idx) + assert isinstance(result[0], Timestamp) + + def test_misc_coverage(self): + rng = date_range("1/1/2000", periods=5) + result = rng.groupby(rng.day) + assert isinstance(next(iter(result.values()))[0], Timestamp) + + # TODO: belongs in frame groupby tests? + def test_groupby_function_tuple_1677(self): + df = DataFrame( + np.random.default_rng(2).random(100), + index=date_range("1/1/2000", periods=100), + ) + monthly_group = df.groupby(lambda x: (x.year, x.month)) + + result = monthly_group.mean() + assert isinstance(result.index[0], tuple) + + def assert_index_parameters(self, index): + assert index.freq == "40960ns" + assert index.inferred_freq == "40960ns" + + def test_ns_index(self): + nsamples = 400 + ns = int(1e9 / 24414) + dtstart = np.datetime64("2012-09-20T00:00:00") + + dt = dtstart + np.arange(nsamples) * np.timedelta64(ns, "ns") + freq = ns * offsets.Nano() + index = DatetimeIndex(dt, freq=freq, name="time") + self.assert_index_parameters(index) + + new_index = date_range(start=index[0], end=index[-1], freq=index.freq) + self.assert_index_parameters(new_index) + + def test_asarray_tz_naive(self): + # This shouldn't produce a warning. + idx = date_range("2000", periods=2) + # M8[ns] by default + result = np.asarray(idx) + + expected = np.array(["2000-01-01", "2000-01-02"], dtype="M8[ns]") + tm.assert_numpy_array_equal(result, expected) + + # optionally, object + result = np.asarray(idx, dtype=object) + + expected = np.array([Timestamp("2000-01-01"), Timestamp("2000-01-02")]) + tm.assert_numpy_array_equal(result, expected) + + def test_asarray_tz_aware(self): + tz = "US/Central" + idx = date_range("2000", periods=2, tz=tz) + expected = np.array(["2000-01-01T06", "2000-01-02T06"], dtype="M8[ns]") + result = np.asarray(idx, dtype="datetime64[ns]") + + tm.assert_numpy_array_equal(result, expected) + + # Old behavior with no warning + result = np.asarray(idx, dtype="M8[ns]") + + tm.assert_numpy_array_equal(result, expected) + + # Future behavior with no warning + expected = np.array( + [Timestamp("2000-01-01", tz=tz), Timestamp("2000-01-02", tz=tz)] + ) + result = np.asarray(idx, dtype=object) + + tm.assert_numpy_array_equal(result, expected) + + def test_CBH_deprecated(self): + msg = "'CBH' is deprecated and will be removed in a future version." + + with tm.assert_produces_warning(FutureWarning, match=msg): + expected = date_range( + dt.datetime(2022, 12, 11), dt.datetime(2022, 12, 13), freq="CBH" + ) + result = DatetimeIndex( + [ + "2022-12-12 09:00:00", + "2022-12-12 10:00:00", + "2022-12-12 11:00:00", + "2022-12-12 12:00:00", + "2022-12-12 13:00:00", + "2022-12-12 14:00:00", + "2022-12-12 15:00:00", + "2022-12-12 16:00:00", + ], + dtype="datetime64[ns]", + freq="cbh", + ) + + tm.assert_index_equal(result, expected) + + @pytest.mark.parametrize( + "freq_depr, expected_values, expected_freq", + [ + ( + "AS-AUG", + ["2021-08-01", "2022-08-01", "2023-08-01"], + "YS-AUG", + ), + ( + "1BAS-MAY", + ["2021-05-03", "2022-05-02", "2023-05-01"], + "1BYS-MAY", + ), + ], + ) + def test_AS_BAS_deprecated(self, freq_depr, expected_values, expected_freq): + # GH#55479 + freq_msg = re.split("[0-9]*", freq_depr, maxsplit=1)[1] + msg = f"'{freq_msg}' is deprecated and will be removed in a future version." + + with tm.assert_produces_warning(FutureWarning, match=msg): + expected = date_range( + dt.datetime(2020, 12, 1), dt.datetime(2023, 12, 1), freq=freq_depr + ) + result = DatetimeIndex( + expected_values, + dtype="datetime64[ns]", + freq=expected_freq, + ) + + tm.assert_index_equal(result, expected) + + @pytest.mark.parametrize( + "freq, expected_values, freq_depr", + [ + ("2BYE-MAR", ["2016-03-31"], "2BA-MAR"), + ("2BYE-JUN", ["2016-06-30"], "2BY-JUN"), + ("2BME", ["2016-02-29", "2016-04-29", "2016-06-30"], "2BM"), + ("2BQE", ["2016-03-31"], "2BQ"), + ("1BQE-MAR", ["2016-03-31", "2016-06-30"], "1BQ-MAR"), + ], + ) + def test_BM_BQ_BY_deprecated(self, freq, expected_values, freq_depr): + # GH#52064 + msg = f"'{freq_depr[1:]}' is deprecated and will be removed " + f"in a future version, please use '{freq[1:]}' instead." + + with tm.assert_produces_warning(FutureWarning, match=msg): + expected = date_range(start="2016-02-21", end="2016-08-21", freq=freq_depr) + result = DatetimeIndex( + data=expected_values, + dtype="datetime64[ns]", + freq=freq, + ) + + tm.assert_index_equal(result, expected) diff --git a/shared/package-files/43/43f8091f014358761d806c4f7a69347afec116f37093c0a01991a9d58cf59b5d/test_file_util.py b/shared/package-files/43/43f8091f014358761d806c4f7a69347afec116f37093c0a01991a9d58cf59b5d/test_file_util.py new file mode 100644 index 0000000000000000000000000000000000000000..c7783b858d583b03fc77516e7532db2524c88f57 --- /dev/null +++ b/shared/package-files/43/43f8091f014358761d806c4f7a69347afec116f37093c0a01991a9d58cf59b5d/test_file_util.py @@ -0,0 +1,124 @@ +"""Tests for distutils.file_util.""" +import unittest +import os +import errno +from unittest.mock import patch + +from distutils.file_util import move_file, copy_file +from distutils import log +from distutils.tests import support +from distutils.errors import DistutilsFileError +from test.support import run_unittest +from test.support.os_helper import unlink + + +class FileUtilTestCase(support.TempdirManager, unittest.TestCase): + + def _log(self, msg, *args): + if len(args) > 0: + self._logs.append(msg % args) + else: + self._logs.append(msg) + + def setUp(self): + super(FileUtilTestCase, self).setUp() + self._logs = [] + self.old_log = log.info + log.info = self._log + tmp_dir = self.mkdtemp() + self.source = os.path.join(tmp_dir, 'f1') + self.target = os.path.join(tmp_dir, 'f2') + self.target_dir = os.path.join(tmp_dir, 'd1') + + def tearDown(self): + log.info = self.old_log + super(FileUtilTestCase, self).tearDown() + + def test_move_file_verbosity(self): + f = open(self.source, 'w') + try: + f.write('some content') + finally: + f.close() + + move_file(self.source, self.target, verbose=0) + wanted = [] + self.assertEqual(self._logs, wanted) + + # back to original state + move_file(self.target, self.source, verbose=0) + + move_file(self.source, self.target, verbose=1) + wanted = ['moving %s -> %s' % (self.source, self.target)] + self.assertEqual(self._logs, wanted) + + # back to original state + move_file(self.target, self.source, verbose=0) + + self._logs = [] + # now the target is a dir + os.mkdir(self.target_dir) + move_file(self.source, self.target_dir, verbose=1) + wanted = ['moving %s -> %s' % (self.source, self.target_dir)] + self.assertEqual(self._logs, wanted) + + def test_move_file_exception_unpacking_rename(self): + # see issue 22182 + with patch("os.rename", side_effect=OSError("wrong", 1)), \ + self.assertRaises(DistutilsFileError): + with open(self.source, 'w') as fobj: + fobj.write('spam eggs') + move_file(self.source, self.target, verbose=0) + + def test_move_file_exception_unpacking_unlink(self): + # see issue 22182 + with patch("os.rename", side_effect=OSError(errno.EXDEV, "wrong")), \ + patch("os.unlink", side_effect=OSError("wrong", 1)), \ + self.assertRaises(DistutilsFileError): + with open(self.source, 'w') as fobj: + fobj.write('spam eggs') + move_file(self.source, self.target, verbose=0) + + def test_copy_file_hard_link(self): + with open(self.source, 'w') as f: + f.write('some content') + # Check first that copy_file() will not fall back on copying the file + # instead of creating the hard link. + try: + os.link(self.source, self.target) + except OSError as e: + self.skipTest('os.link: %s' % e) + else: + unlink(self.target) + st = os.stat(self.source) + copy_file(self.source, self.target, link='hard') + st2 = os.stat(self.source) + st3 = os.stat(self.target) + self.assertTrue(os.path.samestat(st, st2), (st, st2)) + self.assertTrue(os.path.samestat(st2, st3), (st2, st3)) + with open(self.source, 'r') as f: + self.assertEqual(f.read(), 'some content') + + def test_copy_file_hard_link_failure(self): + # If hard linking fails, copy_file() falls back on copying file + # (some special filesystems don't support hard linking even under + # Unix, see issue #8876). + with open(self.source, 'w') as f: + f.write('some content') + st = os.stat(self.source) + with patch("os.link", side_effect=OSError(0, "linking unsupported")): + copy_file(self.source, self.target, link='hard') + st2 = os.stat(self.source) + st3 = os.stat(self.target) + self.assertTrue(os.path.samestat(st, st2), (st, st2)) + self.assertFalse(os.path.samestat(st2, st3), (st2, st3)) + for fn in (self.source, self.target): + with open(fn, 'r') as f: + self.assertEqual(f.read(), 'some content') + + +def test_suite(): + return unittest.makeSuite(FileUtilTestCase) + +if __name__ == "__main__": + run_unittest(test_suite()) diff --git a/shared/package-files/43/43fb26945d1b60b49727c3bd4c7f7712b426227587d12f1daa26f16d71ba00f2/loader.pyi b/shared/package-files/43/43fb26945d1b60b49727c3bd4c7f7712b426227587d12f1daa26f16d71ba00f2/loader.pyi new file mode 100644 index 0000000000000000000000000000000000000000..67bf6798b737a65310e8c2953f491831bd7da8dd --- /dev/null +++ b/shared/package-files/43/43fb26945d1b60b49727c3bd4c7f7712b426227587d12f1daa26f16d71ba00f2/loader.pyi @@ -0,0 +1,18 @@ +from yaml.composer import Composer +from yaml.constructor import BaseConstructor, Constructor, FullConstructor, SafeConstructor +from yaml.parser import Parser +from yaml.reader import Reader +from yaml.resolver import BaseResolver, Resolver +from yaml.scanner import Scanner + +class BaseLoader(Reader, Scanner, Parser, Composer, BaseConstructor, BaseResolver): + def __init__(self, stream) -> None: ... + +class FullLoader(Reader, Scanner, Parser, Composer, FullConstructor, Resolver): + def __init__(self, stream) -> None: ... + +class SafeLoader(Reader, Scanner, Parser, Composer, SafeConstructor, Resolver): + def __init__(self, stream) -> None: ... + +class Loader(Reader, Scanner, Parser, Composer, Constructor, Resolver): + def __init__(self, stream) -> None: ... diff --git a/shared/package-files/43/43fd32e37a94eff1aa01a6c9f32dcf59584e8acbab9c202adc6cee0aed38579f/joblib_0.10.0_pickle_py34_np19.pkl.lzma b/shared/package-files/43/43fd32e37a94eff1aa01a6c9f32dcf59584e8acbab9c202adc6cee0aed38579f/joblib_0.10.0_pickle_py34_np19.pkl.lzma new file mode 100644 index 0000000000000000000000000000000000000000..add975b005d9c6fdab5c24c369edb0c7c4cf397c Binary files /dev/null and b/shared/package-files/43/43fd32e37a94eff1aa01a6c9f32dcf59584e8acbab9c202adc6cee0aed38579f/joblib_0.10.0_pickle_py34_np19.pkl.lzma differ diff --git a/shared/package-files/69/69003b1b1c3073cffd7f50056d9a8d965fd0fa22d9ff0fceafde7d3e88f55165/value.py b/shared/package-files/69/69003b1b1c3073cffd7f50056d9a8d965fd0fa22d9ff0fceafde7d3e88f55165/value.py new file mode 100644 index 0000000000000000000000000000000000000000..baad4d639d05da74d74c1789bb95d93d2761e849 --- /dev/null +++ b/shared/package-files/69/69003b1b1c3073cffd7f50056d9a8d965fd0fa22d9ff0fceafde7d3e88f55165/value.py @@ -0,0 +1,612 @@ +""" +Imitate the parser representation. +""" +import re +from functools import partial +from inspect import Parameter +from pathlib import Path +from typing import Optional + +from jedi import debug +from jedi.inference.utils import to_list +from jedi.cache import memoize_method +from jedi.inference.filters import AbstractFilter +from jedi.inference.names import AbstractNameDefinition, ValueNameMixin, \ + ParamNameInterface +from jedi.inference.base_value import Value, ValueSet, NO_VALUES +from jedi.inference.lazy_value import LazyKnownValue +from jedi.inference.compiled.access import _sentinel +from jedi.inference.cache import inference_state_function_cache +from jedi.inference.helpers import reraise_getitem_errors +from jedi.inference.signature import BuiltinSignature +from jedi.inference.context import CompiledContext, CompiledModuleContext + + +class CheckAttribute: + """Raises :exc:`AttributeError` if the attribute X is not available.""" + def __init__(self, check_name=None): + # Remove the py in front of e.g. py__call__. + self.check_name = check_name + + def __call__(self, func): + self.func = func + if self.check_name is None: + self.check_name = func.__name__[2:] + return self + + def __get__(self, instance, owner): + if instance is None: + return self + + # This might raise an AttributeError. That's wanted. + instance.access_handle.getattr_paths(self.check_name) + return partial(self.func, instance) + + +class CompiledValue(Value): + def __init__(self, inference_state, access_handle, parent_context=None): + super().__init__(inference_state, parent_context) + self.access_handle = access_handle + + def py__call__(self, arguments): + return_annotation = self.access_handle.get_return_annotation() + if return_annotation is not None: + # TODO the return annotation may also be a string. + return create_from_access_path( + self.inference_state, + return_annotation + ).execute_annotation() + + try: + self.access_handle.getattr_paths('__call__') + except AttributeError: + return super().py__call__(arguments) + else: + if self.access_handle.is_class(): + from jedi.inference.value import CompiledInstance + return ValueSet([ + CompiledInstance(self.inference_state, self.parent_context, self, arguments) + ]) + else: + return ValueSet(self._execute_function(arguments)) + + @CheckAttribute() + def py__class__(self): + return create_from_access_path(self.inference_state, self.access_handle.py__class__()) + + @CheckAttribute() + def py__mro__(self): + return (self,) + tuple( + create_from_access_path(self.inference_state, access) + for access in self.access_handle.py__mro__accesses() + ) + + @CheckAttribute() + def py__bases__(self): + return tuple( + create_from_access_path(self.inference_state, access) + for access in self.access_handle.py__bases__() + ) + + def get_qualified_names(self): + return self.access_handle.get_qualified_names() + + def py__bool__(self): + return self.access_handle.py__bool__() + + def is_class(self): + return self.access_handle.is_class() + + def is_function(self): + return self.access_handle.is_function() + + def is_module(self): + return self.access_handle.is_module() + + def is_compiled(self): + return True + + def is_stub(self): + return False + + def is_instance(self): + return self.access_handle.is_instance() + + def py__doc__(self): + return self.access_handle.py__doc__() + + @to_list + def get_param_names(self): + try: + signature_params = self.access_handle.get_signature_params() + except ValueError: # Has no signature + params_str, ret = self._parse_function_doc() + if not params_str: + tokens = [] + else: + tokens = params_str.split(',') + if self.access_handle.ismethoddescriptor(): + tokens.insert(0, 'self') + for p in tokens: + name, _, default = p.strip().partition('=') + yield UnresolvableParamName(self, name, default) + else: + for signature_param in signature_params: + yield SignatureParamName(self, signature_param) + + def get_signatures(self): + _, return_string = self._parse_function_doc() + return [BuiltinSignature(self, return_string)] + + def __repr__(self): + return '<%s: %s>' % (self.__class__.__name__, self.access_handle.get_repr()) + + @memoize_method + def _parse_function_doc(self): + doc = self.py__doc__() + if doc is None: + return '', '' + + return _parse_function_doc(doc) + + @property + def api_type(self): + return self.access_handle.get_api_type() + + def get_filters(self, is_instance=False, origin_scope=None): + yield self._ensure_one_filter(is_instance) + + @memoize_method + def _ensure_one_filter(self, is_instance): + return CompiledValueFilter(self.inference_state, self, is_instance) + + def py__simple_getitem__(self, index): + with reraise_getitem_errors(IndexError, KeyError, TypeError): + try: + access = self.access_handle.py__simple_getitem__(index) + except AttributeError: + return super().py__simple_getitem__(index) + if access is None: + return super().py__simple_getitem__(index) + + return ValueSet([create_from_access_path(self.inference_state, access)]) + + def py__getitem__(self, index_value_set, contextualized_node): + all_access_paths = self.access_handle.py__getitem__all_values() + if all_access_paths is None: + # This means basically that no __getitem__ has been defined on this + # object. + return super().py__getitem__(index_value_set, contextualized_node) + return ValueSet( + create_from_access_path(self.inference_state, access) + for access in all_access_paths + ) + + def py__iter__(self, contextualized_node=None): + if not self.access_handle.has_iter(): + yield from super().py__iter__(contextualized_node) + + access_path_list = self.access_handle.py__iter__list() + if access_path_list is None: + # There is no __iter__ method on this object. + return + + for access in access_path_list: + yield LazyKnownValue(create_from_access_path(self.inference_state, access)) + + def py__name__(self): + return self.access_handle.py__name__() + + @property + def name(self): + name = self.py__name__() + if name is None: + name = self.access_handle.get_repr() + return CompiledValueName(self, name) + + def _execute_function(self, params): + from jedi.inference import docstrings + from jedi.inference.compiled import builtin_from_name + if self.api_type != 'function': + return + + for name in self._parse_function_doc()[1].split(): + try: + # TODO wtf is this? this is exactly the same as the thing + # below. It uses getattr as well. + self.inference_state.builtins_module.access_handle.getattr_paths(name) + except AttributeError: + continue + else: + bltn_obj = builtin_from_name(self.inference_state, name) + yield from self.inference_state.execute(bltn_obj, params) + yield from docstrings.infer_return_types(self) + + def get_safe_value(self, default=_sentinel): + try: + return self.access_handle.get_safe_value() + except ValueError: + if default == _sentinel: + raise + return default + + def execute_operation(self, other, operator): + try: + return ValueSet([create_from_access_path( + self.inference_state, + self.access_handle.execute_operation(other.access_handle, operator) + )]) + except TypeError: + return NO_VALUES + + def execute_annotation(self): + if self.access_handle.get_repr() == 'None': + # None as an annotation doesn't need to be executed. + return ValueSet([self]) + + name, args = self.access_handle.get_annotation_name_and_args() + arguments = [ + ValueSet([create_from_access_path(self.inference_state, path)]) + for path in args + ] + if name == 'Union': + return ValueSet.from_sets(arg.execute_annotation() for arg in arguments) + elif name: + # While with_generics only exists on very specific objects, we + # should probably be fine, because we control all the typing + # objects. + return ValueSet([ + v.with_generics(arguments) + for v in self.inference_state.typing_module.py__getattribute__(name) + ]).execute_annotation() + return super().execute_annotation() + + def negate(self): + return create_from_access_path(self.inference_state, self.access_handle.negate()) + + def get_metaclasses(self): + return NO_VALUES + + def _as_context(self): + return CompiledContext(self) + + @property + def array_type(self): + return self.access_handle.get_array_type() + + def get_key_values(self): + return [ + create_from_access_path(self.inference_state, k) + for k in self.access_handle.get_key_paths() + ] + + def get_type_hint(self, add_class_info=True): + if self.access_handle.get_repr() in ('None', ""): + return 'None' + return None + + +class CompiledModule(CompiledValue): + file_io = None # For modules + + def _as_context(self): + return CompiledModuleContext(self) + + def py__path__(self): + return self.access_handle.py__path__() + + def is_package(self): + return self.py__path__() is not None + + @property + def string_names(self): + # For modules + name = self.py__name__() + if name is None: + return () + return tuple(name.split('.')) + + def py__file__(self) -> Optional[Path]: + return self.access_handle.py__file__() # type: ignore[no-any-return] + + +class CompiledName(AbstractNameDefinition): + def __init__(self, inference_state, parent_value, name): + self._inference_state = inference_state + self.parent_context = parent_value.as_context() + self._parent_value = parent_value + self.string_name = name + + def py__doc__(self): + return self.infer_compiled_value().py__doc__() + + def _get_qualified_names(self): + parent_qualified_names = self.parent_context.get_qualified_names() + if parent_qualified_names is None: + return None + return parent_qualified_names + (self.string_name,) + + def get_defining_qualified_value(self): + context = self.parent_context + if context.is_module() or context.is_class(): + return self.parent_context.get_value() # Might be None + + return None + + def __repr__(self): + try: + name = self.parent_context.name # __name__ is not defined all the time + except AttributeError: + name = None + return '<%s: (%s).%s>' % (self.__class__.__name__, name, self.string_name) + + @property + def api_type(self): + return self.infer_compiled_value().api_type + + def infer(self): + return ValueSet([self.infer_compiled_value()]) + + @memoize_method + def infer_compiled_value(self): + return create_from_name(self._inference_state, self._parent_value, self.string_name) + + +class SignatureParamName(ParamNameInterface, AbstractNameDefinition): + def __init__(self, compiled_value, signature_param): + self.parent_context = compiled_value.parent_context + self._signature_param = signature_param + + @property + def string_name(self): + return self._signature_param.name + + def to_string(self): + s = self._kind_string() + self.string_name + if self._signature_param.has_annotation: + s += ': ' + self._signature_param.annotation_string + if self._signature_param.has_default: + s += '=' + self._signature_param.default_string + return s + + def get_kind(self): + return getattr(Parameter, self._signature_param.kind_name) + + def infer(self): + p = self._signature_param + inference_state = self.parent_context.inference_state + values = NO_VALUES + if p.has_default: + values = ValueSet([create_from_access_path(inference_state, p.default)]) + if p.has_annotation: + annotation = create_from_access_path(inference_state, p.annotation) + values |= annotation.execute_with_values() + return values + + +class UnresolvableParamName(ParamNameInterface, AbstractNameDefinition): + def __init__(self, compiled_value, name, default): + self.parent_context = compiled_value.parent_context + self.string_name = name + self._default = default + + def get_kind(self): + return Parameter.POSITIONAL_ONLY + + def to_string(self): + string = self.string_name + if self._default: + string += '=' + self._default + return string + + def infer(self): + return NO_VALUES + + +class CompiledValueName(ValueNameMixin, AbstractNameDefinition): + def __init__(self, value, name): + self.string_name = name + self._value = value + self.parent_context = value.parent_context + + +class EmptyCompiledName(AbstractNameDefinition): + """ + Accessing some names will raise an exception. To avoid not having any + completions, just give Jedi the option to return this object. It infers to + nothing. + """ + def __init__(self, inference_state, name): + self.parent_context = inference_state.builtins_module + self.string_name = name + + def infer(self): + return NO_VALUES + + +class CompiledValueFilter(AbstractFilter): + def __init__(self, inference_state, compiled_value, is_instance=False): + self._inference_state = inference_state + self.compiled_value = compiled_value + self.is_instance = is_instance + + def get(self, name): + access_handle = self.compiled_value.access_handle + return self._get( + name, + lambda name, safe: access_handle.is_allowed_getattr(name, safe=safe), + lambda name: name in access_handle.dir(), + check_has_attribute=True + ) + + def _get(self, name, allowed_getattr_callback, in_dir_callback, check_has_attribute=False): + """ + To remove quite a few access calls we introduced the callback here. + """ + if self._inference_state.allow_descriptor_getattr: + pass + + has_attribute, is_descriptor = allowed_getattr_callback( + name, + safe=not self._inference_state.allow_descriptor_getattr + ) + if check_has_attribute and not has_attribute: + return [] + + if (is_descriptor or not has_attribute) \ + and not self._inference_state.allow_descriptor_getattr: + return [self._get_cached_name(name, is_empty=True)] + + if self.is_instance and not in_dir_callback(name): + return [] + return [self._get_cached_name(name)] + + @memoize_method + def _get_cached_name(self, name, is_empty=False): + if is_empty: + return EmptyCompiledName(self._inference_state, name) + else: + return self._create_name(name) + + def values(self): + from jedi.inference.compiled import builtin_from_name + names = [] + needs_type_completions, dir_infos = self.compiled_value.access_handle.get_dir_infos() + # We could use `safe=False` here as well, especially as a parameter to + # get_dir_infos. But this would lead to a lot of property executions + # that are probably not wanted. The drawback for this is that we + # have a different name for `get` and `values`. For `get` we always + # execute. + for name in dir_infos: + names += self._get( + name, + lambda name, safe: dir_infos[name], + lambda name: name in dir_infos, + ) + + # ``dir`` doesn't include the type names. + if not self.is_instance and needs_type_completions: + for filter in builtin_from_name(self._inference_state, 'type').get_filters(): + names += filter.values() + return names + + def _create_name(self, name): + return CompiledName( + self._inference_state, + self.compiled_value, + name + ) + + def __repr__(self): + return "<%s: %s>" % (self.__class__.__name__, self.compiled_value) + + +docstr_defaults = { + 'floating point number': 'float', + 'character': 'str', + 'integer': 'int', + 'dictionary': 'dict', + 'string': 'str', +} + + +def _parse_function_doc(doc): + """ + Takes a function and returns the params and return value as a tuple. + This is nothing more than a docstring parser. + + TODO docstrings like utime(path, (atime, mtime)) and a(b [, b]) -> None + TODO docstrings like 'tuple of integers' + """ + # parse round parentheses: def func(a, (b,c)) + try: + count = 0 + start = doc.index('(') + for i, s in enumerate(doc[start:]): + if s == '(': + count += 1 + elif s == ')': + count -= 1 + if count == 0: + end = start + i + break + param_str = doc[start + 1:end] + except (ValueError, UnboundLocalError): + # ValueError for doc.index + # UnboundLocalError for undefined end in last line + debug.dbg('no brackets found - no param') + end = 0 + param_str = '' + else: + # remove square brackets, that show an optional param ( = None) + def change_options(m): + args = m.group(1).split(',') + for i, a in enumerate(args): + if a and '=' not in a: + args[i] += '=None' + return ','.join(args) + + while True: + param_str, changes = re.subn(r' ?\[([^\[\]]+)\]', + change_options, param_str) + if changes == 0: + break + param_str = param_str.replace('-', '_') # see: isinstance.__doc__ + + # parse return value + r = re.search('-[>-]* ', doc[end:end + 7]) + if r is None: + ret = '' + else: + index = end + r.end() + # get result type, which can contain newlines + pattern = re.compile(r'(,\n|[^\n-])+') + ret_str = pattern.match(doc, index).group(0).strip() + # New object -> object() + ret_str = re.sub(r'[nN]ew (.*)', r'\1()', ret_str) + + ret = docstr_defaults.get(ret_str, ret_str) + + return param_str, ret + + +def create_from_name(inference_state, compiled_value, name): + access_paths = compiled_value.access_handle.getattr_paths(name, default=None) + + value = None + for access_path in access_paths: + value = create_cached_compiled_value( + inference_state, + access_path, + parent_context=None if value is None else value.as_context(), + ) + return value + + +def _normalize_create_args(func): + """The cache doesn't care about keyword vs. normal args.""" + def wrapper(inference_state, obj, parent_context=None): + return func(inference_state, obj, parent_context) + return wrapper + + +def create_from_access_path(inference_state, access_path): + value = None + for name, access in access_path.accesses: + value = create_cached_compiled_value( + inference_state, + access, + parent_context=None if value is None else value.as_context() + ) + return value + + +@_normalize_create_args +@inference_state_function_cache() +def create_cached_compiled_value(inference_state, access_handle, parent_context): + assert not isinstance(parent_context, CompiledValue) + if parent_context is None: + cls = CompiledModule + else: + cls = CompiledValue + return cls(inference_state, access_handle, parent_context) diff --git a/shared/package-files/69/6907d4576fb844cfe8195bdc90c8db32be5edde7df390357d38bf54f43b611f4/api_util.py b/shared/package-files/69/6907d4576fb844cfe8195bdc90c8db32be5edde7df390357d38bf54f43b611f4/api_util.py new file mode 100644 index 0000000000000000000000000000000000000000..b8bffb7c108bde4335793599434bf1465360758f --- /dev/null +++ b/shared/package-files/69/6907d4576fb844cfe8195bdc90c8db32be5edde7df390357d38bf54f43b611f4/api_util.py @@ -0,0 +1,30 @@ +import numpy as np + + +def prepare_shape_strides_dtype(shape, strides, dtype, order): + dtype = np.dtype(dtype) + if isinstance(shape, int): + shape = (shape,) + if isinstance(strides, int): + strides = (strides,) + else: + strides = strides or _fill_stride_by_order(shape, dtype, order) + return shape, strides, dtype + + +def _fill_stride_by_order(shape, dtype, order): + nd = len(shape) + if nd == 0: + return () + strides = [0] * nd + if order == 'C': + strides[-1] = dtype.itemsize + for d in reversed(range(nd - 1)): + strides[d] = strides[d + 1] * shape[d + 1] + elif order == 'F': + strides[0] = dtype.itemsize + for d in range(1, nd): + strides[d] = strides[d - 1] * shape[d - 1] + else: + raise ValueError('must be either C/F order') + return tuple(strides) diff --git a/shared/package-files/69/6910f6bad3b737c92929e436ce9ce2000f2a82fed7bb5e136c4410cda984ef7a/_native_batch_norm_legit_native.h b/shared/package-files/69/6910f6bad3b737c92929e436ce9ce2000f2a82fed7bb5e136c4410cda984ef7a/_native_batch_norm_legit_native.h new file mode 100644 index 0000000000000000000000000000000000000000..7ed42a05a144652547de78357edaee1224ca1229 --- /dev/null +++ b/shared/package-files/69/6910f6bad3b737c92929e436ce9ce2000f2a82fed7bb5e136c4410cda984ef7a/_native_batch_norm_legit_native.h @@ -0,0 +1,31 @@ +#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 _native_batch_norm_legit_functional(const at::Tensor & input, const c10::optional & weight, const c10::optional & bias, const at::Tensor & running_mean, const at::Tensor & running_var, bool training, double momentum, double eps); +TORCH_API ::std::tuple _batch_norm_legit_cpu_out(const at::Tensor & input, const c10::optional & weight, const c10::optional & bias, at::Tensor & running_mean, at::Tensor & running_var, bool training, double momentum, double eps, at::Tensor & out, at::Tensor & save_mean, at::Tensor & save_invstd); +TORCH_API ::std::tuple _batch_norm_legit_cpu(const at::Tensor & input, const c10::optional & weight, const c10::optional & bias, at::Tensor & running_mean, at::Tensor & running_var, bool training, double momentum, double eps); +TORCH_API ::std::tuple _batch_norm_legit_cuda_out(const at::Tensor & input, const c10::optional & weight, const c10::optional & bias, at::Tensor & running_mean, at::Tensor & running_var, bool training, double momentum, double eps, at::Tensor & out, at::Tensor & save_mean, at::Tensor & save_invstd); +TORCH_API ::std::tuple _batch_norm_legit_cuda(const at::Tensor & input, const c10::optional & weight, const c10::optional & bias, at::Tensor & running_mean, at::Tensor & running_var, bool training, double momentum, double eps); +TORCH_API ::std::tuple _mkldnn_batch_norm_legit(const at::Tensor & input, const c10::optional & weight, const c10::optional & bias, at::Tensor & running_mean, at::Tensor & running_var, bool training, double momentum, double eps); +TORCH_API ::std::tuple _batch_norm_legit_no_stats_cpu(const at::Tensor & input, const c10::optional & weight, const c10::optional & bias, bool training, double momentum, double eps); +TORCH_API ::std::tuple _batch_norm_legit_no_stats_cpu_out(const at::Tensor & input, const c10::optional & weight, const c10::optional & bias, bool training, double momentum, double eps, at::Tensor & out, at::Tensor & save_mean, at::Tensor & save_invstd); +TORCH_API ::std::tuple _batch_norm_legit_no_stats_cuda(const at::Tensor & input, const c10::optional & weight, const c10::optional & bias, bool training, double momentum, double eps); +TORCH_API ::std::tuple _batch_norm_legit_no_stats_cuda_out(const at::Tensor & input, const c10::optional & weight, const c10::optional & bias, bool training, double momentum, double eps, at::Tensor & out, at::Tensor & save_mean, at::Tensor & save_invstd); +TORCH_API ::std::tuple _mkldnn_batch_norm_legit_no_stats(const at::Tensor & input, const c10::optional & weight, const c10::optional & bias, bool training, double momentum, double eps); +} // namespace native +} // namespace at diff --git a/shared/package-files/69/6916ebca48ebbe5faa3819261a3945307e2b6d6612a810501d179a9d20289858/mstats.py b/shared/package-files/69/6916ebca48ebbe5faa3819261a3945307e2b6d6612a810501d179a9d20289858/mstats.py new file mode 100644 index 0000000000000000000000000000000000000000..88016af71803dc5c4ebadba168f22cdcd8273dbb --- /dev/null +++ b/shared/package-files/69/6916ebca48ebbe5faa3819261a3945307e2b6d6612a810501d179a9d20289858/mstats.py @@ -0,0 +1,140 @@ +""" +=================================================================== +Statistical functions for masked arrays (:mod:`scipy.stats.mstats`) +=================================================================== + +.. currentmodule:: scipy.stats.mstats + +This module contains a large number of statistical functions that can +be used with masked arrays. + +Most of these functions are similar to those in `scipy.stats` but might +have small differences in the API or in the algorithm used. Since this +is a relatively new package, some API changes are still possible. + +Summary statistics +================== + +.. autosummary:: + :toctree: generated/ + + describe + gmean + hmean + kurtosis + mode + mquantiles + hdmedian + hdquantiles + hdquantiles_sd + idealfourths + plotting_positions + meppf + moment + skew + tmean + tvar + tmin + tmax + tsem + variation + find_repeats + sem + trimmed_mean + trimmed_mean_ci + trimmed_std + trimmed_var + +Frequency statistics +==================== + +.. autosummary:: + :toctree: generated/ + + scoreatpercentile + +Correlation functions +===================== + +.. autosummary:: + :toctree: generated/ + + f_oneway + pearsonr + spearmanr + pointbiserialr + kendalltau + kendalltau_seasonal + linregress + siegelslopes + theilslopes + sen_seasonal_slopes + +Statistical tests +================= + +.. autosummary:: + :toctree: generated/ + + ttest_1samp + ttest_onesamp + ttest_ind + ttest_rel + chisquare + kstest + ks_2samp + ks_1samp + ks_twosamp + mannwhitneyu + rankdata + kruskal + kruskalwallis + friedmanchisquare + brunnermunzel + skewtest + kurtosistest + normaltest + +Transformations +=============== + +.. autosummary:: + :toctree: generated/ + + obrientransform + trim + trima + trimmed_stde + trimr + trimtail + trimboth + winsorize + zmap + zscore + +Other +===== + +.. autosummary:: + :toctree: generated/ + + argstoarray + count_tied_groups + msign + compare_medians_ms + median_cihs + mjci + mquantiles_cimj + rsh + +""" +from . import _mstats_basic +from . import _mstats_extras +from ._mstats_basic import * # noqa: F403 +from ._mstats_extras import * # noqa: F403 +# Functions that support masked array input in stats but need to be kept in the +# mstats namespace for backwards compatibility: +from scipy.stats import gmean, hmean, zmap, zscore, chisquare + +__all__ = _mstats_basic.__all__ + _mstats_extras.__all__ +__all__ += ['gmean', 'hmean', 'zmap', 'zscore', 'chisquare'] diff --git a/shared/package-files/69/691a75f140888284976b3758762acec0657493c1a3e28e5e35124be7aa79e817/test_join.py b/shared/package-files/69/691a75f140888284976b3758762acec0657493c1a3e28e5e35124be7aa79e817/test_join.py new file mode 100644 index 0000000000000000000000000000000000000000..edd0feaaa1159ff8340af772d27f2a7af09ceb87 --- /dev/null +++ b/shared/package-files/69/691a75f140888284976b3758762acec0657493c1a3e28e5e35124be7aa79e817/test_join.py @@ -0,0 +1,268 @@ +import numpy as np +import pytest + +from pandas import ( + DataFrame, + Index, + Interval, + MultiIndex, + Series, + StringDtype, +) +import pandas._testing as tm + + +@pytest.mark.parametrize( + "other", [Index(["three", "one", "two"]), Index(["one"]), Index(["one", "three"])] +) +def test_join_level(idx, other, join_type): + join_index, lidx, ridx = other.join( + idx, how=join_type, level="second", return_indexers=True + ) + + exp_level = other.join(idx.levels[1], how=join_type) + assert join_index.levels[0].equals(idx.levels[0]) + assert join_index.levels[1].equals(exp_level) + + # pare down levels + mask = np.array([x[1] in exp_level for x in idx], dtype=bool) + exp_values = idx.values[mask] + tm.assert_numpy_array_equal(join_index.values, exp_values) + + if join_type in ("outer", "inner"): + join_index2, ridx2, lidx2 = idx.join( + other, how=join_type, level="second", return_indexers=True + ) + + assert join_index.equals(join_index2) + tm.assert_numpy_array_equal(lidx, lidx2) + tm.assert_numpy_array_equal(ridx, ridx2) + tm.assert_numpy_array_equal(join_index2.values, exp_values) + + +def test_join_level_corner_case(idx): + # some corner cases + index = Index(["three", "one", "two"]) + result = index.join(idx, level="second") + assert isinstance(result, MultiIndex) + + with pytest.raises(TypeError, match="Join.*MultiIndex.*ambiguous"): + idx.join(idx, level=1) + + +def test_join_self(idx, join_type): + result = idx.join(idx, how=join_type) + expected = idx + if join_type == "outer": + expected = expected.sort_values() + tm.assert_index_equal(result, expected) + + +def test_join_multi(): + # GH 10665 + midx = MultiIndex.from_product([np.arange(4), np.arange(4)], names=["a", "b"]) + idx = Index([1, 2, 5], name="b") + + # inner + jidx, lidx, ridx = midx.join(idx, how="inner", return_indexers=True) + exp_idx = MultiIndex.from_product([np.arange(4), [1, 2]], names=["a", "b"]) + exp_lidx = np.array([1, 2, 5, 6, 9, 10, 13, 14], dtype=np.intp) + exp_ridx = np.array([0, 1, 0, 1, 0, 1, 0, 1], dtype=np.intp) + tm.assert_index_equal(jidx, exp_idx) + tm.assert_numpy_array_equal(lidx, exp_lidx) + tm.assert_numpy_array_equal(ridx, exp_ridx) + # flip + jidx, ridx, lidx = idx.join(midx, how="inner", return_indexers=True) + tm.assert_index_equal(jidx, exp_idx) + tm.assert_numpy_array_equal(lidx, exp_lidx) + tm.assert_numpy_array_equal(ridx, exp_ridx) + + # keep MultiIndex + jidx, lidx, ridx = midx.join(idx, how="left", return_indexers=True) + exp_ridx = np.array( + [-1, 0, 1, -1, -1, 0, 1, -1, -1, 0, 1, -1, -1, 0, 1, -1], dtype=np.intp + ) + tm.assert_index_equal(jidx, midx) + assert lidx is None + tm.assert_numpy_array_equal(ridx, exp_ridx) + # flip + jidx, ridx, lidx = idx.join(midx, how="right", return_indexers=True) + tm.assert_index_equal(jidx, midx) + assert lidx is None + tm.assert_numpy_array_equal(ridx, exp_ridx) + + +def test_join_multi_wrong_order(): + # GH 25760 + # GH 28956 + + midx1 = MultiIndex.from_product([[1, 2], [3, 4]], names=["a", "b"]) + midx2 = MultiIndex.from_product([[1, 2], [3, 4]], names=["b", "a"]) + + join_idx, lidx, ridx = midx1.join(midx2, return_indexers=True) + + exp_ridx = np.array([-1, -1, -1, -1], dtype=np.intp) + + tm.assert_index_equal(midx1, join_idx) + assert lidx is None + tm.assert_numpy_array_equal(ridx, exp_ridx) + + +def test_join_multi_return_indexers(): + # GH 34074 + + midx1 = MultiIndex.from_product([[1, 2], [3, 4], [5, 6]], names=["a", "b", "c"]) + midx2 = MultiIndex.from_product([[1, 2], [3, 4]], names=["a", "b"]) + + result = midx1.join(midx2, return_indexers=False) + tm.assert_index_equal(result, midx1) + + +def test_join_overlapping_interval_level(): + # GH 44096 + idx_1 = MultiIndex.from_tuples( + [ + (1, Interval(0.0, 1.0)), + (1, Interval(1.0, 2.0)), + (1, Interval(2.0, 5.0)), + (2, Interval(0.0, 1.0)), + (2, Interval(1.0, 3.0)), # interval limit is here at 3.0, not at 2.0 + (2, Interval(3.0, 5.0)), + ], + names=["num", "interval"], + ) + + idx_2 = MultiIndex.from_tuples( + [ + (1, Interval(2.0, 5.0)), + (1, Interval(0.0, 1.0)), + (1, Interval(1.0, 2.0)), + (2, Interval(3.0, 5.0)), + (2, Interval(0.0, 1.0)), + (2, Interval(1.0, 3.0)), + ], + names=["num", "interval"], + ) + + expected = MultiIndex.from_tuples( + [ + (1, Interval(0.0, 1.0)), + (1, Interval(1.0, 2.0)), + (1, Interval(2.0, 5.0)), + (2, Interval(0.0, 1.0)), + (2, Interval(1.0, 3.0)), + (2, Interval(3.0, 5.0)), + ], + names=["num", "interval"], + ) + result = idx_1.join(idx_2, how="outer") + + tm.assert_index_equal(result, expected) + + +def test_join_midx_ea(): + # GH#49277 + midx = MultiIndex.from_arrays( + [Series([1, 1, 3], dtype="Int64"), Series([1, 2, 3], dtype="Int64")], + names=["a", "b"], + ) + midx2 = MultiIndex.from_arrays( + [Series([1], dtype="Int64"), Series([3], dtype="Int64")], names=["a", "c"] + ) + result = midx.join(midx2, how="inner") + expected = MultiIndex.from_arrays( + [ + Series([1, 1], dtype="Int64"), + Series([1, 2], dtype="Int64"), + Series([3, 3], dtype="Int64"), + ], + names=["a", "b", "c"], + ) + tm.assert_index_equal(result, expected) + + +def test_join_midx_string(): + # GH#49277 + midx = MultiIndex.from_arrays( + [ + Series(["a", "a", "c"], dtype=StringDtype()), + Series(["a", "b", "c"], dtype=StringDtype()), + ], + names=["a", "b"], + ) + midx2 = MultiIndex.from_arrays( + [Series(["a"], dtype=StringDtype()), Series(["c"], dtype=StringDtype())], + names=["a", "c"], + ) + result = midx.join(midx2, how="inner") + expected = MultiIndex.from_arrays( + [ + Series(["a", "a"], dtype=StringDtype()), + Series(["a", "b"], dtype=StringDtype()), + Series(["c", "c"], dtype=StringDtype()), + ], + names=["a", "b", "c"], + ) + tm.assert_index_equal(result, expected) + + +def test_join_multi_with_nan(): + # GH29252 + df1 = DataFrame( + data={"col1": [1.1, 1.2]}, + index=MultiIndex.from_product([["A"], [1.0, 2.0]], names=["id1", "id2"]), + ) + df2 = DataFrame( + data={"col2": [2.1, 2.2]}, + index=MultiIndex.from_product([["A"], [np.nan, 2.0]], names=["id1", "id2"]), + ) + result = df1.join(df2) + expected = DataFrame( + data={"col1": [1.1, 1.2], "col2": [np.nan, 2.2]}, + index=MultiIndex.from_product([["A"], [1.0, 2.0]], names=["id1", "id2"]), + ) + tm.assert_frame_equal(result, expected) + + +@pytest.mark.parametrize("val", [0, 5]) +def test_join_dtypes(any_numeric_ea_dtype, val): + # GH#49830 + midx = MultiIndex.from_arrays([Series([1, 2], dtype=any_numeric_ea_dtype), [3, 4]]) + midx2 = MultiIndex.from_arrays( + [Series([1, val, val], dtype=any_numeric_ea_dtype), [3, 4, 4]] + ) + result = midx.join(midx2, how="outer") + expected = MultiIndex.from_arrays( + [Series([val, val, 1, 2], dtype=any_numeric_ea_dtype), [4, 4, 3, 4]] + ).sort_values() + tm.assert_index_equal(result, expected) + + +def test_join_dtypes_all_nan(any_numeric_ea_dtype): + # GH#49830 + midx = MultiIndex.from_arrays( + [Series([1, 2], dtype=any_numeric_ea_dtype), [np.nan, np.nan]] + ) + midx2 = MultiIndex.from_arrays( + [Series([1, 0, 0], dtype=any_numeric_ea_dtype), [np.nan, np.nan, np.nan]] + ) + result = midx.join(midx2, how="outer") + expected = MultiIndex.from_arrays( + [ + Series([0, 0, 1, 2], dtype=any_numeric_ea_dtype), + [np.nan, np.nan, np.nan, np.nan], + ] + ) + tm.assert_index_equal(result, expected) + + +def test_join_index_levels(): + # GH#53093 + midx = midx = MultiIndex.from_tuples([("a", "2019-02-01"), ("a", "2019-02-01")]) + midx2 = MultiIndex.from_tuples([("a", "2019-01-31")]) + result = midx.join(midx2, how="outer") + expected = MultiIndex.from_tuples( + [("a", "2019-01-31"), ("a", "2019-02-01"), ("a", "2019-02-01")] + ) + tm.assert_index_equal(result.levels[1], expected.levels[1]) + tm.assert_index_equal(result, expected) diff --git a/shared/package-files/69/692adac0bee94cc778d77a744fa69a2f0b21b9db193648aa31b3fff61863c66d/_pack_padded_sequence_backward_native.h b/shared/package-files/69/692adac0bee94cc778d77a744fa69a2f0b21b9db193648aa31b3fff61863c66d/_pack_padded_sequence_backward_native.h new file mode 100644 index 0000000000000000000000000000000000000000..a41f58f21a7d21c6f0c3ec8ad255084a586857fb --- /dev/null +++ b/shared/package-files/69/692adac0bee94cc778d77a744fa69a2f0b21b9db193648aa31b3fff61863c66d/_pack_padded_sequence_backward_native.h @@ -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 _pack_padded_sequence_backward_symint(const at::Tensor & grad, c10::SymIntArrayRef input_size, const at::Tensor & batch_sizes, bool batch_first); +} // namespace native +} // namespace at diff --git a/shared/package-files/69/6935e76b73787ed11b714c44f3abe5f3806ee64262415ce00db3b919b81bfb98/batch_norm.h b/shared/package-files/69/6935e76b73787ed11b714c44f3abe5f3806ee64262415ce00db3b919b81bfb98/batch_norm.h new file mode 100644 index 0000000000000000000000000000000000000000..cbddde86ad8ba02805a2f0c339da41648bbef157 --- /dev/null +++ b/shared/package-files/69/6935e76b73787ed11b714c44f3abe5f3806ee64262415ce00db3b919b81bfb98/batch_norm.h @@ -0,0 +1,33 @@ +#pragma once + +#include +#include + +namespace at::native { + +using batch_norm_fn = void (*)(Tensor&, const Tensor&, const Tensor&, + const Tensor&, const Tensor&, const Tensor&, const Tensor&, const Tensor&, bool, double); +using batch_norm_collect_stats_fn = void (*)(Tensor&, Tensor&, const Tensor&); +using batch_norm_backward_fn = void(*)(Tensor&, Tensor&, Tensor&, const Tensor&, + const Tensor&, const Tensor&, const Tensor&, const Tensor&, const Tensor&, const Tensor&, bool, double); + +DECLARE_DISPATCH(batch_norm_fn, batch_norm_cpu_stub); +DECLARE_DISPATCH(batch_norm_collect_stats_fn, batch_norm_cpu_collect_stats_stub); +DECLARE_DISPATCH(batch_norm_backward_fn, batch_norm_cpu_backward_stub); + +// TensorAccessor when it is defined to work around undefined... +template +static TensorAccessor conditional_accessor_1d(const Tensor& t) { + if (! t.defined()) { + return TensorAccessor(nullptr, nullptr, nullptr); + } + return t.accessor(); +} + +template +static scalar_t* conditional_data_ptr(const Tensor& t) { + return t.defined() ? t.contiguous().data_ptr() + : nullptr; +} + +} // namespace at::native diff --git a/shared/package-files/69/693ac2b7a6e0f44b50cc510850693de31d787836bbc5c753711722f7384119cb/adaptive_max_pool2d_compositeexplicitautogradnonfunctional_dispatch.h b/shared/package-files/69/693ac2b7a6e0f44b50cc510850693de31d787836bbc5c753711722f7384119cb/adaptive_max_pool2d_compositeexplicitautogradnonfunctional_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..7d5ec49e102c5aad2f38169383f551aaf4ec0e8f --- /dev/null +++ b/shared/package-files/69/693ac2b7a6e0f44b50cc510850693de31d787836bbc5c753711722f7384119cb/adaptive_max_pool2d_compositeexplicitautogradnonfunctional_dispatch.h @@ -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 ::std::tuple adaptive_max_pool2d(const at::Tensor & self, at::IntArrayRef output_size); + +} // namespace compositeexplicitautogradnonfunctional +} // namespace at diff --git a/shared/package-files/69/6946e115ca06e0a559cbdcbe43ff20d52234f6062fb97155accd8f973248dd09/darwin-m-f b/shared/package-files/69/6946e115ca06e0a559cbdcbe43ff20d52234f6062fb97155accd8f973248dd09/darwin-m-f new file mode 100644 index 0000000000000000000000000000000000000000..09b00e77929ff81cadc79bb4e0e5ebcef95a2f07 Binary files /dev/null and b/shared/package-files/69/6946e115ca06e0a559cbdcbe43ff20d52234f6062fb97155accd8f973248dd09/darwin-m-f differ diff --git a/shared/package-files/69/6946e115ca06e0a559cbdcbe43ff20d52234f6062fb97155accd8f973248dd09/xnuppc-m-f b/shared/package-files/69/6946e115ca06e0a559cbdcbe43ff20d52234f6062fb97155accd8f973248dd09/xnuppc-m-f new file mode 100644 index 0000000000000000000000000000000000000000..09b00e77929ff81cadc79bb4e0e5ebcef95a2f07 Binary files /dev/null and b/shared/package-files/69/6946e115ca06e0a559cbdcbe43ff20d52234f6062fb97155accd8f973248dd09/xnuppc-m-f differ diff --git a/shared/package-files/69/69491f1d198acefc3867217c6fa5245119e626f3e0525ed82dc1b62275d82c2b/jiterator.py b/shared/package-files/69/69491f1d198acefc3867217c6fa5245119e626f3e0525ed82dc1b62275d82c2b/jiterator.py new file mode 100644 index 0000000000000000000000000000000000000000..25d25482419e635612855ed402fd02ef58709417 --- /dev/null +++ b/shared/package-files/69/69491f1d198acefc3867217c6fa5245119e626f3e0525ed82dc1b62275d82c2b/jiterator.py @@ -0,0 +1,185 @@ +import re +from typing import Callable, List + +import torch +from torch import Tensor + +__all__: List[str] = [] + + +class _CodeParser: + def __init__(self, code_string: str): + optional_ws = r"\s*" + required_ws = r"\s+" + template_params = r"(?P\<.+\>)" + return_type = r"(?P\w+)" + function_name = r"(?P\w+)" + function_params = r"(?P\(.+\))" + function_body = r"(?P\{.+\})" + + pattern = ( + optional_ws + + "template" + + optional_ws + + template_params + + optional_ws + + return_type + + required_ws + + function_name + + optional_ws + + function_params + + optional_ws + + function_body + + optional_ws + ) + + result = re.match( + pattern, code_string, re.DOTALL + ) # DOTALL for matching multiline + + if result is None: + raise Exception( + f"Couldn't parse code, please check correctness:\n {code_string}" + ) + + self.template_params = result["template_params"] + self.return_type = result["return_type"] + self.function_name = result["function_name"] + self.function_params = result["function_params"] + self.function_body = result["function_body"] + + +class _JittedFunction: + def __init__( + self, code_string: str, return_by_ref: bool, num_outputs: int, **kwargs + ): + self.code_string = code_string + + assert ( + return_by_ref or num_outputs == 1 + ), "Return by value only works for single output. " + self.return_by_ref = return_by_ref + self.num_outputs = num_outputs + + parsed_code = _CodeParser(code_string) + self.kernel_name = parsed_code.function_name + + self.kwargs_dict = kwargs + self.is_cuda_available = torch.cuda.is_available() + + def __call__(self, *tensors: Tensor, **kwargs): + # Jiterator follow torch.cuda's lazy initialization behavior + # Defer checking cuda's availability at the function invocation time + assert ( + self.is_cuda_available + ), "Jiterator is only supported on CUDA and ROCm GPUs, none are available." + + assert len(tensors) <= 8, "jiterator only supports up to 8 tensor inputs." + + expanded_kwargs = self.kwargs_dict.copy() + for key, value in kwargs.items(): + if key in self.kwargs_dict: + expanded_kwargs[key] = value + else: + raise KeyError(f"{key} is not declared in function definition") + + return torch._C._cuda_jiterator_compile_and_launch_kernel( + self.code_string, + self.kernel_name, + self.return_by_ref, + self.num_outputs, + tensors, + expanded_kwargs, + ) + + +def _create_jit_fn(code_string: str, **kwargs) -> Callable: + """ + Create a jiterator-generated cuda kernel for an elementwise op. + + The code string has to be a valid CUDA function that describes the computation for a single element. The code + string has to follow the c++ template pattern, as shown in the example below. This function will be inlined + into elementwise kernel template, and compiled on the fly. Compiled kernel will be cached in memory, as well as + local temp dir. + + Jiterator-generated kernels accepts noncontiguous tensors, and supports broadcasting and type promotion. + + Args: + code_string (str): CUDA code string to be compiled by jiterator. The entry functor must return by value. + kwargs (Dict, optional): Keyword arguments for generated function + + Example:: + + code_string = "template T my_kernel(T x, T y, T alpha) { return -x + alpha * y; }" + jitted_fn = create_jit_fn(code_string, alpha=1.0) + a = torch.rand(3, device='cuda') + b = torch.rand(3, device='cuda') + # invoke jitted function like a regular python function + result = jitted_fn(a, b, alpha=3.14) + + code_string also allows multiple function definitions, and the last function will be treated as the entry function. + + Example:: + + code_string = "template T util_fn(T x, T y) { return ::sin(x) + ::cos(y); }" + code_string += "template T my_kernel(T x, T y, T val) { return ::min(val, util_fn(x, y)); }" + jitted_fn = create_jit_fn(code_string, val=0.0) + a = torch.rand(3, device='cuda') + b = torch.rand(3, device='cuda') + # invoke jitted function like a regular python function + result = jitted_fn(a, b) # using default val=0.0 + + Jiterator can be used together with python registration to override an operator's cuda kernel. + Following example is overriding gelu's cuda kernel with relu. + + Example:: + + code_string = "template T my_gelu(T a) { return a > 0 ? a : 0; }" + my_gelu = create_jit_fn(code_string) + my_lib = torch.library.Library("aten", "IMPL") + my_lib.impl('aten::gelu', my_gelu, "CUDA") + # torch.nn.GELU and torch.nn.function.gelu are now overridden + a = torch.rand(3, device='cuda') + torch.allclose(torch.nn.functional.gelu(a), torch.nn.functional.relu(a)) + + .. warning:: + This API is in beta and may change in future releases. + + .. warning:: + This API only supports up to 8 inputs and 1 output + + .. warning:: + All input tensors must live in CUDA device + """ + return _JittedFunction(code_string, return_by_ref=False, num_outputs=1, **kwargs) + + +def _create_multi_output_jit_fn( + code_string: str, num_outputs: int, **kwargs +) -> Callable: + """ + Create a jiterator-generated cuda kernel for an elementwise op that supports returning one or more outputs. + + Args: + code_string (str): CUDA code string to be compiled by jiterator. The entry functor must return value by reference. + num_outputs(int): number of outputs return by the kernel + kwargs (Dict, optional): Keyword arguments for generated function + + Example:: + + code_string = "template void my_kernel(T x, T y, T alpha, T& out) { out = -x + alpha * y; }" + jitted_fn = create_jit_fn(code_string, alpha=1.0) + a = torch.rand(3, device='cuda') + b = torch.rand(3, device='cuda') + # invoke jitted function like a regular python function + result = jitted_fn(a, b, alpha=3.14) + + .. warning:: + This API is in beta and may change in future releases. + + .. warning:: + This API only supports up to 8 inputs and 8 outputs + """ + return _JittedFunction( + code_string, return_by_ref=True, num_outputs=num_outputs, **kwargs + ) diff --git a/shared/package-files/69/6952e5e4a8c503a5b72bed6300defe9b127df5de6d8b9b1e0287a356c4869bff/select_backward_compositeexplicitautograd_dispatch.h b/shared/package-files/69/6952e5e4a8c503a5b72bed6300defe9b127df5de6d8b9b1e0287a356c4869bff/select_backward_compositeexplicitautograd_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..5943043edf69bcf684e26b0f8d6aeb7c3455fcb1 --- /dev/null +++ b/shared/package-files/69/6952e5e4a8c503a5b72bed6300defe9b127df5de6d8b9b1e0287a356c4869bff/select_backward_compositeexplicitautograd_dispatch.h @@ -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 & select_backward_out(at::Tensor & out, const at::Tensor & grad_output, at::IntArrayRef input_sizes, int64_t dim, int64_t index); +TORCH_API at::Tensor & select_backward_outf(const at::Tensor & grad_output, at::IntArrayRef input_sizes, int64_t dim, int64_t index, at::Tensor & out); +TORCH_API at::Tensor & select_backward_symint_out(at::Tensor & out, const at::Tensor & grad_output, c10::SymIntArrayRef input_sizes, int64_t dim, c10::SymInt index); +TORCH_API at::Tensor & select_backward_symint_outf(const at::Tensor & grad_output, c10::SymIntArrayRef input_sizes, int64_t dim, c10::SymInt index, at::Tensor & out); + +} // namespace compositeexplicitautograd +} // namespace at diff --git a/shared/package-files/69/6955c3321fd80d1b03c0f6d932df17ef78e3bf80d6f20d793353384dd365a974/aesaracode.py b/shared/package-files/69/6955c3321fd80d1b03c0f6d932df17ef78e3bf80d6f20d793353384dd365a974/aesaracode.py new file mode 100644 index 0000000000000000000000000000000000000000..87117e06fadbad7dfa1fc3afba30e7e254133097 --- /dev/null +++ b/shared/package-files/69/6955c3321fd80d1b03c0f6d932df17ef78e3bf80d6f20d793353384dd365a974/aesaracode.py @@ -0,0 +1,539 @@ +from __future__ import annotations +from typing import Any + +from sympy.external import import_module +from sympy.printing.printer import Printer +from sympy.utilities.iterables import is_sequence +import sympy +from functools import partial + + +aesara = import_module('aesara') + +if aesara: + aes = aesara.scalar + aet = aesara.tensor + from aesara.tensor import nlinalg + from aesara.tensor.elemwise import Elemwise + from aesara.tensor.elemwise import DimShuffle + + # `true_divide` replaced `true_div` in Aesara 2.8.11 (released 2023) to + # match NumPy + # XXX: Remove this when not needed to support older versions. + true_divide = getattr(aet, 'true_divide', None) + if true_divide is None: + true_divide = aet.true_div + + mapping = { + sympy.Add: aet.add, + sympy.Mul: aet.mul, + sympy.Abs: aet.abs, + sympy.sign: aet.sgn, + sympy.ceiling: aet.ceil, + sympy.floor: aet.floor, + sympy.log: aet.log, + sympy.exp: aet.exp, + sympy.sqrt: aet.sqrt, + sympy.cos: aet.cos, + sympy.acos: aet.arccos, + sympy.sin: aet.sin, + sympy.asin: aet.arcsin, + sympy.tan: aet.tan, + sympy.atan: aet.arctan, + sympy.atan2: aet.arctan2, + sympy.cosh: aet.cosh, + sympy.acosh: aet.arccosh, + sympy.sinh: aet.sinh, + sympy.asinh: aet.arcsinh, + sympy.tanh: aet.tanh, + sympy.atanh: aet.arctanh, + sympy.re: aet.real, + sympy.im: aet.imag, + sympy.arg: aet.angle, + sympy.erf: aet.erf, + sympy.gamma: aet.gamma, + sympy.loggamma: aet.gammaln, + sympy.Pow: aet.pow, + sympy.Eq: aet.eq, + sympy.StrictGreaterThan: aet.gt, + sympy.StrictLessThan: aet.lt, + sympy.LessThan: aet.le, + sympy.GreaterThan: aet.ge, + sympy.And: aet.bitwise_and, # bitwise + sympy.Or: aet.bitwise_or, # bitwise + sympy.Not: aet.invert, # bitwise + sympy.Xor: aet.bitwise_xor, # bitwise + sympy.Max: aet.maximum, # Sympy accept >2 inputs, Aesara only 2 + sympy.Min: aet.minimum, # Sympy accept >2 inputs, Aesara only 2 + sympy.conjugate: aet.conj, + sympy.core.numbers.ImaginaryUnit: lambda:aet.complex(0,1), + # Matrices + sympy.MatAdd: Elemwise(aes.add), + sympy.HadamardProduct: Elemwise(aes.mul), + sympy.Trace: nlinalg.trace, + sympy.Determinant : nlinalg.det, + sympy.Inverse: nlinalg.matrix_inverse, + sympy.Transpose: DimShuffle((False, False), [1, 0]), + } + + +class AesaraPrinter(Printer): + """ Code printer which creates Aesara symbolic expression graphs. + + Parameters + ========== + + cache : dict + Cache dictionary to use. If None (default) will use + the global cache. To create a printer which does not depend on or alter + global state pass an empty dictionary. Note: the dictionary is not + copied on initialization of the printer and will be updated in-place, + so using the same dict object when creating multiple printers or making + multiple calls to :func:`.aesara_code` or :func:`.aesara_function` means + the cache is shared between all these applications. + + Attributes + ========== + + cache : dict + A cache of Aesara variables which have been created for SymPy + symbol-like objects (e.g. :class:`sympy.core.symbol.Symbol` or + :class:`sympy.matrices.expressions.MatrixSymbol`). This is used to + ensure that all references to a given symbol in an expression (or + multiple expressions) are printed as the same Aesara variable, which is + created only once. Symbols are differentiated only by name and type. The + format of the cache's contents should be considered opaque to the user. + """ + printmethod = "_aesara" + + def __init__(self, *args, **kwargs): + self.cache = kwargs.pop('cache', {}) + super().__init__(*args, **kwargs) + + def _get_key(self, s, name=None, dtype=None, broadcastable=None): + """ Get the cache key for a SymPy object. + + Parameters + ========== + + s : sympy.core.basic.Basic + SymPy object to get key for. + + name : str + Name of object, if it does not have a ``name`` attribute. + """ + + if name is None: + name = s.name + + return (name, type(s), s.args, dtype, broadcastable) + + def _get_or_create(self, s, name=None, dtype=None, broadcastable=None): + """ + Get the Aesara variable for a SymPy symbol from the cache, or create it + if it does not exist. + """ + + # Defaults + if name is None: + name = s.name + if dtype is None: + dtype = 'floatX' + if broadcastable is None: + broadcastable = () + + key = self._get_key(s, name, dtype=dtype, broadcastable=broadcastable) + + if key in self.cache: + return self.cache[key] + + value = aet.tensor(name=name, dtype=dtype, broadcastable=broadcastable) + self.cache[key] = value + return value + + def _print_Symbol(self, s, **kwargs): + dtype = kwargs.get('dtypes', {}).get(s) + bc = kwargs.get('broadcastables', {}).get(s) + return self._get_or_create(s, dtype=dtype, broadcastable=bc) + + def _print_AppliedUndef(self, s, **kwargs): + name = str(type(s)) + '_' + str(s.args[0]) + dtype = kwargs.get('dtypes', {}).get(s) + bc = kwargs.get('broadcastables', {}).get(s) + return self._get_or_create(s, name=name, dtype=dtype, broadcastable=bc) + + def _print_Basic(self, expr, **kwargs): + op = mapping[type(expr)] + children = [self._print(arg, **kwargs) for arg in expr.args] + return op(*children) + + def _print_Number(self, n, **kwargs): + # Integers already taken care of below, interpret as float + return float(n.evalf()) + + def _print_MatrixSymbol(self, X, **kwargs): + dtype = kwargs.get('dtypes', {}).get(X) + return self._get_or_create(X, dtype=dtype, broadcastable=(None, None)) + + def _print_DenseMatrix(self, X, **kwargs): + if not hasattr(aet, 'stacklists'): + raise NotImplementedError( + "Matrix translation not yet supported in this version of Aesara") + + return aet.stacklists([ + [self._print(arg, **kwargs) for arg in L] + for L in X.tolist() + ]) + + _print_ImmutableMatrix = _print_ImmutableDenseMatrix = _print_DenseMatrix + + def _print_MatMul(self, expr, **kwargs): + children = [self._print(arg, **kwargs) for arg in expr.args] + result = children[0] + for child in children[1:]: + result = aet.dot(result, child) + return result + + def _print_MatPow(self, expr, **kwargs): + children = [self._print(arg, **kwargs) for arg in expr.args] + result = 1 + if isinstance(children[1], int) and children[1] > 0: + for i in range(children[1]): + result = aet.dot(result, children[0]) + else: + raise NotImplementedError('''Only non-negative integer + powers of matrices can be handled by Aesara at the moment''') + return result + + def _print_MatrixSlice(self, expr, **kwargs): + parent = self._print(expr.parent, **kwargs) + rowslice = self._print(slice(*expr.rowslice), **kwargs) + colslice = self._print(slice(*expr.colslice), **kwargs) + return parent[rowslice, colslice] + + def _print_BlockMatrix(self, expr, **kwargs): + nrows, ncols = expr.blocks.shape + blocks = [[self._print(expr.blocks[r, c], **kwargs) + for c in range(ncols)] + for r in range(nrows)] + return aet.join(0, *[aet.join(1, *row) for row in blocks]) + + + def _print_slice(self, expr, **kwargs): + return slice(*[self._print(i, **kwargs) + if isinstance(i, sympy.Basic) else i + for i in (expr.start, expr.stop, expr.step)]) + + def _print_Pi(self, expr, **kwargs): + return 3.141592653589793 + + def _print_Piecewise(self, expr, **kwargs): + import numpy as np + e, cond = expr.args[0].args # First condition and corresponding value + + # Print conditional expression and value for first condition + p_cond = self._print(cond, **kwargs) + p_e = self._print(e, **kwargs) + + # One condition only + if len(expr.args) == 1: + # Return value if condition else NaN + return aet.switch(p_cond, p_e, np.nan) + + # Return value_1 if condition_1 else evaluate remaining conditions + p_remaining = self._print(sympy.Piecewise(*expr.args[1:]), **kwargs) + return aet.switch(p_cond, p_e, p_remaining) + + def _print_Rational(self, expr, **kwargs): + return true_divide(self._print(expr.p, **kwargs), + self._print(expr.q, **kwargs)) + + def _print_Integer(self, expr, **kwargs): + return expr.p + + def _print_factorial(self, expr, **kwargs): + return self._print(sympy.gamma(expr.args[0] + 1), **kwargs) + + def _print_Derivative(self, deriv, **kwargs): + from aesara.gradient import Rop + + rv = self._print(deriv.expr, **kwargs) + for var in deriv.variables: + var = self._print(var, **kwargs) + rv = Rop(rv, var, aet.ones_like(var)) + return rv + + def emptyPrinter(self, expr): + return expr + + def doprint(self, expr, dtypes=None, broadcastables=None): + """ Convert a SymPy expression to a Aesara graph variable. + + The ``dtypes`` and ``broadcastables`` arguments are used to specify the + data type, dimension, and broadcasting behavior of the Aesara variables + corresponding to the free symbols in ``expr``. Each is a mapping from + SymPy symbols to the value of the corresponding argument to + ``aesara.tensor.var.TensorVariable``. + + See the corresponding `documentation page`__ for more information on + broadcasting in Aesara. + + .. __: https://aesara.readthedocs.io/en/latest/tutorial/broadcasting.html + + Parameters + ========== + + expr : sympy.core.expr.Expr + SymPy expression to print. + + dtypes : dict + Mapping from SymPy symbols to Aesara datatypes to use when creating + new Aesara variables for those symbols. Corresponds to the ``dtype`` + argument to ``aesara.tensor.var.TensorVariable``. Defaults to ``'floatX'`` + for symbols not included in the mapping. + + broadcastables : dict + Mapping from SymPy symbols to the value of the ``broadcastable`` + argument to ``aesara.tensor.var.TensorVariable`` to use when creating Aesara + variables for those symbols. Defaults to the empty tuple for symbols + not included in the mapping (resulting in a scalar). + + Returns + ======= + + aesara.graph.basic.Variable + A variable corresponding to the expression's value in a Aesara + symbolic expression graph. + + """ + if dtypes is None: + dtypes = {} + if broadcastables is None: + broadcastables = {} + + return self._print(expr, dtypes=dtypes, broadcastables=broadcastables) + + +global_cache: dict[Any, Any] = {} + + +def aesara_code(expr, cache=None, **kwargs): + """ + Convert a SymPy expression into a Aesara graph variable. + + Parameters + ========== + + expr : sympy.core.expr.Expr + SymPy expression object to convert. + + cache : dict + Cached Aesara variables (see :class:`AesaraPrinter.cache + `). Defaults to the module-level global cache. + + dtypes : dict + Passed to :meth:`.AesaraPrinter.doprint`. + + broadcastables : dict + Passed to :meth:`.AesaraPrinter.doprint`. + + Returns + ======= + + aesara.graph.basic.Variable + A variable corresponding to the expression's value in a Aesara symbolic + expression graph. + + """ + if not aesara: + raise ImportError("aesara is required for aesara_code") + + if cache is None: + cache = global_cache + + return AesaraPrinter(cache=cache, settings={}).doprint(expr, **kwargs) + + +def dim_handling(inputs, dim=None, dims=None, broadcastables=None): + r""" + Get value of ``broadcastables`` argument to :func:`.aesara_code` from + keyword arguments to :func:`.aesara_function`. + + Included for backwards compatibility. + + Parameters + ========== + + inputs + Sequence of input symbols. + + dim : int + Common number of dimensions for all inputs. Overrides other arguments + if given. + + dims : dict + Mapping from input symbols to number of dimensions. Overrides + ``broadcastables`` argument if given. + + broadcastables : dict + Explicit value of ``broadcastables`` argument to + :meth:`.AesaraPrinter.doprint`. If not None function will return this value unchanged. + + Returns + ======= + dict + Dictionary mapping elements of ``inputs`` to their "broadcastable" + values (tuple of ``bool``\ s). + """ + if dim is not None: + return {s: (False,) * dim for s in inputs} + + if dims is not None: + maxdim = max(dims.values()) + return { + s: (False,) * d + (True,) * (maxdim - d) + for s, d in dims.items() + } + + if broadcastables is not None: + return broadcastables + + return {} + + +def aesara_function(inputs, outputs, scalar=False, *, + dim=None, dims=None, broadcastables=None, **kwargs): + """ + Create a Aesara function from SymPy expressions. + + The inputs and outputs are converted to Aesara variables using + :func:`.aesara_code` and then passed to ``aesara.function``. + + Parameters + ========== + + inputs + Sequence of symbols which constitute the inputs of the function. + + outputs + Sequence of expressions which constitute the outputs(s) of the + function. The free symbols of each expression must be a subset of + ``inputs``. + + scalar : bool + Convert 0-dimensional arrays in output to scalars. This will return a + Python wrapper function around the Aesara function object. + + cache : dict + Cached Aesara variables (see :class:`AesaraPrinter.cache + `). Defaults to the module-level global cache. + + dtypes : dict + Passed to :meth:`.AesaraPrinter.doprint`. + + broadcastables : dict + Passed to :meth:`.AesaraPrinter.doprint`. + + dims : dict + Alternative to ``broadcastables`` argument. Mapping from elements of + ``inputs`` to integers indicating the dimension of their associated + arrays/tensors. Overrides ``broadcastables`` argument if given. + + dim : int + Another alternative to the ``broadcastables`` argument. Common number of + dimensions to use for all arrays/tensors. + ``aesara_function([x, y], [...], dim=2)`` is equivalent to using + ``broadcastables={x: (False, False), y: (False, False)}``. + + Returns + ======= + callable + A callable object which takes values of ``inputs`` as positional + arguments and returns an output array for each of the expressions + in ``outputs``. If ``outputs`` is a single expression the function will + return a Numpy array, if it is a list of multiple expressions the + function will return a list of arrays. See description of the ``squeeze`` + argument above for the behavior when a single output is passed in a list. + The returned object will either be an instance of + ``aesara.compile.function.types.Function`` or a Python wrapper + function around one. In both cases, the returned value will have a + ``aesara_function`` attribute which points to the return value of + ``aesara.function``. + + Examples + ======== + + >>> from sympy.abc import x, y, z + >>> from sympy.printing.aesaracode import aesara_function + + A simple function with one input and one output: + + >>> f1 = aesara_function([x], [x**2 - 1], scalar=True) + >>> f1(3) + 8.0 + + A function with multiple inputs and one output: + + >>> f2 = aesara_function([x, y, z], [(x**z + y**z)**(1/z)], scalar=True) + >>> f2(3, 4, 2) + 5.0 + + A function with multiple inputs and multiple outputs: + + >>> f3 = aesara_function([x, y], [x**2 + y**2, x**2 - y**2], scalar=True) + >>> f3(2, 3) + [13.0, -5.0] + + See also + ======== + + dim_handling + + """ + if not aesara: + raise ImportError("Aesara is required for aesara_function") + + # Pop off non-aesara keyword args + cache = kwargs.pop('cache', {}) + dtypes = kwargs.pop('dtypes', {}) + + broadcastables = dim_handling( + inputs, dim=dim, dims=dims, broadcastables=broadcastables, + ) + + # Print inputs/outputs + code = partial(aesara_code, cache=cache, dtypes=dtypes, + broadcastables=broadcastables) + tinputs = list(map(code, inputs)) + toutputs = list(map(code, outputs)) + + #fix constant expressions as variables + toutputs = [output if isinstance(output, aesara.graph.basic.Variable) else aet.as_tensor_variable(output) for output in toutputs] + + if len(toutputs) == 1: + toutputs = toutputs[0] + + # Compile aesara func + func = aesara.function(tinputs, toutputs, **kwargs) + + is_0d = [len(o.variable.broadcastable) == 0 for o in func.outputs] + + # No wrapper required + if not scalar or not any(is_0d): + func.aesara_function = func + return func + + # Create wrapper to convert 0-dimensional outputs to scalars + def wrapper(*args): + out = func(*args) + # out can be array(1.0) or [array(1.0), array(2.0)] + + if is_sequence(out): + return [o[()] if is_0d[i] else o for i, o in enumerate(out)] + else: + return out[()] + + wrapper.__wrapped__ = func + wrapper.__doc__ = func.__doc__ + wrapper.aesara_function = func + return wrapper diff --git a/shared/package-files/69/6967aa3d72e1a8154dddab4ceccc901b93bfb8b012f84d086f1c2d463334c44d/accessor.py b/shared/package-files/69/6967aa3d72e1a8154dddab4ceccc901b93bfb8b012f84d086f1c2d463334c44d/accessor.py new file mode 100644 index 0000000000000000000000000000000000000000..da17543f8470d2394ad7d9aac66c6db99b100df0 --- /dev/null +++ b/shared/package-files/69/6967aa3d72e1a8154dddab4ceccc901b93bfb8b012f84d086f1c2d463334c44d/accessor.py @@ -0,0 +1,3571 @@ +from __future__ import annotations + +import codecs +from functools import wraps +import re +from typing import ( + TYPE_CHECKING, + Callable, + Literal, + cast, +) +import warnings + +import numpy as np + +from pandas._config import get_option + +from pandas._libs import lib +from pandas._typing import ( + AlignJoin, + DtypeObj, + F, + Scalar, + npt, +) +from pandas.util._decorators import Appender +from pandas.util._exceptions import find_stack_level + +from pandas.core.dtypes.common import ( + ensure_object, + is_bool_dtype, + is_integer, + is_list_like, + is_object_dtype, + is_re, + is_string_dtype, +) +from pandas.core.dtypes.dtypes import ( + ArrowDtype, + CategoricalDtype, +) +from pandas.core.dtypes.generic import ( + ABCDataFrame, + ABCIndex, + ABCMultiIndex, + ABCSeries, +) +from pandas.core.dtypes.missing import isna + +from pandas.core.arrays import ExtensionArray +from pandas.core.base import NoNewAttributesMixin +from pandas.core.construction import extract_array + +if TYPE_CHECKING: + from collections.abc import ( + Hashable, + Iterator, + ) + + from pandas import ( + DataFrame, + Index, + Series, + ) + +_shared_docs: dict[str, str] = {} +_cpython_optimized_encoders = ( + "utf-8", + "utf8", + "latin-1", + "latin1", + "iso-8859-1", + "mbcs", + "ascii", +) +_cpython_optimized_decoders = _cpython_optimized_encoders + ("utf-16", "utf-32") + + +def forbid_nonstring_types( + forbidden: list[str] | None, name: str | None = None +) -> Callable[[F], F]: + """ + Decorator to forbid specific types for a method of StringMethods. + + For calling `.str.{method}` on a Series or Index, it is necessary to first + initialize the :class:`StringMethods` object, and then call the method. + However, different methods allow different input types, and so this can not + be checked during :meth:`StringMethods.__init__`, but must be done on a + per-method basis. This decorator exists to facilitate this process, and + make it explicit which (inferred) types are disallowed by the method. + + :meth:`StringMethods.__init__` allows the *union* of types its different + methods allow (after skipping NaNs; see :meth:`StringMethods._validate`), + namely: ['string', 'empty', 'bytes', 'mixed', 'mixed-integer']. + + The default string types ['string', 'empty'] are allowed for all methods. + For the additional types ['bytes', 'mixed', 'mixed-integer'], each method + then needs to forbid the types it is not intended for. + + Parameters + ---------- + forbidden : list-of-str or None + List of forbidden non-string types, may be one or more of + `['bytes', 'mixed', 'mixed-integer']`. + name : str, default None + Name of the method to use in the error message. By default, this is + None, in which case the name from the method being wrapped will be + copied. However, for working with further wrappers (like _pat_wrapper + and _noarg_wrapper), it is necessary to specify the name. + + Returns + ------- + func : wrapper + The method to which the decorator is applied, with an added check that + enforces the inferred type to not be in the list of forbidden types. + + Raises + ------ + TypeError + If the inferred type of the underlying data is in `forbidden`. + """ + # deal with None + forbidden = [] if forbidden is None else forbidden + + allowed_types = {"string", "empty", "bytes", "mixed", "mixed-integer"} - set( + forbidden + ) + + def _forbid_nonstring_types(func: F) -> F: + func_name = func.__name__ if name is None else name + + @wraps(func) + def wrapper(self, *args, **kwargs): + if self._inferred_dtype not in allowed_types: + msg = ( + f"Cannot use .str.{func_name} with values of " + f"inferred dtype '{self._inferred_dtype}'." + ) + raise TypeError(msg) + return func(self, *args, **kwargs) + + wrapper.__name__ = func_name + return cast(F, wrapper) + + return _forbid_nonstring_types + + +def _map_and_wrap(name: str | None, docstring: str | None): + @forbid_nonstring_types(["bytes"], name=name) + def wrapper(self): + result = getattr(self._data.array, f"_str_{name}")() + return self._wrap_result( + result, returns_string=name not in ("isnumeric", "isdecimal") + ) + + wrapper.__doc__ = docstring + return wrapper + + +class StringMethods(NoNewAttributesMixin): + """ + Vectorized string functions for Series and Index. + + NAs stay NA unless handled otherwise by a particular method. + Patterned after Python's string methods, with some inspiration from + R's stringr package. + + Examples + -------- + >>> s = pd.Series(["A_Str_Series"]) + >>> s + 0 A_Str_Series + dtype: object + + >>> s.str.split("_") + 0 [A, Str, Series] + dtype: object + + >>> s.str.replace("_", "") + 0 AStrSeries + dtype: object + """ + + # Note: see the docstring in pandas.core.strings.__init__ + # for an explanation of the implementation. + # TODO: Dispatch all the methods + # Currently the following are not dispatched to the array + # * cat + # * extractall + + def __init__(self, data) -> None: + from pandas.core.arrays.string_ import StringDtype + + self._inferred_dtype = self._validate(data) + self._is_categorical = isinstance(data.dtype, CategoricalDtype) + self._is_string = isinstance(data.dtype, StringDtype) + self._data = data + + self._index = self._name = None + if isinstance(data, ABCSeries): + self._index = data.index + self._name = data.name + + # ._values.categories works for both Series/Index + self._parent = data._values.categories if self._is_categorical else data + # save orig to blow up categoricals to the right type + self._orig = data + self._freeze() + + @staticmethod + def _validate(data): + """ + Auxiliary function for StringMethods, infers and checks dtype of data. + + This is a "first line of defence" at the creation of the StringMethods- + object, and just checks that the dtype is in the + *union* of the allowed types over all string methods below; this + restriction is then refined on a per-method basis using the decorator + @forbid_nonstring_types (more info in the corresponding docstring). + + This really should exclude all series/index with any non-string values, + but that isn't practical for performance reasons until we have a str + dtype (GH 9343 / 13877) + + Parameters + ---------- + data : The content of the Series + + Returns + ------- + dtype : inferred dtype of data + """ + if isinstance(data, ABCMultiIndex): + raise AttributeError( + "Can only use .str accessor with Index, not MultiIndex" + ) + + # see _libs/lib.pyx for list of inferred types + allowed_types = ["string", "empty", "bytes", "mixed", "mixed-integer"] + + data = extract_array(data) + + values = getattr(data, "categories", data) # categorical / normal + + inferred_dtype = lib.infer_dtype(values, skipna=True) + + if inferred_dtype not in allowed_types: + raise AttributeError("Can only use .str accessor with string values!") + return inferred_dtype + + def __getitem__(self, key): + result = self._data.array._str_getitem(key) + return self._wrap_result(result) + + def __iter__(self) -> Iterator: + raise TypeError(f"'{type(self).__name__}' object is not iterable") + + def _wrap_result( + self, + result, + name=None, + expand: bool | None = None, + fill_value=np.nan, + returns_string: bool = True, + returns_bool: bool = False, + dtype=None, + ): + from pandas import ( + Index, + MultiIndex, + ) + + if not hasattr(result, "ndim") or not hasattr(result, "dtype"): + if isinstance(result, ABCDataFrame): + result = result.__finalize__(self._orig, name="str") + return result + assert result.ndim < 3 + + # We can be wrapping a string / object / categorical result, in which + # case we'll want to return the same dtype as the input. + # Or we can be wrapping a numeric output, in which case we don't want + # to return a StringArray. + # Ideally the array method returns the right array type. + if expand is None: + # infer from ndim if expand is not specified + expand = result.ndim != 1 + elif expand is True and not isinstance(self._orig, ABCIndex): + # required when expand=True is explicitly specified + # not needed when inferred + if isinstance(result.dtype, ArrowDtype): + import pyarrow as pa + + from pandas.compat import pa_version_under11p0 + + from pandas.core.arrays.arrow.array import ArrowExtensionArray + + value_lengths = pa.compute.list_value_length(result._pa_array) + max_len = pa.compute.max(value_lengths).as_py() + min_len = pa.compute.min(value_lengths).as_py() + if result._hasna: + # ArrowExtensionArray.fillna doesn't work for list scalars + result = ArrowExtensionArray( + result._pa_array.fill_null([None] * max_len) + ) + if min_len < max_len: + # append nulls to each scalar list element up to max_len + if not pa_version_under11p0: + result = ArrowExtensionArray( + pa.compute.list_slice( + result._pa_array, + start=0, + stop=max_len, + return_fixed_size_list=True, + ) + ) + else: + all_null = np.full(max_len, fill_value=None, dtype=object) + values = result.to_numpy() + new_values = [] + for row in values: + if len(row) < max_len: + nulls = all_null[: max_len - len(row)] + row = np.append(row, nulls) + new_values.append(row) + pa_type = result._pa_array.type + result = ArrowExtensionArray(pa.array(new_values, type=pa_type)) + if name is not None: + labels = name + else: + labels = range(max_len) + result = ( + pa.compute.list_flatten(result._pa_array) + .to_numpy() + .reshape(len(result), max_len) + ) + result = { + label: ArrowExtensionArray(pa.array(res)) + for label, res in zip(labels, result.T) + } + elif is_object_dtype(result): + + def cons_row(x): + if is_list_like(x): + return x + else: + return [x] + + result = [cons_row(x) for x in result] + if result and not self._is_string: + # propagate nan values to match longest sequence (GH 18450) + max_len = max(len(x) for x in result) + result = [ + x * max_len if len(x) == 0 or x[0] is np.nan else x + for x in result + ] + + if not isinstance(expand, bool): + raise ValueError("expand must be True or False") + + if expand is False: + # if expand is False, result should have the same name + # as the original otherwise specified + if name is None: + name = getattr(result, "name", None) + if name is None: + # do not use logical or, _orig may be a DataFrame + # which has "name" column + name = self._orig.name + + # Wait until we are sure result is a Series or Index before + # checking attributes (GH 12180) + if isinstance(self._orig, ABCIndex): + # if result is a boolean np.array, return the np.array + # instead of wrapping it into a boolean Index (GH 8875) + if is_bool_dtype(result): + return result + + if expand: + result = list(result) + out: Index = MultiIndex.from_tuples(result, names=name) + if out.nlevels == 1: + # We had all tuples of length-one, which are + # better represented as a regular Index. + out = out.get_level_values(0) + return out + else: + return Index(result, name=name, dtype=dtype) + else: + index = self._orig.index + # This is a mess. + _dtype: DtypeObj | str | None = dtype + vdtype = getattr(result, "dtype", None) + if _dtype is not None: + pass + elif self._is_string: + if is_bool_dtype(vdtype): + _dtype = result.dtype + elif returns_string: + _dtype = self._orig.dtype + else: + _dtype = vdtype + elif vdtype is not None: + _dtype = vdtype + + if expand: + cons = self._orig._constructor_expanddim + result = cons(result, columns=name, index=index, dtype=_dtype) + else: + # Must be a Series + cons = self._orig._constructor + result = cons(result, name=name, index=index, dtype=_dtype) + result = result.__finalize__(self._orig, method="str") + if name is not None and result.ndim == 1: + # __finalize__ might copy over the original name, but we may + # want the new name (e.g. str.extract). + result.name = name + return result + + def _get_series_list(self, others): + """ + Auxiliary function for :meth:`str.cat`. Turn potentially mixed input + into a list of Series (elements without an index must match the length + of the calling Series/Index). + + Parameters + ---------- + others : Series, DataFrame, np.ndarray, list-like or list-like of + Objects that are either Series, Index or np.ndarray (1-dim). + + Returns + ------- + list of Series + Others transformed into list of Series. + """ + from pandas import ( + DataFrame, + Series, + ) + + # self._orig is either Series or Index + idx = self._orig if isinstance(self._orig, ABCIndex) else self._orig.index + + # Generally speaking, all objects without an index inherit the index + # `idx` of the calling Series/Index - i.e. must have matching length. + # Objects with an index (i.e. Series/Index/DataFrame) keep their own. + if isinstance(others, ABCSeries): + return [others] + elif isinstance(others, ABCIndex): + return [Series(others, index=idx, dtype=others.dtype)] + elif isinstance(others, ABCDataFrame): + return [others[x] for x in others] + elif isinstance(others, np.ndarray) and others.ndim == 2: + others = DataFrame(others, index=idx) + return [others[x] for x in others] + elif is_list_like(others, allow_sets=False): + try: + others = list(others) # ensure iterators do not get read twice etc + except TypeError: + # e.g. ser.str, raise below + pass + else: + # in case of list-like `others`, all elements must be + # either Series/Index/np.ndarray (1-dim)... + if all( + isinstance(x, (ABCSeries, ABCIndex, ExtensionArray)) + or (isinstance(x, np.ndarray) and x.ndim == 1) + for x in others + ): + los: list[Series] = [] + while others: # iterate through list and append each element + los = los + self._get_series_list(others.pop(0)) + return los + # ... or just strings + elif all(not is_list_like(x) for x in others): + return [Series(others, index=idx)] + raise TypeError( + "others must be Series, Index, DataFrame, np.ndarray " + "or list-like (either containing only strings or " + "containing only objects of type Series/Index/" + "np.ndarray[1-dim])" + ) + + @forbid_nonstring_types(["bytes", "mixed", "mixed-integer"]) + def cat( + self, + others=None, + sep: str | None = None, + na_rep=None, + join: AlignJoin = "left", + ) -> str | Series | Index: + """ + Concatenate strings in the Series/Index with given separator. + + If `others` is specified, this function concatenates the Series/Index + and elements of `others` element-wise. + If `others` is not passed, then all values in the Series/Index are + concatenated into a single string with a given `sep`. + + Parameters + ---------- + others : Series, Index, DataFrame, np.ndarray or list-like + Series, Index, DataFrame, np.ndarray (one- or two-dimensional) and + other list-likes of strings must have the same length as the + calling Series/Index, with the exception of indexed objects (i.e. + Series/Index/DataFrame) if `join` is not None. + + If others is a list-like that contains a combination of Series, + Index or np.ndarray (1-dim), then all elements will be unpacked and + must satisfy the above criteria individually. + + If others is None, the method returns the concatenation of all + strings in the calling Series/Index. + sep : str, default '' + The separator between the different elements/columns. By default + the empty string `''` is used. + na_rep : str or None, default None + Representation that is inserted for all missing values: + + - If `na_rep` is None, and `others` is None, missing values in the + Series/Index are omitted from the result. + - If `na_rep` is None, and `others` is not None, a row containing a + missing value in any of the columns (before concatenation) will + have a missing value in the result. + join : {'left', 'right', 'outer', 'inner'}, default 'left' + Determines the join-style between the calling Series/Index and any + Series/Index/DataFrame in `others` (objects without an index need + to match the length of the calling Series/Index). To disable + alignment, use `.values` on any Series/Index/DataFrame in `others`. + + Returns + ------- + str, Series or Index + If `others` is None, `str` is returned, otherwise a `Series/Index` + (same type as caller) of objects is returned. + + See Also + -------- + split : Split each string in the Series/Index. + join : Join lists contained as elements in the Series/Index. + + Examples + -------- + When not passing `others`, all values are concatenated into a single + string: + + >>> s = pd.Series(['a', 'b', np.nan, 'd']) + >>> s.str.cat(sep=' ') + 'a b d' + + By default, NA values in the Series are ignored. Using `na_rep`, they + can be given a representation: + + >>> s.str.cat(sep=' ', na_rep='?') + 'a b ? d' + + If `others` is specified, corresponding values are concatenated with + the separator. Result will be a Series of strings. + + >>> s.str.cat(['A', 'B', 'C', 'D'], sep=',') + 0 a,A + 1 b,B + 2 NaN + 3 d,D + dtype: object + + Missing values will remain missing in the result, but can again be + represented using `na_rep` + + >>> s.str.cat(['A', 'B', 'C', 'D'], sep=',', na_rep='-') + 0 a,A + 1 b,B + 2 -,C + 3 d,D + dtype: object + + If `sep` is not specified, the values are concatenated without + separation. + + >>> s.str.cat(['A', 'B', 'C', 'D'], na_rep='-') + 0 aA + 1 bB + 2 -C + 3 dD + dtype: object + + Series with different indexes can be aligned before concatenation. The + `join`-keyword works as in other methods. + + >>> t = pd.Series(['d', 'a', 'e', 'c'], index=[3, 0, 4, 2]) + >>> s.str.cat(t, join='left', na_rep='-') + 0 aa + 1 b- + 2 -c + 3 dd + dtype: object + >>> + >>> s.str.cat(t, join='outer', na_rep='-') + 0 aa + 1 b- + 2 -c + 3 dd + 4 -e + dtype: object + >>> + >>> s.str.cat(t, join='inner', na_rep='-') + 0 aa + 2 -c + 3 dd + dtype: object + >>> + >>> s.str.cat(t, join='right', na_rep='-') + 3 dd + 0 aa + 4 -e + 2 -c + dtype: object + + For more examples, see :ref:`here `. + """ + # TODO: dispatch + from pandas import ( + Index, + Series, + concat, + ) + + if isinstance(others, str): + raise ValueError("Did you mean to supply a `sep` keyword?") + if sep is None: + sep = "" + + if isinstance(self._orig, ABCIndex): + data = Series(self._orig, index=self._orig, dtype=self._orig.dtype) + else: # Series + data = self._orig + + # concatenate Series/Index with itself if no "others" + if others is None: + # error: Incompatible types in assignment (expression has type + # "ndarray", variable has type "Series") + data = ensure_object(data) # type: ignore[assignment] + na_mask = isna(data) + if na_rep is None and na_mask.any(): + return sep.join(data[~na_mask]) + elif na_rep is not None and na_mask.any(): + return sep.join(np.where(na_mask, na_rep, data)) + else: + return sep.join(data) + + try: + # turn anything in "others" into lists of Series + others = self._get_series_list(others) + except ValueError as err: # do not catch TypeError raised by _get_series_list + raise ValueError( + "If `others` contains arrays or lists (or other " + "list-likes without an index), these must all be " + "of the same length as the calling Series/Index." + ) from err + + # align if required + if any(not data.index.equals(x.index) for x in others): + # Need to add keys for uniqueness in case of duplicate columns + others = concat( + others, + axis=1, + join=(join if join == "inner" else "outer"), + keys=range(len(others)), + sort=False, + copy=False, + ) + data, others = data.align(others, join=join) + others = [others[x] for x in others] # again list of Series + + all_cols = [ensure_object(x) for x in [data] + others] + na_masks = np.array([isna(x) for x in all_cols]) + union_mask = np.logical_or.reduce(na_masks, axis=0) + + if na_rep is None and union_mask.any(): + # no na_rep means NaNs for all rows where any column has a NaN + # only necessary if there are actually any NaNs + result = np.empty(len(data), dtype=object) + np.putmask(result, union_mask, np.nan) + + not_masked = ~union_mask + result[not_masked] = cat_safe([x[not_masked] for x in all_cols], sep) + elif na_rep is not None and union_mask.any(): + # fill NaNs with na_rep in case there are actually any NaNs + all_cols = [ + np.where(nm, na_rep, col) for nm, col in zip(na_masks, all_cols) + ] + result = cat_safe(all_cols, sep) + else: + # no NaNs - can just concatenate + result = cat_safe(all_cols, sep) + + out: Index | Series + if isinstance(self._orig.dtype, CategoricalDtype): + # We need to infer the new categories. + dtype = self._orig.dtype.categories.dtype + else: + dtype = self._orig.dtype + if isinstance(self._orig, ABCIndex): + # add dtype for case that result is all-NA + if isna(result).all(): + dtype = object # type: ignore[assignment] + + out = Index(result, dtype=dtype, name=self._orig.name) + else: # Series + res_ser = Series( + result, dtype=dtype, index=data.index, name=self._orig.name, copy=False + ) + out = res_ser.__finalize__(self._orig, method="str_cat") + return out + + _shared_docs[ + "str_split" + ] = r""" + Split strings around given separator/delimiter. + + Splits the string in the Series/Index from the %(side)s, + at the specified delimiter string. + + Parameters + ---------- + pat : str%(pat_regex)s, optional + %(pat_description)s. + If not specified, split on whitespace. + n : int, default -1 (all) + Limit number of splits in output. + ``None``, 0 and -1 will be interpreted as return all splits. + expand : bool, default False + Expand the split strings into separate columns. + + - If ``True``, return DataFrame/MultiIndex expanding dimensionality. + - If ``False``, return Series/Index, containing lists of strings. + %(regex_argument)s + Returns + ------- + Series, Index, DataFrame or MultiIndex + Type matches caller unless ``expand=True`` (see Notes). + %(raises_split)s + See Also + -------- + Series.str.split : Split strings around given separator/delimiter. + Series.str.rsplit : Splits string around given separator/delimiter, + starting from the right. + Series.str.join : Join lists contained as elements in the Series/Index + with passed delimiter. + str.split : Standard library version for split. + str.rsplit : Standard library version for rsplit. + + Notes + ----- + The handling of the `n` keyword depends on the number of found splits: + + - If found splits > `n`, make first `n` splits only + - If found splits <= `n`, make all splits + - If for a certain row the number of found splits < `n`, + append `None` for padding up to `n` if ``expand=True`` + + If using ``expand=True``, Series and Index callers return DataFrame and + MultiIndex objects, respectively. + %(regex_pat_note)s + Examples + -------- + >>> s = pd.Series( + ... [ + ... "this is a regular sentence", + ... "https://docs.python.org/3/tutorial/index.html", + ... np.nan + ... ] + ... ) + >>> s + 0 this is a regular sentence + 1 https://docs.python.org/3/tutorial/index.html + 2 NaN + dtype: object + + In the default setting, the string is split by whitespace. + + >>> s.str.split() + 0 [this, is, a, regular, sentence] + 1 [https://docs.python.org/3/tutorial/index.html] + 2 NaN + dtype: object + + Without the `n` parameter, the outputs of `rsplit` and `split` + are identical. + + >>> s.str.rsplit() + 0 [this, is, a, regular, sentence] + 1 [https://docs.python.org/3/tutorial/index.html] + 2 NaN + dtype: object + + The `n` parameter can be used to limit the number of splits on the + delimiter. The outputs of `split` and `rsplit` are different. + + >>> s.str.split(n=2) + 0 [this, is, a regular sentence] + 1 [https://docs.python.org/3/tutorial/index.html] + 2 NaN + dtype: object + + >>> s.str.rsplit(n=2) + 0 [this is a, regular, sentence] + 1 [https://docs.python.org/3/tutorial/index.html] + 2 NaN + dtype: object + + The `pat` parameter can be used to split by other characters. + + >>> s.str.split(pat="/") + 0 [this is a regular sentence] + 1 [https:, , docs.python.org, 3, tutorial, index... + 2 NaN + dtype: object + + When using ``expand=True``, the split elements will expand out into + separate columns. If NaN is present, it is propagated throughout + the columns during the split. + + >>> s.str.split(expand=True) + 0 1 2 3 4 + 0 this is a regular sentence + 1 https://docs.python.org/3/tutorial/index.html None None None None + 2 NaN NaN NaN NaN NaN + + For slightly more complex use cases like splitting the html document name + from a url, a combination of parameter settings can be used. + + >>> s.str.rsplit("/", n=1, expand=True) + 0 1 + 0 this is a regular sentence None + 1 https://docs.python.org/3/tutorial index.html + 2 NaN NaN + %(regex_examples)s""" + + @Appender( + _shared_docs["str_split"] + % { + "side": "beginning", + "pat_regex": " or compiled regex", + "pat_description": "String or regular expression to split on", + "regex_argument": """ + regex : bool, default None + Determines if the passed-in pattern is a regular expression: + + - If ``True``, assumes the passed-in pattern is a regular expression + - If ``False``, treats the pattern as a literal string. + - If ``None`` and `pat` length is 1, treats `pat` as a literal string. + - If ``None`` and `pat` length is not 1, treats `pat` as a regular expression. + - Cannot be set to False if `pat` is a compiled regex + + .. versionadded:: 1.4.0 + """, + "raises_split": """ + Raises + ------ + ValueError + * if `regex` is False and `pat` is a compiled regex + """, + "regex_pat_note": """ + Use of `regex =False` with a `pat` as a compiled regex will raise an error. + """, + "method": "split", + "regex_examples": r""" + Remember to escape special characters when explicitly using regular expressions. + + >>> s = pd.Series(["foo and bar plus baz"]) + >>> s.str.split(r"and|plus", expand=True) + 0 1 2 + 0 foo bar baz + + Regular expressions can be used to handle urls or file names. + When `pat` is a string and ``regex=None`` (the default), the given `pat` is compiled + as a regex only if ``len(pat) != 1``. + + >>> s = pd.Series(['foojpgbar.jpg']) + >>> s.str.split(r".", expand=True) + 0 1 + 0 foojpgbar jpg + + >>> s.str.split(r"\.jpg", expand=True) + 0 1 + 0 foojpgbar + + When ``regex=True``, `pat` is interpreted as a regex + + >>> s.str.split(r"\.jpg", regex=True, expand=True) + 0 1 + 0 foojpgbar + + A compiled regex can be passed as `pat` + + >>> import re + >>> s.str.split(re.compile(r"\.jpg"), expand=True) + 0 1 + 0 foojpgbar + + When ``regex=False``, `pat` is interpreted as the string itself + + >>> s.str.split(r"\.jpg", regex=False, expand=True) + 0 + 0 foojpgbar.jpg + """, + } + ) + @forbid_nonstring_types(["bytes"]) + def split( + self, + pat: str | re.Pattern | None = None, + *, + n=-1, + expand: bool = False, + regex: bool | None = None, + ): + if regex is False and is_re(pat): + raise ValueError( + "Cannot use a compiled regex as replacement pattern with regex=False" + ) + if is_re(pat): + regex = True + result = self._data.array._str_split(pat, n, expand, regex) + if self._data.dtype == "category": + dtype = self._data.dtype.categories.dtype + else: + dtype = object if self._data.dtype == object else None + return self._wrap_result( + result, expand=expand, returns_string=expand, dtype=dtype + ) + + @Appender( + _shared_docs["str_split"] + % { + "side": "end", + "pat_regex": "", + "pat_description": "String to split on", + "regex_argument": "", + "raises_split": "", + "regex_pat_note": "", + "method": "rsplit", + "regex_examples": "", + } + ) + @forbid_nonstring_types(["bytes"]) + def rsplit(self, pat=None, *, n=-1, expand: bool = False): + result = self._data.array._str_rsplit(pat, n=n) + dtype = object if self._data.dtype == object else None + return self._wrap_result( + result, expand=expand, returns_string=expand, dtype=dtype + ) + + _shared_docs[ + "str_partition" + ] = """ + Split the string at the %(side)s occurrence of `sep`. + + This method splits the string at the %(side)s occurrence of `sep`, + and returns 3 elements containing the part before the separator, + the separator itself, and the part after the separator. + If the separator is not found, return %(return)s. + + Parameters + ---------- + sep : str, default whitespace + String to split on. + expand : bool, default True + If True, return DataFrame/MultiIndex expanding dimensionality. + If False, return Series/Index. + + Returns + ------- + DataFrame/MultiIndex or Series/Index of objects + + See Also + -------- + %(also)s + Series.str.split : Split strings around given separators. + str.partition : Standard library version. + + Examples + -------- + + >>> s = pd.Series(['Linda van der Berg', 'George Pitt-Rivers']) + >>> s + 0 Linda van der Berg + 1 George Pitt-Rivers + dtype: object + + >>> s.str.partition() + 0 1 2 + 0 Linda van der Berg + 1 George Pitt-Rivers + + To partition by the last space instead of the first one: + + >>> s.str.rpartition() + 0 1 2 + 0 Linda van der Berg + 1 George Pitt-Rivers + + To partition by something different than a space: + + >>> s.str.partition('-') + 0 1 2 + 0 Linda van der Berg + 1 George Pitt - Rivers + + To return a Series containing tuples instead of a DataFrame: + + >>> s.str.partition('-', expand=False) + 0 (Linda van der Berg, , ) + 1 (George Pitt, -, Rivers) + dtype: object + + Also available on indices: + + >>> idx = pd.Index(['X 123', 'Y 999']) + >>> idx + Index(['X 123', 'Y 999'], dtype='object') + + Which will create a MultiIndex: + + >>> idx.str.partition() + MultiIndex([('X', ' ', '123'), + ('Y', ' ', '999')], + ) + + Or an index with tuples with ``expand=False``: + + >>> idx.str.partition(expand=False) + Index([('X', ' ', '123'), ('Y', ' ', '999')], dtype='object') + """ + + @Appender( + _shared_docs["str_partition"] + % { + "side": "first", + "return": "3 elements containing the string itself, followed by two " + "empty strings", + "also": "rpartition : Split the string at the last occurrence of `sep`.", + } + ) + @forbid_nonstring_types(["bytes"]) + def partition(self, sep: str = " ", expand: bool = True): + result = self._data.array._str_partition(sep, expand) + if self._data.dtype == "category": + dtype = self._data.dtype.categories.dtype + else: + dtype = object if self._data.dtype == object else None + return self._wrap_result( + result, expand=expand, returns_string=expand, dtype=dtype + ) + + @Appender( + _shared_docs["str_partition"] + % { + "side": "last", + "return": "3 elements containing two empty strings, followed by the " + "string itself", + "also": "partition : Split the string at the first occurrence of `sep`.", + } + ) + @forbid_nonstring_types(["bytes"]) + def rpartition(self, sep: str = " ", expand: bool = True): + result = self._data.array._str_rpartition(sep, expand) + if self._data.dtype == "category": + dtype = self._data.dtype.categories.dtype + else: + dtype = object if self._data.dtype == object else None + return self._wrap_result( + result, expand=expand, returns_string=expand, dtype=dtype + ) + + def get(self, i): + """ + Extract element from each component at specified position or with specified key. + + Extract element from lists, tuples, dict, or strings in each element in the + Series/Index. + + Parameters + ---------- + i : int or hashable dict label + Position or key of element to extract. + + Returns + ------- + Series or Index + + Examples + -------- + >>> s = pd.Series(["String", + ... (1, 2, 3), + ... ["a", "b", "c"], + ... 123, + ... -456, + ... {1: "Hello", "2": "World"}]) + >>> s + 0 String + 1 (1, 2, 3) + 2 [a, b, c] + 3 123 + 4 -456 + 5 {1: 'Hello', '2': 'World'} + dtype: object + + >>> s.str.get(1) + 0 t + 1 2 + 2 b + 3 NaN + 4 NaN + 5 Hello + dtype: object + + >>> s.str.get(-1) + 0 g + 1 3 + 2 c + 3 NaN + 4 NaN + 5 None + dtype: object + + Return element with given key + + >>> s = pd.Series([{"name": "Hello", "value": "World"}, + ... {"name": "Goodbye", "value": "Planet"}]) + >>> s.str.get('name') + 0 Hello + 1 Goodbye + dtype: object + """ + result = self._data.array._str_get(i) + return self._wrap_result(result) + + @forbid_nonstring_types(["bytes"]) + def join(self, sep: str): + """ + Join lists contained as elements in the Series/Index with passed delimiter. + + If the elements of a Series are lists themselves, join the content of these + lists using the delimiter passed to the function. + This function is an equivalent to :meth:`str.join`. + + Parameters + ---------- + sep : str + Delimiter to use between list entries. + + Returns + ------- + Series/Index: object + The list entries concatenated by intervening occurrences of the + delimiter. + + Raises + ------ + AttributeError + If the supplied Series contains neither strings nor lists. + + See Also + -------- + str.join : Standard library version of this method. + Series.str.split : Split strings around given separator/delimiter. + + Notes + ----- + If any of the list items is not a string object, the result of the join + will be `NaN`. + + Examples + -------- + Example with a list that contains non-string elements. + + >>> s = pd.Series([['lion', 'elephant', 'zebra'], + ... [1.1, 2.2, 3.3], + ... ['cat', np.nan, 'dog'], + ... ['cow', 4.5, 'goat'], + ... ['duck', ['swan', 'fish'], 'guppy']]) + >>> s + 0 [lion, elephant, zebra] + 1 [1.1, 2.2, 3.3] + 2 [cat, nan, dog] + 3 [cow, 4.5, goat] + 4 [duck, [swan, fish], guppy] + dtype: object + + Join all lists using a '-'. The lists containing object(s) of types other + than str will produce a NaN. + + >>> s.str.join('-') + 0 lion-elephant-zebra + 1 NaN + 2 NaN + 3 NaN + 4 NaN + dtype: object + """ + result = self._data.array._str_join(sep) + return self._wrap_result(result) + + @forbid_nonstring_types(["bytes"]) + def contains( + self, + pat, + case: bool = True, + flags: int = 0, + na=lib.no_default, + regex: bool = True, + ): + r""" + Test if pattern or regex is contained within a string of a Series or Index. + + Return boolean Series or Index based on whether a given pattern or regex is + contained within a string of a Series or Index. + + Parameters + ---------- + pat : str + Character sequence or regular expression. + case : bool, default True + If True, case sensitive. + flags : int, default 0 (no flags) + Flags to pass through to the re module, e.g. re.IGNORECASE. + na : scalar, optional + Fill value for missing values. The default depends on dtype of the + array. For object-dtype, ``numpy.nan`` is used. For the nullable + ``StringDtype``, ``pandas.NA`` is used. For the ``"str"`` dtype, + ``False`` is used. + regex : bool, default True + If True, assumes the pat is a regular expression. + + If False, treats the pat as a literal string. + + Returns + ------- + Series or Index of boolean values + A Series or Index of boolean values indicating whether the + given pattern is contained within the string of each element + of the Series or Index. + + See Also + -------- + match : Analogous, but stricter, relying on re.match instead of re.search. + Series.str.startswith : Test if the start of each string element matches a + pattern. + Series.str.endswith : Same as startswith, but tests the end of string. + + Examples + -------- + Returning a Series of booleans using only a literal pattern. + + >>> s1 = pd.Series(['Mouse', 'dog', 'house and parrot', '23', np.nan]) + >>> s1.str.contains('og', regex=False) + 0 False + 1 True + 2 False + 3 False + 4 NaN + dtype: object + + Returning an Index of booleans using only a literal pattern. + + >>> ind = pd.Index(['Mouse', 'dog', 'house and parrot', '23.0', np.nan]) + >>> ind.str.contains('23', regex=False) + Index([False, False, False, True, nan], dtype='object') + + Specifying case sensitivity using `case`. + + >>> s1.str.contains('oG', case=True, regex=True) + 0 False + 1 False + 2 False + 3 False + 4 NaN + dtype: object + + Specifying `na` to be `False` instead of `NaN` replaces NaN values + with `False`. If Series or Index does not contain NaN values + the resultant dtype will be `bool`, otherwise, an `object` dtype. + + >>> s1.str.contains('og', na=False, regex=True) + 0 False + 1 True + 2 False + 3 False + 4 False + dtype: bool + + Returning 'house' or 'dog' when either expression occurs in a string. + + >>> s1.str.contains('house|dog', regex=True) + 0 False + 1 True + 2 True + 3 False + 4 NaN + dtype: object + + Ignoring case sensitivity using `flags` with regex. + + >>> import re + >>> s1.str.contains('PARROT', flags=re.IGNORECASE, regex=True) + 0 False + 1 False + 2 True + 3 False + 4 NaN + dtype: object + + Returning any digit using regular expression. + + >>> s1.str.contains('\\d', regex=True) + 0 False + 1 False + 2 False + 3 True + 4 NaN + dtype: object + + Ensure `pat` is a not a literal pattern when `regex` is set to True. + Note in the following example one might expect only `s2[1]` and `s2[3]` to + return `True`. However, '.0' as a regex matches any character + followed by a 0. + + >>> s2 = pd.Series(['40', '40.0', '41', '41.0', '35']) + >>> s2.str.contains('.0', regex=True) + 0 True + 1 True + 2 False + 3 True + 4 False + dtype: bool + """ + if regex and re.compile(pat).groups: + warnings.warn( + "This pattern is interpreted as a regular expression, and has " + "match groups. To actually get the groups, use str.extract.", + UserWarning, + stacklevel=find_stack_level(), + ) + + result = self._data.array._str_contains(pat, case, flags, na, regex) + return self._wrap_result(result, fill_value=na, returns_string=False) + + @forbid_nonstring_types(["bytes"]) + def match(self, pat: str, case: bool = True, flags: int = 0, na=lib.no_default): + """ + Determine if each string starts with a match of a regular expression. + + Parameters + ---------- + pat : str or compiled regex + Character sequence or regular expression. + case : bool, default True + If True, case sensitive. + flags : int, default 0 (no flags) + Regex module flags, e.g. re.IGNORECASE. + na : scalar, optional + Fill value for missing values. The default depends on dtype of the + array. For object-dtype, ``numpy.nan`` is used. For the nullable + ``StringDtype``, ``pandas.NA`` is used. For the ``"str"`` dtype, + ``False`` is used. + + Returns + ------- + Series/Index/array of boolean values + + See Also + -------- + fullmatch : Stricter matching that requires the entire string to match. + contains : Analogous, but less strict, relying on re.search instead of + re.match. + extract : Extract matched groups. + + Examples + -------- + >>> ser = pd.Series(["horse", "eagle", "donkey"]) + >>> ser.str.match("e") + 0 False + 1 True + 2 False + dtype: bool + """ + result = self._data.array._str_match(pat, case=case, flags=flags, na=na) + return self._wrap_result(result, fill_value=na, returns_string=False) + + @forbid_nonstring_types(["bytes"]) + def fullmatch(self, pat, case: bool = True, flags: int = 0, na=lib.no_default): + """ + Determine if each string entirely matches a regular expression. + + Parameters + ---------- + pat : str + Character sequence or regular expression. + case : bool, default True + If True, case sensitive. + flags : int, default 0 (no flags) + Regex module flags, e.g. re.IGNORECASE. + na : scalar, optional + Fill value for missing values. The default depends on dtype of the + array. For object-dtype, ``numpy.nan`` is used. For the nullable + ``StringDtype``, ``pandas.NA`` is used. For the ``"str"`` dtype, + ``False`` is used. + + Returns + ------- + Series/Index/array of boolean values + + See Also + -------- + match : Similar, but also returns `True` when only a *prefix* of the string + matches the regular expression. + extract : Extract matched groups. + + Examples + -------- + >>> ser = pd.Series(["cat", "duck", "dove"]) + >>> ser.str.fullmatch(r'd.+') + 0 False + 1 True + 2 True + dtype: bool + """ + result = self._data.array._str_fullmatch(pat, case=case, flags=flags, na=na) + return self._wrap_result(result, fill_value=na, returns_string=False) + + @forbid_nonstring_types(["bytes"]) + def replace( + self, + pat: str | re.Pattern, + repl: str | Callable, + n: int = -1, + case: bool | None = None, + flags: int = 0, + regex: bool = False, + ): + r""" + Replace each occurrence of pattern/regex in the Series/Index. + + Equivalent to :meth:`str.replace` or :func:`re.sub`, depending on + the regex value. + + Parameters + ---------- + pat : str or compiled regex + String can be a character sequence or regular expression. + repl : str or callable + Replacement string or a callable. The callable is passed the regex + match object and must return a replacement string to be used. + See :func:`re.sub`. + n : int, default -1 (all) + Number of replacements to make from start. + case : bool, default None + Determines if replace is case sensitive: + + - If True, case sensitive (the default if `pat` is a string) + - Set to False for case insensitive + - Cannot be set if `pat` is a compiled regex. + + flags : int, default 0 (no flags) + Regex module flags, e.g. re.IGNORECASE. Cannot be set if `pat` is a compiled + regex. + regex : bool, default False + Determines if the passed-in pattern is a regular expression: + + - If True, assumes the passed-in pattern is a regular expression. + - If False, treats the pattern as a literal string + - Cannot be set to False if `pat` is a compiled regex or `repl` is + a callable. + + Returns + ------- + Series or Index of object + A copy of the object with all matching occurrences of `pat` replaced by + `repl`. + + Raises + ------ + ValueError + * if `regex` is False and `repl` is a callable or `pat` is a compiled + regex + * if `pat` is a compiled regex and `case` or `flags` is set + + Notes + ----- + When `pat` is a compiled regex, all flags should be included in the + compiled regex. Use of `case`, `flags`, or `regex=False` with a compiled + regex will raise an error. + + Examples + -------- + When `pat` is a string and `regex` is True, the given `pat` + is compiled as a regex. When `repl` is a string, it replaces matching + regex patterns as with :meth:`re.sub`. NaN value(s) in the Series are + left as is: + + >>> pd.Series(['foo', 'fuz', np.nan]).str.replace('f.', 'ba', regex=True) + 0 bao + 1 baz + 2 NaN + dtype: object + + When `pat` is a string and `regex` is False, every `pat` is replaced with + `repl` as with :meth:`str.replace`: + + >>> pd.Series(['f.o', 'fuz', np.nan]).str.replace('f.', 'ba', regex=False) + 0 bao + 1 fuz + 2 NaN + dtype: object + + When `repl` is a callable, it is called on every `pat` using + :func:`re.sub`. The callable should expect one positional argument + (a regex object) and return a string. + + To get the idea: + + >>> pd.Series(['foo', 'fuz', np.nan]).str.replace('f', repr, regex=True) + 0 oo + 1 uz + 2 NaN + dtype: object + + Reverse every lowercase alphabetic word: + + >>> repl = lambda m: m.group(0)[::-1] + >>> ser = pd.Series(['foo 123', 'bar baz', np.nan]) + >>> ser.str.replace(r'[a-z]+', repl, regex=True) + 0 oof 123 + 1 rab zab + 2 NaN + dtype: object + + Using regex groups (extract second group and swap case): + + >>> pat = r"(?P\w+) (?P\w+) (?P\w+)" + >>> repl = lambda m: m.group('two').swapcase() + >>> ser = pd.Series(['One Two Three', 'Foo Bar Baz']) + >>> ser.str.replace(pat, repl, regex=True) + 0 tWO + 1 bAR + dtype: object + + Using a compiled regex with flags + + >>> import re + >>> regex_pat = re.compile(r'FUZ', flags=re.IGNORECASE) + >>> pd.Series(['foo', 'fuz', np.nan]).str.replace(regex_pat, 'bar', regex=True) + 0 foo + 1 bar + 2 NaN + dtype: object + """ + # Check whether repl is valid (GH 13438, GH 15055) + if not (isinstance(repl, str) or callable(repl)): + raise TypeError("repl must be a string or callable") + + is_compiled_re = is_re(pat) + if regex or regex is None: + if is_compiled_re and (case is not None or flags != 0): + raise ValueError( + "case and flags cannot be set when pat is a compiled regex" + ) + + elif is_compiled_re: + raise ValueError( + "Cannot use a compiled regex as replacement pattern with regex=False" + ) + elif callable(repl): + raise ValueError("Cannot use a callable replacement when regex=False") + + if case is None: + case = True + + result = self._data.array._str_replace( + pat, repl, n=n, case=case, flags=flags, regex=regex + ) + return self._wrap_result(result) + + @forbid_nonstring_types(["bytes"]) + def repeat(self, repeats): + """ + Duplicate each string in the Series or Index. + + Parameters + ---------- + repeats : int or sequence of int + Same value for all (int) or different value per (sequence). + + Returns + ------- + Series or pandas.Index + Series or Index of repeated string objects specified by + input parameter repeats. + + Examples + -------- + >>> s = pd.Series(['a', 'b', 'c']) + >>> s + 0 a + 1 b + 2 c + dtype: object + + Single int repeats string in Series + + >>> s.str.repeat(repeats=2) + 0 aa + 1 bb + 2 cc + dtype: object + + Sequence of int repeats corresponding string in Series + + >>> s.str.repeat(repeats=[1, 2, 3]) + 0 a + 1 bb + 2 ccc + dtype: object + """ + result = self._data.array._str_repeat(repeats) + return self._wrap_result(result) + + @forbid_nonstring_types(["bytes"]) + def pad( + self, + width: int, + side: Literal["left", "right", "both"] = "left", + fillchar: str = " ", + ): + """ + Pad strings in the Series/Index up to width. + + Parameters + ---------- + width : int + Minimum width of resulting string; additional characters will be filled + with character defined in `fillchar`. + side : {'left', 'right', 'both'}, default 'left' + Side from which to fill resulting string. + fillchar : str, default ' ' + Additional character for filling, default is whitespace. + + Returns + ------- + Series or Index of object + Returns Series or Index with minimum number of char in object. + + See Also + -------- + Series.str.rjust : Fills the left side of strings with an arbitrary + character. Equivalent to ``Series.str.pad(side='left')``. + Series.str.ljust : Fills the right side of strings with an arbitrary + character. Equivalent to ``Series.str.pad(side='right')``. + Series.str.center : Fills both sides of strings with an arbitrary + character. Equivalent to ``Series.str.pad(side='both')``. + Series.str.zfill : Pad strings in the Series/Index by prepending '0' + character. Equivalent to ``Series.str.pad(side='left', fillchar='0')``. + + Examples + -------- + >>> s = pd.Series(["caribou", "tiger"]) + >>> s + 0 caribou + 1 tiger + dtype: object + + >>> s.str.pad(width=10) + 0 caribou + 1 tiger + dtype: object + + >>> s.str.pad(width=10, side='right', fillchar='-') + 0 caribou--- + 1 tiger----- + dtype: object + + >>> s.str.pad(width=10, side='both', fillchar='-') + 0 -caribou-- + 1 --tiger--- + dtype: object + """ + if not isinstance(fillchar, str): + msg = f"fillchar must be a character, not {type(fillchar).__name__}" + raise TypeError(msg) + + if len(fillchar) != 1: + raise TypeError("fillchar must be a character, not str") + + if not is_integer(width): + msg = f"width must be of integer type, not {type(width).__name__}" + raise TypeError(msg) + + result = self._data.array._str_pad(width, side=side, fillchar=fillchar) + return self._wrap_result(result) + + _shared_docs[ + "str_pad" + ] = """ + Pad %(side)s side of strings in the Series/Index. + + Equivalent to :meth:`str.%(method)s`. + + Parameters + ---------- + width : int + Minimum width of resulting string; additional characters will be filled + with ``fillchar``. + fillchar : str + Additional character for filling, default is whitespace. + + Returns + ------- + Series/Index of objects. + + Examples + -------- + For Series.str.center: + + >>> ser = pd.Series(['dog', 'bird', 'mouse']) + >>> ser.str.center(8, fillchar='.') + 0 ..dog... + 1 ..bird.. + 2 .mouse.. + dtype: object + + For Series.str.ljust: + + >>> ser = pd.Series(['dog', 'bird', 'mouse']) + >>> ser.str.ljust(8, fillchar='.') + 0 dog..... + 1 bird.... + 2 mouse... + dtype: object + + For Series.str.rjust: + + >>> ser = pd.Series(['dog', 'bird', 'mouse']) + >>> ser.str.rjust(8, fillchar='.') + 0 .....dog + 1 ....bird + 2 ...mouse + dtype: object + """ + + @Appender(_shared_docs["str_pad"] % {"side": "left and right", "method": "center"}) + @forbid_nonstring_types(["bytes"]) + def center(self, width: int, fillchar: str = " "): + return self.pad(width, side="both", fillchar=fillchar) + + @Appender(_shared_docs["str_pad"] % {"side": "right", "method": "ljust"}) + @forbid_nonstring_types(["bytes"]) + def ljust(self, width: int, fillchar: str = " "): + return self.pad(width, side="right", fillchar=fillchar) + + @Appender(_shared_docs["str_pad"] % {"side": "left", "method": "rjust"}) + @forbid_nonstring_types(["bytes"]) + def rjust(self, width: int, fillchar: str = " "): + return self.pad(width, side="left", fillchar=fillchar) + + @forbid_nonstring_types(["bytes"]) + def zfill(self, width: int): + """ + Pad strings in the Series/Index by prepending '0' characters. + + Strings in the Series/Index are padded with '0' characters on the + left of the string to reach a total string length `width`. Strings + in the Series/Index with length greater or equal to `width` are + unchanged. + + Parameters + ---------- + width : int + Minimum length of resulting string; strings with length less + than `width` be prepended with '0' characters. + + Returns + ------- + Series/Index of objects. + + See Also + -------- + Series.str.rjust : Fills the left side of strings with an arbitrary + character. + Series.str.ljust : Fills the right side of strings with an arbitrary + character. + Series.str.pad : Fills the specified sides of strings with an arbitrary + character. + Series.str.center : Fills both sides of strings with an arbitrary + character. + + Notes + ----- + Differs from :meth:`str.zfill` which has special handling + for '+'/'-' in the string. + + Examples + -------- + >>> s = pd.Series(['-1', '1', '1000', 10, np.nan]) + >>> s + 0 -1 + 1 1 + 2 1000 + 3 10 + 4 NaN + dtype: object + + Note that ``10`` and ``NaN`` are not strings, therefore they are + converted to ``NaN``. The minus sign in ``'-1'`` is treated as a + special character and the zero is added to the right of it + (:meth:`str.zfill` would have moved it to the left). ``1000`` + remains unchanged as it is longer than `width`. + + >>> s.str.zfill(3) + 0 -01 + 1 001 + 2 1000 + 3 NaN + 4 NaN + dtype: object + """ + if not is_integer(width): + msg = f"width must be of integer type, not {type(width).__name__}" + raise TypeError(msg) + f = lambda x: x.zfill(width) + result = self._data.array._str_map(f) + return self._wrap_result(result) + + def slice(self, start=None, stop=None, step=None): + """ + Slice substrings from each element in the Series or Index. + + Parameters + ---------- + start : int, optional + Start position for slice operation. + stop : int, optional + Stop position for slice operation. + step : int, optional + Step size for slice operation. + + Returns + ------- + Series or Index of object + Series or Index from sliced substring from original string object. + + See Also + -------- + Series.str.slice_replace : Replace a slice with a string. + Series.str.get : Return element at position. + Equivalent to `Series.str.slice(start=i, stop=i+1)` with `i` + being the position. + + Examples + -------- + >>> s = pd.Series(["koala", "dog", "chameleon"]) + >>> s + 0 koala + 1 dog + 2 chameleon + dtype: object + + >>> s.str.slice(start=1) + 0 oala + 1 og + 2 hameleon + dtype: object + + >>> s.str.slice(start=-1) + 0 a + 1 g + 2 n + dtype: object + + >>> s.str.slice(stop=2) + 0 ko + 1 do + 2 ch + dtype: object + + >>> s.str.slice(step=2) + 0 kaa + 1 dg + 2 caeen + dtype: object + + >>> s.str.slice(start=0, stop=5, step=3) + 0 kl + 1 d + 2 cm + dtype: object + + Equivalent behaviour to: + + >>> s.str[0:5:3] + 0 kl + 1 d + 2 cm + dtype: object + """ + result = self._data.array._str_slice(start, stop, step) + return self._wrap_result(result) + + @forbid_nonstring_types(["bytes"]) + def slice_replace(self, start=None, stop=None, repl=None): + """ + Replace a positional slice of a string with another value. + + Parameters + ---------- + start : int, optional + Left index position to use for the slice. If not specified (None), + the slice is unbounded on the left, i.e. slice from the start + of the string. + stop : int, optional + Right index position to use for the slice. If not specified (None), + the slice is unbounded on the right, i.e. slice until the + end of the string. + repl : str, optional + String for replacement. If not specified (None), the sliced region + is replaced with an empty string. + + Returns + ------- + Series or Index + Same type as the original object. + + See Also + -------- + Series.str.slice : Just slicing without replacement. + + Examples + -------- + >>> s = pd.Series(['a', 'ab', 'abc', 'abdc', 'abcde']) + >>> s + 0 a + 1 ab + 2 abc + 3 abdc + 4 abcde + dtype: object + + Specify just `start`, meaning replace `start` until the end of the + string with `repl`. + + >>> s.str.slice_replace(1, repl='X') + 0 aX + 1 aX + 2 aX + 3 aX + 4 aX + dtype: object + + Specify just `stop`, meaning the start of the string to `stop` is replaced + with `repl`, and the rest of the string is included. + + >>> s.str.slice_replace(stop=2, repl='X') + 0 X + 1 X + 2 Xc + 3 Xdc + 4 Xcde + dtype: object + + Specify `start` and `stop`, meaning the slice from `start` to `stop` is + replaced with `repl`. Everything before or after `start` and `stop` is + included as is. + + >>> s.str.slice_replace(start=1, stop=3, repl='X') + 0 aX + 1 aX + 2 aX + 3 aXc + 4 aXde + dtype: object + """ + result = self._data.array._str_slice_replace(start, stop, repl) + return self._wrap_result(result) + + def decode( + self, encoding, errors: str = "strict", dtype: str | DtypeObj | None = None + ): + """ + Decode character string in the Series/Index using indicated encoding. + + Equivalent to :meth:`str.decode` in python2 and :meth:`bytes.decode` in + python3. + + Parameters + ---------- + encoding : str + errors : str, optional + Specifies the error handling scheme. + Possible values are those supported by :meth:`bytes.decode`. + dtype : str or dtype, optional + The dtype of the result. When not ``None``, must be either a string or + object dtype. When ``None``, the dtype of the result is determined by + ``pd.options.future.infer_string``. + + .. versionadded:: 2.3.0 + + Returns + ------- + Series or Index + + Examples + -------- + For Series: + + >>> ser = pd.Series([b'cow', b'123', b'()']) + >>> ser.str.decode('ascii') + 0 cow + 1 123 + 2 () + dtype: object + """ + if dtype is not None and not is_string_dtype(dtype): + raise ValueError(f"dtype must be string or object, got {dtype=}") + if dtype is None and get_option("future.infer_string"): + dtype = "str" + # TODO: Add a similar _bytes interface. + if encoding in _cpython_optimized_decoders: + # CPython optimized implementation + f = lambda x: x.decode(encoding, errors) + else: + decoder = codecs.getdecoder(encoding) + f = lambda x: decoder(x, errors)[0] + arr = self._data.array + result = arr._str_map(f) + return self._wrap_result(result, dtype=dtype) + + @forbid_nonstring_types(["bytes"]) + def encode(self, encoding, errors: str = "strict"): + """ + Encode character string in the Series/Index using indicated encoding. + + Equivalent to :meth:`str.encode`. + + Parameters + ---------- + encoding : str + errors : str, optional + + Returns + ------- + Series/Index of objects + + Examples + -------- + >>> ser = pd.Series(['cow', '123', '()']) + >>> ser.str.encode(encoding='ascii') + 0 b'cow' + 1 b'123' + 2 b'()' + dtype: object + """ + result = self._data.array._str_encode(encoding, errors) + return self._wrap_result(result, returns_string=False) + + _shared_docs[ + "str_strip" + ] = r""" + Remove %(position)s characters. + + Strip whitespaces (including newlines) or a set of specified characters + from each string in the Series/Index from %(side)s. + Replaces any non-strings in Series with NaNs. + Equivalent to :meth:`str.%(method)s`. + + Parameters + ---------- + to_strip : str or None, default None + Specifying the set of characters to be removed. + All combinations of this set of characters will be stripped. + If None then whitespaces are removed. + + Returns + ------- + Series or Index of object + + See Also + -------- + Series.str.strip : Remove leading and trailing characters in Series/Index. + Series.str.lstrip : Remove leading characters in Series/Index. + Series.str.rstrip : Remove trailing characters in Series/Index. + + Examples + -------- + >>> s = pd.Series(['1. Ant. ', '2. Bee!\n', '3. Cat?\t', np.nan, 10, True]) + >>> s + 0 1. Ant. + 1 2. Bee!\n + 2 3. Cat?\t + 3 NaN + 4 10 + 5 True + dtype: object + + >>> s.str.strip() + 0 1. Ant. + 1 2. Bee! + 2 3. Cat? + 3 NaN + 4 NaN + 5 NaN + dtype: object + + >>> s.str.lstrip('123.') + 0 Ant. + 1 Bee!\n + 2 Cat?\t + 3 NaN + 4 NaN + 5 NaN + dtype: object + + >>> s.str.rstrip('.!? \n\t') + 0 1. Ant + 1 2. Bee + 2 3. Cat + 3 NaN + 4 NaN + 5 NaN + dtype: object + + >>> s.str.strip('123.!? \n\t') + 0 Ant + 1 Bee + 2 Cat + 3 NaN + 4 NaN + 5 NaN + dtype: object + """ + + @Appender( + _shared_docs["str_strip"] + % { + "side": "left and right sides", + "method": "strip", + "position": "leading and trailing", + } + ) + @forbid_nonstring_types(["bytes"]) + def strip(self, to_strip=None): + result = self._data.array._str_strip(to_strip) + return self._wrap_result(result) + + @Appender( + _shared_docs["str_strip"] + % {"side": "left side", "method": "lstrip", "position": "leading"} + ) + @forbid_nonstring_types(["bytes"]) + def lstrip(self, to_strip=None): + result = self._data.array._str_lstrip(to_strip) + return self._wrap_result(result) + + @Appender( + _shared_docs["str_strip"] + % {"side": "right side", "method": "rstrip", "position": "trailing"} + ) + @forbid_nonstring_types(["bytes"]) + def rstrip(self, to_strip=None): + result = self._data.array._str_rstrip(to_strip) + return self._wrap_result(result) + + _shared_docs[ + "str_removefix" + ] = r""" + Remove a %(side)s from an object series. + + If the %(side)s is not present, the original string will be returned. + + Parameters + ---------- + %(side)s : str + Remove the %(side)s of the string. + + Returns + ------- + Series/Index: object + The Series or Index with given %(side)s removed. + + See Also + -------- + Series.str.remove%(other_side)s : Remove a %(other_side)s from an object series. + + Examples + -------- + >>> s = pd.Series(["str_foo", "str_bar", "no_prefix"]) + >>> s + 0 str_foo + 1 str_bar + 2 no_prefix + dtype: object + >>> s.str.removeprefix("str_") + 0 foo + 1 bar + 2 no_prefix + dtype: object + + >>> s = pd.Series(["foo_str", "bar_str", "no_suffix"]) + >>> s + 0 foo_str + 1 bar_str + 2 no_suffix + dtype: object + >>> s.str.removesuffix("_str") + 0 foo + 1 bar + 2 no_suffix + dtype: object + """ + + @Appender( + _shared_docs["str_removefix"] % {"side": "prefix", "other_side": "suffix"} + ) + @forbid_nonstring_types(["bytes"]) + def removeprefix(self, prefix: str): + result = self._data.array._str_removeprefix(prefix) + return self._wrap_result(result) + + @Appender( + _shared_docs["str_removefix"] % {"side": "suffix", "other_side": "prefix"} + ) + @forbid_nonstring_types(["bytes"]) + def removesuffix(self, suffix: str): + result = self._data.array._str_removesuffix(suffix) + return self._wrap_result(result) + + @forbid_nonstring_types(["bytes"]) + def wrap(self, width: int, **kwargs): + r""" + Wrap strings in Series/Index at specified line width. + + This method has the same keyword parameters and defaults as + :class:`textwrap.TextWrapper`. + + Parameters + ---------- + width : int + Maximum line width. + expand_tabs : bool, optional + If True, tab characters will be expanded to spaces (default: True). + replace_whitespace : bool, optional + If True, each whitespace character (as defined by string.whitespace) + remaining after tab expansion will be replaced by a single space + (default: True). + drop_whitespace : bool, optional + If True, whitespace that, after wrapping, happens to end up at the + beginning or end of a line is dropped (default: True). + break_long_words : bool, optional + If True, then words longer than width will be broken in order to ensure + that no lines are longer than width. If it is false, long words will + not be broken, and some lines may be longer than width (default: True). + break_on_hyphens : bool, optional + If True, wrapping will occur preferably on whitespace and right after + hyphens in compound words, as it is customary in English. If false, + only whitespaces will be considered as potentially good places for line + breaks, but you need to set break_long_words to false if you want truly + insecable words (default: True). + + Returns + ------- + Series or Index + + Notes + ----- + Internally, this method uses a :class:`textwrap.TextWrapper` instance with + default settings. To achieve behavior matching R's stringr library str_wrap + function, use the arguments: + + - expand_tabs = False + - replace_whitespace = True + - drop_whitespace = True + - break_long_words = False + - break_on_hyphens = False + + Examples + -------- + >>> s = pd.Series(['line to be wrapped', 'another line to be wrapped']) + >>> s.str.wrap(12) + 0 line to be\nwrapped + 1 another line\nto be\nwrapped + dtype: object + """ + result = self._data.array._str_wrap(width, **kwargs) + return self._wrap_result(result) + + @forbid_nonstring_types(["bytes"]) + def get_dummies(self, sep: str = "|"): + """ + Return DataFrame of dummy/indicator variables for Series. + + Each string in Series is split by sep and returned as a DataFrame + of dummy/indicator variables. + + Parameters + ---------- + sep : str, default "|" + String to split on. + + Returns + ------- + DataFrame + Dummy variables corresponding to values of the Series. + + See Also + -------- + get_dummies : Convert categorical variable into dummy/indicator + variables. + + Examples + -------- + >>> pd.Series(['a|b', 'a', 'a|c']).str.get_dummies() + a b c + 0 1 1 0 + 1 1 0 0 + 2 1 0 1 + + >>> pd.Series(['a|b', np.nan, 'a|c']).str.get_dummies() + a b c + 0 1 1 0 + 1 0 0 0 + 2 1 0 1 + """ + # we need to cast to Series of strings as only that has all + # methods available for making the dummies... + result, name = self._data.array._str_get_dummies(sep) + return self._wrap_result( + result, + name=name, + expand=True, + returns_string=False, + ) + + @forbid_nonstring_types(["bytes"]) + def translate(self, table): + """ + Map all characters in the string through the given mapping table. + + Equivalent to standard :meth:`str.translate`. + + Parameters + ---------- + table : dict + Table is a mapping of Unicode ordinals to Unicode ordinals, strings, or + None. Unmapped characters are left untouched. + Characters mapped to None are deleted. :meth:`str.maketrans` is a + helper function for making translation tables. + + Returns + ------- + Series or Index + + Examples + -------- + >>> ser = pd.Series(["El niño", "Françoise"]) + >>> mytable = str.maketrans({'ñ': 'n', 'ç': 'c'}) + >>> ser.str.translate(mytable) + 0 El nino + 1 Francoise + dtype: object + """ + result = self._data.array._str_translate(table) + dtype = object if self._data.dtype == "object" else None + return self._wrap_result(result, dtype=dtype) + + @forbid_nonstring_types(["bytes"]) + def count(self, pat, flags: int = 0): + r""" + Count occurrences of pattern in each string of the Series/Index. + + This function is used to count the number of times a particular regex + pattern is repeated in each of the string elements of the + :class:`~pandas.Series`. + + Parameters + ---------- + pat : str + Valid regular expression. + flags : int, default 0, meaning no flags + Flags for the `re` module. For a complete list, `see here + `_. + **kwargs + For compatibility with other string methods. Not used. + + Returns + ------- + Series or Index + Same type as the calling object containing the integer counts. + + See Also + -------- + re : Standard library module for regular expressions. + str.count : Standard library version, without regular expression support. + + Notes + ----- + Some characters need to be escaped when passing in `pat`. + eg. ``'$'`` has a special meaning in regex and must be escaped when + finding this literal character. + + Examples + -------- + >>> s = pd.Series(['A', 'B', 'Aaba', 'Baca', np.nan, 'CABA', 'cat']) + >>> s.str.count('a') + 0 0.0 + 1 0.0 + 2 2.0 + 3 2.0 + 4 NaN + 5 0.0 + 6 1.0 + dtype: float64 + + Escape ``'$'`` to find the literal dollar sign. + + >>> s = pd.Series(['$', 'B', 'Aab$', '$$ca', 'C$B$', 'cat']) + >>> s.str.count('\\$') + 0 1 + 1 0 + 2 1 + 3 2 + 4 2 + 5 0 + dtype: int64 + + This is also available on Index + + >>> pd.Index(['A', 'A', 'Aaba', 'cat']).str.count('a') + Index([0, 0, 2, 1], dtype='int64') + """ + result = self._data.array._str_count(pat, flags) + return self._wrap_result(result, returns_string=False) + + @forbid_nonstring_types(["bytes"]) + def startswith( + self, pat: str | tuple[str, ...], na: Scalar | lib.NoDefault = lib.no_default + ) -> Series | Index: + """ + Test if the start of each string element matches a pattern. + + Equivalent to :meth:`str.startswith`. + + Parameters + ---------- + pat : str or tuple[str, ...] + Character sequence or tuple of strings. Regular expressions are not + accepted. + na : scalar, optional + Object shown if element tested is not a string. The default depends + on dtype of the array. For object-dtype, ``numpy.nan`` is used. + For the nullable ``StringDtype``, ``pandas.NA`` is used. + For the ``"str"`` dtype, ``False`` is used. + + Returns + ------- + Series or Index of bool + A Series of booleans indicating whether the given pattern matches + the start of each string element. + + See Also + -------- + str.startswith : Python standard library string method. + Series.str.endswith : Same as startswith, but tests the end of string. + Series.str.contains : Tests if string element contains a pattern. + + Examples + -------- + >>> s = pd.Series(['bat', 'Bear', 'cat', np.nan]) + >>> s + 0 bat + 1 Bear + 2 cat + 3 NaN + dtype: object + + >>> s.str.startswith('b') + 0 True + 1 False + 2 False + 3 NaN + dtype: object + + >>> s.str.startswith(('b', 'B')) + 0 True + 1 True + 2 False + 3 NaN + dtype: object + + Specifying `na` to be `False` instead of `NaN`. + + >>> s.str.startswith('b', na=False) + 0 True + 1 False + 2 False + 3 False + dtype: bool + """ + if not isinstance(pat, (str, tuple)): + msg = f"expected a string or tuple, not {type(pat).__name__}" + raise TypeError(msg) + result = self._data.array._str_startswith(pat, na=na) + return self._wrap_result(result, returns_string=False) + + @forbid_nonstring_types(["bytes"]) + def endswith( + self, pat: str | tuple[str, ...], na: Scalar | lib.NoDefault = lib.no_default + ) -> Series | Index: + """ + Test if the end of each string element matches a pattern. + + Equivalent to :meth:`str.endswith`. + + Parameters + ---------- + pat : str or tuple[str, ...] + Character sequence or tuple of strings. Regular expressions are not + accepted. + na : scalar, optional + Object shown if element tested is not a string. The default depends + on dtype of the array. For object-dtype, ``numpy.nan`` is used. + For the nullable ``StringDtype``, ``pandas.NA`` is used. + For the ``"str"`` dtype, ``False`` is used. + + Returns + ------- + Series or Index of bool + A Series of booleans indicating whether the given pattern matches + the end of each string element. + + See Also + -------- + str.endswith : Python standard library string method. + Series.str.startswith : Same as endswith, but tests the start of string. + Series.str.contains : Tests if string element contains a pattern. + + Examples + -------- + >>> s = pd.Series(['bat', 'bear', 'caT', np.nan]) + >>> s + 0 bat + 1 bear + 2 caT + 3 NaN + dtype: object + + >>> s.str.endswith('t') + 0 True + 1 False + 2 False + 3 NaN + dtype: object + + >>> s.str.endswith(('t', 'T')) + 0 True + 1 False + 2 True + 3 NaN + dtype: object + + Specifying `na` to be `False` instead of `NaN`. + + >>> s.str.endswith('t', na=False) + 0 True + 1 False + 2 False + 3 False + dtype: bool + """ + if not isinstance(pat, (str, tuple)): + msg = f"expected a string or tuple, not {type(pat).__name__}" + raise TypeError(msg) + result = self._data.array._str_endswith(pat, na=na) + return self._wrap_result(result, returns_string=False) + + @forbid_nonstring_types(["bytes"]) + def findall(self, pat, flags: int = 0): + """ + Find all occurrences of pattern or regular expression in the Series/Index. + + Equivalent to applying :func:`re.findall` to all the elements in the + Series/Index. + + Parameters + ---------- + pat : str + Pattern or regular expression. + flags : int, default 0 + Flags from ``re`` module, e.g. `re.IGNORECASE` (default is 0, which + means no flags). + + Returns + ------- + Series/Index of lists of strings + All non-overlapping matches of pattern or regular expression in each + string of this Series/Index. + + See Also + -------- + count : Count occurrences of pattern or regular expression in each string + of the Series/Index. + extractall : For each string in the Series, extract groups from all matches + of regular expression and return a DataFrame with one row for each + match and one column for each group. + re.findall : The equivalent ``re`` function to all non-overlapping matches + of pattern or regular expression in string, as a list of strings. + + Examples + -------- + >>> s = pd.Series(['Lion', 'Monkey', 'Rabbit']) + + The search for the pattern 'Monkey' returns one match: + + >>> s.str.findall('Monkey') + 0 [] + 1 [Monkey] + 2 [] + dtype: object + + On the other hand, the search for the pattern 'MONKEY' doesn't return any + match: + + >>> s.str.findall('MONKEY') + 0 [] + 1 [] + 2 [] + dtype: object + + Flags can be added to the pattern or regular expression. For instance, + to find the pattern 'MONKEY' ignoring the case: + + >>> import re + >>> s.str.findall('MONKEY', flags=re.IGNORECASE) + 0 [] + 1 [Monkey] + 2 [] + dtype: object + + When the pattern matches more than one string in the Series, all matches + are returned: + + >>> s.str.findall('on') + 0 [on] + 1 [on] + 2 [] + dtype: object + + Regular expressions are supported too. For instance, the search for all the + strings ending with the word 'on' is shown next: + + >>> s.str.findall('on$') + 0 [on] + 1 [] + 2 [] + dtype: object + + If the pattern is found more than once in the same string, then a list of + multiple strings is returned: + + >>> s.str.findall('b') + 0 [] + 1 [] + 2 [b, b] + dtype: object + """ + result = self._data.array._str_findall(pat, flags) + return self._wrap_result(result, returns_string=False) + + @forbid_nonstring_types(["bytes"]) + def extract( + self, pat: str, flags: int = 0, expand: bool = True + ) -> DataFrame | Series | Index: + r""" + Extract capture groups in the regex `pat` as columns in a DataFrame. + + For each subject string in the Series, extract groups from the + first match of regular expression `pat`. + + Parameters + ---------- + pat : str + Regular expression pattern with capturing groups. + flags : int, default 0 (no flags) + Flags from the ``re`` module, e.g. ``re.IGNORECASE``, that + modify regular expression matching for things like case, + spaces, etc. For more details, see :mod:`re`. + expand : bool, default True + If True, return DataFrame with one column per capture group. + If False, return a Series/Index if there is one capture group + or DataFrame if there are multiple capture groups. + + Returns + ------- + DataFrame or Series or Index + A DataFrame with one row for each subject string, and one + column for each group. Any capture group names in regular + expression pat will be used for column names; otherwise + capture group numbers will be used. The dtype of each result + column is always object, even when no match is found. If + ``expand=False`` and pat has only one capture group, then + return a Series (if subject is a Series) or Index (if subject + is an Index). + + See Also + -------- + extractall : Returns all matches (not just the first match). + + Examples + -------- + A pattern with two groups will return a DataFrame with two columns. + Non-matches will be NaN. + + >>> s = pd.Series(['a1', 'b2', 'c3']) + >>> s.str.extract(r'([ab])(\d)') + 0 1 + 0 a 1 + 1 b 2 + 2 NaN NaN + + A pattern may contain optional groups. + + >>> s.str.extract(r'([ab])?(\d)') + 0 1 + 0 a 1 + 1 b 2 + 2 NaN 3 + + Named groups will become column names in the result. + + >>> s.str.extract(r'(?P[ab])(?P\d)') + letter digit + 0 a 1 + 1 b 2 + 2 NaN NaN + + A pattern with one group will return a DataFrame with one column + if expand=True. + + >>> s.str.extract(r'[ab](\d)', expand=True) + 0 + 0 1 + 1 2 + 2 NaN + + A pattern with one group will return a Series if expand=False. + + >>> s.str.extract(r'[ab](\d)', expand=False) + 0 1 + 1 2 + 2 NaN + dtype: object + """ + from pandas import DataFrame + + if not isinstance(expand, bool): + raise ValueError("expand must be True or False") + + regex = re.compile(pat, flags=flags) + if regex.groups == 0: + raise ValueError("pattern contains no capture groups") + + if not expand and regex.groups > 1 and isinstance(self._data, ABCIndex): + raise ValueError("only one regex group is supported with Index") + + obj = self._data + result_dtype = _result_dtype(obj) + + returns_df = regex.groups > 1 or expand + + if returns_df: + name = None + columns = _get_group_names(regex) + + if obj.array.size == 0: + result = DataFrame(columns=columns, dtype=result_dtype) + + else: + result_list = self._data.array._str_extract( + pat, flags=flags, expand=returns_df + ) + + result_index: Index | None + if isinstance(obj, ABCSeries): + result_index = obj.index + else: + result_index = None + + result = DataFrame( + result_list, columns=columns, index=result_index, dtype=result_dtype + ) + + else: + name = _get_single_group_name(regex) + result = self._data.array._str_extract(pat, flags=flags, expand=returns_df) + return self._wrap_result(result, name=name, dtype=result_dtype) + + @forbid_nonstring_types(["bytes"]) + def extractall(self, pat, flags: int = 0) -> DataFrame: + r""" + Extract capture groups in the regex `pat` as columns in DataFrame. + + For each subject string in the Series, extract groups from all + matches of regular expression pat. When each subject string in the + Series has exactly one match, extractall(pat).xs(0, level='match') + is the same as extract(pat). + + Parameters + ---------- + pat : str + Regular expression pattern with capturing groups. + flags : int, default 0 (no flags) + A ``re`` module flag, for example ``re.IGNORECASE``. These allow + to modify regular expression matching for things like case, spaces, + etc. Multiple flags can be combined with the bitwise OR operator, + for example ``re.IGNORECASE | re.MULTILINE``. + + Returns + ------- + DataFrame + A ``DataFrame`` with one row for each match, and one column for each + group. Its rows have a ``MultiIndex`` with first levels that come from + the subject ``Series``. The last level is named 'match' and indexes the + matches in each item of the ``Series``. Any capture group names in + regular expression pat will be used for column names; otherwise capture + group numbers will be used. + + See Also + -------- + extract : Returns first match only (not all matches). + + Examples + -------- + A pattern with one group will return a DataFrame with one column. + Indices with no matches will not appear in the result. + + >>> s = pd.Series(["a1a2", "b1", "c1"], index=["A", "B", "C"]) + >>> s.str.extractall(r"[ab](\d)") + 0 + match + A 0 1 + 1 2 + B 0 1 + + Capture group names are used for column names of the result. + + >>> s.str.extractall(r"[ab](?P\d)") + digit + match + A 0 1 + 1 2 + B 0 1 + + A pattern with two groups will return a DataFrame with two columns. + + >>> s.str.extractall(r"(?P[ab])(?P\d)") + letter digit + match + A 0 a 1 + 1 a 2 + B 0 b 1 + + Optional groups that do not match are NaN in the result. + + >>> s.str.extractall(r"(?P[ab])?(?P\d)") + letter digit + match + A 0 a 1 + 1 a 2 + B 0 b 1 + C 0 NaN 1 + """ + # TODO: dispatch + return str_extractall(self._orig, pat, flags) + + _shared_docs[ + "find" + ] = """ + Return %(side)s indexes in each strings in the Series/Index. + + Each of returned indexes corresponds to the position where the + substring is fully contained between [start:end]. Return -1 on + failure. Equivalent to standard :meth:`str.%(method)s`. + + Parameters + ---------- + sub : str + Substring being searched. + start : int + Left edge index. + end : int + Right edge index. + + Returns + ------- + Series or Index of int. + + See Also + -------- + %(also)s + + Examples + -------- + For Series.str.find: + + >>> ser = pd.Series(["cow_", "duck_", "do_ve"]) + >>> ser.str.find("_") + 0 3 + 1 4 + 2 2 + dtype: int64 + + For Series.str.rfind: + + >>> ser = pd.Series(["_cow_", "duck_", "do_v_e"]) + >>> ser.str.rfind("_") + 0 4 + 1 4 + 2 4 + dtype: int64 + """ + + @Appender( + _shared_docs["find"] + % { + "side": "lowest", + "method": "find", + "also": "rfind : Return highest indexes in each strings.", + } + ) + @forbid_nonstring_types(["bytes"]) + def find(self, sub, start: int = 0, end=None): + if not isinstance(sub, str): + msg = f"expected a string object, not {type(sub).__name__}" + raise TypeError(msg) + + result = self._data.array._str_find(sub, start, end) + return self._wrap_result(result, returns_string=False) + + @Appender( + _shared_docs["find"] + % { + "side": "highest", + "method": "rfind", + "also": "find : Return lowest indexes in each strings.", + } + ) + @forbid_nonstring_types(["bytes"]) + def rfind(self, sub, start: int = 0, end=None): + if not isinstance(sub, str): + msg = f"expected a string object, not {type(sub).__name__}" + raise TypeError(msg) + + result = self._data.array._str_rfind(sub, start=start, end=end) + return self._wrap_result(result, returns_string=False) + + @forbid_nonstring_types(["bytes"]) + def normalize(self, form): + """ + Return the Unicode normal form for the strings in the Series/Index. + + For more information on the forms, see the + :func:`unicodedata.normalize`. + + Parameters + ---------- + form : {'NFC', 'NFKC', 'NFD', 'NFKD'} + Unicode form. + + Returns + ------- + Series/Index of objects + + Examples + -------- + >>> ser = pd.Series(['ñ']) + >>> ser.str.normalize('NFC') == ser.str.normalize('NFD') + 0 False + dtype: bool + """ + result = self._data.array._str_normalize(form) + return self._wrap_result(result) + + _shared_docs[ + "index" + ] = """ + Return %(side)s indexes in each string in Series/Index. + + Each of the returned indexes corresponds to the position where the + substring is fully contained between [start:end]. This is the same + as ``str.%(similar)s`` except instead of returning -1, it raises a + ValueError when the substring is not found. Equivalent to standard + ``str.%(method)s``. + + Parameters + ---------- + sub : str + Substring being searched. + start : int + Left edge index. + end : int + Right edge index. + + Returns + ------- + Series or Index of object + + See Also + -------- + %(also)s + + Examples + -------- + For Series.str.index: + + >>> ser = pd.Series(["horse", "eagle", "donkey"]) + >>> ser.str.index("e") + 0 4 + 1 0 + 2 4 + dtype: int64 + + For Series.str.rindex: + + >>> ser = pd.Series(["Deer", "eagle", "Sheep"]) + >>> ser.str.rindex("e") + 0 2 + 1 4 + 2 3 + dtype: int64 + """ + + @Appender( + _shared_docs["index"] + % { + "side": "lowest", + "similar": "find", + "method": "index", + "also": "rindex : Return highest indexes in each strings.", + } + ) + @forbid_nonstring_types(["bytes"]) + def index(self, sub, start: int = 0, end=None): + if not isinstance(sub, str): + msg = f"expected a string object, not {type(sub).__name__}" + raise TypeError(msg) + + result = self._data.array._str_index(sub, start=start, end=end) + return self._wrap_result(result, returns_string=False) + + @Appender( + _shared_docs["index"] + % { + "side": "highest", + "similar": "rfind", + "method": "rindex", + "also": "index : Return lowest indexes in each strings.", + } + ) + @forbid_nonstring_types(["bytes"]) + def rindex(self, sub, start: int = 0, end=None): + if not isinstance(sub, str): + msg = f"expected a string object, not {type(sub).__name__}" + raise TypeError(msg) + + result = self._data.array._str_rindex(sub, start=start, end=end) + return self._wrap_result(result, returns_string=False) + + def len(self): + """ + Compute the length of each element in the Series/Index. + + The element may be a sequence (such as a string, tuple or list) or a collection + (such as a dictionary). + + Returns + ------- + Series or Index of int + A Series or Index of integer values indicating the length of each + element in the Series or Index. + + See Also + -------- + str.len : Python built-in function returning the length of an object. + Series.size : Returns the length of the Series. + + Examples + -------- + Returns the length (number of characters) in a string. Returns the + number of entries for dictionaries, lists or tuples. + + >>> s = pd.Series(['dog', + ... '', + ... 5, + ... {'foo' : 'bar'}, + ... [2, 3, 5, 7], + ... ('one', 'two', 'three')]) + >>> s + 0 dog + 1 + 2 5 + 3 {'foo': 'bar'} + 4 [2, 3, 5, 7] + 5 (one, two, three) + dtype: object + >>> s.str.len() + 0 3.0 + 1 0.0 + 2 NaN + 3 1.0 + 4 4.0 + 5 3.0 + dtype: float64 + """ + result = self._data.array._str_len() + return self._wrap_result(result, returns_string=False) + + _shared_docs[ + "casemethods" + ] = """ + Convert strings in the Series/Index to %(type)s. + %(version)s + Equivalent to :meth:`str.%(method)s`. + + Returns + ------- + Series or Index of object + + See Also + -------- + Series.str.lower : Converts all characters to lowercase. + Series.str.upper : Converts all characters to uppercase. + Series.str.title : Converts first character of each word to uppercase and + remaining to lowercase. + Series.str.capitalize : Converts first character to uppercase and + remaining to lowercase. + Series.str.swapcase : Converts uppercase to lowercase and lowercase to + uppercase. + Series.str.casefold: Removes all case distinctions in the string. + + Examples + -------- + >>> s = pd.Series(['lower', 'CAPITALS', 'this is a sentence', 'SwApCaSe']) + >>> s + 0 lower + 1 CAPITALS + 2 this is a sentence + 3 SwApCaSe + dtype: object + + >>> s.str.lower() + 0 lower + 1 capitals + 2 this is a sentence + 3 swapcase + dtype: object + + >>> s.str.upper() + 0 LOWER + 1 CAPITALS + 2 THIS IS A SENTENCE + 3 SWAPCASE + dtype: object + + >>> s.str.title() + 0 Lower + 1 Capitals + 2 This Is A Sentence + 3 Swapcase + dtype: object + + >>> s.str.capitalize() + 0 Lower + 1 Capitals + 2 This is a sentence + 3 Swapcase + dtype: object + + >>> s.str.swapcase() + 0 LOWER + 1 capitals + 2 THIS IS A SENTENCE + 3 sWaPcAsE + dtype: object + """ + # Types: + # cases: + # upper, lower, title, capitalize, swapcase, casefold + # boolean: + # isalpha, isnumeric isalnum isdigit isdecimal isspace islower isupper istitle + # _doc_args holds dict of strings to use in substituting casemethod docs + _doc_args: dict[str, dict[str, str]] = {} + _doc_args["lower"] = {"type": "lowercase", "method": "lower", "version": ""} + _doc_args["upper"] = {"type": "uppercase", "method": "upper", "version": ""} + _doc_args["title"] = {"type": "titlecase", "method": "title", "version": ""} + _doc_args["capitalize"] = { + "type": "be capitalized", + "method": "capitalize", + "version": "", + } + _doc_args["swapcase"] = { + "type": "be swapcased", + "method": "swapcase", + "version": "", + } + _doc_args["casefold"] = { + "type": "be casefolded", + "method": "casefold", + "version": "", + } + + @Appender(_shared_docs["casemethods"] % _doc_args["lower"]) + @forbid_nonstring_types(["bytes"]) + def lower(self): + result = self._data.array._str_lower() + return self._wrap_result(result) + + @Appender(_shared_docs["casemethods"] % _doc_args["upper"]) + @forbid_nonstring_types(["bytes"]) + def upper(self): + result = self._data.array._str_upper() + return self._wrap_result(result) + + @Appender(_shared_docs["casemethods"] % _doc_args["title"]) + @forbid_nonstring_types(["bytes"]) + def title(self): + result = self._data.array._str_title() + return self._wrap_result(result) + + @Appender(_shared_docs["casemethods"] % _doc_args["capitalize"]) + @forbid_nonstring_types(["bytes"]) + def capitalize(self): + result = self._data.array._str_capitalize() + return self._wrap_result(result) + + @Appender(_shared_docs["casemethods"] % _doc_args["swapcase"]) + @forbid_nonstring_types(["bytes"]) + def swapcase(self): + result = self._data.array._str_swapcase() + return self._wrap_result(result) + + @Appender(_shared_docs["casemethods"] % _doc_args["casefold"]) + @forbid_nonstring_types(["bytes"]) + def casefold(self): + result = self._data.array._str_casefold() + return self._wrap_result(result) + + _shared_docs[ + "ismethods" + ] = """ + Check whether all characters in each string are %(type)s. + + This is equivalent to running the Python string method + :meth:`str.%(method)s` for each element of the Series/Index. If a string + has zero characters, ``False`` is returned for that check. + + Returns + ------- + Series or Index of bool + Series or Index of boolean values with the same length as the original + Series/Index. + + See Also + -------- + Series.str.isalpha : Check whether all characters are alphabetic. + Series.str.isnumeric : Check whether all characters are numeric. + Series.str.isalnum : Check whether all characters are alphanumeric. + Series.str.isdigit : Check whether all characters are digits. + Series.str.isdecimal : Check whether all characters are decimal. + Series.str.isspace : Check whether all characters are whitespace. + Series.str.islower : Check whether all characters are lowercase. + Series.str.isupper : Check whether all characters are uppercase. + Series.str.istitle : Check whether all characters are titlecase. + + Examples + -------- + **Checks for Alphabetic and Numeric Characters** + + >>> s1 = pd.Series(['one', 'one1', '1', '']) + + >>> s1.str.isalpha() + 0 True + 1 False + 2 False + 3 False + dtype: bool + + >>> s1.str.isnumeric() + 0 False + 1 False + 2 True + 3 False + dtype: bool + + >>> s1.str.isalnum() + 0 True + 1 True + 2 True + 3 False + dtype: bool + + Note that checks against characters mixed with any additional punctuation + or whitespace will evaluate to false for an alphanumeric check. + + >>> s2 = pd.Series(['A B', '1.5', '3,000']) + >>> s2.str.isalnum() + 0 False + 1 False + 2 False + dtype: bool + + **More Detailed Checks for Numeric Characters** + + There are several different but overlapping sets of numeric characters that + can be checked for. + + >>> s3 = pd.Series(['23', '³', '⅕', '']) + + The ``s3.str.isdecimal`` method checks for characters used to form numbers + in base 10. + + >>> s3.str.isdecimal() + 0 True + 1 False + 2 False + 3 False + dtype: bool + + The ``s.str.isdigit`` method is the same as ``s3.str.isdecimal`` but also + includes special digits, like superscripted and subscripted digits in + unicode. + + >>> s3.str.isdigit() + 0 True + 1 True + 2 False + 3 False + dtype: bool + + The ``s.str.isnumeric`` method is the same as ``s3.str.isdigit`` but also + includes other characters that can represent quantities such as unicode + fractions. + + >>> s3.str.isnumeric() + 0 True + 1 True + 2 True + 3 False + dtype: bool + + **Checks for Whitespace** + + >>> s4 = pd.Series([' ', '\\t\\r\\n ', '']) + >>> s4.str.isspace() + 0 True + 1 True + 2 False + dtype: bool + + **Checks for Character Case** + + >>> s5 = pd.Series(['leopard', 'Golden Eagle', 'SNAKE', '']) + + >>> s5.str.islower() + 0 True + 1 False + 2 False + 3 False + dtype: bool + + >>> s5.str.isupper() + 0 False + 1 False + 2 True + 3 False + dtype: bool + + The ``s5.str.istitle`` method checks for whether all words are in title + case (whether only the first letter of each word is capitalized). Words are + assumed to be as any sequence of non-numeric characters separated by + whitespace characters. + + >>> s5.str.istitle() + 0 False + 1 True + 2 False + 3 False + dtype: bool + """ + _doc_args["isalnum"] = {"type": "alphanumeric", "method": "isalnum"} + _doc_args["isalpha"] = {"type": "alphabetic", "method": "isalpha"} + _doc_args["isdigit"] = {"type": "digits", "method": "isdigit"} + _doc_args["isspace"] = {"type": "whitespace", "method": "isspace"} + _doc_args["islower"] = {"type": "lowercase", "method": "islower"} + _doc_args["isupper"] = {"type": "uppercase", "method": "isupper"} + _doc_args["istitle"] = {"type": "titlecase", "method": "istitle"} + _doc_args["isnumeric"] = {"type": "numeric", "method": "isnumeric"} + _doc_args["isdecimal"] = {"type": "decimal", "method": "isdecimal"} + # force _noarg_wrapper return type with dtype=np.dtype(bool) (GH 29624) + + isalnum = _map_and_wrap( + "isalnum", docstring=_shared_docs["ismethods"] % _doc_args["isalnum"] + ) + isalpha = _map_and_wrap( + "isalpha", docstring=_shared_docs["ismethods"] % _doc_args["isalpha"] + ) + isdigit = _map_and_wrap( + "isdigit", docstring=_shared_docs["ismethods"] % _doc_args["isdigit"] + ) + isspace = _map_and_wrap( + "isspace", docstring=_shared_docs["ismethods"] % _doc_args["isspace"] + ) + islower = _map_and_wrap( + "islower", docstring=_shared_docs["ismethods"] % _doc_args["islower"] + ) + isupper = _map_and_wrap( + "isupper", docstring=_shared_docs["ismethods"] % _doc_args["isupper"] + ) + istitle = _map_and_wrap( + "istitle", docstring=_shared_docs["ismethods"] % _doc_args["istitle"] + ) + isnumeric = _map_and_wrap( + "isnumeric", docstring=_shared_docs["ismethods"] % _doc_args["isnumeric"] + ) + isdecimal = _map_and_wrap( + "isdecimal", docstring=_shared_docs["ismethods"] % _doc_args["isdecimal"] + ) + + +def cat_safe(list_of_columns: list[npt.NDArray[np.object_]], sep: str): + """ + Auxiliary function for :meth:`str.cat`. + + Same signature as cat_core, but handles TypeErrors in concatenation, which + happen if the arrays in list_of columns have the wrong dtypes or content. + + Parameters + ---------- + list_of_columns : list of numpy arrays + List of arrays to be concatenated with sep; + these arrays may not contain NaNs! + sep : string + The separator string for concatenating the columns. + + Returns + ------- + nd.array + The concatenation of list_of_columns with sep. + """ + try: + result = cat_core(list_of_columns, sep) + except TypeError: + # if there are any non-string values (wrong dtype or hidden behind + # object dtype), np.sum will fail; catch and return with better message + for column in list_of_columns: + dtype = lib.infer_dtype(column, skipna=True) + if dtype not in ["string", "empty"]: + raise TypeError( + "Concatenation requires list-likes containing only " + "strings (or missing values). Offending values found in " + f"column {dtype}" + ) from None + return result + + +def cat_core(list_of_columns: list, sep: str): + """ + Auxiliary function for :meth:`str.cat` + + Parameters + ---------- + list_of_columns : list of numpy arrays + List of arrays to be concatenated with sep; + these arrays may not contain NaNs! + sep : string + The separator string for concatenating the columns. + + Returns + ------- + nd.array + The concatenation of list_of_columns with sep. + """ + if sep == "": + # no need to interleave sep if it is empty + arr_of_cols = np.asarray(list_of_columns, dtype=object) + return np.sum(arr_of_cols, axis=0) + list_with_sep = [sep] * (2 * len(list_of_columns) - 1) + list_with_sep[::2] = list_of_columns + arr_with_sep = np.asarray(list_with_sep, dtype=object) + return np.sum(arr_with_sep, axis=0) + + +def _result_dtype(arr): + # workaround #27953 + # ideally we just pass `dtype=arr.dtype` unconditionally, but this fails + # when the list of values is empty. + from pandas.core.arrays.string_ import StringDtype + + if isinstance(arr.dtype, (ArrowDtype, StringDtype)): + return arr.dtype + return object + + +def _get_single_group_name(regex: re.Pattern) -> Hashable: + if regex.groupindex: + return next(iter(regex.groupindex)) + else: + return None + + +def _get_group_names(regex: re.Pattern) -> list[Hashable]: + """ + Get named groups from compiled regex. + + Unnamed groups are numbered. + + Parameters + ---------- + regex : compiled regex + + Returns + ------- + list of column labels + """ + names = {v: k for k, v in regex.groupindex.items()} + return [names.get(1 + i, i) for i in range(regex.groups)] + + +def str_extractall(arr, pat, flags: int = 0) -> DataFrame: + regex = re.compile(pat, flags=flags) + # the regex must contain capture groups. + if regex.groups == 0: + raise ValueError("pattern contains no capture groups") + + if isinstance(arr, ABCIndex): + arr = arr.to_series().reset_index(drop=True).astype(arr.dtype) + + columns = _get_group_names(regex) + match_list = [] + index_list = [] + is_mi = arr.index.nlevels > 1 + + for subject_key, subject in arr.items(): + if isinstance(subject, str): + if not is_mi: + subject_key = (subject_key,) + + for match_i, match_tuple in enumerate(regex.findall(subject)): + if isinstance(match_tuple, str): + match_tuple = (match_tuple,) + na_tuple = [np.nan if group == "" else group for group in match_tuple] + match_list.append(na_tuple) + result_key = tuple(subject_key + (match_i,)) + index_list.append(result_key) + + from pandas import MultiIndex + + index = MultiIndex.from_tuples(index_list, names=arr.index.names + ["match"]) + dtype = _result_dtype(arr) + + result = arr._constructor_expanddim( + match_list, index=index, columns=columns, dtype=dtype + ) + return result diff --git a/shared/package-files/69/69686c052ab97da824c5f46a378e46b30a68eb88eff654aef40fe0da6315d8fd/mycielski.py b/shared/package-files/69/69686c052ab97da824c5f46a378e46b30a68eb88eff654aef40fe0da6315d8fd/mycielski.py new file mode 100644 index 0000000000000000000000000000000000000000..a1729c6ba6d90d39a9be5594bf6713d013c82c11 --- /dev/null +++ b/shared/package-files/69/69686c052ab97da824c5f46a378e46b30a68eb88eff654aef40fe0da6315d8fd/mycielski.py @@ -0,0 +1,108 @@ +"""Functions related to the Mycielski Operation and the Mycielskian family +of graphs. + +""" + +import networkx as nx +from networkx.utils import not_implemented_for + +__all__ = ["mycielskian", "mycielski_graph"] + + +@not_implemented_for("directed") +@not_implemented_for("multigraph") +def mycielskian(G, iterations=1): + r"""Returns the Mycielskian of a simple, undirected graph G + + The Mycielskian of graph preserves a graph's triangle free + property while increasing the chromatic number by 1. + + The Mycielski Operation on a graph, :math:`G=(V, E)`, constructs a new + graph with :math:`2|V| + 1` nodes and :math:`3|E| + |V|` edges. + + The construction is as follows: + + Let :math:`V = {0, ..., n-1}`. Construct another vertex set + :math:`U = {n, ..., 2n}` and a vertex, `w`. + Construct a new graph, `M`, with vertices :math:`U \bigcup V \bigcup w`. + For edges, :math:`(u, v) \in E` add edges :math:`(u, v), (u, v + n)`, and + :math:`(u + n, v)` to M. Finally, for all vertices :math:`u \in U`, add + edge :math:`(u, w)` to M. + + The Mycielski Operation can be done multiple times by repeating the above + process iteratively. + + More information can be found at https://en.wikipedia.org/wiki/Mycielskian + + Parameters + ---------- + G : graph + A simple, undirected NetworkX graph + iterations : int + The number of iterations of the Mycielski operation to + perform on G. Defaults to 1. Must be a non-negative integer. + + Returns + ------- + M : graph + The Mycielskian of G after the specified number of iterations. + + Notes + ----- + Graph, node, and edge data are not necessarily propagated to the new graph. + + """ + + M = nx.convert_node_labels_to_integers(G) + + for i in range(iterations): + n = M.number_of_nodes() + M.add_nodes_from(range(n, 2 * n)) + old_edges = list(M.edges()) + M.add_edges_from((u, v + n) for u, v in old_edges) + M.add_edges_from((u + n, v) for u, v in old_edges) + M.add_node(2 * n) + M.add_edges_from((u + n, 2 * n) for u in range(n)) + + return M + + +def mycielski_graph(n): + """Generator for the n_th Mycielski Graph. + + The Mycielski family of graphs is an infinite set of graphs. + :math:`M_1` is the singleton graph, :math:`M_2` is two vertices with an + edge, and, for :math:`i > 2`, :math:`M_i` is the Mycielskian of + :math:`M_{i-1}`. + + More information can be found at + http://mathworld.wolfram.com/MycielskiGraph.html + + Parameters + ---------- + n : int + The desired Mycielski Graph. + + Returns + ------- + M : graph + The n_th Mycielski Graph + + Notes + ----- + The first graph in the Mycielski sequence is the singleton graph. + The Mycielskian of this graph is not the :math:`P_2` graph, but rather the + :math:`P_2` graph with an extra, isolated vertex. The second Mycielski + graph is the :math:`P_2` graph, so the first two are hard coded. + The remaining graphs are generated using the Mycielski operation. + + """ + + if n < 1: + raise nx.NetworkXError("must satisfy n >= 0") + + if n == 1: + return nx.empty_graph(1) + + else: + return mycielskian(nx.path_graph(2), n - 2) diff --git a/shared/package-files/69/696b5b237007a1f20ae8b0c99e68fd507d5039fba55ec8b937207b6cdc95d95c/test_gomory_hu.py b/shared/package-files/69/696b5b237007a1f20ae8b0c99e68fd507d5039fba55ec8b937207b6cdc95d95c/test_gomory_hu.py new file mode 100644 index 0000000000000000000000000000000000000000..1649ec82c719226e9caa68268d8953f7cae6ef74 --- /dev/null +++ b/shared/package-files/69/696b5b237007a1f20ae8b0c99e68fd507d5039fba55ec8b937207b6cdc95d95c/test_gomory_hu.py @@ -0,0 +1,128 @@ +from itertools import combinations + +import pytest + +import networkx as nx +from networkx.algorithms.flow import ( + boykov_kolmogorov, + dinitz, + edmonds_karp, + preflow_push, + shortest_augmenting_path, +) + +flow_funcs = [ + boykov_kolmogorov, + dinitz, + edmonds_karp, + preflow_push, + shortest_augmenting_path, +] + + +class TestGomoryHuTree: + def minimum_edge_weight(self, T, u, v): + path = nx.shortest_path(T, u, v, weight="weight") + return min((T[u][v]["weight"], (u, v)) for (u, v) in zip(path, path[1:])) + + def compute_cutset(self, G, T_orig, edge): + T = T_orig.copy() + T.remove_edge(*edge) + U, V = list(nx.connected_components(T)) + cutset = set() + for x, nbrs in ((n, G[n]) for n in U): + cutset.update((x, y) for y in nbrs if y in V) + return cutset + + def test_default_flow_function_karate_club_graph(self): + G = nx.karate_club_graph() + nx.set_edge_attributes(G, 1, "capacity") + T = nx.gomory_hu_tree(G) + assert nx.is_tree(T) + for u, v in combinations(G, 2): + cut_value, edge = self.minimum_edge_weight(T, u, v) + assert nx.minimum_cut_value(G, u, v) == cut_value + + def test_karate_club_graph(self): + G = nx.karate_club_graph() + nx.set_edge_attributes(G, 1, "capacity") + for flow_func in flow_funcs: + T = nx.gomory_hu_tree(G, flow_func=flow_func) + assert nx.is_tree(T) + for u, v in combinations(G, 2): + cut_value, edge = self.minimum_edge_weight(T, u, v) + assert nx.minimum_cut_value(G, u, v) == cut_value + + def test_davis_southern_women_graph(self): + G = nx.davis_southern_women_graph() + nx.set_edge_attributes(G, 1, "capacity") + for flow_func in flow_funcs: + T = nx.gomory_hu_tree(G, flow_func=flow_func) + assert nx.is_tree(T) + for u, v in combinations(G, 2): + cut_value, edge = self.minimum_edge_weight(T, u, v) + assert nx.minimum_cut_value(G, u, v) == cut_value + + def test_florentine_families_graph(self): + G = nx.florentine_families_graph() + nx.set_edge_attributes(G, 1, "capacity") + for flow_func in flow_funcs: + T = nx.gomory_hu_tree(G, flow_func=flow_func) + assert nx.is_tree(T) + for u, v in combinations(G, 2): + cut_value, edge = self.minimum_edge_weight(T, u, v) + assert nx.minimum_cut_value(G, u, v) == cut_value + + @pytest.mark.slow + def test_les_miserables_graph_cutset(self): + G = nx.les_miserables_graph() + nx.set_edge_attributes(G, 1, "capacity") + for flow_func in flow_funcs: + T = nx.gomory_hu_tree(G, flow_func=flow_func) + assert nx.is_tree(T) + for u, v in combinations(G, 2): + cut_value, edge = self.minimum_edge_weight(T, u, v) + assert nx.minimum_cut_value(G, u, v) == cut_value + + def test_karate_club_graph_cutset(self): + G = nx.karate_club_graph() + nx.set_edge_attributes(G, 1, "capacity") + T = nx.gomory_hu_tree(G) + assert nx.is_tree(T) + u, v = 0, 33 + cut_value, edge = self.minimum_edge_weight(T, u, v) + cutset = self.compute_cutset(G, T, edge) + assert cut_value == len(cutset) + + def test_wikipedia_example(self): + # Example from https://en.wikipedia.org/wiki/Gomory%E2%80%93Hu_tree + G = nx.Graph() + G.add_weighted_edges_from( + ( + (0, 1, 1), + (0, 2, 7), + (1, 2, 1), + (1, 3, 3), + (1, 4, 2), + (2, 4, 4), + (3, 4, 1), + (3, 5, 6), + (4, 5, 2), + ) + ) + for flow_func in flow_funcs: + T = nx.gomory_hu_tree(G, capacity="weight", flow_func=flow_func) + assert nx.is_tree(T) + for u, v in combinations(G, 2): + cut_value, edge = self.minimum_edge_weight(T, u, v) + assert nx.minimum_cut_value(G, u, v, capacity="weight") == cut_value + + def test_directed_raises(self): + with pytest.raises(nx.NetworkXNotImplemented): + G = nx.DiGraph() + T = nx.gomory_hu_tree(G) + + def test_empty_raises(self): + with pytest.raises(nx.NetworkXError): + G = nx.empty_graph() + T = nx.gomory_hu_tree(G) diff --git a/shared/package-files/69/697f8fccd5f144899b31065f7089527073cdb32e84ca63011acc56535f648c4b/_conda_activate.bat b/shared/package-files/69/697f8fccd5f144899b31065f7089527073cdb32e84ca63011acc56535f648c4b/_conda_activate.bat new file mode 100644 index 0000000000000000000000000000000000000000..39063103b2c8a685a3d44b3f69485c0e608b16ca --- /dev/null +++ b/shared/package-files/69/697f8fccd5f144899b31065f7089527073cdb32e84ca63011acc56535f648c4b/_conda_activate.bat @@ -0,0 +1,42 @@ +@REM Copyright (C) 2012 Anaconda, Inc +@REM SPDX-License-Identifier: BSD-3-Clause +@REM Helper routine for activation, deactivation, and reactivation. + +@IF "%CONDA_PS1_BACKUP%"=="" GOTO FIXUP43 + @REM Handle transition from shell activated with conda 4.3 to a subsequent activation + @REM after conda updated to 4.4. See issue #6173. + @SET "PROMPT=%CONDA_PS1_BACKUP%" + @SET CONDA_PS1_BACKUP= +:FIXUP43 + +@SETLOCAL EnableDelayedExpansion +@FOR %%A in ("%TMP%") do @SET TMP=%%~sA +@REM It seems that it is not possible to have "CONDA_EXE=Something With Spaces" +@REM and %* to contain: activate "Something With Spaces does not exist". +@REM MSDOS associates the outer "'s and is unable to run very much at all. +@REM @SET CONDA_EXES="%CONDA_EXE%" %_CE_M% %_CE_CONDA% +@REM @FOR /F %%i IN ('%CONDA_EXES% shell.cmd.exe %*') DO @SET _TEMP_SCRIPT_PATH=%%i not return error +@REM This method will not work if %TMP% contains any spaces. +@FOR /L %%I IN (1,1,100) DO @( + SET UNIQUE_DIR=%TMP%\conda-!RANDOM! + MKDIR !UNIQUE_DIR! > NUL 2>&1 + IF NOT ERRORLEVEL 1 ( + SET UNIQUE=!UNIQUE_DIR!\conda.tmp + TYPE NUL 1> !UNIQUE! + GOTO tmp_file_created + ) +) +@ECHO Failed to create temp directory "%TMP%\conda-\" & exit /b 1 +:tmp_file_created +@"%CONDA_EXE%" %_CE_M% %_CE_CONDA% shell.cmd.exe %* 1>%UNIQUE% +@IF %ErrorLevel% NEQ 0 @EXIT /B %ErrorLevel% +@FOR /F %%i IN (%UNIQUE%) DO @SET _TEMP_SCRIPT_PATH=%%i +@RMDIR /S /Q %UNIQUE_DIR% +@FOR /F "delims=" %%A in (""!_TEMP_SCRIPT_PATH!"") DO @ENDLOCAL & @SET _TEMP_SCRIPT_PATH=%%~A +@IF "%_TEMP_SCRIPT_PATH%" == "" @EXIT /B 1 +@IF NOT "%CONDA_PROMPT_MODIFIER%" == "" @CALL SET "PROMPT=%%PROMPT:%CONDA_PROMPT_MODIFIER%=%_empty_not_set_%%%" +@CALL "%_TEMP_SCRIPT_PATH%" +@IF NOT "%CONDA_TEST_SAVE_TEMPS%x"=="x" @ECHO CONDA_TEST_SAVE_TEMPS :: retaining activate_batch %_TEMP_SCRIPT_PATH% 1>&2 +@IF "%CONDA_TEST_SAVE_TEMPS%x"=="x" @DEL /F /Q "%_TEMP_SCRIPT_PATH%" +@SET _TEMP_SCRIPT_PATH= +@SET "PROMPT=%CONDA_PROMPT_MODIFIER%%PROMPT%" diff --git a/shared/package-files/69/698517fe68264327d174c8c4396687339d3a099e9650ad1e16e7b0d2f153c11b/randtest.py b/shared/package-files/69/698517fe68264327d174c8c4396687339d3a099e9650ad1e16e7b0d2f153c11b/randtest.py new file mode 100644 index 0000000000000000000000000000000000000000..aa7d8b5275a77e70e3bb6e5662f380b819edaa5b --- /dev/null +++ b/shared/package-files/69/698517fe68264327d174c8c4396687339d3a099e9650ad1e16e7b0d2f153c11b/randtest.py @@ -0,0 +1,12 @@ +""" +.. deprecated:: 1.6 + + sympy.utilities.randtest has been renamed to sympy.core.random. +""" +from sympy.utilities.exceptions import sympy_deprecation_warning + +sympy_deprecation_warning("The sympy.utilities.randtest submodule is deprecated. Use sympy.core.random instead.", + deprecated_since_version="1.6", + active_deprecations_target="deprecated-sympy-utilities-submodules") + +from sympy.core.random import * # noqa:F401 diff --git a/shared/package-files/69/699af6427ea2fa0bc5187ff91e5fd2467dbe05df527f8cd0770a3d5462d278d6/__init__.py b/shared/package-files/69/699af6427ea2fa0bc5187ff91e5fd2467dbe05df527f8cd0770a3d5462d278d6/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..36ec3b6fdc77aac60b7a5534a58b454c1560c619 --- /dev/null +++ b/shared/package-files/69/699af6427ea2fa0bc5187ff91e5fd2467dbe05df527f8cd0770a3d5462d278d6/__init__.py @@ -0,0 +1,43 @@ +"""Integration functions that integrate a SymPy expression. + + Examples + ======== + + >>> from sympy import integrate, sin + >>> from sympy.abc import x + >>> integrate(1/x,x) + log(x) + >>> integrate(sin(x),x) + -cos(x) +""" +from .integrals import integrate, Integral, line_integrate +from .transforms import (mellin_transform, inverse_mellin_transform, + MellinTransform, InverseMellinTransform, + laplace_transform, inverse_laplace_transform, + LaplaceTransform, InverseLaplaceTransform, + fourier_transform, inverse_fourier_transform, + FourierTransform, InverseFourierTransform, + sine_transform, inverse_sine_transform, + SineTransform, InverseSineTransform, + cosine_transform, inverse_cosine_transform, + CosineTransform, InverseCosineTransform, + hankel_transform, inverse_hankel_transform, + HankelTransform, InverseHankelTransform) +from .singularityfunctions import singularityintegrate + +__all__ = [ + 'integrate', 'Integral', 'line_integrate', + + 'mellin_transform', 'inverse_mellin_transform', 'MellinTransform', + 'InverseMellinTransform', 'laplace_transform', + 'inverse_laplace_transform', 'LaplaceTransform', + 'InverseLaplaceTransform', 'fourier_transform', + 'inverse_fourier_transform', 'FourierTransform', + 'InverseFourierTransform', 'sine_transform', 'inverse_sine_transform', + 'SineTransform', 'InverseSineTransform', 'cosine_transform', + 'inverse_cosine_transform', 'CosineTransform', 'InverseCosineTransform', + 'hankel_transform', 'inverse_hankel_transform', 'HankelTransform', + 'InverseHankelTransform', + + 'singularityintegrate', +] diff --git a/shared/package-files/69/699fadd93f8ddfe20a178ec33d018a134620eb997ecf4f5db3b69125a844376a/special_log_ndtr_cpu_dispatch.h b/shared/package-files/69/699fadd93f8ddfe20a178ec33d018a134620eb997ecf4f5db3b69125a844376a/special_log_ndtr_cpu_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..37eb5d53d7c05ed26a683676d6fe6aa4be741937 --- /dev/null +++ b/shared/package-files/69/699fadd93f8ddfe20a178ec33d018a134620eb997ecf4f5db3b69125a844376a/special_log_ndtr_cpu_dispatch.h @@ -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_log_ndtr(const at::Tensor & self); +TORCH_API at::Tensor & special_log_ndtr_out(at::Tensor & out, const at::Tensor & self); +TORCH_API at::Tensor & special_log_ndtr_outf(const at::Tensor & self, at::Tensor & out); + +} // namespace cpu +} // namespace at diff --git a/shared/package-files/69/69a1dd5d4383f2464759b4f3b9973a739c4c33c3b5a076d1c723b13e954c31d4/dimacs.py b/shared/package-files/69/69a1dd5d4383f2464759b4f3b9973a739c4c33c3b5a076d1c723b13e954c31d4/dimacs.py new file mode 100644 index 0000000000000000000000000000000000000000..56fd9a20eeaae28b678b498ec4a7401481010bc2 --- /dev/null +++ b/shared/package-files/69/69a1dd5d4383f2464759b4f3b9973a739c4c33c3b5a076d1c723b13e954c31d4/dimacs.py @@ -0,0 +1,70 @@ +"""For reading in DIMACS file format + +www.cs.ubc.ca/~hoos/SATLIB/Benchmarks/SAT/satformat.ps + +""" + +from sympy.core import Symbol +from sympy.logic.boolalg import And, Or +import re + + +def load(s): + """Loads a boolean expression from a string. + + Examples + ======== + + >>> from sympy.logic.utilities.dimacs import load + >>> load('1') + cnf_1 + >>> load('1 2') + cnf_1 | cnf_2 + >>> load('1 \\n 2') + cnf_1 & cnf_2 + >>> load('1 2 \\n 3') + cnf_3 & (cnf_1 | cnf_2) + """ + clauses = [] + + lines = s.split('\n') + + pComment = re.compile(r'c.*') + pStats = re.compile(r'p\s*cnf\s*(\d*)\s*(\d*)') + + while len(lines) > 0: + line = lines.pop(0) + + # Only deal with lines that aren't comments + if not pComment.match(line): + m = pStats.match(line) + + if not m: + nums = line.rstrip('\n').split(' ') + list = [] + for lit in nums: + if lit != '': + if int(lit) == 0: + continue + num = abs(int(lit)) + sign = True + if int(lit) < 0: + sign = False + + if sign: + list.append(Symbol("cnf_%s" % num)) + else: + list.append(~Symbol("cnf_%s" % num)) + + if len(list) > 0: + clauses.append(Or(*list)) + + return And(*clauses) + + +def load_file(location): + """Loads a boolean expression from a file.""" + with open(location) as f: + s = f.read() + + return load(s) diff --git a/shared/package-files/69/69a40cd7668ecd08526c4fa0f30163fe5a3eba06e2fe968340186ef1427c7436/_image.py b/shared/package-files/69/69a40cd7668ecd08526c4fa0f30163fe5a3eba06e2fe968340186ef1427c7436/_image.py new file mode 100644 index 0000000000000000000000000000000000000000..3f0595f20d53df392dbfefdf090e669c9acd64be --- /dev/null +++ b/shared/package-files/69/69a40cd7668ecd08526c4fa0f30163fe5a3eba06e2fe968340186ef1427c7436/_image.py @@ -0,0 +1,597 @@ +from __future__ import annotations + +import json +import random +import string +from typing import TYPE_CHECKING, Literal, cast + +import matplotlib.pyplot as plt +import numpy as np + +try: + from IPython.display import HTML, display + + have_ipython = True +except ImportError: + have_ipython = False + +from .._explanation import Explanation +from ..utils import ordinal_str +from ..utils._legacy import kmeans +from . import colors + +if TYPE_CHECKING: + from matplotlib.colors import Colormap + + +def image( + shap_values: Explanation | np.ndarray | list[np.ndarray], + pixel_values: np.ndarray | None = None, + labels: list[str] | list[list[str]] | np.ndarray | None = None, + true_labels: list | None = None, + width: int | None = 20, + aspect: float | None = 0.2, + hspace: float | Literal["auto"] | None = 0.2, + labelpad: float | None = None, + cmap: str | Colormap | None = colors.red_transparent_blue, + vmax: float | None = None, + show: bool | None = True, +): + """Plots SHAP values for image inputs. + + Parameters + ---------- + shap_values : [numpy.array] + List of arrays of SHAP values. Each array has the shape + (# samples x width x height x channels), and the + length of the list is equal to the number of model outputs that are being + explained. + + pixel_values : numpy.array + Matrix of pixel values (# samples x width x height x channels) for each image. + It should be the same + shape as each array in the ``shap_values`` list of arrays. + + labels : list or np.ndarray + List or ``np.ndarray`` (# samples x top_k classes) of names for each of the + model outputs that are being explained. + + true_labels: list + List of a true image labels to plot. + + width : float + The width of the produced matplotlib plot. + + labelpad : float + How much padding to use around the model output labels. + + cmap: str or matplotlib.colors.Colormap + Colormap to use when plotting the SHAP values. + + vmax: Optional float + Sets the colormap scale for SHAP values from ``-vmax`` to ``+vmax``. + + show : bool + Whether :external+mpl:func:`matplotlib.pyplot.show()` is called before returning. + Setting this to ``False`` allows the plot + to be customized further after it has been created. + + Examples + -------- + See `image plot examples `_. + + """ + # support passing an explanation object + if isinstance(shap_values, Explanation): + shap_exp: Explanation = shap_values + # feature_names = [shap_exp.feature_names] + # ind = 0 + if len(shap_exp.output_dims) == 1: + shap_values = cast("list[np.ndarray]", [shap_exp.values[..., i] for i in range(shap_exp.values.shape[-1])]) + elif len(shap_exp.output_dims) == 0: + shap_values = cast("list[np.ndarray]", [shap_exp.values]) + else: + raise Exception("Number of outputs needs to have support added!! (probably a simple fix)") + if pixel_values is None: + pixel_values = cast("np.ndarray", shap_exp.data) + if labels is None: + labels = cast("list[str]", shap_exp.output_names) + else: + assert isinstance(pixel_values, np.ndarray), ( + "The input pixel_values must be a numpy array or an Explanation object must be provided!" + ) + + # multi_output = True + if not isinstance(shap_values, list): + # multi_output = False + shap_values = cast("list[np.ndarray]", [shap_values]) + + if len(shap_values[0].shape) == 3: + shap_values = [v.reshape(1, *v.shape) for v in shap_values] + pixel_values = pixel_values.reshape(1, *pixel_values.shape) + + # labels: (rows (images), columns (top_k classes) ) or (1, columns (top_k classes) ) + if labels is not None: + if isinstance(labels, list): + labels = np.array(labels) + labels = labels.reshape(-1, len(shap_values)) + + # if labels is not None: + # labels = np.array(labels) + # if labels.shape[0] != shap_values[0].shape[0] and labels.shape[0] == len(shap_values): + # labels = np.tile(np.array([labels]), shap_values[0].shape[0]) + # assert labels.shape[0] == shap_values[0].shape[0], "Labels must have same row count as shap_values arrays!" + # if multi_output: + # assert labels.shape[1] == len(shap_values), "Labels must have a column for each output in shap_values!" + # else: + # assert len(labels[0].shape) == 1, "Labels must be a vector for single output shap_values." + + label_kwargs = {} if labelpad is None else {"pad": labelpad} + + # plot our explanations + x: np.ndarray = pixel_values + fig_size = np.array([3 * (len(shap_values) + 1), 2.5 * (x.shape[0] + 1)]) + if fig_size[0] > width: + fig_size *= width / fig_size[0] + fig, axes = plt.subplots(nrows=x.shape[0], ncols=len(shap_values) + 1, figsize=fig_size, squeeze=False) + for row in range(x.shape[0]): + x_curr = x[row].copy() + + # make sure we have a 2D array for grayscale + if len(x_curr.shape) == 3 and x_curr.shape[2] == 1: + x_curr = x_curr.reshape(x_curr.shape[:2]) + + # if x_curr.max() > 1: + # x_curr /= 255. + + # get a grayscale version of the image + if len(x_curr.shape) == 3 and x_curr.shape[2] == 3: + x_curr_gray = 0.2989 * x_curr[:, :, 0] + 0.5870 * x_curr[:, :, 1] + 0.1140 * x_curr[:, :, 2] # rgb to gray + x_curr_disp = x_curr + elif len(x_curr.shape) == 3: + x_curr_gray = x_curr.mean(2) + + # for non-RGB multi-channel data we show an RGB image where each of the three channels is a scaled k-mean center + flat_vals = x_curr.reshape([x_curr.shape[0] * x_curr.shape[1], x_curr.shape[2]]).T + flat_vals = (flat_vals.T - flat_vals.mean(1)).T + means = kmeans(flat_vals, 3, round_values=False).data.T.reshape([x_curr.shape[0], x_curr.shape[1], 3]) + x_curr_disp = (means - np.percentile(means, 0.5, (0, 1))) / ( + np.percentile(means, 99.5, (0, 1)) - np.percentile(means, 1, (0, 1)) + ) + x_curr_disp[x_curr_disp > 1] = 1 + x_curr_disp[x_curr_disp < 0] = 0 + else: + x_curr_gray = x_curr + x_curr_disp = x_curr + + axes[row, 0].imshow(x_curr_disp, cmap=plt.get_cmap("gray")) + if true_labels: + axes[row, 0].set_title(true_labels[row], **label_kwargs) + axes[row, 0].axis("off") + if len(shap_values[0][row].shape) == 2: + abs_vals = np.stack([np.abs(shap_values[i]) for i in range(len(shap_values))], 0).flatten() + else: + abs_vals = np.stack([np.abs(shap_values[i].sum(-1)) for i in range(len(shap_values))], 0).flatten() + + max_val = np.nanpercentile(abs_vals, 99.9) if vmax is None else vmax + + for i in range(len(shap_values)): + if labels is not None: + # Add labels if there are labels for each sample, or if not, only for the first row + if labels.shape[0] > 1 or row == 0: + axes[row, i + 1].set_title(labels[row, i], **label_kwargs) + sv = shap_values[i][row] if len(shap_values[i][row].shape) == 2 else shap_values[i][row].sum(-1) + axes[row, i + 1].imshow( + x_curr_gray, cmap=plt.get_cmap("gray"), alpha=0.15, extent=(-1, sv.shape[1], sv.shape[0], -1) + ) + im = axes[row, i + 1].imshow(sv, cmap=cmap, vmin=-max_val, vmax=max_val) + axes[row, i + 1].axis("off") + if hspace == "auto": + fig.tight_layout() + else: + fig.subplots_adjust(hspace=hspace) + cb = fig.colorbar( + im, ax=np.ravel(axes).tolist(), label="SHAP value", orientation="horizontal", aspect=fig_size[0] / aspect + ) + cb.outline.set_visible(False) # type: ignore + if show: + plt.show() + + +def image_to_text(shap_values): + """Plots SHAP values for image inputs with test outputs. + + Parameters + ---------- + shap_values : [numpy.array] + List of arrays of SHAP values. Each array has the shap (# width x height x channels x num output tokens). One array + for each sample + + """ + if not have_ipython: # pragma: no cover + msg = "IPython is required for this function but is not installed. Fix this with `pip install ipython`." + raise ImportError(msg) + + if len(shap_values.values.shape) == 5: + for i in range(shap_values.values.shape[0]): + display(HTML(f"
{ordinal_str(i)} instance:
")) + image_to_text(shap_values[i]) + + return + + uuid = "".join(random.choices(string.ascii_lowercase, k=20)) + + # creating input html tokens + + model_output = shap_values.output_names + + output_text_html = "" + + for i in range(model_output.shape[0]): + output_text_html += ( + "
" + f"
" + "
" + f"
" + + model_output[i] + .replace("<", "<") + .replace(">", ">") + .replace(" ##", "") + .replace("▁", "") + .replace("Ġ", "") + + "
" + + "
" + ) + + # computing gray scale images + image_data = shap_values.data + image_height = image_data.shape[0] + image_width = image_data.shape[1] + + # computing gray scale image + image_data_gray_scale = np.ones((image_height, image_width, 4)) * 255 * 0.5 + image_data_gray_scale[:, :, 0] = np.mean(image_data, axis=2).astype(int) + image_data_gray_scale[:, :, 1] = image_data_gray_scale[:, :, 0] + image_data_gray_scale[:, :, 2] = image_data_gray_scale[:, :, 0] + + # computing shap color values for every pixel and for every output token + + shap_values_color_maps = shap_values.values[:, :, 0, :] + max_val = np.nanpercentile(np.abs(shap_values.values), 99.9) + + shap_values_color_dict = {} + + for index in range(model_output.shape[0]): + shap_values_color_dict[f"{uuid}_output_flat_token_{index}"] = ( + (colors.red_transparent_blue(0.5 + 0.5 * shap_values_color_maps[:, :, index] / max_val) * 255) + .astype(int) + .tolist() + ) + + # converting to json to be read in javascript + + image_data_json = json.dumps(shap_values.data.astype(int).tolist()) + shap_values_color_dict_json = json.dumps(shap_values_color_dict) + image_data_gray_scale_json = json.dumps(image_data_gray_scale.astype(int).tolist()) + + image_viz_html = f""" + +
+
+
+ Input/Output - Heatmap +
+
+
+
+
+ Input Image +
+
+ +
+
+
+
+ Zoom + + + +
+
+ +
+
+
+
+
+ Output Text +
+
+ {output_text_html} +
+
+
+
+ + """ + + image_viz_script = f""" + + """ + + display(HTML(image_viz_html + image_viz_script)) diff --git a/shared/package-files/69/69a56a9993b7729b29b274e65016031c81f2397f176ed5ad44d59bd50425e0bd/libgcc_s.so b/shared/package-files/69/69a56a9993b7729b29b274e65016031c81f2397f176ed5ad44d59bd50425e0bd/libgcc_s.so new file mode 100644 index 0000000000000000000000000000000000000000..c8e92242fc5b32888222e279088df08e791bd52c --- /dev/null +++ b/shared/package-files/69/69a56a9993b7729b29b274e65016031c81f2397f176ed5ad44d59bd50425e0bd/libgcc_s.so @@ -0,0 +1,4 @@ +/* GNU ld script + Use the shared library, but some functions are only in + the static library. */ +GROUP ( libgcc_s.so.1 -lgcc ) diff --git a/shared/package-files/69/69aa081a0ba8014dc53291722d383c3d6ecce305a2b2f2ee8aa77edd1864589b/dask.py b/shared/package-files/69/69aa081a0ba8014dc53291722d383c3d6ecce305a2b2f2ee8aa77edd1864589b/dask.py new file mode 100644 index 0000000000000000000000000000000000000000..12e778f370759a6067aa3f6850fc4ea95fdf8ebf --- /dev/null +++ b/shared/package-files/69/69aa081a0ba8014dc53291722d383c3d6ecce305a2b2f2ee8aa77edd1864589b/dask.py @@ -0,0 +1,1659 @@ +# coding: utf-8 +"""Distributed training with LightGBM and dask.distributed. + +This module enables you to perform distributed training with LightGBM on +dask.Array and dask.DataFrame collections. + +It is based on dask-lightgbm, which was based on dask-xgboost. +""" + +import operator +import socket +from collections import defaultdict +from copy import deepcopy +from enum import Enum, auto +from functools import partial +from typing import Any, Dict, Iterable, List, Optional, Tuple, Type, Union +from urllib.parse import urlparse + +import numpy as np +import scipy.sparse as ss + +from .basic import LightGBMError, _choose_param_value, _ConfigAliases, _log_info, _log_warning +from .compat import ( + DASK_INSTALLED, + PANDAS_INSTALLED, + SKLEARN_INSTALLED, + Client, + Future, + LGBMNotFittedError, + concat, + dask_Array, + dask_array_from_delayed, + dask_bag_from_delayed, + dask_DataFrame, + dask_Series, + default_client, + delayed, + pd_DataFrame, + pd_Series, + wait, +) +from .sklearn import ( + LGBMClassifier, + LGBMModel, + LGBMRanker, + LGBMRegressor, + _LGBM_ScikitCustomObjectiveFunction, + _LGBM_ScikitEvalMetricType, + _lgbmmodel_doc_custom_eval_note, + _lgbmmodel_doc_fit, + _lgbmmodel_doc_predict, +) + +__all__ = [ + "DaskLGBMClassifier", + "DaskLGBMRanker", + "DaskLGBMRegressor", +] + +_DaskCollection = Union[dask_Array, dask_DataFrame, dask_Series] +_DaskMatrixLike = Union[dask_Array, dask_DataFrame] +_DaskVectorLike = Union[dask_Array, dask_Series] +_DaskPart = Union[np.ndarray, pd_DataFrame, pd_Series, ss.spmatrix] +_PredictionDtype = Union[Type[np.float32], Type[np.float64], Type[np.int32], Type[np.int64]] + + +class _RemoteSocket: + def acquire(self) -> int: + self.socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) + self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) + self.socket.bind(("", 0)) + return self.socket.getsockname()[1] + + def release(self) -> None: + self.socket.close() + + +def _acquire_port() -> Tuple[_RemoteSocket, int]: + s = _RemoteSocket() + port = s.acquire() + return s, port + + +class _DatasetNames(Enum): + """Placeholder names used by lightgbm.dask internals to say 'also evaluate the training data'. + + Avoid duplicating the training data when the validation set refers to elements of training data. + """ + + TRAINSET = auto() + SAMPLE_WEIGHT = auto() + INIT_SCORE = auto() + GROUP = auto() + + +def _get_dask_client(client: Optional[Client]) -> Client: + """Choose a Dask client to use. + + Parameters + ---------- + client : dask.distributed.Client or None + Dask client. + + Returns + ------- + client : dask.distributed.Client + A Dask client. + """ + if client is None: + return default_client() + else: + return client + + +def _assign_open_ports_to_workers( + client: Client, + workers: List[str], +) -> Tuple[Dict[str, Future], Dict[str, int]]: + """Assign an open port to each worker. + + Returns + ------- + worker_to_socket_future: dict + mapping from worker address to a future pointing to the remote socket. + worker_to_port: dict + mapping from worker address to an open port in the worker's host. + """ + # Acquire port in worker + worker_to_future = {} + for worker in workers: + worker_to_future[worker] = client.submit( + _acquire_port, + workers=[worker], + allow_other_workers=False, + pure=False, + ) + + # schedule futures to retrieve each element of the tuple + worker_to_socket_future = {} + worker_to_port_future = {} + for worker, socket_future in worker_to_future.items(): + worker_to_socket_future[worker] = client.submit(operator.itemgetter(0), socket_future) + worker_to_port_future[worker] = client.submit(operator.itemgetter(1), socket_future) + + # retrieve ports + worker_to_port = client.gather(worker_to_port_future) + + return worker_to_socket_future, worker_to_port + + +def _concat(seq: List[_DaskPart]) -> _DaskPart: + if isinstance(seq[0], np.ndarray): + return np.concatenate(seq, axis=0) + elif isinstance(seq[0], (pd_DataFrame, pd_Series)): + return concat(seq, axis=0) + elif isinstance(seq[0], ss.spmatrix): + return ss.vstack(seq, format="csr") + else: + raise TypeError( + f"Data must be one of: numpy arrays, pandas dataframes, sparse matrices (from scipy). Got {type(seq[0]).__name__}." + ) + + +def _remove_list_padding(*args: Any) -> List[List[Any]]: + return [[z for z in arg if z is not None] for arg in args] + + +def _pad_eval_names(lgbm_model: LGBMModel, required_names: List[str]) -> LGBMModel: + """Append missing (key, value) pairs to a LightGBM model's evals_result_ and best_score_ OrderedDict attrs based on a set of required eval_set names. + + Allows users to rely on expected eval_set names being present when fitting DaskLGBM estimators with ``eval_set``. + """ + for eval_name in required_names: + if eval_name not in lgbm_model.evals_result_: + lgbm_model.evals_result_[eval_name] = {} + if eval_name not in lgbm_model.best_score_: + lgbm_model.best_score_[eval_name] = {} + + return lgbm_model + + +def _train_part( + params: Dict[str, Any], + model_factory: Type[LGBMModel], + list_of_parts: List[Dict[str, _DaskPart]], + machines: str, + local_listen_port: int, + num_machines: int, + return_model: bool, + time_out: int, + remote_socket: _RemoteSocket, + **kwargs: Any, +) -> Optional[LGBMModel]: + network_params = { + "machines": machines, + "local_listen_port": local_listen_port, + "time_out": time_out, + "num_machines": num_machines, + } + params.update(network_params) + + is_ranker = issubclass(model_factory, LGBMRanker) + + # Concatenate many parts into one + data = _concat([x["data"] for x in list_of_parts]) + label = _concat([x["label"] for x in list_of_parts]) + + if "weight" in list_of_parts[0]: + weight = _concat([x["weight"] for x in list_of_parts]) + else: + weight = None + + if "group" in list_of_parts[0]: + group = _concat([x["group"] for x in list_of_parts]) + else: + group = None + + if "init_score" in list_of_parts[0]: + init_score = _concat([x["init_score"] for x in list_of_parts]) + else: + init_score = None + + # construct local eval_set data. + n_evals = max(len(x.get("eval_set", [])) for x in list_of_parts) + eval_names = kwargs.pop("eval_names", None) + eval_class_weight = kwargs.get("eval_class_weight") + local_eval_set = None + local_eval_names = None + local_eval_sample_weight = None + local_eval_init_score = None + local_eval_group = None + + if n_evals: + has_eval_sample_weight = any(x.get("eval_sample_weight") is not None for x in list_of_parts) + has_eval_init_score = any(x.get("eval_init_score") is not None for x in list_of_parts) + + local_eval_set = [] + evals_result_names = [] + if has_eval_sample_weight: + local_eval_sample_weight = [] + if has_eval_init_score: + local_eval_init_score = [] + if is_ranker: + local_eval_group = [] + + # store indices of eval_set components that were not contained within local parts. + missing_eval_component_idx = [] + + # consolidate parts of each individual eval component. + for i in range(n_evals): + x_e = [] + y_e = [] + w_e = [] + init_score_e = [] + g_e = [] + for part in list_of_parts: + if not part.get("eval_set"): + continue + + # require that eval_name exists in evaluated result data in case dropped due to padding. + # in distributed training the 'training' eval_set is not detected, will have name 'valid_'. + if eval_names: + evals_result_name = eval_names[i] + else: + evals_result_name = f"valid_{i}" + + eval_set = part["eval_set"][i] + if eval_set is _DatasetNames.TRAINSET: + x_e.append(part["data"]) + y_e.append(part["label"]) + else: + x_e.extend(eval_set[0]) + y_e.extend(eval_set[1]) + + if evals_result_name not in evals_result_names: + evals_result_names.append(evals_result_name) + + eval_weight = part.get("eval_sample_weight") + if eval_weight: + if eval_weight[i] is _DatasetNames.SAMPLE_WEIGHT: + w_e.append(part["weight"]) + else: + w_e.extend(eval_weight[i]) + + eval_init_score = part.get("eval_init_score") + if eval_init_score: + if eval_init_score[i] is _DatasetNames.INIT_SCORE: + init_score_e.append(part["init_score"]) + else: + init_score_e.extend(eval_init_score[i]) + + eval_group = part.get("eval_group") + if eval_group: + if eval_group[i] is _DatasetNames.GROUP: + g_e.append(part["group"]) + else: + g_e.extend(eval_group[i]) + + # filter padding from eval parts then _concat each eval_set component. + x_e, y_e, w_e, init_score_e, g_e = _remove_list_padding(x_e, y_e, w_e, init_score_e, g_e) + if x_e: + local_eval_set.append((_concat(x_e), _concat(y_e))) + else: + missing_eval_component_idx.append(i) + continue + + if w_e: + local_eval_sample_weight.append(_concat(w_e)) + if init_score_e: + local_eval_init_score.append(_concat(init_score_e)) + if g_e: + local_eval_group.append(_concat(g_e)) + + # reconstruct eval_set fit args/kwargs depending on which components of eval_set are on worker. + eval_component_idx = [i for i in range(n_evals) if i not in missing_eval_component_idx] + if eval_names: + local_eval_names = [eval_names[i] for i in eval_component_idx] + if eval_class_weight: + kwargs["eval_class_weight"] = [eval_class_weight[i] for i in eval_component_idx] + + model = model_factory(**params) + if remote_socket is not None: + remote_socket.release() + try: + if is_ranker: + model.fit( + data, + label, + sample_weight=weight, + init_score=init_score, + group=group, + eval_set=local_eval_set, + eval_sample_weight=local_eval_sample_weight, + eval_init_score=local_eval_init_score, + eval_group=local_eval_group, + eval_names=local_eval_names, + **kwargs, + ) + else: + model.fit( + data, + label, + sample_weight=weight, + init_score=init_score, + eval_set=local_eval_set, + eval_sample_weight=local_eval_sample_weight, + eval_init_score=local_eval_init_score, + eval_names=local_eval_names, + **kwargs, + ) + + finally: + if getattr(model, "fitted_", False): + model.booster_.free_network() + + if n_evals: + # ensure that expected keys for evals_result_ and best_score_ exist regardless of padding. + model = _pad_eval_names(model, required_names=evals_result_names) + + return model if return_model else None + + +def _split_to_parts(data: _DaskCollection, is_matrix: bool) -> List[_DaskPart]: + parts = data.to_delayed() + if isinstance(parts, np.ndarray): + if is_matrix: + assert parts.shape[1] == 1 + else: + assert parts.ndim == 1 or parts.shape[1] == 1 + parts = parts.flatten().tolist() + return parts + + +def _machines_to_worker_map(machines: str, worker_addresses: Iterable[str]) -> Dict[str, int]: + """Create a worker_map from machines list. + + Given ``machines`` and a list of Dask worker addresses, return a mapping where the keys are + ``worker_addresses`` and the values are ports from ``machines``. + + Parameters + ---------- + machines : str + A comma-delimited list of workers, of the form ``ip1:port,ip2:port``. + worker_addresses : list of str + An iterable of Dask worker addresses, of the form ``{protocol}{hostname}:{port}``, where ``port`` is the port Dask's scheduler uses to talk to that worker. + + Returns + ------- + result : Dict[str, int] + Dictionary where keys are work addresses in the form expected by Dask and values are a port for LightGBM to use. + """ + machine_addresses = machines.split(",") + + if len(set(machine_addresses)) != len(machine_addresses): + raise ValueError( + f"Found duplicates in 'machines' ({machines}). Each entry in 'machines' must be a unique IP-port combination." + ) + + machine_to_port = defaultdict(set) + for address in machine_addresses: + host, port = address.split(":") + machine_to_port[host].add(int(port)) + + out = {} + for address in worker_addresses: + worker_host = urlparse(address).hostname + if not worker_host: + raise ValueError(f"Could not parse host name from worker address '{address}'") + out[address] = machine_to_port[worker_host].pop() + + return out + + +def _train( + client: Client, + data: _DaskMatrixLike, + label: _DaskCollection, + params: Dict[str, Any], + model_factory: Type[LGBMModel], + sample_weight: Optional[_DaskVectorLike] = None, + init_score: Optional[_DaskCollection] = None, + group: Optional[_DaskVectorLike] = None, + eval_set: Optional[List[Tuple[_DaskMatrixLike, _DaskCollection]]] = None, + eval_names: Optional[List[str]] = None, + eval_sample_weight: Optional[List[_DaskVectorLike]] = None, + eval_class_weight: Optional[List[Union[dict, str]]] = None, + eval_init_score: Optional[List[_DaskCollection]] = None, + eval_group: Optional[List[_DaskVectorLike]] = None, + eval_metric: Optional[_LGBM_ScikitEvalMetricType] = None, + eval_at: Optional[Union[List[int], Tuple[int, ...]]] = None, + **kwargs: Any, +) -> LGBMModel: + """Inner train routine. + + Parameters + ---------- + client : dask.distributed.Client + Dask client. + data : Dask Array or Dask DataFrame of shape = [n_samples, n_features] + Input feature matrix. + label : Dask Array, Dask DataFrame or Dask Series of shape = [n_samples] + The target values (class labels in classification, real numbers in regression). + params : dict + Parameters passed to constructor of the local underlying model. + model_factory : lightgbm.LGBMClassifier, lightgbm.LGBMRegressor, or lightgbm.LGBMRanker class + Class of the local underlying model. + sample_weight : Dask Array or Dask Series of shape = [n_samples] or None, optional (default=None) + Weights of training data. Weights should be non-negative. + init_score : Dask Array or Dask Series of shape = [n_samples] or shape = [n_samples * n_classes] (for multi-class task), or Dask Array or Dask DataFrame of shape = [n_samples, n_classes] (for multi-class task), or None, optional (default=None) + Init score of training data. + group : Dask Array or Dask Series or None, optional (default=None) + Group/query data. + Only used in the learning-to-rank task. + sum(group) = n_samples. + For example, if you have a 100-document dataset with ``group = [10, 20, 40, 10, 10, 10]``, that means that you have 6 groups, + where the first 10 records are in the first group, records 11-30 are in the second group, records 31-70 are in the third group, etc. + eval_set : list of (X, y) tuples of Dask data collections, or None, optional (default=None) + List of (X, y) tuple pairs to use as validation sets. + Note, that not all workers may receive chunks of every eval set within ``eval_set``. When the returned + lightgbm estimator is not trained using any chunks of a particular eval set, its corresponding component + of ``evals_result_`` and ``best_score_`` will be empty dictionaries. + eval_names : list of str, or None, optional (default=None) + Names of eval_set. + eval_sample_weight : list of Dask Array or Dask Series, or None, optional (default=None) + Weights for each validation set in eval_set. Weights should be non-negative. + eval_class_weight : list of dict or str, or None, optional (default=None) + Class weights, one dict or str for each validation set in eval_set. + eval_init_score : list of Dask Array, Dask Series or Dask DataFrame (for multi-class task), or None, optional (default=None) + Initial model score for each validation set in eval_set. + eval_group : list of Dask Array or Dask Series, or None, optional (default=None) + Group/query for each validation set in eval_set. + eval_metric : str, callable, list or None, optional (default=None) + If str, it should be a built-in evaluation metric to use. + If callable, it should be a custom evaluation metric, see note below for more details. + If list, it can be a list of built-in metrics, a list of custom evaluation metrics, or a mix of both. + In either case, the ``metric`` from the Dask model parameters (or inferred from the objective) will be evaluated and used as well. + Default: 'l2' for DaskLGBMRegressor, 'binary(multi)_logloss' for DaskLGBMClassifier, 'ndcg' for DaskLGBMRanker. + eval_at : list or tuple of int, optional (default=None) + The evaluation positions of the specified ranking metric. + **kwargs + Other parameters passed to ``fit`` method of the local underlying model. + + Returns + ------- + model : lightgbm.LGBMClassifier, lightgbm.LGBMRegressor, or lightgbm.LGBMRanker class + Returns fitted underlying model. + + Note + ---- + + This method handles setting up the following network parameters based on information + about the Dask cluster referenced by ``client``. + + * ``local_listen_port``: port that each LightGBM worker opens a listening socket on, + to accept connections from other workers. This can differ from LightGBM worker + to LightGBM worker, but does not have to. + * ``machines``: a comma-delimited list of all workers in the cluster, in the + form ``ip:port,ip:port``. If running multiple Dask workers on the same host, use different + ports for each worker. For example, for ``LocalCluster(n_workers=3)``, you might + pass ``"127.0.0.1:12400,127.0.0.1:12401,127.0.0.1:12402"``. + * ``num_machines``: number of LightGBM workers. + * ``timeout``: time in minutes to wait before closing unused sockets. + + The default behavior of this function is to generate ``machines`` from the list of + Dask workers which hold some piece of the training data, and to search for an open + port on each worker to be used as ``local_listen_port``. + + If ``machines`` is provided explicitly in ``params``, this function uses the hosts + and ports in that list directly, and does not do any searching. This means that if + any of the Dask workers are missing from the list or any of those ports are not free + when training starts, training will fail. + + If ``local_listen_port`` is provided in ``params`` and ``machines`` is not, this function + constructs ``machines`` from the list of Dask workers which hold some piece of the + training data, assuming that each one will use the same ``local_listen_port``. + """ + params = deepcopy(params) + + # capture whether local_listen_port or its aliases were provided + listen_port_in_params = any(alias in params for alias in _ConfigAliases.get("local_listen_port")) + + # capture whether machines or its aliases were provided + machines_in_params = any(alias in params for alias in _ConfigAliases.get("machines")) + + params = _choose_param_value( + main_param_name="tree_learner", + params=params, + default_value="data", + ) + allowed_tree_learners = { + "data", + "data_parallel", + "feature", + "feature_parallel", + "voting", + "voting_parallel", + } + if params["tree_learner"] not in allowed_tree_learners: + _log_warning( + f'Parameter tree_learner set to {params["tree_learner"]}, which is not allowed. Using "data" as default' + ) + params["tree_learner"] = "data" + + # Some passed-in parameters can be removed: + # * 'num_machines': set automatically from Dask worker list + # * 'num_threads': overridden to match nthreads on each Dask process + for param_alias in _ConfigAliases.get("num_machines", "num_threads"): + if param_alias in params: + _log_warning(f"Parameter {param_alias} will be ignored.") + params.pop(param_alias) + + # Split arrays/dataframes into parts. Arrange parts into dicts to enforce co-locality + data_parts = _split_to_parts(data=data, is_matrix=True) + label_parts = _split_to_parts(data=label, is_matrix=False) + parts = [{"data": x, "label": y} for (x, y) in zip(data_parts, label_parts)] + n_parts = len(parts) + + if sample_weight is not None: + weight_parts = _split_to_parts(data=sample_weight, is_matrix=False) + for i in range(n_parts): + parts[i]["weight"] = weight_parts[i] + + if group is not None: + group_parts = _split_to_parts(data=group, is_matrix=False) + for i in range(n_parts): + parts[i]["group"] = group_parts[i] + + if init_score is not None: + init_score_parts = _split_to_parts(data=init_score, is_matrix=False) + for i in range(n_parts): + parts[i]["init_score"] = init_score_parts[i] + + # evals_set will to be re-constructed into smaller lists of (X, y) tuples, where + # X and y are each delayed sub-lists of original eval dask Collections. + if eval_set: + # find maximum number of parts in an individual eval set so that we can + # pad eval sets when they come in different sizes. + n_largest_eval_parts = max(x[0].npartitions for x in eval_set) + + eval_sets: Dict[ + int, List[Union[_DatasetNames, Tuple[List[Optional[_DaskMatrixLike]], List[Optional[_DaskVectorLike]]]]] + ] = defaultdict(list) + if eval_sample_weight: + eval_sample_weights: Dict[int, List[Union[_DatasetNames, List[Optional[_DaskVectorLike]]]]] = defaultdict( + list + ) + if eval_group: + eval_groups: Dict[int, List[Union[_DatasetNames, List[Optional[_DaskVectorLike]]]]] = defaultdict(list) + if eval_init_score: + eval_init_scores: Dict[int, List[Union[_DatasetNames, List[Optional[_DaskMatrixLike]]]]] = defaultdict(list) + + for i, (X_eval, y_eval) in enumerate(eval_set): + n_this_eval_parts = X_eval.npartitions + + # when individual eval set is equivalent to training data, skip recomputing parts. + if X_eval is data and y_eval is label: + for parts_idx in range(n_parts): + eval_sets[parts_idx].append(_DatasetNames.TRAINSET) + else: + eval_x_parts = _split_to_parts(data=X_eval, is_matrix=True) + eval_y_parts = _split_to_parts(data=y_eval, is_matrix=False) + for j in range(n_largest_eval_parts): + parts_idx = j % n_parts + + # add None-padding for individual eval_set member if it is smaller than the largest member. + if j < n_this_eval_parts: + x_e = eval_x_parts[j] + y_e = eval_y_parts[j] + else: + x_e = None + y_e = None + + if j < n_parts: + # first time a chunk of this eval set is added to this part. + eval_sets[parts_idx].append(([x_e], [y_e])) + else: + # append additional chunks of this eval set to this part. + eval_sets[parts_idx][-1][0].append(x_e) # type: ignore[index, union-attr] + eval_sets[parts_idx][-1][1].append(y_e) # type: ignore[index, union-attr] + + if eval_sample_weight: + if eval_sample_weight[i] is sample_weight: + for parts_idx in range(n_parts): + eval_sample_weights[parts_idx].append(_DatasetNames.SAMPLE_WEIGHT) + else: + eval_w_parts = _split_to_parts(data=eval_sample_weight[i], is_matrix=False) + + # ensure that all evaluation parts map uniquely to one part. + for j in range(n_largest_eval_parts): + if j < n_this_eval_parts: + w_e = eval_w_parts[j] + else: + w_e = None + + parts_idx = j % n_parts + if j < n_parts: + eval_sample_weights[parts_idx].append([w_e]) + else: + eval_sample_weights[parts_idx][-1].append(w_e) # type: ignore[union-attr] + + if eval_init_score: + if eval_init_score[i] is init_score: + for parts_idx in range(n_parts): + eval_init_scores[parts_idx].append(_DatasetNames.INIT_SCORE) + else: + eval_init_score_parts = _split_to_parts(data=eval_init_score[i], is_matrix=False) + for j in range(n_largest_eval_parts): + if j < n_this_eval_parts: + init_score_e = eval_init_score_parts[j] + else: + init_score_e = None + + parts_idx = j % n_parts + if j < n_parts: + eval_init_scores[parts_idx].append([init_score_e]) + else: + eval_init_scores[parts_idx][-1].append(init_score_e) # type: ignore[union-attr] + + if eval_group: + if eval_group[i] is group: + for parts_idx in range(n_parts): + eval_groups[parts_idx].append(_DatasetNames.GROUP) + else: + eval_g_parts = _split_to_parts(data=eval_group[i], is_matrix=False) + for j in range(n_largest_eval_parts): + if j < n_this_eval_parts: + g_e = eval_g_parts[j] + else: + g_e = None + + parts_idx = j % n_parts + if j < n_parts: + eval_groups[parts_idx].append([g_e]) + else: + eval_groups[parts_idx][-1].append(g_e) # type: ignore[union-attr] + + # assign sub-eval_set components to worker parts. + for parts_idx, e_set in eval_sets.items(): + parts[parts_idx]["eval_set"] = e_set + if eval_sample_weight: + parts[parts_idx]["eval_sample_weight"] = eval_sample_weights[parts_idx] + if eval_init_score: + parts[parts_idx]["eval_init_score"] = eval_init_scores[parts_idx] + if eval_group: + parts[parts_idx]["eval_group"] = eval_groups[parts_idx] + + # Start computation in the background + parts = list(map(delayed, parts)) + parts = client.compute(parts) + wait(parts) + + for part in parts: + if part.status == "error": # type: ignore + # trigger error locally + return part # type: ignore[return-value] + + # Find locations of all parts and map them to particular Dask workers + key_to_part_dict = {part.key: part for part in parts} # type: ignore + who_has = client.who_has(parts) + worker_map = defaultdict(list) + for key, workers in who_has.items(): + worker_map[next(iter(workers))].append(key_to_part_dict[key]) + + # Check that all workers were provided some of eval_set. Otherwise warn user that validation + # data artifacts may not be populated depending on worker returning final estimator. + if eval_set: + for worker in worker_map: + has_eval_set = False + for part in worker_map[worker]: + if "eval_set" in part.result(): # type: ignore[attr-defined] + has_eval_set = True + break + + if not has_eval_set: + _log_warning( + f"Worker {worker} was not allocated eval_set data. Therefore evals_result_ and best_score_ data may be unreliable. " + "Try rebalancing data across workers." + ) + + # assign general validation set settings to fit kwargs. + if eval_names: + kwargs["eval_names"] = eval_names + if eval_class_weight: + kwargs["eval_class_weight"] = eval_class_weight + if eval_metric: + kwargs["eval_metric"] = eval_metric + if eval_at: + kwargs["eval_at"] = eval_at + + master_worker = next(iter(worker_map)) + worker_ncores = client.ncores() + + # resolve aliases for network parameters and pop the result off params. + # these values are added back in calls to `_train_part()` + params = _choose_param_value( + main_param_name="local_listen_port", + params=params, + default_value=12400, + ) + local_listen_port = params.pop("local_listen_port") + + params = _choose_param_value( + main_param_name="machines", + params=params, + default_value=None, + ) + machines = params.pop("machines") + + # figure out network params + worker_to_socket_future: Dict[str, Future] = {} + worker_addresses = worker_map.keys() + if machines is not None: + _log_info("Using passed-in 'machines' parameter") + worker_address_to_port = _machines_to_worker_map( + machines=machines, + worker_addresses=worker_addresses, + ) + else: + if listen_port_in_params: + _log_info("Using passed-in 'local_listen_port' for all workers") + unique_hosts = {urlparse(a).hostname for a in worker_addresses} + if len(unique_hosts) < len(worker_addresses): + msg = ( + "'local_listen_port' was provided in Dask training parameters, but at least one " + "machine in the cluster has multiple Dask worker processes running on it. Please omit " + "'local_listen_port' or pass 'machines'." + ) + raise LightGBMError(msg) + + worker_address_to_port = {address: local_listen_port for address in worker_addresses} + else: + _log_info("Finding random open ports for workers") + worker_to_socket_future, worker_address_to_port = _assign_open_ports_to_workers( + client, list(worker_map.keys()) + ) + + machines = ",".join( + [f"{urlparse(worker_address).hostname}:{port}" for worker_address, port in worker_address_to_port.items()] + ) + + num_machines = len(worker_address_to_port) + + # Tell each worker to train on the parts that it has locally + # + # This code treats ``_train_part()`` calls as not "pure" because: + # 1. there is randomness in the training process unless parameters ``seed`` + # and ``deterministic`` are set + # 2. even with those parameters set, the output of one ``_train_part()`` call + # relies on global state (it and all the other LightGBM training processes + # coordinate with each other) + futures_classifiers = [ + client.submit( + _train_part, + model_factory=model_factory, + params={**params, "num_threads": worker_ncores[worker]}, + list_of_parts=list_of_parts, + machines=machines, + local_listen_port=worker_address_to_port[worker], + num_machines=num_machines, + time_out=params.get("time_out", 120), + remote_socket=worker_to_socket_future.get(worker, None), + return_model=(worker == master_worker), + workers=[worker], + allow_other_workers=False, + pure=False, + **kwargs, + ) + for worker, list_of_parts in worker_map.items() + ] + + results = client.gather(futures_classifiers) + results = [v for v in results if v] + model = results[0] + + # if network parameters were changed during training, remove them from the + # returned model so that they're generated dynamically on every run based + # on the Dask cluster you're connected to and which workers have pieces of + # the training data + if not listen_port_in_params: + for param in _ConfigAliases.get("local_listen_port"): + model._other_params.pop(param, None) + + if not machines_in_params: + for param in _ConfigAliases.get("machines"): + model._other_params.pop(param, None) + + for param in _ConfigAliases.get("num_machines", "timeout"): + model._other_params.pop(param, None) + + return model + + +def _predict_part( + part: _DaskPart, + model: LGBMModel, + raw_score: bool, + pred_proba: bool, + pred_leaf: bool, + pred_contrib: bool, + **kwargs: Any, +) -> _DaskPart: + result: _DaskPart + if part.shape[0] == 0: + result = np.array([]) + elif pred_proba: + result = model.predict_proba( + part, + raw_score=raw_score, + pred_leaf=pred_leaf, + pred_contrib=pred_contrib, + **kwargs, + ) + else: + result = model.predict( + part, + raw_score=raw_score, + pred_leaf=pred_leaf, + pred_contrib=pred_contrib, + **kwargs, + ) + + # dask.DataFrame.map_partitions() expects each call to return a pandas DataFrame or Series + if isinstance(part, pd_DataFrame): + if len(result.shape) == 2: + result = pd_DataFrame(result, index=part.index) + else: + result = pd_Series(result, index=part.index, name="predictions") + + return result + + +def _predict( + model: LGBMModel, + data: _DaskMatrixLike, + client: Client, + raw_score: bool = False, + pred_proba: bool = False, + pred_leaf: bool = False, + pred_contrib: bool = False, + dtype: _PredictionDtype = np.float32, + **kwargs: Any, +) -> Union[dask_Array, List[dask_Array]]: + """Inner predict routine. + + Parameters + ---------- + model : lightgbm.LGBMClassifier, lightgbm.LGBMRegressor, or lightgbm.LGBMRanker class + Fitted underlying model. + data : Dask Array or Dask DataFrame of shape = [n_samples, n_features] + Input feature matrix. + raw_score : bool, optional (default=False) + Whether to predict raw scores. + pred_proba : bool, optional (default=False) + Should method return results of ``predict_proba`` (``pred_proba=True``) or ``predict`` (``pred_proba=False``). + pred_leaf : bool, optional (default=False) + Whether to predict leaf index. + pred_contrib : bool, optional (default=False) + Whether to predict feature contributions. + dtype : np.dtype, optional (default=np.float32) + Dtype of the output. + **kwargs + Other parameters passed to ``predict`` or ``predict_proba`` method. + + Returns + ------- + predicted_result : Dask Array of shape = [n_samples] or shape = [n_samples, n_classes] + The predicted values. + X_leaves : Dask Array of shape = [n_samples, n_trees] or shape = [n_samples, n_trees * n_classes] + If ``pred_leaf=True``, the predicted leaf of every tree for each sample. + X_SHAP_values : Dask Array of shape = [n_samples, n_features + 1] or shape = [n_samples, (n_features + 1) * n_classes] or (if multi-class and using sparse inputs) a list of ``n_classes`` Dask Arrays of shape = [n_samples, n_features + 1] + If ``pred_contrib=True``, the feature contributions for each sample. + """ + if not all((DASK_INSTALLED, PANDAS_INSTALLED, SKLEARN_INSTALLED)): + raise LightGBMError("dask, pandas and scikit-learn are required for lightgbm.dask") + if isinstance(data, dask_DataFrame): + return data.map_partitions( + _predict_part, + model=model, + raw_score=raw_score, + pred_proba=pred_proba, + pred_leaf=pred_leaf, + pred_contrib=pred_contrib, + **kwargs, + ).values + elif isinstance(data, dask_Array): + # for multi-class classification with sparse matrices, pred_contrib predictions + # are returned as a list of sparse matrices (one per class) + num_classes = model._n_classes + + if num_classes > 2 and pred_contrib and isinstance(data._meta, ss.spmatrix): + predict_function = partial( + _predict_part, + model=model, + raw_score=False, + pred_proba=pred_proba, + pred_leaf=False, + pred_contrib=True, + **kwargs, + ) + + delayed_chunks = data.to_delayed() + bag = dask_bag_from_delayed(delayed_chunks[:, 0]) + + @delayed + def _extract(items: List[Any], i: int) -> Any: + return items[i] + + preds = bag.map_partitions(predict_function) + + # pred_contrib output will have one column per feature, + # plus one more for the base value + num_cols = model.n_features_ + 1 + + nrows_per_chunk = data.chunks[0] + out: List[List[dask_Array]] = [[] for _ in range(num_classes)] + + # need to tell Dask the expected type and shape of individual preds + pred_meta = data._meta + + for j, partition in enumerate(preds.to_delayed()): + for i in range(num_classes): + part = dask_array_from_delayed( + value=_extract(partition, i), + shape=(nrows_per_chunk[j], num_cols), + meta=pred_meta, + ) + out[i].append(part) + + # by default, dask.array.concatenate() concatenates sparse arrays into a COO matrix + # the code below is used instead to ensure that the sparse type is preserved during concatenation + if isinstance(pred_meta, ss.csr_matrix): + concat_fn = partial(ss.vstack, format="csr") + elif isinstance(pred_meta, ss.csc_matrix): + concat_fn = partial(ss.vstack, format="csc") + else: + concat_fn = ss.vstack + + # At this point, `out` is a list of lists of delayeds (each of which points to a matrix). + # Concatenate them to return a list of Dask Arrays. + out_arrays: List[dask_Array] = [] + for i in range(num_classes): + out_arrays.append( + dask_array_from_delayed( + value=delayed(concat_fn)(out[i]), + shape=(data.shape[0], num_cols), + meta=pred_meta, + ) + ) + + return out_arrays + + data_row = client.compute(data[[0]]).result() + predict_fn = partial( + _predict_part, + model=model, + raw_score=raw_score, + pred_proba=pred_proba, + pred_leaf=pred_leaf, + pred_contrib=pred_contrib, + **kwargs, + ) + pred_row = predict_fn(data_row) + chunks: Tuple[int, ...] = (data.chunks[0],) + map_blocks_kwargs = {} + if len(pred_row.shape) > 1: + chunks += (pred_row.shape[1],) + else: + map_blocks_kwargs["drop_axis"] = 1 + return data.map_blocks( + predict_fn, + chunks=chunks, + meta=pred_row, + dtype=dtype, + **map_blocks_kwargs, + ) + else: + raise TypeError(f"Data must be either Dask Array or Dask DataFrame. Got {type(data).__name__}.") + + +class _DaskLGBMModel: + @property + def client_(self) -> Client: + """:obj:`dask.distributed.Client`: Dask client. + + This property can be passed in the constructor or updated + with ``model.set_params(client=client)``. + """ + if not getattr(self, "fitted_", False): + raise LGBMNotFittedError("Cannot access property client_ before calling fit().") + + return _get_dask_client(client=self.client) + + def _lgb_dask_getstate(self) -> Dict[Any, Any]: + """Remove un-picklable attributes before serialization.""" + client = self.__dict__.pop("client", None) + self._other_params.pop("client", None) # type: ignore[attr-defined] + out = deepcopy(self.__dict__) + out.update({"client": None}) + self.client = client + return out + + def _lgb_dask_fit( + self, + model_factory: Type[LGBMModel], + X: _DaskMatrixLike, + y: _DaskCollection, + sample_weight: Optional[_DaskVectorLike] = None, + init_score: Optional[_DaskCollection] = None, + group: Optional[_DaskVectorLike] = None, + eval_set: Optional[List[Tuple[_DaskMatrixLike, _DaskCollection]]] = None, + eval_names: Optional[List[str]] = None, + eval_sample_weight: Optional[List[_DaskVectorLike]] = None, + eval_class_weight: Optional[List[Union[dict, str]]] = None, + eval_init_score: Optional[List[_DaskCollection]] = None, + eval_group: Optional[List[_DaskVectorLike]] = None, + eval_metric: Optional[_LGBM_ScikitEvalMetricType] = None, + eval_at: Optional[Union[List[int], Tuple[int, ...]]] = None, + **kwargs: Any, + ) -> "_DaskLGBMModel": + if not DASK_INSTALLED: + raise LightGBMError("dask is required for lightgbm.dask") + if not all((DASK_INSTALLED, PANDAS_INSTALLED, SKLEARN_INSTALLED)): + raise LightGBMError("dask, pandas and scikit-learn are required for lightgbm.dask") + + params = self.get_params(True) # type: ignore[attr-defined] + params.pop("client", None) + + model = _train( + client=_get_dask_client(self.client), + data=X, + label=y, + params=params, + model_factory=model_factory, + sample_weight=sample_weight, + init_score=init_score, + group=group, + eval_set=eval_set, + eval_names=eval_names, + eval_sample_weight=eval_sample_weight, + eval_class_weight=eval_class_weight, + eval_init_score=eval_init_score, + eval_group=eval_group, + eval_metric=eval_metric, + eval_at=eval_at, + **kwargs, + ) + + self.set_params(**model.get_params()) # type: ignore[attr-defined] + self._lgb_dask_copy_extra_params(model, self) # type: ignore[attr-defined] + + return self + + def _lgb_dask_to_local(self, model_factory: Type[LGBMModel]) -> LGBMModel: + params = self.get_params() # type: ignore[attr-defined] + params.pop("client", None) + model = model_factory(**params) + self._lgb_dask_copy_extra_params(self, model) + model._other_params.pop("client", None) + return model + + @staticmethod + def _lgb_dask_copy_extra_params( + source: Union["_DaskLGBMModel", LGBMModel], + dest: Union["_DaskLGBMModel", LGBMModel], + ) -> None: + params = source.get_params() # type: ignore[union-attr] + attributes = source.__dict__ + extra_param_names = set(attributes.keys()).difference(params.keys()) + for name in extra_param_names: + setattr(dest, name, attributes[name]) + + +class DaskLGBMClassifier(LGBMClassifier, _DaskLGBMModel): + """Distributed version of lightgbm.LGBMClassifier.""" + + def __init__( + self, + *, + boosting_type: str = "gbdt", + num_leaves: int = 31, + max_depth: int = -1, + learning_rate: float = 0.1, + n_estimators: int = 100, + subsample_for_bin: int = 200000, + objective: Optional[Union[str, _LGBM_ScikitCustomObjectiveFunction]] = None, + class_weight: Optional[Union[dict, str]] = None, + min_split_gain: float = 0.0, + min_child_weight: float = 1e-3, + min_child_samples: int = 20, + subsample: float = 1.0, + subsample_freq: int = 0, + colsample_bytree: float = 1.0, + reg_alpha: float = 0.0, + reg_lambda: float = 0.0, + random_state: Optional[Union[int, np.random.RandomState, "np.random.Generator"]] = None, + n_jobs: Optional[int] = None, + importance_type: str = "split", + client: Optional[Client] = None, + **kwargs: Any, + ): + """Docstring is inherited from the lightgbm.LGBMClassifier.__init__.""" + self.client = client + super().__init__( + boosting_type=boosting_type, + num_leaves=num_leaves, + max_depth=max_depth, + learning_rate=learning_rate, + n_estimators=n_estimators, + subsample_for_bin=subsample_for_bin, + objective=objective, + class_weight=class_weight, + min_split_gain=min_split_gain, + min_child_weight=min_child_weight, + min_child_samples=min_child_samples, + subsample=subsample, + subsample_freq=subsample_freq, + colsample_bytree=colsample_bytree, + reg_alpha=reg_alpha, + reg_lambda=reg_lambda, + random_state=random_state, + n_jobs=n_jobs, + importance_type=importance_type, + **kwargs, + ) + + _base_doc = LGBMClassifier.__init__.__doc__ + _before_kwargs, _kwargs, _after_kwargs = _base_doc.partition("**kwargs") # type: ignore + __init__.__doc__ = f""" + {_before_kwargs}client : dask.distributed.Client or None, optional (default=None) + {" ":4}Dask client. If ``None``, ``distributed.default_client()`` will be used at runtime. The Dask client used by this class will not be saved if the model object is pickled. + {_kwargs}{_after_kwargs} + """ + + def __getstate__(self) -> Dict[Any, Any]: + return self._lgb_dask_getstate() + + def fit( # type: ignore[override] + self, + X: _DaskMatrixLike, + y: _DaskCollection, + sample_weight: Optional[_DaskVectorLike] = None, + init_score: Optional[_DaskCollection] = None, + eval_set: Optional[List[Tuple[_DaskMatrixLike, _DaskCollection]]] = None, + eval_names: Optional[List[str]] = None, + eval_sample_weight: Optional[List[_DaskVectorLike]] = None, + eval_class_weight: Optional[List[Union[dict, str]]] = None, + eval_init_score: Optional[List[_DaskCollection]] = None, + eval_metric: Optional[_LGBM_ScikitEvalMetricType] = None, + **kwargs: Any, + ) -> "DaskLGBMClassifier": + """Docstring is inherited from the lightgbm.LGBMClassifier.fit.""" + self._lgb_dask_fit( + model_factory=LGBMClassifier, + X=X, + y=y, + sample_weight=sample_weight, + init_score=init_score, + eval_set=eval_set, + eval_names=eval_names, + eval_sample_weight=eval_sample_weight, + eval_class_weight=eval_class_weight, + eval_init_score=eval_init_score, + eval_metric=eval_metric, + **kwargs, + ) + return self + + _base_doc = _lgbmmodel_doc_fit.format( + X_shape="Dask Array or Dask DataFrame of shape = [n_samples, n_features]", + y_shape="Dask Array, Dask DataFrame or Dask Series of shape = [n_samples]", + sample_weight_shape="Dask Array or Dask Series of shape = [n_samples] or None, optional (default=None)", + init_score_shape="Dask Array or Dask Series of shape = [n_samples] or shape = [n_samples * n_classes] (for multi-class task), or Dask Array or Dask DataFrame of shape = [n_samples, n_classes] (for multi-class task), or None, optional (default=None)", + group_shape="Dask Array or Dask Series or None, optional (default=None)", + eval_sample_weight_shape="list of Dask Array or Dask Series, or None, optional (default=None)", + eval_init_score_shape="list of Dask Array, Dask Series or Dask DataFrame (for multi-class task), or None, optional (default=None)", + eval_group_shape="list of Dask Array or Dask Series, or None, optional (default=None)", + ) + + # DaskLGBMClassifier does not support group, eval_group. + _base_doc = _base_doc[: _base_doc.find("group :")] + _base_doc[_base_doc.find("eval_set :") :] + + _base_doc = _base_doc[: _base_doc.find("eval_group :")] + _base_doc[_base_doc.find("eval_metric :") :] + + # DaskLGBMClassifier support for callbacks and init_model is not tested + fit.__doc__ = f"""{_base_doc[: _base_doc.find("callbacks :")]}**kwargs + Other parameters passed through to ``LGBMClassifier.fit()``. + + Returns + ------- + self : lightgbm.DaskLGBMClassifier + Returns self. + + {_lgbmmodel_doc_custom_eval_note} + """ + + def predict( + self, + X: _DaskMatrixLike, # type: ignore[override] + raw_score: bool = False, + start_iteration: int = 0, + num_iteration: Optional[int] = None, + pred_leaf: bool = False, + pred_contrib: bool = False, + validate_features: bool = False, + **kwargs: Any, + ) -> dask_Array: + """Docstring is inherited from the lightgbm.LGBMClassifier.predict.""" + return _predict( + model=self.to_local(), + data=X, + dtype=self.classes_.dtype, + client=_get_dask_client(self.client), + raw_score=raw_score, + start_iteration=start_iteration, + num_iteration=num_iteration, + pred_leaf=pred_leaf, + pred_contrib=pred_contrib, + validate_features=validate_features, + **kwargs, + ) + + predict.__doc__ = _lgbmmodel_doc_predict.format( + description="Return the predicted value for each sample.", + X_shape="Dask Array or Dask DataFrame of shape = [n_samples, n_features]", + output_name="predicted_result", + predicted_result_shape="Dask Array of shape = [n_samples] or shape = [n_samples, n_classes]", + X_leaves_shape="Dask Array of shape = [n_samples, n_trees] or shape = [n_samples, n_trees * n_classes]", + X_SHAP_values_shape="Dask Array of shape = [n_samples, n_features + 1] or shape = [n_samples, (n_features + 1) * n_classes] or (if multi-class and using sparse inputs) a list of ``n_classes`` Dask Arrays of shape = [n_samples, n_features + 1]", + ) + + def predict_proba( + self, + X: _DaskMatrixLike, # type: ignore[override] + raw_score: bool = False, + start_iteration: int = 0, + num_iteration: Optional[int] = None, + pred_leaf: bool = False, + pred_contrib: bool = False, + validate_features: bool = False, + **kwargs: Any, + ) -> dask_Array: + """Docstring is inherited from the lightgbm.LGBMClassifier.predict_proba.""" + return _predict( + model=self.to_local(), + data=X, + pred_proba=True, + client=_get_dask_client(self.client), + raw_score=raw_score, + start_iteration=start_iteration, + num_iteration=num_iteration, + pred_leaf=pred_leaf, + pred_contrib=pred_contrib, + validate_features=validate_features, + **kwargs, + ) + + predict_proba.__doc__ = _lgbmmodel_doc_predict.format( + description="Return the predicted probability for each class for each sample.", + X_shape="Dask Array or Dask DataFrame of shape = [n_samples, n_features]", + output_name="predicted_probability", + predicted_result_shape="Dask Array of shape = [n_samples] or shape = [n_samples, n_classes]", + X_leaves_shape="Dask Array of shape = [n_samples, n_trees] or shape = [n_samples, n_trees * n_classes]", + X_SHAP_values_shape="Dask Array of shape = [n_samples, n_features + 1] or shape = [n_samples, (n_features + 1) * n_classes] or (if multi-class and using sparse inputs) a list of ``n_classes`` Dask Arrays of shape = [n_samples, n_features + 1]", + ) + + def to_local(self) -> LGBMClassifier: + """Create regular version of lightgbm.LGBMClassifier from the distributed version. + + Returns + ------- + model : lightgbm.LGBMClassifier + Local underlying model. + """ + return self._lgb_dask_to_local(LGBMClassifier) + + +class DaskLGBMRegressor(LGBMRegressor, _DaskLGBMModel): + """Distributed version of lightgbm.LGBMRegressor.""" + + def __init__( + self, + *, + boosting_type: str = "gbdt", + num_leaves: int = 31, + max_depth: int = -1, + learning_rate: float = 0.1, + n_estimators: int = 100, + subsample_for_bin: int = 200000, + objective: Optional[Union[str, _LGBM_ScikitCustomObjectiveFunction]] = None, + class_weight: Optional[Union[dict, str]] = None, + min_split_gain: float = 0.0, + min_child_weight: float = 1e-3, + min_child_samples: int = 20, + subsample: float = 1.0, + subsample_freq: int = 0, + colsample_bytree: float = 1.0, + reg_alpha: float = 0.0, + reg_lambda: float = 0.0, + random_state: Optional[Union[int, np.random.RandomState, "np.random.Generator"]] = None, + n_jobs: Optional[int] = None, + importance_type: str = "split", + client: Optional[Client] = None, + **kwargs: Any, + ): + """Docstring is inherited from the lightgbm.LGBMRegressor.__init__.""" + self.client = client + super().__init__( + boosting_type=boosting_type, + num_leaves=num_leaves, + max_depth=max_depth, + learning_rate=learning_rate, + n_estimators=n_estimators, + subsample_for_bin=subsample_for_bin, + objective=objective, + class_weight=class_weight, + min_split_gain=min_split_gain, + min_child_weight=min_child_weight, + min_child_samples=min_child_samples, + subsample=subsample, + subsample_freq=subsample_freq, + colsample_bytree=colsample_bytree, + reg_alpha=reg_alpha, + reg_lambda=reg_lambda, + random_state=random_state, + n_jobs=n_jobs, + importance_type=importance_type, + **kwargs, + ) + + _base_doc = LGBMRegressor.__init__.__doc__ + _before_kwargs, _kwargs, _after_kwargs = _base_doc.partition("**kwargs") # type: ignore + __init__.__doc__ = f""" + {_before_kwargs}client : dask.distributed.Client or None, optional (default=None) + {" ":4}Dask client. If ``None``, ``distributed.default_client()`` will be used at runtime. The Dask client used by this class will not be saved if the model object is pickled. + {_kwargs}{_after_kwargs} + """ + + def __getstate__(self) -> Dict[Any, Any]: + return self._lgb_dask_getstate() + + def fit( # type: ignore[override] + self, + X: _DaskMatrixLike, + y: _DaskCollection, + sample_weight: Optional[_DaskVectorLike] = None, + init_score: Optional[_DaskVectorLike] = None, + eval_set: Optional[List[Tuple[_DaskMatrixLike, _DaskCollection]]] = None, + eval_names: Optional[List[str]] = None, + eval_sample_weight: Optional[List[_DaskVectorLike]] = None, + eval_init_score: Optional[List[_DaskVectorLike]] = None, + eval_metric: Optional[_LGBM_ScikitEvalMetricType] = None, + **kwargs: Any, + ) -> "DaskLGBMRegressor": + """Docstring is inherited from the lightgbm.LGBMRegressor.fit.""" + self._lgb_dask_fit( + model_factory=LGBMRegressor, + X=X, + y=y, + sample_weight=sample_weight, + init_score=init_score, + eval_set=eval_set, + eval_names=eval_names, + eval_sample_weight=eval_sample_weight, + eval_init_score=eval_init_score, + eval_metric=eval_metric, + **kwargs, + ) + return self + + _base_doc = _lgbmmodel_doc_fit.format( + X_shape="Dask Array or Dask DataFrame of shape = [n_samples, n_features]", + y_shape="Dask Array, Dask DataFrame or Dask Series of shape = [n_samples]", + sample_weight_shape="Dask Array or Dask Series of shape = [n_samples] or None, optional (default=None)", + init_score_shape="Dask Array or Dask Series of shape = [n_samples] or None, optional (default=None)", + group_shape="Dask Array or Dask Series or None, optional (default=None)", + eval_sample_weight_shape="list of Dask Array or Dask Series, or None, optional (default=None)", + eval_init_score_shape="list of Dask Array or Dask Series, or None, optional (default=None)", + eval_group_shape="list of Dask Array or Dask Series, or None, optional (default=None)", + ) + + # DaskLGBMRegressor does not support group, eval_class_weight, eval_group. + _base_doc = _base_doc[: _base_doc.find("group :")] + _base_doc[_base_doc.find("eval_set :") :] + + _base_doc = _base_doc[: _base_doc.find("eval_class_weight :")] + _base_doc[_base_doc.find("eval_init_score :") :] + + _base_doc = _base_doc[: _base_doc.find("eval_group :")] + _base_doc[_base_doc.find("eval_metric :") :] + + # DaskLGBMRegressor support for callbacks and init_model is not tested + fit.__doc__ = f"""{_base_doc[: _base_doc.find("callbacks :")]}**kwargs + Other parameters passed through to ``LGBMRegressor.fit()``. + + Returns + ------- + self : lightgbm.DaskLGBMRegressor + Returns self. + + {_lgbmmodel_doc_custom_eval_note} + """ + + def predict( + self, + X: _DaskMatrixLike, # type: ignore[override] + raw_score: bool = False, + start_iteration: int = 0, + num_iteration: Optional[int] = None, + pred_leaf: bool = False, + pred_contrib: bool = False, + validate_features: bool = False, + **kwargs: Any, + ) -> dask_Array: + """Docstring is inherited from the lightgbm.LGBMRegressor.predict.""" + return _predict( + model=self.to_local(), + data=X, + client=_get_dask_client(self.client), + raw_score=raw_score, + start_iteration=start_iteration, + num_iteration=num_iteration, + pred_leaf=pred_leaf, + pred_contrib=pred_contrib, + validate_features=validate_features, + **kwargs, + ) + + predict.__doc__ = _lgbmmodel_doc_predict.format( + description="Return the predicted value for each sample.", + X_shape="Dask Array or Dask DataFrame of shape = [n_samples, n_features]", + output_name="predicted_result", + predicted_result_shape="Dask Array of shape = [n_samples]", + X_leaves_shape="Dask Array of shape = [n_samples, n_trees]", + X_SHAP_values_shape="Dask Array of shape = [n_samples, n_features + 1]", + ) + + def to_local(self) -> LGBMRegressor: + """Create regular version of lightgbm.LGBMRegressor from the distributed version. + + Returns + ------- + model : lightgbm.LGBMRegressor + Local underlying model. + """ + return self._lgb_dask_to_local(LGBMRegressor) + + +class DaskLGBMRanker(LGBMRanker, _DaskLGBMModel): + """Distributed version of lightgbm.LGBMRanker.""" + + def __init__( + self, + *, + boosting_type: str = "gbdt", + num_leaves: int = 31, + max_depth: int = -1, + learning_rate: float = 0.1, + n_estimators: int = 100, + subsample_for_bin: int = 200000, + objective: Optional[Union[str, _LGBM_ScikitCustomObjectiveFunction]] = None, + class_weight: Optional[Union[dict, str]] = None, + min_split_gain: float = 0.0, + min_child_weight: float = 1e-3, + min_child_samples: int = 20, + subsample: float = 1.0, + subsample_freq: int = 0, + colsample_bytree: float = 1.0, + reg_alpha: float = 0.0, + reg_lambda: float = 0.0, + random_state: Optional[Union[int, np.random.RandomState, "np.random.Generator"]] = None, + n_jobs: Optional[int] = None, + importance_type: str = "split", + client: Optional[Client] = None, + **kwargs: Any, + ): + """Docstring is inherited from the lightgbm.LGBMRanker.__init__.""" + self.client = client + super().__init__( + boosting_type=boosting_type, + num_leaves=num_leaves, + max_depth=max_depth, + learning_rate=learning_rate, + n_estimators=n_estimators, + subsample_for_bin=subsample_for_bin, + objective=objective, + class_weight=class_weight, + min_split_gain=min_split_gain, + min_child_weight=min_child_weight, + min_child_samples=min_child_samples, + subsample=subsample, + subsample_freq=subsample_freq, + colsample_bytree=colsample_bytree, + reg_alpha=reg_alpha, + reg_lambda=reg_lambda, + random_state=random_state, + n_jobs=n_jobs, + importance_type=importance_type, + **kwargs, + ) + + _base_doc = LGBMRanker.__init__.__doc__ + _before_kwargs, _kwargs, _after_kwargs = _base_doc.partition("**kwargs") # type: ignore + __init__.__doc__ = f""" + {_before_kwargs}client : dask.distributed.Client or None, optional (default=None) + {" ":4}Dask client. If ``None``, ``distributed.default_client()`` will be used at runtime. The Dask client used by this class will not be saved if the model object is pickled. + {_kwargs}{_after_kwargs} + """ + + def __getstate__(self) -> Dict[Any, Any]: + return self._lgb_dask_getstate() + + def fit( # type: ignore[override] + self, + X: _DaskMatrixLike, + y: _DaskCollection, + sample_weight: Optional[_DaskVectorLike] = None, + init_score: Optional[_DaskVectorLike] = None, + group: Optional[_DaskVectorLike] = None, + eval_set: Optional[List[Tuple[_DaskMatrixLike, _DaskCollection]]] = None, + eval_names: Optional[List[str]] = None, + eval_sample_weight: Optional[List[_DaskVectorLike]] = None, + eval_init_score: Optional[List[_DaskVectorLike]] = None, + eval_group: Optional[List[_DaskVectorLike]] = None, + eval_metric: Optional[_LGBM_ScikitEvalMetricType] = None, + eval_at: Union[List[int], Tuple[int, ...]] = (1, 2, 3, 4, 5), + **kwargs: Any, + ) -> "DaskLGBMRanker": + """Docstring is inherited from the lightgbm.LGBMRanker.fit.""" + self._lgb_dask_fit( + model_factory=LGBMRanker, + X=X, + y=y, + sample_weight=sample_weight, + init_score=init_score, + group=group, + eval_set=eval_set, + eval_names=eval_names, + eval_sample_weight=eval_sample_weight, + eval_init_score=eval_init_score, + eval_group=eval_group, + eval_metric=eval_metric, + eval_at=eval_at, + **kwargs, + ) + return self + + _base_doc = _lgbmmodel_doc_fit.format( + X_shape="Dask Array or Dask DataFrame of shape = [n_samples, n_features]", + y_shape="Dask Array, Dask DataFrame or Dask Series of shape = [n_samples]", + sample_weight_shape="Dask Array or Dask Series of shape = [n_samples] or None, optional (default=None)", + init_score_shape="Dask Array or Dask Series of shape = [n_samples] or None, optional (default=None)", + group_shape="Dask Array or Dask Series or None, optional (default=None)", + eval_sample_weight_shape="list of Dask Array or Dask Series, or None, optional (default=None)", + eval_init_score_shape="list of Dask Array or Dask Series, or None, optional (default=None)", + eval_group_shape="list of Dask Array or Dask Series, or None, optional (default=None)", + ) + + # DaskLGBMRanker does not support eval_class_weight or early stopping + _base_doc = _base_doc[: _base_doc.find("eval_class_weight :")] + _base_doc[_base_doc.find("eval_init_score :") :] + + _base_doc = ( + _base_doc[: _base_doc.find("feature_name :")] + + "eval_at : list or tuple of int, optional (default=(1, 2, 3, 4, 5))\n" + + f"{' ':8}The evaluation positions of the specified metric.\n" + + f"{' ':4}{_base_doc[_base_doc.find('feature_name :') :]}" + ) + + # DaskLGBMRanker support for callbacks and init_model is not tested + fit.__doc__ = f"""{_base_doc[: _base_doc.find("callbacks :")]}**kwargs + Other parameters passed through to ``LGBMRanker.fit()``. + + Returns + ------- + self : lightgbm.DaskLGBMRanker + Returns self. + + {_lgbmmodel_doc_custom_eval_note} + """ + + def predict( + self, + X: _DaskMatrixLike, # type: ignore[override] + raw_score: bool = False, + start_iteration: int = 0, + num_iteration: Optional[int] = None, + pred_leaf: bool = False, + pred_contrib: bool = False, + validate_features: bool = False, + **kwargs: Any, + ) -> dask_Array: + """Docstring is inherited from the lightgbm.LGBMRanker.predict.""" + return _predict( + model=self.to_local(), + data=X, + client=_get_dask_client(self.client), + raw_score=raw_score, + start_iteration=start_iteration, + num_iteration=num_iteration, + pred_leaf=pred_leaf, + pred_contrib=pred_contrib, + validate_features=validate_features, + **kwargs, + ) + + predict.__doc__ = _lgbmmodel_doc_predict.format( + description="Return the predicted value for each sample.", + X_shape="Dask Array or Dask DataFrame of shape = [n_samples, n_features]", + output_name="predicted_result", + predicted_result_shape="Dask Array of shape = [n_samples]", + X_leaves_shape="Dask Array of shape = [n_samples, n_trees]", + X_SHAP_values_shape="Dask Array of shape = [n_samples, n_features + 1]", + ) + + def to_local(self) -> LGBMRanker: + """Create regular version of lightgbm.LGBMRanker from the distributed version. + + Returns + ------- + model : lightgbm.LGBMRanker + Local underlying model. + """ + return self._lgb_dask_to_local(LGBMRanker) diff --git a/shared/package-files/69/69bdd20fa069311f1364429b6a436c5a155300ddfba79e69a247e5deb5b1a59f/tril_indices.h b/shared/package-files/69/69bdd20fa069311f1364429b6a436c5a155300ddfba79e69a247e5deb5b1a59f/tril_indices.h new file mode 100644 index 0000000000000000000000000000000000000000..9ba35c340dce98f2d8042d5668423859b3026933 --- /dev/null +++ b/shared/package-files/69/69bdd20fa069311f1364429b6a436c5a155300ddfba79e69a247e5deb5b1a59f/tril_indices.h @@ -0,0 +1,43 @@ +#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::tril_indices(int row, int col, int offset=0, *, ScalarType? dtype=long, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor +inline at::Tensor tril_indices(int64_t row, int64_t col, int64_t offset=0, at::TensorOptions options=at::kLong) { + return at::_ops::tril_indices::call(row, col, offset, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt()); +} +// aten::tril_indices(int row, int col, int offset=0, *, ScalarType? dtype=long, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor +inline at::Tensor tril_indices(int64_t row, int64_t col, int64_t offset, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory) { + return at::_ops::tril_indices::call(row, col, offset, dtype, layout, device, pin_memory); +} + +// aten::tril_indices.out(int row, int col, int offset=0, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & tril_indices_out(at::Tensor & out, int64_t row, int64_t col, int64_t offset=0) { + return at::_ops::tril_indices_out::call(row, col, offset, out); +} +// aten::tril_indices.out(int row, int col, int offset=0, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & tril_indices_outf(int64_t row, int64_t col, int64_t offset, at::Tensor & out) { + return at::_ops::tril_indices_out::call(row, col, offset, out); +} + +} diff --git a/shared/package-files/69/69c7d089576f980c7b6a56f2840a079b2b08ad9351b1f3145875943781fcc6a6/test_inputtransformer2.py b/shared/package-files/69/69c7d089576f980c7b6a56f2840a079b2b08ad9351b1f3145875943781fcc6a6/test_inputtransformer2.py new file mode 100644 index 0000000000000000000000000000000000000000..c16de5f807865307c299163fd74424e27c52bb3c --- /dev/null +++ b/shared/package-files/69/69c7d089576f980c7b6a56f2840a079b2b08ad9351b1f3145875943781fcc6a6/test_inputtransformer2.py @@ -0,0 +1,447 @@ +"""Tests for the token-based transformers in IPython.core.inputtransformer2 + +Line-based transformers are the simpler ones; token-based transformers are +more complex. See test_inputtransformer2_line for tests for line-based +transformations. +""" +import platform +import string +import sys +from textwrap import dedent + +import pytest + +from IPython.core import inputtransformer2 as ipt2 +from IPython.core.inputtransformer2 import _find_assign_op, make_tokens_by_line + +MULTILINE_MAGIC = ( + """\ +a = f() +%foo \\ +bar +g() +""".splitlines( + keepends=True + ), + (2, 0), + """\ +a = f() +get_ipython().run_line_magic('foo', ' bar') +g() +""".splitlines( + keepends=True + ), +) + +INDENTED_MAGIC = ( + """\ +for a in range(5): + %ls +""".splitlines( + keepends=True + ), + (2, 4), + """\ +for a in range(5): + get_ipython().run_line_magic('ls', '') +""".splitlines( + keepends=True + ), +) + +CRLF_MAGIC = ( + ["a = f()\n", "%ls\r\n", "g()\n"], + (2, 0), + ["a = f()\n", "get_ipython().run_line_magic('ls', '')\n", "g()\n"], +) + +MULTILINE_MAGIC_ASSIGN = ( + """\ +a = f() +b = %foo \\ + bar +g() +""".splitlines( + keepends=True + ), + (2, 4), + """\ +a = f() +b = get_ipython().run_line_magic('foo', ' bar') +g() +""".splitlines( + keepends=True + ), +) + +MULTILINE_SYSTEM_ASSIGN = ("""\ +a = f() +b = !foo \\ + bar +g() +""".splitlines(keepends=True), (2, 4), """\ +a = f() +b = get_ipython().getoutput('foo bar') +g() +""".splitlines(keepends=True)) + +##### + +MULTILINE_SYSTEM_ASSIGN_AFTER_DEDENT = ( + """\ +def test(): + for i in range(1): + print(i) + res =! ls +""".splitlines( + keepends=True + ), + (4, 7), + """\ +def test(): + for i in range(1): + print(i) + res =get_ipython().getoutput(\' ls\') +""".splitlines( + keepends=True + ), +) + +###### + +AUTOCALL_QUOTE = ([",f 1 2 3\n"], (1, 0), ['f("1", "2", "3")\n']) + +AUTOCALL_QUOTE2 = ([";f 1 2 3\n"], (1, 0), ['f("1 2 3")\n']) + +AUTOCALL_PAREN = (["/f 1 2 3\n"], (1, 0), ["f(1, 2, 3)\n"]) + +SIMPLE_HELP = (["foo?\n"], (1, 0), ["get_ipython().run_line_magic('pinfo', 'foo')\n"]) + +DETAILED_HELP = ( + ["foo??\n"], + (1, 0), + ["get_ipython().run_line_magic('pinfo2', 'foo')\n"], +) + +MAGIC_HELP = (["%foo?\n"], (1, 0), ["get_ipython().run_line_magic('pinfo', '%foo')\n"]) + +HELP_IN_EXPR = ( + ["a = b + c?\n"], + (1, 0), + ["get_ipython().run_line_magic('pinfo', 'c')\n"], +) + +HELP_CONTINUED_LINE = ( + """\ +a = \\ +zip? +""".splitlines( + keepends=True + ), + (1, 0), + [r"get_ipython().run_line_magic('pinfo', 'zip')" + "\n"], +) + +HELP_MULTILINE = ( + """\ +(a, +b) = zip? +""".splitlines( + keepends=True + ), + (1, 0), + [r"get_ipython().run_line_magic('pinfo', 'zip')" + "\n"], +) + +HELP_UNICODE = ( + ["π.foo?\n"], + (1, 0), + ["get_ipython().run_line_magic('pinfo', 'π.foo')\n"], +) + + +def null_cleanup_transformer(lines): + """ + A cleanup transform that returns an empty list. + """ + return [] + + +def test_check_make_token_by_line_never_ends_empty(): + """ + Check that not sequence of single or double characters ends up leading to en empty list of tokens + """ + from string import printable + + for c in printable: + assert make_tokens_by_line(c)[-1] != [] + for k in printable: + assert make_tokens_by_line(c + k)[-1] != [] + + +def check_find(transformer, case, match=True): + sample, expected_start, _ = case + tbl = make_tokens_by_line(sample) + res = transformer.find(tbl) + if match: + # start_line is stored 0-indexed, expected values are 1-indexed + assert (res.start_line + 1, res.start_col) == expected_start + return res + else: + assert res is None + + +def check_transform(transformer_cls, case): + lines, start, expected = case + transformer = transformer_cls(start) + assert transformer.transform(lines) == expected + + +def test_continued_line(): + lines = MULTILINE_MAGIC_ASSIGN[0] + assert ipt2.find_end_of_continued_line(lines, 1) == 2 + + assert ipt2.assemble_continued_line(lines, (1, 5), 2) == "foo bar" + + +def test_find_assign_magic(): + check_find(ipt2.MagicAssign, MULTILINE_MAGIC_ASSIGN) + check_find(ipt2.MagicAssign, MULTILINE_SYSTEM_ASSIGN, match=False) + check_find(ipt2.MagicAssign, MULTILINE_SYSTEM_ASSIGN_AFTER_DEDENT, match=False) + + +def test_transform_assign_magic(): + check_transform(ipt2.MagicAssign, MULTILINE_MAGIC_ASSIGN) + + +def test_find_assign_system(): + check_find(ipt2.SystemAssign, MULTILINE_SYSTEM_ASSIGN) + check_find(ipt2.SystemAssign, MULTILINE_SYSTEM_ASSIGN_AFTER_DEDENT) + check_find(ipt2.SystemAssign, (["a = !ls\n"], (1, 5), None)) + check_find(ipt2.SystemAssign, (["a=!ls\n"], (1, 2), None)) + check_find(ipt2.SystemAssign, MULTILINE_MAGIC_ASSIGN, match=False) + + +def test_transform_assign_system(): + check_transform(ipt2.SystemAssign, MULTILINE_SYSTEM_ASSIGN) + check_transform(ipt2.SystemAssign, MULTILINE_SYSTEM_ASSIGN_AFTER_DEDENT) + + +def test_find_magic_escape(): + check_find(ipt2.EscapedCommand, MULTILINE_MAGIC) + check_find(ipt2.EscapedCommand, INDENTED_MAGIC) + check_find(ipt2.EscapedCommand, MULTILINE_MAGIC_ASSIGN, match=False) + + +def test_transform_magic_escape(): + check_transform(ipt2.EscapedCommand, MULTILINE_MAGIC) + check_transform(ipt2.EscapedCommand, INDENTED_MAGIC) + check_transform(ipt2.EscapedCommand, CRLF_MAGIC) + + +def test_find_autocalls(): + for case in [AUTOCALL_QUOTE, AUTOCALL_QUOTE2, AUTOCALL_PAREN]: + print("Testing %r" % case[0]) + check_find(ipt2.EscapedCommand, case) + + +def test_transform_autocall(): + for case in [AUTOCALL_QUOTE, AUTOCALL_QUOTE2, AUTOCALL_PAREN]: + print("Testing %r" % case[0]) + check_transform(ipt2.EscapedCommand, case) + + +def test_find_help(): + for case in [SIMPLE_HELP, DETAILED_HELP, MAGIC_HELP, HELP_IN_EXPR]: + check_find(ipt2.HelpEnd, case) + + tf = check_find(ipt2.HelpEnd, HELP_CONTINUED_LINE) + assert tf.q_line == 1 + assert tf.q_col == 3 + + tf = check_find(ipt2.HelpEnd, HELP_MULTILINE) + assert tf.q_line == 1 + assert tf.q_col == 8 + + # ? in a comment does not trigger help + check_find(ipt2.HelpEnd, (["foo # bar?\n"], None, None), match=False) + # Nor in a string + check_find(ipt2.HelpEnd, (["foo = '''bar?\n"], None, None), match=False) + + +def test_transform_help(): + tf = ipt2.HelpEnd((1, 0), (1, 9)) + assert tf.transform(HELP_IN_EXPR[0]) == HELP_IN_EXPR[2] + + tf = ipt2.HelpEnd((1, 0), (2, 3)) + assert tf.transform(HELP_CONTINUED_LINE[0]) == HELP_CONTINUED_LINE[2] + + tf = ipt2.HelpEnd((1, 0), (2, 8)) + assert tf.transform(HELP_MULTILINE[0]) == HELP_MULTILINE[2] + + tf = ipt2.HelpEnd((1, 0), (1, 0)) + assert tf.transform(HELP_UNICODE[0]) == HELP_UNICODE[2] + + +def test_find_assign_op_dedent(): + """ + be careful that empty token like dedent are not counted as parens + """ + + class Tk: + def __init__(self, s): + self.string = s + + assert _find_assign_op([Tk(s) for s in ("", "a", "=", "b")]) == 2 + assert ( + _find_assign_op([Tk(s) for s in ("", "(", "a", "=", "b", ")", "=", "5")]) == 6 + ) + + +extra_closing_paren_param = ( + pytest.param("(\n))", "invalid", None) + if sys.version_info >= (3, 12) + else pytest.param("(\n))", "incomplete", 0) +) +examples = [ + pytest.param("a = 1", "complete", None), + pytest.param("for a in range(5):", "incomplete", 4), + pytest.param("for a in range(5):\n if a > 0:", "incomplete", 8), + pytest.param("raise = 2", "invalid", None), + pytest.param("a = [1,\n2,", "incomplete", 0), + extra_closing_paren_param, + pytest.param("\\\r\n", "incomplete", 0), + pytest.param("a = '''\n hi", "incomplete", 3), + pytest.param("def a():\n x=1\n global x", "invalid", None), + pytest.param( + "a \\ ", + "invalid", + None, + marks=pytest.mark.xfail( + reason="Bug in python 3.9.8 – bpo 45738", + condition=sys.version_info in [(3, 11, 0, "alpha", 2)], + raises=SystemError, + strict=True, + ), + ), # Nothing allowed after backslash, + pytest.param("1\\\n+2", "complete", None), +] + + +@pytest.mark.parametrize("code, expected, number", examples) +def test_check_complete_param(code, expected, number): + cc = ipt2.TransformerManager().check_complete + assert cc(code) == (expected, number) + + +@pytest.mark.xfail(platform.python_implementation() == "PyPy", reason="fail on pypy") +@pytest.mark.xfail( + reason="Bug in python 3.9.8 – bpo 45738", + condition=sys.version_info in [(3, 11, 0, "alpha", 2)], + raises=SystemError, + strict=True, +) +def test_check_complete(): + cc = ipt2.TransformerManager().check_complete + + example = dedent( + """ + if True: + a=1""" + ) + + assert cc(example) == ("incomplete", 4) + assert cc(example + "\n") == ("complete", None) + assert cc(example + "\n ") == ("complete", None) + + # no need to loop on all the letters/numbers. + short = "12abAB" + string.printable[62:] + for c in short: + # test does not raise: + cc(c) + for k in short: + cc(c + k) + + assert cc("def f():\n x=0\n \\\n ") == ("incomplete", 2) + + +@pytest.mark.xfail(platform.python_implementation() == "PyPy", reason="fail on pypy") +@pytest.mark.parametrize( + "value, expected", + [ + ('''def foo():\n """''', ("incomplete", 4)), + ("""async with example:\n pass""", ("incomplete", 4)), + ("""async with example:\n pass\n """, ("complete", None)), + ], +) +def test_check_complete_II(value, expected): + """ + Test that multiple line strings are properly handled. + + Separate test function for convenience + + """ + cc = ipt2.TransformerManager().check_complete + assert cc(value) == expected + + +@pytest.mark.parametrize( + "value, expected", + [ + (")", ("invalid", None)), + ("]", ("invalid", None)), + ("}", ("invalid", None)), + (")(", ("invalid", None)), + ("][", ("invalid", None)), + ("}{", ("invalid", None)), + ("]()(", ("invalid", None)), + ("())(", ("invalid", None)), + (")[](", ("invalid", None)), + ("()](", ("invalid", None)), + ], +) +def test_check_complete_invalidates_sunken_brackets(value, expected): + """ + Test that a single line with more closing brackets than the opening ones is + interpreted as invalid + """ + cc = ipt2.TransformerManager().check_complete + assert cc(value) == expected + + +def test_null_cleanup_transformer(): + manager = ipt2.TransformerManager() + manager.cleanup_transforms.insert(0, null_cleanup_transformer) + assert manager.transform_cell("") == "" + + +def test_side_effects_I(): + count = 0 + + def counter(lines): + nonlocal count + count += 1 + return lines + + counter.has_side_effects = True + + manager = ipt2.TransformerManager() + manager.cleanup_transforms.insert(0, counter) + assert manager.check_complete("a=1\n") == ("complete", None) + assert count == 0 + + +def test_side_effects_II(): + count = 0 + + def counter(lines): + nonlocal count + count += 1 + return lines + + counter.has_side_effects = True + + manager = ipt2.TransformerManager() + manager.line_transforms.insert(0, counter) + assert manager.check_complete("b=1\n") == ("complete", None) + assert count == 0 diff --git a/shared/package-files/69/69d15a6e4890734fc13ae262a71621c9e6713530e04d9604f839b6cdc153b616/__init__.py b/shared/package-files/69/69d15a6e4890734fc13ae262a71621c9e6713530e04d9604f839b6cdc153b616/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..21f16eba8bee59bb60339a30de52d76199feea1c --- /dev/null +++ b/shared/package-files/69/69d15a6e4890734fc13ae262a71621c9e6713530e04d9604f839b6cdc153b616/__init__.py @@ -0,0 +1,680 @@ +import collections.abc +import re +from typing import ( + Any, + Callable, + Dict, + List, + Mapping, + MutableMapping, + Optional, + Sequence, + Type, + Union, + IO, +) +import warnings +from io import BytesIO +from datetime import datetime +from base64 import b64encode, b64decode +from numbers import Integral +from types import SimpleNamespace +from functools import singledispatch + +from fontTools.misc import etree + +from fontTools.misc.textTools import tostr + +# By default, we +# - deserialize elements as bytes and +# - serialize bytes as elements. +# Before, on Python 2, we +# - deserialized elements as plistlib.Data objects, in order to +# distinguish them from the built-in str type (which is bytes on python2) +# - serialized bytes as elements (they must have only contained +# ASCII characters in this case) +# You can pass use_builtin_types=[True|False] to the load/dump etc. functions +# to enforce a specific treatment. +# NOTE that unicode type always maps to element, and plistlib.Data +# always maps to element, regardless of use_builtin_types. +USE_BUILTIN_TYPES = True + +XML_DECLARATION = b"""""" + +PLIST_DOCTYPE = ( + b'' +) + + +# Date should conform to a subset of ISO 8601: +# YYYY '-' MM '-' DD 'T' HH ':' MM ':' SS 'Z' +_date_parser = re.compile( + r"(?P\d\d\d\d)" + r"(?:-(?P\d\d)" + r"(?:-(?P\d\d)" + r"(?:T(?P\d\d)" + r"(?::(?P\d\d)" + r"(?::(?P\d\d))" + r"?)?)?)?)?Z", + re.ASCII, +) + + +def _date_from_string(s: str) -> datetime: + order = ("year", "month", "day", "hour", "minute", "second") + m = _date_parser.match(s) + if m is None: + raise ValueError(f"Expected ISO 8601 date string, but got '{s:r}'.") + gd = m.groupdict() + lst = [] + for key in order: + val = gd[key] + if val is None: + break + lst.append(int(val)) + # NOTE: mypy doesn't know that lst is 6 elements long. + return datetime(*lst) # type: ignore + + +def _date_to_string(d: datetime) -> str: + return "%04d-%02d-%02dT%02d:%02d:%02dZ" % ( + d.year, + d.month, + d.day, + d.hour, + d.minute, + d.second, + ) + + +class Data: + """Represents binary data when ``use_builtin_types=False.`` + + This class wraps binary data loaded from a plist file when the + ``use_builtin_types`` argument to the loading function (:py:func:`fromtree`, + :py:func:`load`, :py:func:`loads`) is false. + + The actual binary data is retrieved using the ``data`` attribute. + """ + + def __init__(self, data: bytes) -> None: + if not isinstance(data, bytes): + raise TypeError("Expected bytes, found %s" % type(data).__name__) + self.data = data + + @classmethod + def fromBase64(cls, data: Union[bytes, str]) -> "Data": + return cls(b64decode(data)) + + def asBase64(self, maxlinelength: int = 76, indent_level: int = 1) -> bytes: + return _encode_base64( + self.data, maxlinelength=maxlinelength, indent_level=indent_level + ) + + def __eq__(self, other: Any) -> bool: + if isinstance(other, self.__class__): + return self.data == other.data + elif isinstance(other, bytes): + return self.data == other + else: + return NotImplemented + + def __repr__(self) -> str: + return "%s(%s)" % (self.__class__.__name__, repr(self.data)) + + +def _encode_base64( + data: bytes, maxlinelength: Optional[int] = 76, indent_level: int = 1 +) -> bytes: + data = b64encode(data) + if data and maxlinelength: + # split into multiple lines right-justified to 'maxlinelength' chars + indent = b"\n" + b" " * indent_level + max_length = max(16, maxlinelength - len(indent)) + chunks = [] + for i in range(0, len(data), max_length): + chunks.append(indent) + chunks.append(data[i : i + max_length]) + chunks.append(indent) + data = b"".join(chunks) + return data + + +# Mypy does not support recursive type aliases as of 0.782, Pylance does. +# https://github.com/python/mypy/issues/731 +# https://devblogs.microsoft.com/python/pylance-introduces-five-new-features-that-enable-type-magic-for-python-developers/#1-support-for-recursive-type-aliases +PlistEncodable = Union[ + bool, + bytes, + Data, + datetime, + float, + Integral, + Mapping[str, Any], + Sequence[Any], + str, +] + + +class PlistTarget: + """Event handler using the ElementTree Target API that can be + passed to a XMLParser to produce property list objects from XML. + It is based on the CPython plistlib module's _PlistParser class, + but does not use the expat parser. + + >>> from fontTools.misc import etree + >>> parser = etree.XMLParser(target=PlistTarget()) + >>> result = etree.XML( + ... "" + ... " something" + ... " blah" + ... "", + ... parser=parser) + >>> result == {"something": "blah"} + True + + Links: + https://github.com/python/cpython/blob/main/Lib/plistlib.py + http://lxml.de/parsing.html#the-target-parser-interface + """ + + def __init__( + self, + use_builtin_types: Optional[bool] = None, + dict_type: Type[MutableMapping[str, Any]] = dict, + ) -> None: + self.stack: List[PlistEncodable] = [] + self.current_key: Optional[str] = None + self.root: Optional[PlistEncodable] = None + if use_builtin_types is None: + self._use_builtin_types = USE_BUILTIN_TYPES + else: + if use_builtin_types is False: + warnings.warn( + "Setting use_builtin_types to False is deprecated and will be " + "removed soon.", + DeprecationWarning, + ) + self._use_builtin_types = use_builtin_types + self._dict_type = dict_type + + def start(self, tag: str, attrib: Mapping[str, str]) -> None: + self._data: List[str] = [] + handler = _TARGET_START_HANDLERS.get(tag) + if handler is not None: + handler(self) + + def end(self, tag: str) -> None: + handler = _TARGET_END_HANDLERS.get(tag) + if handler is not None: + handler(self) + + def data(self, data: str) -> None: + self._data.append(data) + + def close(self) -> PlistEncodable: + if self.root is None: + raise ValueError("No root set.") + return self.root + + # helpers + + def add_object(self, value: PlistEncodable) -> None: + if self.current_key is not None: + stack_top = self.stack[-1] + if not isinstance(stack_top, collections.abc.MutableMapping): + raise ValueError("unexpected element: %r" % stack_top) + stack_top[self.current_key] = value + self.current_key = None + elif not self.stack: + # this is the root object + self.root = value + else: + stack_top = self.stack[-1] + if not isinstance(stack_top, list): + raise ValueError("unexpected element: %r" % stack_top) + stack_top.append(value) + + def get_data(self) -> str: + data = "".join(self._data) + self._data = [] + return data + + +# event handlers + + +def start_dict(self: PlistTarget) -> None: + d = self._dict_type() + self.add_object(d) + self.stack.append(d) + + +def end_dict(self: PlistTarget) -> None: + if self.current_key: + raise ValueError("missing value for key '%s'" % self.current_key) + self.stack.pop() + + +def end_key(self: PlistTarget) -> None: + if self.current_key or not isinstance(self.stack[-1], collections.abc.Mapping): + raise ValueError("unexpected key") + self.current_key = self.get_data() + + +def start_array(self: PlistTarget) -> None: + a: List[PlistEncodable] = [] + self.add_object(a) + self.stack.append(a) + + +def end_array(self: PlistTarget) -> None: + self.stack.pop() + + +def end_true(self: PlistTarget) -> None: + self.add_object(True) + + +def end_false(self: PlistTarget) -> None: + self.add_object(False) + + +def end_integer(self: PlistTarget) -> None: + self.add_object(int(self.get_data())) + + +def end_real(self: PlistTarget) -> None: + self.add_object(float(self.get_data())) + + +def end_string(self: PlistTarget) -> None: + self.add_object(self.get_data()) + + +def end_data(self: PlistTarget) -> None: + if self._use_builtin_types: + self.add_object(b64decode(self.get_data())) + else: + self.add_object(Data.fromBase64(self.get_data())) + + +def end_date(self: PlistTarget) -> None: + self.add_object(_date_from_string(self.get_data())) + + +_TARGET_START_HANDLERS: Dict[str, Callable[[PlistTarget], None]] = { + "dict": start_dict, + "array": start_array, +} + +_TARGET_END_HANDLERS: Dict[str, Callable[[PlistTarget], None]] = { + "dict": end_dict, + "array": end_array, + "key": end_key, + "true": end_true, + "false": end_false, + "integer": end_integer, + "real": end_real, + "string": end_string, + "data": end_data, + "date": end_date, +} + + +# functions to build element tree from plist data + + +def _string_element(value: str, ctx: SimpleNamespace) -> etree.Element: + el = etree.Element("string") + el.text = value + return el + + +def _bool_element(value: bool, ctx: SimpleNamespace) -> etree.Element: + if value: + return etree.Element("true") + return etree.Element("false") + + +def _integer_element(value: int, ctx: SimpleNamespace) -> etree.Element: + if -1 << 63 <= value < 1 << 64: + el = etree.Element("integer") + el.text = "%d" % value + return el + raise OverflowError(value) + + +def _real_element(value: float, ctx: SimpleNamespace) -> etree.Element: + el = etree.Element("real") + el.text = repr(value) + return el + + +def _dict_element( + d: Mapping[str, PlistEncodable], ctx: SimpleNamespace +) -> etree.Element: + el = etree.Element("dict") + items = d.items() + if ctx.sort_keys: + items = sorted(items) # type: ignore + ctx.indent_level += 1 + for key, value in items: + if not isinstance(key, str): + if ctx.skipkeys: + continue + raise TypeError("keys must be strings") + k = etree.SubElement(el, "key") + k.text = tostr(key, "utf-8") + el.append(_make_element(value, ctx)) + ctx.indent_level -= 1 + return el + + +def _array_element( + array: Sequence[PlistEncodable], ctx: SimpleNamespace +) -> etree.Element: + el = etree.Element("array") + if len(array) == 0: + return el + ctx.indent_level += 1 + for value in array: + el.append(_make_element(value, ctx)) + ctx.indent_level -= 1 + return el + + +def _date_element(date: datetime, ctx: SimpleNamespace) -> etree.Element: + el = etree.Element("date") + el.text = _date_to_string(date) + return el + + +def _data_element(data: bytes, ctx: SimpleNamespace) -> etree.Element: + el = etree.Element("data") + # NOTE: mypy is confused about whether el.text should be str or bytes. + el.text = _encode_base64( # type: ignore + data, + maxlinelength=(76 if ctx.pretty_print else None), + indent_level=ctx.indent_level, + ) + return el + + +def _string_or_data_element(raw_bytes: bytes, ctx: SimpleNamespace) -> etree.Element: + if ctx.use_builtin_types: + return _data_element(raw_bytes, ctx) + else: + try: + string = raw_bytes.decode(encoding="ascii", errors="strict") + except UnicodeDecodeError: + raise ValueError( + "invalid non-ASCII bytes; use unicode string instead: %r" % raw_bytes + ) + return _string_element(string, ctx) + + +# The following is probably not entirely correct. The signature should take `Any` +# and return `NoReturn`. At the time of this writing, neither mypy nor Pyright +# can deal with singledispatch properly and will apply the signature of the base +# function to all others. Being slightly dishonest makes it type-check and return +# usable typing information for the optimistic case. +@singledispatch +def _make_element(value: PlistEncodable, ctx: SimpleNamespace) -> etree.Element: + raise TypeError("unsupported type: %s" % type(value)) + + +_make_element.register(str)(_string_element) +_make_element.register(bool)(_bool_element) +_make_element.register(Integral)(_integer_element) +_make_element.register(float)(_real_element) +_make_element.register(collections.abc.Mapping)(_dict_element) +_make_element.register(list)(_array_element) +_make_element.register(tuple)(_array_element) +_make_element.register(datetime)(_date_element) +_make_element.register(bytes)(_string_or_data_element) +_make_element.register(bytearray)(_data_element) +_make_element.register(Data)(lambda v, ctx: _data_element(v.data, ctx)) + + +# Public functions to create element tree from plist-compatible python +# data structures and viceversa, for use when (de)serializing GLIF xml. + + +def totree( + value: PlistEncodable, + sort_keys: bool = True, + skipkeys: bool = False, + use_builtin_types: Optional[bool] = None, + pretty_print: bool = True, + indent_level: int = 1, +) -> etree.Element: + """Convert a value derived from a plist into an XML tree. + + Args: + value: Any kind of value to be serialized to XML. + sort_keys: Whether keys of dictionaries should be sorted. + skipkeys (bool): Whether to silently skip non-string dictionary + keys. + use_builtin_types (bool): If true, byte strings will be + encoded in Base-64 and wrapped in a ``data`` tag; if + false, they will be either stored as ASCII strings or an + exception raised if they cannot be decoded as such. Defaults + to ``True`` if not present. Deprecated. + pretty_print (bool): Whether to indent the output. + indent_level (int): Level of indentation when serializing. + + Returns: an ``etree`` ``Element`` object. + + Raises: + ``TypeError`` + if non-string dictionary keys are serialized + and ``skipkeys`` is false. + ``ValueError`` + if non-ASCII binary data is present + and `use_builtin_types` is false. + """ + if use_builtin_types is None: + use_builtin_types = USE_BUILTIN_TYPES + else: + use_builtin_types = use_builtin_types + context = SimpleNamespace( + sort_keys=sort_keys, + skipkeys=skipkeys, + use_builtin_types=use_builtin_types, + pretty_print=pretty_print, + indent_level=indent_level, + ) + return _make_element(value, context) + + +def fromtree( + tree: etree.Element, + use_builtin_types: Optional[bool] = None, + dict_type: Type[MutableMapping[str, Any]] = dict, +) -> Any: + """Convert an XML tree to a plist structure. + + Args: + tree: An ``etree`` ``Element``. + use_builtin_types: If True, binary data is deserialized to + bytes strings. If False, it is wrapped in :py:class:`Data` + objects. Defaults to True if not provided. Deprecated. + dict_type: What type to use for dictionaries. + + Returns: An object (usually a dictionary). + """ + target = PlistTarget(use_builtin_types=use_builtin_types, dict_type=dict_type) + for action, element in etree.iterwalk(tree, events=("start", "end")): + if action == "start": + target.start(element.tag, element.attrib) + elif action == "end": + # if there are no children, parse the leaf's data + if not len(element): + # always pass str, not None + target.data(element.text or "") + target.end(element.tag) + return target.close() + + +# python3 plistlib API + + +def load( + fp: IO[bytes], + use_builtin_types: Optional[bool] = None, + dict_type: Type[MutableMapping[str, Any]] = dict, +) -> Any: + """Load a plist file into an object. + + Args: + fp: An opened file. + use_builtin_types: If True, binary data is deserialized to + bytes strings. If False, it is wrapped in :py:class:`Data` + objects. Defaults to True if not provided. Deprecated. + dict_type: What type to use for dictionaries. + + Returns: + An object (usually a dictionary) representing the top level of + the plist file. + """ + + if not hasattr(fp, "read"): + raise AttributeError("'%s' object has no attribute 'read'" % type(fp).__name__) + target = PlistTarget(use_builtin_types=use_builtin_types, dict_type=dict_type) + parser = etree.XMLParser(target=target) + result = etree.parse(fp, parser=parser) + # lxml returns the target object directly, while ElementTree wraps + # it as the root of an ElementTree object + try: + return result.getroot() + except AttributeError: + return result + + +def loads( + value: bytes, + use_builtin_types: Optional[bool] = None, + dict_type: Type[MutableMapping[str, Any]] = dict, +) -> Any: + """Load a plist file from a string into an object. + + Args: + value: A bytes string containing a plist. + use_builtin_types: If True, binary data is deserialized to + bytes strings. If False, it is wrapped in :py:class:`Data` + objects. Defaults to True if not provided. Deprecated. + dict_type: What type to use for dictionaries. + + Returns: + An object (usually a dictionary) representing the top level of + the plist file. + """ + + fp = BytesIO(value) + return load(fp, use_builtin_types=use_builtin_types, dict_type=dict_type) + + +def dump( + value: PlistEncodable, + fp: IO[bytes], + sort_keys: bool = True, + skipkeys: bool = False, + use_builtin_types: Optional[bool] = None, + pretty_print: bool = True, +) -> None: + """Write a Python object to a plist file. + + Args: + value: An object to write. + fp: A file opened for writing. + sort_keys (bool): Whether keys of dictionaries should be sorted. + skipkeys (bool): Whether to silently skip non-string dictionary + keys. + use_builtin_types (bool): If true, byte strings will be + encoded in Base-64 and wrapped in a ``data`` tag; if + false, they will be either stored as ASCII strings or an + exception raised if they cannot be represented. Defaults + pretty_print (bool): Whether to indent the output. + indent_level (int): Level of indentation when serializing. + + Raises: + ``TypeError`` + if non-string dictionary keys are serialized + and ``skipkeys`` is false. + ``ValueError`` + if non-representable binary data is present + and `use_builtin_types` is false. + """ + + if not hasattr(fp, "write"): + raise AttributeError("'%s' object has no attribute 'write'" % type(fp).__name__) + root = etree.Element("plist", version="1.0") + el = totree( + value, + sort_keys=sort_keys, + skipkeys=skipkeys, + use_builtin_types=use_builtin_types, + pretty_print=pretty_print, + ) + root.append(el) + tree = etree.ElementTree(root) + # we write the doctype ourselves instead of using the 'doctype' argument + # of 'write' method, becuse lxml will force adding a '\n' even when + # pretty_print is False. + if pretty_print: + header = b"\n".join((XML_DECLARATION, PLIST_DOCTYPE, b"")) + else: + header = XML_DECLARATION + PLIST_DOCTYPE + fp.write(header) + tree.write( # type: ignore + fp, + encoding="utf-8", + pretty_print=pretty_print, + xml_declaration=False, + ) + + +def dumps( + value: PlistEncodable, + sort_keys: bool = True, + skipkeys: bool = False, + use_builtin_types: Optional[bool] = None, + pretty_print: bool = True, +) -> bytes: + """Write a Python object to a string in plist format. + + Args: + value: An object to write. + sort_keys (bool): Whether keys of dictionaries should be sorted. + skipkeys (bool): Whether to silently skip non-string dictionary + keys. + use_builtin_types (bool): If true, byte strings will be + encoded in Base-64 and wrapped in a ``data`` tag; if + false, they will be either stored as strings or an + exception raised if they cannot be represented. Defaults + pretty_print (bool): Whether to indent the output. + indent_level (int): Level of indentation when serializing. + + Returns: + string: A plist representation of the Python object. + + Raises: + ``TypeError`` + if non-string dictionary keys are serialized + and ``skipkeys`` is false. + ``ValueError`` + if non-representable binary data is present + and `use_builtin_types` is false. + """ + fp = BytesIO() + dump( + value, + fp, + sort_keys=sort_keys, + skipkeys=skipkeys, + use_builtin_types=use_builtin_types, + pretty_print=pretty_print, + ) + return fp.getvalue() diff --git a/shared/package-files/69/69d4a9bd0c968d32ec6cdff62872781ee5e963bfd4f67a1e5a21b496c9182e01/errors.py b/shared/package-files/69/69d4a9bd0c968d32ec6cdff62872781ee5e963bfd4f67a1e5a21b496c9182e01/errors.py new file mode 100644 index 0000000000000000000000000000000000000000..d8c3ef9f06279df42d4b2054acc4cfe39b6682a5 --- /dev/null +++ b/shared/package-files/69/69d4a9bd0c968d32ec6cdff62872781ee5e963bfd4f67a1e5a21b496c9182e01/errors.py @@ -0,0 +1,2 @@ +class LaTeXParsingError(Exception): + pass diff --git a/shared/package-files/69/69da2cc1b7c1928ea60fd8522d0cf122dd21a1a89feac195a8d7bd0654d22003/stack_ops.h b/shared/package-files/69/69da2cc1b7c1928ea60fd8522d0cf122dd21a1a89feac195a8d7bd0654d22003/stack_ops.h new file mode 100644 index 0000000000000000000000000000000000000000..e02f453e920d6161209860bd598bfa5c52220324 --- /dev/null +++ b/shared/package-files/69/69da2cc1b7c1928ea60fd8522d0cf122dd21a1a89feac195a8d7bd0654d22003/stack_ops.h @@ -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 stack { + using schema = at::Tensor (at::TensorList, int64_t); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::stack") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "stack(Tensor[] tensors, int dim=0) -> Tensor") + static at::Tensor call(at::TensorList tensors, int64_t dim); + static at::Tensor redispatch(c10::DispatchKeySet dispatchKeySet, at::TensorList tensors, int64_t dim); +}; + +struct TORCH_API stack_out { + using schema = at::Tensor & (at::TensorList, 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::stack") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "out") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "stack.out(Tensor[] tensors, int dim=0, *, Tensor(a!) out) -> Tensor(a!)") + static at::Tensor & call(at::TensorList tensors, int64_t dim, at::Tensor & out); + static at::Tensor & redispatch(c10::DispatchKeySet dispatchKeySet, at::TensorList tensors, int64_t dim, at::Tensor & out); +}; + +}} // namespace at::_ops diff --git a/shared/package-files/69/69e5b6a4c68b936a1eba4115c8fe0dd5b71acb046ba13ac5c0e7b6d24051792f/fft_rfft2_compositeimplicitautograd_dispatch.h b/shared/package-files/69/69e5b6a4c68b936a1eba4115c8fe0dd5b71acb046ba13ac5c0e7b6d24051792f/fft_rfft2_compositeimplicitautograd_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..55e9d94a4a0f5fcaca0349e497297131742a91ed --- /dev/null +++ b/shared/package-files/69/69e5b6a4c68b936a1eba4115c8fe0dd5b71acb046ba13ac5c0e7b6d24051792f/fft_rfft2_compositeimplicitautograd_dispatch.h @@ -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 compositeimplicitautograd { + +TORCH_API at::Tensor fft_rfft2(const at::Tensor & self, at::OptionalIntArrayRef s=c10::nullopt, at::IntArrayRef dim={-2,-1}, c10::optional norm=c10::nullopt); +TORCH_API at::Tensor fft_rfft2_symint(const at::Tensor & self, at::OptionalSymIntArrayRef s=c10::nullopt, at::IntArrayRef dim={-2,-1}, c10::optional norm=c10::nullopt); +TORCH_API at::Tensor & fft_rfft2_out(at::Tensor & out, const at::Tensor & self, at::OptionalIntArrayRef s=c10::nullopt, at::IntArrayRef dim={-2,-1}, c10::optional norm=c10::nullopt); +TORCH_API at::Tensor & fft_rfft2_outf(const at::Tensor & self, at::OptionalIntArrayRef s, at::IntArrayRef dim, c10::optional norm, at::Tensor & out); +TORCH_API at::Tensor & fft_rfft2_symint_out(at::Tensor & out, const at::Tensor & self, at::OptionalSymIntArrayRef s=c10::nullopt, at::IntArrayRef dim={-2,-1}, c10::optional norm=c10::nullopt); +TORCH_API at::Tensor & fft_rfft2_symint_outf(const at::Tensor & self, at::OptionalSymIntArrayRef s, at::IntArrayRef dim, c10::optional norm, at::Tensor & out); + +} // namespace compositeimplicitautograd +} // namespace at diff --git a/shared/package-files/69/69f1aaf7d1ede3f2c899576499dad130ee16b7e4998e20d6beaec37d34678c39/vec256_int64_vsx.h b/shared/package-files/69/69f1aaf7d1ede3f2c899576499dad130ee16b7e4998e20d6beaec37d34678c39/vec256_int64_vsx.h new file mode 100644 index 0000000000000000000000000000000000000000..507089dc0339747729e2d15d093b61af95cd87ec --- /dev/null +++ b/shared/package-files/69/69f1aaf7d1ede3f2c899576499dad130ee16b7e4998e20d6beaec37d34678c39/vec256_int64_vsx.h @@ -0,0 +1,251 @@ +#pragma once + +#include +#include +#include +namespace at { +namespace vec { +// See Note [CPU_CAPABILITY namespace] +inline namespace CPU_CAPABILITY { + +template <> +class Vectorized { + private: + union { + struct { + vint64 _vec0; + vint64 _vec1; + }; + struct { + vbool64 _vecb0; + vbool64 _vecb1; + }; + + } __attribute__((__may_alias__)); + + public: + using value_type = int64_t; + using vec_internal_type = vint64; + using vec_internal_mask_type = vbool64; + using size_type = int; + using ElementType = signed long long; + static constexpr size_type size() { + return 4; + } + Vectorized() {} + C10_ALWAYS_INLINE Vectorized(vint64 v) : _vec0{v}, _vec1{v} {} + C10_ALWAYS_INLINE Vectorized(vbool64 vmask) : _vecb0{vmask}, _vecb1{vmask} {} + C10_ALWAYS_INLINE Vectorized(vint64 v1, vint64 v2) : _vec0{v1}, _vec1{v2} {} + C10_ALWAYS_INLINE Vectorized(vbool64 v1, vbool64 v2) : _vecb0{v1}, _vecb1{v2} {} + C10_ALWAYS_INLINE Vectorized(int64_t scalar) + : _vec0{vec_splats(scalar)}, _vec1{vec_splats(scalar)} {} + C10_ALWAYS_INLINE Vectorized( + int64_t scalar1, + int64_t scalar2, + int64_t scalar3, + int64_t scalar4) + : _vec0{vint64{scalar1, scalar2}}, _vec1{vint64{scalar3, scalar4}} {} + + C10_ALWAYS_INLINE const vec_internal_type& vec0() const { + return _vec0; + } + C10_ALWAYS_INLINE const vec_internal_type& vec1() const { + return _vec1; + } + + template + static std::enable_if_t> C10_ALWAYS_INLINE + blend(const Vectorized& a, const Vectorized& b) { + return a; + } + + template + static std::enable_if_t> C10_ALWAYS_INLINE + blend(const Vectorized& a, const Vectorized& b) { + return {b._vec0, a._vec1}; + } + + template + static std::enable_if_t<(mask & 15) == 15, Vectorized> C10_ALWAYS_INLINE + blend(const Vectorized& a, const Vectorized& b) { + return b; + } + + template + static std::enable_if_t<(mask > 0 && mask < 3), Vectorized> C10_ALWAYS_INLINE + blend(const Vectorized& a, const Vectorized& b) { + constexpr uint64_t g0 = (mask & 1) * 0xffffffffffffffff; + constexpr uint64_t g1 = ((mask & 2) >> 1) * 0xffffffffffffffff; + const vbool64 mask_1st = (vbool64){g0, g1}; + return {(vint64)vec_sel(a._vec0, b._vec0, (vbool64)mask_1st), a._vec1}; + } + + template + static std::enable_if_t<(mask > 3) && (mask & 3) == 0, Vectorized> + C10_ALWAYS_INLINE blend(const Vectorized& a, const Vectorized& b) { + constexpr uint64_t g0_2 = ((mask & 4) >> 2) * 0xffffffffffffffff; + constexpr uint64_t g1_2 = ((mask & 8) >> 3) * 0xffffffffffffffff; + + const vbool64 mask_2nd = (vbool64){g0_2, g1_2}; + return {a._vec0, (vint64)vec_sel(a._vec1, b._vec1, (vbool64)mask_2nd)}; + } + + template + static std::enable_if_t< + (mask > 3) && (mask & 3) != 0 && (mask & 15) != 15, + Vectorized> + C10_ALWAYS_INLINE blend(const Vectorized& a, const Vectorized& b) { + constexpr uint64_t g0 = (mask & 1) * 0xffffffffffffffff; + constexpr uint64_t g1 = ((mask & 2) >> 1) * 0xffffffffffffffff; + constexpr uint64_t g0_2 = ((mask & 4) >> 2) * 0xffffffffffffffff; + constexpr uint64_t g1_2 = ((mask & 8) >> 3) * 0xffffffffffffffff; + + const vbool64 mask_1st = (vbool64){g0, g1}; + const vbool64 mask_2nd = (vbool64){g0_2, g1_2}; + return { + (vint64)vec_sel(a._vec0, b._vec0, (vbool64)mask_1st), + (vint64)vec_sel(a._vec1, b._vec1, (vbool64)mask_2nd)}; + } + + static Vectorized C10_ALWAYS_INLINE blendv( + const Vectorized& a, + const Vectorized& b, + const Vectorized& mask) { + // the mask used here returned by comparision of vec256 + + return { + vec_sel(a._vec0, b._vec0, mask._vecb0), + vec_sel(a._vec1, b._vec1, mask._vecb1)}; + } + template + static Vectorized arange(int64_t base = 0., step_t step = static_cast(1)) { + return Vectorized(base, base + step, base + 2 * step, base + 3 * step); + } + + static Vectorized C10_ALWAYS_INLINE + set(const Vectorized& a, + const Vectorized& b, + size_t count = size()) { + switch (count) { + case 0: + return a; + case 1: + return blend<1>(a, b); + case 2: + return blend<3>(a, b); + case 3: + return blend<7>(a, b); + } + + return b; + } + static Vectorized C10_ALWAYS_INLINE + loadu(const void* ptr, int count = size()) { + if (count == size()) { + static_assert(sizeof(double) == sizeof(value_type)); + const double* dptr = reinterpret_cast(ptr); + return {// treat it as double load + (vint64)vec_vsx_ld(offset0, dptr), + (vint64)vec_vsx_ld(offset16, dptr)}; + } + + __at_align__ double tmp_values[size()] = {}; + std::memcpy(tmp_values, ptr, std::min(count, size()) * sizeof(value_type)); + + return { + (vint64)vec_vsx_ld(offset0, tmp_values), + (vint64)vec_vsx_ld(offset16, tmp_values)}; + } + void C10_ALWAYS_INLINE store(void* ptr, int count = size()) const { + if (count == size()) { + double* dptr = reinterpret_cast(ptr); + vec_vsx_st((vfloat64)_vec0, offset0, dptr); + vec_vsx_st((vfloat64)_vec1, offset16, dptr); + } else if (count > 0) { + __at_align__ double tmp_values[size()]; + vec_vsx_st((vfloat64)_vec0, offset0, tmp_values); + vec_vsx_st((vfloat64)_vec1, offset16, tmp_values); + std::memcpy( + ptr, tmp_values, std::min(count, size()) * sizeof(value_type)); + } + } + const int64_t& operator[](int idx) const = delete; + int64_t& operator[](int idx) = delete; + + Vectorized angle() const { + return blendv( + Vectorized(0), Vectorized(c10::pi), *this < Vectorized(0)); + } + Vectorized real() const { + return *this; + } + Vectorized imag() const { + return Vectorized{0}; + } + Vectorized conj() const { + return *this; + } + + Vectorized C10_ALWAYS_INLINE abs() const { + return {vec_abs(_vec0), vec_abs(_vec1)}; + } + + Vectorized C10_ALWAYS_INLINE neg() const { + return {vec_neg(_vec0), vec_neg(_vec1)}; + } + + DEFINE_MEMBER_UNARY_OP(operator~, int64_t, vec_not) + DEFINE_MEMBER_OP(operator==, int64_t, vec_cmpeq) + DEFINE_MEMBER_OP(operator!=, int64_t, vec_cmpne) + DEFINE_MEMBER_OP(operator<, int64_t, vec_cmplt) + DEFINE_MEMBER_OP(operator<=, int64_t, vec_cmple) + DEFINE_MEMBER_OP(operator>, int64_t, vec_cmpgt) + DEFINE_MEMBER_OP(operator>=, int64_t, vec_cmpge) + DEFINE_MEMBER_OP_AND_ONE(eq, int64_t, vec_cmpeq) + DEFINE_MEMBER_OP_AND_ONE(ne, int64_t, vec_cmpne) + DEFINE_MEMBER_OP_AND_ONE(lt, int64_t, vec_cmplt) + DEFINE_MEMBER_OP_AND_ONE(le, int64_t, vec_cmple) + DEFINE_MEMBER_OP_AND_ONE(gt, int64_t, vec_cmpgt) + DEFINE_MEMBER_OP_AND_ONE(ge, int64_t, vec_cmpge) + DEFINE_MEMBER_OP(operator+, int64_t, vec_add) + DEFINE_MEMBER_OP(operator-, int64_t, vec_sub) + DEFINE_MEMBER_OP(operator*, int64_t, vec_mul) + DEFINE_MEMBER_OP(operator/, int64_t, vec_div) + DEFINE_MEMBER_OP(maximum, int64_t, vec_max) + DEFINE_MEMBER_OP(minimum, int64_t, vec_min) + DEFINE_MEMBER_OP(operator&, int64_t, vec_and) + DEFINE_MEMBER_OP(operator|, int64_t, vec_or) + DEFINE_MEMBER_OP(operator^, int64_t, vec_xor) +}; + +template <> +Vectorized inline operator<<(const Vectorized& a, const Vectorized& b) { + vuint64 shift_vec0 = reinterpret_cast(b.vec0()); + vuint64 shift_vec1 = reinterpret_cast(b.vec1()) ; + return Vectorized{vec_sl(a.vec0(), shift_vec0), vec_sl(a.vec1(), shift_vec1)}; +} + +template <> +Vectorized inline operator>>(const Vectorized& a, const Vectorized& b) { + vuint64 shift_vec0 = reinterpret_cast(b.vec0()); + vuint64 shift_vec1 = reinterpret_cast(b.vec1()) ; + return Vectorized{vec_sr(a.vec0(), shift_vec0), vec_sr(a.vec1(), shift_vec1)}; +} + +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/69/69f230a0d4240136a66103ef187739f108468965e96894b6aaef18b782ca9650/test_datetime_index.py b/shared/package-files/69/69f230a0d4240136a66103ef187739f108468965e96894b6aaef18b782ca9650/test_datetime_index.py new file mode 100644 index 0000000000000000000000000000000000000000..a9701b7ecd607ad9e25842edd7bd8991f47bda00 --- /dev/null +++ b/shared/package-files/69/69f230a0d4240136a66103ef187739f108468965e96894b6aaef18b782ca9650/test_datetime_index.py @@ -0,0 +1,2225 @@ +from datetime import datetime +from functools import partial + +import numpy as np +import pytest +import pytz + +from pandas._libs import lib +from pandas._typing import DatetimeNaTType +from pandas.compat import is_platform_windows +import pandas.util._test_decorators as td + +import pandas as pd +from pandas import ( + DataFrame, + Index, + Series, + Timedelta, + Timestamp, + isna, + notna, +) +import pandas._testing as tm +from pandas.core.groupby.grouper import Grouper +from pandas.core.indexes.datetimes import date_range +from pandas.core.indexes.period import ( + Period, + period_range, +) +from pandas.core.resample import ( + DatetimeIndex, + _get_timestamp_range_edges, +) + +from pandas.tseries import offsets +from pandas.tseries.offsets import Minute + + +@pytest.fixture() +def _index_factory(): + return date_range + + +@pytest.fixture +def _index_freq(): + return "Min" + + +@pytest.fixture +def _static_values(index): + return np.random.default_rng(2).random(len(index)) + + +@pytest.fixture(params=["s", "ms", "us", "ns"]) +def unit(request): + return request.param + + +@pytest.fixture +def simple_date_range_series(): + """ + Series with date range index and random data for test purposes. + """ + + def _simple_date_range_series(start, end, freq="D"): + rng = date_range(start, end, freq=freq) + return Series(np.random.default_rng(2).standard_normal(len(rng)), index=rng) + + return _simple_date_range_series + + +def test_custom_grouper(index, unit): + dti = index.as_unit(unit) + s = Series(np.array([1] * len(dti)), index=dti, dtype="int64") + + b = Grouper(freq=Minute(5)) + g = s.groupby(b) + + # check all cython functions work + g.ohlc() # doesn't use _cython_agg_general + funcs = ["sum", "mean", "prod", "min", "max", "var"] + for f in funcs: + g._cython_agg_general(f, alt=None, numeric_only=True) + + b = Grouper(freq=Minute(5), closed="right", label="right") + g = s.groupby(b) + # check all cython functions work + g.ohlc() # doesn't use _cython_agg_general + funcs = ["sum", "mean", "prod", "min", "max", "var"] + for f in funcs: + g._cython_agg_general(f, alt=None, numeric_only=True) + + assert g.ngroups == 2593 + assert notna(g.mean()).all() + + # construct expected val + arr = [1] + [5] * 2592 + idx = dti[0:-1:5] + idx = idx.append(dti[-1:]) + idx = DatetimeIndex(idx, freq="5min").as_unit(unit) + expect = Series(arr, index=idx) + + # GH2763 - return input dtype if we can + result = g.agg("sum") + tm.assert_series_equal(result, expect) + + +def test_custom_grouper_df(index, unit): + b = Grouper(freq=Minute(5), closed="right", label="right") + dti = index.as_unit(unit) + df = DataFrame( + np.random.default_rng(2).random((len(dti), 10)), index=dti, dtype="float64" + ) + r = df.groupby(b).agg("sum") + + assert len(r.columns) == 10 + assert len(r.index) == 2593 + + +@pytest.mark.parametrize( + "_index_start,_index_end,_index_name", + [("1/1/2000 00:00:00", "1/1/2000 00:13:00", "index")], +) +@pytest.mark.parametrize( + "closed, expected", + [ + ( + "right", + lambda s: Series( + [s.iloc[0], s[1:6].mean(), s[6:11].mean(), s[11:].mean()], + index=date_range("1/1/2000", periods=4, freq="5min", name="index"), + ), + ), + ( + "left", + lambda s: Series( + [s[:5].mean(), s[5:10].mean(), s[10:].mean()], + index=date_range( + "1/1/2000 00:05", periods=3, freq="5min", name="index" + ), + ), + ), + ], +) +def test_resample_basic(series, closed, expected, unit): + s = series + s.index = s.index.as_unit(unit) + expected = expected(s) + expected.index = expected.index.as_unit(unit) + result = s.resample("5min", closed=closed, label="right").mean() + tm.assert_series_equal(result, expected) + + +def test_resample_integerarray(unit): + # GH 25580, resample on IntegerArray + ts = Series( + range(9), + index=date_range("1/1/2000", periods=9, freq="min").as_unit(unit), + dtype="Int64", + ) + result = ts.resample("3min").sum() + expected = Series( + [3, 12, 21], + index=date_range("1/1/2000", periods=3, freq="3min").as_unit(unit), + dtype="Int64", + ) + tm.assert_series_equal(result, expected) + + result = ts.resample("3min").mean() + expected = Series( + [1, 4, 7], + index=date_range("1/1/2000", periods=3, freq="3min").as_unit(unit), + dtype="Float64", + ) + tm.assert_series_equal(result, expected) + + +def test_resample_basic_grouper(series, unit): + s = series + s.index = s.index.as_unit(unit) + result = s.resample("5Min").last() + grouper = Grouper(freq=Minute(5), closed="left", label="left") + expected = s.groupby(grouper).agg(lambda x: x.iloc[-1]) + tm.assert_series_equal(result, expected) + + +@pytest.mark.parametrize( + "_index_start,_index_end,_index_name", + [("1/1/2000 00:00:00", "1/1/2000 00:13:00", "index")], +) +@pytest.mark.parametrize( + "keyword,value", + [("label", "righttt"), ("closed", "righttt"), ("convention", "starttt")], +) +def test_resample_string_kwargs(series, keyword, value, unit): + # see gh-19303 + # Check that wrong keyword argument strings raise an error + series.index = series.index.as_unit(unit) + msg = f"Unsupported value {value} for `{keyword}`" + with pytest.raises(ValueError, match=msg): + series.resample("5min", **({keyword: value})) + + +@pytest.mark.parametrize( + "_index_start,_index_end,_index_name", + [("1/1/2000 00:00:00", "1/1/2000 00:13:00", "index")], +) +def test_resample_how(series, downsample_method, unit): + if downsample_method == "ohlc": + pytest.skip("covered by test_resample_how_ohlc") + + s = series + s.index = s.index.as_unit(unit) + grouplist = np.ones_like(s) + grouplist[0] = 0 + grouplist[1:6] = 1 + grouplist[6:11] = 2 + grouplist[11:] = 3 + expected = s.groupby(grouplist).agg(downsample_method) + expected.index = date_range( + "1/1/2000", periods=4, freq="5min", name="index" + ).as_unit(unit) + + result = getattr( + s.resample("5min", closed="right", label="right"), downsample_method + )() + tm.assert_series_equal(result, expected) + + +@pytest.mark.parametrize( + "_index_start,_index_end,_index_name", + [("1/1/2000 00:00:00", "1/1/2000 00:13:00", "index")], +) +def test_resample_how_ohlc(series, unit): + s = series + s.index = s.index.as_unit(unit) + grouplist = np.ones_like(s) + grouplist[0] = 0 + grouplist[1:6] = 1 + grouplist[6:11] = 2 + grouplist[11:] = 3 + + def _ohlc(group): + if isna(group).all(): + return np.repeat(np.nan, 4) + return [group.iloc[0], group.max(), group.min(), group.iloc[-1]] + + expected = DataFrame( + s.groupby(grouplist).agg(_ohlc).values.tolist(), + index=date_range("1/1/2000", periods=4, freq="5min", name="index").as_unit( + unit + ), + columns=["open", "high", "low", "close"], + ) + + result = s.resample("5min", closed="right", label="right").ohlc() + tm.assert_frame_equal(result, expected) + + +def test_resample_how_callables(unit): + # GH#7929 + data = np.arange(5, dtype=np.int64) + ind = date_range(start="2014-01-01", periods=len(data), freq="d").as_unit(unit) + df = DataFrame({"A": data, "B": data}, index=ind) + + def fn(x, a=1): + return str(type(x)) + + class FnClass: + def __call__(self, x): + return str(type(x)) + + df_standard = df.resample("ME").apply(fn) + df_lambda = df.resample("ME").apply(lambda x: str(type(x))) + df_partial = df.resample("ME").apply(partial(fn)) + df_partial2 = df.resample("ME").apply(partial(fn, a=2)) + df_class = df.resample("ME").apply(FnClass()) + + tm.assert_frame_equal(df_standard, df_lambda) + tm.assert_frame_equal(df_standard, df_partial) + tm.assert_frame_equal(df_standard, df_partial2) + tm.assert_frame_equal(df_standard, df_class) + + +def test_resample_rounding(unit): + # GH 8371 + # odd results when rounding is needed + + ts = [ + "2014-11-08 00:00:01", + "2014-11-08 00:00:02", + "2014-11-08 00:00:02", + "2014-11-08 00:00:03", + "2014-11-08 00:00:07", + "2014-11-08 00:00:07", + "2014-11-08 00:00:08", + "2014-11-08 00:00:08", + "2014-11-08 00:00:08", + "2014-11-08 00:00:09", + "2014-11-08 00:00:10", + "2014-11-08 00:00:11", + "2014-11-08 00:00:11", + "2014-11-08 00:00:13", + "2014-11-08 00:00:14", + "2014-11-08 00:00:15", + "2014-11-08 00:00:17", + "2014-11-08 00:00:20", + "2014-11-08 00:00:21", + ] + df = DataFrame({"value": [1] * 19}, index=pd.to_datetime(ts)) + df.index = df.index.as_unit(unit) + + result = df.resample("6s").sum() + expected = DataFrame( + {"value": [4, 9, 4, 2]}, + index=date_range("2014-11-08", freq="6s", periods=4).as_unit(unit), + ) + tm.assert_frame_equal(result, expected) + + result = df.resample("7s").sum() + expected = DataFrame( + {"value": [4, 10, 4, 1]}, + index=date_range("2014-11-08", freq="7s", periods=4).as_unit(unit), + ) + tm.assert_frame_equal(result, expected) + + result = df.resample("11s").sum() + expected = DataFrame( + {"value": [11, 8]}, + index=date_range("2014-11-08", freq="11s", periods=2).as_unit(unit), + ) + tm.assert_frame_equal(result, expected) + + result = df.resample("13s").sum() + expected = DataFrame( + {"value": [13, 6]}, + index=date_range("2014-11-08", freq="13s", periods=2).as_unit(unit), + ) + tm.assert_frame_equal(result, expected) + + result = df.resample("17s").sum() + expected = DataFrame( + {"value": [16, 3]}, + index=date_range("2014-11-08", freq="17s", periods=2).as_unit(unit), + ) + tm.assert_frame_equal(result, expected) + + +def test_resample_basic_from_daily(unit): + # from daily + dti = date_range( + start=datetime(2005, 1, 1), end=datetime(2005, 1, 10), freq="D", name="index" + ).as_unit(unit) + + s = Series(np.random.default_rng(2).random(len(dti)), dti) + + # to weekly + result = s.resample("w-sun").last() + + assert len(result) == 3 + assert (result.index.dayofweek == [6, 6, 6]).all() + assert result.iloc[0] == s["1/2/2005"] + assert result.iloc[1] == s["1/9/2005"] + assert result.iloc[2] == s.iloc[-1] + + result = s.resample("W-MON").last() + assert len(result) == 2 + assert (result.index.dayofweek == [0, 0]).all() + assert result.iloc[0] == s["1/3/2005"] + assert result.iloc[1] == s["1/10/2005"] + + result = s.resample("W-TUE").last() + assert len(result) == 2 + assert (result.index.dayofweek == [1, 1]).all() + assert result.iloc[0] == s["1/4/2005"] + assert result.iloc[1] == s["1/10/2005"] + + result = s.resample("W-WED").last() + assert len(result) == 2 + assert (result.index.dayofweek == [2, 2]).all() + assert result.iloc[0] == s["1/5/2005"] + assert result.iloc[1] == s["1/10/2005"] + + result = s.resample("W-THU").last() + assert len(result) == 2 + assert (result.index.dayofweek == [3, 3]).all() + assert result.iloc[0] == s["1/6/2005"] + assert result.iloc[1] == s["1/10/2005"] + + result = s.resample("W-FRI").last() + assert len(result) == 2 + assert (result.index.dayofweek == [4, 4]).all() + assert result.iloc[0] == s["1/7/2005"] + assert result.iloc[1] == s["1/10/2005"] + + # to biz day + result = s.resample("B").last() + assert len(result) == 7 + assert (result.index.dayofweek == [4, 0, 1, 2, 3, 4, 0]).all() + + assert result.iloc[0] == s["1/2/2005"] + assert result.iloc[1] == s["1/3/2005"] + assert result.iloc[5] == s["1/9/2005"] + assert result.index.name == "index" + + +def test_resample_upsampling_picked_but_not_correct(unit): + # Test for issue #3020 + dates = date_range("01-Jan-2014", "05-Jan-2014", freq="D").as_unit(unit) + series = Series(1, index=dates) + + result = series.resample("D").mean() + assert result.index[0] == dates[0] + + # GH 5955 + # incorrect deciding to upsample when the axis frequency matches the + # resample frequency + + s = Series( + np.arange(1.0, 6), index=[datetime(1975, 1, i, 12, 0) for i in range(1, 6)] + ) + s.index = s.index.as_unit(unit) + expected = Series( + np.arange(1.0, 6), + index=date_range("19750101", periods=5, freq="D").as_unit(unit), + ) + + result = s.resample("D").count() + tm.assert_series_equal(result, Series(1, index=expected.index)) + + result1 = s.resample("D").sum() + result2 = s.resample("D").mean() + tm.assert_series_equal(result1, expected) + tm.assert_series_equal(result2, expected) + + +@pytest.mark.parametrize("f", ["sum", "mean", "prod", "min", "max", "var"]) +def test_resample_frame_basic_cy_funcs(f, unit): + df = DataFrame( + np.random.default_rng(2).standard_normal((50, 4)), + columns=Index(list("ABCD"), dtype=object), + index=date_range("2000-01-01", periods=50, freq="B"), + ) + df.index = df.index.as_unit(unit) + + b = Grouper(freq="ME") + g = df.groupby(b) + + # check all cython functions work + g._cython_agg_general(f, alt=None, numeric_only=True) + + +@pytest.mark.parametrize("freq", ["YE", "ME"]) +def test_resample_frame_basic_M_A(freq, unit): + df = DataFrame( + np.random.default_rng(2).standard_normal((50, 4)), + columns=Index(list("ABCD"), dtype=object), + index=date_range("2000-01-01", periods=50, freq="B"), + ) + df.index = df.index.as_unit(unit) + result = df.resample(freq).mean() + tm.assert_series_equal(result["A"], df["A"].resample(freq).mean()) + + +@pytest.mark.parametrize("freq", ["W-WED", "ME"]) +def test_resample_frame_basic_kind(freq, unit): + df = DataFrame( + np.random.default_rng(2).standard_normal((10, 4)), + columns=Index(list("ABCD"), dtype=object), + index=date_range("2000-01-01", periods=10, freq="B"), + ) + df.index = df.index.as_unit(unit) + msg = "The 'kind' keyword in DataFrame.resample is deprecated" + with tm.assert_produces_warning(FutureWarning, match=msg): + df.resample(freq, kind="period").mean() + + +def test_resample_upsample(unit): + # from daily + dti = date_range( + start=datetime(2005, 1, 1), end=datetime(2005, 1, 10), freq="D", name="index" + ).as_unit(unit) + + s = Series(np.random.default_rng(2).random(len(dti)), dti) + + # to minutely, by padding + result = s.resample("Min").ffill() + assert len(result) == 12961 + assert result.iloc[0] == s.iloc[0] + assert result.iloc[-1] == s.iloc[-1] + + assert result.index.name == "index" + + +def test_resample_how_method(unit): + # GH9915 + s = Series( + [11, 22], + index=[ + Timestamp("2015-03-31 21:48:52.672000"), + Timestamp("2015-03-31 21:49:52.739000"), + ], + ) + s.index = s.index.as_unit(unit) + expected = Series( + [11, np.nan, np.nan, np.nan, np.nan, np.nan, 22], + index=DatetimeIndex( + [ + Timestamp("2015-03-31 21:48:50"), + Timestamp("2015-03-31 21:49:00"), + Timestamp("2015-03-31 21:49:10"), + Timestamp("2015-03-31 21:49:20"), + Timestamp("2015-03-31 21:49:30"), + Timestamp("2015-03-31 21:49:40"), + Timestamp("2015-03-31 21:49:50"), + ], + freq="10s", + ), + ) + expected.index = expected.index.as_unit(unit) + tm.assert_series_equal(s.resample("10s").mean(), expected) + + +def test_resample_extra_index_point(unit): + # GH#9756 + index = date_range(start="20150101", end="20150331", freq="BME").as_unit(unit) + expected = DataFrame({"A": Series([21, 41, 63], index=index)}) + + index = date_range(start="20150101", end="20150331", freq="B").as_unit(unit) + df = DataFrame({"A": Series(range(len(index)), index=index)}, dtype="int64") + result = df.resample("BME").last() + tm.assert_frame_equal(result, expected) + + +def test_upsample_with_limit(unit): + rng = date_range("1/1/2000", periods=3, freq="5min").as_unit(unit) + ts = Series(np.random.default_rng(2).standard_normal(len(rng)), rng) + + result = ts.resample("min").ffill(limit=2) + expected = ts.reindex(result.index, method="ffill", limit=2) + tm.assert_series_equal(result, expected) + + +@pytest.mark.parametrize("freq", ["1D", "10h", "5Min", "10s"]) +@pytest.mark.parametrize("rule", ["YE", "3ME", "15D", "30h", "15Min", "30s"]) +def test_nearest_upsample_with_limit(tz_aware_fixture, freq, rule, unit): + # GH 33939 + rng = date_range("1/1/2000", periods=3, freq=freq, tz=tz_aware_fixture).as_unit( + unit + ) + ts = Series(np.random.default_rng(2).standard_normal(len(rng)), rng) + + result = ts.resample(rule).nearest(limit=2) + expected = ts.reindex(result.index, method="nearest", limit=2) + tm.assert_series_equal(result, expected) + + +def test_resample_ohlc(series, unit): + s = series + s.index = s.index.as_unit(unit) + + grouper = Grouper(freq=Minute(5)) + expect = s.groupby(grouper).agg(lambda x: x.iloc[-1]) + result = s.resample("5Min").ohlc() + + assert len(result) == len(expect) + assert len(result.columns) == 4 + + xs = result.iloc[-2] + assert xs["open"] == s.iloc[-6] + assert xs["high"] == s[-6:-1].max() + assert xs["low"] == s[-6:-1].min() + assert xs["close"] == s.iloc[-2] + + xs = result.iloc[0] + assert xs["open"] == s.iloc[0] + assert xs["high"] == s[:5].max() + assert xs["low"] == s[:5].min() + assert xs["close"] == s.iloc[4] + + +def test_resample_ohlc_result(unit): + # GH 12332 + index = date_range("1-1-2000", "2-15-2000", freq="h").as_unit(unit) + index = index.union(date_range("4-15-2000", "5-15-2000", freq="h").as_unit(unit)) + s = Series(range(len(index)), index=index) + + a = s.loc[:"4-15-2000"].resample("30min").ohlc() + assert isinstance(a, DataFrame) + + b = s.loc[:"4-14-2000"].resample("30min").ohlc() + assert isinstance(b, DataFrame) + + +def test_resample_ohlc_result_odd_period(unit): + # GH12348 + # raising on odd period + rng = date_range("2013-12-30", "2014-01-07").as_unit(unit) + index = rng.drop( + [ + Timestamp("2014-01-01"), + Timestamp("2013-12-31"), + Timestamp("2014-01-04"), + Timestamp("2014-01-05"), + ] + ) + df = DataFrame(data=np.arange(len(index)), index=index) + result = df.resample("B").mean() + expected = df.reindex(index=date_range(rng[0], rng[-1], freq="B").as_unit(unit)) + tm.assert_frame_equal(result, expected) + + +def test_resample_ohlc_dataframe(unit): + df = ( + DataFrame( + { + "PRICE": { + Timestamp("2011-01-06 10:59:05", tz=None): 24990, + Timestamp("2011-01-06 12:43:33", tz=None): 25499, + Timestamp("2011-01-06 12:54:09", tz=None): 25499, + }, + "VOLUME": { + Timestamp("2011-01-06 10:59:05", tz=None): 1500000000, + Timestamp("2011-01-06 12:43:33", tz=None): 5000000000, + Timestamp("2011-01-06 12:54:09", tz=None): 100000000, + }, + } + ) + ).reindex(["VOLUME", "PRICE"], axis=1) + df.index = df.index.as_unit(unit) + df.columns.name = "Cols" + res = df.resample("h").ohlc() + exp = pd.concat( + [df["VOLUME"].resample("h").ohlc(), df["PRICE"].resample("h").ohlc()], + axis=1, + keys=df.columns, + ) + assert exp.columns.names[0] == "Cols" + tm.assert_frame_equal(exp, res) + + df.columns = [["a", "b"], ["c", "d"]] + res = df.resample("h").ohlc() + exp.columns = pd.MultiIndex.from_tuples( + [ + ("a", "c", "open"), + ("a", "c", "high"), + ("a", "c", "low"), + ("a", "c", "close"), + ("b", "d", "open"), + ("b", "d", "high"), + ("b", "d", "low"), + ("b", "d", "close"), + ] + ) + tm.assert_frame_equal(exp, res) + + # dupe columns fail atm + # df.columns = ['PRICE', 'PRICE'] + + +def test_resample_dup_index(): + # GH 4812 + # dup columns with resample raising + df = DataFrame( + np.random.default_rng(2).standard_normal((4, 12)), + index=[2000, 2000, 2000, 2000], + columns=[Period(year=2000, month=i + 1, freq="M") for i in range(12)], + ) + df.iloc[3, :] = np.nan + warning_msg = "DataFrame.resample with axis=1 is deprecated." + with tm.assert_produces_warning(FutureWarning, match=warning_msg): + result = df.resample("QE", axis=1).mean() + + msg = "DataFrame.groupby with axis=1 is deprecated" + with tm.assert_produces_warning(FutureWarning, match=msg): + expected = df.groupby(lambda x: int((x.month - 1) / 3), axis=1).mean() + expected.columns = [Period(year=2000, quarter=i + 1, freq="Q") for i in range(4)] + tm.assert_frame_equal(result, expected) + + +def test_resample_reresample(unit): + dti = date_range( + start=datetime(2005, 1, 1), end=datetime(2005, 1, 10), freq="D" + ).as_unit(unit) + s = Series(np.random.default_rng(2).random(len(dti)), dti) + bs = s.resample("B", closed="right", label="right").mean() + result = bs.resample("8h").mean() + assert len(result) == 25 + assert isinstance(result.index.freq, offsets.DateOffset) + assert result.index.freq == offsets.Hour(8) + + +@pytest.mark.parametrize( + "freq, expected_kwargs", + [ + ["YE-DEC", {"start": "1990", "end": "2000", "freq": "Y-DEC"}], + ["YE-JUN", {"start": "1990", "end": "2000", "freq": "Y-JUN"}], + ["ME", {"start": "1990-01", "end": "2000-01", "freq": "M"}], + ], +) +def test_resample_timestamp_to_period( + simple_date_range_series, freq, expected_kwargs, unit +): + ts = simple_date_range_series("1/1/1990", "1/1/2000") + ts.index = ts.index.as_unit(unit) + + msg = "The 'kind' keyword in Series.resample is deprecated" + with tm.assert_produces_warning(FutureWarning, match=msg): + result = ts.resample(freq, kind="period").mean() + expected = ts.resample(freq).mean() + expected.index = period_range(**expected_kwargs) + tm.assert_series_equal(result, expected) + + +def test_ohlc_5min(unit): + def _ohlc(group): + if isna(group).all(): + return np.repeat(np.nan, 4) + return [group.iloc[0], group.max(), group.min(), group.iloc[-1]] + + rng = date_range("1/1/2000 00:00:00", "1/1/2000 5:59:50", freq="10s").as_unit(unit) + ts = Series(np.random.default_rng(2).standard_normal(len(rng)), index=rng) + + resampled = ts.resample("5min", closed="right", label="right").ohlc() + + assert (resampled.loc["1/1/2000 00:00"] == ts.iloc[0]).all() + + exp = _ohlc(ts[1:31]) + assert (resampled.loc["1/1/2000 00:05"] == exp).all() + + exp = _ohlc(ts["1/1/2000 5:55:01":]) + assert (resampled.loc["1/1/2000 6:00:00"] == exp).all() + + +def test_downsample_non_unique(unit): + rng = date_range("1/1/2000", "2/29/2000").as_unit(unit) + rng2 = rng.repeat(5).values + ts = Series(np.random.default_rng(2).standard_normal(len(rng2)), index=rng2) + + result = ts.resample("ME").mean() + + expected = ts.groupby(lambda x: x.month).mean() + assert len(result) == 2 + tm.assert_almost_equal(result.iloc[0], expected[1]) + tm.assert_almost_equal(result.iloc[1], expected[2]) + + +def test_asfreq_non_unique(unit): + # GH #1077 + rng = date_range("1/1/2000", "2/29/2000").as_unit(unit) + rng2 = rng.repeat(2).values + ts = Series(np.random.default_rng(2).standard_normal(len(rng2)), index=rng2) + + msg = "cannot reindex on an axis with duplicate labels" + with pytest.raises(ValueError, match=msg): + ts.asfreq("B") + + +def test_resample_axis1(unit): + rng = date_range("1/1/2000", "2/29/2000").as_unit(unit) + df = DataFrame( + np.random.default_rng(2).standard_normal((3, len(rng))), + columns=rng, + index=["a", "b", "c"], + ) + + warning_msg = "DataFrame.resample with axis=1 is deprecated." + with tm.assert_produces_warning(FutureWarning, match=warning_msg): + result = df.resample("ME", axis=1).mean() + expected = df.T.resample("ME").mean().T + tm.assert_frame_equal(result, expected) + + +@pytest.mark.parametrize("freq", ["min", "5min", "15min", "30min", "4h", "12h"]) +def test_resample_anchored_ticks(freq, unit): + # If a fixed delta (5 minute, 4 hour) evenly divides a day, we should + # "anchor" the origin at midnight so we get regular intervals rather + # than starting from the first timestamp which might start in the + # middle of a desired interval + + rng = date_range("1/1/2000 04:00:00", periods=86400, freq="s").as_unit(unit) + ts = Series(np.random.default_rng(2).standard_normal(len(rng)), index=rng) + ts[:2] = np.nan # so results are the same + result = ts[2:].resample(freq, closed="left", label="left").mean() + expected = ts.resample(freq, closed="left", label="left").mean() + tm.assert_series_equal(result, expected) + + +@pytest.mark.parametrize("end", [1, 2]) +def test_resample_single_group(end, unit): + mysum = lambda x: x.sum() + + rng = date_range("2000-1-1", f"2000-{end}-10", freq="D").as_unit(unit) + ts = Series(np.random.default_rng(2).standard_normal(len(rng)), index=rng) + tm.assert_series_equal(ts.resample("ME").sum(), ts.resample("ME").apply(mysum)) + + +def test_resample_single_group_std(unit): + # GH 3849 + s = Series( + [30.1, 31.6], + index=[Timestamp("20070915 15:30:00"), Timestamp("20070915 15:40:00")], + ) + s.index = s.index.as_unit(unit) + expected = Series( + [0.75], index=DatetimeIndex([Timestamp("20070915")], freq="D").as_unit(unit) + ) + result = s.resample("D").apply(lambda x: np.std(x)) + tm.assert_series_equal(result, expected) + + +def test_resample_offset(unit): + # GH 31809 + + rng = date_range("1/1/2000 00:00:00", "1/1/2000 02:00", freq="s").as_unit(unit) + ts = Series(np.random.default_rng(2).standard_normal(len(rng)), index=rng) + + resampled = ts.resample("5min", offset="2min").mean() + exp_rng = date_range("12/31/1999 23:57:00", "1/1/2000 01:57", freq="5min").as_unit( + unit + ) + tm.assert_index_equal(resampled.index, exp_rng) + + +@pytest.mark.parametrize( + "kwargs", + [ + {"origin": "1999-12-31 23:57:00"}, + {"origin": Timestamp("1970-01-01 00:02:00")}, + {"origin": "epoch", "offset": "2m"}, + # origin of '1999-31-12 12:02:00' should be equivalent for this case + {"origin": "1999-12-31 12:02:00"}, + {"offset": "-3m"}, + ], +) +def test_resample_origin(kwargs, unit): + # GH 31809 + rng = date_range("2000-01-01 00:00:00", "2000-01-01 02:00", freq="s").as_unit(unit) + ts = Series(np.random.default_rng(2).standard_normal(len(rng)), index=rng) + + exp_rng = date_range( + "1999-12-31 23:57:00", "2000-01-01 01:57", freq="5min" + ).as_unit(unit) + + resampled = ts.resample("5min", **kwargs).mean() + tm.assert_index_equal(resampled.index, exp_rng) + + +@pytest.mark.parametrize( + "origin", ["invalid_value", "epch", "startday", "startt", "2000-30-30", object()] +) +def test_resample_bad_origin(origin, unit): + rng = date_range("2000-01-01 00:00:00", "2000-01-01 02:00", freq="s").as_unit(unit) + ts = Series(np.random.default_rng(2).standard_normal(len(rng)), index=rng) + msg = ( + "'origin' should be equal to 'epoch', 'start', 'start_day', " + "'end', 'end_day' or should be a Timestamp convertible type. Got " + f"'{origin}' instead." + ) + with pytest.raises(ValueError, match=msg): + ts.resample("5min", origin=origin) + + +@pytest.mark.parametrize("offset", ["invalid_value", "12dayys", "2000-30-30", object()]) +def test_resample_bad_offset(offset, unit): + rng = date_range("2000-01-01 00:00:00", "2000-01-01 02:00", freq="s").as_unit(unit) + ts = Series(np.random.default_rng(2).standard_normal(len(rng)), index=rng) + msg = f"'offset' should be a Timedelta convertible type. Got '{offset}' instead." + with pytest.raises(ValueError, match=msg): + ts.resample("5min", offset=offset) + + +def test_resample_origin_prime_freq(unit): + # GH 31809 + start, end = "2000-10-01 23:30:00", "2000-10-02 00:30:00" + rng = date_range(start, end, freq="7min").as_unit(unit) + ts = Series(np.random.default_rng(2).standard_normal(len(rng)), index=rng) + + exp_rng = date_range( + "2000-10-01 23:14:00", "2000-10-02 00:22:00", freq="17min" + ).as_unit(unit) + resampled = ts.resample("17min").mean() + tm.assert_index_equal(resampled.index, exp_rng) + resampled = ts.resample("17min", origin="start_day").mean() + tm.assert_index_equal(resampled.index, exp_rng) + + exp_rng = date_range( + "2000-10-01 23:30:00", "2000-10-02 00:21:00", freq="17min" + ).as_unit(unit) + resampled = ts.resample("17min", origin="start").mean() + tm.assert_index_equal(resampled.index, exp_rng) + resampled = ts.resample("17min", offset="23h30min").mean() + tm.assert_index_equal(resampled.index, exp_rng) + resampled = ts.resample("17min", origin="start_day", offset="23h30min").mean() + tm.assert_index_equal(resampled.index, exp_rng) + + exp_rng = date_range( + "2000-10-01 23:18:00", "2000-10-02 00:26:00", freq="17min" + ).as_unit(unit) + resampled = ts.resample("17min", origin="epoch").mean() + tm.assert_index_equal(resampled.index, exp_rng) + + exp_rng = date_range( + "2000-10-01 23:24:00", "2000-10-02 00:15:00", freq="17min" + ).as_unit(unit) + resampled = ts.resample("17min", origin="2000-01-01").mean() + tm.assert_index_equal(resampled.index, exp_rng) + + +def test_resample_origin_with_tz(unit): + # GH 31809 + msg = "The origin must have the same timezone as the index." + + tz = "Europe/Paris" + rng = date_range( + "2000-01-01 00:00:00", "2000-01-01 02:00", freq="s", tz=tz + ).as_unit(unit) + ts = Series(np.random.default_rng(2).standard_normal(len(rng)), index=rng) + + exp_rng = date_range( + "1999-12-31 23:57:00", "2000-01-01 01:57", freq="5min", tz=tz + ).as_unit(unit) + resampled = ts.resample("5min", origin="1999-12-31 23:57:00+00:00").mean() + tm.assert_index_equal(resampled.index, exp_rng) + + # origin of '1999-31-12 12:02:00+03:00' should be equivalent for this case + resampled = ts.resample("5min", origin="1999-12-31 12:02:00+03:00").mean() + tm.assert_index_equal(resampled.index, exp_rng) + + resampled = ts.resample("5min", origin="epoch", offset="2m").mean() + tm.assert_index_equal(resampled.index, exp_rng) + + with pytest.raises(ValueError, match=msg): + ts.resample("5min", origin="12/31/1999 23:57:00").mean() + + # if the series is not tz aware, origin should not be tz aware + rng = date_range("2000-01-01 00:00:00", "2000-01-01 02:00", freq="s").as_unit(unit) + ts = Series(np.random.default_rng(2).standard_normal(len(rng)), index=rng) + with pytest.raises(ValueError, match=msg): + ts.resample("5min", origin="12/31/1999 23:57:00+03:00").mean() + + +def test_resample_origin_epoch_with_tz_day_vs_24h(unit): + # GH 34474 + start, end = "2000-10-01 23:30:00+0500", "2000-12-02 00:30:00+0500" + rng = date_range(start, end, freq="7min").as_unit(unit) + random_values = np.random.default_rng(2).standard_normal(len(rng)) + ts_1 = Series(random_values, index=rng) + + result_1 = ts_1.resample("D", origin="epoch").mean() + result_2 = ts_1.resample("24h", origin="epoch").mean() + tm.assert_series_equal(result_1, result_2) + + # check that we have the same behavior with epoch even if we are not timezone aware + ts_no_tz = ts_1.tz_localize(None) + result_3 = ts_no_tz.resample("D", origin="epoch").mean() + result_4 = ts_no_tz.resample("24h", origin="epoch").mean() + tm.assert_series_equal(result_1, result_3.tz_localize(rng.tz), check_freq=False) + tm.assert_series_equal(result_1, result_4.tz_localize(rng.tz), check_freq=False) + + # check that we have the similar results with two different timezones (+2H and +5H) + start, end = "2000-10-01 23:30:00+0200", "2000-12-02 00:30:00+0200" + rng = date_range(start, end, freq="7min").as_unit(unit) + ts_2 = Series(random_values, index=rng) + result_5 = ts_2.resample("D", origin="epoch").mean() + result_6 = ts_2.resample("24h", origin="epoch").mean() + tm.assert_series_equal(result_1.tz_localize(None), result_5.tz_localize(None)) + tm.assert_series_equal(result_1.tz_localize(None), result_6.tz_localize(None)) + + +def test_resample_origin_with_day_freq_on_dst(unit): + # GH 31809 + tz = "America/Chicago" + + def _create_series(values, timestamps, freq="D"): + return Series( + values, + index=DatetimeIndex( + [Timestamp(t, tz=tz) for t in timestamps], freq=freq, ambiguous=True + ).as_unit(unit), + ) + + # test classical behavior of origin in a DST context + start = Timestamp("2013-11-02", tz=tz) + end = Timestamp("2013-11-03 23:59", tz=tz) + rng = date_range(start, end, freq="1h").as_unit(unit) + ts = Series(np.ones(len(rng)), index=rng) + + expected = _create_series([24.0, 25.0], ["2013-11-02", "2013-11-03"]) + for origin in ["epoch", "start", "start_day", start, None]: + result = ts.resample("D", origin=origin).sum() + tm.assert_series_equal(result, expected) + + # test complex behavior of origin/offset in a DST context + start = Timestamp("2013-11-03", tz=tz) + end = Timestamp("2013-11-03 23:59", tz=tz) + rng = date_range(start, end, freq="1h").as_unit(unit) + ts = Series(np.ones(len(rng)), index=rng) + + expected_ts = ["2013-11-02 22:00-05:00", "2013-11-03 22:00-06:00"] + expected = _create_series([23.0, 2.0], expected_ts) + result = ts.resample("D", origin="start", offset="-2h").sum() + tm.assert_series_equal(result, expected) + + expected_ts = ["2013-11-02 22:00-05:00", "2013-11-03 21:00-06:00"] + expected = _create_series([22.0, 3.0], expected_ts, freq="24h") + result = ts.resample("24h", origin="start", offset="-2h").sum() + tm.assert_series_equal(result, expected) + + expected_ts = ["2013-11-02 02:00-05:00", "2013-11-03 02:00-06:00"] + expected = _create_series([3.0, 22.0], expected_ts) + result = ts.resample("D", origin="start", offset="2h").sum() + tm.assert_series_equal(result, expected) + + expected_ts = ["2013-11-02 23:00-05:00", "2013-11-03 23:00-06:00"] + expected = _create_series([24.0, 1.0], expected_ts) + result = ts.resample("D", origin="start", offset="-1h").sum() + tm.assert_series_equal(result, expected) + + expected_ts = ["2013-11-02 01:00-05:00", "2013-11-03 01:00:00-0500"] + expected = _create_series([1.0, 24.0], expected_ts) + result = ts.resample("D", origin="start", offset="1h").sum() + tm.assert_series_equal(result, expected) + + +def test_resample_daily_anchored(unit): + rng = date_range("1/1/2000 0:00:00", periods=10000, freq="min").as_unit(unit) + ts = Series(np.random.default_rng(2).standard_normal(len(rng)), index=rng) + ts[:2] = np.nan # so results are the same + + result = ts[2:].resample("D", closed="left", label="left").mean() + expected = ts.resample("D", closed="left", label="left").mean() + tm.assert_series_equal(result, expected) + + +def test_resample_to_period_monthly_buglet(unit): + # GH #1259 + + rng = date_range("1/1/2000", "12/31/2000").as_unit(unit) + ts = Series(np.random.default_rng(2).standard_normal(len(rng)), index=rng) + + msg = "The 'kind' keyword in Series.resample is deprecated" + with tm.assert_produces_warning(FutureWarning, match=msg): + result = ts.resample("ME", kind="period").mean() + exp_index = period_range("Jan-2000", "Dec-2000", freq="M") + tm.assert_index_equal(result.index, exp_index) + + +def test_period_with_agg(): + # aggregate a period resampler with a lambda + s2 = Series( + np.random.default_rng(2).integers(0, 5, 50), + index=period_range("2012-01-01", freq="h", periods=50), + dtype="float64", + ) + + expected = s2.to_timestamp().resample("D").mean().to_period() + result = s2.resample("D").agg(lambda x: x.mean()) + tm.assert_series_equal(result, expected) + + +def test_resample_segfault(unit): + # GH 8573 + # segfaulting in older versions + all_wins_and_wagers = [ + (1, datetime(2013, 10, 1, 16, 20), 1, 0), + (2, datetime(2013, 10, 1, 16, 10), 1, 0), + (2, datetime(2013, 10, 1, 18, 15), 1, 0), + (2, datetime(2013, 10, 1, 16, 10, 31), 1, 0), + ] + + df = DataFrame.from_records( + all_wins_and_wagers, columns=("ID", "timestamp", "A", "B") + ).set_index("timestamp") + df.index = df.index.as_unit(unit) + msg = "DataFrameGroupBy.resample operated on the grouping columns" + with tm.assert_produces_warning(FutureWarning, match=msg): + result = df.groupby("ID").resample("5min").sum() + msg = "DataFrameGroupBy.apply operated on the grouping columns" + with tm.assert_produces_warning(FutureWarning, match=msg): + expected = df.groupby("ID").apply(lambda x: x.resample("5min").sum()) + tm.assert_frame_equal(result, expected) + + +def test_resample_dtype_preservation(unit): + # GH 12202 + # validation tests for dtype preservation + + df = DataFrame( + { + "date": date_range(start="2016-01-01", periods=4, freq="W").as_unit(unit), + "group": [1, 1, 2, 2], + "val": Series([5, 6, 7, 8], dtype="int32"), + } + ).set_index("date") + + result = df.resample("1D").ffill() + assert result.val.dtype == np.int32 + + msg = "DataFrameGroupBy.resample operated on the grouping columns" + with tm.assert_produces_warning(FutureWarning, match=msg): + result = df.groupby("group").resample("1D").ffill() + assert result.val.dtype == np.int32 + + +def test_resample_dtype_coercion(unit): + pytest.importorskip("scipy.interpolate") + + # GH 16361 + df = {"a": [1, 3, 1, 4]} + df = DataFrame(df, index=date_range("2017-01-01", "2017-01-04").as_unit(unit)) + + expected = df.astype("float64").resample("h").mean()["a"].interpolate("cubic") + + result = df.resample("h")["a"].mean().interpolate("cubic") + tm.assert_series_equal(result, expected) + + result = df.resample("h").mean()["a"].interpolate("cubic") + tm.assert_series_equal(result, expected) + + +def test_weekly_resample_buglet(unit): + # #1327 + rng = date_range("1/1/2000", freq="B", periods=20).as_unit(unit) + ts = Series(np.random.default_rng(2).standard_normal(len(rng)), index=rng) + + resampled = ts.resample("W").mean() + expected = ts.resample("W-SUN").mean() + tm.assert_series_equal(resampled, expected) + + +def test_monthly_resample_error(unit): + # #1451 + dates = date_range("4/16/2012 20:00", periods=5000, freq="h").as_unit(unit) + ts = Series(np.random.default_rng(2).standard_normal(len(dates)), index=dates) + # it works! + ts.resample("ME") + + +def test_nanosecond_resample_error(): + # GH 12307 - Values falls after last bin when + # Resampling using pd.tseries.offsets.Nano as period + start = 1443707890427 + exp_start = 1443707890400 + indx = date_range(start=pd.to_datetime(start), periods=10, freq="100ns") + ts = Series(range(len(indx)), index=indx) + r = ts.resample(pd.tseries.offsets.Nano(100)) + result = r.agg("mean") + + exp_indx = date_range(start=pd.to_datetime(exp_start), periods=10, freq="100ns") + exp = Series(range(len(exp_indx)), index=exp_indx, dtype=float) + + tm.assert_series_equal(result, exp) + + +def test_resample_anchored_intraday(unit): + # #1471, #1458 + + rng = date_range("1/1/2012", "4/1/2012", freq="100min").as_unit(unit) + df = DataFrame(rng.month, index=rng) + + result = df.resample("ME").mean() + msg = "The 'kind' keyword in DataFrame.resample is deprecated" + with tm.assert_produces_warning(FutureWarning, match=msg): + expected = df.resample("ME", kind="period").mean().to_timestamp(how="end") + expected.index += Timedelta(1, "ns") - Timedelta(1, "D") + expected.index = expected.index.as_unit(unit)._with_freq("infer") + assert expected.index.freq == "ME" + tm.assert_frame_equal(result, expected) + + result = df.resample("ME", closed="left").mean() + msg = "The 'kind' keyword in DataFrame.resample is deprecated" + with tm.assert_produces_warning(FutureWarning, match=msg): + exp = df.shift(1, freq="D").resample("ME", kind="period").mean() + exp = exp.to_timestamp(how="end") + + exp.index = exp.index + Timedelta(1, "ns") - Timedelta(1, "D") + exp.index = exp.index.as_unit(unit)._with_freq("infer") + assert exp.index.freq == "ME" + tm.assert_frame_equal(result, exp) + + +def test_resample_anchored_intraday2(unit): + rng = date_range("1/1/2012", "4/1/2012", freq="100min").as_unit(unit) + df = DataFrame(rng.month, index=rng) + + result = df.resample("QE").mean() + msg = "The 'kind' keyword in DataFrame.resample is deprecated" + with tm.assert_produces_warning(FutureWarning, match=msg): + expected = df.resample("QE", kind="period").mean().to_timestamp(how="end") + expected.index += Timedelta(1, "ns") - Timedelta(1, "D") + expected.index._data.freq = "QE" + expected.index._freq = lib.no_default + expected.index = expected.index.as_unit(unit) + tm.assert_frame_equal(result, expected) + + result = df.resample("QE", closed="left").mean() + msg = "The 'kind' keyword in DataFrame.resample is deprecated" + with tm.assert_produces_warning(FutureWarning, match=msg): + expected = ( + df.shift(1, freq="D").resample("QE", kind="period", closed="left").mean() + ) + expected = expected.to_timestamp(how="end") + expected.index += Timedelta(1, "ns") - Timedelta(1, "D") + expected.index._data.freq = "QE" + expected.index._freq = lib.no_default + expected.index = expected.index.as_unit(unit) + tm.assert_frame_equal(result, expected) + + +def test_resample_anchored_intraday3(simple_date_range_series, unit): + ts = simple_date_range_series("2012-04-29 23:00", "2012-04-30 5:00", freq="h") + ts.index = ts.index.as_unit(unit) + resampled = ts.resample("ME").mean() + assert len(resampled) == 1 + + +@pytest.mark.parametrize("freq", ["MS", "BMS", "QS-MAR", "YS-DEC", "YS-JUN"]) +def test_resample_anchored_monthstart(simple_date_range_series, freq, unit): + ts = simple_date_range_series("1/1/2000", "12/31/2002") + ts.index = ts.index.as_unit(unit) + ts.resample(freq).mean() + + +@pytest.mark.parametrize("label, sec", [[None, 2.0], ["right", "4.2"]]) +def test_resample_anchored_multiday(label, sec): + # When resampling a range spanning multiple days, ensure that the + # start date gets used to determine the offset. Fixes issue where + # a one day period is not a multiple of the frequency. + # + # See: https://github.com/pandas-dev/pandas/issues/8683 + + index1 = date_range("2014-10-14 23:06:23.206", periods=3, freq="400ms") + index2 = date_range("2014-10-15 23:00:00", periods=2, freq="2200ms") + index = index1.union(index2) + + s = Series(np.random.default_rng(2).standard_normal(5), index=index) + + # Ensure left closing works + result = s.resample("2200ms", label=label).mean() + assert result.index[-1] == Timestamp(f"2014-10-15 23:00:{sec}00") + + +def test_corner_cases(unit): + # miscellaneous test coverage + + rng = date_range("1/1/2000", periods=12, freq="min").as_unit(unit) + ts = Series(np.random.default_rng(2).standard_normal(len(rng)), index=rng) + + result = ts.resample("5min", closed="right", label="left").mean() + ex_index = date_range("1999-12-31 23:55", periods=4, freq="5min").as_unit(unit) + tm.assert_index_equal(result.index, ex_index) + + +def test_corner_cases_date(simple_date_range_series, unit): + # resample to periods + ts = simple_date_range_series("2000-04-28", "2000-04-30 11:00", freq="h") + ts.index = ts.index.as_unit(unit) + msg = "The 'kind' keyword in Series.resample is deprecated" + with tm.assert_produces_warning(FutureWarning, match=msg): + result = ts.resample("ME", kind="period").mean() + assert len(result) == 1 + assert result.index[0] == Period("2000-04", freq="M") + + +def test_anchored_lowercase_buglet(unit): + dates = date_range("4/16/2012 20:00", periods=50000, freq="s").as_unit(unit) + ts = Series(np.random.default_rng(2).standard_normal(len(dates)), index=dates) + # it works! + ts.resample("d").mean() + + +def test_upsample_apply_functions(unit): + # #1596 + rng = date_range("2012-06-12", periods=4, freq="h").as_unit(unit) + + ts = Series(np.random.default_rng(2).standard_normal(len(rng)), index=rng) + + result = ts.resample("20min").aggregate(["mean", "sum"]) + assert isinstance(result, DataFrame) + + +def test_resample_not_monotonic(unit): + rng = date_range("2012-06-12", periods=200, freq="h").as_unit(unit) + ts = Series(np.random.default_rng(2).standard_normal(len(rng)), index=rng) + + ts = ts.take(np.random.default_rng(2).permutation(len(ts))) + + result = ts.resample("D").sum() + exp = ts.sort_index().resample("D").sum() + tm.assert_series_equal(result, exp) + + +@pytest.mark.parametrize( + "dtype", + [ + "int64", + "int32", + "float64", + pytest.param( + "float32", + marks=pytest.mark.xfail( + reason="Empty groups cause x.mean() to return float64" + ), + ), + ], +) +def test_resample_median_bug_1688(dtype, unit): + # GH#55958 + dti = DatetimeIndex( + [datetime(2012, 1, 1, 0, 0, 0), datetime(2012, 1, 1, 0, 5, 0)] + ).as_unit(unit) + df = DataFrame( + [1, 2], + index=dti, + dtype=dtype, + ) + + result = df.resample("min").apply(lambda x: x.mean()) + exp = df.asfreq("min") + tm.assert_frame_equal(result, exp) + + result = df.resample("min").median() + exp = df.asfreq("min") + tm.assert_frame_equal(result, exp) + + +def test_how_lambda_functions(simple_date_range_series, unit): + ts = simple_date_range_series("1/1/2000", "4/1/2000") + ts.index = ts.index.as_unit(unit) + + result = ts.resample("ME").apply(lambda x: x.mean()) + exp = ts.resample("ME").mean() + tm.assert_series_equal(result, exp) + + foo_exp = ts.resample("ME").mean() + foo_exp.name = "foo" + bar_exp = ts.resample("ME").std() + bar_exp.name = "bar" + + result = ts.resample("ME").apply([lambda x: x.mean(), lambda x: x.std(ddof=1)]) + result.columns = ["foo", "bar"] + tm.assert_series_equal(result["foo"], foo_exp) + tm.assert_series_equal(result["bar"], bar_exp) + + # this is a MI Series, so comparing the names of the results + # doesn't make sense + result = ts.resample("ME").aggregate( + {"foo": lambda x: x.mean(), "bar": lambda x: x.std(ddof=1)} + ) + tm.assert_series_equal(result["foo"], foo_exp, check_names=False) + tm.assert_series_equal(result["bar"], bar_exp, check_names=False) + + +def test_resample_unequal_times(unit): + # #1772 + start = datetime(1999, 3, 1, 5) + # end hour is less than start + end = datetime(2012, 7, 31, 4) + bad_ind = date_range(start, end, freq="30min").as_unit(unit) + df = DataFrame({"close": 1}, index=bad_ind) + + # it works! + df.resample("YS").sum() + + +def test_resample_consistency(unit): + # GH 6418 + # resample with bfill / limit / reindex consistency + + i30 = date_range("2002-02-02", periods=4, freq="30min").as_unit(unit) + s = Series(np.arange(4.0), index=i30) + s.iloc[2] = np.nan + + # Upsample by factor 3 with reindex() and resample() methods: + i10 = date_range(i30[0], i30[-1], freq="10min").as_unit(unit) + + s10 = s.reindex(index=i10, method="bfill") + s10_2 = s.reindex(index=i10, method="bfill", limit=2) + rl = s.reindex_like(s10, method="bfill", limit=2) + r10_2 = s.resample("10Min").bfill(limit=2) + r10 = s.resample("10Min").bfill() + + # s10_2, r10, r10_2, rl should all be equal + tm.assert_series_equal(s10_2, r10) + tm.assert_series_equal(s10_2, r10_2) + tm.assert_series_equal(s10_2, rl) + + +dates1: list[DatetimeNaTType] = [ + datetime(2014, 10, 1), + datetime(2014, 9, 3), + datetime(2014, 11, 5), + datetime(2014, 9, 5), + datetime(2014, 10, 8), + datetime(2014, 7, 15), +] + +dates2: list[DatetimeNaTType] = ( + dates1[:2] + [pd.NaT] + dates1[2:4] + [pd.NaT] + dates1[4:] +) +dates3 = [pd.NaT] + dates1 + [pd.NaT] + + +@pytest.mark.parametrize("dates", [dates1, dates2, dates3]) +def test_resample_timegrouper(dates, unit): + # GH 7227 + dates = DatetimeIndex(dates).as_unit(unit) + df = DataFrame({"A": dates, "B": np.arange(len(dates))}) + result = df.set_index("A").resample("ME").count() + exp_idx = DatetimeIndex( + ["2014-07-31", "2014-08-31", "2014-09-30", "2014-10-31", "2014-11-30"], + freq="ME", + name="A", + ).as_unit(unit) + expected = DataFrame({"B": [1, 0, 2, 2, 1]}, index=exp_idx) + if df["A"].isna().any(): + expected.index = expected.index._with_freq(None) + tm.assert_frame_equal(result, expected) + + result = df.groupby(Grouper(freq="ME", key="A")).count() + tm.assert_frame_equal(result, expected) + + +@pytest.mark.parametrize("dates", [dates1, dates2, dates3]) +def test_resample_timegrouper2(dates, unit): + dates = DatetimeIndex(dates).as_unit(unit) + + df = DataFrame({"A": dates, "B": np.arange(len(dates)), "C": np.arange(len(dates))}) + result = df.set_index("A").resample("ME").count() + + exp_idx = DatetimeIndex( + ["2014-07-31", "2014-08-31", "2014-09-30", "2014-10-31", "2014-11-30"], + freq="ME", + name="A", + ).as_unit(unit) + expected = DataFrame( + {"B": [1, 0, 2, 2, 1], "C": [1, 0, 2, 2, 1]}, + index=exp_idx, + columns=["B", "C"], + ) + if df["A"].isna().any(): + expected.index = expected.index._with_freq(None) + tm.assert_frame_equal(result, expected) + + result = df.groupby(Grouper(freq="ME", key="A")).count() + tm.assert_frame_equal(result, expected) + + +def test_resample_nunique(unit): + # GH 12352 + df = DataFrame( + { + "ID": { + Timestamp("2015-06-05 00:00:00"): "0010100903", + Timestamp("2015-06-08 00:00:00"): "0010150847", + }, + "DATE": { + Timestamp("2015-06-05 00:00:00"): "2015-06-05", + Timestamp("2015-06-08 00:00:00"): "2015-06-08", + }, + } + ) + df.index = df.index.as_unit(unit) + r = df.resample("D") + g = df.groupby(Grouper(freq="D")) + expected = df.groupby(Grouper(freq="D")).ID.apply(lambda x: x.nunique()) + assert expected.name == "ID" + + for t in [r, g]: + result = t.ID.nunique() + tm.assert_series_equal(result, expected) + + result = df.ID.resample("D").nunique() + tm.assert_series_equal(result, expected) + + result = df.ID.groupby(Grouper(freq="D")).nunique() + tm.assert_series_equal(result, expected) + + +def test_resample_nunique_preserves_column_level_names(unit): + # see gh-23222 + df = DataFrame( + np.random.default_rng(2).standard_normal((5, 4)), + columns=Index(list("ABCD"), dtype=object), + index=date_range("2000-01-01", periods=5, freq="D"), + ).abs() + df.index = df.index.as_unit(unit) + df.columns = pd.MultiIndex.from_arrays( + [df.columns.tolist()] * 2, names=["lev0", "lev1"] + ) + result = df.resample("1h").nunique() + tm.assert_index_equal(df.columns, result.columns) + + +@pytest.mark.parametrize( + "func", + [ + lambda x: x.nunique(), + lambda x: x.agg(Series.nunique), + lambda x: x.agg("nunique"), + ], + ids=["nunique", "series_nunique", "nunique_str"], +) +def test_resample_nunique_with_date_gap(func, unit): + # GH 13453 + # Since all elements are unique, these should all be the same + index = date_range("1-1-2000", "2-15-2000", freq="h").as_unit(unit) + index2 = date_range("4-15-2000", "5-15-2000", freq="h").as_unit(unit) + index3 = index.append(index2) + s = Series(range(len(index3)), index=index3, dtype="int64") + r = s.resample("ME") + result = r.count() + expected = func(r) + tm.assert_series_equal(result, expected) + + +@pytest.mark.parametrize("n", [10000, 100000]) +@pytest.mark.parametrize("k", [10, 100, 1000]) +def test_resample_group_info(n, k, unit): + # GH10914 + + # use a fixed seed to always have the same uniques + prng = np.random.default_rng(2) + + dr = date_range(start="2015-08-27", periods=n // 10, freq="min").as_unit(unit) + ts = Series(prng.integers(0, n // k, n).astype("int64"), index=prng.choice(dr, n)) + + left = ts.resample("30min").nunique() + ix = date_range(start=ts.index.min(), end=ts.index.max(), freq="30min").as_unit( + unit + ) + + vals = ts.values + bins = np.searchsorted(ix.values, ts.index, side="right") + + sorter = np.lexsort((vals, bins)) + vals, bins = vals[sorter], bins[sorter] + + mask = np.r_[True, vals[1:] != vals[:-1]] + mask |= np.r_[True, bins[1:] != bins[:-1]] + + arr = np.bincount(bins[mask] - 1, minlength=len(ix)).astype("int64", copy=False) + right = Series(arr, index=ix) + + tm.assert_series_equal(left, right) + + +def test_resample_size(unit): + n = 10000 + dr = date_range("2015-09-19", periods=n, freq="min").as_unit(unit) + ts = Series( + np.random.default_rng(2).standard_normal(n), + index=np.random.default_rng(2).choice(dr, n), + ) + + left = ts.resample("7min").size() + ix = date_range(start=left.index.min(), end=ts.index.max(), freq="7min").as_unit( + unit + ) + + bins = np.searchsorted(ix.values, ts.index.values, side="right") + val = np.bincount(bins, minlength=len(ix) + 1)[1:].astype("int64", copy=False) + + right = Series(val, index=ix) + tm.assert_series_equal(left, right) + + +def test_resample_across_dst(): + # The test resamples a DatetimeIndex with values before and after a + # DST change + # Issue: 14682 + + # The DatetimeIndex we will start with + # (note that DST happens at 03:00+02:00 -> 02:00+01:00) + # 2016-10-30 02:23:00+02:00, 2016-10-30 02:23:00+01:00 + df1 = DataFrame([1477786980, 1477790580], columns=["ts"]) + dti1 = DatetimeIndex( + pd.to_datetime(df1.ts, unit="s") + .dt.tz_localize("UTC") + .dt.tz_convert("Europe/Madrid") + ) + + # The expected DatetimeIndex after resampling. + # 2016-10-30 02:00:00+02:00, 2016-10-30 02:00:00+01:00 + df2 = DataFrame([1477785600, 1477789200], columns=["ts"]) + dti2 = DatetimeIndex( + pd.to_datetime(df2.ts, unit="s") + .dt.tz_localize("UTC") + .dt.tz_convert("Europe/Madrid"), + freq="h", + ) + df = DataFrame([5, 5], index=dti1) + + result = df.resample(rule="h").sum() + expected = DataFrame([5, 5], index=dti2) + + tm.assert_frame_equal(result, expected) + + +def test_groupby_with_dst_time_change(unit): + # GH 24972 + index = ( + DatetimeIndex([1478064900001000000, 1480037118776792000], tz="UTC") + .tz_convert("America/Chicago") + .as_unit(unit) + ) + + df = DataFrame([1, 2], index=index) + result = df.groupby(Grouper(freq="1d")).last() + expected_index_values = date_range( + "2016-11-02", "2016-11-24", freq="d", tz="America/Chicago" + ).as_unit(unit) + + index = DatetimeIndex(expected_index_values) + expected = DataFrame([1.0] + ([np.nan] * 21) + [2.0], index=index) + tm.assert_frame_equal(result, expected) + + +def test_resample_dst_anchor(unit): + # 5172 + dti = DatetimeIndex([datetime(2012, 11, 4, 23)], tz="US/Eastern").as_unit(unit) + df = DataFrame([5], index=dti) + + dti = DatetimeIndex(df.index.normalize(), freq="D").as_unit(unit) + expected = DataFrame([5], index=dti) + tm.assert_frame_equal(df.resample(rule="D").sum(), expected) + df.resample(rule="MS").sum() + tm.assert_frame_equal( + df.resample(rule="MS").sum(), + DataFrame( + [5], + index=DatetimeIndex( + [datetime(2012, 11, 1)], tz="US/Eastern", freq="MS" + ).as_unit(unit), + ), + ) + + +def test_resample_dst_anchor2(unit): + dti = date_range( + "2013-09-30", "2013-11-02", freq="30Min", tz="Europe/Paris" + ).as_unit(unit) + values = range(dti.size) + df = DataFrame({"a": values, "b": values, "c": values}, index=dti, dtype="int64") + how = {"a": "min", "b": "max", "c": "count"} + + rs = df.resample("W-MON") + result = rs.agg(how)[["a", "b", "c"]] + expected = DataFrame( + { + "a": [0, 48, 384, 720, 1056, 1394], + "b": [47, 383, 719, 1055, 1393, 1586], + "c": [48, 336, 336, 336, 338, 193], + }, + index=date_range( + "9/30/2013", "11/4/2013", freq="W-MON", tz="Europe/Paris" + ).as_unit(unit), + ) + tm.assert_frame_equal( + result, + expected, + "W-MON Frequency", + ) + + rs2 = df.resample("2W-MON") + result2 = rs2.agg(how)[["a", "b", "c"]] + expected2 = DataFrame( + { + "a": [0, 48, 720, 1394], + "b": [47, 719, 1393, 1586], + "c": [48, 672, 674, 193], + }, + index=date_range( + "9/30/2013", "11/11/2013", freq="2W-MON", tz="Europe/Paris" + ).as_unit(unit), + ) + tm.assert_frame_equal( + result2, + expected2, + "2W-MON Frequency", + ) + + rs3 = df.resample("MS") + result3 = rs3.agg(how)[["a", "b", "c"]] + expected3 = DataFrame( + {"a": [0, 48, 1538], "b": [47, 1537, 1586], "c": [48, 1490, 49]}, + index=date_range("9/1/2013", "11/1/2013", freq="MS", tz="Europe/Paris").as_unit( + unit + ), + ) + tm.assert_frame_equal( + result3, + expected3, + "MS Frequency", + ) + + rs4 = df.resample("2MS") + result4 = rs4.agg(how)[["a", "b", "c"]] + expected4 = DataFrame( + {"a": [0, 1538], "b": [1537, 1586], "c": [1538, 49]}, + index=date_range( + "9/1/2013", "11/1/2013", freq="2MS", tz="Europe/Paris" + ).as_unit(unit), + ) + tm.assert_frame_equal( + result4, + expected4, + "2MS Frequency", + ) + + df_daily = df["10/26/2013":"10/29/2013"] + rs_d = df_daily.resample("D") + result_d = rs_d.agg({"a": "min", "b": "max", "c": "count"})[["a", "b", "c"]] + expected_d = DataFrame( + { + "a": [1248, 1296, 1346, 1394], + "b": [1295, 1345, 1393, 1441], + "c": [48, 50, 48, 48], + }, + index=date_range( + "10/26/2013", "10/29/2013", freq="D", tz="Europe/Paris" + ).as_unit(unit), + ) + tm.assert_frame_equal( + result_d, + expected_d, + "D Frequency", + ) + + +def test_downsample_across_dst(unit): + # GH 8531 + tz = pytz.timezone("Europe/Berlin") + dt = datetime(2014, 10, 26) + dates = date_range(tz.localize(dt), periods=4, freq="2h").as_unit(unit) + result = Series(5, index=dates).resample("h").mean() + expected = Series( + [5.0, np.nan] * 3 + [5.0], + index=date_range(tz.localize(dt), periods=7, freq="h").as_unit(unit), + ) + tm.assert_series_equal(result, expected) + + +def test_downsample_across_dst_weekly(unit): + # GH 9119, GH 21459 + df = DataFrame( + index=DatetimeIndex( + ["2017-03-25", "2017-03-26", "2017-03-27", "2017-03-28", "2017-03-29"], + tz="Europe/Amsterdam", + ).as_unit(unit), + data=[11, 12, 13, 14, 15], + ) + result = df.resample("1W").sum() + expected = DataFrame( + [23, 42], + index=DatetimeIndex( + ["2017-03-26", "2017-04-02"], tz="Europe/Amsterdam", freq="W" + ).as_unit(unit), + ) + tm.assert_frame_equal(result, expected) + + +def test_downsample_across_dst_weekly_2(unit): + # GH 9119, GH 21459 + idx = date_range("2013-04-01", "2013-05-01", tz="Europe/London", freq="h").as_unit( + unit + ) + s = Series(index=idx, dtype=np.float64) + result = s.resample("W").mean() + expected = Series( + index=date_range("2013-04-07", freq="W", periods=5, tz="Europe/London").as_unit( + unit + ), + dtype=np.float64, + ) + tm.assert_series_equal(result, expected) + + +def test_downsample_dst_at_midnight(unit): + # GH 25758 + start = datetime(2018, 11, 3, 12) + end = datetime(2018, 11, 5, 12) + index = date_range(start, end, freq="1h").as_unit(unit) + index = index.tz_localize("UTC").tz_convert("America/Havana") + data = list(range(len(index))) + dataframe = DataFrame(data, index=index) + result = dataframe.groupby(Grouper(freq="1D")).mean() + + dti = date_range("2018-11-03", periods=3).tz_localize( + "America/Havana", ambiguous=True + ) + dti = DatetimeIndex(dti, freq="D").as_unit(unit) + expected = DataFrame([7.5, 28.0, 44.5], index=dti) + tm.assert_frame_equal(result, expected) + + +def test_resample_with_nat(unit): + # GH 13020 + index = DatetimeIndex( + [ + pd.NaT, + "1970-01-01 00:00:00", + pd.NaT, + "1970-01-01 00:00:01", + "1970-01-01 00:00:02", + ] + ).as_unit(unit) + frame = DataFrame([2, 3, 5, 7, 11], index=index) + + index_1s = DatetimeIndex( + ["1970-01-01 00:00:00", "1970-01-01 00:00:01", "1970-01-01 00:00:02"] + ).as_unit(unit) + frame_1s = DataFrame([3.0, 7.0, 11.0], index=index_1s) + tm.assert_frame_equal(frame.resample("1s").mean(), frame_1s) + + index_2s = DatetimeIndex(["1970-01-01 00:00:00", "1970-01-01 00:00:02"]).as_unit( + unit + ) + frame_2s = DataFrame([5.0, 11.0], index=index_2s) + tm.assert_frame_equal(frame.resample("2s").mean(), frame_2s) + + index_3s = DatetimeIndex(["1970-01-01 00:00:00"]).as_unit(unit) + frame_3s = DataFrame([7.0], index=index_3s) + tm.assert_frame_equal(frame.resample("3s").mean(), frame_3s) + + tm.assert_frame_equal(frame.resample("60s").mean(), frame_3s) + + +def test_resample_datetime_values(unit): + # GH 13119 + # check that datetime dtype is preserved when NaT values are + # introduced by the resampling + + dates = [datetime(2016, 1, 15), datetime(2016, 1, 19)] + df = DataFrame({"timestamp": dates}, index=dates) + df.index = df.index.as_unit(unit) + + exp = Series( + [datetime(2016, 1, 15), pd.NaT, datetime(2016, 1, 19)], + index=date_range("2016-01-15", periods=3, freq="2D").as_unit(unit), + name="timestamp", + ) + + res = df.resample("2D").first()["timestamp"] + tm.assert_series_equal(res, exp) + res = df["timestamp"].resample("2D").first() + tm.assert_series_equal(res, exp) + + +def test_resample_apply_with_additional_args(series, unit): + # GH 14615 + def f(data, add_arg): + return np.mean(data) * add_arg + + series.index = series.index.as_unit(unit) + + multiplier = 10 + result = series.resample("D").apply(f, multiplier) + expected = series.resample("D").mean().multiply(multiplier) + tm.assert_series_equal(result, expected) + + # Testing as kwarg + result = series.resample("D").apply(f, add_arg=multiplier) + expected = series.resample("D").mean().multiply(multiplier) + tm.assert_series_equal(result, expected) + + +def test_resample_apply_with_additional_args2(): + # Testing dataframe + def f(data, add_arg): + return np.mean(data) * add_arg + + multiplier = 10 + + df = DataFrame({"A": 1, "B": 2}, index=date_range("2017", periods=10)) + msg = "DataFrameGroupBy.resample operated on the grouping columns" + with tm.assert_produces_warning(FutureWarning, match=msg): + result = df.groupby("A").resample("D").agg(f, multiplier).astype(float) + msg = "DataFrameGroupBy.resample operated on the grouping columns" + with tm.assert_produces_warning(FutureWarning, match=msg): + expected = df.groupby("A").resample("D").mean().multiply(multiplier) + tm.assert_frame_equal(result, expected) + + +@pytest.mark.parametrize("k", [1, 2, 3]) +@pytest.mark.parametrize( + "n1, freq1, n2, freq2", + [ + (30, "s", 0.5, "Min"), + (60, "s", 1, "Min"), + (3600, "s", 1, "h"), + (60, "Min", 1, "h"), + (21600, "s", 0.25, "D"), + (86400, "s", 1, "D"), + (43200, "s", 0.5, "D"), + (1440, "Min", 1, "D"), + (12, "h", 0.5, "D"), + (24, "h", 1, "D"), + ], +) +def test_resample_equivalent_offsets(n1, freq1, n2, freq2, k, unit): + # GH 24127 + n1_ = n1 * k + n2_ = n2 * k + dti = date_range("1991-09-05", "1991-09-12", freq=freq1).as_unit(unit) + ser = Series(range(len(dti)), index=dti) + + result1 = ser.resample(str(n1_) + freq1).mean() + result2 = ser.resample(str(n2_) + freq2).mean() + tm.assert_series_equal(result1, result2) + + +@pytest.mark.parametrize( + "first,last,freq,exp_first,exp_last", + [ + ("19910905", "19920406", "D", "19910905", "19920407"), + ("19910905 00:00", "19920406 06:00", "D", "19910905", "19920407"), + ("19910905 06:00", "19920406 06:00", "h", "19910905 06:00", "19920406 07:00"), + ("19910906", "19920406", "ME", "19910831", "19920430"), + ("19910831", "19920430", "ME", "19910831", "19920531"), + ("1991-08", "1992-04", "ME", "19910831", "19920531"), + ], +) +def test_get_timestamp_range_edges(first, last, freq, exp_first, exp_last, unit): + first = Period(first) + first = first.to_timestamp(first.freq).as_unit(unit) + last = Period(last) + last = last.to_timestamp(last.freq).as_unit(unit) + + exp_first = Timestamp(exp_first) + exp_last = Timestamp(exp_last) + + freq = pd.tseries.frequencies.to_offset(freq) + result = _get_timestamp_range_edges(first, last, freq, unit="ns") + expected = (exp_first, exp_last) + assert result == expected + + +@pytest.mark.parametrize("duplicates", [True, False]) +def test_resample_apply_product(duplicates, unit): + # GH 5586 + index = date_range(start="2012-01-31", freq="ME", periods=12).as_unit(unit) + + ts = Series(range(12), index=index) + df = DataFrame({"A": ts, "B": ts + 2}) + if duplicates: + df.columns = ["A", "A"] + + msg = "using DatetimeIndexResampler.prod" + with tm.assert_produces_warning(FutureWarning, match=msg): + result = df.resample("QE").apply(np.prod) + expected = DataFrame( + np.array([[0, 24], [60, 210], [336, 720], [990, 1716]], dtype=np.int64), + index=DatetimeIndex( + ["2012-03-31", "2012-06-30", "2012-09-30", "2012-12-31"], freq="QE-DEC" + ).as_unit(unit), + columns=df.columns, + ) + tm.assert_frame_equal(result, expected) + + +@pytest.mark.parametrize( + "first,last,freq_in,freq_out,exp_last", + [ + ( + "2020-03-28", + "2020-03-31", + "D", + "24h", + "2020-03-30 01:00", + ), # includes transition into DST + ( + "2020-03-28", + "2020-10-27", + "D", + "24h", + "2020-10-27 00:00", + ), # includes transition into and out of DST + ( + "2020-10-25", + "2020-10-27", + "D", + "24h", + "2020-10-26 23:00", + ), # includes transition out of DST + ( + "2020-03-28", + "2020-03-31", + "24h", + "D", + "2020-03-30 00:00", + ), # same as above, but from 24H to D + ("2020-03-28", "2020-10-27", "24h", "D", "2020-10-27 00:00"), + ("2020-10-25", "2020-10-27", "24h", "D", "2020-10-26 00:00"), + ], +) +def test_resample_calendar_day_with_dst( + first: str, last: str, freq_in: str, freq_out: str, exp_last: str, unit +): + # GH 35219 + ts = Series( + 1.0, date_range(first, last, freq=freq_in, tz="Europe/Amsterdam").as_unit(unit) + ) + result = ts.resample(freq_out).ffill() + expected = Series( + 1.0, + date_range(first, exp_last, freq=freq_out, tz="Europe/Amsterdam").as_unit(unit), + ) + tm.assert_series_equal(result, expected) + + +@pytest.mark.parametrize("func", ["min", "max", "first", "last"]) +def test_resample_aggregate_functions_min_count(func, unit): + # GH#37768 + index = date_range(start="2020", freq="ME", periods=3).as_unit(unit) + ser = Series([1, np.nan, np.nan], index) + result = getattr(ser.resample("QE"), func)(min_count=2) + expected = Series( + [np.nan], + index=DatetimeIndex(["2020-03-31"], freq="QE-DEC").as_unit(unit), + ) + tm.assert_series_equal(result, expected) + + +def test_resample_unsigned_int(any_unsigned_int_numpy_dtype, unit): + # gh-43329 + df = DataFrame( + index=date_range(start="2000-01-01", end="2000-01-03 23", freq="12h").as_unit( + unit + ), + columns=["x"], + data=[0, 1, 0] * 2, + dtype=any_unsigned_int_numpy_dtype, + ) + df = df.loc[(df.index < "2000-01-02") | (df.index > "2000-01-03"), :] + + result = df.resample("D").max() + + expected = DataFrame( + [1, np.nan, 0], + columns=["x"], + index=date_range(start="2000-01-01", end="2000-01-03 23", freq="D").as_unit( + unit + ), + ) + tm.assert_frame_equal(result, expected) + + +def test_long_rule_non_nano(): + # https://github.com/pandas-dev/pandas/issues/51024 + idx = date_range("0300-01-01", "2000-01-01", unit="s", freq="100YE") + ser = Series([1, 4, 2, 8, 5, 7, 1, 4, 2, 8, 5, 7, 1, 4, 2, 8, 5], index=idx) + result = ser.resample("200YE").mean() + expected_idx = DatetimeIndex( + np.array( + [ + "0300-12-31", + "0500-12-31", + "0700-12-31", + "0900-12-31", + "1100-12-31", + "1300-12-31", + "1500-12-31", + "1700-12-31", + "1900-12-31", + ] + ).astype("datetime64[s]"), + freq="200YE-DEC", + ) + expected = Series([1.0, 3.0, 6.5, 4.0, 3.0, 6.5, 4.0, 3.0, 6.5], index=expected_idx) + tm.assert_series_equal(result, expected) + + +def test_resample_empty_series_with_tz(): + # GH#53664 + df = DataFrame({"ts": [], "values": []}).astype( + {"ts": "datetime64[ns, Atlantic/Faroe]"} + ) + result = df.resample("2MS", on="ts", closed="left", label="left", origin="start")[ + "values" + ].sum() + + expected_idx = DatetimeIndex( + [], freq="2MS", name="ts", dtype="datetime64[ns, Atlantic/Faroe]" + ) + expected = Series([], index=expected_idx, name="values", dtype="float64") + tm.assert_series_equal(result, expected) + + +@pytest.mark.parametrize( + "freq, freq_depr", + [ + ("2ME", "2M"), + ("2QE", "2Q"), + ("2QE-SEP", "2Q-SEP"), + ("1YE", "1Y"), + ("2YE-MAR", "2Y-MAR"), + ("1YE", "1A"), + ("2YE-MAR", "2A-MAR"), + ], +) +def test_resample_M_Q_Y_A_deprecated(freq, freq_depr): + # GH#9586 + depr_msg = f"'{freq_depr[1:]}' is deprecated and will be removed " + f"in a future version, please use '{freq[1:]}' instead." + + s = Series(range(10), index=date_range("20130101", freq="d", periods=10)) + expected = s.resample(freq).mean() + with tm.assert_produces_warning(FutureWarning, match=depr_msg): + result = s.resample(freq_depr).mean() + tm.assert_series_equal(result, expected) + + +@pytest.mark.parametrize( + "freq, freq_depr", + [ + ("2BME", "2BM"), + ("2BQE", "2BQ"), + ("2BQE-MAR", "2BQ-MAR"), + ], +) +def test_resample_BM_BQ_deprecated(freq, freq_depr): + # GH#52064 + depr_msg = f"'{freq_depr[1:]}' is deprecated and will be removed " + f"in a future version, please use '{freq[1:]}' instead." + + s = Series(range(10), index=date_range("20130101", freq="d", periods=10)) + expected = s.resample(freq).mean() + with tm.assert_produces_warning(FutureWarning, match=depr_msg): + result = s.resample(freq_depr).mean() + tm.assert_series_equal(result, expected) + + +def test_resample_ms_closed_right(unit): + # https://github.com/pandas-dev/pandas/issues/55271 + dti = date_range(start="2020-01-31", freq="1min", periods=6000, unit=unit) + df = DataFrame({"ts": dti}, index=dti) + grouped = df.resample("MS", closed="right") + result = grouped.last() + exp_dti = DatetimeIndex( + [datetime(2020, 1, 1), datetime(2020, 2, 1)], freq="MS" + ).as_unit(unit) + expected = DataFrame( + {"ts": [datetime(2020, 2, 1), datetime(2020, 2, 4, 3, 59)]}, + index=exp_dti, + ).astype(f"M8[{unit}]") + tm.assert_frame_equal(result, expected) + + +@pytest.mark.parametrize("freq", ["B", "C"]) +def test_resample_c_b_closed_right(freq: str, unit): + # https://github.com/pandas-dev/pandas/issues/55281 + dti = date_range(start="2020-01-31", freq="1min", periods=6000, unit=unit) + df = DataFrame({"ts": dti}, index=dti) + grouped = df.resample(freq, closed="right") + result = grouped.last() + + exp_dti = DatetimeIndex( + [ + datetime(2020, 1, 30), + datetime(2020, 1, 31), + datetime(2020, 2, 3), + datetime(2020, 2, 4), + ], + freq=freq, + ).as_unit(unit) + expected = DataFrame( + { + "ts": [ + datetime(2020, 1, 31), + datetime(2020, 2, 3), + datetime(2020, 2, 4), + datetime(2020, 2, 4, 3, 59), + ] + }, + index=exp_dti, + ).astype(f"M8[{unit}]") + tm.assert_frame_equal(result, expected) + + +def test_resample_b_55282(unit): + # https://github.com/pandas-dev/pandas/issues/55282 + dti = date_range("2023-09-26", periods=6, freq="12h", unit=unit) + ser = Series([1, 2, 3, 4, 5, 6], index=dti) + result = ser.resample("B", closed="right", label="right").mean() + + exp_dti = DatetimeIndex( + [ + datetime(2023, 9, 26), + datetime(2023, 9, 27), + datetime(2023, 9, 28), + datetime(2023, 9, 29), + ], + freq="B", + ).as_unit(unit) + expected = Series( + [1.0, 2.5, 4.5, 6.0], + index=exp_dti, + ) + tm.assert_series_equal(result, expected) + + +@td.skip_if_no("pyarrow") +@pytest.mark.parametrize( + "tz", + [ + None, + pytest.param( + "UTC", + marks=pytest.mark.xfail( + condition=is_platform_windows(), + reason="TODO: Set ARROW_TIMEZONE_DATABASE env var in CI", + ), + ), + ], +) +def test_arrow_timestamp_resample(tz): + # GH 56371 + idx = Series(date_range("2020-01-01", periods=5), dtype="timestamp[ns][pyarrow]") + if tz is not None: + idx = idx.dt.tz_localize(tz) + expected = Series(np.arange(5, dtype=np.float64), index=idx) + result = expected.resample("1D").mean() + tm.assert_series_equal(result, expected) diff --git a/shared/package-files/69/69fd1a9dfbfcdf8b8cbc26e2817c9fe3481eee37f428a06387a96c4356129e39/cudnn_batch_norm_backward_cuda_dispatch.h b/shared/package-files/69/69fd1a9dfbfcdf8b8cbc26e2817c9fe3481eee37f428a06387a96c4356129e39/cudnn_batch_norm_backward_cuda_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..b234d1c6c651e39ce3665788f5f94be4c3cdb935 --- /dev/null +++ b/shared/package-files/69/69fd1a9dfbfcdf8b8cbc26e2817c9fe3481eee37f428a06387a96c4356129e39/cudnn_batch_norm_backward_cuda_dispatch.h @@ -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_batch_norm_backward(const at::Tensor & input, const at::Tensor & grad_output, const at::Tensor & weight, const c10::optional & running_mean, const c10::optional & running_var, const c10::optional & save_mean, const c10::optional & save_var, double epsilon, const at::Tensor & reserveSpace); + +} // namespace cuda +} // namespace at diff --git a/shared/package-files/6f/6f000c5dae1a4b3543518d6ddc79b32b8cbe8cee632306db46ef392666fcf94d/test_index_as_string.py b/shared/package-files/6f/6f000c5dae1a4b3543518d6ddc79b32b8cbe8cee632306db46ef392666fcf94d/test_index_as_string.py new file mode 100644 index 0000000000000000000000000000000000000000..4aaf3de9a23b2416603947db312bb49eea343ba8 --- /dev/null +++ b/shared/package-files/6f/6f000c5dae1a4b3543518d6ddc79b32b8cbe8cee632306db46ef392666fcf94d/test_index_as_string.py @@ -0,0 +1,85 @@ +import numpy as np +import pytest + +import pandas as pd +import pandas._testing as tm + + +@pytest.fixture(params=[["inner"], ["inner", "outer"]]) +def frame(request): + levels = request.param + df = pd.DataFrame( + { + "outer": ["a", "a", "a", "b", "b", "b"], + "inner": [1, 2, 3, 1, 2, 3], + "A": np.arange(6), + "B": ["one", "one", "two", "two", "one", "one"], + } + ) + if levels: + df = df.set_index(levels) + + return df + + +@pytest.fixture() +def series(): + df = pd.DataFrame( + { + "outer": ["a", "a", "a", "b", "b", "b"], + "inner": [1, 2, 3, 1, 2, 3], + "A": np.arange(6), + "B": ["one", "one", "two", "two", "one", "one"], + } + ) + s = df.set_index(["outer", "inner", "B"])["A"] + + return s + + +@pytest.mark.parametrize( + "key_strs,groupers", + [ + ("inner", pd.Grouper(level="inner")), # Index name + (["inner"], [pd.Grouper(level="inner")]), # List of index name + (["B", "inner"], ["B", pd.Grouper(level="inner")]), # Column and index + (["inner", "B"], [pd.Grouper(level="inner"), "B"]), # Index and column + ], +) +def test_grouper_index_level_as_string(frame, key_strs, groupers): + if "B" not in key_strs or "outer" in frame.columns: + result = frame.groupby(key_strs).mean(numeric_only=True) + expected = frame.groupby(groupers).mean(numeric_only=True) + else: + result = frame.groupby(key_strs).mean() + expected = frame.groupby(groupers).mean() + tm.assert_frame_equal(result, expected) + + +@pytest.mark.parametrize( + "levels", + [ + "inner", + "outer", + "B", + ["inner"], + ["outer"], + ["B"], + ["inner", "outer"], + ["outer", "inner"], + ["inner", "outer", "B"], + ["B", "outer", "inner"], + ], +) +def test_grouper_index_level_as_string_series(series, levels): + # Compute expected result + if isinstance(levels, list): + groupers = [pd.Grouper(level=lv) for lv in levels] + else: + groupers = pd.Grouper(level=levels) + + expected = series.groupby(groupers).mean() + + # Compute and check result + result = series.groupby(levels).mean() + tm.assert_series_equal(result, expected) diff --git a/shared/package-files/6f/6f0057e4913e335e278f39f794f7ca1f42643cc79e19328af8a460f9dc8c03fa/min_cpu_dispatch.h b/shared/package-files/6f/6f0057e4913e335e278f39f794f7ca1f42643cc79e19328af8a460f9dc8c03fa/min_cpu_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..769b7133a98b9e6ee4aa0bca9354e036f5fbc9d3 --- /dev/null +++ b/shared/package-files/6f/6f0057e4913e335e278f39f794f7ca1f42643cc79e19328af8a460f9dc8c03fa/min_cpu_dispatch.h @@ -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 ::std::tuple min(const at::Tensor & self, int64_t dim, bool keepdim=false); +TORCH_API ::std::tuple min_out(at::Tensor & min, at::Tensor & min_indices, const at::Tensor & self, int64_t dim, bool keepdim=false); +TORCH_API ::std::tuple min_outf(const at::Tensor & self, int64_t dim, bool keepdim, at::Tensor & min, at::Tensor & min_indices); +TORCH_API at::Tensor min(const at::Tensor & self); +TORCH_API at::Tensor & min_out(at::Tensor & out, const at::Tensor & self); +TORCH_API at::Tensor & min_outf(const at::Tensor & self, at::Tensor & out); + +} // namespace cpu +} // namespace at diff --git a/shared/package-files/6f/6f010b14bda1c218b071bc76ed3a401144c2d62e683bba026a0fa31b8c1ba111/gt.h b/shared/package-files/6f/6f010b14bda1c218b071bc76ed3a401144c2d62e683bba026a0fa31b8c1ba111/gt.h new file mode 100644 index 0000000000000000000000000000000000000000..366b9b36a2144697c15631369ff9f918226f6784 --- /dev/null +++ b/shared/package-files/6f/6f010b14bda1c218b071bc76ed3a401144c2d62e683bba026a0fa31b8c1ba111/gt.h @@ -0,0 +1,53 @@ +#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::gt.Scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & gt_out(at::Tensor & out, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::gt_Scalar_out::call(self, other, out); +} +// aten::gt.Scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & gt_outf(const at::Tensor & self, const at::Scalar & other, at::Tensor & out) { + return at::_ops::gt_Scalar_out::call(self, other, out); +} + +// aten::gt.Scalar(Tensor self, Scalar other) -> Tensor +inline at::Tensor gt(const at::Tensor & self, const at::Scalar & other) { + return at::_ops::gt_Scalar::call(self, other); +} + +// aten::gt.Tensor_out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & gt_out(at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::gt_Tensor_out::call(self, other, out); +} +// aten::gt.Tensor_out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & gt_outf(const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::gt_Tensor_out::call(self, other, out); +} + +// aten::gt.Tensor(Tensor self, Tensor other) -> Tensor +inline at::Tensor gt(const at::Tensor & self, const at::Tensor & other) { + return at::_ops::gt_Tensor::call(self, other); +} + +} diff --git a/shared/package-files/6f/6f024d7332fee0604330adde84f760f4bf67138695d88277a37e525d11441c0c/_use_cudnn_ctc_loss_native.h b/shared/package-files/6f/6f024d7332fee0604330adde84f760f4bf67138695d88277a37e525d11441c0c/_use_cudnn_ctc_loss_native.h new file mode 100644 index 0000000000000000000000000000000000000000..7624925c487154f0d5aa61ec3bc0d9a3e761ac9e --- /dev/null +++ b/shared/package-files/6f/6f024d7332fee0604330adde84f760f4bf67138695d88277a37e525d11441c0c/_use_cudnn_ctc_loss_native.h @@ -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 bool _use_cudnn_ctc_loss(const at::Tensor & log_probs, const at::Tensor & targets, at::IntArrayRef input_lengths, at::IntArrayRef target_lengths, int64_t blank); +TORCH_API bool _use_cudnn_ctc_loss_tensor(const at::Tensor & log_probs, const at::Tensor & targets, const at::Tensor & input_lengths, const at::Tensor & target_lengths, int64_t blank); +} // namespace native +} // namespace at diff --git a/shared/package-files/6f/6f0451574b6e1309de5677382d205e623099a7aadb515031cc5535ef14715737/_thread.pyi b/shared/package-files/6f/6f0451574b6e1309de5677382d205e623099a7aadb515031cc5535ef14715737/_thread.pyi new file mode 100644 index 0000000000000000000000000000000000000000..513678499223194e75ef4b07964b4f0ce300db1b --- /dev/null +++ b/shared/package-files/6f/6f0451574b6e1309de5677382d205e623099a7aadb515031cc5535ef14715737/_thread.pyi @@ -0,0 +1,41 @@ +import sys +from threading import Thread +from types import TracebackType +from typing import Any, Callable, Dict, NoReturn, Optional, Tuple, Type + +error = RuntimeError + +def _count() -> int: ... + +_dangling: Any + +class LockType: + def acquire(self, blocking: bool = ..., timeout: float = ...) -> bool: ... + def release(self) -> None: ... + def locked(self) -> bool: ... + def __enter__(self) -> bool: ... + def __exit__( + self, type: Optional[Type[BaseException]], value: Optional[BaseException], traceback: Optional[TracebackType] + ) -> None: ... + +def start_new_thread(function: Callable[..., Any], args: Tuple[Any, ...], kwargs: Dict[str, Any] = ...) -> int: ... +def interrupt_main() -> None: ... +def exit() -> NoReturn: ... +def allocate_lock() -> LockType: ... +def get_ident() -> int: ... +def stack_size(size: int = ...) -> int: ... + +TIMEOUT_MAX: float + +if sys.version_info >= (3, 8): + def get_native_id() -> int: ... # only available on some platforms + class _ExceptHookArgs(Tuple[Type[BaseException], Optional[BaseException], Optional[TracebackType], Optional[Thread]]): + @property + def exc_type(self) -> Type[BaseException]: ... + @property + def exc_value(self) -> Optional[BaseException]: ... + @property + def exc_traceback(self) -> Optional[TracebackType]: ... + @property + def thread(self) -> Optional[Thread]: ... + _excepthook: Callable[[_ExceptHookArgs], Any] diff --git a/shared/package-files/6f/6f04db3c62e4e847ed20e3c7c9def896741021cfa33a506b935ee0dacd9ffffc/fft_rfft_native.h b/shared/package-files/6f/6f04db3c62e4e847ed20e3c7c9def896741021cfa33a506b935ee0dacd9ffffc/fft_rfft_native.h new file mode 100644 index 0000000000000000000000000000000000000000..0bae4be03f2045d0d49c37c675cc669a1f7276f2 --- /dev/null +++ b/shared/package-files/6f/6f04db3c62e4e847ed20e3c7c9def896741021cfa33a506b935ee0dacd9ffffc/fft_rfft_native.h @@ -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 fft_rfft_symint(const at::Tensor & self, c10::optional n=c10::nullopt, int64_t dim=-1, c10::optional norm=c10::nullopt); +TORCH_API at::Tensor & fft_rfft_symint_out(const at::Tensor & self, c10::optional n, int64_t dim, c10::optional norm, at::Tensor & out); +} // namespace native +} // namespace at diff --git a/shared/package-files/6f/6f084206e3745d97e295a75a37226a7293084d912dc4493f8da8b1dd823dbd15/hardsigmoid_backward_meta_dispatch.h b/shared/package-files/6f/6f084206e3745d97e295a75a37226a7293084d912dc4493f8da8b1dd823dbd15/hardsigmoid_backward_meta_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..4de83514317b1f429fce7c809a5db850a1f58859 --- /dev/null +++ b/shared/package-files/6f/6f084206e3745d97e295a75a37226a7293084d912dc4493f8da8b1dd823dbd15/hardsigmoid_backward_meta_dispatch.h @@ -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 hardsigmoid_backward(const at::Tensor & grad_output, const at::Tensor & self); +TORCH_API at::Tensor & hardsigmoid_backward_out(at::Tensor & grad_input, const at::Tensor & grad_output, const at::Tensor & self); +TORCH_API at::Tensor & hardsigmoid_backward_outf(const at::Tensor & grad_output, const at::Tensor & self, at::Tensor & grad_input); + +} // namespace meta +} // namespace at diff --git a/shared/package-files/6f/6f0bad3dfae36ceae99fa2f9b5e1efa7524381b39141289f363f4691667811b3/bitwise_or.h b/shared/package-files/6f/6f0bad3dfae36ceae99fa2f9b5e1efa7524381b39141289f363f4691667811b3/bitwise_or.h new file mode 100644 index 0000000000000000000000000000000000000000..3f7078d79979a1e253c826cae6fd917ccd4bd982 --- /dev/null +++ b/shared/package-files/6f/6f0bad3dfae36ceae99fa2f9b5e1efa7524381b39141289f363f4691667811b3/bitwise_or.h @@ -0,0 +1,67 @@ +#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::bitwise_or.Tensor_out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & bitwise_or_out(at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::bitwise_or_Tensor_out::call(self, other, out); +} +// aten::bitwise_or.Tensor_out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & bitwise_or_outf(const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::bitwise_or_Tensor_out::call(self, other, out); +} + +// aten::bitwise_or.Scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & bitwise_or_out(at::Tensor & out, const at::Tensor & self, const at::Scalar & other) { + return at::_ops::bitwise_or_Scalar_out::call(self, other, out); +} +// aten::bitwise_or.Scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & bitwise_or_outf(const at::Tensor & self, const at::Scalar & other, at::Tensor & out) { + return at::_ops::bitwise_or_Scalar_out::call(self, other, out); +} + +// aten::bitwise_or.Scalar(Tensor self, Scalar other) -> Tensor +inline at::Tensor bitwise_or(const at::Tensor & self, const at::Scalar & other) { + return at::_ops::bitwise_or_Scalar::call(self, other); +} + +// aten::bitwise_or.Scalar_Tensor(Scalar self, Tensor other) -> Tensor +inline at::Tensor bitwise_or(const at::Scalar & self, const at::Tensor & other) { + return at::_ops::bitwise_or_Scalar_Tensor::call(self, other); +} + +// aten::bitwise_or.Tensor(Tensor self, Tensor other) -> Tensor +inline at::Tensor bitwise_or(const at::Tensor & self, const at::Tensor & other) { + return at::_ops::bitwise_or_Tensor::call(self, other); +} + +// aten::bitwise_or.Scalar_Tensor_out(Scalar self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & bitwise_or_out(at::Tensor & out, const at::Scalar & self, const at::Tensor & other) { + return at::_ops::bitwise_or_Scalar_Tensor_out::call(self, other, out); +} +// aten::bitwise_or.Scalar_Tensor_out(Scalar self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & bitwise_or_outf(const at::Scalar & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::bitwise_or_Scalar_Tensor_out::call(self, other, out); +} + +} diff --git a/shared/package-files/6f/6f0ec35f38f91a62789bfd8fe6b3c5f972f9a645b8ad5759332ca964c25832b4/vt102-nsgr b/shared/package-files/6f/6f0ec35f38f91a62789bfd8fe6b3c5f972f9a645b8ad5759332ca964c25832b4/vt102-nsgr new file mode 100644 index 0000000000000000000000000000000000000000..212a24619da0b52717c84a3bdc1fe613ca75ca41 Binary files /dev/null and b/shared/package-files/6f/6f0ec35f38f91a62789bfd8fe6b3c5f972f9a645b8ad5759332ca964c25832b4/vt102-nsgr differ diff --git a/shared/package-files/6f/6f0ec92989ea1557c670de23031ce4b23c5b07025e6879aa235ce8b7d56535d4/fixtures.py b/shared/package-files/6f/6f0ec92989ea1557c670de23031ce4b23c5b07025e6879aa235ce8b7d56535d4/fixtures.py new file mode 100644 index 0000000000000000000000000000000000000000..bb941e48530dbf5ec2a61596a543125fd55745e3 --- /dev/null +++ b/shared/package-files/6f/6f0ec92989ea1557c670de23031ce4b23c5b07025e6879aa235ce8b7d56535d4/fixtures.py @@ -0,0 +1,84 @@ +# Copyright (C) 2012 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause +import warnings + +import py +import pytest + +from conda.auxlib.ish import dals +from conda.base.context import conda_tests_ctxt_mgmt_def_pol, context, reset_context +from conda.common.configuration import YamlRawParameter +from conda.common.io import env_vars +from conda.common.serialize import yaml_round_trip_load +from conda.core.subdir_data import SubdirData +from conda.gateways.disk.create import TemporaryDirectory + + +@pytest.fixture(autouse=True) +def suppress_resource_warning(): + """ + Suppress `Unclosed Socket Warning` + + It seems urllib3 keeps a socket open to avoid costly recreation costs. + + xref: https://github.com/kennethreitz/requests/issues/1882 + """ + warnings.filterwarnings("ignore", category=ResourceWarning) + + +@pytest.fixture(scope="function") +def tmpdir(tmpdir, request): + tmpdir = TemporaryDirectory(dir=str(tmpdir)) + request.addfinalizer(tmpdir.cleanup) + return py.path.local(tmpdir.name) + + +@pytest.fixture(autouse=True) +def clear_subdir_cache(): + SubdirData.clear_cached_local_channel_data() + + +@pytest.fixture(scope="function") +def disable_channel_notices(): + """ + Fixture that will set "context.number_channel_notices" to 0 and then set + it back to its original value. + + This is also a good example of how to override values in the context object. + """ + yaml_str = dals( + """ + number_channel_notices: 0 + """ + ) + reset_context(()) + rd = { + "testdata": YamlRawParameter.make_raw_parameters( + "testdata", yaml_round_trip_load(yaml_str) + ) + } + context._set_raw_data(rd) + + yield + + reset_context(()) + + +@pytest.fixture(scope="function") +def reset_conda_context(): + """Resets the context object after each test function is run.""" + yield + + reset_context() + + +@pytest.fixture() +def temp_package_cache(tmp_path_factory): + """ + Used to isolate package or index cache from other tests. + """ + pkgs_dir = tmp_path_factory.mktemp("pkgs") + with env_vars( + {"CONDA_PKGS_DIRS": str(pkgs_dir)}, stack_callback=conda_tests_ctxt_mgmt_def_pol + ): + yield pkgs_dir diff --git a/shared/package-files/6f/6f18156bb67447bb374f3347370193213ba10bb645783e6a85294b223d21ac5a/slice_backward_compositeexplicitautograd_dispatch.h b/shared/package-files/6f/6f18156bb67447bb374f3347370193213ba10bb645783e6a85294b223d21ac5a/slice_backward_compositeexplicitautograd_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..a00669c0a330447fca405ce9743c8ad161077cc2 --- /dev/null +++ b/shared/package-files/6f/6f18156bb67447bb374f3347370193213ba10bb645783e6a85294b223d21ac5a/slice_backward_compositeexplicitautograd_dispatch.h @@ -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 slice_backward(const at::Tensor & grad_output, at::IntArrayRef input_sizes, int64_t dim, int64_t start, int64_t end, int64_t step); +TORCH_API at::Tensor slice_backward_symint(const at::Tensor & grad_output, c10::SymIntArrayRef input_sizes, int64_t dim, c10::SymInt start, c10::SymInt end, c10::SymInt step); +TORCH_API at::Tensor & slice_backward_out(at::Tensor & out, const at::Tensor & grad_output, at::IntArrayRef input_sizes, int64_t dim, int64_t start, int64_t end, int64_t step); +TORCH_API at::Tensor & slice_backward_outf(const at::Tensor & grad_output, at::IntArrayRef input_sizes, int64_t dim, int64_t start, int64_t end, int64_t step, at::Tensor & out); +TORCH_API at::Tensor & slice_backward_symint_out(at::Tensor & out, const at::Tensor & grad_output, c10::SymIntArrayRef input_sizes, int64_t dim, c10::SymInt start, c10::SymInt end, c10::SymInt step); +TORCH_API at::Tensor & slice_backward_symint_outf(const at::Tensor & grad_output, c10::SymIntArrayRef input_sizes, int64_t dim, c10::SymInt start, c10::SymInt end, c10::SymInt step, at::Tensor & out); + +} // namespace compositeexplicitautograd +} // namespace at diff --git a/shared/package-files/6f/6f193a8eef0cee00f3a03c65c77b709542553f7d39c9f98802b5ebf79c59e6e8/sparse.py b/shared/package-files/6f/6f193a8eef0cee00f3a03c65c77b709542553f7d39c9f98802b5ebf79c59e6e8/sparse.py new file mode 100644 index 0000000000000000000000000000000000000000..bb683411abf3a7325445f417eb297a47014c68ed --- /dev/null +++ b/shared/package-files/6f/6f193a8eef0cee00f3a03c65c77b709542553f7d39c9f98802b5ebf79c59e6e8/sparse.py @@ -0,0 +1,624 @@ +# Author: Leland McInnes +# Enough simple sparse operations in numba to enable sparse UMAP +# +# License: BSD 3 clause +from __future__ import print_function + +import locale + +import numba +import numpy as np + +from umap.utils import norm + +locale.setlocale(locale.LC_NUMERIC, "C") + + +# Just reproduce a simpler version of numpy unique (not numba supported yet) +@numba.njit() +def arr_unique(arr): + aux = np.sort(arr) + flag = np.concatenate((np.ones(1, dtype=np.bool_), aux[1:] != aux[:-1])) + return aux[flag] + + +# Just reproduce a simpler version of numpy union1d (not numba supported yet) +@numba.njit() +def arr_union(ar1, ar2): + if ar1.shape[0] == 0: + return ar2 + elif ar2.shape[0] == 0: + return ar1 + else: + return arr_unique(np.concatenate((ar1, ar2))) + + +# Just reproduce a simpler version of numpy intersect1d (not numba supported +# yet) +@numba.njit() +def arr_intersect(ar1, ar2): + aux = np.concatenate((ar1, ar2)) + aux.sort() + return aux[:-1][aux[1:] == aux[:-1]] + + +@numba.njit() +def sparse_sum(ind1, data1, ind2, data2): + result_ind = arr_union(ind1, ind2) + result_data = np.zeros(result_ind.shape[0], dtype=np.float32) + + i1 = 0 + i2 = 0 + nnz = 0 + + # pass through both index lists + while i1 < ind1.shape[0] and i2 < ind2.shape[0]: + j1 = ind1[i1] + j2 = ind2[i2] + + if j1 == j2: + val = data1[i1] + data2[i2] + if val != 0: + result_ind[nnz] = j1 + result_data[nnz] = val + nnz += 1 + i1 += 1 + i2 += 1 + elif j1 < j2: + val = data1[i1] + if val != 0: + result_ind[nnz] = j1 + result_data[nnz] = val + nnz += 1 + i1 += 1 + else: + val = data2[i2] + if val != 0: + result_ind[nnz] = j2 + result_data[nnz] = val + nnz += 1 + i2 += 1 + + # pass over the tails + while i1 < ind1.shape[0]: + val = data1[i1] + if val != 0: + result_ind[nnz] = ind1[i1] + result_data[nnz] = val + nnz += 1 + i1 += 1 + + while i2 < ind2.shape[0]: + val = data2[i2] + if val != 0: + result_ind[nnz] = ind2[i2] + result_data[nnz] = val + nnz += 1 + i2 += 1 + + # truncate to the correct length in case there were zeros created + result_ind = result_ind[:nnz] + result_data = result_data[:nnz] + + return result_ind, result_data + + +@numba.njit() +def sparse_diff(ind1, data1, ind2, data2): + return sparse_sum(ind1, data1, ind2, -data2) + + +@numba.njit() +def sparse_mul(ind1, data1, ind2, data2): + result_ind = arr_intersect(ind1, ind2) + result_data = np.zeros(result_ind.shape[0], dtype=np.float32) + + i1 = 0 + i2 = 0 + nnz = 0 + + # pass through both index lists + while i1 < ind1.shape[0] and i2 < ind2.shape[0]: + j1 = ind1[i1] + j2 = ind2[i2] + + if j1 == j2: + val = data1[i1] * data2[i2] + if val != 0: + result_ind[nnz] = j1 + result_data[nnz] = val + nnz += 1 + i1 += 1 + i2 += 1 + elif j1 < j2: + i1 += 1 + else: + i2 += 1 + + # truncate to the correct length in case there were zeros created + result_ind = result_ind[:nnz] + result_data = result_data[:nnz] + + return result_ind, result_data + + +@numba.njit() +def general_sset_intersection( + indptr1, + indices1, + data1, + indptr2, + indices2, + data2, + result_row, + result_col, + result_val, + right_complement=False, + mix_weight=0.5, +): + + left_min = max(data1.min() / 2.0, 1.0e-8) + if right_complement: + right_min = min( + max((1.0 - data2).min() / 2.0, 1.0e-8), 1e-4 + ) # All right vals may be large! + else: + right_min = min( + max(data2.min() / 2.0, 1.0e-8), 1e-4 + ) # All right vals may be large! + + for idx in range(result_row.shape[0]): + i = result_row[idx] + j = result_col[idx] + + left_val = left_min + for k in range(indptr1[i], indptr1[i + 1]): + if indices1[k] == j: + left_val = data1[k] + + right_val = right_min + for k in range(indptr2[i], indptr2[i + 1]): + if indices2[k] == j: + if right_complement: + right_val = 1.0 - data2[k] + else: + right_val = data2[k] + + if left_val > left_min or right_val > right_min: + if mix_weight < 0.5: + result_val[idx] = left_val * pow( + right_val, mix_weight / (1.0 - mix_weight) + ) + else: + result_val[idx] = ( + pow(left_val, (1.0 - mix_weight) / mix_weight) * right_val + ) + + return + + +@numba.njit() +def general_sset_union( + indptr1, + indices1, + data1, + indptr2, + indices2, + data2, + result_row, + result_col, + result_val, +): + left_min = max(data1.min() / 2.0, 1.0e-8) + right_min = max(data2.min() / 2.0, 1.0e-8) + + for idx in range(result_row.shape[0]): + i = result_row[idx] + j = result_col[idx] + + left_val = left_min + for k in range(indptr1[i], indptr1[i + 1]): + if indices1[k] == j: + left_val = data1[k] + + right_val = right_min + for k in range(indptr2[i], indptr2[i + 1]): + if indices2[k] == j: + right_val = data2[k] + + result_val[idx] = left_val + right_val - left_val * right_val + + return + + +@numba.njit() +def sparse_euclidean(ind1, data1, ind2, data2): + aux_inds, aux_data = sparse_diff(ind1, data1, ind2, data2) + result = 0.0 + for i in range(aux_data.shape[0]): + result += aux_data[i] ** 2 + return np.sqrt(result) + + +@numba.njit() +def sparse_manhattan(ind1, data1, ind2, data2): + aux_inds, aux_data = sparse_diff(ind1, data1, ind2, data2) + result = 0.0 + for i in range(aux_data.shape[0]): + result += np.abs(aux_data[i]) + return result + + +@numba.njit() +def sparse_chebyshev(ind1, data1, ind2, data2): + aux_inds, aux_data = sparse_diff(ind1, data1, ind2, data2) + result = 0.0 + for i in range(aux_data.shape[0]): + result = max(result, np.abs(aux_data[i])) + return result + + +@numba.njit() +def sparse_minkowski(ind1, data1, ind2, data2, p=2.0): + aux_inds, aux_data = sparse_diff(ind1, data1, ind2, data2) + result = 0.0 + for i in range(aux_data.shape[0]): + result += np.abs(aux_data[i]) ** p + return result ** (1.0 / p) + + +@numba.njit() +def sparse_hamming(ind1, data1, ind2, data2, n_features): + num_not_equal = sparse_diff(ind1, data1, ind2, data2)[0].shape[0] + return float(num_not_equal) / n_features + + +@numba.njit() +def sparse_canberra(ind1, data1, ind2, data2): + abs_data1 = np.abs(data1) + abs_data2 = np.abs(data2) + denom_inds, denom_data = sparse_sum(ind1, abs_data1, ind2, abs_data2) + denom_data = 1.0 / denom_data + numer_inds, numer_data = sparse_diff(ind1, data1, ind2, data2) + numer_data = np.abs(numer_data) + + val_inds, val_data = sparse_mul(numer_inds, numer_data, denom_inds, denom_data) + + return np.sum(val_data) + + +@numba.njit() +def sparse_bray_curtis(ind1, data1, ind2, data2): # pragma: no cover + denom_inds, denom_data = sparse_sum(ind1, data1, ind2, data2) + denom_data = np.abs(denom_data) + + if denom_data.shape[0] == 0: + return 0.0 + + denominator = np.sum(denom_data) + + if denominator == 0: + return 0.0 + + numer_inds, numer_data = sparse_diff(ind1, data1, ind2, data2) + numer_data = np.abs(numer_data) + + numerator = np.sum(numer_data) + + return float(numerator) / denominator + + +@numba.njit() +def sparse_jaccard(ind1, data1, ind2, data2): + num_non_zero = arr_union(ind1, ind2).shape[0] + num_equal = arr_intersect(ind1, ind2).shape[0] + + if num_non_zero == 0: + return 0.0 + else: + return float(num_non_zero - num_equal) / num_non_zero + + +@numba.njit() +def sparse_matching(ind1, data1, ind2, data2, n_features): + num_true_true = arr_intersect(ind1, ind2).shape[0] + num_non_zero = arr_union(ind1, ind2).shape[0] + num_not_equal = num_non_zero - num_true_true + + return float(num_not_equal) / n_features + + +@numba.njit() +def sparse_dice(ind1, data1, ind2, data2): + num_true_true = arr_intersect(ind1, ind2).shape[0] + num_non_zero = arr_union(ind1, ind2).shape[0] + num_not_equal = num_non_zero - num_true_true + + if num_not_equal == 0.0: + return 0.0 + else: + return num_not_equal / (2.0 * num_true_true + num_not_equal) + + +@numba.njit() +def sparse_kulsinski(ind1, data1, ind2, data2, n_features): + num_true_true = arr_intersect(ind1, ind2).shape[0] + num_non_zero = arr_union(ind1, ind2).shape[0] + num_not_equal = num_non_zero - num_true_true + + if num_not_equal == 0: + return 0.0 + else: + return float(num_not_equal - num_true_true + n_features) / ( + num_not_equal + n_features + ) + + +@numba.njit() +def sparse_rogers_tanimoto(ind1, data1, ind2, data2, n_features): + num_true_true = arr_intersect(ind1, ind2).shape[0] + num_non_zero = arr_union(ind1, ind2).shape[0] + num_not_equal = num_non_zero - num_true_true + + return (2.0 * num_not_equal) / (n_features + num_not_equal) + + +@numba.njit() +def sparse_russellrao(ind1, data1, ind2, data2, n_features): + if ind1.shape[0] == ind2.shape[0] and np.all(ind1 == ind2): + return 0.0 + + num_true_true = arr_intersect(ind1, ind2).shape[0] + + if num_true_true == np.sum(data1 != 0) and num_true_true == np.sum(data2 != 0): + return 0.0 + else: + return float(n_features - num_true_true) / (n_features) + + +@numba.njit() +def sparse_sokal_michener(ind1, data1, ind2, data2, n_features): + num_true_true = arr_intersect(ind1, ind2).shape[0] + num_non_zero = arr_union(ind1, ind2).shape[0] + num_not_equal = num_non_zero - num_true_true + + return (2.0 * num_not_equal) / (n_features + num_not_equal) + + +@numba.njit() +def sparse_sokal_sneath(ind1, data1, ind2, data2): + num_true_true = arr_intersect(ind1, ind2).shape[0] + num_non_zero = arr_union(ind1, ind2).shape[0] + num_not_equal = num_non_zero - num_true_true + + if num_not_equal == 0.0: + return 0.0 + else: + return num_not_equal / (0.5 * num_true_true + num_not_equal) + + +@numba.njit() +def sparse_cosine(ind1, data1, ind2, data2): + aux_inds, aux_data = sparse_mul(ind1, data1, ind2, data2) + result = 0.0 + norm1 = norm(data1) + norm2 = norm(data2) + + for i in range(aux_data.shape[0]): + result += aux_data[i] + + if norm1 == 0.0 and norm2 == 0.0: + return 0.0 + elif norm1 == 0.0 or norm2 == 0.0: + return 1.0 + else: + return 1.0 - (result / (norm1 * norm2)) + + +@numba.njit() +def sparse_hellinger(ind1, data1, ind2, data2): + aux_inds, aux_data = sparse_mul(ind1, data1, ind2, data2) + result = 0.0 + norm1 = np.sum(data1) + norm2 = np.sum(data2) + sqrt_norm_prod = np.sqrt(norm1 * norm2) + + for i in range(aux_data.shape[0]): + result += np.sqrt(aux_data[i]) + + if norm1 == 0.0 and norm2 == 0.0: + return 0.0 + elif norm1 == 0.0 or norm2 == 0.0: + return 1.0 + elif result > sqrt_norm_prod: + return 0.0 + else: + return np.sqrt(1.0 - (result / sqrt_norm_prod)) + + +@numba.njit() +def sparse_correlation(ind1, data1, ind2, data2, n_features): + + mu_x = 0.0 + mu_y = 0.0 + dot_product = 0.0 + + if ind1.shape[0] == 0 and ind2.shape[0] == 0: + return 0.0 + elif ind1.shape[0] == 0 or ind2.shape[0] == 0: + return 1.0 + + for i in range(data1.shape[0]): + mu_x += data1[i] + for i in range(data2.shape[0]): + mu_y += data2[i] + + mu_x /= n_features + mu_y /= n_features + + shifted_data1 = np.empty(data1.shape[0], dtype=np.float32) + shifted_data2 = np.empty(data2.shape[0], dtype=np.float32) + + for i in range(data1.shape[0]): + shifted_data1[i] = data1[i] - mu_x + for i in range(data2.shape[0]): + shifted_data2[i] = data2[i] - mu_y + + norm1 = np.sqrt( + (norm(shifted_data1) ** 2) + (n_features - ind1.shape[0]) * (mu_x**2) + ) + norm2 = np.sqrt( + (norm(shifted_data2) ** 2) + (n_features - ind2.shape[0]) * (mu_y**2) + ) + + dot_prod_inds, dot_prod_data = sparse_mul(ind1, shifted_data1, ind2, shifted_data2) + + common_indices = set(dot_prod_inds) + + for i in range(dot_prod_data.shape[0]): + dot_product += dot_prod_data[i] + + for i in range(ind1.shape[0]): + if ind1[i] not in common_indices: + dot_product -= shifted_data1[i] * (mu_y) + + for i in range(ind2.shape[0]): + if ind2[i] not in common_indices: + dot_product -= shifted_data2[i] * (mu_x) + + all_indices = arr_union(ind1, ind2) + dot_product += mu_x * mu_y * (n_features - all_indices.shape[0]) + + if norm1 == 0.0 and norm2 == 0.0: + return 0.0 + elif dot_product == 0.0: + return 1.0 + else: + return 1.0 - (dot_product / (norm1 * norm2)) + + +@numba.njit() +def approx_log_Gamma(x): + if x == 1: + return 0 + # x2= 1/(x*x); + return ( + x * np.log(x) - x + 0.5 * np.log(2.0 * np.pi / x) + 1.0 / (x * 12.0) + ) # + x2*(-1.0/360.0 + x2* (1.0/1260.0 + x2*(-1.0/(1680.0) + + +# + x2*(1.0/1188.0 + x2*(-691.0/360360.0 + x2*(1.0/156.0 + x2*(-3617.0/122400.0 + x2*(43687.0/244188.0 + x2*(-174611.0/125400.0) +# + x2*(77683.0/5796.0 + x2*(-236364091.0/1506960.0 + x2*(657931.0/300.0)))))))))))) + + +@numba.njit() +def log_beta(x, y): + a = min(x, y) + b = max(x, y) + if b < 5: + value = -np.log(b) + for i in range(1, int(a)): + value += np.log(i) - np.log(b + i) + return value + else: + return approx_log_Gamma(x) + approx_log_Gamma(y) - approx_log_Gamma(x + y) + + +@numba.njit() +def log_single_beta(x): + return ( + np.log(2.0) * (-2.0 * x + 0.5) + 0.5 * np.log(2.0 * np.pi / x) + 0.125 / x + ) # + x2*(-1.0/192.0 + x2* (1.0/640.0 + x2*(-17.0/(14336.0) + + +# + x2*(31.0/18432.0 + x2*(-691.0/180224.0 + x2*(5461.0/425984.0 + x2*(-929569.0/15728640.0 + x2*(3189151.0/8912896.0 + x2*(-221930581.0/79691776.0) +# + x2*(4722116521.0/176160768.0 + x2*(-968383680827.0/3087007744.0 + x2*(14717667114151.0/3355443200.0 )))))))))))) + + +@numba.njit() +def sparse_ll_dirichlet(ind1, data1, ind2, data2): + # The probability of rolling data2 in sum(data2) trials on a die that rolled data1 in sum(data1) trials + n1 = np.sum(data1) + n2 = np.sum(data2) + + if n1 == 0 and n2 == 0: + return 0.0 + elif n1 == 0 or n2 == 0: + return 1e8 + + log_b = 0.0 + i1 = 0 + i2 = 0 + while i1 < ind1.shape[0] and i2 < ind2.shape[0]: + j1 = ind1[i1] + j2 = ind2[i2] + + if j1 == j2: + if data1[i1] * data2[i2] != 0: + log_b += log_beta(data1[i1], data2[i2]) + i1 += 1 + i2 += 1 + elif j1 < j2: + i1 += 1 + else: + i2 += 1 + + self_denom1 = 0.0 + for d1 in data1: + + self_denom1 += log_single_beta(d1) + + self_denom2 = 0.0 + for d2 in data2: + self_denom2 += log_single_beta(d2) + + return np.sqrt( + 1.0 / n2 * (log_b - log_beta(n1, n2) - (self_denom2 - log_single_beta(n2))) + + 1.0 / n1 * (log_b - log_beta(n2, n1) - (self_denom1 - log_single_beta(n1))) + ) + + +sparse_named_distances = { + # general minkowski distances + "euclidean": sparse_euclidean, + "manhattan": sparse_manhattan, + "l1": sparse_manhattan, + "taxicab": sparse_manhattan, + "chebyshev": sparse_chebyshev, + "linf": sparse_chebyshev, + "linfty": sparse_chebyshev, + "linfinity": sparse_chebyshev, + "minkowski": sparse_minkowski, + # Other distances + "canberra": sparse_canberra, + "ll_dirichlet": sparse_ll_dirichlet, + "braycurtis": sparse_bray_curtis, + # Binary distances + "hamming": sparse_hamming, + "jaccard": sparse_jaccard, + "dice": sparse_dice, + "matching": sparse_matching, + "kulsinski": sparse_kulsinski, + "rogerstanimoto": sparse_rogers_tanimoto, + "russellrao": sparse_russellrao, + "sokalmichener": sparse_sokal_michener, + "sokalsneath": sparse_sokal_sneath, + "cosine": sparse_cosine, + "correlation": sparse_correlation, + "hellinger": sparse_hellinger, +} + +sparse_need_n_features = ( + "hamming", + "matching", + "kulsinski", + "rogerstanimoto", + "russellrao", + "sokalmichener", + "correlation", +) + +SPARSE_SPECIAL_METRICS = { + sparse_hellinger: "hellinger", + sparse_ll_dirichlet: "ll_dirichlet", +} diff --git a/shared/package-files/6f/6f196d523cd43d028f760919b3a49416354c8ca39a383ea49f491cf874216109/summary2.py b/shared/package-files/6f/6f196d523cd43d028f760919b3a49416354c8ca39a383ea49f491cf874216109/summary2.py new file mode 100644 index 0000000000000000000000000000000000000000..c07ce62c1a6d91600a489042abcb46551b2b7fab --- /dev/null +++ b/shared/package-files/6f/6f196d523cd43d028f760919b3a49416354c8ca39a383ea49f491cf874216109/summary2.py @@ -0,0 +1,885 @@ +from statsmodels.compat.pandas import FUTURE_STACK +from statsmodels.compat.python import lzip + +import datetime +from functools import reduce +import re +import textwrap + +import numpy as np +import pandas as pd + +from .table import SimpleTable +from .tableformatting import fmt_latex, fmt_txt + + +class Summary: + """ + Result summary + + Construction does not take any parameters. Tables and text can be added + with the `add_` methods. + + Attributes + ---------- + tables : list + List of tables added with `add_df`, `add_array` or `add_dict`. + settings : list of dict + Formatting settings associated with each entry in `tables`. + extra_txt : list of str + Extra lines that are added to the text output. + title : str + Title of the summary table. + """ + def __init__(self): + self.tables = [] + self.settings = [] + self.extra_txt = [] + self.title = None + self._merge_latex = False + + def __str__(self): + return self.as_text() + + def __repr__(self): + return str(type(self)) + '\n"""\n' + self.__str__() + '\n"""' + + def _repr_html_(self): + """Display as HTML in IPython notebook""" + return self.as_html() + + def _repr_latex_(self): + """Display as LaTeX when converting IPython notebook to PDF""" + return self.as_latex() + + def add_df(self, df, index=True, header=True, float_format="%.4f", + align="r"): + """ + Add the contents of a DataFrame to summary table + + Parameters + ---------- + df : DataFrame + The DataFrame to add to the summary table. + index : bool, optional + Reproduce the DataFrame row labels in summary table + header : bool, optional + Reproduce the DataFrame column labels in summary table + float_format : str, optional + Formatting to float data columns + align : str, optional + Data alignment (l/c/r) + """ + + settings = {"index": index, "header": header, + "float_format": float_format, "align": align} + self.tables.append(df) + self.settings.append(settings) + + def add_array(self, array, align="r", float_format="%.4f"): + """ + Add the contents of a Numpy array to summary table + + Parameters + ---------- + array : array_like + A 2D array of values. + align : str, optional + Data alignment (l/c/r) + float_format : str, optional + Formatting to array if type is float + """ + + table = pd.DataFrame(array) + self.add_df(table, index=False, header=False, + float_format=float_format, align=align) + + def add_dict(self, d, ncols=2, align="l", float_format="%.4f"): + """ + Add the contents of a Dict to summary table + + Parameters + ---------- + d : dict + Keys and values are automatically coerced to strings with str(). + Users are encouraged to format them before using add_dict. + ncols : int, optional + Number of columns of the output table + align : str, optional + Data alignment (l/c/r) + float_format : str, optional + Formatting to float data columns + """ + + keys = [_formatter(x, float_format) for x in d.keys()] + vals = [_formatter(x, float_format) for x in d.values()] + data = np.array(lzip(keys, vals)) + + if data.shape[0] % ncols != 0: + pad = ncols - (data.shape[0] % ncols) + data = np.vstack([data, np.array(pad * [["", ""]])]) + + data = np.split(data, ncols) + data = reduce(lambda x, y: np.hstack([x, y]), data) + self.add_array(data, align=align) + + def add_text(self, string): + """ + Append a note to the bottom of the summary table + + Parameters + ---------- + string : str + The note to append. + + Notes + ----- + In ASCII tables, the note will be wrapped to table width. Notes are + not indented. + """ + self.extra_txt.append(string) + + def add_title(self, title=None, results=None): + """ + Insert a title on top of the summary table + + Parameters + ---------- + title : str, optional + If a string is provided, that string is printed as the title. + results : Model results instance, optional + If no title string is provided but a results instance is + provided, statsmodels attempts to construct a useful title + automatically. + """ + if isinstance(title, str): + self.title = title + elif results is not None: + model = results.model.__class__.__name__ + if model in _model_types: + model = _model_types[model] + self.title = "Results: " + model + else: + self.title = "" + + def add_base(self, results, alpha=0.05, float_format="%.4f", title=None, + xname=None, yname=None): + """ + Try to construct a basic summary instance + + Parameters + ---------- + results : Model results instance + The result instance to summarize. + alpha : float, optional + Significance level for the confidence intervals. + float_format : str, optional + Float formatting for summary of parameters. + title : str, optional + Title of the summary table. + xname : list of str, optional + Names of the independent variables. Must have length equal to + the number of parameters. + yname : str, optional + Name of the dependent variable. + """ + + param = summary_params(results, alpha=alpha, use_t=results.use_t) + info = summary_model(results) + if xname is not None: + param.index = xname + if yname is not None: + info["Dependent Variable:"] = yname + self.add_dict(info, align="l") + self.add_df(param, float_format=float_format) + self.add_title(title=title, results=results) + + def as_text(self): + """Generate ASCII summary table""" + + tables = self.tables + settings = self.settings + title = self.title + extra_txt = self.extra_txt + + pad_col, pad_index, widest = _measure_tables(tables, settings) + + rule_equal = widest * "=" + + simple_tables = _simple_tables(tables, settings, pad_col, pad_index) + tab = [x.as_text() for x in simple_tables] + + tab = "\n".join(tab) + tab = tab.split("\n") + tab[0] = rule_equal + tab.append(rule_equal) + tab = "\n".join(tab) + + if title is not None: + if len(title) < widest: + title = " " * int(widest / 2 - len(title) / 2) + title + else: + title = "" + + txt = [textwrap.wrap(x, widest) for x in extra_txt] + txt = ["\n".join(x) for x in txt] + txt = "\n".join(txt) + + out = f"{title}\n{tab}\n{txt}" + + return out + + def as_html(self): + """Generate HTML summary table""" + + tables = self.tables + settings = self.settings + + simple_tables = _simple_tables(tables, settings) + tab = [x.as_html() for x in simple_tables] + tab = "\n".join(tab) + + temp_txt = [st.replace("\n", "
\n")for st in self.extra_txt] + txt = "
\n".join(temp_txt) + + out = f"{tab}
\n{txt}" + + return out + + def as_latex(self, label=""): + """ + Generate LaTeX summary table + + Parameters + ---------- + label : str, optional + Label of the summary table that can be referenced + in a latex document. + """ + tables = self.tables + settings = self.settings + title = self.title + + if title is not None: + title = "\\caption{" + title + "}" + else: + title = "\\caption{}" + + label = "\\label{" + label + "}" + + simple_tables = _simple_tables(tables, settings) + tab = [x.as_latex_tabular() for x in simple_tables] + tab = "\n\n".join(tab) + + to_replace = ("\\\\hline\\n\\\\hline\\n\\\\" + "end{tabular}\\n\\\\begin{tabular}{.*}\\n") + + if self._merge_latex: + # create single tabular object for summary_col + tab = re.sub(to_replace, r"\\midrule\n", tab) + + non_captioned = "\\begin{table}", title, label, tab, "\\end{table}" + non_captioned = "\n".join(non_captioned) + + txt = " \\newline \n".join(self.extra_txt) + out = non_captioned + "\n\\bigskip\n" + txt + + return out + + +def _measure_tables(tables, settings): + """ + Compare width of ascii tables in a list and calculate padding values + + We add space to each col_sep to get us as close as possible to the + width of the largest table. Then, we add a few spaces to the first + column to pad the rest. + + Parameters + ---------- + tables : list of DataFrame + The tables that will be rendered. + settings : list of dict + Formatting settings associated with each entry in `tables`. + + Returns + ------- + pad_sep : list of int + Padding to add to the column separator of each table. + pad_index : list of int + Padding to add to the index column of each table. + max_length : int + The width, in characters, of the widest table. + """ + + simple_tables = _simple_tables(tables, settings) + tab = [x.as_text() for x in simple_tables] + + length = [len(x.splitlines()[0]) for x in tab] + len_max = max(length) + pad_sep = [] + pad_index = [] + + for i in range(len(tab)): + nsep = max(tables[i].shape[1] - 1, 1) + pad = int((len_max - length[i]) / nsep) + pad_sep.append(pad) + len_new = length[i] + nsep * pad + pad_index.append(len_max - len_new) + + return pad_sep, pad_index, max(length) + + +# Useful stuff # TODO: be more specific +_model_types = {"OLS": "Ordinary least squares", + "GLS": "Generalized least squares", + "GLSAR": "Generalized least squares with AR(p)", + "WLS": "Weighted least squares", + "RLM": "Robust linear model", + "NBin": "Negative binomial model", + "GLM": "Generalized linear model" + } + + +def summary_model(results): + """ + Create a dict with information about the model + + Parameters + ---------- + results : Model results instance + The result instance to summarize. + + Returns + ------- + dict + Dictionary of model information, such as the model class, the + dependent variable and the number of observations. Keys that + cannot be constructed for the given results instance (for example + because the underlying attribute does not exist) are omitted. + """ + + def time_now(*args, **kwds): + now = datetime.datetime.now() + return now.strftime("%Y-%m-%d %H:%M") + + info = {} + info["Model:"] = lambda x: x.model.__class__.__name__ + info["Model Family:"] = lambda x: x.family.__class__.__name__ + info["Link Function:"] = lambda x: x.family.link.__class__.__name__ + info["Dependent Variable:"] = lambda x: x.model.endog_names + info["Date:"] = time_now + info["No. Observations:"] = lambda x: f"{int(x.nobs):#6d}" + info["Df Model:"] = lambda x: f"{int(x.df_model):#6d}" + info["Df Residuals:"] = lambda x: f"{int(x.df_resid):#6d}" + info["Converged:"] = lambda x: x.mle_retvals["converged"] + info["No. Iterations:"] = lambda x: x.mle_retvals["iterations"] + info["Method:"] = lambda x: x.method + info["Norm:"] = lambda x: x.fit_options["norm"] + info["Scale Est.:"] = lambda x: x.fit_options["scale_est"] + info["Cov. Type:"] = lambda x: x.fit_options["cov"] + + rsquared_type = "" if results.k_constant else " (uncentered)" + info["R-squared" + rsquared_type + ":"] = lambda x: f"{x.rsquared:#8.3f}" + info["Adj. R-squared" + rsquared_type + ":"] = lambda x: f"{x.rsquared_adj:#8.3f}" + info["Pseudo R-squared:"] = lambda x: f"{x.prsquared:#8.3f}" + info["AIC:"] = lambda x: f"{x.aic:8.4f}" + info["BIC:"] = lambda x: f"{x.bic:8.4f}" + info["Log-Likelihood:"] = lambda x: f"{x.llf:#8.5g}" + info["LL-Null:"] = lambda x: f"{x.llnull:#8.5g}" + info["LLR p-value:"] = lambda x: f"{x.llr_pvalue:#8.5g}" + info["Deviance:"] = lambda x: f"{x.deviance:#8.5g}" + info["Pearson chi2:"] = lambda x: f"{x.pearson_chi2:#6.3g}" + info["F-statistic:"] = lambda x: f"{x.fvalue:#8.4g}" + info["Prob (F-statistic):"] = lambda x: f"{x.f_pvalue:#6.3g}" + info["Scale:"] = lambda x: f"{x.scale:#8.5g}" + out = {} + for key, func in info.items(): + try: + out[key] = func(results) + except (AttributeError, KeyError, NotImplementedError): + # NOTE: some models do not have loglike defined (RLM), + # so raise NotImplementedError + pass + return out + + +def summary_params(results, yname=None, xname=None, alpha=.05, use_t=True, + skip_header=False, float_format="%.4f"): + """ + Create a summary table of parameters from results instance + + Parameters + ---------- + results : results instance + some required information is directly taken from the result + instance. May also be a tuple of + (results, params, bse, tvalues, pvalues, conf_int) for + multivariate endog. + yname : str, optional + optional name for the endogenous variable, default is "y" + xname : list of str, optional + optional names for the exogenous variables, default is "var_xx" + alpha : float, optional + significance level for the confidence intervals + use_t : bool, optional + indicator whether the p-values are based on the Student-t + distribution (if True) or on the normal distribution (if False) + skip_header : bool, optional + If false (default), then the header row is added. If true, then no + header row is added. + float_format : str, optional + float formatting options (e.g., ".3g") + + Returns + ------- + params_table : DataFrame + DataFrame with the coefficient, standard error, test statistic, + p-value and confidence interval columns. + """ + + if isinstance(results, tuple): + results, params, bse, tvalues, pvalues, conf_int = results + else: + params = results.params + bse = results.bse + tvalues = results.tvalues + pvalues = results.pvalues + conf_int = results.conf_int(alpha) + + data = np.array([params, bse, tvalues, pvalues]).T + data = np.hstack([data, conf_int]) + data = pd.DataFrame(data) + + if use_t: + data.columns = ["Coef.", "Std.Err.", "t", "P>|t|", + "[" + str(alpha / 2), str(1 - alpha / 2) + "]"] + else: + data.columns = ["Coef.", "Std.Err.", "z", "P>|z|", + "[" + str(alpha / 2), str(1 - alpha / 2) + "]"] + + if not xname: + try: + data.index = results.model.data.param_names + except AttributeError: + data.index = results.model.exog_names + else: + data.index = xname + + return data + + +# Vertical summary instance for multiple models +def _col_params(result, float_format="%.4f", stars=True, include_r2=False): + """ + Stack coefficients and standard errors in single column + + Parameters + ---------- + result : Model results instance + The result instance to summarize. + float_format : str, optional + Formatting to apply to coefficients and standard errors. + stars : bool, optional + If True, append significance stars to the coefficients. + include_r2 : bool, optional + If True, include R-squared and adjusted R-squared in the column. + + Returns + ------- + DataFrame + Single-column DataFrame with coefficients and standard errors + stacked into a single index. + """ + + # Extract parameters + res = summary_params(result) + # Format float + for col in res.columns[:2]: + res[col] = res[col].apply(lambda x: float_format % x) + # Std.Errors in parentheses + res.iloc[:, 1] = "(" + res.iloc[:, 1] + ")" + # Significance stars + if stars: + idx = res.iloc[:, 3] < .1 + res.loc[idx, res.columns[0]] = res.loc[idx, res.columns[0]] + "*" + idx = res.iloc[:, 3] < .05 + res.loc[idx, res.columns[0]] = res.loc[idx, res.columns[0]] + "*" + idx = res.iloc[:, 3] < .01 + res.loc[idx, res.columns[0]] = res.loc[idx, res.columns[0]] + "*" + # Stack Coefs and Std.Errors + res = res.iloc[:, :2] + res = res.stack(**FUTURE_STACK) + + # Add R-squared + if include_r2: + rsquared = getattr(result, "rsquared", np.nan) + rsquared_adj = getattr(result, "rsquared_adj", np.nan) + r2 = pd.Series({("R-squared", ""): rsquared, + ("R-squared Adj.", ""): rsquared_adj}) + + if r2.notna().any(): + r2 = r2.apply(lambda x: float_format % x) + res = pd.concat([res, r2], axis=0) + + res = pd.DataFrame(res) + res.columns = [str(result.model.endog_names)] + return res + + +def _col_info(result, info_dict=None): + """ + Stack model info in a column + + Parameters + ---------- + result : Model results instance + The result instance to summarize. + info_dict : dict, optional + Dict of functions to be applied to `result` to retrieve model + info, keyed by the label to use for each row. If None, an empty + dict is used and no rows are added. + + Returns + ------- + DataFrame + Single-column DataFrame with the computed model info. + """ + + if info_dict is None: + info_dict = {} + out = [] + index = [] + for i in info_dict: + if isinstance(info_dict[i], dict): + # this is a specific model info_dict, but not for this result... + continue + try: + out.append(info_dict[i](result)) + except AttributeError: + out.append("") + index.append(i) + out = pd.DataFrame({str(result.model.endog_names): out}, index=index) + return out + + +def _make_unique(list_of_names): + """ + Ensure a list of names contains no duplicates + + Parameters + ---------- + list_of_names : list of str + The candidate names. + + Returns + ------- + list of str + `list_of_names` unchanged if all entries are already unique. + Otherwise, a list of the same length where repeated names have + had roman-numeral-like "I" suffixes appended to disambiguate them + (pandas does not allow duplicate column names when merging). + """ + if len(set(list_of_names)) == len(list_of_names): + return list_of_names + # pandas does not like it if multiple columns have the same names + from collections import defaultdict + name_counter = defaultdict(str) + header = [] + for _name in list_of_names: + name_counter[_name] += "I" + header.append(_name + " " + name_counter[_name]) + return header + + +def summary_col(results, float_format="%.4f", model_names=(), stars=False, + info_dict=None, regressor_order=(), drop_omitted=False, + include_r2=True, fixed_effects=None, fe_present="Yes", + fe_absent=""): + """ + Summarize multiple results instances side-by-side (coefs and SEs) + + Parameters + ---------- + results : statsmodels results instance or list of result instances + The results to summarize side-by-side. + float_format : str, optional + float format for coefficients and standard errors + Default : '%.4f' + model_names : list of str, optional + Must have same length as the number of results. If the names are not + unique, a roman number will be appended to all model names + stars : bool, optional + print significance stars + info_dict : dict, optional + dict of functions to be applied to results instances to retrieve + model info. To use specific information for different models, add a + (nested) info_dict with model name as the key. + Example: `info_dict = {"N":lambda x:(x.nobs), "R2": ..., "OLS":{ + "R2":...}}` would only show `R2` for OLS regression models, but + additionally `N` for all other results. + Default : None (use the info_dict specified in + result.default_model_infos, if this property exists) + regressor_order : list of str, optional + list of names of the regressors in the desired order. All regressors + not specified will be appended to the end of the list. + drop_omitted : bool, optional + Includes regressors that are not specified in regressor_order. If + False, regressors not specified will be appended to end of the list. + If True, only regressors in regressor_order will be included. + include_r2 : bool, optional + Includes R2 and adjusted R2 in the summary table. + fixed_effects : list of str, optional + List of categorical variables for which to indicate presence of + fixed effects. + fe_present : str, optional + String to indicate the presence of fixed effects. Default is "Yes". + fe_absent : str, optional + String to indicate the absence of fixed effects. Default is empty + string. + + Returns + ------- + Summary + Summary instance containing a single table with the coefficients + and standard errors of all results, side-by-side. + """ + + if not isinstance(results, list): + results = [results] + + cols = [_col_params(x, stars=stars, float_format=float_format, + include_r2=include_r2) for x in results] + + # Unique column names (pandas has problems merging otherwise) + if model_names: + colnames = _make_unique(model_names) + else: + colnames = _make_unique([x.columns[0] for x in cols]) + for i in range(len(cols)): + cols[i].columns = [colnames[i]] + + def merg(x, y): + return x.merge(y, how="outer", right_index=True, left_index=True) + + # Changes due to how pandas 2.2.0 handles merge + index = list(cols[0].index) + for col in cols[1:]: + for key in col.index: + if key not in index: + index.append(key) + for special in (("R-squared", ""), ("R-squared Adj.", "")): + if special in index: + index.remove(special) + index.insert(len(index), special) + + summ = reduce(merg, cols) + summ = summ.reindex(index) + + if regressor_order: + varnames = summ.index.get_level_values(0).tolist() + vc = pd.Series(varnames).value_counts() + varnames = vc.loc[vc == 2].index.tolist() + ordered = [x for x in regressor_order if x in varnames] + unordered = [x for x in varnames if x not in regressor_order] + new_order = ordered + unordered + other = [x for x in summ.index.get_level_values(0) + if x not in new_order] + new_order += other + if drop_omitted: + for uo in unordered: + new_order.remove(uo) + summ = summ.reindex(new_order, level=0) + + idx = [] + index = summ.index.get_level_values(0) + for i in range(0, index.shape[0], 2): + idx.append(index[i]) + if (i + 1) < index.shape[0] and (index[i] == index[i + 1]): + idx.append("") + else: + idx.append(index[i + 1]) + summ.index = idx + + # add fixed effects info + if fixed_effects: + if not info_dict: + info_dict = {} + + for fe in fixed_effects: + info_dict[fe + " FE"] = ( + lambda x, fe=fe, fe_present=fe_present, fe_absent=fe_absent: + fe_present + if any((f"C({fe})" in param) for param in x.params.index) + else fe_absent + ) + + # add infos about the models. + if info_dict: + cols = [_col_info(x, info_dict.get(x.model.__class__.__name__, + info_dict)) for x in results] + else: + cols = [_col_info(x, getattr(x, "default_model_infos", None)) for x in + results] + # use unique column names, otherwise the merge will not succeed + for df, name in zip(cols, _make_unique([df.columns[0] for df in cols]), strict=True): + df.columns = [name] + + info = reduce(merg, cols) + dat = pd.DataFrame(np.vstack([summ, info])) # pd.concat better, but error + dat.columns = summ.columns + dat.index = pd.Index(summ.index.tolist() + info.index.tolist()) + summ = dat + + summ = summ.fillna("") + + # fixed effects processing + if fixed_effects: + index_series = pd.Series(summ.index, index=summ.index) + skip_flag = index_series.apply( + lambda x: any((f"C({fe})" in x) for fe in fixed_effects) + ) + skip_next_flag = skip_flag.shift(fill_value=False) + final_skip = skip_flag | skip_next_flag + summ = summ[~final_skip] + + r_squared_rows = summ.index[summ.index.str.contains("R-squared")] + r_squared_section = summ.loc[r_squared_rows] + summ = summ.drop(index=r_squared_rows) + summ = pd.concat([summ, r_squared_section]) + + smry = Summary() + smry._merge_latex = True + smry.add_df(summ, header=True, align="l") + smry.add_text("Standard errors in parentheses.") + if stars: + smry.add_text("* p<.1, ** p<.05, ***p<.01") + + return smry + + +def _formatter(element, float_format="%.4f"): + """ + Format a single element as a string + + Parameters + ---------- + element : object + The value to format. Formatted as a float if possible, otherwise + converted to a string. + float_format : str, optional + The format string to apply if `element` can be formatted as a + float. + + Returns + ------- + str + The formatted, whitespace-stripped value. + """ + try: + out = float_format % element + except (ValueError, TypeError): + out = str(element) + return out.strip() + + +def _df_to_simpletable(df, align="r", float_format="%.4f", header=True, + index=True, table_dec_above="-", table_dec_below=None, + header_dec_below="-", pad_col=0, pad_index=0): + """ + Convert a DataFrame to a SimpleTable + + Parameters + ---------- + df : DataFrame + The DataFrame to convert. + align : str, optional + Data alignment (l/c/r). + float_format : str, optional + Formatting to apply to float data columns. + header : bool, optional + If True, use the DataFrame column labels as the table header. + index : bool, optional + If True, use the DataFrame row labels as the table stubs. + table_dec_above : str, optional + Character used for the decoration line above the table. + table_dec_below : str, optional + Character used for the decoration line below the table. + header_dec_below : str, optional + Character used for the decoration line below the header. + pad_col : int, optional + Extra spaces to add to the column separator. + pad_index : int, optional + Extra spaces to add after each stub. + + Returns + ------- + SimpleTable + The formatted table. + """ + dat = df.copy() + try: + dat = dat.map(lambda x: _formatter(x, float_format)) + except AttributeError: + dat = dat.applymap(lambda x: _formatter(x, float_format)) + if header: + headers = [str(x) for x in dat.columns.tolist()] + else: + headers = None + if index: + stubs = [str(x) + int(pad_index) * " " for x in dat.index.tolist()] + else: + dat.iloc[:, 0] = [str(x) + int(pad_index) * " " + for x in dat.iloc[:, 0]] + stubs = None + st = SimpleTable(np.array(dat), headers=headers, stubs=stubs, + ltx_fmt=fmt_latex, txt_fmt=fmt_txt) + st.output_formats["latex"]["data_aligns"] = align + st.output_formats["latex"]["header_align"] = align + st.output_formats["txt"]["data_aligns"] = align + st.output_formats["txt"]["table_dec_above"] = table_dec_above + st.output_formats["txt"]["table_dec_below"] = table_dec_below + st.output_formats["txt"]["header_dec_below"] = header_dec_below + st.output_formats["txt"]["colsep"] = " " * int(pad_col + 1) + return st + + +def _simple_tables(tables, settings, pad_col=None, pad_index=None): + """ + Convert a list of DataFrames to a list of SimpleTable instances + + Parameters + ---------- + tables : list of DataFrame + The tables to convert. + settings : list of dict + Formatting settings associated with each entry in `tables`, as + used by `add_df`. + pad_col : list of int, optional + Extra spaces to add to the column separator of each table. If + None, no extra padding is added. + pad_index : list of int, optional + Extra spaces to add after each stub of each table. If None, no + extra padding is added. + + Returns + ------- + list of SimpleTable + The formatted tables. + """ + simple_tables = [] + float_format = settings[0]["float_format"] if settings else "%.4f" + if pad_col is None: + pad_col = [0] * len(tables) + if pad_index is None: + pad_index = [0] * len(tables) + for i, v in enumerate(tables): + index = settings[i]["index"] + header = settings[i]["header"] + align = settings[i]["align"] + simple_tables.append(_df_to_simpletable(v, align=align, + float_format=float_format, + header=header, index=index, + pad_col=pad_col[i], + pad_index=pad_index[i])) + return simple_tables diff --git a/shared/package-files/6f/6f199237a6b0f95deac1285247cda093697f66b085d0a19084fddb691a3b4cf1/_markupbase.pyi b/shared/package-files/6f/6f199237a6b0f95deac1285247cda093697f66b085d0a19084fddb691a3b4cf1/_markupbase.pyi new file mode 100644 index 0000000000000000000000000000000000000000..d8bc79f34e8cf90ae211b8d3df995532bf0cd5b0 --- /dev/null +++ b/shared/package-files/6f/6f199237a6b0f95deac1285247cda093697f66b085d0a19084fddb691a3b4cf1/_markupbase.pyi @@ -0,0 +1,8 @@ +from typing import Tuple + +class ParserBase: + def __init__(self) -> None: ... + def error(self, message: str) -> None: ... + def reset(self) -> None: ... + def getpos(self) -> Tuple[int, int]: ... + def unknown_decl(self, data: str) -> None: ... diff --git a/shared/package-files/6f/6f1b215a0855c026b07557eb35d5cba878f950ea5a3f3d5a0240744f7c61ff74/core.py b/shared/package-files/6f/6f1b215a0855c026b07557eb35d5cba878f950ea5a3f3d5a0240744f7c61ff74/core.py new file mode 100644 index 0000000000000000000000000000000000000000..748f0518d4f941c6edb1cd95bc4273ded8f14455 --- /dev/null +++ b/shared/package-files/6f/6f1b215a0855c026b07557eb35d5cba878f950ea5a3f3d5a0240744f7c61ff74/core.py @@ -0,0 +1,449 @@ +import ast +import builtins +import operator +from collections import ChainMap, OrderedDict, deque +from contextlib import suppress +from types import FrameType +from typing import Any, Tuple, Iterable, List, Mapping, Dict, Union, Set + +from pure_eval.my_getattr_static import getattr_static +from pure_eval.utils import ( + CannotEval, + has_ast_name, + copy_ast_without_context, + is_standard_types, + of_standard_types, + is_any, + of_type, + ensure_dict, +) + + +class Evaluator: + def __init__(self, names: Mapping[str, Any]): + """ + Construct a new evaluator with the given variable names. + This is a low level API, typically you will use `Evaluator.from_frame(frame)`. + + :param names: a mapping from variable names to their values. + """ + + self.names = names + self._cache = {} # type: Dict[ast.expr, Any] + + @classmethod + def from_frame(cls, frame: FrameType) -> 'Evaluator': + """ + Construct an Evaluator that can look up variables from the given frame. + + :param frame: a frame object, e.g. from a traceback or `inspect.currentframe().f_back`. + """ + + return cls(ChainMap( + ensure_dict(frame.f_locals), + ensure_dict(frame.f_globals), + ensure_dict(frame.f_builtins), + )) + + def __getitem__(self, node: ast.expr) -> Any: + """ + Find the value of the given node. + If it cannot be evaluated safely, this raises `CannotEval`. + The result is cached either way. + + :param node: an AST expression to evaluate + :return: the value of the node + """ + + if not isinstance(node, ast.expr): + raise TypeError("node should be an ast.expr, not {!r}".format(type(node).__name__)) + + with suppress(KeyError): + result = self._cache[node] + if result is CannotEval: + raise CannotEval + else: + return result + + try: + self._cache[node] = result = self._handle(node) + return result + except CannotEval: + self._cache[node] = CannotEval + raise + + def _handle(self, node: ast.expr) -> Any: + """ + This is where the evaluation happens. + Users should use `__getitem__`, i.e. `evaluator[node]`, + as it provides caching. + + :param node: an AST expression to evaluate + :return: the value of the node + """ + + with suppress(Exception): + return ast.literal_eval(node) + + if isinstance(node, ast.Name): + try: + return self.names[node.id] + except KeyError: + raise CannotEval + elif isinstance(node, ast.Attribute): + value = self[node.value] + attr = node.attr + return getattr_static(value, attr) + elif isinstance(node, ast.Subscript): + return self._handle_subscript(node) + elif isinstance(node, (ast.List, ast.Tuple, ast.Set, ast.Dict)): + return self._handle_container(node) + elif isinstance(node, ast.UnaryOp): + return self._handle_unary(node) + elif isinstance(node, ast.BinOp): + return self._handle_binop(node) + elif isinstance(node, ast.BoolOp): + return self._handle_boolop(node) + elif isinstance(node, ast.Compare): + return self._handle_compare(node) + elif isinstance(node, ast.Call): + return self._handle_call(node) + raise CannotEval + + def _handle_call(self, node): + if node.keywords: + raise CannotEval + func = self[node.func] + args = [self[arg] for arg in node.args] + + if ( + is_any( + func, + slice, + int, + range, + round, + complex, + list, + tuple, + abs, + hex, + bin, + oct, + bool, + ord, + float, + len, + chr, + ) + or len(args) == 0 + and is_any(func, set, dict, str, frozenset, bytes, bytearray, object) + or len(args) >= 2 + and is_any(func, str, divmod, bytes, bytearray, pow) + ): + args = [ + of_standard_types(arg, check_dict_values=False, deep=False) + for arg in args + ] + try: + return func(*args) + except Exception as e: + raise CannotEval from e + + if len(args) == 1: + arg = args[0] + if is_any(func, id, type): + try: + return func(arg) + except Exception as e: + raise CannotEval from e + if is_any(func, all, any, sum): + of_type(arg, tuple, frozenset, list, set, dict, OrderedDict, deque) + for x in arg: + of_standard_types(x, check_dict_values=False, deep=False) + try: + return func(arg) + except Exception as e: + raise CannotEval from e + + if is_any( + func, sorted, min, max, hash, set, dict, ascii, str, repr, frozenset + ): + of_standard_types(arg, check_dict_values=True, deep=True) + try: + return func(arg) + except Exception as e: + raise CannotEval from e + raise CannotEval + + def _handle_compare(self, node): + left = self[node.left] + result = True + + for op, right in zip(node.ops, node.comparators): + right = self[right] + + op_type = type(op) + op_func = { + ast.Eq: operator.eq, + ast.NotEq: operator.ne, + ast.Lt: operator.lt, + ast.LtE: operator.le, + ast.Gt: operator.gt, + ast.GtE: operator.ge, + ast.Is: operator.is_, + ast.IsNot: operator.is_not, + ast.In: (lambda a, b: a in b), + ast.NotIn: (lambda a, b: a not in b), + }[op_type] + + if op_type not in (ast.Is, ast.IsNot): + of_standard_types(left, check_dict_values=False, deep=True) + of_standard_types(right, check_dict_values=False, deep=True) + + try: + result = op_func(left, right) + except Exception as e: + raise CannotEval from e + if not result: + return result + left = right + + return result + + def _handle_boolop(self, node): + left = of_standard_types( + self[node.values[0]], check_dict_values=False, deep=False + ) + + for right in node.values[1:]: + # We need short circuiting so that the whole operation can be evaluated + # even if the right operand can't + if isinstance(node.op, ast.Or): + left = left or of_standard_types( + self[right], check_dict_values=False, deep=False + ) + else: + assert isinstance(node.op, ast.And) + left = left and of_standard_types( + self[right], check_dict_values=False, deep=False + ) + return left + + def _handle_binop(self, node): + op_type = type(node.op) + op = { + ast.Add: operator.add, + ast.Sub: operator.sub, + ast.Mult: operator.mul, + ast.Div: operator.truediv, + ast.FloorDiv: operator.floordiv, + ast.Mod: operator.mod, + ast.Pow: operator.pow, + ast.LShift: operator.lshift, + ast.RShift: operator.rshift, + ast.BitOr: operator.or_, + ast.BitXor: operator.xor, + ast.BitAnd: operator.and_, + }.get(op_type) + if not op: + raise CannotEval + left = self[node.left] + hash_type = is_any(type(left), set, frozenset, dict, OrderedDict) + left = of_standard_types(left, check_dict_values=False, deep=hash_type) + formatting = type(left) in (str, bytes) and op_type == ast.Mod + + right = of_standard_types( + self[node.right], + check_dict_values=formatting, + deep=formatting or hash_type, + ) + try: + return op(left, right) + except Exception as e: + raise CannotEval from e + + def _handle_unary(self, node: ast.UnaryOp): + value = of_standard_types( + self[node.operand], check_dict_values=False, deep=False + ) + op_type = type(node.op) + op = { + ast.USub: operator.neg, + ast.UAdd: operator.pos, + ast.Not: operator.not_, + ast.Invert: operator.invert, + }[op_type] + try: + return op(value) + except Exception as e: + raise CannotEval from e + + def _handle_subscript(self, node): + value = self[node.value] + of_standard_types( + value, check_dict_values=False, deep=is_any(type(value), dict, OrderedDict) + ) + index = node.slice + if isinstance(index, ast.Slice): + index = slice( + *[ + None if p is None else self[p] + for p in [index.lower, index.upper, index.step] + ] + ) + elif isinstance(index, ast.ExtSlice): + raise CannotEval + else: + if isinstance(index, ast.Index): + index = index.value + index = self[index] + of_standard_types(index, check_dict_values=False, deep=True) + + try: + return value[index] + except Exception: + raise CannotEval + + def _handle_container( + self, + node: Union[ast.List, ast.Tuple, ast.Set, ast.Dict] + ) -> Union[List, Tuple, Set, Dict]: + """Handle container nodes, including List, Set, Tuple and Dict""" + if isinstance(node, ast.Dict): + elts = node.keys + if None in elts: # ** unpacking inside {}, not yet supported + raise CannotEval + else: + elts = node.elts + elts = [self[elt] for elt in elts] + if isinstance(node, ast.List): + return elts + if isinstance(node, ast.Tuple): + return tuple(elts) + + # Set and Dict + if not all( + is_standard_types(elt, check_dict_values=False, deep=True) for elt in elts + ): + raise CannotEval + + if isinstance(node, ast.Set): + try: + return set(elts) + except TypeError: + raise CannotEval + + assert isinstance(node, ast.Dict) + + pairs = [(elt, self[val]) for elt, val in zip(elts, node.values)] + try: + return dict(pairs) + except TypeError: + raise CannotEval + + def find_expressions(self, root: ast.AST) -> Iterable[Tuple[ast.expr, Any]]: + """ + Find all expressions in the given tree that can be safely evaluated. + This is a low level API, typically you will use `interesting_expressions_grouped`. + + :param root: any AST node + :return: generator of pairs (tuples) of expression nodes and their corresponding values. + """ + + for node in ast.walk(root): + if not isinstance(node, ast.expr): + continue + + try: + value = self[node] + except CannotEval: + continue + + yield node, value + + def interesting_expressions_grouped(self, root: ast.AST) -> List[Tuple[List[ast.expr], Any]]: + """ + Find all interesting expressions in the given tree that can be safely evaluated, + grouping equivalent nodes together. + + For more control and details, see: + - Evaluator.find_expressions + - is_expression_interesting + - group_expressions + + :param root: any AST node + :return: A list of pairs (tuples) containing: + - A list of equivalent AST expressions + - The value of the first expression node + (which should be the same for all nodes, unless threads are involved) + """ + + return group_expressions( + pair + for pair in self.find_expressions(root) + if is_expression_interesting(*pair) + ) + + +def is_expression_interesting(node: ast.expr, value: Any) -> bool: + """ + Determines if an expression is potentially interesting, at least in my opinion. + Returns False for the following expressions whose value is generally obvious: + - Literals (e.g. 123, 'abc', [1, 2, 3], {'a': (), 'b': ([1, 2], [3])}) + - Variables or attributes whose name is equal to the value's __name__. + For example, a function `def foo(): ...` is not interesting when referred to + as `foo` as it usually would, but `bar` can be interesting if `bar is foo`. + Similarly the method `self.foo` is not interesting. + - Builtins (e.g. `len`) referred to by their usual name. + + This is a low level API, typically you will use `interesting_expressions_grouped`. + + :param node: an AST expression + :param value: the value of the node + :return: a boolean: True if the expression is interesting, False otherwise + """ + + with suppress(ValueError): + ast.literal_eval(node) + return False + + # TODO exclude inner modules, e.g. numpy.random.__name__ == 'numpy.random' != 'random' + # TODO exclude common module abbreviations, e.g. numpy as np, pandas as pd + if has_ast_name(value, node): + return False + + if ( + isinstance(node, ast.Name) + and getattr(builtins, node.id, object()) is value + ): + return False + + return True + + +def group_expressions(expressions: Iterable[Tuple[ast.expr, Any]]) -> List[Tuple[List[ast.expr], Any]]: + """ + Organise expression nodes and their values such that equivalent nodes are together. + Two nodes are considered equivalent if they have the same structure, + ignoring context (Load, Store, or Delete) and location (lineno, col_offset). + For example, this will group together the same variable name mentioned multiple times in an expression. + + This will not check the values of the nodes. Equivalent nodes should have the same values, + unless threads are involved. + + This is a low level API, typically you will use `interesting_expressions_grouped`. + + :param expressions: pairs of AST expressions and their values, as obtained from + `Evaluator.find_expressions`, or `(node, evaluator[node])`. + :return: A list of pairs (tuples) containing: + - A list of equivalent AST expressions + - The value of the first expression node + (which should be the same for all nodes, unless threads are involved) + """ + + result = {} + for node, value in expressions: + dump = ast.dump(copy_ast_without_context(node)) + result.setdefault(dump, ([], value))[0].append(node) + return list(result.values()) diff --git a/shared/package-files/6f/6f1f9355ab4656f3ecebdeaf0d2f825856dc95439dc16bd764f30917c569f468/finder.py b/shared/package-files/6f/6f1f9355ab4656f3ecebdeaf0d2f825856dc95439dc16bd764f30917c569f468/finder.py new file mode 100644 index 0000000000000000000000000000000000000000..aac587324f8187159421aca3bf2bbf1ea64cf5f9 --- /dev/null +++ b/shared/package-files/6f/6f1f9355ab4656f3ecebdeaf0d2f825856dc95439dc16bd764f30917c569f468/finder.py @@ -0,0 +1,146 @@ +""" +Searching for names with given scope and name. This is very central in Jedi and +Python. The name resolution is quite complicated with descripter, +``__getattribute__``, ``__getattr__``, ``global``, etc. + +If you want to understand name resolution, please read the first few chapters +in http://blog.ionelmc.ro/2015/02/09/understanding-python-metaclasses/. + +Flow checks ++++++++++++ + +Flow checks are not really mature. There's only a check for ``isinstance``. It +would check whether a flow has the form of ``if isinstance(a, type_or_tuple)``. +Unfortunately every other thing is being ignored (e.g. a == '' would be easy to +check for -> a is a string). There's big potential in these checks. +""" + +from parso.tree import search_ancestor +from parso.python.tree import Name + +from jedi import settings +from jedi.inference.arguments import TreeArguments +from jedi.inference.value import iterable +from jedi.inference.base_value import NO_VALUES +from jedi.parser_utils import is_scope + + +def filter_name(filters, name_or_str): + """ + Searches names that are defined in a scope (the different + ``filters``), until a name fits. + """ + string_name = name_or_str.value if isinstance(name_or_str, Name) else name_or_str + names = [] + for filter in filters: + names = filter.get(string_name) + if names: + break + + return list(_remove_del_stmt(names)) + + +def _remove_del_stmt(names): + # Catch del statements and remove them from results. + for name in names: + if name.tree_name is not None: + definition = name.tree_name.get_definition() + if definition is not None and definition.type == 'del_stmt': + continue + yield name + + +def check_flow_information(value, flow, search_name, pos): + """ Try to find out the type of a variable just with the information that + is given by the flows: e.g. It is also responsible for assert checks.:: + + if isinstance(k, str): + k. # <- completion here + + ensures that `k` is a string. + """ + if not settings.dynamic_flow_information: + return None + + result = None + if is_scope(flow): + # Check for asserts. + module_node = flow.get_root_node() + try: + names = module_node.get_used_names()[search_name.value] + except KeyError: + return None + names = reversed([ + n for n in names + if flow.start_pos <= n.start_pos < (pos or flow.end_pos) + ]) + + for name in names: + ass = search_ancestor(name, 'assert_stmt') + if ass is not None: + result = _check_isinstance_type(value, ass.assertion, search_name) + if result is not None: + return result + + if flow.type in ('if_stmt', 'while_stmt'): + potential_ifs = [c for c in flow.children[1::4] if c != ':'] + for if_test in reversed(potential_ifs): + if search_name.start_pos > if_test.end_pos: + return _check_isinstance_type(value, if_test, search_name) + return result + + +def _get_isinstance_trailer_arglist(node): + if node.type in ('power', 'atom_expr') and len(node.children) == 2: + # This might be removed if we analyze and, etc + first, trailer = node.children + if first.type == 'name' and first.value == 'isinstance' \ + and trailer.type == 'trailer' and trailer.children[0] == '(': + return trailer + return None + + +def _check_isinstance_type(value, node, search_name): + lazy_cls = None + trailer = _get_isinstance_trailer_arglist(node) + if trailer is not None and len(trailer.children) == 3: + arglist = trailer.children[1] + args = TreeArguments(value.inference_state, value, arglist, trailer) + param_list = list(args.unpack()) + # Disallow keyword arguments + if len(param_list) == 2 and len(arglist.children) == 3: + (key1, _), (key2, lazy_value_cls) = param_list + if key1 is None and key2 is None: + call = _get_call_string(search_name) + is_instance_call = _get_call_string(arglist.children[0]) + # Do a simple get_code comparison of the strings . They should + # just have the same code, and everything will be all right. + # There are ways that this is not correct, if some stuff is + # redefined in between. However here we don't care, because + # it's a heuristic that works pretty well. + if call == is_instance_call: + lazy_cls = lazy_value_cls + if lazy_cls is None: + return None + + value_set = NO_VALUES + for cls_or_tup in lazy_cls.infer(): + if isinstance(cls_or_tup, iterable.Sequence) and cls_or_tup.array_type == 'tuple': + for lazy_value in cls_or_tup.py__iter__(): + value_set |= lazy_value.infer().execute_with_values() + else: + value_set |= cls_or_tup.execute_with_values() + return value_set + + +def _get_call_string(node): + if node.parent.type == 'atom_expr': + return _get_call_string(node.parent) + + code = '' + leaf = node.get_first_leaf() + end = node.get_last_leaf().end_pos + while leaf.start_pos < end: + code += leaf.value + leaf = leaf.get_next_leaf() + return code diff --git a/shared/package-files/6f/6f1ffe84e3606231a2a8e46d18bf3181f078daaf7e133bda6ca803857677fe3f/results_simulation_smoothing3.csv b/shared/package-files/6f/6f1ffe84e3606231a2a8e46d18bf3181f078daaf7e133bda6ca803857677fe3f/results_simulation_smoothing3.csv new file mode 100644 index 0000000000000000000000000000000000000000..d715513cd7fd76fb5cb0a1854bf6f34ed9671062 --- /dev/null +++ b/shared/package-files/6f/6f1ffe84e3606231a2a8e46d18bf3181f078daaf7e133bda6ca803857677fe3f/results_simulation_smoothing3.csv @@ -0,0 +1,203 @@ +"eta1","eta2","eta3","eps1","eps2","eps3","state1","state2","state3","signal1","signal2","signal3" +0.00446139149365691,0.00499459207817594,-0.0238858468864728,-0.00711881520240865,0.00595664101319575,0.041388210148101,0.032060943020042,0.00932946770859644,0.0388244711304822,0.032060943020042,0.00932946770859644,0.0388244711304822 +0.0024996888935307,-0.00192490532213789,0.0367200222951675,-0.0108664376945501,-0.00702846952972591,-0.00131116868061842,0.00967348552486561,0.0174144473104631,-0.0708198759932329,0.00967348552486561,0.0174144473104631,-0.0708198759932329 +0.0158396170781263,0.0032201806416103,0.0578909129747329,-0.0109321650151872,-0.00946143727548138,-0.0115155894534376,0.0144266976907951,0.0105454482441608,0.0459407005774133,0.0144266976907951,0.0105454482441608,0.0459407005774133 +-0.0110888585876629,0.00387774924243901,-0.0925430953721812,-0.00203280012864836,-0.00195369257674828,0.0266748348531807,0.0242229796583576,0.0114878434710703,0.0759889332975129,0.0242229796583576,0.0114878434710703,0.0759889332975129 +-0.00844142425862857,-0.0112099397207786,0.00789774861564587,-0.0023948455011117,-0.00209975108390199,-0.0181914648193914,-0.00228970776840445,0.0146721791461102,-0.0885023803224097,-0.00228970776840445,0.0146721791461102,-0.0885023803224097 +-0.00811908056565461,-0.00582263587060487,-0.0446633344681285,-0.000455367406462458,-0.00101851519982608,-0.0422358136657567,0.00208824760529465,-0.00294941130899844,0.0362579344935205,0.00208824760529465,-0.00294941130899844,0.0362579344935205 +0.012408133371283,0.0161809599631193,0.00149186107178548,-0.00292913701799861,0.00871768073192334,-0.0845836430724973,-0.00997722292070797,-0.00737464750686947,-0.0472683747902884,-0.00997722292070797,-0.00737464750686947,-0.0472683747902884 +0.00841718720922936,0.0120447696911355,0.0068790371055034,-0.000248923754018034,-0.0109702003452086,0.0436033690079839,0.00617151501490203,0.0106905504701398,-0.0183591882420307,0.00617151501490203,0.0106905504701398,-0.0183591882420307 +0.0115018206143638,0.00388090781810345,0.0289353186248419,0.0022219872459187,-0.00455705840764286,0.0487061386855662,0.016312546911972,0.0193268993664736,0.0231277350367744,0.016312546911972,0.0193268993664736,0.0231277350367744 +0.0063925319057125,0.00186816533338386,0.00752737363934573,-0.0105109048492085,-0.0125883568674115,0.0133143406403854,0.0265425440139584,0.0174269873034774,0.0671383659685612,0.0265425440139584,0.0174269873034774,0.0671383659685612 +0.00956161572955043,0.00514468837318738,0.0448210940474657,0.000418457662719925,0.00342981427114885,-0.00803711101461326,0.0197343583863491,0.0163932477378906,0.0247742243823483,0.0197343583863491,0.0163932477378906,0.0247742243823483 +0.00918539717946409,0.00839245856265787,-0.0012780161991549,-0.00400463179504949,-0.00750496373222292,-0.00265594333634046,0.0217818910834823,0.0180961298662571,0.0605665836376175,0.0217818910834823,0.0180961298662571,0.0605665836376175 +-0.00134049463275584,-0.00713513866032202,0.0216469864957042,-0.0124878524959287,-0.00989762483066822,-0.0408229528685938,0.0234683678470784,0.0221138586186479,0.0311071048474231,0.0234683678470784,0.0221138586186479,0.0311071048474231 +0.000556423366013898,0.00622959960706697,-0.0107065353122605,-0.00623796947859999,-0.0014849316354356,-0.0342578917772042,0.0154420366928638,0.00954695834119704,0.0519918629201767,0.0154420366928638,0.00954695834119704,0.0519918629201767 +0.00759242669141373,0.00549319044301942,0.0246285750915175,-0.0057006057198136,-7.80616944939475e-05,-0.0368542412470043,0.00812762443469398,0.0141606138669476,0.00270726189031629,0.00812762443469398,0.0141606138669476,0.00270726189031629 +0.00401651587269019,0.0024598656691797,0.0329225062393469,-0.00571579155070674,-0.00794674927958738,-0.00449645617476639,0.0187010020046893,0.014659043587352,0.0585035529690744,0.0187010020046893,0.014659043587352,0.0585035529690744 +0.00746274154490717,0.00682797457987896,0.0339399565112597,-0.00324089986675857,-0.00418519558331865,-0.0455504155295839,0.0156937344602317,0.0136894728655627,0.060018117565681,0.0156937344602317,0.0136894728655627,0.060018117565681 +-0.00663867751438773,0.000919721684080358,-0.0395660006762743,-4.03661728939709e-05,-0.00324077726046069,-0.0352838538826327,0.0186944069122438,0.0167561938839699,0.0673731947145335,0.0186944069122438,0.0167561938839699,0.0673731947145335 +0.00701097924964773,0.00424703950286909,0.0190737642824903,0.000552460272459301,-0.00469289710977477,0.0119668370661453,0.00702140151705678,0.0130420162784199,0.00026566384431654,0.00702140151705678,0.0130420162784199,0.00026566384431654 +-0.00294196178007779,-0.0075736154098673,-0.0134952177347492,0.00495501191835218,0.00694883298952168,-0.0104661202571547,0.0172408519506304,0.0126053417958476,0.0507614957551011,0.0172408519506304,0.0126053417958476,0.0507614957551011 +0.00442710754373841,0.00678754223034557,0.017513080214711,0.00443966140059823,0.0150361621308045,-0.010884122315064,0.00698025527778368,0.00237984624161117,0.0062756427586433,0.00698025527778368,0.00237984624161117,0.0062756427586433 +-0.0055580955488831,0.00300585214976244,-0.0374294684819168,0.00769255781487281,0.00849218596787944,0.0157221265056473,0.00580422659140229,0.0097034529713123,0.00775998398964427,0.00580422659140229,0.0097034529713123,0.00775998398964427 +0.0117813298658321,0.00623568818260933,0.0385870302330894,0.000599796212102209,-0.00644016112307695,0.0204343195007486,0.0021686357645582,0.00924626155204052,-0.0123072082372813,0.0021686357645582,0.00924626155204052,-0.0123072082372813 +0.00191151951592157,0.00632447239968319,-0.0211492863306783,0.00521450702262857,0.0103480910568827,0.031423878365974,0.0190502057834899,0.0116389378521606,0.0644550355309718,0.0190502057834899,0.0116389378521606,0.0644550355309718 +0.0115441641954826,0.00734946266478721,0.0377909380797306,0.00233473899661731,-0.00503824847774689,0.004974852073362,0.0111421819886623,0.0160338611005936,-0.0050354394916332,0.0111421819886623,0.0160338611005936,-0.0050354394916332 +0.00206196358253716,0.0117352704436524,-0.0412053168014462,-0.00362139444696252,-0.00135242263028795,-0.0311569239742221,0.0237116643277029,0.0183779234859911,0.0662467169994686,0.0237116643277029,0.0183779234859911,0.0662467169994686 +0.00112167231935273,-0.0002015671840765,0.0247760404528156,0.00733726061057915,0.00172610429840425,0.015897566570368,0.0165023021139446,0.0260065997804954,-0.0112979066335781,0.0165023021139446,0.0260065997804954,-0.0112979066335781 +-0.0174712840710763,-0.0104995748588245,-0.0792351598348337,0.00329120291746285,-0.002658147095089,0.00659318598336344,0.0209582149789077,0.0173277075765335,0.0745720032306805,0.0209582149789077,0.0173277075765335,0.0745720032306805 +0.00467348077045733,0.00474221523673956,0.0194363052017869,0.006733743572149,0.000172597487405276,0.0226520445569297,-0.00341041431421795,0.00237896672916221,-0.0410675737541068,-0.00341041431421795,0.00237896672916221,-0.0410675737541068 +0.00156769070512935,-0.000432123885609519,-0.0284533155646709,0.000472002376903997,0.00565738441243007,-0.0317158674415437,0.0060833152000278,0.00574476614488167,0.0217570596231708,0.0060833152000278,0.00574476614488167,0.0217570596231708 +0.0049074635315971,0.00302150178079763,0.0130531356306075,0.00181378898818308,0.000486985992053975,0.0191434100897455,0.00625545153723184,0.00366144125251539,-0.0143535097216806,0.00625545153723184,0.00366144125251539,-0.0143535097216806 +-0.000145893435752698,0.00559436480675166,-0.012752237880732,0.0018155633708276,-0.000948478368405601,-0.0294065778072038,0.00695518612801598,0.00674414576812839,0.00164380929733145,0.00695518612801598,0.00674414576812839,0.00164380929733145 +-0.00465583387881592,-0.00593114946488169,-0.0013581012019262,-0.00459952355536558,0.00277986845221006,-0.0371861476734385,0.00480773207491179,0.0107645430898617,-0.00638804900424863,0.00480773207491179,0.0107645430898617,-0.00638804900424863 +0.00799839285864863,0.0071290932110081,0.00392541313576425,0.0042057870384146,0.00429160741357418,0.00330496115663807,0.00374050185614936,0.000822237674505055,0.0249924992742876,0.00374050185614936,0.000822237674505055,0.0249924992742876 +0.0110585378532285,0.00998046524529333,0.0478077022138136,-0.00126940776528062,-0.00194817143825634,0.0148218258112491,0.00887024498422869,0.00809102174547572,0.00658166215788457,0.00887024498422869,0.00809102174547572,0.00658166215788457 +0.00780572152026941,0.00466661208220865,0.0214732104802523,0.00334672376491877,0.00736515276598808,-0.0343000914916285,0.0170525846469963,0.0162417387302098,0.0558303848346691,0.0170525846469963,0.0162417387302098,0.0558303848346691 +0.000136140869471766,0.00177715576303493,-0.0703039489484139,-0.00410356807654701,-0.00108701674336203,-0.0196097765532802,0.0209398187000445,0.01629987327046,0.0592425853537114,0.0209398187000445,0.01629987327046,0.0592425853537114 +-0.00163057267047177,-0.00289267321753373,0.0452053547881509,-0.00614724973263191,0.0042267629065544,0.0102642688551091,0.0129654374083217,0.0144025151239414,-0.0432666369087031,0.0129654374083217,0.0144025151239414,-0.0432666369087031 +-0.00179702490608481,-0.00418978511474643,0.0226104016150397,-0.00371937261390935,-0.00387700076738468,-0.0334227474911639,0.0080429076319284,0.00846153601779832,0.0437566670132315,0.0080429076319284,0.00846153601779832,0.0437566670132315 +-0.0003798413763985,0.00563195802967547,-0.0521883454243113,0.0101370733921137,0.0097482031829916,0.0121828046792597,0.00548991983487095,0.00139587394004091,0.0516176552276026,0.00548991983487095,0.00139587394004091,0.0516176552276026 +-0.0024393512250877,-0.00594165828099662,0.0106154151835323,0.00149208937164289,-0.000529640051438153,0.032761872219216,0.00141595638309036,0.00687982202327182,-0.0407616250512743,0.00141595638309036,0.00687982202327182,-0.0407616250512743 +-0.000721483849479707,0.00829588740546896,-0.018551960936739,0.0040672935047535,0.00624661648572852,0.00662523953378945,0.00223682822396452,-0.00142642966582966,0.016231821031808,0.00223682822396452,-0.00142642966582966,0.016231821031808 +-0.00333483762078247,-0.000975668579616581,-0.0257710196821768,-0.00291892733627338,5.49574301597355e-05,-0.031013528122196,-0.00178866289931292,0.00789043225585837,-0.0243500036526677,-0.00178866289931292,0.00789043225585837,-0.0243500036526677 +0.00413947838653598,0.00429331592614879,0.0195859618689634,-0.00451514200201238,0.00320209202200729,-0.033566418742725,0.00294515803900546,0.00291796837207554,0.00176831660581184,0.00294515803900546,0.00291796837207554,0.00176831660581184 +0.00493899150112848,0.001998765759244,0.0469878556113297,-0.00450407955382729,-0.00191124723052142,-0.0198954955089034,0.00631516442037139,0.00649513101551268,0.0230231672541595,0.00631516442037139,0.00649513101551268,0.0230231672541595 +-0.011015825577092,0.00577799815833146,-0.0936588905910461,-0.00139968637921967,0.00219999706562839,-0.0470863882800269,0.010264458666294,0.00650632170315113,0.0640295705303648,0.010264458666294,0.00650632170315113,0.0640295705303648 +0.00306769735384632,0.00150841044420552,0.0563162672663819,-0.00551655195616396,-0.0133440023551047,0.0110977168377741,-0.00514426974079326,0.0106200462153263,-0.070772562334844,-0.00514426974079326,0.0106200462153263,-0.070772562334844 +-0.00423555793578496,0.00147803803597813,-0.0276813209779069,0.0162826050305656,0.0122625050408702,0.0370555716430457,0.0109195633039069,0.00668687136063633,0.0850389257972466,0.0109195633039069,0.00668687136063633,0.0850389257972466 +0.000620900560458354,0.00270650557549355,0.00156046247244408,0.00344019312577266,0.00291052312207797,0.0271894481364853,0.00221659578738626,0.00621904065312606,0.00333042149116985,0.00221659578738626,0.00621904065312606,0.00333042149116985 +0.00173478504785648,0.00983819806632791,-0.0424504614060926,0.0022487035121267,0.00158576745463823,-0.00869147730475356,0.00570218324961037,0.00633918112465339,0.0217596188807051,0.00570218324961037,0.00633918112465339,0.0217596188807051 +0.00536882830557922,0.00377379860630606,0.0126125403051826,-0.0041921488941034,0.00236397458692031,-0.00713029562105257,0.00696708598875823,0.0141285185080752,-0.0246535824366769,0.00696708598875823,0.0141285185080752,-0.0246535824366769 +0.00885058401110028,0.00994605231861318,0.0252743858242001,0.00179620810694531,0.000174692513214238,0.0305904860630173,0.0159271063609484,0.013091875062738,0.0377385323145553,0.0159271063609484,0.013091875062738,0.0377385323145553 +-0.00316920480168043,0.00506775567966185,-0.039193018538784,0.00441913768141824,-0.00109834037654235,0.0139937781586012,0.0190197611806817,0.020022519163287,0.0454163110120321,0.0190197611806817,0.020022519163287,0.0454163110120321 +0.00527789318081439,0.00638626670279354,-0.0129698265734834,-0.00314963700346464,-0.00396746736961929,0.0108854338957062,0.0126876512112223,0.0192875932493677,0.00324610147691728,0.0126876512112223,0.0192875932493677,0.00324610147691728 +-0.000667844295248564,-0.000191299338997429,0.0502835913685373,-0.00387997287480698,0.00388858587116463,-0.022588450481193,0.0202167653359054,0.0193035934969449,0.0277640334691509,0.0202167653359054,0.0193035934969449,0.0277640334691509 +-0.0108724408093651,-0.00979381086494101,-0.014430698062208,0.0112313943635167,0.00384041666690102,-0.0163505865010593,0.0140266479793672,0.0142894708745616,0.0779142322665222,0.0140266479793672,0.0142894708745616,0.0779142322665222 +0.00165484309625691,0.0010450735527623,-0.00813428946824581,0.0100214404016819,-0.000191568692842028,0.0107477414092441,0.00147965739458249,-0.000313768946614343,0.0349404247177117,0.00147965739458249,-0.000313768946614343,0.0349404247177117 +7.63274318742297e-05,-0.00685350874843017,0.0348182292058449,-0.00740841547932574,0.00289069755584138,-0.0414570885774833,0.00205837253673406,0.000672794649494429,0.00157250396364785,0.00205837253673406,0.000672794649494429,0.00157250396364785 +-0.00619292430117585,-0.00454239658211327,-0.0558277345774544,0.00904192753873374,0.00307146242910618,0.0058418232624589,0.000451310716588368,-0.00600332247599879,0.0316962500420463,0.000451310716588368,-0.00600332247599879,0.0316962500420463 +0.0147273225237854,0.00777696417433082,0.0246991489158272,0.00174709328310636,-0.000811966630668915,0.00197202416830896,-0.0105547070396053,-0.00797184149030321,-0.0679071386471288,-0.0105547070396053,-0.00797184149030321,-0.0679071386471288 +-0.00832145456590181,-0.0119757356002679,-0.0366765208192632,-0.00500132350044479,0.00127224521312296,0.000122746224973554,0.00755853590457589,0.0021934117220911,-0.00509046948270163,0.00755853590457589,0.0021934117220911,-0.00509046948270163 +-0.000827485719136439,0.000377974232952878,-0.00890793312625975,-0.00249885787997686,0.0129219793968388,-0.00386473900720243,-0.00743782060126206,-0.00880427062344426,-0.0541967084140091,-0.00743782060126206,-0.00880427062344426,-0.0541967084140091 +-0.00252804564651579,0.00797466346387637,-0.0531399893053729,0.00477743757990041,-0.00970417293271242,0.0554609217761392,-0.0087207560186296,-0.00503920418584014,-0.0459997192569885,-0.0087207560186296,-0.00503920418584014,-0.0459997192569885 +0.00384632274809063,0.0168491696266027,-0.067666392570494,-0.00533437475347167,0.00437814673878708,-0.126400546812315,-0.00690354655916235,0.0039596273767322,-0.0667626800527855,-0.00690354655916235,0.0039596273767322,-0.0667626800527855 +0.00372575104222158,-0.00364386116661727,0.0292037920877782,0.00124491078014892,-0.00163522037739448,0.0237920345745641,0.00636831760690355,0.0181676514404533,-0.0591347267509941,0.00636831760690355,0.0181676514404533,-0.0591347267509941 +0.000513386795994084,0.00842128207951651,0.0120737375188177,-0.000234650214359072,0.00603626411300215,0.0238209030063318,0.0169377055759532,0.00813162340572884,0.0574682192073366,0.0169377055759532,0.00813162340572884,0.0574682192073366 +0.00324738163805957,0.00432301060062649,-0.0139964104024726,0.00612543654903466,-0.00541735149311127,0.00984925314329378,0.00685301773868072,0.0159436029572217,0.0172661179647432,0.00685301773868072,0.0159436029572217,0.0172661179647432 +-0.00729632469369216,-0.00342268258491137,-0.0384628497833882,0.00612668142735864,0.00600570456810307,0.0605752265242822,0.0163514291568014,0.0137927326255184,0.0379600766412229,0.0163514291568014,0.0137927326255184,0.0379600766412229 +0.00238852283674987,0.00425470750114579,-0.00463007888761243,0.00407002360296959,0.00200498346678307,0.0584392038784563,0.00342227386976403,0.00711171903316727,-0.0166758227383391,0.00342227386976403,0.00711171903316727,-0.0166758227383391 +-0.00351885475194857,0.0124178487874581,-0.0716272600003928,-0.00272405894520234,0.00153555954702619,-0.00450987182860723,0.0076107658546284,0.0089965986419606,0.00636396826707935,0.0076107658546284,0.0089965986419606,0.00636396826707935 +0.00594356497024328,0.0060150510929304,-0.00233850824390256,0.00385987928904429,-0.0058872697743375,0.0628145658265694,0.00337551898490963,0.0188042193009519,-0.0558868842030579,0.00337551898490963,0.0188042193009519,-0.0558868842030579 +0.00131654705598515,-0.00486643505749478,0.0506254834727137,-0.00856444117252865,-0.00588717905287781,0.00835389695038544,0.0201056003774084,0.0172655046304912,0.0396706960108776,0.0201056003774084,0.0172655046304912,0.0396706960108776 +-0.00420353173021795,-0.00337181470571552,0.0123303526580138,0.00509103812151092,-0.00284791404879439,-0.00107743037083328,0.0145872086157906,0.00836071739612389,0.0755236980257493,0.0145872086157906,0.00836071739612389,0.0755236980257493 +-0.00459466194309281,0.00165811896633136,-0.0467490041249239,0.0147023766362444,0.00616273726605264,0.0188710310293097,0.00302376091670211,0.0033345487428791,0.0341920329457358,0.00302376091670211,0.0033345487428791,0.0341920329457358 +-0.00156557848816195,-0.00155064771730157,-0.00820523410925053,0.00109515105692717,0.0114271616201577,-0.00143745994652271,-0.00130207201330893,0.00352774911018798,-0.0271972355081394,-0.00130207201330893,0.00352774911018798,-0.0271972355081394 +0.0229475145107865,0.0128463894363079,0.0911258479229273,0.00249968790945936,0.00548013081980186,0.0212774533957951,0.000909044793331826,0.000340284724858094,-0.00163855062736122,0.000909044793331826,0.000340284724858094,-0.00163855062736122 +0.00073331088759731,0.00639920051710789,0.0277638113468857,0.0154916189933561,0.00788073145066607,-0.0224681400741345,0.0230938564104006,0.0132837903616417,0.0888731210778087,0.0230938564104006,0.0132837903616417,0.0888731210778087 +0.00485054451953673,-0.00014193072311197,0.042903898739772,-0.00172643830324673,-0.0133861354791277,-0.0183148984295581,0.0114826012932357,0.0175712022708764,0.0487155026592894,0.0114826012932357,0.0175712022708764,0.0487155026592894 +-0.0100444716911535,-0.00479964338461314,-0.0471765276599979,-0.00642145456215394,-0.00279020701321523,-0.0784145880207144,0.0195608908547762,0.0108141876977867,0.100914505500196,0.0195608908547762,0.0108141876977867,0.100914505500196 +0.00305848845016636,-0.00277381822133281,0.00114933129317849,0.00236785707381413,0.00103791891201881,0.0195109244538449,-0.000696862503588115,0.00400108395185568,-0.0196731942796381,-0.000696862503588115,0.00400108395185568,-0.0196731942796381 +0.00196355312724911,-8.37466635173149e-05,0.0213851635388974,-0.00510624261370382,3.21800253973142e-05,-0.0134465123768616,0.00604453346467346,-0.00061742651067134,0.0111303844528937,0.00604453346467346,-0.00061742651067134,0.0111303844528937 +-0.0105797207552708,-0.00397271297408412,-0.0316782376700686,0.00613131085066104,0.00876667991251549,-0.024046253365607,0.00103110926976907,0.00100447913549191,0.00438651144089698,0.00103110926976907,0.00100447913549191,0.00438651144089698 +-0.0072191085424495,-0.000572471832956667,-0.0574869522343151,0.0124901529255354,0.00593351669889915,0.0100540101440751,-0.00974251308602487,-0.00327558542453206,-0.0288451777059517,-0.00974251308602487,-0.00327558542453206,-0.0288451777059517 +-0.0128917950187664,-0.00969454732929313,-0.0403186529603996,0.0127979921061446,0.00253568041548245,0.0454761955770058,-0.00958184064654936,-0.00427174629591885,-0.0527507824689352,-0.00958184064654936,-0.00427174629591885,-0.0527507824689352 +0.00538102083407787,0.0096260322772876,-0.0115242083949455,-0.00402378010683786,-0.00951952636707534,-0.0435258544578233,-0.0166841514735055,-0.0134357062832766,-0.0510292789776605,-0.0166841514735055,-0.0134357062832766,-0.0510292789776605 +0.0135536255971276,0.00911073925970506,0.0371905303451452,0.00345065669849021,0.0112556683005419,-0.042621202212185,-0.00531091481040847,-0.000591329939424722,-0.0366571113927823,-0.00531091481040847,-0.000591329939424722,-0.0366571113927823 +0.0118817940279789,0.000755590492231785,0.0826071322363229,0.00555269676406967,0.00518511530256186,0.0615427412691368,0.0127741102452342,0.00805309761969872,0.0352830634372198,0.0127741102452342,0.00805309761969872,0.0352830634372198 +-0.00861590164649347,-0.00705295442928892,-0.00410968354151398,0.00247502103507744,-0.00207188080888056,0.00388138304358744,0.0180918036443039,0.00752777515252991,0.0908617269060498,0.0180918036443039,0.00752777515252991,0.0908617269060498 +0.00772155021227735,-0.00205721239015224,0.0365950266088324,-0.00589331195658163,0.000106692513893378,-0.0587106610749626,-0.00211809076743938,-0.000106692513893378,0.00993433170419983,-0.00211809076743938,-0.000106692513893378,0.00993433170419983 +-0.00947669294173151,-0.0161176239079196,0.00448058497229591,0.0039712316259919,0.00688575227146205,0.0127647364609419,0.008105846563905,-0.00283933043931351,0.0474552383112766,0.008105846563905,-0.00283933043931351,0.0474552383112766 +-0.00498707859920641,0.00566278772238803,-0.0325726853192798,-0.000887395204079054,0.00864201965470863,-0.0275681963976486,-0.0116485149936139,-0.0162261346721349,-0.0119844122430408,-0.0116485149936139,-0.0162261346721349,-0.0119844122430408 +0.00223323963883555,0.000578060720044946,-0.0136065430479999,0.0011192616474926,0.0117375128802055,-0.0421386629268107,-0.0176664952828304,-0.00530039624196331,-0.0678804928827887,-0.0176664952828304,-0.00530039624196331,-0.0678804928827887 +0.0012122560852629,0.0100419987943462,-0.00510036805127724,0.00728765284391761,0.00913404854660832,0.00850646085455746,-0.00188326369649004,-0.00554104322320221,-0.0093934788134306,-0.00188326369649004,-0.00554104322320221,-0.0093934788134306 +0.00177531824583251,0.00210044174336593,-0.00224964268612751,-0.000383983182248222,0.000697027361648769,0.0145541618147652,-0.00347874258631683,0.00694064908840887,-0.0262935613848679,-0.00347874258631683,0.00694064908840887,-0.0262935613848679 +0.0105560886427868,0.010888423941047,0.00833340315936913,-0.00660729437385613,0.0129618021820539,-0.119175926808816,0.00739639786905891,0.00510874615142591,0.0259080427982377,0.00739639786905891,0.00510874615142591,0.0259080427982377 +0.0141502580146754,0.0130546415979978,0.045661154384484,-0.00229844792319192,-0.00518267587119851,0.0175484703803672,0.0146589726597707,0.014937621207931,0.0174382215862376,0.0146589726597707,0.014937621207931,0.0174382215862376 +0.00108406351916284,0.00614668609239846,0.00498560328199324,-0.00330764918064367,-0.00442398946656152,0.023748180822538,0.0255349844693249,0.0240711820568101,0.0683876687084825,0.0255349844693249,0.0240711820568101,0.0683876687084825 +-0.00255673525228217,0.00118489797045081,0.0244662362898334,-0.000649661360415589,-0.00617516753552186,0.0114402520132563,0.0201774754659382,0.023705147234146,0.0536373556238297,0.0201774754659382,0.023705147234146,0.0536373556238297 +-0.00280772784925268,-0.00520515584227732,-0.0169144499452584,0.00398441919994413,-0.0016767708462097,0.0179250942875258,0.0164755407426087,0.0174070011999471,0.0821858653977298,0.0164755407426087,0.0174070011999471,0.0821858653977298 +0.0110191284026121,0.00779435780137808,0.0496118056365152,0.00720630469743868,0.00212581420042248,0.0600924120641686,0.0120038611126853,0.00640261804685558,0.0394504668138475,0.0120038611126853,0.00640261804685558,0.0394504668138475 +-0.00173312636006656,-0.00182599429396996,0.00206868710713064,0.0010961868551709,0.000749981194983404,-0.0222119944857301,0.0160215766474172,0.0134672132237434,0.0553719020452736,0.0160215766474172,0.0134672132237434,0.0553719020452736 +0.000300606800022233,-0.00177725315942278,-0.0184960782154437,0.000508237901820426,-0.000489383450418911,-0.00844772678665639,0.00916327868257704,0.00815775959304774,0.0314258674879676,0.00916327868257704,0.00815775959304774,0.0314258674879676 +0.00159645840822514,0.00299346624531745,-0.0193940528114212,0.00119682585725723,0.00892730966733253,-0.0166184917322405,0.00691126957061816,0.00416455344581749,7.60784360438332e-05,0.00691126957061816,0.00416455344581749,7.60784360438332e-05 +0.00585654317493582,0.00820517123148276,-0.0249543162266697,0.00505247697823376,0.00993734568754587,-0.00921493982731227,0.00433992549149141,0.00689027309066606,-0.0243108212497238,0.00433992549149141,0.00689027309066606,-0.0243108212497238 +-0.00300265850771358,0.00516568240480306,-0.0555509150089202,-0.00217558732204957,-0.00415713731612381,0.038395269642563,0.0106068096905499,0.0132097978583941,-0.0212809333923723,0.0106068096905499,0.0132097978583941,-0.0212809333923723 +-0.000662239446247006,0.00118783029427474,0.0019877023298077,0.00904696542812015,0.00389866037560755,0.0333244197429222,0.00645294793645509,0.0149233552573648,-0.0444355148868457,0.00645294793645509,0.0149233552573648,-0.0444355148868457 +0.00130483200186103,0.0018050850423509,0.00574873224472313,-0.00259141416713948,-0.00891251734689866,0.0152111921901538,0.0101523611936747,0.0111101530540947,0.0231399482312936,0.0101523611936747,0.0111101530540947,0.0231399482312936 +0.000441698230308313,0.00220363076041368,-0.0353772214914937,-0.00053621654719521,-0.00131399316583521,-0.0317162108736778,0.0100992844890038,0.0096255494226349,0.0296592896228248,0.0100992844890038,0.0096255494226349,0.0296592896228248 +0.00290499941011217,0.00524745370736369,-0.0107380975006904,-0.00413527092151962,0.00143634074569567,-0.00792333094522526,0.00814444912902696,0.00915552500005299,-0.0145191735361539,0.00814444912902696,0.00915552500005299,-0.0145191735361539 +-0.00826636397807272,-0.00344241825734349,-0.0108733276567453,0.000219953284409253,0.00512279996496684,-0.0263696785257718,0.00937523516657092,0.0122148861584663,-0.00548309975778555,0.00937523516657092,0.0122148861584663,-0.00548309975778555 +-0.00499680031090069,0.00423342233578594,0.00824951796192281,0.00395738081623815,0.000776903314741847,-0.00565650022149054,0.000864413143877021,0.00522096212839823,0.00720607576147312,0.000864413143877021,0.00522096212839823,0.00720607576147312 +-0.00125450802274025,0.00659222525340039,-0.0645688124811688,0.00604306164593961,-0.00846697385588984,-0.00030967918915744,-0.000514125906073601,0.00694479246412998,0.030405666171752,-0.000514125906073601,0.00694479246412998,0.030405666171752 +0.00433174072741702,0.00243260230610919,0.00572846204196144,0.00518630328816056,0.00390703035475012,0.0217404687444578,0.00539161337196108,0.00940107202742938,-0.0203415390565942,0.00539161337196108,0.00940107202742938,-0.0203415390565942 +0.00369309323077999,0.000346309799717002,0.0140319437205198,-0.00254301846531014,0.00217892185045045,-0.0172291252762083,0.0111785612944428,0.00889965194176988,0.0182369584938982,0.0111785612944428,0.00889965194176988,0.0182369584938982 +-0.00515800053877536,0.00269451926067191,-0.0342895565207015,0.00657629590706376,-0.0050167257093777,0.051840702951443,0.0103895038697649,0.00741690585803788,0.0232439806993529,0.0103895038697649,0.00741690585803788,0.0232439806993529 +0.00923288296147645,0.00178295618087865,0.0712320524350123,0.00466475595105599,0.00783181536319903,-0.0315573932423844,0.000494596866469335,0.00873012506591449,-0.0264357353815784,0.000494596866469335,0.00873012506591449,-0.0264357353815784 +0.00102748426253752,0.00483086898011234,-0.0319002435056984,-0.00315472467241147,0.000514673793033792,-0.0699323163994084,0.0159162380286075,0.0067326003915679,0.093967206644958,0.0159162380286075,0.0067326003915679,0.093967206644958 +0.00260466799032154,0.00288489545884007,-0.0242800126783609,-0.00202221982429871,-0.00288947536537645,0.0191569302138501,0.00717180036885987,0.0107540405718142,-0.0127534759481542,0.00717180036885987,0.0107540405718142,-0.0127534759481542 +0.00476645550490715,-0.00345890514120578,0.0343947954690486,0.00268892643698848,0.00133676533344041,0.0216139554381705,0.0105754247315879,0.0103647672652611,-0.00845712650517232,0.0105754247315879,0.0103647672652611,-0.00845712650517232 +-0.00177359502923649,0.00114428621644744,-0.016150341416192,-0.00278509918027767,-0.000977038169150933,-0.00197775898430044,0.0121299837341234,0.00464705209454294,0.0395832568291095,0.0121299837341234,0.00464705209454294,0.0395832568291095 +-0.00664361092943601,0.00466148137603374,-0.0655863646575623,0.00571877909549914,-0.00150344115441714,0.00627464547846781,0.00173587769648973,0.00597079921310384,-0.0180282408547864,0.00173587769648973,0.00597079921310384,-0.0180282408547864 +-0.00369357199185645,-0.00577034125818954,-0.00198897607605997,0.0101275981866191,0.00189540217793778,0.0426909410586692,-0.0022279390042801,0.00841327480092473,-0.054512869310536,-0.0022279390042801,0.00841327480092473,-0.054512869310536 +0.0100597712021606,0.00501833285022977,0.0295718423929928,-0.000176498007296702,0.00608628973786146,-0.0258358157561204,0.00235693005571426,-0.00120906770158719,0.0155195129547617,0.00235693005571426,-0.00120906770158719,0.0155195129547617 +0.00768688418047386,0.000985353104633909,0.0228809693920314,0.00124689620496043,0.00310970896558404,-0.0141749771048815,0.00914563077373088,0.00476539089106188,0.0239684358183781,0.00914563077373088,0.00476539089106188,0.0239684358183781 +-0.00830138828179489,-0.00739789800674574,0.0194827009134946,-0.00729122137070716,-0.00206207961169234,-0.0237688437058955,0.0112577116679519,0.00535647929305625,0.0240528191684067,0.0112577116679519,0.00535647929305625,0.0240528191684067 +-0.00217758072463413,0.000267838323458575,-0.0133666405525925,0.00445095533418268,0.0059667754771449,-0.0401681750690937,-0.00446609268016203,-0.0021775421075854,0.0163485022222296,-0.00446609268016203,-0.0021775421075854,0.0163485022222296 +0.0029334143056867,0.00681004515893156,-0.028097822035942,-0.00567458453041032,-0.00552304847072649,-0.0646752097098968,-0.00312538551996193,-0.00227737640173386,-0.000653541346648197,-0.00312538551996193,-0.00227737640173386,-0.000653541346648197 +-0.00271463239574443,0.00176666902920665,-0.0351432897888076,-0.00620131677022813,-0.00771503202030434,-0.0137763510759493,0.00134530220669355,0.00486163955719344,-0.0277908160193356,0.00134530220669355,0.00486163955719344,-0.0277908160193356 +0.00276489901876924,0.00260848817780104,0.0308055966962012,0.00615123217174283,0.00256682192705301,0.0267861231608488,0.000575388037611724,0.00503046603115768,-0.0318266447298627,0.000575388037611724,0.00503046603115768,-0.0318266447298627 +0.00667865645626885,0.00189706895613753,0.0264806513251008,-0.00198367821164756,-0.00201886255348199,-0.0108887956882087,0.00618731800882853,0.00582403505021694,0.0354800898588815,0.00618731800882853,0.00582403505021694,0.0354800898588815 +0.000288650108384243,0.00804800839855043,-0.0237264021650005,-0.00783684864214308,-0.00626926669668836,-0.00920159412960419,0.0117492909317806,0.00582014808440245,0.0467699952828218,0.0117492909317806,0.00582014808440245,0.0467699952828218 +0.000791411220064429,-0.00238880151884316,0.0236306767912977,0.00591407810617016,0.00381885442730043,-0.00622023303698303,0.00500263164051252,0.0132362397290827,-0.0162618201969259,0.00500263164051252,0.0132362397290827,-0.0162618201969259 +0.00376782775399451,0.011870609539521,-0.00527334680283106,-0.000447419966451726,8.5915726794005e-05,0.00863056707339049,0.0110167752314943,0.0058217079565302,0.0551629007896773,0.0110167752314943,0.0058217079565302,0.0551629007896773 +-0.00623084580588145,0.00271212216326062,-0.0438450902562494,0.00149989678609486,-0.00573367763933153,0.00193982410624485,0.00876552107378559,0.0167217996203624,0.00834473165007741,0.00876552107378559,0.0167217996203624,0.00834473165007741 +-0.00768589140124028,-0.00720194207874757,0.017089520687249,0.00336564457591091,-0.0010893304325119,0.0300003650147735,0.00710298401447364,0.0132279115513043,0.00115946322718927,0.00710298401447364,0.0132279115513043,0.00115946322718927 +0.0139507283859346,0.00691950898942034,0.0474180889308696,-0.000876973924102856,0.00277623939706556,-0.0264638412361854,0.00271311190184137,0.00125523291057045,0.0496902488392498,0.00271311190184137,0.00125523291057045,0.0496902488392498 +0.00904565183814881,0.00863418168933834,0.0261063283084765,-0.0095152670639674,0.00214945545751611,-0.0585081203540758,0.0158927643104253,0.00740032788134236,0.0663297405778191,0.0158927643104253,0.00740032788134236,0.0663297405778191 +-0.00407239709892526,-0.00107321259322317,-0.0406897213297717,-0.00984626431961771,-0.00455949693805361,-0.0363302214167243,0.0150965055110367,0.0153630184206042,0.0356255378765463,0.0150965055110367,0.0153630184206042,0.0356255378765463 +0.00506223982114651,0.00127424411290554,0.0256987042775802,0.00506284647541627,-0.00109925415929149,0.0608192611025708,0.00805662051506523,0.00995624651738916,-0.00939435358130744,0.00805662051506523,0.00995624651738916,-0.00939435358130744 +0.00490394320651868,-0.00279998177927984,0.0342393255733871,-0.00265235696024919,0.00254319583945186,0.00536495920658584,0.0123406104227825,0.00853001003362995,0.0368758603605897,0.0123406104227825,0.00853001003362995,0.0368758603605897 +0.00367204123073279,0.00668775167878329,-0.0043092891277656,0.00198257195397506,0.00332485069774312,0.0100606164382372,0.0116031268476468,0.00406896130903913,0.0465894125532025,0.0116031268476468,0.00406896130903913,0.0465894125532025 +-0.00177057008309635,0.00180903520276098,-0.0163436251714879,-0.000499352746435166,-0.00298603713871861,-0.0144119569955357,0.00691975670280251,0.0109656571708604,-0.00372942657371351,0.00691975670280251,0.0109656571708604,-0.00372942657371351 +-0.00154510048992478,-0.00305417015416072,0.00315792951539942,0.00442229396992136,0.000646876008107944,0.0403233123355867,0.00662248352304115,0.00917223773616141,0.00524341867054983,0.00662248352304115,0.00917223773616141,0.00524341867054983 +0.000818091958326609,0.00738805298514645,-0.0233247878207693,-0.0031312332343841,-0.00201298533433132,-0.0121908396017456,0.00558147324122124,0.00317949659845702,0.0223034967272546,0.00558147324122124,0.00317949659845702,0.0223034967272546 +-0.00962739341442052,-0.00148171081058063,-0.0487827622998327,-0.00126221488803653,-0.00189768087538143,-0.00924397550876878,0.0034095394306914,0.0100584188292432,-0.0180178622247842,0.0034095394306914,0.0100584188292432,-0.0180178622247842 +0.000649265191805753,-0.000541760262535617,0.0130063904398441,0.0103175933028761,0.00414484483486014,0.0164419171659967,-0.0019482048405169,0.00475243532670241,-0.026114146889565,-0.0019482048405169,0.00475243532670241,-0.026114146889565 +0.0108776475571827,0.0129088943486393,0.0334083588455505,0.00269201500682227,0.00524325805683338,0.000539086906950995,0.00425596622800472,0.00177248265122061,0.0272289359693685,0.00425596622800472,0.00177248265122061,0.0272289359693685 +0.00518316461393189,-0.00620954782754678,0.0287130074428226,-0.00572062073691391,-0.00533053305680309,-0.0262738929829548,0.0125473435351727,0.0144424714806669,0.0393617584892832,0.0125473435351727,0.0144424714806669,0.0393617584892832 +0.000280498017910252,0.00112603634098053,-0.00782511599806944,0.000230368453008785,0.00762148267579095,-0.0155794367971237,0.0169097470130079,0.00362503125087903,0.0660778168069315,0.0169097470130079,0.00362503125087903,0.0660778168069315 +-0.00258462769372582,0.00620924682915041,-0.0369210208754744,0.0056364613005091,-0.000283900478095148,0.0665686869723509,0.00302439922970232,0.00624022263760962,-0.0173746253719009,0.00302439922970232,0.00624022263760962,-0.0173746253719009 +0.00258008267636973,0.00207211550570907,0.0177310107808226,0.00892689539066375,-0.00230052695524086,0.0258591415562844,0.00192978801488571,0.0104231515975896,-0.0285814368931357,0.00192978801488571,0.0104231515975896,-0.0285814368931357 +0.00906273968858885,0.0100335704694415,0.01491854419008,-0.0028189918416624,0.00173640008185022,-0.0188305168300583,0.0104807122817972,0.00828220469534752,0.0419094534286773,0.0104807122817972,0.00828220469534752,0.0419094534286773 +-0.00400102694810149,-0.00100930752923266,0.0080215935744814,-0.00116356846124546,-0.0121672999656028,0.0273992910500921,0.0158811862193436,0.016202567422868,0.0344991537501909,0.0158811862193436,0.016202567422868,0.0344991537501909 +-0.00147877123207548,0.000174298292966078,0.00968920887146283,0.00375106462482576,0.00619845016627787,-0.0221469688860669,0.00872195791387931,0.0106654594909879,0.0397695488238245,0.00872195791387931,0.0106654594909879,0.0397695488238245 +0.0140487832529943,0.0117377968004997,0.0151894234135833,0.000145113283966325,0.00426406512354852,-0.0280200729635521,0.00749746075779772,0.00710872821545457,0.0438647251686468,0.00749746075779772,0.00710872821545457,0.0438647251686468 +-0.00139444590507893,-0.00216975960549266,-0.0333714615973811,-0.0108549979854994,-0.00659824543620345,0.00624772334114915,0.0202573737717261,0.0165022092822762,0.0403823549752064,0.0202573737717261,0.0165022092822762,0.0403823549752064 +0.00630433292131977,0.005571654630281,0.0271152080855536,-0.00227983655460253,0.00635546581172779,-0.000227225226359602,0.0112318456763768,0.0107035888003912,-0.0118109974275397,0.0112318456763768,0.0107035888003912,-0.0118109974275397 +0.0010277367925139,-0.00240139306805971,0.00433082865096963,-0.000691943514297505,-0.000900005639504858,-0.00183374082964634,0.0138003103797465,0.0140775371211962,0.0300837604799454,0.0138003103797465,0.0140775371211962,0.0300837604799454 +7.76746568158104e-05,0.00050907142788308,0.0220435283285208,0.00507713713090269,0.00747602420515807,-0.000305415828782216,0.0120844372386055,0.00774081812709088,0.0319578083810407,0.0120844372386055,0.00774081812709088,0.0319578083810407 +0.00357374795446868,0.00223031042989974,0.0181726969785736,0.00284687801135862,0.00280911830690763,0.00128045783649087,0.00602191770615247,0.00700141446609129,0.0297201125822593,0.00602191770615247,0.00700141446609129,0.0297201125822593 +0.00296971064462962,0.00710564285657184,-0.0569409040006026,-0.00173266539034731,0.00882373513487631,-0.0447818800836297,0.0095193255768957,0.00679786443825916,0.0412845979928174,0.0095193255768957,0.00679786443825916,0.0412845979928174 +0.0100454357161013,0.00852689767193196,0.0484298937562959,0.00400859330457827,-0.000348526390982082,0.0655044799718771,0.0086278503037137,0.012290986241596,-0.0407128062004353,0.0086278503037137,0.012290986241596,-0.0407128062004353 +-0.0116694485594712,-0.00750111753842125,-0.0255845969849953,-0.000681206386576722,-0.00363146786674348,-0.0184532523205325,0.0184831333762142,0.0176413456818047,0.0533273701783541,0.0184831333762142,0.0176413456818047,0.0533273701783541 +0.0112333513072578,0.0108988891884422,0.0315825918802849,0.000184262412706401,0.00980592732912286,-0.0263232461354446,0.00242621293647827,0.00525093682364378,0.0122629582736509,0.00242621293647827,0.00525093682364378,0.0122629582736509 +-0.0103075014579687,-0.0085916557926546,-0.033507202022087,0.00363144250170115,-0.0045939114061901,0.0158195207043878,0.0156871431241117,0.0139483924484256,0.0511183080639527,0.0156871431241117,0.0139483924484256,0.0511183080639527 +-0.00352089607567167,-0.00131304137514275,-0.0329489938611478,-9.52834173785553e-05,0.00812054386731686,-0.0127702017841843,0.000931016917571059,0.0016181926900516,-0.00299500713883589,0.000931016917571059,0.0016181926900516,-0.00299500713883589 +-0.00369418740076248,0.0028283316950482,-0.0188533336458911,0.00823061440472781,0.00901034274474214,0.0310242059531391,-0.00233060724007448,-0.000207858729600195,-0.0305768879541632,-0.00233060724007448,-0.000207858729600195,-0.0305768879541632 +-0.00185746664600205,0.00292837027688877,-0.0135314618746977,0.0010358859981394,0.00134432414573769,-0.028331514868976,-0.00433859937817147,0.002640724277741,-0.0260174861504346,-0.00433859937817147,0.002640724277741,-0.0260174861504346 +-0.0032095476383121,-0.00218912750982589,-0.0199305358785612,0.00629941640935257,0.000206164171352809,-0.00287262124058706,0.000236571293652546,0.00355726034296885,-0.000341242678515095,0.000236571293652546,0.00355726034296885,-0.000341242678515095 +0.00513409417264076,0.0107779468669372,-0.0144477320161953,-0.00250421110515046,0.00473347040560635,-0.0152434657611683,-0.000241204955710859,-0.000343557571769628,-0.00607071819634251,-0.000241204955710859,-0.000343557571769628,-0.00607071819634251 +0.00175583610387313,0.000903565742777948,0.0271991356669007,-0.00120039325959622,0.00489471218029542,-0.0415268425908083,0.00472615766333986,0.0106478972249668,-0.0178387902253455,0.00472615766333986,0.0106478972249668,-0.0178387902253455 +0.00930076763847732,-0.00603003176483272,0.047121932206128,-0.0012374957500527,-0.00433863329815357,-0.0151274282632461,0.00978947867063205,0.00777534398782135,0.0481585440892432,0.00978947867063205,0.00777534398782135,0.0481585440892432 +0.000877853992133964,-0.00647194740283843,0.0155155500367056,-0.0106259136023475,0.00548092954250681,-0.0577259970256586,0.0159179238543981,-0.000404172018528293,0.069643564952203,0.0159179238543981,-0.000404172018528293,0.069643564952203 +0.00384582872346214,-5.37626506199207e-05,-0.00474219370448749,0.0045680583104599,0.0104475249889055,0.00803693446021656,0.000416564203044274,-0.00369352107176253,-0.00596704176711968,0.000416564203044274,-0.00369352107176253,-0.00596704176711968 +0.0090286950260948,0.00436538631598553,0.0365171928237409,-0.000332295423329234,0.00523215760663396,0.0233950676700392,0.000538716961847474,-0.00168653818237906,-0.0241183810500685,0.000538716961847474,-0.00168653818237906,-0.0241183810500685 +0.00324049703577252,0.00778271316588877,-0.00839838108184604,-0.00292533022354354,0.00106561579630972,-0.0169327920715818,0.00696884803801863,0.00408162229894669,0.0168897737281121,0.00696884803801863,0.00408162229894669,0.0168897737281121 +0.00339383847217146,0.0111322716750701,-0.0365004907136814,0.00163546323724766,-0.00210984462743686,0.0120602390086003,0.00630889214557435,0.011362304920739,-0.00625463163800954,0.00630889214557435,0.011362304920739,-0.00625463163800954 +-0.0077340215558667,-0.00172108907260569,-0.00185499372612704,0.00449243402458969,-0.00473028338619912,0.0480879998795232,0.0121298640504398,0.0185767423192409,-0.0124393852545029,0.0121298640504398,0.0185767423192409,-0.0124393852545029 +-0.00832928948303374,0.00171309657906456,-0.0520080948498132,0.0026617213576537,-0.00545889986146085,0.00567793106139713,0.00629277632088215,0.0109657793637829,0.0306408993725685,0.00629277632088215,0.0109657793637829,0.0306408993725685 +-0.00229441245881482,-0.00567157277058102,0.0377440763253631,0.00606277070269004,0.00116192546865107,0.0180934806809197,0.000954590008219373,0.00831681848589278,-0.012886076574245,0.000954590008219373,0.00831681848589278,-0.012886076574245 +0.0122245983153375,0.0134846749950894,0.00686699432416188,0.00277020508791608,0.00643176783482798,-0.0208816324316275,0.00431198534413497,-0.00104193870252641,0.0633985220667637,0.00431198534413497,-0.00104193870252641,0.0633985220667637 +0.00688368565099063,0.00248522035554435,0.00132116080806791,-0.00505706712591934,-0.00447919784290972,-0.00439652096946058,0.0123755902757838,0.0130008762682221,0.0172783894470315,0.0123755902757838,0.0130008762682221,0.0172783894470315 +0.00195084082116802,0.000161736167927378,0.0342792215864649,-0.00824647944605046,-0.000501072047441337,-0.0028783862544776,0.0168853451079494,0.0119364087454589,0.0232818004377013,0.0168853451079494,0.0119364087454589,0.0232818004377013 +0.00565581610926202,0.0096860682253823,-0.0209795011094322,-0.000763514186883832,-0.00270313826035249,-0.0189890672350988,0.0106921588582974,0.0101629384701326,0.0400106840839643,0.0106921588582974,0.0101629384701326,0.0400106840839643 +-0.000866273791110099,0.00271721096546955,0.0356491714014179,-0.00973986844858236,-0.00730660447422328,-0.0229290583301869,0.0139929397858991,0.016883264679075,0.00487505646000357,0.0139929397858991,0.016883264679075,0.00487505646000357 +-0.0100954202500738,-0.00427195099610372,-0.0354240425079023,-0.00436807030323493,-0.0076507770324478,-0.0519736312263512,0.0119356091306459,0.014748183512865,0.062929744400029,0.0119356091306459,0.014748183512865,0.062929744400029 +0.00472195665479615,0.000717275674864156,0.0139632691122291,0.00263427424212971,-0.00256706919880166,0.0193980791692876,0.00252037553579164,0.00514675644845696,0.0158193737631544,0.00252037553579164,0.00514675644845696,0.0158193737631544 +-0.000881343507651008,0.000227078389166432,0.00363332868984769,0.00387066912101761,0.00729832528986662,-0.0199015682716868,0.00916215633334053,0.00367794728038539,0.0343686304967641,0.00916215633334053,0.00367794728038539,0.0343686304967641 +-0.000905097258306659,-0.000471137911441733,0.0128364999448648,0.00157767982232697,0.0014921079282314,-0.0064653537041871,0.00201790955900145,0.00387923716510585,0.00493021219092324,0.00201790955900145,0.00387923716510585,0.00493021219092324 +0.00112860479845174,0.0106609732074855,-0.0214236864168884,-0.00199497625361225,0.00423350678586961,-0.0387569537820752,0.00226140248516529,0.00191248209515552,0.0246788662046433,0.00226140248516529,0.00191248209515552,0.0246788662046433 +0.00596888214966982,0.00865159693213044,-0.0215683416105864,0.00420306263988345,-0.00183461764643314,-0.0193528824662302,0.0030789824189319,0.0117841861055376,-0.00961900966497453,0.0030789824189319,0.0117841861055376,-0.00961900966497453 +-0.00188937504546375,-0.00153907019204333,-0.0234470306784463,-0.0123438977371582,-0.0064626541234771,-0.028644466032147,0.0153424573553498,0.0155158257263794,0.0131241275078607,0.0153424573553498,0.0155158257263794,0.0131241275078607 +0.00391934479137589,0.00438872523169373,-0.0463874770346801,-0.00189053094515647,-0.00717538781317101,0.0162533132041666,0.00980393011155091,0.0100207385575155,-0.0024667292556356,0.00980393011155091,0.0100207385575155,-0.0024667292556356 +-0.00202925950462771,-0.00407752119161541,-0.0225304900242516,-0.00239000792374498,-0.00728123498089214,0.0394161691294275,0.011221855735435,0.0120162804142525,-0.0374400578481953,0.011221855735435,0.0120162804142525,-0.0374400578481953 +0.0010728593032608,0.00725785675825873,-0.028857639521178,-0.000712645668251342,-0.00253030934222995,0.00556932182706139,0.00596415968252727,0.00552509210588046,-0.0256473078146673,0.00596415968252727,0.00552509210588046,-0.0256473078146673 +-0.00773878331993544,-0.0107899369769823,-0.0444480995708018,-0.00627940740377326,-0.0135268031602997,0.0174104216421102,0.00445685692434167,0.0120305328685308,-0.0366868116534371,0.00445685692434167,0.0120305328685308,-0.0366868116534371 +0.000307844189221914,-0.00220562383507513,-0.0114952932098317,0.0025721611709476,0.00312171628320528,-0.00204784209464957,0.00104226762061711,-0.00297198846670625,-0.0253875405737324,0.00104226762061711,-0.00297198846670625,-0.0253875405737324 +-0.0112387522195544,-0.0074345166677592,-0.0475784199450318,-0.00385751069347659,-0.00597072208326327,0.0208197278046991,-0.00292385069804649,-0.00297733076706368,-0.0386559578403421,-0.00292385069804649,-0.00297733076706368,-0.0386559578403421 +-0.0128444396212571,0.0106040577909544,-0.0972422472860555,0.000542708871891338,0.00117939622195241,-0.00118138321947605,-0.0143475386078765,-0.00902214887347409,-0.0679832666080986,-0.0143475386078765,-0.00902214887347409,-0.0679832666080986 +-0.0101298576316691,-0.00154199805447757,-0.0274183313775034,0.00386495417972944,-0.00198924576410771,-0.0563794300556337,-0.0204769339219574,0.00349974620072576,-0.119218769075115,-0.0204769339219574,0.00349974620072576,-0.119218769075115 +0.00527329733914624,0.00708633256979916,0.00832891281101847,0.00587700352496003,0.00091874097317655,-0.0667799220925182,-0.00772825116743038,-0.00311460884250712,-0.000781547540206123,-0.00772825116743038,-0.00311460884250712,-0.000781547540206123 +0.00495580057717593,-0.00299118627328053,0.0250459984766925,0.00337135756726419,0.00375332650569723,0.000278926891404645,0.00349083001404444,0.00351154686692959,0.0199183159228072,0.00349083001404444,0.00351154686692959,0.0199183159228072 diff --git a/shared/package-files/6f/6f237f5d16badbce40f83bdebae603afd161ff626f09747785033798cdaab1e7/logical_xor_compositeexplicitautograd_dispatch.h b/shared/package-files/6f/6f237f5d16badbce40f83bdebae603afd161ff626f09747785033798cdaab1e7/logical_xor_compositeexplicitautograd_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..2d587f1a4a38ad074d5e84659e00e39d9db55b83 --- /dev/null +++ b/shared/package-files/6f/6f237f5d16badbce40f83bdebae603afd161ff626f09747785033798cdaab1e7/logical_xor_compositeexplicitautograd_dispatch.h @@ -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 compositeexplicitautograd { + +TORCH_API at::Tensor logical_xor(const at::Tensor & self, const at::Tensor & other); +TORCH_API at::Tensor & logical_xor_(at::Tensor & self, const at::Tensor & other); + +} // namespace compositeexplicitautograd +} // namespace at diff --git a/shared/package-files/6f/6f25e240ba47e38d634ea22bad57c5fc4644bd5ffc8bf91b0d856a29c437acb9/XPUMacros.h b/shared/package-files/6f/6f25e240ba47e38d634ea22bad57c5fc4644bd5ffc8bf91b0d856a29c437acb9/XPUMacros.h new file mode 100644 index 0000000000000000000000000000000000000000..fc6aad92229c2fe22ca52bfb27f458d1e63165d3 --- /dev/null +++ b/shared/package-files/6f/6f25e240ba47e38d634ea22bad57c5fc4644bd5ffc8bf91b0d856a29c437acb9/XPUMacros.h @@ -0,0 +1,19 @@ +#pragma once + +// See c10/macros/Export.h for a detailed explanation of what the function +// of these macros are. We need one set of macros for every separate library +// we build. + +#if defined(__GNUC__) +#define C10_XPU_EXPORT __attribute__((__visibility__("default"))) +#else // defined(__GNUC__) +#define C10_XPU_EXPORT +#endif // defined(__GNUC__) +#define C10_XPU_IMPORT C10_XPU_EXPORT + +// This one is being used by libc10_xpu.so +#ifdef C10_XPU_BUILD_MAIN_LIB +#define C10_XPU_API C10_XPU_EXPORT +#else +#define C10_XPU_API C10_XPU_IMPORT +#endif diff --git a/shared/package-files/6f/6f271b582ddf259c4999e161707a8107659b7c1631c462a3da0c1e92b482baad/results_hr.R b/shared/package-files/6f/6f271b582ddf259c4999e161707a8107659b7c1631c462a3da0c1e92b482baad/results_hr.R new file mode 100644 index 0000000000000000000000000000000000000000..95fad0ec0fb0388e4c7c39105ad561a0009588af --- /dev/null +++ b/shared/package-files/6f/6f271b582ddf259c4999e161707a8107659b7c1631c462a3da0c1e92b482baad/results_hr.R @@ -0,0 +1,12 @@ +library(itsmr) +options(digits=10) + +# Test Hannan-Rissanen method on lake dataset using itsmr::hannan +# Python test is: test_hannan_rissanen::test_itsmr +res <- hannan(lake, 1, 1) +print(res$phi) +# [1] 0.69607715 +print(res$theta) +# [1] 0.3787969217 +print(res$sigma2) +# [1] 0.4773580109 diff --git a/shared/package-files/6f/6f27f5252da96060995c6bf36b19c10b5f2bfbe8d37f4385a8e8c9c56cbacff5/polyclasses.py b/shared/package-files/6f/6f27f5252da96060995c6bf36b19c10b5f2bfbe8d37f4385a8e8c9c56cbacff5/polyclasses.py new file mode 100644 index 0000000000000000000000000000000000000000..60f2cb1fffb91e855c5c4976fcae44abdf8121f7 --- /dev/null +++ b/shared/package-files/6f/6f27f5252da96060995c6bf36b19c10b5f2bfbe8d37f4385a8e8c9c56cbacff5/polyclasses.py @@ -0,0 +1,1800 @@ +"""OO layer for several polynomial representations. """ + + +from sympy.core.numbers import oo +from sympy.core.sympify import CantSympify +from sympy.polys.polyerrors import CoercionFailed, NotReversible, NotInvertible +from sympy.polys.polyutils import PicklableWithSlots + + +class GenericPoly(PicklableWithSlots): + """Base class for low-level polynomial representations. """ + + def ground_to_ring(f): + """Make the ground domain a ring. """ + return f.set_domain(f.dom.get_ring()) + + def ground_to_field(f): + """Make the ground domain a field. """ + return f.set_domain(f.dom.get_field()) + + def ground_to_exact(f): + """Make the ground domain exact. """ + return f.set_domain(f.dom.get_exact()) + + @classmethod + def _perify_factors(per, result, include): + if include: + coeff, factors = result + + factors = [ (per(g), k) for g, k in factors ] + + if include: + return coeff, factors + else: + return factors + +from sympy.polys.densebasic import ( + dmp_validate, + dup_normal, dmp_normal, + dup_convert, dmp_convert, + dmp_from_sympy, + dup_strip, + dup_degree, dmp_degree_in, + dmp_degree_list, + dmp_negative_p, + dup_LC, dmp_ground_LC, + dup_TC, dmp_ground_TC, + dmp_ground_nth, + dmp_one, dmp_ground, + dmp_zero_p, dmp_one_p, dmp_ground_p, + dup_from_dict, dmp_from_dict, + dmp_to_dict, + dmp_deflate, + dmp_inject, dmp_eject, + dmp_terms_gcd, + dmp_list_terms, dmp_exclude, + dmp_slice_in, dmp_permute, + dmp_to_tuple,) + +from sympy.polys.densearith import ( + dmp_add_ground, + dmp_sub_ground, + dmp_mul_ground, + dmp_quo_ground, + dmp_exquo_ground, + dmp_abs, + dup_neg, dmp_neg, + dup_add, dmp_add, + dup_sub, dmp_sub, + dup_mul, dmp_mul, + dmp_sqr, + dup_pow, dmp_pow, + dmp_pdiv, + dmp_prem, + dmp_pquo, + dmp_pexquo, + dmp_div, + dup_rem, dmp_rem, + dmp_quo, + dmp_exquo, + dmp_add_mul, dmp_sub_mul, + dmp_max_norm, + dmp_l1_norm, + dmp_l2_norm_squared) + +from sympy.polys.densetools import ( + dmp_clear_denoms, + dmp_integrate_in, + dmp_diff_in, + dmp_eval_in, + dup_revert, + dmp_ground_trunc, + dmp_ground_content, + dmp_ground_primitive, + dmp_ground_monic, + dmp_compose, + dup_decompose, + dup_shift, + dup_transform, + dmp_lift) + +from sympy.polys.euclidtools import ( + dup_half_gcdex, dup_gcdex, dup_invert, + dmp_subresultants, + dmp_resultant, + dmp_discriminant, + dmp_inner_gcd, + dmp_gcd, + dmp_lcm, + dmp_cancel) + +from sympy.polys.sqfreetools import ( + dup_gff_list, + dmp_norm, + dmp_sqf_p, + dmp_sqf_norm, + dmp_sqf_part, + dmp_sqf_list, dmp_sqf_list_include) + +from sympy.polys.factortools import ( + dup_cyclotomic_p, dmp_irreducible_p, + dmp_factor_list, dmp_factor_list_include) + +from sympy.polys.rootisolation import ( + dup_isolate_real_roots_sqf, + dup_isolate_real_roots, + dup_isolate_all_roots_sqf, + dup_isolate_all_roots, + dup_refine_real_root, + dup_count_real_roots, + dup_count_complex_roots, + dup_sturm, + dup_cauchy_upper_bound, + dup_cauchy_lower_bound, + dup_mignotte_sep_bound_squared) + +from sympy.polys.polyerrors import ( + UnificationFailed, + PolynomialError) + + +def init_normal_DMP(rep, lev, dom): + return DMP(dmp_normal(rep, lev, dom), dom, lev) + + +class DMP(PicklableWithSlots, CantSympify): + """Dense Multivariate Polynomials over `K`. """ + + __slots__ = ('rep', 'lev', 'dom', 'ring') + + def __init__(self, rep, dom, lev=None, ring=None): + if lev is not None: + # Not possible to check with isinstance + if type(rep) is dict: + rep = dmp_from_dict(rep, lev, dom) + elif not isinstance(rep, list): + rep = dmp_ground(dom.convert(rep), lev) + else: + rep, lev = dmp_validate(rep) + + self.rep = rep + self.lev = lev + self.dom = dom + self.ring = ring + + def __repr__(f): + return "%s(%s, %s, %s)" % (f.__class__.__name__, f.rep, f.dom, f.ring) + + def __hash__(f): + return hash((f.__class__.__name__, f.to_tuple(), f.lev, f.dom, f.ring)) + + def unify(f, g): + """Unify representations of two multivariate polynomials. """ + if not isinstance(g, DMP) or f.lev != g.lev: + raise UnificationFailed("Cannot unify %s with %s" % (f, g)) + + if f.dom == g.dom and f.ring == g.ring: + return f.lev, f.dom, f.per, f.rep, g.rep + else: + lev, dom = f.lev, f.dom.unify(g.dom) + ring = f.ring + if g.ring is not None: + if ring is not None: + ring = ring.unify(g.ring) + else: + ring = g.ring + + F = dmp_convert(f.rep, lev, f.dom, dom) + G = dmp_convert(g.rep, lev, g.dom, dom) + + def per(rep, dom=dom, lev=lev, kill=False): + if kill: + if not lev: + return rep + else: + lev -= 1 + + return DMP(rep, dom, lev, ring) + + return lev, dom, per, F, G + + def per(f, rep, dom=None, kill=False, ring=None): + """Create a DMP out of the given representation. """ + lev = f.lev + + if kill: + if not lev: + return rep + else: + lev -= 1 + + if dom is None: + dom = f.dom + + if ring is None: + ring = f.ring + + return DMP(rep, dom, lev, ring) + + @classmethod + def zero(cls, lev, dom, ring=None): + return DMP(0, dom, lev, ring) + + @classmethod + def one(cls, lev, dom, ring=None): + return DMP(1, dom, lev, ring) + + @classmethod + def from_list(cls, rep, lev, dom): + """Create an instance of ``cls`` given a list of native coefficients. """ + return cls(dmp_convert(rep, lev, None, dom), dom, lev) + + @classmethod + def from_sympy_list(cls, rep, lev, dom): + """Create an instance of ``cls`` given a list of SymPy coefficients. """ + return cls(dmp_from_sympy(rep, lev, dom), dom, lev) + + def to_dict(f, zero=False): + """Convert ``f`` to a dict representation with native coefficients. """ + return dmp_to_dict(f.rep, f.lev, f.dom, zero=zero) + + def to_sympy_dict(f, zero=False): + """Convert ``f`` to a dict representation with SymPy coefficients. """ + rep = dmp_to_dict(f.rep, f.lev, f.dom, zero=zero) + + for k, v in rep.items(): + rep[k] = f.dom.to_sympy(v) + + return rep + + def to_list(f): + """Convert ``f`` to a list representation with native coefficients. """ + return f.rep + + def to_sympy_list(f): + """Convert ``f`` to a list representation with SymPy coefficients. """ + def sympify_nested_list(rep): + out = [] + for val in rep: + if isinstance(val, list): + out.append(sympify_nested_list(val)) + else: + out.append(f.dom.to_sympy(val)) + return out + + return sympify_nested_list(f.rep) + + def to_tuple(f): + """ + Convert ``f`` to a tuple representation with native coefficients. + + This is needed for hashing. + """ + return dmp_to_tuple(f.rep, f.lev) + + @classmethod + def from_dict(cls, rep, lev, dom): + """Construct and instance of ``cls`` from a ``dict`` representation. """ + return cls(dmp_from_dict(rep, lev, dom), dom, lev) + + @classmethod + def from_monoms_coeffs(cls, monoms, coeffs, lev, dom, ring=None): + return DMP(dict(list(zip(monoms, coeffs))), dom, lev, ring) + + def to_ring(f): + """Make the ground domain a ring. """ + return f.convert(f.dom.get_ring()) + + def to_field(f): + """Make the ground domain a field. """ + return f.convert(f.dom.get_field()) + + def to_exact(f): + """Make the ground domain exact. """ + return f.convert(f.dom.get_exact()) + + def convert(f, dom): + """Convert the ground domain of ``f``. """ + if f.dom == dom: + return f + else: + return DMP(dmp_convert(f.rep, f.lev, f.dom, dom), dom, f.lev) + + def slice(f, m, n, j=0): + """Take a continuous subsequence of terms of ``f``. """ + return f.per(dmp_slice_in(f.rep, m, n, j, f.lev, f.dom)) + + def coeffs(f, order=None): + """Returns all non-zero coefficients from ``f`` in lex order. """ + return [ c for _, c in dmp_list_terms(f.rep, f.lev, f.dom, order=order) ] + + def monoms(f, order=None): + """Returns all non-zero monomials from ``f`` in lex order. """ + return [ m for m, _ in dmp_list_terms(f.rep, f.lev, f.dom, order=order) ] + + def terms(f, order=None): + """Returns all non-zero terms from ``f`` in lex order. """ + return dmp_list_terms(f.rep, f.lev, f.dom, order=order) + + def all_coeffs(f): + """Returns all coefficients from ``f``. """ + if not f.lev: + if not f: + return [f.dom.zero] + else: + return list(f.rep) + else: + raise PolynomialError('multivariate polynomials not supported') + + def all_monoms(f): + """Returns all monomials from ``f``. """ + if not f.lev: + n = dup_degree(f.rep) + + if n < 0: + return [(0,)] + else: + return [ (n - i,) for i, c in enumerate(f.rep) ] + else: + raise PolynomialError('multivariate polynomials not supported') + + def all_terms(f): + """Returns all terms from a ``f``. """ + if not f.lev: + n = dup_degree(f.rep) + + if n < 0: + return [((0,), f.dom.zero)] + else: + return [ ((n - i,), c) for i, c in enumerate(f.rep) ] + else: + raise PolynomialError('multivariate polynomials not supported') + + def lift(f): + """Convert algebraic coefficients to rationals. """ + return f.per(dmp_lift(f.rep, f.lev, f.dom), dom=f.dom.dom) + + def deflate(f): + """Reduce degree of `f` by mapping `x_i^m` to `y_i`. """ + J, F = dmp_deflate(f.rep, f.lev, f.dom) + return J, f.per(F) + + def inject(f, front=False): + """Inject ground domain generators into ``f``. """ + F, lev = dmp_inject(f.rep, f.lev, f.dom, front=front) + return f.__class__(F, f.dom.dom, lev) + + def eject(f, dom, front=False): + """Eject selected generators into the ground domain. """ + F = dmp_eject(f.rep, f.lev, dom, front=front) + return f.__class__(F, dom, f.lev - len(dom.symbols)) + + def exclude(f): + r""" + Remove useless generators from ``f``. + + Returns the removed generators and the new excluded ``f``. + + Examples + ======== + + >>> from sympy.polys.polyclasses import DMP + >>> from sympy.polys.domains import ZZ + + >>> DMP([[[ZZ(1)]], [[ZZ(1)], [ZZ(2)]]], ZZ).exclude() + ([2], DMP([[1], [1, 2]], ZZ, None)) + + """ + J, F, u = dmp_exclude(f.rep, f.lev, f.dom) + return J, f.__class__(F, f.dom, u) + + def permute(f, P): + r""" + Returns a polynomial in `K[x_{P(1)}, ..., x_{P(n)}]`. + + Examples + ======== + + >>> from sympy.polys.polyclasses import DMP + >>> from sympy.polys.domains import ZZ + + >>> DMP([[[ZZ(2)], [ZZ(1), ZZ(0)]], [[]]], ZZ).permute([1, 0, 2]) + DMP([[[2], []], [[1, 0], []]], ZZ, None) + + >>> DMP([[[ZZ(2)], [ZZ(1), ZZ(0)]], [[]]], ZZ).permute([1, 2, 0]) + DMP([[[1], []], [[2, 0], []]], ZZ, None) + + """ + return f.per(dmp_permute(f.rep, P, f.lev, f.dom)) + + def terms_gcd(f): + """Remove GCD of terms from the polynomial ``f``. """ + J, F = dmp_terms_gcd(f.rep, f.lev, f.dom) + return J, f.per(F) + + def add_ground(f, c): + """Add an element of the ground domain to ``f``. """ + return f.per(dmp_add_ground(f.rep, f.dom.convert(c), f.lev, f.dom)) + + def sub_ground(f, c): + """Subtract an element of the ground domain from ``f``. """ + return f.per(dmp_sub_ground(f.rep, f.dom.convert(c), f.lev, f.dom)) + + def mul_ground(f, c): + """Multiply ``f`` by a an element of the ground domain. """ + return f.per(dmp_mul_ground(f.rep, f.dom.convert(c), f.lev, f.dom)) + + def quo_ground(f, c): + """Quotient of ``f`` by a an element of the ground domain. """ + return f.per(dmp_quo_ground(f.rep, f.dom.convert(c), f.lev, f.dom)) + + def exquo_ground(f, c): + """Exact quotient of ``f`` by a an element of the ground domain. """ + return f.per(dmp_exquo_ground(f.rep, f.dom.convert(c), f.lev, f.dom)) + + def abs(f): + """Make all coefficients in ``f`` positive. """ + return f.per(dmp_abs(f.rep, f.lev, f.dom)) + + def neg(f): + """Negate all coefficients in ``f``. """ + return f.per(dmp_neg(f.rep, f.lev, f.dom)) + + def add(f, g): + """Add two multivariate polynomials ``f`` and ``g``. """ + lev, dom, per, F, G = f.unify(g) + return per(dmp_add(F, G, lev, dom)) + + def sub(f, g): + """Subtract two multivariate polynomials ``f`` and ``g``. """ + lev, dom, per, F, G = f.unify(g) + return per(dmp_sub(F, G, lev, dom)) + + def mul(f, g): + """Multiply two multivariate polynomials ``f`` and ``g``. """ + lev, dom, per, F, G = f.unify(g) + return per(dmp_mul(F, G, lev, dom)) + + def sqr(f): + """Square a multivariate polynomial ``f``. """ + return f.per(dmp_sqr(f.rep, f.lev, f.dom)) + + def pow(f, n): + """Raise ``f`` to a non-negative power ``n``. """ + if isinstance(n, int): + return f.per(dmp_pow(f.rep, n, f.lev, f.dom)) + else: + raise TypeError("``int`` expected, got %s" % type(n)) + + def pdiv(f, g): + """Polynomial pseudo-division of ``f`` and ``g``. """ + lev, dom, per, F, G = f.unify(g) + q, r = dmp_pdiv(F, G, lev, dom) + return per(q), per(r) + + def prem(f, g): + """Polynomial pseudo-remainder of ``f`` and ``g``. """ + lev, dom, per, F, G = f.unify(g) + return per(dmp_prem(F, G, lev, dom)) + + def pquo(f, g): + """Polynomial pseudo-quotient of ``f`` and ``g``. """ + lev, dom, per, F, G = f.unify(g) + return per(dmp_pquo(F, G, lev, dom)) + + def pexquo(f, g): + """Polynomial exact pseudo-quotient of ``f`` and ``g``. """ + lev, dom, per, F, G = f.unify(g) + return per(dmp_pexquo(F, G, lev, dom)) + + def div(f, g): + """Polynomial division with remainder of ``f`` and ``g``. """ + lev, dom, per, F, G = f.unify(g) + q, r = dmp_div(F, G, lev, dom) + return per(q), per(r) + + def rem(f, g): + """Computes polynomial remainder of ``f`` and ``g``. """ + lev, dom, per, F, G = f.unify(g) + return per(dmp_rem(F, G, lev, dom)) + + def quo(f, g): + """Computes polynomial quotient of ``f`` and ``g``. """ + lev, dom, per, F, G = f.unify(g) + return per(dmp_quo(F, G, lev, dom)) + + def exquo(f, g): + """Computes polynomial exact quotient of ``f`` and ``g``. """ + lev, dom, per, F, G = f.unify(g) + res = per(dmp_exquo(F, G, lev, dom)) + if f.ring and res not in f.ring: + from sympy.polys.polyerrors import ExactQuotientFailed + raise ExactQuotientFailed(f, g, f.ring) + return res + + def degree(f, j=0): + """Returns the leading degree of ``f`` in ``x_j``. """ + if isinstance(j, int): + return dmp_degree_in(f.rep, j, f.lev) + else: + raise TypeError("``int`` expected, got %s" % type(j)) + + def degree_list(f): + """Returns a list of degrees of ``f``. """ + return dmp_degree_list(f.rep, f.lev) + + def total_degree(f): + """Returns the total degree of ``f``. """ + return max(sum(m) for m in f.monoms()) + + def homogenize(f, s): + """Return homogeneous polynomial of ``f``""" + td = f.total_degree() + result = {} + new_symbol = (s == len(f.terms()[0][0])) + for term in f.terms(): + d = sum(term[0]) + if d < td: + i = td - d + else: + i = 0 + if new_symbol: + result[term[0] + (i,)] = term[1] + else: + l = list(term[0]) + l[s] += i + result[tuple(l)] = term[1] + return DMP(result, f.dom, f.lev + int(new_symbol), f.ring) + + def homogeneous_order(f): + """Returns the homogeneous order of ``f``. """ + if f.is_zero: + return -oo + + monoms = f.monoms() + tdeg = sum(monoms[0]) + + for monom in monoms: + _tdeg = sum(monom) + + if _tdeg != tdeg: + return None + + return tdeg + + def LC(f): + """Returns the leading coefficient of ``f``. """ + return dmp_ground_LC(f.rep, f.lev, f.dom) + + def TC(f): + """Returns the trailing coefficient of ``f``. """ + return dmp_ground_TC(f.rep, f.lev, f.dom) + + def nth(f, *N): + """Returns the ``n``-th coefficient of ``f``. """ + if all(isinstance(n, int) for n in N): + return dmp_ground_nth(f.rep, N, f.lev, f.dom) + else: + raise TypeError("a sequence of integers expected") + + def max_norm(f): + """Returns maximum norm of ``f``. """ + return dmp_max_norm(f.rep, f.lev, f.dom) + + def l1_norm(f): + """Returns l1 norm of ``f``. """ + return dmp_l1_norm(f.rep, f.lev, f.dom) + + def l2_norm_squared(f): + """Return squared l2 norm of ``f``. """ + return dmp_l2_norm_squared(f.rep, f.lev, f.dom) + + def clear_denoms(f): + """Clear denominators, but keep the ground domain. """ + coeff, F = dmp_clear_denoms(f.rep, f.lev, f.dom) + return coeff, f.per(F) + + def integrate(f, m=1, j=0): + """Computes the ``m``-th order indefinite integral of ``f`` in ``x_j``. """ + if not isinstance(m, int): + raise TypeError("``int`` expected, got %s" % type(m)) + + if not isinstance(j, int): + raise TypeError("``int`` expected, got %s" % type(j)) + + return f.per(dmp_integrate_in(f.rep, m, j, f.lev, f.dom)) + + def diff(f, m=1, j=0): + """Computes the ``m``-th order derivative of ``f`` in ``x_j``. """ + if not isinstance(m, int): + raise TypeError("``int`` expected, got %s" % type(m)) + + if not isinstance(j, int): + raise TypeError("``int`` expected, got %s" % type(j)) + + return f.per(dmp_diff_in(f.rep, m, j, f.lev, f.dom)) + + def eval(f, a, j=0): + """Evaluates ``f`` at the given point ``a`` in ``x_j``. """ + if not isinstance(j, int): + raise TypeError("``int`` expected, got %s" % type(j)) + + return f.per(dmp_eval_in(f.rep, + f.dom.convert(a), j, f.lev, f.dom), kill=True) + + def half_gcdex(f, g): + """Half extended Euclidean algorithm, if univariate. """ + lev, dom, per, F, G = f.unify(g) + + if not lev: + s, h = dup_half_gcdex(F, G, dom) + return per(s), per(h) + else: + raise ValueError('univariate polynomial expected') + + def gcdex(f, g): + """Extended Euclidean algorithm, if univariate. """ + lev, dom, per, F, G = f.unify(g) + + if not lev: + s, t, h = dup_gcdex(F, G, dom) + return per(s), per(t), per(h) + else: + raise ValueError('univariate polynomial expected') + + def invert(f, g): + """Invert ``f`` modulo ``g``, if possible. """ + lev, dom, per, F, G = f.unify(g) + + if not lev: + return per(dup_invert(F, G, dom)) + else: + raise ValueError('univariate polynomial expected') + + def revert(f, n): + """Compute ``f**(-1)`` mod ``x**n``. """ + if not f.lev: + return f.per(dup_revert(f.rep, n, f.dom)) + else: + raise ValueError('univariate polynomial expected') + + def subresultants(f, g): + """Computes subresultant PRS sequence of ``f`` and ``g``. """ + lev, dom, per, F, G = f.unify(g) + R = dmp_subresultants(F, G, lev, dom) + return list(map(per, R)) + + def resultant(f, g, includePRS=False): + """Computes resultant of ``f`` and ``g`` via PRS. """ + lev, dom, per, F, G = f.unify(g) + if includePRS: + res, R = dmp_resultant(F, G, lev, dom, includePRS=includePRS) + return per(res, kill=True), list(map(per, R)) + return per(dmp_resultant(F, G, lev, dom), kill=True) + + def discriminant(f): + """Computes discriminant of ``f``. """ + return f.per(dmp_discriminant(f.rep, f.lev, f.dom), kill=True) + + def cofactors(f, g): + """Returns GCD of ``f`` and ``g`` and their cofactors. """ + lev, dom, per, F, G = f.unify(g) + h, cff, cfg = dmp_inner_gcd(F, G, lev, dom) + return per(h), per(cff), per(cfg) + + def gcd(f, g): + """Returns polynomial GCD of ``f`` and ``g``. """ + lev, dom, per, F, G = f.unify(g) + return per(dmp_gcd(F, G, lev, dom)) + + def lcm(f, g): + """Returns polynomial LCM of ``f`` and ``g``. """ + lev, dom, per, F, G = f.unify(g) + return per(dmp_lcm(F, G, lev, dom)) + + def cancel(f, g, include=True): + """Cancel common factors in a rational function ``f/g``. """ + lev, dom, per, F, G = f.unify(g) + + if include: + F, G = dmp_cancel(F, G, lev, dom, include=True) + else: + cF, cG, F, G = dmp_cancel(F, G, lev, dom, include=False) + + F, G = per(F), per(G) + + if include: + return F, G + else: + return cF, cG, F, G + + def trunc(f, p): + """Reduce ``f`` modulo a constant ``p``. """ + return f.per(dmp_ground_trunc(f.rep, f.dom.convert(p), f.lev, f.dom)) + + def monic(f): + """Divides all coefficients by ``LC(f)``. """ + return f.per(dmp_ground_monic(f.rep, f.lev, f.dom)) + + def content(f): + """Returns GCD of polynomial coefficients. """ + return dmp_ground_content(f.rep, f.lev, f.dom) + + def primitive(f): + """Returns content and a primitive form of ``f``. """ + cont, F = dmp_ground_primitive(f.rep, f.lev, f.dom) + return cont, f.per(F) + + def compose(f, g): + """Computes functional composition of ``f`` and ``g``. """ + lev, dom, per, F, G = f.unify(g) + return per(dmp_compose(F, G, lev, dom)) + + def decompose(f): + """Computes functional decomposition of ``f``. """ + if not f.lev: + return list(map(f.per, dup_decompose(f.rep, f.dom))) + else: + raise ValueError('univariate polynomial expected') + + def shift(f, a): + """Efficiently compute Taylor shift ``f(x + a)``. """ + if not f.lev: + return f.per(dup_shift(f.rep, f.dom.convert(a), f.dom)) + else: + raise ValueError('univariate polynomial expected') + + def transform(f, p, q): + """Evaluate functional transformation ``q**n * f(p/q)``.""" + if f.lev: + raise ValueError('univariate polynomial expected') + + lev, dom, per, P, Q = p.unify(q) + lev, dom, per, F, P = f.unify(per(P, dom, lev)) + lev, dom, per, F, Q = per(F, dom, lev).unify(per(Q, dom, lev)) + + if not lev: + return per(dup_transform(F, P, Q, dom)) + else: + raise ValueError('univariate polynomial expected') + + def sturm(f): + """Computes the Sturm sequence of ``f``. """ + if not f.lev: + return list(map(f.per, dup_sturm(f.rep, f.dom))) + else: + raise ValueError('univariate polynomial expected') + + def cauchy_upper_bound(f): + """Computes the Cauchy upper bound on the roots of ``f``. """ + if not f.lev: + return dup_cauchy_upper_bound(f.rep, f.dom) + else: + raise ValueError('univariate polynomial expected') + + def cauchy_lower_bound(f): + """Computes the Cauchy lower bound on the nonzero roots of ``f``. """ + if not f.lev: + return dup_cauchy_lower_bound(f.rep, f.dom) + else: + raise ValueError('univariate polynomial expected') + + def mignotte_sep_bound_squared(f): + """Computes the squared Mignotte bound on root separations of ``f``. """ + if not f.lev: + return dup_mignotte_sep_bound_squared(f.rep, f.dom) + else: + raise ValueError('univariate polynomial expected') + + def gff_list(f): + """Computes greatest factorial factorization of ``f``. """ + if not f.lev: + return [ (f.per(g), k) for g, k in dup_gff_list(f.rep, f.dom) ] + else: + raise ValueError('univariate polynomial expected') + + def norm(f): + """Computes ``Norm(f)``.""" + r = dmp_norm(f.rep, f.lev, f.dom) + return f.per(r, dom=f.dom.dom) + + def sqf_norm(f): + """Computes square-free norm of ``f``. """ + s, g, r = dmp_sqf_norm(f.rep, f.lev, f.dom) + return s, f.per(g), f.per(r, dom=f.dom.dom) + + def sqf_part(f): + """Computes square-free part of ``f``. """ + return f.per(dmp_sqf_part(f.rep, f.lev, f.dom)) + + def sqf_list(f, all=False): + """Returns a list of square-free factors of ``f``. """ + coeff, factors = dmp_sqf_list(f.rep, f.lev, f.dom, all) + return coeff, [ (f.per(g), k) for g, k in factors ] + + def sqf_list_include(f, all=False): + """Returns a list of square-free factors of ``f``. """ + factors = dmp_sqf_list_include(f.rep, f.lev, f.dom, all) + return [ (f.per(g), k) for g, k in factors ] + + def factor_list(f): + """Returns a list of irreducible factors of ``f``. """ + coeff, factors = dmp_factor_list(f.rep, f.lev, f.dom) + return coeff, [ (f.per(g), k) for g, k in factors ] + + def factor_list_include(f): + """Returns a list of irreducible factors of ``f``. """ + factors = dmp_factor_list_include(f.rep, f.lev, f.dom) + return [ (f.per(g), k) for g, k in factors ] + + def intervals(f, all=False, eps=None, inf=None, sup=None, fast=False, sqf=False): + """Compute isolating intervals for roots of ``f``. """ + if not f.lev: + if not all: + if not sqf: + return dup_isolate_real_roots(f.rep, f.dom, eps=eps, inf=inf, sup=sup, fast=fast) + else: + return dup_isolate_real_roots_sqf(f.rep, f.dom, eps=eps, inf=inf, sup=sup, fast=fast) + else: + if not sqf: + return dup_isolate_all_roots(f.rep, f.dom, eps=eps, inf=inf, sup=sup, fast=fast) + else: + return dup_isolate_all_roots_sqf(f.rep, f.dom, eps=eps, inf=inf, sup=sup, fast=fast) + else: + raise PolynomialError( + "Cannot isolate roots of a multivariate polynomial") + + def refine_root(f, s, t, eps=None, steps=None, fast=False): + """ + Refine an isolating interval to the given precision. + + ``eps`` should be a rational number. + + """ + if not f.lev: + return dup_refine_real_root(f.rep, s, t, f.dom, eps=eps, steps=steps, fast=fast) + else: + raise PolynomialError( + "Cannot refine a root of a multivariate polynomial") + + def count_real_roots(f, inf=None, sup=None): + """Return the number of real roots of ``f`` in ``[inf, sup]``. """ + return dup_count_real_roots(f.rep, f.dom, inf=inf, sup=sup) + + def count_complex_roots(f, inf=None, sup=None): + """Return the number of complex roots of ``f`` in ``[inf, sup]``. """ + return dup_count_complex_roots(f.rep, f.dom, inf=inf, sup=sup) + + @property + def is_zero(f): + """Returns ``True`` if ``f`` is a zero polynomial. """ + return dmp_zero_p(f.rep, f.lev) + + @property + def is_one(f): + """Returns ``True`` if ``f`` is a unit polynomial. """ + return dmp_one_p(f.rep, f.lev, f.dom) + + @property + def is_ground(f): + """Returns ``True`` if ``f`` is an element of the ground domain. """ + return dmp_ground_p(f.rep, None, f.lev) + + @property + def is_sqf(f): + """Returns ``True`` if ``f`` is a square-free polynomial. """ + return dmp_sqf_p(f.rep, f.lev, f.dom) + + @property + def is_monic(f): + """Returns ``True`` if the leading coefficient of ``f`` is one. """ + return f.dom.is_one(dmp_ground_LC(f.rep, f.lev, f.dom)) + + @property + def is_primitive(f): + """Returns ``True`` if the GCD of the coefficients of ``f`` is one. """ + return f.dom.is_one(dmp_ground_content(f.rep, f.lev, f.dom)) + + @property + def is_linear(f): + """Returns ``True`` if ``f`` is linear in all its variables. """ + return all(sum(monom) <= 1 for monom in dmp_to_dict(f.rep, f.lev, f.dom).keys()) + + @property + def is_quadratic(f): + """Returns ``True`` if ``f`` is quadratic in all its variables. """ + return all(sum(monom) <= 2 for monom in dmp_to_dict(f.rep, f.lev, f.dom).keys()) + + @property + def is_monomial(f): + """Returns ``True`` if ``f`` is zero or has only one term. """ + return len(f.to_dict()) <= 1 + + @property + def is_homogeneous(f): + """Returns ``True`` if ``f`` is a homogeneous polynomial. """ + return f.homogeneous_order() is not None + + @property + def is_irreducible(f): + """Returns ``True`` if ``f`` has no factors over its domain. """ + return dmp_irreducible_p(f.rep, f.lev, f.dom) + + @property + def is_cyclotomic(f): + """Returns ``True`` if ``f`` is a cyclotomic polynomial. """ + if not f.lev: + return dup_cyclotomic_p(f.rep, f.dom) + else: + return False + + def __abs__(f): + return f.abs() + + def __neg__(f): + return f.neg() + + def __add__(f, g): + if not isinstance(g, DMP): + try: + g = f.per(dmp_ground(f.dom.convert(g), f.lev)) + except TypeError: + return NotImplemented + except (CoercionFailed, NotImplementedError): + if f.ring is not None: + try: + g = f.ring.convert(g) + except (CoercionFailed, NotImplementedError): + return NotImplemented + + return f.add(g) + + def __radd__(f, g): + return f.__add__(g) + + def __sub__(f, g): + if not isinstance(g, DMP): + try: + g = f.per(dmp_ground(f.dom.convert(g), f.lev)) + except TypeError: + return NotImplemented + except (CoercionFailed, NotImplementedError): + if f.ring is not None: + try: + g = f.ring.convert(g) + except (CoercionFailed, NotImplementedError): + return NotImplemented + + return f.sub(g) + + def __rsub__(f, g): + return (-f).__add__(g) + + def __mul__(f, g): + if isinstance(g, DMP): + return f.mul(g) + else: + try: + return f.mul_ground(g) + except TypeError: + return NotImplemented + except (CoercionFailed, NotImplementedError): + if f.ring is not None: + try: + return f.mul(f.ring.convert(g)) + except (CoercionFailed, NotImplementedError): + pass + return NotImplemented + + def __truediv__(f, g): + if isinstance(g, DMP): + return f.exquo(g) + else: + try: + return f.mul_ground(g) + except TypeError: + return NotImplemented + except (CoercionFailed, NotImplementedError): + if f.ring is not None: + try: + return f.exquo(f.ring.convert(g)) + except (CoercionFailed, NotImplementedError): + pass + return NotImplemented + + def __rtruediv__(f, g): + if isinstance(g, DMP): + return g.exquo(f) + elif f.ring is not None: + try: + return f.ring.convert(g).exquo(f) + except (CoercionFailed, NotImplementedError): + pass + return NotImplemented + + def __rmul__(f, g): + return f.__mul__(g) + + def __pow__(f, n): + return f.pow(n) + + def __divmod__(f, g): + return f.div(g) + + def __mod__(f, g): + return f.rem(g) + + def __floordiv__(f, g): + if isinstance(g, DMP): + return f.quo(g) + else: + try: + return f.quo_ground(g) + except TypeError: + return NotImplemented + + def __eq__(f, g): + try: + _, _, _, F, G = f.unify(g) + + if f.lev == g.lev: + return F == G + except UnificationFailed: + pass + + return False + + def __ne__(f, g): + return not f == g + + def eq(f, g, strict=False): + if not strict: + return f == g + else: + return f._strict_eq(g) + + def ne(f, g, strict=False): + return not f.eq(g, strict=strict) + + def _strict_eq(f, g): + return isinstance(g, f.__class__) and f.lev == g.lev \ + and f.dom == g.dom \ + and f.rep == g.rep + + def __lt__(f, g): + _, _, _, F, G = f.unify(g) + return F < G + + def __le__(f, g): + _, _, _, F, G = f.unify(g) + return F <= G + + def __gt__(f, g): + _, _, _, F, G = f.unify(g) + return F > G + + def __ge__(f, g): + _, _, _, F, G = f.unify(g) + return F >= G + + def __bool__(f): + return not dmp_zero_p(f.rep, f.lev) + + +def init_normal_DMF(num, den, lev, dom): + return DMF(dmp_normal(num, lev, dom), + dmp_normal(den, lev, dom), dom, lev) + + +class DMF(PicklableWithSlots, CantSympify): + """Dense Multivariate Fractions over `K`. """ + + __slots__ = ('num', 'den', 'lev', 'dom', 'ring') + + def __init__(self, rep, dom, lev=None, ring=None): + num, den, lev = self._parse(rep, dom, lev) + num, den = dmp_cancel(num, den, lev, dom) + + self.num = num + self.den = den + self.lev = lev + self.dom = dom + self.ring = ring + + @classmethod + def new(cls, rep, dom, lev=None, ring=None): + num, den, lev = cls._parse(rep, dom, lev) + + obj = object.__new__(cls) + + obj.num = num + obj.den = den + obj.lev = lev + obj.dom = dom + obj.ring = ring + + return obj + + @classmethod + def _parse(cls, rep, dom, lev=None): + if isinstance(rep, tuple): + num, den = rep + + if lev is not None: + if isinstance(num, dict): + num = dmp_from_dict(num, lev, dom) + + if isinstance(den, dict): + den = dmp_from_dict(den, lev, dom) + else: + num, num_lev = dmp_validate(num) + den, den_lev = dmp_validate(den) + + if num_lev == den_lev: + lev = num_lev + else: + raise ValueError('inconsistent number of levels') + + if dmp_zero_p(den, lev): + raise ZeroDivisionError('fraction denominator') + + if dmp_zero_p(num, lev): + den = dmp_one(lev, dom) + else: + if dmp_negative_p(den, lev, dom): + num = dmp_neg(num, lev, dom) + den = dmp_neg(den, lev, dom) + else: + num = rep + + if lev is not None: + if isinstance(num, dict): + num = dmp_from_dict(num, lev, dom) + elif not isinstance(num, list): + num = dmp_ground(dom.convert(num), lev) + else: + num, lev = dmp_validate(num) + + den = dmp_one(lev, dom) + + return num, den, lev + + def __repr__(f): + return "%s((%s, %s), %s, %s)" % (f.__class__.__name__, f.num, f.den, + f.dom, f.ring) + + def __hash__(f): + return hash((f.__class__.__name__, dmp_to_tuple(f.num, f.lev), + dmp_to_tuple(f.den, f.lev), f.lev, f.dom, f.ring)) + + def poly_unify(f, g): + """Unify a multivariate fraction and a polynomial. """ + if not isinstance(g, DMP) or f.lev != g.lev: + raise UnificationFailed("Cannot unify %s with %s" % (f, g)) + + if f.dom == g.dom and f.ring == g.ring: + return (f.lev, f.dom, f.per, (f.num, f.den), g.rep) + else: + lev, dom = f.lev, f.dom.unify(g.dom) + ring = f.ring + if g.ring is not None: + if ring is not None: + ring = ring.unify(g.ring) + else: + ring = g.ring + + F = (dmp_convert(f.num, lev, f.dom, dom), + dmp_convert(f.den, lev, f.dom, dom)) + + G = dmp_convert(g.rep, lev, g.dom, dom) + + def per(num, den, cancel=True, kill=False, lev=lev): + if kill: + if not lev: + return num/den + else: + lev = lev - 1 + + if cancel: + num, den = dmp_cancel(num, den, lev, dom) + + return f.__class__.new((num, den), dom, lev, ring=ring) + + return lev, dom, per, F, G + + def frac_unify(f, g): + """Unify representations of two multivariate fractions. """ + if not isinstance(g, DMF) or f.lev != g.lev: + raise UnificationFailed("Cannot unify %s with %s" % (f, g)) + + if f.dom == g.dom and f.ring == g.ring: + return (f.lev, f.dom, f.per, (f.num, f.den), + (g.num, g.den)) + else: + lev, dom = f.lev, f.dom.unify(g.dom) + ring = f.ring + if g.ring is not None: + if ring is not None: + ring = ring.unify(g.ring) + else: + ring = g.ring + + F = (dmp_convert(f.num, lev, f.dom, dom), + dmp_convert(f.den, lev, f.dom, dom)) + + G = (dmp_convert(g.num, lev, g.dom, dom), + dmp_convert(g.den, lev, g.dom, dom)) + + def per(num, den, cancel=True, kill=False, lev=lev): + if kill: + if not lev: + return num/den + else: + lev = lev - 1 + + if cancel: + num, den = dmp_cancel(num, den, lev, dom) + + return f.__class__.new((num, den), dom, lev, ring=ring) + + return lev, dom, per, F, G + + def per(f, num, den, cancel=True, kill=False, ring=None): + """Create a DMF out of the given representation. """ + lev, dom = f.lev, f.dom + + if kill: + if not lev: + return num/den + else: + lev -= 1 + + if cancel: + num, den = dmp_cancel(num, den, lev, dom) + + if ring is None: + ring = f.ring + + return f.__class__.new((num, den), dom, lev, ring=ring) + + def half_per(f, rep, kill=False): + """Create a DMP out of the given representation. """ + lev = f.lev + + if kill: + if not lev: + return rep + else: + lev -= 1 + + return DMP(rep, f.dom, lev) + + @classmethod + def zero(cls, lev, dom, ring=None): + return cls.new(0, dom, lev, ring=ring) + + @classmethod + def one(cls, lev, dom, ring=None): + return cls.new(1, dom, lev, ring=ring) + + def numer(f): + """Returns the numerator of ``f``. """ + return f.half_per(f.num) + + def denom(f): + """Returns the denominator of ``f``. """ + return f.half_per(f.den) + + def cancel(f): + """Remove common factors from ``f.num`` and ``f.den``. """ + return f.per(f.num, f.den) + + def neg(f): + """Negate all coefficients in ``f``. """ + return f.per(dmp_neg(f.num, f.lev, f.dom), f.den, cancel=False) + + def add(f, g): + """Add two multivariate fractions ``f`` and ``g``. """ + if isinstance(g, DMP): + lev, dom, per, (F_num, F_den), G = f.poly_unify(g) + num, den = dmp_add_mul(F_num, F_den, G, lev, dom), F_den + else: + lev, dom, per, F, G = f.frac_unify(g) + (F_num, F_den), (G_num, G_den) = F, G + + num = dmp_add(dmp_mul(F_num, G_den, lev, dom), + dmp_mul(F_den, G_num, lev, dom), lev, dom) + den = dmp_mul(F_den, G_den, lev, dom) + + return per(num, den) + + def sub(f, g): + """Subtract two multivariate fractions ``f`` and ``g``. """ + if isinstance(g, DMP): + lev, dom, per, (F_num, F_den), G = f.poly_unify(g) + num, den = dmp_sub_mul(F_num, F_den, G, lev, dom), F_den + else: + lev, dom, per, F, G = f.frac_unify(g) + (F_num, F_den), (G_num, G_den) = F, G + + num = dmp_sub(dmp_mul(F_num, G_den, lev, dom), + dmp_mul(F_den, G_num, lev, dom), lev, dom) + den = dmp_mul(F_den, G_den, lev, dom) + + return per(num, den) + + def mul(f, g): + """Multiply two multivariate fractions ``f`` and ``g``. """ + if isinstance(g, DMP): + lev, dom, per, (F_num, F_den), G = f.poly_unify(g) + num, den = dmp_mul(F_num, G, lev, dom), F_den + else: + lev, dom, per, F, G = f.frac_unify(g) + (F_num, F_den), (G_num, G_den) = F, G + + num = dmp_mul(F_num, G_num, lev, dom) + den = dmp_mul(F_den, G_den, lev, dom) + + return per(num, den) + + def pow(f, n): + """Raise ``f`` to a non-negative power ``n``. """ + if isinstance(n, int): + num, den = f.num, f.den + if n < 0: + num, den, n = den, num, -n + return f.per(dmp_pow(num, n, f.lev, f.dom), + dmp_pow(den, n, f.lev, f.dom), cancel=False) + else: + raise TypeError("``int`` expected, got %s" % type(n)) + + def quo(f, g): + """Computes quotient of fractions ``f`` and ``g``. """ + if isinstance(g, DMP): + lev, dom, per, (F_num, F_den), G = f.poly_unify(g) + num, den = F_num, dmp_mul(F_den, G, lev, dom) + else: + lev, dom, per, F, G = f.frac_unify(g) + (F_num, F_den), (G_num, G_den) = F, G + + num = dmp_mul(F_num, G_den, lev, dom) + den = dmp_mul(F_den, G_num, lev, dom) + + res = per(num, den) + if f.ring is not None and res not in f.ring: + from sympy.polys.polyerrors import ExactQuotientFailed + raise ExactQuotientFailed(f, g, f.ring) + return res + + exquo = quo + + def invert(f, check=True): + """Computes inverse of a fraction ``f``. """ + if check and f.ring is not None and not f.ring.is_unit(f): + raise NotReversible(f, f.ring) + res = f.per(f.den, f.num, cancel=False) + return res + + @property + def is_zero(f): + """Returns ``True`` if ``f`` is a zero fraction. """ + return dmp_zero_p(f.num, f.lev) + + @property + def is_one(f): + """Returns ``True`` if ``f`` is a unit fraction. """ + return dmp_one_p(f.num, f.lev, f.dom) and \ + dmp_one_p(f.den, f.lev, f.dom) + + def __neg__(f): + return f.neg() + + def __add__(f, g): + if isinstance(g, (DMP, DMF)): + return f.add(g) + + try: + return f.add(f.half_per(g)) + except TypeError: + return NotImplemented + except (CoercionFailed, NotImplementedError): + if f.ring is not None: + try: + return f.add(f.ring.convert(g)) + except (CoercionFailed, NotImplementedError): + pass + return NotImplemented + + def __radd__(f, g): + return f.__add__(g) + + def __sub__(f, g): + if isinstance(g, (DMP, DMF)): + return f.sub(g) + + try: + return f.sub(f.half_per(g)) + except TypeError: + return NotImplemented + except (CoercionFailed, NotImplementedError): + if f.ring is not None: + try: + return f.sub(f.ring.convert(g)) + except (CoercionFailed, NotImplementedError): + pass + return NotImplemented + + def __rsub__(f, g): + return (-f).__add__(g) + + def __mul__(f, g): + if isinstance(g, (DMP, DMF)): + return f.mul(g) + + try: + return f.mul(f.half_per(g)) + except TypeError: + return NotImplemented + except (CoercionFailed, NotImplementedError): + if f.ring is not None: + try: + return f.mul(f.ring.convert(g)) + except (CoercionFailed, NotImplementedError): + pass + return NotImplemented + + def __rmul__(f, g): + return f.__mul__(g) + + def __pow__(f, n): + return f.pow(n) + + def __truediv__(f, g): + if isinstance(g, (DMP, DMF)): + return f.quo(g) + + try: + return f.quo(f.half_per(g)) + except TypeError: + return NotImplemented + except (CoercionFailed, NotImplementedError): + if f.ring is not None: + try: + return f.quo(f.ring.convert(g)) + except (CoercionFailed, NotImplementedError): + pass + return NotImplemented + + def __rtruediv__(self, g): + r = self.invert(check=False)*g + if self.ring and r not in self.ring: + from sympy.polys.polyerrors import ExactQuotientFailed + raise ExactQuotientFailed(g, self, self.ring) + return r + + def __eq__(f, g): + try: + if isinstance(g, DMP): + _, _, _, (F_num, F_den), G = f.poly_unify(g) + + if f.lev == g.lev: + return dmp_one_p(F_den, f.lev, f.dom) and F_num == G + else: + _, _, _, F, G = f.frac_unify(g) + + if f.lev == g.lev: + return F == G + except UnificationFailed: + pass + + return False + + def __ne__(f, g): + try: + if isinstance(g, DMP): + _, _, _, (F_num, F_den), G = f.poly_unify(g) + + if f.lev == g.lev: + return not (dmp_one_p(F_den, f.lev, f.dom) and F_num == G) + else: + _, _, _, F, G = f.frac_unify(g) + + if f.lev == g.lev: + return F != G + except UnificationFailed: + pass + + return True + + def __lt__(f, g): + _, _, _, F, G = f.frac_unify(g) + return F < G + + def __le__(f, g): + _, _, _, F, G = f.frac_unify(g) + return F <= G + + def __gt__(f, g): + _, _, _, F, G = f.frac_unify(g) + return F > G + + def __ge__(f, g): + _, _, _, F, G = f.frac_unify(g) + return F >= G + + def __bool__(f): + return not dmp_zero_p(f.num, f.lev) + + +def init_normal_ANP(rep, mod, dom): + return ANP(dup_normal(rep, dom), + dup_normal(mod, dom), dom) + + +class ANP(PicklableWithSlots, CantSympify): + """Dense Algebraic Number Polynomials over a field. """ + + __slots__ = ('rep', 'mod', 'dom') + + def __init__(self, rep, mod, dom): + # Not possible to check with isinstance + if type(rep) is dict: + self.rep = dup_from_dict(rep, dom) + else: + if isinstance(rep, list): + rep = [dom.convert(a) for a in rep] + else: + rep = [dom.convert(rep)] + + self.rep = dup_strip(rep) + + if isinstance(mod, DMP): + self.mod = mod.rep + else: + if isinstance(mod, dict): + self.mod = dup_from_dict(mod, dom) + else: + self.mod = dup_strip(mod) + + self.dom = dom + + def __repr__(f): + return "%s(%s, %s, %s)" % (f.__class__.__name__, f.rep, f.mod, f.dom) + + def __hash__(f): + return hash((f.__class__.__name__, f.to_tuple(), dmp_to_tuple(f.mod, 0), f.dom)) + + def unify(f, g): + """Unify representations of two algebraic numbers. """ + if not isinstance(g, ANP) or f.mod != g.mod: + raise UnificationFailed("Cannot unify %s with %s" % (f, g)) + + if f.dom == g.dom: + return f.dom, f.per, f.rep, g.rep, f.mod + else: + dom = f.dom.unify(g.dom) + + F = dup_convert(f.rep, f.dom, dom) + G = dup_convert(g.rep, g.dom, dom) + + if dom != f.dom and dom != g.dom: + mod = dup_convert(f.mod, f.dom, dom) + else: + if dom == f.dom: + mod = f.mod + else: + mod = g.mod + + per = lambda rep: ANP(rep, mod, dom) + + return dom, per, F, G, mod + + def per(f, rep, mod=None, dom=None): + return ANP(rep, mod or f.mod, dom or f.dom) + + @classmethod + def zero(cls, mod, dom): + return ANP(0, mod, dom) + + @classmethod + def one(cls, mod, dom): + return ANP(1, mod, dom) + + def to_dict(f): + """Convert ``f`` to a dict representation with native coefficients. """ + return dmp_to_dict(f.rep, 0, f.dom) + + def to_sympy_dict(f): + """Convert ``f`` to a dict representation with SymPy coefficients. """ + rep = dmp_to_dict(f.rep, 0, f.dom) + + for k, v in rep.items(): + rep[k] = f.dom.to_sympy(v) + + return rep + + def to_list(f): + """Convert ``f`` to a list representation with native coefficients. """ + return f.rep + + def to_sympy_list(f): + """Convert ``f`` to a list representation with SymPy coefficients. """ + return [ f.dom.to_sympy(c) for c in f.rep ] + + def to_tuple(f): + """ + Convert ``f`` to a tuple representation with native coefficients. + + This is needed for hashing. + """ + return dmp_to_tuple(f.rep, 0) + + @classmethod + def from_list(cls, rep, mod, dom): + return ANP(dup_strip(list(map(dom.convert, rep))), mod, dom) + + def neg(f): + return f.per(dup_neg(f.rep, f.dom)) + + def add(f, g): + dom, per, F, G, mod = f.unify(g) + return per(dup_add(F, G, dom)) + + def sub(f, g): + dom, per, F, G, mod = f.unify(g) + return per(dup_sub(F, G, dom)) + + def mul(f, g): + dom, per, F, G, mod = f.unify(g) + return per(dup_rem(dup_mul(F, G, dom), mod, dom)) + + def pow(f, n): + """Raise ``f`` to a non-negative power ``n``. """ + if isinstance(n, int): + if n < 0: + F, n = dup_invert(f.rep, f.mod, f.dom), -n + else: + F = f.rep + + return f.per(dup_rem(dup_pow(F, n, f.dom), f.mod, f.dom)) + else: + raise TypeError("``int`` expected, got %s" % type(n)) + + def div(f, g): + dom, per, F, G, mod = f.unify(g) + return (per(dup_rem(dup_mul(F, dup_invert(G, mod, dom), dom), mod, dom)), f.zero(mod, dom)) + + def rem(f, g): + dom, _, _, G, mod = f.unify(g) + + s, h = dup_half_gcdex(G, mod, dom) + + if h == [dom.one]: + return f.zero(mod, dom) + else: + raise NotInvertible("zero divisor") + + def quo(f, g): + dom, per, F, G, mod = f.unify(g) + return per(dup_rem(dup_mul(F, dup_invert(G, mod, dom), dom), mod, dom)) + + exquo = quo + + def LC(f): + """Returns the leading coefficient of ``f``. """ + return dup_LC(f.rep, f.dom) + + def TC(f): + """Returns the trailing coefficient of ``f``. """ + return dup_TC(f.rep, f.dom) + + @property + def is_zero(f): + """Returns ``True`` if ``f`` is a zero algebraic number. """ + return not f + + @property + def is_one(f): + """Returns ``True`` if ``f`` is a unit algebraic number. """ + return f.rep == [f.dom.one] + + @property + def is_ground(f): + """Returns ``True`` if ``f`` is an element of the ground domain. """ + return not f.rep or len(f.rep) == 1 + + def __pos__(f): + return f + + def __neg__(f): + return f.neg() + + def __add__(f, g): + if isinstance(g, ANP): + return f.add(g) + else: + try: + return f.add(f.per(g)) + except (CoercionFailed, TypeError): + return NotImplemented + + def __radd__(f, g): + return f.__add__(g) + + def __sub__(f, g): + if isinstance(g, ANP): + return f.sub(g) + else: + try: + return f.sub(f.per(g)) + except (CoercionFailed, TypeError): + return NotImplemented + + def __rsub__(f, g): + return (-f).__add__(g) + + def __mul__(f, g): + if isinstance(g, ANP): + return f.mul(g) + else: + try: + return f.mul(f.per(g)) + except (CoercionFailed, TypeError): + return NotImplemented + + def __rmul__(f, g): + return f.__mul__(g) + + def __pow__(f, n): + return f.pow(n) + + def __divmod__(f, g): + return f.div(g) + + def __mod__(f, g): + return f.rem(g) + + def __truediv__(f, g): + if isinstance(g, ANP): + return f.quo(g) + else: + try: + return f.quo(f.per(g)) + except (CoercionFailed, TypeError): + return NotImplemented + + def __eq__(f, g): + try: + _, _, F, G, _ = f.unify(g) + + return F == G + except UnificationFailed: + return False + + def __ne__(f, g): + try: + _, _, F, G, _ = f.unify(g) + + return F != G + except UnificationFailed: + return True + + def __lt__(f, g): + _, _, F, G, _ = f.unify(g) + return F < G + + def __le__(f, g): + _, _, F, G, _ = f.unify(g) + return F <= G + + def __gt__(f, g): + _, _, F, G, _ = f.unify(g) + return F > G + + def __ge__(f, g): + _, _, F, G, _ = f.unify(g) + return F >= G + + def __bool__(f): + return bool(f.rep) diff --git a/shared/package-files/6f/6f284c123e57a00532fbddc08cbaf1fe9f7f89465d627e6e27f703902250b794/util.h b/shared/package-files/6f/6f284c123e57a00532fbddc08cbaf1fe9f7f89465d627e6e27f703902250b794/util.h new file mode 100644 index 0000000000000000000000000000000000000000..ee46e8527422abae4f97804058639593dd6b159c --- /dev/null +++ b/shared/package-files/6f/6f284c123e57a00532fbddc08cbaf1fe9f7f89465d627e6e27f703902250b794/util.h @@ -0,0 +1,184 @@ +// 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 "arrow/acero/options.h" +#include "arrow/acero/type_fwd.h" +#include "arrow/buffer.h" +#include "arrow/compute/expression.h" +#include "arrow/compute/util.h" +#include "arrow/memory_pool.h" +#include "arrow/result.h" +#include "arrow/status.h" +#include "arrow/util/bit_util.h" +#include "arrow/util/cpu_info.h" +#include "arrow/util/logging.h" +#include "arrow/util/mutex.h" +#include "arrow/util/thread_pool.h" +#include "arrow/util/type_fwd.h" + +namespace arrow { + +namespace acero { + +ARROW_ACERO_EXPORT +Status ValidateExecNodeInputs(ExecPlan* plan, const std::vector& inputs, + int expected_num_inputs, const char* kind_name); + +ARROW_ACERO_EXPORT +Result> TableFromExecBatches( + const std::shared_ptr& schema, const std::vector& exec_batches); + +class ARROW_ACERO_EXPORT AtomicCounter { + public: + AtomicCounter() = default; + + int count() const { return count_.load(); } + + std::optional total() const { + int total = total_.load(); + if (total == -1) return {}; + return total; + } + + // return true if the counter is complete + bool Increment() { + ARROW_DCHECK_NE(count_.load(), total_.load()); + int count = count_.fetch_add(1) + 1; + if (count != total_.load()) return false; + return DoneOnce(); + } + + // return true if the counter is complete + bool SetTotal(int total) { + total_.store(total); + if (count_.load() != total) return false; + return DoneOnce(); + } + + // return true if the counter has not already been completed + bool Cancel() { return DoneOnce(); } + + // return true if the counter has finished or been cancelled + bool Completed() { return complete_.load(); } + + private: + // ensure there is only one true return from Increment(), SetTotal(), or Cancel() + bool DoneOnce() { + bool expected = false; + return complete_.compare_exchange_strong(expected, true); + } + + std::atomic count_{0}, total_{-1}; + std::atomic complete_{false}; +}; + +class ARROW_ACERO_EXPORT ThreadIndexer { + public: + size_t operator()(); + + static size_t Capacity(); + + private: + static size_t Check(size_t thread_index); + + arrow::util::Mutex mutex_; + std::unordered_map id_to_index_; +}; + +/// \brief A consumer that collects results into an in-memory table +struct ARROW_ACERO_EXPORT TableSinkNodeConsumer : public SinkNodeConsumer { + public: + TableSinkNodeConsumer(std::shared_ptr* out, MemoryPool* pool) + : out_(out), pool_(pool) {} + Status Init(const std::shared_ptr& schema, + BackpressureControl* backpressure_control, ExecPlan* plan) override; + Status Consume(ExecBatch batch) override; + Future<> Finish() override; + + private: + std::shared_ptr
* out_; + MemoryPool* pool_; + std::shared_ptr schema_; + std::vector> batches_; + arrow::util::Mutex consume_mutex_; +}; + +class ARROW_ACERO_EXPORT NullSinkNodeConsumer : public SinkNodeConsumer { + public: + Status Init(const std::shared_ptr&, BackpressureControl*, + ExecPlan* plan) override { + return Status::OK(); + } + Status Consume(ExecBatch exec_batch) override { return Status::OK(); } + Future<> Finish() override { return Status::OK(); } + + public: + static std::shared_ptr Make() { + return std::make_shared(); + } +}; + +/// CRTP helper for tracing helper functions + +class ARROW_ACERO_EXPORT TracedNode { + public: + // All nodes should call TraceStartProducing or NoteStartProducing exactly once + // Most nodes will be fine with a call to NoteStartProducing since the StartProducing + // call is usually fairly cheap and simply schedules tasks to fetch the actual data. + + explicit TracedNode(ExecNode* node) : node_(node) {} + + // Create a span to record the StartProducing work + [[nodiscard]] ::arrow::internal::tracing::Scope TraceStartProducing( + std::string extra_details) const; + + // Record a call to StartProducing without creating with a span + void NoteStartProducing(std::string extra_details) const; + + // All nodes should call TraceInputReceived for each batch they receive. This call + // should track the time spent processing the batch. NoteInputReceived is available + // but usually won't be used unless a node is simply adding batches to a trivial queue. + + // Create a span to record the InputReceived work + [[nodiscard]] ::arrow::internal::tracing::Scope TraceInputReceived( + const ExecBatch& batch) const; + + // Record a call to InputReceived without creating with a span + void NoteInputReceived(const ExecBatch& batch) const; + + // Create a span to record any "finish" work. This should NOT be called as part of + // InputFinished and many nodes may not need to call this at all. This should be used + // when a node has some extra work that has to be done once it has received all of its + // data. For example, an aggregation node calculating aggregations. This will + // typically be called as a result of InputFinished OR InputReceived. + [[nodiscard]] ::arrow::internal::tracing::Scope TraceFinish() const; + + private: + ExecNode* node_; +}; + +} // namespace acero +} // namespace arrow diff --git a/shared/package-files/6f/6f299db507a2c628af1c4db4a1f76277edf550c6bf15dbfa045c0cd682c4a685/chi2.py b/shared/package-files/6f/6f299db507a2c628af1c4db4a1f76277edf550c6bf15dbfa045c0cd682c4a685/chi2.py new file mode 100644 index 0000000000000000000000000000000000000000..16d0d6d60fbeb93544d21127c57f4bebcfb2bd74 --- /dev/null +++ b/shared/package-files/6f/6f299db507a2c628af1c4db4a1f76277edf550c6bf15dbfa045c0cd682c4a685/chi2.py @@ -0,0 +1,33 @@ +from torch.distributions import constraints +from torch.distributions.gamma import Gamma + +__all__ = ["Chi2"] + + +class Chi2(Gamma): + r""" + Creates a Chi-squared distribution parameterized by shape parameter :attr:`df`. + This is exactly equivalent to ``Gamma(alpha=0.5*df, beta=0.5)`` + + Example:: + + >>> # xdoctest: +IGNORE_WANT("non-deterministic") + >>> m = Chi2(torch.tensor([1.0])) + >>> m.sample() # Chi2 distributed with shape df=1 + tensor([ 0.1046]) + + Args: + df (float or Tensor): shape parameter of the distribution + """ + arg_constraints = {"df": constraints.positive} + + def __init__(self, df, validate_args=None): + super().__init__(0.5 * df, 0.5, validate_args=validate_args) + + def expand(self, batch_shape, _instance=None): + new = self._get_checked_instance(Chi2, _instance) + return super().expand(batch_shape, new) + + @property + def df(self): + return self.concentration * 2 diff --git a/shared/package-files/6f/6f2addb384c9f6fba4d1de68864785726f35c9a7473df9ae75e14113524443c0/warnings.pyi b/shared/package-files/6f/6f2addb384c9f6fba4d1de68864785726f35c9a7473df9ae75e14113524443c0/warnings.pyi new file mode 100644 index 0000000000000000000000000000000000000000..0e64ec574775ca45abc561cb384ab7b43be19150 --- /dev/null +++ b/shared/package-files/6f/6f2addb384c9f6fba4d1de68864785726f35c9a7473df9ae75e14113524443c0/warnings.pyi @@ -0,0 +1,73 @@ +import sys +from types import ModuleType, TracebackType +from typing import Any, List, Optional, TextIO, Type, Union, overload +from typing_extensions import Literal + +from _warnings import warn as warn, warn_explicit as warn_explicit + +def showwarning( + message: Union[Warning, str], + category: Type[Warning], + filename: str, + lineno: int, + file: Optional[TextIO] = ..., + line: Optional[str] = ..., +) -> None: ... +def formatwarning( + message: Union[Warning, str], category: Type[Warning], filename: str, lineno: int, line: Optional[str] = ... +) -> str: ... +def filterwarnings( + action: str, message: str = ..., category: Type[Warning] = ..., module: str = ..., lineno: int = ..., append: bool = ... +) -> None: ... +def simplefilter(action: str, category: Type[Warning] = ..., lineno: int = ..., append: bool = ...) -> None: ... +def resetwarnings() -> None: ... + +class _OptionError(Exception): ... + +class WarningMessage: + message: Union[Warning, str] + category: Type[Warning] + filename: str + lineno: int + file: Optional[TextIO] + line: Optional[str] + if sys.version_info >= (3, 6): + source: Optional[Any] + def __init__( + self, + message: Union[Warning, str], + category: Type[Warning], + filename: str, + lineno: int, + file: Optional[TextIO] = ..., + line: Optional[str] = ..., + source: Optional[Any] = ..., + ) -> None: ... + else: + def __init__( + self, + message: Union[Warning, str], + category: Type[Warning], + filename: str, + lineno: int, + file: Optional[TextIO] = ..., + line: Optional[str] = ..., + ) -> None: ... + +class catch_warnings: + @overload + def __new__(cls, *, record: Literal[False] = ..., module: Optional[ModuleType] = ...) -> _catch_warnings_without_records: ... + @overload + def __new__(cls, *, record: Literal[True], module: Optional[ModuleType] = ...) -> _catch_warnings_with_records: ... + @overload + def __new__(cls, *, record: bool, module: Optional[ModuleType] = ...) -> catch_warnings: ... + def __enter__(self) -> Optional[List[WarningMessage]]: ... + def __exit__( + self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException], exc_tb: Optional[TracebackType] + ) -> None: ... + +class _catch_warnings_without_records(catch_warnings): + def __enter__(self) -> None: ... + +class _catch_warnings_with_records(catch_warnings): + def __enter__(self) -> List[WarningMessage]: ... diff --git a/shared/package-files/6f/6f2c3bf0df717aa475e57a31919598493bba995186c22afd40f8b94e8ef8e691/multi_margin_loss_backward.h b/shared/package-files/6f/6f2c3bf0df717aa475e57a31919598493bba995186c22afd40f8b94e8ef8e691/multi_margin_loss_backward.h new file mode 100644 index 0000000000000000000000000000000000000000..7c89e14d552b57293d5934db36f60d35eb1e1e43 --- /dev/null +++ b/shared/package-files/6f/6f2c3bf0df717aa475e57a31919598493bba995186c22afd40f8b94e8ef8e691/multi_margin_loss_backward.h @@ -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::multi_margin_loss_backward.grad_input(Tensor grad_output, Tensor self, Tensor target, Scalar p, Scalar margin, Tensor? weight=None, int reduction=Mean, *, Tensor(a!) grad_input) -> Tensor(a!) +inline at::Tensor & multi_margin_loss_backward_out(at::Tensor & grad_input, const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & target, const at::Scalar & p, const at::Scalar & margin, const c10::optional & weight={}, int64_t reduction=at::Reduction::Mean) { + return at::_ops::multi_margin_loss_backward_grad_input::call(grad_output, self, target, p, margin, weight, reduction, grad_input); +} +// aten::multi_margin_loss_backward.grad_input(Tensor grad_output, Tensor self, Tensor target, Scalar p, Scalar margin, Tensor? weight=None, int reduction=Mean, *, Tensor(a!) grad_input) -> Tensor(a!) +inline at::Tensor & multi_margin_loss_backward_outf(const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & target, const at::Scalar & p, const at::Scalar & margin, const c10::optional & weight, int64_t reduction, at::Tensor & grad_input) { + return at::_ops::multi_margin_loss_backward_grad_input::call(grad_output, self, target, p, margin, weight, reduction, grad_input); +} + +// aten::multi_margin_loss_backward(Tensor grad_output, Tensor self, Tensor target, Scalar p, Scalar margin, Tensor? weight=None, int reduction=Mean) -> Tensor +inline at::Tensor multi_margin_loss_backward(const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & target, const at::Scalar & p, const at::Scalar & margin, const c10::optional & weight={}, int64_t reduction=at::Reduction::Mean) { + return at::_ops::multi_margin_loss_backward::call(grad_output, self, target, p, margin, weight, reduction); +} + +} diff --git a/shared/package-files/6f/6f2c58269f609e355eca1465677513320a3f2e191787569fbcdf30241b4071cf/cmdline.py b/shared/package-files/6f/6f2c58269f609e355eca1465677513320a3f2e191787569fbcdf30241b4071cf/cmdline.py new file mode 100644 index 0000000000000000000000000000000000000000..eec1775ba5fcba678f014f8a977259675e9c1854 --- /dev/null +++ b/shared/package-files/6f/6f2c58269f609e355eca1465677513320a3f2e191787569fbcdf30241b4071cf/cmdline.py @@ -0,0 +1,668 @@ +""" + pygments.cmdline + ~~~~~~~~~~~~~~~~ + + Command line interface. + + :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS. + :license: BSD, see LICENSE for details. +""" + +import os +import sys +import shutil +import argparse +from textwrap import dedent + +from pip._vendor.pygments import __version__, highlight +from pip._vendor.pygments.util import ClassNotFound, OptionError, docstring_headline, \ + guess_decode, guess_decode_from_terminal, terminal_encoding, \ + UnclosingTextIOWrapper +from pip._vendor.pygments.lexers import get_all_lexers, get_lexer_by_name, guess_lexer, \ + load_lexer_from_file, get_lexer_for_filename, find_lexer_class_for_filename +from pip._vendor.pygments.lexers.special import TextLexer +from pip._vendor.pygments.formatters.latex import LatexEmbeddedLexer, LatexFormatter +from pip._vendor.pygments.formatters import get_all_formatters, get_formatter_by_name, \ + load_formatter_from_file, get_formatter_for_filename, find_formatter_class +from pip._vendor.pygments.formatters.terminal import TerminalFormatter +from pip._vendor.pygments.formatters.terminal256 import Terminal256Formatter, TerminalTrueColorFormatter +from pip._vendor.pygments.filters import get_all_filters, find_filter_class +from pip._vendor.pygments.styles import get_all_styles, get_style_by_name + + +def _parse_options(o_strs): + opts = {} + if not o_strs: + return opts + for o_str in o_strs: + if not o_str.strip(): + continue + o_args = o_str.split(',') + for o_arg in o_args: + o_arg = o_arg.strip() + try: + o_key, o_val = o_arg.split('=', 1) + o_key = o_key.strip() + o_val = o_val.strip() + except ValueError: + opts[o_arg] = True + else: + opts[o_key] = o_val + return opts + + +def _parse_filters(f_strs): + filters = [] + if not f_strs: + return filters + for f_str in f_strs: + if ':' in f_str: + fname, fopts = f_str.split(':', 1) + filters.append((fname, _parse_options([fopts]))) + else: + filters.append((f_str, {})) + return filters + + +def _print_help(what, name): + try: + if what == 'lexer': + cls = get_lexer_by_name(name) + print("Help on the %s lexer:" % cls.name) + print(dedent(cls.__doc__)) + elif what == 'formatter': + cls = find_formatter_class(name) + print("Help on the %s formatter:" % cls.name) + print(dedent(cls.__doc__)) + elif what == 'filter': + cls = find_filter_class(name) + print("Help on the %s filter:" % name) + print(dedent(cls.__doc__)) + return 0 + except (AttributeError, ValueError): + print("%s not found!" % what, file=sys.stderr) + return 1 + + +def _print_list(what): + if what == 'lexer': + print() + print("Lexers:") + print("~~~~~~~") + + info = [] + for fullname, names, exts, _ in get_all_lexers(): + tup = (', '.join(names)+':', fullname, + exts and '(filenames ' + ', '.join(exts) + ')' or '') + info.append(tup) + info.sort() + for i in info: + print(('* %s\n %s %s') % i) + + elif what == 'formatter': + print() + print("Formatters:") + print("~~~~~~~~~~~") + + info = [] + for cls in get_all_formatters(): + doc = docstring_headline(cls) + tup = (', '.join(cls.aliases) + ':', doc, cls.filenames and + '(filenames ' + ', '.join(cls.filenames) + ')' or '') + info.append(tup) + info.sort() + for i in info: + print(('* %s\n %s %s') % i) + + elif what == 'filter': + print() + print("Filters:") + print("~~~~~~~~") + + for name in get_all_filters(): + cls = find_filter_class(name) + print("* " + name + ':') + print(" %s" % docstring_headline(cls)) + + elif what == 'style': + print() + print("Styles:") + print("~~~~~~~") + + for name in get_all_styles(): + cls = get_style_by_name(name) + print("* " + name + ':') + print(" %s" % docstring_headline(cls)) + + +def _print_list_as_json(requested_items): + import json + result = {} + if 'lexer' in requested_items: + info = {} + for fullname, names, filenames, mimetypes in get_all_lexers(): + info[fullname] = { + 'aliases': names, + 'filenames': filenames, + 'mimetypes': mimetypes + } + result['lexers'] = info + + if 'formatter' in requested_items: + info = {} + for cls in get_all_formatters(): + doc = docstring_headline(cls) + info[cls.name] = { + 'aliases': cls.aliases, + 'filenames': cls.filenames, + 'doc': doc + } + result['formatters'] = info + + if 'filter' in requested_items: + info = {} + for name in get_all_filters(): + cls = find_filter_class(name) + info[name] = { + 'doc': docstring_headline(cls) + } + result['filters'] = info + + if 'style' in requested_items: + info = {} + for name in get_all_styles(): + cls = get_style_by_name(name) + info[name] = { + 'doc': docstring_headline(cls) + } + result['styles'] = info + + json.dump(result, sys.stdout) + +def main_inner(parser, argns): + if argns.help: + parser.print_help() + return 0 + + if argns.V: + print('Pygments version %s, (c) 2006-2023 by Georg Brandl, Matthäus ' + 'Chajdas and contributors.' % __version__) + return 0 + + def is_only_option(opt): + return not any(v for (k, v) in vars(argns).items() if k != opt) + + # handle ``pygmentize -L`` + if argns.L is not None: + arg_set = set() + for k, v in vars(argns).items(): + if v: + arg_set.add(k) + + arg_set.discard('L') + arg_set.discard('json') + + if arg_set: + parser.print_help(sys.stderr) + return 2 + + # print version + if not argns.json: + main(['', '-V']) + allowed_types = {'lexer', 'formatter', 'filter', 'style'} + largs = [arg.rstrip('s') for arg in argns.L] + if any(arg not in allowed_types for arg in largs): + parser.print_help(sys.stderr) + return 0 + if not largs: + largs = allowed_types + if not argns.json: + for arg in largs: + _print_list(arg) + else: + _print_list_as_json(largs) + return 0 + + # handle ``pygmentize -H`` + if argns.H: + if not is_only_option('H'): + parser.print_help(sys.stderr) + return 2 + what, name = argns.H + if what not in ('lexer', 'formatter', 'filter'): + parser.print_help(sys.stderr) + return 2 + return _print_help(what, name) + + # parse -O options + parsed_opts = _parse_options(argns.O or []) + + # parse -P options + for p_opt in argns.P or []: + try: + name, value = p_opt.split('=', 1) + except ValueError: + parsed_opts[p_opt] = True + else: + parsed_opts[name] = value + + # encodings + inencoding = parsed_opts.get('inencoding', parsed_opts.get('encoding')) + outencoding = parsed_opts.get('outencoding', parsed_opts.get('encoding')) + + # handle ``pygmentize -N`` + if argns.N: + lexer = find_lexer_class_for_filename(argns.N) + if lexer is None: + lexer = TextLexer + + print(lexer.aliases[0]) + return 0 + + # handle ``pygmentize -C`` + if argns.C: + inp = sys.stdin.buffer.read() + try: + lexer = guess_lexer(inp, inencoding=inencoding) + except ClassNotFound: + lexer = TextLexer + + print(lexer.aliases[0]) + return 0 + + # handle ``pygmentize -S`` + S_opt = argns.S + a_opt = argns.a + if S_opt is not None: + f_opt = argns.f + if not f_opt: + parser.print_help(sys.stderr) + return 2 + if argns.l or argns.INPUTFILE: + parser.print_help(sys.stderr) + return 2 + + try: + parsed_opts['style'] = S_opt + fmter = get_formatter_by_name(f_opt, **parsed_opts) + except ClassNotFound as err: + print(err, file=sys.stderr) + return 1 + + print(fmter.get_style_defs(a_opt or '')) + return 0 + + # if no -S is given, -a is not allowed + if argns.a is not None: + parser.print_help(sys.stderr) + return 2 + + # parse -F options + F_opts = _parse_filters(argns.F or []) + + # -x: allow custom (eXternal) lexers and formatters + allow_custom_lexer_formatter = bool(argns.x) + + # select lexer + lexer = None + + # given by name? + lexername = argns.l + if lexername: + # custom lexer, located relative to user's cwd + if allow_custom_lexer_formatter and '.py' in lexername: + try: + filename = None + name = None + if ':' in lexername: + filename, name = lexername.rsplit(':', 1) + + if '.py' in name: + # This can happen on Windows: If the lexername is + # C:\lexer.py -- return to normal load path in that case + name = None + + if filename and name: + lexer = load_lexer_from_file(filename, name, + **parsed_opts) + else: + lexer = load_lexer_from_file(lexername, **parsed_opts) + except ClassNotFound as err: + print('Error:', err, file=sys.stderr) + return 1 + else: + try: + lexer = get_lexer_by_name(lexername, **parsed_opts) + except (OptionError, ClassNotFound) as err: + print('Error:', err, file=sys.stderr) + return 1 + + # read input code + code = None + + if argns.INPUTFILE: + if argns.s: + print('Error: -s option not usable when input file specified', + file=sys.stderr) + return 2 + + infn = argns.INPUTFILE + try: + with open(infn, 'rb') as infp: + code = infp.read() + except Exception as err: + print('Error: cannot read infile:', err, file=sys.stderr) + return 1 + if not inencoding: + code, inencoding = guess_decode(code) + + # do we have to guess the lexer? + if not lexer: + try: + lexer = get_lexer_for_filename(infn, code, **parsed_opts) + except ClassNotFound as err: + if argns.g: + try: + lexer = guess_lexer(code, **parsed_opts) + except ClassNotFound: + lexer = TextLexer(**parsed_opts) + else: + print('Error:', err, file=sys.stderr) + return 1 + except OptionError as err: + print('Error:', err, file=sys.stderr) + return 1 + + elif not argns.s: # treat stdin as full file (-s support is later) + # read code from terminal, always in binary mode since we want to + # decode ourselves and be tolerant with it + code = sys.stdin.buffer.read() # use .buffer to get a binary stream + if not inencoding: + code, inencoding = guess_decode_from_terminal(code, sys.stdin) + # else the lexer will do the decoding + if not lexer: + try: + lexer = guess_lexer(code, **parsed_opts) + except ClassNotFound: + lexer = TextLexer(**parsed_opts) + + else: # -s option needs a lexer with -l + if not lexer: + print('Error: when using -s a lexer has to be selected with -l', + file=sys.stderr) + return 2 + + # process filters + for fname, fopts in F_opts: + try: + lexer.add_filter(fname, **fopts) + except ClassNotFound as err: + print('Error:', err, file=sys.stderr) + return 1 + + # select formatter + outfn = argns.o + fmter = argns.f + if fmter: + # custom formatter, located relative to user's cwd + if allow_custom_lexer_formatter and '.py' in fmter: + try: + filename = None + name = None + if ':' in fmter: + # Same logic as above for custom lexer + filename, name = fmter.rsplit(':', 1) + + if '.py' in name: + name = None + + if filename and name: + fmter = load_formatter_from_file(filename, name, + **parsed_opts) + else: + fmter = load_formatter_from_file(fmter, **parsed_opts) + except ClassNotFound as err: + print('Error:', err, file=sys.stderr) + return 1 + else: + try: + fmter = get_formatter_by_name(fmter, **parsed_opts) + except (OptionError, ClassNotFound) as err: + print('Error:', err, file=sys.stderr) + return 1 + + if outfn: + if not fmter: + try: + fmter = get_formatter_for_filename(outfn, **parsed_opts) + except (OptionError, ClassNotFound) as err: + print('Error:', err, file=sys.stderr) + return 1 + try: + outfile = open(outfn, 'wb') + except Exception as err: + print('Error: cannot open outfile:', err, file=sys.stderr) + return 1 + else: + if not fmter: + if os.environ.get('COLORTERM','') in ('truecolor', '24bit'): + fmter = TerminalTrueColorFormatter(**parsed_opts) + elif '256' in os.environ.get('TERM', ''): + fmter = Terminal256Formatter(**parsed_opts) + else: + fmter = TerminalFormatter(**parsed_opts) + outfile = sys.stdout.buffer + + # determine output encoding if not explicitly selected + if not outencoding: + if outfn: + # output file? use lexer encoding for now (can still be None) + fmter.encoding = inencoding + else: + # else use terminal encoding + fmter.encoding = terminal_encoding(sys.stdout) + + # provide coloring under Windows, if possible + if not outfn and sys.platform in ('win32', 'cygwin') and \ + fmter.name in ('Terminal', 'Terminal256'): # pragma: no cover + # unfortunately colorama doesn't support binary streams on Py3 + outfile = UnclosingTextIOWrapper(outfile, encoding=fmter.encoding) + fmter.encoding = None + try: + import pip._vendor.colorama.initialise as colorama_initialise + except ImportError: + pass + else: + outfile = colorama_initialise.wrap_stream( + outfile, convert=None, strip=None, autoreset=False, wrap=True) + + # When using the LaTeX formatter and the option `escapeinside` is + # specified, we need a special lexer which collects escaped text + # before running the chosen language lexer. + escapeinside = parsed_opts.get('escapeinside', '') + if len(escapeinside) == 2 and isinstance(fmter, LatexFormatter): + left = escapeinside[0] + right = escapeinside[1] + lexer = LatexEmbeddedLexer(left, right, lexer) + + # ... and do it! + if not argns.s: + # process whole input as per normal... + try: + highlight(code, lexer, fmter, outfile) + finally: + if outfn: + outfile.close() + return 0 + else: + # line by line processing of stdin (eg: for 'tail -f')... + try: + while 1: + line = sys.stdin.buffer.readline() + if not line: + break + if not inencoding: + line = guess_decode_from_terminal(line, sys.stdin)[0] + highlight(line, lexer, fmter, outfile) + if hasattr(outfile, 'flush'): + outfile.flush() + return 0 + except KeyboardInterrupt: # pragma: no cover + return 0 + finally: + if outfn: + outfile.close() + + +class HelpFormatter(argparse.HelpFormatter): + def __init__(self, prog, indent_increment=2, max_help_position=16, width=None): + if width is None: + try: + width = shutil.get_terminal_size().columns - 2 + except Exception: + pass + argparse.HelpFormatter.__init__(self, prog, indent_increment, + max_help_position, width) + + +def main(args=sys.argv): + """ + Main command line entry point. + """ + desc = "Highlight an input file and write the result to an output file." + parser = argparse.ArgumentParser(description=desc, add_help=False, + formatter_class=HelpFormatter) + + operation = parser.add_argument_group('Main operation') + lexersel = operation.add_mutually_exclusive_group() + lexersel.add_argument( + '-l', metavar='LEXER', + help='Specify the lexer to use. (Query names with -L.) If not ' + 'given and -g is not present, the lexer is guessed from the filename.') + lexersel.add_argument( + '-g', action='store_true', + help='Guess the lexer from the file contents, or pass through ' + 'as plain text if nothing can be guessed.') + operation.add_argument( + '-F', metavar='FILTER[:options]', action='append', + help='Add a filter to the token stream. (Query names with -L.) ' + 'Filter options are given after a colon if necessary.') + operation.add_argument( + '-f', metavar='FORMATTER', + help='Specify the formatter to use. (Query names with -L.) ' + 'If not given, the formatter is guessed from the output filename, ' + 'and defaults to the terminal formatter if the output is to the ' + 'terminal or an unknown file extension.') + operation.add_argument( + '-O', metavar='OPTION=value[,OPTION=value,...]', action='append', + help='Give options to the lexer and formatter as a comma-separated ' + 'list of key-value pairs. ' + 'Example: `-O bg=light,python=cool`.') + operation.add_argument( + '-P', metavar='OPTION=value', action='append', + help='Give a single option to the lexer and formatter - with this ' + 'you can pass options whose value contains commas and equal signs. ' + 'Example: `-P "heading=Pygments, the Python highlighter"`.') + operation.add_argument( + '-o', metavar='OUTPUTFILE', + help='Where to write the output. Defaults to standard output.') + + operation.add_argument( + 'INPUTFILE', nargs='?', + help='Where to read the input. Defaults to standard input.') + + flags = parser.add_argument_group('Operation flags') + flags.add_argument( + '-v', action='store_true', + help='Print a detailed traceback on unhandled exceptions, which ' + 'is useful for debugging and bug reports.') + flags.add_argument( + '-s', action='store_true', + help='Process lines one at a time until EOF, rather than waiting to ' + 'process the entire file. This only works for stdin, only for lexers ' + 'with no line-spanning constructs, and is intended for streaming ' + 'input such as you get from `tail -f`. ' + 'Example usage: `tail -f sql.log | pygmentize -s -l sql`.') + flags.add_argument( + '-x', action='store_true', + help='Allow custom lexers and formatters to be loaded from a .py file ' + 'relative to the current working directory. For example, ' + '`-l ./customlexer.py -x`. By default, this option expects a file ' + 'with a class named CustomLexer or CustomFormatter; you can also ' + 'specify your own class name with a colon (`-l ./lexer.py:MyLexer`). ' + 'Users should be very careful not to use this option with untrusted ' + 'files, because it will import and run them.') + flags.add_argument('--json', help='Output as JSON. This can ' + 'be only used in conjunction with -L.', + default=False, + action='store_true') + + special_modes_group = parser.add_argument_group( + 'Special modes - do not do any highlighting') + special_modes = special_modes_group.add_mutually_exclusive_group() + special_modes.add_argument( + '-S', metavar='STYLE -f formatter', + help='Print style definitions for STYLE for a formatter ' + 'given with -f. The argument given by -a is formatter ' + 'dependent.') + special_modes.add_argument( + '-L', nargs='*', metavar='WHAT', + help='List lexers, formatters, styles or filters -- ' + 'give additional arguments for the thing(s) you want to list ' + '(e.g. "styles"), or omit them to list everything.') + special_modes.add_argument( + '-N', metavar='FILENAME', + help='Guess and print out a lexer name based solely on the given ' + 'filename. Does not take input or highlight anything. If no specific ' + 'lexer can be determined, "text" is printed.') + special_modes.add_argument( + '-C', action='store_true', + help='Like -N, but print out a lexer name based solely on ' + 'a given content from standard input.') + special_modes.add_argument( + '-H', action='store', nargs=2, metavar=('NAME', 'TYPE'), + help='Print detailed help for the object of type , ' + 'where is one of "lexer", "formatter" or "filter".') + special_modes.add_argument( + '-V', action='store_true', + help='Print the package version.') + special_modes.add_argument( + '-h', '--help', action='store_true', + help='Print this help.') + special_modes_group.add_argument( + '-a', metavar='ARG', + help='Formatter-specific additional argument for the -S (print ' + 'style sheet) mode.') + + argns = parser.parse_args(args[1:]) + + try: + return main_inner(parser, argns) + except BrokenPipeError: + # someone closed our stdout, e.g. by quitting a pager. + return 0 + except Exception: + if argns.v: + print(file=sys.stderr) + print('*' * 65, file=sys.stderr) + print('An unhandled exception occurred while highlighting.', + file=sys.stderr) + print('Please report the whole traceback to the issue tracker at', + file=sys.stderr) + print('.', + file=sys.stderr) + print('*' * 65, file=sys.stderr) + print(file=sys.stderr) + raise + import traceback + info = traceback.format_exception(*sys.exc_info()) + msg = info[-1].strip() + if len(info) >= 3: + # extract relevant file and position info + msg += '\n (f%s)' % info[-2].split('\n')[0].strip()[1:] + print(file=sys.stderr) + print('*** Error while highlighting:', file=sys.stderr) + print(msg, file=sys.stderr) + print('*** If this is a bug you want to report, please rerun with -v.', + file=sys.stderr) + return 1 diff --git a/shared/package-files/6f/6f2e47416303715163efa8b5e5be78b941ba7260a93986b2c8ff86c610f4fcd6/mkldnn_reorder_conv2d_weight_compositeexplicitautograd_dispatch.h b/shared/package-files/6f/6f2e47416303715163efa8b5e5be78b941ba7260a93986b2c8ff86c610f4fcd6/mkldnn_reorder_conv2d_weight_compositeexplicitautograd_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..a02ac8fd7468ebc9959ff31eaab1bc15ddd0aa76 --- /dev/null +++ b/shared/package-files/6f/6f2e47416303715163efa8b5e5be78b941ba7260a93986b2c8ff86c610f4fcd6/mkldnn_reorder_conv2d_weight_compositeexplicitautograd_dispatch.h @@ -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 & mkldnn_reorder_conv2d_weight_out(at::Tensor & out, const at::Tensor & self, at::IntArrayRef padding=0, at::IntArrayRef stride=1, at::IntArrayRef dilation=1, int64_t groups=1, at::OptionalIntArrayRef input_size=c10::nullopt); +TORCH_API at::Tensor & mkldnn_reorder_conv2d_weight_outf(const at::Tensor & self, at::IntArrayRef padding, at::IntArrayRef stride, at::IntArrayRef dilation, int64_t groups, at::OptionalIntArrayRef input_size, at::Tensor & out); +TORCH_API at::Tensor & mkldnn_reorder_conv2d_weight_symint_out(at::Tensor & out, const at::Tensor & self, c10::SymIntArrayRef padding=c10::SymInt(0), c10::SymIntArrayRef stride=c10::SymInt(1), c10::SymIntArrayRef dilation=c10::SymInt(1), c10::SymInt groups=1, at::OptionalSymIntArrayRef input_size=c10::nullopt); +TORCH_API at::Tensor & mkldnn_reorder_conv2d_weight_symint_outf(const at::Tensor & self, c10::SymIntArrayRef padding, c10::SymIntArrayRef stride, c10::SymIntArrayRef dilation, c10::SymInt groups, at::OptionalSymIntArrayRef input_size, at::Tensor & out); + +} // namespace compositeexplicitautograd +} // namespace at diff --git a/shared/package-files/6f/6f2e9ebeb627aa48ac88cf8c41cbce2ace5b80333394e4a066a44736a7f4e331/_compat.py b/shared/package-files/6f/6f2e9ebeb627aa48ac88cf8c41cbce2ace5b80333394e4a066a44736a7f4e331/_compat.py new file mode 100644 index 0000000000000000000000000000000000000000..95e509c0143e14e6371ec3cd1433ffec50c297fc --- /dev/null +++ b/shared/package-files/6f/6f2e9ebeb627aa48ac88cf8c41cbce2ace5b80333394e4a066a44736a7f4e331/_compat.py @@ -0,0 +1,8 @@ +__all__ = ("tomllib",) + +import sys + +if sys.version_info >= (3, 11): + import tomllib +else: + from pip._vendor import tomli as tomllib diff --git a/shared/package-files/6f/6f33279474c27e39390d0448c70cadba7621e5a43153789212569a0f2367018f/pythoncapi_compat.h b/shared/package-files/6f/6f33279474c27e39390d0448c70cadba7621e5a43153789212569a0f2367018f/pythoncapi_compat.h new file mode 100644 index 0000000000000000000000000000000000000000..4baa7b34a93500e0d0d120a60332fba1ed5091fe --- /dev/null +++ b/shared/package-files/6f/6f33279474c27e39390d0448c70cadba7621e5a43153789212569a0f2367018f/pythoncapi_compat.h @@ -0,0 +1,1519 @@ +// Header file providing new C API functions to old Python versions. +// +// File distributed under the Zero Clause BSD (0BSD) license. +// Copyright Contributors to the pythoncapi_compat project. +// +// Homepage: +// https://github.com/python/pythoncapi_compat +// +// Latest version: +// https://raw.githubusercontent.com/python/pythoncapi_compat/master/pythoncapi_compat.h +// +// Vendored from git revision: +// 39e2663e6acc0b68d5dd75bdaad0af33152552ae +// https://raw.githubusercontent.com/python/pythoncapi-compat/39e2663e6acc0b68d5dd75bdaad0af33152552ae/pythoncapi_compat.h +// +// SPDX-License-Identifier: 0BSD + +/* clang-format off */ + +#ifndef PYTHONCAPI_COMPAT +#define PYTHONCAPI_COMPAT + +#ifdef __cplusplus +extern "C" { +#endif + +#include + +// Python 3.11.0b4 added PyFrame_Back() to Python.h +#if PY_VERSION_HEX < 0x030b00B4 && !defined(PYPY_VERSION) +# include "frameobject.h" // PyFrameObject, PyFrame_GetBack() +#endif + + +#ifndef _Py_CAST +# define _Py_CAST(type, expr) ((type)(expr)) +#endif + +// Static inline functions should use _Py_NULL rather than using directly NULL +// to prevent C++ compiler warnings. On C23 and newer and on C++11 and newer, +// _Py_NULL is defined as nullptr. +#if (defined (__STDC_VERSION__) && __STDC_VERSION__ > 201710L) \ + || (defined(__cplusplus) && __cplusplus >= 201103) +# define _Py_NULL nullptr +#else +# define _Py_NULL NULL +#endif + +// Cast argument to PyObject* type. +#ifndef _PyObject_CAST +# define _PyObject_CAST(op) _Py_CAST(PyObject*, op) +#endif + + +// bpo-42262 added Py_NewRef() to Python 3.10.0a3 +#if PY_VERSION_HEX < 0x030A00A3 && !defined(Py_NewRef) +static inline PyObject* _Py_NewRef(PyObject *obj) +{ + Py_INCREF(obj); + return obj; +} +#define Py_NewRef(obj) _Py_NewRef(_PyObject_CAST(obj)) +#endif + + +// bpo-42262 added Py_XNewRef() to Python 3.10.0a3 +#if PY_VERSION_HEX < 0x030A00A3 && !defined(Py_XNewRef) +static inline PyObject* _Py_XNewRef(PyObject *obj) +{ + Py_XINCREF(obj); + return obj; +} +#define Py_XNewRef(obj) _Py_XNewRef(_PyObject_CAST(obj)) +#endif + + +// bpo-39573 added Py_SET_REFCNT() to Python 3.9.0a4 +#if PY_VERSION_HEX < 0x030900A4 && !defined(Py_SET_REFCNT) +static inline void _Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) +{ + ob->ob_refcnt = refcnt; +} +#define Py_SET_REFCNT(ob, refcnt) _Py_SET_REFCNT(_PyObject_CAST(ob), refcnt) +#endif + + +// Py_SETREF() and Py_XSETREF() were added to Python 3.5.2. +// It is excluded from the limited C API. +#if (PY_VERSION_HEX < 0x03050200 && !defined(Py_SETREF)) && !defined(Py_LIMITED_API) +#define Py_SETREF(dst, src) \ + do { \ + PyObject **_tmp_dst_ptr = _Py_CAST(PyObject**, &(dst)); \ + PyObject *_tmp_dst = (*_tmp_dst_ptr); \ + *_tmp_dst_ptr = _PyObject_CAST(src); \ + Py_DECREF(_tmp_dst); \ + } while (0) + +#define Py_XSETREF(dst, src) \ + do { \ + PyObject **_tmp_dst_ptr = _Py_CAST(PyObject**, &(dst)); \ + PyObject *_tmp_dst = (*_tmp_dst_ptr); \ + *_tmp_dst_ptr = _PyObject_CAST(src); \ + Py_XDECREF(_tmp_dst); \ + } while (0) +#endif + + +// bpo-43753 added Py_Is(), Py_IsNone(), Py_IsTrue() and Py_IsFalse() +// to Python 3.10.0b1. +#if PY_VERSION_HEX < 0x030A00B1 && !defined(Py_Is) +# define Py_Is(x, y) ((x) == (y)) +#endif +#if PY_VERSION_HEX < 0x030A00B1 && !defined(Py_IsNone) +# define Py_IsNone(x) Py_Is(x, Py_None) +#endif +#if (PY_VERSION_HEX < 0x030A00B1 || defined(PYPY_VERSION)) && !defined(Py_IsTrue) +# define Py_IsTrue(x) Py_Is(x, Py_True) +#endif +#if (PY_VERSION_HEX < 0x030A00B1 || defined(PYPY_VERSION)) && !defined(Py_IsFalse) +# define Py_IsFalse(x) Py_Is(x, Py_False) +#endif + + +// bpo-39573 added Py_SET_TYPE() to Python 3.9.0a4 +#if PY_VERSION_HEX < 0x030900A4 && !defined(Py_SET_TYPE) +static inline void _Py_SET_TYPE(PyObject *ob, PyTypeObject *type) +{ + ob->ob_type = type; +} +#define Py_SET_TYPE(ob, type) _Py_SET_TYPE(_PyObject_CAST(ob), type) +#endif + + +// bpo-39573 added Py_SET_SIZE() to Python 3.9.0a4 +#if PY_VERSION_HEX < 0x030900A4 && !defined(Py_SET_SIZE) +static inline void _Py_SET_SIZE(PyVarObject *ob, Py_ssize_t size) +{ + ob->ob_size = size; +} +#define Py_SET_SIZE(ob, size) _Py_SET_SIZE((PyVarObject*)(ob), size) +#endif + + +// bpo-40421 added PyFrame_GetCode() to Python 3.9.0b1 +#if PY_VERSION_HEX < 0x030900B1 || defined(PYPY_VERSION) +static inline PyCodeObject* PyFrame_GetCode(PyFrameObject *frame) +{ + assert(frame != _Py_NULL); + assert(frame->f_code != _Py_NULL); + return _Py_CAST(PyCodeObject*, Py_NewRef(frame->f_code)); +} +#endif + +static inline PyCodeObject* _PyFrame_GetCodeBorrow(PyFrameObject *frame) +{ + PyCodeObject *code = PyFrame_GetCode(frame); + Py_DECREF(code); + return code; +} + + +// bpo-40421 added PyFrame_GetBack() to Python 3.9.0b1 +#if PY_VERSION_HEX < 0x030900B1 && !defined(PYPY_VERSION) +static inline PyFrameObject* PyFrame_GetBack(PyFrameObject *frame) +{ + assert(frame != _Py_NULL); + return _Py_CAST(PyFrameObject*, Py_XNewRef(frame->f_back)); +} +#endif + +#if !defined(PYPY_VERSION) +static inline PyFrameObject* _PyFrame_GetBackBorrow(PyFrameObject *frame) +{ + PyFrameObject *back = PyFrame_GetBack(frame); + Py_XDECREF(back); + return back; +} +#endif + + +// bpo-40421 added PyFrame_GetLocals() to Python 3.11.0a7 +#if PY_VERSION_HEX < 0x030B00A7 && !defined(PYPY_VERSION) +static inline PyObject* PyFrame_GetLocals(PyFrameObject *frame) +{ +#if PY_VERSION_HEX >= 0x030400B1 + if (PyFrame_FastToLocalsWithError(frame) < 0) { + return NULL; + } +#else + PyFrame_FastToLocals(frame); +#endif + return Py_NewRef(frame->f_locals); +} +#endif + + +// bpo-40421 added PyFrame_GetGlobals() to Python 3.11.0a7 +#if PY_VERSION_HEX < 0x030B00A7 && !defined(PYPY_VERSION) +static inline PyObject* PyFrame_GetGlobals(PyFrameObject *frame) +{ + return Py_NewRef(frame->f_globals); +} +#endif + + +// bpo-40421 added PyFrame_GetBuiltins() to Python 3.11.0a7 +#if PY_VERSION_HEX < 0x030B00A7 && !defined(PYPY_VERSION) +static inline PyObject* PyFrame_GetBuiltins(PyFrameObject *frame) +{ + return Py_NewRef(frame->f_builtins); +} +#endif + + +// bpo-40421 added PyFrame_GetLasti() to Python 3.11.0b1 +#if PY_VERSION_HEX < 0x030B00B1 && !defined(PYPY_VERSION) +static inline int PyFrame_GetLasti(PyFrameObject *frame) +{ +#if PY_VERSION_HEX >= 0x030A00A7 + // bpo-27129: Since Python 3.10.0a7, f_lasti is an instruction offset, + // not a bytes offset anymore. Python uses 16-bit "wordcode" (2 bytes) + // instructions. + if (frame->f_lasti < 0) { + return -1; + } + return frame->f_lasti * 2; +#else + return frame->f_lasti; +#endif +} +#endif + + +// gh-91248 added PyFrame_GetVar() to Python 3.12.0a2 +#if PY_VERSION_HEX < 0x030C00A2 && !defined(PYPY_VERSION) +static inline PyObject* PyFrame_GetVar(PyFrameObject *frame, PyObject *name) +{ + PyObject *locals, *value; + + locals = PyFrame_GetLocals(frame); + if (locals == NULL) { + return NULL; + } +#if PY_VERSION_HEX >= 0x03000000 + value = PyDict_GetItemWithError(locals, name); +#else + value = _PyDict_GetItemWithError(locals, name); +#endif + Py_DECREF(locals); + + if (value == NULL) { + if (PyErr_Occurred()) { + return NULL; + } +#if PY_VERSION_HEX >= 0x03000000 + PyErr_Format(PyExc_NameError, "variable %R does not exist", name); +#else + PyErr_SetString(PyExc_NameError, "variable does not exist"); +#endif + return NULL; + } + return Py_NewRef(value); +} +#endif + + +// gh-91248 added PyFrame_GetVarString() to Python 3.12.0a2 +#if PY_VERSION_HEX < 0x030C00A2 && !defined(PYPY_VERSION) +static inline PyObject* +PyFrame_GetVarString(PyFrameObject *frame, const char *name) +{ + PyObject *name_obj, *value; +#if PY_VERSION_HEX >= 0x03000000 + name_obj = PyUnicode_FromString(name); +#else + name_obj = PyString_FromString(name); +#endif + if (name_obj == NULL) { + return NULL; + } + value = PyFrame_GetVar(frame, name_obj); + Py_DECREF(name_obj); + return value; +} +#endif + + +// bpo-39947 added PyThreadState_GetInterpreter() to Python 3.9.0a5 +#if PY_VERSION_HEX < 0x030900A5 || defined(PYPY_VERSION) +static inline PyInterpreterState * +PyThreadState_GetInterpreter(PyThreadState *tstate) +{ + assert(tstate != _Py_NULL); + return tstate->interp; +} +#endif + + +// bpo-40429 added PyThreadState_GetFrame() to Python 3.9.0b1 +#if PY_VERSION_HEX < 0x030900B1 && !defined(PYPY_VERSION) +static inline PyFrameObject* PyThreadState_GetFrame(PyThreadState *tstate) +{ + assert(tstate != _Py_NULL); + return _Py_CAST(PyFrameObject *, Py_XNewRef(tstate->frame)); +} +#endif + +#if !defined(PYPY_VERSION) +static inline PyFrameObject* +_PyThreadState_GetFrameBorrow(PyThreadState *tstate) +{ + PyFrameObject *frame = PyThreadState_GetFrame(tstate); + Py_XDECREF(frame); + return frame; +} +#endif + + +// bpo-39947 added PyInterpreterState_Get() to Python 3.9.0a5 +#if PY_VERSION_HEX < 0x030900A5 || defined(PYPY_VERSION) +static inline PyInterpreterState* PyInterpreterState_Get(void) +{ + PyThreadState *tstate; + PyInterpreterState *interp; + + tstate = PyThreadState_GET(); + if (tstate == _Py_NULL) { + Py_FatalError("GIL released (tstate is NULL)"); + } + interp = tstate->interp; + if (interp == _Py_NULL) { + Py_FatalError("no current interpreter"); + } + return interp; +} +#endif + + +// bpo-39947 added PyInterpreterState_Get() to Python 3.9.0a6 +#if 0x030700A1 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x030900A6 && !defined(PYPY_VERSION) +static inline uint64_t PyThreadState_GetID(PyThreadState *tstate) +{ + assert(tstate != _Py_NULL); + return tstate->id; +} +#endif + +// bpo-43760 added PyThreadState_EnterTracing() to Python 3.11.0a2 +#if PY_VERSION_HEX < 0x030B00A2 && !defined(PYPY_VERSION) +static inline void PyThreadState_EnterTracing(PyThreadState *tstate) +{ + tstate->tracing++; +#if PY_VERSION_HEX >= 0x030A00A1 + tstate->cframe->use_tracing = 0; +#else + tstate->use_tracing = 0; +#endif +} +#endif + +// bpo-43760 added PyThreadState_LeaveTracing() to Python 3.11.0a2 +#if PY_VERSION_HEX < 0x030B00A2 && !defined(PYPY_VERSION) +static inline void PyThreadState_LeaveTracing(PyThreadState *tstate) +{ + int use_tracing = (tstate->c_tracefunc != _Py_NULL + || tstate->c_profilefunc != _Py_NULL); + tstate->tracing--; +#if PY_VERSION_HEX >= 0x030A00A1 + tstate->cframe->use_tracing = use_tracing; +#else + tstate->use_tracing = use_tracing; +#endif +} +#endif + + +// bpo-37194 added PyObject_CallNoArgs() to Python 3.9.0a1 +// PyObject_CallNoArgs() added to PyPy 3.9.16-v7.3.11 +#if !defined(PyObject_CallNoArgs) && PY_VERSION_HEX < 0x030900A1 +static inline PyObject* PyObject_CallNoArgs(PyObject *func) +{ + return PyObject_CallFunctionObjArgs(func, NULL); +} +#endif + + +// bpo-39245 made PyObject_CallOneArg() public (previously called +// _PyObject_CallOneArg) in Python 3.9.0a4 +// PyObject_CallOneArg() added to PyPy 3.9.16-v7.3.11 +#if !defined(PyObject_CallOneArg) && PY_VERSION_HEX < 0x030900A4 +static inline PyObject* PyObject_CallOneArg(PyObject *func, PyObject *arg) +{ + return PyObject_CallFunctionObjArgs(func, arg, NULL); +} +#endif + + +// bpo-1635741 added PyModule_AddObjectRef() to Python 3.10.0a3 +#if PY_VERSION_HEX < 0x030A00A3 +static inline int +PyModule_AddObjectRef(PyObject *module, const char *name, PyObject *value) +{ + int res; + + if (!value && !PyErr_Occurred()) { + // PyModule_AddObject() raises TypeError in this case + PyErr_SetString(PyExc_SystemError, + "PyModule_AddObjectRef() must be called " + "with an exception raised if value is NULL"); + return -1; + } + + Py_XINCREF(value); + res = PyModule_AddObject(module, name, value); + if (res < 0) { + Py_XDECREF(value); + } + return res; +} +#endif + + +// bpo-40024 added PyModule_AddType() to Python 3.9.0a5 +#if PY_VERSION_HEX < 0x030900A5 +static inline int PyModule_AddType(PyObject *module, PyTypeObject *type) +{ + const char *name, *dot; + + if (PyType_Ready(type) < 0) { + return -1; + } + + // inline _PyType_Name() + name = type->tp_name; + assert(name != _Py_NULL); + dot = strrchr(name, '.'); + if (dot != _Py_NULL) { + name = dot + 1; + } + + return PyModule_AddObjectRef(module, name, _PyObject_CAST(type)); +} +#endif + + +// bpo-40241 added PyObject_GC_IsTracked() to Python 3.9.0a6. +// bpo-4688 added _PyObject_GC_IS_TRACKED() to Python 2.7.0a2. +#if PY_VERSION_HEX < 0x030900A6 && !defined(PYPY_VERSION) +static inline int PyObject_GC_IsTracked(PyObject* obj) +{ + return (PyObject_IS_GC(obj) && _PyObject_GC_IS_TRACKED(obj)); +} +#endif + +// bpo-40241 added PyObject_GC_IsFinalized() to Python 3.9.0a6. +// bpo-18112 added _PyGCHead_FINALIZED() to Python 3.4.0 final. +#if PY_VERSION_HEX < 0x030900A6 && PY_VERSION_HEX >= 0x030400F0 && !defined(PYPY_VERSION) +static inline int PyObject_GC_IsFinalized(PyObject *obj) +{ + PyGC_Head *gc = _Py_CAST(PyGC_Head*, obj) - 1; + return (PyObject_IS_GC(obj) && _PyGCHead_FINALIZED(gc)); +} +#endif + + +// bpo-39573 added Py_IS_TYPE() to Python 3.9.0a4 +#if PY_VERSION_HEX < 0x030900A4 && !defined(Py_IS_TYPE) +static inline int _Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { + return Py_TYPE(ob) == type; +} +#define Py_IS_TYPE(ob, type) _Py_IS_TYPE(_PyObject_CAST(ob), type) +#endif + + +// bpo-46906 added PyFloat_Pack2() and PyFloat_Unpack2() to Python 3.11a7. +// bpo-11734 added _PyFloat_Pack2() and _PyFloat_Unpack2() to Python 3.6.0b1. +// Python 3.11a2 moved _PyFloat_Pack2() and _PyFloat_Unpack2() to the internal +// C API: Python 3.11a2-3.11a6 versions are not supported. +#if 0x030600B1 <= PY_VERSION_HEX && PY_VERSION_HEX <= 0x030B00A1 && !defined(PYPY_VERSION) +static inline int PyFloat_Pack2(double x, char *p, int le) +{ return _PyFloat_Pack2(x, (unsigned char*)p, le); } + +static inline double PyFloat_Unpack2(const char *p, int le) +{ return _PyFloat_Unpack2((const unsigned char *)p, le); } +#endif + + +// bpo-46906 added PyFloat_Pack4(), PyFloat_Pack8(), PyFloat_Unpack4() and +// PyFloat_Unpack8() to Python 3.11a7. +// Python 3.11a2 moved _PyFloat_Pack4(), _PyFloat_Pack8(), _PyFloat_Unpack4() +// and _PyFloat_Unpack8() to the internal C API: Python 3.11a2-3.11a6 versions +// are not supported. +#if PY_VERSION_HEX <= 0x030B00A1 && !defined(PYPY_VERSION) +static inline int PyFloat_Pack4(double x, char *p, int le) +{ return _PyFloat_Pack4(x, (unsigned char*)p, le); } + +static inline int PyFloat_Pack8(double x, char *p, int le) +{ return _PyFloat_Pack8(x, (unsigned char*)p, le); } + +static inline double PyFloat_Unpack4(const char *p, int le) +{ return _PyFloat_Unpack4((const unsigned char *)p, le); } + +static inline double PyFloat_Unpack8(const char *p, int le) +{ return _PyFloat_Unpack8((const unsigned char *)p, le); } +#endif + + +// gh-92154 added PyCode_GetCode() to Python 3.11.0b1 +#if PY_VERSION_HEX < 0x030B00B1 && !defined(PYPY_VERSION) +static inline PyObject* PyCode_GetCode(PyCodeObject *code) +{ + return Py_NewRef(code->co_code); +} +#endif + + +// gh-95008 added PyCode_GetVarnames() to Python 3.11.0rc1 +#if PY_VERSION_HEX < 0x030B00C1 && !defined(PYPY_VERSION) +static inline PyObject* PyCode_GetVarnames(PyCodeObject *code) +{ + return Py_NewRef(code->co_varnames); +} +#endif + +// gh-95008 added PyCode_GetFreevars() to Python 3.11.0rc1 +#if PY_VERSION_HEX < 0x030B00C1 && !defined(PYPY_VERSION) +static inline PyObject* PyCode_GetFreevars(PyCodeObject *code) +{ + return Py_NewRef(code->co_freevars); +} +#endif + +// gh-95008 added PyCode_GetCellvars() to Python 3.11.0rc1 +#if PY_VERSION_HEX < 0x030B00C1 && !defined(PYPY_VERSION) +static inline PyObject* PyCode_GetCellvars(PyCodeObject *code) +{ + return Py_NewRef(code->co_cellvars); +} +#endif + + +// Py_UNUSED() was added to Python 3.4.0b2. +#if PY_VERSION_HEX < 0x030400B2 && !defined(Py_UNUSED) +# if defined(__GNUC__) || defined(__clang__) +# define Py_UNUSED(name) _unused_ ## name __attribute__((unused)) +# else +# define Py_UNUSED(name) _unused_ ## name +# endif +#endif + + +// gh-105922 added PyImport_AddModuleRef() to Python 3.13.0a1 +#if PY_VERSION_HEX < 0x030D00A0 +static inline PyObject* PyImport_AddModuleRef(const char *name) +{ + return Py_XNewRef(PyImport_AddModule(name)); +} +#endif + + +// gh-105927 added PyWeakref_GetRef() to Python 3.13.0a1 +#if PY_VERSION_HEX < 0x030D0000 +static inline int PyWeakref_GetRef(PyObject *ref, PyObject **pobj) +{ + PyObject *obj; + if (ref != NULL && !PyWeakref_Check(ref)) { + *pobj = NULL; + PyErr_SetString(PyExc_TypeError, "expected a weakref"); + return -1; + } + obj = PyWeakref_GetObject(ref); + if (obj == NULL) { + // SystemError if ref is NULL + *pobj = NULL; + return -1; + } + if (obj == Py_None) { + *pobj = NULL; + return 0; + } + *pobj = Py_NewRef(obj); + return (*pobj != NULL); +} +#endif + + +// bpo-36974 added PY_VECTORCALL_ARGUMENTS_OFFSET to Python 3.8b1 +#ifndef PY_VECTORCALL_ARGUMENTS_OFFSET +# define PY_VECTORCALL_ARGUMENTS_OFFSET (_Py_CAST(size_t, 1) << (8 * sizeof(size_t) - 1)) +#endif + +// bpo-36974 added PyVectorcall_NARGS() to Python 3.8b1 +#if PY_VERSION_HEX < 0x030800B1 +static inline Py_ssize_t PyVectorcall_NARGS(size_t n) +{ + return n & ~PY_VECTORCALL_ARGUMENTS_OFFSET; +} +#endif + + +// gh-105922 added PyObject_Vectorcall() to Python 3.9.0a4 +#if PY_VERSION_HEX < 0x030900A4 +static inline PyObject* +PyObject_Vectorcall(PyObject *callable, PyObject *const *args, + size_t nargsf, PyObject *kwnames) +{ +#if PY_VERSION_HEX >= 0x030800B1 && !defined(PYPY_VERSION) + // bpo-36974 added _PyObject_Vectorcall() to Python 3.8.0b1 + return _PyObject_Vectorcall(callable, args, nargsf, kwnames); +#else + PyObject *posargs = NULL, *kwargs = NULL; + PyObject *res; + Py_ssize_t nposargs, nkwargs, i; + + if (nargsf != 0 && args == NULL) { + PyErr_BadInternalCall(); + goto error; + } + if (kwnames != NULL && !PyTuple_Check(kwnames)) { + PyErr_BadInternalCall(); + goto error; + } + + nposargs = (Py_ssize_t)PyVectorcall_NARGS(nargsf); + if (kwnames) { + nkwargs = PyTuple_GET_SIZE(kwnames); + } + else { + nkwargs = 0; + } + + posargs = PyTuple_New(nposargs); + if (posargs == NULL) { + goto error; + } + if (nposargs) { + for (i=0; i < nposargs; i++) { + PyTuple_SET_ITEM(posargs, i, Py_NewRef(*args)); + args++; + } + } + + if (nkwargs) { + kwargs = PyDict_New(); + if (kwargs == NULL) { + goto error; + } + + for (i = 0; i < nkwargs; i++) { + PyObject *key = PyTuple_GET_ITEM(kwnames, i); + PyObject *value = *args; + args++; + if (PyDict_SetItem(kwargs, key, value) < 0) { + goto error; + } + } + } + else { + kwargs = NULL; + } + + res = PyObject_Call(callable, posargs, kwargs); + Py_DECREF(posargs); + Py_XDECREF(kwargs); + return res; + +error: + Py_DECREF(posargs); + Py_XDECREF(kwargs); + return NULL; +#endif +} +#endif + + +// gh-106521 added PyObject_GetOptionalAttr() and +// PyObject_GetOptionalAttrString() to Python 3.13.0a1 +#if PY_VERSION_HEX < 0x030D00A1 +static inline int +PyObject_GetOptionalAttr(PyObject *obj, PyObject *attr_name, PyObject **result) +{ + // bpo-32571 added _PyObject_LookupAttr() to Python 3.7.0b1 +#if PY_VERSION_HEX >= 0x030700B1 && !defined(PYPY_VERSION) + return _PyObject_LookupAttr(obj, attr_name, result); +#else + *result = PyObject_GetAttr(obj, attr_name); + if (*result != NULL) { + return 1; + } + if (!PyErr_Occurred()) { + return 0; + } + if (PyErr_ExceptionMatches(PyExc_AttributeError)) { + PyErr_Clear(); + return 0; + } + return -1; +#endif +} + +static inline int +PyObject_GetOptionalAttrString(PyObject *obj, const char *attr_name, PyObject **result) +{ + PyObject *name_obj; + int rc; +#if PY_VERSION_HEX >= 0x03000000 + name_obj = PyUnicode_FromString(attr_name); +#else + name_obj = PyString_FromString(attr_name); +#endif + if (name_obj == NULL) { + *result = NULL; + return -1; + } + rc = PyObject_GetOptionalAttr(obj, name_obj, result); + Py_DECREF(name_obj); + return rc; +} +#endif + + +// gh-106307 added PyObject_GetOptionalAttr() and +// PyMapping_GetOptionalItemString() to Python 3.13.0a1 +#if PY_VERSION_HEX < 0x030D00A1 +static inline int +PyMapping_GetOptionalItem(PyObject *obj, PyObject *key, PyObject **result) +{ + *result = PyObject_GetItem(obj, key); + if (*result) { + return 1; + } + if (!PyErr_ExceptionMatches(PyExc_KeyError)) { + return -1; + } + PyErr_Clear(); + return 0; +} + +static inline int +PyMapping_GetOptionalItemString(PyObject *obj, const char *key, PyObject **result) +{ + PyObject *key_obj; + int rc; +#if PY_VERSION_HEX >= 0x03000000 + key_obj = PyUnicode_FromString(key); +#else + key_obj = PyString_FromString(key); +#endif + if (key_obj == NULL) { + *result = NULL; + return -1; + } + rc = PyMapping_GetOptionalItem(obj, key_obj, result); + Py_DECREF(key_obj); + return rc; +} +#endif + +// gh-108511 added PyMapping_HasKeyWithError() and +// PyMapping_HasKeyStringWithError() to Python 3.13.0a1 +#if PY_VERSION_HEX < 0x030D00A1 +static inline int +PyMapping_HasKeyWithError(PyObject *obj, PyObject *key) +{ + PyObject *res; + int rc = PyMapping_GetOptionalItem(obj, key, &res); + Py_XDECREF(res); + return rc; +} + +static inline int +PyMapping_HasKeyStringWithError(PyObject *obj, const char *key) +{ + PyObject *res; + int rc = PyMapping_GetOptionalItemString(obj, key, &res); + Py_XDECREF(res); + return rc; +} +#endif + + +// gh-108511 added PyObject_HasAttrWithError() and +// PyObject_HasAttrStringWithError() to Python 3.13.0a1 +#if PY_VERSION_HEX < 0x030D00A1 +static inline int +PyObject_HasAttrWithError(PyObject *obj, PyObject *attr) +{ + PyObject *res; + int rc = PyObject_GetOptionalAttr(obj, attr, &res); + Py_XDECREF(res); + return rc; +} + +static inline int +PyObject_HasAttrStringWithError(PyObject *obj, const char *attr) +{ + PyObject *res; + int rc = PyObject_GetOptionalAttrString(obj, attr, &res); + Py_XDECREF(res); + return rc; +} +#endif + + +// gh-106004 added PyDict_GetItemRef() and PyDict_GetItemStringRef() +// to Python 3.13.0a1 +#if PY_VERSION_HEX < 0x030D00A1 +static inline int +PyDict_GetItemRef(PyObject *mp, PyObject *key, PyObject **result) +{ +#if PY_VERSION_HEX >= 0x03000000 + PyObject *item = PyDict_GetItemWithError(mp, key); +#else + PyObject *item = _PyDict_GetItemWithError(mp, key); +#endif + if (item != NULL) { + *result = Py_NewRef(item); + return 1; // found + } + if (!PyErr_Occurred()) { + *result = NULL; + return 0; // not found + } + *result = NULL; + return -1; +} + +static inline int +PyDict_GetItemStringRef(PyObject *mp, const char *key, PyObject **result) +{ + int res; +#if PY_VERSION_HEX >= 0x03000000 + PyObject *key_obj = PyUnicode_FromString(key); +#else + PyObject *key_obj = PyString_FromString(key); +#endif + if (key_obj == NULL) { + *result = NULL; + return -1; + } + res = PyDict_GetItemRef(mp, key_obj, result); + Py_DECREF(key_obj); + return res; +} +#endif + + +// gh-106307 added PyModule_Add() to Python 3.13.0a1 +#if PY_VERSION_HEX < 0x030D00A1 +static inline int +PyModule_Add(PyObject *mod, const char *name, PyObject *value) +{ + int res = PyModule_AddObjectRef(mod, name, value); + Py_XDECREF(value); + return res; +} +#endif + + +// gh-108014 added Py_IsFinalizing() to Python 3.13.0a1 +// bpo-1856 added _Py_Finalizing to Python 3.2.1b1. +// _Py_IsFinalizing() was added to PyPy 7.3.0. +#if (0x030201B1 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x030D00A1) \ + && (!defined(PYPY_VERSION_NUM) || PYPY_VERSION_NUM >= 0x7030000) +static inline int Py_IsFinalizing(void) +{ +#if PY_VERSION_HEX >= 0x030700A1 + // _Py_IsFinalizing() was added to Python 3.7.0a1. + return _Py_IsFinalizing(); +#else + return (_Py_Finalizing != NULL); +#endif +} +#endif + + +// gh-108323 added PyDict_ContainsString() to Python 3.13.0a1 +#if PY_VERSION_HEX < 0x030D00A1 +static inline int PyDict_ContainsString(PyObject *op, const char *key) +{ + PyObject *key_obj = PyUnicode_FromString(key); + if (key_obj == NULL) { + return -1; + } + int res = PyDict_Contains(op, key_obj); + Py_DECREF(key_obj); + return res; +} +#endif + + +// gh-108445 added PyLong_AsInt() to Python 3.13.0a1 +#if PY_VERSION_HEX < 0x030D00A1 +static inline int PyLong_AsInt(PyObject *obj) +{ +#ifdef PYPY_VERSION + long value = PyLong_AsLong(obj); + if (value == -1 && PyErr_Occurred()) { + return -1; + } + if (value < (long)INT_MIN || (long)INT_MAX < value) { + PyErr_SetString(PyExc_OverflowError, + "Python int too large to convert to C int"); + return -1; + } + return (int)value; +#else + return _PyLong_AsInt(obj); +#endif +} +#endif + + +// gh-107073 added PyObject_VisitManagedDict() to Python 3.13.0a1 +#if PY_VERSION_HEX < 0x030D00A1 +static inline int +PyObject_VisitManagedDict(PyObject *obj, visitproc visit, void *arg) +{ + PyObject **dict = _PyObject_GetDictPtr(obj); + if (*dict == NULL) { + return -1; + } + Py_VISIT(*dict); + return 0; +} + +static inline void +PyObject_ClearManagedDict(PyObject *obj) +{ + PyObject **dict = _PyObject_GetDictPtr(obj); + if (*dict == NULL) { + return; + } + Py_CLEAR(*dict); +} +#endif + +// gh-108867 added PyThreadState_GetUnchecked() to Python 3.13.0a1 +// Python 3.5.2 added _PyThreadState_UncheckedGet(). +#if PY_VERSION_HEX >= 0x03050200 && PY_VERSION_HEX < 0x030D00A1 +static inline PyThreadState* +PyThreadState_GetUnchecked(void) +{ + return _PyThreadState_UncheckedGet(); +} +#endif + +// gh-110289 added PyUnicode_EqualToUTF8() and PyUnicode_EqualToUTF8AndSize() +// to Python 3.13.0a1 +#if PY_VERSION_HEX < 0x030D00A1 +static inline int +PyUnicode_EqualToUTF8AndSize(PyObject *unicode, const char *str, Py_ssize_t str_len) +{ + Py_ssize_t len; + const void *utf8; + PyObject *exc_type, *exc_value, *exc_tb; + int res; + + // API cannot report errors so save/restore the exception + PyErr_Fetch(&exc_type, &exc_value, &exc_tb); + + // Python 3.3.0a1 added PyUnicode_AsUTF8AndSize() +#if PY_VERSION_HEX >= 0x030300A1 + if (PyUnicode_IS_ASCII(unicode)) { + utf8 = PyUnicode_DATA(unicode); + len = PyUnicode_GET_LENGTH(unicode); + } + else { + utf8 = PyUnicode_AsUTF8AndSize(unicode, &len); + if (utf8 == NULL) { + // Memory allocation failure. The API cannot report error, + // so ignore the exception and return 0. + res = 0; + goto done; + } + } + + if (len != str_len) { + res = 0; + goto done; + } + res = (memcmp(utf8, str, (size_t)len) == 0); +#else + PyObject *bytes = PyUnicode_AsUTF8String(unicode); + if (bytes == NULL) { + // Memory allocation failure. The API cannot report error, + // so ignore the exception and return 0. + res = 0; + goto done; + } + +#if PY_VERSION_HEX >= 0x03000000 + len = PyBytes_GET_SIZE(bytes); + utf8 = PyBytes_AS_STRING(bytes); +#else + len = PyString_GET_SIZE(bytes); + utf8 = PyString_AS_STRING(bytes); +#endif + if (len != str_len) { + Py_DECREF(bytes); + res = 0; + goto done; + } + + res = (memcmp(utf8, str, (size_t)len) == 0); + Py_DECREF(bytes); +#endif + +done: + PyErr_Restore(exc_type, exc_value, exc_tb); + return res; +} + +static inline int +PyUnicode_EqualToUTF8(PyObject *unicode, const char *str) +{ + return PyUnicode_EqualToUTF8AndSize(unicode, str, (Py_ssize_t)strlen(str)); +} +#endif + + +// gh-111138 added PyList_Extend() and PyList_Clear() to Python 3.13.0a2 +#if PY_VERSION_HEX < 0x030D00A2 +static inline int +PyList_Extend(PyObject *list, PyObject *iterable) +{ + return PyList_SetSlice(list, PY_SSIZE_T_MAX, PY_SSIZE_T_MAX, iterable); +} + +static inline int +PyList_Clear(PyObject *list) +{ + return PyList_SetSlice(list, 0, PY_SSIZE_T_MAX, NULL); +} +#endif + +// gh-111262 added PyDict_Pop() and PyDict_PopString() to Python 3.13.0a2 +#if PY_VERSION_HEX < 0x030D00A2 +static inline int +PyDict_Pop(PyObject *dict, PyObject *key, PyObject **result) +{ + PyObject *value; + + if (!PyDict_Check(dict)) { + PyErr_BadInternalCall(); + if (result) { + *result = NULL; + } + return -1; + } + + // bpo-16991 added _PyDict_Pop() to Python 3.5.0b2. + // Python 3.6.0b3 changed _PyDict_Pop() first argument type to PyObject*. + // Python 3.13.0a1 removed _PyDict_Pop(). +#if defined(PYPY_VERSION) || PY_VERSION_HEX < 0x030500b2 || PY_VERSION_HEX >= 0x030D0000 + value = PyObject_CallMethod(dict, "pop", "O", key); +#elif PY_VERSION_HEX < 0x030600b3 + value = _PyDict_Pop(_Py_CAST(PyDictObject*, dict), key, NULL); +#else + value = _PyDict_Pop(dict, key, NULL); +#endif + if (value == NULL) { + if (result) { + *result = NULL; + } + if (PyErr_Occurred() && !PyErr_ExceptionMatches(PyExc_KeyError)) { + return -1; + } + PyErr_Clear(); + return 0; + } + if (result) { + *result = value; + } + else { + Py_DECREF(value); + } + return 1; +} + +static inline int +PyDict_PopString(PyObject *dict, const char *key, PyObject **result) +{ + PyObject *key_obj = PyUnicode_FromString(key); + if (key_obj == NULL) { + if (result != NULL) { + *result = NULL; + } + return -1; + } + + int res = PyDict_Pop(dict, key_obj, result); + Py_DECREF(key_obj); + return res; +} +#endif + + +#if PY_VERSION_HEX < 0x030200A4 +// Python 3.2.0a4 added Py_hash_t type +typedef Py_ssize_t Py_hash_t; +#endif + + +// gh-111545 added Py_HashPointer() to Python 3.13.0a3 +#if PY_VERSION_HEX < 0x030D00A3 +static inline Py_hash_t Py_HashPointer(const void *ptr) +{ +#if PY_VERSION_HEX >= 0x030900A4 && !defined(PYPY_VERSION) + return _Py_HashPointer(ptr); +#else + return _Py_HashPointer(_Py_CAST(void*, ptr)); +#endif +} +#endif + + +// Python 3.13a4 added a PyTime API. +// Use the private API added to Python 3.5. +#if PY_VERSION_HEX < 0x030D00A4 && PY_VERSION_HEX >= 0x03050000 +typedef _PyTime_t PyTime_t; +#define PyTime_MIN _PyTime_MIN +#define PyTime_MAX _PyTime_MAX + +static inline double PyTime_AsSecondsDouble(PyTime_t t) +{ return _PyTime_AsSecondsDouble(t); } + +static inline int PyTime_Monotonic(PyTime_t *result) +{ return _PyTime_GetMonotonicClockWithInfo(result, NULL); } + +static inline int PyTime_Time(PyTime_t *result) +{ return _PyTime_GetSystemClockWithInfo(result, NULL); } + +static inline int PyTime_PerfCounter(PyTime_t *result) +{ +#if PY_VERSION_HEX >= 0x03070000 && !defined(PYPY_VERSION) + return _PyTime_GetPerfCounterWithInfo(result, NULL); +#elif PY_VERSION_HEX >= 0x03070000 + // Call time.perf_counter_ns() and convert Python int object to PyTime_t. + // Cache time.perf_counter_ns() function for best performance. + static PyObject *func = NULL; + if (func == NULL) { + PyObject *mod = PyImport_ImportModule("time"); + if (mod == NULL) { + return -1; + } + + func = PyObject_GetAttrString(mod, "perf_counter_ns"); + Py_DECREF(mod); + if (func == NULL) { + return -1; + } + } + + PyObject *res = PyObject_CallNoArgs(func); + if (res == NULL) { + return -1; + } + long long value = PyLong_AsLongLong(res); + Py_DECREF(res); + + if (value == -1 && PyErr_Occurred()) { + return -1; + } + + Py_BUILD_ASSERT(sizeof(value) >= sizeof(PyTime_t)); + *result = (PyTime_t)value; + return 0; +#else + // Call time.perf_counter() and convert C double to PyTime_t. + // Cache time.perf_counter() function for best performance. + static PyObject *func = NULL; + if (func == NULL) { + PyObject *mod = PyImport_ImportModule("time"); + if (mod == NULL) { + return -1; + } + + func = PyObject_GetAttrString(mod, "perf_counter"); + Py_DECREF(mod); + if (func == NULL) { + return -1; + } + } + + PyObject *res = PyObject_CallNoArgs(func); + if (res == NULL) { + return -1; + } + double d = PyFloat_AsDouble(res); + Py_DECREF(res); + + if (d == -1.0 && PyErr_Occurred()) { + return -1; + } + + // Avoid floor() to avoid having to link to libm + *result = (PyTime_t)(d * 1e9); + return 0; +#endif +} + +#endif + +// gh-111389 added hash constants to Python 3.13.0a5. These constants were +// added first as private macros to Python 3.4.0b1 and PyPy 7.3.9. +#if (!defined(PyHASH_BITS) \ + && ((!defined(PYPY_VERSION) && PY_VERSION_HEX >= 0x030400B1) \ + || (defined(PYPY_VERSION) && PY_VERSION_HEX >= 0x03070000 \ + && PYPY_VERSION_NUM >= 0x07090000))) +# define PyHASH_BITS _PyHASH_BITS +# define PyHASH_MODULUS _PyHASH_MODULUS +# define PyHASH_INF _PyHASH_INF +# define PyHASH_IMAG _PyHASH_IMAG +#endif + + +// gh-111545 added Py_GetConstant() and Py_GetConstantBorrowed() +// to Python 3.13.0a6 +#if PY_VERSION_HEX < 0x030D00A6 && !defined(Py_CONSTANT_NONE) + +#define Py_CONSTANT_NONE 0 +#define Py_CONSTANT_FALSE 1 +#define Py_CONSTANT_TRUE 2 +#define Py_CONSTANT_ELLIPSIS 3 +#define Py_CONSTANT_NOT_IMPLEMENTED 4 +#define Py_CONSTANT_ZERO 5 +#define Py_CONSTANT_ONE 6 +#define Py_CONSTANT_EMPTY_STR 7 +#define Py_CONSTANT_EMPTY_BYTES 8 +#define Py_CONSTANT_EMPTY_TUPLE 9 + +static inline PyObject* Py_GetConstant(unsigned int constant_id) +{ + static PyObject* constants[Py_CONSTANT_EMPTY_TUPLE + 1] = {NULL}; + + if (constants[Py_CONSTANT_NONE] == NULL) { + constants[Py_CONSTANT_NONE] = Py_None; + constants[Py_CONSTANT_FALSE] = Py_False; + constants[Py_CONSTANT_TRUE] = Py_True; + constants[Py_CONSTANT_ELLIPSIS] = Py_Ellipsis; + constants[Py_CONSTANT_NOT_IMPLEMENTED] = Py_NotImplemented; + + constants[Py_CONSTANT_ZERO] = PyLong_FromLong(0); + if (constants[Py_CONSTANT_ZERO] == NULL) { + goto fatal_error; + } + + constants[Py_CONSTANT_ONE] = PyLong_FromLong(1); + if (constants[Py_CONSTANT_ONE] == NULL) { + goto fatal_error; + } + + constants[Py_CONSTANT_EMPTY_STR] = PyUnicode_FromStringAndSize("", 0); + if (constants[Py_CONSTANT_EMPTY_STR] == NULL) { + goto fatal_error; + } + + constants[Py_CONSTANT_EMPTY_BYTES] = PyBytes_FromStringAndSize("", 0); + if (constants[Py_CONSTANT_EMPTY_BYTES] == NULL) { + goto fatal_error; + } + + constants[Py_CONSTANT_EMPTY_TUPLE] = PyTuple_New(0); + if (constants[Py_CONSTANT_EMPTY_TUPLE] == NULL) { + goto fatal_error; + } + // goto dance to avoid compiler warnings about Py_FatalError() + goto init_done; + +fatal_error: + // This case should never happen + Py_FatalError("Py_GetConstant() failed to get constants"); + } + +init_done: + if (constant_id <= Py_CONSTANT_EMPTY_TUPLE) { + return Py_NewRef(constants[constant_id]); + } + else { + PyErr_BadInternalCall(); + return NULL; + } +} + +static inline PyObject* Py_GetConstantBorrowed(unsigned int constant_id) +{ + PyObject *obj = Py_GetConstant(constant_id); + Py_XDECREF(obj); + return obj; +} +#endif + + +// gh-114329 added PyList_GetItemRef() to Python 3.13.0a4 +#if PY_VERSION_HEX < 0x030D00A4 +static inline PyObject * +PyList_GetItemRef(PyObject *op, Py_ssize_t index) +{ + PyObject *item = PyList_GetItem(op, index); + Py_XINCREF(item); + return item; +} +#endif + + +// gh-114329 added PyList_GetItemRef() to Python 3.13.0a4 +#if PY_VERSION_HEX < 0x030D00A4 +static inline int +PyDict_SetDefaultRef(PyObject *d, PyObject *key, PyObject *default_value, + PyObject **result) +{ + PyObject *value; + if (PyDict_GetItemRef(d, key, &value) < 0) { + // get error + if (result) { + *result = NULL; + } + return -1; + } + if (value != NULL) { + // present + if (result) { + *result = value; + } + else { + Py_DECREF(value); + } + return 1; + } + + // missing: set the item + if (PyDict_SetItem(d, key, default_value) < 0) { + // set error + if (result) { + *result = NULL; + } + return -1; + } + if (result) { + *result = Py_NewRef(default_value); + } + return 0; +} +#endif + +#if PY_VERSION_HEX < 0x030E0000 && PY_VERSION_HEX >= 0x03060000 && !defined(PYPY_VERSION) +typedef struct PyUnicodeWriter PyUnicodeWriter; + +static inline void PyUnicodeWriter_Discard(PyUnicodeWriter *writer) +{ + _PyUnicodeWriter_Dealloc((_PyUnicodeWriter*)writer); + PyMem_Free(writer); +} + +static inline PyUnicodeWriter* PyUnicodeWriter_Create(Py_ssize_t length) +{ + if (length < 0) { + PyErr_SetString(PyExc_ValueError, + "length must be positive"); + return NULL; + } + + const size_t size = sizeof(_PyUnicodeWriter); + PyUnicodeWriter *pub_writer = (PyUnicodeWriter *)PyMem_Malloc(size); + if (pub_writer == _Py_NULL) { + PyErr_NoMemory(); + return _Py_NULL; + } + _PyUnicodeWriter *writer = (_PyUnicodeWriter *)pub_writer; + + _PyUnicodeWriter_Init(writer); + if (_PyUnicodeWriter_Prepare(writer, length, 127) < 0) { + PyUnicodeWriter_Discard(pub_writer); + return NULL; + } + writer->overallocate = 1; + return pub_writer; +} + +static inline PyObject* PyUnicodeWriter_Finish(PyUnicodeWriter *writer) +{ + PyObject *str = _PyUnicodeWriter_Finish((_PyUnicodeWriter*)writer); + assert(((_PyUnicodeWriter*)writer)->buffer == NULL); + PyMem_Free(writer); + return str; +} + +static inline int +PyUnicodeWriter_WriteChar(PyUnicodeWriter *writer, Py_UCS4 ch) +{ + if (ch > 0x10ffff) { + PyErr_SetString(PyExc_ValueError, + "character must be in range(0x110000)"); + return -1; + } + + return _PyUnicodeWriter_WriteChar((_PyUnicodeWriter*)writer, ch); +} + +static inline int +PyUnicodeWriter_WriteStr(PyUnicodeWriter *writer, PyObject *obj) +{ + PyObject *str = PyObject_Str(obj); + if (str == NULL) { + return -1; + } + + int res = _PyUnicodeWriter_WriteStr((_PyUnicodeWriter*)writer, str); + Py_DECREF(str); + return res; +} + +static inline int +PyUnicodeWriter_WriteRepr(PyUnicodeWriter *writer, PyObject *obj) +{ + PyObject *str = PyObject_Repr(obj); + if (str == NULL) { + return -1; + } + + int res = _PyUnicodeWriter_WriteStr((_PyUnicodeWriter*)writer, str); + Py_DECREF(str); + return res; +} + +static inline int +PyUnicodeWriter_WriteUTF8(PyUnicodeWriter *writer, + const char *str, Py_ssize_t size) +{ + if (size < 0) { + size = (Py_ssize_t)strlen(str); + } + + PyObject *str_obj = PyUnicode_FromStringAndSize(str, size); + if (str_obj == _Py_NULL) { + return -1; + } + + int res = _PyUnicodeWriter_WriteStr((_PyUnicodeWriter*)writer, str_obj); + Py_DECREF(str_obj); + return res; +} + +static inline int +PyUnicodeWriter_WriteWideChar(PyUnicodeWriter *writer, + const wchar_t *str, Py_ssize_t size) +{ + if (size < 0) { + size = (Py_ssize_t)wcslen(str); + } + + PyObject *str_obj = PyUnicode_FromWideChar(str, size); + if (str_obj == _Py_NULL) { + return -1; + } + + int res = _PyUnicodeWriter_WriteStr((_PyUnicodeWriter*)writer, str_obj); + Py_DECREF(str_obj); + return res; +} + +static inline int +PyUnicodeWriter_WriteSubstring(PyUnicodeWriter *writer, PyObject *str, + Py_ssize_t start, Py_ssize_t end) +{ + if (!PyUnicode_Check(str)) { + PyErr_Format(PyExc_TypeError, "expect str, not %T", str); + return -1; + } + if (start < 0 || start > end) { + PyErr_Format(PyExc_ValueError, "invalid start argument"); + return -1; + } + if (end > PyUnicode_GET_LENGTH(str)) { + PyErr_Format(PyExc_ValueError, "invalid end argument"); + return -1; + } + + return _PyUnicodeWriter_WriteSubstring((_PyUnicodeWriter*)writer, str, + start, end); +} + +static inline int +PyUnicodeWriter_Format(PyUnicodeWriter *writer, const char *format, ...) +{ + va_list vargs; + va_start(vargs, format); + PyObject *str = PyUnicode_FromFormatV(format, vargs); + va_end(vargs); + if (str == _Py_NULL) { + return -1; + } + + int res = _PyUnicodeWriter_WriteStr((_PyUnicodeWriter*)writer, str); + Py_DECREF(str); + return res; +} +#endif // PY_VERSION_HEX < 0x030E0000 + +// gh-116560 added PyLong_GetSign() to Python 3.14.0a0 +#if PY_VERSION_HEX < 0x030E00A0 +static inline int PyLong_GetSign(PyObject *obj, int *sign) +{ + if (!PyLong_Check(obj)) { + PyErr_Format(PyExc_TypeError, "expect int, got %s", Py_TYPE(obj)->tp_name); + return -1; + } + + *sign = _PyLong_Sign(obj); + return 0; +} +#endif + + +#ifdef __cplusplus +} +#endif +#endif // PYTHONCAPI_COMPAT diff --git a/shared/package-files/6f/6f3b80b99a688cff9c282ba40f78d57a46d0cd97c79eb513d7749ec79a6428e2/_rbfinterp.py b/shared/package-files/6f/6f3b80b99a688cff9c282ba40f78d57a46d0cd97c79eb513d7749ec79a6428e2/_rbfinterp.py new file mode 100644 index 0000000000000000000000000000000000000000..6690e6ccf7d5499db10efffb0ef1c0139a90d2ba --- /dev/null +++ b/shared/package-files/6f/6f3b80b99a688cff9c282ba40f78d57a46d0cd97c79eb513d7749ec79a6428e2/_rbfinterp.py @@ -0,0 +1,550 @@ +"""Module for RBF interpolation.""" +import warnings +from itertools import combinations_with_replacement + +import numpy as np +from numpy.linalg import LinAlgError +from scipy.spatial import KDTree +from scipy.special import comb +from scipy.linalg.lapack import dgesv # type: ignore[attr-defined] + +from ._rbfinterp_pythran import (_build_system, + _build_evaluation_coefficients, + _polynomial_matrix) + + +__all__ = ["RBFInterpolator"] + + +# These RBFs are implemented. +_AVAILABLE = { + "linear", + "thin_plate_spline", + "cubic", + "quintic", + "multiquadric", + "inverse_multiquadric", + "inverse_quadratic", + "gaussian" + } + + +# The shape parameter does not need to be specified when using these RBFs. +_SCALE_INVARIANT = {"linear", "thin_plate_spline", "cubic", "quintic"} + + +# For RBFs that are conditionally positive definite of order m, the interpolant +# should include polynomial terms with degree >= m - 1. Define the minimum +# degrees here. These values are from Chapter 8 of Fasshauer's "Meshfree +# Approximation Methods with MATLAB". The RBFs that are not in this dictionary +# are positive definite and do not need polynomial terms. +_NAME_TO_MIN_DEGREE = { + "multiquadric": 0, + "linear": 0, + "thin_plate_spline": 1, + "cubic": 1, + "quintic": 2 + } + + +def _monomial_powers(ndim, degree): + """Return the powers for each monomial in a polynomial. + + Parameters + ---------- + ndim : int + Number of variables in the polynomial. + degree : int + Degree of the polynomial. + + Returns + ------- + (nmonos, ndim) int ndarray + Array where each row contains the powers for each variable in a + monomial. + + """ + nmonos = comb(degree + ndim, ndim, exact=True) + out = np.zeros((nmonos, ndim), dtype=np.dtype("long")) + count = 0 + for deg in range(degree + 1): + for mono in combinations_with_replacement(range(ndim), deg): + # `mono` is a tuple of variables in the current monomial with + # multiplicity indicating power (e.g., (0, 1, 1) represents x*y**2) + for var in mono: + out[count, var] += 1 + + count += 1 + + return out + + +def _build_and_solve_system(y, d, smoothing, kernel, epsilon, powers): + """Build and solve the RBF interpolation system of equations. + + Parameters + ---------- + y : (P, N) float ndarray + Data point coordinates. + d : (P, S) float ndarray + Data values at `y`. + smoothing : (P,) float ndarray + Smoothing parameter for each data point. + kernel : str + Name of the RBF. + epsilon : float + Shape parameter. + powers : (R, N) int ndarray + The exponents for each monomial in the polynomial. + + Returns + ------- + coeffs : (P + R, S) float ndarray + Coefficients for each RBF and monomial. + shift : (N,) float ndarray + Domain shift used to create the polynomial matrix. + scale : (N,) float ndarray + Domain scaling used to create the polynomial matrix. + + """ + lhs, rhs, shift, scale = _build_system( + y, d, smoothing, kernel, epsilon, powers + ) + _, _, coeffs, info = dgesv(lhs, rhs, overwrite_a=True, overwrite_b=True) + if info < 0: + raise ValueError(f"The {-info}-th argument had an illegal value.") + elif info > 0: + msg = "Singular matrix." + nmonos = powers.shape[0] + if nmonos > 0: + pmat = _polynomial_matrix((y - shift)/scale, powers) + rank = np.linalg.matrix_rank(pmat) + if rank < nmonos: + msg = ( + "Singular matrix. The matrix of monomials evaluated at " + "the data point coordinates does not have full column " + f"rank ({rank}/{nmonos})." + ) + + raise LinAlgError(msg) + + return shift, scale, coeffs + + +class RBFInterpolator: + """Radial basis function (RBF) interpolation in N dimensions. + + Parameters + ---------- + y : (npoints, ndims) array_like + 2-D array of data point coordinates. + d : (npoints, ...) array_like + N-D array of data values at `y`. The length of `d` along the first + axis must be equal to the length of `y`. Unlike some interpolators, the + interpolation axis cannot be changed. + neighbors : int, optional + If specified, the value of the interpolant at each evaluation point + will be computed using only this many nearest data points. All the data + points are used by default. + smoothing : float or (npoints, ) array_like, optional + Smoothing parameter. The interpolant perfectly fits the data when this + is set to 0. For large values, the interpolant approaches a least + squares fit of a polynomial with the specified degree. Default is 0. + kernel : str, optional + Type of RBF. This should be one of + + - 'linear' : ``-r`` + - 'thin_plate_spline' : ``r**2 * log(r)`` + - 'cubic' : ``r**3`` + - 'quintic' : ``-r**5`` + - 'multiquadric' : ``-sqrt(1 + r**2)`` + - 'inverse_multiquadric' : ``1/sqrt(1 + r**2)`` + - 'inverse_quadratic' : ``1/(1 + r**2)`` + - 'gaussian' : ``exp(-r**2)`` + + Default is 'thin_plate_spline'. + epsilon : float, optional + Shape parameter that scales the input to the RBF. If `kernel` is + 'linear', 'thin_plate_spline', 'cubic', or 'quintic', this defaults to + 1 and can be ignored because it has the same effect as scaling the + smoothing parameter. Otherwise, this must be specified. + degree : int, optional + Degree of the added polynomial. For some RBFs the interpolant may not + be well-posed if the polynomial degree is too small. Those RBFs and + their corresponding minimum degrees are + + - 'multiquadric' : 0 + - 'linear' : 0 + - 'thin_plate_spline' : 1 + - 'cubic' : 1 + - 'quintic' : 2 + + The default value is the minimum degree for `kernel` or 0 if there is + no minimum degree. Set this to -1 for no added polynomial. + + Notes + ----- + An RBF is a scalar valued function in N-dimensional space whose value at + :math:`x` can be expressed in terms of :math:`r=||x - c||`, where :math:`c` + is the center of the RBF. + + An RBF interpolant for the vector of data values :math:`d`, which are from + locations :math:`y`, is a linear combination of RBFs centered at :math:`y` + plus a polynomial with a specified degree. The RBF interpolant is written + as + + .. math:: + f(x) = K(x, y) a + P(x) b, + + where :math:`K(x, y)` is a matrix of RBFs with centers at :math:`y` + evaluated at the points :math:`x`, and :math:`P(x)` is a matrix of + monomials, which span polynomials with the specified degree, evaluated at + :math:`x`. The coefficients :math:`a` and :math:`b` are the solution to the + linear equations + + .. math:: + (K(y, y) + \\lambda I) a + P(y) b = d + + and + + .. math:: + P(y)^T a = 0, + + where :math:`\\lambda` is a non-negative smoothing parameter that controls + how well we want to fit the data. The data are fit exactly when the + smoothing parameter is 0. + + The above system is uniquely solvable if the following requirements are + met: + + - :math:`P(y)` must have full column rank. :math:`P(y)` always has full + column rank when `degree` is -1 or 0. When `degree` is 1, + :math:`P(y)` has full column rank if the data point locations are not + all collinear (N=2), coplanar (N=3), etc. + - If `kernel` is 'multiquadric', 'linear', 'thin_plate_spline', + 'cubic', or 'quintic', then `degree` must not be lower than the + minimum value listed above. + - If `smoothing` is 0, then each data point location must be distinct. + + When using an RBF that is not scale invariant ('multiquadric', + 'inverse_multiquadric', 'inverse_quadratic', or 'gaussian'), an appropriate + shape parameter must be chosen (e.g., through cross validation). Smaller + values for the shape parameter correspond to wider RBFs. The problem can + become ill-conditioned or singular when the shape parameter is too small. + + The memory required to solve for the RBF interpolation coefficients + increases quadratically with the number of data points, which can become + impractical when interpolating more than about a thousand data points. + To overcome memory limitations for large interpolation problems, the + `neighbors` argument can be specified to compute an RBF interpolant for + each evaluation point using only the nearest data points. + + .. versionadded:: 1.7.0 + + See Also + -------- + NearestNDInterpolator + LinearNDInterpolator + CloughTocher2DInterpolator + + References + ---------- + .. [1] Fasshauer, G., 2007. Meshfree Approximation Methods with Matlab. + World Scientific Publishing Co. + + .. [2] http://amadeus.math.iit.edu/~fass/603_ch3.pdf + + .. [3] Wahba, G., 1990. Spline Models for Observational Data. SIAM. + + .. [4] http://pages.stat.wisc.edu/~wahba/stat860public/lect/lect8/lect8.pdf + + Examples + -------- + Demonstrate interpolating scattered data to a grid in 2-D. + + >>> import numpy as np + >>> import matplotlib.pyplot as plt + >>> from scipy.interpolate import RBFInterpolator + >>> from scipy.stats.qmc import Halton + + >>> rng = np.random.default_rng() + >>> xobs = 2*Halton(2, seed=rng).random(100) - 1 + >>> yobs = np.sum(xobs, axis=1)*np.exp(-6*np.sum(xobs**2, axis=1)) + + >>> xgrid = np.mgrid[-1:1:50j, -1:1:50j] + >>> xflat = xgrid.reshape(2, -1).T + >>> yflat = RBFInterpolator(xobs, yobs)(xflat) + >>> ygrid = yflat.reshape(50, 50) + + >>> fig, ax = plt.subplots() + >>> ax.pcolormesh(*xgrid, ygrid, vmin=-0.25, vmax=0.25, shading='gouraud') + >>> p = ax.scatter(*xobs.T, c=yobs, s=50, ec='k', vmin=-0.25, vmax=0.25) + >>> fig.colorbar(p) + >>> plt.show() + + """ + + def __init__(self, y, d, + neighbors=None, + smoothing=0.0, + kernel="thin_plate_spline", + epsilon=None, + degree=None): + y = np.asarray(y, dtype=float, order="C") + if y.ndim != 2: + raise ValueError("`y` must be a 2-dimensional array.") + + ny, ndim = y.shape + + d_dtype = complex if np.iscomplexobj(d) else float + d = np.asarray(d, dtype=d_dtype, order="C") + if d.shape[0] != ny: + raise ValueError( + f"Expected the first axis of `d` to have length {ny}." + ) + + d_shape = d.shape[1:] + d = d.reshape((ny, -1)) + # If `d` is complex, convert it to a float array with twice as many + # columns. Otherwise, the LHS matrix would need to be converted to + # complex and take up 2x more memory than necessary. + d = d.view(float) + + if np.isscalar(smoothing): + smoothing = np.full(ny, smoothing, dtype=float) + else: + smoothing = np.asarray(smoothing, dtype=float, order="C") + if smoothing.shape != (ny,): + raise ValueError( + "Expected `smoothing` to be a scalar or have shape " + f"({ny},)." + ) + + kernel = kernel.lower() + if kernel not in _AVAILABLE: + raise ValueError(f"`kernel` must be one of {_AVAILABLE}.") + + if epsilon is None: + if kernel in _SCALE_INVARIANT: + epsilon = 1.0 + else: + raise ValueError( + "`epsilon` must be specified if `kernel` is not one of " + f"{_SCALE_INVARIANT}." + ) + else: + epsilon = float(epsilon) + + min_degree = _NAME_TO_MIN_DEGREE.get(kernel, -1) + if degree is None: + degree = max(min_degree, 0) + else: + degree = int(degree) + if degree < -1: + raise ValueError("`degree` must be at least -1.") + elif -1 < degree < min_degree: + warnings.warn( + f"`degree` should not be below {min_degree} except -1 " + f"when `kernel` is '{kernel}'." + f"The interpolant may not be uniquely " + f"solvable, and the smoothing parameter may have an " + f"unintuitive effect.", + UserWarning, stacklevel=2 + ) + + if neighbors is None: + nobs = ny + else: + # Make sure the number of nearest neighbors used for interpolation + # does not exceed the number of observations. + neighbors = int(min(neighbors, ny)) + nobs = neighbors + + powers = _monomial_powers(ndim, degree) + # The polynomial matrix must have full column rank in order for the + # interpolant to be well-posed, which is not possible if there are + # fewer observations than monomials. + if powers.shape[0] > nobs: + raise ValueError( + f"At least {powers.shape[0]} data points are required when " + f"`degree` is {degree} and the number of dimensions is {ndim}." + ) + + if neighbors is None: + shift, scale, coeffs = _build_and_solve_system( + y, d, smoothing, kernel, epsilon, powers + ) + + # Make these attributes private since they do not always exist. + self._shift = shift + self._scale = scale + self._coeffs = coeffs + + else: + self._tree = KDTree(y) + + self.y = y + self.d = d + self.d_shape = d_shape + self.d_dtype = d_dtype + self.neighbors = neighbors + self.smoothing = smoothing + self.kernel = kernel + self.epsilon = epsilon + self.powers = powers + + def _chunk_evaluator( + self, + x, + y, + shift, + scale, + coeffs, + memory_budget=1000000 + ): + """ + Evaluate the interpolation while controlling memory consumption. + We chunk the input if we need more memory than specified. + + Parameters + ---------- + x : (Q, N) float ndarray + array of points on which to evaluate + y: (P, N) float ndarray + array of points on which we know function values + shift: (N, ) ndarray + Domain shift used to create the polynomial matrix. + scale : (N,) float ndarray + Domain scaling used to create the polynomial matrix. + coeffs: (P+R, S) float ndarray + Coefficients in front of basis functions + memory_budget: int + Total amount of memory (in units of sizeof(float)) we wish + to devote for storing the array of coefficients for + interpolated points. If we need more memory than that, we + chunk the input. + + Returns + ------- + (Q, S) float ndarray + Interpolated array + """ + nx, ndim = x.shape + if self.neighbors is None: + nnei = len(y) + else: + nnei = self.neighbors + # in each chunk we consume the same space we already occupy + chunksize = memory_budget // (self.powers.shape[0] + nnei) + 1 + if chunksize <= nx: + out = np.empty((nx, self.d.shape[1]), dtype=float) + for i in range(0, nx, chunksize): + vec = _build_evaluation_coefficients( + x[i:i + chunksize, :], + y, + self.kernel, + self.epsilon, + self.powers, + shift, + scale) + out[i:i + chunksize, :] = np.dot(vec, coeffs) + else: + vec = _build_evaluation_coefficients( + x, + y, + self.kernel, + self.epsilon, + self.powers, + shift, + scale) + out = np.dot(vec, coeffs) + return out + + def __call__(self, x): + """Evaluate the interpolant at `x`. + + Parameters + ---------- + x : (Q, N) array_like + Evaluation point coordinates. + + Returns + ------- + (Q, ...) ndarray + Values of the interpolant at `x`. + + """ + x = np.asarray(x, dtype=float, order="C") + if x.ndim != 2: + raise ValueError("`x` must be a 2-dimensional array.") + + nx, ndim = x.shape + if ndim != self.y.shape[1]: + raise ValueError("Expected the second axis of `x` to have length " + f"{self.y.shape[1]}.") + + # Our memory budget for storing RBF coefficients is + # based on how many floats in memory we already occupy + # If this number is below 1e6 we just use 1e6 + # This memory budget is used to decide how we chunk + # the inputs + memory_budget = max(x.size + self.y.size + self.d.size, 1000000) + + if self.neighbors is None: + out = self._chunk_evaluator( + x, + self.y, + self._shift, + self._scale, + self._coeffs, + memory_budget=memory_budget) + else: + # Get the indices of the k nearest observation points to each + # evaluation point. + _, yindices = self._tree.query(x, self.neighbors) + if self.neighbors == 1: + # `KDTree` squeezes the output when neighbors=1. + yindices = yindices[:, None] + + # Multiple evaluation points may have the same neighborhood of + # observation points. Make the neighborhoods unique so that we only + # compute the interpolation coefficients once for each + # neighborhood. + yindices = np.sort(yindices, axis=1) + yindices, inv = np.unique(yindices, return_inverse=True, axis=0) + inv = np.reshape(inv, (-1,)) # flatten, we need 1-D indices + # `inv` tells us which neighborhood will be used by each evaluation + # point. Now we find which evaluation points will be using each + # neighborhood. + xindices = [[] for _ in range(len(yindices))] + for i, j in enumerate(inv): + xindices[j].append(i) + + out = np.empty((nx, self.d.shape[1]), dtype=float) + for xidx, yidx in zip(xindices, yindices): + # `yidx` are the indices of the observations in this + # neighborhood. `xidx` are the indices of the evaluation points + # that are using this neighborhood. + xnbr = x[xidx] + ynbr = self.y[yidx] + dnbr = self.d[yidx] + snbr = self.smoothing[yidx] + shift, scale, coeffs = _build_and_solve_system( + ynbr, + dnbr, + snbr, + self.kernel, + self.epsilon, + self.powers, + ) + out[xidx] = self._chunk_evaluator( + xnbr, + ynbr, + shift, + scale, + coeffs, + memory_budget=memory_budget) + + out = out.view(self.d_dtype) + out = out.reshape((nx, ) + self.d_shape) + return out diff --git a/shared/package-files/6f/6f3c5b62da1f8af191607df902783d49c9db36c54444df3eeae6f9f9e23e2c64/foo90.f90 b/shared/package-files/6f/6f3c5b62da1f8af191607df902783d49c9db36c54444df3eeae6f9f9e23e2c64/foo90.f90 new file mode 100644 index 0000000000000000000000000000000000000000..ba9249aa20f941dbf00f060ad5d7e8820745b0f4 --- /dev/null +++ b/shared/package-files/6f/6f3c5b62da1f8af191607df902783d49c9db36c54444df3eeae6f9f9e23e2c64/foo90.f90 @@ -0,0 +1,59 @@ +module f90_return_integer + contains + function t0(value) + integer :: value + integer :: t0 + t0 = value + end function t0 + function t1(value) + integer(kind=1) :: value + integer(kind=1) :: t1 + t1 = value + end function t1 + function t2(value) + integer(kind=2) :: value + integer(kind=2) :: t2 + t2 = value + end function t2 + function t4(value) + integer(kind=4) :: value + integer(kind=4) :: t4 + t4 = value + end function t4 + function t8(value) + integer(kind=8) :: value + integer(kind=8) :: t8 + t8 = value + end function t8 + + subroutine s0(t0,value) + integer :: value + integer :: t0 +!f2py intent(out) t0 + t0 = value + end subroutine s0 + subroutine s1(t1,value) + integer(kind=1) :: value + integer(kind=1) :: t1 +!f2py intent(out) t1 + t1 = value + end subroutine s1 + subroutine s2(t2,value) + integer(kind=2) :: value + integer(kind=2) :: t2 +!f2py intent(out) t2 + t2 = value + end subroutine s2 + subroutine s4(t4,value) + integer(kind=4) :: value + integer(kind=4) :: t4 +!f2py intent(out) t4 + t4 = value + end subroutine s4 + subroutine s8(t8,value) + integer(kind=8) :: value + integer(kind=8) :: t8 +!f2py intent(out) t8 + t8 = value + end subroutine s8 +end module f90_return_integer diff --git a/shared/package-files/6f/6f4110d5b307c08a393f92804bfc9e9c6dda2a724da89c4e1b505f7afa7ed1a7/depends.py b/shared/package-files/6f/6f4110d5b307c08a393f92804bfc9e9c6dda2a724da89c4e1b505f7afa7ed1a7/depends.py new file mode 100644 index 0000000000000000000000000000000000000000..180e82045926b7548529b3bb47c1e458b4a0bd82 --- /dev/null +++ b/shared/package-files/6f/6f4110d5b307c08a393f92804bfc9e9c6dda2a724da89c4e1b505f7afa7ed1a7/depends.py @@ -0,0 +1,178 @@ +import sys +import marshal +import contextlib +import dis + + +from . import _imp +from ._imp import find_module, PY_COMPILED, PY_FROZEN, PY_SOURCE +from .extern.packaging.version import Version + + +__all__ = ['Require', 'find_module', 'get_module_constant', 'extract_constant'] + + +class Require: + """A prerequisite to building or installing a distribution""" + + def __init__( + self, name, requested_version, module, homepage='', attribute=None, format=None + ): + if format is None and requested_version is not None: + format = Version + + if format is not None: + requested_version = format(requested_version) + if attribute is None: + attribute = '__version__' + + self.__dict__.update(locals()) + del self.self + + def full_name(self): + """Return full package/distribution name, w/version""" + if self.requested_version is not None: + return '%s-%s' % (self.name, self.requested_version) + return self.name + + def version_ok(self, version): + """Is 'version' sufficiently up-to-date?""" + return ( + self.attribute is None + or self.format is None + or str(version) != "unknown" + and self.format(version) >= self.requested_version + ) + + def get_version(self, paths=None, default="unknown"): + """Get version number of installed module, 'None', or 'default' + + Search 'paths' for module. If not found, return 'None'. If found, + return the extracted version attribute, or 'default' if no version + attribute was specified, or the value cannot be determined without + importing the module. The version is formatted according to the + requirement's version format (if any), unless it is 'None' or the + supplied 'default'. + """ + + if self.attribute is None: + try: + f, p, i = find_module(self.module, paths) + if f: + f.close() + return default + except ImportError: + return None + + v = get_module_constant(self.module, self.attribute, default, paths) + + if v is not None and v is not default and self.format is not None: + return self.format(v) + + return v + + def is_present(self, paths=None): + """Return true if dependency is present on 'paths'""" + return self.get_version(paths) is not None + + def is_current(self, paths=None): + """Return true if dependency is present and up-to-date on 'paths'""" + version = self.get_version(paths) + if version is None: + return False + return self.version_ok(str(version)) + + +def maybe_close(f): + @contextlib.contextmanager + def empty(): + yield + return + + if not f: + return empty() + + return contextlib.closing(f) + + +def get_module_constant(module, symbol, default=-1, paths=None): + """Find 'module' by searching 'paths', and extract 'symbol' + + Return 'None' if 'module' does not exist on 'paths', or it does not define + 'symbol'. If the module defines 'symbol' as a constant, return the + constant. Otherwise, return 'default'.""" + + try: + f, path, (suffix, mode, kind) = info = find_module(module, paths) + except ImportError: + # Module doesn't exist + return None + + with maybe_close(f): + if kind == PY_COMPILED: + f.read(8) # skip magic & date + code = marshal.load(f) + elif kind == PY_FROZEN: + code = _imp.get_frozen_object(module, paths) + elif kind == PY_SOURCE: + code = compile(f.read(), path, 'exec') + else: + # Not something we can parse; we'll have to import it. :( + imported = _imp.get_module(module, paths, info) + return getattr(imported, symbol, None) + + return extract_constant(code, symbol, default) + + +def extract_constant(code, symbol, default=-1): + """Extract the constant value of 'symbol' from 'code' + + If the name 'symbol' is bound to a constant value by the Python code + object 'code', return that value. If 'symbol' is bound to an expression, + return 'default'. Otherwise, return 'None'. + + Return value is based on the first assignment to 'symbol'. 'symbol' must + be a global, or at least a non-"fast" local in the code block. That is, + only 'STORE_NAME' and 'STORE_GLOBAL' opcodes are checked, and 'symbol' + must be present in 'code.co_names'. + """ + if symbol not in code.co_names: + # name's not there, can't possibly be an assignment + return None + + name_idx = list(code.co_names).index(symbol) + + STORE_NAME = 90 + STORE_GLOBAL = 97 + LOAD_CONST = 100 + + const = default + + for byte_code in dis.Bytecode(code): + op = byte_code.opcode + arg = byte_code.arg + + if op == LOAD_CONST: + const = code.co_consts[arg] + elif arg == name_idx and (op == STORE_NAME or op == STORE_GLOBAL): + return const + else: + const = default + + +def _update_globals(): + """ + Patch the globals to remove the objects not available on some platforms. + + XXX it'd be better to test assertions about bytecode instead. + """ + + if not sys.platform.startswith('java') and sys.platform != 'cli': + return + incompatible = 'extract_constant', 'get_module_constant' + for name in incompatible: + del globals()[name] + __all__.remove(name) + + +_update_globals() diff --git a/shared/package-files/6f/6f4156fb39be9bd8ad07e6649bbc3ff1cf725fd58619383eaff37f037d8f006b/entry_points.txt b/shared/package-files/6f/6f4156fb39be9bd8ad07e6649bbc3ff1cf725fd58619383eaff37f037d8f006b/entry_points.txt new file mode 100644 index 0000000000000000000000000000000000000000..2170e9f4285422f4f95b05fa682a9a479c19bf24 --- /dev/null +++ b/shared/package-files/6f/6f4156fb39be9bd8ad07e6649bbc3ff1cf725fd58619383eaff37f037d8f006b/entry_points.txt @@ -0,0 +1,2 @@ +[networkx.backends] +nx-loopback = networkx.classes.tests.dispatch_interface:dispatcher diff --git a/shared/package-files/6f/6f464b889157f10f73d3a62354dfd6e7635d2bd09357d7a8b2128d7cd390df1e/binstar.py b/shared/package-files/6f/6f464b889157f10f73d3a62354dfd6e7635d2bd09357d7a8b2128d7cd390df1e/binstar.py new file mode 100644 index 0000000000000000000000000000000000000000..e7a76b7acab5bd6b848852e795475de9afdedbe1 --- /dev/null +++ b/shared/package-files/6f/6f464b889157f10f73d3a62354dfd6e7635d2bd09357d7a8b2128d7cd390df1e/binstar.py @@ -0,0 +1,117 @@ +# Copyright (C) 2012 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause +from __future__ import annotations + +import re +from functools import cached_property +from types import ModuleType + +from conda.exceptions import EnvironmentFileNotDownloaded +from conda.models.version import normalized_version + +from ..env import Environment, from_yaml + +ENVIRONMENT_TYPE = "env" + + +class BinstarSpec: + """ + spec = BinstarSpec('darth/deathstar') + spec.can_handle() # => True / False + spec.environment # => YAML string + spec.msg # => Error messages + :raises: EnvironmentFileNotDownloaded + """ + + msg = None + + def __init__(self, name=None): + self.name = name + + def can_handle(self) -> bool: + """ + Validates loader can process environment definition. + :return: True or False + """ + # TODO: log information about trying to find the package in binstar.org + if self.valid_name(): + if not self.binstar: + self.msg = ( + "Anaconda Client is required to interact with anaconda.org or an " + "Anaconda API. Please run `conda install anaconda-client -n base`." + ) + return False + + return self.package is not None and self.valid_package() + return False + + def valid_name(self) -> bool: + """ + Validates name + :return: True or False + """ + if re.match("^(.+)/(.+)$", str(self.name)) is not None: + return True + elif self.name is None: + self.msg = "Can't process without a name" + else: + self.msg = f"Invalid name {self.name!r}, try the format: user/package" + return False + + def valid_package(self) -> bool: + """ + Returns True if package has an environment file + :return: True or False + """ + return len(self.file_data) > 0 + + @cached_property + def binstar(self) -> ModuleType: + try: + from binstar_client.utils import get_server_api + + return get_server_api() + except ImportError: + pass + + @cached_property + def file_data(self) -> list[dict[str, str]]: + return [ + data for data in self.package["files"] if data["type"] == ENVIRONMENT_TYPE + ] + + @cached_property + def environment(self) -> Environment: + versions = [ + {"normalized": normalized_version(d["version"]), "original": d["version"]} + for d in self.file_data + ] + latest_version = max(versions, key=lambda x: x["normalized"])["original"] + file_data = [ + data for data in self.package["files"] if data["version"] == latest_version + ] + req = self.binstar.download( + self.username, self.packagename, latest_version, file_data[0]["basename"] + ) + if req is None: + raise EnvironmentFileNotDownloaded(self.username, self.packagename) + return from_yaml(req.text) + + @cached_property + def package(self): + try: + return self.binstar.package(self.username, self.packagename) + except (IndexError, AttributeError): + self.msg = ( + "{} was not found on anaconda.org.\n" + "You may need to be logged in. Try running:\n" + " anaconda login".format(self.name) + ) + + @cached_property + def username(self) -> str: + return self.name.split("/", 1)[0] + + @cached_property + def packagename(self) -> str: + return self.name.split("/", 1)[1] diff --git a/shared/package-files/6f/6f46ebbcaeb141e7b3a11bae8e611c24dc36bfa6df0122ccdc5498f6ee5d3128/array_float32_pointer_2d.sav b/shared/package-files/6f/6f46ebbcaeb141e7b3a11bae8e611c24dc36bfa6df0122ccdc5498f6ee5d3128/array_float32_pointer_2d.sav new file mode 100644 index 0000000000000000000000000000000000000000..dd3504f0ecfaed178ace02e1a8a84650111c3936 Binary files /dev/null and b/shared/package-files/6f/6f46ebbcaeb141e7b3a11bae8e611c24dc36bfa6df0122ccdc5498f6ee5d3128/array_float32_pointer_2d.sav differ diff --git a/shared/package-files/6f/6f478a19e355fbe43d4b5e540e36e5c76217579c04465a99d08e2e24edec6952/IListRef_inl.h b/shared/package-files/6f/6f478a19e355fbe43d4b5e540e36e5c76217579c04465a99d08e2e24edec6952/IListRef_inl.h new file mode 100644 index 0000000000000000000000000000000000000000..534272f69b64fd6ecb5d6a562ee2a5fda5691e12 --- /dev/null +++ b/shared/package-files/6f/6f478a19e355fbe43d4b5e540e36e5c76217579c04465a99d08e2e24edec6952/IListRef_inl.h @@ -0,0 +1,201 @@ +#pragma once + +#include +#include + +namespace at { +class Tensor; +class OptionalTensorRef; +} + +namespace c10 { +namespace detail { + +/* + * Specializations of `IListRefTagImplBase` that implement the default + * implementation for `IListRefTag::Unboxed`. + */ +template +class IListRefTagImplBase { + public: + using elem_type = ListElemT; + using list_type = ArrayRef; + + /* + * These `unwrap` static methods unwraps the inner containers out + * of `IListRef` (and `IListRefIterator`). They are required when + * the macro `TORCH_ILISTREF_UNWRAP` is called. + */ + static const list_type& unwrap(const IListRef& ilist) { + return ilist.payload_.unboxed; + } + + static typename list_type::const_iterator& unwrap(IListRefIterator& it) { + return it.payload_.unboxed_iterator; + } + + static const typename list_type::const_iterator& unwrap( + const IListRefIterator& it) { + return it.payload_.unboxed_iterator; + } + + /* + * We have these function (besides the `unwrap`s above) because the + * implementation for both `IListRef::operator[]` and `IListRefIterator::operator*` + * weren't syntatically equal for the existing tags at the time + * (`Unboxed` and `Boxed`). + */ + static IListRefConstRef front(const list_type& lst) { + return lst.front(); + } + + static IListRefConstRef iterator_get( + const typename list_type::const_iterator& it) { + return *it; + } +}; + +/* + * Specializations of `IListRefTagImplBase` that implement the default + * implementation for `IListRefTag::Boxed`. + */ +template +class IListRefTagImplBase { + public: + using elem_type = ListElemT; + using list_type = List; + + static const list_type& unwrap(const IListRef& ilist) { + return *ilist.payload_.boxed; + } + + static typename list_type::const_iterator& unwrap(IListRefIterator& it) { + return it.payload_.boxed_iterator; + } + + static const typename list_type::const_iterator& unwrap( + const IListRefIterator& it) { + return it.payload_.boxed_iterator; + } + + static IListRefConstRef front(const list_type& lst) { + return lst[0]; + } + + static IListRefConstRef iterator_get( + const typename list_type::const_iterator& it) { + return (*it).get().toTensor(); + } +}; + +/* + * Specializations of `IListRefTagImplBase` that implement the default + * implementation for `IListRefTag::Materialized`. + */ +template +class IListRefTagImplBase> { + public: + using elem_type = MaterializedIListRefElem; + using list_type = MaterializedIListRef; + + static const list_type& unwrap(const IListRef& ilist) { + return *ilist.payload_.materialized; + } + + static typename list_type::const_iterator& unwrap(IListRefIterator& it) { + return it.payload_.materialized_iterator; + } + + static const typename list_type::const_iterator& unwrap( + const IListRefIterator& it) { + return it.payload_.materialized_iterator; + } + + static IListRefConstRef front(const list_type& lst) { + return lst[0]; + } + + static IListRefConstRef iterator_get( + const typename list_type::const_iterator& it) { + return *it; + } +}; + +/* + * [Note: ITensorListRef] + * Specializations necessary for `IListRef` type. + * + * Since the default implementations are usually done with supporting + * `Tensor` in mind, we only have to inherit from the base implementations. + */ +template <> +class IListRefTagImpl + : public IListRefTagImplBase {}; + +template <> +class IListRefTagImpl + : public IListRefTagImplBase {}; + +template <> +class IListRefTagImpl + : public IListRefTagImplBase< + IListRefTag::Materialized, + at::Tensor, + MaterializedIListRefElem> {}; + +/* + * [Note: IOptTensorListRef] + * Specializations necessary for `IListRef` type. + * + * We can't get an `at::OptionalTensorRef` directly from an instance of + * `List>` (the type that corresponds to the boxed world). + * + * So, the default implementation won't help us. Thus, we have to implement + * this method ourselves. + */ +template <> +class IListRefTagImpl + : public IListRefTagImplBase {}; + +template <> +class IListRefTagImpl + : public IListRefTagImplBase> { + + public: + /* + * Given an instance of the types corresponding to the `Boxed` tag, we override + * the default implementation, so that we can return a `at::OptionalTensorRef`. + */ + static IListRefConstRef iterator_get( + const typename list_type::const_iterator& it) { + const auto& ivalue = (*it).get(); + if (!ivalue.isNone()) { + const auto& tensor = ivalue.toTensor(); + return (tensor.defined()) ? tensor : at::OptionalTensorRef{}; + } + return {}; + } +}; + +template <> +class IListRefTagImpl + : public IListRefTagImplBase< + IListRefTag::Materialized, + at::OptionalTensorRef, + MaterializedIListRefElem> {}; + +} // namespace detail +} // namespace c10 + +namespace at { + +// [Note: ITensorListRef] +using ITensorListRef = c10::IListRef; +using ITensorListRefIterator = c10::IListRefIterator; +using MaterializedITensorListRef = c10::detail::MaterializedIListRef; +// [Note: IOptTensorListRef] +using IOptTensorListRef = c10::IListRef; +using IOptTensorListRefIterator = c10::IListRefIterator; +using MaterializedIOptTensorListRef = c10::detail::MaterializedIListRef; + +} // namespace at diff --git a/shared/package-files/6f/6f4cd169446d2f4a5a3858711a00787e58771dcce33d25fa810fc643338eb47b/SmallVector.h b/shared/package-files/6f/6f4cd169446d2f4a5a3858711a00787e58771dcce33d25fa810fc643338eb47b/SmallVector.h new file mode 100644 index 0000000000000000000000000000000000000000..fabfa44190c727c9fdf9aa034d042559da1b621d --- /dev/null +++ b/shared/package-files/6f/6f4cd169446d2f4a5a3858711a00787e58771dcce33d25fa810fc643338eb47b/SmallVector.h @@ -0,0 +1,2 @@ +#pragma once +#include diff --git a/shared/package-files/6f/6f4db22bcc248dae979fcd643c3f3fbb3c0bd00ba2588c4574a6a89ed8ce53d7/adaptive_avg_pool3d_backward_ops.h b/shared/package-files/6f/6f4db22bcc248dae979fcd643c3f3fbb3c0bd00ba2588c4574a6a89ed8ce53d7/adaptive_avg_pool3d_backward_ops.h new file mode 100644 index 0000000000000000000000000000000000000000..5f528f214f115d06ad722f21f0fdf36aba93f4ee --- /dev/null +++ b/shared/package-files/6f/6f4db22bcc248dae979fcd643c3f3fbb3c0bd00ba2588c4574a6a89ed8ce53d7/adaptive_avg_pool3d_backward_ops.h @@ -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 adaptive_avg_pool3d_backward_grad_input { + 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::adaptive_avg_pool3d_backward") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "grad_input") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "adaptive_avg_pool3d_backward.grad_input(Tensor grad_output, Tensor self, *, Tensor(a!) grad_input) -> Tensor(a!)") + static at::Tensor & call(const at::Tensor & grad_output, const at::Tensor & self, at::Tensor & grad_input); + static at::Tensor & redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & self, at::Tensor & grad_input); +}; + +}} // namespace at::_ops diff --git a/shared/package-files/6f/6f57d7088d3f06e59b9c0e77e8f66b5cc3147c6d5e8e71d7d5fa50198fb986a2/test_beamsearch.py b/shared/package-files/6f/6f57d7088d3f06e59b9c0e77e8f66b5cc3147c6d5e8e71d7d5fa50198fb986a2/test_beamsearch.py new file mode 100644 index 0000000000000000000000000000000000000000..8945b418457b0c5c31b956f40a9c4ded2a439d9d --- /dev/null +++ b/shared/package-files/6f/6f57d7088d3f06e59b9c0e77e8f66b5cc3147c6d5e8e71d7d5fa50198fb986a2/test_beamsearch.py @@ -0,0 +1,32 @@ +"""Unit tests for the beam search functions.""" + +import networkx as nx + + +def identity(x): + return x + + +class TestBeamSearch: + """Unit tests for the beam search function.""" + + def test_narrow(self): + """Tests that a narrow beam width may cause an incomplete search.""" + # In this search, we enqueue only the neighbor 3 at the first + # step, then only the neighbor 2 at the second step. Once at + # node 2, the search chooses node 3, since it has a higher value + # that node 1, but node 3 has already been visited, so the + # search terminates. + G = nx.cycle_graph(4) + edges = nx.bfs_beam_edges(G, 0, identity, width=1) + assert list(edges) == [(0, 3), (3, 2)] + + def test_wide(self): + G = nx.cycle_graph(4) + edges = nx.bfs_beam_edges(G, 0, identity, width=2) + assert list(edges) == [(0, 3), (0, 1), (3, 2)] + + def test_width_none(self): + G = nx.cycle_graph(4) + edges = nx.bfs_beam_edges(G, 0, identity, width=None) + assert list(edges) == [(0, 3), (0, 1), (3, 2)] diff --git a/shared/package-files/6f/6f57e38842380a227339d8edc15af008eff45665eaa163309a3f8882ed516708/geometric_meta_dispatch.h b/shared/package-files/6f/6f57e38842380a227339d8edc15af008eff45665eaa163309a3f8882ed516708/geometric_meta_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..64aca7ca8b18cb7da1e546c23979155b42500299 --- /dev/null +++ b/shared/package-files/6f/6f57e38842380a227339d8edc15af008eff45665eaa163309a3f8882ed516708/geometric_meta_dispatch.h @@ -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 & geometric_(at::Tensor & self, double p, c10::optional generator=c10::nullopt); + +} // namespace meta +} // namespace at diff --git a/shared/package-files/6f/6f5a1adaa0dd42e434b25bc7a6c0c6ae69a849344a19af8ba96d4a4799d522b8/__init__.py b/shared/package-files/6f/6f5a1adaa0dd42e434b25bc7a6c0c6ae69a849344a19af8ba96d4a4799d522b8/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..4dcc6f0672669f0c82abe0b7cfbd35f8434f1125 --- /dev/null +++ b/shared/package-files/6f/6f5a1adaa0dd42e434b25bc7a6c0c6ae69a849344a19af8ba96d4a4799d522b8/__init__.py @@ -0,0 +1,40 @@ +""" +This module contains the one-parameter exponential families used +for fitting GLMs and GAMs. + +These families are described in + + P. McCullagh and J. A. Nelder. "Generalized linear models." + Monographs on Statistics and Applied Probability. + Chapman & Hall, London, 1983. + +""" + +from statsmodels.genmod.families import links +from statsmodels.tools._test_runner import PytestTester + +from .family import ( + Binomial, + Family, + Gamma, + Gaussian, + InverseGaussian, + NegativeBinomial, + Poisson, + Tweedie, +) + +__all__ = [ + "Binomial", + "Family", + "Gamma", + "Gaussian", + "InverseGaussian", + "NegativeBinomial", + "Poisson", + "Tweedie", + "links", + "test", +] + +test = PytestTester() diff --git a/shared/package-files/6f/6f606e06786a67ced7b910ce7c795352b734131d375a4fcbba9433ae73aea225/add.h b/shared/package-files/6f/6f606e06786a67ced7b910ce7c795352b734131d375a4fcbba9433ae73aea225/add.h new file mode 100644 index 0000000000000000000000000000000000000000..80a6df08bf53e66e67c2b5ddbbb72fe24b7781e2 --- /dev/null +++ b/shared/package-files/6f/6f606e06786a67ced7b910ce7c795352b734131d375a4fcbba9433ae73aea225/add.h @@ -0,0 +1,53 @@ +#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::add.Tensor(Tensor self, Tensor other, *, Scalar alpha=1) -> Tensor +inline at::Tensor add(const at::Tensor & self, const at::Tensor & other, const at::Scalar & alpha=1) { + return at::_ops::add_Tensor::call(self, other, alpha); +} + +// aten::add.out(Tensor self, Tensor other, *, Scalar alpha=1, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & add_out(at::Tensor & out, const at::Tensor & self, const at::Tensor & other, const at::Scalar & alpha=1) { + return at::_ops::add_out::call(self, other, alpha, out); +} +// aten::add.out(Tensor self, Tensor other, *, Scalar alpha=1, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & add_outf(const at::Tensor & self, const at::Tensor & other, const at::Scalar & alpha, at::Tensor & out) { + return at::_ops::add_out::call(self, other, alpha, out); +} + +// aten::add.Scalar(Tensor self, Scalar other, Scalar alpha=1) -> Tensor +inline at::Tensor add(const at::Tensor & self, const at::Scalar & other, const at::Scalar & alpha=1) { + return at::_ops::add_Scalar::call(self, other, alpha); +} + +// aten::add.Scalar_out(Tensor self, Scalar other, Scalar alpha=1, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & add_out(at::Tensor & out, const at::Tensor & self, const at::Scalar & other, const at::Scalar & alpha=1) { + return at::_ops::add_Scalar_out::call(self, other, alpha, out); +} +// aten::add.Scalar_out(Tensor self, Scalar other, Scalar alpha=1, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & add_outf(const at::Tensor & self, const at::Scalar & other, const at::Scalar & alpha, at::Tensor & out) { + return at::_ops::add_Scalar_out::call(self, other, alpha, out); +} + +} diff --git a/shared/package-files/6f/6f63131b54d5c6addd93601205d1cbbb9bb12c19d3e25a6049eafc93dbae42ae/omniglot.py b/shared/package-files/6f/6f63131b54d5c6addd93601205d1cbbb9bb12c19d3e25a6049eafc93dbae42ae/omniglot.py new file mode 100644 index 0000000000000000000000000000000000000000..c02cf91234aaf5e4380c6890a79d8958321d7043 --- /dev/null +++ b/shared/package-files/6f/6f63131b54d5c6addd93601205d1cbbb9bb12c19d3e25a6049eafc93dbae42ae/omniglot.py @@ -0,0 +1,103 @@ +from os.path import join +from pathlib import Path +from typing import Any, Callable, List, Optional, Tuple, Union + +from PIL import Image + +from .utils import check_integrity, download_and_extract_archive, list_dir, list_files +from .vision import VisionDataset + + +class Omniglot(VisionDataset): + """`Omniglot `_ Dataset. + + Args: + root (str or ``pathlib.Path``): Root directory of dataset where directory + ``omniglot-py`` exists. + background (bool, optional): If True, creates dataset from the "background" set, otherwise + creates from the "evaluation" set. This terminology is defined by the authors. + 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 zip files from the internet and + puts it in root directory. If the zip files are already downloaded, they are not + downloaded again. + """ + + folder = "omniglot-py" + download_url_prefix = "https://raw.githubusercontent.com/brendenlake/omniglot/master/python" + zips_md5 = { + "images_background": "68d2efa1b9178cc56df9314c21c6e718", + "images_evaluation": "6b91aef0f799c5bb55b94e3f2daec811", + } + + def __init__( + self, + root: Union[str, Path], + background: bool = True, + transform: Optional[Callable] = None, + target_transform: Optional[Callable] = None, + download: bool = False, + ) -> None: + super().__init__(join(root, self.folder), transform=transform, target_transform=target_transform) + self.background = background + + 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.target_folder = join(self.root, self._get_target_folder()) + self._alphabets = list_dir(self.target_folder) + self._characters: List[str] = sum( + ([join(a, c) for c in list_dir(join(self.target_folder, a))] for a in self._alphabets), [] + ) + self._character_images = [ + [(image, idx) for image in list_files(join(self.target_folder, character), ".png")] + for idx, character in enumerate(self._characters) + ] + self._flat_character_images: List[Tuple[str, int]] = sum(self._character_images, []) + + def __len__(self) -> int: + return len(self._flat_character_images) + + def __getitem__(self, index: int) -> Tuple[Any, Any]: + """ + Args: + index (int): Index + + Returns: + tuple: (image, target) where target is index of the target character class. + """ + image_name, character_class = self._flat_character_images[index] + image_path = join(self.target_folder, self._characters[character_class], image_name) + image = Image.open(image_path, mode="r").convert("L") + + if self.transform: + image = self.transform(image) + + if self.target_transform: + character_class = self.target_transform(character_class) + + return image, character_class + + def _check_integrity(self) -> bool: + zip_filename = self._get_target_folder() + if not check_integrity(join(self.root, zip_filename + ".zip"), self.zips_md5[zip_filename]): + return False + return True + + def download(self) -> None: + if self._check_integrity(): + print("Files already downloaded and verified") + return + + filename = self._get_target_folder() + zip_filename = filename + ".zip" + url = self.download_url_prefix + "/" + zip_filename + download_and_extract_archive(url, self.root, filename=zip_filename, md5=self.zips_md5[filename]) + + def _get_target_folder(self) -> str: + return "images_background" if self.background else "images_evaluation" diff --git a/shared/package-files/6f/6f6d0b25c05b6d01d0e214edfb687ffc322e93cb8792c0f86550f972c7cce374/python_functions.cpp b/shared/package-files/6f/6f6d0b25c05b6d01d0e214edfb687ffc322e93cb8792c0f86550f972c7cce374/python_functions.cpp new file mode 100644 index 0000000000000000000000000000000000000000..1522d6cd0f5a2a1fc0188bf9d6d0d59fe1b27d85 --- /dev/null +++ b/shared/package-files/6f/6f6d0b25c05b6d01d0e214edfb687ffc322e93cb8792c0f86550f972c7cce374/python_functions.cpp @@ -0,0 +1,37 @@ +#include + +// ${generated_comment} + +#include +#include + +#include +#include "torch/csrc/autograd/generated/Functions.h" +#include "torch/csrc/autograd/python_cpp_function.h" +#include +#include +#include +#include +#include + +// NOTE: See [Sharded File] comment in VariableType + +namespace torch::autograd::generated { + +template +static void addClass(PyObject* module, PyTypeObject& type, const char* name, + PyGetSetDef* function_properties=NULL, PyMethodDef* function_methods=NULL) +{ + _initFunctionPyTypeObject(type, name, function_properties, function_methods); + Py_INCREF(&type); + PyModule_AddObject(module, name, (PyObject*)&type); + registerCppFunction(typeid(C), &type); +} + +${py_function_props_and_getters} + +void initialize_autogenerated_functions${shard_id}(PyObject* module) { + ${py_function_initializers} +} + +} // namespace torch::autograd::generated diff --git a/shared/package-files/6f/6f702e43b8e1f7377a132ca38d04fb055dc32eabfa0950ef19f14c0f01f065f8/elu_backward_meta.h b/shared/package-files/6f/6f702e43b8e1f7377a132ca38d04fb055dc32eabfa0950ef19f14c0f01f065f8/elu_backward_meta.h new file mode 100644 index 0000000000000000000000000000000000000000..0e30e0b28555fc414b50d0a330ecf744385d8ab8 --- /dev/null +++ b/shared/package-files/6f/6f702e43b8e1f7377a132ca38d04fb055dc32eabfa0950ef19f14c0f01f065f8/elu_backward_meta.h @@ -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_elu_backward : public TensorIteratorBase { + + + void meta(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); +}; + +} // namespace native +} // namespace at diff --git a/shared/package-files/6f/6f7377651f44e602d24161a06aa85c45f46ce0a056e869e791561e0237710bfa/test_attracting.py b/shared/package-files/6f/6f7377651f44e602d24161a06aa85c45f46ce0a056e869e791561e0237710bfa/test_attracting.py new file mode 100644 index 0000000000000000000000000000000000000000..336c40ddc27162c1c2f5cc245f4fc840311506b5 --- /dev/null +++ b/shared/package-files/6f/6f7377651f44e602d24161a06aa85c45f46ce0a056e869e791561e0237710bfa/test_attracting.py @@ -0,0 +1,70 @@ +import pytest + +import networkx as nx +from networkx import NetworkXNotImplemented + + +class TestAttractingComponents: + @classmethod + def setup_class(cls): + cls.G1 = nx.DiGraph() + cls.G1.add_edges_from( + [ + (5, 11), + (11, 2), + (11, 9), + (11, 10), + (7, 11), + (7, 8), + (8, 9), + (3, 8), + (3, 10), + ] + ) + cls.G2 = nx.DiGraph() + cls.G2.add_edges_from([(0, 1), (0, 2), (1, 1), (1, 2), (2, 1)]) + + cls.G3 = nx.DiGraph() + cls.G3.add_edges_from([(0, 1), (1, 2), (2, 1), (0, 3), (3, 4), (4, 3)]) + + cls.G4 = nx.DiGraph() + + def test_attracting_components(self): + ac = list(nx.attracting_components(self.G1)) + assert {2} in ac + assert {9} in ac + assert {10} in ac + + ac = list(nx.attracting_components(self.G2)) + ac = [tuple(sorted(x)) for x in ac] + assert ac == [(1, 2)] + + ac = list(nx.attracting_components(self.G3)) + ac = [tuple(sorted(x)) for x in ac] + assert (1, 2) in ac + assert (3, 4) in ac + assert len(ac) == 2 + + ac = list(nx.attracting_components(self.G4)) + assert ac == [] + + def test_number_attacting_components(self): + assert nx.number_attracting_components(self.G1) == 3 + assert nx.number_attracting_components(self.G2) == 1 + assert nx.number_attracting_components(self.G3) == 2 + assert nx.number_attracting_components(self.G4) == 0 + + def test_is_attracting_component(self): + assert not nx.is_attracting_component(self.G1) + assert not nx.is_attracting_component(self.G2) + assert not nx.is_attracting_component(self.G3) + g2 = self.G3.subgraph([1, 2]) + assert nx.is_attracting_component(g2) + assert not nx.is_attracting_component(self.G4) + + def test_connected_raise(self): + G = nx.Graph() + with pytest.raises(NetworkXNotImplemented): + next(nx.attracting_components(G)) + pytest.raises(NetworkXNotImplemented, nx.number_attracting_components, G) + pytest.raises(NetworkXNotImplemented, nx.is_attracting_component, G) diff --git a/shared/package-files/6f/6f76da7df256a8acdd34af4d6f1c73a2c70f29fe3f84bbd745ebec7218c51c70/mintty-direct b/shared/package-files/6f/6f76da7df256a8acdd34af4d6f1c73a2c70f29fe3f84bbd745ebec7218c51c70/mintty-direct new file mode 100644 index 0000000000000000000000000000000000000000..5fcfbd20f86440942ef1a1712c602b3510537d1b Binary files /dev/null and b/shared/package-files/6f/6f76da7df256a8acdd34af4d6f1c73a2c70f29fe3f84bbd745ebec7218c51c70/mintty-direct differ diff --git a/shared/package-files/6f/6f78a7f681dfabc3e6d0179579c6ba924da92694f804576f1fe907c0bf6bbb47/launch.py b/shared/package-files/6f/6f78a7f681dfabc3e6d0179579c6ba924da92694f804576f1fe907c0bf6bbb47/launch.py new file mode 100644 index 0000000000000000000000000000000000000000..7293909cb78494fb8521edcb1d082edeacf3a406 --- /dev/null +++ b/shared/package-files/6f/6f78a7f681dfabc3e6d0179579c6ba924da92694f804576f1fe907c0bf6bbb47/launch.py @@ -0,0 +1,561 @@ +#!/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. + +r""" +This module provides similar functionality as ``torch.distributed.launch``, +with the following additional functionalities: + +1. Worker failures are handled gracefully by restarting all workers. + +2. Worker ``RANK`` and ``WORLD_SIZE`` are assigned automatically. + +3. Number of nodes is allowed to change between min and max sizes (elasticity). + +**Usage:** + +1. Single-node multi-worker (with sidecar etcd server) + +:: + + >>> python -m torchelastic.distributed.launch + --standalone + --nnodes=1 + --nproc_per_node=$NUM_TRAINERS + YOUR_TRAINING_SCRIPT.py (--arg1 ... train script args...) + +2. Fault tolerant (fixed sized number of workers, no elasticity).: + +:: + + >>> python -m torchelastic.distributed.launch + --nnodes=$NUM_NODES + --nproc_per_node=$NUM_TRAINERS + --rdzv_id=$JOB_ID + --rdzv_backend=etcd + --rdzv_endpoint=$ETCD_HOST:$ETCD_PORT + YOUR_TRAINING_SCRIPT.py (--arg1 ... train script args...) + +3. Elastic (``min=1``, ``max=4``): + +:: + + >>> python -m torchelastic.distributed.launch + --nnodes=1:4 + --nproc_per_node=$NUM_TRAINERS + --rdzv_id=$JOB_ID + --rdzv_backend=etcd + --rdzv_endpoint=$ETCD_HOST:$ETCD_PORT + YOUR_TRAINING_SCRIPT.py (--arg1 ... train script args...) + +**Note on rendezvous backend**: + +For multi-node training you need to specify: + +1. ``--rdzv_id``: a unique job id (shared by all nodes participating in the job) +2. ``--rdzv_backend``: an implementation of ``torchelastic.rendevous.RendezvousHandler`` +3. ``--rdzv_endpoint``: ``host:port``-style endpoint where the rdzv backend is running. + +Currently only ``etcd`` rdzv backend is supported out of the box. +To use ``etcd``, setup an etcd server with the ``v2`` api enabled +(e.g. ``--enable-v2``). + +.. warning:: ``EtcdRendezvous`` uses etcd api v2. You MUST enable the v2 + api on the etcd server. Our tests use etcd v3.4.3. + +**Definitions:** + +1. ``Node`` - Physical instance or container. + Maps to the unit that the job manager works with. + +2. ``Worker`` - A worker in the context of distributed training. + +3. ``Worker Group`` - Workers that execute the same function (e.g. trainers) + +4. ``Local Worker Group`` - Subset of the workers in the + worker group running on the same Node + +5. ``RANK`` - rank of the worker within a worker group. + +6. ``WORLD_SIZE`` - total number of workers in a worker group. + +7. ``LOCAL_RANK`` - rank of the worker within a local worker group + +8. ``LOCAL_WORLD_SIZE`` - size of the local worker group + +9. ``rdzv_id`` - user defined id that uniquely identifies the worker group + for a job. This id is used by each node to join as a member of a particular + worker group. + +9. ``rdzv_backend`` - the backend store of rendezvous (e.g. etcd). This is + typically a strongly consistent key-value store. + +10. ``rdzv_endpoint`` - rdzv backend server endpoint in ``host:port`` format. + +A ``Node`` runs ``LOCAL_WORLD_SIZE`` workers which comprise a ``LocalWorkerGroup``. +The union of all ``LocalWorkerGroups`` in the nodes in the job comprise the +``WorkerGroup``. + +**Environment Variables:** + +The following environment variables are made available to you in your +script: + +1. ``LOCAL_RANK`` - local rank + +2. ``RANK`` - global rank + +3. ``GROUP_RANK`` - rank of the worker group. A number between 0 - ``max_nnodes``. + When running a single worker group per node, this is the rank of the node. + +4. ``ROLE_RANK`` - the rank of the worker across all the workers tha have the same + role. The role of the worker is specified in the ``WorkerSpec``. + +5. ``LOCAL_WORLD_SIZE`` - local world size (e.g. number of workers running locally). + Equal to ``--nproc_per_node`` specified on ``torchelastic.distributed.launch``. + +6. ``WORLD_SIZE`` - world size (total number of workers in the job). + +7. ``ROLE_WORLD_SIZE`` - the total number of workers that was launched with the same + role specified in ``WorkerSpec``. + +8. ``MASTER_ADDR`` - fqdn of the host that is running worker with rank 0. + Used to initialize torch distributed backend. + +9. ``MASTER_PORT`` - port on the ``MASTER_ADDR`` that can be used to + host the tcp ``c10d`` store. + +10. ``TORCHELASTIC_RESTART_COUNT`` - number of worker group restarts so far. + +11. ``TORCHELASTIC_MAX_RESTARTS`` - configured max number of restarts. + +12. ``TORCHELASTIC_RUN_ID`` - equal to rdzv run_id (e.g. unique job id). + +**Deployment:** + +1. Start the rdzv backend server and get the endpoint + (to be passed as ``--rdzv_endpoint`` to the launcher script) + +2. Single-node multi-worker - start the launcher on the host to start + the agent process which creates and monitors a local worker group. + +3. Multi-node multi-worker - Start the launcher with the same arguments + on all the nodes participating in training. + +When using a job/cluster manager the entry point command to the multi-node +job is invoking this launcher. + +**Failure Modes:** + +1. Worker failure - For a training job with ``n`` workers, if ``k <= n`` workers fail + all workers are stopped and restarted up to ``max_restarts``. + +2. Agent failure - An agent failure results in local worker group failure, + it is up to the job manager to fail the entire job (gang semantics) or attempt + to replace the node. Both behaviors are supported by the agent. + +3. Node failure - Same as agent failure. + +**Membership Changes:** + +1. Node departure (scale-down) - agent is notified of the departure, + all existing workers are stopped, a new ``Worker Group`` is formed and all + workers are started with a new ``RANK`` and ``WORLD_SIZE``. + +2. Node arrival (scale-up) - the new node is admitted to the job, + all existing workers are stopped, a new ``Worker Group`` is formed and all + workers are started with a new ``RANK`` and ``WORLD_SIZE``. + + +**Important Notices:** + +1. All the items in the important notices section of ``torch.distributed.launch`` + apply to this module as well + +2. The environment variables necessary to initialize a torch process group + are provided to you by this module, no need for you to pass ``RANK`` manually. + To initialize a process group in your training script, simply run + +:: + + >>> import torch.distributed as dist + >>> dist.init_process_group(backend="gloo|nccl") + +3. On failures or membership changes ALL surviving workers are killed + immediately. Make sure to checkpoint your progress. The frequency of + checkpoints should depend on your job's tolerance for lost work. + +4. This module only supports homogeneous ``LOCAL_WORLD_SIZE``. That is, + it is assumed that all nodes run the same number of local workers (per role). + +5. ``RANK`` is NOT stable. Between restarts, the local workers on a node + can be assgined a different range of ranks than before. NEVER hard code + any assumptions about the stable-ness of ranks or some correlation between + ``RANK`` and ``LOCAL_RANK``. + +6. When using elasticity (``min_size != max_size``) DO NOT hard code + assumptions about ``WORLD_SIZE`` as the world size can change as + nodes are allowed to leave and join. + +7. It is recommended your script have the following structure + +:: + + def main(): + load_checkpoint(checkpoint_path) + initialize() + train() + + def train(): + for batch in iter(dataset): + train_step(batch) + + if should_checkpoint: + save_checkpoint(checkpoint_path) +""" +import logging +import os +import sys +import uuid +from argparse import REMAINDER, ArgumentParser + +import torch +import torchelastic.rendezvous.registry as rdzv_registry +from torchelastic import metrics, events +from torchelastic.agent.server.api import WorkerSpec, WorkerState +from torchelastic.agent.server.local_elastic_agent import LocalElasticAgent +from torchelastic.distributed.argparse_util import check_env, env +from torchelastic.multiprocessing import Std +from torchelastic.multiprocessing.errors import ChildFailedError, record +from torchelastic.rendezvous import RendezvousParameters +from torchelastic.rendezvous.etcd_server import EtcdServer +from torchelastic.rendezvous.utils import _parse_rendezvous_config +from torchelastic.utils.logging import get_logger + + +log = get_logger() + + +def parse_args(args): + """ + Helper function parsing the command line options. + """ + + parser = ArgumentParser(description="torchelastic elastic training launcher") + + # Arguments for the launch helper + # worker/node size related arguments + parser.add_argument( + "--nnodes", + action=env, + type=str, + default="1:1", + help="number of nodes or MIN_NODES:MAX_NODES", + ) + parser.add_argument( + "--nproc_per_node", + action=env, + type=str, + default="auto", + help="number of workers per node, supported values: [auto, cpu, gpu, int]", + ) + + # rendezvous related arguments + parser.add_argument( + "--rdzv_backend", + action=env, + type=str, + default="etcd", + help="rendezvous backend", + ) + parser.add_argument( + "--rdzv_endpoint", + action=env, + type=str, + default="", + help="rendezvous backend server host:port", + ) + parser.add_argument("--rdzv_id", action=env, type=str, help="user defined group id") + parser.add_argument( + "--rdzv_conf", + action=env, + type=str, + default="", + help="additional rdzv configuration (conf1=v1,conf2=v2,...)", + ) + + # sidecar embed rdzv backend that defaults to etcd + parser.add_argument( + "--standalone", + action=check_env, + help="starts a local, standalone rdzv backend that is represented by" + " etcd server on a random free port" + "using the etcd binary specified in TORCHELASTIC_ETCD_BINARY_PATH" + " env var or the one found in PATH." + " Useful when launching single-node, multi-worker job." + " If specified --rdzv_backend, --rdzv_endpoint, --rdzv_id" + " are autoassigned, any explicitly set values are ignored", + ) + + # user-code launch related arguments + parser.add_argument( + "--max_restarts", + action=env, + type=int, + default=3, + help="max number of worker group restarts before failing", + ) + parser.add_argument( + "--monitor_interval", + action=env, + type=float, + default=5, + help="interval (in seconds) to monitor the state of workers", + ) + parser.add_argument( + "--start_method", + action=env, + type=str, + default="spawn", + choices=["spawn", "fork", "forkserver"], + help="multiprocessing start_method to use when creating workers", + ) + parser.add_argument( + "--role", + action=env, + type=str, + default="default", + help="user-defined role for the workers", + ) + parser.add_argument( + "-m", + "--module", + action=check_env, + help="Changes each process to interpret the launch script " + "as a python module, executing with the same behavior as" + "'python -m'.", + ) + parser.add_argument( + "--no_python", + action=check_env, + help='Do not prepend the training script with "python" - just exec ' + "it directly. Useful when the script is not a Python script.", + ) + + parser.add_argument( + "--log_dir", + action=env, + type=str, + default=None, + help="base dir to use for log files (e.g. /var/log/torchelastic)" + " can reuse the same dir for multiple runs " + "(a unique job-level subdir is created with rdzv_id as the prefix)", + ) + + parser.add_argument( + "-r", + "--redirects", + action=env, + type=str, + default="0", + help="std streams to redirect into a log file in the log_dir" + " (e.g. [-r 3] redirects both stdout+stderr for all workers," + " [-r 0:1,1:2] redirects stdout for local rank 0 and stderr for local rank 1)", + ) + + parser.add_argument( + "-t", + "--tee", + action=env, + type=str, + default="0", + help="tee std streams into a log file and also to console (see --redirects for format)", + ) + + # positional + parser.add_argument( + "training_script", + type=str, + help="The full path to the single GPU training " + "program/script to be launched in parallel, " + "followed by all the arguments for the " + "training script", + ) + + # rest from the training program + parser.add_argument("training_script_args", nargs=REMAINDER) + return parser.parse_args(args) + + +def parse_min_max_nnodes(nnodes: str): + arr = nnodes.split(":") + + if len(arr) == 1: + min_nodes = max_nodes = int(arr[0]) + elif len(arr) == 2: + min_nodes = int(arr[0]) + max_nodes = int(arr[1]) + else: + raise RuntimeError(f'nnodes={nnodes} is not in "MIN:MAX" format') + + return min_nodes, max_nodes + + +def determine_local_world_size(nproc_per_node: str): + try: + logging.info(f"Using nproc_per_node={nproc_per_node}.") + return int(nproc_per_node) + except ValueError: + if nproc_per_node == "cpu": + num_proc = os.cpu_count() + device_type = "cpu" + elif nproc_per_node == "gpu": + if not torch.cuda.is_available(): + raise ValueError("Cuda is not available.") + device_type = "gpu" + num_proc = torch.cuda.device_count() + elif nproc_per_node == "auto": + if torch.cuda.is_available(): + num_proc = torch.cuda.device_count() + device_type = "gpu" + else: + num_proc = os.cpu_count() + device_type = "cpu" + else: + raise ValueError(f"Unsupported nproc_per_node value: {nproc_per_node}") + + log.info( + f"Using nproc_per_node={nproc_per_node}," + f" seting to {num_proc} since the instance " + f"has {os.cpu_count()} {device_type}" + ) + return num_proc + + +def _construct_event(args) -> events.Event: + metadata = { + "rdzv_backend": args.rdzv_backend, + "run_id": args.run_id, + "role": args.role, + } + return events.Event( + name="torchelastic.main", source=events.EventSource.AGENT, metadata=metadata + ) + + +@record +def main(args=None): + # If ``args`` not passed, defaults to ``sys.argv[:1]`` + args = parse_args(args) + min_nodes, max_nodes = parse_min_max_nnodes(args.nnodes) + assert 0 < min_nodes <= max_nodes + assert args.max_restarts >= 0 + + elastic_agent = None + + if args.standalone: + etcd_server = EtcdServer() + etcd_server.start() + args.rdzv_backend = "etcd" + args.rdzv_endpoint = etcd_server.get_endpoint() + args.rdzv_id = str(uuid.uuid4()) + log.info( + f"\n**************************************\n" + f"Rendezvous info:\n" + f"--rdzv_backend={args.rdzv_backend} " + f"--rdzv_endpoint={args.rdzv_endpoint} " + f"--rdzv_id={args.rdzv_id}\n" + f"**************************************\n" + ) + + nproc_per_node = determine_local_world_size(args.nproc_per_node) + if "OMP_NUM_THREADS" not in os.environ and nproc_per_node > 1: + omp_num_threads = 1 + print( + f"*****************************************\n" + f"Setting OMP_NUM_THREADS environment variable for each process to be " + f"{omp_num_threads} in default, to avoid your system being overloaded, " + f"please further tune the variable for optimal performance in " + f"your application as needed. \n" + f"*****************************************" + ) + # This env variable will be passed down to the subprocesses + os.environ["OMP_NUM_THREADS"] = str(omp_num_threads) + + with_python = not args.no_python + cmd = [] + if with_python: + cmd = [sys.executable, "-u"] + if args.module: + cmd.append("-m") + else: + if args.module: + raise ValueError( + "Don't use both the '--no_python' flag" + " and the '--module' flag at the same time." + ) + + cmd.append(args.training_script) + cmd.extend(args.training_script_args) + + rdzv_parameters = RendezvousParameters( + backend=args.rdzv_backend, + endpoint=args.rdzv_endpoint, + run_id=args.rdzv_id, + min_nodes=min_nodes, + max_nodes=max_nodes, + **_parse_rendezvous_config(args.rdzv_conf), + ) + + rdzv_handler = rdzv_registry.get_rendezvous_handler(rdzv_parameters) + try: + spec = WorkerSpec( + role=args.role, + local_world_size=nproc_per_node, + entrypoint=cmd[0], + args=(*cmd[1:],), + rdzv_handler=rdzv_handler, + max_restarts=args.max_restarts, + monitor_interval=args.monitor_interval, + redirects=Std.from_str(args.redirects), + tee=Std.from_str(args.tee), + ) + metrics.initialize_metrics() + elastic_agent = LocalElasticAgent( + spec=spec, start_method=args.start_method, log_dir=args.log_dir + ) + run_result = elastic_agent.run(spec.role) + events.record(elastic_agent.get_agent_status_event(WorkerState.SUCCEEDED)) + if run_result.is_failed(): + # ChildFailedError is treated specially by @record + # if the error files for the failed children exist + # @record will copy the first error (root cause) + # to the error file of the launcher process + raise ChildFailedError( + name=args.training_script, + failures=run_result.failures, + ) + except ChildFailedError: + raise + except Exception: + if elastic_agent: + events.record(elastic_agent.get_agent_status_event(WorkerState.FAILED)) + else: + events.record(_construct_event(args)) + raise + finally: + rdzv_handler.shutdown() + if args.standalone: + etcd_server.stop() + + +if __name__ == "__main__": + logging.basicConfig( + level=logging.INFO, format="[%(levelname)s] %(asctime)s %(module)s: %(message)s" + ) + log.info(f"Running torchelastic.distributed.launch with args: {sys.argv}") + main() diff --git a/shared/package-files/6f/6f7cbcb372a1b42a8507c94ce0f8b8f00c2eced52decd04af9521264d258623c/__init__.py b/shared/package-files/6f/6f7cbcb372a1b42a8507c94ce0f8b8f00c2eced52decd04af9521264d258623c/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..3de7787df0c3304207b42b51e9fb62da9d33c7d0 --- /dev/null +++ b/shared/package-files/6f/6f7cbcb372a1b42a8507c94ce0f8b8f00c2eced52decd04af9521264d258623c/__init__.py @@ -0,0 +1,4 @@ +# This file has moved to under torch/_functorch. It is not public API. +# If you are not a PyTorch developer and you are relying on the following +# imports, please file an issue. +from torch._functorch.make_functional import _swap_state diff --git a/shared/package-files/6f/6f7e466e363e5fbab22c9e7b844bbdd369cfa6493ab83b3fb73685081610969d/external_functions_core.h b/shared/package-files/6f/6f7e466e363e5fbab22c9e7b844bbdd369cfa6493ab83b3fb73685081610969d/external_functions_core.h new file mode 100644 index 0000000000000000000000000000000000000000..7d85d545af8c8eb68cc7c3e4d5ce49a2388125d0 --- /dev/null +++ b/shared/package-files/6f/6f7e466e363e5fbab22c9e7b844bbdd369cfa6493ab83b3fb73685081610969d/external_functions_core.h @@ -0,0 +1,29 @@ +#pragma once + +#include +#include +#include +#include + +namespace torch { +namespace jit { +namespace tensorexpr { + +#ifdef C10_MOBILE +extern "C" { +#endif +void DispatchParallel( + int8_t* func, + int64_t start, + int64_t stop, + int8_t* packed_data) noexcept; + +TORCH_API void nnc_aten_free(int64_t bufs_num, void** ptrs) noexcept; + +#ifdef C10_MOBILE +} // extern "C" +#endif + +} // namespace tensorexpr +} // namespace jit +} // namespace torch diff --git a/shared/package-files/6f/6f8243e857ffc0960adc6a8ea32d73e8d54acdb47a0b9e216d92dbd059e7c845/d555-7b b/shared/package-files/6f/6f8243e857ffc0960adc6a8ea32d73e8d54acdb47a0b9e216d92dbd059e7c845/d555-7b new file mode 100644 index 0000000000000000000000000000000000000000..add2136562d7658dddcbe0713e619b014e0a431c Binary files /dev/null and b/shared/package-files/6f/6f8243e857ffc0960adc6a8ea32d73e8d54acdb47a0b9e216d92dbd059e7c845/d555-7b differ diff --git a/shared/package-files/6f/6f83aee1b4e9f04fdf173960eaf411a56a3087147ef5207cf2a03fc928578e19/test_smtlib.py b/shared/package-files/6f/6f83aee1b4e9f04fdf173960eaf411a56a3087147ef5207cf2a03fc928578e19/test_smtlib.py new file mode 100644 index 0000000000000000000000000000000000000000..a85ad1fa2cc57c962d227e21bc32eb71b807519d --- /dev/null +++ b/shared/package-files/6f/6f83aee1b4e9f04fdf173960eaf411a56a3087147ef5207cf2a03fc928578e19/test_smtlib.py @@ -0,0 +1,525 @@ +import contextlib +import itertools +import re +import typing +from enum import Enum +from typing import Callable + +import sympy +from sympy import Add, Implies, sqrt +from sympy.core import Mul, Pow +from sympy.core import (S, pi, symbols, Function, Rational, Integer, + Symbol, Eq, Ne, Le, Lt, Gt, Ge) +from sympy.functions import Piecewise, exp, sin, cos +from sympy.printing.smtlib import smtlib_code +from sympy.testing.pytest import raises, Failed + +x, y, z = symbols('x,y,z') + + +class _W(Enum): + DEFAULTING_TO_FLOAT = re.compile("Could not infer type of `.+`. Defaulting to float.", re.I) + WILL_NOT_DECLARE = re.compile("Non-Symbol/Function `.+` will not be declared.", re.I) + WILL_NOT_ASSERT = re.compile("Non-Boolean expression `.+` will not be asserted. Converting to SMTLib verbatim.", re.I) + + +@contextlib.contextmanager +def _check_warns(expected: typing.Iterable[_W]): + warns: typing.List[str] = [] + log_warn = warns.append + yield log_warn + + errors = [] + for i, (w, e) in enumerate(itertools.zip_longest(warns, expected)): + if not e: + errors += [f"[{i}] Received unexpected warning `{w}`."] + elif not w: + errors += [f"[{i}] Did not receive expected warning `{e.name}`."] + elif not e.value.match(w): + errors += [f"[{i}] Warning `{w}` does not match expected {e.name}."] + + if errors: raise Failed('\n'.join(errors)) + + +def test_Integer(): + with _check_warns([_W.WILL_NOT_ASSERT] * 2) as w: + assert smtlib_code(Integer(67), log_warn=w) == "67" + assert smtlib_code(Integer(-1), log_warn=w) == "-1" + with _check_warns([]) as w: + assert smtlib_code(Integer(67)) == "67" + assert smtlib_code(Integer(-1)) == "-1" + + +def test_Rational(): + with _check_warns([_W.WILL_NOT_ASSERT] * 4) as w: + assert smtlib_code(Rational(3, 7), log_warn=w) == "(/ 3 7)" + assert smtlib_code(Rational(18, 9), log_warn=w) == "2" + assert smtlib_code(Rational(3, -7), log_warn=w) == "(/ -3 7)" + assert smtlib_code(Rational(-3, -7), log_warn=w) == "(/ 3 7)" + + with _check_warns([_W.DEFAULTING_TO_FLOAT, _W.WILL_NOT_ASSERT] * 2) as w: + assert smtlib_code(x + Rational(3, 7), auto_declare=False, log_warn=w) == "(+ (/ 3 7) x)" + assert smtlib_code(Rational(3, 7) * x, log_warn=w) == "(declare-const x Real)\n" \ + "(* (/ 3 7) x)" + + +def test_Relational(): + with _check_warns([_W.DEFAULTING_TO_FLOAT] * 12) as w: + assert smtlib_code(Eq(x, y), auto_declare=False, log_warn=w) == "(assert (= x y))" + assert smtlib_code(Ne(x, y), auto_declare=False, log_warn=w) == "(assert (not (= x y)))" + assert smtlib_code(Le(x, y), auto_declare=False, log_warn=w) == "(assert (<= x y))" + assert smtlib_code(Lt(x, y), auto_declare=False, log_warn=w) == "(assert (< x y))" + assert smtlib_code(Gt(x, y), auto_declare=False, log_warn=w) == "(assert (> x y))" + assert smtlib_code(Ge(x, y), auto_declare=False, log_warn=w) == "(assert (>= x y))" + + +def test_Function(): + with _check_warns([_W.DEFAULTING_TO_FLOAT, _W.WILL_NOT_ASSERT]) as w: + assert smtlib_code(sin(x) ** cos(x), auto_declare=False, log_warn=w) == "(pow (sin x) (cos x))" + + with _check_warns([_W.WILL_NOT_ASSERT]) as w: + assert smtlib_code( + abs(x), + symbol_table={x: int, y: bool}, + known_types={int: "INTEGER_TYPE"}, + known_functions={sympy.Abs: "ABSOLUTE_VALUE_OF"}, + log_warn=w + ) == "(declare-const x INTEGER_TYPE)\n" \ + "(ABSOLUTE_VALUE_OF x)" + + my_fun1 = Function('f1') + with _check_warns([_W.WILL_NOT_ASSERT]) as w: + assert smtlib_code( + my_fun1(x), + symbol_table={my_fun1: Callable[[bool], float]}, + log_warn=w + ) == "(declare-const x Bool)\n" \ + "(declare-fun f1 (Bool) Real)\n" \ + "(f1 x)" + + with _check_warns([]) as w: + assert smtlib_code( + my_fun1(x), + symbol_table={my_fun1: Callable[[bool], bool]}, + log_warn=w + ) == "(declare-const x Bool)\n" \ + "(declare-fun f1 (Bool) Bool)\n" \ + "(assert (f1 x))" + + assert smtlib_code( + Eq(my_fun1(x, z), y), + symbol_table={my_fun1: Callable[[int, bool], bool]}, + log_warn=w + ) == "(declare-const x Int)\n" \ + "(declare-const y Bool)\n" \ + "(declare-const z Bool)\n" \ + "(declare-fun f1 (Int Bool) Bool)\n" \ + "(assert (= (f1 x z) y))" + + assert smtlib_code( + Eq(my_fun1(x, z), y), + symbol_table={my_fun1: Callable[[int, bool], bool]}, + known_functions={my_fun1: "MY_KNOWN_FUN", Eq: '=='}, + log_warn=w + ) == "(declare-const x Int)\n" \ + "(declare-const y Bool)\n" \ + "(declare-const z Bool)\n" \ + "(assert (== (MY_KNOWN_FUN x z) y))" + + with _check_warns([_W.DEFAULTING_TO_FLOAT] * 3) as w: + assert smtlib_code( + Eq(my_fun1(x, z), y), + known_functions={my_fun1: "MY_KNOWN_FUN", Eq: '=='}, + log_warn=w + ) == "(declare-const x Real)\n" \ + "(declare-const y Real)\n" \ + "(declare-const z Real)\n" \ + "(assert (== (MY_KNOWN_FUN x z) y))" + + +def test_Pow(): + with _check_warns([_W.DEFAULTING_TO_FLOAT, _W.WILL_NOT_ASSERT]) as w: + assert smtlib_code(x ** 3, auto_declare=False, log_warn=w) == "(pow x 3)" + with _check_warns([_W.DEFAULTING_TO_FLOAT, _W.DEFAULTING_TO_FLOAT, _W.WILL_NOT_ASSERT]) as w: + assert smtlib_code(x ** (y ** 3), auto_declare=False, log_warn=w) == "(pow x (pow y 3))" + with _check_warns([_W.DEFAULTING_TO_FLOAT, _W.WILL_NOT_ASSERT]) as w: + assert smtlib_code(x ** Rational(2, 3), auto_declare=False, log_warn=w) == '(pow x (/ 2 3))' + + a = Symbol('a', integer=True) + b = Symbol('b', real=True) + c = Symbol('c') + + def g(x): return 2 * x + + # if x=1, y=2, then expr=2.333... + expr = 1 / (g(a) * 3.5) ** (a - b ** a) / (a ** 2 + b) + + with _check_warns([]) as w: + assert smtlib_code( + [ + Eq(a < 2, c), + Eq(b > a, c), + c & True, + Eq(expr, 2 + Rational(1, 3)) + ], + log_warn=w + ) == '(declare-const a Int)\n' \ + '(declare-const b Real)\n' \ + '(declare-const c Bool)\n' \ + '(assert (= (< a 2) c))\n' \ + '(assert (= (> b a) c))\n' \ + '(assert c)\n' \ + '(assert (= ' \ + '(* (pow (* 7. a) (+ (pow b a) (* -1 a))) (pow (+ b (pow a 2)) -1)) ' \ + '(/ 7 3)' \ + '))' + + with _check_warns([_W.DEFAULTING_TO_FLOAT, _W.WILL_NOT_ASSERT]) as w: + assert smtlib_code( + Mul(-2, c, Pow(Mul(b, b, evaluate=False), -1, evaluate=False), evaluate=False), + log_warn=w + ) == '(declare-const b Real)\n' \ + '(declare-const c Real)\n' \ + '(* -2 c (pow (* b b) -1))' + + +def test_basic_ops(): + with _check_warns([_W.DEFAULTING_TO_FLOAT, _W.DEFAULTING_TO_FLOAT, _W.WILL_NOT_ASSERT]) as w: + assert smtlib_code(x * y, auto_declare=False, log_warn=w) == "(* x y)" + + with _check_warns([_W.DEFAULTING_TO_FLOAT, _W.DEFAULTING_TO_FLOAT, _W.WILL_NOT_ASSERT]) as w: + assert smtlib_code(x + y, auto_declare=False, log_warn=w) == "(+ x y)" + + # with _check_warns([_SmtlibWarnings.DEFAULTING_TO_FLOAT, _SmtlibWarnings.DEFAULTING_TO_FLOAT, _SmtlibWarnings.WILL_NOT_ASSERT]) as w: + # todo: implement re-write, currently does '(+ x (* -1 y))' instead + # assert smtlib_code(x - y, auto_declare=False, log_warn=w) == "(- x y)" + + with _check_warns([_W.DEFAULTING_TO_FLOAT, _W.WILL_NOT_ASSERT]) as w: + assert smtlib_code(-x, auto_declare=False, log_warn=w) == "(* -1 x)" + + +def test_quantifier_extensions(): + from sympy.logic.boolalg import Boolean + from sympy import Interval, Tuple, sympify + + # start For-all quantifier class example + class ForAll(Boolean): + def _smtlib(self, printer): + bound_symbol_declarations = [ + printer._s_expr(sym.name, [ + printer._known_types[printer.symbol_table[sym]], + Interval(start, end) + ]) for sym, start, end in self.limits + ] + return printer._s_expr('forall', [ + printer._s_expr('', bound_symbol_declarations), + self.function + ]) + + @property + def bound_symbols(self): + return {s for s, _, _ in self.limits} + + @property + def free_symbols(self): + bound_symbol_names = {s.name for s in self.bound_symbols} + return { + s for s in self.function.free_symbols + if s.name not in bound_symbol_names + } + + def __new__(cls, *args): + limits = [sympify(a) for a in args if isinstance(a, tuple) or isinstance(a, Tuple)] + function = [sympify(a) for a in args if isinstance(a, Boolean)] + assert len(limits) + len(function) == len(args) + assert len(function) == 1 + function = function[0] + + if isinstance(function, ForAll): return ForAll.__new__( + ForAll, *(limits + function.limits), function.function + ) + inst = Boolean.__new__(cls) + inst._args = tuple(limits + [function]) + inst.limits = limits + inst.function = function + return inst + + # end For-All Quantifier class example + + f = Function('f') + with _check_warns([_W.DEFAULTING_TO_FLOAT]) as w: + assert smtlib_code( + ForAll((x, -42, +21), Eq(f(x), f(x))), + symbol_table={f: Callable[[float], float]}, + log_warn=w + ) == '(assert (forall ( (x Real [-42, 21])) true))' + + with _check_warns([_W.DEFAULTING_TO_FLOAT] * 2) as w: + assert smtlib_code( + ForAll( + (x, -42, +21), (y, -100, 3), + Implies(Eq(x, y), Eq(f(x), f(y))) + ), + symbol_table={f: Callable[[float], float]}, + log_warn=w + ) == '(declare-fun f (Real) Real)\n' \ + '(assert (' \ + 'forall ( (x Real [-42, 21]) (y Real [-100, 3])) ' \ + '(=> (= x y) (= (f x) (f y)))' \ + '))' + + a = Symbol('a', integer=True) + b = Symbol('b', real=True) + c = Symbol('c') + + with _check_warns([]) as w: + assert smtlib_code( + ForAll( + (a, 2, 100), ForAll( + (b, 2, 100), + Implies(a < b, sqrt(a) < b) | c + )), + log_warn=w + ) == '(declare-const c Bool)\n' \ + '(assert (forall ( (a Int [2, 100]) (b Real [2, 100])) ' \ + '(or c (=> (< a b) (< (pow a (/ 1 2)) b)))' \ + '))' + + +def test_mix_number_mult_symbols(): + with _check_warns([_W.WILL_NOT_ASSERT]) as w: + assert smtlib_code( + 1 / pi, + known_constants={pi: "MY_PI"}, + log_warn=w + ) == '(pow MY_PI -1)' + + with _check_warns([_W.WILL_NOT_ASSERT]) as w: + assert smtlib_code( + [ + Eq(pi, 3.14, evaluate=False), + 1 / pi, + ], + known_constants={pi: "MY_PI"}, + log_warn=w + ) == '(assert (= MY_PI 3.14))\n' \ + '(pow MY_PI -1)' + + with _check_warns([_W.WILL_NOT_ASSERT]) as w: + assert smtlib_code( + Add(S.Zero, S.One, S.NegativeOne, S.Half, + S.Exp1, S.Pi, S.GoldenRatio, evaluate=False), + known_constants={ + S.Pi: 'p', S.GoldenRatio: 'g', + S.Exp1: 'e' + }, + known_functions={ + Add: 'plus', + exp: 'exp' + }, + precision=3, + log_warn=w + ) == '(plus 0 1 -1 (/ 1 2) (exp 1) p g)' + + with _check_warns([_W.WILL_NOT_ASSERT]) as w: + assert smtlib_code( + Add(S.Zero, S.One, S.NegativeOne, S.Half, + S.Exp1, S.Pi, S.GoldenRatio, evaluate=False), + known_constants={ + S.Pi: 'p' + }, + known_functions={ + Add: 'plus', + exp: 'exp' + }, + precision=3, + log_warn=w + ) == '(plus 0 1 -1 (/ 1 2) (exp 1) p 1.62)' + + with _check_warns([_W.WILL_NOT_ASSERT]) as w: + assert smtlib_code( + Add(S.Zero, S.One, S.NegativeOne, S.Half, + S.Exp1, S.Pi, S.GoldenRatio, evaluate=False), + known_functions={Add: 'plus'}, + precision=3, + log_warn=w + ) == '(plus 0 1 -1 (/ 1 2) 2.72 3.14 1.62)' + + with _check_warns([_W.WILL_NOT_ASSERT]) as w: + assert smtlib_code( + Add(S.Zero, S.One, S.NegativeOne, S.Half, + S.Exp1, S.Pi, S.GoldenRatio, evaluate=False), + known_constants={S.Exp1: 'e'}, + known_functions={Add: 'plus'}, + precision=3, + log_warn=w + ) == '(plus 0 1 -1 (/ 1 2) e 3.14 1.62)' + + +def test_boolean(): + with _check_warns([]) as w: + assert smtlib_code(x & y, log_warn=w) == '(declare-const x Bool)\n' \ + '(declare-const y Bool)\n' \ + '(assert (and x y))' + assert smtlib_code(x | y, log_warn=w) == '(declare-const x Bool)\n' \ + '(declare-const y Bool)\n' \ + '(assert (or x y))' + assert smtlib_code(~x, log_warn=w) == '(declare-const x Bool)\n' \ + '(assert (not x))' + assert smtlib_code(x & y & z, log_warn=w) == '(declare-const x Bool)\n' \ + '(declare-const y Bool)\n' \ + '(declare-const z Bool)\n' \ + '(assert (and x y z))' + + with _check_warns([_W.DEFAULTING_TO_FLOAT]) as w: + assert smtlib_code((x & ~y) | (z > 3), log_warn=w) == '(declare-const x Bool)\n' \ + '(declare-const y Bool)\n' \ + '(declare-const z Real)\n' \ + '(assert (or (> z 3) (and x (not y))))' + + f = Function('f') + g = Function('g') + h = Function('h') + with _check_warns([_W.DEFAULTING_TO_FLOAT]) as w: + assert smtlib_code( + [Gt(f(x), y), + Lt(y, g(z))], + symbol_table={ + f: Callable[[bool], int], g: Callable[[bool], int], + }, log_warn=w + ) == '(declare-const x Bool)\n' \ + '(declare-const y Real)\n' \ + '(declare-const z Bool)\n' \ + '(declare-fun f (Bool) Int)\n' \ + '(declare-fun g (Bool) Int)\n' \ + '(assert (> (f x) y))\n' \ + '(assert (< y (g z)))' + + with _check_warns([]) as w: + assert smtlib_code( + [Eq(f(x), y), + Lt(y, g(z))], + symbol_table={ + f: Callable[[bool], int], g: Callable[[bool], int], + }, log_warn=w + ) == '(declare-const x Bool)\n' \ + '(declare-const y Int)\n' \ + '(declare-const z Bool)\n' \ + '(declare-fun f (Bool) Int)\n' \ + '(declare-fun g (Bool) Int)\n' \ + '(assert (= (f x) y))\n' \ + '(assert (< y (g z)))' + + with _check_warns([]) as w: + assert smtlib_code( + [Eq(f(x), y), + Eq(g(f(x)), z), + Eq(h(g(f(x))), x)], + symbol_table={ + f: Callable[[float], int], + g: Callable[[int], bool], + h: Callable[[bool], float] + }, + log_warn=w + ) == '(declare-const x Real)\n' \ + '(declare-const y Int)\n' \ + '(declare-const z Bool)\n' \ + '(declare-fun f (Real) Int)\n' \ + '(declare-fun g (Int) Bool)\n' \ + '(declare-fun h (Bool) Real)\n' \ + '(assert (= (f x) y))\n' \ + '(assert (= (g (f x)) z))\n' \ + '(assert (= (h (g (f x))) x))' + + +# todo: make smtlib_code support arrays +# def test_containers(): +# assert julia_code([1, 2, 3, [4, 5, [6, 7]], 8, [9, 10], 11]) == \ +# "Any[1, 2, 3, Any[4, 5, Any[6, 7]], 8, Any[9, 10], 11]" +# assert julia_code((1, 2, (3, 4))) == "(1, 2, (3, 4))" +# assert julia_code([1]) == "Any[1]" +# assert julia_code((1,)) == "(1,)" +# assert julia_code(Tuple(*[1, 2, 3])) == "(1, 2, 3)" +# assert julia_code((1, x * y, (3, x ** 2))) == "(1, x .* y, (3, x .^ 2))" +# # scalar, matrix, empty matrix and empty list +# assert julia_code((1, eye(3), Matrix(0, 0, []), [])) == "(1, [1 0 0;\n0 1 0;\n0 0 1], zeros(0, 0), Any[])" + +def test_smtlib_piecewise(): + with _check_warns([_W.DEFAULTING_TO_FLOAT, _W.WILL_NOT_ASSERT]) as w: + assert smtlib_code( + Piecewise((x, x < 1), + (x ** 2, True)), + auto_declare=False, + log_warn=w + ) == '(ite (< x 1) x (pow x 2))' + + with _check_warns([_W.DEFAULTING_TO_FLOAT, _W.WILL_NOT_ASSERT]) as w: + assert smtlib_code( + Piecewise((x ** 2, x < 1), + (x ** 3, x < 2), + (x ** 4, x < 3), + (x ** 5, True)), + auto_declare=False, + log_warn=w + ) == '(ite (< x 1) (pow x 2) ' \ + '(ite (< x 2) (pow x 3) ' \ + '(ite (< x 3) (pow x 4) ' \ + '(pow x 5))))' + + # Check that Piecewise without a True (default) condition error + expr = Piecewise((x, x < 1), (x ** 2, x > 1), (sin(x), x > 0)) + with _check_warns([_W.DEFAULTING_TO_FLOAT, _W.WILL_NOT_ASSERT]) as w: + raises(AssertionError, lambda: smtlib_code(expr, log_warn=w)) + + +def test_smtlib_piecewise_times_const(): + pw = Piecewise((x, x < 1), (x ** 2, True)) + with _check_warns([_W.DEFAULTING_TO_FLOAT, _W.WILL_NOT_ASSERT]) as w: + assert smtlib_code(2 * pw, log_warn=w) == '(declare-const x Real)\n(* 2 (ite (< x 1) x (pow x 2)))' + with _check_warns([_W.DEFAULTING_TO_FLOAT, _W.WILL_NOT_ASSERT]) as w: + assert smtlib_code(pw / x, log_warn=w) == '(declare-const x Real)\n(* (pow x -1) (ite (< x 1) x (pow x 2)))' + with _check_warns([_W.DEFAULTING_TO_FLOAT, _W.DEFAULTING_TO_FLOAT, _W.WILL_NOT_ASSERT]) as w: + assert smtlib_code(pw / (x * y), log_warn=w) == '(declare-const x Real)\n(declare-const y Real)\n(* (pow x -1) (pow y -1) (ite (< x 1) x (pow x 2)))' + with _check_warns([_W.DEFAULTING_TO_FLOAT, _W.WILL_NOT_ASSERT]) as w: + assert smtlib_code(pw / 3, log_warn=w) == '(declare-const x Real)\n(* (/ 1 3) (ite (< x 1) x (pow x 2)))' + + +# todo: make smtlib_code support arrays / matrices ? +# def test_smtlib_matrix_assign_to(): +# A = Matrix([[1, 2, 3]]) +# assert smtlib_code(A, assign_to='a') == "a = [1 2 3]" +# A = Matrix([[1, 2], [3, 4]]) +# assert smtlib_code(A, assign_to='A') == "A = [1 2;\n3 4]" + +# def test_julia_matrix_1x1(): +# A = Matrix([[3]]) +# B = MatrixSymbol('B', 1, 1) +# C = MatrixSymbol('C', 1, 2) +# assert julia_code(A, assign_to=B) == "B = [3]" +# raises(ValueError, lambda: julia_code(A, assign_to=C)) + +# def test_julia_matrix_elements(): +# A = Matrix([[x, 2, x * y]]) +# assert julia_code(A[0, 0] ** 2 + A[0, 1] + A[0, 2]) == "x .^ 2 + x .* y + 2" +# A = MatrixSymbol('AA', 1, 3) +# assert julia_code(A) == "AA" +# assert julia_code(A[0, 0] ** 2 + sin(A[0, 1]) + A[0, 2]) == \ +# "sin(AA[1,2]) + AA[1,1] .^ 2 + AA[1,3]" +# assert julia_code(sum(A)) == "AA[1,1] + AA[1,2] + AA[1,3]" + +def test_smtlib_boolean(): + with _check_warns([]) as w: + assert smtlib_code(True, auto_assert=False, log_warn=w) == 'true' + assert smtlib_code(True, log_warn=w) == '(assert true)' + assert smtlib_code(S.true, log_warn=w) == '(assert true)' + assert smtlib_code(S.false, log_warn=w) == '(assert false)' + assert smtlib_code(False, log_warn=w) == '(assert false)' + assert smtlib_code(False, auto_assert=False, log_warn=w) == 'false' + + +def test_not_supported(): + f = Function('f') + with _check_warns([_W.DEFAULTING_TO_FLOAT, _W.WILL_NOT_ASSERT]) as w: + raises(KeyError, lambda: smtlib_code(f(x).diff(x), symbol_table={f: Callable[[float], float]}, log_warn=w)) + with _check_warns([_W.WILL_NOT_ASSERT]) as w: + raises(KeyError, lambda: smtlib_code(S.ComplexInfinity, log_warn=w)) diff --git a/shared/package-files/6f/6f879acfc48205ca692684b9e5ac53c3ee5d25bad2482fe1ac408cc9223c3597/CPUBlas.h b/shared/package-files/6f/6f879acfc48205ca692684b9e5ac53c3ee5d25bad2482fe1ac408cc9223c3597/CPUBlas.h new file mode 100644 index 0000000000000000000000000000000000000000..3b30df1c21fad9473c9b588adc6fb82308150039 --- /dev/null +++ b/shared/package-files/6f/6f879acfc48205ca692684b9e5ac53c3ee5d25bad2482fe1ac408cc9223c3597/CPUBlas.h @@ -0,0 +1,189 @@ +#pragma once + +#include +#include +#include +#include +#include +#include + +namespace at::native::cpublas { + +namespace internal { +void normalize_last_dims( + TransposeType transa, TransposeType transb, + int64_t m, int64_t n, int64_t k, + int64_t *lda, int64_t *ldb, int64_t *ldc); +} // namespace internal + +using gemm_fn = void(*)( + at::ScalarType type, + TransposeType transa, TransposeType transb, + int64_t m, int64_t n, int64_t k, + const Scalar& alpha, + const void *a, int64_t lda, + const void *b, int64_t ldb, + const Scalar& beta, + void *c, int64_t ldc); + +DECLARE_DISPATCH(gemm_fn, gemm_stub); + +template +void gemm( + TransposeType transa, TransposeType transb, + int64_t m, int64_t n, int64_t k, + at::opmath_type alpha, + const scalar_t *a, int64_t lda, + const scalar_t *b, int64_t ldb, + at::opmath_type beta, + scalar_t *c, int64_t ldc) { + internal::normalize_last_dims(transa, transb, m, n, k, &lda, &ldb, &ldc); + gemm_stub( + kCPU, c10::CppTypeToScalarType::value, + transa, transb, m, n, k, alpha, a, lda, b, ldb, beta, c, ldc); +} + +void gemm( + TransposeType transa, TransposeType transb, + int64_t m, int64_t n, int64_t k, + double alpha, + const double *a, int64_t lda, + const double *b, int64_t ldb, + double beta, + double *c, int64_t ldc); + +void gemm( + TransposeType transa, TransposeType transb, + int64_t m, int64_t n, int64_t k, + float alpha, + const float *a, int64_t lda, + const float *b, int64_t ldb, + float beta, + float *c, int64_t ldc); + +void gemm( + TransposeType transa, TransposeType transb, + int64_t m, int64_t n, int64_t k, + float alpha, + const at::BFloat16 *a, int64_t lda, + const at::BFloat16 *b, int64_t ldb, + float beta, + at::BFloat16 *c, int64_t ldc); + +void gemm( + TransposeType transa, TransposeType transb, + int64_t m, int64_t n, int64_t k, + const float alpha, + const at::BFloat16 *a, int64_t lda, + const at::BFloat16 *b, int64_t ldb, + const float beta, + float *c, int64_t ldc); + +void gemm( + TransposeType transa, TransposeType transb, + int64_t m, int64_t n, int64_t k, + float alpha, + const at::Half *a, int64_t lda, + const at::Half *b, int64_t ldb, + float beta, + at::Half *c, int64_t ldc); + +void gemm( + TransposeType transa, TransposeType transb, + int64_t m, int64_t n, int64_t k, + const float alpha, + const at::Half *a, int64_t lda, + const at::Half *b, int64_t ldb, + const float beta, + float *c, int64_t ldc); + +void gemm( + TransposeType transa, TransposeType transb, + int64_t m, int64_t n, int64_t k, + c10::complex alpha, + const c10::complex *a, int64_t lda, + const c10::complex *b, int64_t ldb, + c10::complex beta, + c10::complex *c, int64_t ldc); + +void gemm( + TransposeType transa, TransposeType transb, + int64_t m, int64_t n, int64_t k, + c10::complex alpha, + const c10::complex *a, int64_t lda, + const c10::complex *b, int64_t ldb, + c10::complex beta, + c10::complex *c, int64_t ldc); + +void gemm( + TransposeType transa, TransposeType transb, + int64_t m, int64_t n, int64_t k, + int64_t alpha, + const int64_t *a, int64_t lda, + const int64_t *b, int64_t ldb, + int64_t beta, + int64_t *c, int64_t ldc); + +template +void gemm_batched( + TransposeType transa, TransposeType transb, + int64_t batch_size, int64_t m, int64_t n, int64_t k, + scalar_t alpha, + const scalar_t * const *a, int64_t lda, + const scalar_t * const *b, int64_t ldb, + const scalar_t beta, + scalar_t * const *c, int64_t ldc); + +template +void gemm_batched_with_stride( + TransposeType transa, TransposeType transb, + int64_t batch_size, int64_t m, int64_t n, int64_t k, + scalar_t alpha, + const scalar_t *a, int64_t lda, int64_t batch_stride_a, + const scalar_t *b, int64_t ldb, int64_t batch_stride_b, + scalar_t beta, + scalar_t *c, int64_t ldc, int64_t batch_stride_c); + +using axpy_fn = void(*)(at::ScalarType type, int64_t n, const Scalar& a, const void *x, int64_t incx, void *y, int64_t incy); + +DECLARE_DISPATCH(axpy_fn, axpy_stub); + +template +void axpy(int64_t n, scalar_t a, const scalar_t *x, int64_t incx, scalar_t *y, int64_t incy){ + if(n == 1) + { + incx = 1; + incy = 1; + } + axpy_stub( + kCPU, c10::CppTypeToScalarType::value, + n, a, x, incx, y, incy); +} + +void axpy(int64_t n, double a, const double *x, int64_t incx, double *y, int64_t incy); +void axpy(int64_t n, float a, const float *x, int64_t incx, float *y, int64_t incy); +void axpy(int64_t n, c10::complex a, const c10::complex *x, int64_t incx, c10::complex *y, int64_t incy); +void axpy(int64_t n, c10::complex a, const c10::complex *x, int64_t incx, c10::complex *y, int64_t incy); + +using copy_fn = void(*)(at::ScalarType type, int64_t n, const void *x, int64_t incx, void *y, int64_t incy); + +DECLARE_DISPATCH(copy_fn, copy_stub); + +template +void copy(int64_t n, const scalar_t *x, int64_t incx, scalar_t *y, int64_t incy) { + if(n == 1) + { + incx = 1; + incy = 1; + } + copy_stub( + kCPU, c10::CppTypeToScalarType::value, + n, x, incx, y, incy); +} + +void copy(int64_t n, const double *x, int64_t incx, double *y, int64_t incy); +void copy(int64_t n, const float *x, int64_t incx, float *y, int64_t incy); +void copy(int64_t n, const c10::complex *x, int64_t incx, c10::complex *y, int64_t incy); +void copy(int64_t n, const c10::complex *x, int64_t incx, c10::complex *y, int64_t incy); + +} // namespace at::native::cpublas diff --git a/shared/package-files/6f/6f8b155994ccab4b7618c95a166cd85899daf56b83405226faf76a5e46fcf71a/php.py b/shared/package-files/6f/6f8b155994ccab4b7618c95a166cd85899daf56b83405226faf76a5e46fcf71a/php.py new file mode 100644 index 0000000000000000000000000000000000000000..a0a0021aadb11a18ee902708ee18bd26d32414ea --- /dev/null +++ b/shared/package-files/6f/6f8b155994ccab4b7618c95a166cd85899daf56b83405226faf76a5e46fcf71a/php.py @@ -0,0 +1,335 @@ +""" + pygments.lexers.php + ~~~~~~~~~~~~~~~~~~~ + + Lexers for PHP and related languages. + + :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS. + :license: BSD, see LICENSE for details. +""" + +import re + +from pygments.lexer import Lexer, RegexLexer, include, bygroups, default, \ + using, this, words, do_insertions, line_re +from pygments.token import Text, Comment, Operator, Keyword, Name, String, \ + Number, Punctuation, Other, Generic +from pygments.util import get_bool_opt, get_list_opt, shebang_matches + +__all__ = ['ZephirLexer', 'PsyshConsoleLexer', 'PhpLexer'] + + +class ZephirLexer(RegexLexer): + """ + For Zephir language source code. + + Zephir is a compiled high level language aimed + to the creation of C-extensions for PHP. + + .. versionadded:: 2.0 + """ + + name = 'Zephir' + url = 'http://zephir-lang.com/' + aliases = ['zephir'] + filenames = ['*.zep'] + + zephir_keywords = ['fetch', 'echo', 'isset', 'empty'] + zephir_type = ['bit', 'bits', 'string'] + + flags = re.DOTALL | re.MULTILINE + + tokens = { + 'commentsandwhitespace': [ + (r'\s+', Text), + (r'//.*?\n', Comment.Single), + (r'/\*.*?\*/', Comment.Multiline) + ], + 'slashstartsregex': [ + include('commentsandwhitespace'), + (r'/(\\.|[^[/\\\n]|\[(\\.|[^\]\\\n])*])+/' + r'([gim]+\b|\B)', String.Regex, '#pop'), + (r'/', Operator, '#pop'), + default('#pop') + ], + 'badregex': [ + (r'\n', Text, '#pop') + ], + 'root': [ + (r'^(?=\s|/)', Text, 'slashstartsregex'), + include('commentsandwhitespace'), + (r'\+\+|--|~|&&|\?|:|\|\||\\(?=\n)|' + r'(<<|>>>?|==?|!=?|->|[-<>+*%&|^/])=?', Operator, 'slashstartsregex'), + (r'[{(\[;,]', Punctuation, 'slashstartsregex'), + (r'[})\].]', Punctuation), + (r'(for|in|while|do|break|return|continue|switch|case|default|if|else|loop|' + r'require|inline|throw|try|catch|finally|new|delete|typeof|instanceof|void|' + r'namespace|use|extends|this|fetch|isset|unset|echo|fetch|likely|unlikely|' + r'empty)\b', Keyword, 'slashstartsregex'), + (r'(var|let|with|function)\b', Keyword.Declaration, 'slashstartsregex'), + (r'(abstract|boolean|bool|char|class|const|double|enum|export|extends|final|' + r'native|goto|implements|import|int|string|interface|long|ulong|char|uchar|' + r'float|unsigned|private|protected|public|short|static|self|throws|reverse|' + r'transient|volatile|readonly)\b', Keyword.Reserved), + (r'(true|false|null|undefined)\b', Keyword.Constant), + (r'(Array|Boolean|Date|_REQUEST|_COOKIE|_SESSION|' + r'_GET|_POST|_SERVER|this|stdClass|range|count|iterator|' + r'window)\b', Name.Builtin), + (r'[$a-zA-Z_][\w\\]*', Name.Other), + (r'[0-9][0-9]*\.[0-9]+([eE][0-9]+)?[fd]?', Number.Float), + (r'0x[0-9a-fA-F]+', Number.Hex), + (r'[0-9]+', Number.Integer), + (r'"(\\\\|\\[^\\]|[^"\\])*"', String.Double), + (r"'(\\\\|\\[^\\]|[^'\\])*'", String.Single), + ] + } + + +class PsyshConsoleLexer(Lexer): + """ + For PsySH console output, such as: + + .. sourcecode:: psysh + + >>> $greeting = function($name): string { + ... return "Hello, {$name}"; + ... }; + => Closure($name): string {#2371 …3} + >>> $greeting('World') + => "Hello, World" + + .. versionadded:: 2.7 + """ + name = 'PsySH console session for PHP' + url = 'https://psysh.org/' + aliases = ['psysh'] + + def __init__(self, **options): + options['startinline'] = True + Lexer.__init__(self, **options) + + def get_tokens_unprocessed(self, text): + phplexer = PhpLexer(**self.options) + curcode = '' + insertions = [] + for match in line_re.finditer(text): + line = match.group() + if line.startswith('>>> ') or line.startswith('... '): + insertions.append((len(curcode), + [(0, Generic.Prompt, line[:4])])) + curcode += line[4:] + elif line.rstrip() == '...': + insertions.append((len(curcode), + [(0, Generic.Prompt, '...')])) + curcode += line[3:] + else: + if curcode: + yield from do_insertions( + insertions, phplexer.get_tokens_unprocessed(curcode)) + curcode = '' + insertions = [] + yield match.start(), Generic.Output, line + if curcode: + yield from do_insertions(insertions, + phplexer.get_tokens_unprocessed(curcode)) + + +class PhpLexer(RegexLexer): + """ + For PHP source code. + For PHP embedded in HTML, use the `HtmlPhpLexer`. + + Additional options accepted: + + `startinline` + If given and ``True`` the lexer starts highlighting with + php code (i.e.: no starting ``>> from pygments.lexers._php_builtins import MODULES + >>> MODULES.keys() + ['PHP Options/Info', 'Zip', 'dba', ...] + + In fact the names of those modules match the module names from + the php documentation. + """ + + name = 'PHP' + url = 'https://www.php.net/' + aliases = ['php', 'php3', 'php4', 'php5'] + filenames = ['*.php', '*.php[345]', '*.inc'] + mimetypes = ['text/x-php'] + + # Note that a backslash is included, PHP uses a backslash as a namespace + # separator. + _ident_inner = r'(?:[\\_a-z]|[^\x00-\x7f])(?:[\\\w]|[^\x00-\x7f])*' + # But not inside strings. + _ident_nons = r'(?:[_a-z]|[^\x00-\x7f])(?:\w|[^\x00-\x7f])*' + + flags = re.IGNORECASE | re.DOTALL | re.MULTILINE + tokens = { + 'root': [ + (r'<\?(php)?', Comment.Preproc, 'php'), + (r'[^<]+', Other), + (r'<', Other) + ], + 'php': [ + (r'\?>', Comment.Preproc, '#pop'), + (r'(<<<)([\'"]?)(' + _ident_nons + r')(\2\n.*?\n\s*)(\3)(;?)(\n)', + bygroups(String, String, String.Delimiter, String, String.Delimiter, + Punctuation, Text)), + (r'\s+', Text), + (r'#\[', Punctuation, 'attribute'), + (r'#.*?\n', Comment.Single), + (r'//.*?\n', Comment.Single), + # put the empty comment here, it is otherwise seen as + # the start of a docstring + (r'/\*\*/', Comment.Multiline), + (r'/\*\*.*?\*/', String.Doc), + (r'/\*.*?\*/', Comment.Multiline), + (r'(->|::)(\s*)(' + _ident_nons + ')', + bygroups(Operator, Text, Name.Attribute)), + (r'[~!%^&*+=|:.<>/@-]+', Operator), + (r'\?', Operator), # don't add to the charclass above! + (r'[\[\]{}();,]+', Punctuation), + (r'(new)(\s+)(class)\b', bygroups(Keyword, Text, Keyword)), + (r'(class)(\s+)', bygroups(Keyword, Text), 'classname'), + (r'(function)(\s*)(?=\()', bygroups(Keyword, Text)), + (r'(function)(\s+)(&?)(\s*)', + bygroups(Keyword, Text, Operator, Text), 'functionname'), + (r'(const)(\s+)(' + _ident_inner + ')', + bygroups(Keyword, Text, Name.Constant)), + (r'(and|E_PARSE|old_function|E_ERROR|or|as|E_WARNING|parent|' + r'eval|PHP_OS|break|exit|case|extends|PHP_VERSION|cfunction|' + r'FALSE|print|for|require|continue|foreach|require_once|' + r'declare|return|default|static|do|switch|die|stdClass|' + r'echo|else|TRUE|elseif|var|empty|if|xor|enddeclare|include|' + r'virtual|endfor|include_once|while|endforeach|global|' + r'endif|list|endswitch|new|endwhile|not|' + r'array|E_ALL|NULL|final|php_user_filter|interface|' + r'implements|public|private|protected|abstract|clone|try|' + r'catch|throw|this|use|namespace|trait|yield|' + r'finally|match)\b', Keyword), + (r'(true|false|null)\b', Keyword.Constant), + include('magicconstants'), + (r'\$\{', Name.Variable, 'variablevariable'), + (r'\$+' + _ident_inner, Name.Variable), + (_ident_inner, Name.Other), + (r'(\d+\.\d*|\d*\.\d+)(e[+-]?[0-9]+)?', Number.Float), + (r'\d+e[+-]?[0-9]+', Number.Float), + (r'0[0-7]+', Number.Oct), + (r'0x[a-f0-9]+', Number.Hex), + (r'\d+', Number.Integer), + (r'0b[01]+', Number.Bin), + (r"'([^'\\]*(?:\\.[^'\\]*)*)'", String.Single), + (r'`([^`\\]*(?:\\.[^`\\]*)*)`', String.Backtick), + (r'"', String.Double, 'string'), + ], + 'variablevariable': [ + (r'\}', Name.Variable, '#pop'), + include('php') + ], + 'magicfuncs': [ + # source: http://php.net/manual/en/language.oop5.magic.php + (words(( + '__construct', '__destruct', '__call', '__callStatic', '__get', '__set', + '__isset', '__unset', '__sleep', '__wakeup', '__toString', '__invoke', + '__set_state', '__clone', '__debugInfo',), suffix=r'\b'), + Name.Function.Magic), + ], + 'magicconstants': [ + # source: http://php.net/manual/en/language.constants.predefined.php + (words(( + '__LINE__', '__FILE__', '__DIR__', '__FUNCTION__', '__CLASS__', + '__TRAIT__', '__METHOD__', '__NAMESPACE__',), + suffix=r'\b'), + Name.Constant), + ], + 'classname': [ + (_ident_inner, Name.Class, '#pop') + ], + 'functionname': [ + include('magicfuncs'), + (_ident_inner, Name.Function, '#pop'), + default('#pop') + ], + 'string': [ + (r'"', String.Double, '#pop'), + (r'[^{$"\\]+', String.Double), + (r'\\([nrt"$\\]|[0-7]{1,3}|x[0-9a-f]{1,2})', String.Escape), + (r'\$' + _ident_nons + r'(\[\S+?\]|->' + _ident_nons + ')?', + String.Interpol), + (r'(\{\$\{)(.*?)(\}\})', + bygroups(String.Interpol, using(this, _startinline=True), + String.Interpol)), + (r'(\{)(\$.*?)(\})', + bygroups(String.Interpol, using(this, _startinline=True), + String.Interpol)), + (r'(\$\{)(\S+)(\})', + bygroups(String.Interpol, Name.Variable, String.Interpol)), + (r'[${\\]', String.Double) + ], + 'attribute': [ + (r'\]', Punctuation, '#pop'), + (r'\(', Punctuation, 'attributeparams'), + (_ident_inner, Name.Decorator), + include('php') + ], + 'attributeparams': [ + (r'\)', Punctuation, '#pop'), + include('php') + ], + } + + def __init__(self, **options): + self.funcnamehighlighting = get_bool_opt( + options, 'funcnamehighlighting', True) + self.disabledmodules = get_list_opt( + options, 'disabledmodules', ['unknown']) + self.startinline = get_bool_opt(options, 'startinline', False) + + # private option argument for the lexer itself + if '_startinline' in options: + self.startinline = options.pop('_startinline') + + # collect activated functions in a set + self._functions = set() + if self.funcnamehighlighting: + from pygments.lexers._php_builtins import MODULES + for key, value in MODULES.items(): + if key not in self.disabledmodules: + self._functions.update(value) + RegexLexer.__init__(self, **options) + + def get_tokens_unprocessed(self, text): + stack = ['root'] + if self.startinline: + stack.append('php') + for index, token, value in \ + RegexLexer.get_tokens_unprocessed(self, text, stack): + if token is Name.Other: + if value in self._functions: + yield index, Name.Builtin, value + continue + yield index, token, value + + def analyse_text(text): + if shebang_matches(text, r'php'): + return True + rv = 0.0 + if re.search(r'<\?(?!xml)', text): + rv += 0.3 + return rv diff --git a/shared/package-files/6f/6f8cd5d90d9db95b317aa5b12ee6ab2d36b483331f2b5e5375e6d591e74980a3/_make_dep_token_cpu_dispatch.h b/shared/package-files/6f/6f8cd5d90d9db95b317aa5b12ee6ab2d36b483331f2b5e5375e6d591e74980a3/_make_dep_token_cpu_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..67edd6bd5848407b82f82384717b9c07e3488ff7 --- /dev/null +++ b/shared/package-files/6f/6f8cd5d90d9db95b317aa5b12ee6ab2d36b483331f2b5e5375e6d591e74980a3/_make_dep_token_cpu_dispatch.h @@ -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 at::Tensor _make_dep_token(at::TensorOptions options={}, c10::optional memory_format=c10::nullopt); +TORCH_API at::Tensor _make_dep_token(c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory, c10::optional memory_format); + +} // namespace cpu +} // namespace at diff --git a/shared/package-files/6f/6f8ed5cb07689a8397e8a98c9b3f7e8afd88a95232770292b94c36a569451eb6/test_functions.py b/shared/package-files/6f/6f8ed5cb07689a8397e8a98c9b3f7e8afd88a95232770292b94c36a569451eb6/test_functions.py new file mode 100644 index 0000000000000000000000000000000000000000..3bfe852f008173eb636c147abc83d71dbdd4d23a --- /dev/null +++ b/shared/package-files/6f/6f8ed5cb07689a8397e8a98c9b3f7e8afd88a95232770292b94c36a569451eb6/test_functions.py @@ -0,0 +1,920 @@ +from mpmath.libmp import * +from mpmath import * +import random +import time +import math +import cmath + +def mpc_ae(a, b, eps=eps): + res = True + res = res and a.real.ae(b.real, eps) + res = res and a.imag.ae(b.imag, eps) + return res + +#---------------------------------------------------------------------------- +# Constants and functions +# + +tpi = "3.1415926535897932384626433832795028841971693993751058209749445923078\ +1640628620899862803482534211706798" +te = "2.71828182845904523536028747135266249775724709369995957496696762772407\ +663035354759457138217852516642743" +tdegree = "0.017453292519943295769236907684886127134428718885417254560971914\ +4017100911460344944368224156963450948221" +teuler = "0.5772156649015328606065120900824024310421593359399235988057672348\ +84867726777664670936947063291746749516" +tln2 = "0.693147180559945309417232121458176568075500134360255254120680009493\ +393621969694715605863326996418687542" +tln10 = "2.30258509299404568401799145468436420760110148862877297603332790096\ +757260967735248023599720508959829834" +tcatalan = "0.91596559417721901505460351493238411077414937428167213426649811\ +9621763019776254769479356512926115106249" +tkhinchin = "2.6854520010653064453097148354817956938203822939944629530511523\ +4555721885953715200280114117493184769800" +tglaisher = "1.2824271291006226368753425688697917277676889273250011920637400\ +2174040630885882646112973649195820237439420646" +tapery = "1.2020569031595942853997381615114499907649862923404988817922715553\ +4183820578631309018645587360933525815" +tphi = "1.618033988749894848204586834365638117720309179805762862135448622705\ +26046281890244970720720418939113748475" +tmertens = "0.26149721284764278375542683860869585905156664826119920619206421\ +3924924510897368209714142631434246651052" +ttwinprime = "0.660161815846869573927812110014555778432623360284733413319448\ +423335405642304495277143760031413839867912" + +def test_constants(): + for prec in [3, 7, 10, 15, 20, 37, 80, 100, 29]: + mp.dps = prec + assert pi == mpf(tpi) + assert e == mpf(te) + assert degree == mpf(tdegree) + assert euler == mpf(teuler) + assert ln2 == mpf(tln2) + assert ln10 == mpf(tln10) + assert catalan == mpf(tcatalan) + assert khinchin == mpf(tkhinchin) + assert glaisher == mpf(tglaisher) + assert phi == mpf(tphi) + if prec < 50: + assert mertens == mpf(tmertens) + assert twinprime == mpf(ttwinprime) + mp.dps = 15 + assert pi >= -1 + assert pi > 2 + assert pi > 3 + assert pi < 4 + +def test_exact_sqrts(): + for i in range(20000): + assert sqrt(mpf(i*i)) == i + random.seed(1) + for prec in [100, 300, 1000, 10000]: + mp.dps = prec + for i in range(20): + A = random.randint(10**(prec//2-2), 10**(prec//2-1)) + assert sqrt(mpf(A*A)) == A + mp.dps = 15 + for i in range(100): + for a in [1, 8, 25, 112307]: + assert sqrt(mpf((a*a, 2*i))) == mpf((a, i)) + assert sqrt(mpf((a*a, -2*i))) == mpf((a, -i)) + +def test_sqrt_rounding(): + for i in [2, 3, 5, 6, 7, 8, 10, 11, 12, 13, 14, 15]: + i = from_int(i) + for dps in [7, 15, 83, 106, 2000]: + mp.dps = dps + a = mpf_pow_int(mpf_sqrt(i, mp.prec, round_down), 2, mp.prec, round_down) + b = mpf_pow_int(mpf_sqrt(i, mp.prec, round_up), 2, mp.prec, round_up) + assert mpf_lt(a, i) + assert mpf_gt(b, i) + random.seed(1234) + prec = 100 + for rnd in [round_down, round_nearest, round_ceiling]: + for i in range(100): + a = mpf_rand(prec) + b = mpf_mul(a, a) + assert mpf_sqrt(b, prec, rnd) == a + # Test some extreme cases + mp.dps = 100 + a = mpf(9) + 1e-90 + b = mpf(9) - 1e-90 + mp.dps = 15 + assert sqrt(a, rounding='d') == 3 + assert sqrt(a, rounding='n') == 3 + assert sqrt(a, rounding='u') > 3 + assert sqrt(b, rounding='d') < 3 + assert sqrt(b, rounding='n') == 3 + assert sqrt(b, rounding='u') == 3 + # A worst case, from the MPFR test suite + assert sqrt(mpf('7.0503726185518891')) == mpf('2.655253776675949') + +def test_float_sqrt(): + mp.dps = 15 + # These should round identically + for x in [0, 1e-7, 0.1, 0.5, 1, 2, 3, 4, 5, 0.333, 76.19]: + assert sqrt(mpf(x)) == float(x)**0.5 + assert sqrt(-1) == 1j + assert sqrt(-2).ae(cmath.sqrt(-2)) + assert sqrt(-3).ae(cmath.sqrt(-3)) + assert sqrt(-100).ae(cmath.sqrt(-100)) + assert sqrt(1j).ae(cmath.sqrt(1j)) + assert sqrt(-1j).ae(cmath.sqrt(-1j)) + assert sqrt(math.pi + math.e*1j).ae(cmath.sqrt(math.pi + math.e*1j)) + assert sqrt(math.pi - math.e*1j).ae(cmath.sqrt(math.pi - math.e*1j)) + +def test_hypot(): + assert hypot(0, 0) == 0 + assert hypot(0, 0.33) == mpf(0.33) + assert hypot(0.33, 0) == mpf(0.33) + assert hypot(-0.33, 0) == mpf(0.33) + assert hypot(3, 4) == mpf(5) + +def test_exact_cbrt(): + for i in range(0, 20000, 200): + assert cbrt(mpf(i*i*i)) == i + random.seed(1) + for prec in [100, 300, 1000, 10000]: + mp.dps = prec + A = random.randint(10**(prec//2-2), 10**(prec//2-1)) + assert cbrt(mpf(A*A*A)) == A + mp.dps = 15 + +def test_exp(): + assert exp(0) == 1 + assert exp(10000).ae(mpf('8.8068182256629215873e4342')) + assert exp(-10000).ae(mpf('1.1354838653147360985e-4343')) + a = exp(mpf((1, 8198646019315405, -53, 53))) + assert(a.bc == bitcount(a.man)) + mp.prec = 67 + a = exp(mpf((1, 1781864658064754565, -60, 61))) + assert(a.bc == bitcount(a.man)) + mp.prec = 53 + assert exp(ln2 * 10).ae(1024) + assert exp(2+2j).ae(cmath.exp(2+2j)) + +def test_issue_73(): + mp.dps = 512 + a = exp(-1) + b = exp(1) + mp.dps = 15 + assert (+a).ae(0.36787944117144233) + assert (+b).ae(2.7182818284590451) + +def test_log(): + mp.dps = 15 + assert log(1) == 0 + for x in [0.5, 1.5, 2.0, 3.0, 100, 10**50, 1e-50]: + assert log(x).ae(math.log(x)) + assert log(x, x) == 1 + assert log(1024, 2) == 10 + assert log(10**1234, 10) == 1234 + assert log(2+2j).ae(cmath.log(2+2j)) + # Accuracy near 1 + assert (log(0.6+0.8j).real*10**17).ae(2.2204460492503131) + assert (log(0.6-0.8j).real*10**17).ae(2.2204460492503131) + assert (log(0.8-0.6j).real*10**17).ae(2.2204460492503131) + assert (log(1+1e-8j).real*10**16).ae(0.5) + assert (log(1-1e-8j).real*10**16).ae(0.5) + assert (log(-1+1e-8j).real*10**16).ae(0.5) + assert (log(-1-1e-8j).real*10**16).ae(0.5) + assert (log(1j+1e-8).real*10**16).ae(0.5) + assert (log(1j-1e-8).real*10**16).ae(0.5) + assert (log(-1j+1e-8).real*10**16).ae(0.5) + assert (log(-1j-1e-8).real*10**16).ae(0.5) + assert (log(1+1e-40j).real*10**80).ae(0.5) + assert (log(1j+1e-40).real*10**80).ae(0.5) + # Huge + assert log(ldexp(1.234,10**20)).ae(log(2)*1e20) + assert log(ldexp(1.234,10**200)).ae(log(2)*1e200) + # Some special values + assert log(mpc(0,0)) == mpc(-inf,0) + assert isnan(log(mpc(nan,0)).real) + assert isnan(log(mpc(nan,0)).imag) + assert isnan(log(mpc(0,nan)).real) + assert isnan(log(mpc(0,nan)).imag) + assert isnan(log(mpc(nan,1)).real) + assert isnan(log(mpc(nan,1)).imag) + assert isnan(log(mpc(1,nan)).real) + assert isnan(log(mpc(1,nan)).imag) + +def test_trig_hyperb_basic(): + for x in (list(range(100)) + list(range(-100,0))): + t = x / 4.1 + assert cos(mpf(t)).ae(math.cos(t)) + assert sin(mpf(t)).ae(math.sin(t)) + assert tan(mpf(t)).ae(math.tan(t)) + assert cosh(mpf(t)).ae(math.cosh(t)) + assert sinh(mpf(t)).ae(math.sinh(t)) + assert tanh(mpf(t)).ae(math.tanh(t)) + assert sin(1+1j).ae(cmath.sin(1+1j)) + assert sin(-4-3.6j).ae(cmath.sin(-4-3.6j)) + assert cos(1+1j).ae(cmath.cos(1+1j)) + assert cos(-4-3.6j).ae(cmath.cos(-4-3.6j)) + +def test_degrees(): + assert cos(0*degree) == 1 + assert cos(90*degree).ae(0) + assert cos(180*degree).ae(-1) + assert cos(270*degree).ae(0) + assert cos(360*degree).ae(1) + assert sin(0*degree) == 0 + assert sin(90*degree).ae(1) + assert sin(180*degree).ae(0) + assert sin(270*degree).ae(-1) + assert sin(360*degree).ae(0) + +def random_complexes(N): + random.seed(1) + a = [] + for i in range(N): + x1 = random.uniform(-10, 10) + y1 = random.uniform(-10, 10) + x2 = random.uniform(-10, 10) + y2 = random.uniform(-10, 10) + z1 = complex(x1, y1) + z2 = complex(x2, y2) + a.append((z1, z2)) + return a + +def test_complex_powers(): + for dps in [15, 30, 100]: + # Check accuracy for complex square root + mp.dps = dps + a = mpc(1j)**0.5 + assert a.real == a.imag == mpf(2)**0.5 / 2 + mp.dps = 15 + random.seed(1) + for (z1, z2) in random_complexes(100): + assert (mpc(z1)**mpc(z2)).ae(z1**z2, 1e-12) + assert (e**(-pi*1j)).ae(-1) + mp.dps = 50 + assert (e**(-pi*1j)).ae(-1) + mp.dps = 15 + +def test_complex_sqrt_accuracy(): + def test_mpc_sqrt(lst): + for a, b in lst: + z = mpc(a + j*b) + assert mpc_ae(sqrt(z*z), z) + z = mpc(-a + j*b) + assert mpc_ae(sqrt(z*z), -z) + z = mpc(a - j*b) + assert mpc_ae(sqrt(z*z), z) + z = mpc(-a - j*b) + assert mpc_ae(sqrt(z*z), -z) + random.seed(2) + N = 10 + mp.dps = 30 + dps = mp.dps + test_mpc_sqrt([(random.uniform(0, 10),random.uniform(0, 10)) for i in range(N)]) + test_mpc_sqrt([(i + 0.1, (i + 0.2)*10**i) for i in range(N)]) + mp.dps = 15 + +def test_atan(): + mp.dps = 15 + assert atan(-2.3).ae(math.atan(-2.3)) + assert atan(1e-50) == 1e-50 + assert atan(1e50).ae(pi/2) + assert atan(-1e-50) == -1e-50 + assert atan(-1e50).ae(-pi/2) + assert atan(10**1000).ae(pi/2) + for dps in [25, 70, 100, 300, 1000]: + mp.dps = dps + assert (4*atan(1)).ae(pi) + mp.dps = 15 + pi2 = pi/2 + assert atan(mpc(inf,-1)).ae(pi2) + assert atan(mpc(inf,0)).ae(pi2) + assert atan(mpc(inf,1)).ae(pi2) + assert atan(mpc(1,inf)).ae(pi2) + assert atan(mpc(0,inf)).ae(pi2) + assert atan(mpc(-1,inf)).ae(-pi2) + assert atan(mpc(-inf,1)).ae(-pi2) + assert atan(mpc(-inf,0)).ae(-pi2) + assert atan(mpc(-inf,-1)).ae(-pi2) + assert atan(mpc(-1,-inf)).ae(-pi2) + assert atan(mpc(0,-inf)).ae(-pi2) + assert atan(mpc(1,-inf)).ae(pi2) + +def test_atan2(): + mp.dps = 15 + assert atan2(1,1).ae(pi/4) + assert atan2(1,-1).ae(3*pi/4) + assert atan2(-1,-1).ae(-3*pi/4) + assert atan2(-1,1).ae(-pi/4) + assert atan2(-1,0).ae(-pi/2) + assert atan2(1,0).ae(pi/2) + assert atan2(0,0) == 0 + assert atan2(inf,0).ae(pi/2) + assert atan2(-inf,0).ae(-pi/2) + assert isnan(atan2(inf,inf)) + assert isnan(atan2(-inf,inf)) + assert isnan(atan2(inf,-inf)) + assert isnan(atan2(3,nan)) + assert isnan(atan2(nan,3)) + assert isnan(atan2(0,nan)) + assert isnan(atan2(nan,0)) + assert atan2(0,inf) == 0 + assert atan2(0,-inf).ae(pi) + assert atan2(10,inf) == 0 + assert atan2(-10,inf) == 0 + assert atan2(-10,-inf).ae(-pi) + assert atan2(10,-inf).ae(pi) + assert atan2(inf,10).ae(pi/2) + assert atan2(inf,-10).ae(pi/2) + assert atan2(-inf,10).ae(-pi/2) + assert atan2(-inf,-10).ae(-pi/2) + +def test_areal_inverses(): + assert asin(mpf(0)) == 0 + assert asinh(mpf(0)) == 0 + assert acosh(mpf(1)) == 0 + assert isinstance(asin(mpf(0.5)), mpf) + assert isinstance(asin(mpf(2.0)), mpc) + assert isinstance(acos(mpf(0.5)), mpf) + assert isinstance(acos(mpf(2.0)), mpc) + assert isinstance(atanh(mpf(0.1)), mpf) + assert isinstance(atanh(mpf(1.1)), mpc) + + random.seed(1) + for i in range(50): + x = random.uniform(0, 1) + assert asin(mpf(x)).ae(math.asin(x)) + assert acos(mpf(x)).ae(math.acos(x)) + + x = random.uniform(-10, 10) + assert asinh(mpf(x)).ae(cmath.asinh(x).real) + assert isinstance(asinh(mpf(x)), mpf) + x = random.uniform(1, 10) + assert acosh(mpf(x)).ae(cmath.acosh(x).real) + assert isinstance(acosh(mpf(x)), mpf) + x = random.uniform(-10, 0.999) + assert isinstance(acosh(mpf(x)), mpc) + + x = random.uniform(-1, 1) + assert atanh(mpf(x)).ae(cmath.atanh(x).real) + assert isinstance(atanh(mpf(x)), mpf) + + dps = mp.dps + mp.dps = 300 + assert isinstance(asin(0.5), mpf) + mp.dps = 1000 + assert asin(1).ae(pi/2) + assert asin(-1).ae(-pi/2) + mp.dps = dps + +def test_invhyperb_inaccuracy(): + mp.dps = 15 + assert (asinh(1e-5)*10**5).ae(0.99999999998333333) + assert (asinh(1e-10)*10**10).ae(1) + assert (asinh(1e-50)*10**50).ae(1) + assert (asinh(-1e-5)*10**5).ae(-0.99999999998333333) + assert (asinh(-1e-10)*10**10).ae(-1) + assert (asinh(-1e-50)*10**50).ae(-1) + assert asinh(10**20).ae(46.744849040440862) + assert asinh(-10**20).ae(-46.744849040440862) + assert (tanh(1e-10)*10**10).ae(1) + assert (tanh(-1e-10)*10**10).ae(-1) + assert (atanh(1e-10)*10**10).ae(1) + assert (atanh(-1e-10)*10**10).ae(-1) + +def test_complex_functions(): + for x in (list(range(10)) + list(range(-10,0))): + for y in (list(range(10)) + list(range(-10,0))): + z = complex(x, y)/4.3 + 0.01j + assert exp(mpc(z)).ae(cmath.exp(z)) + assert log(mpc(z)).ae(cmath.log(z)) + assert cos(mpc(z)).ae(cmath.cos(z)) + assert sin(mpc(z)).ae(cmath.sin(z)) + assert tan(mpc(z)).ae(cmath.tan(z)) + assert sinh(mpc(z)).ae(cmath.sinh(z)) + assert cosh(mpc(z)).ae(cmath.cosh(z)) + assert tanh(mpc(z)).ae(cmath.tanh(z)) + +def test_complex_inverse_functions(): + mp.dps = 15 + iv.dps = 15 + for (z1, z2) in random_complexes(30): + # apparently cmath uses a different branch, so we + # can't use it for comparison + assert sinh(asinh(z1)).ae(z1) + # + assert acosh(z1).ae(cmath.acosh(z1)) + assert atanh(z1).ae(cmath.atanh(z1)) + assert atan(z1).ae(cmath.atan(z1)) + # the reason we set a big eps here is that the cmath + # functions are inaccurate + assert asin(z1).ae(cmath.asin(z1), rel_eps=1e-12) + assert acos(z1).ae(cmath.acos(z1), rel_eps=1e-12) + one = mpf(1) + for i in range(-9, 10, 3): + for k in range(-9, 10, 3): + a = 0.9*j*10**k + 0.8*one*10**i + b = cos(acos(a)) + assert b.ae(a) + b = sin(asin(a)) + assert b.ae(a) + one = mpf(1) + err = 2*10**-15 + for i in range(-9, 9, 3): + for k in range(-9, 9, 3): + a = -0.9*10**k + j*0.8*one*10**i + b = cosh(acosh(a)) + assert b.ae(a, err) + b = sinh(asinh(a)) + assert b.ae(a, err) + +def test_reciprocal_functions(): + assert sec(3).ae(-1.01010866590799375) + assert csc(3).ae(7.08616739573718592) + assert cot(3).ae(-7.01525255143453347) + assert sech(3).ae(0.0993279274194332078) + assert csch(3).ae(0.0998215696688227329) + assert coth(3).ae(1.00496982331368917) + assert asec(3).ae(1.23095941734077468) + assert acsc(3).ae(0.339836909454121937) + assert acot(3).ae(0.321750554396642193) + assert asech(0.5).ae(1.31695789692481671) + assert acsch(3).ae(0.327450150237258443) + assert acoth(3).ae(0.346573590279972655) + assert acot(0).ae(1.5707963267948966192) + assert acoth(0).ae(1.5707963267948966192j) + +def test_ldexp(): + mp.dps = 15 + assert ldexp(mpf(2.5), 0) == 2.5 + assert ldexp(mpf(2.5), -1) == 1.25 + assert ldexp(mpf(2.5), 2) == 10 + assert ldexp(mpf('inf'), 3) == mpf('inf') + +def test_frexp(): + mp.dps = 15 + assert frexp(0) == (0.0, 0) + assert frexp(9) == (0.5625, 4) + assert frexp(1) == (0.5, 1) + assert frexp(0.2) == (0.8, -2) + assert frexp(1000) == (0.9765625, 10) + +def test_aliases(): + assert ln(7) == log(7) + assert log10(3.75) == log(3.75,10) + assert degrees(5.6) == 5.6 / degree + assert radians(5.6) == 5.6 * degree + assert power(-1,0.5) == j + assert fmod(25,7) == 4.0 and isinstance(fmod(25,7), mpf) + +def test_arg_sign(): + assert arg(3) == 0 + assert arg(-3).ae(pi) + assert arg(j).ae(pi/2) + assert arg(-j).ae(-pi/2) + assert arg(0) == 0 + assert isnan(atan2(3,nan)) + assert isnan(atan2(nan,3)) + assert isnan(atan2(0,nan)) + assert isnan(atan2(nan,0)) + assert isnan(atan2(nan,nan)) + assert arg(inf) == 0 + assert arg(-inf).ae(pi) + assert isnan(arg(nan)) + #assert arg(inf*j).ae(pi/2) + assert sign(0) == 0 + assert sign(3) == 1 + assert sign(-3) == -1 + assert sign(inf) == 1 + assert sign(-inf) == -1 + assert isnan(sign(nan)) + assert sign(j) == j + assert sign(-3*j) == -j + assert sign(1+j).ae((1+j)/sqrt(2)) + +def test_misc_bugs(): + # test that this doesn't raise an exception + mp.dps = 1000 + log(1302) + mp.dps = 15 + +def test_arange(): + assert arange(10) == [mpf('0.0'), mpf('1.0'), mpf('2.0'), mpf('3.0'), + mpf('4.0'), mpf('5.0'), mpf('6.0'), mpf('7.0'), + mpf('8.0'), mpf('9.0')] + assert arange(-5, 5) == [mpf('-5.0'), mpf('-4.0'), mpf('-3.0'), + mpf('-2.0'), mpf('-1.0'), mpf('0.0'), + mpf('1.0'), mpf('2.0'), mpf('3.0'), mpf('4.0')] + assert arange(0, 1, 0.1) == [mpf('0.0'), mpf('0.10000000000000001'), + mpf('0.20000000000000001'), + mpf('0.30000000000000004'), + mpf('0.40000000000000002'), + mpf('0.5'), mpf('0.60000000000000009'), + mpf('0.70000000000000007'), + mpf('0.80000000000000004'), + mpf('0.90000000000000002')] + assert arange(17, -9, -3) == [mpf('17.0'), mpf('14.0'), mpf('11.0'), + mpf('8.0'), mpf('5.0'), mpf('2.0'), + mpf('-1.0'), mpf('-4.0'), mpf('-7.0')] + assert arange(0.2, 0.1, -0.1) == [mpf('0.20000000000000001')] + assert arange(0) == [] + assert arange(1000, -1) == [] + assert arange(-1.23, 3.21, -0.0000001) == [] + +def test_linspace(): + assert linspace(2, 9, 7) == [mpf('2.0'), mpf('3.166666666666667'), + mpf('4.3333333333333339'), mpf('5.5'), mpf('6.666666666666667'), + mpf('7.8333333333333339'), mpf('9.0')] + assert linspace(2, 9, 7, endpoint=0) == [mpf('2.0'), mpf('3.0'), mpf('4.0'), + mpf('5.0'), mpf('6.0'), mpf('7.0'), mpf('8.0')] + assert linspace(2, 7, 1) == [mpf(2)] + +def test_float_cbrt(): + mp.dps = 30 + for a in arange(0,10,0.1): + assert cbrt(a*a*a).ae(a, eps) + assert cbrt(-1).ae(0.5 + j*sqrt(3)/2) + one_third = mpf(1)/3 + for a in arange(0,10,2.7) + [0.1 + 10**5]: + a = mpc(a + 1.1j) + r1 = cbrt(a) + mp.dps += 10 + r2 = pow(a, one_third) + mp.dps -= 10 + assert r1.ae(r2, eps) + mp.dps = 100 + for n in range(100, 301, 100): + w = 10**n + j*10**-3 + z = w*w*w + r = cbrt(z) + assert mpc_ae(r, w, eps) + mp.dps = 15 + +def test_root(): + mp.dps = 30 + random.seed(1) + a = random.randint(0, 10000) + p = a*a*a + r = nthroot(mpf(p), 3) + assert r == a + for n in range(4, 10): + p = p*a + assert nthroot(mpf(p), n) == a + mp.dps = 40 + for n in range(10, 5000, 100): + for a in [random.random()*10000, random.random()*10**100]: + r = nthroot(a, n) + r1 = pow(a, mpf(1)/n) + assert r.ae(r1) + r = nthroot(a, -n) + r1 = pow(a, -mpf(1)/n) + assert r.ae(r1) + # XXX: this is broken right now + # tests for nthroot rounding + for rnd in ['nearest', 'up', 'down']: + mp.rounding = rnd + for n in [-5, -3, 3, 5]: + prec = 50 + for i in range(10): + mp.prec = prec + a = rand() + mp.prec = 2*prec + b = a**n + mp.prec = prec + r = nthroot(b, n) + assert r == a + mp.dps = 30 + for n in range(3, 21): + a = (random.random() + j*random.random()) + assert nthroot(a, n).ae(pow(a, mpf(1)/n)) + assert mpc_ae(nthroot(a, n), pow(a, mpf(1)/n)) + a = (random.random()*10**100 + j*random.random()) + r = nthroot(a, n) + mp.dps += 4 + r1 = pow(a, mpf(1)/n) + mp.dps -= 4 + assert r.ae(r1) + assert mpc_ae(r, r1, eps) + r = nthroot(a, -n) + mp.dps += 4 + r1 = pow(a, -mpf(1)/n) + mp.dps -= 4 + assert r.ae(r1) + assert mpc_ae(r, r1, eps) + mp.dps = 15 + assert nthroot(4, 1) == 4 + assert nthroot(4, 0) == 1 + assert nthroot(4, -1) == 0.25 + assert nthroot(inf, 1) == inf + assert nthroot(inf, 2) == inf + assert nthroot(inf, 3) == inf + assert nthroot(inf, -1) == 0 + assert nthroot(inf, -2) == 0 + assert nthroot(inf, -3) == 0 + assert nthroot(j, 1) == j + assert nthroot(j, 0) == 1 + assert nthroot(j, -1) == -j + assert isnan(nthroot(nan, 1)) + assert isnan(nthroot(nan, 0)) + assert isnan(nthroot(nan, -1)) + assert isnan(nthroot(inf, 0)) + assert root(2,3) == nthroot(2,3) + assert root(16,4,0) == 2 + assert root(16,4,1) == 2j + assert root(16,4,2) == -2 + assert root(16,4,3) == -2j + assert root(16,4,4) == 2 + assert root(-125,3,1) == -5 + +def test_issue_136(): + for dps in [20, 80]: + mp.dps = dps + r = nthroot(mpf('-1e-20'), 4) + assert r.ae(mpf(10)**(-5) * (1 + j) * mpf(2)**(-0.5)) + mp.dps = 80 + assert nthroot('-1e-3', 4).ae(mpf(10)**(-3./4) * (1 + j)/sqrt(2)) + assert nthroot('-1e-6', 4).ae((1 + j)/(10 * sqrt(20))) + # Check that this doesn't take eternity to compute + mp.dps = 20 + assert nthroot('-1e100000000', 4).ae((1+j)*mpf('1e25000000')/sqrt(2)) + mp.dps = 15 + +def test_mpcfun_real_imag(): + mp.dps = 15 + x = mpf(0.3) + y = mpf(0.4) + assert exp(mpc(x,0)) == exp(x) + assert exp(mpc(0,y)) == mpc(cos(y),sin(y)) + assert cos(mpc(x,0)) == cos(x) + assert sin(mpc(x,0)) == sin(x) + assert cos(mpc(0,y)) == cosh(y) + assert sin(mpc(0,y)) == mpc(0,sinh(y)) + assert cospi(mpc(x,0)) == cospi(x) + assert sinpi(mpc(x,0)) == sinpi(x) + assert cospi(mpc(0,y)).ae(cosh(pi*y)) + assert sinpi(mpc(0,y)).ae(mpc(0,sinh(pi*y))) + c, s = cospi_sinpi(mpc(x,0)) + assert c == cospi(x) + assert s == sinpi(x) + c, s = cospi_sinpi(mpc(0,y)) + assert c.ae(cosh(pi*y)) + assert s.ae(mpc(0,sinh(pi*y))) + c, s = cos_sin(mpc(x,0)) + assert c == cos(x) + assert s == sin(x) + c, s = cos_sin(mpc(0,y)) + assert c == cosh(y) + assert s == mpc(0,sinh(y)) + +def test_perturbation_rounding(): + mp.dps = 100 + a = pi/10**50 + b = -pi/10**50 + c = 1 + a + d = 1 + b + mp.dps = 15 + assert exp(a) == 1 + assert exp(a, rounding='c') > 1 + assert exp(b, rounding='c') == 1 + assert exp(a, rounding='f') == 1 + assert exp(b, rounding='f') < 1 + assert cos(a) == 1 + assert cos(a, rounding='c') == 1 + assert cos(b, rounding='c') == 1 + assert cos(a, rounding='f') < 1 + assert cos(b, rounding='f') < 1 + for f in [sin, atan, asinh, tanh]: + assert f(a) == +a + assert f(a, rounding='c') > a + assert f(a, rounding='f') < a + assert f(b) == +b + assert f(b, rounding='c') > b + assert f(b, rounding='f') < b + for f in [asin, tan, sinh, atanh]: + assert f(a) == +a + assert f(b) == +b + assert f(a, rounding='c') > a + assert f(b, rounding='c') > b + assert f(a, rounding='f') < a + assert f(b, rounding='f') < b + assert ln(c) == +a + assert ln(d) == +b + assert ln(c, rounding='c') > a + assert ln(c, rounding='f') < a + assert ln(d, rounding='c') > b + assert ln(d, rounding='f') < b + assert cosh(a) == 1 + assert cosh(b) == 1 + assert cosh(a, rounding='c') > 1 + assert cosh(b, rounding='c') > 1 + assert cosh(a, rounding='f') == 1 + assert cosh(b, rounding='f') == 1 + +def test_integer_parts(): + assert floor(3.2) == 3 + assert ceil(3.2) == 4 + assert floor(3.2+5j) == 3+5j + assert ceil(3.2+5j) == 4+5j + +def test_complex_parts(): + assert fabs('3') == 3 + assert fabs(3+4j) == 5 + assert re(3) == 3 + assert re(1+4j) == 1 + assert im(3) == 0 + assert im(1+4j) == 4 + assert conj(3) == 3 + assert conj(3+4j) == 3-4j + assert mpf(3).conjugate() == 3 + +def test_cospi_sinpi(): + assert sinpi(0) == 0 + assert sinpi(0.5) == 1 + assert sinpi(1) == 0 + assert sinpi(1.5) == -1 + assert sinpi(2) == 0 + assert sinpi(2.5) == 1 + assert sinpi(-0.5) == -1 + assert cospi(0) == 1 + assert cospi(0.5) == 0 + assert cospi(1) == -1 + assert cospi(1.5) == 0 + assert cospi(2) == 1 + assert cospi(2.5) == 0 + assert cospi(-0.5) == 0 + assert cospi(100000000000.25).ae(sqrt(2)/2) + a = cospi(2+3j) + assert a.real.ae(cos((2+3j)*pi).real) + assert a.imag == 0 + b = sinpi(2+3j) + assert b.imag.ae(sin((2+3j)*pi).imag) + assert b.real == 0 + mp.dps = 35 + x1 = mpf(10000) - mpf('1e-15') + x2 = mpf(10000) + mpf('1e-15') + x3 = mpf(10000.5) - mpf('1e-15') + x4 = mpf(10000.5) + mpf('1e-15') + x5 = mpf(10001) - mpf('1e-15') + x6 = mpf(10001) + mpf('1e-15') + x7 = mpf(10001.5) - mpf('1e-15') + x8 = mpf(10001.5) + mpf('1e-15') + mp.dps = 15 + M = 10**15 + assert (sinpi(x1)*M).ae(-pi) + assert (sinpi(x2)*M).ae(pi) + assert (cospi(x3)*M).ae(pi) + assert (cospi(x4)*M).ae(-pi) + assert (sinpi(x5)*M).ae(pi) + assert (sinpi(x6)*M).ae(-pi) + assert (cospi(x7)*M).ae(-pi) + assert (cospi(x8)*M).ae(pi) + assert 0.999 < cospi(x1, rounding='d') < 1 + assert 0.999 < cospi(x2, rounding='d') < 1 + assert 0.999 < sinpi(x3, rounding='d') < 1 + assert 0.999 < sinpi(x4, rounding='d') < 1 + assert -1 < cospi(x5, rounding='d') < -0.999 + assert -1 < cospi(x6, rounding='d') < -0.999 + assert -1 < sinpi(x7, rounding='d') < -0.999 + assert -1 < sinpi(x8, rounding='d') < -0.999 + assert (sinpi(1e-15)*M).ae(pi) + assert (sinpi(-1e-15)*M).ae(-pi) + assert cospi(1e-15) == 1 + assert cospi(1e-15, rounding='d') < 1 + +def test_expj(): + assert expj(0) == 1 + assert expj(1).ae(exp(j)) + assert expj(j).ae(exp(-1)) + assert expj(1+j).ae(exp(j*(1+j))) + assert expjpi(0) == 1 + assert expjpi(1).ae(exp(j*pi)) + assert expjpi(j).ae(exp(-pi)) + assert expjpi(1+j).ae(exp(j*pi*(1+j))) + assert expjpi(-10**15 * j).ae('2.22579818340535731e+1364376353841841') + +def test_sinc(): + assert sinc(0) == sincpi(0) == 1 + assert sinc(inf) == sincpi(inf) == 0 + assert sinc(-inf) == sincpi(-inf) == 0 + assert sinc(2).ae(0.45464871341284084770) + assert sinc(2+3j).ae(0.4463290318402435457-2.7539470277436474940j) + assert sincpi(2) == 0 + assert sincpi(1.5).ae(-0.212206590789193781) + +def test_fibonacci(): + mp.dps = 15 + assert [fibonacci(n) for n in range(-5, 10)] == \ + [5, -3, 2, -1, 1, 0, 1, 1, 2, 3, 5, 8, 13, 21, 34] + assert fib(2.5).ae(1.4893065462657091) + assert fib(3+4j).ae(-5248.51130728372 - 14195.962288353j) + assert fib(1000).ae(4.3466557686937455e+208) + assert str(fib(10**100)) == '6.24499112864607e+2089876402499787337692720892375554168224592399182109535392875613974104853496745963277658556235103534' + mp.dps = 2100 + a = fib(10000) + assert a % 10**10 == 9947366875 + mp.dps = 15 + assert fibonacci(inf) == inf + assert fib(3+0j) == 2 + +def test_call_with_dps(): + mp.dps = 15 + assert abs(exp(1, dps=30)-e(dps=35)) < 1e-29 + +def test_tanh(): + mp.dps = 15 + assert tanh(0) == 0 + assert tanh(inf) == 1 + assert tanh(-inf) == -1 + assert isnan(tanh(nan)) + assert tanh(mpc('inf', '0')) == 1 + +def test_atanh(): + mp.dps = 15 + assert atanh(0) == 0 + assert atanh(0.5).ae(0.54930614433405484570) + assert atanh(-0.5).ae(-0.54930614433405484570) + assert atanh(1) == inf + assert atanh(-1) == -inf + assert isnan(atanh(nan)) + assert isinstance(atanh(1), mpf) + assert isinstance(atanh(-1), mpf) + # Limits at infinity + jpi2 = j*pi/2 + assert atanh(inf).ae(-jpi2) + assert atanh(-inf).ae(jpi2) + assert atanh(mpc(inf,-1)).ae(-jpi2) + assert atanh(mpc(inf,0)).ae(-jpi2) + assert atanh(mpc(inf,1)).ae(jpi2) + assert atanh(mpc(1,inf)).ae(jpi2) + assert atanh(mpc(0,inf)).ae(jpi2) + assert atanh(mpc(-1,inf)).ae(jpi2) + assert atanh(mpc(-inf,1)).ae(jpi2) + assert atanh(mpc(-inf,0)).ae(jpi2) + assert atanh(mpc(-inf,-1)).ae(-jpi2) + assert atanh(mpc(-1,-inf)).ae(-jpi2) + assert atanh(mpc(0,-inf)).ae(-jpi2) + assert atanh(mpc(1,-inf)).ae(-jpi2) + +def test_expm1(): + mp.dps = 15 + assert expm1(0) == 0 + assert expm1(3).ae(exp(3)-1) + assert expm1(inf) == inf + assert expm1(1e-50).ae(1e-50) + assert (expm1(1e-10)*1e10).ae(1.00000000005) + +def test_log1p(): + mp.dps = 15 + assert log1p(0) == 0 + assert log1p(3).ae(log(1+3)) + assert log1p(inf) == inf + assert log1p(1e-50).ae(1e-50) + assert (log1p(1e-10)*1e10).ae(0.99999999995) + +def test_powm1(): + mp.dps = 15 + assert powm1(2,3) == 7 + assert powm1(-1,2) == 0 + assert powm1(-1,0) == 0 + assert powm1(-2,0) == 0 + assert powm1(3+4j,0) == 0 + assert powm1(0,1) == -1 + assert powm1(0,0) == 0 + assert powm1(1,0) == 0 + assert powm1(1,2) == 0 + assert powm1(1,3+4j) == 0 + assert powm1(1,5) == 0 + assert powm1(j,4) == 0 + assert powm1(-j,4) == 0 + assert (powm1(2,1e-100)*1e100).ae(ln2) + assert powm1(2,'1e-100000000000') != 0 + assert (powm1(fadd(1,1e-100,exact=True), 5)*1e100).ae(5) + +def test_unitroots(): + assert unitroots(1) == [1] + assert unitroots(2) == [1, -1] + a, b, c = unitroots(3) + assert a == 1 + assert b.ae(-0.5 + 0.86602540378443864676j) + assert c.ae(-0.5 - 0.86602540378443864676j) + assert unitroots(1, primitive=True) == [1] + assert unitroots(2, primitive=True) == [-1] + assert unitroots(3, primitive=True) == unitroots(3)[1:] + assert unitroots(4, primitive=True) == [j, -j] + assert len(unitroots(17, primitive=True)) == 16 + assert len(unitroots(16, primitive=True)) == 8 + +def test_cyclotomic(): + mp.dps = 15 + assert [cyclotomic(n,1) for n in range(31)] == [1,0,2,3,2,5,1,7,2,3,1,11,1,13,1,1,2,17,1,19,1,1,1,23,1,5,1,3,1,29,1] + assert [cyclotomic(n,-1) for n in range(31)] == [1,-2,0,1,2,1,3,1,2,1,5,1,1,1,7,1,2,1,3,1,1,1,11,1,1,1,13,1,1,1,1] + assert [cyclotomic(n,j) for n in range(21)] == [1,-1+j,1+j,j,0,1,-j,j,2,-j,1,j,3,1,-j,1,2,1,j,j,5] + assert [cyclotomic(n,-j) for n in range(21)] == [1,-1-j,1-j,-j,0,1,j,-j,2,j,1,-j,3,1,j,1,2,1,-j,-j,5] + assert cyclotomic(1624,j) == 1 + assert cyclotomic(33600,j) == 1 + u = sqrt(j, prec=500) + assert cyclotomic(8, u).ae(0) + assert cyclotomic(30, u).ae(5.8284271247461900976) + assert cyclotomic(2040, u).ae(1) + assert cyclotomic(0,2.5) == 1 + assert cyclotomic(1,2.5) == 2.5-1 + assert cyclotomic(2,2.5) == 2.5+1 + assert cyclotomic(3,2.5) == 2.5**2 + 2.5 + 1 + assert cyclotomic(7,2.5) == 406.234375 diff --git a/shared/package-files/6f/6f8faf3d77fbdc2096f8bbedfd58c3d58e7937a11f0d652b43a2b842a5597625/feedparser.py b/shared/package-files/6f/6f8faf3d77fbdc2096f8bbedfd58c3d58e7937a11f0d652b43a2b842a5597625/feedparser.py new file mode 100644 index 0000000000000000000000000000000000000000..97d3f5144d606ff8a69295af1fd4e8b008e348ab --- /dev/null +++ b/shared/package-files/6f/6f8faf3d77fbdc2096f8bbedfd58c3d58e7937a11f0d652b43a2b842a5597625/feedparser.py @@ -0,0 +1,536 @@ +# Copyright (C) 2004-2006 Python Software Foundation +# Authors: Baxter, Wouters and Warsaw +# Contact: email-sig@python.org + +"""FeedParser - An email feed parser. + +The feed parser implements an interface for incrementally parsing an email +message, line by line. This has advantages for certain applications, such as +those reading email messages off a socket. + +FeedParser.feed() is the primary interface for pushing new data into the +parser. It returns when there's nothing more it can do with the available +data. When you have no more data to push into the parser, call .close(). +This completes the parsing and returns the root message object. + +The other advantage of this parser is that it will never raise a parsing +exception. Instead, when it finds something unexpected, it adds a 'defect' to +the current message. Defects are just instances that live on the message +object's .defects attribute. +""" + +__all__ = ['FeedParser', 'BytesFeedParser'] + +import re + +from email import errors +from email._policybase import compat32 +from collections import deque +from io import StringIO + +NLCRE = re.compile(r'\r\n|\r|\n') +NLCRE_bol = re.compile(r'(\r\n|\r|\n)') +NLCRE_eol = re.compile(r'(\r\n|\r|\n)\Z') +NLCRE_crack = re.compile(r'(\r\n|\r|\n)') +# RFC 2822 $3.6.8 Optional fields. ftext is %d33-57 / %d59-126, Any character +# except controls, SP, and ":". +headerRE = re.compile(r'^(From |[\041-\071\073-\176]*:|[\t ])') +EMPTYSTRING = '' +NL = '\n' + +NeedMoreData = object() + + + +class BufferedSubFile(object): + """A file-ish object that can have new data loaded into it. + + You can also push and pop line-matching predicates onto a stack. When the + current predicate matches the current line, a false EOF response + (i.e. empty string) is returned instead. This lets the parser adhere to a + simple abstraction -- it parses until EOF closes the current message. + """ + def __init__(self): + # Text stream of the last partial line pushed into this object. + # See issue 22233 for why this is a text stream and not a list. + self._partial = StringIO(newline='') + # A deque of full, pushed lines + self._lines = deque() + # The stack of false-EOF checking predicates. + self._eofstack = [] + # A flag indicating whether the file has been closed or not. + self._closed = False + + def push_eof_matcher(self, pred): + self._eofstack.append(pred) + + def pop_eof_matcher(self): + return self._eofstack.pop() + + def close(self): + # Don't forget any trailing partial line. + self._partial.seek(0) + self.pushlines(self._partial.readlines()) + self._partial.seek(0) + self._partial.truncate() + self._closed = True + + def readline(self): + if not self._lines: + if self._closed: + return '' + return NeedMoreData + # Pop the line off the stack and see if it matches the current + # false-EOF predicate. + line = self._lines.popleft() + # RFC 2046, section 5.1.2 requires us to recognize outer level + # boundaries at any level of inner nesting. Do this, but be sure it's + # in the order of most to least nested. + for ateof in reversed(self._eofstack): + if ateof(line): + # We're at the false EOF. But push the last line back first. + self._lines.appendleft(line) + return '' + return line + + def unreadline(self, line): + # Let the consumer push a line back into the buffer. + assert line is not NeedMoreData + self._lines.appendleft(line) + + def push(self, data): + """Push some new data into this object.""" + self._partial.write(data) + if '\n' not in data and '\r' not in data: + # No new complete lines, wait for more. + return + + # Crack into lines, preserving the linesep characters. + self._partial.seek(0) + parts = self._partial.readlines() + self._partial.seek(0) + self._partial.truncate() + + # If the last element of the list does not end in a newline, then treat + # it as a partial line. We only check for '\n' here because a line + # ending with '\r' might be a line that was split in the middle of a + # '\r\n' sequence (see bugs 1555570 and 1721862). + if not parts[-1].endswith('\n'): + self._partial.write(parts.pop()) + self.pushlines(parts) + + def pushlines(self, lines): + self._lines.extend(lines) + + def __iter__(self): + return self + + def __next__(self): + line = self.readline() + if line == '': + raise StopIteration + return line + + + +class FeedParser: + """A feed-style parser of email.""" + + def __init__(self, _factory=None, *, policy=compat32): + """_factory is called with no arguments to create a new message obj + + 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.policy = policy + self._old_style_factory = False + if _factory is None: + if policy.message_factory is None: + from email.message import Message + self._factory = Message + else: + self._factory = policy.message_factory + else: + self._factory = _factory + try: + _factory(policy=self.policy) + except TypeError: + # Assume this is an old-style factory + self._old_style_factory = True + self._input = BufferedSubFile() + self._msgstack = [] + self._parse = self._parsegen().__next__ + self._cur = None + self._last = None + self._headersonly = False + + # Non-public interface for supporting Parser's headersonly flag + def _set_headersonly(self): + self._headersonly = True + + def feed(self, data): + """Push more data into the parser.""" + self._input.push(data) + self._call_parse() + + def _call_parse(self): + try: + self._parse() + except StopIteration: + pass + + def close(self): + """Parse all remaining data and return the root message object.""" + self._input.close() + self._call_parse() + root = self._pop_message() + assert not self._msgstack + # Look for final set of defects + if root.get_content_maintype() == 'multipart' \ + and not root.is_multipart(): + defect = errors.MultipartInvariantViolationDefect() + self.policy.handle_defect(root, defect) + return root + + def _new_message(self): + if self._old_style_factory: + msg = self._factory() + else: + msg = self._factory(policy=self.policy) + if self._cur and self._cur.get_content_type() == 'multipart/digest': + msg.set_default_type('message/rfc822') + if self._msgstack: + self._msgstack[-1].attach(msg) + self._msgstack.append(msg) + self._cur = msg + self._last = msg + + def _pop_message(self): + retval = self._msgstack.pop() + if self._msgstack: + self._cur = self._msgstack[-1] + else: + self._cur = None + return retval + + def _parsegen(self): + # Create a new message and start by parsing headers. + self._new_message() + headers = [] + # Collect the headers, searching for a line that doesn't match the RFC + # 2822 header or continuation pattern (including an empty line). + for line in self._input: + if line is NeedMoreData: + yield NeedMoreData + continue + if not headerRE.match(line): + # If we saw the RFC defined header/body separator + # (i.e. newline), just throw it away. Otherwise the line is + # part of the body so push it back. + if not NLCRE.match(line): + defect = errors.MissingHeaderBodySeparatorDefect() + self.policy.handle_defect(self._cur, defect) + self._input.unreadline(line) + break + headers.append(line) + # Done with the headers, so parse them and figure out what we're + # supposed to see in the body of the message. + self._parse_headers(headers) + # Headers-only parsing is a backwards compatibility hack, which was + # necessary in the older parser, which could raise errors. All + # remaining lines in the input are thrown into the message body. + if self._headersonly: + lines = [] + while True: + line = self._input.readline() + if line is NeedMoreData: + yield NeedMoreData + continue + if line == '': + break + lines.append(line) + self._cur.set_payload(EMPTYSTRING.join(lines)) + return + if self._cur.get_content_type() == 'message/delivery-status': + # message/delivery-status contains blocks of headers separated by + # a blank line. We'll represent each header block as a separate + # nested message object, but the processing is a bit different + # than standard message/* types because there is no body for the + # nested messages. A blank line separates the subparts. + while True: + self._input.push_eof_matcher(NLCRE.match) + for retval in self._parsegen(): + if retval is NeedMoreData: + yield NeedMoreData + continue + break + msg = self._pop_message() + # We need to pop the EOF matcher in order to tell if we're at + # the end of the current file, not the end of the last block + # of message headers. + self._input.pop_eof_matcher() + # The input stream must be sitting at the newline or at the + # EOF. We want to see if we're at the end of this subpart, so + # first consume the blank line, then test the next line to see + # if we're at this subpart's EOF. + while True: + line = self._input.readline() + if line is NeedMoreData: + yield NeedMoreData + continue + break + while True: + line = self._input.readline() + if line is NeedMoreData: + yield NeedMoreData + continue + break + if line == '': + break + # Not at EOF so this is a line we're going to need. + self._input.unreadline(line) + return + if self._cur.get_content_maintype() == 'message': + # The message claims to be a message/* type, then what follows is + # another RFC 2822 message. + for retval in self._parsegen(): + if retval is NeedMoreData: + yield NeedMoreData + continue + break + self._pop_message() + return + if self._cur.get_content_maintype() == 'multipart': + boundary = self._cur.get_boundary() + if boundary is None: + # The message /claims/ to be a multipart but it has not + # defined a boundary. That's a problem which we'll handle by + # reading everything until the EOF and marking the message as + # defective. + defect = errors.NoBoundaryInMultipartDefect() + self.policy.handle_defect(self._cur, defect) + lines = [] + for line in self._input: + if line is NeedMoreData: + yield NeedMoreData + continue + lines.append(line) + self._cur.set_payload(EMPTYSTRING.join(lines)) + return + # Make sure a valid content type was specified per RFC 2045:6.4. + if (str(self._cur.get('content-transfer-encoding', '8bit')).lower() + not in ('7bit', '8bit', 'binary')): + defect = errors.InvalidMultipartContentTransferEncodingDefect() + self.policy.handle_defect(self._cur, defect) + # Create a line match predicate which matches the inter-part + # boundary as well as the end-of-multipart boundary. Don't push + # this onto the input stream until we've scanned past the + # preamble. + separator = '--' + boundary + boundaryre = re.compile( + '(?P' + re.escape(separator) + + r')(?P--)?(?P[ \t]*)(?P\r\n|\r|\n)?$') + capturing_preamble = True + preamble = [] + linesep = False + close_boundary_seen = False + while True: + line = self._input.readline() + if line is NeedMoreData: + yield NeedMoreData + continue + if line == '': + break + mo = boundaryre.match(line) + if mo: + # If we're looking at the end boundary, we're done with + # this multipart. If there was a newline at the end of + # the closing boundary, then we need to initialize the + # epilogue with the empty string (see below). + if mo.group('end'): + close_boundary_seen = True + linesep = mo.group('linesep') + break + # We saw an inter-part boundary. Were we in the preamble? + if capturing_preamble: + if preamble: + # According to RFC 2046, the last newline belongs + # to the boundary. + lastline = preamble[-1] + eolmo = NLCRE_eol.search(lastline) + if eolmo: + preamble[-1] = lastline[:-len(eolmo.group(0))] + self._cur.preamble = EMPTYSTRING.join(preamble) + capturing_preamble = False + self._input.unreadline(line) + continue + # We saw a boundary separating two parts. Consume any + # multiple boundary lines that may be following. Our + # interpretation of RFC 2046 BNF grammar does not produce + # body parts within such double boundaries. + while True: + line = self._input.readline() + if line is NeedMoreData: + yield NeedMoreData + continue + mo = boundaryre.match(line) + if not mo: + self._input.unreadline(line) + break + # Recurse to parse this subpart; the input stream points + # at the subpart's first line. + self._input.push_eof_matcher(boundaryre.match) + for retval in self._parsegen(): + if retval is NeedMoreData: + yield NeedMoreData + continue + break + # Because of RFC 2046, the newline preceding the boundary + # separator actually belongs to the boundary, not the + # previous subpart's payload (or epilogue if the previous + # part is a multipart). + if self._last.get_content_maintype() == 'multipart': + epilogue = self._last.epilogue + if epilogue == '': + self._last.epilogue = None + elif epilogue is not None: + mo = NLCRE_eol.search(epilogue) + if mo: + end = len(mo.group(0)) + self._last.epilogue = epilogue[:-end] + else: + payload = self._last._payload + if isinstance(payload, str): + mo = NLCRE_eol.search(payload) + if mo: + payload = payload[:-len(mo.group(0))] + self._last._payload = payload + self._input.pop_eof_matcher() + self._pop_message() + # Set the multipart up for newline cleansing, which will + # happen if we're in a nested multipart. + self._last = self._cur + else: + # I think we must be in the preamble + assert capturing_preamble + preamble.append(line) + # We've seen either the EOF or the end boundary. If we're still + # capturing the preamble, we never saw the start boundary. Note + # that as a defect and store the captured text as the payload. + if capturing_preamble: + defect = errors.StartBoundaryNotFoundDefect() + self.policy.handle_defect(self._cur, defect) + self._cur.set_payload(EMPTYSTRING.join(preamble)) + epilogue = [] + for line in self._input: + if line is NeedMoreData: + yield NeedMoreData + continue + self._cur.epilogue = EMPTYSTRING.join(epilogue) + return + # If we're not processing the preamble, then we might have seen + # EOF without seeing that end boundary...that is also a defect. + if not close_boundary_seen: + defect = errors.CloseBoundaryNotFoundDefect() + self.policy.handle_defect(self._cur, defect) + return + # Everything from here to the EOF is epilogue. If the end boundary + # ended in a newline, we'll need to make sure the epilogue isn't + # None + if linesep: + epilogue = [''] + else: + epilogue = [] + for line in self._input: + if line is NeedMoreData: + yield NeedMoreData + continue + epilogue.append(line) + # Any CRLF at the front of the epilogue is not technically part of + # the epilogue. Also, watch out for an empty string epilogue, + # which means a single newline. + if epilogue: + firstline = epilogue[0] + bolmo = NLCRE_bol.match(firstline) + if bolmo: + epilogue[0] = firstline[len(bolmo.group(0)):] + self._cur.epilogue = EMPTYSTRING.join(epilogue) + return + # Otherwise, it's some non-multipart type, so the entire rest of the + # file contents becomes the payload. + lines = [] + for line in self._input: + if line is NeedMoreData: + yield NeedMoreData + continue + lines.append(line) + self._cur.set_payload(EMPTYSTRING.join(lines)) + + def _parse_headers(self, lines): + # Passed a list of lines that make up the headers for the current msg + lastheader = '' + lastvalue = [] + for lineno, line in enumerate(lines): + # Check for continuation + if line[0] in ' \t': + if not lastheader: + # The first line of the headers was a continuation. This + # is illegal, so let's note the defect, store the illegal + # line, and ignore it for purposes of headers. + defect = errors.FirstHeaderLineIsContinuationDefect(line) + self.policy.handle_defect(self._cur, defect) + continue + lastvalue.append(line) + continue + if lastheader: + self._cur.set_raw(*self.policy.header_source_parse(lastvalue)) + lastheader, lastvalue = '', [] + # Check for envelope header, i.e. unix-from + if line.startswith('From '): + if lineno == 0: + # Strip off the trailing newline + mo = NLCRE_eol.search(line) + if mo: + line = line[:-len(mo.group(0))] + self._cur.set_unixfrom(line) + continue + elif lineno == len(lines) - 1: + # Something looking like a unix-from at the end - it's + # probably the first line of the body, so push back the + # line and stop. + self._input.unreadline(line) + return + else: + # Weirdly placed unix-from line. Note this as a defect + # and ignore it. + defect = errors.MisplacedEnvelopeHeaderDefect(line) + self._cur.defects.append(defect) + continue + # Split the line on the colon separating field name from value. + # There will always be a colon, because if there wasn't the part of + # the parser that calls us would have started parsing the body. + i = line.find(':') + + # If the colon is on the start of the line the header is clearly + # malformed, but we might be able to salvage the rest of the + # message. Track the error but keep going. + if i == 0: + defect = errors.InvalidHeaderDefect("Missing header name.") + self._cur.defects.append(defect) + continue + + assert i>0, "_parse_headers fed line with no : and no leading WS" + lastheader = line[:i] + lastvalue = [line] + # Done with all the lines, so handle the last header. + if lastheader: + self._cur.set_raw(*self.policy.header_source_parse(lastvalue)) + + +class BytesFeedParser(FeedParser): + """Like FeedParser, but feed accepts bytes.""" + + def feed(self, data): + super().feed(data.decode('ascii', 'surrogateescape')) diff --git a/shared/package-files/6f/6f9b47957fb29d6b6733360440d8390d3cd8f340daf2943c4fc073c116ecd953/TableF18-2.csv b/shared/package-files/6f/6f9b47957fb29d6b6733360440d8390d3cd8f340daf2943c4fc073c116ecd953/TableF18-2.csv new file mode 100644 index 0000000000000000000000000000000000000000..152c1249e9cf17c6a7a2a03611250c21ff7a5eb5 --- /dev/null +++ b/shared/package-files/6f/6f9b47957fb29d6b6733360440d8390d3cd8f340daf2943c4fc073c116ecd953/TableF18-2.csv @@ -0,0 +1,841 @@ +MODE,TTME,INVC,INVT,GC,HINC,PSIZE +0,69,59,100,70,35,1 +0,34,31,372,71,35,1 +0,35,25,417,70,35,1 +1,0,10,180,30,35,1 +0,64,58,68,68,30,2 +0,44,31,354,84,30,2 +0,53,25,399,85,30,2 +1,0,11,255,50,30,2 +0,69,115,125,129,40,1 +0,34,98,892,195,40,1 +0,35,53,882,149,40,1 +1,0,23,720,101,40,1 +0,64,49,68,59,70,3 +0,44,26,354,79,70,3 +0,53,21,399,81,70,3 +1,0,5,180,32,70,3 +0,64,60,144,82,45,2 +0,44,32,404,93,45,2 +0,53,26,449,94,45,2 +1,0,8,600,99,45,2 +0,69,59,100,70,20,1 +1,40,20,345,57,20,1 +0,35,13,417,58,20,1 +0,0,12,284,43,20,1 +1,45,148,115,160,45,1 +0,34,111,945,213,45,1 +0,35,66,935,167,45,1 +0,0,36,821,125,45,1 +0,69,121,152,137,12,1 +0,34,52,889,149,12,1 +0,35,50,879,146,12,1 +1,0,50,780,135,12,1 +0,69,59,100,70,40,1 +0,34,31,372,71,40,1 +0,35,25,417,70,40,1 +1,0,17,210,40,40,1 +0,69,58,68,65,70,2 +0,34,31,357,69,70,2 +0,35,25,402,68,70,2 +1,0,7,210,30,70,2 +0,64,58,68,68,15,2 +0,44,16,357,70,15,2 +0,53,13,402,73,15,2 +1,0,4,210,36,15,2 +0,64,62,108,79,35,2 +0,44,34,370,90,35,2 +0,53,28,415,91,35,2 +1,0,6,250,44,35,2 +0,64,45,114,63,50,4 +0,44,24,378,81,50,4 +0,53,19,423,83,50,4 +1,0,5,240,41,50,4 +0,64,58,94,72,40,1 +0,44,31,360,85,40,1 +0,53,25,405,86,40,1 +1,0,15,285,58,40,1 +0,64,83,169,109,26,4 +0,44,70,948,214,26,4 +0,53,47,938,189,26,4 +1,0,17,1200,199,26,4 +0,69,60,127,73,26,1 +1,20,19,325,55,26,1 +0,35,25,435,72,26,1 +0,0,14,350,52,26,1 +0,69,61,74,69,26,1 +1,15,38,255,66,26,1 +0,35,26,389,68,26,1 +0,0,13,315,47,26,1 +0,69,67,86,76,6,1 +1,20,21,300,54,6,1 +0,35,19,399,63,6,1 +0,0,17,327,53,6,1 +0,69,59,148,75,20,1 +1,45,18,305,51,20,1 +0,35,14,456,63,20,1 +0,0,16,427,62,20,1 +0,64,58,93,72,72,2 +1,10,28,305,75,72,2 +0,53,25,346,78,72,2 +0,0,9,316,57,72,2 +0,69,61,73,69,6,1 +1,20,21,305,54,6,1 +0,35,15,395,58,6,1 +0,0,13,314,47,6,1 +0,64,62,235,98,10,2 +1,45,45,465,116,10,2 +0,53,17,623,111,10,2 +0,0,13,559,98,10,2 +1,90,142,105,153,50,1 +0,34,71,596,136,50,1 +0,35,32,590,96,50,1 +0,0,33,577,96,50,1 +1,50,120,110,132,50,1 +0,34,70,596,135,50,1 +0,35,31,590,95,50,1 +0,0,33,577,96,50,1 +1,15,85,65,92,18,2 +0,34,15,361,55,18,2 +0,35,12,406,56,18,2 +0,0,9,296,41,18,2 +1,30,85,140,106,60,1 +0,44,90,928,231,60,1 +0,53,45,918,185,60,1 +0,0,86,902,223,60,1 +1,80,75,110,87,45,1 +0,34,70,638,140,45,1 +0,35,31,632,100,45,1 +0,0,39,581,102,45,1 +1,45,85,140,106,18,2 +0,44,39,664,139,18,2 +0,53,35,658,135,18,2 +0,0,19,592,109,18,2 +0,64,74,179,101,8,2 +1,60,43,320,91,8,2 +0,53,21,345,74,8,2 +0,0,9,321,58,8,2 +0,69,59,100,70,6,1 +1,2,11,285,42,6,1 +0,35,13,417,58,6,1 +0,0,13,284,44,6,1 +0,69,59,101,70,20,1 +1,5,17,300,50,20,1 +0,35,25,420,70,20,1 +0,0,13,297,45,20,1 +0,69,64,90,73,45,1 +1,15,32,325,67,45,1 +0,35,29,405,73,45,1 +0,0,18,327,54,45,1 +0,64,59,73,70,70,2 +1,45,29,290,73,70,2 +0,53,26,395,86,70,2 +0,0,9,314,57,70,2 +0,69,62,66,70,4,1 +1,10,31,295,63,4,1 +0,35,19,397,62,4,1 +0,0,17,307,50,4,1 +0,69,60,132,75,40,1 +1,15,15,330,50,40,1 +0,35,26,373,67,40,1 +0,0,12,309,46,40,1 +0,69,60,117,73,35,1 +1,10,23,325,58,35,1 +0,35,25,425,71,35,1 +0,0,17,307,50,35,1 +0,64,62,184,90,40,2 +1,45,24,360,79,40,2 +0,53,28,464,98,40,2 +0,0,11,427,76,40,2 +0,64,50,67,60,4,3 +1,30,31,265,71,4,3 +0,53,14,393,73,4,3 +0,0,6,308,53,4,3 +0,64,48,154,71,15,4 +1,55,25,360,80,15,4 +0,53,14,462,84,15,4 +0,0,4,351,57,15,4 +1,30,147,100,158,26,1 +0,34,96,678,169,26,1 +0,35,57,672,130,26,1 +0,0,28,629,96,26,1 +1,75,125,110,137,26,1 +0,34,70,596,135,26,1 +0,35,31,590,95,26,1 +0,0,24,577,87,26,1 +1,40,152,95,162,70,1 +0,34,73,600,138,70,1 +0,35,34,594,98,70,1 +0,0,24,587,88,70,1 +1,30,116,180,136,70,1 +0,34,71,657,142,70,1 +0,35,32,651,102,70,1 +0,0,29,629,97,70,1 +1,40,100,105,116,45,2 +0,44,70,622,165,45,2 +0,53,31,616,125,45,2 +0,0,17,577,105,45,2 +1,45,105,115,122,8,2 +0,44,35,622,130,8,2 +0,53,31,616,125,8,2 +0,0,12,577,100,8,2 +1,20,106,190,127,70,1 +0,34,72,659,143,70,1 +0,35,33,653,104,70,1 +0,0,44,592,108,70,1 +1,60,90,100,105,26,2 +0,44,69,596,160,26,2 +0,53,30,590,120,26,2 +0,0,13,577,101,26,2 +1,40,48,115,60,50,1 +0,34,31,365,70,50,1 +0,35,25,410,69,50,1 +0,0,16,308,49,50,1 +1,50,69,85,82,10,3 +0,44,16,344,68,10,3 +0,53,13,389,72,10,3 +0,0,4,315,52,10,3 +1,75,99,135,114,30,1 +0,34,96,678,169,30,1 +0,35,57,672,130,30,1 +0,0,29,629,97,30,1 +1,90,64,155,88,60,2 +0,44,74,678,177,60,2 +0,53,35,672,137,60,2 +0,0,20,629,115,60,2 +1,85,105,85,118,30,4 +0,44,56,665,156,30,4 +0,53,35,659,135,30,4 +0,0,8,587,97,30,4 +0,69,60,123,73,30,1 +1,15,24,365,64,30,1 +0,35,25,430,71,30,1 +0,0,13,332,49,30,1 +0,64,58,90,72,50,2 +1,30,22,340,74,50,2 +0,53,25,417,88,50,2 +0,0,9,334,60,50,2 +0,64,45,73,56,6,4 +1,15,22,290,66,6,4 +0,53,13,395,73,6,4 +0,0,5,314,53,6,4 +0,69,108,170,126,30,1 +1,30,31,875,126,30,1 +0,35,44,887,140,30,1 +0,0,50,884,146,30,1 +0,69,110,249,137,12,1 +1,45,22,890,119,12,1 +0,35,47,955,151,12,1 +0,0,38,990,146,12,1 +0,64,115,138,136,36,2 +1,10,44,830,170,36,2 +0,53,50,869,182,36,2 +0,0,18,862,149,36,2 +0,69,117,147,133,30,1 +1,40,59,790,145,30,1 +0,35,48,885,144,30,1 +0,0,38,883,134,30,1 +0,64,88,119,106,35,3 +1,50,78,775,196,35,3 +0,53,43,840,170,35,3 +0,0,16,855,146,35,3 +0,69,105,196,126,6,1 +1,40,43,895,140,6,1 +0,35,44,919,144,6,1 +0,0,50,935,152,6,1 +0,64,120,333,170,6,1 +1,25,28,870,160,6,1 +0,53,52,890,187,6,1 +0,0,38,921,178,6,1 +0,64,103,146,125,8,2 +1,25,36,875,169,8,2 +0,53,43,943,186,8,2 +0,0,19,887,154,8,2 +0,69,103,138,118,6,1 +1,5,22,800,109,6,1 +0,35,43,821,132,6,1 +0,0,36,846,128,6,1 +0,64,116,164,141,12,2 +1,75,89,685,193,12,2 +0,53,47,875,180,12,2 +0,0,19,874,152,12,2 +0,69,103,129,117,30,1 +0,34,88,925,189,30,1 +1,10,30,790,116,30,1 +0,0,50,887,146,30,1 +0,64,109,230,144,35,2 +0,44,101,1104,269,35,2 +0,53,56,1094,222,35,2 +1,0,26,960,172,35,2 +0,69,108,177,127,35,1 +0,34,92,907,191,35,1 +1,45,39,850,131,35,1 +0,0,52,865,146,35,1 +0,64,92,161,117,60,3 +1,40,73,792,193,60,3 +0,53,46,920,186,60,3 +0,0,16,887,151,60,3 +0,64,119,161,143,60,2 +1,45,75,765,191,60,2 +0,53,51,869,182,60,2 +0,0,19,898,155,60,2 +0,64,109,190,138,12,2 +1,40,24,399,85,12,2 +0,53,46,951,190,12,2 +0,0,27,897,163,12,2 +0,69,111,108,122,10,1 +1,30,30,760,113,10,1 +0,35,50,867,144,10,1 +0,0,47,844,139,10,1 +0,69,104,246,131,10,1 +1,25,23,830,113,10,1 +0,35,45,1068,161,10,1 +0,0,41,978,147,10,1 +0,69,104,200,126,15,1 +1,75,23,835,114,15,1 +0,35,43,846,135,15,1 +0,0,40,927,141,15,1 +0,64,124,160,148,10,2 +1,30,82,850,211,10,2 +0,53,54,893,189,10,2 +0,0,19,886,153,10,2 +0,64,103,145,125,8,1 +1,50,73,840,200,8,1 +0,53,43,892,178,8,1 +0,0,50,894,186,8,1 +0,69,103,125,116,30,1 +1,30,80,800,167,30,1 +0,35,42,844,134,30,1 +0,0,38,861,132,30,1 +0,64,113,163,137,20,2 +0,44,51,948,195,20,2 +0,53,49,938,191,20,2 +1,0,26,720,135,20,2 +0,64,76,147,98,70,5 +0,44,63,918,203,70,5 +0,53,44,908,182,70,5 +1,0,10,1440,228,70,5 +0,69,108,163,125,20,1 +0,34,89,905,187,20,1 +1,30,43,785,128,20,1 +0,0,35,879,130,20,1 +0,69,127,193,148,60,1 +0,34,109,888,205,60,1 +1,60,52,1025,163,60,1 +0,0,50,892,147,60,1 +0,64,44,100,59,70,4 +0,44,25,351,78,70,4 +0,53,20,361,75,70,4 +1,0,5,180,32,70,4 +0,69,59,98,69,8,1 +1,1,11,320,46,8,1 +0,35,13,413,57,8,1 +0,0,17,332,53,8,1 +0,69,59,114,72,30,1 +1,25,60,337,97,30,1 +0,35,25,423,71,30,1 +0,0,8,335,44,30,1 +1,25,65,140,86,70,2 +0,44,69,596,160,70,2 +0,53,30,590,120,70,2 +0,0,16,577,104,70,2 +0,69,60,67,67,60,1 +1,10,37,285,68,60,1 +0,35,28,400,72,60,1 +0,0,14,320,49,60,1 +0,64,59,118,77,20,2 +0,44,17,349,70,20,2 +0,53,14,359,68,20,2 +1,0,5,240,41,20,2 +0,69,61,72,69,15,1 +1,10,18,305,51,15,1 +0,35,27,396,70,15,1 +0,0,12,332,48,15,1 +0,64,59,118,77,30,2 +0,44,32,349,85,30,2 +0,53,26,359,80,30,2 +1,0,6,265,46,30,2 +0,64,60,74,71,26,2 +1,20,40,262,80,26,2 +0,53,26,389,85,26,2 +0,0,10,315,58,26,2 +0,64,44,93,58,35,4 +1,20,30,291,74,35,4 +0,53,19,346,72,35,4 +0,0,4,316,52,35,4 +0,69,58,124,71,12,1 +1,10,30,340,67,12,1 +0,35,25,427,71,12,1 +0,0,14,364,54,12,1 +0,64,84,108,100,70,2 +0,44,70,596,160,70,2 +0,53,31,590,120,70,2 +1,0,15,360,70,70,2 +1,30,145,90,158,50,1 +0,44,31,343,83,50,1 +0,53,25,388,84,50,1 +0,0,13,296,58,50,1 +1,45,121,100,136,40,2 +0,44,92,926,233,40,2 +0,53,47,916,186,40,2 +0,0,20,885,154,40,2 +1,30,84,180,103,70,1 +0,34,72,707,149,70,1 +0,35,33,701,109,70,1 +0,0,26,626,94,70,1 +0,69,61,146,77,10,1 +0,34,17,409,61,10,1 +1,5,31,300,64,10,1 +0,0,13,350,51,10,1 +1,45,180,160,197,26,1 +0,34,89,985,196,26,1 +0,35,44,975,150,26,1 +0,0,39,896,136,26,1 +0,64,94,231,129,50,3 +0,44,79,949,223,50,3 +1,40,32,1110,201,50,3 +0,0,13,942,156,50,3 +0,64,92,203,123,70,3 +0,44,77,961,223,70,3 +0,53,46,951,190,70,3 +1,0,17,780,135,70,3 +0,69,59,111,71,30,1 +0,34,31,376,72,30,1 +1,15,25,360,64,30,1 +0,0,23,351,61,30,1 +0,64,75,153,99,50,5 +0,44,64,900,201,50,5 +0,53,45,890,180,50,5 +1,0,13,720,122,50,5 +0,69,58,99,68,20,1 +0,34,16,366,55,20,1 +0,35,13,411,57,20,1 +1,0,13,300,46,20,1 +0,64,110,153,133,32,2 +0,44,91,874,223,32,2 +0,53,46,864,177,32,2 +1,0,21,960,167,32,2 +0,64,108,187,136,27,2 +0,44,90,932,231,27,2 +0,53,45,922,185,27,2 +1,0,20,1440,238,27,2 +0,69,104,179,123,30,1 +0,34,89,978,195,30,1 +1,30,28,795,114,30,1 +0,0,40,904,138,30,1 +0,69,108,180,128,35,1 +0,34,89,901,187,35,1 +0,35,44,891,141,35,1 +1,0,34,720,112,35,1 +0,64,78,146,100,40,4 +0,44,66,903,203,40,4 +0,53,43,893,178,40,4 +1,0,11,870,143,40,4 +0,64,60,144,82,60,2 +0,44,32,404,93,60,2 +0,53,26,449,94,60,2 +1,0,8,270,49,60,2 +0,64,78,175,105,40,4 +0,44,67,932,208,40,4 +0,53,44,922,183,40,4 +1,0,12,720,121,40,4 +0,69,67,108,79,70,1 +0,34,38,370,78,70,1 +0,35,32,415,77,70,1 +1,0,12,240,38,70,1 +0,64,108,200,139,70,2 +0,44,90,944,234,70,2 +0,53,45,934,187,70,2 +1,0,19,720,128,70,2 +1,60,108,80,120,30,2 +0,44,32,344,84,30,2 +0,53,26,389,85,30,2 +0,0,7,315,55,30,2 +1,30,58,90,72,35,2 +0,44,32,506,109,35,2 +0,53,26,551,110,35,2 +0,0,8,402,69,35,2 +1,55,69,115,81,60,1 +0,34,43,392,85,60,1 +0,35,37,437,84,60,1 +0,0,13,268,42,60,1 +1,40,66,105,77,45,1 +0,34,31,372,71,45,1 +0,35,25,417,70,45,1 +0,0,18,327,54,45,1 +0,69,57,67,65,45,1 +0,34,31,355,69,45,1 +1,40,18,245,45,45,1 +0,0,13,320,48,45,1 +0,69,129,185,149,6,1 +0,34,67,933,168,6,1 +1,20,54,820,143,6,1 +0,0,38,894,135,6,1 +1,90,151,95,161,36,1 +0,34,96,895,193,36,1 +0,35,51,885,147,36,1 +0,0,35,844,127,36,1 +1,10,70,85,80,20,1 +0,34,34,351,72,20,1 +0,35,28,396,71,20,1 +0,0,22,307,55,20,1 +1,25,75,100,90,20,2 +0,44,15,348,68,20,2 +0,53,12,393,72,20,2 +0,0,7,290,51,20,2 +1,99,110,260,138,26,1 +0,34,92,934,193,26,1 +0,35,47,924,147,26,1 +0,0,45,816,134,26,1 +1,30,94,195,115,29,1 +0,34,89,943,191,29,1 +0,35,44,933,145,29,1 +0,0,58,912,157,29,1 +1,35,95,155,119,8,2 +0,44,45,930,186,8,2 +0,53,43,920,183,8,2 +0,0,23,860,153,8,2 +0,69,104,178,123,32,1 +0,34,89,992,197,32,1 +1,15,38,675,111,32,1 +0,0,39,900,137,32,1 +0,64,103,170,129,45,2 +0,44,88,889,222,45,2 +1,30,35,770,152,45,2 +0,0,18,905,155,45,2 +0,64,86,167,112,45,3 +0,44,75,972,222,45,3 +0,53,44,962,190,45,3 +1,0,13,870,145,45,3 +0,64,108,139,129,26,2 +0,44,90,862,220,26,2 +1,30,36,780,154,26,2 +0,0,18,875,151,26,2 +0,69,59,106,71,60,1 +0,34,31,372,71,60,1 +0,35,25,417,70,60,1 +1,0,13,300,46,60,1 +0,64,58,124,77,10,2 +1,10,35,380,92,10,2 +0,53,13,427,78,10,2 +0,0,8,364,63,10,2 +0,64,107,153,131,45,2 +0,44,89,880,222,45,2 +0,53,44,870,176,45,2 +1,0,2,660,102,45,2 +0,64,86,143,108,60,3 +0,44,74,880,207,60,3 +0,53,43,870,175,60,3 +1,0,16,660,116,60,3 +0,69,108,196,129,60,1 +0,34,91,967,196,60,1 +1,15,35,935,136,60,1 +0,0,38,903,136,60,1 +0,69,103,149,119,8,1 +0,34,45,892,142,8,1 +1,25,25,730,104,8,1 +0,0,37,882,133,8,1 +0,64,103,160,127,60,2 +0,44,89,987,239,60,2 +0,53,44,977,192,60,2 +1,0,34,660,134,60,2 +0,64,114,161,138,12,2 +0,44,60,1031,217,12,2 +0,53,58,1021,213,12,2 +1,0,19,720,128,12,2 +0,69,107,150,123,45,1 +0,34,91,914,190,45,1 +0,35,46,904,144,45,1 +1,0,36,750,117,45,1 +0,69,118,137,132,50,1 +0,34,96,904,194,50,1 +1,5,65,850,157,50,1 +0,0,64,859,157,50,1 +0,69,102,101,113,26,1 +0,34,87,870,182,26,1 +1,45,35,800,122,26,1 +0,0,35,825,125,26,1 +0,64,85,101,101,35,3 +0,44,73,870,205,35,3 +0,53,42,860,173,35,3 +1,0,12,600,103,35,3 +0,69,107,158,125,12,1 +1,30,61,780,146,12,1 +0,35,45,901,143,12,1 +0,0,54,853,147,12,1 +0,69,113,244,140,15,1 +1,30,67,845,158,15,1 +0,35,49,893,146,15,1 +0,0,47,868,141,15,1 +0,64,84,215,117,12,4 +1,99,37,885,171,12,4 +0,53,46,966,193,12,4 +0,0,10,921,150,12,4 +0,64,94,163,119,35,3 +1,25,68,755,183,35,3 +0,53,47,895,183,35,3 +0,0,16,879,149,35,3 +0,69,112,161,129,26,1 +1,15,21,797,108,26,1 +0,35,45,876,140,26,1 +0,0,47,852,140,26,1 +0,69,103,166,121,6,1 +1,45,20,820,109,6,1 +0,35,43,836,134,6,1 +0,0,35,886,131,6,1 +0,69,107,152,124,4,1 +1,30,33,755,115,4,1 +0,35,44,882,140,4,1 +0,0,48,845,140,4,1 +0,64,103,164,128,40,2 +1,10,41,730,152,40,2 +0,53,43,925,183,40,2 +0,0,19,898,155,40,2 +0,64,143,166,168,40,1 +1,10,83,825,208,40,1 +0,53,70,896,206,40,1 +0,0,50,911,188,40,1 +1,45,94,270,123,60,1 +0,34,91,916,190,60,1 +0,35,46,906,144,60,1 +0,0,49,872,144,60,1 +1,45,138,115,150,4,1 +0,34,60,880,156,4,1 +0,35,58,870,153,4,1 +0,0,47,888,143,4,1 +1,60,102,250,129,50,1 +0,34,112,997,220,50,1 +0,35,67,952,170,50,1 +0,0,43,971,148,50,1 +1,60,151,255,190,60,2 +0,44,91,941,234,60,2 +0,53,46,931,187,60,2 +0,0,21,959,166,60,2 +1,60,111,205,133,70,1 +0,34,97,888,193,70,1 +0,35,52,878,147,70,1 +0,0,49,855,142,70,1 +1,60,70,95,93,40,2 +0,44,31,360,85,40,2 +0,53,25,405,86,40,2 +0,0,7,335,58,40,2 +1,45,74,70,85,35,3 +0,44,26,361,81,35,3 +0,53,21,406,82,35,3 +0,0,4,315,52,35,3 +1,75,165,180,192,60,2 +0,44,98,967,245,60,2 +0,53,53,922,193,60,2 +0,0,26,947,170,60,2 +1,30,93,175,112,60,1 +0,34,96,1030,208,60,1 +0,35,51,1020,162,60,1 +0,0,54,967,159,60,1 +1,90,71,115,89,50,2 +0,44,31,385,89,50,2 +0,53,25,430,90,50,2 +0,0,7,332,57,50,2 +1,45,75,75,96,40,3 +0,44,33,418,96,40,3 +0,53,28,463,98,40,3 +0,0,5,291,49,40,3 +1,60,81,70,89,60,1 +0,34,32,341,69,60,1 +0,35,26,386,68,60,1 +0,0,13,307,46,60,1 +1,75,94,95,104,20,1 +0,34,33,367,73,20,1 +0,35,27,412,72,20,1 +0,0,14,314,48,20,1 +0,64,70,158,93,50,3 +0,44,61,778,179,50,3 +0,53,34,772,151,50,3 +1,0,11,470,82,50,3 +0,64,65,145,87,70,4 +0,44,54,674,156,70,4 +0,53,33,668,135,70,4 +1,0,8,560,93,70,4 +0,64,71,133,91,50,3 +0,44,59,625,153,50,3 +0,53,32,619,126,50,3 +1,0,8,510,85,50,3 +0,69,81,139,96,26,1 +0,34,71,698,147,26,1 +0,35,32,692,107,26,1 +1,0,33,600,98,26,1 +0,64,65,154,89,45,4 +0,44,53,621,147,45,4 +0,53,32,615,125,45,4 +1,0,9,535,90,45,4 +0,64,58,148,80,45,6 +0,44,48,646,145,45,6 +0,53,32,640,129,45,6 +1,0,5,470,76,45,6 +0,69,81,95,91,30,1 +0,34,70,610,136,30,1 +0,35,31,604,96,30,1 +1,0,30,440,78,30,1 +0,64,71,145,93,40,3 +0,44,59,658,159,40,3 +0,53,32,652,131,40,3 +1,0,10,590,100,40,3 +0,64,82,159,106,50,2 +0,44,71,765,187,50,2 +0,53,32,759,147,50,2 +1,0,13,490,87,50,2 +0,69,61,73,69,35,1 +0,34,33,350,71,35,1 +1,50,26,227,51,35,1 +0,0,14,314,48,35,1 +0,69,60,133,74,34,1 +0,34,31,397,74,34,1 +1,15,21,240,47,34,1 +0,0,14,351,52,34,1 +0,64,81,129,101,8,2 +0,44,35,677,138,8,2 +1,15,31,565,117,8,2 +0,0,12,588,101,8,2 +0,69,59,117,72,30,1 +0,34,32,397,75,30,1 +0,35,26,442,74,30,1 +1,0,17,180,37,30,1 +0,69,111,276,141,32,1 +0,34,93,1047,207,32,1 +1,30,35,860,128,32,1 +0,0,42,1008,151,32,1 +0,69,59,88,68,26,1 +0,34,30,361,70,26,1 +1,15,21,295,53,26,1 +0,0,13,299,45,26,1 +0,69,59,114,71,42,1 +0,34,31,389,73,42,1 +1,15,21,243,47,42,1 +0,0,13,334,49,42,1 +1,90,55,115,72,50,1 +0,44,72,602,163,50,1 +0,53,33,596,123,50,1 +0,0,24,589,113,50,1 +1,15,87,110,104,70,2 +0,44,31,348,84,70,2 +0,53,25,393,85,70,2 +0,0,7,320,56,70,2 +0,69,62,76,71,30,1 +0,34,39,377,80,30,1 +0,35,33,422,79,30,1 +1,0,12,300,45,30,1 +0,69,59,121,72,26,1 +0,34,31,386,73,26,1 +0,35,25,431,72,26,1 +1,0,14,270,43,26,1 +0,64,51,90,64,26,3 +1,20,61,350,114,26,3 +0,53,22,405,83,26,3 +0,0,6,327,56,26,3 +0,64,64,215,97,18,2 +1,50,41,420,104,18,2 +0,53,15,385,73,18,2 +0,0,9,321,58,18,2 +0,64,58,74,69,35,2 +1,30,21,295,66,35,2 +0,53,24,389,83,35,2 +0,0,7,315,55,35,2 +0,64,71,119,89,50,3 +0,44,58,617,152,50,3 +1,15,35,615,128,50,3 +0,0,11,586,100,50,3 +1,15,50,75,58,4,1 +0,34,15,361,55,4,1 +0,35,12,406,56,4,1 +0,0,13,315,47,4,1 +1,10,61,80,73,30,4 +0,44,24,350,77,30,4 +0,53,19,395,79,30,4 +0,0,4,314,52,30,4 +0,69,59,100,70,45,1 +0,34,31,372,71,45,1 +0,35,25,417,70,45,1 +1,0,13,210,36,45,1 +0,69,58,73,66,60,1 +0,34,31,324,66,60,1 +0,35,25,334,61,60,1 +1,0,18,240,44,60,1 +0,69,62,184,82,4,1 +0,34,19,454,68,4,1 +0,35,16,464,66,4,1 +1,0,18,225,42,4,1 +1,30,93,85,102,30,1 +0,34,33,365,72,30,1 +0,35,27,410,71,30,1 +0,0,13,308,46,30,1 +1,20,76,95,86,60,1 +0,34,33,344,70,60,1 +0,35,27,389,69,60,1 +0,0,13,315,47,60,1 +0,64,100,190,129,4,2 +0,44,49,678,152,4,2 +1,30,48,430,113,4,2 +0,0,14,629,109,4,2 +0,64,48,63,58,18,3 +1,10,21,255,60,18,3 +0,53,13,397,73,18,3 +0,0,4,324,53,18,3 +0,64,58,93,72,15,2 +1,10,30,315,78,15,2 +0,53,13,346,65,15,2 +0,0,6,316,54,15,2 +0,69,59,94,69,26,1 +0,34,30,361,70,26,1 +0,35,24,406,68,26,1 +1,0,10,270,39,26,1 +1,30,111,105,122,40,1 +0,34,71,596,136,40,1 +0,35,32,590,96,40,1 +0,0,27,577,90,40,1 +1,5,64,80,76,70,2 +0,44,30,348,83,70,2 +0,53,24,393,84,70,2 +0,0,7,291,51,70,2 +1,5,60,85,73,45,4 +0,44,24,379,81,45,4 +0,53,19,424,83,45,4 +0,0,3,337,54,45,4 +0,64,97,188,125,26,3 +0,44,76,825,201,26,3 +1,16,38,810,161,26,3 +0,0,15,803,137,26,3 +0,69,91,117,104,35,1 +0,34,77,630,145,35,1 +0,35,38,624,106,35,1 +1,0,29,540,88,35,1 +0,69,59,114,72,4,1 +0,34,16,378,57,4,1 +1,5,14,370,54,4,1 +0,0,17,335,53,4,1 +0,69,60,66,67,20,1 +0,34,34,352,72,20,1 +1,10,37,250,64,20,1 +0,0,13,307,46,20,1 +0,69,107,144,123,45,1 +0,34,89,879,184,45,1 +1,30,35,775,119,45,1 +0,0,37,868,131,45,1 +0,69,81,124,94,40,1 +0,34,69,605,135,40,1 +0,35,30,599,95,40,1 +1,0,30,720,108,40,1 +1,45,126,135,141,40,1 +0,34,70,596,135,40,1 +0,35,31,590,95,40,1 +0,0,32,577,95,40,1 +0,69,59,86,68,2,1 +0,34,15,360,54,2,1 +1,50,29,265,57,2,1 +0,0,13,300,46,2,1 +0,69,81,124,94,20,1 +0,34,35,605,100,20,1 +0,35,31,599,96,20,1 +1,0,27,510,82,20,1 +0,64,66,140,87,70,4 +0,44,54,670,156,70,4 +0,53,33,664,134,70,4 +1,0,12,540,94,70,4 diff --git a/shared/package-files/6f/6fa37e7803f0c9c3861e3be70655a521263a28b5c4e20abbe85ffeab237fea74/lr_scheduler.py b/shared/package-files/6f/6fa37e7803f0c9c3861e3be70655a521263a28b5c4e20abbe85ffeab237fea74/lr_scheduler.py new file mode 100644 index 0000000000000000000000000000000000000000..7857adfb0b81a03375406eb4550615b4edf4050c --- /dev/null +++ b/shared/package-files/6f/6fa37e7803f0c9c3861e3be70655a521263a28b5c4e20abbe85ffeab237fea74/lr_scheduler.py @@ -0,0 +1,1806 @@ +import types +import math +from torch import inf +from functools import wraps, partial +import warnings +import weakref +from collections import Counter +from bisect import bisect_right + +from .optimizer import Optimizer + +__all__ = ['LambdaLR', 'MultiplicativeLR', 'StepLR', 'MultiStepLR', 'ConstantLR', 'LinearLR', + 'ExponentialLR', 'SequentialLR', 'CosineAnnealingLR', 'ChainedScheduler', 'ReduceLROnPlateau', + 'CyclicLR', 'CosineAnnealingWarmRestarts', 'OneCycleLR', 'PolynomialLR', 'LRScheduler'] + +EPOCH_DEPRECATION_WARNING = ( + "The epoch parameter in `scheduler.step()` was not necessary and is being " + "deprecated where possible. Please use `scheduler.step()` to step the " + "scheduler. During the deprecation, if epoch is different from None, the " + "closed form is used instead of the new chainable form, where available. " + "Please open an issue if you are unable to replicate your use case: " + "https://github.com/pytorch/pytorch/issues/new/choose." +) + +def _check_verbose_deprecated_warning(verbose): + """Raises a warning when verbose is not the default value.""" + if verbose != "deprecated": + warnings.warn("The verbose parameter is deprecated. Please use get_last_lr() " + "to access the learning rate.", UserWarning) + return verbose + return False + +class LRScheduler: + + def __init__(self, optimizer, last_epoch=-1, verbose="deprecated"): + + # Attach optimizer + if not isinstance(optimizer, Optimizer): + raise TypeError(f'{type(optimizer).__name__} is not an Optimizer') + self.optimizer = optimizer + + # Initialize epoch and base learning rates + if last_epoch == -1: + for group in optimizer.param_groups: + group.setdefault('initial_lr', group['lr']) + else: + for i, group in enumerate(optimizer.param_groups): + if 'initial_lr' not in group: + raise KeyError("param 'initial_lr' is not specified " + f"in param_groups[{i}] when resuming an optimizer") + self.base_lrs = [group['initial_lr'] for group in optimizer.param_groups] + self.last_epoch = last_epoch + + # Following https://github.com/pytorch/pytorch/issues/20124 + # We would like to ensure that `lr_scheduler.step()` is called after + # `optimizer.step()` + def with_counter(method): + if getattr(method, '_with_counter', False): + # `optimizer.step()` has already been replaced, return. + return method + + # Keep a weak reference to the optimizer instance to prevent + # cyclic references. + instance_ref = weakref.ref(method.__self__) + # Get the unbound method for the same purpose. + func = method.__func__ + cls = instance_ref().__class__ + del method + + @wraps(func) + def wrapper(*args, **kwargs): + instance = instance_ref() + instance._step_count += 1 + wrapped = func.__get__(instance, cls) + return wrapped(*args, **kwargs) + + # Note that the returned function here is no longer a bound method, + # so attributes like `__func__` and `__self__` no longer exist. + wrapper._with_counter = True + return wrapper + + self.optimizer.step = with_counter(self.optimizer.step) + self.verbose = _check_verbose_deprecated_warning(verbose) + + self._initial_step() + + def _initial_step(self): + """Initialize step counts and performs a step""" + self.optimizer._step_count = 0 + self._step_count = 0 + self.step() + + def state_dict(self): + """Returns the state of the scheduler as a :class:`dict`. + + It contains an entry for every variable in self.__dict__ which + is not the optimizer. + """ + return {key: value for key, value in self.__dict__.items() if key != 'optimizer'} + + def load_state_dict(self, state_dict): + """Loads the schedulers state. + + Args: + state_dict (dict): scheduler state. Should be an object returned + from a call to :meth:`state_dict`. + """ + self.__dict__.update(state_dict) + + def get_last_lr(self): + """ Return last computed learning rate by current scheduler. + """ + return self._last_lr + + def get_lr(self): + # Compute learning rate using chainable form of the scheduler + raise NotImplementedError + + def print_lr(self, is_verbose, group, lr, epoch=None): + """Display the current learning rate. + """ + if is_verbose: + if epoch is None: + print(f'Adjusting learning rate of group {group} to {lr:.4e}.') + else: + epoch_str = ("%.2f" if isinstance(epoch, float) else + "%.5d") % epoch + print(f'Epoch {epoch_str}: adjusting learning rate of group {group} to {lr:.4e}.') + + + def step(self, epoch=None): + # Raise a warning if old pattern is detected + # https://github.com/pytorch/pytorch/issues/20124 + if self._step_count == 1: + if not hasattr(self.optimizer.step, "_with_counter"): + warnings.warn("Seems like `optimizer.step()` has been overridden after learning rate scheduler " + "initialization. Please, make sure to call `optimizer.step()` before " + "`lr_scheduler.step()`. See more details at " + "https://pytorch.org/docs/stable/optim.html#how-to-adjust-learning-rate", UserWarning) + + # Just check if there were two first lr_scheduler.step() calls before optimizer.step() + elif self.optimizer._step_count < 1: + warnings.warn("Detected call of `lr_scheduler.step()` before `optimizer.step()`. " + "In PyTorch 1.1.0 and later, you should call them in the opposite order: " + "`optimizer.step()` before `lr_scheduler.step()`. Failure to do this " + "will result in PyTorch skipping the first value of the learning rate schedule. " + "See more details at " + "https://pytorch.org/docs/stable/optim.html#how-to-adjust-learning-rate", UserWarning) + self._step_count += 1 + + with _enable_get_lr_call(self): + if epoch is None: + self.last_epoch += 1 + values = self.get_lr() + else: + warnings.warn(EPOCH_DEPRECATION_WARNING, UserWarning) + self.last_epoch = epoch + if hasattr(self, "_get_closed_form_lr"): + values = self._get_closed_form_lr() + else: + values = self.get_lr() + + for i, data in enumerate(zip(self.optimizer.param_groups, values)): + param_group, lr = data + param_group['lr'] = lr + + self._last_lr = [group['lr'] for group in self.optimizer.param_groups] + + +# Including _LRScheduler for backwards compatibility +# Subclass instead of assign because we want __name__ of _LRScheduler to be _LRScheduler (assigning would make it LRScheduler). +class _LRScheduler(LRScheduler): + pass + + +class _enable_get_lr_call: + + def __init__(self, o): + self.o = o + + def __enter__(self): + self.o._get_lr_called_within_step = True + return self + + def __exit__(self, type, value, traceback): + self.o._get_lr_called_within_step = False + + +class LambdaLR(LRScheduler): + """Sets the learning rate of each parameter group to the initial lr + times a given function. When last_epoch=-1, sets initial lr as lr. + + Args: + optimizer (Optimizer): Wrapped optimizer. + lr_lambda (function or list): A function which computes a multiplicative + factor given an integer parameter epoch, or a list of such + functions, one for each group in optimizer.param_groups. + last_epoch (int): The index of last epoch. Default: -1. + verbose (bool): If ``True``, prints a message to stdout for + each update. Default: ``False``. + + .. deprecated:: 2.2 + ``verbose`` is deprecated. Please use ``get_last_lr()`` to access the + learning rate. + + Example: + >>> # xdoctest: +SKIP + >>> # Assuming optimizer has two groups. + >>> lambda1 = lambda epoch: epoch // 30 + >>> lambda2 = lambda epoch: 0.95 ** epoch + >>> scheduler = LambdaLR(optimizer, lr_lambda=[lambda1, lambda2]) + >>> for epoch in range(100): + >>> train(...) + >>> validate(...) + >>> scheduler.step() + """ + + def __init__(self, optimizer, lr_lambda, last_epoch=-1, verbose="deprecated"): + self.optimizer = optimizer + + if not isinstance(lr_lambda, list) and not isinstance(lr_lambda, tuple): + self.lr_lambdas = [lr_lambda] * len(optimizer.param_groups) + else: + if len(lr_lambda) != len(optimizer.param_groups): + raise ValueError(f"Expected {len(optimizer.param_groups)} lr_lambdas, but got {len(lr_lambda)}") + self.lr_lambdas = list(lr_lambda) + super().__init__(optimizer, last_epoch, verbose) + + def state_dict(self): + """Returns the state of the scheduler as a :class:`dict`. + + It contains an entry for every variable in self.__dict__ which + is not the optimizer. + The learning rate lambda functions will only be saved if they are callable objects + and not if they are functions or lambdas. + + When saving or loading the scheduler, please make sure to also save or load the state of the optimizer. + """ + + state_dict = {key: value for key, value in self.__dict__.items() if key not in ('optimizer', 'lr_lambdas')} + state_dict['lr_lambdas'] = [None] * len(self.lr_lambdas) + + for idx, fn in enumerate(self.lr_lambdas): + if not isinstance(fn, types.FunctionType): + state_dict['lr_lambdas'][idx] = fn.__dict__.copy() + + return state_dict + + def load_state_dict(self, state_dict): + """Loads the schedulers state. + + When saving or loading the scheduler, please make sure to also save or load the state of the optimizer. + + Args: + state_dict (dict): scheduler state. Should be an object returned + from a call to :meth:`state_dict`. + """ + + lr_lambdas = state_dict.pop('lr_lambdas') + self.__dict__.update(state_dict) + # Restore state_dict keys in order to prevent side effects + # https://github.com/pytorch/pytorch/issues/32756 + state_dict['lr_lambdas'] = lr_lambdas + + for idx, fn in enumerate(lr_lambdas): + if fn is not None: + self.lr_lambdas[idx].__dict__.update(fn) + + def get_lr(self): + if not self._get_lr_called_within_step: + warnings.warn("To get the last learning rate computed by the scheduler, " + "please use `get_last_lr()`.") + + return [base_lr * lmbda(self.last_epoch) + for lmbda, base_lr in zip(self.lr_lambdas, self.base_lrs)] + + +class MultiplicativeLR(LRScheduler): + """Multiply the learning rate of each parameter group by the factor given + in the specified function. When last_epoch=-1, sets initial lr as lr. + + Args: + optimizer (Optimizer): Wrapped optimizer. + lr_lambda (function or list): A function which computes a multiplicative + factor given an integer parameter epoch, or a list of such + functions, one for each group in optimizer.param_groups. + last_epoch (int): The index of last epoch. Default: -1. + verbose (bool): If ``True``, prints a message to stdout for + each update. Default: ``False``. + + .. deprecated:: 2.2 + ``verbose`` is deprecated. Please use ``get_last_lr()`` to access the + learning rate. + + Example: + >>> # xdoctest: +SKIP + >>> lmbda = lambda epoch: 0.95 + >>> scheduler = MultiplicativeLR(optimizer, lr_lambda=lmbda) + >>> for epoch in range(100): + >>> train(...) + >>> validate(...) + >>> scheduler.step() + """ + + def __init__(self, optimizer, lr_lambda, last_epoch=-1, verbose="deprecated"): + self.optimizer = optimizer + + if not isinstance(lr_lambda, list) and not isinstance(lr_lambda, tuple): + self.lr_lambdas = [lr_lambda] * len(optimizer.param_groups) + else: + if len(lr_lambda) != len(optimizer.param_groups): + raise ValueError(f"Expected {len(optimizer.param_groups)} lr_lambdas, but got {len(lr_lambda)}") + self.lr_lambdas = list(lr_lambda) + super().__init__(optimizer, last_epoch, verbose) + + def state_dict(self): + """Returns the state of the scheduler as a :class:`dict`. + + It contains an entry for every variable in self.__dict__ which + is not the optimizer. + The learning rate lambda functions will only be saved if they are callable objects + and not if they are functions or lambdas. + """ + state_dict = {key: value for key, value in self.__dict__.items() if key not in ('optimizer', 'lr_lambdas')} + state_dict['lr_lambdas'] = [None] * len(self.lr_lambdas) + + for idx, fn in enumerate(self.lr_lambdas): + if not isinstance(fn, types.FunctionType): + state_dict['lr_lambdas'][idx] = fn.__dict__.copy() + + return state_dict + + def load_state_dict(self, state_dict): + """Loads the schedulers state. + + Args: + state_dict (dict): scheduler state. Should be an object returned + from a call to :meth:`state_dict`. + """ + lr_lambdas = state_dict.pop('lr_lambdas') + self.__dict__.update(state_dict) + # Restore state_dict keys in order to prevent side effects + # https://github.com/pytorch/pytorch/issues/32756 + state_dict['lr_lambdas'] = lr_lambdas + + for idx, fn in enumerate(lr_lambdas): + if fn is not None: + self.lr_lambdas[idx].__dict__.update(fn) + + def get_lr(self): + if not self._get_lr_called_within_step: + warnings.warn("To get the last learning rate computed by the scheduler, " + "please use `get_last_lr()`.", UserWarning) + + if self.last_epoch > 0: + return [group['lr'] * lmbda(self.last_epoch) + for lmbda, group in zip(self.lr_lambdas, self.optimizer.param_groups)] + else: + return [group['lr'] for group in self.optimizer.param_groups] + + +class StepLR(LRScheduler): + """Decays the learning rate of each parameter group by gamma every + step_size epochs. Notice that such decay can happen simultaneously with + other changes to the learning rate from outside this scheduler. When + last_epoch=-1, sets initial lr as lr. + + Args: + optimizer (Optimizer): Wrapped optimizer. + step_size (int): Period of learning rate decay. + gamma (float): Multiplicative factor of learning rate decay. + Default: 0.1. + last_epoch (int): The index of last epoch. Default: -1. + verbose (bool): If ``True``, prints a message to stdout for + each update. Default: ``False``. + + .. deprecated:: 2.2 + ``verbose`` is deprecated. Please use ``get_last_lr()`` to access the + learning rate. + + Example: + >>> # xdoctest: +SKIP + >>> # Assuming optimizer uses lr = 0.05 for all groups + >>> # lr = 0.05 if epoch < 30 + >>> # lr = 0.005 if 30 <= epoch < 60 + >>> # lr = 0.0005 if 60 <= epoch < 90 + >>> # ... + >>> scheduler = StepLR(optimizer, step_size=30, gamma=0.1) + >>> for epoch in range(100): + >>> train(...) + >>> validate(...) + >>> scheduler.step() + """ + + def __init__(self, optimizer, step_size, gamma=0.1, last_epoch=-1, verbose="deprecated"): + self.step_size = step_size + self.gamma = gamma + super().__init__(optimizer, last_epoch, verbose) + + def get_lr(self): + if not self._get_lr_called_within_step: + warnings.warn("To get the last learning rate computed by the scheduler, " + "please use `get_last_lr()`.", UserWarning) + + if (self.last_epoch == 0) or (self.last_epoch % self.step_size != 0): + return [group['lr'] for group in self.optimizer.param_groups] + return [group['lr'] * self.gamma + for group in self.optimizer.param_groups] + + def _get_closed_form_lr(self): + return [base_lr * self.gamma ** (self.last_epoch // self.step_size) + for base_lr in self.base_lrs] + + +class MultiStepLR(LRScheduler): + """Decays the learning rate of each parameter group by gamma once the + number of epoch reaches one of the milestones. Notice that such decay can + happen simultaneously with other changes to the learning rate from outside + this scheduler. When last_epoch=-1, sets initial lr as lr. + + Args: + optimizer (Optimizer): Wrapped optimizer. + milestones (list): List of epoch indices. Must be increasing. + gamma (float): Multiplicative factor of learning rate decay. + Default: 0.1. + last_epoch (int): The index of last epoch. Default: -1. + verbose (bool): If ``True``, prints a message to stdout for + each update. Default: ``False``. + + .. deprecated:: 2.2 + ``verbose`` is deprecated. Please use ``get_last_lr()`` to access the + learning rate. + + Example: + >>> # xdoctest: +SKIP + >>> # Assuming optimizer uses lr = 0.05 for all groups + >>> # lr = 0.05 if epoch < 30 + >>> # lr = 0.005 if 30 <= epoch < 80 + >>> # lr = 0.0005 if epoch >= 80 + >>> scheduler = MultiStepLR(optimizer, milestones=[30,80], gamma=0.1) + >>> for epoch in range(100): + >>> train(...) + >>> validate(...) + >>> scheduler.step() + """ + + def __init__(self, optimizer, milestones, gamma=0.1, last_epoch=-1, verbose="deprecated"): + self.milestones = Counter(milestones) + self.gamma = gamma + super().__init__(optimizer, last_epoch, verbose) + + def get_lr(self): + if not self._get_lr_called_within_step: + warnings.warn("To get the last learning rate computed by the scheduler, " + "please use `get_last_lr()`.", UserWarning) + + if self.last_epoch not in self.milestones: + return [group['lr'] for group in self.optimizer.param_groups] + return [group['lr'] * self.gamma ** self.milestones[self.last_epoch] + for group in self.optimizer.param_groups] + + def _get_closed_form_lr(self): + milestones = sorted(self.milestones.elements()) + return [base_lr * self.gamma ** bisect_right(milestones, self.last_epoch) + for base_lr in self.base_lrs] + + +class ConstantLR(LRScheduler): + """Multiply the learning rate of each parameter group by a small constant factor until the + number of epoch reaches a pre-defined milestone: total_iters. + Notice that such multiplication of the small constant factor can + happen simultaneously with other changes to the learning rate from outside this scheduler. + When last_epoch=-1, sets initial lr as lr. + + Args: + optimizer (Optimizer): Wrapped optimizer. + factor (float): The number we multiply learning rate until the milestone. Default: 1./3. + total_iters (int): The number of steps that the scheduler multiplies the learning rate by the factor. + Default: 5. + last_epoch (int): The index of the last epoch. Default: -1. + verbose (bool): If ``True``, prints a message to stdout for + each update. Default: ``False``. + + .. deprecated:: 2.2 + ``verbose`` is deprecated. Please use ``get_last_lr()`` to access the + learning rate. + + Example: + >>> # xdoctest: +SKIP + >>> # Assuming optimizer uses lr = 0.05 for all groups + >>> # lr = 0.025 if epoch == 0 + >>> # lr = 0.025 if epoch == 1 + >>> # lr = 0.025 if epoch == 2 + >>> # lr = 0.025 if epoch == 3 + >>> # lr = 0.05 if epoch >= 4 + >>> scheduler = ConstantLR(optimizer, factor=0.5, total_iters=4) + >>> for epoch in range(100): + >>> train(...) + >>> validate(...) + >>> scheduler.step() + """ + + def __init__(self, optimizer, factor=1.0 / 3, total_iters=5, last_epoch=-1, verbose="deprecated"): + if factor > 1.0 or factor < 0: + raise ValueError('Constant multiplicative factor expected to be between 0 and 1.') + + self.factor = factor + self.total_iters = total_iters + super().__init__(optimizer, last_epoch, verbose) + + def get_lr(self): + if not self._get_lr_called_within_step: + warnings.warn("To get the last learning rate computed by the scheduler, " + "please use `get_last_lr()`.", UserWarning) + + if self.last_epoch == 0: + return [group['lr'] * self.factor for group in self.optimizer.param_groups] + + if self.last_epoch != self.total_iters: + return [group['lr'] for group in self.optimizer.param_groups] + + return [group['lr'] * (1.0 / self.factor) for group in self.optimizer.param_groups] + + def _get_closed_form_lr(self): + return [base_lr * (self.factor + (self.last_epoch >= self.total_iters) * (1 - self.factor)) + for base_lr in self.base_lrs] + + +class LinearLR(LRScheduler): + """Decays the learning rate of each parameter group by linearly changing small + multiplicative factor until the number of epoch reaches a pre-defined milestone: total_iters. + Notice that such decay can happen simultaneously with other changes to the learning rate + from outside this scheduler. When last_epoch=-1, sets initial lr as lr. + + Args: + optimizer (Optimizer): Wrapped optimizer. + start_factor (float): The number we multiply learning rate in the first epoch. + The multiplication factor changes towards end_factor in the following epochs. + Default: 1./3. + end_factor (float): The number we multiply learning rate at the end of linear changing + process. Default: 1.0. + total_iters (int): The number of iterations that multiplicative factor reaches to 1. + Default: 5. + last_epoch (int): The index of the last epoch. Default: -1. + verbose (bool): If ``True``, prints a message to stdout for + each update. Default: ``False``. + + .. deprecated:: 2.2 + ``verbose`` is deprecated. Please use ``get_last_lr()`` to access the + learning rate. + + Example: + >>> # xdoctest: +SKIP + >>> # Assuming optimizer uses lr = 0.05 for all groups + >>> # lr = 0.025 if epoch == 0 + >>> # lr = 0.03125 if epoch == 1 + >>> # lr = 0.0375 if epoch == 2 + >>> # lr = 0.04375 if epoch == 3 + >>> # lr = 0.05 if epoch >= 4 + >>> scheduler = LinearLR(optimizer, start_factor=0.5, total_iters=4) + >>> for epoch in range(100): + >>> train(...) + >>> validate(...) + >>> scheduler.step() + """ + + def __init__(self, optimizer, start_factor=1.0 / 3, end_factor=1.0, total_iters=5, last_epoch=-1, + verbose="deprecated"): + if start_factor > 1.0 or start_factor <= 0: + raise ValueError('Starting multiplicative factor expected to be greater than 0 and less or equal to 1.') + + if end_factor > 1.0 or end_factor < 0: + raise ValueError('Ending multiplicative factor expected to be between 0 and 1.') + + self.start_factor = start_factor + self.end_factor = end_factor + self.total_iters = total_iters + super().__init__(optimizer, last_epoch, verbose) + + def get_lr(self): + if not self._get_lr_called_within_step: + warnings.warn("To get the last learning rate computed by the scheduler, " + "please use `get_last_lr()`.", UserWarning) + + if self.last_epoch == 0: + return [group['lr'] * self.start_factor for group in self.optimizer.param_groups] + + if self.last_epoch > self.total_iters: + return [group['lr'] for group in self.optimizer.param_groups] + + return [group['lr'] * (1. + (self.end_factor - self.start_factor) / + (self.total_iters * self.start_factor + (self.last_epoch - 1) * (self.end_factor - self.start_factor))) + for group in self.optimizer.param_groups] + + def _get_closed_form_lr(self): + return [base_lr * (self.start_factor + + (self.end_factor - self.start_factor) * min(self.total_iters, self.last_epoch) / self.total_iters) + for base_lr in self.base_lrs] + + +class ExponentialLR(LRScheduler): + """Decays the learning rate of each parameter group by gamma every epoch. + When last_epoch=-1, sets initial lr as lr. + + Args: + optimizer (Optimizer): Wrapped optimizer. + gamma (float): Multiplicative factor of learning rate decay. + last_epoch (int): The index of last epoch. Default: -1. + verbose (bool): If ``True``, prints a message to stdout for + each update. Default: ``False``. + + .. deprecated:: 2.2 + ``verbose`` is deprecated. Please use ``get_last_lr()`` to access the + learning rate. + """ + + def __init__(self, optimizer, gamma, last_epoch=-1, verbose="deprecated"): + self.gamma = gamma + super().__init__(optimizer, last_epoch, verbose) + + def get_lr(self): + if not self._get_lr_called_within_step: + warnings.warn("To get the last learning rate computed by the scheduler, " + "please use `get_last_lr()`.", UserWarning) + + if self.last_epoch == 0: + return [group['lr'] for group in self.optimizer.param_groups] + return [group['lr'] * self.gamma + for group in self.optimizer.param_groups] + + def _get_closed_form_lr(self): + return [base_lr * self.gamma ** self.last_epoch + for base_lr in self.base_lrs] + + +class SequentialLR(LRScheduler): + """Receives the list of schedulers that is expected to be called sequentially during + optimization process and milestone points that provides exact intervals to reflect + which scheduler is supposed to be called at a given epoch. + + Args: + optimizer (Optimizer): Wrapped optimizer. + schedulers (list): List of chained schedulers. + milestones (list): List of integers that reflects milestone points. + last_epoch (int): The index of last epoch. Default: -1. + verbose (bool): Does nothing. + + .. deprecated:: 2.2 + ``verbose`` is deprecated. Please use ``get_last_lr()`` to access the + learning rate. + + Example: + >>> # xdoctest: +SKIP + >>> # Assuming optimizer uses lr = 1. for all groups + >>> # lr = 0.1 if epoch == 0 + >>> # lr = 0.1 if epoch == 1 + >>> # lr = 0.9 if epoch == 2 + >>> # lr = 0.81 if epoch == 3 + >>> # lr = 0.729 if epoch == 4 + >>> scheduler1 = ConstantLR(optimizer, factor=0.1, total_iters=2) + >>> scheduler2 = ExponentialLR(optimizer, gamma=0.9) + >>> scheduler = SequentialLR(optimizer, schedulers=[scheduler1, scheduler2], milestones=[2]) + >>> for epoch in range(100): + >>> train(...) + >>> validate(...) + >>> scheduler.step() + """ + + def __init__(self, optimizer, schedulers, milestones, last_epoch=-1, verbose="deprecated"): + for scheduler_idx in range(len(schedulers)): + if schedulers[scheduler_idx].optimizer != optimizer: + raise ValueError( + "Sequential Schedulers expects all schedulers to belong to the same optimizer, but " + f"got schedulers at index {scheduler_idx} to be different than the optimizer passed in." + ) + + if (schedulers[scheduler_idx].optimizer != schedulers[0].optimizer): + raise ValueError( + "Sequential Schedulers expects all schedulers to belong to the same optimizer, but " + f"got schedulers at index {0} and {scheduler_idx} to be different." + ) + if (len(milestones) != len(schedulers) - 1): + raise ValueError( + "Sequential Schedulers expects number of schedulers provided to be one more " + f"than the number of milestone points, but got number of schedulers {len(schedulers)} and the " + f"number of milestones to be equal to {len(milestones)}" + ) + _check_verbose_deprecated_warning(verbose) + self._schedulers = schedulers + self._milestones = milestones + self.last_epoch = last_epoch + 1 + self.optimizer = optimizer + + # Reset learning rates back to initial values + for group in self.optimizer.param_groups: + group["lr"] = group["initial_lr"] + + # "Undo" the step performed by other schedulers + for scheduler in self._schedulers: + scheduler.last_epoch -= 1 + + # Perform the initial step for only the first scheduler + self._schedulers[0]._initial_step() + + self._last_lr = schedulers[0].get_last_lr() + + def step(self): + self.last_epoch += 1 + idx = bisect_right(self._milestones, self.last_epoch) + scheduler = self._schedulers[idx] + if idx > 0 and self._milestones[idx - 1] == self.last_epoch: + scheduler.step(0) + else: + scheduler.step() + + self._last_lr = scheduler.get_last_lr() + + def state_dict(self): + """Returns the state of the scheduler as a :class:`dict`. + + It contains an entry for every variable in self.__dict__ which + is not the optimizer. + The wrapped scheduler states will also be saved. + """ + state_dict = {key: value for key, value in self.__dict__.items() if key not in ('optimizer', '_schedulers')} + state_dict['_schedulers'] = [None] * len(self._schedulers) + + for idx, s in enumerate(self._schedulers): + state_dict['_schedulers'][idx] = s.state_dict() + + return state_dict + + def load_state_dict(self, state_dict): + """Loads the schedulers state. + + Args: + state_dict (dict): scheduler state. Should be an object returned + from a call to :meth:`state_dict`. + """ + _schedulers = state_dict.pop('_schedulers') + self.__dict__.update(state_dict) + # Restore state_dict keys in order to prevent side effects + # https://github.com/pytorch/pytorch/issues/32756 + state_dict['_schedulers'] = _schedulers + + for idx, s in enumerate(_schedulers): + self._schedulers[idx].load_state_dict(s) + + +class PolynomialLR(LRScheduler): + """Decays the learning rate of each parameter group using a polynomial function + in the given total_iters. When last_epoch=-1, sets initial lr as lr. + + Args: + optimizer (Optimizer): Wrapped optimizer. + total_iters (int): The number of steps that the scheduler decays the learning rate. Default: 5. + power (float): The power of the polynomial. Default: 1.0. + verbose (bool): If ``True``, prints a message to stdout for + each update. Default: ``False``. + + .. deprecated:: 2.2 + ``verbose`` is deprecated. Please use ``get_last_lr()`` to access the + learning rate. + + Example: + >>> # xdoctest: +SKIP("undefined vars") + >>> # Assuming optimizer uses lr = 0.001 for all groups + >>> # lr = 0.001 if epoch == 0 + >>> # lr = 0.00075 if epoch == 1 + >>> # lr = 0.00050 if epoch == 2 + >>> # lr = 0.00025 if epoch == 3 + >>> # lr = 0.0 if epoch >= 4 + >>> scheduler = PolynomialLR(optimizer, total_iters=4, power=1.0) + >>> for epoch in range(100): + >>> train(...) + >>> validate(...) + >>> scheduler.step() + """ + def __init__(self, optimizer, total_iters=5, power=1.0, last_epoch=-1, verbose="deprecated"): + self.total_iters = total_iters + self.power = power + super().__init__(optimizer, last_epoch, verbose) + + def get_lr(self): + if not self._get_lr_called_within_step: + warnings.warn("To get the last learning rate computed by the scheduler, " + "please use `get_last_lr()`.", UserWarning) + + if self.last_epoch == 0 or self.last_epoch > self.total_iters: + return [group["lr"] for group in self.optimizer.param_groups] + + decay_factor = ((1.0 - self.last_epoch / self.total_iters) / (1.0 - (self.last_epoch - 1) / self.total_iters)) ** self.power + return [group["lr"] * decay_factor for group in self.optimizer.param_groups] + + def _get_closed_form_lr(self): + return [ + ( + base_lr * (1.0 - min(self.total_iters, self.last_epoch) / self.total_iters) ** self.power + ) + for base_lr in self.base_lrs + ] + + +class CosineAnnealingLR(LRScheduler): + r"""Set the learning rate of each parameter group using a cosine annealing + schedule, where :math:`\eta_{max}` is set to the initial lr and + :math:`T_{cur}` is the number of epochs since the last restart in SGDR: + + .. math:: + \begin{aligned} + \eta_t & = \eta_{min} + \frac{1}{2}(\eta_{max} - \eta_{min})\left(1 + + \cos\left(\frac{T_{cur}}{T_{max}}\pi\right)\right), + & T_{cur} \neq (2k+1)T_{max}; \\ + \eta_{t+1} & = \eta_{t} + \frac{1}{2}(\eta_{max} - \eta_{min}) + \left(1 - \cos\left(\frac{1}{T_{max}}\pi\right)\right), + & T_{cur} = (2k+1)T_{max}. + \end{aligned} + + When last_epoch=-1, sets initial lr as lr. Notice that because the schedule + is defined recursively, the learning rate can be simultaneously modified + outside this scheduler by other operators. If the learning rate is set + solely by this scheduler, the learning rate at each step becomes: + + .. math:: + \eta_t = \eta_{min} + \frac{1}{2}(\eta_{max} - \eta_{min})\left(1 + + \cos\left(\frac{T_{cur}}{T_{max}}\pi\right)\right) + + It has been proposed in + `SGDR: Stochastic Gradient Descent with Warm Restarts`_. Note that this only + implements the cosine annealing part of SGDR, and not the restarts. + + Args: + optimizer (Optimizer): Wrapped optimizer. + T_max (int): Maximum number of iterations. + eta_min (float): Minimum learning rate. Default: 0. + last_epoch (int): The index of last epoch. Default: -1. + verbose (bool): If ``True``, prints a message to stdout for + each update. Default: ``False``. + + .. deprecated:: 2.2 + ``verbose`` is deprecated. Please use ``get_last_lr()`` to access the + learning rate. + + .. _SGDR\: Stochastic Gradient Descent with Warm Restarts: + https://arxiv.org/abs/1608.03983 + """ + + def __init__(self, optimizer, T_max, eta_min=0, last_epoch=-1, verbose="deprecated"): + self.T_max = T_max + self.eta_min = eta_min + super().__init__(optimizer, last_epoch, verbose) + + def get_lr(self): + if not self._get_lr_called_within_step: + warnings.warn("To get the last learning rate computed by the scheduler, " + "please use `get_last_lr()`.", UserWarning) + + if self.last_epoch == 0: + return [group['lr'] for group in self.optimizer.param_groups] + elif self._step_count == 1 and self.last_epoch > 0: + return [self.eta_min + (base_lr - self.eta_min) * + (1 + math.cos((self.last_epoch) * math.pi / self.T_max)) / 2 + for base_lr, group in + zip(self.base_lrs, self.optimizer.param_groups)] + elif (self.last_epoch - 1 - self.T_max) % (2 * self.T_max) == 0: + return [group['lr'] + (base_lr - self.eta_min) * + (1 - math.cos(math.pi / self.T_max)) / 2 + for base_lr, group in + zip(self.base_lrs, self.optimizer.param_groups)] + return [(1 + math.cos(math.pi * self.last_epoch / self.T_max)) / + (1 + math.cos(math.pi * (self.last_epoch - 1) / self.T_max)) * + (group['lr'] - self.eta_min) + self.eta_min + for group in self.optimizer.param_groups] + + def _get_closed_form_lr(self): + return [self.eta_min + (base_lr - self.eta_min) * + (1 + math.cos(math.pi * self.last_epoch / self.T_max)) / 2 + for base_lr in self.base_lrs] + + +class ChainedScheduler(LRScheduler): + """Chains list of learning rate schedulers. It takes a list of chainable learning + rate schedulers and performs consecutive step() functions belonging to them by just + one call. + + Args: + schedulers (list): List of chained schedulers. + + Example: + >>> # xdoctest: +SKIP + >>> # Assuming optimizer uses lr = 1. for all groups + >>> # lr = 0.09 if epoch == 0 + >>> # lr = 0.081 if epoch == 1 + >>> # lr = 0.729 if epoch == 2 + >>> # lr = 0.6561 if epoch == 3 + >>> # lr = 0.59049 if epoch >= 4 + >>> scheduler1 = ConstantLR(optimizer, factor=0.1, total_iters=2) + >>> scheduler2 = ExponentialLR(optimizer, gamma=0.9) + >>> scheduler = ChainedScheduler([scheduler1, scheduler2]) + >>> for epoch in range(100): + >>> train(...) + >>> validate(...) + >>> scheduler.step() + """ + + def __init__(self, schedulers): + for scheduler_idx in range(1, len(schedulers)): + if (schedulers[scheduler_idx].optimizer != schedulers[0].optimizer): + raise ValueError( + "ChainedScheduler expects all schedulers to belong to the same optimizer, but " + f"got schedulers at index {0} and {scheduler_idx} to be different" + ) + self._schedulers = list(schedulers) + self.optimizer = schedulers[0].optimizer + self._last_lr = [group['lr'] for group in self._schedulers[-1].optimizer.param_groups] + + def step(self): + for scheduler in self._schedulers: + scheduler.step() + self._last_lr = [group['lr'] for group in self._schedulers[-1].optimizer.param_groups] + + def state_dict(self): + """Returns the state of the scheduler as a :class:`dict`. + + It contains an entry for every variable in self.__dict__ which + is not the optimizer. + The wrapped scheduler states will also be saved. + """ + state_dict = {key: value for key, value in self.__dict__.items() if key not in ('optimizer', '_schedulers')} + state_dict['_schedulers'] = [None] * len(self._schedulers) + + for idx, s in enumerate(self._schedulers): + state_dict['_schedulers'][idx] = s.state_dict() + + return state_dict + + def load_state_dict(self, state_dict): + """Loads the schedulers state. + + Args: + state_dict (dict): scheduler state. Should be an object returned + from a call to :meth:`state_dict`. + """ + _schedulers = state_dict.pop('_schedulers') + self.__dict__.update(state_dict) + # Restore state_dict keys in order to prevent side effects + # https://github.com/pytorch/pytorch/issues/32756 + state_dict['_schedulers'] = _schedulers + + for idx, s in enumerate(_schedulers): + self._schedulers[idx].load_state_dict(s) + + +class ReduceLROnPlateau(LRScheduler): + """Reduce learning rate when a metric has stopped improving. + Models often benefit from reducing the learning rate by a factor + of 2-10 once learning stagnates. This scheduler reads a metrics + quantity and if no improvement is seen for a 'patience' number + of epochs, the learning rate is reduced. + + Args: + optimizer (Optimizer): Wrapped optimizer. + mode (str): One of `min`, `max`. In `min` mode, lr will + be reduced when the quantity monitored has stopped + decreasing; in `max` mode it will be reduced when the + quantity monitored has stopped increasing. Default: 'min'. + factor (float): Factor by which the learning rate will be + reduced. new_lr = lr * factor. Default: 0.1. + patience (int): The number of allowed epochs with no improvement after + which the learning rate will be reduced. + For example, consider the case of having no patience (`patience = 0`). + In the first epoch, a baseline is established and is always considered good as there's no previous baseline. + In the second epoch, if the performance is worse than the baseline, + we have what is considered an intolerable epoch. + Since the count of intolerable epochs (1) is greater than the patience level (0), + the learning rate is reduced at the end of this epoch. + From the third epoch onwards, the learning rate continues to be reduced at the end of each epoch + if the performance is worse than the baseline. If the performance improves or remains the same, + the learning rate is not adjusted. + Default: 10. + threshold (float): Threshold for measuring the new optimum, + to only focus on significant changes. Default: 1e-4. + threshold_mode (str): One of `rel`, `abs`. In `rel` mode, + dynamic_threshold = best * ( 1 + threshold ) in 'max' + mode or best * ( 1 - threshold ) in `min` mode. + In `abs` mode, dynamic_threshold = best + threshold in + `max` mode or best - threshold in `min` mode. Default: 'rel'. + cooldown (int): Number of epochs to wait before resuming + normal operation after lr has been reduced. Default: 0. + min_lr (float or list): A scalar or a list of scalars. A + lower bound on the learning rate of all param groups + or each group respectively. Default: 0. + eps (float): Minimal decay applied to lr. If the difference + between new and old lr is smaller than eps, the update is + ignored. Default: 1e-8. + verbose (bool): If ``True``, prints a message to stdout for + each update. Default: ``False``. + + .. deprecated:: 2.2 + ``verbose`` is deprecated. Please use ``get_last_lr()`` to access the + learning rate. + + Example: + >>> # xdoctest: +SKIP + >>> optimizer = torch.optim.SGD(model.parameters(), lr=0.1, momentum=0.9) + >>> scheduler = ReduceLROnPlateau(optimizer, 'min') + >>> for epoch in range(10): + >>> train(...) + >>> val_loss = validate(...) + >>> # Note that step should be called after validate() + >>> scheduler.step(val_loss) + """ + + def __init__(self, optimizer, mode='min', factor=0.1, patience=10, + threshold=1e-4, threshold_mode='rel', cooldown=0, + min_lr=0, eps=1e-8, verbose="deprecated"): + + if factor >= 1.0: + raise ValueError('Factor should be < 1.0.') + self.factor = factor + + # Attach optimizer + if not isinstance(optimizer, Optimizer): + raise TypeError(f'{type(optimizer).__name__} is not an Optimizer') + self.optimizer = optimizer + + if isinstance(min_lr, (list, tuple)): + if len(min_lr) != len(optimizer.param_groups): + raise ValueError(f"expected {len(optimizer.param_groups)} min_lrs, got {len(min_lr)}") + self.min_lrs = list(min_lr) + else: + self.min_lrs = [min_lr] * len(optimizer.param_groups) + + self.patience = patience + + self.verbose = _check_verbose_deprecated_warning(verbose) + self.cooldown = cooldown + self.cooldown_counter = 0 + self.mode = mode + self.threshold = threshold + self.threshold_mode = threshold_mode + self.best = None + self.num_bad_epochs = None + self.mode_worse = None # the worse value for the chosen mode + self.eps = eps + self.last_epoch = 0 + self._last_lr = [group['lr'] for group in self.optimizer.param_groups] + self._init_is_better(mode=mode, threshold=threshold, + threshold_mode=threshold_mode) + self._reset() + + def _reset(self): + """Resets num_bad_epochs counter and cooldown counter.""" + self.best = self.mode_worse + self.cooldown_counter = 0 + self.num_bad_epochs = 0 + + def step(self, metrics, epoch=None): + # convert `metrics` to float, in case it's a zero-dim Tensor + current = float(metrics) + if epoch is None: + epoch = self.last_epoch + 1 + else: + warnings.warn(EPOCH_DEPRECATION_WARNING, UserWarning) + self.last_epoch = epoch + + if self.is_better(current, self.best): + self.best = current + self.num_bad_epochs = 0 + else: + self.num_bad_epochs += 1 + + if self.in_cooldown: + self.cooldown_counter -= 1 + self.num_bad_epochs = 0 # ignore any bad epochs in cooldown + + if self.num_bad_epochs > self.patience: + self._reduce_lr(epoch) + self.cooldown_counter = self.cooldown + self.num_bad_epochs = 0 + + self._last_lr = [group['lr'] for group in self.optimizer.param_groups] + + def _reduce_lr(self, epoch): + for i, param_group in enumerate(self.optimizer.param_groups): + old_lr = float(param_group['lr']) + new_lr = max(old_lr * self.factor, self.min_lrs[i]) + if old_lr - new_lr > self.eps: + param_group['lr'] = new_lr + + @property + def in_cooldown(self): + return self.cooldown_counter > 0 + + def is_better(self, a, best): + if self.mode == 'min' and self.threshold_mode == 'rel': + rel_epsilon = 1. - self.threshold + return a < best * rel_epsilon + + elif self.mode == 'min' and self.threshold_mode == 'abs': + return a < best - self.threshold + + elif self.mode == 'max' and self.threshold_mode == 'rel': + rel_epsilon = self.threshold + 1. + return a > best * rel_epsilon + + else: # mode == 'max' and epsilon_mode == 'abs': + return a > best + self.threshold + + def _init_is_better(self, mode, threshold, threshold_mode): + if mode not in {'min', 'max'}: + raise ValueError('mode ' + mode + ' is unknown!') + if threshold_mode not in {'rel', 'abs'}: + raise ValueError('threshold mode ' + threshold_mode + ' is unknown!') + + if mode == 'min': + self.mode_worse = inf + else: # mode == 'max': + self.mode_worse = -inf + + self.mode = mode + self.threshold = threshold + self.threshold_mode = threshold_mode + + def state_dict(self): + return {key: value for key, value in self.__dict__.items() if key != 'optimizer'} + + def load_state_dict(self, state_dict): + self.__dict__.update(state_dict) + self._init_is_better(mode=self.mode, threshold=self.threshold, threshold_mode=self.threshold_mode) + + +class CyclicLR(LRScheduler): + r"""Sets the learning rate of each parameter group according to + cyclical learning rate policy (CLR). The policy cycles the learning + rate between two boundaries with a constant frequency, as detailed in + the paper `Cyclical Learning Rates for Training Neural Networks`_. + The distance between the two boundaries can be scaled on a per-iteration + or per-cycle basis. + + Cyclical learning rate policy changes the learning rate after every batch. + `step` should be called after a batch has been used for training. + + This class has three built-in policies, as put forth in the paper: + + * "triangular": A basic triangular cycle without amplitude scaling. + * "triangular2": A basic triangular cycle that scales initial amplitude by half each cycle. + * "exp_range": A cycle that scales initial amplitude by :math:`\text{gamma}^{\text{cycle iterations}}` + at each cycle iteration. + + This implementation was adapted from the github repo: `bckenstler/CLR`_ + + Args: + optimizer (Optimizer): Wrapped optimizer. + base_lr (float or list): Initial learning rate which is the + lower boundary in the cycle for each parameter group. + max_lr (float or list): Upper learning rate boundaries in the cycle + for each parameter group. Functionally, + it defines the cycle amplitude (max_lr - base_lr). + The lr at any cycle is the sum of base_lr + and some scaling of the amplitude; therefore + max_lr may not actually be reached depending on + scaling function. + step_size_up (int): Number of training iterations in the + increasing half of a cycle. Default: 2000 + step_size_down (int): Number of training iterations in the + decreasing half of a cycle. If step_size_down is None, + it is set to step_size_up. Default: None + mode (str): One of {triangular, triangular2, exp_range}. + Values correspond to policies detailed above. + If scale_fn is not None, this argument is ignored. + Default: 'triangular' + gamma (float): Constant in 'exp_range' scaling function: + gamma**(cycle iterations) + Default: 1.0 + scale_fn (function): Custom scaling policy defined by a single + argument lambda function, where + 0 <= scale_fn(x) <= 1 for all x >= 0. + If specified, then 'mode' is ignored. + Default: None + scale_mode (str): {'cycle', 'iterations'}. + Defines whether scale_fn is evaluated on + cycle number or cycle iterations (training + iterations since start of cycle). + Default: 'cycle' + cycle_momentum (bool): If ``True``, momentum is cycled inversely + to learning rate between 'base_momentum' and 'max_momentum'. + Default: True + base_momentum (float or list): Lower momentum boundaries in the cycle + for each parameter group. Note that momentum is cycled inversely + to learning rate; at the peak of a cycle, momentum is + 'base_momentum' and learning rate is 'max_lr'. + Default: 0.8 + max_momentum (float or list): Upper momentum boundaries in the cycle + for each parameter group. Functionally, + it defines the cycle amplitude (max_momentum - base_momentum). + The momentum at any cycle is the difference of max_momentum + and some scaling of the amplitude; therefore + base_momentum may not actually be reached depending on + scaling function. Note that momentum is cycled inversely + to learning rate; at the start of a cycle, momentum is 'max_momentum' + and learning rate is 'base_lr' + Default: 0.9 + last_epoch (int): The index of the last batch. This parameter is used when + resuming a training job. Since `step()` should be invoked after each + batch instead of after each epoch, this number represents the total + number of *batches* computed, not the total number of epochs computed. + When last_epoch=-1, the schedule is started from the beginning. + Default: -1 + verbose (bool): If ``True``, prints a message to stdout for + each update. Default: ``False``. + + .. deprecated:: 2.2 + ``verbose`` is deprecated. Please use ``get_last_lr()`` to access the + learning rate. + + Example: + >>> # xdoctest: +SKIP + >>> optimizer = torch.optim.SGD(model.parameters(), lr=0.1, momentum=0.9) + >>> scheduler = torch.optim.lr_scheduler.CyclicLR(optimizer, base_lr=0.01, max_lr=0.1) + >>> data_loader = torch.utils.data.DataLoader(...) + >>> for epoch in range(10): + >>> for batch in data_loader: + >>> train_batch(...) + >>> scheduler.step() + + + .. _Cyclical Learning Rates for Training Neural Networks: https://arxiv.org/abs/1506.01186 + .. _bckenstler/CLR: https://github.com/bckenstler/CLR + """ + + def __init__(self, + optimizer, + base_lr, + max_lr, + step_size_up=2000, + step_size_down=None, + mode='triangular', + gamma=1., + scale_fn=None, + scale_mode='cycle', + cycle_momentum=True, + base_momentum=0.8, + max_momentum=0.9, + last_epoch=-1, + verbose="deprecated"): + + # Attach optimizer + if not isinstance(optimizer, Optimizer): + raise TypeError(f'{type(optimizer).__name__} is not an Optimizer') + self.optimizer = optimizer + + base_lrs = self._format_param('base_lr', optimizer, base_lr) + if last_epoch == -1: + for lr, group in zip(base_lrs, optimizer.param_groups): + group['lr'] = lr + + self.max_lrs = self._format_param('max_lr', optimizer, max_lr) + + step_size_up = float(step_size_up) + step_size_down = float(step_size_down) if step_size_down is not None else step_size_up + self.total_size = step_size_up + step_size_down + self.step_ratio = step_size_up / self.total_size + + if mode not in ['triangular', 'triangular2', 'exp_range'] \ + and scale_fn is None: + raise ValueError('mode is invalid and scale_fn is None') + + self.mode = mode + self.gamma = gamma + + self._scale_fn_ref = None + self._scale_fn_custom = scale_fn + self.scale_mode = scale_mode + self._init_scale_fn() + + self.cycle_momentum = cycle_momentum + if cycle_momentum: + if 'momentum' not in optimizer.defaults and 'betas' not in optimizer.defaults: + raise ValueError('optimizer must support momentum or beta1 with `cycle_momentum` option enabled') + + self.use_beta1 = 'betas' in self.optimizer.defaults + self.base_momentums = self._format_param('base_momentum', optimizer, base_momentum) + self.max_momentums = self._format_param('max_momentum', optimizer, max_momentum) + if last_epoch == -1: + for m_momentum, b_momentum, group in zip(self.max_momentums, self.base_momentums, optimizer.param_groups): + if self.use_beta1: + group['betas'] = (m_momentum, *group['betas'][1:]) + else: + group['momentum'] = m_momentum + group['max_momentum'] = m_momentum + group['base_momentum'] = b_momentum + + super().__init__(optimizer, last_epoch, verbose) + self.base_lrs = base_lrs + + def _init_scale_fn(self): + if self._scale_fn_custom is not None: + return + if self.mode == 'triangular': + self._scale_fn_ref = self._triangular_scale_fn + self.scale_mode = 'cycle' + elif self.mode == 'triangular2': + self._scale_fn_ref = self._triangular2_scale_fn + self.scale_mode = 'cycle' + elif self.mode == 'exp_range': + self._scale_fn_ref = partial(self._exp_range_scale_fn, self.gamma) + self.scale_mode = 'iterations' + + def _format_param(self, name, optimizer, param): + """Return correctly formatted lr/momentum for each param group.""" + if isinstance(param, (list, tuple)): + if len(param) != len(optimizer.param_groups): + raise ValueError(f"expected {len(optimizer.param_groups)} values for {name}, got {len(param)}") + return param + else: + return [param] * len(optimizer.param_groups) + + def scale_fn(self, x): + if self._scale_fn_custom is not None: + return self._scale_fn_custom(x) + else: + return self._scale_fn_ref(x) # static method + + @staticmethod + def _triangular_scale_fn(x): + return 1. + + @staticmethod + def _triangular2_scale_fn(x): + return 1 / (2. ** (x - 1)) + + @staticmethod + def _exp_range_scale_fn(gamma, x): + return gamma ** x + + def get_lr(self): + """Calculates the learning rate at batch index. This function treats + `self.last_epoch` as the last batch index. + + If `self.cycle_momentum` is ``True``, this function has a side effect of + updating the optimizer's momentum. + """ + + if not self._get_lr_called_within_step: + warnings.warn("To get the last learning rate computed by the scheduler, " + "please use `get_last_lr()`.", UserWarning) + + cycle = math.floor(1 + self.last_epoch / self.total_size) + x = 1. + self.last_epoch / self.total_size - cycle + if x <= self.step_ratio: + scale_factor = x / self.step_ratio + else: + scale_factor = (x - 1) / (self.step_ratio - 1) + + lrs = [] + for base_lr, max_lr in zip(self.base_lrs, self.max_lrs): + base_height = (max_lr - base_lr) * scale_factor + if self.scale_mode == 'cycle': + lr = base_lr + base_height * self.scale_fn(cycle) + else: + lr = base_lr + base_height * self.scale_fn(self.last_epoch) + lrs.append(lr) + + if self.cycle_momentum: + momentums = [] + for base_momentum, max_momentum in zip(self.base_momentums, self.max_momentums): + base_height = (max_momentum - base_momentum) * scale_factor + if self.scale_mode == 'cycle': + momentum = max_momentum - base_height * self.scale_fn(cycle) + else: + momentum = max_momentum - base_height * self.scale_fn(self.last_epoch) + momentums.append(momentum) + for param_group, momentum in zip(self.optimizer.param_groups, momentums): + if self.use_beta1: + param_group['betas'] = (momentum, *param_group['betas'][1:]) + else: + param_group['momentum'] = momentum + + return lrs + + def state_dict(self): + state = super().state_dict() + # We are dropping the `_scale_fn_ref` attribute because it is a + # `weakref.WeakMethod` and can't be pickled. + state.pop('_scale_fn_ref') + fn = state.pop('_scale_fn_custom') + state['_scale_fn_custom'] = None + if fn is not None and not isinstance(fn, types.FunctionType): + # The _scale_fn_custom will only be saved if it is a callable object + # and not if it is a function or lambda. + state['_scale_fn_custom'] = fn.__dict__.copy() + + return state + + def load_state_dict(self, state_dict): + fn = state_dict.pop('_scale_fn_custom') + super().load_state_dict(state_dict) + if fn is not None: + self._scale_fn_custom.__dict__.update(fn) + self._init_scale_fn() + + +class CosineAnnealingWarmRestarts(LRScheduler): + r"""Set the learning rate of each parameter group using a cosine annealing + schedule, where :math:`\eta_{max}` is set to the initial lr, :math:`T_{cur}` + is the number of epochs since the last restart and :math:`T_{i}` is the number + of epochs between two warm restarts in SGDR: + + .. math:: + \eta_t = \eta_{min} + \frac{1}{2}(\eta_{max} - \eta_{min})\left(1 + + \cos\left(\frac{T_{cur}}{T_{i}}\pi\right)\right) + + When :math:`T_{cur}=T_{i}`, set :math:`\eta_t = \eta_{min}`. + When :math:`T_{cur}=0` after restart, set :math:`\eta_t=\eta_{max}`. + + It has been proposed in + `SGDR: Stochastic Gradient Descent with Warm Restarts`_. + + Args: + optimizer (Optimizer): Wrapped optimizer. + T_0 (int): Number of iterations for the first restart. + T_mult (int, optional): A factor increases :math:`T_{i}` after a restart. Default: 1. + eta_min (float, optional): Minimum learning rate. Default: 0. + last_epoch (int, optional): The index of last epoch. Default: -1. + verbose (bool): If ``True``, prints a message to stdout for + each update. Default: ``False``. + + .. deprecated:: 2.2 + ``verbose`` is deprecated. Please use ``get_last_lr()`` to access the + learning rate. + + .. _SGDR\: Stochastic Gradient Descent with Warm Restarts: + https://arxiv.org/abs/1608.03983 + """ + + def __init__(self, optimizer, T_0, T_mult=1, eta_min=0, last_epoch=-1, verbose="deprecated"): + if T_0 <= 0 or not isinstance(T_0, int): + raise ValueError(f"Expected positive integer T_0, but got {T_0}") + if T_mult < 1 or not isinstance(T_mult, int): + raise ValueError(f"Expected integer T_mult >= 1, but got {T_mult}") + if not isinstance(eta_min, (float, int)): + raise ValueError(f"Expected float or int eta_min, but got {eta_min} of type {type(eta_min)}") + self.T_0 = T_0 + self.T_i = T_0 + self.T_mult = T_mult + self.eta_min = eta_min + self.T_cur = last_epoch + super().__init__(optimizer, last_epoch, verbose) + + def get_lr(self): + if not self._get_lr_called_within_step: + warnings.warn("To get the last learning rate computed by the scheduler, " + "please use `get_last_lr()`.", UserWarning) + + return [self.eta_min + (base_lr - self.eta_min) * (1 + math.cos(math.pi * self.T_cur / self.T_i)) / 2 + for base_lr in self.base_lrs] + + def step(self, epoch=None): + """Step could be called after every batch update + + Example: + >>> # xdoctest: +SKIP("Undefined vars") + >>> scheduler = CosineAnnealingWarmRestarts(optimizer, T_0, T_mult) + >>> iters = len(dataloader) + >>> for epoch in range(20): + >>> for i, sample in enumerate(dataloader): + >>> inputs, labels = sample['inputs'], sample['labels'] + >>> optimizer.zero_grad() + >>> outputs = net(inputs) + >>> loss = criterion(outputs, labels) + >>> loss.backward() + >>> optimizer.step() + >>> scheduler.step(epoch + i / iters) + + This function can be called in an interleaved way. + + Example: + >>> # xdoctest: +SKIP("Undefined vars") + >>> scheduler = CosineAnnealingWarmRestarts(optimizer, T_0, T_mult) + >>> for epoch in range(20): + >>> scheduler.step() + >>> scheduler.step(26) + >>> scheduler.step() # scheduler.step(27), instead of scheduler(20) + """ + + if epoch is None and self.last_epoch < 0: + epoch = 0 + + if epoch is None: + epoch = self.last_epoch + 1 + self.T_cur = self.T_cur + 1 + if self.T_cur >= self.T_i: + self.T_cur = self.T_cur - self.T_i + self.T_i = self.T_i * self.T_mult + else: + if epoch < 0: + raise ValueError(f"Expected non-negative epoch, but got {epoch}") + if epoch >= self.T_0: + if self.T_mult == 1: + self.T_cur = epoch % self.T_0 + else: + n = int(math.log((epoch / self.T_0 * (self.T_mult - 1) + 1), self.T_mult)) + self.T_cur = epoch - self.T_0 * (self.T_mult ** n - 1) / (self.T_mult - 1) + self.T_i = self.T_0 * self.T_mult ** (n) + else: + self.T_i = self.T_0 + self.T_cur = epoch + self.last_epoch = math.floor(epoch) + + class _enable_get_lr_call: + + def __init__(self, o): + self.o = o + + def __enter__(self): + self.o._get_lr_called_within_step = True + return self + + def __exit__(self, type, value, traceback): + self.o._get_lr_called_within_step = False + return self + + with _enable_get_lr_call(self): + for i, data in enumerate(zip(self.optimizer.param_groups, self.get_lr())): + param_group, lr = data + param_group['lr'] = lr + + self._last_lr = [group['lr'] for group in self.optimizer.param_groups] + + +class OneCycleLR(LRScheduler): + r"""Sets the learning rate of each parameter group according to the + 1cycle learning rate policy. The 1cycle policy anneals the learning + rate from an initial learning rate to some maximum learning rate and then + from that maximum learning rate to some minimum learning rate much lower + than the initial learning rate. + This policy was initially described in the paper `Super-Convergence: + Very Fast Training of Neural Networks Using Large Learning Rates`_. + + The 1cycle learning rate policy changes the learning rate after every batch. + `step` should be called after a batch has been used for training. + + This scheduler is not chainable. + + Note also that the total number of steps in the cycle can be determined in one + of two ways (listed in order of precedence): + + #. A value for total_steps is explicitly provided. + #. A number of epochs (epochs) and a number of steps per epoch + (steps_per_epoch) are provided. + In this case, the number of total steps is inferred by + total_steps = epochs * steps_per_epoch + + You must either provide a value for total_steps or provide a value for both + epochs and steps_per_epoch. + + The default behaviour of this scheduler follows the fastai implementation of 1cycle, which + claims that "unpublished work has shown even better results by using only two phases". To + mimic the behaviour of the original paper instead, set ``three_phase=True``. + + Args: + optimizer (Optimizer): Wrapped optimizer. + max_lr (float or list): Upper learning rate boundaries in the cycle + for each parameter group. + total_steps (int): The total number of steps in the cycle. Note that + if a value is not provided here, then it must be inferred by providing + a value for epochs and steps_per_epoch. + Default: None + epochs (int): The number of epochs to train for. This is used along + with steps_per_epoch in order to infer the total number of steps in the cycle + if a value for total_steps is not provided. + Default: None + steps_per_epoch (int): The number of steps per epoch to train for. This is + used along with epochs in order to infer the total number of steps in the + cycle if a value for total_steps is not provided. + Default: None + pct_start (float): The percentage of the cycle (in number of steps) spent + increasing the learning rate. + Default: 0.3 + anneal_strategy (str): {'cos', 'linear'} + Specifies the annealing strategy: "cos" for cosine annealing, "linear" for + linear annealing. + Default: 'cos' + cycle_momentum (bool): If ``True``, momentum is cycled inversely + to learning rate between 'base_momentum' and 'max_momentum'. + Default: True + base_momentum (float or list): Lower momentum boundaries in the cycle + for each parameter group. Note that momentum is cycled inversely + to learning rate; at the peak of a cycle, momentum is + 'base_momentum' and learning rate is 'max_lr'. + Default: 0.85 + max_momentum (float or list): Upper momentum boundaries in the cycle + for each parameter group. Functionally, + it defines the cycle amplitude (max_momentum - base_momentum). + Note that momentum is cycled inversely + to learning rate; at the start of a cycle, momentum is 'max_momentum' + and learning rate is 'base_lr' + Default: 0.95 + div_factor (float): Determines the initial learning rate via + initial_lr = max_lr/div_factor + Default: 25 + final_div_factor (float): Determines the minimum learning rate via + min_lr = initial_lr/final_div_factor + Default: 1e4 + three_phase (bool): If ``True``, use a third phase of the schedule to annihilate the + learning rate according to 'final_div_factor' instead of modifying the second + phase (the first two phases will be symmetrical about the step indicated by + 'pct_start'). + last_epoch (int): The index of the last batch. This parameter is used when + resuming a training job. Since `step()` should be invoked after each + batch instead of after each epoch, this number represents the total + number of *batches* computed, not the total number of epochs computed. + When last_epoch=-1, the schedule is started from the beginning. + Default: -1 + verbose (bool): If ``True``, prints a message to stdout for + each update. Default: ``False``. + + .. deprecated:: 2.2 + ``verbose`` is deprecated. Please use ``get_last_lr()`` to access the + learning rate. + + Example: + >>> # xdoctest: +SKIP + >>> data_loader = torch.utils.data.DataLoader(...) + >>> optimizer = torch.optim.SGD(model.parameters(), lr=0.1, momentum=0.9) + >>> scheduler = torch.optim.lr_scheduler.OneCycleLR(optimizer, max_lr=0.01, steps_per_epoch=len(data_loader), epochs=10) + >>> for epoch in range(10): + >>> for batch in data_loader: + >>> train_batch(...) + >>> optimizer.step() + >>> scheduler.step() + + + .. _Super-Convergence\: Very Fast Training of Neural Networks Using Large Learning Rates: + https://arxiv.org/abs/1708.07120 + """ + def __init__(self, + optimizer, + max_lr, + total_steps=None, + epochs=None, + steps_per_epoch=None, + pct_start=0.3, + anneal_strategy='cos', + cycle_momentum=True, + base_momentum=0.85, + max_momentum=0.95, + div_factor=25., + final_div_factor=1e4, + three_phase=False, + last_epoch=-1, + verbose="deprecated"): + + # Validate optimizer + if not isinstance(optimizer, Optimizer): + raise TypeError(f'{type(optimizer).__name__} is not an Optimizer') + self.optimizer = optimizer + + # Validate total_steps + if total_steps is None and epochs is None and steps_per_epoch is None: + raise ValueError("You must define either total_steps OR (epochs AND steps_per_epoch)") + elif total_steps is not None: + if total_steps <= 0 or not isinstance(total_steps, int): + raise ValueError(f"Expected positive integer total_steps, but got {total_steps}") + self.total_steps = total_steps + else: + if epochs <= 0 or not isinstance(epochs, int): + raise ValueError(f"Expected positive integer epochs, but got {epochs}") + if steps_per_epoch <= 0 or not isinstance(steps_per_epoch, int): + raise ValueError(f"Expected positive integer steps_per_epoch, but got {steps_per_epoch}") + self.total_steps = epochs * steps_per_epoch + + if three_phase: + self._schedule_phases = [ + { + 'end_step': float(pct_start * self.total_steps) - 1, + 'start_lr': 'initial_lr', + 'end_lr': 'max_lr', + 'start_momentum': 'max_momentum', + 'end_momentum': 'base_momentum', + }, + { + 'end_step': float(2 * pct_start * self.total_steps) - 2, + 'start_lr': 'max_lr', + 'end_lr': 'initial_lr', + 'start_momentum': 'base_momentum', + 'end_momentum': 'max_momentum', + }, + { + 'end_step': self.total_steps - 1, + 'start_lr': 'initial_lr', + 'end_lr': 'min_lr', + 'start_momentum': 'max_momentum', + 'end_momentum': 'max_momentum', + }, + ] + else: + self._schedule_phases = [ + { + 'end_step': float(pct_start * self.total_steps) - 1, + 'start_lr': 'initial_lr', + 'end_lr': 'max_lr', + 'start_momentum': 'max_momentum', + 'end_momentum': 'base_momentum', + }, + { + 'end_step': self.total_steps - 1, + 'start_lr': 'max_lr', + 'end_lr': 'min_lr', + 'start_momentum': 'base_momentum', + 'end_momentum': 'max_momentum', + }, + ] + + # Validate pct_start + if pct_start < 0 or pct_start > 1 or not isinstance(pct_start, float): + raise ValueError(f"Expected float between 0 and 1 pct_start, but got {pct_start}") + + # Validate anneal_strategy + if anneal_strategy not in ['cos', 'linear']: + raise ValueError(f"anneal_strategy must by one of 'cos' or 'linear', instead got {anneal_strategy}") + elif anneal_strategy == 'cos': + self.anneal_func = self._annealing_cos + elif anneal_strategy == 'linear': + self.anneal_func = self._annealing_linear + + # Initialize learning rate variables + max_lrs = self._format_param('max_lr', self.optimizer, max_lr) + if last_epoch == -1: + for idx, group in enumerate(self.optimizer.param_groups): + group['initial_lr'] = max_lrs[idx] / div_factor + group['max_lr'] = max_lrs[idx] + group['min_lr'] = group['initial_lr'] / final_div_factor + + # Initialize momentum variables + self.cycle_momentum = cycle_momentum + if self.cycle_momentum: + if 'momentum' not in self.optimizer.defaults and 'betas' not in self.optimizer.defaults: + raise ValueError('optimizer must support momentum or beta1 with `cycle_momentum` option enabled') + self.use_beta1 = 'betas' in self.optimizer.defaults + max_momentums = self._format_param('max_momentum', optimizer, max_momentum) + base_momentums = self._format_param('base_momentum', optimizer, base_momentum) + if last_epoch == -1: + for m_momentum, b_momentum, group in zip(max_momentums, base_momentums, optimizer.param_groups): + if self.use_beta1: + group['betas'] = (m_momentum, *group['betas'][1:]) + else: + group['momentum'] = m_momentum + group['max_momentum'] = m_momentum + group['base_momentum'] = b_momentum + + super().__init__(optimizer, last_epoch, verbose) + + def _format_param(self, name, optimizer, param): + """Return correctly formatted lr/momentum for each param group.""" + if isinstance(param, (list, tuple)): + if len(param) != len(optimizer.param_groups): + raise ValueError(f"expected {len(optimizer.param_groups)} values for {name}, got {len(param)}") + return param + else: + return [param] * len(optimizer.param_groups) + + @staticmethod + def _annealing_cos(start, end, pct): + "Cosine anneal from `start` to `end` as pct goes from 0.0 to 1.0." + cos_out = math.cos(math.pi * pct) + 1 + return end + (start - end) / 2.0 * cos_out + + @staticmethod + def _annealing_linear(start, end, pct): + "Linearly anneal from `start` to `end` as pct goes from 0.0 to 1.0." + return (end - start) * pct + start + + def get_lr(self): + if not self._get_lr_called_within_step: + warnings.warn("To get the last learning rate computed by the scheduler, " + "please use `get_last_lr()`.", UserWarning) + + lrs = [] + step_num = self.last_epoch + + if step_num > self.total_steps: + raise ValueError("Tried to step {} times. The specified number of total steps is {}" + .format(step_num, self.total_steps)) + + for group in self.optimizer.param_groups: + start_step = 0 + for i, phase in enumerate(self._schedule_phases): + end_step = phase['end_step'] + if step_num <= end_step or i == len(self._schedule_phases) - 1: + pct = (step_num - start_step) / (end_step - start_step) + computed_lr = self.anneal_func(group[phase['start_lr']], group[phase['end_lr']], pct) + if self.cycle_momentum: + computed_momentum = self.anneal_func(group[phase['start_momentum']], group[phase['end_momentum']], pct) + break + start_step = phase['end_step'] + + lrs.append(computed_lr) + if self.cycle_momentum: + if self.use_beta1: + group['betas'] = (computed_momentum, *group['betas'][1:]) + else: + group['momentum'] = computed_momentum + + return lrs diff --git a/shared/package-files/6f/6fa80b91cfc54a6d754ac6fdb886a2e17c4b9385cbfeaa8ae8973693845278dd/qmc.py b/shared/package-files/6f/6fa80b91cfc54a6d754ac6fdb886a2e17c4b9385cbfeaa8ae8973693845278dd/qmc.py new file mode 100644 index 0000000000000000000000000000000000000000..a8a08343cf4c759938b31c29e32aaa644bf6e0fd --- /dev/null +++ b/shared/package-files/6f/6fa80b91cfc54a6d754ac6fdb886a2e17c4b9385cbfeaa8ae8973693845278dd/qmc.py @@ -0,0 +1,236 @@ +r""" +==================================================== +Quasi-Monte Carlo submodule (:mod:`scipy.stats.qmc`) +==================================================== + +.. currentmodule:: scipy.stats.qmc + +This module provides Quasi-Monte Carlo generators and associated helper +functions. + + +Quasi-Monte Carlo +================= + +Engines +------- + +.. autosummary:: + :toctree: generated/ + + QMCEngine + Sobol + Halton + LatinHypercube + PoissonDisk + MultinomialQMC + MultivariateNormalQMC + +Helpers +------- + +.. autosummary:: + :toctree: generated/ + + discrepancy + geometric_discrepancy + update_discrepancy + scale + + +Introduction to Quasi-Monte Carlo +================================= + +Quasi-Monte Carlo (QMC) methods [1]_, [2]_, [3]_ provide an +:math:`n \times d` array of numbers in :math:`[0,1]`. They can be used in +place of :math:`n` points from the :math:`U[0,1]^{d}` distribution. Compared to +random points, QMC points are designed to have fewer gaps and clumps. This is +quantified by discrepancy measures [4]_. From the Koksma-Hlawka +inequality [5]_ we know that low discrepancy reduces a bound on +integration error. Averaging a function :math:`f` over :math:`n` QMC points +can achieve an integration error close to :math:`O(n^{-1})` for well +behaved functions [2]_. + +Most QMC constructions are designed for special values of :math:`n` +such as powers of 2 or large primes. Changing the sample +size by even one can degrade their performance, even their +rate of convergence [6]_. For instance :math:`n=100` points may give less +accuracy than :math:`n=64` if the method was designed for :math:`n=2^m`. + +Some QMC constructions are extensible in :math:`n`: we can find +another special sample size :math:`n' > n` and often an infinite +sequence of increasing special sample sizes. Some QMC +constructions are extensible in :math:`d`: we can increase the dimension, +possibly to some upper bound, and typically without requiring +special values of :math:`d`. Some QMC methods are extensible in +both :math:`n` and :math:`d`. + +QMC points are deterministic. That makes it hard to estimate the accuracy of +integrals estimated by averages over QMC points. Randomized QMC (RQMC) [7]_ +points are constructed so that each point is individually :math:`U[0,1]^{d}` +while collectively the :math:`n` points retain their low discrepancy. +One can make :math:`R` independent replications of RQMC points to +see how stable a computation is. From :math:`R` independent values, +a t-test (or bootstrap t-test [8]_) then gives approximate confidence +intervals on the mean value. Some RQMC methods produce a +root mean squared error that is actually :math:`o(1/n)` and smaller than +the rate seen in unrandomized QMC. An intuitive explanation is +that the error is a sum of many small ones and random errors +cancel in a way that deterministic ones do not. RQMC also +has advantages on integrands that are singular or, for other +reasons, fail to be Riemann integrable. + +(R)QMC cannot beat Bahkvalov's curse of dimension (see [9]_). For +any random or deterministic method, there are worst case functions +that will give it poor performance in high dimensions. A worst +case function for QMC might be 0 at all n points but very +large elsewhere. Worst case analyses get very pessimistic +in high dimensions. (R)QMC can bring a great improvement over +MC when the functions on which it is used are not worst case. +For instance (R)QMC can be especially effective on integrands +that are well approximated by sums of functions of +some small number of their input variables at a time [10]_, [11]_. +That property is often a surprising finding about those functions. + +Also, to see an improvement over IID MC, (R)QMC requires a bit of smoothness of +the integrand, roughly the mixed first order derivative in each direction, +:math:`\partial^d f/\partial x_1 \cdots \partial x_d`, must be integral. +For instance, a function that is 1 inside the hypersphere and 0 outside of it +has infinite variation in the sense of Hardy and Krause for any dimension +:math:`d = 2`. + +Scrambled nets are a kind of RQMC that have some valuable robustness +properties [12]_. If the integrand is square integrable, they give variance +:math:`var_{SNET} = o(1/n)`. There is a finite upper bound on +:math:`var_{SNET} / var_{MC}` that holds simultaneously for every square +integrable integrand. Scrambled nets satisfy a strong law of large numbers +for :math:`f` in :math:`L^p` when :math:`p>1`. In some +special cases there is a central limit theorem [13]_. For smooth enough +integrands they can achieve RMSE nearly :math:`O(n^{-3})`. See [12]_ +for references about these properties. + +The main kinds of QMC methods are lattice rules [14]_ and digital +nets and sequences [2]_, [15]_. The theories meet up in polynomial +lattice rules [16]_ which can produce digital nets. Lattice rules +require some form of search for good constructions. For digital +nets there are widely used default constructions. + +The most widely used QMC methods are Sobol' sequences [17]_. +These are digital nets. They are extensible in both :math:`n` and :math:`d`. +They can be scrambled. The special sample sizes are powers +of 2. Another popular method are Halton sequences [18]_. +The constructions resemble those of digital nets. The earlier +dimensions have much better equidistribution properties than +later ones. There are essentially no special sample sizes. +They are not thought to be as accurate as Sobol' sequences. +They can be scrambled. The nets of Faure [19]_ are also widely +used. All dimensions are equally good, but the special sample +sizes grow rapidly with dimension :math:`d`. They can be scrambled. +The nets of Niederreiter and Xing [20]_ have the best asymptotic +properties but have not shown good empirical performance [21]_. + +Higher order digital nets are formed by a digit interleaving process +in the digits of the constructed points. They can achieve higher +levels of asymptotic accuracy given higher smoothness conditions on :math:`f` +and they can be scrambled [22]_. There is little or no empirical work +showing the improved rate to be attained. + +Using QMC is like using the entire period of a small random +number generator. The constructions are similar and so +therefore are the computational costs [23]_. + +(R)QMC is sometimes improved by passing the points through +a baker's transformation (tent function) prior to using them. +That function has the form :math:`1-2|x-1/2|`. As :math:`x` goes from 0 to +1, this function goes from 0 to 1 and then back. It is very +useful to produce a periodic function for lattice rules [14]_, +and sometimes it improves the convergence rate [24]_. + +It is not straightforward to apply QMC methods to Markov +chain Monte Carlo (MCMC). We can think of MCMC as using +:math:`n=1` point in :math:`[0,1]^{d}` for very large :math:`d`, with +ergodic results corresponding to :math:`d \to \infty`. One proposal is +in [25]_ and under strong conditions an improved rate of convergence +has been shown [26]_. + +Returning to Sobol' points: there are many versions depending +on what are called direction numbers. Those are the result of +searches and are tabulated. A very widely used set of direction +numbers come from [27]_. It is extensible in dimension up to +:math:`d=21201`. + +References +---------- +.. [1] Owen, Art B. "Monte Carlo Book: the Quasi-Monte Carlo parts." 2019. +.. [2] Niederreiter, Harald. "Random number generation and quasi-Monte Carlo + methods." Society for Industrial and Applied Mathematics, 1992. +.. [3] Dick, Josef, Frances Y. Kuo, and Ian H. Sloan. "High-dimensional + integration: the quasi-Monte Carlo way." Acta Numerica no. 22: 133, 2013. +.. [4] Aho, A. V., C. Aistleitner, T. Anderson, K. Appel, V. Arnol'd, N. + Aronszajn, D. Asotsky et al. "W. Chen et al.(eds.), "A Panorama of + Discrepancy Theory", Sringer International Publishing, + Switzerland: 679, 2014. +.. [5] Hickernell, Fred J. "Koksma-Hlawka Inequality." Wiley StatsRef: + Statistics Reference Online, 2014. +.. [6] Owen, Art B. "On dropping the first Sobol' point." :arxiv:`2008.08051`, + 2020. +.. [7] L'Ecuyer, Pierre, and Christiane Lemieux. "Recent advances in randomized + quasi-Monte Carlo methods." In Modeling uncertainty, pp. 419-474. Springer, + New York, NY, 2002. +.. [8] DiCiccio, Thomas J., and Bradley Efron. "Bootstrap confidence + intervals." Statistical science: 189-212, 1996. +.. [9] Dimov, Ivan T. "Monte Carlo methods for applied scientists." World + Scientific, 2008. +.. [10] Caflisch, Russel E., William J. Morokoff, and Art B. Owen. "Valuation + of mortgage backed securities using Brownian bridges to reduce effective + dimension." Journal of Computational Finance: no. 1 27-46, 1997. +.. [11] Sloan, Ian H., and Henryk Wozniakowski. "When are quasi-Monte Carlo + algorithms efficient for high dimensional integrals?." Journal of Complexity + 14, no. 1 (1998): 1-33. +.. [12] Owen, Art B., and Daniel Rudolf, "A strong law of large numbers for + scrambled net integration." SIAM Review, to appear. +.. [13] Loh, Wei-Liem. "On the asymptotic distribution of scrambled net + quadrature." The Annals of Statistics 31, no. 4: 1282-1324, 2003. +.. [14] Sloan, Ian H. and S. Joe. "Lattice methods for multiple integration." + Oxford University Press, 1994. +.. [15] Dick, Josef, and Friedrich Pillichshammer. "Digital nets and sequences: + discrepancy theory and quasi-Monte Carlo integration." Cambridge University + Press, 2010. +.. [16] Dick, Josef, F. Kuo, Friedrich Pillichshammer, and I. Sloan. + "Construction algorithms for polynomial lattice rules for multivariate + integration." Mathematics of computation 74, no. 252: 1895-1921, 2005. +.. [17] Sobol', Il'ya Meerovich. "On the distribution of points in a cube and + the approximate evaluation of integrals." Zhurnal Vychislitel'noi Matematiki + i Matematicheskoi Fiziki 7, no. 4: 784-802, 1967. +.. [18] Halton, John H. "On the efficiency of certain quasi-random sequences of + points in evaluating multi-dimensional integrals." Numerische Mathematik 2, + no. 1: 84-90, 1960. +.. [19] Faure, Henri. "Discrepance de suites associees a un systeme de + numeration (en dimension s)." Acta arithmetica 41, no. 4: 337-351, 1982. +.. [20] Niederreiter, Harold, and Chaoping Xing. "Low-discrepancy sequences and + global function fields with many rational places." Finite Fields and their + applications 2, no. 3: 241-273, 1996. +.. [21] Hong, Hee Sun, and Fred J. Hickernell. "Algorithm 823: Implementing + scrambled digital sequences." ACM Transactions on Mathematical Software + (TOMS) 29, no. 2: 95-109, 2003. +.. [22] Dick, Josef. "Higher order scrambled digital nets achieve the optimal + rate of the root mean square error for smooth integrands." The Annals of + Statistics 39, no. 3: 1372-1398, 2011. +.. [23] Niederreiter, Harald. "Multidimensional numerical integration using + pseudorandom numbers." In Stochastic Programming 84 Part I, pp. 17-38. + Springer, Berlin, Heidelberg, 1986. +.. [24] Hickernell, Fred J. "Obtaining O (N-2+e) Convergence for Lattice + Quadrature Rules." In Monte Carlo and Quasi-Monte Carlo Methods 2000, + pp. 274-289. Springer, Berlin, Heidelberg, 2002. +.. [25] Owen, Art B., and Seth D. Tribble. "A quasi-Monte Carlo Metropolis + algorithm." Proceedings of the National Academy of Sciences 102, + no. 25: 8844-8849, 2005. +.. [26] Chen, Su. "Consistency and convergence rate of Markov chain quasi Monte + Carlo with examples." PhD diss., Stanford University, 2011. +.. [27] Joe, Stephen, and Frances Y. Kuo. "Constructing Sobol sequences with + better two-dimensional projections." SIAM Journal on Scientific Computing + 30, no. 5: 2635-2654, 2008. + +""" +from ._qmc import * # noqa: F403 +from ._qmc import __all__ # noqa: F401 diff --git a/shared/package-files/6f/6fb1ab98c0ab25f23991718929bc5d30cf6458177e24a51d0a446afaf93c257a/test_backend_inline.py b/shared/package-files/6f/6fb1ab98c0ab25f23991718929bc5d30cf6458177e24a51d0a446afaf93c257a/test_backend_inline.py new file mode 100644 index 0000000000000000000000000000000000000000..6f0d67d51756b8f280522e8f2a9f5d6482f5c9ea --- /dev/null +++ b/shared/package-files/6f/6fb1ab98c0ab25f23991718929bc5d30cf6458177e24a51d0a446afaf93c257a/test_backend_inline.py @@ -0,0 +1,46 @@ +import os +from pathlib import Path +from tempfile import TemporaryDirectory + +import pytest + +from matplotlib.testing import subprocess_run_for_testing + +nbformat = pytest.importorskip('nbformat') +pytest.importorskip('nbconvert') +pytest.importorskip('ipykernel') +pytest.importorskip('matplotlib_inline') + + +def test_ipynb(): + nb_path = Path(__file__).parent / 'test_inline_01.ipynb' + + with TemporaryDirectory() as tmpdir: + out_path = Path(tmpdir, "out.ipynb") + + subprocess_run_for_testing( + ["jupyter", "nbconvert", "--to", "notebook", + "--execute", "--ExecutePreprocessor.timeout=500", + "--output", str(out_path), str(nb_path)], + env={**os.environ, "IPYTHONDIR": tmpdir}, + check=True) + with out_path.open() as out: + nb = nbformat.read(out, nbformat.current_nbformat) + + errors = [output for cell in nb.cells for output in cell.get("outputs", []) + if output.output_type == "error"] + assert not errors + + import IPython + if IPython.version_info[:2] >= (8, 24): + expected_backend = "inline" + else: + # This code can be removed when Python 3.12, the latest version supported by + # IPython < 8.24, reaches end-of-life in late 2028. + expected_backend = "module://matplotlib_inline.backend_inline" + backend_outputs = nb.cells[2]["outputs"] + assert backend_outputs[0]["data"]["text/plain"] == f"'{expected_backend}'" + + image = nb.cells[1]["outputs"][1]["data"] + assert image["text/plain"] == "
" + assert "image/png" in image diff --git a/shared/package-files/6f/6fb43d14c77b6f0111af9db4eebbc3c6035f99f1ae16a4b34778a94ccb403c77/ansi+cpr b/shared/package-files/6f/6fb43d14c77b6f0111af9db4eebbc3c6035f99f1ae16a4b34778a94ccb403c77/ansi+cpr new file mode 100644 index 0000000000000000000000000000000000000000..afa048db9238bbda717ec904ee7994ff49655e08 Binary files /dev/null and b/shared/package-files/6f/6fb43d14c77b6f0111af9db4eebbc3c6035f99f1ae16a4b34778a94ccb403c77/ansi+cpr differ diff --git a/shared/package-files/6f/6fb76636188975c24cd9cc8b7d7d62ef730d7e25704d47cc9b239d673054d9fc/__future__.pyi b/shared/package-files/6f/6fb76636188975c24cd9cc8b7d7d62ef730d7e25704d47cc9b239d673054d9fc/__future__.pyi new file mode 100644 index 0000000000000000000000000000000000000000..0483e736f06b43c9795b5b10492591a77382d1af --- /dev/null +++ b/shared/package-files/6f/6fb76636188975c24cd9cc8b7d7d62ef730d7e25704d47cc9b239d673054d9fc/__future__.pyi @@ -0,0 +1,25 @@ +import sys +from typing import List + +class _Feature: + def getOptionalRelease(self) -> sys._version_info: ... + def getMandatoryRelease(self) -> sys._version_info: ... + compiler_flag: int + +absolute_import: _Feature +division: _Feature +generators: _Feature +nested_scopes: _Feature +print_function: _Feature +unicode_literals: _Feature +with_statement: _Feature +if sys.version_info >= (3, 0): + barry_as_FLUFL: _Feature + +if sys.version_info >= (3, 5): + generator_stop: _Feature + +if sys.version_info >= (3, 7): + annotations: _Feature + +all_feature_names: List[str] # undocumented diff --git a/shared/package-files/6f/6fbcd26438397c6c3de40f4546c7112c81f784356e614ae529d8c90570d40f71/test_pytree.py b/shared/package-files/6f/6fbcd26438397c6c3de40f4546c7112c81f784356e614ae529d8c90570d40f71/test_pytree.py new file mode 100644 index 0000000000000000000000000000000000000000..177126d545291049cf5402aefe5a58f1fc837624 --- /dev/null +++ b/shared/package-files/6f/6fbcd26438397c6c3de40f4546c7112c81f784356e614ae529d8c90570d40f71/test_pytree.py @@ -0,0 +1,472 @@ +# Copyright 2006 Google, Inc. All Rights Reserved. +# Licensed to PSF under a Contributor Agreement. + +"""Unit tests for pytree.py. + +NOTE: Please *don't* add doc strings to individual test methods! +In verbose mode, printing of the module, class and method name is much +more helpful than printing of (the first line of) the docstring, +especially when debugging a test. +""" + +# Testing imports +from . import support + +from lib2to3 import pytree + +try: + sorted +except NameError: + def sorted(lst): + l = list(lst) + l.sort() + return l + +class TestNodes(support.TestCase): + + """Unit tests for nodes (Base, Leaf, Node).""" + + def test_instantiate_base(self): + if __debug__: + # Test that instantiating Base() raises an AssertionError + self.assertRaises(AssertionError, pytree.Base) + + def test_leaf(self): + l1 = pytree.Leaf(100, "foo") + self.assertEqual(l1.type, 100) + self.assertEqual(l1.value, "foo") + + def test_leaf_repr(self): + l1 = pytree.Leaf(100, "foo") + self.assertEqual(repr(l1), "Leaf(100, 'foo')") + + def test_leaf_str(self): + l1 = pytree.Leaf(100, "foo") + self.assertEqual(str(l1), "foo") + l2 = pytree.Leaf(100, "foo", context=(" ", (10, 1))) + self.assertEqual(str(l2), " foo") + + def test_leaf_str_numeric_value(self): + # Make sure that the Leaf's value is stringified. Failing to + # do this can cause a TypeError in certain situations. + l1 = pytree.Leaf(2, 5) + l1.prefix = "foo_" + self.assertEqual(str(l1), "foo_5") + + def test_leaf_equality(self): + l1 = pytree.Leaf(100, "foo") + l2 = pytree.Leaf(100, "foo", context=(" ", (1, 0))) + self.assertEqual(l1, l2) + l3 = pytree.Leaf(101, "foo") + l4 = pytree.Leaf(100, "bar") + self.assertNotEqual(l1, l3) + self.assertNotEqual(l1, l4) + + def test_leaf_prefix(self): + l1 = pytree.Leaf(100, "foo") + self.assertEqual(l1.prefix, "") + self.assertFalse(l1.was_changed) + l1.prefix = " ##\n\n" + self.assertEqual(l1.prefix, " ##\n\n") + self.assertTrue(l1.was_changed) + + def test_node(self): + l1 = pytree.Leaf(100, "foo") + l2 = pytree.Leaf(200, "bar") + n1 = pytree.Node(1000, [l1, l2]) + self.assertEqual(n1.type, 1000) + self.assertEqual(n1.children, [l1, l2]) + + def test_node_repr(self): + l1 = pytree.Leaf(100, "foo") + l2 = pytree.Leaf(100, "bar", context=(" ", (1, 0))) + n1 = pytree.Node(1000, [l1, l2]) + self.assertEqual(repr(n1), + "Node(1000, [%s, %s])" % (repr(l1), repr(l2))) + + def test_node_str(self): + l1 = pytree.Leaf(100, "foo") + l2 = pytree.Leaf(100, "bar", context=(" ", (1, 0))) + n1 = pytree.Node(1000, [l1, l2]) + self.assertEqual(str(n1), "foo bar") + + def test_node_prefix(self): + l1 = pytree.Leaf(100, "foo") + self.assertEqual(l1.prefix, "") + n1 = pytree.Node(1000, [l1]) + self.assertEqual(n1.prefix, "") + n1.prefix = " " + self.assertEqual(n1.prefix, " ") + self.assertEqual(l1.prefix, " ") + + def test_get_suffix(self): + l1 = pytree.Leaf(100, "foo", prefix="a") + l2 = pytree.Leaf(100, "bar", prefix="b") + n1 = pytree.Node(1000, [l1, l2]) + + self.assertEqual(l1.get_suffix(), l2.prefix) + self.assertEqual(l2.get_suffix(), "") + self.assertEqual(n1.get_suffix(), "") + + l3 = pytree.Leaf(100, "bar", prefix="c") + n2 = pytree.Node(1000, [n1, l3]) + + self.assertEqual(n1.get_suffix(), l3.prefix) + self.assertEqual(l3.get_suffix(), "") + self.assertEqual(n2.get_suffix(), "") + + def test_node_equality(self): + n1 = pytree.Node(1000, ()) + n2 = pytree.Node(1000, [], context=(" ", (1, 0))) + self.assertEqual(n1, n2) + n3 = pytree.Node(1001, ()) + self.assertNotEqual(n1, n3) + + def test_node_recursive_equality(self): + l1 = pytree.Leaf(100, "foo") + l2 = pytree.Leaf(100, "foo") + n1 = pytree.Node(1000, [l1]) + n2 = pytree.Node(1000, [l2]) + self.assertEqual(n1, n2) + l3 = pytree.Leaf(100, "bar") + n3 = pytree.Node(1000, [l3]) + self.assertNotEqual(n1, n3) + + def test_replace(self): + l1 = pytree.Leaf(100, "foo") + l2 = pytree.Leaf(100, "+") + l3 = pytree.Leaf(100, "bar") + n1 = pytree.Node(1000, [l1, l2, l3]) + self.assertEqual(n1.children, [l1, l2, l3]) + self.assertIsInstance(n1.children, list) + self.assertFalse(n1.was_changed) + l2new = pytree.Leaf(100, "-") + l2.replace(l2new) + self.assertEqual(n1.children, [l1, l2new, l3]) + self.assertIsInstance(n1.children, list) + self.assertTrue(n1.was_changed) + + def test_replace_with_list(self): + l1 = pytree.Leaf(100, "foo") + l2 = pytree.Leaf(100, "+") + l3 = pytree.Leaf(100, "bar") + n1 = pytree.Node(1000, [l1, l2, l3]) + + l2.replace([pytree.Leaf(100, "*"), pytree.Leaf(100, "*")]) + self.assertEqual(str(n1), "foo**bar") + self.assertIsInstance(n1.children, list) + + def test_leaves(self): + l1 = pytree.Leaf(100, "foo") + l2 = pytree.Leaf(100, "bar") + l3 = pytree.Leaf(100, "fooey") + n2 = pytree.Node(1000, [l1, l2]) + n3 = pytree.Node(1000, [l3]) + n1 = pytree.Node(1000, [n2, n3]) + + self.assertEqual(list(n1.leaves()), [l1, l2, l3]) + + def test_depth(self): + l1 = pytree.Leaf(100, "foo") + l2 = pytree.Leaf(100, "bar") + n2 = pytree.Node(1000, [l1, l2]) + n3 = pytree.Node(1000, []) + n1 = pytree.Node(1000, [n2, n3]) + + self.assertEqual(l1.depth(), 2) + self.assertEqual(n3.depth(), 1) + self.assertEqual(n1.depth(), 0) + + def test_post_order(self): + l1 = pytree.Leaf(100, "foo") + l2 = pytree.Leaf(100, "bar") + l3 = pytree.Leaf(100, "fooey") + c1 = pytree.Node(1000, [l1, l2]) + n1 = pytree.Node(1000, [c1, l3]) + self.assertEqual(list(n1.post_order()), [l1, l2, c1, l3, n1]) + + def test_pre_order(self): + l1 = pytree.Leaf(100, "foo") + l2 = pytree.Leaf(100, "bar") + l3 = pytree.Leaf(100, "fooey") + c1 = pytree.Node(1000, [l1, l2]) + n1 = pytree.Node(1000, [c1, l3]) + self.assertEqual(list(n1.pre_order()), [n1, c1, l1, l2, l3]) + + def test_changed(self): + l1 = pytree.Leaf(100, "f") + self.assertFalse(l1.was_changed) + l1.changed() + self.assertTrue(l1.was_changed) + + l1 = pytree.Leaf(100, "f") + n1 = pytree.Node(1000, [l1]) + self.assertFalse(n1.was_changed) + n1.changed() + self.assertTrue(n1.was_changed) + + l1 = pytree.Leaf(100, "foo") + l2 = pytree.Leaf(100, "+") + l3 = pytree.Leaf(100, "bar") + n1 = pytree.Node(1000, [l1, l2, l3]) + n2 = pytree.Node(1000, [n1]) + self.assertFalse(l1.was_changed) + self.assertFalse(n1.was_changed) + self.assertFalse(n2.was_changed) + + n1.changed() + self.assertTrue(n1.was_changed) + self.assertTrue(n2.was_changed) + self.assertFalse(l1.was_changed) + + def test_leaf_constructor_prefix(self): + for prefix in ("xyz_", ""): + l1 = pytree.Leaf(100, "self", prefix=prefix) + self.assertTrue(str(l1), prefix + "self") + self.assertEqual(l1.prefix, prefix) + + def test_node_constructor_prefix(self): + for prefix in ("xyz_", ""): + l1 = pytree.Leaf(100, "self") + l2 = pytree.Leaf(100, "foo", prefix="_") + n1 = pytree.Node(1000, [l1, l2], prefix=prefix) + self.assertTrue(str(n1), prefix + "self_foo") + self.assertEqual(n1.prefix, prefix) + self.assertEqual(l1.prefix, prefix) + self.assertEqual(l2.prefix, "_") + + def test_remove(self): + l1 = pytree.Leaf(100, "foo") + l2 = pytree.Leaf(100, "foo") + n1 = pytree.Node(1000, [l1, l2]) + n2 = pytree.Node(1000, [n1]) + + self.assertEqual(n1.remove(), 0) + self.assertEqual(n2.children, []) + self.assertEqual(l1.parent, n1) + self.assertEqual(n1.parent, None) + self.assertEqual(n2.parent, None) + self.assertFalse(n1.was_changed) + self.assertTrue(n2.was_changed) + + self.assertEqual(l2.remove(), 1) + self.assertEqual(l1.remove(), 0) + self.assertEqual(n1.children, []) + self.assertEqual(l1.parent, None) + self.assertEqual(n1.parent, None) + self.assertEqual(n2.parent, None) + self.assertTrue(n1.was_changed) + self.assertTrue(n2.was_changed) + + def test_remove_parentless(self): + n1 = pytree.Node(1000, []) + n1.remove() + self.assertEqual(n1.parent, None) + + l1 = pytree.Leaf(100, "foo") + l1.remove() + self.assertEqual(l1.parent, None) + + def test_node_set_child(self): + l1 = pytree.Leaf(100, "foo") + n1 = pytree.Node(1000, [l1]) + + l2 = pytree.Leaf(100, "bar") + n1.set_child(0, l2) + self.assertEqual(l1.parent, None) + self.assertEqual(l2.parent, n1) + self.assertEqual(n1.children, [l2]) + + n2 = pytree.Node(1000, [l1]) + n2.set_child(0, n1) + self.assertEqual(l1.parent, None) + self.assertEqual(n1.parent, n2) + self.assertEqual(n2.parent, None) + self.assertEqual(n2.children, [n1]) + + self.assertRaises(IndexError, n1.set_child, 4, l2) + # I don't care what it raises, so long as it's an exception + self.assertRaises(Exception, n1.set_child, 0, list) + + def test_node_insert_child(self): + l1 = pytree.Leaf(100, "foo") + n1 = pytree.Node(1000, [l1]) + + l2 = pytree.Leaf(100, "bar") + n1.insert_child(0, l2) + self.assertEqual(l2.parent, n1) + self.assertEqual(n1.children, [l2, l1]) + + l3 = pytree.Leaf(100, "abc") + n1.insert_child(2, l3) + self.assertEqual(n1.children, [l2, l1, l3]) + + # I don't care what it raises, so long as it's an exception + self.assertRaises(Exception, n1.insert_child, 0, list) + + def test_node_append_child(self): + n1 = pytree.Node(1000, []) + + l1 = pytree.Leaf(100, "foo") + n1.append_child(l1) + self.assertEqual(l1.parent, n1) + self.assertEqual(n1.children, [l1]) + + l2 = pytree.Leaf(100, "bar") + n1.append_child(l2) + self.assertEqual(l2.parent, n1) + self.assertEqual(n1.children, [l1, l2]) + + # I don't care what it raises, so long as it's an exception + self.assertRaises(Exception, n1.append_child, list) + + def test_node_next_sibling(self): + n1 = pytree.Node(1000, []) + n2 = pytree.Node(1000, []) + p1 = pytree.Node(1000, [n1, n2]) + + self.assertIs(n1.next_sibling, n2) + self.assertEqual(n2.next_sibling, None) + self.assertEqual(p1.next_sibling, None) + + def test_leaf_next_sibling(self): + l1 = pytree.Leaf(100, "a") + l2 = pytree.Leaf(100, "b") + p1 = pytree.Node(1000, [l1, l2]) + + self.assertIs(l1.next_sibling, l2) + self.assertEqual(l2.next_sibling, None) + self.assertEqual(p1.next_sibling, None) + + def test_node_prev_sibling(self): + n1 = pytree.Node(1000, []) + n2 = pytree.Node(1000, []) + p1 = pytree.Node(1000, [n1, n2]) + + self.assertIs(n2.prev_sibling, n1) + self.assertEqual(n1.prev_sibling, None) + self.assertEqual(p1.prev_sibling, None) + + def test_leaf_prev_sibling(self): + l1 = pytree.Leaf(100, "a") + l2 = pytree.Leaf(100, "b") + p1 = pytree.Node(1000, [l1, l2]) + + self.assertIs(l2.prev_sibling, l1) + self.assertEqual(l1.prev_sibling, None) + self.assertEqual(p1.prev_sibling, None) + + +class TestPatterns(support.TestCase): + + """Unit tests for tree matching patterns.""" + + def test_basic_patterns(self): + # Build a tree + l1 = pytree.Leaf(100, "foo") + l2 = pytree.Leaf(100, "bar") + l3 = pytree.Leaf(100, "foo") + n1 = pytree.Node(1000, [l1, l2]) + n2 = pytree.Node(1000, [l3]) + root = pytree.Node(1000, [n1, n2]) + # Build a pattern matching a leaf + pl = pytree.LeafPattern(100, "foo", name="pl") + r = {} + self.assertFalse(pl.match(root, results=r)) + self.assertEqual(r, {}) + self.assertFalse(pl.match(n1, results=r)) + self.assertEqual(r, {}) + self.assertFalse(pl.match(n2, results=r)) + self.assertEqual(r, {}) + self.assertTrue(pl.match(l1, results=r)) + self.assertEqual(r, {"pl": l1}) + r = {} + self.assertFalse(pl.match(l2, results=r)) + self.assertEqual(r, {}) + # Build a pattern matching a node + pn = pytree.NodePattern(1000, [pl], name="pn") + self.assertFalse(pn.match(root, results=r)) + self.assertEqual(r, {}) + self.assertFalse(pn.match(n1, results=r)) + self.assertEqual(r, {}) + self.assertTrue(pn.match(n2, results=r)) + self.assertEqual(r, {"pn": n2, "pl": l3}) + r = {} + self.assertFalse(pn.match(l1, results=r)) + self.assertEqual(r, {}) + self.assertFalse(pn.match(l2, results=r)) + self.assertEqual(r, {}) + + def test_wildcard(self): + # Build a tree for testing + l1 = pytree.Leaf(100, "foo") + l2 = pytree.Leaf(100, "bar") + l3 = pytree.Leaf(100, "foo") + n1 = pytree.Node(1000, [l1, l2]) + n2 = pytree.Node(1000, [l3]) + root = pytree.Node(1000, [n1, n2]) + # Build a pattern + pl = pytree.LeafPattern(100, "foo", name="pl") + pn = pytree.NodePattern(1000, [pl], name="pn") + pw = pytree.WildcardPattern([[pn], [pl, pl]], name="pw") + r = {} + self.assertFalse(pw.match_seq([root], r)) + self.assertEqual(r, {}) + self.assertFalse(pw.match_seq([n1], r)) + self.assertEqual(r, {}) + self.assertTrue(pw.match_seq([n2], r)) + # These are easier to debug + self.assertEqual(sorted(r.keys()), ["pl", "pn", "pw"]) + self.assertEqual(r["pl"], l1) + self.assertEqual(r["pn"], n2) + self.assertEqual(r["pw"], [n2]) + # But this is equivalent + self.assertEqual(r, {"pl": l1, "pn": n2, "pw": [n2]}) + r = {} + self.assertTrue(pw.match_seq([l1, l3], r)) + self.assertEqual(r, {"pl": l3, "pw": [l1, l3]}) + self.assertIs(r["pl"], l3) + r = {} + + def test_generate_matches(self): + la = pytree.Leaf(1, "a") + lb = pytree.Leaf(1, "b") + lc = pytree.Leaf(1, "c") + ld = pytree.Leaf(1, "d") + le = pytree.Leaf(1, "e") + lf = pytree.Leaf(1, "f") + leaves = [la, lb, lc, ld, le, lf] + root = pytree.Node(1000, leaves) + pa = pytree.LeafPattern(1, "a", "pa") + pb = pytree.LeafPattern(1, "b", "pb") + pc = pytree.LeafPattern(1, "c", "pc") + pd = pytree.LeafPattern(1, "d", "pd") + pe = pytree.LeafPattern(1, "e", "pe") + pf = pytree.LeafPattern(1, "f", "pf") + pw = pytree.WildcardPattern([[pa, pb, pc], [pd, pe], + [pa, pb], [pc, pd], [pe, pf]], + min=1, max=4, name="pw") + self.assertEqual([x[0] for x in pw.generate_matches(leaves)], + [3, 5, 2, 4, 6]) + pr = pytree.NodePattern(type=1000, content=[pw], name="pr") + matches = list(pytree.generate_matches([pr], [root])) + self.assertEqual(len(matches), 1) + c, r = matches[0] + self.assertEqual(c, 1) + self.assertEqual(str(r["pr"]), "abcdef") + self.assertEqual(r["pw"], [la, lb, lc, ld, le, lf]) + for c in "abcdef": + self.assertEqual(r["p" + c], pytree.Leaf(1, c)) + + def test_has_key_example(self): + pattern = pytree.NodePattern(331, + (pytree.LeafPattern(7), + pytree.WildcardPattern(name="args"), + pytree.LeafPattern(8))) + l1 = pytree.Leaf(7, "(") + l2 = pytree.Leaf(3, "x") + l3 = pytree.Leaf(8, ")") + node = pytree.Node(331, [l1, l2, l3]) + r = {} + self.assertTrue(pattern.match(node, r)) + self.assertEqual(r["args"], [l2]) diff --git a/shared/package-files/6f/6fbd0712112babc2099aaf31edc399cb8791fffddfab9b871e98ef3c1107a8c0/GMT+12 b/shared/package-files/6f/6fbd0712112babc2099aaf31edc399cb8791fffddfab9b871e98ef3c1107a8c0/GMT+12 new file mode 100644 index 0000000000000000000000000000000000000000..cdeec90973be28ee4075eadd22b8b574db2d7a5f Binary files /dev/null and b/shared/package-files/6f/6fbd0712112babc2099aaf31edc399cb8791fffddfab9b871e98ef3c1107a8c0/GMT+12 differ diff --git a/shared/package-files/6f/6fc31d5e0491d6a2b551ab8e91ba3e15ecaca44ee97c6bb6b0e4d0b95a9bcf67/sugar.py b/shared/package-files/6f/6fc31d5e0491d6a2b551ab8e91ba3e15ecaca44ee97c6bb6b0e4d0b95a9bcf67/sugar.py new file mode 100644 index 0000000000000000000000000000000000000000..56c1eaf6abba7eff7b57574c0df12b906c18fdf1 --- /dev/null +++ b/shared/package-files/6f/6fc31d5e0491d6a2b551ab8e91ba3e15ecaca44ee97c6bb6b0e4d0b95a9bcf67/sugar.py @@ -0,0 +1,67 @@ +from collections.abc import Mapping +from typing import Any, Optional, Union + +from .formula import FormulaSpec +from .model_matrix import ModelMatrices, ModelMatrix +from .model_spec import ModelSpec, ModelSpecs +from .utils.context import capture_context + + +def model_matrix( + spec: Union[FormulaSpec, ModelMatrix, ModelMatrices, ModelSpec, ModelSpecs], + data: Any, + *, + context: Union[int, Mapping[str, Any]] = 0, + drop_rows: Optional[set[int]] = None, + **spec_overrides: Any, +) -> Union[ModelMatrix, ModelMatrices]: + """ + Generate a model matrix directly from a formula or model spec. + + This method is syntactic sugar for: + ``` + Formula( + spec, + _context={"__formulaic_variables_available__": ...}, # used for the `.` operator + ).get_model_matrix(data, context=LayeredMapping(locals(), globals()), **kwargs) + ``` + or + ``` + model_spec.get_model_matrix(data, context=LayeredMapping(locals(), globals()), **kwargs) + ``` + + Args: + spec: The spec that describes the structure of the model matrix to be + generated. This can be either a `ModelMatrix` or `ModelSpec` + instance (in which case the structure and state associated with the + `ModelSpec` instance is re-used), or a formula specification or + instance (in which case the structure is built from scratch). + data: The raw data to be transformed into a model matrix. This can be + any of the supported data types, but is typically a + `pandas.DataFrame` instance. + context: The context from which variables (and custom transforms/etc) + should be inherited. When specified as an integer, it is interpreted + as a frame offset from the caller's frame (i.e. 0, the default, + means that all variables in the caller's scope should be made + accessible when interpreting and evaluating formulae). Otherwise, a + mapping from variable name to value is expected. + drop_rows: An optional set of row indices to drop from the model matrix. + If specified, it will also be updated during materialization with + any additional rows dropped due to null values. + spec_overrides: Any `ModelSpec` attributes to set/override. See + `ModelSpec` for more details. + + Returns: + The data transformed in to the model matrix with the requested + nominated structure. + """ + _context = capture_context(context + 1) if isinstance(context, int) else context + _spec_context = ( # use materializer context for parser context + ModelSpec.from_spec([], **spec_overrides) + .get_materializer(data, context=_context) + .layered_context + ) + + return ModelSpec.from_spec( + spec, context=_spec_context, **spec_overrides + ).get_model_matrix(data, context=_context, drop_rows=drop_rows) diff --git a/shared/package-files/6f/6fc4e8a154c73a40484ce2c962cdf0b0356ff3ac6f617b574a9cbf21d83b05dd/lt_cuda_dispatch.h b/shared/package-files/6f/6fc4e8a154c73a40484ce2c962cdf0b0356ff3ac6f617b574a9cbf21d83b05dd/lt_cuda_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..8ee8178d952a2e0e027d12c27368194b465b7d66 --- /dev/null +++ b/shared/package-files/6f/6fc4e8a154c73a40484ce2c962cdf0b0356ff3ac6f617b574a9cbf21d83b05dd/lt_cuda_dispatch.h @@ -0,0 +1,30 @@ +#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 lt(const at::Tensor & self, const at::Scalar & other); +TORCH_API at::Tensor & lt_out(at::Tensor & out, const at::Tensor & self, const at::Scalar & other); +TORCH_API at::Tensor & lt_outf(const at::Tensor & self, const at::Scalar & other, at::Tensor & out); +TORCH_API at::Tensor & lt_(at::Tensor & self, const at::Scalar & other); +TORCH_API at::Tensor lt(const at::Tensor & self, const at::Tensor & other); +TORCH_API at::Tensor & lt_out(at::Tensor & out, const at::Tensor & self, const at::Tensor & other); +TORCH_API at::Tensor & lt_outf(const at::Tensor & self, const at::Tensor & other, at::Tensor & out); +TORCH_API at::Tensor & lt_(at::Tensor & self, const at::Tensor & other); + +} // namespace cuda +} // namespace at diff --git a/shared/package-files/6f/6fc621cca6d246a19d3474f0e8b33cf24aecd0d89c649e92e2786709b9e24408/_base.py b/shared/package-files/6f/6fc621cca6d246a19d3474f0e8b33cf24aecd0d89c649e92e2786709b9e24408/_base.py new file mode 100644 index 0000000000000000000000000000000000000000..a329e74d11fdf2b1f93e00701e4cc64ef0b52e9b --- /dev/null +++ b/shared/package-files/6f/6fc621cca6d246a19d3474f0e8b33cf24aecd0d89c649e92e2786709b9e24408/_base.py @@ -0,0 +1,656 @@ +# Copyright 2009 Brian Quinlan. All Rights Reserved. +# Licensed to PSF under a Contributor Agreement. + +__author__ = 'Brian Quinlan (brian@sweetapp.com)' + +import collections +import logging +import threading +import time +import types + +FIRST_COMPLETED = 'FIRST_COMPLETED' +FIRST_EXCEPTION = 'FIRST_EXCEPTION' +ALL_COMPLETED = 'ALL_COMPLETED' +_AS_COMPLETED = '_AS_COMPLETED' + +# Possible future states (for internal use by the futures package). +PENDING = 'PENDING' +RUNNING = 'RUNNING' +# The future was cancelled by the user... +CANCELLED = 'CANCELLED' +# ...and _Waiter.add_cancelled() was called by a worker. +CANCELLED_AND_NOTIFIED = 'CANCELLED_AND_NOTIFIED' +FINISHED = 'FINISHED' + +_FUTURE_STATES = [ + PENDING, + RUNNING, + CANCELLED, + CANCELLED_AND_NOTIFIED, + FINISHED +] + +_STATE_TO_DESCRIPTION_MAP = { + PENDING: "pending", + RUNNING: "running", + CANCELLED: "cancelled", + CANCELLED_AND_NOTIFIED: "cancelled", + FINISHED: "finished" +} + +# Logger for internal use by the futures package. +LOGGER = logging.getLogger("concurrent.futures") + +class Error(Exception): + """Base class for all future-related exceptions.""" + pass + +class CancelledError(Error): + """The Future was cancelled.""" + pass + +class TimeoutError(Error): + """The operation exceeded the given deadline.""" + pass + +class InvalidStateError(Error): + """The operation is not allowed in this state.""" + pass + +class _Waiter(object): + """Provides the event that wait() and as_completed() block on.""" + def __init__(self): + self.event = threading.Event() + self.finished_futures = [] + + def add_result(self, future): + self.finished_futures.append(future) + + def add_exception(self, future): + self.finished_futures.append(future) + + def add_cancelled(self, future): + self.finished_futures.append(future) + +class _AsCompletedWaiter(_Waiter): + """Used by as_completed().""" + + def __init__(self): + super(_AsCompletedWaiter, self).__init__() + self.lock = threading.Lock() + + def add_result(self, future): + with self.lock: + super(_AsCompletedWaiter, self).add_result(future) + self.event.set() + + def add_exception(self, future): + with self.lock: + super(_AsCompletedWaiter, self).add_exception(future) + self.event.set() + + def add_cancelled(self, future): + with self.lock: + super(_AsCompletedWaiter, self).add_cancelled(future) + self.event.set() + +class _FirstCompletedWaiter(_Waiter): + """Used by wait(return_when=FIRST_COMPLETED).""" + + def add_result(self, future): + super().add_result(future) + self.event.set() + + def add_exception(self, future): + super().add_exception(future) + self.event.set() + + def add_cancelled(self, future): + super().add_cancelled(future) + self.event.set() + +class _AllCompletedWaiter(_Waiter): + """Used by wait(return_when=FIRST_EXCEPTION and ALL_COMPLETED).""" + + def __init__(self, num_pending_calls, stop_on_exception): + self.num_pending_calls = num_pending_calls + self.stop_on_exception = stop_on_exception + self.lock = threading.Lock() + super().__init__() + + def _decrement_pending_calls(self): + with self.lock: + self.num_pending_calls -= 1 + if not self.num_pending_calls: + self.event.set() + + def add_result(self, future): + super().add_result(future) + self._decrement_pending_calls() + + def add_exception(self, future): + super().add_exception(future) + if self.stop_on_exception: + self.event.set() + else: + self._decrement_pending_calls() + + def add_cancelled(self, future): + super().add_cancelled(future) + self._decrement_pending_calls() + +class _AcquireFutures(object): + """A context manager that does an ordered acquire of Future conditions.""" + + def __init__(self, futures): + self.futures = sorted(futures, key=id) + + def __enter__(self): + for future in self.futures: + future._condition.acquire() + + def __exit__(self, *args): + for future in self.futures: + future._condition.release() + +def _create_and_install_waiters(fs, return_when): + if return_when == _AS_COMPLETED: + waiter = _AsCompletedWaiter() + elif return_when == FIRST_COMPLETED: + waiter = _FirstCompletedWaiter() + else: + pending_count = sum( + f._state not in [CANCELLED_AND_NOTIFIED, FINISHED] for f in fs) + + if return_when == FIRST_EXCEPTION: + waiter = _AllCompletedWaiter(pending_count, stop_on_exception=True) + elif return_when == ALL_COMPLETED: + waiter = _AllCompletedWaiter(pending_count, stop_on_exception=False) + else: + raise ValueError("Invalid return condition: %r" % return_when) + + for f in fs: + f._waiters.append(waiter) + + return waiter + + +def _yield_finished_futures(fs, waiter, ref_collect): + """ + Iterate on the list *fs*, yielding finished futures one by one in + reverse order. + Before yielding a future, *waiter* is removed from its waiters + and the future is removed from each set in the collection of sets + *ref_collect*. + + The aim of this function is to avoid keeping stale references after + the future is yielded and before the iterator resumes. + """ + while fs: + f = fs[-1] + for futures_set in ref_collect: + futures_set.remove(f) + with f._condition: + f._waiters.remove(waiter) + del f + # Careful not to keep a reference to the popped value + yield fs.pop() + + +def as_completed(fs, timeout=None): + """An iterator over the given futures that yields each as it completes. + + Args: + fs: The sequence of Futures (possibly created by different Executors) to + iterate over. + timeout: The maximum number of seconds to wait. If None, then there + is no limit on the wait time. + + Returns: + An iterator that yields the given Futures as they complete (finished or + cancelled). If any given Futures are duplicated, they will be returned + once. + + Raises: + TimeoutError: If the entire result iterator could not be generated + before the given timeout. + """ + if timeout is not None: + end_time = timeout + time.monotonic() + + fs = set(fs) + total_futures = len(fs) + with _AcquireFutures(fs): + finished = set( + f for f in fs + if f._state in [CANCELLED_AND_NOTIFIED, FINISHED]) + pending = fs - finished + waiter = _create_and_install_waiters(fs, _AS_COMPLETED) + finished = list(finished) + try: + yield from _yield_finished_futures(finished, waiter, + ref_collect=(fs,)) + + while pending: + if timeout is None: + wait_timeout = None + else: + wait_timeout = end_time - time.monotonic() + if wait_timeout < 0: + raise TimeoutError( + '%d (of %d) futures unfinished' % ( + len(pending), total_futures)) + + waiter.event.wait(wait_timeout) + + with waiter.lock: + finished = waiter.finished_futures + waiter.finished_futures = [] + waiter.event.clear() + + # reverse to keep finishing order + finished.reverse() + yield from _yield_finished_futures(finished, waiter, + ref_collect=(fs, pending)) + + finally: + # Remove waiter from unfinished futures + for f in fs: + with f._condition: + f._waiters.remove(waiter) + +DoneAndNotDoneFutures = collections.namedtuple( + 'DoneAndNotDoneFutures', 'done not_done') +def wait(fs, timeout=None, return_when=ALL_COMPLETED): + """Wait for the futures in the given sequence to complete. + + Args: + fs: The sequence of Futures (possibly created by different Executors) to + wait upon. + timeout: The maximum number of seconds to wait. If None, then there + is no limit on the wait time. + return_when: Indicates when this function should return. The options + are: + + FIRST_COMPLETED - Return when any future finishes or is + cancelled. + FIRST_EXCEPTION - Return when any future finishes by raising an + exception. If no future raises an exception + then it is equivalent to ALL_COMPLETED. + ALL_COMPLETED - Return when all futures finish or are cancelled. + + Returns: + A named 2-tuple of sets. The first set, named 'done', contains the + futures that completed (is finished or cancelled) before the wait + completed. The second set, named 'not_done', contains uncompleted + futures. Duplicate futures given to *fs* are removed and will be + returned only once. + """ + fs = set(fs) + with _AcquireFutures(fs): + done = {f for f in fs + if f._state in [CANCELLED_AND_NOTIFIED, FINISHED]} + not_done = fs - done + if (return_when == FIRST_COMPLETED) and done: + return DoneAndNotDoneFutures(done, not_done) + elif (return_when == FIRST_EXCEPTION) and done: + if any(f for f in done + if not f.cancelled() and f.exception() is not None): + return DoneAndNotDoneFutures(done, not_done) + + if len(done) == len(fs): + return DoneAndNotDoneFutures(done, not_done) + + waiter = _create_and_install_waiters(fs, return_when) + + waiter.event.wait(timeout) + for f in fs: + with f._condition: + f._waiters.remove(waiter) + + done.update(waiter.finished_futures) + return DoneAndNotDoneFutures(done, fs - done) + + +def _result_or_cancel(fut, timeout=None): + try: + try: + return fut.result(timeout) + finally: + fut.cancel() + finally: + # Break a reference cycle with the exception in self._exception + del fut + + +class Future(object): + """Represents the result of an asynchronous computation.""" + + def __init__(self): + """Initializes the future. Should not be called by clients.""" + self._condition = threading.Condition() + self._state = PENDING + self._result = None + self._exception = None + self._waiters = [] + self._done_callbacks = [] + + def _invoke_callbacks(self): + for callback in self._done_callbacks: + try: + callback(self) + except Exception: + LOGGER.exception('exception calling callback for %r', self) + + def __repr__(self): + with self._condition: + if self._state == FINISHED: + if self._exception: + return '<%s at %#x state=%s raised %s>' % ( + self.__class__.__name__, + id(self), + _STATE_TO_DESCRIPTION_MAP[self._state], + self._exception.__class__.__name__) + else: + return '<%s at %#x state=%s returned %s>' % ( + self.__class__.__name__, + id(self), + _STATE_TO_DESCRIPTION_MAP[self._state], + self._result.__class__.__name__) + return '<%s at %#x state=%s>' % ( + self.__class__.__name__, + id(self), + _STATE_TO_DESCRIPTION_MAP[self._state]) + + def cancel(self): + """Cancel the future if possible. + + Returns True if the future was cancelled, False otherwise. A future + cannot be cancelled if it is running or has already completed. + """ + with self._condition: + if self._state in [RUNNING, FINISHED]: + return False + + if self._state in [CANCELLED, CANCELLED_AND_NOTIFIED]: + return True + + self._state = CANCELLED + self._condition.notify_all() + + self._invoke_callbacks() + return True + + def cancelled(self): + """Return True if the future was cancelled.""" + with self._condition: + return self._state in [CANCELLED, CANCELLED_AND_NOTIFIED] + + def running(self): + """Return True if the future is currently executing.""" + with self._condition: + return self._state == RUNNING + + def done(self): + """Return True if the future was cancelled or finished executing.""" + with self._condition: + return self._state in [CANCELLED, CANCELLED_AND_NOTIFIED, FINISHED] + + def __get_result(self): + if self._exception: + try: + raise self._exception + finally: + # Break a reference cycle with the exception in self._exception + self = None + else: + return self._result + + def add_done_callback(self, fn): + """Attaches a callable that will be called when the future finishes. + + Args: + fn: A callable that will be called with this future as its only + argument when the future completes or is cancelled. The callable + will always be called by a thread in the same process in which + it was added. If the future has already completed or been + cancelled then the callable will be called immediately. These + callables are called in the order that they were added. + """ + with self._condition: + if self._state not in [CANCELLED, CANCELLED_AND_NOTIFIED, FINISHED]: + self._done_callbacks.append(fn) + return + try: + fn(self) + except Exception: + LOGGER.exception('exception calling callback for %r', self) + + def result(self, timeout=None): + """Return the result of the call that the future represents. + + Args: + timeout: The number of seconds to wait for the result if the future + isn't done. If None, then there is no limit on the wait time. + + Returns: + The result of the call that the future represents. + + Raises: + CancelledError: If the future was cancelled. + TimeoutError: If the future didn't finish executing before the given + timeout. + Exception: If the call raised then that exception will be raised. + """ + try: + with self._condition: + if self._state in [CANCELLED, CANCELLED_AND_NOTIFIED]: + raise CancelledError() + elif self._state == FINISHED: + return self.__get_result() + + self._condition.wait(timeout) + + if self._state in [CANCELLED, CANCELLED_AND_NOTIFIED]: + raise CancelledError() + elif self._state == FINISHED: + return self.__get_result() + else: + raise TimeoutError() + finally: + # Break a reference cycle with the exception in self._exception + self = None + + def exception(self, timeout=None): + """Return the exception raised by the call that the future represents. + + Args: + timeout: The number of seconds to wait for the exception if the + future isn't done. If None, then there is no limit on the wait + time. + + Returns: + The exception raised by the call that the future represents or None + if the call completed without raising. + + Raises: + CancelledError: If the future was cancelled. + TimeoutError: If the future didn't finish executing before the given + timeout. + """ + + with self._condition: + if self._state in [CANCELLED, CANCELLED_AND_NOTIFIED]: + raise CancelledError() + elif self._state == FINISHED: + return self._exception + + self._condition.wait(timeout) + + if self._state in [CANCELLED, CANCELLED_AND_NOTIFIED]: + raise CancelledError() + elif self._state == FINISHED: + return self._exception + else: + raise TimeoutError() + + # The following methods should only be used by Executors and in tests. + def set_running_or_notify_cancel(self): + """Mark the future as running or process any cancel notifications. + + Should only be used by Executor implementations and unit tests. + + If the future has been cancelled (cancel() was called and returned + True) then any threads waiting on the future completing (though calls + to as_completed() or wait()) are notified and False is returned. + + If the future was not cancelled then it is put in the running state + (future calls to running() will return True) and True is returned. + + This method should be called by Executor implementations before + executing the work associated with this future. If this method returns + False then the work should not be executed. + + Returns: + False if the Future was cancelled, True otherwise. + + Raises: + RuntimeError: if this method was already called or if set_result() + or set_exception() was called. + """ + with self._condition: + if self._state == CANCELLED: + self._state = CANCELLED_AND_NOTIFIED + for waiter in self._waiters: + waiter.add_cancelled(self) + # self._condition.notify_all() is not necessary because + # self.cancel() triggers a notification. + return False + elif self._state == PENDING: + self._state = RUNNING + return True + else: + LOGGER.critical('Future %s in unexpected state: %s', + id(self), + self._state) + raise RuntimeError('Future in unexpected state') + + def set_result(self, result): + """Sets the return value of work associated with the future. + + Should only be used by Executor implementations and unit tests. + """ + with self._condition: + if self._state in {CANCELLED, CANCELLED_AND_NOTIFIED, FINISHED}: + raise InvalidStateError('{}: {!r}'.format(self._state, self)) + self._result = result + self._state = FINISHED + for waiter in self._waiters: + waiter.add_result(self) + self._condition.notify_all() + self._invoke_callbacks() + + def set_exception(self, exception): + """Sets the result of the future as being the given exception. + + Should only be used by Executor implementations and unit tests. + """ + with self._condition: + if self._state in {CANCELLED, CANCELLED_AND_NOTIFIED, FINISHED}: + raise InvalidStateError('{}: {!r}'.format(self._state, self)) + self._exception = exception + self._state = FINISHED + for waiter in self._waiters: + waiter.add_exception(self) + self._condition.notify_all() + self._invoke_callbacks() + + __class_getitem__ = classmethod(types.GenericAlias) + +class Executor(object): + """This is an abstract base class for concrete asynchronous executors.""" + + def submit(self, fn, /, *args, **kwargs): + """Submits a callable to be executed with the given arguments. + + Schedules the callable to be executed as fn(*args, **kwargs) and returns + a Future instance representing the execution of the callable. + + Returns: + A Future representing the given call. + """ + raise NotImplementedError() + + def map(self, fn, *iterables, timeout=None, chunksize=1): + """Returns an iterator equivalent to map(fn, iter). + + Args: + fn: A callable that will take as many arguments as there are + passed iterables. + timeout: The maximum number of seconds to wait. If None, then there + is no limit on the wait time. + chunksize: The size of the chunks the iterable will be broken into + before being passed to a child process. This argument is only + used by ProcessPoolExecutor; it is ignored by + ThreadPoolExecutor. + + Returns: + An iterator equivalent to: map(func, *iterables) but the calls may + be evaluated out-of-order. + + Raises: + TimeoutError: If the entire result iterator could not be generated + before the given timeout. + Exception: If fn(*args) raises for any values. + """ + if timeout is not None: + end_time = timeout + time.monotonic() + + fs = [self.submit(fn, *args) for args in zip(*iterables)] + + # Yield must be hidden in closure so that the futures are submitted + # before the first iterator value is required. + def result_iterator(): + try: + # reverse to keep finishing order + fs.reverse() + while fs: + # Careful not to keep a reference to the popped future + if timeout is None: + yield _result_or_cancel(fs.pop()) + else: + yield _result_or_cancel(fs.pop(), end_time - time.monotonic()) + finally: + for future in fs: + future.cancel() + return result_iterator() + + def shutdown(self, wait=True, *, cancel_futures=False): + """Clean-up the resources associated with the Executor. + + It is safe to call this method several times. Otherwise, no other + methods can be called after this one. + + Args: + wait: If True then shutdown will not return until all running + futures have finished executing and the resources used by the + executor have been reclaimed. + cancel_futures: If True then shutdown will cancel all pending + futures. Futures that are completed or running will not be + cancelled. + """ + pass + + def __enter__(self): + return self + + def __exit__(self, exc_type, exc_val, exc_tb): + self.shutdown(wait=True) + return False + + +class BrokenExecutor(RuntimeError): + """ + Raised when a executor has become non-functional after a severe failure. + """ diff --git a/shared/package-files/6f/6fc7812f098bf22cdef9adf44cc0e4a16b83ca6d363ef063afb6b27cbc1a47f2/test_cartesian.py b/shared/package-files/6f/6fc7812f098bf22cdef9adf44cc0e4a16b83ca6d363ef063afb6b27cbc1a47f2/test_cartesian.py new file mode 100644 index 0000000000000000000000000000000000000000..ddfd28d8b5f44952932c6239fff131134b138154 --- /dev/null +++ b/shared/package-files/6f/6fc7812f098bf22cdef9adf44cc0e4a16b83ca6d363ef063afb6b27cbc1a47f2/test_cartesian.py @@ -0,0 +1,104 @@ +"""Tests for cartesian.py""" + +from sympy.core.numbers import (I, pi) +from sympy.core.singleton import S +from sympy.core.symbol import symbols +from sympy.functions.elementary.exponential import exp +from sympy.functions.elementary.miscellaneous import sqrt +from sympy.functions.special.delta_functions import DiracDelta +from sympy.sets.sets import Interval + +from sympy.physics.quantum import qapply, represent, L2, Dagger +from sympy.physics.quantum import Commutator, hbar +from sympy.physics.quantum.cartesian import ( + XOp, YOp, ZOp, PxOp, X, Y, Z, Px, XKet, XBra, PxKet, PxBra, + PositionKet3D, PositionBra3D +) +from sympy.physics.quantum.operator import DifferentialOperator + +x, y, z, x_1, x_2, x_3, y_1, z_1 = symbols('x,y,z,x_1,x_2,x_3,y_1,z_1') +px, py, px_1, px_2 = symbols('px py px_1 px_2') + + +def test_x(): + assert X.hilbert_space == L2(Interval(S.NegativeInfinity, S.Infinity)) + assert Commutator(X, Px).doit() == I*hbar + assert qapply(X*XKet(x)) == x*XKet(x) + assert XKet(x).dual_class() == XBra + assert XBra(x).dual_class() == XKet + assert (Dagger(XKet(y))*XKet(x)).doit() == DiracDelta(x - y) + assert (PxBra(px)*XKet(x)).doit() == \ + exp(-I*x*px/hbar)/sqrt(2*pi*hbar) + assert represent(XKet(x)) == DiracDelta(x - x_1) + assert represent(XBra(x)) == DiracDelta(-x + x_1) + assert XBra(x).position == x + assert represent(XOp()*XKet()) == x*DiracDelta(x - x_2) + assert represent(XOp()*XKet()*XBra('y')) == \ + x*DiracDelta(x - x_3)*DiracDelta(x_1 - y) + assert represent(XBra("y")*XKet()) == DiracDelta(x - y) + assert represent( + XKet()*XBra()) == DiracDelta(x - x_2) * DiracDelta(x_1 - x) + + rep_p = represent(XOp(), basis=PxOp) + assert rep_p == hbar*I*DiracDelta(px_1 - px_2)*DifferentialOperator(px_1) + assert rep_p == represent(XOp(), basis=PxOp()) + assert rep_p == represent(XOp(), basis=PxKet) + assert rep_p == represent(XOp(), basis=PxKet()) + + assert represent(XOp()*PxKet(), basis=PxKet) == \ + hbar*I*DiracDelta(px - px_2)*DifferentialOperator(px) + + +def test_p(): + assert Px.hilbert_space == L2(Interval(S.NegativeInfinity, S.Infinity)) + assert qapply(Px*PxKet(px)) == px*PxKet(px) + assert PxKet(px).dual_class() == PxBra + assert PxBra(x).dual_class() == PxKet + assert (Dagger(PxKet(py))*PxKet(px)).doit() == DiracDelta(px - py) + assert (XBra(x)*PxKet(px)).doit() == \ + exp(I*x*px/hbar)/sqrt(2*pi*hbar) + assert represent(PxKet(px)) == DiracDelta(px - px_1) + + rep_x = represent(PxOp(), basis=XOp) + assert rep_x == -hbar*I*DiracDelta(x_1 - x_2)*DifferentialOperator(x_1) + assert rep_x == represent(PxOp(), basis=XOp()) + assert rep_x == represent(PxOp(), basis=XKet) + assert rep_x == represent(PxOp(), basis=XKet()) + + assert represent(PxOp()*XKet(), basis=XKet) == \ + -hbar*I*DiracDelta(x - x_2)*DifferentialOperator(x) + assert represent(XBra("y")*PxOp()*XKet(), basis=XKet) == \ + -hbar*I*DiracDelta(x - y)*DifferentialOperator(x) + + +def test_3dpos(): + assert Y.hilbert_space == L2(Interval(S.NegativeInfinity, S.Infinity)) + assert Z.hilbert_space == L2(Interval(S.NegativeInfinity, S.Infinity)) + + test_ket = PositionKet3D(x, y, z) + assert qapply(X*test_ket) == x*test_ket + assert qapply(Y*test_ket) == y*test_ket + assert qapply(Z*test_ket) == z*test_ket + assert qapply(X*Y*test_ket) == x*y*test_ket + assert qapply(X*Y*Z*test_ket) == x*y*z*test_ket + assert qapply(Y*Z*test_ket) == y*z*test_ket + + assert PositionKet3D() == test_ket + assert YOp() == Y + assert ZOp() == Z + + assert PositionKet3D.dual_class() == PositionBra3D + assert PositionBra3D.dual_class() == PositionKet3D + + other_ket = PositionKet3D(x_1, y_1, z_1) + assert (Dagger(other_ket)*test_ket).doit() == \ + DiracDelta(x - x_1)*DiracDelta(y - y_1)*DiracDelta(z - z_1) + + assert test_ket.position_x == x + assert test_ket.position_y == y + assert test_ket.position_z == z + assert other_ket.position_x == x_1 + assert other_ket.position_y == y_1 + assert other_ket.position_z == z_1 + + # TODO: Add tests for representations diff --git a/shared/package-files/6f/6fc8d6a926504eb435af34e13d26024e81000b41dfc75f5712f809b0c5dfb6eb/decorator.py b/shared/package-files/6f/6fc8d6a926504eb435af34e13d26024e81000b41dfc75f5712f809b0c5dfb6eb/decorator.py new file mode 100644 index 0000000000000000000000000000000000000000..69c4cb6ae6cee72f686091c8c99da455e645863c --- /dev/null +++ b/shared/package-files/6f/6fc8d6a926504eb435af34e13d26024e81000b41dfc75f5712f809b0c5dfb6eb/decorator.py @@ -0,0 +1,34 @@ +''' +Decorators are not really values, however we need some wrappers to improve +docstrings and other things around decorators. +''' + +from jedi.inference.base_value import ValueWrapper, ValueSet + + +class Decoratee(ValueWrapper): + def __init__(self, wrapped_value, original_value): + super().__init__(wrapped_value) + self._original_value = original_value + + def py__doc__(self): + return self._original_value.py__doc__() + + def py__get__(self, instance, class_value): + return ValueSet( + Decoratee(v, self._original_value) + for v in self._wrapped_value.py__get__(instance, class_value) + ) + + def get_signatures(self): + signatures = self._wrapped_value.get_signatures() + if signatures: + return signatures + # Fallback to signatures of the original function/class if the + # decorator has no signature or it is not inferrable. + # + # __get__ means that it's a descriptor. In that case we don't return + # signatures, because they are usually properties. + if not self._wrapped_value.py__getattribute__('__get__'): + return self._original_value.get_signatures() + return [] diff --git a/shared/package-files/6f/6fc9c08356a3d8fd899b52938ccd0e0e9721f3f6c24f5ce74a432156fa64b205/fftarma.py b/shared/package-files/6f/6fc9c08356a3d8fd899b52938ccd0e0e9721f3f6c24f5ce74a432156fa64b205/fftarma.py new file mode 100644 index 0000000000000000000000000000000000000000..b668cd8ed6b5fb11a5dd9f6223a3339a2c488829 --- /dev/null +++ b/shared/package-files/6f/6fc9c08356a3d8fd899b52938ccd0e0e9721f3f6c24f5ce74a432156fa64b205/fftarma.py @@ -0,0 +1,536 @@ +""" +Created on Mon Dec 14 19:53:25 2009 + +Author: josef-pktd + +generate arma sample using fft with all the lfilter it looks slow +to get the ma representation first + +apply arma filter (in ar representation) to time series to get white noise +but seems slow to be useful for fast estimation for nobs=10000 + +change/check: instead of using marep, use fft-transform of ar and ma + separately, use ratio check theory is correct and example works + DONE : feels much faster than lfilter + -> use for estimation of ARMA + -> use pade (scipy.interpolate) approximation to get starting polynomial + from autocorrelation (is autocorrelation of AR(p) related to marep?) + check if pade is fast, not for larger arrays ? + maybe pade does not do the right thing for this, not tried yet + scipy.pade([ 1. , 0.6, 0.25, 0.125, 0.0625, 0.1],2) + raises LinAlgError: singular matrix + also does not have roots inside unit circle ?? + -> even without initialization, it might be fast for estimation + -> how do I enforce stationarity and invertibility, + need helper function + +get function drop imag if close to zero from numpy/scipy source, where? + +""" + +import numpy as np +from numpy import fft + +# import scipy.fftpack as fft +from scipy import signal + +from statsmodels.graphics.utils import _import_mpl + +# from try_var_convolve import maxabs +from statsmodels.tsa.arima_process import ArmaProcess + +# trying to convert old experiments to a class + + +class ArmaFft(ArmaProcess): + """fft tools for arma processes + + This class contains several methods that are providing the same or similar + returns to try out and test different implementations. + + Notes + ----- + TODO: + check whether we do not want to fix maxlags, and create new instance if + maxlag changes. usage for different lengths of timeseries ? + or fix frequency and length for fft + + check default frequencies w, terminology norw n_or_w + + some ffts are currently done without padding with zeros + + returns for spectral density methods needs checking, is it always the power + spectrum hw*hw.conj() + + normalization of the power spectrum, spectral density: not checked yet, for + example no variance of underlying process is used + + """ + + def __init__(self, ar, ma, n): + # duplicates now that are subclassing ArmaProcess + super().__init__(ar, ma) + + self.ar = np.asarray(ar) + self.ma = np.asarray(ma) + self.nobs = n + # could make the polynomials into cached attributes + self.arpoly = np.polynomial.Polynomial(ar) + self.mapoly = np.polynomial.Polynomial(ma) + self.nar = len(ar) # 1d only currently + self.nma = len(ma) + + def padarr(self, arr, maxlag, atend=True): + """pad 1d array with zeros at end to have length maxlag + function that is a method, no self used + + Parameters + ---------- + arr : array_like, 1d + array that will be padded with zeros + maxlag : int + length of array after padding + atend : bool + If True (default), then the zeros are added to the end, otherwise + to the front of the array + + Returns + ------- + arrp : ndarray + zero-padded array + + Notes + ----- + This is mainly written to extend coefficient arrays for the lag-polynomials. + It returns a copy. + + """ + if atend: + return np.r_[arr, np.zeros(maxlag - len(arr))] + else: + return np.r_[np.zeros(maxlag - len(arr)), arr] + + def pad(self, maxlag): + """construct AR and MA polynomials that are zero-padded to a common length + + Parameters + ---------- + maxlag : int + new length of lag-polynomials + + Returns + ------- + ar : ndarray + extended AR polynomial coefficients + ma : ndarray + extended AR polynomial coefficients + + """ + arpad = np.r_[self.ar, np.zeros(maxlag - self.nar)] + mapad = np.r_[self.ma, np.zeros(maxlag - self.nma)] + return arpad, mapad + + def fftar(self, n=None): + """Fourier transform of AR polynomial, zero-padded at end to n + + Parameters + ---------- + n : int + length of array after zero-padding + + Returns + ------- + fftar : ndarray + fft of zero-padded ar polynomial + """ + if n is None: + n = len(self.ar) + return fft.fft(self.padarr(self.ar, n)) + + def fftma(self, n): + """Fourier transform of MA polynomial, zero-padded at end to n + + Parameters + ---------- + n : int + length of array after zero-padding + + Returns + ------- + fftar : ndarray + fft of zero-padded ar polynomial + """ + if n is None: + n = len(self.ar) + return fft.fft(self.padarr(self.ma, n)) + + def fftarma(self, n=None): + """Fourier transform of ARMA polynomial, zero-padded at end to n + + The Fourier transform of the ARMA process is calculated as the ratio + of the fft of the MA polynomial divided by the fft of the AR polynomial. + + Parameters + ---------- + n : int + length of array after zero-padding + + Returns + ------- + fftarma : ndarray + fft of zero-padded arma polynomial + """ + if n is None: + n = self.nobs + return self.fftma(n) / self.fftar(n) + + def spd(self, npos): + """raw spectral density, returns Fourier transform + + n is number of points in positive spectrum, the actual number of points + is twice as large. different from other spd methods with fft + """ + n = npos + w = fft.fftfreq(2 * n) * 2 * np.pi + hw = self.fftarma(2 * n) # not sure, need to check normalization + # return (hw*hw.conj()).real[n//2-1:] * 0.5 / np.pi # does not show in plot + return (hw * hw.conj()).real * 0.5 / np.pi, w + + def spdshift(self, n): + """power spectral density using fftshift + + currently returns two-sided according to fft frequencies, use first half + """ + # size = s1+s2-1 + mapadded = self.padarr(self.ma, n) + arpadded = self.padarr(self.ar, n) + hw = fft.fft(fft.fftshift(mapadded)) / fft.fft(fft.fftshift(arpadded)) + # return np.abs(spd)[n//2-1:] + w = fft.fftfreq(n) * 2 * np.pi + slice(n // 2 - 1, None, None) + # return (hw*hw.conj()).real[wslice], w[wslice] + return (hw * hw.conj()).real, w + + def spddirect(self, n): + """power spectral density using padding to length n done by fft + + currently returns two-sided according to fft frequencies, use first half + """ + # size = s1+s2-1 + # abs looks wrong + hw = fft.fft(self.ma, n) / fft.fft(self.ar, n) + w = fft.fftfreq(n) * 2 * np.pi + return (np.abs(hw) ** 2) * 0.5 / np.pi, w + + def _spddirect2(self, n): + """this looks bad, maybe with an fftshift""" + # size = s1+s2-1 + hw = fft.fft(np.r_[self.ma[::-1], self.ma], n) / fft.fft( + np.r_[self.ar[::-1], self.ar], n + ) + return hw * hw.conj() # .real[n//2-1:] + + def spdroots(self, w): + """spectral density for frequency using polynomial roots + + builds two arrays (number of roots, number of frequencies) + """ + return self._spdroots(self.arroots, self.maroots, w) + + def _spdroots(self, arroots, maroots, w): + """spectral density for frequency using polynomial roots + + builds two arrays (number of roots, number of frequencies) + + Parameters + ---------- + arroots : ndarray + roots of ar (denominator) lag-polynomial + maroots : ndarray + roots of ma (numerator) lag-polynomial + w : array_like + frequencies for which spd is calculated + + Notes + ----- + this should go into a function + """ + w = np.atleast_2d(w).T + cosw = np.cos(w) + # Greene 5th edt. p626, section 20.2.7.a. + maroots = 1.0 / maroots + arroots = 1.0 / arroots + num = 1 + maroots**2 - 2 * maroots * cosw + den = 1 + arroots**2 - 2 * arroots * cosw + # print 'num.shape, den.shape', num.shape, den.shape + hw = 0.5 / np.pi * num.prod(-1) / den.prod(-1) # or use expsumlog + return np.squeeze(hw), w.squeeze() + + def spdpoly(self, w, nma=50): + """spectral density from MA polynomial representation for ARMA process + + References + ---------- + Cochrane, section 8.3.3 + """ + mpoly = np.polynomial.Polynomial(self.arma2ma(nma)) + hw = mpoly(np.exp(1j * w)) + spd = np.real_if_close(hw * hw.conj() * 0.5 / np.pi) + return spd, w + + def filter(self, x): + """ + filter a timeseries with the ARMA filter + + padding with zero is missing, in example I needed the padding to get + initial conditions identical to direct filter + + Initial filtered observations differ from filter2 and signal.lfilter, but + at end they are the same. + + See Also + -------- + tsa.filters.fftconvolve + + """ + n = x.shape[0] + if n == self.fftarma: + fftarma = self.fftarma + else: + fftarma = self.fftma(n) / self.fftar(n) + tmpfft = fftarma * fft.fft(x) + return fft.ifft(tmpfft) + + def filter2(self, x, pad=0): + """filter a time series using fftconvolve3 with ARMA filter + + padding of x currently works only if x is 1d + in example it produces same observations at beginning as lfilter even + without padding. + + TODO: this returns 1 additional observation at the end + """ + from statsmodels.tsa.filters import fftconvolve3 + + if not pad: + pass + elif pad == "auto": + # just guessing how much padding + x = self.padarr(x, x.shape[0] + 2 * (self.nma + self.nar), atend=False) + else: + x = self.padarr(x, x.shape[0] + int(pad), atend=False) + + return fftconvolve3(x, self.ma, self.ar) + + def acf2spdfreq(self, acovf, nfreq=100, w=None): + """ + not really a method + just for comparison, not efficient for large n or long acf + + this is also similarly use in tsa.stattools.periodogram with window + """ + if w is None: + w = np.linspace(0, np.pi, nfreq)[:, None] + nac = len(acovf) + hw = ( + 0.5 + / np.pi + * (acovf[0] + 2 * (acovf[1:] * np.cos(w * np.arange(1, nac))).sum(1)) + ) + return hw + + def invpowerspd(self, n): + """autocovariance from spectral density + + scaling is correct, but n needs to be large for numerical accuracy + maybe padding with zero in fft would be faster + without slicing it returns 2-sided autocovariance with fftshift + + >>> ArmaFft([1, -0.5], [1., 0.4], 40).invpowerspd(2**8)[:10] + array([ 2.08 , 1.44 , 0.72 , 0.36 , 0.18 , 0.09 , + 0.045 , 0.0225 , 0.01125 , 0.005625]) + >>> ArmaFft([1, -0.5], [1., 0.4], 40).acovf(10) + array([ 2.08 , 1.44 , 0.72 , 0.36 , 0.18 , 0.09 , + 0.045 , 0.0225 , 0.01125 , 0.005625]) + """ + hw = self.fftarma(n) + return np.real_if_close(fft.ifft(hw * hw.conj()), tol=200)[:n] + + def spdmapoly(self, w, twosided=False): + """ma only, need division for ar, use LagPolynomial""" + if w is None: + w = np.linspace(0, np.pi, nfreq) + return 0.5 / np.pi * self.mapoly(np.exp(w * 1j)) + + def plot4(self, fig=None, nobs=100, nacf=20, nfreq=100): + """Plot results""" + rvs = self.generate_sample(nsample=100, burnin=500) + acf = self.acf(nacf)[:nacf] # TODO: check return length + pacf = self.pacf(nacf) + w = np.linspace(0, np.pi, nfreq) + spdr, wr = self.spdroots(w) + + if fig is None: + plt = _import_mpl() + + fig = plt.figure() + ax = fig.add_subplot(2, 2, 1) + ax.plot(rvs) + ax.set_title(f"Random Sample \nar={self.ar}, ma={self.ma}") + + ax = fig.add_subplot(2, 2, 2) + ax.plot(acf) + ax.set_title(f"Autocorrelation \nar={self.ar}, ma={self.ma!r}s") + + ax = fig.add_subplot(2, 2, 3) + ax.plot(wr, spdr) + ax.set_title(f"Power Spectrum \nar={self.ar}, ma={self.ma}") + + ax = fig.add_subplot(2, 2, 4) + ax.plot(pacf) + ax.set_title(f"Partial Autocorrelation \nar={self.ar}, ma={self.ma}") + + return fig + + +def spdar1(ar, w): + if np.ndim(ar) == 0: + rho = ar + else: + rho = -ar[1] + return 0.5 / np.pi / (1 + rho * rho - 2 * rho * np.cos(w)) + + +if __name__ == "__main__": + + def maxabs(x, y): + return np.max(np.abs(x - y)) + + nobs = 200 # 10000 + ar = [1, 0.0] + ma = [1, 0.0] + ar2 = np.zeros(nobs) + ar2[:2] = [1, -0.9] + + uni = np.zeros(nobs) + uni[0] = 1.0 + # arrep = signal.lfilter(ma, ar, ar2) + # marep = signal.lfilter([1],arrep, uni) + # same faster: + arcomb = np.convolve(ar, ar2, mode="same") + marep = signal.lfilter(ma, arcomb, uni) # [len(ma):] + print(marep[:10]) + mafr = fft.fft(marep) + + rvs = np.random.normal(size=nobs) + datafr = fft.fft(rvs) + y = fft.ifft(mafr * datafr) + print(np.corrcoef(np.c_[y[2:], y[1:-1], y[:-2]], rowvar=0)) + + arrep = signal.lfilter([1], marep, uni) + print(arrep[:20]) # roundtrip to ar + arfr = fft.fft(arrep) + yfr = fft.fft(y) + x = fft.ifft(arfr * yfr).real # imag part is e-15 + # the next two are equal, roundtrip works + print(x[:5]) + print(rvs[:5]) + print(np.corrcoef(np.c_[x[2:], x[1:-1], x[:-2]], rowvar=0)) + + # ARMA filter using fft with ratio of fft of ma/ar lag polynomial + # seems much faster than using lfilter + + # padding, note arcomb is already full length + arcombp = np.zeros(nobs) + arcombp[: len(arcomb)] = arcomb + map_ = np.zeros(nobs) # rename: map was shadowing builtin + map_[: len(ma)] = ma + ar0fr = fft.fft(arcombp) + ma0fr = fft.fft(map_) + y2 = fft.ifft(ma0fr / ar0fr * datafr) + # the next two are (almost) equal in real part, almost zero but different in imag + print(y2[:10]) + print(y[:10]) + print(maxabs(y, y2)) # from chfdiscrete + # 1.1282071239631782e-014 + + ar = [1, -0.4] + ma = [1, 0.2] + + arma1 = ArmaFft([1, -0.5, 0, 0, 0, 00, -0.7, 0.3], [1, 0.8], nobs) + + nfreq = nobs + w = np.linspace(0, np.pi, nfreq) + w2 = np.linspace(0, 2 * np.pi, nfreq) + + plt = _import_mpl() + + plt.close("all") + + plt.figure() + spd1, w1 = arma1.spd(2**10) + print(spd1.shape) + _ = plt.plot(spd1) + plt.title("spd fft complex") + + plt.figure() + spd2, w2 = arma1.spdshift(2**10) + print(spd2.shape) + _ = plt.plot(w2, spd2) + plt.title("spd fft shift") + + plt.figure() + spd3, w3 = arma1.spddirect(2**10) + print(spd3.shape) + _ = plt.plot(w3, spd3) + plt.title("spd fft direct") + + plt.figure() + spd3b = arma1._spddirect2(2**10) + print(spd3b.shape) + _ = plt.plot(spd3b) + plt.title("spd fft direct mirrored") + + plt.figure() + spdr, wr = arma1.spdroots(w) + print(spdr.shape) + plt.plot(w, spdr) + plt.title("spd from roots") + + plt.figure() + spdar1_ = spdar1(arma1.ar, w) + print(spdar1_.shape) + _ = plt.plot(w, spdar1_) + plt.title("spd ar1") + + plt.figure() + wper, spdper = arma1.periodogram(nfreq) + print(spdper.shape) + _ = plt.plot(w, spdper) + plt.title("periodogram") + + startup = 1000 + rvs = arma1.generate_sample(startup + 10000)[startup:] + import matplotlib.mlab as mlb + + plt.figure() + sdm, wm = mlb.psd(x) + print("sdm.shape", sdm.shape) + sdm = sdm.ravel() + plt.plot(wm, sdm) + plt.title("matplotlib") + + from nitime.algorithms import LD_AR_est + + # yule_AR_est(s, order, Nfreqs) + wnt, spdnt = LD_AR_est(rvs, 10, 512) + plt.figure() + print("spdnt.shape", spdnt.shape) + _ = plt.plot(spdnt.ravel()) + print(spdnt[:10]) + plt.title("nitime") + + fig = plt.figure() + arma1.plot4(fig) + + # plt.show() diff --git a/shared/package-files/6f/6fcbecfdbbab87b63bcb48c840f2971ff3dfec3ca6ad5f29e2f63a1967638eee/_neg_view_copy_ops.h b/shared/package-files/6f/6fcbecfdbbab87b63bcb48c840f2971ff3dfec3ca6ad5f29e2f63a1967638eee/_neg_view_copy_ops.h new file mode 100644 index 0000000000000000000000000000000000000000..672e893df134a0a3f3132f35e6550397c0d25c86 --- /dev/null +++ b/shared/package-files/6f/6fcbecfdbbab87b63bcb48c840f2971ff3dfec3ca6ad5f29e2f63a1967638eee/_neg_view_copy_ops.h @@ -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 _neg_view_copy { + 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::_neg_view_copy") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "_neg_view_copy(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 _neg_view_copy_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::_neg_view_copy") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "out") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "_neg_view_copy.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/6f/6fcd2a70478530be5dd55eab20df8a9c4dcaaa25f500fa0f2a734a38bd9d9b9e/powerSGD_hook.py b/shared/package-files/6f/6fcd2a70478530be5dd55eab20df8a9c4dcaaa25f500fa0f2a734a38bd9d9b9e/powerSGD_hook.py new file mode 100644 index 0000000000000000000000000000000000000000..9d2d5649f745663a7ebf6b9d483a06e9464f906d --- /dev/null +++ b/shared/package-files/6f/6fcd2a70478530be5dd55eab20df8a9c4dcaaa25f500fa0f2a734a38bd9d9b9e/powerSGD_hook.py @@ -0,0 +1,850 @@ +from collections import defaultdict +import logging +import math +from typing import Dict + +import torch +import torch.distributed as dist + +from . import default_hooks as default +from torch.distributed import distributed_c10d + +__all__ = [ + "PowerSGDState", "powerSGD_hook", "batched_powerSGD_hook" +] + +logger = logging.getLogger(__name__) + + +def _orthogonalize(matrices, epsilon=0): + """ + Decide between Gram-Schmidt or QR factorization to orthogonalize a batch of matrices. + + QR factorization doesn't work with half-precision, but it is usually faster with a rank > 2. + """ + assert len(matrices.shape) == 3 and matrices.shape[2] <= matrices.shape[1] + + num_matrices = matrices.shape[0] + rank = matrices.shape[2] + dtype = matrices.dtype + if rank <= 2 or dtype in [torch.float16, torch.bfloat16]: + _orthogonalize_gram_schmidt(matrices, epsilon=epsilon) + else: + torch.linalg.qr( + matrices, + out=( + matrices, + torch.empty(num_matrices, rank, rank, device=matrices.device, dtype=dtype) + ) + ) + +def _orthogonalize_gram_schmidt(matrices, epsilon=0): + """ + Apply Gram-Schmidt procedure to orthogonalize a batch of matrices. + + If epsilon is 0, this is equivalent to `torch.qr(matrices, out=(matrices, _))`, + """ + num_cols = matrices.shape[2] + for i in range(num_cols): + # Normalize the i'th column. + col = matrices[:, :, i : i + 1] + # If no epsilon is added here, division by zero may be caused by vanishing gradients. + # This epsilon is not needed if the input batch of matrices covers the gradients of at least one entire layer + # in the neural network. + if epsilon == 0: + # Note that col ** 2 can underflow/overflow if we use FP16. + # May need to consider multiplying a scaling factor and dividing it later, or using bfloat16 instead. + try: + col /= torch.norm(col, dim=1, keepdim=True) + except ZeroDivisionError: + logger.error( + "The matrices to be orthogonalized has at least a column of all 0s. Please set a small value such as 1e-8 " + "as `orthogonalization_epsilon` in PowerSGD state." + ) + # Recover the values from NaNs to 0s. + col.fill_(0.0) + else: + col /= torch.norm(col, dim=1, keepdim=True) + epsilon + # Project it on the rest and remove it. + if i + 1 < num_cols: + rest = matrices[:, :, i + 1 :] + rest -= torch.sum(col * rest, dim=1, keepdim=True) * col + + +def _should_compress( + num_rows, num_cols, matrix_approximation_rank, min_compression_rate +): + """ + Recommend if tensor given is worth compressing. + + Returns a recommendation as to whether the 2D tensor described by the arguments is worth compressing, + including statistics describing the expected savings from compression. We consider a tensor worth + compressing when ``min_compression_rate`` < uncompressed size / compressed size, where + uncompressed size = ``num_rows`` * ``num_cols``, + and compressed size = (``num_rows`` + ``num_cols``) * ``matrix_approximation_rank``. + + The result of this function is a tuple of the form (compression_recommendation, uncompressed_el_count, compressed_el_count), where: + + compression_recommendation is true if the tensor is worth compressing, and false otherwise (see above); + + uncompressed_el_count is the uncompressed element count, i.e. ``num_rows`` * ``num_cols``; and, + + compress_el_count is the element count after compression, i.e. (``num_rows`` + ``num_cols``) * ``matrix_approximation_rank``. + """ # noqa: B950 + uncompressed_size = num_rows * num_cols + compressed_size = (num_rows + num_cols) * matrix_approximation_rank + return ( + compressed_size * min_compression_rate < uncompressed_size, + uncompressed_size, + compressed_size, + ) + + +def _report_compression_stats(bucket, state): + """Report compression stats at frequency of ``compression_stats_logging_frequency`` specified in PowerSGD state.""" + if ( + bucket.is_last() + and state.iter >= state.next_stats_report + ): + stats = state.compression_stats() + logger.info( + "Compression stats: iter %s, total before compression %s, total after compression %s, " + "rate %s", state.iter, stats[1], stats[2], stats[0] + ) + state.next_stats_report = state.iter + state.compression_stats_logging_frequency + + +class PowerSGDState: + r""" + Store both the algorithm's hyperparameters and internal state for all gradients during training. + + Particularly, ``matrix_approximation_rank`` and ``start_powerSGD_iter`` are the main hyperparameters that should be tuned by the user. + For performance, we suggest to keep binary hyperparameters ``use_error_feedback`` and ``warm_start`` on. + + 1. ``matrix_approximation_rank`` controls the size of compressed low-rank tensors, which determines the compression rate. The lower the rank, the stronger the compression. + + 1.1. If ``matrix_approximation_rank`` is too low, the full model quality will need more training steps to reach or will never reach and yield loss in accuracy. + + 1.2. The increase of ``matrix_approximation_rank`` can substantially increase the computation costs of the compression, and the accuracy may not be further improved beyond a certain ``matrix_approximation_rank`` threshold. + + To tune ``matrix_approximation_rank``, we suggest to start from 1 and increase by factors of 2 (like an exponential grid search, 1, 2, 4, ...), until a satisfactory accuracy is reached. Typically only a small value 1-4 is used. For some NLP tasks (as shown in Appendix D of the original paper), this value has been increased to 32. + + 2. ``start_powerSGD_iter`` defers PowerSGD compression until step ``start_powerSGD_iter``, and vanilla allreduce runs prior to step ``start_powerSGD_iter``. This hybrid scheme of **vanilla allreduce + PowerSGD** can effectively improve the accuracy, even a relatively small ``matrix_approximation_rank`` is used. This is because that, the beginning of training phase is usually very sensitive to inaccurate gradients, and compressing gradients too early may make the training quickly take a suboptimal trajectory, which can result in an irrecoverable impact on the accuracy. + + To tune ``start_powerSGD_iter``, we suggest to start with 10% of total training steps, and increase it until a satisfactory accuracy is reached. If there is a warm-up stage in the training, ``start_powerSGD_iter`` typically should be no less than the number of warm-up steps. + + 3. ``min_compression_rate`` is the minimum compression rate required when a layer is compressed. Due to the computation overheads incurred by the compression, a tensor is worth compressing only if there can be sufficient saving in bandwidth, where ``(num_rows + num_cols) * matrix_approximation_rank * min_compression_rate < num_rows * num_cols``. If the specified compression rate threshold cannot be satisfied, the tensor will be directly allreduced without compression. + + Compression statistics are logged every ``compression_stats_logging_frequency`` iterations once PowerSGD compression starts. + + 4. ``orthogonalization_epsilon`` can be a very small value (e.g., 1e-8) added to every normalized matrix column in orthogonalization step, to prevent div-by-zero error if any column has all 0s. If this can already be prevented (e.g., by batch normalization), an epsilon of 0 is recommended for accuracy. + + 5. ``batch_tensors_with_same_shape`` controls whether to compress and decompress tensors with same shape in a batched operation to achieve higher parallelism. Note that you should also increase the bucket size (i.e., ``bucket_cap_mb`` arg in DDP constructor) to make more same-shaped tensors appear in the same bucket, however this may reduce the overlap between computation and communication, and increase the memory footprint due to stacking the tensors of the same shape. Set to ``True`` if the compression / decompression computation is a bottleneck. + + .. warning :: + If error feedback or warm-up is enabled, the minimum value of ``start_powerSGD_iter`` allowed in DDP is 2. + This is because there is another internal optimization that rebuilds buckets at iteration 1 in DDP, + and this can conflict with any tensor memorized before the rebuild process. + """ # noqa: B950 + + __slots__ = [ + "process_group", + # The fields below are the hyperparameters that often need to be tuned by the user. + "matrix_approximation_rank", + "start_powerSGD_iter", + # The fields below are the hyperparameters that seldom need be tuned by the user. + "min_compression_rate", + "orthogonalization_epsilon", + # The fields below are the binary hyperparameters recommended to be turned on for performance and accuracy. + "use_error_feedback", + "warm_start", + "batch_tensors_with_same_shape", + # The fields below are internal state. + "rng", + "error_dict", + "p_memory_dict", + "q_memory_dict", + "iter", + # The fields below are for recording compression stats. + "total_numel_before_compression", + "total_numel_after_compression", + "compression_stats_logging_frequency", + "next_stats_report", + ] + + def __init__( + self, + process_group, + matrix_approximation_rank=1, + start_powerSGD_iter=1_000, + min_compression_rate=2, + use_error_feedback=True, + warm_start=True, + orthogonalization_epsilon=0, + random_seed=0, + compression_stats_logging_frequency=10_000, + batch_tensors_with_same_shape: bool = False, + ): + logger.info( + "PowerSGD config: matrix_approximation_rank = %s; start_powerSGD_iter = %s; " + "min_compression_rate = %s; orthogonalization_epsilon = %s; use_error_feedback = %s; warm_start = %s; " + "random_seed = %s; compression_stats_logging_frequency = %s; batch_tensors_with_same_shape = %s", + matrix_approximation_rank, + start_powerSGD_iter, + min_compression_rate, + orthogonalization_epsilon, + use_error_feedback, + warm_start, + random_seed, + compression_stats_logging_frequency, + batch_tensors_with_same_shape, + ) + + self.process_group = process_group + self.matrix_approximation_rank = matrix_approximation_rank + # Deferring PowerSGD compression util step 'start_powerSGD_iter' can have two advantages: + # 1) It turns out that PowerSGD may lead to a non-trivial accuracy loss, + # even if the matrix approximation rank is increased to a large value. + # To mitigate the accuracy loss, a simple yet effective way is mixing vanilla allreduce + # (or a more conservative compression such as FP16 compression) with PowerSGD. + # 2) There is an internal optimization of rebuilding buckets process in DDP, + # in order to save the memory space. + # This step takes place after the first iteration. + # However, this means that the shape of input bucketized tensors is subject to change, + # which will complicate the implementations of error feedback and warm-up. + # Running vanilla allreduce in the first few iterations can avoid this complexity. + if (use_error_feedback or warm_start) and start_powerSGD_iter <= 1: + raise ValueError( + "Expect `start_powerSGD_iter` > 1 if `use_error_feedback` or `warm_start` is enabled, " + "because PowerSGD can only be applied after the first two iterations in DDP." + ) + self.start_powerSGD_iter = start_powerSGD_iter + self.min_compression_rate = min_compression_rate + # Error feedback is usually crucial for both for convergence and generalization, + # because PowerSGD is a biased compressor, + # i.e., compressing and decompressing a random gradient does not yield the original in expectation. + # This mechanism requires a temporary copy of the input gradients, + # so it increases the peak memory consumption by the size of the gradient tensor. + # However, if the target matrices are known to be exactly low-ranked (instead of just low stable rank), + # sometimes it is possible to converge to the optima without error feedback. + # See: http://proceedings.mlr.press/v54/yurtsever17a/yurtsever17a.pdf + self.use_error_feedback = use_error_feedback + # Warm-start reuses P(s) and Q(s) from the previous iteration. + # This can improve the approximation quality and hence improve the accuracy. + # Additionally, by avoiding the initialization of these low-rank tensors at every step, + # this can also accelerate training. + # However, this is at the cost of extra memory. + self.warm_start = warm_start + # Can use a very small value to prevent div-by-zero error caused by orthogonalization of vanishing gradients. + self.orthogonalization_epsilon = orthogonalization_epsilon + # The purpose of this RNG is to generate different random seeds for initializing Q across iterations, + # but in the same order for all the DDP replicas. + # Different random seeds across iterations indicate different 'projections' of the gradients at different SGD steps. + # If the same random projection is used, + # there will be differences between the gradients that are never synchronized. + import numpy as np + self.rng = np.random.RandomState(random_seed) + # Since there is only a single state instance for all the input buckets, + # need to maintain a dictionary that maps each bucket index to the local error. + self.error_dict: Dict[int, torch.Tensor] = {} + self.p_memory_dict: Dict[int, torch.Tensor] = {} + self.q_memory_dict: Dict[int, torch.Tensor] = {} + # Iteration/step in the training loop. + self.iter = 0 + # Compression stats accumulators + self.total_numel_before_compression = 0 + self.total_numel_after_compression = 0 + # We'll report compression stats every 'compression_stats_logging_frequency' iterations + # Note that we always report compression stats at least once. + self.compression_stats_logging_frequency = max( + 1, compression_stats_logging_frequency + ) + self.next_stats_report = 0 + # Batching tensors with same shape can increase parallelism in compression / decompression computation. + # This requires a larger bucket size to make more same-shaped tensor to appear in one bucket, however + # this may reduce the overlap between computation and communication, and increase the memory footprint + # due to stacking tensors. + # Turn on if compression / decompression computation is a bottleneck. + self.batch_tensors_with_same_shape = batch_tensors_with_same_shape + + def __getstate__(self): + r""" + Return a ``Dict[str, Any]`` which will be pickled and saved. + + ``process_group`` is not serializable and excluded from + a returned state. + """ + logger.warning( + "NOTE: Process group is not serializable and excluded from a saved state." + ) + return { + slot: getattr(self, slot) + for slot in self.__slots__ if slot != "process_group" + } + + def __setstate__(self, state): + r""" + Take a provided ``state`` and set to this ``PowerSGDState`` instance. + + ``process_group`` is set to default. + """ + self.process_group = distributed_c10d._get_default_group() + logger.warning( + "NOTE: Process group will be set to a default group (i.e. the world size).\ + If a different group is desired, please set `self.process_group` after PowerSGD state is loaded." + ) + for slot, value in state.items(): + setattr(self, slot, value) + + def maybe_increase_iter(self, bucket): + """Track iterations and trigger log message at start of local SGD.""" + # Since bucket 0 is the last bucket to allreduce in an iteration. + # Only increase `iter` when bucket 0 is processed. + if bucket.is_last(): + self.iter += 1 + + if self.iter == self.start_powerSGD_iter: + logger.info( + "Start to apply PowerSGD after %s iterations.", self.iter + ) + + def compression_stats(self): + r""" + Return latest compression statistics as tuple. + + Returns tuple of form (compress_rate, numel_before_compression, numel_after_compression) where: + + compress_rate is the effective compression rate i.e. (number of elements before compression) / (number of elements after compression); + + numel_before_compression is the total number of elements before compression was applied; and, + + numel_after_compression is the total number of elements after compression was applied. + """ # noqa: B950 + compress_rate = ( + self.total_numel_before_compression / self.total_numel_after_compression + if self.total_numel_after_compression > 0 + else 0 + ) + return ( + compress_rate, + self.total_numel_before_compression, + self.total_numel_after_compression, + ) + + +def powerSGD_hook( + state: PowerSGDState, bucket: dist.GradBucket +) -> torch.futures.Future[torch.Tensor]: + r""" + Implement PowerSGD algorithm. + + This DDP communication hook implements PowerSGD gradient compression + algorithm described in the `paper `_. + Once gradient tensors are aggregated across all workers, this hook applies + compression as follows: + + 1. Views the input flattened 1D gradient tensor as a list of per-parameter tensors, and divides all the tensors into two groups: + + 1.1 The tensors that should be compressed before allreduce, because the compression can give enough saving in bandwidth. + + 1.2 Rest of the tensors will be directly allreduced without compression, including all the vector tensors (for biases). + + 2. Handles uncompressed tensors: + + 2.1. Allocate contiguous memory for those uncompressed tensors, and allreduces all the uncompressed tensors as a batch, without compression; + + 2.2. Copies the individual uncompressed tensors from the contiguous memory back to the input tensor. + + 3. Handles the tensors that should be compressed by PowerSGD compression: + + 3.1. For each tensor M, creates two low-rank tensors P and Q for decomposing M, + such that M = PQ^T, where Q is initialized from a standard normal distribution and orthogonalized; + + 3.2. Computes each P in Ps, which is equal to MQ; + + 3.3. Allreduces Ps as a batch; + + 3.4. Orthogonalizes each P in Ps; + + 3.5. Computes each Q in Qs, which is approximately equal to M^TP; + + 3.6. Allreduces Qs as a batch; + + 3.7. Computes each M among all the compressed tensors, which is approximately equal to PQ^T. + + Note that this communication hook enforces vanilla allreduce for the first ``state.start_powerSGD_iter`` iterations. + This not only gives the user more control over the tradeoff between speedup and accuracy, + but also helps abstract away some complexity of the internal optimization of DDP for future communication hook developers. + + Args: + state (PowerSGDState): State information to configure the compression rate and support error feedback, warm start, etc. + To tune the compression configs, mainly need to tune ``matrix_approximation_rank``, ``start_powerSGD_iter`` + and ``min_compression_rate``. + bucket (dist.GradBucket): Bucket that stores a 1D flattened gradient tensor that batches multiple per-variable tensors. + Note that since DDP comm hook only supports single process single device mode, + only exactly one tensor is stored in this bucket. + + Returns: + Future handler of the communication, which updates the gradients in place. + + Example:: + >>> # xdoctest: +SKIP + >>> state = PowerSGDState(process_group=process_group, matrix_approximation_rank=1, + start_powerSGD_iter=10, min_compression_rate=0.5) + >>> ddp_model.register_comm_hook(state, powerSGD_hook) + """ # noqa: B950 + process_group = state.process_group + group_to_use = process_group if process_group is not None else dist.group.WORLD + world_size = group_to_use.size() + + # The input tensor is a flattened 1D tensor. + input_tensor = bucket.buffer() + + # Run vanilla allreduce in the first `start_powerSGD_iter` iterations. + if state.iter < state.start_powerSGD_iter: + state.maybe_increase_iter(bucket) + return default._allreduce_fut(group_to_use, input_tensor) + + # Apply PowerSGD after `start_powerSGD_iter` iterations. + device = input_tensor.device + dtype = input_tensor.dtype + + # Incorporate the error from the previous state into the gradients. + bucket_index = bucket.index() + input_tensor_cp = None + total_length = input_tensor.shape[0] + if state.use_error_feedback: + if bucket_index in state.error_dict: + input_tensor.add_(state.error_dict[bucket_index]) + else: + logger.info( + "A zero tensor of length %s that represents local error is created.", + total_length + ) + state.error_dict[bucket_index] = torch.zeros( + total_length, device=device, dtype=dtype + ) + + # Keep a copy of the input tensor, + # so that we can compute the local error caused by compression later, + # by comparing this copy and the input tensor updated after decompression. + input_tensor_cp = torch.clone(input_tensor).detach() + + # Unflatten the input tensor into per-parameter tensors, for layer-wise compression. + tensors = bucket.gradients() + + # Step I: Divide all the tensors into two groups, + # one will be compressed before allreduce and the other will be directly allreduced without compression. + tensors_to_compress, uncompressed_tensors = [], [] + total_Ps_size = 0 + total_Qs_size = 0 + for tensor in tensors: + matrix = tensor.view(tensor.shape[0], -1) + n, m = matrix.shape + matrix_approximation_rank = min(n, m, state.matrix_approximation_rank) + compress_test = _should_compress( + n, m, matrix_approximation_rank, state.min_compression_rate + ) + state.total_numel_before_compression += compress_test[1] + if compress_test[0]: + tensors_to_compress.append(matrix) + total_Ps_size += n * matrix_approximation_rank + total_Qs_size += m * matrix_approximation_rank + state.total_numel_after_compression += compress_test[2] + else: + uncompressed_tensors.append(tensor) + state.total_numel_after_compression += compress_test[1] + + _report_compression_stats(bucket, state) + + # Step II: Handle uncompressed tensors. + # Allocate contiguous memory for these tensors to allreduce efficiently. + uncompressed_tensors_memory = ( + torch.cat([tensor.view(-1) for tensor in uncompressed_tensors]) + if uncompressed_tensors + else torch.tensor([], device=device, dtype=dtype) + ) + + # Step III: Handle the tensors that should be compressed. + # Allocate contiguous memory for Ps and Qs to allreduce efficiently. + # If warm-start is enabled, reuse Ps and Qs from the previous iteration if possible. + # The memory spaces of Ps and Qs need to be allocated in the first iteration when PowerSGD is applied. + need_randomize_qs = False + if not state.warm_start or bucket_index not in state.p_memory_dict: + need_randomize_qs = True + # If warm-start is disabled, low-rank tensors will be initialized at every step. + # Only log this if warm-start to avoid spamming. + if state.warm_start: + logger.info( + "Allocating contiguous memory of length %s for Ps, and of length %s for Qs, respectively.", + total_Ps_size, total_Qs_size + ) + state.p_memory_dict[bucket_index] = torch.empty( + total_Ps_size, device=device, dtype=dtype + ) + state.q_memory_dict[bucket_index] = torch.empty( + total_Qs_size, device=device, dtype=dtype + ) + + # Batch tensors to compress by shape. + shape_to_tensors = defaultdict(list) + for tensor in tensors_to_compress: + shape_to_tensors[tensor.shape].append(tensor) + + # This function decides whether to batch tensors with same shape or not according to the argument, + # so the following process could share the same code. + def maybe_batched_tensors_to_compress(): + for tensors in shape_to_tensors.values(): + if state.batch_tensors_with_same_shape: + batch_size = len(tensors) + if batch_size == 1: + # Use the original tensor to avoid copy. + yield tensors[0].unsqueeze(0) + else: + yield torch.stack(tensors) + else: + for tensor in tensors: + yield tensor.unsqueeze(0) + + # Create Ps and Qs that point to the allocated memory. + tensors_to_compress = [] + ps = [] + qs = [] + p_idx = 0 + q_idx = 0 + for tensor in maybe_batched_tensors_to_compress(): + batch_size, n, m = tensor.shape + matrix_approximation_rank = min(n, m, state.matrix_approximation_rank) + tensors_to_compress.append(tensor) + ps.append( + state.p_memory_dict[bucket_index][ + p_idx : p_idx + batch_size * n * matrix_approximation_rank + ].view(batch_size, n, matrix_approximation_rank) + ) + qs.append( + state.q_memory_dict[bucket_index][ + q_idx : q_idx + batch_size * m * matrix_approximation_rank + ].view(batch_size, m, matrix_approximation_rank) + ) + p_idx += batch_size * n * matrix_approximation_rank + q_idx += batch_size * m * matrix_approximation_rank + + # If warm-start is enabled, reuse Qs from the previous iteration if possible and skip filling random values. + # The exception is the first iteration when PowerSGD is applied. + if not need_randomize_qs: + for q in qs: + _orthogonalize(q, state.orthogonalization_epsilon) + else: + with torch.random.fork_rng(devices=[]): + # Fork this RNG to avoid changing the seed globally and affecting the random sampling anywhere else in the training. + # The seed makes sure that the initial random values are the same across all the DDP replicas. + # This seed should differ at every step. + # Since it is very slow to fork RNG state across all the CUDA devices, + # only fork on CPU and then move the generated tensor to the CUDA device (by overwriting q). + torch.manual_seed(state.rng.randint(1_000_000_000)) + for q in qs: + q.copy_( + torch.randn( + *q.shape, + device="cpu", + dtype=dtype, + ) + ) + _orthogonalize(q, state.orthogonalization_epsilon) + + # Compute Ps. + for tensor, q, p in zip(tensors_to_compress, qs, ps): + torch.bmm(tensor, q, out=p) + + # This allreduce is only applied to uncompressed tensors, + # so it should have been kicked off before the above computation on the compressed tensors to hide more communication costs. + # However, this somehow requires a separate future chain at this time. + allreduce_contiguous_uncompressed_tensors_fut = dist.all_reduce( + uncompressed_tensors_memory, group=group_to_use, async_op=True + ).get_future() + + def unpack_uncompressed_tensors_and_allreduce_ps(fut): + uncompressed_tensors_memory = fut.value()[0].div_(world_size) + idx = 0 + for tensor in uncompressed_tensors: + tensor.copy_( + uncompressed_tensors_memory[idx : idx + tensor.numel()].view_as(tensor) + ) + idx += tensor.numel() + + # Since these Ps will be orthogonalized later, no need to divide them by world size. + return ( + dist.all_reduce( + state.p_memory_dict[bucket_index], group=group_to_use, async_op=True + ) + .get_future() + .wait()[0] + ) + + def compute_qs(fut): + state.p_memory_dict[bucket_index] = fut.value() + for p in ps: + _orthogonalize(p, state.orthogonalization_epsilon) + + # Compute Qs. + for tensor, p, q in zip(tensors_to_compress, ps, qs): + torch.bmm(tensor.transpose(1, 2), p, out=q) + + # TODO: The above procedure does two matmul+allreduce steps per iteration -- + # one left multiplication and one right multiplication. + # For warm-start, can take one such step at a time, and alternate between them. + + # Allreduce Qs. + return ( + dist.all_reduce( + state.q_memory_dict[bucket_index], group=group_to_use, async_op=True + ) + .get_future() + .wait()[0] + ) + + def decompress(fut): + state.q_memory_dict[bucket_index] = fut.value().div_(world_size) + + for p, q, tensor in zip(ps, qs, tensors_to_compress): + torch.bmm(p, q.transpose(1, 2), out=tensor) + + # Copy batched tensors back to original buffer. + if state.batch_tensors_with_same_shape: + for tensor in tensors_to_compress: + if tensor.shape[0] == 1: + # Skip tensor with batch_size == 1 since itself is the original tensor. + continue + original_tensors = shape_to_tensors[tensor.shape[1:]] + for i, original_tensor in enumerate(original_tensors): + original_tensor.copy_(tensor[i]) + + if torch.cuda.is_available(): + torch.cuda.synchronize(device) + + if state.use_error_feedback: + # Memorize the local errors. + state.error_dict[bucket_index] = input_tensor_cp - input_tensor + if not state.warm_start: + state.p_memory_dict.clear() + state.q_memory_dict.clear() + + state.maybe_increase_iter(bucket) + + return input_tensor + + return ( + allreduce_contiguous_uncompressed_tensors_fut.then( + unpack_uncompressed_tensors_and_allreduce_ps + ) + .then(compute_qs) + .then(decompress) + ) + + +def batched_powerSGD_hook( + state: PowerSGDState, bucket: dist.GradBucket +) -> torch.futures.Future[torch.Tensor]: + r""" + Implement simplified PowerSGD algorithm. + + This DDP communication hook implements a simplified PowerSGD gradient compression + algorithm described in the `paper `_. + This variant does not compress the gradients layer by layer, + but instead compresses the flattened input tensor that batches all the gradients. + Therefore, it is **faster** than :meth:`powerSGD_hook`, + but usually results in a **much lower accuracy**, unless ``matrix_approximation_rank`` is 1. + + .. warning :: + Increasing ``matrix_approximation_rank`` here may not necessarily increase the accuracy, + because batching per-parameter tensors without column/row alignment can destroy low-rank structure. + Therefore, the user should always consider :meth:`powerSGD_hook` first, + and only consider this variant when a satisfactory accuracy can be achieved when ``matrix_approximation_rank`` is 1. + + Once gradient tensors are aggregated across all workers, this hook applies + compression as follows: + + 1. Views the input flattened 1D gradient tensor as a square-shaped tensor M with 0 paddings; + + 2. Creates two low-rank tensors P and Q for decomposing M, such that M = PQ^T, where Q is initialized from a standard normal distribution and orthogonalized; + + 3. Computes P, which is equal to MQ; + + 4. Allreduces P; + + 5. Orthogonalizes P; + + 6. Computes Q, which is approximately equal to M^TP; + + 7. Allreduces Q; + + 8. Computes M, which is approximately equal to PQ^T. + + 9. Truncates the input tensor to the original length. + + Note that this communication hook enforces vanilla allreduce for the first ``state.start_powerSGD_iter`` iterations. + This not only gives the user more control over the tradeoff between speedup and accuracy, + but also helps abstract away some complexity of the internal optimization of DDP for future communication hook developers. + + Args: + state (PowerSGDState): State information to configure the compression rate and support error feedback, warm start, etc. + To tune the compression configs, mainly need to tune ``matrix_approximation_rank`` and ``start_powerSGD_iter``. + bucket (dist.GradBucket): Bucket that stores a 1D flattened gradient tensor that batches multiple per-variable tensors. + Note that since DDP comm hook only supports single process single device mode, + only exactly one tensor is stored in this bucket. + + Returns: + Future handler of the communication, which updates the gradients in place. + + Example:: + >>> # xdoctest: +SKIP + >>> state = PowerSGDState(process_group=process_group, matrix_approximation_rank=1) + >>> ddp_model.register_comm_hook(state, batched_powerSGD_hook) + """ # noqa: B950 + process_group = state.process_group + group_to_use = process_group if process_group is not None else dist.group.WORLD + world_size = group_to_use.size() + + # The input tensor is a flattened 1D tensor. + input_tensor = bucket.buffer() + + # Run vanilla allreduce in the first `start_powerSGD_iter` iterations. + if state.iter < state.start_powerSGD_iter: + state.maybe_increase_iter(bucket) + return default._allreduce_fut(group_to_use, input_tensor) + + # Apply PowerSGD after `start_powerSGD_iter` iterations. + device = input_tensor.device + total_length = input_tensor.shape[0] + state.total_numel_before_compression += total_length + + # View the input tensor as a 2D square-shape tensor, and pad 0s if necessary. + square_side_length = math.ceil(math.sqrt(total_length)) + state.total_numel_after_compression += ( + square_side_length * state.matrix_approximation_rank * 2 + ) + padded_total_length = square_side_length ** 2 + input_tensor.resize_(padded_total_length) + input_tensor[total_length:padded_total_length].fill_(0) + + _report_compression_stats(bucket, state) + + # Incorporate the error from the previous state into the gradients. + bucket_index = bucket.index() + input_tensor_cp = None + if state.use_error_feedback: + if bucket_index in state.error_dict: + input_tensor.add_(state.error_dict[bucket_index]) + else: + logger.info( + "A zero tensor of length %s that represents local error is created.", + padded_total_length + ) + state.error_dict[bucket_index] = torch.zeros( + padded_total_length, device=device, dtype=input_tensor.dtype + ) + + # Keep a copy of the input tensor, + # so that we can compute the local error caused by compression later, + # by comparing this copy and the input tensor updated after decompression. + input_tensor_cp = torch.clone(input_tensor).detach() + matrix = input_tensor.view(square_side_length, square_side_length) + + # Reuse P and Q from the previous iteration if possible. + # The memory spaces of P and Q need to be allocated in the first iteration when PowerSGD is applied. + if not state.warm_start or bucket_index not in state.p_memory_dict: + # If warm-start is disabled, low-rank tensors will be initialized at every step. + # Only log this if warm-start to avoid spamming. + if state.warm_start: + logger.info( + "Initializing low-rank tensors P and Q, each of which has a shape of %s x %s.", + square_side_length, state.matrix_approximation_rank + ) + + def create_low_rank_tensor(fill_random_values, rng): + """Return a low-rank 2D tensor of square_side_length * matrix_approximation_rank.""" + if fill_random_values: + with torch.random.fork_rng(devices=[]): + # Fork this RNG to avoid changing the seed globally and affecting the random sampling + # anywhere else in the training. + # The seed makes sure that the initial random values are the same across all the DDP replicas. + # This seed should differ at every step. + # Since it is very slow to fork RNG state across all the CUDA devices, + # only fork on CPU and then move the generated tensor to the CUDA device. + torch.manual_seed(rng.randint(1_000_000_000)) + return torch.randn( + square_side_length, + state.matrix_approximation_rank, + device="cpu", + dtype=input_tensor.dtype, + ).to(device) + else: + return torch.empty( + square_side_length, + state.matrix_approximation_rank, + device=device, + dtype=input_tensor.dtype, + ) + + state.p_memory_dict[bucket_index] = create_low_rank_tensor( + fill_random_values=False, rng=state.rng + ) + state.q_memory_dict[bucket_index] = create_low_rank_tensor( + fill_random_values=True, rng=state.rng + ) + _orthogonalize(state.q_memory_dict[bucket_index]) + + torch.matmul( + matrix, state.q_memory_dict[bucket_index], out=state.p_memory_dict[bucket_index] + ) + allreduce_p_fut = dist.all_reduce( + state.p_memory_dict[bucket_index], group=group_to_use, async_op=True + ).get_future() + + def compute_q(fut): + state.p_memory_dict[bucket_index] = fut.value()[0] + _orthogonalize(state.p_memory_dict[bucket_index]) + + torch.matmul( + matrix.t(), + state.p_memory_dict[bucket_index], + out=state.q_memory_dict[bucket_index], + ) + + # TODO: The above procedure does two matmul+allreduce steps per iteration -- + # one left multiplication and one right multiplication. + # For warm-start, can take one such step at a time, and alternate between them. + + return ( + dist.all_reduce( + state.q_memory_dict[bucket_index], group=group_to_use, async_op=True + ) + .get_future() + .wait()[0] + ) + + def decompress(fut): + state.q_memory_dict[bucket_index] = fut.value().div_(world_size) + torch.matmul( + state.p_memory_dict[bucket_index], + state.q_memory_dict[bucket_index].t(), + out=matrix, + ) + + if state.use_error_feedback: + # Memorize the local errors. + state.error_dict[bucket_index] = input_tensor_cp - input_tensor + # Removing this seemingly unnecessary sync somehow may cause failures. + # See: https://github.com/pytorch/pytorch/pull/54838 + if torch.cuda.is_available(): + torch.cuda.synchronize(device) + if not state.warm_start: + state.p_memory_dict.clear() + state.q_memory_dict.clear() + ret = input_tensor.resize_(total_length) + + state.maybe_increase_iter(bucket) + + return ret + + return allreduce_p_fut.then(compute_q).then(decompress) diff --git a/shared/package-files/6f/6fd2a4e4c17b2b18612e07039a2516ba437e2dab561713dd36e8348e83e11d29/__init__.py b/shared/package-files/6f/6fd2a4e4c17b2b18612e07039a2516ba437e2dab561713dd36e8348e83e11d29/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..3c50c5dcfeeda2efed282200a5c5cc8c5f7542f7 --- /dev/null +++ b/shared/package-files/6f/6fd2a4e4c17b2b18612e07039a2516ba437e2dab561713dd36e8348e83e11d29/__init__.py @@ -0,0 +1,25 @@ +# 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 .__about__ import ( + __author__, + __copyright__, + __email__, + __license__, + __summary__, + __title__, + __uri__, + __version__, +) + +__all__ = [ + "__title__", + "__summary__", + "__uri__", + "__version__", + "__author__", + "__email__", + "__license__", + "__copyright__", +] diff --git a/shared/package-files/6f/6fd2ccd30057bfb13b4ab6c28c09b8c3037e86b1fe88dc6fd7c2e058d30c28fa/six.py b/shared/package-files/6f/6fd2ccd30057bfb13b4ab6c28c09b8c3037e86b1fe88dc6fd7c2e058d30c28fa/six.py new file mode 100644 index 0000000000000000000000000000000000000000..f099a3dcd28d2fec21457c9b6c01ded4e3e9ddee --- /dev/null +++ b/shared/package-files/6f/6fd2ccd30057bfb13b4ab6c28c09b8c3037e86b1fe88dc6fd7c2e058d30c28fa/six.py @@ -0,0 +1,1076 @@ +# Copyright (c) 2010-2020 Benjamin Peterson +# +# 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. + +"""Utilities for writing code that runs on Python 2 and 3""" + +from __future__ import absolute_import + +import functools +import itertools +import operator +import sys +import types + +__author__ = "Benjamin Peterson " +__version__ = "1.16.0" + + +# Useful for very coarse version differentiation. +PY2 = sys.version_info[0] == 2 +PY3 = sys.version_info[0] == 3 +PY34 = sys.version_info[0:2] >= (3, 4) + +if PY3: + string_types = (str,) + integer_types = (int,) + class_types = (type,) + text_type = str + binary_type = bytes + + MAXSIZE = sys.maxsize +else: + string_types = (basestring,) + integer_types = (int, long) + class_types = (type, types.ClassType) + text_type = unicode + binary_type = str + + if sys.platform.startswith("java"): + # Jython always uses 32 bits. + MAXSIZE = int((1 << 31) - 1) + else: + # It's possible to have sizeof(long) != sizeof(Py_ssize_t). + class X(object): + def __len__(self): + return 1 << 31 + + try: + len(X()) + except OverflowError: + # 32-bit + MAXSIZE = int((1 << 31) - 1) + else: + # 64-bit + MAXSIZE = int((1 << 63) - 1) + del X + +if PY34: + from importlib.util import spec_from_loader +else: + spec_from_loader = None + + +def _add_doc(func, doc): + """Add documentation to a function.""" + func.__doc__ = doc + + +def _import_module(name): + """Import module, returning the module after the last dot.""" + __import__(name) + return sys.modules[name] + + +class _LazyDescr(object): + def __init__(self, name): + self.name = name + + def __get__(self, obj, tp): + result = self._resolve() + setattr(obj, self.name, result) # Invokes __set__. + try: + # This is a bit ugly, but it avoids running this again by + # removing this descriptor. + delattr(obj.__class__, self.name) + except AttributeError: + pass + return result + + +class MovedModule(_LazyDescr): + def __init__(self, name, old, new=None): + super(MovedModule, self).__init__(name) + if PY3: + if new is None: + new = name + self.mod = new + else: + self.mod = old + + def _resolve(self): + return _import_module(self.mod) + + def __getattr__(self, attr): + _module = self._resolve() + value = getattr(_module, attr) + setattr(self, attr, value) + return value + + +class _LazyModule(types.ModuleType): + def __init__(self, name): + super(_LazyModule, self).__init__(name) + self.__doc__ = self.__class__.__doc__ + + def __dir__(self): + attrs = ["__doc__", "__name__"] + attrs += [attr.name for attr in self._moved_attributes] + return attrs + + # Subclasses should override this + _moved_attributes = [] + + +class MovedAttribute(_LazyDescr): + def __init__(self, name, old_mod, new_mod, old_attr=None, new_attr=None): + super(MovedAttribute, self).__init__(name) + if PY3: + if new_mod is None: + new_mod = name + self.mod = new_mod + if new_attr is None: + if old_attr is None: + new_attr = name + else: + new_attr = old_attr + self.attr = new_attr + else: + self.mod = old_mod + if old_attr is None: + old_attr = name + self.attr = old_attr + + def _resolve(self): + module = _import_module(self.mod) + return getattr(module, self.attr) + + +class _SixMetaPathImporter(object): + + """ + A meta path importer to import six.moves and its submodules. + + This class implements a PEP302 finder and loader. It should be compatible + with Python 2.5 and all existing versions of Python3 + """ + + def __init__(self, six_module_name): + self.name = six_module_name + self.known_modules = {} + + def _add_module(self, mod, *fullnames): + for fullname in fullnames: + self.known_modules[self.name + "." + fullname] = mod + + def _get_module(self, fullname): + return self.known_modules[self.name + "." + fullname] + + def find_module(self, fullname, path=None): + if fullname in self.known_modules: + return self + return None + + def find_spec(self, fullname, path, target=None): + if fullname in self.known_modules: + return spec_from_loader(fullname, self) + return None + + def __get_module(self, fullname): + try: + return self.known_modules[fullname] + except KeyError: + raise ImportError("This loader does not know module " + fullname) + + def load_module(self, fullname): + try: + # in case of a reload + return sys.modules[fullname] + except KeyError: + pass + mod = self.__get_module(fullname) + if isinstance(mod, MovedModule): + mod = mod._resolve() + else: + mod.__loader__ = self + sys.modules[fullname] = mod + return mod + + def is_package(self, fullname): + """ + Return true, if the named module is a package. + + We need this method to get correct spec objects with + Python 3.4 (see PEP451) + """ + return hasattr(self.__get_module(fullname), "__path__") + + def get_code(self, fullname): + """Return None + + Required, if is_package is implemented""" + self.__get_module(fullname) # eventually raises ImportError + return None + + get_source = get_code # same as get_code + + def create_module(self, spec): + return self.load_module(spec.name) + + def exec_module(self, module): + pass + + +_importer = _SixMetaPathImporter(__name__) + + +class _MovedItems(_LazyModule): + + """Lazy loading of moved objects""" + + __path__ = [] # mark as package + + +_moved_attributes = [ + MovedAttribute("cStringIO", "cStringIO", "io", "StringIO"), + MovedAttribute("filter", "itertools", "builtins", "ifilter", "filter"), + MovedAttribute( + "filterfalse", "itertools", "itertools", "ifilterfalse", "filterfalse" + ), + MovedAttribute("input", "__builtin__", "builtins", "raw_input", "input"), + MovedAttribute("intern", "__builtin__", "sys"), + MovedAttribute("map", "itertools", "builtins", "imap", "map"), + MovedAttribute("getcwd", "os", "os", "getcwdu", "getcwd"), + MovedAttribute("getcwdb", "os", "os", "getcwd", "getcwdb"), + MovedAttribute("getoutput", "commands", "subprocess"), + MovedAttribute("range", "__builtin__", "builtins", "xrange", "range"), + MovedAttribute( + "reload_module", "__builtin__", "importlib" if PY34 else "imp", "reload" + ), + MovedAttribute("reduce", "__builtin__", "functools"), + MovedAttribute("shlex_quote", "pipes", "shlex", "quote"), + MovedAttribute("StringIO", "StringIO", "io"), + MovedAttribute("UserDict", "UserDict", "collections"), + MovedAttribute("UserList", "UserList", "collections"), + MovedAttribute("UserString", "UserString", "collections"), + MovedAttribute("xrange", "__builtin__", "builtins", "xrange", "range"), + MovedAttribute("zip", "itertools", "builtins", "izip", "zip"), + MovedAttribute( + "zip_longest", "itertools", "itertools", "izip_longest", "zip_longest" + ), + MovedModule("builtins", "__builtin__"), + MovedModule("configparser", "ConfigParser"), + MovedModule( + "collections_abc", + "collections", + "collections.abc" if sys.version_info >= (3, 3) else "collections", + ), + MovedModule("copyreg", "copy_reg"), + MovedModule("dbm_gnu", "gdbm", "dbm.gnu"), + MovedModule("dbm_ndbm", "dbm", "dbm.ndbm"), + MovedModule( + "_dummy_thread", + "dummy_thread", + "_dummy_thread" if sys.version_info < (3, 9) else "_thread", + ), + MovedModule("http_cookiejar", "cookielib", "http.cookiejar"), + MovedModule("http_cookies", "Cookie", "http.cookies"), + MovedModule("html_entities", "htmlentitydefs", "html.entities"), + MovedModule("html_parser", "HTMLParser", "html.parser"), + MovedModule("http_client", "httplib", "http.client"), + MovedModule("email_mime_base", "email.MIMEBase", "email.mime.base"), + MovedModule("email_mime_image", "email.MIMEImage", "email.mime.image"), + MovedModule("email_mime_multipart", "email.MIMEMultipart", "email.mime.multipart"), + MovedModule( + "email_mime_nonmultipart", "email.MIMENonMultipart", "email.mime.nonmultipart" + ), + MovedModule("email_mime_text", "email.MIMEText", "email.mime.text"), + MovedModule("BaseHTTPServer", "BaseHTTPServer", "http.server"), + MovedModule("CGIHTTPServer", "CGIHTTPServer", "http.server"), + MovedModule("SimpleHTTPServer", "SimpleHTTPServer", "http.server"), + MovedModule("cPickle", "cPickle", "pickle"), + MovedModule("queue", "Queue"), + MovedModule("reprlib", "repr"), + MovedModule("socketserver", "SocketServer"), + MovedModule("_thread", "thread", "_thread"), + MovedModule("tkinter", "Tkinter"), + MovedModule("tkinter_dialog", "Dialog", "tkinter.dialog"), + MovedModule("tkinter_filedialog", "FileDialog", "tkinter.filedialog"), + MovedModule("tkinter_scrolledtext", "ScrolledText", "tkinter.scrolledtext"), + MovedModule("tkinter_simpledialog", "SimpleDialog", "tkinter.simpledialog"), + MovedModule("tkinter_tix", "Tix", "tkinter.tix"), + MovedModule("tkinter_ttk", "ttk", "tkinter.ttk"), + MovedModule("tkinter_constants", "Tkconstants", "tkinter.constants"), + MovedModule("tkinter_dnd", "Tkdnd", "tkinter.dnd"), + MovedModule("tkinter_colorchooser", "tkColorChooser", "tkinter.colorchooser"), + MovedModule("tkinter_commondialog", "tkCommonDialog", "tkinter.commondialog"), + MovedModule("tkinter_tkfiledialog", "tkFileDialog", "tkinter.filedialog"), + MovedModule("tkinter_font", "tkFont", "tkinter.font"), + MovedModule("tkinter_messagebox", "tkMessageBox", "tkinter.messagebox"), + MovedModule("tkinter_tksimpledialog", "tkSimpleDialog", "tkinter.simpledialog"), + MovedModule("urllib_parse", __name__ + ".moves.urllib_parse", "urllib.parse"), + MovedModule("urllib_error", __name__ + ".moves.urllib_error", "urllib.error"), + MovedModule("urllib", __name__ + ".moves.urllib", __name__ + ".moves.urllib"), + MovedModule("urllib_robotparser", "robotparser", "urllib.robotparser"), + MovedModule("xmlrpc_client", "xmlrpclib", "xmlrpc.client"), + MovedModule("xmlrpc_server", "SimpleXMLRPCServer", "xmlrpc.server"), +] +# Add windows specific modules. +if sys.platform == "win32": + _moved_attributes += [ + MovedModule("winreg", "_winreg"), + ] + +for attr in _moved_attributes: + setattr(_MovedItems, attr.name, attr) + if isinstance(attr, MovedModule): + _importer._add_module(attr, "moves." + attr.name) +del attr + +_MovedItems._moved_attributes = _moved_attributes + +moves = _MovedItems(__name__ + ".moves") +_importer._add_module(moves, "moves") + + +class Module_six_moves_urllib_parse(_LazyModule): + + """Lazy loading of moved objects in six.moves.urllib_parse""" + + +_urllib_parse_moved_attributes = [ + MovedAttribute("ParseResult", "urlparse", "urllib.parse"), + MovedAttribute("SplitResult", "urlparse", "urllib.parse"), + MovedAttribute("parse_qs", "urlparse", "urllib.parse"), + MovedAttribute("parse_qsl", "urlparse", "urllib.parse"), + MovedAttribute("urldefrag", "urlparse", "urllib.parse"), + MovedAttribute("urljoin", "urlparse", "urllib.parse"), + MovedAttribute("urlparse", "urlparse", "urllib.parse"), + MovedAttribute("urlsplit", "urlparse", "urllib.parse"), + MovedAttribute("urlunparse", "urlparse", "urllib.parse"), + MovedAttribute("urlunsplit", "urlparse", "urllib.parse"), + MovedAttribute("quote", "urllib", "urllib.parse"), + MovedAttribute("quote_plus", "urllib", "urllib.parse"), + MovedAttribute("unquote", "urllib", "urllib.parse"), + MovedAttribute("unquote_plus", "urllib", "urllib.parse"), + MovedAttribute( + "unquote_to_bytes", "urllib", "urllib.parse", "unquote", "unquote_to_bytes" + ), + MovedAttribute("urlencode", "urllib", "urllib.parse"), + MovedAttribute("splitquery", "urllib", "urllib.parse"), + MovedAttribute("splittag", "urllib", "urllib.parse"), + MovedAttribute("splituser", "urllib", "urllib.parse"), + MovedAttribute("splitvalue", "urllib", "urllib.parse"), + MovedAttribute("uses_fragment", "urlparse", "urllib.parse"), + MovedAttribute("uses_netloc", "urlparse", "urllib.parse"), + MovedAttribute("uses_params", "urlparse", "urllib.parse"), + MovedAttribute("uses_query", "urlparse", "urllib.parse"), + MovedAttribute("uses_relative", "urlparse", "urllib.parse"), +] +for attr in _urllib_parse_moved_attributes: + setattr(Module_six_moves_urllib_parse, attr.name, attr) +del attr + +Module_six_moves_urllib_parse._moved_attributes = _urllib_parse_moved_attributes + +_importer._add_module( + Module_six_moves_urllib_parse(__name__ + ".moves.urllib_parse"), + "moves.urllib_parse", + "moves.urllib.parse", +) + + +class Module_six_moves_urllib_error(_LazyModule): + + """Lazy loading of moved objects in six.moves.urllib_error""" + + +_urllib_error_moved_attributes = [ + MovedAttribute("URLError", "urllib2", "urllib.error"), + MovedAttribute("HTTPError", "urllib2", "urllib.error"), + MovedAttribute("ContentTooShortError", "urllib", "urllib.error"), +] +for attr in _urllib_error_moved_attributes: + setattr(Module_six_moves_urllib_error, attr.name, attr) +del attr + +Module_six_moves_urllib_error._moved_attributes = _urllib_error_moved_attributes + +_importer._add_module( + Module_six_moves_urllib_error(__name__ + ".moves.urllib.error"), + "moves.urllib_error", + "moves.urllib.error", +) + + +class Module_six_moves_urllib_request(_LazyModule): + + """Lazy loading of moved objects in six.moves.urllib_request""" + + +_urllib_request_moved_attributes = [ + MovedAttribute("urlopen", "urllib2", "urllib.request"), + MovedAttribute("install_opener", "urllib2", "urllib.request"), + MovedAttribute("build_opener", "urllib2", "urllib.request"), + MovedAttribute("pathname2url", "urllib", "urllib.request"), + MovedAttribute("url2pathname", "urllib", "urllib.request"), + MovedAttribute("getproxies", "urllib", "urllib.request"), + MovedAttribute("Request", "urllib2", "urllib.request"), + MovedAttribute("OpenerDirector", "urllib2", "urllib.request"), + MovedAttribute("HTTPDefaultErrorHandler", "urllib2", "urllib.request"), + MovedAttribute("HTTPRedirectHandler", "urllib2", "urllib.request"), + MovedAttribute("HTTPCookieProcessor", "urllib2", "urllib.request"), + MovedAttribute("ProxyHandler", "urllib2", "urllib.request"), + MovedAttribute("BaseHandler", "urllib2", "urllib.request"), + MovedAttribute("HTTPPasswordMgr", "urllib2", "urllib.request"), + MovedAttribute("HTTPPasswordMgrWithDefaultRealm", "urllib2", "urllib.request"), + MovedAttribute("AbstractBasicAuthHandler", "urllib2", "urllib.request"), + MovedAttribute("HTTPBasicAuthHandler", "urllib2", "urllib.request"), + MovedAttribute("ProxyBasicAuthHandler", "urllib2", "urllib.request"), + MovedAttribute("AbstractDigestAuthHandler", "urllib2", "urllib.request"), + MovedAttribute("HTTPDigestAuthHandler", "urllib2", "urllib.request"), + MovedAttribute("ProxyDigestAuthHandler", "urllib2", "urllib.request"), + MovedAttribute("HTTPHandler", "urllib2", "urllib.request"), + MovedAttribute("HTTPSHandler", "urllib2", "urllib.request"), + MovedAttribute("FileHandler", "urllib2", "urllib.request"), + MovedAttribute("FTPHandler", "urllib2", "urllib.request"), + MovedAttribute("CacheFTPHandler", "urllib2", "urllib.request"), + MovedAttribute("UnknownHandler", "urllib2", "urllib.request"), + MovedAttribute("HTTPErrorProcessor", "urllib2", "urllib.request"), + MovedAttribute("urlretrieve", "urllib", "urllib.request"), + MovedAttribute("urlcleanup", "urllib", "urllib.request"), + MovedAttribute("URLopener", "urllib", "urllib.request"), + MovedAttribute("FancyURLopener", "urllib", "urllib.request"), + MovedAttribute("proxy_bypass", "urllib", "urllib.request"), + MovedAttribute("parse_http_list", "urllib2", "urllib.request"), + MovedAttribute("parse_keqv_list", "urllib2", "urllib.request"), +] +for attr in _urllib_request_moved_attributes: + setattr(Module_six_moves_urllib_request, attr.name, attr) +del attr + +Module_six_moves_urllib_request._moved_attributes = _urllib_request_moved_attributes + +_importer._add_module( + Module_six_moves_urllib_request(__name__ + ".moves.urllib.request"), + "moves.urllib_request", + "moves.urllib.request", +) + + +class Module_six_moves_urllib_response(_LazyModule): + + """Lazy loading of moved objects in six.moves.urllib_response""" + + +_urllib_response_moved_attributes = [ + MovedAttribute("addbase", "urllib", "urllib.response"), + MovedAttribute("addclosehook", "urllib", "urllib.response"), + MovedAttribute("addinfo", "urllib", "urllib.response"), + MovedAttribute("addinfourl", "urllib", "urllib.response"), +] +for attr in _urllib_response_moved_attributes: + setattr(Module_six_moves_urllib_response, attr.name, attr) +del attr + +Module_six_moves_urllib_response._moved_attributes = _urllib_response_moved_attributes + +_importer._add_module( + Module_six_moves_urllib_response(__name__ + ".moves.urllib.response"), + "moves.urllib_response", + "moves.urllib.response", +) + + +class Module_six_moves_urllib_robotparser(_LazyModule): + + """Lazy loading of moved objects in six.moves.urllib_robotparser""" + + +_urllib_robotparser_moved_attributes = [ + MovedAttribute("RobotFileParser", "robotparser", "urllib.robotparser"), +] +for attr in _urllib_robotparser_moved_attributes: + setattr(Module_six_moves_urllib_robotparser, attr.name, attr) +del attr + +Module_six_moves_urllib_robotparser._moved_attributes = ( + _urllib_robotparser_moved_attributes +) + +_importer._add_module( + Module_six_moves_urllib_robotparser(__name__ + ".moves.urllib.robotparser"), + "moves.urllib_robotparser", + "moves.urllib.robotparser", +) + + +class Module_six_moves_urllib(types.ModuleType): + + """Create a six.moves.urllib namespace that resembles the Python 3 namespace""" + + __path__ = [] # mark as package + parse = _importer._get_module("moves.urllib_parse") + error = _importer._get_module("moves.urllib_error") + request = _importer._get_module("moves.urllib_request") + response = _importer._get_module("moves.urllib_response") + robotparser = _importer._get_module("moves.urllib_robotparser") + + def __dir__(self): + return ["parse", "error", "request", "response", "robotparser"] + + +_importer._add_module( + Module_six_moves_urllib(__name__ + ".moves.urllib"), "moves.urllib" +) + + +def add_move(move): + """Add an item to six.moves.""" + setattr(_MovedItems, move.name, move) + + +def remove_move(name): + """Remove item from six.moves.""" + try: + delattr(_MovedItems, name) + except AttributeError: + try: + del moves.__dict__[name] + except KeyError: + raise AttributeError("no such move, %r" % (name,)) + + +if PY3: + _meth_func = "__func__" + _meth_self = "__self__" + + _func_closure = "__closure__" + _func_code = "__code__" + _func_defaults = "__defaults__" + _func_globals = "__globals__" +else: + _meth_func = "im_func" + _meth_self = "im_self" + + _func_closure = "func_closure" + _func_code = "func_code" + _func_defaults = "func_defaults" + _func_globals = "func_globals" + + +try: + advance_iterator = next +except NameError: + + def advance_iterator(it): + return it.next() + + +next = advance_iterator + + +try: + callable = callable +except NameError: + + def callable(obj): + return any("__call__" in klass.__dict__ for klass in type(obj).__mro__) + + +if PY3: + + def get_unbound_function(unbound): + return unbound + + create_bound_method = types.MethodType + + def create_unbound_method(func, cls): + return func + + Iterator = object +else: + + def get_unbound_function(unbound): + return unbound.im_func + + def create_bound_method(func, obj): + return types.MethodType(func, obj, obj.__class__) + + def create_unbound_method(func, cls): + return types.MethodType(func, None, cls) + + class Iterator(object): + def next(self): + return type(self).__next__(self) + + callable = callable +_add_doc( + get_unbound_function, """Get the function out of a possibly unbound function""" +) + + +get_method_function = operator.attrgetter(_meth_func) +get_method_self = operator.attrgetter(_meth_self) +get_function_closure = operator.attrgetter(_func_closure) +get_function_code = operator.attrgetter(_func_code) +get_function_defaults = operator.attrgetter(_func_defaults) +get_function_globals = operator.attrgetter(_func_globals) + + +if PY3: + + def iterkeys(d, **kw): + return iter(d.keys(**kw)) + + def itervalues(d, **kw): + return iter(d.values(**kw)) + + def iteritems(d, **kw): + return iter(d.items(**kw)) + + def iterlists(d, **kw): + return iter(d.lists(**kw)) + + viewkeys = operator.methodcaller("keys") + + viewvalues = operator.methodcaller("values") + + viewitems = operator.methodcaller("items") +else: + + def iterkeys(d, **kw): + return d.iterkeys(**kw) + + def itervalues(d, **kw): + return d.itervalues(**kw) + + def iteritems(d, **kw): + return d.iteritems(**kw) + + def iterlists(d, **kw): + return d.iterlists(**kw) + + viewkeys = operator.methodcaller("viewkeys") + + viewvalues = operator.methodcaller("viewvalues") + + viewitems = operator.methodcaller("viewitems") + +_add_doc(iterkeys, "Return an iterator over the keys of a dictionary.") +_add_doc(itervalues, "Return an iterator over the values of a dictionary.") +_add_doc(iteritems, "Return an iterator over the (key, value) pairs of a dictionary.") +_add_doc( + iterlists, "Return an iterator over the (key, [values]) pairs of a dictionary." +) + + +if PY3: + + def b(s): + return s.encode("latin-1") + + def u(s): + return s + + unichr = chr + import struct + + int2byte = struct.Struct(">B").pack + del struct + byte2int = operator.itemgetter(0) + indexbytes = operator.getitem + iterbytes = iter + import io + + StringIO = io.StringIO + BytesIO = io.BytesIO + del io + _assertCountEqual = "assertCountEqual" + if sys.version_info[1] <= 1: + _assertRaisesRegex = "assertRaisesRegexp" + _assertRegex = "assertRegexpMatches" + _assertNotRegex = "assertNotRegexpMatches" + else: + _assertRaisesRegex = "assertRaisesRegex" + _assertRegex = "assertRegex" + _assertNotRegex = "assertNotRegex" +else: + + def b(s): + return s + + # Workaround for standalone backslash + + def u(s): + return unicode(s.replace(r"\\", r"\\\\"), "unicode_escape") + + unichr = unichr + int2byte = chr + + def byte2int(bs): + return ord(bs[0]) + + def indexbytes(buf, i): + return ord(buf[i]) + + iterbytes = functools.partial(itertools.imap, ord) + import StringIO + + StringIO = BytesIO = StringIO.StringIO + _assertCountEqual = "assertItemsEqual" + _assertRaisesRegex = "assertRaisesRegexp" + _assertRegex = "assertRegexpMatches" + _assertNotRegex = "assertNotRegexpMatches" +_add_doc(b, """Byte literal""") +_add_doc(u, """Text literal""") + + +def assertCountEqual(self, *args, **kwargs): + return getattr(self, _assertCountEqual)(*args, **kwargs) + + +def assertRaisesRegex(self, *args, **kwargs): + return getattr(self, _assertRaisesRegex)(*args, **kwargs) + + +def assertRegex(self, *args, **kwargs): + return getattr(self, _assertRegex)(*args, **kwargs) + + +def assertNotRegex(self, *args, **kwargs): + return getattr(self, _assertNotRegex)(*args, **kwargs) + + +if PY3: + exec_ = getattr(moves.builtins, "exec") + + def reraise(tp, value, tb=None): + try: + if value is None: + value = tp() + if value.__traceback__ is not tb: + raise value.with_traceback(tb) + raise value + finally: + value = None + tb = None + +else: + + def exec_(_code_, _globs_=None, _locs_=None): + """Execute code in a namespace.""" + if _globs_ is None: + frame = sys._getframe(1) + _globs_ = frame.f_globals + if _locs_ is None: + _locs_ = frame.f_locals + del frame + elif _locs_ is None: + _locs_ = _globs_ + exec ("""exec _code_ in _globs_, _locs_""") + + exec_( + """def reraise(tp, value, tb=None): + try: + raise tp, value, tb + finally: + tb = None +""" + ) + + +if sys.version_info[:2] > (3,): + exec_( + """def raise_from(value, from_value): + try: + raise value from from_value + finally: + value = None +""" + ) +else: + + def raise_from(value, from_value): + raise value + + +print_ = getattr(moves.builtins, "print", None) +if print_ is None: + + def print_(*args, **kwargs): + """The new-style print function for Python 2.4 and 2.5.""" + fp = kwargs.pop("file", sys.stdout) + if fp is None: + return + + def write(data): + if not isinstance(data, basestring): + data = str(data) + # If the file has an encoding, encode unicode with it. + if ( + isinstance(fp, file) + and isinstance(data, unicode) + and fp.encoding is not None + ): + errors = getattr(fp, "errors", None) + if errors is None: + errors = "strict" + data = data.encode(fp.encoding, errors) + fp.write(data) + + want_unicode = False + sep = kwargs.pop("sep", None) + if sep is not None: + if isinstance(sep, unicode): + want_unicode = True + elif not isinstance(sep, str): + raise TypeError("sep must be None or a string") + end = kwargs.pop("end", None) + if end is not None: + if isinstance(end, unicode): + want_unicode = True + elif not isinstance(end, str): + raise TypeError("end must be None or a string") + if kwargs: + raise TypeError("invalid keyword arguments to print()") + if not want_unicode: + for arg in args: + if isinstance(arg, unicode): + want_unicode = True + break + if want_unicode: + newline = unicode("\n") + space = unicode(" ") + else: + newline = "\n" + space = " " + if sep is None: + sep = space + if end is None: + end = newline + for i, arg in enumerate(args): + if i: + write(sep) + write(arg) + write(end) + + +if sys.version_info[:2] < (3, 3): + _print = print_ + + def print_(*args, **kwargs): + fp = kwargs.get("file", sys.stdout) + flush = kwargs.pop("flush", False) + _print(*args, **kwargs) + if flush and fp is not None: + fp.flush() + + +_add_doc(reraise, """Reraise an exception.""") + +if sys.version_info[0:2] < (3, 4): + # This does exactly the same what the :func:`py3:functools.update_wrapper` + # function does on Python versions after 3.2. It sets the ``__wrapped__`` + # attribute on ``wrapper`` object and it doesn't raise an error if any of + # the attributes mentioned in ``assigned`` and ``updated`` are missing on + # ``wrapped`` object. + def _update_wrapper( + wrapper, + wrapped, + assigned=functools.WRAPPER_ASSIGNMENTS, + updated=functools.WRAPPER_UPDATES, + ): + for attr in assigned: + try: + value = getattr(wrapped, attr) + except AttributeError: + continue + else: + setattr(wrapper, attr, value) + for attr in updated: + getattr(wrapper, attr).update(getattr(wrapped, attr, {})) + wrapper.__wrapped__ = wrapped + return wrapper + + _update_wrapper.__doc__ = functools.update_wrapper.__doc__ + + def wraps( + wrapped, + assigned=functools.WRAPPER_ASSIGNMENTS, + updated=functools.WRAPPER_UPDATES, + ): + return functools.partial( + _update_wrapper, wrapped=wrapped, assigned=assigned, updated=updated + ) + + wraps.__doc__ = functools.wraps.__doc__ + +else: + wraps = functools.wraps + + +def with_metaclass(meta, *bases): + """Create a base class with a metaclass.""" + # This requires a bit of explanation: the basic idea is to make a dummy + # metaclass for one level of class instantiation that replaces itself with + # the actual metaclass. + class metaclass(type): + def __new__(cls, name, this_bases, d): + if sys.version_info[:2] >= (3, 7): + # This version introduced PEP 560 that requires a bit + # of extra care (we mimic what is done by __build_class__). + resolved_bases = types.resolve_bases(bases) + if resolved_bases is not bases: + d["__orig_bases__"] = bases + else: + resolved_bases = bases + return meta(name, resolved_bases, d) + + @classmethod + def __prepare__(cls, name, this_bases): + return meta.__prepare__(name, bases) + + return type.__new__(metaclass, "temporary_class", (), {}) + + +def add_metaclass(metaclass): + """Class decorator for creating a class with a metaclass.""" + + def wrapper(cls): + orig_vars = cls.__dict__.copy() + slots = orig_vars.get("__slots__") + if slots is not None: + if isinstance(slots, str): + slots = [slots] + for slots_var in slots: + orig_vars.pop(slots_var) + orig_vars.pop("__dict__", None) + orig_vars.pop("__weakref__", None) + if hasattr(cls, "__qualname__"): + orig_vars["__qualname__"] = cls.__qualname__ + return metaclass(cls.__name__, cls.__bases__, orig_vars) + + return wrapper + + +def ensure_binary(s, encoding="utf-8", errors="strict"): + """Coerce **s** to six.binary_type. + + For Python 2: + - `unicode` -> encoded to `str` + - `str` -> `str` + + For Python 3: + - `str` -> encoded to `bytes` + - `bytes` -> `bytes` + """ + if isinstance(s, binary_type): + return s + if isinstance(s, text_type): + return s.encode(encoding, errors) + raise TypeError("not expecting type '%s'" % type(s)) + + +def ensure_str(s, encoding="utf-8", errors="strict"): + """Coerce *s* to `str`. + + For Python 2: + - `unicode` -> encoded to `str` + - `str` -> `str` + + For Python 3: + - `str` -> `str` + - `bytes` -> decoded to `str` + """ + # Optimization: Fast return for the common case. + if type(s) is str: + return s + if PY2 and isinstance(s, text_type): + return s.encode(encoding, errors) + elif PY3 and isinstance(s, binary_type): + return s.decode(encoding, errors) + elif not isinstance(s, (text_type, binary_type)): + raise TypeError("not expecting type '%s'" % type(s)) + return s + + +def ensure_text(s, encoding="utf-8", errors="strict"): + """Coerce *s* to six.text_type. + + For Python 2: + - `unicode` -> `unicode` + - `str` -> `unicode` + + For Python 3: + - `str` -> `str` + - `bytes` -> decoded to `str` + """ + if isinstance(s, binary_type): + return s.decode(encoding, errors) + elif isinstance(s, text_type): + return s + else: + raise TypeError("not expecting type '%s'" % type(s)) + + +def python_2_unicode_compatible(klass): + """ + A class decorator that defines __unicode__ and __str__ methods under Python 2. + Under Python 3 it does nothing. + + To support Python 2 and 3 with a single code base, define a __str__ method + returning text and apply this decorator to the class. + """ + if PY2: + if "__str__" not in klass.__dict__: + raise ValueError( + "@python_2_unicode_compatible cannot be applied " + "to %s because it doesn't define __str__()." % klass.__name__ + ) + klass.__unicode__ = klass.__str__ + klass.__str__ = lambda self: self.__unicode__().encode("utf-8") + return klass + + +# Complete the moves implementation. +# This code is at the end of this module to speed up module loading. +# Turn this module into a package. +__path__ = [] # required for PEP 302 and PEP 451 +__package__ = __name__ # see PEP 366 @ReservedAssignment +if globals().get("__spec__") is not None: + __spec__.submodule_search_locations = [] # PEP 451 @UndefinedVariable +# Remove other six meta path importers, since they cause problems. This can +# happen if six is removed from sys.modules and then reloaded. (Setuptools does +# this for some reason.) +if sys.meta_path: + for i, importer in enumerate(sys.meta_path): + # Here's some real nastiness: Another "instance" of the six module might + # be floating around. Therefore, we can't use isinstance() to check for + # the six meta path importer, since the other six instance will have + # inserted an importer with different class. + if ( + type(importer).__name__ == "_SixMetaPathImporter" + and importer.name == __name__ + ): + del sys.meta_path[i] + break + del i, importer +# Finally, add the importer to the meta path import hook. +sys.meta_path.append(_importer) diff --git a/shared/package-files/6f/6fd46d7f736d4aa734fca6a4e8bfe5be76dd28f0341948a6da9f9770542c7f98/top_level.txt b/shared/package-files/6f/6fd46d7f736d4aa734fca6a4e8bfe5be76dd28f0341948a6da9f9770542c7f98/top_level.txt new file mode 100644 index 0000000000000000000000000000000000000000..a920f2c56c3cd68fce639efd047e869fe0736ba3 --- /dev/null +++ b/shared/package-files/6f/6fd46d7f736d4aa734fca6a4e8bfe5be76dd28f0341948a6da9f9770542c7f98/top_level.txt @@ -0,0 +1 @@ +executing diff --git a/shared/package-files/6f/6fd7727a7b270b7be7261908252ce802d54ee7e40360fe1c97b1860ffd352141/kernel_ridge.py b/shared/package-files/6f/6fd7727a7b270b7be7261908252ce802d54ee7e40360fe1c97b1860ffd352141/kernel_ridge.py new file mode 100644 index 0000000000000000000000000000000000000000..29e744647acc97d3ff7493f2cfc9af4f07ce1bdc --- /dev/null +++ b/shared/package-files/6f/6fd7727a7b270b7be7261908252ce802d54ee7e40360fe1c97b1860ffd352141/kernel_ridge.py @@ -0,0 +1,240 @@ +"""Kernel ridge regression.""" + +# Authors: The scikit-learn developers +# SPDX-License-Identifier: BSD-3-Clause + +from numbers import Real + +import numpy as np + +from .base import BaseEstimator, MultiOutputMixin, RegressorMixin, _fit_context +from .linear_model._ridge import _solve_cholesky_kernel +from .metrics.pairwise import PAIRWISE_KERNEL_FUNCTIONS, pairwise_kernels +from .utils._param_validation import Interval, StrOptions +from .utils.validation import _check_sample_weight, check_is_fitted, validate_data + + +class KernelRidge(MultiOutputMixin, RegressorMixin, BaseEstimator): + """Kernel ridge regression. + + Kernel ridge regression (KRR) combines ridge regression (linear least + squares with l2-norm regularization) with the kernel trick. It thus + learns a linear function in the space induced by the respective kernel and + the data. For non-linear kernels, this corresponds to a non-linear + function in the original space. + + The form of the model learned by KRR is identical to support vector + regression (SVR). However, different loss functions are used: KRR uses + squared error loss while support vector regression uses epsilon-insensitive + loss, both combined with l2 regularization. In contrast to SVR, fitting a + KRR model can be done in closed-form and is typically faster for + medium-sized datasets. On the other hand, the learned model is non-sparse + and thus slower than SVR, which learns a sparse model for epsilon > 0, at + prediction-time. + + This estimator has built-in support for multi-variate regression + (i.e., when y is a 2d-array of shape [n_samples, n_targets]). + + Read more in the :ref:`User Guide `. + + Parameters + ---------- + alpha : float or array-like of shape (n_targets,), default=1.0 + Regularization strength; must be a positive float. Regularization + improves the conditioning of the problem and reduces the variance of + the estimates. Larger values specify stronger regularization. + Alpha corresponds to ``1 / (2C)`` in other linear models such as + :class:`~sklearn.linear_model.LogisticRegression` or + :class:`~sklearn.svm.LinearSVC`. If an array is passed, penalties are + assumed to be specific to the targets. Hence they must correspond in + number. See :ref:`ridge_regression` for formula. + + kernel : str or callable, default="linear" + Kernel mapping used internally. This parameter is directly passed to + :class:`~sklearn.metrics.pairwise.pairwise_kernels`. + If `kernel` is a string, it must be one of the metrics + in `pairwise.PAIRWISE_KERNEL_FUNCTIONS` or "precomputed". + If `kernel` is "precomputed", X is assumed to be a kernel matrix. + Alternatively, if `kernel` is a callable function, it is called on + each pair of instances (rows) and the resulting value recorded. The + callable should take two rows from X as input and return the + corresponding kernel value as a single number. This means that + callables from :mod:`sklearn.metrics.pairwise` are not allowed, as + they operate on matrices, not single samples. Use the string + identifying the kernel instead. + + gamma : float, default=None + Gamma parameter for the RBF, laplacian, polynomial, exponential chi2 + and sigmoid kernels. Interpretation of the default value is left to + the kernel; see the documentation for sklearn.metrics.pairwise. + Ignored by other kernels. + + degree : float, default=3 + Degree of the polynomial kernel. Ignored by other kernels. + + coef0 : float, default=1 + Zero coefficient for polynomial and sigmoid kernels. + Ignored by other kernels. + + kernel_params : dict, default=None + Additional parameters (keyword arguments) for kernel function passed + as callable object. + + Attributes + ---------- + dual_coef_ : ndarray of shape (n_samples,) or (n_samples, n_targets) + Representation of weight vector(s) in kernel space + + X_fit_ : {ndarray, sparse matrix} of shape (n_samples, n_features) + Training data, which is also required for prediction. If + kernel == "precomputed" this is instead the precomputed + training matrix, of shape (n_samples, n_samples). + + 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 + -------- + sklearn.gaussian_process.GaussianProcessRegressor : Gaussian + Process regressor providing automatic kernel hyperparameters + tuning and predictions uncertainty. + sklearn.linear_model.Ridge : Linear ridge regression. + sklearn.linear_model.RidgeCV : Ridge regression with built-in + cross-validation. + sklearn.svm.SVR : Support Vector Regression accepting a large variety + of kernels. + + References + ---------- + * Kevin P. Murphy + "Machine Learning: A Probabilistic Perspective", The MIT Press + chapter 14.4.3, pp. 492-493 + + Examples + -------- + >>> from sklearn.kernel_ridge import KernelRidge + >>> import numpy as np + >>> n_samples, n_features = 10, 5 + >>> rng = np.random.RandomState(0) + >>> y = rng.randn(n_samples) + >>> X = rng.randn(n_samples, n_features) + >>> krr = KernelRidge(alpha=1.0) + >>> krr.fit(X, y) + KernelRidge(alpha=1.0) + """ + + _parameter_constraints: dict = { + "alpha": [Interval(Real, 0, None, closed="left"), "array-like"], + "kernel": [ + StrOptions(set(PAIRWISE_KERNEL_FUNCTIONS.keys()) | {"precomputed"}), + callable, + ], + "gamma": [Interval(Real, 0, None, closed="left"), None], + "degree": [Interval(Real, 0, None, closed="left")], + "coef0": [Interval(Real, None, None, closed="neither")], + "kernel_params": [dict, None], + } + + def __init__( + self, + alpha=1, + *, + kernel="linear", + gamma=None, + degree=3, + coef0=1, + kernel_params=None, + ): + self.alpha = alpha + self.kernel = kernel + self.gamma = gamma + self.degree = degree + self.coef0 = coef0 + self.kernel_params = kernel_params + + def _get_kernel(self, X, Y=None): + if callable(self.kernel): + params = self.kernel_params or {} + else: + params = {"gamma": self.gamma, "degree": self.degree, "coef0": self.coef0} + return pairwise_kernels(X, Y, metric=self.kernel, filter_params=True, **params) + + def __sklearn_tags__(self): + tags = super().__sklearn_tags__() + tags.input_tags.sparse = True + tags.input_tags.pairwise = self.kernel == "precomputed" + return tags + + @_fit_context(prefer_skip_nested_validation=True) + def fit(self, X, y, sample_weight=None): + """Fit Kernel Ridge regression model. + + Parameters + ---------- + X : {array-like, sparse matrix} of shape (n_samples, n_features) + Training data. If kernel == "precomputed" this is instead + a precomputed kernel matrix, of shape (n_samples, n_samples). + + y : array-like of shape (n_samples,) or (n_samples, n_targets) + Target values. + + sample_weight : float or array-like of shape (n_samples,), default=None + Individual weights for each sample, ignored if None is passed. + + Returns + ------- + self : object + Returns the instance itself. + """ + # Convert data + X, y = validate_data( + self, X, y, accept_sparse=("csr", "csc"), multi_output=True, y_numeric=True + ) + if sample_weight is not None and not isinstance(sample_weight, float): + sample_weight = _check_sample_weight(sample_weight, X) + + K = self._get_kernel(X) + alpha = np.atleast_1d(self.alpha) + + ravel = False + if len(y.shape) == 1: + y = y.reshape(-1, 1) + ravel = True + + copy = self.kernel == "precomputed" + self.dual_coef_ = _solve_cholesky_kernel(K, y, alpha, sample_weight, copy) + if ravel: + self.dual_coef_ = self.dual_coef_.ravel() + + self.X_fit_ = X + + return self + + def predict(self, X): + """Predict using the kernel ridge model. + + Parameters + ---------- + X : {array-like, sparse matrix} of shape (n_samples, n_features) + Samples. If kernel == "precomputed" this is instead a + precomputed kernel matrix, shape = [n_samples, + n_samples_fitted], where n_samples_fitted is the number of + samples used in the fitting for this estimator. + + Returns + ------- + C : ndarray of shape (n_samples,) or (n_samples, n_targets) + Returns predicted values. + """ + check_is_fitted(self) + X = validate_data(self, X, accept_sparse=("csr", "csc"), reset=False) + K = self._get_kernel(X, self.X_fit_) + return np.dot(K, self.dual_coef_) diff --git a/shared/package-files/6f/6fd8486a5b8951dd55d97200a757ab6a4e94f9cf82c0ac832c7d5491842ebca1/_parse_autolev_antlr.py b/shared/package-files/6f/6fd8486a5b8951dd55d97200a757ab6a4e94f9cf82c0ac832c7d5491842ebca1/_parse_autolev_antlr.py new file mode 100644 index 0000000000000000000000000000000000000000..e43924aac30903ade996b31921d3960afae90284 --- /dev/null +++ b/shared/package-files/6f/6fd8486a5b8951dd55d97200a757ab6a4e94f9cf82c0ac832c7d5491842ebca1/_parse_autolev_antlr.py @@ -0,0 +1,38 @@ +from importlib.metadata import version +from sympy.external import import_module + + +autolevparser = import_module('sympy.parsing.autolev._antlr.autolevparser', + import_kwargs={'fromlist': ['AutolevParser']}) +autolevlexer = import_module('sympy.parsing.autolev._antlr.autolevlexer', + import_kwargs={'fromlist': ['AutolevLexer']}) +autolevlistener = import_module('sympy.parsing.autolev._antlr.autolevlistener', + import_kwargs={'fromlist': ['AutolevListener']}) + +AutolevParser = getattr(autolevparser, 'AutolevParser', None) +AutolevLexer = getattr(autolevlexer, 'AutolevLexer', None) +AutolevListener = getattr(autolevlistener, 'AutolevListener', None) + + +def parse_autolev(autolev_code, include_numeric): + antlr4 = import_module('antlr4') + if not antlr4 or not version('antlr4-python3-runtime').startswith('4.11'): + raise ImportError("Autolev parsing requires the antlr4 Python package," + " provided by pip (antlr4-python3-runtime)" + " conda (antlr-python-runtime), version 4.11") + try: + l = autolev_code.readlines() + input_stream = antlr4.InputStream("".join(l)) + except Exception: + input_stream = antlr4.InputStream(autolev_code) + + if AutolevListener: + from ._listener_autolev_antlr import MyListener + lexer = AutolevLexer(input_stream) + token_stream = antlr4.CommonTokenStream(lexer) + parser = AutolevParser(token_stream) + tree = parser.prog() + my_listener = MyListener(include_numeric) + walker = antlr4.ParseTreeWalker() + walker.walk(my_listener, tree) + return "".join(my_listener.output_code) diff --git a/shared/package-files/6f/6fd94fc10e73f1331368aa03234c03a02d8230bc5f69266480255a462e28c13b/cross_ops.h b/shared/package-files/6f/6fd94fc10e73f1331368aa03234c03a02d8230bc5f69266480255a462e28c13b/cross_ops.h new file mode 100644 index 0000000000000000000000000000000000000000..6ebd8716872ab89b0909acf29c4adafe5f75ed0b --- /dev/null +++ b/shared/package-files/6f/6fd94fc10e73f1331368aa03234c03a02d8230bc5f69266480255a462e28c13b/cross_ops.h @@ -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 cross_out { + using schema = at::Tensor & (const at::Tensor &, 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::cross") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "out") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "cross.out(Tensor self, Tensor other, int? dim=None, *, Tensor(a!) out) -> Tensor(a!)") + static at::Tensor & call(const at::Tensor & self, const at::Tensor & other, c10::optional dim, at::Tensor & out); + static at::Tensor & redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, c10::optional dim, at::Tensor & out); +}; + +struct TORCH_API cross { + using schema = at::Tensor (const at::Tensor &, const at::Tensor &, c10::optional); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::cross") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "cross(Tensor self, Tensor other, int? dim=None) -> Tensor") + static at::Tensor call(const at::Tensor & self, const at::Tensor & other, c10::optional dim); + static at::Tensor redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, c10::optional dim); +}; + +}} // namespace at::_ops diff --git a/shared/package-files/6f/6fdcc49ba23a0203ae6cf28e608f8e6297d7c4d77d52e651db3cb49b9564c6d2/aliases.py b/shared/package-files/6f/6fdcc49ba23a0203ae6cf28e608f8e6297d7c4d77d52e651db3cb49b9564c6d2/aliases.py new file mode 100644 index 0000000000000000000000000000000000000000..d85afd6d5cf704b580a31be2ee79f5cdfe0247c1 --- /dev/null +++ b/shared/package-files/6f/6fdcc49ba23a0203ae6cf28e608f8e6297d7c4d77d52e651db3cb49b9564c6d2/aliases.py @@ -0,0 +1,551 @@ +""" Encoding Aliases Support + + This module is used by the encodings package search function to + map encodings names to module names. + + Note that the search function normalizes the encoding names before + doing the lookup, so the mapping will have to map normalized + encoding names to module names. + + Contents: + + The following aliases dictionary contains mappings of all IANA + character set names for which the Python core library provides + codecs. In addition to these, a few Python specific codec + aliases have also been added. + +""" +aliases = { + + # Please keep this list sorted alphabetically by value ! + + # ascii codec + '646' : 'ascii', + 'ansi_x3.4_1968' : 'ascii', + 'ansi_x3_4_1968' : 'ascii', # some email headers use this non-standard name + 'ansi_x3.4_1986' : 'ascii', + 'cp367' : 'ascii', + 'csascii' : 'ascii', + 'ibm367' : 'ascii', + 'iso646_us' : 'ascii', + 'iso_646.irv_1991' : 'ascii', + 'iso_ir_6' : 'ascii', + 'us' : 'ascii', + 'us_ascii' : 'ascii', + + # base64_codec codec + 'base64' : 'base64_codec', + 'base_64' : 'base64_codec', + + # big5 codec + 'big5_tw' : 'big5', + 'csbig5' : 'big5', + + # big5hkscs codec + 'big5_hkscs' : 'big5hkscs', + 'hkscs' : 'big5hkscs', + + # bz2_codec codec + 'bz2' : 'bz2_codec', + + # cp037 codec + '037' : 'cp037', + 'csibm037' : 'cp037', + 'ebcdic_cp_ca' : 'cp037', + 'ebcdic_cp_nl' : 'cp037', + 'ebcdic_cp_us' : 'cp037', + 'ebcdic_cp_wt' : 'cp037', + 'ibm037' : 'cp037', + 'ibm039' : 'cp037', + + # cp1026 codec + '1026' : 'cp1026', + 'csibm1026' : 'cp1026', + 'ibm1026' : 'cp1026', + + # cp1125 codec + '1125' : 'cp1125', + 'ibm1125' : 'cp1125', + 'cp866u' : 'cp1125', + 'ruscii' : 'cp1125', + + # cp1140 codec + '1140' : 'cp1140', + 'ibm1140' : 'cp1140', + + # cp1250 codec + '1250' : 'cp1250', + 'windows_1250' : 'cp1250', + + # cp1251 codec + '1251' : 'cp1251', + 'windows_1251' : 'cp1251', + + # cp1252 codec + '1252' : 'cp1252', + 'windows_1252' : 'cp1252', + + # cp1253 codec + '1253' : 'cp1253', + 'windows_1253' : 'cp1253', + + # cp1254 codec + '1254' : 'cp1254', + 'windows_1254' : 'cp1254', + + # cp1255 codec + '1255' : 'cp1255', + 'windows_1255' : 'cp1255', + + # cp1256 codec + '1256' : 'cp1256', + 'windows_1256' : 'cp1256', + + # cp1257 codec + '1257' : 'cp1257', + 'windows_1257' : 'cp1257', + + # cp1258 codec + '1258' : 'cp1258', + 'windows_1258' : 'cp1258', + + # cp273 codec + '273' : 'cp273', + 'ibm273' : 'cp273', + 'csibm273' : 'cp273', + + # cp424 codec + '424' : 'cp424', + 'csibm424' : 'cp424', + 'ebcdic_cp_he' : 'cp424', + 'ibm424' : 'cp424', + + # cp437 codec + '437' : 'cp437', + 'cspc8codepage437' : 'cp437', + 'ibm437' : 'cp437', + + # cp500 codec + '500' : 'cp500', + 'csibm500' : 'cp500', + 'ebcdic_cp_be' : 'cp500', + 'ebcdic_cp_ch' : 'cp500', + 'ibm500' : 'cp500', + + # cp775 codec + '775' : 'cp775', + 'cspc775baltic' : 'cp775', + 'ibm775' : 'cp775', + + # cp850 codec + '850' : 'cp850', + 'cspc850multilingual' : 'cp850', + 'ibm850' : 'cp850', + + # cp852 codec + '852' : 'cp852', + 'cspcp852' : 'cp852', + 'ibm852' : 'cp852', + + # cp855 codec + '855' : 'cp855', + 'csibm855' : 'cp855', + 'ibm855' : 'cp855', + + # cp857 codec + '857' : 'cp857', + 'csibm857' : 'cp857', + 'ibm857' : 'cp857', + + # cp858 codec + '858' : 'cp858', + 'csibm858' : 'cp858', + 'ibm858' : 'cp858', + + # cp860 codec + '860' : 'cp860', + 'csibm860' : 'cp860', + 'ibm860' : 'cp860', + + # cp861 codec + '861' : 'cp861', + 'cp_is' : 'cp861', + 'csibm861' : 'cp861', + 'ibm861' : 'cp861', + + # cp862 codec + '862' : 'cp862', + 'cspc862latinhebrew' : 'cp862', + 'ibm862' : 'cp862', + + # cp863 codec + '863' : 'cp863', + 'csibm863' : 'cp863', + 'ibm863' : 'cp863', + + # cp864 codec + '864' : 'cp864', + 'csibm864' : 'cp864', + 'ibm864' : 'cp864', + + # cp865 codec + '865' : 'cp865', + 'csibm865' : 'cp865', + 'ibm865' : 'cp865', + + # cp866 codec + '866' : 'cp866', + 'csibm866' : 'cp866', + 'ibm866' : 'cp866', + + # cp869 codec + '869' : 'cp869', + 'cp_gr' : 'cp869', + 'csibm869' : 'cp869', + 'ibm869' : 'cp869', + + # cp932 codec + '932' : 'cp932', + 'ms932' : 'cp932', + 'mskanji' : 'cp932', + 'ms_kanji' : 'cp932', + + # cp949 codec + '949' : 'cp949', + 'ms949' : 'cp949', + 'uhc' : 'cp949', + + # cp950 codec + '950' : 'cp950', + 'ms950' : 'cp950', + + # euc_jis_2004 codec + 'jisx0213' : 'euc_jis_2004', + 'eucjis2004' : 'euc_jis_2004', + 'euc_jis2004' : 'euc_jis_2004', + + # euc_jisx0213 codec + 'eucjisx0213' : 'euc_jisx0213', + + # euc_jp codec + 'eucjp' : 'euc_jp', + 'ujis' : 'euc_jp', + 'u_jis' : 'euc_jp', + + # euc_kr codec + 'euckr' : 'euc_kr', + 'korean' : 'euc_kr', + 'ksc5601' : 'euc_kr', + 'ks_c_5601' : 'euc_kr', + 'ks_c_5601_1987' : 'euc_kr', + 'ksx1001' : 'euc_kr', + 'ks_x_1001' : 'euc_kr', + + # gb18030 codec + 'gb18030_2000' : 'gb18030', + + # gb2312 codec + 'chinese' : 'gb2312', + 'csiso58gb231280' : 'gb2312', + 'euc_cn' : 'gb2312', + 'euccn' : 'gb2312', + 'eucgb2312_cn' : 'gb2312', + 'gb2312_1980' : 'gb2312', + 'gb2312_80' : 'gb2312', + 'iso_ir_58' : 'gb2312', + + # gbk codec + '936' : 'gbk', + 'cp936' : 'gbk', + 'ms936' : 'gbk', + + # hex_codec codec + 'hex' : 'hex_codec', + + # hp_roman8 codec + 'roman8' : 'hp_roman8', + 'r8' : 'hp_roman8', + 'csHPRoman8' : 'hp_roman8', + 'cp1051' : 'hp_roman8', + 'ibm1051' : 'hp_roman8', + + # hz codec + 'hzgb' : 'hz', + 'hz_gb' : 'hz', + 'hz_gb_2312' : 'hz', + + # iso2022_jp codec + 'csiso2022jp' : 'iso2022_jp', + 'iso2022jp' : 'iso2022_jp', + 'iso_2022_jp' : 'iso2022_jp', + + # iso2022_jp_1 codec + 'iso2022jp_1' : 'iso2022_jp_1', + 'iso_2022_jp_1' : 'iso2022_jp_1', + + # iso2022_jp_2 codec + 'iso2022jp_2' : 'iso2022_jp_2', + 'iso_2022_jp_2' : 'iso2022_jp_2', + + # iso2022_jp_2004 codec + 'iso_2022_jp_2004' : 'iso2022_jp_2004', + 'iso2022jp_2004' : 'iso2022_jp_2004', + + # iso2022_jp_3 codec + 'iso2022jp_3' : 'iso2022_jp_3', + 'iso_2022_jp_3' : 'iso2022_jp_3', + + # iso2022_jp_ext codec + 'iso2022jp_ext' : 'iso2022_jp_ext', + 'iso_2022_jp_ext' : 'iso2022_jp_ext', + + # iso2022_kr codec + 'csiso2022kr' : 'iso2022_kr', + 'iso2022kr' : 'iso2022_kr', + 'iso_2022_kr' : 'iso2022_kr', + + # iso8859_10 codec + 'csisolatin6' : 'iso8859_10', + 'iso_8859_10' : 'iso8859_10', + 'iso_8859_10_1992' : 'iso8859_10', + 'iso_ir_157' : 'iso8859_10', + 'l6' : 'iso8859_10', + 'latin6' : 'iso8859_10', + + # iso8859_11 codec + 'thai' : 'iso8859_11', + 'iso_8859_11' : 'iso8859_11', + 'iso_8859_11_2001' : 'iso8859_11', + + # iso8859_13 codec + 'iso_8859_13' : 'iso8859_13', + 'l7' : 'iso8859_13', + 'latin7' : 'iso8859_13', + + # iso8859_14 codec + 'iso_8859_14' : 'iso8859_14', + 'iso_8859_14_1998' : 'iso8859_14', + 'iso_celtic' : 'iso8859_14', + 'iso_ir_199' : 'iso8859_14', + 'l8' : 'iso8859_14', + 'latin8' : 'iso8859_14', + + # iso8859_15 codec + 'iso_8859_15' : 'iso8859_15', + 'l9' : 'iso8859_15', + 'latin9' : 'iso8859_15', + + # iso8859_16 codec + 'iso_8859_16' : 'iso8859_16', + 'iso_8859_16_2001' : 'iso8859_16', + 'iso_ir_226' : 'iso8859_16', + 'l10' : 'iso8859_16', + 'latin10' : 'iso8859_16', + + # iso8859_2 codec + 'csisolatin2' : 'iso8859_2', + 'iso_8859_2' : 'iso8859_2', + 'iso_8859_2_1987' : 'iso8859_2', + 'iso_ir_101' : 'iso8859_2', + 'l2' : 'iso8859_2', + 'latin2' : 'iso8859_2', + + # iso8859_3 codec + 'csisolatin3' : 'iso8859_3', + 'iso_8859_3' : 'iso8859_3', + 'iso_8859_3_1988' : 'iso8859_3', + 'iso_ir_109' : 'iso8859_3', + 'l3' : 'iso8859_3', + 'latin3' : 'iso8859_3', + + # iso8859_4 codec + 'csisolatin4' : 'iso8859_4', + 'iso_8859_4' : 'iso8859_4', + 'iso_8859_4_1988' : 'iso8859_4', + 'iso_ir_110' : 'iso8859_4', + 'l4' : 'iso8859_4', + 'latin4' : 'iso8859_4', + + # iso8859_5 codec + 'csisolatincyrillic' : 'iso8859_5', + 'cyrillic' : 'iso8859_5', + 'iso_8859_5' : 'iso8859_5', + 'iso_8859_5_1988' : 'iso8859_5', + 'iso_ir_144' : 'iso8859_5', + + # iso8859_6 codec + 'arabic' : 'iso8859_6', + 'asmo_708' : 'iso8859_6', + 'csisolatinarabic' : 'iso8859_6', + 'ecma_114' : 'iso8859_6', + 'iso_8859_6' : 'iso8859_6', + 'iso_8859_6_1987' : 'iso8859_6', + 'iso_ir_127' : 'iso8859_6', + + # iso8859_7 codec + 'csisolatingreek' : 'iso8859_7', + 'ecma_118' : 'iso8859_7', + 'elot_928' : 'iso8859_7', + 'greek' : 'iso8859_7', + 'greek8' : 'iso8859_7', + 'iso_8859_7' : 'iso8859_7', + 'iso_8859_7_1987' : 'iso8859_7', + 'iso_ir_126' : 'iso8859_7', + + # iso8859_8 codec + 'csisolatinhebrew' : 'iso8859_8', + 'hebrew' : 'iso8859_8', + 'iso_8859_8' : 'iso8859_8', + 'iso_8859_8_1988' : 'iso8859_8', + 'iso_ir_138' : 'iso8859_8', + + # iso8859_9 codec + 'csisolatin5' : 'iso8859_9', + 'iso_8859_9' : 'iso8859_9', + 'iso_8859_9_1989' : 'iso8859_9', + 'iso_ir_148' : 'iso8859_9', + 'l5' : 'iso8859_9', + 'latin5' : 'iso8859_9', + + # johab codec + 'cp1361' : 'johab', + 'ms1361' : 'johab', + + # koi8_r codec + 'cskoi8r' : 'koi8_r', + + # kz1048 codec + 'kz_1048' : 'kz1048', + 'rk1048' : 'kz1048', + 'strk1048_2002' : 'kz1048', + + # latin_1 codec + # + # Note that the latin_1 codec is implemented internally in C and a + # lot faster than the charmap codec iso8859_1 which uses the same + # encoding. This is why we discourage the use of the iso8859_1 + # codec and alias it to latin_1 instead. + # + '8859' : 'latin_1', + 'cp819' : 'latin_1', + 'csisolatin1' : 'latin_1', + 'ibm819' : 'latin_1', + 'iso8859' : 'latin_1', + 'iso8859_1' : 'latin_1', + 'iso_8859_1' : 'latin_1', + 'iso_8859_1_1987' : 'latin_1', + 'iso_ir_100' : 'latin_1', + 'l1' : 'latin_1', + 'latin' : 'latin_1', + 'latin1' : 'latin_1', + + # mac_cyrillic codec + 'maccyrillic' : 'mac_cyrillic', + + # mac_greek codec + 'macgreek' : 'mac_greek', + + # mac_iceland codec + 'maciceland' : 'mac_iceland', + + # mac_latin2 codec + 'maccentraleurope' : 'mac_latin2', + 'mac_centeuro' : 'mac_latin2', + 'maclatin2' : 'mac_latin2', + + # mac_roman codec + 'macintosh' : 'mac_roman', + 'macroman' : 'mac_roman', + + # mac_turkish codec + 'macturkish' : 'mac_turkish', + + # mbcs codec + 'ansi' : 'mbcs', + 'dbcs' : 'mbcs', + + # ptcp154 codec + 'csptcp154' : 'ptcp154', + 'pt154' : 'ptcp154', + 'cp154' : 'ptcp154', + 'cyrillic_asian' : 'ptcp154', + + # quopri_codec codec + 'quopri' : 'quopri_codec', + 'quoted_printable' : 'quopri_codec', + 'quotedprintable' : 'quopri_codec', + + # rot_13 codec + 'rot13' : 'rot_13', + + # shift_jis codec + 'csshiftjis' : 'shift_jis', + 'shiftjis' : 'shift_jis', + 'sjis' : 'shift_jis', + 's_jis' : 'shift_jis', + + # shift_jis_2004 codec + 'shiftjis2004' : 'shift_jis_2004', + 'sjis_2004' : 'shift_jis_2004', + 's_jis_2004' : 'shift_jis_2004', + + # shift_jisx0213 codec + 'shiftjisx0213' : 'shift_jisx0213', + 'sjisx0213' : 'shift_jisx0213', + 's_jisx0213' : 'shift_jisx0213', + + # tis_620 codec + 'tis620' : 'tis_620', + 'tis_620_0' : 'tis_620', + 'tis_620_2529_0' : 'tis_620', + 'tis_620_2529_1' : 'tis_620', + 'iso_ir_166' : 'tis_620', + + # utf_16 codec + 'u16' : 'utf_16', + 'utf16' : 'utf_16', + + # utf_16_be codec + 'unicodebigunmarked' : 'utf_16_be', + 'utf_16be' : 'utf_16_be', + + # utf_16_le codec + 'unicodelittleunmarked' : 'utf_16_le', + 'utf_16le' : 'utf_16_le', + + # utf_32 codec + 'u32' : 'utf_32', + 'utf32' : 'utf_32', + + # utf_32_be codec + 'utf_32be' : 'utf_32_be', + + # utf_32_le codec + 'utf_32le' : 'utf_32_le', + + # utf_7 codec + 'u7' : 'utf_7', + 'utf7' : 'utf_7', + 'unicode_1_1_utf_7' : 'utf_7', + + # utf_8 codec + 'u8' : 'utf_8', + 'utf' : 'utf_8', + 'utf8' : 'utf_8', + 'utf8_ucs2' : 'utf_8', + 'utf8_ucs4' : 'utf_8', + 'cp65001' : 'utf_8', + + # uu_codec codec + 'uu' : 'uu_codec', + + # zlib_codec codec + 'zip' : 'zlib_codec', + 'zlib' : 'zlib_codec', + + # temporary mac CJK aliases, will be replaced by proper codecs in 3.1 + 'x_mac_japanese' : 'shift_jis', + 'x_mac_korean' : 'euc_kr', + 'x_mac_simp_chinese' : 'gb2312', + 'x_mac_trad_chinese' : 'big5', +} diff --git a/shared/package-files/6f/6fdd569220ba726aab6f0353cc86a6ffb70978f49f807d04ac844e8c3ac99de5/dense_dim_cuda_dispatch.h b/shared/package-files/6f/6fdd569220ba726aab6f0353cc86a6ffb70978f49f807d04ac844e8c3ac99de5/dense_dim_cuda_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..7556b54d78cb0ea55452afa63415f234e133ecb3 --- /dev/null +++ b/shared/package-files/6f/6fdd569220ba726aab6f0353cc86a6ffb70978f49f807d04ac844e8c3ac99de5/dense_dim_cuda_dispatch.h @@ -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 int64_t dense_dim(const at::Tensor & self); + +} // namespace cuda +} // namespace at diff --git a/shared/package-files/6f/6fdf2701a2f6f10e30de5aea77feb051dd009fec4d861267e138fca199734277/__init__.py b/shared/package-files/6f/6fdf2701a2f6f10e30de5aea77feb051dd009fec4d861267e138fca199734277/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..092d6eb8e36e2329c78d21bf609a8458818995e6 --- /dev/null +++ b/shared/package-files/6f/6fdf2701a2f6f10e30de5aea77feb051dd009fec4d861267e138fca199734277/__init__.py @@ -0,0 +1,11 @@ +from .objective import squim_objective_base, squim_objective_model, SquimObjective +from .subjective import squim_subjective_base, squim_subjective_model, SquimSubjective + +__all__ = [ + "squim_objective_base", + "squim_objective_model", + "squim_subjective_base", + "squim_subjective_model", + "SquimObjective", + "SquimSubjective", +] diff --git a/shared/package-files/6f/6fe0b4b05bcf4e32e9528ddc9701d9b320a5e41e76ba78e939501403976a156d/vt510 b/shared/package-files/6f/6fe0b4b05bcf4e32e9528ddc9701d9b320a5e41e76ba78e939501403976a156d/vt510 new file mode 100644 index 0000000000000000000000000000000000000000..db9a37bc63935a7e8e40dae5f4eac435eb3a129f Binary files /dev/null and b/shared/package-files/6f/6fe0b4b05bcf4e32e9528ddc9701d9b320a5e41e76ba78e939501403976a156d/vt510 differ diff --git a/shared/package-files/6f/6fe141a511a423ba9a67659d1d9d6ab35d0d9d77e4ca2b4ca774aad289ca239a/platform.py b/shared/package-files/6f/6fe141a511a423ba9a67659d1d9d6ab35d0d9d77e4ca2b4ca774aad289ca239a/platform.py new file mode 100644 index 0000000000000000000000000000000000000000..ba1f819ddda1ebaec6f269e617d82c4dff17cb00 --- /dev/null +++ b/shared/package-files/6f/6fe141a511a423ba9a67659d1d9d6ab35d0d9d77e4ca2b4ca774aad289ca239a/platform.py @@ -0,0 +1,218 @@ +import setuptools +from setuptools.command.build_ext import build_ext +from setuptools.dist import Distribution +import numpy as np + +import functools +import os +import subprocess +import sys +from tempfile import mkdtemp +from contextlib import contextmanager +from pathlib import Path + +# Wire in distutils components from setuptools +CCompiler = setuptools.distutils.ccompiler.CCompiler +new_compiler = setuptools.distutils.ccompiler.new_compiler +customize_compiler = setuptools.distutils.sysconfig.customize_compiler +log = setuptools.distutils.log + + +_configs = { + # DLL suffix, Python C extension suffix + 'win': ('.dll', '.pyd'), + 'default': ('.so', '.so'), +} + + +def get_configs(arg): + return _configs.get(sys.platform[:3], _configs['default'])[arg] + + +find_shared_ending = functools.partial(get_configs, 0) +find_pyext_ending = functools.partial(get_configs, 1) + +@contextmanager +def _gentmpfile(suffix): + # windows locks the tempfile so use a tempdir + file, see + # https://github.com/numba/numba/issues/3304 + try: + tmpdir = mkdtemp() + ntf = open(os.path.join(tmpdir, "temp%s" % suffix), 'wt') + yield ntf + finally: + try: + ntf.close() + os.remove(ntf) + except Exception: + pass + else: + os.rmdir(tmpdir) + + +@functools.lru_cache(maxsize=1) +def external_compiler_works(): + """ + Returns True if the "external compiler" bound in numpy.distutil is present + and working, False otherwise. + """ + compiler = new_compiler() + customize_compiler(compiler) + for suffix in ['.c', '.cxx']: + try: + with _gentmpfile(suffix) as ntf: + simple_c = "int main(void) { return 0; }" + ntf.write(simple_c) + ntf.flush() + ntf.close() + # *output_dir* is set to avoid the compiler putting temp files + # in the current directory. + compiler.compile([ntf.name], output_dir=Path(ntf.name).anchor) + except Exception: # likely CompileError or file system issue + return False + return True + + +class _DummyExtension(object): + libraries = [] + + +class Toolchain(object): + + def __init__(self): + if not external_compiler_works(): + self._raise_external_compiler_error() + + self._verbose = False + self._compiler = new_compiler() + customize_compiler(self._compiler) + self._build_ext = build_ext(Distribution()) + self._build_ext.finalize_options() + self._py_lib_dirs = self._build_ext.library_dirs + self._py_include_dirs = self._build_ext.include_dirs + np_compile_args = {'include_dirs': [np.get_include(),],} + if sys.platform == 'win32': + np_compile_args['libraries'] = [] + else: + np_compile_args['libraries'] = ['m',] + self._math_info = np_compile_args + + @property + def verbose(self): + return self._verbose + + @verbose.setter + def verbose(self, value): + self._verbose = value + # DEBUG will let Numpy spew many messages, so stick to INFO + # to print commands executed by distutils + log.set_threshold(log.INFO if value else log.WARN) + + def _raise_external_compiler_error(self): + basemsg = ("Attempted to compile AOT function without the " + "compiler used by `numpy.distutils` present.") + conda_msg = "If using conda try:\n\n#> conda install %s" + plt = sys.platform + if plt.startswith('linux'): + if sys.maxsize <= 2 ** 32: + compilers = ['gcc_linux-32', 'gxx_linux-32'] + else: + compilers = ['gcc_linux-64', 'gxx_linux-64'] + msg = "%s %s" % (basemsg, conda_msg % ' '.join(compilers)) + elif plt.startswith('darwin'): + compilers = ['clang_osx-64', 'clangxx_osx-64'] + msg = "%s %s" % (basemsg, conda_msg % ' '.join(compilers)) + elif plt.startswith('win32'): + winmsg = "Cannot find suitable msvc." + msg = "%s %s" % (basemsg, winmsg) + else: + msg = "Unknown platform %s" % plt + raise RuntimeError(msg) + + def compile_objects(self, sources, output_dir, + include_dirs=(), depends=(), macros=(), + extra_cflags=None): + """ + Compile the given source files into a separate object file each, + all beneath the *output_dir*. A list of paths to object files + is returned. + + *macros* has the same format as in distutils: a list of 1- or 2-tuples. + If a 1-tuple (name,), the given name is considered undefined by + the C preprocessor. + If a 2-tuple (name, value), the given name is expanded into the + given value by the C preprocessor. + """ + objects = self._compiler.compile(sources, + output_dir=output_dir, + include_dirs=include_dirs, + depends=depends, + macros=macros or [], + extra_preargs=extra_cflags) + return objects + + def link_shared(self, output, objects, libraries=(), + library_dirs=(), export_symbols=(), + extra_ldflags=None): + """ + Create a shared library *output* linking the given *objects* + and *libraries* (all strings). + """ + output_dir, output_filename = os.path.split(output) + self._compiler.link(CCompiler.SHARED_OBJECT, objects, + output_filename, output_dir, + libraries, library_dirs, + export_symbols=export_symbols, + extra_preargs=extra_ldflags) + + def get_python_libraries(self): + """ + Get the library arguments necessary to link with Python. + """ + libs = self._build_ext.get_libraries(_DummyExtension()) + if sys.platform == 'win32': + # Under Windows, need to link explicitly against the CRT, + # as the MSVC compiler would implicitly do. + # (XXX msvcrtd in pydebug mode?) + libs = libs + ['msvcrt'] + return libs + self._math_info['libraries'] + + def get_python_library_dirs(self): + """ + Get the library directories necessary to link with Python. + """ + return list(self._py_lib_dirs) + + def get_python_include_dirs(self): + """ + Get the include directories necessary to compile against the Python + and Numpy C APIs. + """ + return list(self._py_include_dirs) + self._math_info['include_dirs'] + + def get_ext_filename(self, ext_name): + """ + Given a C extension's module name, return its intended filename. + """ + return self._build_ext.get_ext_filename(ext_name) + + +def _quote_arg(arg): + """ + Quote the argument for safe use in a shell command line. + """ + # If there is a quote in the string, assume relevants parts of the + # string are already quoted (e.g. '-I"C:\\Program Files\\..."') + if '"' not in arg and ' ' in arg: + return '"%s"' % arg + return arg + + +def _is_sequence(arg): + if isinstance(arg, (str, bytes)): + return False + try: + len(arg) + return True + except Exception: + return False diff --git a/shared/package-files/6f/6fe3169f1c1a5f13d1cca035d8cc51f8c60982d8b44f4266831179228d2e4d62/expm1_native.h b/shared/package-files/6f/6fe3169f1c1a5f13d1cca035d8cc51f8c60982d8b44f4266831179228d2e4d62/expm1_native.h new file mode 100644 index 0000000000000000000000000000000000000000..8f851525b37153864fdbdb784a5ffef545477700 --- /dev/null +++ b/shared/package-files/6f/6fe3169f1c1a5f13d1cca035d8cc51f8c60982d8b44f4266831179228d2e4d62/expm1_native.h @@ -0,0 +1,29 @@ +#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_expm1_out : public at::meta::structured_expm1 { +void impl(const at::Tensor & self, const at::Tensor & out); +}; +TORCH_API at::Tensor expm1_sparse(const at::Tensor & self); +TORCH_API at::Tensor & expm1_sparse_out(const at::Tensor & self, at::Tensor & out); +TORCH_API at::Tensor & expm1_sparse_(at::Tensor & self); +TORCH_API at::Tensor expm1_sparse_csr(const at::Tensor & self); +TORCH_API at::Tensor & expm1_sparse_csr_out(const at::Tensor & self, at::Tensor & out); +TORCH_API at::Tensor & expm1_sparse_csr_(at::Tensor & self); +} // namespace native +} // namespace at diff --git a/shared/package-files/6f/6fe58abcf1099a9f178888c6543bff73fea618e2fe9f3f573af3053573e95de0/test_murmurhash.py b/shared/package-files/6f/6fe58abcf1099a9f178888c6543bff73fea618e2fe9f3f573af3053573e95de0/test_murmurhash.py new file mode 100644 index 0000000000000000000000000000000000000000..20721c6e98f524ff03db28e60909fb8979090e81 --- /dev/null +++ b/shared/package-files/6f/6fe58abcf1099a9f178888c6543bff73fea618e2fe9f3f573af3053573e95de0/test_murmurhash.py @@ -0,0 +1,73 @@ +# Authors: The scikit-learn developers +# SPDX-License-Identifier: BSD-3-Clause + +import numpy as np +from numpy.testing import assert_array_almost_equal, assert_array_equal + +from sklearn.utils.murmurhash import murmurhash3_32 + + +def test_mmhash3_int(): + assert murmurhash3_32(3) == 847579505 + assert murmurhash3_32(3, seed=0) == 847579505 + assert murmurhash3_32(3, seed=42) == -1823081949 + + assert murmurhash3_32(3, positive=False) == 847579505 + assert murmurhash3_32(3, seed=0, positive=False) == 847579505 + assert murmurhash3_32(3, seed=42, positive=False) == -1823081949 + + assert murmurhash3_32(3, positive=True) == 847579505 + assert murmurhash3_32(3, seed=0, positive=True) == 847579505 + assert murmurhash3_32(3, seed=42, positive=True) == 2471885347 + + +def test_mmhash3_int_array(): + rng = np.random.RandomState(42) + keys = rng.randint(-5342534, 345345, size=3 * 2 * 1).astype(np.int32) + keys = keys.reshape((3, 2, 1)) + + for seed in [0, 42]: + expected = np.array([murmurhash3_32(int(k), seed) for k in keys.flat]) + expected = expected.reshape(keys.shape) + assert_array_equal(murmurhash3_32(keys, seed), expected) + + for seed in [0, 42]: + expected = np.array([murmurhash3_32(k, seed, positive=True) for k in keys.flat]) + expected = expected.reshape(keys.shape) + assert_array_equal(murmurhash3_32(keys, seed, positive=True), expected) + + +def test_mmhash3_bytes(): + assert murmurhash3_32(b"foo", 0) == -156908512 + assert murmurhash3_32(b"foo", 42) == -1322301282 + + assert murmurhash3_32(b"foo", 0, positive=True) == 4138058784 + assert murmurhash3_32(b"foo", 42, positive=True) == 2972666014 + + +def test_mmhash3_unicode(): + assert murmurhash3_32("foo", 0) == -156908512 + assert murmurhash3_32("foo", 42) == -1322301282 + + assert murmurhash3_32("foo", 0, positive=True) == 4138058784 + assert murmurhash3_32("foo", 42, positive=True) == 2972666014 + + +def test_no_collision_on_byte_range(): + previous_hashes = set() + for i in range(100): + h = murmurhash3_32(" " * i, 0) + assert h not in previous_hashes, "Found collision on growing empty string" + + +def test_uniform_distribution(): + n_bins, n_samples = 10, 100000 + bins = np.zeros(n_bins, dtype=np.float64) + + for i in range(n_samples): + bins[murmurhash3_32(i, positive=True) % n_bins] += 1 + + means = bins / n_samples + expected = np.full(n_bins, 1.0 / n_bins) + + assert_array_almost_equal(means / expected, np.ones(n_bins), 2) diff --git a/shared/package-files/6f/6fe5e5732b9622326abd8fb55049f7f05076b6e195daa95af094398c6b3bebb4/lalr_analysis.py b/shared/package-files/6f/6fe5e5732b9622326abd8fb55049f7f05076b6e195daa95af094398c6b3bebb4/lalr_analysis.py new file mode 100644 index 0000000000000000000000000000000000000000..ce4091f58a47a1677ce496999bebd41470155ac5 --- /dev/null +++ b/shared/package-files/6f/6fe5e5732b9622326abd8fb55049f7f05076b6e195daa95af094398c6b3bebb4/lalr_analysis.py @@ -0,0 +1,332 @@ +"""This module builds a LALR(1) transition-table for lalr_parser.py + +For now, shift/reduce conflicts are automatically resolved as shifts. +""" + +# Author: Erez Shinan (2017) +# Email : erezshin@gmail.com + +from typing import Dict, Set, Iterator, Tuple, List, TypeVar, Generic +from collections import defaultdict + +from ..utils import classify, classify_bool, bfs, fzset, Enumerator, logger +from ..exceptions import GrammarError + +from .grammar_analysis import GrammarAnalyzer, Terminal, LR0ItemSet, RulePtr, State +from ..grammar import Rule, Symbol +from ..common import ParserConf + +###{standalone + +class Action: + def __init__(self, name): + self.name = name + def __str__(self): + return self.name + def __repr__(self): + return str(self) + +Shift = Action('Shift') +Reduce = Action('Reduce') + +StateT = TypeVar("StateT") + +class ParseTableBase(Generic[StateT]): + states: Dict[StateT, Dict[str, Tuple]] + start_states: Dict[str, StateT] + end_states: Dict[str, StateT] + + def __init__(self, states, start_states, end_states): + self.states = states + self.start_states = start_states + self.end_states = end_states + + def serialize(self, memo): + tokens = Enumerator() + + states = { + state: {tokens.get(token): ((1, arg.serialize(memo)) if action is Reduce else (0, arg)) + for token, (action, arg) in actions.items()} + for state, actions in self.states.items() + } + + return { + 'tokens': tokens.reversed(), + 'states': states, + 'start_states': self.start_states, + 'end_states': self.end_states, + } + + @classmethod + def deserialize(cls, data, memo): + tokens = data['tokens'] + states = { + state: {tokens[token]: ((Reduce, Rule.deserialize(arg, memo)) if action==1 else (Shift, arg)) + for token, (action, arg) in actions.items()} + for state, actions in data['states'].items() + } + return cls(states, data['start_states'], data['end_states']) + +class ParseTable(ParseTableBase['State']): + """Parse-table whose key is State, i.e. set[RulePtr] + + Slower than IntParseTable, but useful for debugging + """ + pass + + +class IntParseTable(ParseTableBase[int]): + """Parse-table whose key is int. Best for performance.""" + + @classmethod + def from_ParseTable(cls, parse_table: ParseTable): + enum = list(parse_table.states) + state_to_idx: Dict['State', int] = {s:i for i,s in enumerate(enum)} + int_states = {} + + for s, la in parse_table.states.items(): + la = {k:(v[0], state_to_idx[v[1]]) if v[0] is Shift else v + for k,v in la.items()} + int_states[ state_to_idx[s] ] = la + + + start_states = {start:state_to_idx[s] for start, s in parse_table.start_states.items()} + end_states = {start:state_to_idx[s] for start, s in parse_table.end_states.items()} + return cls(int_states, start_states, end_states) + +###} + + +# digraph and traverse, see The Theory and Practice of Compiler Writing + +# computes F(x) = G(x) union (union { G(y) | x R y }) +# X: nodes +# R: relation (function mapping node -> list of nodes that satisfy the relation) +# G: set valued function +def digraph(X, R, G): + F = {} + S = [] + N = dict.fromkeys(X, 0) + for x in X: + # this is always true for the first iteration, but N[x] may be updated in traverse below + if N[x] == 0: + traverse(x, S, N, X, R, G, F) + return F + +# x: single node +# S: stack +# N: weights +# X: nodes +# R: relation (see above) +# G: set valued function +# F: set valued function we are computing (map of input -> output) +def traverse(x, S, N, X, R, G, F): + S.append(x) + d = len(S) + N[x] = d + F[x] = G[x] + for y in R[x]: + if N[y] == 0: + traverse(y, S, N, X, R, G, F) + n_x = N[x] + assert(n_x > 0) + n_y = N[y] + assert(n_y != 0) + if (n_y > 0) and (n_y < n_x): + N[x] = n_y + F[x].update(F[y]) + if N[x] == d: + f_x = F[x] + while True: + z = S.pop() + N[z] = -1 + F[z] = f_x + if z == x: + break + + +class LALR_Analyzer(GrammarAnalyzer): + lr0_itemsets: Set[LR0ItemSet] + nonterminal_transitions: List[Tuple[LR0ItemSet, Symbol]] + lookback: Dict[Tuple[LR0ItemSet, Symbol], Set[Tuple[LR0ItemSet, Rule]]] + includes: Dict[Tuple[LR0ItemSet, Symbol], Set[Tuple[LR0ItemSet, Symbol]]] + reads: Dict[Tuple[LR0ItemSet, Symbol], Set[Tuple[LR0ItemSet, Symbol]]] + directly_reads: Dict[Tuple[LR0ItemSet, Symbol], Set[Symbol]] + + + def __init__(self, parser_conf: ParserConf, debug: bool=False, strict: bool=False): + GrammarAnalyzer.__init__(self, parser_conf, debug, strict) + self.nonterminal_transitions = [] + self.directly_reads = defaultdict(set) + self.reads = defaultdict(set) + self.includes = defaultdict(set) + self.lookback = defaultdict(set) + + + def compute_lr0_states(self) -> None: + self.lr0_itemsets = set() + # map of kernels to LR0ItemSets + cache: Dict['State', LR0ItemSet] = {} + + def step(state: LR0ItemSet) -> Iterator[LR0ItemSet]: + _, unsat = classify_bool(state.closure, lambda rp: rp.is_satisfied) + + d = classify(unsat, lambda rp: rp.next) + for sym, rps in d.items(): + kernel = fzset({rp.advance(sym) for rp in rps}) + new_state = cache.get(kernel, None) + if new_state is None: + closure = set(kernel) + for rp in kernel: + if not rp.is_satisfied and not rp.next.is_term: + closure |= self.expand_rule(rp.next, self.lr0_rules_by_origin) + new_state = LR0ItemSet(kernel, closure) + cache[kernel] = new_state + + state.transitions[sym] = new_state + yield new_state + + self.lr0_itemsets.add(state) + + for _ in bfs(self.lr0_start_states.values(), step): + pass + + def compute_reads_relations(self): + # handle start state + for root in self.lr0_start_states.values(): + assert(len(root.kernel) == 1) + for rp in root.kernel: + assert(rp.index == 0) + self.directly_reads[(root, rp.next)] = set([ Terminal('$END') ]) + + for state in self.lr0_itemsets: + seen = set() + for rp in state.closure: + if rp.is_satisfied: + continue + s = rp.next + # if s is a not a nonterminal + if s not in self.lr0_rules_by_origin: + continue + if s in seen: + continue + seen.add(s) + nt = (state, s) + self.nonterminal_transitions.append(nt) + dr = self.directly_reads[nt] + r = self.reads[nt] + next_state = state.transitions[s] + for rp2 in next_state.closure: + if rp2.is_satisfied: + continue + s2 = rp2.next + # if s2 is a terminal + if s2 not in self.lr0_rules_by_origin: + dr.add(s2) + if s2 in self.NULLABLE: + r.add((next_state, s2)) + + def compute_includes_lookback(self): + for nt in self.nonterminal_transitions: + state, nonterminal = nt + includes = [] + lookback = self.lookback[nt] + for rp in state.closure: + if rp.rule.origin != nonterminal: + continue + # traverse the states for rp(.rule) + state2 = state + for i in range(rp.index, len(rp.rule.expansion)): + s = rp.rule.expansion[i] + nt2 = (state2, s) + state2 = state2.transitions[s] + if nt2 not in self.reads: + continue + for j in range(i + 1, len(rp.rule.expansion)): + if rp.rule.expansion[j] not in self.NULLABLE: + break + else: + includes.append(nt2) + # state2 is at the final state for rp.rule + if rp.index == 0: + for rp2 in state2.closure: + if (rp2.rule == rp.rule) and rp2.is_satisfied: + lookback.add((state2, rp2.rule)) + for nt2 in includes: + self.includes[nt2].add(nt) + + def compute_lookaheads(self): + read_sets = digraph(self.nonterminal_transitions, self.reads, self.directly_reads) + follow_sets = digraph(self.nonterminal_transitions, self.includes, read_sets) + + for nt, lookbacks in self.lookback.items(): + for state, rule in lookbacks: + for s in follow_sets[nt]: + state.lookaheads[s].add(rule) + + def compute_lalr1_states(self) -> None: + m: Dict[LR0ItemSet, Dict[str, Tuple]] = {} + reduce_reduce = [] + for itemset in self.lr0_itemsets: + actions: Dict[Symbol, Tuple] = {la: (Shift, next_state.closure) + for la, next_state in itemset.transitions.items()} + for la, rules in itemset.lookaheads.items(): + if len(rules) > 1: + # Try to resolve conflict based on priority + p = [(r.options.priority or 0, r) for r in rules] + p.sort(key=lambda r: r[0], reverse=True) + best, second_best = p[:2] + if best[0] > second_best[0]: + rules = {best[1]} + else: + reduce_reduce.append((itemset, la, rules)) + continue + + rule ,= rules + if la in actions: + if self.strict: + raise GrammarError(f"Shift/Reduce conflict for terminal {la.name}. [strict-mode]\n ") + elif self.debug: + logger.warning('Shift/Reduce conflict for terminal %s: (resolving as shift)', la.name) + logger.warning(' * %s', rule) + else: + logger.debug('Shift/Reduce conflict for terminal %s: (resolving as shift)', la.name) + logger.debug(' * %s', rule) + else: + actions[la] = (Reduce, rule) + m[itemset] = { k.name: v for k, v in actions.items() } + + if reduce_reduce: + msgs = [] + for itemset, la, rules in reduce_reduce: + msg = 'Reduce/Reduce collision in %s between the following rules: %s' % (la, ''.join([ '\n\t- ' + str(r) for r in rules ])) + if self.debug: + msg += '\n collision occurred in state: {%s\n }' % ''.join(['\n\t' + str(x) for x in itemset.closure]) + msgs.append(msg) + raise GrammarError('\n\n'.join(msgs)) + + states = { k.closure: v for k, v in m.items() } + + # compute end states + end_states: Dict[str, 'State'] = {} + for state in states: + for rp in state: + for start in self.lr0_start_states: + if rp.rule.origin.name == ('$root_' + start) and rp.is_satisfied: + assert start not in end_states + end_states[start] = state + + start_states = { start: state.closure for start, state in self.lr0_start_states.items() } + _parse_table = ParseTable(states, start_states, end_states) + + if self.debug: + self.parse_table = _parse_table + else: + self.parse_table = IntParseTable.from_ParseTable(_parse_table) + + def compute_lalr(self): + self.compute_lr0_states() + self.compute_reads_relations() + self.compute_includes_lookback() + self.compute_lookaheads() + self.compute_lalr1_states() diff --git a/shared/package-files/6f/6fe87cde387954ae0b3a5e1e00f25c936471dbb973f08e7139584a67685de8c1/script_type_parser.h b/shared/package-files/6f/6fe87cde387954ae0b3a5e1e00f25c936471dbb973f08e7139584a67685de8c1/script_type_parser.h new file mode 100644 index 0000000000000000000000000000000000000000..3a05af9c598abdfa7e71d8ab90d668031023a829 --- /dev/null +++ b/shared/package-files/6f/6fe87cde387954ae0b3a5e1e00f25c936471dbb973f08e7139584a67685de8c1/script_type_parser.h @@ -0,0 +1,55 @@ +#pragma once +#include +#include +#include +#include + +namespace torch { +namespace jit { + +/** + * class ScriptTypeParser + * + * Parses expressions in our typed AST format (TreeView) into types and + * typenames. + */ +class TORCH_API ScriptTypeParser { + public: + explicit ScriptTypeParser() = default; + explicit ScriptTypeParser(ResolverPtr resolver) + : resolver_(std::move(resolver)) {} + + c10::TypePtr parseTypeFromExpr(const Expr& expr) const; + + c10::optional> parseBroadcastList( + const Expr& expr) const; + + c10::TypePtr parseType(const std::string& str); + + FunctionSchema parseSchemaFromDef(const Def& def, bool skip_self); + + c10::IValue parseClassConstant(const Assign& assign); + + private: + c10::TypePtr parseTypeFromExprImpl(const Expr& expr) const; + + c10::optional parseBaseTypeName(const Expr& expr) const; + at::TypePtr subscriptToType( + const std::string& typeName, + const Subscript& subscript) const; + std::vector evaluateDefaults( + const SourceRange& r, + const std::vector& default_types, + const std::vector& default_exprs); + std::vector parseArgsFromDecl(const Decl& decl, bool skip_self); + + std::vector parseReturnFromDecl(const Decl& decl); + + ResolverPtr resolver_ = nullptr; + + // Need to use `evaluateDefaults` in serialization + friend struct ConstantTableValue; + friend struct SourceImporterImpl; +}; +} // namespace jit +} // namespace torch diff --git a/shared/package-files/6f/6fe8884ec641ab0062f34cd0baf02d9efad23dafe6537357ca9e4637256f0512/__init__.py b/shared/package-files/6f/6fe8884ec641ab0062f34cd0baf02d9efad23dafe6537357ca9e4637256f0512/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..dffd27ca9e75c758c093eeacdfd528ff13c213e7 --- /dev/null +++ b/shared/package-files/6f/6fe8884ec641ab0062f34cd0baf02d9efad23dafe6537357ca9e4637256f0512/__init__.py @@ -0,0 +1,17 @@ +# Copyright (C) 2012 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause +""" +Models are data transfer objects or "light-weight" domain objects with no appreciable logic +other than their own validation. Models are used to pass data between layers of the stack. In +many ways they are similar to ORM objects. Unlike ORM objects, they are NOT themselves allowed +to load data from a remote resource. Thought of another way, they cannot import from +``conda.gateways``, but rather ``conda.gateways`` imports from ``conda.models`` as appropriate +to create model objects from remote resources. + +Conda modules importable from ``conda.models`` are + +- ``conda._vendor`` +- ``conda.common`` +- ``conda.models`` + +""" diff --git a/shared/package-files/6f/6fe88badb690ddf370f8c560a9286f60544ac50862576b33fa47576ab58d9e14/_classification.py b/shared/package-files/6f/6fe88badb690ddf370f8c560a9286f60544ac50862576b33fa47576ab58d9e14/_classification.py new file mode 100644 index 0000000000000000000000000000000000000000..06503046790beacc11e0a40df39ec9aeb89d0cac --- /dev/null +++ b/shared/package-files/6f/6fe88badb690ddf370f8c560a9286f60544ac50862576b33fa47576ab58d9e14/_classification.py @@ -0,0 +1,3730 @@ +"""Metrics to assess performance on classification task given class prediction. + +Functions named as ``*_score`` return a scalar value to maximize: the higher +the better. + +Function named as ``*_error`` or ``*_loss`` return a scalar value to minimize: +the lower the better. +""" + +# Authors: The scikit-learn developers +# SPDX-License-Identifier: BSD-3-Clause + +import warnings +from numbers import Integral, Real + +import numpy as np +from scipy.sparse import coo_matrix, csr_matrix, issparse +from scipy.special import xlogy + +from ..exceptions import UndefinedMetricWarning +from ..preprocessing import LabelBinarizer, LabelEncoder +from ..utils import ( + assert_all_finite, + check_array, + check_consistent_length, + check_scalar, + column_or_1d, +) +from ..utils._array_api import ( + _average, + _bincount, + _count_nonzero, + _find_matching_floating_dtype, + _is_numpy_namespace, + _max_precision_float_dtype, + _searchsorted, + _tolist, + _union1d, + get_namespace, + get_namespace_and_device, + xpx, +) +from ..utils._param_validation import ( + Hidden, + Interval, + Options, + StrOptions, + validate_params, +) +from ..utils._unique import attach_unique +from ..utils.extmath import _nanaverage +from ..utils.multiclass import type_of_target, unique_labels +from ..utils.validation import ( + _check_pos_label_consistency, + _check_sample_weight, + _num_samples, +) + + +def _check_zero_division(zero_division): + if isinstance(zero_division, str) and zero_division == "warn": + return np.float64(0.0) + elif isinstance(zero_division, (int, float)) and zero_division in [0, 1]: + return np.float64(zero_division) + else: # np.isnan(zero_division) + return np.nan + + +def _check_targets(y_true, y_pred): + """Check that y_true and y_pred belong to the same classification task. + + This converts multiclass or binary types to a common shape, and raises a + ValueError for a mix of multilabel and multiclass targets, a mix of + multilabel formats, for the presence of continuous-valued or multioutput + targets, or for targets of different lengths. + + Column vectors are squeezed to 1d, while multilabel formats are returned + as CSR sparse label indicators. + + Parameters + ---------- + y_true : array-like + + y_pred : array-like + + Returns + ------- + type_true : one of {'multilabel-indicator', 'multiclass', 'binary'} + The type of the true target data, as output by + ``utils.multiclass.type_of_target``. + + y_true : array or indicator matrix + + y_pred : array or indicator matrix + """ + xp, _ = get_namespace(y_true, y_pred) + check_consistent_length(y_true, y_pred) + type_true = type_of_target(y_true, input_name="y_true") + type_pred = type_of_target(y_pred, input_name="y_pred") + + y_type = {type_true, type_pred} + if y_type == {"binary", "multiclass"}: + y_type = {"multiclass"} + + if len(y_type) > 1: + raise ValueError( + "Classification metrics can't handle a mix of {0} and {1} targets".format( + type_true, type_pred + ) + ) + + # We can't have more than one value on y_type => The set is no more needed + y_type = y_type.pop() + + # No metrics support "multiclass-multioutput" format + if y_type not in ["binary", "multiclass", "multilabel-indicator"]: + raise ValueError("{0} is not supported".format(y_type)) + + if y_type in ["binary", "multiclass"]: + xp, _ = get_namespace(y_true, y_pred) + y_true = column_or_1d(y_true) + y_pred = column_or_1d(y_pred) + if y_type == "binary": + try: + unique_values = _union1d(y_true, y_pred, xp) + except TypeError as e: + # We expect y_true and y_pred to be of the same data type. + # If `y_true` was provided to the classifier as strings, + # `y_pred` given by the classifier will also be encoded with + # strings. So we raise a meaningful error + raise TypeError( + "Labels in y_true and y_pred should be of the same type. " + f"Got y_true={xp.unique(y_true)} and " + f"y_pred={xp.unique(y_pred)}. Make sure that the " + "predictions provided by the classifier coincides with " + "the true labels." + ) from e + if unique_values.shape[0] > 2: + y_type = "multiclass" + + if y_type.startswith("multilabel"): + if _is_numpy_namespace(xp): + # XXX: do we really want to sparse-encode multilabel indicators when + # they are passed as a dense arrays? This is not possible for array + # API inputs in general hence we only do it for NumPy inputs. But even + # for NumPy the usefulness is questionable. + y_true = csr_matrix(y_true) + y_pred = csr_matrix(y_pred) + y_type = "multilabel-indicator" + + return y_type, y_true, y_pred + + +def _validate_multiclass_probabilistic_prediction( + y_true, y_prob, sample_weight, labels +): + r"""Convert y_true and y_prob to shape (n_samples, n_classes) + + 1. Verify that y_true, y_prob, and sample_weights have the same first dim + 2. Ensure 2 or more classes in y_true i.e. valid classification task. The + classes are provided by the labels argument, or inferred using y_true. + When inferring y_true is assumed binary if it has shape (n_samples, ). + 3. Validate y_true, and y_prob have the same number of classes. Convert to + shape (n_samples, n_classes) + + Parameters + ---------- + y_true : array-like or label indicator matrix + Ground truth (correct) labels for n_samples samples. + + y_prob : array-like of float, shape=(n_samples, n_classes) or (n_samples,) + Predicted probabilities, as returned by a classifier's + predict_proba method. If `y_prob.shape = (n_samples,)` + the probabilities provided are assumed to be that of the + positive class. The labels in `y_prob` are assumed to be + ordered lexicographically, as done by + :class:`preprocessing.LabelBinarizer`. + + sample_weight : array-like of shape (n_samples,), default=None + Sample weights. + + labels : array-like, default=None + If not provided, labels will be inferred from y_true. If `labels` + is `None` and `y_prob` has shape `(n_samples,)` the labels are + assumed to be binary and are inferred from `y_true`. + + Returns + ------- + transformed_labels : array of shape (n_samples, n_classes) + + y_prob : array of shape (n_samples, n_classes) + """ + y_prob = check_array( + y_prob, ensure_2d=False, dtype=[np.float64, np.float32, np.float16] + ) + + if y_prob.max() > 1: + raise ValueError(f"y_prob contains values greater than 1: {y_prob.max()}") + if y_prob.min() < 0: + raise ValueError(f"y_prob contains values lower than 0: {y_prob.min()}") + + check_consistent_length(y_prob, y_true, sample_weight) + lb = LabelBinarizer() + + if labels is not None: + lb = lb.fit(labels) + # LabelBinarizer does not respect the order implied by labels, which + # can be misleading. + if not np.all(lb.classes_ == labels): + warnings.warn( + f"Labels passed were {labels}. But this function " + "assumes labels are ordered lexicographically. " + f"Pass the ordered labels={lb.classes_.tolist()} and ensure that " + "the columns of y_prob correspond to this ordering.", + UserWarning, + ) + if not np.isin(y_true, labels).all(): + undeclared_labels = set(y_true) - set(labels) + raise ValueError( + f"y_true contains values {undeclared_labels} not belonging " + f"to the passed labels {labels}." + ) + + else: + lb = lb.fit(y_true) + + if len(lb.classes_) == 1: + if labels is None: + raise ValueError( + "y_true contains only one label ({0}). Please " + "provide the list of all expected class labels explicitly through the " + "labels argument.".format(lb.classes_[0]) + ) + else: + raise ValueError( + "The labels array needs to contain at least two " + "labels, got {0}.".format(lb.classes_) + ) + + transformed_labels = lb.transform(y_true) + + if transformed_labels.shape[1] == 1: + transformed_labels = np.append( + 1 - transformed_labels, transformed_labels, axis=1 + ) + + # If y_prob is of single dimension, assume y_true to be binary + # and then check. + if y_prob.ndim == 1: + y_prob = y_prob[:, np.newaxis] + if y_prob.shape[1] == 1: + y_prob = np.append(1 - y_prob, y_prob, axis=1) + + eps = np.finfo(y_prob.dtype).eps + + # Make sure y_prob is normalized + y_prob_sum = y_prob.sum(axis=1) + if not np.allclose(y_prob_sum, 1, rtol=np.sqrt(eps)): + warnings.warn( + "The y_prob values do not sum to one. Make sure to pass probabilities.", + UserWarning, + ) + + # Check if dimensions are consistent. + transformed_labels = check_array(transformed_labels) + if len(lb.classes_) != y_prob.shape[1]: + if labels is None: + raise ValueError( + "y_true and y_prob contain different number of " + "classes: {0} vs {1}. Please provide the true " + "labels explicitly through the labels argument. " + "Classes found in " + "y_true: {2}".format( + transformed_labels.shape[1], y_prob.shape[1], lb.classes_ + ) + ) + else: + raise ValueError( + "The number of classes in labels is different " + "from that in y_prob. Classes found in " + "labels: {0}".format(lb.classes_) + ) + + return transformed_labels, y_prob + + +@validate_params( + { + "y_true": ["array-like", "sparse matrix"], + "y_pred": ["array-like", "sparse matrix"], + "normalize": ["boolean"], + "sample_weight": ["array-like", None], + }, + prefer_skip_nested_validation=True, +) +def accuracy_score(y_true, y_pred, *, normalize=True, sample_weight=None): + """Accuracy classification score. + + In multilabel classification, this function computes subset accuracy: + the set of labels predicted for a sample must *exactly* match the + corresponding set of labels in y_true. + + Read more in the :ref:`User Guide `. + + Parameters + ---------- + y_true : 1d array-like, or label indicator array / sparse matrix + Ground truth (correct) labels. + + y_pred : 1d array-like, or label indicator array / sparse matrix + Predicted labels, as returned by a classifier. + + normalize : bool, default=True + If ``False``, return the number of correctly classified samples. + Otherwise, return the fraction of correctly classified samples. + + sample_weight : array-like of shape (n_samples,), default=None + Sample weights. + + Returns + ------- + score : float or int + If ``normalize == True``, return the fraction of correctly + classified samples (float), else returns the number of correctly + classified samples (int). + + The best performance is 1 with ``normalize == True`` and the number + of samples with ``normalize == False``. + + See Also + -------- + balanced_accuracy_score : Compute the balanced accuracy to deal with + imbalanced datasets. + jaccard_score : Compute the Jaccard similarity coefficient score. + hamming_loss : Compute the average Hamming loss or Hamming distance between + two sets of samples. + zero_one_loss : Compute the Zero-one classification loss. By default, the + function will return the percentage of imperfectly predicted subsets. + + Examples + -------- + >>> from sklearn.metrics import accuracy_score + >>> y_pred = [0, 2, 1, 3] + >>> y_true = [0, 1, 2, 3] + >>> accuracy_score(y_true, y_pred) + 0.5 + >>> accuracy_score(y_true, y_pred, normalize=False) + 2.0 + + In the multilabel case with binary label indicators: + + >>> import numpy as np + >>> accuracy_score(np.array([[0, 1], [1, 1]]), np.ones((2, 2))) + 0.5 + """ + xp, _, device = get_namespace_and_device(y_true, y_pred, sample_weight) + # Compute accuracy for each possible representation + y_true, y_pred = attach_unique(y_true, y_pred) + y_type, y_true, y_pred = _check_targets(y_true, y_pred) + check_consistent_length(y_true, y_pred, sample_weight) + + if y_type.startswith("multilabel"): + differing_labels = _count_nonzero(y_true - y_pred, xp=xp, device=device, axis=1) + score = xp.asarray(differing_labels == 0, device=device) + else: + score = y_true == y_pred + + return float(_average(score, weights=sample_weight, normalize=normalize)) + + +@validate_params( + { + "y_true": ["array-like"], + "y_pred": ["array-like"], + "labels": ["array-like", None], + "sample_weight": ["array-like", None], + "normalize": [StrOptions({"true", "pred", "all"}), None], + }, + prefer_skip_nested_validation=True, +) +def confusion_matrix( + y_true, y_pred, *, labels=None, sample_weight=None, normalize=None +): + """Compute confusion matrix to evaluate the accuracy of a classification. + + By definition a confusion matrix :math:`C` is such that :math:`C_{i, j}` + is equal to the number of observations known to be in group :math:`i` and + predicted to be in group :math:`j`. + + Thus in binary classification, the count of true negatives is + :math:`C_{0,0}`, false negatives is :math:`C_{1,0}`, true positives is + :math:`C_{1,1}` and false positives is :math:`C_{0,1}`. + + Read more in the :ref:`User Guide `. + + Parameters + ---------- + y_true : array-like of shape (n_samples,) + Ground truth (correct) target values. + + y_pred : array-like of shape (n_samples,) + Estimated targets as returned by a classifier. + + labels : array-like of shape (n_classes), default=None + List of labels to index the matrix. This may be used to reorder + or select a subset of labels. + If ``None`` is given, those that appear at least once + in ``y_true`` or ``y_pred`` are used in sorted order. + + sample_weight : array-like of shape (n_samples,), default=None + Sample weights. + + .. versionadded:: 0.18 + + normalize : {'true', 'pred', 'all'}, default=None + Normalizes confusion matrix over the true (rows), predicted (columns) + conditions or all the population. If None, confusion matrix will not be + normalized. + + Returns + ------- + C : ndarray of shape (n_classes, n_classes) + Confusion matrix whose i-th row and j-th + column entry indicates the number of + samples with true label being i-th class + and predicted label being j-th class. + + See Also + -------- + ConfusionMatrixDisplay.from_estimator : Plot the confusion matrix + given an estimator, the data, and the label. + ConfusionMatrixDisplay.from_predictions : Plot the confusion matrix + given the true and predicted labels. + ConfusionMatrixDisplay : Confusion Matrix visualization. + + References + ---------- + .. [1] `Wikipedia entry for the Confusion matrix + `_ + (Wikipedia and other references may use a different + convention for axes). + + Examples + -------- + >>> from sklearn.metrics import confusion_matrix + >>> y_true = [2, 0, 2, 2, 0, 1] + >>> y_pred = [0, 0, 2, 2, 0, 2] + >>> confusion_matrix(y_true, y_pred) + array([[2, 0, 0], + [0, 0, 1], + [1, 0, 2]]) + + >>> y_true = ["cat", "ant", "cat", "cat", "ant", "bird"] + >>> y_pred = ["ant", "ant", "cat", "cat", "ant", "cat"] + >>> confusion_matrix(y_true, y_pred, labels=["ant", "bird", "cat"]) + array([[2, 0, 0], + [0, 0, 1], + [1, 0, 2]]) + + In the binary case, we can extract true positives, etc. as follows: + + >>> tn, fp, fn, tp = confusion_matrix([0, 1, 0, 1], [1, 1, 1, 0]).ravel().tolist() + >>> (tn, fp, fn, tp) + (0, 2, 1, 1) + """ + y_true, y_pred = attach_unique(y_true, y_pred) + y_type, y_true, y_pred = _check_targets(y_true, y_pred) + if y_type not in ("binary", "multiclass"): + raise ValueError("%s is not supported" % y_type) + + if labels is None: + labels = unique_labels(y_true, y_pred) + else: + labels = np.asarray(labels) + n_labels = labels.size + if n_labels == 0: + raise ValueError("'labels' should contains at least one label.") + elif y_true.size == 0: + return np.zeros((n_labels, n_labels), dtype=int) + elif len(np.intersect1d(y_true, labels)) == 0: + raise ValueError("At least one label specified must be in y_true") + + if sample_weight is None: + sample_weight = np.ones(y_true.shape[0], dtype=np.int64) + else: + sample_weight = np.asarray(sample_weight) + + check_consistent_length(y_true, y_pred, sample_weight) + + n_labels = labels.size + # If labels are not consecutive integers starting from zero, then + # y_true and y_pred must be converted into index form + need_index_conversion = not ( + labels.dtype.kind in {"i", "u", "b"} + and np.all(labels == np.arange(n_labels)) + and y_true.min() >= 0 + and y_pred.min() >= 0 + ) + if need_index_conversion: + label_to_ind = {y: x for x, y in enumerate(labels)} + y_pred = np.array([label_to_ind.get(x, n_labels + 1) for x in y_pred]) + y_true = np.array([label_to_ind.get(x, n_labels + 1) for x in y_true]) + + # intersect y_pred, y_true with labels, eliminate items not in labels + ind = np.logical_and(y_pred < n_labels, y_true < n_labels) + if not np.all(ind): + y_pred = y_pred[ind] + y_true = y_true[ind] + # also eliminate weights of eliminated items + sample_weight = sample_weight[ind] + + # Choose the accumulator dtype to always have high precision + if sample_weight.dtype.kind in {"i", "u", "b"}: + dtype = np.int64 + else: + dtype = np.float64 + + cm = coo_matrix( + (sample_weight, (y_true, y_pred)), + shape=(n_labels, n_labels), + dtype=dtype, + ).toarray() + + with np.errstate(all="ignore"): + if normalize == "true": + cm = cm / cm.sum(axis=1, keepdims=True) + elif normalize == "pred": + cm = cm / cm.sum(axis=0, keepdims=True) + elif normalize == "all": + cm = cm / cm.sum() + cm = np.nan_to_num(cm) + + if cm.shape == (1, 1): + warnings.warn( + ( + "A single label was found in 'y_true' and 'y_pred'. For the confusion " + "matrix to have the correct shape, use the 'labels' parameter to pass " + "all known labels." + ), + UserWarning, + ) + + return cm + + +@validate_params( + { + "y_true": ["array-like", "sparse matrix"], + "y_pred": ["array-like", "sparse matrix"], + "sample_weight": ["array-like", None], + "labels": ["array-like", None], + "samplewise": ["boolean"], + }, + prefer_skip_nested_validation=True, +) +def multilabel_confusion_matrix( + y_true, y_pred, *, sample_weight=None, labels=None, samplewise=False +): + """Compute a confusion matrix for each class or sample. + + .. versionadded:: 0.21 + + Compute class-wise (default) or sample-wise (samplewise=True) multilabel + confusion matrix to evaluate the accuracy of a classification, and output + confusion matrices for each class or sample. + + In multilabel confusion matrix :math:`MCM`, the count of true negatives + is :math:`MCM_{:,0,0}`, false negatives is :math:`MCM_{:,1,0}`, + true positives is :math:`MCM_{:,1,1}` and false positives is + :math:`MCM_{:,0,1}`. + + Multiclass data will be treated as if binarized under a one-vs-rest + transformation. Returned confusion matrices will be in the order of + sorted unique labels in the union of (y_true, y_pred). + + Read more in the :ref:`User Guide `. + + Parameters + ---------- + y_true : {array-like, sparse matrix} of shape (n_samples, n_outputs) or \ + (n_samples,) + Ground truth (correct) target values. + + y_pred : {array-like, sparse matrix} of shape (n_samples, n_outputs) or \ + (n_samples,) + Estimated targets as returned by a classifier. + + sample_weight : array-like of shape (n_samples,), default=None + Sample weights. + + labels : array-like of shape (n_classes,), default=None + A list of classes or column indices to select some (or to force + inclusion of classes absent from the data). + + samplewise : bool, default=False + In the multilabel case, this calculates a confusion matrix per sample. + + Returns + ------- + multi_confusion : ndarray of shape (n_outputs, 2, 2) + A 2x2 confusion matrix corresponding to each output in the input. + When calculating class-wise multi_confusion (default), then + n_outputs = n_labels; when calculating sample-wise multi_confusion + (samplewise=True), n_outputs = n_samples. If ``labels`` is defined, + the results will be returned in the order specified in ``labels``, + otherwise the results will be returned in sorted order by default. + + See Also + -------- + confusion_matrix : Compute confusion matrix to evaluate the accuracy of a + classifier. + + Notes + ----- + The `multilabel_confusion_matrix` calculates class-wise or sample-wise + multilabel confusion matrices, and in multiclass tasks, labels are + binarized under a one-vs-rest way; while + :func:`~sklearn.metrics.confusion_matrix` calculates one confusion matrix + for confusion between every two classes. + + Examples + -------- + Multilabel-indicator case: + + >>> import numpy as np + >>> from sklearn.metrics import multilabel_confusion_matrix + >>> y_true = np.array([[1, 0, 1], + ... [0, 1, 0]]) + >>> y_pred = np.array([[1, 0, 0], + ... [0, 1, 1]]) + >>> multilabel_confusion_matrix(y_true, y_pred) + array([[[1, 0], + [0, 1]], + + [[1, 0], + [0, 1]], + + [[0, 1], + [1, 0]]]) + + Multiclass case: + + >>> y_true = ["cat", "ant", "cat", "cat", "ant", "bird"] + >>> y_pred = ["ant", "ant", "cat", "cat", "ant", "cat"] + >>> multilabel_confusion_matrix(y_true, y_pred, + ... labels=["ant", "bird", "cat"]) + array([[[3, 1], + [0, 2]], + + [[5, 0], + [1, 0]], + + [[2, 1], + [1, 2]]]) + """ + y_true, y_pred = attach_unique(y_true, y_pred) + xp, _, device_ = get_namespace_and_device(y_true, y_pred) + y_type, y_true, y_pred = _check_targets(y_true, y_pred) + if sample_weight is not None: + sample_weight = column_or_1d(sample_weight, device=device_) + check_consistent_length(y_true, y_pred, sample_weight) + + if y_type not in ("binary", "multiclass", "multilabel-indicator"): + raise ValueError("%s is not supported" % y_type) + + present_labels = unique_labels(y_true, y_pred) + if labels is None: + labels = present_labels + n_labels = None + else: + labels = xp.asarray(labels, device=device_) + n_labels = labels.shape[0] + labels = xp.concat( + [labels, xpx.setdiff1d(present_labels, labels, assume_unique=True, xp=xp)], + axis=-1, + ) + + if y_true.ndim == 1: + if samplewise: + raise ValueError( + "Samplewise metrics are not available outside of " + "multilabel classification." + ) + + le = LabelEncoder() + le.fit(labels) + y_true = le.transform(y_true) + y_pred = le.transform(y_pred) + sorted_labels = le.classes_ + + # labels are now from 0 to len(labels) - 1 -> use bincount + tp = y_true == y_pred + tp_bins = y_true[tp] + if sample_weight is not None: + tp_bins_weights = sample_weight[tp] + else: + tp_bins_weights = None + + if tp_bins.shape[0]: + tp_sum = _bincount( + tp_bins, weights=tp_bins_weights, minlength=labels.shape[0], xp=xp + ) + else: + # Pathological case + true_sum = pred_sum = tp_sum = xp.zeros(labels.shape[0]) + if y_pred.shape[0]: + pred_sum = _bincount( + y_pred, weights=sample_weight, minlength=labels.shape[0], xp=xp + ) + if y_true.shape[0]: + true_sum = _bincount( + y_true, weights=sample_weight, minlength=labels.shape[0], xp=xp + ) + + # Retain only selected labels + indices = _searchsorted(sorted_labels, labels[:n_labels], xp=xp) + tp_sum = xp.take(tp_sum, indices, axis=0) + true_sum = xp.take(true_sum, indices, axis=0) + pred_sum = xp.take(pred_sum, indices, axis=0) + + else: + sum_axis = 1 if samplewise else 0 + + # All labels are index integers for multilabel. + # Select labels: + if labels.shape != present_labels.shape or xp.any( + xp.not_equal(labels, present_labels) + ): + if xp.max(labels) > xp.max(present_labels): + raise ValueError( + "All labels must be in [0, n labels) for " + "multilabel targets. " + "Got %d > %d" % (xp.max(labels), xp.max(present_labels)) + ) + if xp.min(labels) < 0: + raise ValueError( + "All labels must be in [0, n labels) for " + "multilabel targets. " + "Got %d < 0" % xp.min(labels) + ) + + if n_labels is not None: + y_true = y_true[:, labels[:n_labels]] + y_pred = y_pred[:, labels[:n_labels]] + + if issparse(y_true) or issparse(y_pred): + true_and_pred = y_true.multiply(y_pred) + else: + true_and_pred = xp.multiply(y_true, y_pred) + + # calculate weighted counts + tp_sum = _count_nonzero( + true_and_pred, + axis=sum_axis, + sample_weight=sample_weight, + xp=xp, + device=device_, + ) + pred_sum = _count_nonzero( + y_pred, + axis=sum_axis, + sample_weight=sample_weight, + xp=xp, + device=device_, + ) + true_sum = _count_nonzero( + y_true, + axis=sum_axis, + sample_weight=sample_weight, + xp=xp, + device=device_, + ) + + fp = pred_sum - tp_sum + fn = true_sum - tp_sum + tp = tp_sum + + if sample_weight is not None and samplewise: + tp = xp.asarray(tp) + fp = xp.asarray(fp) + fn = xp.asarray(fn) + tn = sample_weight * y_true.shape[1] - tp - fp - fn + elif sample_weight is not None: + tn = xp.sum(sample_weight) - tp - fp - fn + elif samplewise: + tn = y_true.shape[1] - tp - fp - fn + else: + tn = y_true.shape[0] - tp - fp - fn + + return xp.reshape(xp.stack([tn, fp, fn, tp]).T, (-1, 2, 2)) + + +@validate_params( + { + "y1": ["array-like"], + "y2": ["array-like"], + "labels": ["array-like", None], + "weights": [StrOptions({"linear", "quadratic"}), None], + "sample_weight": ["array-like", None], + }, + prefer_skip_nested_validation=True, +) +def cohen_kappa_score(y1, y2, *, labels=None, weights=None, sample_weight=None): + r"""Compute Cohen's kappa: a statistic that measures inter-annotator agreement. + + This function computes Cohen's kappa [1]_, a score that expresses the level + of agreement between two annotators on a classification problem. It is + defined as + + .. math:: + \kappa = (p_o - p_e) / (1 - p_e) + + where :math:`p_o` is the empirical probability of agreement on the label + assigned to any sample (the observed agreement ratio), and :math:`p_e` is + the expected agreement when both annotators assign labels randomly. + :math:`p_e` is estimated using a per-annotator empirical prior over the + class labels [2]_. + + Read more in the :ref:`User Guide `. + + Parameters + ---------- + y1 : array-like of shape (n_samples,) + Labels assigned by the first annotator. + + y2 : array-like of shape (n_samples,) + Labels assigned by the second annotator. The kappa statistic is + symmetric, so swapping ``y1`` and ``y2`` doesn't change the value. + + labels : array-like of shape (n_classes,), default=None + List of labels to index the matrix. This may be used to select a + subset of labels. If `None`, all labels that appear at least once in + ``y1`` or ``y2`` are used. Note that at least one label in `labels` must be + present in `y1`, even though this function is otherwise agnostic to the order + of `y1` and `y2`. + + weights : {'linear', 'quadratic'}, default=None + Weighting type to calculate the score. `None` means not weighted; + "linear" means linear weighting; "quadratic" means quadratic weighting. + + sample_weight : array-like of shape (n_samples,), default=None + Sample weights. + + Returns + ------- + kappa : float + The kappa statistic, which is a number between -1 and 1. The maximum + value means complete agreement; zero or lower means chance agreement. + + References + ---------- + .. [1] :doi:`J. Cohen (1960). "A coefficient of agreement for nominal scales". + Educational and Psychological Measurement 20(1):37-46. + <10.1177/001316446002000104>` + .. [2] `R. Artstein and M. Poesio (2008). "Inter-coder agreement for + computational linguistics". Computational Linguistics 34(4):555-596 + `_. + .. [3] `Wikipedia entry for the Cohen's kappa + `_. + + Examples + -------- + >>> from sklearn.metrics import cohen_kappa_score + >>> y1 = ["negative", "positive", "negative", "neutral", "positive"] + >>> y2 = ["negative", "positive", "negative", "neutral", "negative"] + >>> cohen_kappa_score(y1, y2) + 0.6875 + """ + try: + confusion = confusion_matrix(y1, y2, labels=labels, sample_weight=sample_weight) + except ValueError as e: + if "At least one label specified must be in y_true" in str(e): + msg = ( + "At least one label in `labels` must be present in `y1` (even though " + "`cohen_kappa_score` is otherwise agnostic to the order of `y1` and " + "`y2`)." + ) + raise ValueError(msg) from e + raise + + n_classes = confusion.shape[0] + sum0 = np.sum(confusion, axis=0) + sum1 = np.sum(confusion, axis=1) + expected = np.outer(sum0, sum1) / np.sum(sum0) + + if weights is None: + w_mat = np.ones([n_classes, n_classes], dtype=int) + w_mat.flat[:: n_classes + 1] = 0 + else: # "linear" or "quadratic" + w_mat = np.zeros([n_classes, n_classes], dtype=int) + w_mat += np.arange(n_classes) + if weights == "linear": + w_mat = np.abs(w_mat - w_mat.T) + else: + w_mat = (w_mat - w_mat.T) ** 2 + + k = np.sum(w_mat * confusion) / np.sum(w_mat * expected) + return float(1 - k) + + +@validate_params( + { + "y_true": ["array-like", "sparse matrix"], + "y_pred": ["array-like", "sparse matrix"], + "labels": ["array-like", None], + "pos_label": [Real, str, "boolean", None], + "average": [ + StrOptions({"micro", "macro", "samples", "weighted", "binary"}), + None, + ], + "sample_weight": ["array-like", None], + "zero_division": [ + Options(Real, {0, 1}), + StrOptions({"warn"}), + ], + }, + prefer_skip_nested_validation=True, +) +def jaccard_score( + y_true, + y_pred, + *, + labels=None, + pos_label=1, + average="binary", + sample_weight=None, + zero_division="warn", +): + """Jaccard similarity coefficient score. + + The Jaccard index [1], or Jaccard similarity coefficient, defined as + the size of the intersection divided by the size of the union of two label + sets, is used to compare set of predicted labels for a sample to the + corresponding set of labels in ``y_true``. + + Support beyond term:`binary` targets is achieved by treating :term:`multiclass` + and :term:`multilabel` data as a collection of binary problems, one for each + label. For the :term:`binary` case, setting `average='binary'` will return the + Jaccard similarity coefficient for `pos_label`. If `average` is not `'binary'`, + `pos_label` is ignored and scores for both classes are computed, then averaged or + both returned (when `average=None`). Similarly, for :term:`multiclass` and + :term:`multilabel` targets, scores for all `labels` are either returned or + averaged depending on the `average` parameter. Use `labels` specify the set of + labels to calculate the score for. + + Read more in the :ref:`User Guide `. + + Parameters + ---------- + y_true : 1d array-like, or label indicator array / sparse matrix + Ground truth (correct) labels. + + y_pred : 1d array-like, or label indicator array / sparse matrix + Predicted labels, as returned by a classifier. + + labels : array-like of shape (n_classes,), default=None + The set of labels to include when `average != 'binary'`, and their + order if `average is None`. Labels present in the data can be + excluded, for example in multiclass classification to exclude a "negative + class". Labels not present in the data can be included and will be + "assigned" 0 samples. For multilabel targets, labels are column indices. + By default, all labels in `y_true` and `y_pred` are used in sorted order. + + pos_label : int, float, bool or str, default=1 + The class to report if `average='binary'` and the data is binary, + otherwise this parameter is ignored. + For multiclass or multilabel targets, set `labels=[pos_label]` and + `average != 'binary'` to report metrics for one label only. + + average : {'micro', 'macro', 'samples', 'weighted', \ + 'binary'} or None, default='binary' + If ``None``, the scores for each class are returned. Otherwise, this + determines the type of averaging performed on the data: + + ``'binary'``: + Only report results for the class specified by ``pos_label``. + This is applicable only if targets (``y_{true,pred}``) are binary. + ``'micro'``: + Calculate metrics globally by counting the total true positives, + false negatives and false positives. + ``'macro'``: + Calculate metrics for each label, and find their unweighted + mean. This does not take label imbalance into account. + ``'weighted'``: + Calculate metrics for each label, and find their average, weighted + by support (the number of true instances for each label). This + alters 'macro' to account for label imbalance. + ``'samples'``: + Calculate metrics for each instance, and find their average (only + meaningful for multilabel classification). + + sample_weight : array-like of shape (n_samples,), default=None + Sample weights. + + zero_division : "warn", {0.0, 1.0}, default="warn" + Sets the value to return when there is a zero division, i.e. when there + there are no negative values in predictions and labels. If set to + "warn", this acts like 0, but a warning is also raised. + + .. versionadded:: 0.24 + + Returns + ------- + score : float or ndarray of shape (n_unique_labels,), dtype=np.float64 + The Jaccard score. When `average` is not `None`, a single scalar is + returned. + + See Also + -------- + accuracy_score : Function for calculating the accuracy score. + f1_score : Function for calculating the F1 score. + multilabel_confusion_matrix : Function for computing a confusion matrix\ + for each class or sample. + + Notes + ----- + :func:`jaccard_score` may be a poor metric if there are no + positives for some samples or classes. Jaccard is undefined if there are + no true or predicted labels, and our implementation will return a score + of 0 with a warning. + + References + ---------- + .. [1] `Wikipedia entry for the Jaccard index + `_. + + Examples + -------- + >>> import numpy as np + >>> from sklearn.metrics import jaccard_score + >>> y_true = np.array([[0, 1, 1], + ... [1, 1, 0]]) + >>> y_pred = np.array([[1, 1, 1], + ... [1, 0, 0]]) + + In the binary case: + + >>> jaccard_score(y_true[0], y_pred[0]) + 0.6666 + + In the 2D comparison case (e.g. image similarity): + + >>> jaccard_score(y_true, y_pred, average="micro") + 0.6 + + In the multilabel case: + + >>> jaccard_score(y_true, y_pred, average='samples') + 0.5833 + >>> jaccard_score(y_true, y_pred, average='macro') + 0.6666 + >>> jaccard_score(y_true, y_pred, average=None) + array([0.5, 0.5, 1. ]) + + In the multiclass case: + + >>> y_pred = [0, 2, 1, 2] + >>> y_true = [0, 1, 2, 2] + >>> jaccard_score(y_true, y_pred, average=None) + array([1. , 0. , 0.33]) + """ + labels = _check_set_wise_labels(y_true, y_pred, average, labels, pos_label) + samplewise = average == "samples" + MCM = multilabel_confusion_matrix( + y_true, + y_pred, + sample_weight=sample_weight, + labels=labels, + samplewise=samplewise, + ) + numerator = MCM[:, 1, 1] + denominator = MCM[:, 1, 1] + MCM[:, 0, 1] + MCM[:, 1, 0] + + xp, _, device_ = get_namespace_and_device(y_true, y_pred) + if average == "micro": + numerator = xp.asarray(xp.sum(numerator, keepdims=True), device=device_) + denominator = xp.asarray(xp.sum(denominator, keepdims=True), device=device_) + + jaccard = _prf_divide( + numerator, + denominator, + "jaccard", + "true or predicted", + average, + ("jaccard",), + zero_division=zero_division, + ) + if average is None: + return jaccard + if average == "weighted": + weights = MCM[:, 1, 0] + MCM[:, 1, 1] + if not xp.any(weights): + # numerator is 0, and warning should have already been issued + weights = None + elif average == "samples" and sample_weight is not None: + weights = sample_weight + else: + weights = None + return float(_average(jaccard, weights=weights, xp=xp)) + + +@validate_params( + { + "y_true": ["array-like"], + "y_pred": ["array-like"], + "sample_weight": ["array-like", None], + }, + prefer_skip_nested_validation=True, +) +def matthews_corrcoef(y_true, y_pred, *, sample_weight=None): + """Compute the Matthews correlation coefficient (MCC). + + The Matthews correlation coefficient is used in machine learning as a + measure of the quality of binary and multiclass classifications. It takes + into account true and false positives and negatives and is generally + regarded as a balanced measure which can be used even if the classes are of + very different sizes. The MCC is in essence a correlation coefficient value + between -1 and +1. A coefficient of +1 represents a perfect prediction, 0 + an average random prediction and -1 an inverse prediction. The statistic + is also known as the phi coefficient. [source: Wikipedia] + + Binary and multiclass labels are supported. Only in the binary case does + this relate to information about true and false positives and negatives. + See references below. + + Read more in the :ref:`User Guide `. + + Parameters + ---------- + y_true : array-like of shape (n_samples,) + Ground truth (correct) target values. + + y_pred : array-like of shape (n_samples,) + Estimated targets as returned by a classifier. + + sample_weight : array-like of shape (n_samples,), default=None + Sample weights. + + .. versionadded:: 0.18 + + Returns + ------- + mcc : float + The Matthews correlation coefficient (+1 represents a perfect + prediction, 0 an average random prediction and -1 and inverse + prediction). + + References + ---------- + .. [1] :doi:`Baldi, Brunak, Chauvin, Andersen and Nielsen, (2000). Assessing the + accuracy of prediction algorithms for classification: an overview. + <10.1093/bioinformatics/16.5.412>` + + .. [2] `Wikipedia entry for the Matthews Correlation Coefficient (phi coefficient) + `_. + + .. [3] `Gorodkin, (2004). Comparing two K-category assignments by a + K-category correlation coefficient + `_. + + .. [4] `Jurman, Riccadonna, Furlanello, (2012). A Comparison of MCC and CEN + Error Measures in MultiClass Prediction + `_. + + Examples + -------- + >>> from sklearn.metrics import matthews_corrcoef + >>> y_true = [+1, +1, +1, -1] + >>> y_pred = [+1, -1, +1, +1] + >>> matthews_corrcoef(y_true, y_pred) + -0.33 + """ + y_true, y_pred = attach_unique(y_true, y_pred) + y_type, y_true, y_pred = _check_targets(y_true, y_pred) + check_consistent_length(y_true, y_pred, sample_weight) + if y_type not in {"binary", "multiclass"}: + raise ValueError("%s is not supported" % y_type) + + lb = LabelEncoder() + lb.fit(np.hstack([y_true, y_pred])) + y_true = lb.transform(y_true) + y_pred = lb.transform(y_pred) + + C = confusion_matrix(y_true, y_pred, sample_weight=sample_weight) + t_sum = C.sum(axis=1, dtype=np.float64) + p_sum = C.sum(axis=0, dtype=np.float64) + n_correct = np.trace(C, dtype=np.float64) + n_samples = p_sum.sum() + cov_ytyp = n_correct * n_samples - np.dot(t_sum, p_sum) + cov_ypyp = n_samples**2 - np.dot(p_sum, p_sum) + cov_ytyt = n_samples**2 - np.dot(t_sum, t_sum) + + cov_ypyp_ytyt = cov_ypyp * cov_ytyt + if cov_ypyp_ytyt == 0: + return 0.0 + else: + return float(cov_ytyp / np.sqrt(cov_ypyp_ytyt)) + + +@validate_params( + { + "y_true": ["array-like", "sparse matrix"], + "y_pred": ["array-like", "sparse matrix"], + "normalize": ["boolean"], + "sample_weight": ["array-like", None], + }, + prefer_skip_nested_validation=True, +) +def zero_one_loss(y_true, y_pred, *, normalize=True, sample_weight=None): + """Zero-one classification loss. + + If normalize is ``True``, return the fraction of misclassifications + (float), else it returns the number of misclassifications (int). The best + performance is 0. + + Read more in the :ref:`User Guide `. + + Parameters + ---------- + y_true : 1d array-like, or label indicator array / sparse matrix + Ground truth (correct) labels. + + y_pred : 1d array-like, or label indicator array / sparse matrix + Predicted labels, as returned by a classifier. + + normalize : bool, default=True + If ``False``, return the number of misclassifications. + Otherwise, return the fraction of misclassifications. + + sample_weight : array-like of shape (n_samples,), default=None + Sample weights. + + Returns + ------- + loss : float or int, + If ``normalize == True``, return the fraction of misclassifications + (float), else it returns the number of misclassifications (int). + + See Also + -------- + accuracy_score : Compute the accuracy score. By default, the function will + return the fraction of correct predictions divided by the total number + of predictions. + hamming_loss : Compute the average Hamming loss or Hamming distance between + two sets of samples. + jaccard_score : Compute the Jaccard similarity coefficient score. + + Notes + ----- + In multilabel classification, the zero_one_loss function corresponds to + the subset zero-one loss: for each sample, the entire set of labels must be + correctly predicted, otherwise the loss for that sample is equal to one. + + Examples + -------- + >>> from sklearn.metrics import zero_one_loss + >>> y_pred = [1, 2, 3, 4] + >>> y_true = [2, 2, 3, 4] + >>> zero_one_loss(y_true, y_pred) + 0.25 + >>> zero_one_loss(y_true, y_pred, normalize=False) + 1.0 + + In the multilabel case with binary label indicators: + + >>> import numpy as np + >>> zero_one_loss(np.array([[0, 1], [1, 1]]), np.ones((2, 2))) + 0.5 + """ + xp, _ = get_namespace(y_true, y_pred) + score = accuracy_score( + y_true, y_pred, normalize=normalize, sample_weight=sample_weight + ) + + if normalize: + return 1 - score + else: + if sample_weight is not None: + n_samples = xp.sum(sample_weight) + else: + n_samples = _num_samples(y_true) + return n_samples - score + + +@validate_params( + { + "y_true": ["array-like", "sparse matrix"], + "y_pred": ["array-like", "sparse matrix"], + "labels": ["array-like", None], + "pos_label": [Real, str, "boolean", None], + "average": [ + StrOptions({"micro", "macro", "samples", "weighted", "binary"}), + None, + ], + "sample_weight": ["array-like", None], + "zero_division": [ + Options(Real, {0.0, 1.0}), + "nan", + StrOptions({"warn"}), + ], + }, + prefer_skip_nested_validation=True, +) +def f1_score( + y_true, + y_pred, + *, + labels=None, + pos_label=1, + average="binary", + sample_weight=None, + zero_division="warn", +): + """Compute the F1 score, also known as balanced F-score or F-measure. + + The F1 score can be interpreted as a harmonic mean of the precision and + recall, where an F1 score reaches its best value at 1 and worst score at 0. + The relative contribution of precision and recall to the F1 score are + equal. The formula for the F1 score is: + + .. math:: + \\text{F1} = \\frac{2 * \\text{TP}}{2 * \\text{TP} + \\text{FP} + \\text{FN}} + + Where :math:`\\text{TP}` is the number of true positives, :math:`\\text{FN}` is the + number of false negatives, and :math:`\\text{FP}` is the number of false positives. + F1 is by default + calculated as 0.0 when there are no true positives, false negatives, or + false positives. + + Support beyond :term:`binary` targets is achieved by treating :term:`multiclass` + and :term:`multilabel` data as a collection of binary problems, one for each + label. For the :term:`binary` case, setting `average='binary'` will return + F1 score for `pos_label`. If `average` is not `'binary'`, `pos_label` is ignored + and F1 score for both classes are computed, then averaged or both returned (when + `average=None`). Similarly, for :term:`multiclass` and :term:`multilabel` targets, + F1 score for all `labels` are either returned or averaged depending on the + `average` parameter. Use `labels` specify the set of labels to calculate F1 score + for. + + Read more in the :ref:`User Guide `. + + Parameters + ---------- + y_true : 1d array-like, or label indicator array / sparse matrix + Ground truth (correct) target values. + + y_pred : 1d array-like, or label indicator array / sparse matrix + Estimated targets as returned by a classifier. + + labels : array-like, default=None + The set of labels to include when `average != 'binary'`, and their + order if `average is None`. Labels present in the data can be + excluded, for example in multiclass classification to exclude a "negative + class". Labels not present in the data can be included and will be + "assigned" 0 samples. For multilabel targets, labels are column indices. + By default, all labels in `y_true` and `y_pred` are used in sorted order. + + .. versionchanged:: 0.17 + Parameter `labels` improved for multiclass problem. + + pos_label : int, float, bool or str, default=1 + The class to report if `average='binary'` and the data is binary, + otherwise this parameter is ignored. + For multiclass or multilabel targets, set `labels=[pos_label]` and + `average != 'binary'` to report metrics for one label only. + + average : {'micro', 'macro', 'samples', 'weighted', 'binary'} or None, \ + default='binary' + This parameter is required for multiclass/multilabel targets. + If ``None``, the metrics for each class are returned. Otherwise, this + determines the type of averaging performed on the data: + + ``'binary'``: + Only report results for the class specified by ``pos_label``. + This is applicable only if targets (``y_{true,pred}``) are binary. + ``'micro'``: + Calculate metrics globally by counting the total true positives, + false negatives and false positives. + ``'macro'``: + Calculate metrics for each label, and find their unweighted + mean. This does not take label imbalance into account. + ``'weighted'``: + Calculate metrics for each label, and find their average weighted + by support (the number of true instances for each label). This + alters 'macro' to account for label imbalance; it can result in an + F-score that is not between precision and recall. + ``'samples'``: + Calculate metrics for each instance, and find their average (only + meaningful for multilabel classification where this differs from + :func:`accuracy_score`). + + sample_weight : array-like of shape (n_samples,), default=None + Sample weights. + + zero_division : {"warn", 0.0, 1.0, np.nan}, default="warn" + Sets the value to return when there is a zero division, i.e. when all + predictions and labels are negative. + + Notes: + - If set to "warn", this acts like 0, but a warning is also raised. + - If set to `np.nan`, such values will be excluded from the average. + + .. versionadded:: 1.3 + `np.nan` option was added. + + Returns + ------- + f1_score : float or array of float, shape = [n_unique_labels] + F1 score of the positive class in binary classification or weighted + average of the F1 scores of each class for the multiclass task. + + See Also + -------- + fbeta_score : Compute the F-beta score. + precision_recall_fscore_support : Compute the precision, recall, F-score, + and support. + jaccard_score : Compute the Jaccard similarity coefficient score. + multilabel_confusion_matrix : Compute a confusion matrix for each class or + sample. + + Notes + ----- + When ``true positive + false positive + false negative == 0`` (i.e. a class + is completely absent from both ``y_true`` or ``y_pred``), f-score is + undefined. In such cases, by default f-score will be set to 0.0, and + ``UndefinedMetricWarning`` will be raised. This behavior can be modified by + setting the ``zero_division`` parameter. + + References + ---------- + .. [1] `Wikipedia entry for the F1-score + `_. + + Examples + -------- + >>> import numpy as np + >>> from sklearn.metrics import f1_score + >>> y_true = [0, 1, 2, 0, 1, 2] + >>> y_pred = [0, 2, 1, 0, 0, 1] + >>> f1_score(y_true, y_pred, average='macro') + 0.267 + >>> f1_score(y_true, y_pred, average='micro') + 0.33 + >>> f1_score(y_true, y_pred, average='weighted') + 0.267 + >>> f1_score(y_true, y_pred, average=None) + array([0.8, 0. , 0. ]) + + >>> # binary classification + >>> y_true_empty = [0, 0, 0, 0, 0, 0] + >>> y_pred_empty = [0, 0, 0, 0, 0, 0] + >>> f1_score(y_true_empty, y_pred_empty) + 0.0... + >>> f1_score(y_true_empty, y_pred_empty, zero_division=1.0) + 1.0... + >>> f1_score(y_true_empty, y_pred_empty, zero_division=np.nan) + nan... + + >>> # multilabel classification + >>> y_true = [[0, 0, 0], [1, 1, 1], [0, 1, 1]] + >>> y_pred = [[0, 0, 0], [1, 1, 1], [1, 1, 0]] + >>> f1_score(y_true, y_pred, average=None) + array([0.66666667, 1. , 0.66666667]) + """ + return fbeta_score( + y_true, + y_pred, + beta=1, + labels=labels, + pos_label=pos_label, + average=average, + sample_weight=sample_weight, + zero_division=zero_division, + ) + + +@validate_params( + { + "y_true": ["array-like", "sparse matrix"], + "y_pred": ["array-like", "sparse matrix"], + "beta": [Interval(Real, 0.0, None, closed="both")], + "labels": ["array-like", None], + "pos_label": [Real, str, "boolean", None], + "average": [ + StrOptions({"micro", "macro", "samples", "weighted", "binary"}), + None, + ], + "sample_weight": ["array-like", None], + "zero_division": [ + Options(Real, {0.0, 1.0}), + "nan", + StrOptions({"warn"}), + ], + }, + prefer_skip_nested_validation=True, +) +def fbeta_score( + y_true, + y_pred, + *, + beta, + labels=None, + pos_label=1, + average="binary", + sample_weight=None, + zero_division="warn", +): + """Compute the F-beta score. + + The F-beta score is the weighted harmonic mean of precision and recall, + reaching its optimal value at 1 and its worst value at 0. + + The `beta` parameter represents the ratio of recall importance to + precision importance. `beta > 1` gives more weight to recall, while + `beta < 1` favors precision. For example, `beta = 2` makes recall twice + as important as precision, while `beta = 0.5` does the opposite. + Asymptotically, `beta -> +inf` considers only recall, and `beta -> 0` + only precision. + + The formula for F-beta score is: + + .. math:: + + F_\\beta = \\frac{(1 + \\beta^2) \\text{tp}} + {(1 + \\beta^2) \\text{tp} + \\text{fp} + \\beta^2 \\text{fn}} + + Where :math:`\\text{tp}` is the number of true positives, :math:`\\text{fp}` is the + number of false positives, and :math:`\\text{fn}` is the number of false negatives. + + Support beyond term:`binary` targets is achieved by treating :term:`multiclass` + and :term:`multilabel` data as a collection of binary problems, one for each + label. For the :term:`binary` case, setting `average='binary'` will return + F-beta score for `pos_label`. If `average` is not `'binary'`, `pos_label` is + ignored and F-beta score for both classes are computed, then averaged or both + returned (when `average=None`). Similarly, for :term:`multiclass` and + :term:`multilabel` targets, F-beta score for all `labels` are either returned or + averaged depending on the `average` parameter. Use `labels` specify the set of + labels to calculate F-beta score for. + + Read more in the :ref:`User Guide `. + + Parameters + ---------- + y_true : 1d array-like, or label indicator array / sparse matrix + Ground truth (correct) target values. + + y_pred : 1d array-like, or label indicator array / sparse matrix + Estimated targets as returned by a classifier. + + beta : float + Determines the weight of recall in the combined score. + + labels : array-like, default=None + The set of labels to include when `average != 'binary'`, and their + order if `average is None`. Labels present in the data can be + excluded, for example in multiclass classification to exclude a "negative + class". Labels not present in the data can be included and will be + "assigned" 0 samples. For multilabel targets, labels are column indices. + By default, all labels in `y_true` and `y_pred` are used in sorted order. + + .. versionchanged:: 0.17 + Parameter `labels` improved for multiclass problem. + + pos_label : int, float, bool or str, default=1 + The class to report if `average='binary'` and the data is binary, + otherwise this parameter is ignored. + For multiclass or multilabel targets, set `labels=[pos_label]` and + `average != 'binary'` to report metrics for one label only. + + average : {'micro', 'macro', 'samples', 'weighted', 'binary'} or None, \ + default='binary' + This parameter is required for multiclass/multilabel targets. + If ``None``, the metrics for each class are returned. Otherwise, this + determines the type of averaging performed on the data: + + ``'binary'``: + Only report results for the class specified by ``pos_label``. + This is applicable only if targets (``y_{true,pred}``) are binary. + ``'micro'``: + Calculate metrics globally by counting the total true positives, + false negatives and false positives. + ``'macro'``: + Calculate metrics for each label, and find their unweighted + mean. This does not take label imbalance into account. + ``'weighted'``: + Calculate metrics for each label, and find their average weighted + by support (the number of true instances for each label). This + alters 'macro' to account for label imbalance; it can result in an + F-score that is not between precision and recall. + ``'samples'``: + Calculate metrics for each instance, and find their average (only + meaningful for multilabel classification where this differs from + :func:`accuracy_score`). + + sample_weight : array-like of shape (n_samples,), default=None + Sample weights. + + zero_division : {"warn", 0.0, 1.0, np.nan}, default="warn" + Sets the value to return when there is a zero division, i.e. when all + predictions and labels are negative. + + Notes: + + - If set to "warn", this acts like 0, but a warning is also raised. + - If set to `np.nan`, such values will be excluded from the average. + + .. versionadded:: 1.3 + `np.nan` option was added. + + Returns + ------- + fbeta_score : float (if average is not None) or array of float, shape =\ + [n_unique_labels] + F-beta score of the positive class in binary classification or weighted + average of the F-beta score of each class for the multiclass task. + + See Also + -------- + precision_recall_fscore_support : Compute the precision, recall, F-score, + and support. + multilabel_confusion_matrix : Compute a confusion matrix for each class or + sample. + + Notes + ----- + When ``true positive + false positive + false negative == 0``, f-score + returns 0.0 and raises ``UndefinedMetricWarning``. This behavior can be + modified by setting ``zero_division``. + + F-beta score is not implemented as a named scorer that can be passed to + the `scoring` parameter of cross-validation tools directly: it requires to be + wrapped with :func:`make_scorer` so as to specify the value of `beta`. See + examples for details. + + References + ---------- + .. [1] R. Baeza-Yates and B. Ribeiro-Neto (2011). + Modern Information Retrieval. Addison Wesley, pp. 327-328. + + .. [2] `Wikipedia entry for the F1-score + `_. + + Examples + -------- + >>> import numpy as np + >>> from sklearn.metrics import fbeta_score + >>> y_true = [0, 1, 2, 0, 1, 2] + >>> y_pred = [0, 2, 1, 0, 0, 1] + >>> fbeta_score(y_true, y_pred, average='macro', beta=0.5) + 0.238 + >>> fbeta_score(y_true, y_pred, average='micro', beta=0.5) + 0.33 + >>> fbeta_score(y_true, y_pred, average='weighted', beta=0.5) + 0.238 + >>> fbeta_score(y_true, y_pred, average=None, beta=0.5) + array([0.71, 0. , 0. ]) + >>> y_pred_empty = [0, 0, 0, 0, 0, 0] + >>> fbeta_score( + ... y_true, + ... y_pred_empty, + ... average="macro", + ... zero_division=np.nan, + ... beta=0.5, + ... ) + 0.128 + + In order to use :func:`fbeta_scorer` as a scorer, a callable + scorer objects needs to be created first with :func:`make_scorer`, + passing the value for the `beta` parameter. + + >>> from sklearn.metrics import fbeta_score, make_scorer + >>> ftwo_scorer = make_scorer(fbeta_score, beta=2) + >>> from sklearn.model_selection import GridSearchCV + >>> from sklearn.svm import LinearSVC + >>> grid = GridSearchCV( + ... LinearSVC(dual="auto"), + ... param_grid={'C': [1, 10]}, + ... scoring=ftwo_scorer, + ... cv=5 + ... ) + """ + + _, _, f, _ = precision_recall_fscore_support( + y_true, + y_pred, + beta=beta, + labels=labels, + pos_label=pos_label, + average=average, + warn_for=("f-score",), + sample_weight=sample_weight, + zero_division=zero_division, + ) + return f + + +def _prf_divide( + numerator, denominator, metric, modifier, average, warn_for, zero_division="warn" +): + """Performs division and handles divide-by-zero. + + On zero-division, sets the corresponding result elements equal to + 0, 1 or np.nan (according to ``zero_division``). Plus, if + ``zero_division != "warn"`` raises a warning. + + The metric, modifier and average arguments are used only for determining + an appropriate warning. + """ + xp, _ = get_namespace(numerator, denominator) + dtype_float = _find_matching_floating_dtype(numerator, denominator, xp=xp) + mask = denominator == 0 + denominator = xp.asarray(denominator, copy=True, dtype=dtype_float) + denominator[mask] = 1 # avoid infs/nans + result = xp.asarray(numerator, dtype=dtype_float) / denominator + + if not xp.any(mask): + return result + + # set those with 0 denominator to `zero_division`, and 0 when "warn" + zero_division_value = _check_zero_division(zero_division) + result[mask] = zero_division_value + + # we assume the user will be removing warnings if zero_division is set + # to something different than "warn". If we are computing only f-score + # the warning will be raised only if precision and recall are ill-defined + if zero_division != "warn" or metric not in warn_for: + return result + + # build appropriate warning + if metric in warn_for: + _warn_prf(average, modifier, f"{metric.capitalize()} is", result.shape[0]) + + return result + + +def _warn_prf(average, modifier, msg_start, result_size): + axis0, axis1 = "sample", "label" + if average == "samples": + axis0, axis1 = axis1, axis0 + msg = ( + "{0} ill-defined and being set to 0.0 {{0}} " + "no {1} {2}s. Use `zero_division` parameter to control" + " this behavior.".format(msg_start, modifier, axis0) + ) + if result_size == 1: + msg = msg.format("due to") + else: + msg = msg.format("in {0}s with".format(axis1)) + warnings.warn(msg, UndefinedMetricWarning, stacklevel=2) + + +def _check_set_wise_labels(y_true, y_pred, average, labels, pos_label): + """Validation associated with set-wise metrics. + + Returns identified labels. + """ + average_options = (None, "micro", "macro", "weighted", "samples") + if average not in average_options and average != "binary": + raise ValueError("average has to be one of " + str(average_options)) + + y_true, y_pred = attach_unique(y_true, y_pred) + y_type, y_true, y_pred = _check_targets(y_true, y_pred) + # Convert to Python primitive type to avoid NumPy type / Python str + # comparison. See https://github.com/numpy/numpy/issues/6784 + present_labels = _tolist(unique_labels(y_true, y_pred)) + if average == "binary": + if y_type == "binary": + if pos_label not in present_labels: + if len(present_labels) >= 2: + raise ValueError( + f"pos_label={pos_label} is not a valid label. It " + f"should be one of {present_labels}" + ) + labels = [pos_label] + else: + average_options = list(average_options) + if y_type == "multiclass": + average_options.remove("samples") + raise ValueError( + "Target is %s but average='binary'. Please " + "choose another average setting, one of %r." % (y_type, average_options) + ) + elif pos_label not in (None, 1): + warnings.warn( + "Note that pos_label (set to %r) is ignored when " + "average != 'binary' (got %r). You may use " + "labels=[pos_label] to specify a single positive class." + % (pos_label, average), + UserWarning, + ) + return labels + + +@validate_params( + { + "y_true": ["array-like", "sparse matrix"], + "y_pred": ["array-like", "sparse matrix"], + "beta": [Interval(Real, 0.0, None, closed="both")], + "labels": ["array-like", None], + "pos_label": [Real, str, "boolean", None], + "average": [ + StrOptions({"micro", "macro", "samples", "weighted", "binary"}), + None, + ], + "warn_for": [list, tuple, set], + "sample_weight": ["array-like", None], + "zero_division": [ + Options(Real, {0.0, 1.0}), + "nan", + StrOptions({"warn"}), + ], + }, + prefer_skip_nested_validation=True, +) +def precision_recall_fscore_support( + y_true, + y_pred, + *, + beta=1.0, + labels=None, + pos_label=1, + average=None, + warn_for=("precision", "recall", "f-score"), + sample_weight=None, + zero_division="warn", +): + """Compute precision, recall, F-measure and support for each class. + + The precision is the ratio ``tp / (tp + fp)`` where ``tp`` is the number of + true positives and ``fp`` the number of false positives. The precision is + intuitively the ability of the classifier not to label a negative sample as + positive. + + The recall is the ratio ``tp / (tp + fn)`` where ``tp`` is the number of + true positives and ``fn`` the number of false negatives. The recall is + intuitively the ability of the classifier to find all the positive samples. + + The F-beta score can be interpreted as a weighted harmonic mean of + the precision and recall, where an F-beta score reaches its best + value at 1 and worst score at 0. + + The F-beta score weights recall more than precision by a factor of + ``beta``. ``beta == 1.0`` means recall and precision are equally important. + + The support is the number of occurrences of each class in ``y_true``. + + Support beyond term:`binary` targets is achieved by treating :term:`multiclass` + and :term:`multilabel` data as a collection of binary problems, one for each + label. For the :term:`binary` case, setting `average='binary'` will return + metrics for `pos_label`. If `average` is not `'binary'`, `pos_label` is ignored + and metrics for both classes are computed, then averaged or both returned (when + `average=None`). Similarly, for :term:`multiclass` and :term:`multilabel` targets, + metrics for all `labels` are either returned or averaged depending on the `average` + parameter. Use `labels` specify the set of labels to calculate metrics for. + + Read more in the :ref:`User Guide `. + + Parameters + ---------- + y_true : 1d array-like, or label indicator array / sparse matrix + Ground truth (correct) target values. + + y_pred : 1d array-like, or label indicator array / sparse matrix + Estimated targets as returned by a classifier. + + beta : float, default=1.0 + The strength of recall versus precision in the F-score. + + labels : array-like, default=None + The set of labels to include when `average != 'binary'`, and their + order if `average is None`. Labels present in the data can be + excluded, for example in multiclass classification to exclude a "negative + class". Labels not present in the data can be included and will be + "assigned" 0 samples. For multilabel targets, labels are column indices. + By default, all labels in `y_true` and `y_pred` are used in sorted order. + + .. versionchanged:: 0.17 + Parameter `labels` improved for multiclass problem. + + pos_label : int, float, bool or str, default=1 + The class to report if `average='binary'` and the data is binary, + otherwise this parameter is ignored. + For multiclass or multilabel targets, set `labels=[pos_label]` and + `average != 'binary'` to report metrics for one label only. + + average : {'micro', 'macro', 'samples', 'weighted', 'binary'} or None, \ + default='binary' + This parameter is required for multiclass/multilabel targets. + If ``None``, the metrics for each class are returned. Otherwise, this + determines the type of averaging performed on the data: + + ``'binary'``: + Only report results for the class specified by ``pos_label``. + This is applicable only if targets (``y_{true,pred}``) are binary. + ``'micro'``: + Calculate metrics globally by counting the total true positives, + false negatives and false positives. + ``'macro'``: + Calculate metrics for each label, and find their unweighted + mean. This does not take label imbalance into account. + ``'weighted'``: + Calculate metrics for each label, and find their average weighted + by support (the number of true instances for each label). This + alters 'macro' to account for label imbalance; it can result in an + F-score that is not between precision and recall. + ``'samples'``: + Calculate metrics for each instance, and find their average (only + meaningful for multilabel classification where this differs from + :func:`accuracy_score`). + + warn_for : list, tuple or set, for internal use + This determines which warnings will be made in the case that this + function is being used to return only one of its metrics. + + sample_weight : array-like of shape (n_samples,), default=None + Sample weights. + + zero_division : {"warn", 0.0, 1.0, np.nan}, default="warn" + Sets the value to return when there is a zero division: + + - recall: when there are no positive labels + - precision: when there are no positive predictions + - f-score: both + + Notes: + + - If set to "warn", this acts like 0, but a warning is also raised. + - If set to `np.nan`, such values will be excluded from the average. + + .. versionadded:: 1.3 + `np.nan` option was added. + + Returns + ------- + precision : float (if average is not None) or array of float, shape =\ + [n_unique_labels] + Precision score. + + recall : float (if average is not None) or array of float, shape =\ + [n_unique_labels] + Recall score. + + fbeta_score : float (if average is not None) or array of float, shape =\ + [n_unique_labels] + F-beta score. + + support : None (if average is not None) or array of int, shape =\ + [n_unique_labels] + The number of occurrences of each label in ``y_true``. + + Notes + ----- + When ``true positive + false positive == 0``, precision is undefined. + When ``true positive + false negative == 0``, recall is undefined. When + ``true positive + false negative + false positive == 0``, f-score is + undefined. In such cases, by default the metric will be set to 0, and + ``UndefinedMetricWarning`` will be raised. This behavior can be modified + with ``zero_division``. + + References + ---------- + .. [1] `Wikipedia entry for the Precision and recall + `_. + + .. [2] `Wikipedia entry for the F1-score + `_. + + .. [3] `Discriminative Methods for Multi-labeled Classification Advances + in Knowledge Discovery and Data Mining (2004), pp. 22-30 by Shantanu + Godbole, Sunita Sarawagi + `_. + + Examples + -------- + >>> import numpy as np + >>> from sklearn.metrics import precision_recall_fscore_support + >>> y_true = np.array(['cat', 'dog', 'pig', 'cat', 'dog', 'pig']) + >>> y_pred = np.array(['cat', 'pig', 'dog', 'cat', 'cat', 'dog']) + >>> precision_recall_fscore_support(y_true, y_pred, average='macro') + (0.222, 0.333, 0.267, None) + >>> precision_recall_fscore_support(y_true, y_pred, average='micro') + (0.33, 0.33, 0.33, None) + >>> precision_recall_fscore_support(y_true, y_pred, average='weighted') + (0.222, 0.333, 0.267, None) + + It is possible to compute per-label precisions, recalls, F1-scores and + supports instead of averaging: + + >>> precision_recall_fscore_support(y_true, y_pred, average=None, + ... labels=['pig', 'dog', 'cat']) + (array([0. , 0. , 0.66]), + array([0., 0., 1.]), array([0. , 0. , 0.8]), + array([2, 2, 2])) + """ + _check_zero_division(zero_division) + labels = _check_set_wise_labels(y_true, y_pred, average, labels, pos_label) + + # Calculate tp_sum, pred_sum, true_sum ### + samplewise = average == "samples" + MCM = multilabel_confusion_matrix( + y_true, + y_pred, + sample_weight=sample_weight, + labels=labels, + samplewise=samplewise, + ) + tp_sum = MCM[:, 1, 1] + pred_sum = tp_sum + MCM[:, 0, 1] + true_sum = tp_sum + MCM[:, 1, 0] + + xp, _, device_ = get_namespace_and_device(y_true, y_pred) + if average == "micro": + tp_sum = xp.reshape(xp.sum(tp_sum), (1,)) + pred_sum = xp.reshape(xp.sum(pred_sum), (1,)) + true_sum = xp.reshape(xp.sum(true_sum), (1,)) + + # Finally, we have all our sufficient statistics. Divide! # + beta2 = beta**2 + + # Divide, and on zero-division, set scores and/or warn according to + # zero_division: + precision = _prf_divide( + tp_sum, pred_sum, "precision", "predicted", average, warn_for, zero_division + ) + recall = _prf_divide( + tp_sum, true_sum, "recall", "true", average, warn_for, zero_division + ) + + if np.isposinf(beta): + f_score = recall + elif beta == 0: + f_score = precision + else: + # The score is defined as: + # score = (1 + beta**2) * precision * recall / (beta**2 * precision + recall) + # Therefore, we can express the score in terms of confusion matrix entries as: + # score = (1 + beta**2) * tp / ((1 + beta**2) * tp + beta**2 * fn + fp) + + # Array api strict requires all arrays to be of the same type so we + # need to convert true_sum, pred_sum and tp_sum to the max supported + # float dtype because beta2 is a float + max_float_type = _max_precision_float_dtype(xp=xp, device=device_) + denom = beta2 * xp.astype(true_sum, max_float_type) + xp.astype( + pred_sum, max_float_type + ) + f_score = _prf_divide( + (1 + beta2) * xp.astype(tp_sum, max_float_type), + denom, + "f-score", + "true nor predicted", + average, + warn_for, + zero_division, + ) + + # Average the results + if average == "weighted": + weights = true_sum + elif average == "samples": + weights = sample_weight + else: + weights = None + + if average is not None: + precision = float(_nanaverage(precision, weights=weights)) + recall = float(_nanaverage(recall, weights=weights)) + f_score = float(_nanaverage(f_score, weights=weights)) + true_sum = None # return no support + + return precision, recall, f_score, true_sum + + +@validate_params( + { + "y_true": ["array-like", "sparse matrix"], + "y_pred": ["array-like", "sparse matrix"], + "labels": ["array-like", None], + "sample_weight": ["array-like", None], + "raise_warning": ["boolean", Hidden(StrOptions({"deprecated"}))], + "replace_undefined_by": [ + Options(Real, {1.0, np.nan}), + dict, + ], + }, + prefer_skip_nested_validation=True, +) +def class_likelihood_ratios( + y_true, + y_pred, + *, + labels=None, + sample_weight=None, + raise_warning="deprecated", + replace_undefined_by=np.nan, +): + """Compute binary classification positive and negative likelihood ratios. + + The positive likelihood ratio is `LR+ = sensitivity / (1 - specificity)` + where the sensitivity or recall is the ratio `tp / (tp + fn)` and the + specificity is `tn / (tn + fp)`. The negative likelihood ratio is `LR- = (1 + - sensitivity) / specificity`. Here `tp` is the number of true positives, + `fp` the number of false positives, `tn` is the number of true negatives and + `fn` the number of false negatives. Both class likelihood ratios can be used + to obtain post-test probabilities given a pre-test probability. + + `LR+` ranges from 1.0 to infinity. A `LR+` of 1.0 indicates that the probability + of predicting the positive class is the same for samples belonging to either + class; therefore, the test is useless. The greater `LR+` is, the more a + positive prediction is likely to be a true positive when compared with the + pre-test probability. A value of `LR+` lower than 1.0 is invalid as it would + indicate that the odds of a sample being a true positive decrease with + respect to the pre-test odds. + + `LR-` ranges from 0.0 to 1.0. The closer it is to 0.0, the lower the probability + of a given sample to be a false negative. A `LR-` of 1.0 means the test is + useless because the odds of having the condition did not change after the + test. A value of `LR-` greater than 1.0 invalidates the classifier as it + indicates an increase in the odds of a sample belonging to the positive + class after being classified as negative. This is the case when the + classifier systematically predicts the opposite of the true label. + + A typical application in medicine is to identify the positive/negative class + to the presence/absence of a disease, respectively; the classifier being a + diagnostic test; the pre-test probability of an individual having the + disease can be the prevalence of such disease (proportion of a particular + population found to be affected by a medical condition); and the post-test + probabilities would be the probability that the condition is truly present + given a positive test result. + + Read more in the :ref:`User Guide `. + + Parameters + ---------- + y_true : 1d array-like, or label indicator array / sparse matrix + Ground truth (correct) target values. + + y_pred : 1d array-like, or label indicator array / sparse matrix + Estimated targets as returned by a classifier. + + labels : array-like, default=None + List of labels to index the matrix. This may be used to select the + positive and negative classes with the ordering `labels=[negative_class, + positive_class]`. If `None` is given, those that appear at least once in + `y_true` or `y_pred` are used in sorted order. + + sample_weight : array-like of shape (n_samples,), default=None + Sample weights. + + raise_warning : bool, default=True + Whether or not a case-specific warning message is raised when there is division + by zero. + + .. deprecated:: 1.7 + `raise_warning` was deprecated in version 1.7 and will be removed in 1.9, + when an :class:`~sklearn.exceptions.UndefinedMetricWarning` will always + raise in case of a division by zero. + + replace_undefined_by : np.nan, 1.0, or dict, default=np.nan + Sets the return values for LR+ and LR- when there is a division by zero. Can + take the following values: + + - `np.nan` to return `np.nan` for both `LR+` and `LR-` + - `1.0` to return the worst possible scores: `{"LR+": 1.0, "LR-": 1.0}` + - a dict in the format `{"LR+": value_1, "LR-": value_2}` where the values can + be non-negative floats, `np.inf` or `np.nan` in the range of the + likelihood ratios. For example, `{"LR+": 1.0, "LR-": 1.0}` can be used for + returning the worst scores, indicating a useless model, and `{"LR+": np.inf, + "LR-": 0.0}` can be used for returning the best scores, indicating a useful + model. + + If a division by zero occurs, only the affected metric is replaced with the set + value; the other metric is calculated as usual. + + .. versionadded:: 1.7 + + Returns + ------- + (positive_likelihood_ratio, negative_likelihood_ratio) : tuple + A tuple of two floats, the first containing the positive likelihood ratio (LR+) + and the second the negative likelihood ratio (LR-). + + Warns + ----- + Raises :class:`~sklearn.exceptions.UndefinedMetricWarning` when `y_true` and + `y_pred` lead to the following conditions: + + - The number of false positives is 0 and `raise_warning` is set to `True` + (default): positive likelihood ratio is undefined. + - The number of true negatives is 0 and `raise_warning` is set to `True` + (default): negative likelihood ratio is undefined. + - The sum of true positives and false negatives is 0 (no samples of the positive + class are present in `y_true`): both likelihood ratios are undefined. + + For the first two cases, an undefined metric can be defined by setting the + `replace_undefined_by` param. + + References + ---------- + .. [1] `Wikipedia entry for the Likelihood ratios in diagnostic testing + `_. + + Examples + -------- + >>> import numpy as np + >>> from sklearn.metrics import class_likelihood_ratios + >>> class_likelihood_ratios([0, 1, 0, 1, 0], [1, 1, 0, 0, 0]) + (1.5, 0.75) + >>> y_true = np.array(["non-cat", "cat", "non-cat", "cat", "non-cat"]) + >>> y_pred = np.array(["cat", "cat", "non-cat", "non-cat", "non-cat"]) + >>> class_likelihood_ratios(y_true, y_pred) + (1.33, 0.66) + >>> y_true = np.array(["non-zebra", "zebra", "non-zebra", "zebra", "non-zebra"]) + >>> y_pred = np.array(["zebra", "zebra", "non-zebra", "non-zebra", "non-zebra"]) + >>> class_likelihood_ratios(y_true, y_pred) + (1.5, 0.75) + + To avoid ambiguities, use the notation `labels=[negative_class, + positive_class]` + + >>> y_true = np.array(["non-cat", "cat", "non-cat", "cat", "non-cat"]) + >>> y_pred = np.array(["cat", "cat", "non-cat", "non-cat", "non-cat"]) + >>> class_likelihood_ratios(y_true, y_pred, labels=["non-cat", "cat"]) + (1.5, 0.75) + """ + # TODO(1.9): When `raise_warning` is removed, the following changes need to be made: + # The checks for `raise_warning==True` need to be removed and we will always warn, + # remove `FutureWarning`, and the Warns section in the docstring should not mention + # `raise_warning` anymore. + y_true, y_pred = attach_unique(y_true, y_pred) + y_type, y_true, y_pred = _check_targets(y_true, y_pred) + if y_type != "binary": + raise ValueError( + "class_likelihood_ratios only supports binary classification " + f"problems, got targets of type: {y_type}" + ) + + msg_deprecated_param = ( + "`raise_warning` was deprecated in version 1.7 and will be removed in 1.9. An " + "`UndefinedMetricWarning` will always be raised in case of a division by zero " + "and the value set with the `replace_undefined_by` param will be returned." + ) + if raise_warning != "deprecated": + warnings.warn(msg_deprecated_param, FutureWarning) + else: + raise_warning = True + + if replace_undefined_by == 1.0: + replace_undefined_by = {"LR+": 1.0, "LR-": 1.0} + + if isinstance(replace_undefined_by, dict): + msg = ( + "The dictionary passed as `replace_undefined_by` needs to be in the form " + "`{'LR+': `value_1`, 'LR-': `value_2`}` where the value for `LR+` ranges " + "from `1.0` to `np.inf` or is `np.nan` and the value for `LR-` ranges from " + f"`0.0` to `1.0` or is `np.nan`; got `{replace_undefined_by}`." + ) + if ("LR+" in replace_undefined_by) and ("LR-" in replace_undefined_by): + try: + desired_lr_pos = replace_undefined_by.get("LR+", None) + check_scalar( + desired_lr_pos, + "positive_likelihood_ratio", + target_type=(Real), + min_val=1.0, + include_boundaries="left", + ) + desired_lr_neg = replace_undefined_by.get("LR-", None) + check_scalar( + desired_lr_neg, + "negative_likelihood_ratio", + target_type=(Real), + min_val=0.0, + max_val=1.0, + include_boundaries="both", + ) + except Exception as e: + raise ValueError(msg) from e + else: + raise ValueError(msg) + + cm = confusion_matrix( + y_true, + y_pred, + sample_weight=sample_weight, + labels=labels, + ) + + tn, fp, fn, tp = cm.ravel() + support_pos = tp + fn + support_neg = tn + fp + pos_num = tp * support_neg + pos_denom = fp * support_pos + neg_num = fn * support_neg + neg_denom = tn * support_pos + + # if `support_pos == 0`a division by zero will occur + if support_pos == 0: + msg = ( + "No samples of the positive class are present in `y_true`. " + "`positive_likelihood_ratio` and `negative_likelihood_ratio` are both set " + "to `np.nan`. Use the `replace_undefined_by` param to control this " + "behavior. To suppress this warning or turn it into an error, see Python's " + "`warnings` module and `warnings.catch_warnings()`." + ) + warnings.warn(msg, UndefinedMetricWarning, stacklevel=2) + positive_likelihood_ratio = np.nan + negative_likelihood_ratio = np.nan + + # if `fp == 0`a division by zero will occur + if fp == 0: + if raise_warning: + if tp == 0: + msg_beginning = ( + "No samples were predicted for the positive class and " + "`positive_likelihood_ratio` is " + ) + else: + msg_beginning = "`positive_likelihood_ratio` is ill-defined and " + msg_end = "set to `np.nan`. Use the `replace_undefined_by` param to " + "control this behavior. To suppress this warning or turn it into an error, " + "see Python's `warnings` module and `warnings.catch_warnings()`." + warnings.warn(msg_beginning + msg_end, UndefinedMetricWarning, stacklevel=2) + if isinstance(replace_undefined_by, float) and np.isnan(replace_undefined_by): + positive_likelihood_ratio = replace_undefined_by + else: + # replace_undefined_by is a dict and + # isinstance(replace_undefined_by.get("LR+", None), Real); this includes + # `np.inf` and `np.nan` + positive_likelihood_ratio = desired_lr_pos + else: + positive_likelihood_ratio = pos_num / pos_denom + + # if `tn == 0`a division by zero will occur + if tn == 0: + if raise_warning: + msg = ( + "`negative_likelihood_ratio` is ill-defined and set to `np.nan`. " + "Use the `replace_undefined_by` param to control this behavior. To " + "suppress this warning or turn it into an error, see Python's " + "`warnings` module and `warnings.catch_warnings()`." + ) + warnings.warn(msg, UndefinedMetricWarning, stacklevel=2) + if isinstance(replace_undefined_by, float) and np.isnan(replace_undefined_by): + negative_likelihood_ratio = replace_undefined_by + else: + # replace_undefined_by is a dict and + # isinstance(replace_undefined_by.get("LR-", None), Real); this includes + # `np.nan` + negative_likelihood_ratio = desired_lr_neg + else: + negative_likelihood_ratio = neg_num / neg_denom + + return float(positive_likelihood_ratio), float(negative_likelihood_ratio) + + +@validate_params( + { + "y_true": ["array-like", "sparse matrix"], + "y_pred": ["array-like", "sparse matrix"], + "labels": ["array-like", None], + "pos_label": [Real, str, "boolean", None], + "average": [ + StrOptions({"micro", "macro", "samples", "weighted", "binary"}), + None, + ], + "sample_weight": ["array-like", None], + "zero_division": [ + Options(Real, {0.0, 1.0}), + "nan", + StrOptions({"warn"}), + ], + }, + prefer_skip_nested_validation=True, +) +def precision_score( + y_true, + y_pred, + *, + labels=None, + pos_label=1, + average="binary", + sample_weight=None, + zero_division="warn", +): + """Compute the precision. + + The precision is the ratio ``tp / (tp + fp)`` where ``tp`` is the number of + true positives and ``fp`` the number of false positives. The precision is + intuitively the ability of the classifier not to label as positive a sample + that is negative. + + The best value is 1 and the worst value is 0. + + Support beyond term:`binary` targets is achieved by treating :term:`multiclass` + and :term:`multilabel` data as a collection of binary problems, one for each + label. For the :term:`binary` case, setting `average='binary'` will return + precision for `pos_label`. If `average` is not `'binary'`, `pos_label` is ignored + and precision for both classes are computed, then averaged or both returned (when + `average=None`). Similarly, for :term:`multiclass` and :term:`multilabel` targets, + precision for all `labels` are either returned or averaged depending on the + `average` parameter. Use `labels` specify the set of labels to calculate precision + for. + + Read more in the :ref:`User Guide `. + + Parameters + ---------- + y_true : 1d array-like, or label indicator array / sparse matrix + Ground truth (correct) target values. + + y_pred : 1d array-like, or label indicator array / sparse matrix + Estimated targets as returned by a classifier. + + labels : array-like, default=None + The set of labels to include when `average != 'binary'`, and their + order if `average is None`. Labels present in the data can be + excluded, for example in multiclass classification to exclude a "negative + class". Labels not present in the data can be included and will be + "assigned" 0 samples. For multilabel targets, labels are column indices. + By default, all labels in `y_true` and `y_pred` are used in sorted order. + + .. versionchanged:: 0.17 + Parameter `labels` improved for multiclass problem. + + pos_label : int, float, bool or str, default=1 + The class to report if `average='binary'` and the data is binary, + otherwise this parameter is ignored. + For multiclass or multilabel targets, set `labels=[pos_label]` and + `average != 'binary'` to report metrics for one label only. + + average : {'micro', 'macro', 'samples', 'weighted', 'binary'} or None, \ + default='binary' + This parameter is required for multiclass/multilabel targets. + If ``None``, the metrics for each class are returned. Otherwise, this + determines the type of averaging performed on the data: + + ``'binary'``: + Only report results for the class specified by ``pos_label``. + This is applicable only if targets (``y_{true,pred}``) are binary. + ``'micro'``: + Calculate metrics globally by counting the total true positives, + false negatives and false positives. + ``'macro'``: + Calculate metrics for each label, and find their unweighted + mean. This does not take label imbalance into account. + ``'weighted'``: + Calculate metrics for each label, and find their average weighted + by support (the number of true instances for each label). This + alters 'macro' to account for label imbalance; it can result in an + F-score that is not between precision and recall. + ``'samples'``: + Calculate metrics for each instance, and find their average (only + meaningful for multilabel classification where this differs from + :func:`accuracy_score`). + + sample_weight : array-like of shape (n_samples,), default=None + Sample weights. + + zero_division : {"warn", 0.0, 1.0, np.nan}, default="warn" + Sets the value to return when there is a zero division. + + Notes: + + - If set to "warn", this acts like 0, but a warning is also raised. + - If set to `np.nan`, such values will be excluded from the average. + + .. versionadded:: 1.3 + `np.nan` option was added. + + Returns + ------- + precision : float (if average is not None) or array of float of shape \ + (n_unique_labels,) + Precision of the positive class in binary classification or weighted + average of the precision of each class for the multiclass task. + + See Also + -------- + precision_recall_fscore_support : Compute precision, recall, F-measure and + support for each class. + recall_score : Compute the ratio ``tp / (tp + fn)`` where ``tp`` is the + number of true positives and ``fn`` the number of false negatives. + PrecisionRecallDisplay.from_estimator : Plot precision-recall curve given + an estimator and some data. + PrecisionRecallDisplay.from_predictions : Plot precision-recall curve given + binary class predictions. + multilabel_confusion_matrix : Compute a confusion matrix for each class or + sample. + + Notes + ----- + When ``true positive + false positive == 0``, precision returns 0 and + raises ``UndefinedMetricWarning``. This behavior can be + modified with ``zero_division``. + + Examples + -------- + >>> import numpy as np + >>> from sklearn.metrics import precision_score + >>> y_true = [0, 1, 2, 0, 1, 2] + >>> y_pred = [0, 2, 1, 0, 0, 1] + >>> precision_score(y_true, y_pred, average='macro') + 0.22 + >>> precision_score(y_true, y_pred, average='micro') + 0.33 + >>> precision_score(y_true, y_pred, average='weighted') + 0.22 + >>> precision_score(y_true, y_pred, average=None) + array([0.66, 0. , 0. ]) + >>> y_pred = [0, 0, 0, 0, 0, 0] + >>> precision_score(y_true, y_pred, average=None) + array([0.33, 0. , 0. ]) + >>> precision_score(y_true, y_pred, average=None, zero_division=1) + array([0.33, 1. , 1. ]) + >>> precision_score(y_true, y_pred, average=None, zero_division=np.nan) + array([0.33, nan, nan]) + + >>> # multilabel classification + >>> y_true = [[0, 0, 0], [1, 1, 1], [0, 1, 1]] + >>> y_pred = [[0, 0, 0], [1, 1, 1], [1, 1, 0]] + >>> precision_score(y_true, y_pred, average=None) + array([0.5, 1. , 1. ]) + """ + p, _, _, _ = precision_recall_fscore_support( + y_true, + y_pred, + labels=labels, + pos_label=pos_label, + average=average, + warn_for=("precision",), + sample_weight=sample_weight, + zero_division=zero_division, + ) + return p + + +@validate_params( + { + "y_true": ["array-like", "sparse matrix"], + "y_pred": ["array-like", "sparse matrix"], + "labels": ["array-like", None], + "pos_label": [Real, str, "boolean", None], + "average": [ + StrOptions({"micro", "macro", "samples", "weighted", "binary"}), + None, + ], + "sample_weight": ["array-like", None], + "zero_division": [ + Options(Real, {0.0, 1.0}), + "nan", + StrOptions({"warn"}), + ], + }, + prefer_skip_nested_validation=True, +) +def recall_score( + y_true, + y_pred, + *, + labels=None, + pos_label=1, + average="binary", + sample_weight=None, + zero_division="warn", +): + """Compute the recall. + + The recall is the ratio ``tp / (tp + fn)`` where ``tp`` is the number of + true positives and ``fn`` the number of false negatives. The recall is + intuitively the ability of the classifier to find all the positive samples. + + The best value is 1 and the worst value is 0. + + Support beyond term:`binary` targets is achieved by treating :term:`multiclass` + and :term:`multilabel` data as a collection of binary problems, one for each + label. For the :term:`binary` case, setting `average='binary'` will return + recall for `pos_label`. If `average` is not `'binary'`, `pos_label` is ignored + and recall for both classes are computed then averaged or both returned (when + `average=None`). Similarly, for :term:`multiclass` and :term:`multilabel` targets, + recall for all `labels` are either returned or averaged depending on the `average` + parameter. Use `labels` specify the set of labels to calculate recall for. + + Read more in the :ref:`User Guide `. + + Parameters + ---------- + y_true : 1d array-like, or label indicator array / sparse matrix + Ground truth (correct) target values. + + y_pred : 1d array-like, or label indicator array / sparse matrix + Estimated targets as returned by a classifier. + + labels : array-like, default=None + The set of labels to include when `average != 'binary'`, and their + order if `average is None`. Labels present in the data can be + excluded, for example in multiclass classification to exclude a "negative + class". Labels not present in the data can be included and will be + "assigned" 0 samples. For multilabel targets, labels are column indices. + By default, all labels in `y_true` and `y_pred` are used in sorted order. + + .. versionchanged:: 0.17 + Parameter `labels` improved for multiclass problem. + + pos_label : int, float, bool or str, default=1 + The class to report if `average='binary'` and the data is binary, + otherwise this parameter is ignored. + For multiclass or multilabel targets, set `labels=[pos_label]` and + `average != 'binary'` to report metrics for one label only. + + average : {'micro', 'macro', 'samples', 'weighted', 'binary'} or None, \ + default='binary' + This parameter is required for multiclass/multilabel targets. + If ``None``, the metrics for each class are returned. Otherwise, this + determines the type of averaging performed on the data: + + ``'binary'``: + Only report results for the class specified by ``pos_label``. + This is applicable only if targets (``y_{true,pred}``) are binary. + ``'micro'``: + Calculate metrics globally by counting the total true positives, + false negatives and false positives. + ``'macro'``: + Calculate metrics for each label, and find their unweighted + mean. This does not take label imbalance into account. + ``'weighted'``: + Calculate metrics for each label, and find their average weighted + by support (the number of true instances for each label). This + alters 'macro' to account for label imbalance; it can result in an + F-score that is not between precision and recall. Weighted recall + is equal to accuracy. + ``'samples'``: + Calculate metrics for each instance, and find their average (only + meaningful for multilabel classification where this differs from + :func:`accuracy_score`). + + sample_weight : array-like of shape (n_samples,), default=None + Sample weights. + + zero_division : {"warn", 0.0, 1.0, np.nan}, default="warn" + Sets the value to return when there is a zero division. + + Notes: + + - If set to "warn", this acts like 0, but a warning is also raised. + - If set to `np.nan`, such values will be excluded from the average. + + .. versionadded:: 1.3 + `np.nan` option was added. + + Returns + ------- + recall : float (if average is not None) or array of float of shape \ + (n_unique_labels,) + Recall of the positive class in binary classification or weighted + average of the recall of each class for the multiclass task. + + See Also + -------- + precision_recall_fscore_support : Compute precision, recall, F-measure and + support for each class. + precision_score : Compute the ratio ``tp / (tp + fp)`` where ``tp`` is the + number of true positives and ``fp`` the number of false positives. + balanced_accuracy_score : Compute balanced accuracy to deal with imbalanced + datasets. + multilabel_confusion_matrix : Compute a confusion matrix for each class or + sample. + PrecisionRecallDisplay.from_estimator : Plot precision-recall curve given + an estimator and some data. + PrecisionRecallDisplay.from_predictions : Plot precision-recall curve given + binary class predictions. + + Notes + ----- + When ``true positive + false negative == 0``, recall returns 0 and raises + ``UndefinedMetricWarning``. This behavior can be modified with + ``zero_division``. + + Examples + -------- + >>> import numpy as np + >>> from sklearn.metrics import recall_score + >>> y_true = [0, 1, 2, 0, 1, 2] + >>> y_pred = [0, 2, 1, 0, 0, 1] + >>> recall_score(y_true, y_pred, average='macro') + 0.33 + >>> recall_score(y_true, y_pred, average='micro') + 0.33 + >>> recall_score(y_true, y_pred, average='weighted') + 0.33 + >>> recall_score(y_true, y_pred, average=None) + array([1., 0., 0.]) + >>> y_true = [0, 0, 0, 0, 0, 0] + >>> recall_score(y_true, y_pred, average=None) + array([0.5, 0. , 0. ]) + >>> recall_score(y_true, y_pred, average=None, zero_division=1) + array([0.5, 1. , 1. ]) + >>> recall_score(y_true, y_pred, average=None, zero_division=np.nan) + array([0.5, nan, nan]) + + >>> # multilabel classification + >>> y_true = [[0, 0, 0], [1, 1, 1], [0, 1, 1]] + >>> y_pred = [[0, 0, 0], [1, 1, 1], [1, 1, 0]] + >>> recall_score(y_true, y_pred, average=None) + array([1. , 1. , 0.5]) + """ + _, r, _, _ = precision_recall_fscore_support( + y_true, + y_pred, + labels=labels, + pos_label=pos_label, + average=average, + warn_for=("recall",), + sample_weight=sample_weight, + zero_division=zero_division, + ) + return r + + +@validate_params( + { + "y_true": ["array-like"], + "y_pred": ["array-like"], + "sample_weight": ["array-like", None], + "adjusted": ["boolean"], + }, + prefer_skip_nested_validation=True, +) +def balanced_accuracy_score(y_true, y_pred, *, sample_weight=None, adjusted=False): + """Compute the balanced accuracy. + + The balanced accuracy in binary and multiclass classification problems to + deal with imbalanced datasets. It is defined as the average of recall + obtained on each class. + + The best value is 1 and the worst value is 0 when ``adjusted=False``. + + Read more in the :ref:`User Guide `. + + .. versionadded:: 0.20 + + Parameters + ---------- + y_true : array-like of shape (n_samples,) + Ground truth (correct) target values. + + y_pred : array-like of shape (n_samples,) + Estimated targets as returned by a classifier. + + sample_weight : array-like of shape (n_samples,), default=None + Sample weights. + + adjusted : bool, default=False + When true, the result is adjusted for chance, so that random + performance would score 0, while keeping perfect performance at a score + of 1. + + Returns + ------- + balanced_accuracy : float + Balanced accuracy score. + + See Also + -------- + average_precision_score : Compute average precision (AP) from prediction + scores. + precision_score : Compute the precision score. + recall_score : Compute the recall score. + roc_auc_score : Compute Area Under the Receiver Operating Characteristic + Curve (ROC AUC) from prediction scores. + + Notes + ----- + Some literature promotes alternative definitions of balanced accuracy. Our + definition is equivalent to :func:`accuracy_score` with class-balanced + sample weights, and shares desirable properties with the binary case. + See the :ref:`User Guide `. + + References + ---------- + .. [1] Brodersen, K.H.; Ong, C.S.; Stephan, K.E.; Buhmann, J.M. (2010). + The balanced accuracy and its posterior distribution. + Proceedings of the 20th International Conference on Pattern + Recognition, 3121-24. + .. [2] John. D. Kelleher, Brian Mac Namee, Aoife D'Arcy, (2015). + `Fundamentals of Machine Learning for Predictive Data Analytics: + Algorithms, Worked Examples, and Case Studies + `_. + + Examples + -------- + >>> from sklearn.metrics import balanced_accuracy_score + >>> y_true = [0, 1, 0, 0, 1, 0] + >>> y_pred = [0, 1, 0, 0, 0, 1] + >>> balanced_accuracy_score(y_true, y_pred) + 0.625 + """ + C = confusion_matrix(y_true, y_pred, sample_weight=sample_weight) + with np.errstate(divide="ignore", invalid="ignore"): + per_class = np.diag(C) / C.sum(axis=1) + if np.any(np.isnan(per_class)): + warnings.warn("y_pred contains classes not in y_true") + per_class = per_class[~np.isnan(per_class)] + score = np.mean(per_class) + if adjusted: + n_classes = len(per_class) + chance = 1 / n_classes + score -= chance + score /= 1 - chance + return float(score) + + +@validate_params( + { + "y_true": ["array-like", "sparse matrix"], + "y_pred": ["array-like", "sparse matrix"], + "labels": ["array-like", None], + "target_names": ["array-like", None], + "sample_weight": ["array-like", None], + "digits": [Interval(Integral, 0, None, closed="left")], + "output_dict": ["boolean"], + "zero_division": [ + Options(Real, {0.0, 1.0}), + "nan", + StrOptions({"warn"}), + ], + }, + prefer_skip_nested_validation=True, +) +def classification_report( + y_true, + y_pred, + *, + labels=None, + target_names=None, + sample_weight=None, + digits=2, + output_dict=False, + zero_division="warn", +): + """Build a text report showing the main classification metrics. + + Read more in the :ref:`User Guide `. + + Parameters + ---------- + y_true : 1d array-like, or label indicator array / sparse matrix + Ground truth (correct) target values. + + y_pred : 1d array-like, or label indicator array / sparse matrix + Estimated targets as returned by a classifier. + + labels : array-like of shape (n_labels,), default=None + Optional list of label indices to include in the report. + + target_names : array-like of shape (n_labels,), default=None + Optional display names matching the labels (same order). + + sample_weight : array-like of shape (n_samples,), default=None + Sample weights. + + digits : int, default=2 + Number of digits for formatting output floating point values. + When ``output_dict`` is ``True``, this will be ignored and the + returned values will not be rounded. + + output_dict : bool, default=False + If True, return output as dict. + + .. versionadded:: 0.20 + + zero_division : {"warn", 0.0, 1.0, np.nan}, default="warn" + Sets the value to return when there is a zero division. If set to + "warn", this acts as 0, but warnings are also raised. + + .. versionadded:: 1.3 + `np.nan` option was added. + + Returns + ------- + report : str or dict + Text summary of the precision, recall, F1 score for each class. + Dictionary returned if output_dict is True. Dictionary has the + following structure:: + + {'label 1': {'precision':0.5, + 'recall':1.0, + 'f1-score':0.67, + 'support':1}, + 'label 2': { ... }, + ... + } + + The reported averages include macro average (averaging the unweighted + mean per label), weighted average (averaging the support-weighted mean + per label), and sample average (only for multilabel classification). + Micro average (averaging the total true positives, false negatives and + false positives) is only shown for multi-label or multi-class + with a subset of classes, because it corresponds to accuracy + otherwise and would be the same for all metrics. + See also :func:`precision_recall_fscore_support` for more details + on averages. + + Note that in binary classification, recall of the positive class + is also known as "sensitivity"; recall of the negative class is + "specificity". + + See Also + -------- + precision_recall_fscore_support: Compute precision, recall, F-measure and + support for each class. + confusion_matrix: Compute confusion matrix to evaluate the accuracy of a + classification. + multilabel_confusion_matrix: Compute a confusion matrix for each class or sample. + + Examples + -------- + >>> from sklearn.metrics import classification_report + >>> y_true = [0, 1, 2, 2, 2] + >>> y_pred = [0, 0, 2, 2, 1] + >>> target_names = ['class 0', 'class 1', 'class 2'] + >>> print(classification_report(y_true, y_pred, target_names=target_names)) + precision recall f1-score support + + class 0 0.50 1.00 0.67 1 + class 1 0.00 0.00 0.00 1 + class 2 1.00 0.67 0.80 3 + + accuracy 0.60 5 + macro avg 0.50 0.56 0.49 5 + weighted avg 0.70 0.60 0.61 5 + + >>> y_pred = [1, 1, 0] + >>> y_true = [1, 1, 1] + >>> print(classification_report(y_true, y_pred, labels=[1, 2, 3])) + precision recall f1-score support + + 1 1.00 0.67 0.80 3 + 2 0.00 0.00 0.00 0 + 3 0.00 0.00 0.00 0 + + micro avg 1.00 0.67 0.80 3 + macro avg 0.33 0.22 0.27 3 + weighted avg 1.00 0.67 0.80 3 + + """ + + y_true, y_pred = attach_unique(y_true, y_pred) + y_type, y_true, y_pred = _check_targets(y_true, y_pred) + + if labels is None: + labels = unique_labels(y_true, y_pred) + labels_given = False + else: + labels = np.asarray(labels) + labels_given = True + + # labelled micro average + micro_is_accuracy = (y_type == "multiclass" or y_type == "binary") and ( + not labels_given or (set(labels) >= set(unique_labels(y_true, y_pred))) + ) + + if target_names is not None and len(labels) != len(target_names): + if labels_given: + warnings.warn( + "labels size, {0}, does not match size of target_names, {1}".format( + len(labels), len(target_names) + ) + ) + else: + raise ValueError( + "Number of classes, {0}, does not match size of " + "target_names, {1}. Try specifying the labels " + "parameter".format(len(labels), len(target_names)) + ) + if target_names is None: + target_names = ["%s" % l for l in labels] + + headers = ["precision", "recall", "f1-score", "support"] + # compute per-class results without averaging + p, r, f1, s = precision_recall_fscore_support( + y_true, + y_pred, + labels=labels, + average=None, + sample_weight=sample_weight, + zero_division=zero_division, + ) + rows = zip(target_names, p, r, f1, s) + + if y_type.startswith("multilabel"): + average_options = ("micro", "macro", "weighted", "samples") + else: + average_options = ("micro", "macro", "weighted") + + if output_dict: + report_dict = {label[0]: label[1:] for label in rows} + for label, scores in report_dict.items(): + report_dict[label] = dict(zip(headers, [float(i) for i in scores])) + else: + longest_last_line_heading = "weighted avg" + name_width = max(len(cn) for cn in target_names) + width = max(name_width, len(longest_last_line_heading), digits) + head_fmt = "{:>{width}s} " + " {:>9}" * len(headers) + report = head_fmt.format("", *headers, width=width) + report += "\n\n" + row_fmt = "{:>{width}s} " + " {:>9.{digits}f}" * 3 + " {:>9}\n" + for row in rows: + report += row_fmt.format(*row, width=width, digits=digits) + report += "\n" + + # compute all applicable averages + for average in average_options: + if average.startswith("micro") and micro_is_accuracy: + line_heading = "accuracy" + else: + line_heading = average + " avg" + + # compute averages with specified averaging method + avg_p, avg_r, avg_f1, _ = precision_recall_fscore_support( + y_true, + y_pred, + labels=labels, + average=average, + sample_weight=sample_weight, + zero_division=zero_division, + ) + avg = [avg_p, avg_r, avg_f1, np.sum(s)] + + if output_dict: + report_dict[line_heading] = dict(zip(headers, [float(i) for i in avg])) + else: + if line_heading == "accuracy": + row_fmt_accuracy = ( + "{:>{width}s} " + + " {:>9.{digits}}" * 2 + + " {:>9.{digits}f}" + + " {:>9}\n" + ) + report += row_fmt_accuracy.format( + line_heading, "", "", *avg[2:], width=width, digits=digits + ) + else: + report += row_fmt.format(line_heading, *avg, width=width, digits=digits) + + if output_dict: + if "accuracy" in report_dict.keys(): + report_dict["accuracy"] = report_dict["accuracy"]["precision"] + return report_dict + else: + return report + + +@validate_params( + { + "y_true": ["array-like", "sparse matrix"], + "y_pred": ["array-like", "sparse matrix"], + "sample_weight": ["array-like", None], + }, + prefer_skip_nested_validation=True, +) +def hamming_loss(y_true, y_pred, *, sample_weight=None): + """Compute the average Hamming loss. + + The Hamming loss is the fraction of labels that are incorrectly predicted. + + Read more in the :ref:`User Guide `. + + Parameters + ---------- + y_true : 1d array-like, or label indicator array / sparse matrix + Ground truth (correct) labels. + + y_pred : 1d array-like, or label indicator array / sparse matrix + Predicted labels, as returned by a classifier. + + sample_weight : array-like of shape (n_samples,), default=None + Sample weights. + + .. versionadded:: 0.18 + + Returns + ------- + loss : float or int + Return the average Hamming loss between element of ``y_true`` and + ``y_pred``. + + See Also + -------- + accuracy_score : Compute the accuracy score. By default, the function will + return the fraction of correct predictions divided by the total number + of predictions. + jaccard_score : Compute the Jaccard similarity coefficient score. + zero_one_loss : Compute the Zero-one classification loss. By default, the + function will return the percentage of imperfectly predicted subsets. + + Notes + ----- + In multiclass classification, the Hamming loss corresponds to the Hamming + distance between ``y_true`` and ``y_pred`` which is equivalent to the + subset ``zero_one_loss`` function, when `normalize` parameter is set to + True. + + In multilabel classification, the Hamming loss is different from the + subset zero-one loss. The zero-one loss considers the entire set of labels + for a given sample incorrect if it does not entirely match the true set of + labels. Hamming loss is more forgiving in that it penalizes only the + individual labels. + + The Hamming loss is upperbounded by the subset zero-one loss, when + `normalize` parameter is set to True. It is always between 0 and 1, + lower being better. + + References + ---------- + .. [1] Grigorios Tsoumakas, Ioannis Katakis. Multi-Label Classification: + An Overview. International Journal of Data Warehousing & Mining, + 3(3), 1-13, July-September 2007. + + .. [2] `Wikipedia entry on the Hamming distance + `_. + + Examples + -------- + >>> from sklearn.metrics import hamming_loss + >>> y_pred = [1, 2, 3, 4] + >>> y_true = [2, 2, 3, 4] + >>> hamming_loss(y_true, y_pred) + 0.25 + + In the multilabel case with binary label indicators: + + >>> import numpy as np + >>> hamming_loss(np.array([[0, 1], [1, 1]]), np.zeros((2, 2))) + 0.75 + """ + y_true, y_pred = attach_unique(y_true, y_pred) + y_type, y_true, y_pred = _check_targets(y_true, y_pred) + check_consistent_length(y_true, y_pred, sample_weight) + + xp, _, device = get_namespace_and_device(y_true, y_pred, sample_weight) + + if sample_weight is None: + weight_average = 1.0 + else: + sample_weight = xp.asarray(sample_weight, device=device) + weight_average = _average(sample_weight, xp=xp) + + if y_type.startswith("multilabel"): + n_differences = _count_nonzero( + y_true - y_pred, xp=xp, device=device, sample_weight=sample_weight + ) + return float(n_differences) / ( + y_true.shape[0] * y_true.shape[1] * weight_average + ) + + elif y_type in ["binary", "multiclass"]: + return float(_average(y_true != y_pred, weights=sample_weight, normalize=True)) + else: + raise ValueError("{0} is not supported".format(y_type)) + + +@validate_params( + { + "y_true": ["array-like"], + "y_pred": ["array-like"], + "normalize": ["boolean"], + "sample_weight": ["array-like", None], + "labels": ["array-like", None], + }, + prefer_skip_nested_validation=True, +) +def log_loss(y_true, y_pred, *, normalize=True, sample_weight=None, labels=None): + r"""Log loss, aka logistic loss or cross-entropy loss. + + This is the loss function used in (multinomial) logistic regression + and extensions of it such as neural networks, defined as the negative + log-likelihood of a logistic model that returns ``y_pred`` probabilities + for its training data ``y_true``. + The log loss is only defined for two or more labels. + For a single sample with true label :math:`y \in \{0,1\}` and + a probability estimate :math:`p = \operatorname{Pr}(y = 1)`, the log + loss is: + + .. math:: + L_{\log}(y, p) = -(y \log (p) + (1 - y) \log (1 - p)) + + Read more in the :ref:`User Guide `. + + Parameters + ---------- + y_true : array-like or label indicator matrix + Ground truth (correct) labels for n_samples samples. + + y_pred : array-like of float, shape = (n_samples, n_classes) or (n_samples,) + Predicted probabilities, as returned by a classifier's + predict_proba method. If ``y_pred.shape = (n_samples,)`` + the probabilities provided are assumed to be that of the + positive class. The labels in ``y_pred`` are assumed to be + ordered alphabetically, as done by + :class:`~sklearn.preprocessing.LabelBinarizer`. + + `y_pred` values are clipped to `[eps, 1-eps]` where `eps` is the machine + precision for `y_pred`'s dtype. + + normalize : bool, default=True + If true, return the mean loss per sample. + Otherwise, return the sum of the per-sample losses. + + sample_weight : array-like of shape (n_samples,), default=None + Sample weights. + + labels : array-like, default=None + If not provided, labels will be inferred from y_true. If ``labels`` + is ``None`` and ``y_pred`` has shape (n_samples,) the labels are + assumed to be binary and are inferred from ``y_true``. + + .. versionadded:: 0.18 + + Returns + ------- + loss : float + Log loss, aka logistic loss or cross-entropy loss. + + Notes + ----- + The logarithm used is the natural logarithm (base-e). + + References + ---------- + C.M. Bishop (2006). Pattern Recognition and Machine Learning. Springer, + p. 209. + + Examples + -------- + >>> from sklearn.metrics import log_loss + >>> log_loss(["spam", "ham", "ham", "spam"], + ... [[.1, .9], [.9, .1], [.8, .2], [.35, .65]]) + 0.21616 + """ + transformed_labels, y_pred = _validate_multiclass_probabilistic_prediction( + y_true, y_pred, sample_weight, labels + ) + + # Clipping + eps = np.finfo(y_pred.dtype).eps + y_pred = np.clip(y_pred, eps, 1 - eps) + + loss = -xlogy(transformed_labels, y_pred).sum(axis=1) + + return float(_average(loss, weights=sample_weight, normalize=normalize)) + + +@validate_params( + { + "y_true": ["array-like"], + "pred_decision": ["array-like"], + "labels": ["array-like", None], + "sample_weight": ["array-like", None], + }, + prefer_skip_nested_validation=True, +) +def hinge_loss(y_true, pred_decision, *, labels=None, sample_weight=None): + """Average hinge loss (non-regularized). + + In binary class case, assuming labels in y_true are encoded with +1 and -1, + when a prediction mistake is made, ``margin = y_true * pred_decision`` is + always negative (since the signs disagree), implying ``1 - margin`` is + always greater than 1. The cumulated hinge loss is therefore an upper + bound of the number of mistakes made by the classifier. + + In multiclass case, the function expects that either all the labels are + included in y_true or an optional labels argument is provided which + contains all the labels. The multilabel margin is calculated according + to Crammer-Singer's method. As in the binary case, the cumulated hinge loss + is an upper bound of the number of mistakes made by the classifier. + + Read more in the :ref:`User Guide `. + + Parameters + ---------- + y_true : array-like of shape (n_samples,) + True target, consisting of integers of two values. The positive label + must be greater than the negative label. + + pred_decision : array-like of shape (n_samples,) or (n_samples, n_classes) + Predicted decisions, as output by decision_function (floats). + + labels : array-like, default=None + Contains all the labels for the problem. Used in multiclass hinge loss. + + sample_weight : array-like of shape (n_samples,), default=None + Sample weights. + + Returns + ------- + loss : float + Average hinge loss. + + References + ---------- + .. [1] `Wikipedia entry on the Hinge loss + `_. + + .. [2] Koby Crammer, Yoram Singer. On the Algorithmic + Implementation of Multiclass Kernel-based Vector + Machines. Journal of Machine Learning Research 2, + (2001), 265-292. + + .. [3] `L1 AND L2 Regularization for Multiclass Hinge Loss Models + by Robert C. Moore, John DeNero + `_. + + Examples + -------- + >>> from sklearn import svm + >>> from sklearn.metrics import hinge_loss + >>> X = [[0], [1]] + >>> y = [-1, 1] + >>> est = svm.LinearSVC(random_state=0) + >>> est.fit(X, y) + LinearSVC(random_state=0) + >>> pred_decision = est.decision_function([[-2], [3], [0.5]]) + >>> pred_decision + array([-2.18, 2.36, 0.09]) + >>> hinge_loss([-1, 1, 1], pred_decision) + 0.30 + + In the multiclass case: + + >>> import numpy as np + >>> X = np.array([[0], [1], [2], [3]]) + >>> Y = np.array([0, 1, 2, 3]) + >>> labels = np.array([0, 1, 2, 3]) + >>> est = svm.LinearSVC() + >>> est.fit(X, Y) + LinearSVC() + >>> pred_decision = est.decision_function([[-1], [2], [3]]) + >>> y_true = [0, 2, 3] + >>> hinge_loss(y_true, pred_decision, labels=labels) + 0.56 + """ + check_consistent_length(y_true, pred_decision, sample_weight) + pred_decision = check_array(pred_decision, ensure_2d=False) + y_true = column_or_1d(y_true) + y_true_unique = np.unique(labels if labels is not None else y_true) + + if y_true_unique.size > 2: + if pred_decision.ndim <= 1: + raise ValueError( + "The shape of pred_decision cannot be 1d array" + "with a multiclass target. pred_decision shape " + "must be (n_samples, n_classes), that is " + f"({y_true.shape[0]}, {y_true_unique.size})." + f" Got: {pred_decision.shape}" + ) + + # pred_decision.ndim > 1 is true + if y_true_unique.size != pred_decision.shape[1]: + if labels is None: + raise ValueError( + "Please include all labels in y_true " + "or pass labels as third argument" + ) + else: + raise ValueError( + "The shape of pred_decision is not " + "consistent with the number of classes. " + "With a multiclass target, pred_decision " + "shape must be " + "(n_samples, n_classes), that is " + f"({y_true.shape[0]}, {y_true_unique.size}). " + f"Got: {pred_decision.shape}" + ) + if labels is None: + labels = y_true_unique + le = LabelEncoder() + le.fit(labels) + y_true = le.transform(y_true) + mask = np.ones_like(pred_decision, dtype=bool) + mask[np.arange(y_true.shape[0]), y_true] = False + margin = pred_decision[~mask] + margin -= np.max(pred_decision[mask].reshape(y_true.shape[0], -1), axis=1) + + else: + # Handles binary class case + # this code assumes that positive and negative labels + # are encoded as +1 and -1 respectively + pred_decision = column_or_1d(pred_decision) + pred_decision = np.ravel(pred_decision) + + lbin = LabelBinarizer(neg_label=-1) + y_true = lbin.fit_transform(y_true)[:, 0] + + try: + margin = y_true * pred_decision + except TypeError: + raise TypeError("pred_decision should be an array of floats.") + + losses = 1 - margin + # The hinge_loss doesn't penalize good enough predictions. + np.clip(losses, 0, None, out=losses) + return float(np.average(losses, weights=sample_weight)) + + +def _validate_binary_probabilistic_prediction(y_true, y_prob, sample_weight, pos_label): + r"""Convert y_true and y_prob in binary classification to shape (n_samples, 2) + + Parameters + ---------- + y_true : array-like of shape (n_samples,) + True labels. + + y_prob : array-like of shape (n_samples,) + Probabilities of the positive class. + + sample_weight : array-like of shape (n_samples,), default=None + Sample weights. + + pos_label : int, float, bool or str, default=None + Label of the positive class. If None, `pos_label` will be inferred + in the following manner: + + * if `y_true` in {-1, 1} or {0, 1}, `pos_label` defaults to 1; + * else if `y_true` contains string, an error will be raised and + `pos_label` should be explicitly specified; + * otherwise, `pos_label` defaults to the greater label, + i.e. `np.unique(y_true)[-1]`. + + Returns + ------- + transformed_labels : array of shape (n_samples, 2) + + y_prob : array of shape (n_samples, 2) + """ + # sanity checks on y_true and y_prob + y_true = column_or_1d(y_true) + y_prob = column_or_1d(y_prob) + + assert_all_finite(y_true) + assert_all_finite(y_prob) + + check_consistent_length(y_prob, y_true, sample_weight) + + y_type = type_of_target(y_true, input_name="y_true") + if y_type != "binary": + raise ValueError( + f"The type of the target inferred from y_true is {y_type} but should be " + "binary according to the shape of y_prob." + ) + + if y_prob.max() > 1: + raise ValueError(f"y_prob contains values greater than 1: {y_prob.max()}") + if y_prob.min() < 0: + raise ValueError(f"y_prob contains values less than 0: {y_prob.min()}") + + # check that pos_label is consistent with y_true + try: + pos_label = _check_pos_label_consistency(pos_label, y_true) + except ValueError: + classes = np.unique(y_true) + if classes.dtype.kind not in ("O", "U", "S"): + # for backward compatibility, if classes are not string then + # `pos_label` will correspond to the greater label + pos_label = classes[-1] + else: + raise + + # convert (n_samples,) to (n_samples, 2) shape + y_true = np.array(y_true == pos_label, int) + transformed_labels = np.column_stack((1 - y_true, y_true)) + y_prob = np.column_stack((1 - y_prob, y_prob)) + + return transformed_labels, y_prob + + +@validate_params( + { + "y_true": ["array-like"], + "y_proba": ["array-like"], + "sample_weight": ["array-like", None], + "pos_label": [Real, str, "boolean", None], + "labels": ["array-like", None], + "scale_by_half": ["boolean", StrOptions({"auto"})], + }, + prefer_skip_nested_validation=True, +) +def brier_score_loss( + y_true, + y_proba, + *, + sample_weight=None, + pos_label=None, + labels=None, + scale_by_half="auto", +): + r"""Compute the Brier score loss. + + The smaller the Brier score loss, the better, hence the naming with "loss". + The Brier score measures the mean squared difference between the predicted + probability and the actual outcome. The Brier score is a strictly proper scoring + rule. + + Read more in the :ref:`User Guide `. + + Parameters + ---------- + y_true : array-like of shape (n_samples,) + True targets. + + y_proba : array-like of shape (n_samples,) or (n_samples, n_classes) + Predicted probabilities. If `y_proba.shape = (n_samples,)` + the probabilities provided are assumed to be that of the + positive class. If `y_proba.shape = (n_samples, n_classes)` + the columns in `y_proba` are assumed to correspond to the + labels in alphabetical order, as done by + :class:`~sklearn.preprocessing.LabelBinarizer`. + + sample_weight : array-like of shape (n_samples,), default=None + Sample weights. + + pos_label : int, float, bool or str, default=None + Label of the positive class when `y_proba.shape = (n_samples,)`. + If not provided, `pos_label` will be inferred in the + following manner: + + * if `y_true` in {-1, 1} or {0, 1}, `pos_label` defaults to 1; + * else if `y_true` contains string, an error will be raised and + `pos_label` should be explicitly specified; + * otherwise, `pos_label` defaults to the greater label, + i.e. `np.unique(y_true)[-1]`. + + labels : array-like of shape (n_classes,), default=None + Class labels when `y_proba.shape = (n_samples, n_classes)`. + If not provided, labels will be inferred from `y_true`. + + .. versionadded:: 1.7 + + scale_by_half : bool or "auto", default="auto" + When True, scale the Brier score by 1/2 to lie in the [0, 1] range instead + of the [0, 2] range. The default "auto" option implements the rescaling to + [0, 1] only for binary classification (as customary) but keeps the + original [0, 2] range for multiclass classification. + + .. versionadded:: 1.7 + + Returns + ------- + score : float + Brier score loss. + + Notes + ----- + + For :math:`N` observations labeled from :math:`C` possible classes, the Brier + score is defined as: + + .. math:: + \frac{1}{N}\sum_{i=1}^{N}\sum_{c=1}^{C}(y_{ic} - \hat{p}_{ic})^{2} + + where :math:`y_{ic}` is 1 if observation `i` belongs to class `c`, + otherwise 0 and :math:`\hat{p}_{ic}` is the predicted probability for + observation `i` to belong to class `c`. + The Brier score then ranges between :math:`[0, 2]`. + + In binary classification tasks the Brier score is usually divided by + two and then ranges between :math:`[0, 1]`. It can be alternatively + written as: + + .. math:: + \frac{1}{N}\sum_{i=1}^{N}(y_{i} - \hat{p}_{i})^{2} + + where :math:`y_{i}` is the binary target and :math:`\hat{p}_{i}` + is the predicted probability of the positive class. + + References + ---------- + .. [1] `Wikipedia entry for the Brier score + `_. + + Examples + -------- + >>> import numpy as np + >>> from sklearn.metrics import brier_score_loss + >>> y_true = np.array([0, 1, 1, 0]) + >>> y_true_categorical = np.array(["spam", "ham", "ham", "spam"]) + >>> y_prob = np.array([0.1, 0.9, 0.8, 0.3]) + >>> brier_score_loss(y_true, y_prob) + 0.0375 + >>> brier_score_loss(y_true, 1-y_prob, pos_label=0) + 0.0375 + >>> brier_score_loss(y_true_categorical, y_prob, pos_label="ham") + 0.0375 + >>> brier_score_loss(y_true, np.array(y_prob) > 0.5) + 0.0 + >>> brier_score_loss(y_true, y_prob, scale_by_half=False) + 0.075 + >>> brier_score_loss( + ... ["eggs", "ham", "spam"], + ... [[0.8, 0.1, 0.1], [0.2, 0.7, 0.1], [0.2, 0.2, 0.6]], + ... labels=["eggs", "ham", "spam"] + ... ) + 0.146 + """ + y_proba = check_array( + y_proba, ensure_2d=False, dtype=[np.float64, np.float32, np.float16] + ) + + if y_proba.ndim == 1 or y_proba.shape[1] == 1: + transformed_labels, y_proba = _validate_binary_probabilistic_prediction( + y_true, y_proba, sample_weight, pos_label + ) + else: + transformed_labels, y_proba = _validate_multiclass_probabilistic_prediction( + y_true, y_proba, sample_weight, labels + ) + + brier_score = np.average( + np.sum((transformed_labels - y_proba) ** 2, axis=1), weights=sample_weight + ) + + if scale_by_half == "auto": + scale_by_half = y_proba.ndim == 1 or y_proba.shape[1] < 3 + if scale_by_half: + brier_score *= 0.5 + + return float(brier_score) + + +@validate_params( + { + "y_true": ["array-like"], + "y_pred": ["array-like"], + "sample_weight": ["array-like", None], + "labels": ["array-like", None], + }, + prefer_skip_nested_validation=True, +) +def d2_log_loss_score(y_true, y_pred, *, sample_weight=None, labels=None): + """ + :math:`D^2` score function, fraction of log loss explained. + + Best possible score is 1.0 and it can be negative (because the model can be + arbitrarily worse). A model that always predicts the per-class proportions + of `y_true`, disregarding the input features, gets a D^2 score of 0.0. + + Read more in the :ref:`User Guide `. + + .. versionadded:: 1.5 + + Parameters + ---------- + y_true : array-like or label indicator matrix + The actuals labels for the n_samples samples. + + y_pred : array-like of shape (n_samples, n_classes) or (n_samples,) + Predicted probabilities, as returned by a classifier's + predict_proba method. If ``y_pred.shape = (n_samples,)`` + the probabilities provided are assumed to be that of the + positive class. The labels in ``y_pred`` are assumed to be + ordered alphabetically, as done by + :class:`~sklearn.preprocessing.LabelBinarizer`. + + sample_weight : array-like of shape (n_samples,), default=None + Sample weights. + + labels : array-like, default=None + If not provided, labels will be inferred from y_true. If ``labels`` + is ``None`` and ``y_pred`` has shape (n_samples,) the labels are + assumed to be binary and are inferred from ``y_true``. + + Returns + ------- + d2 : float or ndarray of floats + The D^2 score. + + Notes + ----- + This is not a symmetric function. + + Like R^2, D^2 score may be negative (it need not actually be the square of + a quantity D). + + This metric is not well-defined for a single sample and will return a NaN + value if n_samples is less than two. + """ + y_pred = check_array(y_pred, ensure_2d=False, dtype="numeric") + check_consistent_length(y_pred, y_true, sample_weight) + if _num_samples(y_pred) < 2: + msg = "D^2 score is not well-defined with less than two samples." + warnings.warn(msg, UndefinedMetricWarning) + return float("nan") + + # log loss of the fitted model + numerator = log_loss( + y_true=y_true, + y_pred=y_pred, + normalize=False, + sample_weight=sample_weight, + labels=labels, + ) + + # Proportion of labels in the dataset + weights = _check_sample_weight(sample_weight, y_true) + + # If labels is passed, augment y_true to ensure that all labels are represented + # Use 0 weight for the new samples to not affect the counts + y_true_, weights_ = ( + ( + np.concatenate([y_true, labels]), + np.concatenate([weights, np.zeros_like(weights, shape=len(labels))]), + ) + if labels is not None + else (y_true, weights) + ) + + _, y_value_indices = np.unique(y_true_, return_inverse=True) + counts = np.bincount(y_value_indices, weights=weights_) + y_prob = counts / weights.sum() + y_pred_null = np.tile(y_prob, (len(y_true), 1)) + + # log loss of the null model + denominator = log_loss( + y_true=y_true, + y_pred=y_pred_null, + normalize=False, + sample_weight=sample_weight, + labels=labels, + ) + + return float(1 - (numerator / denominator)) diff --git a/shared/package-files/6f/6fea5f2083dc2b16cc26edb37fed11fa6c045ea90ba8f04a3b7a61c8f5efc2ea/_sample_dirichlet.h b/shared/package-files/6f/6fea5f2083dc2b16cc26edb37fed11fa6c045ea90ba8f04a3b7a61c8f5efc2ea/_sample_dirichlet.h new file mode 100644 index 0000000000000000000000000000000000000000..a912e8945ad3bb8b4770a79da7c0b15ee507b479 --- /dev/null +++ b/shared/package-files/6f/6fea5f2083dc2b16cc26edb37fed11fa6c045ea90ba8f04a3b7a61c8f5efc2ea/_sample_dirichlet.h @@ -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::_sample_dirichlet(Tensor self, Generator? generator=None) -> Tensor +inline at::Tensor _sample_dirichlet(const at::Tensor & self, c10::optional generator=c10::nullopt) { + return at::_ops::_sample_dirichlet::call(self, generator); +} + +// aten::_sample_dirichlet.out(Tensor self, Generator? generator=None, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & _sample_dirichlet_out(at::Tensor & out, const at::Tensor & self, c10::optional generator=c10::nullopt) { + return at::_ops::_sample_dirichlet_out::call(self, generator, out); +} +// aten::_sample_dirichlet.out(Tensor self, Generator? generator=None, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & _sample_dirichlet_outf(const at::Tensor & self, c10::optional generator, at::Tensor & out) { + return at::_ops::_sample_dirichlet_out::call(self, generator, out); +} + +} diff --git a/shared/package-files/6f/6fed5c194c0960c6801edafd81b024dd03170425d09d4e4883adfe61fd3f025b/d400 b/shared/package-files/6f/6fed5c194c0960c6801edafd81b024dd03170425d09d4e4883adfe61fd3f025b/d400 new file mode 100644 index 0000000000000000000000000000000000000000..f604db9abacb6e9f5d242981c143ab43f4a7956c Binary files /dev/null and b/shared/package-files/6f/6fed5c194c0960c6801edafd81b024dd03170425d09d4e4883adfe61fd3f025b/d400 differ diff --git a/shared/package-files/6f/6fed5c194c0960c6801edafd81b024dd03170425d09d4e4883adfe61fd3f025b/d400-dg b/shared/package-files/6f/6fed5c194c0960c6801edafd81b024dd03170425d09d4e4883adfe61fd3f025b/d400-dg new file mode 100644 index 0000000000000000000000000000000000000000..f604db9abacb6e9f5d242981c143ab43f4a7956c Binary files /dev/null and b/shared/package-files/6f/6fed5c194c0960c6801edafd81b024dd03170425d09d4e4883adfe61fd3f025b/d400-dg differ diff --git a/shared/package-files/6f/6fed5c194c0960c6801edafd81b024dd03170425d09d4e4883adfe61fd3f025b/d450 b/shared/package-files/6f/6fed5c194c0960c6801edafd81b024dd03170425d09d4e4883adfe61fd3f025b/d450 new file mode 100644 index 0000000000000000000000000000000000000000..f604db9abacb6e9f5d242981c143ab43f4a7956c Binary files /dev/null and b/shared/package-files/6f/6fed5c194c0960c6801edafd81b024dd03170425d09d4e4883adfe61fd3f025b/d450 differ diff --git a/shared/package-files/6f/6fed5c194c0960c6801edafd81b024dd03170425d09d4e4883adfe61fd3f025b/d450-dg b/shared/package-files/6f/6fed5c194c0960c6801edafd81b024dd03170425d09d4e4883adfe61fd3f025b/d450-dg new file mode 100644 index 0000000000000000000000000000000000000000..f604db9abacb6e9f5d242981c143ab43f4a7956c Binary files /dev/null and b/shared/package-files/6f/6fed5c194c0960c6801edafd81b024dd03170425d09d4e4883adfe61fd3f025b/d450-dg differ diff --git a/shared/package-files/6f/6ff00ca62223de696c9595c7327c0ea83748e8e4579cee0c71ba631a1e7574bd/test_ndgriddata.py b/shared/package-files/6f/6ff00ca62223de696c9595c7327c0ea83748e8e4579cee0c71ba631a1e7574bd/test_ndgriddata.py new file mode 100644 index 0000000000000000000000000000000000000000..047a940b3efcb24ec85a94a87dd1050baa01f165 --- /dev/null +++ b/shared/package-files/6f/6ff00ca62223de696c9595c7327c0ea83748e8e4579cee0c71ba631a1e7574bd/test_ndgriddata.py @@ -0,0 +1,308 @@ +import numpy as np +from scipy._lib._array_api import ( + xp_assert_equal, xp_assert_close +) +import pytest +from pytest import raises as assert_raises + +from scipy.interpolate import (griddata, NearestNDInterpolator, + LinearNDInterpolator, + CloughTocher2DInterpolator) +from scipy._lib._testutils import _run_concurrent_barrier + + +parametrize_interpolators = pytest.mark.parametrize( + "interpolator", [NearestNDInterpolator, LinearNDInterpolator, + CloughTocher2DInterpolator] +) +parametrize_methods = pytest.mark.parametrize( + 'method', + ('nearest', 'linear', 'cubic'), +) +parametrize_rescale = pytest.mark.parametrize( + 'rescale', + (True, False), +) + + +class TestGriddata: + def test_fill_value(self): + x = [(0,0), (0,1), (1,0)] + y = [1, 2, 3] + + yi = griddata(x, y, [(1,1), (1,2), (0,0)], fill_value=-1) + xp_assert_equal(yi, [-1., -1, 1]) + + yi = griddata(x, y, [(1,1), (1,2), (0,0)]) + xp_assert_equal(yi, [np.nan, np.nan, 1]) + + @parametrize_methods + @parametrize_rescale + def test_alternative_call(self, method, rescale): + x = np.array([(0,0), (-0.5,-0.5), (-0.5,0.5), (0.5, 0.5), (0.25, 0.3)], + dtype=np.float64) + y = (np.arange(x.shape[0], dtype=np.float64)[:,None] + + np.array([0,1])[None,:]) + + msg = repr((method, rescale)) + yi = griddata((x[:,0], x[:,1]), y, (x[:,0], x[:,1]), method=method, + rescale=rescale) + xp_assert_close(y, yi, atol=1e-14, err_msg=msg) + + @parametrize_methods + @parametrize_rescale + def test_multivalue_2d(self, method, rescale): + x = np.array([(0,0), (-0.5,-0.5), (-0.5,0.5), (0.5, 0.5), (0.25, 0.3)], + dtype=np.float64) + y = (np.arange(x.shape[0], dtype=np.float64)[:,None] + + np.array([0,1])[None,:]) + + msg = repr((method, rescale)) + yi = griddata(x, y, x, method=method, rescale=rescale) + xp_assert_close(y, yi, atol=1e-14, err_msg=msg) + + @parametrize_methods + @parametrize_rescale + def test_multipoint_2d(self, method, rescale): + x = np.array([(0,0), (-0.5,-0.5), (-0.5,0.5), (0.5, 0.5), (0.25, 0.3)], + dtype=np.float64) + y = np.arange(x.shape[0], dtype=np.float64) + + xi = x[:,None,:] + np.array([0,0,0])[None,:,None] + + msg = repr((method, rescale)) + yi = griddata(x, y, xi, method=method, rescale=rescale) + + assert yi.shape == (5, 3), msg + xp_assert_close(yi, np.tile(y[:,None], (1, 3)), + atol=1e-14, err_msg=msg) + + @parametrize_methods + @parametrize_rescale + def test_complex_2d(self, method, rescale): + x = np.array([(0,0), (-0.5,-0.5), (-0.5,0.5), (0.5, 0.5), (0.25, 0.3)], + dtype=np.float64) + y = np.arange(x.shape[0], dtype=np.float64) + y = y - 2j*y[::-1] + + xi = x[:,None,:] + np.array([0,0,0])[None,:,None] + + msg = repr((method, rescale)) + yi = griddata(x, y, xi, method=method, rescale=rescale) + + assert yi.shape == (5, 3) + xp_assert_close(yi, np.tile(y[:,None], (1, 3)), + atol=1e-14, err_msg=msg) + + @parametrize_methods + def test_1d(self, method): + x = np.array([1, 2.5, 3, 4.5, 5, 6]) + y = np.array([1, 2, 0, 3.9, 2, 1]) + + xp_assert_close(griddata(x, y, x, method=method), y, + err_msg=method, atol=1e-14) + xp_assert_close(griddata(x.reshape(6, 1), y, x, method=method), y, + err_msg=method, atol=1e-14) + xp_assert_close(griddata((x,), y, (x,), method=method), y, + err_msg=method, atol=1e-14) + + def test_1d_borders(self): + # Test for nearest neighbor case with xi outside + # the range of the values. + x = np.array([1, 2.5, 3, 4.5, 5, 6]) + y = np.array([1, 2, 0, 3.9, 2, 1]) + xi = np.array([0.9, 6.5]) + yi_should = np.array([1.0, 1.0]) + + method = 'nearest' + xp_assert_close(griddata(x, y, xi, + method=method), yi_should, + err_msg=method, + atol=1e-14) + xp_assert_close(griddata(x.reshape(6, 1), y, xi, + method=method), yi_should, + err_msg=method, + atol=1e-14) + xp_assert_close(griddata((x, ), y, (xi, ), + method=method), yi_should, + err_msg=method, + atol=1e-14) + + @parametrize_methods + def test_1d_unsorted(self, method): + x = np.array([2.5, 1, 4.5, 5, 6, 3]) + y = np.array([1, 2, 0, 3.9, 2, 1]) + + xp_assert_close(griddata(x, y, x, method=method), y, + err_msg=method, atol=1e-10) + xp_assert_close(griddata(x.reshape(6, 1), y, x, method=method), y, + err_msg=method, atol=1e-10) + xp_assert_close(griddata((x,), y, (x,), method=method), y, + err_msg=method, atol=1e-10) + + @parametrize_methods + def test_square_rescale_manual(self, method): + points = np.array([(0,0), (0,100), (10,100), (10,0), (1, 5)], dtype=np.float64) + points_rescaled = np.array([(0,0), (0,1), (1,1), (1,0), (0.1, 0.05)], + dtype=np.float64) + values = np.array([1., 2., -3., 5., 9.], dtype=np.float64) + + xx, yy = np.broadcast_arrays(np.linspace(0, 10, 14)[:,None], + np.linspace(0, 100, 14)[None,:]) + xx = xx.ravel() + yy = yy.ravel() + xi = np.array([xx, yy]).T.copy() + + msg = method + zi = griddata(points_rescaled, values, xi/np.array([10, 100.]), + method=method) + zi_rescaled = griddata(points, values, xi, method=method, + rescale=True) + xp_assert_close(zi, zi_rescaled, err_msg=msg, + atol=1e-12) + + @parametrize_methods + def test_xi_1d(self, method): + # Check that 1-D xi is interpreted as a coordinate + x = np.array([(0,0), (-0.5,-0.5), (-0.5,0.5), (0.5, 0.5), (0.25, 0.3)], + dtype=np.float64) + y = np.arange(x.shape[0], dtype=np.float64) + y = y - 2j*y[::-1] + + xi = np.array([0.5, 0.5]) + + p1 = griddata(x, y, xi, method=method) + p2 = griddata(x, y, xi[None,:], method=method) + xp_assert_close(p1, p2, err_msg=method) + + xi1 = np.array([0.5]) + xi3 = np.array([0.5, 0.5, 0.5]) + assert_raises(ValueError, griddata, x, y, xi1, + method=method) + assert_raises(ValueError, griddata, x, y, xi3, + method=method) + + +class TestNearestNDInterpolator: + def test_nearest_options(self): + # smoke test that NearestNDInterpolator accept cKDTree options + npts, nd = 4, 3 + x = np.arange(npts*nd).reshape((npts, nd)) + y = np.arange(npts) + nndi = NearestNDInterpolator(x, y) + + opts = {'balanced_tree': False, 'compact_nodes': False} + nndi_o = NearestNDInterpolator(x, y, tree_options=opts) + xp_assert_close(nndi(x), nndi_o(x), atol=1e-14) + + def test_nearest_list_argument(self): + nd = np.array([[0, 0, 0, 0, 1, 0, 1], + [0, 0, 0, 0, 0, 1, 1], + [0, 0, 0, 0, 1, 1, 2]]) + d = nd[:, 3:] + + # z is np.array + NI = NearestNDInterpolator((d[0], d[1]), d[2]) + xp_assert_equal(NI([0.1, 0.9], [0.1, 0.9]), [0.0, 2.0]) + + # z is list + NI = NearestNDInterpolator((d[0], d[1]), list(d[2])) + xp_assert_equal(NI([0.1, 0.9], [0.1, 0.9]), [0.0, 2.0]) + + def test_nearest_query_options(self): + nd = np.array([[0, 0.5, 0, 1], + [0, 0, 0.5, 1], + [0, 1, 1, 2]]) + delta = 0.1 + query_points = [0 + delta, 1 + delta], [0 + delta, 1 + delta] + + # case 1 - query max_dist is smaller than + # the query points' nearest distance to nd. + NI = NearestNDInterpolator((nd[0], nd[1]), nd[2]) + distance_upper_bound = np.sqrt(delta ** 2 + delta ** 2) - 1e-7 + xp_assert_equal(NI(query_points, distance_upper_bound=distance_upper_bound), + [np.nan, np.nan]) + + # case 2 - query p is inf, will return [0, 2] + distance_upper_bound = np.sqrt(delta ** 2 + delta ** 2) - 1e-7 + p = np.inf + xp_assert_equal( + NI(query_points, distance_upper_bound=distance_upper_bound, p=p), + [0.0, 2.0] + ) + + # case 3 - query max_dist is larger, so should return non np.nan + distance_upper_bound = np.sqrt(delta ** 2 + delta ** 2) + 1e-7 + xp_assert_equal( + NI(query_points, distance_upper_bound=distance_upper_bound), + [0.0, 2.0] + ) + + def test_nearest_query_valid_inputs(self): + nd = np.array([[0, 1, 0, 1], + [0, 0, 1, 1], + [0, 1, 1, 2]]) + NI = NearestNDInterpolator((nd[0], nd[1]), nd[2]) + with assert_raises(TypeError): + NI([0.5, 0.5], query_options="not a dictionary") + + @pytest.mark.thread_unsafe + def test_concurrency(self): + npts, nd = 50, 3 + x = np.arange(npts * nd).reshape((npts, nd)) + y = np.arange(npts) + nndi = NearestNDInterpolator(x, y) + + def worker_fn(_, spl): + spl(x) + + _run_concurrent_barrier(10, worker_fn, nndi) + + +class TestNDInterpolators: + @parametrize_interpolators + def test_broadcastable_input(self, interpolator): + # input data + rng = np.random.RandomState(0) + x = rng.random(10) + y = rng.random(10) + z = np.hypot(x, y) + + # x-y grid for interpolation + X = np.linspace(min(x), max(x)) + Y = np.linspace(min(y), max(y)) + X, Y = np.meshgrid(X, Y) + XY = np.vstack((X.ravel(), Y.ravel())).T + interp = interpolator(list(zip(x, y)), z) + # single array input + interp_points0 = interp(XY) + # tuple input + interp_points1 = interp((X, Y)) + interp_points2 = interp((X, 0.0)) + # broadcastable input + interp_points3 = interp(X, Y) + interp_points4 = interp(X, 0.0) + + assert (interp_points0.size == + interp_points1.size == + interp_points2.size == + interp_points3.size == + interp_points4.size) + + @parametrize_interpolators + def test_read_only(self, interpolator): + # input data + rng = np.random.RandomState(0) + xy = rng.random((10, 2)) + x, y = xy[:, 0], xy[:, 1] + z = np.hypot(x, y) + + # interpolation points + XY = rng.random((50, 2)) + + xy.setflags(write=False) + z.setflags(write=False) + XY.setflags(write=False) + + interp = interpolator(xy, z) + interp(XY) diff --git a/shared/package-files/6f/6ff5bb05ea3f30ac9eb6aea8f30da32eed2ff289267d7de7f45e0173f3538be3/wiener.py b/shared/package-files/6f/6ff5bb05ea3f30ac9eb6aea8f30da32eed2ff289267d7de7f45e0173f3538be3/wiener.py new file mode 100644 index 0000000000000000000000000000000000000000..e60fb9e4f41a6a7d63eff9f3dbd028d94f836e32 --- /dev/null +++ b/shared/package-files/6f/6ff5bb05ea3f30ac9eb6aea8f30da32eed2ff289267d7de7f45e0173f3538be3/wiener.py @@ -0,0 +1,76 @@ +"""Functions related to the Wiener index of a graph.""" + +from itertools import chain + +from .components import is_connected, is_strongly_connected +from .shortest_paths import shortest_path_length as spl + +__all__ = ["wiener_index"] + +#: Rename the :func:`chain.from_iterable` function for the sake of +#: brevity. +chaini = chain.from_iterable + + +def wiener_index(G, weight=None): + """Returns the Wiener index of the given graph. + + The *Wiener index* of a graph is the sum of the shortest-path + distances between each pair of reachable nodes. For pairs of nodes + in undirected graphs, only one orientation of the pair is counted. + + Parameters + ---------- + G : NetworkX graph + + weight : object + The edge attribute to use as distance when computing + shortest-path distances. This is passed directly to the + :func:`networkx.shortest_path_length` function. + + Returns + ------- + float + The Wiener index of the graph `G`. + + Raises + ------ + NetworkXError + If the graph `G` is not connected. + + Notes + ----- + If a pair of nodes is not reachable, the distance is assumed to be + infinity. This means that for graphs that are not + strongly-connected, this function returns ``inf``. + + The Wiener index is not usually defined for directed graphs, however + this function uses the natural generalization of the Wiener index to + directed graphs. + + Examples + -------- + The Wiener index of the (unweighted) complete graph on *n* nodes + equals the number of pairs of the *n* nodes, since each pair of + nodes is at distance one:: + + >>> n = 10 + >>> G = nx.complete_graph(n) + >>> nx.wiener_index(G) == n * (n - 1) / 2 + True + + Graphs that are not strongly-connected have infinite Wiener index:: + + >>> G = nx.empty_graph(2) + >>> nx.wiener_index(G) + inf + + """ + is_directed = G.is_directed() + if (is_directed and not is_strongly_connected(G)) or ( + not is_directed and not is_connected(G) + ): + return float("inf") + total = sum(chaini(p.values() for v, p in spl(G, weight=weight))) + # Need to account for double counting pairs of nodes in undirected graphs. + return total if is_directed else total / 2 diff --git a/shared/package-files/6f/6ff5cfc49cd28255c7915ea6ac9be515854c1867a31263b116461cee2ef8af29/subgraph_rewriter.py b/shared/package-files/6f/6ff5cfc49cd28255c7915ea6ac9be515854c1867a31263b116461cee2ef8af29/subgraph_rewriter.py new file mode 100644 index 0000000000000000000000000000000000000000..b4972720a05dc1d46792968f6ac2d008a1e29357 --- /dev/null +++ b/shared/package-files/6f/6ff5cfc49cd28255c7915ea6ac9be515854c1867a31263b116461cee2ef8af29/subgraph_rewriter.py @@ -0,0 +1,349 @@ +from .graph_module import GraphModule +from .graph import Graph +from .node import Node +from ._symbolic_trace import symbolic_trace +from ._compatibility import compatibility + +import copy +from dataclasses import dataclass +from typing import Any, Callable, Dict, List, NamedTuple, Optional, Set, Union, TYPE_CHECKING +import torch + +if TYPE_CHECKING: + from .passes.utils.matcher_with_name_node_map_utils import InternalMatch + +__all__ = ['Match', 'replace_pattern', 'replace_pattern_with_filters', "ReplacedPatterns"] + +@compatibility(is_backward_compatible=True) +class Match(NamedTuple): + # Node from which the match was found + anchor: Node + # Maps nodes in the pattern subgraph to nodes in the larger graph + nodes_map: Dict[Node, Node] + +@compatibility(is_backward_compatible=False) +@dataclass +class ReplacedPatterns: + # Node from which the match was found + anchor: Node + # Maps nodes in the pattern subgraph to nodes in the larger graph + nodes_map: Dict[Node, Node] + # List of nodes that were added into the graph + replacements: List[Node] + +def _replace_attributes(gm: GraphModule, replacement: torch.nn.Module) -> None: + gm.delete_all_unused_submodules() + + if isinstance(replacement, GraphModule): + replacement.graph.lint() + + def try_get_attr(gm: torch.nn.Module, target: str) -> Optional[Any]: + module_path, _, attr_name = target.rpartition(".") + try: + mod: torch.nn.Module = gm.get_submodule(module_path) + except AttributeError: + return None + attr = getattr(mod, attr_name, None) + return attr + + for node in gm.graph.nodes: + if node.op == "call_module" or node.op == "get_attr": + + gm_attr = try_get_attr(gm, node.target) + replacement_attr = try_get_attr(replacement, node.target) + + # CASE 1: This target already exists as an attribute in our + # result GraphModule. Whether or not it exists in + # `replacement`, the existing submodule takes precedence. + if gm_attr is not None: + continue + + # CASE 2: The target exists as an attribute in `replacement` + # only, so we need to copy it over. + elif replacement_attr is not None: + new_attr = copy.deepcopy(replacement_attr) + if isinstance(replacement_attr, torch.nn.Module): + gm.add_submodule(node.target, new_attr) + else: + setattr(gm, node.target, new_attr) + + # CASE 3: The target doesn't exist as an attribute in `gm` + # or `replacement` + else: + raise RuntimeError("Attempted to create a \"", node.op, + "\" node during subgraph rewriting " + f"with target {node.target}, but " + "the referenced attribute does not " + "exist in the replacement GraphModule") + + gm.graph.lint() + + +@compatibility(is_backward_compatible=True) +def replace_pattern( + gm: GraphModule, + pattern: Union[Callable, GraphModule], + replacement: Union[Callable, GraphModule] +) -> List[Match]: + """ + Matches all possible non-overlapping sets of operators and their + data dependencies (``pattern``) in the Graph of a GraphModule + (``gm``), then replaces each of these matched subgraphs with another + subgraph (``replacement``). + + Args: + ``gm``: The GraphModule that wraps the Graph to operate on + ``pattern``: The subgraph to match in ``gm`` for replacement + ``replacement``: The subgraph to replace ``pattern`` with + + Returns: + List[Match]: A list of ``Match`` objects representing the places + in the original graph that ``pattern`` was matched to. The list + is empty if there are no matches. ``Match`` is defined as: + + .. code-block:: python + + class Match(NamedTuple): + # Node from which the match was found + anchor: Node + # Maps nodes in the pattern subgraph to nodes in the larger graph + nodes_map: Dict[Node, Node] + + Examples: + + .. code-block:: python + + import torch + from torch.fx import symbolic_trace, subgraph_rewriter + + class M(torch.nn.Module): + def __init__(self): + super().__init__() + + def forward(self, x, w1, w2): + m1 = torch.cat([w1, w2]).sum() + m2 = torch.cat([w1, w2]).sum() + return x + torch.max(m1) + torch.max(m2) + + def pattern(w1, w2): + return torch.cat([w1, w2]).sum() + + def replacement(w1, w2): + return torch.stack([w1, w2]) + + traced_module = symbolic_trace(M()) + + subgraph_rewriter.replace_pattern(traced_module, pattern, replacement) + + The above code will first match ``pattern`` in the ``forward`` + method of ``traced_module``. Pattern-matching is done based on + use-def relationships, not node names. For example, if you had + ``p = torch.cat([a, b])`` in ``pattern``, you could match + ``m = torch.cat([a, b])`` in the original ``forward`` function, + despite the variable names being different (``p`` vs ``m``). + + The ``return`` statement in ``pattern`` is matched based on its + value only; it may or may not match to the ``return`` statement in + the larger graph. In other words, the pattern doesn't have to extend + to the end of the larger graph. + + When the pattern is matched, it will be removed from the larger + function and replaced by ``replacement``. If there are multiple + matches for ``pattern`` in the larger function, each non-overlapping + match will be replaced. In the case of a match overlap, the first + found match in the set of overlapping matches will be replaced. + ("First" here being defined as the first in a topological ordering + of the Nodes' use-def relationships. In most cases, the first Node + is the parameter that appears directly after ``self``, while the + last Node is whatever the function returns.) + + One important thing to note is that the parameters of the + ``pattern`` Callable must be used in the Callable itself, + and the parameters of the ``replacement`` Callable must match + the pattern. The first rule is why, in the above code block, the + ``forward`` function has parameters ``x, w1, w2``, but the + ``pattern`` function only has parameters ``w1, w2``. ``pattern`` + doesn't use ``x``, so it shouldn't specify ``x`` as a parameter. + As an example of the second rule, consider replacing + + .. code-block:: python + + def pattern(x, y): + return torch.neg(x) + torch.relu(y) + + with + + .. code-block:: python + + def replacement(x, y): + return torch.relu(x) + + In this case, ``replacement`` needs the same number of parameters + as ``pattern`` (both ``x`` and ``y``), even though the parameter + ``y`` isn't used in ``replacement``. + + After calling ``subgraph_rewriter.replace_pattern``, the generated + Python code looks like this: + + .. code-block:: python + + def forward(self, x, w1, w2): + stack_1 = torch.stack([w1, w2]) + sum_1 = stack_1.sum() + stack_2 = torch.stack([w1, w2]) + sum_2 = stack_2.sum() + max_1 = torch.max(sum_1) + add_1 = x + max_1 + max_2 = torch.max(sum_2) + add_2 = add_1 + max_2 + return add_2 + """ + match_and_replacements = _replace_pattern(gm, pattern, replacement) + return [Match(anchor=m.anchor, nodes_map=m.nodes_map) for m in match_and_replacements] + + +# Experimental API, not backward compatible +@compatibility(is_backward_compatible=False) +def replace_pattern_with_filters( + gm: GraphModule, + pattern: Union[Callable, Graph, GraphModule], + replacement: Union[Callable, Graph, GraphModule], + match_filters: Optional[List[Callable[["InternalMatch", Graph, Graph], bool]]] = None, + ignore_literals: bool = False, +) -> List[ReplacedPatterns]: + """ + See replace_pattern for documentation. This function is an overload with an additional match_filter argument. + + Args: + ``match_filters``: A list of functions that take in + (match: InternalMatch, original_graph: Graph, pattern_graph: Graph) and return a boolean indicating + whether the match satisfies the condition. + See matcher_utils.py for definition of InternalMatch. + """ + + return _replace_pattern(gm, pattern, replacement, match_filters, ignore_literals) + + +def _replace_pattern( + gm: GraphModule, + pattern: Union[Callable, Graph, GraphModule], + replacement: Union[Callable, Graph, GraphModule], + match_filters: Optional[List[Callable[["InternalMatch", Graph, Graph], bool]]] = None, + ignore_literals: bool = False, +) -> List[ReplacedPatterns]: + + from torch.fx.passes.utils.matcher_utils import SubgraphMatcher, InternalMatch + + if match_filters is None: + match_filters = [] + + # Get the graphs for `gm`, `pattern`, `replacement` + original_graph: Graph = gm.graph + + if isinstance(pattern, GraphModule): + pattern_graph = pattern.graph + elif isinstance(pattern, Graph): + pattern_graph = pattern + else: + pattern_graph = symbolic_trace(pattern).graph + + if isinstance(replacement, GraphModule): + replacement_graph = replacement.graph + elif isinstance(replacement, Graph): + replacement_graph = replacement + else: + replacement_graph = symbolic_trace(replacement).graph + + matcher = SubgraphMatcher(pattern_graph, match_output=False, match_placeholder=False, + remove_overlapping_matches=True, ignore_literals=ignore_literals) + _matches: List[InternalMatch] = matcher.match(original_graph) + + # Filter out matches that don't match the filter + _matches = [ + m for m in _matches + if all(match_filter(m, original_graph, pattern_graph) + for match_filter in match_filters) + ] + + replacement_placeholders = [n for n in replacement_graph.nodes if n.op == "placeholder"] + + # As we progressively replace nodes, we'll need to keep track of how the match results should change + match_changed_node: Dict[Node, Node] = {} + + match_and_replacements = [] + for match in _matches: + + # Build connecting between replacement graph's input and original graph input producer node + + # Initialize `val_map` with mappings from placeholder nodes in + # `replacement` to their corresponding node in `original_graph` + assert len(match.placeholder_nodes) == len(replacement_placeholders) + val_map: Dict[Node, Node] = {} + for rn, gn in zip(replacement_placeholders, match.placeholder_nodes): + if isinstance(gn, Node): + val_map[rn] = match_changed_node.get(gn, gn) + if gn != val_map[rn]: + # Update match.placeholder_nodes and match.nodes_map with the node that replaced gn + gn_ind = match.placeholder_nodes.index(gn) + match.placeholder_nodes[gn_ind] = match_changed_node[gn] + map_key = list(match.nodes_map.keys())[list(match.nodes_map.values()).index(gn)] + match.nodes_map[map_key] = match_changed_node[gn] + else: + val_map[rn] = gn + + # Copy the replacement graph over + user_nodes: Set[Node] = set() + for n in match.returning_nodes: + for user in n.users: + user_nodes.add(user) + assert user_nodes, "The returning_nodes should have at least one user node" + + if len(user_nodes) == 1: + first_user_node = next(iter(user_nodes)) + else: + # If there are multiple user nodes, we need to find the first user node + # in the current execution order of the `original_graph` + for n in original_graph.nodes: + if n in user_nodes: + first_user_node = n + break + + with original_graph.inserting_before(first_user_node): # type: ignore[possibly-undefined] + copied_returning_nodes = original_graph.graph_copy(replacement_graph, val_map) + + if isinstance(copied_returning_nodes, Node): + copied_returning_nodes = (copied_returning_nodes, ) + + # Get a list of nodes that have been replaced into the graph + replacement_nodes: List[Node] = [v for v in val_map.values() if v not in match.placeholder_nodes] + + # Hook the output Node of the replacement subgraph in to the + # original Graph at the correct location + assert len(match.returning_nodes) == len(copied_returning_nodes) + for gn, copied_node in zip(match.returning_nodes, copied_returning_nodes): + gn.replace_all_uses_with(copied_node) + match_changed_node[gn] = copied_node + # Remove the original nodes + for node in reversed(pattern_graph.nodes): + if node.op != "placeholder" and node.op != "output": + gn = match.nodes_map[node] + gm.graph.erase_node(gn) + + match_and_replacements.append( + ReplacedPatterns( + anchor=match.anchors[0], + nodes_map=match.nodes_map, + replacements=replacement_nodes + ) + ) + + # Update the passed-in GraphModule to reflect the new state of + # `original_graph` + gm.recompile() + + # If `replacement` was an nn.Module, we'll need to make sure that + # all the submodules have been copied over correctly + if isinstance(replacement, torch.nn.Module): + _replace_attributes(gm, replacement) + + return match_and_replacements diff --git a/shared/package-files/6f/6ff6db947b3417f056c3d112b92ab9d99b0b29c40a151e5ea8f7ff4a9a5616aa/test_legendre.py b/shared/package-files/6f/6ff6db947b3417f056c3d112b92ab9d99b0b29c40a151e5ea8f7ff4a9a5616aa/test_legendre.py new file mode 100644 index 0000000000000000000000000000000000000000..92399c160ecb75fbb1f9a5a7f2bba0fe90d84a54 --- /dev/null +++ b/shared/package-files/6f/6ff6db947b3417f056c3d112b92ab9d99b0b29c40a151e5ea8f7ff4a9a5616aa/test_legendre.py @@ -0,0 +1,568 @@ +"""Tests for legendre module. + +""" +from functools import reduce + +import numpy as np +import numpy.polynomial.legendre as leg +from numpy.polynomial.polynomial import polyval +from numpy.testing import ( + assert_almost_equal, assert_raises, assert_equal, assert_, + ) + +L0 = np.array([1]) +L1 = np.array([0, 1]) +L2 = np.array([-1, 0, 3])/2 +L3 = np.array([0, -3, 0, 5])/2 +L4 = np.array([3, 0, -30, 0, 35])/8 +L5 = np.array([0, 15, 0, -70, 0, 63])/8 +L6 = np.array([-5, 0, 105, 0, -315, 0, 231])/16 +L7 = np.array([0, -35, 0, 315, 0, -693, 0, 429])/16 +L8 = np.array([35, 0, -1260, 0, 6930, 0, -12012, 0, 6435])/128 +L9 = np.array([0, 315, 0, -4620, 0, 18018, 0, -25740, 0, 12155])/128 + +Llist = [L0, L1, L2, L3, L4, L5, L6, L7, L8, L9] + + +def trim(x): + return leg.legtrim(x, tol=1e-6) + + +class TestConstants: + + def test_legdomain(self): + assert_equal(leg.legdomain, [-1, 1]) + + def test_legzero(self): + assert_equal(leg.legzero, [0]) + + def test_legone(self): + assert_equal(leg.legone, [1]) + + def test_legx(self): + assert_equal(leg.legx, [0, 1]) + + +class TestArithmetic: + x = np.linspace(-1, 1, 100) + + def test_legadd(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 = leg.legadd([0]*i + [1], [0]*j + [1]) + assert_equal(trim(res), trim(tgt), err_msg=msg) + + def test_legsub(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 = leg.legsub([0]*i + [1], [0]*j + [1]) + assert_equal(trim(res), trim(tgt), err_msg=msg) + + def test_legmulx(self): + assert_equal(leg.legmulx([0]), [0]) + assert_equal(leg.legmulx([1]), [0, 1]) + for i in range(1, 5): + tmp = 2*i + 1 + ser = [0]*i + [1] + tgt = [0]*(i - 1) + [i/tmp, 0, (i + 1)/tmp] + assert_equal(leg.legmulx(ser), tgt) + + def test_legmul(self): + # check values of result + for i in range(5): + pol1 = [0]*i + [1] + val1 = leg.legval(self.x, pol1) + for j in range(5): + msg = f"At i={i}, j={j}" + pol2 = [0]*j + [1] + val2 = leg.legval(self.x, pol2) + pol3 = leg.legmul(pol1, pol2) + val3 = leg.legval(self.x, pol3) + assert_(len(pol3) == i + j + 1, msg) + assert_almost_equal(val3, val1*val2, err_msg=msg) + + def test_legdiv(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 = leg.legadd(ci, cj) + quo, rem = leg.legdiv(tgt, ci) + res = leg.legadd(leg.legmul(quo, ci), rem) + assert_equal(trim(res), trim(tgt), err_msg=msg) + + def test_legpow(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(leg.legmul, [c]*j, np.array([1])) + res = leg.legpow(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., 2., 2.]) + 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_legval(self): + #check empty input + assert_equal(leg.legval([], [1]).size, 0) + + #check normal input) + x = np.linspace(-1, 1) + y = [polyval(x, c) for c in Llist] + for i in range(10): + msg = f"At i={i}" + tgt = y[i] + res = leg.legval(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(leg.legval(x, [1]).shape, dims) + assert_equal(leg.legval(x, [1, 0]).shape, dims) + assert_equal(leg.legval(x, [1, 0, 0]).shape, dims) + + def test_legval2d(self): + x1, x2, x3 = self.x + y1, y2, y3 = self.y + + #test exceptions + assert_raises(ValueError, leg.legval2d, x1, x2[:2], self.c2d) + + #test values + tgt = y1*y2 + res = leg.legval2d(x1, x2, self.c2d) + assert_almost_equal(res, tgt) + + #test shape + z = np.ones((2, 3)) + res = leg.legval2d(z, z, self.c2d) + assert_(res.shape == (2, 3)) + + def test_legval3d(self): + x1, x2, x3 = self.x + y1, y2, y3 = self.y + + #test exceptions + assert_raises(ValueError, leg.legval3d, x1, x2, x3[:2], self.c3d) + + #test values + tgt = y1*y2*y3 + res = leg.legval3d(x1, x2, x3, self.c3d) + assert_almost_equal(res, tgt) + + #test shape + z = np.ones((2, 3)) + res = leg.legval3d(z, z, z, self.c3d) + assert_(res.shape == (2, 3)) + + def test_leggrid2d(self): + x1, x2, x3 = self.x + y1, y2, y3 = self.y + + #test values + tgt = np.einsum('i,j->ij', y1, y2) + res = leg.leggrid2d(x1, x2, self.c2d) + assert_almost_equal(res, tgt) + + #test shape + z = np.ones((2, 3)) + res = leg.leggrid2d(z, z, self.c2d) + assert_(res.shape == (2, 3)*2) + + def test_leggrid3d(self): + x1, x2, x3 = self.x + y1, y2, y3 = self.y + + #test values + tgt = np.einsum('i,j,k->ijk', y1, y2, y3) + res = leg.leggrid3d(x1, x2, x3, self.c3d) + assert_almost_equal(res, tgt) + + #test shape + z = np.ones((2, 3)) + res = leg.leggrid3d(z, z, z, self.c3d) + assert_(res.shape == (2, 3)*3) + + +class TestIntegral: + + def test_legint(self): + # check exceptions + assert_raises(TypeError, leg.legint, [0], .5) + assert_raises(ValueError, leg.legint, [0], -1) + assert_raises(ValueError, leg.legint, [0], 1, [0, 0]) + assert_raises(ValueError, leg.legint, [0], lbnd=[0]) + assert_raises(ValueError, leg.legint, [0], scl=[0]) + assert_raises(TypeError, leg.legint, [0], axis=.5) + + # test integration of zero polynomial + for i in range(2, 5): + k = [0]*(i - 2) + [1] + res = leg.legint([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] + legpol = leg.poly2leg(pol) + legint = leg.legint(legpol, m=1, k=[i]) + res = leg.leg2poly(legint) + 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] + legpol = leg.poly2leg(pol) + legint = leg.legint(legpol, m=1, k=[i], lbnd=-1) + assert_almost_equal(leg.legval(-1, legint), 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] + legpol = leg.poly2leg(pol) + legint = leg.legint(legpol, m=1, k=[i], scl=2) + res = leg.leg2poly(legint) + 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 = leg.legint(tgt, m=1) + res = leg.legint(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 = leg.legint(tgt, m=1, k=[k]) + res = leg.legint(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 = leg.legint(tgt, m=1, k=[k], lbnd=-1) + res = leg.legint(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 = leg.legint(tgt, m=1, k=[k], scl=2) + res = leg.legint(pol, m=j, k=list(range(j)), scl=2) + assert_almost_equal(trim(res), trim(tgt)) + + def test_legint_axis(self): + # check that axis keyword works + c2d = np.random.random((3, 4)) + + tgt = np.vstack([leg.legint(c) for c in c2d.T]).T + res = leg.legint(c2d, axis=0) + assert_almost_equal(res, tgt) + + tgt = np.vstack([leg.legint(c) for c in c2d]) + res = leg.legint(c2d, axis=1) + assert_almost_equal(res, tgt) + + tgt = np.vstack([leg.legint(c, k=3) for c in c2d]) + res = leg.legint(c2d, k=3, axis=1) + assert_almost_equal(res, tgt) + + def test_legint_zerointord(self): + assert_equal(leg.legint((1, 2, 3), 0), (1, 2, 3)) + + +class TestDerivative: + + def test_legder(self): + # check exceptions + assert_raises(TypeError, leg.legder, [0], .5) + assert_raises(ValueError, leg.legder, [0], -1) + + # check that zeroth derivative does nothing + for i in range(5): + tgt = [0]*i + [1] + res = leg.legder(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 = leg.legder(leg.legint(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 = leg.legder(leg.legint(tgt, m=j, scl=2), m=j, scl=.5) + assert_almost_equal(trim(res), trim(tgt)) + + def test_legder_axis(self): + # check that axis keyword works + c2d = np.random.random((3, 4)) + + tgt = np.vstack([leg.legder(c) for c in c2d.T]).T + res = leg.legder(c2d, axis=0) + assert_almost_equal(res, tgt) + + tgt = np.vstack([leg.legder(c) for c in c2d]) + res = leg.legder(c2d, axis=1) + assert_almost_equal(res, tgt) + + def test_legder_orderhigherthancoeff(self): + c = (1, 2, 3, 4) + assert_equal(leg.legder(c, 4), [0]) + +class TestVander: + # some random values in [-1, 1) + x = np.random.random((3, 5))*2 - 1 + + def test_legvander(self): + # check for 1d x + x = np.arange(3) + v = leg.legvander(x, 3) + assert_(v.shape == (3, 4)) + for i in range(4): + coef = [0]*i + [1] + assert_almost_equal(v[..., i], leg.legval(x, coef)) + + # check for 2d x + x = np.array([[1, 2], [3, 4], [5, 6]]) + v = leg.legvander(x, 3) + assert_(v.shape == (3, 2, 4)) + for i in range(4): + coef = [0]*i + [1] + assert_almost_equal(v[..., i], leg.legval(x, coef)) + + def test_legvander2d(self): + # also tests polyval2d for non-square coefficient array + x1, x2, x3 = self.x + c = np.random.random((2, 3)) + van = leg.legvander2d(x1, x2, [1, 2]) + tgt = leg.legval2d(x1, x2, c) + res = np.dot(van, c.flat) + assert_almost_equal(res, tgt) + + # check shape + van = leg.legvander2d([x1], [x2], [1, 2]) + assert_(van.shape == (1, 5, 6)) + + def test_legvander3d(self): + # also tests polyval3d for non-square coefficient array + x1, x2, x3 = self.x + c = np.random.random((2, 3, 4)) + van = leg.legvander3d(x1, x2, x3, [1, 2, 3]) + tgt = leg.legval3d(x1, x2, x3, c) + res = np.dot(van, c.flat) + assert_almost_equal(res, tgt) + + # check shape + van = leg.legvander3d([x1], [x2], [x3], [1, 2, 3]) + assert_(van.shape == (1, 5, 24)) + + def test_legvander_negdeg(self): + assert_raises(ValueError, leg.legvander, (1, 2, 3), -1) + + +class TestFitting: + + def test_legfit(self): + def f(x): + return x*(x - 1)*(x - 2) + + def f2(x): + return x**4 + x**2 + 1 + + # Test exceptions + assert_raises(ValueError, leg.legfit, [1], [1], -1) + assert_raises(TypeError, leg.legfit, [[1]], [1], 0) + assert_raises(TypeError, leg.legfit, [], [1], 0) + assert_raises(TypeError, leg.legfit, [1], [[[1]]], 0) + assert_raises(TypeError, leg.legfit, [1, 2], [1], 0) + assert_raises(TypeError, leg.legfit, [1], [1, 2], 0) + assert_raises(TypeError, leg.legfit, [1], [1], 0, w=[[1]]) + assert_raises(TypeError, leg.legfit, [1], [1], 0, w=[1, 1]) + assert_raises(ValueError, leg.legfit, [1], [1], [-1,]) + assert_raises(ValueError, leg.legfit, [1], [1], [2, -1, 6]) + assert_raises(TypeError, leg.legfit, [1], [1], []) + + # Test fit + x = np.linspace(0, 2) + y = f(x) + # + coef3 = leg.legfit(x, y, 3) + assert_equal(len(coef3), 4) + assert_almost_equal(leg.legval(x, coef3), y) + coef3 = leg.legfit(x, y, [0, 1, 2, 3]) + assert_equal(len(coef3), 4) + assert_almost_equal(leg.legval(x, coef3), y) + # + coef4 = leg.legfit(x, y, 4) + assert_equal(len(coef4), 5) + assert_almost_equal(leg.legval(x, coef4), y) + coef4 = leg.legfit(x, y, [0, 1, 2, 3, 4]) + assert_equal(len(coef4), 5) + assert_almost_equal(leg.legval(x, coef4), y) + # check things still work if deg is not in strict increasing + coef4 = leg.legfit(x, y, [2, 3, 4, 1, 0]) + assert_equal(len(coef4), 5) + assert_almost_equal(leg.legval(x, coef4), y) + # + coef2d = leg.legfit(x, np.array([y, y]).T, 3) + assert_almost_equal(coef2d, np.array([coef3, coef3]).T) + coef2d = leg.legfit(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 = leg.legfit(x, yw, 3, w=w) + assert_almost_equal(wcoef3, coef3) + wcoef3 = leg.legfit(x, yw, [0, 1, 2, 3], w=w) + assert_almost_equal(wcoef3, coef3) + # + wcoef2d = leg.legfit(x, np.array([yw, yw]).T, 3, w=w) + assert_almost_equal(wcoef2d, np.array([coef3, coef3]).T) + wcoef2d = leg.legfit(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(leg.legfit(x, x, 1), [0, 1]) + assert_almost_equal(leg.legfit(x, x, [0, 1]), [0, 1]) + # test fitting only even Legendre polynomials + x = np.linspace(-1, 1) + y = f2(x) + coef1 = leg.legfit(x, y, 4) + assert_almost_equal(leg.legval(x, coef1), y) + coef2 = leg.legfit(x, y, [0, 2, 4]) + assert_almost_equal(leg.legval(x, coef2), y) + assert_almost_equal(coef1, coef2) + + +class TestCompanion: + + def test_raises(self): + assert_raises(ValueError, leg.legcompanion, []) + assert_raises(ValueError, leg.legcompanion, [1]) + + def test_dimensions(self): + for i in range(1, 5): + coef = [0]*i + [1] + assert_(leg.legcompanion(coef).shape == (i, i)) + + def test_linear_root(self): + assert_(leg.legcompanion([1, 2])[0, 0] == -.5) + + +class TestGauss: + + def test_100(self): + x, w = leg.leggauss(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 = leg.legvander(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 = 2.0 + assert_almost_equal(w.sum(), tgt) + + +class TestMisc: + + def test_legfromroots(self): + res = leg.legfromroots([]) + 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]) + pol = leg.legfromroots(roots) + res = leg.legval(roots, pol) + tgt = 0 + assert_(len(pol) == i + 1) + assert_almost_equal(leg.leg2poly(pol)[-1], 1) + assert_almost_equal(res, tgt) + + def test_legroots(self): + assert_almost_equal(leg.legroots([1]), []) + assert_almost_equal(leg.legroots([1, 2]), [-.5]) + for i in range(2, 5): + tgt = np.linspace(-1, 1, i) + res = leg.legroots(leg.legfromroots(tgt)) + assert_almost_equal(trim(res), trim(tgt)) + + def test_legtrim(self): + coef = [2, -1, 1, 0] + + # Test exceptions + assert_raises(ValueError, leg.legtrim, coef, -1) + + # Test results + assert_equal(leg.legtrim(coef), coef[:-1]) + assert_equal(leg.legtrim(coef, 1), coef[:-3]) + assert_equal(leg.legtrim(coef, 2), [0]) + + def test_legline(self): + assert_equal(leg.legline(3, 4), [3, 4]) + + def test_legline_zeroscl(self): + assert_equal(leg.legline(3, 0), [3]) + + def test_leg2poly(self): + for i in range(10): + assert_almost_equal(leg.leg2poly([0]*i + [1]), Llist[i]) + + def test_poly2leg(self): + for i in range(10): + assert_almost_equal(leg.poly2leg(Llist[i]), [0]*i + [1]) + + def test_weight(self): + x = np.linspace(-1, 1, 11) + tgt = 1. + res = leg.legweight(x) + assert_almost_equal(res, tgt) diff --git a/shared/package-files/6f/6ff8bf259ea28c15eec53ab9401ab37c283d738f2d3ae1a1470d7f7dcef6341b/test_globals.py b/shared/package-files/6f/6ff8bf259ea28c15eec53ab9401ab37c283d738f2d3ae1a1470d7f7dcef6341b/test_globals.py new file mode 100644 index 0000000000000000000000000000000000000000..a2406e6652710b6c5c62513a77c95d197c1e3ff2 --- /dev/null +++ b/shared/package-files/6f/6ff8bf259ea28c15eec53ab9401ab37c283d738f2d3ae1a1470d7f7dcef6341b/test_globals.py @@ -0,0 +1,60 @@ +import numpy as np +from numba import cuda, int32, float32 +from numba.cuda.testing import unittest, CUDATestCase + +N = 100 + + +def simple_smem(ary): + sm = cuda.shared.array(N, int32) + i = cuda.grid(1) + if i == 0: + for j in range(N): + sm[j] = j + cuda.syncthreads() + ary[i] = sm[i] + + +S0 = 10 +S1 = 20 + + +def coop_smem2d(ary): + i, j = cuda.grid(2) + sm = cuda.shared.array((S0, S1), float32) + sm[i, j] = (i + 1) / (j + 1) + cuda.syncthreads() + ary[i, j] = sm[i, j] + + +class TestCudaTestGlobal(CUDATestCase): + def test_global_int_const(self): + """Test simple_smem + """ + compiled = cuda.jit("void(int32[:])")(simple_smem) + + nelem = 100 + ary = np.empty(nelem, dtype=np.int32) + compiled[1, nelem](ary) + + self.assertTrue(np.all(ary == np.arange(nelem, dtype=np.int32))) + + @unittest.SkipTest + def test_global_tuple_const(self): + """Test coop_smem2d + """ + compiled = cuda.jit("void(float32[:,:])")(coop_smem2d) + + shape = 10, 20 + ary = np.empty(shape, dtype=np.float32) + compiled[1, shape](ary) + + exp = np.empty_like(ary) + for i in range(ary.shape[0]): + for j in range(ary.shape[1]): + exp[i, j] = float(i + 1) / (j + 1) + self.assertTrue(np.allclose(ary, exp)) + + +if __name__ == '__main__': + unittest.main() diff --git a/shared/package-files/6f/6ff9849b7abe8196c8579c79565ea9cdfc89cadaa5a7f6bdf31a5fb1ed807e02/represent.py b/shared/package-files/6f/6ff9849b7abe8196c8579c79565ea9cdfc89cadaa5a7f6bdf31a5fb1ed807e02/represent.py new file mode 100644 index 0000000000000000000000000000000000000000..cfb0ea6275716d31066ad40cb820d27086bc1f50 --- /dev/null +++ b/shared/package-files/6f/6ff9849b7abe8196c8579c79565ea9cdfc89cadaa5a7f6bdf31a5fb1ed807e02/represent.py @@ -0,0 +1,574 @@ +"""Logic for representing operators in state in various bases. + +TODO: + +* Get represent working with continuous hilbert spaces. +* Document default basis functionality. +""" + +from sympy.core.add import Add +from sympy.core.expr import Expr +from sympy.core.mul import Mul +from sympy.core.numbers import I +from sympy.core.power import Pow +from sympy.integrals.integrals import integrate +from sympy.physics.quantum.dagger import Dagger +from sympy.physics.quantum.commutator import Commutator +from sympy.physics.quantum.anticommutator import AntiCommutator +from sympy.physics.quantum.innerproduct import InnerProduct +from sympy.physics.quantum.qexpr import QExpr +from sympy.physics.quantum.tensorproduct import TensorProduct +from sympy.physics.quantum.matrixutils import flatten_scalar +from sympy.physics.quantum.state import KetBase, BraBase, StateBase +from sympy.physics.quantum.operator import Operator, OuterProduct +from sympy.physics.quantum.qapply import qapply +from sympy.physics.quantum.operatorset import operators_to_state, state_to_operators + +__all__ = [ + 'represent', + 'rep_innerproduct', + 'rep_expectation', + 'integrate_result', + 'get_basis', + 'enumerate_states' +] + +#----------------------------------------------------------------------------- +# Represent +#----------------------------------------------------------------------------- + + +def _sympy_to_scalar(e): + """Convert from a SymPy scalar to a Python scalar.""" + if isinstance(e, Expr): + if e.is_Integer: + return int(e) + elif e.is_Float: + return float(e) + elif e.is_Rational: + return float(e) + elif e.is_Number or e.is_NumberSymbol or e == I: + return complex(e) + raise TypeError('Expected number, got: %r' % e) + + +def represent(expr, **options): + """Represent the quantum expression in the given basis. + + In quantum mechanics abstract states and operators can be represented in + various basis sets. Under this operation the follow transforms happen: + + * Ket -> column vector or function + * Bra -> row vector of function + * Operator -> matrix or differential operator + + This function is the top-level interface for this action. + + This function walks the SymPy expression tree looking for ``QExpr`` + instances that have a ``_represent`` method. This method is then called + and the object is replaced by the representation returned by this method. + By default, the ``_represent`` method will dispatch to other methods + that handle the representation logic for a particular basis set. The + naming convention for these methods is the following:: + + def _represent_FooBasis(self, e, basis, **options) + + This function will have the logic for representing instances of its class + in the basis set having a class named ``FooBasis``. + + Parameters + ========== + + expr : Expr + The expression to represent. + basis : Operator, basis set + An object that contains the information about the basis set. If an + operator is used, the basis is assumed to be the orthonormal + eigenvectors of that operator. In general though, the basis argument + can be any object that contains the basis set information. + options : dict + Key/value pairs of options that are passed to the underlying method + that finds the representation. These options can be used to + control how the representation is done. For example, this is where + the size of the basis set would be set. + + Returns + ======= + + e : Expr + The SymPy expression of the represented quantum expression. + + Examples + ======== + + Here we subclass ``Operator`` and ``Ket`` to create the z-spin operator + and its spin 1/2 up eigenstate. By defining the ``_represent_SzOp`` + method, the ket can be represented in the z-spin basis. + + >>> from sympy.physics.quantum import Operator, represent, Ket + >>> from sympy import Matrix + + >>> class SzUpKet(Ket): + ... def _represent_SzOp(self, basis, **options): + ... return Matrix([1,0]) + ... + >>> class SzOp(Operator): + ... pass + ... + >>> sz = SzOp('Sz') + >>> up = SzUpKet('up') + >>> represent(up, basis=sz) + Matrix([ + [1], + [0]]) + + Here we see an example of representations in a continuous + basis. We see that the result of representing various combinations + of cartesian position operators and kets give us continuous + expressions involving DiracDelta functions. + + >>> from sympy.physics.quantum.cartesian import XOp, XKet, XBra + >>> X = XOp() + >>> x = XKet() + >>> y = XBra('y') + >>> represent(X*x) + x*DiracDelta(x - x_2) + >>> represent(X*x*y) + x*DiracDelta(x - x_3)*DiracDelta(x_1 - y) + + """ + + format = options.get('format', 'sympy') + if format == 'numpy': + import numpy as np + if isinstance(expr, QExpr) and not isinstance(expr, OuterProduct): + options['replace_none'] = False + temp_basis = get_basis(expr, **options) + if temp_basis is not None: + options['basis'] = temp_basis + try: + return expr._represent(**options) + except NotImplementedError as strerr: + #If no _represent_FOO method exists, map to the + #appropriate basis state and try + #the other methods of representation + options['replace_none'] = True + + if isinstance(expr, (KetBase, BraBase)): + try: + return rep_innerproduct(expr, **options) + except NotImplementedError: + raise NotImplementedError(strerr) + elif isinstance(expr, Operator): + try: + return rep_expectation(expr, **options) + except NotImplementedError: + raise NotImplementedError(strerr) + else: + raise NotImplementedError(strerr) + elif isinstance(expr, Add): + result = represent(expr.args[0], **options) + for args in expr.args[1:]: + # scipy.sparse doesn't support += so we use plain = here. + result = result + represent(args, **options) + return result + elif isinstance(expr, Pow): + base, exp = expr.as_base_exp() + if format in ('numpy', 'scipy.sparse'): + exp = _sympy_to_scalar(exp) + base = represent(base, **options) + # scipy.sparse doesn't support negative exponents + # and warns when inverting a matrix in csr format. + if format == 'scipy.sparse' and exp < 0: + from scipy.sparse.linalg import inv + exp = - exp + base = inv(base.tocsc()).tocsr() + if format == 'numpy': + return np.linalg.matrix_power(base, exp) + return base ** exp + elif isinstance(expr, TensorProduct): + new_args = [represent(arg, **options) for arg in expr.args] + return TensorProduct(*new_args) + elif isinstance(expr, Dagger): + return Dagger(represent(expr.args[0], **options)) + elif isinstance(expr, Commutator): + A = expr.args[0] + B = expr.args[1] + return represent(Mul(A, B) - Mul(B, A), **options) + elif isinstance(expr, AntiCommutator): + A = expr.args[0] + B = expr.args[1] + return represent(Mul(A, B) + Mul(B, A), **options) + elif isinstance(expr, InnerProduct): + return represent(Mul(expr.bra, expr.ket), **options) + elif not isinstance(expr, (Mul, OuterProduct)): + # For numpy and scipy.sparse, we can only handle numerical prefactors. + if format in ('numpy', 'scipy.sparse'): + return _sympy_to_scalar(expr) + return expr + + if not isinstance(expr, (Mul, OuterProduct)): + raise TypeError('Mul expected, got: %r' % expr) + + if "index" in options: + options["index"] += 1 + else: + options["index"] = 1 + + if "unities" not in options: + options["unities"] = [] + + result = represent(expr.args[-1], **options) + last_arg = expr.args[-1] + + for arg in reversed(expr.args[:-1]): + if isinstance(last_arg, Operator): + options["index"] += 1 + options["unities"].append(options["index"]) + elif isinstance(last_arg, BraBase) and isinstance(arg, KetBase): + options["index"] += 1 + elif isinstance(last_arg, KetBase) and isinstance(arg, Operator): + options["unities"].append(options["index"]) + elif isinstance(last_arg, KetBase) and isinstance(arg, BraBase): + options["unities"].append(options["index"]) + + next_arg = represent(arg, **options) + if format == 'numpy' and isinstance(next_arg, np.ndarray): + # Must use np.matmult to "matrix multiply" two np.ndarray + result = np.matmul(next_arg, result) + else: + result = next_arg*result + last_arg = arg + + # All three matrix formats create 1 by 1 matrices when inner products of + # vectors are taken. In these cases, we simply return a scalar. + result = flatten_scalar(result) + + result = integrate_result(expr, result, **options) + + return result + + +def rep_innerproduct(expr, **options): + """ + Returns an innerproduct like representation (e.g. ````) for the + given state. + + Attempts to calculate inner product with a bra from the specified + basis. Should only be passed an instance of KetBase or BraBase + + Parameters + ========== + + expr : KetBase or BraBase + The expression to be represented + + Examples + ======== + + >>> from sympy.physics.quantum.represent import rep_innerproduct + >>> from sympy.physics.quantum.cartesian import XOp, XKet, PxOp, PxKet + >>> rep_innerproduct(XKet()) + DiracDelta(x - x_1) + >>> rep_innerproduct(XKet(), basis=PxOp()) + sqrt(2)*exp(-I*px_1*x/hbar)/(2*sqrt(hbar)*sqrt(pi)) + >>> rep_innerproduct(PxKet(), basis=XOp()) + sqrt(2)*exp(I*px*x_1/hbar)/(2*sqrt(hbar)*sqrt(pi)) + + """ + + if not isinstance(expr, (KetBase, BraBase)): + raise TypeError("expr passed is not a Bra or Ket") + + basis = get_basis(expr, **options) + + if not isinstance(basis, StateBase): + raise NotImplementedError("Can't form this representation!") + + if "index" not in options: + options["index"] = 1 + + basis_kets = enumerate_states(basis, options["index"], 2) + + if isinstance(expr, BraBase): + bra = expr + ket = (basis_kets[1] if basis_kets[0].dual == expr else basis_kets[0]) + else: + bra = (basis_kets[1].dual if basis_kets[0] + == expr else basis_kets[0].dual) + ket = expr + + prod = InnerProduct(bra, ket) + result = prod.doit() + + format = options.get('format', 'sympy') + return expr._format_represent(result, format) + + +def rep_expectation(expr, **options): + """ + Returns an ```` type representation for the given operator. + + Parameters + ========== + + expr : Operator + Operator to be represented in the specified basis + + Examples + ======== + + >>> from sympy.physics.quantum.cartesian import XOp, PxOp, PxKet + >>> from sympy.physics.quantum.represent import rep_expectation + >>> rep_expectation(XOp()) + x_1*DiracDelta(x_1 - x_2) + >>> rep_expectation(XOp(), basis=PxOp()) + + >>> rep_expectation(XOp(), basis=PxKet()) + + + """ + + if "index" not in options: + options["index"] = 1 + + if not isinstance(expr, Operator): + raise TypeError("The passed expression is not an operator") + + basis_state = get_basis(expr, **options) + + if basis_state is None or not isinstance(basis_state, StateBase): + raise NotImplementedError("Could not get basis kets for this operator") + + basis_kets = enumerate_states(basis_state, options["index"], 2) + + bra = basis_kets[1].dual + ket = basis_kets[0] + + return qapply(bra*expr*ket) + + +def integrate_result(orig_expr, result, **options): + """ + Returns the result of integrating over any unities ``(|x>>> from sympy import symbols, DiracDelta + >>> from sympy.physics.quantum.represent import integrate_result + >>> from sympy.physics.quantum.cartesian import XOp, XKet + >>> x_ket = XKet() + >>> X_op = XOp() + >>> x, x_1, x_2 = symbols('x, x_1, x_2') + >>> integrate_result(X_op*x_ket, x*DiracDelta(x-x_1)*DiracDelta(x_1-x_2)) + x*DiracDelta(x - x_1)*DiracDelta(x_1 - x_2) + >>> integrate_result(X_op*x_ket, x*DiracDelta(x-x_1)*DiracDelta(x_1-x_2), + ... unities=[1]) + x*DiracDelta(x - x_2) + + """ + if not isinstance(result, Expr): + return result + + options['replace_none'] = True + if "basis" not in options: + arg = orig_expr.args[-1] + options["basis"] = get_basis(arg, **options) + elif not isinstance(options["basis"], StateBase): + options["basis"] = get_basis(orig_expr, **options) + + basis = options.pop("basis", None) + + if basis is None: + return result + + unities = options.pop("unities", []) + + if len(unities) == 0: + return result + + kets = enumerate_states(basis, unities) + coords = [k.label[0] for k in kets] + + for coord in coords: + if coord in result.free_symbols: + #TODO: Add support for sets of operators + basis_op = state_to_operators(basis) + start = basis_op.hilbert_space.interval.start + end = basis_op.hilbert_space.interval.end + result = integrate(result, (coord, start, end)) + + return result + + +def get_basis(expr, *, basis=None, replace_none=True, **options): + """ + Returns a basis state instance corresponding to the basis specified in + options=s. If no basis is specified, the function tries to form a default + basis state of the given expression. + + There are three behaviors: + + 1. The basis specified in options is already an instance of StateBase. If + this is the case, it is simply returned. If the class is specified but + not an instance, a default instance is returned. + + 2. The basis specified is an operator or set of operators. If this + is the case, the operator_to_state mapping method is used. + + 3. No basis is specified. If expr is a state, then a default instance of + its class is returned. If expr is an operator, then it is mapped to the + corresponding state. If it is neither, then we cannot obtain the basis + state. + + If the basis cannot be mapped, then it is not changed. + + This will be called from within represent, and represent will + only pass QExpr's. + + TODO (?): Support for Muls and other types of expressions? + + Parameters + ========== + + expr : Operator or StateBase + Expression whose basis is sought + + Examples + ======== + + >>> from sympy.physics.quantum.represent import get_basis + >>> from sympy.physics.quantum.cartesian import XOp, XKet, PxOp, PxKet + >>> x = XKet() + >>> X = XOp() + >>> get_basis(x) + |x> + >>> get_basis(X) + |x> + >>> get_basis(x, basis=PxOp()) + |px> + >>> get_basis(x, basis=PxKet) + |px> + + """ + + if basis is None and not replace_none: + return None + + if basis is None: + if isinstance(expr, KetBase): + return _make_default(expr.__class__) + elif isinstance(expr, BraBase): + return _make_default(expr.dual_class()) + elif isinstance(expr, Operator): + state_inst = operators_to_state(expr) + return (state_inst if state_inst is not None else None) + else: + return None + elif (isinstance(basis, Operator) or + (not isinstance(basis, StateBase) and issubclass(basis, Operator))): + state = operators_to_state(basis) + if state is None: + return None + elif isinstance(state, StateBase): + return state + else: + return _make_default(state) + elif isinstance(basis, StateBase): + return basis + elif issubclass(basis, StateBase): + return _make_default(basis) + else: + return None + + +def _make_default(expr): + # XXX: Catching TypeError like this is a bad way of distinguishing + # instances from classes. The logic using this function should be + # rewritten somehow. + try: + expr = expr() + except TypeError: + return expr + + return expr + + +def enumerate_states(*args, **options): + """ + Returns instances of the given state with dummy indices appended + + Operates in two different modes: + + 1. Two arguments are passed to it. The first is the base state which is to + be indexed, and the second argument is a list of indices to append. + + 2. Three arguments are passed. The first is again the base state to be + indexed. The second is the start index for counting. The final argument + is the number of kets you wish to receive. + + Tries to call state._enumerate_state. If this fails, returns an empty list + + Parameters + ========== + + args : list + See list of operation modes above for explanation + + Examples + ======== + + >>> from sympy.physics.quantum.cartesian import XBra, XKet + >>> from sympy.physics.quantum.represent import enumerate_states + >>> test = XKet('foo') + >>> enumerate_states(test, 1, 3) + [|foo_1>, |foo_2>, |foo_3>] + >>> test2 = XBra('bar') + >>> enumerate_states(test2, [4, 5, 10]) + [= self.data_length + eos = property(eos, eos.__doc__) + + def check(self, pattern): + """ + Apply `pattern` on the current position and return + the match object. (Doesn't touch pos). Use this for + lookahead. + """ + if self.eos: + raise EndOfText() + if pattern not in self._re_cache: + self._re_cache[pattern] = re.compile(pattern, self.flags) + return self._re_cache[pattern].match(self.data, self.pos) + + def test(self, pattern): + """Apply a pattern on the current position and check + if it patches. Doesn't touch pos. + """ + return self.check(pattern) is not None + + def scan(self, pattern): + """ + Scan the text for the given pattern and update pos/match + and related fields. The return value is a boolean that + indicates if the pattern matched. The matched value is + stored on the instance as ``match``, the last value is + stored as ``last``. ``start_pos`` is the position of the + pointer before the pattern was matched, ``pos`` is the + end position. + """ + if self.eos: + raise EndOfText() + if pattern not in self._re_cache: + self._re_cache[pattern] = re.compile(pattern, self.flags) + self.last = self.match + m = self._re_cache[pattern].match(self.data, self.pos) + if m is None: + return False + self.start_pos = m.start() + self.pos = m.end() + self.match = m.group() + return True + + def get_char(self): + """Scan exactly one char.""" + self.scan('.') + + def __repr__(self): + return '<%s %d/%d>' % ( + self.__class__.__name__, + self.pos, + self.data_length + ) diff --git a/shared/package-files/6f/6ffb9b2ebe5d8f8756261b7de79daa7374b762dddf41081a507eb6d3ca19bc78/pandas_threaded_import.py b/shared/package-files/6f/6ffb9b2ebe5d8f8756261b7de79daa7374b762dddf41081a507eb6d3ca19bc78/pandas_threaded_import.py new file mode 100644 index 0000000000000000000000000000000000000000..f44632d747fcb273f9d3b23284ba10adb0b05352 --- /dev/null +++ b/shared/package-files/6f/6ffb9b2ebe5d8f8756261b7de79daa7374b762dddf41081a507eb6d3ca19bc78/pandas_threaded_import.py @@ -0,0 +1,44 @@ +# 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 file is called from a test in test_pandas.py. + +from concurrent.futures import ThreadPoolExecutor +import faulthandler +import sys + +import pyarrow as pa + +num_threads = 60 +timeout = 10 # seconds + + +def thread_func(i): + pa.array([i]).to_pandas() + + +def main(): + # In case of import deadlock, crash after a finite timeout + faulthandler.dump_traceback_later(timeout, exit=True) + with ThreadPoolExecutor(num_threads) as pool: + assert "pandas" not in sys.modules # pandas is imported lazily + list(pool.map(thread_func, range(num_threads))) + assert "pandas" in sys.modules + + +if __name__ == "__main__": + main() diff --git a/shared/package-files/6f/6ffd21e0865f2914e76fead66a7034d8670fd2dda7781396ddb433204555290a/test_generators.py b/shared/package-files/6f/6ffd21e0865f2914e76fead66a7034d8670fd2dda7781396ddb433204555290a/test_generators.py new file mode 100644 index 0000000000000000000000000000000000000000..9258a22c723476fc58ffe08c45e974be93232509 --- /dev/null +++ b/shared/package-files/6f/6ffd21e0865f2914e76fead66a7034d8670fd2dda7781396ddb433204555290a/test_generators.py @@ -0,0 +1,661 @@ +import numpy as np + +import unittest +from numba import jit, njit +from numba.core import types +from numba.tests.support import TestCase, MemoryLeakMixin +from numba.core.datamodel.testing import test_factory + +forceobj_flags = {'nopython': False, 'forceobj': True} +nopython_flags = {'nopython': True} + + +def make_consumer(gen_func): + def consumer(x): + res = 0.0 + for y in gen_func(x): + res += y + return res + + return consumer + + +def gen1(x): + for i in range(x): + yield i + + +def gen2(x): + for i in range(x): + yield i + for j in range(1, 3): + yield i + j + + +def gen3(x): + # Polymorphic yield types must be unified + yield x + yield x + 1.5 + yield x + 1j + + +def gen4(x, y, z): + for i in range(3): + yield z + yield y + z + return + yield x + + +def gen5(): + # The bytecode for this generator doesn't contain any YIELD_VALUE + # (it's optimized away). We fail typing it, since the yield type + # is entirely undefined. + if 0: + yield 1 + + +def gen6(a, b): + # Infinite loop: exercise computation of state variables + x = a + 1 + while True: + y = b + 2 + yield x + y + + +def gen7(arr): + # Array variable in generator state + for i in range(arr.size): + yield arr[i] + + +# Optional arguments and boolean state members +def gen8(x=1, y=2, b=False): + bb = not b + yield x + if bb: + yield y + if b: + yield x + y + + +def genobj(x): + object() + yield x + + +def return_generator_expr(x): + return (i * 2 for i in x) + + +def gen_ndindex(shape): + for ind in np.ndindex(shape): + yield ind + + +def gen_flat(arr): + for val in arr.flat: + yield val + + +def gen_ndenumerate(arr): + for tup in np.ndenumerate(arr): + yield tup + + +def gen_bool(): + yield True + + +def gen_unification_error(): + yield None + yield 1j + + +def gen_optional_and_type_unification_error(): + # yields complex and optional(literalint) + i = 0 + yield 1j + while True: + i = yield i + + +def gen_changing_tuple_type(): + # https://github.com/numba/numba/issues/7295 + yield 1, 2 + yield 3, 4 + + +def gen_changing_number_type(): + # additional test for https://github.com/numba/numba/issues/7295 + yield 1 + yield 3.5 + yield 67.8j + + +class TestGenerators(MemoryLeakMixin, TestCase): + def check_generator(self, pygen, cgen): + self.assertEqual(next(cgen), next(pygen)) + # Use list comprehensions to make sure we trash the generator's + # former C stack. + expected = [x for x in pygen] + got = [x for x in cgen] + self.assertEqual(expected, got) + with self.assertRaises(StopIteration): + next(cgen) + + def check_gen1(self, **kwargs): + pyfunc = gen1 + cr = jit((types.int32,), **kwargs)(pyfunc) + pygen = pyfunc(8) + cgen = cr(8) + self.check_generator(pygen, cgen) + + def test_gen1(self): + self.check_gen1(**nopython_flags) + + def test_gen1_objmode(self): + self.check_gen1(**forceobj_flags) + + def check_gen2(self, **kwargs): + pyfunc = gen2 + cr = jit((types.int32,), **kwargs)(pyfunc) + pygen = pyfunc(8) + cgen = cr(8) + self.check_generator(pygen, cgen) + + def test_gen2(self): + self.check_gen2(**nopython_flags) + + def test_gen2_objmode(self): + self.check_gen2(**forceobj_flags) + + def check_gen3(self, **kwargs): + pyfunc = gen3 + cr = jit((types.int32,), **kwargs)(pyfunc) + pygen = pyfunc(8) + cgen = cr(8) + self.check_generator(pygen, cgen) + + def test_gen3(self): + self.check_gen3(**nopython_flags) + + def test_gen3_objmode(self): + self.check_gen3(**forceobj_flags) + + def check_gen4(self, **kwargs): + pyfunc = gen4 + cr = jit((types.int32,) * 3, **kwargs)(pyfunc) + pygen = pyfunc(5, 6, 7) + cgen = cr(5, 6, 7) + self.check_generator(pygen, cgen) + + def test_gen4(self): + self.check_gen4(**nopython_flags) + + def test_gen4_objmode(self): + self.check_gen4(**forceobj_flags) + + def test_gen5(self): + with self.assertTypingError() as raises: + jit((), **nopython_flags)(gen5) + self.assertIn("Cannot type generator: it does not yield any value", + str(raises.exception)) + + def test_gen5_objmode(self): + cgen = jit((), **forceobj_flags)(gen5)() + self.assertEqual(list(cgen), []) + with self.assertRaises(StopIteration): + next(cgen) + + def check_gen6(self, **kwargs): + cr = jit((types.int32,) * 2, **kwargs)(gen6) + cgen = cr(5, 6) + l = [] + for i in range(3): + l.append(next(cgen)) + self.assertEqual(l, [14] * 3) + + def test_gen6(self): + self.check_gen6(**nopython_flags) + + def test_gen6_objmode(self): + self.check_gen6(**forceobj_flags) + + def check_gen7(self, **kwargs): + pyfunc = gen7 + cr = jit((types.Array(types.float64, 1, 'C'),), **kwargs)(pyfunc) + arr = np.linspace(1, 10, 7) + pygen = pyfunc(arr.copy()) + cgen = cr(arr) + self.check_generator(pygen, cgen) + + def test_gen7(self): + self.check_gen7(**nopython_flags) + + def test_gen7_objmode(self): + self.check_gen7(**forceobj_flags) + + def check_gen8(self, **jit_args): + pyfunc = gen8 + cfunc = jit(**jit_args)(pyfunc) + + def check(*args, **kwargs): + self.check_generator(pyfunc(*args, **kwargs), + cfunc(*args, **kwargs)) + + check(2, 3) + check(4) + check(y=5) + check(x=6, b=True) + + def test_gen8(self): + self.check_gen8(nopython=True) + + def test_gen8_objmode(self): + self.check_gen8(forceobj=True) + + def check_gen9(self, **kwargs): + pyfunc = gen_bool + cr = jit((), **kwargs)(pyfunc) + pygen = pyfunc() + cgen = cr() + self.check_generator(pygen, cgen) + + def test_gen9(self): + self.check_gen9(**nopython_flags) + + def test_gen9_objmode(self): + self.check_gen9(**forceobj_flags) + + def check_consume_generator(self, gen_func): + cgen = jit(nopython=True)(gen_func) + cfunc = jit(nopython=True)(make_consumer(cgen)) + pyfunc = make_consumer(gen_func) + expected = pyfunc(5) + got = cfunc(5) + self.assertPreciseEqual(got, expected) + + def test_consume_gen1(self): + self.check_consume_generator(gen1) + + def test_consume_gen2(self): + self.check_consume_generator(gen2) + + def test_consume_gen3(self): + self.check_consume_generator(gen3) + + # Check generator storage of some types + + def check_ndindex(self, **kwargs): + pyfunc = gen_ndindex + cr = jit((types.UniTuple(types.intp, 2),), **kwargs)(pyfunc) + shape = (2, 3) + pygen = pyfunc(shape) + cgen = cr(shape) + self.check_generator(pygen, cgen) + + def test_ndindex(self): + self.check_ndindex(**nopython_flags) + + def test_ndindex_objmode(self): + self.check_ndindex(**forceobj_flags) + + def check_np_flat(self, pyfunc, **kwargs): + cr = jit((types.Array(types.int32, 2, "C"),), **kwargs)(pyfunc) + arr = np.arange(6, dtype=np.int32).reshape((2, 3)) + self.check_generator(pyfunc(arr), cr(arr)) + crA = jit((types.Array(types.int32, 2, "A"),), **kwargs)(pyfunc) + arr = arr.T + self.check_generator(pyfunc(arr), crA(arr)) + + def test_np_flat(self): + self.check_np_flat(gen_flat, **nopython_flags) + + def test_np_flat_objmode(self): + self.check_np_flat(gen_flat, **forceobj_flags) + + def test_ndenumerate(self): + self.check_np_flat(gen_ndenumerate, **nopython_flags) + + def test_ndenumerate_objmode(self): + self.check_np_flat(gen_ndenumerate, **forceobj_flags) + + def test_type_unification_error(self): + pyfunc = gen_unification_error + with self.assertTypingError() as raises: + jit((), **nopython_flags)(pyfunc) + + msg = ("Can't unify yield type from the following types: complex128, " + "none") + self.assertIn(msg, str(raises.exception)) + + def test_optional_expansion_type_unification_error(self): + pyfunc = gen_optional_and_type_unification_error + with self.assertTypingError() as raises: + jit((), **nopython_flags)(pyfunc) + + msg = ("Can't unify yield type from the following types: complex128, " + "int%s, none") + self.assertIn(msg % types.intp.bitwidth, str(raises.exception)) + + def test_changing_tuple_type(self): + # test https://github.com/numba/numba/issues/7295 + pyfunc = gen_changing_tuple_type + expected = list(pyfunc()) + got = list(njit(pyfunc)()) + self.assertEqual(expected, got) + + def test_changing_number_type(self): + # additional test for https://github.com/numba/numba/issues/7295 + pyfunc = gen_changing_number_type + expected = list(pyfunc()) + got = list(njit(pyfunc)()) + self.assertEqual(expected, got) + + +def nrt_gen0(ary): + for elem in ary: + yield elem + + +def nrt_gen1(ary1, ary2): + for e1, e2 in zip(ary1, ary2): + yield e1 + yield e2 + + +class TestNrtArrayGen(MemoryLeakMixin, TestCase): + def test_nrt_gen0(self): + pygen = nrt_gen0 + cgen = jit(nopython=True)(pygen) + + py_ary = np.arange(10) + c_ary = py_ary.copy() + + py_res = list(pygen(py_ary)) + c_res = list(cgen(c_ary)) + + np.testing.assert_equal(py_ary, c_ary) + self.assertEqual(py_res, c_res) + # Check reference count + self.assertRefCountEqual(py_ary, c_ary) + + def test_nrt_gen1(self): + pygen = nrt_gen1 + cgen = jit(nopython=True)(pygen) + + py_ary1 = np.arange(10) + py_ary2 = py_ary1 + 100 + + c_ary1 = py_ary1.copy() + c_ary2 = py_ary2.copy() + + py_res = list(pygen(py_ary1, py_ary2)) + c_res = list(cgen(c_ary1, c_ary2)) + + np.testing.assert_equal(py_ary1, c_ary1) + np.testing.assert_equal(py_ary2, c_ary2) + self.assertEqual(py_res, c_res) + # Check reference count + self.assertRefCountEqual(py_ary1, c_ary1) + self.assertRefCountEqual(py_ary2, c_ary2) + + def test_combine_gen0_gen1(self): + """ + Issue #1163 is observed when two generator with NRT object arguments + is ran in sequence. The first one does a invalid free and corrupts + the NRT memory subsystem. The second generator is likely to segfault + due to corrupted NRT data structure (an invalid MemInfo). + """ + self.test_nrt_gen0() + self.test_nrt_gen1() + + def test_nrt_gen0_stop_iteration(self): + """ + Test cleanup on StopIteration + """ + pygen = nrt_gen0 + cgen = jit(nopython=True)(pygen) + + py_ary = np.arange(1) + c_ary = py_ary.copy() + + py_iter = pygen(py_ary) + c_iter = cgen(c_ary) + + py_res = next(py_iter) + c_res = next(c_iter) + + with self.assertRaises(StopIteration): + py_res = next(py_iter) + + with self.assertRaises(StopIteration): + c_res = next(c_iter) + + del py_iter + del c_iter + + np.testing.assert_equal(py_ary, c_ary) + self.assertEqual(py_res, c_res) + # Check reference count + self.assertRefCountEqual(py_ary, c_ary) + + def test_nrt_gen0_no_iter(self): + """ + Test cleanup for a initialized but never iterated (never call next()) + generator. + """ + pygen = nrt_gen0 + cgen = jit(nopython=True)(pygen) + + py_ary = np.arange(1) + c_ary = py_ary.copy() + + py_iter = pygen(py_ary) + c_iter = cgen(c_ary) + + del py_iter + del c_iter + + np.testing.assert_equal(py_ary, c_ary) + + # Check reference count + self.assertRefCountEqual(py_ary, c_ary) + + +# TODO: fix nested generator and MemoryLeakMixin +class TestNrtNestedGen(TestCase): + def test_nrt_nested_gen(self): + + def gen0(arr): + for i in range(arr.size): + yield arr + + def factory(gen0): + def gen1(arr): + out = np.zeros_like(arr) + for x in gen0(arr): + out = out + x + return out, arr + + return gen1 + + py_arr = np.arange(10) + c_arr = py_arr.copy() + py_res, py_old = factory(gen0)(py_arr) + c_gen = jit(nopython=True)(factory(jit(nopython=True)(gen0))) + c_res, c_old = c_gen(c_arr) + + self.assertIsNot(py_arr, c_arr) + self.assertIs(py_old, py_arr) + self.assertIs(c_old, c_arr) + + np.testing.assert_equal(py_res, c_res) + + self.assertRefCountEqual(py_res, c_res) + + # The below test will fail due to generator finalizer not invoked. + # This kept a reference of the c_old. + # + # self.assertEqual(sys.getrefcount(py_old), + # sys.getrefcount(c_old)) + + @unittest.expectedFailure + def test_nrt_nested_gen_refct(self): + def gen0(arr): + yield arr + + def factory(gen0): + def gen1(arr): + for out in gen0(arr): + return out + + return gen1 + + py_arr = np.arange(10) + c_arr = py_arr.copy() + py_old = factory(gen0)(py_arr) + c_gen = jit(nopython=True)(factory(jit(nopython=True)(gen0))) + c_old = c_gen(c_arr) + + self.assertIsNot(py_arr, c_arr) + self.assertIs(py_old, py_arr) + self.assertIs(c_old, c_arr) + + self.assertRefCountEqual(py_old, c_old) + + def test_nrt_nested_nopython_gen(self): + """ + Test nesting three generators + """ + + def factory(decor=lambda x: x): + @decor + def foo(a, n): + for i in range(n): + yield a[i] + a[i] += i + + @decor + def bar(n): + a = np.arange(n) + for i in foo(a, n): + yield i * 2 + for i in range(a.size): + yield a[i] + + @decor + def cat(n): + for i in bar(n): + yield i + i + + return cat + + py_gen = factory() + c_gen = factory(jit(nopython=True)) + + py_res = list(py_gen(10)) + c_res = list(c_gen(10)) + + self.assertEqual(py_res, c_res) + + +class TestGeneratorWithNRT(MemoryLeakMixin, TestCase): + def test_issue_1254(self): + """ + Missing environment for returning array + """ + + @jit(nopython=True) + def random_directions(n): + for i in range(n): + vec = np.empty(3) + vec[:] = 12 + yield vec + + outputs = list(random_directions(5)) + self.assertEqual(len(outputs), 5) + + expect = np.empty(3) + expect[:] = 12 + for got in outputs: + np.testing.assert_equal(expect, got) + + def test_issue_1265(self): + """ + Double-free for locally allocated, non escaping NRT objects + """ + + def py_gen(rmin, rmax, nr): + a = np.linspace(rmin, rmax, nr) + yield a[0] + yield a[1] + + c_gen = jit(nopython=True)(py_gen) + + py_res = list(py_gen(-2, 2, 100)) + c_res = list(c_gen(-2, 2, 100)) + + self.assertEqual(py_res, c_res) + + def py_driver(args): + rmin, rmax, nr = args + points = np.empty(nr, dtype=np.complex128) + for i, c in enumerate(py_gen(rmin, rmax, nr)): + points[i] = c + + return points + + @jit(nopython=True) + def c_driver(args): + rmin, rmax, nr = args + points = np.empty(nr, dtype=np.complex128) + for i, c in enumerate(c_gen(rmin, rmax, nr)): + points[i] = c + + return points + + n = 2 + patches = (-2, -1, n) + + py_res = py_driver(patches) + # The error will cause a segfault here + c_res = c_driver(patches) + + np.testing.assert_equal(py_res, c_res) + + def test_issue_1808(self): + """ + Incorrect return data model + """ + magic = 0xdeadbeef + + @njit + def generator(): + yield magic + + @njit + def get_generator(): + return generator() + + @njit + def main(): + out = 0 + for x in get_generator(): + out += x + + return out + + self.assertEqual(main(), magic) + + +class TestGeneratorModel(test_factory()): + fe_type = types.Generator(gen_func=None, yield_type=types.int32, + arg_types=[types.int64, types.float32], + state_types=[types.intp, types.intp[::1]], + has_finalizer=False) + + +if __name__ == '__main__': + unittest.main() diff --git a/shared/package-files/72/720021976f9b2d7064c7611a5792ad9d8efe30a3842fd328bf6e495280262d2a/test_basic.py b/shared/package-files/72/720021976f9b2d7064c7611a5792ad9d8efe30a3842fd328bf6e495280262d2a/test_basic.py new file mode 100644 index 0000000000000000000000000000000000000000..dcb3f5e12ca1219b5ac8fed49f8aaf9b115836c5 --- /dev/null +++ b/shared/package-files/72/720021976f9b2d7064c7611a5792ad9d8efe30a3842fd328bf6e495280262d2a/test_basic.py @@ -0,0 +1,319 @@ +"""This tests sympy/core/basic.py with (ideally) no reference to subclasses +of Basic or Atom.""" + +import collections + +from sympy.assumptions.ask import Q +from sympy.core.basic import (Basic, Atom, as_Basic, + _atomic, _aresame) +from sympy.core.containers import Tuple +from sympy.core.function import Function, Lambda +from sympy.core.numbers import I, pi +from sympy.core.singleton import S +from sympy.core.symbol import symbols, Symbol, Dummy +from sympy.concrete.summations import Sum +from sympy.functions.elementary.trigonometric import (cos, sin) +from sympy.functions.special.gamma_functions import gamma +from sympy.integrals.integrals import Integral +from sympy.functions.elementary.exponential import exp +from sympy.testing.pytest import raises, warns_deprecated_sympy + +b1 = Basic() +b2 = Basic(b1) +b3 = Basic(b2) +b21 = Basic(b2, b1) + + +def test__aresame(): + assert not _aresame(Basic(Tuple()), Basic()) + assert not _aresame(Basic(S(2)), Basic(S(2.))) + + +def test_structure(): + assert b21.args == (b2, b1) + assert b21.func(*b21.args) == b21 + assert bool(b1) + + +def test_immutable(): + assert not hasattr(b1, '__dict__') + with raises(AttributeError): + b1.x = 1 + + +def test_equality(): + instances = [b1, b2, b3, b21, Basic(b1, b1, b1), Basic] + for i, b_i in enumerate(instances): + for j, b_j in enumerate(instances): + assert (b_i == b_j) == (i == j) + assert (b_i != b_j) == (i != j) + + assert Basic() != [] + assert not(Basic() == []) + assert Basic() != 0 + assert not(Basic() == 0) + + class Foo: + """ + Class that is unaware of Basic, and relies on both classes returning + the NotImplemented singleton for equivalence to evaluate to False. + + """ + + b = Basic() + foo = Foo() + + assert b != foo + assert foo != b + assert not b == foo + assert not foo == b + + class Bar: + """ + Class that considers itself equal to any instance of Basic, and relies + on Basic returning the NotImplemented singleton in order to achieve + a symmetric equivalence relation. + + """ + def __eq__(self, other): + if isinstance(other, Basic): + return True + return NotImplemented + + def __ne__(self, other): + return not self == other + + bar = Bar() + + assert b == bar + assert bar == b + assert not b != bar + assert not bar != b + + +def test_matches_basic(): + instances = [Basic(b1, b1, b2), Basic(b1, b2, b1), Basic(b2, b1, b1), + Basic(b1, b2), Basic(b2, b1), b2, b1] + for i, b_i in enumerate(instances): + for j, b_j in enumerate(instances): + if i == j: + assert b_i.matches(b_j) == {} + else: + assert b_i.matches(b_j) is None + assert b1.match(b1) == {} + + +def test_has(): + assert b21.has(b1) + assert b21.has(b3, b1) + assert b21.has(Basic) + assert not b1.has(b21, b3) + assert not b21.has() + assert not b21.has(str) + assert not Symbol("x").has("x") + + +def test_subs(): + assert b21.subs(b2, b1) == Basic(b1, b1) + assert b21.subs(b2, b21) == Basic(b21, b1) + assert b3.subs(b2, b1) == b2 + + assert b21.subs([(b2, b1), (b1, b2)]) == Basic(b2, b2) + + assert b21.subs({b1: b2, b2: b1}) == Basic(b2, b2) + assert b21.subs(collections.ChainMap({b1: b2}, {b2: b1})) == Basic(b2, b2) + assert b21.subs(collections.OrderedDict([(b2, b1), (b1, b2)])) == Basic(b2, b2) + + raises(ValueError, lambda: b21.subs('bad arg')) + raises(ValueError, lambda: b21.subs(b1, b2, b3)) + # dict(b1=foo) creates a string 'b1' but leaves foo unchanged; subs + # will convert the first to a symbol but will raise an error if foo + # cannot be sympified; sympification is strict if foo is not string + raises(ValueError, lambda: b21.subs(b1='bad arg')) + + assert Symbol("text").subs({"text": b1}) == b1 + assert Symbol("s").subs({"s": 1}) == 1 + + +def test_subs_with_unicode_symbols(): + expr = Symbol('var1') + replaced = expr.subs('var1', 'x') + assert replaced.name == 'x' + + replaced = expr.subs('var1', 'x') + assert replaced.name == 'x' + + +def test_atoms(): + assert b21.atoms() == {Basic()} + + +def test_free_symbols_empty(): + assert b21.free_symbols == set() + + +def test_doit(): + assert b21.doit() == b21 + assert b21.doit(deep=False) == b21 + + +def test_S(): + assert repr(S) == 'S' + + +def test_xreplace(): + assert b21.xreplace({b2: b1}) == Basic(b1, b1) + assert b21.xreplace({b2: b21}) == Basic(b21, b1) + assert b3.xreplace({b2: b1}) == b2 + assert Basic(b1, b2).xreplace({b1: b2, b2: b1}) == Basic(b2, b1) + assert Atom(b1).xreplace({b1: b2}) == Atom(b1) + assert Atom(b1).xreplace({Atom(b1): b2}) == b2 + raises(TypeError, lambda: b1.xreplace()) + raises(TypeError, lambda: b1.xreplace([b1, b2])) + for f in (exp, Function('f')): + assert f.xreplace({}) == f + assert f.xreplace({}, hack2=True) == f + assert f.xreplace({f: b1}) == b1 + assert f.xreplace({f: b1}, hack2=True) == b1 + + +def test_sorted_args(): + x = symbols('x') + assert b21._sorted_args == b21.args + raises(AttributeError, lambda: x._sorted_args) + +def test_call(): + x, y = symbols('x y') + # See the long history of this in issues 5026 and 5105. + + raises(TypeError, lambda: sin(x)({ x : 1, sin(x) : 2})) + raises(TypeError, lambda: sin(x)(1)) + + # No effect as there are no callables + assert sin(x).rcall(1) == sin(x) + assert (1 + sin(x)).rcall(1) == 1 + sin(x) + + # Effect in the pressence of callables + l = Lambda(x, 2*x) + assert (l + x).rcall(y) == 2*y + x + assert (x**l).rcall(2) == x**4 + # TODO UndefinedFunction does not subclass Expr + #f = Function('f') + #assert (2*f)(x) == 2*f(x) + + assert (Q.real & Q.positive).rcall(x) == Q.real(x) & Q.positive(x) + + +def test_rewrite(): + x, y, z = symbols('x y z') + a, b = symbols('a b') + f1 = sin(x) + cos(x) + assert f1.rewrite(cos,exp) == exp(I*x)/2 + sin(x) + exp(-I*x)/2 + assert f1.rewrite([cos],sin) == sin(x) + sin(x + pi/2, evaluate=False) + f2 = sin(x) + cos(y)/gamma(z) + assert f2.rewrite(sin,exp) == -I*(exp(I*x) - exp(-I*x))/2 + cos(y)/gamma(z) + + assert f1.rewrite() == f1 + +def test_literal_evalf_is_number_is_zero_is_comparable(): + x = symbols('x') + f = Function('f') + + # issue 5033 + assert f.is_number is False + # issue 6646 + assert f(1).is_number is False + i = Integral(0, (x, x, x)) + # expressions that are symbolically 0 can be difficult to prove + # so in case there is some easy way to know if something is 0 + # it should appear in the is_zero property for that object; + # if is_zero is true evalf should always be able to compute that + # zero + assert i.n() == 0 + assert i.is_zero + assert i.is_number is False + assert i.evalf(2, strict=False) == 0 + + # issue 10268 + n = sin(1)**2 + cos(1)**2 - 1 + assert n.is_comparable is False + assert n.n(2).is_comparable is False + assert n.n(2).n(2).is_comparable + + +def test_as_Basic(): + assert as_Basic(1) is S.One + assert as_Basic(()) == Tuple() + raises(TypeError, lambda: as_Basic([])) + + +def test_atomic(): + g, h = map(Function, 'gh') + x = symbols('x') + assert _atomic(g(x + h(x))) == {g(x + h(x))} + assert _atomic(g(x + h(x)), recursive=True) == {h(x), x, g(x + h(x))} + assert _atomic(1) == set() + assert _atomic(Basic(S(1), S(2))) == set() + + +def test_as_dummy(): + u, v, x, y, z, _0, _1 = symbols('u v x y z _0 _1') + assert Lambda(x, x + 1).as_dummy() == Lambda(_0, _0 + 1) + assert Lambda(x, x + _0).as_dummy() == Lambda(_1, _0 + _1) + eq = (1 + Sum(x, (x, 1, x))) + ans = 1 + Sum(_0, (_0, 1, x)) + once = eq.as_dummy() + assert once == ans + twice = once.as_dummy() + assert twice == ans + assert Integral(x + _0, (x, x + 1), (_0, 1, 2) + ).as_dummy() == Integral(_0 + _1, (_0, x + 1), (_1, 1, 2)) + for T in (Symbol, Dummy): + d = T('x', real=True) + D = d.as_dummy() + assert D != d and D.func == Dummy and D.is_real is None + assert Dummy().as_dummy().is_commutative + assert Dummy(commutative=False).as_dummy().is_commutative is False + + +def test_canonical_variables(): + x, i0, i1 = symbols('x _:2') + assert Integral(x, (x, x + 1)).canonical_variables == {x: i0} + assert Integral(x, (x, x + 1), (i0, 1, 2)).canonical_variables == { + x: i0, i0: i1} + assert Integral(x, (x, x + i0)).canonical_variables == {x: i1} + + +def test_replace_exceptions(): + from sympy.core.symbol import Wild + x, y = symbols('x y') + e = (x**2 + x*y) + raises(TypeError, lambda: e.replace(sin, 2)) + b = Wild('b') + c = Wild('c') + raises(TypeError, lambda: e.replace(b*c, c.is_real)) + raises(TypeError, lambda: e.replace(b.is_real, 1)) + raises(TypeError, lambda: e.replace(lambda d: d.is_Number, 1)) + + +def test_ManagedProperties(): + # ManagedProperties is now deprecated. Here we do our best to check that if + # someone is using it then it does work in the way that it previously did + # but gives a deprecation warning. + from sympy.core.assumptions import ManagedProperties + + myclasses = [] + + class MyMeta(ManagedProperties): + def __init__(cls, *args, **kwargs): + myclasses.append('executed') + super().__init__(*args, **kwargs) + + code = """ +class MySubclass(Basic, metaclass=MyMeta): + pass +""" + with warns_deprecated_sympy(): + exec(code) + + assert myclasses == ['executed'] diff --git a/shared/package-files/72/7200681ce87915c4ea4342c3e6b3b1e0aec409ceec6e7383bdcae7d79fd07932/_spectral.py b/shared/package-files/72/7200681ce87915c4ea4342c3e6b3b1e0aec409ceec6e7383bdcae7d79fd07932/_spectral.py new file mode 100644 index 0000000000000000000000000000000000000000..5ff5bef0283b2d6b6c018c1c8b98cd46a335d7cb --- /dev/null +++ b/shared/package-files/72/7200681ce87915c4ea4342c3e6b3b1e0aec409ceec6e7383bdcae7d79fd07932/_spectral.py @@ -0,0 +1,260 @@ +""" +Spectral Algorithm for Nonlinear Equations +""" +import collections + +import numpy as np +from scipy.optimize import OptimizeResult +from scipy.optimize._optimize import _check_unknown_options +from ._linesearch import _nonmonotone_line_search_cruz, _nonmonotone_line_search_cheng + +class _NoConvergence(Exception): + pass + + +def _root_df_sane(func, x0, args=(), ftol=1e-8, fatol=1e-300, maxfev=1000, + fnorm=None, callback=None, disp=False, M=10, eta_strategy=None, + sigma_eps=1e-10, sigma_0=1.0, line_search='cruz', **unknown_options): + r""" + Solve nonlinear equation with the DF-SANE method + + Options + ------- + ftol : float, optional + Relative norm tolerance. + fatol : float, optional + Absolute norm tolerance. + Algorithm terminates when ``||func(x)|| < fatol + ftol ||func(x_0)||``. + fnorm : callable, optional + Norm to use in the convergence check. If None, 2-norm is used. + maxfev : int, optional + Maximum number of function evaluations. + disp : bool, optional + Whether to print convergence process to stdout. + eta_strategy : callable, optional + Choice of the ``eta_k`` parameter, which gives slack for growth + of ``||F||**2``. Called as ``eta_k = eta_strategy(k, x, F)`` with + `k` the iteration number, `x` the current iterate and `F` the current + residual. Should satisfy ``eta_k > 0`` and ``sum(eta, k=0..inf) < inf``. + Default: ``||F||**2 / (1 + k)**2``. + sigma_eps : float, optional + The spectral coefficient is constrained to ``sigma_eps < sigma < 1/sigma_eps``. + Default: 1e-10 + sigma_0 : float, optional + Initial spectral coefficient. + Default: 1.0 + M : int, optional + Number of iterates to include in the nonmonotonic line search. + Default: 10 + line_search : {'cruz', 'cheng'} + Type of line search to employ. 'cruz' is the original one defined in + [Martinez & Raydan. Math. Comp. 75, 1429 (2006)], 'cheng' is + a modified search defined in [Cheng & Li. IMA J. Numer. Anal. 29, 814 (2009)]. + Default: 'cruz' + + References + ---------- + .. [1] "Spectral residual method without gradient information for solving + large-scale nonlinear systems of equations." W. La Cruz, + J.M. Martinez, M. Raydan. Math. Comp. **75**, 1429 (2006). + .. [2] W. La Cruz, Opt. Meth. Software, 29, 24 (2014). + .. [3] W. Cheng, D.-H. Li. IMA J. Numer. Anal. **29**, 814 (2009). + + """ + _check_unknown_options(unknown_options) + + if line_search not in ('cheng', 'cruz'): + raise ValueError(f"Invalid value {line_search!r} for 'line_search'") + + nexp = 2 + + if eta_strategy is None: + # Different choice from [1], as their eta is not invariant + # vs. scaling of F. + def eta_strategy(k, x, F): + # Obtain squared 2-norm of the initial residual from the outer scope + return f_0 / (1 + k)**2 + + if fnorm is None: + def fnorm(F): + # Obtain squared 2-norm of the current residual from the outer scope + return f_k**(1.0/nexp) + + def fmerit(F): + return np.linalg.norm(F)**nexp + + nfev = [0] + f, x_k, x_shape, f_k, F_k, is_complex = _wrap_func(func, x0, fmerit, + nfev, maxfev, args) + + k = 0 + f_0 = f_k + sigma_k = sigma_0 + + F_0_norm = fnorm(F_k) + + # For the 'cruz' line search + prev_fs = collections.deque([f_k], M) + + # For the 'cheng' line search + Q = 1.0 + C = f_0 + + converged = False + message = "too many function evaluations required" + + while True: + F_k_norm = fnorm(F_k) + + if disp: + print("iter %d: ||F|| = %g, sigma = %g" % (k, F_k_norm, sigma_k)) + + if callback is not None: + callback(x_k, F_k) + + if F_k_norm < ftol * F_0_norm + fatol: + # Converged! + message = "successful convergence" + converged = True + break + + # Control spectral parameter, from [2] + if abs(sigma_k) > 1/sigma_eps: + sigma_k = 1/sigma_eps * np.sign(sigma_k) + elif abs(sigma_k) < sigma_eps: + sigma_k = sigma_eps + + # Line search direction + d = -sigma_k * F_k + + # Nonmonotone line search + eta = eta_strategy(k, x_k, F_k) + try: + if line_search == 'cruz': + alpha, xp, fp, Fp = _nonmonotone_line_search_cruz(f, x_k, d, prev_fs, + eta=eta) + elif line_search == 'cheng': + alpha, xp, fp, Fp, C, Q = _nonmonotone_line_search_cheng(f, x_k, d, f_k, + C, Q, eta=eta) + except _NoConvergence: + break + + # Update spectral parameter + s_k = xp - x_k + y_k = Fp - F_k + sigma_k = np.vdot(s_k, s_k) / np.vdot(s_k, y_k) + + # Take step + x_k = xp + F_k = Fp + f_k = fp + + # Store function value + if line_search == 'cruz': + prev_fs.append(fp) + + k += 1 + + x = _wrap_result(x_k, is_complex, shape=x_shape) + F = _wrap_result(F_k, is_complex) + + result = OptimizeResult(x=x, success=converged, + message=message, + fun=F, nfev=nfev[0], nit=k, method="df-sane") + + return result + + +def _wrap_func(func, x0, fmerit, nfev_list, maxfev, args=()): + """ + Wrap a function and an initial value so that (i) complex values + are wrapped to reals, and (ii) value for a merit function + fmerit(x, f) is computed at the same time, (iii) iteration count + is maintained and an exception is raised if it is exceeded. + + Parameters + ---------- + func : callable + Function to wrap + x0 : ndarray + Initial value + fmerit : callable + Merit function fmerit(f) for computing merit value from residual. + nfev_list : list + List to store number of evaluations in. Should be [0] in the beginning. + maxfev : int + Maximum number of evaluations before _NoConvergence is raised. + args : tuple + Extra arguments to func + + Returns + ------- + wrap_func : callable + Wrapped function, to be called as + ``F, fp = wrap_func(x0)`` + x0_wrap : ndarray of float + Wrapped initial value; raveled to 1-D and complex + values mapped to reals. + x0_shape : tuple + Shape of the initial value array + f : float + Merit function at F + F : ndarray of float + Residual at x0_wrap + is_complex : bool + Whether complex values were mapped to reals + + """ + x0 = np.asarray(x0) + x0_shape = x0.shape + F = np.asarray(func(x0, *args)).ravel() + is_complex = np.iscomplexobj(x0) or np.iscomplexobj(F) + x0 = x0.ravel() + + nfev_list[0] = 1 + + if is_complex: + def wrap_func(x): + if nfev_list[0] >= maxfev: + raise _NoConvergence() + nfev_list[0] += 1 + z = _real2complex(x).reshape(x0_shape) + v = np.asarray(func(z, *args)).ravel() + F = _complex2real(v) + f = fmerit(F) + return f, F + + x0 = _complex2real(x0) + F = _complex2real(F) + else: + def wrap_func(x): + if nfev_list[0] >= maxfev: + raise _NoConvergence() + nfev_list[0] += 1 + x = x.reshape(x0_shape) + F = np.asarray(func(x, *args)).ravel() + f = fmerit(F) + return f, F + + return wrap_func, x0, x0_shape, fmerit(F), F, is_complex + + +def _wrap_result(result, is_complex, shape=None): + """ + Convert from real to complex and reshape result arrays. + """ + if is_complex: + z = _real2complex(result) + else: + z = result + if shape is not None: + z = z.reshape(shape) + return z + + +def _real2complex(x): + return np.ascontiguousarray(x, dtype=float).view(np.complex128) + + +def _complex2real(z): + return np.ascontiguousarray(z, dtype=complex).view(np.float64) diff --git a/shared/package-files/72/7202327f2263695e47c924394f1697f7b032c1af15a5292be54240b4d7758962/_iterative.py b/shared/package-files/72/7202327f2263695e47c924394f1697f7b032c1af15a5292be54240b4d7758962/_iterative.py new file mode 100644 index 0000000000000000000000000000000000000000..ddae5373c5460891467d50fd7105473031d957b4 --- /dev/null +++ b/shared/package-files/72/7202327f2263695e47c924394f1697f7b032c1af15a5292be54240b4d7758962/_iterative.py @@ -0,0 +1,1030 @@ +# Authors: The scikit-learn developers +# SPDX-License-Identifier: BSD-3-Clause + +import warnings +from collections import namedtuple +from numbers import Integral, Real +from time import time + +import numpy as np +from scipy import stats + +from ..base import _fit_context, clone +from ..exceptions import ConvergenceWarning +from ..preprocessing import normalize +from ..utils import _safe_indexing, check_array, check_random_state +from ..utils._indexing import _safe_assign +from ..utils._mask import _get_mask +from ..utils._missing import is_scalar_nan +from ..utils._param_validation import HasMethods, Interval, StrOptions +from ..utils.metadata_routing import ( + MetadataRouter, + MethodMapping, + _raise_for_params, + process_routing, +) +from ..utils.validation import ( + FLOAT_DTYPES, + _check_feature_names_in, + _num_samples, + check_is_fitted, + validate_data, +) +from ._base import SimpleImputer, _BaseImputer, _check_inputs_dtype + +_ImputerTriplet = namedtuple( + "_ImputerTriplet", ["feat_idx", "neighbor_feat_idx", "estimator"] +) + + +def _assign_where(X1, X2, cond): + """Assign X2 to X1 where cond is True. + + Parameters + ---------- + X1 : ndarray or dataframe of shape (n_samples, n_features) + Data. + + X2 : ndarray of shape (n_samples, n_features) + Data to be assigned. + + cond : ndarray of shape (n_samples, n_features) + Boolean mask to assign data. + """ + if hasattr(X1, "mask"): # pandas dataframes + X1.mask(cond=cond, other=X2, inplace=True) + else: # ndarrays + X1[cond] = X2[cond] + + +class IterativeImputer(_BaseImputer): + """Multivariate imputer that estimates each feature from all the others. + + A strategy for imputing missing values by modeling each feature with + missing values as a function of other features in a round-robin fashion. + + Read more in the :ref:`User Guide `. + + .. versionadded:: 0.21 + + .. note:: + + This estimator is still **experimental** for now: the predictions + and the API might change without any deprecation cycle. To use it, + you need to explicitly import `enable_iterative_imputer`:: + + >>> # explicitly require this experimental feature + >>> from sklearn.experimental import enable_iterative_imputer # noqa + >>> # now you can import normally from sklearn.impute + >>> from sklearn.impute import IterativeImputer + + Parameters + ---------- + estimator : estimator object, default=BayesianRidge() + The estimator to use at each step of the round-robin imputation. + If `sample_posterior=True`, the estimator must support + `return_std` in its `predict` method. + + missing_values : int or np.nan, default=np.nan + The placeholder for the missing values. All occurrences of + `missing_values` will be imputed. For pandas' dataframes with + nullable integer dtypes with missing values, `missing_values` + should be set to `np.nan`, since `pd.NA` will be converted to `np.nan`. + + sample_posterior : bool, default=False + Whether to sample from the (Gaussian) predictive posterior of the + fitted estimator for each imputation. Estimator must support + `return_std` in its `predict` method if set to `True`. Set to + `True` if using `IterativeImputer` for multiple imputations. + + max_iter : int, default=10 + Maximum number of imputation rounds to perform before returning the + imputations computed during the final round. A round is a single + imputation of each feature with missing values. The stopping criterion + is met once `max(abs(X_t - X_{t-1}))/max(abs(X[known_vals])) < tol`, + where `X_t` is `X` at iteration `t`. Note that early stopping is only + applied if `sample_posterior=False`. + + tol : float, default=1e-3 + Tolerance of the stopping condition. + + n_nearest_features : int, default=None + Number of other features to use to estimate the missing values of + each feature column. Nearness between features is measured using + the absolute correlation coefficient between each feature pair (after + initial imputation). To ensure coverage of features throughout the + imputation process, the neighbor features are not necessarily nearest, + but are drawn with probability proportional to correlation for each + imputed target feature. Can provide significant speed-up when the + number of features is huge. If `None`, all features will be used. + + initial_strategy : {'mean', 'median', 'most_frequent', 'constant'}, \ + default='mean' + Which strategy to use to initialize the missing values. Same as the + `strategy` parameter in :class:`~sklearn.impute.SimpleImputer`. + + fill_value : str or numerical value, default=None + When `strategy="constant"`, `fill_value` is used to replace all + occurrences of missing_values. For string or object data types, + `fill_value` must be a string. + If `None`, `fill_value` will be 0 when imputing numerical + data and "missing_value" for strings or object data types. + + .. versionadded:: 1.3 + + imputation_order : {'ascending', 'descending', 'roman', 'arabic', \ + 'random'}, default='ascending' + The order in which the features will be imputed. Possible values: + + - `'ascending'`: From features with fewest missing values to most. + - `'descending'`: From features with most missing values to fewest. + - `'roman'`: Left to right. + - `'arabic'`: Right to left. + - `'random'`: A random order for each round. + + skip_complete : bool, default=False + If `True` then features with missing values during :meth:`transform` + which did not have any missing values during :meth:`fit` will be + imputed with the initial imputation method only. Set to `True` if you + have many features with no missing values at both :meth:`fit` and + :meth:`transform` time to save compute. + + min_value : float or array-like of shape (n_features,), default=-np.inf + Minimum possible imputed value. Broadcast to shape `(n_features,)` if + scalar. If array-like, expects shape `(n_features,)`, one min value for + each feature. The default is `-np.inf`. + + .. versionchanged:: 0.23 + Added support for array-like. + + max_value : float or array-like of shape (n_features,), default=np.inf + Maximum possible imputed value. Broadcast to shape `(n_features,)` if + scalar. If array-like, expects shape `(n_features,)`, one max value for + each feature. The default is `np.inf`. + + .. versionchanged:: 0.23 + Added support for array-like. + + verbose : int, default=0 + Verbosity flag, controls the debug messages that are issued + as functions are evaluated. The higher, the more verbose. Can be 0, 1, + or 2. + + random_state : int, RandomState instance or None, default=None + The seed of the pseudo random number generator to use. Randomizes + selection of estimator features if `n_nearest_features` is not `None`, + the `imputation_order` if `random`, and the sampling from posterior if + `sample_posterior=True`. Use an integer for determinism. + See :term:`the Glossary `. + + add_indicator : bool, default=False + If `True`, a :class:`MissingIndicator` transform will stack onto output + of the imputer's transform. This allows a predictive estimator + to account for missingness despite imputation. If a feature has no + missing values at fit/train time, the feature won't appear on + the missing indicator even if there are missing values at + transform/test time. + + keep_empty_features : bool, default=False + If True, features that consist exclusively of missing values when + `fit` is called are returned in results when `transform` is called. + The imputed value is always `0` except when + `initial_strategy="constant"` in which case `fill_value` will be + used instead. + + .. versionadded:: 1.2 + + Attributes + ---------- + initial_imputer_ : object of type :class:`~sklearn.impute.SimpleImputer` + Imputer used to initialize the missing values. + + imputation_sequence_ : list of tuples + Each tuple has `(feat_idx, neighbor_feat_idx, estimator)`, where + `feat_idx` is the current feature to be imputed, + `neighbor_feat_idx` is the array of other features used to impute the + current feature, and `estimator` is the trained estimator used for + the imputation. Length is `self.n_features_with_missing_ * + self.n_iter_`. + + n_iter_ : int + Number of iteration rounds that occurred. Will be less than + `self.max_iter` if early stopping criterion was reached. + + 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_features_with_missing_ : int + Number of features with missing values. + + indicator_ : :class:`~sklearn.impute.MissingIndicator` + Indicator used to add binary indicators for missing values. + `None` if `add_indicator=False`. + + random_state_ : RandomState instance + RandomState instance that is generated either from a seed, the random + number generator or by `np.random`. + + See Also + -------- + SimpleImputer : Univariate imputer for completing missing values + with simple strategies. + KNNImputer : Multivariate imputer that estimates missing features using + nearest samples. + + Notes + ----- + To support imputation in inductive mode we store each feature's estimator + during the :meth:`fit` phase, and predict without refitting (in order) + during the :meth:`transform` phase. + + Features which contain all missing values at :meth:`fit` are discarded upon + :meth:`transform`. + + Using defaults, the imputer scales in :math:`\\mathcal{O}(knp^3\\min(n,p))` + where :math:`k` = `max_iter`, :math:`n` the number of samples and + :math:`p` the number of features. It thus becomes prohibitively costly when + the number of features increases. Setting + `n_nearest_features << n_features`, `skip_complete=True` or increasing `tol` + can help to reduce its computational cost. + + Depending on the nature of missing values, simple imputers can be + preferable in a prediction context. + + References + ---------- + .. [1] `Stef van Buuren, Karin Groothuis-Oudshoorn (2011). "mice: + Multivariate Imputation by Chained Equations in R". Journal of + Statistical Software 45: 1-67. + `_ + + .. [2] `S. F. Buck, (1960). "A Method of Estimation of Missing Values in + Multivariate Data Suitable for use with an Electronic Computer". + Journal of the Royal Statistical Society 22(2): 302-306. + `_ + + Examples + -------- + >>> import numpy as np + >>> from sklearn.experimental import enable_iterative_imputer + >>> from sklearn.impute import IterativeImputer + >>> imp_mean = IterativeImputer(random_state=0) + >>> imp_mean.fit([[7, 2, 3], [4, np.nan, 6], [10, 5, 9]]) + IterativeImputer(random_state=0) + >>> X = [[np.nan, 2, 3], [4, np.nan, 6], [10, np.nan, 9]] + >>> imp_mean.transform(X) + array([[ 6.9584, 2. , 3. ], + [ 4. , 2.6000, 6. ], + [10. , 4.9999, 9. ]]) + + For a more detailed example see + :ref:`sphx_glr_auto_examples_impute_plot_missing_values.py` or + :ref:`sphx_glr_auto_examples_impute_plot_iterative_imputer_variants_comparison.py`. + """ + + _parameter_constraints: dict = { + **_BaseImputer._parameter_constraints, + "estimator": [None, HasMethods(["fit", "predict"])], + "sample_posterior": ["boolean"], + "max_iter": [Interval(Integral, 0, None, closed="left")], + "tol": [Interval(Real, 0, None, closed="left")], + "n_nearest_features": [None, Interval(Integral, 1, None, closed="left")], + "initial_strategy": [ + StrOptions({"mean", "median", "most_frequent", "constant"}) + ], + "fill_value": "no_validation", # any object is valid + "imputation_order": [ + StrOptions({"ascending", "descending", "roman", "arabic", "random"}) + ], + "skip_complete": ["boolean"], + "min_value": [None, Interval(Real, None, None, closed="both"), "array-like"], + "max_value": [None, Interval(Real, None, None, closed="both"), "array-like"], + "verbose": ["verbose"], + "random_state": ["random_state"], + } + + def __init__( + self, + estimator=None, + *, + missing_values=np.nan, + sample_posterior=False, + max_iter=10, + tol=1e-3, + n_nearest_features=None, + initial_strategy="mean", + fill_value=None, + imputation_order="ascending", + skip_complete=False, + min_value=-np.inf, + max_value=np.inf, + verbose=0, + random_state=None, + add_indicator=False, + keep_empty_features=False, + ): + super().__init__( + missing_values=missing_values, + add_indicator=add_indicator, + keep_empty_features=keep_empty_features, + ) + + self.estimator = estimator + self.sample_posterior = sample_posterior + self.max_iter = max_iter + self.tol = tol + self.n_nearest_features = n_nearest_features + self.initial_strategy = initial_strategy + self.fill_value = fill_value + self.imputation_order = imputation_order + self.skip_complete = skip_complete + self.min_value = min_value + self.max_value = max_value + self.verbose = verbose + self.random_state = random_state + + def _impute_one_feature( + self, + X_filled, + mask_missing_values, + feat_idx, + neighbor_feat_idx, + estimator=None, + fit_mode=True, + params=None, + ): + """Impute a single feature from the others provided. + + This function predicts the missing values of one of the features using + the current estimates of all the other features. The `estimator` must + support `return_std=True` in its `predict` method for this function + to work. + + Parameters + ---------- + X_filled : ndarray + Input data with the most recent imputations. + + mask_missing_values : ndarray + Input data's missing indicator matrix. + + feat_idx : int + Index of the feature currently being imputed. + + neighbor_feat_idx : ndarray + Indices of the features to be used in imputing `feat_idx`. + + estimator : object + The estimator to use at this step of the round-robin imputation. + If `sample_posterior=True`, the estimator must support + `return_std` in its `predict` method. + If None, it will be cloned from self._estimator. + + fit_mode : boolean, default=True + Whether to fit and predict with the estimator or just predict. + + params : dict + Additional params routed to the individual estimator. + + Returns + ------- + X_filled : ndarray + Input data with `X_filled[missing_row_mask, feat_idx]` updated. + + estimator : estimator with sklearn API + The fitted estimator used to impute + `X_filled[missing_row_mask, feat_idx]`. + """ + if estimator is None and fit_mode is False: + raise ValueError( + "If fit_mode is False, then an already-fitted " + "estimator should be passed in." + ) + + if estimator is None: + estimator = clone(self._estimator) + + missing_row_mask = mask_missing_values[:, feat_idx] + if fit_mode: + X_train = _safe_indexing( + _safe_indexing(X_filled, neighbor_feat_idx, axis=1), + ~missing_row_mask, + axis=0, + ) + y_train = _safe_indexing( + _safe_indexing(X_filled, feat_idx, axis=1), + ~missing_row_mask, + axis=0, + ) + estimator.fit(X_train, y_train, **params) + + # if no missing values, don't predict + if np.sum(missing_row_mask) == 0: + return X_filled, estimator + + # get posterior samples if there is at least one missing value + X_test = _safe_indexing( + _safe_indexing(X_filled, neighbor_feat_idx, axis=1), + missing_row_mask, + axis=0, + ) + if self.sample_posterior: + mus, sigmas = estimator.predict(X_test, return_std=True) + imputed_values = np.zeros(mus.shape, dtype=X_filled.dtype) + # two types of problems: (1) non-positive sigmas + # (2) mus outside legal range of min_value and max_value + # (results in inf sample) + positive_sigmas = sigmas > 0 + imputed_values[~positive_sigmas] = mus[~positive_sigmas] + mus_too_low = mus < self._min_value[feat_idx] + imputed_values[mus_too_low] = self._min_value[feat_idx] + mus_too_high = mus > self._max_value[feat_idx] + imputed_values[mus_too_high] = self._max_value[feat_idx] + # the rest can be sampled without statistical issues + inrange_mask = positive_sigmas & ~mus_too_low & ~mus_too_high + mus = mus[inrange_mask] + sigmas = sigmas[inrange_mask] + a = (self._min_value[feat_idx] - mus) / sigmas + b = (self._max_value[feat_idx] - mus) / sigmas + + truncated_normal = stats.truncnorm(a=a, b=b, loc=mus, scale=sigmas) + imputed_values[inrange_mask] = truncated_normal.rvs( + random_state=self.random_state_ + ) + else: + imputed_values = estimator.predict(X_test) + imputed_values = np.clip( + imputed_values, self._min_value[feat_idx], self._max_value[feat_idx] + ) + + # update the feature + _safe_assign( + X_filled, + imputed_values, + row_indexer=missing_row_mask, + column_indexer=feat_idx, + ) + return X_filled, estimator + + def _get_neighbor_feat_idx(self, n_features, feat_idx, abs_corr_mat): + """Get a list of other features to predict `feat_idx`. + + If `self.n_nearest_features` is less than or equal to the total + number of features, then use a probability proportional to the absolute + correlation between `feat_idx` and each other feature to randomly + choose a subsample of the other features (without replacement). + + Parameters + ---------- + n_features : int + Number of features in `X`. + + feat_idx : int + Index of the feature currently being imputed. + + abs_corr_mat : ndarray, shape (n_features, n_features) + Absolute correlation matrix of `X`. The diagonal has been zeroed + out and each feature has been normalized to sum to 1. Can be None. + + Returns + ------- + neighbor_feat_idx : array-like + The features to use to impute `feat_idx`. + """ + if self.n_nearest_features is not None and self.n_nearest_features < n_features: + p = abs_corr_mat[:, feat_idx] + neighbor_feat_idx = self.random_state_.choice( + np.arange(n_features), self.n_nearest_features, replace=False, p=p + ) + else: + inds_left = np.arange(feat_idx) + inds_right = np.arange(feat_idx + 1, n_features) + neighbor_feat_idx = np.concatenate((inds_left, inds_right)) + return neighbor_feat_idx + + def _get_ordered_idx(self, mask_missing_values): + """Decide in what order we will update the features. + + As a homage to the MICE R package, we will have 4 main options of + how to order the updates, and use a random order if anything else + is specified. + + Also, this function skips features which have no missing values. + + Parameters + ---------- + mask_missing_values : array-like, shape (n_samples, n_features) + Input data's missing indicator matrix, where `n_samples` is the + number of samples and `n_features` is the number of features. + + Returns + ------- + ordered_idx : ndarray, shape (n_features,) + The order in which to impute the features. + """ + frac_of_missing_values = mask_missing_values.mean(axis=0) + if self.skip_complete: + missing_values_idx = np.flatnonzero(frac_of_missing_values) + else: + missing_values_idx = np.arange(np.shape(frac_of_missing_values)[0]) + if self.imputation_order == "roman": + ordered_idx = missing_values_idx + elif self.imputation_order == "arabic": + ordered_idx = missing_values_idx[::-1] + elif self.imputation_order == "ascending": + n = len(frac_of_missing_values) - len(missing_values_idx) + ordered_idx = np.argsort(frac_of_missing_values, kind="mergesort")[n:] + elif self.imputation_order == "descending": + n = len(frac_of_missing_values) - len(missing_values_idx) + ordered_idx = np.argsort(frac_of_missing_values, kind="mergesort")[n:][::-1] + elif self.imputation_order == "random": + ordered_idx = missing_values_idx + self.random_state_.shuffle(ordered_idx) + return ordered_idx + + def _get_abs_corr_mat(self, X_filled, tolerance=1e-6): + """Get absolute correlation matrix between features. + + Parameters + ---------- + X_filled : ndarray, shape (n_samples, n_features) + Input data with the most recent imputations. + + tolerance : float, default=1e-6 + `abs_corr_mat` can have nans, which will be replaced + with `tolerance`. + + Returns + ------- + abs_corr_mat : ndarray, shape (n_features, n_features) + Absolute correlation matrix of `X` at the beginning of the + current round. The diagonal has been zeroed out and each feature's + absolute correlations with all others have been normalized to sum + to 1. + """ + n_features = X_filled.shape[1] + if self.n_nearest_features is None or self.n_nearest_features >= n_features: + return None + with np.errstate(invalid="ignore"): + # if a feature in the neighborhood has only a single value + # (e.g., categorical feature), the std. dev. will be null and + # np.corrcoef will raise a warning due to a division by zero + abs_corr_mat = np.abs(np.corrcoef(X_filled.T)) + # np.corrcoef is not defined for features with zero std + abs_corr_mat[np.isnan(abs_corr_mat)] = tolerance + # ensures exploration, i.e. at least some probability of sampling + np.clip(abs_corr_mat, tolerance, None, out=abs_corr_mat) + # features are not their own neighbors + np.fill_diagonal(abs_corr_mat, 0) + # needs to sum to 1 for np.random.choice sampling + abs_corr_mat = normalize(abs_corr_mat, norm="l1", axis=0, copy=False) + return abs_corr_mat + + def _initial_imputation(self, X, in_fit=False): + """Perform initial imputation for input `X`. + + Parameters + ---------- + X : ndarray of shape (n_samples, n_features) + Input data, where `n_samples` is the number of samples and + `n_features` is the number of features. + + in_fit : bool, default=False + Whether function is called in :meth:`fit`. + + Returns + ------- + Xt : ndarray of shape (n_samples, n_features) + Input data, where `n_samples` is the number of samples and + `n_features` is the number of features. + + X_filled : ndarray of shape (n_samples, n_features) + Input data with the most recent imputations. + + mask_missing_values : ndarray of shape (n_samples, n_features) + Input data's missing indicator matrix, where `n_samples` is the + number of samples and `n_features` is the number of features, + masked by non-missing features. + + X_missing_mask : ndarray, shape (n_samples, n_features) + Input data's mask matrix indicating missing datapoints, where + `n_samples` is the number of samples and `n_features` is the + number of features. + """ + if is_scalar_nan(self.missing_values): + ensure_all_finite = "allow-nan" + else: + ensure_all_finite = True + + X = validate_data( + self, + X, + dtype=FLOAT_DTYPES, + order="F", + reset=in_fit, + ensure_all_finite=ensure_all_finite, + ) + _check_inputs_dtype(X, self.missing_values) + + X_missing_mask = _get_mask(X, self.missing_values) + mask_missing_values = X_missing_mask.copy() + + # TODO (1.8): remove this once the deprecation is removed. In the meantime, + # we need to catch the warning to avoid false positives. + catch_warning = ( + self.initial_strategy == "constant" and not self.keep_empty_features + ) + + if self.initial_imputer_ is None: + self.initial_imputer_ = SimpleImputer( + missing_values=self.missing_values, + strategy=self.initial_strategy, + fill_value=self.fill_value, + keep_empty_features=self.keep_empty_features, + ).set_output(transform="default") + + # TODO (1.8): remove this once the deprecation is removed to keep only + # the code in the else case. + if catch_warning: + with warnings.catch_warnings(): + warnings.simplefilter("ignore", FutureWarning) + X_filled = self.initial_imputer_.fit_transform(X) + else: + X_filled = self.initial_imputer_.fit_transform(X) + else: + # TODO (1.8): remove this once the deprecation is removed to keep only + # the code in the else case. + if catch_warning: + with warnings.catch_warnings(): + warnings.simplefilter("ignore", FutureWarning) + X_filled = self.initial_imputer_.transform(X) + else: + X_filled = self.initial_imputer_.transform(X) + + if in_fit: + self._is_empty_feature = np.all(mask_missing_values, axis=0) + + if not self.keep_empty_features: + # drop empty features + Xt = X[:, ~self._is_empty_feature] + mask_missing_values = mask_missing_values[:, ~self._is_empty_feature] + + if self.initial_imputer_.get_params()["strategy"] == "constant": + # The constant strategy has a specific behavior and preserve empty + # features even with ``keep_empty_features=False``. We need to drop + # the column for consistency. + # TODO (1.8): remove this `if` branch once the following issue is + # addressed: + # https://github.com/scikit-learn/scikit-learn/issues/29827 + X_filled = X_filled[:, ~self._is_empty_feature] + + else: + # mark empty features as not missing and keep the original + # imputation + mask_missing_values[:, self._is_empty_feature] = False + Xt = X + Xt[:, self._is_empty_feature] = X_filled[:, self._is_empty_feature] + + return Xt, X_filled, mask_missing_values, X_missing_mask + + @staticmethod + def _validate_limit( + limit, limit_type, n_features, is_empty_feature, keep_empty_feature + ): + """Validate the limits (min/max) of the feature values. + + Converts scalar min/max limits to vectors of shape `(n_features,)`. + + Parameters + ---------- + limit: scalar or array-like + The user-specified limit (i.e, min_value or max_value). + limit_type: {'max', 'min'} + Type of limit to validate. + n_features: int + Number of features in the dataset. + is_empty_feature: ndarray, shape (n_features, ) + Mask array indicating empty feature imputer has seen during fit. + keep_empty_feature: bool + If False, remove empty-feature indices from the limit. + + Returns + ------- + limit: ndarray, shape(n_features,) + Array of limits, one for each feature. + """ + n_features_in = _num_samples(is_empty_feature) + if ( + limit is not None + and not np.isscalar(limit) + and _num_samples(limit) != n_features_in + ): + raise ValueError( + f"'{limit_type}_value' should be of shape ({n_features_in},) when an" + f" array-like is provided. Got {len(limit)}, instead." + ) + + limit_bound = np.inf if limit_type == "max" else -np.inf + limit = limit_bound if limit is None else limit + if np.isscalar(limit): + limit = np.full(n_features, limit) + limit = check_array(limit, ensure_all_finite=False, copy=False, ensure_2d=False) + + # Make sure to remove the empty feature elements from the bounds + if not keep_empty_feature and len(limit) == len(is_empty_feature): + limit = limit[~is_empty_feature] + + return limit + + @_fit_context( + # IterativeImputer.estimator is not validated yet + prefer_skip_nested_validation=False + ) + def fit_transform(self, X, y=None, **params): + """Fit the imputer on `X` and return the transformed `X`. + + Parameters + ---------- + X : array-like, shape (n_samples, n_features) + Input 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. + + **params : dict + Parameters routed to the `fit` method of the sub-estimator via the + metadata routing API. + + .. versionadded:: 1.5 + Only available if + `sklearn.set_config(enable_metadata_routing=True)` is set. See + :ref:`Metadata Routing User Guide ` for more + details. + + Returns + ------- + Xt : array-like, shape (n_samples, n_features) + The imputed input data. + """ + _raise_for_params(params, self, "fit") + + routed_params = process_routing( + self, + "fit", + **params, + ) + + self.random_state_ = getattr( + self, "random_state_", check_random_state(self.random_state) + ) + + if self.estimator is None: + from ..linear_model import BayesianRidge + + self._estimator = BayesianRidge() + else: + self._estimator = clone(self.estimator) + + self.imputation_sequence_ = [] + + self.initial_imputer_ = None + + X, Xt, mask_missing_values, complete_mask = self._initial_imputation( + X, in_fit=True + ) + + super()._fit_indicator(complete_mask) + X_indicator = super()._transform_indicator(complete_mask) + + if self.max_iter == 0 or np.all(mask_missing_values): + self.n_iter_ = 0 + return super()._concatenate_indicator(Xt, X_indicator) + + # Edge case: a single feature, we return the initial imputation. + if Xt.shape[1] == 1: + self.n_iter_ = 0 + return super()._concatenate_indicator(Xt, X_indicator) + + self._min_value = self._validate_limit( + self.min_value, + "min", + X.shape[1], + self._is_empty_feature, + self.keep_empty_features, + ) + self._max_value = self._validate_limit( + self.max_value, + "max", + X.shape[1], + self._is_empty_feature, + self.keep_empty_features, + ) + + if not np.all(np.greater(self._max_value, self._min_value)): + raise ValueError("One (or more) features have min_value >= max_value.") + + # order in which to impute + # note this is probably too slow for large feature data (d > 100000) + # and a better way would be good. + # see: https://goo.gl/KyCNwj and subsequent comments + ordered_idx = self._get_ordered_idx(mask_missing_values) + self.n_features_with_missing_ = len(ordered_idx) + + abs_corr_mat = self._get_abs_corr_mat(Xt) + + n_samples, n_features = Xt.shape + if self.verbose > 0: + print("[IterativeImputer] Completing matrix with shape %s" % (X.shape,)) + start_t = time() + if not self.sample_posterior: + Xt_previous = Xt.copy() + normalized_tol = self.tol * np.max(np.abs(X[~mask_missing_values])) + for self.n_iter_ in range(1, self.max_iter + 1): + if self.imputation_order == "random": + ordered_idx = self._get_ordered_idx(mask_missing_values) + + for feat_idx in ordered_idx: + neighbor_feat_idx = self._get_neighbor_feat_idx( + n_features, feat_idx, abs_corr_mat + ) + Xt, estimator = self._impute_one_feature( + Xt, + mask_missing_values, + feat_idx, + neighbor_feat_idx, + estimator=None, + fit_mode=True, + params=routed_params.estimator.fit, + ) + estimator_triplet = _ImputerTriplet( + feat_idx, neighbor_feat_idx, estimator + ) + self.imputation_sequence_.append(estimator_triplet) + + if self.verbose > 1: + print( + "[IterativeImputer] Ending imputation round " + "%d/%d, elapsed time %0.2f" + % (self.n_iter_, self.max_iter, time() - start_t) + ) + + if not self.sample_posterior: + inf_norm = np.linalg.norm(Xt - Xt_previous, ord=np.inf, axis=None) + if self.verbose > 0: + print( + "[IterativeImputer] Change: {}, scaled tolerance: {} ".format( + inf_norm, normalized_tol + ) + ) + if inf_norm < normalized_tol: + if self.verbose > 0: + print("[IterativeImputer] Early stopping criterion reached.") + break + Xt_previous = Xt.copy() + else: + if not self.sample_posterior: + warnings.warn( + "[IterativeImputer] Early stopping criterion not reached.", + ConvergenceWarning, + ) + _assign_where(Xt, X, cond=~mask_missing_values) + + return super()._concatenate_indicator(Xt, X_indicator) + + def transform(self, X): + """Impute all missing values in `X`. + + Note that this is stochastic, and that if `random_state` is not fixed, + repeated calls, or permuted input, results will differ. + + Parameters + ---------- + X : array-like of shape (n_samples, n_features) + The input data to complete. + + Returns + ------- + Xt : array-like, shape (n_samples, n_features) + The imputed input data. + """ + check_is_fitted(self) + + X, Xt, mask_missing_values, complete_mask = self._initial_imputation( + X, in_fit=False + ) + + X_indicator = super()._transform_indicator(complete_mask) + + if self.n_iter_ == 0 or np.all(mask_missing_values): + return super()._concatenate_indicator(Xt, X_indicator) + + imputations_per_round = len(self.imputation_sequence_) // self.n_iter_ + i_rnd = 0 + if self.verbose > 0: + print("[IterativeImputer] Completing matrix with shape %s" % (X.shape,)) + start_t = time() + for it, estimator_triplet in enumerate(self.imputation_sequence_): + Xt, _ = self._impute_one_feature( + Xt, + mask_missing_values, + estimator_triplet.feat_idx, + estimator_triplet.neighbor_feat_idx, + estimator=estimator_triplet.estimator, + fit_mode=False, + ) + if not (it + 1) % imputations_per_round: + if self.verbose > 1: + print( + "[IterativeImputer] Ending imputation round " + "%d/%d, elapsed time %0.2f" + % (i_rnd + 1, self.n_iter_, time() - start_t) + ) + i_rnd += 1 + + _assign_where(Xt, X, cond=~mask_missing_values) + + return super()._concatenate_indicator(Xt, X_indicator) + + def fit(self, X, y=None, **fit_params): + """Fit the imputer on `X` and return self. + + Parameters + ---------- + X : array-like, shape (n_samples, n_features) + Input 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. + + **fit_params : dict + Parameters routed to the `fit` method of the sub-estimator via the + metadata routing API. + + .. versionadded:: 1.5 + Only available if + `sklearn.set_config(enable_metadata_routing=True)` is set. See + :ref:`Metadata Routing User Guide ` for more + details. + + Returns + ------- + self : object + Fitted estimator. + """ + self.fit_transform(X, **fit_params) + return self + + def get_feature_names_out(self, input_features=None): + """Get output feature names for transformation. + + Parameters + ---------- + input_features : array-like of str or None, default=None + Input features. + + - If `input_features` is `None`, then `feature_names_in_` is + used as feature names in. If `feature_names_in_` is not defined, + then the following input feature names are generated: + `["x0", "x1", ..., "x(n_features_in_ - 1)"]`. + - If `input_features` is an array-like, then `input_features` must + match `feature_names_in_` if `feature_names_in_` is defined. + + Returns + ------- + feature_names_out : ndarray of str objects + Transformed feature names. + """ + check_is_fitted(self, "n_features_in_") + input_features = _check_feature_names_in(self, input_features) + names = self.initial_imputer_.get_feature_names_out(input_features) + return self._concatenate_indicator_feature_names_out(names, input_features) + + def get_metadata_routing(self): + """Get metadata routing of this object. + + Please check :ref:`User Guide ` on how the routing + mechanism works. + + .. versionadded:: 1.5 + + Returns + ------- + routing : MetadataRouter + A :class:`~sklearn.utils.metadata_routing.MetadataRouter` encapsulating + routing information. + """ + router = MetadataRouter(owner=self.__class__.__name__).add( + estimator=self.estimator, + method_mapping=MethodMapping().add(callee="fit", caller="fit"), + ) + return router diff --git a/shared/package-files/72/7214c26681dc563f399d7b7ae8121caf806bc607854d01d54aafc73a4450290b/__init__.py b/shared/package-files/72/7214c26681dc563f399d7b7ae8121caf806bc607854d01d54aafc73a4450290b/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..b0e425ff06543d0cc4de40b48184ffb350596835 --- /dev/null +++ b/shared/package-files/72/7214c26681dc563f399d7b7ae8121caf806bc607854d01d54aafc73a4450290b/__init__.py @@ -0,0 +1,2575 @@ +""" +A library for importing .ufo files and their descendants. +Refer to http://unifiedfontobject.org for the UFO specification. + +The main interfaces are the :class:`.UFOReader` and :class:`.UFOWriter` +classes, which support versions 1, 2, and 3 of the UFO specification. + +Set variables are available for external use that list the font +info attribute names for the `fontinfo.plist` formats. These are: + +- :obj:`.fontInfoAttributesVersion1` +- :obj:`.fontInfoAttributesVersion2` +- :obj:`.fontInfoAttributesVersion3` + +A set listing the `fontinfo.plist` attributes that were deprecated +in version 2 is available for external use: + +- :obj:`.deprecatedFontInfoAttributesVersion2` + +Functions that do basic validation on values for `fontinfo.plist` +are available for external use. These are + +- :func:`.validateFontInfoVersion2ValueForAttribute` +- :func:`.validateFontInfoVersion3ValueForAttribute` + +Value conversion functions are available for converting +`fontinfo.plist` values between the possible format versions. + +- :func:`.convertFontInfoValueForAttributeFromVersion1ToVersion2` +- :func:`.convertFontInfoValueForAttributeFromVersion2ToVersion1` +- :func:`.convertFontInfoValueForAttributeFromVersion2ToVersion3` +- :func:`.convertFontInfoValueForAttributeFromVersion3ToVersion2` +""" + +from __future__ import annotations + +import enum +import logging +import os +import zipfile +from collections import OrderedDict +from copy import deepcopy +from os import fsdecode +from typing import IO, TYPE_CHECKING, Any, Optional, Union, cast + +from fontTools.misc import filesystem as fs +from fontTools.misc import plistlib +from fontTools.ufoLib.converters import convertUFO1OrUFO2KerningToUFO3Kerning +from fontTools.ufoLib.errors import UFOLibError +from fontTools.ufoLib.filenames import userNameToFileName +from fontTools.ufoLib.utils import ( + BaseFormatVersion, + normalizeFormatVersion, + numberTypes, +) +from fontTools.ufoLib.validators import * + +if TYPE_CHECKING: + from logging import Logger + + from fontTools.annotations import ( + GlyphNameToFileNameFunc, + K, + KerningDict, + KerningGroups, + KerningNested, + PathOrFS, + PathStr, + UFOFormatVersionInput, + V, + ) + from fontTools.misc.filesystem._base import FS + from fontTools.ufoLib.glifLib import GlyphSet + +KerningGroupRenameMaps = dict[str, dict[str, str]] +LibDict = dict[str, Any] +LayerOrderList = Optional[list[Optional[str]]] +AttributeDataDict = dict[str, Any] +FontInfoAttributes = dict[str, AttributeDataDict] + +# client code can check this to see if the upstream `fs` package is being used +haveFS = fs._haveFS + +__all__: list[str] = [ + "haveFS", + "makeUFOPath", + "UFOLibError", + "UFOReader", + "UFOWriter", + "UFOReaderWriter", + "UFOFileStructure", + "fontInfoAttributesVersion1", + "fontInfoAttributesVersion2", + "fontInfoAttributesVersion3", + "deprecatedFontInfoAttributesVersion2", + "validateFontInfoVersion2ValueForAttribute", + "validateFontInfoVersion3ValueForAttribute", + "convertFontInfoValueForAttributeFromVersion1ToVersion2", + "convertFontInfoValueForAttributeFromVersion2ToVersion1", +] + +__version__: str = "3.0.0" + + +logger: Logger = logging.getLogger(__name__) + + +# --------- +# Constants +# --------- + +DEFAULT_GLYPHS_DIRNAME: str = "glyphs" +DATA_DIRNAME: str = "data" +IMAGES_DIRNAME: str = "images" +METAINFO_FILENAME: str = "metainfo.plist" +FONTINFO_FILENAME: str = "fontinfo.plist" +LIB_FILENAME: str = "lib.plist" +GROUPS_FILENAME: str = "groups.plist" +KERNING_FILENAME: str = "kerning.plist" +FEATURES_FILENAME: str = "features.fea" +LAYERCONTENTS_FILENAME: str = "layercontents.plist" +LAYERINFO_FILENAME: str = "layerinfo.plist" + +DEFAULT_LAYER_NAME: str = "public.default" + + +class UFOFormatVersion(BaseFormatVersion): + FORMAT_1_0 = (1, 0) + FORMAT_2_0 = (2, 0) + FORMAT_3_0 = (3, 0) + + +class UFOFileStructure(enum.Enum): + ZIP = "zip" + PACKAGE = "package" + + +# -------------- +# Shared Methods +# -------------- + + +class _UFOBaseIO: + if TYPE_CHECKING: + fs: FS + _havePreviousFile: bool + + def getFileModificationTime(self, path: PathStr) -> Optional[float]: + """ + Returns the modification time for the file at the given path, as a + floating point number giving the number of seconds since the epoch. + The path must be relative to the UFO path. + Returns None if the file does not exist. + """ + try: + dt = self.fs.getinfo(fsdecode(path), namespaces=["details"]).modified + except (fs.errors.MissingInfoNamespace, fs.errors.ResourceNotFound): + return None + else: + if dt is not None: + return dt.timestamp() + return None + + def _getPlist(self, fileName: str, default: Optional[Any] = None) -> Any: + """ + Read a property list relative to the UFO filesystem's root. + Raises UFOLibError if the file is missing and default is None, + otherwise default is returned. + + The errors that could be raised during the reading of a plist are + unpredictable and/or too large to list, so, a blind try: except: + is done. If an exception occurs, a UFOLibError will be raised. + """ + try: + with self.fs.open(fileName, "rb") as f: + return plistlib.load(f) + except fs.errors.ResourceNotFound: + if default is None: + raise UFOLibError( + "'%s' is missing on %s. This file is required" % (fileName, self.fs) + ) + else: + return default + except Exception as e: + # TODO(anthrotype): try to narrow this down a little + raise UFOLibError(f"'{fileName}' could not be read on {self.fs}: {e}") + + def _writePlist(self, fileName: str, obj: Any) -> None: + """ + Write a property list to a file relative to the UFO filesystem's root. + + Do this sort of atomically, making it harder to corrupt existing files, + for example when plistlib encounters an error halfway during write. + This also checks to see if text matches the text that is already in the + file at path. If so, the file is not rewritten so that the modification + date is preserved. + + The errors that could be raised during the writing of a plist are + unpredictable and/or too large to list, so, a blind try: except: is done. + If an exception occurs, a UFOLibError will be raised. + """ + if self._havePreviousFile: + try: + data = plistlib.dumps(obj) + except Exception as e: + raise UFOLibError( + "'%s' could not be written on %s because " + "the data is not properly formatted: %s" % (fileName, self.fs, e) + ) + if self.fs.exists(fileName) and data == self.fs.readbytes(fileName): + return + self.fs.writebytes(fileName, data) + else: + with self.fs.open(fileName, mode="wb") as fp: + try: + plistlib.dump(obj, fp) + except Exception as e: + raise UFOLibError( + "'%s' could not be written on %s because " + "the data is not properly formatted: %s" + % (fileName, self.fs, e) + ) + + +# ---------- +# UFO Reader +# ---------- + + +class UFOReader(_UFOBaseIO): + """Read the various components of a .ufo. + + Attributes: + path: An :class:`os.PathLike` object pointing to the .ufo. + validate: A boolean indicating if the data read should be + validated. Defaults to `True`. + + By default read data is validated. Set ``validate`` to + ``False`` to not validate the data. + """ + + def __init__(self, path: PathOrFS, validate: bool = True) -> None: + # Only call __fspath__ if path is not already a str or FS object + if not isinstance(path, (str, fs.base.FS)) and hasattr(path, "__fspath__"): + path = path.__fspath__() + + if isinstance(path, str): + structure = _sniffFileStructure(path) + parentFS: FS + try: + if structure is UFOFileStructure.ZIP: + parentFS = fs.zipfs.ZipFS(path, write=False, encoding="utf-8") # type: ignore[abstract] + else: + parentFS = fs.osfs.OSFS(path) + except fs.errors.CreateFailed as e: + raise UFOLibError(f"unable to open '{path}': {e}") + + if structure is UFOFileStructure.ZIP: + # .ufoz zip files must contain a single root directory, with arbitrary + # name, containing all the UFO files + rootDirs = [ + p.name + for p in parentFS.scandir("/") + # exclude macOS metadata contained in zip file + if p.is_dir and p.name != "__MACOSX" + ] + if len(rootDirs) == 1: + # 'ClosingSubFS' ensures that the parent zip file is closed when + # its root subdirectory is closed + self.fs: FS = parentFS.opendir( + rootDirs[0], factory=fs.subfs.ClosingSubFS + ) + else: + raise UFOLibError( + "Expected exactly 1 root directory, found %d" % len(rootDirs) + ) + else: + # normal UFO 'packages' are just a single folder + self.fs = parentFS + # when passed a path string, we make sure we close the newly opened fs + # upon calling UFOReader.close method or context manager's __exit__ + self._shouldClose: bool = True + self._fileStructure = structure + elif isinstance(path, fs.base.FS): + filesystem: FS = path + try: + filesystem.check() + except fs.errors.FilesystemClosed: + raise UFOLibError("the filesystem '%s' is closed" % path) + else: + self.fs = filesystem + try: + path = filesystem.getsyspath("/") + except fs.errors.NoSysPath: + # network or in-memory FS may not map to the local one + path = str(filesystem) + # when user passed an already initialized fs instance, it is her + # responsibility to close it, thus UFOReader.close/__exit__ are no-op + self._shouldClose = False + # default to a 'package' structure + self._fileStructure = UFOFileStructure.PACKAGE + else: + raise TypeError( + "Expected a path string or fs.base.FS object, found '%s'" + % type(path).__name__ + ) + self._path: str = fsdecode(path) + self._validate: bool = validate + self._upConvertedKerningData: Optional[dict[str, Any]] = None + + try: + self.readMetaInfo(validate=validate) + except UFOLibError: + self.close() + raise + + # properties + + def _get_path(self) -> str: + import warnings + + warnings.warn( + "The 'path' attribute is deprecated; use the 'fs' attribute instead", + DeprecationWarning, + stacklevel=2, + ) + return self._path + + path: property = property(_get_path, doc="The path of the UFO (DEPRECATED).") + + def _get_formatVersion(self) -> int: + import warnings + + warnings.warn( + "The 'formatVersion' attribute is deprecated; use the 'formatVersionTuple'", + DeprecationWarning, + stacklevel=2, + ) + return self._formatVersion.major + + formatVersion = property( + _get_formatVersion, + doc="The (major) format version of the UFO. DEPRECATED: Use formatVersionTuple", + ) + + @property + def formatVersionTuple(self) -> tuple[int, int]: + """The (major, minor) format version of the UFO. + This is determined by reading metainfo.plist during __init__. + """ + return self._formatVersion + + def _get_fileStructure(self) -> Any: + return self._fileStructure + + fileStructure: property = property( + _get_fileStructure, + doc=( + "The file structure of the UFO: " + "either UFOFileStructure.ZIP or UFOFileStructure.PACKAGE" + ), + ) + + # up conversion + + def _upConvertKerning(self, validate: bool) -> None: + """ + Up convert kerning and groups in UFO 1 and 2. + The data will be held internally until each bit of data + has been retrieved. The conversion of both must be done + at once, so the raw data is cached and an error is raised + if one bit of data becomes obsolete before it is called. + + ``validate`` will validate the data. + """ + if self._upConvertedKerningData: + testKerning = self._readKerning() + if testKerning != self._upConvertedKerningData["originalKerning"]: + raise UFOLibError( + "The data in kerning.plist has been modified since it was converted to UFO 3 format." + ) + testGroups = self._readGroups() + if testGroups != self._upConvertedKerningData["originalGroups"]: + raise UFOLibError( + "The data in groups.plist has been modified since it was converted to UFO 3 format." + ) + else: + groups = self._readGroups() + if validate: + invalidFormatMessage = "groups.plist is not properly formatted." + if not isinstance(groups, dict): + raise UFOLibError(invalidFormatMessage) + for groupName, glyphList in groups.items(): + if not isinstance(groupName, str): + raise UFOLibError(invalidFormatMessage) + elif not isinstance(glyphList, list): + raise UFOLibError(invalidFormatMessage) + for glyphName in glyphList: + if not isinstance(glyphName, str): + raise UFOLibError(invalidFormatMessage) + self._upConvertedKerningData = dict( + kerning={}, + originalKerning=self._readKerning(), + groups={}, + originalGroups=groups, + ) + # convert kerning and groups + kerning, groups, conversionMaps = convertUFO1OrUFO2KerningToUFO3Kerning( + self._upConvertedKerningData["originalKerning"], + deepcopy(self._upConvertedKerningData["originalGroups"]), + self.getGlyphSet(), + ) + # store + self._upConvertedKerningData["kerning"] = kerning + self._upConvertedKerningData["groups"] = groups + self._upConvertedKerningData["groupRenameMaps"] = conversionMaps + + # support methods + + def readBytesFromPath(self, path: PathStr) -> Optional[bytes]: + """ + Returns the bytes in the file at the given path. + The path must be relative to the UFO's filesystem root. + Returns None if the file does not exist. + """ + try: + return self.fs.readbytes(fsdecode(path)) + except fs.errors.ResourceNotFound: + return None + + def getReadFileForPath( + self, path: PathStr, encoding: Optional[str] = None + ) -> Optional[Union[IO[bytes], IO[str]]]: + """ + Returns a file (or file-like) object for the file at the given path. + The path must be relative to the UFO path. + Returns None if the file does not exist. + By default the file is opened in binary mode (reads bytes). + If encoding is passed, the file is opened in text mode (reads str). + + Note: The caller is responsible for closing the open file. + """ + path = fsdecode(path) + try: + if encoding is None: + return self.fs.open(path, mode="rb") + else: + return self.fs.open(path, mode="r", encoding=encoding) + except fs.errors.ResourceNotFound: + return None + + # metainfo.plist + + def _readMetaInfo(self, validate: Optional[bool] = None) -> dict[str, Any]: + """ + Read metainfo.plist and return raw data. Only used for internal operations. + + ``validate`` will validate the read data, by default it is set + to the class's validate value, can be overridden. + """ + if validate is None: + validate = self._validate + data = self._getPlist(METAINFO_FILENAME) + if validate and not isinstance(data, dict): + raise UFOLibError("metainfo.plist is not properly formatted.") + try: + formatVersionMajor = data["formatVersion"] + except KeyError: + raise UFOLibError( + f"Missing required formatVersion in '{METAINFO_FILENAME}' on {self.fs}" + ) + formatVersionMinor = data.setdefault("formatVersionMinor", 0) + + try: + formatVersion = UFOFormatVersion((formatVersionMajor, formatVersionMinor)) + except ValueError as e: + unsupportedMsg = ( + f"Unsupported UFO format ({formatVersionMajor}.{formatVersionMinor}) " + f"in '{METAINFO_FILENAME}' on {self.fs}" + ) + if validate: + from fontTools.ufoLib.errors import UnsupportedUFOFormat + + raise UnsupportedUFOFormat(unsupportedMsg) from e + + formatVersion = UFOFormatVersion.default() + logger.warning( + "%s. Assuming the latest supported version (%s). " + "Some data may be skipped or parsed incorrectly", + unsupportedMsg, + formatVersion, + ) + data["formatVersionTuple"] = formatVersion + return data + + def readMetaInfo(self, validate: Optional[bool] = None) -> None: + """ + Read metainfo.plist and set formatVersion. Only used for internal operations. + + ``validate`` will validate the read data, by default it is set + to the class's validate value, can be overridden. + """ + data = self._readMetaInfo(validate=validate) + self._formatVersion = data["formatVersionTuple"] + + # groups.plist + + def _readGroups(self) -> dict[str, list[str]]: + groups = self._getPlist(GROUPS_FILENAME, {}) + # remove any duplicate glyphs in a kerning group + for groupName, glyphList in groups.items(): + if groupName.startswith(("public.kern1.", "public.kern2.")): + groups[groupName] = list(OrderedDict.fromkeys(glyphList)) + return groups + + def readGroups(self, validate: Optional[bool] = None) -> dict[str, list[str]]: + """ + Read groups.plist. Returns a dict. + ``validate`` will validate the read data, by default it is set to the + class's validate value, can be overridden. + """ + if validate is None: + validate = self._validate + # handle up conversion + if self._formatVersion < UFOFormatVersion.FORMAT_3_0: + self._upConvertKerning(validate) + groups = cast(dict, self._upConvertedKerningData)["groups"] + # normal + else: + groups = self._readGroups() + if validate: + valid, message = groupsValidator(groups) + if not valid: + raise UFOLibError(message) + return groups + + def getKerningGroupConversionRenameMaps( + self, validate: Optional[bool] = None + ) -> KerningGroupRenameMaps: + """ + Get maps defining the renaming that was done during any + needed kerning group conversion. This method returns a + dictionary of this form:: + + { + "side1" : {"old group name" : "new group name"}, + "side2" : {"old group name" : "new group name"} + } + + When no conversion has been performed, the side1 and side2 + dictionaries will be empty. + + ``validate`` will validate the groups, by default it is set to the + class's validate value, can be overridden. + """ + if validate is None: + validate = self._validate + if self._formatVersion >= UFOFormatVersion.FORMAT_3_0: + return dict(side1={}, side2={}) + # use the public group reader to force the load and + # conversion of the data if it hasn't happened yet. + self.readGroups(validate=validate) + return cast(dict, self._upConvertedKerningData)["groupRenameMaps"] + + # fontinfo.plist + + def _readInfo(self, validate: bool) -> dict[str, Any]: + data = self._getPlist(FONTINFO_FILENAME, {}) + if validate and not isinstance(data, dict): + raise UFOLibError("fontinfo.plist is not properly formatted.") + return data + + def readInfo(self, info: Any, validate: Optional[bool] = None) -> None: + """ + Read fontinfo.plist. It requires an object that allows + setting attributes with names that follow the fontinfo.plist + version 3 specification. This will write the attributes + defined in the file into the object. + + ``validate`` will validate the read data, by default it is set to the + class's validate value, can be overridden. + """ + if validate is None: + validate = self._validate + infoDict = self._readInfo(validate) + infoDataToSet = {} + # version 1 + if self._formatVersion == UFOFormatVersion.FORMAT_1_0: + for attr in fontInfoAttributesVersion1: + value = infoDict.get(attr) + if value is not None: + infoDataToSet[attr] = value + infoDataToSet = _convertFontInfoDataVersion1ToVersion2(infoDataToSet) + infoDataToSet = _convertFontInfoDataVersion2ToVersion3(infoDataToSet) + # version 2 + elif self._formatVersion == UFOFormatVersion.FORMAT_2_0: + for attr, dataValidationDict in list( + fontInfoAttributesVersion2ValueData.items() + ): + value = infoDict.get(attr) + if value is None: + continue + infoDataToSet[attr] = value + infoDataToSet = _convertFontInfoDataVersion2ToVersion3(infoDataToSet) + # version 3.x + elif self._formatVersion.major == UFOFormatVersion.FORMAT_3_0.major: + for attr, dataValidationDict in list( + fontInfoAttributesVersion3ValueData.items() + ): + value = infoDict.get(attr) + if value is None: + continue + infoDataToSet[attr] = value + # unsupported version + else: + raise NotImplementedError(self._formatVersion) + # validate data + if validate: + infoDataToSet = validateInfoVersion3Data(infoDataToSet) + # populate the object + for attr, value in list(infoDataToSet.items()): + try: + setattr(info, attr, value) + except AttributeError: + raise UFOLibError( + "The supplied info object does not support setting a necessary attribute (%s)." + % attr + ) + + # kerning.plist + + def _readKerning(self) -> KerningNested: + data = self._getPlist(KERNING_FILENAME, {}) + return data + + def readKerning(self, validate: Optional[bool] = None) -> KerningDict: + """ + Read kerning.plist. Returns a dict. + + ``validate`` will validate the kerning data, by default it is set to the + class's validate value, can be overridden. + """ + if validate is None: + validate = self._validate + # handle up conversion + if self._formatVersion < UFOFormatVersion.FORMAT_3_0: + self._upConvertKerning(validate) + kerningNested = cast(dict, self._upConvertedKerningData)["kerning"] + # normal + else: + kerningNested = self._readKerning() + if validate: + valid, message = kerningValidator(kerningNested) + if not valid: + raise UFOLibError(message) + # flatten + kerning = {} + for left in kerningNested: + for right in kerningNested[left]: + value = kerningNested[left][right] + kerning[left, right] = value + return kerning + + # lib.plist + + def readLib(self, validate: Optional[bool] = None) -> dict[str, Any]: + """ + Read lib.plist. Returns a dict. + + ``validate`` will validate the data, by default it is set to the + class's validate value, can be overridden. + """ + if validate is None: + validate = self._validate + data = self._getPlist(LIB_FILENAME, {}) + if validate: + valid, message = fontLibValidator(data) + if not valid: + raise UFOLibError(message) + return data + + # features.fea + + def readFeatures(self) -> str: + """ + Read features.fea. Return a string. + The returned string is empty if the file is missing. + """ + try: + with self.fs.open(FEATURES_FILENAME, "r", encoding="utf-8-sig") as f: + return f.read() + except fs.errors.ResourceNotFound: + return "" + + # glyph sets & layers + + def _readLayerContents(self, validate: bool) -> list[tuple[str, str]]: + """ + Rebuild the layer contents list by checking what glyphsets + are available on disk. + + ``validate`` will validate the layer contents. + """ + if self._formatVersion < UFOFormatVersion.FORMAT_3_0: + return [(DEFAULT_LAYER_NAME, DEFAULT_GLYPHS_DIRNAME)] + contents = self._getPlist(LAYERCONTENTS_FILENAME) + if validate: + valid, error = layerContentsValidator(contents, self.fs) + if not valid: + raise UFOLibError(error) + return contents + + def getLayerNames(self, validate: Optional[bool] = None) -> list[str]: + """ + Get the ordered layer names from layercontents.plist. + + ``validate`` will validate the data, by default it is set to the + class's validate value, can be overridden. + """ + if validate is None: + validate = self._validate + layerContents = self._readLayerContents(validate) + layerNames = [layerName for layerName, directoryName in layerContents] + return layerNames + + def getDefaultLayerName(self, validate: Optional[bool] = None) -> str: + """ + Get the default layer name from layercontents.plist. + + ``validate`` will validate the data, by default it is set to the + class's validate value, can be overridden. + """ + if validate is None: + validate = self._validate + layerContents = self._readLayerContents(validate) + for layerName, layerDirectory in layerContents: + if layerDirectory == DEFAULT_GLYPHS_DIRNAME: + return layerName + # this will already have been raised during __init__ + raise UFOLibError("The default layer is not defined in layercontents.plist.") + + def getGlyphSet( + self, + layerName: Optional[str] = None, + validateRead: Optional[bool] = None, + validateWrite: Optional[bool] = None, + ) -> GlyphSet: + """ + Return the GlyphSet associated with the + glyphs directory mapped to layerName + in the UFO. If layerName is not provided, + the name retrieved with getDefaultLayerName + will be used. + + ``validateRead`` will validate the read data, by default it is set to the + class's validate value, can be overridden. + ``validateWrite`` will validate the written data, by default it is set to the + class's validate value, can be overridden. + """ + from fontTools.ufoLib.glifLib import GlyphSet + + if validateRead is None: + validateRead = self._validate + if validateWrite is None: + validateWrite = self._validate + if layerName is None: + layerName = self.getDefaultLayerName(validate=validateRead) + directory = None + layerContents = self._readLayerContents(validateRead) + for storedLayerName, storedLayerDirectory in layerContents: + if layerName == storedLayerName: + directory = storedLayerDirectory + break + if directory is None: + raise UFOLibError('No glyphs directory is mapped to "%s".' % layerName) + try: + glyphSubFS = self.fs.opendir(directory) + except fs.errors.ResourceNotFound: + raise UFOLibError(f"No '{directory}' directory for layer '{layerName}'") + return GlyphSet( + glyphSubFS, + ufoFormatVersion=self._formatVersion, + validateRead=validateRead, + validateWrite=validateWrite, + expectContentsFile=True, + ) + + def getCharacterMapping( + self, layerName: Optional[str] = None, validate: Optional[bool] = None + ) -> dict[int, list[str]]: + """ + Return a dictionary that maps unicode values (ints) to + lists of glyph names. + """ + if validate is None: + validate = self._validate + glyphSet = self.getGlyphSet( + layerName, validateRead=validate, validateWrite=True + ) + allUnicodes = glyphSet.getUnicodes() + cmap: dict[int, list[str]] = {} + for glyphName, unicodes in allUnicodes.items(): + for code in unicodes: + if code in cmap: + cmap[code].append(glyphName) + else: + cmap[code] = [glyphName] + return cmap + + # /data + + def getDataDirectoryListing(self) -> list[str]: + """ + Returns a list of all files in the data directory. + The returned paths will be relative to the UFO. + This will not list directory names, only file names. + Thus, empty directories will be skipped. + """ + try: + self._dataFS = self.fs.opendir(DATA_DIRNAME) + except fs.errors.ResourceNotFound: + return [] + except fs.errors.DirectoryExpected: + raise UFOLibError('The UFO contains a "data" file instead of a directory.') + try: + # fs Walker.files method returns "absolute" paths (in terms of the + # root of the 'data' SubFS), so we strip the leading '/' to make + # them relative + return [p.lstrip("/") for p in self._dataFS.walk.files()] + except fs.errors.ResourceError: + return [] + + def getImageDirectoryListing(self, validate: Optional[bool] = None) -> list[str]: + """ + Returns a list of all image file names in + the images directory. Each of the images will + have been verified to have the PNG signature. + + ``validate`` will validate the data, by default it is set to the + class's validate value, can be overridden. + """ + if self._formatVersion < UFOFormatVersion.FORMAT_3_0: + return [] + if validate is None: + validate = self._validate + try: + self._imagesFS = imagesFS = self.fs.opendir(IMAGES_DIRNAME) + except fs.errors.ResourceNotFound: + return [] + except fs.errors.DirectoryExpected: + raise UFOLibError( + 'The UFO contains an "images" file instead of a directory.' + ) + result = [] + for path in imagesFS.scandir("/"): + if path.is_dir: + # silently skip this as version control + # systems often have hidden directories + continue + if validate: + with imagesFS.open(path.name, "rb") as fp: + valid, error = pngValidator(fileObj=fp) + if valid: + result.append(path.name) + else: + result.append(path.name) + return result + + def readData(self, fileName: PathStr) -> bytes: + """ + Return bytes for the file named 'fileName' inside the 'data/' directory. + """ + fileName = fsdecode(fileName) + try: + try: + dataFS = self._dataFS + except AttributeError: + # in case readData is called before getDataDirectoryListing + dataFS = self.fs.opendir(DATA_DIRNAME) + data = dataFS.readbytes(fileName) + except fs.errors.ResourceNotFound: + raise UFOLibError(f"No data file named '{fileName}' on {self.fs}") + return data + + def readImage(self, fileName: PathStr, validate: Optional[bool] = None) -> bytes: + """ + Return image data for the file named fileName. + + ``validate`` will validate the data, by default it is set to the + class's validate value, can be overridden. + """ + if validate is None: + validate = self._validate + if self._formatVersion < UFOFormatVersion.FORMAT_3_0: + raise UFOLibError( + f"Reading images is not allowed in UFO {self._formatVersion.major}." + ) + fileName = fsdecode(fileName) + try: + try: + imagesFS = self._imagesFS + except AttributeError: + # in case readImage is called before getImageDirectoryListing + imagesFS = self.fs.opendir(IMAGES_DIRNAME) + data = imagesFS.readbytes(fileName) + except fs.errors.ResourceNotFound: + raise UFOLibError(f"No image file named '{fileName}' on {self.fs}") + if validate: + valid, error = pngValidator(data=data) + if not valid: + raise UFOLibError(error) + return data + + def close(self) -> None: + if self._shouldClose: + self.fs.close() + + def __enter__(self) -> UFOReader: + return self + + def __exit__(self, exc_type: Any, exc_value: Any, exc_tb: Any) -> None: + self.close() + + +# ---------- +# UFO Writer +# ---------- + + +class UFOWriter(UFOReader): + """Write the various components of a .ufo. + + Attributes: + path: An :class:`os.PathLike` object pointing to the .ufo. + formatVersion: the UFO format version as a tuple of integers (major, minor), + or as a single integer for the major digit only (minor is implied to be 0). + By default, the latest formatVersion will be used; currently it is 3.0, + which is equivalent to formatVersion=(3, 0). + fileCreator: The creator of the .ufo file. Defaults to + `com.github.fonttools.ufoLib`. + structure: The internal structure of the .ufo file: either `ZIP` or `PACKAGE`. + validate: A boolean indicating if the data read should be validated. Defaults + to `True`. + + By default, the written data will be validated before writing. Set ``validate`` to + ``False`` if you do not want to validate the data. Validation can also be overriden + on a per-method level if desired. + + Raises: + UnsupportedUFOFormat: An exception indicating that the requested UFO + formatVersion is not supported. + """ + + def __init__( + self, + path: PathOrFS, + formatVersion: UFOFormatVersionInput = None, + fileCreator: str = "com.github.fonttools.ufoLib", + structure: Optional[UFOFileStructure] = None, + validate: bool = True, + ) -> None: + try: + formatVersion = normalizeFormatVersion(formatVersion, UFOFormatVersion) + except ValueError as e: + from fontTools.ufoLib.errors import UnsupportedUFOFormat + + raise UnsupportedUFOFormat( + f"Unsupported UFO format: {formatVersion!r}" + ) from e + + if hasattr(path, "__fspath__"): # support os.PathLike objects + path = path.__fspath__() + + if isinstance(path, str): + # normalize path by removing trailing or double slashes + path = os.path.normpath(path) + havePreviousFile = os.path.exists(path) + if havePreviousFile: + # ensure we use the same structure as the destination + existingStructure = _sniffFileStructure(path) + if structure is not None: + try: + structure = UFOFileStructure(structure) + except ValueError: + raise UFOLibError( + "Invalid or unsupported structure: '%s'" % structure + ) + if structure is not existingStructure: + raise UFOLibError( + "A UFO with a different structure (%s) already exists " + "at the given path: '%s'" % (existingStructure, path) + ) + else: + structure = existingStructure + else: + # if not exists, default to 'package' structure + if structure is None: + structure = UFOFileStructure.PACKAGE + dirName = os.path.dirname(path) + if dirName and not os.path.isdir(dirName): + raise UFOLibError( + "Cannot write to '%s': directory does not exist" % path + ) + if structure is UFOFileStructure.ZIP: + if havePreviousFile: + # we can't write a zip in-place, so we have to copy its + # contents to a temporary location and work from there, then + # upon closing UFOWriter we create the final zip file + parentFS: FS = fs.tempfs.TempFS() + with fs.zipfs.ZipFS(path, encoding="utf-8") as origFS: # type: ignore[abstract] + fs.copy.copy_fs(origFS, parentFS) + # if output path is an existing zip, we require that it contains + # one, and only one, root directory (with arbitrary name), in turn + # containing all the existing UFO contents + rootDirs = [ + p.name + for p in parentFS.scandir("/") + # exclude macOS metadata contained in zip file + if p.is_dir and p.name != "__MACOSX" + ] + if len(rootDirs) != 1: + raise UFOLibError( + "Expected exactly 1 root directory, found %d" + % len(rootDirs) + ) + else: + rootDir = rootDirs[0] + else: + # if the output zip file didn't exist, we create the root folder; + # we name it the same as input 'path', but with '.ufo' extension + rootDir = os.path.splitext(os.path.basename(path))[0] + ".ufo" + parentFS = fs.zipfs.ZipFS(path, write=True, encoding="utf-8") # type: ignore[abstract] + parentFS.makedir(rootDir) + # 'ClosingSubFS' ensures that the parent filesystem is closed + # when its root subdirectory is closed + self.fs = parentFS.opendir(rootDir, factory=fs.subfs.ClosingSubFS) + else: + self.fs = fs.osfs.OSFS(path, create=True) + self._fileStructure = structure + self._havePreviousFile = havePreviousFile + self._shouldClose = True + elif isinstance(path, fs.base.FS): + filesystem: FS = path + try: + filesystem.check() + except fs.errors.FilesystemClosed: + raise UFOLibError("the filesystem '%s' is closed" % path) + else: + self.fs = filesystem + try: + path = filesystem.getsyspath("/") + except fs.errors.NoSysPath: + # network or in-memory FS may not map to the local one + path = str(filesystem) + # if passed an FS object, always use 'package' structure + if structure and structure is not UFOFileStructure.PACKAGE: + import warnings + + warnings.warn( + "The 'structure' argument is not used when input is an FS object", + UserWarning, + stacklevel=2, + ) + self._fileStructure = UFOFileStructure.PACKAGE + # if FS contains a "metainfo.plist", we consider it non-empty + self._havePreviousFile = filesystem.exists(METAINFO_FILENAME) + # the user is responsible for closing the FS object + self._shouldClose = False + else: + raise TypeError( + "Expected a path string or fs object, found %s" % type(path).__name__ + ) + + # establish some basic stuff + self._path = fsdecode(path) + self._formatVersion = formatVersion + self._fileCreator = fileCreator + self._downConversionKerningData: Optional[KerningGroupRenameMaps] = None + self._validate = validate + # if the file already exists, get the format version. + # this will be needed for up and down conversion. + previousFormatVersion = None + if self._havePreviousFile: + metaInfo = self._readMetaInfo(validate=validate) + previousFormatVersion = metaInfo["formatVersionTuple"] + # catch down conversion + if previousFormatVersion > formatVersion: + from fontTools.ufoLib.errors import UnsupportedUFOFormat + + raise UnsupportedUFOFormat( + "The UFO located at this path is a higher version " + f"({previousFormatVersion}) than the version ({formatVersion}) " + "that is trying to be written. This is not supported." + ) + # handle the layer contents + self.layerContents: Union[dict[str, str], OrderedDict[str, str]] = {} + if previousFormatVersion is not None and previousFormatVersion.major >= 3: + # already exists + self.layerContents = OrderedDict(self._readLayerContents(validate)) + else: + # previous < 3 + # imply the layer contents + if self.fs.exists(DEFAULT_GLYPHS_DIRNAME): + self.layerContents = {DEFAULT_LAYER_NAME: DEFAULT_GLYPHS_DIRNAME} + # write the new metainfo + self._writeMetaInfo() + + # properties + + def _get_fileCreator(self) -> str: + return self._fileCreator + + fileCreator: property = property( + _get_fileCreator, + doc="The file creator of the UFO. This is set into metainfo.plist during __init__.", + ) + + # support methods for file system interaction + + def copyFromReader( + self, reader: UFOReader, sourcePath: PathStr, destPath: PathStr + ) -> None: + """ + Copy the sourcePath in the provided UFOReader to destPath + in this writer. The paths must be relative. This works with + both individual files and directories. + """ + if not isinstance(reader, UFOReader): + raise UFOLibError("The reader must be an instance of UFOReader.") + sourcePath = fsdecode(sourcePath) + destPath = fsdecode(destPath) + if not reader.fs.exists(sourcePath): + raise UFOLibError( + 'The reader does not have data located at "%s".' % sourcePath + ) + if self.fs.exists(destPath): + raise UFOLibError('A file named "%s" already exists.' % destPath) + # create the destination directory if it doesn't exist + self.fs.makedirs(fs.path.dirname(destPath), recreate=True) + if reader.fs.isdir(sourcePath): + fs.copy.copy_dir(reader.fs, sourcePath, self.fs, destPath) + else: + fs.copy.copy_file(reader.fs, sourcePath, self.fs, destPath) + + def writeBytesToPath(self, path: PathStr, data: bytes) -> None: + """ + Write bytes to a path relative to the UFO filesystem's root. + If writing to an existing UFO, check to see if data matches the data + that is already in the file at path; if so, the file is not rewritten + so that the modification date is preserved. + If needed, the directory tree for the given path will be built. + """ + path = fsdecode(path) + if self._havePreviousFile: + if self.fs.isfile(path) and data == self.fs.readbytes(path): + return + try: + self.fs.writebytes(path, data) + except fs.errors.FileExpected: + raise UFOLibError("A directory exists at '%s'" % path) + except fs.errors.ResourceNotFound: + self.fs.makedirs(fs.path.dirname(path), recreate=True) + self.fs.writebytes(path, data) + + def getFileObjectForPath( + self, + path: PathStr, + mode: str = "w", + encoding: Optional[str] = None, + ) -> Optional[IO[Any]]: + """ + Returns a file (or file-like) object for the + file at the given path. The path must be relative + to the UFO path. Returns None if the file does + not exist and the mode is "r" or "rb. + An encoding may be passed if the file is opened in text mode. + + Note: The caller is responsible for closing the open file. + """ + path = fsdecode(path) + try: + return self.fs.open(path, mode=mode, encoding=encoding) + except fs.errors.ResourceNotFound as e: + m = mode[0] + if m == "r": + # XXX I think we should just let it raise. The docstring, + # however, says that this returns None if mode is 'r' + return None + elif m == "w" or m == "a" or m == "x": + self.fs.makedirs(fs.path.dirname(path), recreate=True) + return self.fs.open(path, mode=mode, encoding=encoding) + except fs.errors.ResourceError as e: + raise UFOLibError(f"unable to open '{path}' on {self.fs}: {e}") + return None + + def removePath( + self, path: PathStr, force: bool = False, removeEmptyParents: bool = True + ) -> None: + """ + Remove the file (or directory) at path. The path + must be relative to the UFO. + Raises UFOLibError if the path doesn't exist. + If force=True, ignore non-existent paths. + If the directory where 'path' is located becomes empty, it will + be automatically removed, unless 'removeEmptyParents' is False. + """ + path = fsdecode(path) + try: + self.fs.remove(path) + except fs.errors.FileExpected: + self.fs.removetree(path) + except fs.errors.ResourceNotFound: + if not force: + raise UFOLibError(f"'{path}' does not exist on {self.fs}") + if removeEmptyParents: + parent = fs.path.dirname(path) + if parent: + fs.tools.remove_empty(self.fs, parent) + + # alias kept for backward compatibility with old API + removeFileForPath = removePath + + # UFO mod time + + def setModificationTime(self) -> None: + """ + Set the UFO modification time to the current time. + This is never called automatically. It is up to the + caller to call this when finished working on the UFO. + """ + path = self._path + if path is not None and os.path.exists(path): + try: + # this may fail on some filesystems (e.g. SMB servers) + os.utime(path, None) + except OSError as e: + logger.warning("Failed to set modified time: %s", e) + + # metainfo.plist + + def _writeMetaInfo(self) -> None: + metaInfo = dict( + creator=self._fileCreator, + formatVersion=self._formatVersion.major, + ) + if self._formatVersion.minor != 0: + metaInfo["formatVersionMinor"] = self._formatVersion.minor + self._writePlist(METAINFO_FILENAME, metaInfo) + + # groups.plist + + def setKerningGroupConversionRenameMaps(self, maps: KerningGroupRenameMaps) -> None: + """ + Set maps defining the renaming that should be done + when writing groups and kerning in UFO 1 and UFO 2. + This will effectively undo the conversion done when + UFOReader reads this data. The dictionary should have + this form:: + + { + "side1" : {"group name to use when writing" : "group name in data"}, + "side2" : {"group name to use when writing" : "group name in data"} + } + + This is the same form returned by UFOReader's + getKerningGroupConversionRenameMaps method. + """ + if self._formatVersion >= UFOFormatVersion.FORMAT_3_0: + return # XXX raise an error here + # flip the dictionaries + remap = {} + for side in ("side1", "side2"): + for writeName, dataName in list(maps[side].items()): + remap[dataName] = writeName + self._downConversionKerningData = dict(groupRenameMap=remap) + + def writeGroups( + self, groups: KerningGroups, validate: Optional[bool] = None + ) -> None: + """ + Write groups.plist. This method requires a + dict of glyph groups as an argument. + + ``validate`` will validate the data, by default it is set to the + class's validate value, can be overridden. + """ + if validate is None: + validate = self._validate + # validate the data structure + if validate: + valid, message = groupsValidator(groups) + if not valid: + raise UFOLibError(message) + # down convert + if ( + self._formatVersion < UFOFormatVersion.FORMAT_3_0 + and self._downConversionKerningData is not None + ): + remap = self._downConversionKerningData["groupRenameMap"] + remappedGroups = {} + # there are some edge cases here that are ignored: + # 1. if a group is being renamed to a name that + # already exists, the existing group is always + # overwritten. (this is why there are two loops + # below.) there doesn't seem to be a logical + # solution to groups mismatching and overwriting + # with the specifiecd group seems like a better + # solution than throwing an error. + # 2. if side 1 and side 2 groups are being renamed + # to the same group name there is no check to + # ensure that the contents are identical. that + # is left up to the caller. + for name, contents in list(groups.items()): + if name in remap: + continue + remappedGroups[name] = contents + for name, contents in list(groups.items()): + if name not in remap: + continue + name = remap[name] + remappedGroups[name] = contents + groups = remappedGroups + # pack and write + groupsNew = {} + for key, value in groups.items(): + groupsNew[key] = list(value) + if groupsNew: + self._writePlist(GROUPS_FILENAME, groupsNew) + elif self._havePreviousFile: + self.removePath(GROUPS_FILENAME, force=True, removeEmptyParents=False) + + # fontinfo.plist + + def writeInfo(self, info: Any, validate: Optional[bool] = None) -> None: + """ + Write info.plist. This method requires an object + that supports getting attributes that follow the + fontinfo.plist version 2 specification. Attributes + will be taken from the given object and written + into the file. + + ``validate`` will validate the data, by default it is set to the + class's validate value, can be overridden. + """ + if validate is None: + validate = self._validate + # gather version 3 data + infoData = {} + for attr in list(fontInfoAttributesVersion3ValueData.keys()): + if hasattr(info, attr): + try: + value = getattr(info, attr) + except AttributeError: + raise UFOLibError( + "The supplied info object does not support getting a necessary attribute (%s)." + % attr + ) + if value is None: + continue + infoData[attr] = value + # down convert data if necessary and validate + if self._formatVersion == UFOFormatVersion.FORMAT_3_0: + if validate: + infoData = validateInfoVersion3Data(infoData) + elif self._formatVersion == UFOFormatVersion.FORMAT_2_0: + infoData = _convertFontInfoDataVersion3ToVersion2(infoData) + if validate: + infoData = validateInfoVersion2Data(infoData) + elif self._formatVersion == UFOFormatVersion.FORMAT_1_0: + infoData = _convertFontInfoDataVersion3ToVersion2(infoData) + if validate: + infoData = validateInfoVersion2Data(infoData) + infoData = _convertFontInfoDataVersion2ToVersion1(infoData) + # write file if there is anything to write + if infoData: + self._writePlist(FONTINFO_FILENAME, infoData) + + # kerning.plist + + def writeKerning( + self, kerning: KerningDict, validate: Optional[bool] = None + ) -> None: + """ + Write kerning.plist. This method requires a + dict of kerning pairs as an argument. + + This performs basic structural validation of the kerning, + but it does not check for compliance with the spec in + regards to conflicting pairs. The assumption is that the + kerning data being passed is standards compliant. + + ``validate`` will validate the data, by default it is set to the + class's validate value, can be overridden. + """ + if validate is None: + validate = self._validate + # validate the data structure + if validate: + invalidFormatMessage = "The kerning is not properly formatted." + if not isDictEnough(kerning): + raise UFOLibError(invalidFormatMessage) + for pair, value in list(kerning.items()): + if not isinstance(pair, (list, tuple)): + raise UFOLibError(invalidFormatMessage) + if not len(pair) == 2: + raise UFOLibError(invalidFormatMessage) + if not isinstance(pair[0], str): + raise UFOLibError(invalidFormatMessage) + if not isinstance(pair[1], str): + raise UFOLibError(invalidFormatMessage) + if not isinstance(value, numberTypes): + raise UFOLibError(invalidFormatMessage) + # down convert + if ( + self._formatVersion < UFOFormatVersion.FORMAT_3_0 + and self._downConversionKerningData is not None + ): + remap = self._downConversionKerningData["groupRenameMap"] + remappedKerning = {} + for (side1, side2), value in list(kerning.items()): + side1 = remap.get(side1, side1) + side2 = remap.get(side2, side2) + remappedKerning[side1, side2] = value + kerning = remappedKerning + # pack and write + kerningDict: KerningNested = {} + for left, right in kerning.keys(): + value = kerning[left, right] + if left not in kerningDict: + kerningDict[left] = {} + kerningDict[left][right] = value + if kerningDict: + self._writePlist(KERNING_FILENAME, kerningDict) + elif self._havePreviousFile: + self.removePath(KERNING_FILENAME, force=True, removeEmptyParents=False) + + # lib.plist + + def writeLib(self, libDict: LibDict, validate: Optional[bool] = None) -> None: + """ + Write lib.plist. This method requires a + lib dict as an argument. + + ``validate`` will validate the data, by default it is set to the + class's validate value, can be overridden. + """ + if validate is None: + validate = self._validate + if validate: + valid, message = fontLibValidator(libDict) + if not valid: + raise UFOLibError(message) + if libDict: + self._writePlist(LIB_FILENAME, libDict) + elif self._havePreviousFile: + self.removePath(LIB_FILENAME, force=True, removeEmptyParents=False) + + # features.fea + + def writeFeatures(self, features: str, validate: Optional[bool] = None) -> None: + """ + Write features.fea. This method requires a + features string as an argument. + """ + if validate is None: + validate = self._validate + if self._formatVersion == UFOFormatVersion.FORMAT_1_0: + raise UFOLibError("features.fea is not allowed in UFO Format Version 1.") + if validate: + if not isinstance(features, str): + raise UFOLibError("The features are not text.") + if features: + self.writeBytesToPath(FEATURES_FILENAME, features.encode("utf8")) + elif self._havePreviousFile: + self.removePath(FEATURES_FILENAME, force=True, removeEmptyParents=False) + + # glyph sets & layers + + def writeLayerContents( + self, layerOrder: LayerOrderList = None, validate: Optional[bool] = None + ) -> None: + """ + Write the layercontents.plist file. This method *must* be called + after all glyph sets have been written. + """ + if validate is None: + validate = self._validate + if self._formatVersion < UFOFormatVersion.FORMAT_3_0: + return + if layerOrder is not None: + newOrder: list[Optional[str]] = [] + for layerName in layerOrder: + if layerName is None: + layerName = DEFAULT_LAYER_NAME + newOrder.append(layerName) + layerOrder = newOrder + else: + layerOrder = list(self.layerContents.keys()) + if validate and set(layerOrder) != set(self.layerContents.keys()): + raise UFOLibError( + "The layer order content does not match the glyph sets that have been created." + ) + layerContents = [ + (layerName, self.layerContents[layerName]) + for layerName in layerOrder + if layerName is not None + ] + self._writePlist(LAYERCONTENTS_FILENAME, layerContents) + + def _findDirectoryForLayerName(self, layerName: Optional[str]) -> str: + foundDirectory = None + for existingLayerName, directoryName in list(self.layerContents.items()): + if layerName is None and directoryName == DEFAULT_GLYPHS_DIRNAME: + foundDirectory = directoryName + break + elif existingLayerName == layerName: + foundDirectory = directoryName + break + if not foundDirectory: + raise UFOLibError( + "Could not locate a glyph set directory for the layer named %s." + % layerName + ) + return foundDirectory + + def getGlyphSet( # type: ignore[override] + self, + layerName: Optional[str] = None, + defaultLayer: bool = True, + glyphNameToFileNameFunc: GlyphNameToFileNameFunc = None, + validateRead: Optional[bool] = None, + validateWrite: Optional[bool] = None, + expectContentsFile: bool = False, + ) -> GlyphSet: + """ + Return the GlyphSet object associated with the + appropriate glyph directory in the .ufo. + If layerName is None, the default glyph set + will be used. The defaultLayer flag indicates + that the layer should be saved into the default + glyphs directory. + + ``validateRead`` will validate the read data, by default it is set to the + class's validate value, can be overridden. + ``validateWrte`` will validate the written data, by default it is set to the + class's validate value, can be overridden. + ``expectContentsFile`` will raise a GlifLibError if a contents.plist file is + not found on the glyph set file system. This should be set to ``True`` if you + are reading an existing UFO and ``False`` if you use ``getGlyphSet`` to create + a fresh glyph set. + """ + if validateRead is None: + validateRead = self._validate + if validateWrite is None: + validateWrite = self._validate + # only default can be written in < 3 + if self._formatVersion < UFOFormatVersion.FORMAT_3_0 and ( + not defaultLayer or layerName is not None + ): + raise UFOLibError( + f"Only the default layer can be writen in UFO {self._formatVersion.major}." + ) + # locate a layer name when None has been given + if layerName is None and defaultLayer: + for existingLayerName, directory in self.layerContents.items(): + if directory == DEFAULT_GLYPHS_DIRNAME: + layerName = existingLayerName + if layerName is None: + layerName = DEFAULT_LAYER_NAME + elif layerName is None and not defaultLayer: + raise UFOLibError("A layer name must be provided for non-default layers.") + # move along to format specific writing + if self._formatVersion < UFOFormatVersion.FORMAT_3_0: + return self._getDefaultGlyphSet( + validateRead, + validateWrite, + glyphNameToFileNameFunc=glyphNameToFileNameFunc, + expectContentsFile=expectContentsFile, + ) + elif self._formatVersion.major == UFOFormatVersion.FORMAT_3_0.major: + return self._getGlyphSetFormatVersion3( + validateRead, + validateWrite, + layerName=layerName, + defaultLayer=defaultLayer, + glyphNameToFileNameFunc=glyphNameToFileNameFunc, + expectContentsFile=expectContentsFile, + ) + else: + raise NotImplementedError(self._formatVersion) + + def _getDefaultGlyphSet( + self, + validateRead: bool, + validateWrite: bool, + glyphNameToFileNameFunc: GlyphNameToFileNameFunc = None, + expectContentsFile: bool = False, + ) -> GlyphSet: + from fontTools.ufoLib.glifLib import GlyphSet + + glyphSubFS = self.fs.makedir(DEFAULT_GLYPHS_DIRNAME, recreate=True) + return GlyphSet( + glyphSubFS, + glyphNameToFileNameFunc=glyphNameToFileNameFunc, + ufoFormatVersion=self._formatVersion, + validateRead=validateRead, + validateWrite=validateWrite, + expectContentsFile=expectContentsFile, + ) + + def _getGlyphSetFormatVersion3( + self, + validateRead: bool, + validateWrite: bool, + layerName: Optional[str] = None, + defaultLayer: bool = True, + glyphNameToFileNameFunc: GlyphNameToFileNameFunc = None, + expectContentsFile: bool = False, + ) -> GlyphSet: + from fontTools.ufoLib.glifLib import GlyphSet + + # if the default flag is on, make sure that the default in the file + # matches the default being written. also make sure that this layer + # name is not already linked to a non-default layer. + if defaultLayer: + for existingLayerName, directory in self.layerContents.items(): + if directory == DEFAULT_GLYPHS_DIRNAME: + if existingLayerName != layerName: + raise UFOLibError( + "Another layer ('%s') is already mapped to the default directory." + % existingLayerName + ) + elif existingLayerName == layerName: + raise UFOLibError( + "The layer name is already mapped to a non-default layer." + ) + + # handle layerName is None to avoid MyPy errors + if layerName is None: + raise TypeError("'leyerName' cannot be None.") + + # get an existing directory name + if layerName in self.layerContents: + directory = self.layerContents[layerName] + # get a new directory name + else: + if defaultLayer: + directory = DEFAULT_GLYPHS_DIRNAME + else: + # not caching this could be slightly expensive, + # but caching it will be cumbersome + existing = {d.lower() for d in self.layerContents.values()} + directory = userNameToFileName( + layerName, existing=existing, prefix="glyphs." + ) + # make the directory + glyphSubFS = self.fs.makedir(directory, recreate=True) + # store the mapping + self.layerContents[layerName] = directory + # load the glyph set + return GlyphSet( + glyphSubFS, + glyphNameToFileNameFunc=glyphNameToFileNameFunc, + ufoFormatVersion=self._formatVersion, + validateRead=validateRead, + validateWrite=validateWrite, + expectContentsFile=expectContentsFile, + ) + + def renameGlyphSet( + self, + layerName: Optional[str], + newLayerName: Optional[str], + defaultLayer: bool = False, + ) -> None: + """ + Rename a glyph set. + + Note: if a GlyphSet object has already been retrieved for + layerName, it is up to the caller to inform that object that + the directory it represents has changed. + """ + if self._formatVersion < UFOFormatVersion.FORMAT_3_0: + # ignore renaming glyph sets for UFO1 UFO2 + # just write the data from the default layer + return + # the new and old names can be the same + # as long as the default is being switched + if layerName is not None and layerName == newLayerName: + # if the default is off and the layer is already not the default, skip + if ( + self.layerContents[layerName] != DEFAULT_GLYPHS_DIRNAME + and not defaultLayer + ): + return + # if the default is on and the layer is already the default, skip + if self.layerContents[layerName] == DEFAULT_GLYPHS_DIRNAME and defaultLayer: + return + else: + # make sure the new layer name doesn't already exist + if newLayerName is None: + newLayerName = DEFAULT_LAYER_NAME + if newLayerName in self.layerContents: + raise UFOLibError("A layer named %s already exists." % newLayerName) + # make sure the default layer doesn't already exist + if defaultLayer and DEFAULT_GLYPHS_DIRNAME in self.layerContents.values(): + raise UFOLibError("A default layer already exists.") + # get the paths + oldDirectory = self._findDirectoryForLayerName(layerName) + if defaultLayer: + newDirectory = DEFAULT_GLYPHS_DIRNAME + else: + existing = {name.lower() for name in self.layerContents.values()} + newDirectory = userNameToFileName( + newLayerName, existing=existing, prefix="glyphs." + ) + # update the internal mapping + if layerName is not None: + del self.layerContents[layerName] + self.layerContents[newLayerName] = newDirectory + # do the file system copy + self.fs.movedir(oldDirectory, newDirectory, create=True) + + def deleteGlyphSet(self, layerName: Optional[str]) -> None: + """ + Remove the glyph set matching layerName. + """ + if self._formatVersion < UFOFormatVersion.FORMAT_3_0: + # ignore deleting glyph sets for UFO1 UFO2 as there are no layers + # just write the data from the default layer + return + foundDirectory = self._findDirectoryForLayerName(layerName) + self.removePath(foundDirectory, removeEmptyParents=False) + if layerName is not None: + del self.layerContents[layerName] + + def writeData(self, fileName: PathStr, data: bytes) -> None: + """ + Write data to fileName in the 'data' directory. + The data must be a bytes string. + """ + self.writeBytesToPath(f"{DATA_DIRNAME}/{fsdecode(fileName)}", data) + + def removeData(self, fileName: PathStr) -> None: + """ + Remove the file named fileName from the data directory. + """ + self.removePath(f"{DATA_DIRNAME}/{fsdecode(fileName)}") + + # /images + + def writeImage( + self, + fileName: PathStr, + data: bytes, + validate: Optional[bool] = None, + ) -> None: + """ + Write data to fileName in the images directory. + The data must be a valid PNG. + """ + if validate is None: + validate = self._validate + if self._formatVersion < UFOFormatVersion.FORMAT_3_0: + raise UFOLibError( + f"Images are not allowed in UFO {self._formatVersion.major}." + ) + fileName = fsdecode(fileName) + if validate: + valid, error = pngValidator(data=data) + if not valid: + raise UFOLibError(error) + self.writeBytesToPath(f"{IMAGES_DIRNAME}/{fileName}", data) + + def removeImage( + self, + fileName: PathStr, + validate: Optional[bool] = None, + ) -> None: # XXX remove unused 'validate'? + """ + Remove the file named fileName from the + images directory. + """ + if self._formatVersion < UFOFormatVersion.FORMAT_3_0: + raise UFOLibError( + f"Images are not allowed in UFO {self._formatVersion.major}." + ) + self.removePath(f"{IMAGES_DIRNAME}/{fsdecode(fileName)}") + + def copyImageFromReader( + self, + reader: UFOReader, + sourceFileName: PathStr, + destFileName: PathStr, + validate: Optional[bool] = None, + ) -> None: + """ + Copy the sourceFileName in the provided UFOReader to destFileName + in this writer. This uses the most memory efficient method possible + for copying the data possible. + """ + if validate is None: + validate = self._validate + if self._formatVersion < UFOFormatVersion.FORMAT_3_0: + raise UFOLibError( + f"Images are not allowed in UFO {self._formatVersion.major}." + ) + sourcePath = f"{IMAGES_DIRNAME}/{fsdecode(sourceFileName)}" + destPath = f"{IMAGES_DIRNAME}/{fsdecode(destFileName)}" + self.copyFromReader(reader, sourcePath, destPath) + + def close(self) -> None: + if self._havePreviousFile and self._fileStructure is UFOFileStructure.ZIP: + # if we are updating an existing zip file, we can now compress the + # contents of the temporary filesystem in the destination path + rootDir = os.path.splitext(os.path.basename(self._path))[0] + ".ufo" + with fs.zipfs.ZipFS(self._path, write=True, encoding="utf-8") as destFS: # type: ignore[abstract] + fs.copy.copy_fs(self.fs, destFS.makedir(rootDir)) + super().close() + + +# just an alias, makes it more explicit +UFOReaderWriter = UFOWriter + + +# ---------------- +# Helper Functions +# ---------------- + + +def _sniffFileStructure(ufo_path: PathStr) -> UFOFileStructure: + """Return UFOFileStructure.ZIP if the UFO at path 'ufo_path' (str) + is a zip file, else return UFOFileStructure.PACKAGE if 'ufo_path' is a + directory. + Raise UFOLibError if it is a file with unknown structure, or if the path + does not exist. + """ + if zipfile.is_zipfile(ufo_path): + return UFOFileStructure.ZIP + elif os.path.isdir(ufo_path): + return UFOFileStructure.PACKAGE + elif os.path.isfile(ufo_path): + raise UFOLibError( + "The specified UFO does not have a known structure: '%s'" % ufo_path + ) + else: + raise UFOLibError("No such file or directory: '%s'" % ufo_path) + + +def makeUFOPath(path: PathStr) -> str: + """ + Return a .ufo pathname. + + >>> makeUFOPath("directory/something.ext") == ( + ... os.path.join('directory', 'something.ufo')) + True + >>> makeUFOPath("directory/something.another.thing.ext") == ( + ... os.path.join('directory', 'something.another.thing.ufo')) + True + """ + dir, name = os.path.split(path) + name = ".".join([".".join(name.split(".")[:-1]), "ufo"]) + return os.path.join(dir, name) + + +# ---------------------- +# fontinfo.plist Support +# ---------------------- + +# Version Validators + +# There is no version 1 validator and there shouldn't be. +# The version 1 spec was very loose and there were numerous +# cases of invalid values. + + +def validateFontInfoVersion2ValueForAttribute(attr: str, value: Any) -> bool: + """ + This performs very basic validation of the value for attribute + following the UFO 2 fontinfo.plist specification. The results + of this should not be interpretted as *correct* for the font + that they are part of. This merely indicates that the value + is of the proper type and, where the specification defines + a set range of possible values for an attribute, that the + value is in the accepted range. + """ + dataValidationDict = fontInfoAttributesVersion2ValueData[attr] + valueType = dataValidationDict.get("type") + validator = dataValidationDict.get("valueValidator", genericTypeValidator) + valueOptions = dataValidationDict.get("valueOptions") + # have specific options for the validator + if valueOptions is not None: + isValidValue = validator(value, valueOptions) + # no specific options + else: + if validator == genericTypeValidator: + isValidValue = validator(value, valueType) + else: + isValidValue = validator(value) + return isValidValue + + +def validateInfoVersion2Data(infoData: dict[str, Any]) -> dict[str, Any]: + """ + This performs very basic validation of the value for infoData + following the UFO 2 fontinfo.plist specification. The results + of this should not be interpretted as *correct* for the font + that they are part of. This merely indicates that the values + are of the proper type and, where the specification defines + a set range of possible values for an attribute, that the + value is in the accepted range. + """ + validInfoData = {} + for attr, value in list(infoData.items()): + isValidValue = validateFontInfoVersion2ValueForAttribute(attr, value) + if not isValidValue: + raise UFOLibError(f"Invalid value for attribute {attr} ({value!r}).") + else: + validInfoData[attr] = value + return validInfoData + + +def validateFontInfoVersion3ValueForAttribute(attr: str, value: Any) -> bool: + """ + This performs very basic validation of the value for attribute + following the UFO 3 fontinfo.plist specification. The results + of this should not be interpretted as *correct* for the font + that they are part of. This merely indicates that the value + is of the proper type and, where the specification defines + a set range of possible values for an attribute, that the + value is in the accepted range. + """ + dataValidationDict = fontInfoAttributesVersion3ValueData[attr] + valueType = dataValidationDict.get("type") + validator = dataValidationDict.get("valueValidator", genericTypeValidator) + valueOptions = dataValidationDict.get("valueOptions") + # have specific options for the validator + if valueOptions is not None: + isValidValue = validator(value, valueOptions) + # no specific options + else: + if validator == genericTypeValidator: + isValidValue = validator(value, valueType) + else: + isValidValue = validator(value) + return isValidValue + + +def validateInfoVersion3Data(infoData: dict[str, Any]) -> dict[str, Any]: + """ + This performs very basic validation of the value for infoData + following the UFO 3 fontinfo.plist specification. The results + of this should not be interpretted as *correct* for the font + that they are part of. This merely indicates that the values + are of the proper type and, where the specification defines + a set range of possible values for an attribute, that the + value is in the accepted range. + """ + validInfoData = {} + for attr, value in list(infoData.items()): + isValidValue = validateFontInfoVersion3ValueForAttribute(attr, value) + if not isValidValue: + raise UFOLibError(f"Invalid value for attribute {attr} ({value!r}).") + else: + validInfoData[attr] = value + return validInfoData + + +# Value Options + +fontInfoOpenTypeHeadFlagsOptions: list[int] = list(range(0, 15)) +fontInfoOpenTypeOS2SelectionOptions: list[int] = [1, 2, 3, 4, 7, 8, 9] +fontInfoOpenTypeOS2UnicodeRangesOptions: list[int] = list(range(0, 128)) +fontInfoOpenTypeOS2CodePageRangesOptions: list[int] = list(range(0, 64)) +fontInfoOpenTypeOS2TypeOptions: list[int] = [0, 1, 2, 3, 8, 9] + +# Version Attribute Definitions +# This defines the attributes, types and, in some +# cases the possible values, that can exist is +# fontinfo.plist. + +fontInfoAttributesVersion1: set[str] = { + "familyName", + "styleName", + "fullName", + "fontName", + "menuName", + "fontStyle", + "note", + "versionMajor", + "versionMinor", + "year", + "copyright", + "notice", + "trademark", + "license", + "licenseURL", + "createdBy", + "designer", + "designerURL", + "vendorURL", + "unitsPerEm", + "ascender", + "descender", + "capHeight", + "xHeight", + "defaultWidth", + "slantAngle", + "italicAngle", + "widthName", + "weightName", + "weightValue", + "fondName", + "otFamilyName", + "otStyleName", + "otMacName", + "msCharSet", + "fondID", + "uniqueID", + "ttVendor", + "ttUniqueID", + "ttVersion", +} + +fontInfoAttributesVersion2ValueData: FontInfoAttributes = { + "familyName": dict(type=str), + "styleName": dict(type=str), + "styleMapFamilyName": dict(type=str), + "styleMapStyleName": dict( + type=str, valueValidator=fontInfoStyleMapStyleNameValidator + ), + "versionMajor": dict(type=int), + "versionMinor": dict(type=int), + "year": dict(type=int), + "copyright": dict(type=str), + "trademark": dict(type=str), + "unitsPerEm": dict(type=(int, float)), + "descender": dict(type=(int, float)), + "xHeight": dict(type=(int, float)), + "capHeight": dict(type=(int, float)), + "ascender": dict(type=(int, float)), + "italicAngle": dict(type=(float, int)), + "note": dict(type=str), + "openTypeHeadCreated": dict( + type=str, valueValidator=fontInfoOpenTypeHeadCreatedValidator + ), + "openTypeHeadLowestRecPPEM": dict(type=(int, float)), + "openTypeHeadFlags": dict( + type="integerList", + valueValidator=genericIntListValidator, + valueOptions=fontInfoOpenTypeHeadFlagsOptions, + ), + "openTypeHheaAscender": dict(type=(int, float)), + "openTypeHheaDescender": dict(type=(int, float)), + "openTypeHheaLineGap": dict(type=(int, float)), + "openTypeHheaCaretSlopeRise": dict(type=int), + "openTypeHheaCaretSlopeRun": dict(type=int), + "openTypeHheaCaretOffset": dict(type=(int, float)), + "openTypeNameDesigner": dict(type=str), + "openTypeNameDesignerURL": dict(type=str), + "openTypeNameManufacturer": dict(type=str), + "openTypeNameManufacturerURL": dict(type=str), + "openTypeNameLicense": dict(type=str), + "openTypeNameLicenseURL": dict(type=str), + "openTypeNameVersion": dict(type=str), + "openTypeNameUniqueID": dict(type=str), + "openTypeNameDescription": dict(type=str), + "openTypeNamePreferredFamilyName": dict(type=str), + "openTypeNamePreferredSubfamilyName": dict(type=str), + "openTypeNameCompatibleFullName": dict(type=str), + "openTypeNameSampleText": dict(type=str), + "openTypeNameWWSFamilyName": dict(type=str), + "openTypeNameWWSSubfamilyName": dict(type=str), + "openTypeOS2WidthClass": dict( + type=int, valueValidator=fontInfoOpenTypeOS2WidthClassValidator + ), + "openTypeOS2WeightClass": dict( + type=int, valueValidator=fontInfoOpenTypeOS2WeightClassValidator + ), + "openTypeOS2Selection": dict( + type="integerList", + valueValidator=genericIntListValidator, + valueOptions=fontInfoOpenTypeOS2SelectionOptions, + ), + "openTypeOS2VendorID": dict(type=str), + "openTypeOS2Panose": dict( + type="integerList", valueValidator=fontInfoVersion2OpenTypeOS2PanoseValidator + ), + "openTypeOS2FamilyClass": dict( + type="integerList", valueValidator=fontInfoOpenTypeOS2FamilyClassValidator + ), + "openTypeOS2UnicodeRanges": dict( + type="integerList", + valueValidator=genericIntListValidator, + valueOptions=fontInfoOpenTypeOS2UnicodeRangesOptions, + ), + "openTypeOS2CodePageRanges": dict( + type="integerList", + valueValidator=genericIntListValidator, + valueOptions=fontInfoOpenTypeOS2CodePageRangesOptions, + ), + "openTypeOS2TypoAscender": dict(type=(int, float)), + "openTypeOS2TypoDescender": dict(type=(int, float)), + "openTypeOS2TypoLineGap": dict(type=(int, float)), + "openTypeOS2WinAscent": dict(type=(int, float)), + "openTypeOS2WinDescent": dict(type=(int, float)), + "openTypeOS2Type": dict( + type="integerList", + valueValidator=genericIntListValidator, + valueOptions=fontInfoOpenTypeOS2TypeOptions, + ), + "openTypeOS2SubscriptXSize": dict(type=(int, float)), + "openTypeOS2SubscriptYSize": dict(type=(int, float)), + "openTypeOS2SubscriptXOffset": dict(type=(int, float)), + "openTypeOS2SubscriptYOffset": dict(type=(int, float)), + "openTypeOS2SuperscriptXSize": dict(type=(int, float)), + "openTypeOS2SuperscriptYSize": dict(type=(int, float)), + "openTypeOS2SuperscriptXOffset": dict(type=(int, float)), + "openTypeOS2SuperscriptYOffset": dict(type=(int, float)), + "openTypeOS2StrikeoutSize": dict(type=(int, float)), + "openTypeOS2StrikeoutPosition": dict(type=(int, float)), + "openTypeVheaVertTypoAscender": dict(type=(int, float)), + "openTypeVheaVertTypoDescender": dict(type=(int, float)), + "openTypeVheaVertTypoLineGap": dict(type=(int, float)), + "openTypeVheaCaretSlopeRise": dict(type=int), + "openTypeVheaCaretSlopeRun": dict(type=int), + "openTypeVheaCaretOffset": dict(type=(int, float)), + "postscriptFontName": dict(type=str), + "postscriptFullName": dict(type=str), + "postscriptSlantAngle": dict(type=(float, int)), + "postscriptUniqueID": dict(type=int), + "postscriptUnderlineThickness": dict(type=(int, float)), + "postscriptUnderlinePosition": dict(type=(int, float)), + "postscriptIsFixedPitch": dict(type=bool), + "postscriptBlueValues": dict( + type="integerList", valueValidator=fontInfoPostscriptBluesValidator + ), + "postscriptOtherBlues": dict( + type="integerList", valueValidator=fontInfoPostscriptOtherBluesValidator + ), + "postscriptFamilyBlues": dict( + type="integerList", valueValidator=fontInfoPostscriptBluesValidator + ), + "postscriptFamilyOtherBlues": dict( + type="integerList", valueValidator=fontInfoPostscriptOtherBluesValidator + ), + "postscriptStemSnapH": dict( + type="integerList", valueValidator=fontInfoPostscriptStemsValidator + ), + "postscriptStemSnapV": dict( + type="integerList", valueValidator=fontInfoPostscriptStemsValidator + ), + "postscriptBlueFuzz": dict(type=(int, float)), + "postscriptBlueShift": dict(type=(int, float)), + "postscriptBlueScale": dict(type=(float, int)), + "postscriptForceBold": dict(type=bool), + "postscriptDefaultWidthX": dict(type=(int, float)), + "postscriptNominalWidthX": dict(type=(int, float)), + "postscriptWeightName": dict(type=str), + "postscriptDefaultCharacter": dict(type=str), + "postscriptWindowsCharacterSet": dict( + type=int, valueValidator=fontInfoPostscriptWindowsCharacterSetValidator + ), + "macintoshFONDFamilyID": dict(type=int), + "macintoshFONDName": dict(type=str), +} +fontInfoAttributesVersion2: set[str] = set(fontInfoAttributesVersion2ValueData.keys()) + +fontInfoAttributesVersion3ValueData: FontInfoAttributes = deepcopy( + fontInfoAttributesVersion2ValueData +) +fontInfoAttributesVersion3ValueData.update( + { + "versionMinor": dict(type=int, valueValidator=genericNonNegativeIntValidator), + "unitsPerEm": dict( + type=(int, float), valueValidator=genericNonNegativeNumberValidator + ), + "openTypeHeadLowestRecPPEM": dict( + type=int, valueValidator=genericNonNegativeNumberValidator + ), + "openTypeHheaAscender": dict(type=int), + "openTypeHheaDescender": dict(type=int), + "openTypeHheaLineGap": dict(type=int), + "openTypeHheaCaretOffset": dict(type=int), + "openTypeOS2Panose": dict( + type="integerList", + valueValidator=fontInfoVersion3OpenTypeOS2PanoseValidator, + ), + "openTypeOS2TypoAscender": dict(type=int), + "openTypeOS2TypoDescender": dict(type=int), + "openTypeOS2TypoLineGap": dict(type=int), + "openTypeOS2WinAscent": dict( + type=int, valueValidator=genericNonNegativeNumberValidator + ), + "openTypeOS2WinDescent": dict( + type=int, valueValidator=genericNonNegativeNumberValidator + ), + "openTypeOS2SubscriptXSize": dict(type=int), + "openTypeOS2SubscriptYSize": dict(type=int), + "openTypeOS2SubscriptXOffset": dict(type=int), + "openTypeOS2SubscriptYOffset": dict(type=int), + "openTypeOS2SuperscriptXSize": dict(type=int), + "openTypeOS2SuperscriptYSize": dict(type=int), + "openTypeOS2SuperscriptXOffset": dict(type=int), + "openTypeOS2SuperscriptYOffset": dict(type=int), + "openTypeOS2StrikeoutSize": dict(type=int), + "openTypeOS2StrikeoutPosition": dict(type=int), + "openTypeGaspRangeRecords": dict( + type="dictList", valueValidator=fontInfoOpenTypeGaspRangeRecordsValidator + ), + "openTypeNameRecords": dict( + type="dictList", valueValidator=fontInfoOpenTypeNameRecordsValidator + ), + "openTypeVheaVertTypoAscender": dict(type=int), + "openTypeVheaVertTypoDescender": dict(type=int), + "openTypeVheaVertTypoLineGap": dict(type=int), + "openTypeVheaCaretOffset": dict(type=int), + "woffMajorVersion": dict( + type=int, valueValidator=genericNonNegativeIntValidator + ), + "woffMinorVersion": dict( + type=int, valueValidator=genericNonNegativeIntValidator + ), + "woffMetadataUniqueID": dict( + type=dict, valueValidator=fontInfoWOFFMetadataUniqueIDValidator + ), + "woffMetadataVendor": dict( + type=dict, valueValidator=fontInfoWOFFMetadataVendorValidator + ), + "woffMetadataCredits": dict( + type=dict, valueValidator=fontInfoWOFFMetadataCreditsValidator + ), + "woffMetadataDescription": dict( + type=dict, valueValidator=fontInfoWOFFMetadataDescriptionValidator + ), + "woffMetadataLicense": dict( + type=dict, valueValidator=fontInfoWOFFMetadataLicenseValidator + ), + "woffMetadataCopyright": dict( + type=dict, valueValidator=fontInfoWOFFMetadataCopyrightValidator + ), + "woffMetadataTrademark": dict( + type=dict, valueValidator=fontInfoWOFFMetadataTrademarkValidator + ), + "woffMetadataLicensee": dict( + type=dict, valueValidator=fontInfoWOFFMetadataLicenseeValidator + ), + "woffMetadataExtensions": dict( + type=list, valueValidator=fontInfoWOFFMetadataExtensionsValidator + ), + "guidelines": dict(type=list, valueValidator=guidelinesValidator), + } +) +fontInfoAttributesVersion3: set[str] = set(fontInfoAttributesVersion3ValueData.keys()) + +# insert the type validator for all attrs that +# have no defined validator. +for attr, dataDict in list(fontInfoAttributesVersion2ValueData.items()): + if "valueValidator" not in dataDict: + dataDict["valueValidator"] = genericTypeValidator + +for attr, dataDict in list(fontInfoAttributesVersion3ValueData.items()): + if "valueValidator" not in dataDict: + dataDict["valueValidator"] = genericTypeValidator + +# Version Conversion Support +# These are used from converting from version 1 +# to version 2 or vice-versa. + + +def _flipDict(d: dict[K, V]) -> dict[V, K]: + flipped = {} + for key, value in list(d.items()): + flipped[value] = key + return flipped + + +fontInfoAttributesVersion1To2: dict[str, str] = { + "menuName": "styleMapFamilyName", + "designer": "openTypeNameDesigner", + "designerURL": "openTypeNameDesignerURL", + "createdBy": "openTypeNameManufacturer", + "vendorURL": "openTypeNameManufacturerURL", + "license": "openTypeNameLicense", + "licenseURL": "openTypeNameLicenseURL", + "ttVersion": "openTypeNameVersion", + "ttUniqueID": "openTypeNameUniqueID", + "notice": "openTypeNameDescription", + "otFamilyName": "openTypeNamePreferredFamilyName", + "otStyleName": "openTypeNamePreferredSubfamilyName", + "otMacName": "openTypeNameCompatibleFullName", + "weightName": "postscriptWeightName", + "weightValue": "openTypeOS2WeightClass", + "ttVendor": "openTypeOS2VendorID", + "uniqueID": "postscriptUniqueID", + "fontName": "postscriptFontName", + "fondID": "macintoshFONDFamilyID", + "fondName": "macintoshFONDName", + "defaultWidth": "postscriptDefaultWidthX", + "slantAngle": "postscriptSlantAngle", + "fullName": "postscriptFullName", + # require special value conversion + "fontStyle": "styleMapStyleName", + "widthName": "openTypeOS2WidthClass", + "msCharSet": "postscriptWindowsCharacterSet", +} +fontInfoAttributesVersion2To1 = _flipDict(fontInfoAttributesVersion1To2) +deprecatedFontInfoAttributesVersion2 = set(fontInfoAttributesVersion1To2.keys()) + +_fontStyle1To2: dict[int, str] = { + 64: "regular", + 1: "italic", + 32: "bold", + 33: "bold italic", +} +_fontStyle2To1: dict[str, int] = _flipDict(_fontStyle1To2) +# Some UFO 1 files have 0 +_fontStyle1To2[0] = "regular" + +_widthName1To2: dict[str, int] = { + "Ultra-condensed": 1, + "Extra-condensed": 2, + "Condensed": 3, + "Semi-condensed": 4, + "Medium (normal)": 5, + "Semi-expanded": 6, + "Expanded": 7, + "Extra-expanded": 8, + "Ultra-expanded": 9, +} +_widthName2To1: dict[int, str] = _flipDict(_widthName1To2) +# FontLab's default width value is "Normal". +# Many format version 1 UFOs will have this. +_widthName1To2["Normal"] = 5 +# FontLab has an "All" width value. In UFO 1 +# move this up to "Normal". +_widthName1To2["All"] = 5 +# "medium" appears in a lot of UFO 1 files. +_widthName1To2["medium"] = 5 +# "Medium" appears in a lot of UFO 1 files. +_widthName1To2["Medium"] = 5 + +_msCharSet1To2: dict[int, int] = { + 0: 1, + 1: 2, + 2: 3, + 77: 4, + 128: 5, + 129: 6, + 130: 7, + 134: 8, + 136: 9, + 161: 10, + 162: 11, + 163: 12, + 177: 13, + 178: 14, + 186: 15, + 200: 16, + 204: 17, + 222: 18, + 238: 19, + 255: 20, +} +_msCharSet2To1: dict[int, int] = _flipDict(_msCharSet1To2) + +# 1 <-> 2 + + +def convertFontInfoValueForAttributeFromVersion1ToVersion2( + attr: str, value: Any +) -> tuple[str, Any]: + """ + Convert value from version 1 to version 2 format. + Returns the new attribute name and the converted value. + If the value is None, None will be returned for the new value. + """ + # convert floats to ints if possible + if isinstance(value, float): + if int(value) == value: + value = int(value) + if value is not None: + if attr == "fontStyle": + v: Optional[Union[str, int]] = _fontStyle1To2.get(value) + if v is None: + raise UFOLibError( + f"Cannot convert value ({value!r}) for attribute {attr}." + ) + value = v + elif attr == "widthName": + v = _widthName1To2.get(value) + if v is None: + raise UFOLibError( + f"Cannot convert value ({value!r}) for attribute {attr}." + ) + value = v + elif attr == "msCharSet": + v = _msCharSet1To2.get(value) + if v is None: + raise UFOLibError( + f"Cannot convert value ({value!r}) for attribute {attr}." + ) + value = v + attr = fontInfoAttributesVersion1To2.get(attr, attr) + return attr, value + + +def convertFontInfoValueForAttributeFromVersion2ToVersion1( + attr: str, value: Any +) -> tuple[str, Any]: + """ + Convert value from version 2 to version 1 format. + Returns the new attribute name and the converted value. + If the value is None, None will be returned for the new value. + """ + if value is not None: + if attr == "styleMapStyleName": + value = _fontStyle2To1.get(value) + elif attr == "openTypeOS2WidthClass": + value = _widthName2To1.get(value) + elif attr == "postscriptWindowsCharacterSet": + value = _msCharSet2To1.get(value) + attr = fontInfoAttributesVersion2To1.get(attr, attr) + return attr, value + + +def _convertFontInfoDataVersion1ToVersion2(data: dict[str, Any]) -> dict[str, Any]: + converted = {} + for attr, value in list(data.items()): + # FontLab gives -1 for the weightValue + # for fonts wil no defined value. Many + # format version 1 UFOs will have this. + if attr == "weightValue" and value == -1: + continue + newAttr, newValue = convertFontInfoValueForAttributeFromVersion1ToVersion2( + attr, value + ) + # skip if the attribute is not part of version 2 + if newAttr not in fontInfoAttributesVersion2: + continue + # catch values that can't be converted + if value is None: + raise UFOLibError( + f"Cannot convert value ({value!r}) for attribute {newAttr}." + ) + # store + converted[newAttr] = newValue + return converted + + +def _convertFontInfoDataVersion2ToVersion1(data: dict[str, Any]) -> dict[str, Any]: + converted = {} + for attr, value in list(data.items()): + newAttr, newValue = convertFontInfoValueForAttributeFromVersion2ToVersion1( + attr, value + ) + # only take attributes that are registered for version 1 + if newAttr not in fontInfoAttributesVersion1: + continue + # catch values that can't be converted + if value is None: + raise UFOLibError( + f"Cannot convert value ({value!r}) for attribute {newAttr}." + ) + # store + converted[newAttr] = newValue + return converted + + +# 2 <-> 3 + +_ufo2To3NonNegativeInt: set[str] = { + "versionMinor", + "openTypeHeadLowestRecPPEM", + "openTypeOS2WinAscent", + "openTypeOS2WinDescent", +} +_ufo2To3NonNegativeIntOrFloat: set[str] = { + "unitsPerEm", +} +_ufo2To3FloatToInt: set[str] = { + "openTypeHeadLowestRecPPEM", + "openTypeHheaAscender", + "openTypeHheaDescender", + "openTypeHheaLineGap", + "openTypeHheaCaretOffset", + "openTypeOS2TypoAscender", + "openTypeOS2TypoDescender", + "openTypeOS2TypoLineGap", + "openTypeOS2WinAscent", + "openTypeOS2WinDescent", + "openTypeOS2SubscriptXSize", + "openTypeOS2SubscriptYSize", + "openTypeOS2SubscriptXOffset", + "openTypeOS2SubscriptYOffset", + "openTypeOS2SuperscriptXSize", + "openTypeOS2SuperscriptYSize", + "openTypeOS2SuperscriptXOffset", + "openTypeOS2SuperscriptYOffset", + "openTypeOS2StrikeoutSize", + "openTypeOS2StrikeoutPosition", + "openTypeVheaVertTypoAscender", + "openTypeVheaVertTypoDescender", + "openTypeVheaVertTypoLineGap", + "openTypeVheaCaretOffset", +} + + +def convertFontInfoValueForAttributeFromVersion2ToVersion3( + attr: str, value: Any +) -> tuple[str, Any]: + """ + Convert value from version 2 to version 3 format. + Returns the new attribute name and the converted value. + If the value is None, None will be returned for the new value. + """ + if attr in _ufo2To3FloatToInt: + try: + value = round(value) + except (ValueError, TypeError): + raise UFOLibError("Could not convert value for %s." % attr) + if attr in _ufo2To3NonNegativeInt: + try: + value = int(abs(value)) + except (ValueError, TypeError): + raise UFOLibError("Could not convert value for %s." % attr) + elif attr in _ufo2To3NonNegativeIntOrFloat: + try: + v = float(abs(value)) + except (ValueError, TypeError): + raise UFOLibError("Could not convert value for %s." % attr) + if v == int(v): + v = int(v) + if v != value: + value = v + return attr, value + + +def convertFontInfoValueForAttributeFromVersion3ToVersion2( + attr: str, value: Any +) -> tuple[str, Any]: + """ + Convert value from version 3 to version 2 format. + Returns the new attribute name and the converted value. + If the value is None, None will be returned for the new value. + """ + return attr, value + + +def _convertFontInfoDataVersion3ToVersion2(data: dict[str, Any]) -> dict[str, Any]: + converted = {} + for attr, value in list(data.items()): + newAttr, newValue = convertFontInfoValueForAttributeFromVersion3ToVersion2( + attr, value + ) + if newAttr not in fontInfoAttributesVersion2: + continue + converted[newAttr] = newValue + return converted + + +def _convertFontInfoDataVersion2ToVersion3(data: dict[str, Any]) -> dict[str, Any]: + converted = {} + for attr, value in list(data.items()): + attr, value = convertFontInfoValueForAttributeFromVersion2ToVersion3( + attr, value + ) + converted[attr] = value + return converted + + +if __name__ == "__main__": + import doctest + + doctest.testmod() diff --git a/shared/package-files/72/72224f155c0c71b2e24cbdbe6d21ec37ac43ee572e9b55e4ae9d735c5d0118eb/logaddexp.h b/shared/package-files/72/72224f155c0c71b2e24cbdbe6d21ec37ac43ee572e9b55e4ae9d735c5d0118eb/logaddexp.h new file mode 100644 index 0000000000000000000000000000000000000000..3f2b1cf24480a61080dcad5013439addd28b8eed --- /dev/null +++ b/shared/package-files/72/72224f155c0c71b2e24cbdbe6d21ec37ac43ee572e9b55e4ae9d735c5d0118eb/logaddexp.h @@ -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::logaddexp.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & logaddexp_out(at::Tensor & out, const at::Tensor & self, const at::Tensor & other) { + return at::_ops::logaddexp_out::call(self, other, out); +} +// aten::logaddexp.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & logaddexp_outf(const at::Tensor & self, const at::Tensor & other, at::Tensor & out) { + return at::_ops::logaddexp_out::call(self, other, out); +} + +// aten::logaddexp(Tensor self, Tensor other) -> Tensor +inline at::Tensor logaddexp(const at::Tensor & self, const at::Tensor & other) { + return at::_ops::logaddexp::call(self, other); +} + +} diff --git a/shared/package-files/72/722257b27e6fd8ed486775449f9225a7cfb8d0d4d0a247eb38e8155cc16cbcba/matrix.pyi b/shared/package-files/72/722257b27e6fd8ed486775449f9225a7cfb8d0d4d0a247eb38e8155cc16cbcba/matrix.pyi new file mode 100644 index 0000000000000000000000000000000000000000..3fd1ddb94d253a53f786c2b54d40273dbcb42ee9 --- /dev/null +++ b/shared/package-files/72/722257b27e6fd8ed486775449f9225a7cfb8d0d4d0a247eb38e8155cc16cbcba/matrix.pyi @@ -0,0 +1,76 @@ +import sys +from typing import Any + +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 + +mat: np.matrix[Any, np.dtype[np.int64]] +ar_f8: npt.NDArray[np.float64] + +assert_type(mat * 5, np.matrix[Any, Any]) +assert_type(5 * mat, np.matrix[Any, Any]) +mat *= 5 + +assert_type(mat**5, np.matrix[Any, Any]) +mat **= 5 + +assert_type(mat.sum(), Any) +assert_type(mat.mean(), Any) +assert_type(mat.std(), Any) +assert_type(mat.var(), Any) +assert_type(mat.prod(), Any) +assert_type(mat.any(), np.bool_) +assert_type(mat.all(), np.bool_) +assert_type(mat.max(), np.int64) +assert_type(mat.min(), np.int64) +assert_type(mat.argmax(), np.intp) +assert_type(mat.argmin(), np.intp) +assert_type(mat.ptp(), np.int64) + +assert_type(mat.sum(axis=0), np.matrix[Any, Any]) +assert_type(mat.mean(axis=0), np.matrix[Any, Any]) +assert_type(mat.std(axis=0), np.matrix[Any, Any]) +assert_type(mat.var(axis=0), np.matrix[Any, Any]) +assert_type(mat.prod(axis=0), np.matrix[Any, Any]) +assert_type(mat.any(axis=0), np.matrix[Any, np.dtype[np.bool_]]) +assert_type(mat.all(axis=0), np.matrix[Any, np.dtype[np.bool_]]) +assert_type(mat.max(axis=0), np.matrix[Any, np.dtype[np.int64]]) +assert_type(mat.min(axis=0), np.matrix[Any, np.dtype[np.int64]]) +assert_type(mat.argmax(axis=0), np.matrix[Any, np.dtype[np.intp]]) +assert_type(mat.argmin(axis=0), np.matrix[Any, np.dtype[np.intp]]) +assert_type(mat.ptp(axis=0), np.matrix[Any, np.dtype[np.int64]]) + +assert_type(mat.sum(out=ar_f8), npt.NDArray[np.float64]) +assert_type(mat.mean(out=ar_f8), npt.NDArray[np.float64]) +assert_type(mat.std(out=ar_f8), npt.NDArray[np.float64]) +assert_type(mat.var(out=ar_f8), npt.NDArray[np.float64]) +assert_type(mat.prod(out=ar_f8), npt.NDArray[np.float64]) +assert_type(mat.any(out=ar_f8), npt.NDArray[np.float64]) +assert_type(mat.all(out=ar_f8), npt.NDArray[np.float64]) +assert_type(mat.max(out=ar_f8), npt.NDArray[np.float64]) +assert_type(mat.min(out=ar_f8), npt.NDArray[np.float64]) +assert_type(mat.argmax(out=ar_f8), npt.NDArray[np.float64]) +assert_type(mat.argmin(out=ar_f8), npt.NDArray[np.float64]) +assert_type(mat.ptp(out=ar_f8), npt.NDArray[np.float64]) + +assert_type(mat.T, np.matrix[Any, np.dtype[np.int64]]) +assert_type(mat.I, np.matrix[Any, Any]) +assert_type(mat.A, npt.NDArray[np.int64]) +assert_type(mat.A1, npt.NDArray[np.int64]) +assert_type(mat.H, np.matrix[Any, np.dtype[np.int64]]) +assert_type(mat.getT(), np.matrix[Any, np.dtype[np.int64]]) +assert_type(mat.getI(), np.matrix[Any, Any]) +assert_type(mat.getA(), npt.NDArray[np.int64]) +assert_type(mat.getA1(), npt.NDArray[np.int64]) +assert_type(mat.getH(), np.matrix[Any, np.dtype[np.int64]]) + +assert_type(np.bmat(ar_f8), np.matrix[Any, Any]) +assert_type(np.bmat([[0, 1, 2]]), np.matrix[Any, Any]) +assert_type(np.bmat("mat"), np.matrix[Any, Any]) + +assert_type(np.asmatrix(ar_f8, dtype=np.int64), np.matrix[Any, Any]) diff --git a/shared/package-files/72/722895ed073a10cf6114df0e45fb1b570f244af8d3c65dc96152eaa10280968a/cpp_prefix.h b/shared/package-files/72/722895ed073a10cf6114df0e45fb1b570f244af8d3c65dc96152eaa10280968a/cpp_prefix.h new file mode 100644 index 0000000000000000000000000000000000000000..d7773672c06c23bcdfbbf669e3fa6d6d976059b3 --- /dev/null +++ b/shared/package-files/72/722895ed073a10cf6114df0e45fb1b570f244af8d3c65dc96152eaa10280968a/cpp_prefix.h @@ -0,0 +1,595 @@ +#pragma once + +#include +#include +#include +#include +#include +#include + +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +#if defined(CPU_CAPABILITY_AVX512) || defined(CPU_CAPABILITY_AVX2) || defined(CPU_CAPABILITY_ZVECTOR) +#define INDUCTOR_USE_VECTOR_TYPES() 1 +#else +#define INDUCTOR_USE_VECTOR_TYPES() 0 +#endif + +#if INDUCTOR_USE_VECTOR_TYPES() +#include +#include +#include +#endif + +typedef at::Half half; +typedef at::BFloat16 bfloat16; + +typedef at::Float8_e4m3fn float8_e4m3fn; +typedef at::Float8_e5m2 float8_e5m2; + +template +struct Welford { + T mean = T(0); + T m2 = T(0); + T weight = T(0); +}; + + +template +struct IsVecType: std::false_type {}; + +#if INDUCTOR_USE_VECTOR_TYPES() +template +struct IsVecType>: std::true_type {}; +#endif + +template +Welford welford_combine(const Welford &a, const Welford &b) { + if constexpr (!IsVecType::value) { + if (a.weight == 0) { + return b; + } + if (b.weight == 0) { + return a; + } + } + auto delta = b.mean - a.mean; + auto new_weight = a.weight + b.weight; + auto wb_over_w = b.weight / new_weight; + if constexpr (IsVecType::value) { + // Guard against division by zero + wb_over_w = T::blendv(wb_over_w, T(0), new_weight == T(0)); + } + auto result = Welford{ + a.mean + delta * wb_over_w, + a.m2 + b.m2 + delta * delta * a.weight * wb_over_w, + new_weight + }; + return result; +} + +template +Welford welford_combine(const Welford &acc, T data) { + // Add a single data point + auto delta = data - acc.mean; + auto new_weight = acc.weight + T(1); + auto new_mean = acc.mean + delta / new_weight; + auto new_delta = data - new_mean; + auto result = Welford{ + new_mean, + acc.m2 + delta * new_delta, + new_weight + }; + return result; +} + +// Refer to https://github.com/pytorch/pytorch/blob/b5b36cf0c4e1958f1ff25120f5d4beeef3288187/ +// aten/src/ATen/native/SharedReduceOps.h#L419-L445 +template +inline bool greater_or_nan(scalar_t a, scalar_t b, int64_t idx_a, int64_t idx_b) { + // If (a == b), then choose the one with lower idx, else max(a, b) + if (at::_isnan(a)) { + if (at::_isnan(b)) { + return idx_a < idx_b; + } + return true; + } + return (a == b) ? idx_a < idx_b : (a > b); +} + +template +inline bool less_or_nan(scalar_t a, scalar_t b, int64_t idx_a, int64_t idx_b) { + // If (a == b), then choose the one with lower idx, else min(a, b) + if (at::_isnan(a)) { + if (at::_isnan(b)) { + return idx_a < idx_b; + } + return true; + } + return (a == b) ? idx_a < idx_b : (a < b); +} + +#if INDUCTOR_USE_VECTOR_TYPES() +template +inline at::vec::Vectorized vec_shuffle_down(at::vec::Vectorized x, size_t n) { + using Vec = at::vec::Vectorized; + alignas(alignof(Vec)) scalar_t array[Vec::size()]; + x.store(array); + for (size_t i = 0; i + n < Vec::size(); i += 2 * n) { + array[i] = array[i + n]; + } + return Vec::loadu(array); +} + +#ifdef CPU_CAPABILITY_AVX2 +inline at::vec::Vectorized vec_shuffle_down(at::vec::Vectorized x, size_t n) { + using vec_t = at::vec::Vectorized; +#define SHUFFLE_MASK(z, y, x, w) ((z << 6) | (y << 4) | (x << 2) | w) + switch (n) { + case 1: + return vec_t(_mm256_permute_ps(x, SHUFFLE_MASK(1, 1, 3, 3))); + case 2: + return vec_t(_mm256_permute_ps(x, SHUFFLE_MASK(2, 2, 2, 2))); + case 4: + return vec_t(_mm256_permute2f128_ps(x, x, SHUFFLE_MASK(1, 1, 1, 1))); + } + TORCH_CHECK(false, "Unhandled vec_shuffle_down value ", n); +} +#endif + +template +Welford welford_vec_reduce_all(Welford> acc) { + using Vec = at::vec::Vectorized; + for (size_t n = 1; n < Vec::size(); n *= 2) { + auto shuffled = Welford{ + vec_shuffle_down(acc.mean, n), + vec_shuffle_down(acc.m2, n), + vec_shuffle_down(acc.weight, n) + }; + acc = welford_combine(acc, shuffled); + } + + Welford result; + alignas(alignof(Vec)) scalar_t array[Vec::size()]; + acc.mean.store(array); + result.mean = array[0]; + + acc.m2.store(array); + result.m2 = array[0]; + + acc.weight.store(array); + result.weight = array[0]; + + return result; +} +#endif + + +template inline typename std::common_type::type mod(T a, U b) { return a % b; } +template <> inline float mod(float a, float b) { return std::fmod(a, b); } +template <> inline double mod(double a, double b) { return std::fmod(a, b); } + +template +inline scalar_t max_propagate_nan(scalar_t a, scalar_t b) { + if (at::_isnan(a)) { + return a; + } + return a > b ? a : b; +} + +template +inline scalar_t min_propagate_nan(scalar_t a, scalar_t b) { + if (at::_isnan(a)) { + return a; + } + return a < b ? a : b; +} + +constexpr float uint32_to_uniform_float(uint32_t value) { + // maximum value such that `MAX_INT * scale < 1.0` (with float rounding) + constexpr float scale = 4.6566127342e-10; + return static_cast(value & 0x7FFFFFFF) * scale; +} + +float normalized_rand_cpu(uint32_t seed, uint32_t offset) { + return uint32_to_uniform_float(at::Philox4_32(seed, 0, offset)()); +} + +float randn_cpu(uint32_t seed, uint32_t offset) { + at::Philox4_32 engine(seed, 0, offset); + return engine.randn(10); +} + +int64_t randint64_cpu(uint32_t seed, uint32_t offset, int64_t low, int64_t high) { + auto gen = at::Philox4_32(seed, 0, offset); + uint64_t r0 = gen(); + uint64_t r1 = gen(); + uint64_t result = r0 | (r1 << 32); + return static_cast(result % (high - low)) + low; +} + +template struct AsIntegerType { typedef T type; }; +template <> struct AsIntegerType { typedef uint32_t type; }; +template <> struct AsIntegerType { typedef uint64_t type; }; +template <> struct AsIntegerType { typedef uint16_t type; }; + +template +typename std::enable_if::value, T>::type +inline fetch_value(volatile T *addr) { + return *addr; +} + +template +typename std::enable_if::value, T>::type +inline fetch_value(volatile T *addr) { + return T(addr->x, T::from_bits()); +} + +template +typename std::enable_if::value>::type +atomic_add(volatile T *addr, T offset) { + typedef typename AsIntegerType::type alt_type; + + static_assert(sizeof(std::atomic) == sizeof(T), + "std::atomic issue"); + + alt_type expected; + + alt_type desired; + + std::atomic *atomic_addr = (std::atomic *)addr; + do { + T val = fetch_value(addr); + reinterpret_cast(&expected)[0] = val; + reinterpret_cast(&desired)[0] = val + offset; + } while (!atomic_addr->compare_exchange_weak(expected, desired, + std::memory_order_relaxed)); +} + +// Since C++20 float is supported by fetch_add, but the performance may not +// better than compare_exchange_weak, which can be checked by microbenchmark +// inductor_cpu_atomic.py +template +typename std::enable_if::value>::type +atomic_add(volatile T *addr, T offset) { + static_assert(sizeof(std::atomic) == sizeof(T), + "std::atomic issue"); + std::atomic *atomic_addr = (std::atomic *)addr; + atomic_addr->fetch_add(offset, std::memory_order_relaxed); +} + +// This function is used to convert bool or uint8 to float mask for +// vectorization. The caller needs to make sure the src represents TRUE/FALSE +// correctly. +template +inline float flag_to_float_scalar(T src) { + float ret; + *(uint32_t*)(&ret) = src ? 0xFFFFFFFF : 0; + return ret; +} + +#if defined(CPU_CAPABILITY_AVX512) || defined(CPU_CAPABILITY_AVX2) || defined(CPU_CAPABILITY_ZVECTOR) + +inline at::vec::Vectorized masked_load(const float* src, at::vec::Vectorized mask) { +# if defined(CPU_CAPABILITY_AVX512) + at::vec::Vectorized zero_vec(0); + auto all_ones = _mm512_set1_epi32(0xFFFFFFFF); + auto mmask = _mm512_cmp_epi32_mask(_mm512_castps_si512(mask), all_ones, _MM_CMPINT_EQ); + return _mm512_mask_loadu_ps(zero_vec, mmask, src); +# elif defined(CPU_CAPABILITY_AVX2) + auto all_ones = _mm256_set1_epi32(0xFFFFFFFF); + auto mmask = _mm256_cmpeq_epi32(_mm256_castps_si256(mask), all_ones); + return _mm256_maskload_ps(src, mmask); +# elif defined(CPU_CAPABILITY_ZVECTOR) + auto result = at::vec::Vectorized::loadu(src); + return (result & mask); +# else +# error Unsupported vectorization CPU capability +# endif +} + +template +typename std::enable_if::value || std::is_same::value, at::vec::Vectorized>::type +inline masked_load(const T* src, at::vec::Vectorized mask) { +# if defined(CPU_CAPABILITY_AVX512) + auto all_ones = _mm512_set1_epi32(0xFFFFFFFF); + auto mmask = _mm512_cmp_epi32_mask(_mm512_castps_si512(mask), all_ones, _MM_CMPINT_EQ); + auto zero = _mm256_set1_epi16(0); + auto temp = _mm256_mask_loadu_epi16(zero, mmask, src); + return _mm512_inserti32x8(_mm512_castsi256_si512(temp), zero, 1); +# elif defined(CPU_CAPABILITY_AVX2) + auto all_ones = _mm256_set1_epi32(0xFFFFFFFF); + auto mmask_vec = _mm256_cmpeq_epi32(_mm256_castps_si256(mask), all_ones); + __at_align__ uint32_t mmask[8]; + _mm256_storeu_si256(reinterpret_cast<__m256i*>(mmask), mmask_vec); + __at_align__ uint16_t result[16]; + for (auto i = 0; i < 8; i++) { + result[i] = mmask[i] == 0xFFFFFFFF ? src[i].x: uint16_t(0); + } + return at::vec::Vectorized::loadu(result); +# elif defined(CPU_CAPABILITY_ZVECTOR) + auto result = at::vec::Vectorized::loadu(src, 8); + uint32_t maskdata[8] = { 0 }; + uint16_t maskdata_dest[16] = { 0 }; + mask.store(maskdata); + for (auto i = 0; i < 8; i++) { + maskdata_dest[i] = (maskdata[i] == 0xFFFFFFFF) ? 0xFFFF: 0; + } + auto maskvector = at::vec::Vectorized::loadu(maskdata_dest); + return (result & maskvector); +# else +# error Unsupported vectorization CPU capability +# endif +} + +template +typename std::enable_if::value || std::is_same::value, at::vec::Vectorized>::type +inline masked_load(const T* src, at::vec::Vectorized mask) { +# if defined(CPU_CAPABILITY_AVX512) + auto all_ones = _mm512_set1_epi32(0xFFFFFFFF); + auto mmask = _mm512_cmp_epi32_mask(_mm512_castps_si512(mask), all_ones, _MM_CMPINT_EQ); + auto zero = _mm_set1_epi8(0); + auto temp = _mm_mask_loadu_epi8(zero, mmask, src); + return _mm512_inserti64x2(_mm512_set1_epi32(0), temp, 0); +# elif defined(CPU_CAPABILITY_AVX2) + auto all_ones = _mm256_set1_epi32(0xFFFFFFFF); + auto mmask_vec = _mm256_cmpeq_epi32(_mm256_castps_si256(mask), all_ones); + __at_align__ uint32_t mmask[8]; + _mm256_storeu_si256(reinterpret_cast<__m256i*>(mmask), mmask_vec); + __at_align__ T result[32]; + for (auto i = 0; i < 8; i++) { + result[i] = mmask[i] == 0xFFFFFFFF ? src[i]: T(0); + } + return at::vec::Vectorized::loadu(result); +# elif defined(CPU_CAPABILITY_ZVECTOR) + auto result = at::vec::Vectorized::loadu(src, 8); + uint32_t maskdata[8]; + T maskdata_dest[32] = { 0 }; + mask.store(maskdata); + for (auto i = 0; i < 8; i++) { + maskdata_dest[i] = (maskdata[i] == 0xFFFFFFFF) ? 0xFF: 0; + } + auto maskvector = at::vec::Vectorized::loadu(maskdata_dest); + return (result & maskvector); +# else +# error Unsupported vectorization CPU capability +# endif +} + +template +inline at::vec::Vectorized flag_to_float_vec(const T* src) { + __at_align__ float dst_tmp[at::vec::Vectorized::size()]; + #pragma unroll + for (int64_t i = 0; i < at::vec::Vectorized::size(); i++) { + dst_tmp[i] = flag_to_float_scalar(src[i]); + } + return at::vec::Vectorized::loadu(dst_tmp); +} + +template +inline at::vec::Vectorized cvt_lowp_fp_to_fp32( + at::vec::Vectorized src) { + at::vec::Vectorized res_vec1(0); + at::vec::Vectorized res_vec2(0); + std::tie(res_vec1, res_vec2) = at::vec::convert_to_float(src); + return res_vec1; +} + +template +inline at::vec::Vectorized cvt_fp32_to_lowp_fp( + at::vec::Vectorized src) { + return at::vec::convert_from_float(src, src); +} + +inline at::vec::Vectorized mask_convert_to_float(at::vec::Vectorized src) { + auto zeros = at::vec::Vectorized(0); + auto ones = at::vec::Vectorized(1); + return at::vec::Vectorized::blendv(zeros, ones, src); +} + +template +inline +typename std::enable_if::value || std::is_same::value, at::vec::Vectorized>::type +mask_convert_to_lowp(at::vec::Vectorized src) { + auto fp_vec = mask_convert_to_float(src); + return cvt_fp32_to_lowp_fp(fp_vec); +} + +template +inline at::vec::Vectorized vec_convert_to_mask(at::vec::Vectorized src) { + assert( + at::vec::Vectorized::size() == at::vec::Vectorized::size()); + at::vec::Vectorized res_vec(0); + __at_align__ float dst_tmp[at::vec::Vectorized::size()]; + __at_align__ SRC src_tmp[at::vec::Vectorized::size()]; + src.store(src_tmp); + +#pragma unroll + for (int i = 0; i < at::vec::Vectorized::size(); i++) { + *(uint32_t*)(dst_tmp + i) = src_tmp[i] ? 0xFFFFFFFF : 0; + } + + return res_vec.loadu(dst_tmp); +} + +template +inline at::vec::Vectorized to_float_mask(at::vec::Vectorized src) { + return vec_convert_to_mask(src); +} + +#if defined(CPU_CAPABILITY_AVX512) || defined(CPU_CAPABILITY_AVX2) +template <> +inline at::vec::Vectorized to_float_mask(at::vec::Vectorized src) { +#if defined(CPU_CAPABILITY_AVX2) + return at::vec::Vectorized(_mm256_castsi256_ps(src)); +#else + return at::vec::Vectorized(_mm512_castsi512_ps(src)); +#endif +} +#endif + +template <> +inline at::vec::Vectorized to_float_mask(at::vec::Vectorized src) { + return src; +} + +inline at::vec::Vectorized to_float_mask(int src) { + union { + float fmask; + uint32_t imask; + } mask; + mask.imask = src ? 0xFFFFFFFF : 0; + return at::vec::Vectorized(mask.fmask); +} + +inline bool all_zero(at::vec::Vectorized src) { +# if defined(CPU_CAPABILITY_AVX512) + auto src_int = _mm512_castps_si512(src); + __mmask16 mask = _mm512_test_epi32_mask(src_int, src_int); + return mask == 0; +# elif defined(CPU_CAPABILITY_AVX2) + return _mm256_testz_ps(src, src); +# else + __at_align__ int mask[at::vec::Vectorized::size()]; + src.store(mask); + for (int i = 0; i < at::vec::Vectorized::size(); i++) { + if (mask[i] != 0) { + return false; + } + } + return true; +# endif +} + +inline bool vector_lane_mask_check(at::vec::Vectorized src, int lane) { +# if defined(CPU_CAPABILITY_AVX512) + return _mm512_movepi32_mask(_mm512_castps_si512(src)) & (1 << lane); +# elif defined(CPU_CAPABILITY_AVX2) + return _mm256_movemask_ps(src) & (1 << lane); +# else + __at_align__ int mask[at::vec::Vectorized::size()]; + src.store(mask); + return mask[lane] != 0; +# endif +} + +inline at::vec::Vectorized cvt_int64_to_fp32(at::vec::VectorizedN src) { +# if defined(CPU_CAPABILITY_AVX512) + auto low = _mm512_cvtepi64_ps(src[0]); + auto high = _mm512_cvtepi64_ps(src[1]); + return _mm512_insertf32x8(_mm512_castps256_ps512(low), high, 1); +# elif defined(CPU_CAPABILITY_AVX2) + auto low_double = at::vec::convert_to_fp_of_same_size(src[0]); + auto low = _mm256_cvtpd_ps(low_double); + auto high_double = at::vec::convert_to_fp_of_same_size(src[1]); + auto high = _mm256_cvtpd_ps(high_double); + return _mm256_insertf128_ps(_mm256_castps128_ps256(low), high, 1); +# else + constexpr int float_vec_size = at::vec::Vectorized::size(); + constexpr int int64_vec_size = at::vec::Vectorized::size(); + __at_align__ float result[float_vec_size]; + __at_align__ int64_t src_buf[int64_vec_size]; + for (int i = 0; i < 2; i++) { + src[i].store(src_buf + i * int64_vec_size); + for (int j = 0; j < int64_vec_size; j++) { + result[i * int64_vec_size + j] = static_cast(src_buf[i * int64_vec_size + j]); + } + } + return at::vec::Vectorized::loadu(result); +# endif +} + +inline at::vec::VectorizedN cvt_fp32_to_int64(at::vec::Vectorized src) { + at::vec::VectorizedN result; +# if defined(CPU_CAPABILITY_AVX512) + result[0] = _mm512_cvt_roundps_epi64(_mm512_castps512_ps256(src), _MM_FROUND_TO_ZERO |_MM_FROUND_NO_EXC); + result[1] = _mm512_cvt_roundps_epi64(_mm512_extractf32x8_ps(src, 1), _MM_FROUND_TO_ZERO |_MM_FROUND_NO_EXC); +# elif defined(CPU_CAPABILITY_AVX2) + auto int32_vec = at::vec::convert_to_int_of_same_size(src); + result[0] = _mm256_cvtepi32_epi64(_mm256_castsi256_si128(int32_vec)); + result[1] = _mm256_cvtepi32_epi64(_mm256_extracti128_si256(int32_vec, 1)); +# else + constexpr int float_vec_size = at::vec::Vectorized::size(); + constexpr int int64_vec_size = at::vec::Vectorized::size(); + __at_align__ float src_buf[float_vec_size]; + __at_align__ int64_t result_buf[int64_vec_size]; + src.store(src_buf); + for (int i = 0; i < 2; i++) { + for (int j = 0; j < int64_vec_size; j++) { + result_buf[j] = static_cast(src_buf[i * int64_vec_size + j]); + } + result[i] = at::vec::Vectorized::loadu(result_buf); + } +# endif + return result; +} + +inline at::vec::Vectorized cvt_int64_to_int32(at::vec::VectorizedN src) { +# if defined(CPU_CAPABILITY_AVX512) + auto low = _mm512_cvtepi64_epi32(src[0]); + auto high = _mm512_cvtepi64_epi32(src[1]); + return _mm512_inserti32x8(_mm512_castsi256_si512(low), high, 1); +# elif defined(CPU_CAPABILITY_AVX2) + auto low = _mm256_shuffle_epi32(src[0], _MM_SHUFFLE(2, 0, 2, 0)); + auto high = _mm256_shuffle_epi32(src[1], _MM_SHUFFLE(2, 0, 2, 0)); + auto low_perm = _mm256_permute4x64_epi64(low, _MM_SHUFFLE(3, 1, 2, 0)); + auto high_perm = _mm256_permute4x64_epi64(high, _MM_SHUFFLE(3, 1, 2, 0)); + return _mm256_blend_epi32(low_perm, high_perm, 0xF0); +# else + constexpr int int32_vec_size = at::vec::Vectorized::size(); + constexpr int int64_vec_size = at::vec::Vectorized::size(); + __at_align__ int32_t result[int32_vec_size]; + __at_align__ int64_t src_buf[int64_vec_size]; + for (int i = 0; i < 2; i++) { + src[i].store(src_buf + i * int64_vec_size); + for (int j = 0; j < int64_vec_size; j++) { + result[i * int64_vec_size + j] = static_cast(src_buf[i * int64_vec_size + j]); + } + } + return at::vec::Vectorized::loadu(result); +# endif +} + +inline at::vec::VectorizedN cvt_int32_to_int64(at::vec::Vectorized src) { + at::vec::VectorizedN result; +# if defined(CPU_CAPABILITY_AVX512) + result[0] = _mm512_cvtepi32_epi64(_mm512_castsi512_si256(src)); + result[1] = _mm512_cvtepi32_epi64(_mm512_extracti32x8_epi32(src, 1)); +# elif defined(CPU_CAPABILITY_AVX2) + result[0] = _mm256_cvtepi32_epi64(_mm256_castsi256_si128(src)); + result[1] = _mm256_cvtepi32_epi64(_mm256_extracti128_si256(src, 1)); +#else + constexpr int int32_vec_size = at::vec::Vectorized::size(); + constexpr int int64_vec_size = at::vec::Vectorized::size(); + __at_align__ int32_t src_buf[int32_vec_size]; + __at_align__ int64_t result_buf[int64_vec_size]; + src.store(src_buf); + for (int i = 0; i < 2; i++) { + for (int j = 0; j < int64_vec_size; j++) { + result_buf[j] = static_cast(src_buf[i * int64_vec_size + j]); + } + result[i] = at::vec::Vectorized::loadu(result_buf); + } +# endif + return result; +} + +inline at::vec::VectorizedN mask_convert_to_int64(at::vec::Vectorized src) { + return cvt_fp32_to_int64(mask_convert_to_float(src)); +} + +inline at::vec::Vectorized to_float_mask(at::vec::VectorizedN src) { + return to_float_mask(cvt_int64_to_int32(src)); +} + +#endif diff --git a/shared/package-files/72/7231d0d09e85f003eb2e6db764216bd12eddb5098bab0abdbf13282399729faf/test_array_attr.py b/shared/package-files/72/7231d0d09e85f003eb2e6db764216bd12eddb5098bab0abdbf13282399729faf/test_array_attr.py new file mode 100644 index 0000000000000000000000000000000000000000..32f75c855cc5657ad81a15e805503e6ace650c45 --- /dev/null +++ b/shared/package-files/72/7231d0d09e85f003eb2e6db764216bd12eddb5098bab0abdbf13282399729faf/test_array_attr.py @@ -0,0 +1,145 @@ +import numpy as np +from numba import cuda +from numba.cuda.testing import unittest, CUDATestCase, skip_on_cudasim + + +class TestArrayAttr(CUDATestCase): + + def test_contigous_2d(self): + ary = np.arange(10) + cary = ary.reshape(2, 5) + fary = np.asfortranarray(cary) + + dcary = cuda.to_device(cary) + dfary = cuda.to_device(fary) + self.assertTrue(dcary.is_c_contiguous()) + self.assertTrue(not dfary.is_c_contiguous()) + self.assertTrue(not dcary.is_f_contiguous()) + self.assertTrue(dfary.is_f_contiguous()) + + def test_contigous_3d(self): + ary = np.arange(20) + cary = ary.reshape(2, 5, 2) + fary = np.asfortranarray(cary) + + dcary = cuda.to_device(cary) + dfary = cuda.to_device(fary) + self.assertTrue(dcary.is_c_contiguous()) + self.assertTrue(not dfary.is_c_contiguous()) + self.assertTrue(not dcary.is_f_contiguous()) + self.assertTrue(dfary.is_f_contiguous()) + + def test_contigous_4d(self): + ary = np.arange(60) + cary = ary.reshape(2, 5, 2, 3) + fary = np.asfortranarray(cary) + + dcary = cuda.to_device(cary) + dfary = cuda.to_device(fary) + self.assertTrue(dcary.is_c_contiguous()) + self.assertTrue(not dfary.is_c_contiguous()) + self.assertTrue(not dcary.is_f_contiguous()) + self.assertTrue(dfary.is_f_contiguous()) + + def test_ravel_1d(self): + ary = np.arange(60) + dary = cuda.to_device(ary) + for order in 'CFA': + expect = ary.ravel(order=order) + dflat = dary.ravel(order=order) + flat = dflat.copy_to_host() + self.assertTrue(dary is not dflat) # ravel returns new array + self.assertEqual(flat.ndim, 1) + self.assertPreciseEqual(expect, flat) + + @skip_on_cudasim('CUDA Array Interface is not supported in the simulator') + def test_ravel_stride_1d(self): + ary = np.arange(60) + dary = cuda.to_device(ary) + # No-copy stride device array + darystride = dary[::2] + dary_data = dary.__cuda_array_interface__['data'][0] + ddarystride_data = darystride.__cuda_array_interface__['data'][0] + self.assertEqual(dary_data, ddarystride_data) + # Fail on ravel on non-contiguous array + with self.assertRaises(NotImplementedError): + darystride.ravel() + + def test_ravel_c(self): + ary = np.arange(60) + reshaped = ary.reshape(2, 5, 2, 3) + + expect = reshaped.ravel(order='C') + dary = cuda.to_device(reshaped) + dflat = dary.ravel() + flat = dflat.copy_to_host() + self.assertTrue(dary is not dflat) + self.assertEqual(flat.ndim, 1) + self.assertPreciseEqual(expect, flat) + + # explicit order kwarg + for order in 'CA': + expect = reshaped.ravel(order=order) + dary = cuda.to_device(reshaped) + dflat = dary.ravel(order=order) + flat = dflat.copy_to_host() + self.assertTrue(dary is not dflat) + self.assertEqual(flat.ndim, 1) + self.assertPreciseEqual(expect, flat) + + @skip_on_cudasim('CUDA Array Interface is not supported in the simulator') + def test_ravel_stride_c(self): + ary = np.arange(60) + reshaped = ary.reshape(2, 5, 2, 3) + + dary = cuda.to_device(reshaped) + darystride = dary[::2, ::2, ::2, ::2] + dary_data = dary.__cuda_array_interface__['data'][0] + ddarystride_data = darystride.__cuda_array_interface__['data'][0] + self.assertEqual(dary_data, ddarystride_data) + with self.assertRaises(NotImplementedError): + darystride.ravel() + + def test_ravel_f(self): + ary = np.arange(60) + reshaped = np.asfortranarray(ary.reshape(2, 5, 2, 3)) + for order in 'FA': + expect = reshaped.ravel(order=order) + dary = cuda.to_device(reshaped) + dflat = dary.ravel(order=order) + flat = dflat.copy_to_host() + self.assertTrue(dary is not dflat) + self.assertEqual(flat.ndim, 1) + self.assertPreciseEqual(expect, flat) + + @skip_on_cudasim('CUDA Array Interface is not supported in the simulator') + def test_ravel_stride_f(self): + ary = np.arange(60) + reshaped = np.asfortranarray(ary.reshape(2, 5, 2, 3)) + dary = cuda.to_device(reshaped) + darystride = dary[::2, ::2, ::2, ::2] + dary_data = dary.__cuda_array_interface__['data'][0] + ddarystride_data = darystride.__cuda_array_interface__['data'][0] + self.assertEqual(dary_data, ddarystride_data) + with self.assertRaises(NotImplementedError): + darystride.ravel() + + def test_reshape_c(self): + ary = np.arange(10) + expect = ary.reshape(2, 5) + dary = cuda.to_device(ary) + dary_reshaped = dary.reshape(2, 5) + got = dary_reshaped.copy_to_host() + self.assertPreciseEqual(expect, got) + + def test_reshape_f(self): + ary = np.arange(10) + expect = ary.reshape(2, 5, order='F') + dary = cuda.to_device(ary) + dary_reshaped = dary.reshape(2, 5, order='F') + got = dary_reshaped.copy_to_host() + self.assertPreciseEqual(expect, got) + + +if __name__ == '__main__': + unittest.main() diff --git a/shared/package-files/72/723a040ce641cef82fe060d836114f47a44cb88f989c0ede02745f273f7757b8/col2im_cuda_dispatch.h b/shared/package-files/72/723a040ce641cef82fe060d836114f47a44cb88f989c0ede02745f273f7757b8/col2im_cuda_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..072785412e57ce5e9cf8ffbbd686e194ca441004 --- /dev/null +++ b/shared/package-files/72/723a040ce641cef82fe060d836114f47a44cb88f989c0ede02745f273f7757b8/col2im_cuda_dispatch.h @@ -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 col2im(const at::Tensor & self, at::IntArrayRef output_size, at::IntArrayRef kernel_size, at::IntArrayRef dilation, at::IntArrayRef padding, at::IntArrayRef stride); +TORCH_API at::Tensor col2im_symint(const at::Tensor & self, c10::SymIntArrayRef output_size, at::IntArrayRef kernel_size, at::IntArrayRef dilation, at::IntArrayRef padding, at::IntArrayRef stride); +TORCH_API at::Tensor & col2im_out(at::Tensor & out, const at::Tensor & self, at::IntArrayRef output_size, at::IntArrayRef kernel_size, at::IntArrayRef dilation, at::IntArrayRef padding, at::IntArrayRef stride); +TORCH_API at::Tensor & col2im_outf(const at::Tensor & self, at::IntArrayRef output_size, at::IntArrayRef kernel_size, at::IntArrayRef dilation, at::IntArrayRef padding, at::IntArrayRef stride, at::Tensor & out); +TORCH_API at::Tensor & col2im_symint_out(at::Tensor & out, const at::Tensor & self, c10::SymIntArrayRef output_size, at::IntArrayRef kernel_size, at::IntArrayRef dilation, at::IntArrayRef padding, at::IntArrayRef stride); +TORCH_API at::Tensor & col2im_symint_outf(const at::Tensor & self, c10::SymIntArrayRef output_size, at::IntArrayRef kernel_size, at::IntArrayRef dilation, at::IntArrayRef padding, at::IntArrayRef stride, at::Tensor & out); + +} // namespace cuda +} // namespace at diff --git a/shared/package-files/72/723b67cff8591719bf7568c0323af58aaaa4d5e81723661bf01774c42f267791/converter.h b/shared/package-files/72/723b67cff8591719bf7568c0323af58aaaa4d5e81723661bf01774c42f267791/converter.h new file mode 100644 index 0000000000000000000000000000000000000000..639f692f26a1ba3a134caac68a432ac22f068917 --- /dev/null +++ b/shared/package-files/72/723b67cff8591719bf7568c0323af58aaaa4d5e81723661bf01774c42f267791/converter.h @@ -0,0 +1,82 @@ +// 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/csv/options.h" +#include "arrow/result.h" +#include "arrow/type_fwd.h" +#include "arrow/util/macros.h" +#include "arrow/util/visibility.h" + +namespace arrow { +namespace csv { + +class BlockParser; + +class ARROW_EXPORT Converter { + public: + Converter(const std::shared_ptr& type, const ConvertOptions& options, + MemoryPool* pool); + virtual ~Converter() = default; + + virtual Result> Convert(const BlockParser& parser, + int32_t col_index) = 0; + + std::shared_ptr type() const { return type_; } + + // Create a Converter for the given data type + static Result> Make( + const std::shared_ptr& type, const ConvertOptions& options, + MemoryPool* pool = default_memory_pool()); + + protected: + ARROW_DISALLOW_COPY_AND_ASSIGN(Converter); + + virtual Status Initialize() = 0; + + // CAUTION: ConvertOptions can grow large (if it customizes hundreds or + // thousands of columns), so avoid copying it in each Converter. + const ConvertOptions& options_; + MemoryPool* pool_; + std::shared_ptr type_; +}; + +class ARROW_EXPORT DictionaryConverter : public Converter { + public: + DictionaryConverter(const std::shared_ptr& value_type, + const ConvertOptions& options, MemoryPool* pool); + + // If the dictionary length goes above this value, conversion will fail + // with Status::IndexError. + virtual void SetMaxCardinality(int32_t max_length) = 0; + + // Create a Converter for the given dictionary value type. + // The dictionary index type will always be Int32. + static Result> Make( + const std::shared_ptr& value_type, const ConvertOptions& options, + MemoryPool* pool = default_memory_pool()); + + protected: + std::shared_ptr value_type_; +}; + +} // namespace csv +} // namespace arrow diff --git a/shared/package-files/72/7245872b040588031670369849aff6eaf8bf188b2fb37dbfd0eeb6239946b2bf/test_anticommutator.py b/shared/package-files/72/7245872b040588031670369849aff6eaf8bf188b2fb37dbfd0eeb6239946b2bf/test_anticommutator.py new file mode 100644 index 0000000000000000000000000000000000000000..0e6b6cbc50651742fcbbbe6adce3f20dfadc2ec5 --- /dev/null +++ b/shared/package-files/72/7245872b040588031670369849aff6eaf8bf188b2fb37dbfd0eeb6239946b2bf/test_anticommutator.py @@ -0,0 +1,56 @@ +from sympy.core.numbers import Integer +from sympy.core.symbol import symbols + +from sympy.physics.quantum.dagger import Dagger +from sympy.physics.quantum.anticommutator import AntiCommutator as AComm +from sympy.physics.quantum.operator import Operator + + +a, b, c = symbols('a,b,c') +A, B, C, D = symbols('A,B,C,D', commutative=False) + + +def test_anticommutator(): + ac = AComm(A, B) + assert isinstance(ac, AComm) + assert ac.is_commutative is False + assert ac.subs(A, C) == AComm(C, B) + + +def test_commutator_identities(): + assert AComm(a*A, b*B) == a*b*AComm(A, B) + assert AComm(A, A) == 2*A**2 + assert AComm(A, B) == AComm(B, A) + assert AComm(a, b) == 2*a*b + assert AComm(A, B).doit() == A*B + B*A + + +def test_anticommutator_dagger(): + assert Dagger(AComm(A, B)) == AComm(Dagger(A), Dagger(B)) + + +class Foo(Operator): + + def _eval_anticommutator_Bar(self, bar): + return Integer(0) + + +class Bar(Operator): + pass + + +class Tam(Operator): + + def _eval_anticommutator_Foo(self, foo): + return Integer(1) + + +def test_eval_commutator(): + F = Foo('F') + B = Bar('B') + T = Tam('T') + assert AComm(F, B).doit() == 0 + assert AComm(B, F).doit() == 0 + assert AComm(F, T).doit() == 1 + assert AComm(T, F).doit() == 1 + assert AComm(B, T).doit() == B*T + T*B diff --git a/shared/package-files/72/7247e073d649b66b7a10db39f54f725e276c80d5f1c5b9637d84f4f852be737e/_sparse_addmm.h b/shared/package-files/72/7247e073d649b66b7a10db39f54f725e276c80d5f1c5b9637d84f4f852be737e/_sparse_addmm.h new file mode 100644 index 0000000000000000000000000000000000000000..1cf6d860a3ae1a558bd0916e609636dd2b14a7a7 --- /dev/null +++ b/shared/package-files/72/7247e073d649b66b7a10db39f54f725e276c80d5f1c5b9637d84f4f852be737e/_sparse_addmm.h @@ -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::_sparse_addmm(Tensor self, Tensor mat1, Tensor mat2, *, Scalar beta=1, Scalar alpha=1) -> Tensor +inline at::Tensor _sparse_addmm(const at::Tensor & self, const at::Tensor & mat1, const at::Tensor & mat2, const at::Scalar & beta=1, const at::Scalar & alpha=1) { + return at::_ops::_sparse_addmm::call(self, mat1, mat2, beta, alpha); +} + +// aten::_sparse_addmm.out(Tensor self, Tensor mat1, Tensor mat2, *, Scalar beta=1, Scalar alpha=1, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & _sparse_addmm_out(at::Tensor & out, const at::Tensor & self, const at::Tensor & mat1, const at::Tensor & mat2, const at::Scalar & beta=1, const at::Scalar & alpha=1) { + return at::_ops::_sparse_addmm_out::call(self, mat1, mat2, beta, alpha, out); +} +// aten::_sparse_addmm.out(Tensor self, Tensor mat1, Tensor mat2, *, Scalar beta=1, Scalar alpha=1, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & _sparse_addmm_outf(const at::Tensor & self, const at::Tensor & mat1, const at::Tensor & mat2, const at::Scalar & beta, const at::Scalar & alpha, at::Tensor & out) { + return at::_ops::_sparse_addmm_out::call(self, mat1, mat2, beta, alpha, out); +} + +} diff --git a/shared/package-files/72/72489aefdf9f3f2a47c4f0553f0d82cfe756a52039c48b9e9f33b5dbf1f49f99/__init__.py b/shared/package-files/72/72489aefdf9f3f2a47c4f0553f0d82cfe756a52039c48b9e9f33b5dbf1f49f99/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..23f4072b50f77dfefbe88ca80e6f68c997bd593f --- /dev/null +++ b/shared/package-files/72/72489aefdf9f3f2a47c4f0553f0d82cfe756a52039c48b9e9f33b5dbf1f49f99/__init__.py @@ -0,0 +1,9 @@ +"""Regression models and results""" + +from statsmodels.tools._test_runner import PytestTester + +from .linear_model import yule_walker + +__all__ = ["test", "yule_walker"] + +test = PytestTester() diff --git a/shared/package-files/72/724e92f23ccc44a2babbf1223cf7fd2aa1ace92c1f5aec5bba2a9805dc134910/_ctc_loss_cuda_dispatch.h b/shared/package-files/72/724e92f23ccc44a2babbf1223cf7fd2aa1ace92c1f5aec5bba2a9805dc134910/_ctc_loss_cuda_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..d1ec555a6ab922737630fc9c9ee1aaf43758183b --- /dev/null +++ b/shared/package-files/72/724e92f23ccc44a2babbf1223cf7fd2aa1ace92c1f5aec5bba2a9805dc134910/_ctc_loss_cuda_dispatch.h @@ -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 cuda { + +TORCH_API ::std::tuple _ctc_loss(const at::Tensor & log_probs, const at::Tensor & targets, at::IntArrayRef input_lengths, at::IntArrayRef target_lengths, int64_t blank=0, bool zero_infinity=false); +TORCH_API ::std::tuple _ctc_loss(const at::Tensor & log_probs, const at::Tensor & targets, const at::Tensor & input_lengths, const at::Tensor & target_lengths, int64_t blank=0, bool zero_infinity=false); + +} // namespace cuda +} // namespace at diff --git a/shared/package-files/72/724fd2a631825c662a7862a3bf0bc94be26643250c000c38d9f51c2d0e5339e0/guru-76-lp b/shared/package-files/72/724fd2a631825c662a7862a3bf0bc94be26643250c000c38d9f51c2d0e5339e0/guru-76-lp new file mode 100644 index 0000000000000000000000000000000000000000..8abbf8d5de5ed0622e702498f0710587f5e15114 Binary files /dev/null and b/shared/package-files/72/724fd2a631825c662a7862a3bf0bc94be26643250c000c38d9f51c2d0e5339e0/guru-76-lp differ diff --git a/shared/package-files/72/725cd7513ac1e786a85afd621b9f46527328b975c00bad7f35fb646f9ac0d5c3/kt7ix b/shared/package-files/72/725cd7513ac1e786a85afd621b9f46527328b975c00bad7f35fb646f9ac0d5c3/kt7ix new file mode 100644 index 0000000000000000000000000000000000000000..de66a9bfd99917700f71e9a37d55a19b2bc819b0 Binary files /dev/null and b/shared/package-files/72/725cd7513ac1e786a85afd621b9f46527328b975c00bad7f35fb646f9ac0d5c3/kt7ix differ diff --git a/shared/package-files/72/72635a4e4dd241168b0dc57ecaff698a766dab0584e19c409c864fd36c7d8406/typing.py b/shared/package-files/72/72635a4e4dd241168b0dc57ecaff698a766dab0584e19c409c864fd36c7d8406/typing.py new file mode 100644 index 0000000000000000000000000000000000000000..016c22b3ca405d9ff0973d177a3d2c7aba8d33eb --- /dev/null +++ b/shared/package-files/72/72635a4e4dd241168b0dc57ecaff698a766dab0584e19c409c864fd36c7d8406/typing.py @@ -0,0 +1,42 @@ +"""Typing aliases used by statsmodels""" + +from __future__ import annotations + +from typing import TYPE_CHECKING, Any + +if TYPE_CHECKING: + from collections.abc import Sequence + + import numpy as np + from numpy.typing import ( + ArrayLike, + DTypeLike, + NDArray, + _FloatLike_co, + _UIntLike_co, + ) + from pandas import DataFrame, Series + + _ExtendedFloatLike_co = _FloatLike_co | _UIntLike_co + NumericArray = NDArray[Any, np.dtype[_ExtendedFloatLike_co]] + Float64Array = NDArray[Any, np.double] + ArrayLike1D = Sequence[float | int] | NumericArray | Series + ArrayLike2D = Sequence[Sequence[float | int]] | NumericArray | DataFrame +else: + ArrayLike = Any + DTypeLike = Any + Float64Array = Any + NumericArray = Any + ArrayLike1D = Any + ArrayLike2D = Any + NDArray = Any + +__all__ = [ + "ArrayLike", + "ArrayLike1D", + "ArrayLike2D", + "DTypeLike", + "Float64Array", + "NDArray", + "NumericArray", +] diff --git a/shared/package-files/72/72651060e341ac8fb3993dbc8022a88ecaa9e8ec52521f8e26ad9b356aa36ce0/error.h b/shared/package-files/72/72651060e341ac8fb3993dbc8022a88ecaa9e8ec52521f8e26ad9b356aa36ce0/error.h new file mode 100644 index 0000000000000000000000000000000000000000..6ba124bbeca26608fb6983cb1c7bde7cee79d202 --- /dev/null +++ b/shared/package-files/72/72651060e341ac8fb3993dbc8022a88ecaa9e8ec52521f8e26ad9b356aa36ce0/error.h @@ -0,0 +1,47 @@ +/* + * 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 + +namespace tensorpipe { +namespace transport { + +class ContextClosedError final : public BaseError { + public: + ContextClosedError() {} + + std::string what() const override; +}; + +class ListenerClosedError final : public BaseError { + public: + ListenerClosedError() {} + + std::string what() const override; +}; + +class ConnectionClosedError final : public BaseError { + public: + ConnectionClosedError() {} + + std::string what() const override; +}; + +class ContextNotViableError final : public BaseError { + public: + ContextNotViableError() {} + + std::string what() const override; +}; + +} // namespace transport +} // namespace tensorpipe diff --git a/shared/package-files/72/7266843a5198c99756a2df632cb2ba7cf76ae36426e73caa112e805260ff2c70/opennt-35-w b/shared/package-files/72/7266843a5198c99756a2df632cb2ba7cf76ae36426e73caa112e805260ff2c70/opennt-35-w new file mode 100644 index 0000000000000000000000000000000000000000..de7086a8645474ffa2def5655ede4bb22614c94b Binary files /dev/null and b/shared/package-files/72/7266843a5198c99756a2df632cb2ba7cf76ae36426e73caa112e805260ff2c70/opennt-35-w differ diff --git a/shared/package-files/72/729e968974da11df0b5b0c62ce99c54a66c23928b33cb725007145b2ac51aaab/build_scripts.py b/shared/package-files/72/729e968974da11df0b5b0c62ce99c54a66c23928b33cb725007145b2ac51aaab/build_scripts.py new file mode 100644 index 0000000000000000000000000000000000000000..ce222f1e52d3e46840602cb9a8b09574a8b07cd8 --- /dev/null +++ b/shared/package-files/72/729e968974da11df0b5b0c62ce99c54a66c23928b33cb725007145b2ac51aaab/build_scripts.py @@ -0,0 +1,172 @@ +"""distutils.command.build_scripts + +Implements the Distutils 'build_scripts' command.""" + +import os +import re +from stat import ST_MODE +from distutils import sysconfig +from ..core import Command +from ..dep_util import newer +from ..util import convert_path +from distutils._log import log +import tokenize + +shebang_pattern = re.compile('^#!.*python[0-9.]*([ \t].*)?$') +""" +Pattern matching a Python interpreter indicated in first line of a script. +""" + +# for Setuptools compatibility +first_line_re = shebang_pattern + + +class build_scripts(Command): + description = "\"build\" scripts (copy and fixup #! line)" + + user_options = [ + ('build-dir=', 'd', "directory to \"build\" (copy) to"), + ('force', 'f', "forcibly build everything (ignore file timestamps"), + ('executable=', 'e', "specify final destination interpreter path"), + ] + + boolean_options = ['force'] + + def initialize_options(self): + self.build_dir = None + self.scripts = None + self.force = None + self.executable = None + + def finalize_options(self): + self.set_undefined_options( + 'build', + ('build_scripts', 'build_dir'), + ('force', 'force'), + ('executable', 'executable'), + ) + self.scripts = self.distribution.scripts + + def get_source_files(self): + return self.scripts + + def run(self): + if not self.scripts: + return + self.copy_scripts() + + def copy_scripts(self): + """ + Copy each script listed in ``self.scripts``. + + If a script is marked as a Python script (first line matches + 'shebang_pattern', i.e. starts with ``#!`` and contains + "python"), then adjust in the copy the first line to refer to + the current Python interpreter. + """ + self.mkpath(self.build_dir) + outfiles = [] + updated_files = [] + for script in self.scripts: + self._copy_script(script, outfiles, updated_files) + + self._change_modes(outfiles) + + return outfiles, updated_files + + def _copy_script(self, script, outfiles, updated_files): # noqa: C901 + shebang_match = None + script = convert_path(script) + outfile = os.path.join(self.build_dir, os.path.basename(script)) + outfiles.append(outfile) + + if not self.force and not newer(script, outfile): + log.debug("not copying %s (up-to-date)", script) + return + + # Always open the file, but ignore failures in dry-run mode + # in order to attempt to copy directly. + try: + f = tokenize.open(script) + except OSError: + if not self.dry_run: + raise + f = None + else: + first_line = f.readline() + if not first_line: + self.warn("%s is an empty file (skipping)" % script) + return + + shebang_match = shebang_pattern.match(first_line) + + updated_files.append(outfile) + if shebang_match: + log.info("copying and adjusting %s -> %s", script, self.build_dir) + if not self.dry_run: + if not sysconfig.python_build: + executable = self.executable + else: + executable = os.path.join( + sysconfig.get_config_var("BINDIR"), + "python%s%s" + % ( + sysconfig.get_config_var("VERSION"), + sysconfig.get_config_var("EXE"), + ), + ) + post_interp = shebang_match.group(1) or '' + shebang = "#!" + executable + post_interp + "\n" + self._validate_shebang(shebang, f.encoding) + with open(outfile, "w", encoding=f.encoding) as outf: + outf.write(shebang) + outf.writelines(f.readlines()) + if f: + f.close() + else: + if f: + f.close() + self.copy_file(script, outfile) + + def _change_modes(self, outfiles): + if os.name != 'posix': + return + + for file in outfiles: + self._change_mode(file) + + def _change_mode(self, file): + if self.dry_run: + log.info("changing mode of %s", file) + return + + oldmode = os.stat(file)[ST_MODE] & 0o7777 + newmode = (oldmode | 0o555) & 0o7777 + if newmode != oldmode: + log.info("changing mode of %s from %o to %o", file, oldmode, newmode) + os.chmod(file, newmode) + + @staticmethod + def _validate_shebang(shebang, encoding): + # Python parser starts to read a script using UTF-8 until + # it gets a #coding:xxx cookie. The shebang has to be the + # first line of a file, the #coding:xxx cookie cannot be + # written before. So the shebang has to be encodable to + # UTF-8. + try: + shebang.encode('utf-8') + except UnicodeEncodeError: + raise ValueError( + "The shebang ({!r}) is not encodable " "to utf-8".format(shebang) + ) + + # If the script is encoded to a custom encoding (use a + # #coding:xxx cookie), the shebang has to be encodable to + # the script encoding too. + try: + shebang.encode(encoding) + except UnicodeEncodeError: + raise ValueError( + "The shebang ({!r}) is not encodable " + "to the script encoding ({})".format(shebang, encoding) + ) diff --git a/shared/package-files/72/72a5752d0bdfb0ab51c1e3c5696521f1d08595be89103f2d2c60acaed4bf325f/libarrow_dataset.pxd b/shared/package-files/72/72a5752d0bdfb0ab51c1e3c5696521f1d08595be89103f2d2c60acaed4bf325f/libarrow_dataset.pxd new file mode 100644 index 0000000000000000000000000000000000000000..12cf82733935870b592e882d27412cbbdf293784 --- /dev/null +++ b/shared/package-files/72/72a5752d0bdfb0ab51c1e3c5696521f1d08595be89103f2d2c60acaed4bf325f/libarrow_dataset.pxd @@ -0,0 +1,423 @@ +# 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 libcpp.unordered_map cimport unordered_map +from libcpp cimport bool as c_bool + +from pyarrow.includes.common cimport * +from pyarrow.includes.libarrow cimport * +from pyarrow.includes.libarrow_acero cimport * +from pyarrow.includes.libarrow_fs cimport * + + +cdef extern from "arrow/dataset/plan.h" namespace "arrow::dataset::internal" nogil: + + cdef void Initialize() + + +ctypedef CStatus cb_writer_finish_internal(CFileWriter*) +ctypedef void cb_writer_finish(dict, CFileWriter*) + +cdef extern from "arrow/dataset/api.h" namespace "arrow::dataset" nogil: + + cdef enum ExistingDataBehavior" arrow::dataset::ExistingDataBehavior": + ExistingDataBehavior_DELETE_MATCHING" \ + arrow::dataset::ExistingDataBehavior::kDeleteMatchingPartitions" + ExistingDataBehavior_OVERWRITE_OR_IGNORE" \ + arrow::dataset::ExistingDataBehavior::kOverwriteOrIgnore" + ExistingDataBehavior_ERROR" \ + arrow::dataset::ExistingDataBehavior::kError" + + cdef cppclass CScanOptions "arrow::dataset::ScanOptions": + shared_ptr[CSchema] dataset_schema + shared_ptr[CSchema] projected_schema + c_bool use_threads + c_bool cache_metadata + CExpression filter + + cdef cppclass CScanNodeOptions "arrow::dataset::ScanNodeOptions"(CExecNodeOptions): + CScanNodeOptions(shared_ptr[CDataset] dataset, shared_ptr[CScanOptions] scan_options, bint require_sequenced_output, bint implicit_ordering) + + shared_ptr[CScanOptions] scan_options + + cdef cppclass CFragmentScanOptions "arrow::dataset::FragmentScanOptions": + c_string type_name() const + + ctypedef CIterator[shared_ptr[CScanTask]] CScanTaskIterator \ + "arrow::dataset::ScanTaskIterator" + + cdef cppclass CScanTask" arrow::dataset::ScanTask": + CResult[CRecordBatchIterator] Execute() + + cdef cppclass CFragment "arrow::dataset::Fragment": + CResult[shared_ptr[CSchema]] ReadPhysicalSchema() + CResult[CScanTaskIterator] Scan(shared_ptr[CScanOptions] options) + c_bool splittable() const + c_string type_name() const + const CExpression& partition_expression() const + + ctypedef vector[shared_ptr[CFragment]] CFragmentVector \ + "arrow::dataset::FragmentVector" + + ctypedef CIterator[shared_ptr[CFragment]] CFragmentIterator \ + "arrow::dataset::FragmentIterator" + + cdef cppclass CInMemoryFragment "arrow::dataset::InMemoryFragment"( + CFragment): + CInMemoryFragment(vector[shared_ptr[CRecordBatch]] record_batches, + CExpression partition_expression) + + cdef cppclass CTaggedRecordBatch "arrow::dataset::TaggedRecordBatch": + shared_ptr[CRecordBatch] record_batch + shared_ptr[CFragment] fragment + + ctypedef CIterator[CTaggedRecordBatch] CTaggedRecordBatchIterator \ + "arrow::dataset::TaggedRecordBatchIterator" + + cdef cppclass CScanner "arrow::dataset::Scanner": + CScanner(shared_ptr[CDataset], shared_ptr[CScanOptions]) + CScanner(shared_ptr[CFragment], shared_ptr[CScanOptions]) + CResult[CScanTaskIterator] Scan() + CResult[CTaggedRecordBatchIterator] ScanBatches() + CResult[shared_ptr[CTable]] ToTable() + CResult[shared_ptr[CTable]] TakeRows(const CArray& indices) + CResult[shared_ptr[CTable]] Head(int64_t num_rows) + CResult[int64_t] CountRows() + CResult[CFragmentIterator] GetFragments() + CResult[shared_ptr[CRecordBatchReader]] ToRecordBatchReader() + const shared_ptr[CScanOptions]& options() + + cdef cppclass CScannerBuilder "arrow::dataset::ScannerBuilder": + CScannerBuilder(shared_ptr[CDataset], + shared_ptr[CScanOptions] scan_options) + CScannerBuilder(shared_ptr[CSchema], shared_ptr[CFragment], + shared_ptr[CScanOptions] scan_options) + + @staticmethod + shared_ptr[CScannerBuilder] FromRecordBatchReader( + shared_ptr[CRecordBatchReader] reader) + CStatus ProjectColumns "Project"(const vector[c_string]& columns) + CStatus Project(vector[CExpression]& exprs, vector[c_string]& columns) + CStatus Filter(CExpression filter) + CStatus UseThreads(c_bool use_threads) + CStatus CacheMetadata(c_bool cache_metadata) + CStatus Pool(CMemoryPool* pool) + CStatus BatchSize(int64_t batch_size) + CStatus BatchReadahead(int32_t batch_readahead) + CStatus FragmentReadahead(int32_t fragment_readahead) + CStatus FragmentScanOptions( + shared_ptr[CFragmentScanOptions] fragment_scan_options) + CResult[shared_ptr[CScanOptions]] GetScanOptions() + CResult[shared_ptr[CScanner]] Finish() + shared_ptr[CSchema] schema() const + + ctypedef vector[shared_ptr[CDataset]] CDatasetVector \ + "arrow::dataset::DatasetVector" + + cdef cppclass CDataset "arrow::dataset::Dataset": + const shared_ptr[CSchema] & schema() + CResult[CFragmentIterator] GetFragments() + CResult[CFragmentIterator] GetFragments(CExpression predicate) + const CExpression & partition_expression() + c_string type_name() + + CResult[shared_ptr[CDataset]] ReplaceSchema(shared_ptr[CSchema]) + + CResult[shared_ptr[CScannerBuilder]] NewScan() + + cdef cppclass CInMemoryDataset "arrow::dataset::InMemoryDataset"( + CDataset): + CInMemoryDataset(shared_ptr[CRecordBatchReader]) + CInMemoryDataset(shared_ptr[CTable]) + + cdef cppclass CUnionDataset "arrow::dataset::UnionDataset"( + CDataset): + @staticmethod + CResult[shared_ptr[CUnionDataset]] Make(shared_ptr[CSchema] schema, + CDatasetVector children) + + const CDatasetVector& children() const + + cdef cppclass CInspectOptions "arrow::dataset::InspectOptions": + int fragments + CField.CMergeOptions field_merge_options + + cdef cppclass CFinishOptions "arrow::dataset::FinishOptions": + shared_ptr[CSchema] schema + CInspectOptions inspect_options + c_bool validate_fragments + + cdef cppclass CDatasetFactory "arrow::dataset::DatasetFactory": + CResult[vector[shared_ptr[CSchema]]] InspectSchemas(CInspectOptions) + CResult[shared_ptr[CSchema]] Inspect(CInspectOptions) + CResult[shared_ptr[CDataset]] FinishWithSchema "Finish"( + const shared_ptr[CSchema]& schema) + CResult[shared_ptr[CDataset]] Finish() + const CExpression& root_partition() + CStatus SetRootPartition(CExpression partition) + + cdef cppclass CUnionDatasetFactory "arrow::dataset::UnionDatasetFactory": + @staticmethod + CResult[shared_ptr[CDatasetFactory]] Make( + vector[shared_ptr[CDatasetFactory]] factories) + + cdef cppclass CFileSource "arrow::dataset::FileSource": + const c_string& path() const + const shared_ptr[CFileSystem]& filesystem() const + const shared_ptr[CBuffer]& buffer() const + const int64_t size() const + CResult[shared_ptr[CRandomAccessFile]] Open() const + # HACK: Cython can't handle all the overloads so don't declare them. + # This means invalid construction of CFileSource won't be caught in + # the C++ generation phase (though it will still be caught when + # the generated C++ is compiled). + CFileSource(...) + + cdef cppclass CFileWriteOptions \ + "arrow::dataset::FileWriteOptions": + const shared_ptr[CFileFormat]& format() const + c_string type_name() const + + cdef cppclass CFileWriter \ + "arrow::dataset::FileWriter": + const shared_ptr[CFileFormat]& format() const + const shared_ptr[CSchema]& schema() const + const shared_ptr[CFileWriteOptions]& options() const + const CFileLocator& destination() const + CResult[int64_t] GetBytesWritten() + + cdef cppclass CFileFormat "arrow::dataset::FileFormat": + shared_ptr[CFragmentScanOptions] default_fragment_scan_options + c_string type_name() const + CResult[shared_ptr[CSchema]] Inspect(const CFileSource&) const + CResult[shared_ptr[CFileFragment]] MakeFragment( + CFileSource source, + CExpression partition_expression, + shared_ptr[CSchema] physical_schema) + shared_ptr[CFileWriteOptions] DefaultWriteOptions() + + cdef cppclass CFileFragment "arrow::dataset::FileFragment"( + CFragment): + const CFileSource& source() const + const shared_ptr[CFileFormat]& format() const + + cdef cppclass CFileSystemDatasetWriteOptions \ + "arrow::dataset::FileSystemDatasetWriteOptions": + shared_ptr[CFileWriteOptions] file_write_options + shared_ptr[CFileSystem] filesystem + c_string base_dir + shared_ptr[CPartitioning] partitioning + c_bool preserve_order + int max_partitions + c_string basename_template + function[cb_writer_finish_internal] writer_pre_finish + function[cb_writer_finish_internal] writer_post_finish + ExistingDataBehavior existing_data_behavior + c_bool create_dir + uint32_t max_open_files + uint64_t max_rows_per_file + uint64_t min_rows_per_group + uint64_t max_rows_per_group + + cdef cppclass CFileSystemDataset \ + "arrow::dataset::FileSystemDataset"(CDataset): + @staticmethod + CResult[shared_ptr[CDataset]] Make( + shared_ptr[CSchema] schema, + CExpression source_partition, + shared_ptr[CFileFormat] format, + shared_ptr[CFileSystem] filesystem, + vector[shared_ptr[CFileFragment]] fragments) + + @staticmethod + CStatus Write( + const CFileSystemDatasetWriteOptions& write_options, + shared_ptr[CScanner] scanner) + + c_string type() + vector[c_string] files() + const shared_ptr[CFileFormat]& format() const + const shared_ptr[CFileSystem]& filesystem() const + const shared_ptr[CPartitioning]& partitioning() const + + cdef cppclass CIpcFileWriteOptions \ + "arrow::dataset::IpcFileWriteOptions"(CFileWriteOptions): + shared_ptr[CIpcWriteOptions] options + + cdef cppclass CIpcFileFormat "arrow::dataset::IpcFileFormat"( + CFileFormat): + pass + + cdef cppclass COrcFileFormat "arrow::dataset::OrcFileFormat"( + CFileFormat): + pass + + cdef cppclass CCsvFileWriteOptions \ + "arrow::dataset::CsvFileWriteOptions"(CFileWriteOptions): + shared_ptr[CCSVWriteOptions] write_options + CMemoryPool* pool + + cdef cppclass CCsvFileFormat "arrow::dataset::CsvFileFormat"( + CFileFormat): + CCSVParseOptions parse_options + + cdef cppclass CCsvFragmentScanOptions \ + "arrow::dataset::CsvFragmentScanOptions"(CFragmentScanOptions): + CCSVConvertOptions convert_options + CCSVReadOptions read_options + function[StreamWrapFunc] stream_transform_func + + cdef cppclass CJsonFileFormat "arrow::dataset::JsonFileFormat"(CFileFormat): + pass + + cdef cppclass CJsonFragmentScanOptions "arrow::dataset::JsonFragmentScanOptions"(CFragmentScanOptions): + CJSONParseOptions parse_options + CJSONReadOptions read_options + + cdef struct CPartitionPathFormat "arrow::dataset::PartitionPathFormat": + c_string directory + c_string filename + + cdef cppclass CPartitioning "arrow::dataset::Partitioning": + c_string type_name() const + CResult[CExpression] Parse(const c_string & path) const + CResult[CPartitionPathFormat] Format(const CExpression & expr) const + const shared_ptr[CSchema] & schema() + c_bool Equals(const CPartitioning& other) const + + cdef cppclass CSegmentEncoding" arrow::dataset::SegmentEncoding": + bint operator==(CSegmentEncoding) + + CSegmentEncoding CSegmentEncoding_None\ + " arrow::dataset::SegmentEncoding::None" + CSegmentEncoding CSegmentEncoding_Uri\ + " arrow::dataset::SegmentEncoding::Uri" + + cdef cppclass CKeyValuePartitioningOptions \ + "arrow::dataset::KeyValuePartitioningOptions": + CSegmentEncoding segment_encoding + + cdef cppclass CHivePartitioningOptions \ + "arrow::dataset::HivePartitioningOptions": + CSegmentEncoding segment_encoding + c_string null_fallback + + cdef cppclass CPartitioningFactoryOptions \ + "arrow::dataset::PartitioningFactoryOptions": + c_bool infer_dictionary + shared_ptr[CSchema] schema + CSegmentEncoding segment_encoding + + cdef cppclass CHivePartitioningFactoryOptions \ + "arrow::dataset::HivePartitioningFactoryOptions": + c_bool infer_dictionary + c_string null_fallback + shared_ptr[CSchema] schema + CSegmentEncoding segment_encoding + + cdef cppclass CPartitioningFactory "arrow::dataset::PartitioningFactory": + c_string type_name() const + + cdef cppclass CKeyValuePartitioning \ + "arrow::dataset::KeyValuePartitioning"(CPartitioning): + CKeyValuePartitioning(shared_ptr[CSchema] schema, + vector[shared_ptr[CArray]] dictionaries, + CKeyValuePartitioningOptions options) + + vector[shared_ptr[CArray]] dictionaries() const + CSegmentEncoding segment_encoding() + + cdef cppclass CDirectoryPartitioning \ + "arrow::dataset::DirectoryPartitioning"(CPartitioning): + CDirectoryPartitioning(shared_ptr[CSchema] schema, + vector[shared_ptr[CArray]] dictionaries) + + @staticmethod + shared_ptr[CPartitioningFactory] MakeFactory( + vector[c_string] field_names, CPartitioningFactoryOptions) + + vector[shared_ptr[CArray]] dictionaries() const + + cdef cppclass CHivePartitioning \ + "arrow::dataset::HivePartitioning"(CPartitioning): + CHivePartitioning(shared_ptr[CSchema] schema, + vector[shared_ptr[CArray]] dictionaries, + CHivePartitioningOptions options) + + @staticmethod + shared_ptr[CPartitioningFactory] MakeFactory( + CHivePartitioningFactoryOptions) + + vector[shared_ptr[CArray]] dictionaries() const + c_string null_fallback() const + + cdef cppclass CFilenamePartitioning \ + "arrow::dataset::FilenamePartitioning"(CPartitioning): + CFilenamePartitioning(shared_ptr[CSchema] schema, + vector[shared_ptr[CArray]] dictionaries) + + @staticmethod + shared_ptr[CPartitioningFactory] MakeFactory( + vector[c_string] field_names, CPartitioningFactoryOptions) + + vector[shared_ptr[CArray]] dictionaries() const + + cdef cppclass CPartitioningOrFactory \ + "arrow::dataset::PartitioningOrFactory": + CPartitioningOrFactory(shared_ptr[CPartitioning]) + CPartitioningOrFactory(shared_ptr[CPartitioningFactory]) + CPartitioningOrFactory & operator = (shared_ptr[CPartitioning]) + CPartitioningOrFactory & operator = ( + shared_ptr[CPartitioningFactory]) + shared_ptr[CPartitioning] partitioning() const + shared_ptr[CPartitioningFactory] factory() const + + cdef cppclass CFileSystemFactoryOptions \ + "arrow::dataset::FileSystemFactoryOptions": + CPartitioningOrFactory partitioning + c_string partition_base_dir + c_bool exclude_invalid_files + vector[c_string] selector_ignore_prefixes + + cdef cppclass CFileSystemDatasetFactory \ + "arrow::dataset::FileSystemDatasetFactory"( + CDatasetFactory): + @staticmethod + CResult[shared_ptr[CDatasetFactory]] MakeFromPaths "Make"( + shared_ptr[CFileSystem] filesystem, + vector[c_string] paths, + shared_ptr[CFileFormat] format, + CFileSystemFactoryOptions options + ) + + @staticmethod + CResult[shared_ptr[CDatasetFactory]] MakeFromSelector "Make"( + shared_ptr[CFileSystem] filesystem, + CFileSelector, + shared_ptr[CFileFormat] format, + CFileSystemFactoryOptions options + ) + + @staticmethod + CResult[shared_ptr[CDatasetFactory]] MakeFromFileInfos "Make"( + shared_ptr[CFileSystem] filesystem, + vector[CFileInfo] files, + shared_ptr[CFileFormat] format, + CFileSystemFactoryOptions options + ) diff --git a/shared/package-files/72/72b081b4d9ceafc67375054fccf3565c31f974c9ec9a97e414cdbcf45ccee43b/keras.py b/shared/package-files/72/72b081b4d9ceafc67375054fccf3565c31f974c9ec9a97e414cdbcf45ccee43b/keras.py new file mode 100644 index 0000000000000000000000000000000000000000..96782d7e8bf6cc624dfd4204fab0e452993ebf68 --- /dev/null +++ b/shared/package-files/72/72b081b4d9ceafc67375054fccf3565c31f974c9ec9a97e414cdbcf45ccee43b/keras.py @@ -0,0 +1,122 @@ +from copy import copy +from functools import partial + +from .auto import tqdm as tqdm_auto + +try: + import keras +except (ImportError, AttributeError) as e: + try: + from tensorflow import keras + except ImportError: + raise e +__author__ = {"github.com/": ["casperdcl"]} +__all__ = ['TqdmCallback'] + + +class TqdmCallback(keras.callbacks.Callback): + """Keras callback for epoch and batch progress.""" + @staticmethod + def bar2callback(bar, pop=None, delta=(lambda logs: 1)): + def callback(_, logs=None): + n = delta(logs) + if logs: + if pop: + logs = copy(logs) + [logs.pop(i, 0) for i in pop] + bar.set_postfix(logs, refresh=False) + bar.update(n) + + return callback + + def __init__(self, epochs=None, data_size=None, batch_size=None, verbose=1, + tqdm_class=tqdm_auto, **tqdm_kwargs): + """ + Parameters + ---------- + epochs : int, optional + data_size : int, optional + Number of training pairs. + batch_size : int, optional + Number of training pairs per batch. + verbose : int + 0: epoch, 1: batch (transient), 2: batch. [default: 1]. + Will be set to `0` unless both `data_size` and `batch_size` + are given. + tqdm_class : optional + `tqdm` class to use for bars [default: `tqdm.auto.tqdm`]. + tqdm_kwargs : optional + Any other arguments used for all bars. + """ + if tqdm_kwargs: + tqdm_class = partial(tqdm_class, **tqdm_kwargs) + self.tqdm_class = tqdm_class + self.epoch_bar = tqdm_class(total=epochs, unit='epoch') + self.on_epoch_end = self.bar2callback(self.epoch_bar) + if data_size and batch_size: + self.batches = batches = (data_size + batch_size - 1) // batch_size + else: + self.batches = batches = None + self.verbose = verbose + if verbose == 1: + self.batch_bar = tqdm_class(total=batches, unit='batch', leave=False) + self.on_batch_end = self.bar2callback( + self.batch_bar, pop=['batch', 'size'], + delta=lambda logs: logs.get('size', 1)) + + def on_train_begin(self, *_, **__): + params = self.params.get + auto_total = params('epochs', params('nb_epoch', None)) + if auto_total is not None and auto_total != self.epoch_bar.total: + self.epoch_bar.reset(total=auto_total) + + def on_epoch_begin(self, epoch, *_, **__): + if self.epoch_bar.n < epoch: + ebar = self.epoch_bar + ebar.n = ebar.last_print_n = ebar.initial = epoch + if self.verbose: + params = self.params.get + total = params('samples', params( + 'nb_sample', params('steps', None))) or self.batches + if self.verbose == 2: + if hasattr(self, 'batch_bar'): + self.batch_bar.close() + self.batch_bar = self.tqdm_class( + total=total, unit='batch', leave=True, + unit_scale=1 / (params('batch_size', 1) or 1)) + self.on_batch_end = self.bar2callback( + self.batch_bar, pop=['batch', 'size'], + delta=lambda logs: logs.get('size', 1)) + elif self.verbose == 1: + self.batch_bar.unit_scale = 1 / (params('batch_size', 1) or 1) + self.batch_bar.reset(total=total) + else: + raise KeyError('Unknown verbosity') + + def on_train_end(self, *_, **__): + if self.verbose: + self.batch_bar.close() + self.epoch_bar.close() + + def display(self): + """Displays in the current cell in Notebooks.""" + container = getattr(self.epoch_bar, 'container', None) + if container is None: + return + from .notebook import display + display(container) + batch_bar = getattr(self, 'batch_bar', None) + if batch_bar is not None: + display(batch_bar.container) + + @staticmethod + def _implements_train_batch_hooks(): + return True + + @staticmethod + def _implements_test_batch_hooks(): + return True + + @staticmethod + def _implements_predict_batch_hooks(): + return True diff --git a/shared/package-files/72/72b3fee5f6d8ad23e5dfe33fa68cb27dc7e5bf19801ca62f02fdb5599a0348b7/glu_cpu_dispatch.h b/shared/package-files/72/72b3fee5f6d8ad23e5dfe33fa68cb27dc7e5bf19801ca62f02fdb5599a0348b7/glu_cpu_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..aefe9658557bff07f2d23b3d04eb4b93cefe33a5 --- /dev/null +++ b/shared/package-files/72/72b3fee5f6d8ad23e5dfe33fa68cb27dc7e5bf19801ca62f02fdb5599a0348b7/glu_cpu_dispatch.h @@ -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 glu(const at::Tensor & self, int64_t dim=-1); +TORCH_API at::Tensor & glu_out(at::Tensor & out, const at::Tensor & self, int64_t dim=-1); +TORCH_API at::Tensor & glu_outf(const at::Tensor & self, int64_t dim, at::Tensor & out); + +} // namespace cpu +} // namespace at diff --git a/shared/package-files/72/72b5e5021426a9db642fae4382625fed3d61ef33c9e8b96a5eadb0547d0dc75c/messages.pyi b/shared/package-files/72/72b5e5021426a9db642fae4382625fed3d61ef33c9e8b96a5eadb0547d0dc75c/messages.pyi new file mode 100644 index 0000000000000000000000000000000000000000..f7aec386e0cb48a1a1635d3a422d1f85c4a572d3 --- /dev/null +++ b/shared/package-files/72/72b5e5021426a9db642fae4382625fed3d61ef33c9e8b96a5eadb0547d0dc75c/messages.pyi @@ -0,0 +1,34 @@ +from typing import Any, Optional + +DEBUG: int +INFO: int +WARNING: int +ERROR: int +CRITICAL: int + +class CheckMessage: + level: int = ... + msg: str = ... + hint: Optional[str] = ... + obj: Any = ... + id: Optional[str] = ... + def __init__( + self, level: int, msg: str, hint: Optional[str] = ..., obj: Any = ..., id: Optional[str] = ... + ) -> None: ... + def is_serious(self, level: int = ...) -> bool: ... + def is_silenced(self) -> bool: ... + +class Debug(CheckMessage): + def __init__(self, *args: Any, **kwargs: Any) -> None: ... + +class Info(CheckMessage): + def __init__(self, *args: Any, **kwargs: Any) -> None: ... + +class Warning(CheckMessage): + def __init__(self, *args: Any, **kwargs: Any) -> None: ... + +class Error(CheckMessage): + def __init__(self, *args: Any, **kwargs: Any) -> None: ... + +class Critical(CheckMessage): + def __init__(self, *args: Any, **kwargs: Any) -> None: ... diff --git a/shared/package-files/72/72c38b9341c41fd79c1e1c91bda8239054b1e0899e7d223e6de3bf9a7d539e1f/transformer.h b/shared/package-files/72/72c38b9341c41fd79c1e1c91bda8239054b1e0899e7d223e6de3bf9a7d539e1f/transformer.h new file mode 100644 index 0000000000000000000000000000000000000000..c8c417c7564b3705cfe58f887bf43a03b7573f53 --- /dev/null +++ b/shared/package-files/72/72c38b9341c41fd79c1e1c91bda8239054b1e0899e7d223e6de3bf9a7d539e1f/transformer.h @@ -0,0 +1,143 @@ +#pragma once + +#include +#include +#include +#include +#include + +#include + +#include + +namespace torch { +namespace nn { + +// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Transformer ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +/// A transformer model. User is able to modify the attributes as needed. The +/// architecture is based on the paper "Attention Is All You Need". Ashish +/// Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N +/// Gomez, Lukasz Kaiser, and Illia Polosukhin. 2017. Attention is all you need. +/// In Advances in Neural Information Processing Systems, pages 6000-6010. +/// +/// See https://pytorch.org/docs/stable/generated/torch.nn.Transformer.html to +/// learn about the exact behavior of this transformer model +/// +/// See the documentation for `torch::nn::Transformer` class to learn what +/// constructor arguments are supported for this encoder layer model +/// +/// Example: +/// ``` +/// Transformer trans(TransformerOptions(512, 8)); +/// ``` +class TORCH_API TransformerImpl : public Cloneable { + public: + explicit TransformerImpl(TransformerOptions options_); + + /// forward function for Transformer Module + /// Args: + /// src: the sequence to the encoder (required). + /// tgt: the sequence to the decoder (required). + /// src_mask: the additive mask for the src sequence (optional). + /// tgt_mask: the additive mask for the tgt sequence (optional). + /// memory_mask: the additive mask for the encoder output (optional). + /// src_key_padding_mask: the ByteTensor mask for src keys per batch + /// (optional). tgt_key_padding_mask: the ByteTensor mask for tgt keys per + /// batch (optional). memory_key_padding_mask: the ByteTensor mask for + /// memory keys per batch (optional). + /// + /// Shape: + /// src: `(S, N, E)` + /// tgt: `(T, N, E)` + /// src_mask: `(S, S)` + /// tgt_mask: `(T, T)` + /// memory_mask: `(T, S)` + /// src_key_padding_mask: `(N, S)` + /// tgt_key_padding_mask: `(N, T)` + /// memory_key_padding_mask: `(N, S)` + /// + /// Note: + /// [src/tgt/memory]_mask ensures that position i is allowed to attend the + /// unmasked positions. If a ByteTensor is provided, the non-zero + /// positions are not allowed to attend while the zero positions will be + /// unchanged. If a BoolTensor is provided, positions with `True` are not + /// allowed to attend while `False` values will be unchanged. If a + /// FloatTensor is provided, it will be added to the attention weight. + /// + /// [src/tgt/memory]_key_padding_mask provides specified elements in the + /// key to be ignored by the attention. If a ByteTensor is provided, the + /// non-zero positions will be ignored while the zero positions will be + /// unchanged. If a BoolTensor is provided, the positions with the value + /// of `True` will be ignored while the position with the value of `False` + /// will be unchanged. + /// + /// output: `(T, N, E)` + /// + /// Note: + /// Due to the multi-head attention architecture in the transformer model, + /// the output sequence length of a transformer is same as the input + /// sequence (i.e. target) length of the decode. + /// + /// where + /// S is the source sequence length, + /// T is the target sequence length, + /// N is the batch size, + /// E is the feature number. + Tensor forward( + const Tensor& src, + const Tensor& tgt, + const Tensor& src_mask = {}, + const Tensor& tgt_mask = {}, + const Tensor& memory_mask = {}, + const Tensor& src_key_padding_mask = {}, + const Tensor& tgt_key_padding_mask = {}, + const Tensor& memory_key_padding_mask = {}); + + void reset() override; + + void reset_parameters(); + + /// Generate a square mask for the sequence. + /// The masked positions are filled with `-inf` in float type. + /// Unmasked positions are filled with `0.0` in float type. + /// Note: + /// 1. This function will always return a CPU tensor. + /// 2. This function requires the platform support IEEE754, since `-inf` is + /// guaranteed to + /// be valid only when IEEE754 is supported. If the platform doesn't + /// support IEEE754, this function will fill the mask with the smallest + /// float number instead of `-inf`, a one time warning will pop up as + /// well. + static Tensor generate_square_subsequent_mask(int64_t sz); + + protected: + FORWARD_HAS_DEFAULT_ARGS( + {2, AnyValue(Tensor())}, + {3, AnyValue(Tensor())}, + {4, AnyValue(Tensor())}, + {5, AnyValue(Tensor())}, + {6, AnyValue(Tensor())}, + {7, AnyValue(Tensor())}) + + public: + /// options with which this `Transformer` was constructed + TransformerOptions options; + + /// encoder module + AnyModule encoder; + + /// decoder module + AnyModule decoder; +}; + +/// A `ModuleHolder` subclass for `TransformerImpl`. +/// See the documentation for `TransformerImpl` class to learn what +/// methods it provides, and examples of how to use `Transformer` with +/// `torch::nn::TransformerOptions`. +/// See the documentation for `ModuleHolder` to learn about PyTorch's +/// module storage semantics. +TORCH_MODULE(Transformer); + +} // namespace nn +} // namespace torch diff --git a/shared/package-files/72/72cb26ccc6ead9c38e80c2ca4144a42f0bd74664b8e840fa53ef1de01f756d4a/lib.pyx b/shared/package-files/72/72cb26ccc6ead9c38e80c2ca4144a42f0bd74664b8e840fa53ef1de01f756d4a/lib.pyx new file mode 100644 index 0000000000000000000000000000000000000000..5dca6fd8d2e5371930da4c90f1faf46a7d715dc3 --- /dev/null +++ b/shared/package-files/72/72cb26ccc6ead9c38e80c2ca4144a42f0bd74664b8e840fa53ef1de01f756d4a/lib.pyx @@ -0,0 +1,239 @@ +# 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. + +# cython: profile = False +# cython: nonecheck = True +# distutils: language = c++ + +import datetime +import decimal as _pydecimal +try: + import numpy as np +except ImportError: + np = None +import os +import sys + +from cython.operator cimport dereference as deref +from pyarrow.includes.libarrow cimport * +from pyarrow.includes.libarrow_python cimport * +from pyarrow.includes.common cimport PyObject_to_object +cimport pyarrow.includes.libarrow_python as libarrow_python +cimport cpython as cp + + +# Initialize NumPy C API only if numpy was able to be imported +if np is not None: + arrow_init_numpy() + +# Initialize PyArrow C++ API +# (used from some of our C++ code, see e.g. ARROW-5260) +import_pyarrow() + + +MonthDayNano = NewMonthDayNanoTupleType() + + +def cpu_count(): + """ + Return the number of threads to use in parallel operations. + + The number of threads is determined at startup by inspecting the + ``OMP_NUM_THREADS`` and ``OMP_THREAD_LIMIT`` environment variables. + If neither is present, it will default to the number of hardware threads + on the system. It can be modified at runtime by calling + :func:`set_cpu_count()`. + + See Also + -------- + set_cpu_count : Modify the size of this pool. + io_thread_count : The analogous function for the I/O thread pool. + """ + return GetCpuThreadPoolCapacity() + + +def set_cpu_count(int count): + """ + Set the number of threads to use in parallel operations. + + Parameters + ---------- + count : int + The number of concurrent threads that should be used. + + See Also + -------- + cpu_count : Get the size of this pool. + set_io_thread_count : The analogous function for the I/O thread pool. + """ + if count < 1: + raise ValueError("CPU count must be strictly positive") + check_status(SetCpuThreadPoolCapacity(count)) + + +def is_threading_enabled() -> bool: + """ + Returns True if threading is enabled in libarrow. + + If it isn't enabled, then python shouldn't create any + threads either, because we're probably on a system where + threading doesn't work (e.g. Emscripten). + """ + return libarrow_python.IsThreadingEnabled() + + +Type_NA = _Type_NA +Type_BOOL = _Type_BOOL +Type_UINT8 = _Type_UINT8 +Type_INT8 = _Type_INT8 +Type_UINT16 = _Type_UINT16 +Type_INT16 = _Type_INT16 +Type_UINT32 = _Type_UINT32 +Type_INT32 = _Type_INT32 +Type_UINT64 = _Type_UINT64 +Type_INT64 = _Type_INT64 +Type_HALF_FLOAT = _Type_HALF_FLOAT +Type_FLOAT = _Type_FLOAT +Type_DOUBLE = _Type_DOUBLE +Type_DECIMAL32 = _Type_DECIMAL32 +Type_DECIMAL64 = _Type_DECIMAL64 +Type_DECIMAL128 = _Type_DECIMAL128 +Type_DECIMAL256 = _Type_DECIMAL256 +Type_DATE32 = _Type_DATE32 +Type_DATE64 = _Type_DATE64 +Type_TIMESTAMP = _Type_TIMESTAMP +Type_TIME32 = _Type_TIME32 +Type_TIME64 = _Type_TIME64 +Type_DURATION = _Type_DURATION +Type_INTERVAL_MONTH_DAY_NANO = _Type_INTERVAL_MONTH_DAY_NANO +Type_BINARY = _Type_BINARY +Type_STRING = _Type_STRING +Type_LARGE_BINARY = _Type_LARGE_BINARY +Type_LARGE_STRING = _Type_LARGE_STRING +Type_FIXED_SIZE_BINARY = _Type_FIXED_SIZE_BINARY +Type_BINARY_VIEW = _Type_BINARY_VIEW +Type_STRING_VIEW = _Type_STRING_VIEW +Type_LIST = _Type_LIST +Type_LARGE_LIST = _Type_LARGE_LIST +Type_LIST_VIEW = _Type_LIST_VIEW +Type_LARGE_LIST_VIEW = _Type_LARGE_LIST_VIEW +Type_MAP = _Type_MAP +Type_FIXED_SIZE_LIST = _Type_FIXED_SIZE_LIST +Type_STRUCT = _Type_STRUCT +Type_SPARSE_UNION = _Type_SPARSE_UNION +Type_DENSE_UNION = _Type_DENSE_UNION +Type_DICTIONARY = _Type_DICTIONARY +Type_RUN_END_ENCODED = _Type_RUN_END_ENCODED +Type_INTERVAL_MONTHS = _Type_INTERVAL_MONTHS +Type_INTERVAL_DAY_TIME = _Type_INTERVAL_DAY_TIME + +UnionMode_SPARSE = _UnionMode_SPARSE +UnionMode_DENSE = _UnionMode_DENSE + +__pc = None +__pac = None +__cuda_loaded = None + + +def _pc(): + global __pc + if __pc is None: + import pyarrow.compute as pc + __pc = pc + return __pc + + +def _pac(): + global __pac + if __pac is None: + import pyarrow.acero as pac + __pac = pac + return __pac + + +def _ensure_cuda_loaded(): + # Try importing the cuda module to ensure libarrow_cuda gets loaded + # to register the CUDA device for the C Data Interface import + global __cuda_loaded + if __cuda_loaded is None: + try: + import pyarrow.cuda # no-cython-lint + __cuda_loaded = True + except ImportError as exc: + __cuda_loaded = str(exc) + + if __cuda_loaded is not True: + raise ImportError( + "Trying to import data on a CUDA device, but PyArrow is not built with " + f"CUDA support.\n(importing 'pyarrow.cuda' resulted in \"{__cuda_loaded}\")." + ) + + +def _gdb_test_session(): + GdbTestSession() + + +# Assorted compatibility helpers +include "compat.pxi" + +# Exception types and Status handling +include "error.pxi" + +# Configuration information +include "config.pxi" + +# pandas API shim +include "pandas-shim.pxi" + +# Memory pools and allocation +include "memory.pxi" + +# Device type and memory manager +include "device.pxi" + +# DataType, Field, Schema +include "types.pxi" + +# Array scalar values +include "scalar.pxi" + +# Array types +include "array.pxi" + +# Builders +include "builder.pxi" + +# Column, Table, Record Batch +include "table.pxi" + +# Tensors +include "tensor.pxi" + +# DLPack +include "_dlpack.pxi" + +# File IO +include "io.pxi" + +# IPC / Messaging +include "ipc.pxi" + +# Micro-benchmark routines +include "benchmark.pxi" + +# Public API +include "public-api.pxi" diff --git a/shared/package-files/72/72d523c7f3685348855a4d397170d808bd99b4b64e956b359fa65aa37a5b1b68/ctx_fp.py b/shared/package-files/72/72d523c7f3685348855a4d397170d808bd99b4b64e956b359fa65aa37a5b1b68/ctx_fp.py new file mode 100644 index 0000000000000000000000000000000000000000..aa72ea5b03fde4da66b0d8fbf8ffa4012e3f6178 --- /dev/null +++ b/shared/package-files/72/72d523c7f3685348855a4d397170d808bd99b4b64e956b359fa65aa37a5b1b68/ctx_fp.py @@ -0,0 +1,253 @@ +from .ctx_base import StandardBaseContext + +import math +import cmath +from . import math2 + +from . import function_docs + +from .libmp import mpf_bernoulli, to_float, int_types +from . import libmp + +class FPContext(StandardBaseContext): + """ + Context for fast low-precision arithmetic (53-bit precision, giving at most + about 15-digit accuracy), using Python's builtin float and complex. + """ + + def __init__(ctx): + StandardBaseContext.__init__(ctx) + + # Override SpecialFunctions implementation + ctx.loggamma = math2.loggamma + ctx._bernoulli_cache = {} + ctx.pretty = False + + ctx._init_aliases() + + _mpq = lambda cls, x: float(x[0])/x[1] + + NoConvergence = libmp.NoConvergence + + def _get_prec(ctx): return 53 + def _set_prec(ctx, p): return + def _get_dps(ctx): return 15 + def _set_dps(ctx, p): return + + _fixed_precision = True + + prec = property(_get_prec, _set_prec) + dps = property(_get_dps, _set_dps) + + zero = 0.0 + one = 1.0 + eps = math2.EPS + inf = math2.INF + ninf = math2.NINF + nan = math2.NAN + j = 1j + + # Called by SpecialFunctions.__init__() + @classmethod + def _wrap_specfun(cls, name, f, wrap): + if wrap: + def f_wrapped(ctx, *args, **kwargs): + convert = ctx.convert + args = [convert(a) for a in args] + return f(ctx, *args, **kwargs) + else: + f_wrapped = f + f_wrapped.__doc__ = function_docs.__dict__.get(name, f.__doc__) + setattr(cls, name, f_wrapped) + + def bernoulli(ctx, n): + cache = ctx._bernoulli_cache + if n in cache: + return cache[n] + cache[n] = to_float(mpf_bernoulli(n, 53, 'n'), strict=True) + return cache[n] + + pi = math2.pi + e = math2.e + euler = math2.euler + sqrt2 = 1.4142135623730950488 + sqrt5 = 2.2360679774997896964 + phi = 1.6180339887498948482 + ln2 = 0.69314718055994530942 + ln10 = 2.302585092994045684 + euler = 0.57721566490153286061 + catalan = 0.91596559417721901505 + khinchin = 2.6854520010653064453 + apery = 1.2020569031595942854 + glaisher = 1.2824271291006226369 + + absmin = absmax = abs + + def is_special(ctx, x): + return x - x != 0.0 + + def isnan(ctx, x): + return x != x + + def isinf(ctx, x): + return abs(x) == math2.INF + + def isnormal(ctx, x): + if x: + return x - x == 0.0 + return False + + def isnpint(ctx, x): + if type(x) is complex: + if x.imag: + return False + x = x.real + return x <= 0.0 and round(x) == x + + mpf = float + mpc = complex + + def convert(ctx, x): + try: + return float(x) + except: + return complex(x) + + power = staticmethod(math2.pow) + sqrt = staticmethod(math2.sqrt) + exp = staticmethod(math2.exp) + ln = log = staticmethod(math2.log) + cos = staticmethod(math2.cos) + sin = staticmethod(math2.sin) + tan = staticmethod(math2.tan) + cos_sin = staticmethod(math2.cos_sin) + acos = staticmethod(math2.acos) + asin = staticmethod(math2.asin) + atan = staticmethod(math2.atan) + cosh = staticmethod(math2.cosh) + sinh = staticmethod(math2.sinh) + tanh = staticmethod(math2.tanh) + gamma = staticmethod(math2.gamma) + rgamma = staticmethod(math2.rgamma) + fac = factorial = staticmethod(math2.factorial) + floor = staticmethod(math2.floor) + ceil = staticmethod(math2.ceil) + cospi = staticmethod(math2.cospi) + sinpi = staticmethod(math2.sinpi) + cbrt = staticmethod(math2.cbrt) + _nthroot = staticmethod(math2.nthroot) + _ei = staticmethod(math2.ei) + _e1 = staticmethod(math2.e1) + _zeta = _zeta_int = staticmethod(math2.zeta) + + # XXX: math2 + def arg(ctx, z): + z = complex(z) + return math.atan2(z.imag, z.real) + + def expj(ctx, x): + return ctx.exp(ctx.j*x) + + def expjpi(ctx, x): + return ctx.exp(ctx.j*ctx.pi*x) + + ldexp = math.ldexp + frexp = math.frexp + + def mag(ctx, z): + if z: + return ctx.frexp(abs(z))[1] + return ctx.ninf + + def isint(ctx, z): + if hasattr(z, "imag"): # float/int don't have .real/.imag in py2.5 + if z.imag: + return False + z = z.real + try: + return z == int(z) + except: + return False + + def nint_distance(ctx, z): + if hasattr(z, "imag"): # float/int don't have .real/.imag in py2.5 + n = round(z.real) + else: + n = round(z) + if n == z: + return n, ctx.ninf + return n, ctx.mag(abs(z-n)) + + def _convert_param(ctx, z): + if type(z) is tuple: + p, q = z + return ctx.mpf(p) / q, 'R' + if hasattr(z, "imag"): # float/int don't have .real/.imag in py2.5 + intz = int(z.real) + else: + intz = int(z) + if z == intz: + return intz, 'Z' + return z, 'R' + + def _is_real_type(ctx, z): + return isinstance(z, float) or isinstance(z, int_types) + + def _is_complex_type(ctx, z): + return isinstance(z, complex) + + def hypsum(ctx, p, q, types, coeffs, z, maxterms=6000, **kwargs): + coeffs = list(coeffs) + num = range(p) + den = range(p,p+q) + tol = ctx.eps + s = t = 1.0 + k = 0 + while 1: + for i in num: t *= (coeffs[i]+k) + for i in den: t /= (coeffs[i]+k) + k += 1; t /= k; t *= z; s += t + if abs(t) < tol: + return s + if k > maxterms: + raise ctx.NoConvergence + + def atan2(ctx, x, y): + return math.atan2(x, y) + + def psi(ctx, m, z): + m = int(m) + if m == 0: + return ctx.digamma(z) + return (-1)**(m+1) * ctx.fac(m) * ctx.zeta(m+1, z) + + digamma = staticmethod(math2.digamma) + + def harmonic(ctx, x): + x = ctx.convert(x) + if x == 0 or x == 1: + return x + return ctx.digamma(x+1) + ctx.euler + + nstr = str + + def to_fixed(ctx, x, prec): + return int(math.ldexp(x, prec)) + + def rand(ctx): + import random + return random.random() + + _erf = staticmethod(math2.erf) + _erfc = staticmethod(math2.erfc) + + def sum_accurately(ctx, terms, check_step=1): + s = ctx.zero + k = 0 + for term in terms(): + s += term + if (not k % check_step) and term: + if abs(term) <= 1e-18*abs(s): + break + k += 1 + return s diff --git a/shared/package-files/72/72d70ee20031a82b2b4010a7a055ba5cb28a8e15d49ff8c9dc11b22a7608a49e/_conversions.py b/shared/package-files/72/72d70ee20031a82b2b4010a7a055ba5cb28a8e15d49ff8c9dc11b22a7608a49e/_conversions.py new file mode 100644 index 0000000000000000000000000000000000000000..fa1ca2428255aa9fe3892328f6ab95cc5f5b7568 --- /dev/null +++ b/shared/package-files/72/72d70ee20031a82b2b4010a7a055ba5cb28a8e15d49ff8c9dc11b22a7608a49e/_conversions.py @@ -0,0 +1,118 @@ +import torch +import torch._prims_common as utils + +# Utilities should come BEFORE this import +from torch._decomp import register_decomposition + +from torch._prims_common import TensorLikeType +from torch._prims_common.wrappers import out_wrapper +from torch._refs import _broadcast_shapes + +# Data conversion references. +# +# Note: this module breaks the usual _refs to torch naming scheme where +# _refs.foo.bar is a ref for torch.foo.bar. The following definitions are not +# part of _refs/__init__.py to avoid name clashes with Python builtin types +# (like int). + +__all__ = [ + # dtypes + "bfloat16", + "bool", + "byte", + "cdouble", + "cfloat", + "chalf", + "char", + "double", + "float", + "half", + "int", + "long", + "short", + # misc + "complex", + "polar", +] + + +def _make_conversion_method(name: str, dtype: torch.dtype): + def fn( + self: TensorLikeType, memory_format: torch.memory_format = torch.preserve_format + ) -> TensorLikeType: + return self.to(dtype, memory_format=memory_format) # type: ignore[call-overload] + + fn.__name__ = name + return fn + + +bfloat16 = _make_conversion_method("bfloat16", torch.bfloat16) + +bool = _make_conversion_method("bool", torch.bool) + +byte = _make_conversion_method("byte", torch.uint8) + +cdouble = _make_conversion_method("cdouble", torch.cdouble) + +cfloat = _make_conversion_method("cfloat", torch.cfloat) + +chalf = _make_conversion_method("chalf", torch.complex32) + +char = _make_conversion_method("char", torch.int8) + +double = _make_conversion_method("double", torch.double) + +float = _make_conversion_method("float", torch.float) + +half = _make_conversion_method("half", torch.half) + +int = _make_conversion_method("int", torch.int) + +long = _make_conversion_method("long", torch.long) + +short = _make_conversion_method("short", torch.short) + + +@register_decomposition(torch._ops.ops.aten.complex) +# Note: complex has type promotion tests disabled due to different semantics. +# exact_dtype is for compat with complex_check_dtype from core. +@out_wrapper(exact_dtype=True) +def complex(real: TensorLikeType, imag: TensorLikeType) -> TensorLikeType: + allowed_dtypes = (torch.float32, torch.float64, torch.float16) + torch._check( + real.dtype in allowed_dtypes and imag.dtype in allowed_dtypes, + lambda: ( + f"Expected both inputs to be Half, Float or Double tensors but got " + f"{real.dtype} and {imag.dtype}" + ), + ) + torch._check( + real.dtype == imag.dtype, + lambda: ( + f"Expected object of scalar type {real.dtype} but got " + f"scalar type {imag.dtype} for second argument" + ), + ) + result_dtype = utils.corresponding_complex_dtype(real.dtype) # type: ignore[arg-type] + common_shape = _broadcast_shapes(real.shape, imag.shape) + result = real.new_empty( + common_shape, + dtype=result_dtype, + layout=real.layout, + device=real.device, + # pin_memory=real.is_pinned(), # NYI + ) + result.real = real + result.imag = imag + return result + + +@register_decomposition(torch._ops.ops.aten.polar) +# Note: polar has type promotion tests disabled due to different semantics. +# exact_dtype is for compat with complex_check_dtype from core. +@out_wrapper(exact_dtype=True) +def polar(abs: TensorLikeType, angle: TensorLikeType) -> TensorLikeType: + result = torch.complex(abs, angle) + result.real = abs * torch.cos(angle) + result.imag = abs * torch.sin(angle) + return result diff --git a/shared/package-files/72/72d9ce4ea80f3f87601c29929146b24162fd2a48f3592cd011900b71cf681330/transforms.py b/shared/package-files/72/72d9ce4ea80f3f87601c29929146b24162fd2a48f3592cd011900b71cf681330/transforms.py new file mode 100644 index 0000000000000000000000000000000000000000..ca04e729df4f0cb49be61d5c7c6bb4623b613410 --- /dev/null +++ b/shared/package-files/72/72d9ce4ea80f3f87601c29929146b24162fd2a48f3592cd011900b71cf681330/transforms.py @@ -0,0 +1,2996 @@ +""" +Matplotlib includes a framework for arbitrary geometric transformations that is used to +determine the final position of all elements drawn on the canvas. + +Transforms are composed into trees of `TransformNode` objects +whose actual value depends on their children. When the contents of +children change, their parents are automatically invalidated. The +next time an invalidated transform is accessed, it is recomputed to +reflect those changes. This invalidation/caching approach prevents +unnecessary recomputations of transforms, and contributes to better +interactive performance. + +For example, here is a graph of the transform tree used to plot data to the figure: + +.. graphviz:: /api/transforms.dot + :alt: Diagram of transform tree from data to figure coordinates. + +The framework can be used for both affine and non-affine +transformations. However, for speed, we want to use the backend +renderers to perform affine transformations whenever possible. +Therefore, it is possible to perform just the affine or non-affine +part of a transformation on a set of data. The affine is always +assumed to occur after the non-affine. For any transform:: + + full transform == non-affine part + affine part + +The backends are not expected to handle non-affine transformations +themselves. + +See the tutorial :ref:`transforms_tutorial` for examples +of how to use transforms. +""" + +# Note: There are a number of places in the code where we use `np.min` or +# `np.minimum` instead of the builtin `min`, and likewise for `max`. This is +# done so that `nan`s are propagated, instead of being silently dropped. + +import functools +import itertools +import textwrap +import weakref +import math + +import numpy as np +from numpy.linalg import inv + +from matplotlib import _api +from matplotlib._path import ( + affine_transform, count_bboxes_overlapping_bbox, update_path_extents) +from .path import Path + +DEBUG = False + + +def _make_str_method(*args, **kwargs): + """ + Generate a ``__str__`` method for a `.Transform` subclass. + + After :: + + class T: + __str__ = _make_str_method("attr", key="other") + + ``str(T(...))`` will be + + .. code-block:: text + + {type(T).__name__}( + {self.attr}, + key={self.other}) + """ + indent = functools.partial(textwrap.indent, prefix=" " * 4) + def strrepr(x): return repr(x) if isinstance(x, str) else str(x) + return lambda self: ( + type(self).__name__ + "(" + + ",".join([*(indent("\n" + strrepr(getattr(self, arg))) + for arg in args), + *(indent("\n" + k + "=" + strrepr(getattr(self, arg))) + for k, arg in kwargs.items())]) + + ")") + + +class TransformNode: + """ + The base class for anything that participates in the transform tree + and needs to invalidate its parents or be invalidated. This includes + classes that are not really transforms, such as bounding boxes, since some + transforms depend on bounding boxes to compute their values. + """ + + # Invalidation may affect only the affine part. If the + # invalidation was "affine-only", the _invalid member is set to + # INVALID_AFFINE_ONLY + + # Possible values for the _invalid attribute. + _VALID, _INVALID_AFFINE_ONLY, _INVALID_FULL = range(3) + + # Some metadata about the transform, used to determine whether an + # invalidation is affine-only + is_affine = False + is_bbox = _api.deprecated("3.9")(_api.classproperty(lambda cls: False)) + + pass_through = False + """ + If pass_through is True, all ancestors will always be + invalidated, even if 'self' is already invalid. + """ + + def __init__(self, shorthand_name=None): + """ + Parameters + ---------- + shorthand_name : str + A string representing the "name" of the transform. The name carries + no significance other than to improve the readability of + ``str(transform)`` when DEBUG=True. + """ + self._parents = {} + # Initially invalid, until first computation. + self._invalid = self._INVALID_FULL + self._shorthand_name = shorthand_name or '' + + if DEBUG: + def __str__(self): + # either just return the name of this TransformNode, or its repr + return self._shorthand_name or repr(self) + + def __getstate__(self): + # turn the dictionary with weak values into a normal dictionary + return {**self.__dict__, + '_parents': {k: v() for k, v in self._parents.items()}} + + def __setstate__(self, data_dict): + self.__dict__ = data_dict + # turn the normal dictionary back into a dictionary with weak values + # The extra lambda is to provide a callback to remove dead + # weakrefs from the dictionary when garbage collection is done. + self._parents = { + k: weakref.ref(v, lambda _, pop=self._parents.pop, k=k: pop(k)) + for k, v in self._parents.items() if v is not None} + + def __copy__(self): + cls = type(self) + other = cls.__new__(cls) + other.__dict__.update(self.__dict__) + # If `c = a + b; a1 = copy(a)`, then modifications to `a1` do not + # propagate back to `c`, i.e. we need to clear the parents of `a1`. + other._parents = {} + # If `c = a + b; c1 = copy(c)`, then modifications to `a` also need to + # be propagated to `c1`. + for key, val in vars(self).items(): + if isinstance(val, TransformNode) and id(self) in val._parents: + other.set_children(val) # val == getattr(other, key) + return other + + def invalidate(self): + """ + Invalidate this `TransformNode` and triggers an invalidation of its + ancestors. Should be called any time the transform changes. + """ + return self._invalidate_internal( + level=self._INVALID_AFFINE_ONLY if self.is_affine else self._INVALID_FULL, + invalidating_node=self) + + def _invalidate_internal(self, level, invalidating_node): + """ + Called by :meth:`invalidate` and subsequently ascends the transform + stack calling each TransformNode's _invalidate_internal method. + """ + # If we are already more invalid than the currently propagated invalidation, + # then we don't need to do anything. + if level <= self._invalid and not self.pass_through: + return + self._invalid = level + for parent in list(self._parents.values()): + parent = parent() # Dereference the weak reference. + if parent is not None: + parent._invalidate_internal(level=level, invalidating_node=self) + + def set_children(self, *children): + """ + Set the children of the transform, to let the invalidation + system know which transforms can invalidate this transform. + Should be called from the constructor of any transforms that + depend on other transforms. + """ + # Parents are stored as weak references, so that if the + # parents are destroyed, references from the children won't + # keep them alive. + id_self = id(self) + for child in children: + # Use weak references so this dictionary won't keep obsolete nodes + # alive; the callback deletes the dictionary entry. This is a + # performance improvement over using WeakValueDictionary. + ref = weakref.ref( + self, lambda _, pop=child._parents.pop, k=id_self: pop(k)) + child._parents[id_self] = ref + + def frozen(self): + """ + Return a frozen copy of this transform node. The frozen copy will not + be updated when its children change. Useful for storing a previously + known state of a transform where ``copy.deepcopy()`` might normally be + used. + """ + return self + + +class BboxBase(TransformNode): + """ + The base class of all bounding boxes. + + This class is immutable; `Bbox` is a mutable subclass. + + The canonical representation is as two points, with no + restrictions on their ordering. Convenience properties are + provided to get the left, bottom, right and top edges and width + and height, but these are not stored explicitly. + """ + + is_bbox = _api.deprecated("3.9")(_api.classproperty(lambda cls: True)) + is_affine = True + + if DEBUG: + @staticmethod + def _check(points): + if isinstance(points, np.ma.MaskedArray): + _api.warn_external("Bbox bounds are a masked array.") + points = np.asarray(points) + if any((points[1, :] - points[0, :]) == 0): + _api.warn_external("Singular Bbox.") + + def frozen(self): + return Bbox(self.get_points().copy()) + frozen.__doc__ = TransformNode.__doc__ + + def __array__(self, *args, **kwargs): + return self.get_points() + + @property + def x0(self): + """ + The first of the pair of *x* coordinates that define the bounding box. + + This is not guaranteed to be less than :attr:`x1` (for that, use + :attr:`xmin`). + """ + return self.get_points()[0, 0] + + @property + def y0(self): + """ + The first of the pair of *y* coordinates that define the bounding box. + + This is not guaranteed to be less than :attr:`y1` (for that, use + :attr:`ymin`). + """ + return self.get_points()[0, 1] + + @property + def x1(self): + """ + The second of the pair of *x* coordinates that define the bounding box. + + This is not guaranteed to be greater than :attr:`x0` (for that, use + :attr:`xmax`). + """ + return self.get_points()[1, 0] + + @property + def y1(self): + """ + The second of the pair of *y* coordinates that define the bounding box. + + This is not guaranteed to be greater than :attr:`y0` (for that, use + :attr:`ymax`). + """ + return self.get_points()[1, 1] + + @property + def p0(self): + """ + The first pair of (*x*, *y*) coordinates that define the bounding box. + + This is not guaranteed to be the bottom-left corner (for that, use + :attr:`min`). + """ + return self.get_points()[0] + + @property + def p1(self): + """ + The second pair of (*x*, *y*) coordinates that define the bounding box. + + This is not guaranteed to be the top-right corner (for that, use + :attr:`max`). + """ + return self.get_points()[1] + + @property + def xmin(self): + """The left edge of the bounding box.""" + return np.min(self.get_points()[:, 0]) + + @property + def ymin(self): + """The bottom edge of the bounding box.""" + return np.min(self.get_points()[:, 1]) + + @property + def xmax(self): + """The right edge of the bounding box.""" + return np.max(self.get_points()[:, 0]) + + @property + def ymax(self): + """The top edge of the bounding box.""" + return np.max(self.get_points()[:, 1]) + + @property + def min(self): + """The bottom-left corner of the bounding box.""" + return np.min(self.get_points(), axis=0) + + @property + def max(self): + """The top-right corner of the bounding box.""" + return np.max(self.get_points(), axis=0) + + @property + def intervalx(self): + """ + The pair of *x* coordinates that define the bounding box. + + This is not guaranteed to be sorted from left to right. + """ + return self.get_points()[:, 0] + + @property + def intervaly(self): + """ + The pair of *y* coordinates that define the bounding box. + + This is not guaranteed to be sorted from bottom to top. + """ + return self.get_points()[:, 1] + + @property + def width(self): + """The (signed) width of the bounding box.""" + points = self.get_points() + return points[1, 0] - points[0, 0] + + @property + def height(self): + """The (signed) height of the bounding box.""" + points = self.get_points() + return points[1, 1] - points[0, 1] + + @property + def size(self): + """The (signed) width and height of the bounding box.""" + points = self.get_points() + return points[1] - points[0] + + @property + def bounds(self): + """Return (:attr:`x0`, :attr:`y0`, :attr:`width`, :attr:`height`).""" + (x0, y0), (x1, y1) = self.get_points() + return (x0, y0, x1 - x0, y1 - y0) + + @property + def extents(self): + """Return (:attr:`x0`, :attr:`y0`, :attr:`x1`, :attr:`y1`).""" + return self.get_points().flatten() # flatten returns a copy. + + def get_points(self): + raise NotImplementedError + + def containsx(self, x): + """ + Return whether *x* is in the closed (:attr:`x0`, :attr:`x1`) interval. + """ + x0, x1 = self.intervalx + return x0 <= x <= x1 or x0 >= x >= x1 + + def containsy(self, y): + """ + Return whether *y* is in the closed (:attr:`y0`, :attr:`y1`) interval. + """ + y0, y1 = self.intervaly + return y0 <= y <= y1 or y0 >= y >= y1 + + def contains(self, x, y): + """ + Return whether ``(x, y)`` is in the bounding box or on its edge. + """ + return self.containsx(x) and self.containsy(y) + + def overlaps(self, other): + """ + Return whether this bounding box overlaps with the other bounding box. + + Parameters + ---------- + other : `.BboxBase` + """ + ax1, ay1, ax2, ay2 = self.extents + bx1, by1, bx2, by2 = other.extents + if ax2 < ax1: + ax2, ax1 = ax1, ax2 + if ay2 < ay1: + ay2, ay1 = ay1, ay2 + if bx2 < bx1: + bx2, bx1 = bx1, bx2 + if by2 < by1: + by2, by1 = by1, by2 + return ax1 <= bx2 and bx1 <= ax2 and ay1 <= by2 and by1 <= ay2 + + def fully_containsx(self, x): + """ + Return whether *x* is in the open (:attr:`x0`, :attr:`x1`) interval. + """ + x0, x1 = self.intervalx + return x0 < x < x1 or x0 > x > x1 + + def fully_containsy(self, y): + """ + Return whether *y* is in the open (:attr:`y0`, :attr:`y1`) interval. + """ + y0, y1 = self.intervaly + return y0 < y < y1 or y0 > y > y1 + + def fully_contains(self, x, y): + """ + Return whether ``x, y`` is in the bounding box, but not on its edge. + """ + return self.fully_containsx(x) and self.fully_containsy(y) + + def fully_overlaps(self, other): + """ + Return whether this bounding box overlaps with the other bounding box, + not including the edges. + + Parameters + ---------- + other : `.BboxBase` + """ + ax1, ay1, ax2, ay2 = self.extents + bx1, by1, bx2, by2 = other.extents + if ax2 < ax1: + ax2, ax1 = ax1, ax2 + if ay2 < ay1: + ay2, ay1 = ay1, ay2 + if bx2 < bx1: + bx2, bx1 = bx1, bx2 + if by2 < by1: + by2, by1 = by1, by2 + return ax1 < bx2 and bx1 < ax2 and ay1 < by2 and by1 < ay2 + + def transformed(self, transform): + """ + Construct a `Bbox` by statically transforming this one by *transform*. + """ + pts = self.get_points() + ll, ul, lr = transform.transform(np.array( + [pts[0], [pts[0, 0], pts[1, 1]], [pts[1, 0], pts[0, 1]]])) + return Bbox([ll, [lr[0], ul[1]]]) + + coefs = {'C': (0.5, 0.5), + 'SW': (0, 0), + 'S': (0.5, 0), + 'SE': (1.0, 0), + 'E': (1.0, 0.5), + 'NE': (1.0, 1.0), + 'N': (0.5, 1.0), + 'NW': (0, 1.0), + 'W': (0, 0.5)} + + def anchored(self, c, container): + """ + Return a copy of the `Bbox` anchored to *c* within *container*. + + Parameters + ---------- + c : (float, float) or {'C', 'SW', 'S', 'SE', 'E', 'NE', ...} + Either an (*x*, *y*) pair of relative coordinates (0 is left or + bottom, 1 is right or top), 'C' (center), or a cardinal direction + ('SW', southwest, is bottom left, etc.). + container : `Bbox` + The box within which the `Bbox` is positioned. + + See Also + -------- + .Axes.set_anchor + """ + l, b, w, h = container.bounds + L, B, W, H = self.bounds + cx, cy = self.coefs[c] if isinstance(c, str) else c + return Bbox(self._points + + [(l + cx * (w - W)) - L, + (b + cy * (h - H)) - B]) + + def shrunk(self, mx, my): + """ + Return a copy of the `Bbox`, shrunk by the factor *mx* + in the *x* direction and the factor *my* in the *y* direction. + The lower left corner of the box remains unchanged. Normally + *mx* and *my* will be less than 1, but this is not enforced. + """ + w, h = self.size + return Bbox([self._points[0], + self._points[0] + [mx * w, my * h]]) + + def shrunk_to_aspect(self, box_aspect, container=None, fig_aspect=1.0): + """ + Return a copy of the `Bbox`, shrunk so that it is as + large as it can be while having the desired aspect ratio, + *box_aspect*. If the box coordinates are relative (i.e. + fractions of a larger box such as a figure) then the + physical aspect ratio of that figure is specified with + *fig_aspect*, so that *box_aspect* can also be given as a + ratio of the absolute dimensions, not the relative dimensions. + """ + if box_aspect <= 0 or fig_aspect <= 0: + raise ValueError("'box_aspect' and 'fig_aspect' must be positive") + if container is None: + container = self + w, h = container.size + H = w * box_aspect / fig_aspect + if H <= h: + W = w + else: + W = h * fig_aspect / box_aspect + H = h + return Bbox([self._points[0], + self._points[0] + (W, H)]) + + def splitx(self, *args): + """ + Return a list of new `Bbox` objects formed by splitting the original + one with vertical lines at fractional positions given by *args*. + """ + xf = [0, *args, 1] + x0, y0, x1, y1 = self.extents + w = x1 - x0 + return [Bbox([[x0 + xf0 * w, y0], [x0 + xf1 * w, y1]]) + for xf0, xf1 in itertools.pairwise(xf)] + + def splity(self, *args): + """ + Return a list of new `Bbox` objects formed by splitting the original + one with horizontal lines at fractional positions given by *args*. + """ + yf = [0, *args, 1] + x0, y0, x1, y1 = self.extents + h = y1 - y0 + return [Bbox([[x0, y0 + yf0 * h], [x1, y0 + yf1 * h]]) + for yf0, yf1 in itertools.pairwise(yf)] + + def count_contains(self, vertices): + """ + Count the number of vertices contained in the `Bbox`. + Any vertices with a non-finite x or y value are ignored. + + Parameters + ---------- + vertices : (N, 2) array + """ + if len(vertices) == 0: + return 0 + vertices = np.asarray(vertices) + with np.errstate(invalid='ignore'): + return (((self.min < vertices) & + (vertices < self.max)).all(axis=1).sum()) + + def count_overlaps(self, bboxes): + """ + Count the number of bounding boxes that overlap this one. + + Parameters + ---------- + bboxes : sequence of `.BboxBase` + """ + return count_bboxes_overlapping_bbox( + self, np.atleast_3d([np.array(x) for x in bboxes])) + + def expanded(self, sw, sh): + """ + Construct a `Bbox` by expanding this one around its center by the + factors *sw* and *sh*. + """ + width = self.width + height = self.height + deltaw = (sw * width - width) / 2.0 + deltah = (sh * height - height) / 2.0 + a = np.array([[-deltaw, -deltah], [deltaw, deltah]]) + return Bbox(self._points + a) + + def padded(self, w_pad, h_pad=None): + """ + Construct a `Bbox` by padding this one on all four sides. + + Parameters + ---------- + w_pad : float + Width pad + h_pad : float, optional + Height pad. Defaults to *w_pad*. + + """ + points = self.get_points() + if h_pad is None: + h_pad = w_pad + return Bbox(points + [[-w_pad, -h_pad], [w_pad, h_pad]]) + + def translated(self, tx, ty): + """Construct a `Bbox` by translating this one by *tx* and *ty*.""" + return Bbox(self._points + (tx, ty)) + + def corners(self): + """ + Return the corners of this rectangle as an array of points. + + Specifically, this returns the array + ``[[x0, y0], [x0, y1], [x1, y0], [x1, y1]]``. + """ + (x0, y0), (x1, y1) = self.get_points() + return np.array([[x0, y0], [x0, y1], [x1, y0], [x1, y1]]) + + def rotated(self, radians): + """ + Return the axes-aligned bounding box that bounds the result of rotating + this `Bbox` by an angle of *radians*. + """ + corners = self.corners() + corners_rotated = Affine2D().rotate(radians).transform(corners) + bbox = Bbox.unit() + bbox.update_from_data_xy(corners_rotated, ignore=True) + return bbox + + @staticmethod + def union(bboxes): + """Return a `Bbox` that contains all of the given *bboxes*.""" + if not len(bboxes): + raise ValueError("'bboxes' cannot be empty") + x0 = np.min([bbox.xmin for bbox in bboxes]) + x1 = np.max([bbox.xmax for bbox in bboxes]) + y0 = np.min([bbox.ymin for bbox in bboxes]) + y1 = np.max([bbox.ymax for bbox in bboxes]) + return Bbox([[x0, y0], [x1, y1]]) + + @staticmethod + def intersection(bbox1, bbox2): + """ + Return the intersection of *bbox1* and *bbox2* if they intersect, or + None if they don't. + """ + x0 = np.maximum(bbox1.xmin, bbox2.xmin) + x1 = np.minimum(bbox1.xmax, bbox2.xmax) + y0 = np.maximum(bbox1.ymin, bbox2.ymin) + y1 = np.minimum(bbox1.ymax, bbox2.ymax) + return Bbox([[x0, y0], [x1, y1]]) if x0 <= x1 and y0 <= y1 else None + + +_default_minpos = np.array([np.inf, np.inf]) + + +class Bbox(BboxBase): + """ + A mutable bounding box. + + Examples + -------- + **Create from known bounds** + + The default constructor takes the boundary "points" ``[[xmin, ymin], + [xmax, ymax]]``. + + >>> Bbox([[1, 1], [3, 7]]) + Bbox([[1.0, 1.0], [3.0, 7.0]]) + + Alternatively, a Bbox can be created from the flattened points array, the + so-called "extents" ``(xmin, ymin, xmax, ymax)`` + + >>> Bbox.from_extents(1, 1, 3, 7) + Bbox([[1.0, 1.0], [3.0, 7.0]]) + + or from the "bounds" ``(xmin, ymin, width, height)``. + + >>> Bbox.from_bounds(1, 1, 2, 6) + Bbox([[1.0, 1.0], [3.0, 7.0]]) + + **Create from collections of points** + + The "empty" object for accumulating Bboxs is the null bbox, which is a + stand-in for the empty set. + + >>> Bbox.null() + Bbox([[inf, inf], [-inf, -inf]]) + + Adding points to the null bbox will give you the bbox of those points. + + >>> box = Bbox.null() + >>> box.update_from_data_xy([[1, 1]]) + >>> box + Bbox([[1.0, 1.0], [1.0, 1.0]]) + >>> box.update_from_data_xy([[2, 3], [3, 2]], ignore=False) + >>> box + Bbox([[1.0, 1.0], [3.0, 3.0]]) + + Setting ``ignore=True`` is equivalent to starting over from a null bbox. + + >>> box.update_from_data_xy([[1, 1]], ignore=True) + >>> box + Bbox([[1.0, 1.0], [1.0, 1.0]]) + + .. warning:: + + It is recommended to always specify ``ignore`` explicitly. If not, the + default value of ``ignore`` can be changed at any time by code with + access to your Bbox, for example using the method `~.Bbox.ignore`. + + **Properties of the ``null`` bbox** + + .. note:: + + The current behavior of `Bbox.null()` may be surprising as it does + not have all of the properties of the "empty set", and as such does + not behave like a "zero" object in the mathematical sense. We may + change that in the future (with a deprecation period). + + The null bbox is the identity for intersections + + >>> Bbox.intersection(Bbox([[1, 1], [3, 7]]), Bbox.null()) + Bbox([[1.0, 1.0], [3.0, 7.0]]) + + except with itself, where it returns the full space. + + >>> Bbox.intersection(Bbox.null(), Bbox.null()) + Bbox([[-inf, -inf], [inf, inf]]) + + A union containing null will always return the full space (not the other + set!) + + >>> Bbox.union([Bbox([[0, 0], [0, 0]]), Bbox.null()]) + Bbox([[-inf, -inf], [inf, inf]]) + """ + + def __init__(self, points, **kwargs): + """ + Parameters + ---------- + points : `~numpy.ndarray` + A (2, 2) array of the form ``[[x0, y0], [x1, y1]]``. + """ + super().__init__(**kwargs) + points = np.asarray(points, float) + if points.shape != (2, 2): + raise ValueError('Bbox points must be of the form ' + '"[[x0, y0], [x1, y1]]".') + self._points = points + self._minpos = _default_minpos.copy() + self._ignore = True + # it is helpful in some contexts to know if the bbox is a + # default or has been mutated; we store the orig points to + # support the mutated methods + self._points_orig = self._points.copy() + if DEBUG: + ___init__ = __init__ + + def __init__(self, points, **kwargs): + self._check(points) + self.___init__(points, **kwargs) + + def invalidate(self): + self._check(self._points) + super().invalidate() + + def frozen(self): + # docstring inherited + frozen_bbox = super().frozen() + frozen_bbox._minpos = self.minpos.copy() + return frozen_bbox + + @staticmethod + def unit(): + """Create a new unit `Bbox` from (0, 0) to (1, 1).""" + return Bbox([[0, 0], [1, 1]]) + + @staticmethod + def null(): + """Create a new null `Bbox` from (inf, inf) to (-inf, -inf).""" + return Bbox([[np.inf, np.inf], [-np.inf, -np.inf]]) + + @staticmethod + def from_bounds(x0, y0, width, height): + """ + Create a new `Bbox` from *x0*, *y0*, *width* and *height*. + + *width* and *height* may be negative. + """ + return Bbox.from_extents(x0, y0, x0 + width, y0 + height) + + @staticmethod + def from_extents(*args, minpos=None): + """ + Create a new Bbox from *left*, *bottom*, *right* and *top*. + + The *y*-axis increases upwards. + + Parameters + ---------- + left, bottom, right, top : float + The four extents of the bounding box. + minpos : float or None + If this is supplied, the Bbox will have a minimum positive value + set. This is useful when dealing with logarithmic scales and other + scales where negative bounds result in floating point errors. + """ + bbox = Bbox(np.reshape(args, (2, 2))) + if minpos is not None: + bbox._minpos[:] = minpos + return bbox + + def __format__(self, fmt): + return ( + 'Bbox(x0={0.x0:{1}}, y0={0.y0:{1}}, x1={0.x1:{1}}, y1={0.y1:{1}})'. + format(self, fmt)) + + def __str__(self): + return format(self, '') + + def __repr__(self): + return 'Bbox([[{0.x0}, {0.y0}], [{0.x1}, {0.y1}]])'.format(self) + + def ignore(self, value): + """ + Set whether the existing bounds of the box should be ignored + by subsequent calls to :meth:`update_from_data_xy`. + + value : bool + - When ``True``, subsequent calls to `update_from_data_xy` will + ignore the existing bounds of the `Bbox`. + - When ``False``, subsequent calls to `update_from_data_xy` will + include the existing bounds of the `Bbox`. + """ + self._ignore = value + + def update_from_path(self, path, ignore=None, updatex=True, updatey=True): + """ + Update the bounds of the `Bbox` to contain the vertices of the + provided path. After updating, the bounds will have positive *width* + and *height*; *x0* and *y0* will be the minimal values. + + Parameters + ---------- + path : `~matplotlib.path.Path` + ignore : bool, optional + - When ``True``, ignore the existing bounds of the `Bbox`. + - When ``False``, include the existing bounds of the `Bbox`. + - When ``None``, use the last value passed to :meth:`ignore`. + updatex, updatey : bool, default: True + When ``True``, update the x/y values. + """ + if ignore is None: + ignore = self._ignore + + if path.vertices.size == 0: + return + + points, minpos, changed = update_path_extents( + path, None, self._points, self._minpos, ignore) + + if changed: + self.invalidate() + if updatex: + self._points[:, 0] = points[:, 0] + self._minpos[0] = minpos[0] + if updatey: + self._points[:, 1] = points[:, 1] + self._minpos[1] = minpos[1] + + def update_from_data_x(self, x, ignore=None): + """ + Update the x-bounds of the `Bbox` based on the passed in data. After + updating, the bounds will have positive *width*, and *x0* will be the + minimal value. + + Parameters + ---------- + x : `~numpy.ndarray` + Array of x-values. + ignore : bool, optional + - When ``True``, ignore the existing bounds of the `Bbox`. + - When ``False``, include the existing bounds of the `Bbox`. + - When ``None``, use the last value passed to :meth:`ignore`. + """ + x = np.ravel(x) + self.update_from_data_xy(np.column_stack([x, np.ones(x.size)]), + ignore=ignore, updatey=False) + + def update_from_data_y(self, y, ignore=None): + """ + Update the y-bounds of the `Bbox` based on the passed in data. After + updating, the bounds will have positive *height*, and *y0* will be the + minimal value. + + Parameters + ---------- + y : `~numpy.ndarray` + Array of y-values. + ignore : bool, optional + - When ``True``, ignore the existing bounds of the `Bbox`. + - When ``False``, include the existing bounds of the `Bbox`. + - When ``None``, use the last value passed to :meth:`ignore`. + """ + y = np.ravel(y) + self.update_from_data_xy(np.column_stack([np.ones(y.size), y]), + ignore=ignore, updatex=False) + + def update_from_data_xy(self, xy, ignore=None, updatex=True, updatey=True): + """ + Update the `Bbox` bounds based on the passed in *xy* coordinates. + + After updating, the bounds will have positive *width* and *height*; + *x0* and *y0* will be the minimal values. + + Parameters + ---------- + xy : (N, 2) array-like + The (x, y) coordinates. + ignore : bool, optional + - When ``True``, ignore the existing bounds of the `Bbox`. + - When ``False``, include the existing bounds of the `Bbox`. + - When ``None``, use the last value passed to :meth:`ignore`. + updatex, updatey : bool, default: True + When ``True``, update the x/y values. + """ + if len(xy) == 0: + return + + path = Path(xy) + self.update_from_path(path, ignore=ignore, + updatex=updatex, updatey=updatey) + + @BboxBase.x0.setter + def x0(self, val): + self._points[0, 0] = val + self.invalidate() + + @BboxBase.y0.setter + def y0(self, val): + self._points[0, 1] = val + self.invalidate() + + @BboxBase.x1.setter + def x1(self, val): + self._points[1, 0] = val + self.invalidate() + + @BboxBase.y1.setter + def y1(self, val): + self._points[1, 1] = val + self.invalidate() + + @BboxBase.p0.setter + def p0(self, val): + self._points[0] = val + self.invalidate() + + @BboxBase.p1.setter + def p1(self, val): + self._points[1] = val + self.invalidate() + + @BboxBase.intervalx.setter + def intervalx(self, interval): + self._points[:, 0] = interval + self.invalidate() + + @BboxBase.intervaly.setter + def intervaly(self, interval): + self._points[:, 1] = interval + self.invalidate() + + @BboxBase.bounds.setter + def bounds(self, bounds): + l, b, w, h = bounds + points = np.array([[l, b], [l + w, b + h]], float) + if np.any(self._points != points): + self._points = points + self.invalidate() + + @property + def minpos(self): + """ + The minimum positive value in both directions within the Bbox. + + This is useful when dealing with logarithmic scales and other scales + where negative bounds result in floating point errors, and will be used + as the minimum extent instead of *p0*. + """ + return self._minpos + + @minpos.setter + def minpos(self, val): + self._minpos[:] = val + + @property + def minposx(self): + """ + The minimum positive value in the *x*-direction within the Bbox. + + This is useful when dealing with logarithmic scales and other scales + where negative bounds result in floating point errors, and will be used + as the minimum *x*-extent instead of *x0*. + """ + return self._minpos[0] + + @minposx.setter + def minposx(self, val): + self._minpos[0] = val + + @property + def minposy(self): + """ + The minimum positive value in the *y*-direction within the Bbox. + + This is useful when dealing with logarithmic scales and other scales + where negative bounds result in floating point errors, and will be used + as the minimum *y*-extent instead of *y0*. + """ + return self._minpos[1] + + @minposy.setter + def minposy(self, val): + self._minpos[1] = val + + def get_points(self): + """ + Get the points of the bounding box as an array of the form + ``[[x0, y0], [x1, y1]]``. + """ + self._invalid = 0 + return self._points + + def set_points(self, points): + """ + Set the points of the bounding box directly from an array of the form + ``[[x0, y0], [x1, y1]]``. No error checking is performed, as this + method is mainly for internal use. + """ + if np.any(self._points != points): + self._points = points + self.invalidate() + + def set(self, other): + """ + Set this bounding box from the "frozen" bounds of another `Bbox`. + """ + if np.any(self._points != other.get_points()): + self._points = other.get_points() + self.invalidate() + + def mutated(self): + """Return whether the bbox has changed since init.""" + return self.mutatedx() or self.mutatedy() + + def mutatedx(self): + """Return whether the x-limits have changed since init.""" + return (self._points[0, 0] != self._points_orig[0, 0] or + self._points[1, 0] != self._points_orig[1, 0]) + + def mutatedy(self): + """Return whether the y-limits have changed since init.""" + return (self._points[0, 1] != self._points_orig[0, 1] or + self._points[1, 1] != self._points_orig[1, 1]) + + +class TransformedBbox(BboxBase): + """ + A `Bbox` that is automatically transformed by a given + transform. When either the child bounding box or transform + changes, the bounds of this bbox will update accordingly. + """ + + def __init__(self, bbox, transform, **kwargs): + """ + Parameters + ---------- + bbox : `Bbox` + transform : `Transform` + """ + _api.check_isinstance(BboxBase, bbox=bbox) + _api.check_isinstance(Transform, transform=transform) + if transform.input_dims != 2 or transform.output_dims != 2: + raise ValueError( + "The input and output dimensions of 'transform' must be 2") + + super().__init__(**kwargs) + self._bbox = bbox + self._transform = transform + self.set_children(bbox, transform) + self._points = None + + __str__ = _make_str_method("_bbox", "_transform") + + def get_points(self): + # docstring inherited + if self._invalid: + p = self._bbox.get_points() + # Transform all four points, then make a new bounding box + # from the result, taking care to make the orientation the + # same. + points = self._transform.transform( + [[p[0, 0], p[0, 1]], + [p[1, 0], p[0, 1]], + [p[0, 0], p[1, 1]], + [p[1, 0], p[1, 1]]]) + points = np.ma.filled(points, 0.0) + + xs = min(points[:, 0]), max(points[:, 0]) + if p[0, 0] > p[1, 0]: + xs = xs[::-1] + + ys = min(points[:, 1]), max(points[:, 1]) + if p[0, 1] > p[1, 1]: + ys = ys[::-1] + + self._points = np.array([ + [xs[0], ys[0]], + [xs[1], ys[1]] + ]) + + self._invalid = 0 + return self._points + + if DEBUG: + _get_points = get_points + + def get_points(self): + points = self._get_points() + self._check(points) + return points + + def contains(self, x, y): + # Docstring inherited. + return self._bbox.contains(*self._transform.inverted().transform((x, y))) + + def fully_contains(self, x, y): + # Docstring inherited. + return self._bbox.fully_contains(*self._transform.inverted().transform((x, y))) + + +class LockableBbox(BboxBase): + """ + A `Bbox` where some elements may be locked at certain values. + + When the child bounding box changes, the bounds of this bbox will update + accordingly with the exception of the locked elements. + """ + def __init__(self, bbox, x0=None, y0=None, x1=None, y1=None, **kwargs): + """ + Parameters + ---------- + bbox : `Bbox` + The child bounding box to wrap. + + x0 : float or None + The locked value for x0, or None to leave unlocked. + + y0 : float or None + The locked value for y0, or None to leave unlocked. + + x1 : float or None + The locked value for x1, or None to leave unlocked. + + y1 : float or None + The locked value for y1, or None to leave unlocked. + + """ + _api.check_isinstance(BboxBase, bbox=bbox) + super().__init__(**kwargs) + self._bbox = bbox + self.set_children(bbox) + self._points = None + fp = [x0, y0, x1, y1] + mask = [val is None for val in fp] + self._locked_points = np.ma.array(fp, float, mask=mask).reshape((2, 2)) + + __str__ = _make_str_method("_bbox", "_locked_points") + + def get_points(self): + # docstring inherited + if self._invalid: + points = self._bbox.get_points() + self._points = np.where(self._locked_points.mask, + points, + self._locked_points) + self._invalid = 0 + return self._points + + if DEBUG: + _get_points = get_points + + def get_points(self): + points = self._get_points() + self._check(points) + return points + + @property + def locked_x0(self): + """ + float or None: The value used for the locked x0. + """ + if self._locked_points.mask[0, 0]: + return None + else: + return self._locked_points[0, 0] + + @locked_x0.setter + def locked_x0(self, x0): + self._locked_points.mask[0, 0] = x0 is None + self._locked_points.data[0, 0] = x0 + self.invalidate() + + @property + def locked_y0(self): + """ + float or None: The value used for the locked y0. + """ + if self._locked_points.mask[0, 1]: + return None + else: + return self._locked_points[0, 1] + + @locked_y0.setter + def locked_y0(self, y0): + self._locked_points.mask[0, 1] = y0 is None + self._locked_points.data[0, 1] = y0 + self.invalidate() + + @property + def locked_x1(self): + """ + float or None: The value used for the locked x1. + """ + if self._locked_points.mask[1, 0]: + return None + else: + return self._locked_points[1, 0] + + @locked_x1.setter + def locked_x1(self, x1): + self._locked_points.mask[1, 0] = x1 is None + self._locked_points.data[1, 0] = x1 + self.invalidate() + + @property + def locked_y1(self): + """ + float or None: The value used for the locked y1. + """ + if self._locked_points.mask[1, 1]: + return None + else: + return self._locked_points[1, 1] + + @locked_y1.setter + def locked_y1(self, y1): + self._locked_points.mask[1, 1] = y1 is None + self._locked_points.data[1, 1] = y1 + self.invalidate() + + +class Transform(TransformNode): + """ + The base class of all `TransformNode` instances that + actually perform a transformation. + + All non-affine transformations should be subclasses of this class. + New affine transformations should be subclasses of `Affine2D`. + + Subclasses of this class should override the following members (at + minimum): + + - :attr:`input_dims` + - :attr:`output_dims` + - :meth:`transform` + - :meth:`inverted` (if an inverse exists) + + The following attributes may be overridden if the default is unsuitable: + + - :attr:`is_separable` (defaults to True for 1D -> 1D transforms, False + otherwise) + - :attr:`has_inverse` (defaults to True if :meth:`inverted` is overridden, + False otherwise) + + If the transform needs to do something non-standard with + `matplotlib.path.Path` objects, such as adding curves + where there were once line segments, it should override: + + - :meth:`transform_path` + """ + + input_dims = None + """ + The number of input dimensions of this transform. + Must be overridden (with integers) in the subclass. + """ + + output_dims = None + """ + The number of output dimensions of this transform. + Must be overridden (with integers) in the subclass. + """ + + is_separable = False + """True if this transform is separable in the x- and y- dimensions.""" + + has_inverse = False + """True if this transform has a corresponding inverse transform.""" + + def __init_subclass__(cls): + # 1d transforms are always separable; we assume higher-dimensional ones + # are not but subclasses can also directly set is_separable -- this is + # verified by checking whether "is_separable" appears more than once in + # the class's MRO (it appears once in Transform). + if (sum("is_separable" in vars(parent) for parent in cls.__mro__) == 1 + and cls.input_dims == cls.output_dims == 1): + cls.is_separable = True + # Transform.inverted raises NotImplementedError; we assume that if this + # is overridden then the transform is invertible but subclass can also + # directly set has_inverse. + if (sum("has_inverse" in vars(parent) for parent in cls.__mro__) == 1 + and hasattr(cls, "inverted") + and cls.inverted is not Transform.inverted): + cls.has_inverse = True + + def __add__(self, other): + """ + Compose two transforms together so that *self* is followed by *other*. + + ``A + B`` returns a transform ``C`` so that + ``C.transform(x) == B.transform(A.transform(x))``. + """ + return (composite_transform_factory(self, other) + if isinstance(other, Transform) else + NotImplemented) + + # Equality is based on object identity for `Transform`s (so we don't + # override `__eq__`), but some subclasses, such as TransformWrapper & + # AffineBase, override this behavior. + + def _iter_break_from_left_to_right(self): + """ + Return an iterator breaking down this transform stack from left to + right recursively. If self == ((A, N), A) then the result will be an + iterator which yields I : ((A, N), A), followed by A : (N, A), + followed by (A, N) : (A), but not ((A, N), A) : I. + + This is equivalent to flattening the stack then yielding + ``flat_stack[:i], flat_stack[i:]`` where i=0..(n-1). + """ + yield IdentityTransform(), self + + @property + def depth(self): + """ + Return the number of transforms which have been chained + together to form this Transform instance. + + .. note:: + + For the special case of a Composite transform, the maximum depth + of the two is returned. + + """ + return 1 + + def contains_branch(self, other): + """ + Return whether the given transform is a sub-tree of this transform. + + This routine uses transform equality to identify sub-trees, therefore + in many situations it is object id which will be used. + + For the case where the given transform represents the whole + of this transform, returns True. + """ + if self.depth < other.depth: + return False + + # check that a subtree is equal to other (starting from self) + for _, sub_tree in self._iter_break_from_left_to_right(): + if sub_tree == other: + return True + return False + + def contains_branch_seperately(self, other_transform): + """ + Return whether the given branch is a sub-tree of this transform on + each separate dimension. + + A common use for this method is to identify if a transform is a blended + transform containing an Axes' data transform. e.g.:: + + x_isdata, y_isdata = trans.contains_branch_seperately(ax.transData) + + """ + if self.output_dims != 2: + raise ValueError('contains_branch_seperately only supports ' + 'transforms with 2 output dimensions') + # for a non-blended transform each separate dimension is the same, so + # just return the appropriate shape. + return (self.contains_branch(other_transform), ) * 2 + + def __sub__(self, other): + """ + Compose *self* with the inverse of *other*, cancelling identical terms + if any:: + + # In general: + A - B == A + B.inverted() + # (but see note regarding frozen transforms below). + + # If A "ends with" B (i.e. A == A' + B for some A') we can cancel + # out B: + (A' + B) - B == A' + + # Likewise, if B "starts with" A (B = A + B'), we can cancel out A: + A - (A + B') == B'.inverted() == B'^-1 + + Cancellation (rather than naively returning ``A + B.inverted()``) is + important for multiple reasons: + + - It avoids floating-point inaccuracies when computing the inverse of + B: ``B - B`` is guaranteed to cancel out exactly (resulting in the + identity transform), whereas ``B + B.inverted()`` may differ by a + small epsilon. + - ``B.inverted()`` always returns a frozen transform: if one computes + ``A + B + B.inverted()`` and later mutates ``B``, then + ``B.inverted()`` won't be updated and the last two terms won't cancel + out anymore; on the other hand, ``A + B - B`` will always be equal to + ``A`` even if ``B`` is mutated. + """ + # we only know how to do this operation if other is a Transform. + if not isinstance(other, Transform): + return NotImplemented + for remainder, sub_tree in self._iter_break_from_left_to_right(): + if sub_tree == other: + return remainder + for remainder, sub_tree in other._iter_break_from_left_to_right(): + if sub_tree == self: + if not remainder.has_inverse: + raise ValueError( + "The shortcut cannot be computed since 'other' " + "includes a non-invertible component") + return remainder.inverted() + # if we have got this far, then there was no shortcut possible + if other.has_inverse: + return self + other.inverted() + else: + raise ValueError('It is not possible to compute transA - transB ' + 'since transB cannot be inverted and there is no ' + 'shortcut possible.') + + def __array__(self, *args, **kwargs): + """Array interface to get at this Transform's affine matrix.""" + return self.get_affine().get_matrix() + + def transform(self, values): + """ + Apply this transformation on the given array of *values*. + + Parameters + ---------- + values : array-like + The input values as an array of length :attr:`input_dims` or + shape (N, :attr:`input_dims`). + + Returns + ------- + array + The output values as an array of length :attr:`output_dims` or + shape (N, :attr:`output_dims`), depending on the input. + """ + # Ensure that values is a 2d array (but remember whether + # we started with a 1d or 2d array). + values = np.asanyarray(values) + ndim = values.ndim + values = values.reshape((-1, self.input_dims)) + + # Transform the values + res = self.transform_affine(self.transform_non_affine(values)) + + # Convert the result back to the shape of the input values. + if ndim == 0: + assert not np.ma.is_masked(res) # just to be on the safe side + return res[0, 0] + if ndim == 1: + return res.reshape(-1) + elif ndim == 2: + return res + raise ValueError( + "Input values must have shape (N, {dims}) or ({dims},)" + .format(dims=self.input_dims)) + + def transform_affine(self, values): + """ + Apply only the affine part of this transformation on the + given array of values. + + ``transform(values)`` is always equivalent to + ``transform_affine(transform_non_affine(values))``. + + In non-affine transformations, this is generally a no-op. In + affine transformations, this is equivalent to + ``transform(values)``. + + Parameters + ---------- + values : array + The input values as an array of length :attr:`input_dims` or + shape (N, :attr:`input_dims`). + + Returns + ------- + array + The output values as an array of length :attr:`output_dims` or + shape (N, :attr:`output_dims`), depending on the input. + """ + return self.get_affine().transform(values) + + def transform_non_affine(self, values): + """ + Apply only the non-affine part of this transformation. + + ``transform(values)`` is always equivalent to + ``transform_affine(transform_non_affine(values))``. + + In non-affine transformations, this is generally equivalent to + ``transform(values)``. In affine transformations, this is + always a no-op. + + Parameters + ---------- + values : array + The input values as an array of length :attr:`input_dims` or + shape (N, :attr:`input_dims`). + + Returns + ------- + array + The output values as an array of length :attr:`output_dims` or + shape (N, :attr:`output_dims`), depending on the input. + """ + return values + + def transform_bbox(self, bbox): + """ + Transform the given bounding box. + + For smarter transforms including caching (a common requirement in + Matplotlib), see `TransformedBbox`. + """ + return Bbox(self.transform(bbox.get_points())) + + def get_affine(self): + """Get the affine part of this transform.""" + return IdentityTransform() + + def get_matrix(self): + """Get the matrix for the affine part of this transform.""" + return self.get_affine().get_matrix() + + def transform_point(self, point): + """ + Return a transformed point. + + This function is only kept for backcompatibility; the more general + `.transform` method is capable of transforming both a list of points + and a single point. + + The point is given as a sequence of length :attr:`input_dims`. + The transformed point is returned as a sequence of length + :attr:`output_dims`. + """ + if len(point) != self.input_dims: + raise ValueError("The length of 'point' must be 'self.input_dims'") + return self.transform(point) + + def transform_path(self, path): + """ + Apply the transform to `.Path` *path*, returning a new `.Path`. + + In some cases, this transform may insert curves into the path + that began as line segments. + """ + return self.transform_path_affine(self.transform_path_non_affine(path)) + + def transform_path_affine(self, path): + """ + Apply the affine part of this transform to `.Path` *path*, returning a + new `.Path`. + + ``transform_path(path)`` is equivalent to + ``transform_path_affine(transform_path_non_affine(values))``. + """ + return self.get_affine().transform_path_affine(path) + + def transform_path_non_affine(self, path): + """ + Apply the non-affine part of this transform to `.Path` *path*, + returning a new `.Path`. + + ``transform_path(path)`` is equivalent to + ``transform_path_affine(transform_path_non_affine(values))``. + """ + x = self.transform_non_affine(path.vertices) + return Path._fast_from_codes_and_verts(x, path.codes, path) + + def transform_angles(self, angles, pts, radians=False, pushoff=1e-5): + """ + Transform a set of angles anchored at specific locations. + + Parameters + ---------- + angles : (N,) array-like + The angles to transform. + pts : (N, 2) array-like + The points where the angles are anchored. + radians : bool, default: False + Whether *angles* are radians or degrees. + pushoff : float + For each point in *pts* and angle in *angles*, the transformed + angle is computed by transforming a segment of length *pushoff* + starting at that point and making that angle relative to the + horizontal axis, and measuring the angle between the horizontal + axis and the transformed segment. + + Returns + ------- + (N,) array + """ + # Must be 2D + if self.input_dims != 2 or self.output_dims != 2: + raise NotImplementedError('Only defined in 2D') + angles = np.asarray(angles) + pts = np.asarray(pts) + _api.check_shape((None, 2), pts=pts) + _api.check_shape((None,), angles=angles) + if len(angles) != len(pts): + raise ValueError("There must be as many 'angles' as 'pts'") + # Convert to radians if desired + if not radians: + angles = np.deg2rad(angles) + # Move a short distance away + pts2 = pts + pushoff * np.column_stack([np.cos(angles), + np.sin(angles)]) + # Transform both sets of points + tpts = self.transform(pts) + tpts2 = self.transform(pts2) + # Calculate transformed angles + d = tpts2 - tpts + a = np.arctan2(d[:, 1], d[:, 0]) + # Convert back to degrees if desired + if not radians: + a = np.rad2deg(a) + return a + + def inverted(self): + """ + Return the corresponding inverse transformation. + + It holds ``x == self.inverted().transform(self.transform(x))``. + + The return value of this method should be treated as + temporary. An update to *self* does not cause a corresponding + update to its inverted copy. + """ + raise NotImplementedError() + + +class TransformWrapper(Transform): + """ + A helper class that holds a single child transform and acts + equivalently to it. + + This is useful if a node of the transform tree must be replaced at + run time with a transform of a different type. This class allows + that replacement to correctly trigger invalidation. + + `TransformWrapper` instances must have the same input and output dimensions + during their entire lifetime, so the child transform may only be replaced + with another child transform of the same dimensions. + """ + + pass_through = True + + def __init__(self, child): + """ + *child*: A `Transform` instance. This child may later + be replaced with :meth:`set`. + """ + _api.check_isinstance(Transform, child=child) + super().__init__() + self.set(child) + + def __eq__(self, other): + return self._child.__eq__(other) + + __str__ = _make_str_method("_child") + + def frozen(self): + # docstring inherited + return self._child.frozen() + + def set(self, child): + """ + Replace the current child of this transform with another one. + + The new child must have the same number of input and output + dimensions as the current child. + """ + if hasattr(self, "_child"): # Absent during init. + self.invalidate() + new_dims = (child.input_dims, child.output_dims) + old_dims = (self._child.input_dims, self._child.output_dims) + if new_dims != old_dims: + raise ValueError( + f"The input and output dims of the new child {new_dims} " + f"do not match those of current child {old_dims}") + self._child._parents.pop(id(self), None) + + self._child = child + self.set_children(child) + + self.transform = child.transform + self.transform_affine = child.transform_affine + self.transform_non_affine = child.transform_non_affine + self.transform_path = child.transform_path + self.transform_path_affine = child.transform_path_affine + self.transform_path_non_affine = child.transform_path_non_affine + self.get_affine = child.get_affine + self.inverted = child.inverted + self.get_matrix = child.get_matrix + # note we do not wrap other properties here since the transform's + # child can be changed with WrappedTransform.set and so checking + # is_affine and other such properties may be dangerous. + + self._invalid = 0 + self.invalidate() + self._invalid = 0 + + input_dims = property(lambda self: self._child.input_dims) + output_dims = property(lambda self: self._child.output_dims) + is_affine = property(lambda self: self._child.is_affine) + is_separable = property(lambda self: self._child.is_separable) + has_inverse = property(lambda self: self._child.has_inverse) + + +class AffineBase(Transform): + """ + The base class of all affine transformations of any number of dimensions. + """ + is_affine = True + + def __init__(self, *args, **kwargs): + super().__init__(*args, **kwargs) + self._inverted = None + + def __array__(self, *args, **kwargs): + # optimises the access of the transform matrix vs. the superclass + return self.get_matrix() + + def __eq__(self, other): + if getattr(other, "is_affine", False) and hasattr(other, "get_matrix"): + return (self.get_matrix() == other.get_matrix()).all() + return NotImplemented + + def transform(self, values): + # docstring inherited + return self.transform_affine(values) + + def transform_affine(self, values): + # docstring inherited + raise NotImplementedError('Affine subclasses should override this ' + 'method.') + + def transform_non_affine(self, values): + # docstring inherited + return values + + def transform_path(self, path): + # docstring inherited + return self.transform_path_affine(path) + + def transform_path_affine(self, path): + # docstring inherited + return Path(self.transform_affine(path.vertices), + path.codes, path._interpolation_steps) + + def transform_path_non_affine(self, path): + # docstring inherited + return path + + def get_affine(self): + # docstring inherited + return self + + +class Affine2DBase(AffineBase): + """ + The base class of all 2D affine transformations. + + 2D affine transformations are performed using a 3x3 numpy array:: + + a c e + b d f + 0 0 1 + + This class provides the read-only interface. For a mutable 2D + affine transformation, use `Affine2D`. + + Subclasses of this class will generally only need to override a + constructor and `~.Transform.get_matrix` that generates a custom 3x3 matrix. + """ + input_dims = 2 + output_dims = 2 + + def frozen(self): + # docstring inherited + return Affine2D(self.get_matrix().copy()) + + @property + def is_separable(self): + mtx = self.get_matrix() + return mtx[0, 1] == mtx[1, 0] == 0.0 + + def to_values(self): + """ + Return the values of the matrix as an ``(a, b, c, d, e, f)`` tuple. + """ + mtx = self.get_matrix() + return tuple(mtx[:2].swapaxes(0, 1).flat) + + def transform_affine(self, values): + mtx = self.get_matrix() + if isinstance(values, np.ma.MaskedArray): + tpoints = affine_transform(values.data, mtx) + return np.ma.MaskedArray(tpoints, mask=np.ma.getmask(values)) + return affine_transform(values, mtx) + + if DEBUG: + _transform_affine = transform_affine + + def transform_affine(self, values): + # docstring inherited + # The major speed trap here is just converting to the + # points to an array in the first place. If we can use + # more arrays upstream, that should help here. + if not isinstance(values, np.ndarray): + _api.warn_external( + f'A non-numpy array of type {type(values)} was passed in ' + f'for transformation, which results in poor performance.') + return self._transform_affine(values) + + def inverted(self): + # docstring inherited + if self._inverted is None or self._invalid: + mtx = self.get_matrix() + shorthand_name = None + if self._shorthand_name: + shorthand_name = '(%s)-1' % self._shorthand_name + self._inverted = Affine2D(inv(mtx), shorthand_name=shorthand_name) + self._invalid = 0 + return self._inverted + + +class Affine2D(Affine2DBase): + """ + A mutable 2D affine transformation. + """ + + def __init__(self, matrix=None, **kwargs): + """ + Initialize an Affine transform from a 3x3 numpy float array:: + + a c e + b d f + 0 0 1 + + If *matrix* is None, initialize with the identity transform. + """ + super().__init__(**kwargs) + if matrix is None: + # A bit faster than np.identity(3). + matrix = IdentityTransform._mtx + self._mtx = matrix.copy() + self._invalid = 0 + + _base_str = _make_str_method("_mtx") + + def __str__(self): + return (self._base_str() + if (self._mtx != np.diag(np.diag(self._mtx))).any() + else f"Affine2D().scale({self._mtx[0, 0]}, {self._mtx[1, 1]})" + if self._mtx[0, 0] != self._mtx[1, 1] + else f"Affine2D().scale({self._mtx[0, 0]})") + + @staticmethod + def from_values(a, b, c, d, e, f): + """ + Create a new Affine2D instance from the given values:: + + a c e + b d f + 0 0 1 + + . + """ + return Affine2D( + np.array([a, c, e, b, d, f, 0.0, 0.0, 1.0], float).reshape((3, 3))) + + def get_matrix(self): + """ + Get the underlying transformation matrix as a 3x3 array:: + + a c e + b d f + 0 0 1 + + . + """ + if self._invalid: + self._inverted = None + self._invalid = 0 + return self._mtx + + def set_matrix(self, mtx): + """ + Set the underlying transformation matrix from a 3x3 array:: + + a c e + b d f + 0 0 1 + + . + """ + self._mtx = mtx + self.invalidate() + + def set(self, other): + """ + Set this transformation from the frozen copy of another + `Affine2DBase` object. + """ + _api.check_isinstance(Affine2DBase, other=other) + self._mtx = other.get_matrix() + self.invalidate() + + def clear(self): + """ + Reset the underlying matrix to the identity transform. + """ + # A bit faster than np.identity(3). + self._mtx = IdentityTransform._mtx.copy() + self.invalidate() + return self + + def rotate(self, theta): + """ + Add a rotation (in radians) to this transform in place. + + Returns *self*, so this method can easily be chained with more + calls to :meth:`rotate`, :meth:`rotate_deg`, :meth:`translate` + and :meth:`scale`. + """ + a = math.cos(theta) + b = math.sin(theta) + mtx = self._mtx + # Operating and assigning one scalar at a time is much faster. + (xx, xy, x0), (yx, yy, y0), _ = mtx.tolist() + # mtx = [[a -b 0], [b a 0], [0 0 1]] * mtx + mtx[0, 0] = a * xx - b * yx + mtx[0, 1] = a * xy - b * yy + mtx[0, 2] = a * x0 - b * y0 + mtx[1, 0] = b * xx + a * yx + mtx[1, 1] = b * xy + a * yy + mtx[1, 2] = b * x0 + a * y0 + self.invalidate() + return self + + def rotate_deg(self, degrees): + """ + Add a rotation (in degrees) to this transform in place. + + Returns *self*, so this method can easily be chained with more + calls to :meth:`rotate`, :meth:`rotate_deg`, :meth:`translate` + and :meth:`scale`. + """ + return self.rotate(math.radians(degrees)) + + def rotate_around(self, x, y, theta): + """ + Add a rotation (in radians) around the point (x, y) in place. + + Returns *self*, so this method can easily be chained with more + calls to :meth:`rotate`, :meth:`rotate_deg`, :meth:`translate` + and :meth:`scale`. + """ + return self.translate(-x, -y).rotate(theta).translate(x, y) + + def rotate_deg_around(self, x, y, degrees): + """ + Add a rotation (in degrees) around the point (x, y) in place. + + Returns *self*, so this method can easily be chained with more + calls to :meth:`rotate`, :meth:`rotate_deg`, :meth:`translate` + and :meth:`scale`. + """ + # Cast to float to avoid wraparound issues with uint8's + x, y = float(x), float(y) + return self.translate(-x, -y).rotate_deg(degrees).translate(x, y) + + def translate(self, tx, ty): + """ + Add a translation in place. + + Returns *self*, so this method can easily be chained with more + calls to :meth:`rotate`, :meth:`rotate_deg`, :meth:`translate` + and :meth:`scale`. + """ + self._mtx[0, 2] += tx + self._mtx[1, 2] += ty + self.invalidate() + return self + + def scale(self, sx, sy=None): + """ + Add a scale in place. + + If *sy* is None, the same scale is applied in both the *x*- and + *y*-directions. + + Returns *self*, so this method can easily be chained with more + calls to :meth:`rotate`, :meth:`rotate_deg`, :meth:`translate` + and :meth:`scale`. + """ + if sy is None: + sy = sx + # explicit element-wise scaling is fastest + self._mtx[0, 0] *= sx + self._mtx[0, 1] *= sx + self._mtx[0, 2] *= sx + self._mtx[1, 0] *= sy + self._mtx[1, 1] *= sy + self._mtx[1, 2] *= sy + self.invalidate() + return self + + def skew(self, xShear, yShear): + """ + Add a skew in place. + + *xShear* and *yShear* are the shear angles along the *x*- and + *y*-axes, respectively, in radians. + + Returns *self*, so this method can easily be chained with more + calls to :meth:`rotate`, :meth:`rotate_deg`, :meth:`translate` + and :meth:`scale`. + """ + rx = math.tan(xShear) + ry = math.tan(yShear) + mtx = self._mtx + # Operating and assigning one scalar at a time is much faster. + (xx, xy, x0), (yx, yy, y0), _ = mtx.tolist() + # mtx = [[1 rx 0], [ry 1 0], [0 0 1]] * mtx + mtx[0, 0] += rx * yx + mtx[0, 1] += rx * yy + mtx[0, 2] += rx * y0 + mtx[1, 0] += ry * xx + mtx[1, 1] += ry * xy + mtx[1, 2] += ry * x0 + self.invalidate() + return self + + def skew_deg(self, xShear, yShear): + """ + Add a skew in place. + + *xShear* and *yShear* are the shear angles along the *x*- and + *y*-axes, respectively, in degrees. + + Returns *self*, so this method can easily be chained with more + calls to :meth:`rotate`, :meth:`rotate_deg`, :meth:`translate` + and :meth:`scale`. + """ + return self.skew(math.radians(xShear), math.radians(yShear)) + + +class IdentityTransform(Affine2DBase): + """ + A special class that does one thing, the identity transform, in a + fast way. + """ + _mtx = np.identity(3) + + def frozen(self): + # docstring inherited + return self + + __str__ = _make_str_method() + + def get_matrix(self): + # docstring inherited + return self._mtx + + def transform(self, values): + # docstring inherited + return np.asanyarray(values) + + def transform_affine(self, values): + # docstring inherited + return np.asanyarray(values) + + def transform_non_affine(self, values): + # docstring inherited + return np.asanyarray(values) + + def transform_path(self, path): + # docstring inherited + return path + + def transform_path_affine(self, path): + # docstring inherited + return path + + def transform_path_non_affine(self, path): + # docstring inherited + return path + + def get_affine(self): + # docstring inherited + return self + + def inverted(self): + # docstring inherited + return self + + +class _BlendedMixin: + """Common methods for `BlendedGenericTransform` and `BlendedAffine2D`.""" + + def __eq__(self, other): + if isinstance(other, (BlendedAffine2D, BlendedGenericTransform)): + return (self._x == other._x) and (self._y == other._y) + elif self._x == self._y: + return self._x == other + else: + return NotImplemented + + def contains_branch_seperately(self, transform): + return (self._x.contains_branch(transform), + self._y.contains_branch(transform)) + + __str__ = _make_str_method("_x", "_y") + + +class BlendedGenericTransform(_BlendedMixin, Transform): + """ + A "blended" transform uses one transform for the *x*-direction, and + another transform for the *y*-direction. + + This "generic" version can handle any given child transform in the + *x*- and *y*-directions. + """ + input_dims = 2 + output_dims = 2 + is_separable = True + pass_through = True + + def __init__(self, x_transform, y_transform, **kwargs): + """ + Create a new "blended" transform using *x_transform* to transform the + *x*-axis and *y_transform* to transform the *y*-axis. + + You will generally not call this constructor directly but use the + `blended_transform_factory` function instead, which can determine + automatically which kind of blended transform to create. + """ + Transform.__init__(self, **kwargs) + self._x = x_transform + self._y = y_transform + self.set_children(x_transform, y_transform) + self._affine = None + + @property + def depth(self): + return max(self._x.depth, self._y.depth) + + def contains_branch(self, other): + # A blended transform cannot possibly contain a branch from two + # different transforms. + return False + + is_affine = property(lambda self: self._x.is_affine and self._y.is_affine) + has_inverse = property( + lambda self: self._x.has_inverse and self._y.has_inverse) + + def frozen(self): + # docstring inherited + return blended_transform_factory(self._x.frozen(), self._y.frozen()) + + def transform_non_affine(self, values): + # docstring inherited + if self._x.is_affine and self._y.is_affine: + return values + x = self._x + y = self._y + + if x == y and x.input_dims == 2: + return x.transform_non_affine(values) + + if x.input_dims == 2: + x_points = x.transform_non_affine(values)[:, 0:1] + else: + x_points = x.transform_non_affine(values[:, 0]) + x_points = x_points.reshape((len(x_points), 1)) + + if y.input_dims == 2: + y_points = y.transform_non_affine(values)[:, 1:] + else: + y_points = y.transform_non_affine(values[:, 1]) + y_points = y_points.reshape((len(y_points), 1)) + + if (isinstance(x_points, np.ma.MaskedArray) or + isinstance(y_points, np.ma.MaskedArray)): + return np.ma.concatenate((x_points, y_points), 1) + else: + return np.concatenate((x_points, y_points), 1) + + def inverted(self): + # docstring inherited + return BlendedGenericTransform(self._x.inverted(), self._y.inverted()) + + def get_affine(self): + # docstring inherited + if self._invalid or self._affine is None: + if self._x == self._y: + self._affine = self._x.get_affine() + else: + x_mtx = self._x.get_affine().get_matrix() + y_mtx = self._y.get_affine().get_matrix() + # We already know the transforms are separable, so we can skip + # setting b and c to zero. + mtx = np.array([x_mtx[0], y_mtx[1], [0.0, 0.0, 1.0]]) + self._affine = Affine2D(mtx) + self._invalid = 0 + return self._affine + + +class BlendedAffine2D(_BlendedMixin, Affine2DBase): + """ + A "blended" transform uses one transform for the *x*-direction, and + another transform for the *y*-direction. + + This version is an optimization for the case where both child + transforms are of type `Affine2DBase`. + """ + + is_separable = True + + def __init__(self, x_transform, y_transform, **kwargs): + """ + Create a new "blended" transform using *x_transform* to transform the + *x*-axis and *y_transform* to transform the *y*-axis. + + Both *x_transform* and *y_transform* must be 2D affine transforms. + + You will generally not call this constructor directly but use the + `blended_transform_factory` function instead, which can determine + automatically which kind of blended transform to create. + """ + is_affine = x_transform.is_affine and y_transform.is_affine + is_separable = x_transform.is_separable and y_transform.is_separable + is_correct = is_affine and is_separable + if not is_correct: + raise ValueError("Both *x_transform* and *y_transform* must be 2D " + "affine transforms") + + Transform.__init__(self, **kwargs) + self._x = x_transform + self._y = y_transform + self.set_children(x_transform, y_transform) + + Affine2DBase.__init__(self) + self._mtx = None + + def get_matrix(self): + # docstring inherited + if self._invalid: + if self._x == self._y: + self._mtx = self._x.get_matrix() + else: + x_mtx = self._x.get_matrix() + y_mtx = self._y.get_matrix() + # We already know the transforms are separable, so we can skip + # setting b and c to zero. + self._mtx = np.array([x_mtx[0], y_mtx[1], [0.0, 0.0, 1.0]]) + self._inverted = None + self._invalid = 0 + return self._mtx + + +def blended_transform_factory(x_transform, y_transform): + """ + Create a new "blended" transform using *x_transform* to transform + the *x*-axis and *y_transform* to transform the *y*-axis. + + A faster version of the blended transform is returned for the case + where both child transforms are affine. + """ + if (isinstance(x_transform, Affine2DBase) and + isinstance(y_transform, Affine2DBase)): + return BlendedAffine2D(x_transform, y_transform) + return BlendedGenericTransform(x_transform, y_transform) + + +class CompositeGenericTransform(Transform): + """ + A composite transform formed by applying transform *a* then + transform *b*. + + This "generic" version can handle any two arbitrary + transformations. + """ + pass_through = True + + def __init__(self, a, b, **kwargs): + """ + Create a new composite transform that is the result of + applying transform *a* then transform *b*. + + You will generally not call this constructor directly but write ``a + + b`` instead, which will automatically choose the best kind of composite + transform instance to create. + """ + if a.output_dims != b.input_dims: + raise ValueError("The output dimension of 'a' must be equal to " + "the input dimensions of 'b'") + self.input_dims = a.input_dims + self.output_dims = b.output_dims + + super().__init__(**kwargs) + self._a = a + self._b = b + self.set_children(a, b) + + def frozen(self): + # docstring inherited + self._invalid = 0 + frozen = composite_transform_factory( + self._a.frozen(), self._b.frozen()) + if not isinstance(frozen, CompositeGenericTransform): + return frozen.frozen() + return frozen + + def _invalidate_internal(self, level, invalidating_node): + # When the left child is invalidated at AFFINE_ONLY level and the right child is + # non-affine, the composite transform is FULLY invalidated. + if invalidating_node is self._a and not self._b.is_affine: + level = Transform._INVALID_FULL + super()._invalidate_internal(level, invalidating_node) + + def __eq__(self, other): + if isinstance(other, (CompositeGenericTransform, CompositeAffine2D)): + return self is other or (self._a == other._a + and self._b == other._b) + else: + return False + + def _iter_break_from_left_to_right(self): + for left, right in self._a._iter_break_from_left_to_right(): + yield left, right + self._b + for left, right in self._b._iter_break_from_left_to_right(): + yield self._a + left, right + + def contains_branch_seperately(self, other_transform): + # docstring inherited + if self.output_dims != 2: + raise ValueError('contains_branch_seperately only supports ' + 'transforms with 2 output dimensions') + if self == other_transform: + return (True, True) + return self._b.contains_branch_seperately(other_transform) + + depth = property(lambda self: self._a.depth + self._b.depth) + is_affine = property(lambda self: self._a.is_affine and self._b.is_affine) + is_separable = property( + lambda self: self._a.is_separable and self._b.is_separable) + has_inverse = property( + lambda self: self._a.has_inverse and self._b.has_inverse) + + __str__ = _make_str_method("_a", "_b") + + def transform_affine(self, values): + # docstring inherited + return self.get_affine().transform(values) + + def transform_non_affine(self, values): + # docstring inherited + if self._a.is_affine and self._b.is_affine: + return values + elif not self._a.is_affine and self._b.is_affine: + return self._a.transform_non_affine(values) + else: + return self._b.transform_non_affine(self._a.transform(values)) + + def transform_path_non_affine(self, path): + # docstring inherited + if self._a.is_affine and self._b.is_affine: + return path + elif not self._a.is_affine and self._b.is_affine: + return self._a.transform_path_non_affine(path) + else: + return self._b.transform_path_non_affine( + self._a.transform_path(path)) + + def get_affine(self): + # docstring inherited + if not self._b.is_affine: + return self._b.get_affine() + else: + return Affine2D(np.dot(self._b.get_affine().get_matrix(), + self._a.get_affine().get_matrix())) + + def inverted(self): + # docstring inherited + return CompositeGenericTransform( + self._b.inverted(), self._a.inverted()) + + +class CompositeAffine2D(Affine2DBase): + """ + A composite transform formed by applying transform *a* then transform *b*. + + This version is an optimization that handles the case where both *a* + and *b* are 2D affines. + """ + def __init__(self, a, b, **kwargs): + """ + Create a new composite transform that is the result of + applying `Affine2DBase` *a* then `Affine2DBase` *b*. + + You will generally not call this constructor directly but write ``a + + b`` instead, which will automatically choose the best kind of composite + transform instance to create. + """ + if not a.is_affine or not b.is_affine: + raise ValueError("'a' and 'b' must be affine transforms") + if a.output_dims != b.input_dims: + raise ValueError("The output dimension of 'a' must be equal to " + "the input dimensions of 'b'") + self.input_dims = a.input_dims + self.output_dims = b.output_dims + + super().__init__(**kwargs) + self._a = a + self._b = b + self.set_children(a, b) + self._mtx = None + + @property + def depth(self): + return self._a.depth + self._b.depth + + def _iter_break_from_left_to_right(self): + for left, right in self._a._iter_break_from_left_to_right(): + yield left, right + self._b + for left, right in self._b._iter_break_from_left_to_right(): + yield self._a + left, right + + __str__ = _make_str_method("_a", "_b") + + def get_matrix(self): + # docstring inherited + if self._invalid: + self._mtx = np.dot( + self._b.get_matrix(), + self._a.get_matrix()) + self._inverted = None + self._invalid = 0 + return self._mtx + + +def composite_transform_factory(a, b): + """ + Create a new composite transform that is the result of applying + transform a then transform b. + + Shortcut versions of the blended transform are provided for the + case where both child transforms are affine, or one or the other + is the identity transform. + + Composite transforms may also be created using the '+' operator, + e.g.:: + + c = a + b + """ + # check to see if any of a or b are IdentityTransforms. We use + # isinstance here to guarantee that the transforms will *always* + # be IdentityTransforms. Since TransformWrappers are mutable, + # use of equality here would be wrong. + if isinstance(a, IdentityTransform): + return b + elif isinstance(b, IdentityTransform): + return a + elif isinstance(a, Affine2D) and isinstance(b, Affine2D): + return CompositeAffine2D(a, b) + return CompositeGenericTransform(a, b) + + +class BboxTransform(Affine2DBase): + """ + `BboxTransform` linearly transforms points from one `Bbox` to another. + """ + + is_separable = True + + def __init__(self, boxin, boxout, **kwargs): + """ + Create a new `BboxTransform` that linearly transforms + points from *boxin* to *boxout*. + """ + _api.check_isinstance(BboxBase, boxin=boxin, boxout=boxout) + + super().__init__(**kwargs) + self._boxin = boxin + self._boxout = boxout + self.set_children(boxin, boxout) + self._mtx = None + self._inverted = None + + __str__ = _make_str_method("_boxin", "_boxout") + + def get_matrix(self): + # docstring inherited + if self._invalid: + inl, inb, inw, inh = self._boxin.bounds + outl, outb, outw, outh = self._boxout.bounds + x_scale = outw / inw + y_scale = outh / inh + if DEBUG and (x_scale == 0 or y_scale == 0): + raise ValueError( + "Transforming from or to a singular bounding box") + self._mtx = np.array([[x_scale, 0.0, -inl*x_scale+outl], + [ 0.0, y_scale, -inb*y_scale+outb], + [ 0.0, 0.0, 1.0]], + float) + self._inverted = None + self._invalid = 0 + return self._mtx + + +class BboxTransformTo(Affine2DBase): + """ + `BboxTransformTo` is a transformation that linearly transforms points from + the unit bounding box to a given `Bbox`. + """ + + is_separable = True + + def __init__(self, boxout, **kwargs): + """ + Create a new `BboxTransformTo` that linearly transforms + points from the unit bounding box to *boxout*. + """ + _api.check_isinstance(BboxBase, boxout=boxout) + + super().__init__(**kwargs) + self._boxout = boxout + self.set_children(boxout) + self._mtx = None + self._inverted = None + + __str__ = _make_str_method("_boxout") + + def get_matrix(self): + # docstring inherited + if self._invalid: + outl, outb, outw, outh = self._boxout.bounds + if DEBUG and (outw == 0 or outh == 0): + raise ValueError("Transforming to a singular bounding box.") + self._mtx = np.array([[outw, 0.0, outl], + [ 0.0, outh, outb], + [ 0.0, 0.0, 1.0]], + float) + self._inverted = None + self._invalid = 0 + return self._mtx + + +@_api.deprecated("3.9") +class BboxTransformToMaxOnly(BboxTransformTo): + """ + `BboxTransformToMaxOnly` is a transformation that linearly transforms points from + the unit bounding box to a given `Bbox` with a fixed upper left of (0, 0). + """ + def get_matrix(self): + # docstring inherited + if self._invalid: + xmax, ymax = self._boxout.max + if DEBUG and (xmax == 0 or ymax == 0): + raise ValueError("Transforming to a singular bounding box.") + self._mtx = np.array([[xmax, 0.0, 0.0], + [ 0.0, ymax, 0.0], + [ 0.0, 0.0, 1.0]], + float) + self._inverted = None + self._invalid = 0 + return self._mtx + + +class BboxTransformFrom(Affine2DBase): + """ + `BboxTransformFrom` linearly transforms points from a given `Bbox` to the + unit bounding box. + """ + is_separable = True + + def __init__(self, boxin, **kwargs): + _api.check_isinstance(BboxBase, boxin=boxin) + + super().__init__(**kwargs) + self._boxin = boxin + self.set_children(boxin) + self._mtx = None + self._inverted = None + + __str__ = _make_str_method("_boxin") + + def get_matrix(self): + # docstring inherited + if self._invalid: + inl, inb, inw, inh = self._boxin.bounds + if DEBUG and (inw == 0 or inh == 0): + raise ValueError("Transforming from a singular bounding box.") + x_scale = 1.0 / inw + y_scale = 1.0 / inh + self._mtx = np.array([[x_scale, 0.0, -inl*x_scale], + [ 0.0, y_scale, -inb*y_scale], + [ 0.0, 0.0, 1.0]], + float) + self._inverted = None + self._invalid = 0 + return self._mtx + + +class ScaledTranslation(Affine2DBase): + """ + A transformation that translates by *xt* and *yt*, after *xt* and *yt* + have been transformed by *scale_trans*. + """ + def __init__(self, xt, yt, scale_trans, **kwargs): + super().__init__(**kwargs) + self._t = (xt, yt) + self._scale_trans = scale_trans + self.set_children(scale_trans) + self._mtx = None + self._inverted = None + + __str__ = _make_str_method("_t") + + def get_matrix(self): + # docstring inherited + if self._invalid: + # A bit faster than np.identity(3). + self._mtx = IdentityTransform._mtx.copy() + self._mtx[:2, 2] = self._scale_trans.transform(self._t) + self._invalid = 0 + self._inverted = None + return self._mtx + + +class _ScaledRotation(Affine2DBase): + """ + A transformation that applies rotation by *theta*, after transform by *trans_shift*. + """ + def __init__(self, theta, trans_shift): + super().__init__() + self._theta = theta + self._trans_shift = trans_shift + self._mtx = None + + def get_matrix(self): + if self._invalid: + transformed_coords = self._trans_shift.transform([[self._theta, 0]])[0] + adjusted_theta = transformed_coords[0] + rotation = Affine2D().rotate(adjusted_theta) + self._mtx = rotation.get_matrix() + return self._mtx + + +class AffineDeltaTransform(Affine2DBase): + r""" + A transform wrapper for transforming displacements between pairs of points. + + This class is intended to be used to transform displacements ("position + deltas") between pairs of points (e.g., as the ``offset_transform`` + of `.Collection`\s): given a transform ``t`` such that ``t = + AffineDeltaTransform(t) + offset``, ``AffineDeltaTransform`` + satisfies ``AffineDeltaTransform(a - b) == AffineDeltaTransform(a) - + AffineDeltaTransform(b)``. + + This is implemented by forcing the offset components of the transform + matrix to zero. + + This class is experimental as of 3.3, and the API may change. + """ + + pass_through = True + + def __init__(self, transform, **kwargs): + super().__init__(**kwargs) + self._base_transform = transform + self.set_children(transform) + + __str__ = _make_str_method("_base_transform") + + def get_matrix(self): + if self._invalid: + self._mtx = self._base_transform.get_matrix().copy() + self._mtx[:2, -1] = 0 + return self._mtx + + +class TransformedPath(TransformNode): + """ + A `TransformedPath` caches a non-affine transformed copy of the + `~.path.Path`. This cached copy is automatically updated when the + non-affine part of the transform changes. + + .. note:: + + Paths are considered immutable by this class. Any update to the + path's vertices/codes will not trigger a transform recomputation. + + """ + def __init__(self, path, transform): + """ + Parameters + ---------- + path : `~.path.Path` + transform : `Transform` + """ + _api.check_isinstance(Transform, transform=transform) + super().__init__() + self._path = path + self._transform = transform + self.set_children(transform) + self._transformed_path = None + self._transformed_points = None + + def _revalidate(self): + # only recompute if the invalidation includes the non_affine part of + # the transform + if (self._invalid == self._INVALID_FULL + or self._transformed_path is None): + self._transformed_path = \ + self._transform.transform_path_non_affine(self._path) + self._transformed_points = \ + Path._fast_from_codes_and_verts( + self._transform.transform_non_affine(self._path.vertices), + None, self._path) + self._invalid = 0 + + def get_transformed_points_and_affine(self): + """ + Return a copy of the child path, with the non-affine part of + the transform already applied, along with the affine part of + the path necessary to complete the transformation. Unlike + :meth:`get_transformed_path_and_affine`, no interpolation will + be performed. + """ + self._revalidate() + return self._transformed_points, self.get_affine() + + def get_transformed_path_and_affine(self): + """ + Return a copy of the child path, with the non-affine part of + the transform already applied, along with the affine part of + the path necessary to complete the transformation. + """ + self._revalidate() + return self._transformed_path, self.get_affine() + + def get_fully_transformed_path(self): + """ + Return a fully-transformed copy of the child path. + """ + self._revalidate() + return self._transform.transform_path_affine(self._transformed_path) + + def get_affine(self): + return self._transform.get_affine() + + +class TransformedPatchPath(TransformedPath): + """ + A `TransformedPatchPath` caches a non-affine transformed copy of the + `~.patches.Patch`. This cached copy is automatically updated when the + non-affine part of the transform or the patch changes. + """ + + def __init__(self, patch): + """ + Parameters + ---------- + patch : `~.patches.Patch` + """ + # Defer to TransformedPath.__init__. + super().__init__(patch.get_path(), patch.get_transform()) + self._patch = patch + + def _revalidate(self): + patch_path = self._patch.get_path() + # Force invalidation if the patch path changed; otherwise, let base + # class check invalidation. + if patch_path != self._path: + self._path = patch_path + self._transformed_path = None + super()._revalidate() + + +def nonsingular(vmin, vmax, expander=0.001, tiny=1e-15, increasing=True): + """ + Modify the endpoints of a range as needed to avoid singularities. + + Parameters + ---------- + vmin, vmax : float + The initial endpoints. + expander : float, default: 0.001 + Fractional amount by which *vmin* and *vmax* are expanded if + the original interval is too small, based on *tiny*. + tiny : float, default: 1e-15 + Threshold for the ratio of the interval to the maximum absolute + value of its endpoints. If the interval is smaller than + this, it will be expanded. This value should be around + 1e-15 or larger; otherwise the interval will be approaching + the double precision resolution limit. + increasing : bool, default: True + If True, swap *vmin*, *vmax* if *vmin* > *vmax*. + + Returns + ------- + vmin, vmax : float + Endpoints, expanded and/or swapped if necessary. + If either input is inf or NaN, or if both inputs are 0 or very + close to zero, it returns -*expander*, *expander*. + """ + + if (not np.isfinite(vmin)) or (not np.isfinite(vmax)): + return -expander, expander + + swapped = False + if vmax < vmin: + vmin, vmax = vmax, vmin + swapped = True + + # Expand vmin, vmax to float: if they were integer types, they can wrap + # around in abs (abs(np.int8(-128)) == -128) and vmax - vmin can overflow. + vmin, vmax = map(float, [vmin, vmax]) + + maxabsvalue = max(abs(vmin), abs(vmax)) + if maxabsvalue < (1e6 / tiny) * np.finfo(float).tiny: + vmin = -expander + vmax = expander + + elif vmax - vmin <= maxabsvalue * tiny: + if vmax == 0 and vmin == 0: + vmin = -expander + vmax = expander + else: + vmin -= expander*abs(vmin) + vmax += expander*abs(vmax) + + if swapped and not increasing: + vmin, vmax = vmax, vmin + return vmin, vmax + + +def interval_contains(interval, val): + """ + Check, inclusively, whether an interval includes a given value. + + Parameters + ---------- + interval : (float, float) + The endpoints of the interval. + val : float + Value to check is within interval. + + Returns + ------- + bool + Whether *val* is within the *interval*. + """ + a, b = interval + if a > b: + a, b = b, a + return a <= val <= b + + +def _interval_contains_close(interval, val, rtol=1e-10): + """ + Check, inclusively, whether an interval includes a given value, with the + interval expanded by a small tolerance to admit floating point errors. + + Parameters + ---------- + interval : (float, float) + The endpoints of the interval. + val : float + Value to check is within interval. + rtol : float, default: 1e-10 + Relative tolerance slippage allowed outside of the interval. + For an interval ``[a, b]``, values + ``a - rtol * (b - a) <= val <= b + rtol * (b - a)`` are considered + inside the interval. + + Returns + ------- + bool + Whether *val* is within the *interval* (with tolerance). + """ + a, b = interval + if a > b: + a, b = b, a + rtol = (b - a) * rtol + return a - rtol <= val <= b + rtol + + +def interval_contains_open(interval, val): + """ + Check, excluding endpoints, whether an interval includes a given value. + + Parameters + ---------- + interval : (float, float) + The endpoints of the interval. + val : float + Value to check is within interval. + + Returns + ------- + bool + Whether *val* is within the *interval*. + """ + a, b = interval + return a < val < b or a > val > b + + +def offset_copy(trans, fig=None, x=0.0, y=0.0, units='inches'): + """ + Return a new transform with an added offset. + + Parameters + ---------- + trans : `Transform` subclass + Any transform, to which offset will be applied. + fig : `~matplotlib.figure.Figure`, default: None + Current figure. It can be None if *units* are 'dots'. + x, y : float, default: 0.0 + The offset to apply. + units : {'inches', 'points', 'dots'}, default: 'inches' + Units of the offset. + + Returns + ------- + `Transform` subclass + Transform with applied offset. + """ + _api.check_in_list(['dots', 'points', 'inches'], units=units) + if units == 'dots': + return trans + Affine2D().translate(x, y) + if fig is None: + raise ValueError('For units of inches or points a fig kwarg is needed') + if units == 'points': + x /= 72.0 + y /= 72.0 + # Default units are 'inches' + return trans + ScaledTranslation(x, y, fig.dpi_scale_trans) diff --git a/shared/package-files/72/72e205b9a9b218ae34d97289ef976c2841b295d194d51da60f28cf3d4931c972/special_i0_ops.h b/shared/package-files/72/72e205b9a9b218ae34d97289ef976c2841b295d194d51da60f28cf3d4931c972/special_i0_ops.h new file mode 100644 index 0000000000000000000000000000000000000000..7d97d53724285982e6bf90dbb3b1e6c98bf9515d --- /dev/null +++ b/shared/package-files/72/72e205b9a9b218ae34d97289ef976c2841b295d194d51da60f28cf3d4931c972/special_i0_ops.h @@ -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 special_i0 { + 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::special_i0") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "special_i0(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 special_i0_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::special_i0") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "out") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "special_i0.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/86/8604d9d03786d0d509abb49e9f069337278ea988c244069ae8ca2c89acc2cb08/scanner.py b/shared/package-files/86/8604d9d03786d0d509abb49e9f069337278ea988c244069ae8ca2c89acc2cb08/scanner.py new file mode 100644 index 0000000000000000000000000000000000000000..7a61cfc2d24dceb3530988884f70f51f398d5855 --- /dev/null +++ b/shared/package-files/86/8604d9d03786d0d509abb49e9f069337278ea988c244069ae8ca2c89acc2cb08/scanner.py @@ -0,0 +1,73 @@ +"""JSON token scanner +""" +import re +try: + from _json import make_scanner as c_make_scanner +except ImportError: + c_make_scanner = None + +__all__ = ['make_scanner'] + +NUMBER_RE = re.compile( + r'(-?(?:0|[1-9]\d*))(\.\d+)?([eE][-+]?\d+)?', + (re.VERBOSE | re.MULTILINE | re.DOTALL)) + +def py_make_scanner(context): + parse_object = context.parse_object + parse_array = context.parse_array + parse_string = context.parse_string + match_number = NUMBER_RE.match + strict = context.strict + parse_float = context.parse_float + parse_int = context.parse_int + parse_constant = context.parse_constant + object_hook = context.object_hook + object_pairs_hook = context.object_pairs_hook + memo = context.memo + + def _scan_once(string, idx): + try: + nextchar = string[idx] + except IndexError: + raise StopIteration(idx) from None + + if nextchar == '"': + return parse_string(string, idx + 1, strict) + elif nextchar == '{': + return parse_object((string, idx + 1), strict, + _scan_once, object_hook, object_pairs_hook, memo) + elif nextchar == '[': + return parse_array((string, idx + 1), _scan_once) + elif nextchar == 'n' and string[idx:idx + 4] == 'null': + return None, idx + 4 + elif nextchar == 't' and string[idx:idx + 4] == 'true': + return True, idx + 4 + elif nextchar == 'f' and string[idx:idx + 5] == 'false': + return False, idx + 5 + + m = match_number(string, idx) + if m is not None: + integer, frac, exp = m.groups() + if frac or exp: + res = parse_float(integer + (frac or '') + (exp or '')) + else: + res = parse_int(integer) + return res, m.end() + elif nextchar == 'N' and string[idx:idx + 3] == 'NaN': + return parse_constant('NaN'), idx + 3 + elif nextchar == 'I' and string[idx:idx + 8] == 'Infinity': + return parse_constant('Infinity'), idx + 8 + elif nextchar == '-' and string[idx:idx + 9] == '-Infinity': + return parse_constant('-Infinity'), idx + 9 + else: + raise StopIteration(idx) + + def scan_once(string, idx): + try: + return _scan_once(string, idx) + finally: + memo.clear() + + return scan_once + +make_scanner = c_make_scanner or py_make_scanner diff --git a/shared/package-files/86/860f0ad50364ed3f90a37cce078edeba94b74e1bbf463548ea61b61f3004c7c3/inception.py b/shared/package-files/86/860f0ad50364ed3f90a37cce078edeba94b74e1bbf463548ea61b61f3004c7c3/inception.py new file mode 100644 index 0000000000000000000000000000000000000000..75c126697e99befd6ae7d3c1ee88fb8542e06d31 --- /dev/null +++ b/shared/package-files/86/860f0ad50364ed3f90a37cce078edeba94b74e1bbf463548ea61b61f3004c7c3/inception.py @@ -0,0 +1,273 @@ +import warnings +from functools import partial +from typing import Any, List, Optional, Union + +import torch +import torch.nn as nn +import torch.nn.functional as F +from torch import Tensor +from torchvision.models import inception as inception_module +from torchvision.models.inception import Inception_V3_Weights, InceptionOutputs + +from ...transforms._presets import ImageClassification +from .._api import register_model, Weights, WeightsEnum +from .._meta import _IMAGENET_CATEGORIES +from .._utils import _ovewrite_named_param, handle_legacy_interface +from .utils import _fuse_modules, _replace_relu, quantize_model + + +__all__ = [ + "QuantizableInception3", + "Inception_V3_QuantizedWeights", + "inception_v3", +] + + +class QuantizableBasicConv2d(inception_module.BasicConv2d): + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.relu = nn.ReLU() + + def forward(self, x: Tensor) -> Tensor: + x = self.conv(x) + x = self.bn(x) + x = self.relu(x) + return x + + def fuse_model(self, is_qat: Optional[bool] = None) -> None: + _fuse_modules(self, ["conv", "bn", "relu"], is_qat, inplace=True) + + +class QuantizableInceptionA(inception_module.InceptionA): + # TODO https://github.com/pytorch/vision/pull/4232#pullrequestreview-730461659 + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, conv_block=QuantizableBasicConv2d, **kwargs) # type: ignore[misc] + self.myop = nn.quantized.FloatFunctional() + + def forward(self, x: Tensor) -> Tensor: + outputs = self._forward(x) + return self.myop.cat(outputs, 1) + + +class QuantizableInceptionB(inception_module.InceptionB): + # TODO https://github.com/pytorch/vision/pull/4232#pullrequestreview-730461659 + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, conv_block=QuantizableBasicConv2d, **kwargs) # type: ignore[misc] + self.myop = nn.quantized.FloatFunctional() + + def forward(self, x: Tensor) -> Tensor: + outputs = self._forward(x) + return self.myop.cat(outputs, 1) + + +class QuantizableInceptionC(inception_module.InceptionC): + # TODO https://github.com/pytorch/vision/pull/4232#pullrequestreview-730461659 + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, conv_block=QuantizableBasicConv2d, **kwargs) # type: ignore[misc] + self.myop = nn.quantized.FloatFunctional() + + def forward(self, x: Tensor) -> Tensor: + outputs = self._forward(x) + return self.myop.cat(outputs, 1) + + +class QuantizableInceptionD(inception_module.InceptionD): + # TODO https://github.com/pytorch/vision/pull/4232#pullrequestreview-730461659 + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, conv_block=QuantizableBasicConv2d, **kwargs) # type: ignore[misc] + self.myop = nn.quantized.FloatFunctional() + + def forward(self, x: Tensor) -> Tensor: + outputs = self._forward(x) + return self.myop.cat(outputs, 1) + + +class QuantizableInceptionE(inception_module.InceptionE): + # TODO https://github.com/pytorch/vision/pull/4232#pullrequestreview-730461659 + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, conv_block=QuantizableBasicConv2d, **kwargs) # type: ignore[misc] + self.myop1 = nn.quantized.FloatFunctional() + self.myop2 = nn.quantized.FloatFunctional() + self.myop3 = nn.quantized.FloatFunctional() + + def _forward(self, x: Tensor) -> List[Tensor]: + branch1x1 = self.branch1x1(x) + + branch3x3 = self.branch3x3_1(x) + branch3x3 = [self.branch3x3_2a(branch3x3), self.branch3x3_2b(branch3x3)] + branch3x3 = self.myop1.cat(branch3x3, 1) + + branch3x3dbl = self.branch3x3dbl_1(x) + branch3x3dbl = self.branch3x3dbl_2(branch3x3dbl) + branch3x3dbl = [ + self.branch3x3dbl_3a(branch3x3dbl), + self.branch3x3dbl_3b(branch3x3dbl), + ] + branch3x3dbl = self.myop2.cat(branch3x3dbl, 1) + + branch_pool = F.avg_pool2d(x, kernel_size=3, stride=1, padding=1) + branch_pool = self.branch_pool(branch_pool) + + outputs = [branch1x1, branch3x3, branch3x3dbl, branch_pool] + return outputs + + def forward(self, x: Tensor) -> Tensor: + outputs = self._forward(x) + return self.myop3.cat(outputs, 1) + + +class QuantizableInceptionAux(inception_module.InceptionAux): + # TODO https://github.com/pytorch/vision/pull/4232#pullrequestreview-730461659 + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, conv_block=QuantizableBasicConv2d, **kwargs) # type: ignore[misc] + + +class QuantizableInception3(inception_module.Inception3): + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__( # type: ignore[misc] + *args, + inception_blocks=[ + QuantizableBasicConv2d, + QuantizableInceptionA, + QuantizableInceptionB, + QuantizableInceptionC, + QuantizableInceptionD, + QuantizableInceptionE, + QuantizableInceptionAux, + ], + **kwargs, + ) + self.quant = torch.ao.quantization.QuantStub() + self.dequant = torch.ao.quantization.DeQuantStub() + + def forward(self, x: Tensor) -> InceptionOutputs: + x = self._transform_input(x) + x = self.quant(x) + x, aux = self._forward(x) + x = self.dequant(x) + aux_defined = self.training and self.aux_logits + if torch.jit.is_scripting(): + if not aux_defined: + warnings.warn("Scripted QuantizableInception3 always returns QuantizableInception3 Tuple") + return InceptionOutputs(x, aux) + else: + return self.eager_outputs(x, aux) + + def fuse_model(self, is_qat: Optional[bool] = None) -> None: + r"""Fuse conv/bn/relu modules in inception model + + Fuse conv+bn+relu/ conv+relu/conv+bn modules to prepare for quantization. + Model is modified in place. Note that this operation does not change numerics + and the model after modification is in floating point + """ + + for m in self.modules(): + if type(m) is QuantizableBasicConv2d: + m.fuse_model(is_qat) + + +class Inception_V3_QuantizedWeights(WeightsEnum): + IMAGENET1K_FBGEMM_V1 = Weights( + url="https://download.pytorch.org/models/quantized/inception_v3_google_fbgemm-a2837893.pth", + transforms=partial(ImageClassification, crop_size=299, resize_size=342), + meta={ + "num_params": 27161264, + "min_size": (75, 75), + "categories": _IMAGENET_CATEGORIES, + "backend": "fbgemm", + "recipe": "https://github.com/pytorch/vision/tree/main/references/classification#post-training-quantized-models", + "unquantized": Inception_V3_Weights.IMAGENET1K_V1, + "_metrics": { + "ImageNet-1K": { + "acc@1": 77.176, + "acc@5": 93.354, + } + }, + "_ops": 5.713, + "_file_size": 23.146, + "_docs": """ + These weights were produced by doing Post Training Quantization (eager mode) on top of the unquantized + weights listed below. + """, + }, + ) + DEFAULT = IMAGENET1K_FBGEMM_V1 + + +@register_model(name="quantized_inception_v3") +@handle_legacy_interface( + weights=( + "pretrained", + lambda kwargs: Inception_V3_QuantizedWeights.IMAGENET1K_FBGEMM_V1 + if kwargs.get("quantize", False) + else Inception_V3_Weights.IMAGENET1K_V1, + ) +) +def inception_v3( + *, + weights: Optional[Union[Inception_V3_QuantizedWeights, Inception_V3_Weights]] = None, + progress: bool = True, + quantize: bool = False, + **kwargs: Any, +) -> QuantizableInception3: + r"""Inception v3 model architecture from + `Rethinking the Inception Architecture for Computer Vision `__. + + .. note:: + **Important**: In contrast to the other models the inception_v3 expects tensors with a size of + N x 3 x 299 x 299, so ensure your images are sized accordingly. + + .. note:: + Note that ``quantize = True`` returns a quantized model with 8 bit + weights. Quantized models only support inference and run on CPUs. + GPU inference is not yet supported. + + Args: + weights (:class:`~torchvision.models.quantization.Inception_V3_QuantizedWeights` or :class:`~torchvision.models.Inception_V3_Weights`, optional): The pretrained + weights for the model. See + :class:`~torchvision.models.quantization.Inception_V3_QuantizedWeights` below for + more details, and possible values. By default, no pre-trained + weights are used. + progress (bool, optional): If True, displays a progress bar of the download to stderr. + Default is True. + quantize (bool, optional): If True, return a quantized version of the model. + Default is False. + **kwargs: parameters passed to the ``torchvision.models.quantization.QuantizableInception3`` + base class. Please refer to the `source code + `_ + for more details about this class. + + .. autoclass:: torchvision.models.quantization.Inception_V3_QuantizedWeights + :members: + + .. autoclass:: torchvision.models.Inception_V3_Weights + :members: + :noindex: + """ + weights = (Inception_V3_QuantizedWeights if quantize else Inception_V3_Weights).verify(weights) + + original_aux_logits = kwargs.get("aux_logits", False) + if weights is not None: + if "transform_input" not in kwargs: + _ovewrite_named_param(kwargs, "transform_input", True) + _ovewrite_named_param(kwargs, "aux_logits", True) + _ovewrite_named_param(kwargs, "num_classes", len(weights.meta["categories"])) + if "backend" in weights.meta: + _ovewrite_named_param(kwargs, "backend", weights.meta["backend"]) + backend = kwargs.pop("backend", "fbgemm") + + model = QuantizableInception3(**kwargs) + _replace_relu(model) + if quantize: + quantize_model(model, backend) + + if weights is not None: + if quantize and not original_aux_logits: + model.aux_logits = False + model.AuxLogits = None + model.load_state_dict(weights.get_state_dict(progress=progress, check_hash=True)) + if not quantize and not original_aux_logits: + model.aux_logits = False + model.AuxLogits = None + + return model diff --git a/shared/package-files/86/861165ae9c764404016075808061a4ad002328a250d089266996f56315d06a43/wy370-nk b/shared/package-files/86/861165ae9c764404016075808061a4ad002328a250d089266996f56315d06a43/wy370-nk new file mode 100644 index 0000000000000000000000000000000000000000..c5ca323f8c5fb69e79f015a5911fd997f470e23b Binary files /dev/null and b/shared/package-files/86/861165ae9c764404016075808061a4ad002328a250d089266996f56315d06a43/wy370-nk differ diff --git a/shared/package-files/86/8612cc960e28b03d8f80b2a5abbea9547616a8f5d932703806913dbfcb435b24/__init__.pyi b/shared/package-files/86/8612cc960e28b03d8f80b2a5abbea9547616a8f5d932703806913dbfcb435b24/__init__.pyi new file mode 100644 index 0000000000000000000000000000000000000000..bf1bdcddef6e74f46ef53b96534b67e8bfd07f6e --- /dev/null +++ b/shared/package-files/86/8612cc960e28b03d8f80b2a5abbea9547616a8f5d932703806913dbfcb435b24/__init__.pyi @@ -0,0 +1,6 @@ +# Stubs for django.db.migrations (Python 3.6) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from .migration import Migration as Migration, swappable_dependency as swappable_dependency +from .operations import * diff --git a/shared/package-files/86/861337f388e3150b4317db138ff0d76814025c254bc1dca32e29785135e47bc4/__main__.py b/shared/package-files/86/861337f388e3150b4317db138ff0d76814025c254bc1dca32e29785135e47bc4/__main__.py new file mode 100644 index 0000000000000000000000000000000000000000..e67735275cf1b4047bd4b8cdd5590709b54b4853 --- /dev/null +++ b/shared/package-files/86/861337f388e3150b4317db138ff0d76814025c254bc1dca32e29785135e47bc4/__main__.py @@ -0,0 +1,15 @@ +#!/usr/bin/env python3 + +# Copyright (c) 2009, Giampaolo Rodola'. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +""" +Run unit tests. This is invoked by: +$ python -m psutil.tests +""" + +from .runner import main + + +main() diff --git a/shared/package-files/86/86134e6d44b473e7d2f9532e74cef3977f82beea6f0839844a58a49ed48c9f98/__init__.py b/shared/package-files/86/86134e6d44b473e7d2f9532e74cef3977f82beea6f0839844a58a49ed48c9f98/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..65579b4f01ba09695860717f1e6cd90d6e42b631 --- /dev/null +++ b/shared/package-files/86/86134e6d44b473e7d2f9532e74cef3977f82beea6f0839844a58a49ed48c9f98/__init__.py @@ -0,0 +1,5 @@ +from . import kaldi + +__all__ = [ + "kaldi", +] diff --git a/shared/package-files/86/86136b527a5acee0c3283d56a6b68fc6a3d60982eb3bb0fb6cc54e83ecc8d77a/Times-Roman.afm b/shared/package-files/86/86136b527a5acee0c3283d56a6b68fc6a3d60982eb3bb0fb6cc54e83ecc8d77a/Times-Roman.afm new file mode 100644 index 0000000000000000000000000000000000000000..a0953f2802cbde4ca95c212f21195b55c0bc5a42 --- /dev/null +++ b/shared/package-files/86/86136b527a5acee0c3283d56a6b68fc6a3d60982eb3bb0fb6cc54e83ecc8d77a/Times-Roman.afm @@ -0,0 +1,2419 @@ +StartFontMetrics 4.1 +Comment Copyright (c) 1985, 1987, 1989, 1990, 1993, 1997 Adobe Systems Incorporated. All Rights Reserved. +Comment Creation Date: Thu May 1 12:49:17 1997 +Comment UniqueID 43068 +Comment VMusage 43909 54934 +FontName Times-Roman +FullName Times Roman +FamilyName Times +Weight Roman +ItalicAngle 0 +IsFixedPitch false +CharacterSet ExtendedRoman +FontBBox -168 -218 1000 898 +UnderlinePosition -100 +UnderlineThickness 50 +Version 002.000 +Notice Copyright (c) 1985, 1987, 1989, 1990, 1993, 1997 Adobe Systems Incorporated. All Rights Reserved.Times is a trademark of Linotype-Hell AG and/or its subsidiaries. +EncodingScheme AdobeStandardEncoding +CapHeight 662 +XHeight 450 +Ascender 683 +Descender -217 +StdHW 28 +StdVW 84 +StartCharMetrics 315 +C 32 ; WX 250 ; N space ; B 0 0 0 0 ; +C 33 ; WX 333 ; N exclam ; B 130 -9 238 676 ; +C 34 ; WX 408 ; N quotedbl ; B 77 431 331 676 ; +C 35 ; WX 500 ; N numbersign ; B 5 0 496 662 ; +C 36 ; WX 500 ; N dollar ; B 44 -87 457 727 ; +C 37 ; WX 833 ; N percent ; B 61 -13 772 676 ; +C 38 ; WX 778 ; N ampersand ; B 42 -13 750 676 ; +C 39 ; WX 333 ; N quoteright ; B 79 433 218 676 ; +C 40 ; WX 333 ; N parenleft ; B 48 -177 304 676 ; +C 41 ; WX 333 ; N parenright ; B 29 -177 285 676 ; +C 42 ; WX 500 ; N asterisk ; B 69 265 432 676 ; +C 43 ; WX 564 ; N plus ; B 30 0 534 506 ; +C 44 ; WX 250 ; N comma ; B 56 -141 195 102 ; +C 45 ; WX 333 ; N hyphen ; B 39 194 285 257 ; +C 46 ; WX 250 ; N period ; B 70 -11 181 100 ; +C 47 ; WX 278 ; N slash ; B -9 -14 287 676 ; +C 48 ; WX 500 ; N zero ; B 24 -14 476 676 ; +C 49 ; WX 500 ; N one ; B 111 0 394 676 ; +C 50 ; WX 500 ; N two ; B 30 0 475 676 ; +C 51 ; WX 500 ; N three ; B 43 -14 431 676 ; +C 52 ; WX 500 ; N four ; B 12 0 472 676 ; +C 53 ; WX 500 ; N five ; B 32 -14 438 688 ; +C 54 ; WX 500 ; N six ; B 34 -14 468 684 ; +C 55 ; WX 500 ; N seven ; B 20 -8 449 662 ; +C 56 ; WX 500 ; N eight ; B 56 -14 445 676 ; +C 57 ; WX 500 ; N nine ; B 30 -22 459 676 ; +C 58 ; WX 278 ; N colon ; B 81 -11 192 459 ; +C 59 ; WX 278 ; N semicolon ; B 80 -141 219 459 ; +C 60 ; WX 564 ; N less ; B 28 -8 536 514 ; +C 61 ; WX 564 ; N equal ; B 30 120 534 386 ; +C 62 ; WX 564 ; N greater ; B 28 -8 536 514 ; +C 63 ; WX 444 ; N question ; B 68 -8 414 676 ; +C 64 ; WX 921 ; N at ; B 116 -14 809 676 ; +C 65 ; WX 722 ; N A ; B 15 0 706 674 ; +C 66 ; WX 667 ; N B ; B 17 0 593 662 ; +C 67 ; WX 667 ; N C ; B 28 -14 633 676 ; +C 68 ; WX 722 ; N D ; B 16 0 685 662 ; +C 69 ; WX 611 ; N E ; B 12 0 597 662 ; +C 70 ; WX 556 ; N F ; B 12 0 546 662 ; +C 71 ; WX 722 ; N G ; B 32 -14 709 676 ; +C 72 ; WX 722 ; N H ; B 19 0 702 662 ; +C 73 ; WX 333 ; N I ; B 18 0 315 662 ; +C 74 ; WX 389 ; N J ; B 10 -14 370 662 ; +C 75 ; WX 722 ; N K ; B 34 0 723 662 ; +C 76 ; WX 611 ; N L ; B 12 0 598 662 ; +C 77 ; WX 889 ; N M ; B 12 0 863 662 ; +C 78 ; WX 722 ; N N ; B 12 -11 707 662 ; +C 79 ; WX 722 ; N O ; B 34 -14 688 676 ; +C 80 ; WX 556 ; N P ; B 16 0 542 662 ; +C 81 ; WX 722 ; N Q ; B 34 -178 701 676 ; +C 82 ; WX 667 ; N R ; B 17 0 659 662 ; +C 83 ; WX 556 ; N S ; B 42 -14 491 676 ; +C 84 ; WX 611 ; N T ; B 17 0 593 662 ; +C 85 ; WX 722 ; N U ; B 14 -14 705 662 ; +C 86 ; WX 722 ; N V ; B 16 -11 697 662 ; +C 87 ; WX 944 ; N W ; B 5 -11 932 662 ; +C 88 ; WX 722 ; N X ; B 10 0 704 662 ; +C 89 ; WX 722 ; N Y ; B 22 0 703 662 ; +C 90 ; WX 611 ; N Z ; B 9 0 597 662 ; +C 91 ; WX 333 ; N bracketleft ; B 88 -156 299 662 ; +C 92 ; WX 278 ; N backslash ; B -9 -14 287 676 ; +C 93 ; WX 333 ; N bracketright ; B 34 -156 245 662 ; +C 94 ; WX 469 ; N asciicircum ; B 24 297 446 662 ; +C 95 ; WX 500 ; N underscore ; B 0 -125 500 -75 ; +C 96 ; WX 333 ; N quoteleft ; B 115 433 254 676 ; +C 97 ; WX 444 ; N a ; B 37 -10 442 460 ; +C 98 ; WX 500 ; N b ; B 3 -10 468 683 ; +C 99 ; WX 444 ; N c ; B 25 -10 412 460 ; +C 100 ; WX 500 ; N d ; B 27 -10 491 683 ; +C 101 ; WX 444 ; N e ; B 25 -10 424 460 ; +C 102 ; WX 333 ; N f ; B 20 0 383 683 ; L i fi ; L l fl ; +C 103 ; WX 500 ; N g ; B 28 -218 470 460 ; +C 104 ; WX 500 ; N h ; B 9 0 487 683 ; +C 105 ; WX 278 ; N i ; B 16 0 253 683 ; +C 106 ; WX 278 ; N j ; B -70 -218 194 683 ; +C 107 ; WX 500 ; N k ; B 7 0 505 683 ; +C 108 ; WX 278 ; N l ; B 19 0 257 683 ; +C 109 ; WX 778 ; N m ; B 16 0 775 460 ; +C 110 ; WX 500 ; N n ; B 16 0 485 460 ; +C 111 ; WX 500 ; N o ; B 29 -10 470 460 ; +C 112 ; WX 500 ; N p ; B 5 -217 470 460 ; +C 113 ; WX 500 ; N q ; B 24 -217 488 460 ; +C 114 ; WX 333 ; N r ; B 5 0 335 460 ; +C 115 ; WX 389 ; N s ; B 51 -10 348 460 ; +C 116 ; WX 278 ; N t ; B 13 -10 279 579 ; +C 117 ; WX 500 ; N u ; B 9 -10 479 450 ; +C 118 ; WX 500 ; N v ; B 19 -14 477 450 ; +C 119 ; WX 722 ; N w ; B 21 -14 694 450 ; +C 120 ; WX 500 ; N x ; B 17 0 479 450 ; +C 121 ; WX 500 ; N y ; B 14 -218 475 450 ; +C 122 ; WX 444 ; N z ; B 27 0 418 450 ; +C 123 ; WX 480 ; N braceleft ; B 100 -181 350 680 ; +C 124 ; WX 200 ; N bar ; B 67 -218 133 782 ; +C 125 ; WX 480 ; N braceright ; B 130 -181 380 680 ; +C 126 ; WX 541 ; N asciitilde ; B 40 183 502 323 ; +C 161 ; WX 333 ; N exclamdown ; B 97 -218 205 467 ; +C 162 ; WX 500 ; N cent ; B 53 -138 448 579 ; +C 163 ; WX 500 ; N sterling ; B 12 -8 490 676 ; +C 164 ; WX 167 ; N fraction ; B -168 -14 331 676 ; +C 165 ; WX 500 ; N yen ; B -53 0 512 662 ; +C 166 ; WX 500 ; N florin ; B 7 -189 490 676 ; +C 167 ; WX 500 ; N section ; B 70 -148 426 676 ; +C 168 ; WX 500 ; N currency ; B -22 58 522 602 ; +C 169 ; WX 180 ; N quotesingle ; B 48 431 133 676 ; +C 170 ; WX 444 ; N quotedblleft ; B 43 433 414 676 ; +C 171 ; WX 500 ; N guillemotleft ; B 42 33 456 416 ; +C 172 ; WX 333 ; N guilsinglleft ; B 63 33 285 416 ; +C 173 ; WX 333 ; N guilsinglright ; B 48 33 270 416 ; +C 174 ; WX 556 ; N fi ; B 31 0 521 683 ; +C 175 ; WX 556 ; N fl ; B 32 0 521 683 ; +C 177 ; WX 500 ; N endash ; B 0 201 500 250 ; +C 178 ; WX 500 ; N dagger ; B 59 -149 442 676 ; +C 179 ; WX 500 ; N daggerdbl ; B 58 -153 442 676 ; +C 180 ; WX 250 ; N periodcentered ; B 70 199 181 310 ; +C 182 ; WX 453 ; N paragraph ; B -22 -154 450 662 ; +C 183 ; WX 350 ; N bullet ; B 40 196 310 466 ; +C 184 ; WX 333 ; N quotesinglbase ; B 79 -141 218 102 ; +C 185 ; WX 444 ; N quotedblbase ; B 45 -141 416 102 ; +C 186 ; WX 444 ; N quotedblright ; B 30 433 401 676 ; +C 187 ; WX 500 ; N guillemotright ; B 44 33 458 416 ; +C 188 ; WX 1000 ; N ellipsis ; B 111 -11 888 100 ; +C 189 ; WX 1000 ; N perthousand ; B 7 -19 994 706 ; +C 191 ; WX 444 ; N questiondown ; B 30 -218 376 466 ; +C 193 ; WX 333 ; N grave ; B 19 507 242 678 ; +C 194 ; WX 333 ; N acute ; B 93 507 317 678 ; +C 195 ; WX 333 ; N circumflex ; B 11 507 322 674 ; +C 196 ; WX 333 ; N tilde ; B 1 532 331 638 ; +C 197 ; WX 333 ; N macron ; B 11 547 322 601 ; +C 198 ; WX 333 ; N breve ; B 26 507 307 664 ; +C 199 ; WX 333 ; N dotaccent ; B 118 581 216 681 ; +C 200 ; WX 333 ; N dieresis ; B 18 581 315 681 ; +C 202 ; WX 333 ; N ring ; B 67 512 266 711 ; +C 203 ; WX 333 ; N cedilla ; B 52 -215 261 0 ; +C 205 ; WX 333 ; N hungarumlaut ; B -3 507 377 678 ; +C 206 ; WX 333 ; N ogonek ; B 62 -165 243 0 ; +C 207 ; WX 333 ; N caron ; B 11 507 322 674 ; +C 208 ; WX 1000 ; N emdash ; B 0 201 1000 250 ; +C 225 ; WX 889 ; N AE ; B 0 0 863 662 ; +C 227 ; WX 276 ; N ordfeminine ; B 4 394 270 676 ; +C 232 ; WX 611 ; N Lslash ; B 12 0 598 662 ; +C 233 ; WX 722 ; N Oslash ; B 34 -80 688 734 ; +C 234 ; WX 889 ; N OE ; B 30 -6 885 668 ; +C 235 ; WX 310 ; N ordmasculine ; B 6 394 304 676 ; +C 241 ; WX 667 ; N ae ; B 38 -10 632 460 ; +C 245 ; WX 278 ; N dotlessi ; B 16 0 253 460 ; +C 248 ; WX 278 ; N lslash ; B 19 0 259 683 ; +C 249 ; WX 500 ; N oslash ; B 29 -112 470 551 ; +C 250 ; WX 722 ; N oe ; B 30 -10 690 460 ; +C 251 ; WX 500 ; N germandbls ; B 12 -9 468 683 ; +C -1 ; WX 333 ; N Idieresis ; B 18 0 315 835 ; +C -1 ; WX 444 ; N eacute ; B 25 -10 424 678 ; +C -1 ; WX 444 ; N abreve ; B 37 -10 442 664 ; +C -1 ; WX 500 ; N uhungarumlaut ; B 9 -10 501 678 ; +C -1 ; WX 444 ; N ecaron ; B 25 -10 424 674 ; +C -1 ; WX 722 ; N Ydieresis ; B 22 0 703 835 ; +C -1 ; WX 564 ; N divide ; B 30 -10 534 516 ; +C -1 ; WX 722 ; N Yacute ; B 22 0 703 890 ; +C -1 ; WX 722 ; N Acircumflex ; B 15 0 706 886 ; +C -1 ; WX 444 ; N aacute ; B 37 -10 442 678 ; +C -1 ; WX 722 ; N Ucircumflex ; B 14 -14 705 886 ; +C -1 ; WX 500 ; N yacute ; B 14 -218 475 678 ; +C -1 ; WX 389 ; N scommaaccent ; B 51 -218 348 460 ; +C -1 ; WX 444 ; N ecircumflex ; B 25 -10 424 674 ; +C -1 ; WX 722 ; N Uring ; B 14 -14 705 898 ; +C -1 ; WX 722 ; N Udieresis ; B 14 -14 705 835 ; +C -1 ; WX 444 ; N aogonek ; B 37 -165 469 460 ; +C -1 ; WX 722 ; N Uacute ; B 14 -14 705 890 ; +C -1 ; WX 500 ; N uogonek ; B 9 -155 487 450 ; +C -1 ; WX 611 ; N Edieresis ; B 12 0 597 835 ; +C -1 ; WX 722 ; N Dcroat ; B 16 0 685 662 ; +C -1 ; WX 250 ; N commaaccent ; B 59 -218 184 -50 ; +C -1 ; WX 760 ; N copyright ; B 38 -14 722 676 ; +C -1 ; WX 611 ; N Emacron ; B 12 0 597 813 ; +C -1 ; WX 444 ; N ccaron ; B 25 -10 412 674 ; +C -1 ; WX 444 ; N aring ; B 37 -10 442 711 ; +C -1 ; WX 722 ; N Ncommaaccent ; B 12 -198 707 662 ; +C -1 ; WX 278 ; N lacute ; B 19 0 290 890 ; +C -1 ; WX 444 ; N agrave ; B 37 -10 442 678 ; +C -1 ; WX 611 ; N Tcommaaccent ; B 17 -218 593 662 ; +C -1 ; WX 667 ; N Cacute ; B 28 -14 633 890 ; +C -1 ; WX 444 ; N atilde ; B 37 -10 442 638 ; +C -1 ; WX 611 ; N Edotaccent ; B 12 0 597 835 ; +C -1 ; WX 389 ; N scaron ; B 39 -10 350 674 ; +C -1 ; WX 389 ; N scedilla ; B 51 -215 348 460 ; +C -1 ; WX 278 ; N iacute ; B 16 0 290 678 ; +C -1 ; WX 471 ; N lozenge ; B 13 0 459 724 ; +C -1 ; WX 667 ; N Rcaron ; B 17 0 659 886 ; +C -1 ; WX 722 ; N Gcommaaccent ; B 32 -218 709 676 ; +C -1 ; WX 500 ; N ucircumflex ; B 9 -10 479 674 ; +C -1 ; WX 444 ; N acircumflex ; B 37 -10 442 674 ; +C -1 ; WX 722 ; N Amacron ; B 15 0 706 813 ; +C -1 ; WX 333 ; N rcaron ; B 5 0 335 674 ; +C -1 ; WX 444 ; N ccedilla ; B 25 -215 412 460 ; +C -1 ; WX 611 ; N Zdotaccent ; B 9 0 597 835 ; +C -1 ; WX 556 ; N Thorn ; B 16 0 542 662 ; +C -1 ; WX 722 ; N Omacron ; B 34 -14 688 813 ; +C -1 ; WX 667 ; N Racute ; B 17 0 659 890 ; +C -1 ; WX 556 ; N Sacute ; B 42 -14 491 890 ; +C -1 ; WX 588 ; N dcaron ; B 27 -10 589 695 ; +C -1 ; WX 722 ; N Umacron ; B 14 -14 705 813 ; +C -1 ; WX 500 ; N uring ; B 9 -10 479 711 ; +C -1 ; WX 300 ; N threesuperior ; B 15 262 291 676 ; +C -1 ; WX 722 ; N Ograve ; B 34 -14 688 890 ; +C -1 ; WX 722 ; N Agrave ; B 15 0 706 890 ; +C -1 ; WX 722 ; N Abreve ; B 15 0 706 876 ; +C -1 ; WX 564 ; N multiply ; B 38 8 527 497 ; +C -1 ; WX 500 ; N uacute ; B 9 -10 479 678 ; +C -1 ; WX 611 ; N Tcaron ; B 17 0 593 886 ; +C -1 ; WX 476 ; N partialdiff ; B 17 -38 459 710 ; +C -1 ; WX 500 ; N ydieresis ; B 14 -218 475 623 ; +C -1 ; WX 722 ; N Nacute ; B 12 -11 707 890 ; +C -1 ; WX 278 ; N icircumflex ; B -16 0 295 674 ; +C -1 ; WX 611 ; N Ecircumflex ; B 12 0 597 886 ; +C -1 ; WX 444 ; N adieresis ; B 37 -10 442 623 ; +C -1 ; WX 444 ; N edieresis ; B 25 -10 424 623 ; +C -1 ; WX 444 ; N cacute ; B 25 -10 413 678 ; +C -1 ; WX 500 ; N nacute ; B 16 0 485 678 ; +C -1 ; WX 500 ; N umacron ; B 9 -10 479 601 ; +C -1 ; WX 722 ; N Ncaron ; B 12 -11 707 886 ; +C -1 ; WX 333 ; N Iacute ; B 18 0 317 890 ; +C -1 ; WX 564 ; N plusminus ; B 30 0 534 506 ; +C -1 ; WX 200 ; N brokenbar ; B 67 -143 133 707 ; +C -1 ; WX 760 ; N registered ; B 38 -14 722 676 ; +C -1 ; WX 722 ; N Gbreve ; B 32 -14 709 876 ; +C -1 ; WX 333 ; N Idotaccent ; B 18 0 315 835 ; +C -1 ; WX 600 ; N summation ; B 15 -10 585 706 ; +C -1 ; WX 611 ; N Egrave ; B 12 0 597 890 ; +C -1 ; WX 333 ; N racute ; B 5 0 335 678 ; +C -1 ; WX 500 ; N omacron ; B 29 -10 470 601 ; +C -1 ; WX 611 ; N Zacute ; B 9 0 597 890 ; +C -1 ; WX 611 ; N Zcaron ; B 9 0 597 886 ; +C -1 ; WX 549 ; N greaterequal ; B 26 0 523 666 ; +C -1 ; WX 722 ; N Eth ; B 16 0 685 662 ; +C -1 ; WX 667 ; N Ccedilla ; B 28 -215 633 676 ; +C -1 ; WX 278 ; N lcommaaccent ; B 19 -218 257 683 ; +C -1 ; WX 326 ; N tcaron ; B 13 -10 318 722 ; +C -1 ; WX 444 ; N eogonek ; B 25 -165 424 460 ; +C -1 ; WX 722 ; N Uogonek ; B 14 -165 705 662 ; +C -1 ; WX 722 ; N Aacute ; B 15 0 706 890 ; +C -1 ; WX 722 ; N Adieresis ; B 15 0 706 835 ; +C -1 ; WX 444 ; N egrave ; B 25 -10 424 678 ; +C -1 ; WX 444 ; N zacute ; B 27 0 418 678 ; +C -1 ; WX 278 ; N iogonek ; B 16 -165 265 683 ; +C -1 ; WX 722 ; N Oacute ; B 34 -14 688 890 ; +C -1 ; WX 500 ; N oacute ; B 29 -10 470 678 ; +C -1 ; WX 444 ; N amacron ; B 37 -10 442 601 ; +C -1 ; WX 389 ; N sacute ; B 51 -10 348 678 ; +C -1 ; WX 278 ; N idieresis ; B -9 0 288 623 ; +C -1 ; WX 722 ; N Ocircumflex ; B 34 -14 688 886 ; +C -1 ; WX 722 ; N Ugrave ; B 14 -14 705 890 ; +C -1 ; WX 612 ; N Delta ; B 6 0 608 688 ; +C -1 ; WX 500 ; N thorn ; B 5 -217 470 683 ; +C -1 ; WX 300 ; N twosuperior ; B 1 270 296 676 ; +C -1 ; WX 722 ; N Odieresis ; B 34 -14 688 835 ; +C -1 ; WX 500 ; N mu ; B 36 -218 512 450 ; +C -1 ; WX 278 ; N igrave ; B -8 0 253 678 ; +C -1 ; WX 500 ; N ohungarumlaut ; B 29 -10 491 678 ; +C -1 ; WX 611 ; N Eogonek ; B 12 -165 597 662 ; +C -1 ; WX 500 ; N dcroat ; B 27 -10 500 683 ; +C -1 ; WX 750 ; N threequarters ; B 15 -14 718 676 ; +C -1 ; WX 556 ; N Scedilla ; B 42 -215 491 676 ; +C -1 ; WX 344 ; N lcaron ; B 19 0 347 695 ; +C -1 ; WX 722 ; N Kcommaaccent ; B 34 -198 723 662 ; +C -1 ; WX 611 ; N Lacute ; B 12 0 598 890 ; +C -1 ; WX 980 ; N trademark ; B 30 256 957 662 ; +C -1 ; WX 444 ; N edotaccent ; B 25 -10 424 623 ; +C -1 ; WX 333 ; N Igrave ; B 18 0 315 890 ; +C -1 ; WX 333 ; N Imacron ; B 11 0 322 813 ; +C -1 ; WX 611 ; N Lcaron ; B 12 0 598 676 ; +C -1 ; WX 750 ; N onehalf ; B 31 -14 746 676 ; +C -1 ; WX 549 ; N lessequal ; B 26 0 523 666 ; +C -1 ; WX 500 ; N ocircumflex ; B 29 -10 470 674 ; +C -1 ; WX 500 ; N ntilde ; B 16 0 485 638 ; +C -1 ; WX 722 ; N Uhungarumlaut ; B 14 -14 705 890 ; +C -1 ; WX 611 ; N Eacute ; B 12 0 597 890 ; +C -1 ; WX 444 ; N emacron ; B 25 -10 424 601 ; +C -1 ; WX 500 ; N gbreve ; B 28 -218 470 664 ; +C -1 ; WX 750 ; N onequarter ; B 37 -14 718 676 ; +C -1 ; WX 556 ; N Scaron ; B 42 -14 491 886 ; +C -1 ; WX 556 ; N Scommaaccent ; B 42 -218 491 676 ; +C -1 ; WX 722 ; N Ohungarumlaut ; B 34 -14 688 890 ; +C -1 ; WX 400 ; N degree ; B 57 390 343 676 ; +C -1 ; WX 500 ; N ograve ; B 29 -10 470 678 ; +C -1 ; WX 667 ; N Ccaron ; B 28 -14 633 886 ; +C -1 ; WX 500 ; N ugrave ; B 9 -10 479 678 ; +C -1 ; WX 453 ; N radical ; B 2 -60 452 768 ; +C -1 ; WX 722 ; N Dcaron ; B 16 0 685 886 ; +C -1 ; WX 333 ; N rcommaaccent ; B 5 -218 335 460 ; +C -1 ; WX 722 ; N Ntilde ; B 12 -11 707 850 ; +C -1 ; WX 500 ; N otilde ; B 29 -10 470 638 ; +C -1 ; WX 667 ; N Rcommaaccent ; B 17 -198 659 662 ; +C -1 ; WX 611 ; N Lcommaaccent ; B 12 -218 598 662 ; +C -1 ; WX 722 ; N Atilde ; B 15 0 706 850 ; +C -1 ; WX 722 ; N Aogonek ; B 15 -165 738 674 ; +C -1 ; WX 722 ; N Aring ; B 15 0 706 898 ; +C -1 ; WX 722 ; N Otilde ; B 34 -14 688 850 ; +C -1 ; WX 444 ; N zdotaccent ; B 27 0 418 623 ; +C -1 ; WX 611 ; N Ecaron ; B 12 0 597 886 ; +C -1 ; WX 333 ; N Iogonek ; B 18 -165 315 662 ; +C -1 ; WX 500 ; N kcommaaccent ; B 7 -218 505 683 ; +C -1 ; WX 564 ; N minus ; B 30 220 534 286 ; +C -1 ; WX 333 ; N Icircumflex ; B 11 0 322 886 ; +C -1 ; WX 500 ; N ncaron ; B 16 0 485 674 ; +C -1 ; WX 278 ; N tcommaaccent ; B 13 -218 279 579 ; +C -1 ; WX 564 ; N logicalnot ; B 30 108 534 386 ; +C -1 ; WX 500 ; N odieresis ; B 29 -10 470 623 ; +C -1 ; WX 500 ; N udieresis ; B 9 -10 479 623 ; +C -1 ; WX 549 ; N notequal ; B 12 -31 537 547 ; +C -1 ; WX 500 ; N gcommaaccent ; B 28 -218 470 749 ; +C -1 ; WX 500 ; N eth ; B 29 -10 471 686 ; +C -1 ; WX 444 ; N zcaron ; B 27 0 418 674 ; +C -1 ; WX 500 ; N ncommaaccent ; B 16 -218 485 460 ; +C -1 ; WX 300 ; N onesuperior ; B 57 270 248 676 ; +C -1 ; WX 278 ; N imacron ; B 6 0 271 601 ; +C -1 ; WX 500 ; N Euro ; B 0 0 0 0 ; +EndCharMetrics +StartKernData +StartKernPairs 2073 +KPX A C -40 +KPX A Cacute -40 +KPX A Ccaron -40 +KPX A Ccedilla -40 +KPX A G -40 +KPX A Gbreve -40 +KPX A Gcommaaccent -40 +KPX A O -55 +KPX A Oacute -55 +KPX A Ocircumflex -55 +KPX A Odieresis -55 +KPX A Ograve -55 +KPX A Ohungarumlaut -55 +KPX A Omacron -55 +KPX A Oslash -55 +KPX A Otilde -55 +KPX A Q -55 +KPX A T -111 +KPX A Tcaron -111 +KPX A Tcommaaccent -111 +KPX A U -55 +KPX A Uacute -55 +KPX A Ucircumflex -55 +KPX A Udieresis -55 +KPX A Ugrave -55 +KPX A Uhungarumlaut -55 +KPX A Umacron -55 +KPX A Uogonek -55 +KPX A Uring -55 +KPX A V -135 +KPX A W -90 +KPX A Y -105 +KPX A Yacute -105 +KPX A Ydieresis -105 +KPX A quoteright -111 +KPX A v -74 +KPX A w -92 +KPX A y -92 +KPX A yacute -92 +KPX A ydieresis -92 +KPX Aacute C -40 +KPX Aacute Cacute -40 +KPX Aacute Ccaron -40 +KPX Aacute Ccedilla -40 +KPX Aacute G -40 +KPX Aacute Gbreve -40 +KPX Aacute Gcommaaccent -40 +KPX Aacute O -55 +KPX Aacute Oacute -55 +KPX Aacute Ocircumflex -55 +KPX Aacute Odieresis -55 +KPX Aacute Ograve -55 +KPX Aacute Ohungarumlaut -55 +KPX Aacute Omacron -55 +KPX Aacute Oslash -55 +KPX Aacute Otilde -55 +KPX Aacute Q -55 +KPX Aacute T -111 +KPX Aacute Tcaron -111 +KPX Aacute Tcommaaccent -111 +KPX Aacute U -55 +KPX Aacute Uacute -55 +KPX Aacute Ucircumflex -55 +KPX Aacute Udieresis -55 +KPX Aacute Ugrave -55 +KPX Aacute Uhungarumlaut -55 +KPX Aacute Umacron -55 +KPX Aacute Uogonek -55 +KPX Aacute Uring -55 +KPX Aacute V -135 +KPX Aacute W -90 +KPX Aacute Y -105 +KPX Aacute Yacute -105 +KPX Aacute Ydieresis -105 +KPX Aacute quoteright -111 +KPX Aacute v -74 +KPX Aacute w -92 +KPX Aacute y -92 +KPX Aacute yacute -92 +KPX Aacute ydieresis -92 +KPX Abreve C -40 +KPX Abreve Cacute -40 +KPX Abreve Ccaron -40 +KPX Abreve Ccedilla -40 +KPX Abreve G -40 +KPX Abreve Gbreve -40 +KPX Abreve Gcommaaccent -40 +KPX Abreve O -55 +KPX Abreve Oacute -55 +KPX Abreve Ocircumflex -55 +KPX Abreve Odieresis -55 +KPX Abreve Ograve -55 +KPX Abreve Ohungarumlaut -55 +KPX Abreve Omacron -55 +KPX Abreve Oslash -55 +KPX Abreve Otilde -55 +KPX Abreve Q -55 +KPX Abreve T -111 +KPX Abreve Tcaron -111 +KPX Abreve Tcommaaccent -111 +KPX Abreve U -55 +KPX Abreve Uacute -55 +KPX Abreve Ucircumflex -55 +KPX Abreve Udieresis -55 +KPX Abreve Ugrave -55 +KPX Abreve Uhungarumlaut -55 +KPX Abreve Umacron -55 +KPX Abreve Uogonek -55 +KPX Abreve Uring -55 +KPX Abreve V -135 +KPX Abreve W -90 +KPX Abreve Y -105 +KPX Abreve Yacute -105 +KPX Abreve Ydieresis -105 +KPX Abreve quoteright -111 +KPX Abreve v -74 +KPX Abreve w -92 +KPX Abreve y -92 +KPX Abreve yacute -92 +KPX Abreve ydieresis -92 +KPX Acircumflex C -40 +KPX Acircumflex Cacute -40 +KPX Acircumflex Ccaron -40 +KPX Acircumflex Ccedilla -40 +KPX Acircumflex G -40 +KPX Acircumflex Gbreve -40 +KPX Acircumflex Gcommaaccent -40 +KPX Acircumflex O -55 +KPX Acircumflex Oacute -55 +KPX Acircumflex Ocircumflex -55 +KPX Acircumflex Odieresis -55 +KPX Acircumflex Ograve -55 +KPX Acircumflex Ohungarumlaut -55 +KPX Acircumflex Omacron -55 +KPX Acircumflex Oslash -55 +KPX Acircumflex Otilde -55 +KPX Acircumflex Q -55 +KPX Acircumflex T -111 +KPX Acircumflex Tcaron -111 +KPX Acircumflex Tcommaaccent -111 +KPX Acircumflex U -55 +KPX Acircumflex Uacute -55 +KPX Acircumflex Ucircumflex -55 +KPX Acircumflex Udieresis -55 +KPX Acircumflex Ugrave -55 +KPX Acircumflex Uhungarumlaut -55 +KPX Acircumflex Umacron -55 +KPX Acircumflex Uogonek -55 +KPX Acircumflex Uring -55 +KPX Acircumflex V -135 +KPX Acircumflex W -90 +KPX Acircumflex Y -105 +KPX Acircumflex Yacute -105 +KPX Acircumflex Ydieresis -105 +KPX Acircumflex quoteright -111 +KPX Acircumflex v -74 +KPX Acircumflex w -92 +KPX Acircumflex y -92 +KPX Acircumflex yacute -92 +KPX Acircumflex ydieresis -92 +KPX Adieresis C -40 +KPX Adieresis Cacute -40 +KPX Adieresis Ccaron -40 +KPX Adieresis Ccedilla -40 +KPX Adieresis G -40 +KPX Adieresis Gbreve -40 +KPX Adieresis Gcommaaccent -40 +KPX Adieresis O -55 +KPX Adieresis Oacute -55 +KPX Adieresis Ocircumflex -55 +KPX Adieresis Odieresis -55 +KPX Adieresis Ograve -55 +KPX Adieresis Ohungarumlaut -55 +KPX Adieresis Omacron -55 +KPX Adieresis Oslash -55 +KPX Adieresis Otilde -55 +KPX Adieresis Q -55 +KPX Adieresis T -111 +KPX Adieresis Tcaron -111 +KPX Adieresis Tcommaaccent -111 +KPX Adieresis U -55 +KPX Adieresis Uacute -55 +KPX Adieresis Ucircumflex -55 +KPX Adieresis Udieresis -55 +KPX Adieresis Ugrave -55 +KPX Adieresis Uhungarumlaut -55 +KPX Adieresis Umacron -55 +KPX Adieresis Uogonek -55 +KPX Adieresis Uring -55 +KPX Adieresis V -135 +KPX Adieresis W -90 +KPX Adieresis Y -105 +KPX Adieresis Yacute -105 +KPX Adieresis Ydieresis -105 +KPX Adieresis quoteright -111 +KPX Adieresis v -74 +KPX Adieresis w -92 +KPX Adieresis y -92 +KPX Adieresis yacute -92 +KPX Adieresis ydieresis -92 +KPX Agrave C -40 +KPX Agrave Cacute -40 +KPX Agrave Ccaron -40 +KPX Agrave Ccedilla -40 +KPX Agrave G -40 +KPX Agrave Gbreve -40 +KPX Agrave Gcommaaccent -40 +KPX Agrave O -55 +KPX Agrave Oacute -55 +KPX Agrave Ocircumflex -55 +KPX Agrave Odieresis -55 +KPX Agrave Ograve -55 +KPX Agrave Ohungarumlaut -55 +KPX Agrave Omacron -55 +KPX Agrave Oslash -55 +KPX Agrave Otilde -55 +KPX Agrave Q -55 +KPX Agrave T -111 +KPX Agrave Tcaron -111 +KPX Agrave Tcommaaccent -111 +KPX Agrave U -55 +KPX Agrave Uacute -55 +KPX Agrave Ucircumflex -55 +KPX Agrave Udieresis -55 +KPX Agrave Ugrave -55 +KPX Agrave Uhungarumlaut -55 +KPX Agrave Umacron -55 +KPX Agrave Uogonek -55 +KPX Agrave Uring -55 +KPX Agrave V -135 +KPX Agrave W -90 +KPX Agrave Y -105 +KPX Agrave Yacute -105 +KPX Agrave Ydieresis -105 +KPX Agrave quoteright -111 +KPX Agrave v -74 +KPX Agrave w -92 +KPX Agrave y -92 +KPX Agrave yacute -92 +KPX Agrave ydieresis -92 +KPX Amacron C -40 +KPX Amacron Cacute -40 +KPX Amacron Ccaron -40 +KPX Amacron Ccedilla -40 +KPX Amacron G -40 +KPX Amacron Gbreve -40 +KPX Amacron Gcommaaccent -40 +KPX Amacron O -55 +KPX Amacron Oacute -55 +KPX Amacron Ocircumflex -55 +KPX Amacron Odieresis -55 +KPX Amacron Ograve -55 +KPX Amacron Ohungarumlaut -55 +KPX Amacron Omacron -55 +KPX Amacron Oslash -55 +KPX Amacron Otilde -55 +KPX Amacron Q -55 +KPX Amacron T -111 +KPX Amacron Tcaron -111 +KPX Amacron Tcommaaccent -111 +KPX Amacron U -55 +KPX Amacron Uacute -55 +KPX Amacron Ucircumflex -55 +KPX Amacron Udieresis -55 +KPX Amacron Ugrave -55 +KPX Amacron Uhungarumlaut -55 +KPX Amacron Umacron -55 +KPX Amacron Uogonek -55 +KPX Amacron Uring -55 +KPX Amacron V -135 +KPX Amacron W -90 +KPX Amacron Y -105 +KPX Amacron Yacute -105 +KPX Amacron Ydieresis -105 +KPX Amacron quoteright -111 +KPX Amacron v -74 +KPX Amacron w -92 +KPX Amacron y -92 +KPX Amacron yacute -92 +KPX Amacron ydieresis -92 +KPX Aogonek C -40 +KPX Aogonek Cacute -40 +KPX Aogonek Ccaron -40 +KPX Aogonek Ccedilla -40 +KPX Aogonek G -40 +KPX Aogonek Gbreve -40 +KPX Aogonek Gcommaaccent -40 +KPX Aogonek O -55 +KPX Aogonek Oacute -55 +KPX Aogonek Ocircumflex -55 +KPX Aogonek Odieresis -55 +KPX Aogonek Ograve -55 +KPX Aogonek Ohungarumlaut -55 +KPX Aogonek Omacron -55 +KPX Aogonek Oslash -55 +KPX Aogonek Otilde -55 +KPX Aogonek Q -55 +KPX Aogonek T -111 +KPX Aogonek Tcaron -111 +KPX Aogonek Tcommaaccent -111 +KPX Aogonek U -55 +KPX Aogonek Uacute -55 +KPX Aogonek Ucircumflex -55 +KPX Aogonek Udieresis -55 +KPX Aogonek Ugrave -55 +KPX Aogonek Uhungarumlaut -55 +KPX Aogonek Umacron -55 +KPX Aogonek Uogonek -55 +KPX Aogonek Uring -55 +KPX Aogonek V -135 +KPX Aogonek W -90 +KPX Aogonek Y -105 +KPX Aogonek Yacute -105 +KPX Aogonek Ydieresis -105 +KPX Aogonek quoteright -111 +KPX Aogonek v -74 +KPX Aogonek w -52 +KPX Aogonek y -52 +KPX Aogonek yacute -52 +KPX Aogonek ydieresis -52 +KPX Aring C -40 +KPX Aring Cacute -40 +KPX Aring Ccaron -40 +KPX Aring Ccedilla -40 +KPX Aring G -40 +KPX Aring Gbreve -40 +KPX Aring Gcommaaccent -40 +KPX Aring O -55 +KPX Aring Oacute -55 +KPX Aring Ocircumflex -55 +KPX Aring Odieresis -55 +KPX Aring Ograve -55 +KPX Aring Ohungarumlaut -55 +KPX Aring Omacron -55 +KPX Aring Oslash -55 +KPX Aring Otilde -55 +KPX Aring Q -55 +KPX Aring T -111 +KPX Aring Tcaron -111 +KPX Aring Tcommaaccent -111 +KPX Aring U -55 +KPX Aring Uacute -55 +KPX Aring Ucircumflex -55 +KPX Aring Udieresis -55 +KPX Aring Ugrave -55 +KPX Aring Uhungarumlaut -55 +KPX Aring Umacron -55 +KPX Aring Uogonek -55 +KPX Aring Uring -55 +KPX Aring V -135 +KPX Aring W -90 +KPX Aring Y -105 +KPX Aring Yacute -105 +KPX Aring Ydieresis -105 +KPX Aring quoteright -111 +KPX Aring v -74 +KPX Aring w -92 +KPX Aring y -92 +KPX Aring yacute -92 +KPX Aring ydieresis -92 +KPX Atilde C -40 +KPX Atilde Cacute -40 +KPX Atilde Ccaron -40 +KPX Atilde Ccedilla -40 +KPX Atilde G -40 +KPX Atilde Gbreve -40 +KPX Atilde Gcommaaccent -40 +KPX Atilde O -55 +KPX Atilde Oacute -55 +KPX Atilde Ocircumflex -55 +KPX Atilde Odieresis -55 +KPX Atilde Ograve -55 +KPX Atilde Ohungarumlaut -55 +KPX Atilde Omacron -55 +KPX Atilde Oslash -55 +KPX Atilde Otilde -55 +KPX Atilde Q -55 +KPX Atilde T -111 +KPX Atilde Tcaron -111 +KPX Atilde Tcommaaccent -111 +KPX Atilde U -55 +KPX Atilde Uacute -55 +KPX Atilde Ucircumflex -55 +KPX Atilde Udieresis -55 +KPX Atilde Ugrave -55 +KPX Atilde Uhungarumlaut -55 +KPX Atilde Umacron -55 +KPX Atilde Uogonek -55 +KPX Atilde Uring -55 +KPX Atilde V -135 +KPX Atilde W -90 +KPX Atilde Y -105 +KPX Atilde Yacute -105 +KPX Atilde Ydieresis -105 +KPX Atilde quoteright -111 +KPX Atilde v -74 +KPX Atilde w -92 +KPX Atilde y -92 +KPX Atilde yacute -92 +KPX Atilde ydieresis -92 +KPX B A -35 +KPX B Aacute -35 +KPX B Abreve -35 +KPX B Acircumflex -35 +KPX B Adieresis -35 +KPX B Agrave -35 +KPX B Amacron -35 +KPX B Aogonek -35 +KPX B Aring -35 +KPX B Atilde -35 +KPX B U -10 +KPX B Uacute -10 +KPX B Ucircumflex -10 +KPX B Udieresis -10 +KPX B Ugrave -10 +KPX B Uhungarumlaut -10 +KPX B Umacron -10 +KPX B Uogonek -10 +KPX B Uring -10 +KPX D A -40 +KPX D Aacute -40 +KPX D Abreve -40 +KPX D Acircumflex -40 +KPX D Adieresis -40 +KPX D Agrave -40 +KPX D Amacron -40 +KPX D Aogonek -40 +KPX D Aring -40 +KPX D Atilde -40 +KPX D V -40 +KPX D W -30 +KPX D Y -55 +KPX D Yacute -55 +KPX D Ydieresis -55 +KPX Dcaron A -40 +KPX Dcaron Aacute -40 +KPX Dcaron Abreve -40 +KPX Dcaron Acircumflex -40 +KPX Dcaron Adieresis -40 +KPX Dcaron Agrave -40 +KPX Dcaron Amacron -40 +KPX Dcaron Aogonek -40 +KPX Dcaron Aring -40 +KPX Dcaron Atilde -40 +KPX Dcaron V -40 +KPX Dcaron W -30 +KPX Dcaron Y -55 +KPX Dcaron Yacute -55 +KPX Dcaron Ydieresis -55 +KPX Dcroat A -40 +KPX Dcroat Aacute -40 +KPX Dcroat Abreve -40 +KPX Dcroat Acircumflex -40 +KPX Dcroat Adieresis -40 +KPX Dcroat Agrave -40 +KPX Dcroat Amacron -40 +KPX Dcroat Aogonek -40 +KPX Dcroat Aring -40 +KPX Dcroat Atilde -40 +KPX Dcroat V -40 +KPX Dcroat W -30 +KPX Dcroat Y -55 +KPX Dcroat Yacute -55 +KPX Dcroat Ydieresis -55 +KPX F A -74 +KPX F Aacute -74 +KPX F Abreve -74 +KPX F Acircumflex -74 +KPX F Adieresis -74 +KPX F Agrave -74 +KPX F Amacron -74 +KPX F Aogonek -74 +KPX F Aring -74 +KPX F Atilde -74 +KPX F a -15 +KPX F aacute -15 +KPX F abreve -15 +KPX F acircumflex -15 +KPX F adieresis -15 +KPX F agrave -15 +KPX F amacron -15 +KPX F aogonek -15 +KPX F aring -15 +KPX F atilde -15 +KPX F comma -80 +KPX F o -15 +KPX F oacute -15 +KPX F ocircumflex -15 +KPX F odieresis -15 +KPX F ograve -15 +KPX F ohungarumlaut -15 +KPX F omacron -15 +KPX F oslash -15 +KPX F otilde -15 +KPX F period -80 +KPX J A -60 +KPX J Aacute -60 +KPX J Abreve -60 +KPX J Acircumflex -60 +KPX J Adieresis -60 +KPX J Agrave -60 +KPX J Amacron -60 +KPX J Aogonek -60 +KPX J Aring -60 +KPX J Atilde -60 +KPX K O -30 +KPX K Oacute -30 +KPX K Ocircumflex -30 +KPX K Odieresis -30 +KPX K Ograve -30 +KPX K Ohungarumlaut -30 +KPX K Omacron -30 +KPX K Oslash -30 +KPX K Otilde -30 +KPX K e -25 +KPX K eacute -25 +KPX K ecaron -25 +KPX K ecircumflex -25 +KPX K edieresis -25 +KPX K edotaccent -25 +KPX K egrave -25 +KPX K emacron -25 +KPX K eogonek -25 +KPX K o -35 +KPX K oacute -35 +KPX K ocircumflex -35 +KPX K odieresis -35 +KPX K ograve -35 +KPX K ohungarumlaut -35 +KPX K omacron -35 +KPX K oslash -35 +KPX K otilde -35 +KPX K u -15 +KPX K uacute -15 +KPX K ucircumflex -15 +KPX K udieresis -15 +KPX K ugrave -15 +KPX K uhungarumlaut -15 +KPX K umacron -15 +KPX K uogonek -15 +KPX K uring -15 +KPX K y -25 +KPX K yacute -25 +KPX K ydieresis -25 +KPX Kcommaaccent O -30 +KPX Kcommaaccent Oacute -30 +KPX Kcommaaccent Ocircumflex -30 +KPX Kcommaaccent Odieresis -30 +KPX Kcommaaccent Ograve -30 +KPX Kcommaaccent Ohungarumlaut -30 +KPX Kcommaaccent Omacron -30 +KPX Kcommaaccent Oslash -30 +KPX Kcommaaccent Otilde -30 +KPX Kcommaaccent e -25 +KPX Kcommaaccent eacute -25 +KPX Kcommaaccent ecaron -25 +KPX Kcommaaccent ecircumflex -25 +KPX Kcommaaccent edieresis -25 +KPX Kcommaaccent edotaccent -25 +KPX Kcommaaccent egrave -25 +KPX Kcommaaccent emacron -25 +KPX Kcommaaccent eogonek -25 +KPX Kcommaaccent o -35 +KPX Kcommaaccent oacute -35 +KPX Kcommaaccent ocircumflex -35 +KPX Kcommaaccent odieresis -35 +KPX Kcommaaccent ograve -35 +KPX Kcommaaccent ohungarumlaut -35 +KPX Kcommaaccent omacron -35 +KPX Kcommaaccent oslash -35 +KPX Kcommaaccent otilde -35 +KPX Kcommaaccent u -15 +KPX Kcommaaccent uacute -15 +KPX Kcommaaccent ucircumflex -15 +KPX Kcommaaccent udieresis -15 +KPX Kcommaaccent ugrave -15 +KPX Kcommaaccent uhungarumlaut -15 +KPX Kcommaaccent umacron -15 +KPX Kcommaaccent uogonek -15 +KPX Kcommaaccent uring -15 +KPX Kcommaaccent y -25 +KPX Kcommaaccent yacute -25 +KPX Kcommaaccent ydieresis -25 +KPX L T -92 +KPX L Tcaron -92 +KPX L Tcommaaccent -92 +KPX L V -100 +KPX L W -74 +KPX L Y -100 +KPX L Yacute -100 +KPX L Ydieresis -100 +KPX L quoteright -92 +KPX L y -55 +KPX L yacute -55 +KPX L ydieresis -55 +KPX Lacute T -92 +KPX Lacute Tcaron -92 +KPX Lacute Tcommaaccent -92 +KPX Lacute V -100 +KPX Lacute W -74 +KPX Lacute Y -100 +KPX Lacute Yacute -100 +KPX Lacute Ydieresis -100 +KPX Lacute quoteright -92 +KPX Lacute y -55 +KPX Lacute yacute -55 +KPX Lacute ydieresis -55 +KPX Lcaron quoteright -92 +KPX Lcaron y -55 +KPX Lcaron yacute -55 +KPX Lcaron ydieresis -55 +KPX Lcommaaccent T -92 +KPX Lcommaaccent Tcaron -92 +KPX Lcommaaccent Tcommaaccent -92 +KPX Lcommaaccent V -100 +KPX Lcommaaccent W -74 +KPX Lcommaaccent Y -100 +KPX Lcommaaccent Yacute -100 +KPX Lcommaaccent Ydieresis -100 +KPX Lcommaaccent quoteright -92 +KPX Lcommaaccent y -55 +KPX Lcommaaccent yacute -55 +KPX Lcommaaccent ydieresis -55 +KPX Lslash T -92 +KPX Lslash Tcaron -92 +KPX Lslash Tcommaaccent -92 +KPX Lslash V -100 +KPX Lslash W -74 +KPX Lslash Y -100 +KPX Lslash Yacute -100 +KPX Lslash Ydieresis -100 +KPX Lslash quoteright -92 +KPX Lslash y -55 +KPX Lslash yacute -55 +KPX Lslash ydieresis -55 +KPX N A -35 +KPX N Aacute -35 +KPX N Abreve -35 +KPX N Acircumflex -35 +KPX N Adieresis -35 +KPX N Agrave -35 +KPX N Amacron -35 +KPX N Aogonek -35 +KPX N Aring -35 +KPX N Atilde -35 +KPX Nacute A -35 +KPX Nacute Aacute -35 +KPX Nacute Abreve -35 +KPX Nacute Acircumflex -35 +KPX Nacute Adieresis -35 +KPX Nacute Agrave -35 +KPX Nacute Amacron -35 +KPX Nacute Aogonek -35 +KPX Nacute Aring -35 +KPX Nacute Atilde -35 +KPX Ncaron A -35 +KPX Ncaron Aacute -35 +KPX Ncaron Abreve -35 +KPX Ncaron Acircumflex -35 +KPX Ncaron Adieresis -35 +KPX Ncaron Agrave -35 +KPX Ncaron Amacron -35 +KPX Ncaron Aogonek -35 +KPX Ncaron Aring -35 +KPX Ncaron Atilde -35 +KPX Ncommaaccent A -35 +KPX Ncommaaccent Aacute -35 +KPX Ncommaaccent Abreve -35 +KPX Ncommaaccent Acircumflex -35 +KPX Ncommaaccent Adieresis -35 +KPX Ncommaaccent Agrave -35 +KPX Ncommaaccent Amacron -35 +KPX Ncommaaccent Aogonek -35 +KPX Ncommaaccent Aring -35 +KPX Ncommaaccent Atilde -35 +KPX Ntilde A -35 +KPX Ntilde Aacute -35 +KPX Ntilde Abreve -35 +KPX Ntilde Acircumflex -35 +KPX Ntilde Adieresis -35 +KPX Ntilde Agrave -35 +KPX Ntilde Amacron -35 +KPX Ntilde Aogonek -35 +KPX Ntilde Aring -35 +KPX Ntilde Atilde -35 +KPX O A -35 +KPX O Aacute -35 +KPX O Abreve -35 +KPX O Acircumflex -35 +KPX O Adieresis -35 +KPX O Agrave -35 +KPX O Amacron -35 +KPX O Aogonek -35 +KPX O Aring -35 +KPX O Atilde -35 +KPX O T -40 +KPX O Tcaron -40 +KPX O Tcommaaccent -40 +KPX O V -50 +KPX O W -35 +KPX O X -40 +KPX O Y -50 +KPX O Yacute -50 +KPX O Ydieresis -50 +KPX Oacute A -35 +KPX Oacute Aacute -35 +KPX Oacute Abreve -35 +KPX Oacute Acircumflex -35 +KPX Oacute Adieresis -35 +KPX Oacute Agrave -35 +KPX Oacute Amacron -35 +KPX Oacute Aogonek -35 +KPX Oacute Aring -35 +KPX Oacute Atilde -35 +KPX Oacute T -40 +KPX Oacute Tcaron -40 +KPX Oacute Tcommaaccent -40 +KPX Oacute V -50 +KPX Oacute W -35 +KPX Oacute X -40 +KPX Oacute Y -50 +KPX Oacute Yacute -50 +KPX Oacute Ydieresis -50 +KPX Ocircumflex A -35 +KPX Ocircumflex Aacute -35 +KPX Ocircumflex Abreve -35 +KPX Ocircumflex Acircumflex -35 +KPX Ocircumflex Adieresis -35 +KPX Ocircumflex Agrave -35 +KPX Ocircumflex Amacron -35 +KPX Ocircumflex Aogonek -35 +KPX Ocircumflex Aring -35 +KPX Ocircumflex Atilde -35 +KPX Ocircumflex T -40 +KPX Ocircumflex Tcaron -40 +KPX Ocircumflex Tcommaaccent -40 +KPX Ocircumflex V -50 +KPX Ocircumflex W -35 +KPX Ocircumflex X -40 +KPX Ocircumflex Y -50 +KPX Ocircumflex Yacute -50 +KPX Ocircumflex Ydieresis -50 +KPX Odieresis A -35 +KPX Odieresis Aacute -35 +KPX Odieresis Abreve -35 +KPX Odieresis Acircumflex -35 +KPX Odieresis Adieresis -35 +KPX Odieresis Agrave -35 +KPX Odieresis Amacron -35 +KPX Odieresis Aogonek -35 +KPX Odieresis Aring -35 +KPX Odieresis Atilde -35 +KPX Odieresis T -40 +KPX Odieresis Tcaron -40 +KPX Odieresis Tcommaaccent -40 +KPX Odieresis V -50 +KPX Odieresis W -35 +KPX Odieresis X -40 +KPX Odieresis Y -50 +KPX Odieresis Yacute -50 +KPX Odieresis Ydieresis -50 +KPX Ograve A -35 +KPX Ograve Aacute -35 +KPX Ograve Abreve -35 +KPX Ograve Acircumflex -35 +KPX Ograve Adieresis -35 +KPX Ograve Agrave -35 +KPX Ograve Amacron -35 +KPX Ograve Aogonek -35 +KPX Ograve Aring -35 +KPX Ograve Atilde -35 +KPX Ograve T -40 +KPX Ograve Tcaron -40 +KPX Ograve Tcommaaccent -40 +KPX Ograve V -50 +KPX Ograve W -35 +KPX Ograve X -40 +KPX Ograve Y -50 +KPX Ograve Yacute -50 +KPX Ograve Ydieresis -50 +KPX Ohungarumlaut A -35 +KPX Ohungarumlaut Aacute -35 +KPX Ohungarumlaut Abreve -35 +KPX Ohungarumlaut Acircumflex -35 +KPX Ohungarumlaut Adieresis -35 +KPX Ohungarumlaut Agrave -35 +KPX Ohungarumlaut Amacron -35 +KPX Ohungarumlaut Aogonek -35 +KPX Ohungarumlaut Aring -35 +KPX Ohungarumlaut Atilde -35 +KPX Ohungarumlaut T -40 +KPX Ohungarumlaut Tcaron -40 +KPX Ohungarumlaut Tcommaaccent -40 +KPX Ohungarumlaut V -50 +KPX Ohungarumlaut W -35 +KPX Ohungarumlaut X -40 +KPX Ohungarumlaut Y -50 +KPX Ohungarumlaut Yacute -50 +KPX Ohungarumlaut Ydieresis -50 +KPX Omacron A -35 +KPX Omacron Aacute -35 +KPX Omacron Abreve -35 +KPX Omacron Acircumflex -35 +KPX Omacron Adieresis -35 +KPX Omacron Agrave -35 +KPX Omacron Amacron -35 +KPX Omacron Aogonek -35 +KPX Omacron Aring -35 +KPX Omacron Atilde -35 +KPX Omacron T -40 +KPX Omacron Tcaron -40 +KPX Omacron Tcommaaccent -40 +KPX Omacron V -50 +KPX Omacron W -35 +KPX Omacron X -40 +KPX Omacron Y -50 +KPX Omacron Yacute -50 +KPX Omacron Ydieresis -50 +KPX Oslash A -35 +KPX Oslash Aacute -35 +KPX Oslash Abreve -35 +KPX Oslash Acircumflex -35 +KPX Oslash Adieresis -35 +KPX Oslash Agrave -35 +KPX Oslash Amacron -35 +KPX Oslash Aogonek -35 +KPX Oslash Aring -35 +KPX Oslash Atilde -35 +KPX Oslash T -40 +KPX Oslash Tcaron -40 +KPX Oslash Tcommaaccent -40 +KPX Oslash V -50 +KPX Oslash W -35 +KPX Oslash X -40 +KPX Oslash Y -50 +KPX Oslash Yacute -50 +KPX Oslash Ydieresis -50 +KPX Otilde A -35 +KPX Otilde Aacute -35 +KPX Otilde Abreve -35 +KPX Otilde Acircumflex -35 +KPX Otilde Adieresis -35 +KPX Otilde Agrave -35 +KPX Otilde Amacron -35 +KPX Otilde Aogonek -35 +KPX Otilde Aring -35 +KPX Otilde Atilde -35 +KPX Otilde T -40 +KPX Otilde Tcaron -40 +KPX Otilde Tcommaaccent -40 +KPX Otilde V -50 +KPX Otilde W -35 +KPX Otilde X -40 +KPX Otilde Y -50 +KPX Otilde Yacute -50 +KPX Otilde Ydieresis -50 +KPX P A -92 +KPX P Aacute -92 +KPX P Abreve -92 +KPX P Acircumflex -92 +KPX P Adieresis -92 +KPX P Agrave -92 +KPX P Amacron -92 +KPX P Aogonek -92 +KPX P Aring -92 +KPX P Atilde -92 +KPX P a -15 +KPX P aacute -15 +KPX P abreve -15 +KPX P acircumflex -15 +KPX P adieresis -15 +KPX P agrave -15 +KPX P amacron -15 +KPX P aogonek -15 +KPX P aring -15 +KPX P atilde -15 +KPX P comma -111 +KPX P period -111 +KPX Q U -10 +KPX Q Uacute -10 +KPX Q Ucircumflex -10 +KPX Q Udieresis -10 +KPX Q Ugrave -10 +KPX Q Uhungarumlaut -10 +KPX Q Umacron -10 +KPX Q Uogonek -10 +KPX Q Uring -10 +KPX R O -40 +KPX R Oacute -40 +KPX R Ocircumflex -40 +KPX R Odieresis -40 +KPX R Ograve -40 +KPX R Ohungarumlaut -40 +KPX R Omacron -40 +KPX R Oslash -40 +KPX R Otilde -40 +KPX R T -60 +KPX R Tcaron -60 +KPX R Tcommaaccent -60 +KPX R U -40 +KPX R Uacute -40 +KPX R Ucircumflex -40 +KPX R Udieresis -40 +KPX R Ugrave -40 +KPX R Uhungarumlaut -40 +KPX R Umacron -40 +KPX R Uogonek -40 +KPX R Uring -40 +KPX R V -80 +KPX R W -55 +KPX R Y -65 +KPX R Yacute -65 +KPX R Ydieresis -65 +KPX Racute O -40 +KPX Racute Oacute -40 +KPX Racute Ocircumflex -40 +KPX Racute Odieresis -40 +KPX Racute Ograve -40 +KPX Racute Ohungarumlaut -40 +KPX Racute Omacron -40 +KPX Racute Oslash -40 +KPX Racute Otilde -40 +KPX Racute T -60 +KPX Racute Tcaron -60 +KPX Racute Tcommaaccent -60 +KPX Racute U -40 +KPX Racute Uacute -40 +KPX Racute Ucircumflex -40 +KPX Racute Udieresis -40 +KPX Racute Ugrave -40 +KPX Racute Uhungarumlaut -40 +KPX Racute Umacron -40 +KPX Racute Uogonek -40 +KPX Racute Uring -40 +KPX Racute V -80 +KPX Racute W -55 +KPX Racute Y -65 +KPX Racute Yacute -65 +KPX Racute Ydieresis -65 +KPX Rcaron O -40 +KPX Rcaron Oacute -40 +KPX Rcaron Ocircumflex -40 +KPX Rcaron Odieresis -40 +KPX Rcaron Ograve -40 +KPX Rcaron Ohungarumlaut -40 +KPX Rcaron Omacron -40 +KPX Rcaron Oslash -40 +KPX Rcaron Otilde -40 +KPX Rcaron T -60 +KPX Rcaron Tcaron -60 +KPX Rcaron Tcommaaccent -60 +KPX Rcaron U -40 +KPX Rcaron Uacute -40 +KPX Rcaron Ucircumflex -40 +KPX Rcaron Udieresis -40 +KPX Rcaron Ugrave -40 +KPX Rcaron Uhungarumlaut -40 +KPX Rcaron Umacron -40 +KPX Rcaron Uogonek -40 +KPX Rcaron Uring -40 +KPX Rcaron V -80 +KPX Rcaron W -55 +KPX Rcaron Y -65 +KPX Rcaron Yacute -65 +KPX Rcaron Ydieresis -65 +KPX Rcommaaccent O -40 +KPX Rcommaaccent Oacute -40 +KPX Rcommaaccent Ocircumflex -40 +KPX Rcommaaccent Odieresis -40 +KPX Rcommaaccent Ograve -40 +KPX Rcommaaccent Ohungarumlaut -40 +KPX Rcommaaccent Omacron -40 +KPX Rcommaaccent Oslash -40 +KPX Rcommaaccent Otilde -40 +KPX Rcommaaccent T -60 +KPX Rcommaaccent Tcaron -60 +KPX Rcommaaccent Tcommaaccent -60 +KPX Rcommaaccent U -40 +KPX Rcommaaccent Uacute -40 +KPX Rcommaaccent Ucircumflex -40 +KPX Rcommaaccent Udieresis -40 +KPX Rcommaaccent Ugrave -40 +KPX Rcommaaccent Uhungarumlaut -40 +KPX Rcommaaccent Umacron -40 +KPX Rcommaaccent Uogonek -40 +KPX Rcommaaccent Uring -40 +KPX Rcommaaccent V -80 +KPX Rcommaaccent W -55 +KPX Rcommaaccent Y -65 +KPX Rcommaaccent Yacute -65 +KPX Rcommaaccent Ydieresis -65 +KPX T A -93 +KPX T Aacute -93 +KPX T Abreve -93 +KPX T Acircumflex -93 +KPX T Adieresis -93 +KPX T Agrave -93 +KPX T Amacron -93 +KPX T Aogonek -93 +KPX T Aring -93 +KPX T Atilde -93 +KPX T O -18 +KPX T Oacute -18 +KPX T Ocircumflex -18 +KPX T Odieresis -18 +KPX T Ograve -18 +KPX T Ohungarumlaut -18 +KPX T Omacron -18 +KPX T Oslash -18 +KPX T Otilde -18 +KPX T a -80 +KPX T aacute -80 +KPX T abreve -80 +KPX T acircumflex -80 +KPX T adieresis -40 +KPX T agrave -40 +KPX T amacron -40 +KPX T aogonek -80 +KPX T aring -80 +KPX T atilde -40 +KPX T colon -50 +KPX T comma -74 +KPX T e -70 +KPX T eacute -70 +KPX T ecaron -70 +KPX T ecircumflex -70 +KPX T edieresis -30 +KPX T edotaccent -70 +KPX T egrave -70 +KPX T emacron -30 +KPX T eogonek -70 +KPX T hyphen -92 +KPX T i -35 +KPX T iacute -35 +KPX T iogonek -35 +KPX T o -80 +KPX T oacute -80 +KPX T ocircumflex -80 +KPX T odieresis -80 +KPX T ograve -80 +KPX T ohungarumlaut -80 +KPX T omacron -80 +KPX T oslash -80 +KPX T otilde -80 +KPX T period -74 +KPX T r -35 +KPX T racute -35 +KPX T rcaron -35 +KPX T rcommaaccent -35 +KPX T semicolon -55 +KPX T u -45 +KPX T uacute -45 +KPX T ucircumflex -45 +KPX T udieresis -45 +KPX T ugrave -45 +KPX T uhungarumlaut -45 +KPX T umacron -45 +KPX T uogonek -45 +KPX T uring -45 +KPX T w -80 +KPX T y -80 +KPX T yacute -80 +KPX T ydieresis -80 +KPX Tcaron A -93 +KPX Tcaron Aacute -93 +KPX Tcaron Abreve -93 +KPX Tcaron Acircumflex -93 +KPX Tcaron Adieresis -93 +KPX Tcaron Agrave -93 +KPX Tcaron Amacron -93 +KPX Tcaron Aogonek -93 +KPX Tcaron Aring -93 +KPX Tcaron Atilde -93 +KPX Tcaron O -18 +KPX Tcaron Oacute -18 +KPX Tcaron Ocircumflex -18 +KPX Tcaron Odieresis -18 +KPX Tcaron Ograve -18 +KPX Tcaron Ohungarumlaut -18 +KPX Tcaron Omacron -18 +KPX Tcaron Oslash -18 +KPX Tcaron Otilde -18 +KPX Tcaron a -80 +KPX Tcaron aacute -80 +KPX Tcaron abreve -80 +KPX Tcaron acircumflex -80 +KPX Tcaron adieresis -40 +KPX Tcaron agrave -40 +KPX Tcaron amacron -40 +KPX Tcaron aogonek -80 +KPX Tcaron aring -80 +KPX Tcaron atilde -40 +KPX Tcaron colon -50 +KPX Tcaron comma -74 +KPX Tcaron e -70 +KPX Tcaron eacute -70 +KPX Tcaron ecaron -70 +KPX Tcaron ecircumflex -30 +KPX Tcaron edieresis -30 +KPX Tcaron edotaccent -70 +KPX Tcaron egrave -70 +KPX Tcaron emacron -30 +KPX Tcaron eogonek -70 +KPX Tcaron hyphen -92 +KPX Tcaron i -35 +KPX Tcaron iacute -35 +KPX Tcaron iogonek -35 +KPX Tcaron o -80 +KPX Tcaron oacute -80 +KPX Tcaron ocircumflex -80 +KPX Tcaron odieresis -80 +KPX Tcaron ograve -80 +KPX Tcaron ohungarumlaut -80 +KPX Tcaron omacron -80 +KPX Tcaron oslash -80 +KPX Tcaron otilde -80 +KPX Tcaron period -74 +KPX Tcaron r -35 +KPX Tcaron racute -35 +KPX Tcaron rcaron -35 +KPX Tcaron rcommaaccent -35 +KPX Tcaron semicolon -55 +KPX Tcaron u -45 +KPX Tcaron uacute -45 +KPX Tcaron ucircumflex -45 +KPX Tcaron udieresis -45 +KPX Tcaron ugrave -45 +KPX Tcaron uhungarumlaut -45 +KPX Tcaron umacron -45 +KPX Tcaron uogonek -45 +KPX Tcaron uring -45 +KPX Tcaron w -80 +KPX Tcaron y -80 +KPX Tcaron yacute -80 +KPX Tcaron ydieresis -80 +KPX Tcommaaccent A -93 +KPX Tcommaaccent Aacute -93 +KPX Tcommaaccent Abreve -93 +KPX Tcommaaccent Acircumflex -93 +KPX Tcommaaccent Adieresis -93 +KPX Tcommaaccent Agrave -93 +KPX Tcommaaccent Amacron -93 +KPX Tcommaaccent Aogonek -93 +KPX Tcommaaccent Aring -93 +KPX Tcommaaccent Atilde -93 +KPX Tcommaaccent O -18 +KPX Tcommaaccent Oacute -18 +KPX Tcommaaccent Ocircumflex -18 +KPX Tcommaaccent Odieresis -18 +KPX Tcommaaccent Ograve -18 +KPX Tcommaaccent Ohungarumlaut -18 +KPX Tcommaaccent Omacron -18 +KPX Tcommaaccent Oslash -18 +KPX Tcommaaccent Otilde -18 +KPX Tcommaaccent a -80 +KPX Tcommaaccent aacute -80 +KPX Tcommaaccent abreve -80 +KPX Tcommaaccent acircumflex -80 +KPX Tcommaaccent adieresis -40 +KPX Tcommaaccent agrave -40 +KPX Tcommaaccent amacron -40 +KPX Tcommaaccent aogonek -80 +KPX Tcommaaccent aring -80 +KPX Tcommaaccent atilde -40 +KPX Tcommaaccent colon -50 +KPX Tcommaaccent comma -74 +KPX Tcommaaccent e -70 +KPX Tcommaaccent eacute -70 +KPX Tcommaaccent ecaron -70 +KPX Tcommaaccent ecircumflex -30 +KPX Tcommaaccent edieresis -30 +KPX Tcommaaccent edotaccent -70 +KPX Tcommaaccent egrave -30 +KPX Tcommaaccent emacron -70 +KPX Tcommaaccent eogonek -70 +KPX Tcommaaccent hyphen -92 +KPX Tcommaaccent i -35 +KPX Tcommaaccent iacute -35 +KPX Tcommaaccent iogonek -35 +KPX Tcommaaccent o -80 +KPX Tcommaaccent oacute -80 +KPX Tcommaaccent ocircumflex -80 +KPX Tcommaaccent odieresis -80 +KPX Tcommaaccent ograve -80 +KPX Tcommaaccent ohungarumlaut -80 +KPX Tcommaaccent omacron -80 +KPX Tcommaaccent oslash -80 +KPX Tcommaaccent otilde -80 +KPX Tcommaaccent period -74 +KPX Tcommaaccent r -35 +KPX Tcommaaccent racute -35 +KPX Tcommaaccent rcaron -35 +KPX Tcommaaccent rcommaaccent -35 +KPX Tcommaaccent semicolon -55 +KPX Tcommaaccent u -45 +KPX Tcommaaccent uacute -45 +KPX Tcommaaccent ucircumflex -45 +KPX Tcommaaccent udieresis -45 +KPX Tcommaaccent ugrave -45 +KPX Tcommaaccent uhungarumlaut -45 +KPX Tcommaaccent umacron -45 +KPX Tcommaaccent uogonek -45 +KPX Tcommaaccent uring -45 +KPX Tcommaaccent w -80 +KPX Tcommaaccent y -80 +KPX Tcommaaccent yacute -80 +KPX Tcommaaccent ydieresis -80 +KPX U A -40 +KPX U Aacute -40 +KPX U Abreve -40 +KPX U Acircumflex -40 +KPX U Adieresis -40 +KPX U Agrave -40 +KPX U Amacron -40 +KPX U Aogonek -40 +KPX U Aring -40 +KPX U Atilde -40 +KPX Uacute A -40 +KPX Uacute Aacute -40 +KPX Uacute Abreve -40 +KPX Uacute Acircumflex -40 +KPX Uacute Adieresis -40 +KPX Uacute Agrave -40 +KPX Uacute Amacron -40 +KPX Uacute Aogonek -40 +KPX Uacute Aring -40 +KPX Uacute Atilde -40 +KPX Ucircumflex A -40 +KPX Ucircumflex Aacute -40 +KPX Ucircumflex Abreve -40 +KPX Ucircumflex Acircumflex -40 +KPX Ucircumflex Adieresis -40 +KPX Ucircumflex Agrave -40 +KPX Ucircumflex Amacron -40 +KPX Ucircumflex Aogonek -40 +KPX Ucircumflex Aring -40 +KPX Ucircumflex Atilde -40 +KPX Udieresis A -40 +KPX Udieresis Aacute -40 +KPX Udieresis Abreve -40 +KPX Udieresis Acircumflex -40 +KPX Udieresis Adieresis -40 +KPX Udieresis Agrave -40 +KPX Udieresis Amacron -40 +KPX Udieresis Aogonek -40 +KPX Udieresis Aring -40 +KPX Udieresis Atilde -40 +KPX Ugrave A -40 +KPX Ugrave Aacute -40 +KPX Ugrave Abreve -40 +KPX Ugrave Acircumflex -40 +KPX Ugrave Adieresis -40 +KPX Ugrave Agrave -40 +KPX Ugrave Amacron -40 +KPX Ugrave Aogonek -40 +KPX Ugrave Aring -40 +KPX Ugrave Atilde -40 +KPX Uhungarumlaut A -40 +KPX Uhungarumlaut Aacute -40 +KPX Uhungarumlaut Abreve -40 +KPX Uhungarumlaut Acircumflex -40 +KPX Uhungarumlaut Adieresis -40 +KPX Uhungarumlaut Agrave -40 +KPX Uhungarumlaut Amacron -40 +KPX Uhungarumlaut Aogonek -40 +KPX Uhungarumlaut Aring -40 +KPX Uhungarumlaut Atilde -40 +KPX Umacron A -40 +KPX Umacron Aacute -40 +KPX Umacron Abreve -40 +KPX Umacron Acircumflex -40 +KPX Umacron Adieresis -40 +KPX Umacron Agrave -40 +KPX Umacron Amacron -40 +KPX Umacron Aogonek -40 +KPX Umacron Aring -40 +KPX Umacron Atilde -40 +KPX Uogonek A -40 +KPX Uogonek Aacute -40 +KPX Uogonek Abreve -40 +KPX Uogonek Acircumflex -40 +KPX Uogonek Adieresis -40 +KPX Uogonek Agrave -40 +KPX Uogonek Amacron -40 +KPX Uogonek Aogonek -40 +KPX Uogonek Aring -40 +KPX Uogonek Atilde -40 +KPX Uring A -40 +KPX Uring Aacute -40 +KPX Uring Abreve -40 +KPX Uring Acircumflex -40 +KPX Uring Adieresis -40 +KPX Uring Agrave -40 +KPX Uring Amacron -40 +KPX Uring Aogonek -40 +KPX Uring Aring -40 +KPX Uring Atilde -40 +KPX V A -135 +KPX V Aacute -135 +KPX V Abreve -135 +KPX V Acircumflex -135 +KPX V Adieresis -135 +KPX V Agrave -135 +KPX V Amacron -135 +KPX V Aogonek -135 +KPX V Aring -135 +KPX V Atilde -135 +KPX V G -15 +KPX V Gbreve -15 +KPX V Gcommaaccent -15 +KPX V O -40 +KPX V Oacute -40 +KPX V Ocircumflex -40 +KPX V Odieresis -40 +KPX V Ograve -40 +KPX V Ohungarumlaut -40 +KPX V Omacron -40 +KPX V Oslash -40 +KPX V Otilde -40 +KPX V a -111 +KPX V aacute -111 +KPX V abreve -111 +KPX V acircumflex -71 +KPX V adieresis -71 +KPX V agrave -71 +KPX V amacron -71 +KPX V aogonek -111 +KPX V aring -111 +KPX V atilde -71 +KPX V colon -74 +KPX V comma -129 +KPX V e -111 +KPX V eacute -111 +KPX V ecaron -71 +KPX V ecircumflex -71 +KPX V edieresis -71 +KPX V edotaccent -111 +KPX V egrave -71 +KPX V emacron -71 +KPX V eogonek -111 +KPX V hyphen -100 +KPX V i -60 +KPX V iacute -60 +KPX V icircumflex -20 +KPX V idieresis -20 +KPX V igrave -20 +KPX V imacron -20 +KPX V iogonek -60 +KPX V o -129 +KPX V oacute -129 +KPX V ocircumflex -129 +KPX V odieresis -89 +KPX V ograve -89 +KPX V ohungarumlaut -129 +KPX V omacron -89 +KPX V oslash -129 +KPX V otilde -89 +KPX V period -129 +KPX V semicolon -74 +KPX V u -75 +KPX V uacute -75 +KPX V ucircumflex -75 +KPX V udieresis -75 +KPX V ugrave -75 +KPX V uhungarumlaut -75 +KPX V umacron -75 +KPX V uogonek -75 +KPX V uring -75 +KPX W A -120 +KPX W Aacute -120 +KPX W Abreve -120 +KPX W Acircumflex -120 +KPX W Adieresis -120 +KPX W Agrave -120 +KPX W Amacron -120 +KPX W Aogonek -120 +KPX W Aring -120 +KPX W Atilde -120 +KPX W O -10 +KPX W Oacute -10 +KPX W Ocircumflex -10 +KPX W Odieresis -10 +KPX W Ograve -10 +KPX W Ohungarumlaut -10 +KPX W Omacron -10 +KPX W Oslash -10 +KPX W Otilde -10 +KPX W a -80 +KPX W aacute -80 +KPX W abreve -80 +KPX W acircumflex -80 +KPX W adieresis -80 +KPX W agrave -80 +KPX W amacron -80 +KPX W aogonek -80 +KPX W aring -80 +KPX W atilde -80 +KPX W colon -37 +KPX W comma -92 +KPX W e -80 +KPX W eacute -80 +KPX W ecaron -80 +KPX W ecircumflex -80 +KPX W edieresis -40 +KPX W edotaccent -80 +KPX W egrave -40 +KPX W emacron -40 +KPX W eogonek -80 +KPX W hyphen -65 +KPX W i -40 +KPX W iacute -40 +KPX W iogonek -40 +KPX W o -80 +KPX W oacute -80 +KPX W ocircumflex -80 +KPX W odieresis -80 +KPX W ograve -80 +KPX W ohungarumlaut -80 +KPX W omacron -80 +KPX W oslash -80 +KPX W otilde -80 +KPX W period -92 +KPX W semicolon -37 +KPX W u -50 +KPX W uacute -50 +KPX W ucircumflex -50 +KPX W udieresis -50 +KPX W ugrave -50 +KPX W uhungarumlaut -50 +KPX W umacron -50 +KPX W uogonek -50 +KPX W uring -50 +KPX W y -73 +KPX W yacute -73 +KPX W ydieresis -73 +KPX Y A -120 +KPX Y Aacute -120 +KPX Y Abreve -120 +KPX Y Acircumflex -120 +KPX Y Adieresis -120 +KPX Y Agrave -120 +KPX Y Amacron -120 +KPX Y Aogonek -120 +KPX Y Aring -120 +KPX Y Atilde -120 +KPX Y O -30 +KPX Y Oacute -30 +KPX Y Ocircumflex -30 +KPX Y Odieresis -30 +KPX Y Ograve -30 +KPX Y Ohungarumlaut -30 +KPX Y Omacron -30 +KPX Y Oslash -30 +KPX Y Otilde -30 +KPX Y a -100 +KPX Y aacute -100 +KPX Y abreve -100 +KPX Y acircumflex -100 +KPX Y adieresis -60 +KPX Y agrave -60 +KPX Y amacron -60 +KPX Y aogonek -100 +KPX Y aring -100 +KPX Y atilde -60 +KPX Y colon -92 +KPX Y comma -129 +KPX Y e -100 +KPX Y eacute -100 +KPX Y ecaron -100 +KPX Y ecircumflex -100 +KPX Y edieresis -60 +KPX Y edotaccent -100 +KPX Y egrave -60 +KPX Y emacron -60 +KPX Y eogonek -100 +KPX Y hyphen -111 +KPX Y i -55 +KPX Y iacute -55 +KPX Y iogonek -55 +KPX Y o -110 +KPX Y oacute -110 +KPX Y ocircumflex -110 +KPX Y odieresis -70 +KPX Y ograve -70 +KPX Y ohungarumlaut -110 +KPX Y omacron -70 +KPX Y oslash -110 +KPX Y otilde -70 +KPX Y period -129 +KPX Y semicolon -92 +KPX Y u -111 +KPX Y uacute -111 +KPX Y ucircumflex -111 +KPX Y udieresis -71 +KPX Y ugrave -71 +KPX Y uhungarumlaut -111 +KPX Y umacron -71 +KPX Y uogonek -111 +KPX Y uring -111 +KPX Yacute A -120 +KPX Yacute Aacute -120 +KPX Yacute Abreve -120 +KPX Yacute Acircumflex -120 +KPX Yacute Adieresis -120 +KPX Yacute Agrave -120 +KPX Yacute Amacron -120 +KPX Yacute Aogonek -120 +KPX Yacute Aring -120 +KPX Yacute Atilde -120 +KPX Yacute O -30 +KPX Yacute Oacute -30 +KPX Yacute Ocircumflex -30 +KPX Yacute Odieresis -30 +KPX Yacute Ograve -30 +KPX Yacute Ohungarumlaut -30 +KPX Yacute Omacron -30 +KPX Yacute Oslash -30 +KPX Yacute Otilde -30 +KPX Yacute a -100 +KPX Yacute aacute -100 +KPX Yacute abreve -100 +KPX Yacute acircumflex -100 +KPX Yacute adieresis -60 +KPX Yacute agrave -60 +KPX Yacute amacron -60 +KPX Yacute aogonek -100 +KPX Yacute aring -100 +KPX Yacute atilde -60 +KPX Yacute colon -92 +KPX Yacute comma -129 +KPX Yacute e -100 +KPX Yacute eacute -100 +KPX Yacute ecaron -100 +KPX Yacute ecircumflex -100 +KPX Yacute edieresis -60 +KPX Yacute edotaccent -100 +KPX Yacute egrave -60 +KPX Yacute emacron -60 +KPX Yacute eogonek -100 +KPX Yacute hyphen -111 +KPX Yacute i -55 +KPX Yacute iacute -55 +KPX Yacute iogonek -55 +KPX Yacute o -110 +KPX Yacute oacute -110 +KPX Yacute ocircumflex -110 +KPX Yacute odieresis -70 +KPX Yacute ograve -70 +KPX Yacute ohungarumlaut -110 +KPX Yacute omacron -70 +KPX Yacute oslash -110 +KPX Yacute otilde -70 +KPX Yacute period -129 +KPX Yacute semicolon -92 +KPX Yacute u -111 +KPX Yacute uacute -111 +KPX Yacute ucircumflex -111 +KPX Yacute udieresis -71 +KPX Yacute ugrave -71 +KPX Yacute uhungarumlaut -111 +KPX Yacute umacron -71 +KPX Yacute uogonek -111 +KPX Yacute uring -111 +KPX Ydieresis A -120 +KPX Ydieresis Aacute -120 +KPX Ydieresis Abreve -120 +KPX Ydieresis Acircumflex -120 +KPX Ydieresis Adieresis -120 +KPX Ydieresis Agrave -120 +KPX Ydieresis Amacron -120 +KPX Ydieresis Aogonek -120 +KPX Ydieresis Aring -120 +KPX Ydieresis Atilde -120 +KPX Ydieresis O -30 +KPX Ydieresis Oacute -30 +KPX Ydieresis Ocircumflex -30 +KPX Ydieresis Odieresis -30 +KPX Ydieresis Ograve -30 +KPX Ydieresis Ohungarumlaut -30 +KPX Ydieresis Omacron -30 +KPX Ydieresis Oslash -30 +KPX Ydieresis Otilde -30 +KPX Ydieresis a -100 +KPX Ydieresis aacute -100 +KPX Ydieresis abreve -100 +KPX Ydieresis acircumflex -100 +KPX Ydieresis adieresis -60 +KPX Ydieresis agrave -60 +KPX Ydieresis amacron -60 +KPX Ydieresis aogonek -100 +KPX Ydieresis aring -100 +KPX Ydieresis atilde -100 +KPX Ydieresis colon -92 +KPX Ydieresis comma -129 +KPX Ydieresis e -100 +KPX Ydieresis eacute -100 +KPX Ydieresis ecaron -100 +KPX Ydieresis ecircumflex -100 +KPX Ydieresis edieresis -60 +KPX Ydieresis edotaccent -100 +KPX Ydieresis egrave -60 +KPX Ydieresis emacron -60 +KPX Ydieresis eogonek -100 +KPX Ydieresis hyphen -111 +KPX Ydieresis i -55 +KPX Ydieresis iacute -55 +KPX Ydieresis iogonek -55 +KPX Ydieresis o -110 +KPX Ydieresis oacute -110 +KPX Ydieresis ocircumflex -110 +KPX Ydieresis odieresis -70 +KPX Ydieresis ograve -70 +KPX Ydieresis ohungarumlaut -110 +KPX Ydieresis omacron -70 +KPX Ydieresis oslash -110 +KPX Ydieresis otilde -70 +KPX Ydieresis period -129 +KPX Ydieresis semicolon -92 +KPX Ydieresis u -111 +KPX Ydieresis uacute -111 +KPX Ydieresis ucircumflex -111 +KPX Ydieresis udieresis -71 +KPX Ydieresis ugrave -71 +KPX Ydieresis uhungarumlaut -111 +KPX Ydieresis umacron -71 +KPX Ydieresis uogonek -111 +KPX Ydieresis uring -111 +KPX a v -20 +KPX a w -15 +KPX aacute v -20 +KPX aacute w -15 +KPX abreve v -20 +KPX abreve w -15 +KPX acircumflex v -20 +KPX acircumflex w -15 +KPX adieresis v -20 +KPX adieresis w -15 +KPX agrave v -20 +KPX agrave w -15 +KPX amacron v -20 +KPX amacron w -15 +KPX aogonek v -20 +KPX aogonek w -15 +KPX aring v -20 +KPX aring w -15 +KPX atilde v -20 +KPX atilde w -15 +KPX b period -40 +KPX b u -20 +KPX b uacute -20 +KPX b ucircumflex -20 +KPX b udieresis -20 +KPX b ugrave -20 +KPX b uhungarumlaut -20 +KPX b umacron -20 +KPX b uogonek -20 +KPX b uring -20 +KPX b v -15 +KPX c y -15 +KPX c yacute -15 +KPX c ydieresis -15 +KPX cacute y -15 +KPX cacute yacute -15 +KPX cacute ydieresis -15 +KPX ccaron y -15 +KPX ccaron yacute -15 +KPX ccaron ydieresis -15 +KPX ccedilla y -15 +KPX ccedilla yacute -15 +KPX ccedilla ydieresis -15 +KPX comma quotedblright -70 +KPX comma quoteright -70 +KPX e g -15 +KPX e gbreve -15 +KPX e gcommaaccent -15 +KPX e v -25 +KPX e w -25 +KPX e x -15 +KPX e y -15 +KPX e yacute -15 +KPX e ydieresis -15 +KPX eacute g -15 +KPX eacute gbreve -15 +KPX eacute gcommaaccent -15 +KPX eacute v -25 +KPX eacute w -25 +KPX eacute x -15 +KPX eacute y -15 +KPX eacute yacute -15 +KPX eacute ydieresis -15 +KPX ecaron g -15 +KPX ecaron gbreve -15 +KPX ecaron gcommaaccent -15 +KPX ecaron v -25 +KPX ecaron w -25 +KPX ecaron x -15 +KPX ecaron y -15 +KPX ecaron yacute -15 +KPX ecaron ydieresis -15 +KPX ecircumflex g -15 +KPX ecircumflex gbreve -15 +KPX ecircumflex gcommaaccent -15 +KPX ecircumflex v -25 +KPX ecircumflex w -25 +KPX ecircumflex x -15 +KPX ecircumflex y -15 +KPX ecircumflex yacute -15 +KPX ecircumflex ydieresis -15 +KPX edieresis g -15 +KPX edieresis gbreve -15 +KPX edieresis gcommaaccent -15 +KPX edieresis v -25 +KPX edieresis w -25 +KPX edieresis x -15 +KPX edieresis y -15 +KPX edieresis yacute -15 +KPX edieresis ydieresis -15 +KPX edotaccent g -15 +KPX edotaccent gbreve -15 +KPX edotaccent gcommaaccent -15 +KPX edotaccent v -25 +KPX edotaccent w -25 +KPX edotaccent x -15 +KPX edotaccent y -15 +KPX edotaccent yacute -15 +KPX edotaccent ydieresis -15 +KPX egrave g -15 +KPX egrave gbreve -15 +KPX egrave gcommaaccent -15 +KPX egrave v -25 +KPX egrave w -25 +KPX egrave x -15 +KPX egrave y -15 +KPX egrave yacute -15 +KPX egrave ydieresis -15 +KPX emacron g -15 +KPX emacron gbreve -15 +KPX emacron gcommaaccent -15 +KPX emacron v -25 +KPX emacron w -25 +KPX emacron x -15 +KPX emacron y -15 +KPX emacron yacute -15 +KPX emacron ydieresis -15 +KPX eogonek g -15 +KPX eogonek gbreve -15 +KPX eogonek gcommaaccent -15 +KPX eogonek v -25 +KPX eogonek w -25 +KPX eogonek x -15 +KPX eogonek y -15 +KPX eogonek yacute -15 +KPX eogonek ydieresis -15 +KPX f a -10 +KPX f aacute -10 +KPX f abreve -10 +KPX f acircumflex -10 +KPX f adieresis -10 +KPX f agrave -10 +KPX f amacron -10 +KPX f aogonek -10 +KPX f aring -10 +KPX f atilde -10 +KPX f dotlessi -50 +KPX f f -25 +KPX f i -20 +KPX f iacute -20 +KPX f quoteright 55 +KPX g a -5 +KPX g aacute -5 +KPX g abreve -5 +KPX g acircumflex -5 +KPX g adieresis -5 +KPX g agrave -5 +KPX g amacron -5 +KPX g aogonek -5 +KPX g aring -5 +KPX g atilde -5 +KPX gbreve a -5 +KPX gbreve aacute -5 +KPX gbreve abreve -5 +KPX gbreve acircumflex -5 +KPX gbreve adieresis -5 +KPX gbreve agrave -5 +KPX gbreve amacron -5 +KPX gbreve aogonek -5 +KPX gbreve aring -5 +KPX gbreve atilde -5 +KPX gcommaaccent a -5 +KPX gcommaaccent aacute -5 +KPX gcommaaccent abreve -5 +KPX gcommaaccent acircumflex -5 +KPX gcommaaccent adieresis -5 +KPX gcommaaccent agrave -5 +KPX gcommaaccent amacron -5 +KPX gcommaaccent aogonek -5 +KPX gcommaaccent aring -5 +KPX gcommaaccent atilde -5 +KPX h y -5 +KPX h yacute -5 +KPX h ydieresis -5 +KPX i v -25 +KPX iacute v -25 +KPX icircumflex v -25 +KPX idieresis v -25 +KPX igrave v -25 +KPX imacron v -25 +KPX iogonek v -25 +KPX k e -10 +KPX k eacute -10 +KPX k ecaron -10 +KPX k ecircumflex -10 +KPX k edieresis -10 +KPX k edotaccent -10 +KPX k egrave -10 +KPX k emacron -10 +KPX k eogonek -10 +KPX k o -10 +KPX k oacute -10 +KPX k ocircumflex -10 +KPX k odieresis -10 +KPX k ograve -10 +KPX k ohungarumlaut -10 +KPX k omacron -10 +KPX k oslash -10 +KPX k otilde -10 +KPX k y -15 +KPX k yacute -15 +KPX k ydieresis -15 +KPX kcommaaccent e -10 +KPX kcommaaccent eacute -10 +KPX kcommaaccent ecaron -10 +KPX kcommaaccent ecircumflex -10 +KPX kcommaaccent edieresis -10 +KPX kcommaaccent edotaccent -10 +KPX kcommaaccent egrave -10 +KPX kcommaaccent emacron -10 +KPX kcommaaccent eogonek -10 +KPX kcommaaccent o -10 +KPX kcommaaccent oacute -10 +KPX kcommaaccent ocircumflex -10 +KPX kcommaaccent odieresis -10 +KPX kcommaaccent ograve -10 +KPX kcommaaccent ohungarumlaut -10 +KPX kcommaaccent omacron -10 +KPX kcommaaccent oslash -10 +KPX kcommaaccent otilde -10 +KPX kcommaaccent y -15 +KPX kcommaaccent yacute -15 +KPX kcommaaccent ydieresis -15 +KPX l w -10 +KPX lacute w -10 +KPX lcommaaccent w -10 +KPX lslash w -10 +KPX n v -40 +KPX n y -15 +KPX n yacute -15 +KPX n ydieresis -15 +KPX nacute v -40 +KPX nacute y -15 +KPX nacute yacute -15 +KPX nacute ydieresis -15 +KPX ncaron v -40 +KPX ncaron y -15 +KPX ncaron yacute -15 +KPX ncaron ydieresis -15 +KPX ncommaaccent v -40 +KPX ncommaaccent y -15 +KPX ncommaaccent yacute -15 +KPX ncommaaccent ydieresis -15 +KPX ntilde v -40 +KPX ntilde y -15 +KPX ntilde yacute -15 +KPX ntilde ydieresis -15 +KPX o v -15 +KPX o w -25 +KPX o y -10 +KPX o yacute -10 +KPX o ydieresis -10 +KPX oacute v -15 +KPX oacute w -25 +KPX oacute y -10 +KPX oacute yacute -10 +KPX oacute ydieresis -10 +KPX ocircumflex v -15 +KPX ocircumflex w -25 +KPX ocircumflex y -10 +KPX ocircumflex yacute -10 +KPX ocircumflex ydieresis -10 +KPX odieresis v -15 +KPX odieresis w -25 +KPX odieresis y -10 +KPX odieresis yacute -10 +KPX odieresis ydieresis -10 +KPX ograve v -15 +KPX ograve w -25 +KPX ograve y -10 +KPX ograve yacute -10 +KPX ograve ydieresis -10 +KPX ohungarumlaut v -15 +KPX ohungarumlaut w -25 +KPX ohungarumlaut y -10 +KPX ohungarumlaut yacute -10 +KPX ohungarumlaut ydieresis -10 +KPX omacron v -15 +KPX omacron w -25 +KPX omacron y -10 +KPX omacron yacute -10 +KPX omacron ydieresis -10 +KPX oslash v -15 +KPX oslash w -25 +KPX oslash y -10 +KPX oslash yacute -10 +KPX oslash ydieresis -10 +KPX otilde v -15 +KPX otilde w -25 +KPX otilde y -10 +KPX otilde yacute -10 +KPX otilde ydieresis -10 +KPX p y -10 +KPX p yacute -10 +KPX p ydieresis -10 +KPX period quotedblright -70 +KPX period quoteright -70 +KPX quotedblleft A -80 +KPX quotedblleft Aacute -80 +KPX quotedblleft Abreve -80 +KPX quotedblleft Acircumflex -80 +KPX quotedblleft Adieresis -80 +KPX quotedblleft Agrave -80 +KPX quotedblleft Amacron -80 +KPX quotedblleft Aogonek -80 +KPX quotedblleft Aring -80 +KPX quotedblleft Atilde -80 +KPX quoteleft A -80 +KPX quoteleft Aacute -80 +KPX quoteleft Abreve -80 +KPX quoteleft Acircumflex -80 +KPX quoteleft Adieresis -80 +KPX quoteleft Agrave -80 +KPX quoteleft Amacron -80 +KPX quoteleft Aogonek -80 +KPX quoteleft Aring -80 +KPX quoteleft Atilde -80 +KPX quoteleft quoteleft -74 +KPX quoteright d -50 +KPX quoteright dcroat -50 +KPX quoteright l -10 +KPX quoteright lacute -10 +KPX quoteright lcommaaccent -10 +KPX quoteright lslash -10 +KPX quoteright quoteright -74 +KPX quoteright r -50 +KPX quoteright racute -50 +KPX quoteright rcaron -50 +KPX quoteright rcommaaccent -50 +KPX quoteright s -55 +KPX quoteright sacute -55 +KPX quoteright scaron -55 +KPX quoteright scedilla -55 +KPX quoteright scommaaccent -55 +KPX quoteright space -74 +KPX quoteright t -18 +KPX quoteright tcommaaccent -18 +KPX quoteright v -50 +KPX r comma -40 +KPX r g -18 +KPX r gbreve -18 +KPX r gcommaaccent -18 +KPX r hyphen -20 +KPX r period -55 +KPX racute comma -40 +KPX racute g -18 +KPX racute gbreve -18 +KPX racute gcommaaccent -18 +KPX racute hyphen -20 +KPX racute period -55 +KPX rcaron comma -40 +KPX rcaron g -18 +KPX rcaron gbreve -18 +KPX rcaron gcommaaccent -18 +KPX rcaron hyphen -20 +KPX rcaron period -55 +KPX rcommaaccent comma -40 +KPX rcommaaccent g -18 +KPX rcommaaccent gbreve -18 +KPX rcommaaccent gcommaaccent -18 +KPX rcommaaccent hyphen -20 +KPX rcommaaccent period -55 +KPX space A -55 +KPX space Aacute -55 +KPX space Abreve -55 +KPX space Acircumflex -55 +KPX space Adieresis -55 +KPX space Agrave -55 +KPX space Amacron -55 +KPX space Aogonek -55 +KPX space Aring -55 +KPX space Atilde -55 +KPX space T -18 +KPX space Tcaron -18 +KPX space Tcommaaccent -18 +KPX space V -50 +KPX space W -30 +KPX space Y -90 +KPX space Yacute -90 +KPX space Ydieresis -90 +KPX v a -25 +KPX v aacute -25 +KPX v abreve -25 +KPX v acircumflex -25 +KPX v adieresis -25 +KPX v agrave -25 +KPX v amacron -25 +KPX v aogonek -25 +KPX v aring -25 +KPX v atilde -25 +KPX v comma -65 +KPX v e -15 +KPX v eacute -15 +KPX v ecaron -15 +KPX v ecircumflex -15 +KPX v edieresis -15 +KPX v edotaccent -15 +KPX v egrave -15 +KPX v emacron -15 +KPX v eogonek -15 +KPX v o -20 +KPX v oacute -20 +KPX v ocircumflex -20 +KPX v odieresis -20 +KPX v ograve -20 +KPX v ohungarumlaut -20 +KPX v omacron -20 +KPX v oslash -20 +KPX v otilde -20 +KPX v period -65 +KPX w a -10 +KPX w aacute -10 +KPX w abreve -10 +KPX w acircumflex -10 +KPX w adieresis -10 +KPX w agrave -10 +KPX w amacron -10 +KPX w aogonek -10 +KPX w aring -10 +KPX w atilde -10 +KPX w comma -65 +KPX w o -10 +KPX w oacute -10 +KPX w ocircumflex -10 +KPX w odieresis -10 +KPX w ograve -10 +KPX w ohungarumlaut -10 +KPX w omacron -10 +KPX w oslash -10 +KPX w otilde -10 +KPX w period -65 +KPX x e -15 +KPX x eacute -15 +KPX x ecaron -15 +KPX x ecircumflex -15 +KPX x edieresis -15 +KPX x edotaccent -15 +KPX x egrave -15 +KPX x emacron -15 +KPX x eogonek -15 +KPX y comma -65 +KPX y period -65 +KPX yacute comma -65 +KPX yacute period -65 +KPX ydieresis comma -65 +KPX ydieresis period -65 +EndKernPairs +EndKernData +EndFontMetrics diff --git a/shared/package-files/86/861446406350d8420dbe64c5f97909c4665744ebd0259b96c2e6c262af0cc7d5/test_richclub.py b/shared/package-files/86/861446406350d8420dbe64c5f97909c4665744ebd0259b96c2e6c262af0cc7d5/test_richclub.py new file mode 100644 index 0000000000000000000000000000000000000000..5638ddbf007a6075c3b87a1118ced18a4aa2b7a6 --- /dev/null +++ b/shared/package-files/86/861446406350d8420dbe64c5f97909c4665744ebd0259b96c2e6c262af0cc7d5/test_richclub.py @@ -0,0 +1,97 @@ +import pytest + +import networkx as nx + + +def test_richclub(): + G = nx.Graph([(0, 1), (0, 2), (1, 2), (1, 3), (1, 4), (4, 5)]) + rc = nx.richclub.rich_club_coefficient(G, normalized=False) + assert rc == {0: 12.0 / 30, 1: 8.0 / 12} + + # test single value + rc0 = nx.richclub.rich_club_coefficient(G, normalized=False)[0] + assert rc0 == 12.0 / 30.0 + + +def test_richclub_seed(): + G = nx.Graph([(0, 1), (0, 2), (1, 2), (1, 3), (1, 4), (4, 5)]) + rcNorm = nx.richclub.rich_club_coefficient(G, Q=2, seed=1) + assert rcNorm == {0: 1.0, 1: 1.0} + + +def test_richclub_normalized(): + G = nx.Graph([(0, 1), (0, 2), (1, 2), (1, 3), (1, 4), (4, 5)]) + rcNorm = nx.richclub.rich_club_coefficient(G, Q=2) + assert rcNorm == {0: 1.0, 1: 1.0} + + +def test_richclub2(): + T = nx.balanced_tree(2, 10) + rc = nx.richclub.rich_club_coefficient(T, normalized=False) + assert rc == { + 0: 4092 / (2047 * 2046.0), + 1: (2044.0 / (1023 * 1022)), + 2: (2040.0 / (1022 * 1021)), + } + + +def test_richclub3(): + # tests edgecase + G = nx.karate_club_graph() + rc = nx.rich_club_coefficient(G, normalized=False) + assert rc == { + 0: 156.0 / 1122, + 1: 154.0 / 1056, + 2: 110.0 / 462, + 3: 78.0 / 240, + 4: 44.0 / 90, + 5: 22.0 / 42, + 6: 10.0 / 20, + 7: 10.0 / 20, + 8: 10.0 / 20, + 9: 6.0 / 12, + 10: 2.0 / 6, + 11: 2.0 / 6, + 12: 0.0, + 13: 0.0, + 14: 0.0, + 15: 0.0, + } + + +def test_richclub4(): + G = nx.Graph() + G.add_edges_from( + [(0, 1), (0, 2), (0, 3), (0, 4), (4, 5), (5, 9), (6, 9), (7, 9), (8, 9)] + ) + rc = nx.rich_club_coefficient(G, normalized=False) + assert rc == {0: 18 / 90.0, 1: 6 / 12.0, 2: 0.0, 3: 0.0} + + +def test_richclub_exception(): + with pytest.raises(nx.NetworkXNotImplemented): + G = nx.DiGraph() + nx.rich_club_coefficient(G) + + +def test_rich_club_exception2(): + with pytest.raises(nx.NetworkXNotImplemented): + G = nx.MultiGraph() + nx.rich_club_coefficient(G) + + +def test_rich_club_selfloop(): + G = nx.Graph() # or DiGraph, MultiGraph, MultiDiGraph, etc + G.add_edge(1, 1) # self loop + G.add_edge(1, 2) + with pytest.raises( + Exception, + match="rich_club_coefficient is not implemented for " "graphs with self loops.", + ): + nx.rich_club_coefficient(G) + + +# def test_richclub2_normalized(): +# T = nx.balanced_tree(2,10) +# rcNorm = nx.richclub.rich_club_coefficient(T,Q=2) +# assert_true(rcNorm[0] ==1.0 and rcNorm[1] < 0.9 and rcNorm[2] < 0.9) diff --git a/shared/package-files/86/8617ec6c8379e159dc58b51823c81ee78d4ace1b6a96f5915dfee5ef5fd81f02/direct_url.json b/shared/package-files/86/8617ec6c8379e159dc58b51823c81ee78d4ace1b6a96f5915dfee5ef5fd81f02/direct_url.json new file mode 100644 index 0000000000000000000000000000000000000000..dccbf661b16a4c4c59701d6a470e166996c9e746 --- /dev/null +++ b/shared/package-files/86/8617ec6c8379e159dc58b51823c81ee78d4ace1b6a96f5915dfee5ef5fd81f02/direct_url.json @@ -0,0 +1 @@ +{"dir_info": {}, "url": "file:///croot/pyyaml_1698096049011/work"} \ No newline at end of file diff --git a/shared/package-files/86/861bc99fa8e25ecf24b81b6e9fc92b3544d74e58c7f9e2b16b15ccd53fbb4973/T_S_I__5.py b/shared/package-files/86/861bc99fa8e25ecf24b81b6e9fc92b3544d74e58c7f9e2b16b15ccd53fbb4973/T_S_I__5.py new file mode 100644 index 0000000000000000000000000000000000000000..8aa382e43ca0e4bb33994d2e093459a09ba12a9b --- /dev/null +++ b/shared/package-files/86/861bc99fa8e25ecf24b81b6e9fc92b3544d74e58c7f9e2b16b15ccd53fbb4973/T_S_I__5.py @@ -0,0 +1,60 @@ +"""TSI{0,1,2,3,5} are private tables used by Microsoft Visual TrueType (VTT) +tool to store its hinting source data. + +TSI5 contains the VTT character groups. + +See also https://learn.microsoft.com/en-us/typography/tools/vtt/tsi-tables +""" + +import array +import logging +import sys + +from fontTools.misc.textTools import safeEval + +from . import DefaultTable + +log = logging.getLogger(__name__) + + +class table_T_S_I__5(DefaultTable.DefaultTable): + def decompile(self, data, ttFont): + numGlyphs = ttFont["maxp"].numGlyphs + a = array.array("H") + a.frombytes(data) + if sys.byteorder != "big": + a.byteswap() + self.glyphGrouping = {} + numEntries = len(data) // 2 + if numEntries != numGlyphs: + diff = numEntries - numGlyphs + log.warning( + "Number of entries differs from the number of glyphs in the font " + f"by {abs(diff)} ({numEntries} entries vs. {numGlyphs} glyphs)." + ) + for i in range(numEntries): + self.glyphGrouping[ttFont.getGlyphName(i)] = a[i] + + def compile(self, ttFont): + glyphNames = ttFont.getGlyphOrder() + a = array.array("H") + for glyphName in glyphNames: + a.append(self.glyphGrouping.get(glyphName, 0)) + if sys.byteorder != "big": + a.byteswap() + return a.tobytes() + + def toXML(self, writer, ttFont): + names = sorted(self.glyphGrouping.keys()) + for glyphName in names: + writer.simpletag( + "glyphgroup", name=glyphName, value=self.glyphGrouping[glyphName] + ) + writer.newline() + + def fromXML(self, name, attrs, content, ttFont): + if not hasattr(self, "glyphGrouping"): + self.glyphGrouping = {} + if name != "glyphgroup": + return + self.glyphGrouping[attrs["name"]] = safeEval(attrs["value"]) diff --git a/shared/package-files/86/861ca813afa248b9bd8825469a1a2ab9dc8c39da6b7d14b7c99f4c96b26b92dc/arcsinh_native.h b/shared/package-files/86/861ca813afa248b9bd8825469a1a2ab9dc8c39da6b7d14b7c99f4c96b26b92dc/arcsinh_native.h new file mode 100644 index 0000000000000000000000000000000000000000..51fdd57ffb59435a150c1c0805183891aa36dad6 --- /dev/null +++ b/shared/package-files/86/861ca813afa248b9bd8825469a1a2ab9dc8c39da6b7d14b7c99f4c96b26b92dc/arcsinh_native.h @@ -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 arcsinh(const at::Tensor & self); +TORCH_API at::Tensor & arcsinh_out(const at::Tensor & self, at::Tensor & out); +TORCH_API at::Tensor & arcsinh_(at::Tensor & self); +} // namespace native +} // namespace at diff --git a/shared/package-files/86/86285a58bdad0097d38e4395c3a5eed20afb1b58ac952706edb6bfb232b02734/_linalg_det_meta_dispatch.h b/shared/package-files/86/86285a58bdad0097d38e4395c3a5eed20afb1b58ac952706edb6bfb232b02734/_linalg_det_meta_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..7e12eafccb489d355d79922077d8acb44e99b615 --- /dev/null +++ b/shared/package-files/86/86285a58bdad0097d38e4395c3a5eed20afb1b58ac952706edb6bfb232b02734/_linalg_det_meta_dispatch.h @@ -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 ::std::tuple _linalg_det(const at::Tensor & A); +TORCH_API ::std::tuple _linalg_det_out(at::Tensor & result, at::Tensor & LU, at::Tensor & pivots, const at::Tensor & A); +TORCH_API ::std::tuple _linalg_det_outf(const at::Tensor & A, at::Tensor & result, at::Tensor & LU, at::Tensor & pivots); + +} // namespace meta +} // namespace at diff --git a/shared/package-files/86/86292f69294a0a2c37c9a1bfaaf0134fd8092ba3ec335fbac088fb215ed3cf15/validators.py b/shared/package-files/86/86292f69294a0a2c37c9a1bfaaf0134fd8092ba3ec335fbac088fb215ed3cf15/validators.py new file mode 100644 index 0000000000000000000000000000000000000000..e21304e074a5ba23c5f23c2d906a30be293ab6f9 --- /dev/null +++ b/shared/package-files/86/86292f69294a0a2c37c9a1bfaaf0134fd8092ba3ec335fbac088fb215ed3cf15/validators.py @@ -0,0 +1,26 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause +from __future__ import annotations + +import os +from argparse import ArgumentError + +from ..utils import CONDA_PACKAGE_EXTENSIONS, is_conda_pkg + +CONDA_PKG_OR_RECIPE_ERROR_MESSAGE = ( + "\nUnable to parse provided recipe directory or package file.\n\n" + f"Please make sure this argument is either a valid package \n" + f'file ({" or ".join(CONDA_PACKAGE_EXTENSIONS)}) or points to a directory containing recipe.' +) + + +def validate_is_conda_pkg_or_recipe_dir(arg_val: str) -> str: + """ + Makes sure the argument is either a conda pkg file or a recipe directory. + """ + if os.path.isdir(arg_val): + return arg_val + elif is_conda_pkg(arg_val): + return arg_val + else: + raise ArgumentError(None, CONDA_PKG_OR_RECIPE_ERROR_MESSAGE) diff --git a/shared/package-files/86/862b652ed335be902ff6cc6b97d5e85c50eb58406858ffb29a21d3d2bcc698ac/Export.h b/shared/package-files/86/862b652ed335be902ff6cc6b97d5e85c50eb58406858ffb29a21d3d2bcc698ac/Export.h new file mode 100644 index 0000000000000000000000000000000000000000..cb68060ed8129d408f1d4fdddd4bb1cdd9cd5053 --- /dev/null +++ b/shared/package-files/86/862b652ed335be902ff6cc6b97d5e85c50eb58406858ffb29a21d3d2bcc698ac/Export.h @@ -0,0 +1,160 @@ +#ifndef C10_MACROS_EXPORT_H_ +#define C10_MACROS_EXPORT_H_ + +/* Header file to define the common scaffolding for exported symbols. + * + * Export is by itself a quite tricky situation to deal with, and if you are + * hitting this file, make sure you start with the background here: + * - Linux: https://gcc.gnu.org/wiki/Visibility + * - Windows: + * https://docs.microsoft.com/en-us/cpp/cpp/dllexport-dllimport?view=vs-2017 + * + * Do NOT include this file directly. Instead, use c10/macros/Macros.h + */ + +// You do not need to edit this part of file unless you are changing the core +// pytorch export abstractions. +// +// This part defines the C10 core export and import macros. This is controlled +// by whether we are building shared libraries or not, which is determined +// during build time and codified in c10/core/cmake_macros.h. +// When the library is built as a shared lib, EXPORT and IMPORT will contain +// visibility attributes. If it is being built as a static lib, then EXPORT +// and IMPORT basically have no effect. + +// As a rule of thumb, you should almost NEVER mix static and shared builds for +// libraries that depend on c10. AKA, if c10 is built as a static library, we +// recommend everything dependent on c10 to be built statically. If c10 is built +// as a shared library, everything dependent on it should be built as shared. In +// the PyTorch project, all native libraries shall use the macro +// C10_BUILD_SHARED_LIB to check whether pytorch is building shared or static +// libraries. + +// For build systems that do not directly depend on CMake and directly build +// from the source directory (such as Buck), one may not have a cmake_macros.h +// file at all. In this case, the build system is responsible for providing +// correct macro definitions corresponding to the cmake_macros.h.in file. +// +// In such scenarios, one should define the macro +// C10_USING_CUSTOM_GENERATED_MACROS +// to inform this header that it does not need to include the cmake_macros.h +// file. + +#ifndef C10_USING_CUSTOM_GENERATED_MACROS +#include +#endif // C10_USING_CUSTOM_GENERATED_MACROS + +#ifdef _WIN32 +#define C10_HIDDEN +#if defined(C10_BUILD_SHARED_LIBS) +#define C10_EXPORT __declspec(dllexport) +#define C10_IMPORT __declspec(dllimport) +#else +#define C10_EXPORT +#define C10_IMPORT +#endif +#else // _WIN32 +#if defined(__GNUC__) +#define C10_EXPORT __attribute__((__visibility__("default"))) +#define C10_HIDDEN __attribute__((__visibility__("hidden"))) +#else // defined(__GNUC__) +#define C10_EXPORT +#define C10_HIDDEN +#endif // defined(__GNUC__) +#define C10_IMPORT C10_EXPORT +#endif // _WIN32 + +#ifdef NO_EXPORT +#undef C10_EXPORT +#define C10_EXPORT +#endif + +// Definition of an adaptive XX_API macro, that depends on whether you are +// building the library itself or not, routes to XX_EXPORT and XX_IMPORT. +// Basically, you will need to do this for each shared library that you are +// building, and the instruction is as follows: assuming that you are building +// a library called libawesome.so. You should: +// (1) for your cmake target (usually done by "add_library(awesome, ...)"), +// define a macro called AWESOME_BUILD_MAIN_LIB using +// target_compile_options. +// (2) define the AWESOME_API macro similar to the one below. +// And in the source file of your awesome library, use AWESOME_API to +// annotate public symbols. + +// Here, for the C10 library, we will define the macro C10_API for both import +// and export. + +// This one is being used by libc10.so +#ifdef C10_BUILD_MAIN_LIB +#define C10_API C10_EXPORT +#else +#define C10_API C10_IMPORT +#endif + +// This one is being used by libtorch.so +#ifdef CAFFE2_BUILD_MAIN_LIB +#define TORCH_API C10_EXPORT +#else +#define TORCH_API C10_IMPORT +#endif + +// You may be wondering: Whose brilliant idea was it to split torch_cuda into +// two pieces with confusing names? +// Once upon a time, there _was_ only TORCH_CUDA_API. All was happy until we +// tried to compile PyTorch for CUDA 11.1, which ran into relocation marker +// issues when linking big binaries. +// (https://github.com/pytorch/pytorch/issues/39968) We had two choices: +// (1) Stop supporting so many GPU architectures +// (2) Do something else +// We chose #2 and decided to split the behemoth that was torch_cuda into two +// smaller libraries, one with most of the core kernel functions (torch_cuda_cu) +// and the other that had..well..everything else (torch_cuda_cpp). The idea was +// this: instead of linking our static libraries (like the hefty +// libcudnn_static.a) with another huge library, torch_cuda, and run into pesky +// relocation marker issues, we could link our static libraries to a smaller +// part of torch_cuda (torch_cuda_cpp) and avoid the issues. + +// libtorch_cuda_cu.so +#ifdef TORCH_CUDA_CU_BUILD_MAIN_LIB +#define TORCH_CUDA_CU_API C10_EXPORT +#elif defined(BUILD_SPLIT_CUDA) +#define TORCH_CUDA_CU_API C10_IMPORT +#endif + +// libtorch_cuda_cpp.so +#ifdef TORCH_CUDA_CPP_BUILD_MAIN_LIB +#define TORCH_CUDA_CPP_API C10_EXPORT +#elif defined(BUILD_SPLIT_CUDA) +#define TORCH_CUDA_CPP_API C10_IMPORT +#endif + +// libtorch_cuda.so (where torch_cuda_cu and torch_cuda_cpp are a part of the +// same api) +#ifdef TORCH_CUDA_BUILD_MAIN_LIB +#define TORCH_CUDA_CPP_API C10_EXPORT +#define TORCH_CUDA_CU_API C10_EXPORT +#elif !defined(BUILD_SPLIT_CUDA) +#define TORCH_CUDA_CPP_API C10_IMPORT +#define TORCH_CUDA_CU_API C10_IMPORT +#endif + +#if defined(TORCH_HIP_BUILD_MAIN_LIB) +#define TORCH_HIP_API C10_EXPORT +#else +#define TORCH_HIP_API C10_IMPORT +#endif + +#if defined(TORCH_XPU_BUILD_MAIN_LIB) +#define TORCH_XPU_API C10_EXPORT +#else +#define TORCH_XPU_API C10_IMPORT +#endif + +// Enums only need to be exported on windows for non-CUDA files +#if defined(_WIN32) && defined(__CUDACC__) +#define C10_API_ENUM C10_API +#else +#define C10_API_ENUM +#endif + +#endif // C10_MACROS_MACROS_H_ diff --git a/shared/package-files/86/862bc978192a880219ea6bced6fe2d382f4c83a333311d3c3fdb73b0e0ddba5e/html_parser.pyi b/shared/package-files/86/862bc978192a880219ea6bced6fe2d382f4c83a333311d3c3fdb73b0e0ddba5e/html_parser.pyi new file mode 100644 index 0000000000000000000000000000000000000000..984cee67f405832b6f800167f43d7337817dadc8 --- /dev/null +++ b/shared/package-files/86/862bc978192a880219ea6bced6fe2d382f4c83a333311d3c3fdb73b0e0ddba5e/html_parser.pyi @@ -0,0 +1 @@ +from HTMLParser import * diff --git a/shared/package-files/86/862c8afe31374eb623c73a0ebaeebbe52580a569acfa128bfa49d778698e94aa/addmm_cpu_dispatch.h b/shared/package-files/86/862c8afe31374eb623c73a0ebaeebbe52580a569acfa128bfa49d778698e94aa/addmm_cpu_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..5e4d348d2233fe80bec99157752079ad3f203168 --- /dev/null +++ b/shared/package-files/86/862c8afe31374eb623c73a0ebaeebbe52580a569acfa128bfa49d778698e94aa/addmm_cpu_dispatch.h @@ -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 addmm(const at::Tensor & self, const at::Tensor & mat1, const at::Tensor & mat2, const at::Scalar & beta=1, const at::Scalar & alpha=1); +TORCH_API at::Tensor & addmm_out(at::Tensor & out, const at::Tensor & self, const at::Tensor & mat1, const at::Tensor & mat2, const at::Scalar & beta=1, const at::Scalar & alpha=1); +TORCH_API at::Tensor & addmm_outf(const at::Tensor & self, const at::Tensor & mat1, const at::Tensor & mat2, const at::Scalar & beta, const at::Scalar & alpha, at::Tensor & out); +TORCH_API at::Tensor & addmm_(at::Tensor & self, const at::Tensor & mat1, const at::Tensor & mat2, const at::Scalar & beta=1, const at::Scalar & alpha=1); + +} // namespace cpu +} // namespace at diff --git a/shared/package-files/86/862d8b1cf1411aaae0b397e2421109fa5e33c32efe7dcacdb88ae2eeca55fa5b/validation.py b/shared/package-files/86/862d8b1cf1411aaae0b397e2421109fa5e33c32efe7dcacdb88ae2eeca55fa5b/validation.py new file mode 100644 index 0000000000000000000000000000000000000000..40469b18eba0fab3293de9a4cd3a08b91a11e40c --- /dev/null +++ b/shared/package-files/86/862d8b1cf1411aaae0b397e2421109fa5e33c32efe7dcacdb88ae2eeca55fa5b/validation.py @@ -0,0 +1,540 @@ +"""Validation helpers for array-like and scalar inputs""" + +from __future__ import annotations + +from collections.abc import Mapping +from typing import Any +import warnings + +import numpy as np +import pandas as pd + + +def _right_squeeze(arr, stop_dim=0): + """ + Remove trailing singleton dimensions + + Parameters + ---------- + arr : ndarray + Input array + stop_dim : int + Dimension where checking should stop so that shape[i] is not checked + for i < stop_dim + + Returns + ------- + squeezed : ndarray + Array with all trailing singleton dimensions (0 or 1) removed. + Singleton dimensions for dimension < stop_dim are retained. + + """ + last = arr.ndim + for s in reversed(arr.shape): + if s > 1: + break + last -= 1 + last = max(last, stop_dim) + + return arr.reshape(arr.shape[:last]) + + +def array_like( + obj, + name, + *, + dtype=np.double, + ndim=None, + maxdim=None, + mindim: int = 1, + shape=None, + order=None, + contiguous=False, + optional=False, + writeable=True, +): + """ + Convert array-like to a ndarray and check conditions + + Parameters + ---------- + obj : array_like + An array, any object exposing the array interface, an object whose + __array__ method returns an array, or any (nested) sequence. + name : str + Name of the variable to use in exceptions + dtype : numpy.dtype or str, optional + Required dtype. Default is double. If None, does not change the dtype + of obj (if present) or uses NumPy to automatically detect the dtype + ndim : int, optional + Required number of dimensions of obj. If None, no check is performed. + If the number of dimensions of obj is less than ndim, additional axes + are inserted on the right. See examples. + maxdim : int, optional + Maximum allowed dimension. Use ``maxdim`` instead of ``ndim`` when + inputs are allowed to have ndim 1, 2, ..., or maxdim. + mindim : int, optional + Minimum allowed dimension. Arrays with ndim < mindim will be reshaped + to have ndim = mindim by adding singleton dimensions on the right. + shape : tuple of int, optional + Required shape obj. If None, no check is performed. Partially + restricted shapes can be checked using None. See examples. + order : {'C', 'F'}, optional + Order of the array + contiguous : bool, optional + Ensure that the array's data is contiguous with order ``order`` + optional : bool, optional + Flag indicating whether None is allowed + writeable : bool, optional + Whether to ensure the returned array is writeable + + Returns + ------- + ndarray + The converted input. + + Examples + -------- + Convert a list or pandas series to an array + >>> import pandas as pd + >>> x = [0, 1, 2, 3] + >>> a = array_like(x, 'x', ndim=1) + >>> a.shape + (4,) + + >>> a = array_like(pd.Series(x), 'x', ndim=1) + >>> a.shape + (4,) + + Squeezes singleton dimensions when required + >>> x = np.array(x).reshape((4, 1)) + >>> a = array_like(x, 'x', ndim=1) + >>> a.shape + (4,) + + Right-appends when required size is larger than actual + >>> x = [0, 1, 2, 3] + >>> a = array_like(x, 'x', ndim=2) + >>> a.shape + (4, 1) + + Check only the first and last dimension of the input + >>> x = np.arange(4*10*4).reshape((4, 10, 4)) + >>> y = array_like(x, 'x', ndim=3, shape=(4, None, 4)) + + Check only the first two dimensions + >>> z = array_like(x, 'x', ndim=3, shape=(4, 10, None)) + + Raises ValueError if constraints are not satisfied + >>> z = array_like(x, 'x', ndim=2) + Traceback (most recent call last): + ... + ValueError: x is required to have ndim 2 but has ndim 3 + + >>> z = array_like(x, 'x', ndim=3, shape=(10, 4, 4)) + Traceback (most recent call last): + ... + ValueError: x is required to have shape (10, 4, 4) but has shape (4, 10, 4) + + >>> z = array_like(x, 'x', ndim=3, shape=(None, 4, 4)) + Traceback (most recent call last): + ... + ValueError: x is required to have shape (*, 4, 4) but has shape (4, 10, 4) + + """ + if obj is None: + if optional: + return None + raise TypeError(f"{name} must be array_like, not None") + reqs = ["W"] if writeable else [] + if order == "C" or contiguous: + reqs += ["C"] + elif order == "F": + reqs += ["F"] + arr = np.require(obj, dtype=dtype, requirements=reqs) + if maxdim is not None: + if arr.ndim > maxdim: + msg = f"{name} must have ndim <= {maxdim}" + raise ValueError(msg) + if mindim is not None and arr.ndim < mindim: + arr = np.reshape(arr, arr.shape + (1,) * (mindim - arr.ndim)) + if ndim is not None: + if arr.ndim > ndim: + arr = _right_squeeze(arr, stop_dim=ndim) + elif arr.ndim < ndim: + arr = np.reshape(arr, arr.shape + (1,) * (ndim - arr.ndim)) + if arr.ndim != ndim: + msg = "{0} is required to have ndim {1} but has ndim {2}" + raise ValueError(msg.format(name, ndim, arr.ndim)) + if shape is not None: + if len(shape) != arr.ndim: + msg = ( + f"Provided shape {shape} does not have the correct dimension for " + f"{name}, which is dimension {arr.ndim}" + ) + raise ValueError(msg) + for actual, req in zip(arr.shape, shape, strict=True): + if req is not None and actual != req: + req_shape = str(shape).replace("None, ", "*, ") + msg = "{0} is required to have shape {1} but has shape {2}" + raise ValueError(msg.format(name, req_shape, arr.shape)) + return arr + + +class PandasWrapper: + """ + Wrap array_like using the index from the original input, if pandas + + Parameters + ---------- + pandas_obj : Series or DataFrame + Object to extract the index from for wrapping + + Notes + ----- + Raises if ``orig`` is a pandas type but obj and ``orig`` have + different numbers of elements in axis 0. Also raises if the ndim of obj + is larger than 2. + + """ + + def __init__(self, pandas_obj): + self._pandas_obj = pandas_obj + self._is_pandas = isinstance(pandas_obj, (pd.Series, pd.DataFrame)) + + def wrap(self, obj, columns=None, append=None, trim_start=0, trim_end=0): + """ + Wrap array_like using the index from the original input + + Parameters + ---------- + obj : array_like + The value to wrap like to a pandas Series or DataFrame. + columns : str or list of str, optional + Column names or series name, if obj is 1d. + append : str, optional + String to append to the columns to create a new column name. + trim_start : int, optional + The number of observations to drop from the start of the index, so + that the index applied is index[trim_start:]. + trim_end : int, optional + The number of observations to drop from the end of the index , so + that the index applied is index[:nobs - trim_end]. + + Returns + ------- + Series, DataFrame or ndarray + A pandas Series or DataFrame, depending on the shape of obj, if + the object used to create the wrapper was pandas. Otherwise, + returns `obj` converted to an ndarray, unchanged. + + """ + obj = np.asarray(obj) + if not self._is_pandas: + return obj + + if obj.shape[0] + trim_start + trim_end != self._pandas_obj.shape[0]: + raise ValueError( + "obj must have the same number of elements in axis 0 as orig" + ) + index = self._pandas_obj.index + index = index[trim_start : index.shape[0] - trim_end] + if obj.ndim == 1: + if columns is None: + name = getattr(self._pandas_obj, "name", None) + elif isinstance(columns, str): + name = columns + else: + name = columns[0] + if append is not None: + name = append if name is None else f"{name}_{append}" + + return pd.Series(obj, name=name, index=index) + elif obj.ndim == 2: + if columns is None: + columns = getattr(self._pandas_obj, "columns", None) + if append is not None: + columns = [append if c is None else f"{c}_{append}" for c in columns] + return pd.DataFrame(obj, columns=columns, index=index) + else: + raise ValueError("Can only wrap 1 or 2-d array_like") + + +def bool_like(value, name, optional=False, strict=False): + """ + Convert to bool or raise if not bool_like + + Parameters + ---------- + value : object + Value to verify + name : str + Variable name for exceptions + optional : bool, optional + Flag indicating whether None is allowed + strict : bool, optional + If True, then only allow bool. If False, allow types that support + casting to bool. + + Returns + ------- + converted : bool + value converted to a bool + + """ + if optional and value is None: + return value + extra_text = " or None" if optional else "" + if strict: + if isinstance(value, bool): + return value + else: + raise TypeError(f"{name} must be a bool{extra_text}") + + if hasattr(value, "squeeze") and callable(value.squeeze): + value = value.squeeze() + try: + return bool(value) + except Exception as exc: + raise TypeError( + f"{name} must be a bool (or bool-compatible){extra_text}" + ) from exc + + +def int_like( + value: Any, name: str, optional: bool = False, strict: bool = False +) -> int | None: + """ + Convert to int or raise if not int_like + + Parameters + ---------- + value : object + Value to verify + name : str + Variable name for exceptions + optional : bool, optional + Flag indicating whether None is allowed + strict : bool, optional + If True, then only allow int or np.integer that are not bool. If False, + allow types that support integer division by 1 and conversion to int. + + Returns + ------- + converted : int + value converted to a int + + """ + if optional and value is None: + return None + is_bool_timedelta = isinstance(value, (bool, np.timedelta64)) + + if hasattr(value, "squeeze") and callable(value.squeeze): + value = value.squeeze() + + if isinstance(value, (int, np.integer)) and not is_bool_timedelta: + return int(value) + elif not strict and not is_bool_timedelta: + try: + if value == (value // 1): + return int(value) + except Exception: + pass + extra_text = " or None" if optional else "" + raise TypeError( + f"{name} must be integer_like (int or np.integer, but not bool" + f" or timedelta64){extra_text}" + ) + + +def required_int_like(value: Any, name: str, strict: bool = False) -> int: + """ + Convert to int or raise if not int_like, requiring a value (not optional) + + Parameters + ---------- + value : object + Value to verify + name : str + Variable name for exceptions + strict : bool, optional + If True, then only allow int or np.integer that are not bool. If False, + allow types that support integer division by 1 and conversion to int. + + Returns + ------- + converted : int + value converted to a int + + """ + _int = int_like(value, name, optional=False, strict=strict) + assert _int is not None + return _int + + +def float_like(value, name, optional=False, strict=False): + """ + Convert to float or raise if not float_like + + Parameters + ---------- + value : object + Value to verify + name : str + Variable name for exceptions + optional : bool, optional + Flag indicating whether None is allowed + strict : bool, optional + If True, then only allow int, np.integer, float or np.inexact that are + not bool or complex. If False, allow complex types with 0 imag part or + any other type that is float-like in the sense that it supports + multiplication by 1.0 and conversion to float. + + Returns + ------- + converted : float + value converted to a float + + """ + if optional and value is None: + return None + is_bool = isinstance(value, bool) + is_complex = isinstance(value, (complex, np.complexfloating)) + if hasattr(value, "squeeze") and callable(value.squeeze): + value = value.squeeze() + + if isinstance(value, (int, np.integer, float, np.inexact)) and not ( + is_bool or is_complex + ): + return float(value) + elif not strict and is_complex: + imag = np.imag(value) + if imag == 0: + return float(np.real(value)) + elif not strict and not is_bool: + try: + return float(value / 1.0) + except Exception: + pass + extra_text = " or None" if optional else "" + raise TypeError( + f"{name} must be float_like (float or np.inexact){extra_text}" + ) + + +def string_like( + value, + name, + optional=False, + options=None, + lower=True, + deprecated=None, + removed_after=None, +): + """ + Check if object is string-like and raise if not + + Parameters + ---------- + value : object + Value to verify. + name : str + Variable name for exceptions. + optional : bool, optional + Flag indicating whether None is allowed. + options : tuple[str], optional + Allowed values for input parameter `value`. + lower : bool, optional + Convert all case-based characters in `value` into lowercase. + deprecated : dict[str, str], optional + Mapping from a deprecated, undocumented spelling of an option to + the documented value in `options` it stands for. A `value` + matching one of these deprecated spellings is still accepted and + normalized to its replacement, but raises a ``FutureWarning``. + Ignored if `options` is None. + removed_after : str, optional + statsmodels version after which the spellings in `deprecated` will + stop being accepted, e.g. ``"0.16"``. Included in the + ``FutureWarning`` message when `deprecated` triggers. Ignored if + `deprecated` is None; if `deprecated` is set but `removed_after` is + not, the message says only that the alias will be removed "in a + future version". + + Returns + ------- + str + The validated input, normalized to its replacement in `options` + if it matched a key of `deprecated`. + + Raises + ------ + TypeError + If the value is not a string or None when optional is True. + ValueError + If the input is not in ``options`` (or a key of ``deprecated``, + if provided) when ``options`` is set. + + """ + if optional and value is None: + return None + if not isinstance(value, str): + extra_text = " or None" if optional else "" + raise TypeError(f"{name} must be a string{extra_text}") + if lower: + value = value.lower() + all_options = options + if options is not None and deprecated is not None: + all_options = tuple(options) + tuple(deprecated) + if all_options is not None and value not in all_options: + extra_text = "If not None, " if optional else "" + options_text = "'" + "', '".join(all_options) + "'" + msg = f"{extra_text}{name} must be one of: {options_text}" + raise ValueError(msg) + if deprecated is not None and value in deprecated: + replacement = deprecated[value] + if removed_after is not None: + removal_text = ( + f"and will be removed after statsmodels {removed_after} " + "is released." + ) + else: + removal_text = "and will be removed in a future version." + warnings.warn( + f"{name}={value!r} is a deprecated alias for {name}={replacement!r} " + f"{removal_text}", + FutureWarning, + stacklevel=2, + ) + value = replacement + return value + + +def dict_like(value, name, optional=False, strict=True): + """ + Check if dict_like (dict, Mapping) or raise if not + + Parameters + ---------- + value : object + Value to verify + name : str + Variable name for exceptions + optional : bool, optional + Flag indicating whether None is allowed + strict : bool, optional + If True, then only allow dict. If False, allow any Mapping-like object. + + Returns + ------- + converted : dict or Mapping + value + + """ + if optional and value is None: + return None + if not isinstance(value, Mapping) or (strict and not (isinstance(value, dict))): + extra_text = "If not None, " if optional else "" + strict_text = "" if strict else " or dict_like (i.e., a Mapping)" + msg = f"{extra_text}{name} must be a dict{strict_text}" + raise TypeError(msg) + return value diff --git a/shared/package-files/86/863047b9ae3041ad5510a63e739061cdd88754fca1625d9cf22518e2f9440fc9/_nested_tensor_strides.h b/shared/package-files/86/863047b9ae3041ad5510a63e739061cdd88754fca1625d9cf22518e2f9440fc9/_nested_tensor_strides.h new file mode 100644 index 0000000000000000000000000000000000000000..1c688354e116862c1cda17db7bbd88cca7df8272 --- /dev/null +++ b/shared/package-files/86/863047b9ae3041ad5510a63e739061cdd88754fca1625d9cf22518e2f9440fc9/_nested_tensor_strides.h @@ -0,0 +1,34 @@ +#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::_nested_tensor_strides.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & _nested_tensor_strides_out(at::Tensor & out, const at::Tensor & self) { + return at::_ops::_nested_tensor_strides_out::call(self, out); +} +// aten::_nested_tensor_strides.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & _nested_tensor_strides_outf(const at::Tensor & self, at::Tensor & out) { + return at::_ops::_nested_tensor_strides_out::call(self, out); +} + +} diff --git a/shared/package-files/86/86374d74bef1651172b7b4d431b4c1c0459ee728ad2e43245a53d6f870952e52/errors.py b/shared/package-files/86/86374d74bef1651172b7b4d431b4c1c0459ee728ad2e43245a53d6f870952e52/errors.py new file mode 100644 index 0000000000000000000000000000000000000000..a5d69aba685ec55c85853c7044724ae991ec5131 --- /dev/null +++ b/shared/package-files/86/86374d74bef1651172b7b4d431b4c1c0459ee728ad2e43245a53d6f870952e52/errors.py @@ -0,0 +1,13 @@ +class OutOfResources(Exception): + + def __init__(self, required, limit, name): + self.message = f"out of resource: {name}, " f"Required: {required}, " f"Hardware limit: {limit}" + self.message += ". Reducing block sizes or `num_stages` may help." + self.required = required + self.limit = limit + self.name = name + super().__init__(self.message) + + def __reduce__(self): + # this is necessary to make CompilationError picklable + return (type(self), (self.required, self.limit, self.name)) diff --git a/shared/package-files/86/863a21eb3bc1f2ef0e55442a2ed75cae6a21333a00a0bcba5c914bc5c7c584ad/windows_fixup.h b/shared/package-files/86/863a21eb3bc1f2ef0e55442a2ed75cae6a21333a00a0bcba5c914bc5c7c584ad/windows_fixup.h new file mode 100644 index 0000000000000000000000000000000000000000..42e74f4a7857fc7732dff3f0021b9301d32f51ce --- /dev/null +++ b/shared/package-files/86/863a21eb3bc1f2ef0e55442a2ed75cae6a21333a00a0bcba5c914bc5c7c584ad/windows_fixup.h @@ -0,0 +1,52 @@ +// 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 header needs to be included multiple times. + +#ifdef _WIN32 + +# ifdef max +# undef max +# endif +# ifdef min +# undef min +# endif + +// The Windows API defines macros from *File resolving to either +// *FileA or *FileW. Need to undo them. +# ifdef CopyFile +# undef CopyFile +# endif +# ifdef CreateFile +# undef CreateFile +# endif +# ifdef DeleteFile +# undef DeleteFile +# endif + +// Other annoying Windows macro definitions... +# ifdef IN +# undef IN +# endif +# ifdef OUT +# undef OUT +# endif + +// Note that we can't undefine OPTIONAL, because it can be used in other +// Windows headers... + +#endif // _WIN32 diff --git a/shared/package-files/86/863a7dec1aca096b7190a8e99e70afc57124ca0518ab4955cd48256465181a78/direct_url.json b/shared/package-files/86/863a7dec1aca096b7190a8e99e70afc57124ca0518ab4955cd48256465181a78/direct_url.json new file mode 100644 index 0000000000000000000000000000000000000000..9516c9eb18ba5e77148e5dea67f6c180eeadec8d --- /dev/null +++ b/shared/package-files/86/863a7dec1aca096b7190a8e99e70afc57124ca0518ab4955cd48256465181a78/direct_url.json @@ -0,0 +1 @@ +{"dir_info": {}, "url": "file:///tmp/build/80754af9/jedi_1644315229345/work"} \ No newline at end of file diff --git a/shared/package-files/86/863b812bcfeb1cad0dcf369021add3d99538d03956b84917282e5495937ba40f/native_dropout_backward.h b/shared/package-files/86/863b812bcfeb1cad0dcf369021add3d99538d03956b84917282e5495937ba40f/native_dropout_backward.h new file mode 100644 index 0000000000000000000000000000000000000000..456a39e6f89006eb2d56deed68bfc2b1e5c032ff --- /dev/null +++ b/shared/package-files/86/863b812bcfeb1cad0dcf369021add3d99538d03956b84917282e5495937ba40f/native_dropout_backward.h @@ -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::native_dropout_backward(Tensor grad_output, Tensor mask, float scale) -> Tensor +inline at::Tensor native_dropout_backward(const at::Tensor & grad_output, const at::Tensor & mask, double scale) { + return at::_ops::native_dropout_backward::call(grad_output, mask, scale); +} + +// aten::native_dropout_backward.out(Tensor grad_output, Tensor mask, float scale, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & native_dropout_backward_out(at::Tensor & out, const at::Tensor & grad_output, const at::Tensor & mask, double scale) { + return at::_ops::native_dropout_backward_out::call(grad_output, mask, scale, out); +} +// aten::native_dropout_backward.out(Tensor grad_output, Tensor mask, float scale, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & native_dropout_backward_outf(const at::Tensor & grad_output, const at::Tensor & mask, double scale, at::Tensor & out) { + return at::_ops::native_dropout_backward_out::call(grad_output, mask, scale, out); +} + +} diff --git a/shared/package-files/86/863ca3f49a618817e93f86cb6cc8ad1b87e4671a45b58dc8ca3fe70ded37c1db/top_level.txt b/shared/package-files/86/863ca3f49a618817e93f86cb6cc8ad1b87e4671a45b58dc8ca3fe70ded37c1db/top_level.txt new file mode 100644 index 0000000000000000000000000000000000000000..29ed0743fc74adbd79c8ac78c94f39353a4afc50 --- /dev/null +++ b/shared/package-files/86/863ca3f49a618817e93f86cb6cc8ad1b87e4671a45b58dc8ca3fe70ded37c1db/top_level.txt @@ -0,0 +1 @@ +mkl_fft diff --git a/shared/package-files/86/864013415e98969c6405a2df63dfc2db85c9eaa6128364f40df417e177e9bc56/gdb.cc b/shared/package-files/86/864013415e98969c6405a2df63dfc2db85c9eaa6128364f40df417e177e9bc56/gdb.cc new file mode 100644 index 0000000000000000000000000000000000000000..2a7d2eda4bf2301eed6ee66dc5a09b44de416f04 --- /dev/null +++ b/shared/package-files/86/864013415e98969c6405a2df63dfc2db85c9eaa6128364f40df417e177e9bc56/gdb.cc @@ -0,0 +1,505 @@ +// 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. + +#include +#include +#include + +#include "arrow/array.h" +#include "arrow/chunked_array.h" +#include "arrow/datum.h" +#include "arrow/extension/uuid.h" +#include "arrow/json/from_string.h" +#include "arrow/python/gdb.h" +#include "arrow/record_batch.h" +#include "arrow/scalar.h" +#include "arrow/table.h" +#include "arrow/type.h" +#include "arrow/util/debug.h" +#include "arrow/util/decimal.h" +#include "arrow/util/key_value_metadata.h" +#include "arrow/util/logging.h" +#include "arrow/util/macros.h" + +namespace arrow { + +using extension::uuid; +using extension::UuidType; +using json::ArrayFromJSONString; +using json::ChunkedArrayFromJSONString; +using json::ScalarFromJSONString; + +namespace gdb { + +// Add a nested `arrow` namespace to exercise type lookup from GDB (ARROW-15652) +namespace arrow { +void DummyFunction() {} +} // namespace arrow + +namespace { + +class CustomStatusDetail : public StatusDetail { + public: + const char* type_id() const override { return "custom-detail-id"; } + std::string ToString() const override { return "This is a detail"; } +}; + +std::shared_ptr SliceArrayFromJSON(const std::shared_ptr& ty, + std::string_view json, int64_t offset = 0, + int64_t length = -1) { + auto array = *ArrayFromJSONString(ty, json); + if (length != -1) { + return array->Slice(offset, length); + } else { + return array->Slice(offset); + } +} + +} // namespace + +void TestSession() { + // We define local variables for all types for which we want to test + // pretty-printing. + // Then, at the end of this function, we trap to the debugger, so that + // test instrumentation can print values from this frame by interacting + // with the debugger. + // The test instrumentation is in pyarrow/tests/test_gdb.py + +#ifdef __clang__ + _Pragma("clang diagnostic push"); + _Pragma("clang diagnostic ignored \"-Wunused-variable\""); +#elif defined(__GNUC__) + _Pragma("GCC diagnostic push"); + _Pragma("GCC diagnostic ignored \"-Wunused-variable\""); +#endif + + arrow::DummyFunction(); + + // Status & Result + auto ok_status = Status::OK(); + auto error_status = Status::IOError("This is an error"); + auto error_detail_status = + error_status.WithDetail(std::make_shared()); + auto ok_result = Result(42); + auto error_result = Result(error_status); + auto error_detail_result = Result(error_detail_status); + + // String views + std::string_view string_view_abc{"abc"}; + std::string special_chars = std::string("foo\"bar") + '\x00' + "\r\n\t\x1f"; + std::string_view string_view_special_chars(special_chars); + + // Buffers + Buffer buffer_null{nullptr, 0}; + Buffer buffer_abc{string_view_abc}; + Buffer buffer_special_chars{string_view_special_chars}; + char mutable_array[3] = {'a', 'b', 'c'}; + MutableBuffer buffer_mutable{reinterpret_cast(mutable_array), 3}; + auto heap_buffer = std::make_shared(string_view_abc); + auto heap_buffer_mutable = *AllocateBuffer(buffer_abc.size()); + memcpy(heap_buffer_mutable->mutable_data(), buffer_abc.data(), buffer_abc.size()); + + // KeyValueMetadata + auto empty_metadata = key_value_metadata({}, {}); + auto metadata = key_value_metadata( + {"key_text", "key_binary"}, {"some value", std::string("z") + '\x00' + "\x1f\xff"}); + + // Decimals + Decimal128 decimal128_zero{}; + Decimal128 decimal128_pos{"98765432109876543210987654321098765432"}; + Decimal128 decimal128_neg{"-98765432109876543210987654321098765432"}; + BasicDecimal128 basic_decimal128_zero{}; + BasicDecimal128 basic_decimal128_pos{decimal128_pos.native_endian_array()}; + BasicDecimal128 basic_decimal128_neg{decimal128_neg.native_endian_array()}; + Decimal256 decimal256_zero{}; + Decimal256 decimal256_pos{ + "9876543210987654321098765432109876543210987654321098765432109876543210987654"}; + Decimal256 decimal256_neg{ + "-9876543210987654321098765432109876543210987654321098765432109876543210987654"}; + BasicDecimal256 basic_decimal256_zero{}; + BasicDecimal256 basic_decimal256_pos{decimal256_pos.native_endian_array()}; + BasicDecimal256 basic_decimal256_neg{decimal256_neg.native_endian_array()}; + + // Data types + NullType null_type; + auto heap_null_type = null(); + BooleanType bool_type; + auto heap_bool_type = boolean(); + + Date32Type date32_type; + Date64Type date64_type; + Time32Type time_type_s(TimeUnit::SECOND); + Time32Type time_type_ms(TimeUnit::MILLI); + Time64Type time_type_us(TimeUnit::MICRO); + Time64Type time_type_ns(TimeUnit::NANO); + auto heap_time_type_ns = time64(TimeUnit::NANO); + + TimestampType timestamp_type_s(TimeUnit::SECOND); + TimestampType timestamp_type_ms_timezone(TimeUnit::MILLI, "Europe/Paris"); + TimestampType timestamp_type_us(TimeUnit::MICRO); + TimestampType timestamp_type_ns_timezone(TimeUnit::NANO, "Europe/Paris"); + auto heap_timestamp_type_ns_timezone = timestamp(TimeUnit::NANO, "Europe/Paris"); + + DayTimeIntervalType day_time_interval_type; + MonthIntervalType month_interval_type; + MonthDayNanoIntervalType month_day_nano_interval_type; + + DurationType duration_type_s(TimeUnit::SECOND); + DurationType duration_type_ns(TimeUnit::NANO); + + BinaryType binary_type; + StringType string_type; + LargeBinaryType large_binary_type; + LargeStringType large_string_type; + FixedSizeBinaryType fixed_size_binary_type(10); + auto heap_fixed_size_binary_type = fixed_size_binary(10); + + Decimal128Type decimal128_type(16, 5); + Decimal256Type decimal256_type(42, 12); + auto heap_decimal128_type = decimal128(16, 5); + + ListType list_type(uint8()); + LargeListType large_list_type(large_utf8()); + auto heap_list_type = list(uint8()); + auto heap_large_list_type = large_list(large_utf8()); + + FixedSizeListType fixed_size_list_type(float64(), 3); + auto heap_fixed_size_list_type = fixed_size_list(float64(), 3); + + DictionaryType dict_type_unordered(int16(), utf8()); + DictionaryType dict_type_ordered(int16(), utf8(), /*ordered=*/true); + auto heap_dict_type = dictionary(int16(), utf8()); + + MapType map_type_unsorted(utf8(), binary()); + MapType map_type_sorted(utf8(), binary(), /*keys_sorted=*/true); + auto heap_map_type = map(utf8(), binary()); + + StructType struct_type_empty({}); + StructType struct_type( + {field("ints", int8()), field("strs", utf8(), /*nullable=*/false)}); + auto heap_struct_type = + struct_({field("ints", int8()), field("strs", utf8(), /*nullable=*/false)}); + + std::vector union_type_codes({7, 42}); + FieldVector union_fields( + {field("ints", int8()), field("strs", utf8(), /*nullable=*/false)}); + SparseUnionType sparse_union_type(union_fields, union_type_codes); + DenseUnionType dense_union_type(union_fields, union_type_codes); + + UuidType uuid_type{}; + std::shared_ptr heap_uuid_type = std::make_shared(); + + // Schema + auto schema_empty = schema({}); + auto schema_non_empty = schema({field("ints", int8()), field("strs", utf8())}); + auto schema_with_metadata = schema_non_empty->WithMetadata( + key_value_metadata({"key1", "key2"}, {"value1", "value2"})); + + // Fields + Field int_field("ints", int64()); + Field float_field("floats", float32(), /*nullable=*/false); + auto heap_int_field = field("ints", int64()); + + // Scalars + NullScalar null_scalar; + auto heap_null_scalar = MakeNullScalar(null()); + + BooleanScalar bool_scalar_null{}; + BooleanScalar bool_scalar{true}; + auto heap_bool_scalar = *MakeScalar(boolean(), true); + + Int8Scalar int8_scalar_null{}; + UInt8Scalar uint8_scalar_null{}; + Int64Scalar int64_scalar_null{}; + UInt64Scalar uint64_scalar_null{}; + Int8Scalar int8_scalar{-42}; + UInt8Scalar uint8_scalar{234}; + Int64Scalar int64_scalar{-9223372036854775807LL - 1}; + UInt64Scalar uint64_scalar{18446744073709551615ULL}; + HalfFloatScalar half_float_scalar{48640}; // -1.5 + FloatScalar float_scalar{1.25f}; + DoubleScalar double_scalar{2.5}; + + Time32Scalar time_scalar_s{100, TimeUnit::SECOND}; + Time32Scalar time_scalar_ms{1000, TimeUnit::MILLI}; + Time64Scalar time_scalar_us{10000, TimeUnit::MICRO}; + Time64Scalar time_scalar_ns{100000, TimeUnit::NANO}; + Time64Scalar time_scalar_null{time64(TimeUnit::NANO)}; + + DurationScalar duration_scalar_s{-100, TimeUnit::SECOND}; + DurationScalar duration_scalar_ms{-1000, TimeUnit::MILLI}; + DurationScalar duration_scalar_us{-10000, TimeUnit::MICRO}; + DurationScalar duration_scalar_ns{-100000, TimeUnit::NANO}; + DurationScalar duration_scalar_null{duration(TimeUnit::NANO)}; + + TimestampScalar timestamp_scalar_s{12345, timestamp(TimeUnit::SECOND)}; + TimestampScalar timestamp_scalar_ms{-123456, timestamp(TimeUnit::MILLI)}; + TimestampScalar timestamp_scalar_us{1234567, timestamp(TimeUnit::MICRO)}; + TimestampScalar timestamp_scalar_ns{-12345678, timestamp(TimeUnit::NANO)}; + TimestampScalar timestamp_scalar_null{timestamp(TimeUnit::NANO)}; + + TimestampScalar timestamp_scalar_s_tz{12345, + timestamp(TimeUnit::SECOND, "Europe/Paris")}; + TimestampScalar timestamp_scalar_ms_tz{-123456, + timestamp(TimeUnit::MILLI, "Europe/Paris")}; + TimestampScalar timestamp_scalar_us_tz{1234567, + timestamp(TimeUnit::MICRO, "Europe/Paris")}; + TimestampScalar timestamp_scalar_ns_tz{-12345678, + timestamp(TimeUnit::NANO, "Europe/Paris")}; + TimestampScalar timestamp_scalar_null_tz{timestamp(TimeUnit::NANO, "Europe/Paris")}; + + MonthIntervalScalar month_interval_scalar{23}; + MonthIntervalScalar month_interval_scalar_null{}; + DayTimeIntervalScalar day_time_interval_scalar{{23, -456}}; + DayTimeIntervalScalar day_time_interval_scalar_null{}; + MonthDayNanoIntervalScalar month_day_nano_interval_scalar{{1, 23, -456}}; + MonthDayNanoIntervalScalar month_day_nano_interval_scalar_null{}; + + Date32Scalar date32_scalar{23}; + Date32Scalar date32_scalar_null{}; + Date64Scalar date64_scalar{45 * 86400000LL}; + Date64Scalar date64_scalar_null{}; + + Decimal128Scalar decimal128_scalar_pos_scale_pos{Decimal128("1234567"), + decimal128(10, 4)}; + Decimal128Scalar decimal128_scalar_pos_scale_neg{Decimal128("-1234567"), + decimal128(10, 4)}; + Decimal128Scalar decimal128_scalar_neg_scale_pos{Decimal128("1234567"), + decimal128(10, -4)}; + Decimal128Scalar decimal128_scalar_neg_scale_neg{Decimal128("-1234567"), + decimal128(10, -4)}; + Decimal128Scalar decimal128_scalar_null{decimal128(10, 4)}; + auto heap_decimal128_scalar = *MakeScalar(decimal128(10, 4), Decimal128("1234567")); + + Decimal256Scalar decimal256_scalar_pos_scale_pos{ + Decimal256("1234567890123456789012345678901234567890123456"), decimal256(50, 4)}; + Decimal256Scalar decimal256_scalar_pos_scale_neg{ + Decimal256("-1234567890123456789012345678901234567890123456"), decimal256(50, 4)}; + Decimal256Scalar decimal256_scalar_neg_scale_pos{ + Decimal256("1234567890123456789012345678901234567890123456"), decimal256(50, -4)}; + Decimal256Scalar decimal256_scalar_neg_scale_neg{ + Decimal256("-1234567890123456789012345678901234567890123456"), decimal256(50, -4)}; + Decimal256Scalar decimal256_scalar_null{decimal256(50, 4)}; + auto heap_decimal256_scalar = *MakeScalar( + decimal256(50, 4), Decimal256("1234567890123456789012345678901234567890123456")); + + BinaryScalar binary_scalar_null{}; + BinaryScalar binary_scalar_unallocated{std::shared_ptr{nullptr}}; + BinaryScalar binary_scalar_empty{Buffer::FromString("")}; + BinaryScalar binary_scalar_abc{Buffer::FromString("abc")}; + BinaryScalar binary_scalar_bytes{ + Buffer::FromString(std::string() + '\x00' + "\x1f\xff")}; + + StringScalar string_scalar_null{}; + StringScalar string_scalar_unallocated{std::shared_ptr{nullptr}}; + StringScalar string_scalar_empty{Buffer::FromString("")}; + StringScalar string_scalar_hehe{Buffer::FromString("héhé")}; + StringScalar string_scalar_invalid_chars{ + Buffer::FromString(std::string("abc") + '\x00' + "def\xffghi")}; + + LargeBinaryScalar large_binary_scalar_abc{Buffer::FromString("abc")}; + LargeStringScalar large_string_scalar_hehe{Buffer::FromString("héhé")}; + + FixedSizeBinaryScalar fixed_size_binary_scalar{Buffer::FromString("abc"), + fixed_size_binary(3)}; + FixedSizeBinaryScalar fixed_size_binary_scalar_null{ + Buffer::FromString(" "), fixed_size_binary(3), /*is_valid=*/false}; + + std::shared_ptr dict_array; + dict_array = *ArrayFromJSONString(utf8(), R"(["foo", "bar", "quux"])"); + DictionaryScalar dict_scalar{{std::make_shared(42), dict_array}, + dictionary(int8(), utf8())}; + DictionaryScalar dict_scalar_null{dictionary(int8(), utf8())}; + + std::shared_ptr list_value_array = *ArrayFromJSONString(int32(), R"([4, 5, 6])"); + std::shared_ptr list_zero_length = *ArrayFromJSONString(int32(), R"([])"); + ListScalar list_scalar{list_value_array}; + ListScalar list_scalar_null{list_zero_length, list(int32()), /*is_valid=*/false}; + LargeListScalar large_list_scalar{list_value_array}; + LargeListScalar large_list_scalar_null{list_zero_length, large_list(int32()), + /*is_valid=*/false}; + FixedSizeListScalar fixed_size_list_scalar{list_value_array}; + FixedSizeListScalar fixed_size_list_scalar_null{ + list_value_array, fixed_size_list(int32(), 3), /*is_valid=*/false}; + + auto struct_scalar_type = struct_({field("ints", int32()), field("strs", utf8())}); + StructScalar struct_scalar{ + ScalarVector{MakeScalar(int32_t(42)), MakeScalar("some text")}, struct_scalar_type}; + StructScalar struct_scalar_null{struct_scalar.value, struct_scalar_type, + /*is_valid=*/false}; + + auto sparse_union_scalar_type = + sparse_union(FieldVector{field("ints", int32()), field("strs", utf8())}, {7, 42}); + auto dense_union_scalar_type = + dense_union(FieldVector{field("ints", int32()), field("strs", utf8())}, {7, 42}); + std::vector> union_values = {MakeScalar(int32_t(43)), + MakeNullScalar(utf8())}; + SparseUnionScalar sparse_union_scalar{union_values, 7, sparse_union_scalar_type}; + DenseUnionScalar dense_union_scalar{union_values[0], 7, dense_union_scalar_type}; + + union_values[0] = MakeNullScalar(int32()); + SparseUnionScalar sparse_union_scalar_null{union_values, 7, sparse_union_scalar_type}; + DenseUnionScalar dense_union_scalar_null{union_values[0], 7, dense_union_scalar_type}; + + auto extension_scalar_type = std::make_shared(); + ExtensionScalar extension_scalar{ + std::make_shared(Buffer::FromString("0123456789abcdef"), + extension_scalar_type->storage_type()), + extension_scalar_type}; + ExtensionScalar extension_scalar_null{extension_scalar.value, extension_scalar_type, + /*is_valid=*/false}; + + auto heap_map_scalar = + *ScalarFromJSONString(map(utf8(), int32()), R"([["a", 5], ["b", 6]])"); + auto heap_map_scalar_null = MakeNullScalar(heap_map_scalar->type); + + // Array and ArrayData + auto heap_null_array = SliceArrayFromJSON(null(), "[null, null]"); + + auto heap_int32_array = SliceArrayFromJSON(int32(), "[-5, 6, null, 42]"); + ArrayData int32_array_data{*heap_int32_array->data()}; + Int32Array int32_array{heap_int32_array->data()->Copy()}; + + auto heap_int32_array_no_nulls = SliceArrayFromJSON(int32(), "[-5, 6, 3, 42]"); + + const char* json_int32_array = "[-1, 2, -3, 4, null, -5, 6, -7, 8, null, -9, -10]"; + auto heap_int32_array_sliced_1_9 = SliceArrayFromJSON(int32(), json_int32_array, 1, 9); + auto heap_int32_array_sliced_2_6 = SliceArrayFromJSON(int32(), json_int32_array, 2, 6); + auto heap_int32_array_sliced_8_4 = SliceArrayFromJSON(int32(), json_int32_array, 8, 4); + auto heap_int32_array_sliced_empty = + SliceArrayFromJSON(int32(), json_int32_array, 6, 0); + + const char* json_bool_array = + "[false, false, true, true, null, null, false, false, true, true, " + "null, null, false, false, true, true, null, null]"; + auto heap_bool_array = SliceArrayFromJSON(boolean(), json_bool_array); + auto heap_bool_array_sliced_1_9 = SliceArrayFromJSON(boolean(), json_bool_array, 1, 9); + auto heap_bool_array_sliced_2_6 = SliceArrayFromJSON(boolean(), json_bool_array, 2, 6); + auto heap_bool_array_sliced_empty = + SliceArrayFromJSON(boolean(), json_bool_array, 6, 0); + + auto heap_list_array = SliceArrayFromJSON(list(int64()), "[[1, 2], null, []]"); + ListArray list_array{heap_list_array->data()}; + + const char* json_double_array = "[-1.5, null]"; + auto heap_double_array = SliceArrayFromJSON(float64(), json_double_array); + + const char* json_float16_array = "[0, 48640]"; + auto heap_float16_array = + *SliceArrayFromJSON(uint16(), json_float16_array)->View(float16()); + + auto heap_date32_array = + SliceArrayFromJSON(date32(), "[0, null, 18336, -9004, -719162, -719163]"); + auto heap_date64_array = SliceArrayFromJSON( + date64(), "[1584230400000, -777945600000, -62135596800000, -62135683200000, 123]"); + + const char* json_time_array = "[null, -123, 456]"; + auto heap_time32_array_s = + SliceArrayFromJSON(time32(TimeUnit::SECOND), json_time_array); + auto heap_time32_array_ms = + SliceArrayFromJSON(time32(TimeUnit::MILLI), json_time_array); + auto heap_time64_array_us = + SliceArrayFromJSON(time64(TimeUnit::MICRO), json_time_array); + auto heap_time64_array_ns = SliceArrayFromJSON(time64(TimeUnit::NANO), json_time_array); + + auto heap_month_interval_array = + SliceArrayFromJSON(month_interval(), "[123, -456, null]"); + auto heap_day_time_interval_array = + SliceArrayFromJSON(day_time_interval(), "[[1, -600], null]"); + auto heap_month_day_nano_interval_array = + SliceArrayFromJSON(month_day_nano_interval(), "[[1, -600, 5000], null]"); + + const char* json_duration_array = "[null, -1234567890123456789]"; + auto heap_duration_array_s = + SliceArrayFromJSON(duration(TimeUnit::SECOND), json_duration_array); + auto heap_duration_array_ns = + SliceArrayFromJSON(duration(TimeUnit::NANO), json_duration_array); + + auto heap_timestamp_array_s = SliceArrayFromJSON( + timestamp(TimeUnit::SECOND), + R"([null, "1970-01-01 00:00:00", "1900-02-28 12:34:56", "3989-07-14 00:00:00"])"); + auto heap_timestamp_array_ms = SliceArrayFromJSON( + timestamp(TimeUnit::MILLI), + R"([null, "1900-02-28 12:34:56.123", "3989-07-14 00:00:00.789"])"); + auto heap_timestamp_array_us = SliceArrayFromJSON( + timestamp(TimeUnit::MICRO), + R"([null, "1900-02-28 12:34:56.654321", "3989-07-14 00:00:00.456789"])"); + auto heap_timestamp_array_ns = SliceArrayFromJSON( + timestamp(TimeUnit::NANO), R"([null, "1900-02-28 12:34:56.987654321"])"); + + auto heap_decimal128_array = SliceArrayFromJSON( + decimal128(30, 6), + R"([null, "-1234567890123456789.012345", "1234567890123456789.012345"])"); + auto heap_decimal256_array = SliceArrayFromJSON( + decimal256(50, 6), R"([null, "-123456789012345678901234567890123456789.012345"])"); + auto heap_decimal128_array_sliced = heap_decimal128_array->Slice(1, 1); + + auto heap_fixed_size_binary_array = + SliceArrayFromJSON(fixed_size_binary(3), "[null, \"abc\", \"\\u0000\\u001f\xff\"]"); + auto heap_fixed_size_binary_array_zero_width = + SliceArrayFromJSON(fixed_size_binary(0), R"([null, ""])"); + auto heap_fixed_size_binary_array_sliced = heap_fixed_size_binary_array->Slice(1, 1); + + const char* json_binary_array = "[null, \"abcd\", \"\\u0000\\u001f\xff\"]"; + auto heap_binary_array = SliceArrayFromJSON(binary(), json_binary_array); + auto heap_large_binary_array = SliceArrayFromJSON(large_binary(), json_binary_array); + const char* json_string_array = "[null, \"héhé\", \"invalid \xff char\"]"; + auto heap_string_array = SliceArrayFromJSON(utf8(), json_string_array); + auto heap_large_string_array = SliceArrayFromJSON(large_utf8(), json_string_array); + auto heap_binary_array_sliced = heap_binary_array->Slice(1, 1); + + // ChunkedArray + ArrayVector array_chunks(2); + array_chunks[0] = *ArrayFromJSONString(int32(), "[1, 2]"); + array_chunks[1] = *ArrayFromJSONString(int32(), "[3, null, 4]"); + ChunkedArray chunked_array{array_chunks}; + + // RecordBatch + auto batch_schema = schema({field("ints", int32()), field("strs", utf8())}); + ArrayVector batch_columns{2}; + batch_columns[0] = *ArrayFromJSONString(int32(), "[1, 2, 3]"); + batch_columns[1] = *ArrayFromJSONString(utf8(), R"(["abc", null, "def"])"); + auto batch = RecordBatch::Make(batch_schema, /*num_rows=*/3, batch_columns); + auto batch_with_metadata = batch->ReplaceSchemaMetadata( + key_value_metadata({"key1", "key2", "key3"}, {"value1", "value2", "value3"})); + + // Table + auto col1 = ChunkedArrayFromJSONString(int32(), {"[1, 2, 3]", "[4, 5]"}); + auto col2 = ChunkedArrayFromJSONString( + utf8(), {R"(["abc", null])", R"(["def"])", R"(["ghi", "jkl"])"}); + auto table = Table::Make(batch_schema, {*col1, *col2}); + + // Datum + Datum empty_datum{}; + Datum scalar_datum{MakeNullScalar(boolean())}; + Datum array_datum{heap_int32_array}; + Datum chunked_array_datum{chunked_array}; + Datum batch_datum{batch}; + Datum table_datum{table}; + +#ifdef __clang__ + _Pragma("clang diagnostic pop"); +#elif defined(__GNUC__) + _Pragma("GCC diagnostic pop"); +#endif + + // Hook into debugger + ::arrow::internal::DebugTrap(); +} + +} // namespace gdb +} // namespace arrow diff --git a/shared/package-files/86/8641a9ad509373f2c85461877ea2cd73b922a1188b324aabc39303fd639731d2/special_shifted_chebyshev_polynomial_w_cuda_dispatch.h b/shared/package-files/86/8641a9ad509373f2c85461877ea2cd73b922a1188b324aabc39303fd639731d2/special_shifted_chebyshev_polynomial_w_cuda_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..00e4d99047fce7b296a4d9db81564ad3d6746e3d --- /dev/null +++ b/shared/package-files/86/8641a9ad509373f2c85461877ea2cd73b922a1188b324aabc39303fd639731d2/special_shifted_chebyshev_polynomial_w_cuda_dispatch.h @@ -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_shifted_chebyshev_polynomial_w(const at::Tensor & x, const at::Tensor & n); +TORCH_API at::Tensor & special_shifted_chebyshev_polynomial_w_out(at::Tensor & out, const at::Tensor & x, const at::Tensor & n); +TORCH_API at::Tensor & special_shifted_chebyshev_polynomial_w_outf(const at::Tensor & x, const at::Tensor & n, at::Tensor & out); + +} // namespace cuda +} // namespace at diff --git a/shared/package-files/86/86441e7612d705058813bc528e003a3aabc4b20d7bfba1c02dc2b590c08f9b0b/im2col_cuda_dispatch.h b/shared/package-files/86/86441e7612d705058813bc528e003a3aabc4b20d7bfba1c02dc2b590c08f9b0b/im2col_cuda_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..77db0b79ae45859727929e1c65b36d2a56155830 --- /dev/null +++ b/shared/package-files/86/86441e7612d705058813bc528e003a3aabc4b20d7bfba1c02dc2b590c08f9b0b/im2col_cuda_dispatch.h @@ -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 im2col(const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef dilation, at::IntArrayRef padding, at::IntArrayRef stride); +TORCH_API at::Tensor & im2col_out(at::Tensor & out, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef dilation, at::IntArrayRef padding, at::IntArrayRef stride); +TORCH_API at::Tensor & im2col_outf(const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef dilation, at::IntArrayRef padding, at::IntArrayRef stride, at::Tensor & out); + +} // namespace cuda +} // namespace at diff --git a/shared/package-files/86/86486905ae29d1eb9fdab52326f881589e1326cd7091469db37997d5f80360c7/mio4.py b/shared/package-files/86/86486905ae29d1eb9fdab52326f881589e1326cd7091469db37997d5f80360c7/mio4.py new file mode 100644 index 0000000000000000000000000000000000000000..d13b99a0bcedc9746f7681843989791e0918df2e --- /dev/null +++ b/shared/package-files/86/86486905ae29d1eb9fdab52326f881589e1326cd7091469db37997d5f80360c7/mio4.py @@ -0,0 +1,17 @@ +# This file is not meant for public use and will be removed in SciPy v2.0.0. +# Use the `scipy.io.matlab` namespace for importing the functions +# included below. + +from scipy._lib.deprecation import _sub_module_deprecation + +__all__: list[str] = [] + + +def __dir__(): + return __all__ + + +def __getattr__(name): + return _sub_module_deprecation(sub_package="io.matlab", module="mio4", + private_modules=["_mio4"], all=__all__, + attribute=name) diff --git a/shared/package-files/86/864961fc7913fd97df4011d0eedea92944ad4c7e31e675e5cfc47d4543fbd9a6/dsa.py b/shared/package-files/86/864961fc7913fd97df4011d0eedea92944ad4c7e31e675e5cfc47d4543fbd9a6/dsa.py new file mode 100644 index 0000000000000000000000000000000000000000..0fe4690d39ec9f26caf1221146cf5309676e0173 --- /dev/null +++ b/shared/package-files/86/864961fc7913fd97df4011d0eedea92944ad4c7e31e675e5cfc47d4543fbd9a6/dsa.py @@ -0,0 +1,101 @@ +import struct + +from cryptography.hazmat.backends import default_backend +from cryptography.hazmat.primitives import hashes +from cryptography.hazmat.primitives.asymmetric import dsa, utils + +from dns.dnssecalgs.cryptography import CryptographyPrivateKey, CryptographyPublicKey +from dns.dnssectypes import Algorithm +from dns.rdtypes.ANY.DNSKEY import DNSKEY + + +class PublicDSA(CryptographyPublicKey): + key: dsa.DSAPublicKey + key_cls = dsa.DSAPublicKey + algorithm = Algorithm.DSA + chosen_hash = hashes.SHA1() + + def verify(self, signature: bytes, data: bytes) -> None: + sig_r = signature[1:21] + sig_s = signature[21:] + sig = utils.encode_dss_signature( + int.from_bytes(sig_r, "big"), int.from_bytes(sig_s, "big") + ) + self.key.verify(sig, data, self.chosen_hash) + + def encode_key_bytes(self) -> bytes: + """Encode a public key per RFC 2536, section 2.""" + pn = self.key.public_numbers() + dsa_t = (self.key.key_size // 8 - 64) // 8 + if dsa_t > 8: + raise ValueError("unsupported DSA key size") + octets = 64 + dsa_t * 8 + res = struct.pack("!B", dsa_t) + res += pn.parameter_numbers.q.to_bytes(20, "big") + res += pn.parameter_numbers.p.to_bytes(octets, "big") + res += pn.parameter_numbers.g.to_bytes(octets, "big") + res += pn.y.to_bytes(octets, "big") + return res + + @classmethod + def from_dnskey(cls, key: DNSKEY) -> "PublicDSA": + cls._ensure_algorithm_key_combination(key) + keyptr = key.key + (t,) = struct.unpack("!B", keyptr[0:1]) + keyptr = keyptr[1:] + octets = 64 + t * 8 + dsa_q = keyptr[0:20] + keyptr = keyptr[20:] + dsa_p = keyptr[0:octets] + keyptr = keyptr[octets:] + dsa_g = keyptr[0:octets] + keyptr = keyptr[octets:] + dsa_y = keyptr[0:octets] + return cls( + key=dsa.DSAPublicNumbers( # type: ignore + int.from_bytes(dsa_y, "big"), + dsa.DSAParameterNumbers( + int.from_bytes(dsa_p, "big"), + int.from_bytes(dsa_q, "big"), + int.from_bytes(dsa_g, "big"), + ), + ).public_key(default_backend()), + ) + + +class PrivateDSA(CryptographyPrivateKey): + key: dsa.DSAPrivateKey + key_cls = dsa.DSAPrivateKey + public_cls = PublicDSA + + def sign(self, data: bytes, verify: bool = False) -> bytes: + """Sign using a private key per RFC 2536, section 3.""" + public_dsa_key = self.key.public_key() + if public_dsa_key.key_size > 1024: + raise ValueError("DSA key size overflow") + der_signature = self.key.sign(data, self.public_cls.chosen_hash) + dsa_r, dsa_s = utils.decode_dss_signature(der_signature) + dsa_t = (public_dsa_key.key_size // 8 - 64) // 8 + octets = 20 + signature = ( + struct.pack("!B", dsa_t) + + int.to_bytes(dsa_r, length=octets, byteorder="big") + + int.to_bytes(dsa_s, length=octets, byteorder="big") + ) + if verify: + self.public_key().verify(signature, data) + return signature + + @classmethod + def generate(cls, key_size: int) -> "PrivateDSA": + return cls( + key=dsa.generate_private_key(key_size=key_size), + ) + + +class PublicDSANSEC3SHA1(PublicDSA): + algorithm = Algorithm.DSANSEC3SHA1 + + +class PrivateDSANSEC3SHA1(PrivateDSA): + public_cls = PublicDSANSEC3SHA1 diff --git a/shared/package-files/86/864cf24c68cb55db818ed6af9baff5ed9311a2aef59cc704b4c13bb3068222fc/bitwise_left_shift_ops.h b/shared/package-files/86/864cf24c68cb55db818ed6af9baff5ed9311a2aef59cc704b4c13bb3068222fc/bitwise_left_shift_ops.h new file mode 100644 index 0000000000000000000000000000000000000000..8e7746535ec8165ee6ceab1c999f4675f5502da4 --- /dev/null +++ b/shared/package-files/86/864cf24c68cb55db818ed6af9baff5ed9311a2aef59cc704b4c13bb3068222fc/bitwise_left_shift_ops.h @@ -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_left_shift_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_left_shift") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "Tensor") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "bitwise_left_shift.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_left_shift__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_left_shift_") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "Tensor") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "bitwise_left_shift_.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_left_shift_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_left_shift") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "Tensor_out") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "bitwise_left_shift.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_left_shift_Tensor_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_left_shift") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "Tensor_Scalar") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "bitwise_left_shift.Tensor_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_left_shift__Tensor_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_left_shift_") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "Tensor_Scalar") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "bitwise_left_shift_.Tensor_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_left_shift_Tensor_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_left_shift") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "Tensor_Scalar_out") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "bitwise_left_shift.Tensor_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_left_shift_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_left_shift") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "Scalar_Tensor") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "bitwise_left_shift.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_left_shift_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_left_shift") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "Scalar_Tensor_out") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "bitwise_left_shift.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/86/86500fde41cd4a2e63df29431efd1413520110d05b35eb84dcd8a40c83df2b41/_foreach_add_cpu_dispatch.h b/shared/package-files/86/86500fde41cd4a2e63df29431efd1413520110d05b35eb84dcd8a40c83df2b41/_foreach_add_cpu_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..83882294de3d43d3667b9efa71e118aa3acfceb6 --- /dev/null +++ b/shared/package-files/86/86500fde41cd4a2e63df29431efd1413520110d05b35eb84dcd8a40c83df2b41/_foreach_add_cpu_dispatch.h @@ -0,0 +1,30 @@ +#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_add(at::TensorList self, const at::Scalar & scalar); +TORCH_API void _foreach_add_(at::TensorList self, const at::Scalar & scalar); +TORCH_API ::std::vector _foreach_add(at::TensorList self, at::TensorList other, const at::Scalar & alpha=1); +TORCH_API void _foreach_add_(at::TensorList self, at::TensorList other, const at::Scalar & alpha=1); +TORCH_API ::std::vector _foreach_add(at::TensorList self, at::ArrayRef scalars); +TORCH_API void _foreach_add_(at::TensorList self, at::ArrayRef scalars); +TORCH_API ::std::vector _foreach_add(at::TensorList self, const at::Tensor & other, const at::Scalar & alpha=1); +TORCH_API void _foreach_add_(at::TensorList self, const at::Tensor & other, const at::Scalar & alpha=1); + +} // namespace cpu +} // namespace at diff --git a/shared/package-files/86/86542c83fefe464bd2decf0e33c297cbdf71c7225b0a6f96d4061571d9ced5cc/npy_os.h b/shared/package-files/86/86542c83fefe464bd2decf0e33c297cbdf71c7225b0a6f96d4061571d9ced5cc/npy_os.h new file mode 100644 index 0000000000000000000000000000000000000000..0ce5d78b42c0e53c660654e297446d7811901aa2 --- /dev/null +++ b/shared/package-files/86/86542c83fefe464bd2decf0e33c297cbdf71c7225b0a6f96d4061571d9ced5cc/npy_os.h @@ -0,0 +1,42 @@ +#ifndef NUMPY_CORE_INCLUDE_NUMPY_NPY_OS_H_ +#define NUMPY_CORE_INCLUDE_NUMPY_NPY_OS_H_ + +#if defined(linux) || defined(__linux) || defined(__linux__) + #define NPY_OS_LINUX +#elif defined(__FreeBSD__) || defined(__NetBSD__) || \ + defined(__OpenBSD__) || defined(__DragonFly__) + #define NPY_OS_BSD + #ifdef __FreeBSD__ + #define NPY_OS_FREEBSD + #elif defined(__NetBSD__) + #define NPY_OS_NETBSD + #elif defined(__OpenBSD__) + #define NPY_OS_OPENBSD + #elif defined(__DragonFly__) + #define NPY_OS_DRAGONFLY + #endif +#elif defined(sun) || defined(__sun) + #define NPY_OS_SOLARIS +#elif defined(__CYGWIN__) + #define NPY_OS_CYGWIN +/* We are on Windows.*/ +#elif defined(_WIN32) + /* We are using MinGW (64-bit or 32-bit)*/ + #if defined(__MINGW32__) || defined(__MINGW64__) + #define NPY_OS_MINGW + /* Otherwise, if _WIN64 is defined, we are targeting 64-bit Windows*/ + #elif defined(_WIN64) + #define NPY_OS_WIN64 + /* Otherwise assume we are targeting 32-bit Windows*/ + #else + #define NPY_OS_WIN32 + #endif +#elif defined(__APPLE__) + #define NPY_OS_DARWIN +#elif defined(__HAIKU__) + #define NPY_OS_HAIKU +#else + #define NPY_OS_UNKNOWN +#endif + +#endif /* NUMPY_CORE_INCLUDE_NUMPY_NPY_OS_H_ */ diff --git a/shared/package-files/86/8654ad2848ad7e5ef8bb6c2711895a8e658755dd08c0777215fc43720a2851f7/test_pylab.py b/shared/package-files/86/8654ad2848ad7e5ef8bb6c2711895a8e658755dd08c0777215fc43720a2851f7/test_pylab.py new file mode 100644 index 0000000000000000000000000000000000000000..668a627077d664c3df3c557dbc19fc64cb94c83c --- /dev/null +++ b/shared/package-files/86/8654ad2848ad7e5ef8bb6c2711895a8e658755dd08c0777215fc43720a2851f7/test_pylab.py @@ -0,0 +1,791 @@ +"""Unit tests for matplotlib drawing functions.""" +import itertools +import os +import warnings + +import pytest + +mpl = pytest.importorskip("matplotlib") +np = pytest.importorskip("numpy") +mpl.use("PS") +plt = pytest.importorskip("matplotlib.pyplot") +plt.rcParams["text.usetex"] = False + + +import networkx as nx + +barbell = nx.barbell_graph(4, 6) + + +def test_draw(): + try: + functions = [ + nx.draw_circular, + nx.draw_kamada_kawai, + nx.draw_planar, + nx.draw_random, + nx.draw_spectral, + nx.draw_spring, + nx.draw_shell, + ] + options = [{"node_color": "black", "node_size": 100, "width": 3}] + for function, option in itertools.product(functions, options): + function(barbell, **option) + plt.savefig("test.ps") + + finally: + try: + os.unlink("test.ps") + except OSError: + pass + + +def test_draw_shell_nlist(): + try: + nlist = [list(range(4)), list(range(4, 10)), list(range(10, 14))] + nx.draw_shell(barbell, nlist=nlist) + plt.savefig("test.ps") + finally: + try: + os.unlink("test.ps") + except OSError: + pass + + +def test_edge_colormap(): + colors = range(barbell.number_of_edges()) + nx.draw_spring( + barbell, edge_color=colors, width=4, edge_cmap=plt.cm.Blues, with_labels=True + ) + # plt.show() + + +def test_arrows(): + nx.draw_spring(barbell.to_directed()) + # plt.show() + + +@pytest.mark.parametrize( + ("edge_color", "expected"), + ( + (None, "black"), # Default + ("r", "red"), # Non-default color string + (["r"], "red"), # Single non-default color in a list + ((1.0, 1.0, 0.0), "yellow"), # single color as rgb tuple + ([(1.0, 1.0, 0.0)], "yellow"), # single color as rgb tuple in list + ((0, 1, 0, 1), "lime"), # single color as rgba tuple + ([(0, 1, 0, 1)], "lime"), # single color as rgba tuple in list + ("#0000ff", "blue"), # single color hex code + (["#0000ff"], "blue"), # hex code in list + ), +) +@pytest.mark.parametrize("edgelist", (None, [(0, 1)])) +def test_single_edge_color_undirected(edge_color, expected, edgelist): + """Tests ways of specifying all edges have a single color for edges + drawn with a LineCollection""" + + G = nx.path_graph(3) + drawn_edges = nx.draw_networkx_edges( + G, pos=nx.random_layout(G), edgelist=edgelist, edge_color=edge_color + ) + assert mpl.colors.same_color(drawn_edges.get_color(), expected) + + +@pytest.mark.parametrize( + ("edge_color", "expected"), + ( + (None, "black"), # Default + ("r", "red"), # Non-default color string + (["r"], "red"), # Single non-default color in a list + ((1.0, 1.0, 0.0), "yellow"), # single color as rgb tuple + ([(1.0, 1.0, 0.0)], "yellow"), # single color as rgb tuple in list + ((0, 1, 0, 1), "lime"), # single color as rgba tuple + ([(0, 1, 0, 1)], "lime"), # single color as rgba tuple in list + ("#0000ff", "blue"), # single color hex code + (["#0000ff"], "blue"), # hex code in list + ), +) +@pytest.mark.parametrize("edgelist", (None, [(0, 1)])) +def test_single_edge_color_directed(edge_color, expected, edgelist): + """Tests ways of specifying all edges have a single color for edges drawn + with FancyArrowPatches""" + + G = nx.path_graph(3, create_using=nx.DiGraph) + drawn_edges = nx.draw_networkx_edges( + G, pos=nx.random_layout(G), edgelist=edgelist, edge_color=edge_color + ) + for fap in drawn_edges: + assert mpl.colors.same_color(fap.get_edgecolor(), expected) + + +def test_edge_color_tuple_interpretation(): + """If edge_color is a sequence with the same length as edgelist, then each + value in edge_color is mapped onto each edge via colormap.""" + G = nx.path_graph(6, create_using=nx.DiGraph) + pos = {n: (n, n) for n in range(len(G))} + + # num edges != 3 or 4 --> edge_color interpreted as rgb(a) + for ec in ((0, 0, 1), (0, 0, 1, 1)): + # More than 4 edges + drawn_edges = nx.draw_networkx_edges(G, pos, edge_color=ec) + for fap in drawn_edges: + assert mpl.colors.same_color(fap.get_edgecolor(), ec) + # Fewer than 3 edges + drawn_edges = nx.draw_networkx_edges( + G, pos, edgelist=[(0, 1), (1, 2)], edge_color=ec + ) + for fap in drawn_edges: + assert mpl.colors.same_color(fap.get_edgecolor(), ec) + + # num edges == 3, len(edge_color) == 4: interpreted as rgba + drawn_edges = nx.draw_networkx_edges( + G, pos, edgelist=[(0, 1), (1, 2), (2, 3)], edge_color=(0, 0, 1, 1) + ) + for fap in drawn_edges: + assert mpl.colors.same_color(fap.get_edgecolor(), "blue") + + # num edges == 4, len(edge_color) == 3: interpreted as rgb + drawn_edges = nx.draw_networkx_edges( + G, pos, edgelist=[(0, 1), (1, 2), (2, 3), (3, 4)], edge_color=(0, 0, 1) + ) + for fap in drawn_edges: + assert mpl.colors.same_color(fap.get_edgecolor(), "blue") + + # num edges == len(edge_color) == 3: interpreted with cmap, *not* as rgb + drawn_edges = nx.draw_networkx_edges( + G, pos, edgelist=[(0, 1), (1, 2), (2, 3)], edge_color=(0, 0, 1) + ) + assert mpl.colors.same_color( + drawn_edges[0].get_edgecolor(), drawn_edges[1].get_edgecolor() + ) + for fap in drawn_edges: + assert not mpl.colors.same_color(fap.get_edgecolor(), "blue") + + # num edges == len(edge_color) == 4: interpreted with cmap, *not* as rgba + drawn_edges = nx.draw_networkx_edges( + G, pos, edgelist=[(0, 1), (1, 2), (2, 3), (3, 4)], edge_color=(0, 0, 1, 1) + ) + assert mpl.colors.same_color( + drawn_edges[0].get_edgecolor(), drawn_edges[1].get_edgecolor() + ) + assert mpl.colors.same_color( + drawn_edges[2].get_edgecolor(), drawn_edges[3].get_edgecolor() + ) + for fap in drawn_edges: + assert not mpl.colors.same_color(fap.get_edgecolor(), "blue") + + +def test_fewer_edge_colors_than_num_edges_directed(): + """Test that the edge colors are cycled when there are fewer specified + colors than edges.""" + G = barbell.to_directed() + pos = nx.random_layout(barbell) + edgecolors = ("r", "g", "b") + drawn_edges = nx.draw_networkx_edges(G, pos, edge_color=edgecolors) + for fap, expected in zip(drawn_edges, itertools.cycle(edgecolors)): + assert mpl.colors.same_color(fap.get_edgecolor(), expected) + + +def test_more_edge_colors_than_num_edges_directed(): + """Test that extra edge colors are ignored when there are more specified + colors than edges.""" + G = nx.path_graph(4, create_using=nx.DiGraph) # 3 edges + pos = nx.random_layout(barbell) + edgecolors = ("r", "g", "b", "c") # 4 edge colors + drawn_edges = nx.draw_networkx_edges(G, pos, edge_color=edgecolors) + for fap, expected in zip(drawn_edges, edgecolors[:-1]): + assert mpl.colors.same_color(fap.get_edgecolor(), expected) + + +def test_edge_color_string_with_global_alpha_undirected(): + edge_collection = nx.draw_networkx_edges( + barbell, + pos=nx.random_layout(barbell), + edgelist=[(0, 1), (1, 2)], + edge_color="purple", + alpha=0.2, + ) + ec = edge_collection.get_color().squeeze() # as rgba tuple + assert len(edge_collection.get_paths()) == 2 + assert mpl.colors.same_color(ec[:-1], "purple") + assert ec[-1] == 0.2 + + +def test_edge_color_string_with_global_alpha_directed(): + drawn_edges = nx.draw_networkx_edges( + barbell.to_directed(), + pos=nx.random_layout(barbell), + edgelist=[(0, 1), (1, 2)], + edge_color="purple", + alpha=0.2, + ) + assert len(drawn_edges) == 2 + for fap in drawn_edges: + ec = fap.get_edgecolor() # As rgba tuple + assert mpl.colors.same_color(ec[:-1], "purple") + assert ec[-1] == 0.2 + + +@pytest.mark.parametrize("graph_type", (nx.Graph, nx.DiGraph)) +def test_edge_width_default_value(graph_type): + """Test the default linewidth for edges drawn either via LineCollection or + FancyArrowPatches.""" + G = nx.path_graph(2, create_using=graph_type) + pos = {n: (n, n) for n in range(len(G))} + drawn_edges = nx.draw_networkx_edges(G, pos) + if isinstance(drawn_edges, list): # directed case: list of FancyArrowPatch + drawn_edges = drawn_edges[0] + assert drawn_edges.get_linewidth() == 1 + + +@pytest.mark.parametrize( + ("edgewidth", "expected"), + ( + (3, 3), # single-value, non-default + ([3], 3), # Single value as a list + ), +) +def test_edge_width_single_value_undirected(edgewidth, expected): + G = nx.path_graph(4) + pos = {n: (n, n) for n in range(len(G))} + drawn_edges = nx.draw_networkx_edges(G, pos, width=edgewidth) + assert len(drawn_edges.get_paths()) == 3 + assert drawn_edges.get_linewidth() == expected + + +@pytest.mark.parametrize( + ("edgewidth", "expected"), + ( + (3, 3), # single-value, non-default + ([3], 3), # Single value as a list + ), +) +def test_edge_width_single_value_directed(edgewidth, expected): + G = nx.path_graph(4, create_using=nx.DiGraph) + pos = {n: (n, n) for n in range(len(G))} + drawn_edges = nx.draw_networkx_edges(G, pos, width=edgewidth) + assert len(drawn_edges) == 3 + for fap in drawn_edges: + assert fap.get_linewidth() == expected + + +@pytest.mark.parametrize( + "edgelist", + ( + [(0, 1), (1, 2), (2, 3)], # one width specification per edge + None, # fewer widths than edges - widths cycle + [(0, 1), (1, 2)], # More widths than edges - unused widths ignored + ), +) +def test_edge_width_sequence(edgelist): + G = barbell.to_directed() + pos = nx.random_layout(G) + widths = (0.5, 2.0, 12.0) + drawn_edges = nx.draw_networkx_edges(G, pos, edgelist=edgelist, width=widths) + for fap, expected_width in zip(drawn_edges, itertools.cycle(widths)): + assert fap.get_linewidth() == expected_width + + +def test_edge_color_with_edge_vmin_vmax(): + """Test that edge_vmin and edge_vmax properly set the dynamic range of the + color map when num edges == len(edge_colors).""" + G = nx.path_graph(3, create_using=nx.DiGraph) + pos = nx.random_layout(G) + # Extract colors from the original (unscaled) colormap + drawn_edges = nx.draw_networkx_edges(G, pos, edge_color=[0, 1.0]) + orig_colors = [e.get_edgecolor() for e in drawn_edges] + # Colors from scaled colormap + drawn_edges = nx.draw_networkx_edges( + G, pos, edge_color=[0.2, 0.8], edge_vmin=0.2, edge_vmax=0.8 + ) + scaled_colors = [e.get_edgecolor() for e in drawn_edges] + assert mpl.colors.same_color(orig_colors, scaled_colors) + + +def test_directed_edges_linestyle_default(): + """Test default linestyle for edges drawn with FancyArrowPatches.""" + G = nx.path_graph(4, create_using=nx.DiGraph) # Graph with 3 edges + pos = {n: (n, n) for n in range(len(G))} + + # edge with default style + drawn_edges = nx.draw_networkx_edges(G, pos) + assert len(drawn_edges) == 3 + for fap in drawn_edges: + assert fap.get_linestyle() == "solid" + + +@pytest.mark.parametrize( + "style", + ( + "dashed", # edge with string style + "--", # edge with simplified string style + (1, (1, 1)), # edge with (offset, onoffseq) style + ), +) +def test_directed_edges_linestyle_single_value(style): + """Tests support for specifying linestyles with a single value to be applied to + all edges in ``draw_networkx_edges`` for FancyArrowPatch outputs + (e.g. directed edges).""" + + G = nx.path_graph(4, create_using=nx.DiGraph) # Graph with 3 edges + pos = {n: (n, n) for n in range(len(G))} + + drawn_edges = nx.draw_networkx_edges(G, pos, style=style) + assert len(drawn_edges) == 3 + for fap in drawn_edges: + assert fap.get_linestyle() == style + + +@pytest.mark.parametrize( + "style_seq", + ( + ["dashed"], # edge with string style in list + ["--"], # edge with simplified string style in list + [(1, (1, 1))], # edge with (offset, onoffseq) style in list + ["--", "-", ":"], # edges with styles for each edge + ["--", "-"], # edges with fewer styles than edges (styles cycle) + ["--", "-", ":", "-."], # edges with more styles than edges (extra unused) + ), +) +def test_directed_edges_linestyle_sequence(style_seq): + """Tests support for specifying linestyles with sequences in + ``draw_networkx_edges`` for FancyArrowPatch outputs (e.g. directed edges).""" + + G = nx.path_graph(4, create_using=nx.DiGraph) # Graph with 3 edges + pos = {n: (n, n) for n in range(len(G))} + + drawn_edges = nx.draw_networkx_edges(G, pos, style=style_seq) + assert len(drawn_edges) == 3 + for fap, style in zip(drawn_edges, itertools.cycle(style_seq)): + assert fap.get_linestyle() == style + + +def test_labels_and_colors(): + G = nx.cubical_graph() + pos = nx.spring_layout(G) # positions for all nodes + # nodes + nx.draw_networkx_nodes( + G, pos, nodelist=[0, 1, 2, 3], node_color="r", node_size=500, alpha=0.75 + ) + nx.draw_networkx_nodes( + G, + pos, + nodelist=[4, 5, 6, 7], + node_color="b", + node_size=500, + alpha=[0.25, 0.5, 0.75, 1.0], + ) + # edges + nx.draw_networkx_edges(G, pos, width=1.0, alpha=0.5) + nx.draw_networkx_edges( + G, + pos, + edgelist=[(0, 1), (1, 2), (2, 3), (3, 0)], + width=8, + alpha=0.5, + edge_color="r", + ) + nx.draw_networkx_edges( + G, + pos, + edgelist=[(4, 5), (5, 6), (6, 7), (7, 4)], + width=8, + alpha=0.5, + edge_color="b", + ) + nx.draw_networkx_edges( + G, + pos, + edgelist=[(4, 5), (5, 6), (6, 7), (7, 4)], + arrows=True, + min_source_margin=0.5, + min_target_margin=0.75, + width=8, + edge_color="b", + ) + # some math labels + labels = {} + labels[0] = r"$a$" + labels[1] = r"$b$" + labels[2] = r"$c$" + labels[3] = r"$d$" + labels[4] = r"$\alpha$" + labels[5] = r"$\beta$" + labels[6] = r"$\gamma$" + labels[7] = r"$\delta$" + nx.draw_networkx_labels(G, pos, labels, font_size=16) + nx.draw_networkx_edge_labels(G, pos, edge_labels=None, rotate=False) + nx.draw_networkx_edge_labels(G, pos, edge_labels={(4, 5): "4-5"}) + # plt.show() + + +@pytest.mark.mpl_image_compare +def test_house_with_colors(): + G = nx.house_graph() + # explicitly set positions + fig, ax = plt.subplots() + pos = {0: (0, 0), 1: (1, 0), 2: (0, 1), 3: (1, 1), 4: (0.5, 2.0)} + + # Plot nodes with different properties for the "wall" and "roof" nodes + nx.draw_networkx_nodes( + G, + pos, + node_size=3000, + nodelist=[0, 1, 2, 3], + node_color="tab:blue", + ) + nx.draw_networkx_nodes( + G, pos, node_size=2000, nodelist=[4], node_color="tab:orange" + ) + nx.draw_networkx_edges(G, pos, alpha=0.5, width=6) + # Customize axes + ax.margins(0.11) + plt.tight_layout() + plt.axis("off") + return fig + + +def test_axes(): + fig, ax = plt.subplots() + nx.draw(barbell, ax=ax) + nx.draw_networkx_edge_labels(barbell, nx.circular_layout(barbell), ax=ax) + + +def test_empty_graph(): + G = nx.Graph() + nx.draw(G) + + +def test_draw_empty_nodes_return_values(): + # See Issue #3833 + import matplotlib.collections # call as mpl.collections + + G = nx.Graph([(1, 2), (2, 3)]) + DG = nx.DiGraph([(1, 2), (2, 3)]) + pos = nx.circular_layout(G) + assert isinstance( + nx.draw_networkx_nodes(G, pos, nodelist=[]), mpl.collections.PathCollection + ) + assert isinstance( + nx.draw_networkx_nodes(DG, pos, nodelist=[]), mpl.collections.PathCollection + ) + + # drawing empty edges used to return an empty LineCollection or empty list. + # Now it is always an empty list (because edges are now lists of FancyArrows) + assert nx.draw_networkx_edges(G, pos, edgelist=[], arrows=True) == [] + assert nx.draw_networkx_edges(G, pos, edgelist=[], arrows=False) == [] + assert nx.draw_networkx_edges(DG, pos, edgelist=[], arrows=False) == [] + assert nx.draw_networkx_edges(DG, pos, edgelist=[], arrows=True) == [] + + +def test_multigraph_edgelist_tuples(): + # See Issue #3295 + G = nx.path_graph(3, create_using=nx.MultiDiGraph) + nx.draw_networkx(G, edgelist=[(0, 1, 0)]) + nx.draw_networkx(G, edgelist=[(0, 1, 0)], node_size=[10, 20, 0]) + + +def test_alpha_iter(): + pos = nx.random_layout(barbell) + fig = plt.figure() + # with fewer alpha elements than nodes + fig.add_subplot(131) # Each test in a new axis object + nx.draw_networkx_nodes(barbell, pos, alpha=[0.1, 0.2]) + # with equal alpha elements and nodes + num_nodes = len(barbell.nodes) + alpha = [x / num_nodes for x in range(num_nodes)] + colors = range(num_nodes) + fig.add_subplot(132) + nx.draw_networkx_nodes(barbell, pos, node_color=colors, alpha=alpha) + # with more alpha elements than nodes + alpha.append(1) + fig.add_subplot(133) + nx.draw_networkx_nodes(barbell, pos, alpha=alpha) + + +def test_error_invalid_kwds(): + with pytest.raises(ValueError, match="Received invalid argument"): + nx.draw(barbell, foo="bar") + + +def test_draw_networkx_arrowsize_incorrect_size(): + G = nx.DiGraph([(0, 1), (0, 2), (0, 3), (1, 3)]) + arrowsize = [1, 2, 3] + with pytest.raises( + ValueError, match="arrowsize should have the same length as edgelist" + ): + nx.draw(G, arrowsize=arrowsize) + + +@pytest.mark.parametrize("arrowsize", (30, [10, 20, 30])) +def test_draw_edges_arrowsize(arrowsize): + G = nx.DiGraph([(0, 1), (0, 2), (1, 2)]) + pos = {0: (0, 0), 1: (0, 1), 2: (1, 0)} + edges = nx.draw_networkx_edges(G, pos=pos, arrowsize=arrowsize) + + arrowsize = itertools.repeat(arrowsize) if isinstance(arrowsize, int) else arrowsize + + for fap, expected in zip(edges, arrowsize): + assert isinstance(fap, mpl.patches.FancyArrowPatch) + assert fap.get_mutation_scale() == expected + + +def test_np_edgelist(): + # see issue #4129 + nx.draw_networkx(barbell, edgelist=np.array([(0, 2), (0, 3)])) + + +def test_draw_nodes_missing_node_from_position(): + G = nx.path_graph(3) + pos = {0: (0, 0), 1: (1, 1)} # No position for node 2 + with pytest.raises(nx.NetworkXError, match="has no position"): + nx.draw_networkx_nodes(G, pos) + + +# NOTE: parametrizing on marker to test both branches of internal +# nx.draw_networkx_edges.to_marker_edge function +@pytest.mark.parametrize("node_shape", ("o", "s")) +def test_draw_edges_min_source_target_margins(node_shape): + """Test that there is a wider gap between the node and the start of an + incident edge when min_source_margin is specified. + + This test checks that the use of min_{source/target}_margin kwargs result + in shorter (more padding) between the edges and source and target nodes. + As a crude visual example, let 's' and 't' represent source and target + nodes, respectively: + + Default: + s-----------------------------t + + With margins: + s ----------------------- t + + """ + # Create a single axis object to get consistent pixel coords across + # multiple draws + fig, ax = plt.subplots() + G = nx.DiGraph([(0, 1)]) + pos = {0: (0, 0), 1: (1, 0)} # horizontal layout + # Get leftmost and rightmost points of the FancyArrowPatch object + # representing the edge between nodes 0 and 1 (in pixel coordinates) + default_patch = nx.draw_networkx_edges(G, pos, ax=ax, node_shape=node_shape)[0] + default_extent = default_patch.get_extents().corners()[::2, 0] + # Now, do the same but with "padding" for the source and target via the + # min_{source/target}_margin kwargs + padded_patch = nx.draw_networkx_edges( + G, + pos, + ax=ax, + node_shape=node_shape, + min_source_margin=100, + min_target_margin=100, + )[0] + padded_extent = padded_patch.get_extents().corners()[::2, 0] + + # With padding, the left-most extent of the edge should be further to the + # right + assert padded_extent[0] > default_extent[0] + # And the rightmost extent of the edge, further to the left + assert padded_extent[1] < default_extent[1] + + +def test_nonzero_selfloop_with_single_node(): + """Ensure that selfloop extent is non-zero when there is only one node.""" + # Create explicit axis object for test + fig, ax = plt.subplots() + # Graph with single node + self loop + G = nx.DiGraph() + G.add_node(0) + G.add_edge(0, 0) + # Draw + patch = nx.draw_networkx_edges(G, {0: (0, 0)})[0] + # The resulting patch must have non-zero extent + bbox = patch.get_extents() + assert bbox.width > 0 and bbox.height > 0 + # Cleanup + plt.delaxes(ax) + + +def test_nonzero_selfloop_with_single_edge_in_edgelist(): + """Ensure that selfloop extent is non-zero when only a single edge is + specified in the edgelist. + """ + # Create explicit axis object for test + fig, ax = plt.subplots() + # Graph with selfloop + G = nx.path_graph(2, create_using=nx.DiGraph) + G.add_edge(1, 1) + pos = {n: (n, n) for n in G.nodes} + # Draw only the selfloop edge via the `edgelist` kwarg + patch = nx.draw_networkx_edges(G, pos, edgelist=[(1, 1)])[0] + # The resulting patch must have non-zero extent + bbox = patch.get_extents() + assert bbox.width > 0 and bbox.height > 0 + # Cleanup + plt.delaxes(ax) + + +def test_apply_alpha(): + """Test apply_alpha when there is a mismatch between the number of + supplied colors and elements. + """ + nodelist = [0, 1, 2] + colorlist = ["r", "g", "b"] + alpha = 0.5 + rgba_colors = nx.drawing.nx_pylab.apply_alpha(colorlist, alpha, nodelist) + assert all(rgba_colors[:, -1] == alpha) + + +def test_draw_edges_toggling_with_arrows_kwarg(): + """ + The `arrows` keyword argument is used as a 3-way switch to select which + type of object to use for drawing edges: + - ``arrows=None`` -> default (FancyArrowPatches for directed, else LineCollection) + - ``arrows=True`` -> FancyArrowPatches + - ``arrows=False`` -> LineCollection + """ + import matplotlib.collections + import matplotlib.patches + + UG = nx.path_graph(3) + DG = nx.path_graph(3, create_using=nx.DiGraph) + pos = {n: (n, n) for n in UG} + + # Use FancyArrowPatches when arrows=True, regardless of graph type + for G in (UG, DG): + edges = nx.draw_networkx_edges(G, pos, arrows=True) + assert len(edges) == len(G.edges) + assert isinstance(edges[0], mpl.patches.FancyArrowPatch) + + # Use LineCollection when arrows=False, regardless of graph type + for G in (UG, DG): + edges = nx.draw_networkx_edges(G, pos, arrows=False) + assert isinstance(edges, mpl.collections.LineCollection) + + # Default behavior when arrows=None: FAPs for directed, LC's for undirected + edges = nx.draw_networkx_edges(UG, pos) + assert isinstance(edges, mpl.collections.LineCollection) + edges = nx.draw_networkx_edges(DG, pos) + assert len(edges) == len(G.edges) + assert isinstance(edges[0], mpl.patches.FancyArrowPatch) + + +@pytest.mark.parametrize("drawing_func", (nx.draw, nx.draw_networkx)) +def test_draw_networkx_arrows_default_undirected(drawing_func): + import matplotlib.collections + + G = nx.path_graph(3) + fig, ax = plt.subplots() + drawing_func(G, ax=ax) + assert any(isinstance(c, mpl.collections.LineCollection) for c in ax.collections) + assert not ax.patches + plt.delaxes(ax) + + +@pytest.mark.parametrize("drawing_func", (nx.draw, nx.draw_networkx)) +def test_draw_networkx_arrows_default_directed(drawing_func): + import matplotlib.collections + + G = nx.path_graph(3, create_using=nx.DiGraph) + fig, ax = plt.subplots() + drawing_func(G, ax=ax) + assert not any( + isinstance(c, mpl.collections.LineCollection) for c in ax.collections + ) + assert ax.patches + plt.delaxes(ax) + + +def test_edgelist_kwarg_not_ignored(): + # See gh-4994 + G = nx.path_graph(3) + G.add_edge(0, 0) + fig, ax = plt.subplots() + nx.draw(G, edgelist=[(0, 1), (1, 2)], ax=ax) # Exclude self-loop from edgelist + assert not ax.patches + plt.delaxes(ax) + + +def test_draw_networkx_edge_label_multiedge_exception(): + """ + draw_networkx_edge_labels should raise an informative error message when + the edge label includes keys + """ + exception_msg = "draw_networkx_edge_labels does not support multiedges" + G = nx.MultiGraph() + G.add_edge(0, 1, weight=10) + G.add_edge(0, 1, weight=20) + edge_labels = nx.get_edge_attributes(G, "weight") # Includes edge keys + pos = {n: (n, n) for n in G} + with pytest.raises(nx.NetworkXError, match=exception_msg): + nx.draw_networkx_edge_labels(G, pos, edge_labels=edge_labels) + + +def test_draw_networkx_edge_label_empty_dict(): + """Regression test for draw_networkx_edge_labels with empty dict. See + gh-5372.""" + G = nx.path_graph(3) + pos = {n: (n, n) for n in G.nodes} + assert nx.draw_networkx_edge_labels(G, pos, edge_labels={}) == {} + + +def test_draw_networkx_edges_undirected_selfloop_colors(): + """When an edgelist is supplied along with a sequence of colors, check that + the self-loops have the correct colors.""" + fig, ax = plt.subplots() + # Edge list and corresponding colors + edgelist = [(1, 3), (1, 2), (2, 3), (1, 1), (3, 3), (2, 2)] + edge_colors = ["pink", "cyan", "black", "red", "blue", "green"] + + G = nx.Graph(edgelist) + pos = {n: (n, n) for n in G.nodes} + nx.draw_networkx_edges(G, pos, ax=ax, edgelist=edgelist, edge_color=edge_colors) + + # Verify that there are three fancy arrow patches (1 per self loop) + assert len(ax.patches) == 3 + + # These are points that should be contained in the self loops. For example, + # sl_points[0] will be (1, 1.1), which is inside the "path" of the first + # self-loop but outside the others + sl_points = np.array(edgelist[-3:]) + np.array([0, 0.1]) + + # Check that the mapping between self-loop locations and their colors is + # correct + for fap, clr, slp in zip(ax.patches, edge_colors[-3:], sl_points): + assert fap.get_path().contains_point(slp) + assert mpl.colors.same_color(fap.get_edgecolor(), clr) + plt.delaxes(ax) + + +@pytest.mark.parametrize( + "fap_only_kwarg", # Non-default values for kwargs that only apply to FAPs + ( + {"arrowstyle": "-"}, + {"arrowsize": 20}, + {"connectionstyle": "arc3,rad=0.2"}, + {"min_source_margin": 10}, + {"min_target_margin": 10}, + ), +) +def test_user_warnings_for_unused_edge_drawing_kwargs(fap_only_kwarg): + """Users should get a warning when they specify a non-default value for + one of the kwargs that applies only to edges drawn with FancyArrowPatches, + but FancyArrowPatches aren't being used under the hood.""" + G = nx.path_graph(3) + pos = {n: (n, n) for n in G} + fig, ax = plt.subplots() + # By default, an undirected graph will use LineCollection to represent + # the edges + kwarg_name = list(fap_only_kwarg.keys())[0] + with pytest.warns( + UserWarning, match=f"\n\nThe {kwarg_name} keyword argument is not applicable" + ): + nx.draw_networkx_edges(G, pos, ax=ax, **fap_only_kwarg) + # FancyArrowPatches are always used when `arrows=True` is specified. + # Check that warnings are *not* raised in this case + with warnings.catch_warnings(): + # Escalate warnings -> errors so tests fail if warnings are raised + warnings.simplefilter("error") + nx.draw_networkx_edges(G, pos, ax=ax, arrows=True, **fap_only_kwarg) + + plt.delaxes(ax) diff --git a/shared/package-files/86/865ccd8591178e8e62a0fb5e1b43fce6a5ee326543f9655cebb7b4e3db6f63c4/test_exponential_integrals.py b/shared/package-files/86/865ccd8591178e8e62a0fb5e1b43fce6a5ee326543f9655cebb7b4e3db6f63c4/test_exponential_integrals.py new file mode 100644 index 0000000000000000000000000000000000000000..8332a83267e2f75dded04e80443c150c832676c8 --- /dev/null +++ b/shared/package-files/86/865ccd8591178e8e62a0fb5e1b43fce6a5ee326543f9655cebb7b4e3db6f63c4/test_exponential_integrals.py @@ -0,0 +1,118 @@ +import pytest + +import numpy as np +from numpy.testing import assert_allclose +import scipy.special as sc + + +class TestExp1: + + def test_branch_cut(self): + assert np.isnan(sc.exp1(-1)) + assert sc.exp1(complex(-1, 0)).imag == ( + -sc.exp1(complex(-1, -0.0)).imag + ) + + assert_allclose( + sc.exp1(complex(-1, 0)), + sc.exp1(-1 + 1e-20j), + atol=0, + rtol=1e-15 + ) + assert_allclose( + sc.exp1(complex(-1, -0.0)), + sc.exp1(-1 - 1e-20j), + atol=0, + rtol=1e-15 + ) + + def test_834(self): + # Regression test for #834 + a = sc.exp1(-complex(19.9999990)) + b = sc.exp1(-complex(19.9999991)) + assert_allclose(a.imag, b.imag, atol=0, rtol=1e-15) + + +class TestScaledExp1: + + @pytest.mark.parametrize('x, expected', [(0, 0), (np.inf, 1)]) + def test_limits(self, x, expected): + y = sc._ufuncs._scaled_exp1(x) + assert y == expected + + # The expected values were computed with mpmath, e.g.: + # + # from mpmath import mp + # mp.dps = 80 + # x = 1e-25 + # print(float(x*mp.exp(x)*np.expint(1, x))) + # + # prints 5.698741165994961e-24 + # + # The method used to compute _scaled_exp1 changes at x=1 + # and x=1250, so values at those inputs, and values just + # above and below them, are included in the test data. + @pytest.mark.parametrize('x, expected', + [(1e-25, 5.698741165994961e-24), + (0.1, 0.20146425447084518), + (0.9995, 0.5962509885831002), + (1.0, 0.5963473623231941), + (1.0005, 0.5964436833238044), + (2.5, 0.7588145912149602), + (10.0, 0.9156333393978808), + (100.0, 0.9901942286733019), + (500.0, 0.9980079523802055), + (1000.0, 0.9990019940238807), + (1249.5, 0.9992009578306811), + (1250.0, 0.9992012769377913), + (1250.25, 0.9992014363957858), + (2000.0, 0.9995004992514963), + (1e4, 0.9999000199940024), + (1e10, 0.9999999999), + (1e15, 0.999999999999999), + ]) + def test_scaled_exp1(self, x, expected): + y = sc._ufuncs._scaled_exp1(x) + assert_allclose(y, expected, rtol=2e-15) + + +class TestExpi: + + @pytest.mark.parametrize('result', [ + sc.expi(complex(-1, 0)), + sc.expi(complex(-1, -0.0)), + sc.expi(-1) + ]) + def test_branch_cut(self, result): + desired = -0.21938393439552027368 # Computed using Mpmath + assert_allclose(result, desired, atol=0, rtol=1e-14) + + def test_near_branch_cut(self): + lim_from_above = sc.expi(-1 + 1e-20j) + lim_from_below = sc.expi(-1 - 1e-20j) + assert_allclose( + lim_from_above.real, + lim_from_below.real, + atol=0, + rtol=1e-15 + ) + assert_allclose( + lim_from_above.imag, + -lim_from_below.imag, + atol=0, + rtol=1e-15 + ) + + def test_continuity_on_positive_real_axis(self): + assert_allclose( + sc.expi(complex(1, 0)), + sc.expi(complex(1, -0.0)), + atol=0, + rtol=1e-15 + ) + + +class TestExpn: + + def test_out_of_domain(self): + assert all(np.isnan([sc.expn(-1, 1.0), sc.expn(1, -1.0)])) diff --git a/shared/package-files/86/865f6c9e16927a62b60c73953e2a92d38a7c20f392fd0e6c9942be5f08114d09/traveling_salesman.py b/shared/package-files/86/865f6c9e16927a62b60c73953e2a92d38a7c20f392fd0e6c9942be5f08114d09/traveling_salesman.py new file mode 100644 index 0000000000000000000000000000000000000000..75f17e9835e19a46a6f87fffb521cfb6bafef6c3 --- /dev/null +++ b/shared/package-files/86/865f6c9e16927a62b60c73953e2a92d38a7c20f392fd0e6c9942be5f08114d09/traveling_salesman.py @@ -0,0 +1,1434 @@ +""" +================================= +Travelling Salesman Problem (TSP) +================================= + +Implementation of approximate algorithms +for solving and approximating the TSP problem. + +Categories of algorithms which are implemented: + +- Christofides (provides a 3/2-approximation of TSP) +- Greedy +- Simulated Annealing (SA) +- Threshold Accepting (TA) +- Asadpour Asymmetric Traveling Salesman Algorithm + +The Travelling Salesman Problem tries to find, given the weight +(distance) between all points where a salesman has to visit, the +route so that: + +- The total distance (cost) which the salesman travels is minimized. +- The salesman returns to the starting point. +- Note that for a complete graph, the salesman visits each point once. + +The function `travelling_salesman_problem` allows for incomplete +graphs by finding all-pairs shortest paths, effectively converting +the problem to a complete graph problem. It calls one of the +approximate methods on that problem and then converts the result +back to the original graph using the previously found shortest paths. + +TSP is an NP-hard problem in combinatorial optimization, +important in operations research and theoretical computer science. + +http://en.wikipedia.org/wiki/Travelling_salesman_problem +""" +import math + +import networkx as nx +from networkx.algorithms.tree.mst import random_spanning_tree +from networkx.utils import not_implemented_for, pairwise, py_random_state + +__all__ = [ + "traveling_salesman_problem", + "christofides", + "asadpour_atsp", + "greedy_tsp", + "simulated_annealing_tsp", + "threshold_accepting_tsp", +] + + +def swap_two_nodes(soln, seed): + """Swap two nodes in `soln` to give a neighbor solution. + + Parameters + ---------- + soln : list of nodes + Current cycle of nodes + + seed : integer, random_state, or None (default) + Indicator of random number generation state. + See :ref:`Randomness`. + + Returns + ------- + list + The solution after move is applied. (A neighbor solution.) + + Notes + ----- + This function assumes that the incoming list `soln` is a cycle + (that the first and last element are the same) and also that + we don't want any move to change the first node in the list + (and thus not the last node either). + + The input list is changed as well as returned. Make a copy if needed. + + See Also + -------- + move_one_node + """ + a, b = seed.sample(range(1, len(soln) - 1), k=2) + soln[a], soln[b] = soln[b], soln[a] + return soln + + +def move_one_node(soln, seed): + """Move one node to another position to give a neighbor solution. + + The node to move and the position to move to are chosen randomly. + The first and last nodes are left untouched as soln must be a cycle + starting at that node. + + Parameters + ---------- + soln : list of nodes + Current cycle of nodes + + seed : integer, random_state, or None (default) + Indicator of random number generation state. + See :ref:`Randomness`. + + Returns + ------- + list + The solution after move is applied. (A neighbor solution.) + + Notes + ----- + This function assumes that the incoming list `soln` is a cycle + (that the first and last element are the same) and also that + we don't want any move to change the first node in the list + (and thus not the last node either). + + The input list is changed as well as returned. Make a copy if needed. + + See Also + -------- + swap_two_nodes + """ + a, b = seed.sample(range(1, len(soln) - 1), k=2) + soln.insert(b, soln.pop(a)) + return soln + + +@not_implemented_for("directed") +def christofides(G, weight="weight", tree=None): + """Approximate a solution of the traveling salesman problem + + Compute a 3/2-approximation of the traveling salesman problem + in a complete undirected graph using Christofides [1]_ algorithm. + + Parameters + ---------- + G : Graph + `G` should be a complete weighted undirected graph. + The distance between all pairs of nodes should be included. + + weight : string, optional (default="weight") + Edge data key corresponding to the edge weight. + If any edge does not have this attribute the weight is set to 1. + + tree : NetworkX graph or None (default: None) + A minimum spanning tree of G. Or, if None, the minimum spanning + tree is computed using :func:`networkx.minimum_spanning_tree` + + Returns + ------- + list + List of nodes in `G` along a cycle with a 3/2-approximation of + the minimal Hamiltonian cycle. + + References + ---------- + .. [1] Christofides, Nicos. "Worst-case analysis of a new heuristic for + the travelling salesman problem." No. RR-388. Carnegie-Mellon Univ + Pittsburgh Pa Management Sciences Research Group, 1976. + """ + # Remove selfloops if necessary + loop_nodes = nx.nodes_with_selfloops(G) + try: + node = next(loop_nodes) + except StopIteration: + pass + else: + G = G.copy() + G.remove_edge(node, node) + G.remove_edges_from((n, n) for n in loop_nodes) + # Check that G is a complete graph + N = len(G) - 1 + # This check ignores selfloops which is what we want here. + if any(len(nbrdict) != N for n, nbrdict in G.adj.items()): + raise nx.NetworkXError("G must be a complete graph.") + + if tree is None: + tree = nx.minimum_spanning_tree(G, weight=weight) + L = G.copy() + L.remove_nodes_from([v for v, degree in tree.degree if not (degree % 2)]) + MG = nx.MultiGraph() + MG.add_edges_from(tree.edges) + edges = nx.min_weight_matching(L, weight=weight) + MG.add_edges_from(edges) + return _shortcutting(nx.eulerian_circuit(MG)) + + +def _shortcutting(circuit): + """Remove duplicate nodes in the path""" + nodes = [] + for u, v in circuit: + if v in nodes: + continue + if not nodes: + nodes.append(u) + nodes.append(v) + nodes.append(nodes[0]) + return nodes + + +def traveling_salesman_problem(G, weight="weight", nodes=None, cycle=True, method=None): + """Find the shortest path in `G` connecting specified nodes + + This function allows approximate solution to the traveling salesman + problem on networks that are not complete graphs and/or where the + salesman does not need to visit all nodes. + + This function proceeds in two steps. First, it creates a complete + graph using the all-pairs shortest_paths between nodes in `nodes`. + Edge weights in the new graph are the lengths of the paths + between each pair of nodes in the original graph. + Second, an algorithm (default: `christofides` for undirected and + `asadpour_atsp` for directed) is used to approximate the minimal Hamiltonian + cycle on this new graph. The available algorithms are: + + - christofides + - greedy_tsp + - simulated_annealing_tsp + - threshold_accepting_tsp + - asadpour_atsp + + Once the Hamiltonian Cycle is found, this function post-processes to + accommodate the structure of the original graph. If `cycle` is ``False``, + the biggest weight edge is removed to make a Hamiltonian path. + Then each edge on the new complete graph used for that analysis is + replaced by the shortest_path between those nodes on the original graph. + + Parameters + ---------- + G : NetworkX graph + A possibly weighted graph + + nodes : collection of nodes (default=G.nodes) + collection (list, set, etc.) of nodes to visit + + weight : string, optional (default="weight") + Edge data key corresponding to the edge weight. + If any edge does not have this attribute the weight is set to 1. + + cycle : bool (default: True) + Indicates whether a cycle should be returned, or a path. + Note: the cycle is the approximate minimal cycle. + The path simply removes the biggest edge in that cycle. + + method : function (default: None) + A function that returns a cycle on all nodes and approximates + the solution to the traveling salesman problem on a complete + graph. The returned cycle is then used to find a corresponding + solution on `G`. `method` should be callable; take inputs + `G`, and `weight`; and return a list of nodes along the cycle. + + Provided options include :func:`christofides`, :func:`greedy_tsp`, + :func:`simulated_annealing_tsp` and :func:`threshold_accepting_tsp`. + + If `method is None`: use :func:`christofides` for undirected `G` and + :func:`threshold_accepting_tsp` for directed `G`. + + To specify parameters for these provided functions, construct lambda + functions that state the specific value. `method` must have 2 inputs. + (See examples). + + Returns + ------- + list + List of nodes in `G` along a path with an approximation of the minimal + path through `nodes`. + + + Raises + ------ + NetworkXError + If `G` is a directed graph it has to be strongly connected or the + complete version cannot be generated. + + Examples + -------- + >>> tsp = nx.approximation.traveling_salesman_problem + >>> G = nx.cycle_graph(9) + >>> G[4][5]["weight"] = 5 # all other weights are 1 + >>> tsp(G, nodes=[3, 6]) + [3, 2, 1, 0, 8, 7, 6, 7, 8, 0, 1, 2, 3] + >>> path = tsp(G, cycle=False) + >>> path in ([4, 3, 2, 1, 0, 8, 7, 6, 5], [5, 6, 7, 8, 0, 1, 2, 3, 4]) + True + + Build (curry) your own function to provide parameter values to the methods. + + >>> SA_tsp = nx.approximation.simulated_annealing_tsp + >>> method = lambda G, wt: SA_tsp(G, "greedy", weight=wt, temp=500) + >>> path = tsp(G, cycle=False, method=method) + >>> path in ([4, 3, 2, 1, 0, 8, 7, 6, 5], [5, 6, 7, 8, 0, 1, 2, 3, 4]) + True + + """ + if method is None: + if G.is_directed(): + method = asadpour_atsp + else: + method = christofides + if nodes is None: + nodes = list(G.nodes) + + dist = {} + path = {} + for n, (d, p) in nx.all_pairs_dijkstra(G, weight=weight): + dist[n] = d + path[n] = p + + if G.is_directed(): + # If the graph is not strongly connected, raise an exception + if not nx.is_strongly_connected(G): + raise nx.NetworkXError("G is not strongly connected") + GG = nx.DiGraph() + else: + GG = nx.Graph() + for u in nodes: + for v in nodes: + if u == v: + continue + GG.add_edge(u, v, weight=dist[u][v]) + best_GG = method(GG, weight) + + if not cycle: + # find and remove the biggest edge + (u, v) = max(pairwise(best_GG), key=lambda x: dist[x[0]][x[1]]) + pos = best_GG.index(u) + 1 + while best_GG[pos] != v: + pos = best_GG[pos:].index(u) + 1 + best_GG = best_GG[pos:-1] + best_GG[:pos] + + best_path = [] + for u, v in pairwise(best_GG): + best_path.extend(path[u][v][:-1]) + best_path.append(v) + return best_path + + +@not_implemented_for("undirected") +@py_random_state(2) +def asadpour_atsp(G, weight="weight", seed=None, source=None): + """ + Returns an approximate solution to the traveling salesman problem. + + This approximate solution is one of the best known approximations for the + asymmetric traveling salesman problem developed by Asadpour et al, + [1]_. The algorithm first solves the Held-Karp relaxation to find a lower + bound for the weight of the cycle. Next, it constructs an exponential + distribution of undirected spanning trees where the probability of an + edge being in the tree corresponds to the weight of that edge using a + maximum entropy rounding scheme. Next we sample that distribution + $2 \\lceil \\ln n \\rceil$ times and save the minimum sampled tree once the + direction of the arcs is added back to the edges. Finally, we augment + then short circuit that graph to find the approximate tour for the + salesman. + + Parameters + ---------- + G : nx.DiGraph + The graph should be a complete weighted directed graph. The + distance between all paris of nodes should be included and the triangle + inequality should hold. That is, the direct edge between any two nodes + should be the path of least cost. + + weight : string, optional (default="weight") + Edge data key corresponding to the edge weight. + If any edge does not have this attribute the weight is set to 1. + + seed : integer, random_state, or None (default) + Indicator of random number generation state. + See :ref:`Randomness`. + + source : node label (default=`None`) + If given, return the cycle starting and ending at the given node. + + Returns + ------- + cycle : list of nodes + Returns the cycle (list of nodes) that a salesman can follow to minimize + the total weight of the trip. + + Raises + ------ + NetworkXError + If `G` is not complete or has less than two nodes, the algorithm raises + an exception. + + NetworkXError + If `source` is not `None` and is not a node in `G`, the algorithm raises + an exception. + + NetworkXNotImplemented + If `G` is an undirected graph. + + References + ---------- + .. [1] A. Asadpour, M. X. Goemans, A. Madry, S. O. Gharan, and A. Saberi, + An o(log n/log log n)-approximation algorithm for the asymmetric + traveling salesman problem, Operations research, 65 (2017), + pp. 1043–1061 + + Examples + -------- + >>> import networkx as nx + >>> import networkx.algorithms.approximation as approx + >>> G = nx.complete_graph(3, create_using=nx.DiGraph) + >>> nx.set_edge_attributes(G, {(0, 1): 2, (1, 2): 2, (2, 0): 2, (0, 2): 1, (2, 1): 1, (1, 0): 1}, "weight") + >>> tour = approx.asadpour_atsp(G,source=0) + >>> tour + [0, 2, 1, 0] + """ + from math import ceil, exp + from math import log as ln + + # Check that G is a complete graph + N = len(G) - 1 + if N < 2: + raise nx.NetworkXError("G must have at least two nodes") + # This check ignores selfloops which is what we want here. + if any(len(nbrdict) - (n in nbrdict) != N for n, nbrdict in G.adj.items()): + raise nx.NetworkXError("G is not a complete DiGraph") + # Check that the source vertex, if given, is in the graph + if source is not None and source not in G.nodes: + raise nx.NetworkXError("Given source node not in G.") + + opt_hk, z_star = held_karp_ascent(G, weight) + + # Test to see if the ascent method found an integer solution or a fractional + # solution. If it is integral then z_star is a nx.Graph, otherwise it is + # a dict + if not isinstance(z_star, dict): + # Here we are using the shortcutting method to go from the list of edges + # returned from eularian_circuit to a list of nodes + return _shortcutting(nx.eulerian_circuit(z_star, source=source)) + + # Create the undirected support of z_star + z_support = nx.MultiGraph() + for u, v in z_star: + if (u, v) not in z_support.edges: + edge_weight = min(G[u][v][weight], G[v][u][weight]) + z_support.add_edge(u, v, **{weight: edge_weight}) + + # Create the exponential distribution of spanning trees + gamma = spanning_tree_distribution(z_support, z_star) + + # Write the lambda values to the edges of z_support + z_support = nx.Graph(z_support) + lambda_dict = {(u, v): exp(gamma[(u, v)]) for u, v in z_support.edges()} + nx.set_edge_attributes(z_support, lambda_dict, "weight") + del gamma, lambda_dict + + # Sample 2 * ceil( ln(n) ) spanning trees and record the minimum one + minimum_sampled_tree = None + minimum_sampled_tree_weight = math.inf + for _ in range(2 * ceil(ln(G.number_of_nodes()))): + sampled_tree = random_spanning_tree(z_support, "weight", seed=seed) + sampled_tree_weight = sampled_tree.size(weight) + if sampled_tree_weight < minimum_sampled_tree_weight: + minimum_sampled_tree = sampled_tree.copy() + minimum_sampled_tree_weight = sampled_tree_weight + + # Orient the edges in that tree to keep the cost of the tree the same. + t_star = nx.MultiDiGraph() + for u, v, d in minimum_sampled_tree.edges(data=weight): + if d == G[u][v][weight]: + t_star.add_edge(u, v, **{weight: d}) + else: + t_star.add_edge(v, u, **{weight: d}) + + # Find the node demands needed to neutralize the flow of t_star in G + node_demands = {n: t_star.out_degree(n) - t_star.in_degree(n) for n in t_star} + nx.set_node_attributes(G, node_demands, "demand") + + # Find the min_cost_flow + flow_dict = nx.min_cost_flow(G, "demand") + + # Build the flow into t_star + for source, values in flow_dict.items(): + for target in values: + if (source, target) not in t_star.edges and values[target] > 0: + # IF values[target] > 0 we have to add that many edges + for _ in range(values[target]): + t_star.add_edge(source, target) + + # Return the shortcut eulerian circuit + circuit = nx.eulerian_circuit(t_star, source=source) + return _shortcutting(circuit) + + +def held_karp_ascent(G, weight="weight"): + """ + Minimizes the Held-Karp relaxation of the TSP for `G` + + Solves the Held-Karp relaxation of the input complete digraph and scales + the output solution for use in the Asadpour [1]_ ASTP algorithm. + + The Held-Karp relaxation defines the lower bound for solutions to the + ATSP, although it does return a fractional solution. This is used in the + Asadpour algorithm as an initial solution which is later rounded to a + integral tree within the spanning tree polytopes. This function solves + the relaxation with the branch and bound method in [2]_. + + Parameters + ---------- + G : nx.DiGraph + The graph should be a complete weighted directed graph. + The distance between all paris of nodes should be included. + + weight : string, optional (default="weight") + Edge data key corresponding to the edge weight. + If any edge does not have this attribute the weight is set to 1. + + Returns + ------- + OPT : float + The cost for the optimal solution to the Held-Karp relaxation + z : dict or nx.Graph + A symmetrized and scaled version of the optimal solution to the + Held-Karp relaxation for use in the Asadpour algorithm. + + If an integral solution is found, then that is an optimal solution for + the ATSP problem and that is returned instead. + + References + ---------- + .. [1] A. Asadpour, M. X. Goemans, A. Madry, S. O. Gharan, and A. Saberi, + An o(log n/log log n)-approximation algorithm for the asymmetric + traveling salesman problem, Operations research, 65 (2017), + pp. 1043–1061 + + .. [2] M. Held, R. M. Karp, The traveling-salesman problem and minimum + spanning trees, Operations Research, 1970-11-01, Vol. 18 (6), + pp.1138-1162 + """ + import numpy as np + from scipy import optimize + + def k_pi(): + """ + Find the set of minimum 1-Arborescences for G at point pi. + + Returns + ------- + Set + The set of minimum 1-Arborescences + """ + # Create a copy of G without vertex 1. + G_1 = G.copy() + minimum_1_arborescences = set() + minimum_1_arborescence_weight = math.inf + + # node is node '1' in the Held and Karp paper + n = next(G.__iter__()) + G_1.remove_node(n) + + # Iterate over the spanning arborescences of the graph until we know + # that we have found the minimum 1-arborescences. My proposed strategy + # is to find the most extensive root to connect to from 'node 1' and + # the least expensive one. We then iterate over arborescences until + # the cost of the basic arborescence is the cost of the minimum one + # plus the difference between the most and least expensive roots, + # that way the cost of connecting 'node 1' will by definition not by + # minimum + min_root = {"node": None, weight: math.inf} + max_root = {"node": None, weight: -math.inf} + for u, v, d in G.edges(n, data=True): + if d[weight] < min_root[weight]: + min_root = {"node": v, weight: d[weight]} + if d[weight] > max_root[weight]: + max_root = {"node": v, weight: d[weight]} + + min_in_edge = min(G.in_edges(n, data=True), key=lambda x: x[2][weight]) + min_root[weight] = min_root[weight] + min_in_edge[2][weight] + max_root[weight] = max_root[weight] + min_in_edge[2][weight] + + min_arb_weight = math.inf + for arb in nx.ArborescenceIterator(G_1): + arb_weight = arb.size(weight) + if min_arb_weight == math.inf: + min_arb_weight = arb_weight + elif arb_weight > min_arb_weight + max_root[weight] - min_root[weight]: + break + # We have to pick the root node of the arborescence for the out + # edge of the first vertex as that is the only node without an + # edge directed into it. + for N, deg in arb.in_degree: + if deg == 0: + # root found + arb.add_edge(n, N, **{weight: G[n][N][weight]}) + arb_weight += G[n][N][weight] + break + + # We can pick the minimum weight in-edge for the vertex with + # a cycle. If there are multiple edges with the same, minimum + # weight, We need to add all of them. + # + # Delete the edge (N, v) so that we cannot pick it. + edge_data = G[N][n] + G.remove_edge(N, n) + min_weight = min(G.in_edges(n, data=weight), key=lambda x: x[2])[2] + min_edges = [ + (u, v, d) for u, v, d in G.in_edges(n, data=weight) if d == min_weight + ] + for u, v, d in min_edges: + new_arb = arb.copy() + new_arb.add_edge(u, v, **{weight: d}) + new_arb_weight = arb_weight + d + # Check to see the weight of the arborescence, if it is a + # new minimum, clear all of the old potential minimum + # 1-arborescences and add this is the only one. If its + # weight is above the known minimum, do not add it. + if new_arb_weight < minimum_1_arborescence_weight: + minimum_1_arborescences.clear() + minimum_1_arborescence_weight = new_arb_weight + # We have a 1-arborescence, add it to the set + if new_arb_weight == minimum_1_arborescence_weight: + minimum_1_arborescences.add(new_arb) + G.add_edge(N, n, **edge_data) + + return minimum_1_arborescences + + def direction_of_ascent(): + """ + Find the direction of ascent at point pi. + + See [1]_ for more information. + + Returns + ------- + dict + A mapping from the nodes of the graph which represents the direction + of ascent. + + References + ---------- + .. [1] M. Held, R. M. Karp, The traveling-salesman problem and minimum + spanning trees, Operations Research, 1970-11-01, Vol. 18 (6), + pp.1138-1162 + """ + # 1. Set d equal to the zero n-vector. + d = {} + for n in G: + d[n] = 0 + del n + # 2. Find a 1-Aborescence T^k such that k is in K(pi, d). + minimum_1_arborescences = k_pi() + while True: + # Reduce K(pi) to K(pi, d) + # Find the arborescence in K(pi) which increases the lest in + # direction d + min_k_d_weight = math.inf + min_k_d = None + for arborescence in minimum_1_arborescences: + weighted_cost = 0 + for n, deg in arborescence.degree: + weighted_cost += d[n] * (deg - 2) + if weighted_cost < min_k_d_weight: + min_k_d_weight = weighted_cost + min_k_d = arborescence + + # 3. If sum of d_i * v_{i, k} is greater than zero, terminate + if min_k_d_weight > 0: + return d, min_k_d + # 4. d_i = d_i + v_{i, k} + for n, deg in min_k_d.degree: + d[n] += deg - 2 + # Check that we do not need to terminate because the direction + # of ascent does not exist. This is done with linear + # programming. + c = np.full(len(minimum_1_arborescences), -1, dtype=int) + a_eq = np.empty((len(G) + 1, len(minimum_1_arborescences)), dtype=int) + b_eq = np.zeros(len(G) + 1, dtype=int) + b_eq[len(G)] = 1 + for arb_count, arborescence in enumerate(minimum_1_arborescences): + n_count = len(G) - 1 + for n, deg in arborescence.degree: + a_eq[n_count][arb_count] = deg - 2 + n_count -= 1 + a_eq[len(G)][arb_count] = 1 + program_result = optimize.linprog(c, A_eq=a_eq, b_eq=b_eq) + # If the constants exist, then the direction of ascent doesn't + if program_result.success: + # There is no direction of ascent + return None, minimum_1_arborescences + + # 5. GO TO 2 + + def find_epsilon(k, d): + """ + Given the direction of ascent at pi, find the maximum distance we can go + in that direction. + + Parameters + ---------- + k_xy : set + The set of 1-arborescences which have the minimum rate of increase + in the direction of ascent + + d : dict + The direction of ascent + + Returns + ------- + float + The distance we can travel in direction `d` + """ + min_epsilon = math.inf + for e_u, e_v, e_w in G.edges(data=weight): + if (e_u, e_v) in k.edges: + continue + # Now, I have found a condition which MUST be true for the edges to + # be a valid substitute. The edge in the graph which is the + # substitute is the one with the same terminated end. This can be + # checked rather simply. + # + # Find the edge within k which is the substitute. Because k is a + # 1-arborescence, we know that they is only one such edges + # leading into every vertex. + if len(k.in_edges(e_v, data=weight)) > 1: + raise Exception + sub_u, sub_v, sub_w = next(k.in_edges(e_v, data=weight).__iter__()) + k.add_edge(e_u, e_v, **{weight: e_w}) + k.remove_edge(sub_u, sub_v) + if ( + max(d for n, d in k.in_degree()) <= 1 + and len(G) == k.number_of_edges() + and nx.is_weakly_connected(k) + ): + # Ascent method calculation + if d[sub_u] == d[e_u] or sub_w == e_w: + # Revert to the original graph + k.remove_edge(e_u, e_v) + k.add_edge(sub_u, sub_v, **{weight: sub_w}) + continue + epsilon = (sub_w - e_w) / (d[e_u] - d[sub_u]) + if 0 < epsilon < min_epsilon: + min_epsilon = epsilon + # Revert to the original graph + k.remove_edge(e_u, e_v) + k.add_edge(sub_u, sub_v, **{weight: sub_w}) + + return min_epsilon + + # I have to know that the elements in pi correspond to the correct elements + # in the direction of ascent, even if the node labels are not integers. + # Thus, I will use dictionaries to made that mapping. + pi_dict = {} + for n in G: + pi_dict[n] = 0 + del n + original_edge_weights = {} + for u, v, d in G.edges(data=True): + original_edge_weights[(u, v)] = d[weight] + dir_ascent, k_d = direction_of_ascent() + while dir_ascent is not None: + max_distance = find_epsilon(k_d, dir_ascent) + for n, v in dir_ascent.items(): + pi_dict[n] += max_distance * v + for u, v, d in G.edges(data=True): + d[weight] = original_edge_weights[(u, v)] + pi_dict[u] + dir_ascent, k_d = direction_of_ascent() + # k_d is no longer an individual 1-arborescence but rather a set of + # minimal 1-arborescences at the maximum point of the polytope and should + # be reflected as such + k_max = k_d + + # Search for a cycle within k_max. If a cycle exists, return it as the + # solution + for k in k_max: + if len([n for n in k if k.degree(n) == 2]) == G.order(): + # Tour found + return k.size(weight), k + + # Write the original edge weights back to G and every member of k_max at + # the maximum point. Also average the number of times that edge appears in + # the set of minimal 1-arborescences. + x_star = {} + size_k_max = len(k_max) + for u, v, d in G.edges(data=True): + edge_count = 0 + d[weight] = original_edge_weights[(u, v)] + for k in k_max: + if (u, v) in k.edges(): + edge_count += 1 + k[u][v][weight] = original_edge_weights[(u, v)] + x_star[(u, v)] = edge_count / size_k_max + # Now symmetrize the edges in x_star and scale them according to (5) in + # reference [1] + z_star = {} + scale_factor = (G.order() - 1) / G.order() + for u, v in x_star: + frequency = x_star[(u, v)] + x_star[(v, u)] + if frequency > 0: + z_star[(u, v)] = scale_factor * frequency + del x_star + # Return the optimal weight and the z dict + return next(k_max.__iter__()).size(weight), z_star + + +def spanning_tree_distribution(G, z): + """ + Find the asadpour exponential distribution of spanning trees. + + Solves the Maximum Entropy Convex Program in the Asadpour algorithm [1]_ + using the approach in section 7 to build an exponential distribution of + undirected spanning trees. + + This algorithm ensures that the probability of any edge in a spanning + tree is proportional to the sum of the probabilities of the tress + containing that edge over the sum of the probabilities of all spanning + trees of the graph. + + Parameters + ---------- + G : nx.MultiGraph + The undirected support graph for the Held Karp relaxation + + z : dict + The output of `held_karp_ascent()`, a scaled version of the Held-Karp + solution. + + Returns + ------- + gamma : dict + The probability distribution which approximately preserves the marginal + probabilities of `z`. + """ + from math import exp + from math import log as ln + + def q(e): + """ + The value of q(e) is described in the Asadpour paper is "the + probability that edge e will be included in a spanning tree T that is + chosen with probability proportional to exp(gamma(T))" which + basically means that it is the total probability of the edge appearing + across the whole distribution. + + Parameters + ---------- + e : tuple + The `(u, v)` tuple describing the edge we are interested in + + Returns + ------- + float + The probability that a spanning tree chosen according to the + current values of gamma will include edge `e`. + """ + # Create the laplacian matrices + for u, v, d in G.edges(data=True): + d[lambda_key] = exp(gamma[(u, v)]) + G_Kirchhoff = nx.total_spanning_tree_weight(G, lambda_key) + G_e = nx.contracted_edge(G, e, self_loops=False) + G_e_Kirchhoff = nx.total_spanning_tree_weight(G_e, lambda_key) + + # Multiply by the weight of the contracted edge since it is not included + # in the total weight of the contracted graph. + return exp(gamma[(e[0], e[1])]) * G_e_Kirchhoff / G_Kirchhoff + + # initialize gamma to the zero dict + gamma = {} + for u, v, _ in G.edges: + gamma[(u, v)] = 0 + + # set epsilon + EPSILON = 0.2 + + # pick an edge attribute name that is unlikely to be in the graph + lambda_key = "spanning_tree_distribution's secret attribute name for lambda" + + while True: + # We need to know that know that no values of q_e are greater than + # (1 + epsilon) * z_e, however changing one gamma value can increase the + # value of a different q_e, so we have to complete the for loop without + # changing anything for the condition to be meet + in_range_count = 0 + # Search for an edge with q_e > (1 + epsilon) * z_e + for u, v in gamma: + e = (u, v) + q_e = q(e) + z_e = z[e] + if q_e > (1 + EPSILON) * z_e: + delta = ln( + (q_e * (1 - (1 + EPSILON / 2) * z_e)) + / ((1 - q_e) * (1 + EPSILON / 2) * z_e) + ) + gamma[e] -= delta + # Check that delta had the desired effect + new_q_e = q(e) + desired_q_e = (1 + EPSILON / 2) * z_e + if round(new_q_e, 8) != round(desired_q_e, 8): + raise nx.NetworkXError( + f"Unable to modify probability for edge ({u}, {v})" + ) + else: + in_range_count += 1 + # Check if the for loop terminated without changing any gamma + if in_range_count == len(gamma): + break + + # Remove the new edge attributes + for _, _, d in G.edges(data=True): + if lambda_key in d: + del d[lambda_key] + + return gamma + + +def greedy_tsp(G, weight="weight", source=None): + """Return a low cost cycle starting at `source` and its cost. + + This approximates a solution to the traveling salesman problem. + It finds a cycle of all the nodes that a salesman can visit in order + to visit many nodes while minimizing total distance. + It uses a simple greedy algorithm. + In essence, this function returns a large cycle given a source point + for which the total cost of the cycle is minimized. + + Parameters + ---------- + G : Graph + The Graph should be a complete weighted undirected graph. + The distance between all pairs of nodes should be included. + + weight : string, optional (default="weight") + Edge data key corresponding to the edge weight. + If any edge does not have this attribute the weight is set to 1. + + source : node, optional (default: first node in list(G)) + Starting node. If None, defaults to ``next(iter(G))`` + + Returns + ------- + cycle : list of nodes + Returns the cycle (list of nodes) that a salesman + can follow to minimize total weight of the trip. + + Raises + ------ + NetworkXError + If `G` is not complete, the algorithm raises an exception. + + Examples + -------- + >>> from networkx.algorithms import approximation as approx + >>> G = nx.DiGraph() + >>> G.add_weighted_edges_from({ + ... ("A", "B", 3), ("A", "C", 17), ("A", "D", 14), ("B", "A", 3), + ... ("B", "C", 12), ("B", "D", 16), ("C", "A", 13),("C", "B", 12), + ... ("C", "D", 4), ("D", "A", 14), ("D", "B", 15), ("D", "C", 2) + ... }) + >>> cycle = approx.greedy_tsp(G, source="D") + >>> cost = sum(G[n][nbr]["weight"] for n, nbr in nx.utils.pairwise(cycle)) + >>> cycle + ['D', 'C', 'B', 'A', 'D'] + >>> cost + 31 + + Notes + ----- + This implementation of a greedy algorithm is based on the following: + + - The algorithm adds a node to the solution at every iteration. + - The algorithm selects a node not already in the cycle whose connection + to the previous node adds the least cost to the cycle. + + A greedy algorithm does not always give the best solution. + However, it can construct a first feasible solution which can + be passed as a parameter to an iterative improvement algorithm such + as Simulated Annealing, or Threshold Accepting. + + Time complexity: It has a running time $O(|V|^2)$ + """ + # Check that G is a complete graph + N = len(G) - 1 + # This check ignores selfloops which is what we want here. + if any(len(nbrdict) - (n in nbrdict) != N for n, nbrdict in G.adj.items()): + raise nx.NetworkXError("G must be a complete graph.") + + if source is None: + source = nx.utils.arbitrary_element(G) + + if G.number_of_nodes() == 2: + neighbor = next(G.neighbors(source)) + return [source, neighbor, source] + + nodeset = set(G) + nodeset.remove(source) + cycle = [source] + next_node = source + while nodeset: + nbrdict = G[next_node] + next_node = min(nodeset, key=lambda n: nbrdict[n].get(weight, 1)) + cycle.append(next_node) + nodeset.remove(next_node) + cycle.append(cycle[0]) + return cycle + + +@py_random_state(9) +def simulated_annealing_tsp( + G, + init_cycle, + weight="weight", + source=None, + temp=100, + move="1-1", + max_iterations=10, + N_inner=100, + alpha=0.01, + seed=None, +): + """Returns an approximate solution to the traveling salesman problem. + + This function uses simulated annealing to approximate the minimal cost + cycle through the nodes. Starting from a suboptimal solution, simulated + annealing perturbs that solution, occasionally accepting changes that make + the solution worse to escape from a locally optimal solution. The chance + of accepting such changes decreases over the iterations to encourage + an optimal result. In summary, the function returns a cycle starting + at `source` for which the total cost is minimized. It also returns the cost. + + The chance of accepting a proposed change is related to a parameter called + the temperature (annealing has a physical analogue of steel hardening + as it cools). As the temperature is reduced, the chance of moves that + increase cost goes down. + + Parameters + ---------- + G : Graph + `G` should be a complete weighted undirected graph. + The distance between all pairs of nodes should be included. + + init_cycle : list of all nodes or "greedy" + The initial solution (a cycle through all nodes returning to the start). + This argument has no default to make you think about it. + If "greedy", use `greedy_tsp(G, weight)`. + Other common starting cycles are `list(G) + [next(iter(G))]` or the final + result of `simulated_annealing_tsp` when doing `threshold_accepting_tsp`. + + weight : string, optional (default="weight") + Edge data key corresponding to the edge weight. + If any edge does not have this attribute the weight is set to 1. + + source : node, optional (default: first node in list(G)) + Starting node. If None, defaults to ``next(iter(G))`` + + temp : int, optional (default=100) + The algorithm's temperature parameter. It represents the initial + value of temperature + + move : "1-1" or "1-0" or function, optional (default="1-1") + Indicator of what move to use when finding new trial solutions. + Strings indicate two special built-in moves: + + - "1-1": 1-1 exchange which transposes the position + of two elements of the current solution. + The function called is :func:`swap_two_nodes`. + For example if we apply 1-1 exchange in the solution + ``A = [3, 2, 1, 4, 3]`` + we can get the following by the transposition of 1 and 4 elements: + ``A' = [3, 2, 4, 1, 3]`` + - "1-0": 1-0 exchange which moves an node in the solution + to a new position. + The function called is :func:`move_one_node`. + For example if we apply 1-0 exchange in the solution + ``A = [3, 2, 1, 4, 3]`` + we can transfer the fourth element to the second position: + ``A' = [3, 4, 2, 1, 3]`` + + You may provide your own functions to enact a move from + one solution to a neighbor solution. The function must take + the solution as input along with a `seed` input to control + random number generation (see the `seed` input here). + Your function should maintain the solution as a cycle with + equal first and last node and all others appearing once. + Your function should return the new solution. + + max_iterations : int, optional (default=10) + Declared done when this number of consecutive iterations of + the outer loop occurs without any change in the best cost solution. + + N_inner : int, optional (default=100) + The number of iterations of the inner loop. + + alpha : float between (0, 1), optional (default=0.01) + Percentage of temperature decrease in each iteration + of outer loop + + seed : integer, random_state, or None (default) + Indicator of random number generation state. + See :ref:`Randomness`. + + Returns + ------- + cycle : list of nodes + Returns the cycle (list of nodes) that a salesman + can follow to minimize total weight of the trip. + + Raises + ------ + NetworkXError + If `G` is not complete the algorithm raises an exception. + + Examples + -------- + >>> from networkx.algorithms import approximation as approx + >>> G = nx.DiGraph() + >>> G.add_weighted_edges_from({ + ... ("A", "B", 3), ("A", "C", 17), ("A", "D", 14), ("B", "A", 3), + ... ("B", "C", 12), ("B", "D", 16), ("C", "A", 13),("C", "B", 12), + ... ("C", "D", 4), ("D", "A", 14), ("D", "B", 15), ("D", "C", 2) + ... }) + >>> cycle = approx.simulated_annealing_tsp(G, "greedy", source="D") + >>> cost = sum(G[n][nbr]["weight"] for n, nbr in nx.utils.pairwise(cycle)) + >>> cycle + ['D', 'C', 'B', 'A', 'D'] + >>> cost + 31 + >>> incycle = ["D", "B", "A", "C", "D"] + >>> cycle = approx.simulated_annealing_tsp(G, incycle, source="D") + >>> cost = sum(G[n][nbr]["weight"] for n, nbr in nx.utils.pairwise(cycle)) + >>> cycle + ['D', 'C', 'B', 'A', 'D'] + >>> cost + 31 + + Notes + ----- + Simulated Annealing is a metaheuristic local search algorithm. + The main characteristic of this algorithm is that it accepts + even solutions which lead to the increase of the cost in order + to escape from low quality local optimal solutions. + + This algorithm needs an initial solution. If not provided, it is + constructed by a simple greedy algorithm. At every iteration, the + algorithm selects thoughtfully a neighbor solution. + Consider $c(x)$ cost of current solution and $c(x')$ cost of a + neighbor solution. + If $c(x') - c(x) <= 0$ then the neighbor solution becomes the current + solution for the next iteration. Otherwise, the algorithm accepts + the neighbor solution with probability $p = exp - ([c(x') - c(x)] / temp)$. + Otherwise the current solution is retained. + + `temp` is a parameter of the algorithm and represents temperature. + + Time complexity: + For $N_i$ iterations of the inner loop and $N_o$ iterations of the + outer loop, this algorithm has running time $O(N_i * N_o * |V|)$. + + For more information and how the algorithm is inspired see: + http://en.wikipedia.org/wiki/Simulated_annealing + """ + if move == "1-1": + move = swap_two_nodes + elif move == "1-0": + move = move_one_node + if init_cycle == "greedy": + # Construct an initial solution using a greedy algorithm. + cycle = greedy_tsp(G, weight=weight, source=source) + if G.number_of_nodes() == 2: + return cycle + + else: + cycle = list(init_cycle) + if source is None: + source = cycle[0] + elif source != cycle[0]: + raise nx.NetworkXError("source must be first node in init_cycle") + if cycle[0] != cycle[-1]: + raise nx.NetworkXError("init_cycle must be a cycle. (return to start)") + + if len(cycle) - 1 != len(G) or len(set(G.nbunch_iter(cycle))) != len(G): + raise nx.NetworkXError("init_cycle should be a cycle over all nodes in G.") + + # Check that G is a complete graph + N = len(G) - 1 + # This check ignores selfloops which is what we want here. + if any(len(nbrdict) - (n in nbrdict) != N for n, nbrdict in G.adj.items()): + raise nx.NetworkXError("G must be a complete graph.") + + if G.number_of_nodes() == 2: + neighbor = next(G.neighbors(source)) + return [source, neighbor, source] + + # Find the cost of initial solution + cost = sum(G[u][v].get(weight, 1) for u, v in pairwise(cycle)) + + count = 0 + best_cycle = cycle.copy() + best_cost = cost + while count <= max_iterations and temp > 0: + count += 1 + for i in range(N_inner): + adj_sol = move(cycle, seed) + adj_cost = sum(G[u][v].get(weight, 1) for u, v in pairwise(adj_sol)) + delta = adj_cost - cost + if delta <= 0: + # Set current solution the adjacent solution. + cycle = adj_sol + cost = adj_cost + + if cost < best_cost: + count = 0 + best_cycle = cycle.copy() + best_cost = cost + else: + # Accept even a worse solution with probability p. + p = math.exp(-delta / temp) + if p >= seed.random(): + cycle = adj_sol + cost = adj_cost + temp -= temp * alpha + + return best_cycle + + +@py_random_state(9) +def threshold_accepting_tsp( + G, + init_cycle, + weight="weight", + source=None, + threshold=1, + move="1-1", + max_iterations=10, + N_inner=100, + alpha=0.1, + seed=None, +): + """Returns an approximate solution to the traveling salesman problem. + + This function uses threshold accepting methods to approximate the minimal cost + cycle through the nodes. Starting from a suboptimal solution, threshold + accepting methods perturb that solution, accepting any changes that make + the solution no worse than increasing by a threshold amount. Improvements + in cost are accepted, but so are changes leading to small increases in cost. + This allows the solution to leave suboptimal local minima in solution space. + The threshold is decreased slowly as iterations proceed helping to ensure + an optimum. In summary, the function returns a cycle starting at `source` + for which the total cost is minimized. + + Parameters + ---------- + G : Graph + `G` should be a complete weighted undirected graph. + The distance between all pairs of nodes should be included. + + init_cycle : list or "greedy" + The initial solution (a cycle through all nodes returning to the start). + This argument has no default to make you think about it. + If "greedy", use `greedy_tsp(G, weight)`. + Other common starting cycles are `list(G) + [next(iter(G))]` or the final + result of `simulated_annealing_tsp` when doing `threshold_accepting_tsp`. + + weight : string, optional (default="weight") + Edge data key corresponding to the edge weight. + If any edge does not have this attribute the weight is set to 1. + + source : node, optional (default: first node in list(G)) + Starting node. If None, defaults to ``next(iter(G))`` + + threshold : int, optional (default=1) + The algorithm's threshold parameter. It represents the initial + threshold's value + + move : "1-1" or "1-0" or function, optional (default="1-1") + Indicator of what move to use when finding new trial solutions. + Strings indicate two special built-in moves: + + - "1-1": 1-1 exchange which transposes the position + of two elements of the current solution. + The function called is :func:`swap_two_nodes`. + For example if we apply 1-1 exchange in the solution + ``A = [3, 2, 1, 4, 3]`` + we can get the following by the transposition of 1 and 4 elements: + ``A' = [3, 2, 4, 1, 3]`` + - "1-0": 1-0 exchange which moves an node in the solution + to a new position. + The function called is :func:`move_one_node`. + For example if we apply 1-0 exchange in the solution + ``A = [3, 2, 1, 4, 3]`` + we can transfer the fourth element to the second position: + ``A' = [3, 4, 2, 1, 3]`` + + You may provide your own functions to enact a move from + one solution to a neighbor solution. The function must take + the solution as input along with a `seed` input to control + random number generation (see the `seed` input here). + Your function should maintain the solution as a cycle with + equal first and last node and all others appearing once. + Your function should return the new solution. + + max_iterations : int, optional (default=10) + Declared done when this number of consecutive iterations of + the outer loop occurs without any change in the best cost solution. + + N_inner : int, optional (default=100) + The number of iterations of the inner loop. + + alpha : float between (0, 1), optional (default=0.1) + Percentage of threshold decrease when there is at + least one acceptance of a neighbor solution. + If no inner loop moves are accepted the threshold remains unchanged. + + seed : integer, random_state, or None (default) + Indicator of random number generation state. + See :ref:`Randomness`. + + Returns + ------- + cycle : list of nodes + Returns the cycle (list of nodes) that a salesman + can follow to minimize total weight of the trip. + + Raises + ------ + NetworkXError + If `G` is not complete the algorithm raises an exception. + + Examples + -------- + >>> from networkx.algorithms import approximation as approx + >>> G = nx.DiGraph() + >>> G.add_weighted_edges_from({ + ... ("A", "B", 3), ("A", "C", 17), ("A", "D", 14), ("B", "A", 3), + ... ("B", "C", 12), ("B", "D", 16), ("C", "A", 13),("C", "B", 12), + ... ("C", "D", 4), ("D", "A", 14), ("D", "B", 15), ("D", "C", 2) + ... }) + >>> cycle = approx.threshold_accepting_tsp(G, "greedy", source="D") + >>> cost = sum(G[n][nbr]["weight"] for n, nbr in nx.utils.pairwise(cycle)) + >>> cycle + ['D', 'C', 'B', 'A', 'D'] + >>> cost + 31 + >>> incycle = ["D", "B", "A", "C", "D"] + >>> cycle = approx.threshold_accepting_tsp(G, incycle, source="D") + >>> cost = sum(G[n][nbr]["weight"] for n, nbr in nx.utils.pairwise(cycle)) + >>> cycle + ['D', 'C', 'B', 'A', 'D'] + >>> cost + 31 + + Notes + ----- + Threshold Accepting is a metaheuristic local search algorithm. + The main characteristic of this algorithm is that it accepts + even solutions which lead to the increase of the cost in order + to escape from low quality local optimal solutions. + + This algorithm needs an initial solution. This solution can be + constructed by a simple greedy algorithm. At every iteration, it + selects thoughtfully a neighbor solution. + Consider $c(x)$ cost of current solution and $c(x')$ cost of + neighbor solution. + If $c(x') - c(x) <= threshold$ then the neighbor solution becomes the current + solution for the next iteration, where the threshold is named threshold. + + In comparison to the Simulated Annealing algorithm, the Threshold + Accepting algorithm does not accept very low quality solutions + (due to the presence of the threshold value). In the case of + Simulated Annealing, even a very low quality solution can + be accepted with probability $p$. + + Time complexity: + It has a running time $O(m * n * |V|)$ where $m$ and $n$ are the number + of times the outer and inner loop run respectively. + + For more information and how algorithm is inspired see: + https://doi.org/10.1016/0021-9991(90)90201-B + + See Also + -------- + simulated_annealing_tsp + + """ + if move == "1-1": + move = swap_two_nodes + elif move == "1-0": + move = move_one_node + if init_cycle == "greedy": + # Construct an initial solution using a greedy algorithm. + cycle = greedy_tsp(G, weight=weight, source=source) + if G.number_of_nodes() == 2: + return cycle + + else: + cycle = list(init_cycle) + if source is None: + source = cycle[0] + elif source != cycle[0]: + raise nx.NetworkXError("source must be first node in init_cycle") + if cycle[0] != cycle[-1]: + raise nx.NetworkXError("init_cycle must be a cycle. (return to start)") + + if len(cycle) - 1 != len(G) or len(set(G.nbunch_iter(cycle))) != len(G): + raise nx.NetworkXError("init_cycle is not all and only nodes.") + + # Check that G is a complete graph + N = len(G) - 1 + # This check ignores selfloops which is what we want here. + if any(len(nbrdict) - (n in nbrdict) != N for n, nbrdict in G.adj.items()): + raise nx.NetworkXError("G must be a complete graph.") + + if G.number_of_nodes() == 2: + neighbor = list(G.neighbors(source))[0] + return [source, neighbor, source] + + # Find the cost of initial solution + cost = sum(G[u][v].get(weight, 1) for u, v in pairwise(cycle)) + + count = 0 + best_cycle = cycle.copy() + best_cost = cost + while count <= max_iterations: + count += 1 + accepted = False + for i in range(N_inner): + adj_sol = move(cycle, seed) + adj_cost = sum(G[u][v].get(weight, 1) for u, v in pairwise(adj_sol)) + delta = adj_cost - cost + if delta <= threshold: + accepted = True + + # Set current solution the adjacent solution. + cycle = adj_sol + cost = adj_cost + + if cost < best_cost: + count = 0 + best_cycle = cycle.copy() + best_cost = cost + if accepted: + threshold -= threshold * alpha + + return best_cycle diff --git a/shared/package-files/86/8662672b1e251b9f8f5c8988f8401549e3b86fae42ae17373388e19846b15358/cummin_native.h b/shared/package-files/86/8662672b1e251b9f8f5c8988f8401549e3b86fae42ae17373388e19846b15358/cummin_native.h new file mode 100644 index 0000000000000000000000000000000000000000..519d4ddb5b9fcba990f0c224835c9d68f04a07b3 --- /dev/null +++ b/shared/package-files/86/8662672b1e251b9f8f5c8988f8401549e3b86fae42ae17373388e19846b15358/cummin_native.h @@ -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 cummin(const at::Tensor & self, int64_t dim); +TORCH_API ::std::tuple cummin_out(const at::Tensor & self, int64_t dim, at::Tensor & values, at::Tensor & indices); +TORCH_API ::std::tuple cummin(const at::Tensor & self, at::Dimname dim); +TORCH_API ::std::tuple cummin_out(const at::Tensor & self, at::Dimname dim, at::Tensor & values, at::Tensor & indices); +} // namespace native +} // namespace at diff --git a/shared/package-files/86/8664efec4321811f30b00c36e3012415ddcbc982acb3b922f953fd9840f4b7cc/etree.py b/shared/package-files/86/8664efec4321811f30b00c36e3012415ddcbc982acb3b922f953fd9840f4b7cc/etree.py new file mode 100644 index 0000000000000000000000000000000000000000..a2b9c791aa2349acbecafddca84c61ac33fdbaff --- /dev/null +++ b/shared/package-files/86/8664efec4321811f30b00c36e3012415ddcbc982acb3b922f953fd9840f4b7cc/etree.py @@ -0,0 +1,473 @@ +"""Shim module exporting the same ElementTree API for lxml and +xml.etree backends. + +When lxml is installed, it is automatically preferred over the built-in +xml.etree module. +On Python 2.7, the cElementTree module is preferred over the pure-python +ElementTree module. + +Besides exporting a unified interface, this also defines extra functions +or subclasses built-in ElementTree classes to add features that are +only availble in lxml, like OrderedDict for attributes, pretty_print and +iterwalk. +""" + +from fontTools.misc.textTools import tostr + +XML_DECLARATION = """""" + +__all__ = [ + # public symbols + "Comment", + "dump", + "Element", + "ElementTree", + "fromstring", + "fromstringlist", + "iselement", + "iterparse", + "parse", + "ParseError", + "PI", + "ProcessingInstruction", + "QName", + "SubElement", + "tostring", + "tostringlist", + "TreeBuilder", + "XML", + "XMLParser", + "register_namespace", +] + +try: + from lxml.etree import * + from lxml.etree import LXML_VERSION + + _have_lxml = True + + if LXML_VERSION < (5, 0): + # Until lxml 5.0, 'resolve_entities' defaulted to True, so an untrusted + # document declaring an external entity could pull in local files. 5.0+ + # defaults to "internal" (external refused, internal still expanded), so + # the bare lxml XMLParser is already safe there and we only override on + # older lxml. False is the closest older lxml offers; it also stops + # internal entities, but that errs on the safe side. + _XMLParser = XMLParser + + class XMLParser(_XMLParser): + """XMLParser subclass that doesn't resolve external entities.""" + + def __init__(self, *args, **kwargs): + kwargs.setdefault("resolve_entities", False) + super(XMLParser, self).__init__(*args, **kwargs) + +except ImportError: + try: + from xml.etree.cElementTree import * + + # the cElementTree version of XML function doesn't support + # the optional 'parser' keyword argument + from xml.etree.ElementTree import XML + except ImportError: # pragma: no cover + from xml.etree.ElementTree import * + _have_lxml = False + + _Attrib = dict + + if isinstance(Element, type): + _Element = Element + else: + # in py27, cElementTree.Element cannot be subclassed, so + # we need to import the pure-python class + from xml.etree.ElementTree import Element as _Element + + class Element(_Element): + """Element subclass that keeps the order of attributes.""" + + def __init__(self, tag, attrib=_Attrib(), **extra): + super(Element, self).__init__(tag) + self.attrib = _Attrib() + if attrib: + self.attrib.update(attrib) + if extra: + self.attrib.update(extra) + + def SubElement(parent, tag, attrib=_Attrib(), **extra): + """Must override SubElement as well otherwise _elementtree.SubElement + fails if 'parent' is a subclass of Element object. + """ + element = parent.__class__(tag, attrib, **extra) + parent.append(element) + return element + + def _iterwalk(element, events, tag): + include = tag is None or element.tag == tag + if include and "start" in events: + yield ("start", element) + for e in element: + for item in _iterwalk(e, events, tag): + yield item + if include: + yield ("end", element) + + def iterwalk(element_or_tree, events=("end",), tag=None): + """A tree walker that generates events from an existing tree as + if it was parsing XML data with iterparse(). + Drop-in replacement for lxml.etree.iterwalk. + """ + if iselement(element_or_tree): + element = element_or_tree + else: + element = element_or_tree.getroot() + if tag == "*": + tag = None + for item in _iterwalk(element, events, tag): + yield item + + _ElementTree = ElementTree + + class ElementTree(_ElementTree): + """ElementTree subclass that adds 'pretty_print' and 'doctype' + arguments to the 'write' method. + Currently these are only supported for the default XML serialization + 'method', and not also for "html" or "text", for these are delegated + to the base class. + """ + + def write( + self, + file_or_filename, + encoding=None, + xml_declaration=False, + method=None, + doctype=None, + pretty_print=False, + ): + if method and method != "xml": + # delegate to super-class + super(ElementTree, self).write( + file_or_filename, + encoding=encoding, + xml_declaration=xml_declaration, + method=method, + ) + return + + if encoding is not None and encoding.lower() == "unicode": + if xml_declaration: + raise ValueError( + "Serialisation to unicode must not request an XML declaration" + ) + write_declaration = False + encoding = "unicode" + elif xml_declaration is None: + # by default, write an XML declaration only for non-standard encodings + write_declaration = encoding is not None and encoding.upper() not in ( + "ASCII", + "UTF-8", + "UTF8", + "US-ASCII", + ) + else: + write_declaration = xml_declaration + + if encoding is None: + encoding = "ASCII" + + if pretty_print: + # NOTE this will modify the tree in-place + _indent(self._root) + + with _get_writer(file_or_filename, encoding) as write: + if write_declaration: + write(XML_DECLARATION % encoding.upper()) + if pretty_print: + write("\n") + if doctype: + write(_tounicode(doctype)) + if pretty_print: + write("\n") + + qnames, namespaces = _namespaces(self._root) + _serialize_xml(write, self._root, qnames, namespaces) + + import io + + def tostring( + element, + encoding=None, + xml_declaration=None, + method=None, + doctype=None, + pretty_print=False, + ): + """Custom 'tostring' function that uses our ElementTree subclass, with + pretty_print support. + """ + stream = io.StringIO() if encoding == "unicode" else io.BytesIO() + ElementTree(element).write( + stream, + encoding=encoding, + xml_declaration=xml_declaration, + method=method, + doctype=doctype, + pretty_print=pretty_print, + ) + return stream.getvalue() + + # serialization support + + import re + + # Valid XML strings can include any Unicode character, excluding control + # characters, the surrogate blocks, FFFE, and FFFF: + # Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF] + # Here we reversed the pattern to match only the invalid characters. + _invalid_xml_string = re.compile( + "[\u0000-\u0008\u000b-\u000c\u000e-\u001f\ud800-\udfff\ufffe-\uffff]" + ) + + def _tounicode(s): + """Test if a string is valid user input and decode it to unicode string + using ASCII encoding if it's a bytes string. + Reject all bytes/unicode input that contains non-XML characters. + Reject all bytes input that contains non-ASCII characters. + """ + try: + s = tostr(s, encoding="ascii", errors="strict") + except UnicodeDecodeError: + raise ValueError( + "Bytes strings can only contain ASCII characters. " + "Use unicode strings for non-ASCII characters." + ) + except AttributeError: + _raise_serialization_error(s) + if s and _invalid_xml_string.search(s): + raise ValueError( + "All strings must be XML compatible: Unicode or ASCII, " + "no NULL bytes or control characters" + ) + return s + + import contextlib + + @contextlib.contextmanager + def _get_writer(file_or_filename, encoding): + # returns text write method and release all resources after using + try: + write = file_or_filename.write + except AttributeError: + # file_or_filename is a file name + f = open( + file_or_filename, + "w", + encoding="utf-8" if encoding == "unicode" else encoding, + errors="xmlcharrefreplace", + ) + with f: + yield f.write + else: + # file_or_filename is a file-like object + # encoding determines if it is a text or binary writer + if encoding == "unicode": + # use a text writer as is + yield write + else: + # wrap a binary writer with TextIOWrapper + detach_buffer = False + if isinstance(file_or_filename, io.BufferedIOBase): + buf = file_or_filename + elif isinstance(file_or_filename, io.RawIOBase): + buf = io.BufferedWriter(file_or_filename) + detach_buffer = True + else: + # This is to handle passed objects that aren't in the + # IOBase hierarchy, but just have a write method + buf = io.BufferedIOBase() + buf.writable = lambda: True + buf.write = write + try: + # TextIOWrapper uses this methods to determine + # if BOM (for UTF-16, etc) should be added + buf.seekable = file_or_filename.seekable + buf.tell = file_or_filename.tell + except AttributeError: + pass + wrapper = io.TextIOWrapper( + buf, + encoding=encoding, + errors="xmlcharrefreplace", + newline="\n", + ) + try: + yield wrapper.write + finally: + # Keep the original file open when the TextIOWrapper and + # the BufferedWriter are destroyed + wrapper.detach() + if detach_buffer: + buf.detach() + + from xml.etree.ElementTree import _namespace_map + + def _namespaces(elem): + # identify namespaces used in this tree + + # maps qnames to *encoded* prefix:local names + qnames = {None: None} + + # maps uri:s to prefixes + namespaces = {} + + def add_qname(qname): + # calculate serialized qname representation + try: + qname = _tounicode(qname) + if qname[:1] == "{": + uri, tag = qname[1:].rsplit("}", 1) + prefix = namespaces.get(uri) + if prefix is None: + prefix = _namespace_map.get(uri) + if prefix is None: + prefix = "ns%d" % len(namespaces) + else: + prefix = _tounicode(prefix) + if prefix != "xml": + namespaces[uri] = prefix + if prefix: + qnames[qname] = "%s:%s" % (prefix, tag) + else: + qnames[qname] = tag # default element + else: + qnames[qname] = qname + except TypeError: + _raise_serialization_error(qname) + + # populate qname and namespaces table + for elem in elem.iter(): + tag = elem.tag + if isinstance(tag, QName): + if tag.text not in qnames: + add_qname(tag.text) + elif isinstance(tag, str): + if tag not in qnames: + add_qname(tag) + elif tag is not None and tag is not Comment and tag is not PI: + _raise_serialization_error(tag) + for key, value in elem.items(): + if isinstance(key, QName): + key = key.text + if key not in qnames: + add_qname(key) + if isinstance(value, QName) and value.text not in qnames: + add_qname(value.text) + text = elem.text + if isinstance(text, QName) and text.text not in qnames: + add_qname(text.text) + return qnames, namespaces + + def _serialize_xml(write, elem, qnames, namespaces, **kwargs): + tag = elem.tag + text = elem.text + if tag is Comment: + write("" % _tounicode(text)) + elif tag is ProcessingInstruction: + write("" % _tounicode(text)) + else: + tag = qnames[_tounicode(tag) if tag is not None else None] + if tag is None: + if text: + write(_escape_cdata(text)) + for e in elem: + _serialize_xml(write, e, qnames, None) + else: + write("<" + tag) + if namespaces: + for uri, prefix in sorted( + namespaces.items(), key=lambda x: x[1] + ): # sort on prefix + if prefix: + prefix = ":" + prefix + write(' xmlns%s="%s"' % (prefix, _escape_attrib(uri))) + attrs = elem.attrib + if attrs: + # try to keep existing attrib order + if len(attrs) <= 1 or type(attrs) is _Attrib: + items = attrs.items() + else: + # if plain dict, use lexical order + items = sorted(attrs.items()) + for k, v in items: + if isinstance(k, QName): + k = _tounicode(k.text) + else: + k = _tounicode(k) + if isinstance(v, QName): + v = qnames[_tounicode(v.text)] + else: + v = _escape_attrib(v) + write(' %s="%s"' % (qnames[k], v)) + if text is not None or len(elem): + write(">") + if text: + write(_escape_cdata(text)) + for e in elem: + _serialize_xml(write, e, qnames, None) + write("") + else: + write("/>") + if elem.tail: + write(_escape_cdata(elem.tail)) + + def _raise_serialization_error(text): + raise TypeError("cannot serialize %r (type %s)" % (text, type(text).__name__)) + + def _escape_cdata(text): + # escape character data + try: + text = _tounicode(text) + # it's worth avoiding do-nothing calls for short strings + if "&" in text: + text = text.replace("&", "&") + if "<" in text: + text = text.replace("<", "<") + if ">" in text: + text = text.replace(">", ">") + return text + except (TypeError, AttributeError): + _raise_serialization_error(text) + + def _escape_attrib(text): + # escape attribute value + try: + text = _tounicode(text) + if "&" in text: + text = text.replace("&", "&") + if "<" in text: + text = text.replace("<", "<") + if ">" in text: + text = text.replace(">", ">") + if '"' in text: + text = text.replace('"', """) + if "\n" in text: + text = text.replace("\n", " ") + return text + except (TypeError, AttributeError): + _raise_serialization_error(text) + + def _indent(elem, level=0): + # From http://effbot.org/zone/element-lib.htm#prettyprint + i = "\n" + level * " " + if len(elem): + if not elem.text or not elem.text.strip(): + elem.text = i + " " + if not elem.tail or not elem.tail.strip(): + elem.tail = i + for elem in elem: + _indent(elem, level + 1) + if not elem.tail or not elem.tail.strip(): + elem.tail = i + else: + if level and (not elem.tail or not elem.tail.strip()): + elem.tail = i diff --git a/shared/package-files/86/8665ad45ac5442fb8149095f42492c8306b0e1967b5e3abaa323a4b4c9c253a3/test_nan.py b/shared/package-files/86/8665ad45ac5442fb8149095f42492c8306b0e1967b5e3abaa323a4b4c9c253a3/test_nan.py new file mode 100644 index 0000000000000000000000000000000000000000..a38a486c1a635b20ff3e2ead149ce8b2f9786b12 --- /dev/null +++ b/shared/package-files/86/8665ad45ac5442fb8149095f42492c8306b0e1967b5e3abaa323a4b4c9c253a3/test_nan.py @@ -0,0 +1,37 @@ +import unittest +from numba import jit +from numba.core import types + +enable_pyobj_flags = {'forceobj': True} +no_pyobj_flags = {'nopython': True} + + +def isnan(x): + return x != x + + +def isequal(x): + return x == x + + +class TestNaN(unittest.TestCase): + + def test_nans(self, flags=enable_pyobj_flags): + pyfunc = isnan + cfunc = jit((types.float64,), **flags)(pyfunc) + + self.assertTrue(cfunc(float('nan'))) + self.assertFalse(cfunc(1.0)) + + pyfunc = isequal + cfunc = jit((types.float64,), **flags)(pyfunc) + + self.assertFalse(cfunc(float('nan'))) + self.assertTrue(cfunc(1.0)) + + def test_nans_npm(self): + self.test_nans(flags=no_pyobj_flags) + + +if __name__ == '__main__': + unittest.main() diff --git a/shared/package-files/86/866b173f48a5c5e3f647e8a52fd392f6fcf249157ee96048a6e0c4fe9ad34933/_upsample_nearest_exact2d_cpu_dispatch.h b/shared/package-files/86/866b173f48a5c5e3f647e8a52fd392f6fcf249157ee96048a6e0c4fe9ad34933/_upsample_nearest_exact2d_cpu_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..871ba1ba699c3b0155a8317195a382d154fa313b --- /dev/null +++ b/shared/package-files/86/866b173f48a5c5e3f647e8a52fd392f6fcf249157ee96048a6e0c4fe9ad34933/_upsample_nearest_exact2d_cpu_dispatch.h @@ -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 _upsample_nearest_exact2d(const at::Tensor & self, at::IntArrayRef output_size, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt); +TORCH_API at::Tensor _upsample_nearest_exact2d_symint(const at::Tensor & self, c10::SymIntArrayRef output_size, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt); +TORCH_API at::Tensor & _upsample_nearest_exact2d_out(at::Tensor & out, const at::Tensor & self, at::IntArrayRef output_size, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt); +TORCH_API at::Tensor & _upsample_nearest_exact2d_outf(const at::Tensor & self, at::IntArrayRef output_size, c10::optional scales_h, c10::optional scales_w, at::Tensor & out); +TORCH_API at::Tensor & _upsample_nearest_exact2d_symint_out(at::Tensor & out, const at::Tensor & self, c10::SymIntArrayRef output_size, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt); +TORCH_API at::Tensor & _upsample_nearest_exact2d_symint_outf(const at::Tensor & self, c10::SymIntArrayRef output_size, c10::optional scales_h, c10::optional scales_w, at::Tensor & out); + +} // namespace cpu +} // namespace at diff --git a/shared/package-files/86/866b7e03d968412855ee48b10a234cd1f9d66832520d5ad4f3087bb1f4b93cf8/_sparse_log_softmax_backward_data_native.h b/shared/package-files/86/866b7e03d968412855ee48b10a234cd1f9d66832520d5ad4f3087bb1f4b93cf8/_sparse_log_softmax_backward_data_native.h new file mode 100644 index 0000000000000000000000000000000000000000..ecddb0aa954bcdc11fed80bfd89b7b149c86605e --- /dev/null +++ b/shared/package-files/86/866b7e03d968412855ee48b10a234cd1f9d66832520d5ad4f3087bb1f4b93cf8/_sparse_log_softmax_backward_data_native.h @@ -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 & _sparse_log_softmax_backward_data_out(const at::Tensor & grad_output, const at::Tensor & output, int64_t dim, const at::Tensor & self, at::Tensor & out); +TORCH_API at::Tensor log_softmax_backward_sparse_cpu(const at::Tensor & grad_output, const at::Tensor & output, int64_t dim, const at::Tensor & self); +TORCH_API at::Tensor log_softmax_backward_sparse_cuda(const at::Tensor & grad_output, const at::Tensor & output, int64_t dim, const at::Tensor & self); +} // namespace native +} // namespace at diff --git a/shared/package-files/86/8672a463699ead137d8386eb3f0412eb6ae86c5c67c95da89ccd49609ad77ee7/lift_fresh_copy_native.h b/shared/package-files/86/8672a463699ead137d8386eb3f0412eb6ae86c5c67c95da89ccd49609ad77ee7/lift_fresh_copy_native.h new file mode 100644 index 0000000000000000000000000000000000000000..7eb10fc814df7361bcdb1820276f97b0b7bed384 --- /dev/null +++ b/shared/package-files/86/8672a463699ead137d8386eb3f0412eb6ae86c5c67c95da89ccd49609ad77ee7/lift_fresh_copy_native.h @@ -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 & lift_fresh_copy_out(const at::Tensor & self, at::Tensor & out); +TORCH_API at::Tensor lift_fresh_copy(const at::Tensor & self); +} // namespace native +} // namespace at diff --git a/shared/package-files/86/867355e8665acc47aa4d7b80f6f70e528e316a6fd49ca4581981fd3d41932eff/testsparsefloat_7.4_GLNX86.mat b/shared/package-files/86/867355e8665acc47aa4d7b80f6f70e528e316a6fd49ca4581981fd3d41932eff/testsparsefloat_7.4_GLNX86.mat new file mode 100644 index 0000000000000000000000000000000000000000..15424266a3bd4aa1e7525a8fdc4945b51d2b5ad6 Binary files /dev/null and b/shared/package-files/86/867355e8665acc47aa4d7b80f6f70e528e316a6fd49ca4581981fd3d41932eff/testsparsefloat_7.4_GLNX86.mat differ diff --git a/shared/package-files/86/867ae15806a61df7bb75be37032beddb9d86f0254f035a32aa56ee3d66c405d3/vec256_bfloat16.h b/shared/package-files/86/867ae15806a61df7bb75be37032beddb9d86f0254f035a32aa56ee3d66c405d3/vec256_bfloat16.h new file mode 100644 index 0000000000000000000000000000000000000000..3e26213d6d26609b2cda7bde2d026fc92c626db2 --- /dev/null +++ b/shared/package-files/86/867ae15806a61df7bb75be37032beddb9d86f0254f035a32aa56ee3d66c405d3/vec256_bfloat16.h @@ -0,0 +1,1096 @@ +#pragma once + +// DO NOT DEFINE STATIC DATA IN THIS HEADER! +// See Note [Do not compile initializers with AVX] + +#include +#include +#include + +#if defined(CPU_CAPABILITY_AVX2) && !defined(_MSC_VER) +#include +#endif + +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wignored-qualifiers" + +namespace at::vec { +// See Note [CPU_CAPABILITY namespace] +inline namespace CPU_CAPABILITY { + +#if defined(CPU_CAPABILITY_AVX2) && !defined(_MSC_VER) + +// bfloat16 conversion +static inline void cvtbf16_fp32(const __m128i& a, __m256& o) { + o = _mm256_castsi256_ps(_mm256_slli_epi32(_mm256_cvtepu16_epi32(a), 16)); +} + +static inline void cvtbf16_fp32(const __m256i& a, __m256& o1, __m256& o2) { + __m128i lo = _mm256_extractf128_si256(a, 0); + __m128i hi = _mm256_extractf128_si256(a, 1); + cvtbf16_fp32(lo, o1); + cvtbf16_fp32(hi, o2); +} +static inline __m256i cvtfp32_bf16(const __m256& a, const __m256& b) { + __m256i lo = _mm256_castps_si256(a); + __m256i hi = _mm256_castps_si256(b); + __m256i nan = _mm256_set1_epi32(0xffff); + __m256i mask_lo = _mm256_castps_si256(_mm256_cmp_ps(a, a, _CMP_ORD_Q)); + __m256i mask_hi = _mm256_castps_si256(_mm256_cmp_ps(b, b, _CMP_ORD_Q)); + __m256i ones = _mm256_set1_epi32(0x1); + __m256i vec_bias = _mm256_set1_epi32(0x7fff); + // uint32_t lsb = (input >> 16) & 1; + auto t_lo = _mm256_and_si256(_mm256_srli_epi32(lo, 16), ones); + auto t_hi = _mm256_and_si256(_mm256_srli_epi32(hi, 16), ones); + // uint32_t rounding_bias = 0x7fff + lsb; + t_lo = _mm256_add_epi32(t_lo, vec_bias); + t_hi = _mm256_add_epi32(t_hi, vec_bias); + // input += rounding_bias; + t_lo = _mm256_add_epi32(t_lo, lo); + t_hi = _mm256_add_epi32(t_hi, hi); + // input = input >> 16; + t_lo = _mm256_srli_epi32(t_lo, 16); + t_hi = _mm256_srli_epi32(t_hi, 16); + // Check NaN before converting back to bf16 + t_lo = _mm256_blendv_epi8(nan, t_lo, mask_lo); + t_hi = _mm256_blendv_epi8(nan, t_hi, mask_hi); + + t_lo = _mm256_packus_epi32(t_lo, t_hi); // t_hi[4-7] t_lo[4-7] t_hi[0-4] t_lo[0-4] + return _mm256_permute4x64_epi64(t_lo, 0xd8); // 11 01 10 00 +} + +static inline __m256i merge_compare_result(const __m256& a, const __m256& b) { + __m256i lo = _mm256_castps_si256(a); + __m256i hi = _mm256_castps_si256(b); + lo = _mm256_srli_epi32(lo, 16); + hi = _mm256_srli_epi32(hi, 16); + auto out = _mm256_packus_epi32(lo, hi); + return _mm256_permute4x64_epi64(out, 0xd8); +} + +// float16 conversion +static inline void cvtfp16_fp32(const __m128i& a, __m256& o) { + o = _mm256_cvtph_ps(a); +} + +static inline void cvtfp16_fp32(const __m256i& a, __m256& o1, __m256& o2) { + __m128i lo = _mm256_extractf128_si256(a, 0); + __m128i hi = _mm256_extractf128_si256(a, 1); + cvtfp16_fp32(lo, o1); + cvtfp16_fp32(hi, o2); +} + +static inline __m256i cvtfp32_fp16(const __m256& a, const __m256& b) { + __m128i lo = _mm256_cvtps_ph( + a, (_MM_FROUND_TO_NEAREST_INT | _MM_FROUND_NO_EXC)); + __m128i hi = _mm256_cvtps_ph( + b, (_MM_FROUND_TO_NEAREST_INT | _MM_FROUND_NO_EXC)); + return _mm256_insertf128_si256(_mm256_castsi128_si256(lo), hi, 1); +} + +// dtype conversion between float16/bfloat16 and float32 +template , int> = 0> +inline void cvt_to_fp32(const __m128i& a, __m256& o); +template <> inline void cvt_to_fp32(const __m128i& a, __m256& o) { + cvtbf16_fp32(a, o); +}; +template <> inline void cvt_to_fp32(const __m128i& a, __m256& o) { + cvtfp16_fp32(a, o); +} + +template , int> = 0> +inline void cvt_to_fp32(const __m256i& a, __m256& o1, __m256& o2); +template <> inline void cvt_to_fp32(const __m256i& a, __m256& o1, __m256& o2) { + cvtbf16_fp32(a, o1, o2); +} +template <> inline void cvt_to_fp32(const __m256i& a, __m256& o1, __m256& o2) { + cvtfp16_fp32(a, o1, o2); +} + +template , int> = 0> +inline __m256i cvt_from_fp32(const __m256& a, const __m256& b); +template <> inline __m256i cvt_from_fp32(const __m256& a, const __m256& b) { + return cvtfp32_bf16(a, b); +} +template <> inline __m256i cvt_from_fp32(const __m256& a, const __m256& b) { + return merge_compare_result(a, b); +} +template <> inline __m256i cvt_from_fp32(const __m256& a, const __m256& b) { + return cvtfp32_fp16(a, b); +} +template <> inline __m256i cvt_from_fp32(const __m256& a, const __m256& b) { + return cvtfp32_fp16(a, b); +} + +template +class Vectorized16 { +static_assert( + is_reduced_floating_point_v, + "Support only float16 and bfloat16."); +protected: + __m256i values; +public: + using value_type = uint16_t; + using size_type = int; + static constexpr size_type size() { + return 16; + } + Vectorized16() {} + Vectorized16(__m256i v) : values(v) {} + Vectorized16(T val) { + value_type uw = val.x; + values = _mm256_set1_epi16(uw); + } + Vectorized16(T val1, T val2, T val3, T val4, + T val5, T val6, T val7, T val8, + T val9, T val10, T val11, T val12, + T val13, T val14, T val15, T val16) { + values = _mm256_setr_epi16( + val1.x, val2.x, val3.x, val4.x, val5.x, val6.x, val7.x, val8.x, + val9.x, val10.x, val11.x, val12.x, val13.x, val14.x, val15.x, val16.x); + } + operator __m256i() const { + return values; + } + T& operator[](int idx) = delete; + const T& operator[](int idx) const = delete; + int zero_mask() const { + // returns an integer mask where all zero elements are translated to 1-bit and others are translated to 0-bit + __m256i cmp = _mm256_cmpeq_epi16(values, _mm256_set1_epi16(0)); + return _mm256_movemask_epi8(cmp); + } + static Vectorized loadu(const void* ptr, int16_t count = size()) { + if (count == size()) + return _mm256_loadu_si256(reinterpret_cast(ptr)); + + __at_align__ int16_t tmp_values[size()]; + std::memcpy(tmp_values, ptr, count * sizeof(int16_t)); + return _mm256_loadu_si256(reinterpret_cast(tmp_values)); + } + void store(void* ptr, int count = size()) const { + if (count == size()) { + _mm256_storeu_si256(reinterpret_cast<__m256i*>(ptr), values); + } else if (count > 0) { + __at_align__ int16_t tmp_values[size()]; + _mm256_storeu_si256(reinterpret_cast<__m256i*>(tmp_values), values); + std::memcpy(ptr, tmp_values, count * sizeof(int16_t)); + } + } + template + static Vectorized blend(const Vectorized& a, const Vectorized& b) { + __at_align__ int16_t tmp_values[size()]; + a.store(tmp_values); + if (mask & 0x01) + tmp_values[0] = _mm256_extract_epi16(b.values, 0); + if (mask & 0x02) + tmp_values[1] = _mm256_extract_epi16(b.values, 1); + if (mask & 0x04) + tmp_values[2] = _mm256_extract_epi16(b.values, 2); + if (mask & 0x08) + tmp_values[3] = _mm256_extract_epi16(b.values, 3); + if (mask & 0x10) + tmp_values[4] = _mm256_extract_epi16(b.values, 4); + if (mask & 0x20) + tmp_values[5] = _mm256_extract_epi16(b.values, 5); + if (mask & 0x40) + tmp_values[6] = _mm256_extract_epi16(b.values, 6); + if (mask & 0x80) + tmp_values[7] = _mm256_extract_epi16(b.values, 7); + if (mask & 0x100) + tmp_values[8] = _mm256_extract_epi16(b.values, 8); + if (mask & 0x200) + tmp_values[9] = _mm256_extract_epi16(b.values, 9); + if (mask & 0x400) + tmp_values[10] = _mm256_extract_epi16(b.values, 10); + if (mask & 0x800) + tmp_values[11] = _mm256_extract_epi16(b.values, 11); + if (mask & 0x1000) + tmp_values[12] = _mm256_extract_epi16(b.values, 12); + if (mask & 0x2000) + tmp_values[13] = _mm256_extract_epi16(b.values, 13); + if (mask & 0x4000) + tmp_values[14] = _mm256_extract_epi16(b.values, 14); + if (mask & 0x8000) + tmp_values[15] = _mm256_extract_epi16(b.values, 15); + return loadu(tmp_values); + } + static Vectorized blendv(const Vectorized& a, + const Vectorized& b, const Vectorized& mask) { + return _mm256_blendv_epi8(a.values, b.values, mask.values); + } + template + static Vectorized arange(T base = 0.f, step_t step = static_cast(1)) { + return Vectorized( + base, base + step, base + 2 * step, base + 3 * step, + base + 4 * step, base + 5 * step, base + 6 * step, base + 7 * step, + base + 8 * step, base + 9 * step, base + 10 * step, base + 11 * step, + base + 12 * step, base + 13 * step, base + 14 * step, base + 15 * step); + } + static Vectorized set(const Vectorized& a, + const Vectorized& b, int64_t count = size()) { + switch (count) { + case 0: + return a; + case 1: + return blend<1>(a, b); + case 2: + return blend<3>(a, b); + case 3: + return blend<7>(a, b); + case 4: + return blend<15>(a, b); + case 5: + return blend<31>(a, b); + case 6: + return blend<63>(a, b); + case 7: + return blend<127>(a, b); + case 8: + return blend<255>(a, b); + case 9: + return blend<511>(a, b); + case 10: + return blend<1023>(a, b); + case 11: + return blend<2047>(a, b); + case 12: + return blend<4095>(a, b); + case 13: + return blend<8191>(a, b); + case 14: + return blend<16383>(a, b); + case 15: + return blend<32767>(a, b); + } + return b; + } + Vectorized map(const __m256 (*const vop)(__m256)) const { + __m256 lo, hi; + cvt_to_fp32(values, lo, hi); + const auto o1 = vop(lo); + const auto o2 = vop(hi); + return cvt_from_fp32(o1, o2); + } + Vectorized isnan() const { + __m256 lo, hi; + cvt_to_fp32(values, lo, hi); + lo = _mm256_cmp_ps(lo, _mm256_set1_ps(0.0f), _CMP_UNORD_Q); + hi = _mm256_cmp_ps(hi, _mm256_set1_ps(0.0f), _CMP_UNORD_Q); + return merge_compare_result(lo, hi); + } + Vectorized abs() const { + return _mm256_andnot_si256(_mm256_set1_epi16(0x8000), values); + } + Vectorized angle() const { + __m256 lo, hi; + cvt_to_fp32(values, lo, hi); + auto angle_lambda = [](__m256 values_2) { + const auto zero_vec = _mm256_set1_ps(0.f); + const auto nan_vec = _mm256_set1_ps(NAN); + const auto not_nan_mask = _mm256_cmp_ps(values_2, values_2, _CMP_EQ_OQ); + const auto nan_mask = _mm256_cmp_ps(not_nan_mask, zero_vec, _CMP_EQ_OQ); + const auto pi = _mm256_set1_ps(c10::pi); + + const auto neg_mask = _mm256_cmp_ps(values_2, zero_vec, _CMP_LT_OQ); + auto angle = _mm256_blendv_ps(zero_vec, pi, neg_mask); + angle = _mm256_blendv_ps(angle, nan_vec, nan_mask); + return angle; + }; + auto o1 = angle_lambda(lo); + auto o2 = angle_lambda(hi); + return cvt_from_fp32(o1, o2); + } + Vectorized real() const { + return *this; + } + Vectorized imag() const { + return _mm256_set1_epi16(0); + } + Vectorized conj() const { + return *this; + } + Vectorized acos() const { + return map(Sleef_acosf8_u10); + } + Vectorized acosh() const { + return map(Sleef_acoshf8_u10); + } + Vectorized asin() const { + return map(Sleef_asinf8_u10); + } + Vectorized atan() const { + return map(Sleef_atanf8_u10); + } + Vectorized atanh() const { + return map(Sleef_atanhf8_u10); + } + Vectorized atan2(const Vectorized &b) const { + __m256 lo, hi; + __m256 b1, b2; + cvt_to_fp32(values, lo, hi); + cvt_to_fp32(b.values, b1, b2); + auto o1 = Sleef_atan2f8_u10(lo, b1); + auto o2 = Sleef_atan2f8_u10(hi, b2); + return cvt_from_fp32(o1, o2); + } + Vectorized copysign(const Vectorized &sign) const { + // copy sign bit (0x8000) from sign and remaining bits from values + __m256i mask_value = _mm256_set1_epi32(~0x80008000); + __m256i mask_signbit = _mm256_set1_epi32(0x80008000); + return Vectorized( + _mm256_or_si256( + _mm256_and_si256(values, mask_value), + _mm256_and_si256(sign, mask_signbit))); + } + Vectorized erf() const { + return map(Sleef_erff8_u10); + } + Vectorized erfc() const { + return map(Sleef_erfcf8_u15); + } + Vectorized erfinv() const { + __m256 lo, hi; + cvt_to_fp32(values, lo, hi); + __at_align__ float tmp1[size() / 2], tmp2[size() / 2]; + _mm256_storeu_ps(reinterpret_cast(tmp1), lo); + _mm256_storeu_ps(reinterpret_cast(tmp2), hi); + for (int64_t i = 0; i < size() / 2; i++) { + tmp1[i] = calc_erfinv(tmp1[i]); + tmp2[i] = calc_erfinv(tmp2[i]); + } + auto o1 = _mm256_loadu_ps(tmp1); + auto o2 = _mm256_loadu_ps(tmp2); + return cvt_from_fp32(o1, o2); + } + Vectorized exp() const { + return map(Sleef_expf8_u10); + } + Vectorized exp2() const { + return map(Sleef_exp2f8_u10); + } + Vectorized expm1() const { + return map(Sleef_expm1f8_u10); + } + Vectorized exp_u20() const { + return exp(); + } + Vectorized fmod(const Vectorized & q) const { + __m256 x_lo, x_hi; + cvt_to_fp32(values, x_lo, x_hi); + __m256 q_lo, q_hi; + cvt_to_fp32(q.values, q_lo, q_hi); + auto o1 = Sleef_fmodf8(x_lo, q_lo); + auto o2 = Sleef_fmodf8(x_hi, q_hi); + return cvt_from_fp32(o1, o2); + } + Vectorized hypot(const Vectorized &b) const { + __m256 lo, hi; + __m256 b1, b2; + cvt_to_fp32(values, lo, hi); + cvt_to_fp32(b.values, b1, b2); + auto o1 = Sleef_hypotf8_u05(lo, b1); + auto o2 = Sleef_hypotf8_u05(hi, b2); + return cvt_from_fp32(o1, o2); + } + Vectorized i0() const { + __m256 lo, hi; + cvt_to_fp32(values, lo, hi); + __at_align__ float tmp1[size() / 2], tmp2[size() / 2]; + _mm256_storeu_ps(reinterpret_cast(tmp1), lo); + _mm256_storeu_ps(reinterpret_cast(tmp2), hi); + for (int64_t i = 0; i < size() / 2; i++) { + tmp1[i] = calc_i0(tmp1[i]); + tmp2[i] = calc_i0(tmp2[i]); + } + auto o1 = _mm256_loadu_ps(tmp1); + auto o2 = _mm256_loadu_ps(tmp2); + return cvt_from_fp32(o1, o2); + } + Vectorized i0e() const { + __m256 lo, hi; + cvt_to_fp32(values, lo, hi); + constexpr auto sz = size(); + __at_align__ float tmp1[sz / 2], tmp2[sz / 2]; + _mm256_storeu_ps(reinterpret_cast(tmp1), lo); + _mm256_storeu_ps(reinterpret_cast(tmp2), hi); + + for (auto i = decltype(sz){0}; i < sz / 2; i++) { + tmp1[i] = calc_i0e(tmp1[i]); + tmp2[i] = calc_i0e(tmp2[i]); + } + const auto o1 = _mm256_loadu_ps(tmp1); + const auto o2 = _mm256_loadu_ps(tmp2); + return cvt_from_fp32(o1, o2); + } + Vectorized digamma() const { + __m256 lo, hi; + cvt_to_fp32(values, lo, hi); + constexpr auto sz = size(); + __at_align__ float tmp1[sz / 2], tmp2[sz / 2]; + _mm256_storeu_ps(reinterpret_cast(tmp1), lo); + _mm256_storeu_ps(reinterpret_cast(tmp2), hi); + + for (auto i = decltype(sz){0}; i < sz / 2; i++) { + tmp1[i] = calc_digamma(tmp1[i]); + tmp2[i] = calc_digamma(tmp2[i]); + } + const auto o1 = _mm256_loadu_ps(tmp1); + const auto o2 = _mm256_loadu_ps(tmp2); + return cvt_from_fp32(o1, o2); + } + Vectorized igamma(const Vectorized &x) const { + __m256 lo, hi; + __m256 xlo, xhi; + cvt_to_fp32(values, lo, hi); + cvt_to_fp32(x.values, xlo, xhi); + __at_align__ float tmp1[size() / 2], tmp2[size() / 2]; + _mm256_storeu_ps(reinterpret_cast(tmp1), lo); + _mm256_storeu_ps(reinterpret_cast(tmp2), hi); + __at_align__ float tmpx1[size() / 2], tmpx2[size() / 2]; + _mm256_storeu_ps(reinterpret_cast(tmpx1), xlo); + _mm256_storeu_ps(reinterpret_cast(tmpx2), xhi); + for (int64_t i = 0; i < size() / 2; ++i) { + tmp1[i] = calc_igamma(tmp1[i], tmpx1[i]); + tmp2[i] = calc_igamma(tmp2[i], tmpx2[i]); + } + auto o1 = _mm256_loadu_ps(tmp1); + auto o2 = _mm256_loadu_ps(tmp2); + return cvt_from_fp32(o1, o2); + } + + Vectorized igammac(const Vectorized &x) const { + __m256 lo, hi; + __m256 xlo, xhi; + cvt_to_fp32(values, lo, hi); + cvt_to_fp32(x.values, xlo, xhi); + __at_align__ float tmp1[size() / 2], tmp2[size() / 2]; + _mm256_storeu_ps(reinterpret_cast(tmp1), lo); + _mm256_storeu_ps(reinterpret_cast(tmp2), hi); + __at_align__ float tmpx1[size() / 2], tmpx2[size() / 2]; + _mm256_storeu_ps(reinterpret_cast(tmpx1), xlo); + _mm256_storeu_ps(reinterpret_cast(tmpx2), xhi); + for (int64_t i = 0; i < size() / 2; ++i) { + tmp1[i] = calc_igammac(tmp1[i], tmpx1[i]); + tmp2[i] = calc_igammac(tmp2[i], tmpx2[i]); + } + auto o1 = _mm256_loadu_ps(tmp1); + auto o2 = _mm256_loadu_ps(tmp2); + return cvt_from_fp32(o1, o2); + } + Vectorized log() const { + return map(Sleef_logf8_u10); + } + Vectorized log2() const { + return map(Sleef_log2f8_u10); + } + Vectorized log10() const { + return map(Sleef_log10f8_u10); + } + Vectorized log1p() const { + return map(Sleef_log1pf8_u10); + } + Vectorized sin() const { + return map(Sleef_sinf8_u10); + } + Vectorized sinh() const { + return map(Sleef_sinhf8_u10); + } + Vectorized cos() const { + return map(Sleef_cosf8_u10); + } + Vectorized cosh() const { + return map(Sleef_coshf8_u10); + } + Vectorized ceil() const { + __m256 lo, hi; + cvt_to_fp32(values, lo, hi); + auto o1 = _mm256_ceil_ps(lo); + auto o2 = _mm256_ceil_ps(hi); + return cvt_from_fp32(o1, o2); + } + Vectorized floor() const { + __m256 lo, hi; + cvt_to_fp32(values, lo, hi); + auto o1 = _mm256_floor_ps(lo); + auto o2 = _mm256_floor_ps(hi); + return cvt_from_fp32(o1, o2); + } + Vectorized neg() const { + return _mm256_xor_si256(values, _mm256_set1_epi16(0x8000)); + } + Vectorized round() const { + __m256 lo, hi; + cvt_to_fp32(values, lo, hi); + auto o1 = _mm256_round_ps(lo, (_MM_FROUND_TO_NEAREST_INT | _MM_FROUND_NO_EXC)); + auto o2 = _mm256_round_ps(hi, (_MM_FROUND_TO_NEAREST_INT | _MM_FROUND_NO_EXC)); + return cvt_from_fp32(o1, o2); + } + Vectorized tan() const { + return map(Sleef_tanf8_u10); + } + Vectorized tanh() const { + return map(Sleef_tanhf8_u10); + } + Vectorized trunc() const { + __m256 lo, hi; + cvt_to_fp32(values, lo, hi); + auto o1 = _mm256_round_ps(lo, (_MM_FROUND_TO_ZERO | _MM_FROUND_NO_EXC)); + auto o2 = _mm256_round_ps(hi, (_MM_FROUND_TO_ZERO | _MM_FROUND_NO_EXC)); + return cvt_from_fp32(o1, o2); + } + Vectorized lgamma() const { + return map(Sleef_lgammaf8_u10); + } + Vectorized sqrt() const { + __m256 lo, hi; + cvt_to_fp32(values, lo, hi); + auto o1 = _mm256_sqrt_ps(lo); + auto o2 = _mm256_sqrt_ps(hi); + return cvt_from_fp32(o1, o2); + } + Vectorized reciprocal() const { + __m256 lo, hi; + cvt_to_fp32(values, lo, hi); + auto ones = _mm256_set1_ps(1); + auto o1 = _mm256_div_ps(ones, lo); + auto o2 = _mm256_div_ps(ones, hi); + return cvt_from_fp32(o1, o2); + } + Vectorized rsqrt() const { + __m256 lo, hi; + cvt_to_fp32(values, lo, hi); + auto ones = _mm256_set1_ps(1); + auto o1 = _mm256_div_ps(ones, _mm256_sqrt_ps(lo)); + auto o2 = _mm256_div_ps(ones, _mm256_sqrt_ps(hi)); + return cvt_from_fp32(o1, o2); + } + Vectorized pow(const Vectorized &b) const { + __m256 lo, hi; + __m256 b1, b2; + cvt_to_fp32(values, lo, hi); + cvt_to_fp32(b.values, b1, b2); + auto o1 = Sleef_powf8_u10(lo, b1); + auto o2 = Sleef_powf8_u10(hi, b2); + return cvt_from_fp32(o1, o2); + } +private: + template + Vectorized inline binary_compare(const Vectorized& b, Op op) const { + __m256 a_lo, a_hi; + __m256 b_lo, b_hi; + cvt_to_fp32(values, a_lo, a_hi); + cvt_to_fp32(b.values, b_lo, b_hi); + auto o1 = op(a_lo, b_lo); + auto o2 = op(a_hi, b_hi); + return cvt_from_fp32(o1, o2); + } + +public: + Vectorized inline operator>(const Vectorized& other) const { + return binary_compare(other, [](__m256 x, __m256 y) { return _mm256_cmp_ps(x, y, _CMP_GT_OQ); }); + } + Vectorized inline operator<(const Vectorized& other) const { + return binary_compare(other, [](__m256 x, __m256 y) { return _mm256_cmp_ps(x, y, _CMP_LT_OQ); }); + } + Vectorized inline operator>=(const Vectorized& other) const { + return binary_compare(other, [](__m256 x, __m256 y) { return _mm256_cmp_ps(x, y, _CMP_GE_OQ); }); + } + Vectorized inline operator<=(const Vectorized& other) const { + return binary_compare(other, [](__m256 x, __m256 y) { return _mm256_cmp_ps(x, y, _CMP_LE_OQ); }); + } + Vectorized inline operator==(const Vectorized& other) const { + return binary_compare(other, [](__m256 x, __m256 y) { return _mm256_cmp_ps(x, y, _CMP_EQ_OQ); }); + } + Vectorized inline operator!=(const Vectorized& other) const { + return binary_compare(other, [](__m256 x, __m256 y) { return _mm256_cmp_ps(x, y, _CMP_NEQ_UQ); }); + } +}; + +template +static inline Vectorized binary_op_as_fp32(const Vectorized& a, const Vectorized& b, Op op) { + __m256 a_lo, a_hi; + __m256 b_lo, b_hi; + cvt_to_fp32(__m256i(a), a_lo, a_hi); + cvt_to_fp32(__m256i(b), b_lo, b_hi); + auto o1 = op(a_lo, b_lo); + auto o2 = op(a_hi, b_hi); + return cvt_from_fp32(o1, o2); +} + +template <> +class Vectorized: public Vectorized16 { +public: + using Vectorized16::Vectorized16; + + Vectorized frac() const; + + Vectorized eq(const Vectorized& other) const; + Vectorized ne(const Vectorized& other) const; + Vectorized gt(const Vectorized& other) const; + Vectorized ge(const Vectorized& other) const; + Vectorized lt(const Vectorized& other) const; + Vectorized le(const Vectorized& other) const; +}; + +Vectorized inline operator+(const Vectorized& a, const Vectorized& b) { + return binary_op_as_fp32(a, b, [](const __m256& x, const __m256& y) { return _mm256_add_ps(x, y); }); +} +Vectorized inline operator-(const Vectorized& a, const Vectorized& b) { + return binary_op_as_fp32(a, b, [](const __m256& x, const __m256& y) { return _mm256_sub_ps(x, y); }); +} +Vectorized inline operator*(const Vectorized& a, const Vectorized& b) { + return binary_op_as_fp32(a, b, [](const __m256& x, const __m256& y) { return _mm256_mul_ps(x, y); }); +} +Vectorized inline operator/(const Vectorized& a, const Vectorized& b) { + return binary_op_as_fp32(a, b, [](const __m256& x, const __m256& y) { return _mm256_div_ps(x, y); }); +} +Vectorized inline operator&(const Vectorized& a, const Vectorized& b) { + return _mm256_and_si256(a, b); +} +Vectorized inline operator|(const Vectorized& a, const Vectorized& b) { + return _mm256_or_si256(a, b); +} +Vectorized inline operator^(const Vectorized& a, const Vectorized& b) { + return _mm256_xor_si256(a, b); +} + +inline Vectorized Vectorized::eq(const Vectorized& other) const { + return (*this == other) & Vectorized(1.0f); +} +inline Vectorized Vectorized::ne(const Vectorized& other) const { + return (*this != other) & Vectorized(1.0f); +} +inline Vectorized Vectorized::gt(const Vectorized& other) const { + return (*this > other) & Vectorized(1.0f); +} +inline Vectorized Vectorized::ge(const Vectorized& other) const { + return (*this >= other) & Vectorized(1.0f); +} +inline Vectorized Vectorized::lt(const Vectorized& other) const { + return (*this < other) & Vectorized(1.0f); +} +inline Vectorized Vectorized::le(const Vectorized& other) const { + return (*this <= other) & Vectorized(1.0f); +} + +// frac. Implement this here so we can use subtraction +inline Vectorized Vectorized::frac() const { + return *this - this->trunc(); +} + +// Implements the IEEE 754 201X `maximum` operation, which propagates NaN if +// either input is a NaN. +template <> +Vectorized inline maximum(const Vectorized& a, const Vectorized& b) { + __m256 a_lo, a_hi; + __m256 b_lo, b_hi; + cvtbf16_fp32(__m256i(a), a_lo, a_hi); + cvtbf16_fp32(__m256i(b), b_lo, b_hi); + auto max_lo = _mm256_max_ps(a_lo, b_lo); + auto max_hi = _mm256_max_ps(a_hi, b_hi); + auto nan_lo = _mm256_cmp_ps(a_lo, b_lo, _CMP_UNORD_Q); + auto nan_hi = _mm256_cmp_ps(a_hi, b_hi, _CMP_UNORD_Q); + // Exploit the fact that all-ones is a NaN. + auto o1 = _mm256_or_ps(max_lo, nan_lo); + auto o2 = _mm256_or_ps(max_hi, nan_hi); + return cvtfp32_bf16(o1, o2); +} + +// Implements the IEEE 754 201X `minimum` operation, which propagates NaN if +// either input is a NaN. +template <> +Vectorized inline minimum(const Vectorized& a, const Vectorized& b) { + __m256 a_lo, a_hi; + __m256 b_lo, b_hi; + cvtbf16_fp32(__m256i(a), a_lo, a_hi); + cvtbf16_fp32(__m256i(b), b_lo, b_hi); + auto min_lo = _mm256_min_ps(a_lo, b_lo); + auto min_hi = _mm256_min_ps(a_hi, b_hi); + auto nan_lo = _mm256_cmp_ps(a_lo, b_lo, _CMP_UNORD_Q); + auto nan_hi = _mm256_cmp_ps(a_hi, b_hi, _CMP_UNORD_Q); + // Exploit the fact that all-ones is a NaN. + auto o1 = _mm256_or_ps(min_lo, nan_lo); + auto o2 = _mm256_or_ps(min_hi, nan_hi); + return cvtfp32_bf16(o1, o2); +} + +template <> +Vectorized inline clamp(const Vectorized& a, + const Vectorized& min, const Vectorized& max) { + __m256 a_lo, a_hi; + __m256 min_lo, min_hi; + __m256 max_lo, max_hi; + cvtbf16_fp32(__m256i(a), a_lo, a_hi); + cvtbf16_fp32(__m256i(min), min_lo, min_hi); + cvtbf16_fp32(__m256i(max), max_lo, max_hi); + auto o1 = _mm256_min_ps(max_lo, _mm256_max_ps(min_lo, a_lo)); + auto o2 = _mm256_min_ps(max_hi, _mm256_max_ps(min_hi, a_hi)); + return cvtfp32_bf16(o1, o2); +} + +template <> +Vectorized inline clamp_max(const Vectorized& a, const Vectorized& max) { + __m256 a_lo, a_hi; + __m256 max_lo, max_hi; + cvtbf16_fp32(__m256i(a), a_lo, a_hi); + cvtbf16_fp32(__m256i(max), max_lo, max_hi); + auto o1 = _mm256_min_ps(max_lo, a_lo); + auto o2 = _mm256_min_ps(max_hi, a_hi); + return cvtfp32_bf16(o1, o2); +} + +template <> +Vectorized inline clamp_min(const Vectorized& a, const Vectorized& min) { + __m256 a_lo, a_hi; + __m256 min_lo, min_hi; + cvtbf16_fp32(__m256i(a), a_lo, a_hi); + cvtbf16_fp32(__m256i(min), min_lo, min_hi); + auto o1 = _mm256_max_ps(min_lo, a_lo); + auto o2 = _mm256_max_ps(min_hi, a_hi); + return cvtfp32_bf16(o1, o2); +} + +template <> +inline void convert(const BFloat16* src, BFloat16* dst, int64_t n) { + int64_t i; +#pragma unroll + for (i = 0; i <= (n - Vectorized::size()); i += Vectorized::size()) { + auto vsrc = _mm256_loadu_si256(reinterpret_cast<__m256i*>((void*)(src + i))); + _mm256_storeu_si256(reinterpret_cast<__m256i*>((void*)(dst + i)), vsrc); + } +#pragma unroll + for (; i < n; i++) { + dst[i] = src[i]; + } +} + +template <> +inline void convert(const float* src, BFloat16* dst, int64_t n) { + int64_t i; + for (i = 0; i + Vectorized::size() <= n; i += Vectorized::size()) { + __m256 a = _mm256_loadu_ps(&src[i]); + __m256 b = _mm256_loadu_ps(&src[i + 8]); + + __m256i bf = cvtfp32_bf16(a, b); + _mm256_storeu_si256(reinterpret_cast<__m256i*>(&dst[i]), bf); + } + for (; i < n; i++) { + dst[i] = c10::convert(src[i]); + } +} + +template <> +inline void convert(const double* src, BFloat16* dst, int64_t n) { + auto load_float = [](const double *src) -> __m256 { + // Load one float vector from an array of doubles + __m128 a = _mm256_cvtpd_ps(_mm256_loadu_pd(src)); + __m128 b = _mm256_cvtpd_ps(_mm256_loadu_pd(src + 4)); + return _mm256_insertf128_ps(_mm256_castps128_ps256(a), b, 1); + }; + + int64_t i; + for (i = 0; i + Vectorized::size() <= n; i += Vectorized::size()) { + __m256 a = load_float(&src[i]); + __m256 b = load_float(&src[i + 8]); + + __m256i bf = cvtfp32_bf16(a, b); + _mm256_storeu_si256(reinterpret_cast<__m256i*>(&dst[i]), bf); + } + for (; i < n; i++) { + dst[i] = c10::convert(src[i]); + } +} + +template <> +Vectorized inline fmadd(const Vectorized& a, + const Vectorized& b, const Vectorized& c) { + __m256 a_lo, a_hi; + __m256 b_lo, b_hi; + __m256 c_lo, c_hi; + cvtbf16_fp32(__m256i(a), a_lo, a_hi); + cvtbf16_fp32(__m256i(b), b_lo, b_hi); + cvtbf16_fp32(__m256i(c), c_lo, c_hi); + auto o1 = _mm256_fmadd_ps(a_lo, b_lo, c_lo); + auto o2 = _mm256_fmadd_ps(a_hi, b_hi, c_hi); + return cvtfp32_bf16(o1, o2); +} + +template <> +class Vectorized: public Vectorized16 { +public: + using Vectorized16::Vectorized16; + + Vectorized frac() const; + + Vectorized eq(const Vectorized& other) const; + Vectorized ne(const Vectorized& other) const; + Vectorized gt(const Vectorized& other) const; + Vectorized ge(const Vectorized& other) const; + Vectorized lt(const Vectorized& other) const; + Vectorized le(const Vectorized& other) const; +}; + +Vectorized inline operator+(const Vectorized& a, const Vectorized& b) { + return binary_op_as_fp32(a, b, [](const __m256& x, const __m256& y) { return _mm256_add_ps(x, y); }); +} +Vectorized inline operator-(const Vectorized& a, const Vectorized& b) { + return binary_op_as_fp32(a, b, [](const __m256& x, const __m256& y) { return _mm256_sub_ps(x, y); }); +} +Vectorized inline operator*(const Vectorized& a, const Vectorized& b) { + return binary_op_as_fp32(a, b, [](const __m256& x, const __m256& y) { return _mm256_mul_ps(x, y); }); +} +Vectorized inline operator/(const Vectorized& a, const Vectorized& b) { + return binary_op_as_fp32(a, b, [](const __m256& x, const __m256& y) { return _mm256_div_ps(x, y); }); +} +Vectorized inline operator&(const Vectorized& a, const Vectorized& b) { + return _mm256_and_si256(a, b); +} +Vectorized inline operator|(const Vectorized& a, const Vectorized& b) { + return _mm256_or_si256(a, b); +} +Vectorized inline operator^(const Vectorized& a, const Vectorized& b) { + return _mm256_xor_si256(a, b); +} + +inline Vectorized Vectorized::eq(const Vectorized& other) const { + return (*this == other) & Vectorized(1.0f); +} +inline Vectorized Vectorized::ne(const Vectorized& other) const { + return (*this != other) & Vectorized(1.0f); +} +inline Vectorized Vectorized::gt(const Vectorized& other) const { + return (*this > other) & Vectorized(1.0f); +} +inline Vectorized Vectorized::ge(const Vectorized& other) const { + return (*this >= other) & Vectorized(1.0f); +} +inline Vectorized Vectorized::lt(const Vectorized& other) const { + return (*this < other) & Vectorized(1.0f); +} +inline Vectorized Vectorized::le(const Vectorized& other) const { + return (*this <= other) & Vectorized(1.0f); +} + +// frac. Implement this here so we can use subtraction +inline Vectorized Vectorized::frac() const { + return *this - this->trunc(); +} + +// Implements the IEEE 754 201X `maximum` operation, which propagates NaN if +// either input is a NaN. +template <> +Vectorized inline maximum(const Vectorized& a, const Vectorized& b) { + __m256 a_lo, a_hi; + __m256 b_lo, b_hi; + cvtfp16_fp32(__m256i(a), a_lo, a_hi); + cvtfp16_fp32(__m256i(b), b_lo, b_hi); + auto max_lo = _mm256_max_ps(a_lo, b_lo); + auto max_hi = _mm256_max_ps(a_hi, b_hi); + auto nan_lo = _mm256_cmp_ps(a_lo, b_lo, _CMP_UNORD_Q); + auto nan_hi = _mm256_cmp_ps(a_hi, b_hi, _CMP_UNORD_Q); + // Exploit the fact that all-ones is a NaN. + auto o1 = _mm256_or_ps(max_lo, nan_lo); + auto o2 = _mm256_or_ps(max_hi, nan_hi); + return cvtfp32_fp16(o1, o2); +} + +// Implements the IEEE 754 201X `minimum` operation, which propagates NaN if +// either input is a NaN. +template <> +Vectorized inline minimum(const Vectorized& a, const Vectorized& b) { + __m256 a_lo, a_hi; + __m256 b_lo, b_hi; + cvtfp16_fp32(__m256i(a), a_lo, a_hi); + cvtfp16_fp32(__m256i(b), b_lo, b_hi); + auto min_lo = _mm256_min_ps(a_lo, b_lo); + auto min_hi = _mm256_min_ps(a_hi, b_hi); + auto nan_lo = _mm256_cmp_ps(a_lo, b_lo, _CMP_UNORD_Q); + auto nan_hi = _mm256_cmp_ps(a_hi, b_hi, _CMP_UNORD_Q); + // Exploit the fact that all-ones is a NaN. + auto o1 = _mm256_or_ps(min_lo, nan_lo); + auto o2 = _mm256_or_ps(min_hi, nan_hi); + return cvtfp32_fp16(o1, o2); +} + +template <> +Vectorized inline clamp(const Vectorized& a, + const Vectorized& min, const Vectorized& max) { + __m256 a_lo, a_hi; + __m256 min_lo, min_hi; + __m256 max_lo, max_hi; + cvtfp16_fp32(__m256i(a), a_lo, a_hi); + cvtfp16_fp32(__m256i(min), min_lo, min_hi); + cvtfp16_fp32(__m256i(max), max_lo, max_hi); + auto o1 = _mm256_min_ps(max_lo, _mm256_max_ps(min_lo, a_lo)); + auto o2 = _mm256_min_ps(max_hi, _mm256_max_ps(min_hi, a_hi)); + return cvtfp32_fp16(o1, o2); +} + +template <> +Vectorized inline clamp_max(const Vectorized& a, const Vectorized& max) { + __m256 a_lo, a_hi; + __m256 max_lo, max_hi; + cvtfp16_fp32(__m256i(a), a_lo, a_hi); + cvtfp16_fp32(__m256i(max), max_lo, max_hi); + auto o1 = _mm256_min_ps(max_lo, a_lo); + auto o2 = _mm256_min_ps(max_hi, a_hi); + return cvtfp32_fp16(o1, o2); +} + +template <> +Vectorized inline clamp_min(const Vectorized& a, const Vectorized& min) { + __m256 a_lo, a_hi; + __m256 min_lo, min_hi; + cvtfp16_fp32(__m256i(a), a_lo, a_hi); + cvtfp16_fp32(__m256i(min), min_lo, min_hi); + auto o1 = _mm256_max_ps(min_lo, a_lo); + auto o2 = _mm256_max_ps(min_hi, a_hi); + return cvtfp32_fp16(o1, o2); +} + +template <> +inline void convert(const Half* src, Half* dst, int64_t n) { + int64_t i; +#pragma unroll + for (i = 0; i <= (n - Vectorized::size()); i += Vectorized::size()) { + auto vsrc = _mm256_loadu_si256(reinterpret_cast<__m256i*>((void*)(src + i))); + _mm256_storeu_si256(reinterpret_cast<__m256i*>((void*)(dst + i)), vsrc); + } +#pragma unroll + for (; i < n; i++) { + dst[i] = src[i]; + } +} + +template <> +inline void convert(const float* src, Half* dst, int64_t n) { + int64_t i; + for (i = 0; i + Vectorized::size() <= n; i += Vectorized::size()) { + __m256 a = _mm256_loadu_ps(&src[i]); + __m256 b = _mm256_loadu_ps(&src[i + 8]); + + __m256i c = cvtfp32_fp16(a, b); + _mm256_storeu_si256(reinterpret_cast<__m256i*>(&dst[i]), c); + } + for (; i < n; i++) { + dst[i] = c10::convert(src[i]); + } +} + +template <> +inline void convert(const double* src, Half* dst, int64_t n) { + auto load_float = [](const double *src) -> __m256 { + // Load one float vector from an array of doubles + __m128 a = _mm256_cvtpd_ps(_mm256_loadu_pd(src)); + __m128 b = _mm256_cvtpd_ps(_mm256_loadu_pd(src + 4)); + return _mm256_insertf128_ps(_mm256_castps128_ps256(a), b, 1); + }; + + int64_t i; + for (i = 0; i + Vectorized::size() <= n; i += Vectorized::size()) { + __m256 a = load_float(&src[i]); + __m256 b = load_float(&src[i + 8]); + + __m256i c = cvtfp32_fp16(a, b); + _mm256_storeu_si256(reinterpret_cast<__m256i*>(&dst[i]), c); + } + for (; i < n; i++) { + dst[i] = c10::convert(src[i]); + } +} + +template <> +Vectorized inline fmadd(const Vectorized& a, + const Vectorized& b, const Vectorized& c) { + __m256 a_lo, a_hi; + __m256 b_lo, b_hi; + __m256 c_lo, c_hi; + cvtfp16_fp32(__m256i(a), a_lo, a_hi); + cvtfp16_fp32(__m256i(b), b_lo, b_hi); + cvtfp16_fp32(__m256i(c), c_lo, c_hi); + auto o1 = _mm256_fmadd_ps(a_lo, b_lo, c_lo); + auto o2 = _mm256_fmadd_ps(a_hi, b_hi, c_hi); + return cvtfp32_fp16(o1, o2); +} + +#define CONVERT_VECTORIZED_INIT(type, name) \ +inline std::tuple, Vectorized> convert_##name##_float(const Vectorized& a) { \ + __m256 o1, o2; \ + cvt_to_fp32(__m256i(a), o1, o2); \ + return std::make_tuple(o1, o2); \ +} \ +inline Vectorized convert_float_##name(const Vectorized& a, const Vectorized& b) { \ + return cvt_from_fp32(__m256(a), __m256(b)); \ +} +CONVERT_VECTORIZED_INIT(BFloat16, bfloat16); +CONVERT_VECTORIZED_INIT(Half, half); + +#else // defined(CPU_CAPABILITY_AVX2) && !defined(_MSC_VER) + +#define CONVERT_NON_VECTORIZED_INIT(type, name) \ +inline std::tuple, Vectorized> convert_##name##_float(const Vectorized& a) { \ + constexpr int64_t K = Vectorized::size(); \ + __at_align__ float arr[K]; \ + __at_align__ type arr2[K]; \ + a.store(arr2); \ + convert(arr2, arr, K); \ + return std::make_tuple( \ + Vectorized::loadu(arr), \ + Vectorized::loadu(arr + Vectorized::size())); \ +} \ +inline Vectorized convert_float_##name(const Vectorized& a, const Vectorized& b) { \ + constexpr int64_t K = Vectorized::size(); \ + __at_align__ float arr[K]; \ + __at_align__ type arr2[K]; \ + a.store(arr); \ + b.store(arr + Vectorized::size()); \ + convert(arr, arr2, K); \ + return Vectorized::loadu(arr2); \ +} +CONVERT_NON_VECTORIZED_INIT(BFloat16, bfloat16); +CONVERT_NON_VECTORIZED_INIT(Half, half); + +#endif // defined(CPU_CAPABILITY_AVX2) && !defined(_MSC_VER) + +#if defined(CPU_CAPABILITY_AVX2) && !defined(_MSC_VER) +#define LOAD_FP32_VECTORIZED_INIT(type, name) \ +inline void load_fp32_from_##name(const type *data, Vectorized& out) { \ + auto values = _mm_loadu_si128(reinterpret_cast(data)); \ + __m256 out_values; \ + cvt_to_fp32(values, out_values); \ + out = out_values; \ +} \ +\ +inline void load_fp32_from_##name(const type *data, Vectorized& out1, Vectorized& out2) { \ + auto vec = Vectorized::loadu(data); \ + __m256 out1_values, out2_values; \ + cvt_to_fp32(vec, out1_values, out2_values); \ + out1 = out1_values; \ + out2 = out2_values; \ +} +LOAD_FP32_VECTORIZED_INIT(BFloat16, bf16); +LOAD_FP32_VECTORIZED_INIT(Half, fp16); + +#else // defined(CPU_CAPABILITY_AVX2) && !defined(_MSC_VER) +#define LOAD_FP32_NON_VECTORIZED_INIT(type, name) \ +inline void load_fp32_from_##name(const type *data, Vectorized& out) { \ + __at_align__ float values[Vectorized::size()]; \ + for (const auto k : c10::irange(Vectorized::size())) { \ + values[k] = data[k]; \ + } \ + out = Vectorized::loadu(values); \ +} \ +\ +inline void load_fp32_from_##name(const type *data, Vectorized& out1, Vectorized& out2) { \ + load_fp32_from_##name(data, out1); \ + data += Vectorized::size(); \ + load_fp32_from_##name(data, out2); \ +} +LOAD_FP32_NON_VECTORIZED_INIT(BFloat16, bf16); +LOAD_FP32_NON_VECTORIZED_INIT(Half, fp16); + +#endif +}} // namsepace at::vec::CPU_CAPABILITY + +#pragma GCC diagnostic pop diff --git a/shared/package-files/86/867c22257eca63138e0053357f0b9927365b9190dd22551457321b9d22290e02/h80 b/shared/package-files/86/867c22257eca63138e0053357f0b9927365b9190dd22551457321b9d22290e02/h80 new file mode 100644 index 0000000000000000000000000000000000000000..2845716f87cbd086080b1b7c3a80a79d7b34693e Binary files /dev/null and b/shared/package-files/86/867c22257eca63138e0053357f0b9927365b9190dd22551457321b9d22290e02/h80 differ diff --git a/shared/package-files/86/867e3fc65812e83f798654264d08e42c134543a094f957751cda218da5195f5b/_tools.pyx.in b/shared/package-files/86/867e3fc65812e83f798654264d08e42c134543a094f957751cda218da5195f5b/_tools.pyx.in new file mode 100644 index 0000000000000000000000000000000000000000..24d06c546b5ad515e33675a593c07460265da6c4 --- /dev/null +++ b/shared/package-files/86/867e3fc65812e83f798654264d08e42c134543a094f957751cda218da5195f5b/_tools.pyx.in @@ -0,0 +1,1557 @@ +#cython: boundscheck=False +#cython: wraparound=False +#cython: cdivision=False +""" +State Space Model - Cython tools + +Author: Chad Fulton +License: Simplified-BSD +""" + +# Typical imports +cimport numpy as np +cimport cython +import numpy as np + +np.import_array() + +from statsmodels.includes.math cimport * +cimport scipy.linalg.cython_blas as blas +cimport scipy.linalg.cython_lapack as lapack + +include "statsmodels/tsa/statespace/_blas_int.pxi" + +cdef FORTRAN = 1 + +ctypedef fused sm_type_t: + np.float64_t + np.float32_t + np.complex64_t + np.complex128_t + + +# ------------------------------------------------------------------------ +# Array shape validation + +cdef validate_matrix_shape(str name, Py_ssize_t *shape, int nrows, int ncols, nobs=None): + if not shape[0] == nrows: + raise ValueError('Invalid shape for %s matrix: requires %d rows,' + ' got %d' % (name, nrows, shape[0])) + if not shape[1] == ncols: + raise ValueError('Invalid shape for %s matrix: requires %d columns,' + 'got %d' % (name, shape[1], shape[1])) + if nobs is not None and shape[2] not in [1, nobs]: + raise ValueError('Invalid time-varying dimension for %s matrix:' + ' requires 1 or %d, got %d' % (name, nobs, shape[2])) + + +cdef validate_vector_shape(str name, Py_ssize_t *shape, int nrows, nobs = None): + if not shape[0] == nrows: + raise ValueError('Invalid shape for %s vector: requires %d rows,' + ' got %d' % (name, nrows, shape[0])) + if nobs is not None and not shape[1] in [1, nobs]: + raise ValueError('Invalid time-varying dimension for %s vector:' + ' requires 1 or %d got %d' % (name, nobs, shape[1])) + + +# ------------------------------------------------------------------------ +# Blas Wrapping + +cdef inline copy(blas_int size, sm_type_t* src_arr, sm_type_t* target, + blas_int incx=1, blas_int incy=1): + """ + Parameters + ---------- + size : int + number of elements in vectors `src_arr` and `target` + src_arr : sm_type_t* + Pointer to Array that we are copying _from_ + target : sm_type_t* + Pointer to Array that we are copying _to_ + incx : int, default 1 + Specifies the increment for the elements of `src_arr` + incy : int, default 1 + Specifies the increment for the elements of `target` + + References + ---------- + https://software.intel.com/en-us/mkl-developer-reference-c-cblas-copy + """ + if sm_type_t is np.float32_t: + blas.scopy(&size, src_arr, &incx, target, &incy) + elif sm_type_t is np.float64_t: + blas.dcopy(&size, src_arr, &incx, target, &incy) + elif sm_type_t is np.complex64_t: + blas.ccopy(&size, src_arr, &incx, target, &incy) + elif sm_type_t is np.complex128_t: + blas.zcopy(&size, src_arr, &incx, target, &incy) + + +cdef inline swap(blas_int size, sm_type_t* src_arr, sm_type_t* target, + blas_int incx=1, blas_int incy=1): + """ + Parameters + ---------- + size : int + number of elements in vectors `src_arr` and `target` + src_arr : sm_type_t* + Pointer to first of two arrays being swapped + target : sm_type_t* + Pointer to second of two arrays being swapped + incx : int, default 1 + Specifies the increment for the elements of `src_arr` + incy : int, default 1 + Specifies the increment for the elements of `target` + + References + ---------- + https://software.intel.com/en-us/mkl-developer-reference-c-cblas-swap + """ + + if sm_type_t is np.float32_t: + blas.sswap(&size, src_arr, &incx, target, &incy) + elif sm_type_t is np.float64_t: + blas.dswap(&size, src_arr, &incx, target, &incy) + elif sm_type_t is np.complex64_t: + blas.cswap(&size, src_arr, &incx, target, &incy) + elif sm_type_t is np.complex128_t: + blas.zswap(&size, src_arr, &incx, target, &incy) + + +# ------------------------------------------------------------------------ + +{{py: + +TYPES = { + "s": ("np.float32_t", "np.float32", "np.NPY_FLOAT32"), + "d": ("np.float64_t", "float", "np.NPY_FLOAT64"), + "c": ("np.complex64_t", "np.complex64", "np.NPY_COMPLEX64"), + "z": ("np.complex128_t", "complex", "np.NPY_COMPLEX128"), +} + +}} + +{{for prefix, types in TYPES.items()}} +{{py:cython_type, dtype, typenum = types}} +{{py: +combined_prefix = prefix +combined_cython_type = cython_type +if prefix == 'c': + combined_prefix = 'z' + combined_cython_type = 'np.complex128_t' +if prefix == 's': + combined_prefix = 'd' + combined_cython_type = 'np.float64_t' +}} + + +cdef blas_bint _{{prefix}}select1({{cython_type}} * a): + return 0 + +cdef blas_bint _{{prefix}}select2({{cython_type}} * a, {{cython_type}} * b): + return 0 + +cdef int _{{prefix}}solve_discrete_lyapunov({{cython_type}} * a, {{cython_type}} * q, int n, int complex_step=False) except *: + # Note: some of this code (esp. the Sylvester solving part) cribbed from + # https://raw.githubusercontent.com/scipy/scipy/master/scipy/linalg/_solvers.py + + # Solve an equation of the form $A'XA-X=-Q$ + # a: input / output + # q: input / output + cdef: + int i, j + blas_int info + blas_int inc = 1 + blas_int n_ = n + blas_int n2 = n**2 + {{if prefix == 's' or prefix == 'c'}} + np.float32_t scale = 0.0 + {{else}} + np.float64_t scale = 0.0 + {{endif}} + {{cython_type}} tmp = 0.0 + {{cython_type}} alpha = 1.0 + {{cython_type}} beta = 0.0 + {{cython_type}} delta = -2.0 + char trans + cdef np.npy_intp dim[2] + cdef {{cython_type}} [::1,:] apI, capI, u, v + cdef blas_int [::1,:] ipiv + # Dummy selection function, will not actually be referenced since we do not + # need to order the eigenvalues in the ?gees call. + cdef: + blas_int sdim + blas_int lwork = 3*n + blas_bint bwork + cdef np.npy_intp dim1[1] + cdef {{cython_type}} [::1,:] work + cdef {{cython_type}} [:] wr + {{if prefix == 's' or prefix == 'c'}} + cdef np.float32_t [:] wi + {{else}} + cdef np.float64_t [:] wi + {{endif}} + + # Initialize arrays + dim[0] = n; dim[1] = n; + apI = np.PyArray_ZEROS(2, dim, {{typenum}}, FORTRAN) + capI = np.PyArray_ZEROS(2, dim, {{typenum}}, FORTRAN) + u = np.PyArray_ZEROS(2, dim, {{typenum}}, FORTRAN) + v = np.PyArray_ZEROS(2, dim, {{typenum}}, FORTRAN) + if sizeof(blas_int) == 4: + ipiv = np.PyArray_ZEROS(2, dim, np.NPY_INT32, FORTRAN) + else: + ipiv = np.PyArray_ZEROS(2, dim, np.NPY_INT64, FORTRAN) + + dim1[0] = n; + wr = np.PyArray_ZEROS(1, dim1, {{typenum}}, FORTRAN) + {{if prefix == 's'}} + wi = np.PyArray_ZEROS(1, dim1, {{typenum}}, FORTRAN) + {{else}} + wi = np.PyArray_ZEROS(1, dim1, np.NPY_FLOAT64, FORTRAN) + {{endif}} + #vs = np.PyArray_ZEROS(2, dim, {{typenum}}, FORTRAN) + dim[0] = lwork; dim[1] = lwork; + work = np.PyArray_ZEROS(2, dim, {{typenum}}, FORTRAN) + + # - Solve for b.conj().transpose() -------- + + # Get apI = a + I (stored in apI) + # = (a + eye) + # For: c = 2*np.dot(np.dot(inv(a + eye), q), aHI_inv) + copy(n2, a, &apI[0, 0]) + # (for loop below adds the identity) + + # Get conj(a) + I (stored in capI) + # a^H + I -> capI + # For: aHI_inv = inv(aH + eye) + copy(n2, a, &capI[0, 0]) + # (for loop below adds the identity) + + # Get conj(a) - I (stored in a) + # a^H - I -> a + # For: b = np.dot(aH - eye, aHI_inv) + # (for loop below subtracts the identity) + + # Add / subtract identity matrix + for i in range(n): + apI[i,i] = apI[i,i] + 1 # apI -> a + eye + capI[i,i] = capI[i,i] + 1 # aH + eye + a[i + i*n] = a[i + i*n] - 1 # a - eye + + # Solve [conj(a) + I] b' = [conj(a) - I] (result stored in a) + # For: b = np.dot(aH - eye, aHI_inv) + # Where: aHI_inv = inv(aH + eye) + # where b = (a^H - eye) (a^H + eye)^{-1} + # or b^H = (a + eye)^{-1} (a - eye) + # or (a + eye) b^H = (a - eye) + lapack.{{prefix}}getrf(&n_, &n_, &capI[0,0], &n_, &ipiv[0,0], &info) + + if not info == 0: + raise np.linalg.LinAlgError('LU decomposition error.') + + lapack.{{prefix}}getrs("N", &n_, &n_, &capI[0,0], &n_, &ipiv[0,0], + a, &n_, &info) + + if not info == 0: + raise np.linalg.LinAlgError('LU solver error.') + + # Now we have b^H; we could take the conjugate transpose to get b, except + # that the input to the continuous Lyapunov equation is exactly + # b^H, so we already have the quantity we need. + + # - Solve for (-c) -------- + + # where c = 2*np.dot(np.dot(inv(a + eye), q), aHI_inv) + # = 2*(a + eye)^{-1} q (a^H + eye)^{-1} + # and with q Hermitian + # consider x = (a + eye)^{-1} q (a^H + eye)^{-1} + # this can be done in two linear solving steps: + # 1. consider y = q (a^H + eye)^{-1} + # or y (a^H + eye) = q + # or (a^H + eye)^H y^H = q^H + # or (a + eye) y^H = q + # 2. Then consider x = (a + eye)^{-1} y + # or (a + eye) x = y + + # Solve [conj(a) + I] tmp' = q (result stored in q) + # For: y = q (a^H + eye)^{-1} => (a + eye) y^H = q + lapack.{{prefix}}getrs("N", &n_, &n_, &capI[0,0], &n_, &ipiv[0,0], + q, &n_, &info) + + if not info == 0: + raise np.linalg.LinAlgError('LU solver error.') + + # Replace the result (stored in q) with its (conjugate) transpose + for j in range(1, n): + for i in range(j): + tmp = q[i + j*n] + q[i + j*n] = q[j + i*n] + q[j + i*n] = tmp + + {{if combined_prefix == 'z'}} + if not complex_step: + for i in range(n2): + q[i] = q[i] - q[i].imag * 2.0j + {{endif}} + + lapack.{{prefix}}getrs("N", &n_, &n_, &capI[0,0], &n_, &ipiv[0,0], + q, &n_, &info) + + if not info == 0: + raise np.linalg.LinAlgError('LU solver error.') + + # q -> -2.0 * q + blas.{{prefix}}scal(&n2, &delta, q, &inc) + + # - Solve continuous time Lyapunov -------- + + # Now solve the continuous time Lyapunov equation (AX + XA^H = Q), on the + # transformed inputs ... + + # ... which requires solving the continuous time Sylvester equation + # (AX + XB = Q) where B = A^H + + # Compute the real Schur decomposition of a (unordered) + # TODO compute the optimal lwork rather than always using 3*n + {{if combined_prefix == 'd'}} + # a is now the Schur form of A; (r) + # u is now the unitary Schur transformation matrix for A; (u) + # In the usual case, we will also have: + # r = s, so s is also stored in a + # u = v, so v is also stored in u + # In the complex-step case, we will instead have: + # r = s.conj() + # u = v.conj() + lapack.{{prefix}}gees("V", "N", &_{{prefix}}select2, &n_, + a, &n_, + &sdim, + &wr[0], &wi[0], + &u[0,0], &n_, + &work[0,0], &lwork, + &bwork, &info) + {{else}} + lapack.{{prefix}}gees("V", "N", &_{{prefix}}select1, &n_, + a, &n_, + &sdim, + &wr[0], + &u[0,0], &n_, + &work[0,0], &lwork, + &wi[0], + &bwork, &info) + {{endif}} + + if not info == 0: + raise np.linalg.LinAlgError('Schur decomposition solver error.') + + # Get v (so that in the complex step case we can take the conjugate) + copy(n2, &u[0, 0], &v[0, 0]) + # If complex step, take the conjugate + {{if combined_prefix == 'z'}} + if complex_step: + for i in range(n): + for j in range(n): + v[i,j] = v[i,j] - v[i,j].imag * 2.0j + {{endif}} + + # Construct f = u^H*q*u (result overwrites q) + # In the usual case, v = u + # In the complex step case, v = u.conj() + blas.{{prefix}}gemm("N", "N", &n_, &n_, &n_, + &alpha, q, &n_, + &v[0,0], &n_, + &beta, &capI[0,0], &n_) + blas.{{prefix}}gemm("C", "N", &n_, &n_, &n_, + &alpha, &u[0,0], &n_, + &capI[0,0], &n_, + &beta, q, &n_) + + # DTRYSL Solve op(A)*X + X*op(B) = scale*C which is here: + # r*X + X*r = scale*q + # results overwrite q + copy(n2, a, &apI[0, 0]) + {{if combined_prefix == 'z'}} + if complex_step: + for i in range(n): + for j in range(n): + apI[j,i] = apI[j,i] - apI[j,i].imag * 2.0j + {{endif}} + lapack.{{prefix}}trsyl("N", "C", &inc, &n_, &n_, + a, &n_, + &apI[0,0], &n_, + q, &n_, + &scale, &info) + + # Scale q by scale + if not scale == 1.0: + blas.{{prefix}}scal(&n2, <{{cython_type}}*> &scale, q, &inc) + + # Calculate the solution: u * q * v^H (results overwrite q) + # In the usual case, v = u + # In the complex step case, v = u.conj() + blas.{{prefix}}gemm("N", "C", &n_, &n_, &n_, + &alpha, q, &n_, + &v[0,0], &n_, + &beta, &capI[0,0], &n_) + blas.{{prefix}}gemm("N", "N", &n_, &n_, &n_, + &alpha, &u[0,0], &n_, + &capI[0,0], &n_, + &beta, q, &n_) + + +cpdef _{{prefix}}compute_coefficients_from_multivariate_pacf({{cython_type}} [::1,:] partial_autocorrelations, + {{cython_type}} [::1,:] error_variance, + int transform_variance, + int order, int k_endog): + """ + Notes + ----- + + This uses the ?trmm BLAS functions which are not available in + Scipy v0.11.0 + """ + # Constants + cdef: + {{cython_type}} alpha = 1.0 + {{cython_type}} beta = 0.0 + {{cython_type}} gamma = -1.0 + int k_endog2 = k_endog**2 + int k_endog_order = k_endog * order + int k_endog_order1 = k_endog * (order+1) + int info, s, k + blas_int k_endog_ = k_endog + blas_int k_endog2_ = k_endog2 + blas_int info_ + # Local variables + cdef: + np.npy_intp dim2[2] + {{cython_type}} [::1, :] initial_variance + {{cython_type}} [::1, :] forward_variance + {{cython_type}} [::1, :] backward_variance + {{cython_type}} [::1, :] autocovariances + {{cython_type}} [::1, :] forwards1 + {{cython_type}} [::1, :] forwards2 + {{cython_type}} [::1, :] backwards1 + {{cython_type}} [::1, :] backwards2 + {{cython_type}} [::1, :] forward_factors + {{cython_type}} [::1, :] backward_factors + {{cython_type}} [::1, :] tmp + {{cython_type}} [::1, :] tmp2 + # Pointers + cdef: + {{cython_type}} * forwards + {{cython_type}} * prev_forwards + {{cython_type}} * backwards + {{cython_type}} * prev_backwards + # ?trmm + # cdef {{prefix}}trmm_t *{{prefix}}trmm = <{{prefix}}trmm_t*>Capsule_AsVoidPtr(blas.{{prefix}}trmm._cpointer) + + # dim2[0] = self.k_endog; dim2[1] = storage; + # self.forecast = np.PyArray_ZEROS(2, dim2, {{typenum}}, FORTRAN) + + # If we want to keep the provided variance but with the constrained + # coefficient matrices, we need to make a copy here, and then after the + # main loop we will transform the coefficients to match the passed variance + if not transform_variance: + initial_variance = np.asfortranarray(error_variance.copy()) + # Need to make the input variance large enough that the recursions + # do not lead to zero-matrices due to roundoff error, which would case + # exceptions from the Cholesky decompositions. + # Note that this will still not always ensure positive definiteness, + # and for k_endog, order large enough an exception may still be raised + error_variance = np.asfortranarray(np.eye(k_endog, dtype={{dtype}}) * (order + k_endog)**10) + + # Initialize matrices + dim2[0] = k_endog; dim2[1] = k_endog; + forward_variance = np.PyArray_ZEROS(2, dim2, {{typenum}}, FORTRAN) + backward_variance = np.PyArray_ZEROS(2, dim2, {{typenum}}, FORTRAN) + forward_factors = np.PyArray_ZEROS(2, dim2, {{typenum}}, FORTRAN) + backward_factors = np.PyArray_ZEROS(2, dim2, {{typenum}}, FORTRAN) + tmp = np.PyArray_ZEROS(2, dim2, {{typenum}}, FORTRAN) + tmp2 = np.PyArray_ZEROS(2, dim2, {{typenum}}, FORTRAN) + + dim2[0] = k_endog; dim2[1] = k_endog_order; + # \phi_{s,k}, s = 1, ..., p + # k = 1, ..., s+1 + forwards1 = np.PyArray_ZEROS(2, dim2, {{typenum}}, FORTRAN) + forwards2 = np.PyArray_ZEROS(2, dim2, {{typenum}}, FORTRAN) + # \phi_{s,k}^* + backwards1 = np.PyArray_ZEROS(2, dim2, {{typenum}}, FORTRAN) + backwards2 = np.PyArray_ZEROS(2, dim2, {{typenum}}, FORTRAN) + + dim2[0] = k_endog; dim2[1] = k_endog_order1; + autocovariances = np.PyArray_ZEROS(2, dim2, {{typenum}}, FORTRAN) + + copy(k_endog2, &error_variance[0, 0], &forward_variance[0, 0]) # \Sigma_s + copy(k_endog2, &error_variance[0, 0], &backward_variance[0, 0]) # \Sigma_s^*, s = 0, ..., p + copy(k_endog2, &error_variance[0, 0], &autocovariances[0, 0]) # \Gamma_s + + # error_variance_factor = linalg.cholesky(error_variance, lower=True) + copy(k_endog2, &error_variance[0, 0], &forward_factors[0,0]) + lapack.{{prefix}}potrf("L", &k_endog_, &forward_factors[0,0], &k_endog_, &info_) + copy(k_endog2_, &forward_factors[0, 0], &backward_factors[0, 0]) + + # We fill in the entries as follows: + # [1,1] + # [2,2], [2,1] + # [3,3], [3,1], [3,2] + # ... + # [p,p], [p,1], ..., [p,p-1] + # the last row, correctly ordered, is then used as the coefficients + for s in range(order): # s = 0, ..., p-1 + if s % 2 == 0: + forwards = &forwards1[0, 0] + prev_forwards = &forwards2[0, 0] + backwards = &backwards1[0, 0] + prev_backwards = &backwards2[0, 0] + else: + forwards = &forwards2[0, 0] + prev_forwards = &forwards1[0, 0] + backwards = &backwards2[0, 0] + prev_backwards = &backwards1[0, 0] + + # Create the "last" (k = s+1) matrix + # Note: this is for k = s+1. However, below we then have to fill + # in for k = 1, ..., s in order. + # P L*^{-1} = x + # x L* = P + # L*' x' = P' + # forwards[:, s*k_endog:(s+1)*k_endog] = np.dot( + # forward_factors, + # linalg.solve_triangular( + # backward_factors, partial_autocorrelations[:, s*k_endog:(s+1)*k_endog].T, + # lower=True, trans='T').T + # ) + for k in range(k_endog): + copy(k_endog, &partial_autocorrelations[k, s*k_endog], &tmp[0, k], k_endog) + lapack.{{prefix}}trtrs("L", "T", "N", &k_endog_, &k_endog_, &backward_factors[0,0], &k_endog_, + &tmp[0, 0], &k_endog_, &info_) + # {{prefix}}gemm("N", "T", &k_endog, &k_endog, &k_endog, + # &alpha, &forward_factors[0,0], &k_endog, + # &tmp[0, 0], &k_endog, + # &beta, &forwards[s*k_endog2], &k_endog) + blas.{{prefix}}trmm("R", "L", "T", "N", &k_endog_, &k_endog_, + &alpha, &forward_factors[0,0], &k_endog_, + &tmp[0, 0], &k_endog_) + for k in range(k_endog): + copy(k_endog, &tmp[k, 0], &forwards[s*k_endog2 + k*k_endog], k_endog) + + # P' L^{-1} = x + # x L = P' + # L' x' = P + # backwards[:, s*k_endog:(s+1)*k_endog] = np.dot( + # backward_factors, + # linalg.solve_triangular( + # forward_factors, partial_autocorrelations[:, s*k_endog:(s+1)*k_endog], + # lower=True, trans='T').T + # ) + copy(k_endog2, &partial_autocorrelations[0, s*k_endog], &tmp[0, 0]) + lapack.{{prefix}}trtrs("L", "T", "N", &k_endog_, &k_endog_, &forward_factors[0, 0], &k_endog_, + &tmp[0, 0], &k_endog_, &info_) + # {{prefix}}gemm("N", "T", &k_endog, &k_endog, &k_endog, + # &alpha, &backward_factors[0, 0], &k_endog, + # &tmp[0, 0], &k_endog, + # &beta, &backwards[s * k_endog2], &k_endog) + blas.{{prefix}}trmm("R", "L", "T", "N", &k_endog_, &k_endog_, + &alpha, &backward_factors[0,0], &k_endog_, + &tmp[0, 0], &k_endog_) + for k in range(k_endog): + copy(k_endog, &tmp[k, 0], &backwards[s*k_endog2 + k*k_endog], k_endog) + + # Update the variance + # Note: if s >= 1, this will be further updated in the for loop + # below + # Also, this calculation will be re-used in the forward variance + # tmp = np.dot(forwards[:, s*k_endog:(s+1)*k_endog], backward_variance) + # tmpT = np.dot(backward_variance.T, forwards[:, s*k_endog:(s+1)*k_endog].T) + blas.{{prefix}}gemm("T", "T", &k_endog_, &k_endog_, &k_endog_, + &alpha, &backward_variance[0, 0], &k_endog_, + &forwards[s * k_endog2], &k_endog_, + &beta, &tmp[0, 0], &k_endog_) + # autocovariances[:, (s+1)*k_endog:(s+2)*k_endog] = tmp.copy().T + copy(k_endog2, &tmp[0, 0], &autocovariances[0, (s+1)*k_endog]) + + # Create the remaining k = 1, ..., s matrices, + # only has an effect if s >= 1 + for k in range(s): + # forwards[:, k*k_endog:(k+1)*k_endog] = ( + # prev_forwards[:, k*k_endog:(k+1)*k_endog] - + # np.dot( + # forwards[:, s*k_endog:(s+1)*k_endog], + # prev_backwards[:, (s-k-1)*k_endog:(s-k)*k_endog] + # ) + # ) + copy(k_endog2, &prev_forwards[k * k_endog2], &forwards[k * k_endog2]) + blas.{{prefix}}gemm("N", "N", &k_endog_, &k_endog_, &k_endog_, + &gamma, &forwards[s * k_endog2], &k_endog_, + &prev_backwards[(s - k - 1) * k_endog2], &k_endog_, + &alpha, &forwards[k * k_endog2], &k_endog_) + + # backwards[:, k*k_endog:(k+1)*k_endog] = ( + # prev_backwards[:, k*k_endog:(k+1)*k_endog] - + # np.dot( + # backwards[:, s*k_endog:(s+1)*k_endog], + # prev_forwards[:, (s-k-1)*k_endog:(s-k)*k_endog] + # ) + # ) + copy(k_endog2, &prev_backwards[k * k_endog2], &backwards[k * k_endog2]) + blas.{{prefix}}gemm("N", "N", &k_endog_, &k_endog_, &k_endog_, + &gamma, &backwards[s * k_endog2], &k_endog_, + &prev_forwards[(s - k - 1) * k_endog2], &k_endog_, + &alpha, &backwards[k * k_endog2], &k_endog_) + + # autocovariances[:, (s+1)*k_endog:(s+2)*k_endog] += np.dot( + # autocovariances[:, (k+1)*k_endog:(k+2)*k_endog], + # prev_forwards[:, (s-k-1)*k_endog:(s-k)*k_endog].T + # ) + blas.{{prefix}}gemm("N", "T", &k_endog_, &k_endog_, &k_endog_, + &alpha, &autocovariances[0, (k+1)*k_endog], &k_endog_, + &prev_forwards[(s - k - 1) * k_endog2], &k_endog_, + &alpha, &autocovariances[0, (s+1)*k_endog], &k_endog_) + + # Create forward and backwards variances + # backward_variance = ( + # backward_variance - + # np.dot( + # np.dot(backwards[:, s*k_endog:(s+1)*k_endog], forward_variance), + # backwards[:, s*k_endog:(s+1)*k_endog].T + # ) + # ) + blas.{{prefix}}gemm("N", "N", &k_endog_, &k_endog_, &k_endog_, + &alpha, &backwards[s * k_endog2], &k_endog_, + &forward_variance[0, 0], &k_endog_, + &beta, &tmp2[0, 0], &k_endog_) + blas.{{prefix}}gemm("N", "T", &k_endog_, &k_endog_, &k_endog_, + &gamma, &tmp2[0, 0], &k_endog_, + &backwards[s * k_endog2], &k_endog_, + &alpha, &backward_variance[0, 0], &k_endog_) + # forward_variance = ( + # forward_variance - + # np.dot(tmp, forwards[:, s*k_endog:(s+1)*k_endog].T) + # ) + # forward_variance = ( + # forward_variance - + # np.dot(tmpT.T, forwards[:, s*k_endog:(s+1)*k_endog].T) + # ) + blas.{{prefix}}gemm("T", "T", &k_endog_, &k_endog_, &k_endog_, + &gamma, &tmp[0, 0], &k_endog_, + &forwards[s * k_endog2], &k_endog_, + &alpha, &forward_variance[0, 0], &k_endog_) + + # Cholesky factors + # forward_factors = linalg.cholesky(forward_variance, lower=True) + # backward_factors = linalg.cholesky(backward_variance, lower=True) + copy(k_endog2_, &forward_variance[0, 0], &forward_factors[0, 0]) + lapack.{{prefix}}potrf("L", &k_endog_, &forward_factors[0,0], &k_endog_, &info_) + copy(k_endog2_, &backward_variance[0, 0], &backward_factors[0, 0]) + lapack.{{prefix}}potrf("L", &k_endog_, &backward_factors[0,0], &k_endog_, &info_) + + + # If we do not want to use the transformed variance, we need to + # adjust the constrained matrices, as presented in Lemma 2.3, see above + if not transform_variance: + if order % 2 == 0: + forwards = &forwards2[0,0] + else: + forwards = &forwards1[0,0] + + # Here, we need to construct T such that: + # variance = T * initial_variance * T' + # To do that, consider the Cholesky of variance (L) and + # input_variance (M) to get: + # L L' = T M M' T' = (TM) (TM)' + # => L = T M + # => L M^{-1} = T + # initial_variance_factor = np.linalg.cholesky(initial_variance) + # L' + lapack.{{prefix}}potrf("U", &k_endog_, &initial_variance[0,0], &k_endog_, &info_) + # transformed_variance_factor = np.linalg.cholesky(variance) + # M' + copy(k_endog2_, &forward_variance[0, 0], &tmp[0, 0]) + lapack.{{prefix}}potrf("U", &k_endog_, &tmp[0,0], &k_endog_, &info_) + # {{prefix}}potri("L", &k_endog_, &tmp[0,0], &k_endog_, &info_) + + # We need to zero out the lower triangle of L', because ?trtrs only + # knows that M' is upper triangular + for s in range(k_endog - 1): # column + for k in range(s+1, k_endog): # row + initial_variance[k, s] = 0 + + # Note that T is lower triangular + # L M^{-1} = T + # M' T' = L' + # transform = np.dot(initial_variance_factor, + # np.linalg.inv(transformed_variance_factor)) + lapack.{{prefix}}trtrs("U", "N", "N", &k_endog_, &k_endog_, &tmp[0,0], &k_endog_, + &initial_variance[0, 0], &k_endog_, &info_) + # Now: + # initial_variance = T' + + for s in range(order): + # forwards[:, s*k_endog:(s+1)*k_endog] = ( + # np.dot( + # np.dot(transform, forwards[:, s*k_endog:(s+1)*k_endog]), + # inv_transform + # ) + # ) + # TF T^{-1} = x + # TF = x T + # (TF)' = T' x' + + # Get TF + copy(k_endog2, &forwards[s * k_endog2], &tmp2[0, 0]) + blas.{{prefix}}trmm("L", "U", "T", "N", &k_endog_, &k_endog_, + &alpha, &initial_variance[0, 0], &k_endog_, + &tmp2[0, 0], &k_endog_) + for k in range(k_endog): + copy(k_endog, &tmp2[k, 0], &tmp[0, k], k_endog) + # Get x' + lapack.{{prefix}}trtrs("U", "N", "N", &k_endog_, &k_endog_, &initial_variance[0,0], &k_endog_, + &tmp[0, 0], &k_endog_, &info_) + # Get x + for k in range(k_endog): + copy(k_endog, &tmp[k, 0], &forwards[s * k_endog2 + k*k_endog], k_endog) + + + if order % 2 == 0: + return forwards2, forward_variance + else: + return forwards1, forward_variance + +cpdef _{{prefix}}constrain_sv_less_than_one({{cython_type}} [::1,:] unconstrained, int order, int k_endog): + """ + Transform arbitrary matrices to matrices with singular values less than + one. + + Corresponds to Lemma 2.2 in Ansley and Kohn (1986). See + `constrain_stationary_multivariate` for more details. + """ + # Constants + cdef: + {{cython_type}} alpha = 1.0 + int k_endog2 = k_endog**2 + int info, i + blas_int k_endog_ = k_endog + blas_int k_endog2_ = k_endog2 + blas_int info_ + # Local variables + cdef: + np.npy_intp dim2[2] + {{cython_type}} [::1, :] constrained + {{cython_type}} [::1, :] tmp + {{cython_type}} [::1, :] eye + + dim2[0] = k_endog; dim2[1] = k_endog * order; + constrained = np.PyArray_ZEROS(2, dim2, {{typenum}}, FORTRAN) + dim2[0] = k_endog; dim2[1] = k_endog; + tmp = np.PyArray_ZEROS(2, dim2, {{typenum}}, FORTRAN) + eye = np.PyArray_ZEROS(2, dim2, {{typenum}}, FORTRAN) + + eye = np.asfortranarray(np.eye(k_endog, dtype={{dtype}})) + for i in range(order): + copy(k_endog2, &eye[0, 0], &tmp[0, 0]) + blas.{{prefix}}gemm("N", "T", &k_endog_, &k_endog_, &k_endog_, + &alpha, &unconstrained[0, i*k_endog], &k_endog_, + &unconstrained[0, i*k_endog], &k_endog_, + &alpha, &tmp[0, 0], &k_endog_) + lapack.{{prefix}}potrf("L", &k_endog_, &tmp[0, 0], &k_endog_, &info_) + + copy(k_endog2_, &unconstrained[0, i*k_endog], &constrained[0, i*k_endog]) + # constrained.append(linalg.solve_triangular(B, A, lower=lower)) + lapack.{{prefix}}trtrs("L", "N", "N", &k_endog_, &k_endog_, &tmp[0, 0], &k_endog_, + &constrained[0, i*k_endog], &k_endog_, &info_) + return constrained + +cdef int _{{prefix}}ldl({{cython_type}} * A, int n) except *: + # See Golub and Van Loan, Algorithm 4.1.2 + cdef: + int info = 0 + int j, i, k + np.npy_intp dim[1] + np.float64_t tol = 1e-15 + {{cython_type}} [:] v + + dim[0] = n + v = np.PyArray_ZEROS(1, dim, {{typenum}}, FORTRAN) + + for j in range(n): + # Compute v(1:j) + v[j] = A[j + j*n] + + # Positive definite element: use Golub and Van Loan algorithm + if v[j].real < -tol: + info = -j + break + elif v[j].real > tol: + for i in range(j): + v[i] = A[j + i*n] * A[i + i*n] + v[j] = v[j] - A[j + i*n] * v[i] + + # Store d(j) and compute L(j+1:n,j) + A[j + j*n] = v[j] + for i in range(j+1, n): + for k in range(j): + A[i + j*n] = A[i + j*n] - A[i + k*n] * v[k] + A[i + j*n] = A[i + j*n] / v[j] + # Positive semi-definite element: zero the appropriate column + else: + info = 1 + for i in range(j, n): + A[i + j*n] + + return info + +cpdef int {{prefix}}ldl({{cython_type}} [::1, :] A) except *: + _{{prefix}}ldl(&A[0,0], A.shape[0]) + +cdef int _{{prefix}}reorder_missing_diagonal({{cython_type}} * a, int * missing, int n): + """ + a is a pointer to an n x n diagonal array A + missing is a pointer to an n x 1 array + n is the dimension of A + """ + cdef int i, j, k, nobs + + nobs = n + # Construct the non-missing index + for i in range(n): + nobs = nobs - missing[i] + + # Perform replacement + k = nobs-1 + for i in range(n-1,-1,-1): + if not missing[i]: + a[i + i*n] = a[k + k*n] + k = k - 1 + else: + a[i + i*n] = 0 + +cdef int _{{prefix}}reorder_missing_submatrix({{cython_type}} * a, int * missing, int n): + """ + a is a pointer to an n x n array A + missing is a pointer to an n x 1 array + n is the dimension of A + """ + cdef int i, j, k, nobs + + _{{prefix}}reorder_missing_rows(a, missing, n, n) + _{{prefix}}reorder_missing_cols(a, missing, n, n) + +cdef int _{{prefix}}reorder_missing_rows({{cython_type}} * a, int * missing, int n, int m): + """ + a is a pointer to an n x m array A + missing is a pointer to an n x 1 array + n is the number of rows of A + m is the number of columns of A + """ + cdef int i, j, k, nobs + + nobs = n + # Construct the non-missing index + for i in range(n): + nobs = nobs - missing[i] + + # Perform replacement + k = nobs-1 + for i in range(n-1,-1,-1): + if not missing[i]: + swap(m, &a[i], &a[k], n, n) + k = k - 1 + + +cdef int _{{prefix}}reorder_missing_cols({{cython_type}} * a, int * missing, int n, int m): + """ + a is a pointer to an n x m array A + missing is a pointer to an m x 1 array + n is the number of rows of A + m is the number of columns of A + """ + cdef int i, k, nobs + + nobs = m + # Construct the non-missing index + for i in range(m): + nobs = nobs - missing[i] + + # Perform replacement + k = nobs-1 + for i in range(m-1,-1,-1): + if not missing[i]: + swap(n, &a[i*n], &a[k*n]) + k = k - 1 + + +cpdef int {{prefix}}reorder_missing_matrix({{cython_type}} [::1, :, :] A, int [::1, :] missing, int reorder_rows, int reorder_cols, int diagonal) except *: + cdef int n, m, T, t + + n, m, T = A.shape[0:3] + + if reorder_rows and reorder_cols: + if not n == m: + raise RuntimeError('Reordering a submatrix requires n = m') + if diagonal: + for t in range(T): + _{{prefix}}reorder_missing_diagonal(&A[0, 0, t], &missing[0, t], n) + else: + for t in range(T): + _{{prefix}}reorder_missing_submatrix(&A[0, 0, t], &missing[0, t], n) + elif diagonal: + raise RuntimeError('`diagonal` argument only valid with reordering a submatrix') + elif reorder_rows: + for t in range(T): + _{{prefix}}reorder_missing_rows(&A[0, 0, t], &missing[0, t], n, m) + elif reorder_cols: + for t in range(T): + _{{prefix}}reorder_missing_cols(&A[0, 0, t], &missing[0, t], n, m) + + +cpdef int {{prefix}}reorder_missing_vector({{cython_type}} [::1, :] A, int [::1, :] missing) except *: + cdef int i, k, t, n, T, nobs + + n, T = A.shape[0:2] + + for t in range(T): + _{{prefix}}reorder_missing_rows(&A[0, t], &missing[0, t], n, 1) + + +cdef int _{{prefix}}copy_missing_diagonal({{cython_type}} * a, {{cython_type}} * b, int * missing, int n): + """ + Copy the non-missing block of diagonal entries + + a is a pointer to an n x n diagonal array A (copy from) + b is a pointer to an n x n diagonal array B (copy to) + missing is a pointer to an n x 1 array + n is the dimension of A, B + """ + cdef int i, j, k, nobs + + nobs = n + # Construct the non-missing index + for i in range(n): + nobs = nobs - missing[i] + + # Perform replacement + k = nobs-1 + for i in range(nobs): + b[i + i*n] = a[i + i*n] + + +cdef int _{{prefix}}copy_missing_submatrix({{cython_type}} * a, {{cython_type}} * b, int * missing, int n): + """ + Copy the non-missing submatrix + + a is a pointer to an n x n diagonal array A (copy from) + b is a pointer to an n x n diagonal array B (copy to) + missing is a pointer to an n x 1 array + n is the dimension of A, B + """ + cdef int i, j, nobs + + nobs = n + # Construct the non-missing index + for i in range(n): + nobs = nobs - missing[i] + + # Perform replacement + for i in range(nobs): + copy(nobs, &a[i*n], &b[i*n]) + + +cdef int _{{prefix}}copy_missing_rows({{cython_type}} * a, {{cython_type}} * b, int * missing, int n, int m): + """ + a is a pointer to an n x m array A + b is a pointer to an n x n diagonal array B (copy to) + missing is a pointer to an n x 1 array + n is the number of rows of A + m is the number of columns of A + """ + cdef int i, j, k, nobs + + nobs = n + # Construct the non-missing index + for i in range(n): + nobs = nobs - missing[i] + + # Perform replacement + for i in range(nobs): + copy(m, &a[i], &b[i], n, n) + + +cdef int _{{prefix}}copy_missing_cols({{cython_type}} * a, {{cython_type}} * b, int * missing, int n, int m): + """ + a is a pointer to an n x m array A + b is a pointer to an n x n diagonal array B (copy to) + missing is a pointer to an m x 1 array + n is the number of rows of A + m is the number of columns of A + """ + cdef int i, j, nobs + + nobs = m + # Construct the non-missing index + for i in range(m): + nobs = nobs - missing[i] + + # Perform replacement + for i in range(nobs): + copy(n, &a[i*n], &b[i*n]) + + +cpdef int {{prefix}}copy_missing_matrix({{cython_type}} [::1, :, :] A, {{cython_type}} [::1, :, :] B, int [::1, :] missing, int missing_rows, int missing_cols, int diagonal) except *: + cdef int n, m, T, t, A_T, A_t = 0, time_varying + + n, m, T = B.shape[0:3] + A_T = A.shape[2] + time_varying = (A_T == T) + + if missing_rows and missing_cols: + if not n == m: + raise RuntimeError('Copying a submatrix requires n = m') + if diagonal: + for t in range(T): + if time_varying: + A_t = t + _{{prefix}}copy_missing_diagonal(&A[0, 0, A_t], &B[0, 0, t], &missing[0, t], n) + else: + for t in range(T): + if time_varying: + A_t = t + _{{prefix}}copy_missing_submatrix(&A[0, 0, A_t], &B[0, 0, t], &missing[0, t], n) + elif diagonal: + raise RuntimeError('`diagonal` argument only valid with copying a submatrix') + elif missing_rows: + for t in range(T): + if time_varying: + A_t = t + _{{prefix}}copy_missing_rows(&A[0, 0, A_t], &B[0, 0, t], &missing[0, t], n, m) + elif missing_cols: + for t in range(T): + if time_varying: + A_t = t + _{{prefix}}copy_missing_cols(&A[0, 0, A_t], &B[0, 0, t], &missing[0, t], n, m) + pass + + +cpdef int {{prefix}}copy_missing_vector({{cython_type}} [::1, :] A, {{cython_type}} [::1, :] B, int [::1, :] missing) except *: + cdef int n, t, T, A_t = 0, A_T + + n, T = B.shape[0:2] + A_T = A.shape[1] + time_varying = (A_T == T) + + for t in range(T): + if time_varying: + A_t = t + _{{prefix}}copy_missing_rows(&A[0, A_t], &B[0, t], &missing[0, t], n, 1) + +cdef int _{{prefix}}copy_index_diagonal({{cython_type}} * a, {{cython_type}} * b, int * index, int n): + """ + Copy the non-index block of diagonal entries + + a is a pointer to an n x n diagonal array A (copy from) + b is a pointer to an n x n diagonal array B (copy to) + index is a pointer to an n x 1 array + n is the dimension of A, B + """ + cdef int i, j, k, nobs + + # Perform replacement + for i in range(n): + if index[i]: + b[i + i*n] = a[i + i*n] + + +cdef int _{{prefix}}copy_index_submatrix({{cython_type}} * a, {{cython_type}} * b, int * index, int n): + """ + Copy the non-index submatrix + + a is a pointer to an n x n diagonal array A (copy from) + b is a pointer to an n x n diagonal array B (copy to) + index is a pointer to an n x 1 array + n is the dimension of A, B + """ + _{{prefix}}copy_index_rows(a, b, index, n, n) + _{{prefix}}copy_index_cols(a, b, index, n, n) + + +cdef int _{{prefix}}copy_index_rows({{cython_type}} * a, {{cython_type}} * b, int * index, int n, int m): + """ + a is a pointer to an n x m array A + b is a pointer to an n x n diagonal array B (copy to) + index is a pointer to an n x 1 array + n is the number of rows of A + m is the number of columns of A + """ + cdef int i + + # Perform replacement + for i in range(n): + if index[i]: + copy(m, &a[i], &b[i], n, n) + + +cdef int _{{prefix}}copy_index_cols({{cython_type}} * a, {{cython_type}} * b, int * index, int n, int m): + """ + a is a pointer to an n x m array A + b is a pointer to an n x n diagonal array B (copy to) + index is a pointer to an m x 1 array + n is the number of rows of A + m is the number of columns of A + """ + cdef int i, j, k, nobs + + # Perform replacement + for i in range(m): + if index[i]: + copy(n, &a[i*n], &b[i*n]) + + +cpdef int {{prefix}}copy_index_matrix({{cython_type}} [::1, :, :] A, {{cython_type}} [::1, :, :] B, int [::1, :] index, int index_rows, int index_cols, int diagonal) except *: + cdef int n, m, T, t, A_T, A_t = 0, time_varying + + n, m, T = B.shape[0:3] + A_T = A.shape[2] + time_varying = (A_T == T) + + if index_rows and index_cols: + if not n == m: + raise RuntimeError('Copying a submatrix requires n = m') + if diagonal: + for t in range(T): + if time_varying: + A_t = t + _{{prefix}}copy_index_diagonal(&A[0, 0, A_t], &B[0, 0, t], &index[0, t], n) + else: + for t in range(T): + if time_varying: + A_t = t + _{{prefix}}copy_index_submatrix(&A[0, 0, A_t], &B[0, 0, t], &index[0, t], n) + elif diagonal: + raise RuntimeError('`diagonal` argument only valid with copying a submatrix') + elif index_rows: + for t in range(T): + if time_varying: + A_t = t + _{{prefix}}copy_index_rows(&A[0, 0, A_t], &B[0, 0, t], &index[0, t], n, m) + elif index_cols: + for t in range(T): + if time_varying: + A_t = t + _{{prefix}}copy_index_cols(&A[0, 0, A_t], &B[0, 0, t], &index[0, t], n, m) + + +cpdef int {{prefix}}copy_index_vector({{cython_type}} [::1, :] A, {{cython_type}} [::1, :] B, int [::1, :] index) except *: + cdef int n, t, T, A_t = 0, A_T + + n, T = B.shape[0:2] + A_T = A.shape[1] + time_varying = (A_T == T) + + for t in range(T): + if time_varying: + A_t = t + _{{prefix}}copy_index_rows(&A[0, A_t], &B[0, t], &index[0, t], n, 1) + +cdef int _{{prefix}}select_cov(int k_states, int k_posdef, int k_states_total, + {{cython_type}} * tmp, + {{cython_type}} * selection, + {{cython_type}} * cov, + {{cython_type}} * selected_cov): + cdef: + int i, k_states2 = k_states**2 + {{cython_type}} alpha = 1.0 + {{cython_type}} beta = 0.0 + blas_int k_states_ = k_states + blas_int k_posdef_ = k_posdef + blas_int k_states_total_ = k_states_total + + # Only need to do something if there is a covariance matrix + # (i.e k_posdof == 0) + if k_posdef > 0: + + # #### Calculate selected state covariance matrix + # $Q_t^* = R_t Q_t R_t'$ + # + # Combine a selection matrix and a covariance matrix to get + # a simplified (but possibly singular) "selected" covariance + # matrix (see e.g., Durbin and Koopman p. 43) + + # `tmp0` array used here, dimension $(m \times r)$ + + # $\\#_0 = 1.0 * R_t Q_t$ + # $(m \times r) = (m \times r) (r \times r)$ + blas.{{prefix}}gemm("N", "N", &k_states_, &k_posdef_, &k_posdef_, + &alpha, selection, &k_states_total_, + cov, &k_posdef_, + &beta, tmp, &k_states_) + # $Q_t^* = 1.0 * \\#_0 R_t'$ + # $(m \times m) = (m \times r) (m \times r)'$ + blas.{{prefix}}gemm("N", "T", &k_states_, &k_states_, &k_posdef_, + &alpha, tmp, &k_states_, + selection, &k_states_total_, + &beta, selected_cov, &k_states_) + else: + for i in range(k_states2): + selected_cov[i] = 0 + + +cpdef _{{prefix}}compute_smoothed_state_weights( + {{prefix}}KalmanSmoother smoother, + {{prefix}}KalmanFilter kfilter, + {{prefix}}Statespace model, + np.int32_t [:] compute_t, + np.int32_t [:] compute_j, + {{cython_type}} scale, + int compute_prior_weights=False): + cdef: + int t, i, j, n_t, n_j, min_j, max_j, p_t, p_j, t0 + int n = model.nobs + int p = model.k_endog + int m = model.k_states + int pm = p * m + int filter_collapsed, compute_K + int inc = 1 + int compute + blas_int inc_ = 1 + blas_int pm_ = pm + blas_int p_ = p + blas_int p_j_ + blas_int _k_endog_ = model._k_endog + blas_int _k_states_ = model._k_states + blas_int k_endog_ = model.k_endog + blas_int k_states_ = kfilter.k_states + blas_int k_states2_ = kfilter.k_states2 + np.int32_t [:] store_t, store_j + np.npy_intp dim1[1] + np.npy_intp dim2[2] + np.npy_intp dim3[3] + np.npy_intp dim4[4] + {{cython_type}} alpha = 1.0 + {{cython_type}} beta = 0.0 + {{cython_type}} gamma = -1.0 + {{cython_type}} scalar + {{cython_type}} [::1, :, :] Hi_W, K, prior_weights + {{cython_type}} [::1, :, :, :] weights, state_intercept_weights + {{cython_type}} [::1, :] tmp, F, Fi, FiZ + {{cython_type}} * _Pt + {{cython_type}} * _Z + {{cython_type}} * _H + {{cython_type}} * _FiZ + {{cython_type}} * _K + + n_t = compute_t.size + n_j = compute_j.size + min_j = compute_j[0] + max_j = compute_j[n_j - 1] + dim1[0] = n; + store_j = np.PyArray_ZEROS(1, dim1, np.NPY_INT32, FORTRAN) + for i in range(n_j): + j = compute_j[i] + store_j[j] = True + + dim1[0] = n; + store_t = np.PyArray_ZEROS(1, dim1, np.NPY_INT32, FORTRAN) + for i in range(n_t): + t = compute_t[i] + store_t[t] = True + + # Determine the first index that we need to compute + t0 = min(min_j, compute_t[0]) + # Let double-letters denote indexing that starts from t0 + nn = n - t0 + + # Flags + filter_collapsed = kfilter.filter_method & 0x20 + + # Create required storage and temporary matrices + # Hi_W = np.zeros((p, m, nn), order='F') + # K = np.zeros((p, m, nn), order='F') + # weights = np.zeros((m, p, nn, nn), order='F') * np.nan + # state_intercept_weights = np.zeros((m, m, nn, nn), order='F') * np.nan + # tmp = np.zeros((m, m), order='F') + # F = np.zeros((p, p), order='F') + # Fi = np.zeros((p, p), order='F') + # FiZ = np.zeros((p, m), order='F') + dim4[0] = m; dim4[1] = p; dim4[2] = nn; dim4[3] = nn; + weights = np.PyArray_ZEROS(4, dim4, {{typenum}}, FORTRAN) * np.nan + dim4[0] = m; dim4[1] = m; dim4[2] = nn; dim4[3] = nn; + state_intercept_weights = np.PyArray_ZEROS(4, dim4, {{typenum}}, FORTRAN) * np.nan + dim3[0] = p; dim3[1] = m; dim3[2] = nn; + Hi_W = np.PyArray_ZEROS(3, dim3, {{typenum}}, FORTRAN) + K = np.PyArray_ZEROS(3, dim3, {{typenum}}, FORTRAN) + dim3[0] = m; dim3[1] = m; dim3[2] = nn; + # Note: the order here is (m, l, t), where the `l` dimension refers to the + # element of the initial state vector, and the `m, t` dimensions refer to + # the element / time point of the smoothed state vector. + prior_weights = np.PyArray_ZEROS(3, dim3, {{typenum}}, FORTRAN) * np.nan + dim2[0] = p; dim2[1] = p; + F = np.PyArray_ZEROS(2, dim2, {{typenum}}, FORTRAN) + Fi = np.PyArray_ZEROS(2, dim2, {{typenum}}, FORTRAN) + dim2[0] = m; dim2[1] = p; + tmp = np.PyArray_ZEROS(2, dim2, {{typenum}}, FORTRAN) + dim2[0] = p; dim2[1] = m; + FiZ = np.PyArray_ZEROS(2, dim2, {{typenum}}, FORTRAN) + + # First pass to compute required quantities, if necessary + for t in range(t0, n): + # Recall that double-letters denotes indexes that start from t0 + # Hi_W[:, :, nn], K[:, :, nn], weights[:, :, nn, nn], + # state_intercept_weights[:, :, nn, nn], prior_weights[:, :, nn] + tt = t - t0 + + p_t = p - model.nmissing[t] + + # Handling of exact diffuse periods is not currently available + # Also, we can skip computations for periods that are not needed for + # the requested t, j combinations + if (t < kfilter.nobs_diffuse + or (not store_t[t] and (t < min_j or t > max_j))): + # No need to set this when using the dictionary + # K[tt] = np.zeros((m, p_t)) * np.nan + # Hi_W[tt] is already initialized to NaNs, so can skip: + # Hi_W[tt, :] = np.nan + continue + + # Move the statespace representation to the time period, but do not + # apply the collapse (first zero) or diagonalization (second zero) + model.seek(t, 0, 0, True) + # Update blas_int copies after seek (model dimensions may change) + _k_endog_ = model._k_endog + _k_states_ = model._k_states + k_endog_ = model.k_endog + k_states_ = kfilter.k_states + k_states2_ = kfilter.k_states2 + + # Get statespace objects + if p_t == 0: + # No need to set this when using the dictionary + # K.append(np.zeros((m, 0))) + # Hi_W[tt] is already initialized to NaNs, so can skip: + # Hi_W[tt, :] = np.nan + continue + + # Get filtered objects + compute_K = kfilter.univariate_filter[t] or filter_collapsed + if compute_K: + # Note: typically would need to multiply both P and F by the + # scale, but F is inverted and K = T P Z' F^{-1}, the scale terms + # cancel out + # F = Z @ P @ Z.T + H + # Note: here use Fi as a temporary array for the moment + # Z @ P + blas.{{prefix}}gemm("N", "N", &_k_endog_, &_k_states_, &_k_states_, + &alpha, model._design, &_k_endog_, + &kfilter.predicted_state_cov[0, 0, t], &k_states_, + &beta, &FiZ[0, 0], &k_endog_) + for i in range(model._k_endog): # columns + for j in range(model._k_endog): # rows + F[j, i] = model._obs_cov[j + i*model._k_endog] + blas.{{prefix}}gemm("N", "T", &_k_endog_, &_k_endog_, &_k_states_, + &alpha, &FiZ[0, 0], &k_endog_, + model._design, &_k_endog_, + &alpha, &F[0, 0], &k_endog_) + # Note: pinv is required for the cases in which F is singular + # Note: use T to make the array Fortran contiguous + Fi = np.linalg.pinv(F[:p_t, :p_t]).T + blas.{{prefix}}gemm("N", "N", &_k_endog_, &_k_states_, &_k_endog_, + &alpha, &Fi[0, 0], &_k_endog_, + model._design, &_k_endog_, + &beta, &FiZ[0, 0], &k_endog_) + + # P_t Z_t' F_t^{-1} + # $(m \times p) = (m \times m) (m \times p)$ + blas.{{prefix}}gemm("N", "T", &_k_states_, &_k_endog_, &_k_states_, + &alpha, &kfilter.predicted_state_cov[0, 0, t], &k_states_, + &FiZ[0, 0], &k_endog_, + &beta, &tmp[0, 0], &k_states_) + # T_t P_t Z_t' F_t^{-1} + # $(m \times p) = (m \times m) (m \times p)$ + blas.{{prefix}}gemm("N", "N", &_k_states_, &_k_endog_, &_k_states_, + &alpha, model._transition, &k_states_, + &tmp[0, 0], &k_states_, + &beta, &K[0, 0, tt], &k_states_) + + _FiZ = &FiZ[0, 0] + _K = &K[0, 0, tt] + else: + _FiZ = &kfilter.tmp3[0, 0, t] + _K = &kfilter.kalman_gain[0, 0, t] + + # Compute required quantites + # W_j = H_j (F_j^{-1} Z_j - K_j' N_j L_j) + # => H_j^{-1} W_j = F_j^{-1} Z_j - K_j' N_j L_j + blas.{{prefix}}copy(&pm_, _FiZ, &inc_, &Hi_W[0, 0, tt], &inc_) + + scalar = 1. / scale + blas.{{prefix}}gemm("N", "N", &_k_states_, &_k_states_, &_k_states_, + &scalar, &smoother.scaled_smoothed_estimator_cov[0, 0, t + 1], &k_states_, + &smoother.innovations_transition[0, 0, t], &k_states_, + &beta, kfilter._tmp0, &k_states_) + + blas.{{prefix}}gemm("T", "N", &_k_endog_, &_k_states_, &_k_states_, + &gamma, _K, &k_states_, + kfilter._tmp0, &k_states_, + &scalar, &Hi_W[0, 0, tt], &k_endog_) + + # Second pass to compute weights + # for t in compute_t: + for t in range(n): + # Recall that double-letters denotes indexes that start from t0 + # Hi_W[:, :, nn], K[:, :, nn], weights[:, :, nn, nn], + # state_intercept_weights[:, :, nn, nn], prior_weights[:, :, nn] + tt = t - t0 + + if t < kfilter.nobs_diffuse or not store_t[t]: + continue + + # Backwards from j = t-1, t-2, ... min_j + # tmp = I - P_t N_{t - 1} + # Note: normally would need to multiply Pt by scale and divide N[t+1] + # by `scale`, but since they're being multiplied here, the scale terms + # cancel out. + blas.{{prefix}}gemm("N", "N", &_k_states_, &_k_states_, &_k_states_, + &gamma, &kfilter.predicted_state_cov[0, 0, t], &k_states_, + &smoother.scaled_smoothed_estimator_cov[0, 0, t], &k_states_, + &beta, kfilter._tmp0, &k_states_) + for i in range(m): + kfilter.tmp0[i, i] = kfilter.tmp0[i, i] + 1 + + # This is the weight of the prior on the smoothed state at + # time t == 0 + if t == 0 and compute_prior_weights: + blas.{{prefix}}copy(&k_states2_, kfilter._tmp0, &inc_, &prior_weights[0, 0, tt], &inc_) + + for j in range(t - 1, min_j - 1, -1): + # Again, recall that double-letters denotes indexes that start + # from t0 + jj = j - t0 + + # Since we are not handling any diffuse observations now, we can + # stop as soon as we get to the diffuse periods + if j < kfilter.nobs_diffuse: + continue + + p_j = p - model.nmissing[j] + + compute_K = kfilter.univariate_filter[t] or filter_collapsed + if compute_K: + _K = &K[0, 0, jj] + else: + _K = &kfilter.kalman_gain[0, 0, j] + + # The difference for univariate her would be: + # - if j in compute_j, then we have a subloop, i in p_j (but in + # descending order, since we're going backwards here), where + # we need to compute L_{j,i} and update tmp = tmp @ L_{j,i} + # - if j not in compute_j, then we only need to update + # tmp = tmp @ L[j] (as in the conventional case), since + # L[j] = \prod_i L_{j, i} + if store_j[j]: + if p_j > 0: + p_j_ = p_j + # weights[:, :p_j, tt, jj] = tmp @ K[jj][:, :p_j] + blas.{{prefix}}gemm("N", "N", &_k_states_, &p_j_, &_k_states_, + &alpha, kfilter._tmp0, &k_states_, + _K, &k_states_, + &beta, &weights[0, 0, tt, jj], &k_states_) + + # state_intercept_weights[:, :, tt, jj] = -tmp + blas.{{prefix}}copy(&k_states2_, kfilter._tmp0, &inc_, + &state_intercept_weights[0, 0, tt, jj], &inc_) + + if j > min_j or (j == 0 and compute_prior_weights): + # tmp = tmp @ L + blas.{{prefix}}gemm("N", "N", &_k_states_, &_k_states_, &_k_states_, + &alpha, kfilter._tmp0, &k_states_, + &smoother.innovations_transition[0, 0, j], &k_states_, + &beta, kfilter._tmp00, &k_states_) + blas.{{prefix}}copy(&k_states2_, kfilter._tmp00, &inc_, + kfilter._tmp0, &inc_) + + # This is the weight of the prior on the smoothed state at + # time t > 0 + if j == 0 and compute_prior_weights: + blas.{{prefix}}copy(&k_states2_, kfilter._tmp0, &inc_, &prior_weights[0, 0, tt], &inc_) + + # For j == t + # For the univariate case, some notes: + # Note in general about computing weights that we need to define what + # we mean by the state at time t. So if we were computing weights for + # the predicted state at time t, that would mean we were computing + # weights for the expectation of the time t state conditional on all + # information dated time t-1 or earlier. So I thnk that j==t refers + # to the specific case that j = t and i = p_t, i.e., we have + # incorporated all the information from time t. Then j = t but i < p_t + # would follow the j < t formula. + j = t + jj = tt + p_j = p - model.nmissing[t] + if store_j[j]: + if p_j > 0: + p_j_ = p_j + # weights[:, :p_j, tt, jj] = Pt @ Hi_W[j, :p_j].T + blas.{{prefix}}gemm("N", "T", &_k_states_, &p_j_, &_k_states_, + &scale, &kfilter.predicted_state_cov[0, 0, t], &k_states_, + &Hi_W[0, 0, jj], &k_endog_, + &beta, &weights[0, 0, tt, jj], &k_states_) + + # state_intercept_weights[:, :, tt, jj] = -(Pt @ Lt' @ Nt) + # Note: normally would need to multiply Pt by scale and divide Nt + # by `scale`, but since they're being multiplied here, the scale terms + # cancel out. + blas.{{prefix}}gemm("T", "N", &_k_states_, &_k_states_, &_k_states_, + &gamma, &smoother.innovations_transition[0, 0, t], &k_states_, + &smoother.scaled_smoothed_estimator_cov[0, 0, t + 1], &k_states_, + &beta, kfilter._tmp00, &k_states_) + blas.{{prefix}}gemm("N", "N", &_k_states_, &_k_states_, &_k_states_, + &alpha, &kfilter.predicted_state_cov[0, 0, t], &k_states_, + kfilter._tmp00, &k_states_, + &beta, &state_intercept_weights[0, 0, tt, jj], &k_states_) + + # Forwards from j = t+1, t+2, ..., max_j + # tmp = Pt + blas.{{prefix}}copy(&k_states2_, &kfilter.predicted_state_cov[0, 0, t], &inc_, kfilter._tmp0, &inc_) + if scale != 1: + blas.{{prefix}}scal(&k_states2_, &scale, kfilter._tmp0, &inc_) + if max_j > t: + # tmp = tmp @ L[t].T + blas.{{prefix}}gemm("N", "T", &_k_states_, &_k_states_, &_k_states_, + &alpha, kfilter._tmp0, &k_states_, + &smoother.innovations_transition[0, 0, t], &k_states_, + &beta, kfilter._tmp00, &k_states_) + blas.{{prefix}}copy(&k_states2_, kfilter._tmp00, &inc_, + kfilter._tmp0, &inc_) + + for j in range(t + 1, max_j + 1): + # Again, recall that double-letters denotes indexes that start + # from t0 + jj = j - t0 + p_j = p - model.nmissing[j] + + if store_j[j] and p_j > 0: + p_j_ = p_j + # weights[:, :p_j, tt, jj] = tmp @ Hi_W[j, :p_j].T + blas.{{prefix}}gemm("N", "T", &_k_states_, &p_j_, &_k_states_, + &alpha, kfilter._tmp0, &k_states_, + &Hi_W[0, 0, jj], &p_, + &beta, &weights[0, 0, tt, jj], &k_states_) + + # tmp = tmp @ L[j].T + blas.{{prefix}}gemm("N", "T", &_k_states_, &_k_states_, &_k_states_, + &alpha, kfilter._tmp0, &k_states_, + &smoother.innovations_transition[0, 0, j], &k_states_, + &beta, kfilter._tmp00, &k_states_) + blas.{{prefix}}copy(&k_states2_, kfilter._tmp00, &inc_, + kfilter._tmp0, &inc_) + + if store_j[j]: + # state_intercept_weights[:, :, tt, jj] = -(tmp @ N_j) + scalar = -1 / scale + blas.{{prefix}}gemm("N", "N", &_k_states_, &_k_states_, &_k_states_, + &scalar, kfilter._tmp00, &k_states_, + &smoother.scaled_smoothed_estimator_cov[0, 0, j + 1], &k_states_, + &beta, &state_intercept_weights[0, 0, tt, jj], &k_states_) + + return np.array(weights), np.array(state_intercept_weights), np.array(prior_weights), np.array(Hi_W) + +{{endfor}} diff --git a/shared/package-files/86/867e4bdeda2f9a20640c00ef4966269860dec7cd075514a759541a3454902dd1/pytest_ipdoctest.py b/shared/package-files/86/867e4bdeda2f9a20640c00ef4966269860dec7cd075514a759541a3454902dd1/pytest_ipdoctest.py new file mode 100644 index 0000000000000000000000000000000000000000..fd19ba4966590445dfdd7905726641d686d6564e --- /dev/null +++ b/shared/package-files/86/867e4bdeda2f9a20640c00ef4966269860dec7cd075514a759541a3454902dd1/pytest_ipdoctest.py @@ -0,0 +1,859 @@ +# Based on Pytest doctest.py +# Original license: +# The MIT License (MIT) +# +# Copyright (c) 2004-2021 Holger Krekel and others +"""Discover and run ipdoctests in modules and test files.""" +import builtins +import bdb +import inspect +import os +import platform +import sys +import traceback +import types +import warnings +from contextlib import contextmanager +from pathlib import Path +from typing import Any +from typing import Callable +from typing import Dict +from typing import Generator +from typing import Iterable +from typing import List +from typing import Optional +from typing import Pattern +from typing import Sequence +from typing import Tuple +from typing import Type +from typing import TYPE_CHECKING +from typing import Union + +import pytest +from _pytest import outcomes +from _pytest._code.code import ExceptionInfo +from _pytest._code.code import ReprFileLocation +from _pytest._code.code import TerminalRepr +from _pytest._io import TerminalWriter +from _pytest.compat import safe_getattr +from _pytest.config import Config +from _pytest.config.argparsing import Parser +from _pytest.fixtures import FixtureRequest +from _pytest.nodes import Collector +from _pytest.outcomes import OutcomeException +from _pytest.pathlib import fnmatch_ex +from _pytest.pathlib import import_path +from _pytest.python_api import approx +from _pytest.warning_types import PytestWarning + +if TYPE_CHECKING: + import doctest + +DOCTEST_REPORT_CHOICE_NONE = "none" +DOCTEST_REPORT_CHOICE_CDIFF = "cdiff" +DOCTEST_REPORT_CHOICE_NDIFF = "ndiff" +DOCTEST_REPORT_CHOICE_UDIFF = "udiff" +DOCTEST_REPORT_CHOICE_ONLY_FIRST_FAILURE = "only_first_failure" + +DOCTEST_REPORT_CHOICES = ( + DOCTEST_REPORT_CHOICE_NONE, + DOCTEST_REPORT_CHOICE_CDIFF, + DOCTEST_REPORT_CHOICE_NDIFF, + DOCTEST_REPORT_CHOICE_UDIFF, + DOCTEST_REPORT_CHOICE_ONLY_FIRST_FAILURE, +) + +# Lazy definition of runner class +RUNNER_CLASS = None +# Lazy definition of output checker class +CHECKER_CLASS: Optional[Type["IPDoctestOutputChecker"]] = None + + +def pytest_addoption(parser: Parser) -> None: + parser.addini( + "ipdoctest_optionflags", + "option flags for ipdoctests", + type="args", + default=["ELLIPSIS"], + ) + parser.addini( + "ipdoctest_encoding", "encoding used for ipdoctest files", default="utf-8" + ) + group = parser.getgroup("collect") + group.addoption( + "--ipdoctest-modules", + action="store_true", + default=False, + help="run ipdoctests in all .py modules", + dest="ipdoctestmodules", + ) + group.addoption( + "--ipdoctest-report", + type=str.lower, + default="udiff", + help="choose another output format for diffs on ipdoctest failure", + choices=DOCTEST_REPORT_CHOICES, + dest="ipdoctestreport", + ) + group.addoption( + "--ipdoctest-glob", + action="append", + default=[], + metavar="pat", + help="ipdoctests file matching pattern, default: test*.txt", + dest="ipdoctestglob", + ) + group.addoption( + "--ipdoctest-ignore-import-errors", + action="store_true", + default=False, + help="ignore ipdoctest ImportErrors", + dest="ipdoctest_ignore_import_errors", + ) + group.addoption( + "--ipdoctest-continue-on-failure", + action="store_true", + default=False, + help="for a given ipdoctest, continue to run after the first failure", + dest="ipdoctest_continue_on_failure", + ) + + +def pytest_unconfigure() -> None: + global RUNNER_CLASS + + RUNNER_CLASS = None + + +def pytest_collect_file( + file_path: Path, + parent: Collector, +) -> Optional[Union["IPDoctestModule", "IPDoctestTextfile"]]: + config = parent.config + if file_path.suffix == ".py": + if config.option.ipdoctestmodules and not any( + (_is_setup_py(file_path), _is_main_py(file_path)) + ): + mod: IPDoctestModule = IPDoctestModule.from_parent(parent, path=file_path) + return mod + elif _is_ipdoctest(config, file_path, parent): + txt: IPDoctestTextfile = IPDoctestTextfile.from_parent(parent, path=file_path) + return txt + return None + + +if int(pytest.__version__.split(".")[0]) < 7: + _collect_file = pytest_collect_file + + def pytest_collect_file( + path, + parent: Collector, + ) -> Optional[Union["IPDoctestModule", "IPDoctestTextfile"]]: + return _collect_file(Path(path), parent) + + _import_path = import_path + + def import_path(path, root): + import py.path + + return _import_path(py.path.local(path)) + + +def _is_setup_py(path: Path) -> bool: + if path.name != "setup.py": + return False + contents = path.read_bytes() + return b"setuptools" in contents or b"distutils" in contents + + +def _is_ipdoctest(config: Config, path: Path, parent: Collector) -> bool: + if path.suffix in (".txt", ".rst") and parent.session.isinitpath(path): + return True + globs = config.getoption("ipdoctestglob") or ["test*.txt"] + return any(fnmatch_ex(glob, path) for glob in globs) + + +def _is_main_py(path: Path) -> bool: + return path.name == "__main__.py" + + +class ReprFailDoctest(TerminalRepr): + def __init__( + self, reprlocation_lines: Sequence[Tuple[ReprFileLocation, Sequence[str]]] + ) -> None: + self.reprlocation_lines = reprlocation_lines + + def toterminal(self, tw: TerminalWriter) -> None: + for reprlocation, lines in self.reprlocation_lines: + for line in lines: + tw.line(line) + reprlocation.toterminal(tw) + + +class MultipleDoctestFailures(Exception): + def __init__(self, failures: Sequence["doctest.DocTestFailure"]) -> None: + super().__init__() + self.failures = failures + + +def _init_runner_class() -> Type["IPDocTestRunner"]: + import doctest + from .ipdoctest import IPDocTestRunner + + class PytestDoctestRunner(IPDocTestRunner): + """Runner to collect failures. + + Note that the out variable in this case is a list instead of a + stdout-like object. + """ + + def __init__( + self, + checker: Optional["IPDoctestOutputChecker"] = None, + verbose: Optional[bool] = None, + optionflags: int = 0, + continue_on_failure: bool = True, + ) -> None: + super().__init__(checker=checker, verbose=verbose, optionflags=optionflags) + self.continue_on_failure = continue_on_failure + + def report_failure( + self, + out, + test: "doctest.DocTest", + example: "doctest.Example", + got: str, + ) -> None: + failure = doctest.DocTestFailure(test, example, got) + if self.continue_on_failure: + out.append(failure) + else: + raise failure + + def report_unexpected_exception( + self, + out, + test: "doctest.DocTest", + example: "doctest.Example", + exc_info: Tuple[Type[BaseException], BaseException, types.TracebackType], + ) -> None: + if isinstance(exc_info[1], OutcomeException): + raise exc_info[1] + if isinstance(exc_info[1], bdb.BdbQuit): + outcomes.exit("Quitting debugger") + failure = doctest.UnexpectedException(test, example, exc_info) + if self.continue_on_failure: + out.append(failure) + else: + raise failure + + return PytestDoctestRunner + + +def _get_runner( + checker: Optional["IPDoctestOutputChecker"] = None, + verbose: Optional[bool] = None, + optionflags: int = 0, + continue_on_failure: bool = True, +) -> "IPDocTestRunner": + # We need this in order to do a lazy import on doctest + global RUNNER_CLASS + if RUNNER_CLASS is None: + RUNNER_CLASS = _init_runner_class() + # Type ignored because the continue_on_failure argument is only defined on + # PytestDoctestRunner, which is lazily defined so can't be used as a type. + return RUNNER_CLASS( # type: ignore + checker=checker, + verbose=verbose, + optionflags=optionflags, + continue_on_failure=continue_on_failure, + ) + + +class IPDoctestItem(pytest.Item): + def __init__( + self, + name: str, + parent: "Union[IPDoctestTextfile, IPDoctestModule]", + runner: Optional["IPDocTestRunner"] = None, + dtest: Optional["doctest.DocTest"] = None, + ) -> None: + super().__init__(name, parent) + self.runner = runner + self.dtest = dtest + self.obj = None + self.fixture_request: Optional[FixtureRequest] = None + + @classmethod + def from_parent( # type: ignore + cls, + parent: "Union[IPDoctestTextfile, IPDoctestModule]", + *, + name: str, + runner: "IPDocTestRunner", + dtest: "doctest.DocTest", + ): + # incompatible signature due to imposed limits on subclass + """The public named constructor.""" + return super().from_parent(name=name, parent=parent, runner=runner, dtest=dtest) + + def setup(self) -> None: + if self.dtest is not None: + self.fixture_request = _setup_fixtures(self) + globs = dict(getfixture=self.fixture_request.getfixturevalue) + for name, value in self.fixture_request.getfixturevalue( + "ipdoctest_namespace" + ).items(): + globs[name] = value + self.dtest.globs.update(globs) + + from .ipdoctest import IPExample + + if isinstance(self.dtest.examples[0], IPExample): + # for IPython examples *only*, we swap the globals with the ipython + # namespace, after updating it with the globals (which doctest + # fills with the necessary info from the module being tested). + self._user_ns_orig = {} + self._user_ns_orig.update(_ip.user_ns) + _ip.user_ns.update(self.dtest.globs) + # We must remove the _ key in the namespace, so that Python's + # doctest code sets it naturally + _ip.user_ns.pop("_", None) + _ip.user_ns["__builtins__"] = builtins + self.dtest.globs = _ip.user_ns + + def teardown(self) -> None: + from .ipdoctest import IPExample + + # Undo the test.globs reassignment we made + if isinstance(self.dtest.examples[0], IPExample): + self.dtest.globs = {} + _ip.user_ns.clear() + _ip.user_ns.update(self._user_ns_orig) + del self._user_ns_orig + + self.dtest.globs.clear() + + def runtest(self) -> None: + assert self.dtest is not None + assert self.runner is not None + _check_all_skipped(self.dtest) + self._disable_output_capturing_for_darwin() + failures: List["doctest.DocTestFailure"] = [] + + # exec(compile(..., "single", ...), ...) puts result in builtins._ + had_underscore_value = hasattr(builtins, "_") + underscore_original_value = getattr(builtins, "_", None) + + # Save our current directory and switch out to the one where the + # test was originally created, in case another doctest did a + # directory change. We'll restore this in the finally clause. + curdir = os.getcwd() + os.chdir(self.fspath.dirname) + try: + # Type ignored because we change the type of `out` from what + # ipdoctest expects. + self.runner.run(self.dtest, out=failures, clear_globs=False) # type: ignore[arg-type] + finally: + os.chdir(curdir) + if had_underscore_value: + setattr(builtins, "_", underscore_original_value) + elif hasattr(builtins, "_"): + delattr(builtins, "_") + + if failures: + raise MultipleDoctestFailures(failures) + + def _disable_output_capturing_for_darwin(self) -> None: + """Disable output capturing. Otherwise, stdout is lost to ipdoctest (pytest#985).""" + if platform.system() != "Darwin": + return + capman = self.config.pluginmanager.getplugin("capturemanager") + if capman: + capman.suspend_global_capture(in_=True) + out, err = capman.read_global_capture() + sys.stdout.write(out) + sys.stderr.write(err) + + # TODO: Type ignored -- breaks Liskov Substitution. + def repr_failure( # type: ignore[override] + self, + excinfo: ExceptionInfo[BaseException], + ) -> Union[str, TerminalRepr]: + import doctest + + failures: Optional[ + Sequence[Union[doctest.DocTestFailure, doctest.UnexpectedException]] + ] = None + if isinstance( + excinfo.value, (doctest.DocTestFailure, doctest.UnexpectedException) + ): + failures = [excinfo.value] + elif isinstance(excinfo.value, MultipleDoctestFailures): + failures = excinfo.value.failures + + if failures is None: + return super().repr_failure(excinfo) + + reprlocation_lines = [] + for failure in failures: + example = failure.example + test = failure.test + filename = test.filename + if test.lineno is None: + lineno = None + else: + lineno = test.lineno + example.lineno + 1 + message = type(failure).__name__ + # TODO: ReprFileLocation doesn't expect a None lineno. + reprlocation = ReprFileLocation(filename, lineno, message) # type: ignore[arg-type] + checker = _get_checker() + report_choice = _get_report_choice(self.config.getoption("ipdoctestreport")) + if lineno is not None: + assert failure.test.docstring is not None + lines = failure.test.docstring.splitlines(False) + # add line numbers to the left of the error message + assert test.lineno is not None + lines = [ + "%03d %s" % (i + test.lineno + 1, x) for (i, x) in enumerate(lines) + ] + # trim docstring error lines to 10 + lines = lines[max(example.lineno - 9, 0) : example.lineno + 1] + else: + lines = [ + "EXAMPLE LOCATION UNKNOWN, not showing all tests of that example" + ] + indent = ">>>" + for line in example.source.splitlines(): + lines.append(f"??? {indent} {line}") + indent = "..." + if isinstance(failure, doctest.DocTestFailure): + lines += checker.output_difference( + example, failure.got, report_choice + ).split("\n") + else: + inner_excinfo = ExceptionInfo.from_exc_info(failure.exc_info) + lines += ["UNEXPECTED EXCEPTION: %s" % repr(inner_excinfo.value)] + lines += [ + x.strip("\n") for x in traceback.format_exception(*failure.exc_info) + ] + reprlocation_lines.append((reprlocation, lines)) + return ReprFailDoctest(reprlocation_lines) + + def reportinfo(self) -> Tuple[Union["os.PathLike[str]", str], Optional[int], str]: + assert self.dtest is not None + return self.path, self.dtest.lineno, "[ipdoctest] %s" % self.name + + if int(pytest.__version__.split(".")[0]) < 7: + + @property + def path(self) -> Path: + return Path(self.fspath) + + +def _get_flag_lookup() -> Dict[str, int]: + import doctest + + return dict( + DONT_ACCEPT_TRUE_FOR_1=doctest.DONT_ACCEPT_TRUE_FOR_1, + DONT_ACCEPT_BLANKLINE=doctest.DONT_ACCEPT_BLANKLINE, + NORMALIZE_WHITESPACE=doctest.NORMALIZE_WHITESPACE, + ELLIPSIS=doctest.ELLIPSIS, + IGNORE_EXCEPTION_DETAIL=doctest.IGNORE_EXCEPTION_DETAIL, + COMPARISON_FLAGS=doctest.COMPARISON_FLAGS, + ALLOW_UNICODE=_get_allow_unicode_flag(), + ALLOW_BYTES=_get_allow_bytes_flag(), + NUMBER=_get_number_flag(), + ) + + +def get_optionflags(parent): + optionflags_str = parent.config.getini("ipdoctest_optionflags") + flag_lookup_table = _get_flag_lookup() + flag_acc = 0 + for flag in optionflags_str: + flag_acc |= flag_lookup_table[flag] + return flag_acc + + +def _get_continue_on_failure(config): + continue_on_failure = config.getvalue("ipdoctest_continue_on_failure") + if continue_on_failure: + # We need to turn off this if we use pdb since we should stop at + # the first failure. + if config.getvalue("usepdb"): + continue_on_failure = False + return continue_on_failure + + +class IPDoctestTextfile(pytest.Module): + obj = None + + def collect(self) -> Iterable[IPDoctestItem]: + import doctest + from .ipdoctest import IPDocTestParser + + # Inspired by doctest.testfile; ideally we would use it directly, + # but it doesn't support passing a custom checker. + encoding = self.config.getini("ipdoctest_encoding") + text = self.path.read_text(encoding) + filename = str(self.path) + name = self.path.name + globs = {"__name__": "__main__"} + + optionflags = get_optionflags(self) + + runner = _get_runner( + verbose=False, + optionflags=optionflags, + checker=_get_checker(), + continue_on_failure=_get_continue_on_failure(self.config), + ) + + parser = IPDocTestParser() + test = parser.get_doctest(text, globs, name, filename, 0) + if test.examples: + yield IPDoctestItem.from_parent( + self, name=test.name, runner=runner, dtest=test + ) + + if int(pytest.__version__.split(".")[0]) < 7: + + @property + def path(self) -> Path: + return Path(self.fspath) + + @classmethod + def from_parent( + cls, + parent, + *, + fspath=None, + path: Optional[Path] = None, + **kw, + ): + if path is not None: + import py.path + + fspath = py.path.local(path) + return super().from_parent(parent=parent, fspath=fspath, **kw) + + +def _check_all_skipped(test: "doctest.DocTest") -> None: + """Raise pytest.skip() if all examples in the given DocTest have the SKIP + option set.""" + import doctest + + all_skipped = all(x.options.get(doctest.SKIP, False) for x in test.examples) + if all_skipped: + pytest.skip("all docstests skipped by +SKIP option") + + +def _is_mocked(obj: object) -> bool: + """Return if an object is possibly a mock object by checking the + existence of a highly improbable attribute.""" + return ( + safe_getattr(obj, "pytest_mock_example_attribute_that_shouldnt_exist", None) + is not None + ) + + +@contextmanager +def _patch_unwrap_mock_aware() -> Generator[None, None, None]: + """Context manager which replaces ``inspect.unwrap`` with a version + that's aware of mock objects and doesn't recurse into them.""" + real_unwrap = inspect.unwrap + + def _mock_aware_unwrap( + func: Callable[..., Any], *, stop: Optional[Callable[[Any], Any]] = None + ) -> Any: + try: + if stop is None or stop is _is_mocked: + return real_unwrap(func, stop=_is_mocked) + _stop = stop + return real_unwrap(func, stop=lambda obj: _is_mocked(obj) or _stop(func)) + except Exception as e: + warnings.warn( + "Got %r when unwrapping %r. This is usually caused " + "by a violation of Python's object protocol; see e.g. " + "https://github.com/pytest-dev/pytest/issues/5080" % (e, func), + PytestWarning, + ) + raise + + inspect.unwrap = _mock_aware_unwrap + try: + yield + finally: + inspect.unwrap = real_unwrap + + +class IPDoctestModule(pytest.Module): + def collect(self) -> Iterable[IPDoctestItem]: + import doctest + from .ipdoctest import DocTestFinder, IPDocTestParser + + class MockAwareDocTestFinder(DocTestFinder): + """A hackish ipdoctest finder that overrides stdlib internals to fix a stdlib bug. + + https://github.com/pytest-dev/pytest/issues/3456 + https://bugs.python.org/issue25532 + """ + + def _find_lineno(self, obj, source_lines): + """Doctest code does not take into account `@property`, this + is a hackish way to fix it. https://bugs.python.org/issue17446 + + Wrapped Doctests will need to be unwrapped so the correct + line number is returned. This will be reported upstream. #8796 + """ + if isinstance(obj, property): + obj = getattr(obj, "fget", obj) + + if hasattr(obj, "__wrapped__"): + # Get the main obj in case of it being wrapped + obj = inspect.unwrap(obj) + + # Type ignored because this is a private function. + return super()._find_lineno( # type:ignore[misc] + obj, + source_lines, + ) + + def _find( + self, tests, obj, name, module, source_lines, globs, seen + ) -> None: + if _is_mocked(obj): + return + with _patch_unwrap_mock_aware(): + # Type ignored because this is a private function. + super()._find( # type:ignore[misc] + tests, obj, name, module, source_lines, globs, seen + ) + + if self.path.name == "conftest.py": + if int(pytest.__version__.split(".")[0]) < 7: + module = self.config.pluginmanager._importconftest( + self.path, + self.config.getoption("importmode"), + ) + else: + module = self.config.pluginmanager._importconftest( + self.path, + self.config.getoption("importmode"), + rootpath=self.config.rootpath, + ) + else: + try: + module = import_path(self.path, root=self.config.rootpath) + except ImportError: + if self.config.getvalue("ipdoctest_ignore_import_errors"): + pytest.skip("unable to import module %r" % self.path) + else: + raise + # Uses internal doctest module parsing mechanism. + finder = MockAwareDocTestFinder(parser=IPDocTestParser()) + optionflags = get_optionflags(self) + runner = _get_runner( + verbose=False, + optionflags=optionflags, + checker=_get_checker(), + continue_on_failure=_get_continue_on_failure(self.config), + ) + + for test in finder.find(module, module.__name__): + if test.examples: # skip empty ipdoctests + yield IPDoctestItem.from_parent( + self, name=test.name, runner=runner, dtest=test + ) + + if int(pytest.__version__.split(".")[0]) < 7: + + @property + def path(self) -> Path: + return Path(self.fspath) + + @classmethod + def from_parent( + cls, + parent, + *, + fspath=None, + path: Optional[Path] = None, + **kw, + ): + if path is not None: + import py.path + + fspath = py.path.local(path) + return super().from_parent(parent=parent, fspath=fspath, **kw) + + +def _setup_fixtures(doctest_item: IPDoctestItem) -> FixtureRequest: + """Used by IPDoctestTextfile and IPDoctestItem to setup fixture information.""" + + def func() -> None: + pass + + doctest_item.funcargs = {} # type: ignore[attr-defined] + fm = doctest_item.session._fixturemanager + doctest_item._fixtureinfo = fm.getfixtureinfo( # type: ignore[attr-defined] + node=doctest_item, func=func, cls=None, funcargs=False + ) + fixture_request = FixtureRequest(doctest_item, _ispytest=True) + fixture_request._fillfixtures() + return fixture_request + + +def _init_checker_class() -> Type["IPDoctestOutputChecker"]: + import doctest + import re + from .ipdoctest import IPDoctestOutputChecker + + class LiteralsOutputChecker(IPDoctestOutputChecker): + # Based on doctest_nose_plugin.py from the nltk project + # (https://github.com/nltk/nltk) and on the "numtest" doctest extension + # by Sebastien Boisgerault (https://github.com/boisgera/numtest). + + _unicode_literal_re = re.compile(r"(\W|^)[uU]([rR]?[\'\"])", re.UNICODE) + _bytes_literal_re = re.compile(r"(\W|^)[bB]([rR]?[\'\"])", re.UNICODE) + _number_re = re.compile( + r""" + (?P + (?P + (?P [+-]?\d*)\.(?P\d+) + | + (?P [+-]?\d+)\. + ) + (?: + [Ee] + (?P [+-]?\d+) + )? + | + (?P [+-]?\d+) + (?: + [Ee] + (?P [+-]?\d+) + ) + ) + """, + re.VERBOSE, + ) + + def check_output(self, want: str, got: str, optionflags: int) -> bool: + if super().check_output(want, got, optionflags): + return True + + allow_unicode = optionflags & _get_allow_unicode_flag() + allow_bytes = optionflags & _get_allow_bytes_flag() + allow_number = optionflags & _get_number_flag() + + if not allow_unicode and not allow_bytes and not allow_number: + return False + + def remove_prefixes(regex: Pattern[str], txt: str) -> str: + return re.sub(regex, r"\1\2", txt) + + if allow_unicode: + want = remove_prefixes(self._unicode_literal_re, want) + got = remove_prefixes(self._unicode_literal_re, got) + + if allow_bytes: + want = remove_prefixes(self._bytes_literal_re, want) + got = remove_prefixes(self._bytes_literal_re, got) + + if allow_number: + got = self._remove_unwanted_precision(want, got) + + return super().check_output(want, got, optionflags) + + def _remove_unwanted_precision(self, want: str, got: str) -> str: + wants = list(self._number_re.finditer(want)) + gots = list(self._number_re.finditer(got)) + if len(wants) != len(gots): + return got + offset = 0 + for w, g in zip(wants, gots): + fraction: Optional[str] = w.group("fraction") + exponent: Optional[str] = w.group("exponent1") + if exponent is None: + exponent = w.group("exponent2") + precision = 0 if fraction is None else len(fraction) + if exponent is not None: + precision -= int(exponent) + if float(w.group()) == approx(float(g.group()), abs=10**-precision): + # They're close enough. Replace the text we actually + # got with the text we want, so that it will match when we + # check the string literally. + got = ( + got[: g.start() + offset] + w.group() + got[g.end() + offset :] + ) + offset += w.end() - w.start() - (g.end() - g.start()) + return got + + return LiteralsOutputChecker + + +def _get_checker() -> "IPDoctestOutputChecker": + """Return a IPDoctestOutputChecker subclass that supports some + additional options: + + * ALLOW_UNICODE and ALLOW_BYTES options to ignore u'' and b'' + prefixes (respectively) in string literals. Useful when the same + ipdoctest should run in Python 2 and Python 3. + + * NUMBER to ignore floating-point differences smaller than the + precision of the literal number in the ipdoctest. + + An inner class is used to avoid importing "ipdoctest" at the module + level. + """ + global CHECKER_CLASS + if CHECKER_CLASS is None: + CHECKER_CLASS = _init_checker_class() + return CHECKER_CLASS() + + +def _get_allow_unicode_flag() -> int: + """Register and return the ALLOW_UNICODE flag.""" + import doctest + + return doctest.register_optionflag("ALLOW_UNICODE") + + +def _get_allow_bytes_flag() -> int: + """Register and return the ALLOW_BYTES flag.""" + import doctest + + return doctest.register_optionflag("ALLOW_BYTES") + + +def _get_number_flag() -> int: + """Register and return the NUMBER flag.""" + import doctest + + return doctest.register_optionflag("NUMBER") + + +def _get_report_choice(key: str) -> int: + """Return the actual `ipdoctest` module flag value. + + We want to do it as late as possible to avoid importing `ipdoctest` and all + its dependencies when parsing options, as it adds overhead and breaks tests. + """ + import doctest + + return { + DOCTEST_REPORT_CHOICE_UDIFF: doctest.REPORT_UDIFF, + DOCTEST_REPORT_CHOICE_CDIFF: doctest.REPORT_CDIFF, + DOCTEST_REPORT_CHOICE_NDIFF: doctest.REPORT_NDIFF, + DOCTEST_REPORT_CHOICE_ONLY_FIRST_FAILURE: doctest.REPORT_ONLY_FIRST_FAILURE, + DOCTEST_REPORT_CHOICE_NONE: 0, + }[key] + + +@pytest.fixture(scope="session") +def ipdoctest_namespace() -> Dict[str, Any]: + """Fixture that returns a :py:class:`dict` that will be injected into the + namespace of ipdoctests.""" + return dict() diff --git a/shared/package-files/86/867f8c345dd23c7b5252a221c155d379b53f37393fc0887988a81fec01006518/legend.pyi b/shared/package-files/86/867f8c345dd23c7b5252a221c155d379b53f37393fc0887988a81fec01006518/legend.pyi new file mode 100644 index 0000000000000000000000000000000000000000..dde5882da69d0c866586ad199ed4c3012adc1f01 --- /dev/null +++ b/shared/package-files/86/867f8c345dd23c7b5252a221c155d379b53f37393fc0887988a81fec01006518/legend.pyi @@ -0,0 +1,152 @@ +from matplotlib.axes import Axes +from matplotlib.artist import Artist +from matplotlib.backend_bases import MouseEvent +from matplotlib.figure import Figure +from matplotlib.font_manager import FontProperties +from matplotlib.legend_handler import HandlerBase +from matplotlib.lines import Line2D +from matplotlib.offsetbox import ( + DraggableOffsetBox, +) +from matplotlib.patches import FancyBboxPatch, Patch, Rectangle +from matplotlib.text import Text +from matplotlib.transforms import ( + BboxBase, + Transform, +) + + +import pathlib +from collections.abc import Iterable +from typing import Any, Literal, overload +from .typing import ColorType + +class DraggableLegend(DraggableOffsetBox): + legend: Legend + def __init__( + self, legend: Legend, use_blit: bool = ..., update: Literal["loc", "bbox"] = ... + ) -> None: ... + def finalize_offset(self) -> None: ... + +class Legend(Artist): + codes: dict[str, int] + zorder: float + prop: FontProperties + texts: list[Text] + legend_handles: list[Artist | None] + numpoints: int + markerscale: float + scatterpoints: int + borderpad: float + labelspacing: float + handlelength: float + handleheight: float + handletextpad: float + borderaxespad: float + columnspacing: float + shadow: bool + isaxes: bool + axes: Axes + parent: Axes | Figure + legendPatch: FancyBboxPatch + def __init__( + self, + parent: Axes | Figure, + handles: Iterable[Artist | tuple[Artist, ...]], + labels: Iterable[str], + *, + loc: str | tuple[float, float] | int | None = ..., + numpoints: int | None = ..., + markerscale: float | None = ..., + markerfirst: bool = ..., + reverse: bool = ..., + scatterpoints: int | None = ..., + scatteryoffsets: Iterable[float] | None = ..., + prop: FontProperties | dict[str, Any] | None = ..., + fontsize: float | str | None = ..., + labelcolor: ColorType + | Iterable[ColorType] + | Literal["linecolor", "markerfacecolor", "mfc", "markeredgecolor", "mec"] + | None = ..., + borderpad: float | None = ..., + labelspacing: float | None = ..., + handlelength: float | None = ..., + handleheight: float | None = ..., + handletextpad: float | None = ..., + borderaxespad: float | None = ..., + columnspacing: float | None = ..., + ncols: int = ..., + mode: Literal["expand"] | None = ..., + fancybox: bool | None = ..., + shadow: bool | dict[str, Any] | None = ..., + title: str | None = ..., + title_fontsize: float | None = ..., + framealpha: float | None = ..., + edgecolor: Literal["inherit"] | ColorType | None = ..., + facecolor: Literal["inherit"] | ColorType | None = ..., + bbox_to_anchor: BboxBase + | tuple[float, float] + | tuple[float, float, float, float] + | None = ..., + bbox_transform: Transform | None = ..., + frameon: bool | None = ..., + handler_map: dict[Artist | type, HandlerBase] | None = ..., + title_fontproperties: FontProperties | dict[str, Any] | None = ..., + alignment: Literal["center", "left", "right"] = ..., + ncol: int = ..., + draggable: bool = ... + ) -> None: ... + def contains(self, mouseevent: MouseEvent) -> tuple[bool, dict[Any, Any]]: ... + def set_ncols(self, ncols: int) -> None: ... + @classmethod + def get_default_handler_map(cls) -> dict[type, HandlerBase]: ... + @classmethod + def set_default_handler_map(cls, handler_map: dict[type, HandlerBase]) -> None: ... + @classmethod + def update_default_handler_map( + cls, handler_map: dict[type, HandlerBase] + ) -> None: ... + def get_legend_handler_map(self) -> dict[type, HandlerBase]: ... + @staticmethod + def get_legend_handler( + legend_handler_map: dict[type, HandlerBase], orig_handle: Any + ) -> HandlerBase | None: ... + def get_children(self) -> list[Artist]: ... + def get_frame(self) -> Rectangle: ... + def get_lines(self) -> list[Line2D]: ... + def get_patches(self) -> list[Patch]: ... + def get_texts(self) -> list[Text]: ... + def set_alignment(self, alignment: Literal["center", "left", "right"]) -> None: ... + def get_alignment(self) -> Literal["center", "left", "right"]: ... + def set_loc(self, loc: str | tuple[float, float] | int | None = ...) -> None: ... + def set_title( + self, title: str, prop: FontProperties | str | pathlib.Path | None = ... + ) -> None: ... + def get_title(self) -> Text: ... + def get_frame_on(self) -> bool: ... + def set_frame_on(self, b: bool) -> None: ... + draw_frame = set_frame_on + def get_bbox_to_anchor(self) -> BboxBase: ... + def set_bbox_to_anchor( + self, + bbox: BboxBase + | tuple[float, float] + | tuple[float, float, float, float] + | None, + transform: Transform | None = ... + ) -> None: ... + @overload + def set_draggable( + self, + state: Literal[True], + use_blit: bool = ..., + update: Literal["loc", "bbox"] = ..., + ) -> DraggableLegend: ... + @overload + def set_draggable( + self, + state: Literal[False], + use_blit: bool = ..., + update: Literal["loc", "bbox"] = ..., + ) -> None: ... + def get_draggable(self) -> bool: ... diff --git a/shared/package-files/86/868246e411a16cb4592dbab8cf6b3c753c94917cb37e8a94c2c2da07560c9874/select_algorithm.py b/shared/package-files/86/868246e411a16cb4592dbab8cf6b3c753c94917cb37e8a94c2c2da07560c9874/select_algorithm.py new file mode 100644 index 0000000000000000000000000000000000000000..6c80626ed12ad696b6f75759844b235d5fba252e --- /dev/null +++ b/shared/package-files/86/868246e411a16cb4592dbab8cf6b3c753c94917cb37e8a94c2c2da07560c9874/select_algorithm.py @@ -0,0 +1,1156 @@ +import builtins +import functools +import inspect +import itertools +import logging +import operator +import sys +import textwrap +import time +from concurrent.futures import ThreadPoolExecutor +from io import StringIO + +from typing import Any, Callable, Dict, List, Optional, Union +from unittest.mock import patch + +import sympy + +import torch +from torch._dynamo.testing import rand_strided +from torch._dynamo.utils import counters, identity, preserve_rng_state + +from . import config, ir +from .autotune_process import TensorMeta, TritonBenchmarkRequest +from .codecache import code_hash, PersistentCache, PyCodeCache +from .codegen.common import ( + ChoiceCaller, + IndentedBuffer, + KernelTemplate, + PrimitiveInfoType, +) +from .codegen.triton import ( + gen_common_triton_imports, + texpr, + TritonKernel, + TritonPrinter, + TritonScheduling, +) +from .codegen.triton_utils import config_of, signature_to_meta +from .exc import CUDACompileError +from .utils import ( + do_bench, + get_dtype_size, + Placeholder, + sympy_dot, + sympy_product, + unique, +) +from .virtualized import V + +log = logging.getLogger(__name__) + +# correctness checks struggle with fp16/tf32 +VERIFY: Dict[str, Any] = dict() +PRINT_AUTOTUNE = True +DEBUG = False + + +class KernelNamespace: + pass + + +# these objects are imported from the generated wrapper code +extern_kernels = KernelNamespace() + + +class PartialRender: + """ + Some parts of a template need to be generated at the end, but + inserted into the template at the start. This allows doing a bunch + of replacements after the initial render. + """ + + def __init__(self, code, replacement_hooks): + super().__init__() + self.code = code + self.replacement_hooks = replacement_hooks + + def finalize(self): + code = self.code + assert code is not None, "can only be called once" + self.code = None + for key, fn in self.replacement_hooks.items(): + code = code.replace(key, fn()) + return code + + +class TritonTemplateKernel(TritonKernel): + def __init__( + self, + kernel_name, + input_nodes, + output_node, + defines, + num_stages, + num_warps, + grid_fn, + meta, + call_sizes, + use_jit=True, + prefix_args=0, + suffix_args=0, + epilogue_fn=identity, + *, + index_dtype, + ): + super().__init__( + sympy_product(output_node.get_size()), + sympy.Integer(1), + index_dtype=index_dtype, + ) + self.input_nodes = input_nodes + self.output_node = output_node + self.named_input_nodes = {} + self.defines = defines + self.kernel_name = kernel_name + self.template_mask = None + self.use_jit = use_jit + self.num_stages = num_stages + self.num_warps = num_warps + self.grid_fn = grid_fn + self.meta = meta + self.call_sizes = call_sizes + # for templates with fixed epilogues + self.prefix_args = prefix_args + self.suffix_args = suffix_args + self.epilogue_fn = epilogue_fn + self.render_hooks = dict() + self.triton_meta: Optional[Dict[str, object]] = None + + def need_numel_args(self): + return False + + def estimate_kernel_num_bytes(self): + """ + Estimate the total number of bytes this kernel takes. + For in/out nodes, sizes are counted twice: once for reading and + once for writing. + """ + ninplace_args = len(unique(self.args.inplace_buffers.values())) + num_bytes = [] + for i, inp in enumerate(itertools.chain(self.input_nodes, (self.output_node,))): + size = V.graph.sizevars.size_hints(inp.get_size()) + numel = functools.reduce(operator.mul, size) + dtype_size = get_dtype_size(inp.get_dtype()) + num_bytes.append(numel * dtype_size * (1 + int(i < ninplace_args))) + return sum(num_bytes) + + def jit_lines(self): + if self.use_jit: + return "@triton.jit" + + argdefs, _, signature = self.args.python_argdefs() + triton_meta = { + "signature": signature_to_meta(signature, size_dtype=self.index_dtype), + "device": V.graph.scheduler.current_device.index, + "device_type": V.graph.scheduler.current_device.type, + "constants": {}, + } + triton_meta["configs"] = [config_of(signature)] + for arg_num in triton_meta["configs"][0].equal_to_1: # type: ignore[index] + triton_meta["constants"][arg_num] = 1 # type: ignore[index] + self.triton_meta = triton_meta + + inductor_meta = { + "kernel_name": str(Placeholder.DESCRIPTIVE_NAME), + "backend_hash": torch.utils._triton.triton_hash_with_backend(), + } + if config.profile_bandwidth or config.benchmark_kernel: + num_gb = self.estimate_kernel_num_bytes() / 1e9 + inductor_meta["kernel_num_gb"] = num_gb + return f""" + @triton_heuristics.template( + num_stages={self.num_stages}, + num_warps={self.num_warps}, + triton_meta={triton_meta!r}, + inductor_meta={inductor_meta!r}, + ) + @triton.jit + """ + + def def_kernel(self, *argnames): + """ + Hook called from template code to generate function def and + needed args. + """ + assert all(isinstance(x, str) for x in argnames) + renames = IndentedBuffer(initial_indent=1) + + named_args = self.input_nodes[ + self.prefix_args : len(self.input_nodes) - self.suffix_args + ] + + assert len(argnames) == len(named_args), ( + len(argnames), + len(named_args), + self.prefix_args, + len(self.input_nodes), + ) + + for input_node in self.input_nodes[: self.prefix_args]: + # get args in correct order + self.args.input(input_node.get_name()) + + for name, input_node in zip(argnames, named_args): + arg_name = f"arg_{name}" + self.named_input_nodes[name] = input_node + self.args.input_buffers[input_node.get_name()] = arg_name + + # The args may be duplicated, so renaming must be after args are de-duplicated. + for name in argnames: + input_node = self.named_input_nodes[name] + arg_name = self.args.input_buffers[input_node.get_name()] + if input_node.get_layout().offset == 0: + renames.writeline(f"{name} = {arg_name}") + else: + offset = texpr(self.rename_indexing(input_node.get_layout().offset)) + renames.writeline(f"{name} = {arg_name} + {offset}") + + for input_node in self.input_nodes[len(self.input_nodes) - self.suffix_args :]: + # get args in correct order + self.args.input(input_node.get_name()) + + def hook(): + # python_argdefs() cannot be run until after the rest of the template lazily adds more args + arg_defs, *_ = self.args.python_argdefs() + code = IndentedBuffer() + code.splice(gen_common_triton_imports()) + code.splice(self.jit_lines()) + code.writeline(f"def {self.kernel_name}({', '.join(arg_defs)}):") + with code.indent(): + code.splice(self.defines) + code.splice(renames.getvalue()) + return code.getvalue() + + assert "" not in self.render_hooks + self.render_hooks[""] = hook + return "" + + def size(self, name: str, index: int): + """ + Hook called from template code to get the size of an arg. + Will add needed args to pass it in if it is dynamic. + """ + assert isinstance(index, int) + if name is None: + val = self.output_node.get_size()[index] + else: + assert isinstance(name, str) + val = self.named_input_nodes[name].get_size()[index] + return texpr(self.rename_indexing(val)) + + def stride(self, name, index): + """ + Hook called from template code to get the stride of an arg. + Will add needed args to pass it in if it is dynamic. + """ + assert isinstance(index, int) + if name is None: + val = self.output_node.get_stride()[index] + else: + assert isinstance(name, str) + val = self.named_input_nodes[name].get_stride()[index] + return texpr(self.rename_indexing(val)) + + def store_output(self, indices, val, mask): + """ + Hook called from template code to store the final output + (if the buffer hasn't been optimized away), then append any + epilogue fusions. + """ + assert isinstance(indices, (list, tuple)) + assert isinstance(val, str) + assert isinstance(mask, str) + assert self.template_mask is None + indices = list(map(TritonPrinter.paren, indices)) + index_symbols = [sympy.Symbol(x) for x in indices] + lengths = [V.graph.sizevars.simplify(s) for s in self.output_node.get_size()] + assert len(indices) == len(lengths) + + # glue to make generated code use same indexing from template + for name, range_tree_entry in zip( + indices, self.range_trees[0].construct_entries(lengths) + ): + range_tree_entry.set_name(name) + contiguous_index = sympy_dot( + ir.FlexibleLayout.contiguous_strides(lengths), index_symbols + ) + contiguous_index = self.rename_indexing(contiguous_index) + self.body.writeline("xindex = " + texpr(contiguous_index)) + self.range_trees[0].lookup(sympy.Integer(1), sympy_product(lengths)).set_name( + "xindex" + ) + self.template_mask = mask + self.template_indices = indices + output_index = self.output_node.get_layout().make_indexer()(index_symbols) + output_index = self.rename_indexing(output_index) + if output_index == contiguous_index: + output_index = sympy.Symbol("xindex") + + epilogue_args = [val] + for input_node in itertools.chain( + self.input_nodes[: self.prefix_args], + self.input_nodes[len(self.input_nodes) - self.suffix_args :], + ): + input_node.freeze_layout() + epilogue_args.append(input_node.make_loader()(index_symbols)) + + V.ops.store( + self.output_node.get_name(), + output_index, + self.epilogue_fn(*epilogue_args), + ) + self.codegen_body() + + def hook(): + # more stuff might have been added since the codegen_body above + self.codegen_body() + return textwrap.indent(self.body.getvalue(), " ").strip() + + assert "" not in self.render_hooks + self.render_hooks[""] = hook + return "" + + def render(self, template, kwargs): + return PartialRender( + template.render(**self.template_env(), **kwargs), + self.render_hooks, + ) + + def make_load(self, name, indices, mask): + """ + Optional helper called from template code to generate the code + needed to load from an tensor. + """ + assert isinstance(indices, (list, tuple)) + assert isinstance(name, str) + assert isinstance(mask, str) + stride = self.named_input_nodes[name].get_stride() + indices = list(map(TritonPrinter.paren, indices)) + assert len(indices) == len(stride) + index = " + ".join( + f"{texpr(self.rename_indexing(s))} * {i}" for s, i in zip(stride, indices) + ) + return f"tl.load({name} + ({index}), {mask})" + + def template_env(self): + """ + Generate the namespace visible in the template. + """ + return { + fn.__name__: fn + for fn in [ + self.def_kernel, + self.size, + self.stride, + self.store_output, + self.make_load, + ] + } + + def indexing( + self, + index: sympy.Expr, + *, + dense_indexing=False, + copy_shape=None, + override_mask=None, + block_ptr=False, + ): + """ + Override the default indexing to use our custom mask and force + dense indexing. + """ + return super().indexing( + index, + dense_indexing=False, + copy_shape=self.template_mask, + override_mask=self.template_mask, + block_ptr=block_ptr, + ) + + def initialize_range_tree(self, pid_cache): + super().initialize_range_tree(pid_cache) + # ignore default codegen + self.body.clear() + self.indexing_code.clear() + + def call_kernel(self, name: str, node: Optional[ir.IRNode] = None): + wrapper = V.graph.wrapper_code + _, call_args, _ = self.args.python_argdefs() + call_args = [str(a) for a in call_args] + + for i in range(len(call_args)): + if V.graph.is_unspec_arg(call_args[i]): + call_args[i] = call_args[i] + ".item()" + if isinstance(call_args[i], sympy.Symbol): + call_args[i] = texpr(call_args[i]) + + if V.graph.cpp_wrapper: + # In the cpp_wrapper case, we have to compute CUDA launch grid at runtime + # if any dynamic dimension is involved. We rely on the Python version + # of the grid function to generate those grid configs, which may contain + # symbolic values. The wrapper will use cexpr to print out C++ code + # appropriately for the grid configs. + grid_args = [V.graph.sizevars.simplify(s) for s in self.call_sizes] + [ + self.meta + ] + grid = self.grid_fn(*grid_args) + + wrapper.generate_kernel_call( + name, + call_args, + device_index=V.graph.scheduler.current_device.index, + grid=grid, + triton_meta=self.triton_meta, + ) + else: + stream_name = wrapper.write_get_raw_stream( + V.graph.scheduler.current_device.index + ) + + wrapper.add_import_once(f"import {self.grid_fn.__module__}") + meta = wrapper.add_meta_once(self.meta) + + grid_call = [ + texpr(V.graph.sizevars.simplify(s)) for s in self.call_sizes + ] + [meta] + grid_call = f"{self.grid_fn.__module__}.{self.grid_fn.__name__}({', '.join(grid_call)})" + wrapper.writeline( + f"{name}.run({', '.join(call_args)}, grid={grid_call}, stream={stream_name})" + ) + + +@functools.lru_cache(None) +def _jinja2_env(): + try: + import jinja2 + + return jinja2.Environment( + undefined=jinja2.StrictUndefined, + ) + except ImportError: + return None + + +class TritonTemplate(KernelTemplate): + index_counter = itertools.count() + all_templates: Dict[str, "TritonTemplate"] = dict() + + def __init__(self, name: str, grid: Any, source: str, debug=False): + super().__init__(name) + self.grid = grid + self.template = self._template_from_string(source) + assert name not in self.all_templates, "duplicate template name" + self.all_templates[name] = self + self.debug = debug + + def generate( + self, + input_nodes, + layout, + num_stages, + num_warps, + prefix_args=0, + suffix_args=0, + epilogue_fn=identity, + **kwargs, + ): + assert self.template, "requires jinja2" + defines = StringIO() + for name, val in kwargs.items(): + defines.write(f" {name} : tl.constexpr = {val}\n") + defines = defines.getvalue() + + fake_out = ir.Buffer("buf_out", layout) + kernel_name = f"triton_{self.name}" + + numel = sympy_product(layout.size) + buffers = itertools.chain(input_nodes, (fake_out,)) + if not TritonScheduling.can_use_32bit_indexing(numel, buffers): + raise NotImplementedError( + "64-bit indexing is not yet implemented for triton templates" + ) + + kernel_options = dict( + input_nodes=input_nodes, + defines=defines, + num_stages=num_stages, + num_warps=num_warps, + grid_fn=self.grid, + meta=kwargs, + call_sizes=layout.size, + prefix_args=prefix_args, + suffix_args=suffix_args, + epilogue_fn=epilogue_fn, + index_dtype="tl.int32", + ) + with patch.object( + V.graph, "get_dtype", self._fake_get_dtype(fake_out) + ), TritonTemplateKernel( + kernel_name=kernel_name, + output_node=fake_out, + use_jit=True, + **kernel_options, + ) as kernel: + try: + code = kernel.render(self.template, kwargs).finalize() + except ZeroDivisionError: + # TODO(nmacchioni): fix sympy division by zero + return None + if self.debug: + print("Generated Code:\n", code) + extra = ( + "-".join( + [ + *[ + f"{kwarg}={repr(kwargs[kwarg])}" + for kwarg in sorted(kwargs.keys()) + ], + f"num_stages={num_stages}", + f"num_warps={num_warps}", + ] + ) + + "-" + ) + mod = PyCodeCache.load(code, extra) + _, call_args, _ = kernel.args.python_argdefs() + + expected_args = list(unique(x.get_name() for x in input_nodes)) + expected_args.extend([fake_out.get_name()]) + assert list(call_args)[: len(expected_args)] == expected_args, ( + call_args, + expected_args, + ) + extra_args = V.graph.sizevars.size_hints( + map(sympy.expand, call_args[len(expected_args) :]), + fallback=config.unbacked_symint_fallback, + ) + + kernel_hash_name = f"triton_{self.name}_{next(self.index_counter)}" + + def make_kernel_render(out_node): + kernel = TritonTemplateKernel( + kernel_name=str(Placeholder.KERNEL_NAME), + output_node=out_node, + use_jit=False, + **kernel_options, + ) + render = functools.partial( + kernel.render, + self.template, + kwargs, + ) + return kernel, render + + # create the BenchmarkRequest + assert mod.__file__ is not None + grid = self.grid( + *V.graph.sizevars.size_hints( + layout.size, + fallback=config.unbacked_symint_fallback, + ), + kwargs, + ) + bmreq = TritonBenchmarkRequest( + module_path=mod.__file__, + module_cache_key=mod.key, + kernel_name=kernel_name, + grid=grid, + extra_args=extra_args, + num_stages=num_stages, + num_warps=num_warps, + matrix_instr_nonkdim=kwargs.get("matrix_instr_nonkdim", 0), + input_tensor_meta=TensorMeta.from_irnodes(input_nodes), + output_tensor_meta=TensorMeta.from_irnodes(layout), + ) + + return TritonTemplateCaller( + kernel_hash_name, + input_nodes, + layout, + make_kernel_render, + extra.strip("-").replace("-", ", "), + bmreq, + log_info={ + "tile_shape": str( + ( + kwargs.get("BLOCK_M", -1), + kwargs.get("BLOCK_K", -1), + kwargs.get("BLOCK_N", -1), + ) + ), + "num_stages": num_stages, + "num_warps": num_warps, + "allow_tf32": str(kwargs.get("ALLOW_TF32", None)), + "acc_type": str(kwargs.get("ACC_TYPE", None)), + }, + ) + + +class ExternKernelChoice: + def __init__( + self, + kernel, + cpp_kernel=None, + *, + name=None, + has_out_variant=True, + op_overload=None, + use_fallback_kernel=False, + ): + super().__init__() + name = name or kernel.__name__ + assert callable(kernel) + assert not hasattr(extern_kernels, name), "duplicate extern kernel" + self.name = name + self.cpp_kernel_name = cpp_kernel + self.has_out_variant = has_out_variant + setattr(extern_kernels, name, kernel) + self.op_overload = op_overload + self.use_fallback_kernel = use_fallback_kernel + + def to_callable(self): + return getattr(extern_kernels, self.name) + + def call_name(self): + return f"extern_kernels.{self.name}" + + @functools.lru_cache(None) + def hash_key(self): + fn = self.to_callable() + parts = [ + self.name, + getattr(fn, "__name__", ""), + getattr(fn, "__module__", ""), + ] + try: + parts.append(inspect.getsource(fn)) + except Exception: + pass + return code_hash("-".join(parts)) + + def bind( + self, + input_nodes, + layout, + ordered_kwargs_for_cpp_kernel=(), + **kwargs, + ): + self.ordered_kwargs_for_cpp_kernel = ordered_kwargs_for_cpp_kernel + return ExternKernelCaller( + self, input_nodes, layout, kwargs, has_out_variant=self.has_out_variant + ) + + +class TritonTemplateCaller(ChoiceCaller): + def __init__( + self, + name, + input_nodes, + layout, + make_kernel_render, + debug_extra, + bmreq, + log_info: Optional[ + Dict[str, Union[PrimitiveInfoType, List[PrimitiveInfoType]]] + ] = None, + ): + super().__init__(name, input_nodes, layout) + self.make_kernel_render = make_kernel_render + self.debug_extra = debug_extra + self.bmreq: TritonBenchmarkRequest = bmreq + if log_info is None: + log_info = {} + self.log_info: Dict[str, Any] = log_info + self.log_info.update( + { + "backend": "Triton", + "grid": str(self.bmreq.grid), + "num_stages": self.bmreq.num_stages, + "num_warps": self.bmreq.num_warps, + } + ) + + def benchmark(self, *args, out): + assert self.bmreq is not None + return self.bmreq.benchmark(*args, output_tensor=out) + + def __str__(self): + return f"TritonTemplateCaller({self.bmreq.module_path}, {self.debug_extra})" + + def call_name(self): + return f"template_kernels.{self.name}" + + def hash_key(self): + return "-".join( + [ + self.name.rsplit("_", 1)[0], + self.bmreq.module_cache_key, + ] + ) + + def output_node(self): + return ir.TensorBox.create( + ir.TritonTemplateBuffer( + layout=self.layout, + inputs=self.input_nodes, + make_kernel_render=self.make_kernel_render, + ) + ) + + def info_dict(self) -> Dict[str, Union[PrimitiveInfoType, List[PrimitiveInfoType]]]: + """Information returned here is logged to the autotune log file when that is enabled.""" + return self.log_info + + +class ExternKernelCaller(ChoiceCaller): + def __init__( + self, + choice: ExternKernelChoice, + input_nodes, + layout, + kwargs=None, + *, + has_out_variant=True, + ): + super().__init__(choice.name, input_nodes, layout) + self.choice = choice + self.kwargs = kwargs or {} + self.has_out_variant = has_out_variant + + def __str__(self): + return f"ExternKernelCaller({self.choice.call_name()})" + + def benchmark(self, *args, out): + if self.has_out_variant: + return super().benchmark(*args, out=out) + else: + algo = self.to_callable() + out_new = algo(*args) + torch._C._dynamo.guards.assert_size_stride( + out_new, tuple(out.size()), tuple(out.stride()) + ) + out.copy_(out_new) # for correctness checking + return do_bench(lambda: algo(*args)) + + def to_callable(self): + fn = self.choice.to_callable() + if self.kwargs: + return functools.partial(fn, **self.kwargs) + else: + return fn + + def hash_key(self): + return "-".join( + [ + self.choice.name, + *[ + f"{kwarg}={repr(self.kwargs[kwarg])}" + for kwarg in sorted(self.kwargs.keys()) + ], + self.choice.hash_key(), + ] + ) + + def output_node(self): + if config.abi_compatible and self.choice.use_fallback_kernel: + assert ( + self.choice.op_overload is not None + ), "Please provide an op_overload to use ir.FallbackKernel" + inner = ir.FallbackKernel.create( + self.choice.op_overload, *self.input_nodes, **self.kwargs + ) + else: + cls = ir.ExternKernelOut if self.has_out_variant else ir.ExternKernelAlloc + inner = cls( + layout=self.layout, + inputs=self.input_nodes, + python_kernel_name=self.choice.call_name(), + cpp_kernel_name=self.choice.cpp_kernel_name, + ordered_kwargs_for_cpp_kernel=self.choice.ordered_kwargs_for_cpp_kernel, + op_overload=self.choice.op_overload, + kwargs=self.kwargs, + ) + + return ir.TensorBox.create(inner) + + def info_dict(self) -> Dict[str, Union[PrimitiveInfoType, List[PrimitiveInfoType]]]: + """Information returned here is logged to the autotune log file when that is enabled.""" + return { + "backend": "extern", + "kernel_call_name": self.choice.call_name(), + } + + +class ErrorFromChoice(RuntimeError): + def __init__(self, msg, choice: ChoiceCaller, inputs_str): + msg += f"\nFrom choice {choice}\n{inputs_str}" + super().__init__(msg) + self.choice = choice + + +class AlgorithmSelectorCache(PersistentCache): + def __call__( + self, + name, + choices: List[ChoiceCaller], + input_nodes, + layout, + # optional dict mapping arg indices to the functions + # generating a torch.Tensor for that input from the + # corresponding ir.Buffer. if passed for a given + # arg, the function will be called instead of + # generating a random torch.Tensor for benchmarking. + input_gen_fns: Optional[Dict[int, Callable[[ir.Buffer], torch.Tensor]]] = None, + precompilation_timeout_seconds: int = 60 * 60, + ): + from .codegen.cuda.cuda_kernel import CUDATemplateCaller + + # TODO(nmacchioni): remove once CI tests are fixed + choices = [choice for choice in choices if choice is not None] + if len(choices) == 0: + raise RuntimeError( + "No choices to select, please consider adding ATEN into max_autotune_gemm_backends " + "config (defined in torch/_inductor/config.py) to allow at least one choice. " + ) + log.debug("Max autotune selects from %s choices.", str(len(choices))) + + if len(choices) == 1: + if not isinstance(choices[0], CUDATemplateCaller): + # CUDATemplateCaller still needs to go through autotuning process to retrieve workspace size. + return choices[0].output_node() + + @functools.lru_cache(None) + def make_benchmark_fn(): + return self.make_benchmark_fn(choices, input_nodes, layout, input_gen_fns) + + def precompile(choices): + if ( + precompilation_timeout_seconds is None + or precompilation_timeout_seconds <= 0 + ): + return + num_workers = min( + config.compile_threads, + torch.get_num_threads(), + len(choices), + ) + if num_workers <= 0: + return + log.info( + "Multithreaded precompilation for %d choices using %d worker threads", + len(choices), + num_workers, + ) + with ThreadPoolExecutor(max_workers=num_workers) as executor: + futures = executor.map( + lambda c: c.precompile(), + [c for c in choices if hasattr(c, "precompile")], + timeout=precompilation_timeout_seconds, + ) + try: + iterator = iter(futures) + while True: + try: + next(iterator) + except CUDACompileError: + log.error( # noqa: G201 + "CUDA Compilation error", exc_info=True + ) + except TimeoutError: + log.warning( + f"Precompilation timed out after {precompilation_timeout_seconds} seconds." # noqa: G004 + ) + except StopIteration: + pass + executor.shutdown(wait=True) + + def autotune(choices): + try: + precompile(choices) + except TimeoutError: + log.warning( + "Precompilation phase took longer than timeout allowed. Continuing" + ) + pass + return make_benchmark_fn()(choices) + + if config.autotune_in_subproc: + from .autotune_process import tuning_pool + + # do the optional warmup + tuning_pool.initialize() + + autotune_start_ts = time.time() + timings = self.lookup( + choices, + name, + repr([self.key_of(x) for x in input_nodes]), + autotune, + ) + autotune_elapse = time.time() - autotune_start_ts + if timings == {} or choices[0] not in timings: + return choices[0].output_node() + + if make_benchmark_fn.cache_info().currsize: + counters["inductor"]["select_algorithm_autotune"] += 1 + if ( + make_benchmark_fn.cache_info().currsize + or log.getEffectiveLevel() == logging.DEBUG + or config.trace.log_autotuning_results + ): + self.log_results(name, input_nodes, timings, autotune_elapse) + selected_choice = builtins.min(timings, key=timings.__getitem__).output_node() + log.debug("selected choice: %s", str(selected_choice)) + return selected_choice + + @classmethod + def make_benchmark_fn( + cls, + choices, + input_nodes, + layout, + input_gen_fns=None, + ): + if input_gen_fns is None: + input_gen_fns = {} + + # de-duplicate args + unique_example_inputs = { + x.get_name(): input_gen_fns.get(i, cls.benchmark_example_value)(x) + for i, x in enumerate(input_nodes) + } + example_inputs = list(unique_example_inputs.values()) + example_inputs_extern = [ + torch.as_strided( + unique_example_inputs[input_node.get_name()], + V.graph.sizevars.size_hints( + input_node.get_size(), + fallback=config.unbacked_symint_fallback, + ), + V.graph.sizevars.size_hints( + input_node.get_stride(), + fallback=config.unbacked_symint_fallback, + ), + V.graph.sizevars.size_hint( + input_node.get_layout().offset, + fallback=config.unbacked_symint_fallback, + ), + ) + for input_node in input_nodes + ] + + out = cls.benchmark_example_value(layout) + out_extern = torch.as_strided( + out, out.size(), out.stride(), V.graph.sizevars.size_hint(layout.offset) + ) + if VERIFY: + choices[0].benchmark(*example_inputs_extern, out=out_extern) + expected = out_extern.clone() + + if DEBUG: + print(f"{len(choices)} tuning requests:") + + def debug_str(): + def tensor_repr(x): + return ( + f"torch.empty_strided({tuple(x.size())!r}, {tuple(x.stride())!r}, " + f"dtype={x.dtype!r}, device={x.device.type!r})" + ) + + lines = [ + "inputs = [", + ] + for x in example_inputs: + lines.append(f" {tensor_repr(x)},") + lines += ["]", f"out = {tensor_repr(out)}", ""] + return "\n".join(lines) + + def benchmark_choice_in_current_process(choice): + out.zero_() + if isinstance(choice, ExternKernelCaller): + # aten kernels want the offset baked in for sliced tensors + result = choice.benchmark(*example_inputs_extern, out=out_extern) + else: + # triton templates want the base pointer for sliced tensors + result = choice.benchmark(*example_inputs, out=out) + if VERIFY: + torch.testing.assert_close(out_extern, expected, **VERIFY) + torch.cuda.synchronize() # shake out any CUDA errors + return result + + def benchmark_in_current_process(choices): + timings = {} + for choice in choices: + try: + timing = benchmark_choice_in_current_process(choice) + except CUDACompileError as e: + log.warning( + "CUDA compilation error: \n%s. \nIgnore this choice.", str(e) + ) + timing = float("inf") + except RuntimeError as e: + msg = str(e) + if "invalid argument" in msg: + msg += "\n\nThis may mean this GPU is too small for max_autotune mode.\n\n" + log.warning(msg) + timing = float("inf") + else: + if "illegal memory access" in msg: + msg += "\n\nEither error in template or triton bug.\n" + raise ErrorFromChoice(msg, choice, debug_str()) # noqa: TRY200 + except AssertionError as e: + raise AssertionError( # noqa: TRY200 + f"Incorrect result from choice {choice}\n\n{e}" + ) + + timings[choice] = timing + + return timings + + def benchmark_in_sub_process(choices): + from . import autotune_process + + # only benchmark triton kernel in sub process for now. + # ATen/Extern kernel are still benchmarked in the current process. + extern = [c for c in choices if isinstance(c, ExternKernelCaller)] + triton = [c for c in choices if not isinstance(c, ExternKernelCaller)] + + timings = benchmark_in_current_process(extern) + timings.update(autotune_process.benchmark_in_sub_process(triton)) + return timings + + benchmark = ( + benchmark_in_sub_process + if config.autotune_in_subproc + else benchmark_in_current_process + ) + + return benchmark + + @staticmethod + def log_results( + name: str, + input_nodes: List[ir.IRNode], + timings: Dict[ChoiceCaller, float], + elapse: float, + ): + V.debug.log_autotuning_results(name, input_nodes, timings, elapse) + if not (config.max_autotune or config.max_autotune_gemm) or not PRINT_AUTOTUNE: + return + sizes = ", ".join( + [ + "x".join( + map( + str, + V.graph.sizevars.size_hints( + n.get_size(), fallback=config.unbacked_symint_fallback + ), + ) + ) + for n in input_nodes + ] + ) + n = None if log.getEffectiveLevel() == logging.DEBUG else 10 + top_k = sorted(timings, key=timings.__getitem__)[:n] + best = top_k[0] + best_time = timings[best] + sys.stderr.write(f"AUTOTUNE {name}({sizes})\n") + for choice in top_k: + result = timings[choice] + if result: + sys.stderr.write( + f" {choice.name} {result:.4f} ms {best_time/result:.1%}\n" + ) + else: + sys.stderr.write( + f" {choice.name} {result:.4f} ms \n" + ) + + autotune_type_str = ( + "SubProcess" if config.autotune_in_subproc else "SingleProcess" + ) + sys.stderr.write(f"{autotune_type_str} AUTOTUNE takes {elapse:.4f} seconds\n") + + @staticmethod + def benchmark_example_value(node): + """ + Convert an ir.Buffer into a concrete torch.Tensor we can use for + benchmarking. + """ + if isinstance(node, ir.Layout): + node = ir.Buffer("fake", node) + # triton templates want the base tensor. + if isinstance(node, ir.BaseView): + node = node.unwrap_view() + # preserve rng states to avoid the rand_strided call below changes + # the rng states for the real model code. + with preserve_rng_state(): + return rand_strided( + V.graph.sizevars.size_hints( + node.get_size(), + fallback=config.unbacked_symint_fallback, + ), + V.graph.sizevars.size_hints( + node.get_stride(), + fallback=config.unbacked_symint_fallback, + ), + device=node.get_device(), + dtype=node.get_dtype(), + extra_size=node.layout.offset, + ) + + @staticmethod + def key_of(node): + """ + Extract the pieces of an ir.Buffer that we should invalidate cached + autotuning results on. + """ + sizevars = V.graph.sizevars + return ( + node.get_device().type, + str(node.get_dtype()), + *sizevars.size_hints( + node.get_size(), + fallback=config.unbacked_symint_fallback, + ), + *sizevars.size_hints( + node.get_stride(), + fallback=config.unbacked_symint_fallback, + ), + sizevars.size_hint( + node.get_layout().offset, + fallback=config.unbacked_symint_fallback, + ), + ) + + +_ALGORITHM_SELECTOR_CACHE: Optional[AlgorithmSelectorCache] = None + + +def autotune_select_algorithm(*args, **kwargs): + global _ALGORITHM_SELECTOR_CACHE + if _ALGORITHM_SELECTOR_CACHE is None: + _ALGORITHM_SELECTOR_CACHE = AlgorithmSelectorCache() + return _ALGORITHM_SELECTOR_CACHE(*args, **kwargs) + + +def realize_inputs(*args): + if len(args) == 1: + return ir.ExternKernel.require_stride1(ir.ExternKernel.realize_input(args[0])) + return [realize_inputs(x) for x in args] + + +# ensure lowering is imported so that `extern_kernels.*` is populated +from . import lowering # noqa: F401 diff --git a/shared/package-files/86/868461dff428d36458bb0d9cbd105ae24f5616ae4385f622784ddd167e5bf526/sparse_resize_and_clear_ops.h b/shared/package-files/86/868461dff428d36458bb0d9cbd105ae24f5616ae4385f622784ddd167e5bf526/sparse_resize_and_clear_ops.h new file mode 100644 index 0000000000000000000000000000000000000000..3d015efd6e68c7cc319766ad493734b940fb64b0 --- /dev/null +++ b/shared/package-files/86/868461dff428d36458bb0d9cbd105ae24f5616ae4385f622784ddd167e5bf526/sparse_resize_and_clear_ops.h @@ -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 sparse_resize_and_clear_ { + using schema = const at::Tensor & (const at::Tensor &, at::IntArrayRef, 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::sparse_resize_and_clear_") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "sparse_resize_and_clear_(Tensor(a!) self, int[] size, int sparse_dim, int dense_dim) -> Tensor(a!)") + static const at::Tensor & call(const at::Tensor & self, at::IntArrayRef size, int64_t sparse_dim, int64_t dense_dim); + static const at::Tensor & redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef size, int64_t sparse_dim, int64_t dense_dim); +}; + +struct TORCH_API sparse_resize_and_clear_out { + using schema = const at::Tensor & (const at::Tensor &, at::IntArrayRef, int64_t, int64_t, 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::sparse_resize_and_clear") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "out") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "sparse_resize_and_clear.out(Tensor self, int[] size, int sparse_dim, int dense_dim, *, Tensor(a!) out) -> Tensor(a!)") + static const at::Tensor & call(const at::Tensor & self, at::IntArrayRef size, int64_t sparse_dim, int64_t dense_dim, const at::Tensor & out); + static const at::Tensor & redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef size, int64_t sparse_dim, int64_t dense_dim, const at::Tensor & out); +}; + +struct TORCH_API sparse_resize_and_clear { + using schema = at::Tensor (const at::Tensor &, at::IntArrayRef, 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::sparse_resize_and_clear") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "sparse_resize_and_clear(Tensor self, int[] size, int sparse_dim, int dense_dim) -> Tensor") + static at::Tensor call(const at::Tensor & self, at::IntArrayRef size, int64_t sparse_dim, int64_t dense_dim); + static at::Tensor redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::IntArrayRef size, int64_t sparse_dim, int64_t dense_dim); +}; + +}} // namespace at::_ops diff --git a/shared/package-files/86/86878e13746f8ede8d33393ab3ee5a045c265d9dd6d5bb927e7bf5d777498b3a/batchnorm.py b/shared/package-files/86/86878e13746f8ede8d33393ab3ee5a045c265d9dd6d5bb927e7bf5d777498b3a/batchnorm.py new file mode 100644 index 0000000000000000000000000000000000000000..ad375f893318ec130c4b7777c7f557a6697f0091 --- /dev/null +++ b/shared/package-files/86/86878e13746f8ede8d33393ab3ee5a045c265d9dd6d5bb927e7bf5d777498b3a/batchnorm.py @@ -0,0 +1,159 @@ +# 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. +"""Tracks the running statistics per mini-batch instead of micro-batch.""" +from typing import TypeVar, cast + +import torch +from torch import Tensor, nn +from torch.nn.functional import batch_norm +from torch.nn.modules.batchnorm import _BatchNorm + +from .checkpoint import is_recomputing + +__all__ = ["DeferredBatchNorm"] + + +TModule = TypeVar("TModule", bound=nn.Module) + + +class DeferredBatchNorm(_BatchNorm): + """A BatchNorm layer tracks multiple micro-batches to update running statistics per mini-batch.""" + + sum: Tensor + sum_squares: Tensor + running_mean: Tensor + running_var: Tensor + num_batches_tracked: Tensor + + def __init__( + self, + num_features: int, + eps: float = 1e-5, + momentum: float = 0.1, + affine: bool = True, + chunks: int = 1, + ) -> None: + super().__init__(num_features, eps, momentum, affine, track_running_stats=True) + + self.register_buffer("sum", torch.zeros_like(self.running_mean)) + self.register_buffer("sum_squares", torch.zeros_like(self.running_var)) + + self.counter = 0 + self.tracked = 0 + self.chunks = chunks + + def _check_input_dim(self, input: Tensor) -> None: + # It's the typical _check_input_dim() implementation in PyTorch. + if input.dim() <= 2: + raise ValueError("expected at least 3D input (got %dD input)" % input.dim()) + + def _track(self, input: Tensor) -> bool: + """Tracks statistics of a micro-batch.""" + # Dimensions except channel. For example, (0, 2, 3) is for BatchNorm2d. + dim = [0] + dim.extend(range(2, input.dim())) + + with torch.no_grad(): + self.sum += input.sum(dim) + self.sum_squares += (input ** 2).sum(dim) + + size = input.size().numel() // input.size(1) + self.counter += size + self.tracked += 1 + + return self.tracked == self.chunks + + def _commit(self) -> None: + """Update the running statistics of a mini-batch.""" + exponential_average_factor = 0.0 + self.num_batches_tracked += 1 + if self.momentum is None: # use cumulative moving average + exponential_average_factor = 1.0 / float(self.num_batches_tracked) + else: # use exponential moving average + exponential_average_factor = self.momentum + + mean = self.sum / self.counter + var = self.sum_squares / self.counter - mean ** 2 + + # Calculate the exponential moving average here. + m = exponential_average_factor + + self.running_mean *= 1 - m + self.running_mean += mean * m + + self.running_var *= 1 - m + self.running_var += var * m + + self.sum.zero_() + self.sum_squares.zero_() + self.counter = 0 + self.tracked = 0 + + def forward(self, input: Tensor) -> Tensor: + if not self.training: + # Don't train parameters on the evaluation mode. + return batch_norm( + input, + running_mean=self.running_mean, + running_var=self.running_var, + weight=self.weight, + bias=self.bias, + training=False, + momentum=0.0, + eps=self.eps, + ) + + if not is_recomputing(): + # Track a micro-batch on the training mode + # but not under a recomputation. + tracked_enough = self._track(input) + + # Update the running statistics for a mini-batch + # if it has tracked enough micro-batches. + if tracked_enough: + self._commit() + + # Normalize a micro-batch and train the parameters. + return batch_norm( + input, + running_mean=None, + running_var=None, + weight=self.weight, + bias=self.bias, + training=True, + momentum=0.0, + eps=self.eps, + ) + + @classmethod + def convert_deferred_batch_norm(cls, module: TModule, chunks: int = 1) -> TModule: + """Converts a :class:`nn.BatchNorm` or underlying :class:`nn.BatchNorm`s into :class:`DeferredBatchNorm`:: + + from torchvision.models.resnet import resnet101 + from torchpipe.batchnorm import DeferredBatchNorm + model = resnet101() + model = DeferredBatchNorm.convert_deferred_batch_norm(model) + + """ + if isinstance(module, DeferredBatchNorm) and module.chunks is chunks: + return cast(TModule, module) + + module_output: nn.Module = module + + if isinstance(module, _BatchNorm) and module.track_running_stats: + module_output = DeferredBatchNorm(module.num_features, module.eps, module.momentum, module.affine, chunks) + if module.affine: + module_output.register_parameter("weight", module.weight) + module_output.register_parameter("bias", module.bias) + module_output.register_buffer("running_mean", module.running_mean) + module_output.register_buffer("running_var", module.running_var) + module_output.register_buffer("num_batches_tracked", module.num_batches_tracked) + + for name, child in module.named_children(): + module_output.add_module(name, cls.convert_deferred_batch_norm(child, chunks)) + + return cast(TModule, module_output) diff --git a/shared/package-files/86/8694adda6667651699d0a343c58746515174c9f6ab9d136ad2714086baa60a92/_external_property_file_reference.py b/shared/package-files/86/8694adda6667651699d0a343c58746515174c9f6ab9d136ad2714086baa60a92/_external_property_file_reference.py new file mode 100644 index 0000000000000000000000000000000000000000..13a472fec9a34f640331ed2310b6a4c933fdbc9f --- /dev/null +++ b/shared/package-files/86/8694adda6667651699d0a343c58746515174c9f6ab9d136ad2714086baa60a92/_external_property_file_reference.py @@ -0,0 +1,33 @@ +# DO NOT EDIT! This file was generated by jschema_to_python version 0.0.1.dev29, +# with extension for dataclasses and type annotation. + +from __future__ import annotations + +import dataclasses +from typing import Optional + +from torch.onnx._internal.diagnostics.infra.sarif import ( + _artifact_location, + _property_bag, +) + + +@dataclasses.dataclass +class ExternalPropertyFileReference(object): + """Contains information that enables a SARIF consumer to locate the external property file that contains the value of an externalized property associated with the run.""" + + guid: Optional[str] = dataclasses.field( + default=None, metadata={"schema_property_name": "guid"} + ) + item_count: int = dataclasses.field( + default=-1, metadata={"schema_property_name": "itemCount"} + ) + location: Optional[_artifact_location.ArtifactLocation] = dataclasses.field( + default=None, metadata={"schema_property_name": "location"} + ) + properties: Optional[_property_bag.PropertyBag] = dataclasses.field( + default=None, metadata={"schema_property_name": "properties"} + ) + + +# flake8: noqa diff --git a/shared/package-files/86/86974d9588592caaeb3774c5e22eb9763a4e95c3e91244c6d4c5fcdfce50a2fd/test_dummyarray.py b/shared/package-files/86/86974d9588592caaeb3774c5e22eb9763a4e95c3e91244c6d4c5fcdfce50a2fd/test_dummyarray.py new file mode 100644 index 0000000000000000000000000000000000000000..e4ad7d0fd6638f5f5e84b00cf60430b505bf3fee --- /dev/null +++ b/shared/package-files/86/86974d9588592caaeb3774c5e22eb9763a4e95c3e91244c6d4c5fcdfce50a2fd/test_dummyarray.py @@ -0,0 +1,359 @@ +import unittest +import itertools +import numpy as np +from numba.cuda.cudadrv.dummyarray import Array +from numba.cuda.testing import skip_on_cudasim + + +@skip_on_cudasim("Tests internals of the CUDA driver device array") +class TestSlicing(unittest.TestCase): + + def assertSameContig(self, arr, nparr): + attrs = 'C_CONTIGUOUS', 'F_CONTIGUOUS' + for attr in attrs: + if arr.flags[attr] != nparr.flags[attr]: + if arr.size == 0 and nparr.size == 0: + # numpy <=1.7 bug that some empty array are contiguous and + # some are not + pass + else: + self.fail("contiguous flag mismatch:\ngot=%s\nexpect=%s" % + (arr.flags, nparr.flags)) + + #### 1D + + def test_slice0_1d(self): + nparr = np.empty(4) + arr = Array.from_desc(0, nparr.shape, nparr.strides, + nparr.dtype.itemsize) + self.assertSameContig(arr, nparr) + xx = -2, -1, 0, 1, 2 + for x in xx: + expect = nparr[x:] + got = arr[x:] + self.assertSameContig(got, expect) + self.assertEqual(got.shape, expect.shape) + self.assertEqual(got.strides, expect.strides) + + def test_slice1_1d(self): + nparr = np.empty(4) + arr = Array.from_desc(0, nparr.shape, nparr.strides, + nparr.dtype.itemsize) + xx = -2, -1, 0, 1, 2 + for x in xx: + expect = nparr[:x] + got = arr[:x] + self.assertSameContig(got, expect) + self.assertEqual(got.shape, expect.shape) + self.assertEqual(got.strides, expect.strides) + + def test_slice2_1d(self): + nparr = np.empty(4) + arr = Array.from_desc(0, nparr.shape, nparr.strides, + nparr.dtype.itemsize) + xx = -2, -1, 0, 1, 2 + for x, y in itertools.product(xx, xx): + expect = nparr[x:y] + got = arr[x:y] + self.assertSameContig(got, expect) + self.assertEqual(got.shape, expect.shape) + self.assertEqual(got.strides, expect.strides) + + #### 2D + + def test_slice0_2d(self): + nparr = np.empty((4, 5)) + arr = Array.from_desc(0, nparr.shape, nparr.strides, + nparr.dtype.itemsize) + xx = -2, 0, 1, 2 + for x in xx: + expect = nparr[x:] + got = arr[x:] + self.assertSameContig(got, expect) + self.assertEqual(got.shape, expect.shape) + self.assertEqual(got.strides, expect.strides) + + for x, y in itertools.product(xx, xx): + expect = nparr[x:, y:] + got = arr[x:, y:] + self.assertSameContig(got, expect) + self.assertEqual(got.shape, expect.shape) + self.assertEqual(got.strides, expect.strides) + + def test_slice1_2d(self): + nparr = np.empty((4, 5)) + arr = Array.from_desc(0, nparr.shape, nparr.strides, + nparr.dtype.itemsize) + xx = -2, 0, 2 + for x in xx: + expect = nparr[:x] + got = arr[:x] + self.assertEqual(got.shape, expect.shape) + self.assertEqual(got.strides, expect.strides) + self.assertSameContig(got, expect) + + for x, y in itertools.product(xx, xx): + expect = nparr[:x, :y] + got = arr[:x, :y] + self.assertEqual(got.shape, expect.shape) + self.assertEqual(got.strides, expect.strides) + self.assertSameContig(got, expect) + + def test_slice2_2d(self): + nparr = np.empty((4, 5)) + arr = Array.from_desc(0, nparr.shape, nparr.strides, + nparr.dtype.itemsize) + xx = -2, 0, 2 + for s, t, u, v in itertools.product(xx, xx, xx, xx): + expect = nparr[s:t, u:v] + got = arr[s:t, u:v] + self.assertSameContig(got, expect) + self.assertEqual(got.shape, expect.shape) + self.assertEqual(got.strides, expect.strides) + + for x, y in itertools.product(xx, xx): + expect = nparr[s:t, u:v] + got = arr[s:t, u:v] + self.assertSameContig(got, expect) + self.assertEqual(got.shape, expect.shape) + self.assertEqual(got.strides, expect.strides) + + #### Strided + + def test_strided_1d(self): + nparr = np.empty(4) + arr = Array.from_desc(0, nparr.shape, nparr.strides, + nparr.dtype.itemsize) + xx = -2, -1, 1, 2 + for x in xx: + expect = nparr[::x] + got = arr[::x] + self.assertSameContig(got, expect) + self.assertEqual(got.shape, expect.shape) + self.assertEqual(got.strides, expect.strides) + + def test_strided_2d(self): + nparr = np.empty((4, 5)) + arr = Array.from_desc(0, nparr.shape, nparr.strides, + nparr.dtype.itemsize) + xx = -2, -1, 1, 2 + for a, b in itertools.product(xx, xx): + expect = nparr[::a, ::b] + got = arr[::a, ::b] + self.assertSameContig(got, expect) + self.assertEqual(got.shape, expect.shape) + self.assertEqual(got.strides, expect.strides) + + def test_strided_3d(self): + nparr = np.empty((4, 5, 6)) + arr = Array.from_desc(0, nparr.shape, nparr.strides, + nparr.dtype.itemsize) + xx = -2, -1, 1, 2 + for a, b, c in itertools.product(xx, xx, xx): + expect = nparr[::a, ::b, ::c] + got = arr[::a, ::b, ::c] + self.assertSameContig(got, expect) + self.assertEqual(got.shape, expect.shape) + self.assertEqual(got.strides, expect.strides) + + def test_issue_2766(self): + z = np.empty((1, 2, 3)) + z = np.transpose(z, axes=(2, 0, 1)) + arr = Array.from_desc(0, z.shape, z.strides, z.itemsize) + self.assertEqual(z.flags['C_CONTIGUOUS'], arr.flags['C_CONTIGUOUS']) + self.assertEqual(z.flags['F_CONTIGUOUS'], arr.flags['F_CONTIGUOUS']) + + +@skip_on_cudasim("Tests internals of the CUDA driver device array") +class TestReshape(unittest.TestCase): + def test_reshape_2d2d(self): + nparr = np.empty((4, 5)) + arr = Array.from_desc(0, nparr.shape, nparr.strides, + nparr.dtype.itemsize) + expect = nparr.reshape(5, 4) + got = arr.reshape(5, 4)[0] + self.assertEqual(got.shape, expect.shape) + self.assertEqual(got.strides, expect.strides) + + def test_reshape_2d1d(self): + nparr = np.empty((4, 5)) + arr = Array.from_desc(0, nparr.shape, nparr.strides, + nparr.dtype.itemsize) + expect = nparr.reshape(5 * 4) + got = arr.reshape(5 * 4)[0] + self.assertEqual(got.shape, expect.shape) + self.assertEqual(got.strides, expect.strides) + + def test_reshape_3d3d(self): + nparr = np.empty((3, 4, 5)) + arr = Array.from_desc(0, nparr.shape, nparr.strides, + nparr.dtype.itemsize) + expect = nparr.reshape(5, 3, 4) + got = arr.reshape(5, 3, 4)[0] + self.assertEqual(got.shape, expect.shape) + self.assertEqual(got.strides, expect.strides) + + def test_reshape_3d2d(self): + nparr = np.empty((3, 4, 5)) + arr = Array.from_desc(0, nparr.shape, nparr.strides, + nparr.dtype.itemsize) + expect = nparr.reshape(3 * 4, 5) + got = arr.reshape(3 * 4, 5)[0] + self.assertEqual(got.shape, expect.shape) + self.assertEqual(got.strides, expect.strides) + + def test_reshape_3d1d(self): + nparr = np.empty((3, 4, 5)) + arr = Array.from_desc(0, nparr.shape, nparr.strides, + nparr.dtype.itemsize) + expect = nparr.reshape(3 * 4 * 5) + got = arr.reshape(3 * 4 * 5)[0] + self.assertEqual(got.shape, expect.shape) + self.assertEqual(got.strides, expect.strides) + + def test_reshape_infer2d2d(self): + nparr = np.empty((4, 5)) + arr = Array.from_desc(0, nparr.shape, nparr.strides, + nparr.dtype.itemsize) + expect = nparr.reshape(-1, 4) + got = arr.reshape(-1, 4)[0] + self.assertEqual(got.shape, expect.shape) + self.assertEqual(got.strides, expect.strides) + + def test_reshape_infer2d1d(self): + nparr = np.empty((4, 5)) + arr = Array.from_desc(0, nparr.shape, nparr.strides, + nparr.dtype.itemsize) + expect = nparr.reshape(-1) + got = arr.reshape(-1)[0] + self.assertEqual(got.shape, expect.shape) + self.assertEqual(got.strides, expect.strides) + + def test_reshape_infer3d3d(self): + nparr = np.empty((3, 4, 5)) + arr = Array.from_desc(0, nparr.shape, nparr.strides, + nparr.dtype.itemsize) + expect = nparr.reshape(5, -1, 4) + got = arr.reshape(5, -1, 4)[0] + self.assertEqual(got.shape, expect.shape) + self.assertEqual(got.strides, expect.strides) + + def test_reshape_infer3d2d(self): + nparr = np.empty((3, 4, 5)) + arr = Array.from_desc(0, nparr.shape, nparr.strides, + nparr.dtype.itemsize) + expect = nparr.reshape(3, -1) + got = arr.reshape(3, -1)[0] + self.assertEqual(got.shape, expect.shape) + self.assertEqual(got.strides, expect.strides) + + def test_reshape_infer3d1d(self): + nparr = np.empty((3, 4, 5)) + arr = Array.from_desc(0, nparr.shape, nparr.strides, + nparr.dtype.itemsize) + expect = nparr.reshape(-1) + got = arr.reshape(-1)[0] + self.assertEqual(got.shape, expect.shape) + self.assertEqual(got.strides, expect.strides) + + def test_reshape_infer_two_unknowns(self): + nparr = np.empty((3, 4, 5)) + arr = Array.from_desc(0, nparr.shape, nparr.strides, + nparr.dtype.itemsize) + + with self.assertRaises(ValueError) as raises: + arr.reshape(-1, -1, 3) + self.assertIn('can only specify one unknown dimension', + str(raises.exception)) + + def test_reshape_infer_invalid_shape(self): + nparr = np.empty((3, 4, 5)) + arr = Array.from_desc(0, nparr.shape, nparr.strides, + nparr.dtype.itemsize) + + with self.assertRaises(ValueError) as raises: + arr.reshape(-1, 7) + + expected_message = 'cannot infer valid shape for unknown dimension' + self.assertIn(expected_message, str(raises.exception)) + + +@skip_on_cudasim("Tests internals of the CUDA driver device array") +class TestSqueeze(unittest.TestCase): + def test_squeeze(self): + nparr = np.empty((1, 2, 1, 4, 1, 3)) + arr = Array.from_desc( + 0, nparr.shape, nparr.strides, nparr.dtype.itemsize + ) + + def _assert_equal_shape_strides(arr1, arr2): + self.assertEqual(arr1.shape, arr2.shape) + self.assertEqual(arr1.strides, arr2.strides) + _assert_equal_shape_strides(arr, nparr) + _assert_equal_shape_strides(arr.squeeze()[0], nparr.squeeze()) + for axis in (0, 2, 4, (0, 2), (0, 4), (2, 4), (0, 2, 4)): + _assert_equal_shape_strides( + arr.squeeze(axis=axis)[0], nparr.squeeze(axis=axis) + ) + + def test_squeeze_invalid_axis(self): + nparr = np.empty((1, 2, 1, 4, 1, 3)) + arr = Array.from_desc( + 0, nparr.shape, nparr.strides, nparr.dtype.itemsize + ) + with self.assertRaises(ValueError): + arr.squeeze(axis=1) + with self.assertRaises(ValueError): + arr.squeeze(axis=(2, 3)) + + +@skip_on_cudasim("Tests internals of the CUDA driver device array") +class TestExtent(unittest.TestCase): + def test_extent_1d(self): + nparr = np.empty(4) + arr = Array.from_desc(0, nparr.shape, nparr.strides, + nparr.dtype.itemsize) + s, e = arr.extent + self.assertEqual(e - s, nparr.size * nparr.dtype.itemsize) + + def test_extent_2d(self): + nparr = np.empty((4, 5)) + arr = Array.from_desc(0, nparr.shape, nparr.strides, + nparr.dtype.itemsize) + s, e = arr.extent + self.assertEqual(e - s, nparr.size * nparr.dtype.itemsize) + + def test_extent_iter_1d(self): + nparr = np.empty(4) + arr = Array.from_desc(0, nparr.shape, nparr.strides, + nparr.dtype.itemsize) + [ext] = list(arr.iter_contiguous_extent()) + self.assertEqual(ext, arr.extent) + + def test_extent_iter_2d(self): + nparr = np.empty((4, 5)) + arr = Array.from_desc(0, nparr.shape, nparr.strides, + nparr.dtype.itemsize) + [ext] = list(arr.iter_contiguous_extent()) + self.assertEqual(ext, arr.extent) + + self.assertEqual(len(list(arr[::2].iter_contiguous_extent())), 2) + + +@skip_on_cudasim("Tests internals of the CUDA driver device array") +class TestIterate(unittest.TestCase): + def test_for_loop(self): + # for #4201 + N = 5 + nparr = np.empty(N) + arr = Array.from_desc(0, nparr.shape, nparr.strides, + nparr.dtype.itemsize) + + x = 0 # just a placeholder + # this loop should not raise AssertionError + for val in arr: + x = val # noqa: F841 + + +if __name__ == '__main__': + unittest.main() diff --git a/shared/package-files/86/869a05428aedb0b65d312aff7c920bcd7ceb230165668163b034a8ea336dbd6b/from_template.py b/shared/package-files/86/869a05428aedb0b65d312aff7c920bcd7ceb230165668163b034a8ea336dbd6b/from_template.py new file mode 100644 index 0000000000000000000000000000000000000000..90d1f4c384c7807c621eada8ed7685e5845c5c56 --- /dev/null +++ b/shared/package-files/86/869a05428aedb0b65d312aff7c920bcd7ceb230165668163b034a8ea336dbd6b/from_template.py @@ -0,0 +1,261 @@ +#!/usr/bin/env python3 +""" + +process_file(filename) + + takes templated file .xxx.src and produces .xxx file where .xxx + is .pyf .f90 or .f using the following template rules: + + '<..>' denotes a template. + + All function and subroutine blocks in a source file with names that + contain '<..>' will be replicated according to the rules in '<..>'. + + The number of comma-separated words in '<..>' will determine the number of + replicates. + + '<..>' may have two different forms, named and short. For example, + + named: + where anywhere inside a block '

' will be replaced with + 'd', 's', 'z', and 'c' for each replicate of the block. + + <_c> is already defined: <_c=s,d,c,z> + <_t> is already defined: <_t=real,double precision,complex,double complex> + + short: + , a short form of the named, useful when no

appears inside + a block. + + In general, '<..>' contains a comma separated list of arbitrary + expressions. If these expression must contain a comma|leftarrow|rightarrow, + then prepend the comma|leftarrow|rightarrow with a backslash. + + If an expression matches '\\' then it will be replaced + by -th expression. + + Note that all '<..>' forms in a block must have the same number of + comma-separated entries. + + Predefined named template rules: + + + + + + +""" +__all__ = ['process_str', 'process_file'] + +import os +import sys +import re + +routine_start_re = re.compile(r'(\n|\A)(( (\$|\*))|)\s*(subroutine|function)\b', re.I) +routine_end_re = re.compile(r'\n\s*end\s*(subroutine|function)\b.*(\n|\Z)', re.I) +function_start_re = re.compile(r'\n (\$|\*)\s*function\b', re.I) + +def parse_structure(astr): + """ Return a list of tuples for each function or subroutine each + tuple is the start and end of a subroutine or function to be + expanded. + """ + + spanlist = [] + ind = 0 + while True: + m = routine_start_re.search(astr, ind) + if m is None: + break + start = m.start() + if function_start_re.match(astr, start, m.end()): + while True: + i = astr.rfind('\n', ind, start) + if i==-1: + break + start = i + if astr[i:i+7]!='\n $': + break + start += 1 + m = routine_end_re.search(astr, m.end()) + ind = end = m and m.end()-1 or len(astr) + spanlist.append((start, end)) + return spanlist + +template_re = re.compile(r"<\s*(\w[\w\d]*)\s*>") +named_re = re.compile(r"<\s*(\w[\w\d]*)\s*=\s*(.*?)\s*>") +list_re = re.compile(r"<\s*((.*?))\s*>") + +def find_repl_patterns(astr): + reps = named_re.findall(astr) + names = {} + for rep in reps: + name = rep[0].strip() or unique_key(names) + repl = rep[1].replace(r'\,', '@comma@') + thelist = conv(repl) + names[name] = thelist + return names + +def find_and_remove_repl_patterns(astr): + names = find_repl_patterns(astr) + astr = re.subn(named_re, '', astr)[0] + return astr, names + +item_re = re.compile(r"\A\\(?P\d+)\Z") +def conv(astr): + b = astr.split(',') + l = [x.strip() for x in b] + for i in range(len(l)): + m = item_re.match(l[i]) + if m: + j = int(m.group('index')) + l[i] = l[j] + return ','.join(l) + +def unique_key(adict): + """ Obtain a unique key given a dictionary.""" + allkeys = list(adict.keys()) + done = False + n = 1 + while not done: + newkey = '__l%s' % (n) + if newkey in allkeys: + n += 1 + else: + done = True + return newkey + + +template_name_re = re.compile(r'\A\s*(\w[\w\d]*)\s*\Z') +def expand_sub(substr, names): + substr = substr.replace(r'\>', '@rightarrow@') + substr = substr.replace(r'\<', '@leftarrow@') + lnames = find_repl_patterns(substr) + substr = named_re.sub(r"<\1>", substr) # get rid of definition templates + + def listrepl(mobj): + thelist = conv(mobj.group(1).replace(r'\,', '@comma@')) + if template_name_re.match(thelist): + return "<%s>" % (thelist) + name = None + for key in lnames.keys(): # see if list is already in dictionary + if lnames[key] == thelist: + name = key + if name is None: # this list is not in the dictionary yet + name = unique_key(lnames) + lnames[name] = thelist + return "<%s>" % name + + substr = list_re.sub(listrepl, substr) # convert all lists to named templates + # newnames are constructed as needed + + numsubs = None + base_rule = None + rules = {} + for r in template_re.findall(substr): + if r not in rules: + thelist = lnames.get(r, names.get(r, None)) + if thelist is None: + raise ValueError('No replicates found for <%s>' % (r)) + if r not in names and not thelist.startswith('_'): + names[r] = thelist + rule = [i.replace('@comma@', ',') for i in thelist.split(',')] + num = len(rule) + + if numsubs is None: + numsubs = num + rules[r] = rule + base_rule = r + elif num == numsubs: + rules[r] = rule + else: + print("Mismatch in number of replacements (base <%s=%s>)" + " for <%s=%s>. Ignoring." % + (base_rule, ','.join(rules[base_rule]), r, thelist)) + if not rules: + return substr + + def namerepl(mobj): + name = mobj.group(1) + return rules.get(name, (k+1)*[name])[k] + + newstr = '' + for k in range(numsubs): + newstr += template_re.sub(namerepl, substr) + '\n\n' + + newstr = newstr.replace('@rightarrow@', '>') + newstr = newstr.replace('@leftarrow@', '<') + return newstr + +def process_str(allstr): + newstr = allstr + writestr = '' + + struct = parse_structure(newstr) + + oldend = 0 + names = {} + names.update(_special_names) + for sub in struct: + cleanedstr, defs = find_and_remove_repl_patterns(newstr[oldend:sub[0]]) + writestr += cleanedstr + names.update(defs) + writestr += expand_sub(newstr[sub[0]:sub[1]], names) + oldend = sub[1] + writestr += newstr[oldend:] + + return writestr + +include_src_re = re.compile(r"(\n|\A)\s*include\s*['\"](?P[\w\d./\\]+\.src)['\"]", re.I) + +def resolve_includes(source): + d = os.path.dirname(source) + with open(source) as fid: + lines = [] + for line in fid: + m = include_src_re.match(line) + if m: + fn = m.group('name') + if not os.path.isabs(fn): + fn = os.path.join(d, fn) + if os.path.isfile(fn): + lines.extend(resolve_includes(fn)) + else: + lines.append(line) + else: + lines.append(line) + return lines + +def process_file(source): + lines = resolve_includes(source) + return process_str(''.join(lines)) + +_special_names = find_repl_patterns(''' +<_c=s,d,c,z> +<_t=real,double precision,complex,double complex> + + + + + +''') + +def main(): + try: + file = sys.argv[1] + except IndexError: + fid = sys.stdin + outfile = sys.stdout + else: + fid = open(file, 'r') + (base, ext) = os.path.splitext(file) + newname = base + outfile = open(newname, 'w') + + allstr = fid.read() + writestr = process_str(allstr) + outfile.write(writestr) + + +if __name__ == "__main__": + main() diff --git a/shared/package-files/86/869aca5385a643e5daa3f2cfd67cdd49b437d4ac41d9c0533f8999793f434f3d/conv_tbc_compositeexplicitautograd_dispatch.h b/shared/package-files/86/869aca5385a643e5daa3f2cfd67cdd49b437d4ac41d9c0533f8999793f434f3d/conv_tbc_compositeexplicitautograd_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..d58cce673b59adf0604fd9635bff1cd5efe97cd8 --- /dev/null +++ b/shared/package-files/86/869aca5385a643e5daa3f2cfd67cdd49b437d4ac41d9c0533f8999793f434f3d/conv_tbc_compositeexplicitautograd_dispatch.h @@ -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 compositeexplicitautograd { + +TORCH_API at::Tensor conv_tbc(const at::Tensor & self, const at::Tensor & weight, const at::Tensor & bias, int64_t pad=0); +TORCH_API at::Tensor & conv_tbc_out(at::Tensor & out, const at::Tensor & self, const at::Tensor & weight, const at::Tensor & bias, int64_t pad=0); +TORCH_API at::Tensor & conv_tbc_outf(const at::Tensor & self, const at::Tensor & weight, const at::Tensor & bias, int64_t pad, at::Tensor & out); + +} // namespace compositeexplicitautograd +} // namespace at diff --git a/shared/package-files/86/869bc41291f9327e0ddc8f28ff8f78dbd88ab4e7307e7c53baaeb68852a3b856/signatures.py b/shared/package-files/86/869bc41291f9327e0ddc8f28ff8f78dbd88ab4e7307e7c53baaeb68852a3b856/signatures.py new file mode 100644 index 0000000000000000000000000000000000000000..a53d15c036a9106e865f4665945ab3b9cf0de6e6 --- /dev/null +++ b/shared/package-files/86/869bc41291f9327e0ddc8f28ff8f78dbd88ab4e7307e7c53baaeb68852a3b856/signatures.py @@ -0,0 +1,73 @@ +from dataclasses import dataclass +from typing import List, Optional, Set + +import torchgen.api.cpp as aten_cpp + +from torchgen.api.types import Binding, CType +from torchgen.model import FunctionSchema, NativeFunction + +from .types import contextArg + + +@dataclass(frozen=True) +class ExecutorchCppSignature: + """ + This signature is merely a CppSignature with Executorch types (optionally + contains KernelRuntimeContext as well). The inline definition of + CppSignature is generated in Functions.h and it's used by unboxing + functions. + """ + + # The schema this signature is derived from + func: FunctionSchema + + # The set of C++ arguments which should not have defaults applied to them + cpp_no_default_args: Set[str] + + # Allows you to prepend an arbitrary prefix to the signature name. + # This is useful for parts of the codegen that generate wrappers around kernels, + # and need to avoid naming collisions. + prefix: str = "" + + def arguments(self, *, include_context: bool = True) -> List[Binding]: + return ([contextArg] if include_context else []) + et_cpp.arguments( + self.func.arguments, + faithful=True, # always faithful, out argument at the end + method=False, # method not supported + cpp_no_default_args=self.cpp_no_default_args, + ) + + def name(self) -> str: + return self.prefix + aten_cpp.name( + self.func, + faithful_name_for_out_overloads=True, + ) + + def decl(self, name: Optional[str] = None, *, include_context: bool = True) -> str: + args_str = ", ".join( + a.decl() for a in self.arguments(include_context=include_context) + ) + if name is None: + name = self.name() + return f"{self.returns_type().cpp_type()} {name}({args_str})" + + def defn(self, name: Optional[str] = None) -> str: + args = [a.defn() for a in self.arguments()] + args_str = ", ".join(args) + if name is None: + name = self.name() + return f"{self.returns_type().cpp_type()} {name}({args_str})" + + def returns_type(self) -> CType: + return et_cpp.returns_type(self.func.returns) + + @staticmethod + def from_native_function( + f: NativeFunction, *, prefix: str = "" + ) -> "ExecutorchCppSignature": + return ExecutorchCppSignature( + func=f.func, prefix=prefix, cpp_no_default_args=f.cpp_no_default_args + ) + + +from torchgen.executorch.api import et_cpp diff --git a/shared/package-files/86/86a06cf1cd1f326c9e9a5d09afd01aa6f0cd7b6ab3ca764bf514d2af7c46bcc4/special_bessel_j1_cuda_dispatch.h b/shared/package-files/86/86a06cf1cd1f326c9e9a5d09afd01aa6f0cd7b6ab3ca764bf514d2af7c46bcc4/special_bessel_j1_cuda_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..3f2806edb8eda61529f9f3311d43f98a76c16c41 --- /dev/null +++ b/shared/package-files/86/86a06cf1cd1f326c9e9a5d09afd01aa6f0cd7b6ab3ca764bf514d2af7c46bcc4/special_bessel_j1_cuda_dispatch.h @@ -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_bessel_j1(const at::Tensor & self); +TORCH_API at::Tensor & special_bessel_j1_out(at::Tensor & out, const at::Tensor & self); +TORCH_API at::Tensor & special_bessel_j1_outf(const at::Tensor & self, at::Tensor & out); + +} // namespace cuda +} // namespace at diff --git a/shared/package-files/86/86a40d8618598f6c4f6c61934facda68740848627403810182ee50926cb06981/cosh_meta.h b/shared/package-files/86/86a40d8618598f6c4f6c61934facda68740848627403810182ee50926cb06981/cosh_meta.h new file mode 100644 index 0000000000000000000000000000000000000000..75033a7430438dfcb7b0d4fadb5e3dd87c026921 --- /dev/null +++ b/shared/package-files/86/86a40d8618598f6c4f6c61934facda68740848627403810182ee50926cb06981/cosh_meta.h @@ -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_cosh : public TensorIteratorBase { + + + void meta(const at::Tensor & self); +}; + +} // namespace native +} // namespace at diff --git a/shared/package-files/86/86a7c3f0b407ba97598638b67bddfff69390013f91ee6bb3ce33f49f27db1576/La_Paz b/shared/package-files/86/86a7c3f0b407ba97598638b67bddfff69390013f91ee6bb3ce33f49f27db1576/La_Paz new file mode 100644 index 0000000000000000000000000000000000000000..374586ea67601c4512b52859ff4e73bb30dbecc0 Binary files /dev/null and b/shared/package-files/86/86a7c3f0b407ba97598638b67bddfff69390013f91ee6bb3ce33f49f27db1576/La_Paz differ diff --git a/shared/package-files/86/86a95703688a9f83cf8854d2eaa587b618236bd078b57b081f63d72929ba4adf/r13_report.json b/shared/package-files/86/86a95703688a9f83cf8854d2eaa587b618236bd078b57b081f63d72929ba4adf/r13_report.json new file mode 100644 index 0000000000000000000000000000000000000000..e23158f126f0d9fe774725c4e3a3262fc35021e4 --- /dev/null +++ b/shared/package-files/86/86a95703688a9f83cf8854d2eaa587b618236bd078b57b081f63d72929ba4adf/r13_report.json @@ -0,0 +1,136384 @@ +{ + "schema": "natural-disease-progression-report/v3", + "reward_metric": "panel_recall_at_5pct", + "panel": { + "panel_recall_at_5pct": 0.2771550323111193, + "panel_recall_at_1pct": 0.09071173676213061, + "panel_ppv_at_5pct": 0.09197361856519246, + "panel_auroc": 0.7987297970078568, + "panel_auprc": 0.10301145038582292, + "panel_calibration_slope_median": 0.7473003574192881, + "panel_prediction_to_observed_median": 0.8458210648359112, + "panel_ece_decile": 0.007598544771760896, + "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.28846153846153844, + "ppv_at_5pct": 0.12396694214876033, + "recall_at_1pct": 0.09615384615384616, + "ppv_at_1pct": 0.2, + "auroc": 0.8183524879195507, + "auprc": 0.09591808025931566, + "prevalence": 0.02159468438538206, + "calibration": { + "observed_rate": 0.02159468438538206, + "mean_prediction": 0.02229737937337946, + "prediction_to_observed": 1.0325401832903411, + "slope": 0.7105916592706149, + "ece_decile": 0.008869136692341986 + } + }, + "I48": { + "name": "atrial fibrillation/flutter", + "eligible": 2385, + "positives": 32, + "family_history_excluded": 0, + "in_reward": true, + "recall_at_5pct": 0.09375, + "ppv_at_5pct": 0.025, + "recall_at_1pct": 0.03125, + "ppv_at_1pct": 0.041666666666666664, + "auroc": 0.7410486612834678, + "auprc": 0.034705970855892436, + "prevalence": 0.013417190775681341, + "calibration": { + "observed_rate": 0.013417190775681341, + "mean_prediction": 0.020209974092367758, + "prediction_to_observed": 1.5062746315717845, + "slope": 0.49310640785957344, + "ece_decile": 0.010632506280698499 + } + }, + "I21": { + "name": "acute myocardial infarction", + "eligible": 2671, + "positives": 23, + "family_history_excluded": 0, + "in_reward": true, + "recall_at_5pct": 0.21739130434782608, + "ppv_at_5pct": 0.03731343283582089, + "recall_at_1pct": 0.0, + "ppv_at_1pct": 0.0, + "auroc": 0.8184848285826876, + "auprc": 0.033821733843695086, + "prevalence": 0.008611007113440658, + "calibration": { + "observed_rate": 0.008611007113440658, + "mean_prediction": 0.014409284792844382, + "prediction_to_observed": 1.67335650789945, + "slope": 0.955527729519595, + "ece_decile": 0.00681090272312662 + } + }, + "I63": { + "name": "ischaemic stroke", + "eligible": 2662, + "positives": 14, + "family_history_excluded": 73, + "in_reward": false, + "recall_at_5pct": 0.07142857142857142, + "ppv_at_5pct": 0.007462686567164179, + "recall_at_1pct": 0.0, + "ppv_at_1pct": 0.0, + "auroc": 0.6872032801035822, + "auprc": 0.00957752331331539, + "prevalence": 0.005259203606311044, + "calibration": { + "observed_rate": 0.005259203606311044, + "mean_prediction": 0.005177707163665601, + "prediction_to_observed": 0.9845040335484164, + "slope": 0.48003057372061064, + "ece_decile": 0.0033151456836177117 + } + }, + "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.0, + "ppv_at_1pct": 0.0, + "auroc": 0.839161395552373, + "auprc": 0.01606340593448037, + "prevalence": 0.0032119914346895075, + "calibration": { + "observed_rate": 0.0032119914346895075, + "mean_prediction": 0.0024146652023210803, + "prediction_to_observed": 0.7517657663226297, + "slope": 0.923930183192838, + "ece_decile": 0.0020026203138457837 + } + }, + "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.2, + "ppv_at_1pct": 0.14285714285714285, + "auroc": 0.7530839416058395, + "auprc": 0.13266450189320567, + "prevalence": 0.007246376811594203, + "calibration": { + "observed_rate": 0.007246376811594203, + "mean_prediction": 0.00987565006424489, + "prediction_to_observed": 1.3628397088657949, + "slope": 0.9711251465992945, + "ece_decile": 0.0049425480756010234 + } + }, + "I82": { + "name": "venous thrombosis", + "eligible": 2739, + "positives": 35, + "family_history_excluded": 0, + "in_reward": true, + "recall_at_5pct": 0.22857142857142856, + "ppv_at_5pct": 0.058394160583941604, + "recall_at_1pct": 0.05714285714285714, + "ppv_at_1pct": 0.07142857142857142, + "auroc": 0.7573436179205411, + "auprc": 0.04379219768066707, + "prevalence": 0.012778386272362175, + "calibration": { + "observed_rate": 0.012778386272362175, + "mean_prediction": 0.010070563086940812, + "prediction_to_observed": 0.7880934941465967, + "slope": 0.7560857364747543, + "ece_decile": 0.004136973753485314 + } + }, + "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.7312590448625181, + "auprc": 0.010446015380826592, + "prevalence": 0.0018057060310581437, + "calibration": { + "observed_rate": 0.0018057060310581437, + "mean_prediction": 0.003990563397997314, + "prediction_to_observed": 2.2099740098109124, + "slope": 0.510333872240849, + "ece_decile": 0.002848682939556256 + } + }, + "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.7644859813084112, + "auprc": 0.0734549631971195, + "prevalence": 0.00971772327626099, + "calibration": { + "observed_rate": 0.00971772327626099, + "mean_prediction": 0.0060605565630879035, + "prediction_to_observed": 0.6236601301349028, + "slope": 0.704153700562953, + "ece_decile": 0.006878866118140476 + } + }, + "N18": { + "name": "chronic kidney disease", + "eligible": 2439, + "positives": 49, + "family_history_excluded": 1, + "in_reward": true, + "recall_at_5pct": 0.3877551020408163, + "ppv_at_5pct": 0.1557377049180328, + "recall_at_1pct": 0.1836734693877551, + "ppv_at_1pct": 0.36, + "auroc": 0.8589958158995816, + "auprc": 0.2408965023515267, + "prevalence": 0.02009020090200902, + "calibration": { + "observed_rate": 0.02009020090200902, + "mean_prediction": 0.01672361183493497, + "prediction_to_observed": 0.8324263115389061, + "slope": 0.9028958293216905, + "ece_decile": 0.0038250922168220824 + } + }, + "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.08653846153846154, + "ppv_at_1pct": 0.391304347826087, + "auroc": 0.8057103431303614, + "auprc": 0.1939140285594411, + "prevalence": 0.04537521815008726, + "calibration": { + "observed_rate": 0.04537521815008726, + "mean_prediction": 0.043573481192052274, + "prediction_to_observed": 0.9602924893479213, + "slope": 0.8563427549656712, + "ece_decile": 0.01020888808988629 + } + }, + "A41": { + "name": "sepsis", + "eligible": 2661, + "positives": 76, + "family_history_excluded": 3, + "in_reward": true, + "recall_at_5pct": 0.17105263157894737, + "ppv_at_5pct": 0.09701492537313433, + "recall_at_1pct": 0.02631578947368421, + "ppv_at_1pct": 0.07407407407407407, + "auroc": 0.7433777868268349, + "auprc": 0.06772414677791302, + "prevalence": 0.028560691469372415, + "calibration": { + "observed_rate": 0.028560691469372415, + "mean_prediction": 0.02453979788729863, + "prediction_to_observed": 0.8592158181329165, + "slope": 0.49383611204642935, + "ece_decile": 0.01611932524919458 + } + }, + "J18": { + "name": "pneumonia", + "eligible": 2671, + "positives": 64, + "family_history_excluded": 0, + "in_reward": true, + "recall_at_5pct": 0.1875, + "ppv_at_5pct": 0.08955223880597014, + "recall_at_1pct": 0.03125, + "ppv_at_1pct": 0.07407407407407407, + "auroc": 0.7679145090141926, + "auprc": 0.06653784718623833, + "prevalence": 0.023961063272182705, + "calibration": { + "observed_rate": 0.023961063272182705, + "mean_prediction": 0.015182388195759086, + "prediction_to_observed": 0.6336274823573831, + "slope": 0.6913727536503826, + "ece_decile": 0.009240423299174474 + } + }, + "J96": { + "name": "respiratory failure", + "eligible": 2602, + "positives": 81, + "family_history_excluded": 3, + "in_reward": true, + "recall_at_5pct": 0.30864197530864196, + "ppv_at_5pct": 0.19083969465648856, + "recall_at_1pct": 0.06172839506172839, + "ppv_at_1pct": 0.18518518518518517, + "auroc": 0.8214504336413632, + "auprc": 0.13321824468090587, + "prevalence": 0.03112990007686395, + "calibration": { + "observed_rate": 0.03112990007686395, + "mean_prediction": 0.020404349137644665, + "prediction_to_observed": 0.6554582278537212, + "slope": 0.857048577250286, + "ece_decile": 0.011058335880800983 + } + }, + "K74": { + "name": "hepatic fibrosis/cirrhosis", + "eligible": 2705, + "positives": 5, + "family_history_excluded": 58, + "in_reward": false, + "recall_at_5pct": 0.8, + "ppv_at_5pct": 0.029411764705882353, + "recall_at_1pct": 0.4, + "ppv_at_1pct": 0.07142857142857142, + "auroc": 0.9682222222222222, + "auprc": 0.043211675566492545, + "prevalence": 0.0018484288354898336, + "calibration": { + "observed_rate": 0.0018484288354898336, + "mean_prediction": 0.001411012491606389, + "prediction_to_observed": 0.7633577579590565, + "slope": 1.104664719817546, + "ece_decile": 0.001271451012931206 + } + }, + "K72": { + "name": "hepatic failure", + "eligible": 2787, + "positives": 22, + "family_history_excluded": 0, + "in_reward": true, + "recall_at_5pct": 0.6363636363636364, + "ppv_at_5pct": 0.1, + "recall_at_1pct": 0.36363636363636365, + "ppv_at_1pct": 0.2857142857142857, + "auroc": 0.8706394870951834, + "auprc": 0.24525416886637505, + "prevalence": 0.007893792608539648, + "calibration": { + "observed_rate": 0.007893792608539648, + "mean_prediction": 0.004425425540981812, + "prediction_to_observed": 0.5606209537598322, + "slope": 0.738514978363822, + "ece_decile": 0.0036524778297878924 + } + }, + "F03": { + "name": "dementia", + "eligible": 2665, + "positives": 13, + "family_history_excluded": 74, + "in_reward": false, + "recall_at_5pct": 0.38461538461538464, + "ppv_at_5pct": 0.03731343283582089, + "recall_at_1pct": 0.15384615384615385, + "ppv_at_1pct": 0.07407407407407407, + "auroc": 0.8920118343195267, + "auprc": 0.039806975254206275, + "prevalence": 0.004878048780487805, + "calibration": { + "observed_rate": 0.004878048780487805, + "mean_prediction": 0.005908868772255117, + "prediction_to_observed": 1.2113180983122989, + "slope": 0.8858992954301356, + "ece_decile": 0.0019742257560181413 + } + }, + "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.037037037037037035, + "ppv_at_1pct": 0.038461538461538464, + "auroc": 0.8237649414120002, + "auprc": 0.04137978857825478, + "prevalence": 0.01061738104600865, + "calibration": { + "observed_rate": 0.01061738104600865, + "mean_prediction": 0.009772126199496073, + "prediction_to_observed": 0.9203895157525376, + "slope": 0.790182170148927, + "ece_decile": 0.006666405363305896 + } + }, + "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.9029994916115912, + "auprc": 0.017005124885239153, + "prevalence": 0.0024849130280440185, + "calibration": { + "observed_rate": 0.0024849130280440185, + "mean_prediction": 0.0027011314465888534, + "prediction_to_observed": 1.0870124692915428, + "slope": 1.402963653312268, + "ece_decile": 0.0008703005304136613 + } + }, + "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.9723600283486888, + "auprc": 0.018477222045237336, + "prevalence": 0.000708215297450425, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0009365642316105058, + "prediction_to_observed": 1.322428695034034, + "slope": 1.0476833691532135, + "ece_decile": 0.0004192747258244729 + } + }, + "C22": { + "name": "liver cancer", + "eligible": 2812, + "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.9040998217468805, + "auprc": 0.024250317318810943, + "prevalence": 0.0024893314366998577, + "calibration": { + "observed_rate": 0.0024893314366998577, + "mean_prediction": 0.0007607394568016952, + "prediction_to_observed": 0.3055999075037667, + "slope": 0.5538025882557805, + "ece_decile": 0.0017589231426444348 + } + }, + "C25": { + "name": "pancreatic cancer", + "eligible": 2809, + "positives": 4, + "family_history_excluded": 0, + "in_reward": false, + "recall_at_5pct": 0.25, + "ppv_at_5pct": 0.0070921985815602835, + "recall_at_1pct": 0.25, + "ppv_at_1pct": 0.034482758620689655, + "auroc": 0.8564171122994652, + "auprc": 0.055638443913131726, + "prevalence": 0.001423994304022784, + "calibration": { + "observed_rate": 0.001423994304022784, + "mean_prediction": 0.0012707585413555373, + "prediction_to_observed": 0.8923901856669261, + "slope": 0.6627712403876909, + "ece_decile": 0.0010456397464721563 + } + }, + "C61": { + "name": "prostate cancer", + "eligible": 2805, + "positives": 2, + "family_history_excluded": 0, + "in_reward": false, + "recall_at_5pct": 1.0, + "ppv_at_5pct": 0.014184397163120567, + "recall_at_1pct": 1.0, + "ppv_at_1pct": 0.06896551724137931, + "auroc": 0.9955404923296468, + "auprc": 0.12878787878787878, + "prevalence": 0.00071301247771836, + "calibration": { + "observed_rate": 0.00071301247771836, + "mean_prediction": 0.0015007247277878935, + "prediction_to_observed": 2.1047664307225205, + "slope": 3.1427442236155803, + "ece_decile": 0.0007877122500695333 + } + }, + "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.0, + "ppv_at_1pct": 0.0, + "auroc": 0.971701450300672, + "auprc": 0.018089960886571055, + "prevalence": 0.0007069635913750442, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0006191575180364144, + "prediction_to_observed": 0.8757983092625081, + "slope": 0.9817707417002249, + "ece_decile": 0.0007178815227347186 + } + }, + "C78": { + "name": "metastasis, respiratory/digestive", + "eligible": 2672, + "positives": 22, + "family_history_excluded": 90, + "in_reward": true, + "recall_at_5pct": 0.3181818181818182, + "ppv_at_5pct": 0.05223880597014925, + "recall_at_1pct": 0.0, + "ppv_at_1pct": 0.0, + "auroc": 0.8375643224699829, + "auprc": 0.03887813067097076, + "prevalence": 0.008233532934131737, + "calibration": { + "observed_rate": 0.008233532934131737, + "mean_prediction": 0.005165233462292067, + "prediction_to_observed": 0.627341082329291, + "slope": 0.6296208528876394, + "ece_decile": 0.003337745232286438 + } + }, + "C79": { + "name": "metastasis, other sites", + "eligible": 2672, + "positives": 19, + "family_history_excluded": 79, + "in_reward": false, + "recall_at_5pct": 0.47368421052631576, + "ppv_at_5pct": 0.06716417910447761, + "recall_at_1pct": 0.15789473684210525, + "ppv_at_1pct": 0.1111111111111111, + "auroc": 0.8792032852579998, + "auprc": 0.08879381957186917, + "prevalence": 0.007110778443113772, + "calibration": { + "observed_rate": 0.007110778443113772, + "mean_prediction": 0.006108971864586929, + "prediction_to_observed": 0.8591143590619092, + "slope": 0.9285061139540187, + "ece_decile": 0.002681220557595301 + } + } + } + }, + "primary": { + "macro_time_averaged_auroc": 0.7880255599376492, + "macro_time_averaged_auprc": 0.05010283334153533, + "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.005587071683585607, + "age_sex_normalized_disease_time_brier": 1.5101630984000083 + }, + "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.048134434489346276, + "by_time": { + "30": { + "valid": 2843, + "positives": 64, + "negatives": 2779, + "auroc": 0.958606962936308, + "auprc": 0.4745476958217364, + "brier": 0.01624597799770679, + "calibration": { + "observed_rate": 0.022511431586352444, + "mean_prediction": 0.019175030849375222, + "calibration_in_the_large": -0.003336400736977222, + "expected_calibration_error_10bin": 0.00437551676547042, + "nonempty_bins": 7 + }, + "reason": null + }, + "60": { + "valid": 2843, + "positives": 107, + "negatives": 2736, + "auroc": 0.9463914849428868, + "auprc": 0.5006756539600126, + "brier": 0.026126969097209327, + "calibration": { + "observed_rate": 0.037636299683432996, + "mean_prediction": 0.032272437652089855, + "calibration_in_the_large": -0.00536386203134314, + "expected_calibration_error_10bin": 0.006931607476992444, + "nonempty_bins": 8 + }, + "reason": null + }, + "90": { + "valid": 2843, + "positives": 134, + "negatives": 2709, + "auroc": 0.9468879302270485, + "auprc": 0.551598151505032, + "brier": 0.030688033840417888, + "calibration": { + "observed_rate": 0.04713330988392543, + "mean_prediction": 0.04232700412033061, + "calibration_in_the_large": -0.004806305763594823, + "expected_calibration_error_10bin": 0.00480630576359482, + "nonempty_bins": 8 + }, + "reason": null + }, + "120": { + "valid": 2843, + "positives": 161, + "negatives": 2682, + "auroc": 0.9411350572716198, + "auprc": 0.5501135446183306, + "brier": 0.0365277292084197, + "calibration": { + "observed_rate": 0.056630320084417866, + "mean_prediction": 0.05020949512745568, + "calibration_in_the_large": -0.006420824956962189, + "expected_calibration_error_10bin": 0.008025395976024145, + "nonempty_bins": 8 + }, + "reason": null + }, + "150": { + "valid": 2843, + "positives": 192, + "negatives": 2651, + "auroc": 0.9299222777568213, + "auprc": 0.5663073020090105, + "brier": 0.042615377962205964, + "calibration": { + "observed_rate": 0.06753429475905734, + "mean_prediction": 0.05762921452715839, + "calibration_in_the_large": -0.009905080231898948, + "expected_calibration_error_10bin": 0.010864824305435988, + "nonempty_bins": 9 + }, + "reason": null + }, + "180": { + "valid": 2843, + "positives": 221, + "negatives": 2622, + "auroc": 0.9238000075932503, + "auprc": 0.5722466699454343, + "brier": 0.048286570047209404, + "calibration": { + "observed_rate": 0.07773478719662329, + "mean_prediction": 0.06521930993041139, + "calibration_in_the_large": -0.012515477266211897, + "expected_calibration_error_10bin": 0.012515477266211893, + "nonempty_bins": 9 + }, + "reason": null + }, + "210": { + "valid": 2843, + "positives": 238, + "negatives": 2605, + "auroc": 0.9191745028145615, + "auprc": 0.5735565071016335, + "brier": 0.05175552942451582, + "calibration": { + "observed_rate": 0.08371438621174815, + "mean_prediction": 0.06973377201918016, + "calibration_in_the_large": -0.013980614192567992, + "expected_calibration_error_10bin": 0.013980614192567993, + "nonempty_bins": 9 + }, + "reason": null + }, + "240": { + "valid": 2843, + "positives": 255, + "negatives": 2588, + "auroc": 0.9150968269842713, + "auprc": 0.5819512020571306, + "brier": 0.05500871043754947, + "calibration": { + "observed_rate": 0.08969398522687302, + "mean_prediction": 0.07484871079263054, + "calibration_in_the_large": -0.01484527443424248, + "expected_calibration_error_10bin": 0.014845274434242467, + "nonempty_bins": 9 + }, + "reason": null + }, + "270": { + "valid": 2843, + "positives": 273, + "negatives": 2570, + "auroc": 0.908467667222531, + "auprc": 0.5803252811714634, + "brier": 0.05878978532048299, + "calibration": { + "observed_rate": 0.09602532536053465, + "mean_prediction": 0.08014308469156116, + "calibration_in_the_large": -0.015882240668973494, + "expected_calibration_error_10bin": 0.015882240668973494, + "nonempty_bins": 9 + }, + "reason": null + }, + "300": { + "valid": 2843, + "positives": 287, + "negatives": 2556, + "auroc": 0.9066717377435344, + "auprc": 0.5929156592440871, + "brier": 0.06077340723289135, + "calibration": { + "observed_rate": 0.10094970102004924, + "mean_prediction": 0.08453562498736396, + "calibration_in_the_large": -0.016414076032685285, + "expected_calibration_error_10bin": 0.016414076032685288, + "nonempty_bins": 9 + }, + "reason": null + }, + "330": { + "valid": 2843, + "positives": 305, + "negatives": 2538, + "auroc": 0.9025655931480836, + "auprc": 0.5964965674275257, + "brier": 0.06410627081241818, + "calibration": { + "observed_rate": 0.10728104115371087, + "mean_prediction": 0.08872893115124882, + "calibration_in_the_large": -0.018552110002462055, + "expected_calibration_error_10bin": 0.018552110002462045, + "nonempty_bins": 9 + }, + "reason": null + }, + "360": { + "valid": 2843, + "positives": 319, + "negatives": 2524, + "auroc": 0.8998616417191203, + "auprc": 0.5973226702201198, + "brier": 0.06668872357477466, + "calibration": { + "observed_rate": 0.11220541681322546, + "mean_prediction": 0.0931324416627312, + "calibration_in_the_large": -0.019072975150494262, + "expected_calibration_error_10bin": 0.019072975150494255, + "nonempty_bins": 9 + }, + "reason": null + }, + "365": { + "valid": 2843, + "positives": 325, + "negatives": 2518, + "auroc": 0.8992497097818781, + "auprc": 0.5959763701437324, + "brier": 0.06813456340570004, + "calibration": { + "observed_rate": 0.114315863524446, + "mean_prediction": 0.09374509057221472, + "calibration_in_the_large": -0.02057077295223128, + "expected_calibration_error_10bin": 0.020570772952231278, + "nonempty_bins": 9 + }, + "reason": null + } + } + }, + "cohort": { + "all_samples": 3915, + "primary_complete_year": 2843, + "partial_observation_outside_primary": 1072 + }, + "horizons": { + "30": { + "macro_auroc": 0.794038860658736, + "macro_auprc": 0.028960409768374686, + "macro_brier": 0.0016784718932996343, + "macro_normalized_brier": 0.9823797154045408, + "macro_expected_calibration_error_10bin": 0.0007012343268823746, + "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.958606962936308, + "auprc": 0.4745476958217364, + "brier": 0.01624597799770679, + "calibration": { + "observed_rate": 0.022511431586352444, + "mean_prediction": 0.019175030849375222, + "calibration_in_the_large": -0.003336400736977222, + "expected_calibration_error_10bin": 0.00437551676547042, + "nonempty_bins": 7 + }, + "reason": null + } + }, + "60": { + "macro_auroc": 0.7914952124648331, + "macro_auprc": 0.04483368511967717, + "macro_brier": 0.002803813196015275, + "macro_normalized_brier": 1.234218541775143, + "macro_expected_calibration_error_10bin": 0.0009656945721235015, + "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.9463914849428868, + "auprc": 0.5006756539600126, + "brier": 0.026126969097209327, + "calibration": { + "observed_rate": 0.037636299683432996, + "mean_prediction": 0.032272437652089855, + "calibration_in_the_large": -0.00536386203134314, + "expected_calibration_error_10bin": 0.006931607476992444, + "nonempty_bins": 8 + }, + "reason": null + } + }, + "90": { + "macro_auroc": 0.78569200085343, + "macro_auprc": 0.04722117678223588, + "macro_brier": 0.0037797261154655253, + "macro_normalized_brier": 1.4257350799085138, + "macro_expected_calibration_error_10bin": 0.0013276569968791341, + "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.9468879302270485, + "auprc": 0.551598151505032, + "brier": 0.030688033840417888, + "calibration": { + "observed_rate": 0.04713330988392543, + "mean_prediction": 0.04232700412033061, + "calibration_in_the_large": -0.004806305763594823, + "expected_calibration_error_10bin": 0.00480630576359482, + "nonempty_bins": 8 + }, + "reason": null + } + }, + "120": { + "macro_auroc": 0.7810452594821661, + "macro_auprc": 0.044952771750466, + "macro_brier": 0.004519133258228523, + "macro_normalized_brier": 1.513487478526958, + "macro_expected_calibration_error_10bin": 0.0016304524203068793, + "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.9411350572716198, + "auprc": 0.5501135446183306, + "brier": 0.0365277292084197, + "calibration": { + "observed_rate": 0.056630320084417866, + "mean_prediction": 0.05020949512745568, + "calibration_in_the_large": -0.006420824956962189, + "expected_calibration_error_10bin": 0.008025395976024145, + "nonempty_bins": 8 + }, + "reason": null + } + }, + "150": { + "macro_auroc": 0.7819084709301469, + "macro_auprc": 0.04773464979542867, + "macro_brier": 0.004985862612050708, + "macro_normalized_brier": 1.5290436543901043, + "macro_expected_calibration_error_10bin": 0.0017337431743568298, + "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.9299222777568213, + "auprc": 0.5663073020090105, + "brier": 0.042615377962205964, + "calibration": { + "observed_rate": 0.06753429475905734, + "mean_prediction": 0.05762921452715839, + "calibration_in_the_large": -0.009905080231898948, + "expected_calibration_error_10bin": 0.010864824305435988, + "nonempty_bins": 9 + }, + "reason": null + } + }, + "180": { + "macro_auroc": 0.7866143586625942, + "macro_auprc": 0.05055951823307, + "macro_brier": 0.005411418991136496, + "macro_normalized_brier": 1.5377223000632128, + "macro_expected_calibration_error_10bin": 0.0018603912520945222, + "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.9238000075932503, + "auprc": 0.5722466699454343, + "brier": 0.048286570047209404, + "calibration": { + "observed_rate": 0.07773478719662329, + "mean_prediction": 0.06521930993041139, + "calibration_in_the_large": -0.012515477266211897, + "expected_calibration_error_10bin": 0.012515477266211893, + "nonempty_bins": 9 + }, + "reason": null + } + }, + "210": { + "macro_auroc": 0.7900154585558616, + "macro_auprc": 0.052513019372231955, + "macro_brier": 0.005998097544479549, + "macro_normalized_brier": 1.5921181012932806, + "macro_expected_calibration_error_10bin": 0.0021252431903396782, + "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.9191745028145615, + "auprc": 0.5735565071016335, + "brier": 0.05175552942451582, + "calibration": { + "observed_rate": 0.08371438621174815, + "mean_prediction": 0.06973377201918016, + "calibration_in_the_large": -0.013980614192567992, + "expected_calibration_error_10bin": 0.013980614192567993, + "nonempty_bins": 9 + }, + "reason": null + } + }, + "240": { + "macro_auroc": 0.791280796042092, + "macro_auprc": 0.05308369354862789, + "macro_brier": 0.0063786105208505075, + "macro_normalized_brier": 1.6043049287347244, + "macro_expected_calibration_error_10bin": 0.002253983416732627, + "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.9150968269842713, + "auprc": 0.5819512020571306, + "brier": 0.05500871043754947, + "calibration": { + "observed_rate": 0.08969398522687302, + "mean_prediction": 0.07484871079263054, + "calibration_in_the_large": -0.01484527443424248, + "expected_calibration_error_10bin": 0.014845274434242467, + "nonempty_bins": 9 + }, + "reason": null + } + }, + "270": { + "macro_auroc": 0.7867132278531417, + "macro_auprc": 0.053653160714619605, + "macro_brier": 0.0067572213291853455, + "macro_normalized_brier": 1.627148652254499, + "macro_expected_calibration_error_10bin": 0.0023668981189672207, + "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.908467667222531, + "auprc": 0.5803252811714634, + "brier": 0.05878978532048299, + "calibration": { + "observed_rate": 0.09602532536053465, + "mean_prediction": 0.08014308469156116, + "calibration_in_the_large": -0.015882240668973494, + "expected_calibration_error_10bin": 0.015882240668973494, + "nonempty_bins": 9 + }, + "reason": null + } + }, + "300": { + "macro_auroc": 0.7883322368080693, + "macro_auprc": 0.0547477296397603, + "macro_brier": 0.007135303362583601, + "macro_normalized_brier": 1.639185965291963, + "macro_expected_calibration_error_10bin": 0.0025275532363232566, + "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.9066717377435344, + "auprc": 0.5929156592440871, + "brier": 0.06077340723289135, + "calibration": { + "observed_rate": 0.10094970102004924, + "mean_prediction": 0.08453562498736396, + "calibration_in_the_large": -0.016414076032685285, + "expected_calibration_error_10bin": 0.016414076032685288, + "nonempty_bins": 9 + }, + "reason": null + } + }, + "330": { + "macro_auroc": 0.7886846197688452, + "macro_auprc": 0.05630764828374328, + "macro_brier": 0.0075008705321940785, + "macro_normalized_brier": 1.6471040941097, + "macro_expected_calibration_error_10bin": 0.002674057213285209, + "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.9025655931480836, + "auprc": 0.5964965674275257, + "brier": 0.06410627081241818, + "calibration": { + "observed_rate": 0.10728104115371087, + "mean_prediction": 0.08872893115124882, + "calibration_in_the_large": -0.018552110002462055, + "expected_calibration_error_10bin": 0.018552110002462045, + "nonempty_bins": 9 + }, + "reason": null + } + }, + "360": { + "macro_auroc": 0.7866760903417551, + "macro_auprc": 0.057338614148903164, + "macro_brier": 0.007820392642531811, + "macro_normalized_brier": 1.6504077831040584, + "macro_expected_calibration_error_10bin": 0.002809730538109306, + "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.8998616417191203, + "auprc": 0.5973226702201198, + "brier": 0.06668872357477466, + "calibration": { + "observed_rate": 0.11220541681322546, + "mean_prediction": 0.0931324416627312, + "calibration_in_the_large": -0.019072975150494262, + "expected_calibration_error_10bin": 0.019072975150494255, + "nonempty_bins": 9 + }, + "reason": null + } + }, + "365": { + "macro_auroc": 0.7870657878451822, + "macro_auprc": 0.05748597521234426, + "macro_brier": 0.007863010046695493, + "macro_normalized_brier": 1.649264070677855, + "macro_expected_calibration_error_10bin": 0.002819446088615486, + "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.8992497097818781, + "auprc": 0.5959763701437324, + "brier": 0.06813456340570004, + "calibration": { + "observed_rate": 0.114315863524446, + "mean_prediction": 0.09374509057221472, + "calibration_in_the_large": -0.02057077295223128, + "expected_calibration_error_10bin": 0.020570772952231278, + "nonempty_bins": 9 + }, + "reason": null + } + } + }, + "per_disease": { + "time_brier": { + "A04": { + "normalized_time_brier": 2.1833408063020316, + "normalized_timepoint_brier": [ + 1.0909053962677717, + 1.604413191520706, + 2.2189107420107215, + 2.444683626481966, + 2.5335209876500633, + 2.4369075640217295, + 2.321284110389246, + 2.239927432517463, + 2.320430766041992, + 2.2691588772952462, + 2.267771811181595, + 2.3176656141795045, + 2.317850362368408 + ], + "raw_time_brier": 0.0072673844137730505, + "raw_timepoint_brier": [ + 0.0010909053962677717, + 0.0024860617704689503, + 0.005003239028155804, + 0.006454876624047756, + 0.0071564014069736, + 0.007535860873758793, + 0.007878514938056469, + 0.008203011006116867, + 0.008925114758312702, + 0.009297065436840057, + 0.009670962579548359, + 0.010386577807366848, + 0.010387405753135681 + ], + "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.3277571657895115, + "normalized_timepoint_brier": [ + 1.7717793816700578, + 2.478382084518671, + 2.4823471903800964, + 2.3556661362767612, + 2.9731027297880277, + 2.7986291724817467, + 2.611536677997601, + 2.4748103135248813, + 2.3274303478097487, + 2.176396134453913, + 2.0279004766289015, + 1.8987885761449428, + 1.8840739335882992 + ], + "raw_time_brier": 0.0033806852656058394, + "raw_timepoint_brier": [ + 0.0017717793816700578, + 0.002478382084518671, + 0.0024823471903800964, + 0.0024863742291927338, + 0.0035360094625502825, + 0.0038901325315237045, + 0.003892077598720789, + 0.003895250614732504, + 0.0038966182619333267, + 0.003898291615769267, + 0.0039031822234392166, + 0.003908613231033087, + 0.003909850027412176 + ], + "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.215288103750942, + "normalized_timepoint_brier": [ + 1.053631130691134, + 1.9171294894784923, + 2.016602837491197, + 2.025308075799438, + 2.2153600468440993, + 2.428912606924263, + 2.4305904904145725, + 2.3766977970848853, + 2.452879184265806, + 2.4261294672513345, + 2.4436919426348704, + 2.5127481125404723, + 2.4990641673416825 + ], + "raw_time_brier": 0.01823929707125689, + "raw_timepoint_brier": [ + 0.0019365329062566161, + 0.007195278070867062, + 0.010303117334842682, + 0.012499912641942501, + 0.015074715949594975, + 0.01835087314248085, + 0.02018509805202484, + 0.021273262798786163, + 0.02333015948534012, + 0.024554289877414703, + 0.026010992005467415, + 0.028190629556775093, + 0.028206000104546547 + ], + "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": 0.9699518146375202, + "normalized_timepoint_brier": [ + 0.0003684587852603727, + 0.3484183398541063, + 0.3451760276220739, + 0.344775733537972, + 1.05291570071131, + 1.0532739106565714, + 1.40648172236979, + 1.4068844029679894, + 1.407175324857235, + 1.4075306244194508, + 1.3175992264969663, + 1.2593622945441612, + 1.2594118234648761 + ], + "raw_time_brier": 0.0009999469199044597, + "raw_timepoint_brier": [ + 3.684587852603727e-07, + 0.0003484183398541063, + 0.0003451760276220739, + 0.000344775733537972, + 0.00105291570071131, + 0.0010532739106565714, + 0.00140648172236979, + 0.0014068844029679894, + 0.001407175324857235, + 0.0014075306244194508, + 0.001408267766237259, + 0.0014089932665228844, + 0.001409048680216074 + ], + "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.2412253578112729, + "normalized_timepoint_brier": [ + 0.0005355081498237269, + 0.0013404721812548814, + 0.3541925980243832, + 0.35453116288408637, + 0.35496411146596074, + 0.3556936571840197, + 0.31962295258995665, + 0.2756918142849818, + 0.24790466475519457, + 0.2372887384126898, + 0.21657637113953943, + 0.2087850498337441, + 0.20880255064091316 + ], + "raw_time_brier": 0.0003029473931738161, + "raw_timepoint_brier": [ + 5.355081498237269e-07, + 1.3404721812548814e-06, + 0.0003541925980243832, + 0.00035453116288408637, + 0.00035496411146596074, + 0.0003556936571840197, + 0.0003567314415704459, + 0.00035815275623463094, + 0.0003591515705920756, + 0.0003595503221731633, + 0.0003605522506404668, + 0.00036144498153589666, + 0.0003614752786234021 + ], + "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.5543407675083583, + "normalized_timepoint_brier": [ + 0.3608495753724128, + 1.0799389565363526, + 1.0878093307837844, + 1.091300742700696, + 1.4521803241223097, + 1.8068414829298234, + 1.756343491043609, + 1.6526773134693398, + 2.139448775761723, + 1.9730605192371882, + 1.837466352223699, + 1.9841734314650017, + 1.9843396819627166 + ], + "raw_time_brier": 0.0018409167241770774, + "raw_timepoint_brier": [ + 0.0003608495753724128, + 0.0010799389565363526, + 0.0010878093307837844, + 0.001091300742700696, + 0.0014521803241223097, + 0.001814049668610096, + 0.0018229124834761024, + 0.0018275869078934193, + 0.002547402633354068, + 0.0025501030031591654, + 0.0025621065869927406, + 0.0028677184600383043, + 0.002867958741262555 + ], + "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.2924426161708547, + "normalized_timepoint_brier": [ + 1.8802028004725586, + 1.7849213655154048, + 1.3782347054324071, + 1.4205022238943221, + 1.3624331939252987, + 1.2513519899394445, + 1.2091532353177226, + 1.2267719503059717, + 1.1576139208394713, + 1.0885299430029218, + 1.0372271429985558, + 1.0037774635676242, + 1.001034075009406 + ], + "raw_time_brier": 0.00520826458859329, + "raw_timepoint_brier": [ + 0.002529732184484601, + 0.004308856558054686, + 0.004306011833250523, + 0.005013685207813978, + 0.005268091335892677, + 0.005259270314127207, + 0.0055695706978440285, + 0.005918445531278849, + 0.005913709290325642, + 0.005908219143748283, + 0.005907625425606966, + 0.005901882890611887, + 0.0059023392386734486 + ], + "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": 1.015466901249545, + "normalized_timepoint_brier": [ + 0.003377999064468895, + 0.007397026820399333, + 0.3631251456681639, + 1.0671073105186224, + 1.0708081535995007, + 1.075589214451611, + 1.3106196428504266, + 1.537990774839666, + 1.473579051395728, + 1.3609810884085558, + 1.3425671021532906, + 1.2939693792681302, + 1.2939578272055208 + ], + "raw_time_brier": 0.0011896545498844857, + "raw_timepoint_brier": [ + 3.377999064468895e-06, + 7.397026820399333e-06, + 0.0003631251456681639, + 0.0010671073105186224, + 0.0010708081535995007, + 0.001075589214451611, + 0.0013996600173413754, + 0.0017446933779865503, + 0.0017454159678891301, + 0.0017474498599767685, + 0.0017462046816945076, + 0.00174734799657017, + 0.0017473323969170451 + ], + "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.3883089984891337, + "normalized_timepoint_brier": [ + 0.0001565060330221968, + 0.7009652908891439, + 1.0524066165089607, + 1.400706241838634, + 1.400330220349133, + 1.3981926022097468, + 1.7385751707479358, + 1.736111007630825, + 1.727384515106678, + 1.724048750475049, + 1.7231005476787686, + 1.7230339581146836, + 1.7230055527761579 + ], + "raw_time_brier": 0.0013883089984891338, + "raw_timepoint_brier": [ + 1.565060330221968e-07, + 0.0007009652908891439, + 0.0010524066165089607, + 0.001400706241838634, + 0.001400330220349133, + 0.0013981926022097468, + 0.0017385751707479358, + 0.001736111007630825, + 0.001727384515106678, + 0.001724048750475049, + 0.0017231005476787686, + 0.0017230339581146836, + 0.0017230055527761579 + ], + "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.14497685740329486, + "normalized_timepoint_brier": [ + 8.806999574062502e-05, + 0.000491807213620632, + 0.0009549470405545435, + 0.0012121163264960063, + 0.0013593819986604451, + 0.0016711370310369665, + 0.0019044510000295585, + 0.22244345054272285, + 0.20190316333671238, + 0.3833871134528833, + 0.37344966934465035, + 0.34931278284546274, + 0.3465210561142629 + ], + "raw_time_brier": 0.00027344378703074966, + "raw_timepoint_brier": [ + 8.806999574062502e-08, + 4.91807213620632e-07, + 9.549470405545435e-07, + 1.3927548252468114e-06, + 1.6297478850901825e-06, + 2.142389348591678e-06, + 2.78969673672691e-06, + 0.00035539816599339247, + 0.0003560943005140871, + 0.0007079262286424637, + 0.0007081947987899184, + 0.0007087924750521779, + 0.0007088738493621349 + ], + "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.672310822257152, + "normalized_timepoint_brier": [ + 2.0194329115068577, + 1.8289427967110559, + 1.6390870182882955, + 1.6317821202910756, + 1.5005526395892248, + 1.537792646374472, + 1.6700261271984922, + 1.6439035756894436, + 1.6812891223373967, + 1.658178902211282, + 1.621200104790103, + 1.657392331770821, + 1.6504603925844579 + ], + "raw_time_brier": 0.009670152937850127, + "raw_timepoint_brier": [ + 0.002877542283385992, + 0.0053893886506557465, + 0.00646101962774992, + 0.007886955514550209, + 0.008260751143097878, + 0.0093437684699893, + 0.010706598870456219, + 0.010979782789945602, + 0.01201691385358572, + 0.01237858273088932, + 0.012670924887061119, + 0.013370120897889137, + 0.013369638472795486 + ], + "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.464709051754337, + "normalized_timepoint_brier": [ + 1.7422980100570635, + 1.6247428121298242, + 1.562877591473592, + 1.5062729836288162, + 1.4395758325784866, + 1.3126941468436428, + 1.4683906084134328, + 1.4443520526730682, + 1.4187845055938155, + 1.450479338627196, + 1.3857640418499115, + 1.345240061571814, + 1.3397456873657192 + ], + "raw_time_brier": 0.016833827651750583, + "raw_timepoint_brier": [ + 0.005561326164752245, + 0.009913040325045586, + 0.012470896355807781, + 0.014295319095253944, + 0.015385015867650509, + 0.015393869951367378, + 0.018541717901825905, + 0.01961313933134079, + 0.020301412791013718, + 0.02166270650923252, + 0.02165534906089306, + 0.022022899240255356, + 0.022023066878318787 + ], + "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.381968895540171, + "normalized_timepoint_brier": [ + 1.1264377499479772, + 1.2649262387732887, + 1.4643483895280847, + 1.464892408435746, + 1.426070208671458, + 1.3845445508963652, + 1.4712264818146905, + 1.4161601690146652, + 1.3772602791796953, + 1.366263560884909, + 1.3994476136230432, + 1.395940330438134, + 1.4080776608141636 + ], + "raw_time_brier": 0.022574199005388297, + "raw_timepoint_brier": [ + 0.005648236721754074, + 0.011128990910947323, + 0.016238968819379807, + 0.019028520211577415, + 0.02080729603767395, + 0.022153915837407112, + 0.025332385674118996, + 0.02600892446935177, + 0.026733368635177612, + 0.027781769633293152, + 0.029819607734680176, + 0.031208952888846397, + 0.03157364949584007 + ], + "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.57260137803566, + "normalized_timepoint_brier": [ + 0.35422181827016175, + 0.35796783049590886, + 0.367106607882306, + 0.3695077321026474, + 0.3737672814168036, + 0.3786861780099571, + 0.718860246706754, + 0.7281237631104887, + 0.7434054277837276, + 0.7579033263027668, + 0.7638575625605881, + 0.765065080486238, + 0.7653450593352318 + ], + "raw_time_brier": 0.00057260137803566, + "raw_timepoint_brier": [ + 0.00035422181827016175, + 0.00035796783049590886, + 0.000367106607882306, + 0.0003695077321026474, + 0.0003737672814168036, + 0.0003786861780099571, + 0.000718860246706754, + 0.0007281237631104887, + 0.0007434054277837276, + 0.0007579033263027668, + 0.0007638575625605881, + 0.000765065080486238, + 0.0007653450593352318 + ], + "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.650795451992263, + "normalized_timepoint_brier": [ + 0.3530579269863665, + 0.3529932291712612, + 0.7046994869597256, + 0.7045311504043639, + 0.7045592647045851, + 0.7046478567644954, + 0.7046727696433663, + 0.7047397666610777, + 0.7050469284877181, + 0.7051622378639877, + 0.7053776062093675, + 0.7054199813865125, + 0.7054326706565917 + ], + "raw_time_brier": 0.000650795451992263, + "raw_timepoint_brier": [ + 0.0003530579269863665, + 0.0003529932291712612, + 0.0007046994869597256, + 0.0007045311504043639, + 0.0007045592647045851, + 0.0007046478567644954, + 0.0007046727696433663, + 0.0007047397666610777, + 0.0007050469284877181, + 0.0007051622378639877, + 0.0007053776062093675, + 0.0007054199813865125, + 0.0007054326706565917 + ], + "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.8712825296761886, + "normalized_timepoint_brier": [ + 0.7140939706005156, + 1.0710093192756176, + 1.782262697815895, + 1.7844256944954395, + 1.7856445629149675, + 1.788151217624545, + 1.7892210744321346, + 2.148139290511608, + 2.1492757368832827, + 2.1539991721510887, + 2.461220200290944, + 2.349591036322307, + 2.3496389124721015 + ], + "raw_time_brier": 0.0019003243337815197, + "raw_timepoint_brier": [ + 0.0007140939706005156, + 0.0010710093192756176, + 0.001782262697815895, + 0.0017844256944954395, + 0.0017856445629149675, + 0.001788151217624545, + 0.0017892210744321346, + 0.002148139290511608, + 0.0021492757368832827, + 0.0021539991721510887, + 0.002510282676666975, + 0.0025138298515230417, + 0.0025138810742646456 + ], + "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.6567635767552601, + "normalized_timepoint_brier": [ + 0.005601022166956682, + 0.32749350066296756, + 0.3302547265775502, + 0.333887233864516, + 0.6923041655682027, + 0.6800625721700283, + 0.6605738715462657, + 0.6333296521160887, + 0.8770985964998401, + 0.8338545106940678, + 1.0716450020562935, + 1.045878427442988, + 1.0459432164526155 + ], + "raw_time_brier": 0.0007813229696974024, + "raw_timepoint_brier": [ + 5.601022166956682e-06, + 0.00032749350066296756, + 0.00033025472657755017, + 0.000333887233864516, + 0.0006923041655682027, + 0.0006950456881895661, + 0.0006972122937440872, + 0.0007002523634582758, + 0.001057840883731842, + 0.0010615187929943204, + 0.0014179969439283013, + 0.0014188515488058329, + 0.0014189394423738122 + ], + "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.5892298271400213, + "normalized_timepoint_brier": [ + 0.3530218091327697, + 0.7049398845992982, + 0.7034826558083296, + 0.7018689648248255, + 0.700734555721283, + 0.6969246433097082, + 0.6738988024397254, + 0.59574048703306, + 0.5557856225574275, + 0.5143491255146054, + 0.5019263807548429, + 0.48422419043903486, + 0.47309063068536705 + ], + "raw_time_brier": 0.0006723181420686439, + "raw_timepoint_brier": [ + 0.0003530218091327697, + 0.0007049398845992982, + 0.0007034826558083296, + 0.0007018689648248255, + 0.000700734555721283, + 0.0006997050950303674, + 0.0006989786634221673, + 0.0006973612471483648, + 0.0006967670051380992, + 0.0006961512845009565, + 0.0006960885948501527, + 0.0006956321885809302, + 0.0006954038981348276 + ], + "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.7047754121371187, + "normalized_timepoint_brier": [ + 0.7063488592393696, + 0.7061600335873663, + 0.7059074123390019, + 0.7049988489598036, + 0.7047657272778451, + 0.7045912207104266, + 0.7044736994430423, + 0.7043172372505069, + 0.7043016375973821, + 0.7040648488327861, + 0.704072939697653, + 0.7040589116513729, + 0.7040189811959863 + ], + "raw_time_brier": 0.0007047754121371186, + "raw_timepoint_brier": [ + 0.0007063488592393696, + 0.0007061600335873663, + 0.0007059074123390019, + 0.0007049988489598036, + 0.0007047657272778451, + 0.0007045912207104266, + 0.0007044736994430423, + 0.0007043172372505069, + 0.0007043016375973821, + 0.0007040648488327861, + 0.0007040729396976531, + 0.0007040589116513729, + 0.0007040189811959863 + ], + "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.2016597337513277, + "normalized_timepoint_brier": [ + 1.0120532243692997, + 1.1639361549190332, + 1.2272138464981586, + 1.1735634665151409, + 1.1070366993803171, + 1.1796760296741469, + 1.2073400045356832, + 1.3253347278159193, + 1.2357160231946929, + 1.1990670436116087, + 1.2537502996041534, + 1.2736011206439752, + 1.2632878980051323 + ], + "raw_time_brier": 0.005609272244887857, + "raw_timepoint_brier": [ + 0.0014274218119680882, + 0.0027847299352288246, + 0.003848695894703269, + 0.0044928137212991714, + 0.0048349290154874325, + 0.005549037363380194, + 0.005902613513171673, + 0.006880986504256725, + 0.006872341502457857, + 0.006869889330118895, + 0.007582750637084246, + 0.00793757289648056, + 0.007936757057905197 + ], + "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.7720155571032015, + "normalized_timepoint_brier": [ + 1.9845212952767446, + 1.9009238771742971, + 1.7215679968805642, + 1.6433941422134934, + 1.746233254289228, + 1.7406270364656202, + 1.7714487851113827, + 1.6152479164325932, + 1.6741535680502384, + 1.7740767627564906, + 1.7929156177496128, + 1.8401128609722897, + 1.8309791289690633 + ], + "raw_time_brier": 0.008229204238607334, + "raw_timepoint_brier": [ + 0.002382224891334772, + 0.004653474316000938, + 0.0053299665451049805, + 0.006038303021341562, + 0.007098262198269367, + 0.007784501649439335, + 0.008492855355143547, + 0.008511167950928211, + 0.009417089633643627, + 0.010846641846001148, + 0.011687681078910828, + 0.012368759140372276, + 0.01236872747540474 + ], + "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": 1.9891006487524092, + "normalized_timepoint_brier": [ + 1.4006971614435315, + 2.103586591750404, + 1.7893924558838343, + 2.17576460114396, + 1.907402840617212, + 1.8981456791540061, + 2.0351075762922113, + 1.9742333362571, + 2.0867211004412027, + 2.141887505371162, + 2.0222443513454347, + 2.1772459078810305, + 2.145879326200231 + ], + "raw_time_brier": 0.006302750248533602, + "raw_timepoint_brier": [ + 0.0014006971614435315, + 0.0028095380403101444, + 0.0031845541670918465, + 0.004875479266047478, + 0.004891946446150541, + 0.005578936543315649, + 0.006638789549469948, + 0.007045742589980364, + 0.007979183457791805, + 0.00862602237612009, + 0.009002218022942543, + 0.009950459934771061, + 0.009952185675501823 + ], + "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.2755565211688148, + "normalized_timepoint_brier": [ + 0.00346298361364461, + 0.00898647886060644, + 0.017919952369993553, + 0.028274704163777642, + 0.029955413992865942, + 0.032290387025568634, + 0.034881701139966026, + 0.0353943178197369, + 0.3910652594640851, + 0.7441634079441428, + 0.7472719880752265, + 0.7542155217379332, + 0.7543526589870453 + ], + "raw_time_brier": 0.0002755565211688148, + "raw_timepoint_brier": [ + 3.46298361364461e-06, + 8.98647886060644e-06, + 1.7919952369993553e-05, + 2.8274704163777642e-05, + 2.9955413992865942e-05, + 3.2290387025568634e-05, + 3.4881701139966026e-05, + 3.53943178197369e-05, + 0.0003910652594640851, + 0.0007441634079441428, + 0.0007472719880752265, + 0.0007542155217379332, + 0.0007543526589870453 + ], + "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.7680304064891963, + "normalized_timepoint_brier": [ + 0.7100121583789587, + 0.7059237686917186, + 0.7006493397057056, + 0.6994709838181734, + 0.6960580940358341, + 0.6950241513550282, + 0.6629157474648696, + 0.9029965002238569, + 0.8756764897829207, + 0.8748574906546988, + 0.8594398293050515, + 0.8009647055698264, + 0.8004060253729098 + ], + "raw_time_brier": 0.0008458061448226755, + "raw_timepoint_brier": [ + 0.0007100121583789587, + 0.0007059237686917186, + 0.0007006493397057056, + 0.0006994709838181734, + 0.0006960580940358341, + 0.0006950241513550282, + 0.0006931364187039435, + 0.0010200986871495843, + 0.0010186758590862155, + 0.0010177231160923839, + 0.0010142307728528976, + 0.0010125914122909307, + 0.0010118851205334067 + ], + "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.624224296327453, + "normalized_timepoint_brier": [ + 1.4297429006546736, + 1.7878991784527898, + 1.9646595742573905, + 1.6827770004201756, + 1.4235657797949368, + 1.282820827908456, + 1.370783635535972, + 1.654628948330435, + 1.6139484406515192, + 1.7075328170051274, + 1.6553458057305828, + 1.7140003397238353, + 1.827210603790996 + ], + "raw_time_brier": 0.002783946880999093, + "raw_timepoint_brier": [ + 0.0014297429006546736, + 0.0017878991784527898, + 0.0021470405627042055, + 0.0021495590917766094, + 0.002152992645278573, + 0.0021554192062467337, + 0.0025099506601691246, + 0.003223953302949667, + 0.0032260159496217966, + 0.0035847690887749195, + 0.003586054081097245, + 0.00394292501732707, + 0.004294987767934799 + ], + "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.0760664596300085, + "normalized_timepoint_brier": [ + 1.3220817693560996, + 1.010587357236727, + 1.1030608433797724, + 1.1568792555667886, + 1.1346254063348777, + 1.1028554973240425, + 1.03088666096036, + 1.001146602640756, + 1.017290927996895, + 0.993212923556392, + 1.043788505183731, + 1.0397726525502988, + 1.0326755731033694 + ], + "raw_time_brier": 0.014967802446335554, + "raw_timepoint_brier": [ + 0.0055351341143250465, + 0.00690073287114501, + 0.010088524781167507, + 0.012970487587153912, + 0.0139465918764472, + 0.015010634437203407, + 0.015665631741285324, + 0.016387352719902992, + 0.017785370349884033, + 0.01842265948653221, + 0.020152075216174126, + 0.020860139280557632, + 0.0208560973405838 + ], + "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.3235269175548225, + "normalized_timepoint_brier": [ + 1.7735190922394395, + 2.4633649736642838, + 2.4037244782111995, + 2.4946845573591143, + 2.408168310631329, + 2.1969396459888433, + 2.438756989263956, + 2.2675655916938298, + 2.392399535713038, + 2.3103058838882613, + 2.3159985979818187, + 2.3776074599243535, + 2.3628148116532253 + ], + "raw_time_brier": 0.004547357980090265, + "raw_timepoint_brier": [ + 0.0017735190922394395, + 0.0024633649736642838, + 0.0031349677592515945, + 0.0038364750798791647, + 0.004185449797660112, + 0.004184287507086992, + 0.004888707306236029, + 0.0048861377872526646, + 0.005593741312623024, + 0.005593935959041119, + 0.005954383406788111, + 0.0063102832064032555, + 0.006310400553047657 + ], + "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.34545195430268905, + "normalized_timepoint_brier": [ + 0.0003651302620255592, + 0.0010766361810965464, + 0.003017095650648116, + 0.003857057436107425, + 0.004893493951385608, + 0.35097403451800346, + 0.3515864664223045, + 0.35165526787750423, + 0.6855802494101226, + 0.6854610983282328, + 0.6848408957011998, + 0.6837942055426538, + 0.6837737746536732 + ], + "raw_time_brier": 0.00034545195430268905, + "raw_timepoint_brier": [ + 3.651302620255592e-07, + 1.0766361810965464e-06, + 3.017095650648116e-06, + 3.857057436107425e-06, + 4.893493951385608e-06, + 0.00035097403451800346, + 0.0003515864664223045, + 0.00035165526787750423, + 0.0006855802494101226, + 0.0006854610983282328, + 0.0006848408957011998, + 0.0006837942055426538, + 0.0006837737746536732 + ], + "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.0906894872609694, + "normalized_timepoint_brier": [ + 0.8949971979165606, + 0.879273966969367, + 1.0608493979997615, + 1.041999260079908, + 1.0781547511379954, + 1.125135488851766, + 1.2446778351176684, + 1.1946760736735653, + 1.1521110587824215, + 1.1446278509710321, + 1.1295350720159794, + 1.1216772082153692, + 1.1112481726612076 + ], + "raw_time_brier": 0.008097017085394608, + "raw_timepoint_brier": [ + 0.0014449477894231677, + 0.003171424614265561, + 0.005135104060173035, + 0.005928142927587032, + 0.007063705008476973, + 0.008136121556162834, + 0.00970110297203064, + 0.010022555477917194, + 0.01012066937983036, + 0.01067862007766962, + 0.011040840297937393, + 0.011407298035919666, + 0.011410689912736416 + ], + "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.0922665300321972, + "normalized_timepoint_brier": [ + 0.79370734438306, + 0.9462835775416089, + 1.025372886937492, + 1.0329965700791932, + 1.1077845519231089, + 1.1098128893926378, + 1.16823878595004, + 1.1746872536018615, + 1.1713818781563945, + 1.1899819133758858, + 1.1754739705295256, + 1.1560437788691593, + 1.1476994896785955 + ], + "raw_time_brier": 0.01920541014092473, + "raw_timepoint_brier": [ + 0.003966877702623606, + 0.008265607990324497, + 0.011722256429493427, + 0.014038708992302418, + 0.01724269427359104, + 0.018720269203186035, + 0.02099856175482273, + 0.022762969136238098, + 0.02419395186007023, + 0.026114897802472115, + 0.026718880981206894, + 0.027464166283607483, + 0.0274604894220829 + ], + "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.948130554846455, + "normalized_timepoint_brier": [ + 2.475104154879516, + 1.9990321270325149, + 2.1029604232859964, + 2.0710423324713423, + 1.9237587858923044, + 1.9453096080985026, + 1.9294216661751236, + 1.881027613973351, + 1.8572364875204446, + 1.851511763528773, + 1.8271973346862995, + 1.733869940888527, + 1.728224974571215 + ], + "raw_time_brier": 0.02088292709623392, + "raw_timepoint_brier": [ + 0.007242989726364613, + 0.011069176718592644, + 0.015251435339450836, + 0.01823442243039608, + 0.0193176232278347, + 0.021764181554317474, + 0.02326934039592743, + 0.023971091955900192, + 0.02496533840894699, + 0.026021165773272514, + 0.026761891320347786, + 0.026804011315107346, + 0.02680538408458233 + ], + "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.838835218871394, + "normalized_timepoint_brier": [ + 1.040628031385568, + 0.8454571877508259, + 0.8618813948993302, + 0.8446485913448512, + 0.838855824099143, + 0.8102975138676402, + 0.8171603230379135, + 0.819310439944126, + 0.8034881214386812, + 0.8282533464787416, + 0.8120490941000367, + 0.7910420282986096, + 0.7917859486826568 + ], + "raw_time_brier": 0.03381093369367031, + "raw_timepoint_brier": [ + 0.014539952389895916, + 0.019615549594163895, + 0.025003189221024513, + 0.02867227792739868, + 0.0316607765853405, + 0.03307377174496651, + 0.035953737795352936, + 0.037954628467559814, + 0.03926869109272957, + 0.042244087904691696, + 0.04331965744495392, + 0.04394790902733803, + 0.04428790882229805 + ], + "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.0246726045658052, + "normalized_timepoint_brier": [ + 0.35310478415340185, + 0.35358822788111866, + 0.7048430852591991, + 1.0575862834230065, + 1.0576414642855525, + 1.0276031851827911, + 1.0114806644223635, + 0.9513080472717526, + 1.211546827800669, + 1.211552438035391, + 1.1781523675523757, + 1.6111785691820188, + 1.5911579149058284 + ], + "raw_time_brier": 0.0011653792932450485, + "raw_timepoint_brier": [ + 0.00035310478415340185, + 0.00035358822788111866, + 0.0007048430852591991, + 0.0010575862834230065, + 0.0010576414642855525, + 0.001057856366969645, + 0.001058023888617754, + 0.001058165798895061, + 0.0014078530948609114, + 0.0014078596141189337, + 0.0014081080444157124, + 0.0021126014180481434, + 0.0021126987412571907 + ], + "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.7956989581243517, + "normalized_timepoint_brier": [ + 2.6920763460256794, + 2.8278399378062455, + 2.8840818403019095, + 2.689903437027914, + 2.827349103772636, + 2.839054472094398, + 2.9407582536038377, + 2.7925119126010784, + 2.7797668155986717, + 2.806833289579126, + 2.738766515876759, + 2.7744446797215385, + 2.7506998516067824 + ], + "raw_time_brier": 0.015678120436719976, + "raw_timepoint_brier": [ + 0.0036999520380049944, + 0.007712201215326786, + 0.01057529542595148, + 0.011651045642793179, + 0.014171301387250423, + 0.01587013341486454, + 0.017537232488393784, + 0.018215421587228775, + 0.019168179482221603, + 0.020209375768899918, + 0.02073913812637329, + 0.022134989500045776, + 0.02213129960000515 + ], + "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.1881657308514713, + "normalized_timepoint_brier": [ + 1.1331320350235545, + 1.2766604305109288, + 1.2246370945274563, + 1.1753870424662678, + 1.145826243934504, + 1.1902694673801002, + 1.20180513907088, + 1.176956857912427, + 1.1670463642943447, + 1.1996701161141754, + 1.2008215952978474, + 1.1748080245333108, + 1.1791340900033305 + ], + "raw_time_brier": 0.020293151637395986, + "raw_timepoint_brier": [ + 0.004774108994752169, + 0.010545199736952782, + 0.013491177000105381, + 0.015843266621232033, + 0.01754072681069374, + 0.020176807418465614, + 0.021929820999503136, + 0.023239679634571075, + 0.024651655927300453, + 0.02666318789124489, + 0.028008487075567245, + 0.02831163816154003, + 0.028635215014219284 + ], + "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": 0.9801225957424875, + "normalized_timepoint_brier": [ + 1.0039704919425767, + 0.7999178536625773, + 1.093010703142636, + 1.0986059815608968, + 0.9937977071000347, + 1.0189915886190108, + 1.0153224240636254, + 1.0243137738495396, + 0.9907285247864891, + 0.9614322175972138, + 0.9319265489884183, + 0.9054825230324052, + 0.9040934063069156 + ], + "raw_time_brier": 0.006946085925357273, + "raw_timepoint_brier": [ + 0.0017055218340829015, + 0.0029390244744718075, + 0.005529159680008888, + 0.006635887548327446, + 0.006712540052831173, + 0.007406405173242092, + 0.007867068983614445, + 0.008512666448950768, + 0.008544695563614368, + 0.008577846921980381, + 0.008606295101344585, + 0.008630185388028622, + 0.008631819859147072 + ], + "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.068507004770313, + "normalized_timepoint_brier": [ + 1.0981581136493195, + 1.076659701882927, + 1.1024644137177928, + 1.0685818743783895, + 1.1001930053876283, + 1.031735131499289, + 1.05026472563297, + 1.0498478605283883, + 1.0616626396743176, + 1.0442195600261948, + 1.0872752002030062, + 1.0642760231666937, + 1.0552528122671547 + ], + "raw_time_brier": 0.017975765817727033, + "raw_timepoint_brier": [ + 0.006097813602536917, + 0.00983611773699522, + 0.012780074030160904, + 0.014647606760263443, + 0.016796842217445374, + 0.017159922048449516, + 0.018646828830242157, + 0.02011771872639656, + 0.021565690636634827, + 0.022287555038928986, + 0.02412397414445877, + 0.024811094626784325, + 0.024813717231154442 + ], + "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.8089957890633149, + "normalized_timepoint_brier": [ + 0.00029848456506442744, + 0.34611643059179187, + 0.697513110935688, + 0.6964397034607828, + 1.048915321007371, + 1.0480444179847836, + 1.047934521920979, + 1.0471624555066228, + 1.014806525566126, + 0.9528217586463257, + 0.8969776198297155, + 0.8599562553691783, + 0.859958652438666 + ], + "raw_time_brier": 0.0008582881505215203, + "raw_timepoint_brier": [ + 2.9848456506442744e-07, + 0.00034611643059179187, + 0.000697513110935688, + 0.0006964397034607828, + 0.001048915321007371, + 0.0010480444179847836, + 0.001047934521920979, + 0.0010471624555066228, + 0.0010466754902154207, + 0.0010460850317031145, + 0.001044339849613607, + 0.001044109114445746, + 0.0010441120248287916 + ], + "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.6531497313541548, + "normalized_timepoint_brier": [ + 0.0002779704857402976, + 0.0006272577479649044, + 0.35283275065012276, + 0.6936860525986486, + 0.6134820501805858, + 0.8569177927117614, + 0.8026310855813583, + 0.9832275351495148, + 0.9395949588096544, + 0.880982583081625, + 0.8212439433932414, + 0.7762471631380878, + 0.7691953640757045 + ], + "raw_time_brier": 0.0009474723850709884, + "raw_timepoint_brier": [ + 2.779704857402976e-07, + 6.272577479649044e-07, + 0.00035283275065012276, + 0.000704668287653476, + 0.0007046952378004789, + 0.0010554766049608588, + 0.0010553436586633325, + 0.0014071352779865265, + 0.001407002448104322, + 0.0014070558827370405, + 0.0014072400517761707, + 0.0014073897618800402, + 0.0014073958154767752 + ], + "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.6809721837262686, + "normalized_timepoint_brier": [ + 0.3530879912432283, + 1.0545874247327447, + 1.4068379532545805, + 1.748650218360126, + 2.0995994564145803, + 2.0982029382139444, + 2.098357304930687, + 2.097997348755598, + 1.9149264877037864, + 1.8325228374784437, + 1.7315902178725748, + 1.7081349380275148, + 1.7081432714536795 + ], + "raw_time_brier": 0.0018044434232601465, + "raw_timepoint_brier": [ + 0.0003530879912432283, + 0.0010545874247327447, + 0.0014068379532545805, + 0.001748650218360126, + 0.0020995994564145803, + 0.0020982029382139444, + 0.002098357304930687, + 0.002097997348755598, + 0.002099978970363736, + 0.002100730314850807, + 0.0020999941043555737, + 0.0020998651161789894, + 0.00209987536072731 + ], + "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.6596740509211505, + "normalized_timepoint_brier": [ + 0.3530919784680009, + 0.7106875418685377, + 0.7220954867079854, + 0.7479517953470349, + 0.770963670220226, + 0.7925808313302696, + 0.7947862318937841, + 0.7095070146877018, + 0.6618994440707826, + 0.6298656329094671, + 0.5820791073003744, + 0.5499236181365563, + 0.5503303090342359 + ], + "raw_time_brier": 0.0007859313135178616, + "raw_timepoint_brier": [ + 0.0003530919784680009, + 0.0007106875418685377, + 0.0007220954867079854, + 0.0007479517953470349, + 0.000770963670220226, + 0.0007925808313302696, + 0.0008052955963648856, + 0.0008365918765775859, + 0.0008572530350647867, + 0.0008783291559666395, + 0.0008984040468931198, + 0.0009215902537107468, + 0.0009222718072123826 + ], + "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.1537120943715125, + "normalized_timepoint_brier": [ + 1.2890751477582867, + 1.2945440091645817, + 1.2863874649107483, + 1.329604451982322, + 1.2624539922227846, + 1.1209858006795725, + 1.1095474297322112, + 1.07562060120198, + 1.056259908443775, + 1.0349838345795155, + 1.0383493925497627, + 1.053213064213975, + 1.0472321293901519 + ], + "raw_time_brier": 0.007548493404801075, + "raw_timepoint_brier": [ + 0.00281067518517375, + 0.004398224875330925, + 0.005595020018517971, + 0.006772834341973066, + 0.007157593499869108, + 0.0071462360210716724, + 0.007935664616525173, + 0.008330069482326508, + 0.008725547231733799, + 0.009122572839260101, + 0.009515726938843727, + 0.01031069178134203, + 0.010309557430446148 + ], + "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.581653181321402, + "normalized_timepoint_brier": [ + 1.0796291753649712, + 1.4388811541721225, + 2.155604073777795, + 2.8714926447719336, + 3.226574743166566, + 3.0868166951739298, + 2.773771793463901, + 2.7343202159424975, + 3.1219047350016282, + 2.9268405166446105, + 2.8214395438428292, + 2.662051799898752, + 2.662164265956691 + ], + "raw_time_brier": 0.0030903344920191625, + "raw_timepoint_brier": [ + 0.0010796291753649712, + 0.0014388811541721225, + 0.002155604073777795, + 0.0028714926447719336, + 0.003226574743166566, + 0.0032252094242721796, + 0.0032249216455966234, + 0.0032250131480395794, + 0.003944926895201206, + 0.003944967407733202, + 0.003945122938603163, + 0.003945919219404459, + 0.003946085926145315 + ], + "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.9374484296001271, + "normalized_timepoint_brier": [ + 0.7127027492970228, + 0.7127011776901782, + 0.71274972287938, + 0.7128299330361187, + 0.7129571749828756, + 0.7129916921257973, + 1.0687686735764146, + 1.01423832057862, + 1.233945855315199, + 1.216300771561095, + 1.150566711676482, + 1.1203252970674047, + 1.1057515050150635 + ], + "raw_time_brier": 0.0010410949337081267, + "raw_timepoint_brier": [ + 0.0007127027492970228, + 0.0007127011776901782, + 0.00071274972287938, + 0.0007128299330361187, + 0.0007129571749828756, + 0.0007129916921257973, + 0.0010687686735764146, + 0.0010688105830922723, + 0.0014239647425711155, + 0.0014239249285310507, + 0.0014239237643778324, + 0.0014239531010389328, + 0.0014239558950066566 + ], + "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.666745068246779, + "normalized_timepoint_brier": [ + 2.72692390717566, + 2.8246597144929475, + 2.685827272043431, + 2.8428283433104404, + 2.5285739916393695, + 2.6239956371677655, + 2.67845049592633, + 2.765859100589355, + 2.6231068742184513, + 2.566199730715699, + 2.569134224979411, + 2.616141258484601, + 2.6159853364646684 + ], + "raw_time_brier": 0.007306995246416101, + "raw_timepoint_brier": [ + 0.00272692390717566, + 0.004082322586327791, + 0.004979874938726425, + 0.005882092751562595, + 0.005883858539164066, + 0.006783152464777231, + 0.007671475410461426, + 0.008574210107326508, + 0.008581236004829407, + 0.008999292738735676, + 0.009450470097362995, + 0.010688332840800285, + 0.010687695816159248 + ], + "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.3096769525702, + "normalized_timepoint_brier": [ + 0.355539406882599, + 1.069247373379767, + 1.2401209865798162, + 1.0847529677611514, + 1.1649265304434968, + 1.0732474977326936, + 1.2254386340359444, + 1.2883585152384225, + 1.3991424092999325, + 1.6142991468285612, + 1.814053759767934, + 1.8483249154958, + 1.8483482399664812 + ], + "raw_time_brier": 0.002488271245965734, + "raw_timepoint_brier": [ + 0.000355539406882599, + 0.001069247373379767, + 0.0014252940891310573, + 0.0014273053966462612, + 0.0017847113776952028, + 0.0017870250158011913, + 0.0021422305144369602, + 0.0024876820389181376, + 0.0028410605154931545, + 0.003546161809936166, + 0.004255991894751787, + 0.004612609278410673, + 0.004612667486071587 + ], + "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.4444910037523303, + "normalized_timepoint_brier": [ + 0.35456634941510856, + 0.3545138461049646, + 0.3547637024894357, + 0.30773162726297765, + 0.2761698204935878, + 0.22681248171640384, + 0.40189915740890203, + 0.380898422810578, + 0.5367088403589648, + 0.49170327177716144, + 0.6222627159644286, + 0.7402205431052029, + 0.7301322698725782 + ], + "raw_time_brier": 0.000820196305329983, + "raw_timepoint_brier": [ + 0.00035456634941510856, + 0.0003545138461049646, + 0.00035476370248943567, + 0.0003546543593984097, + 0.00035512138856574893, + 0.00035595291410572827, + 0.0007111228769645095, + 0.0007120230002328753, + 0.0010658145183697343, + 0.0010664383880794048, + 0.0014220447046682239, + 0.001777743105776608, + 0.001777792815119028 + ], + "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.6992025708802801, + "normalized_timepoint_brier": [ + 1.0678006053338025, + 0.6061585974844622, + 0.632939734354845, + 0.5412866658416605, + 0.487395658617626, + 0.6440697180879529, + 0.7095365986610146, + 0.8329015309919204, + 0.7735344377730194, + 0.7399744281420434, + 0.7028679160657871, + 0.6790196693719042, + 0.6721478607176032 + ], + "raw_time_brier": 0.0023377824735899386, + "raw_timepoint_brier": [ + 0.0010743467137217522, + 0.0010866791708394885, + 0.001451913034543395, + 0.0014584934106096625, + 0.0014677144354209304, + 0.002143463119864464, + 0.0025032293051481247, + 0.0031881281174719334, + 0.0031924094073474407, + 0.003201501676812768, + 0.0032047261483967304, + 0.0032088118605315685, + 0.0032097557559609413 + ], + "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.4195865816488626, + "normalized_timepoint_brier": [ + 0.00031701412694928877, + 0.0007392895327029692, + 0.001286146584789094, + 1.422383007593453, + 1.7772829160094261, + 1.6380310989783318, + 1.9066235171102983, + 1.8255129692699583, + 1.9303550829835598, + 2.02144360503736, + 1.9076260874598518, + 2.0115188041666645, + 2.011506022581868 + ], + "raw_time_brier": 0.0018281929615310533, + "raw_timepoint_brier": [ + 3.1701412694928877e-07, + 7.392895327029692e-07, + 1.286146584789094e-06, + 0.001422383007593453, + 0.0017772829160094261, + 0.0017773843137547374, + 0.0021322895772755146, + 0.0021327747963368893, + 0.0024804931599646807, + 0.0028332530055195093, + 0.002832612255588174, + 0.003187856636941433, + 0.003187836380675435 + ], + "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.1523720880879096, + "normalized_timepoint_brier": [ + 3.5618682787422213, + 2.2503839804944588, + 2.3016970343216756, + 2.251679180678947, + 2.16842094092664, + 2.0168695033010127, + 1.9834258192675804, + 1.9085669518274224, + 1.912999983931553, + 1.862622694549719, + 1.8845301343937295, + 1.9259375098425566, + 1.9518351328653145 + ], + "raw_time_brier": 0.011308946539289676, + "raw_timepoint_brier": [ + 0.005036553367972374, + 0.00676843011751771, + 0.00888701993972063, + 0.010310269892215729, + 0.011302453465759754, + 0.0113176628947258, + 0.01169140450656414, + 0.012075141072273254, + 0.012739650905132294, + 0.013116023503243923, + 0.013800719752907753, + 0.014805358834564686, + 0.015165616758167744 + ], + "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.3194671934784794, + "normalized_timepoint_brier": [ + 1.417121358698127, + 1.2116741751189977, + 1.3127733536476338, + 1.2698239579338217, + 1.366231051911884, + 1.2309254883239562, + 1.274406846786721, + 1.3141528415907484, + 1.252581533317001, + 1.328100139060503, + 1.3979637237747522, + 1.392449517302574, + 1.3848695277535106 + ], + "raw_time_brier": 0.005773759903744436, + "raw_timepoint_brier": [ + 0.0017773403087630868, + 0.0028333375230431557, + 0.0038999265525490046, + 0.00425778329372406, + 0.005307133309543133, + 0.005312376189976931, + 0.0059861065819859505, + 0.0066735283471643925, + 0.006672225892543793, + 0.007382217328995466, + 0.008094466291368008, + 0.008431283757090569, + 0.008431153371930122 + ], + "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.428918130410883, + "normalized_timepoint_brier": [ + 2.926324058980678, + 2.4175661240730726, + 2.7235235430946263, + 2.683489111138321, + 2.4926894104409008, + 2.3998289459012887, + 2.441644101023151, + 2.2747289163782067, + 2.2240805163488737, + 2.2011739891090145, + 2.2397854226514693, + 2.28162344956352, + 2.2694781066383585 + ], + "raw_time_brier": 0.010424353343506273, + "raw_timepoint_brier": [ + 0.003563993377611041, + 0.005553981754928827, + 0.00795465987175703, + 0.009281867183744907, + 0.009585889987647533, + 0.01027472410351038, + 0.01131380070000887, + 0.011302627623081207, + 0.01194414496421814, + 0.012629661709070206, + 0.013337403535842896, + 0.014387133531272411, + 0.014386705122888088 + ], + "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.7559038104561855, + "normalized_timepoint_brier": [ + 0.35720341838896275, + 0.7135808700695634, + 1.0711776558309793, + 1.4263084158301353, + 1.4266229700297117, + 1.427223440259695, + 2.141696633771062, + 2.0908823881240304, + 2.188141332370476, + 2.0968408823017763, + 2.3895919032101, + 2.748719747499969, + 2.7487598782439506 + ], + "raw_time_brier": 0.0020585958577262666, + "raw_timepoint_brier": [ + 0.00035720341838896275, + 0.0007135808700695634, + 0.0010711776558309793, + 0.0014263084158301353, + 0.0014266229700297117, + 0.001427223440259695, + 0.002141696633771062, + 0.002142357174307108, + 0.0024989531375467777, + 0.0025002460461109877, + 0.0032101350370794535, + 0.003923092037439346, + 0.003923149313777685 + ], + "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.001804295298471, + "normalized_timepoint_brier": [ + 2.980588640252707, + 2.0253379529781106, + 1.571516846654088, + 1.7971574725268955, + 2.099342987572602, + 2.0671042512223923, + 2.1759154190704844, + 2.0136270596166765, + 1.9193300023641147, + 1.8648473932779464, + 1.8673172037466124, + 1.8232163361749887, + 1.818154273422504 + ], + "raw_time_brier": 0.007732267151228511, + "raw_timepoint_brier": [ + 0.0032828787807375193, + 0.004011010285466909, + 0.004014050588011742, + 0.005105672404170036, + 0.006918890867382288, + 0.007648395374417305, + 0.009075440466403961, + 0.009075629524886608, + 0.00942377932369709, + 0.009782728739082813, + 0.01048491895198822, + 0.010847990401089191, + 0.010848087258636951 + ], + "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.3774419847321946, + "normalized_timepoint_brier": [ + 2.109336542784289, + 2.4145838269499817, + 2.560832393266704, + 2.7094020466351503, + 2.4592792215688126, + 2.331344025459422, + 2.3407183791638158, + 2.3352820737226363, + 2.333306199032372, + 2.384240856451384, + 2.3944044833714853, + 2.272821580418194, + 2.2611941726942884 + ], + "raw_time_brier": 0.01248237479907962, + "raw_timepoint_brier": [ + 0.0037870057858526707, + 0.006680439226329327, + 0.008740697987377644, + 0.011201050132513046, + 0.01119202934205532, + 0.011932824738323689, + 0.013086926192045212, + 0.013849347829818726, + 0.014673680998384953, + 0.015891168266534805, + 0.017087938264012337, + 0.0170745812356472, + 0.01707318238914013 + ], + "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.3275970969936868, + "normalized_timepoint_brier": [ + 2.7862686643577796, + 2.441226198911835, + 2.6219000471584626, + 2.543949247232677, + 2.2663861155371725, + 2.078718409890382, + 2.15704266778416, + 2.171442308570921, + 2.0807816494484173, + 2.321234837118643, + 2.3213881088243653, + 2.2359929668810894, + 2.2324310392020212 + ], + "raw_time_brier": 0.021519736315195378, + "raw_timepoint_brier": [ + 0.008189153857529163, + 0.011960453353822231, + 0.016184095293283463, + 0.018589727580547333, + 0.01918984204530716, + 0.019274942576885223, + 0.02144826576113701, + 0.023215848952531815, + 0.023904558271169662, + 0.028086883947253227, + 0.02987746335566044, + 0.029912449419498444, + 0.029922887682914734 + ], + "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.6977377899964725, + "normalized_timepoint_brier": [ + 0.7082205847837031, + 1.0608230950310826, + 1.4122272841632366, + 1.4122608117759228, + 1.4117672108113766, + 1.4113927027210593, + 2.1185169462114573, + 2.025596182591833, + 1.9343222294841251, + 2.1281817243042425, + 2.041065800255384, + 2.203107621066524, + 2.203109076754191 + ], + "raw_time_brier": 0.0018744919350585686, + "raw_timepoint_brier": [ + 0.0007082205847837031, + 0.0010608230950310826, + 0.0014122272841632366, + 0.0014122608117759228, + 0.0014117672108113766, + 0.0014113927027210593, + 0.0021185169462114573, + 0.0021209532860666513, + 0.0021218671463429928, + 0.0024759904481470585, + 0.002476340625435114, + 0.0028190165758132935, + 0.0028190184384584427 + ], + "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.9655752802715876, + "normalized_timepoint_brier": [ + 1.7979283083854198, + 1.856409983407592, + 2.0685005483249395, + 2.0385887661864524, + 2.0273220772705844, + 1.9791867571709723, + 2.039282718127086, + 1.9839898980243604, + 1.9757093343490024, + 1.9615300547302874, + 1.9522721896225919, + 1.944859172744828, + 1.9268988351865255 + ], + "raw_time_brier": 0.020844728829195865, + "raw_timepoint_brier": [ + 0.00513033289462328, + 0.009440460242331028, + 0.014401526190340519, + 0.016850626096129417, + 0.01884002424776554, + 0.02062165178358555, + 0.022849159315228462, + 0.02405376546084881, + 0.025427047163248062, + 0.026737844571471214, + 0.027965152636170387, + 0.029337193816900253, + 0.02932669036090374 + ], + "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.7932794928009884, + "normalized_timepoint_brier": [ + 0.9298314436156246, + 0.7982862378342604, + 0.6966940949123108, + 0.7343161705083239, + 0.7337012911373141, + 0.8114708097211452, + 0.828837002688586, + 0.8139784057336737, + 0.7980906438885093, + 0.7806981037285503, + 0.7887507281927226, + 0.7969436588424195, + 0.8010348156094098 + ], + "raw_time_brier": 0.025244490028573915, + "raw_timepoint_brier": [ + 0.009748665615916252, + 0.014169372618198395, + 0.015623493120074272, + 0.019181646406650543, + 0.02130923792719841, + 0.025728320702910423, + 0.028492912650108337, + 0.029558194801211357, + 0.030588902533054352, + 0.031238285824656487, + 0.032924164086580276, + 0.03463888540863991, + 0.0349762886762619 + ], + "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.9468095695434422, + "normalized_timepoint_brier": [ + 0.9097190141070866, + 0.8662729129265616, + 0.9307801925345757, + 0.9455946067567156, + 0.9342050014760646, + 0.9318575422960377, + 0.9716545013305189, + 0.9674001214949606, + 0.979936455963142, + 0.9891751274338567, + 0.9770588075033767, + 0.9517279415678088, + 0.9531421786740427 + ], + "raw_time_brier": 0.04535567509726836, + "raw_timepoint_brier": [ + 0.013771849684417248, + 0.02261972986161709, + 0.03136330842971802, + 0.03717798739671707, + 0.04073837026953697, + 0.04455047845840454, + 0.049341510981321335, + 0.05206878483295441, + 0.05527229234576225, + 0.05863858386874199, + 0.06052122637629509, + 0.061616603285074234, + 0.06194305047392845 + ], + "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.8190302704917458, + "normalized_timepoint_brier": [ + 1.0560338851064444, + 1.0511205764487386, + 2.398953200064076, + 2.102658135918708, + 1.899589658968213, + 1.918709517355291, + 1.7998993512979986, + 1.8333962659855239, + 1.8954936004766327, + 1.8956959086950838, + 1.9867865019321866, + 1.9104778036355798, + 1.8985791105082208 + ], + "raw_time_brier": 0.0034991032354390393, + "raw_timepoint_brier": [ + 0.0010560338851064444, + 0.0010511205764487386, + 0.0027694767341017723, + 0.0030946119222790003, + 0.003080859547480941, + 0.0034322612918913364, + 0.0034297213423997164, + 0.0037684401031583548, + 0.004117245320230722, + 0.004465202800929546, + 0.005077197682112455, + 0.005073083098977804, + 0.005073087755590677 + ], + "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.8046311783091924, + "normalized_timepoint_brier": [ + 1.0750622022897005, + 1.433679717592895, + 1.4337108004838228, + 1.4339012559503317, + 1.4339437475427985, + 1.7934754723683, + 1.7942639533430338, + 1.7944646533578634, + 2.423247974045153, + 2.355286687704292, + 2.1722402451057006, + 2.1723094493562543, + 2.144619158879351 + ], + "raw_time_brier": 0.002042533659662765, + "raw_timepoint_brier": [ + 0.0010750622022897005, + 0.001433679717592895, + 0.0014337108004838228, + 0.0014339012559503317, + 0.0014339437475427985, + 0.0017934754723683, + 0.0017942639533430338, + 0.0017944646533578634, + 0.0028717154636979103, + 0.002871935488656163, + 0.002872154349461198, + 0.002872245851904154, + 0.0028723846189677715 + ], + "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.43497315756484883, + "normalized_timepoint_brier": [ + 0.002323641183465952, + 0.3667441778816283, + 0.3064076086977668, + 0.277730369701898, + 0.24661676971369278, + 0.6084307946132155, + 0.5518112091962654, + 0.642444813500054, + 0.5934400451323777, + 0.5531054529065529, + 0.5313762974671767, + 0.48831772373345894, + 0.48590214461548203 + ], + "raw_time_brier": 0.0009726541101232355, + "raw_timepoint_brier": [ + 2.323641183465952e-06, + 0.0003667441778816283, + 0.000375974050257355, + 0.0003825613239314407, + 0.0003931885294150561, + 0.001091961283236742, + 0.0011008437722921371, + 0.0014636768028140068, + 0.0014705664943903685, + 0.0014813608722761273, + 0.001493681687861681, + 0.001510473433881998, + 0.0015111473621800542 + ], + "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.4705752715442975, + "normalized_timepoint_brier": [ + 1.8149677198380232, + 1.6587479712135234, + 1.8761551729048471, + 1.5987014857563082, + 1.4292734049288784, + 1.3797485272256178, + 1.4713332479359822, + 1.3873289080475566, + 1.276416721023417, + 1.200195346603805, + 1.278040511338401, + 1.3779649345323444, + 1.3686045787271666 + ], + "raw_time_brier": 0.004562351548184569, + "raw_timepoint_brier": [ + 0.0018149677198380232, + 0.0025439653545618057, + 0.003631236031651497, + 0.003976037260144949, + 0.003984055016189814, + 0.00434816163033247, + 0.005051623098552227, + 0.005061611533164978, + 0.005078608635812998, + 0.005092749837785959, + 0.005759557243436575, + 0.006483354605734348, + 0.006484642159193754 + ], + "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.265110246843087, + "normalized_timepoint_brier": [ + 0.365971471183002, + 2.2068061304508664, + 2.5312527946996703, + 2.2920638135260436, + 2.0942679275556673, + 2.249487552814832, + 2.169065955425543, + 2.327868151054355, + 2.6533363603952735, + 2.6169765470082758, + 2.6707059572250977, + 2.609347573755164, + 2.6592829738663384 + ], + "raw_time_brier": 0.007498667978395063, + "raw_timepoint_brier": [ + 0.000365971471183002, + 0.003262838115915656, + 0.005072357133030891, + 0.0054461658000946045, + 0.005824824795126915, + 0.006900019012391567, + 0.007275010459125042, + 0.008357294835150242, + 0.010107431560754776, + 0.01045287400484085, + 0.011115485802292824, + 0.011474736966192722, + 0.011827673763036728 + ], + "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.6311468762130692, + "normalized_timepoint_brier": [ + 0.35406992537900805, + 0.35434699384495616, + 0.35592628410086036, + 0.7094456814229488, + 0.709929910954088, + 0.7115494809113443, + 0.7119442452676594, + 0.7133816252462566, + 0.7147352444007993, + 0.7159301894716918, + 0.7173280464485288, + 0.7181293913163245, + 0.7181923720054328 + ], + "raw_time_brier": 0.0006311468762130692, + "raw_timepoint_brier": [ + 0.00035406992537900805, + 0.00035434699384495616, + 0.00035592628410086036, + 0.0007094456814229488, + 0.000709929910954088, + 0.0007115494809113443, + 0.0007119442452676594, + 0.0007133816252462566, + 0.0007147352444007993, + 0.0007159301894716918, + 0.0007173280464485288, + 0.0007181293913163245, + 0.0007181923720054328 + ], + "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.030782143367667, + "normalized_timepoint_brier": [ + 1.2877823650371816, + 1.398999023215234, + 1.0864812447325147, + 0.9131873145389939, + 0.7602571443252005, + 0.7779103167301054, + 1.0620353272288603, + 1.036558776439826, + 1.0432905070958556, + 1.0598825735560558, + 1.0164349626330074, + 0.984109317882163, + 0.9732389903646728 + ], + "raw_time_brier": 0.0047632195861437, + "raw_timepoint_brier": [ + 0.0019264096627011895, + 0.0034133982844650745, + 0.003399040549993515, + 0.0033850204199552536, + 0.0033662915229797363, + 0.0037387763150036335, + 0.0056381854228675365, + 0.005633132997900248, + 0.005987414624541998, + 0.0063682058826088905, + 0.006361592561006546, + 0.006352604832500219, + 0.006351781543344259 + ], + "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.4772246478829028, + "normalized_timepoint_brier": [ + 1.432070042937994, + 1.8893496292973455, + 1.4891419743641017, + 1.5094708567231732, + 1.5961081610747203, + 1.409833311560125, + 1.4999995349941584, + 1.421756398109727, + 1.3420963562341515, + 1.4103654519448319, + 1.356210196484598, + 1.4368223077557951, + 1.4106962009970179 + ], + "raw_time_brier": 0.002984517253935337, + "raw_timepoint_brier": [ + 0.001432070042937994, + 0.0021538843866437674, + 0.002152497647330165, + 0.0025147665292024612, + 0.0028756356332451105, + 0.00287443189881742, + 0.003236146876588464, + 0.003236172953620553, + 0.003236713819205761, + 0.0035923144314438105, + 0.0035920317750424147, + 0.003951164428144693, + 0.003950893878936768 + ], + "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.234415033697559, + "normalized_timepoint_brier": [ + 1.7900669481605291, + 2.862907014787197, + 3.256061010846985, + 2.8588718368197865, + 2.347516528720516, + 2.212911267267454, + 2.263433084138663, + 2.1128915480598, + 1.9061436502661246, + 1.8776086922190696, + 1.8110158763560475, + 1.8804068571484587, + 1.867561123277637 + ], + "raw_time_brier": 0.003842551762667986, + "raw_timepoint_brier": [ + 0.0017900669481605291, + 0.002862907014787197, + 0.003579364623874426, + 0.0035765236243605614, + 0.003570007858797908, + 0.003924485761672258, + 0.004280976951122284, + 0.004279544111341238, + 0.004277385771274567, + 0.004276409279555082, + 0.004276276100426912, + 0.0046296995133161545, + 0.004629525355994701 + ], + "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.932603363839127, + "normalized_timepoint_brier": [ + 1.4273289125412703, + 1.4238014118745923, + 2.5993620209183637, + 2.2835182656560846, + 2.2884820036017484, + 2.0875718509004155, + 2.04314568344708, + 1.845801248498951, + 1.9012969172901903, + 1.8677007077182286, + 1.8516177393479112, + 1.7593360411176069, + 1.74488092699621 + ], + "raw_time_brier": 0.003010671236552298, + "raw_timepoint_brier": [ + 0.0014273289125412703, + 0.0014238014118745923, + 0.0028497951570898294, + 0.002849603071808815, + 0.0032020339276641607, + 0.0032019305508583784, + 0.003202627645805478, + 0.003203518921509385, + 0.0035554394125938416, + 0.0035552692133933306, + 0.003555619390681386, + 0.003555841278284788, + 0.0035559171810746193 + ], + "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.0772914151446176, + "normalized_timepoint_brier": [ + 1.3999500079080462, + 1.7475261120125651, + 1.7420521471649408, + 2.0946578588336706, + 2.0924434065818787, + 2.091602422297001, + 2.0911211613565683, + 2.090423833578825, + 2.0851907320320606, + 2.0809064153581858, + 2.080912934616208, + 2.705150283873081, + 2.7028510812669992 + ], + "raw_time_brier": 0.0020772914151446177, + "raw_timepoint_brier": [ + 0.0013999500079080462, + 0.0017475261120125651, + 0.0017420521471649408, + 0.0020946578588336706, + 0.0020924434065818787, + 0.002091602422297001, + 0.0020911211613565683, + 0.002090423833578825, + 0.0020851907320320606, + 0.0020809064153581858, + 0.002080912934616208, + 0.002705150283873081, + 0.0027028510812669992 + ], + "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.9504969602617184, + "normalized_timepoint_brier": [ + 3.4913723125925227, + 3.5292551731438735, + 3.0457001632150185, + 3.160183329157804, + 2.8972503132185414, + 2.727891651263881, + 2.7609615981608004, + 2.903299830458614, + 2.9217747996705103, + 2.839653223733135, + 2.7697984954130317, + 2.659765985075983, + 2.6495536082986217 + ], + "raw_time_brier": 0.010720037317906436, + "raw_timepoint_brier": [ + 0.0052608042024075985, + 0.00766212772578001, + 0.00880573969334364, + 0.009973441250622272, + 0.009963806718587875, + 0.00994716677814722, + 0.010746648535132408, + 0.011956876143813133, + 0.012749951332807541, + 0.013088619336485863, + 0.013080762699246407, + 0.013062343932688236, + 0.013062196783721447 + ], + "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.563319793469773, + "normalized_timepoint_brier": [ + 2.059747464954853, + 2.739225048571825, + 2.7153268456459045, + 3.0339916702359915, + 2.8580009777931665, + 2.479996381949398, + 2.4106908572080155, + 2.412255208721828, + 2.689930422103381, + 2.6269178678866703, + 2.519886052538682, + 2.400238961079178, + 2.3769495564181513 + ], + "raw_time_brier": 0.0035183186320444713, + "raw_timepoint_brier": [ + 0.002059747464954853, + 0.002739225048571825, + 0.0027153268456459045, + 0.0030339916702359915, + 0.003345188917592168, + 0.0033217535819858313, + 0.0033103986643254757, + 0.0036384891718626022, + 0.004330011550337076, + 0.004317146260291338, + 0.004310866352170706, + 0.004308974836021662, + 0.004307021852582693 + ], + "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.983522966273234, + "normalized_timepoint_brier": [ + 0.0002112472685666944, + 0.35337734152562916, + 0.7095578475855291, + 0.7097658235579729, + 1.0653077624738216, + 1.0656622471287847, + 1.0663176653906703, + 1.0670736664906144, + 1.0675096418708563, + 1.4197991695255041, + 1.4201068552210927, + 1.420543878339231, + 1.420565415173769 + ], + "raw_time_brier": 0.000983522966273234, + "raw_timepoint_brier": [ + 2.112472685666944e-07, + 0.00035337734152562916, + 0.0007095578475855291, + 0.0007097658235579729, + 0.0010653077624738216, + 0.0010656622471287847, + 0.0010663176653906703, + 0.0010670736664906144, + 0.0010675096418708563, + 0.0014197991695255041, + 0.0014201068552210927, + 0.001420543878339231, + 0.001420565415173769 + ], + "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.28664710220464956, + "normalized_timepoint_brier": [ + 0.0032699870189389912, + 0.0054338329391612206, + 0.00848908348416444, + 0.36108234780840576, + 0.36326414556242526, + 0.36485912278294563, + 0.36764403921552, + 0.3691075835376978, + 0.37253464688546956, + 0.3741671098396182, + 0.3745799185708165, + 0.3809322079177946, + 0.3810483030974865 + ], + "raw_time_brier": 0.0002866471022046496, + "raw_timepoint_brier": [ + 3.2699870189389912e-06, + 5.4338329391612206e-06, + 8.489083484164439e-06, + 0.00036108234780840576, + 0.00036326414556242526, + 0.00036485912278294563, + 0.00036764403921552, + 0.0003691075835376978, + 0.00037253464688546956, + 0.0003741671098396182, + 0.0003745799185708165, + 0.0003809322079177946, + 0.0003810483030974865 + ], + "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.9593704061654325, + "normalized_timepoint_brier": [ + 0.3543964703567326, + 0.708836829289794, + 0.7100672228261828, + 1.0650006588548422, + 1.0656032245606184, + 1.0681692510843277, + 1.0688125621527433, + 1.0693316580727696, + 1.0696799727156758, + 1.072152517735958, + 1.0723401792347431, + 1.0736874537542462, + 1.0737372795119882 + ], + "raw_time_brier": 0.0009593704061654324, + "raw_timepoint_brier": [ + 0.0003543964703567326, + 0.000708836829289794, + 0.0007100672228261828, + 0.0010650006588548422, + 0.0010656032245606184, + 0.0010681692510843277, + 0.0010688125621527433, + 0.0010693316580727696, + 0.0010696799727156758, + 0.001072152517735958, + 0.0010723401792347431, + 0.0010736874537542462, + 0.0010737372795119882 + ], + "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.432601642794907, + "normalized_timepoint_brier": [ + 1.0684784501791, + 1.780041609890759, + 2.135775052011013, + 2.491160063073039, + 2.4911491200327873, + 2.4910883512347937, + 2.490714658051729, + 2.4906322360038757, + 2.838615095242858, + 2.8377592097967863, + 2.8372500091791153, + 2.835623687133193, + 2.8355338145047426 + ], + "raw_time_brier": 0.002432601642794907, + "raw_timepoint_brier": [ + 0.0010684784501791, + 0.001780041609890759, + 0.002135775052011013, + 0.002491160063073039, + 0.0024911491200327873, + 0.0024910883512347937, + 0.002490714658051729, + 0.0024906322360038757, + 0.002838615095242858, + 0.0028377592097967863, + 0.0028372500091791153, + 0.002835623687133193, + 0.0028355338145047426 + ], + "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.9721149484970921, + "normalized_timepoint_brier": [ + 1.8252969020977616, + 2.5391713716089725, + 2.536603482440114, + 2.502067961835688, + 2.1472470968465447, + 2.0933989730100926, + 1.9040853169618852, + 1.8211624441505956, + 1.6930538057917806, + 1.7589236493504814, + 1.6510909512834269, + 1.595937705884767, + 1.5694546692000841 + ], + "raw_time_brier": 0.0028610136628580782, + "raw_timepoint_brier": [ + 0.0018252969020977616, + 0.0025391713716089725, + 0.002536603482440114, + 0.002889667171984911, + 0.0028864627238363028, + 0.0028862140607088804, + 0.002886910689994693, + 0.00288673909381032, + 0.002887510694563389, + 0.003241603495553136, + 0.003241468919441104, + 0.0032427695114165545, + 0.0032427594996988773 + ], + "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.177182182890303, + "normalized_timepoint_brier": [ + 2.026770759574636, + 2.17662521826006, + 2.2077219273067783, + 2.1527817825545665, + 2.1598949326074197, + 2.078351233529103, + 2.135785001899921, + 2.1470768253037233, + 2.1952710156736095, + 2.27389877988733, + 2.2474187844100912, + 2.2587289327423496, + 2.2430431838243594 + ], + "raw_time_brier": 0.02234687964217021, + "raw_timepoint_brier": [ + 0.0071165431290864944, + 0.012783036567270756, + 0.015855902805924416, + 0.017658144235610962, + 0.019870590418577194, + 0.020810415968298912, + 0.02333291806280613, + 0.024672746658325195, + 0.02637927606701851, + 0.028980333358049393, + 0.029913118109107018, + 0.031565289944410324, + 0.03157112002372742 + ], + "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.4517406038788623, + "normalized_timepoint_brier": [ + 1.7744525753425726, + 1.6813883934557874, + 1.4048183590908963, + 1.3004514169471566, + 1.1726469733298963, + 1.379525368110627, + 1.5755858361500725, + 1.4797334452617281, + 1.4269899628883786, + 1.4829191358657154, + 1.442374382086076, + 1.3828742695884615, + 1.368867732307842 + ], + "raw_time_brier": 0.0034277426759497477, + "raw_timepoint_brier": [ + 0.0021474515087902546, + 0.002513936487957835, + 0.0025240748655050993, + 0.0025322858709841967, + 0.0025388849899172783, + 0.0032407273538410664, + 0.003938457928597927, + 0.003946055192500353, + 0.003948426339775324, + 0.004301524721086025, + 0.004304042551666498, + 0.004311342723667622, + 0.0043134442530572414 + ], + "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.482204848987276, + "normalized_timepoint_brier": [ + 1.7815501196309924, + 2.134057227522135, + 2.4854696821421385, + 2.8323056176304817, + 2.5877988820849405, + 2.7052975925579714, + 2.6288781317494734, + 2.7332009851363677, + 2.5045453100101636, + 2.661766838893876, + 2.489131540586821, + 2.3867382471451624, + 2.3379228617440586 + ], + "raw_time_brier": 0.0031593024927692916, + "raw_timepoint_brier": [ + 0.0017815501196309924, + 0.0021340572275221348, + 0.0024854696821421385, + 0.0028323056176304817, + 0.002828950062394142, + 0.0031845886260271072, + 0.0031830049119889736, + 0.003538653953000903, + 0.00353683577850461, + 0.003893003100529313, + 0.0038912210147827864, + 0.0038912578020244837, + 0.0038900345098227262 + ], + "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.0675293357959104, + "normalized_timepoint_brier": [ + 0.8103436114193387, + 1.0974694698700582, + 1.103130939270979, + 1.1145468307470403, + 1.1639914169611665, + 1.1293718888233777, + 1.1401880951161047, + 1.1086589795593635, + 1.099083409039604, + 1.0682398759528975, + 1.0319478604744599, + 1.0083745849756585, + 1.0025344031367835 + ], + "raw_time_brier": 0.026336130650284197, + "raw_timepoint_brier": [ + 0.007024503778666258, + 0.014579844661056995, + 0.018464302644133568, + 0.021720444783568382, + 0.025844285264611244, + 0.027806416153907776, + 0.030308328568935394, + 0.031166749075055122, + 0.032454170286655426, + 0.032833751291036606, + 0.03284788876771927, + 0.03365665674209595, + 0.033662356436252594 + ], + "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.7162371115817476, + "normalized_timepoint_brier": [ + 1.8811715184960787, + 1.7083695614605507, + 1.9916065692834573, + 2.032163744123201, + 1.8016412903991321, + 1.7079801034018542, + 1.5975510287091776, + 1.659223563354458, + 1.5548883329707848, + 1.6558963536585678, + 1.5961844709221824, + 1.5350440005195742, + 1.5893619132637014 + ], + "raw_time_brier": 0.005757677798660902, + "raw_timepoint_brier": [ + 0.002164216246455908, + 0.0032250238582491875, + 0.004680828657001257, + 0.005401840899139643, + 0.005404128227382898, + 0.0057635498233139515, + 0.005772010888904333, + 0.006504002958536148, + 0.0065184663981199265, + 0.0072515010833740234, + 0.007260638754814863, + 0.007269188761711121, + 0.007634414825588465 + ], + "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.2631680478640182, + "normalized_timepoint_brier": [ + 0.7065110257826746, + 1.3772515812888741, + 1.7309834947809577, + 1.646660227433603, + 1.4637094115175895, + 1.3360019431276304, + 1.2585239385264402, + 1.1904433548685218, + 1.2784340099175449, + 1.204218307153054, + 1.1390514347438798, + 1.044520926479475, + 1.0448749666119876 + ], + "raw_time_brier": 0.0017446669024558594, + "raw_timepoint_brier": [ + 0.0007065110257826746, + 0.0013772515812888741, + 0.0017309834947809577, + 0.0017334675649181008, + 0.0017361363861709833, + 0.0017402064986526966, + 0.001743739820085466, + 0.0017484361305832863, + 0.0020265700295567513, + 0.0020289793610572815, + 0.0020329006947577, + 0.0020373982843011618, + 0.002038088859990239 + ], + "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.344367542089178, + "normalized_timepoint_brier": [ + 1.0780725860968232, + 1.7816134495660663, + 1.7799981869757175, + 2.1321082022041082, + 2.4717359337955713, + 2.4715731851756573, + 2.469451865181327, + 2.471285406500101, + 2.4723331443965435, + 2.8351591899991035, + 2.83746886998415, + 2.8379291761666536, + 2.8380488511174917 + ], + "raw_time_brier": 0.002344367542089178, + "raw_timepoint_brier": [ + 0.0010780725860968232, + 0.0017816134495660663, + 0.0017799981869757175, + 0.0021321082022041082, + 0.0024717359337955713, + 0.0024715731851756573, + 0.002469451865181327, + 0.002471285406500101, + 0.0024723331443965435, + 0.0028351591899991035, + 0.00283746886998415, + 0.0028379291761666536, + 0.0028380488511174917 + ], + "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.7136542974341145, + "normalized_timepoint_brier": [ + 0.3586535167414695, + 0.876804395821785, + 0.8632331863917367, + 0.7437776205557722, + 0.6637796991439221, + 0.5953814506330946, + 0.6861426151719825, + 0.7555255359451382, + 0.7066351765123966, + 0.6809157283817557, + 0.6410570957222581, + 0.8088912304040777, + 0.8967086152180983 + ], + "raw_time_brier": 0.0018305930582125885, + "raw_timepoint_brier": [ + 0.0003586535167414695, + 0.0010796117130666971, + 0.0014407553244382143, + 0.0014415702316910028, + 0.0014427194837480783, + 0.0014441232196986675, + 0.001802605576813221, + 0.0021622925996780396, + 0.002164479112252593, + 0.0021656693425029516, + 0.002167803468182683, + 0.0028846492059528828, + 0.0032427769619971514 + ], + "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.9401203946056286, + "normalized_timepoint_brier": [ + 0.0008523845167474065, + 0.3599491610657424, + 0.35725485104228405, + 0.3098867243093606, + 0.5717614318180683, + 0.9869364153412697, + 1.2878087840444643, + 1.3291447603007198, + 1.4678446339717681, + 1.3750767690629706, + 1.465958652461376, + 1.3639611131511844, + 1.3451294487872159 + ], + "raw_time_brier": 0.0017825107849314637, + "raw_timepoint_brier": [ + 8.523845167474065e-07, + 0.0003599491610657424, + 0.00036430192994885147, + 0.00036768612335436046, + 0.0007260719430632889, + 0.0014341124333441257, + 0.002128927269950509, + 0.002485044067725539, + 0.0028421147726476192, + 0.002845355309545994, + 0.0032038637436926365, + 0.0032070274464786053, + 0.00320733361877501 + ], + "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.512128374512168, + "normalized_timepoint_brier": [ + 2.183436881750822, + 2.924371976405382, + 3.657348916767597, + 4.228991366116744, + 3.9731026326111705, + 3.9550825605390796, + 3.7771735223798766, + 3.45552423963954, + 3.7442338285839027, + 3.566059656905418, + 3.4738748352115194, + 3.3022119175293367, + 3.4162565342178026 + ], + "raw_time_brier": 0.006782934392014375, + "raw_timepoint_brier": [ + 0.002183436881750822, + 0.002924371976405382, + 0.003972893580794334, + 0.006122454069554806, + 0.006503602024167776, + 0.0072223651222884655, + 0.007611608598381281, + 0.007616580463945866, + 0.00870414450764656, + 0.008718335069715977, + 0.008731291629374027, + 0.008753071539103985, + 0.009113991633057594 + ], + "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.9426032208765035, + "normalized_timepoint_brier": [ + 0.7396894422432853, + 1.088884616408927, + 1.0251585195646404, + 1.1351658465576164, + 1.0031409891058845, + 0.8850539485475449, + 0.9669055562755348, + 1.0219871211136808, + 0.9568919709365731, + 0.9047581078757718, + 0.8675916343776252, + 0.8335983893325164, + 0.8250157290549454 + ], + "raw_time_brier": 0.004302842005227621, + "raw_timepoint_brier": [ + 0.0010991296730935574, + 0.0025553926825523376, + 0.002916238736361265, + 0.004009404219686985, + 0.004007205832749605, + 0.004004287533462048, + 0.004720877390354872, + 0.00544342864304781, + 0.005439545027911663, + 0.005436871666461229, + 0.005435487721115351, + 0.0054346597753465176, + 0.00543441716581583 + ], + "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.6958209385987943, + "normalized_timepoint_brier": [ + 0.3569803957361728, + 1.0658433893695474, + 1.065918244421482, + 1.0655998485162854, + 1.4221237506717443, + 1.4231506502255797, + 1.7761483322829008, + 1.7762734787538648, + 2.133214846253395, + 2.488993341103196, + 2.489221515133977, + 2.491078805178404, + 2.4911256041377783 + ], + "raw_time_brier": 0.0016958209385987944, + "raw_timepoint_brier": [ + 0.0003569803957361728, + 0.0010658433893695474, + 0.001065918244421482, + 0.0010655998485162854, + 0.0014221237506717443, + 0.0014231506502255797, + 0.0017761483322829008, + 0.0017762734787538648, + 0.002133214846253395, + 0.002488993341103196, + 0.002489221515133977, + 0.002491078805178404, + 0.0024911256041377783 + ], + "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.538802422363816, + "normalized_timepoint_brier": [ + 1.677021023225231, + 1.6045559125515656, + 1.598959515467905, + 1.7150033331526107, + 1.6786190591699817, + 1.6017779891038404, + 1.5708773080135352, + 1.4898366479084, + 1.469090996290115, + 1.4244562997426367, + 1.422830130713303, + 1.381746658889863, + 1.369656616500619 + ], + "raw_time_brier": 0.02820505130176361, + "raw_timepoint_brier": [ + 0.009814080782234669, + 0.015230334363877773, + 0.01970026083290577, + 0.024641163647174835, + 0.02741432934999466, + 0.02905432879924774, + 0.031322650611400604, + 0.03209990635514259, + 0.03371196985244751, + 0.034553755074739456, + 0.036137714982032776, + 0.03649233654141426, + 0.036492835730314255 + ], + "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.0002961336456053232, + "normalized_timepoint_brier": [ + 2.45633557938163e-05, + 5.9156047171882165e-05, + 8.651438321294336e-05, + 0.0001413445858133855, + 0.00020826092850256828, + 0.00023336490073688765, + 0.0002702666961340583, + 0.0003456308377280948, + 0.00038355832998604455, + 0.0004623244365120627, + 0.0004958327508575167, + 0.0005678421644006448, + 0.0005710779760192963 + ], + "raw_time_brier": 2.961336456053232e-07, + "raw_timepoint_brier": [ + 2.45633557938163e-08, + 5.9156047171882165e-08, + 8.651438321294336e-08, + 1.413445858133855e-07, + 2.0826092850256828e-07, + 2.3336490073688765e-07, + 2.702666961340583e-07, + 3.456308377280948e-07, + 3.8355832998604455e-07, + 4.623244365120627e-07, + 4.958327508575167e-07, + 5.678421644006448e-07, + 5.710779760192963e-07 + ], + "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.443316649146939, + "normalized_timepoint_brier": [ + 2.5013762060552835, + 2.459004949541124, + 2.5710186139132705, + 2.5020734336749815, + 2.5406994586013294, + 2.479716232122509, + 2.654523755619431, + 2.53433299094361, + 2.3908239104745577, + 2.3598856568680238, + 2.2943487268857283, + 2.2442648782870815, + 2.231047625923272 + ], + "raw_time_brier": 0.009519754210487008, + "raw_timepoint_brier": [ + 0.0025013762060552835, + 0.0045355819165706635, + 0.00693393312394619, + 0.00796019472181797, + 0.009354106150567532, + 0.00970788486301899, + 0.011142724193632603, + 0.011144275777041912, + 0.011507253162562847, + 0.011828354559838772, + 0.012185691855847836, + 0.012477499432861805, + 0.012477928772568703 + ], + "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.266371521021788, + "normalized_timepoint_brier": [ + 2.8602704405784607, + 3.2055191695690155, + 3.5480575170367956, + 3.5409401170909405, + 3.6122201157688982, + 3.555578191002775, + 3.364531068862356, + 3.6779385725966405, + 3.3425247558442535, + 3.031677217012909, + 2.8554269390347624, + 2.9478046650443512, + 2.920341003841083 + ], + "raw_time_brier": 0.004300356502286517, + "raw_timepoint_brier": [ + 0.0028602704405784607, + 0.0032055191695690155, + 0.0035480575170367956, + 0.0035409401170909405, + 0.00388805428519845, + 0.004244656302034855, + 0.004242512863129377, + 0.004946428816765547, + 0.004944538697600365, + 0.004942274186760187, + 0.004942367784678936, + 0.005299766082316637, + 0.005299248266965151 + ], + "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.9811399594092598, + "normalized_timepoint_brier": [ + 0.35439920611679554, + 0.7092291489243507, + 1.061312505044043, + 1.0613745544105768, + 1.0618551168590784, + 1.0621256660670042, + 1.0626200819388032, + 1.0627215960994363, + 1.0630988981574774, + 1.0634582722559571, + 1.064102165400982, + 1.0642444249242544, + 1.0642778361216187 + ], + "raw_time_brier": 0.0009811399594092597, + "raw_timepoint_brier": [ + 0.00035439920611679554, + 0.0007092291489243507, + 0.001061312505044043, + 0.0010613745544105768, + 0.0010618551168590784, + 0.0010621256660670042, + 0.0010626200819388032, + 0.0010627215960994363, + 0.0010630988981574774, + 0.0010634582722559571, + 0.001064102165400982, + 0.0010642444249242544, + 0.0010642778361216187 + ], + "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.784354099150409, + "normalized_timepoint_brier": [ + 0.8357469398178669, + 0.7449637848887918, + 0.7528963895577829, + 0.7806692100693302, + 0.7593030411511658, + 0.7530739058352024, + 0.7714798810785902, + 0.8124068837042177, + 0.7886763851596459, + 0.781192335062511, + 0.7752963388573328, + 0.8175243899140902, + 0.8233738038587873 + ], + "raw_time_brier": 0.017915057555700723, + "raw_timepoint_brier": [ + 0.005843073595315218, + 0.008136683143675327, + 0.011117267422378063, + 0.014135547913610935, + 0.015504902228713036, + 0.017056958749890327, + 0.0188997033983469, + 0.021346963942050934, + 0.022073743864893913, + 0.022852450609207153, + 0.02362983487546444, + 0.02597414329648018, + 0.026324475184082985 + ], + "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.00852536636295134, + "normalized_timepoint_brier": [ + 0.00021044348841314786, + 0.0012560126378957648, + 0.0019151659671479138, + 0.003108976216026349, + 0.006065863090043422, + 0.007112552793842042, + 0.008322976100316737, + 0.009927922292263247, + 0.011610446563281585, + 0.012053388672939036, + 0.014140709026833065, + 0.01718363637337461, + 0.0179216694959905 + ], + "raw_time_brier": 8.52536636295134e-06, + "raw_timepoint_brier": [ + 2.1044348841314786e-07, + 1.2560126378957648e-06, + 1.9151659671479138e-06, + 3.108976216026349e-06, + 6.065863090043422e-06, + 7.112552793842042e-06, + 8.322976100316737e-06, + 9.927922292263247e-06, + 1.1610446563281585e-05, + 1.2053388672939036e-05, + 1.4140709026833065e-05, + 1.718363637337461e-05, + 1.79216694959905e-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.2629866970085515, + "normalized_timepoint_brier": [ + 1.2848732177007263, + 1.9728617728352937, + 2.355809752088462, + 2.3293358630313192, + 2.373136938647662, + 2.368318470783001, + 2.4896804226229032, + 2.382721010558167, + 2.325121184445478, + 2.3614306456004486, + 2.4098772557761294, + 2.379697658346416, + 2.3859628686751617 + ], + "raw_time_brier": 0.011404779999373624, + "raw_timepoint_brier": [ + 0.0014622454764321446, + 0.004350508097559214, + 0.006865993142127991, + 0.008674873039126396, + 0.010355321690440178, + 0.01140877977013588, + 0.013162214308977127, + 0.013514036312699318, + 0.013888003304600716, + 0.014932917430996895, + 0.015964874997735023, + 0.016679726541042328, + 0.017002645879983902 + ], + "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.401009112530872, + "normalized_timepoint_brier": [ + 1.5395126292122954, + 1.3505984383757248, + 1.48830272963278, + 1.4589097417095496, + 1.4469049005046617, + 1.3888582326790408, + 1.3850458562705972, + 1.3850221236060207, + 1.3280122935141287, + 1.298938807816625, + 1.3193774300889336, + 1.4152659638527025, + 1.4083693156382717 + ], + "raw_time_brier": 0.013789542646218952, + "raw_timepoint_brier": [ + 0.0033646535594016314, + 0.006334027741104364, + 0.009599235840141773, + 0.011382866650819778, + 0.012740811333060265, + 0.013451988808810711, + 0.014894182793796062, + 0.01596132479608059, + 0.016309434548020363, + 0.016954664140939713, + 0.01798802614212036, + 0.02014216221868992, + 0.020140675827860832 + ], + "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.13666899818787215, + "normalized_timepoint_brier": [ + 6.821395714950995e-05, + 0.0002483501191363757, + 0.0005105120521875506, + 0.0007871121283642424, + 0.0009955433597497176, + 0.0011659125220830902, + 0.0014056199688639026, + 0.0014984802874096204, + 0.35358130116946995, + 0.3538542368914932, + 0.3541201585903764, + 0.3542269114404917, + 0.3542346239555627 + ], + "raw_time_brier": 0.00013666899818787215, + "raw_timepoint_brier": [ + 6.821395714950995e-08, + 2.483501191363757e-07, + 5.105120521875506e-07, + 7.871121283642424e-07, + 9.955433597497176e-07, + 1.1659125220830902e-06, + 1.4056199688639026e-06, + 1.4984802874096204e-06, + 0.00035358130116946995, + 0.0003538542368914932, + 0.0003541201585903764, + 0.0003542269114404917, + 0.0003542346239555627 + ], + "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.4161001931911354, + "normalized_timepoint_brier": [ + 0.00018032828563718795, + 0.3524821950122714, + 1.057000015862286, + 1.4089064206928015, + 1.408684067428112, + 1.4085135189816356, + 1.7611568327993155, + 1.7609483329579234, + 1.7606657929718494, + 1.7369485610979636, + 1.956907991920947, + 1.8984572596726073, + 1.8984511938014106 + ], + "raw_time_brier": 0.0014629821974370299, + "raw_timepoint_brier": [ + 1.8032828563718795e-07, + 0.0003524821950122714, + 0.001057000015862286, + 0.0014089064206928015, + 0.001408684067428112, + 0.0014085135189816356, + 0.0017611568327993155, + 0.0017609483329579234, + 0.0017606657929718494, + 0.0017604619497433305, + 0.002113325521349907, + 0.002113225171342492, + 0.002113218419253826 + ], + "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.006063959099369668, + "normalized_timepoint_brier": [ + 0.0004151881967118243, + 0.0018770372207654873, + 0.003050869281651103, + 0.004454841725174445, + 0.00562657017118327, + 0.006120399519698396, + 0.006442523116055249, + 0.007479345944118922, + 0.007935877473359236, + 0.008399126709112017, + 0.008833333782883054, + 0.00905871282225931, + 0.009137642328833372 + ], + "raw_time_brier": 1.0051354243282381e-05, + "raw_timepoint_brier": [ + 4.151881967118243e-07, + 1.8770372207654873e-06, + 3.050869281651103e-06, + 4.759327111969469e-06, + 7.228853974083904e-06, + 8.475409231323283e-06, + 9.457977284910157e-06, + 1.1976418136327993e-05, + 1.3630997273139656e-05, + 1.5264509784174152e-05, + 1.7227843272848986e-05, + 1.84198343049502e-05, + 1.8883340089814737e-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.221090291000351, + "normalized_timepoint_brier": [ + 1.06869637966156, + 1.0686973109841347, + 1.4250739477574825, + 1.42530701123178, + 1.3513335120683048, + 1.1513092336468023, + 1.2816531324528082, + 1.2088976487096397, + 1.1321124094595882, + 1.2882602588405896, + 1.2036685233514361, + 1.139573915182795, + 1.1295904996576427 + ], + "raw_time_brier": 0.0016701744708160942, + "raw_timepoint_brier": [ + 0.00106869637966156, + 0.0010686973109841347, + 0.0014250739477574825, + 0.00142530701123178, + 0.0014256280846893787, + 0.001426122267730534, + 0.0017800823552533984, + 0.0017801333451643586, + 0.001780335558578372, + 0.0021330437157303095, + 0.0021330351009964943, + 0.0021330458112061024, + 0.0021330672316253185 + ], + "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.7834682828720231, + "normalized_timepoint_brier": [ + 1.0784374317154288, + 0.8409200313006422, + 0.8231736672230501, + 0.6943242337501114, + 0.5849991940369985, + 0.546617666411651, + 0.637624878400381, + 0.5937541334693863, + 0.824018551377232, + 0.7684632910479393, + 0.9580519204405784, + 0.9206069663717891, + 0.9140957117911109 + ], + "raw_time_brier": 0.0025773419049353553, + "raw_timepoint_brier": [ + 0.0010784374317154288, + 0.0014346451498568058, + 0.0017957243835553527, + 0.0017974656075239182, + 0.0018013842636719346, + 0.0018036516848951578, + 0.0021581293549388647, + 0.0021603633649647236, + 0.003248353023082018, + 0.003249682020395994, + 0.004324938170611858, + 0.004326310008764267, + 0.004326360300183296 + ], + "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.5831947996093558, + "normalized_timepoint_brier": [ + 1.0722092119976878, + 1.0733369272202253, + 1.9763658341608583, + 1.7857086200563905, + 1.8543285650599823, + 1.5928252333868624, + 1.635058858808412, + 1.5870451340135863, + 1.5520474320154636, + 1.5766973013924308, + 1.6001307633307411, + 1.5886157680854678, + 1.6871627453935192 + ], + "raw_time_brier": 0.0034128327298766146, + "raw_timepoint_brier": [ + 0.0010722092119976878, + 0.0010733369272202253, + 0.0024973154067993164, + 0.0028568622656166553, + 0.0032158170361071825, + 0.0032173101790249348, + 0.003577188355848193, + 0.0035788496024906635, + 0.003943081013858318, + 0.004296638537198305, + 0.00465564476326108, + 0.005021384917199612, + 0.005361187271773815 + ], + "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.6913883668519086, + "normalized_timepoint_brier": [ + 0.35598583053797483, + 0.712258683051914, + 0.7128386059775949, + 0.7134184124879539, + 0.7139371009543538, + 0.6863943962875367, + 0.6263432726969279, + 0.561021111992119, + 0.5332873759816288, + 0.7261316000842447, + 0.9253167979919263, + 0.8605511300808447, + 0.8605644509497928 + ], + "raw_time_brier": 0.0008789636552906954, + "raw_timepoint_brier": [ + 0.00035598583053797483, + 0.000712258683051914, + 0.0007128386059775949, + 0.0007134184124879539, + 0.0007139371009543538, + 0.0007142527610994875, + 0.0007147294236347079, + 0.0007153846672736108, + 0.0007158083608374, + 0.001072013401426375, + 0.0014280384639278054, + 0.0014289198443293571, + 0.0014289419632405043 + ], + "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.754216262371396, + "normalized_timepoint_brier": [ + 0.3583487996365875, + 0.7131514721550047, + 1.783353858627379, + 1.7823455855250359, + 1.7818677006289363, + 1.78144418168813, + 2.3527238135086437, + 2.2803739737454136, + 2.2123284261629874, + 2.0580275597025763, + 1.9496114629604275, + 1.8756100004277587, + 1.875624576059271 + ], + "raw_time_brier": 0.0019701639785825345, + "raw_timepoint_brier": [ + 0.0003583487996365875, + 0.0007131514721550047, + 0.001783353858627379, + 0.0017823455855250359, + 0.0017818677006289363, + 0.00178144418168813, + 0.0024881791323423386, + 0.0024880338460206985, + 0.0024880191776901484, + 0.002486944431439042, + 0.0024869097396731377, + 0.0024867572356015444, + 0.0024867765605449677 + ], + "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.628784097601528, + "normalized_timepoint_brier": [ + 0.00017389160689162964, + 0.7087129633873701, + 0.7089964929036796, + 1.4132000505924225, + 1.764897140674293, + 1.7645518528297544, + 2.117093186825514, + 2.116679912433028, + 2.1161523181945086, + 2.1162587217986584, + 2.116068033501506, + 2.115708077326417, + 2.11570062674582 + ], + "raw_time_brier": 0.0016287840976015279, + "raw_timepoint_brier": [ + 1.7389160689162964e-07, + 0.0007087129633873701, + 0.0007089964929036796, + 0.0014132000505924225, + 0.001764897140674293, + 0.0017645518528297544, + 0.002117093186825514, + 0.0021166799124330282, + 0.0021161523181945086, + 0.0021162587217986584, + 0.002116068033501506, + 0.002115708077326417, + 0.00211570062674582 + ], + "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.7695553136447337, + "normalized_timepoint_brier": [ + 0.37311186315491796, + 1.4630357036367059, + 1.7146173348693963, + 2.3039632269011094, + 2.1146669486086616, + 1.8185525372878155, + 1.7214793927774366, + 2.0661076947883448, + 1.9612775753820884, + 1.868918822823139, + 1.9129964633849612, + 1.7958408048628176, + 1.8896507089041457 + ], + "raw_time_brier": 0.003327697322954639, + "raw_timepoint_brier": [ + 0.00037311186315491796, + 0.0014630357036367059, + 0.001846994855441153, + 0.0029074382036924362, + 0.0029167889151722193, + 0.0029354928992688656, + 0.0032984381541609764, + 0.00433950824663043, + 0.00434962147846818, + 0.0043635498732328415, + 0.004722118377685547, + 0.004732553847134113, + 0.005011412780731916 + ], + "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.9395656944324697, + "normalized_timepoint_brier": [ + 2.3283688299831864, + 2.296749415307206, + 2.0423874278446044, + 1.9341919340019151, + 1.961912427319832, + 1.9252267380285555, + 1.8424380247377383, + 1.8534961688107354, + 1.867366289833758, + 1.8346001927987279, + 1.7566890075999935, + 1.7905465574339159, + 1.780381013921935 + ], + "raw_time_brier": 0.021212496149998445, + "raw_timepoint_brier": [ + 0.009284304454922676, + 0.014534121379256248, + 0.015764981508255005, + 0.017672725021839142, + 0.02016531489789486, + 0.021458685398101807, + 0.022077526897192, + 0.02336297370493412, + 0.02453518472611904, + 0.025794630870223045, + 0.02579161711037159, + 0.027659988030791283, + 0.027660395950078964 + ], + "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.221588322008039, + "normalized_timepoint_brier": [ + 2.5709647020975686, + 3.2241787933400707, + 3.2271046783633635, + 3.17240206561512, + 2.956144878846371, + 3.0984269371091115, + 3.2292098429495044, + 3.3782985039326063, + 3.29955898772957, + 3.3813395955603, + 3.406896252457335, + 3.482745987290995, + 3.453376960812589 + ], + "raw_time_brier": 0.013195427116723014, + "raw_timepoint_brier": [ + 0.0029685974586755037, + 0.006232305895537138, + 0.008036036975681782, + 0.009880820289254189, + 0.010253588669002056, + 0.011685775592923164, + 0.013807644136250019, + 0.015464486554265022, + 0.01620873063802719, + 0.017290320247411728, + 0.01896161213517189, + 0.02037510648369789, + 0.020375527441501617 + ], + "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.2361174734119698, + "normalized_timepoint_brier": [ + 3.1062925700098276, + 2.139778085871826, + 1.8590073458087997, + 2.3118622293734146, + 2.1258483369469396, + 2.1355407303531586, + 2.0998877090866515, + 2.1079146757712466, + 2.276466476265962, + 2.2551521632922653, + 2.2369307347592478, + 2.2112907109227082, + 2.203555385893558 + ], + "raw_time_brier": 0.0077970572747290134, + "raw_timepoint_brier": [ + 0.0031062925700098276, + 0.003848847234621644, + 0.004210151266306639, + 0.006141186226159334, + 0.006558374036103487, + 0.007183933164924383, + 0.007883436046540737, + 0.008658282458782196, + 0.009773330762982368, + 0.010518001392483711, + 0.010888400487601757, + 0.01129490602761507, + 0.01129660289734602 + ], + "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.175697610649521, + "normalized_timepoint_brier": [ + 1.4904421987012029, + 1.8484635997389933, + 2.0476436392407895, + 2.435601757220501, + 2.446175131822237, + 2.3565633188544703, + 2.3244815543751125, + 2.282873735244324, + 2.2746740964882095, + 2.2617681706431565, + 2.1876432106367956, + 2.16746584311798, + 2.1602726823600036 + ], + "raw_time_brier": 0.006987726145710509, + "raw_timepoint_brier": [ + 0.0014904421987012029, + 0.002647852059453726, + 0.004102540668100119, + 0.005900765769183636, + 0.006540555041283369, + 0.0071670594625175, + 0.007690506521612406, + 0.008087783120572567, + 0.008704237639904022, + 0.009030776098370552, + 0.009571309201419353, + 0.009952164255082607, + 0.009954447858035564 + ], + "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.6199375163074388, + "normalized_timepoint_brier": [ + 0.41672546649351716, + 0.8340217173099518, + 1.6621410613879561, + 2.90479464456439, + 3.3015412943353, + 3.14640194700258, + 3.0038917934453986, + 3.232808787151205, + 3.1730167960481888, + 3.1064536447665065, + 3.067630048909364, + 3.1274360691582084, + 3.0823244414241406 + ], + "raw_time_brier": 0.0033682739639726397, + "raw_timepoint_brier": [ + 0.00041672546649351716, + 0.0008340217173099518, + 0.0016621410613879561, + 0.00290479464456439, + 0.003318173810839653, + 0.0033197731245309114, + 0.003320351243019104, + 0.003735664766281843, + 0.004144416190683842, + 0.0045249806717038155, + 0.004929518327116966, + 0.005338555201888084, + 0.00533844530582428 + ], + "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.5694136518463595, + "normalized_timepoint_brier": [ + 1.1199612636119127, + 1.1107458048681358, + 1.393830802824698, + 1.2724901817542784, + 1.3634121965925812, + 1.5391837266554171, + 1.7996959734957523, + 1.8303303743014931, + 1.7288832485345351, + 1.7495609209254555, + 1.8329278317021227, + 1.8363476059299102, + 1.8250075428063832 + ], + "raw_time_brier": 0.005600577005400107, + "raw_timepoint_brier": [ + 0.0011199612636119127, + 0.001890161307528615, + 0.0030234074220061302, + 0.0034428006038069725, + 0.004183279816061258, + 0.005279100965708494, + 0.006729105953127146, + 0.007094679865986109, + 0.007117820903658867, + 0.0074732559733092785, + 0.008239048533141613, + 0.008602769114077091, + 0.00861210934817791 + ], + "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.6320134166799205, + "normalized_timepoint_brier": [ + 0.35399460466578603, + 0.7080342038534582, + 1.0585627751424909, + 1.0581387905403972, + 1.7646308988332748, + 2.0440098742932165, + 1.8097990488065323, + 2.0264891427715943, + 2.1648238364396466, + 1.9867551073396916, + 1.897929098754795, + 2.171499490476057, + 2.1715075449220294 + ], + "raw_time_brier": 0.0020873853757690927, + "raw_timepoint_brier": [ + 0.00035399460466578603, + 0.0007080342038534582, + 0.0010585627751424909, + 0.0010581387905403972, + 0.0017646308988332748, + 0.0021170503459870815, + 0.0021160610485821962, + 0.0024709603749215603, + 0.002819563029333949, + 0.0028191793244332075, + 0.002819386078044772, + 0.003515217686071992, + 0.0035152307245880365 + ], + "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.042829613283342, + "normalized_timepoint_brier": [ + 2.9194457654927364, + 2.335498797429524, + 2.264296342351258, + 2.117492591785017, + 2.0141662608204376, + 1.9107946272504888, + 1.941017342430448, + 1.9582484318973767, + 1.8940579951946208, + 1.7997981648987815, + 1.8324571930803268, + 1.7899428854909103, + 1.7795685745615208 + ], + "raw_time_brier": 0.014352407592993516, + "raw_timepoint_brier": [ + 0.00571104884147644, + 0.008286869153380394, + 0.010414393618702888, + 0.012087734416127205, + 0.01290138904005289, + 0.0136864697560668, + 0.015323681756854057, + 0.01657516323029995, + 0.016990691423416138, + 0.016983408480882645, + 0.01862701214849949, + 0.019498612731695175, + 0.01949482411146164 + ], + "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.047135752949144, + "normalized_timepoint_brier": [ + 1.0575844207778573, + 1.5033703940359258, + 2.192377226210734, + 2.252715505691249, + 2.1085367127311776, + 2.1376291363862445, + 2.243894082668117, + 2.215056364377191, + 2.0969164404050855, + 2.1478504143592305, + 2.2750743680142094, + 2.1907520969789096, + 2.191007625702944 + ], + "raw_time_brier": 0.004990502860612021, + "raw_timepoint_brier": [ + 0.0010575844207778573, + 0.002162881661206484, + 0.0038574000354856253, + 0.0044576507061719894, + 0.004457118455320597, + 0.0048067886382341385, + 0.005537961609661579, + 0.005840224679559469, + 0.005846759770065546, + 0.006206118501722813, + 0.006879780441522598, + 0.006882732734084129, + 0.006883535534143448 + ], + "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.9663093453727667, + "normalized_timepoint_brier": [ + 1.6324537969401858, + 2.070383576762869, + 1.8636136163596737, + 1.92897813190535, + 1.9232470585403483, + 2.021695617091958, + 2.148562257352878, + 2.034424355592471, + 1.9025044044580817, + 2.001424574037078, + 1.96082548925158, + 1.996359912612167, + 2.0775486989413277 + ], + "raw_time_brier": 0.009428815271418828, + "raw_timepoint_brier": [ + 0.002196427434682846, + 0.004744496196508408, + 0.005486386828124523, + 0.006934802979230881, + 0.007933661341667175, + 0.009343493729829788, + 0.011103317141532898, + 0.011102952994406223, + 0.011095333844423294, + 0.012150158174335957, + 0.012838805094361305, + 0.013512160629034042, + 0.014132602140307426 + ], + "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.2106579488738514, + "normalized_timepoint_brier": [ + 1.4335995074361563, + 2.2908597269624265, + 2.3639921092173912, + 2.15194336183619, + 1.9758386245259136, + 2.087042374255866, + 2.4892487508914063, + 2.343392456707188, + 2.4290075753310436, + 2.314320988040181, + 2.253104752005105, + 2.3030944640997424, + 2.3031086440514588 + ], + "raw_time_brier": 0.004409424906883102, + "raw_timepoint_brier": [ + 0.0014335995074361563, + 0.0024961328599601984, + 0.0032087790314108133, + 0.0032089026644825935, + 0.003210537601262331, + 0.003914475906640291, + 0.005334647372364998, + 0.00533523503690958, + 0.005691994912922382, + 0.0056935506872832775, + 0.005693467799574137, + 0.006050581578165293, + 0.006050618831068277 + ], + "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.967898250865181, + "normalized_timepoint_brier": [ + 1.4595190295949578, + 3.6442650016397238, + 3.656022949144244, + 3.7654842675001134, + 3.4087780434857193, + 3.123863522121516, + 2.9365355959944117, + 2.9250271907511127, + 2.7365030377014086, + 2.891981257915662, + 2.686851023878486, + 2.6819928668876716, + 2.665853474632326 + ], + "raw_time_brier": 0.005318675629006555, + "raw_timepoint_brier": [ + 0.0014595190295949578, + 0.0036442650016397238, + 0.003656022949144244, + 0.004769829101860523, + 0.005134555511176586, + 0.005506045650690794, + 0.005526831839233637, + 0.00590463588014245, + 0.005944146309047937, + 0.006676794029772282, + 0.006706636864691973, + 0.007105514407157898, + 0.007107986602932215 + ], + "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.5819159530792817, + "normalized_timepoint_brier": [ + 0.7376242429018021, + 1.4759061159566045, + 1.8394665094092488, + 1.8430990166962147, + 1.7909947357571778, + 1.5846918113584967, + 1.7242256128192073, + 1.6198327089248008, + 1.5285342128081436, + 1.7199278172882442, + 1.6299090881266765, + 1.535304473982411, + 1.5353910440016363 + ], + "raw_time_brier": 0.0020514298230409622, + "raw_timepoint_brier": [ + 0.0007376242429018021, + 0.0014759061159566045, + 0.0018394665094092488, + 0.0018430990166962147, + 0.0018453913507983088, + 0.0018498405115678906, + 0.0022196390200406313, + 0.0022232085466384888, + 0.0022284090518951416, + 0.002595675876364112, + 0.0025991154834628105, + 0.002605532528832555, + 0.0026056794449687004 + ], + "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.8871121371728639, + "normalized_timepoint_brier": [ + 0.36494628875516355, + 1.441559987142682, + 1.3614293602091667, + 2.2118495582646847, + 2.444899433652137, + 2.4327608692228297, + 2.288823870126139, + 2.2515320152327747, + 2.1022442654101163, + 2.0788970287835493, + 1.8526359178027816, + 1.8562895581399526, + 1.844589630505255 + ], + "raw_time_brier": 0.0035015153407584876, + "raw_timepoint_brier": [ + 0.00036494628875516355, + 0.001441559987142682, + 0.0014425828121602535, + 0.0028720626141875982, + 0.003591916523873806, + 0.003947182092815638, + 0.00394764170050621, + 0.004305513110011816, + 0.0043060206808149815, + 0.004647718742489815, + 0.0046463911421597, + 0.0050031146965920925, + 0.005003049038350582 + ], + "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.6204599716249626, + "normalized_timepoint_brier": [ + 1.2590238368353928, + 1.6071943143191834, + 1.579015229948297, + 1.776712447924029, + 1.6379635463489912, + 1.4604607825966753, + 1.6244021196664205, + 1.6049628650823884, + 1.744956796910769, + 1.7755383737848651, + 1.6675066081298207, + 1.6776915152468663, + 1.650551194330815 + ], + "raw_time_brier": 0.005896210258540053, + "raw_timepoint_brier": [ + 0.00145965744741261, + 0.002900215331465006, + 0.003599116113036871, + 0.004682204686105251, + 0.005035995505750179, + 0.005032813176512718, + 0.006117057055234909, + 0.006475523114204407, + 0.007541453465819359, + 0.008271373808383942, + 0.008271513506770134, + 0.008632384240627289, + 0.00863142590969801 + ], + "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.5559286016589478, + "normalized_timepoint_brier": [ + 0.7228848407976329, + 1.3424491360806785, + 1.3938062862666711, + 1.236263961503305, + 1.2589493908826659, + 1.407606322125592, + 1.5468146516419776, + 1.6422738616397676, + 1.7711922736264347, + 1.8657426596444224, + 2.0998836393122216, + 1.9777191205333218, + 1.9614856775116296 + ], + "raw_time_brier": 0.0045740479433264295, + "raw_timepoint_brier": [ + 0.0007228848407976329, + 0.001807824126444757, + 0.0025325720198452473, + 0.0025368768256157637, + 0.0029004241805523634, + 0.003620441071689129, + 0.004340987652540207, + 0.005048427265137434, + 0.00577088026329875, + 0.006484659854322672, + 0.007896305061876774, + 0.007899994030594826, + 0.00790034607052803 + ], + "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.6516782645156547, + "normalized_timepoint_brier": [ + 0.00015980361922629527, + 0.000693686445174535, + 0.35371995181776583, + 0.3538735618349165, + 0.3541424230206758, + 0.3543274069670588, + 0.35437196493148804, + 0.3546650696080178, + 0.7064072415232658, + 1.059457310475409, + 1.0596455540508032, + 1.7601801082491875, + 1.7601733561605215 + ], + "raw_time_brier": 0.0006516782645156547, + "raw_timepoint_brier": [ + 1.5980361922629527e-07, + 6.93686445174535e-07, + 0.00035371995181776583, + 0.00035387356183491647, + 0.0003541424230206758, + 0.0003543274069670588, + 0.00035437196493148804, + 0.0003546650696080178, + 0.0007064072415232658, + 0.001059457310475409, + 0.0010596455540508032, + 0.0017601801082491875, + 0.0017601733561605215 + ], + "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.4231815695047116, + "normalized_timepoint_brier": [ + 1.1062236735597253, + 1.1810506851326559, + 1.3261355155663035, + 1.2471336591081696, + 1.2470270091012623, + 1.3268030253772942, + 1.374543543586563, + 1.422141694086496, + 1.6377910668216358, + 1.7285361289114243, + 1.6243530094519003, + 1.6425114706901052, + 1.637109922167713 + ], + "raw_time_brier": 0.004513336829124735, + "raw_timepoint_brier": [ + 0.0011062236735597253, + 0.0018521643942222, + 0.0025981287471950054, + 0.0029730915557593107, + 0.003353919368237257, + 0.004085299093276262, + 0.0044654663652181625, + 0.004836733918637037, + 0.0059310197830200195, + 0.0066695199348032475, + 0.00667932303622365, + 0.007059047929942608, + 0.007063440978527069 + ], + "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": 2.0198368096137767, + "normalized_timepoint_brier": [ + 2.1801899799446205, + 2.1227891913089683, + 2.0319518624989326, + 1.943720705472424, + 1.9931836197111819, + 1.9705050574450735, + 1.897717455749545, + 1.9084655463059448, + 1.9278563682137095, + 2.147897836311948, + 2.1036321752425153, + 2.018712147433607, + 2.0112565793406243 + ], + "raw_time_brier": 0.009522327938332008, + "raw_timepoint_brier": [ + 0.0029488406144082546, + 0.005105940159410238, + 0.0063887531869113445, + 0.007357920054346323, + 0.008165715262293816, + 0.009024782106280327, + 0.0094989575445652, + 0.0099575724452734, + 0.010877384804189205, + 0.012906578369438648, + 0.013774911873042583, + 0.013878257013857365, + 0.013904649764299393 + ], + "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.967472198706718, + "normalized_timepoint_brier": [ + 1.4612984377890825, + 1.7870513117000275, + 1.5188523976035153, + 1.9924175694426123, + 2.1086656140902034, + 2.165063422561621, + 2.1159564988976807, + 2.0077579900089106, + 2.164388333426891, + 2.0405131071101494, + 2.134096115512916, + 2.045806066426172, + 2.0352717186175497 + ], + "raw_time_brier": 0.004815224970046144, + "raw_timepoint_brier": [ + 0.0014612984377890825, + 0.0018246674444526434, + 0.0021913957316428423, + 0.00364384101703763, + 0.004374341573566198, + 0.0050985668785870075, + 0.005464621353894472, + 0.005466712173074484, + 0.0061957938596606255, + 0.006197874899953604, + 0.00689236493781209, + 0.00689319334924221, + 0.006893252953886986 + ], + "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.288799584162787, + "normalized_timepoint_brier": [ + 1.816439979872481, + 2.228421227433875, + 2.4314975171679705, + 2.488811762015399, + 2.373505637796218, + 2.2729349962126606, + 2.270818898987806, + 2.368088438825133, + 2.308362348602311, + 2.3177208205360817, + 2.327324901047434, + 2.283389112634041, + 2.2670789529848205 + ], + "raw_time_brier": 0.014709459528183708, + "raw_timepoint_brier": [ + 0.0028723625000566244, + 0.007027784362435341, + 0.010219438001513481, + 0.012694836594164371, + 0.013369605876505375, + 0.01418177131563425, + 0.015500074252486229, + 0.01696881838142872, + 0.017935484647750854, + 0.018705489113926888, + 0.020055027678608894, + 0.020836494863033295, + 0.02085578627884388 + ], + "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.4384362353125855, + "normalized_timepoint_brier": [ + 0.711258442606777, + 1.063816831447184, + 1.6545528669698344, + 1.4716597301392504, + 1.3944835915556095, + 1.5146924277050529, + 1.398562234033816, + 1.483968102606716, + 1.4553810065174093, + 1.586036237171618, + 1.6115198221852836, + 1.6768945836182916, + 1.6768451825067694 + ], + "raw_time_brier": 0.0022578048295914554, + "raw_timepoint_brier": [ + 0.000711258442606777, + 0.001063816831447184, + 0.001774465199559927, + 0.0017751568229869008, + 0.0017755285371094942, + 0.002131253946572542, + 0.0021317440550774336, + 0.002485294360667467, + 0.00248615606687963, + 0.0028418274596333504, + 0.003156922524794936, + 0.0035090709570795298, + 0.0035089675802737474 + ], + "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.2127732339028556, + "normalized_timepoint_brier": [ + 0.7121296366676688, + 0.7102389936335385, + 1.421595923602581, + 1.7777509056031704, + 1.777647528797388, + 2.1335002966225147, + 2.4894147645682096, + 2.8407075442373753, + 2.839112188667059, + 2.8398893773555756, + 2.83985398709774, + 3.1920867040753365, + 3.1921241898089647 + ], + "raw_time_brier": 0.0022127732339028558, + "raw_timepoint_brier": [ + 0.0007121296366676688, + 0.0007102389936335385, + 0.001421595923602581, + 0.0017777509056031704, + 0.001777647528797388, + 0.0021335002966225147, + 0.0024894147645682096, + 0.0028407075442373753, + 0.002839112188667059, + 0.0028398893773555756, + 0.00283985398709774, + 0.0031920867040753365, + 0.0031921241898089647 + ], + "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.3996459269817714, + "normalized_timepoint_brier": [ + 1.4612569939345121, + 2.1956509444862604, + 2.8011890291361823, + 2.637127574619643, + 2.579348013900407, + 2.5028354246017073, + 2.3084918697174897, + 2.376439476990365, + 2.495915341267954, + 2.4161533600574048, + 2.4151320769159343, + 2.5206768573931293, + 2.4851800877420382 + ], + "raw_time_brier": 0.004089339833276777, + "raw_timepoint_brier": [ + 0.0014612569939345121, + 0.0021956509444862604, + 0.0029095045756548643, + 0.0032766202930361032, + 0.003642979310825467, + 0.004002491943538189, + 0.004005537834018469, + 0.004364934749901295, + 0.0050926110707223415, + 0.0050936294719576836, + 0.005460118409246206, + 0.005826910492032766, + 0.005829171743243933 + ], + "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.3261568937194887, + "normalized_timepoint_brier": [ + 0.002470382469255128, + 0.7247431203722954, + 0.7308220374397933, + 1.086678239516914, + 1.0977044003084302, + 1.8163552740588784, + 1.8244647653773427, + 1.635686609221519, + 1.8489060009242764, + 1.7310677200773665, + 1.6292878892571665, + 1.555847974368915, + 1.5560052049612014 + ], + "raw_time_brier": 0.0015484837879984508, + "raw_timepoint_brier": [ + 2.470382469255128e-06, + 0.0007247431203722954, + 0.0007308220374397933, + 0.0010866782395169139, + 0.0010977044003084302, + 0.0018163552740588784, + 0.0018244647653773427, + 0.0018280281219631433, + 0.0021911682561039925, + 0.002197748050093651, + 0.0022063276264816523, + 0.002211777726188302, + 0.0022120012436062098 + ], + "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.6099406454885391, + "normalized_timepoint_brier": [ + 0.7198766688816249, + 0.722487922757864, + 0.7002936066397475, + 0.5476973279862908, + 0.46514488335213, + 0.6502384351815, + 0.5892965210719936, + 0.5439699541181334, + 0.5112002632738806, + 0.4900690286727801, + 0.5968484650717638, + 0.6982178686617876, + 0.6938874456815117 + ], + "raw_time_brier": 0.0011068602280619626, + "raw_timepoint_brier": [ + 0.0007198766688816249, + 0.000722487922757864, + 0.0007254994125105441, + 0.0007343730540014803, + 0.0007418806198984385, + 0.001103225047700107, + 0.0011094026267528534, + 0.001115957973524928, + 0.0011179136345162988, + 0.0011214157566428185, + 0.0014865705743432045, + 0.0018451641080901027, + 0.0018454155651852489 + ], + "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.596078099565276, + "normalized_timepoint_brier": [ + 1.4386503025889397, + 2.928903870312669, + 3.059839465819115, + 2.9992683839804894, + 2.727674626052279, + 2.503338475474479, + 2.5972716943508085, + 2.498666439600315, + 2.517357519641751, + 2.58077277632456, + 2.676228658444617, + 2.610487157225201, + 2.6105559245333603 + ], + "raw_time_brier": 0.0051968306517944885, + "raw_timepoint_brier": [ + 0.0014386503025889397, + 0.0032475944608449936, + 0.00433047441765666, + 0.0050608133897185326, + 0.005065996665507555, + 0.005074558779597282, + 0.005441514775156975, + 0.0054468451999127865, + 0.005786949768662453, + 0.006151209585368633, + 0.006831977982074022, + 0.0068410164676606655, + 0.006841196678578854 + ], + "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.1277812564993206, + "normalized_timepoint_brier": [ + 0.7151638274081051, + 0.683596883318865, + 1.2767554293431902, + 1.0888556631353887, + 0.9179978145429558, + 1.1795825079650326, + 1.0467319537426794, + 1.3089142324998402, + 1.4425059187738898, + 1.3360512174181403, + 1.256090068650208, + 1.2074749092871406, + 1.2014359084057322 + ], + "raw_time_brier": 0.002824053584705465, + "raw_timepoint_brier": [ + 0.0007151638274081051, + 0.0007147074211388826, + 0.001793406787328422, + 0.0017899696249514818, + 0.0017911895411089063, + 0.002502933843061328, + 0.002506586257368326, + 0.0035587262827903032, + 0.004265179391950369, + 0.004268435761332512, + 0.00426975404843688, + 0.004268722143024206, + 0.004267921671271324 + ], + "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.8484796540616681, + "normalized_timepoint_brier": [ + 0.35958303487859666, + 1.0807339567691088, + 1.0309926763777464, + 0.8889718482463838, + 0.8016948663706369, + 0.9396818950090209, + 0.8569572920026371, + 0.8246963311143463, + 0.9397012818181649, + 0.8861757199440575, + 0.8391945739985538, + 0.790856873758131, + 0.790995152514302 + ], + "raw_time_brier": 0.0013920916311550313, + "raw_timepoint_brier": [ + 0.00035958303487859666, + 0.0010807339567691088, + 0.0010815330315381289, + 0.0010826893849298358, + 0.0010846371296793222, + 0.0014455384807661176, + 0.0014478662051260471, + 0.0014489834429696202, + 0.001809416338801384, + 0.0018109778175130486, + 0.0018135682912543416, + 0.0018156733131036162, + 0.0018159907776862383 + ], + "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.2905899997243462, + "normalized_timepoint_brier": [ + 0.7094893953762949, + 0.7102502277120948, + 1.0624660644680262, + 1.7659019213169813, + 1.5789248734868668, + 1.429413302640045, + 1.373835630246395, + 1.531314123291697, + 1.4450536577509485, + 1.35310246293705, + 1.2980152709503212, + 1.2599433788085381, + 1.25995968743124 + ], + "raw_time_brier": 0.0017136150675539214, + "raw_timepoint_brier": [ + 0.0007094893953762949, + 0.0007102502277120948, + 0.0010624660644680262, + 0.0017659019213169813, + 0.0017660167068243027, + 0.0017656637355685234, + 0.0017657981952652335, + 0.0021210897248238325, + 0.002121612196788192, + 0.0021217346657067537, + 0.002121865516528487, + 0.0021225400269031525, + 0.0021225675009191036 + ], + "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.3680561256673184, + "normalized_timepoint_brier": [ + 0.21598411901451173, + 0.13406562884693193, + 0.2887398076707947, + 0.46765985206540306, + 0.4031611144337212, + 0.36403469718379106, + 0.3950882983676899, + 0.42154680565471725, + 0.3965027013878034, + 0.45007816520161914, + 0.4316415697688338, + 0.40849160349714747, + 0.4077352705821743 + ], + "raw_time_brier": 0.0023729525743804583, + "raw_timepoint_brier": [ + 0.00037401943700388074, + 0.0003968389646615833, + 0.0011346087558194995, + 0.002178468042984605, + 0.0021919957362115383, + 0.002206594916060567, + 0.002581438049674034, + 0.0029104631394147873, + 0.0029176706448197365, + 0.003485500579699874, + 0.0034876568242907524, + 0.0034914184361696243, + 0.003491709940135479 + ], + "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.2151890773743048, + "normalized_timepoint_brier": [ + 0.707982515450567, + 1.061687828041613, + 1.4154366217553616, + 1.4153626980260015, + 1.4126723883077612, + 1.3453586110904856, + 1.4693227577328458, + 1.4105545668093105, + 1.2593735864883577, + 1.1752438145132502, + 1.0904151733619856, + 1.0170272780672878, + 1.017020166221135 + ], + "raw_time_brier": 0.0015221427311189473, + "raw_timepoint_brier": [ + 0.000707982515450567, + 0.001061687828041613, + 0.0014154366217553616, + 0.0014153626980260015, + 0.001415287028066814, + 0.0014152355724945664, + 0.0017661737510934472, + 0.0017659110017120838, + 0.0017655405681580305, + 0.0017651550006121397, + 0.0017647328786551952, + 0.001764681190252304, + 0.0017646688502281904 + ], + "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.7707842543221494, + "normalized_timepoint_brier": [ + 0.7178923697210848, + 1.036320575286292, + 0.7660177577217518, + 0.6446269456987298, + 0.7671456166066483, + 0.6723217919435768, + 0.6336248759526524, + 0.9065932454152744, + 0.8591472437617474, + 0.7965387897929258, + 0.7510945317362999, + 0.7344285465420639, + 0.7344430160088925 + ], + "raw_time_brier": 0.0016334639602484037, + "raw_timepoint_brier": [ + 0.0007178923697210848, + 0.0010773363756015897, + 0.0010783914476633072, + 0.0010799337178468704, + 0.0014390593860298395, + 0.0014410004951059818, + 0.0014427751302719116, + 0.002155260881409049, + 0.0021571421530097723, + 0.002159368945285678, + 0.002161507960408926, + 0.0021626600064337254, + 0.002162702614441514 + ], + "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.3726265572656233, + "normalized_timepoint_brier": [ + 0.7072628359310329, + 0.7077295449562371, + 0.7081902003847063, + 1.3999702641740441, + 1.3988327700644732, + 1.3980526709929109, + 1.3978775823488832, + 1.3965711696073413, + 1.746493042446673, + 1.7463956028223038, + 1.7461600946262479, + 1.7453412292525172, + 1.7452682368457317 + ], + "raw_time_brier": 0.0013726265572656232, + "raw_timepoint_brier": [ + 0.0007072628359310329, + 0.0007077295449562371, + 0.0007081902003847063, + 0.0013999702641740441, + 0.0013988327700644732, + 0.0013980526709929109, + 0.0013978775823488832, + 0.0013965711696073413, + 0.001746493042446673, + 0.0017463956028223038, + 0.0017461600946262479, + 0.0017453412292525172, + 0.0017452682368457317 + ], + "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.193015527637591, + "normalized_timepoint_brier": [ + 1.4117193641141057, + 1.7390099299940243, + 1.3472552464253924, + 1.1850033733757959, + 1.2089108870009904, + 1.0649232543913625, + 1.126459522691121, + 1.19238906087, + 1.090366550118965, + 1.0412125542894908, + 0.9864360965414027, + 1.0605518109739847, + 1.0549642085020454 + ], + "raw_time_brier": 0.0024153619933013734, + "raw_timepoint_brier": [ + 0.0014117193641141057, + 0.001767993438988924, + 0.0017730408580973744, + 0.0017762912902981043, + 0.002133639995008707, + 0.0021446780301630497, + 0.002492800820618868, + 0.0028561807703226805, + 0.002864951966330409, + 0.0028739552944898605, + 0.002886604517698288, + 0.003208637936040759, + 0.0032092116307467222 + ], + "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.303075321947968, + "normalized_timepoint_brier": [ + 2.1848538890480995, + 2.2891204726153935, + 2.3562491276075392, + 2.2558886278229253, + 2.1907166974590253, + 2.1775491176178674, + 2.3259662747964502, + 2.3067039698621006, + 2.431020117030204, + 2.3477861960988244, + 2.4261390089250767, + 2.3349471174429177, + 2.3130385689971638 + ], + "raw_time_brier": 0.008945014399404708, + "raw_timepoint_brier": [ + 0.0021848538890480995, + 0.0047165206633508205, + 0.00645450409501791, + 0.007174103055149317, + 0.007893666625022888, + 0.008252044208347797, + 0.009326167404651642, + 0.00998937338590622, + 0.011431318707764149, + 0.01143647637218237, + 0.012473054230213165, + 0.012476448900997639, + 0.012476655654609203 + ], + "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.8112718236058817, + "normalized_timepoint_brier": [ + 0.3842567093670368, + 0.46818859747679664, + 0.8238144229105737, + 0.6728285054869795, + 0.6043800122340919, + 0.9693500847630125, + 1.0276593957244227, + 1.0788648604041238, + 0.9869515121946698, + 0.9533417069456654, + 0.907442478505493, + 0.8347288059348279, + 0.8347266149287675 + ], + "raw_time_brier": 0.0020448402501642704, + "raw_timepoint_brier": [ + 0.0003842567093670368, + 0.0006293096812441945, + 0.0012455596588551998, + 0.0012315313797444105, + 0.0012274879263713956, + 0.002195702400058508, + 0.0025338423438370228, + 0.002876731101423502, + 0.0028621971141546965, + 0.002860449021682143, + 0.0028588236309587955, + 0.0028385198675096035, + 0.0028385124169290066 + ], + "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.833183469921599, + "normalized_timepoint_brier": [ + 1.4356047613546252, + 2.5125674437731504, + 2.865821130984912, + 2.481725674322194, + 2.120745615061495, + 1.9284115447700452, + 1.8064258328363976, + 1.6126609812963297, + 1.4820139363166793, + 1.5066428387446966, + 1.414690782514783, + 1.2959955009541886, + 1.3680790660512911 + ], + "raw_time_brier": 0.003940635083171611, + "raw_timepoint_brier": [ + 0.0014356047613546252, + 0.0025125674437731504, + 0.003585400991141796, + 0.003941924776881933, + 0.003940627444535494, + 0.0039410279132425785, + 0.0043006958439946175, + 0.004301156848669052, + 0.0043020290322601795, + 0.004652285482734442, + 0.0046537453308701515, + 0.004655202850699425, + 0.005005987361073494 + ], + "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.2409294537233688, + "normalized_timepoint_brier": [ + 0.3533955314196646, + 1.0598100489005446, + 1.4130247291177511, + 1.4127785107120872, + 1.7101364431718402, + 1.493266984779597, + 1.4137442423554165, + 1.3594808067489532, + 1.2778759939191444, + 1.2626827287177957, + 1.1656549191010848, + 1.1051141211128537, + 1.1051178383470643 + ], + "raw_time_brier": 0.0015480101798087931, + "raw_timepoint_brier": [ + 0.0003533955314196646, + 0.0010598100489005446, + 0.0014130247291177511, + 0.0014127785107120872, + 0.001765116467140615, + 0.0017648652428761125, + 0.0017649102956056595, + 0.0017649253131821752, + 0.0017650665249675512, + 0.0017650641966611147, + 0.0017649841029196978, + 0.0017650927184149623, + 0.0017650986555963755 + ], + "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.1922723173160603, + "normalized_timepoint_brier": [ + 1.1230273599456895, + 1.1169634453366, + 1.0625046457067753, + 1.1374810534461186, + 1.1384342465065067, + 1.160311102273907, + 1.2439787404752543, + 1.238254480877086, + 1.2373614791420742, + 1.2607764625747453, + 1.2505445971402775, + 1.2631072718108507, + 1.2667952398729003 + ], + "raw_time_brier": 0.026727357807640847, + "raw_timepoint_brier": [ + 0.007578909397125244, + 0.01304012443870306, + 0.01613188348710537, + 0.020283900201320648, + 0.022557266056537628, + 0.025443406775593758, + 0.029370123520493507, + 0.031083375215530396, + 0.03290446847677231, + 0.03504420071840286, + 0.03650020435452461, + 0.03858358412981033, + 0.03893420472741127 + ], + "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.4333031940396048, + "normalized_timepoint_brier": [ + 0.0006400027245945239, + 0.3441209555603564, + 1.0414514690637589, + 1.3934922171756625, + 1.3900587800890207, + 1.3874300057068467, + 1.735297846607864, + 1.734687597490847, + 1.733897253870964, + 1.7318488098680973, + 2.0681072492152452, + 2.035966367987671, + 2.0359429671539333 + ], + "raw_time_brier": 0.0014379597813602301, + "raw_timepoint_brier": [ + 6.400027245945239e-07, + 0.0003441209555603564, + 0.0010414514690637589, + 0.0013934922171756625, + 0.0013900587800890207, + 0.0013874300057068467, + 0.001735297846607864, + 0.0017346875974908471, + 0.001733897253870964, + 0.0017318488098680973, + 0.0020681072492152452, + 0.0020662343595176935, + 0.002066210610792041 + ], + "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.7103951160879416, + "normalized_timepoint_brier": [ + 1.4504427090287209, + 1.452157855965197, + 2.054612471653687, + 1.8481971269877862, + 1.6063919469120436, + 1.4636188567026114, + 1.7263794877137009, + 1.786212951001557, + 1.7148434577293565, + 1.7846695067687381, + 1.7589797737148267, + 1.7343518488584673, + 1.8542785161065514 + ], + "raw_time_brier": 0.0030806520506023215, + "raw_timepoint_brier": [ + 0.0014504427090287209, + 0.001452157855965197, + 0.002543139271438122, + 0.0025444109924137592, + 0.002547068987041712, + 0.0025499225594103336, + 0.003278557676821947, + 0.00364051666110754, + 0.0036440843250602484, + 0.004009587224572897, + 0.004012722056359053, + 0.00401678029447794, + 0.0043590860441327095 + ], + "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.6649050500431468, + "normalized_timepoint_brier": [ + 0.0008457942044515221, + 0.3564165672287345, + 0.358556309947744, + 0.7132384344004095, + 0.716310110874474, + 0.7184454007074237, + 0.7200862164609134, + 0.7214297074824572, + 0.722771103028208, + 0.7266109460033476, + 0.7272749207913876, + 1.0808156803250313, + 1.080964459106326 + ], + "raw_time_brier": 0.0006649050500431468, + "raw_timepoint_brier": [ + 8.457942044515221e-07, + 0.0003564165672287345, + 0.000358556309947744, + 0.0007132384344004095, + 0.000716310110874474, + 0.0007184454007074237, + 0.0007200862164609134, + 0.0007214297074824572, + 0.000722771103028208, + 0.0007266109460033476, + 0.0007272749207913876, + 0.0010808156803250313, + 0.001080964459106326 + ], + "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.7692666241561978, + "normalized_timepoint_brier": [ + 0.35784178180620074, + 0.7234124350361526, + 1.0878643952310085, + 2.1435574162751436, + 1.9428585646915826, + 2.082003082546784, + 2.1107422224989754, + 1.9909697591845779, + 1.8840295101945759, + 1.9529719949796829, + 2.0462169791482334, + 2.338627646506213, + 2.3393703259314407 + ], + "raw_time_brier": 0.0025378949850654374, + "raw_timepoint_brier": [ + 0.00035784178180620074, + 0.0007234124350361526, + 0.0010878643952310085, + 0.0021435574162751436, + 0.0021459327545017004, + 0.0025084770750254393, + 0.002860712120309472, + 0.0028644136618822813, + 0.0028677599038928747, + 0.0032336704898625612, + 0.003593239700421691, + 0.004302193410694599, + 0.00430355966091156 + ], + "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.13164526892351602, + "normalized_timepoint_brier": [ + 0.001326179813077033, + 0.0028409051537892083, + 0.01332075316895498, + 0.016995161786326207, + 0.025387264031451195, + 0.03373066283529624, + 0.04297468694858253, + 0.05315087764756754, + 0.06699042569380254, + 0.38611022506739834, + 0.3618695729567969, + 0.3569390530349604, + 0.3497527278677054 + ], + "raw_time_brier": 0.000154678419002826, + "raw_timepoint_brier": [ + 1.326179813077033e-06, + 2.8409051537892083e-06, + 1.332075316895498e-05, + 1.6995161786326207e-05, + 2.5387264031451195e-05, + 3.3730662835296243e-05, + 4.297468694858253e-05, + 5.315087764756754e-05, + 6.699042569380254e-05, + 0.00041709799552336335, + 0.0004329588555265218, + 0.00045075902016833425, + 0.0004532866587396711 + ], + "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.8336248327048843, + "normalized_timepoint_brier": [ + 0.33898080549163306, + 0.5772200938072686, + 0.9378681283088315, + 0.9498126500449636, + 0.8497096122362487, + 0.8624594374502963, + 0.933397290178341, + 0.8763432464942804, + 0.9413159425050983, + 0.9642777233943756, + 0.9124478243847002, + 0.8499731186347581, + 0.843316952232702 + ], + "raw_time_brier": 0.0037585487701177886, + "raw_timepoint_brier": [ + 0.0003591302374843508, + 0.00107632577419281, + 0.0025030518881976604, + 0.0032176899258047342, + 0.003218911588191986, + 0.003569422522559762, + 0.004282562993466854, + 0.004283485002815723, + 0.004992242902517319, + 0.0053384690545499325, + 0.005339388735592365, + 0.00534017663449049, + 0.005340276751667261 + ], + "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.2865590523701806, + "normalized_timepoint_brier": [ + 2.0570872876676667, + 1.6724345255530775, + 1.9844731675337182, + 2.087819920579621, + 2.148066088393399, + 2.2774158202751047, + 2.3980025326559087, + 2.541761309286134, + 2.4546342893132502, + 2.4618548369466366, + 2.608301908545881, + 2.519067627653717, + 2.5143483664082336 + ], + "raw_time_brier": 0.014850264486785118, + "raw_timepoint_brier": [ + 0.0033532441593706608, + 0.005205816123634577, + 0.008062771521508694, + 0.009913383983075619, + 0.011329293251037598, + 0.013486100360751152, + 0.015960102900862694, + 0.01847103051841259, + 0.01882440224289894, + 0.01990894228219986, + 0.022363560274243355, + 0.023087045177817345, + 0.023087745532393456 + ], + "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.5851350667032174, + "normalized_timepoint_brier": [ + 0.00025084071353376203, + 0.35227739135734737, + 1.0614740895107388, + 1.061210292391479, + 2.1213542204350233, + 2.1209020633250475, + 2.014147114686233, + 2.27710606080658, + 2.2424550970841257, + 1.9998375470747851, + 1.8733504902160265, + 1.7617479657865276, + 1.7206426937543768 + ], + "raw_time_brier": 0.0018212988010475328, + "raw_timepoint_brier": [ + 2.5084071353376203e-07, + 0.00035227739135734737, + 0.0010614740895107388, + 0.001061210292391479, + 0.0021213542204350233, + 0.0021209020633250475, + 0.0021208736579865217, + 0.0024738379288464785, + 0.0024736435152590275, + 0.0024730858858674765, + 0.0024730218574404716, + 0.0024725887924432755, + 0.002472363878041506 + ], + "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.45653859497685956, + "normalized_timepoint_brier": [ + 0.35360429319553077, + 0.3538453602232039, + 0.3552421694621444, + 0.7092305459082127, + 0.6659764432703313, + 0.5924213637252647, + 0.5209682665457291, + 0.466210594175256, + 0.4293419818021012, + 0.4054659380495498, + 0.3811145986625984, + 0.35354405471129746, + 0.3480361249679544 + ], + "raw_time_brier": 0.0006311465247283474, + "raw_timepoint_brier": [ + 0.00035360429319553077, + 0.0003538453602232039, + 0.0003552421694621444, + 0.0007092305459082127, + 0.000710398715455085, + 0.0007108170539140701, + 0.0007118615903891623, + 0.0007145743584260345, + 0.0007152188918553293, + 0.0007159113883972168, + 0.0007172937039285898, + 0.0007182720000855625, + 0.0007186347502283752 + ], + "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.7123304000521008, + "normalized_timepoint_brier": [ + 0.35437237238511443, + 0.3554555296432227, + 0.3557355375960469, + 0.7084579556249082, + 0.7086771656759083, + 0.7085725083015859, + 0.7091565057635307, + 1.0591524187475443, + 0.9493729905562059, + 0.9088883520463852, + 0.8601563786944875, + 0.7960360070905087, + 0.7862614785518603 + ], + "raw_time_brier": 0.000789241540657643, + "raw_timepoint_brier": [ + 0.00035437237238511443, + 0.0003554555296432227, + 0.0003557355375960469, + 0.0007084579556249082, + 0.0007086771656759083, + 0.0007085725083015859, + 0.0007091565057635307, + 0.0010591524187475443, + 0.0010595765197649598, + 0.0010597598738968372, + 0.0010601467220112681, + 0.0010605022544041276, + 0.001060574664734304 + ], + "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.052097740016742, + "normalized_timepoint_brier": [ + 0.35779771860688925, + 0.7164974813349545, + 1.4230903470888734, + 1.779352081939578, + 1.7800208879634738, + 1.781368046067655, + 2.4810219183564186, + 2.7261724874383018, + 2.5614869981339825, + 2.5235593220756627, + 2.7166902349449207, + 2.9351466447863093, + 2.8950664514806275 + ], + "raw_time_brier": 0.002239869320944238, + "raw_timepoint_brier": [ + 0.00035779771860688925, + 0.0007164974813349545, + 0.0014230903470888734, + 0.001779352081939578, + 0.0017800208879634738, + 0.001781368046067655, + 0.0024810219183564186, + 0.0028375638648867607, + 0.0028377596754580736, + 0.0028380013536661863, + 0.0031919912435114384, + 0.0035469098947942257, + 0.0035469266586005688 + ], + "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.971247048350299, + "normalized_timepoint_brier": [ + 2.324070781469345, + 3.203680471749918, + 3.574055446157685, + 3.1560922509365525, + 2.8532186566974467, + 3.0359915434183433, + 3.038247236910979, + 2.964593116492925, + 2.789509087878819, + 2.93986085234959, + 2.8863818855560663, + 2.9501093337387747, + 2.9104009651974394 + ], + "raw_time_brier": 0.007874167452637967, + "raw_timepoint_brier": [ + 0.002324070781469345, + 0.003842633683234453, + 0.005388256162405014, + 0.006130106281489134, + 0.006522239651530981, + 0.007653505075722933, + 0.008427584543824196, + 0.009134377352893353, + 0.009147020988166332, + 0.010276149027049541, + 0.010661095380783081, + 0.011426991783082485, + 0.011430146172642708 + ], + "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.508231282410285, + "normalized_timepoint_brier": [ + 2.9558310725206023, + 2.8596544159403545, + 3.067734318489435, + 2.8903256267574227, + 2.6806683128867803, + 2.4805253722213862, + 2.455156679280685, + 2.424667584107643, + 2.2525705664776563, + 2.226818905115457, + 2.124185841292318, + 2.0944056564135, + 2.0944623198304595 + ], + "raw_time_brier": 0.007896668331411023, + "raw_timepoint_brier": [ + 0.0035674634855240583, + 0.005147228483110666, + 0.0067145065404474735, + 0.0075025400146842, + 0.007899544201791286, + 0.007904842495918274, + 0.008277538232505322, + 0.008666873909533024, + 0.008674497716128826, + 0.009068874642252922, + 0.009473279118537903, + 0.00987961608916521, + 0.009879883378744125 + ], + "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.4144912311563733, + "normalized_timepoint_brier": [ + 9.715370907770193e-05, + 0.35426573595032096, + 0.7079197675921023, + 1.0617692023515701, + 1.4143574517220259, + 1.4144621090963483, + 2.1196589805185795, + 2.0867276205820104, + 1.9287659050509163, + 1.8186090060276816, + 1.7204111645027818, + 1.880671662272473, + 1.8806702456569666 + ], + "raw_time_brier": 0.0015765944311682417, + "raw_timepoint_brier": [ + 9.715370907770193e-08, + 0.00035426573595032096, + 0.0007079197675921023, + 0.0010617692023515701, + 0.0014143574517220259, + 0.0014144621090963483, + 0.0021196589805185795, + 0.0021196843590587378, + 0.0021194303408265114, + 0.0021192901767790318, + 0.0021191700361669064, + 0.0024728120770305395, + 0.0024728102143853903 + ], + "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.1100064871209134, + "normalized_timepoint_brier": [ + 1.2458032755948014, + 1.3281305232271037, + 1.343632324541005, + 1.2356399354212912, + 1.1394514301057383, + 1.040840319294224, + 1.0303139513507973, + 1.016657710177565, + 0.9937523110148889, + 0.9932530915490599, + 1.0296649113642269, + 1.0195943815016806, + 1.0133501674294918 + ], + "raw_time_brier": 0.008133773100920595, + "raw_timepoint_brier": [ + 0.0021478349808603525, + 0.004990832880139351, + 0.006758804898709059, + 0.00745580717921257, + 0.007806469686329365, + 0.007803944870829582, + 0.00851085502654314, + 0.008869174867868423, + 0.009226355701684952, + 0.00958252977579832, + 0.010628827847540379, + 0.010979020968079567, + 0.01097859162837267 + ], + "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.019820357026897, + "normalized_timepoint_brier": [ + 1.7939122626557946, + 1.889155877921458, + 2.1519490007719195, + 1.921838032762204, + 2.0132075355122594, + 2.100485163790312, + 2.147767135087674, + 1.9701458878947335, + 2.052004021844289, + 2.042646217322697, + 2.0363488705145065, + 2.077976006898846, + 2.0602286283729656 + ], + "raw_time_brier": 0.005566507336110449, + "raw_timepoint_brier": [ + 0.0017939122626557946, + 0.0025020684115588665, + 0.003894350491464138, + 0.004248285666108131, + 0.004954675678163767, + 0.005660540424287319, + 0.006003135349601507, + 0.006000308785587549, + 0.0066939410753548145, + 0.007037790026515722, + 0.007389318197965622, + 0.008093448355793953, + 0.008092820644378662 + ], + "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.2151586618058308, + "normalized_timepoint_brier": [ + 1.417434890754521, + 1.7688390798866749, + 1.7675493145361543, + 1.7669396474957466, + 2.465446712449193, + 2.46478826738894, + 2.4635435547679663, + 2.463199431076646, + 2.463021781295538, + 2.4630632251501083, + 2.463171724230051, + 2.415020046476989, + 2.4150449279672723 + ], + "raw_time_brier": 0.002222580871043297, + "raw_timepoint_brier": [ + 0.001417434890754521, + 0.0017688390798866749, + 0.0017675493145361543, + 0.0017669396474957466, + 0.002465446712449193, + 0.00246478826738894, + 0.0024635435547679663, + 0.002463199431076646, + 0.002463021781295538, + 0.0024630632251501083, + 0.002463171724230051, + 0.0024632641579955816, + 0.00246328953653574 + ], + "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.9943638483750963, + "normalized_timepoint_brier": [ + 3.541937008712893, + 2.652237930037881, + 3.194754713856762, + 2.916674029815916, + 2.949919156078721, + 2.7711872832735764, + 2.8636068586534864, + 2.8063841232271685, + 2.846758680471544, + 3.0998416984331265, + 3.1210256234639475, + 3.086812770945319, + 3.075590151905909 + ], + "raw_time_brier": 0.009867726896817867, + "raw_timepoint_brier": [ + 0.003990632947534323, + 0.004723358899354935, + 0.007240856532007456, + 0.007977151311933994, + 0.009054271504282951, + 0.009060748852789402, + 0.010127739049494267, + 0.0104864202439785, + 0.011206611059606075, + 0.01297814305871725, + 0.013326743617653847, + 0.014053771272301674, + 0.014054001308977604 + ], + "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.0228522309962538, + "normalized_timepoint_brier": [ + 0.3630623687058687, + 0.7168378063791465, + 0.9620415460797272, + 1.1289309650631758, + 1.2979953971009697, + 1.3277142890220726, + 1.2407568523293473, + 1.152807799078381, + 1.0555167909600207, + 1.0022473007582349, + 1.0268997765538619, + 0.9707829920232901, + 1.0514851188972025 + ], + "raw_time_brier": 0.002954422317158717, + "raw_timepoint_brier": [ + 0.0003630623687058687, + 0.0010741569567471743, + 0.0017851428128778934, + 0.00247836671769619, + 0.0031802684534341097, + 0.003523187944665551, + 0.003523855237290263, + 0.0035280731972306967, + 0.003534108866006136, + 0.0035422283690422773, + 0.0038376187440007925, + 0.0038413130678236485, + 0.004196107387542725 + ], + "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.7770687772247653, + "normalized_timepoint_brier": [ + 1.4126993482932448, + 1.4123801374807954, + 1.7657388234511018, + 1.7657761927694082, + 2.8135397005826235, + 3.162708366289735, + 3.159173531457782, + 3.15646268427372, + 3.493714611977339, + 3.492242656648159, + 3.4908002708107233, + 3.488383488729596, + 3.4882742911577225 + ], + "raw_time_brier": 0.002777068777224765, + "raw_timepoint_brier": [ + 0.0014126993482932448, + 0.0014123801374807954, + 0.0017657388234511018, + 0.0017657761927694082, + 0.0028135397005826235, + 0.003162708366289735, + 0.003159173531457782, + 0.00315646268427372, + 0.003493714611977339, + 0.003492242656648159, + 0.0034908002708107233, + 0.003488383488729596, + 0.0034882742911577225 + ], + "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.0140988696856366, + "normalized_timepoint_brier": [ + 1.8006806494668126, + 2.873864956200123, + 2.869236137146515, + 2.3367614389582965, + 2.112362437875942, + 2.0260874739012347, + 1.8060809869652952, + 1.6850229636206522, + 1.6875936810429282, + 1.7000112524146058, + 1.8255789627780574, + 1.7299897541859195, + 1.7300146113568977 + ], + "raw_time_brier": 0.004344432946079626, + "raw_timepoint_brier": [ + 0.0018006806494668126, + 0.002873864956200123, + 0.003941813483834267, + 0.003940366208553314, + 0.004294863902032375, + 0.0042952424846589565, + 0.004298083949834108, + 0.004302273970097303, + 0.004630791023373604, + 0.004988158121705055, + 0.005703535862267017, + 0.005703935865312815, + 0.005704017821699381 + ], + "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.483271921293674, + "normalized_timepoint_brier": [ + 2.0161897611326665, + 2.0607751499778844, + 2.6873850456661694, + 2.5270403398397954, + 2.5480236438037176, + 2.5264187852283664, + 2.5419480588559886, + 2.5940606182738133, + 2.5894137260996732, + 2.496884164118988, + 2.5694439342060993, + 2.574455902409744, + 2.5504958472048576 + ], + "raw_time_brier": 0.01959731542648604, + "raw_timepoint_brier": [ + 0.003772568656131625, + 0.007441765628755093, + 0.013154089450836182, + 0.015298593789339066, + 0.01775597594678402, + 0.019476400688290596, + 0.021211890503764153, + 0.022982297465205193, + 0.02426985651254654, + 0.024938438087701797, + 0.02706659398972988, + 0.02870088629424572, + 0.028695743530988693 + ], + "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.547869041101397, + "normalized_timepoint_brier": [ + 1.170272291894993, + 1.150399758228297, + 1.5114022900218098, + 1.5549941373189509, + 1.3778910740145143, + 1.6676815352269818, + 1.6363331167219939, + 1.6388374220152921, + 1.6869423026133756, + 1.6718284126068108, + 1.6960312061873555, + 1.6867859990413814, + 1.6728979884264061 + ], + "raw_time_brier": 0.009592735602592047, + "raw_timepoint_brier": [ + 0.0022254325449466705, + 0.003327876329421997, + 0.00589303532615304, + 0.007354417350143194, + 0.007350132334977388, + 0.009873123839497566, + 0.010589901357889175, + 0.011311531066894531, + 0.012369566597044468, + 0.012718328274786472, + 0.013426441699266434, + 0.01413352694362402, + 0.014132249169051647 + ], + "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.4319217939816429, + "normalized_timepoint_brier": [ + 5.144022097169909e-06, + 5.973415539983762e-05, + 0.0002252834150340277, + 0.35282192402519286, + 0.3529420937411487, + 0.35295949783176184, + 0.35306529025547206, + 0.7009446271695197, + 0.7008467218838632, + 0.7006342057138681, + 0.7005480001680553, + 0.699971744325012, + 0.6999590550549328 + ], + "raw_time_brier": 0.0004319217939816429, + "raw_timepoint_brier": [ + 5.144022097169909e-09, + 5.973415539983762e-08, + 2.252834150340277e-07, + 0.00035282192402519286, + 0.0003529420937411487, + 0.00035295949783176184, + 0.00035306529025547206, + 0.0007009446271695197, + 0.0007008467218838632, + 0.0007006342057138681, + 0.0007005480001680553, + 0.000699971744325012, + 0.0006999590550549328 + ], + "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.004301524421943, + "normalized_timepoint_brier": [ + 0.6885583861730993, + 0.7256555836647749, + 1.7619982085585997, + 2.238075412414602, + 2.0104047955832294, + 1.8878897858097372, + 2.055644335876848, + 2.394666659837353, + 2.5424565269662374, + 2.512005170355576, + 2.4454134778341916, + 2.404759506071161, + 2.3883919683398522 + ], + "raw_time_brier": 0.0036870779765125076, + "raw_timepoint_brier": [ + 0.0006885583861730993, + 0.0007256555836647749, + 0.001854061265476048, + 0.003287311876192689, + 0.00332092703320086, + 0.003401355817914009, + 0.003806191962212324, + 0.0047524962574243546, + 0.005172480829060078, + 0.005194068420678377, + 0.0052193705923855305, + 0.005252803210169077, + 0.00525673246011138 + ], + "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.861539334791539, + "normalized_timepoint_brier": [ + 0.35931277670897543, + 0.7290763952081212, + 0.8023021798831557, + 0.6821478385143475, + 0.7646833349550594, + 0.7013048160540375, + 0.7732373279362128, + 0.844622052781909, + 1.1382444411626436, + 1.0841140407772085, + 1.1373879216812242, + 1.096665726856071, + 1.08691249977104 + ], + "raw_time_brier": 0.0024362234868861446, + "raw_timepoint_brier": [ + 0.00035931277670897543, + 0.001073359278962016, + 0.001435768324881792, + 0.0014484189450740814, + 0.0018149901879951358, + 0.0018282221863046288, + 0.002183129545301199, + 0.0025113148149102926, + 0.0035738081205636263, + 0.0035844037774950266, + 0.003949521109461784, + 0.003953790757805109, + 0.003954865504056215 + ], + "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.9375521051717667, + "normalized_timepoint_brier": [ + 0.8555746537255067, + 0.9976761693098583, + 1.005178084135805, + 1.001935059151381, + 0.930624616827907, + 0.889861174031173, + 0.9061336932765152, + 0.9231689174403049, + 0.8981124564849469, + 0.9470845348733479, + 0.9318772853919776, + 0.9532548349071839, + 0.9476958876770596 + ], + "raw_time_brier": 0.029322643477756243, + "raw_timepoint_brier": [ + 0.007690509781241417, + 0.01546426024287939, + 0.020517032593488693, + 0.024167800322175026, + 0.02580067329108715, + 0.027142517268657684, + 0.030425220727920532, + 0.03318992629647255, + 0.03444131091237068, + 0.03835172578692436, + 0.039523810148239136, + 0.04224144294857979, + 0.042238134890794754 + ], + "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.2515995873262904, + "normalized_timepoint_brier": [ + 0.3613863082136959, + 0.9280310206069934, + 1.2823003242114015, + 1.1910725220605551, + 1.4362638251397306, + 1.4416260865217851, + 1.3189462366897828, + 1.3193817163777581, + 1.375776773213264, + 1.3630268037244162, + 1.3730670358102601, + 1.4446198589143373, + 1.4352961237577957 + ], + "raw_time_brier": 0.0047873304597137924, + "raw_timepoint_brier": [ + 0.0003613863082136959, + 0.0014342378126457334, + 0.002872454235330224, + 0.003232272109016776, + 0.004650247283279896, + 0.005008751060813665, + 0.005005833692848682, + 0.00536365807056427, + 0.006079640705138445, + 0.0064369007013738155, + 0.0067846765741705894, + 0.007502742111682892, + 0.007502495311200619 + ], + "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.7219191608480888, + "normalized_timepoint_brier": [ + 0.7100962684489787, + 0.7115055341273546, + 1.0672868229448795, + 1.7765300581231713, + 1.7781008500605822, + 2.1329692099243402, + 2.0927752382696125, + 2.059915102156733, + 1.9985532024615853, + 2.195159793436605, + 2.0213165562625095, + 1.920326041581451, + 1.9204144132273546 + ], + "raw_time_brier": 0.0018919429768664907, + "raw_timepoint_brier": [ + 0.0007100962684489787, + 0.0007115055341273546, + 0.0010672868229448795, + 0.0017765300581231713, + 0.0017781008500605822, + 0.0021329692099243402, + 0.0021356570068746805, + 0.002136628143489361, + 0.002139632124453783, + 0.0024966103956103325, + 0.0025012847036123276, + 0.002504421165212989, + 0.0025045364163815975 + ], + "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.45553443745415, + "normalized_timepoint_brier": [ + 0.00137389793053444, + 0.7083078962750733, + 1.0616257786750793, + 1.0623019188642502, + 1.380775822326541, + 1.7270641401410103, + 1.7208261415362358, + 1.7172505613416433, + 2.0319232904642255, + 1.935803503926976, + 1.876876533782836, + 1.8490724028292638, + 1.8487457988102778 + ], + "raw_time_brier": 0.0015165310441996272, + "raw_timepoint_brier": [ + 1.37389793053444e-06, + 0.0007083078962750733, + 0.0010616257786750793, + 0.0010623019188642502, + 0.001380775822326541, + 0.0017270641401410103, + 0.0017208261415362358, + 0.0017172505613416433, + 0.0020681649912148714, + 0.0020670408848673105, + 0.0020667449571192265, + 0.002066895831376314, + 0.002066530752927065 + ], + "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.8179374835914944, + "normalized_timepoint_brier": [ + 0.005418390628619818, + 0.5863729488606242, + 0.6274317682627724, + 0.5601528084181365, + 0.7220571183921466, + 0.7668123368492294, + 0.9995491514262675, + 0.9547646137212503, + 1.0523055326209052, + 1.0785873332420408, + 1.0828265080239796, + 1.1003546954433594, + 1.096554080800095 + ], + "raw_time_brier": 0.0030868461124625287, + "raw_timepoint_brier": [ + 5.418390628619818e-06, + 0.0010745762847363949, + 0.0014261141186580062, + 0.0014246876817196608, + 0.002129622269421816, + 0.0024820484686642885, + 0.003555895760655403, + 0.003557886229828, + 0.004276265390217304, + 0.004637559875845909, + 0.004947739653289318, + 0.005305503029376268, + 0.005305682308971882 + ], + "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.5084285786207173, + "normalized_timepoint_brier": [ + 0.00024454223535030906, + 0.0008568060820834944, + 0.7040523341856897, + 0.704130856320262, + 0.5968903947714403, + 0.5727537990942387, + 0.5365968320793831, + 0.5170489374909172, + 0.48759589288622707, + 0.6601661577664664, + 0.6275063132670279, + 0.6036995312264887, + 0.598029124663752 + ], + "raw_time_brier": 0.0007032211602200697, + "raw_timepoint_brier": [ + 2.4454223535030906e-07, + 8.568060820834944e-07, + 0.0007040523341856897, + 0.000704130856320262, + 0.0007042131619527936, + 0.0007042899378575385, + 0.0007043638615868986, + 0.0007044241647236049, + 0.0007047302206046879, + 0.0010526184923946857, + 0.0010526003316044807, + 0.0010526638943701982, + 0.0010526864789426327 + ], + "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.2309136654097694, + "normalized_timepoint_brier": [ + 1.0550239821895957, + 1.0332229255977479, + 1.0514486886234313, + 0.9738081436243239, + 1.090161519044688, + 1.1053157008292172, + 1.3672750049636297, + 1.446435288345811, + 1.424280972468779, + 1.3535656691698743, + 1.3358889683363575, + 1.3848476232096998, + 1.3806031639238492 + ], + "raw_time_brier": 0.004632733726444153, + "raw_timepoint_brier": [ + 0.0010550239821895957, + 0.0017421107040718198, + 0.002397756790742278, + 0.00274936412461102, + 0.003465888788923621, + 0.003832232905551791, + 0.005226144567131996, + 0.005944953765720129, + 0.006311573088169098, + 0.006317426450550556, + 0.006573141552507877, + 0.007304547354578972, + 0.00730537436902523 + ], + "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.6548571153476412, + "normalized_timepoint_brier": [ + 5.989509332948728e-05, + 0.0003053613681913703, + 0.0005630089390251669, + 0.35414702142588794, + 0.7026721141301095, + 0.7007158128544688, + 1.0484280064702034, + 0.9530514521364106, + 0.9380489173383058, + 0.8851270472471598, + 0.8375420305822882, + 1.0594590052846795, + 1.0330228266492765 + ], + "raw_time_brier": 0.0007518457803040126, + "raw_timepoint_brier": [ + 5.989509332948728e-08, + 3.053613681913703e-07, + 5.630089390251669e-07, + 0.00035414702142588794, + 0.0007026721141301095, + 0.0007007158128544688, + 0.0010484280064702034, + 0.0010469512781128287, + 0.0010459786280989647, + 0.0010456538293510675, + 0.0010447559179738164, + 0.0013920457568019629, + 0.0013917185133323073 + ], + "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.0806268037934577, + "normalized_timepoint_brier": [ + 0.709043350070715, + 0.7091067964211106, + 1.0641798144206405, + 1.0654552606865764, + 1.0661435080692172, + 0.9011296586251104, + 1.2489381388786562, + 1.1548784493909172, + 1.256457047864787, + 1.143560769080684, + 1.2887776343721007, + 1.2252370945301174, + 1.2152409269043158 + ], + "raw_time_brier": 0.0016057625090560089, + "raw_timepoint_brier": [ + 0.000709043350070715, + 0.0007091067964211106, + 0.0010641798144206405, + 0.0010654552606865764, + 0.0010661435080692172, + 0.0010679202387109399, + 0.0017714204732328653, + 0.0017726573860272765, + 0.0021168601233512163, + 0.002116904128342867, + 0.0024714460596442223, + 0.0024718851782381535, + 0.002471890300512314 + ], + "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.9217927247215569, + "normalized_timepoint_brier": [ + 0.3549313696566969, + 0.35468448186293244, + 0.7087598787620664, + 1.3605089820660479, + 1.1558672407555695, + 0.9179829651904814, + 0.972750826748661, + 0.8472241848001554, + 1.0341205997762848, + 1.2081290408591188, + 1.1017004276126041, + 0.9858952042757421, + 0.9807502190138798 + ], + "raw_time_brier": 0.001867608845574208, + "raw_timepoint_brier": [ + 0.0003549313696566969, + 0.00035468448186293244, + 0.0007087598787620664, + 0.0014169042697176337, + 0.0014168934430927038, + 0.001417321152985096, + 0.0017624946776777506, + 0.0017618958372622728, + 0.0024618676397949457, + 0.0031582703813910484, + 0.0031565623357892036, + 0.0031542351935058832, + 0.0031540943309664726 + ], + "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.5560750134504031, + "normalized_timepoint_brier": [ + 0.3590760170482099, + 0.48290362581542173, + 0.6963662303996534, + 0.6071440710178186, + 0.662398820654503, + 0.6023288745258948, + 0.5305129620989963, + 0.5950129772320859, + 0.5467541761092596, + 0.5097532673406739, + 0.573981573315602, + 0.5332622926782221, + 0.5294802866188999 + ], + "raw_time_brier": 0.001790987484407826, + "raw_timepoint_brier": [ + 0.0003590760170482099, + 0.0007187138544395566, + 0.0014357618056237698, + 0.0014360997593030334, + 0.001789942616596818, + 0.0017895230557769537, + 0.0017904541455209255, + 0.002147858729586005, + 0.0021481632720679045, + 0.002148292725905776, + 0.002505567157641053, + 0.0025066565722227097, + 0.002506727585569024 + ], + "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.4300817874475893, + "normalized_timepoint_brier": [ + 1.4501626137644053, + 1.9197570890265658, + 2.516951858207092, + 2.6427330390844355, + 2.6750068831905858, + 2.557298441247147, + 2.6599850986918723, + 2.6002946147670856, + 2.5894889925307507, + 2.472281133837759, + 2.5740003817362234, + 2.437631577067038, + 2.495471513667707 + ], + "raw_time_brier": 0.009648166650619645, + "raw_timepoint_brier": [ + 0.0014501626137644053, + 0.003570972941815853, + 0.005991041194647551, + 0.008075566031038761, + 0.009145183488726616, + 0.009848149493336678, + 0.010887235403060913, + 0.011585470288991928, + 0.012251392006874084, + 0.012251295149326324, + 0.013331509195268154, + 0.01333936769515276, + 0.01369882095605135 + ], + "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.4736240332668031, + "normalized_timepoint_brier": [ + 0.7098369533196092, + 1.7738655442371964, + 1.8201777366502356, + 1.8590291931270082, + 1.8295132124835032, + 1.5916014473114173, + 1.457251151774462, + 1.3437784027679693, + 1.284816072324199, + 1.3639459800813913, + 1.4326865923301717, + 1.345285696686846, + 1.3453244493744307 + ], + "raw_time_brier": 0.002713857129072914, + "raw_timepoint_brier": [ + 0.0007098369533196092, + 0.0017738655442371964, + 0.002132171532139182, + 0.002488508354872465, + 0.0028459106106311083, + 0.00284722913056612, + 0.002849800745025277, + 0.002852289006114006, + 0.002855675993487239, + 0.0032135131768882275, + 0.0035661915317177773, + 0.003572523593902588, + 0.003572626505047083 + ], + "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.4082381628178093, + "normalized_timepoint_brier": [ + 2.539399778470397, + 2.064656129535523, + 2.499800122183541, + 2.6232445287826556, + 2.4439522020957454, + 2.507753062778921, + 2.5655416462374676, + 2.4736190162448635, + 2.292398996315492, + 2.407357850913068, + 2.25144237771976, + 2.2947175912770446, + 2.34321281407704 + ], + "raw_time_brier": 0.008293817840659847, + "raw_timepoint_brier": [ + 0.002539399778470397, + 0.003630177117884159, + 0.005427532829344273, + 0.006867672316730022, + 0.007572267670184374, + 0.008286325260996819, + 0.009356994181871414, + 0.009699841029942036, + 0.009696438908576965, + 0.010759680531919003, + 0.010755958966910839, + 0.011433076113462448, + 0.01179426722228527 + ], + "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.194750044724805, + "normalized_timepoint_brier": [ + 1.0941068176180124, + 1.4599300920963287, + 3.3954391098803742, + 3.2834388244504686, + 3.5311241294457094, + 3.5609177145181063, + 3.4915509545470282, + 3.7158611109085746, + 3.59840865414877, + 3.4896410032214327, + 3.658804144442774, + 3.6503575137073945, + 3.6021705124374868 + ], + "raw_time_brier": 0.006317054190171452, + "raw_timepoint_brier": [ + 0.0010941068176180124, + 0.0014599300920963287, + 0.003639328759163618, + 0.00436905212700367, + 0.005794426426291466, + 0.006518386770039797, + 0.007234031800180674, + 0.007954519242048264, + 0.007950937375426292, + 0.008310893550515175, + 0.009028155356645584, + 0.009384321980178356, + 0.009383614175021648 + ], + "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.1770047752243666, + "normalized_timepoint_brier": [ + 1.075540203601122, + 1.7766810487955809, + 1.776199322193861, + 1.7759945476427674, + 2.466479316353798, + 2.4661931674927473, + 2.464190823957324, + 2.464826451614499, + 2.465063938871026, + 2.4654304143041372, + 2.4633018765598536, + 2.3205718166497196, + 2.3205891498803295 + ], + "raw_time_brier": 0.00219884562270286, + "raw_timepoint_brier": [ + 0.001075540203601122, + 0.0017766810487955809, + 0.001776199322193861, + 0.0017759945476427674, + 0.002466479316353798, + 0.0024661931674927473, + 0.002464190823957324, + 0.002464826451614499, + 0.002465063938871026, + 0.0024654304143041372, + 0.0024633018765598536, + 0.002462536795064807, + 0.0024625551886856556 + ], + "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.2773299627785575, + "normalized_timepoint_brier": [ + 1.5771488474745599, + 1.346093583435415, + 1.3313323209184333, + 1.4366484996954165, + 1.3200015112881658, + 1.2534934368919923, + 1.2726925768344293, + 1.2127908183139748, + 1.2242070948698554, + 1.1929995833821816, + 1.1600100455435205, + 1.1402935007651245, + 1.137577696708177 + ], + "raw_time_brier": 0.025834280567673538, + "raw_timepoint_brier": [ + 0.011055052280426025, + 0.015095749869942665, + 0.01935463771224022, + 0.02465113438665867, + 0.025336619466543198, + 0.02626999095082283, + 0.028400804847478867, + 0.02839287556707859, + 0.03008187748491764, + 0.030800675973296165, + 0.031526219099760056, + 0.03244025260210037, + 0.03243975713849068 + ], + "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.2608823546850467, + "normalized_timepoint_brier": [ + 0.35597276291809976, + 0.5516975204086894, + 0.973102870162072, + 1.2302964258052382, + 1.37183887212947, + 1.4261843211129108, + 1.432915385222156, + 1.50780403948304, + 1.420780155982042, + 1.368158428615727, + 1.5022500490108819, + 1.632163394381401, + 1.6183063856738775 + ], + "raw_time_brier": 0.0038868600632458064, + "raw_timepoint_brier": [ + 0.00035597276291809976, + 0.0007118121138773859, + 0.0017763518262654543, + 0.002841506851837039, + 0.0035349370446056128, + 0.003888881066814065, + 0.0042417352087795734, + 0.004941410385072231, + 0.00494029326364398, + 0.0049394769594073296, + 0.005648566409945488, + 0.006354191340506077, + 0.0063540455885231495 + ], + "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.0367647126443367, + "normalized_timepoint_brier": [ + 0.7115027983672917, + 2.058037504484422, + 2.3257935821561264, + 2.5921027281745674, + 2.3253166285821103, + 2.185360794243425, + 2.1642418753797346, + 1.9855287491705726, + 1.9012448473212804, + 1.8027086323378705, + 2.0896522806434032, + 2.1843660542445416, + 2.1520847892710293 + ], + "raw_time_brier": 0.004853876168803813, + "raw_timepoint_brier": [ + 0.0007115027983672917, + 0.002123535145074129, + 0.0035385016817599535, + 0.004599312786012888, + 0.0045963479205966, + 0.004945449065417051, + 0.005298736970871687, + 0.0052961017936468124, + 0.005295152775943279, + 0.005293672904372215, + 0.0066635627299547195, + 0.007369578815996647, + 0.0073689348064363 + ], + "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.5863612095043456, + "normalized_timepoint_brier": [ + 0.7142513059079647, + 1.7789679113775492, + 2.4939593172647743, + 2.6336737917852804, + 2.7861292333691554, + 3.054370397293636, + 2.899797237306052, + 2.786879757108565, + 2.881663256264725, + 2.9657940636897706, + 3.004656235333822, + 2.819834260817695, + 2.8027189560375 + ], + "raw_time_brier": 0.005376496101514651, + "raw_timepoint_brier": [ + 0.0007142513059079647, + 0.0017789679113775492, + 0.003198018064722419, + 0.00390960555523634, + 0.0046047549694776535, + 0.005665204022079706, + 0.006012795027345419, + 0.0063408371061086655, + 0.007041412405669689, + 0.007396390195935965, + 0.007745855953544378, + 0.007743219844996929, + 0.007743136957287788 + ], + "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.7348328888195734, + "normalized_timepoint_brier": [ + 0.963798530156716, + 0.7773743283158491, + 0.823182189771753, + 0.7144527073435379, + 0.6431234512819336, + 0.6521992761585012, + 0.678162512441733, + 0.7145174883424275, + 0.6932041058060747, + 0.7279986688025079, + 0.702007211408271, + 0.7337543134564473, + 0.729052771368701 + ], + "raw_time_brier": 0.003803470933165115, + "raw_timepoint_brier": [ + 0.001779465121217072, + 0.002500834409147501, + 0.0032112509943544865, + 0.0032273929100483656, + 0.003247446846216917, + 0.0035859409254044294, + 0.003931060899049044, + 0.004283867310732603, + 0.004294250160455704, + 0.0046541728079319, + 0.004662652965635061, + 0.005031425505876541, + 0.005035361275076866 + ], + "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.1381144797207396, + "normalized_timepoint_brier": [ + 0.35771820694208145, + 0.35911149461753666, + 1.277101066430084, + 1.603432883390763, + 1.3067968147878894, + 1.164379814551669, + 1.235610301021813, + 1.3143969696231856, + 1.2383371594164236, + 1.3160364850603277, + 1.248206779975181, + 1.1871638852763295, + 1.1871963752763315 + ], + "raw_time_brier": 0.0022775833069597585, + "raw_timepoint_brier": [ + 0.00035771820694208145, + 0.00035911149461753666, + 0.0014206072082743049, + 0.0021344972774386406, + 0.002135304966941476, + 0.00213743862695992, + 0.0024965545162558556, + 0.0028545502573251724, + 0.0028556562028825283, + 0.0032116242218762636, + 0.0032137746457010508, + 0.003215828677639365, + 0.0032159166876226664 + ], + "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.6869030954757422, + "normalized_timepoint_brier": [ + 0.0018715783198786085, + 0.36461002309806645, + 0.36693105357699096, + 0.36896878737024963, + 0.37108734250068665, + 0.3720090608112514, + 0.3730877651832998, + 0.35946582867043286, + 0.6586419455971885, + 0.9242213314938392, + 1.4700193260001557, + 1.6494314971584665, + 1.6493947014041443 + ], + "raw_time_brier": 0.0007974963674192062, + "raw_timepoint_brier": [ + 1.8715783198786085e-06, + 0.00036461002309806645, + 0.00036693105357699096, + 0.00036896878737024963, + 0.00037108734250068665, + 0.0003720090608112514, + 0.0003730877651832998, + 0.00037685592542402446, + 0.0007237764075398445, + 0.0010467396350577474, + 0.0017641304293647408, + 0.0021187160164117813, + 0.0021186687517911196 + ], + "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.161632756337795, + "normalized_timepoint_brier": [ + 1.3771620579063892, + 2.037591300904751, + 2.4854216336954242, + 2.658009331967138, + 2.5749544492430623, + 2.2968022849233494, + 2.356227681689899, + 2.1102362890789377, + 1.9380494091226061, + 2.050446459623984, + 2.057050370614632, + 2.079616879248029, + 2.079657684373133 + ], + "raw_time_brier": 0.00491906852962879, + "raw_timepoint_brier": [ + 0.0013771620579063892, + 0.002037591300904751, + 0.003171879332512617, + 0.004149355459958315, + 0.004752582870423794, + 0.004738200455904007, + 0.005609408486634493, + 0.005588339641690254, + 0.005585453938692808, + 0.006285713519901037, + 0.0066500441171228886, + 0.007001011166721582, + 0.007001148536801338 + ], + "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.6404507192345998, + "normalized_timepoint_brier": [ + 0.3676874912343919, + 1.1018814984709024, + 1.8338991794735193, + 2.1994542330503464, + 1.921659990590396, + 1.7936080755648132, + 1.930769578271293, + 1.8424760389545363, + 1.8038108937742294, + 1.7228524703860266, + 1.610192656746717, + 1.5986335899469755, + 1.5989336535856506 + ], + "raw_time_brier": 0.0021808543018638515, + "raw_timepoint_brier": [ + 0.00036768749123439193, + 0.0011018814984709024, + 0.0018338991794735193, + 0.0021994542330503464, + 0.002220656257122755, + 0.002225016476586461, + 0.0025914947036653757, + 0.0025979254860430956, + 0.0026046449784189463, + 0.002633800497278571, + 0.00265265884809196, + 0.0026607434265315533, + 0.002661242848262191 + ], + "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.5473641847704316, + "normalized_timepoint_brier": [ + 0.7154425838962197, + 1.4287008671090007, + 1.3073708810478706, + 1.9174083104528992, + 1.9931154900750312, + 1.826544425721191, + 1.711506719129294, + 1.6105181053066484, + 1.5130233615304254, + 1.4358109262462457, + 1.5129236466446794, + 1.5810069691222526, + 1.562362115733855 + ], + "raw_time_brier": 0.003170763303597386, + "raw_timepoint_brier": [ + 0.0007154425838962197, + 0.0014287008671090007, + 0.001795595744624734, + 0.003209946444258094, + 0.003569774329662323, + 0.0035760952159762383, + 0.0035796284209936857, + 0.0035833879373967648, + 0.0035935735795646906, + 0.003601990407332778, + 0.003946816548705101, + 0.004308937583118677, + 0.004310033284127712 + ], + "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.5483785199915978, + "normalized_timepoint_brier": [ + 2.188926064447253, + 1.8041486652309828, + 1.5978933691800432, + 1.4078754015522965, + 1.4788565486005927, + 1.308714503743986, + 1.4881148970362574, + 1.5449348804510545, + 1.5226327653575071, + 1.4806716840292582, + 1.455870014074482, + 1.405569522664691, + 1.4447124435223653 + ], + "raw_time_brier": 0.008342711863896022, + "raw_timepoint_brier": [ + 0.003466151189059019, + 0.004890128970146179, + 0.005740400403738022, + 0.006078979931771755, + 0.0071004945784807205, + 0.007094366475939751, + 0.008909775875508785, + 0.009967265650629997, + 0.010319864377379417, + 0.010671677067875862, + 0.011041496880352497, + 0.01140404399484396, + 0.011770608834922314 + ], + "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.5833440499512423, + "normalized_timepoint_brier": [ + 0.7337018614634871, + 1.084769550927643, + 1.4405639979880815, + 1.3465713979960658, + 1.357042264315017, + 1.7238563935615034, + 1.7658650531138391, + 1.6625396565638337, + 1.7118754516865002, + 1.7364441061583895, + 2.0850023870391454, + 1.977640619144936, + 1.957599909407707 + ], + "raw_time_brier": 0.0038736184450009693, + "raw_timepoint_brier": [ + 0.0007337018614634871, + 0.0011025656713172793, + 0.0018357867375016212, + 0.0022022633347660303, + 0.0025690121110528708, + 0.0036481921561062336, + 0.004373183008283377, + 0.00437385868281126, + 0.004738599993288517, + 0.00510436249896884, + 0.006557688117027283, + 0.006558672990649939, + 0.0065591526217758656 + ], + "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.7515846109268363, + "normalized_timepoint_brier": [ + 0.0034977751965925563, + 0.5827137605355426, + 1.0320740541766256, + 1.069344506264564, + 0.9614905648684066, + 0.8664985011538683, + 0.8193387200046767, + 0.7827279233547253, + 0.7334882154219191, + 0.6857596426243684, + 0.6769651599953354, + 0.7831857391538222, + 0.7735153792984246 + ], + "raw_time_brier": 0.0015574567114876676, + "raw_timepoint_brier": [ + 3.4977751965925563e-06, + 0.0006904521724209189, + 0.001394845312461257, + 0.0017478292575106025, + 0.0017475677886977792, + 0.0017479766393080354, + 0.0017480547539889812, + 0.001748025300912559, + 0.0017477507935836911, + 0.001747972914017737, + 0.0017480782698839903, + 0.002087464788928628, + 0.0020874214824289083 + ], + "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.8607956016699299, + "normalized_timepoint_brier": [ + 0.35585006116889417, + 0.3621903306338936, + 0.7174315396696329, + 1.0078871664292965, + 1.2093091486056253, + 1.132181305724072, + 1.026895111401646, + 0.9600361608980984, + 0.9400416927777189, + 0.9301254232044103, + 0.8852264298308532, + 0.835533031705182, + 0.8276354196597651 + ], + "raw_time_brier": 0.0011893152707041455, + "raw_timepoint_brier": [ + 0.00035585006116889417, + 0.0003621903306338936, + 0.0007174315396696329, + 0.0010741425212472677, + 0.0014296413864940405, + 0.0014326509553939104, + 0.001435980200767517, + 0.0014381936052814126, + 0.001439470099285245, + 0.0014397389022633433, + 0.0014437035424634814, + 0.001446019159629941, + 0.0014460862148553133 + ], + "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.1209951441182235, + "normalized_timepoint_brier": [ + 0.3811975475400686, + 0.891599015844964, + 0.959739581353138, + 1.125219755900866, + 1.1119466617075735, + 1.14699535219298, + 1.1703371969749157, + 1.2017827278909587, + 1.2118934285646572, + 1.324742987705986, + 1.4015402092407365, + 1.3282791392252855, + 1.3176632693947798 + ], + "raw_time_brier": 0.003455264502778076, + "raw_timepoint_brier": [ + 0.0003811975475400686, + 0.0013430197723209858, + 0.0016914912266656756, + 0.002405574545264244, + 0.002756528789177537, + 0.0031170935835689306, + 0.003479783656075597, + 0.003839624347165227, + 0.0042017800733447075, + 0.004908081144094467, + 0.0055977217853069305, + 0.005598210729658604, + 0.005598331335932016 + ], + "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.6550353083568132, + "normalized_timepoint_brier": [ + 0.3600367926992476, + 0.7208961178548634, + 0.7226304733194411, + 1.076389686204493, + 1.075872452929616, + 1.4227479696273804, + 1.4229348162189126, + 1.781817409209907, + 2.514037678718864, + 2.5887457883763796, + 2.7647571972966856, + 2.532284311251262, + 2.5323083149315186 + ], + "raw_time_brier": 0.0019481535150239675, + "raw_timepoint_brier": [ + 0.0003600367926992476, + 0.0007208961178548634, + 0.0007226304733194411, + 0.001076389686204493, + 0.001075872452929616, + 0.0014227479696273804, + 0.0014229348162189126, + 0.001781817409209907, + 0.0028552706353366375, + 0.003202995052561164, + 0.0035612094216048717, + 0.003561580553650856, + 0.003561614314094186 + ], + "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.1838540203826542, + "normalized_timepoint_brier": [ + 0.362823368050158, + 1.4356992905959487, + 1.3661570499369664, + 1.3773791997969551, + 1.249135188987753, + 1.3183085203672797, + 1.421534442761171, + 1.2984235688988666, + 1.2253160990121221, + 1.1598756849502974, + 1.0929548277302414, + 1.0556123167558484, + 1.026882707130898 + ], + "raw_time_brier": 0.0020457226603936693, + "raw_timepoint_brier": [ + 0.000362823368050158, + 0.0014356992905959487, + 0.001437377417460084, + 0.0017992932116612792, + 0.0018009740160778165, + 0.002146222861483693, + 0.002506847959011793, + 0.0025095713790506124, + 0.0025134810712188482, + 0.0025166827253997326, + 0.0025193968322128057, + 0.0025226804427802563, + 0.00252334401011467 + ], + "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.6797047994601039, + "normalized_timepoint_brier": [ + 0.3532415139488876, + 0.3533410781528801, + 0.35338583984412253, + 0.3534205607138574, + 0.35348624805919826, + 0.3536064177751541, + 0.353701674612239, + 0.7070339634083211, + 0.7071974105201662, + 1.0605106363072991, + 1.0605264687910676, + 1.4133388176560402, + 1.4133717631921172 + ], + "raw_time_brier": 0.0006797047994601039, + "raw_timepoint_brier": [ + 0.0003532415139488876, + 0.00035334107815288007, + 0.00035338583984412253, + 0.0003534205607138574, + 0.00035348624805919826, + 0.0003536064177751541, + 0.000353701674612239, + 0.0007070339634083211, + 0.0007071974105201662, + 0.0010605106363072991, + 0.0010605264687910676, + 0.0014133388176560402, + 0.0014133717631921172 + ], + "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.4166682313574763, + "normalized_timepoint_brier": [ + 2.8089830741068296, + 2.7123745544513396, + 2.5587216074501264, + 2.328933580827374, + 2.3463890517228934, + 2.2115909981852107, + 2.3220076986047693, + 2.4269760964196547, + 2.2904633703143573, + 2.371741689882241, + 2.4350119504191103, + 2.3068394450136855, + 2.2966538902496 + ], + "raw_time_brier": 0.006821743230550335, + "raw_timepoint_brier": [ + 0.0028721282724291086, + 0.004649769514799118, + 0.005005726590752602, + 0.005361121613532305, + 0.00604908587411046, + 0.00604500574991107, + 0.0071070026606321335, + 0.007804724387824535, + 0.007799391169101, + 0.008484745398163795, + 0.009172315709292889, + 0.009166298434138298, + 0.009165346622467041 + ], + "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.9136079064598756, + "normalized_timepoint_brier": [ + 0.8869208167635901, + 0.7910529809636809, + 0.9024437906636764, + 0.8612270727909198, + 0.9132231511926089, + 0.93016763131844, + 0.9596761962321473, + 0.9221537710016732, + 0.9440009864143054, + 0.953996573632138, + 0.9456092375699366, + 0.9361226103675186, + 0.9303079650677472 + ], + "raw_time_brier": 0.009086925625944367, + "raw_timepoint_brier": [ + 0.002524283016100526, + 0.003927070647478104, + 0.005987165495753288, + 0.0066985031589865685, + 0.008036702871322632, + 0.009041935205459595, + 0.010066887363791466, + 0.010379600338637829, + 0.011377758346498013, + 0.012083630077540874, + 0.012432407587766647, + 0.012788171879947186, + 0.012785917147994041 + ], + "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.4842321670986527, + "normalized_timepoint_brier": [ + 1.7690234817564487, + 2.8060409240424633, + 3.25182979292561, + 2.9253309652810406, + 2.8662597205892424, + 2.589295936626704, + 2.5921868519599522, + 2.4816688188207934, + 2.3592946195668705, + 2.1989341896216237, + 2.133658459346472, + 2.1607578263560834, + 2.1607365853891793 + ], + "raw_time_brier": 0.004340706321482475, + "raw_timepoint_brier": [ + 0.0017690234817564487, + 0.0028060409240424633, + 0.003844901919364929, + 0.0041883294470608234, + 0.004532522987574339, + 0.004524515941739082, + 0.004874305333942175, + 0.0048726461827754974, + 0.004867692943662405, + 0.00486524635925889, + 0.004862642381340265, + 0.00521068274974823, + 0.005210631527006626 + ], + "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.804238362848598, + "normalized_timepoint_brier": [ + 1.0694924276322126, + 3.088166224752869, + 3.0358755611913866, + 2.7867083366961016, + 2.9358149122435644, + 3.0622092967058765, + 2.844070838706398, + 2.880962208856706, + 2.84419038148885, + 2.696621701083436, + 2.87978211056289, + 3.1762621294013558, + 3.154942587710121 + ], + "raw_time_brier": 0.00513875806847444, + "raw_timepoint_brier": [ + 0.0010694924276322126, + 0.003189227543771267, + 0.003539305878803134, + 0.0038971970789134502, + 0.00459374999627471, + 0.005300344433635473, + 0.005300693679600954, + 0.005656691733747721, + 0.006009119097143412, + 0.0060110678896307945, + 0.0067062051966786385, + 0.007765329908579588, + 0.007765430025756359 + ], + "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.7390627821977365, + "normalized_timepoint_brier": [ + 2.5805570910057267, + 2.156519433435745, + 2.9014953894219326, + 2.79020996377203, + 2.668130106163131, + 2.7525474999664024, + 2.7803352334452627, + 2.6637293064206675, + 2.7906344921618795, + 2.8186717774490138, + 2.8604440317955397, + 2.87640038092434, + 2.968141462608906 + ], + "raw_time_brier": 0.011681784589130145, + "raw_timepoint_brier": [ + 0.002592783421278, + 0.004063552711158991, + 0.0077097672037780285, + 0.00907724630087614, + 0.009801874868571758, + 0.011219172738492489, + 0.01264471746981144, + 0.012997687794268131, + 0.01473718136548996, + 0.015425226651132107, + 0.0165017768740654, + 0.01719440333545208, + 0.01789780892431736 + ], + "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.6255015659273409, + "normalized_timepoint_brier": [ + 1.0593868792057037, + 1.0594045743346214, + 1.4121747808530927, + 1.7654037801548839, + 1.7654983093962073, + 1.7656462732702494, + 1.7661121673882008, + 1.7672934336587787, + 1.767616835422814, + 1.7682958859950304, + 1.7447517127577674, + 1.7449538504890285, + 1.744981874129052 + ], + "raw_time_brier": 0.0016309861451960527, + "raw_timepoint_brier": [ + 0.0010593868792057037, + 0.0010594045743346214, + 0.0014121747808530927, + 0.0017654037801548839, + 0.0017654983093962073, + 0.0017656462732702494, + 0.0017661121673882008, + 0.0017672934336587787, + 0.001767616835422814, + 0.0017682958859950304, + 0.0017685162601992488, + 0.0017687211511656642, + 0.00176874955650419 + ], + "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.3369175785170673, + "normalized_timepoint_brier": [ + 1.0647530434653163, + 1.7751064151525497, + 1.787517685443163, + 2.453057863613716, + 2.305561115659012, + 2.175268574882938, + 2.3449928377789284, + 2.436791560740439, + 2.580803690103961, + 2.8027949554812728, + 2.8836086931412725, + 2.8847624900497215, + 2.8849095952095873 + ], + "raw_time_brier": 0.002956633482916424, + "raw_timepoint_brier": [ + 0.0010647530434653163, + 0.0017751064151525497, + 0.001787517685443163, + 0.0025095019955188036, + 0.0025131080765277147, + 0.002516808221116662, + 0.0028703410644084215, + 0.0031867055222392082, + 0.00354781118221581, + 0.0038999312091618776, + 0.004253676626831293, + 0.004255378618836403, + 0.004255595616996288 + ], + "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.4691859621922966, + "normalized_timepoint_brier": [ + 0.712007749825716, + 0.6910130830322692, + 0.4863788398756698, + 0.5856155643256802, + 0.4981426005220545, + 0.45222897242452, + 0.41243292334084447, + 0.3712542289880254, + 0.36251797044026357, + 0.3497507087547637, + 0.33900382340055873, + 0.4232981263378261, + 0.4157729172316645 + ], + "raw_time_brier": 0.0010725127067416906, + "raw_timepoint_brier": [ + 0.000712007749825716, + 0.0007157088839448988, + 0.0007227674941532314, + 0.0010848356178030372, + 0.0010886344825848937, + 0.0010936508188024163, + 0.0011002793908119202, + 0.0011076839873567224, + 0.001111672492697835, + 0.0011189004871994257, + 0.00112390227150172, + 0.0014806907856836915, + 0.0014819307252764702 + ], + "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.8623525720582608, + "normalized_timepoint_brier": [ + 0.3521270991768688, + 0.705089361872524, + 1.0563847608864307, + 1.7609135247766972, + 2.1130309905856848, + 2.46624369174242, + 2.465911442413926, + 2.3167758152550717, + 2.3809843171164857, + 2.223872808280545, + 2.194976053402388, + 2.087133067933047, + 2.0871405033153008 + ], + "raw_time_brier": 0.002110437402734533, + "raw_timepoint_brier": [ + 0.0003521270991768688, + 0.000705089361872524, + 0.0010563847608864307, + 0.0017609135247766972, + 0.0021130309905856848, + 0.00246624369174242, + 0.002465911442413926, + 0.0024653300642967224, + 0.0028105536475777626, + 0.0028097250033169985, + 0.0028097310569137335, + 0.0028103177901357412, + 0.0028103278018534184 + ], + "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.8493100111830271, + "normalized_timepoint_brier": [ + 0.35285003832541406, + 0.7043518126010895, + 0.7042843499220908, + 0.7044968078844249, + 0.7053930894471705, + 1.0583798866719007, + 1.0593406623229384, + 1.0595351923257113, + 1.0599095840007067, + 0.9818109878056396, + 0.9121151682320547, + 0.8869349685294369, + 0.8516275973107751 + ], + "raw_time_brier": 0.0008963357339290759, + "raw_timepoint_brier": [ + 0.00035285003832541406, + 0.0007043518126010895, + 0.0007042843499220908, + 0.0007044968078844249, + 0.0007053930894471705, + 0.0010583798866719007, + 0.0010593406623229384, + 0.0010595351923257113, + 0.0010599095840007067, + 0.001060549053363502, + 0.001060936599969864, + 0.001061087823472917, + 0.0010612496407702565 + ], + "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.003929021347349874, + "normalized_timepoint_brier": [ + 0.0002578611315584567, + 0.001257648136743228, + 0.002061323584712227, + 0.0031595459404343273, + 0.0038711909837729763, + 0.004272407643517241, + 0.004467882371415967, + 0.004555359699349057, + 0.005238712080287076, + 0.005376337263125951, + 0.005382158555125541, + 0.005579229994673166, + 0.0055976201308331475 + ], + "raw_time_brier": 4.62418849932734e-06, + "raw_timepoint_brier": [ + 2.578611315584567e-07, + 1.257648136743228e-06, + 2.061323584712227e-06, + 3.1595459404343273e-06, + 3.871190983772976e-06, + 4.402954346005572e-06, + 4.752561835630331e-06, + 4.996926691092085e-06, + 6.267906883294927e-06, + 6.6999423324887175e-06, + 6.975156338739907e-06, + 7.693037332501262e-06, + 7.718394954281393e-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.0010305557693415367, + 0.0010637168664143107, + 0.0010969335070962949, + 0.001196459508985165, + 0.0012461908553320902, + 0.0012959774906849079, + 0.0013788708011403506, + 0.001378870801140375 + ] + }, + "L76": { + "normalized_time_brier": 2.224806195764738, + "normalized_timepoint_brier": [ + 2.145749982446432, + 2.2883601379502148, + 1.9895394692575317, + 2.320887474920105, + 2.110622261344348, + 2.2086759096556263, + 2.400736897760998, + 2.3188854463596296, + 2.2431791282388986, + 2.154495734077637, + 2.1046312497583815, + 2.318355400517133, + 2.3183614526546457 + ], + "raw_time_brier": 0.0040657893181420286, + "raw_timepoint_brier": [ + 0.002145749982446432, + 0.0028598052449524403, + 0.002860291860997677, + 0.0035746314097195864, + 0.0035749252419918776, + 0.003929619677364826, + 0.004640305880457163, + 0.004640527535229921, + 0.004641942214220762, + 0.004642176907509565, + 0.00464258948341012, + 0.005351340863853693, + 0.005351354833692312 + ], + "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.554966861836142, + "normalized_timepoint_brier": [ + 2.8479353059083223, + 2.8721691889574417, + 2.5085300482294834, + 2.45356599712494, + 2.3897401897466133, + 2.5144789779607337, + 2.5221550147006164, + 2.4670193287044766, + 2.4705548013509224, + 2.496885474855869, + 2.5431323876733436, + 2.570662386562086, + 2.5577401020949946 + ], + "raw_time_brier": 0.006233325837036738, + "raw_timepoint_brier": [ + 0.0028479353059083223, + 0.0035372294951230288, + 0.0038914158940315247, + 0.004920839332044125, + 0.005274886265397072, + 0.005972039420157671, + 0.00666820676997304, + 0.007018579635769129, + 0.007359545677900314, + 0.007689576130360365, + 0.008385458961129189, + 0.008734185248613358, + 0.008733337745070457 + ], + "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.737480176406777, + "normalized_timepoint_brier": [ + 0.7176175131462514, + 1.086283940821886, + 1.4243876794353127, + 1.7574374796822667, + 1.4892166069668897, + 2.015866028577596, + 1.8266893883285205, + 2.130139713268231, + 2.074361438786104, + 2.0850698278755235, + 1.962157200354845, + 2.0089310237014453, + 2.00908445234323 + ], + "raw_time_brier": 0.002941031282087072, + "raw_timepoint_brier": [ + 0.0007176175131462514, + 0.001086283940821886, + 0.0014243876794353127, + 0.0017574374796822667, + 0.001774019212462008, + 0.0028465057257562876, + 0.002858330262824893, + 0.0039115105755627155, + 0.003914573695510626, + 0.004288136959075928, + 0.004301178734749556, + 0.004676533862948418, + 0.004676891025155783 + ], + "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.5222366081198655, + "normalized_timepoint_brier": [ + 0.0005712957431569521, + 0.35682832822203636, + 0.35803939681500196, + 1.0669970652088523, + 1.7728349193930626, + 1.7732060514390469, + 1.7741030314937234, + 1.7761734779924154, + 1.7455175358183543, + 2.2556647457701224, + 2.3962502729977553, + 2.271218169594879, + 2.2416716150698472 + ], + "raw_time_brier": 0.0016671570160593336, + "raw_timepoint_brier": [ + 5.712957431569521e-07, + 0.00035682832822203636, + 0.00035803939681500196, + 0.0010669970652088523, + 0.0017728349193930626, + 0.0017732060514390469, + 0.0017741030314937234, + 0.0017761734779924154, + 0.001778219360858202, + 0.002486160025000572, + 0.002840939676389098, + 0.002844293834641576, + 0.0028446747455745935 + ], + "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.3388548495343366, + "normalized_timepoint_brier": [ + 1.4730162220075727, + 2.9196294490247965, + 3.16309598184047, + 2.747550829872035, + 2.487160479916751, + 2.1341065911727983, + 2.3149594120685166, + 2.389650887036496, + 2.2336369570656567, + 2.19820769418794, + 2.174104509485617, + 2.0262003225503293, + 2.1437937077174034 + ], + "raw_time_brier": 0.004084854001680819, + "raw_timepoint_brier": [ + 0.0014730162220075727, + 0.0029196294490247965, + 0.003649418707937002, + 0.003649358404800296, + 0.0036503735464066267, + 0.0036529472563415766, + 0.00436561880633235, + 0.004714065697044134, + 0.0047170501202344894, + 0.004718881566077471, + 0.005082520190626383, + 0.005088931415230036, + 0.005421290639787912 + ], + "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.8254746722881324, + "normalized_timepoint_brier": [ + 0.35848806146532297, + 0.3585332597140223, + 0.7155748317018151, + 0.7152645266614854, + 0.7152282050810754, + 0.7153175538405776, + 0.7153928163461387, + 1.0726714972406626, + 1.0726932669058442, + 1.0727292392402887, + 1.0729755740612745, + 1.0731135262176394, + 1.0731883812695742 + ], + "raw_time_brier": 0.0008254746722881324, + "raw_timepoint_brier": [ + 0.00035848806146532297, + 0.0003585332597140223, + 0.0007155748317018151, + 0.0007152645266614854, + 0.0007152282050810754, + 0.0007153175538405776, + 0.0007153928163461387, + 0.0010726714972406626, + 0.0010726932669058442, + 0.0010727292392402887, + 0.0010729755740612745, + 0.0010731135262176394, + 0.0010731883812695742 + ], + "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.3846064064404415, + "normalized_timepoint_brier": [ + 0.7310720393434167, + 1.4615771360695362, + 1.8270004075020552, + 2.1911361254751682, + 2.5581081863492727, + 2.922036685049534, + 2.8317686387494816, + 2.535496964700457, + 2.5493083986770366, + 3.0186138634924164, + 2.9246199577911884, + 2.7511188632010524, + 2.6980260173251263 + ], + "raw_time_brier": 0.0031420692461184585, + "raw_timepoint_brier": [ + 0.0007310720393434167, + 0.0014615771360695362, + 0.0018270004075020552, + 0.0021911361254751682, + 0.0025581081863492727, + 0.002922036685049534, + 0.0032836657483130693, + 0.0032852590084075928, + 0.0036500615533441305, + 0.004733031615614891, + 0.004734834656119347, + 0.00473438436165452, + 0.004734732676297426 + ], + "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.066676907781435, + "normalized_timepoint_brier": [ + 2.9834629967808723, + 3.1989577579916904, + 3.0453009463403284, + 3.4526156088502153, + 3.0942554935083257, + 3.1362114227679823, + 3.140432948599129, + 3.1636757624355547, + 3.0235919604878716, + 2.9747142487922664, + 2.907391447746932, + 2.87828439820084, + 2.8679048086566463 + ], + "raw_time_brier": 0.010081332785865435, + "raw_timepoint_brier": [ + 0.0029834629967808723, + 0.005582919344305992, + 0.0063220723532140255, + 0.008908988907933235, + 0.009274440817534924, + 0.009997595101594925, + 0.011099586263298988, + 0.01184111274778843, + 0.01220703125, + 0.01257530227303505, + 0.012944944202899933, + 0.013659865595400333, + 0.013660004362463951 + ], + "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.5801903160038189, + "normalized_timepoint_brier": [ + 0.3543193161021918, + 0.35451038274914026, + 0.35585349542088807, + 0.35741415922529995, + 0.35916559863835573, + 0.3605402889661491, + 0.36353926407173276, + 0.36707980325445533, + 0.720202864613384, + 0.7225091103464365, + 1.074201543815434, + 1.0765030747279525, + 1.076635206118226 + ], + "raw_time_brier": 0.0005801903160038189, + "raw_timepoint_brier": [ + 0.0003543193161021918, + 0.00035451038274914026, + 0.00035585349542088807, + 0.00035741415922529995, + 0.00035916559863835573, + 0.0003605402889661491, + 0.00036353926407173276, + 0.00036707980325445533, + 0.000720202864613384, + 0.0007225091103464365, + 0.001074201543815434, + 0.0010765030747279525, + 0.001076635206118226 + ], + "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.4033747823711646, + "normalized_timepoint_brier": [ + 1.5966871861755585, + 1.6440082260159596, + 1.9922530450125397, + 2.38777364680884, + 2.3050406342128427, + 2.5120332486342245, + 2.4586162844643535, + 2.513100948117442, + 2.5861491885737506, + 2.6075771413454265, + 2.706545312827598, + 2.9591777410422484, + 2.9749095675943558 + ], + "raw_time_brier": 0.010077432030811906, + "raw_timepoint_brier": [ + 0.0018122871406376362, + 0.0029102384578436613, + 0.004721724893897772, + 0.007253060583025217, + 0.007985981181263924, + 0.009432344697415829, + 0.010155650787055492, + 0.011237706057727337, + 0.012313376180827618, + 0.013392576947808266, + 0.014821672812104225, + 0.01731208525598049, + 0.017657911404967308 + ], + "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.5213489863448418, + "normalized_timepoint_brier": [ + 0.3563299833331257, + 0.35638734698295593, + 0.35644907620735466, + 0.3565582155715674, + 0.35679692518897355, + 0.35723234759643674, + 0.3573743160814047, + 0.7131180609576404, + 0.7131121819838881, + 0.7132295868359506, + 0.7133324979804456, + 0.7138065993785858, + 0.7138096843846142 + ], + "raw_time_brier": 0.0005213489863448418, + "raw_timepoint_brier": [ + 0.0003563299833331257, + 0.00035638734698295593, + 0.00035644907620735466, + 0.0003565582155715674, + 0.00035679692518897355, + 0.00035723234759643674, + 0.0003573743160814047, + 0.0007131180609576404, + 0.0007131121819838881, + 0.0007132295868359506, + 0.0007133324979804456, + 0.0007138065993785858, + 0.0007138096843846142 + ], + "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.3664251789693251, + "normalized_timepoint_brier": [ + 0.00011832550939061548, + 0.3554711292963475, + 0.7109105936251581, + 1.0665255831554532, + 1.0670797200873494, + 1.4216182753443718, + 1.4217108255252242, + 1.4220393495634198, + 1.4222869649529457, + 1.4223855687305331, + 2.4849867913872004, + 2.484190233674003, + 2.4842039657498294 + ], + "raw_time_brier": 0.0013665624487499118, + "raw_timepoint_brier": [ + 1.1832550939061548e-07, + 0.0003554711292963475, + 0.0007109105936251581, + 0.0010665255831554532, + 0.0010670797200873494, + 0.0014216182753443718, + 0.0014217108255252242, + 0.0014220393495634198, + 0.0014222869649529457, + 0.0014223855687305331, + 0.0024849867913872004, + 0.002485082484781742, + 0.0024850962217897177 + ], + "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.7436576743812089, + "normalized_timepoint_brier": [ + 0.36640127655118704, + 0.7340361480601132, + 1.0982588864862919, + 1.1037716176360846, + 1.4677150174975395, + 1.7498110360509587, + 2.1556477898405166, + 2.392036256552369, + 2.472896549119555, + 2.3642443379760167, + 2.341268663631992, + 2.210695409469055, + 2.2107667780840363 + ], + "raw_time_brier": 0.0024334091934948587, + "raw_timepoint_brier": [ + 0.00036640127655118704, + 0.0007340361480601132, + 0.0010982588864862919, + 0.0011037716176360846, + 0.0014677150174975395, + 0.0018214171286672354, + 0.002537847263738513, + 0.003264510538429022, + 0.0036275663878768682, + 0.003629192942753434, + 0.003992465790361166, + 0.003995503764599562, + 0.003995632752776146 + ], + "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.7702016223483893, + "normalized_timepoint_brier": [ + 0.7379871676675975, + 0.7157277625571288, + 0.6597798991735931, + 0.7006253744267784, + 0.832003093491794, + 0.8566394792766794, + 0.9473675334834303, + 0.8685197083120602, + 0.7902030400689408, + 0.7500603899461926, + 0.705318672435242, + 0.7273631847446557, + 0.7210257849449679 + ], + "raw_time_brier": 0.0028805789009381374, + "raw_timepoint_brier": [ + 0.0007379871676675975, + 0.001110738841816783, + 0.001488527632318437, + 0.0018572814296931028, + 0.002590749878436327, + 0.00296096527017653, + 0.0036956744734197855, + 0.0036995827686041594, + 0.0037038796581327915, + 0.0037075926084071398, + 0.0037145656533539295, + 0.0040893228724598885, + 0.0040906574577093124 + ], + "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.8253703767550321, + "normalized_timepoint_brier": [ + 0.000486452506720525, + 0.0012658630339501542, + 0.3603829536587, + 0.36160953459329903, + 0.36203849595040083, + 0.7211468764580786, + 0.7224879809655249, + 1.079958281479776, + 1.0812993859872222, + 1.3890803601931676, + 1.6267645436560403, + 1.5116208535062392, + 1.511673315826298 + ], + "raw_time_brier": 0.0008854343638780357, + "raw_timepoint_brier": [ + 4.86452506720525e-07, + 1.2658630339501542e-06, + 0.0003603829536587, + 0.00036160953459329903, + 0.00036203849595040083, + 0.0007211468764580786, + 0.0007224879809655249, + 0.001079958281479776, + 0.0010812993859872222, + 0.001437292667105794, + 0.0017934850184246898, + 0.0017945654690265656, + 0.001794627751223743 + ], + "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.1307339306112403, + "normalized_timepoint_brier": [ + 1.143110000209849, + 0.9312356969601913, + 1.1789607591689217, + 1.2238512616307597, + 1.1547082961527342, + 1.1262391827472236, + 1.134251470791702, + 1.18230942687863, + 1.134701869357984, + 1.1327963143249917, + 1.1390579118507282, + 1.1156791768057188, + 1.102639731066691 + ], + "raw_time_brier": 0.012648037616879894, + "raw_timepoint_brier": [ + 0.0038759775925427675, + 0.005050562787801027, + 0.008510017767548561, + 0.010415593162178993, + 0.011152494698762894, + 0.012245907448232174, + 0.01339056808501482, + 0.014891169033944607, + 0.01524377427995205, + 0.01638481765985489, + 0.01752798818051815, + 0.017866646870970726, + 0.017868971452116966 + ], + "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.8416911891365756, + "normalized_timepoint_brier": [ + 0.001883935283331084, + 0.5428884915804315, + 0.9541779969796857, + 0.796337819119383, + 0.8651090303641207, + 0.8723581253562389, + 0.9124352405783314, + 0.969429160436316, + 0.974560867344508, + 0.920501689502313, + 0.9590711038267223, + 1.0503812289354104, + 1.1228507694686893 + ], + "raw_time_brier": 0.0027473557129794176, + "raw_timepoint_brier": [ + 1.883935283331084e-06, + 0.0007229600450955331, + 0.0017843852983787656, + 0.0017837082268670201, + 0.002141206758096814, + 0.0024956820998340845, + 0.0028552806470543146, + 0.003212392097339034, + 0.003572165034711361, + 0.003574139904230833, + 0.003932421561330557, + 0.004640831146389246, + 0.0049985675141215324 + ], + "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.9786963929246801, + "normalized_timepoint_brier": [ + 1.6807562914308083, + 2.1257787335161105, + 2.119618205282689, + 1.8910162995568678, + 1.9252600168517298, + 1.7941697685371398, + 1.9529786194464902, + 1.8992748522135388, + 1.9183382500810973, + 2.1100946206731406, + 2.143653290536713, + 2.0905923957811865, + 2.0715217641133368 + ], + "raw_time_brier": 0.010283045130423628, + "raw_timepoint_brier": [ + 0.0025777060072869062, + 0.005512502044439316, + 0.006967626512050629, + 0.0069696358405053616, + 0.008395313285291195, + 0.008754581212997437, + 0.010575016029179096, + 0.011299969628453255, + 0.012041829526424408, + 0.014152676798403263, + 0.015225619077682495, + 0.015603357926011086, + 0.015603752806782722 + ], + "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.2977847858402916, + "normalized_timepoint_brier": [ + 0.7475096499547362, + 1.8654352752491832, + 2.2526104003190994, + 2.6051470289285388, + 2.2071767185401816, + 2.2964498192104617, + 2.4754402477592365, + 2.6675101544329207, + 2.6011342586108546, + 2.3594450898226693, + 2.6173621188288574, + 2.595231833563096, + 2.5807496207039486 + ], + "raw_time_brier": 0.0040422321225588136, + "raw_timepoint_brier": [ + 0.0007475096499547362, + 0.0018654352752491832, + 0.0022526104003190994, + 0.0029991506598889828, + 0.003039028961211443, + 0.00340167130343616, + 0.004139503464102745, + 0.004922638181596994, + 0.004935211036354303, + 0.00500798225402832, + 0.006146179512143135, + 0.006542161572724581, + 0.006549935322254896 + ], + "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.4244397991395692, + "normalized_timepoint_brier": [ + 0.0006155574965305277, + 0.35441943327896297, + 1.060109818354249, + 1.060541020706296, + 1.0611762991175056, + 1.7636236734688282, + 1.765212626196444, + 1.7667062347754836, + 2.121769590303302, + 2.0127642329314717, + 1.9228126442903037, + 1.8397067136312428, + 1.78825954426378 + ], + "raw_time_brier": 0.00149753349787191, + "raw_timepoint_brier": [ + 6.155574965305277e-07, + 0.00035441943327896297, + 0.001060109818354249, + 0.001060541020706296, + 0.0010611762991175056, + 0.0017636236734688282, + 0.001765212626196444, + 0.0017667062347754836, + 0.002121769590303302, + 0.0021270010620355606, + 0.002128527732565999, + 0.00212896429002285, + 0.0021292681340128183 + ], + "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.9108363110294173, + "normalized_timepoint_brier": [ + 0.7214115466922522, + 0.7215444347821176, + 1.0808303486555815, + 2.522661816328764, + 2.522208960726857, + 2.5224562268704176, + 2.398621154096282, + 2.1882708323421523, + 2.1568983348924924, + 2.0690282340621997, + 2.013890738637213, + 1.961460870842913, + 1.9615885444531838 + ], + "raw_time_brier": 0.0021368220332078636, + "raw_timepoint_brier": [ + 0.0007214115466922522, + 0.0007215444347821176, + 0.0010808303486555815, + 0.002522661816328764, + 0.002522208960726857, + 0.0025224562268704176, + 0.002523759612813592, + 0.002524816896766424, + 0.002525263698771596, + 0.0025274234358221292, + 0.0025282702408730984, + 0.0025289373006671667, + 0.00252910191193223 + ], + "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.557057922922873, + "normalized_timepoint_brier": [ + 1.0606294963508844, + 1.4134899247437716, + 2.8328627813607454, + 2.834178955752337, + 2.8879481144970307, + 3.14540014868269, + 3.072784471309021, + 2.787038230420339, + 2.663213791236575, + 2.6660707040611538, + 2.5626549893456536, + 2.593653034573194, + 2.721828355663959 + ], + "raw_time_brier": 0.004163655434520199, + "raw_timepoint_brier": [ + 0.0010606294963508844, + 0.0014134899247437716, + 0.0028328627813607454, + 0.0031891970429569483, + 0.0038793717976659536, + 0.004594011697918177, + 0.004951188340783119, + 0.0049578603357076645, + 0.004960402846336365, + 0.00532276788726449, + 0.005330533254891634, + 0.005655114073306322, + 0.005980091169476509 + ], + "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.7837158425068692, + "normalized_timepoint_brier": [ + 0.3547260130289942, + 0.35473465686663985, + 0.35475686308927834, + 0.3548066015355289, + 0.7095561595633626, + 0.7095839246176183, + 1.0639890097081661, + 1.063960837200284, + 1.063999836333096, + 1.0640756227076054, + 1.064162002876401, + 1.0313392227750995, + 0.998615202287226 + ], + "raw_time_brier": 0.0007912895212379786, + "raw_timepoint_brier": [ + 0.0003547260130289942, + 0.00035473465686663985, + 0.00035475686308927834, + 0.0003548066015355289, + 0.0007095561595633626, + 0.0007095839246176183, + 0.0010639890097081661, + 0.001063960837200284, + 0.001063999836333096, + 0.0010640756227076054, + 0.001064162002876401, + 0.0010642034467309713, + 0.0010642088018357754 + ], + "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.8288446593950726, + "normalized_timepoint_brier": [ + 0.0016017432926673791, + 0.3570465778466314, + 0.35731735988520086, + 0.35790668334811926, + 0.7137366337701678, + 0.7138263899832964, + 0.7139693479984999, + 1.066343393176794, + 1.0665443260222673, + 1.4193711103871465, + 1.3943512075008129, + 1.3272006146692403, + 1.2857651842551 + ], + "raw_time_brier": 0.0008481930741656749, + "raw_timepoint_brier": [ + 1.6017432926673791e-06, + 0.0003570465778466314, + 0.00035731735988520086, + 0.00035790668334811926, + 0.0007137366337701678, + 0.0007138263899832964, + 0.0007139693479984999, + 0.001066343393176794, + 0.0010665443260222673, + 0.0014193711103871465, + 0.0014194364193826914, + 0.0014196981210261583, + 0.001419711858034134 + ], + "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.03858907871808, + "normalized_timepoint_brier": [ + 1.059953705407679, + 1.4165218453854322, + 1.4172870432958007, + 1.4201065059751272, + 1.424789079464972, + 1.7657759599387646, + 2.4699291680008173, + 2.468270715326071, + 2.469558035954833, + 2.4702646769583225, + 2.4703918024897575, + 2.824382157996297, + 2.8244273271411657 + ], + "raw_time_brier": 0.00203858907871808, + "raw_timepoint_brier": [ + 0.001059953705407679, + 0.0014165218453854322, + 0.0014172870432958007, + 0.0014201065059751272, + 0.001424789079464972, + 0.0017657759599387646, + 0.0024699291680008173, + 0.002468270715326071, + 0.002469558035954833, + 0.0024702646769583225, + 0.0024703918024897575, + 0.002824382157996297, + 0.0028244273271411657 + ], + "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.1390636388795787, + "normalized_timepoint_brier": [ + 0.7257255492731929, + 0.7312895613722503, + 1.455108169466257, + 1.4980847020393033, + 1.7966503919246692, + 1.7550811413938774, + 2.1834993498037356, + 2.659789488374418, + 3.1159796713102064, + 3.0899125470390523, + 3.0118326196810163, + 2.8924675836689318, + 2.892406530087613 + ], + "raw_time_brier": 0.004285743186930911, + "raw_timepoint_brier": [ + 0.0007257255492731929, + 0.0007312895613722503, + 0.001455108169466257, + 0.001826994470320642, + 0.002555479761213064, + 0.0029118068050593138, + 0.00399155355989933, + 0.005355863831937313, + 0.006747533567249775, + 0.007107807323336601, + 0.007436463143676519, + 0.007434596307575703, + 0.00743443937972188 + ], + "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.217270064468324, + "normalized_timepoint_brier": [ + 1.0609922464936972, + 1.0622745612636209, + 1.7567443428561091, + 2.100057201460004, + 2.4455247912555933, + 2.4447396863251925, + 2.4442188441753387, + 2.4437487591058016, + 2.7918866835534573, + 2.7177930476747214, + 2.6334825780464914, + 2.4793379299766003, + 2.4437101659015843 + ], + "raw_time_brier": 0.0022881651440492044, + "raw_timepoint_brier": [ + 0.0010609922464936972, + 0.0010622745612636209, + 0.0017567443428561091, + 0.002100057201460004, + 0.0024455247912555933, + 0.0024447396863251925, + 0.0024442188441753387, + 0.0024437487591058016, + 0.0027918866835534573, + 0.0027980292215943336, + 0.0027986548375338316, + 0.0027994494885206223, + 0.002799826208502054 + ], + "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.835200837285613, + "normalized_timepoint_brier": [ + 1.0083662564699336, + 0.8987436762924536, + 0.880275922817928, + 0.8662165633112381, + 0.8005390236637331, + 0.7888879345120755, + 0.8008902916903746, + 0.8026103810568785, + 0.8067415573435515, + 0.79534884773919, + 0.8133817761988075, + 0.7962117688041022, + 0.7993968848127029 + ], + "raw_time_brier": 0.02925880439579487, + "raw_timepoint_brier": [ + 0.010624097660183907, + 0.016960587352514267, + 0.021535813808441162, + 0.02467331290245056, + 0.025814324617385864, + 0.02782985381782055, + 0.030550295487046242, + 0.0326654426753521, + 0.034764908254146576, + 0.036194439977407455, + 0.03887486830353737, + 0.03974194824695587, + 0.04013456404209137 + ], + "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.950605734503185, + "normalized_timepoint_brier": [ + 1.0730053217275717, + 0.8845098826159663, + 0.9044104968575429, + 1.0894200690396423, + 1.0156180097879626, + 0.9382933849855093, + 0.9320816015284031, + 0.9621983557640746, + 0.9580653885005398, + 0.9191621499683603, + 0.9069433818857194, + 0.8903755658439062, + 0.8837909400362087 + ], + "raw_time_brier": 0.013022455422637554, + "raw_timepoint_brier": [ + 0.004409327171742916, + 0.005904714111238718, + 0.008000842295587063, + 0.011460324749350548, + 0.01214728131890297, + 0.012618373148143291, + 0.01370825245976448, + 0.015200607478618622, + 0.016311660408973694, + 0.016690542921423912, + 0.017362898215651512, + 0.017740409821271896, + 0.017736686393618584 + ], + "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.7372005323951063, + "normalized_timepoint_brier": [ + 2.1371489856392145, + 2.491976832970977, + 2.490981249138713, + 2.8469967655837536, + 2.8468340169638395, + 2.84660910256207, + 2.8464822098612785, + 2.846409333869815, + 2.8461869806051254, + 2.84592155367136, + 2.845924347639084, + 2.8460633475333452, + 2.846072195097804 + ], + "raw_time_brier": 0.0027372005323951063, + "raw_timepoint_brier": [ + 0.0021371489856392145, + 0.002491976832970977, + 0.002490981249138713, + 0.0028469967655837536, + 0.0028468340169638395, + 0.00284660910256207, + 0.0028464822098612785, + 0.002846409333869815, + 0.0028461869806051254, + 0.00284592155367136, + 0.002845924347639084, + 0.0028460633475333452, + 0.002846072195097804 + ], + "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.2083151294862782, + "normalized_timepoint_brier": [ + 0.7057853508740664, + 1.408315496519208, + 1.7551142955198884, + 1.4395665869783028, + 1.4464418630305682, + 1.2697418550327944, + 1.173651711500137, + 1.1114526840196588, + 1.2228936088550015, + 1.1111897306333056, + 1.0474651734681906, + 1.0116448462029588, + 1.004833480687535 + ], + "raw_time_brier": 0.002016175502481369, + "raw_timepoint_brier": [ + 0.0007057853508740664, + 0.001408315496519208, + 0.0017551142955198884, + 0.0017520779510959983, + 0.00209744181483984, + 0.0020945726428180933, + 0.002092174021527171, + 0.002092165406793356, + 0.0024443042930215597, + 0.0024425070732831955, + 0.002441582502797246, + 0.002442031865939498, + 0.002442208817228675 + ], + "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.0216845791329843, + "normalized_timepoint_brier": [ + 1.0712809162214398, + 1.0712736984714866, + 0.9082056993191151, + 0.7311936974890819, + 0.8494837145063875, + 0.7661978939437939, + 0.878302778656454, + 0.9964884824129973, + 1.1175514421441666, + 1.199913259206625, + 1.2275179241044898, + 1.182211105497036, + 1.2822789167557225 + ], + "raw_time_brier": 0.00203078743428565, + "raw_timepoint_brier": [ + 0.0010712809162214398, + 0.0010712736984714866, + 0.0010717277182266116, + 0.001072090002708137, + 0.0014312057755887508, + 0.0014325703959912062, + 0.0017897274810820818, + 0.00214767106808722, + 0.002502365503460169, + 0.0028478968888521194, + 0.003201497020199895, + 0.0032021058723330498, + 0.0035588243044912815 + ], + "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.7080655955612967, + "normalized_timepoint_brier": [ + 1.411945791915059, + 2.114401664584875, + 2.4653540458530188, + 2.8178223874419928, + 3.1717063393443823, + 3.171968972310424, + 3.173375967890024, + 3.107530786377632, + 2.8969785918975886, + 2.74722073484623, + 2.836254608749755, + 2.645118299082834, + 2.6451745520030445 + ], + "raw_time_brier": 0.003116498002782464, + "raw_timepoint_brier": [ + 0.001411945791915059, + 0.002114401664584875, + 0.0024653540458530188, + 0.0028178223874419928, + 0.0031717063393443823, + 0.003171968972310424, + 0.003173375967890024, + 0.0035195504315197468, + 0.0035220314748585224, + 0.0035224799066781998, + 0.003872474655508995, + 0.0038756399881094694, + 0.003875722410157323 + ], + "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.443086562077409, + "normalized_timepoint_brier": [ + 1.7746046651154757, + 2.480211667716503, + 2.9745620198762865, + 2.8133601423495946, + 2.636955478692282, + 2.424053297607666, + 2.2672176839631324, + 2.3596063930675175, + 2.4216151947549696, + 2.4140963130053152, + 2.3717256810855005, + 2.438887781603232, + 2.3832289881688404 + ], + "raw_time_brier": 0.0037889801180706574, + "raw_timepoint_brier": [ + 0.0017746046651154757, + 0.002480211667716503, + 0.003185124834999442, + 0.003529788926243782, + 0.0035285535268485546, + 0.0035265434999018908, + 0.003525433363392949, + 0.003866184502840042, + 0.004209795501083136, + 0.004559249617159367, + 0.004558370914310217, + 0.005256905686110258, + 0.00525597482919693 + ], + "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.846964396278299, + "normalized_timepoint_brier": [ + 0.7044760244496724, + 0.7959175297064207, + 0.8926639703201339, + 0.9204093084039382, + 0.9136193461024945, + 0.8741467158686527, + 0.889029815578487, + 0.8643609856579366, + 0.8591336384557788, + 0.8537400676285949, + 0.8310848818633104, + 0.8077237235088235, + 0.8042311440736433 + ], + "raw_time_brier": 0.023797992473611466, + "raw_timepoint_brier": [ + 0.006274575367569923, + 0.01199021004140377, + 0.01692834123969078, + 0.020461659878492355, + 0.022986717522144318, + 0.02439028210937977, + 0.026597633957862854, + 0.027671704068779945, + 0.029164474457502365, + 0.030269570648670197, + 0.03064088337123394, + 0.030997587367892265, + 0.03100026212632656 + ], + "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.138384273906021, + "normalized_timepoint_brier": [ + 1.815941590728542, + 1.7693513811423582, + 2.1474548846140333, + 2.310833672190939, + 2.0164463640071166, + 2.1276959206121737, + 2.0412297593256037, + 2.2142199358035626, + 2.2754020934227857, + 2.253427565270356, + 2.335587731809736, + 2.2456773500547813, + 2.2457273117962844 + ], + "raw_time_brier": 0.006255278184723396, + "raw_timepoint_brier": [ + 0.001898392103612423, + 0.0026596011593937874, + 0.004169813822954893, + 0.004932334180921316, + 0.004938675090670586, + 0.006061670370399952, + 0.006065579131245613, + 0.007193115074187517, + 0.00794234313070774, + 0.008333359844982624, + 0.009039565920829773, + 0.0090419827029109, + 0.009042183868587017 + ], + "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.1179229190510673, + "normalized_timepoint_brier": [ + 0.35390068660490215, + 0.35436125472187996, + 0.7033728179521859, + 0.7033246220089495, + 0.7033671718090773, + 0.7038529729470611, + 1.0518368799239397, + 1.3879601610824466, + 1.5868829666922433, + 1.8584160713893243, + 1.7252445631351596, + 1.7002991905795999, + 1.7001785888171073 + ], + "raw_time_brier": 0.0012163739861884655, + "raw_timepoint_brier": [ + 0.00035390068660490215, + 0.00035436125472187996, + 0.0007033728179521859, + 0.0007033246220089495, + 0.0007033671718090773, + 0.0007038529729470611, + 0.0010518368799239397, + 0.0013879601610824466, + 0.0016914731822907925, + 0.002042848151177168, + 0.0020397768821567297, + 0.0020384658128023148, + 0.0020383212249726057 + ], + "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.5456502263147671, + "normalized_timepoint_brier": [ + 0.7145251729525626, + 1.0723016457632184, + 1.074819709174335, + 1.0763822356238961, + 1.077837310731411, + 1.0793987894430757, + 1.7906284192577004, + 1.792891533114016, + 1.7932583577930927, + 2.151011722162366, + 2.1539581939578056, + 2.1581538021564484, + 2.1582860499620438 + ], + "raw_time_brier": 0.001545650226314767, + "raw_timepoint_brier": [ + 0.0007145251729525626, + 0.0010723016457632184, + 0.001074819709174335, + 0.0010763822356238961, + 0.001077837310731411, + 0.0010793987894430757, + 0.0017906284192577004, + 0.001792891533114016, + 0.0017932583577930927, + 0.002151011722162366, + 0.0021539581939578056, + 0.0021581538021564484, + 0.0021582860499620438 + ], + "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.2687995057114256, + "normalized_timepoint_brier": [ + 0.07742962770862505, + 0.7976142806001008, + 1.0367092909291387, + 1.0363516630604863, + 1.236545154824853, + 1.2303044786676764, + 1.5839241677895188, + 1.5840649139136076, + 1.5817919047549367, + 1.5820410335436463, + 1.5823032008484006, + 1.582619035616517, + 1.5826948219910264 + ], + "raw_time_brier": 0.0012687995057114256, + "raw_timepoint_brier": [ + 7.742962770862505e-05, + 0.0007976142806001008, + 0.0010367092909291387, + 0.0010363516630604863, + 0.001236545154824853, + 0.0012303044786676764, + 0.0015839241677895188, + 0.0015840649139136076, + 0.0015817919047549367, + 0.0015820410335436463, + 0.0015823032008484006, + 0.001582619035616517, + 0.0015826948219910264 + ], + "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.9408130471666272, + "normalized_timepoint_brier": [ + 0.20835286704823375, + 0.3892942040693015, + 0.4091795126441866, + 0.51960936980322, + 0.5476902588270605, + 0.5996821564622223, + 0.6782576674595475, + 0.7493962766602635, + 1.5498389257118106, + 1.5991679392755032, + 1.6411113319918513, + 1.6688031610101461, + 1.6701859422028065 + ], + "raw_time_brier": 0.0009408130471666271, + "raw_timepoint_brier": [ + 0.00020835286704823375, + 0.0003892942040693015, + 0.0004091795126441866, + 0.00051960936980322, + 0.0005476902588270605, + 0.0005996821564622223, + 0.0006782576674595475, + 0.0007493962766602635, + 0.0015498389257118106, + 0.0015991679392755032, + 0.0016411113319918513, + 0.0016688031610101461, + 0.0016701859422028065 + ], + "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.6843761103636102, + "normalized_timepoint_brier": [ + 0.0004020249093628081, + 0.35601621493697166, + 0.3565748920664191, + 0.35716689308173954, + 0.6989240874343644, + 0.6367318859164764, + 0.9008618944780752, + 0.8309310967722858, + 0.8000076794067112, + 0.771450501419402, + 0.9683161131735588, + 1.1097517686776313, + 1.1097543824539349 + ], + "raw_time_brier": 0.0009042002101077392, + "raw_timepoint_brier": [ + 4.020249093628081e-07, + 0.00035601621493697166, + 0.0003565748920664191, + 0.00035716689308173954, + 0.000712563400156796, + 0.0007129329023882747, + 0.0010687574977055192, + 0.0010690143099054694, + 0.0010692864889279008, + 0.0010697076795622706, + 0.0014234050177037716, + 0.0017793856095522642, + 0.00177938980050385 + ], + "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.24069939802096707, + "normalized_timepoint_brier": [ + 0.0012253462955413852, + 0.003904585355485324, + 0.013558587852458004, + 0.015555242498521693, + 0.028383456083247438, + 0.03322142583783716, + 0.04518417699728161, + 0.051149367209291086, + 0.05792691445094533, + 0.3847874468192458, + 0.6725815768987946, + 0.9167348350904292, + 0.9048792128834932 + ], + "raw_time_brier": 0.0002709685567984147, + "raw_timepoint_brier": [ + 1.2253462955413852e-06, + 3.904585355485324e-06, + 1.3558587852458004e-05, + 1.5555242498521693e-05, + 2.8383456083247438e-05, + 3.322142583783716e-05, + 4.518417699728161e-05, + 5.1149367209291086e-05, + 5.792691445094533e-05, + 0.0003847874468192458, + 0.00072578334948048, + 0.0010804340709000826, + 0.0010814772685989738 + ], + "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.7898958210196457, + "time_averaged_auprc": 0.07063953744013257, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2782, + "positives": 3, + "negatives": 2779, + "auroc": 0.8606213266162889, + "auprc": 0.006089592770537679, + "brier": 0.0010909053341375122, + "calibration": { + "observed_rate": 0.0010783608914450035, + "mean_prediction": 0.002384921633340734, + "calibration_in_the_large": 0.0013065607418957304, + "expected_calibration_error_10bin": 0.0013065607418957304, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + { + "valid": 2782, + "positives": 7, + "negatives": 2775, + "auroc": 0.8332561132561133, + "auprc": 0.15088079227384404, + "brier": 0.002486061561714168, + "calibration": { + "observed_rate": 0.0025161754133716753, + "mean_prediction": 0.0038995825334351905, + "calibration_in_the_large": 0.0013834071200635152, + "expected_calibration_error_10bin": 0.0020247825198734756, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + { + "valid": 2782, + "positives": 14, + "negatives": 2768, + "auroc": 0.7688377374071016, + "auprc": 0.08373308043981131, + "brier": 0.005003239032034303, + "calibration": { + "observed_rate": 0.0050323508267433505, + "mean_prediction": 0.0057013914956543866, + "calibration_in_the_large": 0.000669040668911036, + "expected_calibration_error_10bin": 0.0006690406689110366, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + { + "valid": 2782, + "positives": 18, + "negatives": 2764, + "auroc": 0.7588639652677279, + "auprc": 0.07065255894914692, + "brier": 0.006454876237284386, + "calibration": { + "observed_rate": 0.006470165348670022, + "mean_prediction": 0.006757678379264786, + "calibration_in_the_large": 0.0002875130305947642, + "expected_calibration_error_10bin": 0.001244087739440273, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + { + "valid": 2782, + "positives": 20, + "negatives": 2762, + "auroc": 0.77302679217958, + "auprc": 0.06849520770192043, + "brier": 0.007156401951542567, + "calibration": { + "observed_rate": 0.007189072609633357, + "mean_prediction": 0.007288729854923373, + "calibration_in_the_large": 9.965724529001612e-05, + "expected_calibration_error_10bin": 0.0016215723490688434, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + { + "valid": 2782, + "positives": 21, + "negatives": 2761, + "auroc": 0.7668201652265397, + "auprc": 0.06617039282461, + "brier": 0.007535861144554448, + "calibration": { + "observed_rate": 0.007548526240115025, + "mean_prediction": 0.00785043419306102, + "calibration_in_the_large": 0.00030190795294599525, + "expected_calibration_error_10bin": 0.0017754513434622597, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + { + "valid": 2782, + "positives": 22, + "negatives": 2760, + "auroc": 0.7763998682476944, + "auprc": 0.06723475217453591, + "brier": 0.007878515896547181, + "calibration": { + "observed_rate": 0.007907979870596693, + "mean_prediction": 0.008475262438756802, + "calibration_in_the_large": 0.0005672825681601098, + "expected_calibration_error_10bin": 0.001869073570114511, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + { + "valid": 2782, + "positives": 23, + "negatives": 2759, + "auroc": 0.7878090675575586, + "auprc": 0.07073677450045007, + "brier": 0.008203011578673593, + "calibration": { + "observed_rate": 0.00826743350107836, + "mean_prediction": 0.009133781846830604, + "calibration_in_the_large": 0.000866348345752244, + "expected_calibration_error_10bin": 0.0009104577968459928, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + { + "valid": 2782, + "positives": 25, + "negatives": 2757, + "auroc": 0.7855930359085963, + "auprc": 0.06819968684723192, + "brier": 0.00892511516666124, + "calibration": { + "observed_rate": 0.008986340762041696, + "mean_prediction": 0.009717476507737225, + "calibration_in_the_large": 0.0007311357456955287, + "expected_calibration_error_10bin": 0.00121792538841283, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + { + "valid": 2782, + "positives": 26, + "negatives": 2756, + "auroc": 0.7875962934018086, + "auprc": 0.06714941832486651, + "brier": 0.009297065775117953, + "calibration": { + "observed_rate": 0.009345794392523364, + "mean_prediction": 0.010236573837591469, + "calibration_in_the_large": 0.0008907794450681052, + "expected_calibration_error_10bin": 0.0013947118096026654, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + { + "valid": 2782, + "positives": 27, + "negatives": 2755, + "auroc": 0.7940982725011763, + "auprc": 0.06755598138592822, + "brier": 0.009670962289322259, + "calibration": { + "observed_rate": 0.009705248023005032, + "mean_prediction": 0.010651342331162873, + "calibration_in_the_large": 0.000946094308157841, + "expected_calibration_error_10bin": 0.0023138764173675362, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + { + "valid": 2782, + "positives": 29, + "negatives": 2753, + "auroc": 0.787830204040733, + "auprc": 0.06570489080116118, + "brier": 0.010386577662611718, + "calibration": { + "observed_rate": 0.010424155283968369, + "mean_prediction": 0.010971866848852388, + "calibration_in_the_large": 0.0005477115648840191, + "expected_calibration_error_10bin": 0.0028849908394751726, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + { + "valid": 2782, + "positives": 29, + "negatives": 2753, + "auroc": 0.7878928316444757, + "auprc": 0.06571085772767926, + "brier": 0.010387405554725632, + "calibration": { + "observed_rate": 0.010424155283968369, + "mean_prediction": 0.010988667105839124, + "calibration_in_the_large": 0.0005645118218707557, + "expected_calibration_error_10bin": 0.002872837934359463, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + } + ], + "reason": null + }, + "A08": { + "time_averaged_auroc": 0.774894344982777, + "time_averaged_auprc": 0.012933877549759923, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.683896196231781, + "auprc": 0.006855691515173748, + "brier": 0.001771779364466217, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.0005531996207231504, + "calibration_in_the_large": -0.0012211083991490995, + "expected_calibration_error_10bin": 0.0012211083991490995, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 7, + "negatives": 2811, + "auroc": 0.7542816486252986, + "auprc": 0.008789169412438591, + "brier": 0.002478382030681917, + "calibration": { + "observed_rate": 0.00248403122782115, + "mean_prediction": 0.0009662677392489924, + "calibration_in_the_large": -0.0015177634885721574, + "expected_calibration_error_10bin": 0.0015177634885721574, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 7, + "negatives": 2811, + "auroc": 0.746506073080246, + "auprc": 0.008276154198473027, + "brier": 0.0024823471872175065, + "calibration": { + "observed_rate": 0.00248403122782115, + "mean_prediction": 0.0015507353548072323, + "calibration_in_the_large": -0.0009332958730139175, + "expected_calibration_error_10bin": 0.0009332958730139175, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 7, + "negatives": 2811, + "auroc": 0.7463536108146567, + "auprc": 0.008694000441501143, + "brier": 0.002486374079448835, + "calibration": { + "observed_rate": 0.00248403122782115, + "mean_prediction": 0.0020109645017322986, + "calibration_in_the_large": -0.0004730667260888512, + "expected_calibration_error_10bin": 0.0004730667260888512, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 10, + "negatives": 2808, + "auroc": 0.7982549857549858, + "auprc": 0.014331375691870832, + "brier": 0.0035360095124622537, + "calibration": { + "observed_rate": 0.0035486160397444995, + "mean_prediction": 0.0022213549692763367, + "calibration_in_the_large": -0.0013272610704681627, + "expected_calibration_error_10bin": 0.0013272610704681627, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 11, + "negatives": 2807, + "auroc": 0.7915924474527966, + "auprc": 0.014485014672029466, + "brier": 0.0038901327400565336, + "calibration": { + "observed_rate": 0.0039034776437189495, + "mean_prediction": 0.002467828333210504, + "calibration_in_the_large": -0.0014356493105084456, + "expected_calibration_error_10bin": 0.0014356493105084456, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 11, + "negatives": 2807, + "auroc": 0.7922077922077922, + "auprc": 0.014779169278836367, + "brier": 0.0038920773980718, + "calibration": { + "observed_rate": 0.0039034776437189495, + "mean_prediction": 0.00275000824052738, + "calibration_in_the_large": -0.0011534694031915694, + "expected_calibration_error_10bin": 0.0011534694031915694, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 11, + "negatives": 2807, + "auroc": 0.7921430190756874, + "auprc": 0.01464959279497351, + "brier": 0.003895250566792971, + "calibration": { + "observed_rate": 0.0039034776437189495, + "mean_prediction": 0.0029592850332409546, + "calibration_in_the_large": -0.0009441926104779949, + "expected_calibration_error_10bin": 0.0009441926104779949, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 11, + "negatives": 2807, + "auroc": 0.7928231369627878, + "auprc": 0.015558344063051777, + "brier": 0.0038966179869913175, + "calibration": { + "observed_rate": 0.0039034776437189495, + "mean_prediction": 0.003153631952094762, + "calibration_in_the_large": -0.0007498456916241875, + "expected_calibration_error_10bin": 0.0007498456916241875, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 11, + "negatives": 2807, + "auroc": 0.7940862130388315, + "auprc": 0.015565548739924762, + "brier": 0.0038982919745472874, + "calibration": { + "observed_rate": 0.0039034776437189495, + "mean_prediction": 0.003332370867399982, + "calibration_in_the_large": -0.0005711067763189675, + "expected_calibration_error_10bin": 0.0005711067763189675, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 11, + "negatives": 2807, + "auroc": 0.7935356414159407, + "auprc": 0.015246034202467246, + "brier": 0.0039031819664656305, + "calibration": { + "observed_rate": 0.0039034776437189495, + "mean_prediction": 0.003568956104845259, + "calibration_in_the_large": -0.0003345215388736904, + "expected_calibration_error_10bin": 0.0004830812088515866, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 11, + "negatives": 2807, + "auroc": 0.7942157593030411, + "auprc": 0.015576678296734854, + "brier": 0.003908613252338238, + "calibration": { + "observed_rate": 0.0039034776437189495, + "mean_prediction": 0.003836536297835216, + "calibration_in_the_large": -6.69413458837336e-05, + "expected_calibration_error_10bin": 0.00022592700617815755, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 11, + "negatives": 2807, + "auroc": 0.7937299608122551, + "auprc": 0.015333634839403691, + "brier": 0.003909850273242309, + "calibration": { + "observed_rate": 0.0039034776437189495, + "mean_prediction": 0.003915610721445279, + "calibration_in_the_large": 1.2133077726329822e-05, + "expected_calibration_error_10bin": 0.0001480470814353353, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + } + ], + "reason": null + }, + "A41": { + "time_averaged_auroc": 0.7494227556218302, + "time_averaged_auprc": 0.047400593793869954, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2664, + "positives": 5, + "negatives": 2659, + "auroc": 0.7080857465212486, + "auprc": 0.004773168667493552, + "brier": 0.0019365329214060037, + "calibration": { + "observed_rate": 0.0018768768768768769, + "mean_prediction": 0.004442966535642206, + "calibration_in_the_large": 0.0025660896587653293, + "expected_calibration_error_10bin": 0.0025660896587653293, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9370383397819205 + }, + { + "valid": 2664, + "positives": 19, + "negatives": 2645, + "auroc": 0.7917421152124167, + "auprc": 0.025680274734878904, + "brier": 0.007195278305495227, + "calibration": { + "observed_rate": 0.007132132132132132, + "mean_prediction": 0.008635350864815828, + "calibration_in_the_large": 0.0015032187326836964, + "expected_calibration_error_10bin": 0.0015032187326836964, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9370383397819205 + }, + { + "valid": 2664, + "positives": 27, + "negatives": 2637, + "auroc": 0.7674265087992809, + "auprc": 0.0291185054137068, + "brier": 0.010303116947590157, + "calibration": { + "observed_rate": 0.010135135135135136, + "mean_prediction": 0.01204225767573384, + "calibration_in_the_large": 0.0019071225405987036, + "expected_calibration_error_10bin": 0.002378224170450147, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9370383397819205 + }, + { + "valid": 2664, + "positives": 33, + "negatives": 2631, + "auroc": 0.7573684392384507, + "auprc": 0.03768509109947769, + "brier": 0.012499912329340288, + "calibration": { + "observed_rate": 0.012387387387387387, + "mean_prediction": 0.01417376301639239, + "calibration_in_the_large": 0.0017863756290050024, + "expected_calibration_error_10bin": 0.004097292089714789, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9370383397819205 + }, + { + "valid": 2664, + "positives": 40, + "negatives": 2624, + "auroc": 0.7447122713414634, + "auprc": 0.04242791574694507, + "brier": 0.015074716094798393, + "calibration": { + "observed_rate": 0.015015015015015015, + "mean_prediction": 0.015892243197924073, + "calibration_in_the_large": 0.0008772281829090584, + "expected_calibration_error_10bin": 0.005552512976172399, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9370383397819205 + }, + { + "valid": 2664, + "positives": 49, + "negatives": 2615, + "auroc": 0.7446755375190229, + "auprc": 0.04738280768703647, + "brier": 0.01835087297247663, + "calibration": { + "observed_rate": 0.01839339339339339, + "mean_prediction": 0.01732110298451642, + "calibration_in_the_large": -0.0010722904088769705, + "expected_calibration_error_10bin": 0.007317804865138002, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9370383397819205 + }, + { + "valid": 2664, + "positives": 54, + "negatives": 2610, + "auroc": 0.7384276997303817, + "auprc": 0.050135418661759135, + "brier": 0.020185097325670236, + "calibration": { + "observed_rate": 0.02027027027027027, + "mean_prediction": 0.018849440837259538, + "calibration_in_the_large": -0.0014208294330107334, + "expected_calibration_error_10bin": 0.007424759182589417, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9370383397819205 + }, + { + "valid": 2664, + "positives": 57, + "negatives": 2607, + "auroc": 0.7435245190075304, + "auprc": 0.0545418163385935, + "brier": 0.021273262436341117, + "calibration": { + "observed_rate": 0.021396396396396396, + "mean_prediction": 0.020166586117752572, + "calibration_in_the_large": -0.0012298102786438246, + "expected_calibration_error_10bin": 0.007390150905723076, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9370383397819205 + }, + { + "valid": 2664, + "positives": 63, + "negatives": 2601, + "auroc": 0.7576267979958868, + "auprc": 0.06193032561718206, + "brier": 0.023330159110842717, + "calibration": { + "observed_rate": 0.02364864864864865, + "mean_prediction": 0.02099291831997358, + "calibration_in_the_large": -0.0026557303286750683, + "expected_calibration_error_10bin": 0.009598021191747621, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9370383397819205 + }, + { + "valid": 2664, + "positives": 66, + "negatives": 2598, + "auroc": 0.7499183521123475, + "auprc": 0.061750890162494326, + "brier": 0.02455429079773025, + "calibration": { + "observed_rate": 0.024774774774774775, + "mean_prediction": 0.022274322977274417, + "calibration_in_the_large": -0.002500451797500358, + "expected_calibration_error_10bin": 0.011361197698244433, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9370383397819205 + }, + { + "valid": 2664, + "positives": 70, + "negatives": 2594, + "auroc": 0.7518559312699636, + "auprc": 0.06536000421981636, + "brier": 0.02601099230534515, + "calibration": { + "observed_rate": 0.026276276276276277, + "mean_prediction": 0.023477935313453886, + "calibration_in_the_large": -0.002798340962822391, + "expected_calibration_error_10bin": 0.01246141704967038, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9370383397819205 + }, + { + "valid": 2664, + "positives": 76, + "negatives": 2588, + "auroc": 0.7435684942650289, + "auprc": 0.06770416241112544, + "brier": 0.028190628938846822, + "calibration": { + "observed_rate": 0.028528528528528527, + "mean_prediction": 0.024378863946594036, + "calibration_in_the_large": -0.004149664581934491, + "expected_calibration_error_10bin": 0.014537389194189485, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9370383397819205 + }, + { + "valid": 2664, + "positives": 76, + "negatives": 2588, + "auroc": 0.743563410070772, + "auprc": 0.06771733855980011, + "brier": 0.028206000119305203, + "calibration": { + "observed_rate": 0.028528528528528527, + "mean_prediction": 0.024516547192368243, + "calibration_in_the_large": -0.004011981336160285, + "expected_calibration_error_10bin": 0.014830255630720665, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9370383397819205 + } + ], + "reason": null + }, + "B00": { + "time_averaged_auroc": 0.821706080695395, + "time_averaged_auprc": 0.07948834943733434, + "valid_timepoint_cells": 12, + "timepoints": [ + { + "valid": 2819, + "positives": 0, + "negatives": 2819, + "auroc": null, + "auprc": null, + "brier": 3.6845879475188634e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00016158655004390695, + "calibration_in_the_large": 0.00016158655004390695, + "expected_calibration_error_10bin": 0.00016158655004390695, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 1, + "negatives": 2818, + "auroc": 0.9982256919801278, + "auprc": 0.16666666666666666, + "brier": 0.000348418346384462, + "calibration": { + "observed_rate": 0.000354735721887194, + "mean_prediction": 0.0003298178648881075, + "calibration_in_the_large": -2.4917856999086502e-05, + "expected_calibration_error_10bin": 2.4917856999086502e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 1, + "negatives": 2818, + "auroc": 0.9985805535841022, + "auprc": 0.2, + "brier": 0.0003451760335470485, + "calibration": { + "observed_rate": 0.000354735721887194, + "mean_prediction": 0.0005328896112932137, + "calibration_in_the_large": 0.00017815388940601966, + "expected_calibration_error_10bin": 0.00017815388940601966, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 1, + "negatives": 2818, + "auroc": 0.9985805535841022, + "auprc": 0.2, + "brier": 0.000344775688668169, + "calibration": { + "observed_rate": 0.000354735721887194, + "mean_prediction": 0.0006715548363639507, + "calibration_in_the_large": 0.0003168191144767567, + "expected_calibration_error_10bin": 0.0003168191144767567, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.724313446969697, + "auprc": 0.05824935899315498, + "brier": 0.0010529156137794053, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0008437551694176734, + "calibration_in_the_large": -0.00022045199624390864, + "expected_calibration_error_10bin": 0.00022045199624390864, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.7247869318181818, + "auprc": 0.05042502156942236, + "brier": 0.0010532739624775924, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0009531696660328365, + "calibration_in_the_large": -0.00011103749962874552, + "expected_calibration_error_10bin": 0.00011103749962874552, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 4, + "negatives": 2815, + "auroc": 0.7735346358792184, + "auprc": 0.04093912602739841, + "brier": 0.0014064818039635039, + "calibration": { + "observed_rate": 0.001418942887548776, + "mean_prediction": 0.001082747066995084, + "calibration_in_the_large": -0.0003361958205536921, + "expected_calibration_error_10bin": 0.0003361958205536921, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 4, + "negatives": 2815, + "auroc": 0.7741563055062167, + "auprc": 0.04099529812017065, + "brier": 0.0014068844591669165, + "calibration": { + "observed_rate": 0.001418942887548776, + "mean_prediction": 0.001154918459318933, + "calibration_in_the_large": -0.00026402442822984315, + "expected_calibration_error_10bin": 0.00026402442822984315, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 4, + "negatives": 2815, + "auroc": 0.7738898756660746, + "auprc": 0.040950356141365, + "brier": 0.001407175386111692, + "calibration": { + "observed_rate": 0.001418942887548776, + "mean_prediction": 0.001214071596089329, + "calibration_in_the_large": -0.000204871291459447, + "expected_calibration_error_10bin": 0.000204871291459447, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 4, + "negatives": 2815, + "auroc": 0.7741563055062167, + "auprc": 0.0466814397303291, + "brier": 0.001407530537520942, + "calibration": { + "observed_rate": 0.001418942887548776, + "mean_prediction": 0.0014044465437927011, + "calibration_in_the_large": -1.4496343756074948e-05, + "expected_calibration_error_10bin": 8.604006952185418e-05, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 4, + "negatives": 2815, + "auroc": 0.7735346358792184, + "auprc": 0.03628108684170504, + "brier": 0.0014082675881600085, + "calibration": { + "observed_rate": 0.001418942887548776, + "mean_prediction": 0.0015094062314864778, + "calibration_in_the_large": 9.046334393770171e-05, + "expected_calibration_error_10bin": 9.04633439377017e-05, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 4, + "negatives": 2815, + "auroc": 0.7733570159857904, + "auprc": 0.036335919578899915, + "brier": 0.0014089934015666771, + "calibration": { + "observed_rate": 0.001418942887548776, + "mean_prediction": 0.001591472807566733, + "calibration_in_the_large": 0.00017252992001795683, + "expected_calibration_error_10bin": 0.0001725299200179568, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 4, + "negatives": 2815, + "auroc": 0.7733570159857904, + "auprc": 0.036335919578899915, + "brier": 0.001409048757309653, + "calibration": { + "observed_rate": 0.001418942887548776, + "mean_prediction": 0.001597363311959284, + "calibration_in_the_large": 0.00017842042441050792, + "expected_calibration_error_10bin": 0.00017842042441050778, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + } + ], + "reason": null + }, + "B02": { + "time_averaged_auroc": 0.954175643952793, + "time_averaged_auprc": 0.007673842777677136, + "valid_timepoint_cells": 11, + "timepoints": [ + { + "valid": 2828, + "positives": 0, + "negatives": 2828, + "auroc": null, + "auprc": null, + "brier": 5.355081587171439e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00022883327648349447, + "calibration_in_the_large": 0.00022883327648349447, + "expected_calibration_error_10bin": 0.00022883327648349447, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 0, + "negatives": 2828, + "auroc": null, + "auprc": null, + "brier": 1.3404721924779176e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00040037082566567753, + "calibration_in_the_large": 0.00040037082566567753, + "expected_calibration_error_10bin": 0.00040037082566567753, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.9543685886098338, + "auprc": 0.007692307692307693, + "brier": 0.0003541926184618162, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0005059782699057599, + "calibration_in_the_large": 0.00015237148065540626, + "expected_calibration_error_10bin": 0.00015237148065540626, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.9543685886098338, + "auprc": 0.007692307692307693, + "brier": 0.00035453116509367413, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0005658089314782965, + "calibration_in_the_large": 0.0002122021422279429, + "expected_calibration_error_10bin": 0.0002122021422279429, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.953307392996109, + "auprc": 0.007518796992481203, + "brier": 0.00035496411567765814, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0006839680527965232, + "calibration_in_the_large": 0.0003303612635461696, + "expected_calibration_error_10bin": 0.0003303612635461696, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.9525999292536258, + "auprc": 0.007407407407407408, + "brier": 0.0003556936601400132, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0008080327515013557, + "calibration_in_the_large": 0.0004544259622510021, + "expected_calibration_error_10bin": 0.0004544259622510021, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.9543685886098338, + "auprc": 0.007692307692307693, + "brier": 0.00035673143032947805, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.000954419224770447, + "calibration_in_the_large": 0.0006008124355200933, + "expected_calibration_error_10bin": 0.0006008124355200933, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.9568447117085249, + "auprc": 0.008130081300813009, + "brier": 0.0003581527590434211, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0010779761385253475, + "calibration_in_the_large": 0.0007243693492749938, + "expected_calibration_error_10bin": 0.0007243693492749938, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.9571984435797666, + "auprc": 0.00819672131147541, + "brier": 0.00035915161537939684, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0012216974932057621, + "calibration_in_the_large": 0.0008680907039554085, + "expected_calibration_error_10bin": 0.0008680907039554085, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.9568447117085249, + "auprc": 0.008130081300813009, + "brier": 0.00035955031287051545, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0012716902490111485, + "calibration_in_the_large": 0.0009180834597607949, + "expected_calibration_error_10bin": 0.0009180834597607949, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.9515387336399009, + "auprc": 0.007246376811594203, + "brier": 0.00036055222064914933, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.001392533089676962, + "calibration_in_the_large": 0.0010389263004266084, + "expected_calibration_error_10bin": 0.0010389263004266084, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.9522461973823841, + "auprc": 0.007352941176470588, + "brier": 0.0003614449822260898, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0014772253501073858, + "calibration_in_the_large": 0.001123618560857032, + "expected_calibration_error_10bin": 0.001123618560857032, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.9522461973823841, + "auprc": 0.007352941176470588, + "brier": 0.000361475276881779, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.001480109377712678, + "calibration_in_the_large": 0.0011265025884623244, + "expected_calibration_error_10bin": 0.0011265025884623244, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + } + ], + "reason": null + }, + "B18": { + "time_averaged_auroc": 0.9621515552953729, + "time_averaged_auprc": 0.03448935260254045, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2782, + "positives": 1, + "negatives": 2781, + "auroc": 0.9834591873426825, + "auprc": 0.02127659574468085, + "brier": 0.0003608495795855536, + "calibration": { + "observed_rate": 0.0003594536304816679, + "mean_prediction": 0.0002306784213889222, + "calibration_in_the_large": -0.00012877520909274567, + "expected_calibration_error_10bin": 0.00012877520909274567, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + { + "valid": 2782, + "positives": 3, + "negatives": 2779, + "auroc": 0.964735516372796, + "auprc": 0.025154028602304465, + "brier": 0.0010799390174624432, + "calibration": { + "observed_rate": 0.0010783608914450035, + "mean_prediction": 0.00044142116524435775, + "calibration_in_the_large": -0.0006369397262006458, + "expected_calibration_error_10bin": 0.0006369397262006458, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + { + "valid": 2782, + "positives": 3, + "negatives": 2779, + "auroc": 0.9624565191315821, + "auprc": 0.025579710144927537, + "brier": 0.0010878094348901923, + "calibration": { + "observed_rate": 0.0010783608914450035, + "mean_prediction": 0.0006735404192038627, + "calibration_in_the_large": -0.0004048204722411408, + "expected_calibration_error_10bin": 0.0005850754538377769, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + { + "valid": 2782, + "positives": 3, + "negatives": 2779, + "auroc": 0.961976730238695, + "auprc": 0.02622818064117892, + "brier": 0.0010913007381190836, + "calibration": { + "observed_rate": 0.0010783608914450035, + "mean_prediction": 0.0007813690017986816, + "calibration_in_the_large": -0.0002969918896463219, + "expected_calibration_error_10bin": 0.0005004878781253492, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + { + "valid": 2782, + "positives": 4, + "negatives": 2778, + "auroc": 0.9640028797696184, + "auprc": 0.03080677129271977, + "brier": 0.0014521801646633383, + "calibration": { + "observed_rate": 0.0014378145219266715, + "mean_prediction": 0.0009296521886366337, + "calibration_in_the_large": -0.0005081623332900379, + "expected_calibration_error_10bin": 0.0007404181359947756, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + { + "valid": 2782, + "positives": 5, + "negatives": 2777, + "auroc": 0.9638458768455167, + "auprc": 0.03347449340436718, + "brier": 0.0018140496446398273, + "calibration": { + "observed_rate": 0.0017972681524083393, + "mean_prediction": 0.001023339443671968, + "calibration_in_the_large": -0.0007739287087363714, + "expected_calibration_error_10bin": 0.001110334367184054, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + { + "valid": 2782, + "positives": 5, + "negatives": 2777, + "auroc": 0.9640619373424559, + "auprc": 0.03375746383254015, + "brier": 0.0018229125051787704, + "calibration": { + "observed_rate": 0.0017972681524083393, + "mean_prediction": 0.0011005046615629986, + "calibration_in_the_large": -0.0006967634908453407, + "expected_calibration_error_10bin": 0.0010743930296224023, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + { + "valid": 2782, + "positives": 5, + "negatives": 2777, + "auroc": 0.964277997839395, + "auprc": 0.033753440135463345, + "brier": 0.00182758690562107, + "calibration": { + "observed_rate": 0.0017972681524083393, + "mean_prediction": 0.0011986859100180513, + "calibration_in_the_large": -0.000598582242390288, + "expected_calibration_error_10bin": 0.0010006644420669881, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + { + "valid": 2782, + "positives": 7, + "negatives": 2775, + "auroc": 0.9524839124839125, + "auprc": 0.03377552141126841, + "brier": 0.0025474027151850304, + "calibration": { + "observed_rate": 0.0025161754133716753, + "mean_prediction": 0.0012776801022106727, + "calibration_in_the_large": -0.0012384953111610026, + "expected_calibration_error_10bin": 0.001666127474607814, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + { + "valid": 2782, + "positives": 7, + "negatives": 2775, + "auroc": 0.954079794079794, + "auprc": 0.03446012045066081, + "brier": 0.0025501030844068523, + "calibration": { + "observed_rate": 0.0025161754133716753, + "mean_prediction": 0.0014298157207847896, + "calibration_in_the_large": -0.0010863596925868857, + "expected_calibration_error_10bin": 0.0015355670448590178, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + { + "valid": 2782, + "positives": 7, + "negatives": 2775, + "auroc": 0.9535649935649936, + "auprc": 0.033523965931911336, + "brier": 0.0025621067768512367, + "calibration": { + "observed_rate": 0.0025161754133716753, + "mean_prediction": 0.0016050856619779367, + "calibration_in_the_large": -0.0009110897513937386, + "expected_calibration_error_10bin": 0.0014840919229444367, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + { + "valid": 2782, + "positives": 8, + "negatives": 2774, + "auroc": 0.959534967555876, + "auprc": 0.0582914504900309, + "brier": 0.0028677185898990623, + "calibration": { + "observed_rate": 0.002875629043853343, + "mean_prediction": 0.0016932290006377235, + "calibration_in_the_large": -0.0011824000432156196, + "expected_calibration_error_10bin": 0.0018612766040692116, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + { + "valid": 2782, + "positives": 8, + "negatives": 2774, + "auroc": 0.9594899062725306, + "auprc": 0.05827984175097214, + "brier": 0.002867958655916254, + "calibration": { + "observed_rate": 0.002875629043853343, + "mean_prediction": 0.0016987689259779053, + "calibration_in_the_large": -0.0011768601178754378, + "expected_calibration_error_10bin": 0.0018572518622223856, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + } + ], + "reason": null + }, + "B19": { + "time_averaged_auroc": 0.9010911507520206, + "time_averaged_auprc": 0.08272455324325559, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2763, + "positives": 7, + "negatives": 2756, + "auroc": 0.8604602944225586, + "auprc": 0.016494214155801854, + "brier": 0.00252973217573376, + "calibration": { + "observed_rate": 0.0025334781035106766, + "mean_prediction": 0.0006498977196426467, + "calibration_in_the_large": -0.00188358038386803, + "expected_calibration_error_10bin": 0.00188358038386803, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + { + "valid": 2763, + "positives": 12, + "negatives": 2751, + "auroc": 0.9090936629104568, + "auprc": 0.041357138989209126, + "brier": 0.004308856320007636, + "calibration": { + "observed_rate": 0.004343105320304018, + "mean_prediction": 0.0010370379975042047, + "calibration_in_the_large": -0.003306067322799813, + "expected_calibration_error_10bin": 0.0033836249437485103, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + { + "valid": 2763, + "positives": 12, + "negatives": 2751, + "auroc": 0.9132739609838847, + "auprc": 0.04104076080026442, + "brier": 0.004306011760671136, + "calibration": { + "observed_rate": 0.004343105320304018, + "mean_prediction": 0.0014184828953784712, + "calibration_in_the_large": -0.002924622424925546, + "expected_calibration_error_10bin": 0.003195657014043068, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + { + "valid": 2763, + "positives": 14, + "negatives": 2749, + "auroc": 0.8927402172218469, + "auprc": 0.04699974691367216, + "brier": 0.005013685626214699, + "calibration": { + "observed_rate": 0.005066956207021353, + "mean_prediction": 0.0016089407325516043, + "calibration_in_the_large": -0.003458015474469749, + "expected_calibration_error_10bin": 0.003749306301945472, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + { + "valid": 2763, + "positives": 15, + "negatives": 2748, + "auroc": 0.8993449781659388, + "auprc": 0.09067913643143219, + "brier": 0.005268091687163112, + "calibration": { + "observed_rate": 0.0054288816503800215, + "mean_prediction": 0.0018060709061094075, + "calibration_in_the_large": -0.003622810744270614, + "expected_calibration_error_10bin": 0.0036228107442706136, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + { + "valid": 2763, + "positives": 15, + "negatives": 2748, + "auroc": 0.8988355167394468, + "auprc": 0.0906117144038013, + "brier": 0.005259270371318363, + "calibration": { + "observed_rate": 0.0054288816503800215, + "mean_prediction": 0.001971321511694027, + "calibration_in_the_large": -0.0034575601386859947, + "expected_calibration_error_10bin": 0.0034575601386859943, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + { + "valid": 2763, + "positives": 16, + "negatives": 2747, + "auroc": 0.9044867127775755, + "auprc": 0.10853135236879316, + "brier": 0.005569571067772794, + "calibration": { + "observed_rate": 0.00579080709373869, + "mean_prediction": 0.0021812273869489186, + "calibration_in_the_large": -0.003609579706789771, + "expected_calibration_error_10bin": 0.0036095797067897716, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + { + "valid": 2763, + "positives": 17, + "negatives": 2746, + "auroc": 0.9081658883509703, + "auprc": 0.10838524823451501, + "brier": 0.00591844561787057, + "calibration": { + "observed_rate": 0.006152732537097358, + "mean_prediction": 0.002300923908856467, + "calibration_in_the_large": -0.003851808628240891, + "expected_calibration_error_10bin": 0.003902269202145569, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + { + "valid": 2763, + "positives": 17, + "negatives": 2746, + "auroc": 0.9074589777644488, + "auprc": 0.10809774927331826, + "brier": 0.005913709265784416, + "calibration": { + "observed_rate": 0.006152732537097358, + "mean_prediction": 0.0024807795919659483, + "calibration_in_the_large": -0.00367195294513141, + "expected_calibration_error_10bin": 0.0038208794753764393, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + { + "valid": 2763, + "positives": 17, + "negatives": 2746, + "auroc": 0.9061094211901803, + "auprc": 0.10751683941367321, + "brier": 0.005908218612449177, + "calibration": { + "observed_rate": 0.006152732537097358, + "mean_prediction": 0.0026392915701645976, + "calibration_in_the_large": -0.0035134409669327605, + "expected_calibration_error_10bin": 0.0039256211022458435, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + { + "valid": 2763, + "positives": 17, + "negatives": 2746, + "auroc": 0.9051882952744098, + "auprc": 0.10545013968167218, + "brier": 0.005907626054893554, + "calibration": { + "observed_rate": 0.006152732537097358, + "mean_prediction": 0.0027840837955693445, + "calibration_in_the_large": -0.0033686487415280136, + "expected_calibration_error_10bin": 0.0037956870279877057, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + { + "valid": 2763, + "positives": 17, + "negatives": 2746, + "auroc": 0.9045456492866629, + "auprc": 0.1051560761870901, + "brier": 0.0059018829237355375, + "calibration": { + "observed_rate": 0.006152732537097358, + "mean_prediction": 0.0029482447012687896, + "calibration_in_the_large": -0.0032044878358285685, + "expected_calibration_error_10bin": 0.003717931516678793, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + { + "valid": 2763, + "positives": 17, + "negatives": 2746, + "auroc": 0.9044813846878883, + "auprc": 0.10509907530907978, + "brier": 0.005902338786282101, + "calibration": { + "observed_rate": 0.006152732537097358, + "mean_prediction": 0.0029579166908744086, + "calibration_in_the_large": -0.0031948158462229495, + "expected_calibration_error_10bin": 0.003710005697239305, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + } + ], + "reason": null + }, + "B20": { + "time_averaged_auroc": 0.9759307470021636, + "time_averaged_auprc": 0.05237844594508532, + "valid_timepoint_cells": 11, + "timepoints": [ + { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 3.3779991646963128e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00025380756578100076, + "calibration_in_the_large": 0.00025380756578100076, + "expected_calibration_error_10bin": 0.00025380756578100076, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 7.397026455800604e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0003853874686189623, + "calibration_in_the_large": 0.0003853874686189623, + "expected_calibration_error_10bin": 0.0003853874686189623, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 1, + "negatives": 2828, + "auroc": 0.9692362093352193, + "auprc": 0.011363636363636364, + "brier": 0.0003631252050952135, + "calibration": { + "observed_rate": 0.0003534817956875221, + "mean_prediction": 0.0004984633733124699, + "calibration_in_the_large": 0.0001449815776249478, + "expected_calibration_error_10bin": 0.0001449815776249478, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 3, + "negatives": 2826, + "auroc": 0.9695682944090588, + "auprc": 0.022178932178932177, + "brier": 0.0010671072967370601, + "calibration": { + "observed_rate": 0.0010604453870625664, + "mean_prediction": 0.0005602715242678522, + "calibration_in_the_large": -0.0005001738627947142, + "expected_calibration_error_10bin": 0.0005744664910347769, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 3, + "negatives": 2826, + "auroc": 0.9690964850200519, + "auprc": 0.022073456065412698, + "brier": 0.0010708081453279406, + "calibration": { + "observed_rate": 0.0010604453870625664, + "mean_prediction": 0.0006683563022421463, + "calibration_in_the_large": -0.0003920890848204201, + "expected_calibration_error_10bin": 0.000547405341715718, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 3, + "negatives": 2826, + "auroc": 0.9698041991035622, + "auprc": 0.022329501915708816, + "brier": 0.0010755892856746986, + "calibration": { + "observed_rate": 0.0010604453870625664, + "mean_prediction": 0.0007494019678438549, + "calibration_in_the_large": -0.0003110434192187115, + "expected_calibration_error_10bin": 0.0005674755164356011, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 4, + "negatives": 2825, + "auroc": 0.9767256637168141, + "auprc": 0.06209663352520495, + "brier": 0.0013996600438051401, + "calibration": { + "observed_rate": 0.0014139271827500884, + "mean_prediction": 0.000804215566452131, + "calibration_in_the_large": -0.0006097116162979574, + "expected_calibration_error_10bin": 0.0008814819069622878, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 5, + "negatives": 2824, + "auroc": 0.9802407932011331, + "auprc": 0.07380425663329644, + "brier": 0.001744693429321952, + "calibration": { + "observed_rate": 0.0017674089784376105, + "mean_prediction": 0.0008378147901254582, + "calibration_in_the_large": -0.0009295941883121523, + "expected_calibration_error_10bin": 0.0012119726414400998, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 5, + "negatives": 2824, + "auroc": 0.9801699716713881, + "auprc": 0.07337733404806576, + "brier": 0.0017454161050497348, + "calibration": { + "observed_rate": 0.0017674089784376105, + "mean_prediction": 0.0008918417233061322, + "calibration_in_the_large": -0.0008755672551314783, + "expected_calibration_error_10bin": 0.001173983992918517, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 5, + "negatives": 2824, + "auroc": 0.9795325779036828, + "auprc": 0.06910812946040608, + "brier": 0.0017474499854936792, + "calibration": { + "observed_rate": 0.0017674089784376105, + "mean_prediction": 0.0009912527343527433, + "calibration_in_the_large": -0.0007761562440848672, + "expected_calibration_error_10bin": 0.001098884065707347, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 5, + "negatives": 2824, + "auroc": 0.9803824362606233, + "auprc": 0.07337117036032711, + "brier": 0.0017462044896190234, + "calibration": { + "observed_rate": 0.0017674089784376105, + "mean_prediction": 0.0010241099930039857, + "calibration_in_the_large": -0.0007432989854336248, + "expected_calibration_error_10bin": 0.0010738781124820511, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 5, + "negatives": 2824, + "auroc": 0.9802407932011331, + "auprc": 0.073229927422474, + "brier": 0.001747347956162775, + "calibration": { + "observed_rate": 0.0017674089784376105, + "mean_prediction": 0.0010668748442249276, + "calibration_in_the_large": -0.0007005341342126829, + "expected_calibration_error_10bin": 0.0010434365689740242, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 5, + "negatives": 2824, + "auroc": 0.9802407932011331, + "auprc": 0.073229927422474, + "brier": 0.0017473325406429706, + "calibration": { + "observed_rate": 0.0017674089784376105, + "mean_prediction": 0.0010689182201888863, + "calibration_in_the_large": -0.0006984907582487242, + "expected_calibration_error_10bin": 0.0010417520955627083, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + } + ], + "reason": null + }, + "B34": { + "time_averaged_auroc": 0.9479826747932284, + "time_averaged_auprc": 0.08628350742446671, + "valid_timepoint_cells": 12, + "timepoints": [ + { + "valid": 2831, + "positives": 0, + "negatives": 2831, + "auroc": null, + "auprc": null, + "brier": 1.5650601529684104e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00020291080669936615, + "calibration_in_the_large": 0.00020291080669936615, + "expected_calibration_error_10bin": 0.00020291080669936615, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 2, + "negatives": 2829, + "auroc": 0.9367267585719335, + "auprc": 0.12780112044817926, + "brier": 0.0007009653025142127, + "calibration": { + "observed_rate": 0.0007064641469445425, + "mean_prediction": 0.00034483327587604316, + "calibration_in_the_large": -0.0003616308710684994, + "expected_calibration_error_10bin": 0.0003616308710684994, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 3, + "negatives": 2828, + "auroc": 0.9220886374351721, + "auprc": 0.0717702976468755, + "brier": 0.0010524065850685633, + "calibration": { + "observed_rate": 0.0010596962204168139, + "mean_prediction": 0.00046831557595970687, + "calibration_in_the_large": -0.000591380644457107, + "expected_calibration_error_10bin": 0.000591380644457107, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.9425185709232402, + "auprc": 0.06070724803840779, + "brier": 0.0014007062541353513, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0005866841670607442, + "calibration_in_the_large": -0.0008262441268283409, + "expected_calibration_error_10bin": 0.0008262441268283409, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.9406614785992218, + "auprc": 0.05900495469277041, + "brier": 0.0014003302911516358, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0006310280122692559, + "calibration_in_the_large": -0.0007819002816198292, + "expected_calibration_error_10bin": 0.0007819002816198292, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.9406614785992218, + "auprc": 0.05876932731515308, + "brier": 0.0013981924857823743, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0007174057487129821, + "calibration_in_the_large": -0.000695522545176103, + "expected_calibration_error_10bin": 0.000695522545176103, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.9543524416135881, + "auprc": 0.09151954258514843, + "brier": 0.0017385751662624895, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.0008214045212246471, + "calibration_in_the_large": -0.0009447558461367092, + "expected_calibration_error_10bin": 0.0009447558461367092, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.9549186128803964, + "auprc": 0.08714285714285715, + "brier": 0.0017361111124953347, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.0009012444302341224, + "calibration_in_the_large": -0.000864915937127234, + "expected_calibration_error_10bin": 0.000864915937127234, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.9570417551309272, + "auprc": 0.09849773581862784, + "brier": 0.0017273844074543504, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.0010782572799879655, + "calibration_in_the_large": -0.0006879030873733908, + "expected_calibration_error_10bin": 0.0006879030873733908, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.9568294409058741, + "auprc": 0.09634065011094257, + "brier": 0.0017240487109161531, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.0012618035012161581, + "calibration_in_the_large": -0.0005043568661451982, + "expected_calibration_error_10bin": 0.0005043568661451982, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.956758669497523, + "auprc": 0.09633155026745989, + "brier": 0.0017231004613226981, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.001313269717004836, + "calibration_in_the_large": -0.0004528906503565202, + "expected_calibration_error_10bin": 0.0004528906503565202, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.956617126680821, + "auprc": 0.09375840251358923, + "brier": 0.0017230339541968631, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.0013371021023763586, + "calibration_in_the_large": -0.00042905826498499766, + "expected_calibration_error_10bin": 0.00042905826498499766, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.956617126680821, + "auprc": 0.09375840251358923, + "brier": 0.001723005390207934, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.0013422497662645542, + "calibration_in_the_large": -0.0004239106010968021, + "expected_calibration_error_10bin": 0.0004239106010968021, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + } + ], + "reason": null + }, + "B35": { + "time_averaged_auroc": 0.5981804156880609, + "time_averaged_auprc": 0.0012342974078162173, + "valid_timepoint_cells": 6, + "timepoints": [ + { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 8.806999632896737e-08, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00016474708829908232, + "calibration_in_the_large": 0.00016474708829908232, + "expected_calibration_error_10bin": 0.00016474708829908232, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 4.918071578984794e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00037146416881378674, + "calibration_in_the_large": 0.00037146416881378674, + "expected_calibration_error_10bin": 0.00037146416881378674, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 9.549470155117624e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0005154080035379796, + "calibration_in_the_large": 0.0005154080035379796, + "expected_calibration_error_10bin": 0.0005154080035379796, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 1.3927547827890604e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0006476055667438415, + "calibration_in_the_large": 0.0006476055667438415, + "expected_calibration_error_10bin": 0.0006476055667438415, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 1.6297477859820206e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0007136941100856224, + "calibration_in_the_large": 0.0007136941100856224, + "expected_calibration_error_10bin": 0.0007136941100856224, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 2.1423892928315337e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0008269149100840503, + "calibration_in_the_large": 0.0008269149100840503, + "expected_calibration_error_10bin": 0.0008269149100840503, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 2.7896968645020426e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0009346197832081843, + "calibration_in_the_large": 0.0009346197832081843, + "expected_calibration_error_10bin": 0.0009346197832081843, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 1, + "negatives": 2835, + "auroc": 0.5220458553791887, + "auprc": 0.0007374631268436578, + "brier": 0.00035539818930676903, + "calibration": { + "observed_rate": 0.0003526093088857546, + "mean_prediction": 0.0010063712450712344, + "calibration_in_the_large": 0.0006537619361854798, + "expected_calibration_error_10bin": 0.0006537619361854798, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 1, + "negatives": 2835, + "auroc": 0.5181657848324515, + "auprc": 0.000731528895391368, + "brier": 0.00035609426741707833, + "calibration": { + "observed_rate": 0.0003526093088857546, + "mean_prediction": 0.0011242519702589456, + "calibration_in_the_large": 0.000771642661373191, + "expected_calibration_error_10bin": 0.000771642661373191, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.6471418489767113, + "auprc": 0.0015334692251821654, + "brier": 0.0007079262476306369, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.0011802559251739275, + "calibration_in_the_large": 0.0004750373074024184, + "expected_calibration_error_10bin": 0.0004750373074024184, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.642378263937897, + "auprc": 0.0015109727569791466, + "brier": 0.0007081947427831315, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.0012301881609504094, + "calibration_in_the_large": 0.0005249695431789002, + "expected_calibration_error_10bin": 0.0005249695431789002, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.6296753705010586, + "auprc": 0.0014452208616666509, + "brier": 0.0007087924285391266, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.001344313445417474, + "calibration_in_the_large": 0.0006390948276459648, + "expected_calibration_error_10bin": 0.0006390948276459648, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.6296753705010586, + "auprc": 0.001447129580834316, + "brier": 0.0007088738003540449, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.0013578556376126771, + "calibration_in_the_large": 0.000652637019841168, + "expected_calibration_error_10bin": 0.000652637019841168, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + } + ], + "reason": null + }, + "B37": { + "time_averaged_auroc": 0.7700311509143541, + "time_averaged_auprc": 0.036334753658496935, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2768, + "positives": 8, + "negatives": 2760, + "auroc": 0.8493206521739131, + "auprc": 0.01233807722301052, + "brier": 0.0028775426385142648, + "calibration": { + "observed_rate": 0.002890173410404624, + "mean_prediction": 0.0013491144730933703, + "calibration_in_the_large": -0.0015410589373112539, + "expected_calibration_error_10bin": 0.0015410589373112539, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 15, + "negatives": 2753, + "auroc": 0.7451991766557695, + "auprc": 0.016592932174222415, + "brier": 0.0053893884740358645, + "calibration": { + "observed_rate": 0.00541907514450867, + "mean_prediction": 0.0027326738154048575, + "calibration_in_the_large": -0.002686401329103813, + "expected_calibration_error_10bin": 0.002686401329103813, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 18, + "negatives": 2750, + "auroc": 0.7403636363636363, + "auprc": 0.01939122849264217, + "brier": 0.006461019485870311, + "calibration": { + "observed_rate": 0.006502890173410405, + "mean_prediction": 0.003624562309144394, + "calibration_in_the_large": -0.0028783278642660107, + "expected_calibration_error_10bin": 0.0028783278642660107, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 22, + "negatives": 2746, + "auroc": 0.7607925577699794, + "auprc": 0.023071891849276396, + "brier": 0.007886955458051553, + "calibration": { + "observed_rate": 0.007947976878612716, + "mean_prediction": 0.004349414551584731, + "calibration_in_the_large": -0.003598562327027985, + "expected_calibration_error_10bin": 0.003748951709589838, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 23, + "negatives": 2745, + "auroc": 0.7489348222063832, + "auprc": 0.02245586260299708, + "brier": 0.00826075161254449, + "calibration": { + "observed_rate": 0.008309248554913294, + "mean_prediction": 0.005079855491235032, + "calibration_in_the_large": -0.003229393063678262, + "expected_calibration_error_10bin": 0.0034825766424599175, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 26, + "negatives": 2742, + "auroc": 0.7394658587218762, + "auprc": 0.022888352056800072, + "brier": 0.009343767698724116, + "calibration": { + "observed_rate": 0.00939306358381503, + "mean_prediction": 0.005606997611821341, + "calibration_in_the_large": -0.0037860659719936886, + "expected_calibration_error_10bin": 0.004368670829446031, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 30, + "negatives": 2738, + "auroc": 0.765473581689798, + "auprc": 0.03162765276812305, + "brier": 0.010706599001186867, + "calibration": { + "observed_rate": 0.01083815028901734, + "mean_prediction": 0.005930389029444838, + "calibration_in_the_large": -0.0049077612595725024, + "expected_calibration_error_10bin": 0.005513462728457449, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 31, + "negatives": 2737, + "auroc": 0.7740285454995462, + "auprc": 0.045811871042670316, + "brier": 0.010979783063675867, + "calibration": { + "observed_rate": 0.011199421965317919, + "mean_prediction": 0.006251784777362976, + "calibration_in_the_large": -0.004947637187954943, + "expected_calibration_error_10bin": 0.004947637187954944, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 34, + "negatives": 2734, + "auroc": 0.7872326692198459, + "auprc": 0.0502540286468785, + "brier": 0.01201691302393903, + "calibration": { + "observed_rate": 0.012283236994219654, + "mean_prediction": 0.006690901971681715, + "calibration_in_the_large": -0.005592335022537939, + "expected_calibration_error_10bin": 0.005708743114502343, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 35, + "negatives": 2733, + "auroc": 0.768564110605823, + "auprc": 0.04899170487526832, + "brier": 0.012378583216146868, + "calibration": { + "observed_rate": 0.012644508670520232, + "mean_prediction": 0.006986780921936828, + "calibration_in_the_large": -0.005657727748583404, + "expected_calibration_error_10bin": 0.006079628535258184, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 36, + "negatives": 2732, + "auroc": 0.7750528713193428, + "auprc": 0.059198254942496024, + "brier": 0.012670924167099005, + "calibration": { + "observed_rate": 0.01300578034682081, + "mean_prediction": 0.007382169735999903, + "calibration_in_the_large": -0.005623610610820907, + "expected_calibration_error_10bin": 0.006159162586221368, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 38, + "negatives": 2730, + "auroc": 0.7778773857721226, + "auprc": 0.05986052211606144, + "brier": 0.013370121152441837, + "calibration": { + "observed_rate": 0.013728323699421965, + "mean_prediction": 0.0076208439058237445, + "calibration_in_the_large": -0.006107479793598221, + "expected_calibration_error_10bin": 0.00682513333123029, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 38, + "negatives": 2730, + "auroc": 0.7780990938885676, + "auprc": 0.059869418770013776, + "brier": 0.013369639510541606, + "calibration": { + "observed_rate": 0.013728323699421965, + "mean_prediction": 0.007667315865925216, + "calibration_in_the_large": -0.006061007833496749, + "expected_calibration_error_10bin": 0.006785795156699451, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + } + ], + "reason": null + }, + "B95": { + "time_averaged_auroc": 0.7455787318391871, + "time_averaged_auprc": 0.04217047022948638, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2678, + "positives": 15, + "negatives": 2663, + "auroc": 0.7335586431343096, + "auprc": 0.012467000911037399, + "brier": 0.005561325864327019, + "calibration": { + "observed_rate": 0.005601194921583271, + "mean_prediction": 0.004333276764756927, + "calibration_in_the_large": -0.0012679181568263443, + "expected_calibration_error_10bin": 0.0012679181568263443, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9419627154414351 + }, + { + "valid": 2678, + "positives": 27, + "negatives": 2651, + "auroc": 0.7803204940134401, + "auprc": 0.02721924017312424, + "brier": 0.00991304032218867, + "calibration": { + "observed_rate": 0.010082150858849889, + "mean_prediction": 0.00806995689307021, + "calibration_in_the_large": -0.002012193965779679, + "expected_calibration_error_10bin": 0.002012193965779679, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9419627154414351 + }, + { + "valid": 2678, + "positives": 34, + "negatives": 2644, + "auroc": 0.749154578624188, + "auprc": 0.028874929271521976, + "brier": 0.012470896970600243, + "calibration": { + "observed_rate": 0.012696041822255415, + "mean_prediction": 0.009831174660889732, + "calibration_in_the_large": -0.002864867161365683, + "expected_calibration_error_10bin": 0.002864867161365683, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9419627154414351 + }, + { + "valid": 2678, + "positives": 39, + "negatives": 2639, + "auroc": 0.7428513131430904, + "auprc": 0.030832076868715176, + "brier": 0.014295318499807162, + "calibration": { + "observed_rate": 0.014563106796116505, + "mean_prediction": 0.011121385358191387, + "calibration_in_the_large": -0.003441721437925118, + "expected_calibration_error_10bin": 0.0035175945561946404, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9419627154414351 + }, + { + "valid": 2678, + "positives": 42, + "negatives": 2636, + "auroc": 0.7445082737191994, + "auprc": 0.03289625514995158, + "brier": 0.015385016839054218, + "calibration": { + "observed_rate": 0.01568334578043316, + "mean_prediction": 0.012379417976763904, + "calibration_in_the_large": -0.003303927803669256, + "expected_calibration_error_10bin": 0.003541544702524304, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9419627154414351 + }, + { + "valid": 2678, + "positives": 42, + "negatives": 2636, + "auroc": 0.7433250234843558, + "auprc": 0.032695891547874445, + "brier": 0.015393870788321419, + "calibration": { + "observed_rate": 0.01568334578043316, + "mean_prediction": 0.01335444173937021, + "calibration_in_the_large": -0.0023289040410629496, + "expected_calibration_error_10bin": 0.002814925600634348, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9419627154414351 + }, + { + "valid": 2678, + "positives": 51, + "negatives": 2627, + "auroc": 0.7392015047358875, + "auprc": 0.045554859138091354, + "brier": 0.018541718663297208, + "calibration": { + "observed_rate": 0.019044062733383122, + "mean_prediction": 0.014112140411308314, + "calibration_in_the_large": -0.004931922322074808, + "expected_calibration_error_10bin": 0.005020357976130978, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9419627154414351 + }, + { + "valid": 2678, + "positives": 54, + "negatives": 2624, + "auroc": 0.7391175474254743, + "auprc": 0.04837673805482002, + "brier": 0.019613138274322352, + "calibration": { + "observed_rate": 0.020164301717699777, + "mean_prediction": 0.014964241242379035, + "calibration_in_the_large": -0.005200060475320742, + "expected_calibration_error_10bin": 0.005575593891976555, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9419627154414351 + }, + { + "valid": 2678, + "positives": 56, + "negatives": 2622, + "auroc": 0.7454165304565762, + "auprc": 0.05376741668539795, + "brier": 0.02030141301015649, + "calibration": { + "observed_rate": 0.020911127707244213, + "mean_prediction": 0.015517825309619798, + "calibration_in_the_large": -0.005393302397624415, + "expected_calibration_error_10bin": 0.0060449303268671276, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9419627154414351 + }, + { + "valid": 2678, + "positives": 60, + "negatives": 2618, + "auroc": 0.7479819200407436, + "auprc": 0.05910258682954406, + "brier": 0.021662705460164723, + "calibration": { + "observed_rate": 0.022404779686333084, + "mean_prediction": 0.016254464690592642, + "calibration_in_the_large": -0.006150314995740442, + "expected_calibration_error_10bin": 0.006419479945329206, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9419627154414351 + }, + { + "valid": 2678, + "positives": 60, + "negatives": 2618, + "auroc": 0.7475935828877005, + "auprc": 0.059195297514736664, + "brier": 0.021655348180137177, + "calibration": { + "observed_rate": 0.022404779686333084, + "mean_prediction": 0.01695050717199926, + "calibration_in_the_large": -0.005454272514333825, + "expected_calibration_error_10bin": 0.006005808503630091, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9419627154414351 + }, + { + "valid": 2678, + "positives": 61, + "negatives": 2617, + "auroc": 0.7397282584864411, + "auprc": 0.05861616314477533, + "brier": 0.022022901311273237, + "calibration": { + "observed_rate": 0.022778192681105303, + "mean_prediction": 0.017796742167567093, + "calibration_in_the_large": -0.00498145051353821, + "expected_calibration_error_10bin": 0.005927771329466785, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9419627154414351 + }, + { + "valid": 2678, + "positives": 61, + "negatives": 2617, + "auroc": 0.739765843758026, + "auprc": 0.058617657693732755, + "brier": 0.02202306817063092, + "calibration": { + "observed_rate": 0.022778192681105303, + "mean_prediction": 0.017865587465024795, + "calibration_in_the_large": -0.004912605216080508, + "expected_calibration_error_10bin": 0.005941795139737661, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9419627154414351 + } + ], + "reason": null + }, + "B96": { + "time_averaged_auroc": 0.7627627078194193, + "time_averaged_auprc": 0.0718162111599486, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2630, + "positives": 15, + "negatives": 2615, + "auroc": 0.758597833014659, + "auprc": 0.0168362853006091, + "brier": 0.005648236479062651, + "calibration": { + "observed_rate": 0.005703422053231939, + "mean_prediction": 0.005406740182606121, + "calibration_in_the_large": -0.000296681870625818, + "expected_calibration_error_10bin": 0.000296681870625818, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9250791417516707 + }, + { + "valid": 2630, + "positives": 30, + "negatives": 2600, + "auroc": 0.7951282051282051, + "auprc": 0.0404984168306498, + "brier": 0.011128991015534846, + "calibration": { + "observed_rate": 0.011406844106463879, + "mean_prediction": 0.009335772708716127, + "calibration_in_the_large": -0.002071071397747752, + "expected_calibration_error_10bin": 0.002071071397747752, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9250791417516707 + }, + { + "valid": 2630, + "positives": 44, + "negatives": 2586, + "auroc": 0.7461945440483724, + "auprc": 0.050288623748761176, + "brier": 0.016238968661272907, + "calibration": { + "observed_rate": 0.016730038022813688, + "mean_prediction": 0.011427206252739205, + "calibration_in_the_large": -0.0053028317700744825, + "expected_calibration_error_10bin": 0.005491216912874047, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9250791417516707 + }, + { + "valid": 2630, + "positives": 52, + "negatives": 2578, + "auroc": 0.759443814525273, + "auprc": 0.06559756542847686, + "brier": 0.01902851981531666, + "calibration": { + "observed_rate": 0.01977186311787072, + "mean_prediction": 0.012995754034705938, + "calibration_in_the_large": -0.006776109083164783, + "expected_calibration_error_10bin": 0.007152003458111915, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9250791417516707 + }, + { + "valid": 2630, + "positives": 57, + "negatives": 2573, + "auroc": 0.7628272001418237, + "auprc": 0.0680888162915625, + "brier": 0.02080729733842305, + "calibration": { + "observed_rate": 0.02167300380228137, + "mean_prediction": 0.014410561854803241, + "calibration_in_the_large": -0.007262441947478129, + "expected_calibration_error_10bin": 0.008326356952453116, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9250791417516707 + }, + { + "valid": 2630, + "positives": 61, + "negatives": 2569, + "auroc": 0.7678052951649236, + "auprc": 0.07561050408933825, + "brier": 0.02215391786479528, + "calibration": { + "observed_rate": 0.023193916349809884, + "mean_prediction": 0.015807378335750553, + "calibration_in_the_large": -0.007386538014059332, + "expected_calibration_error_10bin": 0.007951991063407216, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9250791417516707 + }, + { + "valid": 2630, + "positives": 70, + "negatives": 2560, + "auroc": 0.7673716517857143, + "auprc": 0.08253139498705327, + "brier": 0.025332387805298798, + "calibration": { + "observed_rate": 0.026615969581749048, + "mean_prediction": 0.016783055139217747, + "calibration_in_the_large": -0.009832914442531301, + "expected_calibration_error_10bin": 0.01018221796728837, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9250791417516707 + }, + { + "valid": 2630, + "positives": 72, + "negatives": 2558, + "auroc": 0.7649639475284511, + "auprc": 0.084063695010694, + "brier": 0.026008924496827852, + "calibration": { + "observed_rate": 0.02737642585551331, + "mean_prediction": 0.017831448527035734, + "calibration_in_the_large": -0.009544977328477575, + "expected_calibration_error_10bin": 0.009714300106994419, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9250791417516707 + }, + { + "valid": 2630, + "positives": 74, + "negatives": 2556, + "auroc": 0.7604523537622129, + "auprc": 0.08279910158177944, + "brier": 0.026733370499644943, + "calibration": { + "observed_rate": 0.028136882129277566, + "mean_prediction": 0.018863413527190946, + "calibration_in_the_large": -0.00927346860208662, + "expected_calibration_error_10bin": 0.009451549014004882, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9250791417516707 + }, + { + "valid": 2630, + "positives": 77, + "negatives": 2553, + "auroc": 0.7544574501096241, + "auprc": 0.08489509085812227, + "brier": 0.02778176863341625, + "calibration": { + "observed_rate": 0.029277566539923954, + "mean_prediction": 0.01966402837132394, + "calibration_in_the_large": -0.009613538168600014, + "expected_calibration_error_10bin": 0.010122591625972552, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9250791417516707 + }, + { + "valid": 2630, + "positives": 83, + "negatives": 2547, + "auroc": 0.7593199653738629, + "auprc": 0.09277034630869158, + "brier": 0.02981960897489219, + "calibration": { + "observed_rate": 0.03155893536121673, + "mean_prediction": 0.020504174178741525, + "calibration_in_the_large": -0.011054761182475208, + "expected_calibration_error_10bin": 0.011593036916121987, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9250791417516707 + }, + { + "valid": 2630, + "positives": 87, + "negatives": 2543, + "auroc": 0.7601529553744559, + "auprc": 0.09490189639955253, + "brier": 0.03120895117146472, + "calibration": { + "observed_rate": 0.03307984790874525, + "mean_prediction": 0.02153442619300267, + "calibration_in_the_large": -0.01154542171574258, + "expected_calibration_error_10bin": 0.012105312971832026, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9250791417516707 + }, + { + "valid": 2630, + "positives": 88, + "negatives": 2542, + "auroc": 0.7591999856948716, + "auprc": 0.09472900824404108, + "brier": 0.031573649251084066, + "calibration": { + "observed_rate": 0.033460076045627375, + "mean_prediction": 0.021615773646719575, + "calibration_in_the_large": -0.0118443023989078, + "expected_calibration_error_10bin": 0.012409740683074665, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9250791417516707 + } + ], + "reason": null + }, + "B97": { + "time_averaged_auroc": 0.632329270356235, + "time_averaged_auprc": 0.019936878627253997, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.45136186770428016, + "auprc": 0.0006443298969072165, + "brier": 0.0003542218156109538, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 9.416764779545033e-05, + "calibration_in_the_large": -0.00025943914145490327, + "expected_calibration_error_10bin": 0.00025943914145490327, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.5288291475061903, + "auprc": 0.0007501875468867217, + "brier": 0.0003579677869643746, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0003158662800884618, + "calibration_in_the_large": -3.774050916189182e-05, + "expected_calibration_error_10bin": 3.774050916189182e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.5001768659356208, + "auprc": 0.0007072135785007072, + "brier": 0.0003671065958824741, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0005306450582154466, + "calibration_in_the_large": 0.000177038268965093, + "expected_calibration_error_10bin": 0.00017703826896509306, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.5012380615493456, + "auprc": 0.0007087172218284905, + "brier": 0.00036950774295409385, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0006084988629863235, + "calibration_in_the_large": 0.0002548920737359699, + "expected_calibration_error_10bin": 0.00025489207373596996, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.50442164839052, + "auprc": 0.0007132667617689016, + "brier": 0.0003737672569471305, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0007823751206979968, + "calibration_in_the_large": 0.0004287683314476432, + "expected_calibration_error_10bin": 0.00042876833144764326, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.5012380615493456, + "auprc": 0.0007087172218284905, + "brier": 0.000378686198456181, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0008717474995791451, + "calibration_in_the_large": 0.0005181407103287915, + "expected_calibration_error_10bin": 0.0005181407103287915, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.7466383581033262, + "auprc": 0.03641801548205489, + "brier": 0.0007188602453808231, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.0009229196941364593, + "calibration_in_the_large": 0.00021570611563575203, + "expected_calibration_error_10bin": 0.00021570611563575214, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.7448690728945506, + "auprc": 0.03641309773385245, + "brier": 0.000728123729827887, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.0010484347216969977, + "calibration_in_the_large": 0.0003412211431962905, + "expected_calibration_error_10bin": 0.0003412211431962904, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.7420382165605095, + "auprc": 0.03640537071774114, + "brier": 0.0007434054108120859, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.001316603579934101, + "calibration_in_the_large": 0.0006093900014333937, + "expected_calibration_error_10bin": 0.0006093900014333938, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.7388535031847133, + "auprc": 0.036396879570941, + "brier": 0.0007579033771515879, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.001467514230113973, + "calibration_in_the_large": 0.0007603006516132658, + "expected_calibration_error_10bin": 0.0007603006516132659, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.7538924274593064, + "auprc": 0.03643892339544513, + "brier": 0.0007638575708409341, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.0015919924007125037, + "calibration_in_the_large": 0.0008847788222117965, + "expected_calibration_error_10bin": 0.0008847788222117966, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.7533616418966738, + "auprc": 0.036437351513273424, + "brier": 0.0007650650253919449, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.001614710845437417, + "calibration_in_the_large": 0.0009074972669367098, + "expected_calibration_error_10bin": 0.0009074972669367096, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.7533616418966738, + "auprc": 0.036437351513273424, + "brier": 0.0007653450081133212, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.0016196215371186698, + "calibration_in_the_large": 0.0009124079586179625, + "expected_calibration_error_10bin": 0.0009124079586179624, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + } + ], + "reason": null + }, + "C18": { + "time_averaged_auroc": 0.9752504857404044, + "time_averaged_auprc": 0.01951529112116854, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2824, + "positives": 1, + "negatives": 2823, + "auroc": 0.9787460148777896, + "auprc": 0.01639344262295082, + "brier": 0.0003530579099562274, + "calibration": { + "observed_rate": 0.0003541076487252125, + "mean_prediction": 0.00022248804697903404, + "calibration_in_the_large": -0.00013161960174617844, + "expected_calibration_error_10bin": 0.00013161960174617844, + "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.00035299320851605876, + "calibration": { + "observed_rate": 0.0003541076487252125, + "mean_prediction": 0.00039329954980570075, + "calibration_in_the_large": 3.919190108048827e-05, + "expected_calibration_error_10bin": 3.919190108048827e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.9771438695960312, + "auprc": 0.022134203168685928, + "brier": 0.0007046995158394491, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.00047354387130805743, + "calibration_in_the_large": -0.00023467142614236753, + "expected_calibration_error_10bin": 0.00023467142614236753, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.9757264351523742, + "auprc": 0.02085561497326203, + "brier": 0.0007045311316060278, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0006218270395010719, + "calibration_in_the_large": -8.638825794935303e-05, + "expected_calibration_error_10bin": 8.638825794935303e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.97537207654146, + "auprc": 0.020556478405315614, + "brier": 0.000704559302314515, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0006308987718386791, + "calibration_in_the_large": -7.731652561174588e-05, + "expected_calibration_error_10bin": 7.731652561174588e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.9746633593196314, + "auprc": 0.019984326018808778, + "brier": 0.0007046478436536619, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0006672432455703636, + "calibration_in_the_large": -4.097205188006135e-05, + "expected_calibration_error_10bin": 4.097205188006135e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.9746633593196314, + "auprc": 0.019961240310077517, + "brier": 0.0007046727590860787, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.00068907960400296, + "calibration_in_the_large": -1.913569344746491e-05, + "expected_calibration_error_10bin": 1.913569344746491e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.9750177179305457, + "auprc": 0.020244914082559747, + "brier": 0.0007047397130740024, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0007290566968789215, + "calibration_in_the_large": 2.084139942849653e-05, + "expected_calibration_error_10bin": 2.084139942849653e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.9743090007087172, + "auprc": 0.019717261904761904, + "brier": 0.0007050469621031478, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0008038041991704022, + "calibration_in_the_large": 9.558890171997719e-05, + "expected_calibration_error_10bin": 9.558890171997719e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.9736002834868888, + "auprc": 0.01922739244951712, + "brier": 0.0007051622152425327, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0008261374414628349, + "calibration_in_the_large": 0.00011792214401240998, + "expected_calibration_error_10bin": 0.00011792214401240998, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.9723600283486888, + "auprc": 0.018438697318007662, + "brier": 0.0007053776487778418, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0008888041926584568, + "calibration_in_the_large": 0.0001805888952080318, + "expected_calibration_error_10bin": 0.0001805888952080318, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.9723600283486888, + "auprc": 0.018477222045237336, + "brier": 0.0007054199931830308, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0009345155607881467, + "calibration_in_the_large": 0.00022630026333772177, + "expected_calibration_error_10bin": 0.00022630026333772177, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.9723600283486888, + "auprc": 0.018477222045237336, + "brier": 0.0007054325881894434, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0009365642316105058, + "calibration_in_the_large": 0.00022834893416008085, + "expected_calibration_error_10bin": 0.00022834893416008085, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + } + ], + "reason": null + }, + "C22": { + "time_averaged_auroc": 0.9189981162318406, + "time_averaged_auprc": 0.025792929261973248, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2812, + "positives": 2, + "negatives": 2810, + "auroc": 0.9346975088967971, + "auprc": 0.015841660856766596, + "brier": 0.0007140940569243715, + "calibration": { + "observed_rate": 0.0007112375533428165, + "mean_prediction": 0.0002291299355858571, + "calibration_in_the_large": -0.0004821076177569594, + "expected_calibration_error_10bin": 0.0004821076177569594, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9890960253253606 + }, + { + "valid": 2812, + "positives": 3, + "negatives": 2809, + "auroc": 0.9499228669751988, + "auprc": 0.02815680038662255, + "brier": 0.0010710093138930619, + "calibration": { + "observed_rate": 0.0010668563300142249, + "mean_prediction": 0.00034105718128102917, + "calibration_in_the_large": -0.0007257991487331957, + "expected_calibration_error_10bin": 0.0007257991487331957, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9890960253253606 + }, + { + "valid": 2812, + "positives": 5, + "negatives": 2807, + "auroc": 0.9194869967937299, + "auprc": 0.028439805211758328, + "brier": 0.0017822628135803242, + "calibration": { + "observed_rate": 0.0017780938833570413, + "mean_prediction": 0.00039016404558345175, + "calibration_in_the_large": -0.0013879298377735896, + "expected_calibration_error_10bin": 0.0013879298377735896, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9890960253253606 + }, + { + "valid": 2812, + "positives": 5, + "negatives": 2807, + "auroc": 0.9189169932312077, + "auprc": 0.0282577469294474, + "brier": 0.00178442573231863, + "calibration": { + "observed_rate": 0.0017780938833570413, + "mean_prediction": 0.0004371081165629938, + "calibration_in_the_large": -0.0013409857667940474, + "expected_calibration_error_10bin": 0.0013409857667940474, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9890960253253606 + }, + { + "valid": 2812, + "positives": 5, + "negatives": 2807, + "auroc": 0.9191307445671535, + "auprc": 0.028192481965385367, + "brier": 0.001785644833052986, + "calibration": { + "observed_rate": 0.0017780938833570413, + "mean_prediction": 0.0004699977242157816, + "calibration_in_the_large": -0.0013080961591412598, + "expected_calibration_error_10bin": 0.001379279801034177, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9890960253253606 + }, + { + "valid": 2812, + "positives": 5, + "negatives": 2807, + "auroc": 0.9167794798717492, + "auprc": 0.027862569624991985, + "brier": 0.0017881511263835594, + "calibration": { + "observed_rate": 0.0017780938833570413, + "mean_prediction": 0.0005279013686154716, + "calibration_in_the_large": -0.0012501925147415697, + "expected_calibration_error_10bin": 0.0014729298314249495, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9890960253253606 + }, + { + "valid": 2812, + "positives": 5, + "negatives": 2807, + "auroc": 0.916993231207695, + "auprc": 0.02784085184406493, + "brier": 0.001789221030078188, + "calibration": { + "observed_rate": 0.0017780938833570413, + "mean_prediction": 0.0005494950171651448, + "calibration_in_the_large": -0.0012285988661918964, + "expected_calibration_error_10bin": 0.0014584146742703695, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9890960253253606 + }, + { + "valid": 2812, + "positives": 6, + "negatives": 2806, + "auroc": 0.9183891660727014, + "auprc": 0.026056830257350977, + "brier": 0.002148139119732953, + "calibration": { + "observed_rate": 0.0021337126600284497, + "mean_prediction": 0.0006176509264438866, + "calibration_in_the_large": -0.001516061733584563, + "expected_calibration_error_10bin": 0.0017687294844881498, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9890960253253606 + }, + { + "valid": 2812, + "positives": 6, + "negatives": 2806, + "auroc": 0.9203492516037064, + "auprc": 0.026233862232951308, + "brier": 0.0021492756782918554, + "calibration": { + "observed_rate": 0.0021337126600284497, + "mean_prediction": 0.0006414039882795042, + "calibration_in_the_large": -0.0014923086717489454, + "expected_calibration_error_10bin": 0.0018969460104723763, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9890960253253606 + }, + { + "valid": 2812, + "positives": 6, + "negatives": 2806, + "auroc": 0.920111665478736, + "auprc": 0.025894448871593177, + "brier": 0.002153999343696987, + "calibration": { + "observed_rate": 0.0021337126600284497, + "mean_prediction": 0.0006997352521140685, + "calibration_in_the_large": -0.0014339774079143812, + "expected_calibration_error_10bin": 0.0018752581486767145, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9890960253253606 + }, + { + "valid": 2812, + "positives": 7, + "negatives": 2805, + "auroc": 0.9039979628214923, + "auprc": 0.02402772372169143, + "brier": 0.002510282803894264, + "calibration": { + "observed_rate": 0.0024893314366998577, + "mean_prediction": 0.0007149039554653876, + "calibration_in_the_large": -0.00177442748123447, + "expected_calibration_error_10bin": 0.002221271325708595, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9890960253253606 + }, + { + "valid": 2812, + "positives": 7, + "negatives": 2805, + "auroc": 0.9040998217468805, + "auprc": 0.02425298118421723, + "brier": 0.002513830136981759, + "calibration": { + "observed_rate": 0.0024893314366998577, + "mean_prediction": 0.0007595575640885009, + "calibration_in_the_large": -0.0017297738726113569, + "expected_calibration_error_10bin": 0.0022002316381010464, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9890960253253606 + }, + { + "valid": 2812, + "positives": 7, + "negatives": 2805, + "auroc": 0.9040998217468805, + "auprc": 0.024250317318810943, + "brier": 0.0025138811681941673, + "calibration": { + "observed_rate": 0.0024893314366998577, + "mean_prediction": 0.0007607394518874463, + "calibration_in_the_large": -0.0017285919848124115, + "expected_calibration_error_10bin": 0.0021994179075474573, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9890960253253606 + } + ], + "reason": null + }, + "C25": { + "time_averaged_auroc": 0.929772190711104, + "time_averaged_auprc": 0.11106341719486572, + "valid_timepoint_cells": 12, + "timepoints": [ + { + "valid": 2809, + "positives": 0, + "negatives": 2809, + "auroc": null, + "auprc": null, + "brier": 5.601022352328623e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.000262388118335258, + "calibration_in_the_large": 0.000262388118335258, + "expected_calibration_error_10bin": 0.000262388118335258, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 1, + "negatives": 2808, + "auroc": 0.9985754985754985, + "auprc": 0.2, + "brier": 0.00032749351629308727, + "calibration": { + "observed_rate": 0.000355998576005696, + "mean_prediction": 0.0006997571346984807, + "calibration_in_the_large": 0.00034375855869278474, + "expected_calibration_error_10bin": 0.0005698777119182364, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 1, + "negatives": 2808, + "auroc": 0.9985754985754985, + "auprc": 0.2, + "brier": 0.00033025477485536725, + "calibration": { + "observed_rate": 0.000355998576005696, + "mean_prediction": 0.0008033758830640861, + "calibration_in_the_large": 0.0004473773070583901, + "expected_calibration_error_10bin": 0.0007611176646505562, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 1, + "negatives": 2808, + "auroc": 0.9985754985754985, + "auprc": 0.2, + "brier": 0.00033388721649193245, + "calibration": { + "observed_rate": 0.000355998576005696, + "mean_prediction": 0.0008672620357315123, + "calibration_in_the_large": 0.0005112634597258163, + "expected_calibration_error_10bin": 0.0007247222012730639, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 2, + "negatives": 2807, + "auroc": 0.964909155682223, + "auprc": 0.10512820512820513, + "brier": 0.0006923041390797328, + "calibration": { + "observed_rate": 0.000711997152011392, + "mean_prediction": 0.0009336340653982535, + "calibration_in_the_large": 0.00022163691338686147, + "expected_calibration_error_10bin": 0.0003363333472798637, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 2, + "negatives": 2807, + "auroc": 0.9695404346277164, + "auprc": 0.10591715976331362, + "brier": 0.0006950457435804577, + "calibration": { + "observed_rate": 0.000711997152011392, + "mean_prediction": 0.0009984597089845837, + "calibration_in_the_large": 0.00028646255697319166, + "expected_calibration_error_10bin": 0.00037285868324671116, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 2, + "negatives": 2807, + "auroc": 0.9695404346277164, + "auprc": 0.10591715976331362, + "brier": 0.00069721235075154, + "calibration": { + "observed_rate": 0.000711997152011392, + "mean_prediction": 0.001053512513500718, + "calibration_in_the_large": 0.000341515361489326, + "expected_calibration_error_10bin": 0.0004082408356758197, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 2, + "negatives": 2807, + "auroc": 0.9697185607410046, + "auprc": 0.10595238095238096, + "brier": 0.0007002523244977887, + "calibration": { + "observed_rate": 0.000711997152011392, + "mean_prediction": 0.001092711774788313, + "calibration_in_the_large": 0.00038071462277692106, + "expected_calibration_error_10bin": 0.0005711258619073017, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 3, + "negatives": 2806, + "auroc": 0.8594678070800665, + "auprc": 0.07148818330108873, + "brier": 0.0010578410369504801, + "calibration": { + "observed_rate": 0.001067995728017088, + "mean_prediction": 0.0011552593065582146, + "calibration_in_the_large": 8.726357854112665e-05, + "expected_calibration_error_10bin": 0.00024405742259660642, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 3, + "negatives": 2806, + "auroc": 0.8573295319553338, + "auprc": 0.07136857855906333, + "brier": 0.0010615188904250982, + "calibration": { + "observed_rate": 0.001067995728017088, + "mean_prediction": 0.0012183919217841248, + "calibration_in_the_large": 0.00015039619376703683, + "expected_calibration_error_10bin": 0.00023264955851301928, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 4, + "negatives": 2805, + "auroc": 0.8581105169340464, + "auprc": 0.05571153268003662, + "brier": 0.001417996850374649, + "calibration": { + "observed_rate": 0.001423994304022784, + "mean_prediction": 0.0012387878155537433, + "calibration_in_the_large": -0.00018520648846904065, + "expected_calibration_error_10bin": 0.0005329714647253816, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 4, + "negatives": 2805, + "auroc": 0.85650623885918, + "auprc": 0.055639362277854765, + "brier": 0.0014188515127491036, + "calibration": { + "observed_rate": 0.001423994304022784, + "mean_prediction": 0.0012688833471126242, + "calibration_in_the_large": -0.0001551109569101598, + "expected_calibration_error_10bin": 0.0005058964181682246, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 4, + "negatives": 2805, + "auroc": 0.8564171122994653, + "auprc": 0.055638443913131726, + "brier": 0.0014189394018691477, + "calibration": { + "observed_rate": 0.001423994304022784, + "mean_prediction": 0.0012707585413555373, + "calibration_in_the_large": -0.00015323576266724668, + "expected_calibration_error_10bin": 0.0005042687773565227, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + } + ], + "reason": null + }, + "C61": { + "time_averaged_auroc": 0.9955954079392998, + "time_averaged_auprc": 0.12843787112181765, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2805, + "positives": 1, + "negatives": 2804, + "auroc": 0.9989300998573466, + "auprc": 0.25, + "brier": 0.00035302181822142434, + "calibration": { + "observed_rate": 0.00035650623885918, + "mean_prediction": 0.00023875713592585567, + "calibration_in_the_large": -0.00011774910293332435, + "expected_calibration_error_10bin": 0.00011774910293332435, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 2, + "negatives": 2803, + "auroc": 0.9948269711023903, + "auprc": 0.12179487179487179, + "brier": 0.0007049399528507854, + "calibration": { + "observed_rate": 0.00071301247771836, + "mean_prediction": 0.0004380474228864987, + "calibration_in_the_large": -0.00027496505483186134, + "expected_calibration_error_10bin": 0.00027496505483186134, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 2, + "negatives": 2803, + "auroc": 0.995718872636461, + "auprc": 0.12142857142857143, + "brier": 0.000703482691635852, + "calibration": { + "observed_rate": 0.00071301247771836, + "mean_prediction": 0.0005459165920567196, + "calibration_in_the_large": -0.0001670958856616404, + "expected_calibration_error_10bin": 0.0001670958856616404, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 2, + "negatives": 2803, + "auroc": 0.9951837317160186, + "auprc": 0.1, + "brier": 0.0007018689332608494, + "calibration": { + "observed_rate": 0.00071301247771836, + "mean_prediction": 0.000712360819928249, + "calibration_in_the_large": -6.516577901110676e-07, + "expected_calibration_error_10bin": 6.516577901110676e-07, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 2, + "negatives": 2803, + "auroc": 0.9955404923296468, + "auprc": 0.1125, + "brier": 0.0007007345941913116, + "calibration": { + "observed_rate": 0.00071301247771836, + "mean_prediction": 0.0007969421024362145, + "calibration_in_the_large": 8.392962471785444e-05, + "expected_calibration_error_10bin": 8.392962471785444e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 2, + "negatives": 2803, + "auroc": 0.9950053514092044, + "auprc": 0.09761904761904762, + "brier": 0.0006997050822742426, + "calibration": { + "observed_rate": 0.00071301247771836, + "mean_prediction": 0.0009245439280846008, + "calibration_in_the_large": 0.00021153145036624077, + "expected_calibration_error_10bin": 0.00021153145036624077, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 2, + "negatives": 2803, + "auroc": 0.9951837317160186, + "auprc": 0.10317460317460317, + "brier": 0.0006989786855296075, + "calibration": { + "observed_rate": 0.00071301247771836, + "mean_prediction": 0.0009882934295917319, + "calibration_in_the_large": 0.0002752809518733718, + "expected_calibration_error_10bin": 0.0002752809518733718, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 2, + "negatives": 2803, + "auroc": 0.9955404923296468, + "auprc": 0.12878787878787878, + "brier": 0.0006973612555437975, + "calibration": { + "observed_rate": 0.00071301247771836, + "mean_prediction": 0.0011254964127840978, + "calibration_in_the_large": 0.0004124839350657378, + "expected_calibration_error_10bin": 0.0004124839350657378, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 2, + "negatives": 2803, + "auroc": 0.9951837317160186, + "auprc": 0.125, + "brier": 0.0006967670389463539, + "calibration": { + "observed_rate": 0.00071301247771836, + "mean_prediction": 0.0012862732827344835, + "calibration_in_the_large": 0.0005732608050161234, + "expected_calibration_error_10bin": 0.0005732608050161234, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 2, + "negatives": 2803, + "auroc": 0.9951837317160186, + "auprc": 0.125, + "brier": 0.0006961513746321841, + "calibration": { + "observed_rate": 0.00071301247771836, + "mean_prediction": 0.0013907191638285045, + "calibration_in_the_large": 0.0006777066861101444, + "expected_calibration_error_10bin": 0.0006777066861101444, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 2, + "negatives": 2803, + "auroc": 0.9953621120228326, + "auprc": 0.12681159420289856, + "brier": 0.0006960885994080514, + "calibration": { + "observed_rate": 0.00071301247771836, + "mean_prediction": 0.0014031065554650946, + "calibration_in_the_large": 0.0006900940777467345, + "expected_calibration_error_10bin": 0.0006900940777467345, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 2, + "negatives": 2803, + "auroc": 0.9955404923296468, + "auprc": 0.12878787878787878, + "brier": 0.0006956322135124562, + "calibration": { + "observed_rate": 0.00071301247771836, + "mean_prediction": 0.0014727530607891752, + "calibration_in_the_large": 0.0007597405830708151, + "expected_calibration_error_10bin": 0.0007597405830708151, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 2, + "negatives": 2803, + "auroc": 0.9955404923296468, + "auprc": 0.12878787878787878, + "brier": 0.0006954039417866093, + "calibration": { + "observed_rate": 0.00071301247771836, + "mean_prediction": 0.0015007247277878935, + "calibration_in_the_large": 0.0007877122500695334, + "expected_calibration_error_10bin": 0.0007877122500695334, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + } + ], + "reason": null + }, + "C67": { + "time_averaged_auroc": 0.9709531713422765, + "time_averaged_auprc": 0.018079247952577593, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9775380261761585, + "auprc": 0.022875816993464054, + "brier": 0.0007063489091072611, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 7.674349175842452e-05, + "calibration_in_the_large": -0.0006302200996166197, + "expected_calibration_error_10bin": 0.0006302200996166197, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9663954722320481, + "auprc": 0.015399194503672116, + "brier": 0.0007061600925420774, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.00012120547497843351, + "calibration_in_the_large": -0.0005857581163966107, + "expected_calibration_error_10bin": 0.0005857581163966107, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9686947293951185, + "auprc": 0.01634768740031898, + "brier": 0.0007059074166689683, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.00016404228700585283, + "calibration_in_the_large": -0.0005429213043691913, + "expected_calibration_error_10bin": 0.0005429213043691913, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9688715953307393, + "auprc": 0.017489400363416112, + "brier": 0.0007049988260386745, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.00033132154671442263, + "calibration_in_the_large": -0.0003756420446606216, + "expected_calibration_error_10bin": 0.0003756420446606216, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9697559250088433, + "auprc": 0.01793400286944046, + "brier": 0.0007047657981645904, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.00037292426260086776, + "calibration_in_the_large": -0.00033403932877417645, + "expected_calibration_error_10bin": 0.00033403932877417645, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9709939865581889, + "auprc": 0.018205892088712344, + "brier": 0.0007045913044412103, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0004146556321959748, + "calibration_in_the_large": -0.0002923079591790694, + "expected_calibration_error_10bin": 0.0002923079591790694, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9694021931376017, + "auprc": 0.01745598057073467, + "brier": 0.0007044737313526573, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0004600398823630248, + "calibration_in_the_large": -0.0002469237090120194, + "expected_calibration_error_10bin": 0.0002469237090120194, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9718783162362928, + "auprc": 0.018362533692722373, + "brier": 0.0007043172446383684, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0004934605028577418, + "calibration_in_the_large": -0.0002135030885173024, + "expected_calibration_error_10bin": 0.0002135030885173024, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9709939865581889, + "auprc": 0.01779500158177792, + "brier": 0.0007043016200355659, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0005124301214135498, + "calibration_in_the_large": -0.0001945334699614944, + "expected_calibration_error_10bin": 0.0001945334699614944, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9727626459143969, + "auprc": 0.01889483065953654, + "brier": 0.0007040648422703275, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0005571596634527661, + "calibration_in_the_large": -0.00014980392792227808, + "expected_calibration_error_10bin": 0.00014980392792227808, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9717014503006721, + "auprc": 0.018089960886571055, + "brier": 0.0007040729724845915, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0005905676413980227, + "calibration_in_the_large": -0.00011639594997702157, + "expected_calibration_error_10bin": 0.00011639594997702157, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9717014503006721, + "auprc": 0.018089960886571055, + "brier": 0.0007040589457172846, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0006088857492194513, + "calibration_in_the_large": -9.807784215559289e-05, + "expected_calibration_error_10bin": 9.807784215559289e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9717014503006721, + "auprc": 0.018089960886571055, + "brier": 0.0007040190475083178, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0006191574712749957, + "calibration_in_the_large": -8.780612010004856e-05, + "expected_calibration_error_10bin": 8.780612010004856e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + } + ], + "reason": null + }, + "C77": { + "time_averaged_auroc": 0.8709976658651176, + "time_averaged_auprc": 0.10639596281100748, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2762, + "positives": 4, + "negatives": 2758, + "auroc": 0.8235134155184917, + "auprc": 0.07173702427842603, + "brier": 0.0014274218044686236, + "calibration": { + "observed_rate": 0.001448225923244026, + "mean_prediction": 0.0015083389273288042, + "calibration_in_the_large": 6.011300408477818e-05, + "expected_calibration_error_10bin": 6.011300408477803e-05, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + { + "valid": 2762, + "positives": 8, + "negatives": 2754, + "auroc": 0.8893881626724764, + "auprc": 0.11980817722345856, + "brier": 0.0027847298157560973, + "calibration": { + "observed_rate": 0.002896451846488052, + "mean_prediction": 0.002566233376715264, + "calibration_in_the_large": -0.0003302184697727881, + "expected_calibration_error_10bin": 0.0005361186958281988, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + { + "valid": 2762, + "positives": 11, + "negatives": 2751, + "auroc": 0.868147120055517, + "auprc": 0.10044693046062654, + "brier": 0.0038486955958180785, + "calibration": { + "observed_rate": 0.0039826212889210715, + "mean_prediction": 0.00343373414870824, + "calibration_in_the_large": -0.0005488871402128314, + "expected_calibration_error_10bin": 0.0007164206257621619, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + { + "valid": 2762, + "positives": 13, + "negatives": 2749, + "auroc": 0.8860844502896158, + "auprc": 0.11902046139409528, + "brier": 0.004492813627474906, + "calibration": { + "observed_rate": 0.004706734250543085, + "mean_prediction": 0.004024866988707789, + "calibration_in_the_large": -0.0006818672618352966, + "expected_calibration_error_10bin": 0.0008728494779182888, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + { + "valid": 2762, + "positives": 14, + "negatives": 2748, + "auroc": 0.8852932002495322, + "auprc": 0.11371975695702183, + "brier": 0.004834928726779719, + "calibration": { + "observed_rate": 0.005068790731354091, + "mean_prediction": 0.004628460141093963, + "calibration_in_the_large": -0.00044033059026012816, + "expected_calibration_error_10bin": 0.0006636775242092168, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + { + "valid": 2762, + "positives": 16, + "negatives": 2746, + "auroc": 0.8652813182811362, + "auprc": 0.1033713295646719, + "brier": 0.0055490372086497335, + "calibration": { + "observed_rate": 0.005792903692976104, + "mean_prediction": 0.005005382050661546, + "calibration_in_the_large": -0.0007875216423145577, + "expected_calibration_error_10bin": 0.0011849280528726384, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + { + "valid": 2762, + "positives": 17, + "negatives": 2745, + "auroc": 0.8655309118182792, + "auprc": 0.09976351478416694, + "brier": 0.005902613592397995, + "calibration": { + "observed_rate": 0.006154960173787111, + "mean_prediction": 0.005285418585905099, + "calibration_in_the_large": -0.0008695415878820119, + "expected_calibration_error_10bin": 0.0014162237310329521, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + { + "valid": 2762, + "positives": 20, + "negatives": 2742, + "auroc": 0.8813092633114515, + "auprc": 0.1102016292358475, + "brier": 0.006880987006164259, + "calibration": { + "observed_rate": 0.00724112961622013, + "mean_prediction": 0.005650395727223138, + "calibration_in_the_large": -0.001590733888996992, + "expected_calibration_error_10bin": 0.0019967367859218777, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + { + "valid": 2762, + "positives": 20, + "negatives": 2742, + "auroc": 0.8814551422319474, + "auprc": 0.11016239004703646, + "brier": 0.0068723417678214745, + "calibration": { + "observed_rate": 0.00724112961622013, + "mean_prediction": 0.006184623106737576, + "calibration_in_the_large": -0.0010565065094825547, + "expected_calibration_error_10bin": 0.0013240749105954811, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + { + "valid": 2762, + "positives": 20, + "negatives": 2742, + "auroc": 0.8813274981765135, + "auprc": 0.11070883774324936, + "brier": 0.006869889313273375, + "calibration": { + "observed_rate": 0.00724112961622013, + "mean_prediction": 0.006397076942254999, + "calibration_in_the_large": -0.0008440526739651316, + "expected_calibration_error_10bin": 0.0011178773184336887, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + { + "valid": 2762, + "positives": 22, + "negatives": 2740, + "auroc": 0.8684140676841406, + "auprc": 0.11030317214159341, + "brier": 0.007582750756097147, + "calibration": { + "observed_rate": 0.007965242577842143, + "mean_prediction": 0.006633553521260117, + "calibration_in_the_large": -0.001331689056582026, + "expected_calibration_error_10bin": 0.0017377394138671659, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + { + "valid": 2762, + "positives": 23, + "negatives": 2739, + "auroc": 0.8636125529787133, + "auprc": 0.10675334618658476, + "brier": 0.007937573201952404, + "calibration": { + "observed_rate": 0.00832729905865315, + "mean_prediction": 0.006850104437164124, + "calibration_in_the_large": -0.0014771946214890263, + "expected_calibration_error_10bin": 0.0025131143756972384, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + { + "valid": 2762, + "positives": 23, + "negatives": 2739, + "auroc": 0.8636125529787133, + "auprc": 0.10715094652631865, + "brier": 0.007936756538495723, + "calibration": { + "observed_rate": 0.00832729905865315, + "mean_prediction": 0.006895629549853173, + "calibration_in_the_large": -0.001431669508799977, + "expected_calibration_error_10bin": 0.0024789727682590092, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + } + ], + "reason": null + }, + "C78": { + "time_averaged_auroc": 0.8805350777687154, + "time_averaged_auprc": 0.16427255288574416, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2762, + "positives": 7, + "negatives": 2755, + "auroc": 0.9218563650505575, + "auprc": 0.18746027164893425, + "brier": 0.0023822250648933645, + "calibration": { + "observed_rate": 0.0025343953656770456, + "mean_prediction": 0.0014997624640149258, + "calibration_in_the_large": -0.0010346329016621197, + "expected_calibration_error_10bin": 0.001198401842442008, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + { + "valid": 2762, + "positives": 14, + "negatives": 2748, + "auroc": 0.8894260761072988, + "auprc": 0.19391730540364777, + "brier": 0.004653473877032601, + "calibration": { + "observed_rate": 0.005068790731354091, + "mean_prediction": 0.0029363514187666882, + "calibration_in_the_large": -0.002132439312587403, + "expected_calibration_error_10bin": 0.0023986329008456194, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + { + "valid": 2762, + "positives": 16, + "negatives": 2746, + "auroc": 0.893413146394756, + "auprc": 0.17801795078685226, + "brier": 0.005329966682731987, + "calibration": { + "observed_rate": 0.005792903692976104, + "mean_prediction": 0.0037382044473241818, + "calibration_in_the_large": -0.002054699245651922, + "expected_calibration_error_10bin": 0.0030756468072802353, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + { + "valid": 2762, + "positives": 18, + "negatives": 2744, + "auroc": 0.8652210884353742, + "auprc": 0.1609663884460958, + "brier": 0.006038303168342459, + "calibration": { + "observed_rate": 0.0065170166545981175, + "mean_prediction": 0.0043593069472826805, + "calibration_in_the_large": -0.002157709707315437, + "expected_calibration_error_10bin": 0.004072441460869839, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + { + "valid": 2762, + "positives": 21, + "negatives": 2741, + "auroc": 0.8660203957540696, + "auprc": 0.14917888246911332, + "brier": 0.007098261914919431, + "calibration": { + "observed_rate": 0.007603186097031137, + "mean_prediction": 0.004822752628070484, + "calibration_in_the_large": -0.002780433468960653, + "expected_calibration_error_10bin": 0.005151357528637224, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + { + "valid": 2762, + "positives": 23, + "negatives": 2739, + "auroc": 0.8685016746829214, + "auprc": 0.14677683194243762, + "brier": 0.007784501780255946, + "calibration": { + "observed_rate": 0.00832729905865315, + "mean_prediction": 0.005246605650478926, + "calibration_in_the_large": -0.0030806934081742243, + "expected_calibration_error_10bin": 0.005732614447989626, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + { + "valid": 2762, + "positives": 25, + "negatives": 2737, + "auroc": 0.8732773109243698, + "auprc": 0.14383449358945685, + "brier": 0.008492855600836308, + "calibration": { + "observed_rate": 0.009051412020275163, + "mean_prediction": 0.005564915712742551, + "calibration_in_the_large": -0.0034864963075326126, + "expected_calibration_error_10bin": 0.006367226398504317, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + { + "valid": 2762, + "positives": 25, + "negatives": 2737, + "auroc": 0.8735549872122762, + "auprc": 0.14433846846511858, + "brier": 0.008511168193627457, + "calibration": { + "observed_rate": 0.009051412020275163, + "mean_prediction": 0.00612946529512441, + "calibration_in_the_large": -0.0029219467251507536, + "expected_calibration_error_10bin": 0.005547103833585394, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + { + "valid": 2762, + "positives": 28, + "negatives": 2734, + "auroc": 0.8759666631831957, + "auprc": 0.16313934508679065, + "brier": 0.009417089632675344, + "calibration": { + "observed_rate": 0.010137581462708182, + "mean_prediction": 0.0065520252463788465, + "calibration_in_the_large": -0.0035855562163293357, + "expected_calibration_error_10bin": 0.006396105738707829, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + { + "valid": 2762, + "positives": 32, + "negatives": 2730, + "auroc": 0.8734661172161172, + "auprc": 0.14886377646737947, + "brier": 0.01084664241384645, + "calibration": { + "observed_rate": 0.011585807385952208, + "mean_prediction": 0.007036502446929912, + "calibration_in_the_large": -0.004549304939022295, + "expected_calibration_error_10bin": 0.007796875015535896, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + { + "valid": 2762, + "positives": 35, + "negatives": 2727, + "auroc": 0.8837131332180838, + "auprc": 0.1732270625931746, + "brier": 0.011687680425836778, + "calibration": { + "observed_rate": 0.012671976828385228, + "mean_prediction": 0.007448603367757562, + "calibration_in_the_large": -0.005223373460627666, + "expected_calibration_error_10bin": 0.008331645405202317, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + { + "valid": 2762, + "positives": 37, + "negatives": 2725, + "auroc": 0.8812596082320853, + "auprc": 0.17287352717909094, + "brier": 0.01236876012048009, + "calibration": { + "observed_rate": 0.013396089790007242, + "mean_prediction": 0.007731119015773729, + "calibration_in_the_large": -0.0056649707742335124, + "expected_calibration_error_10bin": 0.008956673617696906, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + { + "valid": 2762, + "positives": 37, + "negatives": 2725, + "auroc": 0.8812794445821969, + "auprc": 0.1729488834365822, + "brier": 0.012368727882716188, + "calibration": { + "observed_rate": 0.013396089790007242, + "mean_prediction": 0.007773229146548899, + "calibration_in_the_large": -0.0056228606434583425, + "expected_calibration_error_10bin": 0.009007265860449507, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + } + ], + "reason": null + }, + "C79": { + "time_averaged_auroc": 0.9109978996681047, + "time_averaged_auprc": 0.1071375428895046, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2751, + "positives": 4, + "negatives": 2747, + "auroc": 0.9367491809246451, + "auprc": 0.1212241081703107, + "brier": 0.0014006973250395344, + "calibration": { + "observed_rate": 0.0014540167211922936, + "mean_prediction": 0.0010208960432701707, + "calibration_in_the_large": -0.0004331206779221229, + "expected_calibration_error_10bin": 0.0004331206779221229, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 8, + "negatives": 2743, + "auroc": 0.9418519868756836, + "auprc": 0.08310485459346977, + "brier": 0.002809538090632454, + "calibration": { + "observed_rate": 0.0029080334423845873, + "mean_prediction": 0.0024316728545087643, + "calibration_in_the_large": -0.000476360587875823, + "expected_calibration_error_10bin": 0.00047636058787582295, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 9, + "negatives": 2742, + "auroc": 0.9437960936866845, + "auprc": 0.08075420179380574, + "brier": 0.003184554210530841, + "calibration": { + "observed_rate": 0.003271537622682661, + "mean_prediction": 0.003490675689302594, + "calibration_in_the_large": 0.00021913806661993333, + "expected_calibration_error_10bin": 0.0007045796724845982, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 14, + "negatives": 2737, + "auroc": 0.9018476955999791, + "auprc": 0.10484170324569185, + "brier": 0.004875478956800649, + "calibration": { + "observed_rate": 0.005089058524173028, + "mean_prediction": 0.004298504383232314, + "calibration_in_the_large": -0.0007905541409407146, + "expected_calibration_error_10bin": 0.001760028893598087, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 14, + "negatives": 2737, + "auroc": 0.9014823320632601, + "auprc": 0.10462345845623655, + "brier": 0.004891946611353199, + "calibration": { + "observed_rate": 0.005089058524173028, + "mean_prediction": 0.004897877019037019, + "calibration_in_the_large": -0.00019118150513600975, + "expected_calibration_error_10bin": 0.0014918147783612365, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 16, + "negatives": 2735, + "auroc": 0.9089579524680073, + "auprc": 0.1077726634635811, + "brier": 0.005578936706208514, + "calibration": { + "observed_rate": 0.0058160668847691745, + "mean_prediction": 0.005494112888945823, + "calibration_in_the_large": -0.00032195399582335155, + "expected_calibration_error_10bin": 0.0018420344328803732, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 19, + "negatives": 2732, + "auroc": 0.8917700547121831, + "auprc": 0.10324841888865607, + "brier": 0.006638789326169968, + "calibration": { + "observed_rate": 0.0069065794256633955, + "mean_prediction": 0.0059017637817747205, + "calibration_in_the_large": -0.001004815643888675, + "expected_calibration_error_10bin": 0.002710673867936201, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 20, + "negatives": 2731, + "auroc": 0.895221530574881, + "auprc": 0.09584514085762598, + "brier": 0.007045742675556305, + "calibration": { + "observed_rate": 0.007270083605961469, + "mean_prediction": 0.006742011035931897, + "calibration_in_the_large": -0.0005280725700295714, + "expected_calibration_error_10bin": 0.002813917614207913, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 23, + "negatives": 2728, + "auroc": 0.9038155042713247, + "auprc": 0.11177762725274076, + "brier": 0.007979183560065333, + "calibration": { + "observed_rate": 0.008360596146855689, + "mean_prediction": 0.007323375535153414, + "calibration_in_the_large": -0.001037220611702275, + "expected_calibration_error_10bin": 0.003614219395697496, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 25, + "negatives": 2726, + "auroc": 0.9096991929567131, + "auprc": 0.11750153865208939, + "brier": 0.008626021485036387, + "calibration": { + "observed_rate": 0.009087604507451835, + "mean_prediction": 0.0076882516800471324, + "calibration_in_the_large": -0.0013993528274047025, + "expected_calibration_error_10bin": 0.0034806752525557393, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 26, + "negatives": 2725, + "auroc": 0.8998306280875088, + "auprc": 0.11359231237362734, + "brier": 0.009002218018715539, + "calibration": { + "observed_rate": 0.009451108687749909, + "mean_prediction": 0.008306047143192767, + "calibration_in_the_large": -0.0011450615445571417, + "expected_calibration_error_10bin": 0.0030133097308124583, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 29, + "negatives": 2722, + "auroc": 0.9040006080721579, + "auprc": 0.12415385493615912, + "brier": 0.009950459763824276, + "calibration": { + "observed_rate": 0.010541621228644129, + "mean_prediction": 0.008555711644419572, + "calibration_in_the_large": -0.001985909584224557, + "expected_calibration_error_10bin": 0.0032866486714025014, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 29, + "negatives": 2722, + "auroc": 0.9039499353923333, + "auprc": 0.12434817487956541, + "brier": 0.0099521863516585, + "calibration": { + "observed_rate": 0.010541621228644129, + "mean_prediction": 0.008662653377575956, + "calibration_in_the_large": -0.001878967851068173, + "expected_calibration_error_10bin": 0.0030044956128662146, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + } + ], + "reason": null + }, + "C83": { + "time_averaged_auroc": 0.6470947547200118, + "time_averaged_auprc": 0.007423885245219197, + "valid_timepoint_cells": 5, + "timepoints": [ + { + "valid": 2820, + "positives": 0, + "negatives": 2820, + "auroc": null, + "auprc": null, + "brier": 3.462983736008751e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00017338208822366142, + "calibration_in_the_large": 0.00017338208822366142, + "expected_calibration_error_10bin": 0.00017338208822366142, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9919099542736546 + }, + { + "valid": 2820, + "positives": 0, + "negatives": 2820, + "auroc": null, + "auprc": null, + "brier": 8.986478764880813e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0002674051724753817, + "calibration_in_the_large": 0.0002674051724753817, + "expected_calibration_error_10bin": 0.0002674051724753817, + "nonempty_bins": 2 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9919099542736546 + }, + { + "valid": 2820, + "positives": 0, + "negatives": 2820, + "auroc": null, + "auprc": null, + "brier": 1.7919950365855872e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.000372782546351493, + "calibration_in_the_large": 0.000372782546351493, + "expected_calibration_error_10bin": 0.000372782546351493, + "nonempty_bins": 2 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9919099542736546 + }, + { + "valid": 2820, + "positives": 0, + "negatives": 2820, + "auroc": null, + "auprc": null, + "brier": 2.827470747108916e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0004738029384453328, + "calibration_in_the_large": 0.0004738029384453328, + "expected_calibration_error_10bin": 0.0004738029384453328, + "nonempty_bins": 2 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9919099542736546 + }, + { + "valid": 2820, + "positives": 0, + "negatives": 2820, + "auroc": null, + "auprc": null, + "brier": 2.9955414495098885e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0005074566382974401, + "calibration_in_the_large": 0.0005074566382974401, + "expected_calibration_error_10bin": 0.0005074566382974401, + "nonempty_bins": 2 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9919099542736546 + }, + { + "valid": 2820, + "positives": 0, + "negatives": 2820, + "auroc": null, + "auprc": null, + "brier": 3.229038556587315e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0005342017790931805, + "calibration_in_the_large": 0.0005342017790931805, + "expected_calibration_error_10bin": 0.0005342017790931805, + "nonempty_bins": 3 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9919099542736546 + }, + { + "valid": 2820, + "positives": 0, + "negatives": 2820, + "auroc": null, + "auprc": null, + "brier": 3.488170509630569e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0005658770074504407, + "calibration_in_the_large": 0.0005658770074504407, + "expected_calibration_error_10bin": 0.0005658770074504407, + "nonempty_bins": 3 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9919099542736546 + }, + { + "valid": 2820, + "positives": 0, + "negatives": 2820, + "auroc": null, + "auprc": null, + "brier": 3.5394312927712084e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0005768740997900379, + "calibration_in_the_large": 0.0005768740997900379, + "expected_calibration_error_10bin": 0.0005768740997900379, + "nonempty_bins": 3 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9919099542736546 + }, + { + "valid": 2820, + "positives": 1, + "negatives": 2819, + "auroc": 0.43490599503369987, + "auprc": 0.0006273525721455458, + "brier": 0.00039106525671145446, + "calibration": { + "observed_rate": 0.0003546099290780142, + "mean_prediction": 0.0006005511066506423, + "calibration_in_the_large": 0.00024594117757262805, + "expected_calibration_error_10bin": 0.0002459411775726281, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + { + "valid": 2820, + "positives": 2, + "negatives": 2818, + "auroc": 0.7020936834634492, + "auprc": 0.009236453201970442, + "brier": 0.0007441634054286688, + "calibration": { + "observed_rate": 0.0007092198581560284, + "mean_prediction": 0.0006117433204716438, + "calibration_in_the_large": -9.747653768438463e-05, + "expected_calibration_error_10bin": 0.00034726156402162267, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + { + "valid": 2820, + "positives": 2, + "negatives": 2818, + "auroc": 0.7006742370475515, + "auprc": 0.009087697055981045, + "brier": 0.0007472719871829855, + "calibration": { + "observed_rate": 0.0007092198581560284, + "mean_prediction": 0.0006400378466609164, + "calibration_in_the_large": -6.918201149511203e-05, + "expected_calibration_error_10bin": 0.0003294157954706726, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + { + "valid": 2820, + "positives": 2, + "negatives": 2818, + "auroc": 0.6992547906316536, + "auprc": 0.00908470439809309, + "brier": 0.0007542155329185873, + "calibration": { + "observed_rate": 0.0007092198581560284, + "mean_prediction": 0.0006895082679315115, + "calibration_in_the_large": -1.9711590224516886e-05, + "expected_calibration_error_10bin": 0.0003026198476649892, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + { + "valid": 2820, + "positives": 2, + "negatives": 2818, + "auroc": 0.6985450674237047, + "auprc": 0.009083218997905856, + "brier": 0.0007543526401743968, + "calibration": { + "observed_rate": 0.0007092198581560284, + "mean_prediction": 0.0006918897550534804, + "calibration_in_the_large": -1.7330103102548063e-05, + "expected_calibration_error_10bin": 0.000300625780165861, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + } + ], + "reason": null + }, + "D25": { + "time_averaged_auroc": 0.9940669620292331, + "time_averaged_auprc": 0.46756309994332285, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2792, + "positives": 2, + "negatives": 2790, + "auroc": 0.989068100358423, + "auprc": 0.2661290322580645, + "brier": 0.0007100121735420498, + "calibration": { + "observed_rate": 0.0007163323782234957, + "mean_prediction": 0.00019285209199225174, + "calibration_in_the_large": -0.000523480286231244, + "expected_calibration_error_10bin": 0.000523480286231244, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + { + "valid": 2792, + "positives": 2, + "negatives": 2790, + "auroc": 0.9933691756272401, + "auprc": 0.2763157894736842, + "brier": 0.0007059237549258964, + "calibration": { + "observed_rate": 0.0007163323782234957, + "mean_prediction": 0.0002861654109027993, + "calibration_in_the_large": -0.00043016696732069636, + "expected_calibration_error_10bin": 0.00043016696732069636, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + { + "valid": 2792, + "positives": 2, + "negatives": 2790, + "auroc": 0.992831541218638, + "auprc": 0.27439024390243905, + "brier": 0.0007006493271940933, + "calibration": { + "observed_rate": 0.0007163323782234957, + "mean_prediction": 0.0003884234285976455, + "calibration_in_the_large": -0.0003279089496258502, + "expected_calibration_error_10bin": 0.0003279089496258502, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + { + "valid": 2792, + "positives": 2, + "negatives": 2790, + "auroc": 0.992831541218638, + "auprc": 0.27439024390243905, + "brier": 0.0006994710203908607, + "calibration": { + "observed_rate": 0.0007163323782234957, + "mean_prediction": 0.0004294303226877603, + "calibration_in_the_large": -0.00028690205553573536, + "expected_calibration_error_10bin": 0.00028690205553573536, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + { + "valid": 2792, + "positives": 2, + "negatives": 2790, + "auroc": 0.9930107526881721, + "auprc": 0.275, + "brier": 0.0006960581041256912, + "calibration": { + "observed_rate": 0.0007163323782234957, + "mean_prediction": 0.0005117909339117336, + "calibration_in_the_large": -0.0002045414443117621, + "expected_calibration_error_10bin": 0.0002045414443117621, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + { + "valid": 2792, + "positives": 2, + "negatives": 2790, + "auroc": 0.9930107526881721, + "auprc": 0.275, + "brier": 0.0006950241473303066, + "calibration": { + "observed_rate": 0.0007163323782234957, + "mean_prediction": 0.0005355900649515805, + "calibration_in_the_large": -0.00018074231327191515, + "expected_calibration_error_10bin": 0.00018074231327191515, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + { + "valid": 2792, + "positives": 2, + "negatives": 2790, + "auroc": 0.9933691756272401, + "auprc": 0.2763157894736842, + "brier": 0.0006931363811386892, + "calibration": { + "observed_rate": 0.0007163323782234957, + "mean_prediction": 0.0005926778848158671, + "calibration_in_the_large": -0.00012365449340762862, + "expected_calibration_error_10bin": 0.00012365449340762862, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + { + "valid": 2792, + "positives": 3, + "negatives": 2789, + "auroc": 0.9958168997251106, + "auprc": 0.6929824561403509, + "brier": 0.0010200986384673251, + "calibration": { + "observed_rate": 0.0010744985673352436, + "mean_prediction": 0.0006349265410577354, + "calibration_in_the_large": -0.0004395720262775082, + "expected_calibration_error_10bin": 0.0004395720262775082, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + { + "valid": 2792, + "positives": 3, + "negatives": 2789, + "auroc": 0.9958168997251106, + "auprc": 0.6929824561403509, + "brier": 0.0010186758187071868, + "calibration": { + "observed_rate": 0.0010744985673352436, + "mean_prediction": 0.0006682047628933406, + "calibration_in_the_large": -0.000406293804441903, + "expected_calibration_error_10bin": 0.000406293804441903, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + { + "valid": 2792, + "positives": 3, + "negatives": 2789, + "auroc": 0.9958168997251106, + "auprc": 0.6929824561403509, + "brier": 0.0010177231039417058, + "calibration": { + "observed_rate": 0.0010744985673352436, + "mean_prediction": 0.0006860453117430492, + "calibration_in_the_large": -0.0003884532555921944, + "expected_calibration_error_10bin": 0.0003884532555921944, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + { + "valid": 2792, + "positives": 3, + "negatives": 2789, + "auroc": 0.9959364168758217, + "auprc": 0.6936936936936937, + "brier": 0.0010142308258247145, + "calibration": { + "observed_rate": 0.0010744985673352436, + "mean_prediction": 0.000713366439953315, + "calibration_in_the_large": -0.0003611321273819286, + "expected_calibration_error_10bin": 0.0003611321273819286, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + { + "valid": 2792, + "positives": 3, + "negatives": 2789, + "auroc": 0.9959364168758217, + "auprc": 0.6936936936936937, + "brier": 0.0010125913182418796, + "calibration": { + "observed_rate": 0.0010744985673352436, + "mean_prediction": 0.000756394730421137, + "calibration_in_the_large": -0.0003181038369141066, + "expected_calibration_error_10bin": 0.0003181038369141066, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + { + "valid": 2792, + "positives": 3, + "negatives": 2789, + "auroc": 0.9960559340265328, + "auprc": 0.6944444444444445, + "brier": 0.0010118851730158555, + "calibration": { + "observed_rate": 0.0010744985673352436, + "mean_prediction": 0.0007641752318717054, + "calibration_in_the_large": -0.0003103233354635382, + "expected_calibration_error_10bin": 0.0003103233354635382, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + } + ], + "reason": null + }, + "D47": { + "time_averaged_auroc": 0.6298926136404243, + "time_averaged_auprc": 0.004912999266201748, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2796, + "positives": 4, + "negatives": 2792, + "auroc": 0.6795308022922636, + "auprc": 0.0026803647170850235, + "brier": 0.0014297429289806857, + "calibration": { + "observed_rate": 0.001430615164520744, + "mean_prediction": 0.0006720909135490856, + "calibration_in_the_large": -0.0007585242509716583, + "expected_calibration_error_10bin": 0.0007585242509716583, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + { + "valid": 2796, + "positives": 5, + "negatives": 2791, + "auroc": 0.6655678968111788, + "auprc": 0.0035864627847235373, + "brier": 0.0017878993802461956, + "calibration": { + "observed_rate": 0.00178826895565093, + "mean_prediction": 0.0011357940780441546, + "calibration_in_the_large": -0.0006524748776067753, + "expected_calibration_error_10bin": 0.0006524748776067753, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + { + "valid": 2796, + "positives": 6, + "negatives": 2790, + "auroc": 0.582258064516129, + "auprc": 0.00333282368238205, + "brier": 0.0021470406436174417, + "calibration": { + "observed_rate": 0.002145922746781116, + "mean_prediction": 0.00151964643899553, + "calibration_in_the_large": -0.0006262763077855859, + "expected_calibration_error_10bin": 0.0006262763077855859, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + { + "valid": 2796, + "positives": 6, + "negatives": 2790, + "auroc": 0.575925925925926, + "auprc": 0.003223552462817598, + "brier": 0.0021495589350072957, + "calibration": { + "observed_rate": 0.002145922746781116, + "mean_prediction": 0.0017122296264684396, + "calibration_in_the_large": -0.00043369312031267624, + "expected_calibration_error_10bin": 0.00043369312031267624, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + { + "valid": 2796, + "positives": 6, + "negatives": 2790, + "auroc": 0.5723416965352449, + "auprc": 0.0031425716369741868, + "brier": 0.002152992724946016, + "calibration": { + "observed_rate": 0.002145922746781116, + "mean_prediction": 0.002066866812739098, + "calibration_in_the_large": -7.905593404201796e-05, + "expected_calibration_error_10bin": 7.905593404201796e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + { + "valid": 2796, + "positives": 6, + "negatives": 2790, + "auroc": 0.571326164874552, + "auprc": 0.0031284380156066933, + "brier": 0.0021554191268732263, + "calibration": { + "observed_rate": 0.002145922746781116, + "mean_prediction": 0.002230054115172349, + "calibration_in_the_large": 8.413136839123319e-05, + "expected_calibration_error_10bin": 8.413136839123319e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + { + "valid": 2796, + "positives": 7, + "negatives": 2789, + "auroc": 0.6245454079803309, + "auprc": 0.005051502831890875, + "brier": 0.002509950687527936, + "calibration": { + "observed_rate": 0.002503576537911302, + "mean_prediction": 0.0024742067942078705, + "calibration_in_the_large": -2.9369743703431313e-05, + "expected_calibration_error_10bin": 0.00010133113376316601, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + { + "valid": 2796, + "positives": 9, + "negatives": 2787, + "auroc": 0.6574173743172667, + "auprc": 0.006187233968181836, + "brier": 0.0032239531802294168, + "calibration": { + "observed_rate": 0.003218884120171674, + "mean_prediction": 0.0026680579445039544, + "calibration_in_the_large": -0.0005508261756677194, + "expected_calibration_error_10bin": 0.0006324586325205329, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + { + "valid": 2796, + "positives": 9, + "negatives": 2787, + "auroc": 0.6547861101144201, + "auprc": 0.006088411246557142, + "brier": 0.003226015758338926, + "calibration": { + "observed_rate": 0.003218884120171674, + "mean_prediction": 0.002786445595626455, + "calibration_in_the_large": -0.0004324385245452187, + "expected_calibration_error_10bin": 0.0005179088777890785, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + { + "valid": 2796, + "positives": 10, + "negatives": 2786, + "auroc": 0.6384063173007897, + "auprc": 0.0061282413780917215, + "brier": 0.0035847691079886196, + "calibration": { + "observed_rate": 0.00357653791130186, + "mean_prediction": 0.002891197657775362, + "calibration_in_the_large": -0.000685340253526498, + "expected_calibration_error_10bin": 0.0007762182999893033, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + { + "valid": 2796, + "positives": 10, + "negatives": 2786, + "auroc": 0.6369346733668342, + "auprc": 0.006088336239175454, + "brier": 0.0035860540634133817, + "calibration": { + "observed_rate": 0.00357653791130186, + "mean_prediction": 0.0030022283503479703, + "calibration_in_the_large": -0.0005743095609538895, + "expected_calibration_error_10bin": 0.0006674580519408299, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + { + "valid": 2796, + "positives": 11, + "negatives": 2785, + "auroc": 0.6541863881181655, + "auprc": 0.006977006210988492, + "brier": 0.003942925039453989, + "calibration": { + "observed_rate": 0.003934191702432046, + "mean_prediction": 0.0033442028407535615, + "calibration_in_the_large": -0.0005899888616784843, + "expected_calibration_error_10bin": 0.0006883150478470026, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + { + "valid": 2796, + "positives": 12, + "negatives": 2784, + "auroc": 0.6753771551724138, + "auprc": 0.008254045286148105, + "brier": 0.004294988186166175, + "calibration": { + "observed_rate": 0.004291845493562232, + "mean_prediction": 0.0033805157741173156, + "calibration_in_the_large": -0.0009113297194449162, + "expected_calibration_error_10bin": 0.00101034287259408, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + } + ], + "reason": null + }, + "D50": { + "time_averaged_auroc": 0.8099377665542639, + "time_averaged_auprc": 0.11210366653984125, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2663, + "positives": 15, + "negatives": 2648, + "auroc": 0.8118831822759315, + "auprc": 0.0676046598218137, + "brier": 0.005535134578906612, + "calibration": { + "observed_rate": 0.005632745024408562, + "mean_prediction": 0.0029825100788389214, + "calibration_in_the_large": -0.0026502349455696404, + "expected_calibration_error_10bin": 0.0026502349455696404, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9366865986633838 + }, + { + "valid": 2663, + "positives": 19, + "negatives": 2644, + "auroc": 0.8356955171590095, + "auprc": 0.1104289787328578, + "brier": 0.006900732877582104, + "calibration": { + "observed_rate": 0.007134810364250845, + "mean_prediction": 0.005016713610616198, + "calibration_in_the_large": -0.0021180967536346467, + "expected_calibration_error_10bin": 0.0021180967536346467, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9366865986633838 + }, + { + "valid": 2663, + "positives": 28, + "negatives": 2635, + "auroc": 0.8555841691515316, + "auprc": 0.10765187548863726, + "brier": 0.010088524446018664, + "calibration": { + "observed_rate": 0.010514457378895982, + "mean_prediction": 0.006766912377677428, + "calibration_in_the_large": -0.0037475450012185536, + "expected_calibration_error_10bin": 0.0037475450012185527, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9366865986633838 + }, + { + "valid": 2663, + "positives": 36, + "negatives": 2627, + "auroc": 0.8117730406462801, + "auprc": 0.09738226649282589, + "brier": 0.012970487850296062, + "calibration": { + "observed_rate": 0.013518588058580548, + "mean_prediction": 0.008059001325628253, + "calibration_in_the_large": -0.005459586732952295, + "expected_calibration_error_10bin": 0.005459586732952295, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9366865986633838 + }, + { + "valid": 2663, + "positives": 39, + "negatives": 2624, + "auroc": 0.8221153846153846, + "auprc": 0.12113708560340535, + "brier": 0.013946592344568177, + "calibration": { + "observed_rate": 0.01464513706346226, + "mean_prediction": 0.008917223128804554, + "calibration_in_the_large": -0.0057279139346577065, + "expected_calibration_error_10bin": 0.0057279139346577065, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9366865986633838 + }, + { + "valid": 2663, + "positives": 42, + "negatives": 2621, + "auroc": 0.8114950673134572, + "auprc": 0.11692635760950984, + "brier": 0.01501063496593701, + "calibration": { + "observed_rate": 0.015771686068343973, + "mean_prediction": 0.00977447290497257, + "calibration_in_the_large": -0.005997213163371403, + "expected_calibration_error_10bin": 0.005997213163371404, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9366865986633838 + }, + { + "valid": 2663, + "positives": 44, + "negatives": 2619, + "auroc": 0.8166111284667986, + "auprc": 0.12076709482137486, + "brier": 0.015665630623091762, + "calibration": { + "observed_rate": 0.016522718738265114, + "mean_prediction": 0.010909621568704972, + "calibration_in_the_large": -0.005613097169560143, + "expected_calibration_error_10bin": 0.005613097169560142, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9366865986633838 + }, + { + "valid": 2663, + "positives": 46, + "negatives": 2617, + "auroc": 0.8001943812197837, + "auprc": 0.11460323888385526, + "brier": 0.01638735170691456, + "calibration": { + "observed_rate": 0.017273751408186256, + "mean_prediction": 0.011665042813198828, + "calibration_in_the_large": -0.005608708594987428, + "expected_calibration_error_10bin": 0.005759514176915042, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9366865986633838 + }, + { + "valid": 2663, + "positives": 50, + "negatives": 2613, + "auroc": 0.787753539992346, + "auprc": 0.11467516281844822, + "brier": 0.017785370388408907, + "calibration": { + "observed_rate": 0.01877581674802854, + "mean_prediction": 0.01234586638593616, + "calibration_in_the_large": -0.006429950362092379, + "expected_calibration_error_10bin": 0.006589128471714407, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9366865986633838 + }, + { + "valid": 2663, + "positives": 52, + "negatives": 2611, + "auroc": 0.7943611348437085, + "auprc": 0.12088420878110338, + "brier": 0.018422659804540886, + "calibration": { + "observed_rate": 0.01952684941794968, + "mean_prediction": 0.01299277556196035, + "calibration_in_the_large": -0.006534073855989331, + "expected_calibration_error_10bin": 0.006699521857205571, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9366865986633838 + }, + { + "valid": 2663, + "positives": 57, + "negatives": 2606, + "auroc": 0.7992958220570613, + "auprc": 0.1220077555228941, + "brier": 0.020152075004151667, + "calibration": { + "observed_rate": 0.021404431092752536, + "mean_prediction": 0.013510668376171098, + "calibration_in_the_large": -0.007893762716581439, + "expected_calibration_error_10bin": 0.008064254192905407, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9366865986633838 + }, + { + "valid": 2663, + "positives": 59, + "negatives": 2604, + "auroc": 0.7911427009294697, + "auprc": 0.12170264013906441, + "brier": 0.020860139313055033, + "calibration": { + "observed_rate": 0.022155463762673678, + "mean_prediction": 0.013985683276882648, + "calibration_in_the_large": -0.00816978048579103, + "expected_calibration_error_10bin": 0.008350846011873046, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9366865986633838 + }, + { + "valid": 2663, + "positives": 59, + "negatives": 2604, + "auroc": 0.7912858965346663, + "auprc": 0.12157634030214617, + "brier": 0.02085609704924915, + "calibration": { + "observed_rate": 0.022155463762673678, + "mean_prediction": 0.014113503374280691, + "calibration_in_the_large": -0.008041960388392987, + "expected_calibration_error_10bin": 0.008223886421561266, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9366865986633838 + } + ], + "reason": null + }, + "D53": { + "time_averaged_auroc": 0.8401468815544093, + "time_averaged_auprc": 0.04543961902241812, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2805, + "positives": 5, + "negatives": 2800, + "auroc": 0.7947857142857143, + "auprc": 0.029829021769273534, + "brier": 0.0017735191874583515, + "calibration": { + "observed_rate": 0.0017825311942959, + "mean_prediction": 0.0007626479584463671, + "calibration_in_the_large": -0.0010198832358495331, + "expected_calibration_error_10bin": 0.0010198832358495331, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 7, + "negatives": 2798, + "auroc": 0.8448892065761258, + "auprc": 0.03797361248239949, + "brier": 0.002463365036783994, + "calibration": { + "observed_rate": 0.0024955436720142605, + "mean_prediction": 0.001824775406744679, + "calibration_in_the_large": -0.0006707682652695814, + "expected_calibration_error_10bin": 0.0006707682652695814, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 9, + "negatives": 2796, + "auroc": 0.8447782546494993, + "auprc": 0.06739798692172377, + "brier": 0.0031349677893748144, + "calibration": { + "observed_rate": 0.0032085561497326204, + "mean_prediction": 0.002550731540144521, + "calibration_in_the_large": -0.0006578246095880992, + "expected_calibration_error_10bin": 0.0006578246095880992, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 11, + "negatives": 2794, + "auroc": 0.8552092145506605, + "auprc": 0.052592579081467056, + "brier": 0.0038364746359461515, + "calibration": { + "observed_rate": 0.00392156862745098, + "mean_prediction": 0.0028285063568609546, + "calibration_in_the_large": -0.0010930622705900258, + "expected_calibration_error_10bin": 0.0011646680874719498, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 12, + "negatives": 2793, + "auroc": 0.8540100250626567, + "auprc": 0.052019239891749135, + "brier": 0.004185449615436182, + "calibration": { + "observed_rate": 0.0042780748663101605, + "mean_prediction": 0.003329801603965333, + "calibration_in_the_large": -0.0009482732623448276, + "expected_calibration_error_10bin": 0.0010283225552713102, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 12, + "negatives": 2793, + "auroc": 0.854547081990691, + "auprc": 0.04872265110592089, + "brier": 0.004184287581146044, + "calibration": { + "observed_rate": 0.0042780748663101605, + "mean_prediction": 0.003781175006933447, + "calibration_in_the_large": -0.0004968998593767133, + "expected_calibration_error_10bin": 0.0006702926025145693, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 14, + "negatives": 2791, + "auroc": 0.8461892818754159, + "auprc": 0.04651266397719772, + "brier": 0.004888707469565922, + "calibration": { + "observed_rate": 0.004991087344028521, + "mean_prediction": 0.00401075930563308, + "calibration_in_the_large": -0.0009803280383954413, + "expected_calibration_error_10bin": 0.0011608264148575648, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 14, + "negatives": 2791, + "auroc": 0.8455494702359625, + "auprc": 0.04658420213800186, + "brier": 0.004886137965100967, + "calibration": { + "observed_rate": 0.004991087344028521, + "mean_prediction": 0.004428552168755233, + "calibration_in_the_large": -0.0005625351752732875, + "expected_calibration_error_10bin": 0.0009104212172222142, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 16, + "negatives": 2789, + "auroc": 0.8370607744711366, + "auprc": 0.04364794189208651, + "brier": 0.00559374150991233, + "calibration": { + "observed_rate": 0.00570409982174688, + "mean_prediction": 0.004820551320617743, + "calibration_in_the_large": -0.0008835485011291378, + "expected_calibration_error_10bin": 0.000883548501129138, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 16, + "negatives": 2789, + "auroc": 0.8379795625672284, + "auprc": 0.043686835934387, + "brier": 0.005593936315579451, + "calibration": { + "observed_rate": 0.00570409982174688, + "mean_prediction": 0.005119260347527482, + "calibration_in_the_large": -0.0005848394742193983, + "expected_calibration_error_10bin": 0.0006488561748603304, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 17, + "negatives": 2788, + "auroc": 0.8374335386952485, + "auprc": 0.041166385902560845, + "brier": 0.005954382946802684, + "calibration": { + "observed_rate": 0.006060606060606061, + "mean_prediction": 0.005502730473132217, + "calibration_in_the_large": -0.0005578755874738432, + "expected_calibration_error_10bin": 0.0007715660428459506, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 18, + "negatives": 2787, + "auroc": 0.8348084359925049, + "auprc": 0.04029992128814606, + "brier": 0.006310283586534205, + "calibration": { + "observed_rate": 0.006417112299465241, + "mean_prediction": 0.00578287302842081, + "calibration_in_the_large": -0.0006342392710444308, + "expected_calibration_error_10bin": 0.0008679657640095033, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 18, + "negatives": 2787, + "auroc": 0.8346688992544752, + "auprc": 0.04028200490652172, + "brier": 0.006310400804670982, + "calibration": { + "observed_rate": 0.006417112299465241, + "mean_prediction": 0.005794012284295507, + "calibration_in_the_large": -0.0006231000151697341, + "expected_calibration_error_10bin": 0.0008579674377207033, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + } + ], + "reason": null + }, + "D59": { + "time_averaged_auroc": 0.9918637024715007, + "time_averaged_auprc": 0.07594020562770562, + "valid_timepoint_cells": 8, + "timepoints": [ + { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 3.6513026218703577e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0002438829189511984, + "calibration_in_the_large": 0.0002438829189511984, + "expected_calibration_error_10bin": 0.0002438829189511984, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 1.0766362511295483e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0003815471720492664, + "calibration_in_the_large": 0.0003815471720492664, + "expected_calibration_error_10bin": 0.0003815471720492664, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 3.0170959112156783e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0005437646166898114, + "calibration_in_the_large": 0.0005437646166898114, + "expected_calibration_error_10bin": 0.0005437646166898114, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 3.857057239753429e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0005964677163553989, + "calibration_in_the_large": 0.0005964677163553989, + "expected_calibration_error_10bin": 0.0005964677163553989, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 4.893493523880063e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0006515697495180529, + "calibration_in_the_large": 0.0006515697495180529, + "expected_calibration_error_10bin": 0.0006515697495180529, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 1, + "negatives": 2835, + "auroc": 0.9887125220458554, + "auprc": 0.030303030303030304, + "brier": 0.0003509740621708453, + "calibration": { + "observed_rate": 0.0003526093088857546, + "mean_prediction": 0.0006939294141522966, + "calibration_in_the_large": 0.000341320105266542, + "expected_calibration_error_10bin": 0.000341320105266542, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 1, + "negatives": 2835, + "auroc": 0.9887125220458554, + "auprc": 0.030303030303030304, + "brier": 0.00035158645916072716, + "calibration": { + "observed_rate": 0.0003526093088857546, + "mean_prediction": 0.0007848670302581799, + "calibration_in_the_large": 0.00043225772137242535, + "expected_calibration_error_10bin": 0.00043225772137242535, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 1, + "negatives": 2835, + "auroc": 0.9887125220458554, + "auprc": 0.030303030303030304, + "brier": 0.00035165524856010087, + "calibration": { + "observed_rate": 0.0003526093088857546, + "mean_prediction": 0.0007994693451374499, + "calibration_in_the_large": 0.0004468600362516953, + "expected_calibration_error_10bin": 0.0004468600362516953, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.9940014114326041, + "auprc": 0.10476190476190475, + "brier": 0.0006855802754730768, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.0008523686974168364, + "calibration_in_the_large": 0.0001471500796453272, + "expected_calibration_error_10bin": 0.0001471500796453272, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.9940014114326041, + "auprc": 0.10476190476190475, + "brier": 0.0006854610512997807, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.000867201308426646, + "calibration_in_the_large": 0.0001619826906551369, + "expected_calibration_error_10bin": 0.0001619826906551369, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.9934721242060691, + "auprc": 0.10173160173160173, + "brier": 0.0006848409159905427, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.0009342214739291862, + "calibration_in_the_large": 0.00022900285615767705, + "expected_calibration_error_10bin": 0.00022900285615767705, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.9936485532815809, + "auprc": 0.10267857142857142, + "brier": 0.0006837942585891623, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.0009771346020183078, + "calibration_in_the_large": 0.0002719159842467986, + "expected_calibration_error_10bin": 0.0002719159842467986, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.9936485532815809, + "auprc": 0.10267857142857142, + "brier": 0.0006837738014208862, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.0009802755682745512, + "calibration_in_the_large": 0.00027505695050304203, + "expected_calibration_error_10bin": 0.00027505695050304203, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + } + ], + "reason": null + }, + "D61": { + "time_averaged_auroc": 0.9157485504272658, + "time_averaged_auprc": 0.18471261818826518, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2773, + "positives": 4, + "negatives": 2769, + "auroc": 0.970837847598411, + "auprc": 0.02974469795581802, + "brier": 0.0014449477543566013, + "calibration": { + "observed_rate": 0.00144248106743599, + "mean_prediction": 0.0017028754875011865, + "calibration_in_the_large": 0.00026039442006519655, + "expected_calibration_error_10bin": 0.00026039442006519655, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + { + "valid": 2773, + "positives": 9, + "negatives": 2764, + "auroc": 0.9624939700916546, + "auprc": 0.09234117916545095, + "brier": 0.00317142434216593, + "calibration": { + "observed_rate": 0.0032455824017309774, + "mean_prediction": 0.003997255322930116, + "calibration_in_the_large": 0.0007516729211991383, + "expected_calibration_error_10bin": 0.001027468528101502, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + { + "valid": 2773, + "positives": 15, + "negatives": 2758, + "auroc": 0.9437031665458061, + "auprc": 0.12331085175173635, + "brier": 0.005135103715717277, + "calibration": { + "observed_rate": 0.005409304002884962, + "mean_prediction": 0.005883591280465662, + "calibration_in_the_large": 0.0004742872775806992, + "expected_calibration_error_10bin": 0.0014465077160045563, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + { + "valid": 2773, + "positives": 17, + "negatives": 2756, + "auroc": 0.8998975497310681, + "auprc": 0.11022421171334787, + "brier": 0.005928143163639687, + "calibration": { + "observed_rate": 0.006130544536602957, + "mean_prediction": 0.006943979697826378, + "calibration_in_the_large": 0.0008134351612234204, + "expected_calibration_error_10bin": 0.0017091127209034305, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + { + "valid": 2773, + "positives": 21, + "negatives": 2752, + "auroc": 0.8955737818383167, + "auprc": 0.14844622335530328, + "brier": 0.007063705370142981, + "calibration": { + "observed_rate": 0.007573025604038947, + "mean_prediction": 0.007811709263199621, + "calibration_in_the_large": 0.0002386836591606739, + "expected_calibration_error_10bin": 0.0016435291167441496, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + { + "valid": 2773, + "positives": 24, + "negatives": 2749, + "auroc": 0.9008730447435431, + "auprc": 0.1428849770787792, + "brier": 0.008136121155924292, + "calibration": { + "observed_rate": 0.00865488640461594, + "mean_prediction": 0.008575241918410182, + "calibration_in_the_large": -7.964448620575819e-05, + "expected_calibration_error_10bin": 0.002140760463688737, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + { + "valid": 2773, + "positives": 30, + "negatives": 2743, + "auroc": 0.9050674444039373, + "auprc": 0.20241000442756724, + "brier": 0.009701103251667903, + "calibration": { + "observed_rate": 0.010818608005769925, + "mean_prediction": 0.009230608943134811, + "calibration_in_the_large": -0.0015879990626351138, + "expected_calibration_error_10bin": 0.003103119233777262, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + { + "valid": 2773, + "positives": 32, + "negatives": 2741, + "auroc": 0.9099097044874134, + "auprc": 0.23426645489898182, + "brier": 0.010022555678450076, + "calibration": { + "observed_rate": 0.01153984853948792, + "mean_prediction": 0.00988132303728344, + "calibration_in_the_large": -0.0016585255022044804, + "expected_calibration_error_10bin": 0.0026880848820785706, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + { + "valid": 2773, + "positives": 33, + "negatives": 2740, + "auroc": 0.9130391506303915, + "auprc": 0.25436283352928146, + "brier": 0.010120670161339402, + "calibration": { + "observed_rate": 0.011900468806346917, + "mean_prediction": 0.010440055241973986, + "calibration_in_the_large": -0.001460413564372931, + "expected_calibration_error_10bin": 0.0027396419806548496, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + { + "valid": 2773, + "positives": 35, + "negatives": 2738, + "auroc": 0.9174893039757904, + "auprc": 0.27532042179224653, + "brier": 0.010678619800674829, + "calibration": { + "observed_rate": 0.012621709340064912, + "mean_prediction": 0.011081371692773253, + "calibration_in_the_large": -0.0015403376472916588, + "expected_calibration_error_10bin": 0.003485941102131184, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + { + "valid": 2773, + "positives": 36, + "negatives": 2737, + "auroc": 0.9016969106483173, + "auprc": 0.26770634402524857, + "brier": 0.011040839457745, + "calibration": { + "observed_rate": 0.01298232960692391, + "mean_prediction": 0.011628812569478135, + "calibration_in_the_large": -0.0013535170374457742, + "expected_calibration_error_10bin": 0.003039415187959618, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + { + "valid": 2773, + "positives": 37, + "negatives": 2736, + "auroc": 0.8921388493756914, + "auprc": 0.26022837608010274, + "brier": 0.011407298523514773, + "calibration": { + "observed_rate": 0.013342949873782907, + "mean_prediction": 0.01206685533233735, + "calibration_in_the_large": -0.001276094541445557, + "expected_calibration_error_10bin": 0.0030086276519104187, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + { + "valid": 2773, + "positives": 37, + "negatives": 2736, + "auroc": 0.8920104314841157, + "auprc": 0.2600174606735832, + "brier": 0.011410689864091668, + "calibration": { + "observed_rate": 0.013342949873782907, + "mean_prediction": 0.01219929729383375, + "calibration_in_the_large": -0.0011436525799491566, + "expected_calibration_error_10bin": 0.0027966401215014317, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + } + ], + "reason": null + }, + "D62": { + "time_averaged_auroc": 0.7994979776692952, + "time_averaged_auprc": 0.08280316290596461, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2499, + "positives": 10, + "negatives": 2489, + "auroc": 0.812093210124548, + "auprc": 0.020946045823450384, + "brier": 0.003966877324822718, + "calibration": { + "observed_rate": 0.004001600640256103, + "mean_prediction": 0.004495977929984016, + "calibration_in_the_large": 0.0004943772897279134, + "expected_calibration_error_10bin": 0.0004943772897279134, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8790010552233556 + }, + { + "valid": 2499, + "positives": 21, + "negatives": 2478, + "auroc": 0.8086974902955533, + "auprc": 0.027652406571276402, + "brier": 0.008265607767835213, + "calibration": { + "observed_rate": 0.008403361344537815, + "mean_prediction": 0.007113536023786858, + "calibration_in_the_large": -0.0012898253207509567, + "expected_calibration_error_10bin": 0.0012898253207509567, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8790010552233556 + }, + { + "valid": 2499, + "positives": 30, + "negatives": 2469, + "auroc": 0.8070743890914001, + "auprc": 0.039225734648974865, + "brier": 0.011722256244716364, + "calibration": { + "observed_rate": 0.012004801920768308, + "mean_prediction": 0.009187855178363291, + "calibration_in_the_large": -0.0028169467424050167, + "expected_calibration_error_10bin": 0.002905168360655511, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8790010552233556 + }, + { + "valid": 2499, + "positives": 36, + "negatives": 2463, + "auroc": 0.7911196824107908, + "auprc": 0.04339504733056852, + "brier": 0.01403870974349457, + "calibration": { + "observed_rate": 0.014405762304921969, + "mean_prediction": 0.010742738907251144, + "calibration_in_the_large": -0.0036630233976708247, + "expected_calibration_error_10bin": 0.004296820962383431, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8790010552233556 + }, + { + "valid": 2499, + "positives": 45, + "negatives": 2454, + "auroc": 0.810902834374717, + "auprc": 0.09328933189084601, + "brier": 0.017242695390766633, + "calibration": { + "observed_rate": 0.01800720288115246, + "mean_prediction": 0.011987635794334862, + "calibration_in_the_large": -0.006019567086817598, + "expected_calibration_error_10bin": 0.006019567086817599, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8790010552233556 + }, + { + "valid": 2499, + "positives": 49, + "negatives": 2450, + "auroc": 0.8113286130778842, + "auprc": 0.09613342415872879, + "brier": 0.018720269119083588, + "calibration": { + "observed_rate": 0.0196078431372549, + "mean_prediction": 0.013007787148004305, + "calibration_in_the_large": -0.006600055989250597, + "expected_calibration_error_10bin": 0.006600055989250599, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8790010552233556 + }, + { + "valid": 2499, + "positives": 55, + "negatives": 2444, + "auroc": 0.7994643654218122, + "auprc": 0.0966382946524174, + "brier": 0.020998561261215777, + "calibration": { + "observed_rate": 0.022008803521408563, + "mean_prediction": 0.013697256492595712, + "calibration_in_the_large": -0.00831154702881285, + "expected_calibration_error_10bin": 0.00831154702881285, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8790010552233556 + }, + { + "valid": 2499, + "positives": 60, + "negatives": 2439, + "auroc": 0.8045578789121225, + "auprc": 0.10946207373936562, + "brier": 0.02276296834191756, + "calibration": { + "observed_rate": 0.024009603841536616, + "mean_prediction": 0.014493751832993612, + "calibration_in_the_large": -0.009515852008543003, + "expected_calibration_error_10bin": 0.009515852008543003, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8790010552233556 + }, + { + "valid": 2499, + "positives": 64, + "negatives": 2435, + "auroc": 0.8020533880903491, + "auprc": 0.108599318258631, + "brier": 0.024193950124759993, + "calibration": { + "observed_rate": 0.025610244097639057, + "mean_prediction": 0.01539227623492852, + "calibration_in_the_large": -0.010217967862710538, + "expected_calibration_error_10bin": 0.010217967862710535, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8790010552233556 + }, + { + "valid": 2499, + "positives": 69, + "negatives": 2430, + "auroc": 0.784326355340848, + "auprc": 0.10432392932493798, + "brier": 0.026114900045869895, + "calibration": { + "observed_rate": 0.027611044417767107, + "mean_prediction": 0.016092802452597293, + "calibration_in_the_large": -0.011518241965169814, + "expected_calibration_error_10bin": 0.011518241965169814, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8790010552233556 + }, + { + "valid": 2499, + "positives": 71, + "negatives": 2428, + "auroc": 0.7899969835487389, + "auprc": 0.11372164903290426, + "brier": 0.02671888217744498, + "calibration": { + "observed_rate": 0.028411364545818326, + "mean_prediction": 0.016772027018482984, + "calibration_in_the_large": -0.011639337527335342, + "expected_calibration_error_10bin": 0.011717451823304739, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8790010552233556 + }, + { + "valid": 2499, + "positives": 73, + "negatives": 2426, + "auroc": 0.7859320828016126, + "auprc": 0.11154674916048214, + "brier": 0.027464166755439647, + "calibration": { + "observed_rate": 0.02921168467386955, + "mean_prediction": 0.01756636484055778, + "calibration_in_the_large": -0.011645319833311768, + "expected_calibration_error_10bin": 0.011751382267803236, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8790010552233556 + }, + { + "valid": 2499, + "positives": 73, + "negatives": 2426, + "auroc": 0.7859264362104598, + "auprc": 0.11150711318495651, + "brier": 0.027460491088346792, + "calibration": { + "observed_rate": 0.02921168467386955, + "mean_prediction": 0.017674396308709164, + "calibration_in_the_large": -0.011537288365160384, + "expected_calibration_error_10bin": 0.011649343594700014, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8790010552233556 + } + ], + "reason": null + }, + "D63": { + "time_averaged_auroc": 0.864109416288099, + "time_averaged_auprc": 0.11051208833174843, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2686, + "positives": 20, + "negatives": 2666, + "auroc": 0.8879407351837959, + "auprc": 0.054961389012931815, + "brier": 0.007242989538948074, + "calibration": { + "observed_rate": 0.007446016381236039, + "mean_prediction": 0.004696950213424207, + "calibration_in_the_large": -0.002749066167811832, + "expected_calibration_error_10bin": 0.0038203283654377074, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9447766443897292 + }, + { + "valid": 2686, + "positives": 31, + "negatives": 2655, + "auroc": 0.8952676022112873, + "auprc": 0.07873668735304902, + "brier": 0.011069176729889368, + "calibration": { + "observed_rate": 0.01154132539091586, + "mean_prediction": 0.008905190852798901, + "calibration_in_the_large": -0.002636134538116959, + "expected_calibration_error_10bin": 0.004535439900252064, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9447766443897292 + }, + { + "valid": 2686, + "positives": 43, + "negatives": 2643, + "auroc": 0.8855951218224534, + "auprc": 0.09556575649580404, + "brier": 0.015251436291877902, + "calibration": { + "observed_rate": 0.01600893521965748, + "mean_prediction": 0.011472751033315754, + "calibration_in_the_large": -0.004536184186341727, + "expected_calibration_error_10bin": 0.00676930437959594, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9447766443897292 + }, + { + "valid": 2686, + "positives": 52, + "negatives": 2634, + "auroc": 0.8770515740902984, + "auprc": 0.11415258836385032, + "brier": 0.018234424071730017, + "calibration": { + "observed_rate": 0.0193596425912137, + "mean_prediction": 0.013603865472567606, + "calibration_in_the_large": -0.005755777118646093, + "expected_calibration_error_10bin": 0.008625599253479242, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9447766443897292 + }, + { + "valid": 2686, + "positives": 55, + "negatives": 2631, + "auroc": 0.8735289036315262, + "auprc": 0.11470629757487305, + "brier": 0.01931762476363834, + "calibration": { + "observed_rate": 0.020476545048399106, + "mean_prediction": 0.015647425676629443, + "calibration_in_the_large": -0.0048291193717696634, + "expected_calibration_error_10bin": 0.008050661164700655, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9447766443897292 + }, + { + "valid": 2686, + "positives": 62, + "negatives": 2624, + "auroc": 0.8699043568056648, + "auprc": 0.1188185099828214, + "brier": 0.02176418049964021, + "calibration": { + "observed_rate": 0.02308265078183172, + "mean_prediction": 0.017139255690221282, + "calibration_in_the_large": -0.005943395091610439, + "expected_calibration_error_10bin": 0.010473782746877136, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9447766443897292 + }, + { + "valid": 2686, + "positives": 66, + "negatives": 2620, + "auroc": 0.8541001619245894, + "auprc": 0.1162135915193821, + "brier": 0.02326934256577795, + "calibration": { + "observed_rate": 0.024571854058078928, + "mean_prediction": 0.01861260776817823, + "calibration_in_the_large": -0.005959246289900699, + "expected_calibration_error_10bin": 0.01179602724613066, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9447766443897292 + }, + { + "valid": 2686, + "positives": 68, + "negatives": 2618, + "auroc": 0.8514919336718645, + "auprc": 0.11790864667922388, + "brier": 0.023971092709793643, + "calibration": { + "observed_rate": 0.02531645569620253, + "mean_prediction": 0.019508881651576843, + "calibration_in_the_large": -0.005807574044625688, + "expected_calibration_error_10bin": 0.012315083000626996, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9447766443897292 + }, + { + "valid": 2686, + "positives": 71, + "negatives": 2615, + "auroc": 0.8549430425766839, + "auprc": 0.12279192715345291, + "brier": 0.024965337719162154, + "calibration": { + "observed_rate": 0.02643335815338794, + "mean_prediction": 0.020388082602524386, + "calibration_in_the_large": -0.006045275550863552, + "expected_calibration_error_10bin": 0.013242980208010218, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9447766443897292 + }, + { + "valid": 2686, + "positives": 74, + "negatives": 2612, + "auroc": 0.8453654650055875, + "auprc": 0.12466710911084346, + "brier": 0.026021168788073524, + "calibration": { + "observed_rate": 0.027550260610573342, + "mean_prediction": 0.021264242027360783, + "calibration_in_the_large": -0.006286018583212559, + "expected_calibration_error_10bin": 0.013866023115826692, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9447766443897292 + }, + { + "valid": 2686, + "positives": 76, + "negatives": 2610, + "auroc": 0.846455938697318, + "auprc": 0.12622035108780974, + "brier": 0.02676189199536365, + "calibration": { + "observed_rate": 0.028294862248696945, + "mean_prediction": 0.022000983696706243, + "calibration_in_the_large": -0.006293878551990702, + "expected_calibration_error_10bin": 0.01491545153416384, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9447766443897292 + }, + { + "valid": 2686, + "positives": 76, + "negatives": 2610, + "auroc": 0.8459366807824158, + "auprc": 0.12595595228934667, + "brier": 0.02680401078194864, + "calibration": { + "observed_rate": 0.028294862248696945, + "mean_prediction": 0.02299469987342413, + "calibration_in_the_large": -0.005300162375272817, + "expected_calibration_error_10bin": 0.014896937036361111, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9447766443897292 + }, + { + "valid": 2686, + "positives": 76, + "negatives": 2610, + "auroc": 0.8458408953418027, + "auprc": 0.12595834168934117, + "brier": 0.02680538333008845, + "calibration": { + "observed_rate": 0.028294862248696945, + "mean_prediction": 0.02310174931745886, + "calibration_in_the_large": -0.005193112931238086, + "expected_calibration_error_10bin": 0.014922391885407064, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9447766443897292 + } + ], + "reason": null + }, + "D64": { + "time_averaged_auroc": 0.8063191948671992, + "time_averaged_auprc": 0.15542258431075215, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2434, + "positives": 37, + "negatives": 2397, + "auroc": 0.8288964809615623, + "auprc": 0.09219645193903357, + "brier": 0.014539952079792558, + "calibration": { + "observed_rate": 0.015201314708299097, + "mean_prediction": 0.010625918463841803, + "calibration_in_the_large": -0.004575396244457294, + "expected_calibration_error_10bin": 0.004575396244457292, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8561378825184665 + }, + { + "valid": 2434, + "positives": 51, + "negatives": 2383, + "auroc": 0.827034632568932, + "auprc": 0.11617503039715968, + "brier": 0.019615550953421056, + "calibration": { + "observed_rate": 0.0209531635168447, + "mean_prediction": 0.01832014982600642, + "calibration_in_the_large": -0.002633013690838279, + "expected_calibration_error_10bin": 0.0026330136908382816, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8561378825184665 + }, + { + "valid": 2434, + "positives": 66, + "negatives": 2368, + "auroc": 0.8148418304668305, + "auprc": 0.1315935339380499, + "brier": 0.025003190285005323, + "calibration": { + "observed_rate": 0.027115858668857847, + "mean_prediction": 0.02260235723829503, + "calibration_in_the_large": -0.004513501430562818, + "expected_calibration_error_10bin": 0.004513501430562818, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8561378825184665 + }, + { + "valid": 2434, + "positives": 77, + "negatives": 2357, + "auroc": 0.8135424185487826, + "auprc": 0.1593443525392678, + "brier": 0.02867227690276501, + "calibration": { + "observed_rate": 0.031635168447000823, + "mean_prediction": 0.025515762213410943, + "calibration_in_the_large": -0.006119406233589881, + "expected_calibration_error_10bin": 0.006372364060555325, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8561378825184665 + }, + { + "valid": 2434, + "positives": 85, + "negatives": 2349, + "auroc": 0.7964390353842686, + "auprc": 0.15427007943317622, + "brier": 0.0316607769661918, + "calibration": { + "observed_rate": 0.03492193919474117, + "mean_prediction": 0.02833965491232192, + "calibration_in_the_large": -0.006582284282419245, + "expected_calibration_error_10bin": 0.00917623322367157, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8561378825184665 + }, + { + "valid": 2434, + "positives": 89, + "negatives": 2345, + "auroc": 0.7999808341918018, + "auprc": 0.15433398302192802, + "brier": 0.03307377180785094, + "calibration": { + "observed_rate": 0.03656532456861134, + "mean_prediction": 0.030369248559439038, + "calibration_in_the_large": -0.0061960760091723036, + "expected_calibration_error_10bin": 0.008071954895576938, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8561378825184665 + }, + { + "valid": 2434, + "positives": 97, + "negatives": 2337, + "auroc": 0.7922572334784661, + "auprc": 0.15608296939353428, + "brier": 0.03595373754415756, + "calibration": { + "observed_rate": 0.039852095316351685, + "mean_prediction": 0.0326249123291815, + "calibration_in_the_large": -0.0072271829871701845, + "expected_calibration_error_10bin": 0.008290836052296052, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8561378825184665 + }, + { + "valid": 2434, + "positives": 103, + "negatives": 2331, + "auroc": 0.7979033124664192, + "auprc": 0.16392178041998168, + "brier": 0.03795462818336722, + "calibration": { + "observed_rate": 0.042317173377156944, + "mean_prediction": 0.034425470454439645, + "calibration_in_the_large": -0.007891702922717299, + "expected_calibration_error_10bin": 0.009192385391805525, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8561378825184665 + }, + { + "valid": 2434, + "positives": 107, + "negatives": 2327, + "auroc": 0.7977741988601906, + "auprc": 0.16887042428777946, + "brier": 0.03926868871708402, + "calibration": { + "observed_rate": 0.04396055875102712, + "mean_prediction": 0.03622943095469904, + "calibration_in_the_large": -0.007731127796328077, + "expected_calibration_error_10bin": 0.008563328458890839, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8561378825184665 + }, + { + "valid": 2434, + "positives": 116, + "negatives": 2318, + "auroc": 0.8030890184760942, + "auprc": 0.18059950122979357, + "brier": 0.04224408983880852, + "calibration": { + "observed_rate": 0.047658175842235, + "mean_prediction": 0.03776922599785948, + "calibration_in_the_large": -0.009888949844375522, + "expected_calibration_error_10bin": 0.010266092969196478, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8561378825184665 + }, + { + "valid": 2434, + "positives": 119, + "negatives": 2315, + "auroc": 0.8019783291286277, + "auprc": 0.1794909624208503, + "brier": 0.043319654748387226, + "calibration": { + "observed_rate": 0.04889071487263763, + "mean_prediction": 0.03914875207606997, + "calibration_in_the_large": -0.009741962796567659, + "expected_calibration_error_10bin": 0.010444949503016911, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8561378825184665 + }, + { + "valid": 2434, + "positives": 121, + "negatives": 2313, + "auroc": 0.8038253064782955, + "auprc": 0.18140149842719902, + "brier": 0.043947907122969795, + "calibration": { + "observed_rate": 0.04971240755957272, + "mean_prediction": 0.04068818599048423, + "calibration_in_the_large": -0.00902422156908849, + "expected_calibration_error_10bin": 0.009978906287074749, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8561378825184665 + }, + { + "valid": 2434, + "positives": 122, + "negatives": 2312, + "auroc": 0.8045869022633161, + "auprc": 0.18221302859202482, + "brier": 0.044287908914426154, + "calibration": { + "observed_rate": 0.05012325390304026, + "mean_prediction": 0.041010872785946326, + "calibration_in_the_large": -0.009112381117093935, + "expected_calibration_error_10bin": 0.010116619628264082, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8561378825184665 + } + ], + "reason": null + }, + "D65": { + "time_averaged_auroc": 0.9205631935365399, + "time_averaged_auprc": 0.012785966148742564, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2833, + "positives": 1, + "negatives": 2832, + "auroc": 0.9057203389830508, + "auprc": 0.0037313432835820895, + "brier": 0.00035310480620355853, + "calibration": { + "observed_rate": 0.00035298270384751147, + "mean_prediction": 0.00017188224032640414, + "calibration_in_the_large": -0.00018110046352110733, + "expected_calibration_error_10bin": 0.00018110046352110733, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9964825888146325 + }, + { + "valid": 2833, + "positives": 1, + "negatives": 2832, + "auroc": 0.8919491525423728, + "auprc": 0.003257328990228013, + "brier": 0.00035358823490654485, + "calibration": { + "observed_rate": 0.00035298270384751147, + "mean_prediction": 0.00026782528603659715, + "calibration_in_the_large": -8.515741781091432e-05, + "expected_calibration_error_10bin": 8.515741781091432e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9964825888146325 + }, + { + "valid": 2833, + "positives": 2, + "negatives": 2831, + "auroc": 0.9337689862239491, + "auprc": 0.011477987421383649, + "brier": 0.0007048430574131787, + "calibration": { + "observed_rate": 0.0007059654076950229, + "mean_prediction": 0.0003319768030031172, + "calibration_in_the_large": -0.00037398860469190577, + "expected_calibration_error_10bin": 0.00037398860469190577, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9964825888146325 + }, + { + "valid": 2833, + "positives": 3, + "negatives": 2830, + "auroc": 0.9221436984687869, + "auprc": 0.01062196054724695, + "brier": 0.001057586222608779, + "calibration": { + "observed_rate": 0.0010589481115425344, + "mean_prediction": 0.0003885950445396935, + "calibration_in_the_large": -0.0006703530670028409, + "expected_calibration_error_10bin": 0.0006703530670028409, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9964825888146325 + }, + { + "valid": 2833, + "positives": 3, + "negatives": 2830, + "auroc": 0.9307420494699646, + "auprc": 0.012100328941941912, + "brier": 0.0010576415316287306, + "calibration": { + "observed_rate": 0.0010589481115425344, + "mean_prediction": 0.0005242180545564572, + "calibration_in_the_large": -0.0005347300569860772, + "expected_calibration_error_10bin": 0.0005347300569860772, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9964825888146325 + }, + { + "valid": 2833, + "positives": 3, + "negatives": 2830, + "auroc": 0.9303886925795053, + "auprc": 0.01206531954887218, + "brier": 0.0010578563747374416, + "calibration": { + "observed_rate": 0.0010589481115425344, + "mean_prediction": 0.0005495280427745691, + "calibration_in_the_large": -0.0005094200687679653, + "expected_calibration_error_10bin": 0.0005094200687679653, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9964825888146325 + }, + { + "valid": 2833, + "positives": 3, + "negatives": 2830, + "auroc": 0.9296819787985866, + "auprc": 0.011815426322438274, + "brier": 0.001058023959435823, + "calibration": { + "observed_rate": 0.0010589481115425344, + "mean_prediction": 0.0005837380282357032, + "calibration_in_the_large": -0.00047521008330683127, + "expected_calibration_error_10bin": 0.00047521008330683127, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9964825888146325 + }, + { + "valid": 2833, + "positives": 3, + "negatives": 2830, + "auroc": 0.9292108362779741, + "auprc": 0.011765817693466575, + "brier": 0.0010581657956292095, + "calibration": { + "observed_rate": 0.0010589481115425344, + "mean_prediction": 0.0006155768020249541, + "calibration_in_the_large": -0.0004433713095175803, + "expected_calibration_error_10bin": 0.0004433713095175803, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9964825888146325 + }, + { + "valid": 2833, + "positives": 4, + "negatives": 2829, + "auroc": 0.9416755037115588, + "auprc": 0.018528510126682836, + "brier": 0.0014078530430109886, + "calibration": { + "observed_rate": 0.0014119308153900459, + "mean_prediction": 0.0006391157548509057, + "calibration_in_the_large": -0.0007728150605391402, + "expected_calibration_error_10bin": 0.0007728150605391402, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9964825888146325 + }, + { + "valid": 2833, + "positives": 4, + "negatives": 2829, + "auroc": 0.9416755037115588, + "auprc": 0.018528510126682836, + "brier": 0.0014078596595644111, + "calibration": { + "observed_rate": 0.0014119308153900459, + "mean_prediction": 0.0006487372218507299, + "calibration_in_the_large": -0.000763193593539316, + "expected_calibration_error_10bin": 0.000763193593539316, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9964825888146325 + }, + { + "valid": 2833, + "positives": 4, + "negatives": 2829, + "auroc": 0.9410569105691057, + "auprc": 0.01806194225089882, + "brier": 0.0014081079699134072, + "calibration": { + "observed_rate": 0.0014119308153900459, + "mean_prediction": 0.0006791953225189569, + "calibration_in_the_large": -0.000732735492871089, + "expected_calibration_error_10bin": 0.000732735492871089, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9964825888146325 + }, + { + "valid": 2833, + "positives": 6, + "negatives": 2827, + "auroc": 0.8846244546633651, + "auprc": 0.01712511513332462, + "brier": 0.0021126015286398376, + "calibration": { + "observed_rate": 0.002117896223085069, + "mean_prediction": 0.0007346890462046386, + "calibration_in_the_large": -0.0013832071768804302, + "expected_calibration_error_10bin": 0.0013832071768804302, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9964825888146325 + }, + { + "valid": 2833, + "positives": 6, + "negatives": 2827, + "auroc": 0.8846834099752388, + "auprc": 0.017137969546904587, + "brier": 0.0021126988109056253, + "calibration": { + "observed_rate": 0.002117896223085069, + "mean_prediction": 0.0007442890732444335, + "calibration_in_the_large": -0.0013736071498406353, + "expected_calibration_error_10bin": 0.0013736071498406353, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9964825888146325 + } + ], + "reason": null + }, + "D68": { + "time_averaged_auroc": 0.8095729193011938, + "time_averaged_auprc": 0.08636285516687196, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2682, + "positives": 10, + "negatives": 2672, + "auroc": 0.8185254491017964, + "auprc": 0.020046619960113123, + "brier": 0.003699952072234663, + "calibration": { + "observed_rate": 0.0037285607755406414, + "mean_prediction": 0.0019418965873759491, + "calibration_in_the_large": -0.0017866641881646923, + "expected_calibration_error_10bin": 0.0017866641881646923, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9433696799155822 + }, + { + "valid": 2682, + "positives": 21, + "negatives": 2661, + "auroc": 0.8283853188024553, + "auprc": 0.03847935678002195, + "brier": 0.007712201319026056, + "calibration": { + "observed_rate": 0.007829977628635347, + "mean_prediction": 0.0033094512130119095, + "calibration_in_the_large": -0.004520526415623437, + "expected_calibration_error_10bin": 0.004520526415623437, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9433696799155822 + }, + { + "valid": 2682, + "positives": 29, + "negatives": 2653, + "auroc": 0.8141856324005355, + "auprc": 0.05378968857825319, + "brier": 0.010575295943635626, + "calibration": { + "observed_rate": 0.01081282624906786, + "mean_prediction": 0.0042678834517552, + "calibration_in_the_large": -0.006544942797312659, + "expected_calibration_error_10bin": 0.006914325676435096, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9433696799155822 + }, + { + "valid": 2682, + "positives": 32, + "negatives": 2650, + "auroc": 0.8128891509433962, + "auprc": 0.056475572636275326, + "brier": 0.011651045824126583, + "calibration": { + "observed_rate": 0.011931394481730051, + "mean_prediction": 0.005107999958160787, + "calibration_in_the_large": -0.006823394523569264, + "expected_calibration_error_10bin": 0.007816683160310221, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9433696799155822 + }, + { + "valid": 2682, + "positives": 39, + "negatives": 2643, + "auroc": 0.7964822414311631, + "auprc": 0.06230448424081352, + "brier": 0.014171302362572144, + "calibration": { + "observed_rate": 0.0145413870246085, + "mean_prediction": 0.005945586173180076, + "calibration_in_the_large": -0.008595800851428425, + "expected_calibration_error_10bin": 0.009184127847633262, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9433696799155822 + }, + { + "valid": 2682, + "positives": 44, + "negatives": 2638, + "auroc": 0.8043714246329864, + "auprc": 0.07797049185077037, + "brier": 0.01587013323574704, + "calibration": { + "observed_rate": 0.01640566741237882, + "mean_prediction": 0.0065577722417740104, + "calibration_in_the_large": -0.00984789517060481, + "expected_calibration_error_10bin": 0.010419244371568964, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9433696799155822 + }, + { + "valid": 2682, + "positives": 49, + "negatives": 2633, + "auroc": 0.811148918359596, + "auprc": 0.09635159617093322, + "brier": 0.017537233891705677, + "calibration": { + "observed_rate": 0.018269947800149143, + "mean_prediction": 0.006842463322151449, + "calibration_in_the_large": -0.011427484477997695, + "expected_calibration_error_10bin": 0.011667967729102825, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9433696799155822 + }, + { + "valid": 2682, + "positives": 51, + "negatives": 2631, + "auroc": 0.81415401584427, + "auprc": 0.09737806313490241, + "brier": 0.018215421931361053, + "calibration": { + "observed_rate": 0.01901565995525727, + "mean_prediction": 0.007533599824999384, + "calibration_in_the_large": -0.011482060130257887, + "expected_calibration_error_10bin": 0.012330687444062727, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9433696799155822 + }, + { + "valid": 2682, + "positives": 54, + "negatives": 2628, + "auroc": 0.7993122498449744, + "auprc": 0.10941260202603634, + "brier": 0.019168178772657408, + "calibration": { + "observed_rate": 0.020134228187919462, + "mean_prediction": 0.008039418441503863, + "calibration_in_the_large": -0.0120948097464156, + "expected_calibration_error_10bin": 0.013323808945676576, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9433696799155822 + }, + { + "valid": 2682, + "positives": 57, + "negatives": 2625, + "auroc": 0.8073049289891395, + "auprc": 0.11374148757525214, + "brier": 0.020209375419760103, + "calibration": { + "observed_rate": 0.021252796420581657, + "mean_prediction": 0.00835289773784533, + "calibration_in_the_large": -0.012899898682736327, + "expected_calibration_error_10bin": 0.01504325524013009, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9433696799155822 + }, + { + "valid": 2682, + "positives": 59, + "negatives": 2623, + "auroc": 0.8137079421286275, + "auprc": 0.13132727698676058, + "brier": 0.020739137789059076, + "calibration": { + "observed_rate": 0.021998508575689784, + "mean_prediction": 0.008832069555698176, + "calibration_in_the_large": -0.013166439019991608, + "expected_calibration_error_10bin": 0.015367156058392272, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9433696799155822 + }, + { + "valid": 2682, + "positives": 63, + "negatives": 2619, + "auroc": 0.8020145820833106, + "auprc": 0.13270242533116577, + "brier": 0.022134990139535647, + "calibration": { + "observed_rate": 0.02348993288590604, + "mean_prediction": 0.009290607344282938, + "calibration_in_the_large": -0.014199325541623103, + "expected_calibration_error_10bin": 0.015545081800452517, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9433696799155822 + }, + { + "valid": 2682, + "positives": 63, + "negatives": 2619, + "auroc": 0.801966096353267, + "auprc": 0.13273745189803757, + "brier": 0.02213129931528312, + "calibration": { + "observed_rate": 0.02348993288590604, + "mean_prediction": 0.009360505898202608, + "calibration_in_the_large": -0.014129426987703433, + "expected_calibration_error_10bin": 0.015487913999705723, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9433696799155822 + } + ], + "reason": null + }, + "D69": { + "time_averaged_auroc": 0.8528121779604942, + "time_averaged_auprc": 0.2301755152265181, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2586, + "positives": 13, + "negatives": 2573, + "auroc": 0.8725223474543334, + "auprc": 0.09573378267203682, + "brier": 0.004774109213098435, + "calibration": { + "observed_rate": 0.005027068832173241, + "mean_prediction": 0.0037425708427323377, + "calibration_in_the_large": -0.0012844979894409032, + "expected_calibration_error_10bin": 0.0012844979894409024, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9096025325360535 + }, + { + "valid": 2586, + "positives": 30, + "negatives": 2556, + "auroc": 0.881207616066771, + "auprc": 0.15663073648055229, + "brier": 0.01054519979666556, + "calibration": { + "observed_rate": 0.01160092807424594, + "mean_prediction": 0.007001291948069873, + "calibration_in_the_large": -0.004599636126176066, + "expected_calibration_error_10bin": 0.004681103862985245, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9096025325360535 + }, + { + "valid": 2586, + "positives": 40, + "negatives": 2546, + "auroc": 0.8792321288295365, + "auprc": 0.23773816957011157, + "brier": 0.01349117615213947, + "calibration": { + "observed_rate": 0.015467904098994586, + "mean_prediction": 0.00925748475983555, + "calibration_in_the_large": -0.006210419339159036, + "expected_calibration_error_10bin": 0.006210419339159035, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9096025325360535 + }, + { + "valid": 2586, + "positives": 47, + "negatives": 2539, + "auroc": 0.8621588328459018, + "auprc": 0.22467284130370938, + "brier": 0.015843267205200517, + "calibration": { + "observed_rate": 0.01817478731631864, + "mean_prediction": 0.011180252116149871, + "calibration_in_the_large": -0.006994535200168768, + "expected_calibration_error_10bin": 0.007719159469230877, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9096025325360535 + }, + { + "valid": 2586, + "positives": 52, + "negatives": 2534, + "auroc": 0.8520050391597352, + "auprc": 0.21960200763504173, + "brier": 0.01754072831980889, + "calibration": { + "observed_rate": 0.020108275328692964, + "mean_prediction": 0.012878656675958968, + "calibration_in_the_large": -0.0072296186527339955, + "expected_calibration_error_10bin": 0.007229618652733994, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9096025325360535 + }, + { + "valid": 2586, + "positives": 60, + "negatives": 2526, + "auroc": 0.8570269200316706, + "auprc": 0.22520094858044018, + "brier": 0.020176806653261502, + "calibration": { + "observed_rate": 0.02320185614849188, + "mean_prediction": 0.014037115845595787, + "calibration_in_the_large": -0.009164740302896091, + "expected_calibration_error_10bin": 0.00941539839386073, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9096025325360535 + }, + { + "valid": 2586, + "positives": 65, + "negatives": 2521, + "auroc": 0.8395691575382175, + "auprc": 0.21941767629971212, + "brier": 0.021929822114059576, + "calibration": { + "observed_rate": 0.025135344160866203, + "mean_prediction": 0.015077393419142238, + "calibration_in_the_large": -0.010057950741723965, + "expected_calibration_error_10bin": 0.010270442775482521, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9096025325360535 + }, + { + "valid": 2586, + "positives": 71, + "negatives": 2515, + "auroc": 0.8485369473301039, + "auprc": 0.2779937006693698, + "brier": 0.023239679860692447, + "calibration": { + "observed_rate": 0.02745552977571539, + "mean_prediction": 0.01624819576352304, + "calibration_in_the_large": -0.01120733401219235, + "expected_calibration_error_10bin": 0.01120733401219235, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9096025325360535 + }, + { + "valid": 2586, + "positives": 75, + "negatives": 2511, + "auroc": 0.8451081906279039, + "auprc": 0.27087281606444324, + "brier": 0.024651654692092056, + "calibration": { + "observed_rate": 0.029002320185614848, + "mean_prediction": 0.017542020649781463, + "calibration_in_the_large": -0.011460299535833385, + "expected_calibration_error_10bin": 0.011460299535833383, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9096025325360535 + }, + { + "valid": 2586, + "positives": 81, + "negatives": 2505, + "auroc": 0.8373376703383357, + "auprc": 0.26685051852615094, + "brier": 0.026663188071711516, + "calibration": { + "observed_rate": 0.031322505800464036, + "mean_prediction": 0.018487722633940606, + "calibration_in_the_large": -0.01283478316652343, + "expected_calibration_error_10bin": 0.012834783166523433, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9096025325360535 + }, + { + "valid": 2586, + "positives": 85, + "negatives": 2501, + "auroc": 0.8358209657313546, + "auprc": 0.26567456996645233, + "brier": 0.028008485187273707, + "calibration": { + "observed_rate": 0.0328692962103635, + "mean_prediction": 0.01922855942380148, + "calibration_in_the_large": -0.013640736786562017, + "expected_calibration_error_10bin": 0.013825404099836099, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9096025325360535 + }, + { + "valid": 2586, + "positives": 86, + "negatives": 2500, + "auroc": 0.8372372093023256, + "auprc": 0.2652198745550831, + "brier": 0.028311640743245808, + "calibration": { + "observed_rate": 0.033255993812838364, + "mean_prediction": 0.019882799211020846, + "calibration_in_the_large": -0.013373194601817517, + "expected_calibration_error_10bin": 0.013373194601817512, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9096025325360535 + }, + { + "valid": 2586, + "positives": 87, + "negatives": 2499, + "auroc": 0.8387952882302346, + "auprc": 0.26667405562163177, + "brier": 0.028635214431088955, + "calibration": { + "observed_rate": 0.033642691415313224, + "mean_prediction": 0.02003571425933461, + "calibration_in_the_large": -0.013606977155978615, + "expected_calibration_error_10bin": 0.013606977155978622, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9096025325360535 + } + ], + "reason": null + }, + "D70": { + "time_averaged_auroc": 0.8878736028411571, + "time_averaged_auprc": 0.15910616922029058, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2787, + "positives": 5, + "negatives": 2782, + "auroc": 0.9166786484543494, + "auprc": 0.0925209220726116, + "brier": 0.001705521739280797, + "calibration": { + "observed_rate": 0.001794043774668102, + "mean_prediction": 0.0015334536513954922, + "calibration_in_the_large": -0.0002605901232726098, + "expected_calibration_error_10bin": 0.0006316482529209559, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 8, + "negatives": 2779, + "auroc": 0.9307304785894207, + "auprc": 0.09099385850483961, + "brier": 0.0029390241974586655, + "calibration": { + "observed_rate": 0.0028704700394689632, + "mean_prediction": 0.00357306851293044, + "calibration_in_the_large": 0.0007025984734614766, + "expected_calibration_error_10bin": 0.001428405382256445, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 17, + "negatives": 2770, + "auroc": 0.8937566362284987, + "auprc": 0.16642468007973976, + "brier": 0.005529159830633731, + "calibration": { + "observed_rate": 0.006099748833871547, + "mean_prediction": 0.004799380632901236, + "calibration_in_the_large": -0.0013003682009703104, + "expected_calibration_error_10bin": 0.0036150873021270867, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 20, + "negatives": 2767, + "auroc": 0.8728586917238886, + "auprc": 0.15001775097923836, + "brier": 0.006635887748694147, + "calibration": { + "observed_rate": 0.007176175098672408, + "mean_prediction": 0.005626393986348541, + "calibration_in_the_large": -0.0015497811123238664, + "expected_calibration_error_10bin": 0.0043624853701914315, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 20, + "negatives": 2767, + "auroc": 0.8735995663173112, + "auprc": 0.14798201704844233, + "brier": 0.0067125405521594765, + "calibration": { + "observed_rate": 0.007176175098672408, + "mean_prediction": 0.006492506091408303, + "calibration_in_the_large": -0.0006836690072641047, + "expected_calibration_error_10bin": 0.0029968840321537103, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 22, + "negatives": 2765, + "auroc": 0.8798125924708203, + "auprc": 0.14978295192535582, + "brier": 0.007406405261340394, + "calibration": { + "observed_rate": 0.007893792608539648, + "mean_prediction": 0.006962627697153573, + "calibration_in_the_large": -0.0009311649113860751, + "expected_calibration_error_10bin": 0.003586407866424861, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 24, + "negatives": 2763, + "auroc": 0.875196042948486, + "auprc": 0.16972415783711117, + "brier": 0.00786706958565205, + "calibration": { + "observed_rate": 0.008611410118406888, + "mean_prediction": 0.007364606654720645, + "calibration_in_the_large": -0.0012468034636862434, + "expected_calibration_error_10bin": 0.004180500006954105, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 26, + "negatives": 2761, + "auroc": 0.8836681247039813, + "auprc": 0.18313220939805872, + "brier": 0.008512666283822499, + "calibration": { + "observed_rate": 0.009329027628274129, + "mean_prediction": 0.007951804657280223, + "calibration_in_the_large": -0.001377222970993906, + "expected_calibration_error_10bin": 0.004581712306983747, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 26, + "negatives": 2761, + "auroc": 0.8836402641183517, + "auprc": 0.18422933684943227, + "brier": 0.00854469557768013, + "calibration": { + "observed_rate": 0.009329027628274129, + "mean_prediction": 0.008232172354253392, + "calibration_in_the_large": -0.0010968552740207374, + "expected_calibration_error_10bin": 0.004104618603075999, + "nonempty_bins": 9 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 26, + "negatives": 2761, + "auroc": 0.8830691221129469, + "auprc": 0.18311349502996283, + "brier": 0.008577846773758621, + "calibration": { + "observed_rate": 0.009329027628274129, + "mean_prediction": 0.00852892240352437, + "calibration_in_the_large": -0.0008001052247497593, + "expected_calibration_error_10bin": 0.0038925790192851674, + "nonempty_bins": 9 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 26, + "negatives": 2761, + "auroc": 0.8831944947482796, + "auprc": 0.1840438488455041, + "brier": 0.008606294610006992, + "calibration": { + "observed_rate": 0.009329027628274129, + "mean_prediction": 0.008833778627240479, + "calibration_in_the_large": -0.0004952490010336503, + "expected_calibration_error_10bin": 0.0036735550880457484, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 26, + "negatives": 2761, + "auroc": 0.8830830524057616, + "auprc": 0.18321721087901022, + "brier": 0.00863018549937368, + "calibration": { + "observed_rate": 0.009329027628274129, + "mean_prediction": 0.009141560398267514, + "calibration_in_the_large": -0.00018746723000661464, + "expected_calibration_error_10bin": 0.00342564622546893, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 26, + "negatives": 2761, + "auroc": 0.8830691221129469, + "auprc": 0.18319776041447036, + "brier": 0.008631820503977563, + "calibration": { + "observed_rate": 0.009329027628274129, + "mean_prediction": 0.009164310287510373, + "calibration_in_the_large": -0.00016471734076375574, + "expected_calibration_error_10bin": 0.0034063709319977803, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + } + ], + "reason": null + }, + "D72": { + "time_averaged_auroc": 0.7238767426002515, + "time_averaged_auprc": 0.05716013842417686, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2595, + "positives": 16, + "negatives": 2579, + "auroc": 0.7163386971694455, + "auprc": 0.05239205163593265, + "brier": 0.006097813551657253, + "calibration": { + "observed_rate": 0.006165703275529865, + "mean_prediction": 0.00860966741734791, + "calibration_in_the_large": 0.002443964141818044, + "expected_calibration_error_10bin": 0.002443964141818044, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9127682026028843 + }, + { + "valid": 2595, + "positives": 26, + "negatives": 2569, + "auroc": 0.7273258077072791, + "auprc": 0.04445904135714058, + "brier": 0.009836117533223398, + "calibration": { + "observed_rate": 0.01001926782273603, + "mean_prediction": 0.01321237790828969, + "calibration_in_the_large": 0.0031931100855536604, + "expected_calibration_error_10bin": 0.0031931100855536604, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9127682026028843 + }, + { + "valid": 2595, + "positives": 34, + "negatives": 2561, + "auroc": 0.7238440866389507, + "auprc": 0.05297162181944403, + "brier": 0.01278007247562316, + "calibration": { + "observed_rate": 0.013102119460500963, + "mean_prediction": 0.015978337249916895, + "calibration_in_the_large": 0.0028762177894159323, + "expected_calibration_error_10bin": 0.0028762177894159314, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9127682026028843 + }, + { + "valid": 2595, + "positives": 39, + "negatives": 2556, + "auroc": 0.7227438706311946, + "auprc": 0.05034911623895962, + "brier": 0.014647606147621698, + "calibration": { + "observed_rate": 0.015028901734104046, + "mean_prediction": 0.01854909416335242, + "calibration_in_the_large": 0.003520192429248375, + "expected_calibration_error_10bin": 0.004382431888365168, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9127682026028843 + }, + { + "valid": 2595, + "positives": 45, + "negatives": 2550, + "auroc": 0.7308148148148148, + "auprc": 0.06069735466294658, + "brier": 0.0167968439413764, + "calibration": { + "observed_rate": 0.017341040462427744, + "mean_prediction": 0.02044974871877911, + "calibration_in_the_large": 0.0031087082563513654, + "expected_calibration_error_10bin": 0.003767966164898681, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9127682026028843 + }, + { + "valid": 2595, + "positives": 46, + "negatives": 2549, + "auroc": 0.7368447984716939, + "auprc": 0.059766907663894024, + "brier": 0.017159923053217938, + "calibration": { + "observed_rate": 0.017726396917148363, + "mean_prediction": 0.021846367187146637, + "calibration_in_the_large": 0.004119970269998274, + "expected_calibration_error_10bin": 0.0043275533565669995, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9127682026028843 + }, + { + "valid": 2595, + "positives": 50, + "negatives": 2545, + "auroc": 0.7282750491159136, + "auprc": 0.05784955602060848, + "brier": 0.01864682947839096, + "calibration": { + "observed_rate": 0.019267822736030827, + "mean_prediction": 0.023398377871506906, + "calibration_in_the_large": 0.004130555135476079, + "expected_calibration_error_10bin": 0.00532494554312286, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9127682026028843 + }, + { + "valid": 2595, + "positives": 54, + "negatives": 2541, + "auroc": 0.7238036935006632, + "auprc": 0.05803036074723318, + "brier": 0.020117718793613716, + "calibration": { + "observed_rate": 0.020809248554913295, + "mean_prediction": 0.02484918978524633, + "calibration_in_the_large": 0.004039941230333036, + "expected_calibration_error_10bin": 0.005297498894866149, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9127682026028843 + }, + { + "valid": 2595, + "positives": 58, + "negatives": 2537, + "auroc": 0.7256874125018689, + "auprc": 0.059499274272273694, + "brier": 0.021565691013553226, + "calibration": { + "observed_rate": 0.022350674373795763, + "mean_prediction": 0.02648965777866973, + "calibration_in_the_large": 0.0041389834048739665, + "expected_calibration_error_10bin": 0.00506518100790306, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9127682026028843 + }, + { + "valid": 2595, + "positives": 60, + "negatives": 2535, + "auroc": 0.7285141354372123, + "auprc": 0.059896940070747785, + "brier": 0.022287556153757323, + "calibration": { + "observed_rate": 0.023121387283236993, + "mean_prediction": 0.027725419616111354, + "calibration_in_the_large": 0.004604032332874361, + "expected_calibration_error_10bin": 0.005160247838942906, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9127682026028843 + }, + { + "valid": 2595, + "positives": 65, + "negatives": 2530, + "auroc": 0.7177561568865917, + "auprc": 0.058906716707679135, + "brier": 0.024123974143114357, + "calibration": { + "observed_rate": 0.025048169556840076, + "mean_prediction": 0.02857639461761136, + "calibration_in_the_large": 0.0035282250607712833, + "expected_calibration_error_10bin": 0.003853954676886831, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9127682026028843 + }, + { + "valid": 2595, + "positives": 67, + "negatives": 2528, + "auroc": 0.7140858208955224, + "auprc": 0.06420302728044437, + "brier": 0.024811092939906944, + "calibration": { + "observed_rate": 0.02581888246628131, + "mean_prediction": 0.029908574107040245, + "calibration_in_the_large": 0.004089691640758935, + "expected_calibration_error_10bin": 0.004357469865786692, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9127682026028843 + }, + { + "valid": 2595, + "positives": 67, + "negatives": 2528, + "auroc": 0.7143633100321178, + "auprc": 0.06405983103699506, + "brier": 0.02481371578078495, + "calibration": { + "observed_rate": 0.02581888246628131, + "mean_prediction": 0.030130443220100365, + "calibration_in_the_large": 0.004311560753819055, + "expected_calibration_error_10bin": 0.004474475206573974, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9127682026028843 + } + ], + "reason": null + }, + "D73": { + "time_averaged_auroc": 0.8882231300868989, + "time_averaged_auprc": 0.18491563800696978, + "valid_timepoint_cells": 12, + "timepoints": [ + { + "valid": 2824, + "positives": 0, + "negatives": 2824, + "auroc": null, + "auprc": null, + "brier": 2.9848455903210734e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00013561174688286835, + "calibration_in_the_large": 0.00013561174688286835, + "expected_calibration_error_10bin": 0.00013561174688286835, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 1, + "negatives": 2823, + "auroc": 0.9996457669146298, + "auprc": 0.5, + "brier": 0.0003461164314297949, + "calibration": { + "observed_rate": 0.0003541076487252125, + "mean_prediction": 0.00027363731940861194, + "calibration_in_the_large": -8.047032931660054e-05, + "expected_calibration_error_10bin": 8.047032931660054e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.8555988660524451, + "auprc": 0.2512254901960784, + "brier": 0.0006975131426842653, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0003841730670719776, + "calibration_in_the_large": -0.00032404223037844736, + "expected_calibration_error_10bin": 0.00032404223037844736, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.8490432317505315, + "auprc": 0.2511723329425557, + "brier": 0.0006964396946441179, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.00046229447312022445, + "calibration_in_the_large": -0.0002459208243302005, + "expected_calibration_error_10bin": 0.0002459208243302005, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.8836110126432707, + "auprc": 0.17230300622434114, + "brier": 0.0010489153669810544, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0005021722383264756, + "calibration_in_the_large": -0.0005601507078491619, + "expected_calibration_error_10bin": 0.0005601507078491619, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.8838473354602386, + "auprc": 0.17230585424133812, + "brier": 0.0010480444357097252, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0005649375382277718, + "calibration_in_the_large": -0.0004973854079478657, + "expected_calibration_error_10bin": 0.0004973854079478657, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.8860924022214345, + "auprc": 0.17236194081831666, + "brier": 0.0010479344585157628, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.000601610823637962, + "calibration_in_the_large": -0.0004607121225376755, + "expected_calibration_error_10bin": 0.0004607121225376755, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.8832565284178188, + "auprc": 0.11668897113662184, + "brier": 0.001047162571391129, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.000668209651410883, + "calibration_in_the_large": -0.00039411329476475446, + "expected_calibration_error_10bin": 0.00039411329476475446, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.8830202056008508, + "auprc": 0.11660550380236268, + "brier": 0.001046675587228174, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0007158400666416999, + "calibration_in_the_large": -0.0003464828795339376, + "expected_calibration_error_10bin": 0.0003464828795339376, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.8832565284178188, + "auprc": 0.11666172700849102, + "brier": 0.001046085227810413, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0007816681646096525, + "calibration_in_the_large": -0.00028065478156598497, + "expected_calibration_error_10bin": 0.00028065478156598497, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.8829020441923667, + "auprc": 0.11655213874239967, + "brier": 0.0010443399022862197, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0008629204536924544, + "calibration_in_the_large": -0.00019940249248318314, + "expected_calibration_error_10bin": 0.00019940249248318314, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.8842018196856907, + "auprc": 0.11656804936519931, + "brier": 0.0010441092180187579, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0009081575377929834, + "calibration_in_the_large": -0.00015416540838265414, + "expected_calibration_error_10bin": 0.00015416540838265414, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.8842018196856907, + "auprc": 0.11654264160593275, + "brier": 0.0010441120111081062, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.000911113747892154, + "calibration_in_the_large": -0.0001512091982834835, + "expected_calibration_error_10bin": 0.0001512091982834835, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + } + ], + "reason": null + }, + "D75": { + "time_averaged_auroc": 0.9442281753538527, + "time_averaged_auprc": 0.012540681281009741, + "valid_timepoint_cells": 11, + "timepoints": [ + { + "valid": 2831, + "positives": 0, + "negatives": 2831, + "auroc": null, + "auprc": null, + "brier": 2.7797048779242226e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0003030776743087006, + "calibration_in_the_large": 0.0003030776743087006, + "expected_calibration_error_10bin": 0.0003030776743087006, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 0, + "negatives": 2831, + "auroc": null, + "auprc": null, + "brier": 6.272577284640597e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00044728793827612367, + "calibration_in_the_large": 0.00044728793827612367, + "expected_calibration_error_10bin": 0.00044728793827612367, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.9632508833922262, + "auprc": 0.009523809523809525, + "brier": 0.0003528327617743391, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.0006331096369429393, + "calibration_in_the_large": 0.00027987756347066806, + "expected_calibration_error_10bin": 0.00027987756347066806, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 2, + "negatives": 2829, + "auroc": 0.9485683987274656, + "auprc": 0.010110294117647058, + "brier": 0.0007046682661031193, + "calibration": { + "observed_rate": 0.0007064641469445425, + "mean_prediction": 0.0007626318145156002, + "calibration_in_the_large": 5.616766757105766e-05, + "expected_calibration_error_10bin": 5.616766757105766e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 2, + "negatives": 2829, + "auroc": 0.9482149169317781, + "auprc": 0.0098513981863932, + "brier": 0.0007046952540073478, + "calibration": { + "observed_rate": 0.0007064641469445425, + "mean_prediction": 0.0008928051295593746, + "calibration_in_the_large": 0.00018634098261483207, + "expected_calibration_error_10bin": 0.00018634098261483207, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 3, + "negatives": 2828, + "auroc": 0.9516737388024517, + "auprc": 0.013976622250370973, + "brier": 0.0010554766044377209, + "calibration": { + "observed_rate": 0.0010596962204168139, + "mean_prediction": 0.0009679721502447139, + "calibration_in_the_large": -9.172407017209996e-05, + "expected_calibration_error_10bin": 9.172407017209996e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 3, + "negatives": 2828, + "auroc": 0.9514380009429514, + "auprc": 0.013918192154589904, + "brier": 0.0010553436539088332, + "calibration": { + "observed_rate": 0.0010596962204168139, + "mean_prediction": 0.0010586473747924486, + "calibration_in_the_large": -1.048845624365257e-06, + "expected_calibration_error_10bin": 1.048845624365257e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.935178634594977, + "auprc": 0.01337427248432331, + "brier": 0.0014071352985734142, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0011120180061882983, + "calibration_in_the_large": -0.00030091028770078674, + "expected_calibration_error_10bin": 0.00030091028770078674, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.9388928192430138, + "auprc": 0.013751171309310844, + "brier": 0.0014070023859891832, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0011741585204691446, + "calibration_in_the_large": -0.0002387697734199405, + "expected_calibration_error_10bin": 0.0002387697734199405, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.9370357269189954, + "auprc": 0.013362860023035866, + "brier": 0.0014070560040412151, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0012982230457709999, + "calibration_in_the_large": -0.00011470524811808521, + "expected_calibration_error_10bin": 0.00011470524811808521, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.9364166961443227, + "auprc": 0.013155246239020063, + "brier": 0.0014072401604911312, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0013774633186615438, + "calibration_in_the_large": -3.5464975227541325e-05, + "expected_calibration_error_10bin": 3.5464975227541325e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.9380084895649098, + "auprc": 0.013483461810072853, + "brier": 0.001407389754030795, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0014415358242721435, + "calibration_in_the_large": 2.8607530383058374e-05, + "expected_calibration_error_10bin": 2.8607530383058374e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.937831623629289, + "auprc": 0.013440165992533552, + "brier": 0.0014073959616719733, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0014563230765098094, + "calibration_in_the_large": 4.339478262072429e-05, + "expected_calibration_error_10bin": 4.339478262072429e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + } + ], + "reason": null + }, + "D80": { + "time_averaged_auroc": 0.9804257751741795, + "time_averaged_auprc": 0.06739477227430847, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2832, + "positives": 1, + "negatives": 2831, + "auroc": 0.9667961850936065, + "auprc": 0.010526315789473684, + "brier": 0.00035308802568039584, + "calibration": { + "observed_rate": 0.00035310734463276836, + "mean_prediction": 8.314118805516059e-05, + "calibration_in_the_large": -0.00026996615657760777, + "expected_calibration_error_10bin": 0.00026996615657760777, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + { + "valid": 2832, + "positives": 3, + "negatives": 2829, + "auroc": 0.9802050194414987, + "auprc": 0.048192301698613056, + "brier": 0.001054587412167219, + "calibration": { + "observed_rate": 0.001059322033898305, + "mean_prediction": 0.0001939948441808259, + "calibration_in_the_large": -0.0008653271897174792, + "expected_calibration_error_10bin": 0.0008653271897174792, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + { + "valid": 2832, + "positives": 4, + "negatives": 2828, + "auroc": 0.9798444130127298, + "auprc": 0.04868829087579088, + "brier": 0.001406838042798713, + "calibration": { + "observed_rate": 0.0014124293785310734, + "mean_prediction": 0.0003022762913019345, + "calibration_in_the_large": -0.0011101530872291389, + "expected_calibration_error_10bin": 0.0011101530872291389, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + { + "valid": 2832, + "positives": 5, + "negatives": 2827, + "auroc": 0.9835868411743898, + "auprc": 0.08196844102666533, + "brier": 0.0017486502192495458, + "calibration": { + "observed_rate": 0.0017655367231638418, + "mean_prediction": 0.00035600403393384774, + "calibration_in_the_large": -0.001409532689229994, + "expected_calibration_error_10bin": 0.001409532689229994, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + { + "valid": 2832, + "positives": 6, + "negatives": 2826, + "auroc": 0.9823071479122435, + "auprc": 0.07926871154048248, + "brier": 0.0020995993844364147, + "calibration": { + "observed_rate": 0.00211864406779661, + "mean_prediction": 0.00041158544488056984, + "calibration_in_the_large": -0.0017070586229160404, + "expected_calibration_error_10bin": 0.0017847299627461398, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + { + "valid": 2832, + "positives": 6, + "negatives": 2826, + "auroc": 0.9822481717386176, + "auprc": 0.07803383425782098, + "brier": 0.002098203056977223, + "calibration": { + "observed_rate": 0.00211864406779661, + "mean_prediction": 0.0004779479343002457, + "calibration_in_the_large": -0.0016406961334963644, + "expected_calibration_error_10bin": 0.0017311910222310473, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + { + "valid": 2832, + "positives": 6, + "negatives": 2826, + "auroc": 0.9820712432177401, + "auprc": 0.07765947861120912, + "brier": 0.0020983572509045306, + "calibration": { + "observed_rate": 0.00211864406779661, + "mean_prediction": 0.0005514857204106113, + "calibration_in_the_large": -0.0015671583473859988, + "expected_calibration_error_10bin": 0.001674417915907531, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + { + "valid": 2832, + "positives": 6, + "negatives": 2826, + "auroc": 0.9820712432177401, + "auprc": 0.07764626175673521, + "brier": 0.002097997526007269, + "calibration": { + "observed_rate": 0.00211864406779661, + "mean_prediction": 0.0006097919074085148, + "calibration_in_the_large": -0.0015088521603880954, + "expected_calibration_error_10bin": 0.0016277524823593206, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + { + "valid": 2832, + "positives": 6, + "negatives": 2826, + "auroc": 0.9819532908704883, + "auprc": 0.07643449615455285, + "brier": 0.002099979013566578, + "calibration": { + "observed_rate": 0.00211864406779661, + "mean_prediction": 0.0006625852018721379, + "calibration_in_the_large": -0.0014560588659244724, + "expected_calibration_error_10bin": 0.0015930306974145632, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + { + "valid": 2832, + "positives": 6, + "negatives": 2826, + "auroc": 0.9814814814814815, + "auprc": 0.07455643701053738, + "brier": 0.0021007305309884003, + "calibration": { + "observed_rate": 0.00211864406779661, + "mean_prediction": 0.0006956485194991074, + "calibration_in_the_large": -0.0014229955482975027, + "expected_calibration_error_10bin": 0.0015662598476087097, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + { + "valid": 2832, + "positives": 6, + "negatives": 2826, + "auroc": 0.9811866006133522, + "auprc": 0.07478595478595478, + "brier": 0.0020999941379518587, + "calibration": { + "observed_rate": 0.00211864406779661, + "mean_prediction": 0.0007641490027513383, + "calibration_in_the_large": -0.001354495065045272, + "expected_calibration_error_10bin": 0.0015044517536668951, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + { + "valid": 2832, + "positives": 6, + "negatives": 2826, + "auroc": 0.9808917197452229, + "auprc": 0.07418575802908728, + "brier": 0.00209986519287218, + "calibration": { + "observed_rate": 0.00211864406779661, + "mean_prediction": 0.0007858289725286558, + "calibration_in_the_large": -0.0013328150952679543, + "expected_calibration_error_10bin": 0.0014840789608944187, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + { + "valid": 2832, + "positives": 6, + "negatives": 2826, + "auroc": 0.9808917197452229, + "auprc": 0.07418575802908728, + "brier": 0.002099875325723036, + "calibration": { + "observed_rate": 0.00211864406779661, + "mean_prediction": 0.0007876969265652982, + "calibration_in_the_large": -0.001330947141231312, + "expected_calibration_error_10bin": 0.0014823660168185007, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + } + ], + "reason": null + }, + "D89": { + "time_averaged_auroc": 0.7010046327629778, + "time_averaged_auprc": 0.00780850327983606, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2837, + "positives": 1, + "negatives": 2836, + "auroc": 0.9742595204513399, + "auprc": 0.013513513513513514, + "brier": 0.0003530919881237057, + "calibration": { + "observed_rate": 0.00035248501938667606, + "mean_prediction": 5.713747231892419e-05, + "calibration_in_the_large": -0.0002953475470677519, + "expected_calibration_error_10bin": 0.0002953475470677519, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.6679012345679012, + "auprc": 0.007131433556266356, + "brier": 0.0007106876050393187, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.00016185673146869322, + "calibration_in_the_large": -0.000543113307304659, + "expected_calibration_error_10bin": 0.0006288579923926462, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.6610229276895944, + "auprc": 0.006792005420054201, + "brier": 0.0007220955834166812, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.000267947790567768, + "calibration_in_the_large": -0.00043702224820558414, + "expected_calibration_error_10bin": 0.0005808586663769366, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.6613756613756614, + "auprc": 0.007207792207792208, + "brier": 0.000747951848903941, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0004393236780070899, + "calibration_in_the_large": -0.0002656463607662622, + "expected_calibration_error_10bin": 0.00048656829788384047, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.6731922398589065, + "auprc": 0.007410167564286757, + "brier": 0.0007709636336714509, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0005472338041310821, + "calibration_in_the_large": -0.00015773623464227003, + "expected_calibration_error_10bin": 0.0005030362576105933, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.6784832451499118, + "auprc": 0.0072377688939653535, + "brier": 0.0007925808064155919, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0006162833165186885, + "calibration_in_the_large": -8.868672225466367e-05, + "expected_calibration_error_10bin": 0.0004873348089312631, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.6800705467372135, + "auprc": 0.007422709563905994, + "brier": 0.0008052955919055006, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0006749876758195411, + "calibration_in_the_large": -2.9982362953811007e-05, + "expected_calibration_error_10bin": 0.0005289452191080395, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.6855379188712521, + "auprc": 0.007527875016206404, + "brier": 0.0008365919264932247, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0007801252535172724, + "calibration_in_the_large": 7.515521474392027e-05, + "expected_calibration_error_10bin": 0.0004985318121576476, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.6843033509700176, + "auprc": 0.007525501969139389, + "brier": 0.000857253011654681, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.000870397373073859, + "calibration_in_the_large": 0.00016542733430050687, + "expected_calibration_error_10bin": 0.0005313035073637156, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.6857142857142857, + "auprc": 0.007433427218025861, + "brier": 0.0008783291795085887, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0009365873360659469, + "calibration_in_the_large": 0.00023161729729259477, + "expected_calibration_error_10bin": 0.0005146123287750472, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.682716049382716, + "auprc": 0.007427684067914781, + "brier": 0.0008984040122442687, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0009939227890016185, + "calibration_in_the_large": 0.0002889527502282664, + "expected_calibration_error_10bin": 0.0005749035381138783, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.6894179894179894, + "auprc": 0.0074406811240815595, + "brier": 0.0009215902400580201, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0010602972823045614, + "calibration_in_the_large": 0.0003553272435312093, + "expected_calibration_error_10bin": 0.0005593633608871072, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.6890652557319223, + "auprc": 0.007439982522716423, + "brier": 0.0009222718619849919, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0010647971107768295, + "calibration_in_the_large": 0.00035982707200347735, + "expected_calibration_error_10bin": 0.0005564586499841451, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + } + ], + "reason": null + }, + "E03": { + "time_averaged_auroc": 0.7304161355868284, + "time_averaged_auprc": 0.0579763391695098, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2480, + "positives": 7, + "negatives": 2473, + "auroc": 0.8399283692449887, + "auprc": 0.014546753404951237, + "brier": 0.002810675292626479, + "calibration": { + "observed_rate": 0.00282258064516129, + "mean_prediction": 0.0011694406649909188, + "calibration_in_the_large": -0.0016531399801703714, + "expected_calibration_error_10bin": 0.0016531399801703714, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8723179739711572 + }, + { + "valid": 2480, + "positives": 11, + "negatives": 2469, + "auroc": 0.7746971537980043, + "auprc": 0.06903147582207127, + "brier": 0.004398224744953321, + "calibration": { + "observed_rate": 0.004435483870967742, + "mean_prediction": 0.0018100265474282834, + "calibration_in_the_large": -0.0026254573235394586, + "expected_calibration_error_10bin": 0.0026254573235394586, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8723179739711572 + }, + { + "valid": 2480, + "positives": 14, + "negatives": 2466, + "auroc": 0.7304483837330553, + "auprc": 0.09042079930704229, + "brier": 0.005595019777036042, + "calibration": { + "observed_rate": 0.00564516129032258, + "mean_prediction": 0.002264588508061875, + "calibration_in_the_large": -0.0033805727822607055, + "expected_calibration_error_10bin": 0.0033805727822607055, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8723179739711572 + }, + { + "valid": 2480, + "positives": 17, + "negatives": 2463, + "auroc": 0.7505433354827924, + "auprc": 0.06412802091493396, + "brier": 0.00677283372584068, + "calibration": { + "observed_rate": 0.0068548387096774195, + "mean_prediction": 0.0027059634713535365, + "calibration_in_the_large": -0.004148875238323883, + "expected_calibration_error_10bin": 0.004148875238323883, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8723179739711572 + }, + { + "valid": 2480, + "positives": 18, + "negatives": 2462, + "auroc": 0.758665041971297, + "auprc": 0.058615077704016166, + "brier": 0.0071575934610439386, + "calibration": { + "observed_rate": 0.007258064516129033, + "mean_prediction": 0.003004560609101205, + "calibration_in_the_large": -0.0042535039070278275, + "expected_calibration_error_10bin": 0.0042535039070278275, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8723179739711572 + }, + { + "valid": 2480, + "positives": 18, + "negatives": 2462, + "auroc": 0.7604025634082499, + "auprc": 0.059468973224405856, + "brier": 0.007146236025261184, + "calibration": { + "observed_rate": 0.007258064516129033, + "mean_prediction": 0.003388715728267984, + "calibration_in_the_large": -0.0038693487878610484, + "expected_calibration_error_10bin": 0.0038693487878610484, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8723179739711572 + }, + { + "valid": 2480, + "positives": 20, + "negatives": 2460, + "auroc": 0.7488211382113821, + "auprc": 0.06704156674022087, + "brier": 0.007935664299905281, + "calibration": { + "observed_rate": 0.008064516129032258, + "mean_prediction": 0.0037707474713252233, + "calibration_in_the_large": -0.0042937686577070346, + "expected_calibration_error_10bin": 0.0042937686577070346, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8723179739711572 + }, + { + "valid": 2480, + "positives": 21, + "negatives": 2459, + "auroc": 0.7227289451770949, + "auprc": 0.0639081826558413, + "brier": 0.008330070459468262, + "calibration": { + "observed_rate": 0.008467741935483872, + "mean_prediction": 0.004072240513127209, + "calibration_in_the_large": -0.004395501422356663, + "expected_calibration_error_10bin": 0.004395501422356663, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8723179739711572 + }, + { + "valid": 2480, + "positives": 22, + "negatives": 2458, + "auroc": 0.7048413344182262, + "auprc": 0.05452690809855135, + "brier": 0.008725546783886907, + "calibration": { + "observed_rate": 0.008870967741935484, + "mean_prediction": 0.004331287249501216, + "calibration_in_the_large": -0.004539680492434268, + "expected_calibration_error_10bin": 0.004539680492434268, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8723179739711572 + }, + { + "valid": 2480, + "positives": 23, + "negatives": 2457, + "auroc": 0.6815133336872468, + "auprc": 0.052007129497099965, + "brier": 0.00912257270915987, + "calibration": { + "observed_rate": 0.009274193548387096, + "mean_prediction": 0.004692708482804348, + "calibration_in_the_large": -0.004581485065582748, + "expected_calibration_error_10bin": 0.004581485065582748, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8723179739711572 + }, + { + "valid": 2480, + "positives": 24, + "negatives": 2456, + "auroc": 0.6839542616720955, + "auprc": 0.05929554048028011, + "brier": 0.00951572681363312, + "calibration": { + "observed_rate": 0.00967741935483871, + "mean_prediction": 0.004877967432877349, + "calibration_in_the_large": -0.004799451921961361, + "expected_calibration_error_10bin": 0.004799451921961361, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8723179739711572 + }, + { + "valid": 2480, + "positives": 26, + "negatives": 2454, + "auroc": 0.6694094414143313, + "auprc": 0.050368063666782856, + "brier": 0.010310691137480373, + "calibration": { + "observed_rate": 0.010483870967741936, + "mean_prediction": 0.005175004374400633, + "calibration_in_the_large": -0.005308866593341303, + "expected_calibration_error_10bin": 0.005308866593341303, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8723179739711572 + }, + { + "valid": 2480, + "positives": 26, + "negatives": 2454, + "auroc": 0.6694564604100056, + "auprc": 0.05033391768743022, + "brier": 0.010309557024247126, + "calibration": { + "observed_rate": 0.010483870967741936, + "mean_prediction": 0.005216581592075302, + "calibration_in_the_large": -0.005267289375666635, + "expected_calibration_error_10bin": 0.005267289375666635, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8723179739711572 + } + ], + "reason": null + }, + "E04": { + "time_averaged_auroc": 0.7331379806155497, + "time_averaged_auprc": 0.009841465531644314, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2775, + "positives": 3, + "negatives": 2772, + "auroc": 0.8381433381433382, + "auprc": 0.004767826722506454, + "brier": 0.001079629059529752, + "calibration": { + "observed_rate": 0.001081081081081081, + "mean_prediction": 0.00047045306861217065, + "calibration_in_the_large": -0.0006106280124689104, + "expected_calibration_error_10bin": 0.0006106280124689104, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + { + "valid": 2775, + "positives": 4, + "negatives": 2771, + "auroc": 0.6568928184770841, + "auprc": 0.005281914384620485, + "brier": 0.0014388810537586732, + "calibration": { + "observed_rate": 0.0014414414414414415, + "mean_prediction": 0.000862685601586326, + "calibration_in_the_large": -0.0005787558398551155, + "expected_calibration_error_10bin": 0.0005787558398551155, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + { + "valid": 2775, + "positives": 6, + "negatives": 2769, + "auroc": 0.7314313229806187, + "auprc": 0.00797619846997411, + "brier": 0.0021556040896222985, + "calibration": { + "observed_rate": 0.002162162162162162, + "mean_prediction": 0.0011974004186016795, + "calibration_in_the_large": -0.0009647617435604827, + "expected_calibration_error_10bin": 0.0009647617435604827, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + { + "valid": 2775, + "positives": 8, + "negatives": 2767, + "auroc": 0.7554210336104084, + "auprc": 0.009755200739345634, + "brier": 0.0028714927230243815, + "calibration": { + "observed_rate": 0.002882882882882883, + "mean_prediction": 0.0015241770052343453, + "calibration_in_the_large": -0.0013587058776485376, + "expected_calibration_error_10bin": 0.0013587058776485376, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + { + "valid": 2775, + "positives": 9, + "negatives": 2766, + "auroc": 0.7774965855226159, + "auprc": 0.011831755796112517, + "brier": 0.003226574945652998, + "calibration": { + "observed_rate": 0.003243243243243243, + "mean_prediction": 0.0018760097876918997, + "calibration_in_the_large": -0.0013672334555513434, + "expected_calibration_error_10bin": 0.0013672334555513434, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + { + "valid": 2775, + "positives": 9, + "negatives": 2766, + "auroc": 0.7759701132803085, + "auprc": 0.01207864472522794, + "brier": 0.0032252094152290535, + "calibration": { + "observed_rate": 0.003243243243243243, + "mean_prediction": 0.0021513005633165155, + "calibration_in_the_large": -0.0010919426799267276, + "expected_calibration_error_10bin": 0.0010919426799267276, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + { + "valid": 2775, + "positives": 9, + "negatives": 2766, + "auroc": 0.7757290913473126, + "auprc": 0.011924326451632383, + "brier": 0.003224921650517736, + "calibration": { + "observed_rate": 0.003243243243243243, + "mean_prediction": 0.0025086211937971033, + "calibration_in_the_large": -0.0007346220494461398, + "expected_calibration_error_10bin": 0.0007346220494461398, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + { + "valid": 2775, + "positives": 9, + "negatives": 2766, + "auroc": 0.7756889210251466, + "auprc": 0.011900932724314498, + "brier": 0.003225013029674926, + "calibration": { + "observed_rate": 0.003243243243243243, + "mean_prediction": 0.002544893667312666, + "calibration_in_the_large": -0.0006983495759305771, + "expected_calibration_error_10bin": 0.0006983495759305771, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + { + "valid": 2775, + "positives": 11, + "negatives": 2764, + "auroc": 0.6857979213261413, + "auprc": 0.010512030155624257, + "brier": 0.003944926560732063, + "calibration": { + "observed_rate": 0.003963963963963964, + "mean_prediction": 0.0027023563769002033, + "calibration_in_the_large": -0.001261607587063761, + "expected_calibration_error_10bin": 0.001261607587063761, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + { + "valid": 2775, + "positives": 11, + "negatives": 2764, + "auroc": 0.6881002499671096, + "auprc": 0.010622667682124571, + "brier": 0.003944967326578721, + "calibration": { + "observed_rate": 0.003963963963963964, + "mean_prediction": 0.0028275240230770477, + "calibration_in_the_large": -0.0011364399408869165, + "expected_calibration_error_10bin": 0.0011364399408869165, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + { + "valid": 2775, + "positives": 11, + "negatives": 2764, + "auroc": 0.6898763320615708, + "auprc": 0.01055389885080929, + "brier": 0.003945122686502298, + "calibration": { + "observed_rate": 0.003963963963963964, + "mean_prediction": 0.0029284647996626533, + "calibration_in_the_large": -0.001035499164301311, + "expected_calibration_error_10bin": 0.001035499164301311, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + { + "valid": 2775, + "positives": 11, + "negatives": 2764, + "auroc": 0.6901394553348243, + "auprc": 0.01038480683037434, + "brier": 0.003945919072388425, + "calibration": { + "observed_rate": 0.003963963963963964, + "mean_prediction": 0.0031225422585146032, + "calibration_in_the_large": -0.000841421705449361, + "expected_calibration_error_10bin": 0.000841421705449361, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + { + "valid": 2775, + "positives": 11, + "negatives": 2764, + "auroc": 0.6901065649256677, + "auprc": 0.010348848378709603, + "brier": 0.003946085705511667, + "calibration": { + "observed_rate": 0.003963963963963964, + "mean_prediction": 0.0031592201572231454, + "calibration_in_the_large": -0.0008047438067408188, + "expected_calibration_error_10bin": 0.0008047438067408188, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + } + ], + "reason": null + }, + "E05": { + "time_averaged_auroc": 0.48523082827914116, + "time_averaged_auprc": 0.0017829454148139167, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2806, + "positives": 2, + "negatives": 2804, + "auroc": 0.2662268188302425, + "auprc": 0.0007124417633551916, + "brier": 0.0007127027030262369, + "calibration": { + "observed_rate": 0.0007127583749109052, + "mean_prediction": 0.00016890751093869287, + "calibration_in_the_large": -0.0005438508639722124, + "expected_calibration_error_10bin": 0.0005438508639722124, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 2, + "negatives": 2804, + "auroc": 0.2992154065620542, + "auprc": 0.0007441348053165489, + "brier": 0.0007127012512486443, + "calibration": { + "observed_rate": 0.0007127583749109052, + "mean_prediction": 0.00029251731234921133, + "calibration_in_the_large": -0.0004202410625616939, + "expected_calibration_error_10bin": 0.0004202410625616939, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 2, + "negatives": 2804, + "auroc": 0.3223965763195435, + "auprc": 0.0007664728583271245, + "brier": 0.0007127497286689538, + "calibration": { + "observed_rate": 0.0007127583749109052, + "mean_prediction": 0.00037128522915993246, + "calibration_in_the_large": -0.0003414731457509728, + "expected_calibration_error_10bin": 0.0003414731457509728, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 2, + "negatives": 2804, + "auroc": 0.3364835948644793, + "auprc": 0.0007832747468073024, + "brier": 0.0007128299047829653, + "calibration": { + "observed_rate": 0.0007127583749109052, + "mean_prediction": 0.00045533444023625896, + "calibration_in_the_large": -0.0002574239346746463, + "expected_calibration_error_10bin": 0.0002574239346746463, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 2, + "negatives": 2804, + "auroc": 0.3405848787446505, + "auprc": 0.0007875076575830915, + "brier": 0.0007129572268647111, + "calibration": { + "observed_rate": 0.0007127583749109052, + "mean_prediction": 0.0005416107436595107, + "calibration_in_the_large": -0.00017114763125139455, + "expected_calibration_error_10bin": 0.00017114763125139455, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 2, + "negatives": 2804, + "auroc": 0.3735734664764622, + "auprc": 0.0008299335917903172, + "brier": 0.0007129916814386974, + "calibration": { + "observed_rate": 0.0007127583749109052, + "mean_prediction": 0.0005849239900445372, + "calibration_in_the_large": -0.000127834384866368, + "expected_calibration_error_10bin": 0.000127834384866368, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 3, + "negatives": 2803, + "auroc": 0.5467951004875728, + "auprc": 0.0015856143891766884, + "brier": 0.0010687686474704333, + "calibration": { + "observed_rate": 0.0010691375623663579, + "mean_prediction": 0.0006618051618687458, + "calibration_in_the_large": -0.000407332400497612, + "expected_calibration_error_10bin": 0.000407332400497612, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 3, + "negatives": 2803, + "auroc": 0.5580925199191342, + "auprc": 0.0016203675834883522, + "brier": 0.0010688106204561724, + "calibration": { + "observed_rate": 0.0010691375623663579, + "mean_prediction": 0.0007340440004571548, + "calibration_in_the_large": -0.00033509356190920304, + "expected_calibration_error_10bin": 0.00033509356190920304, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 4, + "negatives": 2802, + "auroc": 0.6489114917915775, + "auprc": 0.0031310265974381886, + "brier": 0.0014239646780692104, + "calibration": { + "observed_rate": 0.0014255167498218105, + "mean_prediction": 0.0007811761885257527, + "calibration_in_the_large": -0.0006443405612960578, + "expected_calibration_error_10bin": 0.0006443405612960578, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 4, + "negatives": 2802, + "auroc": 0.6573875802997858, + "auprc": 0.0031220766820422604, + "brier": 0.0014239248785039246, + "calibration": { + "observed_rate": 0.0014255167498218105, + "mean_prediction": 0.0008176910093463496, + "calibration_in_the_large": -0.0006078257404754609, + "expected_calibration_error_10bin": 0.0006078257404754609, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 4, + "negatives": 2802, + "auroc": 0.6548001427551748, + "auprc": 0.003082316013871512, + "brier": 0.0014239236237875105, + "calibration": { + "observed_rate": 0.0014255167498218105, + "mean_prediction": 0.000864606276401994, + "calibration_in_the_large": -0.0005609104734198164, + "expected_calibration_error_10bin": 0.0005609104734198164, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 4, + "negatives": 2802, + "auroc": 0.6517665952890792, + "auprc": 0.003002737239252114, + "brier": 0.0014239531256200321, + "calibration": { + "observed_rate": 0.0014255167498218105, + "mean_prediction": 0.0009171761408607865, + "calibration_in_the_large": -0.000508340608961024, + "expected_calibration_error_10bin": 0.000508340608961024, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 4, + "negatives": 2802, + "auroc": 0.6517665952890792, + "auprc": 0.003010386464132224, + "brier": 0.0014239559498253613, + "calibration": { + "observed_rate": 0.0014255167498218105, + "mean_prediction": 0.0009261650518787704, + "calibration_in_the_large": -0.00049935169794304, + "expected_calibration_error_10bin": 0.00049935169794304, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + } + ], + "reason": null + }, + "E11": { + "time_averaged_auroc": 0.7976556366826008, + "time_averaged_auprc": 0.02660748347139243, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2194, + "positives": 6, + "negatives": 2188, + "auroc": 0.734079829372334, + "auprc": 0.010564268476947069, + "brier": 0.0027269238927657776, + "calibration": { + "observed_rate": 0.0027347310847766638, + "mean_prediction": 0.0010091110959577568, + "calibration_in_the_large": -0.001725619988818907, + "expected_calibration_error_10bin": 0.001725619988818907, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7717200140696447 + }, + { + "valid": 2194, + "positives": 9, + "negatives": 2185, + "auroc": 0.7594202898550725, + "auprc": 0.013679823567425212, + "brier": 0.004082322376731331, + "calibration": { + "observed_rate": 0.004102096627164996, + "mean_prediction": 0.0018645864741599558, + "calibration_in_the_large": -0.00223751015300504, + "expected_calibration_error_10bin": 0.00223751015300504, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7717200140696447 + }, + { + "valid": 2194, + "positives": 11, + "negatives": 2183, + "auroc": 0.8067296880856203, + "auprc": 0.017053308192531456, + "brier": 0.004979874582533463, + "calibration": { + "observed_rate": 0.005013673655423883, + "mean_prediction": 0.0022737040443102834, + "calibration_in_the_large": -0.0027399696111136, + "expected_calibration_error_10bin": 0.0027399696111136, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7717200140696447 + }, + { + "valid": 2194, + "positives": 13, + "negatives": 2181, + "auroc": 0.8044298663280781, + "auprc": 0.01856207968646514, + "brier": 0.005882092811270977, + "calibration": { + "observed_rate": 0.005925250683682771, + "mean_prediction": 0.0026529585573905074, + "calibration_in_the_large": -0.0032722921262922635, + "expected_calibration_error_10bin": 0.0032722921262922635, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7717200140696447 + }, + { + "valid": 2194, + "positives": 13, + "negatives": 2181, + "auroc": 0.8036186646915671, + "auprc": 0.01828658454415099, + "brier": 0.005883858548974521, + "calibration": { + "observed_rate": 0.005925250683682771, + "mean_prediction": 0.003151150199593564, + "calibration_in_the_large": -0.002774100484089207, + "expected_calibration_error_10bin": 0.002774100484089207, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7717200140696447 + }, + { + "valid": 2194, + "positives": 15, + "negatives": 2179, + "auroc": 0.8116567232675539, + "auprc": 0.020933494146672938, + "brier": 0.006783152526578004, + "calibration": { + "observed_rate": 0.0068368277119416595, + "mean_prediction": 0.0034735755738008996, + "calibration_in_the_large": -0.00336325213814076, + "expected_calibration_error_10bin": 0.00336325213814076, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7717200140696447 + }, + { + "valid": 2194, + "positives": 17, + "negatives": 2177, + "auroc": 0.8208273663163015, + "auprc": 0.025272501081802387, + "brier": 0.007671474856086104, + "calibration": { + "observed_rate": 0.007748404740200547, + "mean_prediction": 0.0038963497347269554, + "calibration_in_the_large": -0.0038520550054735917, + "expected_calibration_error_10bin": 0.003949759223085737, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7717200140696447 + }, + { + "valid": 2194, + "positives": 19, + "negatives": 2175, + "auroc": 0.810453720508167, + "auprc": 0.025811537546487247, + "brier": 0.008574210984635436, + "calibration": { + "observed_rate": 0.008659981768459436, + "mean_prediction": 0.004391631316136468, + "calibration_in_the_large": -0.004268350452322968, + "expected_calibration_error_10bin": 0.004563029173733496, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7717200140696447 + }, + { + "valid": 2194, + "positives": 19, + "negatives": 2175, + "auroc": 0.8093647912885662, + "auprc": 0.025543487337626968, + "brier": 0.0085812359316969, + "calibration": { + "observed_rate": 0.008659981768459436, + "mean_prediction": 0.004800222841339752, + "calibration_in_the_large": -0.0038597589271196836, + "expected_calibration_error_10bin": 0.004193707580572494, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7717200140696447 + }, + { + "valid": 2194, + "positives": 20, + "negatives": 2174, + "auroc": 0.8194342226310948, + "auprc": 0.030449176787477612, + "brier": 0.008999292887118999, + "calibration": { + "observed_rate": 0.009115770282588878, + "mean_prediction": 0.005322487830787595, + "calibration_in_the_large": -0.0037932824518012833, + "expected_calibration_error_10bin": 0.004144219542866693, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7717200140696447 + }, + { + "valid": 2194, + "positives": 21, + "negatives": 2173, + "auroc": 0.8133368395678566, + "auprc": 0.03065281828446063, + "brier": 0.009450470156617903, + "calibration": { + "observed_rate": 0.009571558796718322, + "mean_prediction": 0.005678007923498106, + "calibration_in_the_large": -0.0038935508732202166, + "expected_calibration_error_10bin": 0.004266592077846165, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7717200140696447 + }, + { + "valid": 2194, + "positives": 24, + "negatives": 2170, + "auroc": 0.7881336405529954, + "auprc": 0.05454561391770304, + "brier": 0.010688333257230122, + "calibration": { + "observed_rate": 0.010938924339106655, + "mean_prediction": 0.006193192680050758, + "calibration_in_the_large": -0.004745731659055897, + "expected_calibration_error_10bin": 0.004745731659055897, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7717200140696447 + }, + { + "valid": 2194, + "positives": 24, + "negatives": 2170, + "auroc": 0.7880376344086022, + "auprc": 0.05454259155835098, + "brier": 0.010687695967290377, + "calibration": { + "observed_rate": 0.010938924339106655, + "mean_prediction": 0.006205424325638533, + "calibration_in_the_large": -0.004733500013468122, + "expected_calibration_error_10bin": 0.004733500013468123, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7717200140696447 + } + ], + "reason": null + }, + "E16": { + "time_averaged_auroc": 0.6281812507822918, + "time_averaged_auprc": 0.004980042871798333, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2816, + "positives": 1, + "negatives": 2815, + "auroc": 0.8628774422735347, + "auprc": 0.002583979328165375, + "brier": 0.00035553945296372923, + "calibration": { + "observed_rate": 0.0003551136363636364, + "mean_prediction": 0.0005198677999692949, + "calibration_in_the_large": 0.00016475416360565856, + "expected_calibration_error_10bin": 0.00016475416360565856, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 3, + "negatives": 2813, + "auroc": 0.5340680175376229, + "auprc": 0.0017118166230258684, + "brier": 0.001069247368644865, + "calibration": { + "observed_rate": 0.001065340909090909, + "mean_prediction": 0.0010372300885344223, + "calibration_in_the_large": -2.8110820556486718e-05, + "expected_calibration_error_10bin": 2.8110820556486718e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 4, + "negatives": 2812, + "auroc": 0.5615220483641536, + "auprc": 0.0020715191213988467, + "brier": 0.0014252940475296253, + "calibration": { + "observed_rate": 0.0014204545454545455, + "mean_prediction": 0.0012557343527035414, + "calibration_in_the_large": -0.0001647201927510041, + "expected_calibration_error_10bin": 0.0001647201927510041, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 4, + "negatives": 2812, + "auroc": 0.5581436699857752, + "auprc": 0.0020422275775060185, + "brier": 0.0014273053914507423, + "calibration": { + "observed_rate": 0.0014204545454545455, + "mean_prediction": 0.0014329876091297483, + "calibration_in_the_large": 1.2533063675202816e-05, + "expected_calibration_error_10bin": 1.2533063675202816e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 5, + "negatives": 2811, + "auroc": 0.5727499110636785, + "auprc": 0.002433596270246539, + "brier": 0.0017847114524653061, + "calibration": { + "observed_rate": 0.0017755681818181818, + "mean_prediction": 0.0016217702353506654, + "calibration_in_the_large": -0.00015379794646751634, + "expected_calibration_error_10bin": 0.00015379794646751634, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 5, + "negatives": 2811, + "auroc": 0.5709711846318036, + "auprc": 0.0024219609080447647, + "brier": 0.0017870249193898636, + "calibration": { + "observed_rate": 0.0017755681818181818, + "mean_prediction": 0.001761351026533217, + "calibration_in_the_large": -1.4217155284964754e-05, + "expected_calibration_error_10bin": 1.4217155284964754e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 6, + "negatives": 2810, + "auroc": 0.597508896797153, + "auprc": 0.002994104014244183, + "brier": 0.002142230740939964, + "calibration": { + "observed_rate": 0.002130681818181818, + "mean_prediction": 0.0018744396261754755, + "calibration_in_the_large": -0.0002562421920063425, + "expected_calibration_error_10bin": 0.0002562421920063425, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 7, + "negatives": 2809, + "auroc": 0.6514265371509943, + "auprc": 0.006493093143195142, + "brier": 0.002487682232101392, + "calibration": { + "observed_rate": 0.0024857954545454545, + "mean_prediction": 0.002011026181705879, + "calibration_in_the_large": -0.00047476927283957547, + "expected_calibration_error_10bin": 0.00047476927283957547, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 8, + "negatives": 2808, + "auroc": 0.6757923789173789, + "auprc": 0.007049948037558159, + "brier": 0.002841060617009311, + "calibration": { + "observed_rate": 0.002840909090909091, + "mean_prediction": 0.002124742135417276, + "calibration_in_the_large": -0.0007161669554918149, + "expected_calibration_error_10bin": 0.0007161669554918149, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 10, + "negatives": 2806, + "auroc": 0.6597647897362794, + "auprc": 0.008572208185392644, + "brier": 0.0035461617924717557, + "calibration": { + "observed_rate": 0.0035511363636363635, + "mean_prediction": 0.0022855403201989784, + "calibration_in_the_large": -0.001265596043437385, + "expected_calibration_error_10bin": 0.001265596043437385, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 12, + "negatives": 2804, + "auroc": 0.6462494056110318, + "auprc": 0.008857982794768472, + "brier": 0.004255991836839543, + "calibration": { + "observed_rate": 0.004261363636363636, + "mean_prediction": 0.0024133134290277203, + "calibration_in_the_large": -0.0018480502073359158, + "expected_calibration_error_10bin": 0.0018480502073359158, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 13, + "negatives": 2803, + "auroc": 0.6376684321743187, + "auprc": 0.008754156796364642, + "brier": 0.004612609394956744, + "calibration": { + "observed_rate": 0.004616477272727273, + "mean_prediction": 0.0026030836054767355, + "calibration_in_the_large": -0.0020133936672505374, + "expected_calibration_error_10bin": 0.0020133936672505374, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 13, + "negatives": 2803, + "auroc": 0.6376135459260682, + "auprc": 0.008753964533467672, + "brier": 0.004612667695038716, + "calibration": { + "observed_rate": 0.004616477272727273, + "mean_prediction": 0.0026073992470530397, + "calibration_in_the_large": -0.0020090780256742332, + "expected_calibration_error_10bin": 0.0020090780256742332, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + } + ], + "reason": null + }, + "E21": { + "time_averaged_auroc": 0.8864580619719198, + "time_averaged_auprc": 0.012480995917179181, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2814, + "positives": 1, + "negatives": 2813, + "auroc": 0.9729825808745112, + "auprc": 0.012987012987012988, + "brier": 0.00035456638336420096, + "calibration": { + "observed_rate": 0.00035536602700781805, + "mean_prediction": 0.0003336114342829372, + "calibration_in_the_large": -2.1754592724880864e-05, + "expected_calibration_error_10bin": 2.1754592724880864e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 1, + "negatives": 2813, + "auroc": 0.9758265197298258, + "auprc": 0.014492753623188406, + "brier": 0.000354513869199582, + "calibration": { + "observed_rate": 0.00035536602700781805, + "mean_prediction": 0.0004529436349195807, + "calibration_in_the_large": 9.757760791176265e-05, + "expected_calibration_error_10bin": 9.757760791176265e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 1, + "negatives": 2813, + "auroc": 0.9761820120867402, + "auprc": 0.014705882352941176, + "brier": 0.0003547637437233386, + "calibration": { + "observed_rate": 0.00035536602700781805, + "mean_prediction": 0.0005710119135268236, + "calibration_in_the_large": 0.00021564588651900554, + "expected_calibration_error_10bin": 0.00021564588651900554, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 1, + "negatives": 2813, + "auroc": 0.9804479203697121, + "auprc": 0.017857142857142856, + "brier": 0.00035465438407197825, + "calibration": { + "observed_rate": 0.00035536602700781805, + "mean_prediction": 0.0006794521591864389, + "calibration_in_the_large": 0.0003240861321786208, + "expected_calibration_error_10bin": 0.0003240861321786208, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 1, + "negatives": 2813, + "auroc": 0.9797369356558834, + "auprc": 0.017241379310344827, + "brier": 0.00035512141414004503, + "calibration": { + "observed_rate": 0.00035536602700781805, + "mean_prediction": 0.0007655176514471691, + "calibration_in_the_large": 0.000410151624439351, + "expected_calibration_error_10bin": 0.000410151624439351, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 1, + "negatives": 2813, + "auroc": 0.9811589050835408, + "auprc": 0.018518518518518517, + "brier": 0.00035595292517388735, + "calibration": { + "observed_rate": 0.00035536602700781805, + "mean_prediction": 0.0008903382495835972, + "calibration_in_the_large": 0.0005349722225757792, + "expected_calibration_error_10bin": 0.0005349722225757792, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 2, + "negatives": 2812, + "auroc": 0.8769559032716927, + "auprc": 0.011170594568728317, + "brier": 0.000711122916062877, + "calibration": { + "observed_rate": 0.0007107320540156361, + "mean_prediction": 0.0009623039726652656, + "calibration_in_the_large": 0.0002515719186496295, + "expected_calibration_error_10bin": 0.0002515719186496295, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 2, + "negatives": 2812, + "auroc": 0.8778449502133713, + "auprc": 0.01066571224051539, + "brier": 0.0007120229849101565, + "calibration": { + "observed_rate": 0.0007107320540156361, + "mean_prediction": 0.0010355158088767886, + "calibration_in_the_large": 0.00032478375486115246, + "expected_calibration_error_10bin": 0.00032478375486115246, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 3, + "negatives": 2811, + "auroc": 0.8873473259812641, + "auprc": 0.010204667067412165, + "brier": 0.0010658145215449864, + "calibration": { + "observed_rate": 0.0010660980810234541, + "mean_prediction": 0.0011104572126022262, + "calibration_in_the_large": 4.4359131578772075e-05, + "expected_calibration_error_10bin": 4.4359131578772075e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 3, + "negatives": 2811, + "auroc": 0.8891260524131389, + "auprc": 0.0106656982900376, + "brier": 0.0010664383997067953, + "calibration": { + "observed_rate": 0.0010660980810234541, + "mean_prediction": 0.0012005772010921353, + "calibration_in_the_large": 0.0001344791200686812, + "expected_calibration_error_10bin": 0.0001344791200686812, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 4, + "negatives": 2810, + "auroc": 0.7449288256227758, + "auprc": 0.008628607532014394, + "brier": 0.001422044625324665, + "calibration": { + "observed_rate": 0.0014214641080312722, + "mean_prediction": 0.0012753054229448057, + "calibration_in_the_large": -0.00014615868508646647, + "expected_calibration_error_10bin": 0.00014615868508646647, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 5, + "negatives": 2809, + "auroc": 0.6906372374510502, + "auprc": 0.007554763068783513, + "brier": 0.0017777431576370957, + "calibration": { + "observed_rate": 0.0017768301350390902, + "mean_prediction": 0.0013307206451934673, + "calibration_in_the_large": -0.0004461094898456229, + "expected_calibration_error_10bin": 0.0004461094898456229, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 5, + "negatives": 2809, + "auroc": 0.6907796368814525, + "auprc": 0.00756021450668921, + "brier": 0.0017777928132850403, + "calibration": { + "observed_rate": 0.0017768301350390902, + "mean_prediction": 0.001343757354895634, + "calibration_in_the_large": -0.0004330727801434562, + "expected_calibration_error_10bin": 0.0004330727801434562, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + } + ], + "reason": null + }, + "E22": { + "time_averaged_auroc": 0.7870307882761691, + "time_averaged_auprc": 0.0185103830262034, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2802, + "positives": 3, + "negatives": 2799, + "auroc": 0.7927831368345838, + "auprc": 0.005074889564782928, + "brier": 0.001074346689211862, + "calibration": { + "observed_rate": 0.0010706638115631692, + "mean_prediction": 0.0010451679059969741, + "calibration_in_the_large": -2.549590556619511e-05, + "expected_calibration_error_10bin": 2.549590556619511e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 3, + "negatives": 2799, + "auroc": 0.8033821602953436, + "auprc": 0.006038814314676385, + "brier": 0.001086679065138917, + "calibration": { + "observed_rate": 0.0010706638115631692, + "mean_prediction": 0.0017523773787773687, + "calibration_in_the_large": 0.0006817135672141995, + "expected_calibration_error_10bin": 0.0006817135672141995, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 4, + "negatives": 2798, + "auroc": 0.7159578270192996, + "auprc": 0.005841633555439401, + "brier": 0.0014519128989578765, + "calibration": { + "observed_rate": 0.0014275517487508922, + "mean_prediction": 0.0022259973578091182, + "calibration_in_the_large": 0.000798445609058226, + "expected_calibration_error_10bin": 0.000798445609058226, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 4, + "negatives": 2798, + "auroc": 0.724446032880629, + "auprc": 0.006051934870993916, + "brier": 0.0014584935894283045, + "calibration": { + "observed_rate": 0.0014275517487508922, + "mean_prediction": 0.0026034624416767776, + "calibration_in_the_large": 0.0011759106929258854, + "expected_calibration_error_10bin": 0.0011759106929258854, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 4, + "negatives": 2798, + "auroc": 0.7294496068620443, + "auprc": 0.006759515148595894, + "brier": 0.0014677143566240954, + "calibration": { + "observed_rate": 0.0014275517487508922, + "mean_prediction": 0.0029550386874887787, + "calibration_in_the_large": 0.0015274869387378865, + "expected_calibration_error_10bin": 0.0015274869387378862, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 6, + "negatives": 2796, + "auroc": 0.8046018121125418, + "auprc": 0.02383428787618889, + "brier": 0.002143463201278173, + "calibration": { + "observed_rate": 0.0021413276231263384, + "mean_prediction": 0.0032322773432769346, + "calibration_in_the_large": 0.0010909497201505962, + "expected_calibration_error_10bin": 0.0010909497201505964, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 7, + "negatives": 2795, + "auroc": 0.7767441860465116, + "auprc": 0.020838401762919564, + "brier": 0.0025032295601561836, + "calibration": { + "observed_rate": 0.0024982155603140615, + "mean_prediction": 0.0034443206478797605, + "calibration_in_the_large": 0.0009461050875656991, + "expected_calibration_error_10bin": 0.000946105087565699, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 9, + "negatives": 2793, + "auroc": 0.8098420654811632, + "auprc": 0.027723740123772957, + "brier": 0.0031881281529859205, + "calibration": { + "observed_rate": 0.0032119914346895075, + "mean_prediction": 0.003699850295663112, + "calibration_in_the_large": 0.00048785886097360434, + "expected_calibration_error_10bin": 0.00048785886097360413, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 9, + "negatives": 2793, + "auroc": 0.8106377053745475, + "auprc": 0.02763892029092737, + "brier": 0.003192409469041351, + "calibration": { + "observed_rate": 0.0032119914346895075, + "mean_prediction": 0.003971011042764111, + "calibration_in_the_large": 0.0007590196080746034, + "expected_calibration_error_10bin": 0.0007590196080746032, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 9, + "negatives": 2793, + "auroc": 0.8137407009587461, + "auprc": 0.028071703388940175, + "brier": 0.0032015013819724075, + "calibration": { + "observed_rate": 0.0032119914346895075, + "mean_prediction": 0.004164298879929566, + "calibration_in_the_large": 0.0009523074452400587, + "expected_calibration_error_10bin": 0.0009523074452400585, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 9, + "negatives": 2793, + "auroc": 0.8160082746548912, + "auprc": 0.02739621209582529, + "brier": 0.0032047259954458844, + "calibration": { + "observed_rate": 0.0032119914346895075, + "mean_prediction": 0.0043674945698487936, + "calibration_in_the_large": 0.001155503135159286, + "expected_calibration_error_10bin": 0.0011555031351592855, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 9, + "negatives": 2793, + "auroc": 0.8164856585909217, + "auprc": 0.027663949532247146, + "brier": 0.003208811583266112, + "calibration": { + "observed_rate": 0.0032119914346895075, + "mean_prediction": 0.0045094381252969076, + "calibration_in_the_large": 0.0012974466906074, + "expected_calibration_error_10bin": 0.0012974466906074, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 9, + "negatives": 2793, + "auroc": 0.8173210804789752, + "auprc": 0.02770097681533423, + "brier": 0.003209755668525043, + "calibration": { + "observed_rate": 0.0032119914346895075, + "mean_prediction": 0.0045678159448426185, + "calibration_in_the_large": 0.001355824510153111, + "expected_calibration_error_10bin": 0.0013558245101531114, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + } + ], + "reason": null + }, + "E27": { + "time_averaged_auroc": 0.770842764752244, + "time_averaged_auprc": 0.009959310741463358, + "valid_timepoint_cells": 10, + "timepoints": [ + { + "valid": 2811, + "positives": 0, + "negatives": 2811, + "auroc": null, + "auprc": null, + "brier": 3.170141407977603e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0003168171198403885, + "calibration_in_the_large": 0.0003168171198403885, + "expected_calibration_error_10bin": 0.0003168171198403885, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9887442842068238 + }, + { + "valid": 2811, + "positives": 0, + "negatives": 2811, + "auroc": null, + "auprc": null, + "brier": 7.392896083518516e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0004636698369010127, + "calibration_in_the_large": 0.0004636698369010127, + "expected_calibration_error_10bin": 0.0004636698369010127, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9887442842068238 + }, + { + "valid": 2811, + "positives": 0, + "negatives": 2811, + "auroc": null, + "auprc": null, + "brier": 1.2861466387427855e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0005961696883620599, + "calibration_in_the_large": 0.0005961696883620599, + "expected_calibration_error_10bin": 0.0005961696883620599, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9887442842068238 + }, + { + "valid": 2811, + "positives": 4, + "negatives": 2807, + "auroc": 0.7245279657997863, + "auprc": 0.0032388862468635087, + "brier": 0.0014223830339049235, + "calibration": { + "observed_rate": 0.001422981145499822, + "mean_prediction": 0.000687716250013667, + "calibration_in_the_large": -0.0007352648954861551, + "expected_calibration_error_10bin": 0.0007352648954861551, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9887442842068238 + }, + { + "valid": 2811, + "positives": 5, + "negatives": 2806, + "auroc": 0.7516749821810407, + "auprc": 0.004360589231216081, + "brier": 0.0017772830608621362, + "calibration": { + "observed_rate": 0.0017787264318747777, + "mean_prediction": 0.0008157700185668875, + "calibration_in_the_large": -0.0009629564133078902, + "expected_calibration_error_10bin": 0.0009629564133078902, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9887442842068238 + }, + { + "valid": 2811, + "positives": 5, + "negatives": 2806, + "auroc": 0.7538132573057733, + "auprc": 0.004394195767486805, + "brier": 0.001777384162233459, + "calibration": { + "observed_rate": 0.0017787264318747777, + "mean_prediction": 0.000918646657390063, + "calibration_in_the_large": -0.0008600797744847147, + "expected_calibration_error_10bin": 0.0008600797744847147, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9887442842068238 + }, + { + "valid": 2811, + "positives": 6, + "negatives": 2805, + "auroc": 0.7557338086749852, + "auprc": 0.005055588447456737, + "brier": 0.002132289566253841, + "calibration": { + "observed_rate": 0.0021344717182497333, + "mean_prediction": 0.0010043019805213722, + "calibration_in_the_large": -0.0011301697377283611, + "expected_calibration_error_10bin": 0.0011301697377283611, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9887442842068238 + }, + { + "valid": 2811, + "positives": 6, + "negatives": 2805, + "auroc": 0.7546048722519311, + "auprc": 0.00501951252407276, + "brier": 0.0021327748819712886, + "calibration": { + "observed_rate": 0.0021344717182497333, + "mean_prediction": 0.0010845438023622635, + "calibration_in_the_large": -0.0010499279158874698, + "expected_calibration_error_10bin": 0.0010499279158874698, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9887442842068238 + }, + { + "valid": 2811, + "positives": 7, + "negatives": 2804, + "auroc": 0.7906562054208274, + "auprc": 0.012760039224012436, + "brier": 0.002480493236770541, + "calibration": { + "observed_rate": 0.0024902170046246885, + "mean_prediction": 0.0011628744566412386, + "calibration_in_the_large": -0.0013273425479834499, + "expected_calibration_error_10bin": 0.0013273425479834499, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9887442842068238 + }, + { + "valid": 2811, + "positives": 8, + "negatives": 2803, + "auroc": 0.8074384587941491, + "auprc": 0.01661841376575507, + "brier": 0.0028332530970362653, + "calibration": { + "observed_rate": 0.002845962290999644, + "mean_prediction": 0.0012108235144819663, + "calibration_in_the_large": -0.0016351387765176778, + "expected_calibration_error_10bin": 0.0016351387765176778, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9887442842068238 + }, + { + "valid": 2811, + "positives": 8, + "negatives": 2803, + "auroc": 0.8074830538708526, + "auprc": 0.0180982520530651, + "brier": 0.0028326122875001556, + "calibration": { + "observed_rate": 0.002845962290999644, + "mean_prediction": 0.0012935010909500807, + "calibration_in_the_large": -0.0015524612000495635, + "expected_calibration_error_10bin": 0.0015524612000495635, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9887442842068238 + }, + { + "valid": 2811, + "positives": 9, + "negatives": 2802, + "auroc": 0.7812276945039258, + "auprc": 0.015023716239684614, + "brier": 0.003187856781691547, + "calibration": { + "observed_rate": 0.0032017075773745998, + "mean_prediction": 0.0014179819696749235, + "calibration_in_the_large": -0.0017837256076996763, + "expected_calibration_error_10bin": 0.0017837256076996763, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9887442842068238 + }, + { + "valid": 2811, + "positives": 9, + "negatives": 2802, + "auroc": 0.7812673487191688, + "auprc": 0.015023913915020472, + "brier": 0.0031878360579846838, + "calibration": { + "observed_rate": 0.0032017075773745998, + "mean_prediction": 0.001422235617254341, + "calibration_in_the_large": -0.0017794719601202588, + "expected_calibration_error_10bin": 0.0017794719601202588, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9887442842068238 + } + ], + "reason": null + }, + "E43": { + "time_averaged_auroc": 0.8419701643111114, + "time_averaged_auprc": 0.05515212971459204, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2748, + "positives": 14, + "negatives": 2734, + "auroc": 0.8804995297314244, + "auprc": 0.02922614445858976, + "brier": 0.005036553319469639, + "calibration": { + "observed_rate": 0.005094614264919942, + "mean_prediction": 0.0019465725430505326, + "calibration_in_the_large": -0.003148041721869409, + "expected_calibration_error_10bin": 0.003148041721869409, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9665845937390081 + }, + { + "valid": 2748, + "positives": 19, + "negatives": 2729, + "auroc": 0.8763572544406086, + "auprc": 0.044809017531610394, + "brier": 0.006768429930498453, + "calibration": { + "observed_rate": 0.006914119359534207, + "mean_prediction": 0.005044210981083635, + "calibration_in_the_large": -0.001869908378450572, + "expected_calibration_error_10bin": 0.0022990880008938804, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9665845937390081 + }, + { + "valid": 2748, + "positives": 25, + "negatives": 2723, + "auroc": 0.834241645244216, + "auprc": 0.04781281522192911, + "brier": 0.008887019950326154, + "calibration": { + "observed_rate": 0.009097525473071324, + "mean_prediction": 0.00684869687892635, + "calibration_in_the_large": -0.002248828594144974, + "expected_calibration_error_10bin": 0.0036366064557810792, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9665845937390081 + }, + { + "valid": 2748, + "positives": 29, + "negatives": 2719, + "auroc": 0.8307821080265311, + "auprc": 0.04838852682231683, + "brier": 0.010310270711861438, + "calibration": { + "observed_rate": 0.010553129548762736, + "mean_prediction": 0.00827991746588653, + "calibration_in_the_large": -0.002273212082876206, + "expected_calibration_error_10bin": 0.0035443992412237707, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9665845937390081 + }, + { + "valid": 2748, + "positives": 32, + "negatives": 2716, + "auroc": 0.8419320692194403, + "auprc": 0.058262824088290956, + "brier": 0.011302453207074533, + "calibration": { + "observed_rate": 0.011644832605531296, + "mean_prediction": 0.009524074999070705, + "calibration_in_the_large": -0.002120757606460591, + "expected_calibration_error_10bin": 0.0040194574166115184, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9665845937390081 + }, + { + "valid": 2748, + "positives": 32, + "negatives": 2716, + "auroc": 0.8415983983799705, + "auprc": 0.0575424751478823, + "brier": 0.011317662334602897, + "calibration": { + "observed_rate": 0.011644832605531296, + "mean_prediction": 0.010480173381681954, + "calibration_in_the_large": -0.001164659223849342, + "expected_calibration_error_10bin": 0.0035891081150871743, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9665845937390081 + }, + { + "valid": 2748, + "positives": 33, + "negatives": 2715, + "auroc": 0.8374462860650705, + "auprc": 0.05622205626374805, + "brier": 0.011691404453860941, + "calibration": { + "observed_rate": 0.012008733624454149, + "mean_prediction": 0.01119887520604313, + "calibration_in_the_large": -0.0008098584184110195, + "expected_calibration_error_10bin": 0.003121353704342305, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9665845937390081 + }, + { + "valid": 2748, + "positives": 34, + "negatives": 2714, + "auroc": 0.8334128050630717, + "auprc": 0.055383129727508876, + "brier": 0.012075141702069978, + "calibration": { + "observed_rate": 0.012372634643377001, + "mean_prediction": 0.011878673606059018, + "calibration_in_the_large": -0.0004939610373179831, + "expected_calibration_error_10bin": 0.0035239105015363956, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9665845937390081 + }, + { + "valid": 2748, + "positives": 36, + "negatives": 2712, + "auroc": 0.8340400688298918, + "auprc": 0.060153805386104695, + "brier": 0.01273965112292437, + "calibration": { + "observed_rate": 0.013100436681222707, + "mean_prediction": 0.012589871446270912, + "calibration_in_the_large": -0.0005105652349517951, + "expected_calibration_error_10bin": 0.0026386045603372585, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9665845937390081 + }, + { + "valid": 2748, + "positives": 37, + "negatives": 2711, + "auroc": 0.8349965605590837, + "auprc": 0.06061234683785569, + "brier": 0.013116023369607084, + "calibration": { + "observed_rate": 0.013464337700145561, + "mean_prediction": 0.013396366273877207, + "calibration_in_the_large": -6.797142626835395e-05, + "expected_calibration_error_10bin": 0.0023660356416563668, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9665845937390081 + }, + { + "valid": 2748, + "positives": 39, + "negatives": 2709, + "auroc": 0.8377109539900237, + "auprc": 0.06324053928409004, + "brier": 0.013800719442399181, + "calibration": { + "observed_rate": 0.014192139737991267, + "mean_prediction": 0.013931282849616592, + "calibration_in_the_large": -0.00026085688837467445, + "expected_calibration_error_10bin": 0.0030955586444470313, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9665845937390081 + }, + { + "valid": 2748, + "positives": 42, + "negatives": 2706, + "auroc": 0.8337116812726569, + "auprc": 0.06801930170208217, + "brier": 0.01480535864715039, + "calibration": { + "observed_rate": 0.015283842794759825, + "mean_prediction": 0.014853525195237458, + "calibration_in_the_large": -0.000430317599522367, + "expected_calibration_error_10bin": 0.0026500326318205127, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9665845937390081 + }, + { + "valid": 2748, + "positives": 43, + "negatives": 2705, + "auroc": 0.8288827752224562, + "auprc": 0.06730470381768769, + "brier": 0.015165616580240932, + "calibration": { + "observed_rate": 0.01564774381368268, + "mean_prediction": 0.014923827347703972, + "calibration_in_the_large": -0.0007239164659787068, + "expected_calibration_error_10bin": 0.0025564054607367347, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9665845937390081 + } + ], + "reason": null + }, + "E44": { + "time_averaged_auroc": 0.7454276514965645, + "time_averaged_auprc": 0.02807911613519744, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2800, + "positives": 5, + "negatives": 2795, + "auroc": 0.6674776386404293, + "auprc": 0.015480487912096483, + "brier": 0.001777340288954763, + "calibration": { + "observed_rate": 0.0017857142857142857, + "mean_prediction": 0.001206282424579724, + "calibration_in_the_large": -0.0005794318611345617, + "expected_calibration_error_10bin": 0.0005794318611345617, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + { + "valid": 2800, + "positives": 8, + "negatives": 2792, + "auroc": 0.7544770773638968, + "auprc": 0.020639687647084497, + "brier": 0.00283333752476243, + "calibration": { + "observed_rate": 0.002857142857142857, + "mean_prediction": 0.0022779043947285314, + "calibration_in_the_large": -0.0005792384624143257, + "expected_calibration_error_10bin": 0.0005792384624143257, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + { + "valid": 2800, + "positives": 11, + "negatives": 2789, + "auroc": 0.7388115649141106, + "auprc": 0.018841228309316862, + "brier": 0.0038999265619730954, + "calibration": { + "observed_rate": 0.003928571428571429, + "mean_prediction": 0.002772805020688338, + "calibration_in_the_large": -0.001155766407883091, + "expected_calibration_error_10bin": 0.001155766407883091, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + { + "valid": 2800, + "positives": 12, + "negatives": 2788, + "auroc": 0.7073469631755142, + "auprc": 0.018519328136081276, + "brier": 0.004257782976532878, + "calibration": { + "observed_rate": 0.004285714285714286, + "mean_prediction": 0.003235941017731615, + "calibration_in_the_large": -0.0010497732679826707, + "expected_calibration_error_10bin": 0.001134121402679154, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + { + "valid": 2800, + "positives": 15, + "negatives": 2785, + "auroc": 0.7509275882704967, + "auprc": 0.02267816709041996, + "brier": 0.005307133530491386, + "calibration": { + "observed_rate": 0.005357142857142857, + "mean_prediction": 0.003615772189593177, + "calibration_in_the_large": -0.0017413706675496804, + "expected_calibration_error_10bin": 0.0018384425472260902, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + { + "valid": 2800, + "positives": 15, + "negatives": 2785, + "auroc": 0.7521723518850988, + "auprc": 0.022669316630137753, + "brier": 0.005312376027108504, + "calibration": { + "observed_rate": 0.005357142857142857, + "mean_prediction": 0.003983711252015902, + "calibration_in_the_large": -0.001373431605126955, + "expected_calibration_error_10bin": 0.0014833533734346406, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + { + "valid": 2800, + "positives": 17, + "negatives": 2783, + "auroc": 0.7607321764494515, + "auprc": 0.032040144405547116, + "brier": 0.0059861063917070875, + "calibration": { + "observed_rate": 0.006071428571428571, + "mean_prediction": 0.0043043360954285554, + "calibration_in_the_large": -0.001767092476000016, + "expected_calibration_error_10bin": 0.0018847739494935924, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + { + "valid": 2800, + "positives": 19, + "negatives": 2781, + "auroc": 0.7766611782963342, + "auprc": 0.03579372332007466, + "brier": 0.006673528330963585, + "calibration": { + "observed_rate": 0.0067857142857142855, + "mean_prediction": 0.004561682112720454, + "calibration_in_the_large": -0.002224032172993832, + "expected_calibration_error_10bin": 0.0024303097935733475, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + { + "valid": 2800, + "positives": 19, + "negatives": 2781, + "auroc": 0.7765097749768164, + "auprc": 0.03724139395494521, + "brier": 0.006672225886120596, + "calibration": { + "observed_rate": 0.0067857142857142855, + "mean_prediction": 0.004775727526059979, + "calibration_in_the_large": -0.0020099867596543065, + "expected_calibration_error_10bin": 0.0023068023668188936, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + { + "valid": 2800, + "positives": 21, + "negatives": 2779, + "auroc": 0.7626415805616957, + "auprc": 0.035637075117087705, + "brier": 0.007382217036210782, + "calibration": { + "observed_rate": 0.0075, + "mean_prediction": 0.0049754006013508194, + "calibration_in_the_large": -0.0025245993986491803, + "expected_calibration_error_10bin": 0.0028415258205128726, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + { + "valid": 2800, + "positives": 23, + "negatives": 2777, + "auroc": 0.7418859889464702, + "auprc": 0.03389344676073858, + "brier": 0.008094466066957762, + "calibration": { + "observed_rate": 0.008214285714285714, + "mean_prediction": 0.005200172221274053, + "calibration_in_the_large": -0.0030141134930116607, + "expected_calibration_error_10bin": 0.0034888460644262012, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + { + "valid": 2800, + "positives": 24, + "negatives": 2776, + "auroc": 0.7504803073967339, + "auprc": 0.03582383547428483, + "brier": 0.008431284097149034, + "calibration": { + "observed_rate": 0.008571428571428572, + "mean_prediction": 0.005396410599847903, + "calibration_in_the_large": -0.003175017971580669, + "expected_calibration_error_10bin": 0.0036618913918021324, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + { + "valid": 2800, + "positives": 24, + "negatives": 2776, + "auroc": 0.7504352785782901, + "auprc": 0.035770674999751735, + "brier": 0.008431152863138348, + "calibration": { + "observed_rate": 0.008571428571428572, + "mean_prediction": 0.005436064954301401, + "calibration_in_the_large": -0.003135363617127171, + "expected_calibration_error_10bin": 0.0036244242351105116, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + } + ], + "reason": null + }, + "E46": { + "time_averaged_auroc": 0.8221620009193457, + "time_averaged_auprc": 0.12141691097323343, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2772, + "positives": 10, + "negatives": 2762, + "auroc": 0.785952208544533, + "auprc": 0.03364625017122192, + "brier": 0.0035639933081340358, + "calibration": { + "observed_rate": 0.0036075036075036075, + "mean_prediction": 0.0018990423889240027, + "calibration_in_the_large": -0.0017084612185796048, + "expected_calibration_error_10bin": 0.0017084612185796048, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9750263805838902 + }, + { + "valid": 2772, + "positives": 16, + "negatives": 2756, + "auroc": 0.8332501814223512, + "auprc": 0.14289755745592822, + "brier": 0.005553982119267744, + "calibration": { + "observed_rate": 0.005772005772005772, + "mean_prediction": 0.0034887567662790775, + "calibration_in_the_large": -0.0022832490057266945, + "expected_calibration_error_10bin": 0.0022832490057266945, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9750263805838902 + }, + { + "valid": 2772, + "positives": 23, + "negatives": 2749, + "auroc": 0.8300251474844608, + "auprc": 0.12719762676712867, + "brier": 0.00795465998732311, + "calibration": { + "observed_rate": 0.008297258297258298, + "mean_prediction": 0.00459896795309796, + "calibration_in_the_large": -0.003698290344160338, + "expected_calibration_error_10bin": 0.0036982903441603373, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9750263805838902 + }, + { + "valid": 2772, + "positives": 27, + "negatives": 2745, + "auroc": 0.829143897996357, + "auprc": 0.12701628930085862, + "brier": 0.009281867365688572, + "calibration": { + "observed_rate": 0.00974025974025974, + "mean_prediction": 0.0055411585087454555, + "calibration_in_the_large": -0.0041991012315142845, + "expected_calibration_error_10bin": 0.004199101231514285, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9750263805838902 + }, + { + "valid": 2772, + "positives": 28, + "negatives": 2744, + "auroc": 0.8327910245730945, + "auprc": 0.13589734225318498, + "brier": 0.009585890463406637, + "calibration": { + "observed_rate": 0.010101010101010102, + "mean_prediction": 0.006271346280328238, + "calibration_in_the_large": -0.003829663820681864, + "expected_calibration_error_10bin": 0.0038296638206818633, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9750263805838902 + }, + { + "valid": 2772, + "positives": 30, + "negatives": 2742, + "auroc": 0.8340262582056893, + "auprc": 0.1315842284223103, + "brier": 0.010274724252793532, + "calibration": { + "observed_rate": 0.010822510822510822, + "mean_prediction": 0.006587953716610718, + "calibration_in_the_large": -0.004234557105900104, + "expected_calibration_error_10bin": 0.0042345571059001046, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9750263805838902 + }, + { + "valid": 2772, + "positives": 33, + "negatives": 2739, + "auroc": 0.8303959640213747, + "auprc": 0.12467536203738325, + "brier": 0.011313801135002266, + "calibration": { + "observed_rate": 0.011904761904761904, + "mean_prediction": 0.007090564489362444, + "calibration_in_the_large": -0.00481419741539946, + "expected_calibration_error_10bin": 0.00481419741539946, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9750263805838902 + }, + { + "valid": 2772, + "positives": 33, + "negatives": 2739, + "auroc": 0.8290130217841061, + "auprc": 0.12411776198775877, + "brier": 0.011302627515248945, + "calibration": { + "observed_rate": 0.011904761904761904, + "mean_prediction": 0.007638790380759565, + "calibration_in_the_large": -0.004265971524002339, + "expected_calibration_error_10bin": 0.00426597152400234, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9750263805838902 + }, + { + "valid": 2772, + "positives": 35, + "negatives": 2737, + "auroc": 0.8330184247612088, + "auprc": 0.13443642174248827, + "brier": 0.011944143678936914, + "calibration": { + "observed_rate": 0.012626262626262626, + "mean_prediction": 0.00802345083988471, + "calibration_in_the_large": -0.004602811786377916, + "expected_calibration_error_10bin": 0.004866574310968608, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9750263805838902 + }, + { + "valid": 2772, + "positives": 37, + "negatives": 2735, + "auroc": 0.8290132911705124, + "auprc": 0.1302655374302272, + "brier": 0.01262966209453315, + "calibration": { + "observed_rate": 0.013347763347763348, + "mean_prediction": 0.00858187236895123, + "calibration_in_the_large": -0.004765890978812118, + "expected_calibration_error_10bin": 0.00528935433269233, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9750263805838902 + }, + { + "valid": 2772, + "positives": 39, + "negatives": 2733, + "auroc": 0.8171071519040783, + "auprc": 0.12485888769714144, + "brier": 0.013337404455371755, + "calibration": { + "observed_rate": 0.01406926406926407, + "mean_prediction": 0.009045938278392252, + "calibration_in_the_large": -0.005023325790871818, + "expected_calibration_error_10bin": 0.005900328864779164, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9750263805838902 + }, + { + "valid": 2772, + "positives": 42, + "negatives": 2730, + "auroc": 0.8021978021978022, + "auprc": 0.12093119242392786, + "brier": 0.014387133361549188, + "calibration": { + "observed_rate": 0.015151515151515152, + "mean_prediction": 0.009626642899965406, + "calibration_in_the_large": -0.005524872251549746, + "expected_calibration_error_10bin": 0.006923190573739706, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9750263805838902 + }, + { + "valid": 2772, + "positives": 42, + "negatives": 2730, + "auroc": 0.8021716378859236, + "auprc": 0.12089538496247496, + "brier": 0.014386706177733407, + "calibration": { + "observed_rate": 0.015151515151515152, + "mean_prediction": 0.009683600548982355, + "calibration_in_the_large": -0.005467914602532797, + "expected_calibration_error_10bin": 0.006880071840621614, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9750263805838902 + } + ], + "reason": null + }, + "E53": { + "time_averaged_auroc": 0.6356100484942586, + "time_averaged_auprc": 0.003996876671059247, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2804, + "positives": 1, + "negatives": 2803, + "auroc": 0.5155190866928291, + "auprc": 0.0007358351729212656, + "brier": 0.0003572033933646124, + "calibration": { + "observed_rate": 0.0003566333808844508, + "mean_prediction": 0.0003717490674057052, + "calibration_in_the_large": 1.5115686521254403e-05, + "expected_calibration_error_10bin": 1.5115686521254403e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 2, + "negatives": 2802, + "auroc": 0.7162740899357601, + "auprc": 0.002582967631970692, + "brier": 0.0007135808613898707, + "calibration": { + "observed_rate": 0.0007132667617689016, + "mean_prediction": 0.0006019886718467043, + "calibration_in_the_large": -0.00011127808992219732, + "expected_calibration_error_10bin": 0.00011127808992219732, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 3, + "negatives": 2801, + "auroc": 0.6038319647744853, + "auprc": 0.0023077497968025987, + "brier": 0.0010711777037102394, + "calibration": { + "observed_rate": 0.0010699001426533524, + "mean_prediction": 0.0008740918414431362, + "calibration_in_the_large": -0.00019580830121021617, + "expected_calibration_error_10bin": 0.00019580830121021617, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 4, + "negatives": 2800, + "auroc": 0.6897321428571429, + "auprc": 0.0040399557826457395, + "brier": 0.001426308472224224, + "calibration": { + "observed_rate": 0.0014265335235378032, + "mean_prediction": 0.0009981515820589048, + "calibration_in_the_large": -0.00042838194147889835, + "expected_calibration_error_10bin": 0.00042838194147889835, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 4, + "negatives": 2800, + "auroc": 0.6947321428571429, + "auprc": 0.004037190825668175, + "brier": 0.0014266229540073692, + "calibration": { + "observed_rate": 0.0014265335235378032, + "mean_prediction": 0.001101718688251312, + "calibration_in_the_large": -0.0003248148352864911, + "expected_calibration_error_10bin": 0.0003248148352864911, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 4, + "negatives": 2800, + "auroc": 0.6966964285714285, + "auprc": 0.003937095844602141, + "brier": 0.001427223485879335, + "calibration": { + "observed_rate": 0.0014265335235378032, + "mean_prediction": 0.0012349553002127826, + "calibration_in_the_large": -0.00019157822332502056, + "expected_calibration_error_10bin": 0.00019157822332502056, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 6, + "negatives": 2798, + "auroc": 0.5823802716225875, + "auprc": 0.0036244869272534634, + "brier": 0.002141696529494858, + "calibration": { + "observed_rate": 0.0021398002853067048, + "mean_prediction": 0.0014471147569385175, + "calibration_in_the_large": -0.0006926855283681873, + "expected_calibration_error_10bin": 0.0006926855283681873, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 6, + "negatives": 2798, + "auroc": 0.5831546342625685, + "auprc": 0.0035736187357399787, + "brier": 0.002142357091552768, + "calibration": { + "observed_rate": 0.0021398002853067048, + "mean_prediction": 0.0015590180685129077, + "calibration_in_the_large": -0.0005807822167937971, + "expected_calibration_error_10bin": 0.0005807822167937971, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 7, + "negatives": 2797, + "auroc": 0.607947290464273, + "auprc": 0.004050391694463482, + "brier": 0.002498953281505402, + "calibration": { + "observed_rate": 0.0024964336661911554, + "mean_prediction": 0.0017581408439174813, + "calibration_in_the_large": -0.000738292822273674, + "expected_calibration_error_10bin": 0.000738292822273674, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 7, + "negatives": 2797, + "auroc": 0.607181163491496, + "auprc": 0.004040191178039145, + "brier": 0.002500246141933898, + "calibration": { + "observed_rate": 0.0024964336661911554, + "mean_prediction": 0.0018690492890973242, + "calibration_in_the_large": -0.0006273843770938311, + "expected_calibration_error_10bin": 0.0006273843770938311, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 9, + "negatives": 2795, + "auroc": 0.6597495527728086, + "auprc": 0.0060202244766470354, + "brier": 0.0032101352055571037, + "calibration": { + "observed_rate": 0.003209700427960057, + "mean_prediction": 0.0021591364592961197, + "calibration_in_the_large": -0.0010505639686639373, + "expected_calibration_error_10bin": 0.0010505639686639373, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 11, + "negatives": 2793, + "auroc": 0.652800833251961, + "auprc": 0.006501630556807348, + "brier": 0.003923092181747719, + "calibration": { + "observed_rate": 0.0039229671897289585, + "mean_prediction": 0.0023116320614573822, + "calibration_in_the_large": -0.0016113351282715763, + "expected_calibration_error_10bin": 0.0016113351282715763, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 11, + "negatives": 2793, + "auroc": 0.6529310288708785, + "auprc": 0.006508058100209154, + "brier": 0.003923149364297813, + "calibration": { + "observed_rate": 0.0039229671897289585, + "mean_prediction": 0.0023182361875922182, + "calibration_in_the_large": -0.0016047310021367403, + "expected_calibration_error_10bin": 0.0016047310021367403, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + } + ], + "reason": null + }, + "E55": { + "time_averaged_auroc": 0.6034087482357245, + "time_averaged_auprc": 0.014340714300498795, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2737, + "positives": 9, + "negatives": 2728, + "auroc": 0.5818670576735093, + "auprc": 0.0060936054176014, + "brier": 0.0032828787099616463, + "calibration": { + "observed_rate": 0.003288271830471319, + "mean_prediction": 0.0012513847196051182, + "calibration_in_the_large": -0.002036887110866201, + "expected_calibration_error_10bin": 0.002036887110866201, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9627154414351038 + }, + { + "valid": 2737, + "positives": 11, + "negatives": 2726, + "auroc": 0.5674981658107117, + "auprc": 0.007157793633409978, + "brier": 0.00401101016034218, + "calibration": { + "observed_rate": 0.00401899890390939, + "mean_prediction": 0.002309864531488933, + "calibration_in_the_large": -0.001709134372420457, + "expected_calibration_error_10bin": 0.001709134372420457, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9627154414351038 + }, + { + "valid": 2737, + "positives": 11, + "negatives": 2726, + "auroc": 0.5715000333488961, + "auprc": 0.007231890849114988, + "brier": 0.0040140501596279375, + "calibration": { + "observed_rate": 0.00401899890390939, + "mean_prediction": 0.003118230780531264, + "calibration_in_the_large": -0.0009007681233781264, + "expected_calibration_error_10bin": 0.0009007681233781264, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9627154414351038 + }, + { + "valid": 2737, + "positives": 14, + "negatives": 2723, + "auroc": 0.5919154294108389, + "auprc": 0.0085607802191873, + "brier": 0.005105671942248857, + "calibration": { + "observed_rate": 0.005115089514066497, + "mean_prediction": 0.0034476819896565565, + "calibration_in_the_large": -0.00166740752440994, + "expected_calibration_error_10bin": 0.00166740752440994, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9627154414351038 + }, + { + "valid": 2737, + "positives": 19, + "negatives": 2718, + "auroc": 0.5812323302738082, + "auprc": 0.011141842788736348, + "brier": 0.006918890622703469, + "calibration": { + "observed_rate": 0.006941907197661673, + "mean_prediction": 0.003996903538298103, + "calibration_in_the_large": -0.0029450036593635705, + "expected_calibration_error_10bin": 0.0029450036593635705, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9627154414351038 + }, + { + "valid": 2737, + "positives": 21, + "negatives": 2716, + "auroc": 0.5882951118591767, + "auprc": 0.01171542652290697, + "brier": 0.007648395278377901, + "calibration": { + "observed_rate": 0.0076726342710997444, + "mean_prediction": 0.0044116811587104005, + "calibration_in_the_large": -0.003260953112389344, + "expected_calibration_error_10bin": 0.003260953112389344, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9627154414351038 + }, + { + "valid": 2737, + "positives": 25, + "negatives": 2712, + "auroc": 0.6036135693215339, + "auprc": 0.01603762851896231, + "brier": 0.009075441240731522, + "calibration": { + "observed_rate": 0.009134088417975887, + "mean_prediction": 0.005005013241746847, + "calibration_in_the_large": -0.0041290751762290395, + "expected_calibration_error_10bin": 0.0041290751762290395, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9627154414351038 + }, + { + "valid": 2737, + "positives": 25, + "negatives": 2712, + "auroc": 0.6053244837758112, + "auprc": 0.01618196222396265, + "brier": 0.00907562922153872, + "calibration": { + "observed_rate": 0.009134088417975887, + "mean_prediction": 0.005466115019766693, + "calibration_in_the_large": -0.0036679733982091936, + "expected_calibration_error_10bin": 0.0037421400707360023, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9627154414351038 + }, + { + "valid": 2737, + "positives": 26, + "negatives": 2711, + "auroc": 0.6210453139630565, + "auprc": 0.018178678840052115, + "brier": 0.009423779737064618, + "calibration": { + "observed_rate": 0.009499451954694921, + "mean_prediction": 0.005913638153694778, + "calibration_in_the_large": -0.003585813801000143, + "expected_calibration_error_10bin": 0.0036659015699750464, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9627154414351038 + }, + { + "valid": 2737, + "positives": 27, + "negatives": 2710, + "auroc": 0.6296706300396337, + "auprc": 0.018922643192791237, + "brier": 0.009782729208380013, + "calibration": { + "observed_rate": 0.009864815491413957, + "mean_prediction": 0.0063317820073282675, + "calibration_in_the_large": -0.0035330334840856896, + "expected_calibration_error_10bin": 0.003617974017371767, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9627154414351038 + }, + { + "valid": 2737, + "positives": 29, + "negatives": 2708, + "auroc": 0.6422604798044109, + "auprc": 0.021992297792737717, + "brier": 0.010484919389080262, + "calibration": { + "observed_rate": 0.010595542564852027, + "mean_prediction": 0.006711635784250111, + "calibration_in_the_large": -0.0038839067806019168, + "expected_calibration_error_10bin": 0.003973433773705696, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9627154414351038 + }, + { + "valid": 2737, + "positives": 30, + "negatives": 2707, + "auroc": 0.6299839921191971, + "auprc": 0.021607038703825302, + "brier": 0.010847989264533332, + "calibration": { + "observed_rate": 0.010960906101571063, + "mean_prediction": 0.007199475708986103, + "calibration_in_the_large": -0.0037614303925849607, + "expected_calibration_error_10bin": 0.003927240344321193, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9627154414351038 + }, + { + "valid": 2737, + "positives": 30, + "negatives": 2707, + "auroc": 0.6301071296638345, + "auprc": 0.021607697203195983, + "brier": 0.010848086724241628, + "calibration": { + "observed_rate": 0.010960906101571063, + "mean_prediction": 0.007264666452594792, + "calibration_in_the_large": -0.0036962396489762716, + "expected_calibration_error_10bin": 0.0038630940485256523, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9627154414351038 + } + ], + "reason": null + }, + "E66": { + "time_averaged_auroc": 0.7650693015072784, + "time_averaged_auprc": 0.05040368017462287, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2371, + "positives": 9, + "negatives": 2362, + "auroc": 0.703405776648791, + "auprc": 0.008937720129912886, + "brier": 0.003787005565315511, + "calibration": { + "observed_rate": 0.003795866722901729, + "mean_prediction": 0.0028670511858259694, + "calibration_in_the_large": -0.0009288155370757597, + "expected_calibration_error_10bin": 0.0009288155370757597, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8339781920506507 + }, + { + "valid": 2371, + "positives": 16, + "negatives": 2355, + "auroc": 0.7628450106157113, + "auprc": 0.02226086988452205, + "brier": 0.006680439453915116, + "calibration": { + "observed_rate": 0.006748207507380852, + "mean_prediction": 0.004709589007328344, + "calibration_in_the_large": -0.002038618500052508, + "expected_calibration_error_10bin": 0.002038618500052508, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8339781920506507 + }, + { + "valid": 2371, + "positives": 21, + "negatives": 2350, + "auroc": 0.7665248226950354, + "auprc": 0.028340890462525022, + "brier": 0.008740698508693606, + "calibration": { + "observed_rate": 0.008857022353437369, + "mean_prediction": 0.0059067164944466765, + "calibration_in_the_large": -0.0029503058589906922, + "expected_calibration_error_10bin": 0.0030383055180056673, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8339781920506507 + }, + { + "valid": 2371, + "positives": 27, + "negatives": 2344, + "auroc": 0.7525755277461762, + "auprc": 0.03455404982090705, + "brier": 0.011201050010136234, + "calibration": { + "observed_rate": 0.011387600168705188, + "mean_prediction": 0.006788711753340563, + "calibration_in_the_large": -0.004598888415364625, + "expected_calibration_error_10bin": 0.0047947506041804925, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8339781920506507 + }, + { + "valid": 2371, + "positives": 27, + "negatives": 2344, + "auroc": 0.7535393755530274, + "auprc": 0.03522380727760764, + "brier": 0.011192029804899346, + "calibration": { + "observed_rate": 0.011387600168705188, + "mean_prediction": 0.00773655726508175, + "calibration_in_the_large": -0.0036510429036234384, + "expected_calibration_error_10bin": 0.0041662938978765775, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8339781920506507 + }, + { + "valid": 2371, + "positives": 29, + "negatives": 2342, + "auroc": 0.7721075414470391, + "auprc": 0.048223246021357184, + "brier": 0.011932825956975394, + "calibration": { + "observed_rate": 0.012231126107127795, + "mean_prediction": 0.008559766009036343, + "calibration_in_the_large": -0.003671360098091452, + "expected_calibration_error_10bin": 0.004333158563800905, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8339781920506507 + }, + { + "valid": 2371, + "positives": 32, + "negatives": 2339, + "auroc": 0.7902816374519025, + "auprc": 0.06035050673442161, + "brier": 0.013086926910128206, + "calibration": { + "observed_rate": 0.013496415014761703, + "mean_prediction": 0.009304196111839627, + "calibration_in_the_large": -0.004192218902922077, + "expected_calibration_error_10bin": 0.0053024954676955316, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8339781920506507 + }, + { + "valid": 2371, + "positives": 34, + "negatives": 2337, + "auroc": 0.8016939766920889, + "auprc": 0.06932205457667825, + "brier": 0.013849346581889882, + "calibration": { + "observed_rate": 0.01433994095318431, + "mean_prediction": 0.009778326199507244, + "calibration_in_the_large": -0.0045616147536770655, + "expected_calibration_error_10bin": 0.005196239861544027, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8339781920506507 + }, + { + "valid": 2371, + "positives": 36, + "negatives": 2335, + "auroc": 0.7795146324054247, + "auprc": 0.06801441748161191, + "brier": 0.01467368103924837, + "calibration": { + "observed_rate": 0.015183466891606916, + "mean_prediction": 0.010547379365016854, + "calibration_in_the_large": -0.004636087526590062, + "expected_calibration_error_10bin": 0.005504194177926381, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8339781920506507 + }, + { + "valid": 2371, + "positives": 39, + "negatives": 2332, + "auroc": 0.7718916303821964, + "auprc": 0.06772951714219268, + "brier": 0.015891168563993023, + "calibration": { + "observed_rate": 0.016448755799240825, + "mean_prediction": 0.011293643945494203, + "calibration_in_the_large": -0.005155111853746622, + "expected_calibration_error_10bin": 0.005713198765466569, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8339781920506507 + }, + { + "valid": 2371, + "positives": 42, + "negatives": 2329, + "auroc": 0.7639493753705862, + "auprc": 0.07083020578120738, + "brier": 0.017087937541936056, + "calibration": { + "observed_rate": 0.017714044706874738, + "mean_prediction": 0.012112264584144833, + "calibration_in_the_large": -0.005601780122729905, + "expected_calibration_error_10bin": 0.006414232237952106, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8339781920506507 + }, + { + "valid": 2371, + "positives": 42, + "negatives": 2329, + "auroc": 0.7636835756200291, + "auprc": 0.07070940168059724, + "brier": 0.01707458230244352, + "calibration": { + "observed_rate": 0.017714044706874738, + "mean_prediction": 0.012811643918540182, + "calibration_in_the_large": -0.004902400788334555, + "expected_calibration_error_10bin": 0.005864402352514486, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8339781920506507 + }, + { + "valid": 2371, + "positives": 42, + "negatives": 2329, + "auroc": 0.7638880369666115, + "auprc": 0.07075115527655651, + "brier": 0.017073181165145373, + "calibration": { + "observed_rate": 0.017714044706874738, + "mean_prediction": 0.012917363551839674, + "calibration_in_the_large": -0.0047966811550350635, + "expected_calibration_error_10bin": 0.005867392767485089, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8339781920506507 + } + ], + "reason": null + }, + "E78": { + "time_averaged_auroc": 0.7043093188785238, + "time_averaged_auprc": 0.08867951984745141, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 1572, + "positives": 13, + "negatives": 1559, + "auroc": 0.6667982434499432, + "auprc": 0.025250245543354585, + "brier": 0.008189154645998623, + "calibration": { + "observed_rate": 0.00826972010178117, + "mean_prediction": 0.005913782267435328, + "calibration_in_the_large": -0.002355937834345842, + "expected_calibration_error_10bin": 0.002355937834345842, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5529370383397819 + }, + { + "valid": 1572, + "positives": 19, + "negatives": 1553, + "auroc": 0.6692988104517572, + "auprc": 0.03416696562760892, + "brier": 0.011960452947915761, + "calibration": { + "observed_rate": 0.012086513994910942, + "mean_prediction": 0.010358202565816604, + "calibration_in_the_large": -0.001728311429094338, + "expected_calibration_error_10bin": 0.0017283114290943362, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5529370383397819 + }, + { + "valid": 1572, + "positives": 26, + "negatives": 1546, + "auroc": 0.6958403821275749, + "auprc": 0.04866147291396618, + "brier": 0.016184095839388624, + "calibration": { + "observed_rate": 0.01653944020356234, + "mean_prediction": 0.01315591685854583, + "calibration_in_the_large": -0.0033835233450165095, + "expected_calibration_error_10bin": 0.0036140130560590902, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5529370383397819 + }, + { + "valid": 1572, + "positives": 30, + "negatives": 1542, + "auroc": 0.6874621703415478, + "auprc": 0.06088488558559375, + "brier": 0.018589727164850495, + "calibration": { + "observed_rate": 0.019083969465648856, + "mean_prediction": 0.016013539811659518, + "calibration_in_the_large": -0.003070429653989338, + "expected_calibration_error_10bin": 0.003070429653989336, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5529370383397819 + }, + { + "valid": 1572, + "positives": 31, + "negatives": 1541, + "auroc": 0.7003621443972284, + "auprc": 0.0649039190428618, + "brier": 0.019189843124675844, + "calibration": { + "observed_rate": 0.019720101781170483, + "mean_prediction": 0.019028817240374134, + "calibration_in_the_large": -0.000691284540796349, + "expected_calibration_error_10bin": 0.00212207653071311, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5529370383397819 + }, + { + "valid": 1572, + "positives": 31, + "negatives": 1541, + "auroc": 0.7001528123757091, + "auprc": 0.06718424561160141, + "brier": 0.019274942520813035, + "calibration": { + "observed_rate": 0.019720101781170483, + "mean_prediction": 0.02100987843951972, + "calibration_in_the_large": 0.0012897766583492357, + "expected_calibration_error_10bin": 0.0023727592576503857, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5529370383397819 + }, + { + "valid": 1572, + "positives": 35, + "negatives": 1537, + "auroc": 0.7053071846825913, + "auprc": 0.10986752390516133, + "brier": 0.021448265236176097, + "calibration": { + "observed_rate": 0.022264631043257, + "mean_prediction": 0.02228357999249875, + "calibration_in_the_large": 1.8948949241752444e-05, + "expected_calibration_error_10bin": 0.0037547336569633263, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5529370383397819 + }, + { + "valid": 1572, + "positives": 38, + "negatives": 1534, + "auroc": 0.7177314211212517, + "auprc": 0.10897416460450329, + "brier": 0.023215848574323884, + "calibration": { + "observed_rate": 0.024173027989821884, + "mean_prediction": 0.024293029590759546, + "calibration_in_the_large": 0.00012000160093766227, + "expected_calibration_error_10bin": 0.0060410347528197, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5529370383397819 + }, + { + "valid": 1572, + "positives": 39, + "negatives": 1533, + "auroc": 0.7120611504173148, + "auprc": 0.10827958496143711, + "brier": 0.023904556056419408, + "calibration": { + "observed_rate": 0.02480916030534351, + "mean_prediction": 0.026324247094345932, + "calibration_in_the_large": 0.0015150867890024212, + "expected_calibration_error_10bin": 0.007345000863543734, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5529370383397819 + }, + { + "valid": 1572, + "positives": 47, + "negatives": 1525, + "auroc": 0.7235298221137078, + "auprc": 0.13242698000906078, + "brier": 0.028086882180772117, + "calibration": { + "observed_rate": 0.02989821882951654, + "mean_prediction": 0.027583194415365837, + "calibration_in_the_large": -0.002315024414150702, + "expected_calibration_error_10bin": 0.010167887555370132, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5529370383397819 + }, + { + "valid": 1572, + "positives": 50, + "negatives": 1522, + "auroc": 0.7260972404730618, + "auprc": 0.13037160534081582, + "brier": 0.029877464387015638, + "calibration": { + "observed_rate": 0.031806615776081425, + "mean_prediction": 0.029842577659954943, + "calibration_in_the_large": -0.0019640381161264812, + "expected_calibration_error_10bin": 0.012161980467465906, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5529370383397819 + }, + { + "valid": 1572, + "positives": 50, + "negatives": 1522, + "auroc": 0.7257161629434954, + "auprc": 0.13090334852996457, + "brier": 0.029912449679951783, + "calibration": { + "observed_rate": 0.031806615776081425, + "mean_prediction": 0.031094615058718682, + "calibration_in_the_large": -0.000712000717362743, + "expected_calibration_error_10bin": 0.012361857274508118, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5529370383397819 + }, + { + "valid": 1572, + "positives": 50, + "negatives": 1522, + "auroc": 0.7256636005256242, + "auprc": 0.13095881634093892, + "brier": 0.02992288889359574, + "calibration": { + "observed_rate": 0.031806615776081425, + "mean_prediction": 0.031306034611563525, + "calibration_in_the_large": -0.0005005811645178992, + "expected_calibration_error_10bin": 0.012392142272223164, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5529370383397819 + } + ], + "reason": null + }, + "E80": { + "time_averaged_auroc": 0.9003844176753819, + "time_averaged_auprc": 0.01589899582276437, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2823, + "positives": 2, + "negatives": 2821, + "auroc": 0.9388514711095356, + "auprc": 0.008427714856762159, + "brier": 0.0007082206312708371, + "calibration": { + "observed_rate": 0.0007084661707403471, + "mean_prediction": 0.0003248632934792954, + "calibration_in_the_large": -0.00038360287726105176, + "expected_calibration_error_10bin": 0.00038360287726105176, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 3, + "negatives": 2820, + "auroc": 0.9460992907801419, + "auprc": 0.012521669428879908, + "brier": 0.0010608231091279875, + "calibration": { + "observed_rate": 0.0010626992561105207, + "mean_prediction": 0.0005061930829997327, + "calibration_in_the_large": -0.000556506173110788, + "expected_calibration_error_10bin": 0.000556506173110788, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 4, + "negatives": 2819, + "auroc": 0.9513125221709826, + "auprc": 0.017109434109076175, + "brier": 0.0014122272415380297, + "calibration": { + "observed_rate": 0.0014169323414806943, + "mean_prediction": 0.0006582655485649848, + "calibration_in_the_large": -0.0007586667929157095, + "expected_calibration_error_10bin": 0.0007586667929157095, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 4, + "negatives": 2819, + "auroc": 0.9503369989357928, + "auprc": 0.016815060497324938, + "brier": 0.001412260848340561, + "calibration": { + "observed_rate": 0.0014169323414806943, + "mean_prediction": 0.0007807227030529717, + "calibration_in_the_large": -0.0006362096384277226, + "expected_calibration_error_10bin": 0.0006362096384277226, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 4, + "negatives": 2819, + "auroc": 0.9529975168499468, + "auprc": 0.017762954337526955, + "brier": 0.0014117672787719879, + "calibration": { + "observed_rate": 0.0014169323414806943, + "mean_prediction": 0.0008733741545537247, + "calibration_in_the_large": -0.0005435581869269695, + "expected_calibration_error_10bin": 0.0005435581869269695, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 4, + "negatives": 2819, + "auroc": 0.9555693508336289, + "auprc": 0.018715015152274094, + "brier": 0.0014113927037757174, + "calibration": { + "observed_rate": 0.0014169323414806943, + "mean_prediction": 0.0009655798984849066, + "calibration_in_the_large": -0.00045135244299578765, + "expected_calibration_error_10bin": 0.00045135244299578765, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.9084132055378061, + "auprc": 0.0163662946889914, + "brier": 0.0021185171160840706, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0010735901250134865, + "calibration_in_the_large": -0.0010518083872075549, + "expected_calibration_error_10bin": 0.0010518083872075549, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.9071707490237841, + "auprc": 0.015918284722442597, + "brier": 0.002120953194547045, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0012070343166550891, + "calibration_in_the_large": -0.0009183641955659522, + "expected_calibration_error_10bin": 0.0009183641955659522, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.9065199384688203, + "auprc": 0.015863038222952014, + "brier": 0.0021218672547353174, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0013076602662341116, + "calibration_in_the_large": -0.0008177382459869298, + "expected_calibration_error_10bin": 0.0008177382459869298, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 7, + "negatives": 2816, + "auroc": 0.8102171266233766, + "auprc": 0.014037031249035338, + "brier": 0.002475990289854209, + "calibration": { + "observed_rate": 0.002479631597591215, + "mean_prediction": 0.001401697602607029, + "calibration_in_the_large": -0.001077933994984186, + "expected_calibration_error_10bin": 0.001077933994984186, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 7, + "negatives": 2816, + "auroc": 0.8114346590909091, + "auprc": 0.014027996629598237, + "brier": 0.0024763403698865195, + "calibration": { + "observed_rate": 0.002479631597591215, + "mean_prediction": 0.0014751528802572941, + "calibration_in_the_large": -0.001004478717333921, + "expected_calibration_error_10bin": 0.001004478717333921, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 8, + "negatives": 2815, + "auroc": 0.8330373001776199, + "auprc": 0.0195612259005365, + "brier": 0.0028190165677390382, + "calibration": { + "observed_rate": 0.0028338646829613886, + "mean_prediction": 0.0015296840318387405, + "calibration_in_the_large": -0.001304180651122648, + "expected_calibration_error_10bin": 0.001304180651122648, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 8, + "negatives": 2815, + "auroc": 0.8330373001776199, + "auprc": 0.0195612259005365, + "brier": 0.0028190184749958707, + "calibration": { + "observed_rate": 0.0028338646829613886, + "mean_prediction": 0.0015345865812430694, + "calibration_in_the_large": -0.0012992781017183192, + "expected_calibration_error_10bin": 0.0012992781017183192, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + } + ], + "reason": null + }, + "E83": { + "time_averaged_auroc": 0.8129052394458741, + "time_averaged_auprc": 0.12830695771930098, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2653, + "positives": 14, + "negatives": 2639, + "auroc": 0.8509716884101121, + "auprc": 0.07246966727091726, + "brier": 0.0051303326198210465, + "calibration": { + "observed_rate": 0.005277044854881266, + "mean_prediction": 0.003466578709469349, + "calibration_in_the_large": -0.0018104661454119175, + "expected_calibration_error_10bin": 0.0018104661454119175, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9331691874780161 + }, + { + "valid": 2653, + "positives": 26, + "negatives": 2627, + "auroc": 0.8252174167667126, + "auprc": 0.07189373318929485, + "brier": 0.00944046021366726, + "calibration": { + "observed_rate": 0.00980022615906521, + "mean_prediction": 0.006581349925072148, + "calibration_in_the_large": -0.0032188762339930618, + "expected_calibration_error_10bin": 0.003218876233993061, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9331691874780161 + }, + { + "valid": 2653, + "positives": 40, + "negatives": 2613, + "auroc": 0.7953501722158438, + "auprc": 0.08800250253689963, + "brier": 0.014401525408588755, + "calibration": { + "observed_rate": 0.015077271013946476, + "mean_prediction": 0.009210431194802386, + "calibration_in_the_large": -0.00586683981914409, + "expected_calibration_error_10bin": 0.00586683981914409, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9331691874780161 + }, + { + "valid": 2653, + "positives": 47, + "negatives": 2606, + "auroc": 0.7952433827011316, + "auprc": 0.09448365043628068, + "brier": 0.016850626467583323, + "calibration": { + "observed_rate": 0.017715793441387108, + "mean_prediction": 0.01082895942833773, + "calibration_in_the_large": -0.006886834013049377, + "expected_calibration_error_10bin": 0.007593172312480012, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9331691874780161 + }, + { + "valid": 2653, + "positives": 53, + "negatives": 2600, + "auroc": 0.8022786647314949, + "auprc": 0.1059435082932124, + "brier": 0.018840023531198073, + "calibration": { + "observed_rate": 0.01997738409347908, + "mean_prediction": 0.012018347338099436, + "calibration_in_the_large": -0.007959036755379643, + "expected_calibration_error_10bin": 0.008689499220358556, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9331691874780161 + }, + { + "valid": 2653, + "positives": 58, + "negatives": 2595, + "auroc": 0.805614244900671, + "auprc": 0.10548027734774192, + "brier": 0.02062165277531993, + "calibration": { + "observed_rate": 0.02186204297022239, + "mean_prediction": 0.013455797264538846, + "calibration_in_the_large": -0.008406245705683544, + "expected_calibration_error_10bin": 0.010215702825390884, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9331691874780161 + }, + { + "valid": 2653, + "positives": 65, + "negatives": 2588, + "auroc": 0.8036737605516585, + "auprc": 0.12362690994720718, + "brier": 0.02284915803296155, + "calibration": { + "observed_rate": 0.024500565397663022, + "mean_prediction": 0.01446935178031005, + "calibration_in_the_large": -0.010031213617352973, + "expected_calibration_error_10bin": 0.010601538110894903, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9331691874780161 + }, + { + "valid": 2653, + "positives": 70, + "negatives": 2583, + "auroc": 0.8177700348432055, + "auprc": 0.16145327539915041, + "brier": 0.024053765841463185, + "calibration": { + "observed_rate": 0.026385224274406333, + "mean_prediction": 0.015637390506479262, + "calibration_in_the_large": -0.010747833767927071, + "expected_calibration_error_10bin": 0.011295994432700802, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9331691874780161 + }, + { + "valid": 2653, + "positives": 74, + "negatives": 2579, + "auroc": 0.8137084350733051, + "auprc": 0.1601554062004422, + "brier": 0.025427045197898606, + "calibration": { + "observed_rate": 0.02789295137580098, + "mean_prediction": 0.016415669893722347, + "calibration_in_the_large": -0.011477281482078633, + "expected_calibration_error_10bin": 0.012115431860067536, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9331691874780161 + }, + { + "valid": 2653, + "positives": 78, + "negatives": 2575, + "auroc": 0.809982574060244, + "auprc": 0.16459970681236674, + "brier": 0.026737845631641333, + "calibration": { + "observed_rate": 0.029400678477195626, + "mean_prediction": 0.017325008657818927, + "calibration_in_the_large": -0.012075669819376699, + "expected_calibration_error_10bin": 0.012751663530076833, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9331691874780161 + }, + { + "valid": 2653, + "positives": 82, + "negatives": 2571, + "auroc": 0.8150951987932948, + "auprc": 0.17356836922025412, + "brier": 0.02796515337114681, + "calibration": { + "observed_rate": 0.030908405578590276, + "mean_prediction": 0.018242549498157318, + "calibration_in_the_large": -0.012665856080432959, + "expected_calibration_error_10bin": 0.013361613527555992, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9331691874780161 + }, + { + "valid": 2653, + "positives": 86, + "negatives": 2567, + "auroc": 0.8164448591696034, + "auprc": 0.17326756669363685, + "brier": 0.02933719261961764, + "calibration": { + "observed_rate": 0.03241613267998492, + "mean_prediction": 0.019113079716681927, + "calibration_in_the_large": -0.013303052963302996, + "expected_calibration_error_10bin": 0.014893511480147515, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9331691874780161 + }, + { + "valid": 2653, + "positives": 86, + "negatives": 2567, + "auroc": 0.8164176805790851, + "auprc": 0.17304587700350804, + "brier": 0.029326691230596863, + "calibration": { + "observed_rate": 0.03241613267998492, + "mean_prediction": 0.01931429581978712, + "calibration_in_the_large": -0.013101836860197804, + "expected_calibration_error_10bin": 0.014713626863904258, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9331691874780161 + } + ], + "reason": null + }, + "E86": { + "time_averaged_auroc": 0.8044136473874894, + "time_averaged_auprc": 0.09060658294295158, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2587, + "positives": 26, + "negatives": 2561, + "auroc": 0.8523413330129457, + "auprc": 0.05102543814866126, + "brier": 0.009748665026270907, + "calibration": { + "observed_rate": 0.010050251256281407, + "mean_prediction": 0.008748527184204992, + "calibration_in_the_large": -0.001301724072076415, + "expected_calibration_error_10bin": 0.001301724072076415, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9099542736545903 + }, + { + "valid": 2587, + "positives": 38, + "negatives": 2549, + "auroc": 0.8183498172658008, + "auprc": 0.05588320921009944, + "brier": 0.014169372070113826, + "calibration": { + "observed_rate": 0.014688828759180518, + "mean_prediction": 0.014270062118319231, + "calibration_in_the_large": -0.0004187666408612869, + "expected_calibration_error_10bin": 0.0012434646679161559, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9099542736545903 + }, + { + "valid": 2587, + "positives": 42, + "negatives": 2545, + "auroc": 0.809664140705398, + "auprc": 0.06199557639286239, + "brier": 0.0156234943875055, + "calibration": { + "observed_rate": 0.01623502126014689, + "mean_prediction": 0.018102029784869026, + "calibration_in_the_large": 0.0018670085247221371, + "expected_calibration_error_10bin": 0.001867008524722138, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9099542736545903 + }, + { + "valid": 2587, + "positives": 52, + "negatives": 2535, + "auroc": 0.801198604157184, + "auprc": 0.07299328574132495, + "brier": 0.019181644702635014, + "calibration": { + "observed_rate": 0.020100502512562814, + "mean_prediction": 0.020787327918306387, + "calibration_in_the_large": 0.0006868254057435727, + "expected_calibration_error_10bin": 0.0009031849129959417, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9099542736545903 + }, + { + "valid": 2587, + "positives": 58, + "negatives": 2529, + "auroc": 0.8023206664757775, + "auprc": 0.07792622285898733, + "brier": 0.021309238717693017, + "calibration": { + "observed_rate": 0.02241979126401237, + "mean_prediction": 0.023233522371904493, + "calibration_in_the_large": 0.0008137311078921239, + "expected_calibration_error_10bin": 0.0011965251054055336, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9099542736545903 + }, + { + "valid": 2587, + "positives": 71, + "negatives": 2516, + "auroc": 0.810206229427439, + "auprc": 0.09583846315603627, + "brier": 0.025728320685354716, + "calibration": { + "observed_rate": 0.027444916892153073, + "mean_prediction": 0.025221895873273, + "calibration_in_the_large": -0.0022230210188800732, + "expected_calibration_error_10bin": 0.004159203335242494, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9099542736545903 + }, + { + "valid": 2587, + "positives": 79, + "negatives": 2508, + "auroc": 0.7976601457614115, + "auprc": 0.10185761656139357, + "brier": 0.02849291320165864, + "calibration": { + "observed_rate": 0.030537301894085815, + "mean_prediction": 0.027076425175120423, + "calibration_in_the_large": -0.0034608767189653923, + "expected_calibration_error_10bin": 0.005393080580809484, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9099542736545903 + }, + { + "valid": 2587, + "positives": 82, + "negatives": 2505, + "auroc": 0.791928338445061, + "auprc": 0.10250938971746323, + "brier": 0.029558195368181307, + "calibration": { + "observed_rate": 0.031696946269810594, + "mean_prediction": 0.028648886830627142, + "calibration_in_the_large": -0.0030480594391834523, + "expected_calibration_error_10bin": 0.004908664206453825, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9099542736545903 + }, + { + "valid": 2587, + "positives": 85, + "negatives": 2502, + "auroc": 0.7942540085578595, + "auprc": 0.10458762933741299, + "brier": 0.030588902899094807, + "calibration": { + "observed_rate": 0.032856590645535366, + "mean_prediction": 0.030121627824493853, + "calibration_in_the_large": -0.002734962821041513, + "expected_calibration_error_10bin": 0.005481626529317308, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9099542736545903 + }, + { + "valid": 2587, + "positives": 87, + "negatives": 2500, + "auroc": 0.7968551724137931, + "auprc": 0.10794269145955665, + "brier": 0.031238284720991938, + "calibration": { + "observed_rate": 0.03362968689601856, + "mean_prediction": 0.031487019730029486, + "calibration_in_the_large": -0.0021426671659890706, + "expected_calibration_error_10bin": 0.0050562520691538855, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9099542736545903 + }, + { + "valid": 2587, + "positives": 92, + "negatives": 2495, + "auroc": 0.7961096105253986, + "auprc": 0.11303299899962706, + "brier": 0.03292416311414147, + "calibration": { + "observed_rate": 0.03556242752222652, + "mean_prediction": 0.03273102817150639, + "calibration_in_the_large": -0.002831399350720132, + "expected_calibration_error_10bin": 0.00563500181864155, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9099542736545903 + }, + { + "valid": 2587, + "positives": 97, + "negatives": 2490, + "auroc": 0.7929159938723968, + "auprc": 0.1156953189886249, + "brier": 0.0346388834991399, + "calibration": { + "observed_rate": 0.03749516814843448, + "mean_prediction": 0.03392957382650767, + "calibration_in_the_large": -0.00356559432192681, + "expected_calibration_error_10bin": 0.006527050901751548, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9099542736545903 + }, + { + "valid": 2587, + "positives": 98, + "negatives": 2489, + "auroc": 0.7935733554168956, + "auprc": 0.11659773768632059, + "brier": 0.03497628712585842, + "calibration": { + "observed_rate": 0.03788171627367607, + "mean_prediction": 0.03411994077034682, + "calibration_in_the_large": -0.0037617755033292483, + "expected_calibration_error_10bin": 0.006745530441117186, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9099542736545903 + } + ], + "reason": null + }, + "E87": { + "time_averaged_auroc": 0.787819877076063, + "time_averaged_auprc": 0.1603186016616693, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2185, + "positives": 31, + "negatives": 2154, + "auroc": 0.8062868781262168, + "auprc": 0.049115968063605644, + "brier": 0.01377185061493064, + "calibration": { + "observed_rate": 0.014187643020594966, + "mean_prediction": 0.013264541498460493, + "calibration_in_the_large": -0.0009231015221344736, + "expected_calibration_error_10bin": 0.0021733728542074667, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.768554344002814 + }, + { + "valid": 2185, + "positives": 52, + "negatives": 2133, + "auroc": 0.7996501857261351, + "auprc": 0.08036798450575901, + "brier": 0.022619729905547555, + "calibration": { + "observed_rate": 0.02379862700228833, + "mean_prediction": 0.02213780776171591, + "calibration_in_the_large": -0.001660819240572417, + "expected_calibration_error_10bin": 0.003984297018908967, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.768554344002814 + }, + { + "valid": 2185, + "positives": 74, + "negatives": 2111, + "auroc": 0.7928674766666239, + "auprc": 0.12025036400541293, + "brier": 0.031363308181307725, + "calibration": { + "observed_rate": 0.033867276887871854, + "mean_prediction": 0.027439399161567863, + "calibration_in_the_large": -0.006427877726303991, + "expected_calibration_error_10bin": 0.008765723524792055, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.768554344002814 + }, + { + "valid": 2185, + "positives": 88, + "negatives": 2097, + "auroc": 0.7740874409329345, + "auprc": 0.1258824024245394, + "brier": 0.03717798451955242, + "calibration": { + "observed_rate": 0.040274599542334096, + "mean_prediction": 0.031515614021246086, + "calibration_in_the_large": -0.00875898552108801, + "expected_calibration_error_10bin": 0.013784306220701219, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.768554344002814 + }, + { + "valid": 2185, + "positives": 97, + "negatives": 2088, + "auroc": 0.7760891890824347, + "auprc": 0.13337238828631365, + "brier": 0.04073837048067715, + "calibration": { + "observed_rate": 0.044393592677345536, + "mean_prediction": 0.03504961221689333, + "calibration_in_the_large": -0.009343980460452206, + "expected_calibration_error_10bin": 0.011679955955207969, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.768554344002814 + }, + { + "valid": 2185, + "positives": 107, + "negatives": 2078, + "auroc": 0.7770366905633562, + "auprc": 0.14466539662916314, + "brier": 0.04455048051045302, + "calibration": { + "observed_rate": 0.04897025171624714, + "mean_prediction": 0.038156545937521644, + "calibration_in_the_large": -0.010813705778725494, + "expected_calibration_error_10bin": 0.014284244775175366, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.768554344002814 + }, + { + "valid": 2185, + "positives": 121, + "negatives": 2064, + "auroc": 0.7875184188609136, + "auprc": 0.1726100876187883, + "brier": 0.04934151464786037, + "calibration": { + "observed_rate": 0.05537757437070938, + "mean_prediction": 0.04067252939042169, + "calibration_in_the_large": -0.014705044980287692, + "expected_calibration_error_10bin": 0.018225936275705467, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.768554344002814 + }, + { + "valid": 2185, + "positives": 129, + "negatives": 2056, + "auroc": 0.7866369559315899, + "auprc": 0.18880215267005618, + "brier": 0.05206878269177603, + "calibration": { + "observed_rate": 0.059038901601830666, + "mean_prediction": 0.04295094134179488, + "calibration_in_the_large": -0.01608796026003579, + "expected_calibration_error_10bin": 0.021168638698466857, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.768554344002814 + }, + { + "valid": 2185, + "positives": 138, + "negatives": 2047, + "auroc": 0.7900922523594089, + "auprc": 0.1987087638009749, + "brier": 0.05527229365323055, + "calibration": { + "observed_rate": 0.06315789473684211, + "mean_prediction": 0.04490801914961629, + "calibration_in_the_large": -0.018249875587225815, + "expected_calibration_error_10bin": 0.02096760024112016, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.768554344002814 + }, + { + "valid": 2185, + "positives": 147, + "negatives": 2038, + "auroc": 0.7843290407428919, + "auprc": 0.20455637238767474, + "brier": 0.058638583244934636, + "calibration": { + "observed_rate": 0.06727688787185354, + "mean_prediction": 0.04701021287954696, + "calibration_in_the_large": -0.020266674992306583, + "expected_calibration_error_10bin": 0.022332961817785622, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.768554344002814 + }, + { + "valid": 2185, + "positives": 153, + "negatives": 2032, + "auroc": 0.7855102670989655, + "auprc": 0.21519772996365208, + "brier": 0.06052122269261194, + "calibration": { + "observed_rate": 0.0700228832951945, + "mean_prediction": 0.048986116772596414, + "calibration_in_the_large": -0.021036766522598088, + "expected_calibration_error_10bin": 0.024613455308172893, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.768554344002814 + }, + { + "valid": 2185, + "positives": 157, + "negatives": 2028, + "auroc": 0.7902925916154726, + "auprc": 0.2246458291038446, + "brier": 0.06161660256806521, + "calibration": { + "observed_rate": 0.07185354691075514, + "mean_prediction": 0.05100720119199053, + "calibration_in_the_large": -0.020846345718764613, + "expected_calibration_error_10bin": 0.022596896518058053, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.768554344002814 + }, + { + "valid": 2185, + "positives": 158, + "negatives": 2027, + "auroc": 0.7912610142818782, + "auprc": 0.22596638214191658, + "brier": 0.06194305303800415, + "calibration": { + "observed_rate": 0.07231121281464531, + "mean_prediction": 0.0512615454276103, + "calibration_in_the_large": -0.02104966738703501, + "expected_calibration_error_10bin": 0.022819370809075094, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.768554344002814 + } + ], + "reason": null + }, + "E88": { + "time_averaged_auroc": 0.7891807207925828, + "time_averaged_auprc": 0.08926778493736734, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2817, + "positives": 3, + "negatives": 2814, + "auroc": 0.9035773513385453, + "auprc": 0.05182153843842377, + "brier": 0.0010560338870184455, + "calibration": { + "observed_rate": 0.0010649627263045794, + "mean_prediction": 0.0005851504617661876, + "calibration_in_the_large": -0.0004798122645383919, + "expected_calibration_error_10bin": 0.0004798122645383919, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 3, + "negatives": 2814, + "auroc": 0.9144752428334518, + "auprc": 0.052521438558399546, + "brier": 0.0010511205788962439, + "calibration": { + "observed_rate": 0.0010649627263045794, + "mean_prediction": 0.0011368865701064917, + "calibration_in_the_large": 7.192384380191224e-05, + "expected_calibration_error_10bin": 7.192384380191224e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 8, + "negatives": 2809, + "auroc": 0.707191171235315, + "auprc": 0.09497495713850229, + "brier": 0.002769476906738695, + "calibration": { + "observed_rate": 0.0028399006034788782, + "mean_prediction": 0.0014529103357210388, + "calibration_in_the_large": -0.0013869902677578394, + "expected_calibration_error_10bin": 0.0013869902677578394, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 9, + "negatives": 2808, + "auroc": 0.7369816397594176, + "auprc": 0.09586584522048995, + "brier": 0.003094611957343477, + "calibration": { + "observed_rate": 0.003194888178913738, + "mean_prediction": 0.002008155690630262, + "calibration_in_the_large": -0.001186732488283476, + "expected_calibration_error_10bin": 0.001186732488283476, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 9, + "negatives": 2808, + "auroc": 0.7366255144032922, + "auprc": 0.09809120549897177, + "brier": 0.0030808597452946815, + "calibration": { + "observed_rate": 0.003194888178913738, + "mean_prediction": 0.002244700248060443, + "calibration_in_the_large": -0.000950187930853295, + "expected_calibration_error_10bin": 0.0011015859661373437, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 10, + "negatives": 2807, + "auroc": 0.7541859636622729, + "auprc": 0.09089908541287312, + "brier": 0.003432261746947922, + "calibration": { + "observed_rate": 0.003549875754348598, + "mean_prediction": 0.002320098421215694, + "calibration_in_the_large": -0.0012297773331329041, + "expected_calibration_error_10bin": 0.0013838104248046238, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 10, + "negatives": 2807, + "auroc": 0.7523690773067332, + "auprc": 0.0933187046479845, + "brier": 0.0034297210053687343, + "calibration": { + "observed_rate": 0.003549875754348598, + "mean_prediction": 0.0025541399232962866, + "calibration_in_the_large": -0.0009957358310523114, + "expected_calibration_error_10bin": 0.0011633329519954722, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 11, + "negatives": 2806, + "auroc": 0.7726624765113718, + "auprc": 0.0916228568603543, + "brier": 0.0037684402037381002, + "calibration": { + "observed_rate": 0.0039048633297834577, + "mean_prediction": 0.0026332316842771868, + "calibration_in_the_large": -0.001271631645506271, + "expected_calibration_error_10bin": 0.001513796758450262, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 12, + "negatives": 2805, + "auroc": 0.773321449792038, + "auprc": 0.0812393022908025, + "brier": 0.0041172453903263245, + "calibration": { + "observed_rate": 0.004259850905218318, + "mean_prediction": 0.002835093506331776, + "calibration_in_the_large": -0.0014247573988865419, + "expected_calibration_error_10bin": 0.001424757398886541, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 13, + "negatives": 2804, + "auroc": 0.7820970042796006, + "auprc": 0.0762796523915065, + "brier": 0.004465203046832688, + "calibration": { + "observed_rate": 0.004614838480653177, + "mean_prediction": 0.003065179621677686, + "calibration_in_the_large": -0.0015496588589754916, + "expected_calibration_error_10bin": 0.0015496588589754916, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 15, + "negatives": 2802, + "auroc": 0.8088032357839638, + "auprc": 0.1113295228569566, + "brier": 0.005077197537980163, + "calibration": { + "observed_rate": 0.005324813631522897, + "mean_prediction": 0.0034096370291862577, + "calibration_in_the_large": -0.001915176602336639, + "expected_calibration_error_10bin": 0.0019151766023366389, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 15, + "negatives": 2802, + "auroc": 0.8085177254342136, + "auprc": 0.11125840553875185, + "brier": 0.005073083413280319, + "calibration": { + "observed_rate": 0.005324813631522897, + "mean_prediction": 0.003570389935938175, + "calibration_in_the_large": -0.001754423695584722, + "expected_calibration_error_10bin": 0.0019015285936576358, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 15, + "negatives": 2802, + "auroc": 0.8085415179633595, + "auprc": 0.11125868933175892, + "brier": 0.005073087715360228, + "calibration": { + "observed_rate": 0.005324813631522897, + "mean_prediction": 0.0035769430710632165, + "calibration_in_the_large": -0.0017478705604596803, + "expected_calibration_error_10bin": 0.0018951361710208409, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + } + ], + "reason": null + }, + "E89": { + "time_averaged_auroc": 0.6707098755762106, + "time_averaged_auprc": 0.009087862559079972, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2780, + "positives": 3, + "negatives": 2777, + "auroc": 0.9638698835673989, + "auprc": 0.021929270568109043, + "brier": 0.0010750621781790179, + "calibration": { + "observed_rate": 0.001079136690647482, + "mean_prediction": 0.0006187355969670286, + "calibration_in_the_large": -0.0004604010936804534, + "expected_calibration_error_10bin": 0.0004604010936804534, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + { + "valid": 2780, + "positives": 4, + "negatives": 2776, + "auroc": 0.7700828530259366, + "auprc": 0.014832617063872231, + "brier": 0.0014336796780799403, + "calibration": { + "observed_rate": 0.0014388489208633094, + "mean_prediction": 0.0008865652446710025, + "calibration_in_the_large": -0.0005522836761923069, + "expected_calibration_error_10bin": 0.0005522836761923069, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + { + "valid": 2780, + "positives": 4, + "negatives": 2776, + "auroc": 0.7576548991354467, + "auprc": 0.011894081591012694, + "brier": 0.0014337109452018163, + "calibration": { + "observed_rate": 0.0014388489208633094, + "mean_prediction": 0.00106918041995237, + "calibration_in_the_large": -0.0003696685009109393, + "expected_calibration_error_10bin": 0.0003696685009109393, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + { + "valid": 2780, + "positives": 4, + "negatives": 2776, + "auroc": 0.750450288184438, + "auprc": 0.010230430028816713, + "brier": 0.001433901147051965, + "calibration": { + "observed_rate": 0.0014388489208633094, + "mean_prediction": 0.001180034334124979, + "calibration_in_the_large": -0.00025881458673833045, + "expected_calibration_error_10bin": 0.00025881458673833045, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + { + "valid": 2780, + "positives": 4, + "negatives": 2776, + "auroc": 0.7483789625360231, + "auprc": 0.009968861222235375, + "brier": 0.0014339437639622934, + "calibration": { + "observed_rate": 0.0014388489208633094, + "mean_prediction": 0.0012002593908815313, + "calibration_in_the_large": -0.00023858952998177807, + "expected_calibration_error_10bin": 0.00023858952998177807, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + { + "valid": 2780, + "positives": 5, + "negatives": 2775, + "auroc": 0.6451891891891892, + "auprc": 0.007874694512843075, + "brier": 0.0017934754459321457, + "calibration": { + "observed_rate": 0.0017985611510791368, + "mean_prediction": 0.0012893826985896503, + "calibration_in_the_large": -0.0005091784524894865, + "expected_calibration_error_10bin": 0.0005091784524894865, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + { + "valid": 2780, + "positives": 5, + "negatives": 2775, + "auroc": 0.6393513513513513, + "auprc": 0.006644859173622568, + "brier": 0.0017942637582954598, + "calibration": { + "observed_rate": 0.0017985611510791368, + "mean_prediction": 0.0014500801018192165, + "calibration_in_the_large": -0.00034848104925992024, + "expected_calibration_error_10bin": 0.00034848104925992024, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + { + "valid": 2780, + "positives": 5, + "negatives": 2775, + "auroc": 0.6371171171171172, + "auprc": 0.006453235830606248, + "brier": 0.0017944647347105146, + "calibration": { + "observed_rate": 0.0017985611510791368, + "mean_prediction": 0.0014989115942632629, + "calibration_in_the_large": -0.00029964955681587393, + "expected_calibration_error_10bin": 0.00029964955681587393, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + { + "valid": 2780, + "positives": 8, + "negatives": 2772, + "auroc": 0.5647997835497836, + "auprc": 0.005838870890687099, + "brier": 0.0028717155761396173, + "calibration": { + "observed_rate": 0.0028776978417266188, + "mean_prediction": 0.001695142377594238, + "calibration_in_the_large": -0.0011825554641323808, + "expected_calibration_error_10bin": 0.0011825554641323808, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + { + "valid": 2780, + "positives": 8, + "negatives": 2772, + "auroc": 0.5630411255411255, + "auprc": 0.0057075751640409105, + "brier": 0.0028719355410242397, + "calibration": { + "observed_rate": 0.0028776978417266188, + "mean_prediction": 0.0017316642277011407, + "calibration_in_the_large": -0.0011460336140254781, + "expected_calibration_error_10bin": 0.0011460336140254781, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + { + "valid": 2780, + "positives": 8, + "negatives": 2772, + "auroc": 0.5601551226551227, + "auprc": 0.005613413646352464, + "brier": 0.0028721542405779022, + "calibration": { + "observed_rate": 0.0028776978417266188, + "mean_prediction": 0.00187063542301553, + "calibration_in_the_large": -0.0010070624187110888, + "expected_calibration_error_10bin": 0.0010070624187110888, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + { + "valid": 2780, + "positives": 8, + "negatives": 2772, + "auroc": 0.5597943722943723, + "auprc": 0.005595662675715975, + "brier": 0.002872245987259916, + "calibration": { + "observed_rate": 0.0028776978417266188, + "mean_prediction": 0.001892285556970047, + "calibration_in_the_large": -0.0009854122847565718, + "expected_calibration_error_10bin": 0.0009854122847565718, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + { + "valid": 2780, + "positives": 8, + "negatives": 2772, + "auroc": 0.5593434343434344, + "auprc": 0.005558640900125226, + "brier": 0.0028723845142873813, + "calibration": { + "observed_rate": 0.0028776978417266188, + "mean_prediction": 0.0019090548888742488, + "calibration_in_the_large": -0.00096864295285237, + "expected_calibration_error_10bin": 0.00096864295285237, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + } + ], + "reason": null + }, + "F02": { + "time_averaged_auroc": 0.7306185901664572, + "time_averaged_auprc": 0.007643160821718199, + "valid_timepoint_cells": 12, + "timepoints": [ + { + "valid": 2802, + "positives": 0, + "negatives": 2802, + "auroc": null, + "auprc": null, + "brier": 2.323641171683994e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.000493752016902243, + "calibration_in_the_large": 0.000493752016902243, + "expected_calibration_error_10bin": 0.000493752016902243, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 1, + "negatives": 2801, + "auroc": 0.6083541592288468, + "auprc": 0.0009107468123861566, + "brier": 0.0003667442116831131, + "calibration": { + "observed_rate": 0.00035688793718772306, + "mean_prediction": 0.0009721642581094405, + "calibration_in_the_large": 0.0006152763209217175, + "expected_calibration_error_10bin": 0.0006152763209217175, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 1, + "negatives": 2801, + "auroc": 0.5840771153159586, + "auprc": 0.0008576329331046312, + "brier": 0.0003759740390542133, + "calibration": { + "observed_rate": 0.00035688793718772306, + "mean_prediction": 0.0013192796505687285, + "calibration_in_the_large": 0.0009623917133810055, + "expected_calibration_error_10bin": 0.0009623917133810055, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 1, + "negatives": 2801, + "auroc": 0.5765797929310961, + "auprc": 0.0008424599831508003, + "brier": 0.00038256133914067253, + "calibration": { + "observed_rate": 0.00035688793718772306, + "mean_prediction": 0.001517533774189854, + "calibration_in_the_large": 0.001160645837002131, + "expected_calibration_error_10bin": 0.001160645837002131, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 1, + "negatives": 2801, + "auroc": 0.5605141021063905, + "auprc": 0.0008116883116883117, + "brier": 0.0003931885032026716, + "calibration": { + "observed_rate": 0.00035688793718772306, + "mean_prediction": 0.0017845920823594441, + "calibration_in_the_large": 0.0014277041451717211, + "expected_calibration_error_10bin": 0.0014277041451717211, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 3, + "negatives": 2799, + "auroc": 0.7987376443968084, + "auprc": 0.011800839323775104, + "brier": 0.0010919612484217172, + "calibration": { + "observed_rate": 0.0010706638115631692, + "mean_prediction": 0.0019271586530286175, + "calibration_in_the_large": 0.0008564948414654483, + "expected_calibration_error_10bin": 0.0008564948414654483, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 3, + "negatives": 2799, + "auroc": 0.796236751220674, + "auprc": 0.01177919396701701, + "brier": 0.0011008437335990491, + "calibration": { + "observed_rate": 0.0010706638115631692, + "mean_prediction": 0.00213761367489769, + "calibration_in_the_large": 0.0010669498633345206, + "expected_calibration_error_10bin": 0.0010669498633345204, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 4, + "negatives": 2798, + "auroc": 0.8049499642601858, + "auprc": 0.01063262712592679, + "brier": 0.0014636768706715196, + "calibration": { + "observed_rate": 0.0014275517487508922, + "mean_prediction": 0.0023308237165522343, + "calibration_in_the_large": 0.0009032719678013421, + "expected_calibration_error_10bin": 0.0009032719678013422, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 4, + "negatives": 2798, + "auroc": 0.8060221586847749, + "auprc": 0.010629403658432244, + "brier": 0.0014705664632045673, + "calibration": { + "observed_rate": 0.0014275517487508922, + "mean_prediction": 0.0024980224886802815, + "calibration_in_the_large": 0.0010704707399293893, + "expected_calibration_error_10bin": 0.001070470739929389, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 4, + "negatives": 2798, + "auroc": 0.8078091493924232, + "auprc": 0.010844418894240131, + "brier": 0.0014813607930470522, + "calibration": { + "observed_rate": 0.0014275517487508922, + "mean_prediction": 0.0027363892110166986, + "calibration_in_the_large": 0.0013088374622658063, + "expected_calibration_error_10bin": 0.0013088374622658061, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 4, + "negatives": 2798, + "auroc": 0.8077197998570408, + "auprc": 0.010863793002241653, + "brier": 0.001493681787633347, + "calibration": { + "observed_rate": 0.0014275517487508922, + "mean_prediction": 0.0029561702132464562, + "calibration_in_the_large": 0.001528618464495564, + "expected_calibration_error_10bin": 0.001528618464495564, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 4, + "negatives": 2798, + "auroc": 0.8081665475339528, + "auprc": 0.010872210730299859, + "brier": 0.0015104734841542215, + "calibration": { + "observed_rate": 0.0014275517487508922, + "mean_prediction": 0.003238195074502497, + "calibration_in_the_large": 0.001810643325751605, + "expected_calibration_error_10bin": 0.0018106433257516047, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 4, + "negatives": 2798, + "auroc": 0.8082558970693352, + "auprc": 0.01087291511835569, + "brier": 0.0015111473790202382, + "calibration": { + "observed_rate": 0.0014275517487508922, + "mean_prediction": 0.0032523714457184535, + "calibration_in_the_large": 0.0018248196969675612, + "expected_calibration_error_10bin": 0.001824819696967561, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + } + ], + "reason": null + }, + "F03": { + "time_averaged_auroc": 0.8839456523979086, + "time_averaged_auprc": 0.03283983006904904, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2739, + "positives": 5, + "negatives": 2734, + "auroc": 0.8923189465983906, + "auprc": 0.015113057887223244, + "brier": 0.001814967865747059, + "calibration": { + "observed_rate": 0.0018254837531945967, + "mean_prediction": 0.0012028159114106408, + "calibration_in_the_large": -0.0006226678417839558, + "expected_calibration_error_10bin": 0.0006226678417839558, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + { + "valid": 2739, + "positives": 7, + "negatives": 2732, + "auroc": 0.8993934323363313, + "auprc": 0.01801680963367299, + "brier": 0.0025439655720959995, + "calibration": { + "observed_rate": 0.002555677254472435, + "mean_prediction": 0.002128507790172529, + "calibration_in_the_large": -0.00042716946429990606, + "expected_calibration_error_10bin": 0.00042716946429990606, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + { + "valid": 2739, + "positives": 10, + "negatives": 2729, + "auroc": 0.8544888237449615, + "auprc": 0.01937979745947423, + "brier": 0.0036312361974578174, + "calibration": { + "observed_rate": 0.0036509675063891934, + "mean_prediction": 0.002594255263474124, + "calibration_in_the_large": -0.0010567122429150692, + "expected_calibration_error_10bin": 0.0010567122429150692, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + { + "valid": 2739, + "positives": 11, + "negatives": 2728, + "auroc": 0.8681351639562783, + "auprc": 0.028851858690216083, + "brier": 0.003976037647311492, + "calibration": { + "observed_rate": 0.004016064257028112, + "mean_prediction": 0.0034890139288539794, + "calibration_in_the_large": -0.0005270503281741327, + "expected_calibration_error_10bin": 0.000698349665122159, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + { + "valid": 2739, + "positives": 11, + "negatives": 2728, + "auroc": 0.8684684084244202, + "auprc": 0.02922600284083644, + "brier": 0.003984055396239713, + "calibration": { + "observed_rate": 0.004016064257028112, + "mean_prediction": 0.004051973533531992, + "calibration_in_the_large": 3.590927650388032e-05, + "expected_calibration_error_10bin": 0.0002341441087480958, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + { + "valid": 2739, + "positives": 12, + "negatives": 2727, + "auroc": 0.8759320376482093, + "auprc": 0.0316399405903398, + "brier": 0.004348161691783646, + "calibration": { + "observed_rate": 0.004381161007667032, + "mean_prediction": 0.00466913521593574, + "calibration_in_the_large": 0.00028797420826870857, + "expected_calibration_error_10bin": 0.0002879742082687085, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + { + "valid": 2739, + "positives": 14, + "negatives": 2725, + "auroc": 0.887051114023591, + "auprc": 0.03721025356658693, + "brier": 0.0050516231784298055, + "calibration": { + "observed_rate": 0.00511135450894487, + "mean_prediction": 0.005100158114474166, + "calibration_in_the_large": -1.119639447070414e-05, + "expected_calibration_error_10bin": 0.0007594476005473412, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + { + "valid": 2739, + "positives": 14, + "negatives": 2725, + "auroc": 0.887129750982962, + "auprc": 0.03692009718719762, + "brier": 0.005061611878108843, + "calibration": { + "observed_rate": 0.00511135450894487, + "mean_prediction": 0.005425274217115495, + "calibration_in_the_large": 0.00031391970817062475, + "expected_calibration_error_10bin": 0.000624358232328806, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + { + "valid": 2739, + "positives": 14, + "negatives": 2725, + "auroc": 0.887051114023591, + "auprc": 0.03710647809039418, + "brier": 0.005078608645079114, + "calibration": { + "observed_rate": 0.00511135450894487, + "mean_prediction": 0.005816184221601799, + "calibration_in_the_large": 0.0007048297126569288, + "expected_calibration_error_10bin": 0.0007048297126569282, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + { + "valid": 2739, + "positives": 14, + "negatives": 2725, + "auroc": 0.8865792922673656, + "auprc": 0.03656995092748838, + "brier": 0.0050927498961553744, + "calibration": { + "observed_rate": 0.00511135450894487, + "mean_prediction": 0.006168827995090105, + "calibration_in_the_large": 0.001057473486145235, + "expected_calibration_error_10bin": 0.0010574734861452345, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + { + "valid": 2739, + "positives": 16, + "negatives": 2723, + "auroc": 0.8969427102460521, + "auprc": 0.04579631608562979, + "brier": 0.005759557367523356, + "calibration": { + "observed_rate": 0.005841548010222709, + "mean_prediction": 0.006532068866586318, + "calibration_in_the_large": 0.0006905208563636085, + "expected_calibration_error_10bin": 0.001158467071252534, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + { + "valid": 2739, + "positives": 18, + "negatives": 2721, + "auroc": 0.8938707174649843, + "auprc": 0.0455438747081825, + "brier": 0.006483354305212317, + "calibration": { + "observed_rate": 0.0065717415115005475, + "mean_prediction": 0.006862073022956927, + "calibration_in_the_large": 0.00029033151145637943, + "expected_calibration_error_10bin": 0.0016541039898250503, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + { + "valid": 2739, + "positives": 18, + "negatives": 2721, + "auroc": 0.893931969455674, + "auprc": 0.04554335323039531, + "brier": 0.006484642545813823, + "calibration": { + "observed_rate": 0.0065717415115005475, + "mean_prediction": 0.006913213395833296, + "calibration_in_the_large": 0.00034147188433274883, + "expected_calibration_error_10bin": 0.0016139359746502216, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + } + ], + "reason": null + }, + "F05": { + "time_averaged_auroc": 0.7552784180933716, + "time_averaged_auprc": 0.01841444707263541, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2750, + "positives": 1, + "negatives": 2749, + "auroc": 0.9679883594034194, + "auprc": 0.011235955056179775, + "brier": 0.000365971510067503, + "calibration": { + "observed_rate": 0.0003636363636363636, + "mean_prediction": 0.001452531150581742, + "calibration_in_the_large": 0.0010888947869453782, + "expected_calibration_error_10bin": 0.0010888947869453782, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + { + "valid": 2750, + "positives": 9, + "negatives": 2741, + "auroc": 0.744213385220317, + "auprc": 0.009354839522923533, + "brier": 0.003262838057173374, + "calibration": { + "observed_rate": 0.0032727272727272726, + "mean_prediction": 0.0025801714652010643, + "calibration_in_the_large": -0.0006925558075262083, + "expected_calibration_error_10bin": 0.0006925558075262083, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + { + "valid": 2750, + "positives": 14, + "negatives": 2736, + "auroc": 0.7210735171261488, + "auprc": 0.011321837062321066, + "brier": 0.005072357438081986, + "calibration": { + "observed_rate": 0.005090909090909091, + "mean_prediction": 0.0037433324287917042, + "calibration_in_the_large": -0.001347576662117387, + "expected_calibration_error_10bin": 0.001347576662117387, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + { + "valid": 2750, + "positives": 15, + "negatives": 2735, + "auroc": 0.722461913467398, + "auprc": 0.011544982666661168, + "brier": 0.005446165659778987, + "calibration": { + "observed_rate": 0.005454545454545455, + "mean_prediction": 0.004802085195126272, + "calibration_in_the_large": -0.0006524602594191829, + "expected_calibration_error_10bin": 0.0006524602594191829, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + { + "valid": 2750, + "positives": 16, + "negatives": 2734, + "auroc": 0.726796817849305, + "auprc": 0.012097835586507106, + "brier": 0.0058248244302157495, + "calibration": { + "observed_rate": 0.005818181818181818, + "mean_prediction": 0.005735951066368836, + "calibration_in_the_large": -8.223075181298164e-05, + "expected_calibration_error_10bin": 8.223075181298164e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + { + "valid": 2750, + "positives": 19, + "negatives": 2731, + "auroc": 0.7300391219719016, + "auprc": 0.014748518671079505, + "brier": 0.0069000185609290905, + "calibration": { + "observed_rate": 0.006909090909090909, + "mean_prediction": 0.006377753797773328, + "calibration_in_the_large": -0.0005313371113175808, + "expected_calibration_error_10bin": 0.0005313371113175808, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + { + "valid": 2750, + "positives": 20, + "negatives": 2730, + "auroc": 0.7338644688644689, + "auprc": 0.015368766459658428, + "brier": 0.007275010470986378, + "calibration": { + "observed_rate": 0.007272727272727273, + "mean_prediction": 0.007037895761362175, + "calibration_in_the_large": -0.00023483151136509742, + "expected_calibration_error_10bin": 0.00038718997287514874, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + { + "valid": 2750, + "positives": 23, + "negatives": 2727, + "auroc": 0.7351445289456482, + "auprc": 0.016962377732274485, + "brier": 0.008357295178478512, + "calibration": { + "observed_rate": 0.008363636363636363, + "mean_prediction": 0.007532688657445016, + "calibration_in_the_large": -0.000830947706191347, + "expected_calibration_error_10bin": 0.0010669382196461308, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + { + "valid": 2750, + "positives": 28, + "negatives": 2722, + "auroc": 0.7300960428256534, + "auprc": 0.022153033615424682, + "brier": 0.01010743178149933, + "calibration": { + "observed_rate": 0.010181818181818183, + "mean_prediction": 0.007993943022762654, + "calibration_in_the_large": -0.002187875159055528, + "expected_calibration_error_10bin": 0.0024322454624262626, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + { + "valid": 2750, + "positives": 29, + "negatives": 2721, + "auroc": 0.738052693609094, + "auprc": 0.02367562193918999, + "brier": 0.010452874244832709, + "calibration": { + "observed_rate": 0.010545454545454545, + "mean_prediction": 0.00819758738252147, + "calibration_in_the_large": -0.002347867162933075, + "expected_calibration_error_10bin": 0.0025959169477234594, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + { + "valid": 2750, + "positives": 31, + "negatives": 2719, + "auroc": 0.7539892512664761, + "auprc": 0.029603237621279973, + "brier": 0.011115485974934395, + "calibration": { + "observed_rate": 0.011272727272727273, + "mean_prediction": 0.0085627705838605, + "calibration_in_the_large": -0.002709956688866772, + "expected_calibration_error_10bin": 0.003198237608331922, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + { + "valid": 2750, + "positives": 32, + "negatives": 2718, + "auroc": 0.7561971118469463, + "auprc": 0.030246853557066546, + "brier": 0.011474737007008, + "calibration": { + "observed_rate": 0.011636363636363636, + "mean_prediction": 0.008971322613800443, + "calibration_in_the_large": -0.0026650410225631926, + "expected_calibration_error_10bin": 0.0032483000469665057, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + { + "valid": 2750, + "positives": 33, + "negatives": 2717, + "auroc": 0.7587022228170553, + "auprc": 0.031073952453694036, + "brier": 0.011827674241047992, + "calibration": { + "observed_rate": 0.012, + "mean_prediction": 0.009091073348280753, + "calibration_in_the_large": -0.002908926651719247, + "expected_calibration_error_10bin": 0.0035009761799712426, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + } + ], + "reason": null + }, + "F06": { + "time_averaged_auroc": 0.5680690251063741, + "time_averaged_auprc": 0.0012367828733962877, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.3424124513618677, + "auprc": 0.0005376344086021505, + "brier": 0.00035406993237537714, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.000343886320316724, + "calibration_in_the_large": -9.72046893362962e-06, + "expected_calibration_error_10bin": 9.72046893362962e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.45100813583303856, + "auprc": 0.000643915003219575, + "brier": 0.0003543470256430793, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.00047903846461270865, + "calibration_in_the_large": 0.00012543167536235503, + "expected_calibration_error_10bin": 0.00012543167536235503, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.48673505482844004, + "auprc": 0.0006887052341597796, + "brier": 0.0003559262284515188, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0008005262587772717, + "calibration_in_the_large": 0.0004469194695269181, + "expected_calibration_error_10bin": 0.0004469194695269181, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.6059801840056617, + "auprc": 0.0013393886074394136, + "brier": 0.0007094457661365501, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.0008864445113721516, + "calibration_in_the_large": 0.00017923093287144432, + "expected_calibration_error_10bin": 0.00017923093287144432, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.6109341825902336, + "auprc": 0.0014166673299004355, + "brier": 0.0007099299810572885, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.0010284633552598435, + "calibration_in_the_large": 0.0003212497767591363, + "expected_calibration_error_10bin": 0.0003212497767591363, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.6134111818825194, + "auprc": 0.0014487360385364821, + "brier": 0.0007115495188935089, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.0013139041563733373, + "calibration_in_the_large": 0.0006066905778726301, + "expected_calibration_error_10bin": 0.0006066905778726301, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.6164189667374381, + "auprc": 0.0014494363130242724, + "brier": 0.0007119442902733019, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.0013726420034913163, + "calibration_in_the_large": 0.000665428424990609, + "expected_calibration_error_10bin": 0.000665428424990609, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.6019108280254777, + "auprc": 0.0013845703555599481, + "brier": 0.0007133816306249024, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.001529799585315557, + "calibration_in_the_large": 0.0008225860068148497, + "expected_calibration_error_10bin": 0.0008225860068148497, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.6024416135881104, + "auprc": 0.001369563756133629, + "brier": 0.0007147352210346931, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.0016460289129173018, + "calibration_in_the_large": 0.0009388153344165945, + "expected_calibration_error_10bin": 0.0009388153344165945, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.6128803963198868, + "auprc": 0.0014475258965787627, + "brier": 0.0007159302173631205, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.0018085860487835855, + "calibration_in_the_large": 0.0011013724702828784, + "expected_calibration_error_10bin": 0.0011013724702828784, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.613588110403397, + "auprc": 0.0014519140989729226, + "brier": 0.000717328110440298, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.0019301002572227081, + "calibration_in_the_large": 0.0012228866787220008, + "expected_calibration_error_10bin": 0.0012228866787220008, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.613588110403397, + "auprc": 0.0014500601560121845, + "brier": 0.0007181293868352781, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.0019974333006511956, + "calibration_in_the_large": 0.0012902197221504883, + "expected_calibration_error_10bin": 0.0012902197221504883, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.613588110403397, + "auprc": 0.0014500601560121845, + "brier": 0.0007181924449787503, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.0020030757934539328, + "calibration_in_the_large": 0.0012958622149532254, + "expected_calibration_error_10bin": 0.0012958622149532254, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + } + ], + "reason": null + }, + "F10": { + "time_averaged_auroc": 0.7765862775441007, + "time_averaged_auprc": 0.1349885037156094, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2560, + "positives": 5, + "negatives": 2555, + "auroc": 0.7765166340508807, + "auprc": 0.10908595676417768, + "brier": 0.0019264095829636106, + "calibration": { + "observed_rate": 0.001953125, + "mean_prediction": 0.0009834235967613124, + "calibration_in_the_large": -0.0009697014032386876, + "expected_calibration_error_10bin": 0.0009697014032386876, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + { + "valid": 2560, + "positives": 9, + "negatives": 2551, + "auroc": 0.7840062720501764, + "auprc": 0.16928490260461068, + "brier": 0.003413398036770329, + "calibration": { + "observed_rate": 0.003515625, + "mean_prediction": 0.0015407754009984843, + "calibration_in_the_large": -0.001974849599001516, + "expected_calibration_error_10bin": 0.001974849599001516, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + { + "valid": 2560, + "positives": 9, + "negatives": 2551, + "auroc": 0.7768195478897164, + "auprc": 0.16810373189842429, + "brier": 0.0033990403045276187, + "calibration": { + "observed_rate": 0.003515625, + "mean_prediction": 0.00197930983882415, + "calibration_in_the_large": -0.00153631516117585, + "expected_calibration_error_10bin": 0.00153631516117585, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + { + "valid": 2560, + "positives": 9, + "negatives": 2551, + "auroc": 0.779781349361906, + "auprc": 0.1677574299953652, + "brier": 0.003385020630411582, + "calibration": { + "observed_rate": 0.003515625, + "mean_prediction": 0.0024912942663462443, + "calibration_in_the_large": -0.0010243307336537557, + "expected_calibration_error_10bin": 0.001024330733653756, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + { + "valid": 2560, + "positives": 9, + "negatives": 2551, + "auroc": 0.7810880264819896, + "auprc": 0.16760875104660436, + "brier": 0.0033662915837221682, + "calibration": { + "observed_rate": 0.003515625, + "mean_prediction": 0.002984975984152527, + "calibration_in_the_large": -0.0005306490158474733, + "expected_calibration_error_10bin": 0.0005306490158474731, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + { + "valid": 2560, + "positives": 10, + "negatives": 2550, + "auroc": 0.7477254901960785, + "auprc": 0.15178948318490146, + "brier": 0.0037387763804916873, + "calibration": { + "observed_rate": 0.00390625, + "mean_prediction": 0.0032430449224946757, + "calibration_in_the_large": -0.0006632050775053243, + "expected_calibration_error_10bin": 0.0006632050775053246, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + { + "valid": 2560, + "positives": 15, + "negatives": 2545, + "auroc": 0.7599738048461034, + "auprc": 0.11927420042166247, + "brier": 0.0056381854592771185, + "calibration": { + "observed_rate": 0.005859375, + "mean_prediction": 0.003475371695492413, + "calibration_in_the_large": -0.002384003304507587, + "expected_calibration_error_10bin": 0.002384003304507587, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + { + "valid": 2560, + "positives": 15, + "negatives": 2545, + "auroc": 0.7600261951538966, + "auprc": 0.11905561573388494, + "brier": 0.0056331327334380125, + "calibration": { + "observed_rate": 0.005859375, + "mean_prediction": 0.0036180591841102226, + "calibration_in_the_large": -0.0022413158158897774, + "expected_calibration_error_10bin": 0.0022413158158897774, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + { + "valid": 2560, + "positives": 16, + "negatives": 2544, + "auroc": 0.7760908018867925, + "auprc": 0.1223431553558764, + "brier": 0.005987414314279363, + "calibration": { + "observed_rate": 0.00625, + "mean_prediction": 0.0038389572452274478, + "calibration_in_the_large": -0.0024110427547725526, + "expected_calibration_error_10bin": 0.0024110427547725526, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + { + "valid": 2560, + "positives": 17, + "negatives": 2543, + "auroc": 0.7867039855659134, + "auprc": 0.11205330445473295, + "brier": 0.006368205174263178, + "calibration": { + "observed_rate": 0.006640625, + "mean_prediction": 0.004068771292944006, + "calibration_in_the_large": -0.0025718537070559934, + "expected_calibration_error_10bin": 0.0025718537070559926, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + { + "valid": 2560, + "positives": 17, + "negatives": 2543, + "auroc": 0.78869329879022, + "auprc": 0.11223699245944607, + "brier": 0.006361592236907035, + "calibration": { + "observed_rate": 0.006640625, + "mean_prediction": 0.004241417698889904, + "calibration_in_the_large": -0.0023992073011100956, + "expected_calibration_error_10bin": 0.0023992073011100947, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + { + "valid": 2560, + "positives": 17, + "negatives": 2543, + "auroc": 0.7889246142814185, + "auprc": 0.11811546642087078, + "brier": 0.006352605036202927, + "calibration": { + "observed_rate": 0.006640625, + "mean_prediction": 0.004383601272863302, + "calibration_in_the_large": -0.0022570237271366976, + "expected_calibration_error_10bin": 0.002257023727136697, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + { + "valid": 2560, + "positives": 17, + "negatives": 2543, + "auroc": 0.7892715875182161, + "auprc": 0.11814155796236496, + "brier": 0.006351782052845779, + "calibration": { + "observed_rate": 0.006640625, + "mean_prediction": 0.004414225258528859, + "calibration_in_the_large": -0.002226399741471141, + "expected_calibration_error_10bin": 0.002226399741471141, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + } + ], + "reason": null + }, + "F11": { + "time_averaged_auroc": 0.8572214201892101, + "time_averaged_auprc": 0.04389665659723521, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2741, + "positives": 4, + "negatives": 2737, + "auroc": 0.9813664596273292, + "auprc": 0.10110609401799153, + "brier": 0.0014320700334910562, + "calibration": { + "observed_rate": 0.001459321415541773, + "mean_prediction": 0.0006764076450749643, + "calibration_in_the_large": -0.0007829137704668087, + "expected_calibration_error_10bin": 0.0007829137704668087, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + { + "valid": 2741, + "positives": 6, + "negatives": 2735, + "auroc": 0.8381474710542353, + "auprc": 0.050427364676327135, + "brier": 0.0021538843987742896, + "calibration": { + "observed_rate": 0.0021889821233126595, + "mean_prediction": 0.0012503192744639654, + "calibration_in_the_large": -0.0009386628488486941, + "expected_calibration_error_10bin": 0.0009386628488486941, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + { + "valid": 2741, + "positives": 6, + "negatives": 2735, + "auroc": 0.8289457647775746, + "auprc": 0.04710273880669902, + "brier": 0.002152497801365644, + "calibration": { + "observed_rate": 0.0021889821233126595, + "mean_prediction": 0.0015351364069737376, + "calibration_in_the_large": -0.0006538457163389219, + "expected_calibration_error_10bin": 0.0006538457163389219, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + { + "valid": 2741, + "positives": 7, + "negatives": 2734, + "auroc": 0.829031246734246, + "auprc": 0.042147138492220675, + "brier": 0.0025147665777508865, + "calibration": { + "observed_rate": 0.002553812477198103, + "mean_prediction": 0.0018134909364358126, + "calibration_in_the_large": -0.0007403215407622904, + "expected_calibration_error_10bin": 0.0007403215407622904, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + { + "valid": 2741, + "positives": 8, + "negatives": 2733, + "auroc": 0.8404226125137212, + "auprc": 0.03659381123758827, + "brier": 0.002875635891665067, + "calibration": { + "observed_rate": 0.002918642831083546, + "mean_prediction": 0.0019644362933876336, + "calibration_in_the_large": -0.0009542065376959125, + "expected_calibration_error_10bin": 0.0009542065376959125, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + { + "valid": 2741, + "positives": 8, + "negatives": 2733, + "auroc": 0.8401939260885474, + "auprc": 0.0393683509424772, + "brier": 0.002874431785192188, + "calibration": { + "observed_rate": 0.002918642831083546, + "mean_prediction": 0.0022478684442538196, + "calibration_in_the_large": -0.0006707743868297265, + "expected_calibration_error_10bin": 0.0006707743868297265, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + { + "valid": 2741, + "positives": 9, + "negatives": 2732, + "auroc": 0.8462664714494875, + "auprc": 0.035971711157187815, + "brier": 0.0032361468462872313, + "calibration": { + "observed_rate": 0.003283473184968989, + "mean_prediction": 0.002406413493592308, + "calibration_in_the_large": -0.0008770596913766811, + "expected_calibration_error_10bin": 0.0008770596913766811, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + { + "valid": 2741, + "positives": 9, + "negatives": 2732, + "auroc": 0.8459411094843012, + "auprc": 0.03572177622125204, + "brier": 0.0032361726560708043, + "calibration": { + "observed_rate": 0.003283473184968989, + "mean_prediction": 0.002566627306208198, + "calibration_in_the_large": -0.0007168458787607914, + "expected_calibration_error_10bin": 0.0007904964907255636, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + { + "valid": 2741, + "positives": 9, + "negatives": 2732, + "auroc": 0.8466731739059704, + "auprc": 0.03488914545041889, + "brier": 0.003236713934400743, + "calibration": { + "observed_rate": 0.003283473184968989, + "mean_prediction": 0.0027156899316082713, + "calibration_in_the_large": -0.0005677832533607179, + "expected_calibration_error_10bin": 0.0006451020734668791, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + { + "valid": 2741, + "positives": 10, + "negatives": 2731, + "auroc": 0.8579641157085317, + "auprc": 0.03688262053818272, + "brier": 0.003592314383629308, + "calibration": { + "observed_rate": 0.0036483035388544327, + "mean_prediction": 0.002933622786364486, + "calibration_in_the_large": -0.0007146807524899467, + "expected_calibration_error_10bin": 0.0007969558586392212, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + { + "valid": 2741, + "positives": 10, + "negatives": 2731, + "auroc": 0.8589893811790553, + "auprc": 0.03688662115429908, + "brier": 0.0035920316745016207, + "calibration": { + "observed_rate": 0.0036483035388544327, + "mean_prediction": 0.0030708429383880216, + "calibration_in_the_large": -0.0005774606004664111, + "expected_calibration_error_10bin": 0.0006614434579726018, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + { + "valid": 2741, + "positives": 11, + "negatives": 2730, + "auroc": 0.8648684648684649, + "auprc": 0.03706373420958137, + "brier": 0.003951164666283196, + "calibration": { + "observed_rate": 0.004013133892739876, + "mean_prediction": 0.003168898744166025, + "calibration_in_the_large": -0.0008442351485738512, + "expected_calibration_error_10bin": 0.0009302018448033313, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + { + "valid": 2741, + "positives": 11, + "negatives": 2730, + "auroc": 0.8650682650682651, + "auprc": 0.0364954288598319, + "brier": 0.003950893778077481, + "calibration": { + "observed_rate": 0.004013133892739876, + "mean_prediction": 0.0032167748707078495, + "calibration_in_the_large": -0.0007963590220320268, + "expected_calibration_error_10bin": 0.0008829080649915634, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + } + ], + "reason": null + }, + "F12": { + "time_averaged_auroc": 0.9158514143921643, + "time_averaged_auprc": 0.02896760647978724, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2777, + "positives": 5, + "negatives": 2772, + "auroc": 0.9592352092352092, + "auprc": 0.029051830265193014, + "brier": 0.0017900670067160166, + "calibration": { + "observed_rate": 0.0018005041411595247, + "mean_prediction": 0.0005655510876848011, + "calibration_in_the_large": -0.0012349530534747236, + "expected_calibration_error_10bin": 0.0012349530534747236, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + { + "valid": 2777, + "positives": 8, + "negatives": 2769, + "auroc": 0.9332340195016251, + "auprc": 0.03169062502598015, + "brier": 0.0028629069770833445, + "calibration": { + "observed_rate": 0.0028808066258552397, + "mean_prediction": 0.0007204211387913884, + "calibration_in_the_large": -0.0021603854870638514, + "expected_calibration_error_10bin": 0.0021603854870638514, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + { + "valid": 2777, + "positives": 10, + "negatives": 2767, + "auroc": 0.9065775207806288, + "auprc": 0.026264255093639943, + "brier": 0.003579364749536018, + "calibration": { + "observed_rate": 0.0036010082823190494, + "mean_prediction": 0.0009118095466490196, + "calibration_in_the_large": -0.0026891987356700295, + "expected_calibration_error_10bin": 0.0026891987356700295, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + { + "valid": 2777, + "positives": 10, + "negatives": 2767, + "auroc": 0.9073003252620166, + "auprc": 0.02658912614089583, + "brier": 0.003576523409206183, + "calibration": { + "observed_rate": 0.0036010082823190494, + "mean_prediction": 0.001063513626144548, + "calibration_in_the_large": -0.0025374946561745014, + "expected_calibration_error_10bin": 0.0025374946561745014, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + { + "valid": 2777, + "positives": 10, + "negatives": 2767, + "auroc": 0.9155764365739067, + "auprc": 0.02919987938448456, + "brier": 0.003570007894571067, + "calibration": { + "observed_rate": 0.0036010082823190494, + "mean_prediction": 0.001279072955782962, + "calibration_in_the_large": -0.0023219353265360875, + "expected_calibration_error_10bin": 0.0023219353265360875, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + { + "valid": 2777, + "positives": 11, + "negatives": 2766, + "auroc": 0.9142181029382764, + "auprc": 0.029689854738720767, + "brier": 0.003924485784905638, + "calibration": { + "observed_rate": 0.003961109110550955, + "mean_prediction": 0.0014832097252516327, + "calibration_in_the_large": -0.002477899385299322, + "expected_calibration_error_10bin": 0.002477899385299322, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + { + "valid": 2777, + "positives": 12, + "negatives": 2765, + "auroc": 0.9108800482218203, + "auprc": 0.029267893671344594, + "brier": 0.00428097736748621, + "calibration": { + "observed_rate": 0.004321209938782859, + "mean_prediction": 0.0016133397139970348, + "calibration_in_the_large": -0.0027078702247858243, + "expected_calibration_error_10bin": 0.0027078702247858243, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + { + "valid": 2777, + "positives": 12, + "negatives": 2765, + "auroc": 0.9108499095840868, + "auprc": 0.029022380381367827, + "brier": 0.004279544267513406, + "calibration": { + "observed_rate": 0.004321209938782859, + "mean_prediction": 0.001706683770458108, + "calibration_in_the_large": -0.002614526168324751, + "expected_calibration_error_10bin": 0.002614526168324751, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + { + "valid": 2777, + "positives": 12, + "negatives": 2765, + "auroc": 0.909132007233273, + "auprc": 0.028372252992854532, + "brier": 0.0042773855625046235, + "calibration": { + "observed_rate": 0.004321209938782859, + "mean_prediction": 0.0018822435486386619, + "calibration_in_the_large": -0.002438966390144197, + "expected_calibration_error_10bin": 0.002438966390144197, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + { + "valid": 2777, + "positives": 12, + "negatives": 2765, + "auroc": 0.9094333936106088, + "auprc": 0.02849112819739874, + "brier": 0.004276409103789442, + "calibration": { + "observed_rate": 0.004321209938782859, + "mean_prediction": 0.0019608843173526684, + "calibration_in_the_large": -0.0023603256214301906, + "expected_calibration_error_10bin": 0.0023603256214301906, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + { + "valid": 2777, + "positives": 12, + "negatives": 2765, + "auroc": 0.9077456298975286, + "auprc": 0.027974345203130593, + "brier": 0.004276275951552324, + "calibration": { + "observed_rate": 0.004321209938782859, + "mean_prediction": 0.0020677553282466986, + "calibration_in_the_large": -0.0022534546105361605, + "expected_calibration_error_10bin": 0.0022534546105361605, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + { + "valid": 2777, + "positives": 13, + "negatives": 2764, + "auroc": 0.9109150617833686, + "auprc": 0.030488263543186397, + "brier": 0.004629699665167155, + "calibration": { + "observed_rate": 0.004681310767014764, + "mean_prediction": 0.0021304376816947087, + "calibration_in_the_large": -0.0025508730853200557, + "expected_calibration_error_10bin": 0.0025508730853200557, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + { + "valid": 2777, + "positives": 13, + "negatives": 2764, + "auroc": 0.9109707224757876, + "auprc": 0.030477049599037208, + "brier": 0.004629525158772457, + "calibration": { + "observed_rate": 0.004681310767014764, + "mean_prediction": 0.0021502628060765853, + "calibration_in_the_large": -0.002531047960938179, + "expected_calibration_error_10bin": 0.002531047960938179, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + } + ], + "reason": null + }, + "F14": { + "time_averaged_auroc": 0.931817472130305, + "time_averaged_auprc": 0.038217358768844495, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2787, + "positives": 4, + "negatives": 2783, + "auroc": 0.9686489399928135, + "auprc": 0.03704616064714971, + "brier": 0.0014273290012944756, + "calibration": { + "observed_rate": 0.0014352350197344816, + "mean_prediction": 0.00033119771822748327, + "calibration_in_the_large": -0.0011040373015069984, + "expected_calibration_error_10bin": 0.0011040373015069984, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 4, + "negatives": 2783, + "auroc": 0.9699964067553001, + "auprc": 0.038387795876644495, + "brier": 0.001423801561612414, + "calibration": { + "observed_rate": 0.0014352350197344816, + "mean_prediction": 0.0006832424324347245, + "calibration_in_the_large": -0.0007519925872997572, + "expected_calibration_error_10bin": 0.0007519925872997572, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 8, + "negatives": 2779, + "auroc": 0.9196653472472113, + "auprc": 0.03485148272835987, + "brier": 0.002849795085826242, + "calibration": { + "observed_rate": 0.0028704700394689632, + "mean_prediction": 0.0008867239329137964, + "calibration_in_the_large": -0.001983746106555167, + "expected_calibration_error_10bin": 0.001983746106555167, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 8, + "negatives": 2779, + "auroc": 0.9184059014033825, + "auprc": 0.03417618204517611, + "brier": 0.0028496030918811898, + "calibration": { + "observed_rate": 0.0028704700394689632, + "mean_prediction": 0.001030600055139942, + "calibration_in_the_large": -0.0018398699843290211, + "expected_calibration_error_10bin": 0.0018398699843290211, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 9, + "negatives": 2778, + "auroc": 0.9245660347172227, + "auprc": 0.03838571347315317, + "brier": 0.003202033765055622, + "calibration": { + "observed_rate": 0.0032292787944025836, + "mean_prediction": 0.0011851909346932412, + "calibration_in_the_large": -0.0020440878597093423, + "expected_calibration_error_10bin": 0.0021183662077670236, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 9, + "negatives": 2778, + "auroc": 0.925845932325414, + "auprc": 0.03804062947123468, + "brier": 0.0032019304189124485, + "calibration": { + "observed_rate": 0.0032292787944025836, + "mean_prediction": 0.001268173439290185, + "calibration_in_the_large": -0.0019611053551123986, + "expected_calibration_error_10bin": 0.0020392141944903038, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 9, + "negatives": 2778, + "auroc": 0.9248060155187585, + "auprc": 0.03735340294811186, + "brier": 0.003202627556822994, + "calibration": { + "observed_rate": 0.0032292787944025836, + "mean_prediction": 0.001353684040313828, + "calibration_in_the_large": -0.0018755947540887556, + "expected_calibration_error_10bin": 0.00203114808807134, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 9, + "negatives": 2778, + "auroc": 0.9242060635149189, + "auprc": 0.037101167944713805, + "brier": 0.003203519049088392, + "calibration": { + "observed_rate": 0.0032292787944025836, + "mean_prediction": 0.0014703432717140111, + "calibration_in_the_large": -0.0017589355226885724, + "expected_calibration_error_10bin": 0.0019274206853205594, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 10, + "negatives": 2777, + "auroc": 0.9278357940223263, + "auprc": 0.040353083576346545, + "brier": 0.0035554395675962917, + "calibration": { + "observed_rate": 0.003588087549336204, + "mean_prediction": 0.0016090693157778003, + "calibration_in_the_large": -0.0019790182335584034, + "expected_calibration_error_10bin": 0.002305518688583555, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 10, + "negatives": 2777, + "auroc": 0.9272596326971552, + "auprc": 0.04033461198794868, + "brier": 0.003555268979336338, + "calibration": { + "observed_rate": 0.003588087549336204, + "mean_prediction": 0.0016717567853222193, + "calibration_in_the_large": -0.0019163307640139846, + "expected_calibration_error_10bin": 0.002249786773116399, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 10, + "negatives": 2777, + "auroc": 0.927043572200216, + "auprc": 0.04030019051829374, + "brier": 0.0035556195791177263, + "calibration": { + "observed_rate": 0.003588087549336204, + "mean_prediction": 0.001726802871970485, + "calibration_in_the_large": -0.001861284677365719, + "expected_calibration_error_10bin": 0.0022031058679383335, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 10, + "negatives": 2777, + "auroc": 0.9276557436082103, + "auprc": 0.04018209062285767, + "brier": 0.0035558409112564143, + "calibration": { + "observed_rate": 0.003588087549336204, + "mean_prediction": 0.0018039662817757182, + "calibration_in_the_large": -0.0017841212675604858, + "expected_calibration_error_10bin": 0.0021349352100002465, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 10, + "negatives": 2777, + "auroc": 0.9276917536910335, + "auprc": 0.04031315215498811, + "brier": 0.003555917235831282, + "calibration": { + "observed_rate": 0.003588087549336204, + "mean_prediction": 0.0018203911107861138, + "calibration_in_the_large": -0.0017676964385500901, + "expected_calibration_error_10bin": 0.0021207507895560137, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + } + ], + "reason": null + }, + "F15": { + "time_averaged_auroc": 0.9479171489204716, + "time_averaged_auprc": 0.0807245007355834, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2823, + "positives": 4, + "negatives": 2819, + "auroc": 0.9648811635331678, + "auprc": 0.0669382285373947, + "brier": 0.0013999500307065214, + "calibration": { + "observed_rate": 0.0014169323414806943, + "mean_prediction": 0.00039627939543590985, + "calibration_in_the_large": -0.0010206529460447845, + "expected_calibration_error_10bin": 0.0010206529460447845, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 5, + "negatives": 2818, + "auroc": 0.9686302342086586, + "auprc": 0.06725521082975855, + "brier": 0.0017475262229070402, + "calibration": { + "observed_rate": 0.001771165426850868, + "mean_prediction": 0.00045095568098832406, + "calibration_in_the_large": -0.0013202097458625437, + "expected_calibration_error_10bin": 0.0013202097458625437, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 5, + "negatives": 2818, + "auroc": 0.9694819020581973, + "auprc": 0.0671090646836124, + "brier": 0.0017420522159653246, + "calibration": { + "observed_rate": 0.001771165426850868, + "mean_prediction": 0.0006224038237211987, + "calibration_in_the_large": -0.0011487616031296694, + "expected_calibration_error_10bin": 0.0011487616031296694, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.9400070997515086, + "auprc": 0.054688576104414084, + "brier": 0.0020946580236043564, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0006813649267554456, + "calibration_in_the_large": -0.0014440335854655957, + "expected_calibration_error_10bin": 0.0014440335854655957, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.9382913264702402, + "auprc": 0.0537750753971, + "brier": 0.0020924434175162454, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0007855311262287693, + "calibration_in_the_large": -0.001339867385992272, + "expected_calibration_error_10bin": 0.001339867385992272, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.938350491066146, + "auprc": 0.05396264486061869, + "brier": 0.0020916025767978665, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0008412994201028728, + "calibration_in_the_large": -0.0012840990921181685, + "expected_calibration_error_10bin": 0.0012840990921181685, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.9373446929357473, + "auprc": 0.0531043314992952, + "brier": 0.002091121024477779, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0009136175932062758, + "calibration_in_the_large": -0.0012117809190147655, + "expected_calibration_error_10bin": 0.0012117809190147655, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.9366347177848775, + "auprc": 0.0531173165979805, + "brier": 0.002090423901363413, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0009720525733864299, + "calibration_in_the_large": -0.0011533459388346115, + "expected_calibration_error_10bin": 0.0011533459388346115, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.9381729972784286, + "auprc": 0.05393282979663732, + "brier": 0.002085190855929053, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0011723619975360915, + "calibration_in_the_large": -0.0009530365146849498, + "expected_calibration_error_10bin": 0.0009530365146849498, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.9416045438409656, + "auprc": 0.055499046408137305, + "brier": 0.0020809065404352772, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0014278492239157507, + "calibration_in_the_large": -0.0006975492883052907, + "expected_calibration_error_10bin": 0.0006975492883052907, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.9411312270737191, + "auprc": 0.055459411089349625, + "brier": 0.002080912969586605, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0014487560322755195, + "calibration_in_the_large": -0.0006766424799455218, + "expected_calibration_error_10bin": 0.0006766424799455218, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 8, + "negatives": 2815, + "auroc": 0.9541296625222024, + "auprc": 0.2071448684379974, + "brier": 0.00270515029377027, + "calibration": { + "observed_rate": 0.0028338646829613886, + "mean_prediction": 0.0014699099509433915, + "calibration_in_the_large": -0.0013639547320179971, + "expected_calibration_error_10bin": 0.0013639547320179971, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 8, + "negatives": 2815, + "auroc": 0.9542628774422736, + "auprc": 0.20743190532028863, + "brier": 0.0027028510312046526, + "calibration": { + "observed_rate": 0.0028338646829613886, + "mean_prediction": 0.0014976131125820442, + "calibration_in_the_large": -0.0013362515703793443, + "expected_calibration_error_10bin": 0.0013362515703793443, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + } + ], + "reason": null + }, + "F17": { + "time_averaged_auroc": 0.8839168889340334, + "time_averaged_auprc": 0.07771108586602136, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2426, + "positives": 13, + "negatives": 2413, + "auroc": 0.8976696738818579, + "auprc": 0.05816157281808814, + "brier": 0.00526080384078934, + "calibration": { + "observed_rate": 0.0053586150041220115, + "mean_prediction": 0.0020285337397876733, + "calibration_in_the_large": -0.003330081264334338, + "expected_calibration_error_10bin": 0.003330081264334338, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8533239535701723 + }, + { + "valid": 2426, + "positives": 19, + "negatives": 2407, + "auroc": 0.8993724444055715, + "auprc": 0.06541924539717903, + "brier": 0.007662127313521719, + "calibration": { + "observed_rate": 0.007831821929101401, + "mean_prediction": 0.0030784656642030422, + "calibration_in_the_large": -0.004753356264898359, + "expected_calibration_error_10bin": 0.004840390004090532, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8533239535701723 + }, + { + "valid": 2426, + "positives": 22, + "negatives": 2404, + "auroc": 0.883621993646952, + "auprc": 0.07643933087814454, + "brier": 0.008805739651096416, + "calibration": { + "observed_rate": 0.009068425391591096, + "mean_prediction": 0.004187473580941327, + "calibration_in_the_large": -0.004880951810649769, + "expected_calibration_error_10bin": 0.005285032034657458, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8533239535701723 + }, + { + "valid": 2426, + "positives": 25, + "negatives": 2401, + "auroc": 0.8890129112869638, + "auprc": 0.08256475729854142, + "brier": 0.009973440870156938, + "calibration": { + "observed_rate": 0.010305028854080791, + "mean_prediction": 0.004695946623107235, + "calibration_in_the_large": -0.005609082230973556, + "expected_calibration_error_10bin": 0.0062137575689529025, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8533239535701723 + }, + { + "valid": 2426, + "positives": 25, + "negatives": 2401, + "auroc": 0.889112869637651, + "auprc": 0.08084734973832129, + "brier": 0.009963807222869322, + "calibration": { + "observed_rate": 0.010305028854080791, + "mean_prediction": 0.005102585471044565, + "calibration_in_the_large": -0.005202443383036226, + "expected_calibration_error_10bin": 0.005833171632387574, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8533239535701723 + }, + { + "valid": 2426, + "positives": 25, + "negatives": 2401, + "auroc": 0.8905622657226155, + "auprc": 0.08148675095152999, + "brier": 0.009947167043972423, + "calibration": { + "observed_rate": 0.010305028854080791, + "mean_prediction": 0.005530125154584922, + "calibration_in_the_large": -0.00477490369949587, + "expected_calibration_error_10bin": 0.005524565585342739, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8533239535701723 + }, + { + "valid": 2426, + "positives": 27, + "negatives": 2399, + "auroc": 0.8883176632238742, + "auprc": 0.07942322500595358, + "brier": 0.01074664897916913, + "calibration": { + "observed_rate": 0.011129431162407255, + "mean_prediction": 0.00597268837564168, + "calibration_in_the_large": -0.005156742786765574, + "expected_calibration_error_10bin": 0.005372964194447941, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8533239535701723 + }, + { + "valid": 2426, + "positives": 30, + "negatives": 2396, + "auroc": 0.8717445742904841, + "auprc": 0.07623203935556916, + "brier": 0.011956876483584993, + "calibration": { + "observed_rate": 0.01236603462489695, + "mean_prediction": 0.006284515570213551, + "calibration_in_the_large": -0.006081519054683399, + "expected_calibration_error_10bin": 0.006328177877648746, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8533239535701723 + }, + { + "valid": 2426, + "positives": 32, + "negatives": 2394, + "auroc": 0.8725459482038429, + "auprc": 0.07619812013811966, + "brier": 0.012749950079428524, + "calibration": { + "observed_rate": 0.013190436933223413, + "mean_prediction": 0.006829996758046282, + "calibration_in_the_large": -0.006360440175177132, + "expected_calibration_error_10bin": 0.006635314629407718, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8533239535701723 + }, + { + "valid": 2426, + "positives": 33, + "negatives": 2393, + "auroc": 0.8773316111385481, + "auprc": 0.08394825206574519, + "brier": 0.013088619826137984, + "calibration": { + "observed_rate": 0.013602638087386645, + "mean_prediction": 0.007435415045833115, + "calibration_in_the_large": -0.00616722304155353, + "expected_calibration_error_10bin": 0.006542708330335877, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8533239535701723 + }, + { + "valid": 2426, + "positives": 33, + "negatives": 2393, + "auroc": 0.8769770416239284, + "auprc": 0.08300807902443529, + "brier": 0.013080762407740079, + "calibration": { + "observed_rate": 0.013602638087386645, + "mean_prediction": 0.007770460999713019, + "calibration_in_the_large": -0.005832177087673626, + "expected_calibration_error_10bin": 0.006493304191100213, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8533239535701723 + }, + { + "valid": 2426, + "positives": 33, + "negatives": 2393, + "auroc": 0.8774455799111044, + "auprc": 0.08337262341524546, + "brier": 0.013062344857953623, + "calibration": { + "observed_rate": 0.013602638087386645, + "mean_prediction": 0.008239944823389921, + "calibration_in_the_large": -0.005362693263996724, + "expected_calibration_error_10bin": 0.0055485800166709546, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8533239535701723 + }, + { + "valid": 2426, + "positives": 33, + "negatives": 2393, + "auroc": 0.877204979169041, + "auprc": 0.08314277017140524, + "brier": 0.013062196914807638, + "calibration": { + "observed_rate": 0.013602638087386645, + "mean_prediction": 0.00827179701520836, + "calibration_in_the_large": -0.005330841072178285, + "expected_calibration_error_10bin": 0.0055169352372231644, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8533239535701723 + } + ], + "reason": null + }, + "F19": { + "time_averaged_auroc": 0.9281988762853935, + "time_averaged_auprc": 0.20694644311166493, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2801, + "positives": 6, + "negatives": 2795, + "auroc": 0.922659511031604, + "auprc": 0.29170343625655526, + "brier": 0.002059747383956168, + "calibration": { + "observed_rate": 0.0021420921099607284, + "mean_prediction": 0.0007278375776295317, + "calibration_in_the_large": -0.0014142545323311967, + "expected_calibration_error_10bin": 0.0014142545323311967, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 8, + "negatives": 2793, + "auroc": 0.9153687790905836, + "auprc": 0.22672523845835577, + "brier": 0.0027392250571391004, + "calibration": { + "observed_rate": 0.002856122813280971, + "mean_prediction": 0.0010004768174014273, + "calibration_in_the_large": -0.001855645995879544, + "expected_calibration_error_10bin": 0.001855645995879544, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 8, + "negatives": 2793, + "auroc": 0.9140261367704977, + "auprc": 0.22854556454874875, + "brier": 0.0027153267423538356, + "calibration": { + "observed_rate": 0.002856122813280971, + "mean_prediction": 0.0012355234785049346, + "calibration_in_the_large": -0.0016205993347760367, + "expected_calibration_error_10bin": 0.0016989488317019053, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 9, + "negatives": 2792, + "auroc": 0.9205269022604267, + "auprc": 0.22090129761366012, + "brier": 0.0030339916717448206, + "calibration": { + "observed_rate": 0.0032131381649410924, + "mean_prediction": 0.0014929052982835885, + "calibration_in_the_large": -0.001720232866657504, + "expected_calibration_error_10bin": 0.001720232866657504, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 10, + "negatives": 2791, + "auroc": 0.9271228950197062, + "auprc": 0.20885116924391106, + "brier": 0.003345189122754928, + "calibration": { + "observed_rate": 0.003570153516601214, + "mean_prediction": 0.0018530220877239318, + "calibration_in_the_large": -0.0017171314288772822, + "expected_calibration_error_10bin": 0.0017171314288772822, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 10, + "negatives": 2791, + "auroc": 0.9280544607667502, + "auprc": 0.20971134965404473, + "brier": 0.0033217534749850077, + "calibration": { + "observed_rate": 0.003570153516601214, + "mean_prediction": 0.0021569452833813964, + "calibration_in_the_large": -0.0014132082332198176, + "expected_calibration_error_10bin": 0.0014132082332198172, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 10, + "negatives": 2791, + "auroc": 0.927660336796847, + "auprc": 0.20980646080934315, + "brier": 0.0033103984520770997, + "calibration": { + "observed_rate": 0.003570153516601214, + "mean_prediction": 0.002368249763432046, + "calibration_in_the_large": -0.001201903753169168, + "expected_calibration_error_10bin": 0.001201903753169168, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 11, + "negatives": 2790, + "auroc": 0.9326816552623004, + "auprc": 0.19719810540902197, + "brier": 0.0036384893398207557, + "calibration": { + "observed_rate": 0.003927168868261335, + "mean_prediction": 0.0026215966897767985, + "calibration_in_the_large": -0.0013055721784845367, + "expected_calibration_error_10bin": 0.0014562027130096689, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 13, + "negatives": 2788, + "auroc": 0.9358238605010485, + "auprc": 0.17866356212075238, + "brier": 0.004330011382600728, + "calibration": { + "observed_rate": 0.0046411995715815784, + "mean_prediction": 0.0027578801072676235, + "calibration_in_the_large": -0.001883319464313955, + "expected_calibration_error_10bin": 0.002037467694309949, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 13, + "negatives": 2788, + "auroc": 0.9360445866902108, + "auprc": 0.1828266983980744, + "brier": 0.0043171464738141945, + "calibration": { + "observed_rate": 0.0046411995715815784, + "mean_prediction": 0.0029531104581601362, + "calibration_in_the_large": -0.0016880891134214422, + "expected_calibration_error_10bin": 0.0018507364954794185, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 13, + "negatives": 2788, + "auroc": 0.9364032667475995, + "auprc": 0.17901851021999762, + "brier": 0.004310866129254137, + "calibration": { + "observed_rate": 0.0046411995715815784, + "mean_prediction": 0.0030887527032270284, + "calibration_in_the_large": -0.00155244686835455, + "expected_calibration_error_10bin": 0.001719460519399886, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 13, + "negatives": 2788, + "auroc": 0.9350513188389803, + "auprc": 0.17803428774064434, + "brier": 0.00430897512562989, + "calibration": { + "observed_rate": 0.0046411995715815784, + "mean_prediction": 0.0032743843450604923, + "calibration_in_the_large": -0.0013668152265210861, + "expected_calibration_error_10bin": 0.0015391048568587256, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 13, + "negatives": 2788, + "auroc": 0.9351616819335614, + "auprc": 0.17831807997853463, + "brier": 0.004307022070527467, + "calibration": { + "observed_rate": 0.0046411995715815784, + "mean_prediction": 0.003315570494221412, + "calibration_in_the_large": -0.0013256290773601665, + "expected_calibration_error_10bin": 0.001499611002942507, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + } + ], + "reason": null + }, + "F20": { + "time_averaged_auroc": 0.835014593886534, + "time_averaged_auprc": 0.014830961599006064, + "valid_timepoint_cells": 12, + "timepoints": [ + { + "valid": 2808, + "positives": 0, + "negatives": 2808, + "auroc": null, + "auprc": null, + "brier": 2.1124727324809134e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0001505645825953905, + "calibration_in_the_large": 0.0001505645825953905, + "expected_calibration_error_10bin": 0.0001505645825953905, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9876890608512136 + }, + { + "valid": 2808, + "positives": 1, + "negatives": 2807, + "auroc": 0.9889561809761311, + "auprc": 0.03125, + "brier": 0.00035337735288317547, + "calibration": { + "observed_rate": 0.00035612535612535614, + "mean_prediction": 0.0003777906339832836, + "calibration_in_the_large": 2.1665277857927452e-05, + "expected_calibration_error_10bin": 2.1665277857927452e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9876890608512136 + }, + { + "valid": 2808, + "positives": 2, + "negatives": 2806, + "auroc": 0.7875980042765502, + "auprc": 0.014751701658517878, + "brier": 0.0007095578694765338, + "calibration": { + "observed_rate": 0.0007122507122507123, + "mean_prediction": 0.00046144074692241094, + "calibration_in_the_large": -0.00025080996532830135, + "expected_calibration_error_10bin": 0.00025080996532830135, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9876890608512136 + }, + { + "valid": 2808, + "positives": 2, + "negatives": 2806, + "auroc": 0.7753029223093372, + "auprc": 0.015099383935836336, + "brier": 0.0007097657821939173, + "calibration": { + "observed_rate": 0.0007122507122507123, + "mean_prediction": 0.0006826958752702678, + "calibration_in_the_large": -2.9554836980444474e-05, + "expected_calibration_error_10bin": 2.9554836980444474e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9876890608512136 + }, + { + "valid": 2808, + "positives": 3, + "negatives": 2805, + "auroc": 0.8202020202020202, + "auprc": 0.012763135373850506, + "brier": 0.0010653078413920803, + "calibration": { + "observed_rate": 0.0010683760683760685, + "mean_prediction": 0.0008263335418034869, + "calibration_in_the_large": -0.00024204252657258158, + "expected_calibration_error_10bin": 0.00024204252657258158, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9876890608512136 + }, + { + "valid": 2808, + "positives": 3, + "negatives": 2805, + "auroc": 0.8149732620320855, + "auprc": 0.012680166539023546, + "brier": 0.0010656622465314415, + "calibration": { + "observed_rate": 0.0010683760683760685, + "mean_prediction": 0.00089618410375039, + "calibration_in_the_large": -0.00017219196462567852, + "expected_calibration_error_10bin": 0.00017219196462567852, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9876890608512136 + }, + { + "valid": 2808, + "positives": 3, + "negatives": 2805, + "auroc": 0.8190136660724896, + "auprc": 0.01252518868347798, + "brier": 0.001066317732715788, + "calibration": { + "observed_rate": 0.0010683760683760685, + "mean_prediction": 0.0010656686528360047, + "calibration_in_the_large": -2.707415540063743e-06, + "expected_calibration_error_10bin": 2.707415540063743e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9876890608512136 + }, + { + "valid": 2808, + "positives": 3, + "negatives": 2805, + "auroc": 0.8163992869875223, + "auprc": 0.012758319014503207, + "brier": 0.001067073642955636, + "calibration": { + "observed_rate": 0.0010683760683760685, + "mean_prediction": 0.0011767766588751624, + "calibration_in_the_large": 0.00010840059049909388, + "expected_calibration_error_10bin": 0.00010840059049909388, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9876890608512136 + }, + { + "valid": 2808, + "positives": 3, + "negatives": 2805, + "auroc": 0.8156862745098039, + "auprc": 0.01245673446414313, + "brier": 0.0010675097001929825, + "calibration": { + "observed_rate": 0.0010683760683760685, + "mean_prediction": 0.001235333684657587, + "calibration_in_the_large": 0.00016695761628151857, + "expected_calibration_error_10bin": 0.00016695761628151857, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9876890608512136 + }, + { + "valid": 2808, + "positives": 4, + "negatives": 2804, + "auroc": 0.8467368045649073, + "auprc": 0.013745554865049156, + "brier": 0.0014197991382172545, + "calibration": { + "observed_rate": 0.0014245014245014246, + "mean_prediction": 0.0012695974913683138, + "calibration_in_the_large": -0.00015490393313311078, + "expected_calibration_error_10bin": 0.00015490393313311078, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9876890608512136 + }, + { + "valid": 2808, + "positives": 4, + "negatives": 2804, + "auroc": 0.8445078459343794, + "auprc": 0.013300193264542093, + "brier": 0.001420106867378636, + "calibration": { + "observed_rate": 0.0014245014245014246, + "mean_prediction": 0.001315887944314392, + "calibration_in_the_large": -0.00010861348018703252, + "expected_calibration_error_10bin": 0.00010861348018703252, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9876890608512136 + }, + { + "valid": 2808, + "positives": 4, + "negatives": 2804, + "auroc": 0.8453994293865906, + "auprc": 0.013320580694564465, + "brier": 0.0014205437279449728, + "calibration": { + "observed_rate": 0.0014245014245014246, + "mean_prediction": 0.001365016382681686, + "calibration_in_the_large": -5.948504181973861e-05, + "expected_calibration_error_10bin": 5.948504181973861e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9876890608512136 + }, + { + "valid": 2808, + "positives": 4, + "negatives": 2804, + "auroc": 0.8453994293865906, + "auprc": 0.013320580694564465, + "brier": 0.0014205653690931752, + "calibration": { + "observed_rate": 0.0014245014245014246, + "mean_prediction": 0.0013688567636929029, + "calibration_in_the_large": -5.564466080852171e-05, + "expected_calibration_error_10bin": 5.564466080852171e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9876890608512136 + } + ], + "reason": null + }, + "F22": { + "time_averaged_auroc": 0.9252127659574467, + "time_averaged_auprc": 0.004722623350057529, + "valid_timepoint_cells": 10, + "timepoints": [ + { + "valid": 2821, + "positives": 0, + "negatives": 2821, + "auroc": null, + "auprc": null, + "brier": 3.269987033760005e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0005708006258082676, + "calibration_in_the_large": 0.0005708006258082676, + "expected_calibration_error_10bin": 0.0005708006258082676, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 0, + "negatives": 2821, + "auroc": null, + "auprc": null, + "brier": 5.433833364024056e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0008273586569697445, + "calibration_in_the_large": 0.0008273586569697445, + "expected_calibration_error_10bin": 0.0008273586569697445, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 0, + "negatives": 2821, + "auroc": null, + "auprc": null, + "brier": 8.489083149008608e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0010685841303203535, + "calibration_in_the_large": 0.0010685841303203535, + "expected_calibration_error_10bin": 0.0010685841303203535, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.9219858156028369, + "auprc": 0.004524886877828055, + "brier": 0.0003610823952740344, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0011416023162837358, + "calibration_in_the_large": 0.0007871180908317684, + "expected_calibration_error_10bin": 0.0007871180908317684, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.925177304964539, + "auprc": 0.0047169811320754715, + "brier": 0.00036326414086351136, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0012754139925986179, + "calibration_in_the_large": 0.0009209297671466505, + "expected_calibration_error_10bin": 0.0009209297671466505, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.922695035460993, + "auprc": 0.0045662100456621, + "brier": 0.0003648591557736366, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.001407748935886139, + "calibration_in_the_large": 0.0010532647104341717, + "expected_calibration_error_10bin": 0.0010532647104341717, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.9258865248226951, + "auprc": 0.004761904761904762, + "brier": 0.000367643995036624, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0015860023187374405, + "calibration_in_the_large": 0.0012315180932854731, + "expected_calibration_error_10bin": 0.0012315180932854731, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.9219858156028369, + "auprc": 0.004524886877828055, + "brier": 0.00036910760112088064, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0016743335590774335, + "calibration_in_the_large": 0.0013198493336254661, + "expected_calibration_error_10bin": 0.0013198493336254661, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.926950354609929, + "auprc": 0.004830917874396135, + "brier": 0.0003725346719949682, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0019030426035114318, + "calibration_in_the_large": 0.0015485583780594644, + "expected_calibration_error_10bin": 0.0015485583780594644, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.926950354609929, + "auprc": 0.004830917874396135, + "brier": 0.00037416711169662586, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0019887523594661616, + "calibration_in_the_large": 0.0016342681340141942, + "expected_calibration_error_10bin": 0.0016342681340141942, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.926595744680851, + "auprc": 0.004807692307692308, + "brier": 0.00037457990863481875, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.002019439955237057, + "calibration_in_the_large": 0.0016649557297850896, + "expected_calibration_error_10bin": 0.0016649557297850896, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.926950354609929, + "auprc": 0.004830917874396135, + "brier": 0.0003809322145939821, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0022510230020388296, + "calibration_in_the_large": 0.0018965387765868622, + "expected_calibration_error_10bin": 0.0018965387765868622, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.926950354609929, + "auprc": 0.004830917874396135, + "brier": 0.00038104832048991677, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0022579219830805896, + "calibration_in_the_large": 0.0019034377576286222, + "expected_calibration_error_10bin": 0.0019034377576286222, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + } + ], + "reason": null + }, + "F25": { + "time_averaged_auroc": 0.8732555296529163, + "time_averaged_auprc": 0.010123196643750667, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2819, + "positives": 1, + "negatives": 2818, + "auroc": 0.9779985805535841, + "auprc": 0.015873015873015872, + "brier": 0.00035439642642258364, + "calibration": { + "observed_rate": 0.000354735721887194, + "mean_prediction": 0.00035559070100102603, + "calibration_in_the_large": 8.54979113832006e-07, + "expected_calibration_error_10bin": 8.54979113832006e-07, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 2, + "negatives": 2817, + "auroc": 0.9524316648917288, + "auprc": 0.012744200244200244, + "brier": 0.0007088368693393851, + "calibration": { + "observed_rate": 0.000709471443774388, + "mean_prediction": 0.0005140178961992484, + "calibration_in_the_large": -0.0001954535475751397, + "expected_calibration_error_10bin": 0.0001954535475751397, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 2, + "negatives": 2817, + "auroc": 0.9531416400425985, + "auprc": 0.01237806680461129, + "brier": 0.0007100671807422834, + "calibration": { + "observed_rate": 0.000709471443774388, + "mean_prediction": 0.0007024530989532709, + "calibration_in_the_large": -7.018344821117101e-06, + "expected_calibration_error_10bin": 7.018344821117101e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.8477746212121212, + "auprc": 0.009089505620547928, + "brier": 0.001065000688329204, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0007577879800356629, + "calibration_in_the_large": -0.0003064191856259192, + "expected_calibration_error_10bin": 0.0003064191856259192, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.8535748106060606, + "auprc": 0.009229087446706573, + "brier": 0.0010656031746549407, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0008706489724664595, + "calibration_in_the_large": -0.00019355819319512258, + "expected_calibration_error_10bin": 0.00019355819319512258, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.8484848484848485, + "auprc": 0.00909718799934292, + "brier": 0.0010681692711164584, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0010638753252974306, + "calibration_in_the_large": -3.318403641514294e-07, + "expected_calibration_error_10bin": 3.318403641514294e-07, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.8483664772727273, + "auprc": 0.008943760917445127, + "brier": 0.0010688125456401589, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0011300258954184783, + "calibration_in_the_large": 6.581872975689623e-05, + "expected_calibration_error_10bin": 6.581872975689623e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.8487215909090909, + "auprc": 0.00901474632316128, + "brier": 0.0010693315736651312, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0011842715843030896, + "calibration_in_the_large": 0.00012006441864150755, + "expected_calibration_error_10bin": 0.00012006441864150755, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.8461174242424242, + "auprc": 0.008939795612947363, + "brier": 0.0010696800221140868, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.001227841361901152, + "calibration_in_the_large": 0.0001636341962395699, + "expected_calibration_error_10bin": 0.0001636341962395699, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.8448153409090909, + "auprc": 0.009063637329008466, + "brier": 0.0010721525878358445, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0013762643490412483, + "calibration_in_the_large": 0.0003120571833796662, + "expected_calibration_error_10bin": 0.0003120571833796662, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.8443418560606061, + "auprc": 0.009072929180331443, + "brier": 0.0010723401291076612, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.001397873637207679, + "calibration_in_the_large": 0.0003336664715460969, + "expected_calibration_error_10bin": 0.0003336664715460969, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.8432765151515151, + "auprc": 0.009077811508720097, + "brier": 0.0010736874092504792, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.001473918669302362, + "calibration_in_the_large": 0.00040971150364078, + "expected_calibration_error_10bin": 0.00040971150364078, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.8432765151515151, + "auprc": 0.009077811508720097, + "brier": 0.001073737317254248, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.001478555703332326, + "calibration_in_the_large": 0.000414348537670744, + "expected_calibration_error_10bin": 0.000414348537670744, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + } + ], + "reason": null + }, + "F29": { + "time_averaged_auroc": 0.8068318867139219, + "time_averaged_auprc": 0.012324095991530136, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2806, + "positives": 3, + "negatives": 2803, + "auroc": 0.8412415269354263, + "auprc": 0.005547257658138162, + "brier": 0.0010684784724997135, + "calibration": { + "observed_rate": 0.0010691375623663579, + "mean_prediction": 0.000183377350775089, + "calibration_in_the_large": -0.0008857602115912689, + "expected_calibration_error_10bin": 0.0008857602115912689, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 5, + "negatives": 2801, + "auroc": 0.8622634773295251, + "auprc": 0.008831677502386651, + "brier": 0.0017800417814682523, + "calibration": { + "observed_rate": 0.001781895937277263, + "mean_prediction": 0.00031451580492952805, + "calibration_in_the_large": -0.001467380132347735, + "expected_calibration_error_10bin": 0.001467380132347735, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 6, + "negatives": 2800, + "auroc": 0.7708928571428572, + "auprc": 0.008069969785790691, + "brier": 0.0021357751913277058, + "calibration": { + "observed_rate": 0.0021382751247327157, + "mean_prediction": 0.00045042785737420054, + "calibration_in_the_large": -0.0016878472673585152, + "expected_calibration_error_10bin": 0.0016878472673585152, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 7, + "negatives": 2799, + "auroc": 0.7848721482161997, + "auprc": 0.009472971399449663, + "brier": 0.0024911601192516442, + "calibration": { + "observed_rate": 0.0024946543121881683, + "mean_prediction": 0.0005294840145227111, + "calibration_in_the_large": -0.001965170297665457, + "expected_calibration_error_10bin": 0.001965170297665457, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 7, + "negatives": 2799, + "auroc": 0.7783392027765018, + "auprc": 0.009150753941352825, + "brier": 0.0024911491264329854, + "calibration": { + "observed_rate": 0.0024946543121881683, + "mean_prediction": 0.000550563535115111, + "calibration_in_the_large": -0.0019440907770730573, + "expected_calibration_error_10bin": 0.0019440907770730573, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 7, + "negatives": 2799, + "auroc": 0.7811463277701219, + "auprc": 0.009091707841401961, + "brier": 0.002491088426367913, + "calibration": { + "observed_rate": 0.0024946543121881683, + "mean_prediction": 0.0005840679637590298, + "calibration_in_the_large": -0.0019105863484291385, + "expected_calibration_error_10bin": 0.0019105863484291385, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 7, + "negatives": 2799, + "auroc": 0.7925789822895932, + "auprc": 0.009371560569035504, + "brier": 0.002490714661112245, + "calibration": { + "observed_rate": 0.0024946543121881683, + "mean_prediction": 0.0006770182825243492, + "calibration_in_the_large": -0.0018176360296638192, + "expected_calibration_error_10bin": 0.0018176360296638192, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 7, + "negatives": 2799, + "auroc": 0.7930893686520696, + "auprc": 0.009328082272766394, + "brier": 0.0024906322730609072, + "calibration": { + "observed_rate": 0.0024946543121881683, + "mean_prediction": 0.0007162362603286456, + "calibration_in_the_large": -0.0017784180518595227, + "expected_calibration_error_10bin": 0.0017784180518595227, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.8168781272337384, + "auprc": 0.019022209218517924, + "brier": 0.0028386152661640704, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.0007672514113122452, + "calibration_in_the_large": -0.002083782088331376, + "expected_calibration_error_10bin": 0.002083782088331376, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.8172802001429592, + "auprc": 0.018194262406543017, + "brier": 0.002837759122357923, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.0008644642797388966, + "calibration_in_the_large": -0.0019865692199047243, + "expected_calibration_error_10bin": 0.0019865692199047243, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.8201393852751966, + "auprc": 0.018655599765915194, + "brier": 0.002837249918841079, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.0009059351235976213, + "calibration_in_the_large": -0.0019450983760459996, + "expected_calibration_error_10bin": 0.0019450983760459996, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.8151804860614725, + "auprc": 0.017742949240171675, + "brier": 0.0028356236290633294, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.001083891503871938, + "calibration_in_the_large": -0.001767141995771683, + "expected_calibration_error_10bin": 0.001767141995771683, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.8149124374553253, + "auprc": 0.01773424628842214, + "brier": 0.002835533976637312, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.00110214259201571, + "calibration_in_the_large": -0.0017488909076279109, + "expected_calibration_error_10bin": 0.0017488909076279109, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + } + ], + "reason": null + }, + "F31": { + "time_averaged_auroc": 0.9193064817084007, + "time_averaged_auprc": 0.03429286714362386, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2724, + "positives": 5, + "negatives": 2719, + "auroc": 0.9221772710555352, + "auprc": 0.017224294693736, + "brier": 0.001825297116558218, + "calibration": { + "observed_rate": 0.0018355359765051395, + "mean_prediction": 0.0009053920086583352, + "calibration_in_the_large": -0.0009301439678468042, + "expected_calibration_error_10bin": 0.0009301439678468042, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9581428068941259 + }, + { + "valid": 2724, + "positives": 7, + "negatives": 2717, + "auroc": 0.9090383300909617, + "auprc": 0.042571396662886334, + "brier": 0.00253917123728868, + "calibration": { + "observed_rate": 0.0025697503671071953, + "mean_prediction": 0.0011479408655676669, + "calibration_in_the_large": -0.0014218095015395284, + "expected_calibration_error_10bin": 0.0014218095015395284, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9581428068941259 + }, + { + "valid": 2724, + "positives": 7, + "negatives": 2717, + "auroc": 0.9116672800883328, + "auprc": 0.033056888554531476, + "brier": 0.0025366037508018323, + "calibration": { + "observed_rate": 0.0025697503671071953, + "mean_prediction": 0.0014669598560214684, + "calibration_in_the_large": -0.0011027905110857269, + "expected_calibration_error_10bin": 0.0011027905110857269, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9581428068941259 + }, + { + "valid": 2724, + "positives": 8, + "negatives": 2716, + "auroc": 0.9196888807069219, + "auprc": 0.03824286727062712, + "brier": 0.002889667017986401, + "calibration": { + "observed_rate": 0.002936857562408223, + "mean_prediction": 0.0016711495296702346, + "calibration_in_the_large": -0.0012657080327379885, + "expected_calibration_error_10bin": 0.0012657080327379885, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9581428068941259 + }, + { + "valid": 2724, + "positives": 8, + "negatives": 2716, + "auroc": 0.9197809278350515, + "auprc": 0.03514224744506803, + "brier": 0.0028864627030126882, + "calibration": { + "observed_rate": 0.002936857562408223, + "mean_prediction": 0.002038247529977824, + "calibration_in_the_large": -0.0008986100324303989, + "expected_calibration_error_10bin": 0.0008986100324303989, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9581428068941259 + }, + { + "valid": 2724, + "positives": 8, + "negatives": 2716, + "auroc": 0.9203792341678939, + "auprc": 0.03499352785682431, + "brier": 0.0028862142366113098, + "calibration": { + "observed_rate": 0.002936857562408223, + "mean_prediction": 0.0021245600560024407, + "calibration_in_the_large": -0.0008122975064057823, + "expected_calibration_error_10bin": 0.0008122975064057823, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9581428068941259 + }, + { + "valid": 2724, + "positives": 8, + "negatives": 2716, + "auroc": 0.9204252577319587, + "auprc": 0.03427334520008904, + "brier": 0.0028869108234957103, + "calibration": { + "observed_rate": 0.002936857562408223, + "mean_prediction": 0.0024471011863895324, + "calibration_in_the_large": -0.0004897563760186906, + "expected_calibration_error_10bin": 0.0004897563760186906, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9581428068941259 + }, + { + "valid": 2724, + "positives": 8, + "negatives": 2716, + "auroc": 0.9195508100147275, + "auprc": 0.0342561168210072, + "brier": 0.0028867390286793455, + "calibration": { + "observed_rate": 0.002936857562408223, + "mean_prediction": 0.002615388335460241, + "calibration_in_the_large": -0.0003214692269479821, + "expected_calibration_error_10bin": 0.0003214692269479821, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9581428068941259 + }, + { + "valid": 2724, + "positives": 8, + "negatives": 2716, + "auroc": 0.9188144329896907, + "auprc": 0.03426119191078623, + "brier": 0.0028875109690439235, + "calibration": { + "observed_rate": 0.002936857562408223, + "mean_prediction": 0.0028677442181729708, + "calibration_in_the_large": -6.911334423525227e-05, + "expected_calibration_error_10bin": 6.911334423525227e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9581428068941259 + }, + { + "valid": 2724, + "positives": 9, + "negatives": 2715, + "auroc": 0.9227337835072642, + "auprc": 0.03580861660353788, + "brier": 0.003241603477313767, + "calibration": { + "observed_rate": 0.003303964757709251, + "mean_prediction": 0.0030960237296678633, + "calibration_in_the_large": -0.0002079410280413879, + "expected_calibration_error_10bin": 0.0002079410280413879, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9581428068941259 + }, + { + "valid": 2724, + "positives": 9, + "negatives": 2715, + "auroc": 0.9226928586044608, + "auprc": 0.03581915909320054, + "brier": 0.003241469156435094, + "calibration": { + "observed_rate": 0.003303964757709251, + "mean_prediction": 0.0032000413378183603, + "calibration_in_the_large": -0.00010392341989089084, + "expected_calibration_error_10bin": 0.00010392341989089084, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9581428068941259 + }, + { + "valid": 2724, + "positives": 9, + "negatives": 2715, + "auroc": 0.9220380601596071, + "auprc": 0.035020089751573724, + "brier": 0.0032427697176383454, + "calibration": { + "observed_rate": 0.003303964757709251, + "mean_prediction": 0.003374975118495806, + "calibration_in_the_large": 7.101036078655497e-05, + "expected_calibration_error_10bin": 7.101036078655497e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9581428068941259 + }, + { + "valid": 2724, + "positives": 9, + "negatives": 2715, + "auroc": 0.9219971352568037, + "auprc": 0.03513753100324224, + "brier": 0.0032427592689722984, + "calibration": { + "observed_rate": 0.003303964757709251, + "mean_prediction": 0.003398614887690217, + "calibration_in_the_large": 9.46501299809656e-05, + "expected_calibration_error_10bin": 9.46501299809656e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9581428068941259 + } + ], + "reason": null + }, + "F32": { + "time_averaged_auroc": 0.708696503581093, + "time_averaged_auprc": 0.05816618048944799, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2200, + "positives": 16, + "negatives": 2184, + "auroc": 0.7916094322344323, + "auprc": 0.0458675302487206, + "brier": 0.0071165430530705995, + "calibration": { + "observed_rate": 0.007272727272727273, + "mean_prediction": 0.006985646834205413, + "calibration_in_the_large": -0.00028708043852185977, + "expected_calibration_error_10bin": 0.00028708043852185977, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7738304607808653 + }, + { + "valid": 2200, + "positives": 29, + "negatives": 2171, + "auroc": 0.7568894042154418, + "auprc": 0.05831564397246787, + "brier": 0.012783036869997069, + "calibration": { + "observed_rate": 0.013181818181818182, + "mean_prediction": 0.01128071885739866, + "calibration_in_the_large": -0.0019010993244195223, + "expected_calibration_error_10bin": 0.0024154222975299824, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7738304607808653 + }, + { + "valid": 2200, + "positives": 36, + "negatives": 2164, + "auroc": 0.7321703635243376, + "auprc": 0.05615331924337436, + "brier": 0.01585590436887657, + "calibration": { + "observed_rate": 0.016363636363636365, + "mean_prediction": 0.013704009499660143, + "calibration_in_the_large": -0.002659626863976222, + "expected_calibration_error_10bin": 0.002659626863976221, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7738304607808653 + }, + { + "valid": 2200, + "positives": 40, + "negatives": 2160, + "auroc": 0.7104976851851852, + "auprc": 0.05160142650092074, + "brier": 0.017658143366041327, + "calibration": { + "observed_rate": 0.01818181818181818, + "mean_prediction": 0.015415344735480506, + "calibration_in_the_large": -0.0027664734463376753, + "expected_calibration_error_10bin": 0.00356887971537865, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7738304607808653 + }, + { + "valid": 2200, + "positives": 45, + "negatives": 2155, + "auroc": 0.7053673627223511, + "auprc": 0.05129530016884236, + "brier": 0.019870590090395598, + "calibration": { + "observed_rate": 0.020454545454545454, + "mean_prediction": 0.01731633365752218, + "calibration_in_the_large": -0.0031382117970232756, + "expected_calibration_error_10bin": 0.004282725515129809, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7738304607808653 + }, + { + "valid": 2200, + "positives": 47, + "negatives": 2153, + "auroc": 0.69276911978338, + "auprc": 0.050323200647869576, + "brier": 0.020810416691827482, + "calibration": { + "observed_rate": 0.021363636363636362, + "mean_prediction": 0.019063140515036967, + "calibration_in_the_large": -0.0023004958485993952, + "expected_calibration_error_10bin": 0.004682490410314956, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7738304607808653 + }, + { + "valid": 2200, + "positives": 53, + "negatives": 2147, + "auroc": 0.6971113708465521, + "auprc": 0.0581083095477662, + "brier": 0.023332918783282718, + "calibration": { + "observed_rate": 0.02409090909090909, + "mean_prediction": 0.02132940800849941, + "calibration_in_the_large": -0.0027615010824096793, + "expected_calibration_error_10bin": 0.0056972243316175215, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7738304607808653 + }, + { + "valid": 2200, + "positives": 56, + "negatives": 2144, + "auroc": 0.6906733075692963, + "auprc": 0.058442208380564846, + "brier": 0.02467274615457255, + "calibration": { + "observed_rate": 0.025454545454545455, + "mean_prediction": 0.022409272912455806, + "calibration_in_the_large": -0.003045272542089649, + "expected_calibration_error_10bin": 0.006670441830118014, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7738304607808653 + }, + { + "valid": 2200, + "positives": 60, + "negatives": 2140, + "auroc": 0.6933956386292834, + "auprc": 0.06132756761539868, + "brier": 0.026379276162270152, + "calibration": { + "observed_rate": 0.02727272727272727, + "mean_prediction": 0.023728734993068924, + "calibration_in_the_large": -0.003543992279658348, + "expected_calibration_error_10bin": 0.005826687061026775, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7738304607808653 + }, + { + "valid": 2200, + "positives": 66, + "negatives": 2134, + "auroc": 0.6838061969270967, + "auprc": 0.06416653031358138, + "brier": 0.02898033344551181, + "calibration": { + "observed_rate": 0.03, + "mean_prediction": 0.02502940755856054, + "calibration_in_the_large": -0.004970592441439457, + "expected_calibration_error_10bin": 0.007654343970352785, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7738304607808653 + }, + { + "valid": 2200, + "positives": 68, + "negatives": 2132, + "auroc": 0.6810299635801788, + "auprc": 0.06346128655986007, + "brier": 0.02991311912645362, + "calibration": { + "observed_rate": 0.03090909090909091, + "mean_prediction": 0.026175642668015576, + "calibration_in_the_large": -0.0047334482410753345, + "expected_calibration_error_10bin": 0.008877513099631128, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7738304607808653 + }, + { + "valid": 2200, + "positives": 72, + "negatives": 2128, + "auroc": 0.6888640873015873, + "auprc": 0.0685987590697164, + "brier": 0.03156528892683193, + "calibration": { + "observed_rate": 0.03272727272727273, + "mean_prediction": 0.027364625403636388, + "calibration_in_the_large": -0.005362647323636342, + "expected_calibration_error_10bin": 0.009481722467515446, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7738304607808653 + }, + { + "valid": 2200, + "positives": 72, + "negatives": 2128, + "auroc": 0.6888706140350878, + "auprc": 0.06849926409374087, + "brier": 0.0315711214433349, + "calibration": { + "observed_rate": 0.03272727272727273, + "mean_prediction": 0.02763315269284331, + "calibration_in_the_large": -0.005094120034429418, + "expected_calibration_error_10bin": 0.009691637340583837, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7738304607808653 + } + ], + "reason": null + }, + "F33": { + "time_averaged_auroc": 0.8267764649702113, + "time_averaged_auprc": 0.019222057398618424, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2800, + "positives": 6, + "negatives": 2794, + "auroc": 0.8020758768790265, + "auprc": 0.01578623809032618, + "brier": 0.002147451706930186, + "calibration": { + "observed_rate": 0.002142857142857143, + "mean_prediction": 0.001950582018856234, + "calibration_in_the_large": -0.00019227512400090893, + "expected_calibration_error_10bin": 0.00019227512400090893, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + { + "valid": 2800, + "positives": 7, + "negatives": 2793, + "auroc": 0.8169914582374304, + "auprc": 0.016076624672293198, + "brier": 0.0025139365929516037, + "calibration": { + "observed_rate": 0.0025, + "mean_prediction": 0.0024266396972117427, + "calibration_in_the_large": -7.336030278825732e-05, + "expected_calibration_error_10bin": 7.336030278825732e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + { + "valid": 2800, + "positives": 7, + "negatives": 2793, + "auroc": 0.8112628510050637, + "auprc": 0.015446275815123601, + "brier": 0.002524074859647157, + "calibration": { + "observed_rate": 0.0025, + "mean_prediction": 0.0027645088072495126, + "calibration_in_the_large": 0.00026450880724951257, + "expected_calibration_error_10bin": 0.00026450880724951257, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + { + "valid": 2800, + "positives": 7, + "negatives": 2793, + "auroc": 0.814996675361874, + "auprc": 0.015445997183049797, + "brier": 0.0025322860815741198, + "calibration": { + "observed_rate": 0.0025, + "mean_prediction": 0.0030071841075622226, + "calibration_in_the_large": 0.0005071841075622225, + "expected_calibration_error_10bin": 0.0005071841075622227, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + { + "valid": 2800, + "positives": 7, + "negatives": 2793, + "auroc": 0.80957495780267, + "auprc": 0.015205322564213903, + "brier": 0.0025388850371496304, + "calibration": { + "observed_rate": 0.0025, + "mean_prediction": 0.003222753161115049, + "calibration_in_the_large": 0.0007227531611150488, + "expected_calibration_error_10bin": 0.0007227531611150492, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + { + "valid": 2800, + "positives": 9, + "negatives": 2791, + "auroc": 0.8272622317767427, + "auprc": 0.01808137726611524, + "brier": 0.003240727418425967, + "calibration": { + "observed_rate": 0.0032142857142857142, + "mean_prediction": 0.003410499684948393, + "calibration_in_the_large": 0.0001962139706626789, + "expected_calibration_error_10bin": 0.00019621397066267872, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + { + "valid": 2800, + "positives": 11, + "negatives": 2789, + "auroc": 0.8336647217966687, + "auprc": 0.021092342826404428, + "brier": 0.003938457966525958, + "calibration": { + "observed_rate": 0.003928571428571429, + "mean_prediction": 0.0035770616991417877, + "calibration_in_the_large": -0.0003515097294296411, + "expected_calibration_error_10bin": 0.0006052251966697699, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + { + "valid": 2800, + "positives": 11, + "negatives": 2789, + "auroc": 0.8330780012386323, + "auprc": 0.020925113938296786, + "brier": 0.003946055171557285, + "calibration": { + "observed_rate": 0.003928571428571429, + "mean_prediction": 0.0038148442090277968, + "calibration_in_the_large": -0.00011372721954363207, + "expected_calibration_error_10bin": 0.0003783756261769408, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + { + "valid": 2800, + "positives": 11, + "negatives": 2789, + "auroc": 0.832556471853711, + "auprc": 0.02086177673186106, + "brier": 0.003948426039545312, + "calibration": { + "observed_rate": 0.003928571428571429, + "mean_prediction": 0.003917393603023811, + "calibration_in_the_large": -1.1177825547617481e-05, + "expected_calibration_error_10bin": 0.00027936506637810696, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + { + "valid": 2800, + "positives": 12, + "negatives": 2788, + "auroc": 0.8423900047824008, + "auprc": 0.022824624541810987, + "brier": 0.0043015245149683485, + "calibration": { + "observed_rate": 0.004285714285714286, + "mean_prediction": 0.004166198352031643, + "calibration_in_the_large": -0.00011951593368264308, + "expected_calibration_error_10bin": 0.0004709277510119133, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + { + "valid": 2800, + "positives": 12, + "negatives": 2788, + "auroc": 0.8421807747489239, + "auprc": 0.022862588165082298, + "brier": 0.004304042742726264, + "calibration": { + "observed_rate": 0.004285714285714286, + "mean_prediction": 0.004313432228560227, + "calibration_in_the_large": 2.7717942845941097e-05, + "expected_calibration_error_10bin": 0.00040176841276531443, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + { + "valid": 2800, + "positives": 12, + "negatives": 2788, + "auroc": 0.8410748445719751, + "auprc": 0.022642887836617377, + "brier": 0.0043113424516648775, + "calibration": { + "observed_rate": 0.004285714285714286, + "mean_prediction": 0.004508895076201692, + "calibration_in_the_large": 0.00022318079048740634, + "expected_calibration_error_10bin": 0.0005094983690261354, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + { + "valid": 2800, + "positives": 12, + "negatives": 2788, + "auroc": 0.8409851745576279, + "auprc": 0.02263557655084457, + "brier": 0.004313444935458861, + "calibration": { + "observed_rate": 0.004285714285714286, + "mean_prediction": 0.004558730113112688, + "calibration_in_the_large": 0.0002730158273984021, + "expected_calibration_error_10bin": 0.0004670368311339453, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + } + ], + "reason": null + }, + "F39": { + "time_averaged_auroc": 0.7531356710514246, + "time_averaged_auprc": 0.024013586418384934, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2801, + "positives": 5, + "negatives": 2796, + "auroc": 0.7849070100143062, + "auprc": 0.012662057920235541, + "brier": 0.0017815501855627243, + "calibration": { + "observed_rate": 0.001785076758300607, + "mean_prediction": 0.0003315353487791327, + "calibration_in_the_large": -0.0014535414095214743, + "expected_calibration_error_10bin": 0.0014535414095214743, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 6, + "negatives": 2795, + "auroc": 0.8182468694096601, + "auprc": 0.021508389546929695, + "brier": 0.002134057447659124, + "calibration": { + "observed_rate": 0.0021420921099607284, + "mean_prediction": 0.00045381199126796955, + "calibration_in_the_large": -0.0016882801186927589, + "expected_calibration_error_10bin": 0.0016882801186927589, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 7, + "negatives": 2794, + "auroc": 0.7411289497903671, + "auprc": 0.020365374791328338, + "brier": 0.002485469798772896, + "calibration": { + "observed_rate": 0.0024991074616208496, + "mean_prediction": 0.0008680422733222781, + "calibration_in_the_large": -0.0016310651882985715, + "expected_calibration_error_10bin": 0.0016310651882985715, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 8, + "negatives": 2793, + "auroc": 0.7700053705692803, + "auprc": 0.02989739036748698, + "brier": 0.0028323055587950265, + "calibration": { + "observed_rate": 0.002856122813280971, + "mean_prediction": 0.0010901853873481544, + "calibration_in_the_large": -0.0017659374259328168, + "expected_calibration_error_10bin": 0.0017659374259328168, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 8, + "negatives": 2793, + "auroc": 0.7695578231292517, + "auprc": 0.029734549673674827, + "brier": 0.002828950052415542, + "calibration": { + "observed_rate": 0.002856122813280971, + "mean_prediction": 0.0013400819741891628, + "calibration_in_the_large": -0.0015160408390918084, + "expected_calibration_error_10bin": 0.0015160408390918084, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 9, + "negatives": 2792, + "auroc": 0.7722063037249284, + "auprc": 0.027159277007854348, + "brier": 0.0031845884466793935, + "calibration": { + "observed_rate": 0.0032131381649410924, + "mean_prediction": 0.0013905402867690122, + "calibration_in_the_large": -0.0018225978781720802, + "expected_calibration_error_10bin": 0.0018225978781720802, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 9, + "negatives": 2792, + "auroc": 0.7737981534543139, + "auprc": 0.027240467537345707, + "brier": 0.003183005100251665, + "calibration": { + "observed_rate": 0.0032131381649410924, + "mean_prediction": 0.0014851111714773977, + "calibration_in_the_large": -0.0017280269934636947, + "expected_calibration_error_10bin": 0.0017280269934636947, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 10, + "negatives": 2791, + "auroc": 0.7719097097814404, + "auprc": 0.0253800571251792, + "brier": 0.003538653848204094, + "calibration": { + "observed_rate": 0.003570153516601214, + "mean_prediction": 0.0015500609558289087, + "calibration_in_the_large": -0.0020200925607723056, + "expected_calibration_error_10bin": 0.0020200925607723056, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 10, + "negatives": 2791, + "auroc": 0.7710498029380151, + "auprc": 0.02525741943809015, + "brier": 0.003536836041760508, + "calibration": { + "observed_rate": 0.003570153516601214, + "mean_prediction": 0.0017138647922834832, + "calibration_in_the_large": -0.0018562887243177308, + "expected_calibration_error_10bin": 0.0018562887243177308, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 11, + "negatives": 2790, + "auroc": 0.7049853372434017, + "auprc": 0.023198870716046538, + "brier": 0.003893003181079886, + "calibration": { + "observed_rate": 0.003927168868261335, + "mean_prediction": 0.0018079421203896233, + "calibration_in_the_large": -0.0021192267478717117, + "expected_calibration_error_10bin": 0.0021192267478717117, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 11, + "negatives": 2790, + "auroc": 0.705050505050505, + "auprc": 0.023261068393635894, + "brier": 0.003891221049888677, + "calibration": { + "observed_rate": 0.003927168868261335, + "mean_prediction": 0.0019588015163559836, + "calibration_in_the_large": -0.0019683673519053516, + "expected_calibration_error_10bin": 0.0019683673519053516, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 11, + "negatives": 2790, + "auroc": 0.7037797328119909, + "auprc": 0.023064552060905887, + "brier": 0.003891258114101535, + "calibration": { + "observed_rate": 0.003927168868261335, + "mean_prediction": 0.0020289900786961074, + "calibration_in_the_large": -0.0018981787895652278, + "expected_calibration_error_10bin": 0.0018981787895652278, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 11, + "negatives": 2790, + "auroc": 0.704138155751059, + "auprc": 0.02344714886029102, + "brier": 0.0038900345210111185, + "calibration": { + "observed_rate": 0.003927168868261335, + "mean_prediction": 0.0020819777720988523, + "calibration_in_the_large": -0.0018451910961624829, + "expected_calibration_error_10bin": 0.0018451910961624829, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + } + ], + "reason": null + }, + "F41": { + "time_averaged_auroc": 0.7423101806465204, + "time_averaged_auprc": 0.08066227280629977, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2247, + "positives": 16, + "negatives": 2231, + "auroc": 0.7753809950694756, + "auprc": 0.02932012238662971, + "brier": 0.007024504007670708, + "calibration": { + "observed_rate": 0.007120605251446373, + "mean_prediction": 0.00933156159020097, + "calibration_in_the_large": 0.0022109563387545973, + "expected_calibration_error_10bin": 0.0022109563387545973, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7903622933520928 + }, + { + "valid": 2247, + "positives": 34, + "negatives": 2213, + "auroc": 0.7731984795725791, + "auprc": 0.06207467589833596, + "brier": 0.01457984279337801, + "calibration": { + "observed_rate": 0.015131286159323543, + "mean_prediction": 0.014319953877867614, + "calibration_in_the_large": -0.0008113322814559294, + "expected_calibration_error_10bin": 0.0010590724288318072, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7903622933520928 + }, + { + "valid": 2247, + "positives": 43, + "negatives": 2204, + "auroc": 0.743669016165112, + "auprc": 0.06122986512969179, + "brier": 0.018464303769352132, + "calibration": { + "observed_rate": 0.01913662661326213, + "mean_prediction": 0.01783317250067917, + "calibration_in_the_large": -0.0013034541125829593, + "expected_calibration_error_10bin": 0.001860409164418889, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7903622933520928 + }, + { + "valid": 2247, + "positives": 51, + "negatives": 2196, + "auroc": 0.7434015500553591, + "auprc": 0.07645383776754433, + "brier": 0.021720445726457423, + "calibration": { + "observed_rate": 0.022696929238985315, + "mean_prediction": 0.020519280598998737, + "calibration_in_the_large": -0.0021776486399865784, + "expected_calibration_error_10bin": 0.002624398954475857, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7903622933520928 + }, + { + "valid": 2247, + "positives": 61, + "negatives": 2186, + "auroc": 0.7416195461431164, + "auprc": 0.08234323992580456, + "brier": 0.025844285709059712, + "calibration": { + "observed_rate": 0.027147307521139297, + "mean_prediction": 0.022912747582455314, + "calibration_in_the_large": -0.0042345599386839836, + "expected_calibration_error_10bin": 0.004277331782153649, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7903622933520928 + }, + { + "valid": 2247, + "positives": 66, + "negatives": 2181, + "auroc": 0.7434524057632723, + "auprc": 0.0906911793259779, + "brier": 0.02780641516086947, + "calibration": { + "observed_rate": 0.029372496662216287, + "mean_prediction": 0.02484207684223917, + "calibration_in_the_large": -0.004530419819977118, + "expected_calibration_error_10bin": 0.005370112813463743, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7903622933520928 + }, + { + "valid": 2247, + "positives": 72, + "negatives": 2175, + "auroc": 0.7409578544061303, + "auprc": 0.09193743743430928, + "brier": 0.03030833060045949, + "calibration": { + "observed_rate": 0.03204272363150868, + "mean_prediction": 0.02674758091769345, + "calibration_in_the_large": -0.005295142713815232, + "expected_calibration_error_10bin": 0.007354919071322529, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7903622933520928 + }, + { + "valid": 2247, + "positives": 74, + "negatives": 2173, + "auroc": 0.7353888633225955, + "auprc": 0.0908805482761876, + "brier": 0.031166748964437576, + "calibration": { + "observed_rate": 0.032932799287939477, + "mean_prediction": 0.028246665699428183, + "calibration_in_the_large": -0.004686133588511294, + "expected_calibration_error_10bin": 0.006723457165468613, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7903622933520928 + }, + { + "valid": 2247, + "positives": 77, + "negatives": 2170, + "auroc": 0.7272787120713388, + "auprc": 0.09053246053254187, + "brier": 0.03245417048531365, + "calibration": { + "observed_rate": 0.03426791277258567, + "mean_prediction": 0.029958972679361998, + "calibration_in_the_large": -0.004308940093223669, + "expected_calibration_error_10bin": 0.007001410324914395, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7903622933520928 + }, + { + "valid": 2247, + "positives": 78, + "negatives": 2169, + "auroc": 0.7299771843340308, + "auprc": 0.09245698768727251, + "brier": 0.03283375178665664, + "calibration": { + "observed_rate": 0.03471295060080107, + "mean_prediction": 0.031277016698849906, + "calibration_in_the_large": -0.0034359339019511617, + "expected_calibration_error_10bin": 0.007576267549566658, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7903622933520928 + }, + { + "valid": 2247, + "positives": 78, + "negatives": 2169, + "auroc": 0.7299890059226158, + "auprc": 0.09237787037314801, + "brier": 0.03284788715497202, + "calibration": { + "observed_rate": 0.03471295060080107, + "mean_prediction": 0.032586812621807744, + "calibration_in_the_large": -0.002126137978993324, + "expected_calibration_error_10bin": 0.005524869031470947, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7903622933520928 + }, + { + "valid": 2247, + "positives": 80, + "negatives": 2167, + "auroc": 0.7329257037378865, + "auprc": 0.09420440055984215, + "brier": 0.03365665473866417, + "calibration": { + "observed_rate": 0.035603026257231864, + "mean_prediction": 0.03402464826593178, + "calibration_in_the_large": -0.0015783779913000826, + "expected_calibration_error_10bin": 0.0065247758615883875, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7903622933520928 + }, + { + "valid": 2247, + "positives": 80, + "negatives": 2167, + "auroc": 0.7327930318412552, + "auprc": 0.0941069211846112, + "brier": 0.033662355033850636, + "calibration": { + "observed_rate": 0.035603026257231864, + "mean_prediction": 0.03432463991524536, + "calibration_in_the_large": -0.001278386341986501, + "expected_calibration_error_10bin": 0.006443344934979843, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7903622933520928 + } + ], + "reason": null + }, + "F43": { + "time_averaged_auroc": 0.7978249307613243, + "time_averaged_auprc": 0.032473405954749075, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2734, + "positives": 6, + "negatives": 2728, + "auroc": 0.9480083088954057, + "auprc": 0.03718861579257154, + "brier": 0.0021642162232602138, + "calibration": { + "observed_rate": 0.0021945866861741038, + "mean_prediction": 0.0019348941200335674, + "calibration_in_the_large": -0.0002596925661405363, + "expected_calibration_error_10bin": 0.0002596925661405363, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 9, + "negatives": 2725, + "auroc": 0.8425280326197757, + "auprc": 0.04509556165277829, + "brier": 0.0032250237862170503, + "calibration": { + "observed_rate": 0.0032918800292611556, + "mean_prediction": 0.00292259295505588, + "calibration_in_the_large": -0.00036928707420527543, + "expected_calibration_error_10bin": 0.00036928707420527543, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 13, + "negatives": 2721, + "auroc": 0.7988578859582167, + "auprc": 0.033814470139785474, + "brier": 0.004680828909832235, + "calibration": { + "observed_rate": 0.004754937820043892, + "mean_prediction": 0.003652393582186133, + "calibration_in_the_large": -0.001102544237857759, + "expected_calibration_error_10bin": 0.0011854216459031978, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 15, + "negatives": 2719, + "auroc": 0.7968615912713007, + "auprc": 0.033204105766258415, + "brier": 0.005401840747750766, + "calibration": { + "observed_rate": 0.005486466715435259, + "mean_prediction": 0.003974604216594509, + "calibration_in_the_large": -0.00151186249884075, + "expected_calibration_error_10bin": 0.0015977178445423467, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 15, + "negatives": 2719, + "auroc": 0.8014466102733848, + "auprc": 0.032819243880147626, + "brier": 0.00540412798413203, + "calibration": { + "observed_rate": 0.005486466715435259, + "mean_prediction": 0.004397884094891564, + "calibration_in_the_large": -0.0010885826205436957, + "expected_calibration_error_10bin": 0.0013326153783596475, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 16, + "negatives": 2718, + "auroc": 0.8103844738778514, + "auprc": 0.033133757680017174, + "brier": 0.005763549924386733, + "calibration": { + "observed_rate": 0.005852231163130944, + "mean_prediction": 0.004883392935313839, + "calibration_in_the_large": -0.0009688382278171051, + "expected_calibration_error_10bin": 0.0012311094619028263, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 16, + "negatives": 2718, + "auroc": 0.8114652317880795, + "auprc": 0.03203603486788463, + "brier": 0.005772011379419505, + "calibration": { + "observed_rate": 0.005852231163130944, + "mean_prediction": 0.00523587431196983, + "calibration_in_the_large": -0.000616356851161114, + "expected_calibration_error_10bin": 0.0009088633806576616, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 18, + "negatives": 2716, + "auroc": 0.7888029782359679, + "auprc": 0.03060840304620248, + "brier": 0.006504003246221012, + "calibration": { + "observed_rate": 0.006583760058522311, + "mean_prediction": 0.00569603611714627, + "calibration_in_the_large": -0.0008877239413760413, + "expected_calibration_error_10bin": 0.0012799416836565766, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 18, + "negatives": 2716, + "auroc": 0.7887416134838815, + "auprc": 0.030238186388313746, + "brier": 0.00651846622883054, + "calibration": { + "observed_rate": 0.006583760058522311, + "mean_prediction": 0.006072434257488475, + "calibration_in_the_large": -0.0005113258010338365, + "expected_calibration_error_10bin": 0.0010170374200000627, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 20, + "negatives": 2714, + "auroc": 0.7478260869565218, + "auprc": 0.028676826089361236, + "brier": 0.0072515010540369455, + "calibration": { + "observed_rate": 0.0073152889539136795, + "mean_prediction": 0.006284718063682789, + "calibration_in_the_large": -0.0010305708902308905, + "expected_calibration_error_10bin": 0.0018502434351734937, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 20, + "negatives": 2714, + "auroc": 0.7478076639646278, + "auprc": 0.028517845992262, + "brier": 0.007260638563108638, + "calibration": { + "observed_rate": 0.0073152889539136795, + "mean_prediction": 0.006612135017992951, + "calibration_in_the_large": -0.0007031539359207287, + "expected_calibration_error_10bin": 0.0010595376993215763, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 20, + "negatives": 2714, + "auroc": 0.7483971997052321, + "auprc": 0.028708376209623687, + "brier": 0.007269189465053304, + "calibration": { + "observed_rate": 0.0073152889539136795, + "mean_prediction": 0.006937395951068697, + "calibration_in_the_large": -0.00037789300284498274, + "expected_calibration_error_10bin": 0.0010074916224044107, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 21, + "negatives": 2713, + "auroc": 0.740596422866972, + "auprc": 0.028112849906531744, + "brier": 0.007634414934199787, + "calibration": { + "observed_rate": 0.007681053401609363, + "mean_prediction": 0.006973365897955898, + "calibration_in_the_large": -0.0007076875036534655, + "expected_calibration_error_10bin": 0.001342820503865454, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + } + ], + "reason": null + }, + "F60": { + "time_averaged_auroc": 0.9438535925549031, + "time_averaged_auprc": 0.06698292860819224, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2818, + "positives": 2, + "negatives": 2816, + "auroc": 0.9490411931818182, + "auprc": 0.025484448786842532, + "brier": 0.0007065110722855804, + "calibration": { + "observed_rate": 0.0007097232079489, + "mean_prediction": 0.0008556296906177803, + "calibration_in_the_large": 0.00014590648266888035, + "expected_calibration_error_10bin": 0.00014590648266888035, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 4, + "negatives": 2814, + "auroc": 0.9678393745557925, + "auprc": 0.06306609740670462, + "brier": 0.0013772516378338412, + "calibration": { + "observed_rate": 0.0014194464158978, + "mean_prediction": 0.0011765309159644031, + "calibration_in_the_large": -0.00024291549993339678, + "expected_calibration_error_10bin": 0.00024291549993339678, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.9391397084962674, + "auprc": 0.048549935716287, + "brier": 0.0017309836550783023, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.0015666432169897883, + "calibration_in_the_large": -0.00020766480288246145, + "expected_calibration_error_10bin": 0.00020766480288246145, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.9386420191965873, + "auprc": 0.04794729046468952, + "brier": 0.0017334674122508583, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.0018423261570898405, + "calibration_in_the_large": 6.801813721759079e-05, + "expected_calibration_error_10bin": 6.801813721759074e-05, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.9386420191965873, + "auprc": 0.04895642628941878, + "brier": 0.0017361364245033384, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.002085393892273952, + "calibration_in_the_large": 0.0003110858724017021, + "expected_calibration_error_10bin": 0.000311085872401702, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.9364379665837185, + "auprc": 0.05106263928456095, + "brier": 0.0017402064504364904, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.002295084522997074, + "calibration_in_the_large": 0.0005207765031248241, + "expected_calibration_error_10bin": 0.0005207765031248236, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.9351581940988268, + "auprc": 0.051706475604059055, + "brier": 0.001743739912099231, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.0024297717087209494, + "calibration_in_the_large": 0.0006554636888486997, + "expected_calibration_error_10bin": 0.0006554636888486994, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.9348738002132955, + "auprc": 0.05169320407182748, + "brier": 0.0017484362112178205, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.0025933071734136003, + "calibration_in_the_large": 0.0008189991535413506, + "expected_calibration_error_10bin": 0.0008189991535413508, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.9466571834992887, + "auprc": 0.0970029704585712, + "brier": 0.002026570139812057, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.002786846447535079, + "calibration_in_the_large": 0.0006576768236883791, + "expected_calibration_error_10bin": 0.0006576768236883791, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.9465979137031768, + "auprc": 0.09699954744220919, + "brier": 0.0020289791937278933, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.002944850788604769, + "calibration_in_the_large": 0.0008156811647580691, + "expected_calibration_error_10bin": 0.0008156811647580692, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.946538643907065, + "auprc": 0.09700196773047097, + "brier": 0.0020329006254373493, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.0031195275236181076, + "calibration_in_the_large": 0.0009903578997714079, + "expected_calibration_error_10bin": 0.000990357899771408, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.9452939781887151, + "auprc": 0.09565512587113821, + "brier": 0.0020373982365895706, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.003339735646510413, + "calibration_in_the_large": 0.001210566022663713, + "expected_calibration_error_10bin": 0.0012105660226637133, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.9452347083926032, + "auprc": 0.09565194277971983, + "brier": 0.002038088795613149, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.003364060592218277, + "calibration_in_the_large": 0.0012348909683715771, + "expected_calibration_error_10bin": 0.0012348909683715771, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + } + ], + "reason": null + }, + "F90": { + "time_averaged_auroc": 0.9162839141734044, + "time_averaged_auprc": 0.03555713078453741, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2775, + "positives": 3, + "negatives": 2772, + "auroc": 0.8591871091871092, + "auprc": 0.011672876579649669, + "brier": 0.0010780725921398174, + "calibration": { + "observed_rate": 0.001081081081081081, + "mean_prediction": 0.00037048208863353947, + "calibration_in_the_large": -0.0007105989924475417, + "expected_calibration_error_10bin": 0.0007105989924475417, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + { + "valid": 2775, + "positives": 5, + "negatives": 2770, + "auroc": 0.9250541516245487, + "auprc": 0.03065167597533549, + "brier": 0.0017816133976305511, + "calibration": { + "observed_rate": 0.0018018018018018018, + "mean_prediction": 0.0009664319541250505, + "calibration_in_the_large": -0.0008353698476767514, + "expected_calibration_error_10bin": 0.0008353698476767514, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + { + "valid": 2775, + "positives": 5, + "negatives": 2770, + "auroc": 0.9209386281588448, + "auprc": 0.028962161456954006, + "brier": 0.0017799981584100955, + "calibration": { + "observed_rate": 0.0018018018018018018, + "mean_prediction": 0.001294348895680086, + "calibration_in_the_large": -0.0005074529061217159, + "expected_calibration_error_10bin": 0.0005074529061217159, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + { + "valid": 2775, + "positives": 6, + "negatives": 2769, + "auroc": 0.9244612977007344, + "auprc": 0.03233241083178196, + "brier": 0.0021321083718183094, + "calibration": { + "observed_rate": 0.002162162162162162, + "mean_prediction": 0.0017006340374057611, + "calibration_in_the_large": -0.00046152812475640107, + "expected_calibration_error_10bin": 0.00046152812475640107, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + { + "valid": 2775, + "positives": 7, + "negatives": 2768, + "auroc": 0.9335260115606936, + "auprc": 0.044497078291474444, + "brier": 0.0024717358133727707, + "calibration": { + "observed_rate": 0.0025225225225225223, + "mean_prediction": 0.001764394964409, + "calibration_in_the_large": -0.0007581275581135223, + "expected_calibration_error_10bin": 0.0007581275581135223, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + { + "valid": 2775, + "positives": 7, + "negatives": 2768, + "auroc": 0.9331647398843931, + "auprc": 0.04446500027774506, + "brier": 0.002471573146720172, + "calibration": { + "observed_rate": 0.0025225225225225223, + "mean_prediction": 0.001800455219451357, + "calibration_in_the_large": -0.0007220673030711655, + "expected_calibration_error_10bin": 0.0007220673030711655, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + { + "valid": 2775, + "positives": 7, + "negatives": 2768, + "auroc": 0.9322873658133773, + "auprc": 0.04224860070407096, + "brier": 0.0024694517199446734, + "calibration": { + "observed_rate": 0.0025225225225225223, + "mean_prediction": 0.002226512260141946, + "calibration_in_the_large": -0.00029601026238057623, + "expected_calibration_error_10bin": 0.00029601026238057623, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + { + "valid": 2775, + "positives": 7, + "negatives": 2768, + "auroc": 0.9299132947976878, + "auprc": 0.04054290941653833, + "brier": 0.0024712853499023303, + "calibration": { + "observed_rate": 0.0025225225225225223, + "mean_prediction": 0.002422746996072657, + "calibration_in_the_large": -9.977552644986534e-05, + "expected_calibration_error_10bin": 9.977552644986534e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + { + "valid": 2775, + "positives": 7, + "negatives": 2768, + "auroc": 0.9288810900082577, + "auprc": 0.04003905031786247, + "brier": 0.0024723332705590996, + "calibration": { + "observed_rate": 0.0025225225225225223, + "mean_prediction": 0.002558325734845549, + "calibration_in_the_large": 3.580321232302683e-05, + "expected_calibration_error_10bin": 3.580321232302683e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + { + "valid": 2775, + "positives": 8, + "negatives": 2767, + "auroc": 0.9062612938200216, + "auprc": 0.03656524659606109, + "brier": 0.002835159108235917, + "calibration": { + "observed_rate": 0.002882882882882883, + "mean_prediction": 0.0030208538759102298, + "calibration_in_the_large": 0.00013797099302734683, + "expected_calibration_error_10bin": 0.00013797099302734683, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + { + "valid": 2775, + "positives": 8, + "negatives": 2767, + "auroc": 0.9059902421395013, + "auprc": 0.03674639568536495, + "brier": 0.002837469034680055, + "calibration": { + "observed_rate": 0.002882882882882883, + "mean_prediction": 0.0032696132676039826, + "calibration_in_the_large": 0.00038673038472109966, + "expected_calibration_error_10bin": 0.00038673038472109966, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + { + "valid": 2775, + "positives": 8, + "negatives": 2767, + "auroc": 0.906035417419588, + "auprc": 0.03676148792915902, + "brier": 0.00283792907986853, + "calibration": { + "observed_rate": 0.002882882882882883, + "mean_prediction": 0.003309416774937491, + "calibration_in_the_large": 0.0004265338920546079, + "expected_calibration_error_10bin": 0.0004265338920546079, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + { + "valid": 2775, + "positives": 8, + "negatives": 2767, + "auroc": 0.9059902421395013, + "auprc": 0.03675780613698883, + "brier": 0.002838048892892355, + "calibration": { + "observed_rate": 0.002882882882882883, + "mean_prediction": 0.0033186088640178315, + "calibration_in_the_large": 0.00043572598113494855, + "expected_calibration_error_10bin": 0.00043572598113494855, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + } + ], + "reason": null + }, + "G25": { + "time_averaged_auroc": 0.7441656124046164, + "time_averaged_auprc": 0.00772407280651457, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2774, + "positives": 1, + "negatives": 2773, + "auroc": 0.988820771727371, + "auprc": 0.03125, + "brier": 0.00035865352803335793, + "calibration": { + "observed_rate": 0.0003604902667627974, + "mean_prediction": 0.000655845262104303, + "calibration_in_the_large": 0.00029535499534150556, + "expected_calibration_error_10bin": 0.00029535499534150556, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 3, + "negatives": 2771, + "auroc": 0.738722482858174, + "auprc": 0.005684989329178713, + "brier": 0.0010796117810217972, + "calibration": { + "observed_rate": 0.0010814708002883922, + "mean_prediction": 0.0010236745398998048, + "calibration_in_the_large": -5.779626038858736e-05, + "expected_calibration_error_10bin": 5.779626038858736e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 4, + "negatives": 2770, + "auroc": 0.7056859205776174, + "auprc": 0.004663416189326027, + "brier": 0.001440755171279085, + "calibration": { + "observed_rate": 0.0014419610670511895, + "mean_prediction": 0.00133044661532685, + "calibration_in_the_large": -0.00011151445172433963, + "expected_calibration_error_10bin": 0.00011151445172433963, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 4, + "negatives": 2770, + "auroc": 0.7024368231046931, + "auprc": 0.00479541903465402, + "brier": 0.0014415702960388806, + "calibration": { + "observed_rate": 0.0014419610670511895, + "mean_prediction": 0.0016022348426059647, + "calibration_in_the_large": 0.0001602737755547752, + "expected_calibration_error_10bin": 0.0001602737755547752, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 4, + "negatives": 2770, + "auroc": 0.7010830324909747, + "auprc": 0.0049331110836462995, + "brier": 0.001442719440893371, + "calibration": { + "observed_rate": 0.0014419610670511895, + "mean_prediction": 0.0018501939946003385, + "calibration_in_the_large": 0.00040823292754914894, + "expected_calibration_error_10bin": 0.00040823292754914894, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 4, + "negatives": 2770, + "auroc": 0.6993682310469314, + "auprc": 0.005019105519062863, + "brier": 0.0014441231044710983, + "calibration": { + "observed_rate": 0.0014419610670511895, + "mean_prediction": 0.0020642409587446607, + "calibration_in_the_large": 0.0006222798916934711, + "expected_calibration_error_10bin": 0.0006222798916934711, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 5, + "negatives": 2769, + "auroc": 0.7369447453954496, + "auprc": 0.006018652962631855, + "brier": 0.001802605497150564, + "calibration": { + "observed_rate": 0.001802451333813987, + "mean_prediction": 0.002335863343825501, + "calibration_in_the_large": 0.0005334120100115142, + "expected_calibration_error_10bin": 0.0005334120100115142, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 6, + "negatives": 2768, + "auroc": 0.7416305394990366, + "auprc": 0.006304849733570848, + "brier": 0.0021622928773115807, + "calibration": { + "observed_rate": 0.0021629416005767843, + "mean_prediction": 0.002542118813350676, + "calibration_in_the_large": 0.0003791772127738919, + "expected_calibration_error_10bin": 0.0003791772127738919, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 6, + "negatives": 2768, + "auroc": 0.7347663776493256, + "auprc": 0.00609445900817606, + "brier": 0.0021644789516617677, + "calibration": { + "observed_rate": 0.0021629416005767843, + "mean_prediction": 0.002811653898060277, + "calibration_in_the_large": 0.0006487122974834928, + "expected_calibration_error_10bin": 0.0006487122974834928, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 6, + "negatives": 2768, + "auroc": 0.7330804431599229, + "auprc": 0.006040214559692786, + "brier": 0.0021656694900716103, + "calibration": { + "observed_rate": 0.0021629416005767843, + "mean_prediction": 0.002932046939825078, + "calibration_in_the_large": 0.0007691053392482935, + "expected_calibration_error_10bin": 0.0007691053392482935, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 6, + "negatives": 2768, + "auroc": 0.7317557803468208, + "auprc": 0.005869412568155138, + "brier": 0.0021678033865473313, + "calibration": { + "observed_rate": 0.0021629416005767843, + "mean_prediction": 0.003088948335252175, + "calibration_in_the_large": 0.0009260067346753909, + "expected_calibration_error_10bin": 0.0009260067346753909, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 8, + "negatives": 2766, + "auroc": 0.7292570498915402, + "auprc": 0.006642861523796685, + "brier": 0.002884649196106699, + "calibration": { + "observed_rate": 0.002883922134102379, + "mean_prediction": 0.0032825499481452134, + "calibration_in_the_large": 0.00039862781404283436, + "expected_calibration_error_10bin": 0.00039862781404283436, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 9, + "negatives": 2765, + "auroc": 0.730600763512156, + "auprc": 0.00709645497279811, + "brier": 0.0032427769639077767, + "calibration": { + "observed_rate": 0.0032444124008651765, + "mean_prediction": 0.003316573552165695, + "calibration_in_the_large": 7.21611513005184e-05, + "expected_calibration_error_10bin": 7.21611513005184e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + } + ], + "reason": null + }, + "G31": { + "time_averaged_auroc": 0.7817725767717527, + "time_averaged_auprc": 0.011498388013795643, + "valid_timepoint_cells": 12, + "timepoints": [ + { + "valid": 2802, + "positives": 0, + "negatives": 2802, + "auroc": null, + "auprc": null, + "brier": 8.523845136010332e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0003934621405896139, + "calibration_in_the_large": 0.0003934621405896139, + "expected_calibration_error_10bin": 0.0003934621405896139, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 1, + "negatives": 2801, + "auroc": 0.702963227418779, + "auprc": 0.0012004801920768306, + "brier": 0.00035994915636367313, + "calibration": { + "observed_rate": 0.00035688793718772306, + "mean_prediction": 0.0007489674791894735, + "calibration_in_the_large": 0.00039207954200175043, + "expected_calibration_error_10bin": 0.00039207954200175043, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 1, + "negatives": 2801, + "auroc": 0.6683327383077472, + "auprc": 0.001075268817204301, + "brier": 0.0003643019430356472, + "calibration": { + "observed_rate": 0.00035688793718772306, + "mean_prediction": 0.0010899033065303332, + "calibration_in_the_large": 0.0007330153693426102, + "expected_calibration_error_10bin": 0.0007330153693426102, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 1, + "negatives": 2801, + "auroc": 0.6769011067475902, + "auprc": 0.0011037527593818985, + "brier": 0.00036768617642854955, + "calibration": { + "observed_rate": 0.00035688793718772306, + "mean_prediction": 0.0012822083805844357, + "calibration_in_the_large": 0.0009253204433967127, + "expected_calibration_error_10bin": 0.0009253204433967127, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 2, + "negatives": 2800, + "auroc": 0.75625, + "auprc": 0.002178445133303766, + "brier": 0.0007260718670532508, + "calibration": { + "observed_rate": 0.0007137758743754461, + "mean_prediction": 0.001464776339251055, + "calibration_in_the_large": 0.000751000464875609, + "expected_calibration_error_10bin": 0.000751000464875609, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 4, + "negatives": 2798, + "auroc": 0.8374731951393852, + "auprc": 0.007548615300202988, + "brier": 0.0014341123506151374, + "calibration": { + "observed_rate": 0.0014275517487508922, + "mean_prediction": 0.0016727239131308993, + "calibration_in_the_large": 0.0002451721643800071, + "expected_calibration_error_10bin": 0.0002451721643800071, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 6, + "negatives": 2796, + "auroc": 0.8795302813543157, + "auprc": 0.02097099041417309, + "brier": 0.0021289274259324383, + "calibration": { + "observed_rate": 0.0021413276231263384, + "mean_prediction": 0.001970565888711958, + "calibration_in_the_large": -0.00017076173441438061, + "expected_calibration_error_10bin": 0.00017076173441438061, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 7, + "negatives": 2795, + "auroc": 0.876309736774853, + "auprc": 0.019703266284266226, + "brier": 0.0024850441277735552, + "calibration": { + "observed_rate": 0.0024982155603140615, + "mean_prediction": 0.002168979270232463, + "calibration_in_the_large": -0.0003292362900815986, + "expected_calibration_error_10bin": 0.0003292362900815986, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 8, + "negatives": 2794, + "auroc": 0.8125, + "auprc": 0.017464761771186058, + "brier": 0.002842114806920983, + "calibration": { + "observed_rate": 0.0028551034975017845, + "mean_prediction": 0.002254802724662498, + "calibration_in_the_large": -0.0006003007728392863, + "expected_calibration_error_10bin": 0.0006003007728392863, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 8, + "negatives": 2794, + "auroc": 0.8117394416607016, + "auprc": 0.01742383286783861, + "brier": 0.002845355138672309, + "calibration": { + "observed_rate": 0.0028551034975017845, + "mean_prediction": 0.0024555131310098647, + "calibration_in_the_large": -0.0003995903664919197, + "expected_calibration_error_10bin": 0.0003995903664919197, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 9, + "negatives": 2793, + "auroc": 0.7870469825357044, + "auprc": 0.016415257412200526, + "brier": 0.003203863962080993, + "calibration": { + "observed_rate": 0.0032119914346895075, + "mean_prediction": 0.0026093603233269436, + "calibration_in_the_large": -0.0006026311113625639, + "expected_calibration_error_10bin": 0.0006026311113625639, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 9, + "negatives": 2793, + "auroc": 0.7861717786529817, + "auprc": 0.016451493471270912, + "brier": 0.0032070275494100373, + "calibration": { + "observed_rate": 0.0032119914346895075, + "mean_prediction": 0.0027700254594437905, + "calibration_in_the_large": -0.000441965975245717, + "expected_calibration_error_10bin": 0.0005906613230670637, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 9, + "negatives": 2793, + "auroc": 0.7860524326689741, + "auprc": 0.016444491742442502, + "brier": 0.0032073337697498044, + "calibration": { + "observed_rate": 0.0032119914346895075, + "mean_prediction": 0.0027890297080474928, + "calibration_in_the_large": -0.0004229617266420147, + "expected_calibration_error_10bin": 0.0005725228149109809, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + } + ], + "reason": null + }, + "G40": { + "time_averaged_auroc": 0.7123539807631807, + "time_averaged_auprc": 0.042001284878025916, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2723, + "positives": 6, + "negatives": 2717, + "auroc": 0.7739541160593792, + "auprc": 0.03360482521659212, + "brier": 0.002183436925550876, + "calibration": { + "observed_rate": 0.0022034520749173708, + "mean_prediction": 0.0011983638651512562, + "calibration_in_the_large": -0.0010050882097661145, + "expected_calibration_error_10bin": 0.0010050882097661145, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + { + "valid": 2723, + "positives": 8, + "negatives": 2715, + "auroc": 0.6296961325966851, + "auprc": 0.023292077811215586, + "brier": 0.002924371960080224, + "calibration": { + "observed_rate": 0.0029379360998898272, + "mean_prediction": 0.0020101686533519603, + "calibration_in_the_large": -0.0009277674465378669, + "expected_calibration_error_10bin": 0.0010105882208445854, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + { + "valid": 2723, + "positives": 11, + "negatives": 2712, + "auroc": 0.7209707696433361, + "auprc": 0.05046801928122835, + "brier": 0.003972893567122419, + "calibration": { + "observed_rate": 0.004039662137348513, + "mean_prediction": 0.0025711523100035477, + "calibration_in_the_large": -0.0014685098273449653, + "expected_calibration_error_10bin": 0.0016786033183076878, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + { + "valid": 2723, + "positives": 17, + "negatives": 2706, + "auroc": 0.7115777574888048, + "auprc": 0.05350793700520603, + "brier": 0.006122453709560073, + "calibration": { + "observed_rate": 0.006243114212265883, + "mean_prediction": 0.0033282106495313153, + "calibration_in_the_large": -0.0029149035627345676, + "expected_calibration_error_10bin": 0.0033374330531672795, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + { + "valid": 2723, + "positives": 18, + "negatives": 2705, + "auroc": 0.7051345245430273, + "auprc": 0.04643530863272691, + "brier": 0.006503602939001611, + "calibration": { + "observed_rate": 0.006610356224752111, + "mean_prediction": 0.004123858607202127, + "calibration_in_the_large": -0.002486497617549984, + "expected_calibration_error_10bin": 0.0032071136412734754, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + { + "valid": 2723, + "positives": 20, + "negatives": 2703, + "auroc": 0.7258231594524602, + "auprc": 0.04755586750564753, + "brier": 0.007222365284790956, + "calibration": { + "observed_rate": 0.007344840249724568, + "mean_prediction": 0.004581255401183091, + "calibration_in_the_large": -0.002763584848541477, + "expected_calibration_error_10bin": 0.0031343181106130063, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + { + "valid": 2723, + "positives": 21, + "negatives": 2702, + "auroc": 0.714973035846463, + "auprc": 0.04300904939932078, + "brier": 0.007611608355646115, + "calibration": { + "observed_rate": 0.007712082262210797, + "mean_prediction": 0.0052044240335074625, + "calibration_in_the_large": -0.0025076582287033343, + "expected_calibration_error_10bin": 0.0029292985964529277, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + { + "valid": 2723, + "positives": 21, + "negatives": 2702, + "auroc": 0.7182334073525783, + "auprc": 0.04205806241204871, + "brier": 0.00761658104916341, + "calibration": { + "observed_rate": 0.007712082262210797, + "mean_prediction": 0.005494813961732123, + "calibration_in_the_large": -0.0022172683004786737, + "expected_calibration_error_10bin": 0.002653487903050204, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + { + "valid": 2723, + "positives": 24, + "negatives": 2699, + "auroc": 0.7124861059651723, + "auprc": 0.04244685021187614, + "brier": 0.008704144268722016, + "calibration": { + "observed_rate": 0.008813808299669483, + "mean_prediction": 0.005871766172786385, + "calibration_in_the_large": -0.0029420421268830984, + "expected_calibration_error_10bin": 0.0034042321495635526, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + { + "valid": 2723, + "positives": 24, + "negatives": 2699, + "auroc": 0.7109731999505989, + "auprc": 0.04110383866715208, + "brier": 0.008718335223242455, + "calibration": { + "observed_rate": 0.008813808299669483, + "mean_prediction": 0.006218125757299058, + "calibration_in_the_large": -0.002595682542370425, + "expected_calibration_error_10bin": 0.0033808923527583667, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + { + "valid": 2723, + "positives": 24, + "negatives": 2699, + "auroc": 0.7119149067555884, + "auprc": 0.04104283127711398, + "brier": 0.008731291470799759, + "calibration": { + "observed_rate": 0.008813808299669483, + "mean_prediction": 0.006636011263852954, + "calibration_in_the_large": -0.002177797035816529, + "expected_calibration_error_10bin": 0.0030082539731784643, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + { + "valid": 2723, + "positives": 24, + "negatives": 2699, + "auroc": 0.7102167469433124, + "auprc": 0.04084537785025705, + "brier": 0.008753071787513313, + "calibration": { + "observed_rate": 0.008813808299669483, + "mean_prediction": 0.007174190088508323, + "calibration_in_the_large": -0.0016396182111611604, + "expected_calibration_error_10bin": 0.0025205632705413558, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + { + "valid": 2723, + "positives": 25, + "negatives": 2698, + "auroc": 0.7146478873239437, + "auprc": 0.04064665814395168, + "brier": 0.009113990773116571, + "calibration": { + "observed_rate": 0.00918105031215571, + "mean_prediction": 0.007187233951999684, + "calibration_in_the_large": -0.0019938163601560263, + "expected_calibration_error_10bin": 0.0028760185565749378, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + } + ], + "reason": null + }, + "G43": { + "time_averaged_auroc": 0.7249784420761075, + "time_averaged_auprc": 0.03205744368273908, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2725, + "positives": 3, + "negatives": 2722, + "auroc": 0.7239774675483713, + "auprc": 0.00577653790448979, + "brier": 0.0010991296543715876, + "calibration": { + "observed_rate": 0.0011009174311926607, + "mean_prediction": 0.0008527698463329366, + "calibration_in_the_large": -0.000248147584859724, + "expected_calibration_error_10bin": 0.000248147584859724, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9584945480126627 + }, + { + "valid": 2725, + "positives": 7, + "negatives": 2718, + "auroc": 0.627772521812257, + "auprc": 0.03570788809792049, + "brier": 0.002555392797251187, + "calibration": { + "observed_rate": 0.002568807339449541, + "mean_prediction": 0.0011984498496914982, + "calibration_in_the_large": -0.001370357489758043, + "expected_calibration_error_10bin": 0.001370357489758043, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9584945480126627 + }, + { + "valid": 2725, + "positives": 8, + "negatives": 2717, + "auroc": 0.6630014722119986, + "auprc": 0.0348861094518006, + "brier": 0.002916238851861578, + "calibration": { + "observed_rate": 0.0029357798165137615, + "mean_prediction": 0.0014597285728967842, + "calibration_in_the_large": -0.0014760512436169772, + "expected_calibration_error_10bin": 0.0014760512436169772, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9584945480126627 + }, + { + "valid": 2725, + "positives": 11, + "negatives": 2714, + "auroc": 0.7004421518054532, + "auprc": 0.02992472270896388, + "brier": 0.004009404675523351, + "calibration": { + "observed_rate": 0.004036697247706422, + "mean_prediction": 0.0017347225447109508, + "calibration_in_the_large": -0.002301974702995471, + "expected_calibration_error_10bin": 0.002301974702995471, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9584945480126627 + }, + { + "valid": 2725, + "positives": 11, + "negatives": 2714, + "auroc": 0.6993702686407182, + "auprc": 0.030627736058988296, + "brier": 0.004007205619699127, + "calibration": { + "observed_rate": 0.004036697247706422, + "mean_prediction": 0.001901046044220977, + "calibration_in_the_large": -0.002135651203485445, + "expected_calibration_error_10bin": 0.002135651203485445, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9584945480126627 + }, + { + "valid": 2725, + "positives": 11, + "negatives": 2714, + "auroc": 0.7013800495745963, + "auprc": 0.030727709972066645, + "brier": 0.0040042873776511756, + "calibration": { + "observed_rate": 0.004036697247706422, + "mean_prediction": 0.0022000915601843147, + "calibration_in_the_large": -0.0018366056875221072, + "expected_calibration_error_10bin": 0.0018366056875221072, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9584945480126627 + }, + { + "valid": 2725, + "positives": 13, + "negatives": 2712, + "auroc": 0.744667574313592, + "auprc": 0.03499296208950519, + "brier": 0.004720877784835226, + "calibration": { + "observed_rate": 0.0047706422018348625, + "mean_prediction": 0.0023872646504699106, + "calibration_in_the_large": -0.002383377551364952, + "expected_calibration_error_10bin": 0.002383377551364952, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9584945480126627 + }, + { + "valid": 2725, + "positives": 15, + "negatives": 2710, + "auroc": 0.7659532595325953, + "auprc": 0.03567421727517575, + "brier": 0.005443428775234246, + "calibration": { + "observed_rate": 0.005504587155963303, + "mean_prediction": 0.002621809692814126, + "calibration_in_the_large": -0.002882777463149177, + "expected_calibration_error_10bin": 0.002882777463149177, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9584945480126627 + }, + { + "valid": 2725, + "positives": 15, + "negatives": 2710, + "auroc": 0.7628782287822878, + "auprc": 0.036045075835557265, + "brier": 0.005439545096571589, + "calibration": { + "observed_rate": 0.005504587155963303, + "mean_prediction": 0.0028250284138329994, + "calibration_in_the_large": -0.0026795587421303037, + "expected_calibration_error_10bin": 0.0026795587421303037, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9584945480126627 + }, + { + "valid": 2725, + "positives": 15, + "negatives": 2710, + "auroc": 0.759950799507995, + "auprc": 0.03630499689689029, + "brier": 0.00543687176642602, + "calibration": { + "observed_rate": 0.005504587155963303, + "mean_prediction": 0.0030161130737562433, + "calibration_in_the_large": -0.00248847408220706, + "expected_calibration_error_10bin": 0.00248847408220706, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9584945480126627 + }, + { + "valid": 2725, + "positives": 15, + "negatives": 2710, + "auroc": 0.7591635916359164, + "auprc": 0.03622591697958672, + "brier": 0.005435488219327, + "calibration": { + "observed_rate": 0.005504587155963303, + "mean_prediction": 0.0031654332256972053, + "calibration_in_the_large": -0.0023391539302660977, + "expected_calibration_error_10bin": 0.0023391539302660977, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9584945480126627 + }, + { + "valid": 2725, + "positives": 15, + "negatives": 2710, + "auroc": 0.7580319803198032, + "auprc": 0.03603604874147774, + "brier": 0.005434659666013713, + "calibration": { + "observed_rate": 0.005504587155963303, + "mean_prediction": 0.003315662029647875, + "calibration_in_the_large": -0.002188925126315428, + "expected_calibration_error_10bin": 0.002188925126315428, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9584945480126627 + }, + { + "valid": 2725, + "positives": 15, + "negatives": 2710, + "auroc": 0.758130381303813, + "auprc": 0.033816845863185334, + "brier": 0.005434417411399636, + "calibration": { + "observed_rate": 0.005504587155963303, + "mean_prediction": 0.0033392021102817953, + "calibration_in_the_large": -0.0021653850456815078, + "expected_calibration_error_10bin": 0.0021653850456815078, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9584945480126627 + } + ], + "reason": null + }, + "G44": { + "time_averaged_auroc": 0.614989096139772, + "time_averaged_auprc": 0.013632553998055026, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2805, + "positives": 1, + "negatives": 2804, + "auroc": 0.7268188302425107, + "auprc": 0.001303780964797914, + "brier": 0.0003569804256429563, + "calibration": { + "observed_rate": 0.00035650623885918, + "mean_prediction": 0.0003940293486687157, + "calibration_in_the_large": 3.752310980953568e-05, + "expected_calibration_error_10bin": 3.752310980953568e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 3, + "negatives": 2802, + "auroc": 0.6004044729954794, + "auprc": 0.019704076309077626, + "brier": 0.0010658433185668124, + "calibration": { + "observed_rate": 0.0010695187165775401, + "mean_prediction": 0.0005681724162717463, + "calibration_in_the_large": -0.0005013463003057939, + "expected_calibration_error_10bin": 0.0005013463003057939, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 3, + "negatives": 2802, + "auroc": 0.5973114442065192, + "auprc": 0.01969164307701588, + "brier": 0.0010659183082318076, + "calibration": { + "observed_rate": 0.0010695187165775401, + "mean_prediction": 0.0006433426565543028, + "calibration_in_the_large": -0.00042617606002323736, + "expected_calibration_error_10bin": 0.00042617606002323736, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 3, + "negatives": 2802, + "auroc": 0.5904116107542232, + "auprc": 0.01867199438893766, + "brier": 0.0010655998746976932, + "calibration": { + "observed_rate": 0.0010695187165775401, + "mean_prediction": 0.0008107353440998934, + "calibration_in_the_large": -0.00025878337247764677, + "expected_calibration_error_10bin": 0.00025878337247764677, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 4, + "negatives": 2801, + "auroc": 0.5988932524098536, + "auprc": 0.014817498691523651, + "brier": 0.0014221237652922644, + "calibration": { + "observed_rate": 0.00142602495543672, + "mean_prediction": 0.0008869189394494512, + "calibration_in_the_large": -0.0005391060159872689, + "expected_calibration_error_10bin": 0.0005391060159872689, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 4, + "negatives": 2801, + "auroc": 0.5976436986790432, + "auprc": 0.012526143911455949, + "brier": 0.0014231507307882146, + "calibration": { + "observed_rate": 0.00142602495543672, + "mean_prediction": 0.0009996475779730978, + "calibration_in_the_large": -0.00042637737746362234, + "expected_calibration_error_10bin": 0.00042637737746362234, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 5, + "negatives": 2800, + "auroc": 0.667, + "auprc": 0.014821480748276111, + "brier": 0.0017761485542771719, + "calibration": { + "observed_rate": 0.0017825311942959, + "mean_prediction": 0.0010938866016358799, + "calibration_in_the_large": -0.0006886445926600202, + "expected_calibration_error_10bin": 0.0006886445926600202, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 5, + "negatives": 2800, + "auroc": 0.6656428571428571, + "auprc": 0.014747361002230869, + "brier": 0.001776273692289373, + "calibration": { + "observed_rate": 0.0017825311942959, + "mean_prediction": 0.0011154379945709837, + "calibration_in_the_large": -0.0006670931997249164, + "expected_calibration_error_10bin": 0.0006670931997249164, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 6, + "negatives": 2799, + "auroc": 0.5659163987138264, + "auprc": 0.012943876416590254, + "brier": 0.002133214817578882, + "calibration": { + "observed_rate": 0.0021390374331550803, + "mean_prediction": 0.0011930402815084633, + "calibration_in_the_large": -0.000945997151646617, + "expected_calibration_error_10bin": 0.000945997151646617, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 7, + "negatives": 2798, + "auroc": 0.5970591238639845, + "auprc": 0.012276685411125724, + "brier": 0.0024889935645264335, + "calibration": { + "observed_rate": 0.0024955436720142605, + "mean_prediction": 0.0012426656308425841, + "calibration_in_the_large": -0.0012528780411716763, + "expected_calibration_error_10bin": 0.0012528780411716763, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 7, + "negatives": 2798, + "auroc": 0.5965485550903706, + "auprc": 0.012077408020230117, + "brier": 0.002489221503922386, + "calibration": { + "observed_rate": 0.0024955436720142605, + "mean_prediction": 0.0012972896416827365, + "calibration_in_the_large": -0.001198254030331524, + "expected_calibration_error_10bin": 0.001198254030331524, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 7, + "negatives": 2798, + "auroc": 0.5956805881752272, + "auprc": 0.01182187489170317, + "brier": 0.002491078671692155, + "calibration": { + "observed_rate": 0.0024955436720142605, + "mean_prediction": 0.0014319341973847086, + "calibration_in_the_large": -0.0010636094746295519, + "expected_calibration_error_10bin": 0.0010636094746295519, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 7, + "negatives": 2798, + "auroc": 0.5955274175431431, + "auprc": 0.0118193781417504, + "brier": 0.002491125655680124, + "calibration": { + "observed_rate": 0.0024955436720142605, + "mean_prediction": 0.0014368430952774699, + "calibration_in_the_large": -0.0010587005767367906, + "expected_calibration_error_10bin": 0.0010587005767367906, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + } + ], + "reason": null + }, + "G47": { + "time_averaged_auroc": 0.680680161218612, + "time_averaged_auprc": 0.06122853366811412, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2315, + "positives": 23, + "negatives": 2292, + "auroc": 0.6725851733818954, + "auprc": 0.020557586078478626, + "brier": 0.009814080325087895, + "calibration": { + "observed_rate": 0.009935205183585313, + "mean_prediction": 0.007733190463695949, + "calibration_in_the_large": -0.002202014719889364, + "expected_calibration_error_10bin": 0.002202014719889364, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8142806894125924 + }, + { + "valid": 2315, + "positives": 36, + "negatives": 2279, + "auroc": 0.676283457656867, + "auprc": 0.03249607623037227, + "brier": 0.01523033494022339, + "calibration": { + "observed_rate": 0.015550755939524838, + "mean_prediction": 0.01326678540120374, + "calibration_in_the_large": -0.0022839705383210975, + "expected_calibration_error_10bin": 0.0022839705383210975, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8142806894125924 + }, + { + "valid": 2315, + "positives": 47, + "negatives": 2268, + "auroc": 0.7040977147360126, + "auprc": 0.04600121307611309, + "brier": 0.019700261726633306, + "calibration": { + "observed_rate": 0.020302375809935207, + "mean_prediction": 0.01713905855754318, + "calibration_in_the_large": -0.0031633172523920262, + "expected_calibration_error_10bin": 0.0034698187091717686, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8142806894125924 + }, + { + "valid": 2315, + "positives": 59, + "negatives": 2256, + "auroc": 0.6771321673278038, + "auprc": 0.052718070160202926, + "brier": 0.024641163147823386, + "calibration": { + "observed_rate": 0.025485961123110152, + "mean_prediction": 0.019226347524310676, + "calibration_in_the_large": -0.006259613598799476, + "expected_calibration_error_10bin": 0.007430246504944935, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8142806894125924 + }, + { + "valid": 2315, + "positives": 66, + "negatives": 2249, + "auroc": 0.6850452052764191, + "auprc": 0.06046959340969698, + "brier": 0.027414331504948417, + "calibration": { + "observed_rate": 0.028509719222462204, + "mean_prediction": 0.021470174992838712, + "calibration_in_the_large": -0.007039544229623492, + "expected_calibration_error_10bin": 0.008633128618311085, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8142806894125924 + }, + { + "valid": 2315, + "positives": 70, + "negatives": 2245, + "auroc": 0.6727457842825326, + "auprc": 0.06095990431918096, + "brier": 0.029054330110012194, + "calibration": { + "observed_rate": 0.03023758099352052, + "mean_prediction": 0.023610891369608943, + "calibration_in_the_large": -0.006626689623911577, + "expected_calibration_error_10bin": 0.009291819738878888, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8142806894125924 + }, + { + "valid": 2315, + "positives": 76, + "negatives": 2239, + "auroc": 0.6876601396300039, + "auprc": 0.07306775576550759, + "brier": 0.03132265112334242, + "calibration": { + "observed_rate": 0.03282937365010799, + "mean_prediction": 0.025874385407790905, + "calibration_in_the_large": -0.006954988242317085, + "expected_calibration_error_10bin": 0.008255882001684103, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8142806894125924 + }, + { + "valid": 2315, + "positives": 78, + "negatives": 2237, + "auroc": 0.6917059248306454, + "auprc": 0.07331448759409469, + "brier": 0.03209990937821878, + "calibration": { + "observed_rate": 0.033693304535637146, + "mean_prediction": 0.027452526696013252, + "calibration_in_the_large": -0.006240777839623894, + "expected_calibration_error_10bin": 0.007451154408422269, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8142806894125924 + }, + { + "valid": 2315, + "positives": 82, + "negatives": 2233, + "auroc": 0.6830961301104278, + "auprc": 0.0743070750954072, + "brier": 0.03371197196951344, + "calibration": { + "observed_rate": 0.035421166306695465, + "mean_prediction": 0.029040763225958565, + "calibration_in_the_large": -0.0063804030807369, + "expected_calibration_error_10bin": 0.007801740583043431, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8142806894125924 + }, + { + "valid": 2315, + "positives": 84, + "negatives": 2231, + "auroc": 0.6738436746280763, + "auprc": 0.07329841461190653, + "brier": 0.03455375666573324, + "calibration": { + "observed_rate": 0.03628509719222462, + "mean_prediction": 0.030591063963105503, + "calibration_in_the_large": -0.005694033229119117, + "expected_calibration_error_10bin": 0.0067767613918166495, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8142806894125924 + }, + { + "valid": 2315, + "positives": 88, + "negatives": 2227, + "auroc": 0.6725262277013512, + "auprc": 0.07515075801090448, + "brier": 0.03613771529866863, + "calibration": { + "observed_rate": 0.03801295896328294, + "mean_prediction": 0.03194187669713074, + "calibration_in_the_large": -0.006071082266152196, + "expected_calibration_error_10bin": 0.00798661489347418, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8142806894125924 + }, + { + "valid": 2315, + "positives": 89, + "negatives": 2226, + "auroc": 0.6761056765296748, + "auprc": 0.07666939274945393, + "brier": 0.036492335966495586, + "calibration": { + "observed_rate": 0.03844492440604751, + "mean_prediction": 0.03315245885226964, + "calibration_in_the_large": -0.005292465553777874, + "expected_calibration_error_10bin": 0.007257016809238824, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8142806894125924 + }, + { + "valid": 2315, + "positives": 89, + "negatives": 2226, + "auroc": 0.6760148197502448, + "auprc": 0.07696061058416427, + "brier": 0.03649283256009902, + "calibration": { + "observed_rate": 0.03844492440604751, + "mean_prediction": 0.033525705136550836, + "calibration_in_the_large": -0.004919219269496677, + "expected_calibration_error_10bin": 0.00637474477949369, + "nonempty_bins": 3 + }, + "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": 2.4563356038050845e-08, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00011800341699250982, + "calibration_in_the_large": 0.00011800341699250982, + "expected_calibration_error_10bin": 0.00011800341699250982, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9968343299331692 + }, + { + "valid": 2834, + "positives": 0, + "negatives": 2834, + "auroc": null, + "auprc": null, + "brier": 5.915604509521975e-08, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0001927517677620223, + "calibration_in_the_large": 0.0001927517677620223, + "expected_calibration_error_10bin": 0.0001927517677620223, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9968343299331692 + }, + { + "valid": 2834, + "positives": 0, + "negatives": 2834, + "auroc": null, + "auprc": null, + "brier": 8.651438179669715e-08, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.000235711928228494, + "calibration_in_the_large": 0.000235711928228494, + "expected_calibration_error_10bin": 0.000235711928228494, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9968343299331692 + }, + { + "valid": 2834, + "positives": 0, + "negatives": 2834, + "auroc": null, + "auprc": null, + "brier": 1.4134459959349997e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00030483498737475116, + "calibration_in_the_large": 0.00030483498737475116, + "expected_calibration_error_10bin": 0.00030483498737475116, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9968343299331692 + }, + { + "valid": 2834, + "positives": 0, + "negatives": 2834, + "auroc": null, + "auprc": null, + "brier": 2.0826092193215086e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00035796088265471494, + "calibration_in_the_large": 0.00035796088265471494, + "expected_calibration_error_10bin": 0.00035796088265471494, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9968343299331692 + }, + { + "valid": 2834, + "positives": 0, + "negatives": 2834, + "auroc": null, + "auprc": null, + "brier": 2.3336490613253276e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00038397537658017383, + "calibration_in_the_large": 0.00038397537658017383, + "expected_calibration_error_10bin": 0.00038397537658017383, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9968343299331692 + }, + { + "valid": 2834, + "positives": 0, + "negatives": 2834, + "auroc": null, + "auprc": null, + "brier": 2.702666946812146e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00042104576287021984, + "calibration_in_the_large": 0.00042104576287021984, + "expected_calibration_error_10bin": 0.00042104576287021984, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9968343299331692 + }, + { + "valid": 2834, + "positives": 0, + "negatives": 2834, + "auroc": null, + "auprc": null, + "brier": 3.456308239399674e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0004847006045887214, + "calibration_in_the_large": 0.0004847006045887214, + "expected_calibration_error_10bin": 0.0004847006045887214, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9968343299331692 + }, + { + "valid": 2834, + "positives": 0, + "negatives": 2834, + "auroc": null, + "auprc": null, + "brier": 3.835583179620045e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0005081163146934815, + "calibration_in_the_large": 0.0005081163146934815, + "expected_calibration_error_10bin": 0.0005081163146934815, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9968343299331692 + }, + { + "valid": 2834, + "positives": 0, + "negatives": 2834, + "auroc": null, + "auprc": null, + "brier": 4.6232438924600146e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0005604367763229888, + "calibration_in_the_large": 0.0005604367763229888, + "expected_calibration_error_10bin": 0.0005604367763229888, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9968343299331692 + }, + { + "valid": 2834, + "positives": 0, + "negatives": 2834, + "auroc": null, + "auprc": null, + "brier": 4.958327814813387e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0005813504026934856, + "calibration_in_the_large": 0.0005813504026934856, + "expected_calibration_error_10bin": 0.0005813504026934856, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9968343299331692 + }, + { + "valid": 2834, + "positives": 0, + "negatives": 2834, + "auroc": null, + "auprc": null, + "brier": 5.678421189792863e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0006243199667851122, + "calibration_in_the_large": 0.0006243199667851122, + "expected_calibration_error_10bin": 0.0006243199667851122, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9968343299331692 + }, + { + "valid": 2834, + "positives": 0, + "negatives": 2834, + "auroc": null, + "auprc": null, + "brier": 5.710779425035261e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0006261236643799135, + "calibration_in_the_large": 0.0006261236643799135, + "expected_calibration_error_10bin": 0.0006261236643799135, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9968343299331692 + } + ], + "reason": "no_two_class_timepoint" + }, + "G62": { + "time_averaged_auroc": 0.8307818255564027, + "time_averaged_auprc": 0.1024007536886539, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2751, + "positives": 7, + "negatives": 2744, + "auroc": 0.8485006247396918, + "auprc": 0.157209301575776, + "brier": 0.002501376233895863, + "calibration": { + "observed_rate": 0.002544529262086514, + "mean_prediction": 0.0012247952380050244, + "calibration_in_the_large": -0.0013197340240814898, + "expected_calibration_error_10bin": 0.0013197340240814898, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 13, + "negatives": 2738, + "auroc": 0.8749789290329831, + "auprc": 0.0970443323276809, + "brier": 0.004535582369429933, + "calibration": { + "observed_rate": 0.004725554343874954, + "mean_prediction": 0.002508142459387367, + "calibration_in_the_large": -0.0022174118844875876, + "expected_calibration_error_10bin": 0.002217411884487588, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 20, + "negatives": 2731, + "auroc": 0.8561515928231417, + "auprc": 0.10260620216467845, + "brier": 0.006933933410937053, + "calibration": { + "observed_rate": 0.007270083605961469, + "mean_prediction": 0.0037675121066045414, + "calibration_in_the_large": -0.0035025714993569272, + "expected_calibration_error_10bin": 0.004006559331584057, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 23, + "negatives": 2728, + "auroc": 0.8594447277827362, + "auprc": 0.10392892116821076, + "brier": 0.007960194159929667, + "calibration": { + "observed_rate": 0.008360596146855689, + "mean_prediction": 0.0046358128383310075, + "calibration_in_the_large": -0.0037247833085246812, + "expected_calibration_error_10bin": 0.00394552259965581, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 27, + "negatives": 2724, + "auroc": 0.8434763691738728, + "auprc": 0.10161006984040499, + "brier": 0.009354106885771072, + "calibration": { + "observed_rate": 0.009814612868047983, + "mean_prediction": 0.00543854139318932, + "calibration_in_the_large": -0.004376071474858662, + "expected_calibration_error_10bin": 0.004848742547890322, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 28, + "negatives": 2723, + "auroc": 0.838085619852054, + "auprc": 0.09926897833899599, + "brier": 0.009707885103552973, + "calibration": { + "observed_rate": 0.010178117048346057, + "mean_prediction": 0.005753375632727049, + "calibration_in_the_large": -0.004424741415619007, + "expected_calibration_error_10bin": 0.004922421338772589, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 32, + "negatives": 2719, + "auroc": 0.8158904928282457, + "auprc": 0.09182500302598542, + "brier": 0.011142724172658616, + "calibration": { + "observed_rate": 0.011632133769538349, + "mean_prediction": 0.0062304421546921, + "calibration_in_the_large": -0.005401691614846249, + "expected_calibration_error_10bin": 0.006034702773552308, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 32, + "negatives": 2719, + "auroc": 0.8159364656123574, + "auprc": 0.09324294785787854, + "brier": 0.011144274792611571, + "calibration": { + "observed_rate": 0.011632133769538349, + "mean_prediction": 0.006535183745119399, + "calibration_in_the_large": -0.00509695002441895, + "expected_calibration_error_10bin": 0.006190452460827684, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 33, + "negatives": 2718, + "auroc": 0.808705153076014, + "auprc": 0.09096881588013281, + "brier": 0.011507253201620955, + "calibration": { + "observed_rate": 0.011995637949836423, + "mean_prediction": 0.007063517637465043, + "calibration_in_the_large": -0.00493212031237138, + "expected_calibration_error_10bin": 0.006506111520220792, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 34, + "negatives": 2717, + "auroc": 0.8133971291866029, + "auprc": 0.09614309436354007, + "brier": 0.011828354844612017, + "calibration": { + "observed_rate": 0.012359142130134497, + "mean_prediction": 0.007338368390077021, + "calibration_in_the_large": -0.005020773740057476, + "expected_calibration_error_10bin": 0.006629739007806017, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 35, + "negatives": 2716, + "auroc": 0.8051546391752578, + "auprc": 0.09413109184933831, + "brier": 0.012185692347626245, + "calibration": { + "observed_rate": 0.01272264631043257, + "mean_prediction": 0.007716304293510167, + "calibration_in_the_large": -0.005006342016922402, + "expected_calibration_error_10bin": 0.0068055876489941936, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 36, + "negatives": 2715, + "auroc": 0.8102414569265398, + "auprc": 0.10161105182275823, + "brier": 0.012477499286082402, + "calibration": { + "observed_rate": 0.013086150490730643, + "mean_prediction": 0.007991311191099061, + "calibration_in_the_large": -0.005094839299631582, + "expected_calibration_error_10bin": 0.006195961239797178, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 36, + "negatives": 2715, + "auroc": 0.8102005320237364, + "auprc": 0.10161998773712022, + "brier": 0.012477929914684346, + "calibration": { + "observed_rate": 0.013086150490730643, + "mean_prediction": 0.008040315119336415, + "calibration_in_the_large": -0.005045835371394228, + "expected_calibration_error_10bin": 0.00630542083133462, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + } + ], + "reason": null + }, + "G81": { + "time_averaged_auroc": 0.7266626212460594, + "time_averaged_auprc": 0.04654194056165401, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2789, + "positives": 8, + "negatives": 2781, + "auroc": 0.6656328658755843, + "auprc": 0.01891341522848911, + "brier": 0.0028602702491776206, + "calibration": { + "observed_rate": 0.0028684116170670493, + "mean_prediction": 0.0007393167942221193, + "calibration_in_the_large": -0.00212909482284493, + "expected_calibration_error_10bin": 0.00212909482284493, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 9, + "negatives": 2780, + "auroc": 0.7052757793764988, + "auprc": 0.04469462868554006, + "brier": 0.0032055191767540367, + "calibration": { + "observed_rate": 0.0032269630692004303, + "mean_prediction": 0.0012558712909651502, + "calibration_in_the_large": -0.0019710917782352804, + "expected_calibration_error_10bin": 0.0019710917782352804, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 10, + "negatives": 2779, + "auroc": 0.7265563152213026, + "auprc": 0.04478831506160221, + "brier": 0.003548057761567243, + "calibration": { + "observed_rate": 0.0035855145213338113, + "mean_prediction": 0.0017169151742707765, + "calibration_in_the_large": -0.0018685993470630349, + "expected_calibration_error_10bin": 0.0018685993470630349, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 10, + "negatives": 2779, + "auroc": 0.7236415976970133, + "auprc": 0.055762153002285, + "brier": 0.003540940182740642, + "calibration": { + "observed_rate": 0.0035855145213338113, + "mean_prediction": 0.0020847670967137602, + "calibration_in_the_large": -0.0015007474246200511, + "expected_calibration_error_10bin": 0.0015007474246200511, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 11, + "negatives": 2778, + "auroc": 0.7451731134236533, + "auprc": 0.05503287818293535, + "brier": 0.0038880542055027166, + "calibration": { + "observed_rate": 0.003944065973467192, + "mean_prediction": 0.0025830837043978347, + "calibration_in_the_large": -0.0013609822690693577, + "expected_calibration_error_10bin": 0.0014346411291538883, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 12, + "negatives": 2777, + "auroc": 0.731004681310767, + "auprc": 0.0509826733108904, + "brier": 0.004244656096489527, + "calibration": { + "observed_rate": 0.004302617425600574, + "mean_prediction": 0.0026779704232249503, + "calibration_in_the_large": -0.0016246470023756235, + "expected_calibration_error_10bin": 0.0017024564743211826, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 12, + "negatives": 2777, + "auroc": 0.7303144880566559, + "auprc": 0.05098768357233895, + "brier": 0.00424251302164782, + "calibration": { + "observed_rate": 0.004302617425600574, + "mean_prediction": 0.0028903376846200145, + "calibration_in_the_large": -0.0014122797409805593, + "expected_calibration_error_10bin": 0.0014927069392897203, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 14, + "negatives": 2775, + "auroc": 0.7428571428571429, + "auprc": 0.04863350704655214, + "brier": 0.004946428656700678, + "calibration": { + "observed_rate": 0.005019720329867336, + "mean_prediction": 0.003062872094184256, + "calibration_in_the_large": -0.00195684823568308, + "expected_calibration_error_10bin": 0.0020422281065980733, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 14, + "negatives": 2775, + "auroc": 0.7412612612612612, + "auprc": 0.04852314358318335, + "brier": 0.004944538806335181, + "calibration": { + "observed_rate": 0.005019720329867336, + "mean_prediction": 0.0032924069908846754, + "calibration_in_the_large": -0.0017273133389826604, + "expected_calibration_error_10bin": 0.0018176951273951051, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 14, + "negatives": 2775, + "auroc": 0.7412355212355213, + "auprc": 0.049383415927709305, + "brier": 0.0049422740721219785, + "calibration": { + "observed_rate": 0.005019720329867336, + "mean_prediction": 0.0035965409637849777, + "calibration_in_the_large": -0.0014231793660823581, + "expected_calibration_error_10bin": 0.001521156301466622, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 14, + "negatives": 2775, + "auroc": 0.7406692406692407, + "auprc": 0.048226286476558904, + "brier": 0.004942367686199503, + "calibration": { + "observed_rate": 0.005019720329867336, + "mean_prediction": 0.003762512787478034, + "calibration_in_the_large": -0.0012572075423893016, + "expected_calibration_error_10bin": 0.0013582271677299244, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 15, + "negatives": 2774, + "auroc": 0.7264359528959384, + "auprc": 0.044352901671913046, + "brier": 0.005299766466635288, + "calibration": { + "observed_rate": 0.005378271782000717, + "mean_prediction": 0.0039241649194421925, + "calibration_in_the_large": -0.0014541068625585248, + "expected_calibration_error_10bin": 0.001557883988116458, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 15, + "negatives": 2774, + "auroc": 0.7265561163181927, + "auprc": 0.04476422555150443, + "brier": 0.005299247905797793, + "calibration": { + "observed_rate": 0.005378271782000717, + "mean_prediction": 0.003961063486313302, + "calibration_in_the_large": -0.0014172082956874152, + "expected_calibration_error_10bin": 0.0015213258665631231, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + } + ], + "reason": null + }, + "G83": { + "time_averaged_auroc": 0.6392873215430463, + "time_averaged_auprc": 0.004819768521654536, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2824, + "positives": 1, + "negatives": 2823, + "auroc": 0.7768331562167906, + "auprc": 0.001584786053882726, + "brier": 0.0003543992393223715, + "calibration": { + "observed_rate": 0.0003541076487252125, + "mean_prediction": 0.0003014796458141805, + "calibration_in_the_large": -5.262800291103197e-05, + "expected_calibration_error_10bin": 5.262800291103197e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.5290574060949681, + "auprc": 0.00117265775160512, + "brier": 0.0007092292013602111, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0005858995483726866, + "calibration_in_the_large": -0.00012231574907773832, + "expected_calibration_error_10bin": 0.00012231574907773832, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.6565047855370436, + "auprc": 0.004738924787758211, + "brier": 0.0010613126198776568, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.000681584109266622, + "calibration_in_the_large": -0.00038073883690901554, + "expected_calibration_error_10bin": 0.00038073883690901554, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.6446886446886447, + "auprc": 0.005603172359155861, + "brier": 0.0010613745842448427, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.000867167206604239, + "calibration_in_the_large": -0.0001951557395713985, + "expected_calibration_error_10bin": 0.0001951557395713985, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.6424435779274489, + "auprc": 0.005530002668723492, + "brier": 0.0010618551540377767, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0009988120051718627, + "calibration_in_the_large": -6.351094100377481e-05, + "expected_calibration_error_10bin": 6.351094100377481e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.6373626373626373, + "auprc": 0.005563796742286444, + "brier": 0.0010621255981268327, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0010502701039740714, + "calibration_in_the_large": -1.2052842201566109e-05, + "expected_calibration_error_10bin": 1.2052842201566109e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.6404348339832211, + "auprc": 0.005633990552824816, + "brier": 0.0010626199846136663, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.001141922230924586, + "calibration_in_the_large": 7.959928474894845e-05, + "expected_calibration_error_10bin": 7.959928474894845e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.6394895427153492, + "auprc": 0.0056296740082963795, + "brier": 0.0010627215207040777, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0011611586050539776, + "calibration_in_the_large": 9.883565887834015e-05, + "expected_calibration_error_10bin": 9.883565887834015e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.6341722793335697, + "auprc": 0.005490346912213833, + "brier": 0.0010630988980080234, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.001243398719519659, + "calibration_in_the_large": 0.00018107577334402158, + "expected_calibration_error_10bin": 0.00018107577334402158, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.6349994091929576, + "auprc": 0.005493336452631197, + "brier": 0.0010634583927752728, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0012993374419028553, + "calibration_in_the_large": 0.00023701449572721776, + "expected_calibration_error_10bin": 0.00023701449572721776, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.6253101736972705, + "auprc": 0.005407283643807608, + "brier": 0.0010641022007138057, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0014010957587841085, + "calibration_in_the_large": 0.00033877281260847095, + "expected_calibration_error_10bin": 0.00033877281260847095, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.6248375280633345, + "auprc": 0.005405142731371046, + "brier": 0.00106424455047898, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0014213351623431417, + "calibration_in_the_large": 0.00035901221616750417, + "expected_calibration_error_10bin": 0.00035901221616750417, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.6246012052463665, + "auprc": 0.005403876116952225, + "brier": 0.0010642778757698865, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0014259095701234313, + "calibration_in_the_large": 0.00036358662394779377, + "expected_calibration_error_10bin": 0.00036358662394779377, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + } + ], + "reason": null + }, + "G89": { + "time_averaged_auroc": 0.7694179621525521, + "time_averaged_auprc": 0.07056360072599249, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2537, + "positives": 15, + "negatives": 2522, + "auroc": 0.7205656886069257, + "auprc": 0.02697454602822567, + "brier": 0.005843073509851874, + "calibration": { + "observed_rate": 0.005912495072920773, + "mean_prediction": 0.004624779525736606, + "calibration_in_the_large": -0.001287715547184167, + "expected_calibration_error_10bin": 0.001287715547184167, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8923672177277524 + }, + { + "valid": 2537, + "positives": 21, + "negatives": 2516, + "auroc": 0.7465932318873495, + "auprc": 0.03371305517513125, + "brier": 0.008136682839185031, + "calibration": { + "observed_rate": 0.008277493102089082, + "mean_prediction": 0.007152534622455271, + "calibration_in_the_large": -0.0011249584796338115, + "expected_calibration_error_10bin": 0.0012300117952682328, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8923672177277524 + }, + { + "valid": 2537, + "positives": 29, + "negatives": 2508, + "auroc": 0.7854451960622559, + "auprc": 0.05059430789868182, + "brier": 0.011117267084860867, + "calibration": { + "observed_rate": 0.011430823807646828, + "mean_prediction": 0.009068907580275003, + "calibration_in_the_large": -0.002361916227371825, + "expected_calibration_error_10bin": 0.0025905755678867055, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8923672177277524 + }, + { + "valid": 2537, + "positives": 37, + "negatives": 2500, + "auroc": 0.7774054054054054, + "auprc": 0.05524804910994838, + "brier": 0.014135548740020945, + "calibration": { + "observed_rate": 0.014584154513204573, + "mean_prediction": 0.011069443630165914, + "calibration_in_the_large": -0.0035147108830386586, + "expected_calibration_error_10bin": 0.00397973169647126, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8923672177277524 + }, + { + "valid": 2537, + "positives": 41, + "negatives": 2496, + "auroc": 0.7925754377736085, + "auprc": 0.0712048545645592, + "brier": 0.01550490178650535, + "calibration": { + "observed_rate": 0.016160819865983445, + "mean_prediction": 0.012449238519714287, + "calibration_in_the_large": -0.0037115813462691577, + "expected_calibration_error_10bin": 0.00429647960510352, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8923672177277524 + }, + { + "valid": 2537, + "positives": 45, + "negatives": 2492, + "auroc": 0.7662832174068129, + "auprc": 0.06624038997970169, + "brier": 0.01705696049778842, + "calibration": { + "observed_rate": 0.017737485218762318, + "mean_prediction": 0.013749411882519514, + "calibration_in_the_large": -0.003988073336242804, + "expected_calibration_error_10bin": 0.004199957557983995, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8923672177277524 + }, + { + "valid": 2537, + "positives": 50, + "negatives": 2487, + "auroc": 0.7658464012866908, + "auprc": 0.07058624334602101, + "brier": 0.018899703475885356, + "calibration": { + "observed_rate": 0.019708316909735908, + "mean_prediction": 0.014629055204456008, + "calibration_in_the_large": -0.0050792617052799, + "expected_calibration_error_10bin": 0.005299076375520869, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8923672177277524 + }, + { + "valid": 2537, + "positives": 57, + "negatives": 2480, + "auroc": 0.7882074136955292, + "auprc": 0.08625084628937009, + "brier": 0.02134696288620602, + "calibration": { + "observed_rate": 0.022467481277098935, + "mean_prediction": 0.015608979561996628, + "calibration_in_the_large": -0.006858501715102307, + "expected_calibration_error_10bin": 0.007088921477743394, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8923672177277524 + }, + { + "valid": 2537, + "positives": 59, + "negatives": 2478, + "auroc": 0.7899413140723109, + "auprc": 0.08692695984119325, + "brier": 0.022073743474343075, + "calibration": { + "observed_rate": 0.023255813953488372, + "mean_prediction": 0.01655532263677217, + "calibration_in_the_large": -0.006700491316716201, + "expected_calibration_error_10bin": 0.0070976834892843, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8923672177277524 + }, + { + "valid": 2537, + "positives": 61, + "negatives": 2476, + "auroc": 0.7718954421462433, + "auprc": 0.08433369979437504, + "brier": 0.022852451050464937, + "calibration": { + "observed_rate": 0.02404414662987781, + "mean_prediction": 0.01735180134856655, + "calibration_in_the_large": -0.006692345281311258, + "expected_calibration_error_10bin": 0.007100162116901902, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8923672177277524 + }, + { + "valid": 2537, + "positives": 63, + "negatives": 2474, + "auroc": 0.7657928167224852, + "auprc": 0.0822759924763729, + "brier": 0.023629833944899273, + "calibration": { + "observed_rate": 0.024832479306267245, + "mean_prediction": 0.01795054316198748, + "calibration_in_the_large": -0.006881936144279767, + "expected_calibration_error_10bin": 0.007457682664370681, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8923672177277524 + }, + { + "valid": 2537, + "positives": 70, + "negatives": 2467, + "auroc": 0.7646418437662864, + "auprc": 0.10066796342075038, + "brier": 0.025974142360609267, + "calibration": { + "observed_rate": 0.027591643673630272, + "mean_prediction": 0.018814038102407483, + "calibration_in_the_large": -0.008777605571222789, + "expected_calibration_error_10bin": 0.00902868977317988, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8923672177277524 + }, + { + "valid": 2537, + "positives": 71, + "negatives": 2466, + "auroc": 0.7672400991512742, + "auprc": 0.10230990151357185, + "brier": 0.02632447525100623, + "calibration": { + "observed_rate": 0.02798581001182499, + "mean_prediction": 0.018942552196659634, + "calibration_in_the_large": -0.009043257815165354, + "expected_calibration_error_10bin": 0.00929522478611054, + "nonempty_bins": 4 + }, + "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": 2.1044348182659428e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0003180722231136244, + "calibration_in_the_large": 0.0003180722231136244, + "expected_calibration_error_10bin": 0.0003180722231136244, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 1.256012595415297e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0005690781638886079, + "calibration_in_the_large": 0.0005690781638886079, + "expected_calibration_error_10bin": 0.0005690781638886079, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 1.9151659316969706e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0007305980910523718, + "calibration_in_the_large": 0.0007305980910523718, + "expected_calibration_error_10bin": 0.0007305980910523718, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 3.108976124033065e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0009376980013140763, + "calibration_in_the_large": 0.0009376980013140763, + "expected_calibration_error_10bin": 0.0009376980013140763, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 6.065862884998962e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0012047603382663336, + "calibration_in_the_large": 0.0012047603382663336, + "expected_calibration_error_10bin": 0.0012047603382663336, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 7.112553697447123e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0013211932588411634, + "calibration_in_the_large": 0.0013211932588411634, + "expected_calibration_error_10bin": 0.0013211932588411634, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 8.322976540981626e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0013866110272470853, + "calibration_in_the_large": 0.0013866110272470853, + "expected_calibration_error_10bin": 0.0013866110272470853, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 9.92792245932749e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0014697509724800203, + "calibration_in_the_large": 0.0014697509724800203, + "expected_calibration_error_10bin": 0.0014697509724800203, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 1.1610446308827127e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0015917906446781043, + "calibration_in_the_large": 0.0015917906446781043, + "expected_calibration_error_10bin": 0.0015917906446781043, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 1.2053387971448474e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.001622969197044423, + "calibration_in_the_large": 0.001622969197044423, + "expected_calibration_error_10bin": 0.001622969197044423, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 1.4140709631413878e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0017714583850592922, + "calibration_in_the_large": 0.0017714583850592922, + "expected_calibration_error_10bin": 0.0017714583850592922, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 1.7183636834524752e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.001957629019227677, + "calibration_in_the_large": 0.001957629019227677, + "expected_calibration_error_10bin": 0.001957629019227677, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 1.792166973387256e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0020093300639380317, + "calibration_in_the_large": 0.0020093300639380317, + "expected_calibration_error_10bin": 0.0020093300639380317, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + } + ], + "reason": "no_two_class_timepoint" + }, + "G92": { + "time_averaged_auroc": 0.7986383639575606, + "time_averaged_auprc": 0.038694841161613466, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2733, + "positives": 4, + "negatives": 2729, + "auroc": 0.794338585562477, + "auprc": 0.006434034032748695, + "brier": 0.0014622456008058008, + "calibration": { + "observed_rate": 0.0014635931211123307, + "mean_prediction": 0.0021972753998357386, + "calibration_in_the_large": 0.0007336822787234079, + "expected_calibration_error_10bin": 0.0007336822787234079, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + { + "valid": 2733, + "positives": 12, + "negatives": 2721, + "auroc": 0.8165809138797011, + "auprc": 0.017128739498079738, + "brier": 0.004350508001556067, + "calibration": { + "observed_rate": 0.0043907793633369925, + "mean_prediction": 0.004477499955220075, + "calibration_in_the_large": 8.672059188308268e-05, + "expected_calibration_error_10bin": 8.672059188308268e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + { + "valid": 2733, + "positives": 19, + "negatives": 2714, + "auroc": 0.809215374471551, + "auprc": 0.021380931743491538, + "brier": 0.006865993114646345, + "calibration": { + "observed_rate": 0.006952067325283571, + "mean_prediction": 0.00593456707299755, + "calibration_in_the_large": -0.0010175002522860212, + "expected_calibration_error_10bin": 0.0010175002522860212, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + { + "valid": 2733, + "positives": 24, + "negatives": 2709, + "auroc": 0.7907745785652762, + "auprc": 0.02372434997830254, + "brier": 0.008674872858418909, + "calibration": { + "observed_rate": 0.008781558726673985, + "mean_prediction": 0.007778500785082017, + "calibration_in_the_large": -0.0010030579415919684, + "expected_calibration_error_10bin": 0.0010799677361394357, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + { + "valid": 2733, + "positives": 29, + "negatives": 2704, + "auroc": 0.8141960824321567, + "auprc": 0.04382458380706255, + "brier": 0.010355321465837848, + "calibration": { + "observed_rate": 0.010611050128064398, + "mean_prediction": 0.009307560603339126, + "calibration_in_the_large": -0.0013034895247252716, + "expected_calibration_error_10bin": 0.0013034895247252723, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + { + "valid": 2733, + "positives": 32, + "negatives": 2701, + "auroc": 0.8095265642354683, + "auprc": 0.04601461295132882, + "brier": 0.011408779903539269, + "calibration": { + "observed_rate": 0.011708744968898645, + "mean_prediction": 0.009965271649483146, + "calibration_in_the_large": -0.0017434733194154999, + "expected_calibration_error_10bin": 0.0017434733194155012, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + { + "valid": 2733, + "positives": 37, + "negatives": 2696, + "auroc": 0.805497634132649, + "auprc": 0.047113447858172154, + "brier": 0.0131622141261798, + "calibration": { + "observed_rate": 0.01353823637028906, + "mean_prediction": 0.010918319378310053, + "calibration_in_the_large": -0.0026199169919790075, + "expected_calibration_error_10bin": 0.0026199169919790075, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + { + "valid": 2733, + "positives": 38, + "negatives": 2695, + "auroc": 0.8076359730495069, + "auprc": 0.04772287918837189, + "brier": 0.013514036584801386, + "calibration": { + "observed_rate": 0.013904134650567142, + "mean_prediction": 0.011476899855822778, + "calibration_in_the_large": -0.0024272347947443644, + "expected_calibration_error_10bin": 0.002684544556761803, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + { + "valid": 2733, + "positives": 39, + "negatives": 2694, + "auroc": 0.798831210857937, + "auprc": 0.04582496019911334, + "brier": 0.013888003427460487, + "calibration": { + "observed_rate": 0.014270032930845226, + "mean_prediction": 0.012161584151154804, + "calibration_in_the_large": -0.002108448779690422, + "expected_calibration_error_10bin": 0.002586414713121677, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + { + "valid": 2733, + "positives": 42, + "negatives": 2691, + "auroc": 0.7808568243350852, + "auprc": 0.047702436700987096, + "brier": 0.014932917403260058, + "calibration": { + "observed_rate": 0.015367727771679473, + "mean_prediction": 0.01282759459208008, + "calibration_in_the_large": -0.0025401331795993926, + "expected_calibration_error_10bin": 0.003135246709978225, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + { + "valid": 2733, + "positives": 45, + "negatives": 2688, + "auroc": 0.7869543650793651, + "auprc": 0.051041288373927234, + "brier": 0.015964875129731562, + "calibration": { + "observed_rate": 0.01646542261251372, + "mean_prediction": 0.013541847027646355, + "calibration_in_the_large": -0.0029235755848673658, + "expected_calibration_error_10bin": 0.0040610344605936325, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + { + "valid": 2733, + "positives": 47, + "negatives": 2686, + "auroc": 0.7819346968520777, + "auprc": 0.0513342423980115, + "brier": 0.016679725953073075, + "calibration": { + "observed_rate": 0.017197219173069888, + "mean_prediction": 0.014558288940361357, + "calibration_in_the_large": -0.0026389302327085307, + "expected_calibration_error_10bin": 0.0034812814687657768, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + { + "valid": 2733, + "positives": 48, + "negatives": 2685, + "auroc": 0.7859559279950341, + "auprc": 0.05378642837137795, + "brier": 0.017002645584976956, + "calibration": { + "observed_rate": 0.01756311745334797, + "mean_prediction": 0.014713598967477568, + "calibration_in_the_large": -0.0028495184858704017, + "expected_calibration_error_10bin": 0.003939792057722279, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + } + ], + "reason": null + }, + "G93": { + "time_averaged_auroc": 0.7995702803911074, + "time_averaged_auprc": 0.05212432762229132, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2656, + "positives": 9, + "negatives": 2647, + "auroc": 0.8270159089955086, + "auprc": 0.013013898913668338, + "brier": 0.003364653186571225, + "calibration": { + "observed_rate": 0.00338855421686747, + "mean_prediction": 0.002513783029960875, + "calibration_in_the_large": -0.0008747711869065951, + "expected_calibration_error_10bin": 0.0008747711869065951, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9342244108336265 + }, + { + "valid": 2656, + "positives": 17, + "negatives": 2639, + "auroc": 0.7703675634710118, + "auprc": 0.019657071399135962, + "brier": 0.006334027804280083, + "calibration": { + "observed_rate": 0.006400602409638554, + "mean_prediction": 0.005285185752897923, + "calibration_in_the_large": -0.0011154166567406308, + "expected_calibration_error_10bin": 0.0011154166567406308, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9342244108336265 + }, + { + "valid": 2656, + "positives": 26, + "negatives": 2630, + "auroc": 0.7852149751389295, + "auprc": 0.03272819537857137, + "brier": 0.009599235604230713, + "calibration": { + "observed_rate": 0.009789156626506024, + "mean_prediction": 0.0071285863337699, + "calibration_in_the_large": -0.0026605702927361245, + "expected_calibration_error_10bin": 0.0026605702927361245, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9342244108336265 + }, + { + "valid": 2656, + "positives": 31, + "negatives": 2625, + "auroc": 0.7899477726574501, + "auprc": 0.040967214974068536, + "brier": 0.011382866537222784, + "calibration": { + "observed_rate": 0.011671686746987951, + "mean_prediction": 0.008465071101388923, + "calibration_in_the_large": -0.0032066156455990286, + "expected_calibration_error_10bin": 0.0032066156455990286, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9342244108336265 + }, + { + "valid": 2656, + "positives": 35, + "negatives": 2621, + "auroc": 0.8039788521284134, + "auprc": 0.05924028383785578, + "brier": 0.01274081145902771, + "calibration": { + "observed_rate": 0.013177710843373495, + "mean_prediction": 0.009507024248187666, + "calibration_in_the_large": -0.003670686595185829, + "expected_calibration_error_10bin": 0.0038259495303743485, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9342244108336265 + }, + { + "valid": 2656, + "positives": 37, + "negatives": 2619, + "auroc": 0.8046190520417325, + "auprc": 0.05825816695953981, + "brier": 0.013451987947631545, + "calibration": { + "observed_rate": 0.013930722891566265, + "mean_prediction": 0.010450991388960388, + "calibration_in_the_large": -0.003479731502605877, + "expected_calibration_error_10bin": 0.0036485842238682857, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9342244108336265 + }, + { + "valid": 2656, + "positives": 41, + "negatives": 2615, + "auroc": 0.8005129879214662, + "auprc": 0.058311750065726704, + "brier": 0.014894182413926321, + "calibration": { + "observed_rate": 0.015436746987951807, + "mean_prediction": 0.011550973695835933, + "calibration_in_the_large": -0.0038857732921158735, + "expected_calibration_error_10bin": 0.004229999092296885, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9342244108336265 + }, + { + "valid": 2656, + "positives": 44, + "negatives": 2612, + "auroc": 0.8012233746345538, + "auprc": 0.058398343585266944, + "brier": 0.015961325246982277, + "calibration": { + "observed_rate": 0.016566265060240965, + "mean_prediction": 0.012416600009176484, + "calibration_in_the_large": -0.004149665051064481, + "expected_calibration_error_10bin": 0.004736402985788874, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9342244108336265 + }, + { + "valid": 2656, + "positives": 45, + "negatives": 2611, + "auroc": 0.8027830971530704, + "auprc": 0.058908004783203, + "brier": 0.016309433508615218, + "calibration": { + "observed_rate": 0.01694277108433735, + "mean_prediction": 0.013157214540706811, + "calibration_in_the_large": -0.003785556543630537, + "expected_calibration_error_10bin": 0.004103278463022786, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9342244108336265 + }, + { + "valid": 2656, + "positives": 47, + "negatives": 2609, + "auroc": 0.8087471355292237, + "auprc": 0.06564262001677783, + "brier": 0.016954665029230504, + "calibration": { + "observed_rate": 0.017695783132530122, + "mean_prediction": 0.014137048008295272, + "calibration_in_the_large": -0.00355873512423485, + "expected_calibration_error_10bin": 0.004384940655123195, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9342244108336265 + }, + { + "valid": 2656, + "positives": 50, + "negatives": 2606, + "auroc": 0.8055180353031466, + "auprc": 0.07034830997990224, + "brier": 0.017988026640523347, + "calibration": { + "observed_rate": 0.01882530120481928, + "mean_prediction": 0.014740844475892962, + "calibration_in_the_large": -0.004084456728926317, + "expected_calibration_error_10bin": 0.004084456728926316, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9342244108336265 + }, + { + "valid": 2656, + "positives": 56, + "negatives": 2600, + "auroc": 0.7972321428571428, + "auprc": 0.07114024218294343, + "brier": 0.020142161612839667, + "calibration": { + "observed_rate": 0.02108433734939759, + "mean_prediction": 0.015307136457884181, + "calibration_in_the_large": -0.005777200891513408, + "expected_calibration_error_10bin": 0.005777200891513409, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9342244108336265 + }, + { + "valid": 2656, + "positives": 56, + "negatives": 2600, + "auroc": 0.7972527472527473, + "auprc": 0.07100215701312716, + "brier": 0.020140677324843054, + "calibration": { + "observed_rate": 0.02108433734939759, + "mean_prediction": 0.015426707003845044, + "calibration_in_the_large": -0.005657630345552545, + "expected_calibration_error_10bin": 0.005657630345552545, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9342244108336265 + } + ], + "reason": null + }, + "G99": { + "time_averaged_auroc": 0.4145070422535211, + "time_averaged_auprc": 0.0006011016282238307, + "valid_timepoint_cells": 5, + "timepoints": [ + { + "valid": 2841, + "positives": 0, + "negatives": 2841, + "auroc": null, + "auprc": null, + "brier": 6.821396276417538e-08, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 7.154028039897376e-05, + "calibration_in_the_large": 7.154028039897376e-05, + "expected_calibration_error_10bin": 7.154028039897376e-05, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9992965177629265 + }, + { + "valid": 2841, + "positives": 0, + "negatives": 2841, + "auroc": null, + "auprc": null, + "brier": 2.4835010570681684e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0001491992843970219, + "calibration_in_the_large": 0.0001491992843970219, + "expected_calibration_error_10bin": 0.0001491992843970219, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9992965177629265 + }, + { + "valid": 2841, + "positives": 0, + "negatives": 2841, + "auroc": null, + "auprc": null, + "brier": 5.105120246130131e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00021833004042359931, + "calibration_in_the_large": 0.00021833004042359931, + "expected_calibration_error_10bin": 0.00021833004042359931, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9992965177629265 + }, + { + "valid": 2841, + "positives": 0, + "negatives": 2841, + "auroc": null, + "auprc": null, + "brier": 7.871121817993291e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0002754733074343837, + "calibration_in_the_large": 0.0002754733074343837, + "expected_calibration_error_10bin": 0.0002754733074343837, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9992965177629265 + }, + { + "valid": 2841, + "positives": 0, + "negatives": 2841, + "auroc": null, + "auprc": null, + "brier": 9.95543336461679e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00032207121992190436, + "calibration_in_the_large": 0.00032207121992190436, + "expected_calibration_error_10bin": 0.00032207121992190436, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9992965177629265 + }, + { + "valid": 2841, + "positives": 0, + "negatives": 2841, + "auroc": null, + "auprc": null, + "brier": 1.1659124701570205e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00034993335278666314, + "calibration_in_the_large": 0.00034993335278666314, + "expected_calibration_error_10bin": 0.00034993335278666314, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9992965177629265 + }, + { + "valid": 2841, + "positives": 0, + "negatives": 2841, + "auroc": null, + "auprc": null, + "brier": 1.4056199662524422e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.000383090540727176, + "calibration_in_the_large": 0.000383090540727176, + "expected_calibration_error_10bin": 0.000383090540727176, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9992965177629265 + }, + { + "valid": 2841, + "positives": 0, + "negatives": 2841, + "auroc": null, + "auprc": null, + "brier": 1.4984803620754141e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0004019708897669712, + "calibration_in_the_large": 0.0004019708897669712, + "expected_calibration_error_10bin": 0.0004019708897669712, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9992965177629265 + }, + { + "valid": 2841, + "positives": 1, + "negatives": 2840, + "auroc": 0.40774647887323945, + "auprc": 0.0005941770647653001, + "brier": 0.0003535813646411379, + "calibration": { + "observed_rate": 0.00035198873636043646, + "mean_prediction": 0.0004280041122561732, + "calibration_in_the_large": 7.601537589573676e-05, + "expected_calibration_error_10bin": 7.601537589573676e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9992965177629265 + }, + { + "valid": 2841, + "positives": 1, + "negatives": 2840, + "auroc": 0.4126760563380282, + "auprc": 0.0005991611743559018, + "brier": 0.0003538542657774245, + "calibration": { + "observed_rate": 0.00035198873636043646, + "mean_prediction": 0.00046362455718762285, + "calibration_in_the_large": 0.0001116358208271864, + "expected_calibration_error_10bin": 0.0001116358208271864, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9992965177629265 + }, + { + "valid": 2841, + "positives": 1, + "negatives": 2840, + "auroc": 0.4084507042253521, + "auprc": 0.000594883997620464, + "brier": 0.00035412015156419677, + "calibration": { + "observed_rate": 0.00035198873636043646, + "mean_prediction": 0.0004950438929937887, + "calibration_in_the_large": 0.0001430551566333523, + "expected_calibration_error_10bin": 0.0001430551566333523, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9992965177629265 + }, + { + "valid": 2841, + "positives": 1, + "negatives": 2840, + "auroc": 0.4214788732394366, + "auprc": 0.0006082725060827251, + "brier": 0.0003542269554613215, + "calibration": { + "observed_rate": 0.00035198873636043646, + "mean_prediction": 0.0005099258661252065, + "calibration_in_the_large": 0.00015793712976477009, + "expected_calibration_error_10bin": 0.00015793712976477009, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9992965177629265 + }, + { + "valid": 2841, + "positives": 1, + "negatives": 2840, + "auroc": 0.4221830985915493, + "auprc": 0.0006090133982947625, + "brier": 0.0003542346406579184, + "calibration": { + "observed_rate": 0.00035198873636043646, + "mean_prediction": 0.0005112272886527154, + "calibration_in_the_large": 0.00015923855229227894, + "expected_calibration_error_10bin": 0.00015923855229227894, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9992965177629265 + } + ], + "reason": null + }, + "H10": { + "time_averaged_auroc": 0.8413073459282175, + "time_averaged_auprc": 0.0075041175526486545, + "valid_timepoint_cells": 12, + "timepoints": [ + { + "valid": 2832, + "positives": 0, + "negatives": 2832, + "auroc": null, + "auprc": null, + "brier": 1.8032826591476772e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00022545467910771514, + "calibration_in_the_large": 0.00022545467910771514, + "expected_calibration_error_10bin": 0.00022545467910771514, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9961308476960957 + }, + { + "valid": 2832, + "positives": 1, + "negatives": 2831, + "auroc": 0.9558459908159661, + "auprc": 0.007936507936507936, + "brier": 0.0003524822285335027, + "calibration": { + "observed_rate": 0.00035310734463276836, + "mean_prediction": 0.0002994201717333877, + "calibration_in_the_large": -5.368717289938065e-05, + "expected_calibration_error_10bin": 5.368717289938065e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + { + "valid": 2832, + "positives": 3, + "negatives": 2829, + "auroc": 0.8956050430069518, + "auprc": 0.007961713201887875, + "brier": 0.0010569999376172008, + "calibration": { + "observed_rate": 0.001059322033898305, + "mean_prediction": 0.0004303275762737418, + "calibration_in_the_large": -0.0006289944576245633, + "expected_calibration_error_10bin": 0.0006289944576245633, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + { + "valid": 2832, + "positives": 4, + "negatives": 2828, + "auroc": 0.8957743988684582, + "auprc": 0.008587787393390514, + "brier": 0.0014089065226184018, + "calibration": { + "observed_rate": 0.0014124293785310734, + "mean_prediction": 0.0005243251434189324, + "calibration_in_the_large": -0.000888104235112141, + "expected_calibration_error_10bin": 0.000888104235112141, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + { + "valid": 2832, + "positives": 4, + "negatives": 2828, + "auroc": 0.8917079207920792, + "auprc": 0.008241191529103187, + "brier": 0.0014086840619800718, + "calibration": { + "observed_rate": 0.0014124293785310734, + "mean_prediction": 0.0006077389356307121, + "calibration_in_the_large": -0.0008046904429003613, + "expected_calibration_error_10bin": 0.0008046904429003613, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + { + "valid": 2832, + "positives": 4, + "negatives": 2828, + "auroc": 0.8920615275813296, + "auprc": 0.008217872072528819, + "brier": 0.0014085135107293925, + "calibration": { + "observed_rate": 0.0014124293785310734, + "mean_prediction": 0.0006620340956176908, + "calibration_in_the_large": -0.0007503952829133827, + "expected_calibration_error_10bin": 0.0007503952829133827, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + { + "valid": 2832, + "positives": 5, + "negatives": 2827, + "auroc": 0.8293597453130527, + "auprc": 0.007415230589745164, + "brier": 0.0017611567069565905, + "calibration": { + "observed_rate": 0.0017655367231638418, + "mean_prediction": 0.0007157104090008373, + "calibration_in_the_large": -0.0010498263141630044, + "expected_calibration_error_10bin": 0.0010498263141630044, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + { + "valid": 2832, + "positives": 5, + "negatives": 2827, + "auroc": 0.8278033250795896, + "auprc": 0.007406058457428704, + "brier": 0.0017609484851435387, + "calibration": { + "observed_rate": 0.0017655367231638418, + "mean_prediction": 0.0007766954717419658, + "calibration_in_the_large": -0.000988841251421876, + "expected_calibration_error_10bin": 0.000988841251421876, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + { + "valid": 2832, + "positives": 5, + "negatives": 2827, + "auroc": 0.8253979483551468, + "auprc": 0.007126088854671973, + "brier": 0.0017606657330966797, + "calibration": { + "observed_rate": 0.0017655367231638418, + "mean_prediction": 0.000928314052482992, + "calibration_in_the_large": -0.0008372226706808498, + "expected_calibration_error_10bin": 0.0008372226706808498, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + { + "valid": 2832, + "positives": 5, + "negatives": 2827, + "auroc": 0.8275910859568447, + "auprc": 0.007217863903208538, + "brier": 0.001760461881760063, + "calibration": { + "observed_rate": 0.0017655367231638418, + "mean_prediction": 0.0009891769899307698, + "calibration_in_the_large": -0.000776359733233072, + "expected_calibration_error_10bin": 0.000776359733233072, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + { + "valid": 2832, + "positives": 6, + "negatives": 2826, + "auroc": 0.751238499646143, + "auprc": 0.00662214758141353, + "brier": 0.0021133254307996543, + "calibration": { + "observed_rate": 0.00211864406779661, + "mean_prediction": 0.0010280827820710237, + "calibration_in_the_large": -0.0010905612857255865, + "expected_calibration_error_10bin": 0.0010905612857255865, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + { + "valid": 2832, + "positives": 6, + "negatives": 2826, + "auroc": 0.7515923566878981, + "auprc": 0.00665451540279536, + "brier": 0.0021132250855229098, + "calibration": { + "observed_rate": 0.00211864406779661, + "mean_prediction": 0.0010681579961336388, + "calibration_in_the_large": -0.0010504860716629713, + "expected_calibration_error_10bin": 0.0010504860716629713, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + { + "valid": 2832, + "positives": 6, + "negatives": 2826, + "auroc": 0.7517103090351498, + "auprc": 0.00666243370910224, + "brier": 0.0021132184447879856, + "calibration": { + "observed_rate": 0.00211864406779661, + "mean_prediction": 0.0010705848412238335, + "calibration_in_the_large": -0.0010480592265727767, + "expected_calibration_error_10bin": 0.0010480592265727767, + "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": 4.151882143857318e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00038284987239901543, + "calibration_in_the_large": 0.00038284987239901543, + "expected_calibration_error_10bin": 0.00038284987239901543, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 0, + "negatives": 2819, + "auroc": null, + "auprc": null, + "brier": 1.8770371672326135e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.000708847780551431, + "calibration_in_the_large": 0.000708847780551431, + "expected_calibration_error_10bin": 0.000708847780551431, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 0, + "negatives": 2819, + "auroc": null, + "auprc": null, + "brier": 3.0508694543756255e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.000897229245706205, + "calibration_in_the_large": 0.000897229245706205, + "expected_calibration_error_10bin": 0.000897229245706205, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 0, + "negatives": 2819, + "auroc": null, + "auprc": null, + "brier": 4.759327096866524e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0011442100889044139, + "calibration_in_the_large": 0.0011442100889044139, + "expected_calibration_error_10bin": 0.0011442100889044139, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 0, + "negatives": 2819, + "auroc": null, + "auprc": null, + "brier": 7.228854088193718e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0013626717803317868, + "calibration_in_the_large": 0.0013626717803317868, + "expected_calibration_error_10bin": 0.0013626717803317868, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 0, + "negatives": 2819, + "auroc": null, + "auprc": null, + "brier": 8.475409989284414e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.001489971014467635, + "calibration_in_the_large": 0.001489971014467635, + "expected_calibration_error_10bin": 0.001489971014467635, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 0, + "negatives": 2819, + "auroc": null, + "auprc": null, + "brier": 9.457976680024477e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.001577545163410444, + "calibration_in_the_large": 0.001577545163410444, + "expected_calibration_error_10bin": 0.001577545163410444, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 0, + "negatives": 2819, + "auroc": null, + "auprc": null, + "brier": 1.1976418573668936e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.001726148167421307, + "calibration_in_the_large": 0.001726148167421307, + "expected_calibration_error_10bin": 0.001726148167421307, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 0, + "negatives": 2819, + "auroc": null, + "auprc": null, + "brier": 1.3630997692630187e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.001857177722649399, + "calibration_in_the_large": 0.001857177722649399, + "expected_calibration_error_10bin": 0.001857177722649399, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 0, + "negatives": 2819, + "auroc": null, + "auprc": null, + "brier": 1.5264509491266083e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.001970294767778994, + "calibration_in_the_large": 0.001970294767778994, + "expected_calibration_error_10bin": 0.001970294767778994, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 0, + "negatives": 2819, + "auroc": null, + "auprc": null, + "brier": 1.722784381103818e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.002102422599691647, + "calibration_in_the_large": 0.002102422599691647, + "expected_calibration_error_10bin": 0.002102422599691647, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 0, + "negatives": 2819, + "auroc": null, + "auprc": null, + "brier": 1.841983482366457e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0021690163563728875, + "calibration_in_the_large": 0.0021690163563728875, + "expected_calibration_error_10bin": 0.0021690163563728875, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 0, + "negatives": 2819, + "auroc": null, + "auprc": null, + "brier": 1.8883339758196673e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0021964826368873836, + "calibration_in_the_large": 0.0021964826368873836, + "expected_calibration_error_10bin": 0.0021964826368873836, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + } + ], + "reason": "no_two_class_timepoint" + }, + "H35": { + "time_averaged_auroc": 0.6889644986575069, + "time_averaged_auprc": 0.004447801914878694, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2806, + "positives": 3, + "negatives": 2803, + "auroc": 0.7009156855749792, + "auprc": 0.0023658397114454124, + "brier": 0.0010686964185615702, + "calibration": { + "observed_rate": 0.0010691375623663579, + "mean_prediction": 0.0002496260822772099, + "calibration_in_the_large": -0.0008195114800891479, + "expected_calibration_error_10bin": 0.0008195114800891479, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 3, + "negatives": 2803, + "auroc": 0.6974669996432394, + "auprc": 0.0024340470941582675, + "brier": 0.0010686972539624086, + "calibration": { + "observed_rate": 0.0010691375623663579, + "mean_prediction": 0.0004384274574196832, + "calibration_in_the_large": -0.0006307101049466747, + "expected_calibration_error_10bin": 0.0006307101049466747, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 4, + "negatives": 2802, + "auroc": 0.6283012134189865, + "auprc": 0.002588984503269551, + "brier": 0.0014250739654503004, + "calibration": { + "observed_rate": 0.0014255167498218105, + "mean_prediction": 0.0006237363037652502, + "calibration_in_the_large": -0.0008017804460565603, + "expected_calibration_error_10bin": 0.0008017804460565603, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 4, + "negatives": 2802, + "auroc": 0.6321377587437544, + "auprc": 0.0026693422857564236, + "brier": 0.0014253069776372668, + "calibration": { + "observed_rate": 0.0014255167498218105, + "mean_prediction": 0.0007702713429579589, + "calibration_in_the_large": -0.0006552454068638516, + "expected_calibration_error_10bin": 0.0006552454068638516, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 4, + "negatives": 2802, + "auroc": 0.6299964311206281, + "auprc": 0.0026590705184523166, + "brier": 0.001425628025207736, + "calibration": { + "observed_rate": 0.0014255167498218105, + "mean_prediction": 0.000869733932751553, + "calibration_in_the_large": -0.0005557828170702575, + "expected_calibration_error_10bin": 0.0005557828170702575, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 4, + "negatives": 2802, + "auroc": 0.6282119914346895, + "auprc": 0.00264096556181446, + "brier": 0.0014261222936385548, + "calibration": { + "observed_rate": 0.0014255167498218105, + "mean_prediction": 0.0009747419698890923, + "calibration_in_the_large": -0.00045077477993271816, + "expected_calibration_error_10bin": 0.00045077477993271816, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 5, + "negatives": 2801, + "auroc": 0.6904676901106748, + "auprc": 0.004552090542496395, + "brier": 0.0017800824059634756, + "calibration": { + "observed_rate": 0.001781895937277263, + "mean_prediction": 0.0010605879990908888, + "calibration_in_the_large": -0.0007213079381863743, + "expected_calibration_error_10bin": 0.0007213079381863743, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 5, + "negatives": 2801, + "auroc": 0.6916815423063192, + "auprc": 0.004618962463312626, + "brier": 0.001780133291380698, + "calibration": { + "observed_rate": 0.001781895937277263, + "mean_prediction": 0.0011157255851942183, + "calibration_in_the_large": -0.0006661703520830448, + "expected_calibration_error_10bin": 0.0006661703520830448, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 5, + "negatives": 2801, + "auroc": 0.6943234559086041, + "auprc": 0.004643215168607441, + "brier": 0.0017803356241853172, + "calibration": { + "observed_rate": 0.001781895937277263, + "mean_prediction": 0.0011962237312385597, + "calibration_in_the_large": -0.0005856722060387034, + "expected_calibration_error_10bin": 0.0005856722060387034, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 6, + "negatives": 2800, + "auroc": 0.7381547619047619, + "auprc": 0.007266723086213521, + "brier": 0.0021330437220642385, + "calibration": { + "observed_rate": 0.0021382751247327157, + "mean_prediction": 0.0012403931565103767, + "calibration_in_the_large": -0.000897881968222339, + "expected_calibration_error_10bin": 0.000897881968222339, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 6, + "negatives": 2800, + "auroc": 0.7421428571428571, + "auprc": 0.0071794588798501065, + "brier": 0.0021330351963629716, + "calibration": { + "observed_rate": 0.0021382751247327157, + "mean_prediction": 0.0013856879097480812, + "calibration_in_the_large": -0.0007525872149846346, + "expected_calibration_error_10bin": 0.0007525872149846346, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 6, + "negatives": 2800, + "auroc": 0.74125, + "auprc": 0.007099728148179941, + "brier": 0.0021330456759640123, + "calibration": { + "observed_rate": 0.0021382751247327157, + "mean_prediction": 0.001475008683864262, + "calibration_in_the_large": -0.0006632664408684538, + "expected_calibration_error_10bin": 0.0006632664408684538, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 6, + "negatives": 2800, + "auroc": 0.7414880952380952, + "auprc": 0.0071029969298665625, + "brier": 0.002133067192907376, + "calibration": { + "observed_rate": 0.0021382751247327157, + "mean_prediction": 0.0014868042014481585, + "calibration_in_the_large": -0.0006514709232845572, + "expected_calibration_error_10bin": 0.0006514709232845572, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + } + ], + "reason": null + }, + "H40": { + "time_averaged_auroc": 0.7495638943413483, + "time_averaged_auprc": 0.05591136747866026, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2750, + "positives": 3, + "negatives": 2747, + "auroc": 0.8810823929134813, + "auprc": 0.1280468262402375, + "brier": 0.0010784375456991046, + "calibration": { + "observed_rate": 0.001090909090909091, + "mean_prediction": 0.0008284950256783387, + "calibration_in_the_large": -0.0002624140652307522, + "expected_calibration_error_10bin": 0.0002624140652307522, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + { + "valid": 2750, + "positives": 4, + "negatives": 2746, + "auroc": 0.7927895120174799, + "auprc": 0.0984002111601765, + "brier": 0.0014346452317358124, + "calibration": { + "observed_rate": 0.0014545454545454545, + "mean_prediction": 0.0015434470838240073, + "calibration_in_the_large": 8.890162927855283e-05, + "expected_calibration_error_10bin": 8.890162927855283e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + { + "valid": 2750, + "positives": 5, + "negatives": 2745, + "auroc": 0.7548998178506375, + "auprc": 0.07933105367956275, + "brier": 0.0017957242426044418, + "calibration": { + "observed_rate": 0.0018181818181818182, + "mean_prediction": 0.0019620362890147426, + "calibration_in_the_large": 0.00014385447083292442, + "expected_calibration_error_10bin": 0.00014385447083292442, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + { + "valid": 2750, + "positives": 5, + "negatives": 2745, + "auroc": 0.7485610200364299, + "auprc": 0.06138596084354828, + "brier": 0.0017974654764338228, + "calibration": { + "observed_rate": 0.0018181818181818182, + "mean_prediction": 0.002494309292255242, + "calibration_in_the_large": 0.0006761274740734236, + "expected_calibration_error_10bin": 0.0006761274740734236, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + { + "valid": 2750, + "positives": 5, + "negatives": 2745, + "auroc": 0.7434608378870674, + "auprc": 0.060046222639374244, + "brier": 0.001801384365239063, + "calibration": { + "observed_rate": 0.0018181818181818182, + "mean_prediction": 0.002957611267510815, + "calibration_in_the_large": 0.0011394294493289967, + "expected_calibration_error_10bin": 0.0011394294493289967, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + { + "valid": 2750, + "positives": 5, + "negatives": 2745, + "auroc": 0.7432422586520947, + "auprc": 0.059888304839695004, + "brier": 0.0018036517022881414, + "calibration": { + "observed_rate": 0.0018181818181818182, + "mean_prediction": 0.003148632781627715, + "calibration_in_the_large": 0.0013304509634458968, + "expected_calibration_error_10bin": 0.0013304509634458968, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + { + "valid": 2750, + "positives": 6, + "negatives": 2744, + "auroc": 0.7809766763848397, + "auprc": 0.05439768909969075, + "brier": 0.0021581292072823605, + "calibration": { + "observed_rate": 0.002181818181818182, + "mean_prediction": 0.0032582612372987732, + "calibration_in_the_large": 0.0010764430554805913, + "expected_calibration_error_10bin": 0.0010764430554805913, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + { + "valid": 2750, + "positives": 6, + "negatives": 2744, + "auroc": 0.780915937803693, + "auprc": 0.05381363327980812, + "brier": 0.0021603632233521373, + "calibration": { + "observed_rate": 0.002181818181818182, + "mean_prediction": 0.003488431840847294, + "calibration_in_the_large": 0.001306613659029112, + "expected_calibration_error_10bin": 0.001306613659029112, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + { + "valid": 2750, + "positives": 9, + "negatives": 2741, + "auroc": 0.6817057845879444, + "auprc": 0.0287351290343712, + "brier": 0.0032483530990273304, + "calibration": { + "observed_rate": 0.0032727272727272726, + "mean_prediction": 0.0037291070929052444, + "calibration_in_the_large": 0.0004563798201779718, + "expected_calibration_error_10bin": 0.0004563798201779718, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + { + "valid": 2750, + "positives": 9, + "negatives": 2741, + "auroc": 0.6806518302322754, + "auprc": 0.028563838251874776, + "brier": 0.003249682120014178, + "calibration": { + "observed_rate": 0.0032727272727272726, + "mean_prediction": 0.00395781394004073, + "calibration_in_the_large": 0.0006850866673134576, + "expected_calibration_error_10bin": 0.0006850866673134576, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + { + "valid": 2750, + "positives": 12, + "negatives": 2738, + "auroc": 0.7187423910396883, + "auprc": 0.026090032633039953, + "brier": 0.004324937741720263, + "calibration": { + "observed_rate": 0.004363636363636364, + "mean_prediction": 0.004165707434485905, + "calibration_in_the_large": -0.00019792892915045882, + "expected_calibration_error_10bin": 0.00019792892915045882, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + { + "valid": 2750, + "positives": 12, + "negatives": 2738, + "auroc": 0.7184989043097151, + "auprc": 0.02406980549349133, + "brier": 0.00432630997563973, + "calibration": { + "observed_rate": 0.004363636363636364, + "mean_prediction": 0.004317494058290322, + "calibration_in_the_large": -4.614230534604174e-05, + "expected_calibration_error_10bin": 4.614230534604174e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + { + "valid": 2750, + "positives": 12, + "negatives": 2738, + "auroc": 0.7188032627221816, + "auprc": 0.024079070027713017, + "brier": 0.004326360284604882, + "calibration": { + "observed_rate": 0.004363636363636364, + "mean_prediction": 0.004348998277397186, + "calibration_in_the_large": -1.4638086239178102e-05, + "expected_calibration_error_10bin": 1.4638086239178102e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + } + ], + "reason": null + }, + "H53": { + "time_averaged_auroc": 0.5810517963981774, + "time_averaged_auprc": 0.012832718786014071, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2790, + "positives": 3, + "negatives": 2787, + "auroc": 0.6048319578997727, + "auprc": 0.013458157514251183, + "brier": 0.0010722092235634795, + "calibration": { + "observed_rate": 0.001075268817204301, + "mean_prediction": 0.0010849775719499353, + "calibration_in_the_large": 9.708754745634245e-06, + "expected_calibration_error_10bin": 9.708754745634245e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + { + "valid": 2790, + "positives": 3, + "negatives": 2787, + "auroc": 0.630426982418371, + "auprc": 0.013734662860575689, + "brier": 0.0010733369668796211, + "calibration": { + "observed_rate": 0.001075268817204301, + "mean_prediction": 0.0019403958354984189, + "calibration_in_the_large": 0.0008651270182941178, + "expected_calibration_error_10bin": 0.0008651270182941178, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + { + "valid": 2790, + "positives": 7, + "negatives": 2783, + "auroc": 0.6003798572968534, + "auprc": 0.01489167724483165, + "brier": 0.00249731558430792, + "calibration": { + "observed_rate": 0.0025089605734767025, + "mean_prediction": 0.002550745270291959, + "calibration_in_the_large": 4.178469681525654e-05, + "expected_calibration_error_10bin": 4.178469681525654e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + { + "valid": 2790, + "positives": 8, + "negatives": 2782, + "auroc": 0.5829888569374551, + "auprc": 0.013165468774302802, + "brier": 0.0028568622862151605, + "calibration": { + "observed_rate": 0.002867383512544803, + "mean_prediction": 0.00320426227068395, + "calibration_in_the_large": 0.00033687875813914704, + "expected_calibration_error_10bin": 0.00033687875813914704, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + { + "valid": 2790, + "positives": 9, + "negatives": 2781, + "auroc": 0.5867593591433936, + "auprc": 0.012300694171516153, + "brier": 0.0032158171486890764, + "calibration": { + "observed_rate": 0.0032258064516129032, + "mean_prediction": 0.003513270385599258, + "calibration_in_the_large": 0.0002874639339863548, + "expected_calibration_error_10bin": 0.0002874639339863548, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + { + "valid": 2790, + "positives": 9, + "negatives": 2781, + "auroc": 0.5952694873946223, + "auprc": 0.012840958681159732, + "brier": 0.003217310239942608, + "calibration": { + "observed_rate": 0.0032258064516129032, + "mean_prediction": 0.004016103337592517, + "calibration_in_the_large": 0.0007902968859796141, + "expected_calibration_error_10bin": 0.0007902968859796141, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + { + "valid": 2790, + "positives": 10, + "negatives": 2780, + "auroc": 0.5583093525179856, + "auprc": 0.01167966848098952, + "brier": 0.0035771883423091526, + "calibration": { + "observed_rate": 0.0035842293906810036, + "mean_prediction": 0.004288949714830658, + "calibration_in_the_large": 0.000704720324149654, + "expected_calibration_error_10bin": 0.000704720324149654, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + { + "valid": 2790, + "positives": 10, + "negatives": 2780, + "auroc": 0.5646762589928057, + "auprc": 0.011735963849741318, + "brier": 0.003578849315484232, + "calibration": { + "observed_rate": 0.0035842293906810036, + "mean_prediction": 0.004431260692481015, + "calibration_in_the_large": 0.000847031301800011, + "expected_calibration_error_10bin": 0.000847031301800011, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + { + "valid": 2790, + "positives": 11, + "negatives": 2779, + "auroc": 0.5307010369982662, + "auprc": 0.011216057278623964, + "brier": 0.003943080942634277, + "calibration": { + "observed_rate": 0.003942652329749104, + "mean_prediction": 0.004896611839409344, + "calibration_in_the_large": 0.0009539595096602392, + "expected_calibration_error_10bin": 0.0009539595096602392, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + { + "valid": 2790, + "positives": 12, + "negatives": 2778, + "auroc": 0.566444684425246, + "auprc": 0.01229467070406233, + "brier": 0.0042966384126098675, + "calibration": { + "observed_rate": 0.004301075268817204, + "mean_prediction": 0.005161030554910705, + "calibration_in_the_large": 0.0008599552860935004, + "expected_calibration_error_10bin": 0.0008599552860935004, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + { + "valid": 2790, + "positives": 13, + "negatives": 2777, + "auroc": 0.5858009473421789, + "auprc": 0.012339560130521864, + "brier": 0.004655644935015549, + "calibration": { + "observed_rate": 0.004659498207885305, + "mean_prediction": 0.005538805510358898, + "calibration_in_the_large": 0.0008793073024735932, + "expected_calibration_error_10bin": 0.0008793073024735932, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + { + "valid": 2790, + "positives": 14, + "negatives": 2776, + "auroc": 0.5593608480856319, + "auprc": 0.011842101006515799, + "brier": 0.005021384609748656, + "calibration": { + "observed_rate": 0.005017921146953405, + "mean_prediction": 0.006038387567384876, + "calibration_in_the_large": 0.0010204664204314711, + "expected_calibration_error_10bin": 0.0010204664204314714, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + { + "valid": 2790, + "positives": 15, + "negatives": 2775, + "auroc": 0.5877237237237237, + "auprc": 0.01532570352109092, + "brier": 0.005361187401439963, + "calibration": { + "observed_rate": 0.005376344086021506, + "mean_prediction": 0.0060477511277989785, + "calibration_in_the_large": 0.0006714070417774727, + "expected_calibration_error_10bin": 0.000671407041777473, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + } + ], + "reason": null + }, + "H54": { + "time_averaged_auroc": 0.4696217014791795, + "time_averaged_auprc": 0.0011635288797830737, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2809, + "positives": 1, + "negatives": 2808, + "auroc": 0.7236467236467237, + "auprc": 0.001287001287001287, + "brier": 0.0003559858386567893, + "calibration": { + "observed_rate": 0.000355998576005696, + "mean_prediction": 0.0002401162793008985, + "calibration_in_the_large": -0.00011588229670479749, + "expected_calibration_error_10bin": 0.00011588229670479749, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 2, + "negatives": 2807, + "auroc": 0.46312789454934095, + "auprc": 0.0010199874016792235, + "brier": 0.0007122586890337656, + "calibration": { + "observed_rate": 0.000711997152011392, + "mean_prediction": 0.00044688655521965206, + "calibration_in_the_large": -0.00026511059679173993, + "expected_calibration_error_10bin": 0.00026511059679173993, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 2, + "negatives": 2807, + "auroc": 0.44389027431421446, + "auprc": 0.000963253044464113, + "brier": 0.0007128386832519973, + "calibration": { + "observed_rate": 0.000711997152011392, + "mean_prediction": 0.0006216428970496722, + "calibration_in_the_large": -9.035425496171977e-05, + "expected_calibration_error_10bin": 9.035425496171977e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 2, + "negatives": 2807, + "auroc": 0.44050587816173853, + "auprc": 0.0009594729663314724, + "brier": 0.000713418517973869, + "calibration": { + "observed_rate": 0.000711997152011392, + "mean_prediction": 0.0007403332779152425, + "calibration_in_the_large": 2.8336125903850504e-05, + "expected_calibration_error_10bin": 2.8336125903850504e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 2, + "negatives": 2807, + "auroc": 0.44602778767367296, + "auprc": 0.0009843270786543989, + "brier": 0.0007139371123661332, + "calibration": { + "observed_rate": 0.000711997152011392, + "mean_prediction": 0.0008247806024626743, + "calibration_in_the_large": 0.00011278345045128227, + "expected_calibration_error_10bin": 0.00011278345045128227, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 2, + "negatives": 2807, + "auroc": 0.4474527965799786, + "auprc": 0.000983847992467225, + "brier": 0.0007142526677092737, + "calibration": { + "observed_rate": 0.000711997152011392, + "mean_prediction": 0.0008878545976154933, + "calibration_in_the_large": 0.00017585744560410133, + "expected_calibration_error_10bin": 0.00017585744560410133, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 2, + "negatives": 2807, + "auroc": 0.4494121838261489, + "auprc": 0.0009913987343012206, + "brier": 0.0007147294567047905, + "calibration": { + "observed_rate": 0.000711997152011392, + "mean_prediction": 0.0009582429353088315, + "calibration_in_the_large": 0.00024624578329743947, + "expected_calibration_error_10bin": 0.00024624578329743947, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 2, + "negatives": 2807, + "auroc": 0.4410402565016031, + "auprc": 0.0009741888464013933, + "brier": 0.000715384629762529, + "calibration": { + "observed_rate": 0.000711997152011392, + "mean_prediction": 0.0010513521186612076, + "calibration_in_the_large": 0.0003393549666498156, + "expected_calibration_error_10bin": 0.0003393549666498156, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 2, + "negatives": 2807, + "auroc": 0.44584966156038475, + "auprc": 0.0009887641543182687, + "brier": 0.0007158084397271767, + "calibration": { + "observed_rate": 0.000711997152011392, + "mean_prediction": 0.0011333102160396796, + "calibration_in_the_large": 0.00042131306402828765, + "expected_calibration_error_10bin": 0.00042131306402828765, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 3, + "negatives": 2806, + "auroc": 0.41910192444761224, + "auprc": 0.0012072972370590965, + "brier": 0.0010720133831151474, + "calibration": { + "observed_rate": 0.001067995728017088, + "mean_prediction": 0.0012168935424528328, + "calibration_in_the_large": 0.0001488978144357448, + "expected_calibration_error_10bin": 0.0001488978144357448, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 4, + "negatives": 2805, + "auroc": 0.46354723707664885, + "auprc": 0.001595298443714852, + "brier": 0.0014280384897347844, + "calibration": { + "observed_rate": 0.001423994304022784, + "mean_prediction": 0.0012996066200631092, + "calibration_in_the_large": -0.0001243876839596748, + "expected_calibration_error_10bin": 0.0001243876839596748, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 4, + "negatives": 2805, + "auroc": 0.46078431372549017, + "auprc": 0.0015857167972719956, + "brier": 0.001428919782388013, + "calibration": { + "observed_rate": 0.001423994304022784, + "mean_prediction": 0.0014018711972694363, + "calibration_in_the_large": -2.2123106753347676e-05, + "expected_calibration_error_10bin": 2.2123106753347676e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 4, + "negatives": 2805, + "auroc": 0.4606951871657754, + "auprc": 0.0015853214535154116, + "brier": 0.0014289418422717317, + "calibration": { + "observed_rate": 0.001423994304022784, + "mean_prediction": 0.0014050461319478067, + "calibration_in_the_large": -1.8948172074977282e-05, + "expected_calibration_error_10bin": 1.8948172074977282e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + } + ], + "reason": null + }, + "H91": { + "time_averaged_auroc": 0.7993785790059184, + "time_averaged_auprc": 0.01947117526834457, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2791, + "positives": 1, + "negatives": 2790, + "auroc": 0.6455197132616487, + "auprc": 0.00101010101010101, + "brier": 0.00035834882097331107, + "calibration": { + "observed_rate": 0.00035829451809387314, + "mean_prediction": 0.00027366673069883596, + "calibration_in_the_large": -8.462778739503718e-05, + "expected_calibration_error_10bin": 8.462778739503718e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9817094618360886 + }, + { + "valid": 2791, + "positives": 2, + "negatives": 2789, + "auroc": 0.8241305127285765, + "auprc": 0.03674521354933726, + "brier": 0.000713151472939182, + "calibration": { + "observed_rate": 0.0007165890361877463, + "mean_prediction": 0.0006503023685638628, + "calibration_in_the_large": -6.628666762388351e-05, + "expected_calibration_error_10bin": 6.628666762388351e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9817094618360886 + }, + { + "valid": 2791, + "positives": 5, + "negatives": 2786, + "auroc": 0.8119167264895908, + "auprc": 0.016863518211139527, + "brier": 0.0017833539137140327, + "calibration": { + "observed_rate": 0.0017914725904693658, + "mean_prediction": 0.0009531794358962841, + "calibration_in_the_large": -0.0008382931545730817, + "expected_calibration_error_10bin": 0.0008382931545730817, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9817094618360886 + }, + { + "valid": 2791, + "positives": 5, + "negatives": 2786, + "auroc": 0.8081119885139986, + "auprc": 0.023787423587750184, + "brier": 0.0017823455407447399, + "calibration": { + "observed_rate": 0.0017914725904693658, + "mean_prediction": 0.0010720814300412625, + "calibration_in_the_large": -0.0007193911604281033, + "expected_calibration_error_10bin": 0.0007193911604281033, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9817094618360886 + }, + { + "valid": 2791, + "positives": 5, + "negatives": 2786, + "auroc": 0.803445800430725, + "auprc": 0.0172816984247735, + "brier": 0.001781867633358514, + "calibration": { + "observed_rate": 0.0017914725904693658, + "mean_prediction": 0.0012832452235625716, + "calibration_in_the_large": -0.0005082273669067942, + "expected_calibration_error_10bin": 0.0005082273669067942, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9817094618360886 + }, + { + "valid": 2791, + "positives": 5, + "negatives": 2786, + "auroc": 0.803445800430725, + "auprc": 0.01742638805423775, + "brier": 0.0017814440218057476, + "calibration": { + "observed_rate": 0.0017914725904693658, + "mean_prediction": 0.0014238502701227626, + "calibration_in_the_large": -0.00036762232034660315, + "expected_calibration_error_10bin": 0.00036762232034660315, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9817094618360886 + }, + { + "valid": 2791, + "positives": 7, + "negatives": 2784, + "auroc": 0.8149630541871922, + "auprc": 0.02007297413931362, + "brier": 0.002488179214953149, + "calibration": { + "observed_rate": 0.0025080616266571123, + "mean_prediction": 0.0017328899144569898, + "calibration_in_the_large": -0.0007751717122001225, + "expected_calibration_error_10bin": 0.0007751717122001225, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9817094618360886 + }, + { + "valid": 2791, + "positives": 7, + "negatives": 2784, + "auroc": 0.8143986042692939, + "auprc": 0.019780311356996372, + "brier": 0.0024880340364846175, + "calibration": { + "observed_rate": 0.0025080616266571123, + "mean_prediction": 0.0018050512967458304, + "calibration_in_the_large": -0.0007030103299112819, + "expected_calibration_error_10bin": 0.0007030103299112819, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9817094618360886 + }, + { + "valid": 2791, + "positives": 7, + "negatives": 2784, + "auroc": 0.8144499178981938, + "auprc": 0.01920014717698328, + "brier": 0.0024880193433464317, + "calibration": { + "observed_rate": 0.0025080616266571123, + "mean_prediction": 0.0018577493955735486, + "calibration_in_the_large": -0.0006503122310835636, + "expected_calibration_error_10bin": 0.0006503122310835636, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9817094618360886 + }, + { + "valid": 2791, + "positives": 7, + "negatives": 2784, + "auroc": 0.8130644499178982, + "auprc": 0.02056037442764563, + "brier": 0.002486944472275995, + "calibration": { + "observed_rate": 0.0025080616266571123, + "mean_prediction": 0.0021236607670049555, + "calibration_in_the_large": -0.00038440085965215677, + "expected_calibration_error_10bin": 0.00038440085965215677, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9817094618360886 + }, + { + "valid": 2791, + "positives": 7, + "negatives": 2784, + "auroc": 0.8126539408866995, + "auprc": 0.020153518367602884, + "brier": 0.002486909690399322, + "calibration": { + "observed_rate": 0.0025080616266571123, + "mean_prediction": 0.0021986906241519477, + "calibration_in_the_large": -0.0003093710025051646, + "expected_calibration_error_10bin": 0.0003093710025051646, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9817094618360886 + }, + { + "valid": 2791, + "positives": 7, + "negatives": 2784, + "auroc": 0.8129618226600985, + "auprc": 0.02012665905010633, + "brier": 0.0024867570564862693, + "calibration": { + "observed_rate": 0.0025080616266571123, + "mean_prediction": 0.0023516879159240453, + "calibration_in_the_large": -0.00015637371073306703, + "expected_calibration_error_10bin": 0.00015637371073306703, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9817094618360886 + }, + { + "valid": 2791, + "positives": 7, + "negatives": 2784, + "auroc": 0.8128591954022989, + "auprc": 0.02011695113249203, + "brier": 0.0024867765296618088, + "calibration": { + "observed_rate": 0.0025080616266571123, + "mean_prediction": 0.002357080882865594, + "calibration_in_the_large": -0.00015098074379151817, + "expected_calibration_error_10bin": 0.00015098074379151817, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9817094618360886 + } + ], + "reason": null + }, + "I07": { + "time_averaged_auroc": 0.8192860035537622, + "time_averaged_auprc": 0.010033602228465529, + "valid_timepoint_cells": 12, + "timepoints": [ + { + "valid": 2823, + "positives": 0, + "negatives": 2823, + "auroc": null, + "auprc": null, + "brier": 1.738916128482001e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0001840851627906993, + "calibration_in_the_large": 0.0001840851627906993, + "expected_calibration_error_10bin": 0.0001840851627906993, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 2, + "negatives": 2821, + "auroc": 0.6905352711804325, + "auprc": 0.001666626458549452, + "brier": 0.0007087130357322688, + "calibration": { + "observed_rate": 0.0007084661707403471, + "mean_prediction": 0.0003531318886723759, + "calibration_in_the_large": -0.00035533428206797126, + "expected_calibration_error_10bin": 0.00035533428206797126, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 2, + "negatives": 2821, + "auroc": 0.6912442396313364, + "auprc": 0.0016707005512975662, + "brier": 0.0007089964813304049, + "calibration": { + "observed_rate": 0.0007084661707403471, + "mean_prediction": 0.0004498683240858205, + "calibration_in_the_large": -0.00025859784665452666, + "expected_calibration_error_10bin": 0.00025859784665452666, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 4, + "negatives": 2819, + "auroc": 0.8290173820503725, + "auprc": 0.008665154903634778, + "brier": 0.0014132001292431722, + "calibration": { + "observed_rate": 0.0014169323414806943, + "mean_prediction": 0.0006633663404715283, + "calibration_in_the_large": -0.000753566001009166, + "expected_calibration_error_10bin": 0.000753566001009166, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 5, + "negatives": 2818, + "auroc": 0.853513129879347, + "auprc": 0.012117809058163013, + "brier": 0.0017648970379773535, + "calibration": { + "observed_rate": 0.001771165426850868, + "mean_prediction": 0.0007354767647978905, + "calibration_in_the_large": -0.0010356886620529774, + "expected_calibration_error_10bin": 0.0010356886620529774, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 5, + "negatives": 2818, + "auroc": 0.8506032647267565, + "auprc": 0.012027843782672538, + "brier": 0.0017645517488897098, + "calibration": { + "observed_rate": 0.001771165426850868, + "mean_prediction": 0.0008147805008769502, + "calibration_in_the_large": -0.0009563849259739177, + "expected_calibration_error_10bin": 0.0009563849259739177, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.8439829605963791, + "auprc": 0.011795853335819903, + "brier": 0.0021170930617099067, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0009328341731462274, + "calibration_in_the_large": -0.001192564339074814, + "expected_calibration_error_10bin": 0.001192564339074814, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.842799668678263, + "auprc": 0.012000711602070356, + "brier": 0.0021166798732851475, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0009967139821525147, + "calibration_in_the_large": -0.0011286845300685266, + "expected_calibration_error_10bin": 0.0011286845300685266, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.8459945568571766, + "auprc": 0.012197988290656799, + "brier": 0.002116152124138082, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0010779222801554449, + "calibration_in_the_large": -0.0010474762320655964, + "expected_calibration_error_10bin": 0.0010474762320655964, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.8452254171104011, + "auprc": 0.011816034382669862, + "brier": 0.002116258843116491, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0011174032345318882, + "calibration_in_the_large": -0.0010079952776891532, + "expected_calibration_error_10bin": 0.0010079952776891532, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.8460537214530824, + "auprc": 0.011860126352054337, + "brier": 0.002116068038787503, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0011718535038439978, + "calibration_in_the_large": -0.0009535450083770435, + "expected_calibration_error_10bin": 0.0009535450083770435, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.8461720506448941, + "auprc": 0.012290062387381782, + "brier": 0.002115708080402413, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0012631244693360702, + "calibration_in_the_large": -0.0008622740428849711, + "expected_calibration_error_10bin": 0.0008622740428849711, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.8462903798367057, + "auprc": 0.012294315636615953, + "brier": 0.002115700640911631, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.001267594302003661, + "calibration_in_the_large": -0.0008578042102173804, + "expected_calibration_error_10bin": 0.0008578042102173804, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + } + ], + "reason": null + }, + "I08": { + "time_averaged_auroc": 0.823196587458891, + "time_averaged_auprc": 0.01754104982044195, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2767, + "positives": 1, + "negatives": 2766, + "auroc": 0.7986261749819233, + "auprc": 0.0017921146953405018, + "brier": 0.00037311181906062496, + "calibration": { + "observed_rate": 0.0003614022406938923, + "mean_prediction": 0.0011993714683462568, + "calibration_in_the_large": 0.0008379692276523644, + "expected_calibration_error_10bin": 0.0008379692276523644, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9732676749912065 + }, + { + "valid": 2767, + "positives": 4, + "negatives": 2763, + "auroc": 0.7561527325370974, + "auprc": 0.005128734470396314, + "brier": 0.0014630358353669665, + "calibration": { + "observed_rate": 0.0014456089627755693, + "mean_prediction": 0.0018248659419834409, + "calibration_in_the_large": 0.0003792569792078716, + "expected_calibration_error_10bin": 0.0003792569792078716, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9732676749912065 + }, + { + "valid": 2767, + "positives": 5, + "negatives": 2762, + "auroc": 0.753222302679218, + "auprc": 0.005385705253233587, + "brier": 0.0018469949939362276, + "calibration": { + "observed_rate": 0.0018070112034694614, + "mean_prediction": 0.002566412165151797, + "calibration_in_the_large": 0.0007594009616823355, + "expected_calibration_error_10bin": 0.0007594009616823354, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9732676749912065 + }, + { + "valid": 2767, + "positives": 8, + "negatives": 2759, + "auroc": 0.8078108010148605, + "auprc": 0.013278562664816184, + "brier": 0.002907438461225722, + "calibration": { + "observed_rate": 0.0028912179255511385, + "mean_prediction": 0.0029677866439523554, + "calibration_in_the_large": 7.656871840121694e-05, + "expected_calibration_error_10bin": 7.656871840121732e-05, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9732676749912065 + }, + { + "valid": 2767, + "positives": 8, + "negatives": 2759, + "auroc": 0.8065875317143892, + "auprc": 0.013104999010252149, + "brier": 0.002916789175858571, + "calibration": { + "observed_rate": 0.0028912179255511385, + "mean_prediction": 0.0032688818163544146, + "calibration_in_the_large": 0.00037766389080327607, + "expected_calibration_error_10bin": 0.0003776638908032764, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9732676749912065 + }, + { + "valid": 2767, + "positives": 8, + "negatives": 2759, + "auroc": 0.8049565059804277, + "auprc": 0.012813366723481748, + "brier": 0.002935492958330033, + "calibration": { + "observed_rate": 0.0028912179255511385, + "mean_prediction": 0.0036706858168170592, + "calibration_in_the_large": 0.0007794678912659207, + "expected_calibration_error_10bin": 0.0007794678912659209, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9732676749912065 + }, + { + "valid": 2767, + "positives": 9, + "negatives": 2758, + "auroc": 0.8228184674885183, + "auprc": 0.015761945954382642, + "brier": 0.0032984381043705793, + "calibration": { + "observed_rate": 0.0032526201662450307, + "mean_prediction": 0.004079669855260402, + "calibration_in_the_large": 0.0008270496890153711, + "expected_calibration_error_10bin": 0.000827049689015371, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9732676749912065 + }, + { + "valid": 2767, + "positives": 12, + "negatives": 2755, + "auroc": 0.855535390199637, + "auprc": 0.024368036817446526, + "brier": 0.004339508716297554, + "calibration": { + "observed_rate": 0.0043368268883267076, + "mean_prediction": 0.004283348592812026, + "calibration_in_the_large": -5.3478295514681334e-05, + "expected_calibration_error_10bin": 0.0006853776371916805, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9732676749912065 + }, + { + "valid": 2767, + "positives": 12, + "negatives": 2755, + "auroc": 0.8544162129461585, + "auprc": 0.024137852761356538, + "brier": 0.004349621286332078, + "calibration": { + "observed_rate": 0.0043368268883267076, + "mean_prediction": 0.004540097002318153, + "calibration_in_the_large": 0.0002032701139914458, + "expected_calibration_error_10bin": 0.0006123617353598783, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9732676749912065 + }, + { + "valid": 2767, + "positives": 12, + "negatives": 2755, + "auroc": 0.8546884452510587, + "auprc": 0.02409583313327875, + "brier": 0.004363550288723414, + "calibration": { + "observed_rate": 0.0043368268883267076, + "mean_prediction": 0.0048181923714573326, + "calibration_in_the_large": 0.000481365483130625, + "expected_calibration_error_10bin": 0.0007704129391691924, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9732676749912065 + }, + { + "valid": 2767, + "positives": 13, + "negatives": 2754, + "auroc": 0.8600078207921346, + "auprc": 0.025606940420791514, + "brier": 0.0047221184306614735, + "calibration": { + "observed_rate": 0.0046982291290206, + "mean_prediction": 0.005052296308042058, + "calibration_in_the_large": 0.0003540671790214587, + "expected_calibration_error_10bin": 0.0010176553857206131, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9732676749912065 + }, + { + "valid": 2767, + "positives": 13, + "negatives": 2754, + "auroc": 0.8583040053628289, + "auprc": 0.025259114452599044, + "brier": 0.004732553676190619, + "calibration": { + "observed_rate": 0.0046982291290206, + "mean_prediction": 0.00528329487379842, + "calibration_in_the_large": 0.0005850657447778202, + "expected_calibration_error_10bin": 0.000836354481303777, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9732676749912065 + }, + { + "valid": 2767, + "positives": 14, + "negatives": 2753, + "auroc": 0.8684292460173317, + "auprc": 0.03730044130836986, + "brier": 0.005011412866296074, + "calibration": { + "observed_rate": 0.005059631369714492, + "mean_prediction": 0.005290815194337813, + "calibration_in_the_large": 0.00023118382462332127, + "expected_calibration_error_10bin": 0.0004686275618872956, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9732676749912065 + } + ], + "reason": null + }, + "I10": { + "time_averaged_auroc": 0.6672482693113231, + "time_averaged_auprc": 0.04471055939404157, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 1498, + "positives": 14, + "negatives": 1484, + "auroc": 0.5984790142472083, + "auprc": 0.016188477169726812, + "brier": 0.00928430484761087, + "calibration": { + "observed_rate": 0.009345794392523364, + "mean_prediction": 0.0059101580990729725, + "calibration_in_the_large": -0.0034356362934503913, + "expected_calibration_error_10bin": 0.0034356362934503913, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5269081955680619 + }, + { + "valid": 1498, + "positives": 22, + "negatives": 1476, + "auroc": 0.6043052475979305, + "auprc": 0.021431423620339642, + "brier": 0.014534120859337463, + "calibration": { + "observed_rate": 0.014686248331108143, + "mean_prediction": 0.009086306934574904, + "calibration_in_the_large": -0.005599941396533239, + "expected_calibration_error_10bin": 0.005599941396533239, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5269081955680619 + }, + { + "valid": 1498, + "positives": 24, + "negatives": 1474, + "auroc": 0.6287878787878788, + "auprc": 0.030768489711400764, + "brier": 0.015764980869379823, + "calibration": { + "observed_rate": 0.01602136181575434, + "mean_prediction": 0.0119582429887352, + "calibration_in_the_large": -0.00406311882701914, + "expected_calibration_error_10bin": 0.00421290174812838, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5269081955680619 + }, + { + "valid": 1498, + "positives": 27, + "negatives": 1471, + "auroc": 0.6542034896895536, + "auprc": 0.03482563264581781, + "brier": 0.01767272456365221, + "calibration": { + "observed_rate": 0.018024032042723633, + "mean_prediction": 0.013856812621361436, + "calibration_in_the_large": -0.004167219421362197, + "expected_calibration_error_10bin": 0.004612631363555161, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5269081955680619 + }, + { + "valid": 1498, + "positives": 31, + "negatives": 1467, + "auroc": 0.6852254986036898, + "auprc": 0.04386929777104283, + "brier": 0.020165314811843926, + "calibration": { + "observed_rate": 0.02069425901201602, + "mean_prediction": 0.015752205304762297, + "calibration_in_the_large": -0.004942053707253723, + "expected_calibration_error_10bin": 0.006190204880593871, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5269081955680619 + }, + { + "valid": 1498, + "positives": 33, + "negatives": 1465, + "auroc": 0.6781466542558693, + "auprc": 0.04485804624021331, + "brier": 0.021458683417378263, + "calibration": { + "observed_rate": 0.022029372496662217, + "mean_prediction": 0.017315076368311307, + "calibration_in_the_large": -0.0047142961283509095, + "expected_calibration_error_10bin": 0.005346540490803227, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5269081955680619 + }, + { + "valid": 1498, + "positives": 34, + "negatives": 1464, + "auroc": 0.6868772099003536, + "auprc": 0.047072008925572666, + "brier": 0.022077527322470203, + "calibration": { + "observed_rate": 0.022696929238985315, + "mean_prediction": 0.018716165867963003, + "calibration_in_the_large": -0.003980763371022312, + "expected_calibration_error_10bin": 0.00516918074292689, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5269081955680619 + }, + { + "valid": 1498, + "positives": 36, + "negatives": 1462, + "auroc": 0.6832535339717283, + "auprc": 0.047968866199599475, + "brier": 0.023362973855725735, + "calibration": { + "observed_rate": 0.02403204272363151, + "mean_prediction": 0.020200564730486575, + "calibration_in_the_large": -0.003831477993144934, + "expected_calibration_error_10bin": 0.005720712245210075, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5269081955680619 + }, + { + "valid": 1498, + "positives": 38, + "negatives": 1460, + "auroc": 0.691492429704398, + "auprc": 0.05457900074588573, + "brier": 0.024535187036717115, + "calibration": { + "observed_rate": 0.025367156208277702, + "mean_prediction": 0.021247693935818896, + "calibration_in_the_large": -0.004119462272458806, + "expected_calibration_error_10bin": 0.005561252354407366, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5269081955680619 + }, + { + "valid": 1498, + "positives": 40, + "negatives": 1458, + "auroc": 0.6920781893004115, + "auprc": 0.056775245916574235, + "brier": 0.025794631812137408, + "calibration": { + "observed_rate": 0.0267022696929239, + "mean_prediction": 0.02280461937481306, + "calibration_in_the_large": -0.003897650318110839, + "expected_calibration_error_10bin": 0.006050118725455911, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5269081955680619 + }, + { + "valid": 1498, + "positives": 40, + "negatives": 1458, + "auroc": 0.6937071330589849, + "auprc": 0.057740397629552964, + "brier": 0.025791616317885697, + "calibration": { + "observed_rate": 0.0267022696929239, + "mean_prediction": 0.024078747878212965, + "calibration_in_the_large": -0.0026235218147109343, + "expected_calibration_error_10bin": 0.0031751404603127544, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5269081955680619 + }, + { + "valid": 1498, + "positives": 43, + "negatives": 1455, + "auroc": 0.6887397107008711, + "auprc": 0.06266216137939452, + "brier": 0.027659988913947324, + "calibration": { + "observed_rate": 0.02870493991989319, + "mean_prediction": 0.024969447538591125, + "calibration_in_the_large": -0.0037354923813020663, + "expected_calibration_error_10bin": 0.0046283828717244855, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5269081955680619 + }, + { + "valid": 1498, + "positives": 43, + "negatives": 1455, + "auroc": 0.6889315112283225, + "auprc": 0.06249822416741957, + "brier": 0.027660395203509047, + "calibration": { + "observed_rate": 0.02870493991989319, + "mean_prediction": 0.025256585656635425, + "calibration_in_the_large": -0.003448354263257767, + "expected_calibration_error_10bin": 0.004348268074814096, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5269081955680619 + } + ], + "reason": null + }, + "I11": { + "time_averaged_auroc": 0.8185703502452779, + "time_averaged_auprc": 0.06333943280156594, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2676, + "positives": 8, + "negatives": 2668, + "auroc": 0.7958208395802099, + "auprc": 0.03335513760839992, + "brier": 0.0029685973570596487, + "calibration": { + "observed_rate": 0.0029895366218236174, + "mean_prediction": 0.002852924134812056, + "calibration_in_the_large": -0.00013661248701156165, + "expected_calibration_error_10bin": 0.00013661248701156165, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9412592332043616 + }, + { + "valid": 2676, + "positives": 17, + "negatives": 2659, + "auroc": 0.8347012366435856, + "auprc": 0.05969890385302294, + "brier": 0.006232305302618021, + "calibration": { + "observed_rate": 0.006352765321375187, + "mean_prediction": 0.005303138116123972, + "calibration_in_the_large": -0.0010496272052512145, + "expected_calibration_error_10bin": 0.0010496272052512145, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9412592332043616 + }, + { + "valid": 2676, + "positives": 22, + "negatives": 2654, + "auroc": 0.8347263136260875, + "auprc": 0.0585831027799329, + "brier": 0.008036037400656292, + "calibration": { + "observed_rate": 0.008221225710014948, + "mean_prediction": 0.006963269930763535, + "calibration_in_the_large": -0.0012579557792514132, + "expected_calibration_error_10bin": 0.001257955779251413, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9412592332043616 + }, + { + "valid": 2676, + "positives": 27, + "negatives": 2649, + "auroc": 0.8222390000419445, + "auprc": 0.0543472880606954, + "brier": 0.009880820374935824, + "calibration": { + "observed_rate": 0.010089686098654708, + "mean_prediction": 0.008425182477382298, + "calibration_in_the_large": -0.0016645036212724097, + "expected_calibration_error_10bin": 0.0017367684061943905, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9412592332043616 + }, + { + "valid": 2676, + "positives": 28, + "negatives": 2648, + "auroc": 0.8171800820025895, + "auprc": 0.053004588194931805, + "brier": 0.01025358823720253, + "calibration": { + "observed_rate": 0.01046337817638266, + "mean_prediction": 0.009318608475685117, + "calibration_in_the_large": -0.0011447697006975437, + "expected_calibration_error_10bin": 0.0016647782068701631, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9412592332043616 + }, + { + "valid": 2676, + "positives": 32, + "negatives": 2644, + "auroc": 0.8235509644478064, + "auprc": 0.054846972427158906, + "brier": 0.011685775713958329, + "calibration": { + "observed_rate": 0.01195814648729447, + "mean_prediction": 0.010411671626554438, + "calibration_in_the_large": -0.0015464748607400321, + "expected_calibration_error_10bin": 0.002517661237836992, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9412592332043616 + }, + { + "valid": 2676, + "positives": 38, + "negatives": 2638, + "auroc": 0.82607437851642, + "auprc": 0.06006746644292147, + "brier": 0.013807645819751076, + "calibration": { + "observed_rate": 0.014200298953662182, + "mean_prediction": 0.011811654209869564, + "calibration_in_the_large": -0.0023886447437926183, + "expected_calibration_error_10bin": 0.004134032655589188, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9412592332043616 + }, + { + "valid": 2676, + "positives": 43, + "negatives": 2633, + "auroc": 0.8363525556664517, + "auprc": 0.07178884114332446, + "brier": 0.015464484932413024, + "calibration": { + "observed_rate": 0.016068759342301942, + "mean_prediction": 0.012545986980108913, + "calibration_in_the_large": -0.0035227723621930294, + "expected_calibration_error_10bin": 0.005609526303853356, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9412592332043616 + }, + { + "valid": 2676, + "positives": 45, + "negatives": 2631, + "auroc": 0.8163773808015541, + "auprc": 0.06971991443996693, + "brier": 0.016208731194444933, + "calibration": { + "observed_rate": 0.016816143497757848, + "mean_prediction": 0.013603260493423796, + "calibration_in_the_large": -0.003212883004334052, + "expected_calibration_error_10bin": 0.005960305787386312, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9412592332043616 + }, + { + "valid": 2676, + "positives": 48, + "negatives": 2628, + "auroc": 0.8153697361745307, + "auprc": 0.07026968177781194, + "brier": 0.017290321031669446, + "calibration": { + "observed_rate": 0.017937219730941704, + "mean_prediction": 0.014352190758285107, + "calibration_in_the_large": -0.0035850289726565964, + "expected_calibration_error_10bin": 0.007142667275436117, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9412592332043616 + }, + { + "valid": 2676, + "positives": 53, + "negatives": 2623, + "auroc": 0.8093210280609126, + "auprc": 0.07862544466318412, + "brier": 0.018961609520589118, + "calibration": { + "observed_rate": 0.019805680119581465, + "mean_prediction": 0.015667758758203563, + "calibration_in_the_large": -0.0041379213613779026, + "expected_calibration_error_10bin": 0.007421664254592261, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9412592332043616 + }, + { + "valid": 2676, + "positives": 57, + "negatives": 2619, + "auroc": 0.8048806629020049, + "auprc": 0.07957416539330266, + "brier": 0.020375106704971568, + "calibration": { + "observed_rate": 0.021300448430493273, + "mean_prediction": 0.016452141198418615, + "calibration_in_the_large": -0.004848307232074658, + "expected_calibration_error_10bin": 0.007929851524733805, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9412592332043616 + }, + { + "valid": 2676, + "positives": 57, + "negatives": 2619, + "auroc": 0.8048203747245165, + "auprc": 0.07953111963570378, + "brier": 0.020375526557747763, + "calibration": { + "observed_rate": 0.021300448430493273, + "mean_prediction": 0.01655718186427303, + "calibration_in_the_large": -0.004743266566220244, + "expected_calibration_error_10bin": 0.007862871180949192, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9412592332043616 + } + ], + "reason": null + }, + "I12": { + "time_averaged_auroc": 0.8480687393886794, + "time_averaged_auprc": 0.0782817834652396, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2552, + "positives": 8, + "negatives": 2544, + "auroc": 0.8234080188679245, + "auprc": 0.03131400973063796, + "brier": 0.0031062924339876814, + "calibration": { + "observed_rate": 0.003134796238244514, + "mean_prediction": 0.002055710462847514, + "calibration_in_the_large": -0.001079085775397, + "expected_calibration_error_10bin": 0.001175289517192591, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8976433345058037 + }, + { + "valid": 2552, + "positives": 10, + "negatives": 2542, + "auroc": 0.8485837922895358, + "auprc": 0.04537491368462845, + "brier": 0.0038488473197135255, + "calibration": { + "observed_rate": 0.003918495297805642, + "mean_prediction": 0.0036819291409518197, + "calibration_in_the_large": -0.00023656615685382259, + "expected_calibration_error_10bin": 0.00046732961473282676, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8976433345058037 + }, + { + "valid": 2552, + "positives": 11, + "negatives": 2541, + "auroc": 0.8642982361990627, + "auprc": 0.06037226708569377, + "brier": 0.004210151684646852, + "calibration": { + "observed_rate": 0.004310344827586207, + "mean_prediction": 0.004412850596958133, + "calibration_in_the_large": 0.00010250576937192654, + "expected_calibration_error_10bin": 0.0005478829068458041, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8976433345058037 + }, + { + "valid": 2552, + "positives": 16, + "negatives": 2536, + "auroc": 0.8365536277602523, + "auprc": 0.05217185765869884, + "brier": 0.006141186157510879, + "calibration": { + "observed_rate": 0.006269592476489028, + "mean_prediction": 0.005405003493520373, + "calibration_in_the_large": -0.0008645889829686547, + "expected_calibration_error_10bin": 0.0010779640819953264, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8976433345058037 + }, + { + "valid": 2552, + "positives": 17, + "negatives": 2535, + "auroc": 0.8357814131569787, + "auprc": 0.05220211708555079, + "brier": 0.006558374088831653, + "calibration": { + "observed_rate": 0.0066614420062695925, + "mean_prediction": 0.006371866400279536, + "calibration_in_the_large": -0.00028957560599005613, + "expected_calibration_error_10bin": 0.000932437117116263, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8976433345058037 + }, + { + "valid": 2552, + "positives": 19, + "negatives": 2533, + "auroc": 0.8478816464770296, + "auprc": 0.09903982030607088, + "brier": 0.0071839328641439834, + "calibration": { + "observed_rate": 0.007445141065830721, + "mean_prediction": 0.00724723861444039, + "calibration_in_the_large": -0.00019790245139033116, + "expected_calibration_error_10bin": 0.0010645581788358502, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8976433345058037 + }, + { + "valid": 2552, + "positives": 21, + "negatives": 2531, + "auroc": 0.8557882259976294, + "auprc": 0.10360704565902103, + "brier": 0.007883435761703797, + "calibration": { + "observed_rate": 0.008228840125391849, + "mean_prediction": 0.00807002373344093, + "calibration_in_the_large": -0.00015881639195091876, + "expected_calibration_error_10bin": 0.0014672490115842647, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8976433345058037 + }, + { + "valid": 2552, + "positives": 23, + "negatives": 2529, + "auroc": 0.8556397957604828, + "auprc": 0.09693706329821226, + "brier": 0.008658281830601442, + "calibration": { + "observed_rate": 0.009012539184952978, + "mean_prediction": 0.008791258918093934, + "calibration_in_the_large": -0.00022128026685904433, + "expected_calibration_error_10bin": 0.001919585676809566, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8976433345058037 + }, + { + "valid": 2552, + "positives": 26, + "negatives": 2526, + "auroc": 0.8623545891954443, + "auprc": 0.09599860066191897, + "brier": 0.009773331237522357, + "calibration": { + "observed_rate": 0.01018808777429467, + "mean_prediction": 0.009447136316287635, + "calibration_in_the_large": -0.0007409514580070352, + "expected_calibration_error_10bin": 0.003304125950847145, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8976433345058037 + }, + { + "valid": 2552, + "positives": 28, + "negatives": 2524, + "auroc": 0.8580625990491284, + "auprc": 0.09624384296135473, + "brier": 0.01051800142513893, + "calibration": { + "observed_rate": 0.0109717868338558, + "mean_prediction": 0.010196043013242187, + "calibration_in_the_large": -0.0007757438206136124, + "expected_calibration_error_10bin": 0.0031804297381663495, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8976433345058037 + }, + { + "valid": 2552, + "positives": 29, + "negatives": 2523, + "auroc": 0.8603058755996555, + "auprc": 0.0966567825127648, + "brier": 0.01088840083504887, + "calibration": { + "observed_rate": 0.011363636363636364, + "mean_prediction": 0.01068232336861985, + "calibration_in_the_large": -0.0006813129950165135, + "expected_calibration_error_10bin": 0.0033892078047708047, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8976433345058037 + }, + { + "valid": 2552, + "positives": 30, + "negatives": 2522, + "auroc": 0.8380782447792757, + "auprc": 0.09387541554409086, + "brier": 0.011294906102802222, + "calibration": { + "observed_rate": 0.011755485893416929, + "mean_prediction": 0.011230558811796578, + "calibration_in_the_large": -0.0005249270816203508, + "expected_calibration_error_10bin": 0.00349489870894433, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8976433345058037 + }, + { + "valid": 2552, + "positives": 30, + "negatives": 2522, + "auroc": 0.8381575469204335, + "auprc": 0.09386944885947145, + "brier": 0.011296603684665932, + "calibration": { + "observed_rate": 0.011755485893416929, + "mean_prediction": 0.011318934226860734, + "calibration_in_the_large": -0.0004365516665561942, + "expected_calibration_error_10bin": 0.003530351861654865, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8976433345058037 + } + ], + "reason": null + }, + "I13": { + "time_averaged_auroc": 0.8886647594550714, + "time_averaged_auprc": 0.11585915601359034, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2727, + "positives": 4, + "negatives": 2723, + "auroc": 0.8387807565185457, + "auprc": 0.008422042996615382, + "brier": 0.0014904422202112063, + "calibration": { + "observed_rate": 0.0014668133480014668, + "mean_prediction": 0.0023477912549567984, + "calibration_in_the_large": 0.0008809779069553316, + "expected_calibration_error_10bin": 0.0008809779069553316, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9591980302497362 + }, + { + "valid": 2727, + "positives": 7, + "negatives": 2720, + "auroc": 0.8730567226890756, + "auprc": 0.02401759010362501, + "brier": 0.002647852088666486, + "calibration": { + "observed_rate": 0.002566923359002567, + "mean_prediction": 0.004586603132371514, + "calibration_in_the_large": 0.002019679773368947, + "expected_calibration_error_10bin": 0.002019679773368947, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9591980302497362 + }, + { + "valid": 2727, + "positives": 11, + "negatives": 2716, + "auroc": 0.8869326549738921, + "auprc": 0.03801735733274027, + "brier": 0.004102540296154246, + "calibration": { + "observed_rate": 0.004033736707004034, + "mean_prediction": 0.006060387939590952, + "calibration_in_the_large": 0.0020266512325869184, + "expected_calibration_error_10bin": 0.002026651232586919, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9591980302497362 + }, + { + "valid": 2727, + "positives": 16, + "negatives": 2711, + "auroc": 0.859599778679454, + "auprc": 0.04726564169883238, + "brier": 0.005900766217206657, + "calibration": { + "observed_rate": 0.005867253392005867, + "mean_prediction": 0.00706059459458839, + "calibration_in_the_large": 0.0011933412025825225, + "expected_calibration_error_10bin": 0.00155633605721623, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9591980302497362 + }, + { + "valid": 2727, + "positives": 18, + "negatives": 2709, + "auroc": 0.8743488782248472, + "auprc": 0.06555093771504526, + "brier": 0.006540555352266056, + "calibration": { + "observed_rate": 0.006600660066006601, + "mean_prediction": 0.007979515081475116, + "calibration_in_the_large": 0.0013788550154685154, + "expected_calibration_error_10bin": 0.001842429581277514, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9591980302497362 + }, + { + "valid": 2727, + "positives": 20, + "negatives": 2707, + "auroc": 0.8851126708533432, + "auprc": 0.08123911595330893, + "brier": 0.00716705965035658, + "calibration": { + "observed_rate": 0.007334066740007334, + "mean_prediction": 0.009272474541543774, + "calibration_in_the_large": 0.0019384078015364401, + "expected_calibration_error_10bin": 0.0019723905198376873, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9591980302497362 + }, + { + "valid": 2727, + "positives": 23, + "negatives": 2704, + "auroc": 0.9003730383329046, + "auprc": 0.1444568890381228, + "brier": 0.007690506642879079, + "calibration": { + "observed_rate": 0.008434176751008434, + "mean_prediction": 0.009936570929678512, + "calibration_in_the_large": 0.0015023941786700776, + "expected_calibration_error_10bin": 0.0028146228094105977, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9591980302497362 + }, + { + "valid": 2727, + "positives": 24, + "negatives": 2703, + "auroc": 0.8955019114564065, + "auprc": 0.1426894908305858, + "brier": 0.008087783691915913, + "calibration": { + "observed_rate": 0.0088008800880088, + "mean_prediction": 0.010605704397218748, + "calibration_in_the_large": 0.0018048243092099476, + "expected_calibration_error_10bin": 0.00292046622072849, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9591980302497362 + }, + { + "valid": 2727, + "positives": 26, + "negatives": 2701, + "auroc": 0.9013470794292712, + "auprc": 0.1520339219707502, + "brier": 0.008704237417817963, + "calibration": { + "observed_rate": 0.009534286762009535, + "mean_prediction": 0.011338791767814835, + "calibration_in_the_large": 0.0018045050058053003, + "expected_calibration_error_10bin": 0.003555660759844997, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9591980302497362 + }, + { + "valid": 2727, + "positives": 27, + "negatives": 2700, + "auroc": 0.9043484224965707, + "auprc": 0.154118975508285, + "brier": 0.009030776634122476, + "calibration": { + "observed_rate": 0.009900990099009901, + "mean_prediction": 0.011824650966423654, + "calibration_in_the_large": 0.0019236608674137526, + "expected_calibration_error_10bin": 0.003868807413044929, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9591980302497362 + }, + { + "valid": 2727, + "positives": 30, + "negatives": 2697, + "auroc": 0.9119515511061673, + "auprc": 0.22025653433494813, + "brier": 0.009571309140907773, + "calibration": { + "observed_rate": 0.011001100110011002, + "mean_prediction": 0.013062792989719152, + "calibration_in_the_large": 0.0020616928797081505, + "expected_calibration_error_10bin": 0.002798526481996526, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9591980302497362 + }, + { + "valid": 2727, + "positives": 31, + "negatives": 2696, + "auroc": 0.9106442040777256, + "auprc": 0.21405265369077203, + "brier": 0.009952164019878364, + "calibration": { + "observed_rate": 0.011367803447011368, + "mean_prediction": 0.01375482844110814, + "calibration_in_the_large": 0.0023870249940967717, + "expected_calibration_error_10bin": 0.0033709354331785267, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9591980302497362 + }, + { + "valid": 2727, + "positives": 31, + "negatives": 2696, + "auroc": 0.9106442040777256, + "auprc": 0.2140478770030432, + "brier": 0.00995444758528386, + "calibration": { + "observed_rate": 0.011367803447011368, + "mean_prediction": 0.013831286890255269, + "calibration_in_the_large": 0.0024634834432439006, + "expected_calibration_error_10bin": 0.00343916474747611, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9591980302497362 + } + ], + "reason": null + }, + "I16": { + "time_averaged_auroc": 0.8834275840978343, + "time_averaged_auprc": 0.02482056187220485, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2390, + "positives": 1, + "negatives": 2389, + "auroc": 0.9790707408957723, + "auprc": 0.0196078431372549, + "brier": 0.00041672549551878085, + "calibration": { + "observed_rate": 0.00041841004184100416, + "mean_prediction": 0.0005073598122938309, + "calibration_in_the_large": 8.894977045282676e-05, + "expected_calibration_error_10bin": 8.894977045282676e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8406612733028491 + }, + { + "valid": 2390, + "positives": 2, + "negatives": 2388, + "auroc": 0.8913316582914573, + "auprc": 0.012743561030235162, + "brier": 0.0008340217517344478, + "calibration": { + "observed_rate": 0.0008368200836820083, + "mean_prediction": 0.000876005437544003, + "calibration_in_the_large": 3.918535386199468e-05, + "expected_calibration_error_10bin": 3.918535386199468e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8406612733028491 + }, + { + "valid": 2390, + "positives": 4, + "negatives": 2386, + "auroc": 0.8735331098072087, + "auprc": 0.020365242374228255, + "brier": 0.0016621411869328982, + "calibration": { + "observed_rate": 0.0016736401673640166, + "mean_prediction": 0.001328241496845336, + "calibration_in_the_large": -0.00034539867051868074, + "expected_calibration_error_10bin": 0.00034539867051868074, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8406612733028491 + }, + { + "valid": 2390, + "positives": 7, + "negatives": 2383, + "auroc": 0.8652958455728074, + "auprc": 0.02066653634039687, + "brier": 0.0029047945987675777, + "calibration": { + "observed_rate": 0.0029288702928870294, + "mean_prediction": 0.002034742956660156, + "calibration_in_the_large": -0.0008941273362268734, + "expected_calibration_error_10bin": 0.0008941273362268734, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8406612733028491 + }, + { + "valid": 2390, + "positives": 8, + "negatives": 2382, + "auroc": 0.8689651553316541, + "auprc": 0.020882054144124352, + "brier": 0.003318173842126368, + "calibration": { + "observed_rate": 0.0033472803347280333, + "mean_prediction": 0.0023406308564984644, + "calibration_in_the_large": -0.0010066494782295689, + "expected_calibration_error_10bin": 0.0010066494782295689, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8406612733028491 + }, + { + "valid": 2390, + "positives": 8, + "negatives": 2382, + "auroc": 0.8648719563392108, + "auprc": 0.02016667922752368, + "brier": 0.0033197730095588336, + "calibration": { + "observed_rate": 0.0033472803347280333, + "mean_prediction": 0.002761288255430209, + "calibration_in_the_large": -0.0005859920792978244, + "expected_calibration_error_10bin": 0.0005859920792978244, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8406612733028491 + }, + { + "valid": 2390, + "positives": 8, + "negatives": 2382, + "auroc": 0.8648719563392108, + "auprc": 0.019902834881920062, + "brier": 0.003320351099758492, + "calibration": { + "observed_rate": 0.0033472803347280333, + "mean_prediction": 0.002902250631140872, + "calibration_in_the_large": -0.0004450297035871612, + "expected_calibration_error_10bin": 0.0004450297035871612, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8406612733028491 + }, + { + "valid": 2390, + "positives": 9, + "negatives": 2381, + "auroc": 0.8603294600774651, + "auprc": 0.019941465818258848, + "brier": 0.0037356647741110935, + "calibration": { + "observed_rate": 0.0037656903765690376, + "mean_prediction": 0.003049106647002906, + "calibration_in_the_large": -0.0007165837295661317, + "expected_calibration_error_10bin": 0.0007165837295661317, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8406612733028491 + }, + { + "valid": 2390, + "positives": 10, + "negatives": 2380, + "auroc": 0.868109243697479, + "auprc": 0.02206817749997245, + "brier": 0.004144415919731645, + "calibration": { + "observed_rate": 0.0041841004184100415, + "mean_prediction": 0.0034239464753246392, + "calibration_in_the_large": -0.0007601539430854023, + "expected_calibration_error_10bin": 0.0007601539430854023, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8406612733028491 + }, + { + "valid": 2390, + "positives": 11, + "negatives": 2379, + "auroc": 0.8821506362489969, + "auprc": 0.035264079212603563, + "brier": 0.004524980690102386, + "calibration": { + "observed_rate": 0.004602510460251046, + "mean_prediction": 0.0038976262582766223, + "calibration_in_the_large": -0.000704884201974424, + "expected_calibration_error_10bin": 0.000704884201974424, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8406612733028491 + }, + { + "valid": 2390, + "positives": 12, + "negatives": 2378, + "auroc": 0.8879310344827587, + "auprc": 0.036778354022984565, + "brier": 0.004929518445438867, + "calibration": { + "observed_rate": 0.00502092050209205, + "mean_prediction": 0.004360748849873047, + "calibration_in_the_large": -0.000660171652219003, + "expected_calibration_error_10bin": 0.0007457273301017999, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8406612733028491 + }, + { + "valid": 2390, + "positives": 13, + "negatives": 2377, + "auroc": 0.8889679945632828, + "auprc": 0.037119341324890295, + "brier": 0.005338554955855852, + "calibration": { + "observed_rate": 0.005439330543933054, + "mean_prediction": 0.004492015546366324, + "calibration_in_the_large": -0.0009473149975667301, + "expected_calibration_error_10bin": 0.0010344244737699306, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8406612733028491 + }, + { + "valid": 2390, + "positives": 13, + "negatives": 2377, + "auroc": 0.8891298016245429, + "auprc": 0.03716113532427007, + "brier": 0.005338445533287883, + "calibration": { + "observed_rate": 0.005439330543933054, + "mean_prediction": 0.004533145508802472, + "calibration_in_the_large": -0.0009061850351305819, + "expected_calibration_error_10bin": 0.0009941936124853636, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8406612733028491 + } + ], + "reason": null + }, + "I21": { + "time_averaged_auroc": 0.8536333690232909, + "time_averaged_auprc": 0.025362716051601064, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2671, + "positives": 3, + "negatives": 2668, + "auroc": 0.9219140429785108, + "auprc": 0.013816488848226663, + "brier": 0.0011199611831498285, + "calibration": { + "observed_rate": 0.0011231748408835642, + "mean_prediction": 0.002391690147078322, + "calibration_in_the_large": 0.0012685153061947577, + "expected_calibration_error_10bin": 0.0012685153061947577, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + { + "valid": 2671, + "positives": 5, + "negatives": 2666, + "auroc": 0.9321830457614404, + "auprc": 0.017096645136212247, + "brier": 0.0018901613462076713, + "calibration": { + "observed_rate": 0.0018719580681392737, + "mean_prediction": 0.005133965243828762, + "calibration_in_the_large": 0.003262007175689488, + "expected_calibration_error_10bin": 0.003262007175689488, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + { + "valid": 2671, + "positives": 8, + "negatives": 2663, + "auroc": 0.9067780698460383, + "auprc": 0.018108053109511694, + "brier": 0.0030234072898071085, + "calibration": { + "observed_rate": 0.002995132909022838, + "mean_prediction": 0.006966521514583783, + "calibration_in_the_large": 0.003971388605560945, + "expected_calibration_error_10bin": 0.003971388605560945, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + { + "valid": 2671, + "positives": 9, + "negatives": 2662, + "auroc": 0.85341013440187, + "auprc": 0.016113278365731464, + "brier": 0.0034428006469058173, + "calibration": { + "observed_rate": 0.0033695245226506927, + "mean_prediction": 0.008440336969177287, + "calibration_in_the_large": 0.005070812446526594, + "expected_calibration_error_10bin": 0.005070812446526594, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + { + "valid": 2671, + "positives": 11, + "negatives": 2660, + "auroc": 0.8357142857142857, + "auprc": 0.020812460965327614, + "brier": 0.0041832794028845545, + "calibration": { + "observed_rate": 0.0041183077499064025, + "mean_prediction": 0.009724430294966105, + "calibration_in_the_large": 0.005606122545059702, + "expected_calibration_error_10bin": 0.005606122545059704, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + { + "valid": 2671, + "positives": 14, + "negatives": 2657, + "auroc": 0.8425990644658315, + "auprc": 0.024559260043448695, + "brier": 0.005279101144457963, + "calibration": { + "observed_rate": 0.005241482590789966, + "mean_prediction": 0.010547172120757516, + "calibration_in_the_large": 0.00530568952996755, + "expected_calibration_error_10bin": 0.00530568952996755, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + { + "valid": 2671, + "positives": 18, + "negatives": 2653, + "auroc": 0.8341709595007748, + "auprc": 0.028038467873719195, + "brier": 0.006729105543093252, + "calibration": { + "observed_rate": 0.0067390490453013855, + "mean_prediction": 0.011302460837104329, + "calibration_in_the_large": 0.004563411791802943, + "expected_calibration_error_10bin": 0.004563411791802943, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + { + "valid": 2671, + "positives": 19, + "negatives": 2652, + "auroc": 0.8385131380487417, + "auprc": 0.029751578102820926, + "brier": 0.0070946801305959584, + "calibration": { + "observed_rate": 0.00711344065892924, + "mean_prediction": 0.011752622200611358, + "calibration_in_the_large": 0.0046391815416821185, + "expected_calibration_error_10bin": 0.0046391815416821185, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + { + "valid": 2671, + "positives": 19, + "negatives": 2652, + "auroc": 0.8386520600142892, + "auprc": 0.029812699061071528, + "brier": 0.007117820690993905, + "calibration": { + "observed_rate": 0.00711344065892924, + "mean_prediction": 0.012398850327400124, + "calibration_in_the_large": 0.005285409668470884, + "expected_calibration_error_10bin": 0.005285409668470882, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + { + "valid": 2671, + "positives": 20, + "negatives": 2651, + "auroc": 0.8438325160316862, + "auprc": 0.03272307030294021, + "brier": 0.007473256549468578, + "calibration": { + "observed_rate": 0.007487832272557095, + "mean_prediction": 0.012956678946047644, + "calibration_in_the_large": 0.005468846673490549, + "expected_calibration_error_10bin": 0.005468846673490549, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + { + "valid": 2671, + "positives": 22, + "negatives": 2649, + "auroc": 0.8127595318988298, + "auprc": 0.031215808005549715, + "brier": 0.008239048477210915, + "calibration": { + "observed_rate": 0.008236615499812805, + "mean_prediction": 0.013738887433624123, + "calibration_in_the_large": 0.005502271933811318, + "expected_calibration_error_10bin": 0.005502271933811318, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + { + "valid": 2671, + "positives": 23, + "negatives": 2648, + "auroc": 0.8182221200577958, + "auprc": 0.033845765012558746, + "brier": 0.00860276987664962, + "calibration": { + "observed_rate": 0.008611007113440658, + "mean_prediction": 0.014162036409880164, + "calibration_in_the_large": 0.005551029296439506, + "expected_calibration_error_10bin": 0.0055510292964395065, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + { + "valid": 2671, + "positives": 23, + "negatives": 2648, + "auroc": 0.8184848285826876, + "auprc": 0.033821733843695086, + "brier": 0.008612109415048766, + "calibration": { + "observed_rate": 0.008611007113440658, + "mean_prediction": 0.014409284792844382, + "calibration_in_the_large": 0.0057982776794037235, + "expected_calibration_error_10bin": 0.0057982776794037235, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + } + ], + "reason": null + }, + "I24": { + "time_averaged_auroc": 0.9095582645023277, + "time_averaged_auprc": 0.022810663129106536, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2809, + "positives": 1, + "negatives": 2808, + "auroc": 0.9882478632478633, + "auprc": 0.029411764705882353, + "brier": 0.00035399459183721004, + "calibration": { + "observed_rate": 0.000355998576005696, + "mean_prediction": 0.0007032505947159392, + "calibration_in_the_large": 0.00034725201871024325, + "expected_calibration_error_10bin": 0.00034725201871024325, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 2, + "negatives": 2807, + "auroc": 0.9470965443534022, + "auprc": 0.01731579488233481, + "brier": 0.0007080341839721644, + "calibration": { + "observed_rate": 0.000711997152011392, + "mean_prediction": 0.0011520549001558464, + "calibration_in_the_large": 0.00044005774814445437, + "expected_calibration_error_10bin": 0.00044005774814445437, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 3, + "negatives": 2806, + "auroc": 0.959847944880019, + "auprc": 0.02226756087050205, + "brier": 0.0010585628226099776, + "calibration": { + "observed_rate": 0.001067995728017088, + "mean_prediction": 0.0014183497363403172, + "calibration_in_the_large": 0.00035035400832322925, + "expected_calibration_error_10bin": 0.00035035400832322925, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 3, + "negatives": 2806, + "auroc": 0.9616298408172963, + "auprc": 0.02529669127700301, + "brier": 0.0010581387775037495, + "calibration": { + "observed_rate": 0.001067995728017088, + "mean_prediction": 0.0017684815688652654, + "calibration_in_the_large": 0.0007004858408481774, + "expected_calibration_error_10bin": 0.0007004858408481774, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 5, + "negatives": 2804, + "auroc": 0.8983594864479315, + "auprc": 0.02025522245549566, + "brier": 0.0017646309989097942, + "calibration": { + "observed_rate": 0.00177999288002848, + "mean_prediction": 0.002060264660660379, + "calibration_in_the_large": 0.00028027178063189887, + "expected_calibration_error_10bin": 0.00028027178063189887, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 6, + "negatives": 2803, + "auroc": 0.8960042811273635, + "auprc": 0.02004760966229208, + "brier": 0.002117050385097311, + "calibration": { + "observed_rate": 0.002135991456034176, + "mean_prediction": 0.0021306379051593055, + "calibration_in_the_large": -5.353550874870501e-06, + "expected_calibration_error_10bin": 5.353550874870501e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 6, + "negatives": 2803, + "auroc": 0.9011178499227018, + "auprc": 0.021127262816354242, + "brier": 0.002116060837041933, + "calibration": { + "observed_rate": 0.002135991456034176, + "mean_prediction": 0.0022776888233846156, + "calibration_in_the_large": 0.00014169736735043965, + "expected_calibration_error_10bin": 0.00014169736735043965, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 7, + "negatives": 2802, + "auroc": 0.8624451922096462, + "auprc": 0.019335609384596407, + "brier": 0.0024709603972940986, + "calibration": { + "observed_rate": 0.002491990032039872, + "mean_prediction": 0.0024424571200359247, + "calibration_in_the_large": -4.9532912003947323e-05, + "expected_calibration_error_10bin": 4.9532912003947323e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 8, + "negatives": 2801, + "auroc": 0.8753123884327026, + "auprc": 0.022268223712069084, + "brier": 0.00281956323999062, + "calibration": { + "observed_rate": 0.002847988608045568, + "mean_prediction": 0.0025973938884876722, + "calibration_in_the_large": -0.0002505947195578957, + "expected_calibration_error_10bin": 0.0002505947195578957, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 8, + "negatives": 2801, + "auroc": 0.8768297036772581, + "auprc": 0.02238853077225958, + "brier": 0.0028191795560505006, + "calibration": { + "observed_rate": 0.002847988608045568, + "mean_prediction": 0.0028614157110645896, + "calibration_in_the_large": 1.3427103019021582e-05, + "expected_calibration_error_10bin": 1.3427103019021582e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 8, + "negatives": 2801, + "auroc": 0.8783023920028561, + "auprc": 0.023015508644819698, + "brier": 0.002819386101528097, + "calibration": { + "observed_rate": 0.002847988608045568, + "mean_prediction": 0.0030825440661352626, + "calibration_in_the_large": 0.00023455545808969466, + "expected_calibration_error_10bin": 0.00023455545808969466, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 10, + "negatives": 2799, + "auroc": 0.8895677027509825, + "auprc": 0.026905465359018655, + "brier": 0.0035152176336652016, + "calibration": { + "observed_rate": 0.00355998576005696, + "mean_prediction": 0.003352502793757791, + "calibration_in_the_large": -0.00020748296629916887, + "expected_calibration_error_10bin": 0.00020748296629916887, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 10, + "negatives": 2799, + "auroc": 0.8894962486602358, + "auprc": 0.026903376135757363, + "brier": 0.003515230644134986, + "calibration": { + "observed_rate": 0.00355998576005696, + "mean_prediction": 0.003360341338773035, + "calibration_in_the_large": -0.00019964442128392497, + "expected_calibration_error_10bin": 0.00019964442128392497, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + } + ], + "reason": null + }, + "I25": { + "time_averaged_auroc": 0.8390682910915204, + "time_averaged_auprc": 0.07413239643148194, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2243, + "positives": 13, + "negatives": 2230, + "auroc": 0.833839254915488, + "auprc": 0.03761967924727719, + "brier": 0.005711048671280158, + "calibration": { + "observed_rate": 0.0057958091841284, + "mean_prediction": 0.0029101543516054404, + "calibration_in_the_large": -0.0028856548325229595, + "expected_calibration_error_10bin": 0.0028856548325229595, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7889553288779458 + }, + { + "valid": 2243, + "positives": 19, + "negatives": 2224, + "auroc": 0.8293733434305187, + "auprc": 0.04346926863207067, + "brier": 0.008286869124649638, + "calibration": { + "observed_rate": 0.008470798038341507, + "mean_prediction": 0.005343011645315455, + "calibration_in_the_large": -0.0031277863930260523, + "expected_calibration_error_10bin": 0.0031277863930260523, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7889553288779458 + }, + { + "valid": 2243, + "positives": 24, + "negatives": 2219, + "auroc": 0.8316058284512543, + "auprc": 0.05507147935084549, + "brier": 0.010414394625452584, + "calibration": { + "observed_rate": 0.01069995541685243, + "mean_prediction": 0.006417574013838951, + "calibration_in_the_large": -0.0042823814030134785, + "expected_calibration_error_10bin": 0.0042823814030134785, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7889553288779458 + }, + { + "valid": 2243, + "positives": 28, + "negatives": 2215, + "auroc": 0.8295227346017414, + "auprc": 0.0645531426043364, + "brier": 0.01208773495939232, + "calibration": { + "observed_rate": 0.012483281319661168, + "mean_prediction": 0.0072724541070671835, + "calibration_in_the_large": -0.005210827212593984, + "expected_calibration_error_10bin": 0.005584359629368805, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7889553288779458 + }, + { + "valid": 2243, + "positives": 30, + "negatives": 2213, + "auroc": 0.8314655821659889, + "auprc": 0.06875840482803307, + "brier": 0.012901389853211619, + "calibration": { + "observed_rate": 0.013374944271065538, + "mean_prediction": 0.008584270938496045, + "calibration_in_the_large": -0.004790673332569493, + "expected_calibration_error_10bin": 0.0055625475564920375, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7889553288779458 + }, + { + "valid": 2243, + "positives": 32, + "negatives": 2211, + "auroc": 0.8406405472636815, + "auprc": 0.07777439258880493, + "brier": 0.013686469400905144, + "calibration": { + "observed_rate": 0.014266607222469906, + "mean_prediction": 0.009683020951477389, + "calibration_in_the_large": -0.004583586270992517, + "expected_calibration_error_10bin": 0.005939408216220788, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7889553288779458 + }, + { + "valid": 2243, + "positives": 36, + "negatives": 2207, + "auroc": 0.8478074812465388, + "auprc": 0.08694718046269773, + "brier": 0.015323681417347355, + "calibration": { + "observed_rate": 0.016049933125278644, + "mean_prediction": 0.010706305125158059, + "calibration_in_the_large": -0.005343628000120585, + "expected_calibration_error_10bin": 0.006134154498457225, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7889553288779458 + }, + { + "valid": 2243, + "positives": 39, + "negatives": 2204, + "auroc": 0.8501558937130625, + "auprc": 0.08805005835085519, + "brier": 0.01657516299471515, + "calibration": { + "observed_rate": 0.017387427552385197, + "mean_prediction": 0.01157240712265493, + "calibration_in_the_large": -0.005815020429730268, + "expected_calibration_error_10bin": 0.006810738648146339, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7889553288779458 + }, + { + "valid": 2243, + "positives": 40, + "negatives": 2203, + "auroc": 0.8482183386291421, + "auprc": 0.08653115812013493, + "brier": 0.016990691724371357, + "calibration": { + "observed_rate": 0.017833259028087384, + "mean_prediction": 0.012370289017066575, + "calibration_in_the_large": -0.0054629700110208086, + "expected_calibration_error_10bin": 0.005943721936124452, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7889553288779458 + }, + { + "valid": 2243, + "positives": 40, + "negatives": 2203, + "auroc": 0.8484339536995007, + "auprc": 0.0860124221611122, + "brier": 0.01698340723850474, + "calibration": { + "observed_rate": 0.017833259028087384, + "mean_prediction": 0.012949652110443764, + "calibration_in_the_large": -0.0048836069176436195, + "expected_calibration_error_10bin": 0.005950612477226441, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7889553288779458 + }, + { + "valid": 2243, + "positives": 44, + "negatives": 2199, + "auroc": 0.847968084666584, + "auprc": 0.09174853642650166, + "brier": 0.018627010961175083, + "calibration": { + "observed_rate": 0.01961658493089612, + "mean_prediction": 0.013787618267981645, + "calibration_in_the_large": -0.005828966662914475, + "expected_calibration_error_10bin": 0.006222457793314753, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7889553288779458 + }, + { + "valid": 2243, + "positives": 46, + "negatives": 2197, + "auroc": 0.8343986859551562, + "auprc": 0.08850277079982947, + "brier": 0.01949861317346248, + "calibration": { + "observed_rate": 0.02050824788230049, + "mean_prediction": 0.014629307314041572, + "calibration_in_the_large": -0.005878940568258918, + "expected_calibration_error_10bin": 0.006659561315407192, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7889553288779458 + }, + { + "valid": 2243, + "positives": 46, + "negatives": 2197, + "auroc": 0.8344580554511092, + "auprc": 0.08868266003676617, + "brier": 0.019494825006023047, + "calibration": { + "observed_rate": 0.02050824788230049, + "mean_prediction": 0.014798171179305332, + "calibration_in_the_large": -0.005710076702995158, + "expected_calibration_error_10bin": 0.006498630023182145, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7889553288779458 + } + ], + "reason": null + }, + "I26": { + "time_averaged_auroc": 0.7754954596572946, + "time_averaged_auprc": 0.12805064995966328, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2760, + "positives": 3, + "negatives": 2757, + "auroc": 0.9568371418208197, + "auprc": 0.11400966183574879, + "brier": 0.0010575843793828835, + "calibration": { + "observed_rate": 0.0010869565217391304, + "mean_prediction": 0.0022106736697905024, + "calibration_in_the_large": 0.001123717148051372, + "expected_calibration_error_10bin": 0.001123717148051372, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9708054871614492 + }, + { + "valid": 2760, + "positives": 6, + "negatives": 2754, + "auroc": 0.6968046477850399, + "auprc": 0.04379887555182135, + "brier": 0.002162881718619951, + "calibration": { + "observed_rate": 0.002173913043478261, + "mean_prediction": 0.004530455273995187, + "calibration_in_the_large": 0.002356542230516926, + "expected_calibration_error_10bin": 0.0023565422305169255, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9708054871614492 + }, + { + "valid": 2760, + "positives": 11, + "negatives": 2749, + "auroc": 0.8203313601640266, + "auprc": 0.07473058080602081, + "brier": 0.0038574000918342585, + "calibration": { + "observed_rate": 0.003985507246376811, + "mean_prediction": 0.005399321791598292, + "calibration_in_the_large": 0.0014138145452214802, + "expected_calibration_error_10bin": 0.0014138145452214808, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9708054871614492 + }, + { + "valid": 2760, + "positives": 13, + "negatives": 2747, + "auroc": 0.7919408585589874, + "auprc": 0.16070107741761128, + "brier": 0.004457650304895185, + "calibration": { + "observed_rate": 0.004710144927536232, + "mean_prediction": 0.006292272279094597, + "calibration_in_the_large": 0.001582127351558365, + "expected_calibration_error_10bin": 0.0017249296226325072, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9708054871614492 + }, + { + "valid": 2760, + "positives": 13, + "negatives": 2747, + "auroc": 0.7916048276441433, + "auprc": 0.15940199313853537, + "brier": 0.0044571183701953565, + "calibration": { + "observed_rate": 0.004710144927536232, + "mean_prediction": 0.006815555259345274, + "calibration_in_the_large": 0.0021054103318090414, + "expected_calibration_error_10bin": 0.002207186056411824, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9708054871614492 + }, + { + "valid": 2760, + "positives": 14, + "negatives": 2746, + "auroc": 0.8019456872333784, + "auprc": 0.15214003063370254, + "brier": 0.004806788482391979, + "calibration": { + "observed_rate": 0.005072463768115942, + "mean_prediction": 0.007195453534742241, + "calibration_in_the_large": 0.0021229897666262994, + "expected_calibration_error_10bin": 0.002698559600160651, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9708054871614492 + }, + { + "valid": 2760, + "positives": 16, + "negatives": 2744, + "auroc": 0.7314595481049563, + "auprc": 0.132724761680609, + "brier": 0.005537961601087178, + "calibration": { + "observed_rate": 0.005797101449275362, + "mean_prediction": 0.007673721144382781, + "calibration_in_the_large": 0.0018766196951074182, + "expected_calibration_error_10bin": 0.002448050893089321, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9708054871614492 + }, + { + "valid": 2760, + "positives": 17, + "negatives": 2743, + "auroc": 0.745148077459201, + "auprc": 0.14481488332163128, + "brier": 0.00584022490823276, + "calibration": { + "observed_rate": 0.006159420289855073, + "mean_prediction": 0.00819358592262174, + "calibration_in_the_large": 0.0020341656327666664, + "expected_calibration_error_10bin": 0.0030259702336084245, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9708054871614492 + }, + { + "valid": 2760, + "positives": 17, + "negatives": 2743, + "auroc": 0.7449550728056443, + "auprc": 0.14431707792100373, + "brier": 0.0058467598594888655, + "calibration": { + "observed_rate": 0.006159420289855073, + "mean_prediction": 0.008691304733229512, + "calibration_in_the_large": 0.0025318844433744395, + "expected_calibration_error_10bin": 0.004139373883478676, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9708054871614492 + }, + { + "valid": 2760, + "positives": 18, + "negatives": 2742, + "auroc": 0.7414903963044007, + "auprc": 0.1387060706145008, + "brier": 0.006206118410156375, + "calibration": { + "observed_rate": 0.006521739130434782, + "mean_prediction": 0.00906653434210149, + "calibration_in_the_large": 0.0025447952116667083, + "expected_calibration_error_10bin": 0.003964257059530044, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9708054871614492 + }, + { + "valid": 2760, + "positives": 20, + "negatives": 2740, + "auroc": 0.7526824817518248, + "auprc": 0.13299887905060837, + "brier": 0.006879779858556827, + "calibration": { + "observed_rate": 0.007246376811594203, + "mean_prediction": 0.009274014541369979, + "calibration_in_the_large": 0.002027637729775776, + "expected_calibration_error_10bin": 0.0031043687345684873, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9708054871614492 + }, + { + "valid": 2760, + "positives": 20, + "negatives": 2740, + "auroc": 0.7531569343065694, + "auprc": 0.13365005561062376, + "brier": 0.006882732772162676, + "calibration": { + "observed_rate": 0.007246376811594203, + "mean_prediction": 0.00981062650626236, + "calibration_in_the_large": 0.0025642496946681565, + "expected_calibration_error_10bin": 0.003430111257599175, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9708054871614492 + }, + { + "valid": 2760, + "positives": 20, + "negatives": 2740, + "auroc": 0.7530839416058395, + "auprc": 0.13266450189320567, + "brier": 0.006883535713720256, + "calibration": { + "observed_rate": 0.007246376811594203, + "mean_prediction": 0.00987565006424489, + "calibration_in_the_large": 0.0026292732526506874, + "expected_calibration_error_10bin": 0.0034871639307074596, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9708054871614492 + } + ], + "reason": null + }, + "I27": { + "time_averaged_auroc": 0.8411536687632265, + "time_averaged_auprc": 0.051696116325171224, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2716, + "positives": 6, + "negatives": 2710, + "auroc": 0.8878843788437885, + "auprc": 0.015547885901783931, + "brier": 0.0021964276301952856, + "calibration": { + "observed_rate": 0.0022091310751104565, + "mean_prediction": 0.0019555429859244465, + "calibration_in_the_large": -0.00025358808918601004, + "expected_calibration_error_10bin": 0.00025358808918601004, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + { + "valid": 2716, + "positives": 13, + "negatives": 2703, + "auroc": 0.8469506815788724, + "auprc": 0.022322383527236866, + "brier": 0.004744495541553543, + "calibration": { + "observed_rate": 0.004786450662739323, + "mean_prediction": 0.003205821498317705, + "calibration_in_the_large": -0.0015806291644216179, + "expected_calibration_error_10bin": 0.0015806291644216179, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + { + "valid": 2716, + "positives": 15, + "negatives": 2701, + "auroc": 0.8198691842527459, + "auprc": 0.02136983043024178, + "brier": 0.005486386883486106, + "calibration": { + "observed_rate": 0.005522827687776142, + "mean_prediction": 0.004154507444475133, + "calibration_in_the_large": -0.0013683202433010088, + "expected_calibration_error_10bin": 0.0014497632146376564, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + { + "valid": 2716, + "positives": 19, + "negatives": 2697, + "auroc": 0.809378841988174, + "auprc": 0.025406165551033585, + "brier": 0.006934803245448257, + "calibration": { + "observed_rate": 0.006995581737849779, + "mean_prediction": 0.005133621728757016, + "calibration_in_the_large": -0.0018619600090927632, + "expected_calibration_error_10bin": 0.002031307585747124, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + { + "valid": 2716, + "positives": 22, + "negatives": 2694, + "auroc": 0.8287946277924007, + "auprc": 0.05520708388757934, + "brier": 0.007933661434807901, + "calibration": { + "observed_rate": 0.008100147275405008, + "mean_prediction": 0.0057506578055415555, + "calibration_in_the_large": -0.0023494894698634526, + "expected_calibration_error_10bin": 0.0023494894698634526, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + { + "valid": 2716, + "positives": 26, + "negatives": 2690, + "auroc": 0.8410780669144982, + "auprc": 0.058551797587297054, + "brier": 0.009343493401727663, + "calibration": { + "observed_rate": 0.009572901325478646, + "mean_prediction": 0.0063582532153928974, + "calibration_in_the_large": -0.0032146481100857483, + "expected_calibration_error_10bin": 0.003214648110085749, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + { + "valid": 2716, + "positives": 31, + "negatives": 2685, + "auroc": 0.8361506577761759, + "auprc": 0.062396260951477725, + "brier": 0.011103317403591427, + "calibration": { + "observed_rate": 0.011413843888070692, + "mean_prediction": 0.00706643695901486, + "calibration_in_the_large": -0.004347406929055831, + "expected_calibration_error_10bin": 0.004525534526650832, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + { + "valid": 2716, + "positives": 31, + "negatives": 2685, + "auroc": 0.8364269838409323, + "auprc": 0.0624496401867507, + "brier": 0.011102953038266167, + "calibration": { + "observed_rate": 0.011413843888070692, + "mean_prediction": 0.007522608329824682, + "calibration_in_the_large": -0.003891235558246009, + "expected_calibration_error_10bin": 0.004286213993936879, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + { + "valid": 2716, + "positives": 31, + "negatives": 2685, + "auroc": 0.8368234516729741, + "auprc": 0.06268144992490167, + "brier": 0.011095334173905765, + "calibration": { + "observed_rate": 0.011413843888070692, + "mean_prediction": 0.008207219004670578, + "calibration_in_the_large": -0.0032066248834001134, + "expected_calibration_error_10bin": 0.0038331922669780825, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + { + "valid": 2716, + "positives": 34, + "negatives": 2682, + "auroc": 0.8431701539676273, + "auprc": 0.06578347790454314, + "brier": 0.012150157893728575, + "calibration": { + "observed_rate": 0.012518409425625921, + "mean_prediction": 0.008527688873316985, + "calibration_in_the_large": -0.003990720552308936, + "expected_calibration_error_10bin": 0.004964771668977007, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + { + "valid": 2716, + "positives": 36, + "negatives": 2680, + "auroc": 0.8459680762852405, + "auprc": 0.0683134496333456, + "brier": 0.012838804302037187, + "calibration": { + "observed_rate": 0.013254786450662739, + "mean_prediction": 0.009221929983092418, + "calibration_in_the_large": -0.004032856467570321, + "expected_calibration_error_10bin": 0.00537689441343954, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + { + "valid": 2716, + "positives": 38, + "negatives": 2678, + "auroc": 0.847588538186392, + "auprc": 0.07172852943435315, + "brier": 0.013512161165660288, + "calibration": { + "observed_rate": 0.013991163475699559, + "mean_prediction": 0.009515442950629994, + "calibration_in_the_large": -0.004475720525069565, + "expected_calibration_error_10bin": 0.006025172497738849, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + { + "valid": 2716, + "positives": 40, + "negatives": 2676, + "auroc": 0.8549140508221226, + "auprc": 0.08029155730668135, + "brier": 0.01413260167745514, + "calibration": { + "observed_rate": 0.014727540500736377, + "mean_prediction": 0.009526245829383242, + "calibration_in_the_large": -0.005201294671353135, + "expected_calibration_error_10bin": 0.00675254056606962, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + } + ], + "reason": null + }, + "I31": { + "time_averaged_auroc": 0.7731747935800477, + "time_averaged_auprc": 0.014093971959377826, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2793, + "positives": 4, + "negatives": 2789, + "auroc": 0.7217640731444962, + "auprc": 0.003046232182975791, + "brier": 0.0014335996650488856, + "calibration": { + "observed_rate": 0.0014321518080916578, + "mean_prediction": 0.0013082539818070433, + "calibration_in_the_large": -0.0001238978262846145, + "expected_calibration_error_10bin": 0.0001238978262846145, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 7, + "negatives": 2786, + "auroc": 0.7884319556968516, + "auprc": 0.01034453073247728, + "brier": 0.002496132884226372, + "calibration": { + "observed_rate": 0.002506265664160401, + "mean_prediction": 0.001975913829479289, + "calibration_in_the_large": -0.0005303518346811121, + "expected_calibration_error_10bin": 0.0005303518346811121, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 9, + "negatives": 2784, + "auroc": 0.778176883780332, + "auprc": 0.011062606663195761, + "brier": 0.003208779188044818, + "calibration": { + "observed_rate": 0.00322234156820623, + "mean_prediction": 0.00220910736495631, + "calibration_in_the_large": -0.00101323420324992, + "expected_calibration_error_10bin": 0.00101323420324992, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 9, + "negatives": 2784, + "auroc": 0.7749840357598978, + "auprc": 0.011433208835719941, + "brier": 0.003208902900941957, + "calibration": { + "observed_rate": 0.00322234156820623, + "mean_prediction": 0.002376795613003671, + "calibration_in_the_large": -0.000845545955202559, + "expected_calibration_error_10bin": 0.000845545955202559, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 9, + "negatives": 2784, + "auroc": 0.7734674329501916, + "auprc": 0.01116815014899536, + "brier": 0.00321053768376558, + "calibration": { + "observed_rate": 0.00322234156820623, + "mean_prediction": 0.0026734354855794487, + "calibration_in_the_large": -0.0005489060826267813, + "expected_calibration_error_10bin": 0.0005489060826267813, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 11, + "negatives": 2782, + "auroc": 0.7933795176785831, + "auprc": 0.015783688822835342, + "brier": 0.0039144761811736265, + "calibration": { + "observed_rate": 0.003938417472252059, + "mean_prediction": 0.0029013516215397064, + "calibration_in_the_large": -0.0010370658507123528, + "expected_calibration_error_10bin": 0.0010370658507123528, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 15, + "negatives": 2778, + "auroc": 0.7823134149268058, + "auprc": 0.01661135600000019, + "brier": 0.005334647142559568, + "calibration": { + "observed_rate": 0.0053705692803437165, + "mean_prediction": 0.003144281197310707, + "calibration_in_the_large": -0.0022262880830330096, + "expected_calibration_error_10bin": 0.0022262880830330096, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 15, + "negatives": 2778, + "auroc": 0.7832973362131029, + "auprc": 0.01717347009407218, + "brier": 0.005335234941181661, + "calibration": { + "observed_rate": 0.0053705692803437165, + "mean_prediction": 0.003317866310632627, + "calibration_in_the_large": -0.0020527029697110896, + "expected_calibration_error_10bin": 0.0020527029697110896, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 16, + "negatives": 2777, + "auroc": 0.7754321209938783, + "auprc": 0.017106644335185602, + "brier": 0.005691995306511312, + "calibration": { + "observed_rate": 0.005728607232366631, + "mean_prediction": 0.0034491879056756467, + "calibration_in_the_large": -0.0022794193266909846, + "expected_calibration_error_10bin": 0.0022794193266909846, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 16, + "negatives": 2777, + "auroc": 0.7754546272956427, + "auprc": 0.017145915996989704, + "brier": 0.00569355084542388, + "calibration": { + "observed_rate": 0.005728607232366631, + "mean_prediction": 0.0035911011929943087, + "calibration_in_the_large": -0.0021375060393723226, + "expected_calibration_error_10bin": 0.0021375060393723226, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 16, + "negatives": 2777, + "auroc": 0.7758372344256392, + "auprc": 0.01755232975005185, + "brier": 0.005693467998679949, + "calibration": { + "observed_rate": 0.005728607232366631, + "mean_prediction": 0.003676158983239434, + "calibration_in_the_large": -0.0020524482491271973, + "expected_calibration_error_10bin": 0.0020524482491271973, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 17, + "negatives": 2776, + "auroc": 0.7643456518053907, + "auprc": 0.017396167260410125, + "brier": 0.0060505816416276574, + "calibration": { + "observed_rate": 0.006086645184389545, + "mean_prediction": 0.0037584823537164195, + "calibration_in_the_large": -0.0023281628306731257, + "expected_calibration_error_10bin": 0.00240084092625987, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 17, + "negatives": 2776, + "auroc": 0.7643880318698084, + "auprc": 0.017397334649002578, + "brier": 0.0060506184539343266, + "calibration": { + "observed_rate": 0.006086645184389545, + "mean_prediction": 0.003763443953226211, + "calibration_in_the_large": -0.002323201231163334, + "expected_calibration_error_10bin": 0.0023960704276067926, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + } + ], + "reason": null + }, + "I34": { + "time_averaged_auroc": 0.7366891511745328, + "time_averaged_auprc": 0.013094309508376388, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2753, + "positives": 4, + "negatives": 2749, + "auroc": 0.6457802837395417, + "auprc": 0.003198281457872637, + "brier": 0.001459519149705545, + "calibration": { + "observed_rate": 0.001452960406828914, + "mean_prediction": 0.0014177588748211349, + "calibration_in_the_large": -3.520153200777909e-05, + "expected_calibration_error_10bin": 3.520153200777909e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9683432993316918 + }, + { + "valid": 2753, + "positives": 10, + "negatives": 2743, + "auroc": 0.7165512212905578, + "auprc": 0.008546080998029384, + "brier": 0.00364426492924624, + "calibration": { + "observed_rate": 0.003632401017072285, + "mean_prediction": 0.002563336141432555, + "calibration_in_the_large": -0.0010690648756397298, + "expected_calibration_error_10bin": 0.0010690648756397298, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9683432993316918 + }, + { + "valid": 2753, + "positives": 10, + "negatives": 2743, + "auroc": 0.7209624498724024, + "auprc": 0.008466259588801511, + "brier": 0.00365602280509404, + "calibration": { + "observed_rate": 0.003632401017072285, + "mean_prediction": 0.0031475093588009405, + "calibration_in_the_large": -0.00048489165827134443, + "expected_calibration_error_10bin": 0.00048489165827134443, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9683432993316918 + }, + { + "valid": 2753, + "positives": 13, + "negatives": 2740, + "auroc": 0.721729365524986, + "auprc": 0.010623828679471774, + "brier": 0.004769829192865459, + "calibration": { + "observed_rate": 0.00472212132219397, + "mean_prediction": 0.004327974936980503, + "calibration_in_the_large": -0.00039414638521346763, + "expected_calibration_error_10bin": 0.0004753945958530188, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9683432993316918 + }, + { + "valid": 2753, + "positives": 14, + "negatives": 2739, + "auroc": 0.742163459030929, + "auprc": 0.013265057365490137, + "brier": 0.005134555307400003, + "calibration": { + "observed_rate": 0.005085361423901199, + "mean_prediction": 0.0051820447651973085, + "calibration_in_the_large": 9.668334129610962e-05, + "expected_calibration_error_10bin": 9.668334129610943e-05, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9683432993316918 + }, + { + "valid": 2753, + "positives": 15, + "negatives": 2738, + "auroc": 0.7557341124908693, + "auprc": 0.015070359496659119, + "brier": 0.00550604552447791, + "calibration": { + "observed_rate": 0.005448601525608427, + "mean_prediction": 0.0058801953643500575, + "calibration_in_the_large": 0.00043159383874163005, + "expected_calibration_error_10bin": 0.00043159383874163027, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9683432993316918 + }, + { + "valid": 2753, + "positives": 15, + "negatives": 2738, + "auroc": 0.7549549549549549, + "auprc": 0.01506446770681936, + "brier": 0.005526831915785628, + "calibration": { + "observed_rate": 0.005448601525608427, + "mean_prediction": 0.006438331595426892, + "calibration_in_the_large": 0.0009897300698184647, + "expected_calibration_error_10bin": 0.0009897300698184647, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9683432993316918 + }, + { + "valid": 2753, + "positives": 16, + "negatives": 2737, + "auroc": 0.7526032151991231, + "auprc": 0.01520573880916567, + "brier": 0.0059046363626322285, + "calibration": { + "observed_rate": 0.005811841627315656, + "mean_prediction": 0.006784065524740522, + "calibration_in_the_large": 0.0009722238974248657, + "expected_calibration_error_10bin": 0.0009722238974248661, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9683432993316918 + }, + { + "valid": 2753, + "positives": 16, + "negatives": 2737, + "auroc": 0.7536079649251005, + "auprc": 0.015197806700420253, + "brier": 0.0059441463709133755, + "calibration": { + "observed_rate": 0.005811841627315656, + "mean_prediction": 0.007415108126053239, + "calibration_in_the_large": 0.0016032664987375832, + "expected_calibration_error_10bin": 0.0016032664987375835, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9683432993316918 + }, + { + "valid": 2753, + "positives": 18, + "negatives": 2735, + "auroc": 0.7605118829981719, + "auprc": 0.016571014379153853, + "brier": 0.006676794212276144, + "calibration": { + "observed_rate": 0.006538321830730113, + "mean_prediction": 0.007767319216268316, + "calibration_in_the_large": 0.0012289973855382028, + "expected_calibration_error_10bin": 0.0012289973855382028, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9683432993316918 + }, + { + "valid": 2753, + "positives": 18, + "negatives": 2735, + "auroc": 0.7581352833638025, + "auprc": 0.016392349813964494, + "brier": 0.006706636278002519, + "calibration": { + "observed_rate": 0.006538321830730113, + "mean_prediction": 0.0084167263459215, + "calibration_in_the_large": 0.0018784045151913863, + "expected_calibration_error_10bin": 0.0018784045151913863, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9683432993316918 + }, + { + "valid": 2753, + "positives": 19, + "negatives": 2734, + "auroc": 0.747083509798637, + "auprc": 0.01631344811158617, + "brier": 0.00710551410304809, + "calibration": { + "observed_rate": 0.006901561932437341, + "mean_prediction": 0.009014723556713058, + "calibration_in_the_large": 0.0021131616242757167, + "expected_calibration_error_10bin": 0.0021131616242757167, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9683432993316918 + }, + { + "valid": 2753, + "positives": 19, + "negatives": 2734, + "auroc": 0.7471412620798522, + "auprc": 0.016311330501458703, + "brier": 0.007107986213489613, + "calibration": { + "observed_rate": 0.006901561932437341, + "mean_prediction": 0.009058608483006006, + "calibration_in_the_large": 0.0021570465505686646, + "expected_calibration_error_10bin": 0.002157046550568666, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9683432993316918 + } + ], + "reason": null + }, + "I35": { + "time_averaged_auroc": 0.6286456726772727, + "time_averaged_auprc": 0.006390777554696621, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2723, + "positives": 2, + "negatives": 2721, + "auroc": 0.3467475192943771, + "auprc": 0.0008242965015064381, + "brier": 0.000737624191430967, + "calibration": { + "observed_rate": 0.0007344840249724568, + "mean_prediction": 0.0007708161038839113, + "calibration_in_the_large": 3.633207891145444e-05, + "expected_calibration_error_10bin": 3.633207891145444e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + { + "valid": 2723, + "positives": 4, + "negatives": 2719, + "auroc": 0.5958992276572269, + "auprc": 0.003873804657613249, + "brier": 0.0014759061212816073, + "calibration": { + "observed_rate": 0.0014689680499449136, + "mean_prediction": 0.0016815671212943365, + "calibration_in_the_large": 0.00021259907134942285, + "expected_calibration_error_10bin": 0.00021259907134942285, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + { + "valid": 2723, + "positives": 5, + "negatives": 2718, + "auroc": 0.6683590875643856, + "auprc": 0.006817466429510645, + "brier": 0.0018394664923862484, + "calibration": { + "observed_rate": 0.001836210062431142, + "mean_prediction": 0.0018969258115698823, + "calibration_in_the_large": 6.071574913874022e-05, + "expected_calibration_error_10bin": 6.071574913874022e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + { + "valid": 2723, + "positives": 5, + "negatives": 2718, + "auroc": 0.6664459161147903, + "auprc": 0.007314799645246529, + "brier": 0.0018430990794550454, + "calibration": { + "observed_rate": 0.001836210062431142, + "mean_prediction": 0.002218858213768812, + "calibration_in_the_large": 0.0003826481513376698, + "expected_calibration_error_10bin": 0.0003826481513376698, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + { + "valid": 2723, + "positives": 5, + "negatives": 2718, + "auroc": 0.664532744665195, + "auprc": 0.007310485517459983, + "brier": 0.0018453914389014996, + "calibration": { + "observed_rate": 0.001836210062431142, + "mean_prediction": 0.0023952304623278066, + "calibration_in_the_large": 0.0005590203998966645, + "expected_calibration_error_10bin": 0.0005590203998966645, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + { + "valid": 2723, + "positives": 5, + "negatives": 2718, + "auroc": 0.6631346578366446, + "auprc": 0.007235859947668644, + "brier": 0.0018498405744636589, + "calibration": { + "observed_rate": 0.001836210062431142, + "mean_prediction": 0.002704647062691294, + "calibration_in_the_large": 0.000868437000260152, + "expected_calibration_error_10bin": 0.000868437000260152, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + { + "valid": 2723, + "positives": 6, + "negatives": 2717, + "auroc": 0.6738437001594896, + "auprc": 0.00723051540044803, + "brier": 0.0022196389472920876, + "calibration": { + "observed_rate": 0.0022034520749173708, + "mean_prediction": 0.0029655995800652746, + "calibration_in_the_large": 0.0007621475051479039, + "expected_calibration_error_10bin": 0.0007621475051479039, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + { + "valid": 2723, + "positives": 6, + "negatives": 2717, + "auroc": 0.6730462519936204, + "auprc": 0.007267124618436867, + "brier": 0.002223208423398232, + "calibration": { + "observed_rate": 0.0022034520749173708, + "mean_prediction": 0.003126184258364078, + "calibration_in_the_large": 0.0009227321834467074, + "expected_calibration_error_10bin": 0.0009227321834467074, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + { + "valid": 2723, + "positives": 6, + "negatives": 2717, + "auroc": 0.6734143049932524, + "auprc": 0.007345726464098677, + "brier": 0.002228409096407755, + "calibration": { + "observed_rate": 0.0022034520749173708, + "mean_prediction": 0.0033696022162930605, + "calibration_in_the_large": 0.0011661501413756897, + "expected_calibration_error_10bin": 0.0011661501413756897, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + { + "valid": 2723, + "positives": 7, + "negatives": 2716, + "auroc": 0.6379654954765411, + "auprc": 0.006937898005590227, + "brier": 0.002595675980332701, + "calibration": { + "observed_rate": 0.002570694087403599, + "mean_prediction": 0.0033992142161516315, + "calibration_in_the_large": 0.0008285201287480328, + "expected_calibration_error_10bin": 0.0008285201287480328, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + { + "valid": 2723, + "positives": 7, + "negatives": 2716, + "auroc": 0.6378077003997475, + "auprc": 0.00693599225439359, + "brier": 0.0025991153114700754, + "calibration": { + "observed_rate": 0.002570694087403599, + "mean_prediction": 0.0035446071709631303, + "calibration_in_the_large": 0.0009739130835595316, + "expected_calibration_error_10bin": 0.0009739130835595316, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + { + "valid": 2723, + "positives": 7, + "negatives": 2716, + "auroc": 0.6356511676835682, + "auprc": 0.00699378756368456, + "brier": 0.002605532462790047, + "calibration": { + "observed_rate": 0.002570694087403599, + "mean_prediction": 0.0037963903281014676, + "calibration_in_the_large": 0.0012256962406978688, + "expected_calibration_error_10bin": 0.0012256962406978688, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + { + "valid": 2723, + "positives": 7, + "negatives": 2716, + "auroc": 0.6355459709657059, + "auprc": 0.006992351205398631, + "brier": 0.0026056794787169333, + "calibration": { + "observed_rate": 0.002570694087403599, + "mean_prediction": 0.0038033696806584623, + "calibration_in_the_large": 0.0012326755932548636, + "expected_calibration_error_10bin": 0.0012326755932548636, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + } + ], + "reason": null + }, + "I42": { + "time_averaged_auroc": 0.9303676536919974, + "time_averaged_auprc": 0.03553474570212408, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2740, + "positives": 1, + "negatives": 2739, + "auroc": 0.9777290982110259, + "auprc": 0.016129032258064516, + "brier": 0.0003649462669154453, + "calibration": { + "observed_rate": 0.000364963503649635, + "mean_prediction": 0.0009590382136643065, + "calibration_in_the_large": 0.0005940747100146714, + "expected_calibration_error_10bin": 0.0005940747100146714, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + { + "valid": 2740, + "positives": 4, + "negatives": 2736, + "auroc": 0.9511147660818714, + "auprc": 0.030785658302498027, + "brier": 0.0014415600351989956, + "calibration": { + "observed_rate": 0.00145985401459854, + "mean_prediction": 0.001628014272055258, + "calibration_in_the_large": 0.00016816025745671793, + "expected_calibration_error_10bin": 0.00016816025745671793, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + { + "valid": 2740, + "positives": 4, + "negatives": 2736, + "auroc": 0.9594298245614035, + "auprc": 0.03053431721194879, + "brier": 0.0014425827843085675, + "calibration": { + "observed_rate": 0.00145985401459854, + "mean_prediction": 0.002217733961731068, + "calibration_in_the_large": 0.0007578799471325279, + "expected_calibration_error_10bin": 0.0007578799471325279, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + { + "valid": 2740, + "positives": 8, + "negatives": 2732, + "auroc": 0.9335193997071742, + "auprc": 0.03526249850383515, + "brier": 0.0028720627145441212, + "calibration": { + "observed_rate": 0.00291970802919708, + "mean_prediction": 0.0025149450480668324, + "calibration_in_the_large": -0.0004047629811302477, + "expected_calibration_error_10bin": 0.0004047629811302477, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + { + "valid": 2740, + "positives": 10, + "negatives": 2730, + "auroc": 0.9161172161172161, + "auprc": 0.0343963622779784, + "brier": 0.00359191631346155, + "calibration": { + "observed_rate": 0.0036496350364963502, + "mean_prediction": 0.0028617904247401874, + "calibration_in_the_large": -0.0007878446117561629, + "expected_calibration_error_10bin": 0.0007878446117561629, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + { + "valid": 2740, + "positives": 11, + "negatives": 2729, + "auroc": 0.9190845797661481, + "auprc": 0.03600311584555758, + "brier": 0.003947182208687034, + "calibration": { + "observed_rate": 0.0040145985401459855, + "mean_prediction": 0.0031993585324139565, + "calibration_in_the_large": -0.0008152400077320291, + "expected_calibration_error_10bin": 0.0008919936266754587, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + { + "valid": 2740, + "positives": 11, + "negatives": 2729, + "auroc": 0.9182517738765449, + "auprc": 0.035312562511623846, + "brier": 0.0039476414466629965, + "calibration": { + "observed_rate": 0.0040145985401459855, + "mean_prediction": 0.0034432087452994785, + "calibration_in_the_large": -0.000571389794846507, + "expected_calibration_error_10bin": 0.0006551637750219978, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + { + "valid": 2740, + "positives": 12, + "negatives": 2728, + "auroc": 0.917094330400782, + "auprc": 0.03597476890728627, + "brier": 0.004305512968840431, + "calibration": { + "observed_rate": 0.004379562043795621, + "mean_prediction": 0.003671407307350434, + "calibration_in_the_large": -0.0007081547364451869, + "expected_calibration_error_10bin": 0.0008701518184697814, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + { + "valid": 2740, + "positives": 12, + "negatives": 2728, + "auroc": 0.9170637829912024, + "auprc": 0.03612600131114042, + "brier": 0.004306020349273183, + "calibration": { + "observed_rate": 0.004379562043795621, + "mean_prediction": 0.003910108671919985, + "calibration_in_the_large": -0.00046945337187563607, + "expected_calibration_error_10bin": 0.0006444981336151442, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + { + "valid": 2740, + "positives": 13, + "negatives": 2727, + "auroc": 0.9227948435869228, + "auprc": 0.042721685053857386, + "brier": 0.004647718565187579, + "calibration": { + "observed_rate": 0.004744525547445255, + "mean_prediction": 0.0041968139616651605, + "calibration_in_the_large": -0.0005477115857800948, + "expected_calibration_error_10bin": 0.000738258814074663, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + { + "valid": 2740, + "positives": 13, + "negatives": 2727, + "auroc": 0.9215254858819215, + "auprc": 0.04274854608424362, + "brier": 0.004646390907492781, + "calibration": { + "observed_rate": 0.004744525547445255, + "mean_prediction": 0.004573051233072058, + "calibration_in_the_large": -0.0001714743143731972, + "expected_calibration_error_10bin": 0.00036680226481077184, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + { + "valid": 2740, + "positives": 14, + "negatives": 2726, + "auroc": 0.9205534011109947, + "auprc": 0.04298845172520421, + "brier": 0.005003114621395759, + "calibration": { + "observed_rate": 0.0051094890510948905, + "mean_prediction": 0.004722270607619504, + "calibration_in_the_large": -0.00038721844347538656, + "expected_calibration_error_10bin": 0.0005886624830725149, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + { + "valid": 2740, + "positives": 14, + "negatives": 2726, + "auroc": 0.9205009957027566, + "auprc": 0.04296869413437488, + "brier": 0.005003049287717162, + "calibration": { + "observed_rate": 0.0051094890510948905, + "mean_prediction": 0.004758008221589963, + "calibration_in_the_large": -0.0003514808295049278, + "expected_calibration_error_10bin": 0.000553747772133037, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + } + ], + "reason": null + }, + "I44": { + "time_averaged_auroc": 0.8351636298975288, + "time_averaged_auprc": 0.04052764976523043, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2722, + "positives": 4, + "negatives": 2718, + "auroc": 0.8507174392935982, + "auprc": 0.03251851414114682, + "brier": 0.001459657337986883, + "calibration": { + "observed_rate": 0.0014695077149155032, + "mean_prediction": 0.0015284543309507129, + "calibration_in_the_large": 5.894661603520965e-05, + "expected_calibration_error_10bin": 5.894661603520965e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9574393246570524 + }, + { + "valid": 2722, + "positives": 8, + "negatives": 2714, + "auroc": 0.8239683124539425, + "auprc": 0.03494255947894797, + "brier": 0.002900215464377859, + "calibration": { + "observed_rate": 0.0029390154298310064, + "mean_prediction": 0.0022899891331574157, + "calibration_in_the_large": -0.0006490262966735907, + "expected_calibration_error_10bin": 0.0006490262966735907, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9574393246570524 + }, + { + "valid": 2722, + "positives": 10, + "negatives": 2712, + "auroc": 0.8571165191740413, + "auprc": 0.047171639832722795, + "brier": 0.0035991160024214266, + "calibration": { + "observed_rate": 0.0036737692872887582, + "mean_prediction": 0.002962943950456416, + "calibration_in_the_large": -0.0007108253368323424, + "expected_calibration_error_10bin": 0.0007108253368323424, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9574393246570524 + }, + { + "valid": 2722, + "positives": 13, + "negatives": 2709, + "auroc": 0.8606638839196978, + "auprc": 0.04301843022927799, + "brier": 0.0046822043473626045, + "calibration": { + "observed_rate": 0.004775900073475386, + "mean_prediction": 0.0033597327373330156, + "calibration_in_the_large": -0.0014161673361423703, + "expected_calibration_error_10bin": 0.0014161673361423703, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9574393246570524 + }, + { + "valid": 2722, + "positives": 14, + "negatives": 2708, + "auroc": 0.8631567841316733, + "auprc": 0.043727196262149555, + "brier": 0.005035995284158331, + "calibration": { + "observed_rate": 0.005143277002204262, + "mean_prediction": 0.0038960589695069903, + "calibration_in_the_large": -0.0012472180326972716, + "expected_calibration_error_10bin": 0.0012472180326972716, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9574393246570524 + }, + { + "valid": 2722, + "positives": 14, + "negatives": 2708, + "auroc": 0.8652669339523106, + "auprc": 0.04227975570457724, + "brier": 0.005032813146442027, + "calibration": { + "observed_rate": 0.005143277002204262, + "mean_prediction": 0.004313556451780033, + "calibration_in_the_large": -0.0008297205504242287, + "expected_calibration_error_10bin": 0.0008297205504242287, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9574393246570524 + }, + { + "valid": 2722, + "positives": 17, + "negatives": 2705, + "auroc": 0.8492116994672175, + "auprc": 0.04006183901117289, + "brier": 0.006117057308313529, + "calibration": { + "observed_rate": 0.006245407788390889, + "mean_prediction": 0.004620336956898806, + "calibration_in_the_large": -0.0016250708314920828, + "expected_calibration_error_10bin": 0.0016250708314920828, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9574393246570524 + }, + { + "valid": 2722, + "positives": 18, + "negatives": 2704, + "auroc": 0.849913708086785, + "auprc": 0.04009003203569454, + "brier": 0.00647552264656242, + "calibration": { + "observed_rate": 0.006612784717119765, + "mean_prediction": 0.004863820742213312, + "calibration_in_the_large": -0.0017489639749064525, + "expected_calibration_error_10bin": 0.0017489639749064525, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9574393246570524 + }, + { + "valid": 2722, + "positives": 21, + "negatives": 2701, + "auroc": 0.8445901870559405, + "auprc": 0.04326833508088206, + "brier": 0.007541452981542096, + "calibration": { + "observed_rate": 0.007714915503306392, + "mean_prediction": 0.00514727423209984, + "calibration_in_the_large": -0.0025676412712065527, + "expected_calibration_error_10bin": 0.0025676412712065527, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9574393246570524 + }, + { + "valid": 2722, + "positives": 23, + "negatives": 2699, + "auroc": 0.7981700146592136, + "auprc": 0.04110491153518274, + "brier": 0.008271374178981505, + "calibration": { + "observed_rate": 0.008449669360764144, + "mean_prediction": 0.0055287631230996614, + "calibration_in_the_large": -0.0029209062376644827, + "expected_calibration_error_10bin": 0.0029946401503454564, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9574393246570524 + }, + { + "valid": 2722, + "positives": 23, + "negatives": 2699, + "auroc": 0.7981539056333263, + "auprc": 0.039494115179549594, + "brier": 0.008271513639806213, + "calibration": { + "observed_rate": 0.008449669360764144, + "mean_prediction": 0.005890749003574028, + "calibration_in_the_large": -0.002558920357190116, + "expected_calibration_error_10bin": 0.00264021632451114, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9574393246570524 + }, + { + "valid": 2722, + "positives": 24, + "negatives": 2698, + "auroc": 0.7983228317272053, + "auprc": 0.03967561904413051, + "brier": 0.008632384339596053, + "calibration": { + "observed_rate": 0.00881704628949302, + "mean_prediction": 0.0060816523770302385, + "calibration_in_the_large": -0.0027353939124627816, + "expected_calibration_error_10bin": 0.00281828515802903, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9574393246570524 + }, + { + "valid": 2722, + "positives": 24, + "negatives": 2698, + "auroc": 0.7978749691129231, + "auprc": 0.03950649941256082, + "brier": 0.008631425639254729, + "calibration": { + "observed_rate": 0.00881704628949302, + "mean_prediction": 0.006213089782393222, + "calibration_in_the_large": -0.002603956507099798, + "expected_calibration_error_10bin": 0.0026876369503520082, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9574393246570524 + } + ], + "reason": null + }, + "I45": { + "time_averaged_auroc": 0.6720180016817631, + "time_averaged_auprc": 0.008103394604804783, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2766, + "positives": 2, + "negatives": 2764, + "auroc": 0.690123010130246, + "auprc": 0.002951107694841738, + "brier": 0.0007228847176259071, + "calibration": { + "observed_rate": 0.0007230657989877079, + "mean_prediction": 0.0011636565831870736, + "calibration_in_the_large": 0.00044059078419936574, + "expected_calibration_error_10bin": 0.00044059078419936574, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9729159338726697 + }, + { + "valid": 2766, + "positives": 5, + "negatives": 2761, + "auroc": 0.6641072075335024, + "auprc": 0.0037226236425598703, + "brier": 0.0018078242349309041, + "calibration": { + "observed_rate": 0.0018076644974692696, + "mean_prediction": 0.0022809709306411624, + "calibration_in_the_large": 0.00047330643317189283, + "expected_calibration_error_10bin": 0.00047330643317189283, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9729159338726697 + }, + { + "valid": 2766, + "positives": 7, + "negatives": 2759, + "auroc": 0.6688241081137057, + "auprc": 0.004386568369878787, + "brier": 0.002532572158096545, + "calibration": { + "observed_rate": 0.0025307302964569776, + "mean_prediction": 0.0029939116586769686, + "calibration_in_the_large": 0.000463181362219991, + "expected_calibration_error_10bin": 0.000463181362219991, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9729159338726697 + }, + { + "valid": 2766, + "positives": 7, + "negatives": 2759, + "auroc": 0.6682545435716875, + "auprc": 0.004388538439460758, + "brier": 0.002536876997562796, + "calibration": { + "observed_rate": 0.0025307302964569776, + "mean_prediction": 0.003338342061627439, + "calibration_in_the_large": 0.0008076117651704615, + "expected_calibration_error_10bin": 0.0008076117651704615, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9729159338726697 + }, + { + "valid": 2766, + "positives": 8, + "negatives": 2758, + "auroc": 0.649791515591008, + "auprc": 0.0045271814605152925, + "brier": 0.0029004242288838754, + "calibration": { + "observed_rate": 0.0028922631959508315, + "mean_prediction": 0.0036965343217401094, + "calibration_in_the_large": 0.0008042711257892779, + "expected_calibration_error_10bin": 0.0008042711257892779, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9729159338726697 + }, + { + "valid": 2766, + "positives": 10, + "negatives": 2756, + "auroc": 0.6675253991291727, + "auprc": 0.00570289775580672, + "brier": 0.003620440986339131, + "calibration": { + "observed_rate": 0.0036153289949385392, + "mean_prediction": 0.003989889112424741, + "calibration_in_the_large": 0.0003745601174862021, + "expected_calibration_error_10bin": 0.0003745601174862021, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9729159338726697 + }, + { + "valid": 2766, + "positives": 12, + "negatives": 2754, + "auroc": 0.6664245945291697, + "auprc": 0.006687615456640324, + "brier": 0.004340987956977841, + "calibration": { + "observed_rate": 0.004338394793926247, + "mean_prediction": 0.004289442226172436, + "calibration_in_the_large": -4.895256775381152e-05, + "expected_calibration_error_10bin": 4.895256775381152e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9729159338726697 + }, + { + "valid": 2766, + "positives": 14, + "negatives": 2752, + "auroc": 0.7057464700996677, + "auprc": 0.009238517672968951, + "brier": 0.005048426960556322, + "calibration": { + "observed_rate": 0.005061460592913955, + "mean_prediction": 0.00462962078524515, + "calibration_in_the_large": -0.00043183980766880493, + "expected_calibration_error_10bin": 0.00043183980766880493, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9729159338726697 + }, + { + "valid": 2766, + "positives": 16, + "negatives": 2750, + "auroc": 0.6639772727272727, + "auprc": 0.00927763394568392, + "brier": 0.005770880175782014, + "calibration": { + "observed_rate": 0.005784526391901663, + "mean_prediction": 0.0050026361217373975, + "calibration_in_the_large": -0.0007818902701642655, + "expected_calibration_error_10bin": 0.0007818902701642655, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9729159338726697 + }, + { + "valid": 2766, + "positives": 18, + "negatives": 2748, + "auroc": 0.6711345625101084, + "auprc": 0.01073508762585674, + "brier": 0.006484659562091377, + "calibration": { + "observed_rate": 0.006507592190889371, + "mean_prediction": 0.005549033655256525, + "calibration_in_the_large": -0.0009585585356328453, + "expected_calibration_error_10bin": 0.0009585585356328453, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9729159338726697 + }, + { + "valid": 2766, + "positives": 22, + "negatives": 2744, + "auroc": 0.6734528226875166, + "auprc": 0.014561944398089943, + "brier": 0.007896304565409315, + "calibration": { + "observed_rate": 0.007953723788864787, + "mean_prediction": 0.005849398220419148, + "calibration_in_the_large": -0.0021043255684456393, + "expected_calibration_error_10bin": 0.0021043255684456393, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9729159338726697 + }, + { + "valid": 2766, + "positives": 22, + "negatives": 2744, + "auroc": 0.6733534322820037, + "auprc": 0.01457105965226292, + "brier": 0.007899994320759659, + "calibration": { + "observed_rate": 0.007953723788864787, + "mean_prediction": 0.006113162893006339, + "calibration_in_the_large": -0.001840560895858448, + "expected_calibration_error_10bin": 0.001840560895858448, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9729159338726697 + }, + { + "valid": 2766, + "positives": 22, + "negatives": 2744, + "auroc": 0.6735190829578585, + "auprc": 0.014593353747896219, + "brier": 0.00790034602129538, + "calibration": { + "observed_rate": 0.007953723788864787, + "mean_prediction": 0.006155835984798783, + "calibration_in_the_large": -0.0017978878040660045, + "expected_calibration_error_10bin": 0.0017978878040660045, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9729159338726697 + } + ], + "reason": null + }, + "I46": { + "time_averaged_auroc": 0.7326500946760194, + "time_averaged_auprc": 0.0029890324705969477, + "valid_timepoint_cells": 11, + "timepoints": [ + { + "valid": 2831, + "positives": 0, + "negatives": 2831, + "auroc": null, + "auprc": null, + "brier": 1.598036106541792e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00021419325405148352, + "calibration_in_the_large": 0.00021419325405148352, + "expected_calibration_error_10bin": 0.00021419325405148352, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 0, + "negatives": 2831, + "auroc": null, + "auprc": null, + "brier": 6.936864735944487e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00044486028239197156, + "calibration_in_the_large": 0.00044486028239197156, + "expected_calibration_error_10bin": 0.00044486028239197156, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.7021201413427561, + "auprc": 0.001184834123222749, + "brier": 0.00035371991594993217, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.0005052460480086298, + "calibration_in_the_large": 0.00015201397453635856, + "expected_calibration_error_10bin": 0.00015201397453635856, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.7042402826855124, + "auprc": 0.0011933174224343676, + "brier": 0.0003538735583621759, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.0005686803120985871, + "calibration_in_the_large": 0.00021544823862631584, + "expected_calibration_error_10bin": 0.00021544823862631584, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.7056537102473498, + "auprc": 0.001199040767386091, + "brier": 0.00035414245194503597, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.0006675931107328088, + "calibration_in_the_large": 0.00031436103726053757, + "expected_calibration_error_10bin": 0.00031436103726053757, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.7180212014134275, + "auprc": 0.0012515644555694619, + "brier": 0.0003543274277664798, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.0007493209937295027, + "calibration_in_the_large": 0.00039608892025723143, + "expected_calibration_error_10bin": 0.00039608892025723143, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.7208480565371025, + "auprc": 0.0012642225031605564, + "brier": 0.0003543719411913841, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.0007681548720182805, + "calibration_in_the_large": 0.0004149227985460092, + "expected_calibration_error_10bin": 0.0004149227985460092, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.7169611307420495, + "auprc": 0.0012468827930174563, + "brier": 0.00035466509911216085, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.0008458259498737603, + "calibration_in_the_large": 0.0004925938764014891, + "expected_calibration_error_10bin": 0.0004925938764014891, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 2, + "negatives": 2829, + "auroc": 0.8071756804524567, + "auprc": 0.003076325394817679, + "brier": 0.0007064071760235292, + "calibration": { + "observed_rate": 0.0007064641469445425, + "mean_prediction": 0.0009023582537068831, + "calibration_in_the_large": 0.00019589410676234056, + "expected_calibration_error_10bin": 0.00019589410676234056, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 3, + "negatives": 2828, + "auroc": 0.695898161244696, + "auprc": 0.0027124623119847784, + "brier": 0.0010594573569697413, + "calibration": { + "observed_rate": 0.0010596962204168139, + "mean_prediction": 0.0009222303640753122, + "calibration_in_the_large": -0.00013746585634150164, + "expected_calibration_error_10bin": 0.00013746585634150164, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 3, + "negatives": 2828, + "auroc": 0.6938943894389439, + "auprc": 0.0026491589148397846, + "brier": 0.0010596454767030654, + "calibration": { + "observed_rate": 0.0010596962204168139, + "mean_prediction": 0.000980944883512704, + "calibration_in_the_large": -7.875133690410981e-05, + "expected_calibration_error_10bin": 7.875133690410981e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.7970983722576079, + "auprc": 0.008548988068447198, + "brier": 0.0017601801435372668, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.0011060842280930143, + "calibration_in_the_large": -0.000660076139268342, + "expected_calibration_error_10bin": 0.000660076139268342, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.79723991507431, + "auprc": 0.008552560421686301, + "brier": 0.0017601733667197644, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.001110442956067974, + "calibration_in_the_large": -0.0006557174112933823, + "expected_calibration_error_10bin": 0.0006557174112933823, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + } + ], + "reason": null + }, + "I47": { + "time_averaged_auroc": 0.6322194296055131, + "time_averaged_auprc": 0.006845516825767686, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2716, + "positives": 3, + "negatives": 2713, + "auroc": 0.7481263054429291, + "auprc": 0.003401783625684801, + "brier": 0.0011062236831780928, + "calibration": { + "observed_rate": 0.0011045655375552283, + "mean_prediction": 0.00211477061896032, + "calibration_in_the_large": 0.0010102050814050916, + "expected_calibration_error_10bin": 0.0010102050814050916, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + { + "valid": 2716, + "positives": 5, + "negatives": 2711, + "auroc": 0.582441903356695, + "auprc": 0.003318464577610478, + "brier": 0.0018521643587325251, + "calibration": { + "observed_rate": 0.001840942562592047, + "mean_prediction": 0.0034519128918212966, + "calibration_in_the_large": 0.0016109703292292495, + "expected_calibration_error_10bin": 0.0016109703292292495, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + { + "valid": 2716, + "positives": 7, + "negatives": 2709, + "auroc": 0.6120866951431736, + "auprc": 0.004151260960171489, + "brier": 0.00259812872737344, + "calibration": { + "observed_rate": 0.002577319587628866, + "mean_prediction": 0.004593503800682763, + "calibration_in_the_large": 0.002016184213053897, + "expected_calibration_error_10bin": 0.002016184213053897, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + { + "valid": 2716, + "positives": 8, + "negatives": 2708, + "auroc": 0.6251384785819794, + "auprc": 0.004746114720709968, + "brier": 0.0029730917207427036, + "calibration": { + "observed_rate": 0.0029455081001472753, + "mean_prediction": 0.005455004168969975, + "calibration_in_the_large": 0.0025094960688226992, + "expected_calibration_error_10bin": 0.0025094960688226992, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + { + "valid": 2716, + "positives": 9, + "negatives": 2707, + "auroc": 0.5953289824734228, + "auprc": 0.004751810197360988, + "brier": 0.0033539191584780995, + "calibration": { + "observed_rate": 0.0033136966126656848, + "mean_prediction": 0.006205385207793582, + "calibration_in_the_large": 0.002891688595127897, + "expected_calibration_error_10bin": 0.002891688595127897, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + { + "valid": 2716, + "positives": 11, + "negatives": 2705, + "auroc": 0.636464459754663, + "auprc": 0.0065519720861141805, + "brier": 0.0040852992542870946, + "calibration": { + "observed_rate": 0.004050073637702504, + "mean_prediction": 0.006832356665562093, + "calibration_in_the_large": 0.0027822830278595887, + "expected_calibration_error_10bin": 0.0027822830278595887, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + { + "valid": 2716, + "positives": 12, + "negatives": 2704, + "auroc": 0.6304857001972387, + "auprc": 0.006798026100532959, + "brier": 0.004465466688726536, + "calibration": { + "observed_rate": 0.004418262150220913, + "mean_prediction": 0.007430653438508797, + "calibration_in_the_large": 0.0030123912882878837, + "expected_calibration_error_10bin": 0.0030123912882878837, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + { + "valid": 2716, + "positives": 13, + "negatives": 2703, + "auroc": 0.6473434076097783, + "auprc": 0.007613597038854354, + "brier": 0.004836733790667378, + "calibration": { + "observed_rate": 0.004786450662739323, + "mean_prediction": 0.0078300152277367, + "calibration_in_the_large": 0.0030435645649973773, + "expected_calibration_error_10bin": 0.0030435645649973773, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + { + "valid": 2716, + "positives": 16, + "negatives": 2700, + "auroc": 0.6429166666666667, + "auprc": 0.008979692031002547, + "brier": 0.005931020185576763, + "calibration": { + "observed_rate": 0.005891016200294551, + "mean_prediction": 0.008211117575179295, + "calibration_in_the_large": 0.0023201013748847445, + "expected_calibration_error_10bin": 0.0023201013748847445, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + { + "valid": 2716, + "positives": 18, + "negatives": 2698, + "auroc": 0.633967547977926, + "auprc": 0.009605663868477315, + "brier": 0.0066695199393538695, + "calibration": { + "observed_rate": 0.0066273932253313695, + "mean_prediction": 0.008639605775659084, + "calibration_in_the_large": 0.002012212550327714, + "expected_calibration_error_10bin": 0.0020122125503277133, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + { + "valid": 2716, + "positives": 18, + "negatives": 2698, + "auroc": 0.6354089448974549, + "auprc": 0.009705426055929351, + "brier": 0.0066793233102169156, + "calibration": { + "observed_rate": 0.0066273932253313695, + "mean_prediction": 0.009211086095705942, + "calibration_in_the_large": 0.002583692870374572, + "expected_calibration_error_10bin": 0.0025836928703745726, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + { + "valid": 2716, + "positives": 19, + "negatives": 2697, + "auroc": 0.6143278106277931, + "auprc": 0.009674739169498629, + "brier": 0.007059047657570188, + "calibration": { + "observed_rate": 0.006995581737849779, + "mean_prediction": 0.009740220827478878, + "calibration_in_the_large": 0.0027446390896290985, + "expected_calibration_error_10bin": 0.0027446390896290985, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + { + "valid": 2716, + "positives": 19, + "negatives": 2697, + "auroc": 0.6148156821419511, + "auprc": 0.00969316830303286, + "brier": 0.007063441389539944, + "calibration": { + "observed_rate": 0.006995581737849779, + "mean_prediction": 0.00989818417145749, + "calibration_in_the_large": 0.0029026024336077103, + "expected_calibration_error_10bin": 0.0029026024336077103, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + } + ], + "reason": null + }, + "I48": { + "time_averaged_auroc": 0.7562715662490705, + "time_averaged_auprc": 0.025541437620001592, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2385, + "positives": 7, + "negatives": 2378, + "auroc": 0.7711762585606151, + "auprc": 0.008994907150304734, + "brier": 0.002948840417383074, + "calibration": { + "observed_rate": 0.0029350104821802936, + "mean_prediction": 0.003836138987136554, + "calibration_in_the_large": 0.0009011285049562606, + "expected_calibration_error_10bin": 0.0009011285049562606, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8389025677101654 + }, + { + "valid": 2385, + "positives": 12, + "negatives": 2373, + "auroc": 0.7665051271245962, + "auprc": 0.016654692325309653, + "brier": 0.005105940550114434, + "calibration": { + "observed_rate": 0.005031446540880503, + "mean_prediction": 0.007717764052180603, + "calibration_in_the_large": 0.0026863175113001, + "expected_calibration_error_10bin": 0.0026863175113001, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8389025677101654 + }, + { + "valid": 2385, + "positives": 15, + "negatives": 2370, + "auroc": 0.7776933895921238, + "auprc": 0.02030035714335198, + "brier": 0.006388753334674647, + "calibration": { + "observed_rate": 0.006289308176100629, + "mean_prediction": 0.009512366668222662, + "calibration_in_the_large": 0.0032230584921220332, + "expected_calibration_error_10bin": 0.0032230584921220332, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8389025677101654 + }, + { + "valid": 2385, + "positives": 17, + "negatives": 2368, + "auroc": 0.7561605723370429, + "auprc": 0.020286393222347675, + "brier": 0.007357920374675444, + "calibration": { + "observed_rate": 0.007127882599580713, + "mean_prediction": 0.012033115936077138, + "calibration_in_the_large": 0.0049052333364964255, + "expected_calibration_error_10bin": 0.004905233336496426, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8389025677101654 + }, + { + "valid": 2385, + "positives": 19, + "negatives": 2366, + "auroc": 0.757396449704142, + "auprc": 0.023169153590290533, + "brier": 0.008165715243697387, + "calibration": { + "observed_rate": 0.007966457023060796, + "mean_prediction": 0.012580378003848307, + "calibration_in_the_large": 0.004613920980787511, + "expected_calibration_error_10bin": 0.004613920980787509, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8389025677101654 + }, + { + "valid": 2385, + "positives": 21, + "negatives": 2364, + "auroc": 0.765349286922891, + "auprc": 0.025520064971103845, + "brier": 0.009024782133069786, + "calibration": { + "observed_rate": 0.00880503144654088, + "mean_prediction": 0.01372838522388472, + "calibration_in_the_large": 0.0049233537773438404, + "expected_calibration_error_10bin": 0.004923353777343842, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8389025677101654 + }, + { + "valid": 2385, + "positives": 22, + "negatives": 2363, + "auroc": 0.7705920824837457, + "auprc": 0.027432611384994966, + "brier": 0.009498957807592105, + "calibration": { + "observed_rate": 0.009224318658280923, + "mean_prediction": 0.014800500186489363, + "calibration_in_the_large": 0.00557618152820844, + "expected_calibration_error_10bin": 0.005576181528208443, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8389025677101654 + }, + { + "valid": 2385, + "positives": 23, + "negatives": 2362, + "auroc": 0.7653057467879101, + "auprc": 0.027574234218817897, + "brier": 0.009957572804202706, + "calibration": { + "observed_rate": 0.009643605870020965, + "mean_prediction": 0.01553714213618726, + "calibration_in_the_large": 0.005893536266166295, + "expected_calibration_error_10bin": 0.005893536266166295, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8389025677101654 + }, + { + "valid": 2385, + "positives": 25, + "negatives": 2360, + "auroc": 0.7470847457627119, + "auprc": 0.02725602705852004, + "brier": 0.010877384280444439, + "calibration": { + "observed_rate": 0.010482180293501049, + "mean_prediction": 0.01668672279821891, + "calibration_in_the_large": 0.00620454250471786, + "expected_calibration_error_10bin": 0.006204542504717862, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8389025677101654 + }, + { + "valid": 2385, + "positives": 30, + "negatives": 2355, + "auroc": 0.7312668082094834, + "auprc": 0.031534959988763316, + "brier": 0.012906578471826689, + "calibration": { + "observed_rate": 0.012578616352201259, + "mean_prediction": 0.017606460069419926, + "calibration_in_the_large": 0.005027843717218667, + "expected_calibration_error_10bin": 0.005027843717218669, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8389025677101654 + }, + { + "valid": 2385, + "positives": 32, + "negatives": 2353, + "auroc": 0.7408892902677433, + "auprc": 0.03382907812712423, + "brier": 0.01377491232431195, + "calibration": { + "observed_rate": 0.013417190775681341, + "mean_prediction": 0.018812734505931614, + "calibration_in_the_large": 0.005395543730250273, + "expected_calibration_error_10bin": 0.005395543730250273, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8389025677101654 + }, + { + "valid": 2385, + "positives": 32, + "negatives": 2353, + "auroc": 0.741061942201445, + "auprc": 0.03478023902319937, + "brier": 0.013878257202827992, + "calibration": { + "observed_rate": 0.013417190775681341, + "mean_prediction": 0.019962186497084783, + "calibration_in_the_large": 0.006544995721403442, + "expected_calibration_error_10bin": 0.00654499572140344, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8389025677101654 + }, + { + "valid": 2385, + "positives": 32, + "negatives": 2353, + "auroc": 0.7410486612834679, + "auprc": 0.034705970855892436, + "brier": 0.01390464991195817, + "calibration": { + "observed_rate": 0.013417190775681341, + "mean_prediction": 0.020209974092367758, + "calibration_in_the_large": 0.006792783316686417, + "expected_calibration_error_10bin": 0.006792783316686417, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8389025677101654 + } + ], + "reason": null + }, + "I49": { + "time_averaged_auroc": 0.6865229242197304, + "time_averaged_auprc": 0.011165299799977225, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2734, + "positives": 4, + "negatives": 2730, + "auroc": 0.6768315018315019, + "auprc": 0.00397638988298461, + "brier": 0.00146129845307323, + "calibration": { + "observed_rate": 0.001463057790782736, + "mean_prediction": 0.0006470805491096091, + "calibration_in_the_large": -0.0008159772416731269, + "expected_calibration_error_10bin": 0.0008159772416731269, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 5, + "negatives": 2729, + "auroc": 0.7253939171857824, + "auprc": 0.006584710740014291, + "brier": 0.0018246674700940237, + "calibration": { + "observed_rate": 0.0018288222384784199, + "mean_prediction": 0.0016956491989955362, + "calibration_in_the_large": -0.00013317303948288364, + "expected_calibration_error_10bin": 0.00013317303948288364, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 6, + "negatives": 2728, + "auroc": 0.7244623655913979, + "auprc": 0.006723906630236111, + "brier": 0.0021913957608037473, + "calibration": { + "observed_rate": 0.0021945866861741038, + "mean_prediction": 0.0022948792208915417, + "calibration_in_the_large": 0.00010029253471743795, + "expected_calibration_error_10bin": 0.00010029253471743795, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 10, + "negatives": 2724, + "auroc": 0.7360499265785609, + "auprc": 0.009057878959785545, + "brier": 0.003643840945898333, + "calibration": { + "observed_rate": 0.0036576444769568397, + "mean_prediction": 0.002838035233335157, + "calibration_in_the_large": -0.000819609243621683, + "expected_calibration_error_10bin": 0.000819609243621683, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 12, + "negatives": 2722, + "auroc": 0.6779635072250796, + "auprc": 0.008761361906132614, + "brier": 0.004374341893756723, + "calibration": { + "observed_rate": 0.0043891733723482075, + "mean_prediction": 0.003170875192933956, + "calibration_in_the_large": -0.0012182981794142517, + "expected_calibration_error_10bin": 0.0012182981794142517, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 14, + "negatives": 2720, + "auroc": 0.6978466386554621, + "auprc": 0.010200901561943481, + "brier": 0.005098566795739212, + "calibration": { + "observed_rate": 0.005120702267739576, + "mean_prediction": 0.003441481156999057, + "calibration_in_the_large": -0.0016792211107405186, + "expected_calibration_error_10bin": 0.0016792211107405186, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 15, + "negatives": 2719, + "auroc": 0.6767193821257815, + "auprc": 0.010165972620424487, + "brier": 0.0054646216898060354, + "calibration": { + "observed_rate": 0.005486466715435259, + "mean_prediction": 0.003791656320541386, + "calibration_in_the_large": -0.0016948103948938734, + "expected_calibration_error_10bin": 0.0016948103948938734, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 15, + "negatives": 2719, + "auroc": 0.6755915164889053, + "auprc": 0.010130563603256813, + "brier": 0.00546671191479769, + "calibration": { + "observed_rate": 0.005486466715435259, + "mean_prediction": 0.004019300575211857, + "calibration_in_the_large": -0.0014671661402234021, + "expected_calibration_error_10bin": 0.0014671661402234021, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 17, + "negatives": 2717, + "auroc": 0.6564550001082509, + "auprc": 0.010345803903190287, + "brier": 0.0061957941752183825, + "calibration": { + "observed_rate": 0.006217995610826628, + "mean_prediction": 0.0043230139232827295, + "calibration_in_the_large": -0.0018949816875438981, + "expected_calibration_error_10bin": 0.0018949816875438981, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 17, + "negatives": 2717, + "auroc": 0.6556755937560891, + "auprc": 0.010287398805037522, + "brier": 0.0061978754041757175, + "calibration": { + "observed_rate": 0.006217995610826628, + "mean_prediction": 0.004541123989584372, + "calibration_in_the_large": -0.0016768716212422555, + "expected_calibration_error_10bin": 0.0016768716212422555, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 19, + "negatives": 2715, + "auroc": 0.6744402442570515, + "auprc": 0.0197379084755204, + "brier": 0.006892364480562064, + "calibration": { + "observed_rate": 0.006949524506217996, + "mean_prediction": 0.004811877353442526, + "calibration_in_the_large": -0.0021376471527754697, + "expected_calibration_error_10bin": 0.0021376471527754697, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 19, + "negatives": 2715, + "auroc": 0.673703596006591, + "auprc": 0.01960197195101293, + "brier": 0.0068931935042981975, + "calibration": { + "observed_rate": 0.006949524506217996, + "mean_prediction": 0.005071697429884648, + "calibration_in_the_large": -0.001877827076333348, + "expected_calibration_error_10bin": 0.001877827076333348, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 19, + "negatives": 2715, + "auroc": 0.6736648250460405, + "auprc": 0.019574128360164828, + "brier": 0.006893252335855647, + "calibration": { + "observed_rate": 0.006949524506217996, + "mean_prediction": 0.005097442773719122, + "calibration_in_the_large": -0.0018520817324988734, + "expected_calibration_error_10bin": 0.0018520817324988734, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + } + ], + "reason": null + }, + "I50": { + "time_averaged_auroc": 0.8228497843214668, + "time_averaged_auprc": 0.0661644092096266, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2415, + "positives": 7, + "negatives": 2408, + "auroc": 0.8496084480303749, + "auprc": 0.027748423811469643, + "brier": 0.0028723625523756698, + "calibration": { + "observed_rate": 0.002898550724637681, + "mean_prediction": 0.003088712194580534, + "calibration_in_the_large": 0.00019016146994285275, + "expected_calibration_error_10bin": 0.00019016146994285275, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.849454801266268 + }, + { + "valid": 2415, + "positives": 17, + "negatives": 2398, + "auroc": 0.8392532993180591, + "auprc": 0.03311575384024957, + "brier": 0.007027784219692849, + "calibration": { + "observed_rate": 0.007039337474120083, + "mean_prediction": 0.007276085381275625, + "calibration_in_the_large": 0.00023674790715554148, + "expected_calibration_error_10bin": 0.0009428501456472448, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.849454801266268 + }, + { + "valid": 2415, + "positives": 25, + "negatives": 2390, + "auroc": 0.8360669456066946, + "auprc": 0.048304406206175356, + "brier": 0.010219438384628937, + "calibration": { + "observed_rate": 0.010351966873706004, + "mean_prediction": 0.00985214201591777, + "calibration_in_the_large": -0.000499824857788234, + "expected_calibration_error_10bin": 0.0028620788359271106, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.849454801266268 + }, + { + "valid": 2415, + "positives": 31, + "negatives": 2384, + "auroc": 0.8097126001298982, + "auprc": 0.0484412430755827, + "brier": 0.012694837273650015, + "calibration": { + "observed_rate": 0.012836438923395446, + "mean_prediction": 0.011536539020532735, + "calibration_in_the_large": -0.0012998999028627101, + "expected_calibration_error_10bin": 0.003187745346752179, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.849454801266268 + }, + { + "valid": 2415, + "positives": 33, + "negatives": 2382, + "auroc": 0.821196855201893, + "auprc": 0.06324675402343474, + "brier": 0.01336960521581354, + "calibration": { + "observed_rate": 0.013664596273291925, + "mean_prediction": 0.01313257220028153, + "calibration_in_the_large": -0.0005320240730103953, + "expected_calibration_error_10bin": 0.002287604520979379, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.849454801266268 + }, + { + "valid": 2415, + "positives": 35, + "negatives": 2380, + "auroc": 0.8257382953181273, + "auprc": 0.0665642186528874, + "brier": 0.014181770576590496, + "calibration": { + "observed_rate": 0.014492753623188406, + "mean_prediction": 0.014690370141011185, + "calibration_in_the_large": 0.00019761651782277886, + "expected_calibration_error_10bin": 0.0019878284941967548, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.849454801266268 + }, + { + "valid": 2415, + "positives": 38, + "negatives": 2377, + "auroc": 0.81426167437947, + "auprc": 0.06503622577878969, + "brier": 0.015500073694944766, + "calibration": { + "observed_rate": 0.015734989648033125, + "mean_prediction": 0.016255446464223812, + "calibration_in_the_large": 0.000520456816190687, + "expected_calibration_error_10bin": 0.003221784506433331, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.849454801266268 + }, + { + "valid": 2415, + "positives": 42, + "negatives": 2373, + "auroc": 0.8260791042080549, + "auprc": 0.07430024382640121, + "brier": 0.01696881823945502, + "calibration": { + "observed_rate": 0.017391304347826087, + "mean_prediction": 0.0169676322835261, + "calibration_in_the_large": -0.0004236720642999889, + "expected_calibration_error_10bin": 0.003427340491520523, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.849454801266268 + }, + { + "valid": 2415, + "positives": 44, + "negatives": 2371, + "auroc": 0.8094877497028489, + "auprc": 0.07306856966538222, + "brier": 0.017935484248932675, + "calibration": { + "observed_rate": 0.018219461697722567, + "mean_prediction": 0.018528099537868773, + "calibration_in_the_large": 0.00030863784014620657, + "expected_calibration_error_10bin": 0.0047571015306283266, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.849454801266268 + }, + { + "valid": 2415, + "positives": 46, + "negatives": 2369, + "auroc": 0.8126250298236276, + "auprc": 0.07647641488780219, + "brier": 0.018705489565712625, + "calibration": { + "observed_rate": 0.01904761904761905, + "mean_prediction": 0.019145687733759454, + "calibration_in_the_large": 9.806868614040468e-05, + "expected_calibration_error_10bin": 0.005665892784258191, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.849454801266268 + }, + { + "valid": 2415, + "positives": 50, + "negatives": 2365, + "auroc": 0.817107822410148, + "auprc": 0.09231369315682227, + "brier": 0.020055027579847846, + "calibration": { + "observed_rate": 0.020703933747412008, + "mean_prediction": 0.02092384655114688, + "calibration_in_the_large": 0.00021991280373487299, + "expected_calibration_error_10bin": 0.0046715651009699155, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.849454801266268 + }, + { + "valid": 2415, + "positives": 52, + "negatives": 2363, + "auroc": 0.8180035157394446, + "auprc": 0.09584758406215206, + "brier": 0.020836494298051744, + "calibration": { + "observed_rate": 0.021532091097308487, + "mean_prediction": 0.022129604875319904, + "calibration_in_the_large": 0.0005975137780114166, + "expected_calibration_error_10bin": 0.004840694968602508, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.849454801266268 + }, + { + "valid": 2415, + "positives": 52, + "negatives": 2363, + "auroc": 0.8179058563104268, + "auprc": 0.09567378873799676, + "brier": 0.0208557877312703, + "calibration": { + "observed_rate": 0.021532091097308487, + "mean_prediction": 0.022316457786619365, + "calibration_in_the_large": 0.0007843666893108774, + "expected_calibration_error_10bin": 0.004881331112863535, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.849454801266268 + } + ], + "reason": null + }, + "I51": { + "time_averaged_auroc": 0.7970171369722762, + "time_averaged_auprc": 0.03416699033545708, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2807, + "positives": 2, + "negatives": 2805, + "auroc": 0.8165775401069518, + "auprc": 0.006557204750616016, + "brier": 0.0007112584463877356, + "calibration": { + "observed_rate": 0.0007125044531528322, + "mean_prediction": 0.0005251505000576764, + "calibration_in_the_large": -0.00018735395309515577, + "expected_calibration_error_10bin": 0.00018735395309515577, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 3, + "negatives": 2804, + "auroc": 0.8780313837375179, + "auprc": 0.015178192987967548, + "brier": 0.0010638169396221112, + "calibration": { + "observed_rate": 0.0010687566797292483, + "mean_prediction": 0.0010536481429402713, + "calibration_in_the_large": -1.5108536788976988e-05, + "expected_calibration_error_10bin": 1.5108536788976988e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 5, + "negatives": 2802, + "auroc": 0.8017844396859386, + "auprc": 0.010376396636897068, + "brier": 0.0017744651845094887, + "calibration": { + "observed_rate": 0.0017812611328820805, + "mean_prediction": 0.0012860798722579313, + "calibration_in_the_large": -0.0004951812606241491, + "expected_calibration_error_10bin": 0.0004951812606241491, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 5, + "negatives": 2802, + "auroc": 0.7954318344039971, + "auprc": 0.009699400649836525, + "brier": 0.0017751568945829183, + "calibration": { + "observed_rate": 0.0017812611328820805, + "mean_prediction": 0.0014690130237657824, + "calibration_in_the_large": -0.000312248109116298, + "expected_calibration_error_10bin": 0.000312248109116298, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 5, + "negatives": 2802, + "auroc": 0.7894361170592434, + "auprc": 0.00947475604685272, + "brier": 0.0017755286228618003, + "calibration": { + "observed_rate": 0.0017812611328820805, + "mean_prediction": 0.0015486788567069163, + "calibration_in_the_large": -0.00023258227617516418, + "expected_calibration_error_10bin": 0.00023258227617516418, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 6, + "negatives": 2801, + "auroc": 0.7759133642746638, + "auprc": 0.00878599118641811, + "brier": 0.0021312538891496793, + "calibration": { + "observed_rate": 0.0021375133594584966, + "mean_prediction": 0.0017334051374941898, + "calibration_in_the_large": -0.00040410822196430677, + "expected_calibration_error_10bin": 0.00040410822196430677, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 6, + "negatives": 2801, + "auroc": 0.7747233131024635, + "auprc": 0.008770661987436064, + "brier": 0.002131744330753146, + "calibration": { + "observed_rate": 0.0021375133594584966, + "mean_prediction": 0.0018691559619412703, + "calibration_in_the_large": -0.00026835739751722627, + "expected_calibration_error_10bin": 0.00026835739751722627, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 7, + "negatives": 2800, + "auroc": 0.7911224489795918, + "auprc": 0.009660730559659682, + "brier": 0.0024852945947470644, + "calibration": { + "observed_rate": 0.0024937655860349127, + "mean_prediction": 0.0020571431566302817, + "calibration_in_the_large": -0.000436622429404631, + "expected_calibration_error_10bin": 0.000436622429404631, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 7, + "negatives": 2800, + "auroc": 0.7886224489795919, + "auprc": 0.009527587563461412, + "brier": 0.0024861560898470944, + "calibration": { + "observed_rate": 0.0024937655860349127, + "mean_prediction": 0.00214259464696652, + "calibration_in_the_large": -0.00035117093906839253, + "expected_calibration_error_10bin": 0.00035117093906839253, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 8, + "negatives": 2799, + "auroc": 0.7706323687031083, + "auprc": 0.009156095435255045, + "brier": 0.0028418274661671196, + "calibration": { + "observed_rate": 0.0028500178126113287, + "mean_prediction": 0.0022657473693555386, + "calibration_in_the_large": -0.0005842704432557902, + "expected_calibration_error_10bin": 0.0005842704432557902, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 9, + "negatives": 2798, + "auroc": 0.7948931776665873, + "auprc": 0.12298400342755353, + "brier": 0.0031569225608897972, + "calibration": { + "observed_rate": 0.003206270039187745, + "mean_prediction": 0.002452100749789775, + "calibration_in_the_large": -0.0007541692893979698, + "expected_calibration_error_10bin": 0.0007541692893979698, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 10, + "negatives": 2797, + "auroc": 0.7920986771540937, + "auprc": 0.112003671765874, + "brier": 0.003509070908183086, + "calibration": { + "observed_rate": 0.003562522265764161, + "mean_prediction": 0.002585253240790584, + "calibration_in_the_large": -0.0009772690249735768, + "expected_calibration_error_10bin": 0.0009772690249735768, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 10, + "negatives": 2797, + "auroc": 0.791955666785842, + "auprc": 0.11199618136311437, + "brier": 0.0035089674968141874, + "calibration": { + "observed_rate": 0.003562522265764161, + "mean_prediction": 0.0025897184843343165, + "calibration_in_the_large": -0.0009728037814298444, + "expected_calibration_error_10bin": 0.0009728037814298444, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + } + ], + "reason": null + }, + "I61": { + "time_averaged_auroc": 0.8562974513387019, + "time_averaged_auprc": 0.013905415827210017, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2802, + "positives": 2, + "negatives": 2800, + "auroc": 0.9635714285714285, + "auprc": 0.014124015748031496, + "brier": 0.0007121296527844862, + "calibration": { + "observed_rate": 0.0007137758743754461, + "mean_prediction": 0.000335509667251302, + "calibration_in_the_large": -0.0003782662071241441, + "expected_calibration_error_10bin": 0.0003782662071241441, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 2, + "negatives": 2800, + "auroc": 0.9728571428571429, + "auprc": 0.01880151098901099, + "brier": 0.0007102389543498731, + "calibration": { + "observed_rate": 0.0007137758743754461, + "mean_prediction": 0.0006508126598526153, + "calibration_in_the_large": -6.296321452283079e-05, + "expected_calibration_error_10bin": 6.296321452283079e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 4, + "negatives": 2798, + "auroc": 0.8661543959971408, + "auprc": 0.013260131512665536, + "brier": 0.0014215958644269748, + "calibration": { + "observed_rate": 0.0014275517487508922, + "mean_prediction": 0.0008987828906081374, + "calibration_in_the_large": -0.0005287688581427549, + "expected_calibration_error_10bin": 0.0005287688581427549, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 5, + "negatives": 2797, + "auroc": 0.8446192348945298, + "auprc": 0.011578296816835292, + "brier": 0.0017777507183993414, + "calibration": { + "observed_rate": 0.0017844396859386152, + "mean_prediction": 0.0009856225431055317, + "calibration_in_the_large": -0.0007988171428330835, + "expected_calibration_error_10bin": 0.0007988171428330835, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 5, + "negatives": 2797, + "auroc": 0.8457633178405435, + "auprc": 0.011545663690434858, + "brier": 0.0017776475988499339, + "calibration": { + "observed_rate": 0.0017844396859386152, + "mean_prediction": 0.0010823457381289139, + "calibration_in_the_large": -0.0007020939478097014, + "expected_calibration_error_10bin": 0.0007020939478097014, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 6, + "negatives": 2796, + "auroc": 0.8229017644253696, + "auprc": 0.010686819044956329, + "brier": 0.002133500199585256, + "calibration": { + "observed_rate": 0.0021413276231263384, + "mean_prediction": 0.0012182298648388728, + "calibration_in_the_large": -0.0009230977582874657, + "expected_calibration_error_10bin": 0.0009230977582874657, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 7, + "negatives": 2795, + "auroc": 0.8131868131868132, + "auprc": 0.010425664855114187, + "brier": 0.0024894148921677994, + "calibration": { + "observed_rate": 0.0024982155603140615, + "mean_prediction": 0.0012959272210311251, + "calibration_in_the_large": -0.0012022883392829363, + "expected_calibration_error_10bin": 0.0012022883392829363, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 8, + "negatives": 2794, + "auroc": 0.8327219040801718, + "auprc": 0.01470068702631876, + "brier": 0.00284070754817755, + "calibration": { + "observed_rate": 0.0028551034975017845, + "mean_prediction": 0.0015049209603387056, + "calibration_in_the_large": -0.001350182537163079, + "expected_calibration_error_10bin": 0.001350182537163079, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 8, + "negatives": 2794, + "auroc": 0.8320060844667144, + "auprc": 0.014922933901946768, + "brier": 0.0028391122829296584, + "calibration": { + "observed_rate": 0.0028551034975017845, + "mean_prediction": 0.0017752122422462825, + "calibration_in_the_large": -0.001079891255255502, + "expected_calibration_error_10bin": 0.001079891255255502, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 8, + "negatives": 2794, + "auroc": 0.8304849677881174, + "auprc": 0.014370989125117074, + "brier": 0.0028398893118930743, + "calibration": { + "observed_rate": 0.0028551034975017845, + "mean_prediction": 0.0019970943980895197, + "calibration_in_the_large": -0.0008580090994122647, + "expected_calibration_error_10bin": 0.0008580090994122647, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 8, + "negatives": 2794, + "auroc": 0.829277022190408, + "auprc": 0.014227165659774, + "brier": 0.0028398538445547857, + "calibration": { + "observed_rate": 0.0028551034975017845, + "mean_prediction": 0.0021697686143124753, + "calibration_in_the_large": -0.0006853348831893091, + "expected_calibration_error_10bin": 0.0006853348831893091, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 9, + "negatives": 2793, + "auroc": 0.839161395552373, + "auprc": 0.016063121449044544, + "brier": 0.0031920869539433026, + "calibration": { + "observed_rate": 0.0032119914346895075, + "mean_prediction": 0.0024072020576696206, + "calibration_in_the_large": -0.0008047893770198869, + "expected_calibration_error_10bin": 0.0008047893770198869, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 9, + "negatives": 2793, + "auroc": 0.839161395552373, + "auprc": 0.01606340593448037, + "brier": 0.0031921240605519902, + "calibration": { + "observed_rate": 0.0032119914346895075, + "mean_prediction": 0.0024146652023210803, + "calibration_in_the_large": -0.0007973262323684271, + "expected_calibration_error_10bin": 0.0007973262323684271, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + } + ], + "reason": null + }, + "I63": { + "time_averaged_auroc": 0.7330514346484345, + "time_averaged_auprc": 0.013669791708424707, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2735, + "positives": 4, + "negatives": 2731, + "auroc": 0.7505492493592091, + "auprc": 0.00424389174663757, + "brier": 0.0014612570302761493, + "calibration": { + "observed_rate": 0.0014625228519195613, + "mean_prediction": 0.0014314530054394823, + "calibration_in_the_large": -3.106984648007906e-05, + "expected_calibration_error_10bin": 3.106984648007906e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9620119591980303 + }, + { + "valid": 2735, + "positives": 6, + "negatives": 2729, + "auroc": 0.6754000244289727, + "auprc": 0.004070566991719346, + "brier": 0.0021956509862698214, + "calibration": { + "observed_rate": 0.0021937842778793418, + "mean_prediction": 0.002033590560973072, + "calibration_in_the_large": -0.0001601937169062699, + "expected_calibration_error_10bin": 0.0001601937169062699, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9620119591980303 + }, + { + "valid": 2735, + "positives": 8, + "negatives": 2727, + "auroc": 0.7508250825082509, + "auprc": 0.018269519739497503, + "brier": 0.0029095047161065432, + "calibration": { + "observed_rate": 0.0029250457038391227, + "mean_prediction": 0.0026855190962943453, + "calibration_in_the_large": -0.0002395266075447774, + "expected_calibration_error_10bin": 0.0002395266075447774, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9620119591980303 + }, + { + "valid": 2735, + "positives": 9, + "negatives": 2726, + "auroc": 0.722915138175593, + "auprc": 0.015392630936256915, + "brier": 0.0032766202952072307, + "calibration": { + "observed_rate": 0.0032906764168190127, + "mean_prediction": 0.003119518097840808, + "calibration_in_the_large": -0.00017115831897820477, + "expected_calibration_error_10bin": 0.00017115831897820477, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9620119591980303 + }, + { + "valid": 2735, + "positives": 10, + "negatives": 2725, + "auroc": 0.7240366972477065, + "auprc": 0.014885411967320118, + "brier": 0.0036429793395921822, + "calibration": { + "observed_rate": 0.003656307129798903, + "mean_prediction": 0.003531766925466541, + "calibration_in_the_large": -0.00012454020433236204, + "expected_calibration_error_10bin": 0.00012454020433236204, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9620119591980303 + }, + { + "valid": 2735, + "positives": 11, + "negatives": 2724, + "auroc": 0.7444600186890936, + "auprc": 0.015495155700892228, + "brier": 0.004002492105406266, + "calibration": { + "observed_rate": 0.0040219378427787935, + "mean_prediction": 0.0037583422952932725, + "calibration_in_the_large": -0.00026359554748552104, + "expected_calibration_error_10bin": 0.00026359554748552104, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9620119591980303 + }, + { + "valid": 2735, + "positives": 11, + "negatives": 2724, + "auroc": 0.7450941129355226, + "auprc": 0.015053599859820533, + "brier": 0.004005537621871089, + "calibration": { + "observed_rate": 0.0040219378427787935, + "mean_prediction": 0.004046267207448404, + "calibration_in_the_large": 2.4329364669610498e-05, + "expected_calibration_error_10bin": 2.4329364669610498e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9620119591980303 + }, + { + "valid": 2735, + "positives": 12, + "negatives": 2723, + "auroc": 0.7596401028277635, + "auprc": 0.015977139050191387, + "brier": 0.004364934680290231, + "calibration": { + "observed_rate": 0.0043875685557586835, + "mean_prediction": 0.004249861760231389, + "calibration_in_the_large": -0.00013770679552729467, + "expected_calibration_error_10bin": 0.00013770679552729467, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9620119591980303 + }, + { + "valid": 2735, + "positives": 14, + "negatives": 2721, + "auroc": 0.7499081220139655, + "auprc": 0.015481272904110704, + "brier": 0.005092611214873918, + "calibration": { + "observed_rate": 0.005118829981718464, + "mean_prediction": 0.004628090777600306, + "calibration_in_the_large": -0.0004907392041181586, + "expected_calibration_error_10bin": 0.0004907392041181586, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9620119591980303 + }, + { + "valid": 2735, + "positives": 14, + "negatives": 2721, + "auroc": 0.75129941723106, + "auprc": 0.015323706960289177, + "brier": 0.005093629329451391, + "calibration": { + "observed_rate": 0.005118829981718464, + "mean_prediction": 0.004800049846190504, + "calibration_in_the_large": -0.00031878013552796066, + "expected_calibration_error_10bin": 0.00031878013552796066, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9620119591980303 + }, + { + "valid": 2735, + "positives": 15, + "negatives": 2720, + "auroc": 0.7432107843137254, + "auprc": 0.014904534278211997, + "brier": 0.005460118217589707, + "calibration": { + "observed_rate": 0.005484460694698354, + "mean_prediction": 0.005122174054006574, + "calibration_in_the_large": -0.00036228664069178074, + "expected_calibration_error_10bin": 0.00036228664069178074, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9620119591980303 + }, + { + "valid": 2735, + "positives": 16, + "negatives": 2719, + "auroc": 0.7067625965428467, + "auprc": 0.014427227133490813, + "brier": 0.0058269101604874985, + "calibration": { + "observed_rate": 0.005850091407678245, + "mean_prediction": 0.00526837127214473, + "calibration_in_the_large": -0.000581720135533515, + "expected_calibration_error_10bin": 0.000581720135533515, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9620119591980303 + }, + { + "valid": 2735, + "positives": 16, + "negatives": 2719, + "auroc": 0.7055673041559397, + "auprc": 0.014182634941082867, + "brier": 0.005829171568027225, + "calibration": { + "observed_rate": 0.005850091407678245, + "mean_prediction": 0.005405605259542762, + "calibration_in_the_large": -0.00044448614813548306, + "expected_calibration_error_10bin": 0.00044448614813548306, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9620119591980303 + } + ], + "reason": null + }, + "I65": { + "time_averaged_auroc": 0.6965863569878271, + "time_averaged_auprc": 0.007950898414668991, + "valid_timepoint_cells": 12, + "timepoints": [ + { + "valid": 2774, + "positives": 0, + "negatives": 2774, + "auroc": null, + "auprc": null, + "brier": 2.470382386593822e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0008681682633204183, + "calibration_in_the_large": 0.0008681682633204183, + "expected_calibration_error_10bin": 0.0008681682633204183, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 2, + "negatives": 2772, + "auroc": 0.6170634920634921, + "auprc": 0.0020385740571594985, + "brier": 0.0007247431324885318, + "calibration": { + "observed_rate": 0.0007209805335255948, + "mean_prediction": 0.0014310174625057814, + "calibration_in_the_large": 0.0007100369289801867, + "expected_calibration_error_10bin": 0.0007100369289801867, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 2, + "negatives": 2772, + "auroc": 0.601010101010101, + "auprc": 0.0018211120514603813, + "brier": 0.000730822157916741, + "calibration": { + "observed_rate": 0.0007209805335255948, + "mean_prediction": 0.0020058576103454775, + "calibration_in_the_large": 0.0012848770768198827, + "expected_calibration_error_10bin": 0.0012848770768198827, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 3, + "negatives": 2771, + "auroc": 0.7189943462047396, + "auprc": 0.011116402766299889, + "brier": 0.0010866781560392798, + "calibration": { + "observed_rate": 0.0010814708002883922, + "mean_prediction": 0.002590281665066231, + "calibration_in_the_large": 0.001508810864777839, + "expected_calibration_error_10bin": 0.001508810864777839, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 3, + "negatives": 2771, + "auroc": 0.7163478888487911, + "auprc": 0.011288454045648816, + "brier": 0.0010977043675136854, + "calibration": { + "observed_rate": 0.0010814708002883922, + "mean_prediction": 0.003444901921802188, + "calibration_in_the_large": 0.002363431121513796, + "expected_calibration_error_10bin": 0.002363431121513796, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 5, + "negatives": 2769, + "auroc": 0.7110148067894547, + "auprc": 0.008968079522667287, + "brier": 0.0018163552140479918, + "calibration": { + "observed_rate": 0.001802451333813987, + "mean_prediction": 0.0036937544282327397, + "calibration_in_the_large": 0.0018913030944187528, + "expected_calibration_error_10bin": 0.0018913030944187528, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 5, + "negatives": 2769, + "auroc": 0.7170097508125677, + "auprc": 0.00923156133078778, + "brier": 0.0018244647637486874, + "calibration": { + "observed_rate": 0.001802451333813987, + "mean_prediction": 0.004217262123336134, + "calibration_in_the_large": 0.002414810789522147, + "expected_calibration_error_10bin": 0.002414810789522147, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 5, + "negatives": 2769, + "auroc": 0.7145539906103286, + "auprc": 0.009200407185788649, + "brier": 0.0018280281023914545, + "calibration": { + "observed_rate": 0.001802451333813987, + "mean_prediction": 0.004440008881211248, + "calibration_in_the_large": 0.0026375575473972608, + "expected_calibration_error_10bin": 0.0026375575473972608, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 6, + "negatives": 2768, + "auroc": 0.7039378612716763, + "auprc": 0.00844037299697149, + "brier": 0.002191168400052638, + "calibration": { + "observed_rate": 0.0021629416005767843, + "mean_prediction": 0.004710971642050315, + "calibration_in_the_large": 0.002548030041473531, + "expected_calibration_error_10bin": 0.002548030041473531, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 6, + "negatives": 2768, + "auroc": 0.7084537572254336, + "auprc": 0.008398151821117266, + "brier": 0.0021977478180809336, + "calibration": { + "observed_rate": 0.0021629416005767843, + "mean_prediction": 0.005098527384153348, + "calibration_in_the_large": 0.002935585783576564, + "expected_calibration_error_10bin": 0.002935585783576564, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 6, + "negatives": 2768, + "auroc": 0.7174253371868978, + "auprc": 0.008458491420279072, + "brier": 0.002206327717123904, + "calibration": { + "observed_rate": 0.0021629416005767843, + "mean_prediction": 0.005658262753685683, + "calibration_in_the_large": 0.003495321153108899, + "expected_calibration_error_10bin": 0.003495321153108899, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 6, + "negatives": 2768, + "auroc": 0.7166425818882466, + "auprc": 0.00822547856777683, + "brier": 0.002211777626637214, + "calibration": { + "observed_rate": 0.0021629416005767843, + "mean_prediction": 0.0058613890883408275, + "calibration_in_the_large": 0.0036984474877640432, + "expected_calibration_error_10bin": 0.0036984474877640432, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 6, + "negatives": 2768, + "auroc": 0.7165823699421965, + "auprc": 0.008223695210070941, + "brier": 0.002212001160322597, + "calibration": { + "observed_rate": 0.0021629416005767843, + "mean_prediction": 0.005871951179420765, + "calibration_in_the_large": 0.0037090095788439807, + "expected_calibration_error_10bin": 0.0037090095788439807, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + } + ], + "reason": null + }, + "I67": { + "time_averaged_auroc": 0.8297365629953146, + "time_averaged_auprc": 0.005544128314049495, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2773, + "positives": 2, + "negatives": 2771, + "auroc": 0.9321544568747745, + "auprc": 0.007697114292206316, + "brier": 0.000719876663309124, + "calibration": { + "observed_rate": 0.000721240533717995, + "mean_prediction": 0.0006020982763536388, + "calibration_in_the_large": -0.0001191422573643562, + "expected_calibration_error_10bin": 0.0001191422573643562, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + { + "valid": 2773, + "positives": 2, + "negatives": 2771, + "auroc": 0.9148321905449296, + "auprc": 0.0062014316885503195, + "brier": 0.0007224879668206305, + "calibration": { + "observed_rate": 0.000721240533717995, + "mean_prediction": 0.001109765105201507, + "calibration_in_the_large": 0.000388524571483512, + "expected_calibration_error_10bin": 0.000388524571483512, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + { + "valid": 2773, + "positives": 2, + "negatives": 2771, + "auroc": 0.9133886683507759, + "auprc": 0.006046863189720333, + "brier": 0.0007254994157115573, + "calibration": { + "observed_rate": 0.000721240533717995, + "mean_prediction": 0.0014984070440526493, + "calibration_in_the_large": 0.0007771665103346543, + "expected_calibration_error_10bin": 0.0007771665103346543, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + { + "valid": 2773, + "positives": 2, + "negatives": 2771, + "auroc": 0.9105016239624685, + "auprc": 0.005841432565570497, + "brier": 0.0007343731447321421, + "calibration": { + "observed_rate": 0.000721240533717995, + "mean_prediction": 0.0020546516384748388, + "calibration_in_the_large": 0.0013334111047568439, + "expected_calibration_error_10bin": 0.0013334111047568439, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + { + "valid": 2773, + "positives": 2, + "negatives": 2771, + "auroc": 0.9094189823168531, + "auprc": 0.005780536670279502, + "brier": 0.0007418806147634967, + "calibration": { + "observed_rate": 0.000721240533717995, + "mean_prediction": 0.0024823166399450193, + "calibration_in_the_large": 0.0017610761062270244, + "expected_calibration_error_10bin": 0.0017610761062270244, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + { + "valid": 2773, + "positives": 3, + "negatives": 2770, + "auroc": 0.7711191335740072, + "auprc": 0.004574401633225163, + "brier": 0.0011032251182159839, + "calibration": { + "observed_rate": 0.0010818608005769925, + "mean_prediction": 0.002550302801046594, + "calibration_in_the_large": 0.0014684420004696015, + "expected_calibration_error_10bin": 0.0014684420004696015, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + { + "valid": 2773, + "positives": 3, + "negatives": 2770, + "auroc": 0.7681107099879663, + "auprc": 0.00456339010045968, + "brier": 0.001109402616117291, + "calibration": { + "observed_rate": 0.0010818608005769925, + "mean_prediction": 0.002857410960246066, + "calibration_in_the_large": 0.0017755501596690736, + "expected_calibration_error_10bin": 0.0017755501596690736, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + { + "valid": 2773, + "positives": 3, + "negatives": 2770, + "auroc": 0.7684717208182912, + "auprc": 0.004600210630068339, + "brier": 0.0011159579578508343, + "calibration": { + "observed_rate": 0.0010818608005769925, + "mean_prediction": 0.0031348846749053045, + "calibration_in_the_large": 0.002053023874328312, + "expected_calibration_error_10bin": 0.002053023874328312, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + { + "valid": 2773, + "positives": 3, + "negatives": 2770, + "auroc": 0.7669073405535499, + "auprc": 0.004551284169514056, + "brier": 0.001117913598545997, + "calibration": { + "observed_rate": 0.0010818608005769925, + "mean_prediction": 0.003213923339203688, + "calibration_in_the_large": 0.002132062538626696, + "expected_calibration_error_10bin": 0.002132062538626696, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + { + "valid": 2773, + "positives": 3, + "negatives": 2770, + "auroc": 0.7663056558363418, + "auprc": 0.004550827423167848, + "brier": 0.0011214157703826084, + "calibration": { + "observed_rate": 0.0010818608005769925, + "mean_prediction": 0.003352720825801596, + "calibration_in_the_large": 0.002270860025224603, + "expected_calibration_error_10bin": 0.002270860025224603, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + { + "valid": 2773, + "positives": 4, + "negatives": 2769, + "auroc": 0.7701336222462983, + "auprc": 0.004848014256041672, + "brier": 0.0014865704675296448, + "calibration": { + "observed_rate": 0.00144248106743599, + "mean_prediction": 0.0035984619758637052, + "calibration_in_the_large": 0.002155980908427715, + "expected_calibration_error_10bin": 0.002155980908427715, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + { + "valid": 2773, + "positives": 5, + "negatives": 2768, + "auroc": 0.7976156069364162, + "auprc": 0.006401491411346115, + "brier": 0.0018451640646491687, + "calibration": { + "observed_rate": 0.0018031013342949874, + "mean_prediction": 0.003795260629153176, + "calibration_in_the_large": 0.0019921592948581885, + "expected_calibration_error_10bin": 0.0019921592948581885, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + { + "valid": 2773, + "positives": 5, + "negatives": 2768, + "auroc": 0.7976156069364162, + "auprc": 0.006416670052493601, + "brier": 0.0018454156518348565, + "calibration": { + "observed_rate": 0.0018031013342949874, + "mean_prediction": 0.0038094444661212873, + "calibration_in_the_large": 0.0020063431318262997, + "expected_calibration_error_10bin": 0.0020063431318262997, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + } + ], + "reason": null + }, + "I69": { + "time_averaged_auroc": 0.7330893779552063, + "time_averaged_auprc": 0.026368060073505027, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2752, + "positives": 4, + "negatives": 2748, + "auroc": 0.7796579330422125, + "auprc": 0.06735651826266936, + "brier": 0.0014386502889124676, + "calibration": { + "observed_rate": 0.0014534883720930232, + "mean_prediction": 0.0018545841758727882, + "calibration_in_the_large": 0.00040109580377976494, + "expected_calibration_error_10bin": 0.00040109580377976494, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9679915582131551 + }, + { + "valid": 2752, + "positives": 9, + "negatives": 2743, + "auroc": 0.712439745615101, + "auprc": 0.026303201124379727, + "brier": 0.0032475939846352167, + "calibration": { + "observed_rate": 0.0032703488372093025, + "mean_prediction": 0.0028740593398215906, + "calibration_in_the_large": -0.00039628949738771194, + "expected_calibration_error_10bin": 0.00039628949738771194, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9679915582131551 + }, + { + "valid": 2752, + "positives": 12, + "negatives": 2740, + "auroc": 0.7299574209245742, + "auprc": 0.0239949027286208, + "brier": 0.0043304745357911, + "calibration": { + "observed_rate": 0.00436046511627907, + "mean_prediction": 0.00343822985743317, + "calibration_in_the_large": -0.0009222352588458996, + "expected_calibration_error_10bin": 0.0009959661069690675, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9679915582131551 + }, + { + "valid": 2752, + "positives": 14, + "negatives": 2738, + "auroc": 0.7201815715329228, + "auprc": 0.02065040400097815, + "brier": 0.0050608136791099, + "calibration": { + "observed_rate": 0.005087209302325582, + "mean_prediction": 0.004033326018003436, + "calibration_in_the_large": -0.001053883284322146, + "expected_calibration_error_10bin": 0.0011387605529716103, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9679915582131551 + }, + { + "valid": 2752, + "positives": 14, + "negatives": 2738, + "auroc": 0.7193989356151518, + "auprc": 0.02047373542594565, + "brier": 0.0050659963965339755, + "calibration": { + "observed_rate": 0.005087209302325582, + "mean_prediction": 0.004328447898230015, + "calibration_in_the_large": -0.0007587614040955671, + "expected_calibration_error_10bin": 0.0008499072479694501, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9679915582131551 + }, + { + "valid": 2752, + "positives": 14, + "negatives": 2738, + "auroc": 0.7167118856308046, + "auprc": 0.020261941119503468, + "brier": 0.00507455862463531, + "calibration": { + "observed_rate": 0.005087209302325582, + "mean_prediction": 0.0047096651522676855, + "calibration_in_the_large": -0.0003775441500578963, + "expected_calibration_error_10bin": 0.00047465391296631107, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9679915582131551 + }, + { + "valid": 2752, + "positives": 15, + "negatives": 2737, + "auroc": 0.7133114115211302, + "auprc": 0.01981949093526828, + "brier": 0.0054415146174349935, + "calibration": { + "observed_rate": 0.005450581395348837, + "mean_prediction": 0.0049743112901250025, + "calibration_in_the_large": -0.00047627010522383485, + "expected_calibration_error_10bin": 0.0006530078778712132, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9679915582131551 + }, + { + "valid": 2752, + "positives": 15, + "negatives": 2737, + "auroc": 0.7130921933990988, + "auprc": 0.019758521394878513, + "brier": 0.005446845209783887, + "calibration": { + "observed_rate": 0.005450581395348837, + "mean_prediction": 0.0051927490371280775, + "calibration_in_the_large": -0.00025783235822075985, + "expected_calibration_error_10bin": 0.0005177346269122246, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9679915582131551 + }, + { + "valid": 2752, + "positives": 16, + "negatives": 2736, + "auroc": 0.7297377558479532, + "auprc": 0.021709197950174234, + "brier": 0.005786949972112701, + "calibration": { + "observed_rate": 0.005813953488372093, + "mean_prediction": 0.0054113601144015165, + "calibration_in_the_large": -0.00040259337397057643, + "expected_calibration_error_10bin": 0.0006696447779660936, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9679915582131551 + }, + { + "valid": 2752, + "positives": 17, + "negatives": 2735, + "auroc": 0.7316485643617593, + "auprc": 0.02076226645625337, + "brier": 0.006151209165196731, + "calibration": { + "observed_rate": 0.0061773255813953485, + "mean_prediction": 0.005627762443664707, + "calibration_in_the_large": -0.0005495631377306414, + "expected_calibration_error_10bin": 0.0009056543241348695, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9679915582131551 + }, + { + "valid": 2752, + "positives": 19, + "negatives": 2733, + "auroc": 0.7543089336953801, + "auprc": 0.027844923082688905, + "brier": 0.0068319780692275185, + "calibration": { + "observed_rate": 0.006904069767441861, + "mean_prediction": 0.005840308347820956, + "calibration_in_the_large": -0.0010637614196209047, + "expected_calibration_error_10bin": 0.0014368429078524916, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9679915582131551 + }, + { + "valid": 2752, + "positives": 19, + "negatives": 2733, + "auroc": 0.7548866678221349, + "auprc": 0.02692754317146667, + "brier": 0.006841016491999985, + "calibration": { + "observed_rate": 0.006904069767441861, + "mean_prediction": 0.0062350398348607495, + "calibration_in_the_large": -0.0006690299325811111, + "expected_calibration_error_10bin": 0.0012160420193655346, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9679915582131551 + }, + { + "valid": 2752, + "positives": 19, + "negatives": 2733, + "auroc": 0.7548288944094594, + "auprc": 0.026922135302738244, + "brier": 0.006841196305444108, + "calibration": { + "observed_rate": 0.006904069767441861, + "mean_prediction": 0.006244493571757815, + "calibration_in_the_large": -0.0006595761956840456, + "expected_calibration_error_10bin": 0.0012072524075134935, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9679915582131551 + } + ], + "reason": null + }, + "I70": { + "time_averaged_auroc": 0.8468226913805876, + "time_averaged_auprc": 0.03473308858095122, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2771, + "positives": 2, + "negatives": 2769, + "auroc": 0.9864572047670639, + "auprc": 0.03785714285714285, + "brier": 0.0007151637336427864, + "calibration": { + "observed_rate": 0.0007217610970768675, + "mean_prediction": 0.0006874515155462526, + "calibration_in_the_large": -3.430958153061495e-05, + "expected_calibration_error_10bin": 3.430958153061495e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9746746394653535 + }, + { + "valid": 2771, + "positives": 2, + "negatives": 2769, + "auroc": 0.9868183459732756, + "auprc": 0.03851540616246499, + "brier": 0.0007147073529035631, + "calibration": { + "observed_rate": 0.0007217610970768675, + "mean_prediction": 0.001542666416822376, + "calibration_in_the_large": 0.0008209053197455084, + "expected_calibration_error_10bin": 0.0008209053197455084, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9746746394653535 + }, + { + "valid": 2771, + "positives": 5, + "negatives": 2766, + "auroc": 0.8428778018799711, + "auprc": 0.02327580820703746, + "brier": 0.0017934067934472554, + "calibration": { + "observed_rate": 0.001804402742692169, + "mean_prediction": 0.0019629912758269592, + "calibration_in_the_large": 0.0001585885331347903, + "expected_calibration_error_10bin": 0.0001585885331347903, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9746746394653535 + }, + { + "valid": 2771, + "positives": 5, + "negatives": 2766, + "auroc": 0.8399132321041215, + "auprc": 0.02855805235693698, + "brier": 0.0017899694818599055, + "calibration": { + "observed_rate": 0.001804402742692169, + "mean_prediction": 0.0021929735760585095, + "calibration_in_the_large": 0.00038857083336634054, + "expected_calibration_error_10bin": 0.00038857083336634065, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9746746394653535 + }, + { + "valid": 2771, + "positives": 5, + "negatives": 2766, + "auroc": 0.8389732465654375, + "auprc": 0.03276027142127293, + "brier": 0.001791189448862068, + "calibration": { + "observed_rate": 0.001804402742692169, + "mean_prediction": 0.0025674184739338996, + "calibration_in_the_large": 0.0007630157312417307, + "expected_calibration_error_10bin": 0.0007630157312417305, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9746746394653535 + }, + { + "valid": 2771, + "positives": 7, + "negatives": 2764, + "auroc": 0.7878333677899525, + "auprc": 0.029764457257772693, + "brier": 0.002502934122873639, + "calibration": { + "observed_rate": 0.0025261638397690365, + "mean_prediction": 0.0028616439381978233, + "calibration_in_the_large": 0.0003354800984287868, + "expected_calibration_error_10bin": 0.00033548009842878686, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9746746394653535 + }, + { + "valid": 2771, + "positives": 7, + "negatives": 2764, + "auroc": 0.7864895596444077, + "auprc": 0.02992953930249372, + "brier": 0.0025065859311820086, + "calibration": { + "observed_rate": 0.0025261638397690365, + "mean_prediction": 0.0032066482049541295, + "calibration_in_the_large": 0.000680484365185093, + "expected_calibration_error_10bin": 0.000680484365185093, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9746746394653535 + }, + { + "valid": 2771, + "positives": 10, + "negatives": 2761, + "auroc": 0.8161897863093083, + "auprc": 0.03558528362093672, + "brier": 0.0035587264727020207, + "calibration": { + "observed_rate": 0.003608805485384338, + "mean_prediction": 0.0034762001005454323, + "calibration_in_the_large": -0.00013260538483890558, + "expected_calibration_error_10bin": 0.0003856329096528021, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9746746394653535 + }, + { + "valid": 2771, + "positives": 12, + "negatives": 2759, + "auroc": 0.8255708590068865, + "auprc": 0.03636503420025636, + "brier": 0.004265179591329044, + "calibration": { + "observed_rate": 0.004330566582461205, + "mean_prediction": 0.0037102718279631653, + "calibration_in_the_large": -0.00062029475449804, + "expected_calibration_error_10bin": 0.0009723741642181455, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9746746394653535 + }, + { + "valid": 2771, + "positives": 12, + "negatives": 2759, + "auroc": 0.8252688172043011, + "auprc": 0.038091152570231136, + "brier": 0.004268435576447333, + "calibration": { + "observed_rate": 0.004330566582461205, + "mean_prediction": 0.004039135818586067, + "calibration_in_the_large": -0.00029143076387513813, + "expected_calibration_error_10bin": 0.0007579607657570605, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9746746394653535 + }, + { + "valid": 2771, + "positives": 12, + "negatives": 2759, + "auroc": 0.8240606499939591, + "auprc": 0.03806047567560506, + "brier": 0.004269754136859689, + "calibration": { + "observed_rate": 0.004330566582461205, + "mean_prediction": 0.004258637471758103, + "calibration_in_the_large": -7.192911070310216e-05, + "expected_calibration_error_10bin": 0.0005571395061733054, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9746746394653535 + }, + { + "valid": 2771, + "positives": 12, + "negatives": 2759, + "auroc": 0.8241210583544762, + "auprc": 0.041335502211905704, + "brier": 0.004268721739763721, + "calibration": { + "observed_rate": 0.004330566582461205, + "mean_prediction": 0.0043816680075928, + "calibration_in_the_large": 5.1101425131594436e-05, + "expected_calibration_error_10bin": 0.0004493290518737628, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9746746394653535 + }, + { + "valid": 2771, + "positives": 12, + "negatives": 2759, + "auroc": 0.8241210583544762, + "auprc": 0.041432025708309256, + "brier": 0.004267921612631884, + "calibration": { + "observed_rate": 0.004330566582461205, + "mean_prediction": 0.004397469812505889, + "calibration_in_the_large": 6.690323004468392e-05, + "expected_calibration_error_10bin": 0.0004350257466637113, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9746746394653535 + } + ], + "reason": null + }, + "I71": { + "time_averaged_auroc": 0.736172740670968, + "time_averaged_auprc": 0.015088006015910439, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2769, + "positives": 1, + "negatives": 2768, + "auroc": 0.986271676300578, + "auprc": 0.02564102564102564, + "brier": 0.00035958304406346643, + "calibration": { + "observed_rate": 0.00036114120621162876, + "mean_prediction": 0.0008526622188592001, + "calibration_in_the_large": 0.0004915210126475713, + "expected_calibration_error_10bin": 0.0004915210126475713, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.97397115722828 + }, + { + "valid": 2769, + "positives": 3, + "negatives": 2766, + "auroc": 0.6920944805977344, + "auprc": 0.01859648023177263, + "brier": 0.0010807339758261481, + "calibration": { + "observed_rate": 0.0010834236186348862, + "mean_prediction": 0.001432742272702429, + "calibration_in_the_large": 0.0003493186540675429, + "expected_calibration_error_10bin": 0.0003493186540675429, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.97397115722828 + }, + { + "valid": 2769, + "positives": 3, + "negatives": 2766, + "auroc": 0.6994456495541094, + "auprc": 0.018783279077396724, + "brier": 0.0010815330799818143, + "calibration": { + "observed_rate": 0.0010834236186348862, + "mean_prediction": 0.0017426003473848901, + "calibration_in_the_large": 0.000659176728750004, + "expected_calibration_error_10bin": 0.000659176728750004, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.97397115722828 + }, + { + "valid": 2769, + "positives": 3, + "negatives": 2766, + "auroc": 0.697879006989636, + "auprc": 0.02061303091928794, + "brier": 0.0010826893187140174, + "calibration": { + "observed_rate": 0.0010834236186348862, + "mean_prediction": 0.0020111547407412928, + "calibration_in_the_large": 0.0009277311221064066, + "expected_calibration_error_10bin": 0.0009277311221064066, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.97397115722828 + }, + { + "valid": 2769, + "positives": 3, + "negatives": 2766, + "auroc": 0.6967944082911545, + "auprc": 0.01718499453585399, + "brier": 0.0010846371267519432, + "calibration": { + "observed_rate": 0.0010834236186348862, + "mean_prediction": 0.0022967887697610983, + "calibration_in_the_large": 0.0012133651511262121, + "expected_calibration_error_10bin": 0.0012133651511262121, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.97397115722828 + }, + { + "valid": 2769, + "positives": 4, + "negatives": 2765, + "auroc": 0.7116636528028933, + "auprc": 0.014123299871975848, + "brier": 0.001445538377471444, + "calibration": { + "observed_rate": 0.001444564824846515, + "mean_prediction": 0.0026247533238622387, + "calibration_in_the_large": 0.0011801884990157237, + "expected_calibration_error_10bin": 0.0011801884990157237, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.97397115722828 + }, + { + "valid": 2769, + "positives": 4, + "negatives": 2765, + "auroc": 0.7144665461121157, + "auprc": 0.013672281458700627, + "brier": 0.00144786618989833, + "calibration": { + "observed_rate": 0.001444564824846515, + "mean_prediction": 0.0029068069478214668, + "calibration_in_the_large": 0.0014622421229749517, + "expected_calibration_error_10bin": 0.0014622421229749517, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.97397115722828 + }, + { + "valid": 2769, + "positives": 4, + "negatives": 2765, + "auroc": 0.7141048824593128, + "auprc": 0.013228540768152042, + "brier": 0.0014489833038800874, + "calibration": { + "observed_rate": 0.001444564824846515, + "mean_prediction": 0.0030431430848020125, + "calibration_in_the_large": 0.0015985782599554975, + "expected_calibration_error_10bin": 0.0015985782599554975, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.97397115722828 + }, + { + "valid": 2769, + "positives": 5, + "negatives": 2764, + "auroc": 0.73205499276411, + "auprc": 0.011189730182682048, + "brier": 0.0018094163817533831, + "calibration": { + "observed_rate": 0.0018057060310581437, + "mean_prediction": 0.003388057164624064, + "calibration_in_the_large": 0.0015823511335659201, + "expected_calibration_error_10bin": 0.0015823511335659201, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.97397115722828 + }, + { + "valid": 2769, + "positives": 5, + "negatives": 2764, + "auroc": 0.7319102749638206, + "auprc": 0.011781612501828902, + "brier": 0.0018109776692672955, + "calibration": { + "observed_rate": 0.0018057060310581437, + "mean_prediction": 0.003559787610399936, + "calibration_in_the_large": 0.0017540815793417922, + "expected_calibration_error_10bin": 0.0017540815793417922, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.97397115722828 + }, + { + "valid": 2769, + "positives": 5, + "negatives": 2764, + "auroc": 0.7312590448625181, + "auprc": 0.010443240422665473, + "brier": 0.0018135681896256418, + "calibration": { + "observed_rate": 0.0018057060310581437, + "mean_prediction": 0.0037760607760139605, + "calibration_in_the_large": 0.0019703547449558168, + "expected_calibration_error_10bin": 0.0019703547449558168, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.97397115722828 + }, + { + "valid": 2769, + "positives": 5, + "negatives": 2764, + "auroc": 0.7310419681620839, + "auprc": 0.010440547214667247, + "brier": 0.0018156734139374204, + "calibration": { + "observed_rate": 0.0018057060310581437, + "mean_prediction": 0.003968467439294762, + "calibration_in_the_large": 0.002162761408236618, + "expected_calibration_error_10bin": 0.002162761408236618, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.97397115722828 + }, + { + "valid": 2769, + "positives": 5, + "negatives": 2764, + "auroc": 0.7312590448625181, + "auprc": 0.010446015380826592, + "brier": 0.0018159909478774482, + "calibration": { + "observed_rate": 0.0018057060310581437, + "mean_prediction": 0.003990563397997314, + "calibration_in_the_large": 0.00218485736693917, + "expected_calibration_error_10bin": 0.00218485736693917, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.97397115722828 + } + ], + "reason": null + }, + "I72": { + "time_averaged_auroc": 0.7063259961362823, + "time_averaged_auprc": 0.010447605005042153, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2818, + "positives": 2, + "negatives": 2816, + "auroc": 0.5640980113636364, + "auprc": 0.0024374361409719523, + "brier": 0.0007094893212420486, + "calibration": { + "observed_rate": 0.0007097232079489, + "mean_prediction": 0.00041443393006735383, + "calibration_in_the_large": -0.0002952892778815461, + "expected_calibration_error_10bin": 0.0002952892778815461, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 2, + "negatives": 2816, + "auroc": 0.5672940340909091, + "auprc": 0.002396279638195525, + "brier": 0.0007102502131304753, + "calibration": { + "observed_rate": 0.0007097232079489, + "mean_prediction": 0.0007490455455873028, + "calibration_in_the_large": 3.932233763840286e-05, + "expected_calibration_error_10bin": 3.932233763840286e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 3, + "negatives": 2815, + "auroc": 0.7002960331557134, + "auprc": 0.007147048414550257, + "brier": 0.0010624660439533277, + "calibration": { + "observed_rate": 0.0010645848119233499, + "mean_prediction": 0.0009511172561820089, + "calibration_in_the_large": -0.00011346755574134098, + "expected_calibration_error_10bin": 0.00011346755574134098, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.7719161038037682, + "auprc": 0.014938041042600917, + "brier": 0.0017659019246929306, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.0010182282094607059, + "calibration_in_the_large": -0.0007560798104115439, + "expected_calibration_error_10bin": 0.0007560798104115439, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.7704941343761109, + "auprc": 0.014606579264296187, + "brier": 0.001766016698680808, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.0011544188229847315, + "calibration_in_the_large": -0.0006198891968875182, + "expected_calibration_error_10bin": 0.0006198891968875182, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.7727692854603626, + "auprc": 0.014033510935653696, + "brier": 0.0017656638560108297, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.0013571111830326568, + "calibration_in_the_large": -0.00041719683683959295, + "expected_calibration_error_10bin": 0.00041719683683959295, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.7719161038037682, + "auprc": 0.013828334979311862, + "brier": 0.001765798289451834, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.0014412198124461313, + "calibration_in_the_large": -0.00033308820742611843, + "expected_calibration_error_10bin": 0.00033308820742611843, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.7132527264106211, + "auprc": 0.011470668306298214, + "brier": 0.002121089736632481, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.0015358960535832543, + "calibration_in_the_large": -0.0005932735702634455, + "expected_calibration_error_10bin": 0.0005932735702634455, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.7124229492650546, + "auprc": 0.0111792193297654, + "brier": 0.0021216122067557, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.0016374744333992497, + "calibration_in_the_large": -0.00049169519044745, + "expected_calibration_error_10bin": 0.00049169519044745, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.7105263157894737, + "auprc": 0.011052383168114825, + "brier": 0.002121734694704448, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.0017499722599315635, + "calibration_in_the_large": -0.00037919736391513626, + "expected_calibration_error_10bin": 0.00037919736391513626, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.7095187292555714, + "auprc": 0.011174575030325038, + "brier": 0.00212186543391543, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.0018959035379936908, + "calibration_in_the_large": -0.00023326608585300893, + "expected_calibration_error_10bin": 0.00023326608585300893, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.7089853010905642, + "auprc": 0.010813276419386196, + "brier": 0.00212253990916288, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.001986772627305349, + "calibration_in_the_large": -0.00014239699654135067, + "expected_calibration_error_10bin": 0.00014239699654135067, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.7087482219061166, + "auprc": 0.010741512396077936, + "brier": 0.00212256750502436, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.001990072412416783, + "calibration_in_the_large": -0.0001390972114299169, + "expected_calibration_error_10bin": 0.0001390972114299169, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + } + ], + "reason": null + }, + "I73": { + "time_averaged_auroc": 0.8511522027551823, + "time_averaged_auprc": 0.05591418667499604, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2734, + "positives": 1, + "negatives": 2733, + "auroc": 0.9802414928649835, + "auprc": 0.01818181818181818, + "brier": 0.0003740194212784487, + "calibration": { + "observed_rate": 0.000365764447695684, + "mean_prediction": 0.0014689567338033542, + "calibration_in_the_large": 0.0011031922861076703, + "expected_calibration_error_10bin": 0.0011031922861076703, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 1, + "negatives": 2733, + "auroc": 0.9824368825466521, + "auprc": 0.02040816326530612, + "brier": 0.0003968389267766797, + "calibration": { + "observed_rate": 0.000365764447695684, + "mean_prediction": 0.0023649450651287867, + "calibration_in_the_large": 0.0019991806174331026, + "expected_calibration_error_10bin": 0.001999180617433103, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 3, + "negatives": 2731, + "auroc": 0.6843647015745148, + "auprc": 0.011647623743315369, + "brier": 0.0011346087608299805, + "calibration": { + "observed_rate": 0.0010972933430870519, + "mean_prediction": 0.002802970674252552, + "calibration_in_the_large": 0.0017056773311655, + "expected_calibration_error_10bin": 0.0017056773311655, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 6, + "negatives": 2728, + "auroc": 0.8245356793743891, + "auprc": 0.03552164016035559, + "brier": 0.0021784681463361513, + "calibration": { + "observed_rate": 0.0021945866861741038, + "mean_prediction": 0.0032540137033017806, + "calibration_in_the_large": 0.0010594270171276768, + "expected_calibration_error_10bin": 0.0010594270171276766, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 6, + "negatives": 2728, + "auroc": 0.8263074291300098, + "auprc": 0.0369692747386787, + "brier": 0.0021919954805246556, + "calibration": { + "observed_rate": 0.0021945866861741038, + "mean_prediction": 0.003951177161052222, + "calibration_in_the_large": 0.0017565904748781183, + "expected_calibration_error_10bin": 0.001756590474878118, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 6, + "negatives": 2728, + "auroc": 0.8259408602150538, + "auprc": 0.03946470034715497, + "brier": 0.0022065947544279364, + "calibration": { + "observed_rate": 0.0021945866861741038, + "mean_prediction": 0.004462249053935625, + "calibration_in_the_large": 0.002267662367761521, + "expected_calibration_error_10bin": 0.002267662367761521, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 7, + "negatives": 2727, + "auroc": 0.8117240295458117, + "auprc": 0.03411490438435915, + "brier": 0.002581437972091296, + "calibration": { + "observed_rate": 0.002560351133869788, + "mean_prediction": 0.004822378981998721, + "calibration_in_the_large": 0.0022620278481289328, + "expected_calibration_error_10bin": 0.002262027848128933, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 8, + "negatives": 2726, + "auroc": 0.8342809977989728, + "auprc": 0.04531885132761875, + "brier": 0.002910463221450774, + "calibration": { + "observed_rate": 0.002926115581565472, + "mean_prediction": 0.00505210829018239, + "calibration_in_the_large": 0.002125992708616918, + "expected_calibration_error_10bin": 0.0021259927086169183, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 8, + "negatives": 2726, + "auroc": 0.8353815113719736, + "auprc": 0.04500657225636205, + "brier": 0.0029176708152469045, + "calibration": { + "observed_rate": 0.002926115581565472, + "mean_prediction": 0.005291224112317016, + "calibration_in_the_large": 0.0023651085307515437, + "expected_calibration_error_10bin": 0.0023651085307515437, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 10, + "negatives": 2724, + "auroc": 0.8648678414096916, + "auprc": 0.1113544163639181, + "brier": 0.003485500681614444, + "calibration": { + "observed_rate": 0.0036576444769568397, + "mean_prediction": 0.005585373900407947, + "calibration_in_the_large": 0.0019277294234511075, + "expected_calibration_error_10bin": 0.0023357457485408423, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 10, + "negatives": 2724, + "auroc": 0.8647577092511013, + "auprc": 0.11012008579869322, + "brier": 0.0034876569644601936, + "calibration": { + "observed_rate": 0.0036576444769568397, + "mean_prediction": 0.005825757590565327, + "calibration_in_the_large": 0.002168113113608487, + "expected_calibration_error_10bin": 0.0025652291030270474, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 10, + "negatives": 2724, + "auroc": 0.865014684287812, + "auprc": 0.10934354163030684, + "brier": 0.003491418236703848, + "calibration": { + "observed_rate": 0.0036576444769568397, + "mean_prediction": 0.006152796628754834, + "calibration_in_the_large": 0.0024951521517979944, + "expected_calibration_error_10bin": 0.0028742215051339457, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 10, + "negatives": 2724, + "auroc": 0.8651248164464024, + "auprc": 0.10943283457706157, + "brier": 0.0034917102362557444, + "calibration": { + "observed_rate": 0.0036576444769568397, + "mean_prediction": 0.006172249006341611, + "calibration_in_the_large": 0.002514604529384771, + "expected_calibration_error_10bin": 0.002893277895535142, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + } + ], + "reason": null + }, + "I74": { + "time_averaged_auroc": 0.7523116355712056, + "time_averaged_auprc": 0.010107049107485593, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2821, + "positives": 2, + "negatives": 2819, + "auroc": 0.7052146151117418, + "auprc": 0.014502762430939226, + "brier": 0.0007079825032272139, + "calibration": { + "observed_rate": 0.0007089684509039348, + "mean_prediction": 0.0002826809876780753, + "calibration_in_the_large": -0.0004262874632258595, + "expected_calibration_error_10bin": 0.0004262874632258595, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 3, + "negatives": 2818, + "auroc": 0.7550272060563047, + "auprc": 0.007112080623483836, + "brier": 0.001061687829516979, + "calibration": { + "observed_rate": 0.0010634526763559022, + "mean_prediction": 0.00042100127412014163, + "calibration_in_the_large": -0.0006424514022357606, + "expected_calibration_error_10bin": 0.0006424514022357606, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 4, + "negatives": 2817, + "auroc": 0.7176961306354278, + "auprc": 0.006490497483387215, + "brier": 0.001415436680546498, + "calibration": { + "observed_rate": 0.0014179369018078695, + "mean_prediction": 0.0005624558721430856, + "calibration_in_the_large": -0.0008554810296647839, + "expected_calibration_error_10bin": 0.0008554810296647839, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 4, + "negatives": 2817, + "auroc": 0.716986155484558, + "auprc": 0.00631806048479596, + "brier": 0.0014153628007565172, + "calibration": { + "observed_rate": 0.0014179369018078695, + "mean_prediction": 0.000607074252473619, + "calibration_in_the_large": -0.0008108626493342505, + "expected_calibration_error_10bin": 0.0008108626493342505, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 4, + "negatives": 2817, + "auroc": 0.7147674831380901, + "auprc": 0.006222826872580366, + "brier": 0.0014152870660292655, + "calibration": { + "observed_rate": 0.0014179369018078695, + "mean_prediction": 0.0006766609562194724, + "calibration_in_the_large": -0.0007412759455883972, + "expected_calibration_error_10bin": 0.0007412759455883972, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 4, + "negatives": 2817, + "auroc": 0.7171636492722755, + "auprc": 0.006212145101135457, + "brier": 0.0014152356599010977, + "calibration": { + "observed_rate": 0.0014179369018078695, + "mean_prediction": 0.000705960350729641, + "calibration_in_the_large": -0.0007119765510782285, + "expected_calibration_error_10bin": 0.0007119765510782285, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 5, + "negatives": 2816, + "auroc": 0.775, + "auprc": 0.01209733198810914, + "brier": 0.0017661738085393243, + "calibration": { + "observed_rate": 0.001772421127259837, + "mean_prediction": 0.0008118536149198257, + "calibration_in_the_large": -0.0009605675123400112, + "expected_calibration_error_10bin": 0.0009605675123400112, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 5, + "negatives": 2816, + "auroc": 0.7736505681818182, + "auprc": 0.01204747242191061, + "brier": 0.0017659110064907797, + "calibration": { + "observed_rate": 0.001772421127259837, + "mean_prediction": 0.0008854926171761545, + "calibration_in_the_large": -0.0008869285100836825, + "expected_calibration_error_10bin": 0.0008869285100836825, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 5, + "negatives": 2816, + "auroc": 0.7792613636363637, + "auprc": 0.012138426217219105, + "brier": 0.0017655405037541958, + "calibration": { + "observed_rate": 0.001772421127259837, + "mean_prediction": 0.0009634913935723931, + "calibration_in_the_large": -0.0008089297336874438, + "expected_calibration_error_10bin": 0.0008089297336874438, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 5, + "negatives": 2816, + "auroc": 0.7821732954545455, + "auprc": 0.012234965207865637, + "brier": 0.0017651550952404865, + "calibration": { + "observed_rate": 0.001772421127259837, + "mean_prediction": 0.0010355924343923477, + "calibration_in_the_large": -0.0007368286928674892, + "expected_calibration_error_10bin": 0.0007368286928674892, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 5, + "negatives": 2816, + "auroc": 0.78125, + "auprc": 0.012194474741893741, + "brier": 0.0017647327556898683, + "calibration": { + "observed_rate": 0.001772421127259837, + "mean_prediction": 0.0011418069476417235, + "calibration_in_the_large": -0.0006306141796181134, + "expected_calibration_error_10bin": 0.0006306141796181134, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 5, + "negatives": 2816, + "auroc": 0.7808238636363637, + "auprc": 0.011905850015860742, + "brier": 0.0017646813533406082, + "calibration": { + "observed_rate": 0.001772421127259837, + "mean_prediction": 0.0012270248753476645, + "calibration_in_the_large": -0.0005453962519121724, + "expected_calibration_error_10bin": 0.0005453962519121724, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 5, + "negatives": 2816, + "auroc": 0.7810369318181818, + "auprc": 0.01191474480813166, + "brier": 0.0017646688068992617, + "calibration": { + "observed_rate": 0.001772421127259837, + "mean_prediction": 0.001235761619906457, + "calibration_in_the_large": -0.0005366595073533799, + "expected_calibration_error_10bin": 0.0005366595073533799, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + } + ], + "reason": null + }, + "I77": { + "time_averaged_auroc": 0.622806912512118, + "time_averaged_auprc": 0.005114800175387235, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2785, + "positives": 2, + "negatives": 2783, + "auroc": 0.7177506288178225, + "auprc": 0.002129228900241884, + "brier": 0.0007178924970951339, + "calibration": { + "observed_rate": 0.000718132854578097, + "mean_prediction": 0.0005446421832593891, + "calibration_in_the_large": -0.00017349067131870787, + "expected_calibration_error_10bin": 0.00017349067131870787, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 3, + "negatives": 2782, + "auroc": 0.5808770668583753, + "auprc": 0.003504307959753504, + "brier": 0.001077336393578305, + "calibration": { + "observed_rate": 0.0010771992818671453, + "mean_prediction": 0.0011206919450883408, + "calibration_in_the_large": 4.349266322119542e-05, + "expected_calibration_error_10bin": 4.349266322119542e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 3, + "negatives": 2782, + "auroc": 0.5745267193865324, + "auprc": 0.004617258209235259, + "brier": 0.0010783914722086274, + "calibration": { + "observed_rate": 0.0010771992818671453, + "mean_prediction": 0.0014970027737486373, + "calibration_in_the_large": 0.000419803491881492, + "expected_calibration_error_10bin": 0.000419803491881492, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 3, + "negatives": 2782, + "auroc": 0.5666187395159358, + "auprc": 0.0045620548204150695, + "brier": 0.001079933636773316, + "calibration": { + "observed_rate": 0.0010771992818671453, + "mean_prediction": 0.0017836104418733863, + "calibration_in_the_large": 0.000706411160006241, + "expected_calibration_error_10bin": 0.000706411160006241, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 4, + "negatives": 2781, + "auroc": 0.5953793599424667, + "auprc": 0.0047534780837943744, + "brier": 0.0014390593715544546, + "calibration": { + "observed_rate": 0.001436265709156194, + "mean_prediction": 0.0019993651922827283, + "calibration_in_the_large": 0.0005630994831265343, + "expected_calibration_error_10bin": 0.0005630994831265343, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 4, + "negatives": 2781, + "auroc": 0.5940309241280115, + "auprc": 0.004922003321958999, + "brier": 0.001441000573620646, + "calibration": { + "observed_rate": 0.001436265709156194, + "mean_prediction": 0.002254643334567739, + "calibration_in_the_large": 0.0008183776254115452, + "expected_calibration_error_10bin": 0.0008183776254115452, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 4, + "negatives": 2781, + "auroc": 0.5943905070118662, + "auprc": 0.005070365605316792, + "brier": 0.0014427752181835932, + "calibration": { + "observed_rate": 0.001436265709156194, + "mean_prediction": 0.002430050649952791, + "calibration_in_the_large": 0.0009937849407965968, + "expected_calibration_error_10bin": 0.0009937849407965968, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 6, + "negatives": 2779, + "auroc": 0.6495142137459518, + "auprc": 0.0062729130596951175, + "brier": 0.002155260898287018, + "calibration": { + "observed_rate": 0.0021543985637342907, + "mean_prediction": 0.002538989928802581, + "calibration_in_the_large": 0.00038459136506829037, + "expected_calibration_error_10bin": 0.00038459136506829037, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 6, + "negatives": 2779, + "auroc": 0.6472352165047379, + "auprc": 0.006228516372839864, + "brier": 0.002157142262771432, + "calibration": { + "observed_rate": 0.0021543985637342907, + "mean_prediction": 0.0027461312649438943, + "calibration_in_the_large": 0.0005917327012096036, + "expected_calibration_error_10bin": 0.0005917327012096036, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 6, + "negatives": 2779, + "auroc": 0.6448962456519132, + "auprc": 0.006097362242616713, + "brier": 0.0021593689905861873, + "calibration": { + "observed_rate": 0.0021543985637342907, + "mean_prediction": 0.0029653312731905226, + "calibration_in_the_large": 0.0008109327094562319, + "expected_calibration_error_10bin": 0.0008109327094562319, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 6, + "negatives": 2779, + "auroc": 0.6441165887009715, + "auprc": 0.006102677274582185, + "brier": 0.002161507823017314, + "calibration": { + "observed_rate": 0.0021543985637342907, + "mean_prediction": 0.003175205417843127, + "calibration_in_the_large": 0.0010208068541088361, + "expected_calibration_error_10bin": 0.0010208068541088361, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 6, + "negatives": 2779, + "auroc": 0.6436367998080844, + "auprc": 0.00611674803290068, + "brier": 0.0021626601743300645, + "calibration": { + "observed_rate": 0.0021543985637342907, + "mean_prediction": 0.0032880594380080203, + "calibration_in_the_large": 0.0011336608742737297, + "expected_calibration_error_10bin": 0.0011336608742737297, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 6, + "negatives": 2779, + "auroc": 0.6435168525848627, + "auprc": 0.006115488396683619, + "brier": 0.002162702605142909, + "calibration": { + "observed_rate": 0.0021543985637342907, + "mean_prediction": 0.0032923809836872125, + "calibration_in_the_large": 0.0011379824199529219, + "expected_calibration_error_10bin": 0.0011379824199529219, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + } + ], + "reason": null + }, + "I80": { + "time_averaged_auroc": 0.9020621105683109, + "time_averaged_auprc": 0.04456745410321035, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2827, + "positives": 2, + "negatives": 2825, + "auroc": 0.8842477876106195, + "auprc": 0.004529859050445104, + "brier": 0.0007072629116348698, + "calibration": { + "observed_rate": 0.0007074637424831977, + "mean_prediction": 0.00020481681470370077, + "calibration_in_the_large": -0.0005026469277794969, + "expected_calibration_error_10bin": 0.0005026469277794969, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 2, + "negatives": 2825, + "auroc": 0.8493805309734513, + "auprc": 0.0034921679971470112, + "brier": 0.0007077296076344579, + "calibration": { + "observed_rate": 0.0007074637424831977, + "mean_prediction": 0.0003927902648561962, + "calibration_in_the_large": -0.00031467347762700155, + "expected_calibration_error_10bin": 0.00031467347762700155, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 2, + "negatives": 2825, + "auroc": 0.8515044247787611, + "auprc": 0.0034994361232481568, + "brier": 0.0007081902577427976, + "calibration": { + "observed_rate": 0.0007074637424831977, + "mean_prediction": 0.0004737347168842395, + "calibration_in_the_large": -0.00023372902559895824, + "expected_calibration_error_10bin": 0.00023372902559895824, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 4, + "negatives": 2823, + "auroc": 0.9071909316330146, + "auprc": 0.06900128136823422, + "brier": 0.001399970235282386, + "calibration": { + "observed_rate": 0.0014149274849663955, + "mean_prediction": 0.0006569223449965296, + "calibration_in_the_large": -0.0007580051399698658, + "expected_calibration_error_10bin": 0.0007580051399698658, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 4, + "negatives": 2823, + "auroc": 0.9099362380446334, + "auprc": 0.05661471642010143, + "brier": 0.001398832722078709, + "calibration": { + "observed_rate": 0.0014149274849663955, + "mean_prediction": 0.0007547473545653572, + "calibration_in_the_large": -0.0006601801304010383, + "expected_calibration_error_10bin": 0.0006601801304010383, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 4, + "negatives": 2823, + "auroc": 0.9078993978037548, + "auprc": 0.05657404625458559, + "brier": 0.001398052632472501, + "calibration": { + "observed_rate": 0.0014149274849663955, + "mean_prediction": 0.0008678294776166919, + "calibration_in_the_large": -0.0005470980073497035, + "expected_calibration_error_10bin": 0.0005470980073497035, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 4, + "negatives": 2823, + "auroc": 0.9088735387885228, + "auprc": 0.056619541102089985, + "brier": 0.0013978776479407614, + "calibration": { + "observed_rate": 0.0014149274849663955, + "mean_prediction": 0.0009128898538842285, + "calibration_in_the_large": -0.000502037631082167, + "expected_calibration_error_10bin": 0.000502037631082167, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 4, + "negatives": 2823, + "auroc": 0.9101133545873185, + "auprc": 0.056693870368389326, + "brier": 0.0013965711642296636, + "calibration": { + "observed_rate": 0.0014149274849663955, + "mean_prediction": 0.0009798149050909855, + "calibration_in_the_large": -0.00043511257987540993, + "expected_calibration_error_10bin": 0.00043511257987540993, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 5, + "negatives": 2822, + "auroc": 0.9192062367115521, + "auprc": 0.06039682788856231, + "brier": 0.0017464930263824195, + "calibration": { + "observed_rate": 0.0017686593562079944, + "mean_prediction": 0.001061000942220155, + "calibration_in_the_large": -0.0007076584139878394, + "expected_calibration_error_10bin": 0.0007076584139878394, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 5, + "negatives": 2822, + "auroc": 0.9195605953224664, + "auprc": 0.060433887189105404, + "brier": 0.001746395593170281, + "calibration": { + "observed_rate": 0.0017686593562079944, + "mean_prediction": 0.0010831065651651735, + "calibration_in_the_large": -0.000685552791042821, + "expected_calibration_error_10bin": 0.000685552791042821, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 5, + "negatives": 2822, + "auroc": 0.918284904323175, + "auprc": 0.05038982844725248, + "brier": 0.0017461602098962465, + "calibration": { + "observed_rate": 0.0017686593562079944, + "mean_prediction": 0.0011380568358088025, + "calibration_in_the_large": -0.0006306025203991919, + "expected_calibration_error_10bin": 0.0006306025203991919, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 5, + "negatives": 2822, + "auroc": 0.9202693125442948, + "auprc": 0.050592262093677585, + "brier": 0.0017453413109646259, + "calibration": { + "observed_rate": 0.0017686593562079944, + "mean_prediction": 0.0012221906214970016, + "calibration_in_the_large": -0.0005464687347109928, + "expected_calibration_error_10bin": 0.0005464687347109928, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 5, + "negatives": 2822, + "auroc": 0.9203401842664777, + "auprc": 0.050539179038895946, + "brier": 0.0017452680739701223, + "calibration": { + "observed_rate": 0.0017686593562079944, + "mean_prediction": 0.0012443907454378548, + "calibration_in_the_large": -0.0005242686107701396, + "expected_calibration_error_10bin": 0.0005242686107701396, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + } + ], + "reason": null + }, + "I81": { + "time_averaged_auroc": 0.8626377564950835, + "time_averaged_auprc": 0.025024035198946477, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2826, + "positives": 4, + "negatives": 2822, + "auroc": 0.885099220411056, + "auprc": 0.0196830225340936, + "brier": 0.0014117194343231808, + "calibration": { + "observed_rate": 0.0014154281670205238, + "mean_prediction": 0.0003158031262113743, + "calibration_in_the_large": -0.0010996250408091494, + "expected_calibration_error_10bin": 0.0010996250408091494, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 5, + "negatives": 2821, + "auroc": 0.8979794399149238, + "auprc": 0.018580238779693115, + "brier": 0.0017679933796616986, + "calibration": { + "observed_rate": 0.0017692852087756545, + "mean_prediction": 0.0006269680050625355, + "calibration_in_the_large": -0.0011423172037131192, + "expected_calibration_error_10bin": 0.0011423172037131192, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 5, + "negatives": 2821, + "auroc": 0.8949308755760369, + "auprc": 0.018433304636431745, + "brier": 0.0017730409480338745, + "calibration": { + "observed_rate": 0.0017692852087756545, + "mean_prediction": 0.0008414916524829381, + "calibration_in_the_large": -0.0009277935562927164, + "expected_calibration_error_10bin": 0.0009277935562927164, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 5, + "negatives": 2821, + "auroc": 0.8928748670684155, + "auprc": 0.018144216414880752, + "brier": 0.0017762914301705627, + "calibration": { + "observed_rate": 0.0017692852087756545, + "mean_prediction": 0.000978505852409271, + "calibration_in_the_large": -0.0007907793563663836, + "expected_calibration_error_10bin": 0.0007907793563663836, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 6, + "negatives": 2820, + "auroc": 0.9067966903073286, + "auprc": 0.02265175259818102, + "brier": 0.002133639947468356, + "calibration": { + "observed_rate": 0.0021231422505307855, + "mean_prediction": 0.001200943868117829, + "calibration_in_the_large": -0.0009221983824129565, + "expected_calibration_error_10bin": 0.0010045241606448777, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 6, + "negatives": 2820, + "auroc": 0.9059692671394799, + "auprc": 0.022380332154044294, + "brier": 0.002144678197219867, + "calibration": { + "observed_rate": 0.0021231422505307855, + "mean_prediction": 0.001376016427419401, + "calibration_in_the_large": -0.0007471258231113846, + "expected_calibration_error_10bin": 0.0009977747754517554, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 7, + "negatives": 2819, + "auroc": 0.9160796635078295, + "auprc": 0.02958716437002159, + "brier": 0.002492800776642123, + "calibration": { + "observed_rate": 0.0024769992922859165, + "mean_prediction": 0.001506889845017881, + "calibration_in_the_large": -0.0009701094472680356, + "expected_calibration_error_10bin": 0.0014638763757380102, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 8, + "negatives": 2818, + "auroc": 0.8136976579134138, + "auprc": 0.026115238420287786, + "brier": 0.0028561805991029958, + "calibration": { + "observed_rate": 0.0028308563340410475, + "mean_prediction": 0.00165678260875677, + "calibration_in_the_large": -0.0011740737252842776, + "expected_calibration_error_10bin": 0.0018641753322836798, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 8, + "negatives": 2818, + "auroc": 0.8131210078069553, + "auprc": 0.0257740789415606, + "brier": 0.002864952147134291, + "calibration": { + "observed_rate": 0.0028308563340410475, + "mean_prediction": 0.0017947472181709544, + "calibration_in_the_large": -0.0010361091158700932, + "expected_calibration_error_10bin": 0.0019223482642037513, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 8, + "negatives": 2818, + "auroc": 0.8125443577004968, + "auprc": 0.025556378228828544, + "brier": 0.002873954929798626, + "calibration": { + "observed_rate": 0.0028308563340410475, + "mean_prediction": 0.0018959263831909636, + "calibration_in_the_large": -0.0009349299508500839, + "expected_calibration_error_10bin": 0.0020236448436316322, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 8, + "negatives": 2818, + "auroc": 0.812278211497516, + "auprc": 0.025686377454794983, + "brier": 0.002886604570469334, + "calibration": { + "observed_rate": 0.0028308563340410475, + "mean_prediction": 0.002014476815110268, + "calibration_in_the_large": -0.0008163795189307793, + "expected_calibration_error_10bin": 0.0020674278674004563, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 9, + "negatives": 2817, + "auroc": 0.8314992308602532, + "auprc": 0.03637323416051838, + "brier": 0.0032086379544618336, + "calibration": { + "observed_rate": 0.0031847133757961785, + "mean_prediction": 0.0021021099434519416, + "calibration_in_the_large": -0.001082603432344237, + "expected_calibration_error_10bin": 0.002379045853596291, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 9, + "negatives": 2817, + "auroc": 0.8314203447323788, + "auprc": 0.036347118892967795, + "brier": 0.00320921155623017, + "calibration": { + "observed_rate": 0.0031847133757961785, + "mean_prediction": 0.0021132429161146624, + "calibration_in_the_large": -0.001071470459681516, + "expected_calibration_error_10bin": 0.002372387531962473, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + } + ], + "reason": null + }, + "I82": { + "time_averaged_auroc": 0.7423890860481994, + "time_averaged_auprc": 0.034285174588004605, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2739, + "positives": 6, + "negatives": 2733, + "auroc": 0.7148432735699476, + "auprc": 0.007043415424206054, + "brier": 0.00218485400939948, + "calibration": { + "observed_rate": 0.002190580503833516, + "mean_prediction": 0.0015571817455850808, + "calibration_in_the_large": -0.000633398758248435, + "expected_calibration_error_10bin": 0.000633398758248435, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + { + "valid": 2739, + "positives": 13, + "negatives": 2726, + "auroc": 0.6825723799311474, + "auprc": 0.014282657070227049, + "brier": 0.004716520791794562, + "calibration": { + "observed_rate": 0.004746257758305951, + "mean_prediction": 0.0036118588363463814, + "calibration_in_the_large": -0.0011343989219595699, + "expected_calibration_error_10bin": 0.0011343989219595699, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + { + "valid": 2739, + "positives": 18, + "negatives": 2721, + "auroc": 0.7487034995304014, + "auprc": 0.036602259916723966, + "brier": 0.006454503752346641, + "calibration": { + "observed_rate": 0.0065717415115005475, + "mean_prediction": 0.004696242792488591, + "calibration_in_the_large": -0.0018754987190119565, + "expected_calibration_error_10bin": 0.0018754987190119565, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + { + "valid": 2739, + "positives": 20, + "negatives": 2719, + "auroc": 0.7390768664950349, + "auprc": 0.034309192677580896, + "brier": 0.007174102606459573, + "calibration": { + "observed_rate": 0.007301935012778387, + "mean_prediction": 0.005651445314624443, + "calibration_in_the_large": -0.0016504896981539433, + "expected_calibration_error_10bin": 0.0016504896981539433, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + { + "valid": 2739, + "positives": 22, + "negatives": 2717, + "auroc": 0.7379964533074581, + "auprc": 0.033112818612437145, + "brier": 0.007893666395772431, + "calibration": { + "observed_rate": 0.008032128514056224, + "mean_prediction": 0.006597807286968772, + "calibration_in_the_large": -0.0014343212270874518, + "expected_calibration_error_10bin": 0.0015821687313707215, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + { + "valid": 2739, + "positives": 23, + "negatives": 2716, + "auroc": 0.7412275084843439, + "auprc": 0.033279031942540276, + "brier": 0.008252044327544861, + "calibration": { + "observed_rate": 0.008397225264695144, + "mean_prediction": 0.007114217581900816, + "calibration_in_the_large": -0.001283007682794328, + "expected_calibration_error_10bin": 0.0014388345494428293, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + { + "valid": 2739, + "positives": 26, + "negatives": 2713, + "auroc": 0.750035441889478, + "auprc": 0.03388241914572376, + "brier": 0.009326167766012354, + "calibration": { + "observed_rate": 0.009492515516611903, + "mean_prediction": 0.007449977615686227, + "calibration_in_the_large": -0.0020425379009256757, + "expected_calibration_error_10bin": 0.002205642556721419, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + { + "valid": 2739, + "positives": 28, + "negatives": 2711, + "auroc": 0.7659271750013174, + "auprc": 0.0420456855355329, + "brier": 0.00998937308990783, + "calibration": { + "observed_rate": 0.01022270901788974, + "mean_prediction": 0.00798762879652067, + "calibration_in_the_large": -0.0022350802213690693, + "expected_calibration_error_10bin": 0.0028011184071384085, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + { + "valid": 2739, + "positives": 32, + "negatives": 2707, + "auroc": 0.74906492427041, + "auprc": 0.03988743763426582, + "brier": 0.011431318924197402, + "calibration": { + "observed_rate": 0.011683096020445418, + "mean_prediction": 0.008624481660239396, + "calibration_in_the_large": -0.0030586143602060224, + "expected_calibration_error_10bin": 0.003976289810525115, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + { + "valid": 2739, + "positives": 32, + "negatives": 2707, + "auroc": 0.7490302918359808, + "auprc": 0.039724039292385036, + "brier": 0.011436476851229397, + "calibration": { + "observed_rate": 0.011683096020445418, + "mean_prediction": 0.009175064070007446, + "calibration_in_the_large": -0.0025080319504379722, + "expected_calibration_error_10bin": 0.0035503221776570356, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + { + "valid": 2739, + "positives": 35, + "negatives": 2704, + "auroc": 0.7578508030431107, + "auprc": 0.04391294077541851, + "brier": 0.012473053849568122, + "calibration": { + "observed_rate": 0.012778386272362175, + "mean_prediction": 0.009601940357099263, + "calibration_in_the_large": -0.0031764459152629123, + "expected_calibration_error_10bin": 0.004578563937185112, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + { + "valid": 2739, + "positives": 35, + "negatives": 2704, + "auroc": 0.7573858833474219, + "auprc": 0.043833173936351354, + "brier": 0.012476448967385406, + "calibration": { + "observed_rate": 0.012778386272362175, + "mean_prediction": 0.009969279975497309, + "calibration_in_the_large": -0.0028091062968648665, + "expected_calibration_error_10bin": 0.00441931071654025, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + { + "valid": 2739, + "positives": 35, + "negatives": 2704, + "auroc": 0.757343617920541, + "auprc": 0.04379219768066706, + "brier": 0.012476656708554705, + "calibration": { + "observed_rate": 0.012778386272362175, + "mean_prediction": 0.010070563086940812, + "calibration_in_the_large": -0.002707823185421364, + "expected_calibration_error_10bin": 0.0036787202302051986, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + } + ], + "reason": null + }, + "I85": { + "time_averaged_auroc": 0.9905725308994741, + "time_averaged_auprc": 0.30277205393681766, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2793, + "positives": 1, + "negatives": 2792, + "auroc": 0.9867478510028653, + "auprc": 0.02631578947368421, + "brier": 0.0003842566876208205, + "calibration": { + "observed_rate": 0.00035803795202291446, + "mean_prediction": 0.0004125157591557942, + "calibration_in_the_large": 5.4477807132879725e-05, + "expected_calibration_error_10bin": 0.000143798484211391, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 2, + "negatives": 2791, + "auroc": 0.9933715514152633, + "auprc": 0.5256410256410257, + "brier": 0.000629309683192226, + "calibration": { + "observed_rate": 0.0007160759040458289, + "mean_prediction": 0.0006151822238224962, + "calibration_in_the_large": -0.00010089368022333275, + "expected_calibration_error_10bin": 0.00044558473205579197, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 4, + "negatives": 2789, + "auroc": 0.9953388311222661, + "auprc": 0.40058479532163743, + "brier": 0.0012455596911520401, + "calibration": { + "observed_rate": 0.0014321518080916578, + "mean_prediction": 0.0007256541013144872, + "calibration_in_the_large": -0.0007064977067771706, + "expected_calibration_error_10bin": 0.0007064977067771706, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 4, + "negatives": 2789, + "auroc": 0.9953388311222661, + "auprc": 0.2763784461152882, + "brier": 0.0012315314113920894, + "calibration": { + "observed_rate": 0.0014321518080916578, + "mean_prediction": 0.0008624966121525529, + "calibration_in_the_large": -0.000569655195939105, + "expected_calibration_error_10bin": 0.0005696551959391049, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 4, + "negatives": 2789, + "auroc": 0.9953388311222661, + "auprc": 0.2763784461152882, + "brier": 0.0012274878528202434, + "calibration": { + "observed_rate": 0.0014321518080916578, + "mean_prediction": 0.0009637646692417914, + "calibration_in_the_large": -0.0004683871388498664, + "expected_calibration_error_10bin": 0.00046838713884986635, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 7, + "negatives": 2786, + "auroc": 0.9927699723105322, + "auprc": 0.27681041227407144, + "brier": 0.0021957022329088223, + "calibration": { + "observed_rate": 0.002506265664160401, + "mean_prediction": 0.0010553629900379078, + "calibration_in_the_large": -0.001450902674122493, + "expected_calibration_error_10bin": 0.0018012449793335615, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 8, + "negatives": 2785, + "auroc": 0.987342908438061, + "auprc": 0.3121333531640549, + "brier": 0.0025338425910859112, + "calibration": { + "observed_rate": 0.0028643036161833156, + "mean_prediction": 0.0011655332399249927, + "calibration_in_the_large": -0.001698770376258323, + "expected_calibration_error_10bin": 0.002098734028411215, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 9, + "negatives": 2784, + "auroc": 0.9877873563218391, + "auprc": 0.30239154137354807, + "brier": 0.002876731128292497, + "calibration": { + "observed_rate": 0.00322234156820623, + "mean_prediction": 0.0012805771100071492, + "calibration_in_the_large": -0.0019417644581990808, + "expected_calibration_error_10bin": 0.0019788827225500124, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 9, + "negatives": 2784, + "auroc": 0.9882263729246488, + "auprc": 0.30653398486545186, + "brier": 0.0028621970780061483, + "calibration": { + "observed_rate": 0.00322234156820623, + "mean_prediction": 0.0014076585681316825, + "calibration_in_the_large": -0.0018146830000745475, + "expected_calibration_error_10bin": 0.002343143670693246, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 9, + "negatives": 2784, + "auroc": 0.9885456577266922, + "auprc": 0.3077109408765756, + "brier": 0.0028604489164857677, + "calibration": { + "observed_rate": 0.00322234156820623, + "mean_prediction": 0.0014603674832859227, + "calibration_in_the_large": -0.0017619740849203072, + "expected_calibration_error_10bin": 0.0022356274630501234, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 9, + "negatives": 2784, + "auroc": 0.9885057471264368, + "auprc": 0.30765726977309765, + "brier": 0.0028588235899222147, + "calibration": { + "observed_rate": 0.00322234156820623, + "mean_prediction": 0.0015365932657259963, + "calibration_in_the_large": -0.0016857483024802337, + "expected_calibration_error_10bin": 0.0021886178586463666, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 9, + "negatives": 2784, + "auroc": 0.9890644955300127, + "auprc": 0.3087503480924534, + "brier": 0.00283851991186401, + "calibration": { + "observed_rate": 0.00322234156820623, + "mean_prediction": 0.00168286615334174, + "calibration_in_the_large": -0.00153947541486449, + "expected_calibration_error_10bin": 0.0022446215439198337, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 9, + "negatives": 2784, + "auroc": 0.9890644955300127, + "auprc": 0.3087503480924534, + "brier": 0.0028385123957870204, + "calibration": { + "observed_rate": 0.00322234156820623, + "mean_prediction": 0.0016847545774906136, + "calibration_in_the_large": -0.0015375869907156164, + "expected_calibration_error_10bin": 0.0022436133446472823, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + } + ], + "reason": null + }, + "I87": { + "time_averaged_auroc": 0.6995702105647921, + "time_averaged_auprc": 0.011012215854131384, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2780, + "positives": 4, + "negatives": 2776, + "auroc": 0.7768371757925072, + "auprc": 0.010561743028720134, + "brier": 0.0014356047245434292, + "calibration": { + "observed_rate": 0.0014388489208633094, + "mean_prediction": 0.0005024386864869012, + "calibration_in_the_large": -0.0009364102343764082, + "expected_calibration_error_10bin": 0.0009364102343764082, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + { + "valid": 2780, + "positives": 7, + "negatives": 2773, + "auroc": 0.6905362938540003, + "auprc": 0.007161718623990727, + "brier": 0.0025125674367168565, + "calibration": { + "observed_rate": 0.002517985611510791, + "mean_prediction": 0.0009097264074807018, + "calibration_in_the_large": -0.0016082592040300894, + "expected_calibration_error_10bin": 0.0016082592040300894, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + { + "valid": 2780, + "positives": 10, + "negatives": 2770, + "auroc": 0.6855595667870036, + "auprc": 0.009912609903640065, + "brier": 0.0035854008175259387, + "calibration": { + "observed_rate": 0.0035971223021582736, + "mean_prediction": 0.0013086811338490184, + "calibration_in_the_large": -0.002288441168309255, + "expected_calibration_error_10bin": 0.002288441168309255, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + { + "valid": 2780, + "positives": 11, + "negatives": 2769, + "auroc": 0.6919465511014807, + "auprc": 0.010122550921897512, + "brier": 0.003941924805059015, + "calibration": { + "observed_rate": 0.003956834532374101, + "mean_prediction": 0.001647791910948059, + "calibration_in_the_large": -0.0023090426214260416, + "expected_calibration_error_10bin": 0.0023090426214260416, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + { + "valid": 2780, + "positives": 11, + "negatives": 2769, + "auroc": 0.695689287238583, + "auprc": 0.010584151969071587, + "brier": 0.003940627104455905, + "calibration": { + "observed_rate": 0.003956834532374101, + "mean_prediction": 0.0019370987293616721, + "calibration_in_the_large": -0.0020197358030124286, + "expected_calibration_error_10bin": 0.0020197358030124286, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + { + "valid": 2780, + "positives": 11, + "negatives": 2769, + "auroc": 0.6924718474014249, + "auprc": 0.010396085007106176, + "brier": 0.003941027865665332, + "calibration": { + "observed_rate": 0.003956834532374101, + "mean_prediction": 0.002133977165132276, + "calibration_in_the_large": -0.0018228573672418248, + "expected_calibration_error_10bin": 0.0018228573672418248, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + { + "valid": 2780, + "positives": 12, + "negatives": 2768, + "auroc": 0.6823518786127167, + "auprc": 0.010536094100548876, + "brier": 0.004300696167998873, + "calibration": { + "observed_rate": 0.004316546762589928, + "mean_prediction": 0.0024339020387187963, + "calibration_in_the_large": -0.0018826447238711316, + "expected_calibration_error_10bin": 0.0018826447238711316, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + { + "valid": 2780, + "positives": 12, + "negatives": 2768, + "auroc": 0.6815390173410405, + "auprc": 0.010453628995782309, + "brier": 0.0043011567915933815, + "calibration": { + "observed_rate": 0.004316546762589928, + "mean_prediction": 0.00265242785889405, + "calibration_in_the_large": -0.0016641189036958781, + "expected_calibration_error_10bin": 0.0016641189036958781, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + { + "valid": 2780, + "positives": 12, + "negatives": 2768, + "auroc": 0.6794918111753372, + "auprc": 0.010200894108909295, + "brier": 0.004302028971995632, + "calibration": { + "observed_rate": 0.004316546762589928, + "mean_prediction": 0.0028411537198794346, + "calibration_in_the_large": -0.0014753930427104933, + "expected_calibration_error_10bin": 0.0014753930427104933, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + { + "valid": 2780, + "positives": 13, + "negatives": 2767, + "auroc": 0.7013705484974007, + "auprc": 0.012948620743957088, + "brier": 0.004652285082441278, + "calibration": { + "observed_rate": 0.004676258992805755, + "mean_prediction": 0.002985485818702492, + "calibration_in_the_large": -0.001690773174103263, + "expected_calibration_error_10bin": 0.001690773174103263, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + { + "valid": 2780, + "positives": 13, + "negatives": 2767, + "auroc": 0.7001473409135137, + "auprc": 0.012633343885602074, + "brier": 0.004653745384948141, + "calibration": { + "observed_rate": 0.004676258992805755, + "mean_prediction": 0.0032270175122975286, + "calibration_in_the_large": -0.0014492414805082265, + "expected_calibration_error_10bin": 0.0014492414805082265, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + { + "valid": 2780, + "positives": 13, + "negatives": 2767, + "auroc": 0.6993967362597648, + "auprc": 0.012861938102303044, + "brier": 0.004655202863918459, + "calibration": { + "observed_rate": 0.004676258992805755, + "mean_prediction": 0.003412517686219806, + "calibration_in_the_large": -0.001263741306585949, + "expected_calibration_error_10bin": 0.001263741306585949, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + { + "valid": 2780, + "positives": 14, + "negatives": 2766, + "auroc": 0.717074682367524, + "auprc": 0.014785426712179115, + "brier": 0.005005987477562608, + "calibration": { + "observed_rate": 0.005035971223021582, + "mean_prediction": 0.003453685642162461, + "calibration_in_the_large": -0.0015822855808591213, + "expected_calibration_error_10bin": 0.0015822855808591213, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + } + ], + "reason": null + }, + "I89": { + "time_averaged_auroc": 0.8675845024974679, + "time_averaged_auprc": 0.0071962280050436814, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2826, + "positives": 1, + "negatives": 2825, + "auroc": 0.9536283185840708, + "auprc": 0.007575757575757576, + "brier": 0.00035339554013018114, + "calibration": { + "observed_rate": 0.00035385704175513094, + "mean_prediction": 0.00019215798940664584, + "calibration_in_the_large": -0.0001616990523484851, + "expected_calibration_error_10bin": 0.0001616990523484851, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 3, + "negatives": 2823, + "auroc": 0.8884165781083954, + "auprc": 0.0072052193581790235, + "brier": 0.0010598100638424767, + "calibration": { + "observed_rate": 0.0010615711252653928, + "mean_prediction": 0.00035821819899895267, + "calibration_in_the_large": -0.00070335292626644, + "expected_calibration_error_10bin": 0.00070335292626644, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 4, + "negatives": 2822, + "auroc": 0.8670269312544295, + "auprc": 0.006835545164441103, + "brier": 0.0014130248456320868, + "calibration": { + "observed_rate": 0.0014154281670205238, + "mean_prediction": 0.00044083236489471703, + "calibration_in_the_large": -0.0009745958021258067, + "expected_calibration_error_10bin": 0.0009745958021258067, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 4, + "negatives": 2822, + "auroc": 0.8651665485471297, + "auprc": 0.006632646575867928, + "brier": 0.0014127783737738946, + "calibration": { + "observed_rate": 0.0014154281670205238, + "mean_prediction": 0.0005224378151692429, + "calibration_in_the_large": -0.0008929903518512808, + "expected_calibration_error_10bin": 0.0008929903518512808, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 5, + "negatives": 2821, + "auroc": 0.871889400921659, + "auprc": 0.008341193977533351, + "brier": 0.0017651164500645906, + "calibration": { + "observed_rate": 0.0017692852087756545, + "mean_prediction": 0.0006252677160635857, + "calibration_in_the_large": -0.0011440174927120688, + "expected_calibration_error_10bin": 0.0011440174927120688, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 5, + "negatives": 2821, + "auroc": 0.8646579227224388, + "auprc": 0.007756351448441728, + "brier": 0.0017648652330247863, + "calibration": { + "observed_rate": 0.0017692852087756545, + "mean_prediction": 0.0007402387632018724, + "calibration_in_the_large": -0.0010290464455737821, + "expected_calibration_error_10bin": 0.0010290464455737821, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 5, + "negatives": 2821, + "auroc": 0.8591279688053881, + "auprc": 0.007398836434700007, + "brier": 0.001764910245653708, + "calibration": { + "observed_rate": 0.0017692852087756545, + "mean_prediction": 0.0008065651345500204, + "calibration_in_the_large": -0.0009627200742256341, + "expected_calibration_error_10bin": 0.0009627200742256341, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 5, + "negatives": 2821, + "auroc": 0.8562211981566821, + "auprc": 0.007245247793691338, + "brier": 0.0017649253789985648, + "calibration": { + "observed_rate": 0.0017692852087756545, + "mean_prediction": 0.0008456952821905172, + "calibration_in_the_large": -0.0009235899265851373, + "expected_calibration_error_10bin": 0.0009235899265851373, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 5, + "negatives": 2821, + "auroc": 0.8535980148883374, + "auprc": 0.0070901344855749445, + "brier": 0.0017650665559646992, + "calibration": { + "observed_rate": 0.0017692852087756545, + "mean_prediction": 0.0009000251484275461, + "calibration_in_the_large": -0.0008692600603481084, + "expected_calibration_error_10bin": 0.0008692600603481084, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 5, + "negatives": 2821, + "auroc": 0.8520382842963488, + "auprc": 0.006997819593751205, + "brier": 0.0017650641346394387, + "calibration": { + "observed_rate": 0.0017692852087756545, + "mean_prediction": 0.0009336029647755052, + "calibration_in_the_large": -0.0008356822440001493, + "expected_calibration_error_10bin": 0.0008356822440001493, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 5, + "negatives": 2821, + "auroc": 0.8498404820985466, + "auprc": 0.00687443866834733, + "brier": 0.0017649842251495783, + "calibration": { + "observed_rate": 0.0017692852087756545, + "mean_prediction": 0.0009992356769266712, + "calibration_in_the_large": -0.0007700495318489833, + "expected_calibration_error_10bin": 0.0007700495318489833, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 5, + "negatives": 2821, + "auroc": 0.8484934420418292, + "auprc": 0.006798886494641165, + "brier": 0.0017650927166239282, + "calibration": { + "observed_rate": 0.0017692852087756545, + "mean_prediction": 0.0010779234210956746, + "calibration_in_the_large": -0.00069136178767998, + "expected_calibration_error_10bin": 0.00069136178767998, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 5, + "negatives": 2821, + "auroc": 0.8484934420418292, + "auprc": 0.006798886494641165, + "brier": 0.0017650985895462375, + "calibration": { + "observed_rate": 0.0017692852087756545, + "mean_prediction": 0.0010801631764813097, + "calibration_in_the_large": -0.0006891220322943448, + "expected_calibration_error_10bin": 0.0006891220322943448, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + } + ], + "reason": null + }, + "I95": { + "time_averaged_auroc": 0.7323907598239845, + "time_averaged_auprc": 0.06966799867177029, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2485, + "positives": 19, + "negatives": 2466, + "auroc": 0.701733043069962, + "auprc": 0.01471359069820258, + "brier": 0.007578909250138138, + "calibration": { + "observed_rate": 0.007645875251509054, + "mean_prediction": 0.008439593718802253, + "calibration_in_the_large": 0.0007937184672931986, + "expected_calibration_error_10bin": 0.0007937184672931986, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.874076679563841 + }, + { + "valid": 2485, + "positives": 33, + "negatives": 2452, + "auroc": 0.7320554649265906, + "auprc": 0.027152227631399267, + "brier": 0.013040125019703728, + "calibration": { + "observed_rate": 0.013279678068410463, + "mean_prediction": 0.014409780918755916, + "calibration_in_the_large": 0.001130102850345453, + "expected_calibration_error_10bin": 0.001130102850345453, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.874076679563841 + }, + { + "valid": 2485, + "positives": 41, + "negatives": 2444, + "auroc": 0.7201309328968903, + "auprc": 0.035849381936111265, + "brier": 0.016131883656588547, + "calibration": { + "observed_rate": 0.016498993963782696, + "mean_prediction": 0.018163632353420146, + "calibration_in_the_large": 0.0016646383896374503, + "expected_calibration_error_10bin": 0.001664638389637449, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.874076679563841 + }, + { + "valid": 2485, + "positives": 52, + "negatives": 2433, + "auroc": 0.7153956811786651, + "auprc": 0.04882955952920591, + "brier": 0.02028389905012393, + "calibration": { + "observed_rate": 0.020925553319919517, + "mean_prediction": 0.02121474286784948, + "calibration_in_the_large": 0.000289189547929964, + "expected_calibration_error_10bin": 0.00028918954792996683, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.874076679563841 + }, + { + "valid": 2485, + "positives": 58, + "negatives": 2427, + "auroc": 0.7173038944063197, + "auprc": 0.052033156015804695, + "brier": 0.022557265565124697, + "calibration": { + "observed_rate": 0.023340040241448694, + "mean_prediction": 0.02329611872698572, + "calibration_in_the_large": -4.392151446297454e-05, + "expected_calibration_error_10bin": 7.224088638713725e-05, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.874076679563841 + }, + { + "valid": 2485, + "positives": 66, + "negatives": 2419, + "auroc": 0.7323023538401794, + "auprc": 0.0641801160279076, + "brier": 0.025443406656741906, + "calibration": { + "observed_rate": 0.026559356136820925, + "mean_prediction": 0.025443118732044065, + "calibration_in_the_large": -0.0011162374047768604, + "expected_calibration_error_10bin": 0.0011162374047768615, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.874076679563841 + }, + { + "valid": 2485, + "positives": 77, + "negatives": 2408, + "auroc": 0.7415649134918237, + "auprc": 0.07995276668230611, + "brier": 0.029370123300400383, + "calibration": { + "observed_rate": 0.030985915492957747, + "mean_prediction": 0.02719142797875726, + "calibration_in_the_large": -0.003794487514200487, + "expected_calibration_error_10bin": 0.0037944875142004878, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.874076679563841 + }, + { + "valid": 2485, + "positives": 82, + "negatives": 2403, + "auroc": 0.7507181064320007, + "auprc": 0.09009639197183521, + "brier": 0.03108337342344377, + "calibration": { + "observed_rate": 0.03299798792756539, + "mean_prediction": 0.028723506255251482, + "calibration_in_the_large": -0.0042744816723139095, + "expected_calibration_error_10bin": 0.004274481672313913, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.874076679563841 + }, + { + "valid": 2485, + "positives": 87, + "negatives": 2398, + "auroc": 0.7453193753415203, + "auprc": 0.09202832085592401, + "brier": 0.03290446635904798, + "calibration": { + "observed_rate": 0.03501006036217304, + "mean_prediction": 0.030464860423040807, + "calibration_in_the_large": -0.00454519993913223, + "expected_calibration_error_10bin": 0.00454519993913223, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.874076679563841 + }, + { + "valid": 2485, + "positives": 93, + "negatives": 2392, + "auroc": 0.7422186859423886, + "auprc": 0.09686555763555024, + "brier": 0.035044200938034564, + "calibration": { + "observed_rate": 0.03742454728370221, + "mean_prediction": 0.03161475333222141, + "calibration_in_the_large": -0.0058097939514807975, + "expected_calibration_error_10bin": 0.006255244736895114, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.874076679563841 + }, + { + "valid": 2485, + "positives": 97, + "negatives": 2388, + "auroc": 0.7390302025591877, + "auprc": 0.09751697031695561, + "brier": 0.03650020514054431, + "calibration": { + "observed_rate": 0.03903420523138833, + "mean_prediction": 0.03286181937704534, + "calibration_in_the_large": -0.006172385854342988, + "expected_calibration_error_10bin": 0.006659208481542957, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.874076679563841 + }, + { + "valid": 2485, + "positives": 103, + "negatives": 2382, + "auroc": 0.7412062964140438, + "auprc": 0.10293785530010273, + "brier": 0.03858358505459184, + "calibration": { + "observed_rate": 0.04144869215291751, + "mean_prediction": 0.034340832363326905, + "calibration_in_the_large": -0.007107859789590602, + "expected_calibration_error_10bin": 0.007606046552014665, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.874076679563841 + }, + { + "valid": 2485, + "positives": 104, + "negatives": 2381, + "auroc": 0.742100927212225, + "auprc": 0.10352808813170841, + "brier": 0.03893420439458631, + "calibration": { + "observed_rate": 0.041851106639839035, + "mean_prediction": 0.03455501310480477, + "calibration_in_the_large": -0.0072960935350342634, + "expected_calibration_error_10bin": 0.007796866035696038, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.874076679563841 + } + ], + "reason": null + }, + "I96": { + "time_averaged_auroc": 0.8337378434232238, + "time_averaged_auprc": 0.2960146560904321, + "valid_timepoint_cells": 12, + "timepoints": [ + { + "valid": 2831, + "positives": 0, + "negatives": 2831, + "auroc": null, + "auprc": null, + "brier": 6.400027484560067e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00032245798888235004, + "calibration_in_the_large": 0.00032245798888235004, + "expected_calibration_error_10bin": 0.00032245798888235004, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 1.0, + "auprc": 1.0, + "brier": 0.0003441209536747345, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.0005524323180524768, + "calibration_in_the_large": 0.0001992002445802055, + "expected_calibration_error_10bin": 0.0001992002445802055, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 3, + "negatives": 2828, + "auroc": 0.9532060348892032, + "auprc": 0.3506350757205667, + "brier": 0.0010414515286291679, + "calibration": { + "observed_rate": 0.0010596962204168139, + "mean_prediction": 0.0007320368363917797, + "calibration_in_the_large": -0.0003276593840250342, + "expected_calibration_error_10bin": 0.0003276593840250342, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.8197736116024054, + "auprc": 0.2640556124236891, + "brier": 0.0013934922282655446, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0008102724877120577, + "calibration_in_the_large": -0.0006026558061770274, + "expected_calibration_error_10bin": 0.0006026558061770274, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.8191545808277326, + "auprc": 0.26397525715874337, + "brier": 0.0013900587422119972, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.000991473554084484, + "calibration_in_the_large": -0.0004214547398046012, + "expected_calibration_error_10bin": 0.0004214547398046012, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.8179165192783869, + "auprc": 0.26256042181945427, + "brier": 0.0013874300410257909, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.001102209649073497, + "calibration_in_the_large": -0.00031071864481558805, + "expected_calibration_error_10bin": 0.00031071864481558805, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.7863411181882519, + "auprc": 0.21086263340781303, + "brier": 0.001735297804783961, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.001312446489458709, + "calibration_in_the_large": -0.0004537138779026474, + "expected_calibration_error_10bin": 0.0004537138779026474, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.7876857749469215, + "auprc": 0.21104454649250598, + "brier": 0.0017346876823894648, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.0014010523987145163, + "calibration_in_the_large": -0.00036510796864683997, + "expected_calibration_error_10bin": 0.00036510796864683997, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.7862703467799009, + "auprc": 0.2108492098121315, + "brier": 0.0017338973330878805, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.0015259826665399987, + "calibration_in_the_large": -0.0002401777008213576, + "expected_calibration_error_10bin": 0.0002401777008213576, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.7868365180467092, + "auprc": 0.21040218611689648, + "brier": 0.0017318487447310045, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.0016668814510809185, + "calibration_in_the_large": -9.927891628043776e-05, + "expected_calibration_error_10bin": 9.927891628043776e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 6, + "negatives": 2825, + "auroc": 0.8169911504424778, + "auprc": 0.18845871952949753, + "brier": 0.002068107202585445, + "calibration": { + "observed_rate": 0.0021193924408336277, + "mean_prediction": 0.0018848233409654864, + "calibration_in_the_large": -0.00023456909986814133, + "expected_calibration_error_10bin": 0.00023456909986814133, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 6, + "negatives": 2825, + "auroc": 0.8153392330383481, + "auprc": 0.1896661053019436, + "brier": 0.0020662343245997643, + "calibration": { + "observed_rate": 0.0021193924408336277, + "mean_prediction": 0.0020275766470847817, + "calibration_in_the_large": -9.181579374884603e-05, + "expected_calibration_error_10bin": 9.181579374884603e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 6, + "negatives": 2825, + "auroc": 0.8153392330383481, + "auprc": 0.1896661053019436, + "brier": 0.002066210449213989, + "calibration": { + "observed_rate": 0.0021193924408336277, + "mean_prediction": 0.002033851834614038, + "calibration_in_the_large": -8.554060621958955e-05, + "expected_calibration_error_10bin": 8.554060621958955e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + } + ], + "reason": null + }, + "I97": { + "time_averaged_auroc": 0.7653151462066716, + "time_averaged_auprc": 0.012119090918732759, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2740, + "positives": 4, + "negatives": 2736, + "auroc": 0.8868786549707602, + "auprc": 0.016710010100251253, + "brier": 0.0014504427435559622, + "calibration": { + "observed_rate": 0.00145985401459854, + "mean_prediction": 0.0014508583803861947, + "calibration_in_the_large": -8.995634212345324e-06, + "expected_calibration_error_10bin": 8.995634212345324e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + { + "valid": 2740, + "positives": 4, + "negatives": 2736, + "auroc": 0.8788377192982456, + "auprc": 0.015349553937363132, + "brier": 0.0014521578371348718, + "calibration": { + "observed_rate": 0.00145985401459854, + "mean_prediction": 0.0019030425106745371, + "calibration_in_the_large": 0.0004431884960759971, + "expected_calibration_error_10bin": 0.0004431884960759971, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + { + "valid": 2740, + "positives": 7, + "negatives": 2733, + "auroc": 0.7819246249542627, + "auprc": 0.01219559551913729, + "brier": 0.0025431393241635725, + "calibration": { + "observed_rate": 0.0025547445255474453, + "mean_prediction": 0.0023010222361282656, + "calibration_in_the_large": -0.00025372228941917966, + "expected_calibration_error_10bin": 0.00025372228941917966, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + { + "valid": 2740, + "positives": 7, + "negatives": 2733, + "auroc": 0.7853222518425592, + "auprc": 0.012119755646169102, + "brier": 0.002544410754576502, + "calibration": { + "observed_rate": 0.0025547445255474453, + "mean_prediction": 0.0026884441882828428, + "calibration_in_the_large": 0.00013369966273539752, + "expected_calibration_error_10bin": 0.00013369966273539752, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + { + "valid": 2740, + "positives": 7, + "negatives": 2733, + "auroc": 0.781767811405572, + "auprc": 0.011721134572758278, + "brier": 0.002547069116196823, + "calibration": { + "observed_rate": 0.0025547445255474453, + "mean_prediction": 0.0030415743178840732, + "calibration_in_the_large": 0.000486829792336628, + "expected_calibration_error_10bin": 0.000486829792336628, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + { + "valid": 2740, + "positives": 7, + "negatives": 2733, + "auroc": 0.7769588625790602, + "auprc": 0.01123375370020888, + "brier": 0.002549922544286864, + "calibration": { + "observed_rate": 0.0025547445255474453, + "mean_prediction": 0.0033691235861252828, + "calibration_in_the_large": 0.0008143790605778375, + "expected_calibration_error_10bin": 0.0008143790605778375, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + { + "valid": 2740, + "positives": 9, + "negatives": 2731, + "auroc": 0.7110541519183042, + "auprc": 0.009896188639469748, + "brier": 0.0032785578377338563, + "calibration": { + "observed_rate": 0.0032846715328467154, + "mean_prediction": 0.0036424176208945764, + "calibration_in_the_large": 0.00035774608804786103, + "expected_calibration_error_10bin": 0.00035774608804786103, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + { + "valid": 2740, + "positives": 10, + "negatives": 2730, + "auroc": 0.7275091575091575, + "auprc": 0.010902669602627766, + "brier": 0.0036405168167804674, + "calibration": { + "observed_rate": 0.0036496350364963502, + "mean_prediction": 0.0038654247210250597, + "calibration_in_the_large": 0.0002157896845287094, + "expected_calibration_error_10bin": 0.0002157896845287094, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + { + "valid": 2740, + "positives": 10, + "negatives": 2730, + "auroc": 0.7256410256410256, + "auprc": 0.0109228091847287, + "brier": 0.0036440843179714553, + "calibration": { + "observed_rate": 0.0036496350364963502, + "mean_prediction": 0.004096706173609794, + "calibration_in_the_large": 0.00044707113711344414, + "expected_calibration_error_10bin": 0.00044707113711344414, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + { + "valid": 2740, + "positives": 11, + "negatives": 2729, + "auroc": 0.7192777907325361, + "auprc": 0.010739203475981821, + "brier": 0.004009587233408744, + "calibration": { + "observed_rate": 0.0040145985401459855, + "mean_prediction": 0.004362811365861184, + "calibration_in_the_large": 0.0003482128257151981, + "expected_calibration_error_10bin": 0.00034821282571519883, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + { + "valid": 2740, + "positives": 11, + "negatives": 2729, + "auroc": 0.717712115660082, + "auprc": 0.010571108716909729, + "brier": 0.004012722268398647, + "calibration": { + "observed_rate": 0.0040145985401459855, + "mean_prediction": 0.004511979551420566, + "calibration_in_the_large": 0.0004973810112745801, + "expected_calibration_error_10bin": 0.0004973810112745809, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + { + "valid": 2740, + "positives": 11, + "negatives": 2729, + "auroc": 0.7168126852993104, + "auprc": 0.010474117092684926, + "brier": 0.004016780098433809, + "calibration": { + "observed_rate": 0.0040145985401459855, + "mean_prediction": 0.004666692994273247, + "calibration_in_the_large": 0.0006520944541272616, + "expected_calibration_error_10bin": 0.0006520944541272625, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + { + "valid": 2740, + "positives": 12, + "negatives": 2728, + "auroc": 0.7394000488758553, + "auprc": 0.014712281755235264, + "brier": 0.0043590862784264085, + "calibration": { + "observed_rate": 0.004379562043795621, + "mean_prediction": 0.0046757159441873945, + "calibration_in_the_large": 0.0002961539003917737, + "expected_calibration_error_10bin": 0.000296153900391774, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + } + ], + "reason": null + }, + "J02": { + "time_averaged_auroc": 0.7792112051121536, + "time_averaged_auprc": 0.0025581492474859805, + "valid_timepoint_cells": 12, + "timepoints": [ + { + "valid": 2825, + "positives": 0, + "negatives": 2825, + "auroc": null, + "auprc": null, + "brier": 8.457941961220947e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00034522048362104, + "calibration_in_the_large": 0.00034522048362104, + "expected_calibration_error_10bin": 0.00034522048362104, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 1, + "negatives": 2824, + "auroc": 0.7223796033994334, + "auprc": 0.0012738853503184713, + "brier": 0.0003564165816599645, + "calibration": { + "observed_rate": 0.00035398230088495576, + "mean_prediction": 0.0005850444054702375, + "calibration_in_the_large": 0.00023106210458528176, + "expected_calibration_error_10bin": 0.00023106210458528176, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 1, + "negatives": 2824, + "auroc": 0.7223796033994334, + "auprc": 0.0012738853503184713, + "brier": 0.00035855634937820215, + "calibration": { + "observed_rate": 0.00035398230088495576, + "mean_prediction": 0.0007738523771978639, + "calibration_in_the_large": 0.0004198700763129081, + "expected_calibration_error_10bin": 0.0004198700763129081, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.779667020899752, + "auprc": 0.0023695156838704984, + "brier": 0.0007132383279798468, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.0008771034143169708, + "calibration_in_the_large": 0.00016913881254705925, + "expected_calibration_error_10bin": 0.00016913881254705925, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.7748848742472547, + "auprc": 0.002308334105868175, + "brier": 0.0007163100737228848, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.001066583705625849, + "calibration_in_the_large": 0.00035861910385593754, + "expected_calibration_error_10bin": 0.00035861910385593754, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.777718738930216, + "auprc": 0.002327538383613701, + "brier": 0.0007184453636240012, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.0011604329705816813, + "calibration_in_the_large": 0.0004524683688117698, + "expected_calibration_error_10bin": 0.0004524683688117698, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.7805526036131775, + "auprc": 0.002348547089855574, + "brier": 0.0007200862055189886, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.0012644250321627462, + "calibration_in_the_large": 0.0005564604303928347, + "expected_calibration_error_10bin": 0.0005564604303928347, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.7812610697839178, + "auprc": 0.0023576083721717576, + "brier": 0.0007214298066097277, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.0013234963496545314, + "calibration_in_the_large": 0.0006155317478846199, + "expected_calibration_error_10bin": 0.0006155317478846199, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.7807297201558625, + "auprc": 0.0023497129028947385, + "brier": 0.0007227711069319542, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.001392172265713375, + "calibration_in_the_large": 0.0006842076639434635, + "expected_calibration_error_10bin": 0.0006842076639434635, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.7803754870704924, + "auprc": 0.0023465187910303646, + "brier": 0.0007266109548831483, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.001504446298728256, + "calibration_in_the_large": 0.0007964816969583446, + "expected_calibration_error_10bin": 0.0007964816969583446, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.7803754870704924, + "auprc": 0.002345543601572119, + "brier": 0.0007272749722508342, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.0015346488051386385, + "calibration_in_the_large": 0.000826684203368727, + "expected_calibration_error_10bin": 0.000826684203368727, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 3, + "negatives": 2822, + "auroc": 0.8351051263879046, + "auprc": 0.004698834080913642, + "brier": 0.0010808158024749376, + "calibration": { + "observed_rate": 0.0010619469026548673, + "mean_prediction": 0.001643563689511018, + "calibration_in_the_large": 0.0005816167868561506, + "expected_calibration_error_10bin": 0.0005816167868561506, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 3, + "negatives": 2822, + "auroc": 0.8351051263879046, + "auprc": 0.004697867257404251, + "brier": 0.0010809643904898933, + "calibration": { + "observed_rate": 0.0010619469026548673, + "mean_prediction": 0.0016501681903888167, + "calibration_in_the_large": 0.0005882212877339494, + "expected_calibration_error_10bin": 0.0005882212877339494, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + } + ], + "reason": null + }, + "J06": { + "time_averaged_auroc": 0.5990876403664086, + "time_averaged_auprc": 0.007311880924112765, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2816, + "positives": 1, + "negatives": 2815, + "auroc": 0.503019538188277, + "auprc": 0.0007142857142857143, + "brier": 0.0003578418297187441, + "calibration": { + "observed_rate": 0.0003551136363636364, + "mean_prediction": 0.0005688334093088605, + "calibration_in_the_large": 0.00021371977294522412, + "expected_calibration_error_10bin": 0.00021371977294522412, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 2, + "negatives": 2814, + "auroc": 0.5934612651030562, + "auprc": 0.0013699265845576974, + "brier": 0.0007234123852664253, + "calibration": { + "observed_rate": 0.0007102272727272727, + "mean_prediction": 0.0013011366835888277, + "calibration_in_the_large": 0.000590909410861555, + "expected_calibration_error_10bin": 0.000590909410861555, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 3, + "negatives": 2813, + "auroc": 0.5081170754828771, + "auprc": 0.0014718952347755499, + "brier": 0.0010878643625905748, + "calibration": { + "observed_rate": 0.001065340909090909, + "mean_prediction": 0.0016718949925017444, + "calibration_in_the_large": 0.0006065540834108353, + "expected_calibration_error_10bin": 0.0006065540834108353, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 6, + "negatives": 2810, + "auroc": 0.555693950177936, + "auprc": 0.00649698459565079, + "brier": 0.0021435574545621903, + "calibration": { + "observed_rate": 0.002130681818181818, + "mean_prediction": 0.0019408562618356098, + "calibration_in_the_large": -0.00018982555634620827, + "expected_calibration_error_10bin": 0.00018982555634620827, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 6, + "negatives": 2810, + "auroc": 0.5443060498220641, + "auprc": 0.006528380178170519, + "brier": 0.002145932767970493, + "calibration": { + "observed_rate": 0.002130681818181818, + "mean_prediction": 0.0021739608183912133, + "calibration_in_the_large": 4.3279000209395235e-05, + "expected_calibration_error_10bin": 4.3279000209395235e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 7, + "negatives": 2809, + "auroc": 0.5867873671362457, + "auprc": 0.006758761226198238, + "brier": 0.0025084769920040704, + "calibration": { + "observed_rate": 0.0024857954545454545, + "mean_prediction": 0.0024480709943449338, + "calibration_in_the_large": -3.772446020052075e-05, + "expected_calibration_error_10bin": 0.0001095906228298106, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 8, + "negatives": 2808, + "auroc": 0.6405359686609686, + "auprc": 0.009373011317839706, + "brier": 0.002860711881069447, + "calibration": { + "observed_rate": 0.002840909090909091, + "mean_prediction": 0.0027686563559644706, + "calibration_in_the_large": -7.225273494462043e-05, + "expected_calibration_error_10bin": 0.00014839413914428799, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 8, + "negatives": 2808, + "auroc": 0.6392450142450142, + "auprc": 0.009209751684776694, + "brier": 0.002864413852296398, + "calibration": { + "observed_rate": 0.002840909090909091, + "mean_prediction": 0.0029457538937911272, + "calibration_in_the_large": 0.00010484480288203623, + "expected_calibration_error_10bin": 0.00010484480288203668, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 8, + "negatives": 2808, + "auroc": 0.6372863247863247, + "auprc": 0.00913354962929751, + "brier": 0.002867759779673589, + "calibration": { + "observed_rate": 0.002840909090909091, + "mean_prediction": 0.0031395403015039847, + "calibration_in_the_large": 0.0002986312105948937, + "expected_calibration_error_10bin": 0.0002986312105948939, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 9, + "negatives": 2807, + "auroc": 0.6722875351304279, + "auprc": 0.01103961595622196, + "brier": 0.0032336706457992176, + "calibration": { + "observed_rate": 0.0031960227272727275, + "mean_prediction": 0.0033860704801120596, + "calibration_in_the_large": 0.00019004775283933215, + "expected_calibration_error_10bin": 0.0001900477528393328, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 10, + "negatives": 2806, + "auroc": 0.6346044191019244, + "auprc": 0.010392581667762352, + "brier": 0.003593239453628089, + "calibration": { + "observed_rate": 0.0035511363636363635, + "mean_prediction": 0.0035744283988802554, + "calibration_in_the_large": 2.329203524389185e-05, + "expected_calibration_error_10bin": 0.0003298511818405299, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 12, + "negatives": 2804, + "auroc": 0.6362933903946743, + "auprc": 0.011274784778335547, + "brier": 0.004302193228708392, + "calibration": { + "observed_rate": 0.004261363636363636, + "mean_prediction": 0.003700647806319714, + "calibration_in_the_large": -0.0005607158300439219, + "expected_calibration_error_10bin": 0.000933109553536518, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 12, + "negatives": 2804, + "auroc": 0.6365014265335235, + "auprc": 0.011290923445593666, + "brier": 0.004303559792299807, + "calibration": { + "observed_rate": 0.004261363636363636, + "mean_prediction": 0.003742510184617293, + "calibration_in_the_large": -0.0005188534517463431, + "expected_calibration_error_10bin": 0.0009668226686843895, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + } + ], + "reason": null + }, + "J12": { + "time_averaged_auroc": 0.9941654879773693, + "time_averaged_auprc": 0.05718954248366013, + "valid_timepoint_cells": 4, + "timepoints": [ + { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 1.3261798743718254e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0004013874566146742, + "calibration_in_the_large": 0.0004013874566146742, + "expected_calibration_error_10bin": 0.0004013874566146742, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 2.840904967692106e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0005996100459074794, + "calibration_in_the_large": 0.0005996100459074794, + "expected_calibration_error_10bin": 0.0005996100459074794, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 1.3320752714292828e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0013389249796106895, + "calibration_in_the_large": 0.0013389249796106895, + "expected_calibration_error_10bin": 0.0013389249796106895, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 1.6995160441647194e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.001461644809381271, + "calibration_in_the_large": 0.001461644809381271, + "expected_calibration_error_10bin": 0.001461644809381271, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 2.538726553785425e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0018122703311636641, + "calibration_in_the_large": 0.0018122703311636641, + "expected_calibration_error_10bin": 0.0018122703311636644, + "nonempty_bins": 2 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 3.373066383003215e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.002030469225790916, + "calibration_in_the_large": 0.002030469225790916, + "expected_calibration_error_10bin": 0.002030469225790916, + "nonempty_bins": 2 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 4.2974687510559116e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.002261138998628252, + "calibration_in_the_large": 0.002261138998628252, + "expected_calibration_error_10bin": 0.0022611389986282524, + "nonempty_bins": 2 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 5.315087509660948e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0024318659246330425, + "calibration_in_the_large": 0.0024318659246330425, + "expected_calibration_error_10bin": 0.0024318659246330425, + "nonempty_bins": 2 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 6.69904320259068e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.002643004378440701, + "calibration_in_the_large": 0.002643004378440701, + "expected_calibration_error_10bin": 0.002643004378440701, + "nonempty_bins": 3 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 1, + "negatives": 2828, + "auroc": 0.9943422913719944, + "auprc": 0.058823529411764705, + "brier": 0.00041709794900985394, + "calibration": { + "observed_rate": 0.0003534817956875221, + "mean_prediction": 0.002971193283600711, + "calibration_in_the_large": 0.002617711487913189, + "expected_calibration_error_10bin": 0.0026177114879131886, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 1, + "negatives": 2828, + "auroc": 0.9943422913719944, + "auprc": 0.058823529411764705, + "brier": 0.0004329588494120905, + "calibration": { + "observed_rate": 0.0003534817956875221, + "mean_prediction": 0.0032073440189141164, + "calibration_in_the_large": 0.0028538622232265943, + "expected_calibration_error_10bin": 0.0028538622232265943, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 1, + "negatives": 2828, + "auroc": 0.993988684582744, + "auprc": 0.05555555555555555, + "brier": 0.00045075896412040254, + "calibration": { + "observed_rate": 0.0003534817956875221, + "mean_prediction": 0.003410427505936673, + "calibration_in_the_large": 0.003056945710249151, + "expected_calibration_error_10bin": 0.0030569457102491504, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 1, + "negatives": 2828, + "auroc": 0.993988684582744, + "auprc": 0.05555555555555555, + "brier": 0.0004532866638162191, + "calibration": { + "observed_rate": 0.0003534817956875221, + "mean_prediction": 0.0034504663792695113, + "calibration_in_the_large": 0.0030969845835819893, + "expected_calibration_error_10bin": 0.0030969845835819893, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + } + ], + "reason": null + }, + "J15": { + "time_averaged_auroc": 0.711987962561103, + "time_averaged_auprc": 0.010686033789829245, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2795, + "positives": 1, + "negatives": 2794, + "auroc": 0.8539727988546886, + "auprc": 0.0024449877750611247, + "brier": 0.00035913023876705364, + "calibration": { + "observed_rate": 0.00035778175313059033, + "mean_prediction": 0.0007092166557426716, + "calibration_in_the_large": 0.00035143490261208124, + "expected_calibration_error_10bin": 0.00035143490261208124, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9831164263102357 + }, + { + "valid": 2795, + "positives": 3, + "negatives": 2792, + "auroc": 0.7369866284622731, + "auprc": 0.002970364530176904, + "brier": 0.0010763258102041739, + "calibration": { + "observed_rate": 0.001073345259391771, + "mean_prediction": 0.0011712287234931962, + "calibration_in_the_large": 9.788346410142526e-05, + "expected_calibration_error_10bin": 9.788346410142526e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9831164263102357 + }, + { + "valid": 2795, + "positives": 7, + "negatives": 2788, + "auroc": 0.6305595408895266, + "auprc": 0.00729163671244151, + "brier": 0.00250305194648224, + "calibration": { + "observed_rate": 0.0025044722719141325, + "mean_prediction": 0.0016320224050209967, + "calibration_in_the_large": -0.0008724498668931358, + "expected_calibration_error_10bin": 0.0008724498668931358, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9831164263102357 + }, + { + "valid": 2795, + "positives": 9, + "negatives": 2786, + "auroc": 0.6533460955571508, + "auprc": 0.0075959186679623834, + "brier": 0.0032176901854016862, + "calibration": { + "observed_rate": 0.0032200357781753132, + "mean_prediction": 0.0018969984614733662, + "calibration_in_the_large": -0.001323037316701947, + "expected_calibration_error_10bin": 0.001323037316701947, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9831164263102357 + }, + { + "valid": 2795, + "positives": 9, + "negatives": 2786, + "auroc": 0.6523490468214086, + "auprc": 0.007593162128564283, + "brier": 0.0032189114296458806, + "calibration": { + "observed_rate": 0.0032200357781753132, + "mean_prediction": 0.002112131906932891, + "calibration_in_the_large": -0.0011079038712424223, + "expected_calibration_error_10bin": 0.0011079038712424223, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9831164263102357 + }, + { + "valid": 2795, + "positives": 10, + "negatives": 2785, + "auroc": 0.6839497307001795, + "auprc": 0.010638802811192104, + "brier": 0.0035694226537488142, + "calibration": { + "observed_rate": 0.0035778175313059034, + "mean_prediction": 0.0023286158427187416, + "calibration_in_the_large": -0.0012492016885871618, + "expected_calibration_error_10bin": 0.0012492016885871618, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9831164263102357 + }, + { + "valid": 2795, + "positives": 12, + "negatives": 2783, + "auroc": 0.6945442567972212, + "auprc": 0.01114454031387497, + "brier": 0.004282563047203749, + "calibration": { + "observed_rate": 0.004293381037567084, + "mean_prediction": 0.002601274061361533, + "calibration_in_the_large": -0.001692106976205551, + "expected_calibration_error_10bin": 0.001692106976205551, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9831164263102357 + }, + { + "valid": 2795, + "positives": 12, + "negatives": 2783, + "auroc": 0.6937058330338963, + "auprc": 0.011404629149916972, + "brier": 0.004283485249356414, + "calibration": { + "observed_rate": 0.004293381037567084, + "mean_prediction": 0.0027641186466214104, + "calibration_in_the_large": -0.0015292623909456734, + "expected_calibration_error_10bin": 0.0015292623909456734, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9831164263102357 + }, + { + "valid": 2795, + "positives": 14, + "negatives": 2781, + "auroc": 0.7162377356552114, + "auprc": 0.012683286685524693, + "brier": 0.004992243136932619, + "calibration": { + "observed_rate": 0.005008944543828265, + "mean_prediction": 0.0029541470194002066, + "calibration_in_the_large": -0.0020547975244280584, + "expected_calibration_error_10bin": 0.0020547975244280584, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9831164263102357 + }, + { + "valid": 2795, + "positives": 15, + "negatives": 2780, + "auroc": 0.7347721822541966, + "auprc": 0.016159596282708306, + "brier": 0.005338468883498124, + "calibration": { + "observed_rate": 0.005366726296958855, + "mean_prediction": 0.0030674529471409273, + "calibration_in_the_large": -0.0022992733498179273, + "expected_calibration_error_10bin": 0.0023731027816844188, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9831164263102357 + }, + { + "valid": 2795, + "positives": 15, + "negatives": 2780, + "auroc": 0.7353956834532374, + "auprc": 0.016276409466957235, + "brier": 0.00533938893670153, + "calibration": { + "observed_rate": 0.005366726296958855, + "mean_prediction": 0.0032445549843283053, + "calibration_in_the_large": -0.0021221713126305494, + "expected_calibration_error_10bin": 0.0022040879272244383, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9831164263102357 + }, + { + "valid": 2795, + "positives": 15, + "negatives": 2780, + "auroc": 0.7350119904076738, + "auprc": 0.016357369121188264, + "brier": 0.005340176732796283, + "calibration": { + "observed_rate": 0.005366726296958855, + "mean_prediction": 0.003426287738043495, + "calibration_in_the_large": -0.0019404385589153598, + "expected_calibration_error_10bin": 0.0020285076150577818, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9831164263102357 + }, + { + "valid": 2795, + "positives": 15, + "negatives": 2780, + "auroc": 0.7350119904076738, + "auprc": 0.016357735622211433, + "brier": 0.005340276598130697, + "calibration": { + "observed_rate": 0.005366726296958855, + "mean_prediction": 0.003452809073790772, + "calibration_in_the_large": -0.0019139172231680828, + "expected_calibration_error_10bin": 0.0020027360183074165, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9831164263102357 + } + ], + "reason": null + }, + "J18": { + "time_averaged_auroc": 0.7818578938053035, + "time_averaged_auprc": 0.04865603777242315, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2671, + "positives": 9, + "negatives": 2662, + "auroc": 0.8179731196260122, + "auprc": 0.01209851101496962, + "brier": 0.003353244236728909, + "calibration": { + "observed_rate": 0.0033695245226506927, + "mean_prediction": 0.002807222892190635, + "calibration_in_the_large": -0.0005623016304600577, + "expected_calibration_error_10bin": 0.0005623016304600577, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + { + "valid": 2671, + "positives": 14, + "negatives": 2657, + "auroc": 0.813726544437873, + "auprc": 0.019108330983346015, + "brier": 0.005205816190340721, + "calibration": { + "observed_rate": 0.005241482590789966, + "mean_prediction": 0.005542826242145821, + "calibration_in_the_large": 0.0003013436513558546, + "expected_calibration_error_10bin": 0.00030134365135585367, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + { + "valid": 2671, + "positives": 22, + "negatives": 2649, + "auroc": 0.8169806788153334, + "auprc": 0.04187671989878536, + "brier": 0.008062771309727393, + "calibration": { + "observed_rate": 0.008236615499812805, + "mean_prediction": 0.006938476068947115, + "calibration_in_the_large": -0.0012981394308656897, + "expected_calibration_error_10bin": 0.0016548631320920926, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + { + "valid": 2671, + "positives": 27, + "negatives": 2644, + "auroc": 0.7635316859976466, + "auprc": 0.038380605430600186, + "brier": 0.009913383663551198, + "calibration": { + "observed_rate": 0.010108573567952079, + "mean_prediction": 0.00829568037280742, + "calibration_in_the_large": -0.0018128931951446586, + "expected_calibration_error_10bin": 0.0018128931951446588, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + { + "valid": 2671, + "positives": 31, + "negatives": 2640, + "auroc": 0.7662512218963832, + "auprc": 0.04426387140577434, + "brier": 0.01132929267395973, + "calibration": { + "observed_rate": 0.011606140022463497, + "mean_prediction": 0.009187403246882787, + "calibration_in_the_large": -0.0024187367755807102, + "expected_calibration_error_10bin": 0.0026584945121641635, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + { + "valid": 2671, + "positives": 37, + "negatives": 2634, + "auroc": 0.7718606989677604, + "auprc": 0.04758284050087388, + "brier": 0.013486100278328928, + "calibration": { + "observed_rate": 0.013852489704230626, + "mean_prediction": 0.010106474983496087, + "calibration_in_the_large": -0.0037460147207345387, + "expected_calibration_error_10bin": 0.0042102925431765584, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + { + "valid": 2671, + "positives": 44, + "negatives": 2627, + "auroc": 0.7856351870436378, + "auprc": 0.054601471468734945, + "brier": 0.01596010230596489, + "calibration": { + "observed_rate": 0.01647323099962561, + "mean_prediction": 0.011651303342357587, + "calibration_in_the_large": -0.004821927657268023, + "expected_calibration_error_10bin": 0.005625614578358433, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + { + "valid": 2671, + "positives": 51, + "negatives": 2620, + "auroc": 0.7707828169435713, + "auprc": 0.05780714118582934, + "brier": 0.01847103048069054, + "calibration": { + "observed_rate": 0.019093972295020592, + "mean_prediction": 0.012526024460913556, + "calibration_in_the_large": -0.006567947834107036, + "expected_calibration_error_10bin": 0.007043423697872966, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + { + "valid": 2671, + "positives": 52, + "negatives": 2619, + "auroc": 0.7728140511645666, + "auprc": 0.05838948674209327, + "brier": 0.01882440241453988, + "calibration": { + "observed_rate": 0.019468363908648447, + "mean_prediction": 0.013043661078639895, + "calibration_in_the_large": -0.006424702830008552, + "expected_calibration_error_10bin": 0.0070592996696505475, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + { + "valid": 2671, + "positives": 55, + "negatives": 2616, + "auroc": 0.7734222963580761, + "auprc": 0.05961381156137561, + "brier": 0.0199089417955127, + "calibration": { + "observed_rate": 0.02059153874953201, + "mean_prediction": 0.013895929914433074, + "calibration_in_the_large": -0.006695608835098935, + "expected_calibration_error_10bin": 0.008065152066422507, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + { + "valid": 2671, + "positives": 62, + "negatives": 2609, + "auroc": 0.7754052349806501, + "auprc": 0.06581512714142879, + "brier": 0.02236356069345673, + "calibration": { + "observed_rate": 0.023212280044926994, + "mean_prediction": 0.014339075414065839, + "calibration_in_the_large": -0.008873204630861156, + "expected_calibration_error_10bin": 0.010554758350280679, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + { + "valid": 2671, + "positives": 64, + "negatives": 2607, + "auroc": 0.7678545742232451, + "auprc": 0.06645272652145129, + "brier": 0.02308704484780913, + "calibration": { + "observed_rate": 0.023961063272182705, + "mean_prediction": 0.015098819947375901, + "calibration_in_the_large": -0.008862243324806804, + "expected_calibration_error_10bin": 0.010420995883047972, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + { + "valid": 2671, + "positives": 64, + "negatives": 2607, + "auroc": 0.7679145090141926, + "auprc": 0.06653784718623833, + "brier": 0.023087745912199493, + "calibration": { + "observed_rate": 0.023961063272182705, + "mean_prediction": 0.015182388195759086, + "calibration_in_the_large": -0.008778675076423619, + "expected_calibration_error_10bin": 0.010439687218773542, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + } + ], + "reason": null + }, + "J30": { + "time_averaged_auroc": 0.7407932881806524, + "time_averaged_auprc": 0.02201824246192983, + "valid_timepoint_cells": 12, + "timepoints": [ + { + "valid": 2815, + "positives": 0, + "negatives": 2815, + "auroc": null, + "auprc": null, + "brier": 2.508407324722376e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00030386358861050314, + "calibration_in_the_large": 0.00030386358861050314, + "expected_calibration_error_10bin": 0.00030386358861050314, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9901512486809708 + }, + { + "valid": 2815, + "positives": 1, + "negatives": 2814, + "auroc": 0.9946695095948828, + "auprc": 0.0625, + "brier": 0.00035227739414959714, + "calibration": { + "observed_rate": 0.00035523978685612787, + "mean_prediction": 0.0005097462379006685, + "calibration_in_the_large": 0.00015450645104454064, + "expected_calibration_error_10bin": 0.00015450645104454064, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + { + "valid": 2815, + "positives": 3, + "negatives": 2812, + "auroc": 0.7479848269321954, + "auprc": 0.0192432513469073, + "brier": 0.0010614740817706996, + "calibration": { + "observed_rate": 0.0010657193605683837, + "mean_prediction": 0.0006883937415110028, + "calibration_in_the_large": -0.00037732561905738085, + "expected_calibration_error_10bin": 0.00037732561905738085, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + { + "valid": 2815, + "positives": 3, + "negatives": 2812, + "auroc": 0.7661213845424372, + "auprc": 0.017067642960842424, + "brier": 0.0010612102433338792, + "calibration": { + "observed_rate": 0.0010657193605683837, + "mean_prediction": 0.0008192431060459277, + "calibration_in_the_large": -0.000246476254522456, + "expected_calibration_error_10bin": 0.000246476254522456, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + { + "valid": 2815, + "positives": 6, + "negatives": 2809, + "auroc": 0.686068589058977, + "auprc": 0.0199559531741927, + "brier": 0.0021213540234015474, + "calibration": { + "observed_rate": 0.0021314387211367673, + "mean_prediction": 0.0009348989876073915, + "calibration_in_the_large": -0.0011965397335293758, + "expected_calibration_error_10bin": 0.0011965397335293758, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + { + "valid": 2815, + "positives": 6, + "negatives": 2809, + "auroc": 0.6883825798030141, + "auprc": 0.01915787192483127, + "brier": 0.0021209019972554975, + "calibration": { + "observed_rate": 0.0021314387211367673, + "mean_prediction": 0.0010672140426988147, + "calibration_in_the_large": -0.0010642246784379526, + "expected_calibration_error_10bin": 0.0010642246784379526, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + { + "valid": 2815, + "positives": 6, + "negatives": 2809, + "auroc": 0.6876112495550017, + "auprc": 0.018345727005862834, + "brier": 0.0021208735780274524, + "calibration": { + "observed_rate": 0.0021314387211367673, + "mean_prediction": 0.0011338623156561185, + "calibration_in_the_large": -0.0009975764054806489, + "expected_calibration_error_10bin": 0.0009975764054806489, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + { + "valid": 2815, + "positives": 7, + "negatives": 2808, + "auroc": 0.7212047212047212, + "auprc": 0.01889508726994756, + "brier": 0.0024738381732401903, + "calibration": { + "observed_rate": 0.002486678507992895, + "mean_prediction": 0.0012029165991368582, + "calibration_in_the_large": -0.0012837619088560369, + "expected_calibration_error_10bin": 0.0012837619088560369, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + { + "valid": 2815, + "positives": 7, + "negatives": 2808, + "auroc": 0.7208994708994709, + "auprc": 0.018877209886711935, + "brier": 0.0024736434274639646, + "calibration": { + "observed_rate": 0.002486678507992895, + "mean_prediction": 0.0012659574656745834, + "calibration_in_the_large": -0.0012207210423183117, + "expected_calibration_error_10bin": 0.0012207210423183117, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + { + "valid": 2815, + "positives": 7, + "negatives": 2808, + "auroc": 0.7176943426943427, + "auprc": 0.018323660594696894, + "brier": 0.0024730856744381723, + "calibration": { + "observed_rate": 0.002486678507992895, + "mean_prediction": 0.00139837396128697, + "calibration_in_the_large": -0.0010883045467059251, + "expected_calibration_error_10bin": 0.0010883045467059251, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + { + "valid": 2815, + "positives": 7, + "negatives": 2808, + "auroc": 0.7183048433048433, + "auprc": 0.017765188902791957, + "brier": 0.0024730217992222484, + "calibration": { + "observed_rate": 0.002486678507992895, + "mean_prediction": 0.0014598086752192047, + "calibration_in_the_large": -0.0010268698327736904, + "expected_calibration_error_10bin": 0.0010268698327736904, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + { + "valid": 2815, + "positives": 7, + "negatives": 2808, + "auroc": 0.7202889702889703, + "auprc": 0.017157031539022417, + "brier": 0.0024725887532760947, + "calibration": { + "observed_rate": 0.002486678507992895, + "mean_prediction": 0.0015923997845765795, + "calibration_in_the_large": -0.0008942787234163157, + "expected_calibration_error_10bin": 0.0008942787234163157, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + { + "valid": 2815, + "positives": 7, + "negatives": 2808, + "auroc": 0.7202889702889703, + "auprc": 0.01693028493735067, + "brier": 0.0024723637872612393, + "calibration": { + "observed_rate": 0.002486678507992895, + "mean_prediction": 0.0016419690945083366, + "calibration_in_the_large": -0.0008447094134845586, + "expected_calibration_error_10bin": 0.0008447094134845586, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + } + ], + "reason": null + }, + "J32": { + "time_averaged_auroc": 0.6062251786815488, + "time_averaged_auprc": 0.0032416896644816245, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2829, + "positives": 1, + "negatives": 2828, + "auroc": 0.8380480905233381, + "auprc": 0.002178649237472767, + "brier": 0.00035360432305549467, + "calibration": { + "observed_rate": 0.0003534817956875221, + "mean_prediction": 0.0002576656790465919, + "calibration_in_the_large": -9.581611664093018e-05, + "expected_calibration_error_10bin": 9.581611664093018e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 1, + "negatives": 2828, + "auroc": 0.8744695898161244, + "auprc": 0.0028089887640449437, + "brier": 0.00035384536166945907, + "calibration": { + "observed_rate": 0.0003534817956875221, + "mean_prediction": 0.00040183946955109335, + "calibration_in_the_large": 4.835767386357124e-05, + "expected_calibration_error_10bin": 4.835767386357124e-05, + "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.0003552421302141758, + "calibration": { + "observed_rate": 0.0003534817956875221, + "mean_prediction": 0.0005488188893407613, + "calibration_in_the_large": 0.00019533709365323915, + "expected_calibration_error_10bin": 0.00019533709365323915, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.5206933144676336, + "auprc": 0.0027693485022408613, + "brier": 0.0007092305210245876, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0006588592961352008, + "calibration_in_the_large": -4.810429523984341e-05, + "expected_calibration_error_10bin": 4.810429523984341e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.5176865935620799, + "auprc": 0.0025021244452837314, + "brier": 0.0007103987193910344, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0007840244048307614, + "calibration_in_the_large": 7.706081345571717e-05, + "expected_calibration_error_10bin": 7.706081345571717e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.5268836222143615, + "auprc": 0.003224698821036557, + "brier": 0.0007108170627350474, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0009032351969510203, + "calibration_in_the_large": 0.00019627160557597612, + "expected_calibration_error_10bin": 0.00019627160557597612, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.5286522815705695, + "auprc": 0.0036032173771027272, + "brier": 0.0007118616456641295, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0010353630673894353, + "calibration_in_the_large": 0.00032839947601439104, + "expected_calibration_error_10bin": 0.00032839947601439104, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.5275910859568447, + "auprc": 0.0035227724741447894, + "brier": 0.0007145743392303526, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0011304440550149925, + "calibration_in_the_large": 0.0004234804636399483, + "expected_calibration_error_10bin": 0.0004234804636399483, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.5284754156349487, + "auprc": 0.0036235789257576924, + "brier": 0.0007152188631413864, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0011984310986574316, + "calibration_in_the_large": 0.0004914675072823874, + "expected_calibration_error_10bin": 0.0004914675072823874, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.5291828793774319, + "auprc": 0.0037090307522904846, + "brier": 0.0007159114200317269, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0012531130007064908, + "calibration_in_the_large": 0.0005461494093314466, + "expected_calibration_error_10bin": 0.0005461494093314466, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.5272373540856031, + "auprc": 0.003465415422624439, + "brier": 0.0007172937485872368, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0013569185608109673, + "calibration_in_the_large": 0.000649954969435923, + "expected_calibration_error_10bin": 0.000649954969435923, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.5279448178280863, + "auprc": 0.0034848261275884115, + "brier": 0.0007182720050788459, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0014645671799692974, + "calibration_in_the_large": 0.0007576035885942532, + "expected_calibration_error_10bin": 0.0007576035885942532, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.5281216837637072, + "auprc": 0.003503996436613793, + "brier": 0.000718634647468304, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.001486217160730292, + "calibration_in_the_large": 0.0007792535693552479, + "expected_calibration_error_10bin": 0.0007792535693552479, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + } + ], + "reason": null + }, + "J38": { + "time_averaged_auroc": 0.7705539231793288, + "time_averaged_auprc": 0.006203899786412619, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2825, + "positives": 1, + "negatives": 2824, + "auroc": 0.6763456090651558, + "auprc": 0.001092896174863388, + "brier": 0.000354372343857246, + "calibration": { + "observed_rate": 0.00035398230088495576, + "mean_prediction": 0.00043704399447562487, + "calibration_in_the_large": 8.306169359066911e-05, + "expected_calibration_error_10bin": 8.306169359066911e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 1, + "negatives": 2824, + "auroc": 0.6320821529745042, + "auprc": 0.0009615384615384616, + "brier": 0.0003554555269409603, + "calibration": { + "observed_rate": 0.00035398230088495576, + "mean_prediction": 0.0007271332034032985, + "calibration_in_the_large": 0.0003731509025183427, + "expected_calibration_error_10bin": 0.0003731509025183427, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 1, + "negatives": 2824, + "auroc": 0.6317280453257791, + "auprc": 0.0009606147934678194, + "brier": 0.0003557355580518361, + "calibration": { + "observed_rate": 0.00035398230088495576, + "mean_prediction": 0.0008048958283117537, + "calibration_in_the_large": 0.000450913527426798, + "expected_calibration_error_10bin": 0.000450913527426798, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.7690400283386468, + "auprc": 0.003261494622825313, + "brier": 0.0007084579416590077, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.0009086113807226496, + "calibration_in_the_large": 0.0002006467789527381, + "expected_calibration_error_10bin": 0.0002006467789527381, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.7706340772228126, + "auprc": 0.0037018459069020865, + "brier": 0.0007086771836732968, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.0009968134803188375, + "calibration_in_the_large": 0.00028884887854892596, + "expected_calibration_error_10bin": 0.00028884887854892596, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.7713425433935529, + "auprc": 0.004648463985813383, + "brier": 0.0007085724675540731, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.0010953574432519056, + "calibration_in_the_large": 0.0003873928414819941, + "expected_calibration_error_10bin": 0.0003873928414819941, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.767445979454481, + "auprc": 0.0045504437545081065, + "brier": 0.000709156476885244, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.001204570653706678, + "calibration_in_the_large": 0.0004966060519367665, + "expected_calibration_error_10bin": 0.0004966060519367665, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 3, + "negatives": 2822, + "auroc": 0.8356957240727616, + "auprc": 0.010309921671726667, + "brier": 0.0010591524281300046, + "calibration": { + "observed_rate": 0.0010619469026548673, + "mean_prediction": 0.0012888789637851906, + "calibration_in_the_large": 0.00022693206113032324, + "expected_calibration_error_10bin": 0.00022693206113032324, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 3, + "negatives": 2822, + "auroc": 0.8341601700921333, + "auprc": 0.010034062642601033, + "brier": 0.0010595764731102153, + "calibration": { + "observed_rate": 0.0010619469026548673, + "mean_prediction": 0.001398535865749914, + "calibration_in_the_large": 0.0003365889630950467, + "expected_calibration_error_10bin": 0.0003365889630950467, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 3, + "negatives": 2822, + "auroc": 0.8335695724072761, + "auprc": 0.010170146919802144, + "brier": 0.0010597598470170758, + "calibration": { + "observed_rate": 0.0010619469026548673, + "mean_prediction": 0.0014830720402439503, + "calibration_in_the_large": 0.000421125137589083, + "expected_calibration_error_10bin": 0.000421125137589083, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 3, + "negatives": 2822, + "auroc": 0.8315615402787621, + "auprc": 0.010158467646390354, + "brier": 0.0010601467155597019, + "calibration": { + "observed_rate": 0.0010619469026548673, + "mean_prediction": 0.0015952826405012765, + "calibration_in_the_large": 0.0005333357378464092, + "expected_calibration_error_10bin": 0.0005333357378464092, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 3, + "negatives": 2822, + "auroc": 0.8313253012048193, + "auprc": 0.010413789929117186, + "brier": 0.001060502183687726, + "calibration": { + "observed_rate": 0.0010619469026548673, + "mean_prediction": 0.0016948645721822685, + "calibration_in_the_large": 0.0006329176695274012, + "expected_calibration_error_10bin": 0.0006329176695274012, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 3, + "negatives": 2822, + "auroc": 0.8322702575005906, + "auprc": 0.0103870107138081, + "brier": 0.0010605746471839146, + "calibration": { + "observed_rate": 0.0010619469026548673, + "mean_prediction": 0.0017147325018511733, + "calibration_in_the_large": 0.000652785599196306, + "expected_calibration_error_10bin": 0.000652785599196306, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + } + ], + "reason": null + }, + "J43": { + "time_averaged_auroc": 0.5792230068133711, + "time_averaged_auprc": 0.011575377223327403, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2804, + "positives": 1, + "negatives": 2803, + "auroc": 0.16910453085979307, + "auprc": 0.00042918454935622315, + "brier": 0.00035779774494372593, + "calibration": { + "observed_rate": 0.0003566333808844508, + "mean_prediction": 0.0007335965330918522, + "calibration_in_the_large": 0.00037696315220740143, + "expected_calibration_error_10bin": 0.00037696315220740143, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 2, + "negatives": 2802, + "auroc": 0.2574946466809422, + "auprc": 0.0007016051677108, + "brier": 0.0007164975011371293, + "calibration": { + "observed_rate": 0.0007132667617689016, + "mean_prediction": 0.0011706466854343944, + "calibration_in_the_large": 0.0004573799236654928, + "expected_calibration_error_10bin": 0.0004573799236654928, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 4, + "negatives": 2800, + "auroc": 0.5933035714285714, + "auprc": 0.011987697153280632, + "brier": 0.0014230903144864715, + "calibration": { + "observed_rate": 0.0014265335235378032, + "mean_prediction": 0.0013766010927570012, + "calibration_in_the_large": -4.993243078080202e-05, + "expected_calibration_error_10bin": 4.993243078080202e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 5, + "negatives": 2799, + "auroc": 0.5902107895677028, + "auprc": 0.010253129174483318, + "brier": 0.001779351940104893, + "calibration": { + "observed_rate": 0.001783166904422254, + "mean_prediction": 0.0015608147647148294, + "calibration_in_the_large": -0.00022235213970742455, + "expected_calibration_error_10bin": 0.00022235213970742455, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 5, + "negatives": 2799, + "auroc": 0.5944265809217578, + "auprc": 0.009417049128981558, + "brier": 0.0017800208354462523, + "calibration": { + "observed_rate": 0.001783166904422254, + "mean_prediction": 0.001785347826920771, + "calibration_in_the_large": 2.1809224985170923e-06, + "expected_calibration_error_10bin": 2.1809224985170923e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 5, + "negatives": 2799, + "auroc": 0.5991425509110396, + "auprc": 0.00873588230798002, + "brier": 0.0017813681417180006, + "calibration": { + "observed_rate": 0.001783166904422254, + "mean_prediction": 0.0020199334426584344, + "calibration_in_the_large": 0.00023676653823618047, + "expected_calibration_error_10bin": 0.00023676653823618047, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 7, + "negatives": 2797, + "auroc": 0.7113233566576433, + "auprc": 0.018233745724264477, + "brier": 0.002481021741776078, + "calibration": { + "observed_rate": 0.0024964336661911554, + "mean_prediction": 0.002391809339081882, + "calibration_in_the_large": -0.00010462432710927347, + "expected_calibration_error_10bin": 0.00010462432710927347, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 8, + "negatives": 2796, + "auroc": 0.665414878397711, + "auprc": 0.01603080656628051, + "brier": 0.002837563874365397, + "calibration": { + "observed_rate": 0.0028530670470756064, + "mean_prediction": 0.0025698424712764906, + "calibration_in_the_large": -0.00028322457579911574, + "expected_calibration_error_10bin": 0.00028322457579911574, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 8, + "negatives": 2796, + "auroc": 0.6658172389127325, + "auprc": 0.015995400674637398, + "brier": 0.002837759748959647, + "calibration": { + "observed_rate": 0.0028530670470756064, + "mean_prediction": 0.0027038441232148302, + "calibration_in_the_large": -0.00014922292386077615, + "expected_calibration_error_10bin": 0.00014922292386077615, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 8, + "negatives": 2796, + "auroc": 0.6666666666666666, + "auprc": 0.015532530066007029, + "brier": 0.002838001279662778, + "calibration": { + "observed_rate": 0.0028530670470756064, + "mean_prediction": 0.002800342773283405, + "calibration_in_the_large": -5.272427379220124e-05, + "expected_calibration_error_10bin": 5.272427379220124e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 9, + "negatives": 2795, + "auroc": 0.6735440270323991, + "auprc": 0.015041171680719652, + "brier": 0.003191991056102026, + "calibration": { + "observed_rate": 0.003209700427960057, + "mean_prediction": 0.0028793000958694196, + "calibration_in_the_large": -0.00033040033209063733, + "expected_calibration_error_10bin": 0.00033040033209063733, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 10, + "negatives": 2794, + "auroc": 0.6716535433070866, + "auprc": 0.0140928400660859, + "brier": 0.0035469101208878686, + "calibration": { + "observed_rate": 0.003566333808844508, + "mean_prediction": 0.0029616058070204574, + "calibration_in_the_large": -0.0006047280018240506, + "expected_calibration_error_10bin": 0.0006047280018240506, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 10, + "negatives": 2794, + "auroc": 0.6717967072297781, + "auprc": 0.014028861643468732, + "brier": 0.0035469266111584443, + "calibration": { + "observed_rate": 0.003566333808844508, + "mean_prediction": 0.002968869174427477, + "calibration_in_the_large": -0.0005974646344170309, + "expected_calibration_error_10bin": 0.0005974646344170309, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + } + ], + "reason": null + }, + "J44": { + "time_averaged_auroc": 0.8327765749332466, + "time_averaged_auprc": 0.037886967903531736, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2570, + "positives": 6, + "negatives": 2564, + "auroc": 0.8449037961518461, + "auprc": 0.013366992424117242, + "brier": 0.0023240707701521015, + "calibration": { + "observed_rate": 0.0023346303501945525, + "mean_prediction": 0.001456868611422421, + "calibration_in_the_large": -0.0008777617387721315, + "expected_calibration_error_10bin": 0.0008777617387721315, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9039746746394653 + }, + { + "valid": 2570, + "positives": 10, + "negatives": 2560, + "auroc": 0.87859375, + "auprc": 0.02912363163636549, + "brier": 0.0038426336705856563, + "calibration": { + "observed_rate": 0.0038910505836575876, + "mean_prediction": 0.0031364911186493455, + "calibration_in_the_large": -0.0007545594650082421, + "expected_calibration_error_10bin": 0.0008537110146444003, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9039746746394653 + }, + { + "valid": 2570, + "positives": 14, + "negatives": 2556, + "auroc": 0.8362676056338029, + "auprc": 0.02536657848806592, + "brier": 0.005388256001111917, + "calibration": { + "observed_rate": 0.005447470817120622, + "mean_prediction": 0.00380400378306747, + "calibration_in_the_large": -0.0016434670340531522, + "expected_calibration_error_10bin": 0.0017707373067867888, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9039746746394653 + }, + { + "valid": 2570, + "positives": 16, + "negatives": 2554, + "auroc": 0.8414007439310884, + "auprc": 0.03373092010891457, + "brier": 0.006130106698339176, + "calibration": { + "observed_rate": 0.0062256809338521405, + "mean_prediction": 0.004591719456965681, + "calibration_in_the_large": -0.0016339614768864598, + "expected_calibration_error_10bin": 0.001787002258445643, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9039746746394653 + }, + { + "valid": 2570, + "positives": 17, + "negatives": 2553, + "auroc": 0.8225156102393955, + "auprc": 0.03239695728930105, + "brier": 0.006522239813550319, + "calibration": { + "observed_rate": 0.006614785992217899, + "mean_prediction": 0.005706060819380433, + "calibration_in_the_large": -0.0009087251728374657, + "expected_calibration_error_10bin": 0.0010987022685861293, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9039746746394653 + }, + { + "valid": 2570, + "positives": 20, + "negatives": 2550, + "auroc": 0.822, + "auprc": 0.03729134542044123, + "brier": 0.007653504838877725, + "calibration": { + "observed_rate": 0.007782101167315175, + "mean_prediction": 0.006363997991593174, + "calibration_in_the_large": -0.0014181031757220016, + "expected_calibration_error_10bin": 0.001797158456119839, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9039746746394653 + }, + { + "valid": 2570, + "positives": 22, + "negatives": 2548, + "auroc": 0.8149529042386185, + "auprc": 0.03609612997862213, + "brier": 0.008427583934121534, + "calibration": { + "observed_rate": 0.008560311284046693, + "mean_prediction": 0.00699552901867273, + "calibration_in_the_large": -0.001564782265373963, + "expected_calibration_error_10bin": 0.0020525544174916817, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9039746746394653 + }, + { + "valid": 2570, + "positives": 24, + "negatives": 2546, + "auroc": 0.826148860958366, + "auprc": 0.04684587988147987, + "brier": 0.00913437657216593, + "calibration": { + "observed_rate": 0.00933852140077821, + "mean_prediction": 0.007754040200966708, + "calibration_in_the_large": -0.001584481199811502, + "expected_calibration_error_10bin": 0.0025417694768679316, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9039746746394653 + }, + { + "valid": 2570, + "positives": 24, + "negatives": 2546, + "auroc": 0.8255269704111023, + "auprc": 0.04620734122178715, + "brier": 0.009147019859683869, + "calibration": { + "observed_rate": 0.00933852140077821, + "mean_prediction": 0.008202258725785581, + "calibration_in_the_large": -0.0011362626749926285, + "expected_calibration_error_10bin": 0.002254935473572397, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9039746746394653 + }, + { + "valid": 2570, + "positives": 27, + "negatives": 2543, + "auroc": 0.8305005752901938, + "auprc": 0.04809711077862714, + "brier": 0.010276149238197849, + "calibration": { + "observed_rate": 0.010505836575875487, + "mean_prediction": 0.008635733277859435, + "calibration_in_the_large": -0.0018701032980160525, + "expected_calibration_error_10bin": 0.0025979795303079888, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9039746746394653 + }, + { + "valid": 2570, + "positives": 28, + "negatives": 2542, + "auroc": 0.8296757333932786, + "auprc": 0.047894685961007225, + "brier": 0.010661095549222191, + "calibration": { + "observed_rate": 0.010894941634241245, + "mean_prediction": 0.009333602744772946, + "calibration_in_the_large": -0.0015613388894682983, + "expected_calibration_error_10bin": 0.002693240347548011, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9039746746394653 + }, + { + "valid": 2570, + "positives": 30, + "negatives": 2540, + "auroc": 0.8269028871391076, + "auprc": 0.04807594503980331, + "brier": 0.011426991254332044, + "calibration": { + "observed_rate": 0.011673151750972763, + "mean_prediction": 0.009691850196895226, + "calibration_in_the_large": -0.001981301554077537, + "expected_calibration_error_10bin": 0.003269584181802952, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9039746746394653 + }, + { + "valid": 2570, + "positives": 30, + "negatives": 2540, + "auroc": 0.8267060367454068, + "auprc": 0.04803706451738028, + "brier": 0.011430146518702354, + "calibration": { + "observed_rate": 0.011673151750972763, + "mean_prediction": 0.009794354204224117, + "calibration_in_the_large": -0.0018787975467486461, + "expected_calibration_error_10bin": 0.003189804369919155, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9039746746394653 + } + ], + "reason": null + }, + "J45": { + "time_averaged_auroc": 0.6690916959478943, + "time_averaged_auprc": 0.018466659289218326, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2518, + "positives": 9, + "negatives": 2509, + "auroc": 0.6717594437801692, + "auprc": 0.007608756329305352, + "brier": 0.0035674634232362094, + "calibration": { + "observed_rate": 0.003574265289912629, + "mean_prediction": 0.001823330874591869, + "calibration_in_the_large": -0.0017509344153207602, + "expected_calibration_error_10bin": 0.0017509344153207602, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.885684136475554 + }, + { + "valid": 2518, + "positives": 13, + "negatives": 2505, + "auroc": 0.6277291570704744, + "auprc": 0.011417324921052076, + "brier": 0.005147228474285493, + "calibration": { + "observed_rate": 0.005162827640984908, + "mean_prediction": 0.002877977288237864, + "calibration_in_the_large": -0.0022848503527470444, + "expected_calibration_error_10bin": 0.002366166740949573, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.885684136475554 + }, + { + "valid": 2518, + "positives": 17, + "negatives": 2501, + "auroc": 0.6823388291742126, + "auprc": 0.016299013835268404, + "brier": 0.0067145061904186395, + "calibration": { + "observed_rate": 0.006751389992057188, + "mean_prediction": 0.003519890920740208, + "calibration_in_the_large": -0.00323149907131698, + "expected_calibration_error_10bin": 0.003329525135234533, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.885684136475554 + }, + { + "valid": 2518, + "positives": 19, + "negatives": 2499, + "auroc": 0.660390471978265, + "auprc": 0.01638400797826719, + "brier": 0.007502540599681316, + "calibration": { + "observed_rate": 0.007545671167593328, + "mean_prediction": 0.0041738750719910265, + "calibration_in_the_large": -0.003371796095602302, + "expected_calibration_error_10bin": 0.0034795236676283007, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.885684136475554 + }, + { + "valid": 2518, + "positives": 20, + "negatives": 2498, + "auroc": 0.6615092073658927, + "auprc": 0.01646932181356598, + "brier": 0.007899544583463375, + "calibration": { + "observed_rate": 0.007942811755361398, + "mean_prediction": 0.004792074649818955, + "calibration_in_the_large": -0.0031507371055424426, + "expected_calibration_error_10bin": 0.0032711267706340198, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.885684136475554 + }, + { + "valid": 2518, + "positives": 20, + "negatives": 2498, + "auroc": 0.6593074459567654, + "auprc": 0.016554921144249397, + "brier": 0.007904842289781833, + "calibration": { + "observed_rate": 0.007942811755361398, + "mean_prediction": 0.005506442632486214, + "calibration_in_the_large": -0.002436369122875184, + "expected_calibration_error_10bin": 0.002661734846967248, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.885684136475554 + }, + { + "valid": 2518, + "positives": 21, + "negatives": 2497, + "auroc": 0.6753246753246753, + "auprc": 0.020914598466704997, + "brier": 0.008277539200927237, + "calibration": { + "observed_rate": 0.008339952343129467, + "mean_prediction": 0.00592779328166927, + "calibration_in_the_large": -0.002412159061460197, + "expected_calibration_error_10bin": 0.002660167851554015, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.885684136475554 + }, + { + "valid": 2518, + "positives": 22, + "negatives": 2496, + "auroc": 0.6822370337995338, + "auprc": 0.022377417197123408, + "brier": 0.008666874228704175, + "calibration": { + "observed_rate": 0.008737092930897538, + "mean_prediction": 0.006427605205431516, + "calibration_in_the_large": -0.002309487725466022, + "expected_calibration_error_10bin": 0.002654086487464654, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.885684136475554 + }, + { + "valid": 2518, + "positives": 22, + "negatives": 2496, + "auroc": 0.6848412004662005, + "auprc": 0.02220559334590075, + "brier": 0.008674498819152136, + "calibration": { + "observed_rate": 0.008737092930897538, + "mean_prediction": 0.006992576850880184, + "calibration_in_the_large": -0.0017445160800173536, + "expected_calibration_error_10bin": 0.0021175962161134806, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.885684136475554 + }, + { + "valid": 2518, + "positives": 23, + "negatives": 2495, + "auroc": 0.6902500653480875, + "auprc": 0.022795255681716316, + "brier": 0.009068875111795273, + "calibration": { + "observed_rate": 0.009134233518665607, + "mean_prediction": 0.007315553096270986, + "calibration_in_the_large": -0.0018186804223946215, + "expected_calibration_error_10bin": 0.002294998413016184, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.885684136475554 + }, + { + "valid": 2518, + "positives": 24, + "negatives": 2494, + "auroc": 0.6829056402031543, + "auprc": 0.02270822994912838, + "brier": 0.00947327919582889, + "calibration": { + "observed_rate": 0.009531374106433678, + "mean_prediction": 0.008025680234036396, + "calibration_in_the_large": -0.0015056938723972818, + "expected_calibration_error_10bin": 0.0021082426826948574, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.885684136475554 + }, + { + "valid": 2518, + "positives": 25, + "negatives": 2493, + "auroc": 0.6597994384275973, + "auprc": 0.02216522073286535, + "brier": 0.0098796168260922, + "calibration": { + "observed_rate": 0.009928514694201748, + "mean_prediction": 0.008308409700147783, + "calibration_in_the_large": -0.0016201049940539648, + "expected_calibration_error_10bin": 0.0023380104927695627, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.885684136475554 + }, + { + "valid": 2518, + "positives": 25, + "negatives": 2493, + "auroc": 0.6597994384275973, + "auprc": 0.022166909364690637, + "brier": 0.009879883230358424, + "calibration": { + "observed_rate": 0.009928514694201748, + "mean_prediction": 0.008319916945453651, + "calibration_in_the_large": -0.0016085977487480963, + "expected_calibration_error_10bin": 0.002327513094068444, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.885684136475554 + } + ], + "reason": null + }, + "J47": { + "time_averaged_auroc": 0.7421463082006937, + "time_averaged_auprc": 0.007054377149065552, + "valid_timepoint_cells": 12, + "timepoints": [ + { + "valid": 2825, + "positives": 0, + "negatives": 2825, + "auroc": null, + "auprc": null, + "brier": 9.715370221866753e-08, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0001113530194588032, + "calibration_in_the_large": 0.0001113530194588032, + "expected_calibration_error_10bin": 0.0001113530194588032, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 1, + "negatives": 2824, + "auroc": 0.49539660056657225, + "auprc": 0.0007012622720897616, + "brier": 0.0003542657665635251, + "calibration": { + "observed_rate": 0.00035398230088495576, + "mean_prediction": 0.00023140709944873862, + "calibration_in_the_large": -0.00012257520143621714, + "expected_calibration_error_10bin": 0.00012257520143621714, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.6783563584838824, + "auprc": 0.0019960513684363058, + "brier": 0.0007079198374789636, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.00028522569575966793, + "calibration_in_the_large": -0.0004227389060102436, + "expected_calibration_error_10bin": 0.0004227389060102436, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 3, + "negatives": 2822, + "auroc": 0.7012756909992913, + "auprc": 0.0024898243551139134, + "brier": 0.0010617692629639683, + "calibration": { + "observed_rate": 0.0010619469026548673, + "mean_prediction": 0.00034553300360263937, + "calibration_in_the_large": -0.000716413899052228, + "expected_calibration_error_10bin": 0.000716413899052228, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 4, + "negatives": 2821, + "auroc": 0.7671038638780574, + "auprc": 0.005561354004054784, + "brier": 0.0014143574266210631, + "calibration": { + "observed_rate": 0.001415929203539823, + "mean_prediction": 0.0003876355539819452, + "calibration_in_the_large": -0.0010282936495578778, + "expected_calibration_error_10bin": 0.0010282936495578778, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 4, + "negatives": 2821, + "auroc": 0.7701169797943992, + "auprc": 0.005451173089294216, + "brier": 0.0014144620347158589, + "calibration": { + "observed_rate": 0.001415929203539823, + "mean_prediction": 0.0004594153593102217, + "calibration_in_the_large": -0.0009565138442296014, + "expected_calibration_error_10bin": 0.0009565138442296014, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 6, + "negatives": 2819, + "auroc": 0.7923613574553624, + "auprc": 0.009771703784826048, + "brier": 0.002119659092662639, + "calibration": { + "observed_rate": 0.0021238938053097347, + "mean_prediction": 0.0005014462541239862, + "calibration_in_the_large": -0.0016224475511857485, + "expected_calibration_error_10bin": 0.0016224475511857485, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 6, + "negatives": 2819, + "auroc": 0.7933073193803949, + "auprc": 0.009903053463314278, + "brier": 0.002119684524717258, + "calibration": { + "observed_rate": 0.0021238938053097347, + "mean_prediction": 0.0005178837787904282, + "calibration_in_the_large": -0.0016060100265193064, + "expected_calibration_error_10bin": 0.0016060100265193064, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 6, + "negatives": 2819, + "auroc": 0.7936029324819676, + "auprc": 0.009920527777023251, + "brier": 0.0021194302121022206, + "calibration": { + "observed_rate": 0.0021238938053097347, + "mean_prediction": 0.0005533187315749761, + "calibration_in_the_large": -0.0015705750737347586, + "expected_calibration_error_10bin": 0.0015705750737347586, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 6, + "negatives": 2819, + "auroc": 0.7937211777225966, + "auprc": 0.010059045726690563, + "brier": 0.0021192902910156515, + "calibration": { + "observed_rate": 0.0021238938053097347, + "mean_prediction": 0.000600190303930067, + "calibration_in_the_large": -0.0015237035013796678, + "expected_calibration_error_10bin": 0.0015237035013796678, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 6, + "negatives": 2819, + "auroc": 0.7931890741397659, + "auprc": 0.009919067936112578, + "brier": 0.002119170062038598, + "calibration": { + "observed_rate": 0.0021238938053097347, + "mean_prediction": 0.0006370889550516164, + "calibration_in_the_large": -0.0014868048502581182, + "expected_calibration_error_10bin": 0.0014868048502581182, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 7, + "negatives": 2818, + "auroc": 0.7636114772381628, + "auprc": 0.009437867268757918, + "brier": 0.002472812013663199, + "calibration": { + "observed_rate": 0.00247787610619469, + "mean_prediction": 0.0006732298199039132, + "calibration_in_the_large": -0.001804646286290777, + "expected_calibration_error_10bin": 0.001804646286290777, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 7, + "negatives": 2818, + "auroc": 0.7637128662678698, + "auprc": 0.009441594743073002, + "brier": 0.0024728103486558886, + "calibration": { + "observed_rate": 0.00247787610619469, + "mean_prediction": 0.0006746090820778171, + "calibration_in_the_large": -0.0018032670241168729, + "expected_calibration_error_10bin": 0.0018032670241168729, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + } + ], + "reason": null + }, + "J69": { + "time_averaged_auroc": 0.7688342103572973, + "time_averaged_auprc": 0.027452624643730827, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2777, + "positives": 6, + "negatives": 2771, + "auroc": 0.8476482617586912, + "auprc": 0.015100398405393964, + "brier": 0.0021478350932970184, + "calibration": { + "observed_rate": 0.0021606049693914295, + "mean_prediction": 0.0012395878869313427, + "calibration_in_the_large": -0.0009210170824600868, + "expected_calibration_error_10bin": 0.0009210170824600868, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + { + "valid": 2777, + "positives": 14, + "negatives": 2763, + "auroc": 0.7910914637299002, + "auprc": 0.02443191748055854, + "brier": 0.004990832569445188, + "calibration": { + "observed_rate": 0.005041411595246669, + "mean_prediction": 0.002304811171208894, + "calibration_in_the_large": -0.0027366004240377746, + "expected_calibration_error_10bin": 0.0027366004240377746, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + { + "valid": 2777, + "positives": 19, + "negatives": 2758, + "auroc": 0.766898209991985, + "auprc": 0.02697552327094787, + "brier": 0.006758805226197349, + "calibration": { + "observed_rate": 0.0068419157364061935, + "mean_prediction": 0.003165641002154175, + "calibration_in_the_large": -0.0036762747342520183, + "expected_calibration_error_10bin": 0.0036762747342520183, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + { + "valid": 2777, + "positives": 21, + "negatives": 2756, + "auroc": 0.7771096827700601, + "auprc": 0.03001312302645756, + "brier": 0.0074558078659975775, + "calibration": { + "observed_rate": 0.007562117392870004, + "mean_prediction": 0.0036691319040574486, + "calibration_in_the_large": -0.0038929854888125554, + "expected_calibration_error_10bin": 0.0038929854888125554, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + { + "valid": 2777, + "positives": 22, + "negatives": 2755, + "auroc": 0.7725787823791453, + "auprc": 0.030596108888163987, + "brier": 0.007806469839905773, + "calibration": { + "observed_rate": 0.00792221822110191, + "mean_prediction": 0.004156011981140221, + "calibration_in_the_large": -0.003766206239961688, + "expected_calibration_error_10bin": 0.003766206239961688, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + { + "valid": 2777, + "positives": 22, + "negatives": 2755, + "auroc": 0.7695924764890282, + "auprc": 0.028927040278896334, + "brier": 0.0078039449693052786, + "calibration": { + "observed_rate": 0.00792221822110191, + "mean_prediction": 0.004646091640253333, + "calibration_in_the_large": -0.0032761265808485766, + "expected_calibration_error_10bin": 0.0032761265808485766, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + { + "valid": 2777, + "positives": 24, + "negatives": 2753, + "auroc": 0.7715522460346289, + "auprc": 0.028652056546742882, + "brier": 0.008510855801851226, + "calibration": { + "observed_rate": 0.008642419877565718, + "mean_prediction": 0.005072263459315896, + "calibration_in_the_large": -0.0035701564182498225, + "expected_calibration_error_10bin": 0.0035701564182498225, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + { + "valid": 2777, + "positives": 25, + "negatives": 2752, + "auroc": 0.7536918604651163, + "auprc": 0.027710757704453033, + "brier": 0.008869174688111874, + "calibration": { + "observed_rate": 0.009002520705797623, + "mean_prediction": 0.00533217611039709, + "calibration_in_the_large": -0.0036703445954005334, + "expected_calibration_error_10bin": 0.0036703445954005334, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + { + "valid": 2777, + "positives": 26, + "negatives": 2751, + "auroc": 0.7488605542040656, + "auprc": 0.026952720894693267, + "brier": 0.009226355941744842, + "calibration": { + "observed_rate": 0.009362621534029529, + "mean_prediction": 0.005643884987317204, + "calibration_in_the_large": -0.003718736546712325, + "expected_calibration_error_10bin": 0.003718736546712325, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + { + "valid": 2777, + "positives": 27, + "negatives": 2750, + "auroc": 0.7437037037037038, + "auprc": 0.027018895551077452, + "brier": 0.00958253037769144, + "calibration": { + "observed_rate": 0.009722722362261434, + "mean_prediction": 0.005841512536603425, + "calibration_in_the_large": -0.003881209825658009, + "expected_calibration_error_10bin": 0.003881209825658009, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + { + "valid": 2777, + "positives": 30, + "negatives": 2747, + "auroc": 0.7488047567042835, + "auprc": 0.030036114203698797, + "brier": 0.010628827950995184, + "calibration": { + "observed_rate": 0.010803024846957148, + "mean_prediction": 0.0062899040486782114, + "calibration_in_the_large": -0.004513120798278937, + "expected_calibration_error_10bin": 0.004513120798278937, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + { + "valid": 2777, + "positives": 31, + "negatives": 2746, + "auroc": 0.7516504945610036, + "auprc": 0.030318829673176294, + "brier": 0.010979021267799706, + "calibration": { + "observed_rate": 0.011163125675189053, + "mean_prediction": 0.006564455617904654, + "calibration_in_the_large": -0.0045986700572843995, + "expected_calibration_error_10bin": 0.0045986700572843995, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + { + "valid": 2777, + "positives": 31, + "negatives": 2746, + "auroc": 0.7516622418532528, + "auprc": 0.030150634444240747, + "brier": 0.010978591856049939, + "calibration": { + "observed_rate": 0.011163125675189053, + "mean_prediction": 0.006633439860160899, + "calibration_in_the_large": -0.004529685815028155, + "expected_calibration_error_10bin": 0.004529685815028155, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + } + ], + "reason": null + }, + "J81": { + "time_averaged_auroc": 0.7914712755490199, + "time_averaged_auprc": 0.04640929107734773, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2781, + "positives": 5, + "negatives": 2776, + "auroc": 0.7211095100864553, + "auprc": 0.006373822268695817, + "brier": 0.0017939122614383193, + "calibration": { + "observed_rate": 0.0017979144192736426, + "mean_prediction": 0.0008968146009525938, + "calibration_in_the_large": -0.0009010998183210488, + "expected_calibration_error_10bin": 0.0009010998183210488, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + { + "valid": 2781, + "positives": 7, + "negatives": 2774, + "auroc": 0.7853022968379854, + "auprc": 0.013758947182142281, + "brier": 0.002502068191481899, + "calibration": { + "observed_rate": 0.0025170801869830997, + "mean_prediction": 0.001674344343885147, + "calibration_in_the_large": -0.0008427358430979526, + "expected_calibration_error_10bin": 0.0008427358430979526, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + { + "valid": 2781, + "positives": 11, + "negatives": 2770, + "auroc": 0.7964227108631441, + "auprc": 0.061872614969394564, + "brier": 0.003894350543485598, + "calibration": { + "observed_rate": 0.003955411722402014, + "mean_prediction": 0.002430916307577949, + "calibration_in_the_large": -0.0015244954148240647, + "expected_calibration_error_10bin": 0.0015244954148240647, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + { + "valid": 2781, + "positives": 12, + "negatives": 2769, + "auroc": 0.7680570603105814, + "auprc": 0.05534396258328178, + "brier": 0.004248285840319085, + "calibration": { + "observed_rate": 0.004314994606256742, + "mean_prediction": 0.0028892036219485997, + "calibration_in_the_large": -0.001425790984308142, + "expected_calibration_error_10bin": 0.001425790984308142, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + { + "valid": 2781, + "positives": 14, + "negatives": 2767, + "auroc": 0.782745624451443, + "auprc": 0.04737694560668525, + "brier": 0.004954675945064565, + "calibration": { + "observed_rate": 0.005034160373966199, + "mean_prediction": 0.0033606700253968223, + "calibration_in_the_large": -0.001673490348569377, + "expected_calibration_error_10bin": 0.001673490348569377, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + { + "valid": 2781, + "positives": 16, + "negatives": 2765, + "auroc": 0.7860307414104882, + "auprc": 0.05112883140393865, + "brier": 0.005660540358937231, + "calibration": { + "observed_rate": 0.005753326141675656, + "mean_prediction": 0.00367000558445335, + "calibration_in_the_large": -0.002083320557222306, + "expected_calibration_error_10bin": 0.002083320557222306, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + { + "valid": 2781, + "positives": 17, + "negatives": 2764, + "auroc": 0.79660764450498, + "auprc": 0.04859757142643354, + "brier": 0.006003135337334184, + "calibration": { + "observed_rate": 0.006112909025530385, + "mean_prediction": 0.0038638670881114296, + "calibration_in_the_large": -0.002249041937418955, + "expected_calibration_error_10bin": 0.002249041937418955, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + { + "valid": 2781, + "positives": 17, + "negatives": 2764, + "auroc": 0.7943943134417298, + "auprc": 0.047337695995632, + "brier": 0.006000309423906966, + "calibration": { + "observed_rate": 0.006112909025530385, + "mean_prediction": 0.004200004319336775, + "calibration_in_the_large": -0.0019129047061936097, + "expected_calibration_error_10bin": 0.0019129047061936097, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + { + "valid": 2781, + "positives": 19, + "negatives": 2762, + "auroc": 0.8076717862723427, + "auprc": 0.055065624336929096, + "brier": 0.006693941493815913, + "calibration": { + "observed_rate": 0.0068320747932398415, + "mean_prediction": 0.0044349315823444275, + "calibration_in_the_large": -0.002397143210895414, + "expected_calibration_error_10bin": 0.002397143210895414, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + { + "valid": 2781, + "positives": 20, + "negatives": 2761, + "auroc": 0.8140890981528431, + "auprc": 0.055981415098261975, + "brier": 0.007037789984525621, + "calibration": { + "observed_rate": 0.00719165767709457, + "mean_prediction": 0.004654312489209061, + "calibration_in_the_large": -0.002537345187885509, + "expected_calibration_error_10bin": 0.002537345187885509, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + { + "valid": 2781, + "positives": 21, + "negatives": 2760, + "auroc": 0.814095928226363, + "auprc": 0.05478093289261236, + "brier": 0.007389318151835105, + "calibration": { + "observed_rate": 0.007551240560949299, + "mean_prediction": 0.0048906315073255725, + "calibration_in_the_large": -0.0026606090536237265, + "expected_calibration_error_10bin": 0.0026606090536237265, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + { + "valid": 2781, + "positives": 23, + "negatives": 2758, + "auroc": 0.8112999337894504, + "auprc": 0.05281705691665678, + "brier": 0.008093449189754715, + "calibration": { + "observed_rate": 0.008270406328658756, + "mean_prediction": 0.005262203783315454, + "calibration_in_the_large": -0.0030082025453433015, + "expected_calibration_error_10bin": 0.0030082025453433015, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + { + "valid": 2781, + "positives": 23, + "negatives": 2758, + "auroc": 0.8112999337894504, + "auprc": 0.05288536332485635, + "brier": 0.008092820576905536, + "calibration": { + "observed_rate": 0.008270406328658756, + "mean_prediction": 0.005302714275554331, + "calibration_in_the_large": -0.0029676920531044246, + "expected_calibration_error_10bin": 0.0029676920531044246, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + } + ], + "reason": null + }, + "J84": { + "time_averaged_auroc": 0.8981424212509559, + "time_averaged_auprc": 0.015109549900299345, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2817, + "positives": 4, + "negatives": 2813, + "auroc": 0.8875755421258443, + "auprc": 0.008472005803756488, + "brier": 0.0014174348764710415, + "calibration": { + "observed_rate": 0.0014199503017394391, + "mean_prediction": 0.0003507488753240207, + "calibration_in_the_large": -0.0010692014264154185, + "expected_calibration_error_10bin": 0.0010692014264154185, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 5, + "negatives": 2812, + "auroc": 0.8805120910384068, + "auprc": 0.01064334702065437, + "brier": 0.0017688392090824134, + "calibration": { + "observed_rate": 0.001774937877174299, + "mean_prediction": 0.0006977706456744188, + "calibration_in_the_large": -0.0010771672314998802, + "expected_calibration_error_10bin": 0.0010771672314998802, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 5, + "negatives": 2812, + "auroc": 0.8815078236130868, + "auprc": 0.010807441797626329, + "brier": 0.001767549227328028, + "calibration": { + "observed_rate": 0.001774937877174299, + "mean_prediction": 0.0009531317565366357, + "calibration_in_the_large": -0.0008218061206376633, + "expected_calibration_error_10bin": 0.0008218061206376633, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 5, + "negatives": 2812, + "auroc": 0.8817211948790896, + "auprc": 0.010762777566053133, + "brier": 0.0017669396752534089, + "calibration": { + "observed_rate": 0.001774937877174299, + "mean_prediction": 0.0011270625522579883, + "calibration_in_the_large": -0.0006478753249163107, + "expected_calibration_error_10bin": 0.0006478753249163107, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 7, + "negatives": 2810, + "auroc": 0.9085917641077783, + "auprc": 0.018125222968575265, + "brier": 0.002465446662943809, + "calibration": { + "observed_rate": 0.0024849130280440185, + "mean_prediction": 0.0015353286640533734, + "calibration_in_the_large": -0.0009495843639906452, + "expected_calibration_error_10bin": 0.0009495843639906452, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 7, + "negatives": 2810, + "auroc": 0.9070157600406711, + "auprc": 0.017644421031117904, + "brier": 0.002464788361252124, + "calibration": { + "observed_rate": 0.0024849130280440185, + "mean_prediction": 0.0016910226620585156, + "calibration_in_the_large": -0.000793890365985503, + "expected_calibration_error_10bin": 0.000793890365985503, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 7, + "negatives": 2810, + "auroc": 0.9062023385866802, + "auprc": 0.017375859930576623, + "brier": 0.002463543653290369, + "calibration": { + "observed_rate": 0.0024849130280440185, + "mean_prediction": 0.0019978216207456128, + "calibration_in_the_large": -0.00048709140729840577, + "expected_calibration_error_10bin": 0.00048709140729840577, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 7, + "negatives": 2810, + "auroc": 0.9045754956786985, + "auprc": 0.017115116151991898, + "brier": 0.002463199331822656, + "calibration": { + "observed_rate": 0.0024849130280440185, + "mean_prediction": 0.002254846345222414, + "calibration_in_the_large": -0.0002300666828216045, + "expected_calibration_error_10bin": 0.0002300666828216045, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 7, + "negatives": 2810, + "auroc": 0.9044229791560753, + "auprc": 0.017155604805650336, + "brier": 0.0024630217140998493, + "calibration": { + "observed_rate": 0.0024849130280440185, + "mean_prediction": 0.002450070453840625, + "calibration_in_the_large": -3.484257420339337e-05, + "expected_calibration_error_10bin": 3.484257420339337e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 7, + "negatives": 2810, + "auroc": 0.904168784951703, + "auprc": 0.01720749241135284, + "brier": 0.0024630633927974874, + "calibration": { + "observed_rate": 0.0024849130280440185, + "mean_prediction": 0.002569342980605037, + "calibration_in_the_large": 8.442995256101836e-05, + "expected_calibration_error_10bin": 8.442995256101836e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 7, + "negatives": 2810, + "auroc": 0.9035078800203356, + "auprc": 0.017102337916500867, + "brier": 0.0024631717699454317, + "calibration": { + "observed_rate": 0.0024849130280440185, + "mean_prediction": 0.002599445458058247, + "calibration_in_the_large": 0.00011453243001422831, + "expected_calibration_error_10bin": 0.00011453243001422831, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 7, + "negatives": 2810, + "auroc": 0.9030503304524656, + "auprc": 0.017007396414796296, + "brier": 0.0024632641205557, + "calibration": { + "observed_rate": 0.0024849130280440185, + "mean_prediction": 0.0026944585484749684, + "calibration_in_the_large": 0.00020954552043094985, + "expected_calibration_error_10bin": 0.00020954552043094985, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 7, + "negatives": 2810, + "auroc": 0.9029994916115912, + "auprc": 0.017005124885239153, + "brier": 0.002463289804179665, + "calibration": { + "observed_rate": 0.0024849130280440185, + "mean_prediction": 0.0027011314465888534, + "calibration_in_the_large": 0.00021621841854483487, + "expected_calibration_error_10bin": 0.00021621841854483487, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + } + ], + "reason": null + }, + "J90": { + "time_averaged_auroc": 0.6611026003481173, + "time_averaged_auprc": 0.01802870377462108, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2754, + "positives": 11, + "negatives": 2743, + "auroc": 0.5946375898982534, + "auprc": 0.005775878856784749, + "brier": 0.003990632936411049, + "calibration": { + "observed_rate": 0.0039941902687000725, + "mean_prediction": 0.002419152967665132, + "calibration_in_the_large": -0.0015750373010349405, + "expected_calibration_error_10bin": 0.0015750373010349405, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9686950404502286 + }, + { + "valid": 2754, + "positives": 13, + "negatives": 2741, + "auroc": 0.6030926388460135, + "auprc": 0.007320865364661134, + "brier": 0.004723358982320465, + "calibration": { + "observed_rate": 0.004720406681190995, + "mean_prediction": 0.003574960015347779, + "calibration_in_the_large": -0.0011454466658432161, + "expected_calibration_error_10bin": 0.0011454466658432161, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9686950404502286 + }, + { + "valid": 2754, + "positives": 20, + "negatives": 2734, + "auroc": 0.6428493050475493, + "auprc": 0.0121281735088213, + "brier": 0.007240856170424701, + "calibration": { + "observed_rate": 0.007262164124909223, + "mean_prediction": 0.004419857358432362, + "calibration_in_the_large": -0.0028423067664768613, + "expected_calibration_error_10bin": 0.0028423067664768613, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9686950404502286 + }, + { + "valid": 2754, + "positives": 22, + "negatives": 2732, + "auroc": 0.646945294822308, + "auprc": 0.01315685477835829, + "brier": 0.007977151376780695, + "calibration": { + "observed_rate": 0.007988380537400145, + "mean_prediction": 0.005196314372413923, + "calibration_in_the_large": -0.002792066164986222, + "expected_calibration_error_10bin": 0.0029680282259142206, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9686950404502286 + }, + { + "valid": 2754, + "positives": 25, + "negatives": 2729, + "auroc": 0.6461707585196043, + "auprc": 0.01520983862715636, + "brier": 0.009054271338507381, + "calibration": { + "observed_rate": 0.00907770515613653, + "mean_prediction": 0.005627744643574902, + "calibration_in_the_large": -0.003449960512561627, + "expected_calibration_error_10bin": 0.0037164444331967608, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9686950404502286 + }, + { + "valid": 2754, + "positives": 25, + "negatives": 2729, + "auroc": 0.6470355441553682, + "auprc": 0.015322102856098738, + "brier": 0.009060748365218252, + "calibration": { + "observed_rate": 0.00907770515613653, + "mean_prediction": 0.005923637525259515, + "calibration_in_the_large": -0.003154067630877014, + "expected_calibration_error_10bin": 0.00351620352282774, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9686950404502286 + }, + { + "valid": 2754, + "positives": 28, + "negatives": 2726, + "auroc": 0.6683261712608741, + "auprc": 0.018745781710009828, + "brier": 0.010127739234847026, + "calibration": { + "observed_rate": 0.010167029774872912, + "mean_prediction": 0.0064038634515696975, + "calibration_in_the_large": -0.003763166323303214, + "expected_calibration_error_10bin": 0.004160309225395606, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9686950404502286 + }, + { + "valid": 2754, + "positives": 29, + "negatives": 2725, + "auroc": 0.6774818095539387, + "auprc": 0.02025932406993811, + "brier": 0.010486420658212096, + "calibration": { + "observed_rate": 0.010530137981118372, + "mean_prediction": 0.006819435795892845, + "calibration_in_the_large": -0.0037107021852255274, + "expected_calibration_error_10bin": 0.00429247296344729, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9686950404502286 + }, + { + "valid": 2754, + "positives": 31, + "negatives": 2723, + "auroc": 0.6804165235212586, + "auprc": 0.021062686153201025, + "brier": 0.011206610879292329, + "calibration": { + "observed_rate": 0.011256354393609296, + "mean_prediction": 0.007182801976311858, + "calibration_in_the_large": -0.004073552417297438, + "expected_calibration_error_10bin": 0.004828801020775414, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9686950404502286 + }, + { + "valid": 2754, + "positives": 36, + "negatives": 2718, + "auroc": 0.7006683836154035, + "auprc": 0.025157264111826838, + "brier": 0.012978142866428137, + "calibration": { + "observed_rate": 0.013071895424836602, + "mean_prediction": 0.007432999279276205, + "calibration_in_the_large": -0.005638896145560397, + "expected_calibration_error_10bin": 0.006418522193855549, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9686950404502286 + }, + { + "valid": 2754, + "positives": 37, + "negatives": 2717, + "auroc": 0.7069203911309174, + "auprc": 0.026633067409334937, + "brier": 0.013326743755676164, + "calibration": { + "observed_rate": 0.013435003631082063, + "mean_prediction": 0.007565502803654169, + "calibration_in_the_large": -0.005869500827427893, + "expected_calibration_error_10bin": 0.006660593871156571, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9686950404502286 + }, + { + "valid": 2754, + "positives": 39, + "negatives": 2715, + "auroc": 0.689852198139491, + "auprc": 0.02678478819669948, + "brier": 0.014053771518905054, + "calibration": { + "observed_rate": 0.014161220043572984, + "mean_prediction": 0.008095383299639986, + "calibration_in_the_large": -0.006065836743932998, + "expected_calibration_error_10bin": 0.0071403910708966655, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9686950404502286 + }, + { + "valid": 2754, + "positives": 39, + "negatives": 2715, + "auroc": 0.6899371960145441, + "auprc": 0.02681652342718324, + "brier": 0.014054000821477945, + "calibration": { + "observed_rate": 0.014161220043572984, + "mean_prediction": 0.008133224341980903, + "calibration_in_the_large": -0.006027995701592081, + "expected_calibration_error_10bin": 0.0071062478160937356, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9686950404502286 + } + ], + "reason": null + }, + "J91": { + "time_averaged_auroc": 0.8115972902805157, + "time_averaged_auprc": 0.02967940137002358, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2807, + "positives": 1, + "negatives": 2806, + "auroc": 0.7697790449037776, + "auprc": 0.0015455950540958269, + "brier": 0.00036306237665765617, + "calibration": { + "observed_rate": 0.0003562522265764161, + "mean_prediction": 0.0008747722352653814, + "calibration_in_the_large": 0.0005185200086889653, + "expected_calibration_error_10bin": 0.0005185200086889653, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 3, + "negatives": 2804, + "auroc": 0.8798145506419401, + "auprc": 0.015324349864082357, + "brier": 0.0010741569710941985, + "calibration": { + "observed_rate": 0.0010687566797292483, + "mean_prediction": 0.0017381437574341052, + "calibration_in_the_large": 0.0006693870777048569, + "expected_calibration_error_10bin": 0.0006693870777048569, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 5, + "negatives": 2802, + "auroc": 0.7546038543897217, + "auprc": 0.016742552769206467, + "brier": 0.001785142896500347, + "calibration": { + "observed_rate": 0.0017812611328820805, + "mean_prediction": 0.002174306522624866, + "calibration_in_the_large": 0.00039304538974278564, + "expected_calibration_error_10bin": 0.00039304538974278564, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 7, + "negatives": 2800, + "auroc": 0.7875, + "auprc": 0.026660244699785427, + "brier": 0.002478366942211759, + "calibration": { + "observed_rate": 0.0024937655860349127, + "mean_prediction": 0.0025414290092808834, + "calibration_in_the_large": 4.7663423245970695e-05, + "expected_calibration_error_10bin": 4.766342324597048e-05, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 9, + "negatives": 2798, + "auroc": 0.8012469224048924, + "auprc": 0.028564538405968096, + "brier": 0.003180268582368049, + "calibration": { + "observed_rate": 0.003206270039187745, + "mean_prediction": 0.0027437327231773774, + "calibration_in_the_large": -0.00046253731601036746, + "expected_calibration_error_10bin": 0.0005424779263636017, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 10, + "negatives": 2797, + "auroc": 0.8173042545584555, + "auprc": 0.03228432582463201, + "brier": 0.0035231879301432937, + "calibration": { + "observed_rate": 0.003562522265764161, + "mean_prediction": 0.0029290751754426424, + "calibration_in_the_large": -0.0006334470903215186, + "expected_calibration_error_10bin": 0.0007925744301218727, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 10, + "negatives": 2797, + "auroc": 0.8163389345727565, + "auprc": 0.031917348774012165, + "brier": 0.0035238551824170157, + "calibration": { + "observed_rate": 0.003562522265764161, + "mean_prediction": 0.003182090433429904, + "calibration_in_the_large": -0.0003804318323342567, + "expected_calibration_error_10bin": 0.0006951851637401601, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 10, + "negatives": 2797, + "auroc": 0.8149803360743654, + "auprc": 0.03145016113297087, + "brier": 0.0035280732243732653, + "calibration": { + "observed_rate": 0.003562522265764161, + "mean_prediction": 0.0034193558903220316, + "calibration_in_the_large": -0.00014316637544212934, + "expected_calibration_error_10bin": 0.0007122220903364559, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 10, + "negatives": 2797, + "auroc": 0.81515909903468, + "auprc": 0.03242613193382433, + "brier": 0.0035341088895769384, + "calibration": { + "observed_rate": 0.003562522265764161, + "mean_prediction": 0.0037881467083600317, + "calibration_in_the_large": 0.00022562444259587077, + "expected_calibration_error_10bin": 0.0005379377537847365, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 10, + "negatives": 2797, + "auroc": 0.8141222738648553, + "auprc": 0.03178613670663006, + "brier": 0.0035422284032555025, + "calibration": { + "observed_rate": 0.003562522265764161, + "mean_prediction": 0.003996979091292433, + "calibration_in_the_large": 0.0004344568255282722, + "expected_calibration_error_10bin": 0.00044184287428461125, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 11, + "negatives": 2796, + "auroc": 0.8299518793081024, + "auprc": 0.04694478501861337, + "brier": 0.0038376187747020175, + "calibration": { + "observed_rate": 0.003918774492340577, + "mean_prediction": 0.004216100711049578, + "calibration_in_the_large": 0.0002973262187090011, + "expected_calibration_error_10bin": 0.0006815480953219304, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 11, + "negatives": 2796, + "auroc": 0.8289439458967356, + "auprc": 0.046409919683314975, + "brier": 0.003841313238948118, + "calibration": { + "observed_rate": 0.003918774492340577, + "mean_prediction": 0.00442488878602005, + "calibration_in_the_large": 0.0005061142936794733, + "expected_calibration_error_10bin": 0.0005061142936794731, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 12, + "negatives": 2795, + "auroc": 0.8210196779964222, + "auprc": 0.043776127943170616, + "brier": 0.0041961075134994835, + "calibration": { + "observed_rate": 0.004275026718916993, + "mean_prediction": 0.004446240045782896, + "calibration_in_the_large": 0.0001712133268659032, + "expected_calibration_error_10bin": 0.0002176610611469853, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + } + ], + "reason": null + }, + "J94": { + "time_averaged_auroc": 0.6823800259617412, + "time_averaged_auprc": 0.08030208511945647, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2829, + "positives": 4, + "negatives": 2825, + "auroc": 0.8299115044247788, + "auprc": 0.02795011392339636, + "brier": 0.001412699328383792, + "calibration": { + "observed_rate": 0.0014139271827500884, + "mean_prediction": 9.910479068812103e-05, + "calibration_in_the_large": -0.0013148223920619673, + "expected_calibration_error_10bin": 0.0013148223920619673, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 4, + "negatives": 2825, + "auroc": 0.802212389380531, + "auprc": 0.01383415248076902, + "brier": 0.0014123801111523518, + "calibration": { + "observed_rate": 0.0014139271827500884, + "mean_prediction": 0.00019861783516893789, + "calibration_in_the_large": -0.0012153093475811506, + "expected_calibration_error_10bin": 0.0012153093475811506, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 5, + "negatives": 2824, + "auroc": 0.6457507082152975, + "auprc": 0.01025509012344356, + "brier": 0.001765738767137371, + "calibration": { + "observed_rate": 0.0017674089784376105, + "mean_prediction": 0.00024283827409129295, + "calibration_in_the_large": -0.0015245707043463176, + "expected_calibration_error_10bin": 0.0015245707043463176, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 5, + "negatives": 2824, + "auroc": 0.6425637393767706, + "auprc": 0.009734080229364308, + "brier": 0.0017657763448731061, + "calibration": { + "observed_rate": 0.0017674089784376105, + "mean_prediction": 0.0002638041743898282, + "calibration_in_the_large": -0.0015036048040477823, + "expected_calibration_error_10bin": 0.0015036048040477823, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 8, + "negatives": 2821, + "auroc": 0.6068769939737682, + "auprc": 0.13490208642561122, + "brier": 0.0028135398610443486, + "calibration": { + "observed_rate": 0.002827854365500177, + "mean_prediction": 0.0003077747140989589, + "calibration_in_the_large": -0.002520079651401218, + "expected_calibration_error_10bin": 0.002520079651401218, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 9, + "negatives": 2820, + "auroc": 0.6468873128447596, + "auprc": 0.12399301528396828, + "brier": 0.0031627083395438104, + "calibration": { + "observed_rate": 0.003181336161187699, + "mean_prediction": 0.0003553619333912378, + "calibration_in_the_large": -0.002825974227796461, + "expected_calibration_error_10bin": 0.002825974227796461, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 9, + "negatives": 2820, + "auroc": 0.64822695035461, + "auprc": 0.12469652179102085, + "brier": 0.003159173355323969, + "calibration": { + "observed_rate": 0.003181336161187699, + "mean_prediction": 0.00045462951597570076, + "calibration_in_the_large": -0.002726706645211998, + "expected_calibration_error_10bin": 0.002726706645211998, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 9, + "negatives": 2820, + "auroc": 0.64822695035461, + "auprc": 0.06946613082507429, + "brier": 0.003156462767092273, + "calibration": { + "observed_rate": 0.003181336161187699, + "mean_prediction": 0.0005035314111083001, + "calibration_in_the_large": -0.002677804750079399, + "expected_calibration_error_10bin": 0.002677804750079399, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 10, + "negatives": 2819, + "auroc": 0.6822277403334516, + "auprc": 0.10594496996954203, + "brier": 0.003493714818266965, + "calibration": { + "observed_rate": 0.003534817956875221, + "mean_prediction": 0.0005483489383997509, + "calibration_in_the_large": -0.00298646901847547, + "expected_calibration_error_10bin": 0.00298646901847547, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 10, + "negatives": 2819, + "auroc": 0.6808087974459028, + "auprc": 0.10591301819453196, + "brier": 0.003492243006422368, + "calibration": { + "observed_rate": 0.003534817956875221, + "mean_prediction": 0.0005771840330849491, + "calibration_in_the_large": -0.002957633923790272, + "expected_calibration_error_10bin": 0.002957633923790272, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 10, + "negatives": 2819, + "auroc": 0.6794253281305428, + "auprc": 0.10582869699354099, + "brier": 0.0034908005216364012, + "calibration": { + "observed_rate": 0.003534817956875221, + "mean_prediction": 0.000606178833135514, + "calibration_in_the_large": -0.002928639123739707, + "expected_calibration_error_10bin": 0.002928639123739707, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 10, + "negatives": 2819, + "auroc": 0.6791060659808442, + "auprc": 0.10573296226321713, + "brier": 0.0034883837066982328, + "calibration": { + "observed_rate": 0.003534817956875221, + "mean_prediction": 0.0006308317446854985, + "calibration_in_the_large": -0.0029039862121897223, + "expected_calibration_error_10bin": 0.0029039862121897223, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 10, + "negatives": 2819, + "auroc": 0.6787158566867684, + "auprc": 0.10567626804945404, + "brier": 0.003488274235742768, + "calibration": { + "observed_rate": 0.003534817956875221, + "mean_prediction": 0.0006334815604989354, + "calibration_in_the_large": -0.0029013363963762855, + "expected_calibration_error_10bin": 0.0029013363963762855, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + } + ], + "reason": null + }, + "J95": { + "time_averaged_auroc": 0.8115948157318229, + "time_averaged_auprc": 0.021481288760123503, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2770, + "positives": 5, + "negatives": 2765, + "auroc": 0.7854611211573237, + "auprc": 0.009592408194301254, + "brier": 0.0018006808061513495, + "calibration": { + "observed_rate": 0.0018050541516245488, + "mean_prediction": 0.0005886971669116272, + "calibration_in_the_large": -0.0012163569847129215, + "expected_calibration_error_10bin": 0.0012163569847129215, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9743228983468167 + }, + { + "valid": 2770, + "positives": 8, + "negatives": 2762, + "auroc": 0.8047610427226647, + "auprc": 0.01317106985453118, + "brier": 0.002873864988176172, + "calibration": { + "observed_rate": 0.002888086642599278, + "mean_prediction": 0.0012857190479970198, + "calibration_in_the_large": -0.001602367594602258, + "expected_calibration_error_10bin": 0.001602367594602258, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9743228983468167 + }, + { + "valid": 2770, + "positives": 11, + "negatives": 2759, + "auroc": 0.8042769119246104, + "auprc": 0.017725136425632195, + "brier": 0.003941813406860133, + "calibration": { + "observed_rate": 0.003971119133574007, + "mean_prediction": 0.001860958046976166, + "calibration_in_the_large": -0.002110161086597841, + "expected_calibration_error_10bin": 0.002110161086597841, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9743228983468167 + }, + { + "valid": 2770, + "positives": 11, + "negatives": 2759, + "auroc": 0.80229991103496, + "auprc": 0.01710079096737417, + "brier": 0.003940365765732586, + "calibration": { + "observed_rate": 0.003971119133574007, + "mean_prediction": 0.0021808468232239033, + "calibration_in_the_large": -0.001790272310350104, + "expected_calibration_error_10bin": 0.001790272310350104, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9743228983468167 + }, + { + "valid": 2770, + "positives": 12, + "negatives": 2758, + "auroc": 0.8130891950688905, + "auprc": 0.019209097258886528, + "brier": 0.004294863523817768, + "calibration": { + "observed_rate": 0.004332129963898917, + "mean_prediction": 0.002424543819893106, + "calibration_in_the_large": -0.001907586144005811, + "expected_calibration_error_10bin": 0.001907586144005811, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9743228983468167 + }, + { + "valid": 2770, + "positives": 12, + "negatives": 2758, + "auroc": 0.8123338167754411, + "auprc": 0.018879352275351695, + "brier": 0.004295242243404065, + "calibration": { + "observed_rate": 0.004332129963898917, + "mean_prediction": 0.002559500847732558, + "calibration_in_the_large": -0.001772629116166359, + "expected_calibration_error_10bin": 0.001772629116166359, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9743228983468167 + }, + { + "valid": 2770, + "positives": 12, + "negatives": 2758, + "auroc": 0.8098561759729273, + "auprc": 0.018167190914518096, + "brier": 0.0042980841721829205, + "calibration": { + "observed_rate": 0.004332129963898917, + "mean_prediction": 0.002936494302807676, + "calibration_in_the_large": -0.0013956356610912409, + "expected_calibration_error_10bin": 0.0013956356610912409, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9743228983468167 + }, + { + "valid": 2770, + "positives": 12, + "negatives": 2758, + "auroc": 0.8079224075416969, + "auprc": 0.01746857351515474, + "brier": 0.004302273951158515, + "calibration": { + "observed_rate": 0.004332129963898917, + "mean_prediction": 0.0031049395811469332, + "calibration_in_the_large": -0.0012271903827519837, + "expected_calibration_error_10bin": 0.0012271903827519837, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9743228983468167 + }, + { + "valid": 2770, + "positives": 13, + "negatives": 2757, + "auroc": 0.8244747635389638, + "auprc": 0.033294706775951095, + "brier": 0.004630790918493728, + "calibration": { + "observed_rate": 0.004693140794223827, + "mean_prediction": 0.003363060950995522, + "calibration_in_the_large": -0.0013300798432283045, + "expected_calibration_error_10bin": 0.0013300798432283045, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9743228983468167 + }, + { + "valid": 2770, + "positives": 14, + "negatives": 2756, + "auroc": 0.8282189508604603, + "auprc": 0.030124189618864948, + "brier": 0.004988158067505975, + "calibration": { + "observed_rate": 0.005054151624548736, + "mean_prediction": 0.0035458595301483763, + "calibration_in_the_large": -0.00150829209440036, + "expected_calibration_error_10bin": 0.00150829209440036, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9743228983468167 + }, + { + "valid": 2770, + "positives": 16, + "negatives": 2754, + "auroc": 0.8198302469135802, + "auprc": 0.029508867718425445, + "brier": 0.005703535905779644, + "calibration": { + "observed_rate": 0.005776173285198556, + "mean_prediction": 0.0037510012796484926, + "calibration_in_the_large": -0.002025172005550063, + "expected_calibration_error_10bin": 0.002025172005550063, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9743228983468167 + }, + { + "valid": 2770, + "positives": 16, + "negatives": 2754, + "auroc": 0.8190359477124183, + "auprc": 0.027501714430808347, + "brier": 0.005703935891443803, + "calibration": { + "observed_rate": 0.005776173285198556, + "mean_prediction": 0.0039394722654853154, + "calibration_in_the_large": -0.0018367010197132402, + "expected_calibration_error_10bin": 0.0018367010197132402, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9743228983468167 + }, + { + "valid": 2770, + "positives": 16, + "negatives": 2754, + "auroc": 0.8191721132897604, + "auprc": 0.027513655931805835, + "brier": 0.0057040175431085196, + "calibration": { + "observed_rate": 0.005776173285198556, + "mean_prediction": 0.003945023042269435, + "calibration_in_the_large": -0.0018311502429291205, + "expected_calibration_error_10bin": 0.0018311502429291205, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9743228983468167 + } + ], + "reason": null + }, + "J96": { + "time_averaged_auroc": 0.8409757493036469, + "time_averaged_auprc": 0.10476668822433988, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2605, + "positives": 10, + "negatives": 2595, + "auroc": 0.87626204238921, + "auprc": 0.03932875440400677, + "brier": 0.003772568747430667, + "calibration": { + "observed_rate": 0.003838771593090211, + "mean_prediction": 0.0035464261400992726, + "calibration_in_the_large": -0.00029234545299093844, + "expected_calibration_error_10bin": 0.00029234545299093844, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9162856137882518 + }, + { + "valid": 2605, + "positives": 20, + "negatives": 2585, + "auroc": 0.8745647969052225, + "auprc": 0.0564786008659922, + "brier": 0.007441765844431574, + "calibration": { + "observed_rate": 0.007677543186180422, + "mean_prediction": 0.007281361630797647, + "calibration_in_the_large": -0.00039618155538277515, + "expected_calibration_error_10bin": 0.0007265693291436826, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9162856137882518 + }, + { + "valid": 2605, + "positives": 36, + "negatives": 2569, + "auroc": 0.8505038709398383, + "auprc": 0.10104908609895608, + "brier": 0.013154090743396882, + "calibration": { + "observed_rate": 0.01381957773512476, + "mean_prediction": 0.009440951460343345, + "calibration_in_the_large": -0.004378626274781415, + "expected_calibration_error_10bin": 0.004378626274781415, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9162856137882518 + }, + { + "valid": 2605, + "positives": 42, + "negatives": 2563, + "auroc": 0.8449361797001282, + "auprc": 0.0980704667647289, + "brier": 0.01529859343344422, + "calibration": { + "observed_rate": 0.016122840690978888, + "mean_prediction": 0.01120194184822246, + "calibration_in_the_large": -0.004920898842756429, + "expected_calibration_error_10bin": 0.004920898842756427, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9162856137882518 + }, + { + "valid": 2605, + "positives": 49, + "negatives": 2556, + "auroc": 0.8412458880265722, + "auprc": 0.10223313579434655, + "brier": 0.01775597673633505, + "calibration": { + "observed_rate": 0.018809980806142036, + "mean_prediction": 0.013172479571533056, + "calibration_in_the_large": -0.0056375012346089794, + "expected_calibration_error_10bin": 0.005793958175986614, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9162856137882518 + }, + { + "valid": 2605, + "positives": 54, + "negatives": 2551, + "auroc": 0.8395908648750672, + "auprc": 0.10729812581477116, + "brier": 0.019476402002011554, + "calibration": { + "observed_rate": 0.02072936660268714, + "mean_prediction": 0.014685812668331383, + "calibration_in_the_large": -0.006043553934355756, + "expected_calibration_error_10bin": 0.006372582224557041, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9162856137882518 + }, + { + "valid": 2605, + "positives": 59, + "negatives": 2546, + "auroc": 0.8402345986392746, + "auprc": 0.10881277485360966, + "brier": 0.021211888596659907, + "calibration": { + "observed_rate": 0.022648752399232246, + "mean_prediction": 0.01601515784583143, + "calibration_in_the_large": -0.006633594553400814, + "expected_calibration_error_10bin": 0.0069854550606080895, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9162856137882518 + }, + { + "valid": 2605, + "positives": 64, + "negatives": 2541, + "auroc": 0.8303325462416371, + "auprc": 0.1113577120021837, + "brier": 0.022982298257783054, + "calibration": { + "observed_rate": 0.024568138195777352, + "mean_prediction": 0.016680419927538572, + "calibration_in_the_large": -0.00788771826823878, + "expected_calibration_error_10bin": 0.008576675109178585, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9162856137882518 + }, + { + "valid": 2605, + "positives": 68, + "negatives": 2537, + "auroc": 0.8352500637622018, + "auprc": 0.12153729126010833, + "brier": 0.024269856810256004, + "calibration": { + "observed_rate": 0.026103646833013437, + "mean_prediction": 0.017504570381882918, + "calibration_in_the_large": -0.008599076451130519, + "expected_calibration_error_10bin": 0.008720686709584383, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9162856137882518 + }, + { + "valid": 2605, + "positives": 70, + "negatives": 2535, + "auroc": 0.8324429416737109, + "auprc": 0.12325126974037492, + "brier": 0.02493843613366994, + "calibration": { + "observed_rate": 0.026871401151631478, + "mean_prediction": 0.018387627565132025, + "calibration_in_the_large": -0.008483773586499453, + "expected_calibration_error_10bin": 0.008483773586499453, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9162856137882518 + }, + { + "valid": 2605, + "positives": 76, + "negatives": 2529, + "auroc": 0.8240983538323864, + "auprc": 0.12599425371713355, + "brier": 0.027066593356788907, + "calibration": { + "observed_rate": 0.029174664107485603, + "mean_prediction": 0.019227562416234276, + "calibration_in_the_large": -0.009947101691251327, + "expected_calibration_error_10bin": 0.010181766001443064, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9162856137882518 + }, + { + "valid": 2605, + "positives": 81, + "negatives": 2524, + "auroc": 0.8216333078984954, + "auprc": 0.13334416058405146, + "brier": 0.028700885717625104, + "calibration": { + "observed_rate": 0.03109404990403071, + "mean_prediction": 0.020233512567790272, + "calibration_in_the_large": -0.010860537336240438, + "expected_calibration_error_10bin": 0.011335782833059874, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9162856137882518 + }, + { + "valid": 2605, + "positives": 81, + "negatives": 2524, + "auroc": 0.8215892860636653, + "auprc": 0.1332113150161552, + "brier": 0.028695742720697692, + "calibration": { + "observed_rate": 0.03109404990403071, + "mean_prediction": 0.020388831076646942, + "calibration_in_the_large": -0.010705218827383768, + "expected_calibration_error_10bin": 0.011185482211582269, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9162856137882518 + } + ], + "reason": null + }, + "J98": { + "time_averaged_auroc": 0.7140412535751142, + "time_averaged_auprc": 0.03281134451503883, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2692, + "positives": 6, + "negatives": 2686, + "auroc": 0.6389302556465625, + "auprc": 0.004101048564964352, + "brier": 0.0022254324077848873, + "calibration": { + "observed_rate": 0.002228826151560178, + "mean_prediction": 0.0020922758507000106, + "calibration_in_the_large": -0.00013655030086016755, + "expected_calibration_error_10bin": 0.00013655030086016755, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9468870911009497 + }, + { + "valid": 2692, + "positives": 9, + "negatives": 2683, + "auroc": 0.6896923013210751, + "auprc": 0.00965821794819685, + "brier": 0.003327876306188128, + "calibration": { + "observed_rate": 0.0033432392273402673, + "mean_prediction": 0.0032665911553015387, + "calibration_in_the_large": -7.664807203872862e-05, + "expected_calibration_error_10bin": 7.664807203872862e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9468870911009497 + }, + { + "valid": 2692, + "positives": 16, + "negatives": 2676, + "auroc": 0.6918675261584455, + "auprc": 0.01963789627625709, + "brier": 0.00589303522260946, + "calibration": { + "observed_rate": 0.005943536404160475, + "mean_prediction": 0.004169600171873353, + "calibration_in_the_large": -0.001773936232287122, + "expected_calibration_error_10bin": 0.001773936232287122, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9468870911009497 + }, + { + "valid": 2692, + "positives": 20, + "negatives": 2672, + "auroc": 0.6741017964071856, + "auprc": 0.02117374285359154, + "brier": 0.007354418341973629, + "calibration": { + "observed_rate": 0.007429420505200594, + "mean_prediction": 0.004832897372363967, + "calibration_in_the_large": -0.002596523132836627, + "expected_calibration_error_10bin": 0.002596523132836627, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9468870911009497 + }, + { + "valid": 2692, + "positives": 20, + "negatives": 2672, + "auroc": 0.6722118263473054, + "auprc": 0.022206993176684352, + "brier": 0.0073501324540052575, + "calibration": { + "observed_rate": 0.007429420505200594, + "mean_prediction": 0.0053934506205922115, + "calibration_in_the_large": -0.0020359698846083825, + "expected_calibration_error_10bin": 0.0020359698846083825, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9468870911009497 + }, + { + "valid": 2692, + "positives": 27, + "negatives": 2665, + "auroc": 0.7100409978458759, + "auprc": 0.0331204620613533, + "brier": 0.009873123889834504, + "calibration": { + "observed_rate": 0.010029717682020803, + "mean_prediction": 0.005860072164906568, + "calibration_in_the_large": -0.004169645517114236, + "expected_calibration_error_10bin": 0.004169645517114236, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9468870911009497 + }, + { + "valid": 2692, + "positives": 29, + "negatives": 2663, + "auroc": 0.7181426185142502, + "auprc": 0.03395664006926083, + "brier": 0.010589901997458852, + "calibration": { + "observed_rate": 0.010772659732540862, + "mean_prediction": 0.006345829815459311, + "calibration_in_the_large": -0.004426829917081551, + "expected_calibration_error_10bin": 0.004426829917081551, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9468870911009497 + }, + { + "valid": 2692, + "positives": 31, + "negatives": 2661, + "auroc": 0.72537610163533, + "auprc": 0.03588315513567189, + "brier": 0.01131153178582522, + "calibration": { + "observed_rate": 0.011515601783060922, + "mean_prediction": 0.006646911104899131, + "calibration_in_the_large": -0.004868690678161791, + "expected_calibration_error_10bin": 0.004868690678161791, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9468870911009497 + }, + { + "valid": 2692, + "positives": 34, + "negatives": 2658, + "auroc": 0.7451976275837648, + "auprc": 0.04358095292434753, + "brier": 0.012369566907109296, + "calibration": { + "observed_rate": 0.01263001485884101, + "mean_prediction": 0.006999277724419416, + "calibration_in_the_large": -0.005630737134421595, + "expected_calibration_error_10bin": 0.005630737134421595, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9468870911009497 + }, + { + "valid": 2692, + "positives": 35, + "negatives": 2657, + "auroc": 0.7521694714769611, + "auprc": 0.04631782272200058, + "brier": 0.01271832867158227, + "calibration": { + "observed_rate": 0.01300148588410104, + "mean_prediction": 0.007196163675353915, + "calibration_in_the_large": -0.005805322208747125, + "expected_calibration_error_10bin": 0.005805322208747125, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9468870911009497 + }, + { + "valid": 2692, + "positives": 37, + "negatives": 2655, + "auroc": 0.7566244210312006, + "auprc": 0.05012543131559952, + "brier": 0.013426441508250338, + "calibration": { + "observed_rate": 0.0137444279346211, + "mean_prediction": 0.007503182869188978, + "calibration_in_the_large": -0.006241245065432121, + "expected_calibration_error_10bin": 0.006320300458289413, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9468870911009497 + }, + { + "valid": 2692, + "positives": 39, + "negatives": 2653, + "auroc": 0.7540568490436564, + "auprc": 0.053367485681335744, + "brier": 0.014133526814842456, + "calibration": { + "observed_rate": 0.01448736998514116, + "mean_prediction": 0.007833160495588541, + "calibration_in_the_large": -0.006654209489552618, + "expected_calibration_error_10bin": 0.006739261398619566, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9468870911009497 + }, + { + "valid": 2692, + "positives": 39, + "negatives": 2653, + "auroc": 0.7541245034648728, + "auprc": 0.05341762996624125, + "brier": 0.014132248014684287, + "calibration": { + "observed_rate": 0.01448736998514116, + "mean_prediction": 0.00787954429423793, + "calibration_in_the_large": -0.00660782569090323, + "expected_calibration_error_10bin": 0.006693880854413186, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9468870911009497 + } + ], + "reason": null + }, + "K04": { + "time_averaged_auroc": 0.8555338239741909, + "time_averaged_auprc": 0.03192642735281458, + "valid_timepoint_cells": 10, + "timepoints": [ + { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 5.144022315470017e-09, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 4.5154311336813794e-05, + "calibration_in_the_large": 4.5154311336813794e-05, + "expected_calibration_error_10bin": 4.5154311336813794e-05, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 5.973415506241737e-08, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00012364012226426908, + "calibration_in_the_large": 0.00012364012226426908, + "expected_calibration_error_10bin": 0.00012364012226426908, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 2.2528341754431626e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00021377898814145676, + "calibration_in_the_large": 0.00021377898814145676, + "expected_calibration_error_10bin": 0.00021377898814145676, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 1, + "negatives": 2835, + "auroc": 0.7961199294532628, + "auprc": 0.0017271157167530224, + "brier": 0.0003528219330884208, + "calibration": { + "observed_rate": 0.0003526093088857546, + "mean_prediction": 0.00029587329433174956, + "calibration_in_the_large": -5.673601455400502e-05, + "expected_calibration_error_10bin": 5.673601455400502e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 1, + "negatives": 2835, + "auroc": 0.7876543209876543, + "auprc": 0.001658374792703151, + "brier": 0.00035294214797471524, + "calibration": { + "observed_rate": 0.0003526093088857546, + "mean_prediction": 0.0003697099356703224, + "calibration_in_the_large": 1.7100626784567806e-05, + "expected_calibration_error_10bin": 1.7100626784567806e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 1, + "negatives": 2835, + "auroc": 0.7883597883597884, + "auprc": 0.0016638935108153079, + "brier": 0.0003529595069901815, + "calibration": { + "observed_rate": 0.0003526093088857546, + "mean_prediction": 0.0003784531542179781, + "calibration_in_the_large": 2.584384533222355e-05, + "expected_calibration_error_10bin": 2.584384533222355e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 1, + "negatives": 2835, + "auroc": 0.799294532627866, + "auprc": 0.0017543859649122807, + "brier": 0.00035306528472612246, + "calibration": { + "observed_rate": 0.0003526093088857546, + "mean_prediction": 0.00041594231039956476, + "calibration_in_the_large": 6.333300151381018e-05, + "expected_calibration_error_10bin": 6.333300151381018e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.8941425546930134, + "auprc": 0.051686340640809444, + "brier": 0.0007009446136564106, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.0004725303776527917, + "calibration_in_the_large": -0.00023268824011871744, + "expected_calibration_error_10bin": 0.00023268824011871744, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.894318983768525, + "auprc": 0.05168918918918919, + "brier": 0.0007008467872658383, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.0004914865797504287, + "calibration_in_the_large": -0.00021373203802108043, + "expected_calibration_error_10bin": 0.00021373203802108043, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.8999647141848977, + "auprc": 0.047243454220198405, + "brier": 0.0007006342969417691, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.000550047383939887, + "calibration_in_the_large": -0.0001551712338316222, + "expected_calibration_error_10bin": 0.0001551712338316222, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.8994354269583628, + "auprc": 0.04723390488515044, + "brier": 0.000700548007205758, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.0005685787938131147, + "calibration_in_the_large": -0.0001366398239583945, + "expected_calibration_error_10bin": 0.0001366398239583945, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.8980239943542696, + "auprc": 0.057303807303807304, + "brier": 0.0006999716951660315, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.0006038585057988382, + "calibration_in_the_large": -0.00010136011197267093, + "expected_calibration_error_10bin": 0.00010136011197267093, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.8980239943542696, + "auprc": 0.057303807303807304, + "brier": 0.0006999589953763592, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.0006058342712924561, + "calibration_in_the_large": -9.938434647905302e-05, + "expected_calibration_error_10bin": 9.938434647905302e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + } + ], + "reason": null + }, + "K12": { + "time_averaged_auroc": 0.9133064556358944, + "time_averaged_auprc": 0.08845720562383041, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.9959248759744862, + "auprc": 0.1125, + "brier": 0.0006885583911798524, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0003224723158791096, + "calibration_in_the_large": -0.00038574298157131534, + "expected_calibration_error_10bin": 0.00038574298157131534, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.9955705173635719, + "auprc": 0.12878787878787878, + "brier": 0.0007256556368386368, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0013958437491883855, + "calibration_in_the_large": 0.0006876284517379605, + "expected_calibration_error_10bin": 0.0006876284517379606, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 5, + "negatives": 2819, + "auroc": 0.88698119900674, + "auprc": 0.06907273569990455, + "brier": 0.0018540613207349832, + "calibration": { + "observed_rate": 0.0017705382436260624, + "mean_prediction": 0.002017518288696581, + "calibration_in_the_large": 0.00024698004507051844, + "expected_calibration_error_10bin": 0.0013439512259080877, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 9, + "negatives": 2815, + "auroc": 0.892086046970594, + "auprc": 0.07035139869389358, + "brier": 0.003287312092977592, + "calibration": { + "observed_rate": 0.003186968838526912, + "mean_prediction": 0.002772073722560055, + "calibration_in_the_large": -0.00041489511596685697, + "expected_calibration_error_10bin": 0.0021181668163369324, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 9, + "negatives": 2815, + "auroc": 0.8916913360963095, + "auprc": 0.07028768801960111, + "brier": 0.0033209268717489643, + "calibration": { + "observed_rate": 0.003186968838526912, + "mean_prediction": 0.0030095543310150294, + "calibration_in_the_large": -0.00017741450751188265, + "expected_calibration_error_10bin": 0.0021834984823957296, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 9, + "negatives": 2815, + "auroc": 0.8916518650088809, + "auprc": 0.07328321762608254, + "brier": 0.0034013557189665512, + "calibration": { + "observed_rate": 0.003186968838526912, + "mean_prediction": 0.003380243667573103, + "calibration_in_the_large": 0.00019327482904619086, + "expected_calibration_error_10bin": 0.0023443500444913267, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 10, + "negatives": 2814, + "auroc": 0.8868159203980099, + "auprc": 0.06759020662505286, + "brier": 0.003806191970110233, + "calibration": { + "observed_rate": 0.0035410764872521247, + "mean_prediction": 0.003563180438202696, + "calibration_in_the_large": 2.2103950950571206e-05, + "expected_calibration_error_10bin": 0.0027275131629527207, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 13, + "negatives": 2811, + "auroc": 0.9092575869523575, + "auprc": 0.0970604493167956, + "brier": 0.004752496358561546, + "calibration": { + "observed_rate": 0.004603399433427762, + "mean_prediction": 0.0038478992020844465, + "calibration_in_the_large": -0.0007555002313433153, + "expected_calibration_error_10bin": 0.00324829314627353, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 14, + "negatives": 2810, + "auroc": 0.9048296898830707, + "auprc": 0.09304032877549606, + "brier": 0.005172480988935684, + "calibration": { + "observed_rate": 0.004957507082152974, + "mean_prediction": 0.0040571779671362915, + "calibration_in_the_large": -0.0009003291150166829, + "expected_calibration_error_10bin": 0.0036795983893936294, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 14, + "negatives": 2810, + "auroc": 0.904753431621759, + "auprc": 0.09294334089912103, + "brier": 0.005194068650628238, + "calibration": { + "observed_rate": 0.004957507082152974, + "mean_prediction": 0.004157111310696667, + "calibration_in_the_large": -0.0008003957714563074, + "expected_calibration_error_10bin": 0.0038207348074526036, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 14, + "negatives": 2810, + "auroc": 0.9043975597356381, + "auprc": 0.0911700583637843, + "brier": 0.005219370739109059, + "calibration": { + "observed_rate": 0.004957507082152974, + "mean_prediction": 0.004298817860232056, + "calibration_in_the_large": -0.0006586892219209188, + "expected_calibration_error_10bin": 0.004017370673334098, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 14, + "negatives": 2810, + "auroc": 0.9045500762582613, + "auprc": 0.0919326317551845, + "brier": 0.005252803004196096, + "calibration": { + "observed_rate": 0.004957507082152974, + "mean_prediction": 0.004407607324500462, + "calibration_in_the_large": -0.0005498997576525123, + "expected_calibration_error_10bin": 0.004206532586550712, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 14, + "negatives": 2810, + "auroc": 0.9044738179969497, + "auprc": 0.0919237385470004, + "brier": 0.005256732429637723, + "calibration": { + "observed_rate": 0.004957507082152974, + "mean_prediction": 0.004431381905713625, + "calibration_in_the_large": -0.0005261251764393498, + "expected_calibration_error_10bin": 0.004195621849590737, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + } + ], + "reason": null + }, + "K20": { + "time_averaged_auroc": 0.6768178889584201, + "time_averaged_auprc": 0.017493271540016106, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2813, + "positives": 1, + "negatives": 2812, + "auroc": 0.6148648648648649, + "auprc": 0.0009225092250922509, + "brier": 0.00035931271334824005, + "calibration": { + "observed_rate": 0.00035549235691432633, + "mean_prediction": 0.0007751204631642716, + "calibration_in_the_large": 0.00041962810624994527, + "expected_calibration_error_10bin": 0.00041962810624994527, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 3, + "negatives": 2810, + "auroc": 0.7177935943060498, + "auprc": 0.023615900413984994, + "brier": 0.001073359203681996, + "calibration": { + "observed_rate": 0.001066477070742979, + "mean_prediction": 0.001783939343014064, + "calibration_in_the_large": 0.0007174622722710849, + "expected_calibration_error_10bin": 0.0007174622722710849, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 4, + "negatives": 2809, + "auroc": 0.6031505873976504, + "auprc": 0.018189051728500834, + "brier": 0.001435768471505263, + "calibration": { + "observed_rate": 0.0014219694276573053, + "mean_prediction": 0.002066301905360655, + "calibration_in_the_large": 0.0006443324777033496, + "expected_calibration_error_10bin": 0.0006443324777033494, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 4, + "negatives": 2809, + "auroc": 0.6037735849056604, + "auprc": 0.018185360529485942, + "brier": 0.0014484188598467183, + "calibration": { + "observed_rate": 0.0014219694276573053, + "mean_prediction": 0.0025155979647648657, + "calibration_in_the_large": 0.0010936285371075604, + "expected_calibration_error_10bin": 0.0010936285371075604, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 5, + "negatives": 2808, + "auroc": 0.6595441595441596, + "auprc": 0.015581185288137117, + "brier": 0.0018149902729360408, + "calibration": { + "observed_rate": 0.0017774617845716318, + "mean_prediction": 0.002898720600032149, + "calibration_in_the_large": 0.0011212588154605172, + "expected_calibration_error_10bin": 0.0011212588154605174, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 5, + "negatives": 2808, + "auroc": 0.6599002849002849, + "auprc": 0.014183650877982627, + "brier": 0.0018282223258665332, + "calibration": { + "observed_rate": 0.0017774617845716318, + "mean_prediction": 0.003143179482614615, + "calibration_in_the_large": 0.001365717698042983, + "expected_calibration_error_10bin": 0.0013657176980429832, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 6, + "negatives": 2807, + "auroc": 0.7056762854767842, + "auprc": 0.014564340459449314, + "brier": 0.0021831295464285034, + "calibration": { + "observed_rate": 0.002132954141485958, + "mean_prediction": 0.003318778451750451, + "calibration_in_the_large": 0.0011858243102644927, + "expected_calibration_error_10bin": 0.0011858243102644925, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 7, + "negatives": 2806, + "auroc": 0.749159963343855, + "auprc": 0.024229519885113272, + "brier": 0.0025113150461201356, + "calibration": { + "observed_rate": 0.002488446498400284, + "mean_prediction": 0.003519173635083209, + "calibration_in_the_large": 0.001030727136682925, + "expected_calibration_error_10bin": 0.0010307271366829245, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 10, + "negatives": 2803, + "auroc": 0.7246164823403496, + "auprc": 0.02114838552985849, + "brier": 0.003573808467979494, + "calibration": { + "observed_rate": 0.0035549235691432635, + "mean_prediction": 0.0036634264070146126, + "calibration_in_the_large": 0.00010850283787134903, + "expected_calibration_error_10bin": 0.0007247488912012108, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 10, + "negatives": 2803, + "auroc": 0.7247235105244381, + "auprc": 0.0202318517451558, + "brier": 0.003584403491999959, + "calibration": { + "observed_rate": 0.0035549235691432635, + "mean_prediction": 0.0038406179550486363, + "calibration_in_the_large": 0.0002856943859053727, + "expected_calibration_error_10bin": 0.0005949331299081543, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 11, + "negatives": 2802, + "auroc": 0.6789955226786062, + "auprc": 0.0187976377342408, + "brier": 0.003949520872857774, + "calibration": { + "observed_rate": 0.0039104159260575895, + "mean_prediction": 0.004004329435637284, + "calibration_in_the_large": 9.391350957969457e-05, + "expected_calibration_error_10bin": 0.000904361205944241, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 11, + "negatives": 2802, + "auroc": 0.6781519693725261, + "auprc": 0.018880937725029256, + "brier": 0.0039537906324481715, + "calibration": { + "observed_rate": 0.0039104159260575895, + "mean_prediction": 0.004193785344114965, + "calibration_in_the_large": 0.0002833694180573755, + "expected_calibration_error_10bin": 0.0007334736646245324, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 11, + "negatives": 2802, + "auroc": 0.6782817468042307, + "auprc": 0.018882198878178706, + "brier": 0.003954865551830521, + "calibration": { + "observed_rate": 0.0039104159260575895, + "mean_prediction": 0.004215673658751264, + "calibration_in_the_large": 0.0003052577326936746, + "expected_calibration_error_10bin": 0.0007165719099557653, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + } + ], + "reason": null + }, + "K21": { + "time_averaged_auroc": 0.7432632250767444, + "time_averaged_auprc": 0.1237306400022141, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2043, + "positives": 16, + "negatives": 2027, + "auroc": 0.7574309324124322, + "auprc": 0.04197463181944723, + "brier": 0.007690509721982324, + "calibration": { + "observed_rate": 0.00783162016642193, + "mean_prediction": 0.008121156304473754, + "calibration_in_the_large": 0.00028953613805182514, + "expected_calibration_error_10bin": 0.00028953613805182514, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7186071051705945 + }, + { + "valid": 2043, + "positives": 33, + "negatives": 2010, + "auroc": 0.7793306196291271, + "auprc": 0.12102739780087543, + "brier": 0.015464260484683919, + "calibration": { + "observed_rate": 0.016152716593245228, + "mean_prediction": 0.013370701101567775, + "calibration_in_the_large": -0.0027820154916774528, + "expected_calibration_error_10bin": 0.002782015491677453, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7186071051705945 + }, + { + "valid": 2043, + "positives": 44, + "negatives": 1999, + "auroc": 0.7572081495293101, + "auprc": 0.10318184883556601, + "brier": 0.020517034039250915, + "calibration": { + "observed_rate": 0.021536955457660302, + "mean_prediction": 0.01703070105201981, + "calibration_in_the_large": -0.004506254405640491, + "expected_calibration_error_10bin": 0.004506254405640495, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7186071051705945 + }, + { + "valid": 2043, + "positives": 52, + "negatives": 1991, + "auroc": 0.7344492524050535, + "auprc": 0.09965241065730356, + "brier": 0.024167799694313295, + "calibration": { + "observed_rate": 0.025452765540871267, + "mean_prediction": 0.019693190759976453, + "calibration_in_the_large": -0.005759574780894814, + "expected_calibration_error_10bin": 0.00616827863695923, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7186071051705945 + }, + { + "valid": 2043, + "positives": 56, + "negatives": 1987, + "auroc": 0.7362139621827594, + "auprc": 0.124143613821818, + "brier": 0.02580067321558208, + "calibration": { + "observed_rate": 0.02741067058247675, + "mean_prediction": 0.022143060066764586, + "calibration_in_the_large": -0.005267610515712163, + "expected_calibration_error_10bin": 0.005267610515712164, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7186071051705945 + }, + { + "valid": 2043, + "positives": 59, + "negatives": 1984, + "auroc": 0.7290783898305084, + "auprc": 0.12160054530300515, + "brier": 0.027142518914288136, + "calibration": { + "observed_rate": 0.02887909936368086, + "mean_prediction": 0.024064443761860514, + "calibration_in_the_large": -0.004814655601820348, + "expected_calibration_error_10bin": 0.004814655601820344, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7186071051705945 + }, + { + "valid": 2043, + "positives": 67, + "negatives": 1976, + "auroc": 0.7486479545591879, + "auprc": 0.14494075292089514, + "brier": 0.030425220643502233, + "calibration": { + "observed_rate": 0.032794909446891826, + "mean_prediction": 0.026658559832833634, + "calibration_in_the_large": -0.0061363496140581925, + "expected_calibration_error_10bin": 0.006136349614058189, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7186071051705945 + }, + { + "valid": 2043, + "positives": 73, + "negatives": 1970, + "auroc": 0.7310687712954593, + "auprc": 0.13707932984227883, + "brier": 0.033189927720685894, + "calibration": { + "observed_rate": 0.03573176700930005, + "mean_prediction": 0.028314726476373384, + "calibration_in_the_large": -0.007417040532926668, + "expected_calibration_error_10bin": 0.007417040532926665, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7186071051705945 + }, + { + "valid": 2043, + "positives": 76, + "negatives": 1967, + "auroc": 0.7371096781098654, + "auprc": 0.13902210039797175, + "brier": 0.03444130937025203, + "calibration": { + "observed_rate": 0.03720019579050416, + "mean_prediction": 0.030408940472247147, + "calibration_in_the_large": -0.006791255318257014, + "expected_calibration_error_10bin": 0.006791255318257016, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7186071051705945 + }, + { + "valid": 2043, + "positives": 85, + "negatives": 1958, + "auroc": 0.7396683290272187, + "auprc": 0.14145751736042483, + "brier": 0.03835172755132102, + "calibration": { + "observed_rate": 0.041605482134116495, + "mean_prediction": 0.0320806546087504, + "calibration_in_the_large": -0.009524827525366097, + "expected_calibration_error_10bin": 0.009524827525366101, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7186071051705945 + }, + { + "valid": 2043, + "positives": 88, + "negatives": 1955, + "auroc": 0.745855614973262, + "auprc": 0.14678913552013448, + "brier": 0.039523811858338205, + "calibration": { + "observed_rate": 0.043073910915320604, + "mean_prediction": 0.033440820740641156, + "calibration_in_the_large": -0.009633090174679448, + "expected_calibration_error_10bin": 0.010242523408446565, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7186071051705945 + }, + { + "valid": 2043, + "positives": 94, + "negatives": 1949, + "auroc": 0.7331692193487113, + "auprc": 0.14391643340688245, + "brier": 0.04224144375743249, + "calibration": { + "observed_rate": 0.04601076847772883, + "mean_prediction": 0.03477252433220097, + "calibration_in_the_large": -0.011238244145527862, + "expected_calibration_error_10bin": 0.0117269462165735, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7186071051705945 + }, + { + "valid": 2043, + "positives": 94, + "negatives": 1949, + "auroc": 0.7331910526947807, + "auprc": 0.1437126023421805, + "brier": 0.04223813522236508, + "calibration": { + "observed_rate": 0.04601076847772883, + "mean_prediction": 0.0350051678995667, + "calibration_in_the_large": -0.011005600578162127, + "expected_calibration_error_10bin": 0.011508470509890548, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7186071051705945 + } + ], + "reason": null + }, + "K22": { + "time_averaged_auroc": 0.8120711439111623, + "time_averaged_auprc": 0.034442052013636745, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2764, + "positives": 1, + "negatives": 2763, + "auroc": 0.9659790083242852, + "auprc": 0.010526315789473684, + "brier": 0.0003613862982563804, + "calibration": { + "observed_rate": 0.000361794500723589, + "mean_prediction": 0.0007315340437897738, + "calibration_in_the_large": 0.00036973954306618485, + "expected_calibration_error_10bin": 0.00036973954306618485, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9722124516355962 + }, + { + "valid": 2764, + "positives": 4, + "negatives": 2760, + "auroc": 0.8331521739130435, + "auprc": 0.057186172055953756, + "brier": 0.0014342378612386731, + "calibration": { + "observed_rate": 0.001447178002894356, + "mean_prediction": 0.0011217029584233186, + "calibration_in_the_large": -0.0003254750444710373, + "expected_calibration_error_10bin": 0.0003254750444710373, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9722124516355962 + }, + { + "valid": 2764, + "positives": 8, + "negatives": 2756, + "auroc": 0.8065130624092888, + "auprc": 0.03521941800802731, + "brier": 0.002872454165250914, + "calibration": { + "observed_rate": 0.002894356005788712, + "mean_prediction": 0.0015096582531681074, + "calibration_in_the_large": -0.0013846977526206043, + "expected_calibration_error_10bin": 0.0013846977526206043, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9722124516355962 + }, + { + "valid": 2764, + "positives": 9, + "negatives": 2755, + "auroc": 0.7637023593466424, + "auprc": 0.03169942614231367, + "brier": 0.0032322720661331398, + "calibration": { + "observed_rate": 0.003256150506512301, + "mean_prediction": 0.0017838461188894644, + "calibration_in_the_large": -0.0014723043876228366, + "expected_calibration_error_10bin": 0.0014723043876228366, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9722124516355962 + }, + { + "valid": 2764, + "positives": 13, + "negatives": 2751, + "auroc": 0.8228336548947236, + "auprc": 0.0396092423667878, + "brier": 0.004650247553483848, + "calibration": { + "observed_rate": 0.004703328509406657, + "mean_prediction": 0.0020530742310918802, + "calibration_in_the_large": -0.002650254278314777, + "expected_calibration_error_10bin": 0.002650254278314777, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9722124516355962 + }, + { + "valid": 2764, + "positives": 14, + "negatives": 2750, + "auroc": 0.8131948051948052, + "auprc": 0.038187818129010016, + "brier": 0.005008751134923587, + "calibration": { + "observed_rate": 0.005065123010130246, + "mean_prediction": 0.002209426397085866, + "calibration_in_the_large": -0.00285569661304438, + "expected_calibration_error_10bin": 0.00285569661304438, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9722124516355962 + }, + { + "valid": 2764, + "positives": 14, + "negatives": 2750, + "auroc": 0.8115064935064935, + "auprc": 0.03502983834354972, + "brier": 0.005005833681633396, + "calibration": { + "observed_rate": 0.005065123010130246, + "mean_prediction": 0.0024269358278930556, + "calibration_in_the_large": -0.0026381871822371904, + "expected_calibration_error_10bin": 0.0026381871822371904, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9722124516355962 + }, + { + "valid": 2764, + "positives": 15, + "negatives": 2749, + "auroc": 0.8065963380623257, + "auprc": 0.033609983950715155, + "brier": 0.005363658413082254, + "calibration": { + "observed_rate": 0.005426917510853835, + "mean_prediction": 0.0026106752309178367, + "calibration_in_the_large": -0.002816242279935998, + "expected_calibration_error_10bin": 0.002816242279935998, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9722124516355962 + }, + { + "valid": 2764, + "positives": 17, + "negatives": 2747, + "auroc": 0.7984539283496435, + "auprc": 0.032102379619004015, + "brier": 0.0060796408035826465, + "calibration": { + "observed_rate": 0.006150506512301013, + "mean_prediction": 0.002804418124993369, + "calibration_in_the_large": -0.0033460883873076444, + "expected_calibration_error_10bin": 0.0033460883873076444, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9722124516355962 + }, + { + "valid": 2764, + "positives": 18, + "negatives": 2746, + "auroc": 0.7915756251517359, + "auprc": 0.031722236564359435, + "brier": 0.006436900510950568, + "calibration": { + "observed_rate": 0.006512301013024602, + "mean_prediction": 0.0030338668475240822, + "calibration_in_the_large": -0.00347843416550052, + "expected_calibration_error_10bin": 0.00347843416550052, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9722124516355962 + }, + { + "valid": 2764, + "positives": 19, + "negatives": 2745, + "auroc": 0.8037580289521619, + "auprc": 0.03555370913899234, + "brier": 0.006784676847363186, + "calibration": { + "observed_rate": 0.006874095513748191, + "mean_prediction": 0.003227334087628263, + "calibration_in_the_large": -0.003646761426119928, + "expected_calibration_error_10bin": 0.003646761426119928, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9722124516355962 + }, + { + "valid": 2764, + "positives": 21, + "negatives": 2743, + "auroc": 0.7697862958526466, + "auprc": 0.03367179630529811, + "brier": 0.007502741673983752, + "calibration": { + "observed_rate": 0.007597684515195369, + "mean_prediction": 0.003403210785036577, + "calibration_in_the_large": -0.004194473730158793, + "expected_calibration_error_10bin": 0.004194473730158793, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9722124516355962 + }, + { + "valid": 2764, + "positives": 21, + "negatives": 2743, + "auroc": 0.7698730968873149, + "auprc": 0.033628339763792627, + "brier": 0.007502494889087758, + "calibration": { + "observed_rate": 0.007597684515195369, + "mean_prediction": 0.0034190290035491164, + "calibration_in_the_large": -0.004178655511646253, + "expected_calibration_error_10bin": 0.004178655511646253, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9722124516355962 + } + ], + "reason": null + }, + "K25": { + "time_averaged_auroc": 0.7353942484464565, + "time_averaged_auprc": 0.005632331778646569, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2817, + "positives": 2, + "negatives": 2815, + "auroc": 0.7474245115452931, + "auprc": 0.0020581445707497127, + "brier": 0.0007100963443501856, + "calibration": { + "observed_rate": 0.0007099751508697196, + "mean_prediction": 0.00027656263491443255, + "calibration_in_the_large": -0.000433412515955287, + "expected_calibration_error_10bin": 0.000433412515955287, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 2, + "negatives": 2815, + "auroc": 0.7087033747779752, + "auprc": 0.0017817001343731556, + "brier": 0.000711505485642508, + "calibration": { + "observed_rate": 0.0007099751508697196, + "mean_prediction": 0.0005532508174857472, + "calibration_in_the_large": -0.00015672433338397235, + "expected_calibration_error_10bin": 0.00015672433338397235, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 3, + "negatives": 2814, + "auroc": 0.7672352523098792, + "auprc": 0.0030390774717026004, + "brier": 0.0010672867180974506, + "calibration": { + "observed_rate": 0.0010649627263045794, + "mean_prediction": 0.000808336527727518, + "calibration_in_the_large": -0.0002566261985770614, + "expected_calibration_error_10bin": 0.0002566261985770614, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 5, + "negatives": 2812, + "auroc": 0.7876955903271693, + "auprc": 0.0069410140436009056, + "brier": 0.0017765299711330052, + "calibration": { + "observed_rate": 0.001774937877174299, + "mean_prediction": 0.0010629589249613427, + "calibration_in_the_large": -0.0007119789522129563, + "expected_calibration_error_10bin": 0.0007119789522129563, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 5, + "negatives": 2812, + "auroc": 0.7847083926031294, + "auprc": 0.0068978747941161826, + "brier": 0.0017781008564931133, + "calibration": { + "observed_rate": 0.001774937877174299, + "mean_prediction": 0.001240468833322232, + "calibration_in_the_large": -0.000534469043852067, + "expected_calibration_error_10bin": 0.000534469043852067, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 6, + "negatives": 2811, + "auroc": 0.74000948654097, + "auprc": 0.0065101776456007844, + "brier": 0.002132969378262968, + "calibration": { + "observed_rate": 0.002129925452609159, + "mean_prediction": 0.0012657063701707171, + "calibration_in_the_large": -0.0008642190824384418, + "expected_calibration_error_10bin": 0.0008642190824384418, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 6, + "negatives": 2811, + "auroc": 0.7418475038539073, + "auprc": 0.006649958765721561, + "brier": 0.0021356572771678195, + "calibration": { + "observed_rate": 0.002129925452609159, + "mean_prediction": 0.001398164112022904, + "calibration_in_the_large": -0.0007317613405862548, + "expected_calibration_error_10bin": 0.0007317613405862548, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 6, + "negatives": 2811, + "auroc": 0.7409581406379698, + "auprc": 0.006645435776687023, + "brier": 0.002136628313520666, + "calibration": { + "observed_rate": 0.002129925452609159, + "mean_prediction": 0.001514084034696343, + "calibration_in_the_large": -0.0006158414179128159, + "expected_calibration_error_10bin": 0.0006158414179128159, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 6, + "negatives": 2811, + "auroc": 0.7404245227084074, + "auprc": 0.006673478565863102, + "brier": 0.0021396320515496194, + "calibration": { + "observed_rate": 0.002129925452609159, + "mean_prediction": 0.0016530161735875215, + "calibration_in_the_large": -0.00047690927902163736, + "expected_calibration_error_10bin": 0.0005557601038452433, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 7, + "negatives": 2810, + "auroc": 0.7002033553634978, + "auprc": 0.006441726415232994, + "brier": 0.0024966103266509184, + "calibration": { + "observed_rate": 0.0024849130280440185, + "mean_prediction": 0.0017785921922777634, + "calibration_in_the_large": -0.0007063208357662551, + "expected_calibration_error_10bin": 0.0007903733295864725, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 7, + "negatives": 2810, + "auroc": 0.7011184544992374, + "auprc": 0.006430457686680993, + "brier": 0.0025012848971226608, + "calibration": { + "observed_rate": 0.0024849130280440185, + "mean_prediction": 0.0019918892441132627, + "calibration_in_the_large": -0.0004930237839307558, + "expected_calibration_error_10bin": 0.000585319492212977, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 7, + "negatives": 2810, + "auroc": 0.7, + "auprc": 0.006576760848485649, + "brier": 0.0025044211002821816, + "calibration": { + "observed_rate": 0.0024849130280440185, + "mean_prediction": 0.0021143637664867688, + "calibration_in_the_large": -0.0003705492615572498, + "expected_calibration_error_10bin": 0.00046851803286511684, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 7, + "negatives": 2810, + "auroc": 0.6997966446365023, + "auprc": 0.006574506403590739, + "brier": 0.002504536448169568, + "calibration": { + "observed_rate": 0.0024849130280440185, + "mean_prediction": 0.0021203258430517384, + "calibration_in_the_large": -0.00036458718499228016, + "expected_calibration_error_10bin": 0.0004627374785747403, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + } + ], + "reason": null + }, + "K26": { + "time_averaged_auroc": 0.9381389567644843, + "time_averaged_auprc": 0.16197812335625952, + "valid_timepoint_cells": 12, + "timepoints": [ + { + "valid": 2814, + "positives": 0, + "negatives": 2814, + "auroc": null, + "auprc": null, + "brier": 1.373897877552793e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0007264422096824016, + "calibration_in_the_large": 0.0007264422096824016, + "expected_calibration_error_10bin": 0.0007264422096824016, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 2, + "negatives": 2812, + "auroc": 0.9038051209103841, + "auprc": 0.014484126984126985, + "brier": 0.0007083079229268469, + "calibration": { + "observed_rate": 0.0007107320540156361, + "mean_prediction": 0.0010812395903983328, + "calibration_in_the_large": 0.0003705075363826967, + "expected_calibration_error_10bin": 0.0003705075363826967, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 3, + "negatives": 2811, + "auroc": 0.9223289458081347, + "auprc": 0.014792896559957178, + "brier": 0.0010616256675753833, + "calibration": { + "observed_rate": 0.0010660980810234541, + "mean_prediction": 0.0014773416146567232, + "calibration_in_the_large": 0.000411243533633269, + "expected_calibration_error_10bin": 0.000411243533633269, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 3, + "negatives": 2811, + "auroc": 0.9377445748843828, + "auprc": 0.014983612722974425, + "brier": 0.0010623019956675053, + "calibration": { + "observed_rate": 0.0010660980810234541, + "mean_prediction": 0.001615007540866502, + "calibration_in_the_large": 0.000548909459843048, + "expected_calibration_error_10bin": 0.000548909459843048, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 4, + "negatives": 2810, + "auroc": 0.9602313167259786, + "auprc": 0.2691410018052974, + "brier": 0.0013807756978506216, + "calibration": { + "observed_rate": 0.0014214641080312722, + "mean_prediction": 0.0017162093865852113, + "calibration_in_the_large": 0.00029474527855393915, + "expected_calibration_error_10bin": 0.00029474527855393915, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 5, + "negatives": 2809, + "auroc": 0.9651833392666429, + "auprc": 0.2259568267947658, + "brier": 0.0017270644184123939, + "calibration": { + "observed_rate": 0.0017768301350390902, + "mean_prediction": 0.0018611795220262882, + "calibration_in_the_large": 8.434938698719798e-05, + "expected_calibration_error_10bin": 8.434938698719798e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 5, + "negatives": 2809, + "auroc": 0.9694553221787113, + "auprc": 0.2271607936250967, + "brier": 0.0017208261606352629, + "calibration": { + "observed_rate": 0.0017768301350390902, + "mean_prediction": 0.00196904451138889, + "calibration_in_the_large": 0.00019221437634979986, + "expected_calibration_error_10bin": 0.00019221437634979986, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 5, + "negatives": 2809, + "auroc": 0.9691705233179068, + "auprc": 0.22653697315876017, + "brier": 0.001717250581205207, + "calibration": { + "observed_rate": 0.0017768301350390902, + "mean_prediction": 0.0021091120081688872, + "calibration_in_the_large": 0.000332281873129797, + "expected_calibration_error_10bin": 0.000332281873129797, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 6, + "negatives": 2808, + "auroc": 0.9256885090218424, + "auprc": 0.19077823697662255, + "brier": 0.0020681651065801955, + "calibration": { + "observed_rate": 0.0021321961620469083, + "mean_prediction": 0.002239591520800319, + "calibration_in_the_large": 0.0001073953587534108, + "expected_calibration_error_10bin": 0.0001073953587534108, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 6, + "negatives": 2808, + "auroc": 0.9253917378917379, + "auprc": 0.19063778792999128, + "brier": 0.002067041123546076, + "calibration": { + "observed_rate": 0.0021321961620469083, + "mean_prediction": 0.00235613350635128, + "calibration_in_the_large": 0.0002239373443043719, + "expected_calibration_error_10bin": 0.0002239373443043719, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 6, + "negatives": 2808, + "auroc": 0.9261633428300095, + "auprc": 0.19016034918819766, + "brier": 0.0020667449031940054, + "calibration": { + "observed_rate": 0.0021321961620469083, + "mean_prediction": 0.0024478309031099915, + "calibration_in_the_large": 0.00031563474106308326, + "expected_calibration_error_10bin": 0.00031563474106308326, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 6, + "negatives": 2808, + "auroc": 0.9263414055080722, + "auprc": 0.189505023807806, + "brier": 0.0020668956652298335, + "calibration": { + "observed_rate": 0.0021321961620469083, + "mean_prediction": 0.002521912015800416, + "calibration_in_the_large": 0.0003897158537535077, + "expected_calibration_error_10bin": 0.0003897158537535077, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 6, + "negatives": 2808, + "auroc": 0.9261633428300095, + "auprc": 0.1895998507215184, + "brier": 0.002066530825836118, + "calibration": { + "observed_rate": 0.0021321961620469083, + "mean_prediction": 0.0025502336584039857, + "calibration_in_the_large": 0.0004180374963570774, + "expected_calibration_error_10bin": 0.0004180374963570774, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + } + ], + "reason": null + }, + "K29": { + "time_averaged_auroc": 0.7297177029786495, + "time_averaged_auprc": 0.030602150216311838, + "valid_timepoint_cells": 12, + "timepoints": [ + { + "valid": 2785, + "positives": 0, + "negatives": 2785, + "auroc": null, + "auprc": null, + "brier": 5.418390793049271e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0012834852515145121, + "calibration_in_the_large": 0.0012834852515145121, + "expected_calibration_error_10bin": 0.0012834852515145121, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 3, + "negatives": 2782, + "auroc": 0.7232207045291158, + "auprc": 0.025244116306342008, + "brier": 0.001074576158190589, + "calibration": { + "observed_rate": 0.0010771992818671453, + "mean_prediction": 0.002012208076649558, + "calibration_in_the_large": 0.0009350087947824126, + "expected_calibration_error_10bin": 0.0009350087947824126, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 4, + "negatives": 2781, + "auroc": 0.7872168284789643, + "auprc": 0.031153196213913572, + "brier": 0.001426114121515485, + "calibration": { + "observed_rate": 0.001436265709156194, + "mean_prediction": 0.0025107439699291402, + "calibration_in_the_large": 0.0010744782607729462, + "expected_calibration_error_10bin": 0.0010744782607729462, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 4, + "negatives": 2781, + "auroc": 0.7892844300611291, + "auprc": 0.03542029217991504, + "brier": 0.0014246876396932621, + "calibration": { + "observed_rate": 0.001436265709156194, + "mean_prediction": 0.0027887082598318956, + "calibration_in_the_large": 0.0013524425506757016, + "expected_calibration_error_10bin": 0.0013524425506757016, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 6, + "negatives": 2779, + "auroc": 0.8013673983447284, + "auprc": 0.033274903840364696, + "brier": 0.0021296222913041517, + "calibration": { + "observed_rate": 0.0021543985637342907, + "mean_prediction": 0.003077665867765277, + "calibration_in_the_large": 0.0009232673040309863, + "expected_calibration_error_10bin": 0.0009232673040309863, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 7, + "negatives": 2778, + "auroc": 0.8214542836573074, + "auprc": 0.032651319151905174, + "brier": 0.002482048492635696, + "calibration": { + "observed_rate": 0.0025134649910233393, + "mean_prediction": 0.003369267245971859, + "calibration_in_the_large": 0.0008558022549485199, + "expected_calibration_error_10bin": 0.0008558022549485199, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 10, + "negatives": 2775, + "auroc": 0.7245765765765766, + "auprc": 0.02554354219579118, + "brier": 0.003555896119818507, + "calibration": { + "observed_rate": 0.003590664272890485, + "mean_prediction": 0.0036295581615398385, + "calibration_in_the_large": 3.889388864935367e-05, + "expected_calibration_error_10bin": 3.889388864935367e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 10, + "negatives": 2775, + "auroc": 0.725081081081081, + "auprc": 0.025712110377809228, + "brier": 0.003557886429203206, + "calibration": { + "observed_rate": 0.003590664272890485, + "mean_prediction": 0.0038962274815008244, + "calibration_in_the_large": 0.0003055632086103395, + "expected_calibration_error_10bin": 0.00030556320861033996, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 12, + "negatives": 2773, + "auroc": 0.6808811155186921, + "auprc": 0.023067716787034762, + "brier": 0.0042762651339898535, + "calibration": { + "observed_rate": 0.004308797127468581, + "mean_prediction": 0.004240430941499784, + "calibration_in_the_large": -6.836618596879705e-05, + "expected_calibration_error_10bin": 0.00015100421103859116, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 13, + "negatives": 2772, + "auroc": 0.6675546675546675, + "auprc": 0.021696706019253904, + "brier": 0.00463755968394962, + "calibration": { + "observed_rate": 0.00466786355475763, + "mean_prediction": 0.004532995271456555, + "calibration_in_the_large": -0.0001348682833010751, + "expected_calibration_error_10bin": 0.00022377275227576597, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 14, + "negatives": 2771, + "auroc": 0.6911378048151776, + "auprc": 0.03782814614728959, + "brier": 0.004947740105672075, + "calibration": { + "observed_rate": 0.005026929982046679, + "mean_prediction": 0.004751079135613693, + "calibration_in_the_large": -0.00027585084643298556, + "expected_calibration_error_10bin": 0.00037146221837563905, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 15, + "negatives": 2770, + "auroc": 0.6723225030084236, + "auprc": 0.03781750465190805, + "brier": 0.005305502824138879, + "calibration": { + "observed_rate": 0.005385996409335727, + "mean_prediction": 0.004950553381207768, + "calibration_in_the_large": -0.00043544302812795893, + "expected_calibration_error_10bin": 0.0005374782077284265, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 15, + "negatives": 2770, + "auroc": 0.6725150421179302, + "auprc": 0.037816248724214845, + "brier": 0.005305682085328012, + "calibration": { + "observed_rate": 0.005385996409335727, + "mean_prediction": 0.004982397268275765, + "calibration_in_the_large": -0.00040359914105996247, + "expected_calibration_error_10bin": 0.0005063969818872059, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + } + ], + "reason": null + }, + "K30": { + "time_averaged_auroc": 0.9276283123377925, + "time_averaged_auprc": 0.00894211447806592, + "valid_timepoint_cells": 11, + "timepoints": [ + { + "valid": 2837, + "positives": 0, + "negatives": 2837, + "auroc": null, + "auprc": null, + "brier": 2.445422296904873e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00020463793718565425, + "calibration_in_the_large": 0.00020463793718565425, + "expected_calibration_error_10bin": 0.00020463793718565425, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9978895532887795 + }, + { + "valid": 2837, + "positives": 0, + "negatives": 2837, + "auroc": null, + "auprc": null, + "brier": 8.568061093715978e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0003826435074632667, + "calibration_in_the_large": 0.0003826435074632667, + "expected_calibration_error_10bin": 0.0003826435074632667, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9978895532887795 + }, + { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.9250440917107584, + "auprc": 0.006825429600568977, + "brier": 0.0007040523675718822, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0004443788513199995, + "calibration_in_the_large": -0.0002605911874533526, + "expected_calibration_error_10bin": 0.0002605911874533526, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.9231040564373898, + "auprc": 0.006655319891769224, + "brier": 0.0007041308935149308, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0005270439784870227, + "calibration_in_the_large": -0.00017792606028632944, + "expected_calibration_error_10bin": 0.00017792606028632944, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.9208112874779542, + "auprc": 0.006467251160391955, + "brier": 0.0007042131969544896, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0006044640798903925, + "calibration_in_the_large": -0.00010050595888295966, + "expected_calibration_error_10bin": 0.00010050595888295966, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.9195767195767196, + "auprc": 0.006386676906908121, + "brier": 0.0007042899644239336, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0006500937234971952, + "calibration_in_the_large": -5.487631527615689e-05, + "expected_calibration_error_10bin": 5.487631527615689e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.9199294532627866, + "auprc": 0.0064113001709680045, + "brier": 0.0007043639403010284, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0007003351619497371, + "calibration_in_the_large": -4.6348768236150134e-06, + "expected_calibration_error_10bin": 4.6348768236150134e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.9199294532627866, + "auprc": 0.00642048010469063, + "brier": 0.0007044242221707002, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0007508371246854593, + "calibration_in_the_large": 4.586708591210718e-05, + "expected_calibration_error_10bin": 4.586708591210718e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.9199294532627866, + "auprc": 0.006407132122984444, + "brier": 0.0007047302447314072, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0008078930588615874, + "calibration_in_the_large": 0.00010292302008823532, + "expected_calibration_error_10bin": 0.00010292302008823532, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + { + "valid": 2837, + "positives": 3, + "negatives": 2834, + "auroc": 0.9398964949423665, + "auprc": 0.013327051173229366, + "brier": 0.0010526184863529214, + "calibration": { + "observed_rate": 0.0010574550581600281, + "mean_prediction": 0.0008858183033699764, + "calibration_in_the_large": -0.00017163675479005172, + "expected_calibration_error_10bin": 0.00017163675479005172, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + { + "valid": 2837, + "positives": 3, + "negatives": 2834, + "auroc": 0.9389555398729711, + "auprc": 0.013249845392702535, + "brier": 0.0010526003825255031, + "calibration": { + "observed_rate": 0.0010574550581600281, + "mean_prediction": 0.0009497496426655631, + "calibration_in_the_large": -0.00010770541549446505, + "expected_calibration_error_10bin": 0.00010770541549446505, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + { + "valid": 2837, + "positives": 3, + "negatives": 2834, + "auroc": 0.938367442954599, + "auprc": 0.013106386367255932, + "brier": 0.0010526638524394347, + "calibration": { + "observed_rate": 0.0010574550581600281, + "mean_prediction": 0.00097921162040379, + "calibration_in_the_large": -7.824343775623814e-05, + "expected_calibration_error_10bin": 7.824343775623814e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + { + "valid": 2837, + "positives": 3, + "negatives": 2834, + "auroc": 0.938367442954599, + "auprc": 0.013106386367255932, + "brier": 0.0010526864832882256, + "calibration": { + "observed_rate": 0.0010574550581600281, + "mean_prediction": 0.0009846305111520695, + "calibration_in_the_large": -7.282454700795866e-05, + "expected_calibration_error_10bin": 7.282454700795866e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + } + ], + "reason": null + }, + "K31": { + "time_averaged_auroc": 0.8797520850539584, + "time_averaged_auprc": 0.13364618055064317, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2756, + "positives": 3, + "negatives": 2753, + "auroc": 0.7835088993824918, + "auprc": 0.335264170498021, + "brier": 0.0010550239191743506, + "calibration": { + "observed_rate": 0.0010885341074020319, + "mean_prediction": 0.0009117057664539609, + "calibration_in_the_large": -0.00017682834094807096, + "expected_calibration_error_10bin": 0.00017682834094807096, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + { + "valid": 2756, + "positives": 5, + "negatives": 2751, + "auroc": 0.8593965830607052, + "auprc": 0.22978833587407976, + "brier": 0.0017421107247154067, + "calibration": { + "observed_rate": 0.00181422351233672, + "mean_prediction": 0.0017814921569402988, + "calibration_in_the_large": -3.2731355396421096e-05, + "expected_calibration_error_10bin": 0.0005439143427910652, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + { + "valid": 2756, + "positives": 7, + "negatives": 2749, + "auroc": 0.8922725146806632, + "auprc": 0.1525299418162662, + "brier": 0.0023977568463552116, + "calibration": { + "observed_rate": 0.0025399129172714078, + "mean_prediction": 0.00228075711521726, + "calibration_in_the_large": -0.000259155802054148, + "expected_calibration_error_10bin": 0.0002703379181935664, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + { + "valid": 2756, + "positives": 8, + "negatives": 2748, + "auroc": 0.8901928675400291, + "auprc": 0.13593133440005511, + "brier": 0.0027493642246842753, + "calibration": { + "observed_rate": 0.002902757619738752, + "mean_prediction": 0.002813920092797416, + "calibration_in_the_large": -8.883752694133565e-05, + "expected_calibration_error_10bin": 0.0006656128006145795, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + { + "valid": 2756, + "positives": 10, + "negatives": 2746, + "auroc": 0.9019300801165331, + "auprc": 0.11382615737574298, + "brier": 0.003465888592117993, + "calibration": { + "observed_rate": 0.00362844702467344, + "mean_prediction": 0.0031679007781378397, + "calibration_in_the_large": -0.00046054624653560014, + "expected_calibration_error_10bin": 0.000645558458355984, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + { + "valid": 2756, + "positives": 11, + "negatives": 2745, + "auroc": 0.8870673952641166, + "auprc": 0.10385686603769559, + "brier": 0.003832232720264483, + "calibration": { + "observed_rate": 0.0039912917271407835, + "mean_prediction": 0.0035060163831820844, + "calibration_in_the_large": -0.00048527534395869905, + "expected_calibration_error_10bin": 0.0006891937554862581, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + { + "valid": 2756, + "positives": 15, + "negatives": 2741, + "auroc": 0.9062629210750335, + "auprc": 0.10074883329027952, + "brier": 0.0052261446796464505, + "calibration": { + "observed_rate": 0.00544267053701016, + "mean_prediction": 0.0037838375061329567, + "calibration_in_the_large": -0.0016588330308772029, + "expected_calibration_error_10bin": 0.0018961963687853538, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + { + "valid": 2756, + "positives": 17, + "negatives": 2739, + "auroc": 0.9079311900006443, + "auprc": 0.09566744097177658, + "brier": 0.0059449544652974955, + "calibration": { + "observed_rate": 0.006168359941944848, + "mean_prediction": 0.0041144133745623715, + "calibration_in_the_large": -0.002053946567382476, + "expected_calibration_error_10bin": 0.0025510451794151876, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + { + "valid": 2756, + "positives": 18, + "negatives": 2738, + "auroc": 0.8822944566187809, + "auprc": 0.09034086925402379, + "brier": 0.006311572860792329, + "calibration": { + "observed_rate": 0.006531204644412192, + "mean_prediction": 0.004408942132455044, + "calibration_in_the_large": -0.0021222625119571474, + "expected_calibration_error_10bin": 0.002803475000167573, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + { + "valid": 2756, + "positives": 18, + "negatives": 2738, + "auroc": 0.8821930038146254, + "auprc": 0.09046767445227284, + "brier": 0.0063174261158476805, + "calibration": { + "observed_rate": 0.006531204644412192, + "mean_prediction": 0.004689355157077652, + "calibration_in_the_large": -0.0018418494873345395, + "expected_calibration_error_10bin": 0.0026420953708374165, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + { + "valid": 2756, + "positives": 19, + "negatives": 2737, + "auroc": 0.8885256619810395, + "auprc": 0.10645311575405857, + "brier": 0.0065731413707216515, + "calibration": { + "observed_rate": 0.006894049346879536, + "mean_prediction": 0.0050396120178897875, + "calibration_in_the_large": -0.0018544373289897482, + "expected_calibration_error_10bin": 0.0021367045970501755, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + { + "valid": 2756, + "positives": 21, + "negatives": 2735, + "auroc": 0.8776704100287281, + "auprc": 0.09128691298878717, + "brier": 0.0073045478380861385, + "calibration": { + "observed_rate": 0.007619738751814224, + "mean_prediction": 0.005303373305806656, + "calibration_in_the_large": -0.0023163654460075676, + "expected_calibration_error_10bin": 0.002629236584839095, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + { + "valid": 2756, + "positives": 21, + "negatives": 2735, + "auroc": 0.8775311221380692, + "auprc": 0.09123869444530233, + "brier": 0.007305374211330053, + "calibration": { + "observed_rate": 0.007619738751814224, + "mean_prediction": 0.005349058738735904, + "calibration_in_the_large": -0.0022706800130783194, + "expected_calibration_error_10bin": 0.0027152016566781736, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + } + ], + "reason": null + }, + "K40": { + "time_averaged_auroc": 0.9009037715619508, + "time_averaged_auprc": 0.05689622298374479, + "valid_timepoint_cells": 10, + "timepoints": [ + { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 5.989509008834575e-08, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00016535874562082978, + "calibration_in_the_large": 0.00016535874562082978, + "expected_calibration_error_10bin": 0.00016535874562082978, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 3.053613581425613e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00031496652906676405, + "calibration_in_the_large": 0.00031496652906676405, + "expected_calibration_error_10bin": 0.00031496652906676405, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 5.630089262649428e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00038701995383931884, + "calibration_in_the_large": 0.00038701995383931884, + "expected_calibration_error_10bin": 0.00038701995383931884, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 1, + "negatives": 2826, + "auroc": 0.7515923566878981, + "auprc": 0.001422475106685633, + "brier": 0.00035414697579679564, + "calibration": { + "observed_rate": 0.00035373187124159886, + "mean_prediction": 0.0004766557149501791, + "calibration_in_the_large": 0.00012292384370858026, + "expected_calibration_error_10bin": 0.00012292384370858026, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 2, + "negatives": 2825, + "auroc": 0.8730973451327434, + "auprc": 0.05140845070422535, + "brier": 0.000702672017023424, + "calibration": { + "observed_rate": 0.0007074637424831977, + "mean_prediction": 0.0005538264306225053, + "calibration_in_the_large": -0.00015363731186069241, + "expected_calibration_error_10bin": 0.00015363731186069241, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 2, + "negatives": 2825, + "auroc": 0.8934513274336283, + "auprc": 0.0641750418760469, + "brier": 0.0007007159057197165, + "calibration": { + "observed_rate": 0.0007074637424831977, + "mean_prediction": 0.0006656078607004025, + "calibration_in_the_large": -4.185588178279526e-05, + "expected_calibration_error_10bin": 4.185588178279526e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 3, + "negatives": 2824, + "auroc": 0.9248111425873465, + "auprc": 0.0575942209605576, + "brier": 0.0010484279986176545, + "calibration": { + "observed_rate": 0.0010611956137247967, + "mean_prediction": 0.0007986812748710793, + "calibration_in_the_large": -0.00026251433885371737, + "expected_calibration_error_10bin": 0.00026251433885371737, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 3, + "negatives": 2824, + "auroc": 0.923748819641171, + "auprc": 0.058593073593073586, + "brier": 0.0010469513233068188, + "calibration": { + "observed_rate": 0.0010611956137247967, + "mean_prediction": 0.0008869122581474213, + "calibration_in_the_large": -0.0001742833555773754, + "expected_calibration_error_10bin": 0.0001742833555773754, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 3, + "negatives": 2824, + "auroc": 0.9236307837582625, + "auprc": 0.06429618565540896, + "brier": 0.001045978647476216, + "calibration": { + "observed_rate": 0.0010611956137247967, + "mean_prediction": 0.0009392716753593656, + "calibration_in_the_large": -0.00012192393836543106, + "expected_calibration_error_10bin": 0.00012192393836543106, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 3, + "negatives": 2824, + "auroc": 0.9219782813975449, + "auprc": 0.06426034115907533, + "brier": 0.0010456538700356654, + "calibration": { + "observed_rate": 0.0010611956137247967, + "mean_prediction": 0.0010109498068869237, + "calibration_in_the_large": -5.0245806837872966e-05, + "expected_calibration_error_10bin": 5.0245806837872966e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 3, + "negatives": 2824, + "auroc": 0.9211520302171861, + "auprc": 0.06329579318085064, + "brier": 0.001044755967634135, + "calibration": { + "observed_rate": 0.0010611956137247967, + "mean_prediction": 0.001061410160830241, + "calibration_in_the_large": 2.145471054443987e-07, + "expected_calibration_error_10bin": 2.145471054443987e-07, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 4, + "negatives": 2823, + "auroc": 0.9376549769748495, + "auprc": 0.07150297619047619, + "brier": 0.0013920458890211455, + "calibration": { + "observed_rate": 0.0014149274849663955, + "mean_prediction": 0.0011780185845428638, + "calibration_in_the_large": -0.0002369089004235316, + "expected_calibration_error_10bin": 0.0002369089004235316, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 4, + "negatives": 2823, + "auroc": 0.9379206517888771, + "auprc": 0.07241367141104772, + "brier": 0.0013917184978107188, + "calibration": { + "observed_rate": 0.0014149274849663955, + "mean_prediction": 0.0011955266007168382, + "calibration_in_the_large": -0.00021940088424955728, + "expected_calibration_error_10bin": 0.00021940088424955728, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + } + ], + "reason": null + }, + "K42": { + "time_averaged_auroc": 0.6533683975651813, + "time_averaged_auprc": 0.015290214291606746, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2820, + "positives": 2, + "negatives": 2818, + "auroc": 0.6265081618168914, + "auprc": 0.006743096646942801, + "brier": 0.0007090433577584014, + "calibration": { + "observed_rate": 0.0007092198581560284, + "mean_prediction": 0.00017537767913762255, + "calibration_in_the_large": -0.0005338421790184059, + "expected_calibration_error_10bin": 0.0005338421790184059, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + { + "valid": 2820, + "positives": 2, + "negatives": 2818, + "auroc": 0.6589779985805536, + "auprc": 0.006425831202046036, + "brier": 0.0007091067686679092, + "calibration": { + "observed_rate": 0.0007092198581560284, + "mean_prediction": 0.00031099260222811396, + "calibration_in_the_large": -0.00039822725592791446, + "expected_calibration_error_10bin": 0.00039822725592791446, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + { + "valid": 2820, + "positives": 3, + "negatives": 2817, + "auroc": 0.5618270027215714, + "auprc": 0.0049747948753850356, + "brier": 0.001064179795456574, + "calibration": { + "observed_rate": 0.0010638297872340426, + "mean_prediction": 0.00042110079328732026, + "calibration_in_the_large": -0.0006427289939467223, + "expected_calibration_error_10bin": 0.0006427289939467223, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + { + "valid": 2820, + "positives": 3, + "negatives": 2817, + "auroc": 0.5562655307064253, + "auprc": 0.0045238294314381275, + "brier": 0.001065455310237396, + "calibration": { + "observed_rate": 0.0010638297872340426, + "mean_prediction": 0.0005145040585253126, + "calibration_in_the_large": -0.00054932572870873, + "expected_calibration_error_10bin": 0.00054932572870873, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + { + "valid": 2820, + "positives": 3, + "negatives": 2817, + "auroc": 0.5346112886048988, + "auprc": 0.004404735301700417, + "brier": 0.0010661435416574262, + "calibration": { + "observed_rate": 0.0010638297872340426, + "mean_prediction": 0.0005924224799797385, + "calibration_in_the_large": -0.0004714073072543041, + "expected_calibration_error_10bin": 0.0004714073072543041, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + { + "valid": 2820, + "positives": 3, + "negatives": 2817, + "auroc": 0.5404094190036682, + "auprc": 0.004378363891096682, + "brier": 0.0010679202793338683, + "calibration": { + "observed_rate": 0.0010638297872340426, + "mean_prediction": 0.0006719090118677089, + "calibration_in_the_large": -0.00039192077536633367, + "expected_calibration_error_10bin": 0.00039192077536633367, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + { + "valid": 2820, + "positives": 5, + "negatives": 2815, + "auroc": 0.6981172291296626, + "auprc": 0.015389922910728085, + "brier": 0.0017714204061080184, + "calibration": { + "observed_rate": 0.0017730496453900709, + "mean_prediction": 0.0008169280715258453, + "calibration_in_the_large": -0.0009561215738642256, + "expected_calibration_error_10bin": 0.0009561215738642256, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + { + "valid": 2820, + "positives": 5, + "negatives": 2815, + "auroc": 0.6936412078152753, + "auprc": 0.015601432165542651, + "brier": 0.0017726573670623167, + "calibration": { + "observed_rate": 0.0017730496453900709, + "mean_prediction": 0.0008997379023433541, + "calibration_in_the_large": -0.0008733117430467168, + "expected_calibration_error_10bin": 0.0008733117430467168, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + { + "valid": 2820, + "positives": 6, + "negatives": 2814, + "auroc": 0.7508291873963516, + "auprc": 0.029688048302791505, + "brier": 0.0021168601944922785, + "calibration": { + "observed_rate": 0.002127659574468085, + "mean_prediction": 0.0009755445543195886, + "calibration_in_the_large": -0.0011521150201484966, + "expected_calibration_error_10bin": 0.0011521150201484966, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + { + "valid": 2820, + "positives": 6, + "negatives": 2814, + "auroc": 0.7511253257521914, + "auprc": 0.02953938058850271, + "brier": 0.002116904242375972, + "calibration": { + "observed_rate": 0.002127659574468085, + "mean_prediction": 0.0010553363248231534, + "calibration_in_the_large": -0.0010723232496449317, + "expected_calibration_error_10bin": 0.0010723232496449317, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + { + "valid": 2820, + "positives": 7, + "negatives": 2813, + "auroc": 0.7093088212889137, + "auprc": 0.025741673176525835, + "brier": 0.002471446261949215, + "calibration": { + "observed_rate": 0.0024822695035460994, + "mean_prediction": 0.0011120504889235146, + "calibration_in_the_large": -0.0013702190146225848, + "expected_calibration_error_10bin": 0.0013702190146225848, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + { + "valid": 2820, + "positives": 7, + "negatives": 2813, + "auroc": 0.7062617439439338, + "auprc": 0.025681814436965263, + "brier": 0.0024718854144769008, + "calibration": { + "observed_rate": 0.0024822695035460994, + "mean_prediction": 0.0011887025812210214, + "calibration_in_the_large": -0.001293566922325078, + "expected_calibration_error_10bin": 0.001293566922325078, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + { + "valid": 2820, + "positives": 7, + "negatives": 2813, + "auroc": 0.7059062515870195, + "auprc": 0.025679862861222525, + "brier": 0.0024718903735908974, + "calibration": { + "observed_rate": 0.0024822695035460994, + "mean_prediction": 0.0011916782102865044, + "calibration_in_the_large": -0.001290591293259595, + "expected_calibration_error_10bin": 0.001290591293259595, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + } + ], + "reason": null + }, + "K43": { + "time_averaged_auroc": 0.8217990308644846, + "time_averaged_auprc": 0.02224018139419322, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2813, + "positives": 1, + "negatives": 2812, + "auroc": 0.982574679943101, + "auprc": 0.02, + "brier": 0.0003549314028555109, + "calibration": { + "observed_rate": 0.00035549235691432633, + "mean_prediction": 0.0001454664093346034, + "calibration_in_the_large": -0.00021002594757972294, + "expected_calibration_error_10bin": 0.00021002594757972294, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 1, + "negatives": 2812, + "auroc": 0.966927453769559, + "auprc": 0.010638297872340425, + "brier": 0.0003546845194586361, + "calibration": { + "observed_rate": 0.00035549235691432633, + "mean_prediction": 0.00029800546061660075, + "calibration_in_the_large": -5.7486896297725585e-05, + "expected_calibration_error_10bin": 5.7486896297725585e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 2, + "negatives": 2811, + "auroc": 0.9542867307008183, + "auprc": 0.01134324532171238, + "brier": 0.000708759814450242, + "calibration": { + "observed_rate": 0.0007109847138286527, + "mean_prediction": 0.00046259421595809015, + "calibration_in_the_large": -0.0002483904978705625, + "expected_calibration_error_10bin": 0.0002483904978705625, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 4, + "negatives": 2809, + "auroc": 0.7477750088999644, + "auprc": 0.011463520160372002, + "brier": 0.0014169043708164568, + "calibration": { + "observed_rate": 0.0014219694276573053, + "mean_prediction": 0.0007136914722310414, + "calibration_in_the_large": -0.0007082779554262639, + "expected_calibration_error_10bin": 0.0007082779554262639, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 4, + "negatives": 2809, + "auroc": 0.742435030259879, + "auprc": 0.010241925602154384, + "brier": 0.0014168934605307303, + "calibration": { + "observed_rate": 0.0014219694276573053, + "mean_prediction": 0.0008400188673623591, + "calibration_in_the_large": -0.0005819505602949462, + "expected_calibration_error_10bin": 0.0005819505602949462, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 4, + "negatives": 2809, + "auroc": 0.735938056247775, + "auprc": 0.00884680956453237, + "brier": 0.0014173211678545794, + "calibration": { + "observed_rate": 0.0014219694276573053, + "mean_prediction": 0.0010144002437696255, + "calibration_in_the_large": -0.0004075691838876798, + "expected_calibration_error_10bin": 0.0004075691838876798, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 5, + "negatives": 2808, + "auroc": 0.7893162393162393, + "auprc": 0.02577156387361209, + "brier": 0.0017624947033353742, + "calibration": { + "observed_rate": 0.0017774617845716318, + "mean_prediction": 0.0012880323943147635, + "calibration_in_the_large": -0.0004894293902568683, + "expected_calibration_error_10bin": 0.0004894293902568683, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 5, + "negatives": 2808, + "auroc": 0.7881054131054132, + "auprc": 0.02439520717805011, + "brier": 0.0017618955943560154, + "calibration": { + "observed_rate": 0.0017774617845716318, + "mean_prediction": 0.0014912885070458505, + "calibration_in_the_large": -0.00028617327752578125, + "expected_calibration_error_10bin": 0.00028617327752578125, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 7, + "negatives": 2806, + "auroc": 0.766367986966704, + "auprc": 0.029993813394556566, + "brier": 0.0024618675659977634, + "calibration": { + "observed_rate": 0.002488446498400284, + "mean_prediction": 0.0016335384942292351, + "calibration_in_the_large": -0.0008549080041710491, + "expected_calibration_error_10bin": 0.0008549080041710491, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 9, + "negatives": 2804, + "auroc": 0.8046837850689491, + "auprc": 0.03518993943358338, + "brier": 0.00315827016547905, + "calibration": { + "observed_rate": 0.003199431212228937, + "mean_prediction": 0.0018144927795592165, + "calibration_in_the_large": -0.0013849384326697206, + "expected_calibration_error_10bin": 0.0013849384326697206, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 9, + "negatives": 2804, + "auroc": 0.8033761293390395, + "auprc": 0.0340658012943593, + "brier": 0.0031565621611020288, + "calibration": { + "observed_rate": 0.003199431212228937, + "mean_prediction": 0.001977608668321367, + "calibration_in_the_large": -0.00122182254390757, + "expected_calibration_error_10bin": 0.00122182254390757, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 9, + "negatives": 2804, + "auroc": 0.8009589475352671, + "auprc": 0.03375008650962953, + "brier": 0.003154235368696908, + "calibration": { + "observed_rate": 0.003199431212228937, + "mean_prediction": 0.0022391668437389597, + "calibration_in_the_large": -0.0009602643684899774, + "expected_calibration_error_10bin": 0.0009602643684899774, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 9, + "negatives": 2804, + "auroc": 0.800641940085592, + "auprc": 0.03342214791960931, + "brier": 0.0031540942958737392, + "calibration": { + "observed_rate": 0.003199431212228937, + "mean_prediction": 0.0022502342221125933, + "calibration_in_the_large": -0.0009491969901163438, + "expected_calibration_error_10bin": 0.0009491969901163438, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + } + ], + "reason": null + }, + "K44": { + "time_averaged_auroc": 0.7037056630542252, + "time_averaged_auprc": 0.006633976537392311, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2785, + "positives": 1, + "negatives": 2784, + "auroc": 0.7869971264367817, + "auprc": 0.0016835016835016834, + "brier": 0.0003590760377926155, + "calibration": { + "observed_rate": 0.0003590664272890485, + "mean_prediction": 0.00044578151069861834, + "calibration_in_the_large": 8.671508340956985e-05, + "expected_calibration_error_10bin": 8.671508340956985e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 2, + "negatives": 2783, + "auroc": 0.6043837585339562, + "auprc": 0.0015389911508008828, + "brier": 0.0007187139140853123, + "calibration": { + "observed_rate": 0.000718132854578097, + "mean_prediction": 0.0008382044341897771, + "calibration_in_the_large": 0.00012007157961168007, + "expected_calibration_error_10bin": 0.00012007157961168007, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 4, + "negatives": 2781, + "auroc": 0.6407766990291263, + "auprc": 0.002637875233807954, + "brier": 0.001435761975125186, + "calibration": { + "observed_rate": 0.001436265709156194, + "mean_prediction": 0.0010868338283724686, + "calibration_in_the_large": -0.00034943188078372534, + "expected_calibration_error_10bin": 0.00034943188078372534, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 4, + "negatives": 2781, + "auroc": 0.6480582524271845, + "auprc": 0.002687719863136064, + "brier": 0.0014360998746768818, + "calibration": { + "observed_rate": 0.001436265709156194, + "mean_prediction": 0.0012484545907817859, + "calibration_in_the_large": -0.00018781111837440812, + "expected_calibration_error_10bin": 0.00018781111837440812, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 5, + "negatives": 2780, + "auroc": 0.717410071942446, + "auprc": 0.008528589744515104, + "brier": 0.00178994275967744, + "calibration": { + "observed_rate": 0.0017953321364452424, + "mean_prediction": 0.0014715175531025552, + "calibration_in_the_large": -0.00032381458334268727, + "expected_calibration_error_10bin": 0.00032381458334268727, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 5, + "negatives": 2780, + "auroc": 0.7166906474820144, + "auprc": 0.009984838580578272, + "brier": 0.0017895231730932454, + "calibration": { + "observed_rate": 0.0017953321364452424, + "mean_prediction": 0.0016144969295581264, + "calibration_in_the_large": -0.000180835206887116, + "expected_calibration_error_10bin": 0.000180835206887116, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 5, + "negatives": 2780, + "auroc": 0.7160431654676259, + "auprc": 0.008220350501687013, + "brier": 0.0017904542754155785, + "calibration": { + "observed_rate": 0.0017953321364452424, + "mean_prediction": 0.0018134398117462243, + "calibration_in_the_large": 1.8107675300981863e-05, + "expected_calibration_error_10bin": 1.8107675300981863e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 6, + "negatives": 2779, + "auroc": 0.7211826796209668, + "auprc": 0.008346591059947103, + "brier": 0.002147858574785786, + "calibration": { + "observed_rate": 0.0021543985637342907, + "mean_prediction": 0.001955993133723001, + "calibration_in_the_large": -0.00019840543001128962, + "expected_calibration_error_10bin": 0.00019840543001128962, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 6, + "negatives": 2779, + "auroc": 0.7198632601655272, + "auprc": 0.008439728401935088, + "brier": 0.0021481632621137415, + "calibration": { + "observed_rate": 0.0021543985637342907, + "mean_prediction": 0.0021269717610645344, + "calibration_in_the_large": -2.7426802669756282e-05, + "expected_calibration_error_10bin": 2.7426802669756282e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 6, + "negatives": 2779, + "auroc": 0.7195633921074727, + "auprc": 0.008586734174321974, + "brier": 0.0021482928037232186, + "calibration": { + "observed_rate": 0.0021543985637342907, + "mean_prediction": 0.002283777539169529, + "calibration_in_the_large": 0.00012937897543523853, + "expected_calibration_error_10bin": 0.00012937897543523853, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 7, + "negatives": 2778, + "auroc": 0.7187082176283041, + "auprc": 0.008689701298916672, + "brier": 0.002505567087797015, + "calibration": { + "observed_rate": 0.0025134649910233393, + "mean_prediction": 0.002394713034615179, + "calibration_in_the_large": -0.00011875195640816041, + "expected_calibration_error_10bin": 0.00011875195640816041, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 7, + "negatives": 2778, + "auroc": 0.7192738866604957, + "auprc": 0.008448526469913713, + "brier": 0.002506656623597722, + "calibration": { + "observed_rate": 0.0025134649910233393, + "mean_prediction": 0.0025630740395706265, + "calibration_in_the_large": 4.960904854728722e-05, + "expected_calibration_error_10bin": 4.960904854728722e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 7, + "negatives": 2778, + "auroc": 0.7192224622030238, + "auprc": 0.008448546823038508, + "brier": 0.0025067276911871056, + "calibration": { + "observed_rate": 0.0025134649910233393, + "mean_prediction": 0.00258041916723272, + "calibration_in_the_large": 6.695417620938057e-05, + "expected_calibration_error_10bin": 6.695417620938057e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + } + ], + "reason": null + }, + "K52": { + "time_averaged_auroc": 0.824362488080131, + "time_averaged_auprc": 0.07857173984486134, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2749, + "positives": 4, + "negatives": 2745, + "auroc": 0.8751366120218579, + "auprc": 0.012197061650586098, + "brier": 0.0014501625417866339, + "calibration": { + "observed_rate": 0.0014550745725718443, + "mean_prediction": 0.001286067121367207, + "calibration_in_the_large": -0.00016900745120463734, + "expected_calibration_error_10bin": 0.00016900745120463734, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9669363348575448 + }, + { + "valid": 2749, + "positives": 10, + "negatives": 2739, + "auroc": 0.8439941584519898, + "auprc": 0.057238018447340014, + "brier": 0.00357097320119113, + "calibration": { + "observed_rate": 0.0036376864314296106, + "mean_prediction": 0.003650388361092707, + "calibration_in_the_large": 1.270192966309645e-05, + "expected_calibration_error_10bin": 0.0001349791695718527, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9669363348575448 + }, + { + "valid": 2749, + "positives": 17, + "negatives": 2732, + "auroc": 0.8721255705796228, + "auprc": 0.07805799728297008, + "brier": 0.005991041381963603, + "calibration": { + "observed_rate": 0.0061840669334303384, + "mean_prediction": 0.004664599546481449, + "calibration_in_the_large": -0.0015194673869488896, + "expected_calibration_error_10bin": 0.0015194673869488899, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9669363348575448 + }, + { + "valid": 2749, + "positives": 23, + "negatives": 2726, + "auroc": 0.8207598328495327, + "auprc": 0.10412139323889551, + "brier": 0.008075566490035171, + "calibration": { + "observed_rate": 0.008366678792288106, + "mean_prediction": 0.005537749355793958, + "calibration_in_the_large": -0.0028289294364941472, + "expected_calibration_error_10bin": 0.002828929436494147, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9669363348575448 + }, + { + "valid": 2749, + "positives": 26, + "negatives": 2723, + "auroc": 0.8121557106132942, + "auprc": 0.0761975678716552, + "brier": 0.00914518360268259, + "calibration": { + "observed_rate": 0.009457984721716987, + "mean_prediction": 0.006235798344266099, + "calibration_in_the_large": -0.0032221863774508884, + "expected_calibration_error_10bin": 0.003222186377450889, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9669363348575448 + }, + { + "valid": 2749, + "positives": 28, + "negatives": 2721, + "auroc": 0.8164277839029769, + "auprc": 0.07455829085439446, + "brier": 0.009848149513397575, + "calibration": { + "observed_rate": 0.01018552200800291, + "mean_prediction": 0.007030106424374556, + "calibration_in_the_large": -0.003155415583628354, + "expected_calibration_error_10bin": 0.0032746953786006163, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9669363348575448 + }, + { + "valid": 2749, + "positives": 31, + "negatives": 2718, + "auroc": 0.8204443494979705, + "auprc": 0.07575121893455095, + "brier": 0.01088723547422408, + "calibration": { + "observed_rate": 0.011276827937431793, + "mean_prediction": 0.007447732492729821, + "calibration_in_the_large": -0.0038290954447019725, + "expected_calibration_error_10bin": 0.0044040553671199105, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9669363348575448 + }, + { + "valid": 2749, + "positives": 33, + "negatives": 2716, + "auroc": 0.8156714419601018, + "auprc": 0.08912922003084887, + "brier": 0.01158546985627252, + "calibration": { + "observed_rate": 0.012004365223717716, + "mean_prediction": 0.00797420597676012, + "calibration_in_the_large": -0.004030159246957595, + "expected_calibration_error_10bin": 0.004880650432022734, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9669363348575448 + }, + { + "valid": 2749, + "positives": 35, + "negatives": 2714, + "auroc": 0.8181387514475208, + "auprc": 0.09314193147553791, + "brier": 0.012251393389871914, + "calibration": { + "observed_rate": 0.012731902510003638, + "mean_prediction": 0.008736923545616643, + "calibration_in_the_large": -0.003994978964386995, + "expected_calibration_error_10bin": 0.005487089150766442, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9669363348575448 + }, + { + "valid": 2749, + "positives": 35, + "negatives": 2714, + "auroc": 0.818612485524792, + "auprc": 0.09275263519199045, + "brier": 0.01225129444224887, + "calibration": { + "observed_rate": 0.012731902510003638, + "mean_prediction": 0.009163296671988928, + "calibration_in_the_large": -0.0035686058380147104, + "expected_calibration_error_10bin": 0.00526931623078489, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9669363348575448 + }, + { + "valid": 2749, + "positives": 38, + "negatives": 2711, + "auroc": 0.801927818439496, + "auprc": 0.08982020836873732, + "brier": 0.013331509235100751, + "calibration": { + "observed_rate": 0.013823208439432522, + "mean_prediction": 0.009497739903069576, + "calibration_in_the_large": -0.004325468536362946, + "expected_calibration_error_10bin": 0.006086559019712716, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9669363348575448 + }, + { + "valid": 2749, + "positives": 38, + "negatives": 2711, + "auroc": 0.8025005338872818, + "auprc": 0.08991048295887617, + "brier": 0.013339367276542722, + "calibration": { + "observed_rate": 0.013823208439432522, + "mean_prediction": 0.010105782598824319, + "calibration_in_the_large": -0.0037174258406082027, + "expected_calibration_error_10bin": 0.005813122321370688, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9669363348575448 + }, + { + "valid": 2749, + "positives": 39, + "negatives": 2710, + "auroc": 0.7988172958652664, + "auprc": 0.0885565916768143, + "brier": 0.01369882095001345, + "calibration": { + "observed_rate": 0.014186977082575483, + "mean_prediction": 0.010120813488135027, + "calibration_in_the_large": -0.004066163594440456, + "expected_calibration_error_10bin": 0.006165155210336725, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9669363348575448 + } + ], + "reason": null + }, + "K55": { + "time_averaged_auroc": 0.8118305301226694, + "time_averaged_auprc": 0.008518021986909442, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2815, + "positives": 2, + "negatives": 2813, + "auroc": 0.9226804123711341, + "auprc": 0.006718373336128288, + "brier": 0.0007098369663376442, + "calibration": { + "observed_rate": 0.0007104795737122557, + "mean_prediction": 0.0005846319522160358, + "calibration_in_the_large": -0.00012584762149621994, + "expected_calibration_error_10bin": 0.00012584762149621994, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + { + "valid": 2815, + "positives": 5, + "negatives": 2810, + "auroc": 0.8760142348754448, + "auprc": 0.008476422762857467, + "brier": 0.001773865645940677, + "calibration": { + "observed_rate": 0.0017761989342806395, + "mean_prediction": 0.0008354388675201411, + "calibration_in_the_large": -0.0009407600667604984, + "expected_calibration_error_10bin": 0.0009407600667604984, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + { + "valid": 2815, + "positives": 6, + "negatives": 2809, + "auroc": 0.8389106443574226, + "auprc": 0.00771746618382975, + "brier": 0.0021321715832343852, + "calibration": { + "observed_rate": 0.0021314387211367673, + "mean_prediction": 0.0011615008800175716, + "calibration_in_the_large": -0.0009699378411191957, + "expected_calibration_error_10bin": 0.0009699378411191957, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + { + "valid": 2815, + "positives": 7, + "negatives": 2808, + "auroc": 0.8214794464794465, + "auprc": 0.007902897564631497, + "brier": 0.002488508360234248, + "calibration": { + "observed_rate": 0.002486678507992895, + "mean_prediction": 0.0013242489758094878, + "calibration_in_the_large": -0.0011624295321834073, + "expected_calibration_error_10bin": 0.0011624295321834073, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + { + "valid": 2815, + "positives": 8, + "negatives": 2807, + "auroc": 0.8173762023512647, + "auprc": 0.008416053980486525, + "brier": 0.00284591052309453, + "calibration": { + "observed_rate": 0.002841918294849023, + "mean_prediction": 0.0015246995558365842, + "calibration_in_the_large": -0.0013172187390124387, + "expected_calibration_error_10bin": 0.0013888497377966683, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + { + "valid": 2815, + "positives": 8, + "negatives": 2807, + "auroc": 0.8190684004275026, + "auprc": 0.00846965677998888, + "brier": 0.0028472290669470024, + "calibration": { + "observed_rate": 0.002841918294849023, + "mean_prediction": 0.0018176502688418245, + "calibration_in_the_large": -0.0010242680260071984, + "expected_calibration_error_10bin": 0.0011010951946835985, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + { + "valid": 2815, + "positives": 8, + "negatives": 2807, + "auroc": 0.8189348058425365, + "auprc": 0.00845253836534279, + "brier": 0.002849800832589598, + "calibration": { + "observed_rate": 0.002841918294849023, + "mean_prediction": 0.00198070274588635, + "calibration_in_the_large": -0.0008612155489626729, + "expected_calibration_error_10bin": 0.0009446722045530761, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + { + "valid": 2815, + "positives": 8, + "negatives": 2807, + "auroc": 0.820181688635554, + "auprc": 0.008533581154804591, + "brier": 0.0028522889931113966, + "calibration": { + "observed_rate": 0.002841918294849023, + "mean_prediction": 0.0021454110699688075, + "calibration_in_the_large": -0.0006965072248802154, + "expected_calibration_error_10bin": 0.0007871370189146146, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + { + "valid": 2815, + "positives": 8, + "negatives": 2807, + "auroc": 0.8207160669754185, + "auprc": 0.008561478324302832, + "brier": 0.002855675864729121, + "calibration": { + "observed_rate": 0.002841918294849023, + "mean_prediction": 0.0023302210952202518, + "calibration_in_the_large": -0.0005116971996287712, + "expected_calibration_error_10bin": 0.0006085206044084256, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + { + "valid": 2815, + "positives": 9, + "negatives": 2806, + "auroc": 0.7342995169082126, + "auprc": 0.007951930790780787, + "brier": 0.003213513047113831, + "calibration": { + "observed_rate": 0.003197158081705151, + "mean_prediction": 0.0024814148549982995, + "calibration_in_the_large": -0.0007157432267068517, + "expected_calibration_error_10bin": 0.0008164400652653127, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + { + "valid": 2815, + "positives": 10, + "negatives": 2805, + "auroc": 0.7554367201426025, + "auprc": 0.00988819195825537, + "brier": 0.0035661913454426175, + "calibration": { + "observed_rate": 0.003552397868561279, + "mean_prediction": 0.0026120032413410985, + "calibration_in_the_large": -0.0009403946272201805, + "expected_calibration_error_10bin": 0.001053173856623146, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + { + "valid": 2815, + "positives": 10, + "negatives": 2805, + "auroc": 0.754367201426025, + "auprc": 0.00982414351397886, + "brier": 0.0035725236245172116, + "calibration": { + "observed_rate": 0.003552397868561279, + "mean_prediction": 0.002779647886081536, + "calibration_in_the_large": -0.000772749982479743, + "expected_calibration_error_10bin": 0.0008969793488398263, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + { + "valid": 2815, + "positives": 10, + "negatives": 2805, + "auroc": 0.754331550802139, + "auprc": 0.009821551114435136, + "brier": 0.003572626803902144, + "calibration": { + "observed_rate": 0.003552397868561279, + "mean_prediction": 0.002783796872535988, + "calibration_in_the_large": -0.0007686009960252908, + "expected_calibration_error_10bin": 0.0008929773624728884, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + } + ], + "reason": null + }, + "K56": { + "time_averaged_auroc": 0.7350911069567917, + "time_averaged_auprc": 0.028038544706381265, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2745, + "positives": 7, + "negatives": 2738, + "auroc": 0.7699050401753105, + "auprc": 0.0128409665071358, + "brier": 0.002539399952277781, + "calibration": { + "observed_rate": 0.0025500910746812386, + "mean_prediction": 0.0010256443843572327, + "calibration_in_the_large": -0.001524446690324006, + "expected_calibration_error_10bin": 0.001524446690324006, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9655293703833978 + }, + { + "valid": 2745, + "positives": 10, + "negatives": 2735, + "auroc": 0.6726873857404022, + "auprc": 0.010088626260089177, + "brier": 0.0036301772390083913, + "calibration": { + "observed_rate": 0.0036429872495446266, + "mean_prediction": 0.0019365430530834586, + "calibration_in_the_large": -0.001706444196461168, + "expected_calibration_error_10bin": 0.001706444196461168, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9655293703833978 + }, + { + "valid": 2745, + "positives": 15, + "negatives": 2730, + "auroc": 0.729010989010989, + "auprc": 0.01754328943217752, + "brier": 0.005427532879565218, + "calibration": { + "observed_rate": 0.00546448087431694, + "mean_prediction": 0.0024205812077576837, + "calibration_in_the_large": -0.0030438996665592562, + "expected_calibration_error_10bin": 0.0030438996665592562, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9655293703833978 + }, + { + "valid": 2745, + "positives": 19, + "negatives": 2726, + "auroc": 0.7008340734448005, + "auprc": 0.019218497717495578, + "brier": 0.006867672712084639, + "calibration": { + "observed_rate": 0.0069216757741347905, + "mean_prediction": 0.00325939025781542, + "calibration_in_the_large": -0.0036622855163193704, + "expected_calibration_error_10bin": 0.0036622855163193704, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9655293703833978 + }, + { + "valid": 2745, + "positives": 21, + "negatives": 2724, + "auroc": 0.7254562617998741, + "auprc": 0.02449941884063297, + "brier": 0.007572267889358981, + "calibration": { + "observed_rate": 0.007650273224043716, + "mean_prediction": 0.003674654933987078, + "calibration_in_the_large": -0.003975618290056638, + "expected_calibration_error_10bin": 0.003975618290056638, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9655293703833978 + }, + { + "valid": 2745, + "positives": 23, + "negatives": 2722, + "auroc": 0.731255790179855, + "auprc": 0.026844796740274755, + "brier": 0.008286324766799417, + "calibration": { + "observed_rate": 0.008378870673952642, + "mean_prediction": 0.003937345667037551, + "calibration_in_the_large": -0.004441525006915091, + "expected_calibration_error_10bin": 0.004441525006915091, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9655293703833978 + }, + { + "valid": 2745, + "positives": 26, + "negatives": 2719, + "auroc": 0.7425099725577843, + "auprc": 0.02987893266762265, + "brier": 0.009356994407288391, + "calibration": { + "observed_rate": 0.00947176684881603, + "mean_prediction": 0.0042875033697656875, + "calibration_in_the_large": -0.005184263479050342, + "expected_calibration_error_10bin": 0.005184263479050342, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9655293703833978 + }, + { + "valid": 2745, + "positives": 27, + "negatives": 2718, + "auroc": 0.7513558444389938, + "auprc": 0.033310410778850025, + "brier": 0.009699841255870654, + "calibration": { + "observed_rate": 0.009836065573770493, + "mean_prediction": 0.004548536538113728, + "calibration_in_the_large": -0.005287529035656765, + "expected_calibration_error_10bin": 0.005287529035656765, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9655293703833978 + }, + { + "valid": 2745, + "positives": 27, + "negatives": 2718, + "auroc": 0.7496388957021776, + "auprc": 0.033268322719513174, + "brier": 0.009696438766375411, + "calibration": { + "observed_rate": 0.009836065573770493, + "mean_prediction": 0.004936678021458282, + "calibration_in_the_large": -0.0048993875523122106, + "expected_calibration_error_10bin": 0.0048993875523122106, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9655293703833978 + }, + { + "valid": 2745, + "positives": 30, + "negatives": 2715, + "auroc": 0.7469981583793739, + "auprc": 0.036850429746217786, + "brier": 0.010759681275953772, + "calibration": { + "observed_rate": 0.01092896174863388, + "mean_prediction": 0.005162941145799496, + "calibration_in_the_large": -0.005766020602834384, + "expected_calibration_error_10bin": 0.005766020602834384, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9655293703833978 + }, + { + "valid": 2745, + "positives": 30, + "negatives": 2715, + "auroc": 0.7466666666666667, + "auprc": 0.03653097542247098, + "brier": 0.01075595901493141, + "calibration": { + "observed_rate": 0.01092896174863388, + "mean_prediction": 0.00548041883676823, + "calibration_in_the_large": -0.00544854291186565, + "expected_calibration_error_10bin": 0.00544854291186565, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9655293703833978 + }, + { + "valid": 2745, + "positives": 32, + "negatives": 2713, + "auroc": 0.7466365646885367, + "auprc": 0.0420238281443356, + "brier": 0.011433075431391621, + "calibration": { + "observed_rate": 0.011657559198542805, + "mean_prediction": 0.005723403735879494, + "calibration_in_the_large": -0.005934155462663311, + "expected_calibration_error_10bin": 0.006009748537694668, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9655293703833978 + }, + { + "valid": 2745, + "positives": 33, + "negatives": 2712, + "auroc": 0.7432287476535264, + "auprc": 0.04160258620614041, + "brier": 0.011794267661445711, + "calibration": { + "observed_rate": 0.012021857923497269, + "mean_prediction": 0.005750199004033694, + "calibration_in_the_large": -0.006271658919463575, + "expected_calibration_error_10bin": 0.006348158327089381, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9655293703833978 + } + ], + "reason": null + }, + "K57": { + "time_averaged_auroc": 0.6876441654102128, + "time_averaged_auprc": 0.02430105996543347, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2741, + "positives": 3, + "negatives": 2738, + "auroc": 0.6766496225955685, + "auprc": 0.0022473141154655814, + "brier": 0.00109410669727105, + "calibration": { + "observed_rate": 0.0010944910616563297, + "mean_prediction": 0.0005859086710985059, + "calibration_in_the_large": -0.0005085823905578239, + "expected_calibration_error_10bin": 0.0005085823905578239, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + { + "valid": 2741, + "positives": 4, + "negatives": 2737, + "auroc": 0.556448666423091, + "auprc": 0.002221184690543645, + "brier": 0.001459930119768892, + "calibration": { + "observed_rate": 0.001459321415541773, + "mean_prediction": 0.0010510451416297672, + "calibration_in_the_large": -0.0004082762739120059, + "expected_calibration_error_10bin": 0.0004082762739120059, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + { + "valid": 2741, + "positives": 10, + "negatives": 2731, + "auroc": 0.7042841450018308, + "auprc": 0.007119878204534502, + "brier": 0.0036393285977021467, + "calibration": { + "observed_rate": 0.0036483035388544327, + "mean_prediction": 0.0013786889524758828, + "calibration_in_the_large": -0.00226961458637855, + "expected_calibration_error_10bin": 0.00226961458637855, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + { + "valid": 2741, + "positives": 12, + "negatives": 2729, + "auroc": 0.631153047514352, + "auprc": 0.0068355127569902615, + "brier": 0.004369052105099509, + "calibration": { + "observed_rate": 0.004377964246625319, + "mean_prediction": 0.0016343142317923709, + "calibration_in_the_large": -0.002743650014832948, + "expected_calibration_error_10bin": 0.002743650014832948, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + { + "valid": 2741, + "positives": 16, + "negatives": 2725, + "auroc": 0.7124770642201835, + "auprc": 0.0441757859306707, + "brier": 0.0057944265232051945, + "calibration": { + "observed_rate": 0.005837285662167092, + "mean_prediction": 0.002039724258431611, + "calibration_in_the_large": -0.0037975614037354813, + "expected_calibration_error_10bin": 0.0037975614037354813, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + { + "valid": 2741, + "positives": 18, + "negatives": 2723, + "auroc": 0.6866405516791121, + "auprc": 0.031859517863016495, + "brier": 0.006518386455546521, + "calibration": { + "observed_rate": 0.006566946369937978, + "mean_prediction": 0.002299654793997131, + "calibration_in_the_large": -0.004267291575940847, + "expected_calibration_error_10bin": 0.004267291575940847, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + { + "valid": 2741, + "positives": 20, + "negatives": 2721, + "auroc": 0.7081587651598676, + "auprc": 0.033279138293721554, + "brier": 0.007234031873849472, + "calibration": { + "observed_rate": 0.0072966070777088655, + "mean_prediction": 0.002530814339049023, + "calibration_in_the_large": -0.004765792738659843, + "expected_calibration_error_10bin": 0.004765792738659843, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + { + "valid": 2741, + "positives": 22, + "negatives": 2719, + "auroc": 0.7076298104249557, + "auprc": 0.033894375753651625, + "brier": 0.007954519267547885, + "calibration": { + "observed_rate": 0.008026267785479753, + "mean_prediction": 0.0026041014801953103, + "calibration_in_the_large": -0.005422166305284443, + "expected_calibration_error_10bin": 0.005422166305284443, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + { + "valid": 2741, + "positives": 22, + "negatives": 2719, + "auroc": 0.7080143100738908, + "auprc": 0.030315840110490325, + "brier": 0.007950937492171748, + "calibration": { + "observed_rate": 0.008026267785479753, + "mean_prediction": 0.002781879797855122, + "calibration_in_the_large": -0.005244387987624631, + "expected_calibration_error_10bin": 0.005244387987624631, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + { + "valid": 2741, + "positives": 23, + "negatives": 2718, + "auroc": 0.7003071312026106, + "auprc": 0.029820143173165874, + "brier": 0.008310893008353725, + "calibration": { + "observed_rate": 0.008391098139365194, + "mean_prediction": 0.002975023412500228, + "calibration_in_the_large": -0.0054160747268649665, + "expected_calibration_error_10bin": 0.0054160747268649665, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + { + "valid": 2741, + "positives": 25, + "negatives": 2716, + "auroc": 0.712960235640648, + "auprc": 0.03112557031474697, + "brier": 0.00902815559648534, + "calibration": { + "observed_rate": 0.009120758847136081, + "mean_prediction": 0.0031266567637297134, + "calibration_in_the_large": -0.005994102083406368, + "expected_calibration_error_10bin": 0.005994102083406368, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + { + "valid": 2741, + "positives": 26, + "negatives": 2715, + "auroc": 0.7172120696982576, + "auprc": 0.03149752624827319, + "brier": 0.00938432250725024, + "calibration": { + "observed_rate": 0.009485589201021525, + "mean_prediction": 0.0033973407557758815, + "calibration_in_the_large": -0.006088248445245643, + "expected_calibration_error_10bin": 0.006088248445245643, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + { + "valid": 2741, + "positives": 26, + "negatives": 2715, + "auroc": 0.7174387306983993, + "auprc": 0.03152199209536439, + "brier": 0.009383614286107369, + "calibration": { + "observed_rate": 0.009485589201021525, + "mean_prediction": 0.0034321897603550237, + "calibration_in_the_large": -0.006053399440666501, + "expected_calibration_error_10bin": 0.006053399440666501, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + } + ], + "reason": null + }, + "K58": { + "time_averaged_auroc": 0.747585669924103, + "time_averaged_auprc": 0.09345305628316829, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2792, + "positives": 3, + "negatives": 2789, + "auroc": 0.673598661407912, + "auprc": 0.0021443029948297727, + "brier": 0.0010755401478255511, + "calibration": { + "observed_rate": 0.0010744985673352436, + "mean_prediction": 0.0008367221973958424, + "calibration_in_the_large": -0.00023777636993940114, + "expected_calibration_error_10bin": 0.00023777636993940114, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + { + "valid": 2792, + "positives": 5, + "negatives": 2787, + "auroc": 0.7684965913168281, + "auprc": 0.07019402067170047, + "brier": 0.0017766810404972293, + "calibration": { + "observed_rate": 0.0017908309455587394, + "mean_prediction": 0.0010863696512859518, + "calibration_in_the_large": -0.0007044612942727875, + "expected_calibration_error_10bin": 0.0007044612942727875, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + { + "valid": 2792, + "positives": 5, + "negatives": 2787, + "auroc": 0.7680660208109078, + "auprc": 0.10343265942925291, + "brier": 0.0017761992072093012, + "calibration": { + "observed_rate": 0.0017908309455587394, + "mean_prediction": 0.0013590809026835134, + "calibration_in_the_large": -0.000431750042875226, + "expected_calibration_error_10bin": 0.000431750042875226, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + { + "valid": 2792, + "positives": 5, + "negatives": 2787, + "auroc": 0.7656978830283458, + "auprc": 0.07009715424631391, + "brier": 0.0017759945697849518, + "calibration": { + "observed_rate": 0.0017908309455587394, + "mean_prediction": 0.0015864987201445878, + "calibration_in_the_large": -0.00020433222541415153, + "expected_calibration_error_10bin": 0.00020433222541415153, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + { + "valid": 2792, + "positives": 7, + "negatives": 2785, + "auroc": 0.7507566042575019, + "auprc": 0.12292646015260454, + "brier": 0.0024664792466932406, + "calibration": { + "observed_rate": 0.002507163323782235, + "mean_prediction": 0.0018388543895098415, + "calibration_in_the_large": -0.0006683089342723937, + "expected_calibration_error_10bin": 0.0006683089342723937, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + { + "valid": 2792, + "positives": 7, + "negatives": 2785, + "auroc": 0.7488073865093614, + "auprc": 0.12289019120973521, + "brier": 0.002466193263829648, + "calibration": { + "observed_rate": 0.002507163323782235, + "mean_prediction": 0.001931958151596797, + "calibration_in_the_large": -0.0005752051721854381, + "expected_calibration_error_10bin": 0.0005752051721854381, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + { + "valid": 2792, + "positives": 7, + "negatives": 2785, + "auroc": 0.7478840728391896, + "auprc": 0.12289402426293558, + "brier": 0.002464190943119342, + "calibration": { + "observed_rate": 0.002507163323782235, + "mean_prediction": 0.0020668645059760513, + "calibration_in_the_large": -0.0004402988178061839, + "expected_calibration_error_10bin": 0.0004402988178061839, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + { + "valid": 2792, + "positives": 7, + "negatives": 2785, + "auroc": 0.7483457296742755, + "auprc": 0.12292487677841032, + "brier": 0.00246482651857552, + "calibration": { + "observed_rate": 0.002507163323782235, + "mean_prediction": 0.0022507272666283055, + "calibration_in_the_large": -0.00025643605715392967, + "expected_calibration_error_10bin": 0.00025643605715392967, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + { + "valid": 2792, + "positives": 7, + "negatives": 2785, + "auroc": 0.7495255193639395, + "auprc": 0.09920993838750546, + "brier": 0.0024650638577896514, + "calibration": { + "observed_rate": 0.002507163323782235, + "mean_prediction": 0.0025267117794869837, + "calibration_in_the_large": 1.954845570474855e-05, + "expected_calibration_error_10bin": 1.954845570474855e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + { + "valid": 2792, + "positives": 7, + "negatives": 2785, + "auroc": 0.7496794049756348, + "auprc": 0.08732408507313393, + "brier": 0.002465430423179337, + "calibration": { + "observed_rate": 0.002507163323782235, + "mean_prediction": 0.0026857901673892123, + "calibration_in_the_large": 0.00017862684360697711, + "expected_calibration_error_10bin": 0.00017862684360697711, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + { + "valid": 2792, + "positives": 7, + "negatives": 2785, + "auroc": 0.7495768145678379, + "auprc": 0.0992305832490489, + "brier": 0.0024633018575658363, + "calibration": { + "observed_rate": 0.002507163323782235, + "mean_prediction": 0.0028603205044648483, + "calibration_in_the_large": 0.0003531571806826132, + "expected_calibration_error_10bin": 0.0003531571806826132, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + { + "valid": 2792, + "positives": 7, + "negatives": 2785, + "auroc": 0.749115157732752, + "auprc": 0.09921219815095426, + "brier": 0.0024625368443130383, + "calibration": { + "observed_rate": 0.002507163323782235, + "mean_prediction": 0.0029957024132759957, + "calibration_in_the_large": 0.0004885390894937606, + "expected_calibration_error_10bin": 0.0004885390894937606, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + { + "valid": 2792, + "positives": 7, + "negatives": 2785, + "auroc": 0.7490638625288536, + "auprc": 0.09240923707476255, + "brier": 0.0024625553773260926, + "calibration": { + "observed_rate": 0.002507163323782235, + "mean_prediction": 0.003004760913932727, + "calibration_in_the_large": 0.0004975975901504916, + "expected_calibration_error_10bin": 0.0004975975901504916, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + } + ], + "reason": null + }, + "K59": { + "time_averaged_auroc": 0.7504775454402748, + "time_averaged_auprc": 0.11456654386105557, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2560, + "positives": 29, + "negatives": 2531, + "auroc": 0.7216583332197987, + "auprc": 0.05097488301576221, + "brier": 0.011055052827234752, + "calibration": { + "observed_rate": 0.011328125, + "mean_prediction": 0.008020356361487301, + "calibration_in_the_large": -0.0033077686385126984, + "expected_calibration_error_10bin": 0.003307768638512699, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + { + "valid": 2560, + "positives": 40, + "negatives": 2520, + "auroc": 0.7478670634920634, + "auprc": 0.06566903138050542, + "brier": 0.015095748244219434, + "calibration": { + "observed_rate": 0.015625, + "mean_prediction": 0.012629425480008649, + "calibration_in_the_large": -0.002995574519991351, + "expected_calibration_error_10bin": 0.0031327779279308747, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + { + "valid": 2560, + "positives": 52, + "negatives": 2508, + "auroc": 0.7381149552202184, + "auprc": 0.10853517596179187, + "brier": 0.0193546377003273, + "calibration": { + "observed_rate": 0.0203125, + "mean_prediction": 0.01580664593146821, + "calibration_in_the_large": -0.0045058540685317915, + "expected_calibration_error_10bin": 0.0045257330732169955, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + { + "valid": 2560, + "positives": 67, + "negatives": 2493, + "auroc": 0.7512976633080087, + "auprc": 0.12402570348847146, + "brier": 0.024651135895681388, + "calibration": { + "observed_rate": 0.026171875, + "mean_prediction": 0.018408356276347605, + "calibration_in_the_large": -0.0077635187236523955, + "expected_calibration_error_10bin": 0.007805934355121736, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + { + "valid": 2560, + "positives": 69, + "negatives": 2491, + "auroc": 0.7441223186078578, + "auprc": 0.1109016232541866, + "brier": 0.025336620158799096, + "calibration": { + "observed_rate": 0.026953125, + "mean_prediction": 0.020559539269424932, + "calibration_in_the_large": -0.006393585730575069, + "expected_calibration_error_10bin": 0.0063935857305750686, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + { + "valid": 2560, + "positives": 72, + "negatives": 2488, + "auroc": 0.747387459807074, + "auprc": 0.12165439849985266, + "brier": 0.02626999381188877, + "calibration": { + "observed_rate": 0.028125, + "mean_prediction": 0.022353824797608012, + "calibration_in_the_large": -0.0057711752023919885, + "expected_calibration_error_10bin": 0.006567918748771719, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + { + "valid": 2560, + "positives": 78, + "negatives": 2482, + "auroc": 0.7539618587160892, + "auprc": 0.12388383489690066, + "brier": 0.02840080496094687, + "calibration": { + "observed_rate": 0.03046875, + "mean_prediction": 0.023718673748408036, + "calibration_in_the_large": -0.006750076251591963, + "expected_calibration_error_10bin": 0.0076778573557021446, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + { + "valid": 2560, + "positives": 78, + "negatives": 2482, + "auroc": 0.7537500774809397, + "auprc": 0.12473455268285775, + "brier": 0.028392876658233025, + "calibration": { + "observed_rate": 0.03046875, + "mean_prediction": 0.02505185712147977, + "calibration_in_the_large": -0.005416892878520228, + "expected_calibration_error_10bin": 0.006500121312956251, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + { + "valid": 2560, + "positives": 83, + "negatives": 2477, + "auroc": 0.7560982727843145, + "auprc": 0.12974376424220235, + "brier": 0.030081876766726662, + "calibration": { + "observed_rate": 0.032421875, + "mean_prediction": 0.026570978676977573, + "calibration_in_the_large": -0.0058508963230224295, + "expected_calibration_error_10bin": 0.006826008765415284, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + { + "valid": 2560, + "positives": 85, + "negatives": 2475, + "auroc": 0.7573666072489602, + "auprc": 0.12952949467741273, + "brier": 0.030800675634941144, + "calibration": { + "observed_rate": 0.033203125, + "mean_prediction": 0.027916880644602314, + "calibration_in_the_large": -0.005286244355397686, + "expected_calibration_error_10bin": 0.007290636992570399, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + { + "valid": 2560, + "positives": 87, + "negatives": 2473, + "auroc": 0.7588344929839973, + "auprc": 0.12909210847965616, + "brier": 0.031526219477559805, + "calibration": { + "observed_rate": 0.033984375, + "mean_prediction": 0.029141715511218535, + "calibration_in_the_large": -0.004842659488781462, + "expected_calibration_error_10bin": 0.007618950937171578, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + { + "valid": 2560, + "positives": 90, + "negatives": 2470, + "auroc": 0.7628565002249212, + "auprc": 0.13543191138107796, + "brier": 0.032440248764118294, + "calibration": { + "observed_rate": 0.03515625, + "mean_prediction": 0.030479479499717854, + "calibration_in_the_large": -0.004676770500282146, + "expected_calibration_error_10bin": 0.007331822562173329, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + { + "valid": 2560, + "positives": 90, + "negatives": 2470, + "auroc": 0.7628924876293297, + "auprc": 0.13518858823304467, + "brier": 0.0324397560319607, + "calibration": { + "observed_rate": 0.03515625, + "mean_prediction": 0.0306312154117677, + "calibration_in_the_large": -0.0045250345882323, + "expected_calibration_error_10bin": 0.00722623980714161, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + } + ], + "reason": null + }, + "K62": { + "time_averaged_auroc": 0.7531519202855708, + "time_averaged_auprc": 0.013373189229738545, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2813, + "positives": 1, + "negatives": 2812, + "auroc": 0.5778805120910384, + "auprc": 0.0008417508417508417, + "brier": 0.00035597271626385994, + "calibration": { + "observed_rate": 0.00035549235691432633, + "mean_prediction": 0.0006001588109558671, + "calibration_in_the_large": 0.00024466645404154074, + "expected_calibration_error_10bin": 0.00024466645404154074, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 2, + "negatives": 2811, + "auroc": 0.7456421202419068, + "auprc": 0.0021813939236806747, + "brier": 0.0007118121628454918, + "calibration": { + "observed_rate": 0.0007109847138286527, + "mean_prediction": 0.0009394735088321374, + "calibration_in_the_large": 0.0002284887950034847, + "expected_calibration_error_10bin": 0.0002284887950034847, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 5, + "negatives": 2808, + "auroc": 0.7551282051282051, + "auprc": 0.0041285750240302715, + "brier": 0.0017763519171682001, + "calibration": { + "observed_rate": 0.0017774617845716318, + "mean_prediction": 0.0012198455749762268, + "calibration_in_the_large": -0.000557616209595405, + "expected_calibration_error_10bin": 0.000557616209595405, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 8, + "negatives": 2805, + "auroc": 0.7246434937611408, + "auprc": 0.005376298492538017, + "brier": 0.0028415069233205304, + "calibration": { + "observed_rate": 0.0028439388553146107, + "mean_prediction": 0.0014678880959519993, + "calibration_in_the_large": -0.0013760507593626114, + "expected_calibration_error_10bin": 0.0013760507593626114, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 10, + "negatives": 2803, + "auroc": 0.7862647163753121, + "auprc": 0.01662204127224639, + "brier": 0.0035349370615344834, + "calibration": { + "observed_rate": 0.0035549235691432635, + "mean_prediction": 0.0016519940503337163, + "calibration_in_the_large": -0.0019029295188095472, + "expected_calibration_error_10bin": 0.0019029295188095472, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 11, + "negatives": 2802, + "auroc": 0.7785672571539809, + "auprc": 0.016111211242838073, + "brier": 0.0038888810739492945, + "calibration": { + "observed_rate": 0.0039104159260575895, + "mean_prediction": 0.0017746771434045963, + "calibration_in_the_large": -0.0021357387826529935, + "expected_calibration_error_10bin": 0.0021357387826529935, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 12, + "negatives": 2801, + "auroc": 0.7737712721647031, + "auprc": 0.015827009334801006, + "brier": 0.004241734893990148, + "calibration": { + "observed_rate": 0.004265908282971916, + "mean_prediction": 0.002005202769518957, + "calibration_in_the_large": -0.0022607055134529594, + "expected_calibration_error_10bin": 0.0022607055134529594, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 14, + "negatives": 2799, + "auroc": 0.7954116266013372, + "auprc": 0.019359508338311546, + "brier": 0.004941410543553813, + "calibration": { + "observed_rate": 0.004976892996800568, + "mean_prediction": 0.0022210308117631646, + "calibration_in_the_large": -0.002755862185037404, + "expected_calibration_error_10bin": 0.002755862185037404, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 14, + "negatives": 2799, + "auroc": 0.7989077731843005, + "auprc": 0.019422733903614178, + "brier": 0.004940292953624659, + "calibration": { + "observed_rate": 0.004976892996800568, + "mean_prediction": 0.0023699615341985945, + "calibration_in_the_large": -0.002606931462601974, + "expected_calibration_error_10bin": 0.002606931462601974, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 14, + "negatives": 2799, + "auroc": 0.7994181595467769, + "auprc": 0.019300443777500915, + "brier": 0.004939476985620884, + "calibration": { + "observed_rate": 0.004976892996800568, + "mean_prediction": 0.0024845058727090553, + "calibration_in_the_large": -0.002492387124091513, + "expected_calibration_error_10bin": 0.002492387124091513, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 16, + "negatives": 2797, + "auroc": 0.7493966750089381, + "auprc": 0.017942092346092963, + "brier": 0.0056485663380822625, + "calibration": { + "observed_rate": 0.005687877710629221, + "mean_prediction": 0.002570687315863459, + "calibration_in_the_large": -0.0031171903947657623, + "expected_calibration_error_10bin": 0.0031171903947657623, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 18, + "negatives": 2795, + "auroc": 0.7528324388789505, + "auprc": 0.01840867959602801, + "brier": 0.006354191043065455, + "calibration": { + "observed_rate": 0.006398862424457874, + "mean_prediction": 0.002658322678621573, + "calibration_in_the_large": -0.0037405397458363013, + "expected_calibration_error_10bin": 0.0037405397458363013, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 18, + "negatives": 2795, + "auroc": 0.7531107135758298, + "auprc": 0.018329721893168203, + "brier": 0.006354045429827673, + "calibration": { + "observed_rate": 0.006398862424457874, + "mean_prediction": 0.0026823354679165363, + "calibration_in_the_large": -0.003716526956541338, + "expected_calibration_error_10bin": 0.003716526956541338, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + } + ], + "reason": null + }, + "K63": { + "time_averaged_auroc": 0.7174393349188644, + "time_averaged_auprc": 0.02245238922574145, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2810, + "positives": 2, + "negatives": 2808, + "auroc": 0.6128917378917379, + "auprc": 0.0025267043276841804, + "brier": 0.0007115027997163842, + "calibration": { + "observed_rate": 0.0007117437722419929, + "mean_prediction": 0.0006522338405210126, + "calibration_in_the_large": -5.950993172098033e-05, + "expected_calibration_error_10bin": 5.950993172098033e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + { + "valid": 2810, + "positives": 6, + "negatives": 2804, + "auroc": 0.7102353780313837, + "auprc": 0.028424599333357285, + "brier": 0.0021235352923561247, + "calibration": { + "observed_rate": 0.002135231316725979, + "mean_prediction": 0.0010731608827212172, + "calibration_in_the_large": -0.0010620704340047616, + "expected_calibration_error_10bin": 0.0010620704340047616, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + { + "valid": 2810, + "positives": 10, + "negatives": 2800, + "auroc": 0.7275357142857143, + "auprc": 0.01905730539428583, + "brier": 0.003538501659187142, + "calibration": { + "observed_rate": 0.0035587188612099642, + "mean_prediction": 0.0015217268200741335, + "calibration_in_the_large": -0.0020369920411358305, + "expected_calibration_error_10bin": 0.0020369920411358305, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + { + "valid": 2810, + "positives": 13, + "negatives": 2797, + "auroc": 0.7185720964769946, + "auprc": 0.017927848156627985, + "brier": 0.004599312660880981, + "calibration": { + "observed_rate": 0.004626334519572953, + "mean_prediction": 0.0017793628311195777, + "calibration_in_the_large": -0.0028469716884533757, + "expected_calibration_error_10bin": 0.0028469716884533757, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + { + "valid": 2810, + "positives": 13, + "negatives": 2797, + "auroc": 0.7196171722449878, + "auprc": 0.018529079908634505, + "brier": 0.004596347519428281, + "calibration": { + "observed_rate": 0.004626334519572953, + "mean_prediction": 0.002064335486844693, + "calibration_in_the_large": -0.0025619990327282603, + "expected_calibration_error_10bin": 0.0025619990327282603, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + { + "valid": 2810, + "positives": 14, + "negatives": 2796, + "auroc": 0.735719395054159, + "auprc": 0.020472768174263408, + "brier": 0.004945449222381755, + "calibration": { + "observed_rate": 0.00498220640569395, + "mean_prediction": 0.0023318572421811177, + "calibration_in_the_large": -0.0026503491635128324, + "expected_calibration_error_10bin": 0.0026503491635128324, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + { + "valid": 2810, + "positives": 15, + "negatives": 2795, + "auroc": 0.7136314847942755, + "auprc": 0.020632716405001424, + "brier": 0.005298737379781194, + "calibration": { + "observed_rate": 0.005338078291814947, + "mean_prediction": 0.0025261484056607, + "calibration_in_the_large": -0.0028119298861542467, + "expected_calibration_error_10bin": 0.0028119298861542467, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + { + "valid": 2810, + "positives": 15, + "negatives": 2795, + "auroc": 0.7132737030411449, + "auprc": 0.01998130026927006, + "brier": 0.005296101524486277, + "calibration": { + "observed_rate": 0.005338078291814947, + "mean_prediction": 0.002792997473669957, + "calibration_in_the_large": -0.0025450808181449896, + "expected_calibration_error_10bin": 0.0025450808181449896, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + { + "valid": 2810, + "positives": 15, + "negatives": 2795, + "auroc": 0.7133929636255217, + "auprc": 0.02018804826750118, + "brier": 0.005295152567315722, + "calibration": { + "observed_rate": 0.005338078291814947, + "mean_prediction": 0.002943076958973147, + "calibration_in_the_large": -0.0023950013328417996, + "expected_calibration_error_10bin": 0.0023950013328417996, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + { + "valid": 2810, + "positives": 15, + "negatives": 2795, + "auroc": 0.7158974358974359, + "auprc": 0.020293828017844694, + "brier": 0.00529367298950648, + "calibration": { + "observed_rate": 0.005338078291814947, + "mean_prediction": 0.003086663951349608, + "calibration_in_the_large": -0.002251414340465339, + "expected_calibration_error_10bin": 0.002251414340465339, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + { + "valid": 2810, + "positives": 19, + "negatives": 2791, + "auroc": 0.7575288992815252, + "auprc": 0.035866460952013325, + "brier": 0.0066635633063911286, + "calibration": { + "observed_rate": 0.006761565836298933, + "mean_prediction": 0.0033547965518638677, + "calibration_in_the_large": -0.003406769284435065, + "expected_calibration_error_10bin": 0.003406769284435065, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + { + "valid": 2810, + "positives": 21, + "negatives": 2789, + "auroc": 0.744147928084823, + "auprc": 0.03376624695156335, + "brier": 0.00736957939278581, + "calibration": { + "observed_rate": 0.007473309608540925, + "mean_prediction": 0.003559505926970808, + "calibration_in_the_large": -0.003913803681570117, + "expected_calibration_error_10bin": 0.003913803681570117, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + { + "valid": 2810, + "positives": 21, + "negatives": 2789, + "auroc": 0.7442674452355341, + "auprc": 0.03421415377659163, + "brier": 0.007368935076933411, + "calibration": { + "observed_rate": 0.007473309608540925, + "mean_prediction": 0.0035796021117083686, + "calibration_in_the_large": -0.0038937074968325566, + "expected_calibration_error_10bin": 0.0038937074968325566, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + } + ], + "reason": null + }, + "K64": { + "time_averaged_auroc": 0.7645595558248071, + "time_averaged_auprc": 0.022793449148976616, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2801, + "positives": 2, + "negatives": 2799, + "auroc": 0.6786352268667382, + "auprc": 0.0028851636446573154, + "brier": 0.0007142512908466496, + "calibration": { + "observed_rate": 0.0007140307033202428, + "mean_prediction": 0.0007794025670736976, + "calibration_in_the_large": 6.537186375345477e-05, + "expected_calibration_error_10bin": 6.537186375345477e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 5, + "negatives": 2796, + "auroc": 0.7567954220314735, + "auprc": 0.01176147051280416, + "brier": 0.001778967910520664, + "calibration": { + "observed_rate": 0.001785076758300607, + "mean_prediction": 0.0016095507918391107, + "calibration_in_the_large": -0.00017552596646149628, + "expected_calibration_error_10bin": 0.00017552596646149628, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 9, + "negatives": 2792, + "auroc": 0.7940942375039797, + "auprc": 0.013212033254820775, + "brier": 0.003198018042752521, + "calibration": { + "observed_rate": 0.0032131381649410924, + "mean_prediction": 0.0021187514947071454, + "calibration_in_the_large": -0.001094386670233947, + "expected_calibration_error_10bin": 0.001094386670233947, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 11, + "negatives": 2790, + "auroc": 0.7635711958292604, + "auprc": 0.013127256608340578, + "brier": 0.003909605219899158, + "calibration": { + "observed_rate": 0.003927168868261335, + "mean_prediction": 0.002449710809209587, + "calibration_in_the_large": -0.0014774580590517484, + "expected_calibration_error_10bin": 0.0014774580590517484, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 13, + "negatives": 2788, + "auroc": 0.7682375013795387, + "auprc": 0.01981553084962949, + "brier": 0.0046047549647574145, + "calibration": { + "observed_rate": 0.0046411995715815784, + "mean_prediction": 0.002774745757533138, + "calibration_in_the_large": -0.0018664538140484403, + "expected_calibration_error_10bin": 0.0018664538140484403, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 16, + "negatives": 2785, + "auroc": 0.755475763016158, + "auprc": 0.020445191350177635, + "brier": 0.005665203995157932, + "calibration": { + "observed_rate": 0.005712245626561942, + "mean_prediction": 0.0030930546863961613, + "calibration_in_the_large": -0.002619190940165781, + "expected_calibration_error_10bin": 0.002619190940165781, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 17, + "negatives": 2784, + "auroc": 0.763607167004733, + "auprc": 0.023194145024532573, + "brier": 0.006012794861000402, + "calibration": { + "observed_rate": 0.006069260978222063, + "mean_prediction": 0.0035085892335637928, + "calibration_in_the_large": -0.0025606717446582704, + "expected_calibration_error_10bin": 0.0025606717446582704, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 18, + "negatives": 2783, + "auroc": 0.7757815307222422, + "auprc": 0.031164663702176403, + "brier": 0.006340836945363776, + "calibration": { + "observed_rate": 0.006426276329882185, + "mean_prediction": 0.003766649137945893, + "calibration_in_the_large": -0.002659627191936292, + "expected_calibration_error_10bin": 0.002659627191936292, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 20, + "negatives": 2781, + "auroc": 0.776878820568141, + "auprc": 0.03224347891481122, + "brier": 0.007041412209272524, + "calibration": { + "observed_rate": 0.007140307033202428, + "mean_prediction": 0.004127101758844199, + "calibration_in_the_large": -0.0030132052743582294, + "expected_calibration_error_10bin": 0.0030132052743582294, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 21, + "negatives": 2780, + "auroc": 0.7736382322713258, + "auprc": 0.031828976871988386, + "brier": 0.007396390056722492, + "calibration": { + "observed_rate": 0.007497322384862549, + "mean_prediction": 0.00427590525385771, + "calibration_in_the_large": -0.0032214171310048388, + "expected_calibration_error_10bin": 0.0032214171310048388, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 22, + "negatives": 2779, + "auroc": 0.7778959076188295, + "auprc": 0.03224108337311465, + "brier": 0.007745856108036305, + "calibration": { + "observed_rate": 0.00785433773652267, + "mean_prediction": 0.004475389343113427, + "calibration_in_the_large": -0.0033789483934092432, + "expected_calibration_error_10bin": 0.0033789483934092432, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 22, + "negatives": 2779, + "auroc": 0.7773561451143315, + "auprc": 0.03219993399309568, + "brier": 0.007743220013628152, + "calibration": { + "observed_rate": 0.00785433773652267, + "mean_prediction": 0.004716623707826394, + "calibration_in_the_large": -0.003137714028696276, + "expected_calibration_error_10bin": 0.003209685674352822, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 22, + "negatives": 2779, + "auroc": 0.7773070757957408, + "auprc": 0.03219591083654716, + "brier": 0.007743137164287139, + "calibration": { + "observed_rate": 0.00785433773652267, + "mean_prediction": 0.004726959566240921, + "calibration_in_the_large": -0.0031273781702817497, + "expected_calibration_error_10bin": 0.0031994714564419374, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + } + ], + "reason": null + }, + "K65": { + "time_averaged_auroc": 0.8562225460435517, + "time_averaged_auprc": 0.030282441271780123, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2813, + "positives": 5, + "negatives": 2808, + "auroc": 0.8616096866096866, + "auprc": 0.014436789927368309, + "brier": 0.001779465214920948, + "calibration": { + "observed_rate": 0.0017774617845716318, + "mean_prediction": 0.0010586267952221416, + "calibration_in_the_large": -0.0007188349893494901, + "expected_calibration_error_10bin": 0.0007188349893494901, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 7, + "negatives": 2806, + "auroc": 0.8348946135831382, + "auprc": 0.017405283174216114, + "brier": 0.00250083433790707, + "calibration": { + "observed_rate": 0.002488446498400284, + "mean_prediction": 0.001847573085189032, + "calibration_in_the_large": -0.0006408734132112522, + "expected_calibration_error_10bin": 0.0008474595681432328, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 9, + "negatives": 2804, + "auroc": 0.8676890156918687, + "auprc": 0.02410729954267814, + "brier": 0.003211250856062324, + "calibration": { + "observed_rate": 0.003199431212228937, + "mean_prediction": 0.002263495237705053, + "calibration_in_the_large": -0.000935935974523884, + "expected_calibration_error_10bin": 0.0011752899524331009, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 9, + "negatives": 2804, + "auroc": 0.8661039784434934, + "auprc": 0.023704088973440195, + "brier": 0.003227392616412286, + "calibration": { + "observed_rate": 0.003199431212228937, + "mean_prediction": 0.002628653172154385, + "calibration_in_the_large": -0.0005707780400745523, + "expected_calibration_error_10bin": 0.001132902092369769, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 9, + "negatives": 2804, + "auroc": 0.8663021080995403, + "auprc": 0.023247639486188645, + "brier": 0.003247446872839201, + "calibration": { + "observed_rate": 0.003199431212228937, + "mean_prediction": 0.0029180158074831445, + "calibration_in_the_large": -0.0002814154047457926, + "expected_calibration_error_10bin": 0.0011393511907387779, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 10, + "negatives": 2803, + "auroc": 0.8818052087049589, + "auprc": 0.030420489368509506, + "brier": 0.0035859404404776024, + "calibration": { + "observed_rate": 0.0035549235691432635, + "mean_prediction": 0.0032004467412745144, + "calibration_in_the_large": -0.0003544768278687491, + "expected_calibration_error_10bin": 0.0015801520142660044, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 11, + "negatives": 2802, + "auroc": 0.8908896242943353, + "auprc": 0.037156457207546685, + "brier": 0.003931061218613801, + "calibration": { + "observed_rate": 0.0039104159260575895, + "mean_prediction": 0.0034353398396667397, + "calibration_in_the_large": -0.0004750760863908498, + "expected_calibration_error_10bin": 0.0020102894921386416, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 12, + "negatives": 2801, + "auroc": 0.8962275377841247, + "auprc": 0.03950992281649474, + "brier": 0.00428386726562414, + "calibration": { + "observed_rate": 0.004265908282971916, + "mean_prediction": 0.0035805503038597443, + "calibration_in_the_large": -0.0006853579791121721, + "expected_calibration_error_10bin": 0.0022798349927502987, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 12, + "negatives": 2801, + "auroc": 0.8960490301082946, + "auprc": 0.0396429388905958, + "brier": 0.0042942500689519165, + "calibration": { + "observed_rate": 0.004265908282971916, + "mean_prediction": 0.0037074339395230965, + "calibration_in_the_large": -0.0005584743434488199, + "expected_calibration_error_10bin": 0.0022268355255989298, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 13, + "negatives": 2800, + "auroc": 0.8306868131868131, + "auprc": 0.036960929179615624, + "brier": 0.004654172886451441, + "calibration": { + "observed_rate": 0.004621400639886242, + "mean_prediction": 0.0038320785396245925, + "calibration_in_the_large": -0.00078932210026165, + "expected_calibration_error_10bin": 0.002566403097392379, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 13, + "negatives": 2800, + "auroc": 0.8307142857142857, + "auprc": 0.03699874911117102, + "brier": 0.004662653130396141, + "calibration": { + "observed_rate": 0.004621400639886242, + "mean_prediction": 0.004001633153137588, + "calibration_in_the_large": -0.0006197674867486546, + "expected_calibration_error_10bin": 0.0024603457643436644, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 14, + "negatives": 2799, + "auroc": 0.8039605981728168, + "auprc": 0.035041327223675214, + "brier": 0.005031425644134695, + "calibration": { + "observed_rate": 0.004976892996800568, + "mean_prediction": 0.00419036642690787, + "calibration_in_the_large": -0.0007865265698926982, + "expected_calibration_error_10bin": 0.002790453156370302, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 14, + "negatives": 2799, + "auroc": 0.8039605981728168, + "auprc": 0.03503982163164161, + "brier": 0.005035360955482967, + "calibration": { + "observed_rate": 0.004976892996800568, + "mean_prediction": 0.004224522396504188, + "calibration_in_the_large": -0.0007523706002963808, + "expected_calibration_error_10bin": 0.002993681647537139, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + } + ], + "reason": null + }, + "K66": { + "time_averaged_auroc": 0.7256237307892429, + "time_averaged_auprc": 0.017878088631349147, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2796, + "positives": 1, + "negatives": 2795, + "auroc": 0.881216457960644, + "auprc": 0.003003003003003003, + "brier": 0.0003577182119089993, + "calibration": { + "observed_rate": 0.000357653791130186, + "mean_prediction": 0.0003451136914797601, + "calibration_in_the_large": -1.254009965042589e-05, + "expected_calibration_error_10bin": 1.254009965042589e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + { + "valid": 2796, + "positives": 1, + "negatives": 2795, + "auroc": 0.8722719141323793, + "auprc": 0.002793296089385475, + "brier": 0.00035911148979022125, + "calibration": { + "observed_rate": 0.000357653791130186, + "mean_prediction": 0.0007789038263861205, + "calibration_in_the_large": 0.00042125003525593453, + "expected_calibration_error_10bin": 0.00042125003525593453, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + { + "valid": 2796, + "positives": 4, + "negatives": 2792, + "auroc": 0.9079512893982808, + "auprc": 0.03422625091357037, + "brier": 0.0014206071071255076, + "calibration": { + "observed_rate": 0.001430615164520744, + "mean_prediction": 0.0012403501475009644, + "calibration_in_the_large": -0.00019026501701977947, + "expected_calibration_error_10bin": 0.00019026501701977947, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + { + "valid": 2796, + "positives": 6, + "negatives": 2790, + "auroc": 0.716547192353644, + "auprc": 0.02566607986258421, + "brier": 0.002134497297018224, + "calibration": { + "observed_rate": 0.002145922746781116, + "mean_prediction": 0.001587781413508595, + "calibration_in_the_large": -0.000558141333272521, + "expected_calibration_error_10bin": 0.000558141333272521, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + { + "valid": 2796, + "positives": 6, + "negatives": 2790, + "auroc": 0.7132616487455197, + "auprc": 0.025537721440955855, + "brier": 0.002135304917637033, + "calibration": { + "observed_rate": 0.002145922746781116, + "mean_prediction": 0.001979643470675336, + "calibration_in_the_large": -0.0001662792761057798, + "expected_calibration_error_10bin": 0.0001662792761057798, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + { + "valid": 2796, + "positives": 6, + "negatives": 2790, + "auroc": 0.7078255675029869, + "auprc": 0.02130945194493246, + "brier": 0.0021374385624941153, + "calibration": { + "observed_rate": 0.002145922746781116, + "mean_prediction": 0.002176846793940089, + "calibration_in_the_large": 3.092404715897322e-05, + "expected_calibration_error_10bin": 3.092404715897322e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + { + "valid": 2796, + "positives": 7, + "negatives": 2789, + "auroc": 0.6533831890590586, + "auprc": 0.017430239303529493, + "brier": 0.0024965547064432617, + "calibration": { + "observed_rate": 0.002503576537911302, + "mean_prediction": 0.0024459865480483166, + "calibration_in_the_large": -5.758998986298523e-05, + "expected_calibration_error_10bin": 5.758998986298523e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + { + "valid": 2796, + "positives": 8, + "negatives": 2788, + "auroc": 0.6501076040172167, + "auprc": 0.016003882131296443, + "brier": 0.0028545500291943643, + "calibration": { + "observed_rate": 0.002861230329041488, + "mean_prediction": 0.002659960274110624, + "calibration_in_the_large": -0.00020127005493086403, + "expected_calibration_error_10bin": 0.00020127005493086403, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + { + "valid": 2796, + "positives": 8, + "negatives": 2788, + "auroc": 0.6498834289813487, + "auprc": 0.017091286782122687, + "brier": 0.0028556559866548576, + "calibration": { + "observed_rate": 0.002861230329041488, + "mean_prediction": 0.0028551261103648526, + "calibration_in_the_large": -6.104218676635225e-06, + "expected_calibration_error_10bin": 6.104218676635225e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + { + "valid": 2796, + "positives": 9, + "negatives": 2787, + "auroc": 0.672646812582227, + "auprc": 0.01802275241509833, + "brier": 0.0032116241471127926, + "calibration": { + "observed_rate": 0.003218884120171674, + "mean_prediction": 0.002982764184327844, + "calibration_in_the_large": -0.00023611993584382986, + "expected_calibration_error_10bin": 0.00023611993584382986, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + { + "valid": 2796, + "positives": 9, + "negatives": 2787, + "auroc": 0.6701351512976916, + "auprc": 0.01795477033080435, + "brier": 0.0032137746692910956, + "calibration": { + "observed_rate": 0.003218884120171674, + "mean_prediction": 0.0031394480755727937, + "calibration_in_the_large": -7.943604459888015e-05, + "expected_calibration_error_10bin": 7.943604459888015e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + { + "valid": 2796, + "positives": 9, + "negatives": 2787, + "auroc": 0.6690188573934537, + "auprc": 0.016690833459377937, + "brier": 0.0032158284928776744, + "calibration": { + "observed_rate": 0.003218884120171674, + "mean_prediction": 0.003299573072230245, + "calibration_in_the_large": 8.068895205857107e-05, + "expected_calibration_error_10bin": 8.068895205857107e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + { + "valid": 2796, + "positives": 9, + "negatives": 2787, + "auroc": 0.6688593868357054, + "auprc": 0.016685584530878338, + "brier": 0.003215916571127054, + "calibration": { + "observed_rate": 0.003218884120171674, + "mean_prediction": 0.0033055040903842625, + "calibration_in_the_large": 8.661997021258867e-05, + "expected_calibration_error_10bin": 8.661997021258867e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + } + ], + "reason": null + }, + "K70": { + "time_averaged_auroc": 0.9422656969396618, + "time_averaged_auprc": 0.030544334312743653, + "valid_timepoint_cells": 12, + "timepoints": [ + { + "valid": 2774, + "positives": 0, + "negatives": 2774, + "auroc": null, + "auprc": null, + "brier": 1.8715783205189702e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00023144695471278285, + "calibration_in_the_large": 0.00023144695471278285, + "expected_calibration_error_10bin": 0.00023144695471278285, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 1, + "negatives": 2773, + "auroc": 0.9372520735665344, + "auprc": 0.005714285714285714, + "brier": 0.00036461000938578536, + "calibration": { + "observed_rate": 0.0003604902667627974, + "mean_prediction": 0.00042112508409989345, + "calibration_in_the_large": 6.0634817337096064e-05, + "expected_calibration_error_10bin": 6.0634817337096064e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 1, + "negatives": 2773, + "auroc": 0.9336458708979445, + "auprc": 0.005405405405405406, + "brier": 0.00036693100718980775, + "calibration": { + "observed_rate": 0.0003604902667627974, + "mean_prediction": 0.0005310023885329916, + "calibration_in_the_large": 0.00017051212177019424, + "expected_calibration_error_10bin": 0.00017051212177019424, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 1, + "negatives": 2773, + "auroc": 0.9340064911648035, + "auprc": 0.005434782608695652, + "brier": 0.00036896878626252553, + "calibration": { + "observed_rate": 0.0003604902667627974, + "mean_prediction": 0.000609003220887027, + "calibration_in_the_large": 0.0002485129541242296, + "expected_calibration_error_10bin": 0.0002485129541242296, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 1, + "negatives": 2773, + "auroc": 0.9336458708979445, + "auprc": 0.005405405405405406, + "brier": 0.0003710873364947985, + "calibration": { + "observed_rate": 0.0003604902667627974, + "mean_prediction": 0.0006816077812057665, + "calibration_in_the_large": 0.0003211175144429691, + "expected_calibration_error_10bin": 0.0003211175144429691, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 1, + "negatives": 2773, + "auroc": 0.9340064911648035, + "auprc": 0.005434782608695652, + "brier": 0.0003720091097933399, + "calibration": { + "observed_rate": 0.0003604902667627974, + "mean_prediction": 0.0007210079479107914, + "calibration_in_the_large": 0.000360517681147994, + "expected_calibration_error_10bin": 0.000360517681147994, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 1, + "negatives": 2773, + "auroc": 0.9332852506310855, + "auprc": 0.005376344086021506, + "brier": 0.0003730878389196409, + "calibration": { + "observed_rate": 0.0003604902667627974, + "mean_prediction": 0.0007668690657032334, + "calibration_in_the_large": 0.00040637879894043604, + "expected_calibration_error_10bin": 0.00040637879894043604, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 1, + "negatives": 2773, + "auroc": 0.9354489722322394, + "auprc": 0.005555555555555556, + "brier": 0.00037685591144823134, + "calibration": { + "observed_rate": 0.0003604902667627974, + "mean_prediction": 0.0008727293623518636, + "calibration_in_the_large": 0.0005122390955890662, + "expected_calibration_error_10bin": 0.0005122390955890661, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 2, + "negatives": 2772, + "auroc": 0.9653679653679653, + "auprc": 0.03502974223397224, + "brier": 0.0007237764579877526, + "calibration": { + "observed_rate": 0.0007209805335255948, + "mean_prediction": 0.0009193172109785577, + "calibration_in_the_large": 0.0001983366774529629, + "expected_calibration_error_10bin": 0.00019833667745296286, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 3, + "negatives": 2771, + "auroc": 0.9769036448935402, + "auprc": 0.0983397190293742, + "brier": 0.0010467396254207919, + "calibration": { + "observed_rate": 0.0010814708002883922, + "mean_prediction": 0.0009936790199412055, + "calibration_in_the_large": -8.779178034718665e-05, + "expected_calibration_error_10bin": 0.0002452147969630701, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 5, + "negatives": 2769, + "auroc": 0.9373058866016613, + "auprc": 0.06723624939168871, + "brier": 0.0017641305008962807, + "calibration": { + "observed_rate": 0.001802451333813987, + "mean_prediction": 0.0010211628111081387, + "calibration_in_the_large": -0.0007812885227058482, + "expected_calibration_error_10bin": 0.0009407482605450968, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 6, + "negatives": 2768, + "auroc": 0.9431599229287091, + "auprc": 0.0637998698569119, + "brier": 0.002118715997301385, + "calibration": { + "observed_rate": 0.0021629416005767843, + "mean_prediction": 0.0010666407076059421, + "calibration_in_the_large": -0.0010963008929708422, + "expected_calibration_error_10bin": 0.001260708423331212, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 6, + "negatives": 2768, + "auroc": 0.9431599229287091, + "auprc": 0.0637998698569119, + "brier": 0.002118668840189387, + "calibration": { + "observed_rate": 0.0021629416005767843, + "mean_prediction": 0.0010695014804311673, + "calibration_in_the_large": -0.001093440120145617, + "expected_calibration_error_10bin": 0.001258001303287093, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + } + ], + "reason": null + }, + "K72": { + "time_averaged_auroc": 0.9339665452721522, + "time_averaged_auprc": 0.24913379954156317, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2787, + "positives": 4, + "negatives": 2783, + "auroc": 0.9663133309378369, + "auprc": 0.16755710085933967, + "brier": 0.0013771620147497942, + "calibration": { + "observed_rate": 0.0014352350197344816, + "mean_prediction": 0.0006245572317497661, + "calibration_in_the_large": -0.0008106777879847156, + "expected_calibration_error_10bin": 0.0008899042251454936, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 6, + "negatives": 2781, + "auroc": 0.9566702624955052, + "auprc": 0.15147916282826768, + "brier": 0.0020375913787643862, + "calibration": { + "observed_rate": 0.002152852529601722, + "mean_prediction": 0.00137123006263781, + "calibration_in_the_large": -0.000781622466963912, + "expected_calibration_error_10bin": 0.0010782871722386906, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 10, + "negatives": 2777, + "auroc": 0.9433561397191214, + "auprc": 0.23691908231951436, + "brier": 0.003171879400959837, + "calibration": { + "observed_rate": 0.003588087549336204, + "mean_prediction": 0.0017751231304471038, + "calibration_in_the_large": -0.0018129644188891, + "expected_calibration_error_10bin": 0.0018129644188890999, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 13, + "negatives": 2774, + "auroc": 0.9516388442127447, + "auprc": 0.2589555497027537, + "brier": 0.004149355241983823, + "calibration": { + "observed_rate": 0.0046645138141370645, + "mean_prediction": 0.002257095243611676, + "calibration_in_the_large": -0.0024074185705253884, + "expected_calibration_error_10bin": 0.0026825313633268093, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 15, + "negatives": 2772, + "auroc": 0.957022607022607, + "auprc": 0.2794069330311683, + "brier": 0.004752583304885359, + "calibration": { + "observed_rate": 0.005382131324004306, + "mean_prediction": 0.00263680284997252, + "calibration_in_the_large": -0.002745328474031786, + "expected_calibration_error_10bin": 0.003308384745382593, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 15, + "negatives": 2772, + "auroc": 0.9570707070707071, + "auprc": 0.26772000414969843, + "brier": 0.0047382001957626246, + "calibration": { + "observed_rate": 0.005382131324004306, + "mean_prediction": 0.002880065090612824, + "calibration_in_the_large": -0.002502066233391482, + "expected_calibration_error_10bin": 0.0030293436992624378, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 18, + "negatives": 2769, + "auroc": 0.949660928534168, + "auprc": 0.28779798391310546, + "brier": 0.005609408342826071, + "calibration": { + "observed_rate": 0.006458557588805167, + "mean_prediction": 0.0032017635530883957, + "calibration_in_the_large": -0.0032567940357167715, + "expected_calibration_error_10bin": 0.004010647683580504, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 18, + "negatives": 2769, + "auroc": 0.9495204847317523, + "auprc": 0.28732566246816155, + "brier": 0.005588339446359693, + "calibration": { + "observed_rate": 0.006458557588805167, + "mean_prediction": 0.003558702652632945, + "calibration_in_the_large": -0.002899854936172222, + "expected_calibration_error_10bin": 0.004059556760018268, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 18, + "negatives": 2769, + "auroc": 0.9502828939448658, + "auprc": 0.2875740800630248, + "brier": 0.005585454031254538, + "calibration": { + "observed_rate": 0.006458557588805167, + "mean_prediction": 0.003838982916061969, + "calibration_in_the_large": -0.0026195746727431983, + "expected_calibration_error_10bin": 0.003949410544620002, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 20, + "negatives": 2767, + "auroc": 0.9110769786772678, + "auprc": 0.2675086450345904, + "brier": 0.0062857139269414984, + "calibration": { + "observed_rate": 0.007176175098672408, + "mean_prediction": 0.004051266911226045, + "calibration_in_the_large": -0.003124908187446363, + "expected_calibration_error_10bin": 0.004580479490730142, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 21, + "negatives": 2766, + "auroc": 0.9077058155149261, + "auprc": 0.25598870703811316, + "brier": 0.006650044128919625, + "calibration": { + "observed_rate": 0.007534983853606028, + "mean_prediction": 0.004225069387577712, + "calibration_in_the_large": -0.0033099144660283164, + "expected_calibration_error_10bin": 0.005061254603088431, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 22, + "negatives": 2765, + "auroc": 0.8706066085812921, + "auprc": 0.2452523137662084, + "brier": 0.007001010780361969, + "calibration": { + "observed_rate": 0.007893792608539648, + "mean_prediction": 0.004418817367043688, + "calibration_in_the_large": -0.0034749752414959595, + "expected_calibration_error_10bin": 0.005278676166271106, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 22, + "negatives": 2765, + "auroc": 0.8706394870951834, + "auprc": 0.24525416886637502, + "brier": 0.0070011487421924885, + "calibration": { + "observed_rate": 0.007893792608539648, + "mean_prediction": 0.004425425540981812, + "calibration_in_the_large": -0.003468367067557836, + "expected_calibration_error_10bin": 0.00527414675511286, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + } + ], + "reason": null + }, + "K74": { + "time_averaged_auroc": 0.9522220790447895, + "time_averaged_auprc": 0.03054870513721501, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2763, + "positives": 1, + "negatives": 2762, + "auroc": 0.9855177407675597, + "auprc": 0.024390243902439025, + "brier": 0.00036768748225934667, + "calibration": { + "observed_rate": 0.0003619254433586681, + "mean_prediction": 0.0006190566750782269, + "calibration_in_the_large": 0.0002571312317195588, + "expected_calibration_error_10bin": 0.0002571312317195588, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + { + "valid": 2763, + "positives": 3, + "negatives": 2760, + "auroc": 0.9391304347826087, + "auprc": 0.01756744368861692, + "brier": 0.0011018815812279482, + "calibration": { + "observed_rate": 0.0010857763300760044, + "mean_prediction": 0.0009794100752358456, + "calibration_in_the_large": -0.00010636625484015884, + "expected_calibration_error_10bin": 0.0001898570295605376, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + { + "valid": 2763, + "positives": 5, + "negatives": 2758, + "auroc": 0.9558375634517766, + "auprc": 0.027772945494547546, + "brier": 0.001833899159878682, + "calibration": { + "observed_rate": 0.0018096272167933405, + "mean_prediction": 0.0013393116460508605, + "calibration_in_the_large": -0.00047031557074248, + "expected_calibration_error_10bin": 0.0007559083786220161, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + { + "valid": 2763, + "positives": 6, + "negatives": 2757, + "auroc": 0.9609478902188369, + "auprc": 0.035199819753988136, + "brier": 0.002199454368218929, + "calibration": { + "observed_rate": 0.002171552660152009, + "mean_prediction": 0.0015909457840810744, + "calibration_in_the_large": -0.0005806068760709343, + "expected_calibration_error_10bin": 0.0010001328739762717, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + { + "valid": 2763, + "positives": 6, + "negatives": 2757, + "auroc": 0.9607665336718656, + "auprc": 0.034746310792915146, + "brier": 0.002220656266107016, + "calibration": { + "observed_rate": 0.002171552660152009, + "mean_prediction": 0.0018425623481626752, + "calibration_in_the_large": -0.0003289903119893336, + "expected_calibration_error_10bin": 0.001233048388907912, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + { + "valid": 2763, + "positives": 6, + "negatives": 2757, + "auroc": 0.9605247249425705, + "auprc": 0.03421680035338141, + "brier": 0.002225016591589749, + "calibration": { + "observed_rate": 0.002171552660152009, + "mean_prediction": 0.0019460585645698601, + "calibration_in_the_large": -0.00022549409558214866, + "expected_calibration_error_10bin": 0.0011578723659640168, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + { + "valid": 2763, + "positives": 7, + "negatives": 2756, + "auroc": 0.9450031100974497, + "auprc": 0.0316326865220473, + "brier": 0.0025914945428020014, + "calibration": { + "observed_rate": 0.0025334781035106766, + "mean_prediction": 0.00203400190141653, + "calibration_in_the_large": -0.0004994762020941465, + "expected_calibration_error_10bin": 0.0015347921146656454, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + { + "valid": 2763, + "positives": 7, + "negatives": 2756, + "auroc": 0.944743935309973, + "auprc": 0.031586566933446726, + "brier": 0.002597925553555298, + "calibration": { + "observed_rate": 0.0025334781035106766, + "mean_prediction": 0.0021389753794516884, + "calibration_in_the_large": -0.00039450272405898825, + "expected_calibration_error_10bin": 0.0015405538089291381, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + { + "valid": 2763, + "positives": 7, + "negatives": 2756, + "auroc": 0.9448476052249637, + "auprc": 0.03177298004367314, + "brier": 0.0026046453153796578, + "calibration": { + "observed_rate": 0.0025334781035106766, + "mean_prediction": 0.002204856950683512, + "calibration_in_the_large": -0.0003286211528271644, + "expected_calibration_error_10bin": 0.0015146808092395773, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + { + "valid": 2763, + "positives": 7, + "negatives": 2756, + "auroc": 0.9455732946298984, + "auprc": 0.032280804396797154, + "brier": 0.0026338004527681914, + "calibration": { + "observed_rate": 0.0025334781035106766, + "mean_prediction": 0.0024426281876060102, + "calibration_in_the_large": -9.08499159046664e-05, + "expected_calibration_error_10bin": 0.0017315146564332797, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + { + "valid": 2763, + "positives": 7, + "negatives": 2756, + "auroc": 0.945365954799917, + "auprc": 0.032124273729795656, + "brier": 0.0026526587718394257, + "calibration": { + "observed_rate": 0.0025334781035106766, + "mean_prediction": 0.002580507580790712, + "calibration_in_the_large": 4.702947728003545e-05, + "expected_calibration_error_10bin": 0.0017705265810493062, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + { + "valid": 2763, + "positives": 7, + "negatives": 2756, + "auroc": 0.9453141198424218, + "auprc": 0.031925437163601376, + "brier": 0.0026607433108695104, + "calibration": { + "observed_rate": 0.0025334781035106766, + "mean_prediction": 0.002682872790946315, + "calibration_in_the_large": 0.00014939468743563854, + "expected_calibration_error_10bin": 0.0017120887590711198, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + { + "valid": 2763, + "positives": 7, + "negatives": 2756, + "auroc": 0.9453141198424218, + "auprc": 0.03191685400854558, + "brier": 0.0026612428380353038, + "calibration": { + "observed_rate": 0.0025334781035106766, + "mean_prediction": 0.0026888288771545438, + "calibration_in_the_large": 0.00015535077364386713, + "expected_calibration_error_10bin": 0.0017087867028813173, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + } + ], + "reason": null + }, + "K75": { + "time_averaged_auroc": 0.8569676871827058, + "time_averaged_auprc": 0.023378899940946444, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2798, + "positives": 2, + "negatives": 2796, + "auroc": 0.9504649499284692, + "auprc": 0.01125, + "brier": 0.0007154425914850687, + "calibration": { + "observed_rate": 0.0007147962830593281, + "mean_prediction": 0.0005524488288634345, + "calibration_in_the_large": -0.00016234745419589365, + "expected_calibration_error_10bin": 0.00016234745419589365, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + { + "valid": 2798, + "positives": 4, + "negatives": 2794, + "auroc": 0.8446671438797423, + "auprc": 0.018165939646384667, + "brier": 0.001428700903246529, + "calibration": { + "observed_rate": 0.0014295925661186562, + "mean_prediction": 0.0010729036091138716, + "calibration_in_the_large": -0.00035668895700478463, + "expected_calibration_error_10bin": 0.00035668895700478463, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + { + "valid": 2798, + "positives": 5, + "negatives": 2793, + "auroc": 0.8010741138560687, + "auprc": 0.014986120446732209, + "brier": 0.0017955957920709105, + "calibration": { + "observed_rate": 0.0017869907076483202, + "mean_prediction": 0.0013730109642000844, + "calibration_in_the_large": -0.0004139797434482358, + "expected_calibration_error_10bin": 0.000487813655100627, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + { + "valid": 2798, + "positives": 9, + "negatives": 2789, + "auroc": 0.8612007489741444, + "auprc": 0.025218607873042885, + "brier": 0.003209946303931103, + "calibration": { + "observed_rate": 0.0032165832737669764, + "mean_prediction": 0.0017184092421346803, + "calibration_in_the_large": -0.001498174031632296, + "expected_calibration_error_10bin": 0.0016599728423184852, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + { + "valid": 2798, + "positives": 10, + "negatives": 2788, + "auroc": 0.8492109038737446, + "auprc": 0.024067402713184582, + "brier": 0.0035697745997624506, + "calibration": { + "observed_rate": 0.0035739814152966403, + "mean_prediction": 0.0018788228660005831, + "calibration_in_the_large": -0.0016951585492960572, + "expected_calibration_error_10bin": 0.001942573020122725, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + { + "valid": 2798, + "positives": 10, + "negatives": 2788, + "auroc": 0.8502869440459111, + "auprc": 0.024089240258391965, + "brier": 0.003576095068482732, + "calibration": { + "observed_rate": 0.0035739814152966403, + "mean_prediction": 0.0020592874201682126, + "calibration_in_the_large": -0.0015146939951284277, + "expected_calibration_error_10bin": 0.0018587017497695727, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + { + "valid": 2798, + "positives": 10, + "negatives": 2788, + "auroc": 0.8513271162123386, + "auprc": 0.024203202836230887, + "brier": 0.0035796284740728813, + "calibration": { + "observed_rate": 0.0035739814152966403, + "mean_prediction": 0.0021826906514776042, + "calibration_in_the_large": -0.0013912907638190361, + "expected_calibration_error_10bin": 0.0018269087698262083, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + { + "valid": 2798, + "positives": 10, + "negatives": 2788, + "auroc": 0.8515423242467719, + "auprc": 0.02434545746562485, + "brier": 0.003583387754937163, + "calibration": { + "observed_rate": 0.0035739814152966403, + "mean_prediction": 0.002308819581205283, + "calibration_in_the_large": -0.0012651618340913575, + "expected_calibration_error_10bin": 0.0017954571477315408, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + { + "valid": 2798, + "positives": 10, + "negatives": 2788, + "auroc": 0.8511119081779053, + "auprc": 0.024366036406746963, + "brier": 0.0035935733969860574, + "calibration": { + "observed_rate": 0.0035739814152966403, + "mean_prediction": 0.0025689861406965786, + "calibration_in_the_large": -0.0010049952746000617, + "expected_calibration_error_10bin": 0.0016676419830016114, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + { + "valid": 2798, + "positives": 10, + "negatives": 2788, + "auroc": 0.8523672883787662, + "auprc": 0.0245213136874414, + "brier": 0.0036019902233171055, + "calibration": { + "observed_rate": 0.0035739814152966403, + "mean_prediction": 0.002717695219034522, + "calibration_in_the_large": -0.0008562861962621185, + "expected_calibration_error_10bin": 0.0015572802707771744, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + { + "valid": 2798, + "positives": 11, + "negatives": 2787, + "auroc": 0.8638483869915516, + "auprc": 0.030192470674093842, + "brier": 0.0039468164094894065, + "calibration": { + "observed_rate": 0.003931379556826304, + "mean_prediction": 0.0028485750898704708, + "calibration_in_the_large": -0.0010828044669558335, + "expected_calibration_error_10bin": 0.0018034366156480645, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + { + "valid": 2798, + "positives": 12, + "negatives": 2786, + "auroc": 0.8564249820531228, + "auprc": 0.029221346860397818, + "brier": 0.004308937613222541, + "calibration": { + "observed_rate": 0.004288777698355968, + "mean_prediction": 0.0030030521342655075, + "calibration_in_the_large": -0.0012857255640904607, + "expected_calibration_error_10bin": 0.002038044121375718, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + { + "valid": 2798, + "positives": 12, + "negatives": 2786, + "auroc": 0.8570531227566404, + "auprc": 0.029298560364031723, + "brier": 0.004310033790250923, + "calibration": { + "observed_rate": 0.004288777698355968, + "mean_prediction": 0.0030336932817293977, + "calibration_in_the_large": -0.0012550844166265705, + "expected_calibration_error_10bin": 0.0020137167844375766, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + } + ], + "reason": null + }, + "K76": { + "time_averaged_auroc": 0.8135632581891501, + "time_averaged_auprc": 0.18205231180372466, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2681, + "positives": 10, + "negatives": 2671, + "auroc": 0.8312991388992886, + "auprc": 0.17461046540018, + "brier": 0.003466151172405665, + "calibration": { + "observed_rate": 0.003729951510630362, + "mean_prediction": 0.001114802028347078, + "calibration_in_the_large": -0.002615149482283284, + "expected_calibration_error_10bin": 0.0031359938435504588, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9430179387970454 + }, + { + "valid": 2681, + "positives": 14, + "negatives": 2667, + "auroc": 0.8205581445176496, + "auprc": 0.14737353940891312, + "brier": 0.004890128763478716, + "calibration": { + "observed_rate": 0.005221932114882507, + "mean_prediction": 0.0018417998684684622, + "calibration_in_the_large": -0.0033801322464140447, + "expected_calibration_error_10bin": 0.004148155357682016, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9430179387970454 + }, + { + "valid": 2681, + "positives": 17, + "negatives": 2664, + "auroc": 0.8266207383854443, + "auprc": 0.18284898944281783, + "brier": 0.005740400678541745, + "calibration": { + "observed_rate": 0.006340917568071615, + "mean_prediction": 0.0024683565726639836, + "calibration_in_the_large": -0.003872560995407631, + "expected_calibration_error_10bin": 0.004538315125248905, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9430179387970454 + }, + { + "valid": 2681, + "positives": 18, + "negatives": 2663, + "auroc": 0.8353778111570076, + "auprc": 0.17989029782058313, + "brier": 0.00607897939841415, + "calibration": { + "observed_rate": 0.006713912719134651, + "mean_prediction": 0.00289009243061641, + "calibration_in_the_large": -0.003823820288518241, + "expected_calibration_error_10bin": 0.004735292760076279, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9430179387970454 + }, + { + "valid": 2681, + "positives": 21, + "negatives": 2660, + "auroc": 0.8557465091299677, + "auprc": 0.19760346947379906, + "brier": 0.007100495111204526, + "calibration": { + "observed_rate": 0.007832898172323759, + "mean_prediction": 0.0032106077948380893, + "calibration_in_the_large": -0.00462229037748567, + "expected_calibration_error_10bin": 0.005596977209799819, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9430179387970454 + }, + { + "valid": 2681, + "positives": 21, + "negatives": 2660, + "auroc": 0.8549051199427139, + "auprc": 0.19817296809465668, + "brier": 0.007094367214163055, + "calibration": { + "observed_rate": 0.007832898172323759, + "mean_prediction": 0.0034961485342592425, + "calibration_in_the_large": -0.004336749638064517, + "expected_calibration_error_10bin": 0.005463938666821166, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9430179387970454 + }, + { + "valid": 2681, + "positives": 26, + "negatives": 2655, + "auroc": 0.7974069245255686, + "auprc": 0.17925263459372226, + "brier": 0.008909775927866685, + "calibration": { + "observed_rate": 0.00969787392763894, + "mean_prediction": 0.003801330883635049, + "calibration_in_the_large": -0.005896543044003891, + "expected_calibration_error_10bin": 0.006877364541539384, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9430179387970454 + }, + { + "valid": 2681, + "positives": 29, + "negatives": 2652, + "auroc": 0.7775133926249544, + "auprc": 0.18338321335732458, + "brier": 0.009967265893395262, + "calibration": { + "observed_rate": 0.01081685938082805, + "mean_prediction": 0.004108014458940815, + "calibration_in_the_large": -0.006708844921887234, + "expected_calibration_error_10bin": 0.007940078993747572, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9430179387970454 + }, + { + "valid": 2681, + "positives": 30, + "negatives": 2651, + "auroc": 0.7852005532503458, + "auprc": 0.1860730046330949, + "brier": 0.010319864188759454, + "calibration": { + "observed_rate": 0.011189854531891086, + "mean_prediction": 0.0043769277369010194, + "calibration_in_the_large": -0.006812926794990066, + "expected_calibration_error_10bin": 0.008261026831037034, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9430179387970454 + }, + { + "valid": 2681, + "positives": 31, + "negatives": 2650, + "auroc": 0.794327449786975, + "auprc": 0.18915802986861838, + "brier": 0.010671676912269256, + "calibration": { + "observed_rate": 0.011562849682954122, + "mean_prediction": 0.004592948721344037, + "calibration_in_the_large": -0.006969900961610085, + "expected_calibration_error_10bin": 0.008617454368613251, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9430179387970454 + }, + { + "valid": 2681, + "positives": 32, + "negatives": 2649, + "auroc": 0.7959607399018498, + "auprc": 0.18559480851660012, + "brier": 0.011041496609684032, + "calibration": { + "observed_rate": 0.011935844834017158, + "mean_prediction": 0.004786619630356126, + "calibration_in_the_large": -0.007149225203661033, + "expected_calibration_error_10bin": 0.008849564826453837, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9430179387970454 + }, + { + "valid": 2681, + "positives": 33, + "negatives": 2648, + "auroc": 0.7988991119655772, + "auprc": 0.18258916357822802, + "brier": 0.011404043769612529, + "calibration": { + "observed_rate": 0.012308839985080195, + "mean_prediction": 0.005089688642142936, + "calibration_in_the_large": -0.0072191513429372585, + "expected_calibration_error_10bin": 0.008846202942013673, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9430179387970454 + }, + { + "valid": 2681, + "positives": 34, + "negatives": 2647, + "auroc": 0.8025067223716082, + "auprc": 0.1801294692598824, + "brier": 0.011770608769381468, + "calibration": { + "observed_rate": 0.01268183513614323, + "mean_prediction": 0.0051181277126785395, + "calibration_in_the_large": -0.00756370742346469, + "expected_calibration_error_10bin": 0.009197530274706192, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9430179387970454 + } + ], + "reason": null + }, + "K80": { + "time_averaged_auroc": 0.604341625531599, + "time_averaged_auprc": 0.010120853831760328, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2731, + "positives": 2, + "negatives": 2729, + "auroc": 0.5106266031513375, + "auprc": 0.0012020522567470486, + "brier": 0.0007337018919697386, + "calibration": { + "observed_rate": 0.0007323324789454412, + "mean_prediction": 0.0008674630867437315, + "calibration_in_the_large": 0.00013513060779829034, + "expected_calibration_error_10bin": 0.00013513060779829034, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9606049947238833 + }, + { + "valid": 2731, + "positives": 3, + "negatives": 2728, + "auroc": 0.6304985337243402, + "auprc": 0.0023552454356056567, + "brier": 0.0011025658289239518, + "calibration": { + "observed_rate": 0.0010984987184181618, + "mean_prediction": 0.0015610589455581042, + "calibration_in_the_large": 0.00046256022713994237, + "expected_calibration_error_10bin": 0.00046256022713994237, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9606049947238833 + }, + { + "valid": 2731, + "positives": 5, + "negatives": 2726, + "auroc": 0.5528980190755686, + "auprc": 0.002589044150943332, + "brier": 0.0018357867679068185, + "calibration": { + "observed_rate": 0.001830831197363603, + "mean_prediction": 0.001974955328692714, + "calibration_in_the_large": 0.00014412413132911103, + "expected_calibration_error_10bin": 0.00014412413132911103, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9606049947238833 + }, + { + "valid": 2731, + "positives": 6, + "negatives": 2725, + "auroc": 0.6058715596330275, + "auprc": 0.0038184476096129356, + "brier": 0.002202263561383199, + "calibration": { + "observed_rate": 0.0021969974368363236, + "mean_prediction": 0.0025010105711324834, + "calibration_in_the_large": 0.0003040131342961598, + "expected_calibration_error_10bin": 0.0003040131342961598, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9606049947238833 + }, + { + "valid": 2731, + "positives": 7, + "negatives": 2724, + "auroc": 0.6108663729809104, + "auprc": 0.004144458678953242, + "brier": 0.002569012125512987, + "calibration": { + "observed_rate": 0.002563163676309044, + "mean_prediction": 0.002834607623555665, + "calibration_in_the_large": 0.00027144394724662067, + "expected_calibration_error_10bin": 0.00027144394724662067, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9606049947238833 + }, + { + "valid": 2731, + "positives": 10, + "negatives": 2721, + "auroc": 0.6337743476662991, + "auprc": 0.01308292709780225, + "brier": 0.003648192588365897, + "calibration": { + "observed_rate": 0.003661662394727206, + "mean_prediction": 0.003041660796147526, + "calibration_in_the_large": -0.0006200015985796804, + "expected_calibration_error_10bin": 0.0006200015985796804, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9606049947238833 + }, + { + "valid": 2731, + "positives": 12, + "negatives": 2719, + "auroc": 0.6266396959666544, + "auprc": 0.015161280406062835, + "brier": 0.004373183236233086, + "calibration": { + "observed_rate": 0.004393994873672647, + "mean_prediction": 0.0034400805127572085, + "calibration_in_the_large": -0.0009539143609154387, + "expected_calibration_error_10bin": 0.0009539143609154387, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9606049947238833 + }, + { + "valid": 2731, + "positives": 12, + "negatives": 2719, + "auroc": 0.6248927301704058, + "auprc": 0.015141367030758912, + "brier": 0.004373858514239168, + "calibration": { + "observed_rate": 0.004393994873672647, + "mean_prediction": 0.003763639887856278, + "calibration_in_the_large": -0.0006303549858163691, + "expected_calibration_error_10bin": 0.0006303549858163691, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9606049947238833 + }, + { + "valid": 2731, + "positives": 13, + "negatives": 2718, + "auroc": 0.6227995698194374, + "auprc": 0.015145219236984357, + "brier": 0.004738599620542355, + "calibration": { + "observed_rate": 0.004760161113145368, + "mean_prediction": 0.00404865840454597, + "calibration_in_the_large": -0.000711502708599398, + "expected_calibration_error_10bin": 0.0007876590514277731, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9606049947238833 + }, + { + "valid": 2731, + "positives": 14, + "negatives": 2717, + "auroc": 0.604527051895473, + "auprc": 0.014601306022793378, + "brier": 0.005104362182964139, + "calibration": { + "observed_rate": 0.005126327352618088, + "mean_prediction": 0.004280935675459293, + "calibration_in_the_large": -0.0008453916771587952, + "expected_calibration_error_10bin": 0.0009239582705335947, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9606049947238833 + }, + { + "valid": 2731, + "positives": 18, + "negatives": 2713, + "auroc": 0.6134250726952533, + "auprc": 0.015011466152317557, + "brier": 0.00655768841738929, + "calibration": { + "observed_rate": 0.006590992310508971, + "mean_prediction": 0.004532266765219835, + "calibration_in_the_large": -0.0020587255452891367, + "expected_calibration_error_10bin": 0.002142435876552936, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9606049947238833 + }, + { + "valid": 2731, + "positives": 18, + "negatives": 2713, + "auroc": 0.6097800712618258, + "auprc": 0.014664511280071199, + "brier": 0.006558672325753309, + "calibration": { + "observed_rate": 0.006590992310508971, + "mean_prediction": 0.0048072237125039476, + "calibration_in_the_large": -0.0017837685980050238, + "expected_calibration_error_10bin": 0.0018707384859839732, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9606049947238833 + }, + { + "valid": 2731, + "positives": 18, + "negatives": 2713, + "auroc": 0.6098415038702544, + "auprc": 0.014653774454231558, + "brier": 0.0065591527997513315, + "calibration": { + "observed_rate": 0.006590992310508971, + "mean_prediction": 0.004871185195380948, + "calibration_in_the_large": -0.0017198071151280237, + "expected_calibration_error_10bin": 0.0018811922944797096, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9606049947238833 + } + ], + "reason": null + }, + "K81": { + "time_averaged_auroc": 0.8694364384468806, + "time_averaged_auprc": 0.03654044921687661, + "valid_timepoint_cells": 12, + "timepoints": [ + { + "valid": 2825, + "positives": 0, + "negatives": 2825, + "auroc": null, + "auprc": null, + "brier": 3.497775230654178e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.000460973124891178, + "calibration_in_the_large": 0.000460973124891178, + "expected_calibration_error_10bin": 0.000460973124891178, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.777364505844846, + "auprc": 0.05635491606714628, + "brier": 0.000690452200374167, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.00075903838575442, + "calibration_in_the_large": 5.10737839845085e-05, + "expected_calibration_error_10bin": 5.10737839845085e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 4, + "negatives": 2821, + "auroc": 0.869904289259128, + "auprc": 0.0366558333865206, + "brier": 0.0013948455252966107, + "calibration": { + "observed_rate": 0.001415929203539823, + "mean_prediction": 0.0008516067548162913, + "calibration_in_the_large": -0.0005643224487235318, + "expected_calibration_error_10bin": 0.0005643224487235318, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 5, + "negatives": 2820, + "auroc": 0.8675177304964539, + "auprc": 0.03100569643681338, + "brier": 0.0017478293847659004, + "calibration": { + "observed_rate": 0.0017699115044247787, + "mean_prediction": 0.0009614067258197656, + "calibration_in_the_large": -0.0008085047786050132, + "expected_calibration_error_10bin": 0.0008085047786050132, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 5, + "negatives": 2820, + "auroc": 0.8698581560283688, + "auprc": 0.030937374201684437, + "brier": 0.001747567709606432, + "calibration": { + "observed_rate": 0.0017699115044247787, + "mean_prediction": 0.0010358969488741228, + "calibration_in_the_large": -0.0007340145555506559, + "expected_calibration_error_10bin": 0.0007340145555506559, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 5, + "negatives": 2820, + "auroc": 0.8689361702127659, + "auprc": 0.03069010083177156, + "brier": 0.0017479766485680656, + "calibration": { + "observed_rate": 0.0017699115044247787, + "mean_prediction": 0.0011076931203222284, + "calibration_in_the_large": -0.0006622183841025503, + "expected_calibration_error_10bin": 0.0006622183841025503, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 5, + "negatives": 2820, + "auroc": 0.8734751773049645, + "auprc": 0.033460314679474745, + "brier": 0.001748054796153504, + "calibration": { + "observed_rate": 0.0017699115044247787, + "mean_prediction": 0.0011866802339835104, + "calibration_in_the_large": -0.0005832312704412684, + "expected_calibration_error_10bin": 0.0005832312704412684, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 5, + "negatives": 2820, + "auroc": 0.875886524822695, + "auprc": 0.03345339134875182, + "brier": 0.0017480253121089355, + "calibration": { + "observed_rate": 0.0017699115044247787, + "mean_prediction": 0.0012472370751106811, + "calibration_in_the_large": -0.0005226744293140976, + "expected_calibration_error_10bin": 0.0005226744293140976, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 5, + "negatives": 2820, + "auroc": 0.8773758865248227, + "auprc": 0.03340892944293789, + "brier": 0.0017477508211950347, + "calibration": { + "observed_rate": 0.0017699115044247787, + "mean_prediction": 0.0013476676214093587, + "calibration_in_the_large": -0.00042224388301542, + "expected_calibration_error_10bin": 0.00042224388301542, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 5, + "negatives": 2820, + "auroc": 0.8774468085106383, + "auprc": 0.03328281244763462, + "brier": 0.0017479728806704695, + "calibration": { + "observed_rate": 0.0017699115044247787, + "mean_prediction": 0.0014310398622028595, + "calibration_in_the_large": -0.00033887164222191923, + "expected_calibration_error_10bin": 0.0004114019814713866, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 5, + "negatives": 2820, + "auroc": 0.8777304964539007, + "auprc": 0.03322358426117554, + "brier": 0.0017480784074165917, + "calibration": { + "observed_rate": 0.0017699115044247787, + "mean_prediction": 0.0014649761892508498, + "calibration_in_the_large": -0.00030493531517392894, + "expected_calibration_error_10bin": 0.0003783061010137189, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 6, + "negatives": 2819, + "auroc": 0.8988411966418351, + "auprc": 0.04301522905125493, + "brier": 0.0020874649706171242, + "calibration": { + "observed_rate": 0.0021238938053097347, + "mean_prediction": 0.001491172986762625, + "calibration_in_the_large": -0.0006327208185471097, + "expected_calibration_error_10bin": 0.0007067119674198228, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 6, + "negatives": 2819, + "auroc": 0.8989003192621497, + "auprc": 0.04299720844735344, + "brier": 0.002087421601855717, + "calibration": { + "observed_rate": 0.0021238938053097347, + "mean_prediction": 0.00150274365381348, + "calibration_in_the_large": -0.0006211501514962546, + "expected_calibration_error_10bin": 0.0006957681671653432, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + } + ], + "reason": null + }, + "K82": { + "time_averaged_auroc": 0.7112402501224584, + "time_averaged_auprc": 0.003746548629667695, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2824, + "positives": 1, + "negatives": 2823, + "auroc": 0.9114417286574567, + "auprc": 0.00398406374501992, + "brier": 0.0003558500440310279, + "calibration": { + "observed_rate": 0.0003541076487252125, + "mean_prediction": 0.000406561831289261, + "calibration_in_the_large": 5.2454182564048524e-05, + "expected_calibration_error_10bin": 5.2454182564048524e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 1, + "negatives": 2823, + "auroc": 0.9419057739992915, + "auprc": 0.006060606060606061, + "brier": 0.0003621903637892629, + "calibration": { + "observed_rate": 0.0003541076487252125, + "mean_prediction": 0.0008191822734787467, + "calibration_in_the_large": 0.0004650746247535342, + "expected_calibration_error_10bin": 0.0004650746247535342, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.8717221828490432, + "auprc": 0.004765099241843427, + "brier": 0.0007174315534940379, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0009228223467185007, + "calibration_in_the_large": 0.00021460704926807574, + "expected_calibration_error_10bin": 0.00021460704926807574, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.7122769703414865, + "auprc": 0.0037398997783747324, + "brier": 0.0010741426387115148, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0010641907938529185, + "calibration_in_the_large": 1.8678476772810305e-06, + "expected_calibration_error_10bin": 1.8678476772810305e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 4, + "negatives": 2820, + "auroc": 0.6459219858156028, + "auprc": 0.003430481118381631, + "brier": 0.0014296413704117784, + "calibration": { + "observed_rate": 0.00141643059490085, + "mean_prediction": 0.0011212983701210679, + "calibration_in_the_large": -0.00029513222477978206, + "expected_calibration_error_10bin": 0.00029513222477978206, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 4, + "negatives": 2820, + "auroc": 0.6413120567375886, + "auprc": 0.003459504197541352, + "brier": 0.0014326510027102618, + "calibration": { + "observed_rate": 0.00141643059490085, + "mean_prediction": 0.001276577298070154, + "calibration_in_the_large": -0.00013985329683069599, + "expected_calibration_error_10bin": 0.00013985329683069599, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 4, + "negatives": 2820, + "auroc": 0.6499113475177305, + "auprc": 0.0034016264779382125, + "brier": 0.0014359802595876638, + "calibration": { + "observed_rate": 0.00141643059490085, + "mean_prediction": 0.0014084881026974472, + "calibration_in_the_large": -7.94249220340275e-06, + "expected_calibration_error_10bin": 7.94249220340275e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 4, + "negatives": 2820, + "auroc": 0.6469858156028369, + "auprc": 0.003341759101596746, + "brier": 0.0014381934966570954, + "calibration": { + "observed_rate": 0.00141643059490085, + "mean_prediction": 0.0015263516795230754, + "calibration_in_the_large": 0.00010992108462222548, + "expected_calibration_error_10bin": 0.00010992108462222548, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 4, + "negatives": 2820, + "auroc": 0.6429078014184397, + "auprc": 0.0033730220086055328, + "brier": 0.0014394700577849084, + "calibration": { + "observed_rate": 0.00141643059490085, + "mean_prediction": 0.0015868465168566628, + "calibration_in_the_large": 0.00017041592195581284, + "expected_calibration_error_10bin": 0.00017041592195581284, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 4, + "negatives": 2820, + "auroc": 0.6447695035460993, + "auprc": 0.0033721717124253914, + "brier": 0.001439738770879408, + "calibration": { + "observed_rate": 0.00141643059490085, + "mean_prediction": 0.0016004956046389975, + "calibration_in_the_large": 0.00018406500973814754, + "expected_calibration_error_10bin": 0.00018406500973814754, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 4, + "negatives": 2820, + "auroc": 0.6445921985815602, + "auprc": 0.003278352714338855, + "brier": 0.0014437034775156155, + "calibration": { + "observed_rate": 0.00141643059490085, + "mean_prediction": 0.001714704398095265, + "calibration_in_the_large": 0.000298273803194415, + "expected_calibration_error_10bin": 0.000298273803194415, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 4, + "negatives": 2820, + "auroc": 0.6461879432624114, + "auprc": 0.0032497668203937246, + "brier": 0.0014460192445721466, + "calibration": { + "observed_rate": 0.00141643059490085, + "mean_prediction": 0.0017954123599191487, + "calibration_in_the_large": 0.00037898176501829873, + "expected_calibration_error_10bin": 0.00037898176501829873, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 4, + "negatives": 2820, + "auroc": 0.6461879432624114, + "auprc": 0.003248779208614436, + "brier": 0.0014460861227487741, + "calibration": { + "observed_rate": 0.00141643059490085, + "mean_prediction": 0.0017982592489690133, + "calibration_in_the_large": 0.0003818286540681634, + "expected_calibration_error_10bin": 0.0003818286540681634, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + } + ], + "reason": null + }, + "K83": { + "time_averaged_auroc": 0.9002052216820524, + "time_averaged_auprc": 0.12269170494248852, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2757, + "positives": 1, + "negatives": 2756, + "auroc": 0.9016690856313497, + "auprc": 0.003676470588235294, + "brier": 0.0003811975593391455, + "calibration": { + "observed_rate": 0.0003627130939426913, + "mean_prediction": 0.0009192137618338706, + "calibration_in_the_large": 0.0005565006678911793, + "expected_calibration_error_10bin": 0.0005565006678911793, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.969750263805839 + }, + { + "valid": 2757, + "positives": 4, + "negatives": 2753, + "auroc": 0.911460225208863, + "auprc": 0.2567645918558327, + "brier": 0.001343019723357183, + "calibration": { + "observed_rate": 0.0014508523757707653, + "mean_prediction": 0.001354402972008451, + "calibration_in_the_large": -9.644940376231435e-05, + "expected_calibration_error_10bin": 0.0004820449894621978, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.969750263805839 + }, + { + "valid": 2757, + "positives": 5, + "negatives": 2752, + "auroc": 0.8946220930232558, + "auprc": 0.20747121691159384, + "brier": 0.0016914911298960983, + "calibration": { + "observed_rate": 0.0018135654697134566, + "mean_prediction": 0.0015795583539338434, + "calibration_in_the_large": -0.00023400711577961316, + "expected_calibration_error_10bin": 0.0003132893357421472, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.969750263805839 + }, + { + "valid": 2757, + "positives": 7, + "negatives": 2750, + "auroc": 0.8862857142857142, + "auprc": 0.15328474871343037, + "brier": 0.0024055745855786847, + "calibration": { + "observed_rate": 0.0025389916575988395, + "mean_prediction": 0.0018491913244321802, + "calibration_in_the_large": -0.0006898003331666594, + "expected_calibration_error_10bin": 0.0008527382287706211, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.969750263805839 + }, + { + "valid": 2757, + "positives": 8, + "negatives": 2749, + "auroc": 0.8922335394688978, + "auprc": 0.1377107752725872, + "brier": 0.00275652874309013, + "calibration": { + "observed_rate": 0.0029017047515415306, + "mean_prediction": 0.002142377397269501, + "calibration_in_the_large": -0.0007593273542720294, + "expected_calibration_error_10bin": 0.0010129770982667552, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.969750263805839 + }, + { + "valid": 2757, + "positives": 9, + "negatives": 2748, + "auroc": 0.895924308588064, + "auprc": 0.12585184111015255, + "brier": 0.0031170938400966273, + "calibration": { + "observed_rate": 0.003264417845484222, + "mean_prediction": 0.0023560474674884572, + "calibration_in_the_large": -0.0009083703779957648, + "expected_calibration_error_10bin": 0.0014134607755942855, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.969750263805839 + }, + { + "valid": 2757, + "positives": 10, + "negatives": 2747, + "auroc": 0.8924645067346196, + "auprc": 0.11574272889717892, + "brier": 0.0034797836614417874, + "calibration": { + "observed_rate": 0.003627130939426913, + "mean_prediction": 0.002521082555197803, + "calibration_in_the_large": -0.00110604838422911, + "expected_calibration_error_10bin": 0.0017124693695592431, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.969750263805839 + }, + { + "valid": 2757, + "positives": 11, + "negatives": 2746, + "auroc": 0.896345097000596, + "auprc": 0.1089943888295685, + "brier": 0.003839624502647531, + "calibration": { + "observed_rate": 0.003989844033369605, + "mean_prediction": 0.002670461251402364, + "calibration_in_the_large": -0.001319382781967241, + "expected_calibration_error_10bin": 0.001950849414190387, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.969750263805839 + }, + { + "valid": 2757, + "positives": 12, + "negatives": 2745, + "auroc": 0.8971159684274438, + "auprc": 0.10299172080083575, + "brier": 0.004201780309883752, + "calibration": { + "observed_rate": 0.004352557127312296, + "mean_prediction": 0.0029059347246237193, + "calibration_in_the_large": -0.0014466224026885768, + "expected_calibration_error_10bin": 0.0021979264919116995, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.969750263805839 + }, + { + "valid": 2757, + "positives": 14, + "negatives": 2743, + "auroc": 0.9064371647310036, + "auprc": 0.09754539371235875, + "brier": 0.004908081154066316, + "calibration": { + "observed_rate": 0.005077983315197679, + "mean_prediction": 0.0030420203791523596, + "calibration_in_the_large": -0.0020359629360453195, + "expected_calibration_error_10bin": 0.002812068767663381, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.969750263805839 + }, + { + "valid": 2757, + "positives": 16, + "negatives": 2741, + "auroc": 0.9090888361911711, + "auprc": 0.0948968318643229, + "brier": 0.005597722008745016, + "calibration": { + "observed_rate": 0.005803409503083061, + "mean_prediction": 0.003201273559749938, + "calibration_in_the_large": -0.002602135943333123, + "expected_calibration_error_10bin": 0.003548392291984903, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.969750263805839 + }, + { + "valid": 2757, + "positives": 16, + "negatives": 2741, + "auroc": 0.9094992703392922, + "auprc": 0.09501885299406296, + "brier": 0.005598210756639721, + "calibration": { + "observed_rate": 0.005803409503083061, + "mean_prediction": 0.0033231451844800953, + "calibration_in_the_large": -0.002480264318602966, + "expected_calibration_error_10bin": 0.003444486495195949, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.969750263805839 + }, + { + "valid": 2757, + "positives": 16, + "negatives": 2741, + "auroc": 0.90952207223641, + "auprc": 0.09504260270219109, + "brier": 0.005598331008474311, + "calibration": { + "observed_rate": 0.005803409503083061, + "mean_prediction": 0.0033369314439247464, + "calibration_in_the_large": -0.0024664780591583148, + "expected_calibration_error_10bin": 0.0034341170120192528, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.969750263805839 + } + ], + "reason": null + }, + "K85": { + "time_averaged_auroc": 0.801148072233022, + "time_averaged_auprc": 0.019396424508937252, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2779, + "positives": 1, + "negatives": 2778, + "auroc": 0.5993520518358532, + "auprc": 0.0008976660682226212, + "brier": 0.0003600368680550564, + "calibration": { + "observed_rate": 0.0003598416696653472, + "mean_prediction": 0.00026559396438570904, + "calibration_in_the_large": -9.424770527963818e-05, + "expected_calibration_error_10bin": 9.424770527963818e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9774885684136475 + }, + { + "valid": 2779, + "positives": 2, + "negatives": 2777, + "auroc": 0.7283039250990277, + "auprc": 0.0021469728020183563, + "brier": 0.0007208961001927787, + "calibration": { + "observed_rate": 0.0007196833393306944, + "mean_prediction": 0.0005943797768922346, + "calibration_in_the_large": -0.00012530356243845985, + "expected_calibration_error_10bin": 0.00012530356243845985, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9774885684136475 + }, + { + "valid": 2779, + "positives": 2, + "negatives": 2777, + "auroc": 0.7286640259272597, + "auprc": 0.002101996298398655, + "brier": 0.0007226305370552206, + "calibration": { + "observed_rate": 0.0007196833393306944, + "mean_prediction": 0.0008278048582165312, + "calibration_in_the_large": 0.00010812151888583673, + "expected_calibration_error_10bin": 0.00010812151888583673, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9774885684136475 + }, + { + "valid": 2779, + "positives": 3, + "negatives": 2776, + "auroc": 0.8109990393852066, + "auprc": 0.011757637561261173, + "brier": 0.0010763897881447178, + "calibration": { + "observed_rate": 0.0010795250089960418, + "mean_prediction": 0.0011140437143766072, + "calibration_in_the_large": 3.4518705380565465e-05, + "expected_calibration_error_10bin": 3.4518705380565465e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9774885684136475 + }, + { + "valid": 2779, + "positives": 3, + "negatives": 2776, + "auroc": 0.8280499519692603, + "auprc": 0.013706674408704019, + "brier": 0.0010758725286897908, + "calibration": { + "observed_rate": 0.0010795250089960418, + "mean_prediction": 0.0013620082510168025, + "calibration_in_the_large": 0.0002824832420207607, + "expected_calibration_error_10bin": 0.0002824832420207607, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9774885684136475 + }, + { + "valid": 2779, + "positives": 4, + "negatives": 2775, + "auroc": 0.8753153153153154, + "auprc": 0.03551861492930604, + "brier": 0.0014227480315408224, + "calibration": { + "observed_rate": 0.0014393666786613889, + "mean_prediction": 0.0014290121842248235, + "calibration_in_the_large": -1.0354494436565437e-05, + "expected_calibration_error_10bin": 1.0354494436565437e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9774885684136475 + }, + { + "valid": 2779, + "positives": 4, + "negatives": 2775, + "auroc": 0.8714414414414414, + "auprc": 0.03412460471014405, + "brier": 0.0014229347566226166, + "calibration": { + "observed_rate": 0.0014393666786613889, + "mean_prediction": 0.0016278438125541589, + "calibration_in_the_large": 0.00018847713389276996, + "expected_calibration_error_10bin": 0.00018847713389276996, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9774885684136475 + }, + { + "valid": 2779, + "positives": 5, + "negatives": 2774, + "auroc": 0.8473684210526315, + "auprc": 0.02778516484693768, + "brier": 0.0017818173639434689, + "calibration": { + "observed_rate": 0.0017992083483267362, + "mean_prediction": 0.0017016139386441945, + "calibration_in_the_large": -9.759440968254169e-05, + "expected_calibration_error_10bin": 9.759440968254169e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9774885684136475 + }, + { + "valid": 2779, + "positives": 8, + "negatives": 2771, + "auroc": 0.8111241429086973, + "auprc": 0.02101157540472127, + "brier": 0.0028552705548015836, + "calibration": { + "observed_rate": 0.0028787333573227778, + "mean_prediction": 0.0018622161624590584, + "calibration_in_the_large": -0.0010165171948637193, + "expected_calibration_error_10bin": 0.0010165171948637193, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9774885684136475 + }, + { + "valid": 2779, + "positives": 9, + "negatives": 2770, + "auroc": 0.8294023265142398, + "auprc": 0.027138775510032354, + "brier": 0.003202994686171606, + "calibration": { + "observed_rate": 0.0032385750269881253, + "mean_prediction": 0.0020312315250686623, + "calibration_in_the_large": -0.001207343501919463, + "expected_calibration_error_10bin": 0.001207343501919463, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9774885684136475 + }, + { + "valid": 2779, + "positives": 10, + "negatives": 2769, + "auroc": 0.8295413506681112, + "auprc": 0.025907513504567083, + "brier": 0.0035612094926190164, + "calibration": { + "observed_rate": 0.0035984166966534724, + "mean_prediction": 0.0020940234349534426, + "calibration_in_the_large": -0.0015043932617000298, + "expected_calibration_error_10bin": 0.0015043932617000298, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9774885684136475 + }, + { + "valid": 2779, + "positives": 10, + "negatives": 2769, + "auroc": 0.8276273022751895, + "auprc": 0.025020906085636875, + "brier": 0.003561580943563325, + "calibration": { + "observed_rate": 0.0035984166966534724, + "mean_prediction": 0.002248622826850382, + "calibration_in_the_large": -0.0013497938698030904, + "expected_calibration_error_10bin": 0.0013497938698030904, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9774885684136475 + }, + { + "valid": 2779, + "positives": 10, + "negatives": 2769, + "auroc": 0.8277356446370531, + "auprc": 0.025035416486234124, + "brier": 0.0035616140767799607, + "calibration": { + "observed_rate": 0.0035984166966534724, + "mean_prediction": 0.002255585712436988, + "calibration_in_the_large": -0.0013428309842164845, + "expected_calibration_error_10bin": 0.0013428309842164845, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9774885684136475 + } + ], + "reason": null + }, + "K86": { + "time_averaged_auroc": 0.696745372882282, + "time_averaged_auprc": 0.014082875676008614, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2785, + "positives": 1, + "negatives": 2784, + "auroc": 0.5603448275862069, + "auprc": 0.0008163265306122449, + "brier": 0.0003628233606415102, + "calibration": { + "observed_rate": 0.0003590664272890485, + "mean_prediction": 0.0006150910998734832, + "calibration_in_the_large": 0.0002560246725844347, + "expected_calibration_error_10bin": 0.0002560246725844347, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 4, + "negatives": 2781, + "auroc": 0.7748112189859763, + "auprc": 0.009530797425205396, + "brier": 0.0014356994364053306, + "calibration": { + "observed_rate": 0.001436265709156194, + "mean_prediction": 0.0009519707351532007, + "calibration_in_the_large": -0.0004842949740029933, + "expected_calibration_error_10bin": 0.0004842949740029933, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 4, + "negatives": 2781, + "auroc": 0.7721143473570659, + "auprc": 0.009371995248557604, + "brier": 0.0014373774182668587, + "calibration": { + "observed_rate": 0.001436265709156194, + "mean_prediction": 0.0011662416610912323, + "calibration_in_the_large": -0.00027002404806496173, + "expected_calibration_error_10bin": 0.00027002404806496173, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 5, + "negatives": 2780, + "auroc": 0.6771942446043165, + "auprc": 0.007630295414937732, + "brier": 0.0017992933348858341, + "calibration": { + "observed_rate": 0.0017953321364452424, + "mean_prediction": 0.0014400910926553833, + "calibration_in_the_large": -0.00035524104378985917, + "expected_calibration_error_10bin": 0.00035524104378985917, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 5, + "negatives": 2780, + "auroc": 0.6764748201438849, + "auprc": 0.00850019293429391, + "brier": 0.0018009741459804921, + "calibration": { + "observed_rate": 0.0017953321364452424, + "mean_prediction": 0.001647410048173576, + "calibration_in_the_large": -0.00014792208827166644, + "expected_calibration_error_10bin": 0.00014792208827166644, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 6, + "negatives": 2779, + "auroc": 0.7274199352284995, + "auprc": 0.022595339836703976, + "brier": 0.0021462229497959846, + "calibration": { + "observed_rate": 0.0021543985637342907, + "mean_prediction": 0.0018929258787371392, + "calibration_in_the_large": -0.00026147268499715146, + "expected_calibration_error_10bin": 0.00026147268499715146, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 7, + "negatives": 2778, + "auroc": 0.6968013987452433, + "auprc": 0.018244609429817323, + "brier": 0.002506848229123208, + "calibration": { + "observed_rate": 0.0025134649910233393, + "mean_prediction": 0.002078405427536687, + "calibration_in_the_large": -0.00043505956348665253, + "expected_calibration_error_10bin": 0.00043505956348665253, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 7, + "negatives": 2778, + "auroc": 0.6954129383934999, + "auprc": 0.01844351513265508, + "brier": 0.0025095715586145708, + "calibration": { + "observed_rate": 0.0025134649910233393, + "mean_prediction": 0.0022559758128947996, + "calibration_in_the_large": -0.00025748917812853976, + "expected_calibration_error_10bin": 0.0003334970907027051, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 7, + "negatives": 2778, + "auroc": 0.6940759024992287, + "auprc": 0.017950323629514393, + "brier": 0.002513481046701599, + "calibration": { + "observed_rate": 0.0025134649910233393, + "mean_prediction": 0.002419974609954846, + "calibration_in_the_large": -9.349038106849349e-05, + "expected_calibration_error_10bin": 0.0001794015251144894, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 7, + "negatives": 2778, + "auroc": 0.6946415715314204, + "auprc": 0.017752437745134703, + "brier": 0.0025166829655864057, + "calibration": { + "observed_rate": 0.0025134649910233393, + "mean_prediction": 0.002598692909351473, + "calibration_in_the_large": 8.522791832813381e-05, + "expected_calibration_error_10bin": 8.522791832813394e-05, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 7, + "negatives": 2778, + "auroc": 0.6964928520004114, + "auprc": 0.0176972446855703, + "brier": 0.002519396908921215, + "calibration": { + "observed_rate": 0.0025134649910233393, + "mean_prediction": 0.002780313235928603, + "calibration_in_the_large": 0.0002668482449052637, + "expected_calibration_error_10bin": 0.00026684824490526385, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 7, + "negatives": 2778, + "auroc": 0.6962871541705234, + "auprc": 0.017276045176725922, + "brier": 0.0025226805029206377, + "calibration": { + "observed_rate": 0.0025134649910233393, + "mean_prediction": 0.0029025646663713247, + "calibration_in_the_large": 0.0003890996753479854, + "expected_calibration_error_10bin": 0.00038909967534798555, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 7, + "negatives": 2778, + "auroc": 0.6956186362233878, + "auprc": 0.017268260598383368, + "brier": 0.0025233440867739525, + "calibration": { + "observed_rate": 0.0025134649910233393, + "mean_prediction": 0.0029607737115416068, + "calibration_in_the_large": 0.00044730872051826744, + "expected_calibration_error_10bin": 0.00044730872051826717, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + } + ], + "reason": null + }, + "K90": { + "time_averaged_auroc": 0.6327194990747264, + "time_averaged_auprc": 0.001389358185258761, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.6547703180212014, + "auprc": 0.0010224948875255625, + "brier": 0.0003532414910458007, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.00012451462215654988, + "calibration_in_the_large": -0.0002287174513157214, + "expected_calibration_error_10bin": 0.0002287174513157214, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.5978798586572438, + "auprc": 0.000877963125548727, + "brier": 0.00035334111992627693, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.00019034281722501262, + "calibration_in_the_large": -0.00016288925624725865, + "expected_calibration_error_10bin": 0.00016288925624725865, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.6406360424028269, + "auprc": 0.0009823182711198428, + "brier": 0.0003533858607776783, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.00022544181361254525, + "calibration_in_the_large": -0.00012779025985972602, + "expected_calibration_error_10bin": 0.00012779025985972602, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.6392226148409894, + "auprc": 0.0009784735812133072, + "brier": 0.0003534205471164563, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.0002453129018490403, + "calibration_in_the_large": -0.00010791917162323098, + "expected_calibration_error_10bin": 0.00010791917162323098, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.669964664310954, + "auprc": 0.0010695187165775401, + "brier": 0.00035348619293304733, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.00027035174873550844, + "calibration_in_the_large": -8.288032473676284e-05, + "expected_calibration_error_10bin": 8.288032473676284e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.6826855123674912, + "auprc": 0.0011123470522803114, + "brier": 0.0003536064419614626, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.0003116684266316893, + "calibration_in_the_large": -4.156364684058196e-05, + "expected_calibration_error_10bin": 4.156364684058196e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.6851590106007067, + "auprc": 0.0011210762331838565, + "brier": 0.0003537016816209792, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.0003432887561040788, + "calibration_in_the_large": -9.943317368192486e-06, + "expected_calibration_error_10bin": 9.943317368192486e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 2, + "negatives": 2829, + "auroc": 0.5942028985507246, + "auprc": 0.0012792477941619116, + "brier": 0.0007070340423172942, + "calibration": { + "observed_rate": 0.0007064641469445425, + "mean_prediction": 0.00038062666246145837, + "calibration_in_the_large": -0.0003258374844830842, + "expected_calibration_error_10bin": 0.0003258374844830842, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 2, + "negatives": 2829, + "auroc": 0.6032166843407565, + "auprc": 0.0013039083557951482, + "brier": 0.0007071973906540372, + "calibration": { + "observed_rate": 0.0007064641469445425, + "mean_prediction": 0.000411319940028623, + "calibration_in_the_large": -0.0002951442069159195, + "expected_calibration_error_10bin": 0.0002951442069159195, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 3, + "negatives": 2828, + "auroc": 0.5762611975483263, + "auprc": 0.0016043194347069474, + "brier": 0.0010605106210760293, + "calibration": { + "observed_rate": 0.0010596962204168139, + "mean_prediction": 0.0004470639567267816, + "calibration_in_the_large": -0.0006126322636900323, + "expected_calibration_error_10bin": 0.0006126322636900323, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 3, + "negatives": 2828, + "auroc": 0.576968411126827, + "auprc": 0.0016062785510717362, + "brier": 0.0010605265128522687, + "calibration": { + "observed_rate": 0.0010596962204168139, + "mean_prediction": 0.00045331941278326106, + "calibration_in_the_large": -0.0006063768076335528, + "expected_calibration_error_10bin": 0.0006063768076335528, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.6518394057304563, + "auprc": 0.0025490001240796767, + "brier": 0.0014133387703210464, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.00048800052611132274, + "calibration_in_the_large": -0.0009249277677777623, + "expected_calibration_error_10bin": 0.0009249277677777623, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.6525468694729395, + "auprc": 0.0025547102810993265, + "brier": 0.001413371787045261, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0004942870526387141, + "calibration_in_the_large": -0.000918641241250371, + "expected_calibration_error_10bin": 0.000918641241250371, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + } + ], + "reason": null + }, + "K91": { + "time_averaged_auroc": 0.8491125336442628, + "time_averaged_auprc": 0.04464103382400119, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2768, + "positives": 8, + "negatives": 2760, + "auroc": 0.841893115942029, + "auprc": 0.021291727403070053, + "brier": 0.0028721284214374104, + "calibration": { + "observed_rate": 0.002890173410404624, + "mean_prediction": 0.001047298718056434, + "calibration_in_the_large": -0.00184287469234819, + "expected_calibration_error_10bin": 0.00184287469234819, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 13, + "negatives": 2755, + "auroc": 0.8480245707105961, + "auprc": 0.03130011392531287, + "brier": 0.004649769558624795, + "calibration": { + "observed_rate": 0.004696531791907515, + "mean_prediction": 0.0016217054080323715, + "calibration_in_the_large": -0.003074826383875143, + "expected_calibration_error_10bin": 0.003074826383875143, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 14, + "negatives": 2754, + "auroc": 0.8497250752152713, + "auprc": 0.031171903706653098, + "brier": 0.005005726420713581, + "calibration": { + "observed_rate": 0.0050578034682080926, + "mean_prediction": 0.0018800030175319506, + "calibration_in_the_large": -0.003177800450676142, + "expected_calibration_error_10bin": 0.003177800450676142, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 15, + "negatives": 2753, + "auroc": 0.8517011744763289, + "auprc": 0.030885344400206828, + "brier": 0.005361121643947091, + "calibration": { + "observed_rate": 0.00541907514450867, + "mean_prediction": 0.002186352154961562, + "calibration_in_the_large": -0.0032327229895471083, + "expected_calibration_error_10bin": 0.0032327229895471083, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 17, + "negatives": 2751, + "auroc": 0.8680052173541172, + "auprc": 0.04128179134514177, + "brier": 0.006049085829008601, + "calibration": { + "observed_rate": 0.006141618497109827, + "mean_prediction": 0.0025049103433665725, + "calibration_in_the_large": -0.0036367081537432545, + "expected_calibration_error_10bin": 0.0036367081537432545, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 17, + "negatives": 2751, + "auroc": 0.8659952530630572, + "auprc": 0.040497665820294106, + "brier": 0.006045006101767469, + "calibration": { + "observed_rate": 0.006141618497109827, + "mean_prediction": 0.0027383423862887488, + "calibration_in_the_large": -0.0034032761108210782, + "expected_calibration_error_10bin": 0.0034032761108210782, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 20, + "negatives": 2748, + "auroc": 0.8252729257641921, + "auprc": 0.04173925308792325, + "brier": 0.007107002802731154, + "calibration": { + "observed_rate": 0.0072254335260115606, + "mean_prediction": 0.0029986621446939504, + "calibration_in_the_large": -0.00422677138131761, + "expected_calibration_error_10bin": 0.0043022521043713435, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 22, + "negatives": 2746, + "auroc": 0.836439780176124, + "auprc": 0.047729036608856815, + "brier": 0.007804724509971746, + "calibration": { + "observed_rate": 0.007947976878612716, + "mean_prediction": 0.003156426298747421, + "calibration_in_the_large": -0.004791550579865295, + "expected_calibration_error_10bin": 0.004868694634270558, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 22, + "negatives": 2746, + "auroc": 0.83557902403496, + "auprc": 0.047605990614782254, + "brier": 0.007799391029342741, + "calibration": { + "observed_rate": 0.007947976878612716, + "mean_prediction": 0.0033495479359629764, + "calibration_in_the_large": -0.004598428942649739, + "expected_calibration_error_10bin": 0.004680553204147502, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 24, + "negatives": 2744, + "auroc": 0.8469691448007775, + "auprc": 0.05629946703492206, + "brier": 0.008484745399212847, + "calibration": { + "observed_rate": 0.008670520231213872, + "mean_prediction": 0.003502947908500731, + "calibration_in_the_large": -0.005167572322713141, + "expected_calibration_error_10bin": 0.00525392493405058, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 26, + "negatives": 2742, + "auroc": 0.8568282556247545, + "auprc": 0.06339827441285927, + "brier": 0.009172315216646552, + "calibration": { + "observed_rate": 0.00939306358381503, + "mean_prediction": 0.0037151621883422825, + "calibration_in_the_large": -0.005677901395472747, + "expected_calibration_error_10bin": 0.005769727766416923, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 26, + "negatives": 2742, + "auroc": 0.8559726196487685, + "auprc": 0.06355382504358476, + "brier": 0.009166298018401783, + "calibration": { + "observed_rate": 0.00939306358381503, + "mean_prediction": 0.0038952695596858864, + "calibration_in_the_large": -0.005497794024129143, + "expected_calibration_error_10bin": 0.005593530334876459, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 26, + "negatives": 2742, + "auroc": 0.8560567805644392, + "auprc": 0.06357904630840829, + "brier": 0.00916534600377383, + "calibration": { + "observed_rate": 0.00939306358381503, + "mean_prediction": 0.003923414458079401, + "calibration_in_the_large": -0.0054696491257356285, + "expected_calibration_error_10bin": 0.005565888243005888, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + } + ], + "reason": null + }, + "K92": { + "time_averaged_auroc": 0.8489346124169764, + "time_averaged_auprc": 0.11222422528283596, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2751, + "positives": 7, + "negatives": 2744, + "auroc": 0.8473552686380674, + "auprc": 0.02030039387761964, + "brier": 0.0025242830176642516, + "calibration": { + "observed_rate": 0.002544529262086514, + "mean_prediction": 0.002388833304046084, + "calibration_in_the_large": -0.00015569595804043037, + "expected_calibration_error_10bin": 0.00015569595804043037, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 11, + "negatives": 2740, + "auroc": 0.8837425348374254, + "auprc": 0.04146260914307082, + "brier": 0.003927070711547655, + "calibration": { + "observed_rate": 0.003998545983278807, + "mean_prediction": 0.003813496715751186, + "calibration_in_the_large": -0.00018504926752762121, + "expected_calibration_error_10bin": 0.00018504926752762121, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 17, + "negatives": 2734, + "auroc": 0.8752312922242782, + "auprc": 0.12365018940367631, + "brier": 0.005987164977994989, + "calibration": { + "observed_rate": 0.0061795710650672485, + "mean_prediction": 0.004903562313482425, + "calibration_in_the_large": -0.0012760087515848234, + "expected_calibration_error_10bin": 0.0012760087515848234, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 19, + "negatives": 2732, + "auroc": 0.840487015488942, + "auprc": 0.10926677417957235, + "brier": 0.006698503113478546, + "calibration": { + "observed_rate": 0.0069065794256633955, + "mean_prediction": 0.005605335506349029, + "calibration_in_the_large": -0.0013012439193143665, + "expected_calibration_error_10bin": 0.0013012439193143665, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 23, + "negatives": 2728, + "auroc": 0.8600981767180925, + "auprc": 0.13420706403730484, + "brier": 0.008036702277236945, + "calibration": { + "observed_rate": 0.008360596146855689, + "mean_prediction": 0.006219652895774782, + "calibration_in_the_large": -0.002140943251080907, + "expected_calibration_error_10bin": 0.002140943251080907, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 26, + "negatives": 2725, + "auroc": 0.8637826393789697, + "auprc": 0.14313157924710251, + "brier": 0.009041934648465604, + "calibration": { + "observed_rate": 0.009451108687749909, + "mean_prediction": 0.0068064397833878946, + "calibration_in_the_large": -0.0026446689043620143, + "expected_calibration_error_10bin": 0.0026446689043620143, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 29, + "negatives": 2722, + "auroc": 0.8711013706959893, + "auprc": 0.1354331170823192, + "brier": 0.010066887043993444, + "calibration": { + "observed_rate": 0.010541621228644129, + "mean_prediction": 0.007292398154420332, + "calibration_in_the_large": -0.003249223074223797, + "expected_calibration_error_10bin": 0.003249223074223798, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 30, + "negatives": 2721, + "auroc": 0.8751071909837069, + "auprc": 0.11891584220388182, + "brier": 0.01037960010628458, + "calibration": { + "observed_rate": 0.010905125408942203, + "mean_prediction": 0.007854515179034639, + "calibration_in_the_large": -0.003050610229907564, + "expected_calibration_error_10bin": 0.0030506102299075635, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 33, + "negatives": 2718, + "auroc": 0.8563449060137802, + "auprc": 0.13940653656400548, + "brier": 0.011377758087713493, + "calibration": { + "observed_rate": 0.011995637949836423, + "mean_prediction": 0.008299980028598672, + "calibration_in_the_large": -0.0036956579212377508, + "expected_calibration_error_10bin": 0.0036956579212377516, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 35, + "negatives": 2716, + "auroc": 0.834630759520303, + "auprc": 0.12759417837165954, + "brier": 0.012083629822651503, + "calibration": { + "observed_rate": 0.01272264631043257, + "mean_prediction": 0.008689959293361029, + "calibration_in_the_large": -0.0040326870170715404, + "expected_calibration_error_10bin": 0.0040326870170715404, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 36, + "negatives": 2715, + "auroc": 0.8203499079189687, + "auprc": 0.12396039424131117, + "brier": 0.012432407279537615, + "calibration": { + "observed_rate": 0.013086150490730643, + "mean_prediction": 0.009055492835221373, + "calibration_in_the_large": -0.00403065765550927, + "expected_calibration_error_10bin": 0.004030657655509271, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 37, + "negatives": 2714, + "auroc": 0.8039694078750822, + "auprc": 0.12082212769211804, + "brier": 0.01278817175183325, + "calibration": { + "observed_rate": 0.013449654671028717, + "mean_prediction": 0.009364808595356162, + "calibration_in_the_large": -0.004084846075672555, + "expected_calibration_error_10bin": 0.004084846075672555, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 37, + "negatives": 2714, + "auroc": 0.8039494911270888, + "auprc": 0.12076412263322574, + "brier": 0.012785917079387615, + "calibration": { + "observed_rate": 0.013449654671028717, + "mean_prediction": 0.009443010689387039, + "calibration_in_the_large": -0.004006643981641678, + "expected_calibration_error_10bin": 0.0040066439816416775, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + } + ], + "reason": null + }, + "K94": { + "time_averaged_auroc": 0.9017914662904707, + "time_averaged_auprc": 0.12204311441091382, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2823, + "positives": 5, + "negatives": 2818, + "auroc": 0.8449964513839603, + "auprc": 0.00800031296636023, + "brier": 0.00176902339601973, + "calibration": { + "observed_rate": 0.001771165426850868, + "mean_prediction": 0.0004166340136186265, + "calibration_in_the_large": -0.0013545314132322414, + "expected_calibration_error_10bin": 0.0013545314132322414, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 8, + "negatives": 2815, + "auroc": 0.8873001776198934, + "auprc": 0.1420835906280741, + "brier": 0.002806041024591307, + "calibration": { + "observed_rate": 0.0028338646829613886, + "mean_prediction": 0.0005817389627926895, + "calibration_in_the_large": -0.002252125720168699, + "expected_calibration_error_10bin": 0.002252125720168699, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 11, + "negatives": 2812, + "auroc": 0.9095111858269753, + "auprc": 0.14784954168315226, + "brier": 0.003844901691083498, + "calibration": { + "observed_rate": 0.0038965639390719092, + "mean_prediction": 0.0007103162894320482, + "calibration_in_the_large": -0.003186247649639861, + "expected_calibration_error_10bin": 0.003186247649639861, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 12, + "negatives": 2811, + "auroc": 0.9145025495078857, + "auprc": 0.14418496768699127, + "brier": 0.004188329658527694, + "calibration": { + "observed_rate": 0.004250797024442083, + "mean_prediction": 0.0008388420148360009, + "calibration_in_the_large": -0.003411955009606082, + "expected_calibration_error_10bin": 0.003411955009606082, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 13, + "negatives": 2810, + "auroc": 0.9176293457432247, + "auprc": 0.13774275661496602, + "brier": 0.004532523219264968, + "calibration": { + "observed_rate": 0.004605030109812256, + "mean_prediction": 0.000946484709863304, + "calibration_in_the_large": -0.003658545399948952, + "expected_calibration_error_10bin": 0.003658545399948952, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 13, + "negatives": 2810, + "auroc": 0.918286339994525, + "auprc": 0.1391433735094085, + "brier": 0.004524516295643242, + "calibration": { + "observed_rate": 0.004605030109812256, + "mean_prediction": 0.001069796716103707, + "calibration_in_the_large": -0.003535233393708549, + "expected_calibration_error_10bin": 0.003535233393708549, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 14, + "negatives": 2809, + "auroc": 0.9055586634796318, + "auprc": 0.12810504150066634, + "brier": 0.004874305108587261, + "calibration": { + "observed_rate": 0.00495926319518243, + "mean_prediction": 0.0011598960150435709, + "calibration_in_the_large": -0.0037993671801388592, + "expected_calibration_error_10bin": 0.0037993671801388592, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 14, + "negatives": 2809, + "auroc": 0.9048212378579057, + "auprc": 0.12608888091736536, + "brier": 0.004872646018362914, + "calibration": { + "observed_rate": 0.00495926319518243, + "mean_prediction": 0.0012067103316134638, + "calibration_in_the_large": -0.0037525528635689665, + "expected_calibration_error_10bin": 0.0037525528635689665, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 14, + "negatives": 2809, + "auroc": 0.9041855261150384, + "auprc": 0.12540175775702045, + "brier": 0.004867693231729358, + "calibration": { + "observed_rate": 0.00495926319518243, + "mean_prediction": 0.0013001872126293965, + "calibration_in_the_large": -0.003659075982553034, + "expected_calibration_error_10bin": 0.003659075982553034, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 14, + "negatives": 2809, + "auroc": 0.9042109545847531, + "auprc": 0.12487778579506002, + "brier": 0.004865246759887326, + "calibration": { + "observed_rate": 0.00495926319518243, + "mean_prediction": 0.0013558417962942332, + "calibration_in_the_large": -0.003603421398888197, + "expected_calibration_error_10bin": 0.003603421398888197, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 14, + "negatives": 2809, + "auroc": 0.9039058129481767, + "auprc": 0.1246186592871328, + "brier": 0.004862642451729221, + "calibration": { + "observed_rate": 0.00495926319518243, + "mean_prediction": 0.001416587112875757, + "calibration_in_the_large": -0.0035426760823066734, + "expected_calibration_error_10bin": 0.0035426760823066734, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 15, + "negatives": 2808, + "auroc": 0.9042022792022792, + "auprc": 0.11923298586171847, + "brier": 0.005210682501709949, + "calibration": { + "observed_rate": 0.005313496280552604, + "mean_prediction": 0.0014992659728093893, + "calibration_in_the_large": -0.0038142303077432146, + "expected_calibration_error_10bin": 0.0038142303077432146, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 15, + "negatives": 2808, + "auroc": 0.9041785375118708, + "auprc": 0.11923083313396401, + "brier": 0.005210631314887315, + "calibration": { + "observed_rate": 0.005313496280552604, + "mean_prediction": 0.0015018121064582781, + "calibration_in_the_large": -0.003811684174094326, + "expected_calibration_error_10bin": 0.003811684174094326, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + } + ], + "reason": null + }, + "L02": { + "time_averaged_auroc": 0.7679363116117746, + "time_averaged_auprc": 0.01645874699708276, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2807, + "positives": 3, + "negatives": 2804, + "auroc": 0.6937708036138849, + "auprc": 0.002403600224713009, + "brier": 0.0010694924057276136, + "calibration": { + "observed_rate": 0.0010687566797292483, + "mean_prediction": 0.0011013108910818035, + "calibration_in_the_large": 3.255421135255521e-05, + "expected_calibration_error_10bin": 3.255421135255521e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 9, + "negatives": 2798, + "auroc": 0.8096656341831467, + "auprc": 0.012612913854859407, + "brier": 0.003189227834641964, + "calibration": { + "observed_rate": 0.003206270039187745, + "mean_prediction": 0.001827746159981527, + "calibration_in_the_large": -0.0013785238792062178, + "expected_calibration_error_10bin": 0.0013785238792062178, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 10, + "negatives": 2797, + "auroc": 0.8143725420092957, + "auprc": 0.014376617509898052, + "brier": 0.00353930594460999, + "calibration": { + "observed_rate": 0.003562522265764161, + "mean_prediction": 0.002447519021701689, + "calibration_in_the_large": -0.0011150032440624719, + "expected_calibration_error_10bin": 0.0011150032440624719, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 11, + "negatives": 2796, + "auroc": 0.7905449343217583, + "auprc": 0.01322327359705045, + "brier": 0.0038971971084394994, + "calibration": { + "observed_rate": 0.003918774492340577, + "mean_prediction": 0.0031358503260722984, + "calibration_in_the_large": -0.0007829241662682786, + "expected_calibration_error_10bin": 0.0007829241662682786, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 13, + "negatives": 2794, + "auroc": 0.7855844942459116, + "auprc": 0.017721795633876707, + "brier": 0.004593749775313219, + "calibration": { + "observed_rate": 0.004631278945493409, + "mean_prediction": 0.003434296702572679, + "calibration_in_the_large": -0.00119698224292073, + "expected_calibration_error_10bin": 0.00119698224292073, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 15, + "negatives": 2792, + "auroc": 0.7745940783190067, + "auprc": 0.01813173370663408, + "brier": 0.005300344648605801, + "calibration": { + "observed_rate": 0.005343783398646241, + "mean_prediction": 0.003733463501595656, + "calibration_in_the_large": -0.0016103198970505855, + "expected_calibration_error_10bin": 0.0016103198970505855, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 15, + "negatives": 2792, + "auroc": 0.7758118433619866, + "auprc": 0.0181453621334629, + "brier": 0.005300693554835174, + "calibration": { + "observed_rate": 0.005343783398646241, + "mean_prediction": 0.004030982986302256, + "calibration_in_the_large": -0.0013128004123439856, + "expected_calibration_error_10bin": 0.0013128004123439856, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 16, + "negatives": 2791, + "auroc": 0.752866356144751, + "auprc": 0.017695163236311408, + "brier": 0.005656691654896735, + "calibration": { + "observed_rate": 0.0057000356252226575, + "mean_prediction": 0.0043229105036282625, + "calibration_in_the_large": -0.001377125121594395, + "expected_calibration_error_10bin": 0.0014490578946374881, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 17, + "negatives": 2790, + "auroc": 0.7559983133038162, + "auprc": 0.018013869760653712, + "brier": 0.006009119039490285, + "calibration": { + "observed_rate": 0.006056287851799074, + "mean_prediction": 0.0045337371653781395, + "calibration_in_the_large": -0.001522550686420934, + "expected_calibration_error_10bin": 0.0015971970049785734, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 17, + "negatives": 2790, + "auroc": 0.7561248155176049, + "auprc": 0.017936824073984406, + "brier": 0.006011068261969035, + "calibration": { + "observed_rate": 0.006056287851799074, + "mean_prediction": 0.004888532111145804, + "calibration_in_the_large": -0.00116775574065327, + "expected_calibration_error_10bin": 0.0012486701660445244, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 19, + "negatives": 2788, + "auroc": 0.7724835762289511, + "auprc": 0.021194567090128975, + "brier": 0.006706205353455996, + "calibration": { + "observed_rate": 0.006768792304951906, + "mean_prediction": 0.005070935183494691, + "calibration_in_the_large": -0.0016978571214572146, + "expected_calibration_error_10bin": 0.0017878984735739839, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 22, + "negatives": 2785, + "auroc": 0.7506773298514771, + "auprc": 0.021259711257010566, + "brier": 0.007765330488863931, + "calibration": { + "observed_rate": 0.007837548984681154, + "mean_prediction": 0.005265161697713374, + "calibration_in_the_large": -0.00257238728696778, + "expected_calibration_error_10bin": 0.002664956241252769, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 22, + "negatives": 2785, + "auroc": 0.7506773298514771, + "auprc": 0.021248278883492233, + "brier": 0.00776542971699038, + "calibration": { + "observed_rate": 0.007837548984681154, + "mean_prediction": 0.005276573713501652, + "calibration_in_the_large": -0.0025609752711795017, + "expected_calibration_error_10bin": 0.0026538966934013014, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + } + ], + "reason": null + }, + "L03": { + "time_averaged_auroc": 0.7010116858007283, + "time_averaged_auprc": 0.05326279399894507, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2701, + "positives": 7, + "negatives": 2694, + "auroc": 0.5012196415314455, + "auprc": 0.0034690525129783155, + "brier": 0.00259278344975279, + "calibration": { + "observed_rate": 0.00259163272861903, + "mean_prediction": 0.002094398762243655, + "calibration_in_the_large": -0.0004972339663753753, + "expected_calibration_error_10bin": 0.0004972339663753753, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9500527611677805 + }, + { + "valid": 2701, + "positives": 11, + "negatives": 2690, + "auroc": 0.6499155119972964, + "auprc": 0.008590540455537423, + "brier": 0.004063552632445131, + "calibration": { + "observed_rate": 0.004072565716401333, + "mean_prediction": 0.0037484306174324963, + "calibration_in_the_large": -0.0003241350989688363, + "expected_calibration_error_10bin": 0.0003241350989688363, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9500527611677805 + }, + { + "valid": 2701, + "positives": 21, + "negatives": 2680, + "auroc": 0.6726901208244492, + "auprc": 0.01684685345261059, + "brier": 0.007709767262122312, + "calibration": { + "observed_rate": 0.00777489818585709, + "mean_prediction": 0.004927310418848253, + "calibration_in_the_large": -0.002847587767008837, + "expected_calibration_error_10bin": 0.002847587767008837, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9500527611677805 + }, + { + "valid": 2701, + "positives": 25, + "negatives": 2676, + "auroc": 0.7210014947683109, + "auprc": 0.05781068998498105, + "brier": 0.009077246274663527, + "calibration": { + "observed_rate": 0.009255831173639394, + "mean_prediction": 0.006027895803956915, + "calibration_in_the_large": -0.0032279353696824786, + "expected_calibration_error_10bin": 0.0032279353696824786, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9500527611677805 + }, + { + "valid": 2701, + "positives": 27, + "negatives": 2674, + "auroc": 0.693717277486911, + "auprc": 0.06094712351471346, + "brier": 0.009801875708348064, + "calibration": { + "observed_rate": 0.009996297667530544, + "mean_prediction": 0.006933349361488786, + "calibration_in_the_large": -0.003062948306041758, + "expected_calibration_error_10bin": 0.0031503357438198228, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9500527611677805 + }, + { + "valid": 2701, + "positives": 31, + "negatives": 2670, + "auroc": 0.7122387338407635, + "auprc": 0.06220849407367732, + "brier": 0.011219172460959718, + "calibration": { + "observed_rate": 0.011477230655312847, + "mean_prediction": 0.00767608707544232, + "calibration_in_the_large": -0.0038011435798705273, + "expected_calibration_error_10bin": 0.003899189777977143, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9500527611677805 + }, + { + "valid": 2701, + "positives": 35, + "negatives": 2666, + "auroc": 0.7225056264066017, + "auprc": 0.062183521599439996, + "brier": 0.012644716830201151, + "calibration": { + "observed_rate": 0.01295816364309515, + "mean_prediction": 0.008296520276944452, + "calibration_in_the_large": -0.004661643366150698, + "expected_calibration_error_10bin": 0.00476836880379802, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9500527611677805 + }, + { + "valid": 2701, + "positives": 36, + "negatives": 2665, + "auroc": 0.7210444027517198, + "auprc": 0.06162373072386608, + "brier": 0.012997687459283471, + "calibration": { + "observed_rate": 0.013328396890040726, + "mean_prediction": 0.00901510624813203, + "calibration_in_the_large": -0.0043132906419086955, + "expected_calibration_error_10bin": 0.004313290641908695, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9500527611677805 + }, + { + "valid": 2701, + "positives": 41, + "negatives": 2660, + "auroc": 0.7362094260040345, + "auprc": 0.07225565746156537, + "brier": 0.01473718100844149, + "calibration": { + "observed_rate": 0.015179563124768604, + "mean_prediction": 0.009738695255649618, + "calibration_in_the_large": -0.005440867869118985, + "expected_calibration_error_10bin": 0.005440867869118985, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9500527611677805 + }, + { + "valid": 2701, + "positives": 43, + "negatives": 2658, + "auroc": 0.7424361733774302, + "auprc": 0.07452485084738988, + "brier": 0.01542522503796576, + "calibration": { + "observed_rate": 0.015920029618659754, + "mean_prediction": 0.01014104311868802, + "calibration_in_the_large": -0.005778986499971734, + "expected_calibration_error_10bin": 0.005778986499971735, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9500527611677805 + }, + { + "valid": 2701, + "positives": 46, + "negatives": 2655, + "auroc": 0.740096618357488, + "auprc": 0.06910988038516852, + "brier": 0.016501777693745116, + "calibration": { + "observed_rate": 0.017030729359496483, + "mean_prediction": 0.010799418077091045, + "calibration_in_the_large": -0.006231311282405437, + "expected_calibration_error_10bin": 0.006231311282405439, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9500527611677805 + }, + { + "valid": 2701, + "positives": 48, + "negatives": 2653, + "auroc": 0.7472515391380826, + "auprc": 0.0708471530102574, + "brier": 0.017194403958988618, + "calibration": { + "observed_rate": 0.017771195853387635, + "mean_prediction": 0.011101406002748436, + "calibration_in_the_large": -0.006669789850639199, + "expected_calibration_error_10bin": 0.0066697898506391995, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9500527611677805 + }, + { + "valid": 2701, + "positives": 50, + "negatives": 2651, + "auroc": 0.752825348924934, + "auprc": 0.07199877396410045, + "brier": 0.0178978096981159, + "calibration": { + "observed_rate": 0.018511662347278787, + "mean_prediction": 0.011199855031934386, + "calibration_in_the_large": -0.007311807315344402, + "expected_calibration_error_10bin": 0.007311807315344402, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9500527611677805 + } + ], + "reason": null + }, + "L08": { + "time_averaged_auroc": 0.6802445563362837, + "time_averaged_auprc": 0.004408441387990186, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2830, + "positives": 3, + "negatives": 2827, + "auroc": 0.6878905789411626, + "auprc": 0.004111322674858198, + "brier": 0.0010593867729221367, + "calibration": { + "observed_rate": 0.0010600706713780918, + "mean_prediction": 0.000287972011929211, + "calibration_in_the_large": -0.0007720986594488808, + "expected_calibration_error_10bin": 0.0007720986594488808, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9954273654590221 + }, + { + "valid": 2830, + "positives": 3, + "negatives": 2827, + "auroc": 0.6917816295248201, + "auprc": 0.0037503805625502336, + "brier": 0.0010594045326400086, + "calibration": { + "observed_rate": 0.0010600706713780918, + "mean_prediction": 0.00044761782109971663, + "calibration_in_the_large": -0.0006124528502783751, + "expected_calibration_error_10bin": 0.0006124528502783751, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9954273654590221 + }, + { + "valid": 2830, + "positives": 4, + "negatives": 2826, + "auroc": 0.742657466383581, + "auprc": 0.004766596156184411, + "brier": 0.001412174863451378, + "calibration": { + "observed_rate": 0.0014134275618374558, + "mean_prediction": 0.0005219821307093954, + "calibration_in_the_large": -0.0008914454311280604, + "expected_calibration_error_10bin": 0.0008914454311280604, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9954273654590221 + }, + { + "valid": 2830, + "positives": 5, + "negatives": 2825, + "auroc": 0.6637168141592921, + "auprc": 0.004454720749220028, + "brier": 0.0017654038494525125, + "calibration": { + "observed_rate": 0.0017667844522968198, + "mean_prediction": 0.0006689169573271934, + "calibration_in_the_large": -0.0010978674949696263, + "expected_calibration_error_10bin": 0.0010978674949696263, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9954273654590221 + }, + { + "valid": 2830, + "positives": 5, + "negatives": 2825, + "auroc": 0.6650619469026549, + "auprc": 0.004468575899644602, + "brier": 0.001765498253886667, + "calibration": { + "observed_rate": 0.0017667844522968198, + "mean_prediction": 0.000753063965990072, + "calibration_in_the_large": -0.0010137204863067478, + "expected_calibration_error_10bin": 0.0010137204863067478, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9954273654590221 + }, + { + "valid": 2830, + "positives": 5, + "negatives": 2825, + "auroc": 0.6694513274336283, + "auprc": 0.004569267782236664, + "brier": 0.0017656463361067033, + "calibration": { + "observed_rate": 0.0017667844522968198, + "mean_prediction": 0.0008491161517491176, + "calibration_in_the_large": -0.0009176683005477021, + "expected_calibration_error_10bin": 0.0009176683005477021, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9954273654590221 + }, + { + "valid": 2830, + "positives": 5, + "negatives": 2825, + "auroc": 0.6739115044247788, + "auprc": 0.004628605580881661, + "brier": 0.001766112281984891, + "calibration": { + "observed_rate": 0.0017667844522968198, + "mean_prediction": 0.0009726865201909447, + "calibration_in_the_large": -0.000794097932105875, + "expected_calibration_error_10bin": 0.000794097932105875, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9954273654590221 + }, + { + "valid": 2830, + "positives": 5, + "negatives": 2825, + "auroc": 0.6683185840707965, + "auprc": 0.004410666520947786, + "brier": 0.0017672934463277277, + "calibration": { + "observed_rate": 0.0017667844522968198, + "mean_prediction": 0.0011252578793942555, + "calibration_in_the_large": -0.0006415265729025643, + "expected_calibration_error_10bin": 0.0006415265729025643, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9954273654590221 + }, + { + "valid": 2830, + "positives": 5, + "negatives": 2825, + "auroc": 0.6692389380530973, + "auprc": 0.004443949513844471, + "brier": 0.001767616695597363, + "calibration": { + "observed_rate": 0.0017667844522968198, + "mean_prediction": 0.0011786212580856838, + "calibration_in_the_large": -0.0005881631942111359, + "expected_calibration_error_10bin": 0.0005881631942111359, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9954273654590221 + }, + { + "valid": 2830, + "positives": 5, + "negatives": 2825, + "auroc": 0.6754690265486726, + "auprc": 0.004419665476144434, + "brier": 0.0017682959268082844, + "calibration": { + "observed_rate": 0.0017667844522968198, + "mean_prediction": 0.001267834271556474, + "calibration_in_the_large": -0.0004989501807403458, + "expected_calibration_error_10bin": 0.0004989501807403458, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9954273654590221 + }, + { + "valid": 2830, + "positives": 5, + "negatives": 2825, + "auroc": 0.6778053097345133, + "auprc": 0.0044278719118286515, + "brier": 0.0017685162650879886, + "calibration": { + "observed_rate": 0.0017667844522968198, + "mean_prediction": 0.0013159421647448361, + "calibration_in_the_large": -0.00045084228755198365, + "expected_calibration_error_10bin": 0.00045084228755198365, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9954273654590221 + }, + { + "valid": 2830, + "positives": 5, + "negatives": 2825, + "auroc": 0.6789380530973451, + "auprc": 0.004436848838879536, + "brier": 0.0017687212784915423, + "calibration": { + "observed_rate": 0.0017667844522968198, + "mean_prediction": 0.0013555330149933385, + "calibration_in_the_large": -0.00041125143730348125, + "expected_calibration_error_10bin": 0.00041125143730348125, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9954273654590221 + }, + { + "valid": 2830, + "positives": 5, + "negatives": 2825, + "auroc": 0.6789380530973451, + "auprc": 0.004421266376651736, + "brier": 0.001768749542100461, + "calibration": { + "observed_rate": 0.0017667844522968198, + "mean_prediction": 0.0013590262458761933, + "calibration_in_the_large": -0.0004077582064206265, + "expected_calibration_error_10bin": 0.0004077582064206265, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9954273654590221 + } + ], + "reason": null + }, + "L27": { + "time_averaged_auroc": 0.7363330188207299, + "time_averaged_auprc": 0.013416013738222364, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2818, + "positives": 3, + "negatives": 2815, + "auroc": 0.6927175843694494, + "auprc": 0.006171089265196755, + "brier": 0.0010647528887519934, + "calibration": { + "observed_rate": 0.0010645848119233499, + "mean_prediction": 0.0006046335735845464, + "calibration_in_the_large": -0.00045995123833880345, + "expected_calibration_error_10bin": 0.00045995123833880345, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.7485247067188056, + "auprc": 0.007638278969871133, + "brier": 0.0017751065893418635, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.0011655113241224658, + "calibration_in_the_large": -0.000608796695749784, + "expected_calibration_error_10bin": 0.000608796695749784, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.7405616779239247, + "auprc": 0.00734531833891011, + "brier": 0.0017875176447336553, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.0017275679942550248, + "calibration_in_the_large": -4.67400256172249e-05, + "expected_calibration_error_10bin": 4.67400256172249e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 7, + "negatives": 2811, + "auroc": 0.6867916857244498, + "auprc": 0.0067786708651656645, + "brier": 0.0025095019595497503, + "calibration": { + "observed_rate": 0.00248403122782115, + "mean_prediction": 0.0020460429929054676, + "calibration_in_the_large": -0.0004379882349156822, + "expected_calibration_error_10bin": 0.0005913909567806273, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 7, + "negatives": 2811, + "auroc": 0.6857752706205215, + "auprc": 0.006714734791072152, + "brier": 0.002513108073036098, + "calibration": { + "observed_rate": 0.00248403122782115, + "mean_prediction": 0.002200735982649031, + "calibration_in_the_large": -0.00028329524517211897, + "expected_calibration_error_10bin": 0.0004472675277679191, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 7, + "negatives": 2811, + "auroc": 0.6843522894750216, + "auprc": 0.006638921738352578, + "brier": 0.002516808084194165, + "calibration": { + "observed_rate": 0.00248403122782115, + "mean_prediction": 0.0023374105137006947, + "calibration_in_the_large": -0.00014662071412045513, + "expected_calibration_error_10bin": 0.000319714241781678, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 8, + "negatives": 2810, + "auroc": 0.7115213523131673, + "auprc": 0.007999985579300865, + "brier": 0.0028703411197022206, + "calibration": { + "observed_rate": 0.0028388928317956, + "mean_prediction": 0.0024220507721285345, + "calibration_in_the_large": -0.0004168420596670653, + "expected_calibration_error_10bin": 0.0005963426689014955, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 9, + "negatives": 2809, + "auroc": 0.7409517028598552, + "auprc": 0.01883484180241021, + "brier": 0.0031867053539847735, + "calibration": { + "observed_rate": 0.00319375443577005, + "mean_prediction": 0.002615308646266813, + "calibration_in_the_large": -0.000578445789503237, + "expected_calibration_error_10bin": 0.0008455681666020706, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 10, + "negatives": 2808, + "auroc": 0.7596153846153846, + "auprc": 0.02005430397389446, + "brier": 0.003547811196180365, + "calibration": { + "observed_rate": 0.0035486160397444995, + "mean_prediction": 0.002829018082105403, + "calibration_in_the_large": -0.0007195979576390963, + "expected_calibration_error_10bin": 0.001119841983978853, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 11, + "negatives": 2807, + "auroc": 0.7716423227645173, + "auprc": 0.02049721001556014, + "brier": 0.0038999311685807623, + "calibration": { + "observed_rate": 0.0039034776437189495, + "mean_prediction": 0.002863444486152379, + "calibration_in_the_large": -0.0010400331575665706, + "expected_calibration_error_10bin": 0.0014446150081687255, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 12, + "negatives": 2806, + "auroc": 0.7842124019957234, + "auprc": 0.021921917736012164, + "brier": 0.004253676455665125, + "calibration": { + "observed_rate": 0.0042583392476933995, + "mean_prediction": 0.002979283330428702, + "calibration_in_the_large": -0.0012790559172646977, + "expected_calibration_error_10bin": 0.0017024434351700858, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 12, + "negatives": 2806, + "auroc": 0.782816583511523, + "auprc": 0.021911718285194, + "brier": 0.0042553784919912956, + "calibration": { + "observed_rate": 0.0042583392476933995, + "mean_prediction": 0.0030639003552056883, + "calibration_in_the_large": -0.0011944388924877113, + "expected_calibration_error_10bin": 0.0016258098687821267, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 12, + "negatives": 2806, + "auroc": 0.7828462817771442, + "auprc": 0.02190118723595051, + "brier": 0.004255595768153331, + "calibration": { + "observed_rate": 0.0042583392476933995, + "mean_prediction": 0.0030720564271415405, + "calibration_in_the_large": -0.001186282820551859, + "expected_calibration_error_10bin": 0.0016186277236280363, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + } + ], + "reason": null + }, + "L29": { + "time_averaged_auroc": 0.753847997262828, + "time_averaged_auprc": 0.002934194913252575, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2817, + "positives": 2, + "negatives": 2815, + "auroc": 0.6236234458259325, + "auprc": 0.0013818534251035443, + "brier": 0.0007120077529278048, + "calibration": { + "observed_rate": 0.0007099751508697196, + "mean_prediction": 0.0006860888252575596, + "calibration_in_the_large": -2.3886325612159937e-05, + "expected_calibration_error_10bin": 2.3886325612159937e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 2, + "negatives": 2815, + "auroc": 0.6538188277087034, + "auprc": 0.0014929575939393613, + "brier": 0.000715708859682597, + "calibration": { + "observed_rate": 0.0007099751508697196, + "mean_prediction": 0.001007233064764086, + "calibration_in_the_large": 0.0002972579138943664, + "expected_calibration_error_10bin": 0.0002972579138943664, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 2, + "negatives": 2815, + "auroc": 0.7044404973357016, + "auprc": 0.0017502626127474281, + "brier": 0.0007227675092460154, + "calibration": { + "observed_rate": 0.0007099751508697196, + "mean_prediction": 0.001401663705433473, + "calibration_in_the_large": 0.0006916885545637534, + "expected_calibration_error_10bin": 0.0006916885545637534, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 3, + "negatives": 2814, + "auroc": 0.7828713574982231, + "auprc": 0.0032691331381721495, + "brier": 0.0010848355374668362, + "calibration": { + "observed_rate": 0.0010649627263045794, + "mean_prediction": 0.0017638795077743927, + "calibration_in_the_large": 0.0006989167814698133, + "expected_calibration_error_10bin": 0.0006989167814698133, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 3, + "negatives": 2814, + "auroc": 0.7835820895522388, + "auprc": 0.0032382107520883487, + "brier": 0.0010886343886314918, + "calibration": { + "observed_rate": 0.0010649627263045794, + "mean_prediction": 0.002039321837956071, + "calibration_in_the_large": 0.0009743591116514916, + "expected_calibration_error_10bin": 0.0009743591116514916, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 3, + "negatives": 2814, + "auroc": 0.7757640369580668, + "auprc": 0.0031544611052508873, + "brier": 0.001093650942752574, + "calibration": { + "observed_rate": 0.0010649627263045794, + "mean_prediction": 0.0022795557580992166, + "calibration_in_the_large": 0.0012145930317946372, + "expected_calibration_error_10bin": 0.0012145930317946372, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 3, + "negatives": 2814, + "auroc": 0.7768301350390903, + "auprc": 0.0031472395037027887, + "brier": 0.0011002794676052555, + "calibration": { + "observed_rate": 0.0010649627263045794, + "mean_prediction": 0.002545273281983637, + "calibration_in_the_large": 0.0014803105556790578, + "expected_calibration_error_10bin": 0.0014803105556790578, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 3, + "negatives": 2814, + "auroc": 0.7769485903814262, + "auprc": 0.0031506854275169366, + "brier": 0.0011076840037586013, + "calibration": { + "observed_rate": 0.0010649627263045794, + "mean_prediction": 0.0028012971095638306, + "calibration_in_the_large": 0.0017363343832592511, + "expected_calibration_error_10bin": 0.0017363343832592511, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 3, + "negatives": 2814, + "auroc": 0.7819237147595357, + "auprc": 0.003189396796822479, + "brier": 0.0011116725599541848, + "calibration": { + "observed_rate": 0.0010649627263045794, + "mean_prediction": 0.0029377104798931496, + "calibration_in_the_large": 0.0018727477535885701, + "expected_calibration_error_10bin": 0.0018727477535885701, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 3, + "negatives": 2814, + "auroc": 0.7806207059938404, + "auprc": 0.003165735446010861, + "brier": 0.0011189006183097109, + "calibration": { + "observed_rate": 0.0010649627263045794, + "mean_prediction": 0.0031130117895979653, + "calibration_in_the_large": 0.002048049063293386, + "expected_calibration_error_10bin": 0.0020480490632933863, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 3, + "negatives": 2814, + "auroc": 0.7769485903814262, + "auprc": 0.003111003446924042, + "brier": 0.001123902327590814, + "calibration": { + "observed_rate": 0.0010649627263045794, + "mean_prediction": 0.0032853127856017975, + "calibration_in_the_large": 0.002220350059297218, + "expected_calibration_error_10bin": 0.002220350059297218, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 4, + "negatives": 2813, + "auroc": 0.7909704941343761, + "auprc": 0.004042118505201765, + "brier": 0.0014806908539328775, + "calibration": { + "observed_rate": 0.0014199503017394391, + "mean_prediction": 0.0034287799402553092, + "calibration_in_the_large": 0.00200882963851587, + "expected_calibration_error_10bin": 0.00200882963851587, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 4, + "negatives": 2813, + "auroc": 0.7916814788482047, + "auprc": 0.004051476118802892, + "brier": 0.0014819306729203696, + "calibration": { + "observed_rate": 0.0014199503017394391, + "mean_prediction": 0.0034793351276719083, + "calibration_in_the_large": 0.002059384825932469, + "expected_calibration_error_10bin": 0.00205938482593247, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + } + ], + "reason": null + }, + "L30": { + "time_averaged_auroc": 0.7673745863749897, + "time_averaged_auprc": 0.06489764979266005, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2816, + "positives": 1, + "negatives": 2815, + "auroc": 0.9985790408525755, + "auprc": 0.2, + "brier": 0.0003521270734795157, + "calibration": { + "observed_rate": 0.0003551136363636364, + "mean_prediction": 0.00038896748498034646, + "calibration_in_the_large": 3.385384861671008e-05, + "expected_calibration_error_10bin": 3.385384861671008e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 2, + "negatives": 2814, + "auroc": 0.8823738450604123, + "auprc": 0.10151515151515152, + "brier": 0.000705089349506927, + "calibration": { + "observed_rate": 0.0007102272727272727, + "mean_prediction": 0.0006130075290619546, + "calibration_in_the_large": -9.721974366531819e-05, + "expected_calibration_error_10bin": 9.721974366531819e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 3, + "negatives": 2813, + "auroc": 0.8409764190069914, + "auprc": 0.16913509355065504, + "brier": 0.0010563846460052938, + "calibration": { + "observed_rate": 0.001065340909090909, + "mean_prediction": 0.0008612454926390259, + "calibration_in_the_large": -0.00020409541645188313, + "expected_calibration_error_10bin": 0.00020409541645188313, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 5, + "negatives": 2811, + "auroc": 0.7267164710067592, + "auprc": 0.04614443432890591, + "brier": 0.0017609134987867606, + "calibration": { + "observed_rate": 0.0017755681818181818, + "mean_prediction": 0.0010194180288391021, + "calibration_in_the_large": -0.0007561501529790796, + "expected_calibration_error_10bin": 0.0007561501529790796, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 6, + "negatives": 2810, + "auroc": 0.7239620403321471, + "auprc": 0.03962148001141525, + "brier": 0.002113030792859676, + "calibration": { + "observed_rate": 0.002130681818181818, + "mean_prediction": 0.001147430044081526, + "calibration_in_the_large": -0.000983251774100292, + "expected_calibration_error_10bin": 0.000983251774100292, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 7, + "negatives": 2809, + "auroc": 0.7000457712454864, + "auprc": 0.034579943190343715, + "brier": 0.002466243798469929, + "calibration": { + "observed_rate": 0.0024857954545454545, + "mean_prediction": 0.0014137655470841568, + "calibration_in_the_large": -0.0010720299074612977, + "expected_calibration_error_10bin": 0.0010720299074612977, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 7, + "negatives": 2809, + "auroc": 0.699588058790622, + "auprc": 0.03451406106474798, + "brier": 0.002465911525259776, + "calibration": { + "observed_rate": 0.0024857954545454545, + "mean_prediction": 0.0015613559258331542, + "calibration_in_the_large": -0.0009244395287123003, + "expected_calibration_error_10bin": 0.0009244395287123003, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 7, + "negatives": 2809, + "auroc": 0.7019274780043737, + "auprc": 0.03463476065125407, + "brier": 0.0024653302125311567, + "calibration": { + "observed_rate": 0.0024857954545454545, + "mean_prediction": 0.0016818653712777506, + "calibration_in_the_large": -0.0008039300832677039, + "expected_calibration_error_10bin": 0.0008039300832677039, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 8, + "negatives": 2808, + "auroc": 0.7391826923076923, + "auprc": 0.03681508289321508, + "brier": 0.002810553455611419, + "calibration": { + "observed_rate": 0.002840909090909091, + "mean_prediction": 0.0018728022340596825, + "calibration_in_the_large": -0.0009681068568494085, + "expected_calibration_error_10bin": 0.0009681068568494085, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 8, + "negatives": 2808, + "auroc": 0.7391381766381766, + "auprc": 0.03675690907571376, + "brier": 0.0028097249154337674, + "calibration": { + "observed_rate": 0.002840909090909091, + "mean_prediction": 0.002071690236601627, + "calibration_in_the_large": -0.0007692188543074641, + "expected_calibration_error_10bin": 0.0007692188543074641, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 8, + "negatives": 2808, + "auroc": 0.7406962250712251, + "auprc": 0.03685996682667298, + "brier": 0.002809730822129426, + "calibration": { + "observed_rate": 0.002840909090909091, + "mean_prediction": 0.0021490244066403623, + "calibration_in_the_large": -0.0006918846842687287, + "expected_calibration_error_10bin": 0.0006918846842687287, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 8, + "negatives": 2808, + "auroc": 0.7413194444444444, + "auprc": 0.036546462132715944, + "brier": 0.0028103175131416417, + "calibration": { + "observed_rate": 0.002840909090909091, + "mean_prediction": 0.0022998168467146226, + "calibration_in_the_large": -0.0005410922441944684, + "expected_calibration_error_10bin": 0.0005410922441944684, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 8, + "negatives": 2808, + "auroc": 0.7413639601139601, + "auprc": 0.036546102063789256, + "brier": 0.0028103280511800614, + "calibration": { + "observed_rate": 0.002840909090909091, + "mean_prediction": 0.002306115643061026, + "calibration_in_the_large": -0.000534793447848065, + "expected_calibration_error_10bin": 0.000534793447848065, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + } + ], + "reason": null + }, + "L50": { + "time_averaged_auroc": 0.8300178462309701, + "time_averaged_auprc": 0.009248130382892713, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2835, + "positives": 1, + "negatives": 2834, + "auroc": 0.7985179957657021, + "auprc": 0.0017482517482517483, + "brier": 0.0003528500435310945, + "calibration": { + "observed_rate": 0.0003527336860670194, + "mean_prediction": 0.00016710709122588405, + "calibration_in_the_large": -0.00018562659484113537, + "expected_calibration_error_10bin": 0.00018562659484113537, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.997186071051706 + }, + { + "valid": 2835, + "positives": 2, + "negatives": 2833, + "auroc": 0.8725732439110484, + "auprc": 0.010119940029985007, + "brier": 0.0007043517901771816, + "calibration": { + "observed_rate": 0.0007054673721340388, + "mean_prediction": 0.00033627124819155923, + "calibration_in_the_large": -0.0003691961239424796, + "expected_calibration_error_10bin": 0.0003691961239424796, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.997186071051706 + }, + { + "valid": 2835, + "positives": 2, + "negatives": 2833, + "auroc": 0.8672785033533357, + "auprc": 0.011620512227553911, + "brier": 0.0007042844230688383, + "calibration": { + "observed_rate": 0.0007054673721340388, + "mean_prediction": 0.0005722953434851212, + "calibration_in_the_large": -0.00013317202864891763, + "expected_calibration_error_10bin": 0.00013317202864891763, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.997186071051706 + }, + { + "valid": 2835, + "positives": 2, + "negatives": 2833, + "auroc": 0.8635721849629369, + "auprc": 0.01179029304029304, + "brier": 0.000704496802982482, + "calibration": { + "observed_rate": 0.0007054673721340388, + "mean_prediction": 0.0006785960482740953, + "calibration_in_the_large": -2.6871323859943563e-05, + "expected_calibration_error_10bin": 2.6871323859943563e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.997186071051706 + }, + { + "valid": 2835, + "positives": 2, + "negatives": 2833, + "auroc": 0.8625132368513942, + "auprc": 0.011366120218579235, + "brier": 0.0007053930544557372, + "calibration": { + "observed_rate": 0.0007054673721340388, + "mean_prediction": 0.0007737479698068665, + "calibration_in_the_large": 6.828059767282767e-05, + "expected_calibration_error_10bin": 6.828059767282767e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.997186071051706 + }, + { + "valid": 2835, + "positives": 3, + "negatives": 2832, + "auroc": 0.817208097928437, + "auprc": 0.008866571522978607, + "brier": 0.001058379950739958, + "calibration": { + "observed_rate": 0.0010582010582010583, + "mean_prediction": 0.0008120290650135091, + "calibration_in_the_large": -0.00024617199318754913, + "expected_calibration_error_10bin": 0.00024617199318754913, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.997186071051706 + }, + { + "valid": 2835, + "positives": 3, + "negatives": 2832, + "auroc": 0.817208097928437, + "auprc": 0.009140133716716927, + "brier": 0.001059340721039361, + "calibration": { + "observed_rate": 0.0010582010582010583, + "mean_prediction": 0.0008991483163172843, + "calibration_in_the_large": -0.00015905274188377394, + "expected_calibration_error_10bin": 0.00015905274188377394, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.997186071051706 + }, + { + "valid": 2835, + "positives": 3, + "negatives": 2832, + "auroc": 0.8167372881355932, + "auprc": 0.009282660842228776, + "brier": 0.0010595352191580813, + "calibration": { + "observed_rate": 0.0010582010582010583, + "mean_prediction": 0.0009236476258730977, + "calibration_in_the_large": -0.00013455343232796058, + "expected_calibration_error_10bin": 0.00013455343232796058, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.997186071051706 + }, + { + "valid": 2835, + "positives": 3, + "negatives": 2832, + "auroc": 0.817208097928437, + "auprc": 0.008994789912716536, + "brier": 0.001059909527545366, + "calibration": { + "observed_rate": 0.0010582010582010583, + "mean_prediction": 0.0009675837318367585, + "calibration_in_the_large": -9.061732636429982e-05, + "expected_calibration_error_10bin": 9.061732636429982e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.997186071051706 + }, + { + "valid": 2835, + "positives": 3, + "negatives": 2832, + "auroc": 0.8150894538606404, + "auprc": 0.009257089695238458, + "brier": 0.0010605491236119877, + "calibration": { + "observed_rate": 0.0010582010582010583, + "mean_prediction": 0.0010311356678700963, + "calibration_in_the_large": -2.7065390330961942e-05, + "expected_calibration_error_10bin": 2.7065390330961942e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.997186071051706 + }, + { + "valid": 2835, + "positives": 3, + "negatives": 2832, + "auroc": 0.814030131826742, + "auprc": 0.00939660197136866, + "brier": 0.0010609365908059716, + "calibration": { + "observed_rate": 0.0010582010582010583, + "mean_prediction": 0.0010793554681617413, + "calibration_in_the_large": 2.115440996068303e-05, + "expected_calibration_error_10bin": 2.115440996068303e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.997186071051706 + }, + { + "valid": 2835, + "positives": 3, + "negatives": 2832, + "auroc": 0.814030131826742, + "auprc": 0.009396936244238445, + "brier": 0.0010610878068686136, + "calibration": { + "observed_rate": 0.0010582010582010583, + "mean_prediction": 0.0010928595092407727, + "calibration_in_the_large": 3.4658451039714386e-05, + "expected_calibration_error_10bin": 3.4658451039714386e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.997186071051706 + }, + { + "valid": 2835, + "positives": 3, + "negatives": 2832, + "auroc": 0.8142655367231638, + "auprc": 0.009245793807455908, + "brier": 0.001061249568428993, + "calibration": { + "observed_rate": 0.0010582010582010583, + "mean_prediction": 0.0011197338925375922, + "calibration_in_the_large": 6.153283433653388e-05, + "expected_calibration_error_10bin": 6.153283433653388e-05, + "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": 2.578611211402839e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0001990265777630349, + "calibration_in_the_large": 0.0001990265777630349, + "expected_calibration_error_10bin": 0.0001990265777630349, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 1.2576481311492193e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00041926102007575376, + "calibration_in_the_large": 0.00041926102007575376, + "expected_calibration_error_10bin": 0.00041926102007575376, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 2.06132346482597e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0005579397190324622, + "calibration_in_the_large": 0.0005579397190324622, + "expected_calibration_error_10bin": 0.0005579397190324622, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 3.159545977324698e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0007199237299791373, + "calibration_in_the_large": 0.0007199237299791373, + "expected_calibration_error_10bin": 0.0007199237299791373, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 3.871191275713245e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0007912104377473602, + "calibration_in_the_large": 0.0007912104377473602, + "expected_calibration_error_10bin": 0.0007912104377473602, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 4.4029544126739115e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0008308540240775609, + "calibration_in_the_large": 0.0008308540240775609, + "expected_calibration_error_10bin": 0.0008308540240775609, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 4.752561945483229e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0008683356283025098, + "calibration_in_the_large": 0.0008683356283025098, + "expected_calibration_error_10bin": 0.0008683356283025098, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 4.996926416439059e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0009111080972883195, + "calibration_in_the_large": 0.0009111080972883195, + "expected_calibration_error_10bin": 0.0009111080972883195, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 6.267907178846875e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0009954128386694837, + "calibration_in_the_large": 0.0009954128386694837, + "expected_calibration_error_10bin": 0.0009954128386694837, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 6.699942597466392e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.001037893474281324, + "calibration_in_the_large": 0.001037893474281324, + "expected_calibration_error_10bin": 0.001037893474281324, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 6.975156448309114e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0010732704515040445, + "calibration_in_the_large": 0.0010732704515040445, + "expected_calibration_error_10bin": 0.0010732704515040445, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 7.693037226033895e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0011586136747862368, + "calibration_in_the_large": 0.0011586136747862368, + "expected_calibration_error_10bin": 0.0011586136747862368, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 7.718395388490652e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0011610480405897712, + "calibration_in_the_large": 0.0011610480405897712, + "expected_calibration_error_10bin": 0.0011610480405897712, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + } + ], + "reason": "no_two_class_timepoint" + }, + "L76": { + "time_averaged_auroc": 0.7017220841998308, + "time_averaged_auprc": 0.007576342771681227, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2793, + "positives": 6, + "negatives": 2787, + "auroc": 0.6707929673484033, + "auprc": 0.004010550408940372, + "brier": 0.0021457500407128086, + "calibration": { + "observed_rate": 0.0021482277121374865, + "mean_prediction": 0.0009028626989403526, + "calibration_in_the_large": -0.001245365013197134, + "expected_calibration_error_10bin": 0.001245365013197134, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 8, + "negatives": 2785, + "auroc": 0.6860412926391383, + "auprc": 0.005075346356895827, + "brier": 0.0028598055376213277, + "calibration": { + "observed_rate": 0.0028643036161833156, + "mean_prediction": 0.001437189571241069, + "calibration_in_the_large": -0.0014271140449422467, + "expected_calibration_error_10bin": 0.0014271140449422467, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 8, + "negatives": 2785, + "auroc": 0.6915619389587073, + "auprc": 0.005192266436241745, + "brier": 0.0028602919490691684, + "calibration": { + "observed_rate": 0.0028643036161833156, + "mean_prediction": 0.0015743838917689971, + "calibration_in_the_large": -0.0012899197244143185, + "expected_calibration_error_10bin": 0.0012899197244143185, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 10, + "negatives": 2783, + "auroc": 0.6732662594322674, + "auprc": 0.0058209680472173795, + "brier": 0.00357463171041544, + "calibration": { + "observed_rate": 0.0035803795202291443, + "mean_prediction": 0.0018223844907551624, + "calibration_in_the_large": -0.001757995029473982, + "expected_calibration_error_10bin": 0.001757995029473982, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 10, + "negatives": 2783, + "auroc": 0.6759252605102407, + "auprc": 0.005902171116267979, + "brier": 0.003574924994869144, + "calibration": { + "observed_rate": 0.0035803795202291443, + "mean_prediction": 0.001945351110040837, + "calibration_in_the_large": -0.0016350284101883073, + "expected_calibration_error_10bin": 0.0016350284101883073, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 11, + "negatives": 2782, + "auroc": 0.6955100973792563, + "auprc": 0.007001744845697244, + "brier": 0.003929619592657222, + "calibration": { + "observed_rate": 0.003938417472252059, + "mean_prediction": 0.0020359123420056855, + "calibration_in_the_large": -0.0019025051302463737, + "expected_calibration_error_10bin": 0.0019025051302463737, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 13, + "negatives": 2780, + "auroc": 0.715218594355285, + "auprc": 0.00886710635785274, + "brier": 0.004640306050525898, + "calibration": { + "observed_rate": 0.004654493376297888, + "mean_prediction": 0.0021321649818378556, + "calibration_in_the_large": -0.0025223283944600322, + "expected_calibration_error_10bin": 0.0025223283944600322, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 13, + "negatives": 2780, + "auroc": 0.7142778085224128, + "auprc": 0.008823380578623379, + "brier": 0.004640527167308723, + "calibration": { + "observed_rate": 0.004654493376297888, + "mean_prediction": 0.0022541493501410277, + "calibration_in_the_large": -0.00240034402615686, + "expected_calibration_error_10bin": 0.00240034402615686, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 13, + "negatives": 2780, + "auroc": 0.712147205312673, + "auprc": 0.008711481615427378, + "brier": 0.004641942266142072, + "calibration": { + "observed_rate": 0.004654493376297888, + "mean_prediction": 0.002409113832528975, + "calibration_in_the_large": -0.0022453795437689127, + "expected_calibration_error_10bin": 0.0022453795437689127, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 13, + "negatives": 2780, + "auroc": 0.7122025456557831, + "auprc": 0.008677488367836304, + "brier": 0.004642176698994248, + "calibration": { + "observed_rate": 0.004654493376297888, + "mean_prediction": 0.002541333893272427, + "calibration_in_the_large": -0.0021131594830254606, + "expected_calibration_error_10bin": 0.0021131594830254606, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 13, + "negatives": 2780, + "auroc": 0.7120641947980078, + "auprc": 0.008690172264799002, + "brier": 0.004642589777222792, + "calibration": { + "observed_rate": 0.004654493376297888, + "mean_prediction": 0.0025982856729035537, + "calibration_in_the_large": -0.002056207703394334, + "expected_calibration_error_10bin": 0.002056207703394334, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 15, + "negatives": 2778, + "auroc": 0.7316534677225822, + "auprc": 0.010856386016990254, + "brier": 0.005351340886709837, + "calibration": { + "observed_rate": 0.0053705692803437165, + "mean_prediction": 0.002715257260987141, + "calibration_in_the_large": -0.0026553120193565753, + "expected_calibration_error_10bin": 0.0026553120193565753, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 15, + "negatives": 2778, + "auroc": 0.731725461963043, + "auprc": 0.010863393619066356, + "brier": 0.005351354858681221, + "calibration": { + "observed_rate": 0.0053705692803437165, + "mean_prediction": 0.002721243703784194, + "calibration_in_the_large": -0.0026493255765595225, + "expected_calibration_error_10bin": 0.0026493255765595225, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + } + ], + "reason": null + }, + "L89": { + "time_averaged_auroc": 0.8503654299349083, + "time_averaged_auprc": 0.0371357952524702, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2798, + "positives": 8, + "negatives": 2790, + "auroc": 0.875179211469534, + "auprc": 0.013946440916804664, + "brier": 0.0028479352136835307, + "calibration": { + "observed_rate": 0.0028591851322373124, + "mean_prediction": 0.0008723226209734052, + "calibration_in_the_large": -0.0019868625112639073, + "expected_calibration_error_10bin": 0.0019868625112639073, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + { + "valid": 2798, + "positives": 10, + "negatives": 2788, + "auroc": 0.8669655667144907, + "auprc": 0.03149641663809309, + "brier": 0.0035372296832834847, + "calibration": { + "observed_rate": 0.0035739814152966403, + "mean_prediction": 0.001997349608130198, + "calibration_in_the_large": -0.0015766318071664424, + "expected_calibration_error_10bin": 0.0015766318071664424, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + { + "valid": 2798, + "positives": 11, + "negatives": 2787, + "auroc": 0.8280327494536321, + "auprc": 0.02845986099627039, + "brier": 0.0038914159040480734, + "calibration": { + "observed_rate": 0.003931379556826304, + "mean_prediction": 0.002602409860872736, + "calibration_in_the_large": -0.0013289696959535684, + "expected_calibration_error_10bin": 0.0013289696959535684, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + { + "valid": 2798, + "positives": 14, + "negatives": 2784, + "auroc": 0.8531660509031199, + "auprc": 0.039263174268526824, + "brier": 0.004920839181548243, + "calibration": { + "observed_rate": 0.005003573981415297, + "mean_prediction": 0.003417749448023237, + "calibration_in_the_large": -0.0015858245333920601, + "expected_calibration_error_10bin": 0.0015858245333920601, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + { + "valid": 2798, + "positives": 15, + "negatives": 2783, + "auroc": 0.8433105761169002, + "auprc": 0.036673098954160085, + "brier": 0.005274886421492714, + "calibration": { + "observed_rate": 0.005360972122944961, + "mean_prediction": 0.0037359097751593446, + "calibration_in_the_large": -0.0016250623477856163, + "expected_calibration_error_10bin": 0.0016980880551780734, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + { + "valid": 2798, + "positives": 17, + "negatives": 2781, + "auroc": 0.8461196776445206, + "auprc": 0.03816723640806776, + "brier": 0.00597203993349371, + "calibration": { + "observed_rate": 0.006075768406004289, + "mean_prediction": 0.004059168594977811, + "calibration_in_the_large": -0.0020165998110264777, + "expected_calibration_error_10bin": 0.002093108949770128, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + { + "valid": 2798, + "positives": 19, + "negatives": 2779, + "auroc": 0.8424082877218234, + "auprc": 0.03838368501541321, + "brier": 0.00666820640282876, + "calibration": { + "observed_rate": 0.006790564689063617, + "mean_prediction": 0.004327176828377735, + "calibration_in_the_large": -0.002463387860685882, + "expected_calibration_error_10bin": 0.0025455360238119404, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + { + "valid": 2798, + "positives": 20, + "negatives": 2778, + "auroc": 0.8428185745140389, + "auprc": 0.037922003856694156, + "brier": 0.007018579896542369, + "calibration": { + "observed_rate": 0.007147962830593281, + "mean_prediction": 0.0046378078956747755, + "calibration_in_the_large": -0.002510154934918505, + "expected_calibration_error_10bin": 0.0026757338474653457, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + { + "valid": 2798, + "positives": 21, + "negatives": 2777, + "auroc": 0.8471800675617744, + "auprc": 0.04053675665255865, + "brier": 0.007359545743285215, + "calibration": { + "observed_rate": 0.007505360972122945, + "mean_prediction": 0.004937883817930922, + "calibration_in_the_large": -0.0025674771541920223, + "expected_calibration_error_10bin": 0.0027497901133647328, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + { + "valid": 2798, + "positives": 22, + "negatives": 2776, + "auroc": 0.8523382237359183, + "auprc": 0.04439137934501444, + "brier": 0.007689576374338289, + "calibration": { + "observed_rate": 0.007862759113652609, + "mean_prediction": 0.0051472769827011254, + "calibration_in_the_large": -0.002715482130951483, + "expected_calibration_error_10bin": 0.0029852565344144974, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + { + "valid": 2798, + "positives": 24, + "negatives": 2774, + "auroc": 0.8534306657053593, + "auprc": 0.04457113409350371, + "brier": 0.008385458575165669, + "calibration": { + "observed_rate": 0.008577555396711936, + "mean_prediction": 0.005449601169560553, + "calibration_in_the_large": -0.0031279542271513833, + "expected_calibration_error_10bin": 0.0034151148347081554, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + { + "valid": 2798, + "positives": 25, + "negatives": 2773, + "auroc": 0.8519581680490443, + "auprc": 0.04445730121090517, + "brier": 0.008734185432375618, + "calibration": { + "observed_rate": 0.008934953538241601, + "mean_prediction": 0.005606384735811217, + "calibration_in_the_large": -0.003328568802430384, + "expected_calibration_error_10bin": 0.0036248737168517, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + { + "valid": 2798, + "positives": 25, + "negatives": 2773, + "auroc": 0.8518427695636495, + "auprc": 0.04449684992610038, + "brier": 0.0087333375439141, + "calibration": { + "observed_rate": 0.008934953538241601, + "mean_prediction": 0.005650429351905129, + "calibration_in_the_large": -0.003284524186336472, + "expected_calibration_error_10bin": 0.003583042333269917, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + } + ], + "reason": null + }, + "L97": { + "time_averaged_auroc": 0.9378602030333146, + "time_averaged_auprc": 0.0459956399951322, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2789, + "positives": 2, + "negatives": 2787, + "auroc": 0.9447434517402225, + "auprc": 0.009739336492890997, + "brier": 0.0007176174532733335, + "calibration": { + "observed_rate": 0.0007171029042667623, + "mean_prediction": 0.00045075751712182695, + "calibration_in_the_large": -0.0002663453871449354, + "expected_calibration_error_10bin": 0.0002663453871449354, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 3, + "negatives": 2786, + "auroc": 0.9429289303661162, + "auprc": 0.014578317537727994, + "brier": 0.0010862838867972484, + "calibration": { + "observed_rate": 0.0010756543564001434, + "mean_prediction": 0.001344953950578201, + "calibration_in_the_large": 0.00026929959417805764, + "expected_calibration_error_10bin": 0.00026929959417805753, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 4, + "negatives": 2785, + "auroc": 0.9640933572710951, + "auprc": 0.04158669463187918, + "brier": 0.0014243876247927837, + "calibration": { + "observed_rate": 0.0014342058085335247, + "mean_prediction": 0.0016979973292508355, + "calibration_in_the_large": 0.00026379152071731083, + "expected_calibration_error_10bin": 0.00026379152071731083, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 5, + "negatives": 2784, + "auroc": 0.9709051724137931, + "auprc": 0.06536815017207173, + "brier": 0.0017574374178235532, + "calibration": { + "observed_rate": 0.0017927572606669057, + "mean_prediction": 0.0022041646259341467, + "calibration_in_the_large": 0.00041140736526724107, + "expected_calibration_error_10bin": 0.00041140736526724096, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 5, + "negatives": 2784, + "auroc": 0.9691091954022989, + "auprc": 0.06550435794164108, + "brier": 0.0017740193145329337, + "calibration": { + "observed_rate": 0.0017927572606669057, + "mean_prediction": 0.002825941788786175, + "calibration_in_the_large": 0.0010331845281192694, + "expected_calibration_error_10bin": 0.0010331845281192696, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 8, + "negatives": 2781, + "auroc": 0.9368033081625314, + "auprc": 0.04744490792770392, + "brier": 0.002846505617164722, + "calibration": { + "observed_rate": 0.0028684116170670493, + "mean_prediction": 0.003236742714897915, + "calibration_in_the_large": 0.00036833109783086576, + "expected_calibration_error_10bin": 0.00036833109783086554, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 8, + "negatives": 2781, + "auroc": 0.9363088816972313, + "auprc": 0.050495389140339075, + "brier": 0.0028583300360224854, + "calibration": { + "observed_rate": 0.0028684116170670493, + "mean_prediction": 0.0036938158013285365, + "calibration_in_the_large": 0.0008254041842614872, + "expected_calibration_error_10bin": 0.0008254041842614879, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 11, + "negatives": 2778, + "auroc": 0.9336016755023234, + "auprc": 0.0514757547544614, + "brier": 0.003911510700627424, + "calibration": { + "observed_rate": 0.003944065973467192, + "mean_prediction": 0.004112691937804892, + "calibration_in_the_large": 0.00016862596433769948, + "expected_calibration_error_10bin": 0.00021338365549788713, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 11, + "negatives": 2778, + "auroc": 0.9335689508475685, + "auprc": 0.050841664821828975, + "brier": 0.003914573953714547, + "calibration": { + "observed_rate": 0.003944065973467192, + "mean_prediction": 0.004207550706729394, + "calibration_in_the_large": 0.0002634847332622014, + "expected_calibration_error_10bin": 0.00028167244733832064, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 12, + "negatives": 2777, + "auroc": 0.9337714560076822, + "auprc": 0.05275275269411287, + "brier": 0.004288136741575455, + "calibration": { + "observed_rate": 0.004302617425600574, + "mean_prediction": 0.00476896881925459, + "calibration_in_the_large": 0.0004663513936540159, + "expected_calibration_error_10bin": 0.00047249058793289345, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 12, + "negatives": 2777, + "auroc": 0.9328712039371024, + "auprc": 0.052456377361484535, + "brier": 0.004301178827602629, + "calibration": { + "observed_rate": 0.004302617425600574, + "mean_prediction": 0.005029484976338967, + "calibration_in_the_large": 0.0007268675507383932, + "expected_calibration_error_10bin": 0.0007268675507383926, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 13, + "negatives": 2776, + "auroc": 0.8966969629793837, + "auprc": 0.04784196598686187, + "brier": 0.00467653367844419, + "calibration": { + "observed_rate": 0.004661168877733955, + "mean_prediction": 0.00533679554583249, + "calibration_in_the_large": 0.0006756266680985352, + "expected_calibration_error_10bin": 0.0006756266680985358, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 13, + "negatives": 2776, + "auroc": 0.8967800931057415, + "auprc": 0.0478576504737149, + "brier": 0.004676890671484176, + "calibration": { + "observed_rate": 0.004661168877733955, + "mean_prediction": 0.005345621699361976, + "calibration_in_the_large": 0.0006844528216280212, + "expected_calibration_error_10bin": 0.0006844528216280214, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + } + ], + "reason": null + }, + "L98": { + "time_averaged_auroc": 0.5825765213054979, + "time_averaged_auprc": 0.002815225763733282, + "valid_timepoint_cells": 12, + "timepoints": [ + { + "valid": 2824, + "positives": 0, + "negatives": 2824, + "auroc": null, + "auprc": null, + "brier": 5.712957391782445e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0003871365842932473, + "calibration_in_the_large": 0.0003871365842932473, + "expected_calibration_error_10bin": 0.0003871365842932473, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 1, + "negatives": 2823, + "auroc": 0.4442082890541977, + "auprc": 0.0006369426751592356, + "brier": 0.0003568283047033075, + "calibration": { + "observed_rate": 0.0003541076487252125, + "mean_prediction": 0.0007330957599661408, + "calibration_in_the_large": 0.00037898811124092833, + "expected_calibration_error_10bin": 0.00037898811124092833, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 1, + "negatives": 2823, + "auroc": 0.42366277010272757, + "auprc": 0.0006142506142506142, + "brier": 0.0003580393755922823, + "calibration": { + "observed_rate": 0.0003541076487252125, + "mean_prediction": 0.0009747397957872448, + "calibration_in_the_large": 0.0006206321470620323, + "expected_calibration_error_10bin": 0.0006206321470620323, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.5489779038166135, + "auprc": 0.0015047468687583773, + "brier": 0.0010669971092523917, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0012092890918795089, + "calibration_in_the_large": 0.0001469661457038714, + "expected_calibration_error_10bin": 0.0001469661457038714, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 5, + "negatives": 2819, + "auroc": 0.6300815892160341, + "auprc": 0.0030421016570574342, + "brier": 0.00177283483274193, + "calibration": { + "observed_rate": 0.0017705382436260624, + "mean_prediction": 0.0013289992143298798, + "calibration_in_the_large": -0.0004415390292961826, + "expected_calibration_error_10bin": 0.0004415390292961826, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 5, + "negatives": 2819, + "auroc": 0.629584959205392, + "auprc": 0.0030238408938555706, + "brier": 0.001773206167672077, + "calibration": { + "observed_rate": 0.0017705382436260624, + "mean_prediction": 0.0014022523660158189, + "calibration_in_the_large": -0.00036828587761024347, + "expected_calibration_error_10bin": 0.00036828587761024347, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 5, + "negatives": 2819, + "auroc": 0.6271727562965591, + "auprc": 0.003014084762758612, + "brier": 0.001774102904371741, + "calibration": { + "observed_rate": 0.0017705382436260624, + "mean_prediction": 0.0015149842052973863, + "calibration_in_the_large": -0.000255554038328676, + "expected_calibration_error_10bin": 0.000255554038328676, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 5, + "negatives": 2819, + "auroc": 0.629584959205392, + "auprc": 0.003033612851272627, + "brier": 0.0017761735657522797, + "calibration": { + "observed_rate": 0.0017705382436260624, + "mean_prediction": 0.0017137067126954614, + "calibration_in_the_large": -5.683153093060094e-05, + "expected_calibration_error_10bin": 5.683153093060094e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 5, + "negatives": 2819, + "auroc": 0.6295140120610145, + "auprc": 0.0030194683918115593, + "brier": 0.0017782191813287725, + "calibration": { + "observed_rate": 0.0017705382436260624, + "mean_prediction": 0.001887146048007352, + "calibration_in_the_large": 0.00011660780438128957, + "expected_calibration_error_10bin": 0.00011660780438128957, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 7, + "negatives": 2817, + "auroc": 0.5973426644353161, + "auprc": 0.0036147027038966953, + "brier": 0.002486160178848565, + "calibration": { + "observed_rate": 0.002478753541076487, + "mean_prediction": 0.002097849630225159, + "calibration_in_the_large": -0.0003809039108513281, + "expected_calibration_error_10bin": 0.0003809039108513281, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 8, + "negatives": 2816, + "auroc": 0.6124822443181818, + "auprc": 0.004108824219523283, + "brier": 0.0028409399327601445, + "calibration": { + "observed_rate": 0.0028328611898017, + "mean_prediction": 0.002242834728038943, + "calibration_in_the_large": -0.0005900264617627569, + "expected_calibration_error_10bin": 0.0005900264617627569, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 8, + "negatives": 2816, + "auroc": 0.6091086647727273, + "auprc": 0.0040842476605746185, + "brier": 0.002844294057498286, + "calibration": { + "observed_rate": 0.0028328611898017, + "mean_prediction": 0.0025667848459041322, + "calibration_in_the_large": -0.0002660763438975676, + "expected_calibration_error_10bin": 0.0002660763438975676, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 8, + "negatives": 2816, + "auroc": 0.6091974431818182, + "auprc": 0.004085885865880758, + "brier": 0.002844674721989035, + "calibration": { + "observed_rate": 0.0028328611898017, + "mean_prediction": 0.002594020030401985, + "calibration_in_the_large": -0.00023884115939971483, + "expected_calibration_error_10bin": 0.00023884115939971483, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + } + ], + "reason": null + }, + "M10": { + "time_averaged_auroc": 0.7967259102411982, + "time_averaged_auprc": 0.02876639702499017, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2713, + "positives": 4, + "negatives": 2709, + "auroc": 0.7304355850867479, + "auprc": 0.005250684797637641, + "brier": 0.0014730161657045512, + "calibration": { + "observed_rate": 0.001474382602285293, + "mean_prediction": 0.0014171801517184103, + "calibration_in_the_large": -5.720245056688275e-05, + "expected_calibration_error_10bin": 5.720245056688275e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9542736545902216 + }, + { + "valid": 2713, + "positives": 8, + "negatives": 2705, + "auroc": 0.8451940850277264, + "auprc": 0.024131507310546606, + "brier": 0.00291962966546607, + "calibration": { + "observed_rate": 0.002948765204570586, + "mean_prediction": 0.0021130076377445877, + "calibration_in_the_large": -0.0008357575668259984, + "expected_calibration_error_10bin": 0.0008357575668259984, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9542736545902216 + }, + { + "valid": 2713, + "positives": 10, + "negatives": 2703, + "auroc": 0.789937106918239, + "auprc": 0.023406755620152746, + "brier": 0.00364941886031104, + "calibration": { + "observed_rate": 0.003685956505713233, + "mean_prediction": 0.0025713645573421187, + "calibration_in_the_large": -0.0011145919483711141, + "expected_calibration_error_10bin": 0.0011145919483711141, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9542736545902216 + }, + { + "valid": 2713, + "positives": 10, + "negatives": 2703, + "auroc": 0.7903440621531631, + "auprc": 0.02261016625718041, + "brier": 0.0036493583098650907, + "calibration": { + "observed_rate": 0.003685956505713233, + "mean_prediction": 0.0028914467277220066, + "calibration_in_the_large": -0.0007945097779912262, + "expected_calibration_error_10bin": 0.0007945097779912262, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9542736545902216 + }, + { + "valid": 2713, + "positives": 10, + "negatives": 2703, + "auroc": 0.7894191638919719, + "auprc": 0.024115524761926906, + "brier": 0.003650373506159412, + "calibration": { + "observed_rate": 0.003685956505713233, + "mean_prediction": 0.003245724720643282, + "calibration_in_the_large": -0.0004402317850699506, + "expected_calibration_error_10bin": 0.0004402317850699506, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9542736545902216 + }, + { + "valid": 2713, + "positives": 10, + "negatives": 2703, + "auroc": 0.7884202737698853, + "auprc": 0.023549667360036088, + "brier": 0.003652947406413872, + "calibration": { + "observed_rate": 0.003685956505713233, + "mean_prediction": 0.003809465741720833, + "calibration_in_the_large": 0.00012350923600760013, + "expected_calibration_error_10bin": 0.00012350923600760056, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9542736545902216 + }, + { + "valid": 2713, + "positives": 12, + "negatives": 2701, + "auroc": 0.787578674564976, + "auprc": 0.03174013992395497, + "brier": 0.004365618491350292, + "calibration": { + "observed_rate": 0.0044231478068558795, + "mean_prediction": 0.004108802047529546, + "calibration_in_the_large": -0.0003143457593263333, + "expected_calibration_error_10bin": 0.00039904729350160787, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9542736545902216 + }, + { + "valid": 2713, + "positives": 13, + "negatives": 2700, + "auroc": 0.8013105413105414, + "auprc": 0.03768682296962321, + "brier": 0.0047140656194726025, + "calibration": { + "observed_rate": 0.004791743457427202, + "mean_prediction": 0.004410947888695855, + "calibration_in_the_large": -0.00038079556873134735, + "expected_calibration_error_10bin": 0.0004700431324664314, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9542736545902216 + }, + { + "valid": 2713, + "positives": 13, + "negatives": 2700, + "auroc": 0.802022792022792, + "auprc": 0.03600563541271968, + "brier": 0.00471705030323569, + "calibration": { + "observed_rate": 0.004791743457427202, + "mean_prediction": 0.004818589323608915, + "calibration_in_the_large": 2.684586618171246e-05, + "expected_calibration_error_10bin": 7.542278588532066e-05, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9542736545902216 + }, + { + "valid": 2713, + "positives": 13, + "negatives": 2700, + "auroc": 0.802022792022792, + "auprc": 0.03523292854435505, + "brier": 0.004718881387589302, + "calibration": { + "observed_rate": 0.004791743457427202, + "mean_prediction": 0.005072565035856897, + "calibration_in_the_large": 0.00028082157842969444, + "expected_calibration_error_10bin": 0.00028082157842969444, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9542736545902216 + }, + { + "valid": 2713, + "positives": 14, + "negatives": 2699, + "auroc": 0.8072301910760599, + "auprc": 0.03512389566337539, + "brier": 0.005082520496929011, + "calibration": { + "observed_rate": 0.005160339107998526, + "mean_prediction": 0.005499081983128182, + "calibration_in_the_large": 0.00033874287512965576, + "expected_calibration_error_10bin": 0.0003387428751296564, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9542736545902216 + }, + { + "valid": 2713, + "positives": 14, + "negatives": 2699, + "auroc": 0.8054835124120044, + "auprc": 0.033406886819375245, + "brier": 0.005088931363104122, + "calibration": { + "observed_rate": 0.005160339107998526, + "mean_prediction": 0.006022206879277327, + "calibration_in_the_large": 0.0008618677712788009, + "expected_calibration_error_10bin": 0.0008618677712788011, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9542736545902216 + }, + { + "valid": 2713, + "positives": 15, + "negatives": 2698, + "auroc": 0.8180380528786756, + "auprc": 0.04170254588398823, + "brier": 0.0054212907129465825, + "calibration": { + "observed_rate": 0.0055289347585698485, + "mean_prediction": 0.006081639382668679, + "calibration_in_the_large": 0.0005527046240988301, + "expected_calibration_error_10bin": 0.000552704624098829, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9542736545902216 + } + ], + "reason": null + }, + "M16": { + "time_averaged_auroc": 0.8338047992845296, + "time_averaged_auprc": 0.006540908810768339, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2790, + "positives": 1, + "negatives": 2789, + "auroc": 0.6873431337396917, + "auprc": 0.001145475372279496, + "brier": 0.00035848806990062073, + "calibration": { + "observed_rate": 0.00035842293906810036, + "mean_prediction": 0.0003527266281595388, + "calibration_in_the_large": -5.6963109085615585e-06, + "expected_calibration_error_10bin": 5.6963109085615585e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + { + "valid": 2790, + "positives": 1, + "negatives": 2789, + "auroc": 0.761921835783435, + "auprc": 0.0015037593984962407, + "brier": 0.0003585332612369106, + "calibration": { + "observed_rate": 0.00035842293906810036, + "mean_prediction": 0.000531886790641867, + "calibration_in_the_large": 0.0001734638515737667, + "expected_calibration_error_10bin": 0.0001734638515737667, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + { + "valid": 2790, + "positives": 2, + "negatives": 2788, + "auroc": 0.8649569583931134, + "auprc": 0.0053390603253827325, + "brier": 0.0007155748466037829, + "calibration": { + "observed_rate": 0.0007168458781362007, + "mean_prediction": 0.0005845884912797556, + "calibration_in_the_large": -0.0001322573868564451, + "expected_calibration_error_10bin": 0.0001322573868564451, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + { + "valid": 2790, + "positives": 2, + "negatives": 2788, + "auroc": 0.8452295552367288, + "auprc": 0.008399138549892318, + "brier": 0.0007152645323182092, + "calibration": { + "observed_rate": 0.0007168458781362007, + "mean_prediction": 0.0008166856757603083, + "calibration_in_the_large": 9.983979762410761e-05, + "expected_calibration_error_10bin": 9.983979762410761e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + { + "valid": 2790, + "positives": 2, + "negatives": 2788, + "auroc": 0.853299856527977, + "auprc": 0.008680962424810562, + "brier": 0.0007152282295369491, + "calibration": { + "observed_rate": 0.0007168458781362007, + "mean_prediction": 0.0009203322286507126, + "calibration_in_the_large": 0.00020348635051451185, + "expected_calibration_error_10bin": 0.00020348635051451185, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + { + "valid": 2790, + "positives": 2, + "negatives": 2788, + "auroc": 0.8950860832137734, + "auprc": 0.007563587684069612, + "brier": 0.0007153175825302705, + "calibration": { + "observed_rate": 0.0007168458781362007, + "mean_prediction": 0.001111495666715676, + "calibration_in_the_large": 0.00039464978857947533, + "expected_calibration_error_10bin": 0.00039464978857947533, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + { + "valid": 2790, + "positives": 2, + "negatives": 2788, + "auroc": 0.8945480631276901, + "auprc": 0.007858637526156707, + "brier": 0.0007153928580639239, + "calibration": { + "observed_rate": 0.0007168458781362007, + "mean_prediction": 0.0011801048290783986, + "calibration_in_the_large": 0.00046325895094219784, + "expected_calibration_error_10bin": 0.00046325895094219784, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + { + "valid": 2790, + "positives": 3, + "negatives": 2787, + "auroc": 0.8319578997727545, + "auprc": 0.007601998522855493, + "brier": 0.00107267149500752, + "calibration": { + "observed_rate": 0.001075268817204301, + "mean_prediction": 0.0013367931383651195, + "calibration_in_the_large": 0.0002615243211608184, + "expected_calibration_error_10bin": 0.0002615243211608184, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + { + "valid": 2790, + "positives": 3, + "negatives": 2787, + "auroc": 0.8326755172826217, + "auprc": 0.007472318541970282, + "brier": 0.0010726930517946758, + "calibration": { + "observed_rate": 0.001075268817204301, + "mean_prediction": 0.0013606796182430313, + "calibration_in_the_large": 0.0002854108010387302, + "expected_calibration_error_10bin": 0.0002854108010387302, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + { + "valid": 2790, + "positives": 3, + "negatives": 2787, + "auroc": 0.8403301040545389, + "auprc": 0.0075493091519279465, + "brier": 0.0010727293256048546, + "calibration": { + "observed_rate": 0.001075268817204301, + "mean_prediction": 0.001427075906316675, + "calibration_in_the_large": 0.00035180708911237393, + "expected_calibration_error_10bin": 0.00035180708911237393, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + { + "valid": 2790, + "positives": 3, + "negatives": 2787, + "auroc": 0.8454730295419208, + "auprc": 0.007101214075006354, + "brier": 0.0010729754649622951, + "calibration": { + "observed_rate": 0.001075268817204301, + "mean_prediction": 0.0015217799839756742, + "calibration_in_the_large": 0.0004465111667713731, + "expected_calibration_error_10bin": 0.0004465111667713731, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + { + "valid": 2790, + "positives": 3, + "negatives": 2787, + "auroc": 0.8441573974404976, + "auprc": 0.007362953653276234, + "brier": 0.0010731134642828052, + "calibration": { + "observed_rate": 0.001075268817204301, + "mean_prediction": 0.0015909097957764286, + "calibration_in_the_large": 0.0005156409785721276, + "expected_calibration_error_10bin": 0.0005156409785721276, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + { + "valid": 2790, + "positives": 3, + "negatives": 2787, + "auroc": 0.8424829565841406, + "auprc": 0.00745339931386443, + "brier": 0.0010731885070398696, + "calibration": { + "observed_rate": 0.001075268817204301, + "mean_prediction": 0.0016229390554030536, + "calibration_in_the_large": 0.0005476702381987525, + "expected_calibration_error_10bin": 0.0005476702381987525, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + } + ], + "reason": null + }, + "M17": { + "time_averaged_auroc": 0.729839678016998, + "time_averaged_auprc": 0.0076081886877060875, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2733, + "positives": 2, + "negatives": 2731, + "auroc": 0.7698645184913951, + "auprc": 0.0042998331408034916, + "brier": 0.000731072059600387, + "calibration": { + "observed_rate": 0.0007317965605561653, + "mean_prediction": 0.0004472340532577213, + "calibration_in_the_large": -0.00028456250729844406, + "expected_calibration_error_10bin": 0.00028456250729844406, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + { + "valid": 2733, + "positives": 4, + "negatives": 2729, + "auroc": 0.7209600586295346, + "auprc": 0.0037798747886434417, + "brier": 0.0014615770797178475, + "calibration": { + "observed_rate": 0.0014635931211123307, + "mean_prediction": 0.0009731193093133058, + "calibration_in_the_large": -0.0004904738117990249, + "expected_calibration_error_10bin": 0.0004904738117990249, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + { + "valid": 2733, + "positives": 5, + "negatives": 2728, + "auroc": 0.7351906158357772, + "auprc": 0.00439064813603694, + "brier": 0.0018270004592772127, + "calibration": { + "observed_rate": 0.0018294914013904135, + "mean_prediction": 0.0014580254326450044, + "calibration_in_the_large": -0.00037146596874540905, + "expected_calibration_error_10bin": 0.00037146596874540905, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + { + "valid": 2733, + "positives": 6, + "negatives": 2727, + "auroc": 0.7582202664710915, + "auprc": 0.00565562563928916, + "brier": 0.002191136269076433, + "calibration": { + "observed_rate": 0.0021953896816684962, + "mean_prediction": 0.0016198834380305122, + "calibration_in_the_large": -0.0005755062436379841, + "expected_calibration_error_10bin": 0.0005755062436379841, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + { + "valid": 2733, + "positives": 7, + "negatives": 2726, + "auroc": 0.6921706320092234, + "auprc": 0.0055022078802239, + "brier": 0.002558108186643693, + "calibration": { + "observed_rate": 0.002561287961946579, + "mean_prediction": 0.0021626021292032523, + "calibration_in_the_large": -0.00039868583274332674, + "expected_calibration_error_10bin": 0.00039868583274332674, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + { + "valid": 2733, + "positives": 8, + "negatives": 2725, + "auroc": 0.7051376146788991, + "auprc": 0.006327116192302924, + "brier": 0.0029220366289180143, + "calibration": { + "observed_rate": 0.0029271862422246614, + "mean_prediction": 0.002375926040986287, + "calibration_in_the_large": -0.0005512602012383745, + "expected_calibration_error_10bin": 0.0005512602012383745, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + { + "valid": 2733, + "positives": 9, + "negatives": 2724, + "auroc": 0.7292380486213086, + "auprc": 0.007978609347522866, + "brier": 0.003283665213412243, + "calibration": { + "observed_rate": 0.003293084522502744, + "mean_prediction": 0.0028546663229511117, + "calibration_in_the_large": -0.0004384181995516325, + "expected_calibration_error_10bin": 0.0004384181995516325, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + { + "valid": 2733, + "positives": 9, + "negatives": 2724, + "auroc": 0.7278511992168379, + "auprc": 0.007885281320256005, + "brier": 0.003285259056478332, + "calibration": { + "observed_rate": 0.003293084522502744, + "mean_prediction": 0.003163526517715782, + "calibration_in_the_large": -0.00012955800478696216, + "expected_calibration_error_10bin": 0.00012955800478696216, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + { + "valid": 2733, + "positives": 10, + "negatives": 2723, + "auroc": 0.7091810503121557, + "auprc": 0.007982727090759967, + "brier": 0.0036500618076422773, + "calibration": { + "observed_rate": 0.003658982802780827, + "mean_prediction": 0.0034519222966631876, + "calibration_in_the_large": -0.00020706050611763935, + "expected_calibration_error_10bin": 0.00020706050611763935, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + { + "valid": 2733, + "positives": 13, + "negatives": 2720, + "auroc": 0.7324660633484162, + "auprc": 0.011265319207743697, + "brier": 0.004733031458961771, + "calibration": { + "observed_rate": 0.004756677643615075, + "mean_prediction": 0.0036745663357273623, + "calibration_in_the_large": -0.001082111307887713, + "expected_calibration_error_10bin": 0.001082111307887713, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + { + "valid": 2733, + "positives": 13, + "negatives": 2720, + "auroc": 0.7335407239819004, + "auprc": 0.011158621346805274, + "brier": 0.004734834571773556, + "calibration": { + "observed_rate": 0.004756677643615075, + "mean_prediction": 0.003881360939476791, + "calibration_in_the_large": -0.0008753167041382843, + "expected_calibration_error_10bin": 0.0008753167041382843, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + { + "valid": 2733, + "positives": 13, + "negatives": 2720, + "auroc": 0.7371606334841629, + "auprc": 0.011332686162789, + "brier": 0.004734384616798627, + "calibration": { + "observed_rate": 0.004756677643615075, + "mean_prediction": 0.004345449533462088, + "calibration_in_the_large": -0.000411228110152987, + "expected_calibration_error_10bin": 0.000411228110152987, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + { + "valid": 2733, + "positives": 13, + "negatives": 2720, + "auroc": 0.7369343891402715, + "auprc": 0.011347902687002483, + "brier": 0.004734732723439067, + "calibration": { + "observed_rate": 0.004756677643615075, + "mean_prediction": 0.004410396752781595, + "calibration_in_the_large": -0.0003462808908334799, + "expected_calibration_error_10bin": 0.0003462808908334799, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + } + ], + "reason": null + }, + "M19": { + "time_averaged_auroc": 0.6820923232556105, + "time_averaged_auprc": 0.019989687864861924, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2674, + "positives": 8, + "negatives": 2666, + "auroc": 0.6691204051012754, + "auprc": 0.007446064711905842, + "brier": 0.002983463108929371, + "calibration": { + "observed_rate": 0.0029917726252804786, + "mean_prediction": 0.0013379897545284074, + "calibration_in_the_large": -0.0016537828707520713, + "expected_calibration_error_10bin": 0.0016537828707520713, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.940555750967288 + }, + { + "valid": 2674, + "positives": 15, + "negatives": 2659, + "auroc": 0.6461577033972672, + "auprc": 0.011302290459780782, + "brier": 0.005582919513169658, + "calibration": { + "observed_rate": 0.005609573672400898, + "mean_prediction": 0.0024154642807664045, + "calibration_in_the_large": -0.003194109391634493, + "expected_calibration_error_10bin": 0.003194109391634493, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.940555750967288 + }, + { + "valid": 2674, + "positives": 17, + "negatives": 2657, + "auroc": 0.6663640992716243, + "auprc": 0.012848734879083442, + "brier": 0.0063220726824933975, + "calibration": { + "observed_rate": 0.006357516828721017, + "mean_prediction": 0.002696580284949988, + "calibration_in_the_large": -0.0036609365437710287, + "expected_calibration_error_10bin": 0.0036609365437710287, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.940555750967288 + }, + { + "valid": 2674, + "positives": 24, + "negatives": 2650, + "auroc": 0.6784591194968553, + "auprc": 0.0174985853583628, + "brier": 0.008908988834451797, + "calibration": { + "observed_rate": 0.008975317875841436, + "mean_prediction": 0.003438053471802326, + "calibration_in_the_large": -0.0055372644040391095, + "expected_calibration_error_10bin": 0.0055372644040391095, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.940555750967288 + }, + { + "valid": 2674, + "positives": 25, + "negatives": 2649, + "auroc": 0.6829143072857682, + "auprc": 0.01809771877234493, + "brier": 0.009274440745588874, + "calibration": { + "observed_rate": 0.009349289454001496, + "mean_prediction": 0.00396661234044287, + "calibration_in_the_large": -0.005382677113558627, + "expected_calibration_error_10bin": 0.005382677113558627, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.940555750967288 + }, + { + "valid": 2674, + "positives": 27, + "negatives": 2647, + "auroc": 0.6983867131203738, + "auprc": 0.02142729699797991, + "brier": 0.009997594829658724, + "calibration": { + "observed_rate": 0.010097232610321616, + "mean_prediction": 0.004573674869195243, + "calibration_in_the_large": -0.005523557741126372, + "expected_calibration_error_10bin": 0.005523557741126372, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.940555750967288 + }, + { + "valid": 2674, + "positives": 30, + "negatives": 2644, + "auroc": 0.7005547150781644, + "auprc": 0.023265420423669483, + "brier": 0.011099587144116746, + "calibration": { + "observed_rate": 0.011219147344801795, + "mean_prediction": 0.005091922685673358, + "calibration_in_the_large": -0.006127224659128437, + "expected_calibration_error_10bin": 0.006127224659128437, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.940555750967288 + }, + { + "valid": 2674, + "positives": 32, + "negatives": 2642, + "auroc": 0.6867666540499622, + "auprc": 0.02302388480323497, + "brier": 0.011841112893353779, + "calibration": { + "observed_rate": 0.011967090501121914, + "mean_prediction": 0.005359398021347745, + "calibration_in_the_large": -0.006607692479774169, + "expected_calibration_error_10bin": 0.006607692479774169, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.940555750967288 + }, + { + "valid": 2674, + "positives": 33, + "negatives": 2641, + "auroc": 0.6848301263295583, + "auprc": 0.023390630999631346, + "brier": 0.01220703119672975, + "calibration": { + "observed_rate": 0.012341062079281975, + "mean_prediction": 0.005949287095622648, + "calibration_in_the_large": -0.006391774983659327, + "expected_calibration_error_10bin": 0.006391774983659327, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.940555750967288 + }, + { + "valid": 2674, + "positives": 34, + "negatives": 2640, + "auroc": 0.6836452762923351, + "auprc": 0.02359548513080593, + "brier": 0.012575302776580737, + "calibration": { + "observed_rate": 0.012715033657442034, + "mean_prediction": 0.006261890190097222, + "calibration_in_the_large": -0.006453143467344812, + "expected_calibration_error_10bin": 0.006453143467344812, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.940555750967288 + }, + { + "valid": 2674, + "positives": 35, + "negatives": 2639, + "auroc": 0.684653277756726, + "auprc": 0.02390294156264333, + "brier": 0.012944944258114625, + "calibration": { + "observed_rate": 0.013089005235602094, + "mean_prediction": 0.006536204449046244, + "calibration_in_the_large": -0.00655280078655585, + "expected_calibration_error_10bin": 0.00655280078655585, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.940555750967288 + }, + { + "valid": 2674, + "positives": 37, + "negatives": 2637, + "auroc": 0.6926482796789964, + "auprc": 0.02703012478313738, + "brier": 0.013659866597520857, + "calibration": { + "observed_rate": 0.013836948391922213, + "mean_prediction": 0.006869851375080558, + "calibration_in_the_large": -0.006967097016841655, + "expected_calibration_error_10bin": 0.007119776894552604, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.940555750967288 + }, + { + "valid": 2674, + "positives": 37, + "negatives": 2637, + "auroc": 0.6926995254640306, + "auprc": 0.027036763360624886, + "brier": 0.01366000495296213, + "calibration": { + "observed_rate": 0.013836948391922213, + "mean_prediction": 0.006904185646872596, + "calibration_in_the_large": -0.006932762745049618, + "expected_calibration_error_10bin": 0.007086502399585998, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.940555750967288 + } + ], + "reason": null + }, + "M21": { + "time_averaged_auroc": 0.9076970138624719, + "time_averaged_auprc": 0.0050163171840574994, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.8570921985815603, + "auprc": 0.0024752475247524753, + "brier": 0.0003543193374737832, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0002577175617430773, + "calibration_in_the_large": -9.676666370889007e-05, + "expected_calibration_error_10bin": 9.676666370889007e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.8780141843971632, + "auprc": 0.002898550724637681, + "brier": 0.0003545103995472279, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0006792093165811141, + "calibration_in_the_large": 0.00032472509112914676, + "expected_calibration_error_10bin": 0.00032472509112914676, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.924468085106383, + "auprc": 0.004672897196261682, + "brier": 0.0003558535315227909, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0011927226355331424, + "calibration_in_the_large": 0.000838238410081175, + "expected_calibration_error_10bin": 0.000838238410081175, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.9319148936170213, + "auprc": 0.0051813471502590676, + "brier": 0.00035741411897570794, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0015554144714945823, + "calibration_in_the_large": 0.001200930246042615, + "expected_calibration_error_10bin": 0.001200930246042615, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.9280141843971631, + "auprc": 0.004901960784313725, + "brier": 0.0003591655492968749, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0018592718722095416, + "calibration_in_the_large": 0.0015047876467575742, + "expected_calibration_error_10bin": 0.0015047876467575742, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.9336879432624113, + "auprc": 0.005319148936170213, + "brier": 0.00036054023276438433, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.002055114045022664, + "calibration_in_the_large": 0.0017006298195706964, + "expected_calibration_error_10bin": 0.0017006298195706964, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.9237588652482269, + "auprc": 0.004629629629629629, + "brier": 0.00036353926042722706, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0024485556237134414, + "calibration_in_the_large": 0.002094071398261474, + "expected_calibration_error_10bin": 0.002094071398261474, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.9290780141843972, + "auprc": 0.004975124378109453, + "brier": 0.00036707981681021156, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.002802598292070779, + "calibration_in_the_large": 0.0024481140666188115, + "expected_calibration_error_10bin": 0.0024481140666188115, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 2, + "negatives": 2819, + "auroc": 0.9074139765874424, + "auprc": 0.005586851553794726, + "brier": 0.0007202027935256446, + "calibration": { + "observed_rate": 0.0007089684509039348, + "mean_prediction": 0.003087978887587589, + "calibration_in_the_large": 0.002379010436683654, + "expected_calibration_error_10bin": 0.002379010436683654, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 2, + "negatives": 2819, + "auroc": 0.9081234480312167, + "auprc": 0.005624490819076267, + "brier": 0.0007225091429449195, + "calibration": { + "observed_rate": 0.0007089684509039348, + "mean_prediction": 0.003282953659220307, + "calibration_in_the_large": 0.0025739852083163724, + "expected_calibration_error_10bin": 0.0025739852083163724, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 3, + "negatives": 2818, + "auroc": 0.8921220723917672, + "auprc": 0.006273280542286389, + "brier": 0.0010742016308320683, + "calibration": { + "observed_rate": 0.0010634526763559022, + "mean_prediction": 0.003408694369839707, + "calibration_in_the_large": 0.0023452416934838047, + "expected_calibration_error_10bin": 0.0023452416934838047, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 3, + "negatives": 2818, + "auroc": 0.8931866572036906, + "auprc": 0.006334268629738221, + "brier": 0.0010765031204284874, + "calibration": { + "observed_rate": 0.0010634526763559022, + "mean_prediction": 0.003622172600838793, + "calibration_in_the_large": 0.002558719924482891, + "expected_calibration_error_10bin": 0.002558719924482891, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 3, + "negatives": 2818, + "auroc": 0.8931866572036906, + "auprc": 0.006339325523717962, + "brier": 0.001076635257227882, + "calibration": { + "observed_rate": 0.0010634526763559022, + "mean_prediction": 0.0036344287873516946, + "calibration_in_the_large": 0.0025709761109957924, + "expected_calibration_error_10bin": 0.0025709761109957924, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + } + ], + "reason": null + }, + "M25": { + "time_averaged_auroc": 0.6835260203192843, + "time_averaged_auprc": 0.03359131673228796, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2717, + "positives": 5, + "negatives": 2712, + "auroc": 0.8441002949852507, + "auprc": 0.061386009328013094, + "brier": 0.0018122871774608528, + "calibration": { + "observed_rate": 0.001840264998159735, + "mean_prediction": 0.002802022432131471, + "calibration_in_the_large": 0.0009617574339717361, + "expected_calibration_error_10bin": 0.0009617574339717361, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9556806190643686 + }, + { + "valid": 2717, + "positives": 8, + "negatives": 2709, + "auroc": 0.7655500184569952, + "auprc": 0.034465874755331596, + "brier": 0.0029102383322358433, + "calibration": { + "observed_rate": 0.002944423997055576, + "mean_prediction": 0.004868064556344706, + "calibration_in_the_large": 0.0019236405592891297, + "expected_calibration_error_10bin": 0.0019236405592891297, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9556806190643686 + }, + { + "valid": 2717, + "positives": 13, + "negatives": 2704, + "auroc": 0.693075785161584, + "auprc": 0.032859324902172964, + "brier": 0.004721724404871372, + "calibration": { + "observed_rate": 0.004784688995215311, + "mean_prediction": 0.0060872743218995965, + "calibration_in_the_large": 0.0013025853266842857, + "expected_calibration_error_10bin": 0.0013025853266842857, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9556806190643686 + }, + { + "valid": 2717, + "positives": 20, + "negatives": 2697, + "auroc": 0.675176121616611, + "auprc": 0.03136357425638935, + "brier": 0.007253060544759465, + "calibration": { + "observed_rate": 0.00736105999263894, + "mean_prediction": 0.007420478396068927, + "calibration_in_the_large": 5.9418403429986784e-05, + "expected_calibration_error_10bin": 5.9418403429986784e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9556806190643686 + }, + { + "valid": 2717, + "positives": 22, + "negatives": 2695, + "auroc": 0.6550514420644291, + "auprc": 0.02844454800349452, + "brier": 0.0079859804052076, + "calibration": { + "observed_rate": 0.008097165991902834, + "mean_prediction": 0.0084019237656977, + "calibration_in_the_large": 0.000304757773794866, + "expected_calibration_error_10bin": 0.000304757773794866, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9556806190643686 + }, + { + "valid": 2717, + "positives": 26, + "negatives": 2691, + "auroc": 0.654775176514307, + "auprc": 0.02911643033825436, + "brier": 0.009432344684215553, + "calibration": { + "observed_rate": 0.009569377990430622, + "mean_prediction": 0.009193162859006081, + "calibration_in_the_large": -0.0003762151314245406, + "expected_calibration_error_10bin": 0.0004499690402659944, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9556806190643686 + }, + { + "valid": 2717, + "positives": 28, + "negatives": 2689, + "auroc": 0.6557004728257982, + "auprc": 0.0288404123220903, + "brier": 0.010155650912079223, + "calibration": { + "observed_rate": 0.010305483989694516, + "mean_prediction": 0.010145209360951547, + "calibration_in_the_large": -0.00016027462874296933, + "expected_calibration_error_10bin": 0.00024046127070073995, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9556806190643686 + }, + { + "valid": 2717, + "positives": 31, + "negatives": 2686, + "auroc": 0.6549732183604352, + "auprc": 0.029049033857627443, + "brier": 0.01123770701417658, + "calibration": { + "observed_rate": 0.011409642988590356, + "mean_prediction": 0.01098808615020177, + "calibration_in_the_large": -0.000421556838388586, + "expected_calibration_error_10bin": 0.0006664148799862188, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9556806190643686 + }, + { + "valid": 2717, + "positives": 34, + "negatives": 2683, + "auroc": 0.6597202429238561, + "auprc": 0.029404957359301983, + "brier": 0.01231337640807976, + "calibration": { + "observed_rate": 0.012513801987486198, + "mean_prediction": 0.011805833512229039, + "calibration_in_the_large": -0.0007079684752571598, + "expected_calibration_error_10bin": 0.0010369451238840962, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9556806190643686 + }, + { + "valid": 2717, + "positives": 37, + "negatives": 2680, + "auroc": 0.6557987091569181, + "auprc": 0.030064691297590186, + "brier": 0.013392576349819545, + "calibration": { + "observed_rate": 0.013617960986382039, + "mean_prediction": 0.013010710548290885, + "calibration_in_the_large": -0.0006072504380911538, + "expected_calibration_error_10bin": 0.0010426165568395522, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9556806190643686 + }, + { + "valid": 2717, + "positives": 41, + "negatives": 2676, + "auroc": 0.6640781654453316, + "auprc": 0.031243464758748042, + "brier": 0.014821672843957984, + "calibration": { + "observed_rate": 0.015090172984909826, + "mean_prediction": 0.013650628593710879, + "calibration_in_the_large": -0.0014395443911989474, + "expected_calibration_error_10bin": 0.0021225252224905036, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9556806190643686 + }, + { + "valid": 2717, + "positives": 48, + "negatives": 2669, + "auroc": 0.6512816910203572, + "auprc": 0.034804333507843815, + "brier": 0.017312086276889023, + "calibration": { + "observed_rate": 0.017666543982333457, + "mean_prediction": 0.014491852431070987, + "calibration_in_the_large": -0.00317469155126247, + "expected_calibration_error_10bin": 0.003392892342350793, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9556806190643686 + }, + { + "valid": 2717, + "positives": 49, + "negatives": 2668, + "auroc": 0.6565569256188233, + "auprc": 0.035644462832885755, + "brier": 0.017657910650889796, + "calibration": { + "observed_rate": 0.0180345969819654, + "mean_prediction": 0.014702891068556028, + "calibration_in_the_large": -0.0033317059134093732, + "expected_calibration_error_10bin": 0.003634307440910192, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9556806190643686 + } + ], + "reason": null + }, + "M35": { + "time_averaged_auroc": 0.8531111017873625, + "time_averaged_auprc": 0.0030032076527438797, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2806, + "positives": 1, + "negatives": 2805, + "auroc": 0.8516934046345811, + "auprc": 0.002398081534772182, + "brier": 0.0003563299498172109, + "calibration": { + "observed_rate": 0.0003563791874554526, + "mean_prediction": 8.141465400480558e-05, + "calibration_in_the_large": -0.00027496453345064704, + "expected_calibration_error_10bin": 0.00027496453345064704, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 1, + "negatives": 2805, + "auroc": 0.8467023172905526, + "auprc": 0.002320185614849188, + "brier": 0.0003563873786872606, + "calibration": { + "observed_rate": 0.0003563791874554526, + "mean_prediction": 0.0002074385217846529, + "calibration_in_the_large": -0.00014894066567079973, + "expected_calibration_error_10bin": 0.00014894066567079973, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 1, + "negatives": 2805, + "auroc": 0.8385026737967914, + "auprc": 0.0022026431718061676, + "brier": 0.0003564490411275883, + "calibration": { + "observed_rate": 0.0003563791874554526, + "mean_prediction": 0.0002549054417420969, + "calibration_in_the_large": -0.00010147374571335574, + "expected_calibration_error_10bin": 0.00010147374571335574, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 1, + "negatives": 2805, + "auroc": 0.8406417112299466, + "auprc": 0.002232142857142857, + "brier": 0.0003565581740437144, + "calibration": { + "observed_rate": 0.0003563791874554526, + "mean_prediction": 0.0003268443201050208, + "calibration_in_the_large": -2.9534867350431825e-05, + "expected_calibration_error_10bin": 2.9534867350431825e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 1, + "negatives": 2805, + "auroc": 0.8409982174688057, + "auprc": 0.0022371364653243847, + "brier": 0.0003567969089798993, + "calibration": { + "observed_rate": 0.0003563791874554526, + "mean_prediction": 0.00044539367597442355, + "calibration_in_the_large": 8.901448851897093e-05, + "expected_calibration_error_10bin": 8.901448851897093e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 1, + "negatives": 2805, + "auroc": 0.8388591800356506, + "auprc": 0.002207505518763797, + "brier": 0.0003572323687969755, + "calibration": { + "observed_rate": 0.0003563791874554526, + "mean_prediction": 0.0005341548635533205, + "calibration_in_the_large": 0.00017777567609786793, + "expected_calibration_error_10bin": 0.00017777567609786793, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 1, + "negatives": 2805, + "auroc": 0.8367201426024955, + "auprc": 0.002178649237472767, + "brier": 0.0003573743234959312, + "calibration": { + "observed_rate": 0.0003563791874554526, + "mean_prediction": 0.0005696056373789395, + "calibration_in_the_large": 0.00021322644992348688, + "expected_calibration_error_10bin": 0.00021322644992348688, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 2, + "negatives": 2804, + "auroc": 0.8625178316690443, + "auprc": 0.003767066267066267, + "brier": 0.0007131180889092455, + "calibration": { + "observed_rate": 0.0007127583749109052, + "mean_prediction": 0.0006529137132107158, + "calibration_in_the_large": -5.984466170018941e-05, + "expected_calibration_error_10bin": 5.984466170018941e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 2, + "negatives": 2804, + "auroc": 0.8644793152639088, + "auprc": 0.003825631732608477, + "brier": 0.0007131121398629486, + "calibration": { + "observed_rate": 0.0007127583749109052, + "mean_prediction": 0.0006625006893783825, + "calibration_in_the_large": -5.025768553252273e-05, + "expected_calibration_error_10bin": 5.025768553252273e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 2, + "negatives": 2804, + "auroc": 0.8680456490727532, + "auprc": 0.00393164344979828, + "brier": 0.0007132296207963622, + "calibration": { + "observed_rate": 0.0007127583749109052, + "mean_prediction": 0.0007061345712573346, + "calibration_in_the_large": -6.6238036535706465e-06, + "expected_calibration_error_10bin": 6.6238036535706465e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 2, + "negatives": 2804, + "auroc": 0.8691155492154066, + "auprc": 0.003969427624102987, + "brier": 0.0007133324215633724, + "calibration": { + "observed_rate": 0.0007127583749109052, + "mean_prediction": 0.000731556286185585, + "calibration_in_the_large": 1.8797911274679715e-05, + "expected_calibration_error_10bin": 1.8797911274679715e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 2, + "negatives": 2804, + "auroc": 0.8660841654778887, + "auprc": 0.003885003885003885, + "brier": 0.0007138065802162458, + "calibration": { + "observed_rate": 0.0007127583749109052, + "mean_prediction": 0.0008047895543464686, + "calibration_in_the_large": 9.203117943556332e-05, + "expected_calibration_error_10bin": 9.203117943556332e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 2, + "negatives": 2804, + "auroc": 0.8660841654778887, + "auprc": 0.0038865821269591892, + "brier": 0.0007138096910200331, + "calibration": { + "observed_rate": 0.0007127583749109052, + "mean_prediction": 0.0008068810682284179, + "calibration_in_the_large": 9.412269331751264e-05, + "expected_calibration_error_10bin": 9.412269331751264e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + } + ], + "reason": null + }, + "M46": { + "time_averaged_auroc": 0.5923997330927404, + "time_averaged_auprc": 0.002693717205805201, + "valid_timepoint_cells": 12, + "timepoints": [ + { + "valid": 2814, + "positives": 0, + "negatives": 2814, + "auroc": null, + "auprc": null, + "brier": 1.183255177562076e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0001617015500968195, + "calibration_in_the_large": 0.0001617015500968195, + "expected_calibration_error_10bin": 0.0001617015500968195, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 1, + "negatives": 2813, + "auroc": 0.766797013864202, + "auprc": 0.0015220700152207, + "brier": 0.0003554710870485828, + "calibration": { + "observed_rate": 0.00035536602700781805, + "mean_prediction": 0.00034645813676975737, + "calibration_in_the_large": -8.907890238060679e-06, + "expected_calibration_error_10bin": 8.907890238060679e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 2, + "negatives": 2812, + "auroc": 0.5488975817923186, + "auprc": 0.001401952502917528, + "brier": 0.0007109105401840574, + "calibration": { + "observed_rate": 0.0007107320540156361, + "mean_prediction": 0.000505701747548487, + "calibration_in_the_large": -0.0002050303064671491, + "expected_calibration_error_10bin": 0.0002050303064671491, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 3, + "negatives": 2811, + "auroc": 0.4708881773983161, + "auprc": 0.0014618254750592842, + "brier": 0.0010665256846068864, + "calibration": { + "observed_rate": 0.0010660980810234541, + "mean_prediction": 0.0006634559370800449, + "calibration_in_the_large": -0.0004026421439434092, + "expected_calibration_error_10bin": 0.0004026421439434092, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 3, + "negatives": 2811, + "auroc": 0.4727854855923159, + "auprc": 0.0014586805198741094, + "brier": 0.001067079767260708, + "calibration": { + "observed_rate": 0.0010660980810234541, + "mean_prediction": 0.0008076159069309195, + "calibration_in_the_large": -0.00025848217409253464, + "expected_calibration_error_10bin": 0.00025848217409253464, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 4, + "negatives": 2810, + "auroc": 0.5673487544483986, + "auprc": 0.0024152390625381505, + "brier": 0.0014216183549380956, + "calibration": { + "observed_rate": 0.0014214641080312722, + "mean_prediction": 0.0009115169139725295, + "calibration_in_the_large": -0.0005099471940587427, + "expected_calibration_error_10bin": 0.0005099471940587427, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 4, + "negatives": 2810, + "auroc": 0.5770462633451957, + "auprc": 0.0025805996259164396, + "brier": 0.0014217107124467057, + "calibration": { + "observed_rate": 0.0014214641080312722, + "mean_prediction": 0.0010040473693379843, + "calibration_in_the_large": -0.00041741673869328784, + "expected_calibration_error_10bin": 0.00041741673869328784, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 4, + "negatives": 2810, + "auroc": 0.5801601423487545, + "auprc": 0.0026523802259545825, + "brier": 0.001422039368461215, + "calibration": { + "observed_rate": 0.0014214641080312722, + "mean_prediction": 0.0011198076080909387, + "calibration_in_the_large": -0.00030165649994033346, + "expected_calibration_error_10bin": 0.00030165649994033346, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 4, + "negatives": 2810, + "auroc": 0.5802491103202847, + "auprc": 0.0026322406989086537, + "brier": 0.0014222870060117277, + "calibration": { + "observed_rate": 0.0014214641080312722, + "mean_prediction": 0.0011617529807287721, + "calibration_in_the_large": -0.00025971112730250006, + "expected_calibration_error_10bin": 0.00025971112730250006, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 4, + "negatives": 2810, + "auroc": 0.5798932384341637, + "auprc": 0.0026275598295996665, + "brier": 0.0014223855689811777, + "calibration": { + "observed_rate": 0.0014214641080312722, + "mean_prediction": 0.001180657990340451, + "calibration_in_the_large": -0.00024080611769082116, + "expected_calibration_error_10bin": 0.00024080611769082116, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 7, + "negatives": 2807, + "auroc": 0.6562166013537585, + "auprc": 0.004545555141051013, + "brier": 0.002484986536019095, + "calibration": { + "observed_rate": 0.0024875621890547263, + "mean_prediction": 0.001251500476755273, + "calibration_in_the_large": -0.0012360617122994532, + "expected_calibration_error_10bin": 0.0012360617122994532, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 7, + "negatives": 2807, + "auroc": 0.654333553870426, + "auprc": 0.004515065321771599, + "brier": 0.00248508222380131, + "calibration": { + "observed_rate": 0.0024875621890547263, + "mean_prediction": 0.0013071902636445434, + "calibration_in_the_large": -0.0011803719254101829, + "expected_calibration_error_10bin": 0.0011803719254101829, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 7, + "negatives": 2807, + "auroc": 0.6541808743447504, + "auprc": 0.004511438050850687, + "brier": 0.00248509631683996, + "calibration": { + "observed_rate": 0.0024875621890547263, + "mean_prediction": 0.001311387068054315, + "calibration_in_the_large": -0.0011761751210004113, + "expected_calibration_error_10bin": 0.0011761751210004113, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + } + ], + "reason": null + }, + "M47": { + "time_averaged_auroc": 0.5705702582599088, + "time_averaged_auprc": 0.009217452973989087, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2743, + "positives": 1, + "negatives": 2742, + "auroc": 0.11342086068563093, + "auprc": 0.00041118421052631577, + "brier": 0.00036640128258083344, + "calibration": { + "observed_rate": 0.0003645643456069996, + "mean_prediction": 0.0009742451789200844, + "calibration_in_the_large": 0.0006096808333130848, + "expected_calibration_error_10bin": 0.0006096808333130848, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + { + "valid": 2743, + "positives": 2, + "negatives": 2741, + "auroc": 0.32925939438161256, + "auprc": 0.0008116736087347871, + "brier": 0.0007340361153591362, + "calibration": { + "observed_rate": 0.0007291286912139992, + "mean_prediction": 0.0016975713799486777, + "calibration_in_the_large": 0.0009684426887346785, + "expected_calibration_error_10bin": 0.0009684426887346785, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + { + "valid": 2743, + "positives": 3, + "negatives": 2740, + "auroc": 0.49318734793187347, + "auprc": 0.001648174325113766, + "brier": 0.001098258989842372, + "calibration": { + "observed_rate": 0.001093693036820999, + "mean_prediction": 0.00197986682589466, + "calibration_in_the_large": 0.0008861737890736609, + "expected_calibration_error_10bin": 0.0008861737890736609, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + { + "valid": 2743, + "positives": 3, + "negatives": 2740, + "auroc": 0.5100973236009733, + "auprc": 0.001756159084809995, + "brier": 0.001103771699063596, + "calibration": { + "observed_rate": 0.001093693036820999, + "mean_prediction": 0.002650941889227844, + "calibration_in_the_large": 0.0015572488524068452, + "expected_calibration_error_10bin": 0.0015572488524068452, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + { + "valid": 2743, + "positives": 4, + "negatives": 2739, + "auroc": 0.5357794815626141, + "auprc": 0.002116175775654418, + "brier": 0.0014677150186421099, + "calibration": { + "observed_rate": 0.0014582573824279985, + "mean_prediction": 0.002786345493902637, + "calibration_in_the_large": 0.0013280881114746386, + "expected_calibration_error_10bin": 0.0013280881114746386, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + { + "valid": 2743, + "positives": 5, + "negatives": 2738, + "auroc": 0.6323593864134405, + "auprc": 0.012231091383546187, + "brier": 0.0018214169435153203, + "calibration": { + "observed_rate": 0.0018228217280349982, + "mean_prediction": 0.0029887315365662082, + "calibration_in_the_large": 0.00116590980853121, + "expected_calibration_error_10bin": 0.00116590980853121, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + { + "valid": 2743, + "positives": 7, + "negatives": 2736, + "auroc": 0.7211779448621554, + "auprc": 0.017724650731094107, + "brier": 0.002537847303523188, + "calibration": { + "observed_rate": 0.0025519504192489974, + "mean_prediction": 0.003641806778661625, + "calibration_in_the_large": 0.0010898563594126274, + "expected_calibration_error_10bin": 0.0010898563594126274, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + { + "valid": 2743, + "positives": 9, + "negatives": 2734, + "auroc": 0.6906445582378282, + "auprc": 0.01554362626991144, + "brier": 0.0032645104397083977, + "calibration": { + "observed_rate": 0.0032810791104629965, + "mean_prediction": 0.00423173962553714, + "calibration_in_the_large": 0.0009506605150741438, + "expected_calibration_error_10bin": 0.0009506605150741438, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + { + "valid": 2743, + "positives": 10, + "negatives": 2733, + "auroc": 0.6751189169410904, + "auprc": 0.014355574864585455, + "brier": 0.003627566216479911, + "calibration": { + "observed_rate": 0.0036456434560699965, + "mean_prediction": 0.004405572457779559, + "calibration_in_the_large": 0.0007599290017095625, + "expected_calibration_error_10bin": 0.0007599290017095625, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + { + "valid": 2743, + "positives": 10, + "negatives": 2733, + "auroc": 0.6731430662275887, + "auprc": 0.013710553767108202, + "brier": 0.003629193232530504, + "calibration": { + "observed_rate": 0.0036456434560699965, + "mean_prediction": 0.004620093416449587, + "calibration_in_the_large": 0.0009744499603795906, + "expected_calibration_error_10bin": 0.0009744499603795906, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + { + "valid": 2743, + "positives": 11, + "negatives": 2732, + "auroc": 0.6740982297351258, + "auprc": 0.0135047795769563, + "brier": 0.00399246579276675, + "calibration": { + "observed_rate": 0.004010207801676996, + "mean_prediction": 0.005017456752997031, + "calibration_in_the_large": 0.0010072489513200354, + "expected_calibration_error_10bin": 0.0010072489513200354, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + { + "valid": 2743, + "positives": 11, + "negatives": 2732, + "auroc": 0.6845800612272062, + "auprc": 0.013008310347784623, + "brier": 0.003995503281401267, + "calibration": { + "observed_rate": 0.004010207801676996, + "mean_prediction": 0.005420412926894733, + "calibration_in_the_large": 0.0014102051252177375, + "expected_calibration_error_10bin": 0.0014102051252177375, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + { + "valid": 2743, + "positives": 11, + "negatives": 2732, + "auroc": 0.6845467855716758, + "auprc": 0.013004934716032542, + "brier": 0.003995632824944163, + "calibration": { + "observed_rate": 0.004010207801676996, + "mean_prediction": 0.005431019699433638, + "calibration_in_the_large": 0.0014208118977566426, + "expected_calibration_error_10bin": 0.0014208118977566426, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + } + ], + "reason": null + }, + "M48": { + "time_averaged_auroc": 0.7938092852226475, + "time_averaged_auprc": 0.02745355356969307, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2690, + "positives": 2, + "negatives": 2688, + "auroc": 0.9025297619047619, + "auprc": 0.12691204588910135, + "brier": 0.0007379871778731163, + "calibration": { + "observed_rate": 0.0007434944237918215, + "mean_prediction": 0.0013514940664464666, + "calibration_in_the_large": 0.000607999642654645, + "expected_calibration_error_10bin": 0.000607999642654645, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9461836088638762 + }, + { + "valid": 2690, + "positives": 3, + "negatives": 2687, + "auroc": 0.811065624612331, + "auprc": 0.03554359828449764, + "brier": 0.0011107388919023593, + "calibration": { + "observed_rate": 0.0011152416356877324, + "mean_prediction": 0.0021383509651853824, + "calibration_in_the_large": 0.00102310932949765, + "expected_calibration_error_10bin": 0.00102310932949765, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9461836088638762 + }, + { + "valid": 2690, + "positives": 4, + "negatives": 2686, + "auroc": 0.6960163812360387, + "auprc": 0.0229502433988348, + "brier": 0.001488527707346413, + "calibration": { + "observed_rate": 0.001486988847583643, + "mean_prediction": 0.00314090065057826, + "calibration_in_the_large": 0.0016539118029946169, + "expected_calibration_error_10bin": 0.0016539118029946169, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9461836088638762 + }, + { + "valid": 2690, + "positives": 5, + "negatives": 2685, + "auroc": 0.7439851024208566, + "auprc": 0.02078101460287015, + "brier": 0.0018572813059418753, + "calibration": { + "observed_rate": 0.0018587360594795538, + "mean_prediction": 0.0036002308448839313, + "calibration_in_the_large": 0.0017414947854043775, + "expected_calibration_error_10bin": 0.0017414947854043775, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9461836088638762 + }, + { + "valid": 2690, + "positives": 7, + "negatives": 2683, + "auroc": 0.7904797401629307, + "auprc": 0.02302260366450731, + "brier": 0.0025907496330749616, + "calibration": { + "observed_rate": 0.0026022304832713753, + "mean_prediction": 0.004162801461693241, + "calibration_in_the_large": 0.0015605709784218655, + "expected_calibration_error_10bin": 0.0015605709784218655, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9461836088638762 + }, + { + "valid": 2690, + "positives": 8, + "negatives": 2682, + "auroc": 0.7936707680835198, + "auprc": 0.016043274808117035, + "brier": 0.002960965152518827, + "calibration": { + "observed_rate": 0.002973977695167286, + "mean_prediction": 0.004623534133082552, + "calibration_in_the_large": 0.001649556437915266, + "expected_calibration_error_10bin": 0.001649556437915266, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9461836088638762 + }, + { + "valid": 2690, + "positives": 10, + "negatives": 2680, + "auroc": 0.8001119402985075, + "auprc": 0.015538580253123805, + "brier": 0.0036956747953612932, + "calibration": { + "observed_rate": 0.0037174721189591076, + "mean_prediction": 0.00508556983634537, + "calibration_in_the_large": 0.0013680977173862628, + "expected_calibration_error_10bin": 0.0013680977173862628, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9461836088638762 + }, + { + "valid": 2690, + "positives": 10, + "negatives": 2680, + "auroc": 0.8008208955223881, + "auprc": 0.015526644864444984, + "brier": 0.0036995827569033944, + "calibration": { + "observed_rate": 0.0037174721189591076, + "mean_prediction": 0.005500831886963058, + "calibration_in_the_large": 0.0017833597680039504, + "expected_calibration_error_10bin": 0.0017833597680039504, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9461836088638762 + }, + { + "valid": 2690, + "positives": 10, + "negatives": 2680, + "auroc": 0.7986194029850746, + "auprc": 0.015987418075111563, + "brier": 0.003703879722122605, + "calibration": { + "observed_rate": 0.0037174721189591076, + "mean_prediction": 0.0059455805811634505, + "calibration_in_the_large": 0.002228108462204343, + "expected_calibration_error_10bin": 0.002228108462204343, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9461836088638762 + }, + { + "valid": 2690, + "positives": 10, + "negatives": 2680, + "auroc": 0.8017164179104478, + "auprc": 0.0165940986263379, + "brier": 0.0037075922235896737, + "calibration": { + "observed_rate": 0.0037174721189591076, + "mean_prediction": 0.006343207413426397, + "calibration_in_the_large": 0.0026257352944672897, + "expected_calibration_error_10bin": 0.0026257352944672897, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9461836088638762 + }, + { + "valid": 2690, + "positives": 10, + "negatives": 2680, + "auroc": 0.8007089552238806, + "auprc": 0.016525784254518554, + "brier": 0.003714565536526948, + "calibration": { + "observed_rate": 0.0037174721189591076, + "mean_prediction": 0.006833120618862893, + "calibration_in_the_large": 0.0031156484999037854, + "expected_calibration_error_10bin": 0.0031156484999037854, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9461836088638762 + }, + { + "valid": 2690, + "positives": 11, + "negatives": 2679, + "auroc": 0.7901523635006278, + "auprc": 0.015756887884044668, + "brier": 0.004089322590148542, + "calibration": { + "observed_rate": 0.004089219330855019, + "mean_prediction": 0.007343669622132032, + "calibration_in_the_large": 0.0032544502912770137, + "expected_calibration_error_10bin": 0.0032544502912770137, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9461836088638762 + }, + { + "valid": 2690, + "positives": 11, + "negatives": 2679, + "auroc": 0.7896433540330516, + "auprc": 0.015714001800500147, + "brier": 0.004090656950148502, + "calibration": { + "observed_rate": 0.004089219330855019, + "mean_prediction": 0.007435683608962986, + "calibration_in_the_large": 0.0033464642781079676, + "expected_calibration_error_10bin": 0.0033464642781079676, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9461836088638762 + } + ], + "reason": null + }, + "M51": { + "time_averaged_auroc": 0.6501644749440874, + "time_averaged_auprc": 0.002739264920239147, + "valid_timepoint_cells": 11, + "timepoints": [ + { + "valid": 2785, + "positives": 0, + "negatives": 2785, + "auroc": null, + "auprc": null, + "brier": 4.864524953153144e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0005209057787098076, + "calibration_in_the_large": 0.0005209057787098076, + "expected_calibration_error_10bin": 0.0005209057787098076, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 0, + "negatives": 2785, + "auroc": null, + "auprc": null, + "brier": 1.2658630068469975e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.000854067309167344, + "calibration_in_the_large": 0.000854067309167344, + "expected_calibration_error_10bin": 0.000854067309167344, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 1, + "negatives": 2784, + "auroc": 0.5007183908045977, + "auprc": 0.0007189072609633358, + "brier": 0.00036038291561145874, + "calibration": { + "observed_rate": 0.0003590664272890485, + "mean_prediction": 0.0010245550927142587, + "calibration_in_the_large": 0.0006654886654252103, + "expected_calibration_error_10bin": 0.0006654886654252103, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 1, + "negatives": 2784, + "auroc": 0.5136494252873564, + "auprc": 0.0007380073800738007, + "brier": 0.0003616095722688278, + "calibration": { + "observed_rate": 0.0003590664272890485, + "mean_prediction": 0.0013321120993026675, + "calibration_in_the_large": 0.0009730456720136191, + "expected_calibration_error_10bin": 0.0009730456720136191, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 1, + "negatives": 2784, + "auroc": 0.5362787356321839, + "auprc": 0.0007739938080495357, + "brier": 0.0003620384974003958, + "calibration": { + "observed_rate": 0.0003590664272890485, + "mean_prediction": 0.0014172674641797956, + "calibration_in_the_large": 0.0010582010368907471, + "expected_calibration_error_10bin": 0.0010582010368907471, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 2, + "negatives": 2783, + "auroc": 0.5483291412145167, + "auprc": 0.0011710774927402071, + "brier": 0.0007211468626128866, + "calibration": { + "observed_rate": 0.000718132854578097, + "mean_prediction": 0.001585014804303596, + "calibration_in_the_large": 0.000866881949725499, + "expected_calibration_error_10bin": 0.000866881949725499, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 2, + "negatives": 2783, + "auroc": 0.5896514552641035, + "auprc": 0.0012901987873205926, + "brier": 0.0007224880079031201, + "calibration": { + "observed_rate": 0.000718132854578097, + "mean_prediction": 0.0017919148503033268, + "calibration_in_the_large": 0.00107378199572523, + "expected_calibration_error_10bin": 0.00107378199572523, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 3, + "negatives": 2782, + "auroc": 0.7038102084831057, + "auprc": 0.0025864199549072817, + "brier": 0.0010799581823055285, + "calibration": { + "observed_rate": 0.0010771992818671453, + "mean_prediction": 0.001965815122881457, + "calibration_in_the_large": 0.0008886158410143115, + "expected_calibration_error_10bin": 0.0008886158410143115, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 3, + "negatives": 2782, + "auroc": 0.698058950395399, + "auprc": 0.0025199216184752485, + "brier": 0.001081299297612288, + "calibration": { + "observed_rate": 0.0010771992818671453, + "mean_prediction": 0.0021596569169138823, + "calibration_in_the_large": 0.001082457635046737, + "expected_calibration_error_10bin": 0.001082457635046737, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 4, + "negatives": 2781, + "auroc": 0.7500898957209636, + "auprc": 0.004180346965662552, + "brier": 0.0014372927508595097, + "calibration": { + "observed_rate": 0.001436265709156194, + "mean_prediction": 0.002323395246848852, + "calibration_in_the_large": 0.0008871295376926579, + "expected_calibration_error_10bin": 0.0008871295376926579, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 5, + "negatives": 2780, + "auroc": 0.7715107913669065, + "auprc": 0.005407936755388908, + "brier": 0.0017934851617973308, + "calibration": { + "observed_rate": 0.0017953321364452424, + "mean_prediction": 0.0024505991575849884, + "calibration_in_the_large": 0.0006552670211397459, + "expected_calibration_error_10bin": 0.0006552670211397459, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 5, + "negatives": 2780, + "auroc": 0.7697841726618705, + "auprc": 0.005375090041224364, + "brier": 0.0017945654685290035, + "calibration": { + "observed_rate": 0.0017953321364452424, + "mean_prediction": 0.002689396813777806, + "calibration_in_the_large": 0.0008940646773325637, + "expected_calibration_error_10bin": 0.0008940646773325637, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 5, + "negatives": 2780, + "auroc": 0.7699280575539569, + "auprc": 0.005370014057824792, + "brier": 0.0017946277198471255, + "calibration": { + "observed_rate": 0.0017953321364452424, + "mean_prediction": 0.0026974996627374057, + "calibration_in_the_large": 0.0009021675262921632, + "expected_calibration_error_10bin": 0.0009021675262921632, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + } + ], + "reason": null + }, + "M54": { + "time_averaged_auroc": 0.6749524494505447, + "time_averaged_auprc": 0.03190431668726883, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2567, + "positives": 10, + "negatives": 2557, + "auroc": 0.665858427845131, + "auprc": 0.01556682892850714, + "brier": 0.0038759775041644156, + "calibration": { + "observed_rate": 0.0038955979742890533, + "mean_prediction": 0.004274706754270748, + "calibration_in_the_large": 0.00037910877998169465, + "expected_calibration_error_10bin": 0.00037910877998169465, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9029194512838551 + }, + { + "valid": 2567, + "positives": 13, + "negatives": 2554, + "auroc": 0.6852298054334076, + "auprc": 0.013383197414760798, + "brier": 0.005050562580317724, + "calibration": { + "observed_rate": 0.00506427736657577, + "mean_prediction": 0.006432317004854351, + "calibration_in_the_large": 0.0013680396382785816, + "expected_calibration_error_10bin": 0.0013680396382785816, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9029194512838551 + }, + { + "valid": 2567, + "positives": 22, + "negatives": 2545, + "auroc": 0.6389712448651544, + "auprc": 0.018286300943571684, + "brier": 0.008510018539632541, + "calibration": { + "observed_rate": 0.008570315543435918, + "mean_prediction": 0.008063073880012851, + "calibration_in_the_large": -0.0005072416634230668, + "expected_calibration_error_10bin": 0.0005921723496270084, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9029194512838551 + }, + { + "valid": 2567, + "positives": 27, + "negatives": 2540, + "auroc": 0.6484835228929717, + "auprc": 0.021484507276463255, + "brier": 0.010415592503066248, + "calibration": { + "observed_rate": 0.010518114530580444, + "mean_prediction": 0.009389219374584928, + "calibration_in_the_large": -0.0011288951559955164, + "expected_calibration_error_10bin": 0.001469667175916043, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9029194512838551 + }, + { + "valid": 2567, + "positives": 29, + "negatives": 2538, + "auroc": 0.6716665308007934, + "auprc": 0.026984626088076096, + "brier": 0.011152494797260094, + "calibration": { + "observed_rate": 0.011297234125438255, + "mean_prediction": 0.010684314085298335, + "calibration_in_the_large": -0.0006129200401399203, + "expected_calibration_error_10bin": 0.0010971824057511978, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9029194512838551 + }, + { + "valid": 2567, + "positives": 32, + "negatives": 2535, + "auroc": 0.6767504930966469, + "auprc": 0.03462913714287822, + "brier": 0.012245907940133508, + "calibration": { + "observed_rate": 0.012465913517724971, + "mean_prediction": 0.011735516889353675, + "calibration_in_the_large": -0.0007303966283712954, + "expected_calibration_error_10bin": 0.0007501601655898596, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9029194512838551 + }, + { + "valid": 2567, + "positives": 35, + "negatives": 2532, + "auroc": 0.6723200180546152, + "auprc": 0.03558585293757677, + "brier": 0.01339056715597536, + "calibration": { + "observed_rate": 0.013634592910011687, + "mean_prediction": 0.012722559037918017, + "calibration_in_the_large": -0.0009120338720936694, + "expected_calibration_error_10bin": 0.0012255175354178333, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9029194512838551 + }, + { + "valid": 2567, + "positives": 39, + "negatives": 2528, + "auroc": 0.6847512982797793, + "auprc": 0.03717199227968981, + "brier": 0.014891168263066462, + "calibration": { + "observed_rate": 0.015192832099727308, + "mean_prediction": 0.013537633258078057, + "calibration_in_the_large": -0.0016551988416492504, + "expected_calibration_error_10bin": 0.002094385995724418, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9029194512838551 + }, + { + "valid": 2567, + "positives": 40, + "negatives": 2527, + "auroc": 0.6907004352987732, + "auprc": 0.03994084255407547, + "brier": 0.015243773017090095, + "calibration": { + "observed_rate": 0.015582391897156213, + "mean_prediction": 0.014420934784771054, + "calibration_in_the_large": -0.0011614571123851596, + "expected_calibration_error_10bin": 0.001974376238547671, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9029194512838551 + }, + { + "valid": 2567, + "positives": 43, + "negatives": 2524, + "auroc": 0.6946246268381675, + "auprc": 0.04121874586492418, + "brier": 0.01638481709939755, + "calibration": { + "observed_rate": 0.01675107128944293, + "mean_prediction": 0.015692636857090797, + "calibration_in_the_large": -0.0010584344323521337, + "expected_calibration_error_10bin": 0.0020943767768281905, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9029194512838551 + }, + { + "valid": 2567, + "positives": 46, + "negatives": 2521, + "auroc": 0.6769656623493093, + "auprc": 0.04135428004120788, + "brier": 0.017527988561440916, + "calibration": { + "observed_rate": 0.017919750681729647, + "mean_prediction": 0.01663737655142021, + "calibration_in_the_large": -0.0012823741303094362, + "expected_calibration_error_10bin": 0.0029780406229681254, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9029194512838551 + }, + { + "valid": 2567, + "positives": 47, + "negatives": 2520, + "auroc": 0.6839750084430936, + "auprc": 0.04463037107219512, + "brier": 0.017866647324479054, + "calibration": { + "observed_rate": 0.018309310479158552, + "mean_prediction": 0.017324327443015985, + "calibration_in_the_large": -0.0009849830361425664, + "expected_calibration_error_10bin": 0.0027674967353694784, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9029194512838551 + }, + { + "valid": 2567, + "positives": 47, + "negatives": 2520, + "auroc": 0.6840847686592367, + "auprc": 0.044519434390568345, + "brier": 0.017868971929637545, + "calibration": { + "observed_rate": 0.018309310479158552, + "mean_prediction": 0.017530851441616556, + "calibration_in_the_large": -0.000778459037541996, + "expected_calibration_error_10bin": 0.0027437802577586446, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9029194512838551 + } + ], + "reason": null + }, + "M62": { + "time_averaged_auroc": 0.6960104977294385, + "time_averaged_auprc": 0.024386166094714782, + "valid_timepoint_cells": 12, + "timepoints": [ + { + "valid": 2781, + "positives": 0, + "negatives": 2781, + "auroc": null, + "auprc": null, + "brier": 1.883935426676553e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0010142499046138904, + "calibration_in_the_large": 0.0010142499046138904, + "expected_calibration_error_10bin": 0.0010142499046138904, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9781920506507211 + }, + { + "valid": 2781, + "positives": 2, + "negatives": 2779, + "auroc": 0.4507016912558474, + "auprc": 0.0009662530368451152, + "brier": 0.0007229600117222031, + "calibration": { + "observed_rate": 0.000719165767709457, + "mean_prediction": 0.0016360276250890348, + "calibration_in_the_large": 0.0009168618573795778, + "expected_calibration_error_10bin": 0.0009168618573795778, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + { + "valid": 2781, + "positives": 5, + "negatives": 2776, + "auroc": 0.7651296829971181, + "auprc": 0.04222938895394013, + "brier": 0.0017843853406396962, + "calibration": { + "observed_rate": 0.0017979144192736426, + "mean_prediction": 0.0020766739285451876, + "calibration_in_the_large": 0.000278759509271545, + "expected_calibration_error_10bin": 0.000278759509271545, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + { + "valid": 2781, + "positives": 5, + "negatives": 2776, + "auroc": 0.7759365994236311, + "auprc": 0.0401215861471497, + "brier": 0.00178370822550704, + "calibration": { + "observed_rate": 0.0017979144192736426, + "mean_prediction": 0.0023541792443113195, + "calibration_in_the_large": 0.000556264825037677, + "expected_calibration_error_10bin": 0.000556264825037677, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + { + "valid": 2781, + "positives": 6, + "negatives": 2775, + "auroc": 0.7732732732732732, + "auprc": 0.03334222286801255, + "brier": 0.0021412068915119837, + "calibration": { + "observed_rate": 0.002157497303128371, + "mean_prediction": 0.0026243909649670775, + "calibration_in_the_large": 0.0004668936618387066, + "expected_calibration_error_10bin": 0.0004668936618387066, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + { + "valid": 2781, + "positives": 7, + "negatives": 2774, + "auroc": 0.7974559686888454, + "auprc": 0.030492871448212035, + "brier": 0.0024956823216118955, + "calibration": { + "observed_rate": 0.0025170801869830997, + "mean_prediction": 0.0029532606339616207, + "calibration_in_the_large": 0.000436180446978521, + "expected_calibration_error_10bin": 0.000436180446978521, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + { + "valid": 2781, + "positives": 8, + "negatives": 2773, + "auroc": 0.7103317706455102, + "auprc": 0.026700532340668798, + "brier": 0.0028552807310987215, + "calibration": { + "observed_rate": 0.002876663070837828, + "mean_prediction": 0.0032524313456008566, + "calibration_in_the_large": 0.0003757682747630286, + "expected_calibration_error_10bin": 0.0003757682747630286, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + { + "valid": 2781, + "positives": 9, + "negatives": 2772, + "auroc": 0.7166506333173, + "auprc": 0.022490214378261642, + "brier": 0.0032123920356586628, + "calibration": { + "observed_rate": 0.003236245954692557, + "mean_prediction": 0.0034525972565403857, + "calibration_in_the_large": 0.0002163513018478289, + "expected_calibration_error_10bin": 0.0002163513018478289, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + { + "valid": 2781, + "positives": 10, + "negatives": 2771, + "auroc": 0.6705521472392638, + "auprc": 0.020952555870587704, + "brier": 0.0035721647695462796, + "calibration": { + "observed_rate": 0.003595828838547285, + "mean_prediction": 0.0037807189547074244, + "calibration_in_the_large": 0.0001848901161601393, + "expected_calibration_error_10bin": 0.0001848901161601393, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + { + "valid": 2781, + "positives": 10, + "negatives": 2771, + "auroc": 0.6682425117286178, + "auprc": 0.020510145513845734, + "brier": 0.00357413991186843, + "calibration": { + "observed_rate": 0.003595828838547285, + "mean_prediction": 0.00406819188113831, + "calibration_in_the_large": 0.0004723630425910253, + "expected_calibration_error_10bin": 0.0004723630425910253, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + { + "valid": 2781, + "positives": 11, + "negatives": 2770, + "auroc": 0.664653757794552, + "auprc": 0.018793878243055027, + "brier": 0.003932421462942755, + "calibration": { + "observed_rate": 0.003955411722402014, + "mean_prediction": 0.004263343052091869, + "calibration_in_the_large": 0.0003079313296898553, + "expected_calibration_error_10bin": 0.0003079313296898553, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + { + "valid": 2781, + "positives": 13, + "negatives": 2768, + "auroc": 0.687222098710538, + "auprc": 0.018354720864683767, + "brier": 0.004640830887499141, + "calibration": { + "observed_rate": 0.004674577490111471, + "mean_prediction": 0.0045443820177956135, + "calibration_in_the_large": -0.00013019547231585705, + "expected_calibration_error_10bin": 0.00013019547231585705, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + { + "valid": 2781, + "positives": 14, + "negatives": 2767, + "auroc": 0.671975837678765, + "auprc": 0.017679623471315246, + "brier": 0.004998567873755009, + "calibration": { + "observed_rate": 0.005034160373966199, + "mean_prediction": 0.004559559947936336, + "calibration_in_the_large": -0.00047460042602986367, + "expected_calibration_error_10bin": 0.00047460042602986367, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + } + ], + "reason": null + }, + "M79": { + "time_averaged_auroc": 0.7491955753086506, + "time_averaged_auprc": 0.030593475162535397, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2697, + "positives": 7, + "negatives": 2690, + "auroc": 0.7958045671800319, + "auprc": 0.02641737128301236, + "brier": 0.002577705992314076, + "calibration": { + "observed_rate": 0.0025954764553207266, + "mean_prediction": 0.002386705903230652, + "calibration_in_the_large": -0.00020877055209007466, + "expected_calibration_error_10bin": 0.00020877055209007466, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9486457966936335 + }, + { + "valid": 2697, + "positives": 15, + "negatives": 2682, + "auroc": 0.7276410638826746, + "auprc": 0.01680103861875345, + "brier": 0.005512501648011665, + "calibration": { + "observed_rate": 0.0055617352614015575, + "mean_prediction": 0.0040503985971844705, + "calibration_in_the_large": -0.001511336664217087, + "expected_calibration_error_10bin": 0.001511336664217087, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9486457966936335 + }, + { + "valid": 2697, + "positives": 19, + "negatives": 2678, + "auroc": 0.7339530678825518, + "auprc": 0.020910279171703718, + "brier": 0.006967626382199117, + "calibration": { + "observed_rate": 0.0070448646644419724, + "mean_prediction": 0.005404007749891507, + "calibration_in_the_large": -0.0016408569145504653, + "expected_calibration_error_10bin": 0.0016408569145504653, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9486457966936335 + }, + { + "valid": 2697, + "positives": 19, + "negatives": 2678, + "auroc": 0.7350536535513541, + "auprc": 0.02027197966076779, + "brier": 0.006969635207612115, + "calibration": { + "observed_rate": 0.0070448646644419724, + "mean_prediction": 0.006255252656735263, + "calibration_in_the_large": -0.0007896120077067097, + "expected_calibration_error_10bin": 0.0007896120077067097, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9486457966936335 + }, + { + "valid": 2697, + "positives": 23, + "negatives": 2674, + "auroc": 0.7687880068940848, + "auprc": 0.027298038079246828, + "brier": 0.008395313335556251, + "calibration": { + "observed_rate": 0.008527994067482388, + "mean_prediction": 0.0073231527461532385, + "calibration_in_the_large": -0.0012048413213291498, + "expected_calibration_error_10bin": 0.0012048413213291498, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9486457966936335 + }, + { + "valid": 2697, + "positives": 24, + "negatives": 2673, + "auroc": 0.7754239930165856, + "auprc": 0.029127633977359096, + "brier": 0.008754581123257112, + "calibration": { + "observed_rate": 0.008898776418242492, + "mean_prediction": 0.008154425375167829, + "calibration_in_the_large": -0.0007443510430746626, + "expected_calibration_error_10bin": 0.0008279690002778846, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9486457966936335 + }, + { + "valid": 2697, + "positives": 29, + "negatives": 2668, + "auroc": 0.7491469782350204, + "auprc": 0.030318355954789176, + "brier": 0.010575015938528918, + "calibration": { + "observed_rate": 0.010752688172043012, + "mean_prediction": 0.00879393614752336, + "calibration_in_the_large": -0.0019587520245196513, + "expected_calibration_error_10bin": 0.002126397137962184, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9486457966936335 + }, + { + "valid": 2697, + "positives": 31, + "negatives": 2666, + "auroc": 0.7514338261984851, + "auprc": 0.03171334275273383, + "brier": 0.011299970039994974, + "calibration": { + "observed_rate": 0.011494252873563218, + "mean_prediction": 0.009474912858575038, + "calibration_in_the_large": -0.0020193400149881805, + "expected_calibration_error_10bin": 0.0024420729299011335, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9486457966936335 + }, + { + "valid": 2697, + "positives": 33, + "negatives": 2664, + "auroc": 0.7383519883519883, + "auprc": 0.03131160225351731, + "brier": 0.01204182928568719, + "calibration": { + "observed_rate": 0.012235817575083427, + "mean_prediction": 0.010132612170488652, + "calibration_in_the_large": -0.0021032054045947747, + "expected_calibration_error_10bin": 0.002569496021477829, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9486457966936335 + }, + { + "valid": 2697, + "positives": 39, + "negatives": 2658, + "auroc": 0.7486060465744439, + "auprc": 0.03983949438060973, + "brier": 0.01415267609880049, + "calibration": { + "observed_rate": 0.014460511679644048, + "mean_prediction": 0.010688164577366004, + "calibration_in_the_large": -0.0037723471022780442, + "expected_calibration_error_10bin": 0.004343506726783361, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9486457966936335 + }, + { + "valid": 2697, + "positives": 42, + "negatives": 2655, + "auroc": 0.744238184916151, + "auprc": 0.04162129550540175, + "brier": 0.015225619629501324, + "calibration": { + "observed_rate": 0.01557285873192436, + "mean_prediction": 0.011284433177182925, + "calibration_in_the_large": -0.004288425554741435, + "expected_calibration_error_10bin": 0.005182009040765914, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9486457966936335 + }, + { + "valid": 2697, + "positives": 43, + "negatives": 2654, + "auroc": 0.7355461698883651, + "auprc": 0.041044143158893424, + "brier": 0.015603357717578682, + "calibration": { + "observed_rate": 0.015943641082684465, + "mean_prediction": 0.011957737908060298, + "calibration_in_the_large": -0.0039859031746241665, + "expected_calibration_error_10bin": 0.005189469118912843, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9486457966936335 + }, + { + "valid": 2697, + "positives": 43, + "negatives": 2654, + "auroc": 0.7355549324407213, + "auprc": 0.04104060231617166, + "brier": 0.0156037525768616, + "calibration": { + "observed_rate": 0.015943641082684465, + "mean_prediction": 0.012088099888249736, + "calibration_in_the_large": -0.0038555411944347293, + "expected_calibration_error_10bin": 0.005067293660985522, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9486457966936335 + } + ], + "reason": null + }, + "M81": { + "time_averaged_auroc": 0.7686907315430359, + "time_averaged_auprc": 0.017146199880547504, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2705, + "positives": 2, + "negatives": 2703, + "auroc": 0.5316315205327414, + "auprc": 0.0017331125044362948, + "brier": 0.0007475096666913261, + "calibration": { + "observed_rate": 0.0007393715341959334, + "mean_prediction": 0.0012862843642956678, + "calibration_in_the_large": 0.0005469128300997344, + "expected_calibration_error_10bin": 0.0005469128300997344, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9514597256419275 + }, + { + "valid": 2705, + "positives": 5, + "negatives": 2700, + "auroc": 0.74, + "auprc": 0.010067191292555016, + "brier": 0.0018654354601372674, + "calibration": { + "observed_rate": 0.0018484288354898336, + "mean_prediction": 0.002402365515253708, + "calibration_in_the_large": 0.0005539366797638742, + "expected_calibration_error_10bin": 0.0005539366797638742, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9514597256419275 + }, + { + "valid": 2705, + "positives": 6, + "negatives": 2699, + "auroc": 0.769606026923552, + "auprc": 0.010802843140211696, + "brier": 0.0022526102596488267, + "calibration": { + "observed_rate": 0.0022181146025878, + "mean_prediction": 0.003264457023563425, + "calibration_in_the_large": 0.001046342420975625, + "expected_calibration_error_10bin": 0.001046342420975625, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9514597256419275 + }, + { + "valid": 2705, + "positives": 8, + "negatives": 2697, + "auroc": 0.7973210975157583, + "auprc": 0.016558689483121197, + "brier": 0.002999150536971624, + "calibration": { + "observed_rate": 0.0029574861367837337, + "mean_prediction": 0.004134061627698636, + "calibration_in_the_large": 0.001176575490914902, + "expected_calibration_error_10bin": 0.0011765754909149025, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9514597256419275 + }, + { + "valid": 2705, + "positives": 8, + "negatives": 2697, + "auroc": 0.7967649239896181, + "auprc": 0.0164508143218806, + "brier": 0.003039029241536636, + "calibration": { + "observed_rate": 0.0029574861367837337, + "mean_prediction": 0.0048252186889811656, + "calibration_in_the_large": 0.0018677325521974319, + "expected_calibration_error_10bin": 0.0018677325521974314, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9514597256419275 + }, + { + "valid": 2705, + "positives": 9, + "negatives": 2696, + "auroc": 0.8169304319155951, + "auprc": 0.020487975537139075, + "brier": 0.003401671546443202, + "calibration": { + "observed_rate": 0.0033271719038817007, + "mean_prediction": 0.005179673946610538, + "calibration_in_the_large": 0.0018525020427288376, + "expected_calibration_error_10bin": 0.001852502042728838, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9514597256419275 + }, + { + "valid": 2705, + "positives": 11, + "negatives": 2694, + "auroc": 0.8365053654585949, + "auprc": 0.02305837939968931, + "brier": 0.004139503667726465, + "calibration": { + "observed_rate": 0.004066543438077634, + "mean_prediction": 0.005625589423747923, + "calibration_in_the_large": 0.0015590459856702895, + "expected_calibration_error_10bin": 0.0015590459856702887, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9514597256419275 + }, + { + "valid": 2705, + "positives": 13, + "negatives": 2692, + "auroc": 0.8092067664875986, + "auprc": 0.021389562978096164, + "brier": 0.004922638490631272, + "calibration": { + "observed_rate": 0.004805914972273568, + "mean_prediction": 0.006295862787533938, + "calibration_in_the_large": 0.0014899478152603706, + "expected_calibration_error_10bin": 0.0014899478152603706, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9514597256419275 + }, + { + "valid": 2705, + "positives": 13, + "negatives": 2692, + "auroc": 0.8109498228368957, + "auprc": 0.021483044084349572, + "brier": 0.004935211096650658, + "calibration": { + "observed_rate": 0.004805914972273568, + "mean_prediction": 0.006541966277404796, + "calibration_in_the_large": 0.0017360513051312282, + "expected_calibration_error_10bin": 0.001736051305131228, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9514597256419275 + }, + { + "valid": 2705, + "positives": 13, + "negatives": 2692, + "auroc": 0.809778260372614, + "auprc": 0.021548875345049807, + "brier": 0.005007982241433721, + "calibration": { + "observed_rate": 0.004805914972273568, + "mean_prediction": 0.0075099619216613305, + "calibration_in_the_large": 0.0027040469493877627, + "expected_calibration_error_10bin": 0.0027040469493877636, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9514597256419275 + }, + { + "valid": 2705, + "positives": 16, + "negatives": 2689, + "auroc": 0.7652473038304203, + "auprc": 0.020068323575114882, + "brier": 0.006146180184753675, + "calibration": { + "observed_rate": 0.005914972273567467, + "mean_prediction": 0.008014171606493767, + "calibration_in_the_large": 0.0020991993329262998, + "expected_calibration_error_10bin": 0.0020991993329262998, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9514597256419275 + }, + { + "valid": 2705, + "positives": 17, + "negatives": 2688, + "auroc": 0.7544861694677871, + "auprc": 0.019622336408836483, + "brier": 0.006542161585510805, + "calibration": { + "observed_rate": 0.006284658040665434, + "mean_prediction": 0.008463315255923755, + "calibration_in_the_large": 0.0021786572152583212, + "expected_calibration_error_10bin": 0.0021786572152583204, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9514597256419275 + }, + { + "valid": 2705, + "positives": 17, + "negatives": 2688, + "auroc": 0.7545518207282913, + "auprc": 0.019629450376637457, + "brier": 0.0065499359666134, + "calibration": { + "observed_rate": 0.006284658040665434, + "mean_prediction": 0.00854676752164299, + "calibration_in_the_large": 0.0022621094809775555, + "expected_calibration_error_10bin": 0.0022621094809775547, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9514597256419275 + } + ], + "reason": null + }, + "M84": { + "time_averaged_auroc": 0.7946070891788882, + "time_averaged_auprc": 0.023936581562719213, + "valid_timepoint_cells": 12, + "timepoints": [ + { + "valid": 2818, + "positives": 0, + "negatives": 2818, + "auroc": null, + "auprc": null, + "brier": 6.155575434591876e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00032234274185429516, + "calibration_in_the_large": 0.00032234274185429516, + "expected_calibration_error_10bin": 0.00032234274185429516, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 1, + "negatives": 2817, + "auroc": 0.9808306709265175, + "auprc": 0.01818181818181818, + "brier": 0.0003544194835114663, + "calibration": { + "observed_rate": 0.00035486160397445, + "mean_prediction": 0.0006818898468358316, + "calibration_in_the_large": 0.0003270282428613816, + "expected_calibration_error_10bin": 0.0003270282428613816, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 3, + "negatives": 2815, + "auroc": 0.728478389579633, + "auprc": 0.02136708007061588, + "brier": 0.00106010990840086, + "calibration": { + "observed_rate": 0.0010645848119233499, + "mean_prediction": 0.0010236126361284827, + "calibration_in_the_large": -4.0972175794867175e-05, + "expected_calibration_error_10bin": 4.0972175794867175e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 3, + "negatives": 2815, + "auroc": 0.7267021906453522, + "auprc": 0.0224552102080192, + "brier": 0.0010605410005145902, + "calibration": { + "observed_rate": 0.0010645848119233499, + "mean_prediction": 0.0011412218886101952, + "calibration_in_the_large": 7.66370766868453e-05, + "expected_calibration_error_10bin": 7.66370766868453e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 3, + "negatives": 2815, + "auroc": 0.726939017169923, + "auprc": 0.02237497624494528, + "brier": 0.0010611763917702092, + "calibration": { + "observed_rate": 0.0010645848119233499, + "mean_prediction": 0.001262300427320678, + "calibration_in_the_large": 0.00019771561539732815, + "expected_calibration_error_10bin": 0.00019771561539732815, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.8097404905794525, + "auprc": 0.026734526272781778, + "brier": 0.0017636236342560593, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.0015417709118961545, + "calibration_in_the_large": -0.0002325371079760952, + "expected_calibration_error_10bin": 0.0003116495989390667, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.808460718094561, + "auprc": 0.026951387398209237, + "brier": 0.0017652125271827726, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.001695806760743712, + "calibration_in_the_large": -7.850125912853777e-05, + "expected_calibration_error_10bin": 0.00016556149434189153, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.8096693921080697, + "auprc": 0.027533559104892785, + "brier": 0.0017667062787385284, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.001789861645579662, + "calibration_in_the_large": 1.555362570741228e-05, + "expected_calibration_error_10bin": 7.653481017157163e-05, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.7861545756282599, + "auprc": 0.023587594235016867, + "brier": 0.0021217695335623487, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.001858108615478739, + "calibration_in_the_large": -0.0002710610083679608, + "expected_calibration_error_10bin": 0.0003659435018642404, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.788466097676624, + "auprc": 0.02467929511420761, + "brier": 0.00212700106338654, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.0021993972267063864, + "calibration_in_the_large": 7.022760285968661e-05, + "expected_calibration_error_10bin": 0.00019286482975295556, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.7891773352299668, + "auprc": 0.024348115506406042, + "brier": 0.0021285276426123243, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.0022681896800690105, + "calibration_in_the_large": 0.00013902005622231078, + "expected_calibration_error_10bin": 0.00013902005622231061, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.7900663821716454, + "auprc": 0.0245059786276514, + "brier": 0.002128964292131067, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.0023479349022648218, + "calibration_in_the_large": 0.000218765278418122, + "expected_calibration_error_10bin": 0.00021876527841812183, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.7905998103366524, + "auprc": 0.02451943778806631, + "brier": 0.0021292680778868117, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.002372891094098146, + "calibration_in_the_large": 0.00024372147025144642, + "expected_calibration_error_10bin": 0.00024372147025144647, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + } + ], + "reason": null + }, + "M85": { + "time_averaged_auroc": 0.7156776318835624, + "time_averaged_auprc": 0.006384723351624546, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2768, + "positives": 2, + "negatives": 2766, + "auroc": 0.8091106290672451, + "auprc": 0.006909046986351008, + "brier": 0.000721411571406988, + "calibration": { + "observed_rate": 0.000722543352601156, + "mean_prediction": 0.000472554202872617, + "calibration_in_the_large": -0.000249989149728539, + "expected_calibration_error_10bin": 0.000249989149728539, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 2, + "negatives": 2766, + "auroc": 0.791937816341287, + "auprc": 0.005385393554529766, + "brier": 0.0007215445266839823, + "calibration": { + "observed_rate": 0.000722543352601156, + "mean_prediction": 0.0007189556002999218, + "calibration_in_the_large": -3.5877523012342117e-06, + "expected_calibration_error_10bin": 3.5877523012342117e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 3, + "negatives": 2765, + "auroc": 0.836045810729355, + "auprc": 0.008203950272758805, + "brier": 0.001080830338168842, + "calibration": { + "observed_rate": 0.001083815028901734, + "mean_prediction": 0.0012207993094333763, + "calibration_in_the_large": 0.00013698428053164234, + "expected_calibration_error_10bin": 0.00013698428053164234, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 7, + "negatives": 2761, + "auroc": 0.6815336058363947, + "auprc": 0.006256229863774961, + "brier": 0.0025226618593282056, + "calibration": { + "observed_rate": 0.0025289017341040463, + "mean_prediction": 0.0015219419754807786, + "calibration_in_the_large": -0.0010069597586232677, + "expected_calibration_error_10bin": 0.0010069597586232677, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 7, + "negatives": 2761, + "auroc": 0.6875873130853211, + "auprc": 0.006477784341966397, + "brier": 0.0025222090262074204, + "calibration": { + "observed_rate": 0.0025289017341040463, + "mean_prediction": 0.0017796095221216338, + "calibration_in_the_large": -0.0007492922119824125, + "expected_calibration_error_10bin": 0.0007492922119824125, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 7, + "negatives": 2761, + "auroc": 0.6860350804573913, + "auprc": 0.00644773605280588, + "brier": 0.002522456175333952, + "calibration": { + "observed_rate": 0.0025289017341040463, + "mean_prediction": 0.001980853317036071, + "calibration_in_the_large": -0.0005480484170679754, + "expected_calibration_error_10bin": 0.0005480484170679754, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 7, + "negatives": 2761, + "auroc": 0.6862937858953795, + "auprc": 0.0062102559602612755, + "brier": 0.0025237596667006764, + "calibration": { + "observed_rate": 0.0025289017341040463, + "mean_prediction": 0.0022504435989692292, + "calibration_in_the_large": -0.00027845813513481706, + "expected_calibration_error_10bin": 0.00027845813513481706, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 7, + "negatives": 2761, + "auroc": 0.6857763750194029, + "auprc": 0.006295052098801278, + "brier": 0.002524816918556628, + "calibration": { + "observed_rate": 0.0025289017341040463, + "mean_prediction": 0.0026022402809058012, + "calibration_in_the_large": 7.333854680175497e-05, + "expected_calibration_error_10bin": 7.333854680175497e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 7, + "negatives": 2761, + "auroc": 0.6865007502457702, + "auprc": 0.006246375649003192, + "brier": 0.0025252638177407794, + "calibration": { + "observed_rate": 0.0025289017341040463, + "mean_prediction": 0.0026807218880509614, + "calibration_in_the_large": 0.0001518201539469151, + "expected_calibration_error_10bin": 0.0001518201539469151, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 7, + "negatives": 2761, + "auroc": 0.6861385626325865, + "auprc": 0.006098721826605855, + "brier": 0.002527423576846667, + "calibration": { + "observed_rate": 0.0025289017341040463, + "mean_prediction": 0.002868200339337219, + "calibration_in_the_large": 0.00033929860523317264, + "expected_calibration_error_10bin": 0.00033929860523317264, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 7, + "negatives": 2761, + "auroc": 0.688363429399286, + "auprc": 0.006135794586979491, + "brier": 0.0025282701559108767, + "calibration": { + "observed_rate": 0.0025289017341040463, + "mean_prediction": 0.003035938352296448, + "calibration_in_the_large": 0.0005070366181924016, + "expected_calibration_error_10bin": 0.0005070366181924016, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 7, + "negatives": 2761, + "auroc": 0.6889325813628603, + "auprc": 0.006152751646237575, + "brier": 0.0025289373348674755, + "calibration": { + "observed_rate": 0.0025289017341040463, + "mean_prediction": 0.003138459265659354, + "calibration_in_the_large": 0.0006095575315553077, + "expected_calibration_error_10bin": 0.0006095575315553077, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 7, + "negatives": 2761, + "auroc": 0.6895534744140321, + "auprc": 0.006182310731043613, + "brier": 0.0025291019834482328, + "calibration": { + "observed_rate": 0.0025289017341040463, + "mean_prediction": 0.00318395739337362, + "calibration_in_the_large": 0.0006550556592695737, + "expected_calibration_error_10bin": 0.0006550556592695737, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + } + ], + "reason": null + }, + "M86": { + "time_averaged_auroc": 0.7964032199341015, + "time_averaged_auprc": 0.02886556871033049, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2803, + "positives": 3, + "negatives": 2800, + "auroc": 0.9598809523809524, + "auprc": 0.06419971497370879, + "brier": 0.0010606295947988603, + "calibration": { + "observed_rate": 0.0010702818408847663, + "mean_prediction": 0.0004833315556155766, + "calibration_in_the_large": -0.0005869502852691897, + "expected_calibration_error_10bin": 0.0005869502852691897, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9859303552585297 + }, + { + "valid": 2803, + "positives": 4, + "negatives": 2799, + "auroc": 0.9117541979278314, + "auprc": 0.026964538570766864, + "brier": 0.0014134901183225873, + "calibration": { + "observed_rate": 0.0014270424545130217, + "mean_prediction": 0.0015349290791471044, + "calibration_in_the_large": 0.0001078866246340827, + "expected_calibration_error_10bin": 0.0001078866246340827, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9859303552585297 + }, + { + "valid": 2803, + "positives": 8, + "negatives": 2795, + "auroc": 0.8092128801431127, + "auprc": 0.02073498340387153, + "brier": 0.002832862798200378, + "calibration": { + "observed_rate": 0.0028540849090260435, + "mean_prediction": 0.0018800840202532745, + "calibration_in_the_large": -0.000974000888772769, + "expected_calibration_error_10bin": 0.000974000888772769, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9859303552585297 + }, + { + "valid": 2803, + "positives": 9, + "negatives": 2794, + "auroc": 0.7626660303825659, + "auprc": 0.019748212831965668, + "brier": 0.0031891970611149186, + "calibration": { + "observed_rate": 0.003210845522654299, + "mean_prediction": 0.00241334647399006, + "calibration_in_the_large": -0.000797499048664239, + "expected_calibration_error_10bin": 0.000797499048664239, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9859303552585297 + }, + { + "valid": 2803, + "positives": 11, + "negatives": 2792, + "auroc": 0.8019666579838499, + "auprc": 0.028356877440230462, + "brier": 0.0038793718119676302, + "calibration": { + "observed_rate": 0.00392436674991081, + "mean_prediction": 0.0029041179547840868, + "calibration_in_the_large": -0.0010202487951267232, + "expected_calibration_error_10bin": 0.0010202487951267232, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9859303552585297 + }, + { + "valid": 2803, + "positives": 13, + "negatives": 2790, + "auroc": 0.7637165701681831, + "auprc": 0.025949355030705723, + "brier": 0.004594011486818823, + "calibration": { + "observed_rate": 0.00463788797716732, + "mean_prediction": 0.0032540464617435154, + "calibration_in_the_large": -0.001383841515423805, + "expected_calibration_error_10bin": 0.0014648472100322588, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9859303552585297 + }, + { + "valid": 2803, + "positives": 14, + "negatives": 2789, + "auroc": 0.7658659017569022, + "auprc": 0.02514859543547489, + "brier": 0.004951188014604433, + "calibration": { + "observed_rate": 0.0049946485907955765, + "mean_prediction": 0.003539241828931782, + "calibration_in_the_large": -0.0014554067618637945, + "expected_calibration_error_10bin": 0.0016979655778338596, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9859303552585297 + }, + { + "valid": 2803, + "positives": 14, + "negatives": 2789, + "auroc": 0.7647390257644829, + "auprc": 0.025171711355014836, + "brier": 0.004957860095183217, + "calibration": { + "observed_rate": 0.0049946485907955765, + "mean_prediction": 0.003877554249287488, + "calibration_in_the_large": -0.0011170943415080886, + "expected_calibration_error_10bin": 0.0015429739674113429, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9859303552585297 + }, + { + "valid": 2803, + "positives": 14, + "negatives": 2789, + "auroc": 0.7633048199559493, + "auprc": 0.0248867705522256, + "brier": 0.004960402583214053, + "calibration": { + "observed_rate": 0.0049946485907955765, + "mean_prediction": 0.004089934792810247, + "calibration_in_the_large": -0.0009047137979853294, + "expected_calibration_error_10bin": 0.0014173500417082126, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9859303552585297 + }, + { + "valid": 2803, + "positives": 15, + "negatives": 2788, + "auroc": 0.7529172644667623, + "auprc": 0.02400907302422223, + "brier": 0.005322767572998499, + "calibration": { + "observed_rate": 0.005351409204423832, + "mean_prediction": 0.004419191003719056, + "calibration_in_the_large": -0.000932218200704776, + "expected_calibration_error_10bin": 0.0014902634551967444, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9859303552585297 + }, + { + "valid": 2803, + "positives": 15, + "negatives": 2788, + "auroc": 0.7522716403634625, + "auprc": 0.023896687783002298, + "brier": 0.005330533189432406, + "calibration": { + "observed_rate": 0.005351409204423832, + "mean_prediction": 0.00470272258802158, + "calibration_in_the_large": -0.000648686616402252, + "expected_calibration_error_10bin": 0.001246554344362382, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9859303552585297 + }, + { + "valid": 2803, + "positives": 16, + "negatives": 2787, + "auroc": 0.7659669895945461, + "auprc": 0.02991438878281829, + "brier": 0.005655114274062009, + "calibration": { + "observed_rate": 0.005708169818052087, + "mean_prediction": 0.004871428048966813, + "calibration_in_the_large": -0.000836741769085274, + "expected_calibration_error_10bin": 0.0014535746083924022, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9859303552585297 + }, + { + "valid": 2803, + "positives": 17, + "negatives": 2786, + "auroc": 0.7789789282547189, + "auprc": 0.03627148405028922, + "brier": 0.005980091417238713, + "calibration": { + "observed_rate": 0.006064930431680342, + "mean_prediction": 0.004879653718858787, + "calibration_in_the_large": -0.0011852767128215551, + "expected_calibration_error_10bin": 0.0018028790113049941, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9859303552585297 + } + ], + "reason": null + }, + "M94": { + "time_averaged_auroc": 0.5003609556041332, + "time_averaged_auprc": 0.001524238073719145, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2819, + "positives": 1, + "negatives": 2818, + "auroc": 0.5752306600425834, + "auprc": 0.0008347245409015025, + "brier": 0.00035472601025937433, + "calibration": { + "observed_rate": 0.000354735721887194, + "mean_prediction": 6.846998420148138e-05, + "calibration_in_the_large": -0.00028626573768571266, + "expected_calibration_error_10bin": 0.00028626573768571266, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 1, + "negatives": 2818, + "auroc": 0.5340667139815471, + "auprc": 0.00076103500761035, + "brier": 0.00035473464084408027, + "calibration": { + "observed_rate": 0.000354735721887194, + "mean_prediction": 9.923054773408436e-05, + "calibration_in_the_large": -0.00025550517415310963, + "expected_calibration_error_10bin": 0.00025550517415310963, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 1, + "negatives": 2818, + "auroc": 0.5617459190915542, + "auprc": 0.0008090614886731392, + "brier": 0.0003547569123960452, + "calibration": { + "observed_rate": 0.000354735721887194, + "mean_prediction": 0.00012456299354891896, + "calibration_in_the_large": -0.00023017272833827506, + "expected_calibration_error_10bin": 0.00023017272833827506, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 1, + "negatives": 2818, + "auroc": 0.5546486870120653, + "auprc": 0.0007961783439490446, + "brier": 0.00035480654904427455, + "calibration": { + "observed_rate": 0.000354735721887194, + "mean_prediction": 0.0001540032476549492, + "calibration_in_the_large": -0.00020073247423224482, + "expected_calibration_error_10bin": 0.00020073247423224482, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 2, + "negatives": 2817, + "auroc": 0.34149804756833513, + "auprc": 0.0008044894816195264, + "brier": 0.0007095561585019338, + "calibration": { + "observed_rate": 0.000709471443774388, + "mean_prediction": 0.0001721605085785047, + "calibration_in_the_large": -0.0005373109351958833, + "expected_calibration_error_10bin": 0.0005373109351958833, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 2, + "negatives": 2817, + "auroc": 0.32658856940007097, + "auprc": 0.0007830024906615505, + "brier": 0.0007095839264024563, + "calibration": { + "observed_rate": 0.000709471443774388, + "mean_prediction": 0.00020152291509482393, + "calibration_in_the_large": -0.0005079485286795641, + "expected_calibration_error_10bin": 0.0005079485286795641, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.5157433712121212, + "auprc": 0.002136667733887594, + "brier": 0.0010639890341332808, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.00025290421234249865, + "calibration_in_the_large": -0.0008113029533190835, + "expected_calibration_error_10bin": 0.0008113029533190835, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.5269886363636364, + "auprc": 0.0023254544607404456, + "brier": 0.0010639609598123514, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.00027476971218233634, + "calibration_in_the_large": -0.0007894374534792457, + "expected_calibration_error_10bin": 0.0007894374534792457, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.5222537878787878, + "auprc": 0.0022572754998606264, + "brier": 0.0010639997999036534, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.00029884312465797434, + "calibration_in_the_large": -0.0007653640410036078, + "expected_calibration_error_10bin": 0.0007653640410036078, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.5147964015151515, + "auprc": 0.0021233602483782766, + "brier": 0.0010640756932341474, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0003269761489805268, + "calibration_in_the_large": -0.0007372310166810553, + "expected_calibration_error_10bin": 0.0007372310166810553, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.5099431818181818, + "auprc": 0.002061839221959667, + "brier": 0.0010641619960476292, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.00036064673473355704, + "calibration_in_the_large": -0.000703560430928025, + "expected_calibration_error_10bin": 0.000703560430928025, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.5104166666666666, + "auprc": 0.00206250615573331, + "brier": 0.001064203432628293, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0003712244692810921, + "calibration_in_the_large": -0.0006929826963804899, + "expected_calibration_error_10bin": 0.0006929826963804899, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.5107717803030303, + "auprc": 0.002059500284373853, + "brier": 0.0010642087312291708, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.00037687405297105275, + "calibration_in_the_large": -0.0006873331126905293, + "expected_calibration_error_10bin": 0.0006873331126905293, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + } + ], + "reason": null + }, + "M96": { + "time_averaged_auroc": 0.8910231012817311, + "time_averaged_auprc": 0.008849137793006544, + "valid_timepoint_cells": 12, + "timepoints": [ + { + "valid": 2804, + "positives": 0, + "negatives": 2804, + "auroc": null, + "auprc": null, + "brier": 1.6017433494256428e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0007315565502527228, + "calibration_in_the_large": 0.0007315565502527228, + "expected_calibration_error_10bin": 0.0007315565502527228, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 1, + "negatives": 2803, + "auroc": 0.952550838387442, + "auprc": 0.007462686567164179, + "brier": 0.00035704658175395525, + "calibration": { + "observed_rate": 0.0003566333808844508, + "mean_prediction": 0.0010741311096224687, + "calibration_in_the_large": 0.000717497728738018, + "expected_calibration_error_10bin": 0.000717497728738018, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 1, + "negatives": 2803, + "auroc": 0.9493399928647878, + "auprc": 0.006993006993006993, + "brier": 0.0003573173387979382, + "calibration": { + "observed_rate": 0.0003566333808844508, + "mean_prediction": 0.0011508901454465607, + "calibration_in_the_large": 0.0007942567645621099, + "expected_calibration_error_10bin": 0.0007942567645621099, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 1, + "negatives": 2803, + "auroc": 0.9486264716375312, + "auprc": 0.006896551724137931, + "brier": 0.00035790665330401767, + "calibration": { + "observed_rate": 0.0003566333808844508, + "mean_prediction": 0.0013217003115562533, + "calibration_in_the_large": 0.0009650669306718025, + "expected_calibration_error_10bin": 0.0009650669306718025, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 2, + "negatives": 2802, + "auroc": 0.8304782298358315, + "auprc": 0.004642055333299573, + "brier": 0.0007137365899080062, + "calibration": { + "observed_rate": 0.0007132667617689016, + "mean_prediction": 0.0014069919118290884, + "calibration_in_the_large": 0.0006937251500601868, + "expected_calibration_error_10bin": 0.0006937251500601868, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 2, + "negatives": 2802, + "auroc": 0.8285153461812991, + "auprc": 0.004582698563017252, + "brier": 0.000713826399057785, + "calibration": { + "observed_rate": 0.0007132667617689016, + "mean_prediction": 0.0014294374940783678, + "calibration_in_the_large": 0.0007161707323094662, + "expected_calibration_error_10bin": 0.0007161707323094662, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 2, + "negatives": 2802, + "auroc": 0.8285153461812991, + "auprc": 0.0045010194788971895, + "brier": 0.0007139693545002619, + "calibration": { + "observed_rate": 0.0007132667617689016, + "mean_prediction": 0.0014682875174879865, + "calibration_in_the_large": 0.0007550207557190849, + "expected_calibration_error_10bin": 0.0007550207557190849, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 3, + "negatives": 2801, + "auroc": 0.8821849339521599, + "auprc": 0.010179695095489114, + "brier": 0.0010663432881393529, + "calibration": { + "observed_rate": 0.0010699001426533524, + "mean_prediction": 0.0015491125637214728, + "calibration_in_the_large": 0.0004792124210681204, + "expected_calibration_error_10bin": 0.0004792124210681204, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 3, + "negatives": 2801, + "auroc": 0.8817089134832797, + "auprc": 0.010044140244715423, + "brier": 0.0010665443368212493, + "calibration": { + "observed_rate": 0.0010699001426533524, + "mean_prediction": 0.001647695513218205, + "calibration_in_the_large": 0.0005777953705648525, + "expected_calibration_error_10bin": 0.0005777953705648525, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 4, + "negatives": 2800, + "auroc": 0.9003571428571429, + "auprc": 0.012832846577642137, + "brier": 0.001419371136109287, + "calibration": { + "observed_rate": 0.0014265335235378032, + "mean_prediction": 0.00176015053402606, + "calibration_in_the_large": 0.0003336170104882568, + "expected_calibration_error_10bin": 0.0003336170104882568, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 4, + "negatives": 2800, + "auroc": 0.8997321428571429, + "auprc": 0.012754795892288279, + "brier": 0.001419436310937493, + "calibration": { + "observed_rate": 0.0014265335235378032, + "mean_prediction": 0.0018264253728856176, + "calibration_in_the_large": 0.0003998918493478144, + "expected_calibration_error_10bin": 0.0003998918493478144, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 4, + "negatives": 2800, + "auroc": 0.895, + "auprc": 0.012640355209849151, + "brier": 0.0014196982574319588, + "calibration": { + "observed_rate": 0.0014265335235378032, + "mean_prediction": 0.0019946078593927326, + "calibration_in_the_large": 0.0005680743358549294, + "expected_calibration_error_10bin": 0.0005680743358549294, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 4, + "negatives": 2800, + "auroc": 0.8952678571428572, + "auprc": 0.012659801836571305, + "brier": 0.001419712037169683, + "calibration": { + "observed_rate": 0.0014265335235378032, + "mean_prediction": 0.0020217059483876696, + "calibration_in_the_large": 0.0005951724248498664, + "expected_calibration_error_10bin": 0.0005951724248498664, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + } + ], + "reason": null + }, + "N12": { + "time_averaged_auroc": 0.6875011198506787, + "time_averaged_auprc": 0.009565494368720244, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2831, + "positives": 3, + "negatives": 2828, + "auroc": 0.6264733616218765, + "auprc": 0.0018262782608685947, + "brier": 0.0010599538200151712, + "calibration": { + "observed_rate": 0.0010596962204168139, + "mean_prediction": 0.0002097551459665853, + "calibration_in_the_large": -0.0008499410744502285, + "expected_calibration_error_10bin": 0.0008499410744502285, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.6548461266360099, + "auprc": 0.0024421748434591854, + "brier": 0.0014165217036306455, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0005207533080234521, + "calibration_in_the_large": -0.000892174985865633, + "expected_calibration_error_10bin": 0.000892174985865633, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.6360099044923948, + "auprc": 0.0023060404282960996, + "brier": 0.0014172869458836162, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0006457000304559928, + "calibration_in_the_large": -0.0007672282634330923, + "expected_calibration_error_10bin": 0.0007672282634330923, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.6403431199151044, + "auprc": 0.0023204560785054207, + "brier": 0.001420106367978811, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0008610267099635075, + "calibration_in_the_large": -0.0005519015839255776, + "expected_calibration_error_10bin": 0.0005519015839255776, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.6430845419172267, + "auprc": 0.0023368787582371577, + "brier": 0.001424789174560743, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0010719434008131731, + "calibration_in_the_large": -0.00034098489307591196, + "expected_calibration_error_10bin": 0.00034098489307591196, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.7103326256192498, + "auprc": 0.013200214538705679, + "brier": 0.0017657761838910846, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.0011704346643471274, + "calibration_in_the_large": -0.0005957257030142289, + "expected_calibration_error_10bin": 0.0005957257030142289, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 7, + "negatives": 2824, + "auroc": 0.7235936867664913, + "auprc": 0.012610434605643832, + "brier": 0.0024699292162804294, + "calibration": { + "observed_rate": 0.002472624514305899, + "mean_prediction": 0.0012615431697735244, + "calibration_in_the_large": -0.0012110813445323748, + "expected_calibration_error_10bin": 0.0012864095040583494, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 7, + "negatives": 2824, + "auroc": 0.7206090651558074, + "auprc": 0.01486136922774273, + "brier": 0.0024682707692581752, + "calibration": { + "observed_rate": 0.002472624514305899, + "mean_prediction": 0.001407563187784312, + "calibration_in_the_large": -0.001065061326521587, + "expected_calibration_error_10bin": 0.0011514474003825963, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 7, + "negatives": 2824, + "auroc": 0.7185855928773776, + "auprc": 0.014838021620324854, + "brier": 0.0024695580688702417, + "calibration": { + "observed_rate": 0.002472624514305899, + "mean_prediction": 0.0015338447207035551, + "calibration_in_the_large": -0.000938779793602344, + "expected_calibration_error_10bin": 0.0010301112686301364, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 7, + "negatives": 2824, + "auroc": 0.718686766491299, + "auprc": 0.014821010834471363, + "brier": 0.0024702648025014535, + "calibration": { + "observed_rate": 0.002472624514305899, + "mean_prediction": 0.001593377532024778, + "calibration_in_the_large": -0.0008792469822811212, + "expected_calibration_error_10bin": 0.0009771096399446746, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 7, + "negatives": 2824, + "auroc": 0.717523269931202, + "auprc": 0.014808811196537583, + "brier": 0.002470391879156474, + "calibration": { + "observed_rate": 0.002472624514305899, + "mean_prediction": 0.0016207371288513735, + "calibration_in_the_large": -0.0008518873854545257, + "expected_calibration_error_10bin": 0.0009510773465500571, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 8, + "negatives": 2823, + "auroc": 0.7138682252922423, + "auprc": 0.013991888198519441, + "brier": 0.0028243822743218867, + "calibration": { + "observed_rate": 0.00282585658777817, + "mean_prediction": 0.0017612331457844289, + "calibration_in_the_large": -0.0010646234419937413, + "expected_calibration_error_10bin": 0.0011669867240589626, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 8, + "negatives": 2823, + "auroc": 0.7135582713425433, + "auprc": 0.01398784820205123, + "brier": 0.0028244273044903873, + "calibration": { + "observed_rate": 0.00282585658777817, + "mean_prediction": 0.0017672673549586934, + "calibration_in_the_large": -0.0010585892328194768, + "expected_calibration_error_10bin": 0.0011612450534706506, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + } + ], + "reason": null + }, + "N13": { + "time_averaged_auroc": 0.7291081671592115, + "time_averaged_auprc": 0.03003989617401761, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2756, + "positives": 2, + "negatives": 2754, + "auroc": 0.7610748002904866, + "auprc": 0.0037788163257030474, + "brier": 0.000725725501957473, + "calibration": { + "observed_rate": 0.000725689404934688, + "mean_prediction": 0.0007260891852044442, + "calibration_in_the_large": 3.99780269756244e-07, + "expected_calibration_error_10bin": 3.99780269756244e-07, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + { + "valid": 2756, + "positives": 2, + "negatives": 2754, + "auroc": 0.7732389251997095, + "auprc": 0.003560308115923435, + "brier": 0.000731289570657343, + "calibration": { + "observed_rate": 0.000725689404934688, + "mean_prediction": 0.0015887133303993124, + "calibration_in_the_large": 0.0008630239254646244, + "expected_calibration_error_10bin": 0.0008630239254646244, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + { + "valid": 2756, + "positives": 4, + "negatives": 2752, + "auroc": 0.8163154069767442, + "auprc": 0.007232563624985996, + "brier": 0.0014551082100498262, + "calibration": { + "observed_rate": 0.001451378809869376, + "mean_prediction": 0.0023782240392189566, + "calibration_in_the_large": 0.0009268452293495807, + "expected_calibration_error_10bin": 0.0009268452293495807, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + { + "valid": 2756, + "positives": 5, + "negatives": 2751, + "auroc": 0.6777898945837877, + "auprc": 0.005850764568279486, + "brier": 0.0018269945106915552, + "calibration": { + "observed_rate": 0.00181422351233672, + "mean_prediction": 0.0030378363321681484, + "calibration_in_the_large": 0.0012236128198314284, + "expected_calibration_error_10bin": 0.0012236128198314284, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + { + "valid": 2756, + "positives": 7, + "negatives": 2749, + "auroc": 0.627396975523567, + "auprc": 0.005506964943363258, + "brier": 0.0025554797494108856, + "calibration": { + "observed_rate": 0.0025399129172714078, + "mean_prediction": 0.0033077124814259464, + "calibration_in_the_large": 0.0007677995641545386, + "expected_calibration_error_10bin": 0.0007677995641545386, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + { + "valid": 2756, + "positives": 8, + "negatives": 2748, + "auroc": 0.6715338427947598, + "auprc": 0.010268915285019144, + "brier": 0.0029118068159739983, + "calibration": { + "observed_rate": 0.002902757619738752, + "mean_prediction": 0.003946511371052694, + "calibration_in_the_large": 0.0010437537513139426, + "expected_calibration_error_10bin": 0.0010437537513139433, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + { + "valid": 2756, + "positives": 11, + "negatives": 2745, + "auroc": 0.6850803113098195, + "auprc": 0.011394952638103605, + "brier": 0.003991553207569766, + "calibration": { + "observed_rate": 0.0039912917271407835, + "mean_prediction": 0.004267806238810985, + "calibration_in_the_large": 0.0002765145116702013, + "expected_calibration_error_10bin": 0.0002765145116702015, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + { + "valid": 2756, + "positives": 15, + "negatives": 2741, + "auroc": 0.7096436823543719, + "auprc": 0.055717060016456744, + "brier": 0.005355863871942602, + "calibration": { + "observed_rate": 0.00544267053701016, + "mean_prediction": 0.00456298784185059, + "calibration_in_the_large": -0.0008796826951595694, + "expected_calibration_error_10bin": 0.0009675111503090916, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + { + "valid": 2756, + "positives": 19, + "negatives": 2737, + "auroc": 0.757917812433898, + "auprc": 0.05741041494562948, + "brier": 0.006747533212689581, + "calibration": { + "observed_rate": 0.006894049346879536, + "mean_prediction": 0.004865677139568435, + "calibration_in_the_large": -0.002028372207311101, + "expected_calibration_error_10bin": 0.002120081825609613, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + { + "valid": 2756, + "positives": 20, + "negatives": 2736, + "auroc": 0.7410453216374269, + "auprc": 0.05489805298684201, + "brier": 0.00710780733682521, + "calibration": { + "observed_rate": 0.00725689404934688, + "mean_prediction": 0.005360810862303642, + "calibration_in_the_large": -0.0018960831870432375, + "expected_calibration_error_10bin": 0.0019957698900296503, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + { + "valid": 2756, + "positives": 21, + "negatives": 2735, + "auroc": 0.7527639940802646, + "auprc": 0.058465210117043385, + "brier": 0.007436462617757899, + "calibration": { + "observed_rate": 0.007619738751814224, + "mean_prediction": 0.005693892946502539, + "calibration_in_the_large": -0.0019258458053116843, + "expected_calibration_error_10bin": 0.0019258458053116852, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + { + "valid": 2756, + "positives": 21, + "negatives": 2735, + "auroc": 0.7522764864629581, + "auprc": 0.05821835993109867, + "brier": 0.007434596173542999, + "calibration": { + "observed_rate": 0.007619738751814224, + "mean_prediction": 0.005942563184504933, + "calibration_in_the_large": -0.001677175567309291, + "expected_calibration_error_10bin": 0.0016771755673092908, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + { + "valid": 2756, + "positives": 21, + "negatives": 2735, + "auroc": 0.7523287194219552, + "auprc": 0.05821626676378071, + "brier": 0.00743443933581105, + "calibration": { + "observed_rate": 0.007619738751814224, + "mean_prediction": 0.005953598284127184, + "calibration_in_the_large": -0.0016661404676870401, + "expected_calibration_error_10bin": 0.0016661404676870406, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + } + ], + "reason": null + }, + "N14": { + "time_averaged_auroc": 0.7590754899987565, + "time_averaged_auprc": 0.03223696857378127, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2826, + "positives": 3, + "negatives": 2823, + "auroc": 0.680954067776597, + "auprc": 0.003493547189531918, + "brier": 0.0010609921934314356, + "calibration": { + "observed_rate": 0.0010615711252653928, + "mean_prediction": 0.0004363418681602589, + "calibration_in_the_large": -0.0006252292571051339, + "expected_calibration_error_10bin": 0.0006252292571051339, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 3, + "negatives": 2823, + "auroc": 0.6743417168496871, + "auprc": 0.0032371357761864605, + "brier": 0.001062274556870615, + "calibration": { + "observed_rate": 0.0010615711252653928, + "mean_prediction": 0.0008460417820294334, + "calibration_in_the_large": -0.0002155293432359594, + "expected_calibration_error_10bin": 0.0002155293432359594, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 5, + "negatives": 2821, + "auroc": 0.6942928039702233, + "auprc": 0.03721549934986953, + "brier": 0.0017567443892230817, + "calibration": { + "observed_rate": 0.0017692852087756545, + "mean_prediction": 0.001091923152458318, + "calibration_in_the_large": -0.0006773620563173366, + "expected_calibration_error_10bin": 0.0006773620563173366, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 6, + "negatives": 2820, + "auroc": 0.7424940898345154, + "auprc": 0.038583014529071695, + "brier": 0.002100057375103284, + "calibration": { + "observed_rate": 0.0021231422505307855, + "mean_prediction": 0.001292133949777303, + "calibration_in_the_large": -0.0008310083007534825, + "expected_calibration_error_10bin": 0.0008310083007534825, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 7, + "negatives": 2819, + "auroc": 0.7757056707038971, + "auprc": 0.039428708624168966, + "brier": 0.0024455249657232355, + "calibration": { + "observed_rate": 0.0024769992922859165, + "mean_prediction": 0.0015294820750221183, + "calibration_in_the_large": -0.0009475172172637982, + "expected_calibration_error_10bin": 0.0009475172172637982, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 7, + "negatives": 2819, + "auroc": 0.7748948461967263, + "auprc": 0.037909727664060366, + "brier": 0.0024447395502562074, + "calibration": { + "observed_rate": 0.0024769992922859165, + "mean_prediction": 0.0016583668416300915, + "calibration_in_the_large": -0.0008186324506558251, + "expected_calibration_error_10bin": 0.0008186324506558251, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 7, + "negatives": 2819, + "auroc": 0.7728677849287995, + "auprc": 0.037215640654911016, + "brier": 0.0024442187885124894, + "calibration": { + "observed_rate": 0.0024769992922859165, + "mean_prediction": 0.0017923182331319718, + "calibration_in_the_large": -0.0006846810591539447, + "expected_calibration_error_10bin": 0.0006846810591539447, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 7, + "negatives": 2819, + "auroc": 0.7761617594891805, + "auprc": 0.03644694811882436, + "brier": 0.0024437485888345206, + "calibration": { + "observed_rate": 0.0024769992922859165, + "mean_prediction": 0.002077228339851919, + "calibration_in_the_large": -0.00039977095243399737, + "expected_calibration_error_10bin": 0.0004843087041693928, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 8, + "negatives": 2818, + "auroc": 0.7991483321504613, + "auprc": 0.03716256534737214, + "brier": 0.002791886795901086, + "calibration": { + "observed_rate": 0.0028308563340410475, + "mean_prediction": 0.0021961595105488988, + "calibration_in_the_large": -0.0006346968234921487, + "expected_calibration_error_10bin": 0.0007298942890924614, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 8, + "negatives": 2818, + "auroc": 0.7960876508161817, + "auprc": 0.03781841037183629, + "brier": 0.002798029358682692, + "calibration": { + "observed_rate": 0.0028308563340410475, + "mean_prediction": 0.002462638462659063, + "calibration_in_the_large": -0.0003682178713819845, + "expected_calibration_error_10bin": 0.000563723352492495, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 8, + "negatives": 2818, + "auroc": 0.7947569198012775, + "auprc": 0.0376155401053205, + "brier": 0.0027986549118352226, + "calibration": { + "observed_rate": 0.0028308563340410475, + "mean_prediction": 0.0025560986609956954, + "calibration_in_the_large": -0.00027475767304535213, + "expected_calibration_error_10bin": 0.00047602633379756684, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 8, + "negatives": 2818, + "auroc": 0.7933818310858765, + "auprc": 0.03649710682031876, + "brier": 0.002799449473353002, + "calibration": { + "observed_rate": 0.0028308563340410475, + "mean_prediction": 0.002715105250593413, + "calibration_in_the_large": -0.00011575108344763453, + "expected_calibration_error_10bin": 0.0003229235463001098, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 8, + "negatives": 2818, + "auroc": 0.7928938963804116, + "auprc": 0.03645674690768447, + "brier": 0.0027998261303783336, + "calibration": { + "observed_rate": 0.0028308563340410475, + "mean_prediction": 0.0027451288604003962, + "calibration_in_the_large": -8.572747364065129e-05, + "expected_calibration_error_10bin": 0.00029468220712003694, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + } + ], + "reason": null + }, + "N17": { + "time_averaged_auroc": 0.8127735451867794, + "time_averaged_auprc": 0.14361396262975237, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2292, + "positives": 25, + "negatives": 2267, + "auroc": 0.7918835465372739, + "auprc": 0.0484962180621124, + "brier": 0.010624097855233267, + "calibration": { + "observed_rate": 0.010907504363001745, + "mean_prediction": 0.011238617749971477, + "calibration_in_the_large": 0.0003311133869697315, + "expected_calibration_error_10bin": 0.0004868844958958029, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8061906436862469 + }, + { + "valid": 2292, + "positives": 41, + "negatives": 2251, + "auroc": 0.8158975414720828, + "auprc": 0.08984130167903355, + "brier": 0.016960586149206744, + "calibration": { + "observed_rate": 0.01788830715532286, + "mean_prediction": 0.017286142695759007, + "calibration_in_the_large": -0.0006021644595638545, + "expected_calibration_error_10bin": 0.002414690970419976, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8061906436862469 + }, + { + "valid": 2292, + "positives": 53, + "negatives": 2239, + "auroc": 0.8157027648798739, + "auprc": 0.11630902340064012, + "brier": 0.021535814617594407, + "calibration": { + "observed_rate": 0.0231239092495637, + "mean_prediction": 0.021532431935862965, + "calibration_in_the_large": -0.0015914773137007364, + "expected_calibration_error_10bin": 0.0028566382416625783, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8061906436862469 + }, + { + "valid": 2292, + "positives": 61, + "negatives": 2231, + "auroc": 0.8071804895253911, + "auprc": 0.11813673648733586, + "brier": 0.024673313025108466, + "calibration": { + "observed_rate": 0.026614310645724257, + "mean_prediction": 0.025047051250240985, + "calibration_in_the_large": -0.0015672593954832725, + "expected_calibration_error_10bin": 0.004294247511499209, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8061906436862469 + }, + { + "valid": 2292, + "positives": 64, + "negatives": 2228, + "auroc": 0.813166236535009, + "auprc": 0.12059366692827632, + "brier": 0.025814323897308495, + "calibration": { + "observed_rate": 0.027923211169284468, + "mean_prediction": 0.027980647792296694, + "calibration_in_the_large": 5.743662301222613e-05, + "expected_calibration_error_10bin": 0.0033355706015467256, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8061906436862469 + }, + { + "valid": 2292, + "positives": 69, + "negatives": 2223, + "auroc": 0.8122722264598695, + "auprc": 0.12228506848316394, + "brier": 0.027829852632062217, + "calibration": { + "observed_rate": 0.030104712041884817, + "mean_prediction": 0.030668947075220474, + "calibration_in_the_large": 0.0005642350333356569, + "expected_calibration_error_10bin": 0.0036272276908690124, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8061906436862469 + }, + { + "valid": 2292, + "positives": 77, + "negatives": 2215, + "auroc": 0.8161121045996893, + "auprc": 0.15588437666901067, + "brier": 0.03055029662585117, + "calibration": { + "observed_rate": 0.033595113438045374, + "mean_prediction": 0.03331666105886465, + "calibration_in_the_large": -0.00027845237918072696, + "expected_calibration_error_10bin": 0.004917796353762704, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8061906436862469 + }, + { + "valid": 2292, + "positives": 83, + "negatives": 2209, + "auroc": 0.8210169787343126, + "auprc": 0.16436075720834964, + "brier": 0.03266544220498883, + "calibration": { + "observed_rate": 0.036212914485165795, + "mean_prediction": 0.035512281461610916, + "calibration_in_the_large": -0.0007006330235548794, + "expected_calibration_error_10bin": 0.0053799757976473, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8061906436862469 + }, + { + "valid": 2292, + "positives": 89, + "negatives": 2203, + "auroc": 0.8264164800807887, + "auprc": 0.17055141435449084, + "brier": 0.03476491044065093, + "calibration": { + "observed_rate": 0.03883071553228621, + "mean_prediction": 0.03760129456784386, + "calibration_in_the_large": -0.0012294209644423473, + "expected_calibration_error_10bin": 0.004519723521809245, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8061906436862469 + }, + { + "valid": 2292, + "positives": 93, + "negatives": 2199, + "auroc": 0.8189793014420045, + "auprc": 0.17772275378475902, + "brier": 0.03619443921240055, + "calibration": { + "observed_rate": 0.04057591623036649, + "mean_prediction": 0.03978762197392354, + "calibration_in_the_large": -0.0007882942564429521, + "expected_calibration_error_10bin": 0.004956327713266123, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8061906436862469 + }, + { + "valid": 2292, + "positives": 101, + "negatives": 2191, + "auroc": 0.8155912350705632, + "auprc": 0.19427093961187394, + "brier": 0.0388748671238858, + "calibration": { + "observed_rate": 0.04406631762652705, + "mean_prediction": 0.041540666216024216, + "calibration_in_the_large": -0.002525651410502837, + "expected_calibration_error_10bin": 0.004650647671481623, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8061906436862469 + }, + { + "valid": 2292, + "positives": 103, + "negatives": 2189, + "auroc": 0.8061268389609122, + "auprc": 0.19461522895829345, + "brier": 0.039741947881300595, + "calibration": { + "observed_rate": 0.04493891797556719, + "mean_prediction": 0.04322862362964111, + "calibration_in_the_large": -0.0017102943459260805, + "expected_calibration_error_10bin": 0.006992637553519648, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8061906436862469 + }, + { + "valid": 2292, + "positives": 104, + "negatives": 2188, + "auroc": 0.8057103431303614, + "auprc": 0.19391402855944112, + "brier": 0.040134560619628765, + "calibration": { + "observed_rate": 0.04537521815008726, + "mean_prediction": 0.043573481192052274, + "calibration_in_the_large": -0.001801736958034983, + "expected_calibration_error_10bin": 0.008272067492164022, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8061906436862469 + } + ], + "reason": null + }, + "N18": { + "time_averaged_auroc": 0.8721002851789168, + "time_averaged_auprc": 0.17347785253920853, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2440, + "positives": 11, + "negatives": 2429, + "auroc": 0.8911261649013811, + "auprc": 0.06489330444224277, + "brier": 0.0044093276293529085, + "calibration": { + "observed_rate": 0.004508196721311476, + "mean_prediction": 0.0034656531436514314, + "calibration_in_the_large": -0.0010425435776600443, + "expected_calibration_error_10bin": 0.0015878134331260894, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.858248329229687 + }, + { + "valid": 2440, + "positives": 15, + "negatives": 2425, + "auroc": 0.8952852233676976, + "auprc": 0.08899907349508858, + "brier": 0.00590471430201852, + "calibration": { + "observed_rate": 0.006147540983606557, + "mean_prediction": 0.005599178001450098, + "calibration_in_the_large": -0.0005483629821564596, + "expected_calibration_error_10bin": 0.0007864346329116697, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.858248329229687 + }, + { + "valid": 2440, + "positives": 21, + "negatives": 2419, + "auroc": 0.8856079844091419, + "auprc": 0.1370034760898476, + "brier": 0.008000841856340795, + "calibration": { + "observed_rate": 0.00860655737704918, + "mean_prediction": 0.007262518107273297, + "calibration_in_the_large": -0.001344039269775884, + "expected_calibration_error_10bin": 0.0016538160166117487, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.858248329229687 + }, + { + "valid": 2440, + "positives": 30, + "negatives": 2410, + "auroc": 0.8650899031811895, + "auprc": 0.13325251192288892, + "brier": 0.011460324166057438, + "calibration": { + "observed_rate": 0.012295081967213115, + "mean_prediction": 0.008723420073859968, + "calibration_in_the_large": -0.003571661893353147, + "expected_calibration_error_10bin": 0.003907972747076768, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.858248329229687 + }, + { + "valid": 2440, + "positives": 32, + "negatives": 2408, + "auroc": 0.8652278862126246, + "auprc": 0.13805985347619226, + "brier": 0.012147280769277964, + "calibration": { + "observed_rate": 0.013114754098360656, + "mean_prediction": 0.010021442258691617, + "calibration_in_the_large": -0.003093311839669039, + "expected_calibration_error_10bin": 0.003485260044461954, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.858248329229687 + }, + { + "valid": 2440, + "positives": 34, + "negatives": 2406, + "auroc": 0.8704219842550487, + "auprc": 0.17838294860961196, + "brier": 0.012618372810207789, + "calibration": { + "observed_rate": 0.013934426229508197, + "mean_prediction": 0.011336639055637115, + "calibration_in_the_large": -0.0025977871738710814, + "expected_calibration_error_10bin": 0.004257750490475821, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.858248329229687 + }, + { + "valid": 2440, + "positives": 37, + "negatives": 2403, + "auroc": 0.8644037295722689, + "auprc": 0.17604010761538139, + "brier": 0.013708252487602997, + "calibration": { + "observed_rate": 0.015163934426229509, + "mean_prediction": 0.012447743908766273, + "calibration_in_the_large": -0.0027161905174632357, + "expected_calibration_error_10bin": 0.0031817460370616646, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.858248329229687 + }, + { + "valid": 2440, + "positives": 41, + "negatives": 2399, + "auroc": 0.8656045710102787, + "auprc": 0.17138285637862563, + "brier": 0.015200606658939842, + "calibration": { + "observed_rate": 0.01680327868852459, + "mean_prediction": 0.013227605752442405, + "calibration_in_the_large": -0.003575672936082184, + "expected_calibration_error_10bin": 0.0043304565317653304, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.858248329229687 + }, + { + "valid": 2440, + "positives": 45, + "negatives": 2395, + "auroc": 0.8734864300626305, + "auprc": 0.20653073755727874, + "brier": 0.01631166011959368, + "calibration": { + "observed_rate": 0.018442622950819672, + "mean_prediction": 0.014290307275174855, + "calibration_in_the_large": -0.004152315675644816, + "expected_calibration_error_10bin": 0.004654236398191942, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.858248329229687 + }, + { + "valid": 2440, + "positives": 46, + "negatives": 2394, + "auroc": 0.8674948240165632, + "auprc": 0.20409409379515822, + "brier": 0.016690543799197266, + "calibration": { + "observed_rate": 0.018852459016393444, + "mean_prediction": 0.015171314987447495, + "calibration_in_the_large": -0.003681144028945949, + "expected_calibration_error_10bin": 0.004162115990670903, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.858248329229687 + }, + { + "valid": 2440, + "positives": 49, + "negatives": 2391, + "auroc": 0.8700654665881409, + "auprc": 0.25530513773188934, + "brier": 0.017362897744006164, + "calibration": { + "observed_rate": 0.020081967213114754, + "mean_prediction": 0.01599277804594883, + "calibration_in_the_large": -0.0040891891671659235, + "expected_calibration_error_10bin": 0.004089189167165922, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.858248329229687 + }, + { + "valid": 2440, + "positives": 50, + "negatives": 2390, + "auroc": 0.8617489539748954, + "auprc": 0.25059659038775906, + "brier": 0.01774040907338036, + "calibration": { + "observed_rate": 0.020491803278688523, + "mean_prediction": 0.016662052170028398, + "calibration_in_the_large": -0.0038297511086601253, + "expected_calibration_error_10bin": 0.0038297511086601253, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.858248329229687 + }, + { + "valid": 2440, + "positives": 50, + "negatives": 2390, + "auroc": 0.8617405857740585, + "auprc": 0.2506713915077462, + "brier": 0.01773668666599681, + "calibration": { + "observed_rate": 0.020491803278688523, + "mean_prediction": 0.016806327493117588, + "calibration_in_the_large": -0.0036854757855709352, + "expected_calibration_error_10bin": 0.0037139787633447253, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.858248329229687 + } + ], + "reason": null + }, + "N20": { + "time_averaged_auroc": 0.7052685250184354, + "time_averaged_auprc": 0.005599081105136494, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2806, + "positives": 6, + "negatives": 2800, + "auroc": 0.7294642857142857, + "auprc": 0.004384723717411623, + "brier": 0.0021371489326734786, + "calibration": { + "observed_rate": 0.0021382751247327157, + "mean_prediction": 0.00023365652315446035, + "calibration_in_the_large": -0.0019046186015782554, + "expected_calibration_error_10bin": 0.0019046186015782554, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 7, + "negatives": 2799, + "auroc": 0.7251059051702139, + "auprc": 0.005515807852331136, + "brier": 0.0024919769676453726, + "calibration": { + "observed_rate": 0.0024946543121881683, + "mean_prediction": 0.0004554866007146265, + "calibration_in_the_large": -0.0020391677114735417, + "expected_calibration_error_10bin": 0.0020391677114735417, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 7, + "negatives": 2799, + "auroc": 0.7536365028326443, + "auprc": 0.00597939818825295, + "brier": 0.0024909814197793187, + "calibration": { + "observed_rate": 0.0024946543121881683, + "mean_prediction": 0.0006299808959030695, + "calibration_in_the_large": -0.0018646734162850987, + "expected_calibration_error_10bin": 0.0018646734162850987, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.7052358827734095, + "auprc": 0.005772886019369476, + "brier": 0.0028469968067843933, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.000690448663861328, + "calibration_in_the_large": -0.002160584835782293, + "expected_calibration_error_10bin": 0.002160584835782293, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.699964260185847, + "auprc": 0.005687410299861884, + "brier": 0.002846834204845991, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.000747338740676771, + "calibration_in_the_large": -0.00210369475896685, + "expected_calibration_error_10bin": 0.00210369475896685, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.6967923516797713, + "auprc": 0.005657468602360989, + "brier": 0.0028466090607727193, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.0008227105912736601, + "calibration_in_the_large": -0.002028322908369961, + "expected_calibration_error_10bin": 0.002028322908369961, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.6903591851322373, + "auprc": 0.005564107356417384, + "brier": 0.00284648216172784, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.0008834459144481112, + "calibration_in_the_large": -0.00196758758519551, + "expected_calibration_error_10bin": 0.00196758758519551, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.6940671908506075, + "auprc": 0.005648832596521174, + "brier": 0.002846409050755034, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.0009680913621013135, + "calibration_in_the_large": -0.0018829421375423075, + "expected_calibration_error_10bin": 0.0018829421375423075, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.6950947105075054, + "auprc": 0.005663507798037374, + "brier": 0.0028461869988741393, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.001103028392039023, + "calibration_in_the_large": -0.001748005107604598, + "expected_calibration_error_10bin": 0.001748005107604598, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.6977305218012866, + "auprc": 0.0057531974855962375, + "brier": 0.0028459216569021732, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.0012198226648177976, + "calibration_in_the_large": -0.0016312108348258234, + "expected_calibration_error_10bin": 0.0016312108348258234, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.69415654038599, + "auprc": 0.005670147245176055, + "brier": 0.002845924305924054, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.001284060549372945, + "calibration_in_the_large": -0.001566972950270676, + "expected_calibration_error_10bin": 0.001566972950270676, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.6936204431736955, + "auprc": 0.005750062114594029, + "brier": 0.002846063202990338, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.00138859393391496, + "calibration_in_the_large": -0.001462439565728661, + "expected_calibration_error_10bin": 0.001462439565728661, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.6932630450321658, + "auprc": 0.005740505090844119, + "brier": 0.0028460721060492916, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.001394111487359945, + "calibration_in_the_large": -0.001456922012283676, + "expected_calibration_error_10bin": 0.001456922012283676, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + } + ], + "reason": null + }, + "N25": { + "time_averaged_auroc": 0.910629305330241, + "time_averaged_auprc": 0.04850135751051365, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2831, + "positives": 2, + "negatives": 2829, + "auroc": 0.9379639448568399, + "auprc": 0.014116318464144552, + "brier": 0.0007057853230742055, + "calibration": { + "observed_rate": 0.0007064641469445425, + "mean_prediction": 0.00010932756786527163, + "calibration_in_the_large": -0.0005971365790792709, + "expected_calibration_error_10bin": 0.0005971365790792709, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.8773434736469756, + "auprc": 0.025401831728362342, + "brier": 0.0014083155446455167, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.00028289137961096285, + "calibration_in_the_large": -0.0011300369142781222, + "expected_calibration_error_10bin": 0.0011300369142781222, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.9012031139419674, + "auprc": 0.038335069105734317, + "brier": 0.001755114358312066, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.00042681554296504937, + "calibration_in_the_large": -0.001339344824396307, + "expected_calibration_error_10bin": 0.001339344824396307, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.9007784854918612, + "auprc": 0.040448963449376096, + "brier": 0.001752077969130725, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.0005846891836854067, + "calibration_in_the_large": -0.0011814711836759496, + "expected_calibration_error_10bin": 0.0011814711836759496, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 6, + "negatives": 2825, + "auroc": 0.9149852507374632, + "auprc": 0.05378324488885868, + "brier": 0.00209744194154932, + "calibration": { + "observed_rate": 0.0021193924408336277, + "mean_prediction": 0.0007216581087579264, + "calibration_in_the_large": -0.0013977343320757014, + "expected_calibration_error_10bin": 0.0013977343320757014, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 6, + "negatives": 2825, + "auroc": 0.9145132743362832, + "auprc": 0.055096136800699365, + "brier": 0.0020945725130089203, + "calibration": { + "observed_rate": 0.0021193924408336277, + "mean_prediction": 0.0008550936788886922, + "calibration_in_the_large": -0.0012642987619449356, + "expected_calibration_error_10bin": 0.0012642987619449356, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 6, + "negatives": 2825, + "auroc": 0.9120353982300885, + "auprc": 0.057894081901231964, + "brier": 0.0020921741001890637, + "calibration": { + "observed_rate": 0.0021193924408336277, + "mean_prediction": 0.0009625909962874415, + "calibration_in_the_large": -0.0011568014445461862, + "expected_calibration_error_10bin": 0.0013056361269077044, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 6, + "negatives": 2825, + "auroc": 0.911976401179941, + "auprc": 0.057345453880674545, + "brier": 0.002092165373824111, + "calibration": { + "observed_rate": 0.0021193924408336277, + "mean_prediction": 0.0010605439724146477, + "calibration_in_the_large": -0.00105884846841898, + "expected_calibration_error_10bin": 0.0012210816738265327, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 7, + "negatives": 2824, + "auroc": 0.9143565358154593, + "auprc": 0.05363547563805743, + "brier": 0.0024443042100490858, + "calibration": { + "observed_rate": 0.002472624514305899, + "mean_prediction": 0.0011234061379041265, + "calibration_in_the_large": -0.0013492183764017727, + "expected_calibration_error_10bin": 0.0015202114486447384, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 7, + "negatives": 2824, + "auroc": 0.9135471469040874, + "auprc": 0.056235702332887126, + "brier": 0.002442507217590388, + "calibration": { + "observed_rate": 0.002472624514305899, + "mean_prediction": 0.0012714678014493829, + "calibration_in_the_large": -0.0012011567128565163, + "expected_calibration_error_10bin": 0.0014678225405328912, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 7, + "negatives": 2824, + "auroc": 0.913445973290166, + "auprc": 0.05937082735001572, + "brier": 0.0024415824564284175, + "calibration": { + "observed_rate": 0.002472624514305899, + "mean_prediction": 0.001391329080854788, + "calibration_in_the_large": -0.001081295433451111, + "expected_calibration_error_10bin": 0.0015084796486949312, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 7, + "negatives": 2824, + "auroc": 0.9130412788344799, + "auprc": 0.059427622062960546, + "brier": 0.0024420317472067707, + "calibration": { + "observed_rate": 0.002472624514305899, + "mean_prediction": 0.0014618707324624007, + "calibration_in_the_large": -0.0010107537818434984, + "expected_calibration_error_10bin": 0.0014563331831895278, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 7, + "negatives": 2824, + "auroc": 0.9129906920275193, + "auprc": 0.05942692003367469, + "brier": 0.0024422089540786663, + "calibration": { + "observed_rate": 0.002472624514305899, + "mean_prediction": 0.0014703874717612226, + "calibration_in_the_large": -0.0010022370425446766, + "expected_calibration_error_10bin": 0.0014506804986551304, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + } + ], + "reason": null + }, + "N28": { + "time_averaged_auroc": 0.8263018418583876, + "time_averaged_auprc": 0.011918946473245123, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2789, + "positives": 3, + "negatives": 2786, + "auroc": 0.9272553242402488, + "auprc": 0.015621577599201719, + "brier": 0.0010712808955369766, + "calibration": { + "observed_rate": 0.0010756543564001434, + "mean_prediction": 0.0007781465438435529, + "calibration_in_the_large": -0.0002975078125565905, + "expected_calibration_error_10bin": 0.0002975078125565905, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 3, + "negatives": 2786, + "auroc": 0.918281885618569, + "auprc": 0.010795591239193296, + "brier": 0.0010712737787581324, + "calibration": { + "observed_rate": 0.0010756543564001434, + "mean_prediction": 0.0012194859029508627, + "calibration_in_the_large": 0.00014383154655071926, + "expected_calibration_error_10bin": 0.00014383154655071926, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 3, + "negatives": 2786, + "auroc": 0.9075137592725533, + "auprc": 0.009920070446386235, + "brier": 0.0010717276515485462, + "calibration": { + "observed_rate": 0.0010756543564001434, + "mean_prediction": 0.0015843764094906545, + "calibration_in_the_large": 0.000508722053090511, + "expected_calibration_error_10bin": 0.000508722053090511, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 3, + "negatives": 2786, + "auroc": 0.9148121560181862, + "auprc": 0.011086987034896965, + "brier": 0.0010720900383326157, + "calibration": { + "observed_rate": 0.0010756543564001434, + "mean_prediction": 0.0019033814202924753, + "calibration_in_the_large": 0.0008277270638923319, + "expected_calibration_error_10bin": 0.0008277270638923319, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 4, + "negatives": 2785, + "auroc": 0.7836624775583483, + "auprc": 0.008927436793126187, + "brier": 0.0014312056899280785, + "calibration": { + "observed_rate": 0.0014342058085335247, + "mean_prediction": 0.00229542233272953, + "calibration_in_the_large": 0.0008612165241960055, + "expected_calibration_error_10bin": 0.0008612165241960055, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 4, + "negatives": 2785, + "auroc": 0.7843806104129264, + "auprc": 0.009157475052166157, + "brier": 0.001432570448654149, + "calibration": { + "observed_rate": 0.0014342058085335247, + "mean_prediction": 0.0025454484208812223, + "calibration_in_the_large": 0.0011112426123476976, + "expected_calibration_error_10bin": 0.0011112426123476976, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 5, + "negatives": 2784, + "auroc": 0.7857040229885057, + "auprc": 0.008910544577401633, + "brier": 0.0017897275792353442, + "calibration": { + "observed_rate": 0.0017927572606669057, + "mean_prediction": 0.0027790864669930515, + "calibration_in_the_large": 0.0009863292063261458, + "expected_calibration_error_10bin": 0.0009863292063261458, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 6, + "negatives": 2783, + "auroc": 0.7541621751107918, + "auprc": 0.007957170636633938, + "brier": 0.0021476712546502617, + "calibration": { + "observed_rate": 0.002151308712800287, + "mean_prediction": 0.0029368159051363246, + "calibration_in_the_large": 0.0007855071923360377, + "expected_calibration_error_10bin": 0.0007855071923360377, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 7, + "negatives": 2782, + "auroc": 0.7708739858272569, + "auprc": 0.00869753582655039, + "brier": 0.0025023654748755793, + "calibration": { + "observed_rate": 0.002509860164933668, + "mean_prediction": 0.0030283435081665433, + "calibration_in_the_large": 0.0005184833432328754, + "expected_calibration_error_10bin": 0.0005184833432328754, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 8, + "negatives": 2781, + "auroc": 0.7978694714131608, + "auprc": 0.015871101728053894, + "brier": 0.002847896778476628, + "calibration": { + "observed_rate": 0.0028684116170670493, + "mean_prediction": 0.0032375333410990083, + "calibration_in_the_large": 0.000369121724031959, + "expected_calibration_error_10bin": 0.000369121724031959, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 9, + "negatives": 2780, + "auroc": 0.807593924860112, + "auprc": 0.016338848619966723, + "brier": 0.003201496920899945, + "calibration": { + "observed_rate": 0.0032269630692004303, + "mean_prediction": 0.0034557637856648666, + "calibration_in_the_large": 0.0002288007164644363, + "expected_calibration_error_10bin": 0.0002288007164644363, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 9, + "negatives": 2780, + "auroc": 0.8064748201438849, + "auprc": 0.01626062762206952, + "brier": 0.0032021056736999238, + "calibration": { + "observed_rate": 0.0032269630692004303, + "mean_prediction": 0.003590660124286025, + "calibration_in_the_large": 0.00036369705508559457, + "expected_calibration_error_10bin": 0.00036369705508559457, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 10, + "negatives": 2779, + "auroc": 0.7833393306944945, + "auprc": 0.015401336976539956, + "brier": 0.003558824214309802, + "calibration": { + "observed_rate": 0.0035855145213338113, + "mean_prediction": 0.0036454075092721507, + "calibration_in_the_large": 5.98929879383394e-05, + "expected_calibration_error_10bin": 5.98929879383394e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + } + ], + "reason": null + }, + "N30": { + "time_averaged_auroc": 0.7252437787340976, + "time_averaged_auprc": 0.010681230635052202, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2829, + "positives": 4, + "negatives": 2825, + "auroc": 0.7261946902654868, + "auprc": 0.005468369109034256, + "brier": 0.0014119459549470994, + "calibration": { + "observed_rate": 0.0014139271827500884, + "mean_prediction": 0.0005202051045371718, + "calibration_in_the_large": -0.0008937220782129166, + "expected_calibration_error_10bin": 0.0008937220782129166, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 6, + "negatives": 2823, + "auroc": 0.7826189632778369, + "auprc": 0.00799739303400565, + "brier": 0.002114401737400117, + "calibration": { + "observed_rate": 0.0021208907741251328, + "mean_prediction": 0.0011688952515317389, + "calibration_in_the_large": -0.0009519955225933939, + "expected_calibration_error_10bin": 0.0009519955225933939, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 7, + "negatives": 2822, + "auroc": 0.8002429887617698, + "auprc": 0.00932622136393881, + "brier": 0.002465353964732688, + "calibration": { + "observed_rate": 0.002474372569812655, + "mean_prediction": 0.0014279704375334456, + "calibration_in_the_large": -0.0010464021322792092, + "expected_calibration_error_10bin": 0.0010464021322792092, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 8, + "negatives": 2821, + "auroc": 0.7496455157745481, + "auprc": 0.009343477084646931, + "brier": 0.0028178225168040204, + "calibration": { + "observed_rate": 0.002827854365500177, + "mean_prediction": 0.0016715865995317431, + "calibration_in_the_large": -0.0011562677659684337, + "expected_calibration_error_10bin": 0.0011562677659684337, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 9, + "negatives": 2820, + "auroc": 0.6851063829787234, + "auprc": 0.008628473028922575, + "brier": 0.0031717062101062204, + "calibration": { + "observed_rate": 0.003181336161187699, + "mean_prediction": 0.001859988105612832, + "calibration_in_the_large": -0.001321348055574867, + "expected_calibration_error_10bin": 0.001321348055574867, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 9, + "negatives": 2820, + "auroc": 0.6855003940110324, + "auprc": 0.008745047276939576, + "brier": 0.0031719689471502474, + "calibration": { + "observed_rate": 0.003181336161187699, + "mean_prediction": 0.002055757630426817, + "calibration_in_the_large": -0.0011255785307608818, + "expected_calibration_error_10bin": 0.0011255785307608818, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 9, + "negatives": 2820, + "auroc": 0.6834909377462569, + "auprc": 0.008629528180448895, + "brier": 0.003173376087954391, + "calibration": { + "observed_rate": 0.003181336161187699, + "mean_prediction": 0.002246946507733641, + "calibration_in_the_large": -0.0009343896534540581, + "expected_calibration_error_10bin": 0.0009343896534540581, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 10, + "negatives": 2819, + "auroc": 0.7124157502660518, + "auprc": 0.012402971658587296, + "brier": 0.00351955046908509, + "calibration": { + "observed_rate": 0.003534817956875221, + "mean_prediction": 0.002784361719093401, + "calibration_in_the_large": -0.0007504562377818199, + "expected_calibration_error_10bin": 0.0007504562377818199, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 10, + "negatives": 2819, + "auroc": 0.7110677545228804, + "auprc": 0.012535753757442532, + "brier": 0.0035220317410654205, + "calibration": { + "observed_rate": 0.003534817956875221, + "mean_prediction": 0.003049145317930829, + "calibration_in_the_large": -0.0004856726389443921, + "expected_calibration_error_10bin": 0.0004856726389443921, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 10, + "negatives": 2819, + "auroc": 0.7114224902447677, + "auprc": 0.01357072784123937, + "brier": 0.0035224798242553352, + "calibration": { + "observed_rate": 0.003534817956875221, + "mean_prediction": 0.0032750359079292608, + "calibration_in_the_large": -0.0002597820489459602, + "expected_calibration_error_10bin": 0.0002597820489459602, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 11, + "negatives": 2818, + "auroc": 0.7270146461062004, + "auprc": 0.014211591484884113, + "brier": 0.003872474743417984, + "calibration": { + "observed_rate": 0.003888299752562743, + "mean_prediction": 0.003421667115876371, + "calibration_in_the_large": -0.00046663263668637184, + "expected_calibration_error_10bin": 0.00046663263668637184, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 11, + "negatives": 2818, + "auroc": 0.7267565649396736, + "auprc": 0.014013433087258099, + "brier": 0.0038756400354354294, + "calibration": { + "observed_rate": 0.003888299752562743, + "mean_prediction": 0.003634488591856199, + "calibration_in_the_large": -0.00025381116070654405, + "expected_calibration_error_10bin": 0.00025381116070654405, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 11, + "negatives": 2818, + "auroc": 0.7266920446480418, + "auprc": 0.01398301134833051, + "brier": 0.0038757221042536347, + "calibration": { + "observed_rate": 0.003888299752562743, + "mean_prediction": 0.0036431576507142925, + "calibration_in_the_large": -0.0002451421018484505, + "expected_calibration_error_10bin": 0.0002451421018484505, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + } + ], + "reason": null + }, + "N32": { + "time_averaged_auroc": 0.8573838564064409, + "time_averaged_auprc": 0.031637632041976685, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2807, + "positives": 5, + "negatives": 2802, + "auroc": 0.839186295503212, + "auprc": 0.018651269724507095, + "brier": 0.0017746045802436697, + "calibration": { + "observed_rate": 0.0017812611328820805, + "mean_prediction": 0.0009210422341170049, + "calibration_in_the_large": -0.0008602188987650755, + "expected_calibration_error_10bin": 0.0008602188987650755, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 7, + "negatives": 2800, + "auroc": 0.8570918367346939, + "auprc": 0.014692371848668432, + "brier": 0.0024802117567465734, + "calibration": { + "observed_rate": 0.0024937655860349127, + "mean_prediction": 0.0015801087168544389, + "calibration_in_the_large": -0.0009136568691804738, + "expected_calibration_error_10bin": 0.0009136568691804738, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 9, + "negatives": 2798, + "auroc": 0.8467953299976173, + "auprc": 0.015461571772922365, + "brier": 0.0031851249302732192, + "calibration": { + "observed_rate": 0.003206270039187745, + "mean_prediction": 0.0020313000770966383, + "calibration_in_the_large": -0.0011749699620911065, + "expected_calibration_error_10bin": 0.0011749699620911065, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 10, + "negatives": 2797, + "auroc": 0.8633178405434394, + "auprc": 0.024588629918911295, + "brier": 0.0035297888863951923, + "calibration": { + "observed_rate": 0.003562522265764161, + "mean_prediction": 0.0024540613699301247, + "calibration_in_the_large": -0.0011084608958340362, + "expected_calibration_error_10bin": 0.0011084608958340362, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 10, + "negatives": 2797, + "auroc": 0.8631033249910619, + "auprc": 0.024313162537546812, + "brier": 0.00352855369677127, + "calibration": { + "observed_rate": 0.003562522265764161, + "mean_prediction": 0.0026493044670894226, + "calibration_in_the_large": -0.0009132177986747383, + "expected_calibration_error_10bin": 0.0009132177986747383, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 10, + "negatives": 2797, + "auroc": 0.8604218805863425, + "auprc": 0.025228511033467106, + "brier": 0.003526543815873278, + "calibration": { + "observed_rate": 0.003562522265764161, + "mean_prediction": 0.0028837353808380535, + "calibration_in_the_large": -0.0006787868849261075, + "expected_calibration_error_10bin": 0.0006787868849261075, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 10, + "negatives": 2797, + "auroc": 0.8575616732213085, + "auprc": 0.02615335829635248, + "brier": 0.0035254331557199076, + "calibration": { + "observed_rate": 0.003562522265764161, + "mean_prediction": 0.0030832001164385176, + "calibration_in_the_large": -0.00047932214932564334, + "expected_calibration_error_10bin": 0.00047932214932564334, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 11, + "negatives": 2796, + "auroc": 0.8695864221615295, + "auprc": 0.040750038279607985, + "brier": 0.00386618437981843, + "calibration": { + "observed_rate": 0.003918774492340577, + "mean_prediction": 0.003273471216122478, + "calibration_in_the_large": -0.000645303276218099, + "expected_calibration_error_10bin": 0.000645303276218099, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 12, + "negatives": 2795, + "auroc": 0.8793381037567084, + "auprc": 0.048556977284398846, + "brier": 0.004209795636363183, + "calibration": { + "observed_rate": 0.004275026718916993, + "mean_prediction": 0.003410903665002007, + "calibration_in_the_large": -0.0008641230539149863, + "expected_calibration_error_10bin": 0.0008641230539149863, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 13, + "negatives": 2794, + "auroc": 0.8598370133803205, + "auprc": 0.04340763627419128, + "brier": 0.004559249590925072, + "calibration": { + "observed_rate": 0.004631278945493409, + "mean_prediction": 0.0037529603867438926, + "calibration_in_the_large": -0.0008783185587495166, + "expected_calibration_error_10bin": 0.0008783185587495166, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 13, + "negatives": 2794, + "auroc": 0.8586806893893508, + "auprc": 0.04385755918296418, + "brier": 0.0045583709082627506, + "calibration": { + "observed_rate": 0.004631278945493409, + "mean_prediction": 0.003837457521027622, + "calibration_in_the_large": -0.0007938214244657873, + "expected_calibration_error_10bin": 0.0007938214244657873, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 15, + "negatives": 2792, + "auroc": 0.8457497612225406, + "auprc": 0.04290805176149779, + "brier": 0.005256905768932059, + "calibration": { + "observed_rate": 0.005343783398646241, + "mean_prediction": 0.004155078817037711, + "calibration_in_the_large": -0.00118870458160853, + "expected_calibration_error_10bin": 0.00118870458160853, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 15, + "negatives": 2792, + "auroc": 0.8453199617956065, + "auprc": 0.04272007863066127, + "brier": 0.005255974503820594, + "calibration": { + "observed_rate": 0.005343783398646241, + "mean_prediction": 0.004237084166013644, + "calibration_in_the_large": -0.0011066992326325973, + "expected_calibration_error_10bin": 0.0011066992326325973, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + } + ], + "reason": null + }, + "N39": { + "time_averaged_auroc": 0.7752240085908517, + "time_averaged_auprc": 0.07719435430252743, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2520, + "positives": 16, + "negatives": 2504, + "auroc": 0.7948282747603834, + "auprc": 0.02160211127893679, + "brier": 0.006274575093699112, + "calibration": { + "observed_rate": 0.006349206349206349, + "mean_prediction": 0.009077143881101316, + "calibration_in_the_large": 0.002727937531894967, + "expected_calibration_error_10bin": 0.002727937531894967, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8863876187126275 + }, + { + "valid": 2520, + "positives": 31, + "negatives": 2489, + "auroc": 0.7877629310903459, + "auprc": 0.040117069915286664, + "brier": 0.01199020986454581, + "calibration": { + "observed_rate": 0.012301587301587301, + "mean_prediction": 0.013673574863614271, + "calibration_in_the_large": 0.00137198756202697, + "expected_calibration_error_10bin": 0.00137198756202697, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8863876187126275 + }, + { + "valid": 2520, + "positives": 44, + "negatives": 2476, + "auroc": 0.7586558231752093, + "auprc": 0.04620628416971805, + "brier": 0.016928341423429312, + "calibration": { + "observed_rate": 0.01746031746031746, + "mean_prediction": 0.016859511432740542, + "calibration_in_the_large": -0.0006008060275769188, + "expected_calibration_error_10bin": 0.0007670742426333671, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8863876187126275 + }, + { + "valid": 2520, + "positives": 54, + "negatives": 2466, + "auroc": 0.7831996635727374, + "auprc": 0.085286493716984, + "brier": 0.02046166042369011, + "calibration": { + "observed_rate": 0.02142857142857143, + "mean_prediction": 0.018940907680717784, + "calibration_in_the_large": -0.0024876637478536447, + "expected_calibration_error_10bin": 0.0024876637478536434, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8863876187126275 + }, + { + "valid": 2520, + "positives": 61, + "negatives": 2459, + "auroc": 0.7829452196347976, + "auprc": 0.0920556742666682, + "brier": 0.022986717154660292, + "calibration": { + "observed_rate": 0.024206349206349207, + "mean_prediction": 0.02126228801877467, + "calibration_in_the_large": -0.002944061187574537, + "expected_calibration_error_10bin": 0.003169038913366089, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8863876187126275 + }, + { + "valid": 2520, + "positives": 65, + "negatives": 2455, + "auroc": 0.7845903180322732, + "auprc": 0.09688996219468181, + "brier": 0.024390279838814848, + "calibration": { + "observed_rate": 0.025793650793650792, + "mean_prediction": 0.023202128389005785, + "calibration_in_the_large": -0.0025915224046450074, + "expected_calibration_error_10bin": 0.0026000853687513713, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8863876187126275 + }, + { + "valid": 2520, + "positives": 71, + "negatives": 2449, + "auroc": 0.7789037204032689, + "auprc": 0.09654051697428281, + "brier": 0.02659763311529988, + "calibration": { + "observed_rate": 0.028174603174603175, + "mean_prediction": 0.024802425597140212, + "calibration_in_the_large": -0.0033721775774629634, + "expected_calibration_error_10bin": 0.0033721775774629647, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8863876187126275 + }, + { + "valid": 2520, + "positives": 74, + "negatives": 2446, + "auroc": 0.7791485271043734, + "auprc": 0.0887415460219629, + "brier": 0.027671704364997, + "calibration": { + "observed_rate": 0.029365079365079365, + "mean_prediction": 0.026054646387291585, + "calibration_in_the_large": -0.00331043297778778, + "expected_calibration_error_10bin": 0.00436887656618464, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8863876187126275 + }, + { + "valid": 2520, + "positives": 78, + "negatives": 2442, + "auroc": 0.7695825195825196, + "auprc": 0.08798063181373363, + "brier": 0.029164474028563998, + "calibration": { + "observed_rate": 0.030952380952380953, + "mean_prediction": 0.0276829704961976, + "calibration_in_the_large": -0.003269410456183352, + "expected_calibration_error_10bin": 0.004424197236186869, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8863876187126275 + }, + { + "valid": 2520, + "positives": 81, + "negatives": 2439, + "auroc": 0.7650980213505839, + "auprc": 0.08752791254235401, + "brier": 0.03026957062393713, + "calibration": { + "observed_rate": 0.03214285714285714, + "mean_prediction": 0.0290464000764399, + "calibration_in_the_large": -0.00309645706641724, + "expected_calibration_error_10bin": 0.003428576122100894, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8863876187126275 + }, + { + "valid": 2520, + "positives": 82, + "negatives": 2438, + "auroc": 0.7640208887732848, + "auprc": 0.08683867439729716, + "brier": 0.030640883436841067, + "calibration": { + "observed_rate": 0.03253968253968254, + "mean_prediction": 0.03028104047582943, + "calibration_in_the_large": -0.002258642063853112, + "expected_calibration_error_10bin": 0.002424854027026054, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8863876187126275 + }, + { + "valid": 2520, + "positives": 83, + "negatives": 2437, + "auroc": 0.764622709137741, + "auprc": 0.08685979279702889, + "brier": 0.030997588403162628, + "calibration": { + "observed_rate": 0.03293650793650794, + "mean_prediction": 0.03145660180321318, + "calibration_in_the_large": -0.0014799061332947602, + "expected_calibration_error_10bin": 0.0018205370397366097, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8863876187126275 + }, + { + "valid": 2520, + "positives": 83, + "negatives": 2437, + "auroc": 0.7645534950635533, + "auprc": 0.0868799358439216, + "brier": 0.031000262643347917, + "calibration": { + "observed_rate": 0.03293650793650794, + "mean_prediction": 0.031648582024850866, + "calibration_in_the_large": -0.0012879259116570715, + "expected_calibration_error_10bin": 0.001974330836674198, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8863876187126275 + } + ], + "reason": null + }, + "N40": { + "time_averaged_auroc": 0.8030625501975697, + "time_averaged_auprc": 0.03230750725787537, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2606, + "positives": 5, + "negatives": 2601, + "auroc": 0.8718954248366013, + "auprc": 0.04160445356011776, + "brier": 0.001898392078425396, + "calibration": { + "observed_rate": 0.001918649270913277, + "mean_prediction": 0.0021069122151500274, + "calibration_in_the_large": 0.00018826294423675044, + "expected_calibration_error_10bin": 0.00018826294423675044, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9166373549067885 + }, + { + "valid": 2606, + "positives": 7, + "negatives": 2599, + "auroc": 0.8507667784312648, + "auprc": 0.03119040355412629, + "brier": 0.0026596009523154034, + "calibration": { + "observed_rate": 0.002686108979278588, + "mean_prediction": 0.003107788711779707, + "calibration_in_the_large": 0.0004216797325011191, + "expected_calibration_error_10bin": 0.0004216797325011191, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9166373549067885 + }, + { + "valid": 2606, + "positives": 11, + "negatives": 2595, + "auroc": 0.8201436328603958, + "auprc": 0.030129468009672603, + "brier": 0.004169813774182961, + "calibration": { + "observed_rate": 0.00422102839600921, + "mean_prediction": 0.0036781545667038105, + "calibration_in_the_large": -0.0005428738293053992, + "expected_calibration_error_10bin": 0.0005428738293053992, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9166373549067885 + }, + { + "valid": 2606, + "positives": 13, + "negatives": 2593, + "auroc": 0.8063128541339109, + "auprc": 0.025241665514347388, + "brier": 0.004932334024321109, + "calibration": { + "observed_rate": 0.0049884881043745204, + "mean_prediction": 0.004090781871622516, + "calibration_in_the_large": -0.0008977062327520042, + "expected_calibration_error_10bin": 0.0008977062327520042, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9166373549067885 + }, + { + "valid": 2606, + "positives": 13, + "negatives": 2593, + "auroc": 0.8048889020736302, + "auprc": 0.025495274699630897, + "brier": 0.0049386747810411516, + "calibration": { + "observed_rate": 0.0049884881043745204, + "mean_prediction": 0.004762510790215034, + "calibration_in_the_large": -0.00022597731415948622, + "expected_calibration_error_10bin": 0.00022597731415948622, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9166373549067885 + }, + { + "valid": 2606, + "positives": 16, + "negatives": 2590, + "auroc": 0.7649372586872587, + "auprc": 0.0290942099333271, + "brier": 0.006061669878352765, + "calibration": { + "observed_rate": 0.0061396776669224865, + "mean_prediction": 0.005376021528404573, + "calibration_in_the_large": -0.0007636561385179139, + "expected_calibration_error_10bin": 0.0009398094722283308, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9166373549067885 + }, + { + "valid": 2606, + "positives": 16, + "negatives": 2590, + "auroc": 0.7638513513513514, + "auprc": 0.02858562649405654, + "brier": 0.006065579436244132, + "calibration": { + "observed_rate": 0.0061396776669224865, + "mean_prediction": 0.0057413069194083965, + "calibration_in_the_large": -0.00039837074751409, + "expected_calibration_error_10bin": 0.0005862206236225752, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9166373549067885 + }, + { + "valid": 2606, + "positives": 19, + "negatives": 2587, + "auroc": 0.7752324374910993, + "auprc": 0.029551287182912642, + "brier": 0.0071931152944469424, + "calibration": { + "observed_rate": 0.0072908672294704525, + "mean_prediction": 0.006028208200870627, + "calibration_in_the_large": -0.0012626590285998258, + "expected_calibration_error_10bin": 0.001542583802989319, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9166373549067885 + }, + { + "valid": 2606, + "positives": 21, + "negatives": 2585, + "auroc": 0.7855024408215897, + "auprc": 0.030669710361110065, + "brier": 0.00794234273896537, + "calibration": { + "observed_rate": 0.008058326937835763, + "mean_prediction": 0.00645176799905356, + "calibration_in_the_large": -0.0016065589387822031, + "expected_calibration_error_10bin": 0.0021475022476120987, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9166373549067885 + }, + { + "valid": 2606, + "positives": 22, + "negatives": 2584, + "auroc": 0.7873452012383901, + "auprc": 0.030610510927311072, + "brier": 0.008333359506155078, + "calibration": { + "observed_rate": 0.00844205679201842, + "mean_prediction": 0.007016408955915489, + "calibration_in_the_large": -0.0014256478361029303, + "expected_calibration_error_10bin": 0.0020428306604090224, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9166373549067885 + }, + { + "valid": 2606, + "positives": 24, + "negatives": 2582, + "auroc": 0.8023980118770978, + "auprc": 0.03936039787237099, + "brier": 0.00903956686259384, + "calibration": { + "observed_rate": 0.00920951650038373, + "mean_prediction": 0.007376948922060054, + "calibration_in_the_large": -0.0018325675783236765, + "expected_calibration_error_10bin": 0.0025910730439823223, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9166373549067885 + }, + { + "valid": 2606, + "positives": 24, + "negatives": 2582, + "auroc": 0.8033017041053447, + "auprc": 0.039250885671819016, + "brier": 0.009041983516807671, + "calibration": { + "observed_rate": 0.00920951650038373, + "mean_prediction": 0.007701389173803102, + "calibration_in_the_large": -0.0015081273265806286, + "expected_calibration_error_10bin": 0.002445614664824948, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9166373549067885 + }, + { + "valid": 2606, + "positives": 24, + "negatives": 2582, + "auroc": 0.80323715466047, + "auprc": 0.03921370057157747, + "brier": 0.00904218363238312, + "calibration": { + "observed_rate": 0.00920951650038373, + "mean_prediction": 0.007712056883310435, + "calibration_in_the_large": -0.0014974596170732948, + "expected_calibration_error_10bin": 0.0025134458950974575, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9166373549067885 + } + ], + "reason": null + }, + "N73": { + "time_averaged_auroc": 0.9271379565868668, + "time_averaged_auprc": 0.092250558777061, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2829, + "positives": 1, + "negatives": 2828, + "auroc": 0.8818953323903819, + "auprc": 0.0029850746268656717, + "brier": 0.0003539007134149649, + "calibration": { + "observed_rate": 0.0003534817956875221, + "mean_prediction": 0.0001901433994849837, + "calibration_in_the_large": -0.0001633383962025384, + "expected_calibration_error_10bin": 0.0001633383962025384, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 1, + "negatives": 2828, + "auroc": 0.9172560113154172, + "auprc": 0.00425531914893617, + "brier": 0.0003543612714778555, + "calibration": { + "observed_rate": 0.0003534817956875221, + "mean_prediction": 0.00027841345663109007, + "calibration_in_the_large": -7.506833905643204e-05, + "expected_calibration_error_10bin": 7.506833905643204e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9573753095153873, + "auprc": 0.02723177723177723, + "brier": 0.0007033727901827938, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0004622785028443883, + "calibration_in_the_large": -0.0002446850885306559, + "expected_calibration_error_10bin": 0.0002446850885306559, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.955076052352317, + "auprc": 0.026982591876208897, + "brier": 0.000703324632061794, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0005965392104761826, + "calibration_in_the_large": -0.00011042438089886163, + "expected_calibration_error_10bin": 0.00011042438089886163, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9548991864166961, + "auprc": 0.025994449583718778, + "brier": 0.0007033671781912726, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0006054399453548757, + "calibration_in_the_large": -0.00010152364602016852, + "expected_calibration_error_10bin": 0.00010152364602016852, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9510081358330386, + "auprc": 0.025630181018440196, + "brier": 0.0007038529951530161, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0007058419390904498, + "calibration_in_the_large": -1.1216522845943714e-06, + "expected_calibration_error_10bin": 1.1216522845943714e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 3, + "negatives": 2826, + "auroc": 0.9631988676574664, + "auprc": 0.03243022550802871, + "brier": 0.0010518369021969875, + "calibration": { + "observed_rate": 0.0010604453870625664, + "mean_prediction": 0.0007845489956711931, + "calibration_in_the_large": -0.0002758963913913733, + "expected_calibration_error_10bin": 0.0002758963913913733, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 4, + "negatives": 2825, + "auroc": 0.9721238938053097, + "auprc": 0.09107751094827833, + "brier": 0.0013879602193373488, + "calibration": { + "observed_rate": 0.0014139271827500884, + "mean_prediction": 0.0008034180966971684, + "calibration_in_the_large": -0.0006105090860529201, + "expected_calibration_error_10bin": 0.0006105090860529201, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 5, + "negatives": 2824, + "auroc": 0.9777620396600567, + "auprc": 0.22468273092369478, + "brier": 0.0016914733728452796, + "calibration": { + "observed_rate": 0.0017674089784376105, + "mean_prediction": 0.0008815924778133733, + "calibration_in_the_large": -0.0008858165006242372, + "expected_calibration_error_10bin": 0.0008858165006242372, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 6, + "negatives": 2823, + "auroc": 0.8806824890778132, + "auprc": 0.18633858115754143, + "brier": 0.002042848335378821, + "calibration": { + "observed_rate": 0.0021208907741251328, + "mean_prediction": 0.0009080537006570897, + "calibration_in_the_large": -0.001212837073468043, + "expected_calibration_error_10bin": 0.001212837073468043, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 6, + "negatives": 2823, + "auroc": 0.880328255992443, + "auprc": 0.17668920721310188, + "brier": 0.0020397769575784194, + "calibration": { + "observed_rate": 0.0021208907741251328, + "mean_prediction": 0.0010001963929066235, + "calibration_in_the_large": -0.0011206943812185092, + "expected_calibration_error_10bin": 0.0011206943812185092, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 6, + "negatives": 2823, + "auroc": 0.8805644113826898, + "auprc": 0.18747963472711368, + "brier": 0.0020384659523283812, + "calibration": { + "observed_rate": 0.0021208907741251328, + "mean_prediction": 0.001022965587600775, + "calibration_in_the_large": -0.0010979251865243578, + "expected_calibration_error_10bin": 0.0010979251865243578, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 6, + "negatives": 2823, + "auroc": 0.8806234502302515, + "auprc": 0.1874799801380871, + "brier": 0.0020383213451952934, + "calibration": { + "observed_rate": 0.0021208907741251328, + "mean_prediction": 0.0010249452100852268, + "calibration_in_the_large": -0.001095945564039906, + "expected_calibration_error_10bin": 0.001095945564039906, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + } + ], + "reason": null + }, + "N99": { + "time_averaged_auroc": 0.7226649432869721, + "time_averaged_auprc": 0.004422742956701992, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2799, + "positives": 2, + "negatives": 2797, + "auroc": 0.6503396496245978, + "auprc": 0.002104238183258516, + "brier": 0.000714525200300941, + "calibration": { + "observed_rate": 0.0007145409074669524, + "mean_prediction": 0.0005264264392102503, + "calibration_in_the_large": -0.00018811446825670215, + "expected_calibration_error_10bin": 0.00018811446825670215, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9845233907843827 + }, + { + "valid": 2799, + "positives": 3, + "negatives": 2796, + "auroc": 0.6570100143061517, + "auprc": 0.0023753931454237294, + "brier": 0.001072301602060522, + "calibration": { + "observed_rate": 0.0010718113612004287, + "mean_prediction": 0.0008971699137062292, + "calibration_in_the_large": -0.00017464144749419948, + "expected_calibration_error_10bin": 0.00017464144749419948, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9845233907843827 + }, + { + "valid": 2799, + "positives": 3, + "negatives": 2796, + "auroc": 0.6591559370529327, + "auprc": 0.0024654231820449945, + "brier": 0.001074819735855256, + "calibration": { + "observed_rate": 0.0010718113612004287, + "mean_prediction": 0.0012435684245548318, + "calibration_in_the_large": 0.00017175706335440313, + "expected_calibration_error_10bin": 0.00017175706335440313, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9845233907843827 + }, + { + "valid": 2799, + "positives": 3, + "negatives": 2796, + "auroc": 0.6701239866475918, + "auprc": 0.0025669167290922556, + "brier": 0.001076382358901914, + "calibration": { + "observed_rate": 0.0010718113612004287, + "mean_prediction": 0.0015034735085154827, + "calibration_in_the_large": 0.000431662147315054, + "expected_calibration_error_10bin": 0.000431662147315054, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9845233907843827 + }, + { + "valid": 2799, + "positives": 3, + "negatives": 2796, + "auroc": 0.67310443490701, + "auprc": 0.0026493073537053355, + "brier": 0.0010778373374743288, + "calibration": { + "observed_rate": 0.0010718113612004287, + "mean_prediction": 0.0016820063809121707, + "calibration_in_the_large": 0.000610195019711742, + "expected_calibration_error_10bin": 0.000610195019711742, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9845233907843827 + }, + { + "valid": 2799, + "positives": 3, + "negatives": 2796, + "auroc": 0.6860991893180735, + "auprc": 0.0027989104912181837, + "brier": 0.0010793989001349489, + "calibration": { + "observed_rate": 0.0010718113612004287, + "mean_prediction": 0.0018295455422234553, + "calibration_in_the_large": 0.0007577341810230266, + "expected_calibration_error_10bin": 0.0007577341810230266, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9845233907843827 + }, + { + "valid": 2799, + "positives": 5, + "negatives": 2794, + "auroc": 0.7593414459556191, + "auprc": 0.005271161135011556, + "brier": 0.0017906284368900101, + "calibration": { + "observed_rate": 0.0017863522686673813, + "mean_prediction": 0.0020368009182757008, + "calibration_in_the_large": 0.0002504486496083195, + "expected_calibration_error_10bin": 0.0002504486496083195, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9845233907843827 + }, + { + "valid": 2799, + "positives": 5, + "negatives": 2794, + "auroc": 0.7639226914817466, + "auprc": 0.005449048176929464, + "brier": 0.0017928915961743235, + "calibration": { + "observed_rate": 0.0017863522686673813, + "mean_prediction": 0.0022233919244100796, + "calibration_in_the_large": 0.0004370396557426984, + "expected_calibration_error_10bin": 0.0004370396557426984, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9845233907843827 + }, + { + "valid": 2799, + "positives": 5, + "negatives": 2794, + "auroc": 0.7641374373657838, + "auprc": 0.0055053124374218314, + "brier": 0.0017932583918063968, + "calibration": { + "observed_rate": 0.0017863522686673813, + "mean_prediction": 0.00226852135332912, + "calibration_in_the_large": 0.00048216908466173895, + "expected_calibration_error_10bin": 0.00048216908466173895, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9845233907843827 + }, + { + "valid": 2799, + "positives": 6, + "negatives": 2793, + "auroc": 0.7799260054899153, + "auprc": 0.006690805088254696, + "brier": 0.0021510117556942016, + "calibration": { + "observed_rate": 0.0021436227224008574, + "mean_prediction": 0.00255068948346951, + "calibration_in_the_large": 0.00040706676106865274, + "expected_calibration_error_10bin": 0.00040706676106865274, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9845233907843827 + }, + { + "valid": 2799, + "positives": 6, + "negatives": 2793, + "auroc": 0.7771213748657357, + "auprc": 0.006487732544320564, + "brier": 0.0021539582433735614, + "calibration": { + "observed_rate": 0.0021436227224008574, + "mean_prediction": 0.0028348978571523264, + "calibration_in_the_large": 0.000691275134751469, + "expected_calibration_error_10bin": 0.000691275134751469, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9845233907843827 + }, + { + "valid": 2799, + "positives": 6, + "negatives": 2793, + "auroc": 0.7772407208497434, + "auprc": 0.006566046571274745, + "brier": 0.0021581539208305363, + "calibration": { + "observed_rate": 0.0021436227224008574, + "mean_prediction": 0.0031096980160586125, + "calibration_in_the_large": 0.0009660752936577551, + "expected_calibration_error_10bin": 0.0009660752936577551, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9845233907843827 + }, + { + "valid": 2799, + "positives": 6, + "negatives": 2793, + "auroc": 0.7771213748657357, + "auprc": 0.006565363399170029, + "brier": 0.002158286106513821, + "calibration": { + "observed_rate": 0.0021436227224008574, + "mean_prediction": 0.003119660306606363, + "calibration_in_the_large": 0.0009760375842055055, + "expected_calibration_error_10bin": 0.0009760375842055055, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9845233907843827 + } + ], + "reason": null + }, + "O69": { + "time_averaged_auroc": 0.9975798222880905, + "time_averaged_auprc": 0.37998692016235874, + "valid_timepoint_cells": 12, + "timepoints": [ + { + "valid": 2743, + "positives": 0, + "negatives": 2743, + "auroc": null, + "auprc": null, + "brier": 7.742962394501228e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0007782377193437373, + "calibration_in_the_large": 0.0007782377193437373, + "expected_calibration_error_10bin": 0.0007782377193437373, + "nonempty_bins": 2 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9648258881463243 + }, + { + "valid": 2743, + "positives": 3, + "negatives": 2740, + "auroc": 0.9991484184914842, + "auprc": 0.4444444444444444, + "brier": 0.0007976143026040557, + "calibration": { + "observed_rate": 0.001093693036820999, + "mean_prediction": 0.001317554526727773, + "calibration_in_the_large": 0.00022386148990677411, + "expected_calibration_error_10bin": 0.0015415632429278863, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + { + "valid": 2743, + "positives": 4, + "negatives": 2739, + "auroc": 0.9984483388097846, + "auprc": 0.360551948051948, + "brier": 0.0010367093708593463, + "calibration": { + "observed_rate": 0.0014582573824279985, + "mean_prediction": 0.0017006828747468902, + "calibration_in_the_large": 0.0002424254923188917, + "expected_calibration_error_10bin": 0.0016952299298039388, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + { + "valid": 2743, + "positives": 4, + "negatives": 2739, + "auroc": 0.9984483388097846, + "auprc": 0.360551948051948, + "brier": 0.0010363516225176366, + "calibration": { + "observed_rate": 0.0014582573824279985, + "mean_prediction": 0.0017683508841390796, + "calibration_in_the_large": 0.0003100935017110811, + "expected_calibration_error_10bin": 0.0009495014919445436, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + { + "valid": 2743, + "positives": 5, + "negatives": 2738, + "auroc": 0.9985390796201608, + "auprc": 0.40979797979797983, + "brier": 0.0012365451813520219, + "calibration": { + "observed_rate": 0.0018228217280349982, + "mean_prediction": 0.0020746955129802504, + "calibration_in_the_large": 0.00025187378494525214, + "expected_calibration_error_10bin": 0.0016024102222110632, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + { + "valid": 2743, + "positives": 5, + "negatives": 2738, + "auroc": 0.9985390796201608, + "auprc": 0.40979797979797983, + "brier": 0.0012303045621856127, + "calibration": { + "observed_rate": 0.0018228217280349982, + "mean_prediction": 0.002236012415237908, + "calibration_in_the_large": 0.00041319068720290994, + "expected_calibration_error_10bin": 0.0019044714982957751, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + { + "valid": 2743, + "positives": 6, + "negatives": 2737, + "auroc": 0.9968335160151017, + "auprc": 0.36781410597200076, + "brier": 0.0015839242184032386, + "calibration": { + "observed_rate": 0.002187386073641998, + "mean_prediction": 0.002365289535803876, + "calibration_in_the_large": 0.0001779034621618783, + "expected_calibration_error_10bin": 0.002067612911958454, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + { + "valid": 2743, + "positives": 6, + "negatives": 2737, + "auroc": 0.9968335160151017, + "auprc": 0.36781410597200076, + "brier": 0.0015840647964712766, + "calibration": { + "observed_rate": 0.002187386073641998, + "mean_prediction": 0.002382872887724163, + "calibration_in_the_large": 0.00019548681408216532, + "expected_calibration_error_10bin": 0.0020802645173343534, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + { + "valid": 2743, + "positives": 6, + "negatives": 2737, + "auroc": 0.9968335160151017, + "auprc": 0.36781410597200076, + "brier": 0.001581791856294035, + "calibration": { + "observed_rate": 0.002187386073641998, + "mean_prediction": 0.0024912828816802115, + "calibration_in_the_large": 0.0003038968080382137, + "expected_calibration_error_10bin": 0.002133567377033562, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + { + "valid": 2743, + "positives": 6, + "negatives": 2737, + "auroc": 0.9968335160151017, + "auprc": 0.36781410597200076, + "brier": 0.0015820409033675852, + "calibration": { + "observed_rate": 0.002187386073641998, + "mean_prediction": 0.002509312576241797, + "calibration_in_the_large": 0.0003219265025997992, + "expected_calibration_error_10bin": 0.0021465768307321865, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + { + "valid": 2743, + "positives": 6, + "negatives": 2737, + "auroc": 0.9968335160151017, + "auprc": 0.36781410597200076, + "brier": 0.0015823030727317054, + "calibration": { + "observed_rate": 0.002187386073641998, + "mean_prediction": 0.002527622695276099, + "calibration_in_the_large": 0.00034023662163410124, + "expected_calibration_error_10bin": 0.00215976882734232, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + { + "valid": 2743, + "positives": 6, + "negatives": 2737, + "auroc": 0.9968335160151017, + "auprc": 0.36781410597200076, + "brier": 0.0015826190156543855, + "calibration": { + "observed_rate": 0.002187386073641998, + "mean_prediction": 0.0025802635588256513, + "calibration_in_the_large": 0.0003928774851836535, + "expected_calibration_error_10bin": 0.0021895167484876207, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + { + "valid": 2743, + "positives": 6, + "negatives": 2737, + "auroc": 0.9968335160151017, + "auprc": 0.36781410597200076, + "brier": 0.0015826949146225437, + "calibration": { + "observed_rate": 0.002187386073641998, + "mean_prediction": 0.0025845080528562317, + "calibration_in_the_large": 0.00039712197921423385, + "expected_calibration_error_10bin": 0.0021922165413212824, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + } + ], + "reason": null + }, + "O99": { + "time_averaged_auroc": 0.9566332527218673, + "time_averaged_auprc": 0.447871483565087, + "valid_timepoint_cells": 11, + "timepoints": [ + { + "valid": 2652, + "positives": 0, + "negatives": 2652, + "auroc": null, + "auprc": null, + "brier": 0.00020835289147608113, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0013307234357374624, + "calibration_in_the_large": 0.0013307234357374624, + "expected_calibration_error_10bin": 0.0013307234357374626, + "nonempty_bins": 5 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9328174463594794 + }, + { + "valid": 2652, + "positives": 0, + "negatives": 2652, + "auroc": null, + "auprc": null, + "brier": 0.0003892942341226834, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0017776752514845633, + "calibration_in_the_large": 0.0017776752514845633, + "expected_calibration_error_10bin": 0.0017776752514845633, + "nonempty_bins": 6 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9328174463594794 + }, + { + "valid": 2652, + "positives": 1, + "negatives": 2651, + "auroc": 1.0, + "auprc": 1.0, + "brier": 0.0004091795534800299, + "calibration": { + "observed_rate": 0.0003770739064856712, + "mean_prediction": 0.001933716852243347, + "calibration_in_the_large": 0.0015566429457576757, + "expected_calibration_error_10bin": 0.0015566429457576757, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9328174463594794 + }, + { + "valid": 2652, + "positives": 1, + "negatives": 2651, + "auroc": 0.999622783855149, + "auprc": 0.5, + "brier": 0.0005196094098595221, + "calibration": { + "observed_rate": 0.0003770739064856712, + "mean_prediction": 0.0022322998450550863, + "calibration_in_the_large": 0.0018552259385694152, + "expected_calibration_error_10bin": 0.0018552259385694154, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9328174463594794 + }, + { + "valid": 2652, + "positives": 1, + "negatives": 2651, + "auroc": 0.999622783855149, + "auprc": 0.5, + "brier": 0.0005476902794771943, + "calibration": { + "observed_rate": 0.0003770739064856712, + "mean_prediction": 0.002333562551959264, + "calibration_in_the_large": 0.0019564886454735927, + "expected_calibration_error_10bin": 0.0019564886454735927, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9328174463594794 + }, + { + "valid": 2652, + "positives": 1, + "negatives": 2651, + "auroc": 1.0, + "auprc": 1.0, + "brier": 0.0005996821075886326, + "calibration": { + "observed_rate": 0.0003770739064856712, + "mean_prediction": 0.0025580468607894966, + "calibration_in_the_large": 0.0021809729543038254, + "expected_calibration_error_10bin": 0.0021809729543038254, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9328174463594794 + }, + { + "valid": 2652, + "positives": 1, + "negatives": 2651, + "auroc": 1.0, + "auprc": 1.0, + "brier": 0.0006782576950019268, + "calibration": { + "observed_rate": 0.0003770739064856712, + "mean_prediction": 0.002816014976635534, + "calibration_in_the_large": 0.002438941070149863, + "expected_calibration_error_10bin": 0.0024389410701498625, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9328174463594794 + }, + { + "valid": 2652, + "positives": 1, + "negatives": 2651, + "auroc": 0.999245567710298, + "auprc": 0.3333333333333333, + "brier": 0.0007493962640681357, + "calibration": { + "observed_rate": 0.0003770739064856712, + "mean_prediction": 0.002981042394132075, + "calibration_in_the_large": 0.0026039684876464036, + "expected_calibration_error_10bin": 0.0026039684876464036, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9328174463594794 + }, + { + "valid": 2652, + "positives": 3, + "negatives": 2649, + "auroc": 0.9041147602869007, + "auprc": 0.11859488563163907, + "brier": 0.0015498389813702101, + "calibration": { + "observed_rate": 0.0011312217194570137, + "mean_prediction": 0.0031707153632337354, + "calibration_in_the_large": 0.002039493643776722, + "expected_calibration_error_10bin": 0.0020394936437767223, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9328174463594794 + }, + { + "valid": 2652, + "positives": 3, + "negatives": 2649, + "auroc": 0.9051214294702403, + "auprc": 0.11866510473321618, + "brier": 0.0015991679991240496, + "calibration": { + "observed_rate": 0.0011312217194570137, + "mean_prediction": 0.003339365904966686, + "calibration_in_the_large": 0.0022081441855096723, + "expected_calibration_error_10bin": 0.002208144185509673, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9328174463594794 + }, + { + "valid": 2652, + "positives": 3, + "negatives": 2649, + "auroc": 0.9046180948785705, + "auprc": 0.11865557865557864, + "brier": 0.0016411114331191087, + "calibration": { + "observed_rate": 0.0011312217194570137, + "mean_prediction": 0.0034809743173523674, + "calibration_in_the_large": 0.002349752597895354, + "expected_calibration_error_10bin": 0.002349752597895354, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9328174463594794 + }, + { + "valid": 2652, + "positives": 3, + "negatives": 2649, + "auroc": 0.9053730967660752, + "auprc": 0.118669912148173, + "brier": 0.001668803101954824, + "calibration": { + "observed_rate": 0.0011312217194570137, + "mean_prediction": 0.0035730286612277906, + "calibration_in_the_large": 0.002441806941770777, + "expected_calibration_error_10bin": 0.0025960024047269256, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9328174463594794 + }, + { + "valid": 2652, + "positives": 3, + "negatives": 2649, + "auroc": 0.9052472631181578, + "auprc": 0.11866750471401633, + "brier": 0.001670185996316294, + "calibration": { + "observed_rate": 0.0011312217194570137, + "mean_prediction": 0.0035784459679829043, + "calibration_in_the_large": 0.0024472242485258904, + "expected_calibration_error_10bin": 0.0026011429499451745, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9328174463594794 + } + ], + "reason": null + }, + "Q21": { + "time_averaged_auroc": 0.655476389185075, + "time_averaged_auprc": 0.0022636583658477154, + "valid_timepoint_cells": 12, + "timepoints": [ + { + "valid": 2810, + "positives": 0, + "negatives": 2810, + "auroc": null, + "auprc": null, + "brier": 4.020249225946041e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0004099172738819385, + "calibration_in_the_large": 0.0004099172738819385, + "expected_calibration_error_10bin": 0.0004099172738819385, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9883925430882871 + }, + { + "valid": 2810, + "positives": 1, + "negatives": 2809, + "auroc": 0.8066927732289071, + "auprc": 0.001838235294117647, + "brier": 0.0003560162315231282, + "calibration": { + "observed_rate": 0.00035587188612099647, + "mean_prediction": 0.0006177222336249595, + "calibration_in_the_large": 0.000261850347503963, + "expected_calibration_error_10bin": 0.000261850347503963, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + { + "valid": 2810, + "positives": 1, + "negatives": 2809, + "auroc": 0.7835528657885369, + "auprc": 0.0016420361247947454, + "brier": 0.00035657486421660666, + "calibration": { + "observed_rate": 0.00035587188612099647, + "mean_prediction": 0.0008721267394771223, + "calibration_in_the_large": 0.0005162548533561258, + "expected_calibration_error_10bin": 0.0005162548533561258, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + { + "valid": 2810, + "positives": 1, + "negatives": 2809, + "auroc": 0.7742969028123887, + "auprc": 0.0015748031496062992, + "brier": 0.00035716694042051204, + "calibration": { + "observed_rate": 0.00035587188612099647, + "mean_prediction": 0.0010384451887038271, + "calibration_in_the_large": 0.0006825733025828307, + "expected_calibration_error_10bin": 0.0006825733025828307, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + { + "valid": 2810, + "positives": 2, + "negatives": 2808, + "auroc": 0.7841880341880342, + "auprc": 0.0024032502410136344, + "brier": 0.0007125633011517571, + "calibration": { + "observed_rate": 0.0007117437722419929, + "mean_prediction": 0.0012474726421811977, + "calibration_in_the_large": 0.0005357288699392047, + "expected_calibration_error_10bin": 0.0005357288699392047, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + { + "valid": 2810, + "positives": 2, + "negatives": 2808, + "auroc": 0.7816951566951567, + "auprc": 0.0023737510126924117, + "brier": 0.0007129328834508819, + "calibration": { + "observed_rate": 0.0007117437722419929, + "mean_prediction": 0.001363867648061157, + "calibration_in_the_large": 0.000652123875819164, + "expected_calibration_error_10bin": 0.000652123875819164, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + { + "valid": 2810, + "positives": 3, + "negatives": 2807, + "auroc": 0.5527847049044057, + "auprc": 0.0019813439117743674, + "brier": 0.0010687574292341125, + "calibration": { + "observed_rate": 0.0010676156583629894, + "mean_prediction": 0.0014054092707071416, + "calibration_in_the_large": 0.00033779361234415224, + "expected_calibration_error_10bin": 0.00033779361234415224, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + { + "valid": 2810, + "positives": 3, + "negatives": 2807, + "auroc": 0.552190951193445, + "auprc": 0.0019780956804502743, + "brier": 0.0010690141862664821, + "calibration": { + "observed_rate": 0.0010676156583629894, + "mean_prediction": 0.0014820991455545415, + "calibration_in_the_large": 0.00041448348719155207, + "expected_calibration_error_10bin": 0.00041448348719155207, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + { + "valid": 2810, + "positives": 3, + "negatives": 2807, + "auroc": 0.5519534497090607, + "auprc": 0.0019723457910101384, + "brier": 0.0010692864125897061, + "calibration": { + "observed_rate": 0.0010676156583629894, + "mean_prediction": 0.001548684841300298, + "calibration_in_the_large": 0.0004810691829373085, + "expected_calibration_error_10bin": 0.0004810691829373085, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + { + "valid": 2810, + "positives": 3, + "negatives": 2807, + "auroc": 0.5529034556465978, + "auprc": 0.0019842942086030495, + "brier": 0.001069707738472139, + "calibration": { + "observed_rate": 0.0010676156583629894, + "mean_prediction": 0.0016379084064810806, + "calibration_in_the_large": 0.0005702927481180912, + "expected_calibration_error_10bin": 0.0005702927481180912, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + { + "valid": 2810, + "positives": 4, + "negatives": 2806, + "auroc": 0.6392551674982181, + "auprc": 0.00326276771342025, + "brier": 0.0014234050459731129, + "calibration": { + "observed_rate": 0.0014234875444839859, + "mean_prediction": 0.0017262422985847197, + "calibration_in_the_large": 0.0003027547541007338, + "expected_calibration_error_10bin": 0.0003027547541007338, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + { + "valid": 2810, + "positives": 5, + "negatives": 2805, + "auroc": 0.5431016042780749, + "auprc": 0.0030757352522603554, + "brier": 0.0017793855220192124, + "calibration": { + "observed_rate": 0.0017793594306049821, + "mean_prediction": 0.0018420880722195604, + "calibration_in_the_large": 6.272864161457827e-05, + "expected_calibration_error_10bin": 6.272864161457827e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + { + "valid": 2810, + "positives": 5, + "negatives": 2805, + "auroc": 0.5431016042780749, + "auprc": 0.0030772420104294125, + "brier": 0.0017793898526896846, + "calibration": { + "observed_rate": 0.0017793594306049821, + "mean_prediction": 0.0018455781075977918, + "calibration_in_the_large": 6.621867699280973e-05, + "expected_calibration_error_10bin": 6.621867699280973e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + } + ], + "reason": null + }, + "U07": { + "time_averaged_auroc": 0.9541610767121493, + "time_averaged_auprc": 0.04912435033893378, + "valid_timepoint_cells": 4, + "timepoints": [ + { + "valid": 2828, + "positives": 0, + "negatives": 2828, + "auroc": null, + "auprc": null, + "brier": 1.2253463022763972e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0005419455041162536, + "calibration_in_the_large": 0.0005419455041162536, + "expected_calibration_error_10bin": 0.0005419455041162536, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 0, + "negatives": 2828, + "auroc": null, + "auprc": null, + "brier": 3.9045854151662175e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0009391089738444918, + "calibration_in_the_large": 0.0009391089738444918, + "expected_calibration_error_10bin": 0.0009391089738444918, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 0, + "negatives": 2828, + "auroc": null, + "auprc": null, + "brier": 1.3558588631645127e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0018932993611360742, + "calibration_in_the_large": 0.0018932993611360742, + "expected_calibration_error_10bin": 0.0018932993611360742, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 0, + "negatives": 2828, + "auroc": null, + "auprc": null, + "brier": 1.5555242088201078e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0020367177820827796, + "calibration_in_the_large": 0.0020367177820827796, + "expected_calibration_error_10bin": 0.0020367177820827796, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 0, + "negatives": 2828, + "auroc": null, + "auprc": null, + "brier": 2.838345494605209e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0026345499659193123, + "calibration_in_the_large": 0.0026345499659193123, + "expected_calibration_error_10bin": 0.0026345499659193123, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 0, + "negatives": 2828, + "auroc": null, + "auprc": null, + "brier": 3.322142779161199e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.002878172625330107, + "calibration_in_the_large": 0.002878172625330107, + "expected_calibration_error_10bin": 0.002878172625330107, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 0, + "negatives": 2828, + "auroc": null, + "auprc": null, + "brier": 4.518418140477595e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0032727640027639224, + "calibration_in_the_large": 0.0032727640027639224, + "expected_calibration_error_10bin": 0.0032727640027639224, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 0, + "negatives": 2828, + "auroc": null, + "auprc": null, + "brier": 5.1149370331158013e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0034917979609452405, + "calibration_in_the_large": 0.0034917979609452405, + "expected_calibration_error_10bin": 0.0034917979609452405, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 0, + "negatives": 2828, + "auroc": null, + "auprc": null, + "brier": 5.792691572253463e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.003736353116747411, + "calibration_in_the_large": 0.003736353116747411, + "expected_calibration_error_10bin": 0.0037363531167474108, + "nonempty_bins": 2 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.9957552175451008, + "auprc": 0.07692307692307693, + "brier": 0.0003847873863982847, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.003911027059847271, + "calibration_in_the_large": 0.0035574202705969176, + "expected_calibration_error_10bin": 0.003557420270596918, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.9883227176220807, + "auprc": 0.05011792452830188, + "brier": 0.0007257833379227351, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.00414986073171839, + "calibration_in_the_large": 0.0034426471532176825, + "expected_calibration_error_10bin": 0.0034426471532176825, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 3, + "negatives": 2825, + "auroc": 0.9162241887905604, + "auprc": 0.03472699996177808, + "brier": 0.001080434194401221, + "calibration": { + "observed_rate": 0.0010608203677510608, + "mean_prediction": 0.004331762201085725, + "calibration_in_the_large": 0.0032709418333346637, + "expected_calibration_error_10bin": 0.003270941833334664, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 3, + "negatives": 2825, + "auroc": 0.9163421828908555, + "auprc": 0.03472939994257824, + "brier": 0.001081477355005668, + "calibration": { + "observed_rate": 0.0010608203677510608, + "mean_prediction": 0.00437968920727391, + "calibration_in_the_large": 0.003318868839522849, + "expected_calibration_error_10bin": 0.0033188688395228497, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + } + ], + "reason": null + } + }, + "30": { + "A04": { + "valid": 2782, + "positives": 3, + "negatives": 2779, + "auroc": 0.8606213266162889, + "auprc": 0.006089592770537679, + "brier": 0.0010909053341375122, + "calibration": { + "observed_rate": 0.0010783608914450035, + "mean_prediction": 0.002384921633340734, + "calibration_in_the_large": 0.0013065607418957304, + "expected_calibration_error_10bin": 0.0013065607418957304, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + "A08": { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.683896196231781, + "auprc": 0.006855691515173748, + "brier": 0.001771779364466217, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.0005531996207231504, + "calibration_in_the_large": -0.0012211083991490995, + "expected_calibration_error_10bin": 0.0012211083991490995, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "A41": { + "valid": 2664, + "positives": 5, + "negatives": 2659, + "auroc": 0.7080857465212486, + "auprc": 0.004773168667493552, + "brier": 0.0019365329214060037, + "calibration": { + "observed_rate": 0.0018768768768768769, + "mean_prediction": 0.004442966535642206, + "calibration_in_the_large": 0.0025660896587653293, + "expected_calibration_error_10bin": 0.0025660896587653293, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9370383397819205 + }, + "B00": { + "valid": 2819, + "positives": 0, + "negatives": 2819, + "auroc": null, + "auprc": null, + "brier": 3.6845879475188634e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00016158655004390695, + "calibration_in_the_large": 0.00016158655004390695, + "expected_calibration_error_10bin": 0.00016158655004390695, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "B02": { + "valid": 2828, + "positives": 0, + "negatives": 2828, + "auroc": null, + "auprc": null, + "brier": 5.355081587171439e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00022883327648349447, + "calibration_in_the_large": 0.00022883327648349447, + "expected_calibration_error_10bin": 0.00022883327648349447, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "B18": { + "valid": 2782, + "positives": 1, + "negatives": 2781, + "auroc": 0.9834591873426825, + "auprc": 0.02127659574468085, + "brier": 0.0003608495795855536, + "calibration": { + "observed_rate": 0.0003594536304816679, + "mean_prediction": 0.0002306784213889222, + "calibration_in_the_large": -0.00012877520909274567, + "expected_calibration_error_10bin": 0.00012877520909274567, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + "B19": { + "valid": 2763, + "positives": 7, + "negatives": 2756, + "auroc": 0.8604602944225586, + "auprc": 0.016494214155801854, + "brier": 0.00252973217573376, + "calibration": { + "observed_rate": 0.0025334781035106766, + "mean_prediction": 0.0006498977196426467, + "calibration_in_the_large": -0.00188358038386803, + "expected_calibration_error_10bin": 0.00188358038386803, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + "B20": { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 3.3779991646963128e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00025380756578100076, + "calibration_in_the_large": 0.00025380756578100076, + "expected_calibration_error_10bin": 0.00025380756578100076, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "B34": { + "valid": 2831, + "positives": 0, + "negatives": 2831, + "auroc": null, + "auprc": null, + "brier": 1.5650601529684104e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00020291080669936615, + "calibration_in_the_large": 0.00020291080669936615, + "expected_calibration_error_10bin": 0.00020291080669936615, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.995779106577559 + }, + "B35": { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 8.806999632896737e-08, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00016474708829908232, + "calibration_in_the_large": 0.00016474708829908232, + "expected_calibration_error_10bin": 0.00016474708829908232, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "B37": { + "valid": 2768, + "positives": 8, + "negatives": 2760, + "auroc": 0.8493206521739131, + "auprc": 0.01233807722301052, + "brier": 0.0028775426385142648, + "calibration": { + "observed_rate": 0.002890173410404624, + "mean_prediction": 0.0013491144730933703, + "calibration_in_the_large": -0.0015410589373112539, + "expected_calibration_error_10bin": 0.0015410589373112539, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "B95": { + "valid": 2678, + "positives": 15, + "negatives": 2663, + "auroc": 0.7335586431343096, + "auprc": 0.012467000911037399, + "brier": 0.005561325864327019, + "calibration": { + "observed_rate": 0.005601194921583271, + "mean_prediction": 0.004333276764756927, + "calibration_in_the_large": -0.0012679181568263443, + "expected_calibration_error_10bin": 0.0012679181568263443, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9419627154414351 + }, + "B96": { + "valid": 2630, + "positives": 15, + "negatives": 2615, + "auroc": 0.758597833014659, + "auprc": 0.0168362853006091, + "brier": 0.005648236479062651, + "calibration": { + "observed_rate": 0.005703422053231939, + "mean_prediction": 0.005406740182606121, + "calibration_in_the_large": -0.000296681870625818, + "expected_calibration_error_10bin": 0.000296681870625818, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9250791417516707 + }, + "B97": { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.45136186770428016, + "auprc": 0.0006443298969072165, + "brier": 0.0003542218156109538, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 9.416764779545033e-05, + "calibration_in_the_large": -0.00025943914145490327, + "expected_calibration_error_10bin": 0.00025943914145490327, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "C18": { + "valid": 2824, + "positives": 1, + "negatives": 2823, + "auroc": 0.9787460148777896, + "auprc": 0.01639344262295082, + "brier": 0.0003530579099562274, + "calibration": { + "observed_rate": 0.0003541076487252125, + "mean_prediction": 0.00022248804697903404, + "calibration_in_the_large": -0.00013161960174617844, + "expected_calibration_error_10bin": 0.00013161960174617844, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "C22": { + "valid": 2812, + "positives": 2, + "negatives": 2810, + "auroc": 0.9346975088967971, + "auprc": 0.015841660856766596, + "brier": 0.0007140940569243715, + "calibration": { + "observed_rate": 0.0007112375533428165, + "mean_prediction": 0.0002291299355858571, + "calibration_in_the_large": -0.0004821076177569594, + "expected_calibration_error_10bin": 0.0004821076177569594, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9890960253253606 + }, + "C25": { + "valid": 2809, + "positives": 0, + "negatives": 2809, + "auroc": null, + "auprc": null, + "brier": 5.601022352328623e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.000262388118335258, + "calibration_in_the_large": 0.000262388118335258, + "expected_calibration_error_10bin": 0.000262388118335258, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "C61": { + "valid": 2805, + "positives": 1, + "negatives": 2804, + "auroc": 0.9989300998573466, + "auprc": 0.25, + "brier": 0.00035302181822142434, + "calibration": { + "observed_rate": 0.00035650623885918, + "mean_prediction": 0.00023875713592585567, + "calibration_in_the_large": -0.00011774910293332435, + "expected_calibration_error_10bin": 0.00011774910293332435, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "C67": { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9775380261761585, + "auprc": 0.022875816993464054, + "brier": 0.0007063489091072611, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 7.674349175842452e-05, + "calibration_in_the_large": -0.0006302200996166197, + "expected_calibration_error_10bin": 0.0006302200996166197, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "C77": { + "valid": 2762, + "positives": 4, + "negatives": 2758, + "auroc": 0.8235134155184917, + "auprc": 0.07173702427842603, + "brier": 0.0014274218044686236, + "calibration": { + "observed_rate": 0.001448225923244026, + "mean_prediction": 0.0015083389273288042, + "calibration_in_the_large": 6.011300408477818e-05, + "expected_calibration_error_10bin": 6.011300408477803e-05, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + "C78": { + "valid": 2762, + "positives": 7, + "negatives": 2755, + "auroc": 0.9218563650505575, + "auprc": 0.18746027164893425, + "brier": 0.0023822250648933645, + "calibration": { + "observed_rate": 0.0025343953656770456, + "mean_prediction": 0.0014997624640149258, + "calibration_in_the_large": -0.0010346329016621197, + "expected_calibration_error_10bin": 0.001198401842442008, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + "C79": { + "valid": 2751, + "positives": 4, + "negatives": 2747, + "auroc": 0.9367491809246451, + "auprc": 0.1212241081703107, + "brier": 0.0014006973250395344, + "calibration": { + "observed_rate": 0.0014540167211922936, + "mean_prediction": 0.0010208960432701707, + "calibration_in_the_large": -0.0004331206779221229, + "expected_calibration_error_10bin": 0.0004331206779221229, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "C83": { + "valid": 2820, + "positives": 0, + "negatives": 2820, + "auroc": null, + "auprc": null, + "brier": 3.462983736008751e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00017338208822366142, + "calibration_in_the_large": 0.00017338208822366142, + "expected_calibration_error_10bin": 0.00017338208822366142, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9919099542736546 + }, + "D25": { + "valid": 2792, + "positives": 2, + "negatives": 2790, + "auroc": 0.989068100358423, + "auprc": 0.2661290322580645, + "brier": 0.0007100121735420498, + "calibration": { + "observed_rate": 0.0007163323782234957, + "mean_prediction": 0.00019285209199225174, + "calibration_in_the_large": -0.000523480286231244, + "expected_calibration_error_10bin": 0.000523480286231244, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + "D47": { + "valid": 2796, + "positives": 4, + "negatives": 2792, + "auroc": 0.6795308022922636, + "auprc": 0.0026803647170850235, + "brier": 0.0014297429289806857, + "calibration": { + "observed_rate": 0.001430615164520744, + "mean_prediction": 0.0006720909135490856, + "calibration_in_the_large": -0.0007585242509716583, + "expected_calibration_error_10bin": 0.0007585242509716583, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + "D50": { + "valid": 2663, + "positives": 15, + "negatives": 2648, + "auroc": 0.8118831822759315, + "auprc": 0.0676046598218137, + "brier": 0.005535134578906612, + "calibration": { + "observed_rate": 0.005632745024408562, + "mean_prediction": 0.0029825100788389214, + "calibration_in_the_large": -0.0026502349455696404, + "expected_calibration_error_10bin": 0.0026502349455696404, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9366865986633838 + }, + "D53": { + "valid": 2805, + "positives": 5, + "negatives": 2800, + "auroc": 0.7947857142857143, + "auprc": 0.029829021769273534, + "brier": 0.0017735191874583515, + "calibration": { + "observed_rate": 0.0017825311942959, + "mean_prediction": 0.0007626479584463671, + "calibration_in_the_large": -0.0010198832358495331, + "expected_calibration_error_10bin": 0.0010198832358495331, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "D59": { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 3.6513026218703577e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0002438829189511984, + "calibration_in_the_large": 0.0002438829189511984, + "expected_calibration_error_10bin": 0.0002438829189511984, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "D61": { + "valid": 2773, + "positives": 4, + "negatives": 2769, + "auroc": 0.970837847598411, + "auprc": 0.02974469795581802, + "brier": 0.0014449477543566013, + "calibration": { + "observed_rate": 0.00144248106743599, + "mean_prediction": 0.0017028754875011865, + "calibration_in_the_large": 0.00026039442006519655, + "expected_calibration_error_10bin": 0.00026039442006519655, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + "D62": { + "valid": 2499, + "positives": 10, + "negatives": 2489, + "auroc": 0.812093210124548, + "auprc": 0.020946045823450384, + "brier": 0.003966877324822718, + "calibration": { + "observed_rate": 0.004001600640256103, + "mean_prediction": 0.004495977929984016, + "calibration_in_the_large": 0.0004943772897279134, + "expected_calibration_error_10bin": 0.0004943772897279134, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8790010552233556 + }, + "D63": { + "valid": 2686, + "positives": 20, + "negatives": 2666, + "auroc": 0.8879407351837959, + "auprc": 0.054961389012931815, + "brier": 0.007242989538948074, + "calibration": { + "observed_rate": 0.007446016381236039, + "mean_prediction": 0.004696950213424207, + "calibration_in_the_large": -0.002749066167811832, + "expected_calibration_error_10bin": 0.0038203283654377074, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9447766443897292 + }, + "D64": { + "valid": 2434, + "positives": 37, + "negatives": 2397, + "auroc": 0.8288964809615623, + "auprc": 0.09219645193903357, + "brier": 0.014539952079792558, + "calibration": { + "observed_rate": 0.015201314708299097, + "mean_prediction": 0.010625918463841803, + "calibration_in_the_large": -0.004575396244457294, + "expected_calibration_error_10bin": 0.004575396244457292, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8561378825184665 + }, + "D65": { + "valid": 2833, + "positives": 1, + "negatives": 2832, + "auroc": 0.9057203389830508, + "auprc": 0.0037313432835820895, + "brier": 0.00035310480620355853, + "calibration": { + "observed_rate": 0.00035298270384751147, + "mean_prediction": 0.00017188224032640414, + "calibration_in_the_large": -0.00018110046352110733, + "expected_calibration_error_10bin": 0.00018110046352110733, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9964825888146325 + }, + "D68": { + "valid": 2682, + "positives": 10, + "negatives": 2672, + "auroc": 0.8185254491017964, + "auprc": 0.020046619960113123, + "brier": 0.003699952072234663, + "calibration": { + "observed_rate": 0.0037285607755406414, + "mean_prediction": 0.0019418965873759491, + "calibration_in_the_large": -0.0017866641881646923, + "expected_calibration_error_10bin": 0.0017866641881646923, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9433696799155822 + }, + "D69": { + "valid": 2586, + "positives": 13, + "negatives": 2573, + "auroc": 0.8725223474543334, + "auprc": 0.09573378267203682, + "brier": 0.004774109213098435, + "calibration": { + "observed_rate": 0.005027068832173241, + "mean_prediction": 0.0037425708427323377, + "calibration_in_the_large": -0.0012844979894409032, + "expected_calibration_error_10bin": 0.0012844979894409024, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9096025325360535 + }, + "D70": { + "valid": 2787, + "positives": 5, + "negatives": 2782, + "auroc": 0.9166786484543494, + "auprc": 0.0925209220726116, + "brier": 0.001705521739280797, + "calibration": { + "observed_rate": 0.001794043774668102, + "mean_prediction": 0.0015334536513954922, + "calibration_in_the_large": -0.0002605901232726098, + "expected_calibration_error_10bin": 0.0006316482529209559, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "D72": { + "valid": 2595, + "positives": 16, + "negatives": 2579, + "auroc": 0.7163386971694455, + "auprc": 0.05239205163593265, + "brier": 0.006097813551657253, + "calibration": { + "observed_rate": 0.006165703275529865, + "mean_prediction": 0.00860966741734791, + "calibration_in_the_large": 0.002443964141818044, + "expected_calibration_error_10bin": 0.002443964141818044, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9127682026028843 + }, + "D73": { + "valid": 2824, + "positives": 0, + "negatives": 2824, + "auroc": null, + "auprc": null, + "brier": 2.9848455903210734e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00013561174688286835, + "calibration_in_the_large": 0.00013561174688286835, + "expected_calibration_error_10bin": 0.00013561174688286835, + "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.7797048779242226e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0003030776743087006, + "calibration_in_the_large": 0.0003030776743087006, + "expected_calibration_error_10bin": 0.0003030776743087006, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.995779106577559 + }, + "D80": { + "valid": 2832, + "positives": 1, + "negatives": 2831, + "auroc": 0.9667961850936065, + "auprc": 0.010526315789473684, + "brier": 0.00035308802568039584, + "calibration": { + "observed_rate": 0.00035310734463276836, + "mean_prediction": 8.314118805516059e-05, + "calibration_in_the_large": -0.00026996615657760777, + "expected_calibration_error_10bin": 0.00026996615657760777, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + "D89": { + "valid": 2837, + "positives": 1, + "negatives": 2836, + "auroc": 0.9742595204513399, + "auprc": 0.013513513513513514, + "brier": 0.0003530919881237057, + "calibration": { + "observed_rate": 0.00035248501938667606, + "mean_prediction": 5.713747231892419e-05, + "calibration_in_the_large": -0.0002953475470677519, + "expected_calibration_error_10bin": 0.0002953475470677519, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + "E03": { + "valid": 2480, + "positives": 7, + "negatives": 2473, + "auroc": 0.8399283692449887, + "auprc": 0.014546753404951237, + "brier": 0.002810675292626479, + "calibration": { + "observed_rate": 0.00282258064516129, + "mean_prediction": 0.0011694406649909188, + "calibration_in_the_large": -0.0016531399801703714, + "expected_calibration_error_10bin": 0.0016531399801703714, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8723179739711572 + }, + "E04": { + "valid": 2775, + "positives": 3, + "negatives": 2772, + "auroc": 0.8381433381433382, + "auprc": 0.004767826722506454, + "brier": 0.001079629059529752, + "calibration": { + "observed_rate": 0.001081081081081081, + "mean_prediction": 0.00047045306861217065, + "calibration_in_the_large": -0.0006106280124689104, + "expected_calibration_error_10bin": 0.0006106280124689104, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + "E05": { + "valid": 2806, + "positives": 2, + "negatives": 2804, + "auroc": 0.2662268188302425, + "auprc": 0.0007124417633551916, + "brier": 0.0007127027030262369, + "calibration": { + "observed_rate": 0.0007127583749109052, + "mean_prediction": 0.00016890751093869287, + "calibration_in_the_large": -0.0005438508639722124, + "expected_calibration_error_10bin": 0.0005438508639722124, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "E11": { + "valid": 2194, + "positives": 6, + "negatives": 2188, + "auroc": 0.734079829372334, + "auprc": 0.010564268476947069, + "brier": 0.0027269238927657776, + "calibration": { + "observed_rate": 0.0027347310847766638, + "mean_prediction": 0.0010091110959577568, + "calibration_in_the_large": -0.001725619988818907, + "expected_calibration_error_10bin": 0.001725619988818907, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7717200140696447 + }, + "E16": { + "valid": 2816, + "positives": 1, + "negatives": 2815, + "auroc": 0.8628774422735347, + "auprc": 0.002583979328165375, + "brier": 0.00035553945296372923, + "calibration": { + "observed_rate": 0.0003551136363636364, + "mean_prediction": 0.0005198677999692949, + "calibration_in_the_large": 0.00016475416360565856, + "expected_calibration_error_10bin": 0.00016475416360565856, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "E21": { + "valid": 2814, + "positives": 1, + "negatives": 2813, + "auroc": 0.9729825808745112, + "auprc": 0.012987012987012988, + "brier": 0.00035456638336420096, + "calibration": { + "observed_rate": 0.00035536602700781805, + "mean_prediction": 0.0003336114342829372, + "calibration_in_the_large": -2.1754592724880864e-05, + "expected_calibration_error_10bin": 2.1754592724880864e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "E22": { + "valid": 2802, + "positives": 3, + "negatives": 2799, + "auroc": 0.7927831368345838, + "auprc": 0.005074889564782928, + "brier": 0.001074346689211862, + "calibration": { + "observed_rate": 0.0010706638115631692, + "mean_prediction": 0.0010451679059969741, + "calibration_in_the_large": -2.549590556619511e-05, + "expected_calibration_error_10bin": 2.549590556619511e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "E27": { + "valid": 2811, + "positives": 0, + "negatives": 2811, + "auroc": null, + "auprc": null, + "brier": 3.170141407977603e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0003168171198403885, + "calibration_in_the_large": 0.0003168171198403885, + "expected_calibration_error_10bin": 0.0003168171198403885, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9887442842068238 + }, + "E43": { + "valid": 2748, + "positives": 14, + "negatives": 2734, + "auroc": 0.8804995297314244, + "auprc": 0.02922614445858976, + "brier": 0.005036553319469639, + "calibration": { + "observed_rate": 0.005094614264919942, + "mean_prediction": 0.0019465725430505326, + "calibration_in_the_large": -0.003148041721869409, + "expected_calibration_error_10bin": 0.003148041721869409, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9665845937390081 + }, + "E44": { + "valid": 2800, + "positives": 5, + "negatives": 2795, + "auroc": 0.6674776386404293, + "auprc": 0.015480487912096483, + "brier": 0.001777340288954763, + "calibration": { + "observed_rate": 0.0017857142857142857, + "mean_prediction": 0.001206282424579724, + "calibration_in_the_large": -0.0005794318611345617, + "expected_calibration_error_10bin": 0.0005794318611345617, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + "E46": { + "valid": 2772, + "positives": 10, + "negatives": 2762, + "auroc": 0.785952208544533, + "auprc": 0.03364625017122192, + "brier": 0.0035639933081340358, + "calibration": { + "observed_rate": 0.0036075036075036075, + "mean_prediction": 0.0018990423889240027, + "calibration_in_the_large": -0.0017084612185796048, + "expected_calibration_error_10bin": 0.0017084612185796048, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9750263805838902 + }, + "E53": { + "valid": 2804, + "positives": 1, + "negatives": 2803, + "auroc": 0.5155190866928291, + "auprc": 0.0007358351729212656, + "brier": 0.0003572033933646124, + "calibration": { + "observed_rate": 0.0003566333808844508, + "mean_prediction": 0.0003717490674057052, + "calibration_in_the_large": 1.5115686521254403e-05, + "expected_calibration_error_10bin": 1.5115686521254403e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "E55": { + "valid": 2737, + "positives": 9, + "negatives": 2728, + "auroc": 0.5818670576735093, + "auprc": 0.0060936054176014, + "brier": 0.0032828787099616463, + "calibration": { + "observed_rate": 0.003288271830471319, + "mean_prediction": 0.0012513847196051182, + "calibration_in_the_large": -0.002036887110866201, + "expected_calibration_error_10bin": 0.002036887110866201, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9627154414351038 + }, + "E66": { + "valid": 2371, + "positives": 9, + "negatives": 2362, + "auroc": 0.703405776648791, + "auprc": 0.008937720129912886, + "brier": 0.003787005565315511, + "calibration": { + "observed_rate": 0.003795866722901729, + "mean_prediction": 0.0028670511858259694, + "calibration_in_the_large": -0.0009288155370757597, + "expected_calibration_error_10bin": 0.0009288155370757597, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8339781920506507 + }, + "E78": { + "valid": 1572, + "positives": 13, + "negatives": 1559, + "auroc": 0.6667982434499432, + "auprc": 0.025250245543354585, + "brier": 0.008189154645998623, + "calibration": { + "observed_rate": 0.00826972010178117, + "mean_prediction": 0.005913782267435328, + "calibration_in_the_large": -0.002355937834345842, + "expected_calibration_error_10bin": 0.002355937834345842, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5529370383397819 + }, + "E80": { + "valid": 2823, + "positives": 2, + "negatives": 2821, + "auroc": 0.9388514711095356, + "auprc": 0.008427714856762159, + "brier": 0.0007082206312708371, + "calibration": { + "observed_rate": 0.0007084661707403471, + "mean_prediction": 0.0003248632934792954, + "calibration_in_the_large": -0.00038360287726105176, + "expected_calibration_error_10bin": 0.00038360287726105176, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "E83": { + "valid": 2653, + "positives": 14, + "negatives": 2639, + "auroc": 0.8509716884101121, + "auprc": 0.07246966727091726, + "brier": 0.0051303326198210465, + "calibration": { + "observed_rate": 0.005277044854881266, + "mean_prediction": 0.003466578709469349, + "calibration_in_the_large": -0.0018104661454119175, + "expected_calibration_error_10bin": 0.0018104661454119175, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9331691874780161 + }, + "E86": { + "valid": 2587, + "positives": 26, + "negatives": 2561, + "auroc": 0.8523413330129457, + "auprc": 0.05102543814866126, + "brier": 0.009748665026270907, + "calibration": { + "observed_rate": 0.010050251256281407, + "mean_prediction": 0.008748527184204992, + "calibration_in_the_large": -0.001301724072076415, + "expected_calibration_error_10bin": 0.001301724072076415, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9099542736545903 + }, + "E87": { + "valid": 2185, + "positives": 31, + "negatives": 2154, + "auroc": 0.8062868781262168, + "auprc": 0.049115968063605644, + "brier": 0.01377185061493064, + "calibration": { + "observed_rate": 0.014187643020594966, + "mean_prediction": 0.013264541498460493, + "calibration_in_the_large": -0.0009231015221344736, + "expected_calibration_error_10bin": 0.0021733728542074667, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.768554344002814 + }, + "E88": { + "valid": 2817, + "positives": 3, + "negatives": 2814, + "auroc": 0.9035773513385453, + "auprc": 0.05182153843842377, + "brier": 0.0010560338870184455, + "calibration": { + "observed_rate": 0.0010649627263045794, + "mean_prediction": 0.0005851504617661876, + "calibration_in_the_large": -0.0004798122645383919, + "expected_calibration_error_10bin": 0.0004798122645383919, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "E89": { + "valid": 2780, + "positives": 3, + "negatives": 2777, + "auroc": 0.9638698835673989, + "auprc": 0.021929270568109043, + "brier": 0.0010750621781790179, + "calibration": { + "observed_rate": 0.001079136690647482, + "mean_prediction": 0.0006187355969670286, + "calibration_in_the_large": -0.0004604010936804534, + "expected_calibration_error_10bin": 0.0004604010936804534, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + "F02": { + "valid": 2802, + "positives": 0, + "negatives": 2802, + "auroc": null, + "auprc": null, + "brier": 2.323641171683994e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.000493752016902243, + "calibration_in_the_large": 0.000493752016902243, + "expected_calibration_error_10bin": 0.000493752016902243, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "F03": { + "valid": 2739, + "positives": 5, + "negatives": 2734, + "auroc": 0.8923189465983906, + "auprc": 0.015113057887223244, + "brier": 0.001814967865747059, + "calibration": { + "observed_rate": 0.0018254837531945967, + "mean_prediction": 0.0012028159114106408, + "calibration_in_the_large": -0.0006226678417839558, + "expected_calibration_error_10bin": 0.0006226678417839558, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + "F05": { + "valid": 2750, + "positives": 1, + "negatives": 2749, + "auroc": 0.9679883594034194, + "auprc": 0.011235955056179775, + "brier": 0.000365971510067503, + "calibration": { + "observed_rate": 0.0003636363636363636, + "mean_prediction": 0.001452531150581742, + "calibration_in_the_large": 0.0010888947869453782, + "expected_calibration_error_10bin": 0.0010888947869453782, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + "F06": { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.3424124513618677, + "auprc": 0.0005376344086021505, + "brier": 0.00035406993237537714, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.000343886320316724, + "calibration_in_the_large": -9.72046893362962e-06, + "expected_calibration_error_10bin": 9.72046893362962e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "F10": { + "valid": 2560, + "positives": 5, + "negatives": 2555, + "auroc": 0.7765166340508807, + "auprc": 0.10908595676417768, + "brier": 0.0019264095829636106, + "calibration": { + "observed_rate": 0.001953125, + "mean_prediction": 0.0009834235967613124, + "calibration_in_the_large": -0.0009697014032386876, + "expected_calibration_error_10bin": 0.0009697014032386876, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + "F11": { + "valid": 2741, + "positives": 4, + "negatives": 2737, + "auroc": 0.9813664596273292, + "auprc": 0.10110609401799153, + "brier": 0.0014320700334910562, + "calibration": { + "observed_rate": 0.001459321415541773, + "mean_prediction": 0.0006764076450749643, + "calibration_in_the_large": -0.0007829137704668087, + "expected_calibration_error_10bin": 0.0007829137704668087, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + "F12": { + "valid": 2777, + "positives": 5, + "negatives": 2772, + "auroc": 0.9592352092352092, + "auprc": 0.029051830265193014, + "brier": 0.0017900670067160166, + "calibration": { + "observed_rate": 0.0018005041411595247, + "mean_prediction": 0.0005655510876848011, + "calibration_in_the_large": -0.0012349530534747236, + "expected_calibration_error_10bin": 0.0012349530534747236, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + "F14": { + "valid": 2787, + "positives": 4, + "negatives": 2783, + "auroc": 0.9686489399928135, + "auprc": 0.03704616064714971, + "brier": 0.0014273290012944756, + "calibration": { + "observed_rate": 0.0014352350197344816, + "mean_prediction": 0.00033119771822748327, + "calibration_in_the_large": -0.0011040373015069984, + "expected_calibration_error_10bin": 0.0011040373015069984, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "F15": { + "valid": 2823, + "positives": 4, + "negatives": 2819, + "auroc": 0.9648811635331678, + "auprc": 0.0669382285373947, + "brier": 0.0013999500307065214, + "calibration": { + "observed_rate": 0.0014169323414806943, + "mean_prediction": 0.00039627939543590985, + "calibration_in_the_large": -0.0010206529460447845, + "expected_calibration_error_10bin": 0.0010206529460447845, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "F17": { + "valid": 2426, + "positives": 13, + "negatives": 2413, + "auroc": 0.8976696738818579, + "auprc": 0.05816157281808814, + "brier": 0.00526080384078934, + "calibration": { + "observed_rate": 0.0053586150041220115, + "mean_prediction": 0.0020285337397876733, + "calibration_in_the_large": -0.003330081264334338, + "expected_calibration_error_10bin": 0.003330081264334338, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8533239535701723 + }, + "F19": { + "valid": 2801, + "positives": 6, + "negatives": 2795, + "auroc": 0.922659511031604, + "auprc": 0.29170343625655526, + "brier": 0.002059747383956168, + "calibration": { + "observed_rate": 0.0021420921099607284, + "mean_prediction": 0.0007278375776295317, + "calibration_in_the_large": -0.0014142545323311967, + "expected_calibration_error_10bin": 0.0014142545323311967, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "F20": { + "valid": 2808, + "positives": 0, + "negatives": 2808, + "auroc": null, + "auprc": null, + "brier": 2.1124727324809134e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0001505645825953905, + "calibration_in_the_large": 0.0001505645825953905, + "expected_calibration_error_10bin": 0.0001505645825953905, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9876890608512136 + }, + "F22": { + "valid": 2821, + "positives": 0, + "negatives": 2821, + "auroc": null, + "auprc": null, + "brier": 3.269987033760005e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0005708006258082676, + "calibration_in_the_large": 0.0005708006258082676, + "expected_calibration_error_10bin": 0.0005708006258082676, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "F25": { + "valid": 2819, + "positives": 1, + "negatives": 2818, + "auroc": 0.9779985805535841, + "auprc": 0.015873015873015872, + "brier": 0.00035439642642258364, + "calibration": { + "observed_rate": 0.000354735721887194, + "mean_prediction": 0.00035559070100102603, + "calibration_in_the_large": 8.54979113832006e-07, + "expected_calibration_error_10bin": 8.54979113832006e-07, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "F29": { + "valid": 2806, + "positives": 3, + "negatives": 2803, + "auroc": 0.8412415269354263, + "auprc": 0.005547257658138162, + "brier": 0.0010684784724997135, + "calibration": { + "observed_rate": 0.0010691375623663579, + "mean_prediction": 0.000183377350775089, + "calibration_in_the_large": -0.0008857602115912689, + "expected_calibration_error_10bin": 0.0008857602115912689, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "F31": { + "valid": 2724, + "positives": 5, + "negatives": 2719, + "auroc": 0.9221772710555352, + "auprc": 0.017224294693736, + "brier": 0.001825297116558218, + "calibration": { + "observed_rate": 0.0018355359765051395, + "mean_prediction": 0.0009053920086583352, + "calibration_in_the_large": -0.0009301439678468042, + "expected_calibration_error_10bin": 0.0009301439678468042, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9581428068941259 + }, + "F32": { + "valid": 2200, + "positives": 16, + "negatives": 2184, + "auroc": 0.7916094322344323, + "auprc": 0.0458675302487206, + "brier": 0.0071165430530705995, + "calibration": { + "observed_rate": 0.007272727272727273, + "mean_prediction": 0.006985646834205413, + "calibration_in_the_large": -0.00028708043852185977, + "expected_calibration_error_10bin": 0.00028708043852185977, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7738304607808653 + }, + "F33": { + "valid": 2800, + "positives": 6, + "negatives": 2794, + "auroc": 0.8020758768790265, + "auprc": 0.01578623809032618, + "brier": 0.002147451706930186, + "calibration": { + "observed_rate": 0.002142857142857143, + "mean_prediction": 0.001950582018856234, + "calibration_in_the_large": -0.00019227512400090893, + "expected_calibration_error_10bin": 0.00019227512400090893, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + "F39": { + "valid": 2801, + "positives": 5, + "negatives": 2796, + "auroc": 0.7849070100143062, + "auprc": 0.012662057920235541, + "brier": 0.0017815501855627243, + "calibration": { + "observed_rate": 0.001785076758300607, + "mean_prediction": 0.0003315353487791327, + "calibration_in_the_large": -0.0014535414095214743, + "expected_calibration_error_10bin": 0.0014535414095214743, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "F41": { + "valid": 2247, + "positives": 16, + "negatives": 2231, + "auroc": 0.7753809950694756, + "auprc": 0.02932012238662971, + "brier": 0.007024504007670708, + "calibration": { + "observed_rate": 0.007120605251446373, + "mean_prediction": 0.00933156159020097, + "calibration_in_the_large": 0.0022109563387545973, + "expected_calibration_error_10bin": 0.0022109563387545973, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7903622933520928 + }, + "F43": { + "valid": 2734, + "positives": 6, + "negatives": 2728, + "auroc": 0.9480083088954057, + "auprc": 0.03718861579257154, + "brier": 0.0021642162232602138, + "calibration": { + "observed_rate": 0.0021945866861741038, + "mean_prediction": 0.0019348941200335674, + "calibration_in_the_large": -0.0002596925661405363, + "expected_calibration_error_10bin": 0.0002596925661405363, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "F60": { + "valid": 2818, + "positives": 2, + "negatives": 2816, + "auroc": 0.9490411931818182, + "auprc": 0.025484448786842532, + "brier": 0.0007065110722855804, + "calibration": { + "observed_rate": 0.0007097232079489, + "mean_prediction": 0.0008556296906177803, + "calibration_in_the_large": 0.00014590648266888035, + "expected_calibration_error_10bin": 0.00014590648266888035, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "F90": { + "valid": 2775, + "positives": 3, + "negatives": 2772, + "auroc": 0.8591871091871092, + "auprc": 0.011672876579649669, + "brier": 0.0010780725921398174, + "calibration": { + "observed_rate": 0.001081081081081081, + "mean_prediction": 0.00037048208863353947, + "calibration_in_the_large": -0.0007105989924475417, + "expected_calibration_error_10bin": 0.0007105989924475417, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + "G25": { + "valid": 2774, + "positives": 1, + "negatives": 2773, + "auroc": 0.988820771727371, + "auprc": 0.03125, + "brier": 0.00035865352803335793, + "calibration": { + "observed_rate": 0.0003604902667627974, + "mean_prediction": 0.000655845262104303, + "calibration_in_the_large": 0.00029535499534150556, + "expected_calibration_error_10bin": 0.00029535499534150556, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "G31": { + "valid": 2802, + "positives": 0, + "negatives": 2802, + "auroc": null, + "auprc": null, + "brier": 8.523845136010332e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0003934621405896139, + "calibration_in_the_large": 0.0003934621405896139, + "expected_calibration_error_10bin": 0.0003934621405896139, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "G40": { + "valid": 2723, + "positives": 6, + "negatives": 2717, + "auroc": 0.7739541160593792, + "auprc": 0.03360482521659212, + "brier": 0.002183436925550876, + "calibration": { + "observed_rate": 0.0022034520749173708, + "mean_prediction": 0.0011983638651512562, + "calibration_in_the_large": -0.0010050882097661145, + "expected_calibration_error_10bin": 0.0010050882097661145, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + "G43": { + "valid": 2725, + "positives": 3, + "negatives": 2722, + "auroc": 0.7239774675483713, + "auprc": 0.00577653790448979, + "brier": 0.0010991296543715876, + "calibration": { + "observed_rate": 0.0011009174311926607, + "mean_prediction": 0.0008527698463329366, + "calibration_in_the_large": -0.000248147584859724, + "expected_calibration_error_10bin": 0.000248147584859724, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9584945480126627 + }, + "G44": { + "valid": 2805, + "positives": 1, + "negatives": 2804, + "auroc": 0.7268188302425107, + "auprc": 0.001303780964797914, + "brier": 0.0003569804256429563, + "calibration": { + "observed_rate": 0.00035650623885918, + "mean_prediction": 0.0003940293486687157, + "calibration_in_the_large": 3.752310980953568e-05, + "expected_calibration_error_10bin": 3.752310980953568e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "G47": { + "valid": 2315, + "positives": 23, + "negatives": 2292, + "auroc": 0.6725851733818954, + "auprc": 0.020557586078478626, + "brier": 0.009814080325087895, + "calibration": { + "observed_rate": 0.009935205183585313, + "mean_prediction": 0.007733190463695949, + "calibration_in_the_large": -0.002202014719889364, + "expected_calibration_error_10bin": 0.002202014719889364, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8142806894125924 + }, + "G51": { + "valid": 2834, + "positives": 0, + "negatives": 2834, + "auroc": null, + "auprc": null, + "brier": 2.4563356038050845e-08, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00011800341699250982, + "calibration_in_the_large": 0.00011800341699250982, + "expected_calibration_error_10bin": 0.00011800341699250982, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9968343299331692 + }, + "G62": { + "valid": 2751, + "positives": 7, + "negatives": 2744, + "auroc": 0.8485006247396918, + "auprc": 0.157209301575776, + "brier": 0.002501376233895863, + "calibration": { + "observed_rate": 0.002544529262086514, + "mean_prediction": 0.0012247952380050244, + "calibration_in_the_large": -0.0013197340240814898, + "expected_calibration_error_10bin": 0.0013197340240814898, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "G81": { + "valid": 2789, + "positives": 8, + "negatives": 2781, + "auroc": 0.6656328658755843, + "auprc": 0.01891341522848911, + "brier": 0.0028602702491776206, + "calibration": { + "observed_rate": 0.0028684116170670493, + "mean_prediction": 0.0007393167942221193, + "calibration_in_the_large": -0.00212909482284493, + "expected_calibration_error_10bin": 0.00212909482284493, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "G83": { + "valid": 2824, + "positives": 1, + "negatives": 2823, + "auroc": 0.7768331562167906, + "auprc": 0.001584786053882726, + "brier": 0.0003543992393223715, + "calibration": { + "observed_rate": 0.0003541076487252125, + "mean_prediction": 0.0003014796458141805, + "calibration_in_the_large": -5.262800291103197e-05, + "expected_calibration_error_10bin": 5.262800291103197e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "G89": { + "valid": 2537, + "positives": 15, + "negatives": 2522, + "auroc": 0.7205656886069257, + "auprc": 0.02697454602822567, + "brier": 0.005843073509851874, + "calibration": { + "observed_rate": 0.005912495072920773, + "mean_prediction": 0.004624779525736606, + "calibration_in_the_large": -0.001287715547184167, + "expected_calibration_error_10bin": 0.001287715547184167, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8923672177277524 + }, + "G90": { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 2.1044348182659428e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0003180722231136244, + "calibration_in_the_large": 0.0003180722231136244, + "expected_calibration_error_10bin": 0.0003180722231136244, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "G92": { + "valid": 2733, + "positives": 4, + "negatives": 2729, + "auroc": 0.794338585562477, + "auprc": 0.006434034032748695, + "brier": 0.0014622456008058008, + "calibration": { + "observed_rate": 0.0014635931211123307, + "mean_prediction": 0.0021972753998357386, + "calibration_in_the_large": 0.0007336822787234079, + "expected_calibration_error_10bin": 0.0007336822787234079, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + "G93": { + "valid": 2656, + "positives": 9, + "negatives": 2647, + "auroc": 0.8270159089955086, + "auprc": 0.013013898913668338, + "brier": 0.003364653186571225, + "calibration": { + "observed_rate": 0.00338855421686747, + "mean_prediction": 0.002513783029960875, + "calibration_in_the_large": -0.0008747711869065951, + "expected_calibration_error_10bin": 0.0008747711869065951, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9342244108336265 + }, + "G99": { + "valid": 2841, + "positives": 0, + "negatives": 2841, + "auroc": null, + "auprc": null, + "brier": 6.821396276417538e-08, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 7.154028039897376e-05, + "calibration_in_the_large": 7.154028039897376e-05, + "expected_calibration_error_10bin": 7.154028039897376e-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": 1.8032826591476772e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00022545467910771514, + "calibration_in_the_large": 0.00022545467910771514, + "expected_calibration_error_10bin": 0.00022545467910771514, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9961308476960957 + }, + "H26": { + "valid": 2819, + "positives": 0, + "negatives": 2819, + "auroc": null, + "auprc": null, + "brier": 4.151882143857318e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00038284987239901543, + "calibration_in_the_large": 0.00038284987239901543, + "expected_calibration_error_10bin": 0.00038284987239901543, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "H35": { + "valid": 2806, + "positives": 3, + "negatives": 2803, + "auroc": 0.7009156855749792, + "auprc": 0.0023658397114454124, + "brier": 0.0010686964185615702, + "calibration": { + "observed_rate": 0.0010691375623663579, + "mean_prediction": 0.0002496260822772099, + "calibration_in_the_large": -0.0008195114800891479, + "expected_calibration_error_10bin": 0.0008195114800891479, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "H40": { + "valid": 2750, + "positives": 3, + "negatives": 2747, + "auroc": 0.8810823929134813, + "auprc": 0.1280468262402375, + "brier": 0.0010784375456991046, + "calibration": { + "observed_rate": 0.001090909090909091, + "mean_prediction": 0.0008284950256783387, + "calibration_in_the_large": -0.0002624140652307522, + "expected_calibration_error_10bin": 0.0002624140652307522, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + "H53": { + "valid": 2790, + "positives": 3, + "negatives": 2787, + "auroc": 0.6048319578997727, + "auprc": 0.013458157514251183, + "brier": 0.0010722092235634795, + "calibration": { + "observed_rate": 0.001075268817204301, + "mean_prediction": 0.0010849775719499353, + "calibration_in_the_large": 9.708754745634245e-06, + "expected_calibration_error_10bin": 9.708754745634245e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + "H54": { + "valid": 2809, + "positives": 1, + "negatives": 2808, + "auroc": 0.7236467236467237, + "auprc": 0.001287001287001287, + "brier": 0.0003559858386567893, + "calibration": { + "observed_rate": 0.000355998576005696, + "mean_prediction": 0.0002401162793008985, + "calibration_in_the_large": -0.00011588229670479749, + "expected_calibration_error_10bin": 0.00011588229670479749, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "H91": { + "valid": 2791, + "positives": 1, + "negatives": 2790, + "auroc": 0.6455197132616487, + "auprc": 0.00101010101010101, + "brier": 0.00035834882097331107, + "calibration": { + "observed_rate": 0.00035829451809387314, + "mean_prediction": 0.00027366673069883596, + "calibration_in_the_large": -8.462778739503718e-05, + "expected_calibration_error_10bin": 8.462778739503718e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9817094618360886 + }, + "I07": { + "valid": 2823, + "positives": 0, + "negatives": 2823, + "auroc": null, + "auprc": null, + "brier": 1.738916128482001e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0001840851627906993, + "calibration_in_the_large": 0.0001840851627906993, + "expected_calibration_error_10bin": 0.0001840851627906993, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "I08": { + "valid": 2767, + "positives": 1, + "negatives": 2766, + "auroc": 0.7986261749819233, + "auprc": 0.0017921146953405018, + "brier": 0.00037311181906062496, + "calibration": { + "observed_rate": 0.0003614022406938923, + "mean_prediction": 0.0011993714683462568, + "calibration_in_the_large": 0.0008379692276523644, + "expected_calibration_error_10bin": 0.0008379692276523644, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9732676749912065 + }, + "I10": { + "valid": 1498, + "positives": 14, + "negatives": 1484, + "auroc": 0.5984790142472083, + "auprc": 0.016188477169726812, + "brier": 0.00928430484761087, + "calibration": { + "observed_rate": 0.009345794392523364, + "mean_prediction": 0.0059101580990729725, + "calibration_in_the_large": -0.0034356362934503913, + "expected_calibration_error_10bin": 0.0034356362934503913, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5269081955680619 + }, + "I11": { + "valid": 2676, + "positives": 8, + "negatives": 2668, + "auroc": 0.7958208395802099, + "auprc": 0.03335513760839992, + "brier": 0.0029685973570596487, + "calibration": { + "observed_rate": 0.0029895366218236174, + "mean_prediction": 0.002852924134812056, + "calibration_in_the_large": -0.00013661248701156165, + "expected_calibration_error_10bin": 0.00013661248701156165, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9412592332043616 + }, + "I12": { + "valid": 2552, + "positives": 8, + "negatives": 2544, + "auroc": 0.8234080188679245, + "auprc": 0.03131400973063796, + "brier": 0.0031062924339876814, + "calibration": { + "observed_rate": 0.003134796238244514, + "mean_prediction": 0.002055710462847514, + "calibration_in_the_large": -0.001079085775397, + "expected_calibration_error_10bin": 0.001175289517192591, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8976433345058037 + }, + "I13": { + "valid": 2727, + "positives": 4, + "negatives": 2723, + "auroc": 0.8387807565185457, + "auprc": 0.008422042996615382, + "brier": 0.0014904422202112063, + "calibration": { + "observed_rate": 0.0014668133480014668, + "mean_prediction": 0.0023477912549567984, + "calibration_in_the_large": 0.0008809779069553316, + "expected_calibration_error_10bin": 0.0008809779069553316, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9591980302497362 + }, + "I16": { + "valid": 2390, + "positives": 1, + "negatives": 2389, + "auroc": 0.9790707408957723, + "auprc": 0.0196078431372549, + "brier": 0.00041672549551878085, + "calibration": { + "observed_rate": 0.00041841004184100416, + "mean_prediction": 0.0005073598122938309, + "calibration_in_the_large": 8.894977045282676e-05, + "expected_calibration_error_10bin": 8.894977045282676e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8406612733028491 + }, + "I21": { + "valid": 2671, + "positives": 3, + "negatives": 2668, + "auroc": 0.9219140429785108, + "auprc": 0.013816488848226663, + "brier": 0.0011199611831498285, + "calibration": { + "observed_rate": 0.0011231748408835642, + "mean_prediction": 0.002391690147078322, + "calibration_in_the_large": 0.0012685153061947577, + "expected_calibration_error_10bin": 0.0012685153061947577, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + "I24": { + "valid": 2809, + "positives": 1, + "negatives": 2808, + "auroc": 0.9882478632478633, + "auprc": 0.029411764705882353, + "brier": 0.00035399459183721004, + "calibration": { + "observed_rate": 0.000355998576005696, + "mean_prediction": 0.0007032505947159392, + "calibration_in_the_large": 0.00034725201871024325, + "expected_calibration_error_10bin": 0.00034725201871024325, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "I25": { + "valid": 2243, + "positives": 13, + "negatives": 2230, + "auroc": 0.833839254915488, + "auprc": 0.03761967924727719, + "brier": 0.005711048671280158, + "calibration": { + "observed_rate": 0.0057958091841284, + "mean_prediction": 0.0029101543516054404, + "calibration_in_the_large": -0.0028856548325229595, + "expected_calibration_error_10bin": 0.0028856548325229595, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7889553288779458 + }, + "I26": { + "valid": 2760, + "positives": 3, + "negatives": 2757, + "auroc": 0.9568371418208197, + "auprc": 0.11400966183574879, + "brier": 0.0010575843793828835, + "calibration": { + "observed_rate": 0.0010869565217391304, + "mean_prediction": 0.0022106736697905024, + "calibration_in_the_large": 0.001123717148051372, + "expected_calibration_error_10bin": 0.001123717148051372, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9708054871614492 + }, + "I27": { + "valid": 2716, + "positives": 6, + "negatives": 2710, + "auroc": 0.8878843788437885, + "auprc": 0.015547885901783931, + "brier": 0.0021964276301952856, + "calibration": { + "observed_rate": 0.0022091310751104565, + "mean_prediction": 0.0019555429859244465, + "calibration_in_the_large": -0.00025358808918601004, + "expected_calibration_error_10bin": 0.00025358808918601004, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + "I31": { + "valid": 2793, + "positives": 4, + "negatives": 2789, + "auroc": 0.7217640731444962, + "auprc": 0.003046232182975791, + "brier": 0.0014335996650488856, + "calibration": { + "observed_rate": 0.0014321518080916578, + "mean_prediction": 0.0013082539818070433, + "calibration_in_the_large": -0.0001238978262846145, + "expected_calibration_error_10bin": 0.0001238978262846145, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "I34": { + "valid": 2753, + "positives": 4, + "negatives": 2749, + "auroc": 0.6457802837395417, + "auprc": 0.003198281457872637, + "brier": 0.001459519149705545, + "calibration": { + "observed_rate": 0.001452960406828914, + "mean_prediction": 0.0014177588748211349, + "calibration_in_the_large": -3.520153200777909e-05, + "expected_calibration_error_10bin": 3.520153200777909e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9683432993316918 + }, + "I35": { + "valid": 2723, + "positives": 2, + "negatives": 2721, + "auroc": 0.3467475192943771, + "auprc": 0.0008242965015064381, + "brier": 0.000737624191430967, + "calibration": { + "observed_rate": 0.0007344840249724568, + "mean_prediction": 0.0007708161038839113, + "calibration_in_the_large": 3.633207891145444e-05, + "expected_calibration_error_10bin": 3.633207891145444e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + "I42": { + "valid": 2740, + "positives": 1, + "negatives": 2739, + "auroc": 0.9777290982110259, + "auprc": 0.016129032258064516, + "brier": 0.0003649462669154453, + "calibration": { + "observed_rate": 0.000364963503649635, + "mean_prediction": 0.0009590382136643065, + "calibration_in_the_large": 0.0005940747100146714, + "expected_calibration_error_10bin": 0.0005940747100146714, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + "I44": { + "valid": 2722, + "positives": 4, + "negatives": 2718, + "auroc": 0.8507174392935982, + "auprc": 0.03251851414114682, + "brier": 0.001459657337986883, + "calibration": { + "observed_rate": 0.0014695077149155032, + "mean_prediction": 0.0015284543309507129, + "calibration_in_the_large": 5.894661603520965e-05, + "expected_calibration_error_10bin": 5.894661603520965e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9574393246570524 + }, + "I45": { + "valid": 2766, + "positives": 2, + "negatives": 2764, + "auroc": 0.690123010130246, + "auprc": 0.002951107694841738, + "brier": 0.0007228847176259071, + "calibration": { + "observed_rate": 0.0007230657989877079, + "mean_prediction": 0.0011636565831870736, + "calibration_in_the_large": 0.00044059078419936574, + "expected_calibration_error_10bin": 0.00044059078419936574, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9729159338726697 + }, + "I46": { + "valid": 2831, + "positives": 0, + "negatives": 2831, + "auroc": null, + "auprc": null, + "brier": 1.598036106541792e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00021419325405148352, + "calibration_in_the_large": 0.00021419325405148352, + "expected_calibration_error_10bin": 0.00021419325405148352, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.995779106577559 + }, + "I47": { + "valid": 2716, + "positives": 3, + "negatives": 2713, + "auroc": 0.7481263054429291, + "auprc": 0.003401783625684801, + "brier": 0.0011062236831780928, + "calibration": { + "observed_rate": 0.0011045655375552283, + "mean_prediction": 0.00211477061896032, + "calibration_in_the_large": 0.0010102050814050916, + "expected_calibration_error_10bin": 0.0010102050814050916, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + "I48": { + "valid": 2385, + "positives": 7, + "negatives": 2378, + "auroc": 0.7711762585606151, + "auprc": 0.008994907150304734, + "brier": 0.002948840417383074, + "calibration": { + "observed_rate": 0.0029350104821802936, + "mean_prediction": 0.003836138987136554, + "calibration_in_the_large": 0.0009011285049562606, + "expected_calibration_error_10bin": 0.0009011285049562606, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8389025677101654 + }, + "I49": { + "valid": 2734, + "positives": 4, + "negatives": 2730, + "auroc": 0.6768315018315019, + "auprc": 0.00397638988298461, + "brier": 0.00146129845307323, + "calibration": { + "observed_rate": 0.001463057790782736, + "mean_prediction": 0.0006470805491096091, + "calibration_in_the_large": -0.0008159772416731269, + "expected_calibration_error_10bin": 0.0008159772416731269, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "I50": { + "valid": 2415, + "positives": 7, + "negatives": 2408, + "auroc": 0.8496084480303749, + "auprc": 0.027748423811469643, + "brier": 0.0028723625523756698, + "calibration": { + "observed_rate": 0.002898550724637681, + "mean_prediction": 0.003088712194580534, + "calibration_in_the_large": 0.00019016146994285275, + "expected_calibration_error_10bin": 0.00019016146994285275, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.849454801266268 + }, + "I51": { + "valid": 2807, + "positives": 2, + "negatives": 2805, + "auroc": 0.8165775401069518, + "auprc": 0.006557204750616016, + "brier": 0.0007112584463877356, + "calibration": { + "observed_rate": 0.0007125044531528322, + "mean_prediction": 0.0005251505000576764, + "calibration_in_the_large": -0.00018735395309515577, + "expected_calibration_error_10bin": 0.00018735395309515577, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "I61": { + "valid": 2802, + "positives": 2, + "negatives": 2800, + "auroc": 0.9635714285714285, + "auprc": 0.014124015748031496, + "brier": 0.0007121296527844862, + "calibration": { + "observed_rate": 0.0007137758743754461, + "mean_prediction": 0.000335509667251302, + "calibration_in_the_large": -0.0003782662071241441, + "expected_calibration_error_10bin": 0.0003782662071241441, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "I63": { + "valid": 2735, + "positives": 4, + "negatives": 2731, + "auroc": 0.7505492493592091, + "auprc": 0.00424389174663757, + "brier": 0.0014612570302761493, + "calibration": { + "observed_rate": 0.0014625228519195613, + "mean_prediction": 0.0014314530054394823, + "calibration_in_the_large": -3.106984648007906e-05, + "expected_calibration_error_10bin": 3.106984648007906e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9620119591980303 + }, + "I65": { + "valid": 2774, + "positives": 0, + "negatives": 2774, + "auroc": null, + "auprc": null, + "brier": 2.470382386593822e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0008681682633204183, + "calibration_in_the_large": 0.0008681682633204183, + "expected_calibration_error_10bin": 0.0008681682633204183, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "I67": { + "valid": 2773, + "positives": 2, + "negatives": 2771, + "auroc": 0.9321544568747745, + "auprc": 0.007697114292206316, + "brier": 0.000719876663309124, + "calibration": { + "observed_rate": 0.000721240533717995, + "mean_prediction": 0.0006020982763536388, + "calibration_in_the_large": -0.0001191422573643562, + "expected_calibration_error_10bin": 0.0001191422573643562, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + "I69": { + "valid": 2752, + "positives": 4, + "negatives": 2748, + "auroc": 0.7796579330422125, + "auprc": 0.06735651826266936, + "brier": 0.0014386502889124676, + "calibration": { + "observed_rate": 0.0014534883720930232, + "mean_prediction": 0.0018545841758727882, + "calibration_in_the_large": 0.00040109580377976494, + "expected_calibration_error_10bin": 0.00040109580377976494, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9679915582131551 + }, + "I70": { + "valid": 2771, + "positives": 2, + "negatives": 2769, + "auroc": 0.9864572047670639, + "auprc": 0.03785714285714285, + "brier": 0.0007151637336427864, + "calibration": { + "observed_rate": 0.0007217610970768675, + "mean_prediction": 0.0006874515155462526, + "calibration_in_the_large": -3.430958153061495e-05, + "expected_calibration_error_10bin": 3.430958153061495e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9746746394653535 + }, + "I71": { + "valid": 2769, + "positives": 1, + "negatives": 2768, + "auroc": 0.986271676300578, + "auprc": 0.02564102564102564, + "brier": 0.00035958304406346643, + "calibration": { + "observed_rate": 0.00036114120621162876, + "mean_prediction": 0.0008526622188592001, + "calibration_in_the_large": 0.0004915210126475713, + "expected_calibration_error_10bin": 0.0004915210126475713, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.97397115722828 + }, + "I72": { + "valid": 2818, + "positives": 2, + "negatives": 2816, + "auroc": 0.5640980113636364, + "auprc": 0.0024374361409719523, + "brier": 0.0007094893212420486, + "calibration": { + "observed_rate": 0.0007097232079489, + "mean_prediction": 0.00041443393006735383, + "calibration_in_the_large": -0.0002952892778815461, + "expected_calibration_error_10bin": 0.0002952892778815461, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "I73": { + "valid": 2734, + "positives": 1, + "negatives": 2733, + "auroc": 0.9802414928649835, + "auprc": 0.01818181818181818, + "brier": 0.0003740194212784487, + "calibration": { + "observed_rate": 0.000365764447695684, + "mean_prediction": 0.0014689567338033542, + "calibration_in_the_large": 0.0011031922861076703, + "expected_calibration_error_10bin": 0.0011031922861076703, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "I74": { + "valid": 2821, + "positives": 2, + "negatives": 2819, + "auroc": 0.7052146151117418, + "auprc": 0.014502762430939226, + "brier": 0.0007079825032272139, + "calibration": { + "observed_rate": 0.0007089684509039348, + "mean_prediction": 0.0002826809876780753, + "calibration_in_the_large": -0.0004262874632258595, + "expected_calibration_error_10bin": 0.0004262874632258595, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "I77": { + "valid": 2785, + "positives": 2, + "negatives": 2783, + "auroc": 0.7177506288178225, + "auprc": 0.002129228900241884, + "brier": 0.0007178924970951339, + "calibration": { + "observed_rate": 0.000718132854578097, + "mean_prediction": 0.0005446421832593891, + "calibration_in_the_large": -0.00017349067131870787, + "expected_calibration_error_10bin": 0.00017349067131870787, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "I80": { + "valid": 2827, + "positives": 2, + "negatives": 2825, + "auroc": 0.8842477876106195, + "auprc": 0.004529859050445104, + "brier": 0.0007072629116348698, + "calibration": { + "observed_rate": 0.0007074637424831977, + "mean_prediction": 0.00020481681470370077, + "calibration_in_the_large": -0.0005026469277794969, + "expected_calibration_error_10bin": 0.0005026469277794969, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "I81": { + "valid": 2826, + "positives": 4, + "negatives": 2822, + "auroc": 0.885099220411056, + "auprc": 0.0196830225340936, + "brier": 0.0014117194343231808, + "calibration": { + "observed_rate": 0.0014154281670205238, + "mean_prediction": 0.0003158031262113743, + "calibration_in_the_large": -0.0010996250408091494, + "expected_calibration_error_10bin": 0.0010996250408091494, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "I82": { + "valid": 2739, + "positives": 6, + "negatives": 2733, + "auroc": 0.7148432735699476, + "auprc": 0.007043415424206054, + "brier": 0.00218485400939948, + "calibration": { + "observed_rate": 0.002190580503833516, + "mean_prediction": 0.0015571817455850808, + "calibration_in_the_large": -0.000633398758248435, + "expected_calibration_error_10bin": 0.000633398758248435, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + "I85": { + "valid": 2793, + "positives": 1, + "negatives": 2792, + "auroc": 0.9867478510028653, + "auprc": 0.02631578947368421, + "brier": 0.0003842566876208205, + "calibration": { + "observed_rate": 0.00035803795202291446, + "mean_prediction": 0.0004125157591557942, + "calibration_in_the_large": 5.4477807132879725e-05, + "expected_calibration_error_10bin": 0.000143798484211391, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "I87": { + "valid": 2780, + "positives": 4, + "negatives": 2776, + "auroc": 0.7768371757925072, + "auprc": 0.010561743028720134, + "brier": 0.0014356047245434292, + "calibration": { + "observed_rate": 0.0014388489208633094, + "mean_prediction": 0.0005024386864869012, + "calibration_in_the_large": -0.0009364102343764082, + "expected_calibration_error_10bin": 0.0009364102343764082, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + "I89": { + "valid": 2826, + "positives": 1, + "negatives": 2825, + "auroc": 0.9536283185840708, + "auprc": 0.007575757575757576, + "brier": 0.00035339554013018114, + "calibration": { + "observed_rate": 0.00035385704175513094, + "mean_prediction": 0.00019215798940664584, + "calibration_in_the_large": -0.0001616990523484851, + "expected_calibration_error_10bin": 0.0001616990523484851, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "I95": { + "valid": 2485, + "positives": 19, + "negatives": 2466, + "auroc": 0.701733043069962, + "auprc": 0.01471359069820258, + "brier": 0.007578909250138138, + "calibration": { + "observed_rate": 0.007645875251509054, + "mean_prediction": 0.008439593718802253, + "calibration_in_the_large": 0.0007937184672931986, + "expected_calibration_error_10bin": 0.0007937184672931986, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.874076679563841 + }, + "I96": { + "valid": 2831, + "positives": 0, + "negatives": 2831, + "auroc": null, + "auprc": null, + "brier": 6.400027484560067e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00032245798888235004, + "calibration_in_the_large": 0.00032245798888235004, + "expected_calibration_error_10bin": 0.00032245798888235004, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.995779106577559 + }, + "I97": { + "valid": 2740, + "positives": 4, + "negatives": 2736, + "auroc": 0.8868786549707602, + "auprc": 0.016710010100251253, + "brier": 0.0014504427435559622, + "calibration": { + "observed_rate": 0.00145985401459854, + "mean_prediction": 0.0014508583803861947, + "calibration_in_the_large": -8.995634212345324e-06, + "expected_calibration_error_10bin": 8.995634212345324e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + "J02": { + "valid": 2825, + "positives": 0, + "negatives": 2825, + "auroc": null, + "auprc": null, + "brier": 8.457941961220947e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00034522048362104, + "calibration_in_the_large": 0.00034522048362104, + "expected_calibration_error_10bin": 0.00034522048362104, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J06": { + "valid": 2816, + "positives": 1, + "negatives": 2815, + "auroc": 0.503019538188277, + "auprc": 0.0007142857142857143, + "brier": 0.0003578418297187441, + "calibration": { + "observed_rate": 0.0003551136363636364, + "mean_prediction": 0.0005688334093088605, + "calibration_in_the_large": 0.00021371977294522412, + "expected_calibration_error_10bin": 0.00021371977294522412, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "J12": { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 1.3261798743718254e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0004013874566146742, + "calibration_in_the_large": 0.0004013874566146742, + "expected_calibration_error_10bin": 0.0004013874566146742, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J15": { + "valid": 2795, + "positives": 1, + "negatives": 2794, + "auroc": 0.8539727988546886, + "auprc": 0.0024449877750611247, + "brier": 0.00035913023876705364, + "calibration": { + "observed_rate": 0.00035778175313059033, + "mean_prediction": 0.0007092166557426716, + "calibration_in_the_large": 0.00035143490261208124, + "expected_calibration_error_10bin": 0.00035143490261208124, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9831164263102357 + }, + "J18": { + "valid": 2671, + "positives": 9, + "negatives": 2662, + "auroc": 0.8179731196260122, + "auprc": 0.01209851101496962, + "brier": 0.003353244236728909, + "calibration": { + "observed_rate": 0.0033695245226506927, + "mean_prediction": 0.002807222892190635, + "calibration_in_the_large": -0.0005623016304600577, + "expected_calibration_error_10bin": 0.0005623016304600577, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + "J30": { + "valid": 2815, + "positives": 0, + "negatives": 2815, + "auroc": null, + "auprc": null, + "brier": 2.508407324722376e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00030386358861050314, + "calibration_in_the_large": 0.00030386358861050314, + "expected_calibration_error_10bin": 0.00030386358861050314, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9901512486809708 + }, + "J32": { + "valid": 2829, + "positives": 1, + "negatives": 2828, + "auroc": 0.8380480905233381, + "auprc": 0.002178649237472767, + "brier": 0.00035360432305549467, + "calibration": { + "observed_rate": 0.0003534817956875221, + "mean_prediction": 0.0002576656790465919, + "calibration_in_the_large": -9.581611664093018e-05, + "expected_calibration_error_10bin": 9.581611664093018e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J38": { + "valid": 2825, + "positives": 1, + "negatives": 2824, + "auroc": 0.6763456090651558, + "auprc": 0.001092896174863388, + "brier": 0.000354372343857246, + "calibration": { + "observed_rate": 0.00035398230088495576, + "mean_prediction": 0.00043704399447562487, + "calibration_in_the_large": 8.306169359066911e-05, + "expected_calibration_error_10bin": 8.306169359066911e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J43": { + "valid": 2804, + "positives": 1, + "negatives": 2803, + "auroc": 0.16910453085979307, + "auprc": 0.00042918454935622315, + "brier": 0.00035779774494372593, + "calibration": { + "observed_rate": 0.0003566333808844508, + "mean_prediction": 0.0007335965330918522, + "calibration_in_the_large": 0.00037696315220740143, + "expected_calibration_error_10bin": 0.00037696315220740143, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "J44": { + "valid": 2570, + "positives": 6, + "negatives": 2564, + "auroc": 0.8449037961518461, + "auprc": 0.013366992424117242, + "brier": 0.0023240707701521015, + "calibration": { + "observed_rate": 0.0023346303501945525, + "mean_prediction": 0.001456868611422421, + "calibration_in_the_large": -0.0008777617387721315, + "expected_calibration_error_10bin": 0.0008777617387721315, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9039746746394653 + }, + "J45": { + "valid": 2518, + "positives": 9, + "negatives": 2509, + "auroc": 0.6717594437801692, + "auprc": 0.007608756329305352, + "brier": 0.0035674634232362094, + "calibration": { + "observed_rate": 0.003574265289912629, + "mean_prediction": 0.001823330874591869, + "calibration_in_the_large": -0.0017509344153207602, + "expected_calibration_error_10bin": 0.0017509344153207602, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.885684136475554 + }, + "J47": { + "valid": 2825, + "positives": 0, + "negatives": 2825, + "auroc": null, + "auprc": null, + "brier": 9.715370221866753e-08, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0001113530194588032, + "calibration_in_the_large": 0.0001113530194588032, + "expected_calibration_error_10bin": 0.0001113530194588032, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J69": { + "valid": 2777, + "positives": 6, + "negatives": 2771, + "auroc": 0.8476482617586912, + "auprc": 0.015100398405393964, + "brier": 0.0021478350932970184, + "calibration": { + "observed_rate": 0.0021606049693914295, + "mean_prediction": 0.0012395878869313427, + "calibration_in_the_large": -0.0009210170824600868, + "expected_calibration_error_10bin": 0.0009210170824600868, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + "J81": { + "valid": 2781, + "positives": 5, + "negatives": 2776, + "auroc": 0.7211095100864553, + "auprc": 0.006373822268695817, + "brier": 0.0017939122614383193, + "calibration": { + "observed_rate": 0.0017979144192736426, + "mean_prediction": 0.0008968146009525938, + "calibration_in_the_large": -0.0009010998183210488, + "expected_calibration_error_10bin": 0.0009010998183210488, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + "J84": { + "valid": 2817, + "positives": 4, + "negatives": 2813, + "auroc": 0.8875755421258443, + "auprc": 0.008472005803756488, + "brier": 0.0014174348764710415, + "calibration": { + "observed_rate": 0.0014199503017394391, + "mean_prediction": 0.0003507488753240207, + "calibration_in_the_large": -0.0010692014264154185, + "expected_calibration_error_10bin": 0.0010692014264154185, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "J90": { + "valid": 2754, + "positives": 11, + "negatives": 2743, + "auroc": 0.5946375898982534, + "auprc": 0.005775878856784749, + "brier": 0.003990632936411049, + "calibration": { + "observed_rate": 0.0039941902687000725, + "mean_prediction": 0.002419152967665132, + "calibration_in_the_large": -0.0015750373010349405, + "expected_calibration_error_10bin": 0.0015750373010349405, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9686950404502286 + }, + "J91": { + "valid": 2807, + "positives": 1, + "negatives": 2806, + "auroc": 0.7697790449037776, + "auprc": 0.0015455950540958269, + "brier": 0.00036306237665765617, + "calibration": { + "observed_rate": 0.0003562522265764161, + "mean_prediction": 0.0008747722352653814, + "calibration_in_the_large": 0.0005185200086889653, + "expected_calibration_error_10bin": 0.0005185200086889653, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "J94": { + "valid": 2829, + "positives": 4, + "negatives": 2825, + "auroc": 0.8299115044247788, + "auprc": 0.02795011392339636, + "brier": 0.001412699328383792, + "calibration": { + "observed_rate": 0.0014139271827500884, + "mean_prediction": 9.910479068812103e-05, + "calibration_in_the_large": -0.0013148223920619673, + "expected_calibration_error_10bin": 0.0013148223920619673, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J95": { + "valid": 2770, + "positives": 5, + "negatives": 2765, + "auroc": 0.7854611211573237, + "auprc": 0.009592408194301254, + "brier": 0.0018006808061513495, + "calibration": { + "observed_rate": 0.0018050541516245488, + "mean_prediction": 0.0005886971669116272, + "calibration_in_the_large": -0.0012163569847129215, + "expected_calibration_error_10bin": 0.0012163569847129215, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9743228983468167 + }, + "J96": { + "valid": 2605, + "positives": 10, + "negatives": 2595, + "auroc": 0.87626204238921, + "auprc": 0.03932875440400677, + "brier": 0.003772568747430667, + "calibration": { + "observed_rate": 0.003838771593090211, + "mean_prediction": 0.0035464261400992726, + "calibration_in_the_large": -0.00029234545299093844, + "expected_calibration_error_10bin": 0.00029234545299093844, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9162856137882518 + }, + "J98": { + "valid": 2692, + "positives": 6, + "negatives": 2686, + "auroc": 0.6389302556465625, + "auprc": 0.004101048564964352, + "brier": 0.0022254324077848873, + "calibration": { + "observed_rate": 0.002228826151560178, + "mean_prediction": 0.0020922758507000106, + "calibration_in_the_large": -0.00013655030086016755, + "expected_calibration_error_10bin": 0.00013655030086016755, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9468870911009497 + }, + "K04": { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 5.144022315470017e-09, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 4.5154311336813794e-05, + "calibration_in_the_large": 4.5154311336813794e-05, + "expected_calibration_error_10bin": 4.5154311336813794e-05, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "K12": { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.9959248759744862, + "auprc": 0.1125, + "brier": 0.0006885583911798524, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0003224723158791096, + "calibration_in_the_large": -0.00038574298157131534, + "expected_calibration_error_10bin": 0.00038574298157131534, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "K20": { + "valid": 2813, + "positives": 1, + "negatives": 2812, + "auroc": 0.6148648648648649, + "auprc": 0.0009225092250922509, + "brier": 0.00035931271334824005, + "calibration": { + "observed_rate": 0.00035549235691432633, + "mean_prediction": 0.0007751204631642716, + "calibration_in_the_large": 0.00041962810624994527, + "expected_calibration_error_10bin": 0.00041962810624994527, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K21": { + "valid": 2043, + "positives": 16, + "negatives": 2027, + "auroc": 0.7574309324124322, + "auprc": 0.04197463181944723, + "brier": 0.007690509721982324, + "calibration": { + "observed_rate": 0.00783162016642193, + "mean_prediction": 0.008121156304473754, + "calibration_in_the_large": 0.00028953613805182514, + "expected_calibration_error_10bin": 0.00028953613805182514, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7186071051705945 + }, + "K22": { + "valid": 2764, + "positives": 1, + "negatives": 2763, + "auroc": 0.9659790083242852, + "auprc": 0.010526315789473684, + "brier": 0.0003613862982563804, + "calibration": { + "observed_rate": 0.000361794500723589, + "mean_prediction": 0.0007315340437897738, + "calibration_in_the_large": 0.00036973954306618485, + "expected_calibration_error_10bin": 0.00036973954306618485, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9722124516355962 + }, + "K25": { + "valid": 2817, + "positives": 2, + "negatives": 2815, + "auroc": 0.7474245115452931, + "auprc": 0.0020581445707497127, + "brier": 0.0007100963443501856, + "calibration": { + "observed_rate": 0.0007099751508697196, + "mean_prediction": 0.00027656263491443255, + "calibration_in_the_large": -0.000433412515955287, + "expected_calibration_error_10bin": 0.000433412515955287, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "K26": { + "valid": 2814, + "positives": 0, + "negatives": 2814, + "auroc": null, + "auprc": null, + "brier": 1.373897877552793e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0007264422096824016, + "calibration_in_the_large": 0.0007264422096824016, + "expected_calibration_error_10bin": 0.0007264422096824016, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "K29": { + "valid": 2785, + "positives": 0, + "negatives": 2785, + "auroc": null, + "auprc": null, + "brier": 5.418390793049271e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0012834852515145121, + "calibration_in_the_large": 0.0012834852515145121, + "expected_calibration_error_10bin": 0.0012834852515145121, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K30": { + "valid": 2837, + "positives": 0, + "negatives": 2837, + "auroc": null, + "auprc": null, + "brier": 2.445422296904873e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00020463793718565425, + "calibration_in_the_large": 0.00020463793718565425, + "expected_calibration_error_10bin": 0.00020463793718565425, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9978895532887795 + }, + "K31": { + "valid": 2756, + "positives": 3, + "negatives": 2753, + "auroc": 0.7835088993824918, + "auprc": 0.335264170498021, + "brier": 0.0010550239191743506, + "calibration": { + "observed_rate": 0.0010885341074020319, + "mean_prediction": 0.0009117057664539609, + "calibration_in_the_large": -0.00017682834094807096, + "expected_calibration_error_10bin": 0.00017682834094807096, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + "K40": { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 5.989509008834575e-08, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00016535874562082978, + "calibration_in_the_large": 0.00016535874562082978, + "expected_calibration_error_10bin": 0.00016535874562082978, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "K42": { + "valid": 2820, + "positives": 2, + "negatives": 2818, + "auroc": 0.6265081618168914, + "auprc": 0.006743096646942801, + "brier": 0.0007090433577584014, + "calibration": { + "observed_rate": 0.0007092198581560284, + "mean_prediction": 0.00017537767913762255, + "calibration_in_the_large": -0.0005338421790184059, + "expected_calibration_error_10bin": 0.0005338421790184059, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + "K43": { + "valid": 2813, + "positives": 1, + "negatives": 2812, + "auroc": 0.982574679943101, + "auprc": 0.02, + "brier": 0.0003549314028555109, + "calibration": { + "observed_rate": 0.00035549235691432633, + "mean_prediction": 0.0001454664093346034, + "calibration_in_the_large": -0.00021002594757972294, + "expected_calibration_error_10bin": 0.00021002594757972294, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K44": { + "valid": 2785, + "positives": 1, + "negatives": 2784, + "auroc": 0.7869971264367817, + "auprc": 0.0016835016835016834, + "brier": 0.0003590760377926155, + "calibration": { + "observed_rate": 0.0003590664272890485, + "mean_prediction": 0.00044578151069861834, + "calibration_in_the_large": 8.671508340956985e-05, + "expected_calibration_error_10bin": 8.671508340956985e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K52": { + "valid": 2749, + "positives": 4, + "negatives": 2745, + "auroc": 0.8751366120218579, + "auprc": 0.012197061650586098, + "brier": 0.0014501625417866339, + "calibration": { + "observed_rate": 0.0014550745725718443, + "mean_prediction": 0.001286067121367207, + "calibration_in_the_large": -0.00016900745120463734, + "expected_calibration_error_10bin": 0.00016900745120463734, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9669363348575448 + }, + "K55": { + "valid": 2815, + "positives": 2, + "negatives": 2813, + "auroc": 0.9226804123711341, + "auprc": 0.006718373336128288, + "brier": 0.0007098369663376442, + "calibration": { + "observed_rate": 0.0007104795737122557, + "mean_prediction": 0.0005846319522160358, + "calibration_in_the_large": -0.00012584762149621994, + "expected_calibration_error_10bin": 0.00012584762149621994, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + "K56": { + "valid": 2745, + "positives": 7, + "negatives": 2738, + "auroc": 0.7699050401753105, + "auprc": 0.0128409665071358, + "brier": 0.002539399952277781, + "calibration": { + "observed_rate": 0.0025500910746812386, + "mean_prediction": 0.0010256443843572327, + "calibration_in_the_large": -0.001524446690324006, + "expected_calibration_error_10bin": 0.001524446690324006, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9655293703833978 + }, + "K57": { + "valid": 2741, + "positives": 3, + "negatives": 2738, + "auroc": 0.6766496225955685, + "auprc": 0.0022473141154655814, + "brier": 0.00109410669727105, + "calibration": { + "observed_rate": 0.0010944910616563297, + "mean_prediction": 0.0005859086710985059, + "calibration_in_the_large": -0.0005085823905578239, + "expected_calibration_error_10bin": 0.0005085823905578239, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + "K58": { + "valid": 2792, + "positives": 3, + "negatives": 2789, + "auroc": 0.673598661407912, + "auprc": 0.0021443029948297727, + "brier": 0.0010755401478255511, + "calibration": { + "observed_rate": 0.0010744985673352436, + "mean_prediction": 0.0008367221973958424, + "calibration_in_the_large": -0.00023777636993940114, + "expected_calibration_error_10bin": 0.00023777636993940114, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + "K59": { + "valid": 2560, + "positives": 29, + "negatives": 2531, + "auroc": 0.7216583332197987, + "auprc": 0.05097488301576221, + "brier": 0.011055052827234752, + "calibration": { + "observed_rate": 0.011328125, + "mean_prediction": 0.008020356361487301, + "calibration_in_the_large": -0.0033077686385126984, + "expected_calibration_error_10bin": 0.003307768638512699, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + "K62": { + "valid": 2813, + "positives": 1, + "negatives": 2812, + "auroc": 0.5778805120910384, + "auprc": 0.0008417508417508417, + "brier": 0.00035597271626385994, + "calibration": { + "observed_rate": 0.00035549235691432633, + "mean_prediction": 0.0006001588109558671, + "calibration_in_the_large": 0.00024466645404154074, + "expected_calibration_error_10bin": 0.00024466645404154074, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K63": { + "valid": 2810, + "positives": 2, + "negatives": 2808, + "auroc": 0.6128917378917379, + "auprc": 0.0025267043276841804, + "brier": 0.0007115027997163842, + "calibration": { + "observed_rate": 0.0007117437722419929, + "mean_prediction": 0.0006522338405210126, + "calibration_in_the_large": -5.950993172098033e-05, + "expected_calibration_error_10bin": 5.950993172098033e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + "K64": { + "valid": 2801, + "positives": 2, + "negatives": 2799, + "auroc": 0.6786352268667382, + "auprc": 0.0028851636446573154, + "brier": 0.0007142512908466496, + "calibration": { + "observed_rate": 0.0007140307033202428, + "mean_prediction": 0.0007794025670736976, + "calibration_in_the_large": 6.537186375345477e-05, + "expected_calibration_error_10bin": 6.537186375345477e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "K65": { + "valid": 2813, + "positives": 5, + "negatives": 2808, + "auroc": 0.8616096866096866, + "auprc": 0.014436789927368309, + "brier": 0.001779465214920948, + "calibration": { + "observed_rate": 0.0017774617845716318, + "mean_prediction": 0.0010586267952221416, + "calibration_in_the_large": -0.0007188349893494901, + "expected_calibration_error_10bin": 0.0007188349893494901, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K66": { + "valid": 2796, + "positives": 1, + "negatives": 2795, + "auroc": 0.881216457960644, + "auprc": 0.003003003003003003, + "brier": 0.0003577182119089993, + "calibration": { + "observed_rate": 0.000357653791130186, + "mean_prediction": 0.0003451136914797601, + "calibration_in_the_large": -1.254009965042589e-05, + "expected_calibration_error_10bin": 1.254009965042589e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + "K70": { + "valid": 2774, + "positives": 0, + "negatives": 2774, + "auroc": null, + "auprc": null, + "brier": 1.8715783205189702e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00023144695471278285, + "calibration_in_the_large": 0.00023144695471278285, + "expected_calibration_error_10bin": 0.00023144695471278285, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "K72": { + "valid": 2787, + "positives": 4, + "negatives": 2783, + "auroc": 0.9663133309378369, + "auprc": 0.16755710085933967, + "brier": 0.0013771620147497942, + "calibration": { + "observed_rate": 0.0014352350197344816, + "mean_prediction": 0.0006245572317497661, + "calibration_in_the_large": -0.0008106777879847156, + "expected_calibration_error_10bin": 0.0008899042251454936, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "K74": { + "valid": 2763, + "positives": 1, + "negatives": 2762, + "auroc": 0.9855177407675597, + "auprc": 0.024390243902439025, + "brier": 0.00036768748225934667, + "calibration": { + "observed_rate": 0.0003619254433586681, + "mean_prediction": 0.0006190566750782269, + "calibration_in_the_large": 0.0002571312317195588, + "expected_calibration_error_10bin": 0.0002571312317195588, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + "K75": { + "valid": 2798, + "positives": 2, + "negatives": 2796, + "auroc": 0.9504649499284692, + "auprc": 0.01125, + "brier": 0.0007154425914850687, + "calibration": { + "observed_rate": 0.0007147962830593281, + "mean_prediction": 0.0005524488288634345, + "calibration_in_the_large": -0.00016234745419589365, + "expected_calibration_error_10bin": 0.00016234745419589365, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + "K76": { + "valid": 2681, + "positives": 10, + "negatives": 2671, + "auroc": 0.8312991388992886, + "auprc": 0.17461046540018, + "brier": 0.003466151172405665, + "calibration": { + "observed_rate": 0.003729951510630362, + "mean_prediction": 0.001114802028347078, + "calibration_in_the_large": -0.002615149482283284, + "expected_calibration_error_10bin": 0.0031359938435504588, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9430179387970454 + }, + "K80": { + "valid": 2731, + "positives": 2, + "negatives": 2729, + "auroc": 0.5106266031513375, + "auprc": 0.0012020522567470486, + "brier": 0.0007337018919697386, + "calibration": { + "observed_rate": 0.0007323324789454412, + "mean_prediction": 0.0008674630867437315, + "calibration_in_the_large": 0.00013513060779829034, + "expected_calibration_error_10bin": 0.00013513060779829034, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9606049947238833 + }, + "K81": { + "valid": 2825, + "positives": 0, + "negatives": 2825, + "auroc": null, + "auprc": null, + "brier": 3.497775230654178e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.000460973124891178, + "calibration_in_the_large": 0.000460973124891178, + "expected_calibration_error_10bin": 0.000460973124891178, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "K82": { + "valid": 2824, + "positives": 1, + "negatives": 2823, + "auroc": 0.9114417286574567, + "auprc": 0.00398406374501992, + "brier": 0.0003558500440310279, + "calibration": { + "observed_rate": 0.0003541076487252125, + "mean_prediction": 0.000406561831289261, + "calibration_in_the_large": 5.2454182564048524e-05, + "expected_calibration_error_10bin": 5.2454182564048524e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "K83": { + "valid": 2757, + "positives": 1, + "negatives": 2756, + "auroc": 0.9016690856313497, + "auprc": 0.003676470588235294, + "brier": 0.0003811975593391455, + "calibration": { + "observed_rate": 0.0003627130939426913, + "mean_prediction": 0.0009192137618338706, + "calibration_in_the_large": 0.0005565006678911793, + "expected_calibration_error_10bin": 0.0005565006678911793, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.969750263805839 + }, + "K85": { + "valid": 2779, + "positives": 1, + "negatives": 2778, + "auroc": 0.5993520518358532, + "auprc": 0.0008976660682226212, + "brier": 0.0003600368680550564, + "calibration": { + "observed_rate": 0.0003598416696653472, + "mean_prediction": 0.00026559396438570904, + "calibration_in_the_large": -9.424770527963818e-05, + "expected_calibration_error_10bin": 9.424770527963818e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9774885684136475 + }, + "K86": { + "valid": 2785, + "positives": 1, + "negatives": 2784, + "auroc": 0.5603448275862069, + "auprc": 0.0008163265306122449, + "brier": 0.0003628233606415102, + "calibration": { + "observed_rate": 0.0003590664272890485, + "mean_prediction": 0.0006150910998734832, + "calibration_in_the_large": 0.0002560246725844347, + "expected_calibration_error_10bin": 0.0002560246725844347, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K90": { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.6547703180212014, + "auprc": 0.0010224948875255625, + "brier": 0.0003532414910458007, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.00012451462215654988, + "calibration_in_the_large": -0.0002287174513157214, + "expected_calibration_error_10bin": 0.0002287174513157214, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "K91": { + "valid": 2768, + "positives": 8, + "negatives": 2760, + "auroc": 0.841893115942029, + "auprc": 0.021291727403070053, + "brier": 0.0028721284214374104, + "calibration": { + "observed_rate": 0.002890173410404624, + "mean_prediction": 0.001047298718056434, + "calibration_in_the_large": -0.00184287469234819, + "expected_calibration_error_10bin": 0.00184287469234819, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "K92": { + "valid": 2751, + "positives": 7, + "negatives": 2744, + "auroc": 0.8473552686380674, + "auprc": 0.02030039387761964, + "brier": 0.0025242830176642516, + "calibration": { + "observed_rate": 0.002544529262086514, + "mean_prediction": 0.002388833304046084, + "calibration_in_the_large": -0.00015569595804043037, + "expected_calibration_error_10bin": 0.00015569595804043037, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "K94": { + "valid": 2823, + "positives": 5, + "negatives": 2818, + "auroc": 0.8449964513839603, + "auprc": 0.00800031296636023, + "brier": 0.00176902339601973, + "calibration": { + "observed_rate": 0.001771165426850868, + "mean_prediction": 0.0004166340136186265, + "calibration_in_the_large": -0.0013545314132322414, + "expected_calibration_error_10bin": 0.0013545314132322414, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "L02": { + "valid": 2807, + "positives": 3, + "negatives": 2804, + "auroc": 0.6937708036138849, + "auprc": 0.002403600224713009, + "brier": 0.0010694924057276136, + "calibration": { + "observed_rate": 0.0010687566797292483, + "mean_prediction": 0.0011013108910818035, + "calibration_in_the_large": 3.255421135255521e-05, + "expected_calibration_error_10bin": 3.255421135255521e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "L03": { + "valid": 2701, + "positives": 7, + "negatives": 2694, + "auroc": 0.5012196415314455, + "auprc": 0.0034690525129783155, + "brier": 0.00259278344975279, + "calibration": { + "observed_rate": 0.00259163272861903, + "mean_prediction": 0.002094398762243655, + "calibration_in_the_large": -0.0004972339663753753, + "expected_calibration_error_10bin": 0.0004972339663753753, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9500527611677805 + }, + "L08": { + "valid": 2830, + "positives": 3, + "negatives": 2827, + "auroc": 0.6878905789411626, + "auprc": 0.004111322674858198, + "brier": 0.0010593867729221367, + "calibration": { + "observed_rate": 0.0010600706713780918, + "mean_prediction": 0.000287972011929211, + "calibration_in_the_large": -0.0007720986594488808, + "expected_calibration_error_10bin": 0.0007720986594488808, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9954273654590221 + }, + "L27": { + "valid": 2818, + "positives": 3, + "negatives": 2815, + "auroc": 0.6927175843694494, + "auprc": 0.006171089265196755, + "brier": 0.0010647528887519934, + "calibration": { + "observed_rate": 0.0010645848119233499, + "mean_prediction": 0.0006046335735845464, + "calibration_in_the_large": -0.00045995123833880345, + "expected_calibration_error_10bin": 0.00045995123833880345, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "L29": { + "valid": 2817, + "positives": 2, + "negatives": 2815, + "auroc": 0.6236234458259325, + "auprc": 0.0013818534251035443, + "brier": 0.0007120077529278048, + "calibration": { + "observed_rate": 0.0007099751508697196, + "mean_prediction": 0.0006860888252575596, + "calibration_in_the_large": -2.3886325612159937e-05, + "expected_calibration_error_10bin": 2.3886325612159937e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "L30": { + "valid": 2816, + "positives": 1, + "negatives": 2815, + "auroc": 0.9985790408525755, + "auprc": 0.2, + "brier": 0.0003521270734795157, + "calibration": { + "observed_rate": 0.0003551136363636364, + "mean_prediction": 0.00038896748498034646, + "calibration_in_the_large": 3.385384861671008e-05, + "expected_calibration_error_10bin": 3.385384861671008e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "L50": { + "valid": 2835, + "positives": 1, + "negatives": 2834, + "auroc": 0.7985179957657021, + "auprc": 0.0017482517482517483, + "brier": 0.0003528500435310945, + "calibration": { + "observed_rate": 0.0003527336860670194, + "mean_prediction": 0.00016710709122588405, + "calibration_in_the_large": -0.00018562659484113537, + "expected_calibration_error_10bin": 0.00018562659484113537, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.997186071051706 + }, + "L53": { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 2.578611211402839e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0001990265777630349, + "calibration_in_the_large": 0.0001990265777630349, + "expected_calibration_error_10bin": 0.0001990265777630349, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "L76": { + "valid": 2793, + "positives": 6, + "negatives": 2787, + "auroc": 0.6707929673484033, + "auprc": 0.004010550408940372, + "brier": 0.0021457500407128086, + "calibration": { + "observed_rate": 0.0021482277121374865, + "mean_prediction": 0.0009028626989403526, + "calibration_in_the_large": -0.001245365013197134, + "expected_calibration_error_10bin": 0.001245365013197134, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "L89": { + "valid": 2798, + "positives": 8, + "negatives": 2790, + "auroc": 0.875179211469534, + "auprc": 0.013946440916804664, + "brier": 0.0028479352136835307, + "calibration": { + "observed_rate": 0.0028591851322373124, + "mean_prediction": 0.0008723226209734052, + "calibration_in_the_large": -0.0019868625112639073, + "expected_calibration_error_10bin": 0.0019868625112639073, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + "L97": { + "valid": 2789, + "positives": 2, + "negatives": 2787, + "auroc": 0.9447434517402225, + "auprc": 0.009739336492890997, + "brier": 0.0007176174532733335, + "calibration": { + "observed_rate": 0.0007171029042667623, + "mean_prediction": 0.00045075751712182695, + "calibration_in_the_large": -0.0002663453871449354, + "expected_calibration_error_10bin": 0.0002663453871449354, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "L98": { + "valid": 2824, + "positives": 0, + "negatives": 2824, + "auroc": null, + "auprc": null, + "brier": 5.712957391782445e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0003871365842932473, + "calibration_in_the_large": 0.0003871365842932473, + "expected_calibration_error_10bin": 0.0003871365842932473, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "M10": { + "valid": 2713, + "positives": 4, + "negatives": 2709, + "auroc": 0.7304355850867479, + "auprc": 0.005250684797637641, + "brier": 0.0014730161657045512, + "calibration": { + "observed_rate": 0.001474382602285293, + "mean_prediction": 0.0014171801517184103, + "calibration_in_the_large": -5.720245056688275e-05, + "expected_calibration_error_10bin": 5.720245056688275e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9542736545902216 + }, + "M16": { + "valid": 2790, + "positives": 1, + "negatives": 2789, + "auroc": 0.6873431337396917, + "auprc": 0.001145475372279496, + "brier": 0.00035848806990062073, + "calibration": { + "observed_rate": 0.00035842293906810036, + "mean_prediction": 0.0003527266281595388, + "calibration_in_the_large": -5.6963109085615585e-06, + "expected_calibration_error_10bin": 5.6963109085615585e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + "M17": { + "valid": 2733, + "positives": 2, + "negatives": 2731, + "auroc": 0.7698645184913951, + "auprc": 0.0042998331408034916, + "brier": 0.000731072059600387, + "calibration": { + "observed_rate": 0.0007317965605561653, + "mean_prediction": 0.0004472340532577213, + "calibration_in_the_large": -0.00028456250729844406, + "expected_calibration_error_10bin": 0.00028456250729844406, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + "M19": { + "valid": 2674, + "positives": 8, + "negatives": 2666, + "auroc": 0.6691204051012754, + "auprc": 0.007446064711905842, + "brier": 0.002983463108929371, + "calibration": { + "observed_rate": 0.0029917726252804786, + "mean_prediction": 0.0013379897545284074, + "calibration_in_the_large": -0.0016537828707520713, + "expected_calibration_error_10bin": 0.0016537828707520713, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.940555750967288 + }, + "M21": { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.8570921985815603, + "auprc": 0.0024752475247524753, + "brier": 0.0003543193374737832, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0002577175617430773, + "calibration_in_the_large": -9.676666370889007e-05, + "expected_calibration_error_10bin": 9.676666370889007e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "M25": { + "valid": 2717, + "positives": 5, + "negatives": 2712, + "auroc": 0.8441002949852507, + "auprc": 0.061386009328013094, + "brier": 0.0018122871774608528, + "calibration": { + "observed_rate": 0.001840264998159735, + "mean_prediction": 0.002802022432131471, + "calibration_in_the_large": 0.0009617574339717361, + "expected_calibration_error_10bin": 0.0009617574339717361, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9556806190643686 + }, + "M35": { + "valid": 2806, + "positives": 1, + "negatives": 2805, + "auroc": 0.8516934046345811, + "auprc": 0.002398081534772182, + "brier": 0.0003563299498172109, + "calibration": { + "observed_rate": 0.0003563791874554526, + "mean_prediction": 8.141465400480558e-05, + "calibration_in_the_large": -0.00027496453345064704, + "expected_calibration_error_10bin": 0.00027496453345064704, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "M46": { + "valid": 2814, + "positives": 0, + "negatives": 2814, + "auroc": null, + "auprc": null, + "brier": 1.183255177562076e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0001617015500968195, + "calibration_in_the_large": 0.0001617015500968195, + "expected_calibration_error_10bin": 0.0001617015500968195, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "M47": { + "valid": 2743, + "positives": 1, + "negatives": 2742, + "auroc": 0.11342086068563093, + "auprc": 0.00041118421052631577, + "brier": 0.00036640128258083344, + "calibration": { + "observed_rate": 0.0003645643456069996, + "mean_prediction": 0.0009742451789200844, + "calibration_in_the_large": 0.0006096808333130848, + "expected_calibration_error_10bin": 0.0006096808333130848, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + "M48": { + "valid": 2690, + "positives": 2, + "negatives": 2688, + "auroc": 0.9025297619047619, + "auprc": 0.12691204588910135, + "brier": 0.0007379871778731163, + "calibration": { + "observed_rate": 0.0007434944237918215, + "mean_prediction": 0.0013514940664464666, + "calibration_in_the_large": 0.000607999642654645, + "expected_calibration_error_10bin": 0.000607999642654645, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9461836088638762 + }, + "M51": { + "valid": 2785, + "positives": 0, + "negatives": 2785, + "auroc": null, + "auprc": null, + "brier": 4.864524953153144e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0005209057787098076, + "calibration_in_the_large": 0.0005209057787098076, + "expected_calibration_error_10bin": 0.0005209057787098076, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "M54": { + "valid": 2567, + "positives": 10, + "negatives": 2557, + "auroc": 0.665858427845131, + "auprc": 0.01556682892850714, + "brier": 0.0038759775041644156, + "calibration": { + "observed_rate": 0.0038955979742890533, + "mean_prediction": 0.004274706754270748, + "calibration_in_the_large": 0.00037910877998169465, + "expected_calibration_error_10bin": 0.00037910877998169465, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9029194512838551 + }, + "M62": { + "valid": 2781, + "positives": 0, + "negatives": 2781, + "auroc": null, + "auprc": null, + "brier": 1.883935426676553e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0010142499046138904, + "calibration_in_the_large": 0.0010142499046138904, + "expected_calibration_error_10bin": 0.0010142499046138904, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9781920506507211 + }, + "M79": { + "valid": 2697, + "positives": 7, + "negatives": 2690, + "auroc": 0.7958045671800319, + "auprc": 0.02641737128301236, + "brier": 0.002577705992314076, + "calibration": { + "observed_rate": 0.0025954764553207266, + "mean_prediction": 0.002386705903230652, + "calibration_in_the_large": -0.00020877055209007466, + "expected_calibration_error_10bin": 0.00020877055209007466, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9486457966936335 + }, + "M81": { + "valid": 2705, + "positives": 2, + "negatives": 2703, + "auroc": 0.5316315205327414, + "auprc": 0.0017331125044362948, + "brier": 0.0007475096666913261, + "calibration": { + "observed_rate": 0.0007393715341959334, + "mean_prediction": 0.0012862843642956678, + "calibration_in_the_large": 0.0005469128300997344, + "expected_calibration_error_10bin": 0.0005469128300997344, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9514597256419275 + }, + "M84": { + "valid": 2818, + "positives": 0, + "negatives": 2818, + "auroc": null, + "auprc": null, + "brier": 6.155575434591876e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00032234274185429516, + "calibration_in_the_large": 0.00032234274185429516, + "expected_calibration_error_10bin": 0.00032234274185429516, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "M85": { + "valid": 2768, + "positives": 2, + "negatives": 2766, + "auroc": 0.8091106290672451, + "auprc": 0.006909046986351008, + "brier": 0.000721411571406988, + "calibration": { + "observed_rate": 0.000722543352601156, + "mean_prediction": 0.000472554202872617, + "calibration_in_the_large": -0.000249989149728539, + "expected_calibration_error_10bin": 0.000249989149728539, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "M86": { + "valid": 2803, + "positives": 3, + "negatives": 2800, + "auroc": 0.9598809523809524, + "auprc": 0.06419971497370879, + "brier": 0.0010606295947988603, + "calibration": { + "observed_rate": 0.0010702818408847663, + "mean_prediction": 0.0004833315556155766, + "calibration_in_the_large": -0.0005869502852691897, + "expected_calibration_error_10bin": 0.0005869502852691897, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9859303552585297 + }, + "M94": { + "valid": 2819, + "positives": 1, + "negatives": 2818, + "auroc": 0.5752306600425834, + "auprc": 0.0008347245409015025, + "brier": 0.00035472601025937433, + "calibration": { + "observed_rate": 0.000354735721887194, + "mean_prediction": 6.846998420148138e-05, + "calibration_in_the_large": -0.00028626573768571266, + "expected_calibration_error_10bin": 0.00028626573768571266, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "M96": { + "valid": 2804, + "positives": 0, + "negatives": 2804, + "auroc": null, + "auprc": null, + "brier": 1.6017433494256428e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0007315565502527228, + "calibration_in_the_large": 0.0007315565502527228, + "expected_calibration_error_10bin": 0.0007315565502527228, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "N12": { + "valid": 2831, + "positives": 3, + "negatives": 2828, + "auroc": 0.6264733616218765, + "auprc": 0.0018262782608685947, + "brier": 0.0010599538200151712, + "calibration": { + "observed_rate": 0.0010596962204168139, + "mean_prediction": 0.0002097551459665853, + "calibration_in_the_large": -0.0008499410744502285, + "expected_calibration_error_10bin": 0.0008499410744502285, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "N13": { + "valid": 2756, + "positives": 2, + "negatives": 2754, + "auroc": 0.7610748002904866, + "auprc": 0.0037788163257030474, + "brier": 0.000725725501957473, + "calibration": { + "observed_rate": 0.000725689404934688, + "mean_prediction": 0.0007260891852044442, + "calibration_in_the_large": 3.99780269756244e-07, + "expected_calibration_error_10bin": 3.99780269756244e-07, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + "N14": { + "valid": 2826, + "positives": 3, + "negatives": 2823, + "auroc": 0.680954067776597, + "auprc": 0.003493547189531918, + "brier": 0.0010609921934314356, + "calibration": { + "observed_rate": 0.0010615711252653928, + "mean_prediction": 0.0004363418681602589, + "calibration_in_the_large": -0.0006252292571051339, + "expected_calibration_error_10bin": 0.0006252292571051339, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "N17": { + "valid": 2292, + "positives": 25, + "negatives": 2267, + "auroc": 0.7918835465372739, + "auprc": 0.0484962180621124, + "brier": 0.010624097855233267, + "calibration": { + "observed_rate": 0.010907504363001745, + "mean_prediction": 0.011238617749971477, + "calibration_in_the_large": 0.0003311133869697315, + "expected_calibration_error_10bin": 0.0004868844958958029, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8061906436862469 + }, + "N18": { + "valid": 2440, + "positives": 11, + "negatives": 2429, + "auroc": 0.8911261649013811, + "auprc": 0.06489330444224277, + "brier": 0.0044093276293529085, + "calibration": { + "observed_rate": 0.004508196721311476, + "mean_prediction": 0.0034656531436514314, + "calibration_in_the_large": -0.0010425435776600443, + "expected_calibration_error_10bin": 0.0015878134331260894, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.858248329229687 + }, + "N20": { + "valid": 2806, + "positives": 6, + "negatives": 2800, + "auroc": 0.7294642857142857, + "auprc": 0.004384723717411623, + "brier": 0.0021371489326734786, + "calibration": { + "observed_rate": 0.0021382751247327157, + "mean_prediction": 0.00023365652315446035, + "calibration_in_the_large": -0.0019046186015782554, + "expected_calibration_error_10bin": 0.0019046186015782554, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "N25": { + "valid": 2831, + "positives": 2, + "negatives": 2829, + "auroc": 0.9379639448568399, + "auprc": 0.014116318464144552, + "brier": 0.0007057853230742055, + "calibration": { + "observed_rate": 0.0007064641469445425, + "mean_prediction": 0.00010932756786527163, + "calibration_in_the_large": -0.0005971365790792709, + "expected_calibration_error_10bin": 0.0005971365790792709, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "N28": { + "valid": 2789, + "positives": 3, + "negatives": 2786, + "auroc": 0.9272553242402488, + "auprc": 0.015621577599201719, + "brier": 0.0010712808955369766, + "calibration": { + "observed_rate": 0.0010756543564001434, + "mean_prediction": 0.0007781465438435529, + "calibration_in_the_large": -0.0002975078125565905, + "expected_calibration_error_10bin": 0.0002975078125565905, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "N30": { + "valid": 2829, + "positives": 4, + "negatives": 2825, + "auroc": 0.7261946902654868, + "auprc": 0.005468369109034256, + "brier": 0.0014119459549470994, + "calibration": { + "observed_rate": 0.0014139271827500884, + "mean_prediction": 0.0005202051045371718, + "calibration_in_the_large": -0.0008937220782129166, + "expected_calibration_error_10bin": 0.0008937220782129166, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "N32": { + "valid": 2807, + "positives": 5, + "negatives": 2802, + "auroc": 0.839186295503212, + "auprc": 0.018651269724507095, + "brier": 0.0017746045802436697, + "calibration": { + "observed_rate": 0.0017812611328820805, + "mean_prediction": 0.0009210422341170049, + "calibration_in_the_large": -0.0008602188987650755, + "expected_calibration_error_10bin": 0.0008602188987650755, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "N39": { + "valid": 2520, + "positives": 16, + "negatives": 2504, + "auroc": 0.7948282747603834, + "auprc": 0.02160211127893679, + "brier": 0.006274575093699112, + "calibration": { + "observed_rate": 0.006349206349206349, + "mean_prediction": 0.009077143881101316, + "calibration_in_the_large": 0.002727937531894967, + "expected_calibration_error_10bin": 0.002727937531894967, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8863876187126275 + }, + "N40": { + "valid": 2606, + "positives": 5, + "negatives": 2601, + "auroc": 0.8718954248366013, + "auprc": 0.04160445356011776, + "brier": 0.001898392078425396, + "calibration": { + "observed_rate": 0.001918649270913277, + "mean_prediction": 0.0021069122151500274, + "calibration_in_the_large": 0.00018826294423675044, + "expected_calibration_error_10bin": 0.00018826294423675044, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9166373549067885 + }, + "N73": { + "valid": 2829, + "positives": 1, + "negatives": 2828, + "auroc": 0.8818953323903819, + "auprc": 0.0029850746268656717, + "brier": 0.0003539007134149649, + "calibration": { + "observed_rate": 0.0003534817956875221, + "mean_prediction": 0.0001901433994849837, + "calibration_in_the_large": -0.0001633383962025384, + "expected_calibration_error_10bin": 0.0001633383962025384, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "N99": { + "valid": 2799, + "positives": 2, + "negatives": 2797, + "auroc": 0.6503396496245978, + "auprc": 0.002104238183258516, + "brier": 0.000714525200300941, + "calibration": { + "observed_rate": 0.0007145409074669524, + "mean_prediction": 0.0005264264392102503, + "calibration_in_the_large": -0.00018811446825670215, + "expected_calibration_error_10bin": 0.00018811446825670215, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9845233907843827 + }, + "O69": { + "valid": 2743, + "positives": 0, + "negatives": 2743, + "auroc": null, + "auprc": null, + "brier": 7.742962394501228e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0007782377193437373, + "calibration_in_the_large": 0.0007782377193437373, + "expected_calibration_error_10bin": 0.0007782377193437373, + "nonempty_bins": 2 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9648258881463243 + }, + "O99": { + "valid": 2652, + "positives": 0, + "negatives": 2652, + "auroc": null, + "auprc": null, + "brier": 0.00020835289147608113, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0013307234357374624, + "calibration_in_the_large": 0.0013307234357374624, + "expected_calibration_error_10bin": 0.0013307234357374626, + "nonempty_bins": 5 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9328174463594794 + }, + "Q21": { + "valid": 2810, + "positives": 0, + "negatives": 2810, + "auroc": null, + "auprc": null, + "brier": 4.020249225946041e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0004099172738819385, + "calibration_in_the_large": 0.0004099172738819385, + "expected_calibration_error_10bin": 0.0004099172738819385, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9883925430882871 + }, + "U07": { + "valid": 2828, + "positives": 0, + "negatives": 2828, + "auroc": null, + "auprc": null, + "brier": 1.2253463022763972e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0005419455041162536, + "calibration_in_the_large": 0.0005419455041162536, + "expected_calibration_error_10bin": 0.0005419455041162536, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9947238832219486 + } + }, + "60": { + "A04": { + "valid": 2782, + "positives": 7, + "negatives": 2775, + "auroc": 0.8332561132561133, + "auprc": 0.15088079227384404, + "brier": 0.002486061561714168, + "calibration": { + "observed_rate": 0.0025161754133716753, + "mean_prediction": 0.0038995825334351905, + "calibration_in_the_large": 0.0013834071200635152, + "expected_calibration_error_10bin": 0.0020247825198734756, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + "A08": { + "valid": 2818, + "positives": 7, + "negatives": 2811, + "auroc": 0.7542816486252986, + "auprc": 0.008789169412438591, + "brier": 0.002478382030681917, + "calibration": { + "observed_rate": 0.00248403122782115, + "mean_prediction": 0.0009662677392489924, + "calibration_in_the_large": -0.0015177634885721574, + "expected_calibration_error_10bin": 0.0015177634885721574, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "A41": { + "valid": 2664, + "positives": 19, + "negatives": 2645, + "auroc": 0.7917421152124167, + "auprc": 0.025680274734878904, + "brier": 0.007195278305495227, + "calibration": { + "observed_rate": 0.007132132132132132, + "mean_prediction": 0.008635350864815828, + "calibration_in_the_large": 0.0015032187326836964, + "expected_calibration_error_10bin": 0.0015032187326836964, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9370383397819205 + }, + "B00": { + "valid": 2819, + "positives": 1, + "negatives": 2818, + "auroc": 0.9982256919801278, + "auprc": 0.16666666666666666, + "brier": 0.000348418346384462, + "calibration": { + "observed_rate": 0.000354735721887194, + "mean_prediction": 0.0003298178648881075, + "calibration_in_the_large": -2.4917856999086502e-05, + "expected_calibration_error_10bin": 2.4917856999086502e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "B02": { + "valid": 2828, + "positives": 0, + "negatives": 2828, + "auroc": null, + "auprc": null, + "brier": 1.3404721924779176e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00040037082566567753, + "calibration_in_the_large": 0.00040037082566567753, + "expected_calibration_error_10bin": 0.00040037082566567753, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "B18": { + "valid": 2782, + "positives": 3, + "negatives": 2779, + "auroc": 0.964735516372796, + "auprc": 0.025154028602304465, + "brier": 0.0010799390174624432, + "calibration": { + "observed_rate": 0.0010783608914450035, + "mean_prediction": 0.00044142116524435775, + "calibration_in_the_large": -0.0006369397262006458, + "expected_calibration_error_10bin": 0.0006369397262006458, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + "B19": { + "valid": 2763, + "positives": 12, + "negatives": 2751, + "auroc": 0.9090936629104568, + "auprc": 0.041357138989209126, + "brier": 0.004308856320007636, + "calibration": { + "observed_rate": 0.004343105320304018, + "mean_prediction": 0.0010370379975042047, + "calibration_in_the_large": -0.003306067322799813, + "expected_calibration_error_10bin": 0.0033836249437485103, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + "B20": { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 7.397026455800604e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0003853874686189623, + "calibration_in_the_large": 0.0003853874686189623, + "expected_calibration_error_10bin": 0.0003853874686189623, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "B34": { + "valid": 2831, + "positives": 2, + "negatives": 2829, + "auroc": 0.9367267585719335, + "auprc": 0.12780112044817926, + "brier": 0.0007009653025142127, + "calibration": { + "observed_rate": 0.0007064641469445425, + "mean_prediction": 0.00034483327587604316, + "calibration_in_the_large": -0.0003616308710684994, + "expected_calibration_error_10bin": 0.0003616308710684994, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "B35": { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 4.918071578984794e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00037146416881378674, + "calibration_in_the_large": 0.00037146416881378674, + "expected_calibration_error_10bin": 0.00037146416881378674, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "B37": { + "valid": 2768, + "positives": 15, + "negatives": 2753, + "auroc": 0.7451991766557695, + "auprc": 0.016592932174222415, + "brier": 0.0053893884740358645, + "calibration": { + "observed_rate": 0.00541907514450867, + "mean_prediction": 0.0027326738154048575, + "calibration_in_the_large": -0.002686401329103813, + "expected_calibration_error_10bin": 0.002686401329103813, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "B95": { + "valid": 2678, + "positives": 27, + "negatives": 2651, + "auroc": 0.7803204940134401, + "auprc": 0.02721924017312424, + "brier": 0.00991304032218867, + "calibration": { + "observed_rate": 0.010082150858849889, + "mean_prediction": 0.00806995689307021, + "calibration_in_the_large": -0.002012193965779679, + "expected_calibration_error_10bin": 0.002012193965779679, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9419627154414351 + }, + "B96": { + "valid": 2630, + "positives": 30, + "negatives": 2600, + "auroc": 0.7951282051282051, + "auprc": 0.0404984168306498, + "brier": 0.011128991015534846, + "calibration": { + "observed_rate": 0.011406844106463879, + "mean_prediction": 0.009335772708716127, + "calibration_in_the_large": -0.002071071397747752, + "expected_calibration_error_10bin": 0.002071071397747752, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9250791417516707 + }, + "B97": { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.5288291475061903, + "auprc": 0.0007501875468867217, + "brier": 0.0003579677869643746, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0003158662800884618, + "calibration_in_the_large": -3.774050916189182e-05, + "expected_calibration_error_10bin": 3.774050916189182e-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.00035299320851605876, + "calibration": { + "observed_rate": 0.0003541076487252125, + "mean_prediction": 0.00039329954980570075, + "calibration_in_the_large": 3.919190108048827e-05, + "expected_calibration_error_10bin": 3.919190108048827e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "C22": { + "valid": 2812, + "positives": 3, + "negatives": 2809, + "auroc": 0.9499228669751988, + "auprc": 0.02815680038662255, + "brier": 0.0010710093138930619, + "calibration": { + "observed_rate": 0.0010668563300142249, + "mean_prediction": 0.00034105718128102917, + "calibration_in_the_large": -0.0007257991487331957, + "expected_calibration_error_10bin": 0.0007257991487331957, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9890960253253606 + }, + "C25": { + "valid": 2809, + "positives": 1, + "negatives": 2808, + "auroc": 0.9985754985754985, + "auprc": 0.2, + "brier": 0.00032749351629308727, + "calibration": { + "observed_rate": 0.000355998576005696, + "mean_prediction": 0.0006997571346984807, + "calibration_in_the_large": 0.00034375855869278474, + "expected_calibration_error_10bin": 0.0005698777119182364, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "C61": { + "valid": 2805, + "positives": 2, + "negatives": 2803, + "auroc": 0.9948269711023903, + "auprc": 0.12179487179487179, + "brier": 0.0007049399528507854, + "calibration": { + "observed_rate": 0.00071301247771836, + "mean_prediction": 0.0004380474228864987, + "calibration_in_the_large": -0.00027496505483186134, + "expected_calibration_error_10bin": 0.00027496505483186134, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "C67": { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9663954722320481, + "auprc": 0.015399194503672116, + "brier": 0.0007061600925420774, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.00012120547497843351, + "calibration_in_the_large": -0.0005857581163966107, + "expected_calibration_error_10bin": 0.0005857581163966107, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "C77": { + "valid": 2762, + "positives": 8, + "negatives": 2754, + "auroc": 0.8893881626724764, + "auprc": 0.11980817722345856, + "brier": 0.0027847298157560973, + "calibration": { + "observed_rate": 0.002896451846488052, + "mean_prediction": 0.002566233376715264, + "calibration_in_the_large": -0.0003302184697727881, + "expected_calibration_error_10bin": 0.0005361186958281988, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + "C78": { + "valid": 2762, + "positives": 14, + "negatives": 2748, + "auroc": 0.8894260761072988, + "auprc": 0.19391730540364777, + "brier": 0.004653473877032601, + "calibration": { + "observed_rate": 0.005068790731354091, + "mean_prediction": 0.0029363514187666882, + "calibration_in_the_large": -0.002132439312587403, + "expected_calibration_error_10bin": 0.0023986329008456194, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + "C79": { + "valid": 2751, + "positives": 8, + "negatives": 2743, + "auroc": 0.9418519868756836, + "auprc": 0.08310485459346977, + "brier": 0.002809538090632454, + "calibration": { + "observed_rate": 0.0029080334423845873, + "mean_prediction": 0.0024316728545087643, + "calibration_in_the_large": -0.000476360587875823, + "expected_calibration_error_10bin": 0.00047636058787582295, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "C83": { + "valid": 2820, + "positives": 0, + "negatives": 2820, + "auroc": null, + "auprc": null, + "brier": 8.986478764880813e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0002674051724753817, + "calibration_in_the_large": 0.0002674051724753817, + "expected_calibration_error_10bin": 0.0002674051724753817, + "nonempty_bins": 2 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9919099542736546 + }, + "D25": { + "valid": 2792, + "positives": 2, + "negatives": 2790, + "auroc": 0.9933691756272401, + "auprc": 0.2763157894736842, + "brier": 0.0007059237549258964, + "calibration": { + "observed_rate": 0.0007163323782234957, + "mean_prediction": 0.0002861654109027993, + "calibration_in_the_large": -0.00043016696732069636, + "expected_calibration_error_10bin": 0.00043016696732069636, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + "D47": { + "valid": 2796, + "positives": 5, + "negatives": 2791, + "auroc": 0.6655678968111788, + "auprc": 0.0035864627847235373, + "brier": 0.0017878993802461956, + "calibration": { + "observed_rate": 0.00178826895565093, + "mean_prediction": 0.0011357940780441546, + "calibration_in_the_large": -0.0006524748776067753, + "expected_calibration_error_10bin": 0.0006524748776067753, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + "D50": { + "valid": 2663, + "positives": 19, + "negatives": 2644, + "auroc": 0.8356955171590095, + "auprc": 0.1104289787328578, + "brier": 0.006900732877582104, + "calibration": { + "observed_rate": 0.007134810364250845, + "mean_prediction": 0.005016713610616198, + "calibration_in_the_large": -0.0021180967536346467, + "expected_calibration_error_10bin": 0.0021180967536346467, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9366865986633838 + }, + "D53": { + "valid": 2805, + "positives": 7, + "negatives": 2798, + "auroc": 0.8448892065761258, + "auprc": 0.03797361248239949, + "brier": 0.002463365036783994, + "calibration": { + "observed_rate": 0.0024955436720142605, + "mean_prediction": 0.001824775406744679, + "calibration_in_the_large": -0.0006707682652695814, + "expected_calibration_error_10bin": 0.0006707682652695814, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "D59": { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 1.0766362511295483e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0003815471720492664, + "calibration_in_the_large": 0.0003815471720492664, + "expected_calibration_error_10bin": 0.0003815471720492664, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "D61": { + "valid": 2773, + "positives": 9, + "negatives": 2764, + "auroc": 0.9624939700916546, + "auprc": 0.09234117916545095, + "brier": 0.00317142434216593, + "calibration": { + "observed_rate": 0.0032455824017309774, + "mean_prediction": 0.003997255322930116, + "calibration_in_the_large": 0.0007516729211991383, + "expected_calibration_error_10bin": 0.001027468528101502, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + "D62": { + "valid": 2499, + "positives": 21, + "negatives": 2478, + "auroc": 0.8086974902955533, + "auprc": 0.027652406571276402, + "brier": 0.008265607767835213, + "calibration": { + "observed_rate": 0.008403361344537815, + "mean_prediction": 0.007113536023786858, + "calibration_in_the_large": -0.0012898253207509567, + "expected_calibration_error_10bin": 0.0012898253207509567, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8790010552233556 + }, + "D63": { + "valid": 2686, + "positives": 31, + "negatives": 2655, + "auroc": 0.8952676022112873, + "auprc": 0.07873668735304902, + "brier": 0.011069176729889368, + "calibration": { + "observed_rate": 0.01154132539091586, + "mean_prediction": 0.008905190852798901, + "calibration_in_the_large": -0.002636134538116959, + "expected_calibration_error_10bin": 0.004535439900252064, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9447766443897292 + }, + "D64": { + "valid": 2434, + "positives": 51, + "negatives": 2383, + "auroc": 0.827034632568932, + "auprc": 0.11617503039715968, + "brier": 0.019615550953421056, + "calibration": { + "observed_rate": 0.0209531635168447, + "mean_prediction": 0.01832014982600642, + "calibration_in_the_large": -0.002633013690838279, + "expected_calibration_error_10bin": 0.0026330136908382816, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8561378825184665 + }, + "D65": { + "valid": 2833, + "positives": 1, + "negatives": 2832, + "auroc": 0.8919491525423728, + "auprc": 0.003257328990228013, + "brier": 0.00035358823490654485, + "calibration": { + "observed_rate": 0.00035298270384751147, + "mean_prediction": 0.00026782528603659715, + "calibration_in_the_large": -8.515741781091432e-05, + "expected_calibration_error_10bin": 8.515741781091432e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9964825888146325 + }, + "D68": { + "valid": 2682, + "positives": 21, + "negatives": 2661, + "auroc": 0.8283853188024553, + "auprc": 0.03847935678002195, + "brier": 0.007712201319026056, + "calibration": { + "observed_rate": 0.007829977628635347, + "mean_prediction": 0.0033094512130119095, + "calibration_in_the_large": -0.004520526415623437, + "expected_calibration_error_10bin": 0.004520526415623437, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9433696799155822 + }, + "D69": { + "valid": 2586, + "positives": 30, + "negatives": 2556, + "auroc": 0.881207616066771, + "auprc": 0.15663073648055229, + "brier": 0.01054519979666556, + "calibration": { + "observed_rate": 0.01160092807424594, + "mean_prediction": 0.007001291948069873, + "calibration_in_the_large": -0.004599636126176066, + "expected_calibration_error_10bin": 0.004681103862985245, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9096025325360535 + }, + "D70": { + "valid": 2787, + "positives": 8, + "negatives": 2779, + "auroc": 0.9307304785894207, + "auprc": 0.09099385850483961, + "brier": 0.0029390241974586655, + "calibration": { + "observed_rate": 0.0028704700394689632, + "mean_prediction": 0.00357306851293044, + "calibration_in_the_large": 0.0007025984734614766, + "expected_calibration_error_10bin": 0.001428405382256445, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "D72": { + "valid": 2595, + "positives": 26, + "negatives": 2569, + "auroc": 0.7273258077072791, + "auprc": 0.04445904135714058, + "brier": 0.009836117533223398, + "calibration": { + "observed_rate": 0.01001926782273603, + "mean_prediction": 0.01321237790828969, + "calibration_in_the_large": 0.0031931100855536604, + "expected_calibration_error_10bin": 0.0031931100855536604, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9127682026028843 + }, + "D73": { + "valid": 2824, + "positives": 1, + "negatives": 2823, + "auroc": 0.9996457669146298, + "auprc": 0.5, + "brier": 0.0003461164314297949, + "calibration": { + "observed_rate": 0.0003541076487252125, + "mean_prediction": 0.00027363731940861194, + "calibration_in_the_large": -8.047032931660054e-05, + "expected_calibration_error_10bin": 8.047032931660054e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "D75": { + "valid": 2831, + "positives": 0, + "negatives": 2831, + "auroc": null, + "auprc": null, + "brier": 6.272577284640597e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00044728793827612367, + "calibration_in_the_large": 0.00044728793827612367, + "expected_calibration_error_10bin": 0.00044728793827612367, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.995779106577559 + }, + "D80": { + "valid": 2832, + "positives": 3, + "negatives": 2829, + "auroc": 0.9802050194414987, + "auprc": 0.048192301698613056, + "brier": 0.001054587412167219, + "calibration": { + "observed_rate": 0.001059322033898305, + "mean_prediction": 0.0001939948441808259, + "calibration_in_the_large": -0.0008653271897174792, + "expected_calibration_error_10bin": 0.0008653271897174792, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + "D89": { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.6679012345679012, + "auprc": 0.007131433556266356, + "brier": 0.0007106876050393187, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.00016185673146869322, + "calibration_in_the_large": -0.000543113307304659, + "expected_calibration_error_10bin": 0.0006288579923926462, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + "E03": { + "valid": 2480, + "positives": 11, + "negatives": 2469, + "auroc": 0.7746971537980043, + "auprc": 0.06903147582207127, + "brier": 0.004398224744953321, + "calibration": { + "observed_rate": 0.004435483870967742, + "mean_prediction": 0.0018100265474282834, + "calibration_in_the_large": -0.0026254573235394586, + "expected_calibration_error_10bin": 0.0026254573235394586, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8723179739711572 + }, + "E04": { + "valid": 2775, + "positives": 4, + "negatives": 2771, + "auroc": 0.6568928184770841, + "auprc": 0.005281914384620485, + "brier": 0.0014388810537586732, + "calibration": { + "observed_rate": 0.0014414414414414415, + "mean_prediction": 0.000862685601586326, + "calibration_in_the_large": -0.0005787558398551155, + "expected_calibration_error_10bin": 0.0005787558398551155, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + "E05": { + "valid": 2806, + "positives": 2, + "negatives": 2804, + "auroc": 0.2992154065620542, + "auprc": 0.0007441348053165489, + "brier": 0.0007127012512486443, + "calibration": { + "observed_rate": 0.0007127583749109052, + "mean_prediction": 0.00029251731234921133, + "calibration_in_the_large": -0.0004202410625616939, + "expected_calibration_error_10bin": 0.0004202410625616939, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "E11": { + "valid": 2194, + "positives": 9, + "negatives": 2185, + "auroc": 0.7594202898550725, + "auprc": 0.013679823567425212, + "brier": 0.004082322376731331, + "calibration": { + "observed_rate": 0.004102096627164996, + "mean_prediction": 0.0018645864741599558, + "calibration_in_the_large": -0.00223751015300504, + "expected_calibration_error_10bin": 0.00223751015300504, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7717200140696447 + }, + "E16": { + "valid": 2816, + "positives": 3, + "negatives": 2813, + "auroc": 0.5340680175376229, + "auprc": 0.0017118166230258684, + "brier": 0.001069247368644865, + "calibration": { + "observed_rate": 0.001065340909090909, + "mean_prediction": 0.0010372300885344223, + "calibration_in_the_large": -2.8110820556486718e-05, + "expected_calibration_error_10bin": 2.8110820556486718e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "E21": { + "valid": 2814, + "positives": 1, + "negatives": 2813, + "auroc": 0.9758265197298258, + "auprc": 0.014492753623188406, + "brier": 0.000354513869199582, + "calibration": { + "observed_rate": 0.00035536602700781805, + "mean_prediction": 0.0004529436349195807, + "calibration_in_the_large": 9.757760791176265e-05, + "expected_calibration_error_10bin": 9.757760791176265e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "E22": { + "valid": 2802, + "positives": 3, + "negatives": 2799, + "auroc": 0.8033821602953436, + "auprc": 0.006038814314676385, + "brier": 0.001086679065138917, + "calibration": { + "observed_rate": 0.0010706638115631692, + "mean_prediction": 0.0017523773787773687, + "calibration_in_the_large": 0.0006817135672141995, + "expected_calibration_error_10bin": 0.0006817135672141995, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "E27": { + "valid": 2811, + "positives": 0, + "negatives": 2811, + "auroc": null, + "auprc": null, + "brier": 7.392896083518516e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0004636698369010127, + "calibration_in_the_large": 0.0004636698369010127, + "expected_calibration_error_10bin": 0.0004636698369010127, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9887442842068238 + }, + "E43": { + "valid": 2748, + "positives": 19, + "negatives": 2729, + "auroc": 0.8763572544406086, + "auprc": 0.044809017531610394, + "brier": 0.006768429930498453, + "calibration": { + "observed_rate": 0.006914119359534207, + "mean_prediction": 0.005044210981083635, + "calibration_in_the_large": -0.001869908378450572, + "expected_calibration_error_10bin": 0.0022990880008938804, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9665845937390081 + }, + "E44": { + "valid": 2800, + "positives": 8, + "negatives": 2792, + "auroc": 0.7544770773638968, + "auprc": 0.020639687647084497, + "brier": 0.00283333752476243, + "calibration": { + "observed_rate": 0.002857142857142857, + "mean_prediction": 0.0022779043947285314, + "calibration_in_the_large": -0.0005792384624143257, + "expected_calibration_error_10bin": 0.0005792384624143257, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + "E46": { + "valid": 2772, + "positives": 16, + "negatives": 2756, + "auroc": 0.8332501814223512, + "auprc": 0.14289755745592822, + "brier": 0.005553982119267744, + "calibration": { + "observed_rate": 0.005772005772005772, + "mean_prediction": 0.0034887567662790775, + "calibration_in_the_large": -0.0022832490057266945, + "expected_calibration_error_10bin": 0.0022832490057266945, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9750263805838902 + }, + "E53": { + "valid": 2804, + "positives": 2, + "negatives": 2802, + "auroc": 0.7162740899357601, + "auprc": 0.002582967631970692, + "brier": 0.0007135808613898707, + "calibration": { + "observed_rate": 0.0007132667617689016, + "mean_prediction": 0.0006019886718467043, + "calibration_in_the_large": -0.00011127808992219732, + "expected_calibration_error_10bin": 0.00011127808992219732, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "E55": { + "valid": 2737, + "positives": 11, + "negatives": 2726, + "auroc": 0.5674981658107117, + "auprc": 0.007157793633409978, + "brier": 0.00401101016034218, + "calibration": { + "observed_rate": 0.00401899890390939, + "mean_prediction": 0.002309864531488933, + "calibration_in_the_large": -0.001709134372420457, + "expected_calibration_error_10bin": 0.001709134372420457, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9627154414351038 + }, + "E66": { + "valid": 2371, + "positives": 16, + "negatives": 2355, + "auroc": 0.7628450106157113, + "auprc": 0.02226086988452205, + "brier": 0.006680439453915116, + "calibration": { + "observed_rate": 0.006748207507380852, + "mean_prediction": 0.004709589007328344, + "calibration_in_the_large": -0.002038618500052508, + "expected_calibration_error_10bin": 0.002038618500052508, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8339781920506507 + }, + "E78": { + "valid": 1572, + "positives": 19, + "negatives": 1553, + "auroc": 0.6692988104517572, + "auprc": 0.03416696562760892, + "brier": 0.011960452947915761, + "calibration": { + "observed_rate": 0.012086513994910942, + "mean_prediction": 0.010358202565816604, + "calibration_in_the_large": -0.001728311429094338, + "expected_calibration_error_10bin": 0.0017283114290943362, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5529370383397819 + }, + "E80": { + "valid": 2823, + "positives": 3, + "negatives": 2820, + "auroc": 0.9460992907801419, + "auprc": 0.012521669428879908, + "brier": 0.0010608231091279875, + "calibration": { + "observed_rate": 0.0010626992561105207, + "mean_prediction": 0.0005061930829997327, + "calibration_in_the_large": -0.000556506173110788, + "expected_calibration_error_10bin": 0.000556506173110788, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "E83": { + "valid": 2653, + "positives": 26, + "negatives": 2627, + "auroc": 0.8252174167667126, + "auprc": 0.07189373318929485, + "brier": 0.00944046021366726, + "calibration": { + "observed_rate": 0.00980022615906521, + "mean_prediction": 0.006581349925072148, + "calibration_in_the_large": -0.0032188762339930618, + "expected_calibration_error_10bin": 0.003218876233993061, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9331691874780161 + }, + "E86": { + "valid": 2587, + "positives": 38, + "negatives": 2549, + "auroc": 0.8183498172658008, + "auprc": 0.05588320921009944, + "brier": 0.014169372070113826, + "calibration": { + "observed_rate": 0.014688828759180518, + "mean_prediction": 0.014270062118319231, + "calibration_in_the_large": -0.0004187666408612869, + "expected_calibration_error_10bin": 0.0012434646679161559, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9099542736545903 + }, + "E87": { + "valid": 2185, + "positives": 52, + "negatives": 2133, + "auroc": 0.7996501857261351, + "auprc": 0.08036798450575901, + "brier": 0.022619729905547555, + "calibration": { + "observed_rate": 0.02379862700228833, + "mean_prediction": 0.02213780776171591, + "calibration_in_the_large": -0.001660819240572417, + "expected_calibration_error_10bin": 0.003984297018908967, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.768554344002814 + }, + "E88": { + "valid": 2817, + "positives": 3, + "negatives": 2814, + "auroc": 0.9144752428334518, + "auprc": 0.052521438558399546, + "brier": 0.0010511205788962439, + "calibration": { + "observed_rate": 0.0010649627263045794, + "mean_prediction": 0.0011368865701064917, + "calibration_in_the_large": 7.192384380191224e-05, + "expected_calibration_error_10bin": 7.192384380191224e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "E89": { + "valid": 2780, + "positives": 4, + "negatives": 2776, + "auroc": 0.7700828530259366, + "auprc": 0.014832617063872231, + "brier": 0.0014336796780799403, + "calibration": { + "observed_rate": 0.0014388489208633094, + "mean_prediction": 0.0008865652446710025, + "calibration_in_the_large": -0.0005522836761923069, + "expected_calibration_error_10bin": 0.0005522836761923069, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + "F02": { + "valid": 2802, + "positives": 1, + "negatives": 2801, + "auroc": 0.6083541592288468, + "auprc": 0.0009107468123861566, + "brier": 0.0003667442116831131, + "calibration": { + "observed_rate": 0.00035688793718772306, + "mean_prediction": 0.0009721642581094405, + "calibration_in_the_large": 0.0006152763209217175, + "expected_calibration_error_10bin": 0.0006152763209217175, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "F03": { + "valid": 2739, + "positives": 7, + "negatives": 2732, + "auroc": 0.8993934323363313, + "auprc": 0.01801680963367299, + "brier": 0.0025439655720959995, + "calibration": { + "observed_rate": 0.002555677254472435, + "mean_prediction": 0.002128507790172529, + "calibration_in_the_large": -0.00042716946429990606, + "expected_calibration_error_10bin": 0.00042716946429990606, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + "F05": { + "valid": 2750, + "positives": 9, + "negatives": 2741, + "auroc": 0.744213385220317, + "auprc": 0.009354839522923533, + "brier": 0.003262838057173374, + "calibration": { + "observed_rate": 0.0032727272727272726, + "mean_prediction": 0.0025801714652010643, + "calibration_in_the_large": -0.0006925558075262083, + "expected_calibration_error_10bin": 0.0006925558075262083, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + "F06": { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.45100813583303856, + "auprc": 0.000643915003219575, + "brier": 0.0003543470256430793, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.00047903846461270865, + "calibration_in_the_large": 0.00012543167536235503, + "expected_calibration_error_10bin": 0.00012543167536235503, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "F10": { + "valid": 2560, + "positives": 9, + "negatives": 2551, + "auroc": 0.7840062720501764, + "auprc": 0.16928490260461068, + "brier": 0.003413398036770329, + "calibration": { + "observed_rate": 0.003515625, + "mean_prediction": 0.0015407754009984843, + "calibration_in_the_large": -0.001974849599001516, + "expected_calibration_error_10bin": 0.001974849599001516, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + "F11": { + "valid": 2741, + "positives": 6, + "negatives": 2735, + "auroc": 0.8381474710542353, + "auprc": 0.050427364676327135, + "brier": 0.0021538843987742896, + "calibration": { + "observed_rate": 0.0021889821233126595, + "mean_prediction": 0.0012503192744639654, + "calibration_in_the_large": -0.0009386628488486941, + "expected_calibration_error_10bin": 0.0009386628488486941, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + "F12": { + "valid": 2777, + "positives": 8, + "negatives": 2769, + "auroc": 0.9332340195016251, + "auprc": 0.03169062502598015, + "brier": 0.0028629069770833445, + "calibration": { + "observed_rate": 0.0028808066258552397, + "mean_prediction": 0.0007204211387913884, + "calibration_in_the_large": -0.0021603854870638514, + "expected_calibration_error_10bin": 0.0021603854870638514, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + "F14": { + "valid": 2787, + "positives": 4, + "negatives": 2783, + "auroc": 0.9699964067553001, + "auprc": 0.038387795876644495, + "brier": 0.001423801561612414, + "calibration": { + "observed_rate": 0.0014352350197344816, + "mean_prediction": 0.0006832424324347245, + "calibration_in_the_large": -0.0007519925872997572, + "expected_calibration_error_10bin": 0.0007519925872997572, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "F15": { + "valid": 2823, + "positives": 5, + "negatives": 2818, + "auroc": 0.9686302342086586, + "auprc": 0.06725521082975855, + "brier": 0.0017475262229070402, + "calibration": { + "observed_rate": 0.001771165426850868, + "mean_prediction": 0.00045095568098832406, + "calibration_in_the_large": -0.0013202097458625437, + "expected_calibration_error_10bin": 0.0013202097458625437, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "F17": { + "valid": 2426, + "positives": 19, + "negatives": 2407, + "auroc": 0.8993724444055715, + "auprc": 0.06541924539717903, + "brier": 0.007662127313521719, + "calibration": { + "observed_rate": 0.007831821929101401, + "mean_prediction": 0.0030784656642030422, + "calibration_in_the_large": -0.004753356264898359, + "expected_calibration_error_10bin": 0.004840390004090532, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8533239535701723 + }, + "F19": { + "valid": 2801, + "positives": 8, + "negatives": 2793, + "auroc": 0.9153687790905836, + "auprc": 0.22672523845835577, + "brier": 0.0027392250571391004, + "calibration": { + "observed_rate": 0.002856122813280971, + "mean_prediction": 0.0010004768174014273, + "calibration_in_the_large": -0.001855645995879544, + "expected_calibration_error_10bin": 0.001855645995879544, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "F20": { + "valid": 2808, + "positives": 1, + "negatives": 2807, + "auroc": 0.9889561809761311, + "auprc": 0.03125, + "brier": 0.00035337735288317547, + "calibration": { + "observed_rate": 0.00035612535612535614, + "mean_prediction": 0.0003777906339832836, + "calibration_in_the_large": 2.1665277857927452e-05, + "expected_calibration_error_10bin": 2.1665277857927452e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9876890608512136 + }, + "F22": { + "valid": 2821, + "positives": 0, + "negatives": 2821, + "auroc": null, + "auprc": null, + "brier": 5.433833364024056e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0008273586569697445, + "calibration_in_the_large": 0.0008273586569697445, + "expected_calibration_error_10bin": 0.0008273586569697445, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "F25": { + "valid": 2819, + "positives": 2, + "negatives": 2817, + "auroc": 0.9524316648917288, + "auprc": 0.012744200244200244, + "brier": 0.0007088368693393851, + "calibration": { + "observed_rate": 0.000709471443774388, + "mean_prediction": 0.0005140178961992484, + "calibration_in_the_large": -0.0001954535475751397, + "expected_calibration_error_10bin": 0.0001954535475751397, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "F29": { + "valid": 2806, + "positives": 5, + "negatives": 2801, + "auroc": 0.8622634773295251, + "auprc": 0.008831677502386651, + "brier": 0.0017800417814682523, + "calibration": { + "observed_rate": 0.001781895937277263, + "mean_prediction": 0.00031451580492952805, + "calibration_in_the_large": -0.001467380132347735, + "expected_calibration_error_10bin": 0.001467380132347735, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "F31": { + "valid": 2724, + "positives": 7, + "negatives": 2717, + "auroc": 0.9090383300909617, + "auprc": 0.042571396662886334, + "brier": 0.00253917123728868, + "calibration": { + "observed_rate": 0.0025697503671071953, + "mean_prediction": 0.0011479408655676669, + "calibration_in_the_large": -0.0014218095015395284, + "expected_calibration_error_10bin": 0.0014218095015395284, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9581428068941259 + }, + "F32": { + "valid": 2200, + "positives": 29, + "negatives": 2171, + "auroc": 0.7568894042154418, + "auprc": 0.05831564397246787, + "brier": 0.012783036869997069, + "calibration": { + "observed_rate": 0.013181818181818182, + "mean_prediction": 0.01128071885739866, + "calibration_in_the_large": -0.0019010993244195223, + "expected_calibration_error_10bin": 0.0024154222975299824, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7738304607808653 + }, + "F33": { + "valid": 2800, + "positives": 7, + "negatives": 2793, + "auroc": 0.8169914582374304, + "auprc": 0.016076624672293198, + "brier": 0.0025139365929516037, + "calibration": { + "observed_rate": 0.0025, + "mean_prediction": 0.0024266396972117427, + "calibration_in_the_large": -7.336030278825732e-05, + "expected_calibration_error_10bin": 7.336030278825732e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + "F39": { + "valid": 2801, + "positives": 6, + "negatives": 2795, + "auroc": 0.8182468694096601, + "auprc": 0.021508389546929695, + "brier": 0.002134057447659124, + "calibration": { + "observed_rate": 0.0021420921099607284, + "mean_prediction": 0.00045381199126796955, + "calibration_in_the_large": -0.0016882801186927589, + "expected_calibration_error_10bin": 0.0016882801186927589, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "F41": { + "valid": 2247, + "positives": 34, + "negatives": 2213, + "auroc": 0.7731984795725791, + "auprc": 0.06207467589833596, + "brier": 0.01457984279337801, + "calibration": { + "observed_rate": 0.015131286159323543, + "mean_prediction": 0.014319953877867614, + "calibration_in_the_large": -0.0008113322814559294, + "expected_calibration_error_10bin": 0.0010590724288318072, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7903622933520928 + }, + "F43": { + "valid": 2734, + "positives": 9, + "negatives": 2725, + "auroc": 0.8425280326197757, + "auprc": 0.04509556165277829, + "brier": 0.0032250237862170503, + "calibration": { + "observed_rate": 0.0032918800292611556, + "mean_prediction": 0.00292259295505588, + "calibration_in_the_large": -0.00036928707420527543, + "expected_calibration_error_10bin": 0.00036928707420527543, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "F60": { + "valid": 2818, + "positives": 4, + "negatives": 2814, + "auroc": 0.9678393745557925, + "auprc": 0.06306609740670462, + "brier": 0.0013772516378338412, + "calibration": { + "observed_rate": 0.0014194464158978, + "mean_prediction": 0.0011765309159644031, + "calibration_in_the_large": -0.00024291549993339678, + "expected_calibration_error_10bin": 0.00024291549993339678, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "F90": { + "valid": 2775, + "positives": 5, + "negatives": 2770, + "auroc": 0.9250541516245487, + "auprc": 0.03065167597533549, + "brier": 0.0017816133976305511, + "calibration": { + "observed_rate": 0.0018018018018018018, + "mean_prediction": 0.0009664319541250505, + "calibration_in_the_large": -0.0008353698476767514, + "expected_calibration_error_10bin": 0.0008353698476767514, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + "G25": { + "valid": 2774, + "positives": 3, + "negatives": 2771, + "auroc": 0.738722482858174, + "auprc": 0.005684989329178713, + "brier": 0.0010796117810217972, + "calibration": { + "observed_rate": 0.0010814708002883922, + "mean_prediction": 0.0010236745398998048, + "calibration_in_the_large": -5.779626038858736e-05, + "expected_calibration_error_10bin": 5.779626038858736e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "G31": { + "valid": 2802, + "positives": 1, + "negatives": 2801, + "auroc": 0.702963227418779, + "auprc": 0.0012004801920768306, + "brier": 0.00035994915636367313, + "calibration": { + "observed_rate": 0.00035688793718772306, + "mean_prediction": 0.0007489674791894735, + "calibration_in_the_large": 0.00039207954200175043, + "expected_calibration_error_10bin": 0.00039207954200175043, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "G40": { + "valid": 2723, + "positives": 8, + "negatives": 2715, + "auroc": 0.6296961325966851, + "auprc": 0.023292077811215586, + "brier": 0.002924371960080224, + "calibration": { + "observed_rate": 0.0029379360998898272, + "mean_prediction": 0.0020101686533519603, + "calibration_in_the_large": -0.0009277674465378669, + "expected_calibration_error_10bin": 0.0010105882208445854, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + "G43": { + "valid": 2725, + "positives": 7, + "negatives": 2718, + "auroc": 0.627772521812257, + "auprc": 0.03570788809792049, + "brier": 0.002555392797251187, + "calibration": { + "observed_rate": 0.002568807339449541, + "mean_prediction": 0.0011984498496914982, + "calibration_in_the_large": -0.001370357489758043, + "expected_calibration_error_10bin": 0.001370357489758043, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9584945480126627 + }, + "G44": { + "valid": 2805, + "positives": 3, + "negatives": 2802, + "auroc": 0.6004044729954794, + "auprc": 0.019704076309077626, + "brier": 0.0010658433185668124, + "calibration": { + "observed_rate": 0.0010695187165775401, + "mean_prediction": 0.0005681724162717463, + "calibration_in_the_large": -0.0005013463003057939, + "expected_calibration_error_10bin": 0.0005013463003057939, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "G47": { + "valid": 2315, + "positives": 36, + "negatives": 2279, + "auroc": 0.676283457656867, + "auprc": 0.03249607623037227, + "brier": 0.01523033494022339, + "calibration": { + "observed_rate": 0.015550755939524838, + "mean_prediction": 0.01326678540120374, + "calibration_in_the_large": -0.0022839705383210975, + "expected_calibration_error_10bin": 0.0022839705383210975, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8142806894125924 + }, + "G51": { + "valid": 2834, + "positives": 0, + "negatives": 2834, + "auroc": null, + "auprc": null, + "brier": 5.915604509521975e-08, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0001927517677620223, + "calibration_in_the_large": 0.0001927517677620223, + "expected_calibration_error_10bin": 0.0001927517677620223, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9968343299331692 + }, + "G62": { + "valid": 2751, + "positives": 13, + "negatives": 2738, + "auroc": 0.8749789290329831, + "auprc": 0.0970443323276809, + "brier": 0.004535582369429933, + "calibration": { + "observed_rate": 0.004725554343874954, + "mean_prediction": 0.002508142459387367, + "calibration_in_the_large": -0.0022174118844875876, + "expected_calibration_error_10bin": 0.002217411884487588, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "G81": { + "valid": 2789, + "positives": 9, + "negatives": 2780, + "auroc": 0.7052757793764988, + "auprc": 0.04469462868554006, + "brier": 0.0032055191767540367, + "calibration": { + "observed_rate": 0.0032269630692004303, + "mean_prediction": 0.0012558712909651502, + "calibration_in_the_large": -0.0019710917782352804, + "expected_calibration_error_10bin": 0.0019710917782352804, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "G83": { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.5290574060949681, + "auprc": 0.00117265775160512, + "brier": 0.0007092292013602111, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0005858995483726866, + "calibration_in_the_large": -0.00012231574907773832, + "expected_calibration_error_10bin": 0.00012231574907773832, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "G89": { + "valid": 2537, + "positives": 21, + "negatives": 2516, + "auroc": 0.7465932318873495, + "auprc": 0.03371305517513125, + "brier": 0.008136682839185031, + "calibration": { + "observed_rate": 0.008277493102089082, + "mean_prediction": 0.007152534622455271, + "calibration_in_the_large": -0.0011249584796338115, + "expected_calibration_error_10bin": 0.0012300117952682328, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8923672177277524 + }, + "G90": { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 1.256012595415297e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0005690781638886079, + "calibration_in_the_large": 0.0005690781638886079, + "expected_calibration_error_10bin": 0.0005690781638886079, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "G92": { + "valid": 2733, + "positives": 12, + "negatives": 2721, + "auroc": 0.8165809138797011, + "auprc": 0.017128739498079738, + "brier": 0.004350508001556067, + "calibration": { + "observed_rate": 0.0043907793633369925, + "mean_prediction": 0.004477499955220075, + "calibration_in_the_large": 8.672059188308268e-05, + "expected_calibration_error_10bin": 8.672059188308268e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + "G93": { + "valid": 2656, + "positives": 17, + "negatives": 2639, + "auroc": 0.7703675634710118, + "auprc": 0.019657071399135962, + "brier": 0.006334027804280083, + "calibration": { + "observed_rate": 0.006400602409638554, + "mean_prediction": 0.005285185752897923, + "calibration_in_the_large": -0.0011154166567406308, + "expected_calibration_error_10bin": 0.0011154166567406308, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9342244108336265 + }, + "G99": { + "valid": 2841, + "positives": 0, + "negatives": 2841, + "auroc": null, + "auprc": null, + "brier": 2.4835010570681684e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0001491992843970219, + "calibration_in_the_large": 0.0001491992843970219, + "expected_calibration_error_10bin": 0.0001491992843970219, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9992965177629265 + }, + "H10": { + "valid": 2832, + "positives": 1, + "negatives": 2831, + "auroc": 0.9558459908159661, + "auprc": 0.007936507936507936, + "brier": 0.0003524822285335027, + "calibration": { + "observed_rate": 0.00035310734463276836, + "mean_prediction": 0.0002994201717333877, + "calibration_in_the_large": -5.368717289938065e-05, + "expected_calibration_error_10bin": 5.368717289938065e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + "H26": { + "valid": 2819, + "positives": 0, + "negatives": 2819, + "auroc": null, + "auprc": null, + "brier": 1.8770371672326135e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.000708847780551431, + "calibration_in_the_large": 0.000708847780551431, + "expected_calibration_error_10bin": 0.000708847780551431, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "H35": { + "valid": 2806, + "positives": 3, + "negatives": 2803, + "auroc": 0.6974669996432394, + "auprc": 0.0024340470941582675, + "brier": 0.0010686972539624086, + "calibration": { + "observed_rate": 0.0010691375623663579, + "mean_prediction": 0.0004384274574196832, + "calibration_in_the_large": -0.0006307101049466747, + "expected_calibration_error_10bin": 0.0006307101049466747, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "H40": { + "valid": 2750, + "positives": 4, + "negatives": 2746, + "auroc": 0.7927895120174799, + "auprc": 0.0984002111601765, + "brier": 0.0014346452317358124, + "calibration": { + "observed_rate": 0.0014545454545454545, + "mean_prediction": 0.0015434470838240073, + "calibration_in_the_large": 8.890162927855283e-05, + "expected_calibration_error_10bin": 8.890162927855283e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + "H53": { + "valid": 2790, + "positives": 3, + "negatives": 2787, + "auroc": 0.630426982418371, + "auprc": 0.013734662860575689, + "brier": 0.0010733369668796211, + "calibration": { + "observed_rate": 0.001075268817204301, + "mean_prediction": 0.0019403958354984189, + "calibration_in_the_large": 0.0008651270182941178, + "expected_calibration_error_10bin": 0.0008651270182941178, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + "H54": { + "valid": 2809, + "positives": 2, + "negatives": 2807, + "auroc": 0.46312789454934095, + "auprc": 0.0010199874016792235, + "brier": 0.0007122586890337656, + "calibration": { + "observed_rate": 0.000711997152011392, + "mean_prediction": 0.00044688655521965206, + "calibration_in_the_large": -0.00026511059679173993, + "expected_calibration_error_10bin": 0.00026511059679173993, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "H91": { + "valid": 2791, + "positives": 2, + "negatives": 2789, + "auroc": 0.8241305127285765, + "auprc": 0.03674521354933726, + "brier": 0.000713151472939182, + "calibration": { + "observed_rate": 0.0007165890361877463, + "mean_prediction": 0.0006503023685638628, + "calibration_in_the_large": -6.628666762388351e-05, + "expected_calibration_error_10bin": 6.628666762388351e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9817094618360886 + }, + "I07": { + "valid": 2823, + "positives": 2, + "negatives": 2821, + "auroc": 0.6905352711804325, + "auprc": 0.001666626458549452, + "brier": 0.0007087130357322688, + "calibration": { + "observed_rate": 0.0007084661707403471, + "mean_prediction": 0.0003531318886723759, + "calibration_in_the_large": -0.00035533428206797126, + "expected_calibration_error_10bin": 0.00035533428206797126, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "I08": { + "valid": 2767, + "positives": 4, + "negatives": 2763, + "auroc": 0.7561527325370974, + "auprc": 0.005128734470396314, + "brier": 0.0014630358353669665, + "calibration": { + "observed_rate": 0.0014456089627755693, + "mean_prediction": 0.0018248659419834409, + "calibration_in_the_large": 0.0003792569792078716, + "expected_calibration_error_10bin": 0.0003792569792078716, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9732676749912065 + }, + "I10": { + "valid": 1498, + "positives": 22, + "negatives": 1476, + "auroc": 0.6043052475979305, + "auprc": 0.021431423620339642, + "brier": 0.014534120859337463, + "calibration": { + "observed_rate": 0.014686248331108143, + "mean_prediction": 0.009086306934574904, + "calibration_in_the_large": -0.005599941396533239, + "expected_calibration_error_10bin": 0.005599941396533239, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5269081955680619 + }, + "I11": { + "valid": 2676, + "positives": 17, + "negatives": 2659, + "auroc": 0.8347012366435856, + "auprc": 0.05969890385302294, + "brier": 0.006232305302618021, + "calibration": { + "observed_rate": 0.006352765321375187, + "mean_prediction": 0.005303138116123972, + "calibration_in_the_large": -0.0010496272052512145, + "expected_calibration_error_10bin": 0.0010496272052512145, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9412592332043616 + }, + "I12": { + "valid": 2552, + "positives": 10, + "negatives": 2542, + "auroc": 0.8485837922895358, + "auprc": 0.04537491368462845, + "brier": 0.0038488473197135255, + "calibration": { + "observed_rate": 0.003918495297805642, + "mean_prediction": 0.0036819291409518197, + "calibration_in_the_large": -0.00023656615685382259, + "expected_calibration_error_10bin": 0.00046732961473282676, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8976433345058037 + }, + "I13": { + "valid": 2727, + "positives": 7, + "negatives": 2720, + "auroc": 0.8730567226890756, + "auprc": 0.02401759010362501, + "brier": 0.002647852088666486, + "calibration": { + "observed_rate": 0.002566923359002567, + "mean_prediction": 0.004586603132371514, + "calibration_in_the_large": 0.002019679773368947, + "expected_calibration_error_10bin": 0.002019679773368947, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9591980302497362 + }, + "I16": { + "valid": 2390, + "positives": 2, + "negatives": 2388, + "auroc": 0.8913316582914573, + "auprc": 0.012743561030235162, + "brier": 0.0008340217517344478, + "calibration": { + "observed_rate": 0.0008368200836820083, + "mean_prediction": 0.000876005437544003, + "calibration_in_the_large": 3.918535386199468e-05, + "expected_calibration_error_10bin": 3.918535386199468e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8406612733028491 + }, + "I21": { + "valid": 2671, + "positives": 5, + "negatives": 2666, + "auroc": 0.9321830457614404, + "auprc": 0.017096645136212247, + "brier": 0.0018901613462076713, + "calibration": { + "observed_rate": 0.0018719580681392737, + "mean_prediction": 0.005133965243828762, + "calibration_in_the_large": 0.003262007175689488, + "expected_calibration_error_10bin": 0.003262007175689488, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + "I24": { + "valid": 2809, + "positives": 2, + "negatives": 2807, + "auroc": 0.9470965443534022, + "auprc": 0.01731579488233481, + "brier": 0.0007080341839721644, + "calibration": { + "observed_rate": 0.000711997152011392, + "mean_prediction": 0.0011520549001558464, + "calibration_in_the_large": 0.00044005774814445437, + "expected_calibration_error_10bin": 0.00044005774814445437, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "I25": { + "valid": 2243, + "positives": 19, + "negatives": 2224, + "auroc": 0.8293733434305187, + "auprc": 0.04346926863207067, + "brier": 0.008286869124649638, + "calibration": { + "observed_rate": 0.008470798038341507, + "mean_prediction": 0.005343011645315455, + "calibration_in_the_large": -0.0031277863930260523, + "expected_calibration_error_10bin": 0.0031277863930260523, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7889553288779458 + }, + "I26": { + "valid": 2760, + "positives": 6, + "negatives": 2754, + "auroc": 0.6968046477850399, + "auprc": 0.04379887555182135, + "brier": 0.002162881718619951, + "calibration": { + "observed_rate": 0.002173913043478261, + "mean_prediction": 0.004530455273995187, + "calibration_in_the_large": 0.002356542230516926, + "expected_calibration_error_10bin": 0.0023565422305169255, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9708054871614492 + }, + "I27": { + "valid": 2716, + "positives": 13, + "negatives": 2703, + "auroc": 0.8469506815788724, + "auprc": 0.022322383527236866, + "brier": 0.004744495541553543, + "calibration": { + "observed_rate": 0.004786450662739323, + "mean_prediction": 0.003205821498317705, + "calibration_in_the_large": -0.0015806291644216179, + "expected_calibration_error_10bin": 0.0015806291644216179, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + "I31": { + "valid": 2793, + "positives": 7, + "negatives": 2786, + "auroc": 0.7884319556968516, + "auprc": 0.01034453073247728, + "brier": 0.002496132884226372, + "calibration": { + "observed_rate": 0.002506265664160401, + "mean_prediction": 0.001975913829479289, + "calibration_in_the_large": -0.0005303518346811121, + "expected_calibration_error_10bin": 0.0005303518346811121, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "I34": { + "valid": 2753, + "positives": 10, + "negatives": 2743, + "auroc": 0.7165512212905578, + "auprc": 0.008546080998029384, + "brier": 0.00364426492924624, + "calibration": { + "observed_rate": 0.003632401017072285, + "mean_prediction": 0.002563336141432555, + "calibration_in_the_large": -0.0010690648756397298, + "expected_calibration_error_10bin": 0.0010690648756397298, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9683432993316918 + }, + "I35": { + "valid": 2723, + "positives": 4, + "negatives": 2719, + "auroc": 0.5958992276572269, + "auprc": 0.003873804657613249, + "brier": 0.0014759061212816073, + "calibration": { + "observed_rate": 0.0014689680499449136, + "mean_prediction": 0.0016815671212943365, + "calibration_in_the_large": 0.00021259907134942285, + "expected_calibration_error_10bin": 0.00021259907134942285, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + "I42": { + "valid": 2740, + "positives": 4, + "negatives": 2736, + "auroc": 0.9511147660818714, + "auprc": 0.030785658302498027, + "brier": 0.0014415600351989956, + "calibration": { + "observed_rate": 0.00145985401459854, + "mean_prediction": 0.001628014272055258, + "calibration_in_the_large": 0.00016816025745671793, + "expected_calibration_error_10bin": 0.00016816025745671793, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + "I44": { + "valid": 2722, + "positives": 8, + "negatives": 2714, + "auroc": 0.8239683124539425, + "auprc": 0.03494255947894797, + "brier": 0.002900215464377859, + "calibration": { + "observed_rate": 0.0029390154298310064, + "mean_prediction": 0.0022899891331574157, + "calibration_in_the_large": -0.0006490262966735907, + "expected_calibration_error_10bin": 0.0006490262966735907, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9574393246570524 + }, + "I45": { + "valid": 2766, + "positives": 5, + "negatives": 2761, + "auroc": 0.6641072075335024, + "auprc": 0.0037226236425598703, + "brier": 0.0018078242349309041, + "calibration": { + "observed_rate": 0.0018076644974692696, + "mean_prediction": 0.0022809709306411624, + "calibration_in_the_large": 0.00047330643317189283, + "expected_calibration_error_10bin": 0.00047330643317189283, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9729159338726697 + }, + "I46": { + "valid": 2831, + "positives": 0, + "negatives": 2831, + "auroc": null, + "auprc": null, + "brier": 6.936864735944487e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00044486028239197156, + "calibration_in_the_large": 0.00044486028239197156, + "expected_calibration_error_10bin": 0.00044486028239197156, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.995779106577559 + }, + "I47": { + "valid": 2716, + "positives": 5, + "negatives": 2711, + "auroc": 0.582441903356695, + "auprc": 0.003318464577610478, + "brier": 0.0018521643587325251, + "calibration": { + "observed_rate": 0.001840942562592047, + "mean_prediction": 0.0034519128918212966, + "calibration_in_the_large": 0.0016109703292292495, + "expected_calibration_error_10bin": 0.0016109703292292495, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + "I48": { + "valid": 2385, + "positives": 12, + "negatives": 2373, + "auroc": 0.7665051271245962, + "auprc": 0.016654692325309653, + "brier": 0.005105940550114434, + "calibration": { + "observed_rate": 0.005031446540880503, + "mean_prediction": 0.007717764052180603, + "calibration_in_the_large": 0.0026863175113001, + "expected_calibration_error_10bin": 0.0026863175113001, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8389025677101654 + }, + "I49": { + "valid": 2734, + "positives": 5, + "negatives": 2729, + "auroc": 0.7253939171857824, + "auprc": 0.006584710740014291, + "brier": 0.0018246674700940237, + "calibration": { + "observed_rate": 0.0018288222384784199, + "mean_prediction": 0.0016956491989955362, + "calibration_in_the_large": -0.00013317303948288364, + "expected_calibration_error_10bin": 0.00013317303948288364, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "I50": { + "valid": 2415, + "positives": 17, + "negatives": 2398, + "auroc": 0.8392532993180591, + "auprc": 0.03311575384024957, + "brier": 0.007027784219692849, + "calibration": { + "observed_rate": 0.007039337474120083, + "mean_prediction": 0.007276085381275625, + "calibration_in_the_large": 0.00023674790715554148, + "expected_calibration_error_10bin": 0.0009428501456472448, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.849454801266268 + }, + "I51": { + "valid": 2807, + "positives": 3, + "negatives": 2804, + "auroc": 0.8780313837375179, + "auprc": 0.015178192987967548, + "brier": 0.0010638169396221112, + "calibration": { + "observed_rate": 0.0010687566797292483, + "mean_prediction": 0.0010536481429402713, + "calibration_in_the_large": -1.5108536788976988e-05, + "expected_calibration_error_10bin": 1.5108536788976988e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "I61": { + "valid": 2802, + "positives": 2, + "negatives": 2800, + "auroc": 0.9728571428571429, + "auprc": 0.01880151098901099, + "brier": 0.0007102389543498731, + "calibration": { + "observed_rate": 0.0007137758743754461, + "mean_prediction": 0.0006508126598526153, + "calibration_in_the_large": -6.296321452283079e-05, + "expected_calibration_error_10bin": 6.296321452283079e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "I63": { + "valid": 2735, + "positives": 6, + "negatives": 2729, + "auroc": 0.6754000244289727, + "auprc": 0.004070566991719346, + "brier": 0.0021956509862698214, + "calibration": { + "observed_rate": 0.0021937842778793418, + "mean_prediction": 0.002033590560973072, + "calibration_in_the_large": -0.0001601937169062699, + "expected_calibration_error_10bin": 0.0001601937169062699, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9620119591980303 + }, + "I65": { + "valid": 2774, + "positives": 2, + "negatives": 2772, + "auroc": 0.6170634920634921, + "auprc": 0.0020385740571594985, + "brier": 0.0007247431324885318, + "calibration": { + "observed_rate": 0.0007209805335255948, + "mean_prediction": 0.0014310174625057814, + "calibration_in_the_large": 0.0007100369289801867, + "expected_calibration_error_10bin": 0.0007100369289801867, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "I67": { + "valid": 2773, + "positives": 2, + "negatives": 2771, + "auroc": 0.9148321905449296, + "auprc": 0.0062014316885503195, + "brier": 0.0007224879668206305, + "calibration": { + "observed_rate": 0.000721240533717995, + "mean_prediction": 0.001109765105201507, + "calibration_in_the_large": 0.000388524571483512, + "expected_calibration_error_10bin": 0.000388524571483512, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + "I69": { + "valid": 2752, + "positives": 9, + "negatives": 2743, + "auroc": 0.712439745615101, + "auprc": 0.026303201124379727, + "brier": 0.0032475939846352167, + "calibration": { + "observed_rate": 0.0032703488372093025, + "mean_prediction": 0.0028740593398215906, + "calibration_in_the_large": -0.00039628949738771194, + "expected_calibration_error_10bin": 0.00039628949738771194, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9679915582131551 + }, + "I70": { + "valid": 2771, + "positives": 2, + "negatives": 2769, + "auroc": 0.9868183459732756, + "auprc": 0.03851540616246499, + "brier": 0.0007147073529035631, + "calibration": { + "observed_rate": 0.0007217610970768675, + "mean_prediction": 0.001542666416822376, + "calibration_in_the_large": 0.0008209053197455084, + "expected_calibration_error_10bin": 0.0008209053197455084, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9746746394653535 + }, + "I71": { + "valid": 2769, + "positives": 3, + "negatives": 2766, + "auroc": 0.6920944805977344, + "auprc": 0.01859648023177263, + "brier": 0.0010807339758261481, + "calibration": { + "observed_rate": 0.0010834236186348862, + "mean_prediction": 0.001432742272702429, + "calibration_in_the_large": 0.0003493186540675429, + "expected_calibration_error_10bin": 0.0003493186540675429, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.97397115722828 + }, + "I72": { + "valid": 2818, + "positives": 2, + "negatives": 2816, + "auroc": 0.5672940340909091, + "auprc": 0.002396279638195525, + "brier": 0.0007102502131304753, + "calibration": { + "observed_rate": 0.0007097232079489, + "mean_prediction": 0.0007490455455873028, + "calibration_in_the_large": 3.932233763840286e-05, + "expected_calibration_error_10bin": 3.932233763840286e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "I73": { + "valid": 2734, + "positives": 1, + "negatives": 2733, + "auroc": 0.9824368825466521, + "auprc": 0.02040816326530612, + "brier": 0.0003968389267766797, + "calibration": { + "observed_rate": 0.000365764447695684, + "mean_prediction": 0.0023649450651287867, + "calibration_in_the_large": 0.0019991806174331026, + "expected_calibration_error_10bin": 0.001999180617433103, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "I74": { + "valid": 2821, + "positives": 3, + "negatives": 2818, + "auroc": 0.7550272060563047, + "auprc": 0.007112080623483836, + "brier": 0.001061687829516979, + "calibration": { + "observed_rate": 0.0010634526763559022, + "mean_prediction": 0.00042100127412014163, + "calibration_in_the_large": -0.0006424514022357606, + "expected_calibration_error_10bin": 0.0006424514022357606, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "I77": { + "valid": 2785, + "positives": 3, + "negatives": 2782, + "auroc": 0.5808770668583753, + "auprc": 0.003504307959753504, + "brier": 0.001077336393578305, + "calibration": { + "observed_rate": 0.0010771992818671453, + "mean_prediction": 0.0011206919450883408, + "calibration_in_the_large": 4.349266322119542e-05, + "expected_calibration_error_10bin": 4.349266322119542e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "I80": { + "valid": 2827, + "positives": 2, + "negatives": 2825, + "auroc": 0.8493805309734513, + "auprc": 0.0034921679971470112, + "brier": 0.0007077296076344579, + "calibration": { + "observed_rate": 0.0007074637424831977, + "mean_prediction": 0.0003927902648561962, + "calibration_in_the_large": -0.00031467347762700155, + "expected_calibration_error_10bin": 0.00031467347762700155, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "I81": { + "valid": 2826, + "positives": 5, + "negatives": 2821, + "auroc": 0.8979794399149238, + "auprc": 0.018580238779693115, + "brier": 0.0017679933796616986, + "calibration": { + "observed_rate": 0.0017692852087756545, + "mean_prediction": 0.0006269680050625355, + "calibration_in_the_large": -0.0011423172037131192, + "expected_calibration_error_10bin": 0.0011423172037131192, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "I82": { + "valid": 2739, + "positives": 13, + "negatives": 2726, + "auroc": 0.6825723799311474, + "auprc": 0.014282657070227049, + "brier": 0.004716520791794562, + "calibration": { + "observed_rate": 0.004746257758305951, + "mean_prediction": 0.0036118588363463814, + "calibration_in_the_large": -0.0011343989219595699, + "expected_calibration_error_10bin": 0.0011343989219595699, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + "I85": { + "valid": 2793, + "positives": 2, + "negatives": 2791, + "auroc": 0.9933715514152633, + "auprc": 0.5256410256410257, + "brier": 0.000629309683192226, + "calibration": { + "observed_rate": 0.0007160759040458289, + "mean_prediction": 0.0006151822238224962, + "calibration_in_the_large": -0.00010089368022333275, + "expected_calibration_error_10bin": 0.00044558473205579197, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "I87": { + "valid": 2780, + "positives": 7, + "negatives": 2773, + "auroc": 0.6905362938540003, + "auprc": 0.007161718623990727, + "brier": 0.0025125674367168565, + "calibration": { + "observed_rate": 0.002517985611510791, + "mean_prediction": 0.0009097264074807018, + "calibration_in_the_large": -0.0016082592040300894, + "expected_calibration_error_10bin": 0.0016082592040300894, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + "I89": { + "valid": 2826, + "positives": 3, + "negatives": 2823, + "auroc": 0.8884165781083954, + "auprc": 0.0072052193581790235, + "brier": 0.0010598100638424767, + "calibration": { + "observed_rate": 0.0010615711252653928, + "mean_prediction": 0.00035821819899895267, + "calibration_in_the_large": -0.00070335292626644, + "expected_calibration_error_10bin": 0.00070335292626644, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "I95": { + "valid": 2485, + "positives": 33, + "negatives": 2452, + "auroc": 0.7320554649265906, + "auprc": 0.027152227631399267, + "brier": 0.013040125019703728, + "calibration": { + "observed_rate": 0.013279678068410463, + "mean_prediction": 0.014409780918755916, + "calibration_in_the_large": 0.001130102850345453, + "expected_calibration_error_10bin": 0.001130102850345453, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.874076679563841 + }, + "I96": { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 1.0, + "auprc": 1.0, + "brier": 0.0003441209536747345, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.0005524323180524768, + "calibration_in_the_large": 0.0001992002445802055, + "expected_calibration_error_10bin": 0.0001992002445802055, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "I97": { + "valid": 2740, + "positives": 4, + "negatives": 2736, + "auroc": 0.8788377192982456, + "auprc": 0.015349553937363132, + "brier": 0.0014521578371348718, + "calibration": { + "observed_rate": 0.00145985401459854, + "mean_prediction": 0.0019030425106745371, + "calibration_in_the_large": 0.0004431884960759971, + "expected_calibration_error_10bin": 0.0004431884960759971, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + "J02": { + "valid": 2825, + "positives": 1, + "negatives": 2824, + "auroc": 0.7223796033994334, + "auprc": 0.0012738853503184713, + "brier": 0.0003564165816599645, + "calibration": { + "observed_rate": 0.00035398230088495576, + "mean_prediction": 0.0005850444054702375, + "calibration_in_the_large": 0.00023106210458528176, + "expected_calibration_error_10bin": 0.00023106210458528176, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J06": { + "valid": 2816, + "positives": 2, + "negatives": 2814, + "auroc": 0.5934612651030562, + "auprc": 0.0013699265845576974, + "brier": 0.0007234123852664253, + "calibration": { + "observed_rate": 0.0007102272727272727, + "mean_prediction": 0.0013011366835888277, + "calibration_in_the_large": 0.000590909410861555, + "expected_calibration_error_10bin": 0.000590909410861555, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "J12": { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 2.840904967692106e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0005996100459074794, + "calibration_in_the_large": 0.0005996100459074794, + "expected_calibration_error_10bin": 0.0005996100459074794, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J15": { + "valid": 2795, + "positives": 3, + "negatives": 2792, + "auroc": 0.7369866284622731, + "auprc": 0.002970364530176904, + "brier": 0.0010763258102041739, + "calibration": { + "observed_rate": 0.001073345259391771, + "mean_prediction": 0.0011712287234931962, + "calibration_in_the_large": 9.788346410142526e-05, + "expected_calibration_error_10bin": 9.788346410142526e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9831164263102357 + }, + "J18": { + "valid": 2671, + "positives": 14, + "negatives": 2657, + "auroc": 0.813726544437873, + "auprc": 0.019108330983346015, + "brier": 0.005205816190340721, + "calibration": { + "observed_rate": 0.005241482590789966, + "mean_prediction": 0.005542826242145821, + "calibration_in_the_large": 0.0003013436513558546, + "expected_calibration_error_10bin": 0.00030134365135585367, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + "J30": { + "valid": 2815, + "positives": 1, + "negatives": 2814, + "auroc": 0.9946695095948828, + "auprc": 0.0625, + "brier": 0.00035227739414959714, + "calibration": { + "observed_rate": 0.00035523978685612787, + "mean_prediction": 0.0005097462379006685, + "calibration_in_the_large": 0.00015450645104454064, + "expected_calibration_error_10bin": 0.00015450645104454064, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + "J32": { + "valid": 2829, + "positives": 1, + "negatives": 2828, + "auroc": 0.8744695898161244, + "auprc": 0.0028089887640449437, + "brier": 0.00035384536166945907, + "calibration": { + "observed_rate": 0.0003534817956875221, + "mean_prediction": 0.00040183946955109335, + "calibration_in_the_large": 4.835767386357124e-05, + "expected_calibration_error_10bin": 4.835767386357124e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J38": { + "valid": 2825, + "positives": 1, + "negatives": 2824, + "auroc": 0.6320821529745042, + "auprc": 0.0009615384615384616, + "brier": 0.0003554555269409603, + "calibration": { + "observed_rate": 0.00035398230088495576, + "mean_prediction": 0.0007271332034032985, + "calibration_in_the_large": 0.0003731509025183427, + "expected_calibration_error_10bin": 0.0003731509025183427, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J43": { + "valid": 2804, + "positives": 2, + "negatives": 2802, + "auroc": 0.2574946466809422, + "auprc": 0.0007016051677108, + "brier": 0.0007164975011371293, + "calibration": { + "observed_rate": 0.0007132667617689016, + "mean_prediction": 0.0011706466854343944, + "calibration_in_the_large": 0.0004573799236654928, + "expected_calibration_error_10bin": 0.0004573799236654928, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "J44": { + "valid": 2570, + "positives": 10, + "negatives": 2560, + "auroc": 0.87859375, + "auprc": 0.02912363163636549, + "brier": 0.0038426336705856563, + "calibration": { + "observed_rate": 0.0038910505836575876, + "mean_prediction": 0.0031364911186493455, + "calibration_in_the_large": -0.0007545594650082421, + "expected_calibration_error_10bin": 0.0008537110146444003, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9039746746394653 + }, + "J45": { + "valid": 2518, + "positives": 13, + "negatives": 2505, + "auroc": 0.6277291570704744, + "auprc": 0.011417324921052076, + "brier": 0.005147228474285493, + "calibration": { + "observed_rate": 0.005162827640984908, + "mean_prediction": 0.002877977288237864, + "calibration_in_the_large": -0.0022848503527470444, + "expected_calibration_error_10bin": 0.002366166740949573, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.885684136475554 + }, + "J47": { + "valid": 2825, + "positives": 1, + "negatives": 2824, + "auroc": 0.49539660056657225, + "auprc": 0.0007012622720897616, + "brier": 0.0003542657665635251, + "calibration": { + "observed_rate": 0.00035398230088495576, + "mean_prediction": 0.00023140709944873862, + "calibration_in_the_large": -0.00012257520143621714, + "expected_calibration_error_10bin": 0.00012257520143621714, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J69": { + "valid": 2777, + "positives": 14, + "negatives": 2763, + "auroc": 0.7910914637299002, + "auprc": 0.02443191748055854, + "brier": 0.004990832569445188, + "calibration": { + "observed_rate": 0.005041411595246669, + "mean_prediction": 0.002304811171208894, + "calibration_in_the_large": -0.0027366004240377746, + "expected_calibration_error_10bin": 0.0027366004240377746, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + "J81": { + "valid": 2781, + "positives": 7, + "negatives": 2774, + "auroc": 0.7853022968379854, + "auprc": 0.013758947182142281, + "brier": 0.002502068191481899, + "calibration": { + "observed_rate": 0.0025170801869830997, + "mean_prediction": 0.001674344343885147, + "calibration_in_the_large": -0.0008427358430979526, + "expected_calibration_error_10bin": 0.0008427358430979526, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + "J84": { + "valid": 2817, + "positives": 5, + "negatives": 2812, + "auroc": 0.8805120910384068, + "auprc": 0.01064334702065437, + "brier": 0.0017688392090824134, + "calibration": { + "observed_rate": 0.001774937877174299, + "mean_prediction": 0.0006977706456744188, + "calibration_in_the_large": -0.0010771672314998802, + "expected_calibration_error_10bin": 0.0010771672314998802, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "J90": { + "valid": 2754, + "positives": 13, + "negatives": 2741, + "auroc": 0.6030926388460135, + "auprc": 0.007320865364661134, + "brier": 0.004723358982320465, + "calibration": { + "observed_rate": 0.004720406681190995, + "mean_prediction": 0.003574960015347779, + "calibration_in_the_large": -0.0011454466658432161, + "expected_calibration_error_10bin": 0.0011454466658432161, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9686950404502286 + }, + "J91": { + "valid": 2807, + "positives": 3, + "negatives": 2804, + "auroc": 0.8798145506419401, + "auprc": 0.015324349864082357, + "brier": 0.0010741569710941985, + "calibration": { + "observed_rate": 0.0010687566797292483, + "mean_prediction": 0.0017381437574341052, + "calibration_in_the_large": 0.0006693870777048569, + "expected_calibration_error_10bin": 0.0006693870777048569, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "J94": { + "valid": 2829, + "positives": 4, + "negatives": 2825, + "auroc": 0.802212389380531, + "auprc": 0.01383415248076902, + "brier": 0.0014123801111523518, + "calibration": { + "observed_rate": 0.0014139271827500884, + "mean_prediction": 0.00019861783516893789, + "calibration_in_the_large": -0.0012153093475811506, + "expected_calibration_error_10bin": 0.0012153093475811506, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J95": { + "valid": 2770, + "positives": 8, + "negatives": 2762, + "auroc": 0.8047610427226647, + "auprc": 0.01317106985453118, + "brier": 0.002873864988176172, + "calibration": { + "observed_rate": 0.002888086642599278, + "mean_prediction": 0.0012857190479970198, + "calibration_in_the_large": -0.001602367594602258, + "expected_calibration_error_10bin": 0.001602367594602258, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9743228983468167 + }, + "J96": { + "valid": 2605, + "positives": 20, + "negatives": 2585, + "auroc": 0.8745647969052225, + "auprc": 0.0564786008659922, + "brier": 0.007441765844431574, + "calibration": { + "observed_rate": 0.007677543186180422, + "mean_prediction": 0.007281361630797647, + "calibration_in_the_large": -0.00039618155538277515, + "expected_calibration_error_10bin": 0.0007265693291436826, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9162856137882518 + }, + "J98": { + "valid": 2692, + "positives": 9, + "negatives": 2683, + "auroc": 0.6896923013210751, + "auprc": 0.00965821794819685, + "brier": 0.003327876306188128, + "calibration": { + "observed_rate": 0.0033432392273402673, + "mean_prediction": 0.0032665911553015387, + "calibration_in_the_large": -7.664807203872862e-05, + "expected_calibration_error_10bin": 7.664807203872862e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9468870911009497 + }, + "K04": { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 5.973415506241737e-08, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00012364012226426908, + "calibration_in_the_large": 0.00012364012226426908, + "expected_calibration_error_10bin": 0.00012364012226426908, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "K12": { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.9955705173635719, + "auprc": 0.12878787878787878, + "brier": 0.0007256556368386368, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0013958437491883855, + "calibration_in_the_large": 0.0006876284517379605, + "expected_calibration_error_10bin": 0.0006876284517379606, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "K20": { + "valid": 2813, + "positives": 3, + "negatives": 2810, + "auroc": 0.7177935943060498, + "auprc": 0.023615900413984994, + "brier": 0.001073359203681996, + "calibration": { + "observed_rate": 0.001066477070742979, + "mean_prediction": 0.001783939343014064, + "calibration_in_the_large": 0.0007174622722710849, + "expected_calibration_error_10bin": 0.0007174622722710849, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K21": { + "valid": 2043, + "positives": 33, + "negatives": 2010, + "auroc": 0.7793306196291271, + "auprc": 0.12102739780087543, + "brier": 0.015464260484683919, + "calibration": { + "observed_rate": 0.016152716593245228, + "mean_prediction": 0.013370701101567775, + "calibration_in_the_large": -0.0027820154916774528, + "expected_calibration_error_10bin": 0.002782015491677453, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7186071051705945 + }, + "K22": { + "valid": 2764, + "positives": 4, + "negatives": 2760, + "auroc": 0.8331521739130435, + "auprc": 0.057186172055953756, + "brier": 0.0014342378612386731, + "calibration": { + "observed_rate": 0.001447178002894356, + "mean_prediction": 0.0011217029584233186, + "calibration_in_the_large": -0.0003254750444710373, + "expected_calibration_error_10bin": 0.0003254750444710373, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9722124516355962 + }, + "K25": { + "valid": 2817, + "positives": 2, + "negatives": 2815, + "auroc": 0.7087033747779752, + "auprc": 0.0017817001343731556, + "brier": 0.000711505485642508, + "calibration": { + "observed_rate": 0.0007099751508697196, + "mean_prediction": 0.0005532508174857472, + "calibration_in_the_large": -0.00015672433338397235, + "expected_calibration_error_10bin": 0.00015672433338397235, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "K26": { + "valid": 2814, + "positives": 2, + "negatives": 2812, + "auroc": 0.9038051209103841, + "auprc": 0.014484126984126985, + "brier": 0.0007083079229268469, + "calibration": { + "observed_rate": 0.0007107320540156361, + "mean_prediction": 0.0010812395903983328, + "calibration_in_the_large": 0.0003705075363826967, + "expected_calibration_error_10bin": 0.0003705075363826967, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "K29": { + "valid": 2785, + "positives": 3, + "negatives": 2782, + "auroc": 0.7232207045291158, + "auprc": 0.025244116306342008, + "brier": 0.001074576158190589, + "calibration": { + "observed_rate": 0.0010771992818671453, + "mean_prediction": 0.002012208076649558, + "calibration_in_the_large": 0.0009350087947824126, + "expected_calibration_error_10bin": 0.0009350087947824126, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K30": { + "valid": 2837, + "positives": 0, + "negatives": 2837, + "auroc": null, + "auprc": null, + "brier": 8.568061093715978e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0003826435074632667, + "calibration_in_the_large": 0.0003826435074632667, + "expected_calibration_error_10bin": 0.0003826435074632667, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9978895532887795 + }, + "K31": { + "valid": 2756, + "positives": 5, + "negatives": 2751, + "auroc": 0.8593965830607052, + "auprc": 0.22978833587407976, + "brier": 0.0017421107247154067, + "calibration": { + "observed_rate": 0.00181422351233672, + "mean_prediction": 0.0017814921569402988, + "calibration_in_the_large": -3.2731355396421096e-05, + "expected_calibration_error_10bin": 0.0005439143427910652, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + "K40": { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 3.053613581425613e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00031496652906676405, + "calibration_in_the_large": 0.00031496652906676405, + "expected_calibration_error_10bin": 0.00031496652906676405, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "K42": { + "valid": 2820, + "positives": 2, + "negatives": 2818, + "auroc": 0.6589779985805536, + "auprc": 0.006425831202046036, + "brier": 0.0007091067686679092, + "calibration": { + "observed_rate": 0.0007092198581560284, + "mean_prediction": 0.00031099260222811396, + "calibration_in_the_large": -0.00039822725592791446, + "expected_calibration_error_10bin": 0.00039822725592791446, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + "K43": { + "valid": 2813, + "positives": 1, + "negatives": 2812, + "auroc": 0.966927453769559, + "auprc": 0.010638297872340425, + "brier": 0.0003546845194586361, + "calibration": { + "observed_rate": 0.00035549235691432633, + "mean_prediction": 0.00029800546061660075, + "calibration_in_the_large": -5.7486896297725585e-05, + "expected_calibration_error_10bin": 5.7486896297725585e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K44": { + "valid": 2785, + "positives": 2, + "negatives": 2783, + "auroc": 0.6043837585339562, + "auprc": 0.0015389911508008828, + "brier": 0.0007187139140853123, + "calibration": { + "observed_rate": 0.000718132854578097, + "mean_prediction": 0.0008382044341897771, + "calibration_in_the_large": 0.00012007157961168007, + "expected_calibration_error_10bin": 0.00012007157961168007, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K52": { + "valid": 2749, + "positives": 10, + "negatives": 2739, + "auroc": 0.8439941584519898, + "auprc": 0.057238018447340014, + "brier": 0.00357097320119113, + "calibration": { + "observed_rate": 0.0036376864314296106, + "mean_prediction": 0.003650388361092707, + "calibration_in_the_large": 1.270192966309645e-05, + "expected_calibration_error_10bin": 0.0001349791695718527, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9669363348575448 + }, + "K55": { + "valid": 2815, + "positives": 5, + "negatives": 2810, + "auroc": 0.8760142348754448, + "auprc": 0.008476422762857467, + "brier": 0.001773865645940677, + "calibration": { + "observed_rate": 0.0017761989342806395, + "mean_prediction": 0.0008354388675201411, + "calibration_in_the_large": -0.0009407600667604984, + "expected_calibration_error_10bin": 0.0009407600667604984, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + "K56": { + "valid": 2745, + "positives": 10, + "negatives": 2735, + "auroc": 0.6726873857404022, + "auprc": 0.010088626260089177, + "brier": 0.0036301772390083913, + "calibration": { + "observed_rate": 0.0036429872495446266, + "mean_prediction": 0.0019365430530834586, + "calibration_in_the_large": -0.001706444196461168, + "expected_calibration_error_10bin": 0.001706444196461168, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9655293703833978 + }, + "K57": { + "valid": 2741, + "positives": 4, + "negatives": 2737, + "auroc": 0.556448666423091, + "auprc": 0.002221184690543645, + "brier": 0.001459930119768892, + "calibration": { + "observed_rate": 0.001459321415541773, + "mean_prediction": 0.0010510451416297672, + "calibration_in_the_large": -0.0004082762739120059, + "expected_calibration_error_10bin": 0.0004082762739120059, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + "K58": { + "valid": 2792, + "positives": 5, + "negatives": 2787, + "auroc": 0.7684965913168281, + "auprc": 0.07019402067170047, + "brier": 0.0017766810404972293, + "calibration": { + "observed_rate": 0.0017908309455587394, + "mean_prediction": 0.0010863696512859518, + "calibration_in_the_large": -0.0007044612942727875, + "expected_calibration_error_10bin": 0.0007044612942727875, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + "K59": { + "valid": 2560, + "positives": 40, + "negatives": 2520, + "auroc": 0.7478670634920634, + "auprc": 0.06566903138050542, + "brier": 0.015095748244219434, + "calibration": { + "observed_rate": 0.015625, + "mean_prediction": 0.012629425480008649, + "calibration_in_the_large": -0.002995574519991351, + "expected_calibration_error_10bin": 0.0031327779279308747, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + "K62": { + "valid": 2813, + "positives": 2, + "negatives": 2811, + "auroc": 0.7456421202419068, + "auprc": 0.0021813939236806747, + "brier": 0.0007118121628454918, + "calibration": { + "observed_rate": 0.0007109847138286527, + "mean_prediction": 0.0009394735088321374, + "calibration_in_the_large": 0.0002284887950034847, + "expected_calibration_error_10bin": 0.0002284887950034847, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K63": { + "valid": 2810, + "positives": 6, + "negatives": 2804, + "auroc": 0.7102353780313837, + "auprc": 0.028424599333357285, + "brier": 0.0021235352923561247, + "calibration": { + "observed_rate": 0.002135231316725979, + "mean_prediction": 0.0010731608827212172, + "calibration_in_the_large": -0.0010620704340047616, + "expected_calibration_error_10bin": 0.0010620704340047616, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + "K64": { + "valid": 2801, + "positives": 5, + "negatives": 2796, + "auroc": 0.7567954220314735, + "auprc": 0.01176147051280416, + "brier": 0.001778967910520664, + "calibration": { + "observed_rate": 0.001785076758300607, + "mean_prediction": 0.0016095507918391107, + "calibration_in_the_large": -0.00017552596646149628, + "expected_calibration_error_10bin": 0.00017552596646149628, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "K65": { + "valid": 2813, + "positives": 7, + "negatives": 2806, + "auroc": 0.8348946135831382, + "auprc": 0.017405283174216114, + "brier": 0.00250083433790707, + "calibration": { + "observed_rate": 0.002488446498400284, + "mean_prediction": 0.001847573085189032, + "calibration_in_the_large": -0.0006408734132112522, + "expected_calibration_error_10bin": 0.0008474595681432328, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K66": { + "valid": 2796, + "positives": 1, + "negatives": 2795, + "auroc": 0.8722719141323793, + "auprc": 0.002793296089385475, + "brier": 0.00035911148979022125, + "calibration": { + "observed_rate": 0.000357653791130186, + "mean_prediction": 0.0007789038263861205, + "calibration_in_the_large": 0.00042125003525593453, + "expected_calibration_error_10bin": 0.00042125003525593453, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + "K70": { + "valid": 2774, + "positives": 1, + "negatives": 2773, + "auroc": 0.9372520735665344, + "auprc": 0.005714285714285714, + "brier": 0.00036461000938578536, + "calibration": { + "observed_rate": 0.0003604902667627974, + "mean_prediction": 0.00042112508409989345, + "calibration_in_the_large": 6.0634817337096064e-05, + "expected_calibration_error_10bin": 6.0634817337096064e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "K72": { + "valid": 2787, + "positives": 6, + "negatives": 2781, + "auroc": 0.9566702624955052, + "auprc": 0.15147916282826768, + "brier": 0.0020375913787643862, + "calibration": { + "observed_rate": 0.002152852529601722, + "mean_prediction": 0.00137123006263781, + "calibration_in_the_large": -0.000781622466963912, + "expected_calibration_error_10bin": 0.0010782871722386906, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "K74": { + "valid": 2763, + "positives": 3, + "negatives": 2760, + "auroc": 0.9391304347826087, + "auprc": 0.01756744368861692, + "brier": 0.0011018815812279482, + "calibration": { + "observed_rate": 0.0010857763300760044, + "mean_prediction": 0.0009794100752358456, + "calibration_in_the_large": -0.00010636625484015884, + "expected_calibration_error_10bin": 0.0001898570295605376, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + "K75": { + "valid": 2798, + "positives": 4, + "negatives": 2794, + "auroc": 0.8446671438797423, + "auprc": 0.018165939646384667, + "brier": 0.001428700903246529, + "calibration": { + "observed_rate": 0.0014295925661186562, + "mean_prediction": 0.0010729036091138716, + "calibration_in_the_large": -0.00035668895700478463, + "expected_calibration_error_10bin": 0.00035668895700478463, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + "K76": { + "valid": 2681, + "positives": 14, + "negatives": 2667, + "auroc": 0.8205581445176496, + "auprc": 0.14737353940891312, + "brier": 0.004890128763478716, + "calibration": { + "observed_rate": 0.005221932114882507, + "mean_prediction": 0.0018417998684684622, + "calibration_in_the_large": -0.0033801322464140447, + "expected_calibration_error_10bin": 0.004148155357682016, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9430179387970454 + }, + "K80": { + "valid": 2731, + "positives": 3, + "negatives": 2728, + "auroc": 0.6304985337243402, + "auprc": 0.0023552454356056567, + "brier": 0.0011025658289239518, + "calibration": { + "observed_rate": 0.0010984987184181618, + "mean_prediction": 0.0015610589455581042, + "calibration_in_the_large": 0.00046256022713994237, + "expected_calibration_error_10bin": 0.00046256022713994237, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9606049947238833 + }, + "K81": { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.777364505844846, + "auprc": 0.05635491606714628, + "brier": 0.000690452200374167, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.00075903838575442, + "calibration_in_the_large": 5.10737839845085e-05, + "expected_calibration_error_10bin": 5.10737839845085e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "K82": { + "valid": 2824, + "positives": 1, + "negatives": 2823, + "auroc": 0.9419057739992915, + "auprc": 0.006060606060606061, + "brier": 0.0003621903637892629, + "calibration": { + "observed_rate": 0.0003541076487252125, + "mean_prediction": 0.0008191822734787467, + "calibration_in_the_large": 0.0004650746247535342, + "expected_calibration_error_10bin": 0.0004650746247535342, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "K83": { + "valid": 2757, + "positives": 4, + "negatives": 2753, + "auroc": 0.911460225208863, + "auprc": 0.2567645918558327, + "brier": 0.001343019723357183, + "calibration": { + "observed_rate": 0.0014508523757707653, + "mean_prediction": 0.001354402972008451, + "calibration_in_the_large": -9.644940376231435e-05, + "expected_calibration_error_10bin": 0.0004820449894621978, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.969750263805839 + }, + "K85": { + "valid": 2779, + "positives": 2, + "negatives": 2777, + "auroc": 0.7283039250990277, + "auprc": 0.0021469728020183563, + "brier": 0.0007208961001927787, + "calibration": { + "observed_rate": 0.0007196833393306944, + "mean_prediction": 0.0005943797768922346, + "calibration_in_the_large": -0.00012530356243845985, + "expected_calibration_error_10bin": 0.00012530356243845985, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9774885684136475 + }, + "K86": { + "valid": 2785, + "positives": 4, + "negatives": 2781, + "auroc": 0.7748112189859763, + "auprc": 0.009530797425205396, + "brier": 0.0014356994364053306, + "calibration": { + "observed_rate": 0.001436265709156194, + "mean_prediction": 0.0009519707351532007, + "calibration_in_the_large": -0.0004842949740029933, + "expected_calibration_error_10bin": 0.0004842949740029933, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K90": { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.5978798586572438, + "auprc": 0.000877963125548727, + "brier": 0.00035334111992627693, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.00019034281722501262, + "calibration_in_the_large": -0.00016288925624725865, + "expected_calibration_error_10bin": 0.00016288925624725865, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "K91": { + "valid": 2768, + "positives": 13, + "negatives": 2755, + "auroc": 0.8480245707105961, + "auprc": 0.03130011392531287, + "brier": 0.004649769558624795, + "calibration": { + "observed_rate": 0.004696531791907515, + "mean_prediction": 0.0016217054080323715, + "calibration_in_the_large": -0.003074826383875143, + "expected_calibration_error_10bin": 0.003074826383875143, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "K92": { + "valid": 2751, + "positives": 11, + "negatives": 2740, + "auroc": 0.8837425348374254, + "auprc": 0.04146260914307082, + "brier": 0.003927070711547655, + "calibration": { + "observed_rate": 0.003998545983278807, + "mean_prediction": 0.003813496715751186, + "calibration_in_the_large": -0.00018504926752762121, + "expected_calibration_error_10bin": 0.00018504926752762121, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "K94": { + "valid": 2823, + "positives": 8, + "negatives": 2815, + "auroc": 0.8873001776198934, + "auprc": 0.1420835906280741, + "brier": 0.002806041024591307, + "calibration": { + "observed_rate": 0.0028338646829613886, + "mean_prediction": 0.0005817389627926895, + "calibration_in_the_large": -0.002252125720168699, + "expected_calibration_error_10bin": 0.002252125720168699, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "L02": { + "valid": 2807, + "positives": 9, + "negatives": 2798, + "auroc": 0.8096656341831467, + "auprc": 0.012612913854859407, + "brier": 0.003189227834641964, + "calibration": { + "observed_rate": 0.003206270039187745, + "mean_prediction": 0.001827746159981527, + "calibration_in_the_large": -0.0013785238792062178, + "expected_calibration_error_10bin": 0.0013785238792062178, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "L03": { + "valid": 2701, + "positives": 11, + "negatives": 2690, + "auroc": 0.6499155119972964, + "auprc": 0.008590540455537423, + "brier": 0.004063552632445131, + "calibration": { + "observed_rate": 0.004072565716401333, + "mean_prediction": 0.0037484306174324963, + "calibration_in_the_large": -0.0003241350989688363, + "expected_calibration_error_10bin": 0.0003241350989688363, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9500527611677805 + }, + "L08": { + "valid": 2830, + "positives": 3, + "negatives": 2827, + "auroc": 0.6917816295248201, + "auprc": 0.0037503805625502336, + "brier": 0.0010594045326400086, + "calibration": { + "observed_rate": 0.0010600706713780918, + "mean_prediction": 0.00044761782109971663, + "calibration_in_the_large": -0.0006124528502783751, + "expected_calibration_error_10bin": 0.0006124528502783751, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9954273654590221 + }, + "L27": { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.7485247067188056, + "auprc": 0.007638278969871133, + "brier": 0.0017751065893418635, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.0011655113241224658, + "calibration_in_the_large": -0.000608796695749784, + "expected_calibration_error_10bin": 0.000608796695749784, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "L29": { + "valid": 2817, + "positives": 2, + "negatives": 2815, + "auroc": 0.6538188277087034, + "auprc": 0.0014929575939393613, + "brier": 0.000715708859682597, + "calibration": { + "observed_rate": 0.0007099751508697196, + "mean_prediction": 0.001007233064764086, + "calibration_in_the_large": 0.0002972579138943664, + "expected_calibration_error_10bin": 0.0002972579138943664, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "L30": { + "valid": 2816, + "positives": 2, + "negatives": 2814, + "auroc": 0.8823738450604123, + "auprc": 0.10151515151515152, + "brier": 0.000705089349506927, + "calibration": { + "observed_rate": 0.0007102272727272727, + "mean_prediction": 0.0006130075290619546, + "calibration_in_the_large": -9.721974366531819e-05, + "expected_calibration_error_10bin": 9.721974366531819e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "L50": { + "valid": 2835, + "positives": 2, + "negatives": 2833, + "auroc": 0.8725732439110484, + "auprc": 0.010119940029985007, + "brier": 0.0007043517901771816, + "calibration": { + "observed_rate": 0.0007054673721340388, + "mean_prediction": 0.00033627124819155923, + "calibration_in_the_large": -0.0003691961239424796, + "expected_calibration_error_10bin": 0.0003691961239424796, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.997186071051706 + }, + "L53": { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 1.2576481311492193e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00041926102007575376, + "calibration_in_the_large": 0.00041926102007575376, + "expected_calibration_error_10bin": 0.00041926102007575376, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "L76": { + "valid": 2793, + "positives": 8, + "negatives": 2785, + "auroc": 0.6860412926391383, + "auprc": 0.005075346356895827, + "brier": 0.0028598055376213277, + "calibration": { + "observed_rate": 0.0028643036161833156, + "mean_prediction": 0.001437189571241069, + "calibration_in_the_large": -0.0014271140449422467, + "expected_calibration_error_10bin": 0.0014271140449422467, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "L89": { + "valid": 2798, + "positives": 10, + "negatives": 2788, + "auroc": 0.8669655667144907, + "auprc": 0.03149641663809309, + "brier": 0.0035372296832834847, + "calibration": { + "observed_rate": 0.0035739814152966403, + "mean_prediction": 0.001997349608130198, + "calibration_in_the_large": -0.0015766318071664424, + "expected_calibration_error_10bin": 0.0015766318071664424, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + "L97": { + "valid": 2789, + "positives": 3, + "negatives": 2786, + "auroc": 0.9429289303661162, + "auprc": 0.014578317537727994, + "brier": 0.0010862838867972484, + "calibration": { + "observed_rate": 0.0010756543564001434, + "mean_prediction": 0.001344953950578201, + "calibration_in_the_large": 0.00026929959417805764, + "expected_calibration_error_10bin": 0.00026929959417805753, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "L98": { + "valid": 2824, + "positives": 1, + "negatives": 2823, + "auroc": 0.4442082890541977, + "auprc": 0.0006369426751592356, + "brier": 0.0003568283047033075, + "calibration": { + "observed_rate": 0.0003541076487252125, + "mean_prediction": 0.0007330957599661408, + "calibration_in_the_large": 0.00037898811124092833, + "expected_calibration_error_10bin": 0.00037898811124092833, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "M10": { + "valid": 2713, + "positives": 8, + "negatives": 2705, + "auroc": 0.8451940850277264, + "auprc": 0.024131507310546606, + "brier": 0.00291962966546607, + "calibration": { + "observed_rate": 0.002948765204570586, + "mean_prediction": 0.0021130076377445877, + "calibration_in_the_large": -0.0008357575668259984, + "expected_calibration_error_10bin": 0.0008357575668259984, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9542736545902216 + }, + "M16": { + "valid": 2790, + "positives": 1, + "negatives": 2789, + "auroc": 0.761921835783435, + "auprc": 0.0015037593984962407, + "brier": 0.0003585332612369106, + "calibration": { + "observed_rate": 0.00035842293906810036, + "mean_prediction": 0.000531886790641867, + "calibration_in_the_large": 0.0001734638515737667, + "expected_calibration_error_10bin": 0.0001734638515737667, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + "M17": { + "valid": 2733, + "positives": 4, + "negatives": 2729, + "auroc": 0.7209600586295346, + "auprc": 0.0037798747886434417, + "brier": 0.0014615770797178475, + "calibration": { + "observed_rate": 0.0014635931211123307, + "mean_prediction": 0.0009731193093133058, + "calibration_in_the_large": -0.0004904738117990249, + "expected_calibration_error_10bin": 0.0004904738117990249, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + "M19": { + "valid": 2674, + "positives": 15, + "negatives": 2659, + "auroc": 0.6461577033972672, + "auprc": 0.011302290459780782, + "brier": 0.005582919513169658, + "calibration": { + "observed_rate": 0.005609573672400898, + "mean_prediction": 0.0024154642807664045, + "calibration_in_the_large": -0.003194109391634493, + "expected_calibration_error_10bin": 0.003194109391634493, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.940555750967288 + }, + "M21": { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.8780141843971632, + "auprc": 0.002898550724637681, + "brier": 0.0003545103995472279, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0006792093165811141, + "calibration_in_the_large": 0.00032472509112914676, + "expected_calibration_error_10bin": 0.00032472509112914676, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "M25": { + "valid": 2717, + "positives": 8, + "negatives": 2709, + "auroc": 0.7655500184569952, + "auprc": 0.034465874755331596, + "brier": 0.0029102383322358433, + "calibration": { + "observed_rate": 0.002944423997055576, + "mean_prediction": 0.004868064556344706, + "calibration_in_the_large": 0.0019236405592891297, + "expected_calibration_error_10bin": 0.0019236405592891297, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9556806190643686 + }, + "M35": { + "valid": 2806, + "positives": 1, + "negatives": 2805, + "auroc": 0.8467023172905526, + "auprc": 0.002320185614849188, + "brier": 0.0003563873786872606, + "calibration": { + "observed_rate": 0.0003563791874554526, + "mean_prediction": 0.0002074385217846529, + "calibration_in_the_large": -0.00014894066567079973, + "expected_calibration_error_10bin": 0.00014894066567079973, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "M46": { + "valid": 2814, + "positives": 1, + "negatives": 2813, + "auroc": 0.766797013864202, + "auprc": 0.0015220700152207, + "brier": 0.0003554710870485828, + "calibration": { + "observed_rate": 0.00035536602700781805, + "mean_prediction": 0.00034645813676975737, + "calibration_in_the_large": -8.907890238060679e-06, + "expected_calibration_error_10bin": 8.907890238060679e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "M47": { + "valid": 2743, + "positives": 2, + "negatives": 2741, + "auroc": 0.32925939438161256, + "auprc": 0.0008116736087347871, + "brier": 0.0007340361153591362, + "calibration": { + "observed_rate": 0.0007291286912139992, + "mean_prediction": 0.0016975713799486777, + "calibration_in_the_large": 0.0009684426887346785, + "expected_calibration_error_10bin": 0.0009684426887346785, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + "M48": { + "valid": 2690, + "positives": 3, + "negatives": 2687, + "auroc": 0.811065624612331, + "auprc": 0.03554359828449764, + "brier": 0.0011107388919023593, + "calibration": { + "observed_rate": 0.0011152416356877324, + "mean_prediction": 0.0021383509651853824, + "calibration_in_the_large": 0.00102310932949765, + "expected_calibration_error_10bin": 0.00102310932949765, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9461836088638762 + }, + "M51": { + "valid": 2785, + "positives": 0, + "negatives": 2785, + "auroc": null, + "auprc": null, + "brier": 1.2658630068469975e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.000854067309167344, + "calibration_in_the_large": 0.000854067309167344, + "expected_calibration_error_10bin": 0.000854067309167344, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "M54": { + "valid": 2567, + "positives": 13, + "negatives": 2554, + "auroc": 0.6852298054334076, + "auprc": 0.013383197414760798, + "brier": 0.005050562580317724, + "calibration": { + "observed_rate": 0.00506427736657577, + "mean_prediction": 0.006432317004854351, + "calibration_in_the_large": 0.0013680396382785816, + "expected_calibration_error_10bin": 0.0013680396382785816, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9029194512838551 + }, + "M62": { + "valid": 2781, + "positives": 2, + "negatives": 2779, + "auroc": 0.4507016912558474, + "auprc": 0.0009662530368451152, + "brier": 0.0007229600117222031, + "calibration": { + "observed_rate": 0.000719165767709457, + "mean_prediction": 0.0016360276250890348, + "calibration_in_the_large": 0.0009168618573795778, + "expected_calibration_error_10bin": 0.0009168618573795778, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + "M79": { + "valid": 2697, + "positives": 15, + "negatives": 2682, + "auroc": 0.7276410638826746, + "auprc": 0.01680103861875345, + "brier": 0.005512501648011665, + "calibration": { + "observed_rate": 0.0055617352614015575, + "mean_prediction": 0.0040503985971844705, + "calibration_in_the_large": -0.001511336664217087, + "expected_calibration_error_10bin": 0.001511336664217087, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9486457966936335 + }, + "M81": { + "valid": 2705, + "positives": 5, + "negatives": 2700, + "auroc": 0.74, + "auprc": 0.010067191292555016, + "brier": 0.0018654354601372674, + "calibration": { + "observed_rate": 0.0018484288354898336, + "mean_prediction": 0.002402365515253708, + "calibration_in_the_large": 0.0005539366797638742, + "expected_calibration_error_10bin": 0.0005539366797638742, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9514597256419275 + }, + "M84": { + "valid": 2818, + "positives": 1, + "negatives": 2817, + "auroc": 0.9808306709265175, + "auprc": 0.01818181818181818, + "brier": 0.0003544194835114663, + "calibration": { + "observed_rate": 0.00035486160397445, + "mean_prediction": 0.0006818898468358316, + "calibration_in_the_large": 0.0003270282428613816, + "expected_calibration_error_10bin": 0.0003270282428613816, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "M85": { + "valid": 2768, + "positives": 2, + "negatives": 2766, + "auroc": 0.791937816341287, + "auprc": 0.005385393554529766, + "brier": 0.0007215445266839823, + "calibration": { + "observed_rate": 0.000722543352601156, + "mean_prediction": 0.0007189556002999218, + "calibration_in_the_large": -3.5877523012342117e-06, + "expected_calibration_error_10bin": 3.5877523012342117e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "M86": { + "valid": 2803, + "positives": 4, + "negatives": 2799, + "auroc": 0.9117541979278314, + "auprc": 0.026964538570766864, + "brier": 0.0014134901183225873, + "calibration": { + "observed_rate": 0.0014270424545130217, + "mean_prediction": 0.0015349290791471044, + "calibration_in_the_large": 0.0001078866246340827, + "expected_calibration_error_10bin": 0.0001078866246340827, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9859303552585297 + }, + "M94": { + "valid": 2819, + "positives": 1, + "negatives": 2818, + "auroc": 0.5340667139815471, + "auprc": 0.00076103500761035, + "brier": 0.00035473464084408027, + "calibration": { + "observed_rate": 0.000354735721887194, + "mean_prediction": 9.923054773408436e-05, + "calibration_in_the_large": -0.00025550517415310963, + "expected_calibration_error_10bin": 0.00025550517415310963, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "M96": { + "valid": 2804, + "positives": 1, + "negatives": 2803, + "auroc": 0.952550838387442, + "auprc": 0.007462686567164179, + "brier": 0.00035704658175395525, + "calibration": { + "observed_rate": 0.0003566333808844508, + "mean_prediction": 0.0010741311096224687, + "calibration_in_the_large": 0.000717497728738018, + "expected_calibration_error_10bin": 0.000717497728738018, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "N12": { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.6548461266360099, + "auprc": 0.0024421748434591854, + "brier": 0.0014165217036306455, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0005207533080234521, + "calibration_in_the_large": -0.000892174985865633, + "expected_calibration_error_10bin": 0.000892174985865633, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "N13": { + "valid": 2756, + "positives": 2, + "negatives": 2754, + "auroc": 0.7732389251997095, + "auprc": 0.003560308115923435, + "brier": 0.000731289570657343, + "calibration": { + "observed_rate": 0.000725689404934688, + "mean_prediction": 0.0015887133303993124, + "calibration_in_the_large": 0.0008630239254646244, + "expected_calibration_error_10bin": 0.0008630239254646244, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + "N14": { + "valid": 2826, + "positives": 3, + "negatives": 2823, + "auroc": 0.6743417168496871, + "auprc": 0.0032371357761864605, + "brier": 0.001062274556870615, + "calibration": { + "observed_rate": 0.0010615711252653928, + "mean_prediction": 0.0008460417820294334, + "calibration_in_the_large": -0.0002155293432359594, + "expected_calibration_error_10bin": 0.0002155293432359594, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "N17": { + "valid": 2292, + "positives": 41, + "negatives": 2251, + "auroc": 0.8158975414720828, + "auprc": 0.08984130167903355, + "brier": 0.016960586149206744, + "calibration": { + "observed_rate": 0.01788830715532286, + "mean_prediction": 0.017286142695759007, + "calibration_in_the_large": -0.0006021644595638545, + "expected_calibration_error_10bin": 0.002414690970419976, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8061906436862469 + }, + "N18": { + "valid": 2440, + "positives": 15, + "negatives": 2425, + "auroc": 0.8952852233676976, + "auprc": 0.08899907349508858, + "brier": 0.00590471430201852, + "calibration": { + "observed_rate": 0.006147540983606557, + "mean_prediction": 0.005599178001450098, + "calibration_in_the_large": -0.0005483629821564596, + "expected_calibration_error_10bin": 0.0007864346329116697, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.858248329229687 + }, + "N20": { + "valid": 2806, + "positives": 7, + "negatives": 2799, + "auroc": 0.7251059051702139, + "auprc": 0.005515807852331136, + "brier": 0.0024919769676453726, + "calibration": { + "observed_rate": 0.0024946543121881683, + "mean_prediction": 0.0004554866007146265, + "calibration_in_the_large": -0.0020391677114735417, + "expected_calibration_error_10bin": 0.0020391677114735417, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "N25": { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.8773434736469756, + "auprc": 0.025401831728362342, + "brier": 0.0014083155446455167, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.00028289137961096285, + "calibration_in_the_large": -0.0011300369142781222, + "expected_calibration_error_10bin": 0.0011300369142781222, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "N28": { + "valid": 2789, + "positives": 3, + "negatives": 2786, + "auroc": 0.918281885618569, + "auprc": 0.010795591239193296, + "brier": 0.0010712737787581324, + "calibration": { + "observed_rate": 0.0010756543564001434, + "mean_prediction": 0.0012194859029508627, + "calibration_in_the_large": 0.00014383154655071926, + "expected_calibration_error_10bin": 0.00014383154655071926, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "N30": { + "valid": 2829, + "positives": 6, + "negatives": 2823, + "auroc": 0.7826189632778369, + "auprc": 0.00799739303400565, + "brier": 0.002114401737400117, + "calibration": { + "observed_rate": 0.0021208907741251328, + "mean_prediction": 0.0011688952515317389, + "calibration_in_the_large": -0.0009519955225933939, + "expected_calibration_error_10bin": 0.0009519955225933939, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "N32": { + "valid": 2807, + "positives": 7, + "negatives": 2800, + "auroc": 0.8570918367346939, + "auprc": 0.014692371848668432, + "brier": 0.0024802117567465734, + "calibration": { + "observed_rate": 0.0024937655860349127, + "mean_prediction": 0.0015801087168544389, + "calibration_in_the_large": -0.0009136568691804738, + "expected_calibration_error_10bin": 0.0009136568691804738, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "N39": { + "valid": 2520, + "positives": 31, + "negatives": 2489, + "auroc": 0.7877629310903459, + "auprc": 0.040117069915286664, + "brier": 0.01199020986454581, + "calibration": { + "observed_rate": 0.012301587301587301, + "mean_prediction": 0.013673574863614271, + "calibration_in_the_large": 0.00137198756202697, + "expected_calibration_error_10bin": 0.00137198756202697, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8863876187126275 + }, + "N40": { + "valid": 2606, + "positives": 7, + "negatives": 2599, + "auroc": 0.8507667784312648, + "auprc": 0.03119040355412629, + "brier": 0.0026596009523154034, + "calibration": { + "observed_rate": 0.002686108979278588, + "mean_prediction": 0.003107788711779707, + "calibration_in_the_large": 0.0004216797325011191, + "expected_calibration_error_10bin": 0.0004216797325011191, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9166373549067885 + }, + "N73": { + "valid": 2829, + "positives": 1, + "negatives": 2828, + "auroc": 0.9172560113154172, + "auprc": 0.00425531914893617, + "brier": 0.0003543612714778555, + "calibration": { + "observed_rate": 0.0003534817956875221, + "mean_prediction": 0.00027841345663109007, + "calibration_in_the_large": -7.506833905643204e-05, + "expected_calibration_error_10bin": 7.506833905643204e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "N99": { + "valid": 2799, + "positives": 3, + "negatives": 2796, + "auroc": 0.6570100143061517, + "auprc": 0.0023753931454237294, + "brier": 0.001072301602060522, + "calibration": { + "observed_rate": 0.0010718113612004287, + "mean_prediction": 0.0008971699137062292, + "calibration_in_the_large": -0.00017464144749419948, + "expected_calibration_error_10bin": 0.00017464144749419948, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9845233907843827 + }, + "O69": { + "valid": 2743, + "positives": 3, + "negatives": 2740, + "auroc": 0.9991484184914842, + "auprc": 0.4444444444444444, + "brier": 0.0007976143026040557, + "calibration": { + "observed_rate": 0.001093693036820999, + "mean_prediction": 0.001317554526727773, + "calibration_in_the_large": 0.00022386148990677411, + "expected_calibration_error_10bin": 0.0015415632429278863, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + "O99": { + "valid": 2652, + "positives": 0, + "negatives": 2652, + "auroc": null, + "auprc": null, + "brier": 0.0003892942341226834, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0017776752514845633, + "calibration_in_the_large": 0.0017776752514845633, + "expected_calibration_error_10bin": 0.0017776752514845633, + "nonempty_bins": 6 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9328174463594794 + }, + "Q21": { + "valid": 2810, + "positives": 1, + "negatives": 2809, + "auroc": 0.8066927732289071, + "auprc": 0.001838235294117647, + "brier": 0.0003560162315231282, + "calibration": { + "observed_rate": 0.00035587188612099647, + "mean_prediction": 0.0006177222336249595, + "calibration_in_the_large": 0.000261850347503963, + "expected_calibration_error_10bin": 0.000261850347503963, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + "U07": { + "valid": 2828, + "positives": 0, + "negatives": 2828, + "auroc": null, + "auprc": null, + "brier": 3.9045854151662175e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0009391089738444918, + "calibration_in_the_large": 0.0009391089738444918, + "expected_calibration_error_10bin": 0.0009391089738444918, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9947238832219486 + } + }, + "90": { + "A04": { + "valid": 2782, + "positives": 14, + "negatives": 2768, + "auroc": 0.7688377374071016, + "auprc": 0.08373308043981131, + "brier": 0.005003239032034303, + "calibration": { + "observed_rate": 0.0050323508267433505, + "mean_prediction": 0.0057013914956543866, + "calibration_in_the_large": 0.000669040668911036, + "expected_calibration_error_10bin": 0.0006690406689110366, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + "A08": { + "valid": 2818, + "positives": 7, + "negatives": 2811, + "auroc": 0.746506073080246, + "auprc": 0.008276154198473027, + "brier": 0.0024823471872175065, + "calibration": { + "observed_rate": 0.00248403122782115, + "mean_prediction": 0.0015507353548072323, + "calibration_in_the_large": -0.0009332958730139175, + "expected_calibration_error_10bin": 0.0009332958730139175, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "A41": { + "valid": 2664, + "positives": 27, + "negatives": 2637, + "auroc": 0.7674265087992809, + "auprc": 0.0291185054137068, + "brier": 0.010303116947590157, + "calibration": { + "observed_rate": 0.010135135135135136, + "mean_prediction": 0.01204225767573384, + "calibration_in_the_large": 0.0019071225405987036, + "expected_calibration_error_10bin": 0.002378224170450147, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9370383397819205 + }, + "B00": { + "valid": 2819, + "positives": 1, + "negatives": 2818, + "auroc": 0.9985805535841022, + "auprc": 0.2, + "brier": 0.0003451760335470485, + "calibration": { + "observed_rate": 0.000354735721887194, + "mean_prediction": 0.0005328896112932137, + "calibration_in_the_large": 0.00017815388940601966, + "expected_calibration_error_10bin": 0.00017815388940601966, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "B02": { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.9543685886098338, + "auprc": 0.007692307692307693, + "brier": 0.0003541926184618162, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0005059782699057599, + "calibration_in_the_large": 0.00015237148065540626, + "expected_calibration_error_10bin": 0.00015237148065540626, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "B18": { + "valid": 2782, + "positives": 3, + "negatives": 2779, + "auroc": 0.9624565191315821, + "auprc": 0.025579710144927537, + "brier": 0.0010878094348901923, + "calibration": { + "observed_rate": 0.0010783608914450035, + "mean_prediction": 0.0006735404192038627, + "calibration_in_the_large": -0.0004048204722411408, + "expected_calibration_error_10bin": 0.0005850754538377769, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + "B19": { + "valid": 2763, + "positives": 12, + "negatives": 2751, + "auroc": 0.9132739609838847, + "auprc": 0.04104076080026442, + "brier": 0.004306011760671136, + "calibration": { + "observed_rate": 0.004343105320304018, + "mean_prediction": 0.0014184828953784712, + "calibration_in_the_large": -0.002924622424925546, + "expected_calibration_error_10bin": 0.003195657014043068, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + "B20": { + "valid": 2829, + "positives": 1, + "negatives": 2828, + "auroc": 0.9692362093352193, + "auprc": 0.011363636363636364, + "brier": 0.0003631252050952135, + "calibration": { + "observed_rate": 0.0003534817956875221, + "mean_prediction": 0.0004984633733124699, + "calibration_in_the_large": 0.0001449815776249478, + "expected_calibration_error_10bin": 0.0001449815776249478, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "B34": { + "valid": 2831, + "positives": 3, + "negatives": 2828, + "auroc": 0.9220886374351721, + "auprc": 0.0717702976468755, + "brier": 0.0010524065850685633, + "calibration": { + "observed_rate": 0.0010596962204168139, + "mean_prediction": 0.00046831557595970687, + "calibration_in_the_large": -0.000591380644457107, + "expected_calibration_error_10bin": 0.000591380644457107, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "B35": { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 9.549470155117624e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0005154080035379796, + "calibration_in_the_large": 0.0005154080035379796, + "expected_calibration_error_10bin": 0.0005154080035379796, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "B37": { + "valid": 2768, + "positives": 18, + "negatives": 2750, + "auroc": 0.7403636363636363, + "auprc": 0.01939122849264217, + "brier": 0.006461019485870311, + "calibration": { + "observed_rate": 0.006502890173410405, + "mean_prediction": 0.003624562309144394, + "calibration_in_the_large": -0.0028783278642660107, + "expected_calibration_error_10bin": 0.0028783278642660107, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "B95": { + "valid": 2678, + "positives": 34, + "negatives": 2644, + "auroc": 0.749154578624188, + "auprc": 0.028874929271521976, + "brier": 0.012470896970600243, + "calibration": { + "observed_rate": 0.012696041822255415, + "mean_prediction": 0.009831174660889732, + "calibration_in_the_large": -0.002864867161365683, + "expected_calibration_error_10bin": 0.002864867161365683, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9419627154414351 + }, + "B96": { + "valid": 2630, + "positives": 44, + "negatives": 2586, + "auroc": 0.7461945440483724, + "auprc": 0.050288623748761176, + "brier": 0.016238968661272907, + "calibration": { + "observed_rate": 0.016730038022813688, + "mean_prediction": 0.011427206252739205, + "calibration_in_the_large": -0.0053028317700744825, + "expected_calibration_error_10bin": 0.005491216912874047, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9250791417516707 + }, + "B97": { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.5001768659356208, + "auprc": 0.0007072135785007072, + "brier": 0.0003671065958824741, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0005306450582154466, + "calibration_in_the_large": 0.000177038268965093, + "expected_calibration_error_10bin": 0.00017703826896509306, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "C18": { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.9771438695960312, + "auprc": 0.022134203168685928, + "brier": 0.0007046995158394491, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.00047354387130805743, + "calibration_in_the_large": -0.00023467142614236753, + "expected_calibration_error_10bin": 0.00023467142614236753, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "C22": { + "valid": 2812, + "positives": 5, + "negatives": 2807, + "auroc": 0.9194869967937299, + "auprc": 0.028439805211758328, + "brier": 0.0017822628135803242, + "calibration": { + "observed_rate": 0.0017780938833570413, + "mean_prediction": 0.00039016404558345175, + "calibration_in_the_large": -0.0013879298377735896, + "expected_calibration_error_10bin": 0.0013879298377735896, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9890960253253606 + }, + "C25": { + "valid": 2809, + "positives": 1, + "negatives": 2808, + "auroc": 0.9985754985754985, + "auprc": 0.2, + "brier": 0.00033025477485536725, + "calibration": { + "observed_rate": 0.000355998576005696, + "mean_prediction": 0.0008033758830640861, + "calibration_in_the_large": 0.0004473773070583901, + "expected_calibration_error_10bin": 0.0007611176646505562, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "C61": { + "valid": 2805, + "positives": 2, + "negatives": 2803, + "auroc": 0.995718872636461, + "auprc": 0.12142857142857143, + "brier": 0.000703482691635852, + "calibration": { + "observed_rate": 0.00071301247771836, + "mean_prediction": 0.0005459165920567196, + "calibration_in_the_large": -0.0001670958856616404, + "expected_calibration_error_10bin": 0.0001670958856616404, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "C67": { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9686947293951185, + "auprc": 0.01634768740031898, + "brier": 0.0007059074166689683, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.00016404228700585283, + "calibration_in_the_large": -0.0005429213043691913, + "expected_calibration_error_10bin": 0.0005429213043691913, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "C77": { + "valid": 2762, + "positives": 11, + "negatives": 2751, + "auroc": 0.868147120055517, + "auprc": 0.10044693046062654, + "brier": 0.0038486955958180785, + "calibration": { + "observed_rate": 0.0039826212889210715, + "mean_prediction": 0.00343373414870824, + "calibration_in_the_large": -0.0005488871402128314, + "expected_calibration_error_10bin": 0.0007164206257621619, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + "C78": { + "valid": 2762, + "positives": 16, + "negatives": 2746, + "auroc": 0.893413146394756, + "auprc": 0.17801795078685226, + "brier": 0.005329966682731987, + "calibration": { + "observed_rate": 0.005792903692976104, + "mean_prediction": 0.0037382044473241818, + "calibration_in_the_large": -0.002054699245651922, + "expected_calibration_error_10bin": 0.0030756468072802353, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + "C79": { + "valid": 2751, + "positives": 9, + "negatives": 2742, + "auroc": 0.9437960936866845, + "auprc": 0.08075420179380574, + "brier": 0.003184554210530841, + "calibration": { + "observed_rate": 0.003271537622682661, + "mean_prediction": 0.003490675689302594, + "calibration_in_the_large": 0.00021913806661993333, + "expected_calibration_error_10bin": 0.0007045796724845982, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "C83": { + "valid": 2820, + "positives": 0, + "negatives": 2820, + "auroc": null, + "auprc": null, + "brier": 1.7919950365855872e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.000372782546351493, + "calibration_in_the_large": 0.000372782546351493, + "expected_calibration_error_10bin": 0.000372782546351493, + "nonempty_bins": 2 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9919099542736546 + }, + "D25": { + "valid": 2792, + "positives": 2, + "negatives": 2790, + "auroc": 0.992831541218638, + "auprc": 0.27439024390243905, + "brier": 0.0007006493271940933, + "calibration": { + "observed_rate": 0.0007163323782234957, + "mean_prediction": 0.0003884234285976455, + "calibration_in_the_large": -0.0003279089496258502, + "expected_calibration_error_10bin": 0.0003279089496258502, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + "D47": { + "valid": 2796, + "positives": 6, + "negatives": 2790, + "auroc": 0.582258064516129, + "auprc": 0.00333282368238205, + "brier": 0.0021470406436174417, + "calibration": { + "observed_rate": 0.002145922746781116, + "mean_prediction": 0.00151964643899553, + "calibration_in_the_large": -0.0006262763077855859, + "expected_calibration_error_10bin": 0.0006262763077855859, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + "D50": { + "valid": 2663, + "positives": 28, + "negatives": 2635, + "auroc": 0.8555841691515316, + "auprc": 0.10765187548863726, + "brier": 0.010088524446018664, + "calibration": { + "observed_rate": 0.010514457378895982, + "mean_prediction": 0.006766912377677428, + "calibration_in_the_large": -0.0037475450012185536, + "expected_calibration_error_10bin": 0.0037475450012185527, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9366865986633838 + }, + "D53": { + "valid": 2805, + "positives": 9, + "negatives": 2796, + "auroc": 0.8447782546494993, + "auprc": 0.06739798692172377, + "brier": 0.0031349677893748144, + "calibration": { + "observed_rate": 0.0032085561497326204, + "mean_prediction": 0.002550731540144521, + "calibration_in_the_large": -0.0006578246095880992, + "expected_calibration_error_10bin": 0.0006578246095880992, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "D59": { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 3.0170959112156783e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0005437646166898114, + "calibration_in_the_large": 0.0005437646166898114, + "expected_calibration_error_10bin": 0.0005437646166898114, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "D61": { + "valid": 2773, + "positives": 15, + "negatives": 2758, + "auroc": 0.9437031665458061, + "auprc": 0.12331085175173635, + "brier": 0.005135103715717277, + "calibration": { + "observed_rate": 0.005409304002884962, + "mean_prediction": 0.005883591280465662, + "calibration_in_the_large": 0.0004742872775806992, + "expected_calibration_error_10bin": 0.0014465077160045563, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + "D62": { + "valid": 2499, + "positives": 30, + "negatives": 2469, + "auroc": 0.8070743890914001, + "auprc": 0.039225734648974865, + "brier": 0.011722256244716364, + "calibration": { + "observed_rate": 0.012004801920768308, + "mean_prediction": 0.009187855178363291, + "calibration_in_the_large": -0.0028169467424050167, + "expected_calibration_error_10bin": 0.002905168360655511, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8790010552233556 + }, + "D63": { + "valid": 2686, + "positives": 43, + "negatives": 2643, + "auroc": 0.8855951218224534, + "auprc": 0.09556575649580404, + "brier": 0.015251436291877902, + "calibration": { + "observed_rate": 0.01600893521965748, + "mean_prediction": 0.011472751033315754, + "calibration_in_the_large": -0.004536184186341727, + "expected_calibration_error_10bin": 0.00676930437959594, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9447766443897292 + }, + "D64": { + "valid": 2434, + "positives": 66, + "negatives": 2368, + "auroc": 0.8148418304668305, + "auprc": 0.1315935339380499, + "brier": 0.025003190285005323, + "calibration": { + "observed_rate": 0.027115858668857847, + "mean_prediction": 0.02260235723829503, + "calibration_in_the_large": -0.004513501430562818, + "expected_calibration_error_10bin": 0.004513501430562818, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8561378825184665 + }, + "D65": { + "valid": 2833, + "positives": 2, + "negatives": 2831, + "auroc": 0.9337689862239491, + "auprc": 0.011477987421383649, + "brier": 0.0007048430574131787, + "calibration": { + "observed_rate": 0.0007059654076950229, + "mean_prediction": 0.0003319768030031172, + "calibration_in_the_large": -0.00037398860469190577, + "expected_calibration_error_10bin": 0.00037398860469190577, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9964825888146325 + }, + "D68": { + "valid": 2682, + "positives": 29, + "negatives": 2653, + "auroc": 0.8141856324005355, + "auprc": 0.05378968857825319, + "brier": 0.010575295943635626, + "calibration": { + "observed_rate": 0.01081282624906786, + "mean_prediction": 0.0042678834517552, + "calibration_in_the_large": -0.006544942797312659, + "expected_calibration_error_10bin": 0.006914325676435096, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9433696799155822 + }, + "D69": { + "valid": 2586, + "positives": 40, + "negatives": 2546, + "auroc": 0.8792321288295365, + "auprc": 0.23773816957011157, + "brier": 0.01349117615213947, + "calibration": { + "observed_rate": 0.015467904098994586, + "mean_prediction": 0.00925748475983555, + "calibration_in_the_large": -0.006210419339159036, + "expected_calibration_error_10bin": 0.006210419339159035, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9096025325360535 + }, + "D70": { + "valid": 2787, + "positives": 17, + "negatives": 2770, + "auroc": 0.8937566362284987, + "auprc": 0.16642468007973976, + "brier": 0.005529159830633731, + "calibration": { + "observed_rate": 0.006099748833871547, + "mean_prediction": 0.004799380632901236, + "calibration_in_the_large": -0.0013003682009703104, + "expected_calibration_error_10bin": 0.0036150873021270867, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "D72": { + "valid": 2595, + "positives": 34, + "negatives": 2561, + "auroc": 0.7238440866389507, + "auprc": 0.05297162181944403, + "brier": 0.01278007247562316, + "calibration": { + "observed_rate": 0.013102119460500963, + "mean_prediction": 0.015978337249916895, + "calibration_in_the_large": 0.0028762177894159323, + "expected_calibration_error_10bin": 0.0028762177894159314, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9127682026028843 + }, + "D73": { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.8555988660524451, + "auprc": 0.2512254901960784, + "brier": 0.0006975131426842653, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0003841730670719776, + "calibration_in_the_large": -0.00032404223037844736, + "expected_calibration_error_10bin": 0.00032404223037844736, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "D75": { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.9632508833922262, + "auprc": 0.009523809523809525, + "brier": 0.0003528327617743391, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.0006331096369429393, + "calibration_in_the_large": 0.00027987756347066806, + "expected_calibration_error_10bin": 0.00027987756347066806, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "D80": { + "valid": 2832, + "positives": 4, + "negatives": 2828, + "auroc": 0.9798444130127298, + "auprc": 0.04868829087579088, + "brier": 0.001406838042798713, + "calibration": { + "observed_rate": 0.0014124293785310734, + "mean_prediction": 0.0003022762913019345, + "calibration_in_the_large": -0.0011101530872291389, + "expected_calibration_error_10bin": 0.0011101530872291389, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + "D89": { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.6610229276895944, + "auprc": 0.006792005420054201, + "brier": 0.0007220955834166812, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.000267947790567768, + "calibration_in_the_large": -0.00043702224820558414, + "expected_calibration_error_10bin": 0.0005808586663769366, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + "E03": { + "valid": 2480, + "positives": 14, + "negatives": 2466, + "auroc": 0.7304483837330553, + "auprc": 0.09042079930704229, + "brier": 0.005595019777036042, + "calibration": { + "observed_rate": 0.00564516129032258, + "mean_prediction": 0.002264588508061875, + "calibration_in_the_large": -0.0033805727822607055, + "expected_calibration_error_10bin": 0.0033805727822607055, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8723179739711572 + }, + "E04": { + "valid": 2775, + "positives": 6, + "negatives": 2769, + "auroc": 0.7314313229806187, + "auprc": 0.00797619846997411, + "brier": 0.0021556040896222985, + "calibration": { + "observed_rate": 0.002162162162162162, + "mean_prediction": 0.0011974004186016795, + "calibration_in_the_large": -0.0009647617435604827, + "expected_calibration_error_10bin": 0.0009647617435604827, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + "E05": { + "valid": 2806, + "positives": 2, + "negatives": 2804, + "auroc": 0.3223965763195435, + "auprc": 0.0007664728583271245, + "brier": 0.0007127497286689538, + "calibration": { + "observed_rate": 0.0007127583749109052, + "mean_prediction": 0.00037128522915993246, + "calibration_in_the_large": -0.0003414731457509728, + "expected_calibration_error_10bin": 0.0003414731457509728, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "E11": { + "valid": 2194, + "positives": 11, + "negatives": 2183, + "auroc": 0.8067296880856203, + "auprc": 0.017053308192531456, + "brier": 0.004979874582533463, + "calibration": { + "observed_rate": 0.005013673655423883, + "mean_prediction": 0.0022737040443102834, + "calibration_in_the_large": -0.0027399696111136, + "expected_calibration_error_10bin": 0.0027399696111136, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7717200140696447 + }, + "E16": { + "valid": 2816, + "positives": 4, + "negatives": 2812, + "auroc": 0.5615220483641536, + "auprc": 0.0020715191213988467, + "brier": 0.0014252940475296253, + "calibration": { + "observed_rate": 0.0014204545454545455, + "mean_prediction": 0.0012557343527035414, + "calibration_in_the_large": -0.0001647201927510041, + "expected_calibration_error_10bin": 0.0001647201927510041, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "E21": { + "valid": 2814, + "positives": 1, + "negatives": 2813, + "auroc": 0.9761820120867402, + "auprc": 0.014705882352941176, + "brier": 0.0003547637437233386, + "calibration": { + "observed_rate": 0.00035536602700781805, + "mean_prediction": 0.0005710119135268236, + "calibration_in_the_large": 0.00021564588651900554, + "expected_calibration_error_10bin": 0.00021564588651900554, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "E22": { + "valid": 2802, + "positives": 4, + "negatives": 2798, + "auroc": 0.7159578270192996, + "auprc": 0.005841633555439401, + "brier": 0.0014519128989578765, + "calibration": { + "observed_rate": 0.0014275517487508922, + "mean_prediction": 0.0022259973578091182, + "calibration_in_the_large": 0.000798445609058226, + "expected_calibration_error_10bin": 0.000798445609058226, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "E27": { + "valid": 2811, + "positives": 0, + "negatives": 2811, + "auroc": null, + "auprc": null, + "brier": 1.2861466387427855e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0005961696883620599, + "calibration_in_the_large": 0.0005961696883620599, + "expected_calibration_error_10bin": 0.0005961696883620599, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9887442842068238 + }, + "E43": { + "valid": 2748, + "positives": 25, + "negatives": 2723, + "auroc": 0.834241645244216, + "auprc": 0.04781281522192911, + "brier": 0.008887019950326154, + "calibration": { + "observed_rate": 0.009097525473071324, + "mean_prediction": 0.00684869687892635, + "calibration_in_the_large": -0.002248828594144974, + "expected_calibration_error_10bin": 0.0036366064557810792, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9665845937390081 + }, + "E44": { + "valid": 2800, + "positives": 11, + "negatives": 2789, + "auroc": 0.7388115649141106, + "auprc": 0.018841228309316862, + "brier": 0.0038999265619730954, + "calibration": { + "observed_rate": 0.003928571428571429, + "mean_prediction": 0.002772805020688338, + "calibration_in_the_large": -0.001155766407883091, + "expected_calibration_error_10bin": 0.001155766407883091, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + "E46": { + "valid": 2772, + "positives": 23, + "negatives": 2749, + "auroc": 0.8300251474844608, + "auprc": 0.12719762676712867, + "brier": 0.00795465998732311, + "calibration": { + "observed_rate": 0.008297258297258298, + "mean_prediction": 0.00459896795309796, + "calibration_in_the_large": -0.003698290344160338, + "expected_calibration_error_10bin": 0.0036982903441603373, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9750263805838902 + }, + "E53": { + "valid": 2804, + "positives": 3, + "negatives": 2801, + "auroc": 0.6038319647744853, + "auprc": 0.0023077497968025987, + "brier": 0.0010711777037102394, + "calibration": { + "observed_rate": 0.0010699001426533524, + "mean_prediction": 0.0008740918414431362, + "calibration_in_the_large": -0.00019580830121021617, + "expected_calibration_error_10bin": 0.00019580830121021617, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "E55": { + "valid": 2737, + "positives": 11, + "negatives": 2726, + "auroc": 0.5715000333488961, + "auprc": 0.007231890849114988, + "brier": 0.0040140501596279375, + "calibration": { + "observed_rate": 0.00401899890390939, + "mean_prediction": 0.003118230780531264, + "calibration_in_the_large": -0.0009007681233781264, + "expected_calibration_error_10bin": 0.0009007681233781264, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9627154414351038 + }, + "E66": { + "valid": 2371, + "positives": 21, + "negatives": 2350, + "auroc": 0.7665248226950354, + "auprc": 0.028340890462525022, + "brier": 0.008740698508693606, + "calibration": { + "observed_rate": 0.008857022353437369, + "mean_prediction": 0.0059067164944466765, + "calibration_in_the_large": -0.0029503058589906922, + "expected_calibration_error_10bin": 0.0030383055180056673, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8339781920506507 + }, + "E78": { + "valid": 1572, + "positives": 26, + "negatives": 1546, + "auroc": 0.6958403821275749, + "auprc": 0.04866147291396618, + "brier": 0.016184095839388624, + "calibration": { + "observed_rate": 0.01653944020356234, + "mean_prediction": 0.01315591685854583, + "calibration_in_the_large": -0.0033835233450165095, + "expected_calibration_error_10bin": 0.0036140130560590902, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5529370383397819 + }, + "E80": { + "valid": 2823, + "positives": 4, + "negatives": 2819, + "auroc": 0.9513125221709826, + "auprc": 0.017109434109076175, + "brier": 0.0014122272415380297, + "calibration": { + "observed_rate": 0.0014169323414806943, + "mean_prediction": 0.0006582655485649848, + "calibration_in_the_large": -0.0007586667929157095, + "expected_calibration_error_10bin": 0.0007586667929157095, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "E83": { + "valid": 2653, + "positives": 40, + "negatives": 2613, + "auroc": 0.7953501722158438, + "auprc": 0.08800250253689963, + "brier": 0.014401525408588755, + "calibration": { + "observed_rate": 0.015077271013946476, + "mean_prediction": 0.009210431194802386, + "calibration_in_the_large": -0.00586683981914409, + "expected_calibration_error_10bin": 0.00586683981914409, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9331691874780161 + }, + "E86": { + "valid": 2587, + "positives": 42, + "negatives": 2545, + "auroc": 0.809664140705398, + "auprc": 0.06199557639286239, + "brier": 0.0156234943875055, + "calibration": { + "observed_rate": 0.01623502126014689, + "mean_prediction": 0.018102029784869026, + "calibration_in_the_large": 0.0018670085247221371, + "expected_calibration_error_10bin": 0.001867008524722138, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9099542736545903 + }, + "E87": { + "valid": 2185, + "positives": 74, + "negatives": 2111, + "auroc": 0.7928674766666239, + "auprc": 0.12025036400541293, + "brier": 0.031363308181307725, + "calibration": { + "observed_rate": 0.033867276887871854, + "mean_prediction": 0.027439399161567863, + "calibration_in_the_large": -0.006427877726303991, + "expected_calibration_error_10bin": 0.008765723524792055, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.768554344002814 + }, + "E88": { + "valid": 2817, + "positives": 8, + "negatives": 2809, + "auroc": 0.707191171235315, + "auprc": 0.09497495713850229, + "brier": 0.002769476906738695, + "calibration": { + "observed_rate": 0.0028399006034788782, + "mean_prediction": 0.0014529103357210388, + "calibration_in_the_large": -0.0013869902677578394, + "expected_calibration_error_10bin": 0.0013869902677578394, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "E89": { + "valid": 2780, + "positives": 4, + "negatives": 2776, + "auroc": 0.7576548991354467, + "auprc": 0.011894081591012694, + "brier": 0.0014337109452018163, + "calibration": { + "observed_rate": 0.0014388489208633094, + "mean_prediction": 0.00106918041995237, + "calibration_in_the_large": -0.0003696685009109393, + "expected_calibration_error_10bin": 0.0003696685009109393, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + "F02": { + "valid": 2802, + "positives": 1, + "negatives": 2801, + "auroc": 0.5840771153159586, + "auprc": 0.0008576329331046312, + "brier": 0.0003759740390542133, + "calibration": { + "observed_rate": 0.00035688793718772306, + "mean_prediction": 0.0013192796505687285, + "calibration_in_the_large": 0.0009623917133810055, + "expected_calibration_error_10bin": 0.0009623917133810055, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "F03": { + "valid": 2739, + "positives": 10, + "negatives": 2729, + "auroc": 0.8544888237449615, + "auprc": 0.01937979745947423, + "brier": 0.0036312361974578174, + "calibration": { + "observed_rate": 0.0036509675063891934, + "mean_prediction": 0.002594255263474124, + "calibration_in_the_large": -0.0010567122429150692, + "expected_calibration_error_10bin": 0.0010567122429150692, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + "F05": { + "valid": 2750, + "positives": 14, + "negatives": 2736, + "auroc": 0.7210735171261488, + "auprc": 0.011321837062321066, + "brier": 0.005072357438081986, + "calibration": { + "observed_rate": 0.005090909090909091, + "mean_prediction": 0.0037433324287917042, + "calibration_in_the_large": -0.001347576662117387, + "expected_calibration_error_10bin": 0.001347576662117387, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + "F06": { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.48673505482844004, + "auprc": 0.0006887052341597796, + "brier": 0.0003559262284515188, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0008005262587772717, + "calibration_in_the_large": 0.0004469194695269181, + "expected_calibration_error_10bin": 0.0004469194695269181, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "F10": { + "valid": 2560, + "positives": 9, + "negatives": 2551, + "auroc": 0.7768195478897164, + "auprc": 0.16810373189842429, + "brier": 0.0033990403045276187, + "calibration": { + "observed_rate": 0.003515625, + "mean_prediction": 0.00197930983882415, + "calibration_in_the_large": -0.00153631516117585, + "expected_calibration_error_10bin": 0.00153631516117585, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + "F11": { + "valid": 2741, + "positives": 6, + "negatives": 2735, + "auroc": 0.8289457647775746, + "auprc": 0.04710273880669902, + "brier": 0.002152497801365644, + "calibration": { + "observed_rate": 0.0021889821233126595, + "mean_prediction": 0.0015351364069737376, + "calibration_in_the_large": -0.0006538457163389219, + "expected_calibration_error_10bin": 0.0006538457163389219, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + "F12": { + "valid": 2777, + "positives": 10, + "negatives": 2767, + "auroc": 0.9065775207806288, + "auprc": 0.026264255093639943, + "brier": 0.003579364749536018, + "calibration": { + "observed_rate": 0.0036010082823190494, + "mean_prediction": 0.0009118095466490196, + "calibration_in_the_large": -0.0026891987356700295, + "expected_calibration_error_10bin": 0.0026891987356700295, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + "F14": { + "valid": 2787, + "positives": 8, + "negatives": 2779, + "auroc": 0.9196653472472113, + "auprc": 0.03485148272835987, + "brier": 0.002849795085826242, + "calibration": { + "observed_rate": 0.0028704700394689632, + "mean_prediction": 0.0008867239329137964, + "calibration_in_the_large": -0.001983746106555167, + "expected_calibration_error_10bin": 0.001983746106555167, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "F15": { + "valid": 2823, + "positives": 5, + "negatives": 2818, + "auroc": 0.9694819020581973, + "auprc": 0.0671090646836124, + "brier": 0.0017420522159653246, + "calibration": { + "observed_rate": 0.001771165426850868, + "mean_prediction": 0.0006224038237211987, + "calibration_in_the_large": -0.0011487616031296694, + "expected_calibration_error_10bin": 0.0011487616031296694, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "F17": { + "valid": 2426, + "positives": 22, + "negatives": 2404, + "auroc": 0.883621993646952, + "auprc": 0.07643933087814454, + "brier": 0.008805739651096416, + "calibration": { + "observed_rate": 0.009068425391591096, + "mean_prediction": 0.004187473580941327, + "calibration_in_the_large": -0.004880951810649769, + "expected_calibration_error_10bin": 0.005285032034657458, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8533239535701723 + }, + "F19": { + "valid": 2801, + "positives": 8, + "negatives": 2793, + "auroc": 0.9140261367704977, + "auprc": 0.22854556454874875, + "brier": 0.0027153267423538356, + "calibration": { + "observed_rate": 0.002856122813280971, + "mean_prediction": 0.0012355234785049346, + "calibration_in_the_large": -0.0016205993347760367, + "expected_calibration_error_10bin": 0.0016989488317019053, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "F20": { + "valid": 2808, + "positives": 2, + "negatives": 2806, + "auroc": 0.7875980042765502, + "auprc": 0.014751701658517878, + "brier": 0.0007095578694765338, + "calibration": { + "observed_rate": 0.0007122507122507123, + "mean_prediction": 0.00046144074692241094, + "calibration_in_the_large": -0.00025080996532830135, + "expected_calibration_error_10bin": 0.00025080996532830135, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9876890608512136 + }, + "F22": { + "valid": 2821, + "positives": 0, + "negatives": 2821, + "auroc": null, + "auprc": null, + "brier": 8.489083149008608e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0010685841303203535, + "calibration_in_the_large": 0.0010685841303203535, + "expected_calibration_error_10bin": 0.0010685841303203535, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "F25": { + "valid": 2819, + "positives": 2, + "negatives": 2817, + "auroc": 0.9531416400425985, + "auprc": 0.01237806680461129, + "brier": 0.0007100671807422834, + "calibration": { + "observed_rate": 0.000709471443774388, + "mean_prediction": 0.0007024530989532709, + "calibration_in_the_large": -7.018344821117101e-06, + "expected_calibration_error_10bin": 7.018344821117101e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "F29": { + "valid": 2806, + "positives": 6, + "negatives": 2800, + "auroc": 0.7708928571428572, + "auprc": 0.008069969785790691, + "brier": 0.0021357751913277058, + "calibration": { + "observed_rate": 0.0021382751247327157, + "mean_prediction": 0.00045042785737420054, + "calibration_in_the_large": -0.0016878472673585152, + "expected_calibration_error_10bin": 0.0016878472673585152, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "F31": { + "valid": 2724, + "positives": 7, + "negatives": 2717, + "auroc": 0.9116672800883328, + "auprc": 0.033056888554531476, + "brier": 0.0025366037508018323, + "calibration": { + "observed_rate": 0.0025697503671071953, + "mean_prediction": 0.0014669598560214684, + "calibration_in_the_large": -0.0011027905110857269, + "expected_calibration_error_10bin": 0.0011027905110857269, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9581428068941259 + }, + "F32": { + "valid": 2200, + "positives": 36, + "negatives": 2164, + "auroc": 0.7321703635243376, + "auprc": 0.05615331924337436, + "brier": 0.01585590436887657, + "calibration": { + "observed_rate": 0.016363636363636365, + "mean_prediction": 0.013704009499660143, + "calibration_in_the_large": -0.002659626863976222, + "expected_calibration_error_10bin": 0.002659626863976221, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7738304607808653 + }, + "F33": { + "valid": 2800, + "positives": 7, + "negatives": 2793, + "auroc": 0.8112628510050637, + "auprc": 0.015446275815123601, + "brier": 0.002524074859647157, + "calibration": { + "observed_rate": 0.0025, + "mean_prediction": 0.0027645088072495126, + "calibration_in_the_large": 0.00026450880724951257, + "expected_calibration_error_10bin": 0.00026450880724951257, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + "F39": { + "valid": 2801, + "positives": 7, + "negatives": 2794, + "auroc": 0.7411289497903671, + "auprc": 0.020365374791328338, + "brier": 0.002485469798772896, + "calibration": { + "observed_rate": 0.0024991074616208496, + "mean_prediction": 0.0008680422733222781, + "calibration_in_the_large": -0.0016310651882985715, + "expected_calibration_error_10bin": 0.0016310651882985715, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "F41": { + "valid": 2247, + "positives": 43, + "negatives": 2204, + "auroc": 0.743669016165112, + "auprc": 0.06122986512969179, + "brier": 0.018464303769352132, + "calibration": { + "observed_rate": 0.01913662661326213, + "mean_prediction": 0.01783317250067917, + "calibration_in_the_large": -0.0013034541125829593, + "expected_calibration_error_10bin": 0.001860409164418889, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7903622933520928 + }, + "F43": { + "valid": 2734, + "positives": 13, + "negatives": 2721, + "auroc": 0.7988578859582167, + "auprc": 0.033814470139785474, + "brier": 0.004680828909832235, + "calibration": { + "observed_rate": 0.004754937820043892, + "mean_prediction": 0.003652393582186133, + "calibration_in_the_large": -0.001102544237857759, + "expected_calibration_error_10bin": 0.0011854216459031978, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "F60": { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.9391397084962674, + "auprc": 0.048549935716287, + "brier": 0.0017309836550783023, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.0015666432169897883, + "calibration_in_the_large": -0.00020766480288246145, + "expected_calibration_error_10bin": 0.00020766480288246145, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "F90": { + "valid": 2775, + "positives": 5, + "negatives": 2770, + "auroc": 0.9209386281588448, + "auprc": 0.028962161456954006, + "brier": 0.0017799981584100955, + "calibration": { + "observed_rate": 0.0018018018018018018, + "mean_prediction": 0.001294348895680086, + "calibration_in_the_large": -0.0005074529061217159, + "expected_calibration_error_10bin": 0.0005074529061217159, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + "G25": { + "valid": 2774, + "positives": 4, + "negatives": 2770, + "auroc": 0.7056859205776174, + "auprc": 0.004663416189326027, + "brier": 0.001440755171279085, + "calibration": { + "observed_rate": 0.0014419610670511895, + "mean_prediction": 0.00133044661532685, + "calibration_in_the_large": -0.00011151445172433963, + "expected_calibration_error_10bin": 0.00011151445172433963, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "G31": { + "valid": 2802, + "positives": 1, + "negatives": 2801, + "auroc": 0.6683327383077472, + "auprc": 0.001075268817204301, + "brier": 0.0003643019430356472, + "calibration": { + "observed_rate": 0.00035688793718772306, + "mean_prediction": 0.0010899033065303332, + "calibration_in_the_large": 0.0007330153693426102, + "expected_calibration_error_10bin": 0.0007330153693426102, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "G40": { + "valid": 2723, + "positives": 11, + "negatives": 2712, + "auroc": 0.7209707696433361, + "auprc": 0.05046801928122835, + "brier": 0.003972893567122419, + "calibration": { + "observed_rate": 0.004039662137348513, + "mean_prediction": 0.0025711523100035477, + "calibration_in_the_large": -0.0014685098273449653, + "expected_calibration_error_10bin": 0.0016786033183076878, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + "G43": { + "valid": 2725, + "positives": 8, + "negatives": 2717, + "auroc": 0.6630014722119986, + "auprc": 0.0348861094518006, + "brier": 0.002916238851861578, + "calibration": { + "observed_rate": 0.0029357798165137615, + "mean_prediction": 0.0014597285728967842, + "calibration_in_the_large": -0.0014760512436169772, + "expected_calibration_error_10bin": 0.0014760512436169772, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9584945480126627 + }, + "G44": { + "valid": 2805, + "positives": 3, + "negatives": 2802, + "auroc": 0.5973114442065192, + "auprc": 0.01969164307701588, + "brier": 0.0010659183082318076, + "calibration": { + "observed_rate": 0.0010695187165775401, + "mean_prediction": 0.0006433426565543028, + "calibration_in_the_large": -0.00042617606002323736, + "expected_calibration_error_10bin": 0.00042617606002323736, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "G47": { + "valid": 2315, + "positives": 47, + "negatives": 2268, + "auroc": 0.7040977147360126, + "auprc": 0.04600121307611309, + "brier": 0.019700261726633306, + "calibration": { + "observed_rate": 0.020302375809935207, + "mean_prediction": 0.01713905855754318, + "calibration_in_the_large": -0.0031633172523920262, + "expected_calibration_error_10bin": 0.0034698187091717686, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8142806894125924 + }, + "G51": { + "valid": 2834, + "positives": 0, + "negatives": 2834, + "auroc": null, + "auprc": null, + "brier": 8.651438179669715e-08, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.000235711928228494, + "calibration_in_the_large": 0.000235711928228494, + "expected_calibration_error_10bin": 0.000235711928228494, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9968343299331692 + }, + "G62": { + "valid": 2751, + "positives": 20, + "negatives": 2731, + "auroc": 0.8561515928231417, + "auprc": 0.10260620216467845, + "brier": 0.006933933410937053, + "calibration": { + "observed_rate": 0.007270083605961469, + "mean_prediction": 0.0037675121066045414, + "calibration_in_the_large": -0.0035025714993569272, + "expected_calibration_error_10bin": 0.004006559331584057, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "G81": { + "valid": 2789, + "positives": 10, + "negatives": 2779, + "auroc": 0.7265563152213026, + "auprc": 0.04478831506160221, + "brier": 0.003548057761567243, + "calibration": { + "observed_rate": 0.0035855145213338113, + "mean_prediction": 0.0017169151742707765, + "calibration_in_the_large": -0.0018685993470630349, + "expected_calibration_error_10bin": 0.0018685993470630349, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "G83": { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.6565047855370436, + "auprc": 0.004738924787758211, + "brier": 0.0010613126198776568, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.000681584109266622, + "calibration_in_the_large": -0.00038073883690901554, + "expected_calibration_error_10bin": 0.00038073883690901554, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "G89": { + "valid": 2537, + "positives": 29, + "negatives": 2508, + "auroc": 0.7854451960622559, + "auprc": 0.05059430789868182, + "brier": 0.011117267084860867, + "calibration": { + "observed_rate": 0.011430823807646828, + "mean_prediction": 0.009068907580275003, + "calibration_in_the_large": -0.002361916227371825, + "expected_calibration_error_10bin": 0.0025905755678867055, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8923672177277524 + }, + "G90": { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 1.9151659316969706e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0007305980910523718, + "calibration_in_the_large": 0.0007305980910523718, + "expected_calibration_error_10bin": 0.0007305980910523718, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "G92": { + "valid": 2733, + "positives": 19, + "negatives": 2714, + "auroc": 0.809215374471551, + "auprc": 0.021380931743491538, + "brier": 0.006865993114646345, + "calibration": { + "observed_rate": 0.006952067325283571, + "mean_prediction": 0.00593456707299755, + "calibration_in_the_large": -0.0010175002522860212, + "expected_calibration_error_10bin": 0.0010175002522860212, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + "G93": { + "valid": 2656, + "positives": 26, + "negatives": 2630, + "auroc": 0.7852149751389295, + "auprc": 0.03272819537857137, + "brier": 0.009599235604230713, + "calibration": { + "observed_rate": 0.009789156626506024, + "mean_prediction": 0.0071285863337699, + "calibration_in_the_large": -0.0026605702927361245, + "expected_calibration_error_10bin": 0.0026605702927361245, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9342244108336265 + }, + "G99": { + "valid": 2841, + "positives": 0, + "negatives": 2841, + "auroc": null, + "auprc": null, + "brier": 5.105120246130131e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00021833004042359931, + "calibration_in_the_large": 0.00021833004042359931, + "expected_calibration_error_10bin": 0.00021833004042359931, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9992965177629265 + }, + "H10": { + "valid": 2832, + "positives": 3, + "negatives": 2829, + "auroc": 0.8956050430069518, + "auprc": 0.007961713201887875, + "brier": 0.0010569999376172008, + "calibration": { + "observed_rate": 0.001059322033898305, + "mean_prediction": 0.0004303275762737418, + "calibration_in_the_large": -0.0006289944576245633, + "expected_calibration_error_10bin": 0.0006289944576245633, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + "H26": { + "valid": 2819, + "positives": 0, + "negatives": 2819, + "auroc": null, + "auprc": null, + "brier": 3.0508694543756255e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.000897229245706205, + "calibration_in_the_large": 0.000897229245706205, + "expected_calibration_error_10bin": 0.000897229245706205, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "H35": { + "valid": 2806, + "positives": 4, + "negatives": 2802, + "auroc": 0.6283012134189865, + "auprc": 0.002588984503269551, + "brier": 0.0014250739654503004, + "calibration": { + "observed_rate": 0.0014255167498218105, + "mean_prediction": 0.0006237363037652502, + "calibration_in_the_large": -0.0008017804460565603, + "expected_calibration_error_10bin": 0.0008017804460565603, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "H40": { + "valid": 2750, + "positives": 5, + "negatives": 2745, + "auroc": 0.7548998178506375, + "auprc": 0.07933105367956275, + "brier": 0.0017957242426044418, + "calibration": { + "observed_rate": 0.0018181818181818182, + "mean_prediction": 0.0019620362890147426, + "calibration_in_the_large": 0.00014385447083292442, + "expected_calibration_error_10bin": 0.00014385447083292442, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + "H53": { + "valid": 2790, + "positives": 7, + "negatives": 2783, + "auroc": 0.6003798572968534, + "auprc": 0.01489167724483165, + "brier": 0.00249731558430792, + "calibration": { + "observed_rate": 0.0025089605734767025, + "mean_prediction": 0.002550745270291959, + "calibration_in_the_large": 4.178469681525654e-05, + "expected_calibration_error_10bin": 4.178469681525654e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + "H54": { + "valid": 2809, + "positives": 2, + "negatives": 2807, + "auroc": 0.44389027431421446, + "auprc": 0.000963253044464113, + "brier": 0.0007128386832519973, + "calibration": { + "observed_rate": 0.000711997152011392, + "mean_prediction": 0.0006216428970496722, + "calibration_in_the_large": -9.035425496171977e-05, + "expected_calibration_error_10bin": 9.035425496171977e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "H91": { + "valid": 2791, + "positives": 5, + "negatives": 2786, + "auroc": 0.8119167264895908, + "auprc": 0.016863518211139527, + "brier": 0.0017833539137140327, + "calibration": { + "observed_rate": 0.0017914725904693658, + "mean_prediction": 0.0009531794358962841, + "calibration_in_the_large": -0.0008382931545730817, + "expected_calibration_error_10bin": 0.0008382931545730817, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9817094618360886 + }, + "I07": { + "valid": 2823, + "positives": 2, + "negatives": 2821, + "auroc": 0.6912442396313364, + "auprc": 0.0016707005512975662, + "brier": 0.0007089964813304049, + "calibration": { + "observed_rate": 0.0007084661707403471, + "mean_prediction": 0.0004498683240858205, + "calibration_in_the_large": -0.00025859784665452666, + "expected_calibration_error_10bin": 0.00025859784665452666, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "I08": { + "valid": 2767, + "positives": 5, + "negatives": 2762, + "auroc": 0.753222302679218, + "auprc": 0.005385705253233587, + "brier": 0.0018469949939362276, + "calibration": { + "observed_rate": 0.0018070112034694614, + "mean_prediction": 0.002566412165151797, + "calibration_in_the_large": 0.0007594009616823355, + "expected_calibration_error_10bin": 0.0007594009616823354, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9732676749912065 + }, + "I10": { + "valid": 1498, + "positives": 24, + "negatives": 1474, + "auroc": 0.6287878787878788, + "auprc": 0.030768489711400764, + "brier": 0.015764980869379823, + "calibration": { + "observed_rate": 0.01602136181575434, + "mean_prediction": 0.0119582429887352, + "calibration_in_the_large": -0.00406311882701914, + "expected_calibration_error_10bin": 0.00421290174812838, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5269081955680619 + }, + "I11": { + "valid": 2676, + "positives": 22, + "negatives": 2654, + "auroc": 0.8347263136260875, + "auprc": 0.0585831027799329, + "brier": 0.008036037400656292, + "calibration": { + "observed_rate": 0.008221225710014948, + "mean_prediction": 0.006963269930763535, + "calibration_in_the_large": -0.0012579557792514132, + "expected_calibration_error_10bin": 0.001257955779251413, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9412592332043616 + }, + "I12": { + "valid": 2552, + "positives": 11, + "negatives": 2541, + "auroc": 0.8642982361990627, + "auprc": 0.06037226708569377, + "brier": 0.004210151684646852, + "calibration": { + "observed_rate": 0.004310344827586207, + "mean_prediction": 0.004412850596958133, + "calibration_in_the_large": 0.00010250576937192654, + "expected_calibration_error_10bin": 0.0005478829068458041, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8976433345058037 + }, + "I13": { + "valid": 2727, + "positives": 11, + "negatives": 2716, + "auroc": 0.8869326549738921, + "auprc": 0.03801735733274027, + "brier": 0.004102540296154246, + "calibration": { + "observed_rate": 0.004033736707004034, + "mean_prediction": 0.006060387939590952, + "calibration_in_the_large": 0.0020266512325869184, + "expected_calibration_error_10bin": 0.002026651232586919, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9591980302497362 + }, + "I16": { + "valid": 2390, + "positives": 4, + "negatives": 2386, + "auroc": 0.8735331098072087, + "auprc": 0.020365242374228255, + "brier": 0.0016621411869328982, + "calibration": { + "observed_rate": 0.0016736401673640166, + "mean_prediction": 0.001328241496845336, + "calibration_in_the_large": -0.00034539867051868074, + "expected_calibration_error_10bin": 0.00034539867051868074, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8406612733028491 + }, + "I21": { + "valid": 2671, + "positives": 8, + "negatives": 2663, + "auroc": 0.9067780698460383, + "auprc": 0.018108053109511694, + "brier": 0.0030234072898071085, + "calibration": { + "observed_rate": 0.002995132909022838, + "mean_prediction": 0.006966521514583783, + "calibration_in_the_large": 0.003971388605560945, + "expected_calibration_error_10bin": 0.003971388605560945, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + "I24": { + "valid": 2809, + "positives": 3, + "negatives": 2806, + "auroc": 0.959847944880019, + "auprc": 0.02226756087050205, + "brier": 0.0010585628226099776, + "calibration": { + "observed_rate": 0.001067995728017088, + "mean_prediction": 0.0014183497363403172, + "calibration_in_the_large": 0.00035035400832322925, + "expected_calibration_error_10bin": 0.00035035400832322925, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "I25": { + "valid": 2243, + "positives": 24, + "negatives": 2219, + "auroc": 0.8316058284512543, + "auprc": 0.05507147935084549, + "brier": 0.010414394625452584, + "calibration": { + "observed_rate": 0.01069995541685243, + "mean_prediction": 0.006417574013838951, + "calibration_in_the_large": -0.0042823814030134785, + "expected_calibration_error_10bin": 0.0042823814030134785, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7889553288779458 + }, + "I26": { + "valid": 2760, + "positives": 11, + "negatives": 2749, + "auroc": 0.8203313601640266, + "auprc": 0.07473058080602081, + "brier": 0.0038574000918342585, + "calibration": { + "observed_rate": 0.003985507246376811, + "mean_prediction": 0.005399321791598292, + "calibration_in_the_large": 0.0014138145452214802, + "expected_calibration_error_10bin": 0.0014138145452214808, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9708054871614492 + }, + "I27": { + "valid": 2716, + "positives": 15, + "negatives": 2701, + "auroc": 0.8198691842527459, + "auprc": 0.02136983043024178, + "brier": 0.005486386883486106, + "calibration": { + "observed_rate": 0.005522827687776142, + "mean_prediction": 0.004154507444475133, + "calibration_in_the_large": -0.0013683202433010088, + "expected_calibration_error_10bin": 0.0014497632146376564, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + "I31": { + "valid": 2793, + "positives": 9, + "negatives": 2784, + "auroc": 0.778176883780332, + "auprc": 0.011062606663195761, + "brier": 0.003208779188044818, + "calibration": { + "observed_rate": 0.00322234156820623, + "mean_prediction": 0.00220910736495631, + "calibration_in_the_large": -0.00101323420324992, + "expected_calibration_error_10bin": 0.00101323420324992, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "I34": { + "valid": 2753, + "positives": 10, + "negatives": 2743, + "auroc": 0.7209624498724024, + "auprc": 0.008466259588801511, + "brier": 0.00365602280509404, + "calibration": { + "observed_rate": 0.003632401017072285, + "mean_prediction": 0.0031475093588009405, + "calibration_in_the_large": -0.00048489165827134443, + "expected_calibration_error_10bin": 0.00048489165827134443, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9683432993316918 + }, + "I35": { + "valid": 2723, + "positives": 5, + "negatives": 2718, + "auroc": 0.6683590875643856, + "auprc": 0.006817466429510645, + "brier": 0.0018394664923862484, + "calibration": { + "observed_rate": 0.001836210062431142, + "mean_prediction": 0.0018969258115698823, + "calibration_in_the_large": 6.071574913874022e-05, + "expected_calibration_error_10bin": 6.071574913874022e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + "I42": { + "valid": 2740, + "positives": 4, + "negatives": 2736, + "auroc": 0.9594298245614035, + "auprc": 0.03053431721194879, + "brier": 0.0014425827843085675, + "calibration": { + "observed_rate": 0.00145985401459854, + "mean_prediction": 0.002217733961731068, + "calibration_in_the_large": 0.0007578799471325279, + "expected_calibration_error_10bin": 0.0007578799471325279, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + "I44": { + "valid": 2722, + "positives": 10, + "negatives": 2712, + "auroc": 0.8571165191740413, + "auprc": 0.047171639832722795, + "brier": 0.0035991160024214266, + "calibration": { + "observed_rate": 0.0036737692872887582, + "mean_prediction": 0.002962943950456416, + "calibration_in_the_large": -0.0007108253368323424, + "expected_calibration_error_10bin": 0.0007108253368323424, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9574393246570524 + }, + "I45": { + "valid": 2766, + "positives": 7, + "negatives": 2759, + "auroc": 0.6688241081137057, + "auprc": 0.004386568369878787, + "brier": 0.002532572158096545, + "calibration": { + "observed_rate": 0.0025307302964569776, + "mean_prediction": 0.0029939116586769686, + "calibration_in_the_large": 0.000463181362219991, + "expected_calibration_error_10bin": 0.000463181362219991, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9729159338726697 + }, + "I46": { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.7021201413427561, + "auprc": 0.001184834123222749, + "brier": 0.00035371991594993217, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.0005052460480086298, + "calibration_in_the_large": 0.00015201397453635856, + "expected_calibration_error_10bin": 0.00015201397453635856, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "I47": { + "valid": 2716, + "positives": 7, + "negatives": 2709, + "auroc": 0.6120866951431736, + "auprc": 0.004151260960171489, + "brier": 0.00259812872737344, + "calibration": { + "observed_rate": 0.002577319587628866, + "mean_prediction": 0.004593503800682763, + "calibration_in_the_large": 0.002016184213053897, + "expected_calibration_error_10bin": 0.002016184213053897, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + "I48": { + "valid": 2385, + "positives": 15, + "negatives": 2370, + "auroc": 0.7776933895921238, + "auprc": 0.02030035714335198, + "brier": 0.006388753334674647, + "calibration": { + "observed_rate": 0.006289308176100629, + "mean_prediction": 0.009512366668222662, + "calibration_in_the_large": 0.0032230584921220332, + "expected_calibration_error_10bin": 0.0032230584921220332, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8389025677101654 + }, + "I49": { + "valid": 2734, + "positives": 6, + "negatives": 2728, + "auroc": 0.7244623655913979, + "auprc": 0.006723906630236111, + "brier": 0.0021913957608037473, + "calibration": { + "observed_rate": 0.0021945866861741038, + "mean_prediction": 0.0022948792208915417, + "calibration_in_the_large": 0.00010029253471743795, + "expected_calibration_error_10bin": 0.00010029253471743795, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "I50": { + "valid": 2415, + "positives": 25, + "negatives": 2390, + "auroc": 0.8360669456066946, + "auprc": 0.048304406206175356, + "brier": 0.010219438384628937, + "calibration": { + "observed_rate": 0.010351966873706004, + "mean_prediction": 0.00985214201591777, + "calibration_in_the_large": -0.000499824857788234, + "expected_calibration_error_10bin": 0.0028620788359271106, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.849454801266268 + }, + "I51": { + "valid": 2807, + "positives": 5, + "negatives": 2802, + "auroc": 0.8017844396859386, + "auprc": 0.010376396636897068, + "brier": 0.0017744651845094887, + "calibration": { + "observed_rate": 0.0017812611328820805, + "mean_prediction": 0.0012860798722579313, + "calibration_in_the_large": -0.0004951812606241491, + "expected_calibration_error_10bin": 0.0004951812606241491, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "I61": { + "valid": 2802, + "positives": 4, + "negatives": 2798, + "auroc": 0.8661543959971408, + "auprc": 0.013260131512665536, + "brier": 0.0014215958644269748, + "calibration": { + "observed_rate": 0.0014275517487508922, + "mean_prediction": 0.0008987828906081374, + "calibration_in_the_large": -0.0005287688581427549, + "expected_calibration_error_10bin": 0.0005287688581427549, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "I63": { + "valid": 2735, + "positives": 8, + "negatives": 2727, + "auroc": 0.7508250825082509, + "auprc": 0.018269519739497503, + "brier": 0.0029095047161065432, + "calibration": { + "observed_rate": 0.0029250457038391227, + "mean_prediction": 0.0026855190962943453, + "calibration_in_the_large": -0.0002395266075447774, + "expected_calibration_error_10bin": 0.0002395266075447774, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9620119591980303 + }, + "I65": { + "valid": 2774, + "positives": 2, + "negatives": 2772, + "auroc": 0.601010101010101, + "auprc": 0.0018211120514603813, + "brier": 0.000730822157916741, + "calibration": { + "observed_rate": 0.0007209805335255948, + "mean_prediction": 0.0020058576103454775, + "calibration_in_the_large": 0.0012848770768198827, + "expected_calibration_error_10bin": 0.0012848770768198827, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "I67": { + "valid": 2773, + "positives": 2, + "negatives": 2771, + "auroc": 0.9133886683507759, + "auprc": 0.006046863189720333, + "brier": 0.0007254994157115573, + "calibration": { + "observed_rate": 0.000721240533717995, + "mean_prediction": 0.0014984070440526493, + "calibration_in_the_large": 0.0007771665103346543, + "expected_calibration_error_10bin": 0.0007771665103346543, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + "I69": { + "valid": 2752, + "positives": 12, + "negatives": 2740, + "auroc": 0.7299574209245742, + "auprc": 0.0239949027286208, + "brier": 0.0043304745357911, + "calibration": { + "observed_rate": 0.00436046511627907, + "mean_prediction": 0.00343822985743317, + "calibration_in_the_large": -0.0009222352588458996, + "expected_calibration_error_10bin": 0.0009959661069690675, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9679915582131551 + }, + "I70": { + "valid": 2771, + "positives": 5, + "negatives": 2766, + "auroc": 0.8428778018799711, + "auprc": 0.02327580820703746, + "brier": 0.0017934067934472554, + "calibration": { + "observed_rate": 0.001804402742692169, + "mean_prediction": 0.0019629912758269592, + "calibration_in_the_large": 0.0001585885331347903, + "expected_calibration_error_10bin": 0.0001585885331347903, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9746746394653535 + }, + "I71": { + "valid": 2769, + "positives": 3, + "negatives": 2766, + "auroc": 0.6994456495541094, + "auprc": 0.018783279077396724, + "brier": 0.0010815330799818143, + "calibration": { + "observed_rate": 0.0010834236186348862, + "mean_prediction": 0.0017426003473848901, + "calibration_in_the_large": 0.000659176728750004, + "expected_calibration_error_10bin": 0.000659176728750004, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.97397115722828 + }, + "I72": { + "valid": 2818, + "positives": 3, + "negatives": 2815, + "auroc": 0.7002960331557134, + "auprc": 0.007147048414550257, + "brier": 0.0010624660439533277, + "calibration": { + "observed_rate": 0.0010645848119233499, + "mean_prediction": 0.0009511172561820089, + "calibration_in_the_large": -0.00011346755574134098, + "expected_calibration_error_10bin": 0.00011346755574134098, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "I73": { + "valid": 2734, + "positives": 3, + "negatives": 2731, + "auroc": 0.6843647015745148, + "auprc": 0.011647623743315369, + "brier": 0.0011346087608299805, + "calibration": { + "observed_rate": 0.0010972933430870519, + "mean_prediction": 0.002802970674252552, + "calibration_in_the_large": 0.0017056773311655, + "expected_calibration_error_10bin": 0.0017056773311655, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "I74": { + "valid": 2821, + "positives": 4, + "negatives": 2817, + "auroc": 0.7176961306354278, + "auprc": 0.006490497483387215, + "brier": 0.001415436680546498, + "calibration": { + "observed_rate": 0.0014179369018078695, + "mean_prediction": 0.0005624558721430856, + "calibration_in_the_large": -0.0008554810296647839, + "expected_calibration_error_10bin": 0.0008554810296647839, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "I77": { + "valid": 2785, + "positives": 3, + "negatives": 2782, + "auroc": 0.5745267193865324, + "auprc": 0.004617258209235259, + "brier": 0.0010783914722086274, + "calibration": { + "observed_rate": 0.0010771992818671453, + "mean_prediction": 0.0014970027737486373, + "calibration_in_the_large": 0.000419803491881492, + "expected_calibration_error_10bin": 0.000419803491881492, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "I80": { + "valid": 2827, + "positives": 2, + "negatives": 2825, + "auroc": 0.8515044247787611, + "auprc": 0.0034994361232481568, + "brier": 0.0007081902577427976, + "calibration": { + "observed_rate": 0.0007074637424831977, + "mean_prediction": 0.0004737347168842395, + "calibration_in_the_large": -0.00023372902559895824, + "expected_calibration_error_10bin": 0.00023372902559895824, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "I81": { + "valid": 2826, + "positives": 5, + "negatives": 2821, + "auroc": 0.8949308755760369, + "auprc": 0.018433304636431745, + "brier": 0.0017730409480338745, + "calibration": { + "observed_rate": 0.0017692852087756545, + "mean_prediction": 0.0008414916524829381, + "calibration_in_the_large": -0.0009277935562927164, + "expected_calibration_error_10bin": 0.0009277935562927164, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "I82": { + "valid": 2739, + "positives": 18, + "negatives": 2721, + "auroc": 0.7487034995304014, + "auprc": 0.036602259916723966, + "brier": 0.006454503752346641, + "calibration": { + "observed_rate": 0.0065717415115005475, + "mean_prediction": 0.004696242792488591, + "calibration_in_the_large": -0.0018754987190119565, + "expected_calibration_error_10bin": 0.0018754987190119565, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + "I85": { + "valid": 2793, + "positives": 4, + "negatives": 2789, + "auroc": 0.9953388311222661, + "auprc": 0.40058479532163743, + "brier": 0.0012455596911520401, + "calibration": { + "observed_rate": 0.0014321518080916578, + "mean_prediction": 0.0007256541013144872, + "calibration_in_the_large": -0.0007064977067771706, + "expected_calibration_error_10bin": 0.0007064977067771706, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "I87": { + "valid": 2780, + "positives": 10, + "negatives": 2770, + "auroc": 0.6855595667870036, + "auprc": 0.009912609903640065, + "brier": 0.0035854008175259387, + "calibration": { + "observed_rate": 0.0035971223021582736, + "mean_prediction": 0.0013086811338490184, + "calibration_in_the_large": -0.002288441168309255, + "expected_calibration_error_10bin": 0.002288441168309255, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + "I89": { + "valid": 2826, + "positives": 4, + "negatives": 2822, + "auroc": 0.8670269312544295, + "auprc": 0.006835545164441103, + "brier": 0.0014130248456320868, + "calibration": { + "observed_rate": 0.0014154281670205238, + "mean_prediction": 0.00044083236489471703, + "calibration_in_the_large": -0.0009745958021258067, + "expected_calibration_error_10bin": 0.0009745958021258067, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "I95": { + "valid": 2485, + "positives": 41, + "negatives": 2444, + "auroc": 0.7201309328968903, + "auprc": 0.035849381936111265, + "brier": 0.016131883656588547, + "calibration": { + "observed_rate": 0.016498993963782696, + "mean_prediction": 0.018163632353420146, + "calibration_in_the_large": 0.0016646383896374503, + "expected_calibration_error_10bin": 0.001664638389637449, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.874076679563841 + }, + "I96": { + "valid": 2831, + "positives": 3, + "negatives": 2828, + "auroc": 0.9532060348892032, + "auprc": 0.3506350757205667, + "brier": 0.0010414515286291679, + "calibration": { + "observed_rate": 0.0010596962204168139, + "mean_prediction": 0.0007320368363917797, + "calibration_in_the_large": -0.0003276593840250342, + "expected_calibration_error_10bin": 0.0003276593840250342, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "I97": { + "valid": 2740, + "positives": 7, + "negatives": 2733, + "auroc": 0.7819246249542627, + "auprc": 0.01219559551913729, + "brier": 0.0025431393241635725, + "calibration": { + "observed_rate": 0.0025547445255474453, + "mean_prediction": 0.0023010222361282656, + "calibration_in_the_large": -0.00025372228941917966, + "expected_calibration_error_10bin": 0.00025372228941917966, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + "J02": { + "valid": 2825, + "positives": 1, + "negatives": 2824, + "auroc": 0.7223796033994334, + "auprc": 0.0012738853503184713, + "brier": 0.00035855634937820215, + "calibration": { + "observed_rate": 0.00035398230088495576, + "mean_prediction": 0.0007738523771978639, + "calibration_in_the_large": 0.0004198700763129081, + "expected_calibration_error_10bin": 0.0004198700763129081, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J06": { + "valid": 2816, + "positives": 3, + "negatives": 2813, + "auroc": 0.5081170754828771, + "auprc": 0.0014718952347755499, + "brier": 0.0010878643625905748, + "calibration": { + "observed_rate": 0.001065340909090909, + "mean_prediction": 0.0016718949925017444, + "calibration_in_the_large": 0.0006065540834108353, + "expected_calibration_error_10bin": 0.0006065540834108353, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "J12": { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 1.3320752714292828e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0013389249796106895, + "calibration_in_the_large": 0.0013389249796106895, + "expected_calibration_error_10bin": 0.0013389249796106895, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J15": { + "valid": 2795, + "positives": 7, + "negatives": 2788, + "auroc": 0.6305595408895266, + "auprc": 0.00729163671244151, + "brier": 0.00250305194648224, + "calibration": { + "observed_rate": 0.0025044722719141325, + "mean_prediction": 0.0016320224050209967, + "calibration_in_the_large": -0.0008724498668931358, + "expected_calibration_error_10bin": 0.0008724498668931358, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9831164263102357 + }, + "J18": { + "valid": 2671, + "positives": 22, + "negatives": 2649, + "auroc": 0.8169806788153334, + "auprc": 0.04187671989878536, + "brier": 0.008062771309727393, + "calibration": { + "observed_rate": 0.008236615499812805, + "mean_prediction": 0.006938476068947115, + "calibration_in_the_large": -0.0012981394308656897, + "expected_calibration_error_10bin": 0.0016548631320920926, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + "J30": { + "valid": 2815, + "positives": 3, + "negatives": 2812, + "auroc": 0.7479848269321954, + "auprc": 0.0192432513469073, + "brier": 0.0010614740817706996, + "calibration": { + "observed_rate": 0.0010657193605683837, + "mean_prediction": 0.0006883937415110028, + "calibration_in_the_large": -0.00037732561905738085, + "expected_calibration_error_10bin": 0.00037732561905738085, + "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.0003552421302141758, + "calibration": { + "observed_rate": 0.0003534817956875221, + "mean_prediction": 0.0005488188893407613, + "calibration_in_the_large": 0.00019533709365323915, + "expected_calibration_error_10bin": 0.00019533709365323915, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J38": { + "valid": 2825, + "positives": 1, + "negatives": 2824, + "auroc": 0.6317280453257791, + "auprc": 0.0009606147934678194, + "brier": 0.0003557355580518361, + "calibration": { + "observed_rate": 0.00035398230088495576, + "mean_prediction": 0.0008048958283117537, + "calibration_in_the_large": 0.000450913527426798, + "expected_calibration_error_10bin": 0.000450913527426798, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J43": { + "valid": 2804, + "positives": 4, + "negatives": 2800, + "auroc": 0.5933035714285714, + "auprc": 0.011987697153280632, + "brier": 0.0014230903144864715, + "calibration": { + "observed_rate": 0.0014265335235378032, + "mean_prediction": 0.0013766010927570012, + "calibration_in_the_large": -4.993243078080202e-05, + "expected_calibration_error_10bin": 4.993243078080202e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "J44": { + "valid": 2570, + "positives": 14, + "negatives": 2556, + "auroc": 0.8362676056338029, + "auprc": 0.02536657848806592, + "brier": 0.005388256001111917, + "calibration": { + "observed_rate": 0.005447470817120622, + "mean_prediction": 0.00380400378306747, + "calibration_in_the_large": -0.0016434670340531522, + "expected_calibration_error_10bin": 0.0017707373067867888, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9039746746394653 + }, + "J45": { + "valid": 2518, + "positives": 17, + "negatives": 2501, + "auroc": 0.6823388291742126, + "auprc": 0.016299013835268404, + "brier": 0.0067145061904186395, + "calibration": { + "observed_rate": 0.006751389992057188, + "mean_prediction": 0.003519890920740208, + "calibration_in_the_large": -0.00323149907131698, + "expected_calibration_error_10bin": 0.003329525135234533, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.885684136475554 + }, + "J47": { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.6783563584838824, + "auprc": 0.0019960513684363058, + "brier": 0.0007079198374789636, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.00028522569575966793, + "calibration_in_the_large": -0.0004227389060102436, + "expected_calibration_error_10bin": 0.0004227389060102436, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J69": { + "valid": 2777, + "positives": 19, + "negatives": 2758, + "auroc": 0.766898209991985, + "auprc": 0.02697552327094787, + "brier": 0.006758805226197349, + "calibration": { + "observed_rate": 0.0068419157364061935, + "mean_prediction": 0.003165641002154175, + "calibration_in_the_large": -0.0036762747342520183, + "expected_calibration_error_10bin": 0.0036762747342520183, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + "J81": { + "valid": 2781, + "positives": 11, + "negatives": 2770, + "auroc": 0.7964227108631441, + "auprc": 0.061872614969394564, + "brier": 0.003894350543485598, + "calibration": { + "observed_rate": 0.003955411722402014, + "mean_prediction": 0.002430916307577949, + "calibration_in_the_large": -0.0015244954148240647, + "expected_calibration_error_10bin": 0.0015244954148240647, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + "J84": { + "valid": 2817, + "positives": 5, + "negatives": 2812, + "auroc": 0.8815078236130868, + "auprc": 0.010807441797626329, + "brier": 0.001767549227328028, + "calibration": { + "observed_rate": 0.001774937877174299, + "mean_prediction": 0.0009531317565366357, + "calibration_in_the_large": -0.0008218061206376633, + "expected_calibration_error_10bin": 0.0008218061206376633, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "J90": { + "valid": 2754, + "positives": 20, + "negatives": 2734, + "auroc": 0.6428493050475493, + "auprc": 0.0121281735088213, + "brier": 0.007240856170424701, + "calibration": { + "observed_rate": 0.007262164124909223, + "mean_prediction": 0.004419857358432362, + "calibration_in_the_large": -0.0028423067664768613, + "expected_calibration_error_10bin": 0.0028423067664768613, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9686950404502286 + }, + "J91": { + "valid": 2807, + "positives": 5, + "negatives": 2802, + "auroc": 0.7546038543897217, + "auprc": 0.016742552769206467, + "brier": 0.001785142896500347, + "calibration": { + "observed_rate": 0.0017812611328820805, + "mean_prediction": 0.002174306522624866, + "calibration_in_the_large": 0.00039304538974278564, + "expected_calibration_error_10bin": 0.00039304538974278564, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "J94": { + "valid": 2829, + "positives": 5, + "negatives": 2824, + "auroc": 0.6457507082152975, + "auprc": 0.01025509012344356, + "brier": 0.001765738767137371, + "calibration": { + "observed_rate": 0.0017674089784376105, + "mean_prediction": 0.00024283827409129295, + "calibration_in_the_large": -0.0015245707043463176, + "expected_calibration_error_10bin": 0.0015245707043463176, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J95": { + "valid": 2770, + "positives": 11, + "negatives": 2759, + "auroc": 0.8042769119246104, + "auprc": 0.017725136425632195, + "brier": 0.003941813406860133, + "calibration": { + "observed_rate": 0.003971119133574007, + "mean_prediction": 0.001860958046976166, + "calibration_in_the_large": -0.002110161086597841, + "expected_calibration_error_10bin": 0.002110161086597841, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9743228983468167 + }, + "J96": { + "valid": 2605, + "positives": 36, + "negatives": 2569, + "auroc": 0.8505038709398383, + "auprc": 0.10104908609895608, + "brier": 0.013154090743396882, + "calibration": { + "observed_rate": 0.01381957773512476, + "mean_prediction": 0.009440951460343345, + "calibration_in_the_large": -0.004378626274781415, + "expected_calibration_error_10bin": 0.004378626274781415, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9162856137882518 + }, + "J98": { + "valid": 2692, + "positives": 16, + "negatives": 2676, + "auroc": 0.6918675261584455, + "auprc": 0.01963789627625709, + "brier": 0.00589303522260946, + "calibration": { + "observed_rate": 0.005943536404160475, + "mean_prediction": 0.004169600171873353, + "calibration_in_the_large": -0.001773936232287122, + "expected_calibration_error_10bin": 0.001773936232287122, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9468870911009497 + }, + "K04": { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 2.2528341754431626e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00021377898814145676, + "calibration_in_the_large": 0.00021377898814145676, + "expected_calibration_error_10bin": 0.00021377898814145676, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "K12": { + "valid": 2824, + "positives": 5, + "negatives": 2819, + "auroc": 0.88698119900674, + "auprc": 0.06907273569990455, + "brier": 0.0018540613207349832, + "calibration": { + "observed_rate": 0.0017705382436260624, + "mean_prediction": 0.002017518288696581, + "calibration_in_the_large": 0.00024698004507051844, + "expected_calibration_error_10bin": 0.0013439512259080877, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "K20": { + "valid": 2813, + "positives": 4, + "negatives": 2809, + "auroc": 0.6031505873976504, + "auprc": 0.018189051728500834, + "brier": 0.001435768471505263, + "calibration": { + "observed_rate": 0.0014219694276573053, + "mean_prediction": 0.002066301905360655, + "calibration_in_the_large": 0.0006443324777033496, + "expected_calibration_error_10bin": 0.0006443324777033494, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K21": { + "valid": 2043, + "positives": 44, + "negatives": 1999, + "auroc": 0.7572081495293101, + "auprc": 0.10318184883556601, + "brier": 0.020517034039250915, + "calibration": { + "observed_rate": 0.021536955457660302, + "mean_prediction": 0.01703070105201981, + "calibration_in_the_large": -0.004506254405640491, + "expected_calibration_error_10bin": 0.004506254405640495, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7186071051705945 + }, + "K22": { + "valid": 2764, + "positives": 8, + "negatives": 2756, + "auroc": 0.8065130624092888, + "auprc": 0.03521941800802731, + "brier": 0.002872454165250914, + "calibration": { + "observed_rate": 0.002894356005788712, + "mean_prediction": 0.0015096582531681074, + "calibration_in_the_large": -0.0013846977526206043, + "expected_calibration_error_10bin": 0.0013846977526206043, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9722124516355962 + }, + "K25": { + "valid": 2817, + "positives": 3, + "negatives": 2814, + "auroc": 0.7672352523098792, + "auprc": 0.0030390774717026004, + "brier": 0.0010672867180974506, + "calibration": { + "observed_rate": 0.0010649627263045794, + "mean_prediction": 0.000808336527727518, + "calibration_in_the_large": -0.0002566261985770614, + "expected_calibration_error_10bin": 0.0002566261985770614, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "K26": { + "valid": 2814, + "positives": 3, + "negatives": 2811, + "auroc": 0.9223289458081347, + "auprc": 0.014792896559957178, + "brier": 0.0010616256675753833, + "calibration": { + "observed_rate": 0.0010660980810234541, + "mean_prediction": 0.0014773416146567232, + "calibration_in_the_large": 0.000411243533633269, + "expected_calibration_error_10bin": 0.000411243533633269, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "K29": { + "valid": 2785, + "positives": 4, + "negatives": 2781, + "auroc": 0.7872168284789643, + "auprc": 0.031153196213913572, + "brier": 0.001426114121515485, + "calibration": { + "observed_rate": 0.001436265709156194, + "mean_prediction": 0.0025107439699291402, + "calibration_in_the_large": 0.0010744782607729462, + "expected_calibration_error_10bin": 0.0010744782607729462, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K30": { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.9250440917107584, + "auprc": 0.006825429600568977, + "brier": 0.0007040523675718822, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0004443788513199995, + "calibration_in_the_large": -0.0002605911874533526, + "expected_calibration_error_10bin": 0.0002605911874533526, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + "K31": { + "valid": 2756, + "positives": 7, + "negatives": 2749, + "auroc": 0.8922725146806632, + "auprc": 0.1525299418162662, + "brier": 0.0023977568463552116, + "calibration": { + "observed_rate": 0.0025399129172714078, + "mean_prediction": 0.00228075711521726, + "calibration_in_the_large": -0.000259155802054148, + "expected_calibration_error_10bin": 0.0002703379181935664, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + "K40": { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 5.630089262649428e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00038701995383931884, + "calibration_in_the_large": 0.00038701995383931884, + "expected_calibration_error_10bin": 0.00038701995383931884, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "K42": { + "valid": 2820, + "positives": 3, + "negatives": 2817, + "auroc": 0.5618270027215714, + "auprc": 0.0049747948753850356, + "brier": 0.001064179795456574, + "calibration": { + "observed_rate": 0.0010638297872340426, + "mean_prediction": 0.00042110079328732026, + "calibration_in_the_large": -0.0006427289939467223, + "expected_calibration_error_10bin": 0.0006427289939467223, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + "K43": { + "valid": 2813, + "positives": 2, + "negatives": 2811, + "auroc": 0.9542867307008183, + "auprc": 0.01134324532171238, + "brier": 0.000708759814450242, + "calibration": { + "observed_rate": 0.0007109847138286527, + "mean_prediction": 0.00046259421595809015, + "calibration_in_the_large": -0.0002483904978705625, + "expected_calibration_error_10bin": 0.0002483904978705625, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K44": { + "valid": 2785, + "positives": 4, + "negatives": 2781, + "auroc": 0.6407766990291263, + "auprc": 0.002637875233807954, + "brier": 0.001435761975125186, + "calibration": { + "observed_rate": 0.001436265709156194, + "mean_prediction": 0.0010868338283724686, + "calibration_in_the_large": -0.00034943188078372534, + "expected_calibration_error_10bin": 0.00034943188078372534, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K52": { + "valid": 2749, + "positives": 17, + "negatives": 2732, + "auroc": 0.8721255705796228, + "auprc": 0.07805799728297008, + "brier": 0.005991041381963603, + "calibration": { + "observed_rate": 0.0061840669334303384, + "mean_prediction": 0.004664599546481449, + "calibration_in_the_large": -0.0015194673869488896, + "expected_calibration_error_10bin": 0.0015194673869488899, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9669363348575448 + }, + "K55": { + "valid": 2815, + "positives": 6, + "negatives": 2809, + "auroc": 0.8389106443574226, + "auprc": 0.00771746618382975, + "brier": 0.0021321715832343852, + "calibration": { + "observed_rate": 0.0021314387211367673, + "mean_prediction": 0.0011615008800175716, + "calibration_in_the_large": -0.0009699378411191957, + "expected_calibration_error_10bin": 0.0009699378411191957, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + "K56": { + "valid": 2745, + "positives": 15, + "negatives": 2730, + "auroc": 0.729010989010989, + "auprc": 0.01754328943217752, + "brier": 0.005427532879565218, + "calibration": { + "observed_rate": 0.00546448087431694, + "mean_prediction": 0.0024205812077576837, + "calibration_in_the_large": -0.0030438996665592562, + "expected_calibration_error_10bin": 0.0030438996665592562, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9655293703833978 + }, + "K57": { + "valid": 2741, + "positives": 10, + "negatives": 2731, + "auroc": 0.7042841450018308, + "auprc": 0.007119878204534502, + "brier": 0.0036393285977021467, + "calibration": { + "observed_rate": 0.0036483035388544327, + "mean_prediction": 0.0013786889524758828, + "calibration_in_the_large": -0.00226961458637855, + "expected_calibration_error_10bin": 0.00226961458637855, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + "K58": { + "valid": 2792, + "positives": 5, + "negatives": 2787, + "auroc": 0.7680660208109078, + "auprc": 0.10343265942925291, + "brier": 0.0017761992072093012, + "calibration": { + "observed_rate": 0.0017908309455587394, + "mean_prediction": 0.0013590809026835134, + "calibration_in_the_large": -0.000431750042875226, + "expected_calibration_error_10bin": 0.000431750042875226, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + "K59": { + "valid": 2560, + "positives": 52, + "negatives": 2508, + "auroc": 0.7381149552202184, + "auprc": 0.10853517596179187, + "brier": 0.0193546377003273, + "calibration": { + "observed_rate": 0.0203125, + "mean_prediction": 0.01580664593146821, + "calibration_in_the_large": -0.0045058540685317915, + "expected_calibration_error_10bin": 0.0045257330732169955, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + "K62": { + "valid": 2813, + "positives": 5, + "negatives": 2808, + "auroc": 0.7551282051282051, + "auprc": 0.0041285750240302715, + "brier": 0.0017763519171682001, + "calibration": { + "observed_rate": 0.0017774617845716318, + "mean_prediction": 0.0012198455749762268, + "calibration_in_the_large": -0.000557616209595405, + "expected_calibration_error_10bin": 0.000557616209595405, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K63": { + "valid": 2810, + "positives": 10, + "negatives": 2800, + "auroc": 0.7275357142857143, + "auprc": 0.01905730539428583, + "brier": 0.003538501659187142, + "calibration": { + "observed_rate": 0.0035587188612099642, + "mean_prediction": 0.0015217268200741335, + "calibration_in_the_large": -0.0020369920411358305, + "expected_calibration_error_10bin": 0.0020369920411358305, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + "K64": { + "valid": 2801, + "positives": 9, + "negatives": 2792, + "auroc": 0.7940942375039797, + "auprc": 0.013212033254820775, + "brier": 0.003198018042752521, + "calibration": { + "observed_rate": 0.0032131381649410924, + "mean_prediction": 0.0021187514947071454, + "calibration_in_the_large": -0.001094386670233947, + "expected_calibration_error_10bin": 0.001094386670233947, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "K65": { + "valid": 2813, + "positives": 9, + "negatives": 2804, + "auroc": 0.8676890156918687, + "auprc": 0.02410729954267814, + "brier": 0.003211250856062324, + "calibration": { + "observed_rate": 0.003199431212228937, + "mean_prediction": 0.002263495237705053, + "calibration_in_the_large": -0.000935935974523884, + "expected_calibration_error_10bin": 0.0011752899524331009, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K66": { + "valid": 2796, + "positives": 4, + "negatives": 2792, + "auroc": 0.9079512893982808, + "auprc": 0.03422625091357037, + "brier": 0.0014206071071255076, + "calibration": { + "observed_rate": 0.001430615164520744, + "mean_prediction": 0.0012403501475009644, + "calibration_in_the_large": -0.00019026501701977947, + "expected_calibration_error_10bin": 0.00019026501701977947, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + "K70": { + "valid": 2774, + "positives": 1, + "negatives": 2773, + "auroc": 0.9336458708979445, + "auprc": 0.005405405405405406, + "brier": 0.00036693100718980775, + "calibration": { + "observed_rate": 0.0003604902667627974, + "mean_prediction": 0.0005310023885329916, + "calibration_in_the_large": 0.00017051212177019424, + "expected_calibration_error_10bin": 0.00017051212177019424, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "K72": { + "valid": 2787, + "positives": 10, + "negatives": 2777, + "auroc": 0.9433561397191214, + "auprc": 0.23691908231951436, + "brier": 0.003171879400959837, + "calibration": { + "observed_rate": 0.003588087549336204, + "mean_prediction": 0.0017751231304471038, + "calibration_in_the_large": -0.0018129644188891, + "expected_calibration_error_10bin": 0.0018129644188890999, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "K74": { + "valid": 2763, + "positives": 5, + "negatives": 2758, + "auroc": 0.9558375634517766, + "auprc": 0.027772945494547546, + "brier": 0.001833899159878682, + "calibration": { + "observed_rate": 0.0018096272167933405, + "mean_prediction": 0.0013393116460508605, + "calibration_in_the_large": -0.00047031557074248, + "expected_calibration_error_10bin": 0.0007559083786220161, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + "K75": { + "valid": 2798, + "positives": 5, + "negatives": 2793, + "auroc": 0.8010741138560687, + "auprc": 0.014986120446732209, + "brier": 0.0017955957920709105, + "calibration": { + "observed_rate": 0.0017869907076483202, + "mean_prediction": 0.0013730109642000844, + "calibration_in_the_large": -0.0004139797434482358, + "expected_calibration_error_10bin": 0.000487813655100627, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + "K76": { + "valid": 2681, + "positives": 17, + "negatives": 2664, + "auroc": 0.8266207383854443, + "auprc": 0.18284898944281783, + "brier": 0.005740400678541745, + "calibration": { + "observed_rate": 0.006340917568071615, + "mean_prediction": 0.0024683565726639836, + "calibration_in_the_large": -0.003872560995407631, + "expected_calibration_error_10bin": 0.004538315125248905, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9430179387970454 + }, + "K80": { + "valid": 2731, + "positives": 5, + "negatives": 2726, + "auroc": 0.5528980190755686, + "auprc": 0.002589044150943332, + "brier": 0.0018357867679068185, + "calibration": { + "observed_rate": 0.001830831197363603, + "mean_prediction": 0.001974955328692714, + "calibration_in_the_large": 0.00014412413132911103, + "expected_calibration_error_10bin": 0.00014412413132911103, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9606049947238833 + }, + "K81": { + "valid": 2825, + "positives": 4, + "negatives": 2821, + "auroc": 0.869904289259128, + "auprc": 0.0366558333865206, + "brier": 0.0013948455252966107, + "calibration": { + "observed_rate": 0.001415929203539823, + "mean_prediction": 0.0008516067548162913, + "calibration_in_the_large": -0.0005643224487235318, + "expected_calibration_error_10bin": 0.0005643224487235318, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "K82": { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.8717221828490432, + "auprc": 0.004765099241843427, + "brier": 0.0007174315534940379, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0009228223467185007, + "calibration_in_the_large": 0.00021460704926807574, + "expected_calibration_error_10bin": 0.00021460704926807574, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "K83": { + "valid": 2757, + "positives": 5, + "negatives": 2752, + "auroc": 0.8946220930232558, + "auprc": 0.20747121691159384, + "brier": 0.0016914911298960983, + "calibration": { + "observed_rate": 0.0018135654697134566, + "mean_prediction": 0.0015795583539338434, + "calibration_in_the_large": -0.00023400711577961316, + "expected_calibration_error_10bin": 0.0003132893357421472, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.969750263805839 + }, + "K85": { + "valid": 2779, + "positives": 2, + "negatives": 2777, + "auroc": 0.7286640259272597, + "auprc": 0.002101996298398655, + "brier": 0.0007226305370552206, + "calibration": { + "observed_rate": 0.0007196833393306944, + "mean_prediction": 0.0008278048582165312, + "calibration_in_the_large": 0.00010812151888583673, + "expected_calibration_error_10bin": 0.00010812151888583673, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9774885684136475 + }, + "K86": { + "valid": 2785, + "positives": 4, + "negatives": 2781, + "auroc": 0.7721143473570659, + "auprc": 0.009371995248557604, + "brier": 0.0014373774182668587, + "calibration": { + "observed_rate": 0.001436265709156194, + "mean_prediction": 0.0011662416610912323, + "calibration_in_the_large": -0.00027002404806496173, + "expected_calibration_error_10bin": 0.00027002404806496173, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K90": { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.6406360424028269, + "auprc": 0.0009823182711198428, + "brier": 0.0003533858607776783, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.00022544181361254525, + "calibration_in_the_large": -0.00012779025985972602, + "expected_calibration_error_10bin": 0.00012779025985972602, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "K91": { + "valid": 2768, + "positives": 14, + "negatives": 2754, + "auroc": 0.8497250752152713, + "auprc": 0.031171903706653098, + "brier": 0.005005726420713581, + "calibration": { + "observed_rate": 0.0050578034682080926, + "mean_prediction": 0.0018800030175319506, + "calibration_in_the_large": -0.003177800450676142, + "expected_calibration_error_10bin": 0.003177800450676142, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "K92": { + "valid": 2751, + "positives": 17, + "negatives": 2734, + "auroc": 0.8752312922242782, + "auprc": 0.12365018940367631, + "brier": 0.005987164977994989, + "calibration": { + "observed_rate": 0.0061795710650672485, + "mean_prediction": 0.004903562313482425, + "calibration_in_the_large": -0.0012760087515848234, + "expected_calibration_error_10bin": 0.0012760087515848234, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "K94": { + "valid": 2823, + "positives": 11, + "negatives": 2812, + "auroc": 0.9095111858269753, + "auprc": 0.14784954168315226, + "brier": 0.003844901691083498, + "calibration": { + "observed_rate": 0.0038965639390719092, + "mean_prediction": 0.0007103162894320482, + "calibration_in_the_large": -0.003186247649639861, + "expected_calibration_error_10bin": 0.003186247649639861, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "L02": { + "valid": 2807, + "positives": 10, + "negatives": 2797, + "auroc": 0.8143725420092957, + "auprc": 0.014376617509898052, + "brier": 0.00353930594460999, + "calibration": { + "observed_rate": 0.003562522265764161, + "mean_prediction": 0.002447519021701689, + "calibration_in_the_large": -0.0011150032440624719, + "expected_calibration_error_10bin": 0.0011150032440624719, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "L03": { + "valid": 2701, + "positives": 21, + "negatives": 2680, + "auroc": 0.6726901208244492, + "auprc": 0.01684685345261059, + "brier": 0.007709767262122312, + "calibration": { + "observed_rate": 0.00777489818585709, + "mean_prediction": 0.004927310418848253, + "calibration_in_the_large": -0.002847587767008837, + "expected_calibration_error_10bin": 0.002847587767008837, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9500527611677805 + }, + "L08": { + "valid": 2830, + "positives": 4, + "negatives": 2826, + "auroc": 0.742657466383581, + "auprc": 0.004766596156184411, + "brier": 0.001412174863451378, + "calibration": { + "observed_rate": 0.0014134275618374558, + "mean_prediction": 0.0005219821307093954, + "calibration_in_the_large": -0.0008914454311280604, + "expected_calibration_error_10bin": 0.0008914454311280604, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9954273654590221 + }, + "L27": { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.7405616779239247, + "auprc": 0.00734531833891011, + "brier": 0.0017875176447336553, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.0017275679942550248, + "calibration_in_the_large": -4.67400256172249e-05, + "expected_calibration_error_10bin": 4.67400256172249e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "L29": { + "valid": 2817, + "positives": 2, + "negatives": 2815, + "auroc": 0.7044404973357016, + "auprc": 0.0017502626127474281, + "brier": 0.0007227675092460154, + "calibration": { + "observed_rate": 0.0007099751508697196, + "mean_prediction": 0.001401663705433473, + "calibration_in_the_large": 0.0006916885545637534, + "expected_calibration_error_10bin": 0.0006916885545637534, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "L30": { + "valid": 2816, + "positives": 3, + "negatives": 2813, + "auroc": 0.8409764190069914, + "auprc": 0.16913509355065504, + "brier": 0.0010563846460052938, + "calibration": { + "observed_rate": 0.001065340909090909, + "mean_prediction": 0.0008612454926390259, + "calibration_in_the_large": -0.00020409541645188313, + "expected_calibration_error_10bin": 0.00020409541645188313, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "L50": { + "valid": 2835, + "positives": 2, + "negatives": 2833, + "auroc": 0.8672785033533357, + "auprc": 0.011620512227553911, + "brier": 0.0007042844230688383, + "calibration": { + "observed_rate": 0.0007054673721340388, + "mean_prediction": 0.0005722953434851212, + "calibration_in_the_large": -0.00013317202864891763, + "expected_calibration_error_10bin": 0.00013317202864891763, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.997186071051706 + }, + "L53": { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 2.06132346482597e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0005579397190324622, + "calibration_in_the_large": 0.0005579397190324622, + "expected_calibration_error_10bin": 0.0005579397190324622, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "L76": { + "valid": 2793, + "positives": 8, + "negatives": 2785, + "auroc": 0.6915619389587073, + "auprc": 0.005192266436241745, + "brier": 0.0028602919490691684, + "calibration": { + "observed_rate": 0.0028643036161833156, + "mean_prediction": 0.0015743838917689971, + "calibration_in_the_large": -0.0012899197244143185, + "expected_calibration_error_10bin": 0.0012899197244143185, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "L89": { + "valid": 2798, + "positives": 11, + "negatives": 2787, + "auroc": 0.8280327494536321, + "auprc": 0.02845986099627039, + "brier": 0.0038914159040480734, + "calibration": { + "observed_rate": 0.003931379556826304, + "mean_prediction": 0.002602409860872736, + "calibration_in_the_large": -0.0013289696959535684, + "expected_calibration_error_10bin": 0.0013289696959535684, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + "L97": { + "valid": 2789, + "positives": 4, + "negatives": 2785, + "auroc": 0.9640933572710951, + "auprc": 0.04158669463187918, + "brier": 0.0014243876247927837, + "calibration": { + "observed_rate": 0.0014342058085335247, + "mean_prediction": 0.0016979973292508355, + "calibration_in_the_large": 0.00026379152071731083, + "expected_calibration_error_10bin": 0.00026379152071731083, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "L98": { + "valid": 2824, + "positives": 1, + "negatives": 2823, + "auroc": 0.42366277010272757, + "auprc": 0.0006142506142506142, + "brier": 0.0003580393755922823, + "calibration": { + "observed_rate": 0.0003541076487252125, + "mean_prediction": 0.0009747397957872448, + "calibration_in_the_large": 0.0006206321470620323, + "expected_calibration_error_10bin": 0.0006206321470620323, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "M10": { + "valid": 2713, + "positives": 10, + "negatives": 2703, + "auroc": 0.789937106918239, + "auprc": 0.023406755620152746, + "brier": 0.00364941886031104, + "calibration": { + "observed_rate": 0.003685956505713233, + "mean_prediction": 0.0025713645573421187, + "calibration_in_the_large": -0.0011145919483711141, + "expected_calibration_error_10bin": 0.0011145919483711141, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9542736545902216 + }, + "M16": { + "valid": 2790, + "positives": 2, + "negatives": 2788, + "auroc": 0.8649569583931134, + "auprc": 0.0053390603253827325, + "brier": 0.0007155748466037829, + "calibration": { + "observed_rate": 0.0007168458781362007, + "mean_prediction": 0.0005845884912797556, + "calibration_in_the_large": -0.0001322573868564451, + "expected_calibration_error_10bin": 0.0001322573868564451, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + "M17": { + "valid": 2733, + "positives": 5, + "negatives": 2728, + "auroc": 0.7351906158357772, + "auprc": 0.00439064813603694, + "brier": 0.0018270004592772127, + "calibration": { + "observed_rate": 0.0018294914013904135, + "mean_prediction": 0.0014580254326450044, + "calibration_in_the_large": -0.00037146596874540905, + "expected_calibration_error_10bin": 0.00037146596874540905, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + "M19": { + "valid": 2674, + "positives": 17, + "negatives": 2657, + "auroc": 0.6663640992716243, + "auprc": 0.012848734879083442, + "brier": 0.0063220726824933975, + "calibration": { + "observed_rate": 0.006357516828721017, + "mean_prediction": 0.002696580284949988, + "calibration_in_the_large": -0.0036609365437710287, + "expected_calibration_error_10bin": 0.0036609365437710287, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.940555750967288 + }, + "M21": { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.924468085106383, + "auprc": 0.004672897196261682, + "brier": 0.0003558535315227909, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0011927226355331424, + "calibration_in_the_large": 0.000838238410081175, + "expected_calibration_error_10bin": 0.000838238410081175, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "M25": { + "valid": 2717, + "positives": 13, + "negatives": 2704, + "auroc": 0.693075785161584, + "auprc": 0.032859324902172964, + "brier": 0.004721724404871372, + "calibration": { + "observed_rate": 0.004784688995215311, + "mean_prediction": 0.0060872743218995965, + "calibration_in_the_large": 0.0013025853266842857, + "expected_calibration_error_10bin": 0.0013025853266842857, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9556806190643686 + }, + "M35": { + "valid": 2806, + "positives": 1, + "negatives": 2805, + "auroc": 0.8385026737967914, + "auprc": 0.0022026431718061676, + "brier": 0.0003564490411275883, + "calibration": { + "observed_rate": 0.0003563791874554526, + "mean_prediction": 0.0002549054417420969, + "calibration_in_the_large": -0.00010147374571335574, + "expected_calibration_error_10bin": 0.00010147374571335574, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "M46": { + "valid": 2814, + "positives": 2, + "negatives": 2812, + "auroc": 0.5488975817923186, + "auprc": 0.001401952502917528, + "brier": 0.0007109105401840574, + "calibration": { + "observed_rate": 0.0007107320540156361, + "mean_prediction": 0.000505701747548487, + "calibration_in_the_large": -0.0002050303064671491, + "expected_calibration_error_10bin": 0.0002050303064671491, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "M47": { + "valid": 2743, + "positives": 3, + "negatives": 2740, + "auroc": 0.49318734793187347, + "auprc": 0.001648174325113766, + "brier": 0.001098258989842372, + "calibration": { + "observed_rate": 0.001093693036820999, + "mean_prediction": 0.00197986682589466, + "calibration_in_the_large": 0.0008861737890736609, + "expected_calibration_error_10bin": 0.0008861737890736609, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + "M48": { + "valid": 2690, + "positives": 4, + "negatives": 2686, + "auroc": 0.6960163812360387, + "auprc": 0.0229502433988348, + "brier": 0.001488527707346413, + "calibration": { + "observed_rate": 0.001486988847583643, + "mean_prediction": 0.00314090065057826, + "calibration_in_the_large": 0.0016539118029946169, + "expected_calibration_error_10bin": 0.0016539118029946169, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9461836088638762 + }, + "M51": { + "valid": 2785, + "positives": 1, + "negatives": 2784, + "auroc": 0.5007183908045977, + "auprc": 0.0007189072609633358, + "brier": 0.00036038291561145874, + "calibration": { + "observed_rate": 0.0003590664272890485, + "mean_prediction": 0.0010245550927142587, + "calibration_in_the_large": 0.0006654886654252103, + "expected_calibration_error_10bin": 0.0006654886654252103, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "M54": { + "valid": 2567, + "positives": 22, + "negatives": 2545, + "auroc": 0.6389712448651544, + "auprc": 0.018286300943571684, + "brier": 0.008510018539632541, + "calibration": { + "observed_rate": 0.008570315543435918, + "mean_prediction": 0.008063073880012851, + "calibration_in_the_large": -0.0005072416634230668, + "expected_calibration_error_10bin": 0.0005921723496270084, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9029194512838551 + }, + "M62": { + "valid": 2781, + "positives": 5, + "negatives": 2776, + "auroc": 0.7651296829971181, + "auprc": 0.04222938895394013, + "brier": 0.0017843853406396962, + "calibration": { + "observed_rate": 0.0017979144192736426, + "mean_prediction": 0.0020766739285451876, + "calibration_in_the_large": 0.000278759509271545, + "expected_calibration_error_10bin": 0.000278759509271545, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + "M79": { + "valid": 2697, + "positives": 19, + "negatives": 2678, + "auroc": 0.7339530678825518, + "auprc": 0.020910279171703718, + "brier": 0.006967626382199117, + "calibration": { + "observed_rate": 0.0070448646644419724, + "mean_prediction": 0.005404007749891507, + "calibration_in_the_large": -0.0016408569145504653, + "expected_calibration_error_10bin": 0.0016408569145504653, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9486457966936335 + }, + "M81": { + "valid": 2705, + "positives": 6, + "negatives": 2699, + "auroc": 0.769606026923552, + "auprc": 0.010802843140211696, + "brier": 0.0022526102596488267, + "calibration": { + "observed_rate": 0.0022181146025878, + "mean_prediction": 0.003264457023563425, + "calibration_in_the_large": 0.001046342420975625, + "expected_calibration_error_10bin": 0.001046342420975625, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9514597256419275 + }, + "M84": { + "valid": 2818, + "positives": 3, + "negatives": 2815, + "auroc": 0.728478389579633, + "auprc": 0.02136708007061588, + "brier": 0.00106010990840086, + "calibration": { + "observed_rate": 0.0010645848119233499, + "mean_prediction": 0.0010236126361284827, + "calibration_in_the_large": -4.0972175794867175e-05, + "expected_calibration_error_10bin": 4.0972175794867175e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "M85": { + "valid": 2768, + "positives": 3, + "negatives": 2765, + "auroc": 0.836045810729355, + "auprc": 0.008203950272758805, + "brier": 0.001080830338168842, + "calibration": { + "observed_rate": 0.001083815028901734, + "mean_prediction": 0.0012207993094333763, + "calibration_in_the_large": 0.00013698428053164234, + "expected_calibration_error_10bin": 0.00013698428053164234, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "M86": { + "valid": 2803, + "positives": 8, + "negatives": 2795, + "auroc": 0.8092128801431127, + "auprc": 0.02073498340387153, + "brier": 0.002832862798200378, + "calibration": { + "observed_rate": 0.0028540849090260435, + "mean_prediction": 0.0018800840202532745, + "calibration_in_the_large": -0.000974000888772769, + "expected_calibration_error_10bin": 0.000974000888772769, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9859303552585297 + }, + "M94": { + "valid": 2819, + "positives": 1, + "negatives": 2818, + "auroc": 0.5617459190915542, + "auprc": 0.0008090614886731392, + "brier": 0.0003547569123960452, + "calibration": { + "observed_rate": 0.000354735721887194, + "mean_prediction": 0.00012456299354891896, + "calibration_in_the_large": -0.00023017272833827506, + "expected_calibration_error_10bin": 0.00023017272833827506, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "M96": { + "valid": 2804, + "positives": 1, + "negatives": 2803, + "auroc": 0.9493399928647878, + "auprc": 0.006993006993006993, + "brier": 0.0003573173387979382, + "calibration": { + "observed_rate": 0.0003566333808844508, + "mean_prediction": 0.0011508901454465607, + "calibration_in_the_large": 0.0007942567645621099, + "expected_calibration_error_10bin": 0.0007942567645621099, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "N12": { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.6360099044923948, + "auprc": 0.0023060404282960996, + "brier": 0.0014172869458836162, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0006457000304559928, + "calibration_in_the_large": -0.0007672282634330923, + "expected_calibration_error_10bin": 0.0007672282634330923, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "N13": { + "valid": 2756, + "positives": 4, + "negatives": 2752, + "auroc": 0.8163154069767442, + "auprc": 0.007232563624985996, + "brier": 0.0014551082100498262, + "calibration": { + "observed_rate": 0.001451378809869376, + "mean_prediction": 0.0023782240392189566, + "calibration_in_the_large": 0.0009268452293495807, + "expected_calibration_error_10bin": 0.0009268452293495807, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + "N14": { + "valid": 2826, + "positives": 5, + "negatives": 2821, + "auroc": 0.6942928039702233, + "auprc": 0.03721549934986953, + "brier": 0.0017567443892230817, + "calibration": { + "observed_rate": 0.0017692852087756545, + "mean_prediction": 0.001091923152458318, + "calibration_in_the_large": -0.0006773620563173366, + "expected_calibration_error_10bin": 0.0006773620563173366, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "N17": { + "valid": 2292, + "positives": 53, + "negatives": 2239, + "auroc": 0.8157027648798739, + "auprc": 0.11630902340064012, + "brier": 0.021535814617594407, + "calibration": { + "observed_rate": 0.0231239092495637, + "mean_prediction": 0.021532431935862965, + "calibration_in_the_large": -0.0015914773137007364, + "expected_calibration_error_10bin": 0.0028566382416625783, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8061906436862469 + }, + "N18": { + "valid": 2440, + "positives": 21, + "negatives": 2419, + "auroc": 0.8856079844091419, + "auprc": 0.1370034760898476, + "brier": 0.008000841856340795, + "calibration": { + "observed_rate": 0.00860655737704918, + "mean_prediction": 0.007262518107273297, + "calibration_in_the_large": -0.001344039269775884, + "expected_calibration_error_10bin": 0.0016538160166117487, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.858248329229687 + }, + "N20": { + "valid": 2806, + "positives": 7, + "negatives": 2799, + "auroc": 0.7536365028326443, + "auprc": 0.00597939818825295, + "brier": 0.0024909814197793187, + "calibration": { + "observed_rate": 0.0024946543121881683, + "mean_prediction": 0.0006299808959030695, + "calibration_in_the_large": -0.0018646734162850987, + "expected_calibration_error_10bin": 0.0018646734162850987, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "N25": { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.9012031139419674, + "auprc": 0.038335069105734317, + "brier": 0.001755114358312066, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.00042681554296504937, + "calibration_in_the_large": -0.001339344824396307, + "expected_calibration_error_10bin": 0.001339344824396307, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "N28": { + "valid": 2789, + "positives": 3, + "negatives": 2786, + "auroc": 0.9075137592725533, + "auprc": 0.009920070446386235, + "brier": 0.0010717276515485462, + "calibration": { + "observed_rate": 0.0010756543564001434, + "mean_prediction": 0.0015843764094906545, + "calibration_in_the_large": 0.000508722053090511, + "expected_calibration_error_10bin": 0.000508722053090511, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "N30": { + "valid": 2829, + "positives": 7, + "negatives": 2822, + "auroc": 0.8002429887617698, + "auprc": 0.00932622136393881, + "brier": 0.002465353964732688, + "calibration": { + "observed_rate": 0.002474372569812655, + "mean_prediction": 0.0014279704375334456, + "calibration_in_the_large": -0.0010464021322792092, + "expected_calibration_error_10bin": 0.0010464021322792092, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "N32": { + "valid": 2807, + "positives": 9, + "negatives": 2798, + "auroc": 0.8467953299976173, + "auprc": 0.015461571772922365, + "brier": 0.0031851249302732192, + "calibration": { + "observed_rate": 0.003206270039187745, + "mean_prediction": 0.0020313000770966383, + "calibration_in_the_large": -0.0011749699620911065, + "expected_calibration_error_10bin": 0.0011749699620911065, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "N39": { + "valid": 2520, + "positives": 44, + "negatives": 2476, + "auroc": 0.7586558231752093, + "auprc": 0.04620628416971805, + "brier": 0.016928341423429312, + "calibration": { + "observed_rate": 0.01746031746031746, + "mean_prediction": 0.016859511432740542, + "calibration_in_the_large": -0.0006008060275769188, + "expected_calibration_error_10bin": 0.0007670742426333671, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8863876187126275 + }, + "N40": { + "valid": 2606, + "positives": 11, + "negatives": 2595, + "auroc": 0.8201436328603958, + "auprc": 0.030129468009672603, + "brier": 0.004169813774182961, + "calibration": { + "observed_rate": 0.00422102839600921, + "mean_prediction": 0.0036781545667038105, + "calibration_in_the_large": -0.0005428738293053992, + "expected_calibration_error_10bin": 0.0005428738293053992, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9166373549067885 + }, + "N73": { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9573753095153873, + "auprc": 0.02723177723177723, + "brier": 0.0007033727901827938, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0004622785028443883, + "calibration_in_the_large": -0.0002446850885306559, + "expected_calibration_error_10bin": 0.0002446850885306559, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "N99": { + "valid": 2799, + "positives": 3, + "negatives": 2796, + "auroc": 0.6591559370529327, + "auprc": 0.0024654231820449945, + "brier": 0.001074819735855256, + "calibration": { + "observed_rate": 0.0010718113612004287, + "mean_prediction": 0.0012435684245548318, + "calibration_in_the_large": 0.00017175706335440313, + "expected_calibration_error_10bin": 0.00017175706335440313, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9845233907843827 + }, + "O69": { + "valid": 2743, + "positives": 4, + "negatives": 2739, + "auroc": 0.9984483388097846, + "auprc": 0.360551948051948, + "brier": 0.0010367093708593463, + "calibration": { + "observed_rate": 0.0014582573824279985, + "mean_prediction": 0.0017006828747468902, + "calibration_in_the_large": 0.0002424254923188917, + "expected_calibration_error_10bin": 0.0016952299298039388, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + "O99": { + "valid": 2652, + "positives": 1, + "negatives": 2651, + "auroc": 1.0, + "auprc": 1.0, + "brier": 0.0004091795534800299, + "calibration": { + "observed_rate": 0.0003770739064856712, + "mean_prediction": 0.001933716852243347, + "calibration_in_the_large": 0.0015566429457576757, + "expected_calibration_error_10bin": 0.0015566429457576757, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9328174463594794 + }, + "Q21": { + "valid": 2810, + "positives": 1, + "negatives": 2809, + "auroc": 0.7835528657885369, + "auprc": 0.0016420361247947454, + "brier": 0.00035657486421660666, + "calibration": { + "observed_rate": 0.00035587188612099647, + "mean_prediction": 0.0008721267394771223, + "calibration_in_the_large": 0.0005162548533561258, + "expected_calibration_error_10bin": 0.0005162548533561258, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + "U07": { + "valid": 2828, + "positives": 0, + "negatives": 2828, + "auroc": null, + "auprc": null, + "brier": 1.3558588631645127e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0018932993611360742, + "calibration_in_the_large": 0.0018932993611360742, + "expected_calibration_error_10bin": 0.0018932993611360742, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9947238832219486 + } + }, + "120": { + "A04": { + "valid": 2782, + "positives": 18, + "negatives": 2764, + "auroc": 0.7588639652677279, + "auprc": 0.07065255894914692, + "brier": 0.006454876237284386, + "calibration": { + "observed_rate": 0.006470165348670022, + "mean_prediction": 0.006757678379264786, + "calibration_in_the_large": 0.0002875130305947642, + "expected_calibration_error_10bin": 0.001244087739440273, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + "A08": { + "valid": 2818, + "positives": 7, + "negatives": 2811, + "auroc": 0.7463536108146567, + "auprc": 0.008694000441501143, + "brier": 0.002486374079448835, + "calibration": { + "observed_rate": 0.00248403122782115, + "mean_prediction": 0.0020109645017322986, + "calibration_in_the_large": -0.0004730667260888512, + "expected_calibration_error_10bin": 0.0004730667260888512, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "A41": { + "valid": 2664, + "positives": 33, + "negatives": 2631, + "auroc": 0.7573684392384507, + "auprc": 0.03768509109947769, + "brier": 0.012499912329340288, + "calibration": { + "observed_rate": 0.012387387387387387, + "mean_prediction": 0.01417376301639239, + "calibration_in_the_large": 0.0017863756290050024, + "expected_calibration_error_10bin": 0.004097292089714789, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9370383397819205 + }, + "B00": { + "valid": 2819, + "positives": 1, + "negatives": 2818, + "auroc": 0.9985805535841022, + "auprc": 0.2, + "brier": 0.000344775688668169, + "calibration": { + "observed_rate": 0.000354735721887194, + "mean_prediction": 0.0006715548363639507, + "calibration_in_the_large": 0.0003168191144767567, + "expected_calibration_error_10bin": 0.0003168191144767567, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "B02": { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.9543685886098338, + "auprc": 0.007692307692307693, + "brier": 0.00035453116509367413, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0005658089314782965, + "calibration_in_the_large": 0.0002122021422279429, + "expected_calibration_error_10bin": 0.0002122021422279429, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "B18": { + "valid": 2782, + "positives": 3, + "negatives": 2779, + "auroc": 0.961976730238695, + "auprc": 0.02622818064117892, + "brier": 0.0010913007381190836, + "calibration": { + "observed_rate": 0.0010783608914450035, + "mean_prediction": 0.0007813690017986816, + "calibration_in_the_large": -0.0002969918896463219, + "expected_calibration_error_10bin": 0.0005004878781253492, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + "B19": { + "valid": 2763, + "positives": 14, + "negatives": 2749, + "auroc": 0.8927402172218469, + "auprc": 0.04699974691367216, + "brier": 0.005013685626214699, + "calibration": { + "observed_rate": 0.005066956207021353, + "mean_prediction": 0.0016089407325516043, + "calibration_in_the_large": -0.003458015474469749, + "expected_calibration_error_10bin": 0.003749306301945472, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + "B20": { + "valid": 2829, + "positives": 3, + "negatives": 2826, + "auroc": 0.9695682944090588, + "auprc": 0.022178932178932177, + "brier": 0.0010671072967370601, + "calibration": { + "observed_rate": 0.0010604453870625664, + "mean_prediction": 0.0005602715242678522, + "calibration_in_the_large": -0.0005001738627947142, + "expected_calibration_error_10bin": 0.0005744664910347769, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "B34": { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.9425185709232402, + "auprc": 0.06070724803840779, + "brier": 0.0014007062541353513, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0005866841670607442, + "calibration_in_the_large": -0.0008262441268283409, + "expected_calibration_error_10bin": 0.0008262441268283409, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "B35": { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 1.3927547827890604e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0006476055667438415, + "calibration_in_the_large": 0.0006476055667438415, + "expected_calibration_error_10bin": 0.0006476055667438415, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "B37": { + "valid": 2768, + "positives": 22, + "negatives": 2746, + "auroc": 0.7607925577699794, + "auprc": 0.023071891849276396, + "brier": 0.007886955458051553, + "calibration": { + "observed_rate": 0.007947976878612716, + "mean_prediction": 0.004349414551584731, + "calibration_in_the_large": -0.003598562327027985, + "expected_calibration_error_10bin": 0.003748951709589838, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "B95": { + "valid": 2678, + "positives": 39, + "negatives": 2639, + "auroc": 0.7428513131430904, + "auprc": 0.030832076868715176, + "brier": 0.014295318499807162, + "calibration": { + "observed_rate": 0.014563106796116505, + "mean_prediction": 0.011121385358191387, + "calibration_in_the_large": -0.003441721437925118, + "expected_calibration_error_10bin": 0.0035175945561946404, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9419627154414351 + }, + "B96": { + "valid": 2630, + "positives": 52, + "negatives": 2578, + "auroc": 0.759443814525273, + "auprc": 0.06559756542847686, + "brier": 0.01902851981531666, + "calibration": { + "observed_rate": 0.01977186311787072, + "mean_prediction": 0.012995754034705938, + "calibration_in_the_large": -0.006776109083164783, + "expected_calibration_error_10bin": 0.007152003458111915, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9250791417516707 + }, + "B97": { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.5012380615493456, + "auprc": 0.0007087172218284905, + "brier": 0.00036950774295409385, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0006084988629863235, + "calibration_in_the_large": 0.0002548920737359699, + "expected_calibration_error_10bin": 0.00025489207373596996, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "C18": { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.9757264351523742, + "auprc": 0.02085561497326203, + "brier": 0.0007045311316060278, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0006218270395010719, + "calibration_in_the_large": -8.638825794935303e-05, + "expected_calibration_error_10bin": 8.638825794935303e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "C22": { + "valid": 2812, + "positives": 5, + "negatives": 2807, + "auroc": 0.9189169932312077, + "auprc": 0.0282577469294474, + "brier": 0.00178442573231863, + "calibration": { + "observed_rate": 0.0017780938833570413, + "mean_prediction": 0.0004371081165629938, + "calibration_in_the_large": -0.0013409857667940474, + "expected_calibration_error_10bin": 0.0013409857667940474, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9890960253253606 + }, + "C25": { + "valid": 2809, + "positives": 1, + "negatives": 2808, + "auroc": 0.9985754985754985, + "auprc": 0.2, + "brier": 0.00033388721649193245, + "calibration": { + "observed_rate": 0.000355998576005696, + "mean_prediction": 0.0008672620357315123, + "calibration_in_the_large": 0.0005112634597258163, + "expected_calibration_error_10bin": 0.0007247222012730639, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "C61": { + "valid": 2805, + "positives": 2, + "negatives": 2803, + "auroc": 0.9951837317160186, + "auprc": 0.1, + "brier": 0.0007018689332608494, + "calibration": { + "observed_rate": 0.00071301247771836, + "mean_prediction": 0.000712360819928249, + "calibration_in_the_large": -6.516577901110676e-07, + "expected_calibration_error_10bin": 6.516577901110676e-07, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "C67": { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9688715953307393, + "auprc": 0.017489400363416112, + "brier": 0.0007049988260386745, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.00033132154671442263, + "calibration_in_the_large": -0.0003756420446606216, + "expected_calibration_error_10bin": 0.0003756420446606216, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "C77": { + "valid": 2762, + "positives": 13, + "negatives": 2749, + "auroc": 0.8860844502896158, + "auprc": 0.11902046139409528, + "brier": 0.004492813627474906, + "calibration": { + "observed_rate": 0.004706734250543085, + "mean_prediction": 0.004024866988707789, + "calibration_in_the_large": -0.0006818672618352966, + "expected_calibration_error_10bin": 0.0008728494779182888, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + "C78": { + "valid": 2762, + "positives": 18, + "negatives": 2744, + "auroc": 0.8652210884353742, + "auprc": 0.1609663884460958, + "brier": 0.006038303168342459, + "calibration": { + "observed_rate": 0.0065170166545981175, + "mean_prediction": 0.0043593069472826805, + "calibration_in_the_large": -0.002157709707315437, + "expected_calibration_error_10bin": 0.004072441460869839, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + "C79": { + "valid": 2751, + "positives": 14, + "negatives": 2737, + "auroc": 0.9018476955999791, + "auprc": 0.10484170324569185, + "brier": 0.004875478956800649, + "calibration": { + "observed_rate": 0.005089058524173028, + "mean_prediction": 0.004298504383232314, + "calibration_in_the_large": -0.0007905541409407146, + "expected_calibration_error_10bin": 0.001760028893598087, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "C83": { + "valid": 2820, + "positives": 0, + "negatives": 2820, + "auroc": null, + "auprc": null, + "brier": 2.827470747108916e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0004738029384453328, + "calibration_in_the_large": 0.0004738029384453328, + "expected_calibration_error_10bin": 0.0004738029384453328, + "nonempty_bins": 2 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9919099542736546 + }, + "D25": { + "valid": 2792, + "positives": 2, + "negatives": 2790, + "auroc": 0.992831541218638, + "auprc": 0.27439024390243905, + "brier": 0.0006994710203908607, + "calibration": { + "observed_rate": 0.0007163323782234957, + "mean_prediction": 0.0004294303226877603, + "calibration_in_the_large": -0.00028690205553573536, + "expected_calibration_error_10bin": 0.00028690205553573536, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + "D47": { + "valid": 2796, + "positives": 6, + "negatives": 2790, + "auroc": 0.575925925925926, + "auprc": 0.003223552462817598, + "brier": 0.0021495589350072957, + "calibration": { + "observed_rate": 0.002145922746781116, + "mean_prediction": 0.0017122296264684396, + "calibration_in_the_large": -0.00043369312031267624, + "expected_calibration_error_10bin": 0.00043369312031267624, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + "D50": { + "valid": 2663, + "positives": 36, + "negatives": 2627, + "auroc": 0.8117730406462801, + "auprc": 0.09738226649282589, + "brier": 0.012970487850296062, + "calibration": { + "observed_rate": 0.013518588058580548, + "mean_prediction": 0.008059001325628253, + "calibration_in_the_large": -0.005459586732952295, + "expected_calibration_error_10bin": 0.005459586732952295, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9366865986633838 + }, + "D53": { + "valid": 2805, + "positives": 11, + "negatives": 2794, + "auroc": 0.8552092145506605, + "auprc": 0.052592579081467056, + "brier": 0.0038364746359461515, + "calibration": { + "observed_rate": 0.00392156862745098, + "mean_prediction": 0.0028285063568609546, + "calibration_in_the_large": -0.0010930622705900258, + "expected_calibration_error_10bin": 0.0011646680874719498, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "D59": { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 3.857057239753429e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0005964677163553989, + "calibration_in_the_large": 0.0005964677163553989, + "expected_calibration_error_10bin": 0.0005964677163553989, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "D61": { + "valid": 2773, + "positives": 17, + "negatives": 2756, + "auroc": 0.8998975497310681, + "auprc": 0.11022421171334787, + "brier": 0.005928143163639687, + "calibration": { + "observed_rate": 0.006130544536602957, + "mean_prediction": 0.006943979697826378, + "calibration_in_the_large": 0.0008134351612234204, + "expected_calibration_error_10bin": 0.0017091127209034305, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + "D62": { + "valid": 2499, + "positives": 36, + "negatives": 2463, + "auroc": 0.7911196824107908, + "auprc": 0.04339504733056852, + "brier": 0.01403870974349457, + "calibration": { + "observed_rate": 0.014405762304921969, + "mean_prediction": 0.010742738907251144, + "calibration_in_the_large": -0.0036630233976708247, + "expected_calibration_error_10bin": 0.004296820962383431, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8790010552233556 + }, + "D63": { + "valid": 2686, + "positives": 52, + "negatives": 2634, + "auroc": 0.8770515740902984, + "auprc": 0.11415258836385032, + "brier": 0.018234424071730017, + "calibration": { + "observed_rate": 0.0193596425912137, + "mean_prediction": 0.013603865472567606, + "calibration_in_the_large": -0.005755777118646093, + "expected_calibration_error_10bin": 0.008625599253479242, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9447766443897292 + }, + "D64": { + "valid": 2434, + "positives": 77, + "negatives": 2357, + "auroc": 0.8135424185487826, + "auprc": 0.1593443525392678, + "brier": 0.02867227690276501, + "calibration": { + "observed_rate": 0.031635168447000823, + "mean_prediction": 0.025515762213410943, + "calibration_in_the_large": -0.006119406233589881, + "expected_calibration_error_10bin": 0.006372364060555325, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8561378825184665 + }, + "D65": { + "valid": 2833, + "positives": 3, + "negatives": 2830, + "auroc": 0.9221436984687869, + "auprc": 0.01062196054724695, + "brier": 0.001057586222608779, + "calibration": { + "observed_rate": 0.0010589481115425344, + "mean_prediction": 0.0003885950445396935, + "calibration_in_the_large": -0.0006703530670028409, + "expected_calibration_error_10bin": 0.0006703530670028409, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9964825888146325 + }, + "D68": { + "valid": 2682, + "positives": 32, + "negatives": 2650, + "auroc": 0.8128891509433962, + "auprc": 0.056475572636275326, + "brier": 0.011651045824126583, + "calibration": { + "observed_rate": 0.011931394481730051, + "mean_prediction": 0.005107999958160787, + "calibration_in_the_large": -0.006823394523569264, + "expected_calibration_error_10bin": 0.007816683160310221, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9433696799155822 + }, + "D69": { + "valid": 2586, + "positives": 47, + "negatives": 2539, + "auroc": 0.8621588328459018, + "auprc": 0.22467284130370938, + "brier": 0.015843267205200517, + "calibration": { + "observed_rate": 0.01817478731631864, + "mean_prediction": 0.011180252116149871, + "calibration_in_the_large": -0.006994535200168768, + "expected_calibration_error_10bin": 0.007719159469230877, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9096025325360535 + }, + "D70": { + "valid": 2787, + "positives": 20, + "negatives": 2767, + "auroc": 0.8728586917238886, + "auprc": 0.15001775097923836, + "brier": 0.006635887748694147, + "calibration": { + "observed_rate": 0.007176175098672408, + "mean_prediction": 0.005626393986348541, + "calibration_in_the_large": -0.0015497811123238664, + "expected_calibration_error_10bin": 0.0043624853701914315, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "D72": { + "valid": 2595, + "positives": 39, + "negatives": 2556, + "auroc": 0.7227438706311946, + "auprc": 0.05034911623895962, + "brier": 0.014647606147621698, + "calibration": { + "observed_rate": 0.015028901734104046, + "mean_prediction": 0.01854909416335242, + "calibration_in_the_large": 0.003520192429248375, + "expected_calibration_error_10bin": 0.004382431888365168, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9127682026028843 + }, + "D73": { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.8490432317505315, + "auprc": 0.2511723329425557, + "brier": 0.0006964396946441179, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.00046229447312022445, + "calibration_in_the_large": -0.0002459208243302005, + "expected_calibration_error_10bin": 0.0002459208243302005, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "D75": { + "valid": 2831, + "positives": 2, + "negatives": 2829, + "auroc": 0.9485683987274656, + "auprc": 0.010110294117647058, + "brier": 0.0007046682661031193, + "calibration": { + "observed_rate": 0.0007064641469445425, + "mean_prediction": 0.0007626318145156002, + "calibration_in_the_large": 5.616766757105766e-05, + "expected_calibration_error_10bin": 5.616766757105766e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "D80": { + "valid": 2832, + "positives": 5, + "negatives": 2827, + "auroc": 0.9835868411743898, + "auprc": 0.08196844102666533, + "brier": 0.0017486502192495458, + "calibration": { + "observed_rate": 0.0017655367231638418, + "mean_prediction": 0.00035600403393384774, + "calibration_in_the_large": -0.001409532689229994, + "expected_calibration_error_10bin": 0.001409532689229994, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + "D89": { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.6613756613756614, + "auprc": 0.007207792207792208, + "brier": 0.000747951848903941, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0004393236780070899, + "calibration_in_the_large": -0.0002656463607662622, + "expected_calibration_error_10bin": 0.00048656829788384047, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + "E03": { + "valid": 2480, + "positives": 17, + "negatives": 2463, + "auroc": 0.7505433354827924, + "auprc": 0.06412802091493396, + "brier": 0.00677283372584068, + "calibration": { + "observed_rate": 0.0068548387096774195, + "mean_prediction": 0.0027059634713535365, + "calibration_in_the_large": -0.004148875238323883, + "expected_calibration_error_10bin": 0.004148875238323883, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8723179739711572 + }, + "E04": { + "valid": 2775, + "positives": 8, + "negatives": 2767, + "auroc": 0.7554210336104084, + "auprc": 0.009755200739345634, + "brier": 0.0028714927230243815, + "calibration": { + "observed_rate": 0.002882882882882883, + "mean_prediction": 0.0015241770052343453, + "calibration_in_the_large": -0.0013587058776485376, + "expected_calibration_error_10bin": 0.0013587058776485376, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + "E05": { + "valid": 2806, + "positives": 2, + "negatives": 2804, + "auroc": 0.3364835948644793, + "auprc": 0.0007832747468073024, + "brier": 0.0007128299047829653, + "calibration": { + "observed_rate": 0.0007127583749109052, + "mean_prediction": 0.00045533444023625896, + "calibration_in_the_large": -0.0002574239346746463, + "expected_calibration_error_10bin": 0.0002574239346746463, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "E11": { + "valid": 2194, + "positives": 13, + "negatives": 2181, + "auroc": 0.8044298663280781, + "auprc": 0.01856207968646514, + "brier": 0.005882092811270977, + "calibration": { + "observed_rate": 0.005925250683682771, + "mean_prediction": 0.0026529585573905074, + "calibration_in_the_large": -0.0032722921262922635, + "expected_calibration_error_10bin": 0.0032722921262922635, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7717200140696447 + }, + "E16": { + "valid": 2816, + "positives": 4, + "negatives": 2812, + "auroc": 0.5581436699857752, + "auprc": 0.0020422275775060185, + "brier": 0.0014273053914507423, + "calibration": { + "observed_rate": 0.0014204545454545455, + "mean_prediction": 0.0014329876091297483, + "calibration_in_the_large": 1.2533063675202816e-05, + "expected_calibration_error_10bin": 1.2533063675202816e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "E21": { + "valid": 2814, + "positives": 1, + "negatives": 2813, + "auroc": 0.9804479203697121, + "auprc": 0.017857142857142856, + "brier": 0.00035465438407197825, + "calibration": { + "observed_rate": 0.00035536602700781805, + "mean_prediction": 0.0006794521591864389, + "calibration_in_the_large": 0.0003240861321786208, + "expected_calibration_error_10bin": 0.0003240861321786208, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "E22": { + "valid": 2802, + "positives": 4, + "negatives": 2798, + "auroc": 0.724446032880629, + "auprc": 0.006051934870993916, + "brier": 0.0014584935894283045, + "calibration": { + "observed_rate": 0.0014275517487508922, + "mean_prediction": 0.0026034624416767776, + "calibration_in_the_large": 0.0011759106929258854, + "expected_calibration_error_10bin": 0.0011759106929258854, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "E27": { + "valid": 2811, + "positives": 4, + "negatives": 2807, + "auroc": 0.7245279657997863, + "auprc": 0.0032388862468635087, + "brier": 0.0014223830339049235, + "calibration": { + "observed_rate": 0.001422981145499822, + "mean_prediction": 0.000687716250013667, + "calibration_in_the_large": -0.0007352648954861551, + "expected_calibration_error_10bin": 0.0007352648954861551, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9887442842068238 + }, + "E43": { + "valid": 2748, + "positives": 29, + "negatives": 2719, + "auroc": 0.8307821080265311, + "auprc": 0.04838852682231683, + "brier": 0.010310270711861438, + "calibration": { + "observed_rate": 0.010553129548762736, + "mean_prediction": 0.00827991746588653, + "calibration_in_the_large": -0.002273212082876206, + "expected_calibration_error_10bin": 0.0035443992412237707, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9665845937390081 + }, + "E44": { + "valid": 2800, + "positives": 12, + "negatives": 2788, + "auroc": 0.7073469631755142, + "auprc": 0.018519328136081276, + "brier": 0.004257782976532878, + "calibration": { + "observed_rate": 0.004285714285714286, + "mean_prediction": 0.003235941017731615, + "calibration_in_the_large": -0.0010497732679826707, + "expected_calibration_error_10bin": 0.001134121402679154, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + "E46": { + "valid": 2772, + "positives": 27, + "negatives": 2745, + "auroc": 0.829143897996357, + "auprc": 0.12701628930085862, + "brier": 0.009281867365688572, + "calibration": { + "observed_rate": 0.00974025974025974, + "mean_prediction": 0.0055411585087454555, + "calibration_in_the_large": -0.0041991012315142845, + "expected_calibration_error_10bin": 0.004199101231514285, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9750263805838902 + }, + "E53": { + "valid": 2804, + "positives": 4, + "negatives": 2800, + "auroc": 0.6897321428571429, + "auprc": 0.0040399557826457395, + "brier": 0.001426308472224224, + "calibration": { + "observed_rate": 0.0014265335235378032, + "mean_prediction": 0.0009981515820589048, + "calibration_in_the_large": -0.00042838194147889835, + "expected_calibration_error_10bin": 0.00042838194147889835, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "E55": { + "valid": 2737, + "positives": 14, + "negatives": 2723, + "auroc": 0.5919154294108389, + "auprc": 0.0085607802191873, + "brier": 0.005105671942248857, + "calibration": { + "observed_rate": 0.005115089514066497, + "mean_prediction": 0.0034476819896565565, + "calibration_in_the_large": -0.00166740752440994, + "expected_calibration_error_10bin": 0.00166740752440994, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9627154414351038 + }, + "E66": { + "valid": 2371, + "positives": 27, + "negatives": 2344, + "auroc": 0.7525755277461762, + "auprc": 0.03455404982090705, + "brier": 0.011201050010136234, + "calibration": { + "observed_rate": 0.011387600168705188, + "mean_prediction": 0.006788711753340563, + "calibration_in_the_large": -0.004598888415364625, + "expected_calibration_error_10bin": 0.0047947506041804925, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8339781920506507 + }, + "E78": { + "valid": 1572, + "positives": 30, + "negatives": 1542, + "auroc": 0.6874621703415478, + "auprc": 0.06088488558559375, + "brier": 0.018589727164850495, + "calibration": { + "observed_rate": 0.019083969465648856, + "mean_prediction": 0.016013539811659518, + "calibration_in_the_large": -0.003070429653989338, + "expected_calibration_error_10bin": 0.003070429653989336, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5529370383397819 + }, + "E80": { + "valid": 2823, + "positives": 4, + "negatives": 2819, + "auroc": 0.9503369989357928, + "auprc": 0.016815060497324938, + "brier": 0.001412260848340561, + "calibration": { + "observed_rate": 0.0014169323414806943, + "mean_prediction": 0.0007807227030529717, + "calibration_in_the_large": -0.0006362096384277226, + "expected_calibration_error_10bin": 0.0006362096384277226, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "E83": { + "valid": 2653, + "positives": 47, + "negatives": 2606, + "auroc": 0.7952433827011316, + "auprc": 0.09448365043628068, + "brier": 0.016850626467583323, + "calibration": { + "observed_rate": 0.017715793441387108, + "mean_prediction": 0.01082895942833773, + "calibration_in_the_large": -0.006886834013049377, + "expected_calibration_error_10bin": 0.007593172312480012, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9331691874780161 + }, + "E86": { + "valid": 2587, + "positives": 52, + "negatives": 2535, + "auroc": 0.801198604157184, + "auprc": 0.07299328574132495, + "brier": 0.019181644702635014, + "calibration": { + "observed_rate": 0.020100502512562814, + "mean_prediction": 0.020787327918306387, + "calibration_in_the_large": 0.0006868254057435727, + "expected_calibration_error_10bin": 0.0009031849129959417, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9099542736545903 + }, + "E87": { + "valid": 2185, + "positives": 88, + "negatives": 2097, + "auroc": 0.7740874409329345, + "auprc": 0.1258824024245394, + "brier": 0.03717798451955242, + "calibration": { + "observed_rate": 0.040274599542334096, + "mean_prediction": 0.031515614021246086, + "calibration_in_the_large": -0.00875898552108801, + "expected_calibration_error_10bin": 0.013784306220701219, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.768554344002814 + }, + "E88": { + "valid": 2817, + "positives": 9, + "negatives": 2808, + "auroc": 0.7369816397594176, + "auprc": 0.09586584522048995, + "brier": 0.003094611957343477, + "calibration": { + "observed_rate": 0.003194888178913738, + "mean_prediction": 0.002008155690630262, + "calibration_in_the_large": -0.001186732488283476, + "expected_calibration_error_10bin": 0.001186732488283476, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "E89": { + "valid": 2780, + "positives": 4, + "negatives": 2776, + "auroc": 0.750450288184438, + "auprc": 0.010230430028816713, + "brier": 0.001433901147051965, + "calibration": { + "observed_rate": 0.0014388489208633094, + "mean_prediction": 0.001180034334124979, + "calibration_in_the_large": -0.00025881458673833045, + "expected_calibration_error_10bin": 0.00025881458673833045, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + "F02": { + "valid": 2802, + "positives": 1, + "negatives": 2801, + "auroc": 0.5765797929310961, + "auprc": 0.0008424599831508003, + "brier": 0.00038256133914067253, + "calibration": { + "observed_rate": 0.00035688793718772306, + "mean_prediction": 0.001517533774189854, + "calibration_in_the_large": 0.001160645837002131, + "expected_calibration_error_10bin": 0.001160645837002131, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "F03": { + "valid": 2739, + "positives": 11, + "negatives": 2728, + "auroc": 0.8681351639562783, + "auprc": 0.028851858690216083, + "brier": 0.003976037647311492, + "calibration": { + "observed_rate": 0.004016064257028112, + "mean_prediction": 0.0034890139288539794, + "calibration_in_the_large": -0.0005270503281741327, + "expected_calibration_error_10bin": 0.000698349665122159, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + "F05": { + "valid": 2750, + "positives": 15, + "negatives": 2735, + "auroc": 0.722461913467398, + "auprc": 0.011544982666661168, + "brier": 0.005446165659778987, + "calibration": { + "observed_rate": 0.005454545454545455, + "mean_prediction": 0.004802085195126272, + "calibration_in_the_large": -0.0006524602594191829, + "expected_calibration_error_10bin": 0.0006524602594191829, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + "F06": { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.6059801840056617, + "auprc": 0.0013393886074394136, + "brier": 0.0007094457661365501, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.0008864445113721516, + "calibration_in_the_large": 0.00017923093287144432, + "expected_calibration_error_10bin": 0.00017923093287144432, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "F10": { + "valid": 2560, + "positives": 9, + "negatives": 2551, + "auroc": 0.779781349361906, + "auprc": 0.1677574299953652, + "brier": 0.003385020630411582, + "calibration": { + "observed_rate": 0.003515625, + "mean_prediction": 0.0024912942663462443, + "calibration_in_the_large": -0.0010243307336537557, + "expected_calibration_error_10bin": 0.001024330733653756, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + "F11": { + "valid": 2741, + "positives": 7, + "negatives": 2734, + "auroc": 0.829031246734246, + "auprc": 0.042147138492220675, + "brier": 0.0025147665777508865, + "calibration": { + "observed_rate": 0.002553812477198103, + "mean_prediction": 0.0018134909364358126, + "calibration_in_the_large": -0.0007403215407622904, + "expected_calibration_error_10bin": 0.0007403215407622904, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + "F12": { + "valid": 2777, + "positives": 10, + "negatives": 2767, + "auroc": 0.9073003252620166, + "auprc": 0.02658912614089583, + "brier": 0.003576523409206183, + "calibration": { + "observed_rate": 0.0036010082823190494, + "mean_prediction": 0.001063513626144548, + "calibration_in_the_large": -0.0025374946561745014, + "expected_calibration_error_10bin": 0.0025374946561745014, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + "F14": { + "valid": 2787, + "positives": 8, + "negatives": 2779, + "auroc": 0.9184059014033825, + "auprc": 0.03417618204517611, + "brier": 0.0028496030918811898, + "calibration": { + "observed_rate": 0.0028704700394689632, + "mean_prediction": 0.001030600055139942, + "calibration_in_the_large": -0.0018398699843290211, + "expected_calibration_error_10bin": 0.0018398699843290211, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "F15": { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.9400070997515086, + "auprc": 0.054688576104414084, + "brier": 0.0020946580236043564, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0006813649267554456, + "calibration_in_the_large": -0.0014440335854655957, + "expected_calibration_error_10bin": 0.0014440335854655957, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "F17": { + "valid": 2426, + "positives": 25, + "negatives": 2401, + "auroc": 0.8890129112869638, + "auprc": 0.08256475729854142, + "brier": 0.009973440870156938, + "calibration": { + "observed_rate": 0.010305028854080791, + "mean_prediction": 0.004695946623107235, + "calibration_in_the_large": -0.005609082230973556, + "expected_calibration_error_10bin": 0.0062137575689529025, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8533239535701723 + }, + "F19": { + "valid": 2801, + "positives": 9, + "negatives": 2792, + "auroc": 0.9205269022604267, + "auprc": 0.22090129761366012, + "brier": 0.0030339916717448206, + "calibration": { + "observed_rate": 0.0032131381649410924, + "mean_prediction": 0.0014929052982835885, + "calibration_in_the_large": -0.001720232866657504, + "expected_calibration_error_10bin": 0.001720232866657504, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "F20": { + "valid": 2808, + "positives": 2, + "negatives": 2806, + "auroc": 0.7753029223093372, + "auprc": 0.015099383935836336, + "brier": 0.0007097657821939173, + "calibration": { + "observed_rate": 0.0007122507122507123, + "mean_prediction": 0.0006826958752702678, + "calibration_in_the_large": -2.9554836980444474e-05, + "expected_calibration_error_10bin": 2.9554836980444474e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9876890608512136 + }, + "F22": { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.9219858156028369, + "auprc": 0.004524886877828055, + "brier": 0.0003610823952740344, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0011416023162837358, + "calibration_in_the_large": 0.0007871180908317684, + "expected_calibration_error_10bin": 0.0007871180908317684, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "F25": { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.8477746212121212, + "auprc": 0.009089505620547928, + "brier": 0.001065000688329204, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0007577879800356629, + "calibration_in_the_large": -0.0003064191856259192, + "expected_calibration_error_10bin": 0.0003064191856259192, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "F29": { + "valid": 2806, + "positives": 7, + "negatives": 2799, + "auroc": 0.7848721482161997, + "auprc": 0.009472971399449663, + "brier": 0.0024911601192516442, + "calibration": { + "observed_rate": 0.0024946543121881683, + "mean_prediction": 0.0005294840145227111, + "calibration_in_the_large": -0.001965170297665457, + "expected_calibration_error_10bin": 0.001965170297665457, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "F31": { + "valid": 2724, + "positives": 8, + "negatives": 2716, + "auroc": 0.9196888807069219, + "auprc": 0.03824286727062712, + "brier": 0.002889667017986401, + "calibration": { + "observed_rate": 0.002936857562408223, + "mean_prediction": 0.0016711495296702346, + "calibration_in_the_large": -0.0012657080327379885, + "expected_calibration_error_10bin": 0.0012657080327379885, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9581428068941259 + }, + "F32": { + "valid": 2200, + "positives": 40, + "negatives": 2160, + "auroc": 0.7104976851851852, + "auprc": 0.05160142650092074, + "brier": 0.017658143366041327, + "calibration": { + "observed_rate": 0.01818181818181818, + "mean_prediction": 0.015415344735480506, + "calibration_in_the_large": -0.0027664734463376753, + "expected_calibration_error_10bin": 0.00356887971537865, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7738304607808653 + }, + "F33": { + "valid": 2800, + "positives": 7, + "negatives": 2793, + "auroc": 0.814996675361874, + "auprc": 0.015445997183049797, + "brier": 0.0025322860815741198, + "calibration": { + "observed_rate": 0.0025, + "mean_prediction": 0.0030071841075622226, + "calibration_in_the_large": 0.0005071841075622225, + "expected_calibration_error_10bin": 0.0005071841075622227, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + "F39": { + "valid": 2801, + "positives": 8, + "negatives": 2793, + "auroc": 0.7700053705692803, + "auprc": 0.02989739036748698, + "brier": 0.0028323055587950265, + "calibration": { + "observed_rate": 0.002856122813280971, + "mean_prediction": 0.0010901853873481544, + "calibration_in_the_large": -0.0017659374259328168, + "expected_calibration_error_10bin": 0.0017659374259328168, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "F41": { + "valid": 2247, + "positives": 51, + "negatives": 2196, + "auroc": 0.7434015500553591, + "auprc": 0.07645383776754433, + "brier": 0.021720445726457423, + "calibration": { + "observed_rate": 0.022696929238985315, + "mean_prediction": 0.020519280598998737, + "calibration_in_the_large": -0.0021776486399865784, + "expected_calibration_error_10bin": 0.002624398954475857, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7903622933520928 + }, + "F43": { + "valid": 2734, + "positives": 15, + "negatives": 2719, + "auroc": 0.7968615912713007, + "auprc": 0.033204105766258415, + "brier": 0.005401840747750766, + "calibration": { + "observed_rate": 0.005486466715435259, + "mean_prediction": 0.003974604216594509, + "calibration_in_the_large": -0.00151186249884075, + "expected_calibration_error_10bin": 0.0015977178445423467, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "F60": { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.9386420191965873, + "auprc": 0.04794729046468952, + "brier": 0.0017334674122508583, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.0018423261570898405, + "calibration_in_the_large": 6.801813721759079e-05, + "expected_calibration_error_10bin": 6.801813721759074e-05, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "F90": { + "valid": 2775, + "positives": 6, + "negatives": 2769, + "auroc": 0.9244612977007344, + "auprc": 0.03233241083178196, + "brier": 0.0021321083718183094, + "calibration": { + "observed_rate": 0.002162162162162162, + "mean_prediction": 0.0017006340374057611, + "calibration_in_the_large": -0.00046152812475640107, + "expected_calibration_error_10bin": 0.00046152812475640107, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + "G25": { + "valid": 2774, + "positives": 4, + "negatives": 2770, + "auroc": 0.7024368231046931, + "auprc": 0.00479541903465402, + "brier": 0.0014415702960388806, + "calibration": { + "observed_rate": 0.0014419610670511895, + "mean_prediction": 0.0016022348426059647, + "calibration_in_the_large": 0.0001602737755547752, + "expected_calibration_error_10bin": 0.0001602737755547752, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "G31": { + "valid": 2802, + "positives": 1, + "negatives": 2801, + "auroc": 0.6769011067475902, + "auprc": 0.0011037527593818985, + "brier": 0.00036768617642854955, + "calibration": { + "observed_rate": 0.00035688793718772306, + "mean_prediction": 0.0012822083805844357, + "calibration_in_the_large": 0.0009253204433967127, + "expected_calibration_error_10bin": 0.0009253204433967127, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "G40": { + "valid": 2723, + "positives": 17, + "negatives": 2706, + "auroc": 0.7115777574888048, + "auprc": 0.05350793700520603, + "brier": 0.006122453709560073, + "calibration": { + "observed_rate": 0.006243114212265883, + "mean_prediction": 0.0033282106495313153, + "calibration_in_the_large": -0.0029149035627345676, + "expected_calibration_error_10bin": 0.0033374330531672795, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + "G43": { + "valid": 2725, + "positives": 11, + "negatives": 2714, + "auroc": 0.7004421518054532, + "auprc": 0.02992472270896388, + "brier": 0.004009404675523351, + "calibration": { + "observed_rate": 0.004036697247706422, + "mean_prediction": 0.0017347225447109508, + "calibration_in_the_large": -0.002301974702995471, + "expected_calibration_error_10bin": 0.002301974702995471, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9584945480126627 + }, + "G44": { + "valid": 2805, + "positives": 3, + "negatives": 2802, + "auroc": 0.5904116107542232, + "auprc": 0.01867199438893766, + "brier": 0.0010655998746976932, + "calibration": { + "observed_rate": 0.0010695187165775401, + "mean_prediction": 0.0008107353440998934, + "calibration_in_the_large": -0.00025878337247764677, + "expected_calibration_error_10bin": 0.00025878337247764677, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "G47": { + "valid": 2315, + "positives": 59, + "negatives": 2256, + "auroc": 0.6771321673278038, + "auprc": 0.052718070160202926, + "brier": 0.024641163147823386, + "calibration": { + "observed_rate": 0.025485961123110152, + "mean_prediction": 0.019226347524310676, + "calibration_in_the_large": -0.006259613598799476, + "expected_calibration_error_10bin": 0.007430246504944935, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8142806894125924 + }, + "G51": { + "valid": 2834, + "positives": 0, + "negatives": 2834, + "auroc": null, + "auprc": null, + "brier": 1.4134459959349997e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00030483498737475116, + "calibration_in_the_large": 0.00030483498737475116, + "expected_calibration_error_10bin": 0.00030483498737475116, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9968343299331692 + }, + "G62": { + "valid": 2751, + "positives": 23, + "negatives": 2728, + "auroc": 0.8594447277827362, + "auprc": 0.10392892116821076, + "brier": 0.007960194159929667, + "calibration": { + "observed_rate": 0.008360596146855689, + "mean_prediction": 0.0046358128383310075, + "calibration_in_the_large": -0.0037247833085246812, + "expected_calibration_error_10bin": 0.00394552259965581, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "G81": { + "valid": 2789, + "positives": 10, + "negatives": 2779, + "auroc": 0.7236415976970133, + "auprc": 0.055762153002285, + "brier": 0.003540940182740642, + "calibration": { + "observed_rate": 0.0035855145213338113, + "mean_prediction": 0.0020847670967137602, + "calibration_in_the_large": -0.0015007474246200511, + "expected_calibration_error_10bin": 0.0015007474246200511, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "G83": { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.6446886446886447, + "auprc": 0.005603172359155861, + "brier": 0.0010613745842448427, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.000867167206604239, + "calibration_in_the_large": -0.0001951557395713985, + "expected_calibration_error_10bin": 0.0001951557395713985, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "G89": { + "valid": 2537, + "positives": 37, + "negatives": 2500, + "auroc": 0.7774054054054054, + "auprc": 0.05524804910994838, + "brier": 0.014135548740020945, + "calibration": { + "observed_rate": 0.014584154513204573, + "mean_prediction": 0.011069443630165914, + "calibration_in_the_large": -0.0035147108830386586, + "expected_calibration_error_10bin": 0.00397973169647126, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8923672177277524 + }, + "G90": { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 3.108976124033065e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0009376980013140763, + "calibration_in_the_large": 0.0009376980013140763, + "expected_calibration_error_10bin": 0.0009376980013140763, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "G92": { + "valid": 2733, + "positives": 24, + "negatives": 2709, + "auroc": 0.7907745785652762, + "auprc": 0.02372434997830254, + "brier": 0.008674872858418909, + "calibration": { + "observed_rate": 0.008781558726673985, + "mean_prediction": 0.007778500785082017, + "calibration_in_the_large": -0.0010030579415919684, + "expected_calibration_error_10bin": 0.0010799677361394357, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + "G93": { + "valid": 2656, + "positives": 31, + "negatives": 2625, + "auroc": 0.7899477726574501, + "auprc": 0.040967214974068536, + "brier": 0.011382866537222784, + "calibration": { + "observed_rate": 0.011671686746987951, + "mean_prediction": 0.008465071101388923, + "calibration_in_the_large": -0.0032066156455990286, + "expected_calibration_error_10bin": 0.0032066156455990286, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9342244108336265 + }, + "G99": { + "valid": 2841, + "positives": 0, + "negatives": 2841, + "auroc": null, + "auprc": null, + "brier": 7.871121817993291e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0002754733074343837, + "calibration_in_the_large": 0.0002754733074343837, + "expected_calibration_error_10bin": 0.0002754733074343837, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9992965177629265 + }, + "H10": { + "valid": 2832, + "positives": 4, + "negatives": 2828, + "auroc": 0.8957743988684582, + "auprc": 0.008587787393390514, + "brier": 0.0014089065226184018, + "calibration": { + "observed_rate": 0.0014124293785310734, + "mean_prediction": 0.0005243251434189324, + "calibration_in_the_large": -0.000888104235112141, + "expected_calibration_error_10bin": 0.000888104235112141, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + "H26": { + "valid": 2819, + "positives": 0, + "negatives": 2819, + "auroc": null, + "auprc": null, + "brier": 4.759327096866524e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0011442100889044139, + "calibration_in_the_large": 0.0011442100889044139, + "expected_calibration_error_10bin": 0.0011442100889044139, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "H35": { + "valid": 2806, + "positives": 4, + "negatives": 2802, + "auroc": 0.6321377587437544, + "auprc": 0.0026693422857564236, + "brier": 0.0014253069776372668, + "calibration": { + "observed_rate": 0.0014255167498218105, + "mean_prediction": 0.0007702713429579589, + "calibration_in_the_large": -0.0006552454068638516, + "expected_calibration_error_10bin": 0.0006552454068638516, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "H40": { + "valid": 2750, + "positives": 5, + "negatives": 2745, + "auroc": 0.7485610200364299, + "auprc": 0.06138596084354828, + "brier": 0.0017974654764338228, + "calibration": { + "observed_rate": 0.0018181818181818182, + "mean_prediction": 0.002494309292255242, + "calibration_in_the_large": 0.0006761274740734236, + "expected_calibration_error_10bin": 0.0006761274740734236, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + "H53": { + "valid": 2790, + "positives": 8, + "negatives": 2782, + "auroc": 0.5829888569374551, + "auprc": 0.013165468774302802, + "brier": 0.0028568622862151605, + "calibration": { + "observed_rate": 0.002867383512544803, + "mean_prediction": 0.00320426227068395, + "calibration_in_the_large": 0.00033687875813914704, + "expected_calibration_error_10bin": 0.00033687875813914704, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + "H54": { + "valid": 2809, + "positives": 2, + "negatives": 2807, + "auroc": 0.44050587816173853, + "auprc": 0.0009594729663314724, + "brier": 0.000713418517973869, + "calibration": { + "observed_rate": 0.000711997152011392, + "mean_prediction": 0.0007403332779152425, + "calibration_in_the_large": 2.8336125903850504e-05, + "expected_calibration_error_10bin": 2.8336125903850504e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "H91": { + "valid": 2791, + "positives": 5, + "negatives": 2786, + "auroc": 0.8081119885139986, + "auprc": 0.023787423587750184, + "brier": 0.0017823455407447399, + "calibration": { + "observed_rate": 0.0017914725904693658, + "mean_prediction": 0.0010720814300412625, + "calibration_in_the_large": -0.0007193911604281033, + "expected_calibration_error_10bin": 0.0007193911604281033, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9817094618360886 + }, + "I07": { + "valid": 2823, + "positives": 4, + "negatives": 2819, + "auroc": 0.8290173820503725, + "auprc": 0.008665154903634778, + "brier": 0.0014132001292431722, + "calibration": { + "observed_rate": 0.0014169323414806943, + "mean_prediction": 0.0006633663404715283, + "calibration_in_the_large": -0.000753566001009166, + "expected_calibration_error_10bin": 0.000753566001009166, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "I08": { + "valid": 2767, + "positives": 8, + "negatives": 2759, + "auroc": 0.8078108010148605, + "auprc": 0.013278562664816184, + "brier": 0.002907438461225722, + "calibration": { + "observed_rate": 0.0028912179255511385, + "mean_prediction": 0.0029677866439523554, + "calibration_in_the_large": 7.656871840121694e-05, + "expected_calibration_error_10bin": 7.656871840121732e-05, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9732676749912065 + }, + "I10": { + "valid": 1498, + "positives": 27, + "negatives": 1471, + "auroc": 0.6542034896895536, + "auprc": 0.03482563264581781, + "brier": 0.01767272456365221, + "calibration": { + "observed_rate": 0.018024032042723633, + "mean_prediction": 0.013856812621361436, + "calibration_in_the_large": -0.004167219421362197, + "expected_calibration_error_10bin": 0.004612631363555161, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5269081955680619 + }, + "I11": { + "valid": 2676, + "positives": 27, + "negatives": 2649, + "auroc": 0.8222390000419445, + "auprc": 0.0543472880606954, + "brier": 0.009880820374935824, + "calibration": { + "observed_rate": 0.010089686098654708, + "mean_prediction": 0.008425182477382298, + "calibration_in_the_large": -0.0016645036212724097, + "expected_calibration_error_10bin": 0.0017367684061943905, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9412592332043616 + }, + "I12": { + "valid": 2552, + "positives": 16, + "negatives": 2536, + "auroc": 0.8365536277602523, + "auprc": 0.05217185765869884, + "brier": 0.006141186157510879, + "calibration": { + "observed_rate": 0.006269592476489028, + "mean_prediction": 0.005405003493520373, + "calibration_in_the_large": -0.0008645889829686547, + "expected_calibration_error_10bin": 0.0010779640819953264, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8976433345058037 + }, + "I13": { + "valid": 2727, + "positives": 16, + "negatives": 2711, + "auroc": 0.859599778679454, + "auprc": 0.04726564169883238, + "brier": 0.005900766217206657, + "calibration": { + "observed_rate": 0.005867253392005867, + "mean_prediction": 0.00706059459458839, + "calibration_in_the_large": 0.0011933412025825225, + "expected_calibration_error_10bin": 0.00155633605721623, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9591980302497362 + }, + "I16": { + "valid": 2390, + "positives": 7, + "negatives": 2383, + "auroc": 0.8652958455728074, + "auprc": 0.02066653634039687, + "brier": 0.0029047945987675777, + "calibration": { + "observed_rate": 0.0029288702928870294, + "mean_prediction": 0.002034742956660156, + "calibration_in_the_large": -0.0008941273362268734, + "expected_calibration_error_10bin": 0.0008941273362268734, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8406612733028491 + }, + "I21": { + "valid": 2671, + "positives": 9, + "negatives": 2662, + "auroc": 0.85341013440187, + "auprc": 0.016113278365731464, + "brier": 0.0034428006469058173, + "calibration": { + "observed_rate": 0.0033695245226506927, + "mean_prediction": 0.008440336969177287, + "calibration_in_the_large": 0.005070812446526594, + "expected_calibration_error_10bin": 0.005070812446526594, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + "I24": { + "valid": 2809, + "positives": 3, + "negatives": 2806, + "auroc": 0.9616298408172963, + "auprc": 0.02529669127700301, + "brier": 0.0010581387775037495, + "calibration": { + "observed_rate": 0.001067995728017088, + "mean_prediction": 0.0017684815688652654, + "calibration_in_the_large": 0.0007004858408481774, + "expected_calibration_error_10bin": 0.0007004858408481774, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "I25": { + "valid": 2243, + "positives": 28, + "negatives": 2215, + "auroc": 0.8295227346017414, + "auprc": 0.0645531426043364, + "brier": 0.01208773495939232, + "calibration": { + "observed_rate": 0.012483281319661168, + "mean_prediction": 0.0072724541070671835, + "calibration_in_the_large": -0.005210827212593984, + "expected_calibration_error_10bin": 0.005584359629368805, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7889553288779458 + }, + "I26": { + "valid": 2760, + "positives": 13, + "negatives": 2747, + "auroc": 0.7919408585589874, + "auprc": 0.16070107741761128, + "brier": 0.004457650304895185, + "calibration": { + "observed_rate": 0.004710144927536232, + "mean_prediction": 0.006292272279094597, + "calibration_in_the_large": 0.001582127351558365, + "expected_calibration_error_10bin": 0.0017249296226325072, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9708054871614492 + }, + "I27": { + "valid": 2716, + "positives": 19, + "negatives": 2697, + "auroc": 0.809378841988174, + "auprc": 0.025406165551033585, + "brier": 0.006934803245448257, + "calibration": { + "observed_rate": 0.006995581737849779, + "mean_prediction": 0.005133621728757016, + "calibration_in_the_large": -0.0018619600090927632, + "expected_calibration_error_10bin": 0.002031307585747124, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + "I31": { + "valid": 2793, + "positives": 9, + "negatives": 2784, + "auroc": 0.7749840357598978, + "auprc": 0.011433208835719941, + "brier": 0.003208902900941957, + "calibration": { + "observed_rate": 0.00322234156820623, + "mean_prediction": 0.002376795613003671, + "calibration_in_the_large": -0.000845545955202559, + "expected_calibration_error_10bin": 0.000845545955202559, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "I34": { + "valid": 2753, + "positives": 13, + "negatives": 2740, + "auroc": 0.721729365524986, + "auprc": 0.010623828679471774, + "brier": 0.004769829192865459, + "calibration": { + "observed_rate": 0.00472212132219397, + "mean_prediction": 0.004327974936980503, + "calibration_in_the_large": -0.00039414638521346763, + "expected_calibration_error_10bin": 0.0004753945958530188, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9683432993316918 + }, + "I35": { + "valid": 2723, + "positives": 5, + "negatives": 2718, + "auroc": 0.6664459161147903, + "auprc": 0.007314799645246529, + "brier": 0.0018430990794550454, + "calibration": { + "observed_rate": 0.001836210062431142, + "mean_prediction": 0.002218858213768812, + "calibration_in_the_large": 0.0003826481513376698, + "expected_calibration_error_10bin": 0.0003826481513376698, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + "I42": { + "valid": 2740, + "positives": 8, + "negatives": 2732, + "auroc": 0.9335193997071742, + "auprc": 0.03526249850383515, + "brier": 0.0028720627145441212, + "calibration": { + "observed_rate": 0.00291970802919708, + "mean_prediction": 0.0025149450480668324, + "calibration_in_the_large": -0.0004047629811302477, + "expected_calibration_error_10bin": 0.0004047629811302477, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + "I44": { + "valid": 2722, + "positives": 13, + "negatives": 2709, + "auroc": 0.8606638839196978, + "auprc": 0.04301843022927799, + "brier": 0.0046822043473626045, + "calibration": { + "observed_rate": 0.004775900073475386, + "mean_prediction": 0.0033597327373330156, + "calibration_in_the_large": -0.0014161673361423703, + "expected_calibration_error_10bin": 0.0014161673361423703, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9574393246570524 + }, + "I45": { + "valid": 2766, + "positives": 7, + "negatives": 2759, + "auroc": 0.6682545435716875, + "auprc": 0.004388538439460758, + "brier": 0.002536876997562796, + "calibration": { + "observed_rate": 0.0025307302964569776, + "mean_prediction": 0.003338342061627439, + "calibration_in_the_large": 0.0008076117651704615, + "expected_calibration_error_10bin": 0.0008076117651704615, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9729159338726697 + }, + "I46": { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.7042402826855124, + "auprc": 0.0011933174224343676, + "brier": 0.0003538735583621759, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.0005686803120985871, + "calibration_in_the_large": 0.00021544823862631584, + "expected_calibration_error_10bin": 0.00021544823862631584, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "I47": { + "valid": 2716, + "positives": 8, + "negatives": 2708, + "auroc": 0.6251384785819794, + "auprc": 0.004746114720709968, + "brier": 0.0029730917207427036, + "calibration": { + "observed_rate": 0.0029455081001472753, + "mean_prediction": 0.005455004168969975, + "calibration_in_the_large": 0.0025094960688226992, + "expected_calibration_error_10bin": 0.0025094960688226992, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + "I48": { + "valid": 2385, + "positives": 17, + "negatives": 2368, + "auroc": 0.7561605723370429, + "auprc": 0.020286393222347675, + "brier": 0.007357920374675444, + "calibration": { + "observed_rate": 0.007127882599580713, + "mean_prediction": 0.012033115936077138, + "calibration_in_the_large": 0.0049052333364964255, + "expected_calibration_error_10bin": 0.004905233336496426, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8389025677101654 + }, + "I49": { + "valid": 2734, + "positives": 10, + "negatives": 2724, + "auroc": 0.7360499265785609, + "auprc": 0.009057878959785545, + "brier": 0.003643840945898333, + "calibration": { + "observed_rate": 0.0036576444769568397, + "mean_prediction": 0.002838035233335157, + "calibration_in_the_large": -0.000819609243621683, + "expected_calibration_error_10bin": 0.000819609243621683, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "I50": { + "valid": 2415, + "positives": 31, + "negatives": 2384, + "auroc": 0.8097126001298982, + "auprc": 0.0484412430755827, + "brier": 0.012694837273650015, + "calibration": { + "observed_rate": 0.012836438923395446, + "mean_prediction": 0.011536539020532735, + "calibration_in_the_large": -0.0012998999028627101, + "expected_calibration_error_10bin": 0.003187745346752179, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.849454801266268 + }, + "I51": { + "valid": 2807, + "positives": 5, + "negatives": 2802, + "auroc": 0.7954318344039971, + "auprc": 0.009699400649836525, + "brier": 0.0017751568945829183, + "calibration": { + "observed_rate": 0.0017812611328820805, + "mean_prediction": 0.0014690130237657824, + "calibration_in_the_large": -0.000312248109116298, + "expected_calibration_error_10bin": 0.000312248109116298, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "I61": { + "valid": 2802, + "positives": 5, + "negatives": 2797, + "auroc": 0.8446192348945298, + "auprc": 0.011578296816835292, + "brier": 0.0017777507183993414, + "calibration": { + "observed_rate": 0.0017844396859386152, + "mean_prediction": 0.0009856225431055317, + "calibration_in_the_large": -0.0007988171428330835, + "expected_calibration_error_10bin": 0.0007988171428330835, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "I63": { + "valid": 2735, + "positives": 9, + "negatives": 2726, + "auroc": 0.722915138175593, + "auprc": 0.015392630936256915, + "brier": 0.0032766202952072307, + "calibration": { + "observed_rate": 0.0032906764168190127, + "mean_prediction": 0.003119518097840808, + "calibration_in_the_large": -0.00017115831897820477, + "expected_calibration_error_10bin": 0.00017115831897820477, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9620119591980303 + }, + "I65": { + "valid": 2774, + "positives": 3, + "negatives": 2771, + "auroc": 0.7189943462047396, + "auprc": 0.011116402766299889, + "brier": 0.0010866781560392798, + "calibration": { + "observed_rate": 0.0010814708002883922, + "mean_prediction": 0.002590281665066231, + "calibration_in_the_large": 0.001508810864777839, + "expected_calibration_error_10bin": 0.001508810864777839, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "I67": { + "valid": 2773, + "positives": 2, + "negatives": 2771, + "auroc": 0.9105016239624685, + "auprc": 0.005841432565570497, + "brier": 0.0007343731447321421, + "calibration": { + "observed_rate": 0.000721240533717995, + "mean_prediction": 0.0020546516384748388, + "calibration_in_the_large": 0.0013334111047568439, + "expected_calibration_error_10bin": 0.0013334111047568439, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + "I69": { + "valid": 2752, + "positives": 14, + "negatives": 2738, + "auroc": 0.7201815715329228, + "auprc": 0.02065040400097815, + "brier": 0.0050608136791099, + "calibration": { + "observed_rate": 0.005087209302325582, + "mean_prediction": 0.004033326018003436, + "calibration_in_the_large": -0.001053883284322146, + "expected_calibration_error_10bin": 0.0011387605529716103, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9679915582131551 + }, + "I70": { + "valid": 2771, + "positives": 5, + "negatives": 2766, + "auroc": 0.8399132321041215, + "auprc": 0.02855805235693698, + "brier": 0.0017899694818599055, + "calibration": { + "observed_rate": 0.001804402742692169, + "mean_prediction": 0.0021929735760585095, + "calibration_in_the_large": 0.00038857083336634054, + "expected_calibration_error_10bin": 0.00038857083336634065, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9746746394653535 + }, + "I71": { + "valid": 2769, + "positives": 3, + "negatives": 2766, + "auroc": 0.697879006989636, + "auprc": 0.02061303091928794, + "brier": 0.0010826893187140174, + "calibration": { + "observed_rate": 0.0010834236186348862, + "mean_prediction": 0.0020111547407412928, + "calibration_in_the_large": 0.0009277311221064066, + "expected_calibration_error_10bin": 0.0009277311221064066, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.97397115722828 + }, + "I72": { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.7719161038037682, + "auprc": 0.014938041042600917, + "brier": 0.0017659019246929306, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.0010182282094607059, + "calibration_in_the_large": -0.0007560798104115439, + "expected_calibration_error_10bin": 0.0007560798104115439, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "I73": { + "valid": 2734, + "positives": 6, + "negatives": 2728, + "auroc": 0.8245356793743891, + "auprc": 0.03552164016035559, + "brier": 0.0021784681463361513, + "calibration": { + "observed_rate": 0.0021945866861741038, + "mean_prediction": 0.0032540137033017806, + "calibration_in_the_large": 0.0010594270171276768, + "expected_calibration_error_10bin": 0.0010594270171276766, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "I74": { + "valid": 2821, + "positives": 4, + "negatives": 2817, + "auroc": 0.716986155484558, + "auprc": 0.00631806048479596, + "brier": 0.0014153628007565172, + "calibration": { + "observed_rate": 0.0014179369018078695, + "mean_prediction": 0.000607074252473619, + "calibration_in_the_large": -0.0008108626493342505, + "expected_calibration_error_10bin": 0.0008108626493342505, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "I77": { + "valid": 2785, + "positives": 3, + "negatives": 2782, + "auroc": 0.5666187395159358, + "auprc": 0.0045620548204150695, + "brier": 0.001079933636773316, + "calibration": { + "observed_rate": 0.0010771992818671453, + "mean_prediction": 0.0017836104418733863, + "calibration_in_the_large": 0.000706411160006241, + "expected_calibration_error_10bin": 0.000706411160006241, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "I80": { + "valid": 2827, + "positives": 4, + "negatives": 2823, + "auroc": 0.9071909316330146, + "auprc": 0.06900128136823422, + "brier": 0.001399970235282386, + "calibration": { + "observed_rate": 0.0014149274849663955, + "mean_prediction": 0.0006569223449965296, + "calibration_in_the_large": -0.0007580051399698658, + "expected_calibration_error_10bin": 0.0007580051399698658, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "I81": { + "valid": 2826, + "positives": 5, + "negatives": 2821, + "auroc": 0.8928748670684155, + "auprc": 0.018144216414880752, + "brier": 0.0017762914301705627, + "calibration": { + "observed_rate": 0.0017692852087756545, + "mean_prediction": 0.000978505852409271, + "calibration_in_the_large": -0.0007907793563663836, + "expected_calibration_error_10bin": 0.0007907793563663836, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "I82": { + "valid": 2739, + "positives": 20, + "negatives": 2719, + "auroc": 0.7390768664950349, + "auprc": 0.034309192677580896, + "brier": 0.007174102606459573, + "calibration": { + "observed_rate": 0.007301935012778387, + "mean_prediction": 0.005651445314624443, + "calibration_in_the_large": -0.0016504896981539433, + "expected_calibration_error_10bin": 0.0016504896981539433, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + "I85": { + "valid": 2793, + "positives": 4, + "negatives": 2789, + "auroc": 0.9953388311222661, + "auprc": 0.2763784461152882, + "brier": 0.0012315314113920894, + "calibration": { + "observed_rate": 0.0014321518080916578, + "mean_prediction": 0.0008624966121525529, + "calibration_in_the_large": -0.000569655195939105, + "expected_calibration_error_10bin": 0.0005696551959391049, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "I87": { + "valid": 2780, + "positives": 11, + "negatives": 2769, + "auroc": 0.6919465511014807, + "auprc": 0.010122550921897512, + "brier": 0.003941924805059015, + "calibration": { + "observed_rate": 0.003956834532374101, + "mean_prediction": 0.001647791910948059, + "calibration_in_the_large": -0.0023090426214260416, + "expected_calibration_error_10bin": 0.0023090426214260416, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + "I89": { + "valid": 2826, + "positives": 4, + "negatives": 2822, + "auroc": 0.8651665485471297, + "auprc": 0.006632646575867928, + "brier": 0.0014127783737738946, + "calibration": { + "observed_rate": 0.0014154281670205238, + "mean_prediction": 0.0005224378151692429, + "calibration_in_the_large": -0.0008929903518512808, + "expected_calibration_error_10bin": 0.0008929903518512808, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "I95": { + "valid": 2485, + "positives": 52, + "negatives": 2433, + "auroc": 0.7153956811786651, + "auprc": 0.04882955952920591, + "brier": 0.02028389905012393, + "calibration": { + "observed_rate": 0.020925553319919517, + "mean_prediction": 0.02121474286784948, + "calibration_in_the_large": 0.000289189547929964, + "expected_calibration_error_10bin": 0.00028918954792996683, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.874076679563841 + }, + "I96": { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.8197736116024054, + "auprc": 0.2640556124236891, + "brier": 0.0013934922282655446, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0008102724877120577, + "calibration_in_the_large": -0.0006026558061770274, + "expected_calibration_error_10bin": 0.0006026558061770274, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "I97": { + "valid": 2740, + "positives": 7, + "negatives": 2733, + "auroc": 0.7853222518425592, + "auprc": 0.012119755646169102, + "brier": 0.002544410754576502, + "calibration": { + "observed_rate": 0.0025547445255474453, + "mean_prediction": 0.0026884441882828428, + "calibration_in_the_large": 0.00013369966273539752, + "expected_calibration_error_10bin": 0.00013369966273539752, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + "J02": { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.779667020899752, + "auprc": 0.0023695156838704984, + "brier": 0.0007132383279798468, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.0008771034143169708, + "calibration_in_the_large": 0.00016913881254705925, + "expected_calibration_error_10bin": 0.00016913881254705925, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J06": { + "valid": 2816, + "positives": 6, + "negatives": 2810, + "auroc": 0.555693950177936, + "auprc": 0.00649698459565079, + "brier": 0.0021435574545621903, + "calibration": { + "observed_rate": 0.002130681818181818, + "mean_prediction": 0.0019408562618356098, + "calibration_in_the_large": -0.00018982555634620827, + "expected_calibration_error_10bin": 0.00018982555634620827, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "J12": { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 1.6995160441647194e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.001461644809381271, + "calibration_in_the_large": 0.001461644809381271, + "expected_calibration_error_10bin": 0.001461644809381271, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J15": { + "valid": 2795, + "positives": 9, + "negatives": 2786, + "auroc": 0.6533460955571508, + "auprc": 0.0075959186679623834, + "brier": 0.0032176901854016862, + "calibration": { + "observed_rate": 0.0032200357781753132, + "mean_prediction": 0.0018969984614733662, + "calibration_in_the_large": -0.001323037316701947, + "expected_calibration_error_10bin": 0.001323037316701947, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9831164263102357 + }, + "J18": { + "valid": 2671, + "positives": 27, + "negatives": 2644, + "auroc": 0.7635316859976466, + "auprc": 0.038380605430600186, + "brier": 0.009913383663551198, + "calibration": { + "observed_rate": 0.010108573567952079, + "mean_prediction": 0.00829568037280742, + "calibration_in_the_large": -0.0018128931951446586, + "expected_calibration_error_10bin": 0.0018128931951446588, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + "J30": { + "valid": 2815, + "positives": 3, + "negatives": 2812, + "auroc": 0.7661213845424372, + "auprc": 0.017067642960842424, + "brier": 0.0010612102433338792, + "calibration": { + "observed_rate": 0.0010657193605683837, + "mean_prediction": 0.0008192431060459277, + "calibration_in_the_large": -0.000246476254522456, + "expected_calibration_error_10bin": 0.000246476254522456, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + "J32": { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.5206933144676336, + "auprc": 0.0027693485022408613, + "brier": 0.0007092305210245876, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0006588592961352008, + "calibration_in_the_large": -4.810429523984341e-05, + "expected_calibration_error_10bin": 4.810429523984341e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J38": { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.7690400283386468, + "auprc": 0.003261494622825313, + "brier": 0.0007084579416590077, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.0009086113807226496, + "calibration_in_the_large": 0.0002006467789527381, + "expected_calibration_error_10bin": 0.0002006467789527381, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J43": { + "valid": 2804, + "positives": 5, + "negatives": 2799, + "auroc": 0.5902107895677028, + "auprc": 0.010253129174483318, + "brier": 0.001779351940104893, + "calibration": { + "observed_rate": 0.001783166904422254, + "mean_prediction": 0.0015608147647148294, + "calibration_in_the_large": -0.00022235213970742455, + "expected_calibration_error_10bin": 0.00022235213970742455, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "J44": { + "valid": 2570, + "positives": 16, + "negatives": 2554, + "auroc": 0.8414007439310884, + "auprc": 0.03373092010891457, + "brier": 0.006130106698339176, + "calibration": { + "observed_rate": 0.0062256809338521405, + "mean_prediction": 0.004591719456965681, + "calibration_in_the_large": -0.0016339614768864598, + "expected_calibration_error_10bin": 0.001787002258445643, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9039746746394653 + }, + "J45": { + "valid": 2518, + "positives": 19, + "negatives": 2499, + "auroc": 0.660390471978265, + "auprc": 0.01638400797826719, + "brier": 0.007502540599681316, + "calibration": { + "observed_rate": 0.007545671167593328, + "mean_prediction": 0.0041738750719910265, + "calibration_in_the_large": -0.003371796095602302, + "expected_calibration_error_10bin": 0.0034795236676283007, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.885684136475554 + }, + "J47": { + "valid": 2825, + "positives": 3, + "negatives": 2822, + "auroc": 0.7012756909992913, + "auprc": 0.0024898243551139134, + "brier": 0.0010617692629639683, + "calibration": { + "observed_rate": 0.0010619469026548673, + "mean_prediction": 0.00034553300360263937, + "calibration_in_the_large": -0.000716413899052228, + "expected_calibration_error_10bin": 0.000716413899052228, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J69": { + "valid": 2777, + "positives": 21, + "negatives": 2756, + "auroc": 0.7771096827700601, + "auprc": 0.03001312302645756, + "brier": 0.0074558078659975775, + "calibration": { + "observed_rate": 0.007562117392870004, + "mean_prediction": 0.0036691319040574486, + "calibration_in_the_large": -0.0038929854888125554, + "expected_calibration_error_10bin": 0.0038929854888125554, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + "J81": { + "valid": 2781, + "positives": 12, + "negatives": 2769, + "auroc": 0.7680570603105814, + "auprc": 0.05534396258328178, + "brier": 0.004248285840319085, + "calibration": { + "observed_rate": 0.004314994606256742, + "mean_prediction": 0.0028892036219485997, + "calibration_in_the_large": -0.001425790984308142, + "expected_calibration_error_10bin": 0.001425790984308142, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + "J84": { + "valid": 2817, + "positives": 5, + "negatives": 2812, + "auroc": 0.8817211948790896, + "auprc": 0.010762777566053133, + "brier": 0.0017669396752534089, + "calibration": { + "observed_rate": 0.001774937877174299, + "mean_prediction": 0.0011270625522579883, + "calibration_in_the_large": -0.0006478753249163107, + "expected_calibration_error_10bin": 0.0006478753249163107, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "J90": { + "valid": 2754, + "positives": 22, + "negatives": 2732, + "auroc": 0.646945294822308, + "auprc": 0.01315685477835829, + "brier": 0.007977151376780695, + "calibration": { + "observed_rate": 0.007988380537400145, + "mean_prediction": 0.005196314372413923, + "calibration_in_the_large": -0.002792066164986222, + "expected_calibration_error_10bin": 0.0029680282259142206, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9686950404502286 + }, + "J91": { + "valid": 2807, + "positives": 7, + "negatives": 2800, + "auroc": 0.7875, + "auprc": 0.026660244699785427, + "brier": 0.002478366942211759, + "calibration": { + "observed_rate": 0.0024937655860349127, + "mean_prediction": 0.0025414290092808834, + "calibration_in_the_large": 4.7663423245970695e-05, + "expected_calibration_error_10bin": 4.766342324597048e-05, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "J94": { + "valid": 2829, + "positives": 5, + "negatives": 2824, + "auroc": 0.6425637393767706, + "auprc": 0.009734080229364308, + "brier": 0.0017657763448731061, + "calibration": { + "observed_rate": 0.0017674089784376105, + "mean_prediction": 0.0002638041743898282, + "calibration_in_the_large": -0.0015036048040477823, + "expected_calibration_error_10bin": 0.0015036048040477823, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J95": { + "valid": 2770, + "positives": 11, + "negatives": 2759, + "auroc": 0.80229991103496, + "auprc": 0.01710079096737417, + "brier": 0.003940365765732586, + "calibration": { + "observed_rate": 0.003971119133574007, + "mean_prediction": 0.0021808468232239033, + "calibration_in_the_large": -0.001790272310350104, + "expected_calibration_error_10bin": 0.001790272310350104, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9743228983468167 + }, + "J96": { + "valid": 2605, + "positives": 42, + "negatives": 2563, + "auroc": 0.8449361797001282, + "auprc": 0.0980704667647289, + "brier": 0.01529859343344422, + "calibration": { + "observed_rate": 0.016122840690978888, + "mean_prediction": 0.01120194184822246, + "calibration_in_the_large": -0.004920898842756429, + "expected_calibration_error_10bin": 0.004920898842756427, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9162856137882518 + }, + "J98": { + "valid": 2692, + "positives": 20, + "negatives": 2672, + "auroc": 0.6741017964071856, + "auprc": 0.02117374285359154, + "brier": 0.007354418341973629, + "calibration": { + "observed_rate": 0.007429420505200594, + "mean_prediction": 0.004832897372363967, + "calibration_in_the_large": -0.002596523132836627, + "expected_calibration_error_10bin": 0.002596523132836627, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9468870911009497 + }, + "K04": { + "valid": 2836, + "positives": 1, + "negatives": 2835, + "auroc": 0.7961199294532628, + "auprc": 0.0017271157167530224, + "brier": 0.0003528219330884208, + "calibration": { + "observed_rate": 0.0003526093088857546, + "mean_prediction": 0.00029587329433174956, + "calibration_in_the_large": -5.673601455400502e-05, + "expected_calibration_error_10bin": 5.673601455400502e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "K12": { + "valid": 2824, + "positives": 9, + "negatives": 2815, + "auroc": 0.892086046970594, + "auprc": 0.07035139869389358, + "brier": 0.003287312092977592, + "calibration": { + "observed_rate": 0.003186968838526912, + "mean_prediction": 0.002772073722560055, + "calibration_in_the_large": -0.00041489511596685697, + "expected_calibration_error_10bin": 0.0021181668163369324, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "K20": { + "valid": 2813, + "positives": 4, + "negatives": 2809, + "auroc": 0.6037735849056604, + "auprc": 0.018185360529485942, + "brier": 0.0014484188598467183, + "calibration": { + "observed_rate": 0.0014219694276573053, + "mean_prediction": 0.0025155979647648657, + "calibration_in_the_large": 0.0010936285371075604, + "expected_calibration_error_10bin": 0.0010936285371075604, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K21": { + "valid": 2043, + "positives": 52, + "negatives": 1991, + "auroc": 0.7344492524050535, + "auprc": 0.09965241065730356, + "brier": 0.024167799694313295, + "calibration": { + "observed_rate": 0.025452765540871267, + "mean_prediction": 0.019693190759976453, + "calibration_in_the_large": -0.005759574780894814, + "expected_calibration_error_10bin": 0.00616827863695923, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7186071051705945 + }, + "K22": { + "valid": 2764, + "positives": 9, + "negatives": 2755, + "auroc": 0.7637023593466424, + "auprc": 0.03169942614231367, + "brier": 0.0032322720661331398, + "calibration": { + "observed_rate": 0.003256150506512301, + "mean_prediction": 0.0017838461188894644, + "calibration_in_the_large": -0.0014723043876228366, + "expected_calibration_error_10bin": 0.0014723043876228366, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9722124516355962 + }, + "K25": { + "valid": 2817, + "positives": 5, + "negatives": 2812, + "auroc": 0.7876955903271693, + "auprc": 0.0069410140436009056, + "brier": 0.0017765299711330052, + "calibration": { + "observed_rate": 0.001774937877174299, + "mean_prediction": 0.0010629589249613427, + "calibration_in_the_large": -0.0007119789522129563, + "expected_calibration_error_10bin": 0.0007119789522129563, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "K26": { + "valid": 2814, + "positives": 3, + "negatives": 2811, + "auroc": 0.9377445748843828, + "auprc": 0.014983612722974425, + "brier": 0.0010623019956675053, + "calibration": { + "observed_rate": 0.0010660980810234541, + "mean_prediction": 0.001615007540866502, + "calibration_in_the_large": 0.000548909459843048, + "expected_calibration_error_10bin": 0.000548909459843048, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "K29": { + "valid": 2785, + "positives": 4, + "negatives": 2781, + "auroc": 0.7892844300611291, + "auprc": 0.03542029217991504, + "brier": 0.0014246876396932621, + "calibration": { + "observed_rate": 0.001436265709156194, + "mean_prediction": 0.0027887082598318956, + "calibration_in_the_large": 0.0013524425506757016, + "expected_calibration_error_10bin": 0.0013524425506757016, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K30": { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.9231040564373898, + "auprc": 0.006655319891769224, + "brier": 0.0007041308935149308, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0005270439784870227, + "calibration_in_the_large": -0.00017792606028632944, + "expected_calibration_error_10bin": 0.00017792606028632944, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + "K31": { + "valid": 2756, + "positives": 8, + "negatives": 2748, + "auroc": 0.8901928675400291, + "auprc": 0.13593133440005511, + "brier": 0.0027493642246842753, + "calibration": { + "observed_rate": 0.002902757619738752, + "mean_prediction": 0.002813920092797416, + "calibration_in_the_large": -8.883752694133565e-05, + "expected_calibration_error_10bin": 0.0006656128006145795, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + "K40": { + "valid": 2827, + "positives": 1, + "negatives": 2826, + "auroc": 0.7515923566878981, + "auprc": 0.001422475106685633, + "brier": 0.00035414697579679564, + "calibration": { + "observed_rate": 0.00035373187124159886, + "mean_prediction": 0.0004766557149501791, + "calibration_in_the_large": 0.00012292384370858026, + "expected_calibration_error_10bin": 0.00012292384370858026, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "K42": { + "valid": 2820, + "positives": 3, + "negatives": 2817, + "auroc": 0.5562655307064253, + "auprc": 0.0045238294314381275, + "brier": 0.001065455310237396, + "calibration": { + "observed_rate": 0.0010638297872340426, + "mean_prediction": 0.0005145040585253126, + "calibration_in_the_large": -0.00054932572870873, + "expected_calibration_error_10bin": 0.00054932572870873, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + "K43": { + "valid": 2813, + "positives": 4, + "negatives": 2809, + "auroc": 0.7477750088999644, + "auprc": 0.011463520160372002, + "brier": 0.0014169043708164568, + "calibration": { + "observed_rate": 0.0014219694276573053, + "mean_prediction": 0.0007136914722310414, + "calibration_in_the_large": -0.0007082779554262639, + "expected_calibration_error_10bin": 0.0007082779554262639, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K44": { + "valid": 2785, + "positives": 4, + "negatives": 2781, + "auroc": 0.6480582524271845, + "auprc": 0.002687719863136064, + "brier": 0.0014360998746768818, + "calibration": { + "observed_rate": 0.001436265709156194, + "mean_prediction": 0.0012484545907817859, + "calibration_in_the_large": -0.00018781111837440812, + "expected_calibration_error_10bin": 0.00018781111837440812, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K52": { + "valid": 2749, + "positives": 23, + "negatives": 2726, + "auroc": 0.8207598328495327, + "auprc": 0.10412139323889551, + "brier": 0.008075566490035171, + "calibration": { + "observed_rate": 0.008366678792288106, + "mean_prediction": 0.005537749355793958, + "calibration_in_the_large": -0.0028289294364941472, + "expected_calibration_error_10bin": 0.002828929436494147, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9669363348575448 + }, + "K55": { + "valid": 2815, + "positives": 7, + "negatives": 2808, + "auroc": 0.8214794464794465, + "auprc": 0.007902897564631497, + "brier": 0.002488508360234248, + "calibration": { + "observed_rate": 0.002486678507992895, + "mean_prediction": 0.0013242489758094878, + "calibration_in_the_large": -0.0011624295321834073, + "expected_calibration_error_10bin": 0.0011624295321834073, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + "K56": { + "valid": 2745, + "positives": 19, + "negatives": 2726, + "auroc": 0.7008340734448005, + "auprc": 0.019218497717495578, + "brier": 0.006867672712084639, + "calibration": { + "observed_rate": 0.0069216757741347905, + "mean_prediction": 0.00325939025781542, + "calibration_in_the_large": -0.0036622855163193704, + "expected_calibration_error_10bin": 0.0036622855163193704, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9655293703833978 + }, + "K57": { + "valid": 2741, + "positives": 12, + "negatives": 2729, + "auroc": 0.631153047514352, + "auprc": 0.0068355127569902615, + "brier": 0.004369052105099509, + "calibration": { + "observed_rate": 0.004377964246625319, + "mean_prediction": 0.0016343142317923709, + "calibration_in_the_large": -0.002743650014832948, + "expected_calibration_error_10bin": 0.002743650014832948, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + "K58": { + "valid": 2792, + "positives": 5, + "negatives": 2787, + "auroc": 0.7656978830283458, + "auprc": 0.07009715424631391, + "brier": 0.0017759945697849518, + "calibration": { + "observed_rate": 0.0017908309455587394, + "mean_prediction": 0.0015864987201445878, + "calibration_in_the_large": -0.00020433222541415153, + "expected_calibration_error_10bin": 0.00020433222541415153, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + "K59": { + "valid": 2560, + "positives": 67, + "negatives": 2493, + "auroc": 0.7512976633080087, + "auprc": 0.12402570348847146, + "brier": 0.024651135895681388, + "calibration": { + "observed_rate": 0.026171875, + "mean_prediction": 0.018408356276347605, + "calibration_in_the_large": -0.0077635187236523955, + "expected_calibration_error_10bin": 0.007805934355121736, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + "K62": { + "valid": 2813, + "positives": 8, + "negatives": 2805, + "auroc": 0.7246434937611408, + "auprc": 0.005376298492538017, + "brier": 0.0028415069233205304, + "calibration": { + "observed_rate": 0.0028439388553146107, + "mean_prediction": 0.0014678880959519993, + "calibration_in_the_large": -0.0013760507593626114, + "expected_calibration_error_10bin": 0.0013760507593626114, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K63": { + "valid": 2810, + "positives": 13, + "negatives": 2797, + "auroc": 0.7185720964769946, + "auprc": 0.017927848156627985, + "brier": 0.004599312660880981, + "calibration": { + "observed_rate": 0.004626334519572953, + "mean_prediction": 0.0017793628311195777, + "calibration_in_the_large": -0.0028469716884533757, + "expected_calibration_error_10bin": 0.0028469716884533757, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + "K64": { + "valid": 2801, + "positives": 11, + "negatives": 2790, + "auroc": 0.7635711958292604, + "auprc": 0.013127256608340578, + "brier": 0.003909605219899158, + "calibration": { + "observed_rate": 0.003927168868261335, + "mean_prediction": 0.002449710809209587, + "calibration_in_the_large": -0.0014774580590517484, + "expected_calibration_error_10bin": 0.0014774580590517484, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "K65": { + "valid": 2813, + "positives": 9, + "negatives": 2804, + "auroc": 0.8661039784434934, + "auprc": 0.023704088973440195, + "brier": 0.003227392616412286, + "calibration": { + "observed_rate": 0.003199431212228937, + "mean_prediction": 0.002628653172154385, + "calibration_in_the_large": -0.0005707780400745523, + "expected_calibration_error_10bin": 0.001132902092369769, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K66": { + "valid": 2796, + "positives": 6, + "negatives": 2790, + "auroc": 0.716547192353644, + "auprc": 0.02566607986258421, + "brier": 0.002134497297018224, + "calibration": { + "observed_rate": 0.002145922746781116, + "mean_prediction": 0.001587781413508595, + "calibration_in_the_large": -0.000558141333272521, + "expected_calibration_error_10bin": 0.000558141333272521, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + "K70": { + "valid": 2774, + "positives": 1, + "negatives": 2773, + "auroc": 0.9340064911648035, + "auprc": 0.005434782608695652, + "brier": 0.00036896878626252553, + "calibration": { + "observed_rate": 0.0003604902667627974, + "mean_prediction": 0.000609003220887027, + "calibration_in_the_large": 0.0002485129541242296, + "expected_calibration_error_10bin": 0.0002485129541242296, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "K72": { + "valid": 2787, + "positives": 13, + "negatives": 2774, + "auroc": 0.9516388442127447, + "auprc": 0.2589555497027537, + "brier": 0.004149355241983823, + "calibration": { + "observed_rate": 0.0046645138141370645, + "mean_prediction": 0.002257095243611676, + "calibration_in_the_large": -0.0024074185705253884, + "expected_calibration_error_10bin": 0.0026825313633268093, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "K74": { + "valid": 2763, + "positives": 6, + "negatives": 2757, + "auroc": 0.9609478902188369, + "auprc": 0.035199819753988136, + "brier": 0.002199454368218929, + "calibration": { + "observed_rate": 0.002171552660152009, + "mean_prediction": 0.0015909457840810744, + "calibration_in_the_large": -0.0005806068760709343, + "expected_calibration_error_10bin": 0.0010001328739762717, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + "K75": { + "valid": 2798, + "positives": 9, + "negatives": 2789, + "auroc": 0.8612007489741444, + "auprc": 0.025218607873042885, + "brier": 0.003209946303931103, + "calibration": { + "observed_rate": 0.0032165832737669764, + "mean_prediction": 0.0017184092421346803, + "calibration_in_the_large": -0.001498174031632296, + "expected_calibration_error_10bin": 0.0016599728423184852, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + "K76": { + "valid": 2681, + "positives": 18, + "negatives": 2663, + "auroc": 0.8353778111570076, + "auprc": 0.17989029782058313, + "brier": 0.00607897939841415, + "calibration": { + "observed_rate": 0.006713912719134651, + "mean_prediction": 0.00289009243061641, + "calibration_in_the_large": -0.003823820288518241, + "expected_calibration_error_10bin": 0.004735292760076279, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9430179387970454 + }, + "K80": { + "valid": 2731, + "positives": 6, + "negatives": 2725, + "auroc": 0.6058715596330275, + "auprc": 0.0038184476096129356, + "brier": 0.002202263561383199, + "calibration": { + "observed_rate": 0.0021969974368363236, + "mean_prediction": 0.0025010105711324834, + "calibration_in_the_large": 0.0003040131342961598, + "expected_calibration_error_10bin": 0.0003040131342961598, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9606049947238833 + }, + "K81": { + "valid": 2825, + "positives": 5, + "negatives": 2820, + "auroc": 0.8675177304964539, + "auprc": 0.03100569643681338, + "brier": 0.0017478293847659004, + "calibration": { + "observed_rate": 0.0017699115044247787, + "mean_prediction": 0.0009614067258197656, + "calibration_in_the_large": -0.0008085047786050132, + "expected_calibration_error_10bin": 0.0008085047786050132, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "K82": { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.7122769703414865, + "auprc": 0.0037398997783747324, + "brier": 0.0010741426387115148, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0010641907938529185, + "calibration_in_the_large": 1.8678476772810305e-06, + "expected_calibration_error_10bin": 1.8678476772810305e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "K83": { + "valid": 2757, + "positives": 7, + "negatives": 2750, + "auroc": 0.8862857142857142, + "auprc": 0.15328474871343037, + "brier": 0.0024055745855786847, + "calibration": { + "observed_rate": 0.0025389916575988395, + "mean_prediction": 0.0018491913244321802, + "calibration_in_the_large": -0.0006898003331666594, + "expected_calibration_error_10bin": 0.0008527382287706211, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.969750263805839 + }, + "K85": { + "valid": 2779, + "positives": 3, + "negatives": 2776, + "auroc": 0.8109990393852066, + "auprc": 0.011757637561261173, + "brier": 0.0010763897881447178, + "calibration": { + "observed_rate": 0.0010795250089960418, + "mean_prediction": 0.0011140437143766072, + "calibration_in_the_large": 3.4518705380565465e-05, + "expected_calibration_error_10bin": 3.4518705380565465e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9774885684136475 + }, + "K86": { + "valid": 2785, + "positives": 5, + "negatives": 2780, + "auroc": 0.6771942446043165, + "auprc": 0.007630295414937732, + "brier": 0.0017992933348858341, + "calibration": { + "observed_rate": 0.0017953321364452424, + "mean_prediction": 0.0014400910926553833, + "calibration_in_the_large": -0.00035524104378985917, + "expected_calibration_error_10bin": 0.00035524104378985917, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K90": { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.6392226148409894, + "auprc": 0.0009784735812133072, + "brier": 0.0003534205471164563, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.0002453129018490403, + "calibration_in_the_large": -0.00010791917162323098, + "expected_calibration_error_10bin": 0.00010791917162323098, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "K91": { + "valid": 2768, + "positives": 15, + "negatives": 2753, + "auroc": 0.8517011744763289, + "auprc": 0.030885344400206828, + "brier": 0.005361121643947091, + "calibration": { + "observed_rate": 0.00541907514450867, + "mean_prediction": 0.002186352154961562, + "calibration_in_the_large": -0.0032327229895471083, + "expected_calibration_error_10bin": 0.0032327229895471083, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "K92": { + "valid": 2751, + "positives": 19, + "negatives": 2732, + "auroc": 0.840487015488942, + "auprc": 0.10926677417957235, + "brier": 0.006698503113478546, + "calibration": { + "observed_rate": 0.0069065794256633955, + "mean_prediction": 0.005605335506349029, + "calibration_in_the_large": -0.0013012439193143665, + "expected_calibration_error_10bin": 0.0013012439193143665, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "K94": { + "valid": 2823, + "positives": 12, + "negatives": 2811, + "auroc": 0.9145025495078857, + "auprc": 0.14418496768699127, + "brier": 0.004188329658527694, + "calibration": { + "observed_rate": 0.004250797024442083, + "mean_prediction": 0.0008388420148360009, + "calibration_in_the_large": -0.003411955009606082, + "expected_calibration_error_10bin": 0.003411955009606082, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "L02": { + "valid": 2807, + "positives": 11, + "negatives": 2796, + "auroc": 0.7905449343217583, + "auprc": 0.01322327359705045, + "brier": 0.0038971971084394994, + "calibration": { + "observed_rate": 0.003918774492340577, + "mean_prediction": 0.0031358503260722984, + "calibration_in_the_large": -0.0007829241662682786, + "expected_calibration_error_10bin": 0.0007829241662682786, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "L03": { + "valid": 2701, + "positives": 25, + "negatives": 2676, + "auroc": 0.7210014947683109, + "auprc": 0.05781068998498105, + "brier": 0.009077246274663527, + "calibration": { + "observed_rate": 0.009255831173639394, + "mean_prediction": 0.006027895803956915, + "calibration_in_the_large": -0.0032279353696824786, + "expected_calibration_error_10bin": 0.0032279353696824786, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9500527611677805 + }, + "L08": { + "valid": 2830, + "positives": 5, + "negatives": 2825, + "auroc": 0.6637168141592921, + "auprc": 0.004454720749220028, + "brier": 0.0017654038494525125, + "calibration": { + "observed_rate": 0.0017667844522968198, + "mean_prediction": 0.0006689169573271934, + "calibration_in_the_large": -0.0010978674949696263, + "expected_calibration_error_10bin": 0.0010978674949696263, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9954273654590221 + }, + "L27": { + "valid": 2818, + "positives": 7, + "negatives": 2811, + "auroc": 0.6867916857244498, + "auprc": 0.0067786708651656645, + "brier": 0.0025095019595497503, + "calibration": { + "observed_rate": 0.00248403122782115, + "mean_prediction": 0.0020460429929054676, + "calibration_in_the_large": -0.0004379882349156822, + "expected_calibration_error_10bin": 0.0005913909567806273, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "L29": { + "valid": 2817, + "positives": 3, + "negatives": 2814, + "auroc": 0.7828713574982231, + "auprc": 0.0032691331381721495, + "brier": 0.0010848355374668362, + "calibration": { + "observed_rate": 0.0010649627263045794, + "mean_prediction": 0.0017638795077743927, + "calibration_in_the_large": 0.0006989167814698133, + "expected_calibration_error_10bin": 0.0006989167814698133, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "L30": { + "valid": 2816, + "positives": 5, + "negatives": 2811, + "auroc": 0.7267164710067592, + "auprc": 0.04614443432890591, + "brier": 0.0017609134987867606, + "calibration": { + "observed_rate": 0.0017755681818181818, + "mean_prediction": 0.0010194180288391021, + "calibration_in_the_large": -0.0007561501529790796, + "expected_calibration_error_10bin": 0.0007561501529790796, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "L50": { + "valid": 2835, + "positives": 2, + "negatives": 2833, + "auroc": 0.8635721849629369, + "auprc": 0.01179029304029304, + "brier": 0.000704496802982482, + "calibration": { + "observed_rate": 0.0007054673721340388, + "mean_prediction": 0.0006785960482740953, + "calibration_in_the_large": -2.6871323859943563e-05, + "expected_calibration_error_10bin": 2.6871323859943563e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.997186071051706 + }, + "L53": { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 3.159545977324698e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0007199237299791373, + "calibration_in_the_large": 0.0007199237299791373, + "expected_calibration_error_10bin": 0.0007199237299791373, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "L76": { + "valid": 2793, + "positives": 10, + "negatives": 2783, + "auroc": 0.6732662594322674, + "auprc": 0.0058209680472173795, + "brier": 0.00357463171041544, + "calibration": { + "observed_rate": 0.0035803795202291443, + "mean_prediction": 0.0018223844907551624, + "calibration_in_the_large": -0.001757995029473982, + "expected_calibration_error_10bin": 0.001757995029473982, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "L89": { + "valid": 2798, + "positives": 14, + "negatives": 2784, + "auroc": 0.8531660509031199, + "auprc": 0.039263174268526824, + "brier": 0.004920839181548243, + "calibration": { + "observed_rate": 0.005003573981415297, + "mean_prediction": 0.003417749448023237, + "calibration_in_the_large": -0.0015858245333920601, + "expected_calibration_error_10bin": 0.0015858245333920601, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + "L97": { + "valid": 2789, + "positives": 5, + "negatives": 2784, + "auroc": 0.9709051724137931, + "auprc": 0.06536815017207173, + "brier": 0.0017574374178235532, + "calibration": { + "observed_rate": 0.0017927572606669057, + "mean_prediction": 0.0022041646259341467, + "calibration_in_the_large": 0.00041140736526724107, + "expected_calibration_error_10bin": 0.00041140736526724096, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "L98": { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.5489779038166135, + "auprc": 0.0015047468687583773, + "brier": 0.0010669971092523917, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0012092890918795089, + "calibration_in_the_large": 0.0001469661457038714, + "expected_calibration_error_10bin": 0.0001469661457038714, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "M10": { + "valid": 2713, + "positives": 10, + "negatives": 2703, + "auroc": 0.7903440621531631, + "auprc": 0.02261016625718041, + "brier": 0.0036493583098650907, + "calibration": { + "observed_rate": 0.003685956505713233, + "mean_prediction": 0.0028914467277220066, + "calibration_in_the_large": -0.0007945097779912262, + "expected_calibration_error_10bin": 0.0007945097779912262, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9542736545902216 + }, + "M16": { + "valid": 2790, + "positives": 2, + "negatives": 2788, + "auroc": 0.8452295552367288, + "auprc": 0.008399138549892318, + "brier": 0.0007152645323182092, + "calibration": { + "observed_rate": 0.0007168458781362007, + "mean_prediction": 0.0008166856757603083, + "calibration_in_the_large": 9.983979762410761e-05, + "expected_calibration_error_10bin": 9.983979762410761e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + "M17": { + "valid": 2733, + "positives": 6, + "negatives": 2727, + "auroc": 0.7582202664710915, + "auprc": 0.00565562563928916, + "brier": 0.002191136269076433, + "calibration": { + "observed_rate": 0.0021953896816684962, + "mean_prediction": 0.0016198834380305122, + "calibration_in_the_large": -0.0005755062436379841, + "expected_calibration_error_10bin": 0.0005755062436379841, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + "M19": { + "valid": 2674, + "positives": 24, + "negatives": 2650, + "auroc": 0.6784591194968553, + "auprc": 0.0174985853583628, + "brier": 0.008908988834451797, + "calibration": { + "observed_rate": 0.008975317875841436, + "mean_prediction": 0.003438053471802326, + "calibration_in_the_large": -0.0055372644040391095, + "expected_calibration_error_10bin": 0.0055372644040391095, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.940555750967288 + }, + "M21": { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.9319148936170213, + "auprc": 0.0051813471502590676, + "brier": 0.00035741411897570794, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0015554144714945823, + "calibration_in_the_large": 0.001200930246042615, + "expected_calibration_error_10bin": 0.001200930246042615, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "M25": { + "valid": 2717, + "positives": 20, + "negatives": 2697, + "auroc": 0.675176121616611, + "auprc": 0.03136357425638935, + "brier": 0.007253060544759465, + "calibration": { + "observed_rate": 0.00736105999263894, + "mean_prediction": 0.007420478396068927, + "calibration_in_the_large": 5.9418403429986784e-05, + "expected_calibration_error_10bin": 5.9418403429986784e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9556806190643686 + }, + "M35": { + "valid": 2806, + "positives": 1, + "negatives": 2805, + "auroc": 0.8406417112299466, + "auprc": 0.002232142857142857, + "brier": 0.0003565581740437144, + "calibration": { + "observed_rate": 0.0003563791874554526, + "mean_prediction": 0.0003268443201050208, + "calibration_in_the_large": -2.9534867350431825e-05, + "expected_calibration_error_10bin": 2.9534867350431825e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "M46": { + "valid": 2814, + "positives": 3, + "negatives": 2811, + "auroc": 0.4708881773983161, + "auprc": 0.0014618254750592842, + "brier": 0.0010665256846068864, + "calibration": { + "observed_rate": 0.0010660980810234541, + "mean_prediction": 0.0006634559370800449, + "calibration_in_the_large": -0.0004026421439434092, + "expected_calibration_error_10bin": 0.0004026421439434092, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "M47": { + "valid": 2743, + "positives": 3, + "negatives": 2740, + "auroc": 0.5100973236009733, + "auprc": 0.001756159084809995, + "brier": 0.001103771699063596, + "calibration": { + "observed_rate": 0.001093693036820999, + "mean_prediction": 0.002650941889227844, + "calibration_in_the_large": 0.0015572488524068452, + "expected_calibration_error_10bin": 0.0015572488524068452, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + "M48": { + "valid": 2690, + "positives": 5, + "negatives": 2685, + "auroc": 0.7439851024208566, + "auprc": 0.02078101460287015, + "brier": 0.0018572813059418753, + "calibration": { + "observed_rate": 0.0018587360594795538, + "mean_prediction": 0.0036002308448839313, + "calibration_in_the_large": 0.0017414947854043775, + "expected_calibration_error_10bin": 0.0017414947854043775, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9461836088638762 + }, + "M51": { + "valid": 2785, + "positives": 1, + "negatives": 2784, + "auroc": 0.5136494252873564, + "auprc": 0.0007380073800738007, + "brier": 0.0003616095722688278, + "calibration": { + "observed_rate": 0.0003590664272890485, + "mean_prediction": 0.0013321120993026675, + "calibration_in_the_large": 0.0009730456720136191, + "expected_calibration_error_10bin": 0.0009730456720136191, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "M54": { + "valid": 2567, + "positives": 27, + "negatives": 2540, + "auroc": 0.6484835228929717, + "auprc": 0.021484507276463255, + "brier": 0.010415592503066248, + "calibration": { + "observed_rate": 0.010518114530580444, + "mean_prediction": 0.009389219374584928, + "calibration_in_the_large": -0.0011288951559955164, + "expected_calibration_error_10bin": 0.001469667175916043, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9029194512838551 + }, + "M62": { + "valid": 2781, + "positives": 5, + "negatives": 2776, + "auroc": 0.7759365994236311, + "auprc": 0.0401215861471497, + "brier": 0.00178370822550704, + "calibration": { + "observed_rate": 0.0017979144192736426, + "mean_prediction": 0.0023541792443113195, + "calibration_in_the_large": 0.000556264825037677, + "expected_calibration_error_10bin": 0.000556264825037677, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + "M79": { + "valid": 2697, + "positives": 19, + "negatives": 2678, + "auroc": 0.7350536535513541, + "auprc": 0.02027197966076779, + "brier": 0.006969635207612115, + "calibration": { + "observed_rate": 0.0070448646644419724, + "mean_prediction": 0.006255252656735263, + "calibration_in_the_large": -0.0007896120077067097, + "expected_calibration_error_10bin": 0.0007896120077067097, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9486457966936335 + }, + "M81": { + "valid": 2705, + "positives": 8, + "negatives": 2697, + "auroc": 0.7973210975157583, + "auprc": 0.016558689483121197, + "brier": 0.002999150536971624, + "calibration": { + "observed_rate": 0.0029574861367837337, + "mean_prediction": 0.004134061627698636, + "calibration_in_the_large": 0.001176575490914902, + "expected_calibration_error_10bin": 0.0011765754909149025, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9514597256419275 + }, + "M84": { + "valid": 2818, + "positives": 3, + "negatives": 2815, + "auroc": 0.7267021906453522, + "auprc": 0.0224552102080192, + "brier": 0.0010605410005145902, + "calibration": { + "observed_rate": 0.0010645848119233499, + "mean_prediction": 0.0011412218886101952, + "calibration_in_the_large": 7.66370766868453e-05, + "expected_calibration_error_10bin": 7.66370766868453e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "M85": { + "valid": 2768, + "positives": 7, + "negatives": 2761, + "auroc": 0.6815336058363947, + "auprc": 0.006256229863774961, + "brier": 0.0025226618593282056, + "calibration": { + "observed_rate": 0.0025289017341040463, + "mean_prediction": 0.0015219419754807786, + "calibration_in_the_large": -0.0010069597586232677, + "expected_calibration_error_10bin": 0.0010069597586232677, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "M86": { + "valid": 2803, + "positives": 9, + "negatives": 2794, + "auroc": 0.7626660303825659, + "auprc": 0.019748212831965668, + "brier": 0.0031891970611149186, + "calibration": { + "observed_rate": 0.003210845522654299, + "mean_prediction": 0.00241334647399006, + "calibration_in_the_large": -0.000797499048664239, + "expected_calibration_error_10bin": 0.000797499048664239, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9859303552585297 + }, + "M94": { + "valid": 2819, + "positives": 1, + "negatives": 2818, + "auroc": 0.5546486870120653, + "auprc": 0.0007961783439490446, + "brier": 0.00035480654904427455, + "calibration": { + "observed_rate": 0.000354735721887194, + "mean_prediction": 0.0001540032476549492, + "calibration_in_the_large": -0.00020073247423224482, + "expected_calibration_error_10bin": 0.00020073247423224482, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "M96": { + "valid": 2804, + "positives": 1, + "negatives": 2803, + "auroc": 0.9486264716375312, + "auprc": 0.006896551724137931, + "brier": 0.00035790665330401767, + "calibration": { + "observed_rate": 0.0003566333808844508, + "mean_prediction": 0.0013217003115562533, + "calibration_in_the_large": 0.0009650669306718025, + "expected_calibration_error_10bin": 0.0009650669306718025, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "N12": { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.6403431199151044, + "auprc": 0.0023204560785054207, + "brier": 0.001420106367978811, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0008610267099635075, + "calibration_in_the_large": -0.0005519015839255776, + "expected_calibration_error_10bin": 0.0005519015839255776, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "N13": { + "valid": 2756, + "positives": 5, + "negatives": 2751, + "auroc": 0.6777898945837877, + "auprc": 0.005850764568279486, + "brier": 0.0018269945106915552, + "calibration": { + "observed_rate": 0.00181422351233672, + "mean_prediction": 0.0030378363321681484, + "calibration_in_the_large": 0.0012236128198314284, + "expected_calibration_error_10bin": 0.0012236128198314284, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + "N14": { + "valid": 2826, + "positives": 6, + "negatives": 2820, + "auroc": 0.7424940898345154, + "auprc": 0.038583014529071695, + "brier": 0.002100057375103284, + "calibration": { + "observed_rate": 0.0021231422505307855, + "mean_prediction": 0.001292133949777303, + "calibration_in_the_large": -0.0008310083007534825, + "expected_calibration_error_10bin": 0.0008310083007534825, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "N17": { + "valid": 2292, + "positives": 61, + "negatives": 2231, + "auroc": 0.8071804895253911, + "auprc": 0.11813673648733586, + "brier": 0.024673313025108466, + "calibration": { + "observed_rate": 0.026614310645724257, + "mean_prediction": 0.025047051250240985, + "calibration_in_the_large": -0.0015672593954832725, + "expected_calibration_error_10bin": 0.004294247511499209, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8061906436862469 + }, + "N18": { + "valid": 2440, + "positives": 30, + "negatives": 2410, + "auroc": 0.8650899031811895, + "auprc": 0.13325251192288892, + "brier": 0.011460324166057438, + "calibration": { + "observed_rate": 0.012295081967213115, + "mean_prediction": 0.008723420073859968, + "calibration_in_the_large": -0.003571661893353147, + "expected_calibration_error_10bin": 0.003907972747076768, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.858248329229687 + }, + "N20": { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.7052358827734095, + "auprc": 0.005772886019369476, + "brier": 0.0028469968067843933, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.000690448663861328, + "calibration_in_the_large": -0.002160584835782293, + "expected_calibration_error_10bin": 0.002160584835782293, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "N25": { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.9007784854918612, + "auprc": 0.040448963449376096, + "brier": 0.001752077969130725, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.0005846891836854067, + "calibration_in_the_large": -0.0011814711836759496, + "expected_calibration_error_10bin": 0.0011814711836759496, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "N28": { + "valid": 2789, + "positives": 3, + "negatives": 2786, + "auroc": 0.9148121560181862, + "auprc": 0.011086987034896965, + "brier": 0.0010720900383326157, + "calibration": { + "observed_rate": 0.0010756543564001434, + "mean_prediction": 0.0019033814202924753, + "calibration_in_the_large": 0.0008277270638923319, + "expected_calibration_error_10bin": 0.0008277270638923319, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "N30": { + "valid": 2829, + "positives": 8, + "negatives": 2821, + "auroc": 0.7496455157745481, + "auprc": 0.009343477084646931, + "brier": 0.0028178225168040204, + "calibration": { + "observed_rate": 0.002827854365500177, + "mean_prediction": 0.0016715865995317431, + "calibration_in_the_large": -0.0011562677659684337, + "expected_calibration_error_10bin": 0.0011562677659684337, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "N32": { + "valid": 2807, + "positives": 10, + "negatives": 2797, + "auroc": 0.8633178405434394, + "auprc": 0.024588629918911295, + "brier": 0.0035297888863951923, + "calibration": { + "observed_rate": 0.003562522265764161, + "mean_prediction": 0.0024540613699301247, + "calibration_in_the_large": -0.0011084608958340362, + "expected_calibration_error_10bin": 0.0011084608958340362, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "N39": { + "valid": 2520, + "positives": 54, + "negatives": 2466, + "auroc": 0.7831996635727374, + "auprc": 0.085286493716984, + "brier": 0.02046166042369011, + "calibration": { + "observed_rate": 0.02142857142857143, + "mean_prediction": 0.018940907680717784, + "calibration_in_the_large": -0.0024876637478536447, + "expected_calibration_error_10bin": 0.0024876637478536434, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8863876187126275 + }, + "N40": { + "valid": 2606, + "positives": 13, + "negatives": 2593, + "auroc": 0.8063128541339109, + "auprc": 0.025241665514347388, + "brier": 0.004932334024321109, + "calibration": { + "observed_rate": 0.0049884881043745204, + "mean_prediction": 0.004090781871622516, + "calibration_in_the_large": -0.0008977062327520042, + "expected_calibration_error_10bin": 0.0008977062327520042, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9166373549067885 + }, + "N73": { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.955076052352317, + "auprc": 0.026982591876208897, + "brier": 0.000703324632061794, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0005965392104761826, + "calibration_in_the_large": -0.00011042438089886163, + "expected_calibration_error_10bin": 0.00011042438089886163, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "N99": { + "valid": 2799, + "positives": 3, + "negatives": 2796, + "auroc": 0.6701239866475918, + "auprc": 0.0025669167290922556, + "brier": 0.001076382358901914, + "calibration": { + "observed_rate": 0.0010718113612004287, + "mean_prediction": 0.0015034735085154827, + "calibration_in_the_large": 0.000431662147315054, + "expected_calibration_error_10bin": 0.000431662147315054, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9845233907843827 + }, + "O69": { + "valid": 2743, + "positives": 4, + "negatives": 2739, + "auroc": 0.9984483388097846, + "auprc": 0.360551948051948, + "brier": 0.0010363516225176366, + "calibration": { + "observed_rate": 0.0014582573824279985, + "mean_prediction": 0.0017683508841390796, + "calibration_in_the_large": 0.0003100935017110811, + "expected_calibration_error_10bin": 0.0009495014919445436, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + "O99": { + "valid": 2652, + "positives": 1, + "negatives": 2651, + "auroc": 0.999622783855149, + "auprc": 0.5, + "brier": 0.0005196094098595221, + "calibration": { + "observed_rate": 0.0003770739064856712, + "mean_prediction": 0.0022322998450550863, + "calibration_in_the_large": 0.0018552259385694152, + "expected_calibration_error_10bin": 0.0018552259385694154, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9328174463594794 + }, + "Q21": { + "valid": 2810, + "positives": 1, + "negatives": 2809, + "auroc": 0.7742969028123887, + "auprc": 0.0015748031496062992, + "brier": 0.00035716694042051204, + "calibration": { + "observed_rate": 0.00035587188612099647, + "mean_prediction": 0.0010384451887038271, + "calibration_in_the_large": 0.0006825733025828307, + "expected_calibration_error_10bin": 0.0006825733025828307, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + "U07": { + "valid": 2828, + "positives": 0, + "negatives": 2828, + "auroc": null, + "auprc": null, + "brier": 1.5555242088201078e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0020367177820827796, + "calibration_in_the_large": 0.0020367177820827796, + "expected_calibration_error_10bin": 0.0020367177820827796, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9947238832219486 + } + }, + "150": { + "A04": { + "valid": 2782, + "positives": 20, + "negatives": 2762, + "auroc": 0.77302679217958, + "auprc": 0.06849520770192043, + "brier": 0.007156401951542567, + "calibration": { + "observed_rate": 0.007189072609633357, + "mean_prediction": 0.007288729854923373, + "calibration_in_the_large": 9.965724529001612e-05, + "expected_calibration_error_10bin": 0.0016215723490688434, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + "A08": { + "valid": 2818, + "positives": 10, + "negatives": 2808, + "auroc": 0.7982549857549858, + "auprc": 0.014331375691870832, + "brier": 0.0035360095124622537, + "calibration": { + "observed_rate": 0.0035486160397444995, + "mean_prediction": 0.0022213549692763367, + "calibration_in_the_large": -0.0013272610704681627, + "expected_calibration_error_10bin": 0.0013272610704681627, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "A41": { + "valid": 2664, + "positives": 40, + "negatives": 2624, + "auroc": 0.7447122713414634, + "auprc": 0.04242791574694507, + "brier": 0.015074716094798393, + "calibration": { + "observed_rate": 0.015015015015015015, + "mean_prediction": 0.015892243197924073, + "calibration_in_the_large": 0.0008772281829090584, + "expected_calibration_error_10bin": 0.005552512976172399, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9370383397819205 + }, + "B00": { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.724313446969697, + "auprc": 0.05824935899315498, + "brier": 0.0010529156137794053, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0008437551694176734, + "calibration_in_the_large": -0.00022045199624390864, + "expected_calibration_error_10bin": 0.00022045199624390864, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "B02": { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.953307392996109, + "auprc": 0.007518796992481203, + "brier": 0.00035496411567765814, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0006839680527965232, + "calibration_in_the_large": 0.0003303612635461696, + "expected_calibration_error_10bin": 0.0003303612635461696, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "B18": { + "valid": 2782, + "positives": 4, + "negatives": 2778, + "auroc": 0.9640028797696184, + "auprc": 0.03080677129271977, + "brier": 0.0014521801646633383, + "calibration": { + "observed_rate": 0.0014378145219266715, + "mean_prediction": 0.0009296521886366337, + "calibration_in_the_large": -0.0005081623332900379, + "expected_calibration_error_10bin": 0.0007404181359947756, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + "B19": { + "valid": 2763, + "positives": 15, + "negatives": 2748, + "auroc": 0.8993449781659388, + "auprc": 0.09067913643143219, + "brier": 0.005268091687163112, + "calibration": { + "observed_rate": 0.0054288816503800215, + "mean_prediction": 0.0018060709061094075, + "calibration_in_the_large": -0.003622810744270614, + "expected_calibration_error_10bin": 0.0036228107442706136, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + "B20": { + "valid": 2829, + "positives": 3, + "negatives": 2826, + "auroc": 0.9690964850200519, + "auprc": 0.022073456065412698, + "brier": 0.0010708081453279406, + "calibration": { + "observed_rate": 0.0010604453870625664, + "mean_prediction": 0.0006683563022421463, + "calibration_in_the_large": -0.0003920890848204201, + "expected_calibration_error_10bin": 0.000547405341715718, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "B34": { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.9406614785992218, + "auprc": 0.05900495469277041, + "brier": 0.0014003302911516358, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0006310280122692559, + "calibration_in_the_large": -0.0007819002816198292, + "expected_calibration_error_10bin": 0.0007819002816198292, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "B35": { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 1.6297477859820206e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0007136941100856224, + "calibration_in_the_large": 0.0007136941100856224, + "expected_calibration_error_10bin": 0.0007136941100856224, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "B37": { + "valid": 2768, + "positives": 23, + "negatives": 2745, + "auroc": 0.7489348222063832, + "auprc": 0.02245586260299708, + "brier": 0.00826075161254449, + "calibration": { + "observed_rate": 0.008309248554913294, + "mean_prediction": 0.005079855491235032, + "calibration_in_the_large": -0.003229393063678262, + "expected_calibration_error_10bin": 0.0034825766424599175, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "B95": { + "valid": 2678, + "positives": 42, + "negatives": 2636, + "auroc": 0.7445082737191994, + "auprc": 0.03289625514995158, + "brier": 0.015385016839054218, + "calibration": { + "observed_rate": 0.01568334578043316, + "mean_prediction": 0.012379417976763904, + "calibration_in_the_large": -0.003303927803669256, + "expected_calibration_error_10bin": 0.003541544702524304, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9419627154414351 + }, + "B96": { + "valid": 2630, + "positives": 57, + "negatives": 2573, + "auroc": 0.7628272001418237, + "auprc": 0.0680888162915625, + "brier": 0.02080729733842305, + "calibration": { + "observed_rate": 0.02167300380228137, + "mean_prediction": 0.014410561854803241, + "calibration_in_the_large": -0.007262441947478129, + "expected_calibration_error_10bin": 0.008326356952453116, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9250791417516707 + }, + "B97": { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.50442164839052, + "auprc": 0.0007132667617689016, + "brier": 0.0003737672569471305, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0007823751206979968, + "calibration_in_the_large": 0.0004287683314476432, + "expected_calibration_error_10bin": 0.00042876833144764326, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "C18": { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.97537207654146, + "auprc": 0.020556478405315614, + "brier": 0.000704559302314515, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0006308987718386791, + "calibration_in_the_large": -7.731652561174588e-05, + "expected_calibration_error_10bin": 7.731652561174588e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "C22": { + "valid": 2812, + "positives": 5, + "negatives": 2807, + "auroc": 0.9191307445671535, + "auprc": 0.028192481965385367, + "brier": 0.001785644833052986, + "calibration": { + "observed_rate": 0.0017780938833570413, + "mean_prediction": 0.0004699977242157816, + "calibration_in_the_large": -0.0013080961591412598, + "expected_calibration_error_10bin": 0.001379279801034177, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9890960253253606 + }, + "C25": { + "valid": 2809, + "positives": 2, + "negatives": 2807, + "auroc": 0.964909155682223, + "auprc": 0.10512820512820513, + "brier": 0.0006923041390797328, + "calibration": { + "observed_rate": 0.000711997152011392, + "mean_prediction": 0.0009336340653982535, + "calibration_in_the_large": 0.00022163691338686147, + "expected_calibration_error_10bin": 0.0003363333472798637, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "C61": { + "valid": 2805, + "positives": 2, + "negatives": 2803, + "auroc": 0.9955404923296468, + "auprc": 0.1125, + "brier": 0.0007007345941913116, + "calibration": { + "observed_rate": 0.00071301247771836, + "mean_prediction": 0.0007969421024362145, + "calibration_in_the_large": 8.392962471785444e-05, + "expected_calibration_error_10bin": 8.392962471785444e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "C67": { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9697559250088433, + "auprc": 0.01793400286944046, + "brier": 0.0007047657981645904, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.00037292426260086776, + "calibration_in_the_large": -0.00033403932877417645, + "expected_calibration_error_10bin": 0.00033403932877417645, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "C77": { + "valid": 2762, + "positives": 14, + "negatives": 2748, + "auroc": 0.8852932002495322, + "auprc": 0.11371975695702183, + "brier": 0.004834928726779719, + "calibration": { + "observed_rate": 0.005068790731354091, + "mean_prediction": 0.004628460141093963, + "calibration_in_the_large": -0.00044033059026012816, + "expected_calibration_error_10bin": 0.0006636775242092168, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + "C78": { + "valid": 2762, + "positives": 21, + "negatives": 2741, + "auroc": 0.8660203957540696, + "auprc": 0.14917888246911332, + "brier": 0.007098261914919431, + "calibration": { + "observed_rate": 0.007603186097031137, + "mean_prediction": 0.004822752628070484, + "calibration_in_the_large": -0.002780433468960653, + "expected_calibration_error_10bin": 0.005151357528637224, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + "C79": { + "valid": 2751, + "positives": 14, + "negatives": 2737, + "auroc": 0.9014823320632601, + "auprc": 0.10462345845623655, + "brier": 0.004891946611353199, + "calibration": { + "observed_rate": 0.005089058524173028, + "mean_prediction": 0.004897877019037019, + "calibration_in_the_large": -0.00019118150513600975, + "expected_calibration_error_10bin": 0.0014918147783612365, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "C83": { + "valid": 2820, + "positives": 0, + "negatives": 2820, + "auroc": null, + "auprc": null, + "brier": 2.9955414495098885e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0005074566382974401, + "calibration_in_the_large": 0.0005074566382974401, + "expected_calibration_error_10bin": 0.0005074566382974401, + "nonempty_bins": 2 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9919099542736546 + }, + "D25": { + "valid": 2792, + "positives": 2, + "negatives": 2790, + "auroc": 0.9930107526881721, + "auprc": 0.275, + "brier": 0.0006960581041256912, + "calibration": { + "observed_rate": 0.0007163323782234957, + "mean_prediction": 0.0005117909339117336, + "calibration_in_the_large": -0.0002045414443117621, + "expected_calibration_error_10bin": 0.0002045414443117621, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + "D47": { + "valid": 2796, + "positives": 6, + "negatives": 2790, + "auroc": 0.5723416965352449, + "auprc": 0.0031425716369741868, + "brier": 0.002152992724946016, + "calibration": { + "observed_rate": 0.002145922746781116, + "mean_prediction": 0.002066866812739098, + "calibration_in_the_large": -7.905593404201796e-05, + "expected_calibration_error_10bin": 7.905593404201796e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + "D50": { + "valid": 2663, + "positives": 39, + "negatives": 2624, + "auroc": 0.8221153846153846, + "auprc": 0.12113708560340535, + "brier": 0.013946592344568177, + "calibration": { + "observed_rate": 0.01464513706346226, + "mean_prediction": 0.008917223128804554, + "calibration_in_the_large": -0.0057279139346577065, + "expected_calibration_error_10bin": 0.0057279139346577065, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9366865986633838 + }, + "D53": { + "valid": 2805, + "positives": 12, + "negatives": 2793, + "auroc": 0.8540100250626567, + "auprc": 0.052019239891749135, + "brier": 0.004185449615436182, + "calibration": { + "observed_rate": 0.0042780748663101605, + "mean_prediction": 0.003329801603965333, + "calibration_in_the_large": -0.0009482732623448276, + "expected_calibration_error_10bin": 0.0010283225552713102, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "D59": { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 4.893493523880063e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0006515697495180529, + "calibration_in_the_large": 0.0006515697495180529, + "expected_calibration_error_10bin": 0.0006515697495180529, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "D61": { + "valid": 2773, + "positives": 21, + "negatives": 2752, + "auroc": 0.8955737818383167, + "auprc": 0.14844622335530328, + "brier": 0.007063705370142981, + "calibration": { + "observed_rate": 0.007573025604038947, + "mean_prediction": 0.007811709263199621, + "calibration_in_the_large": 0.0002386836591606739, + "expected_calibration_error_10bin": 0.0016435291167441496, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + "D62": { + "valid": 2499, + "positives": 45, + "negatives": 2454, + "auroc": 0.810902834374717, + "auprc": 0.09328933189084601, + "brier": 0.017242695390766633, + "calibration": { + "observed_rate": 0.01800720288115246, + "mean_prediction": 0.011987635794334862, + "calibration_in_the_large": -0.006019567086817598, + "expected_calibration_error_10bin": 0.006019567086817599, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8790010552233556 + }, + "D63": { + "valid": 2686, + "positives": 55, + "negatives": 2631, + "auroc": 0.8735289036315262, + "auprc": 0.11470629757487305, + "brier": 0.01931762476363834, + "calibration": { + "observed_rate": 0.020476545048399106, + "mean_prediction": 0.015647425676629443, + "calibration_in_the_large": -0.0048291193717696634, + "expected_calibration_error_10bin": 0.008050661164700655, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9447766443897292 + }, + "D64": { + "valid": 2434, + "positives": 85, + "negatives": 2349, + "auroc": 0.7964390353842686, + "auprc": 0.15427007943317622, + "brier": 0.0316607769661918, + "calibration": { + "observed_rate": 0.03492193919474117, + "mean_prediction": 0.02833965491232192, + "calibration_in_the_large": -0.006582284282419245, + "expected_calibration_error_10bin": 0.00917623322367157, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8561378825184665 + }, + "D65": { + "valid": 2833, + "positives": 3, + "negatives": 2830, + "auroc": 0.9307420494699646, + "auprc": 0.012100328941941912, + "brier": 0.0010576415316287306, + "calibration": { + "observed_rate": 0.0010589481115425344, + "mean_prediction": 0.0005242180545564572, + "calibration_in_the_large": -0.0005347300569860772, + "expected_calibration_error_10bin": 0.0005347300569860772, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9964825888146325 + }, + "D68": { + "valid": 2682, + "positives": 39, + "negatives": 2643, + "auroc": 0.7964822414311631, + "auprc": 0.06230448424081352, + "brier": 0.014171302362572144, + "calibration": { + "observed_rate": 0.0145413870246085, + "mean_prediction": 0.005945586173180076, + "calibration_in_the_large": -0.008595800851428425, + "expected_calibration_error_10bin": 0.009184127847633262, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9433696799155822 + }, + "D69": { + "valid": 2586, + "positives": 52, + "negatives": 2534, + "auroc": 0.8520050391597352, + "auprc": 0.21960200763504173, + "brier": 0.01754072831980889, + "calibration": { + "observed_rate": 0.020108275328692964, + "mean_prediction": 0.012878656675958968, + "calibration_in_the_large": -0.0072296186527339955, + "expected_calibration_error_10bin": 0.007229618652733994, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9096025325360535 + }, + "D70": { + "valid": 2787, + "positives": 20, + "negatives": 2767, + "auroc": 0.8735995663173112, + "auprc": 0.14798201704844233, + "brier": 0.0067125405521594765, + "calibration": { + "observed_rate": 0.007176175098672408, + "mean_prediction": 0.006492506091408303, + "calibration_in_the_large": -0.0006836690072641047, + "expected_calibration_error_10bin": 0.0029968840321537103, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "D72": { + "valid": 2595, + "positives": 45, + "negatives": 2550, + "auroc": 0.7308148148148148, + "auprc": 0.06069735466294658, + "brier": 0.0167968439413764, + "calibration": { + "observed_rate": 0.017341040462427744, + "mean_prediction": 0.02044974871877911, + "calibration_in_the_large": 0.0031087082563513654, + "expected_calibration_error_10bin": 0.003767966164898681, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9127682026028843 + }, + "D73": { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.8836110126432707, + "auprc": 0.17230300622434114, + "brier": 0.0010489153669810544, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0005021722383264756, + "calibration_in_the_large": -0.0005601507078491619, + "expected_calibration_error_10bin": 0.0005601507078491619, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "D75": { + "valid": 2831, + "positives": 2, + "negatives": 2829, + "auroc": 0.9482149169317781, + "auprc": 0.0098513981863932, + "brier": 0.0007046952540073478, + "calibration": { + "observed_rate": 0.0007064641469445425, + "mean_prediction": 0.0008928051295593746, + "calibration_in_the_large": 0.00018634098261483207, + "expected_calibration_error_10bin": 0.00018634098261483207, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "D80": { + "valid": 2832, + "positives": 6, + "negatives": 2826, + "auroc": 0.9823071479122435, + "auprc": 0.07926871154048248, + "brier": 0.0020995993844364147, + "calibration": { + "observed_rate": 0.00211864406779661, + "mean_prediction": 0.00041158544488056984, + "calibration_in_the_large": -0.0017070586229160404, + "expected_calibration_error_10bin": 0.0017847299627461398, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + "D89": { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.6731922398589065, + "auprc": 0.007410167564286757, + "brier": 0.0007709636336714509, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0005472338041310821, + "calibration_in_the_large": -0.00015773623464227003, + "expected_calibration_error_10bin": 0.0005030362576105933, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + "E03": { + "valid": 2480, + "positives": 18, + "negatives": 2462, + "auroc": 0.758665041971297, + "auprc": 0.058615077704016166, + "brier": 0.0071575934610439386, + "calibration": { + "observed_rate": 0.007258064516129033, + "mean_prediction": 0.003004560609101205, + "calibration_in_the_large": -0.0042535039070278275, + "expected_calibration_error_10bin": 0.0042535039070278275, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8723179739711572 + }, + "E04": { + "valid": 2775, + "positives": 9, + "negatives": 2766, + "auroc": 0.7774965855226159, + "auprc": 0.011831755796112517, + "brier": 0.003226574945652998, + "calibration": { + "observed_rate": 0.003243243243243243, + "mean_prediction": 0.0018760097876918997, + "calibration_in_the_large": -0.0013672334555513434, + "expected_calibration_error_10bin": 0.0013672334555513434, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + "E05": { + "valid": 2806, + "positives": 2, + "negatives": 2804, + "auroc": 0.3405848787446505, + "auprc": 0.0007875076575830915, + "brier": 0.0007129572268647111, + "calibration": { + "observed_rate": 0.0007127583749109052, + "mean_prediction": 0.0005416107436595107, + "calibration_in_the_large": -0.00017114763125139455, + "expected_calibration_error_10bin": 0.00017114763125139455, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "E11": { + "valid": 2194, + "positives": 13, + "negatives": 2181, + "auroc": 0.8036186646915671, + "auprc": 0.01828658454415099, + "brier": 0.005883858548974521, + "calibration": { + "observed_rate": 0.005925250683682771, + "mean_prediction": 0.003151150199593564, + "calibration_in_the_large": -0.002774100484089207, + "expected_calibration_error_10bin": 0.002774100484089207, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7717200140696447 + }, + "E16": { + "valid": 2816, + "positives": 5, + "negatives": 2811, + "auroc": 0.5727499110636785, + "auprc": 0.002433596270246539, + "brier": 0.0017847114524653061, + "calibration": { + "observed_rate": 0.0017755681818181818, + "mean_prediction": 0.0016217702353506654, + "calibration_in_the_large": -0.00015379794646751634, + "expected_calibration_error_10bin": 0.00015379794646751634, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "E21": { + "valid": 2814, + "positives": 1, + "negatives": 2813, + "auroc": 0.9797369356558834, + "auprc": 0.017241379310344827, + "brier": 0.00035512141414004503, + "calibration": { + "observed_rate": 0.00035536602700781805, + "mean_prediction": 0.0007655176514471691, + "calibration_in_the_large": 0.000410151624439351, + "expected_calibration_error_10bin": 0.000410151624439351, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "E22": { + "valid": 2802, + "positives": 4, + "negatives": 2798, + "auroc": 0.7294496068620443, + "auprc": 0.006759515148595894, + "brier": 0.0014677143566240954, + "calibration": { + "observed_rate": 0.0014275517487508922, + "mean_prediction": 0.0029550386874887787, + "calibration_in_the_large": 0.0015274869387378865, + "expected_calibration_error_10bin": 0.0015274869387378862, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "E27": { + "valid": 2811, + "positives": 5, + "negatives": 2806, + "auroc": 0.7516749821810407, + "auprc": 0.004360589231216081, + "brier": 0.0017772830608621362, + "calibration": { + "observed_rate": 0.0017787264318747777, + "mean_prediction": 0.0008157700185668875, + "calibration_in_the_large": -0.0009629564133078902, + "expected_calibration_error_10bin": 0.0009629564133078902, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9887442842068238 + }, + "E43": { + "valid": 2748, + "positives": 32, + "negatives": 2716, + "auroc": 0.8419320692194403, + "auprc": 0.058262824088290956, + "brier": 0.011302453207074533, + "calibration": { + "observed_rate": 0.011644832605531296, + "mean_prediction": 0.009524074999070705, + "calibration_in_the_large": -0.002120757606460591, + "expected_calibration_error_10bin": 0.0040194574166115184, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9665845937390081 + }, + "E44": { + "valid": 2800, + "positives": 15, + "negatives": 2785, + "auroc": 0.7509275882704967, + "auprc": 0.02267816709041996, + "brier": 0.005307133530491386, + "calibration": { + "observed_rate": 0.005357142857142857, + "mean_prediction": 0.003615772189593177, + "calibration_in_the_large": -0.0017413706675496804, + "expected_calibration_error_10bin": 0.0018384425472260902, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + "E46": { + "valid": 2772, + "positives": 28, + "negatives": 2744, + "auroc": 0.8327910245730945, + "auprc": 0.13589734225318498, + "brier": 0.009585890463406637, + "calibration": { + "observed_rate": 0.010101010101010102, + "mean_prediction": 0.006271346280328238, + "calibration_in_the_large": -0.003829663820681864, + "expected_calibration_error_10bin": 0.0038296638206818633, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9750263805838902 + }, + "E53": { + "valid": 2804, + "positives": 4, + "negatives": 2800, + "auroc": 0.6947321428571429, + "auprc": 0.004037190825668175, + "brier": 0.0014266229540073692, + "calibration": { + "observed_rate": 0.0014265335235378032, + "mean_prediction": 0.001101718688251312, + "calibration_in_the_large": -0.0003248148352864911, + "expected_calibration_error_10bin": 0.0003248148352864911, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "E55": { + "valid": 2737, + "positives": 19, + "negatives": 2718, + "auroc": 0.5812323302738082, + "auprc": 0.011141842788736348, + "brier": 0.006918890622703469, + "calibration": { + "observed_rate": 0.006941907197661673, + "mean_prediction": 0.003996903538298103, + "calibration_in_the_large": -0.0029450036593635705, + "expected_calibration_error_10bin": 0.0029450036593635705, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9627154414351038 + }, + "E66": { + "valid": 2371, + "positives": 27, + "negatives": 2344, + "auroc": 0.7535393755530274, + "auprc": 0.03522380727760764, + "brier": 0.011192029804899346, + "calibration": { + "observed_rate": 0.011387600168705188, + "mean_prediction": 0.00773655726508175, + "calibration_in_the_large": -0.0036510429036234384, + "expected_calibration_error_10bin": 0.0041662938978765775, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8339781920506507 + }, + "E78": { + "valid": 1572, + "positives": 31, + "negatives": 1541, + "auroc": 0.7003621443972284, + "auprc": 0.0649039190428618, + "brier": 0.019189843124675844, + "calibration": { + "observed_rate": 0.019720101781170483, + "mean_prediction": 0.019028817240374134, + "calibration_in_the_large": -0.000691284540796349, + "expected_calibration_error_10bin": 0.00212207653071311, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5529370383397819 + }, + "E80": { + "valid": 2823, + "positives": 4, + "negatives": 2819, + "auroc": 0.9529975168499468, + "auprc": 0.017762954337526955, + "brier": 0.0014117672787719879, + "calibration": { + "observed_rate": 0.0014169323414806943, + "mean_prediction": 0.0008733741545537247, + "calibration_in_the_large": -0.0005435581869269695, + "expected_calibration_error_10bin": 0.0005435581869269695, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "E83": { + "valid": 2653, + "positives": 53, + "negatives": 2600, + "auroc": 0.8022786647314949, + "auprc": 0.1059435082932124, + "brier": 0.018840023531198073, + "calibration": { + "observed_rate": 0.01997738409347908, + "mean_prediction": 0.012018347338099436, + "calibration_in_the_large": -0.007959036755379643, + "expected_calibration_error_10bin": 0.008689499220358556, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9331691874780161 + }, + "E86": { + "valid": 2587, + "positives": 58, + "negatives": 2529, + "auroc": 0.8023206664757775, + "auprc": 0.07792622285898733, + "brier": 0.021309238717693017, + "calibration": { + "observed_rate": 0.02241979126401237, + "mean_prediction": 0.023233522371904493, + "calibration_in_the_large": 0.0008137311078921239, + "expected_calibration_error_10bin": 0.0011965251054055336, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9099542736545903 + }, + "E87": { + "valid": 2185, + "positives": 97, + "negatives": 2088, + "auroc": 0.7760891890824347, + "auprc": 0.13337238828631365, + "brier": 0.04073837048067715, + "calibration": { + "observed_rate": 0.044393592677345536, + "mean_prediction": 0.03504961221689333, + "calibration_in_the_large": -0.009343980460452206, + "expected_calibration_error_10bin": 0.011679955955207969, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.768554344002814 + }, + "E88": { + "valid": 2817, + "positives": 9, + "negatives": 2808, + "auroc": 0.7366255144032922, + "auprc": 0.09809120549897177, + "brier": 0.0030808597452946815, + "calibration": { + "observed_rate": 0.003194888178913738, + "mean_prediction": 0.002244700248060443, + "calibration_in_the_large": -0.000950187930853295, + "expected_calibration_error_10bin": 0.0011015859661373437, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "E89": { + "valid": 2780, + "positives": 4, + "negatives": 2776, + "auroc": 0.7483789625360231, + "auprc": 0.009968861222235375, + "brier": 0.0014339437639622934, + "calibration": { + "observed_rate": 0.0014388489208633094, + "mean_prediction": 0.0012002593908815313, + "calibration_in_the_large": -0.00023858952998177807, + "expected_calibration_error_10bin": 0.00023858952998177807, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + "F02": { + "valid": 2802, + "positives": 1, + "negatives": 2801, + "auroc": 0.5605141021063905, + "auprc": 0.0008116883116883117, + "brier": 0.0003931885032026716, + "calibration": { + "observed_rate": 0.00035688793718772306, + "mean_prediction": 0.0017845920823594441, + "calibration_in_the_large": 0.0014277041451717211, + "expected_calibration_error_10bin": 0.0014277041451717211, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "F03": { + "valid": 2739, + "positives": 11, + "negatives": 2728, + "auroc": 0.8684684084244202, + "auprc": 0.02922600284083644, + "brier": 0.003984055396239713, + "calibration": { + "observed_rate": 0.004016064257028112, + "mean_prediction": 0.004051973533531992, + "calibration_in_the_large": 3.590927650388032e-05, + "expected_calibration_error_10bin": 0.0002341441087480958, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + "F05": { + "valid": 2750, + "positives": 16, + "negatives": 2734, + "auroc": 0.726796817849305, + "auprc": 0.012097835586507106, + "brier": 0.0058248244302157495, + "calibration": { + "observed_rate": 0.005818181818181818, + "mean_prediction": 0.005735951066368836, + "calibration_in_the_large": -8.223075181298164e-05, + "expected_calibration_error_10bin": 8.223075181298164e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + "F06": { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.6109341825902336, + "auprc": 0.0014166673299004355, + "brier": 0.0007099299810572885, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.0010284633552598435, + "calibration_in_the_large": 0.0003212497767591363, + "expected_calibration_error_10bin": 0.0003212497767591363, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "F10": { + "valid": 2560, + "positives": 9, + "negatives": 2551, + "auroc": 0.7810880264819896, + "auprc": 0.16760875104660436, + "brier": 0.0033662915837221682, + "calibration": { + "observed_rate": 0.003515625, + "mean_prediction": 0.002984975984152527, + "calibration_in_the_large": -0.0005306490158474733, + "expected_calibration_error_10bin": 0.0005306490158474731, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + "F11": { + "valid": 2741, + "positives": 8, + "negatives": 2733, + "auroc": 0.8404226125137212, + "auprc": 0.03659381123758827, + "brier": 0.002875635891665067, + "calibration": { + "observed_rate": 0.002918642831083546, + "mean_prediction": 0.0019644362933876336, + "calibration_in_the_large": -0.0009542065376959125, + "expected_calibration_error_10bin": 0.0009542065376959125, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + "F12": { + "valid": 2777, + "positives": 10, + "negatives": 2767, + "auroc": 0.9155764365739067, + "auprc": 0.02919987938448456, + "brier": 0.003570007894571067, + "calibration": { + "observed_rate": 0.0036010082823190494, + "mean_prediction": 0.001279072955782962, + "calibration_in_the_large": -0.0023219353265360875, + "expected_calibration_error_10bin": 0.0023219353265360875, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + "F14": { + "valid": 2787, + "positives": 9, + "negatives": 2778, + "auroc": 0.9245660347172227, + "auprc": 0.03838571347315317, + "brier": 0.003202033765055622, + "calibration": { + "observed_rate": 0.0032292787944025836, + "mean_prediction": 0.0011851909346932412, + "calibration_in_the_large": -0.0020440878597093423, + "expected_calibration_error_10bin": 0.0021183662077670236, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "F15": { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.9382913264702402, + "auprc": 0.0537750753971, + "brier": 0.0020924434175162454, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0007855311262287693, + "calibration_in_the_large": -0.001339867385992272, + "expected_calibration_error_10bin": 0.001339867385992272, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "F17": { + "valid": 2426, + "positives": 25, + "negatives": 2401, + "auroc": 0.889112869637651, + "auprc": 0.08084734973832129, + "brier": 0.009963807222869322, + "calibration": { + "observed_rate": 0.010305028854080791, + "mean_prediction": 0.005102585471044565, + "calibration_in_the_large": -0.005202443383036226, + "expected_calibration_error_10bin": 0.005833171632387574, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8533239535701723 + }, + "F19": { + "valid": 2801, + "positives": 10, + "negatives": 2791, + "auroc": 0.9271228950197062, + "auprc": 0.20885116924391106, + "brier": 0.003345189122754928, + "calibration": { + "observed_rate": 0.003570153516601214, + "mean_prediction": 0.0018530220877239318, + "calibration_in_the_large": -0.0017171314288772822, + "expected_calibration_error_10bin": 0.0017171314288772822, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "F20": { + "valid": 2808, + "positives": 3, + "negatives": 2805, + "auroc": 0.8202020202020202, + "auprc": 0.012763135373850506, + "brier": 0.0010653078413920803, + "calibration": { + "observed_rate": 0.0010683760683760685, + "mean_prediction": 0.0008263335418034869, + "calibration_in_the_large": -0.00024204252657258158, + "expected_calibration_error_10bin": 0.00024204252657258158, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9876890608512136 + }, + "F22": { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.925177304964539, + "auprc": 0.0047169811320754715, + "brier": 0.00036326414086351136, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0012754139925986179, + "calibration_in_the_large": 0.0009209297671466505, + "expected_calibration_error_10bin": 0.0009209297671466505, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "F25": { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.8535748106060606, + "auprc": 0.009229087446706573, + "brier": 0.0010656031746549407, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0008706489724664595, + "calibration_in_the_large": -0.00019355819319512258, + "expected_calibration_error_10bin": 0.00019355819319512258, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "F29": { + "valid": 2806, + "positives": 7, + "negatives": 2799, + "auroc": 0.7783392027765018, + "auprc": 0.009150753941352825, + "brier": 0.0024911491264329854, + "calibration": { + "observed_rate": 0.0024946543121881683, + "mean_prediction": 0.000550563535115111, + "calibration_in_the_large": -0.0019440907770730573, + "expected_calibration_error_10bin": 0.0019440907770730573, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "F31": { + "valid": 2724, + "positives": 8, + "negatives": 2716, + "auroc": 0.9197809278350515, + "auprc": 0.03514224744506803, + "brier": 0.0028864627030126882, + "calibration": { + "observed_rate": 0.002936857562408223, + "mean_prediction": 0.002038247529977824, + "calibration_in_the_large": -0.0008986100324303989, + "expected_calibration_error_10bin": 0.0008986100324303989, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9581428068941259 + }, + "F32": { + "valid": 2200, + "positives": 45, + "negatives": 2155, + "auroc": 0.7053673627223511, + "auprc": 0.05129530016884236, + "brier": 0.019870590090395598, + "calibration": { + "observed_rate": 0.020454545454545454, + "mean_prediction": 0.01731633365752218, + "calibration_in_the_large": -0.0031382117970232756, + "expected_calibration_error_10bin": 0.004282725515129809, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7738304607808653 + }, + "F33": { + "valid": 2800, + "positives": 7, + "negatives": 2793, + "auroc": 0.80957495780267, + "auprc": 0.015205322564213903, + "brier": 0.0025388850371496304, + "calibration": { + "observed_rate": 0.0025, + "mean_prediction": 0.003222753161115049, + "calibration_in_the_large": 0.0007227531611150488, + "expected_calibration_error_10bin": 0.0007227531611150492, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + "F39": { + "valid": 2801, + "positives": 8, + "negatives": 2793, + "auroc": 0.7695578231292517, + "auprc": 0.029734549673674827, + "brier": 0.002828950052415542, + "calibration": { + "observed_rate": 0.002856122813280971, + "mean_prediction": 0.0013400819741891628, + "calibration_in_the_large": -0.0015160408390918084, + "expected_calibration_error_10bin": 0.0015160408390918084, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "F41": { + "valid": 2247, + "positives": 61, + "negatives": 2186, + "auroc": 0.7416195461431164, + "auprc": 0.08234323992580456, + "brier": 0.025844285709059712, + "calibration": { + "observed_rate": 0.027147307521139297, + "mean_prediction": 0.022912747582455314, + "calibration_in_the_large": -0.0042345599386839836, + "expected_calibration_error_10bin": 0.004277331782153649, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7903622933520928 + }, + "F43": { + "valid": 2734, + "positives": 15, + "negatives": 2719, + "auroc": 0.8014466102733848, + "auprc": 0.032819243880147626, + "brier": 0.00540412798413203, + "calibration": { + "observed_rate": 0.005486466715435259, + "mean_prediction": 0.004397884094891564, + "calibration_in_the_large": -0.0010885826205436957, + "expected_calibration_error_10bin": 0.0013326153783596475, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "F60": { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.9386420191965873, + "auprc": 0.04895642628941878, + "brier": 0.0017361364245033384, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.002085393892273952, + "calibration_in_the_large": 0.0003110858724017021, + "expected_calibration_error_10bin": 0.000311085872401702, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "F90": { + "valid": 2775, + "positives": 7, + "negatives": 2768, + "auroc": 0.9335260115606936, + "auprc": 0.044497078291474444, + "brier": 0.0024717358133727707, + "calibration": { + "observed_rate": 0.0025225225225225223, + "mean_prediction": 0.001764394964409, + "calibration_in_the_large": -0.0007581275581135223, + "expected_calibration_error_10bin": 0.0007581275581135223, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + "G25": { + "valid": 2774, + "positives": 4, + "negatives": 2770, + "auroc": 0.7010830324909747, + "auprc": 0.0049331110836462995, + "brier": 0.001442719440893371, + "calibration": { + "observed_rate": 0.0014419610670511895, + "mean_prediction": 0.0018501939946003385, + "calibration_in_the_large": 0.00040823292754914894, + "expected_calibration_error_10bin": 0.00040823292754914894, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "G31": { + "valid": 2802, + "positives": 2, + "negatives": 2800, + "auroc": 0.75625, + "auprc": 0.002178445133303766, + "brier": 0.0007260718670532508, + "calibration": { + "observed_rate": 0.0007137758743754461, + "mean_prediction": 0.001464776339251055, + "calibration_in_the_large": 0.000751000464875609, + "expected_calibration_error_10bin": 0.000751000464875609, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "G40": { + "valid": 2723, + "positives": 18, + "negatives": 2705, + "auroc": 0.7051345245430273, + "auprc": 0.04643530863272691, + "brier": 0.006503602939001611, + "calibration": { + "observed_rate": 0.006610356224752111, + "mean_prediction": 0.004123858607202127, + "calibration_in_the_large": -0.002486497617549984, + "expected_calibration_error_10bin": 0.0032071136412734754, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + "G43": { + "valid": 2725, + "positives": 11, + "negatives": 2714, + "auroc": 0.6993702686407182, + "auprc": 0.030627736058988296, + "brier": 0.004007205619699127, + "calibration": { + "observed_rate": 0.004036697247706422, + "mean_prediction": 0.001901046044220977, + "calibration_in_the_large": -0.002135651203485445, + "expected_calibration_error_10bin": 0.002135651203485445, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9584945480126627 + }, + "G44": { + "valid": 2805, + "positives": 4, + "negatives": 2801, + "auroc": 0.5988932524098536, + "auprc": 0.014817498691523651, + "brier": 0.0014221237652922644, + "calibration": { + "observed_rate": 0.00142602495543672, + "mean_prediction": 0.0008869189394494512, + "calibration_in_the_large": -0.0005391060159872689, + "expected_calibration_error_10bin": 0.0005391060159872689, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "G47": { + "valid": 2315, + "positives": 66, + "negatives": 2249, + "auroc": 0.6850452052764191, + "auprc": 0.06046959340969698, + "brier": 0.027414331504948417, + "calibration": { + "observed_rate": 0.028509719222462204, + "mean_prediction": 0.021470174992838712, + "calibration_in_the_large": -0.007039544229623492, + "expected_calibration_error_10bin": 0.008633128618311085, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8142806894125924 + }, + "G51": { + "valid": 2834, + "positives": 0, + "negatives": 2834, + "auroc": null, + "auprc": null, + "brier": 2.0826092193215086e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00035796088265471494, + "calibration_in_the_large": 0.00035796088265471494, + "expected_calibration_error_10bin": 0.00035796088265471494, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9968343299331692 + }, + "G62": { + "valid": 2751, + "positives": 27, + "negatives": 2724, + "auroc": 0.8434763691738728, + "auprc": 0.10161006984040499, + "brier": 0.009354106885771072, + "calibration": { + "observed_rate": 0.009814612868047983, + "mean_prediction": 0.00543854139318932, + "calibration_in_the_large": -0.004376071474858662, + "expected_calibration_error_10bin": 0.004848742547890322, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "G81": { + "valid": 2789, + "positives": 11, + "negatives": 2778, + "auroc": 0.7451731134236533, + "auprc": 0.05503287818293535, + "brier": 0.0038880542055027166, + "calibration": { + "observed_rate": 0.003944065973467192, + "mean_prediction": 0.0025830837043978347, + "calibration_in_the_large": -0.0013609822690693577, + "expected_calibration_error_10bin": 0.0014346411291538883, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "G83": { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.6424435779274489, + "auprc": 0.005530002668723492, + "brier": 0.0010618551540377767, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0009988120051718627, + "calibration_in_the_large": -6.351094100377481e-05, + "expected_calibration_error_10bin": 6.351094100377481e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "G89": { + "valid": 2537, + "positives": 41, + "negatives": 2496, + "auroc": 0.7925754377736085, + "auprc": 0.0712048545645592, + "brier": 0.01550490178650535, + "calibration": { + "observed_rate": 0.016160819865983445, + "mean_prediction": 0.012449238519714287, + "calibration_in_the_large": -0.0037115813462691577, + "expected_calibration_error_10bin": 0.00429647960510352, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8923672177277524 + }, + "G90": { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 6.065862884998962e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0012047603382663336, + "calibration_in_the_large": 0.0012047603382663336, + "expected_calibration_error_10bin": 0.0012047603382663336, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "G92": { + "valid": 2733, + "positives": 29, + "negatives": 2704, + "auroc": 0.8141960824321567, + "auprc": 0.04382458380706255, + "brier": 0.010355321465837848, + "calibration": { + "observed_rate": 0.010611050128064398, + "mean_prediction": 0.009307560603339126, + "calibration_in_the_large": -0.0013034895247252716, + "expected_calibration_error_10bin": 0.0013034895247252723, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + "G93": { + "valid": 2656, + "positives": 35, + "negatives": 2621, + "auroc": 0.8039788521284134, + "auprc": 0.05924028383785578, + "brier": 0.01274081145902771, + "calibration": { + "observed_rate": 0.013177710843373495, + "mean_prediction": 0.009507024248187666, + "calibration_in_the_large": -0.003670686595185829, + "expected_calibration_error_10bin": 0.0038259495303743485, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9342244108336265 + }, + "G99": { + "valid": 2841, + "positives": 0, + "negatives": 2841, + "auroc": null, + "auprc": null, + "brier": 9.95543336461679e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00032207121992190436, + "calibration_in_the_large": 0.00032207121992190436, + "expected_calibration_error_10bin": 0.00032207121992190436, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9992965177629265 + }, + "H10": { + "valid": 2832, + "positives": 4, + "negatives": 2828, + "auroc": 0.8917079207920792, + "auprc": 0.008241191529103187, + "brier": 0.0014086840619800718, + "calibration": { + "observed_rate": 0.0014124293785310734, + "mean_prediction": 0.0006077389356307121, + "calibration_in_the_large": -0.0008046904429003613, + "expected_calibration_error_10bin": 0.0008046904429003613, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + "H26": { + "valid": 2819, + "positives": 0, + "negatives": 2819, + "auroc": null, + "auprc": null, + "brier": 7.228854088193718e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0013626717803317868, + "calibration_in_the_large": 0.0013626717803317868, + "expected_calibration_error_10bin": 0.0013626717803317868, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "H35": { + "valid": 2806, + "positives": 4, + "negatives": 2802, + "auroc": 0.6299964311206281, + "auprc": 0.0026590705184523166, + "brier": 0.001425628025207736, + "calibration": { + "observed_rate": 0.0014255167498218105, + "mean_prediction": 0.000869733932751553, + "calibration_in_the_large": -0.0005557828170702575, + "expected_calibration_error_10bin": 0.0005557828170702575, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "H40": { + "valid": 2750, + "positives": 5, + "negatives": 2745, + "auroc": 0.7434608378870674, + "auprc": 0.060046222639374244, + "brier": 0.001801384365239063, + "calibration": { + "observed_rate": 0.0018181818181818182, + "mean_prediction": 0.002957611267510815, + "calibration_in_the_large": 0.0011394294493289967, + "expected_calibration_error_10bin": 0.0011394294493289967, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + "H53": { + "valid": 2790, + "positives": 9, + "negatives": 2781, + "auroc": 0.5867593591433936, + "auprc": 0.012300694171516153, + "brier": 0.0032158171486890764, + "calibration": { + "observed_rate": 0.0032258064516129032, + "mean_prediction": 0.003513270385599258, + "calibration_in_the_large": 0.0002874639339863548, + "expected_calibration_error_10bin": 0.0002874639339863548, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + "H54": { + "valid": 2809, + "positives": 2, + "negatives": 2807, + "auroc": 0.44602778767367296, + "auprc": 0.0009843270786543989, + "brier": 0.0007139371123661332, + "calibration": { + "observed_rate": 0.000711997152011392, + "mean_prediction": 0.0008247806024626743, + "calibration_in_the_large": 0.00011278345045128227, + "expected_calibration_error_10bin": 0.00011278345045128227, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "H91": { + "valid": 2791, + "positives": 5, + "negatives": 2786, + "auroc": 0.803445800430725, + "auprc": 0.0172816984247735, + "brier": 0.001781867633358514, + "calibration": { + "observed_rate": 0.0017914725904693658, + "mean_prediction": 0.0012832452235625716, + "calibration_in_the_large": -0.0005082273669067942, + "expected_calibration_error_10bin": 0.0005082273669067942, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9817094618360886 + }, + "I07": { + "valid": 2823, + "positives": 5, + "negatives": 2818, + "auroc": 0.853513129879347, + "auprc": 0.012117809058163013, + "brier": 0.0017648970379773535, + "calibration": { + "observed_rate": 0.001771165426850868, + "mean_prediction": 0.0007354767647978905, + "calibration_in_the_large": -0.0010356886620529774, + "expected_calibration_error_10bin": 0.0010356886620529774, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "I08": { + "valid": 2767, + "positives": 8, + "negatives": 2759, + "auroc": 0.8065875317143892, + "auprc": 0.013104999010252149, + "brier": 0.002916789175858571, + "calibration": { + "observed_rate": 0.0028912179255511385, + "mean_prediction": 0.0032688818163544146, + "calibration_in_the_large": 0.00037766389080327607, + "expected_calibration_error_10bin": 0.0003776638908032764, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9732676749912065 + }, + "I10": { + "valid": 1498, + "positives": 31, + "negatives": 1467, + "auroc": 0.6852254986036898, + "auprc": 0.04386929777104283, + "brier": 0.020165314811843926, + "calibration": { + "observed_rate": 0.02069425901201602, + "mean_prediction": 0.015752205304762297, + "calibration_in_the_large": -0.004942053707253723, + "expected_calibration_error_10bin": 0.006190204880593871, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5269081955680619 + }, + "I11": { + "valid": 2676, + "positives": 28, + "negatives": 2648, + "auroc": 0.8171800820025895, + "auprc": 0.053004588194931805, + "brier": 0.01025358823720253, + "calibration": { + "observed_rate": 0.01046337817638266, + "mean_prediction": 0.009318608475685117, + "calibration_in_the_large": -0.0011447697006975437, + "expected_calibration_error_10bin": 0.0016647782068701631, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9412592332043616 + }, + "I12": { + "valid": 2552, + "positives": 17, + "negatives": 2535, + "auroc": 0.8357814131569787, + "auprc": 0.05220211708555079, + "brier": 0.006558374088831653, + "calibration": { + "observed_rate": 0.0066614420062695925, + "mean_prediction": 0.006371866400279536, + "calibration_in_the_large": -0.00028957560599005613, + "expected_calibration_error_10bin": 0.000932437117116263, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8976433345058037 + }, + "I13": { + "valid": 2727, + "positives": 18, + "negatives": 2709, + "auroc": 0.8743488782248472, + "auprc": 0.06555093771504526, + "brier": 0.006540555352266056, + "calibration": { + "observed_rate": 0.006600660066006601, + "mean_prediction": 0.007979515081475116, + "calibration_in_the_large": 0.0013788550154685154, + "expected_calibration_error_10bin": 0.001842429581277514, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9591980302497362 + }, + "I16": { + "valid": 2390, + "positives": 8, + "negatives": 2382, + "auroc": 0.8689651553316541, + "auprc": 0.020882054144124352, + "brier": 0.003318173842126368, + "calibration": { + "observed_rate": 0.0033472803347280333, + "mean_prediction": 0.0023406308564984644, + "calibration_in_the_large": -0.0010066494782295689, + "expected_calibration_error_10bin": 0.0010066494782295689, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8406612733028491 + }, + "I21": { + "valid": 2671, + "positives": 11, + "negatives": 2660, + "auroc": 0.8357142857142857, + "auprc": 0.020812460965327614, + "brier": 0.0041832794028845545, + "calibration": { + "observed_rate": 0.0041183077499064025, + "mean_prediction": 0.009724430294966105, + "calibration_in_the_large": 0.005606122545059702, + "expected_calibration_error_10bin": 0.005606122545059704, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + "I24": { + "valid": 2809, + "positives": 5, + "negatives": 2804, + "auroc": 0.8983594864479315, + "auprc": 0.02025522245549566, + "brier": 0.0017646309989097942, + "calibration": { + "observed_rate": 0.00177999288002848, + "mean_prediction": 0.002060264660660379, + "calibration_in_the_large": 0.00028027178063189887, + "expected_calibration_error_10bin": 0.00028027178063189887, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "I25": { + "valid": 2243, + "positives": 30, + "negatives": 2213, + "auroc": 0.8314655821659889, + "auprc": 0.06875840482803307, + "brier": 0.012901389853211619, + "calibration": { + "observed_rate": 0.013374944271065538, + "mean_prediction": 0.008584270938496045, + "calibration_in_the_large": -0.004790673332569493, + "expected_calibration_error_10bin": 0.0055625475564920375, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7889553288779458 + }, + "I26": { + "valid": 2760, + "positives": 13, + "negatives": 2747, + "auroc": 0.7916048276441433, + "auprc": 0.15940199313853537, + "brier": 0.0044571183701953565, + "calibration": { + "observed_rate": 0.004710144927536232, + "mean_prediction": 0.006815555259345274, + "calibration_in_the_large": 0.0021054103318090414, + "expected_calibration_error_10bin": 0.002207186056411824, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9708054871614492 + }, + "I27": { + "valid": 2716, + "positives": 22, + "negatives": 2694, + "auroc": 0.8287946277924007, + "auprc": 0.05520708388757934, + "brier": 0.007933661434807901, + "calibration": { + "observed_rate": 0.008100147275405008, + "mean_prediction": 0.0057506578055415555, + "calibration_in_the_large": -0.0023494894698634526, + "expected_calibration_error_10bin": 0.0023494894698634526, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + "I31": { + "valid": 2793, + "positives": 9, + "negatives": 2784, + "auroc": 0.7734674329501916, + "auprc": 0.01116815014899536, + "brier": 0.00321053768376558, + "calibration": { + "observed_rate": 0.00322234156820623, + "mean_prediction": 0.0026734354855794487, + "calibration_in_the_large": -0.0005489060826267813, + "expected_calibration_error_10bin": 0.0005489060826267813, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "I34": { + "valid": 2753, + "positives": 14, + "negatives": 2739, + "auroc": 0.742163459030929, + "auprc": 0.013265057365490137, + "brier": 0.005134555307400003, + "calibration": { + "observed_rate": 0.005085361423901199, + "mean_prediction": 0.0051820447651973085, + "calibration_in_the_large": 9.668334129610962e-05, + "expected_calibration_error_10bin": 9.668334129610943e-05, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9683432993316918 + }, + "I35": { + "valid": 2723, + "positives": 5, + "negatives": 2718, + "auroc": 0.664532744665195, + "auprc": 0.007310485517459983, + "brier": 0.0018453914389014996, + "calibration": { + "observed_rate": 0.001836210062431142, + "mean_prediction": 0.0023952304623278066, + "calibration_in_the_large": 0.0005590203998966645, + "expected_calibration_error_10bin": 0.0005590203998966645, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + "I42": { + "valid": 2740, + "positives": 10, + "negatives": 2730, + "auroc": 0.9161172161172161, + "auprc": 0.0343963622779784, + "brier": 0.00359191631346155, + "calibration": { + "observed_rate": 0.0036496350364963502, + "mean_prediction": 0.0028617904247401874, + "calibration_in_the_large": -0.0007878446117561629, + "expected_calibration_error_10bin": 0.0007878446117561629, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + "I44": { + "valid": 2722, + "positives": 14, + "negatives": 2708, + "auroc": 0.8631567841316733, + "auprc": 0.043727196262149555, + "brier": 0.005035995284158331, + "calibration": { + "observed_rate": 0.005143277002204262, + "mean_prediction": 0.0038960589695069903, + "calibration_in_the_large": -0.0012472180326972716, + "expected_calibration_error_10bin": 0.0012472180326972716, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9574393246570524 + }, + "I45": { + "valid": 2766, + "positives": 8, + "negatives": 2758, + "auroc": 0.649791515591008, + "auprc": 0.0045271814605152925, + "brier": 0.0029004242288838754, + "calibration": { + "observed_rate": 0.0028922631959508315, + "mean_prediction": 0.0036965343217401094, + "calibration_in_the_large": 0.0008042711257892779, + "expected_calibration_error_10bin": 0.0008042711257892779, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9729159338726697 + }, + "I46": { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.7056537102473498, + "auprc": 0.001199040767386091, + "brier": 0.00035414245194503597, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.0006675931107328088, + "calibration_in_the_large": 0.00031436103726053757, + "expected_calibration_error_10bin": 0.00031436103726053757, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "I47": { + "valid": 2716, + "positives": 9, + "negatives": 2707, + "auroc": 0.5953289824734228, + "auprc": 0.004751810197360988, + "brier": 0.0033539191584780995, + "calibration": { + "observed_rate": 0.0033136966126656848, + "mean_prediction": 0.006205385207793582, + "calibration_in_the_large": 0.002891688595127897, + "expected_calibration_error_10bin": 0.002891688595127897, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + "I48": { + "valid": 2385, + "positives": 19, + "negatives": 2366, + "auroc": 0.757396449704142, + "auprc": 0.023169153590290533, + "brier": 0.008165715243697387, + "calibration": { + "observed_rate": 0.007966457023060796, + "mean_prediction": 0.012580378003848307, + "calibration_in_the_large": 0.004613920980787511, + "expected_calibration_error_10bin": 0.004613920980787509, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8389025677101654 + }, + "I49": { + "valid": 2734, + "positives": 12, + "negatives": 2722, + "auroc": 0.6779635072250796, + "auprc": 0.008761361906132614, + "brier": 0.004374341893756723, + "calibration": { + "observed_rate": 0.0043891733723482075, + "mean_prediction": 0.003170875192933956, + "calibration_in_the_large": -0.0012182981794142517, + "expected_calibration_error_10bin": 0.0012182981794142517, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "I50": { + "valid": 2415, + "positives": 33, + "negatives": 2382, + "auroc": 0.821196855201893, + "auprc": 0.06324675402343474, + "brier": 0.01336960521581354, + "calibration": { + "observed_rate": 0.013664596273291925, + "mean_prediction": 0.01313257220028153, + "calibration_in_the_large": -0.0005320240730103953, + "expected_calibration_error_10bin": 0.002287604520979379, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.849454801266268 + }, + "I51": { + "valid": 2807, + "positives": 5, + "negatives": 2802, + "auroc": 0.7894361170592434, + "auprc": 0.00947475604685272, + "brier": 0.0017755286228618003, + "calibration": { + "observed_rate": 0.0017812611328820805, + "mean_prediction": 0.0015486788567069163, + "calibration_in_the_large": -0.00023258227617516418, + "expected_calibration_error_10bin": 0.00023258227617516418, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "I61": { + "valid": 2802, + "positives": 5, + "negatives": 2797, + "auroc": 0.8457633178405435, + "auprc": 0.011545663690434858, + "brier": 0.0017776475988499339, + "calibration": { + "observed_rate": 0.0017844396859386152, + "mean_prediction": 0.0010823457381289139, + "calibration_in_the_large": -0.0007020939478097014, + "expected_calibration_error_10bin": 0.0007020939478097014, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "I63": { + "valid": 2735, + "positives": 10, + "negatives": 2725, + "auroc": 0.7240366972477065, + "auprc": 0.014885411967320118, + "brier": 0.0036429793395921822, + "calibration": { + "observed_rate": 0.003656307129798903, + "mean_prediction": 0.003531766925466541, + "calibration_in_the_large": -0.00012454020433236204, + "expected_calibration_error_10bin": 0.00012454020433236204, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9620119591980303 + }, + "I65": { + "valid": 2774, + "positives": 3, + "negatives": 2771, + "auroc": 0.7163478888487911, + "auprc": 0.011288454045648816, + "brier": 0.0010977043675136854, + "calibration": { + "observed_rate": 0.0010814708002883922, + "mean_prediction": 0.003444901921802188, + "calibration_in_the_large": 0.002363431121513796, + "expected_calibration_error_10bin": 0.002363431121513796, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "I67": { + "valid": 2773, + "positives": 2, + "negatives": 2771, + "auroc": 0.9094189823168531, + "auprc": 0.005780536670279502, + "brier": 0.0007418806147634967, + "calibration": { + "observed_rate": 0.000721240533717995, + "mean_prediction": 0.0024823166399450193, + "calibration_in_the_large": 0.0017610761062270244, + "expected_calibration_error_10bin": 0.0017610761062270244, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + "I69": { + "valid": 2752, + "positives": 14, + "negatives": 2738, + "auroc": 0.7193989356151518, + "auprc": 0.02047373542594565, + "brier": 0.0050659963965339755, + "calibration": { + "observed_rate": 0.005087209302325582, + "mean_prediction": 0.004328447898230015, + "calibration_in_the_large": -0.0007587614040955671, + "expected_calibration_error_10bin": 0.0008499072479694501, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9679915582131551 + }, + "I70": { + "valid": 2771, + "positives": 5, + "negatives": 2766, + "auroc": 0.8389732465654375, + "auprc": 0.03276027142127293, + "brier": 0.001791189448862068, + "calibration": { + "observed_rate": 0.001804402742692169, + "mean_prediction": 0.0025674184739338996, + "calibration_in_the_large": 0.0007630157312417307, + "expected_calibration_error_10bin": 0.0007630157312417305, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9746746394653535 + }, + "I71": { + "valid": 2769, + "positives": 3, + "negatives": 2766, + "auroc": 0.6967944082911545, + "auprc": 0.01718499453585399, + "brier": 0.0010846371267519432, + "calibration": { + "observed_rate": 0.0010834236186348862, + "mean_prediction": 0.0022967887697610983, + "calibration_in_the_large": 0.0012133651511262121, + "expected_calibration_error_10bin": 0.0012133651511262121, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.97397115722828 + }, + "I72": { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.7704941343761109, + "auprc": 0.014606579264296187, + "brier": 0.001766016698680808, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.0011544188229847315, + "calibration_in_the_large": -0.0006198891968875182, + "expected_calibration_error_10bin": 0.0006198891968875182, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "I73": { + "valid": 2734, + "positives": 6, + "negatives": 2728, + "auroc": 0.8263074291300098, + "auprc": 0.0369692747386787, + "brier": 0.0021919954805246556, + "calibration": { + "observed_rate": 0.0021945866861741038, + "mean_prediction": 0.003951177161052222, + "calibration_in_the_large": 0.0017565904748781183, + "expected_calibration_error_10bin": 0.001756590474878118, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "I74": { + "valid": 2821, + "positives": 4, + "negatives": 2817, + "auroc": 0.7147674831380901, + "auprc": 0.006222826872580366, + "brier": 0.0014152870660292655, + "calibration": { + "observed_rate": 0.0014179369018078695, + "mean_prediction": 0.0006766609562194724, + "calibration_in_the_large": -0.0007412759455883972, + "expected_calibration_error_10bin": 0.0007412759455883972, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "I77": { + "valid": 2785, + "positives": 4, + "negatives": 2781, + "auroc": 0.5953793599424667, + "auprc": 0.0047534780837943744, + "brier": 0.0014390593715544546, + "calibration": { + "observed_rate": 0.001436265709156194, + "mean_prediction": 0.0019993651922827283, + "calibration_in_the_large": 0.0005630994831265343, + "expected_calibration_error_10bin": 0.0005630994831265343, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "I80": { + "valid": 2827, + "positives": 4, + "negatives": 2823, + "auroc": 0.9099362380446334, + "auprc": 0.05661471642010143, + "brier": 0.001398832722078709, + "calibration": { + "observed_rate": 0.0014149274849663955, + "mean_prediction": 0.0007547473545653572, + "calibration_in_the_large": -0.0006601801304010383, + "expected_calibration_error_10bin": 0.0006601801304010383, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "I81": { + "valid": 2826, + "positives": 6, + "negatives": 2820, + "auroc": 0.9067966903073286, + "auprc": 0.02265175259818102, + "brier": 0.002133639947468356, + "calibration": { + "observed_rate": 0.0021231422505307855, + "mean_prediction": 0.001200943868117829, + "calibration_in_the_large": -0.0009221983824129565, + "expected_calibration_error_10bin": 0.0010045241606448777, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "I82": { + "valid": 2739, + "positives": 22, + "negatives": 2717, + "auroc": 0.7379964533074581, + "auprc": 0.033112818612437145, + "brier": 0.007893666395772431, + "calibration": { + "observed_rate": 0.008032128514056224, + "mean_prediction": 0.006597807286968772, + "calibration_in_the_large": -0.0014343212270874518, + "expected_calibration_error_10bin": 0.0015821687313707215, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + "I85": { + "valid": 2793, + "positives": 4, + "negatives": 2789, + "auroc": 0.9953388311222661, + "auprc": 0.2763784461152882, + "brier": 0.0012274878528202434, + "calibration": { + "observed_rate": 0.0014321518080916578, + "mean_prediction": 0.0009637646692417914, + "calibration_in_the_large": -0.0004683871388498664, + "expected_calibration_error_10bin": 0.00046838713884986635, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "I87": { + "valid": 2780, + "positives": 11, + "negatives": 2769, + "auroc": 0.695689287238583, + "auprc": 0.010584151969071587, + "brier": 0.003940627104455905, + "calibration": { + "observed_rate": 0.003956834532374101, + "mean_prediction": 0.0019370987293616721, + "calibration_in_the_large": -0.0020197358030124286, + "expected_calibration_error_10bin": 0.0020197358030124286, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + "I89": { + "valid": 2826, + "positives": 5, + "negatives": 2821, + "auroc": 0.871889400921659, + "auprc": 0.008341193977533351, + "brier": 0.0017651164500645906, + "calibration": { + "observed_rate": 0.0017692852087756545, + "mean_prediction": 0.0006252677160635857, + "calibration_in_the_large": -0.0011440174927120688, + "expected_calibration_error_10bin": 0.0011440174927120688, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "I95": { + "valid": 2485, + "positives": 58, + "negatives": 2427, + "auroc": 0.7173038944063197, + "auprc": 0.052033156015804695, + "brier": 0.022557265565124697, + "calibration": { + "observed_rate": 0.023340040241448694, + "mean_prediction": 0.02329611872698572, + "calibration_in_the_large": -4.392151446297454e-05, + "expected_calibration_error_10bin": 7.224088638713725e-05, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.874076679563841 + }, + "I96": { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.8191545808277326, + "auprc": 0.26397525715874337, + "brier": 0.0013900587422119972, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.000991473554084484, + "calibration_in_the_large": -0.0004214547398046012, + "expected_calibration_error_10bin": 0.0004214547398046012, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "I97": { + "valid": 2740, + "positives": 7, + "negatives": 2733, + "auroc": 0.781767811405572, + "auprc": 0.011721134572758278, + "brier": 0.002547069116196823, + "calibration": { + "observed_rate": 0.0025547445255474453, + "mean_prediction": 0.0030415743178840732, + "calibration_in_the_large": 0.000486829792336628, + "expected_calibration_error_10bin": 0.000486829792336628, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + "J02": { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.7748848742472547, + "auprc": 0.002308334105868175, + "brier": 0.0007163100737228848, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.001066583705625849, + "calibration_in_the_large": 0.00035861910385593754, + "expected_calibration_error_10bin": 0.00035861910385593754, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J06": { + "valid": 2816, + "positives": 6, + "negatives": 2810, + "auroc": 0.5443060498220641, + "auprc": 0.006528380178170519, + "brier": 0.002145932767970493, + "calibration": { + "observed_rate": 0.002130681818181818, + "mean_prediction": 0.0021739608183912133, + "calibration_in_the_large": 4.3279000209395235e-05, + "expected_calibration_error_10bin": 4.3279000209395235e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "J12": { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 2.538726553785425e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0018122703311636641, + "calibration_in_the_large": 0.0018122703311636641, + "expected_calibration_error_10bin": 0.0018122703311636644, + "nonempty_bins": 2 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J15": { + "valid": 2795, + "positives": 9, + "negatives": 2786, + "auroc": 0.6523490468214086, + "auprc": 0.007593162128564283, + "brier": 0.0032189114296458806, + "calibration": { + "observed_rate": 0.0032200357781753132, + "mean_prediction": 0.002112131906932891, + "calibration_in_the_large": -0.0011079038712424223, + "expected_calibration_error_10bin": 0.0011079038712424223, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9831164263102357 + }, + "J18": { + "valid": 2671, + "positives": 31, + "negatives": 2640, + "auroc": 0.7662512218963832, + "auprc": 0.04426387140577434, + "brier": 0.01132929267395973, + "calibration": { + "observed_rate": 0.011606140022463497, + "mean_prediction": 0.009187403246882787, + "calibration_in_the_large": -0.0024187367755807102, + "expected_calibration_error_10bin": 0.0026584945121641635, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + "J30": { + "valid": 2815, + "positives": 6, + "negatives": 2809, + "auroc": 0.686068589058977, + "auprc": 0.0199559531741927, + "brier": 0.0021213540234015474, + "calibration": { + "observed_rate": 0.0021314387211367673, + "mean_prediction": 0.0009348989876073915, + "calibration_in_the_large": -0.0011965397335293758, + "expected_calibration_error_10bin": 0.0011965397335293758, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + "J32": { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.5176865935620799, + "auprc": 0.0025021244452837314, + "brier": 0.0007103987193910344, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0007840244048307614, + "calibration_in_the_large": 7.706081345571717e-05, + "expected_calibration_error_10bin": 7.706081345571717e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J38": { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.7706340772228126, + "auprc": 0.0037018459069020865, + "brier": 0.0007086771836732968, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.0009968134803188375, + "calibration_in_the_large": 0.00028884887854892596, + "expected_calibration_error_10bin": 0.00028884887854892596, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J43": { + "valid": 2804, + "positives": 5, + "negatives": 2799, + "auroc": 0.5944265809217578, + "auprc": 0.009417049128981558, + "brier": 0.0017800208354462523, + "calibration": { + "observed_rate": 0.001783166904422254, + "mean_prediction": 0.001785347826920771, + "calibration_in_the_large": 2.1809224985170923e-06, + "expected_calibration_error_10bin": 2.1809224985170923e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "J44": { + "valid": 2570, + "positives": 17, + "negatives": 2553, + "auroc": 0.8225156102393955, + "auprc": 0.03239695728930105, + "brier": 0.006522239813550319, + "calibration": { + "observed_rate": 0.006614785992217899, + "mean_prediction": 0.005706060819380433, + "calibration_in_the_large": -0.0009087251728374657, + "expected_calibration_error_10bin": 0.0010987022685861293, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9039746746394653 + }, + "J45": { + "valid": 2518, + "positives": 20, + "negatives": 2498, + "auroc": 0.6615092073658927, + "auprc": 0.01646932181356598, + "brier": 0.007899544583463375, + "calibration": { + "observed_rate": 0.007942811755361398, + "mean_prediction": 0.004792074649818955, + "calibration_in_the_large": -0.0031507371055424426, + "expected_calibration_error_10bin": 0.0032711267706340198, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.885684136475554 + }, + "J47": { + "valid": 2825, + "positives": 4, + "negatives": 2821, + "auroc": 0.7671038638780574, + "auprc": 0.005561354004054784, + "brier": 0.0014143574266210631, + "calibration": { + "observed_rate": 0.001415929203539823, + "mean_prediction": 0.0003876355539819452, + "calibration_in_the_large": -0.0010282936495578778, + "expected_calibration_error_10bin": 0.0010282936495578778, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J69": { + "valid": 2777, + "positives": 22, + "negatives": 2755, + "auroc": 0.7725787823791453, + "auprc": 0.030596108888163987, + "brier": 0.007806469839905773, + "calibration": { + "observed_rate": 0.00792221822110191, + "mean_prediction": 0.004156011981140221, + "calibration_in_the_large": -0.003766206239961688, + "expected_calibration_error_10bin": 0.003766206239961688, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + "J81": { + "valid": 2781, + "positives": 14, + "negatives": 2767, + "auroc": 0.782745624451443, + "auprc": 0.04737694560668525, + "brier": 0.004954675945064565, + "calibration": { + "observed_rate": 0.005034160373966199, + "mean_prediction": 0.0033606700253968223, + "calibration_in_the_large": -0.001673490348569377, + "expected_calibration_error_10bin": 0.001673490348569377, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + "J84": { + "valid": 2817, + "positives": 7, + "negatives": 2810, + "auroc": 0.9085917641077783, + "auprc": 0.018125222968575265, + "brier": 0.002465446662943809, + "calibration": { + "observed_rate": 0.0024849130280440185, + "mean_prediction": 0.0015353286640533734, + "calibration_in_the_large": -0.0009495843639906452, + "expected_calibration_error_10bin": 0.0009495843639906452, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "J90": { + "valid": 2754, + "positives": 25, + "negatives": 2729, + "auroc": 0.6461707585196043, + "auprc": 0.01520983862715636, + "brier": 0.009054271338507381, + "calibration": { + "observed_rate": 0.00907770515613653, + "mean_prediction": 0.005627744643574902, + "calibration_in_the_large": -0.003449960512561627, + "expected_calibration_error_10bin": 0.0037164444331967608, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9686950404502286 + }, + "J91": { + "valid": 2807, + "positives": 9, + "negatives": 2798, + "auroc": 0.8012469224048924, + "auprc": 0.028564538405968096, + "brier": 0.003180268582368049, + "calibration": { + "observed_rate": 0.003206270039187745, + "mean_prediction": 0.0027437327231773774, + "calibration_in_the_large": -0.00046253731601036746, + "expected_calibration_error_10bin": 0.0005424779263636017, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "J94": { + "valid": 2829, + "positives": 8, + "negatives": 2821, + "auroc": 0.6068769939737682, + "auprc": 0.13490208642561122, + "brier": 0.0028135398610443486, + "calibration": { + "observed_rate": 0.002827854365500177, + "mean_prediction": 0.0003077747140989589, + "calibration_in_the_large": -0.002520079651401218, + "expected_calibration_error_10bin": 0.002520079651401218, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J95": { + "valid": 2770, + "positives": 12, + "negatives": 2758, + "auroc": 0.8130891950688905, + "auprc": 0.019209097258886528, + "brier": 0.004294863523817768, + "calibration": { + "observed_rate": 0.004332129963898917, + "mean_prediction": 0.002424543819893106, + "calibration_in_the_large": -0.001907586144005811, + "expected_calibration_error_10bin": 0.001907586144005811, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9743228983468167 + }, + "J96": { + "valid": 2605, + "positives": 49, + "negatives": 2556, + "auroc": 0.8412458880265722, + "auprc": 0.10223313579434655, + "brier": 0.01775597673633505, + "calibration": { + "observed_rate": 0.018809980806142036, + "mean_prediction": 0.013172479571533056, + "calibration_in_the_large": -0.0056375012346089794, + "expected_calibration_error_10bin": 0.005793958175986614, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9162856137882518 + }, + "J98": { + "valid": 2692, + "positives": 20, + "negatives": 2672, + "auroc": 0.6722118263473054, + "auprc": 0.022206993176684352, + "brier": 0.0073501324540052575, + "calibration": { + "observed_rate": 0.007429420505200594, + "mean_prediction": 0.0053934506205922115, + "calibration_in_the_large": -0.0020359698846083825, + "expected_calibration_error_10bin": 0.0020359698846083825, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9468870911009497 + }, + "K04": { + "valid": 2836, + "positives": 1, + "negatives": 2835, + "auroc": 0.7876543209876543, + "auprc": 0.001658374792703151, + "brier": 0.00035294214797471524, + "calibration": { + "observed_rate": 0.0003526093088857546, + "mean_prediction": 0.0003697099356703224, + "calibration_in_the_large": 1.7100626784567806e-05, + "expected_calibration_error_10bin": 1.7100626784567806e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "K12": { + "valid": 2824, + "positives": 9, + "negatives": 2815, + "auroc": 0.8916913360963095, + "auprc": 0.07028768801960111, + "brier": 0.0033209268717489643, + "calibration": { + "observed_rate": 0.003186968838526912, + "mean_prediction": 0.0030095543310150294, + "calibration_in_the_large": -0.00017741450751188265, + "expected_calibration_error_10bin": 0.0021834984823957296, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "K20": { + "valid": 2813, + "positives": 5, + "negatives": 2808, + "auroc": 0.6595441595441596, + "auprc": 0.015581185288137117, + "brier": 0.0018149902729360408, + "calibration": { + "observed_rate": 0.0017774617845716318, + "mean_prediction": 0.002898720600032149, + "calibration_in_the_large": 0.0011212588154605172, + "expected_calibration_error_10bin": 0.0011212588154605174, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K21": { + "valid": 2043, + "positives": 56, + "negatives": 1987, + "auroc": 0.7362139621827594, + "auprc": 0.124143613821818, + "brier": 0.02580067321558208, + "calibration": { + "observed_rate": 0.02741067058247675, + "mean_prediction": 0.022143060066764586, + "calibration_in_the_large": -0.005267610515712163, + "expected_calibration_error_10bin": 0.005267610515712164, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7186071051705945 + }, + "K22": { + "valid": 2764, + "positives": 13, + "negatives": 2751, + "auroc": 0.8228336548947236, + "auprc": 0.0396092423667878, + "brier": 0.004650247553483848, + "calibration": { + "observed_rate": 0.004703328509406657, + "mean_prediction": 0.0020530742310918802, + "calibration_in_the_large": -0.002650254278314777, + "expected_calibration_error_10bin": 0.002650254278314777, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9722124516355962 + }, + "K25": { + "valid": 2817, + "positives": 5, + "negatives": 2812, + "auroc": 0.7847083926031294, + "auprc": 0.0068978747941161826, + "brier": 0.0017781008564931133, + "calibration": { + "observed_rate": 0.001774937877174299, + "mean_prediction": 0.001240468833322232, + "calibration_in_the_large": -0.000534469043852067, + "expected_calibration_error_10bin": 0.000534469043852067, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "K26": { + "valid": 2814, + "positives": 4, + "negatives": 2810, + "auroc": 0.9602313167259786, + "auprc": 0.2691410018052974, + "brier": 0.0013807756978506216, + "calibration": { + "observed_rate": 0.0014214641080312722, + "mean_prediction": 0.0017162093865852113, + "calibration_in_the_large": 0.00029474527855393915, + "expected_calibration_error_10bin": 0.00029474527855393915, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "K29": { + "valid": 2785, + "positives": 6, + "negatives": 2779, + "auroc": 0.8013673983447284, + "auprc": 0.033274903840364696, + "brier": 0.0021296222913041517, + "calibration": { + "observed_rate": 0.0021543985637342907, + "mean_prediction": 0.003077665867765277, + "calibration_in_the_large": 0.0009232673040309863, + "expected_calibration_error_10bin": 0.0009232673040309863, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K30": { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.9208112874779542, + "auprc": 0.006467251160391955, + "brier": 0.0007042131969544896, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0006044640798903925, + "calibration_in_the_large": -0.00010050595888295966, + "expected_calibration_error_10bin": 0.00010050595888295966, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + "K31": { + "valid": 2756, + "positives": 10, + "negatives": 2746, + "auroc": 0.9019300801165331, + "auprc": 0.11382615737574298, + "brier": 0.003465888592117993, + "calibration": { + "observed_rate": 0.00362844702467344, + "mean_prediction": 0.0031679007781378397, + "calibration_in_the_large": -0.00046054624653560014, + "expected_calibration_error_10bin": 0.000645558458355984, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + "K40": { + "valid": 2827, + "positives": 2, + "negatives": 2825, + "auroc": 0.8730973451327434, + "auprc": 0.05140845070422535, + "brier": 0.000702672017023424, + "calibration": { + "observed_rate": 0.0007074637424831977, + "mean_prediction": 0.0005538264306225053, + "calibration_in_the_large": -0.00015363731186069241, + "expected_calibration_error_10bin": 0.00015363731186069241, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "K42": { + "valid": 2820, + "positives": 3, + "negatives": 2817, + "auroc": 0.5346112886048988, + "auprc": 0.004404735301700417, + "brier": 0.0010661435416574262, + "calibration": { + "observed_rate": 0.0010638297872340426, + "mean_prediction": 0.0005924224799797385, + "calibration_in_the_large": -0.0004714073072543041, + "expected_calibration_error_10bin": 0.0004714073072543041, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + "K43": { + "valid": 2813, + "positives": 4, + "negatives": 2809, + "auroc": 0.742435030259879, + "auprc": 0.010241925602154384, + "brier": 0.0014168934605307303, + "calibration": { + "observed_rate": 0.0014219694276573053, + "mean_prediction": 0.0008400188673623591, + "calibration_in_the_large": -0.0005819505602949462, + "expected_calibration_error_10bin": 0.0005819505602949462, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K44": { + "valid": 2785, + "positives": 5, + "negatives": 2780, + "auroc": 0.717410071942446, + "auprc": 0.008528589744515104, + "brier": 0.00178994275967744, + "calibration": { + "observed_rate": 0.0017953321364452424, + "mean_prediction": 0.0014715175531025552, + "calibration_in_the_large": -0.00032381458334268727, + "expected_calibration_error_10bin": 0.00032381458334268727, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K52": { + "valid": 2749, + "positives": 26, + "negatives": 2723, + "auroc": 0.8121557106132942, + "auprc": 0.0761975678716552, + "brier": 0.00914518360268259, + "calibration": { + "observed_rate": 0.009457984721716987, + "mean_prediction": 0.006235798344266099, + "calibration_in_the_large": -0.0032221863774508884, + "expected_calibration_error_10bin": 0.003222186377450889, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9669363348575448 + }, + "K55": { + "valid": 2815, + "positives": 8, + "negatives": 2807, + "auroc": 0.8173762023512647, + "auprc": 0.008416053980486525, + "brier": 0.00284591052309453, + "calibration": { + "observed_rate": 0.002841918294849023, + "mean_prediction": 0.0015246995558365842, + "calibration_in_the_large": -0.0013172187390124387, + "expected_calibration_error_10bin": 0.0013888497377966683, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + "K56": { + "valid": 2745, + "positives": 21, + "negatives": 2724, + "auroc": 0.7254562617998741, + "auprc": 0.02449941884063297, + "brier": 0.007572267889358981, + "calibration": { + "observed_rate": 0.007650273224043716, + "mean_prediction": 0.003674654933987078, + "calibration_in_the_large": -0.003975618290056638, + "expected_calibration_error_10bin": 0.003975618290056638, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9655293703833978 + }, + "K57": { + "valid": 2741, + "positives": 16, + "negatives": 2725, + "auroc": 0.7124770642201835, + "auprc": 0.0441757859306707, + "brier": 0.0057944265232051945, + "calibration": { + "observed_rate": 0.005837285662167092, + "mean_prediction": 0.002039724258431611, + "calibration_in_the_large": -0.0037975614037354813, + "expected_calibration_error_10bin": 0.0037975614037354813, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + "K58": { + "valid": 2792, + "positives": 7, + "negatives": 2785, + "auroc": 0.7507566042575019, + "auprc": 0.12292646015260454, + "brier": 0.0024664792466932406, + "calibration": { + "observed_rate": 0.002507163323782235, + "mean_prediction": 0.0018388543895098415, + "calibration_in_the_large": -0.0006683089342723937, + "expected_calibration_error_10bin": 0.0006683089342723937, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + "K59": { + "valid": 2560, + "positives": 69, + "negatives": 2491, + "auroc": 0.7441223186078578, + "auprc": 0.1109016232541866, + "brier": 0.025336620158799096, + "calibration": { + "observed_rate": 0.026953125, + "mean_prediction": 0.020559539269424932, + "calibration_in_the_large": -0.006393585730575069, + "expected_calibration_error_10bin": 0.0063935857305750686, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + "K62": { + "valid": 2813, + "positives": 10, + "negatives": 2803, + "auroc": 0.7862647163753121, + "auprc": 0.01662204127224639, + "brier": 0.0035349370615344834, + "calibration": { + "observed_rate": 0.0035549235691432635, + "mean_prediction": 0.0016519940503337163, + "calibration_in_the_large": -0.0019029295188095472, + "expected_calibration_error_10bin": 0.0019029295188095472, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K63": { + "valid": 2810, + "positives": 13, + "negatives": 2797, + "auroc": 0.7196171722449878, + "auprc": 0.018529079908634505, + "brier": 0.004596347519428281, + "calibration": { + "observed_rate": 0.004626334519572953, + "mean_prediction": 0.002064335486844693, + "calibration_in_the_large": -0.0025619990327282603, + "expected_calibration_error_10bin": 0.0025619990327282603, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + "K64": { + "valid": 2801, + "positives": 13, + "negatives": 2788, + "auroc": 0.7682375013795387, + "auprc": 0.01981553084962949, + "brier": 0.0046047549647574145, + "calibration": { + "observed_rate": 0.0046411995715815784, + "mean_prediction": 0.002774745757533138, + "calibration_in_the_large": -0.0018664538140484403, + "expected_calibration_error_10bin": 0.0018664538140484403, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "K65": { + "valid": 2813, + "positives": 9, + "negatives": 2804, + "auroc": 0.8663021080995403, + "auprc": 0.023247639486188645, + "brier": 0.003247446872839201, + "calibration": { + "observed_rate": 0.003199431212228937, + "mean_prediction": 0.0029180158074831445, + "calibration_in_the_large": -0.0002814154047457926, + "expected_calibration_error_10bin": 0.0011393511907387779, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K66": { + "valid": 2796, + "positives": 6, + "negatives": 2790, + "auroc": 0.7132616487455197, + "auprc": 0.025537721440955855, + "brier": 0.002135304917637033, + "calibration": { + "observed_rate": 0.002145922746781116, + "mean_prediction": 0.001979643470675336, + "calibration_in_the_large": -0.0001662792761057798, + "expected_calibration_error_10bin": 0.0001662792761057798, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + "K70": { + "valid": 2774, + "positives": 1, + "negatives": 2773, + "auroc": 0.9336458708979445, + "auprc": 0.005405405405405406, + "brier": 0.0003710873364947985, + "calibration": { + "observed_rate": 0.0003604902667627974, + "mean_prediction": 0.0006816077812057665, + "calibration_in_the_large": 0.0003211175144429691, + "expected_calibration_error_10bin": 0.0003211175144429691, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "K72": { + "valid": 2787, + "positives": 15, + "negatives": 2772, + "auroc": 0.957022607022607, + "auprc": 0.2794069330311683, + "brier": 0.004752583304885359, + "calibration": { + "observed_rate": 0.005382131324004306, + "mean_prediction": 0.00263680284997252, + "calibration_in_the_large": -0.002745328474031786, + "expected_calibration_error_10bin": 0.003308384745382593, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "K74": { + "valid": 2763, + "positives": 6, + "negatives": 2757, + "auroc": 0.9607665336718656, + "auprc": 0.034746310792915146, + "brier": 0.002220656266107016, + "calibration": { + "observed_rate": 0.002171552660152009, + "mean_prediction": 0.0018425623481626752, + "calibration_in_the_large": -0.0003289903119893336, + "expected_calibration_error_10bin": 0.001233048388907912, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + "K75": { + "valid": 2798, + "positives": 10, + "negatives": 2788, + "auroc": 0.8492109038737446, + "auprc": 0.024067402713184582, + "brier": 0.0035697745997624506, + "calibration": { + "observed_rate": 0.0035739814152966403, + "mean_prediction": 0.0018788228660005831, + "calibration_in_the_large": -0.0016951585492960572, + "expected_calibration_error_10bin": 0.001942573020122725, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + "K76": { + "valid": 2681, + "positives": 21, + "negatives": 2660, + "auroc": 0.8557465091299677, + "auprc": 0.19760346947379906, + "brier": 0.007100495111204526, + "calibration": { + "observed_rate": 0.007832898172323759, + "mean_prediction": 0.0032106077948380893, + "calibration_in_the_large": -0.00462229037748567, + "expected_calibration_error_10bin": 0.005596977209799819, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9430179387970454 + }, + "K80": { + "valid": 2731, + "positives": 7, + "negatives": 2724, + "auroc": 0.6108663729809104, + "auprc": 0.004144458678953242, + "brier": 0.002569012125512987, + "calibration": { + "observed_rate": 0.002563163676309044, + "mean_prediction": 0.002834607623555665, + "calibration_in_the_large": 0.00027144394724662067, + "expected_calibration_error_10bin": 0.00027144394724662067, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9606049947238833 + }, + "K81": { + "valid": 2825, + "positives": 5, + "negatives": 2820, + "auroc": 0.8698581560283688, + "auprc": 0.030937374201684437, + "brier": 0.001747567709606432, + "calibration": { + "observed_rate": 0.0017699115044247787, + "mean_prediction": 0.0010358969488741228, + "calibration_in_the_large": -0.0007340145555506559, + "expected_calibration_error_10bin": 0.0007340145555506559, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "K82": { + "valid": 2824, + "positives": 4, + "negatives": 2820, + "auroc": 0.6459219858156028, + "auprc": 0.003430481118381631, + "brier": 0.0014296413704117784, + "calibration": { + "observed_rate": 0.00141643059490085, + "mean_prediction": 0.0011212983701210679, + "calibration_in_the_large": -0.00029513222477978206, + "expected_calibration_error_10bin": 0.00029513222477978206, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "K83": { + "valid": 2757, + "positives": 8, + "negatives": 2749, + "auroc": 0.8922335394688978, + "auprc": 0.1377107752725872, + "brier": 0.00275652874309013, + "calibration": { + "observed_rate": 0.0029017047515415306, + "mean_prediction": 0.002142377397269501, + "calibration_in_the_large": -0.0007593273542720294, + "expected_calibration_error_10bin": 0.0010129770982667552, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.969750263805839 + }, + "K85": { + "valid": 2779, + "positives": 3, + "negatives": 2776, + "auroc": 0.8280499519692603, + "auprc": 0.013706674408704019, + "brier": 0.0010758725286897908, + "calibration": { + "observed_rate": 0.0010795250089960418, + "mean_prediction": 0.0013620082510168025, + "calibration_in_the_large": 0.0002824832420207607, + "expected_calibration_error_10bin": 0.0002824832420207607, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9774885684136475 + }, + "K86": { + "valid": 2785, + "positives": 5, + "negatives": 2780, + "auroc": 0.6764748201438849, + "auprc": 0.00850019293429391, + "brier": 0.0018009741459804921, + "calibration": { + "observed_rate": 0.0017953321364452424, + "mean_prediction": 0.001647410048173576, + "calibration_in_the_large": -0.00014792208827166644, + "expected_calibration_error_10bin": 0.00014792208827166644, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K90": { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.669964664310954, + "auprc": 0.0010695187165775401, + "brier": 0.00035348619293304733, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.00027035174873550844, + "calibration_in_the_large": -8.288032473676284e-05, + "expected_calibration_error_10bin": 8.288032473676284e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "K91": { + "valid": 2768, + "positives": 17, + "negatives": 2751, + "auroc": 0.8680052173541172, + "auprc": 0.04128179134514177, + "brier": 0.006049085829008601, + "calibration": { + "observed_rate": 0.006141618497109827, + "mean_prediction": 0.0025049103433665725, + "calibration_in_the_large": -0.0036367081537432545, + "expected_calibration_error_10bin": 0.0036367081537432545, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "K92": { + "valid": 2751, + "positives": 23, + "negatives": 2728, + "auroc": 0.8600981767180925, + "auprc": 0.13420706403730484, + "brier": 0.008036702277236945, + "calibration": { + "observed_rate": 0.008360596146855689, + "mean_prediction": 0.006219652895774782, + "calibration_in_the_large": -0.002140943251080907, + "expected_calibration_error_10bin": 0.002140943251080907, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "K94": { + "valid": 2823, + "positives": 13, + "negatives": 2810, + "auroc": 0.9176293457432247, + "auprc": 0.13774275661496602, + "brier": 0.004532523219264968, + "calibration": { + "observed_rate": 0.004605030109812256, + "mean_prediction": 0.000946484709863304, + "calibration_in_the_large": -0.003658545399948952, + "expected_calibration_error_10bin": 0.003658545399948952, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "L02": { + "valid": 2807, + "positives": 13, + "negatives": 2794, + "auroc": 0.7855844942459116, + "auprc": 0.017721795633876707, + "brier": 0.004593749775313219, + "calibration": { + "observed_rate": 0.004631278945493409, + "mean_prediction": 0.003434296702572679, + "calibration_in_the_large": -0.00119698224292073, + "expected_calibration_error_10bin": 0.00119698224292073, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "L03": { + "valid": 2701, + "positives": 27, + "negatives": 2674, + "auroc": 0.693717277486911, + "auprc": 0.06094712351471346, + "brier": 0.009801875708348064, + "calibration": { + "observed_rate": 0.009996297667530544, + "mean_prediction": 0.006933349361488786, + "calibration_in_the_large": -0.003062948306041758, + "expected_calibration_error_10bin": 0.0031503357438198228, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9500527611677805 + }, + "L08": { + "valid": 2830, + "positives": 5, + "negatives": 2825, + "auroc": 0.6650619469026549, + "auprc": 0.004468575899644602, + "brier": 0.001765498253886667, + "calibration": { + "observed_rate": 0.0017667844522968198, + "mean_prediction": 0.000753063965990072, + "calibration_in_the_large": -0.0010137204863067478, + "expected_calibration_error_10bin": 0.0010137204863067478, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9954273654590221 + }, + "L27": { + "valid": 2818, + "positives": 7, + "negatives": 2811, + "auroc": 0.6857752706205215, + "auprc": 0.006714734791072152, + "brier": 0.002513108073036098, + "calibration": { + "observed_rate": 0.00248403122782115, + "mean_prediction": 0.002200735982649031, + "calibration_in_the_large": -0.00028329524517211897, + "expected_calibration_error_10bin": 0.0004472675277679191, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "L29": { + "valid": 2817, + "positives": 3, + "negatives": 2814, + "auroc": 0.7835820895522388, + "auprc": 0.0032382107520883487, + "brier": 0.0010886343886314918, + "calibration": { + "observed_rate": 0.0010649627263045794, + "mean_prediction": 0.002039321837956071, + "calibration_in_the_large": 0.0009743591116514916, + "expected_calibration_error_10bin": 0.0009743591116514916, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "L30": { + "valid": 2816, + "positives": 6, + "negatives": 2810, + "auroc": 0.7239620403321471, + "auprc": 0.03962148001141525, + "brier": 0.002113030792859676, + "calibration": { + "observed_rate": 0.002130681818181818, + "mean_prediction": 0.001147430044081526, + "calibration_in_the_large": -0.000983251774100292, + "expected_calibration_error_10bin": 0.000983251774100292, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "L50": { + "valid": 2835, + "positives": 2, + "negatives": 2833, + "auroc": 0.8625132368513942, + "auprc": 0.011366120218579235, + "brier": 0.0007053930544557372, + "calibration": { + "observed_rate": 0.0007054673721340388, + "mean_prediction": 0.0007737479698068665, + "calibration_in_the_large": 6.828059767282767e-05, + "expected_calibration_error_10bin": 6.828059767282767e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.997186071051706 + }, + "L53": { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 3.871191275713245e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0007912104377473602, + "calibration_in_the_large": 0.0007912104377473602, + "expected_calibration_error_10bin": 0.0007912104377473602, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "L76": { + "valid": 2793, + "positives": 10, + "negatives": 2783, + "auroc": 0.6759252605102407, + "auprc": 0.005902171116267979, + "brier": 0.003574924994869144, + "calibration": { + "observed_rate": 0.0035803795202291443, + "mean_prediction": 0.001945351110040837, + "calibration_in_the_large": -0.0016350284101883073, + "expected_calibration_error_10bin": 0.0016350284101883073, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "L89": { + "valid": 2798, + "positives": 15, + "negatives": 2783, + "auroc": 0.8433105761169002, + "auprc": 0.036673098954160085, + "brier": 0.005274886421492714, + "calibration": { + "observed_rate": 0.005360972122944961, + "mean_prediction": 0.0037359097751593446, + "calibration_in_the_large": -0.0016250623477856163, + "expected_calibration_error_10bin": 0.0016980880551780734, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + "L97": { + "valid": 2789, + "positives": 5, + "negatives": 2784, + "auroc": 0.9691091954022989, + "auprc": 0.06550435794164108, + "brier": 0.0017740193145329337, + "calibration": { + "observed_rate": 0.0017927572606669057, + "mean_prediction": 0.002825941788786175, + "calibration_in_the_large": 0.0010331845281192694, + "expected_calibration_error_10bin": 0.0010331845281192696, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "L98": { + "valid": 2824, + "positives": 5, + "negatives": 2819, + "auroc": 0.6300815892160341, + "auprc": 0.0030421016570574342, + "brier": 0.00177283483274193, + "calibration": { + "observed_rate": 0.0017705382436260624, + "mean_prediction": 0.0013289992143298798, + "calibration_in_the_large": -0.0004415390292961826, + "expected_calibration_error_10bin": 0.0004415390292961826, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "M10": { + "valid": 2713, + "positives": 10, + "negatives": 2703, + "auroc": 0.7894191638919719, + "auprc": 0.024115524761926906, + "brier": 0.003650373506159412, + "calibration": { + "observed_rate": 0.003685956505713233, + "mean_prediction": 0.003245724720643282, + "calibration_in_the_large": -0.0004402317850699506, + "expected_calibration_error_10bin": 0.0004402317850699506, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9542736545902216 + }, + "M16": { + "valid": 2790, + "positives": 2, + "negatives": 2788, + "auroc": 0.853299856527977, + "auprc": 0.008680962424810562, + "brier": 0.0007152282295369491, + "calibration": { + "observed_rate": 0.0007168458781362007, + "mean_prediction": 0.0009203322286507126, + "calibration_in_the_large": 0.00020348635051451185, + "expected_calibration_error_10bin": 0.00020348635051451185, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + "M17": { + "valid": 2733, + "positives": 7, + "negatives": 2726, + "auroc": 0.6921706320092234, + "auprc": 0.0055022078802239, + "brier": 0.002558108186643693, + "calibration": { + "observed_rate": 0.002561287961946579, + "mean_prediction": 0.0021626021292032523, + "calibration_in_the_large": -0.00039868583274332674, + "expected_calibration_error_10bin": 0.00039868583274332674, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + "M19": { + "valid": 2674, + "positives": 25, + "negatives": 2649, + "auroc": 0.6829143072857682, + "auprc": 0.01809771877234493, + "brier": 0.009274440745588874, + "calibration": { + "observed_rate": 0.009349289454001496, + "mean_prediction": 0.00396661234044287, + "calibration_in_the_large": -0.005382677113558627, + "expected_calibration_error_10bin": 0.005382677113558627, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.940555750967288 + }, + "M21": { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.9280141843971631, + "auprc": 0.004901960784313725, + "brier": 0.0003591655492968749, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0018592718722095416, + "calibration_in_the_large": 0.0015047876467575742, + "expected_calibration_error_10bin": 0.0015047876467575742, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "M25": { + "valid": 2717, + "positives": 22, + "negatives": 2695, + "auroc": 0.6550514420644291, + "auprc": 0.02844454800349452, + "brier": 0.0079859804052076, + "calibration": { + "observed_rate": 0.008097165991902834, + "mean_prediction": 0.0084019237656977, + "calibration_in_the_large": 0.000304757773794866, + "expected_calibration_error_10bin": 0.000304757773794866, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9556806190643686 + }, + "M35": { + "valid": 2806, + "positives": 1, + "negatives": 2805, + "auroc": 0.8409982174688057, + "auprc": 0.0022371364653243847, + "brier": 0.0003567969089798993, + "calibration": { + "observed_rate": 0.0003563791874554526, + "mean_prediction": 0.00044539367597442355, + "calibration_in_the_large": 8.901448851897093e-05, + "expected_calibration_error_10bin": 8.901448851897093e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "M46": { + "valid": 2814, + "positives": 3, + "negatives": 2811, + "auroc": 0.4727854855923159, + "auprc": 0.0014586805198741094, + "brier": 0.001067079767260708, + "calibration": { + "observed_rate": 0.0010660980810234541, + "mean_prediction": 0.0008076159069309195, + "calibration_in_the_large": -0.00025848217409253464, + "expected_calibration_error_10bin": 0.00025848217409253464, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "M47": { + "valid": 2743, + "positives": 4, + "negatives": 2739, + "auroc": 0.5357794815626141, + "auprc": 0.002116175775654418, + "brier": 0.0014677150186421099, + "calibration": { + "observed_rate": 0.0014582573824279985, + "mean_prediction": 0.002786345493902637, + "calibration_in_the_large": 0.0013280881114746386, + "expected_calibration_error_10bin": 0.0013280881114746386, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + "M48": { + "valid": 2690, + "positives": 7, + "negatives": 2683, + "auroc": 0.7904797401629307, + "auprc": 0.02302260366450731, + "brier": 0.0025907496330749616, + "calibration": { + "observed_rate": 0.0026022304832713753, + "mean_prediction": 0.004162801461693241, + "calibration_in_the_large": 0.0015605709784218655, + "expected_calibration_error_10bin": 0.0015605709784218655, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9461836088638762 + }, + "M51": { + "valid": 2785, + "positives": 1, + "negatives": 2784, + "auroc": 0.5362787356321839, + "auprc": 0.0007739938080495357, + "brier": 0.0003620384974003958, + "calibration": { + "observed_rate": 0.0003590664272890485, + "mean_prediction": 0.0014172674641797956, + "calibration_in_the_large": 0.0010582010368907471, + "expected_calibration_error_10bin": 0.0010582010368907471, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "M54": { + "valid": 2567, + "positives": 29, + "negatives": 2538, + "auroc": 0.6716665308007934, + "auprc": 0.026984626088076096, + "brier": 0.011152494797260094, + "calibration": { + "observed_rate": 0.011297234125438255, + "mean_prediction": 0.010684314085298335, + "calibration_in_the_large": -0.0006129200401399203, + "expected_calibration_error_10bin": 0.0010971824057511978, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9029194512838551 + }, + "M62": { + "valid": 2781, + "positives": 6, + "negatives": 2775, + "auroc": 0.7732732732732732, + "auprc": 0.03334222286801255, + "brier": 0.0021412068915119837, + "calibration": { + "observed_rate": 0.002157497303128371, + "mean_prediction": 0.0026243909649670775, + "calibration_in_the_large": 0.0004668936618387066, + "expected_calibration_error_10bin": 0.0004668936618387066, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + "M79": { + "valid": 2697, + "positives": 23, + "negatives": 2674, + "auroc": 0.7687880068940848, + "auprc": 0.027298038079246828, + "brier": 0.008395313335556251, + "calibration": { + "observed_rate": 0.008527994067482388, + "mean_prediction": 0.0073231527461532385, + "calibration_in_the_large": -0.0012048413213291498, + "expected_calibration_error_10bin": 0.0012048413213291498, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9486457966936335 + }, + "M81": { + "valid": 2705, + "positives": 8, + "negatives": 2697, + "auroc": 0.7967649239896181, + "auprc": 0.0164508143218806, + "brier": 0.003039029241536636, + "calibration": { + "observed_rate": 0.0029574861367837337, + "mean_prediction": 0.0048252186889811656, + "calibration_in_the_large": 0.0018677325521974319, + "expected_calibration_error_10bin": 0.0018677325521974314, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9514597256419275 + }, + "M84": { + "valid": 2818, + "positives": 3, + "negatives": 2815, + "auroc": 0.726939017169923, + "auprc": 0.02237497624494528, + "brier": 0.0010611763917702092, + "calibration": { + "observed_rate": 0.0010645848119233499, + "mean_prediction": 0.001262300427320678, + "calibration_in_the_large": 0.00019771561539732815, + "expected_calibration_error_10bin": 0.00019771561539732815, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "M85": { + "valid": 2768, + "positives": 7, + "negatives": 2761, + "auroc": 0.6875873130853211, + "auprc": 0.006477784341966397, + "brier": 0.0025222090262074204, + "calibration": { + "observed_rate": 0.0025289017341040463, + "mean_prediction": 0.0017796095221216338, + "calibration_in_the_large": -0.0007492922119824125, + "expected_calibration_error_10bin": 0.0007492922119824125, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "M86": { + "valid": 2803, + "positives": 11, + "negatives": 2792, + "auroc": 0.8019666579838499, + "auprc": 0.028356877440230462, + "brier": 0.0038793718119676302, + "calibration": { + "observed_rate": 0.00392436674991081, + "mean_prediction": 0.0029041179547840868, + "calibration_in_the_large": -0.0010202487951267232, + "expected_calibration_error_10bin": 0.0010202487951267232, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9859303552585297 + }, + "M94": { + "valid": 2819, + "positives": 2, + "negatives": 2817, + "auroc": 0.34149804756833513, + "auprc": 0.0008044894816195264, + "brier": 0.0007095561585019338, + "calibration": { + "observed_rate": 0.000709471443774388, + "mean_prediction": 0.0001721605085785047, + "calibration_in_the_large": -0.0005373109351958833, + "expected_calibration_error_10bin": 0.0005373109351958833, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "M96": { + "valid": 2804, + "positives": 2, + "negatives": 2802, + "auroc": 0.8304782298358315, + "auprc": 0.004642055333299573, + "brier": 0.0007137365899080062, + "calibration": { + "observed_rate": 0.0007132667617689016, + "mean_prediction": 0.0014069919118290884, + "calibration_in_the_large": 0.0006937251500601868, + "expected_calibration_error_10bin": 0.0006937251500601868, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "N12": { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.6430845419172267, + "auprc": 0.0023368787582371577, + "brier": 0.001424789174560743, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0010719434008131731, + "calibration_in_the_large": -0.00034098489307591196, + "expected_calibration_error_10bin": 0.00034098489307591196, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "N13": { + "valid": 2756, + "positives": 7, + "negatives": 2749, + "auroc": 0.627396975523567, + "auprc": 0.005506964943363258, + "brier": 0.0025554797494108856, + "calibration": { + "observed_rate": 0.0025399129172714078, + "mean_prediction": 0.0033077124814259464, + "calibration_in_the_large": 0.0007677995641545386, + "expected_calibration_error_10bin": 0.0007677995641545386, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + "N14": { + "valid": 2826, + "positives": 7, + "negatives": 2819, + "auroc": 0.7757056707038971, + "auprc": 0.039428708624168966, + "brier": 0.0024455249657232355, + "calibration": { + "observed_rate": 0.0024769992922859165, + "mean_prediction": 0.0015294820750221183, + "calibration_in_the_large": -0.0009475172172637982, + "expected_calibration_error_10bin": 0.0009475172172637982, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "N17": { + "valid": 2292, + "positives": 64, + "negatives": 2228, + "auroc": 0.813166236535009, + "auprc": 0.12059366692827632, + "brier": 0.025814323897308495, + "calibration": { + "observed_rate": 0.027923211169284468, + "mean_prediction": 0.027980647792296694, + "calibration_in_the_large": 5.743662301222613e-05, + "expected_calibration_error_10bin": 0.0033355706015467256, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8061906436862469 + }, + "N18": { + "valid": 2440, + "positives": 32, + "negatives": 2408, + "auroc": 0.8652278862126246, + "auprc": 0.13805985347619226, + "brier": 0.012147280769277964, + "calibration": { + "observed_rate": 0.013114754098360656, + "mean_prediction": 0.010021442258691617, + "calibration_in_the_large": -0.003093311839669039, + "expected_calibration_error_10bin": 0.003485260044461954, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.858248329229687 + }, + "N20": { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.699964260185847, + "auprc": 0.005687410299861884, + "brier": 0.002846834204845991, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.000747338740676771, + "calibration_in_the_large": -0.00210369475896685, + "expected_calibration_error_10bin": 0.00210369475896685, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "N25": { + "valid": 2831, + "positives": 6, + "negatives": 2825, + "auroc": 0.9149852507374632, + "auprc": 0.05378324488885868, + "brier": 0.00209744194154932, + "calibration": { + "observed_rate": 0.0021193924408336277, + "mean_prediction": 0.0007216581087579264, + "calibration_in_the_large": -0.0013977343320757014, + "expected_calibration_error_10bin": 0.0013977343320757014, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "N28": { + "valid": 2789, + "positives": 4, + "negatives": 2785, + "auroc": 0.7836624775583483, + "auprc": 0.008927436793126187, + "brier": 0.0014312056899280785, + "calibration": { + "observed_rate": 0.0014342058085335247, + "mean_prediction": 0.00229542233272953, + "calibration_in_the_large": 0.0008612165241960055, + "expected_calibration_error_10bin": 0.0008612165241960055, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "N30": { + "valid": 2829, + "positives": 9, + "negatives": 2820, + "auroc": 0.6851063829787234, + "auprc": 0.008628473028922575, + "brier": 0.0031717062101062204, + "calibration": { + "observed_rate": 0.003181336161187699, + "mean_prediction": 0.001859988105612832, + "calibration_in_the_large": -0.001321348055574867, + "expected_calibration_error_10bin": 0.001321348055574867, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "N32": { + "valid": 2807, + "positives": 10, + "negatives": 2797, + "auroc": 0.8631033249910619, + "auprc": 0.024313162537546812, + "brier": 0.00352855369677127, + "calibration": { + "observed_rate": 0.003562522265764161, + "mean_prediction": 0.0026493044670894226, + "calibration_in_the_large": -0.0009132177986747383, + "expected_calibration_error_10bin": 0.0009132177986747383, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "N39": { + "valid": 2520, + "positives": 61, + "negatives": 2459, + "auroc": 0.7829452196347976, + "auprc": 0.0920556742666682, + "brier": 0.022986717154660292, + "calibration": { + "observed_rate": 0.024206349206349207, + "mean_prediction": 0.02126228801877467, + "calibration_in_the_large": -0.002944061187574537, + "expected_calibration_error_10bin": 0.003169038913366089, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8863876187126275 + }, + "N40": { + "valid": 2606, + "positives": 13, + "negatives": 2593, + "auroc": 0.8048889020736302, + "auprc": 0.025495274699630897, + "brier": 0.0049386747810411516, + "calibration": { + "observed_rate": 0.0049884881043745204, + "mean_prediction": 0.004762510790215034, + "calibration_in_the_large": -0.00022597731415948622, + "expected_calibration_error_10bin": 0.00022597731415948622, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9166373549067885 + }, + "N73": { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9548991864166961, + "auprc": 0.025994449583718778, + "brier": 0.0007033671781912726, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0006054399453548757, + "calibration_in_the_large": -0.00010152364602016852, + "expected_calibration_error_10bin": 0.00010152364602016852, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "N99": { + "valid": 2799, + "positives": 3, + "negatives": 2796, + "auroc": 0.67310443490701, + "auprc": 0.0026493073537053355, + "brier": 0.0010778373374743288, + "calibration": { + "observed_rate": 0.0010718113612004287, + "mean_prediction": 0.0016820063809121707, + "calibration_in_the_large": 0.000610195019711742, + "expected_calibration_error_10bin": 0.000610195019711742, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9845233907843827 + }, + "O69": { + "valid": 2743, + "positives": 5, + "negatives": 2738, + "auroc": 0.9985390796201608, + "auprc": 0.40979797979797983, + "brier": 0.0012365451813520219, + "calibration": { + "observed_rate": 0.0018228217280349982, + "mean_prediction": 0.0020746955129802504, + "calibration_in_the_large": 0.00025187378494525214, + "expected_calibration_error_10bin": 0.0016024102222110632, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + "O99": { + "valid": 2652, + "positives": 1, + "negatives": 2651, + "auroc": 0.999622783855149, + "auprc": 0.5, + "brier": 0.0005476902794771943, + "calibration": { + "observed_rate": 0.0003770739064856712, + "mean_prediction": 0.002333562551959264, + "calibration_in_the_large": 0.0019564886454735927, + "expected_calibration_error_10bin": 0.0019564886454735927, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9328174463594794 + }, + "Q21": { + "valid": 2810, + "positives": 2, + "negatives": 2808, + "auroc": 0.7841880341880342, + "auprc": 0.0024032502410136344, + "brier": 0.0007125633011517571, + "calibration": { + "observed_rate": 0.0007117437722419929, + "mean_prediction": 0.0012474726421811977, + "calibration_in_the_large": 0.0005357288699392047, + "expected_calibration_error_10bin": 0.0005357288699392047, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + "U07": { + "valid": 2828, + "positives": 0, + "negatives": 2828, + "auroc": null, + "auprc": null, + "brier": 2.838345494605209e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0026345499659193123, + "calibration_in_the_large": 0.0026345499659193123, + "expected_calibration_error_10bin": 0.0026345499659193123, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9947238832219486 + } + }, + "180": { + "A04": { + "valid": 2782, + "positives": 21, + "negatives": 2761, + "auroc": 0.7668201652265397, + "auprc": 0.06617039282461, + "brier": 0.007535861144554448, + "calibration": { + "observed_rate": 0.007548526240115025, + "mean_prediction": 0.00785043419306102, + "calibration_in_the_large": 0.00030190795294599525, + "expected_calibration_error_10bin": 0.0017754513434622597, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + "A08": { + "valid": 2818, + "positives": 11, + "negatives": 2807, + "auroc": 0.7915924474527966, + "auprc": 0.014485014672029466, + "brier": 0.0038901327400565336, + "calibration": { + "observed_rate": 0.0039034776437189495, + "mean_prediction": 0.002467828333210504, + "calibration_in_the_large": -0.0014356493105084456, + "expected_calibration_error_10bin": 0.0014356493105084456, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "A41": { + "valid": 2664, + "positives": 49, + "negatives": 2615, + "auroc": 0.7446755375190229, + "auprc": 0.04738280768703647, + "brier": 0.01835087297247663, + "calibration": { + "observed_rate": 0.01839339339339339, + "mean_prediction": 0.01732110298451642, + "calibration_in_the_large": -0.0010722904088769705, + "expected_calibration_error_10bin": 0.007317804865138002, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9370383397819205 + }, + "B00": { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.7247869318181818, + "auprc": 0.05042502156942236, + "brier": 0.0010532739624775924, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0009531696660328365, + "calibration_in_the_large": -0.00011103749962874552, + "expected_calibration_error_10bin": 0.00011103749962874552, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "B02": { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.9525999292536258, + "auprc": 0.007407407407407408, + "brier": 0.0003556936601400132, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0008080327515013557, + "calibration_in_the_large": 0.0004544259622510021, + "expected_calibration_error_10bin": 0.0004544259622510021, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "B18": { + "valid": 2782, + "positives": 5, + "negatives": 2777, + "auroc": 0.9638458768455167, + "auprc": 0.03347449340436718, + "brier": 0.0018140496446398273, + "calibration": { + "observed_rate": 0.0017972681524083393, + "mean_prediction": 0.001023339443671968, + "calibration_in_the_large": -0.0007739287087363714, + "expected_calibration_error_10bin": 0.001110334367184054, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + "B19": { + "valid": 2763, + "positives": 15, + "negatives": 2748, + "auroc": 0.8988355167394468, + "auprc": 0.0906117144038013, + "brier": 0.005259270371318363, + "calibration": { + "observed_rate": 0.0054288816503800215, + "mean_prediction": 0.001971321511694027, + "calibration_in_the_large": -0.0034575601386859947, + "expected_calibration_error_10bin": 0.0034575601386859943, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + "B20": { + "valid": 2829, + "positives": 3, + "negatives": 2826, + "auroc": 0.9698041991035622, + "auprc": 0.022329501915708816, + "brier": 0.0010755892856746986, + "calibration": { + "observed_rate": 0.0010604453870625664, + "mean_prediction": 0.0007494019678438549, + "calibration_in_the_large": -0.0003110434192187115, + "expected_calibration_error_10bin": 0.0005674755164356011, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "B34": { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.9406614785992218, + "auprc": 0.05876932731515308, + "brier": 0.0013981924857823743, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0007174057487129821, + "calibration_in_the_large": -0.000695522545176103, + "expected_calibration_error_10bin": 0.000695522545176103, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "B35": { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 2.1423892928315337e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0008269149100840503, + "calibration_in_the_large": 0.0008269149100840503, + "expected_calibration_error_10bin": 0.0008269149100840503, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "B37": { + "valid": 2768, + "positives": 26, + "negatives": 2742, + "auroc": 0.7394658587218762, + "auprc": 0.022888352056800072, + "brier": 0.009343767698724116, + "calibration": { + "observed_rate": 0.00939306358381503, + "mean_prediction": 0.005606997611821341, + "calibration_in_the_large": -0.0037860659719936886, + "expected_calibration_error_10bin": 0.004368670829446031, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "B95": { + "valid": 2678, + "positives": 42, + "negatives": 2636, + "auroc": 0.7433250234843558, + "auprc": 0.032695891547874445, + "brier": 0.015393870788321419, + "calibration": { + "observed_rate": 0.01568334578043316, + "mean_prediction": 0.01335444173937021, + "calibration_in_the_large": -0.0023289040410629496, + "expected_calibration_error_10bin": 0.002814925600634348, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9419627154414351 + }, + "B96": { + "valid": 2630, + "positives": 61, + "negatives": 2569, + "auroc": 0.7678052951649236, + "auprc": 0.07561050408933825, + "brier": 0.02215391786479528, + "calibration": { + "observed_rate": 0.023193916349809884, + "mean_prediction": 0.015807378335750553, + "calibration_in_the_large": -0.007386538014059332, + "expected_calibration_error_10bin": 0.007951991063407216, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9250791417516707 + }, + "B97": { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.5012380615493456, + "auprc": 0.0007087172218284905, + "brier": 0.000378686198456181, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0008717474995791451, + "calibration_in_the_large": 0.0005181407103287915, + "expected_calibration_error_10bin": 0.0005181407103287915, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "C18": { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.9746633593196314, + "auprc": 0.019984326018808778, + "brier": 0.0007046478436536619, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0006672432455703636, + "calibration_in_the_large": -4.097205188006135e-05, + "expected_calibration_error_10bin": 4.097205188006135e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "C22": { + "valid": 2812, + "positives": 5, + "negatives": 2807, + "auroc": 0.9167794798717492, + "auprc": 0.027862569624991985, + "brier": 0.0017881511263835594, + "calibration": { + "observed_rate": 0.0017780938833570413, + "mean_prediction": 0.0005279013686154716, + "calibration_in_the_large": -0.0012501925147415697, + "expected_calibration_error_10bin": 0.0014729298314249495, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9890960253253606 + }, + "C25": { + "valid": 2809, + "positives": 2, + "negatives": 2807, + "auroc": 0.9695404346277164, + "auprc": 0.10591715976331362, + "brier": 0.0006950457435804577, + "calibration": { + "observed_rate": 0.000711997152011392, + "mean_prediction": 0.0009984597089845837, + "calibration_in_the_large": 0.00028646255697319166, + "expected_calibration_error_10bin": 0.00037285868324671116, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "C61": { + "valid": 2805, + "positives": 2, + "negatives": 2803, + "auroc": 0.9950053514092044, + "auprc": 0.09761904761904762, + "brier": 0.0006997050822742426, + "calibration": { + "observed_rate": 0.00071301247771836, + "mean_prediction": 0.0009245439280846008, + "calibration_in_the_large": 0.00021153145036624077, + "expected_calibration_error_10bin": 0.00021153145036624077, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "C67": { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9709939865581889, + "auprc": 0.018205892088712344, + "brier": 0.0007045913044412103, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0004146556321959748, + "calibration_in_the_large": -0.0002923079591790694, + "expected_calibration_error_10bin": 0.0002923079591790694, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "C77": { + "valid": 2762, + "positives": 16, + "negatives": 2746, + "auroc": 0.8652813182811362, + "auprc": 0.1033713295646719, + "brier": 0.0055490372086497335, + "calibration": { + "observed_rate": 0.005792903692976104, + "mean_prediction": 0.005005382050661546, + "calibration_in_the_large": -0.0007875216423145577, + "expected_calibration_error_10bin": 0.0011849280528726384, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + "C78": { + "valid": 2762, + "positives": 23, + "negatives": 2739, + "auroc": 0.8685016746829214, + "auprc": 0.14677683194243762, + "brier": 0.007784501780255946, + "calibration": { + "observed_rate": 0.00832729905865315, + "mean_prediction": 0.005246605650478926, + "calibration_in_the_large": -0.0030806934081742243, + "expected_calibration_error_10bin": 0.005732614447989626, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + "C79": { + "valid": 2751, + "positives": 16, + "negatives": 2735, + "auroc": 0.9089579524680073, + "auprc": 0.1077726634635811, + "brier": 0.005578936706208514, + "calibration": { + "observed_rate": 0.0058160668847691745, + "mean_prediction": 0.005494112888945823, + "calibration_in_the_large": -0.00032195399582335155, + "expected_calibration_error_10bin": 0.0018420344328803732, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "C83": { + "valid": 2820, + "positives": 0, + "negatives": 2820, + "auroc": null, + "auprc": null, + "brier": 3.229038556587315e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0005342017790931805, + "calibration_in_the_large": 0.0005342017790931805, + "expected_calibration_error_10bin": 0.0005342017790931805, + "nonempty_bins": 3 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9919099542736546 + }, + "D25": { + "valid": 2792, + "positives": 2, + "negatives": 2790, + "auroc": 0.9930107526881721, + "auprc": 0.275, + "brier": 0.0006950241473303066, + "calibration": { + "observed_rate": 0.0007163323782234957, + "mean_prediction": 0.0005355900649515805, + "calibration_in_the_large": -0.00018074231327191515, + "expected_calibration_error_10bin": 0.00018074231327191515, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + "D47": { + "valid": 2796, + "positives": 6, + "negatives": 2790, + "auroc": 0.571326164874552, + "auprc": 0.0031284380156066933, + "brier": 0.0021554191268732263, + "calibration": { + "observed_rate": 0.002145922746781116, + "mean_prediction": 0.002230054115172349, + "calibration_in_the_large": 8.413136839123319e-05, + "expected_calibration_error_10bin": 8.413136839123319e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + "D50": { + "valid": 2663, + "positives": 42, + "negatives": 2621, + "auroc": 0.8114950673134572, + "auprc": 0.11692635760950984, + "brier": 0.01501063496593701, + "calibration": { + "observed_rate": 0.015771686068343973, + "mean_prediction": 0.00977447290497257, + "calibration_in_the_large": -0.005997213163371403, + "expected_calibration_error_10bin": 0.005997213163371404, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9366865986633838 + }, + "D53": { + "valid": 2805, + "positives": 12, + "negatives": 2793, + "auroc": 0.854547081990691, + "auprc": 0.04872265110592089, + "brier": 0.004184287581146044, + "calibration": { + "observed_rate": 0.0042780748663101605, + "mean_prediction": 0.003781175006933447, + "calibration_in_the_large": -0.0004968998593767133, + "expected_calibration_error_10bin": 0.0006702926025145693, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "D59": { + "valid": 2836, + "positives": 1, + "negatives": 2835, + "auroc": 0.9887125220458554, + "auprc": 0.030303030303030304, + "brier": 0.0003509740621708453, + "calibration": { + "observed_rate": 0.0003526093088857546, + "mean_prediction": 0.0006939294141522966, + "calibration_in_the_large": 0.000341320105266542, + "expected_calibration_error_10bin": 0.000341320105266542, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "D61": { + "valid": 2773, + "positives": 24, + "negatives": 2749, + "auroc": 0.9008730447435431, + "auprc": 0.1428849770787792, + "brier": 0.008136121155924292, + "calibration": { + "observed_rate": 0.00865488640461594, + "mean_prediction": 0.008575241918410182, + "calibration_in_the_large": -7.964448620575819e-05, + "expected_calibration_error_10bin": 0.002140760463688737, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + "D62": { + "valid": 2499, + "positives": 49, + "negatives": 2450, + "auroc": 0.8113286130778842, + "auprc": 0.09613342415872879, + "brier": 0.018720269119083588, + "calibration": { + "observed_rate": 0.0196078431372549, + "mean_prediction": 0.013007787148004305, + "calibration_in_the_large": -0.006600055989250597, + "expected_calibration_error_10bin": 0.006600055989250599, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8790010552233556 + }, + "D63": { + "valid": 2686, + "positives": 62, + "negatives": 2624, + "auroc": 0.8699043568056648, + "auprc": 0.1188185099828214, + "brier": 0.02176418049964021, + "calibration": { + "observed_rate": 0.02308265078183172, + "mean_prediction": 0.017139255690221282, + "calibration_in_the_large": -0.005943395091610439, + "expected_calibration_error_10bin": 0.010473782746877136, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9447766443897292 + }, + "D64": { + "valid": 2434, + "positives": 89, + "negatives": 2345, + "auroc": 0.7999808341918018, + "auprc": 0.15433398302192802, + "brier": 0.03307377180785094, + "calibration": { + "observed_rate": 0.03656532456861134, + "mean_prediction": 0.030369248559439038, + "calibration_in_the_large": -0.0061960760091723036, + "expected_calibration_error_10bin": 0.008071954895576938, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8561378825184665 + }, + "D65": { + "valid": 2833, + "positives": 3, + "negatives": 2830, + "auroc": 0.9303886925795053, + "auprc": 0.01206531954887218, + "brier": 0.0010578563747374416, + "calibration": { + "observed_rate": 0.0010589481115425344, + "mean_prediction": 0.0005495280427745691, + "calibration_in_the_large": -0.0005094200687679653, + "expected_calibration_error_10bin": 0.0005094200687679653, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9964825888146325 + }, + "D68": { + "valid": 2682, + "positives": 44, + "negatives": 2638, + "auroc": 0.8043714246329864, + "auprc": 0.07797049185077037, + "brier": 0.01587013323574704, + "calibration": { + "observed_rate": 0.01640566741237882, + "mean_prediction": 0.0065577722417740104, + "calibration_in_the_large": -0.00984789517060481, + "expected_calibration_error_10bin": 0.010419244371568964, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9433696799155822 + }, + "D69": { + "valid": 2586, + "positives": 60, + "negatives": 2526, + "auroc": 0.8570269200316706, + "auprc": 0.22520094858044018, + "brier": 0.020176806653261502, + "calibration": { + "observed_rate": 0.02320185614849188, + "mean_prediction": 0.014037115845595787, + "calibration_in_the_large": -0.009164740302896091, + "expected_calibration_error_10bin": 0.00941539839386073, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9096025325360535 + }, + "D70": { + "valid": 2787, + "positives": 22, + "negatives": 2765, + "auroc": 0.8798125924708203, + "auprc": 0.14978295192535582, + "brier": 0.007406405261340394, + "calibration": { + "observed_rate": 0.007893792608539648, + "mean_prediction": 0.006962627697153573, + "calibration_in_the_large": -0.0009311649113860751, + "expected_calibration_error_10bin": 0.003586407866424861, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "D72": { + "valid": 2595, + "positives": 46, + "negatives": 2549, + "auroc": 0.7368447984716939, + "auprc": 0.059766907663894024, + "brier": 0.017159923053217938, + "calibration": { + "observed_rate": 0.017726396917148363, + "mean_prediction": 0.021846367187146637, + "calibration_in_the_large": 0.004119970269998274, + "expected_calibration_error_10bin": 0.0043275533565669995, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9127682026028843 + }, + "D73": { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.8838473354602386, + "auprc": 0.17230585424133812, + "brier": 0.0010480444357097252, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0005649375382277718, + "calibration_in_the_large": -0.0004973854079478657, + "expected_calibration_error_10bin": 0.0004973854079478657, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "D75": { + "valid": 2831, + "positives": 3, + "negatives": 2828, + "auroc": 0.9516737388024517, + "auprc": 0.013976622250370973, + "brier": 0.0010554766044377209, + "calibration": { + "observed_rate": 0.0010596962204168139, + "mean_prediction": 0.0009679721502447139, + "calibration_in_the_large": -9.172407017209996e-05, + "expected_calibration_error_10bin": 9.172407017209996e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "D80": { + "valid": 2832, + "positives": 6, + "negatives": 2826, + "auroc": 0.9822481717386176, + "auprc": 0.07803383425782098, + "brier": 0.002098203056977223, + "calibration": { + "observed_rate": 0.00211864406779661, + "mean_prediction": 0.0004779479343002457, + "calibration_in_the_large": -0.0016406961334963644, + "expected_calibration_error_10bin": 0.0017311910222310473, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + "D89": { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.6784832451499118, + "auprc": 0.0072377688939653535, + "brier": 0.0007925808064155919, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0006162833165186885, + "calibration_in_the_large": -8.868672225466367e-05, + "expected_calibration_error_10bin": 0.0004873348089312631, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + "E03": { + "valid": 2480, + "positives": 18, + "negatives": 2462, + "auroc": 0.7604025634082499, + "auprc": 0.059468973224405856, + "brier": 0.007146236025261184, + "calibration": { + "observed_rate": 0.007258064516129033, + "mean_prediction": 0.003388715728267984, + "calibration_in_the_large": -0.0038693487878610484, + "expected_calibration_error_10bin": 0.0038693487878610484, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8723179739711572 + }, + "E04": { + "valid": 2775, + "positives": 9, + "negatives": 2766, + "auroc": 0.7759701132803085, + "auprc": 0.01207864472522794, + "brier": 0.0032252094152290535, + "calibration": { + "observed_rate": 0.003243243243243243, + "mean_prediction": 0.0021513005633165155, + "calibration_in_the_large": -0.0010919426799267276, + "expected_calibration_error_10bin": 0.0010919426799267276, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + "E05": { + "valid": 2806, + "positives": 2, + "negatives": 2804, + "auroc": 0.3735734664764622, + "auprc": 0.0008299335917903172, + "brier": 0.0007129916814386974, + "calibration": { + "observed_rate": 0.0007127583749109052, + "mean_prediction": 0.0005849239900445372, + "calibration_in_the_large": -0.000127834384866368, + "expected_calibration_error_10bin": 0.000127834384866368, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "E11": { + "valid": 2194, + "positives": 15, + "negatives": 2179, + "auroc": 0.8116567232675539, + "auprc": 0.020933494146672938, + "brier": 0.006783152526578004, + "calibration": { + "observed_rate": 0.0068368277119416595, + "mean_prediction": 0.0034735755738008996, + "calibration_in_the_large": -0.00336325213814076, + "expected_calibration_error_10bin": 0.00336325213814076, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7717200140696447 + }, + "E16": { + "valid": 2816, + "positives": 5, + "negatives": 2811, + "auroc": 0.5709711846318036, + "auprc": 0.0024219609080447647, + "brier": 0.0017870249193898636, + "calibration": { + "observed_rate": 0.0017755681818181818, + "mean_prediction": 0.001761351026533217, + "calibration_in_the_large": -1.4217155284964754e-05, + "expected_calibration_error_10bin": 1.4217155284964754e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "E21": { + "valid": 2814, + "positives": 1, + "negatives": 2813, + "auroc": 0.9811589050835408, + "auprc": 0.018518518518518517, + "brier": 0.00035595292517388735, + "calibration": { + "observed_rate": 0.00035536602700781805, + "mean_prediction": 0.0008903382495835972, + "calibration_in_the_large": 0.0005349722225757792, + "expected_calibration_error_10bin": 0.0005349722225757792, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "E22": { + "valid": 2802, + "positives": 6, + "negatives": 2796, + "auroc": 0.8046018121125418, + "auprc": 0.02383428787618889, + "brier": 0.002143463201278173, + "calibration": { + "observed_rate": 0.0021413276231263384, + "mean_prediction": 0.0032322773432769346, + "calibration_in_the_large": 0.0010909497201505962, + "expected_calibration_error_10bin": 0.0010909497201505964, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "E27": { + "valid": 2811, + "positives": 5, + "negatives": 2806, + "auroc": 0.7538132573057733, + "auprc": 0.004394195767486805, + "brier": 0.001777384162233459, + "calibration": { + "observed_rate": 0.0017787264318747777, + "mean_prediction": 0.000918646657390063, + "calibration_in_the_large": -0.0008600797744847147, + "expected_calibration_error_10bin": 0.0008600797744847147, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9887442842068238 + }, + "E43": { + "valid": 2748, + "positives": 32, + "negatives": 2716, + "auroc": 0.8415983983799705, + "auprc": 0.0575424751478823, + "brier": 0.011317662334602897, + "calibration": { + "observed_rate": 0.011644832605531296, + "mean_prediction": 0.010480173381681954, + "calibration_in_the_large": -0.001164659223849342, + "expected_calibration_error_10bin": 0.0035891081150871743, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9665845937390081 + }, + "E44": { + "valid": 2800, + "positives": 15, + "negatives": 2785, + "auroc": 0.7521723518850988, + "auprc": 0.022669316630137753, + "brier": 0.005312376027108504, + "calibration": { + "observed_rate": 0.005357142857142857, + "mean_prediction": 0.003983711252015902, + "calibration_in_the_large": -0.001373431605126955, + "expected_calibration_error_10bin": 0.0014833533734346406, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + "E46": { + "valid": 2772, + "positives": 30, + "negatives": 2742, + "auroc": 0.8340262582056893, + "auprc": 0.1315842284223103, + "brier": 0.010274724252793532, + "calibration": { + "observed_rate": 0.010822510822510822, + "mean_prediction": 0.006587953716610718, + "calibration_in_the_large": -0.004234557105900104, + "expected_calibration_error_10bin": 0.0042345571059001046, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9750263805838902 + }, + "E53": { + "valid": 2804, + "positives": 4, + "negatives": 2800, + "auroc": 0.6966964285714285, + "auprc": 0.003937095844602141, + "brier": 0.001427223485879335, + "calibration": { + "observed_rate": 0.0014265335235378032, + "mean_prediction": 0.0012349553002127826, + "calibration_in_the_large": -0.00019157822332502056, + "expected_calibration_error_10bin": 0.00019157822332502056, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "E55": { + "valid": 2737, + "positives": 21, + "negatives": 2716, + "auroc": 0.5882951118591767, + "auprc": 0.01171542652290697, + "brier": 0.007648395278377901, + "calibration": { + "observed_rate": 0.0076726342710997444, + "mean_prediction": 0.0044116811587104005, + "calibration_in_the_large": -0.003260953112389344, + "expected_calibration_error_10bin": 0.003260953112389344, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9627154414351038 + }, + "E66": { + "valid": 2371, + "positives": 29, + "negatives": 2342, + "auroc": 0.7721075414470391, + "auprc": 0.048223246021357184, + "brier": 0.011932825956975394, + "calibration": { + "observed_rate": 0.012231126107127795, + "mean_prediction": 0.008559766009036343, + "calibration_in_the_large": -0.003671360098091452, + "expected_calibration_error_10bin": 0.004333158563800905, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8339781920506507 + }, + "E78": { + "valid": 1572, + "positives": 31, + "negatives": 1541, + "auroc": 0.7001528123757091, + "auprc": 0.06718424561160141, + "brier": 0.019274942520813035, + "calibration": { + "observed_rate": 0.019720101781170483, + "mean_prediction": 0.02100987843951972, + "calibration_in_the_large": 0.0012897766583492357, + "expected_calibration_error_10bin": 0.0023727592576503857, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5529370383397819 + }, + "E80": { + "valid": 2823, + "positives": 4, + "negatives": 2819, + "auroc": 0.9555693508336289, + "auprc": 0.018715015152274094, + "brier": 0.0014113927037757174, + "calibration": { + "observed_rate": 0.0014169323414806943, + "mean_prediction": 0.0009655798984849066, + "calibration_in_the_large": -0.00045135244299578765, + "expected_calibration_error_10bin": 0.00045135244299578765, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "E83": { + "valid": 2653, + "positives": 58, + "negatives": 2595, + "auroc": 0.805614244900671, + "auprc": 0.10548027734774192, + "brier": 0.02062165277531993, + "calibration": { + "observed_rate": 0.02186204297022239, + "mean_prediction": 0.013455797264538846, + "calibration_in_the_large": -0.008406245705683544, + "expected_calibration_error_10bin": 0.010215702825390884, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9331691874780161 + }, + "E86": { + "valid": 2587, + "positives": 71, + "negatives": 2516, + "auroc": 0.810206229427439, + "auprc": 0.09583846315603627, + "brier": 0.025728320685354716, + "calibration": { + "observed_rate": 0.027444916892153073, + "mean_prediction": 0.025221895873273, + "calibration_in_the_large": -0.0022230210188800732, + "expected_calibration_error_10bin": 0.004159203335242494, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9099542736545903 + }, + "E87": { + "valid": 2185, + "positives": 107, + "negatives": 2078, + "auroc": 0.7770366905633562, + "auprc": 0.14466539662916314, + "brier": 0.04455048051045302, + "calibration": { + "observed_rate": 0.04897025171624714, + "mean_prediction": 0.038156545937521644, + "calibration_in_the_large": -0.010813705778725494, + "expected_calibration_error_10bin": 0.014284244775175366, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.768554344002814 + }, + "E88": { + "valid": 2817, + "positives": 10, + "negatives": 2807, + "auroc": 0.7541859636622729, + "auprc": 0.09089908541287312, + "brier": 0.003432261746947922, + "calibration": { + "observed_rate": 0.003549875754348598, + "mean_prediction": 0.002320098421215694, + "calibration_in_the_large": -0.0012297773331329041, + "expected_calibration_error_10bin": 0.0013838104248046238, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "E89": { + "valid": 2780, + "positives": 5, + "negatives": 2775, + "auroc": 0.6451891891891892, + "auprc": 0.007874694512843075, + "brier": 0.0017934754459321457, + "calibration": { + "observed_rate": 0.0017985611510791368, + "mean_prediction": 0.0012893826985896503, + "calibration_in_the_large": -0.0005091784524894865, + "expected_calibration_error_10bin": 0.0005091784524894865, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + "F02": { + "valid": 2802, + "positives": 3, + "negatives": 2799, + "auroc": 0.7987376443968084, + "auprc": 0.011800839323775104, + "brier": 0.0010919612484217172, + "calibration": { + "observed_rate": 0.0010706638115631692, + "mean_prediction": 0.0019271586530286175, + "calibration_in_the_large": 0.0008564948414654483, + "expected_calibration_error_10bin": 0.0008564948414654483, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "F03": { + "valid": 2739, + "positives": 12, + "negatives": 2727, + "auroc": 0.8759320376482093, + "auprc": 0.0316399405903398, + "brier": 0.004348161691783646, + "calibration": { + "observed_rate": 0.004381161007667032, + "mean_prediction": 0.00466913521593574, + "calibration_in_the_large": 0.00028797420826870857, + "expected_calibration_error_10bin": 0.0002879742082687085, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + "F05": { + "valid": 2750, + "positives": 19, + "negatives": 2731, + "auroc": 0.7300391219719016, + "auprc": 0.014748518671079505, + "brier": 0.0069000185609290905, + "calibration": { + "observed_rate": 0.006909090909090909, + "mean_prediction": 0.006377753797773328, + "calibration_in_the_large": -0.0005313371113175808, + "expected_calibration_error_10bin": 0.0005313371113175808, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + "F06": { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.6134111818825194, + "auprc": 0.0014487360385364821, + "brier": 0.0007115495188935089, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.0013139041563733373, + "calibration_in_the_large": 0.0006066905778726301, + "expected_calibration_error_10bin": 0.0006066905778726301, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "F10": { + "valid": 2560, + "positives": 10, + "negatives": 2550, + "auroc": 0.7477254901960785, + "auprc": 0.15178948318490146, + "brier": 0.0037387763804916873, + "calibration": { + "observed_rate": 0.00390625, + "mean_prediction": 0.0032430449224946757, + "calibration_in_the_large": -0.0006632050775053243, + "expected_calibration_error_10bin": 0.0006632050775053246, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + "F11": { + "valid": 2741, + "positives": 8, + "negatives": 2733, + "auroc": 0.8401939260885474, + "auprc": 0.0393683509424772, + "brier": 0.002874431785192188, + "calibration": { + "observed_rate": 0.002918642831083546, + "mean_prediction": 0.0022478684442538196, + "calibration_in_the_large": -0.0006707743868297265, + "expected_calibration_error_10bin": 0.0006707743868297265, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + "F12": { + "valid": 2777, + "positives": 11, + "negatives": 2766, + "auroc": 0.9142181029382764, + "auprc": 0.029689854738720767, + "brier": 0.003924485784905638, + "calibration": { + "observed_rate": 0.003961109110550955, + "mean_prediction": 0.0014832097252516327, + "calibration_in_the_large": -0.002477899385299322, + "expected_calibration_error_10bin": 0.002477899385299322, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + "F14": { + "valid": 2787, + "positives": 9, + "negatives": 2778, + "auroc": 0.925845932325414, + "auprc": 0.03804062947123468, + "brier": 0.0032019304189124485, + "calibration": { + "observed_rate": 0.0032292787944025836, + "mean_prediction": 0.001268173439290185, + "calibration_in_the_large": -0.0019611053551123986, + "expected_calibration_error_10bin": 0.0020392141944903038, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "F15": { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.938350491066146, + "auprc": 0.05396264486061869, + "brier": 0.0020916025767978665, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0008412994201028728, + "calibration_in_the_large": -0.0012840990921181685, + "expected_calibration_error_10bin": 0.0012840990921181685, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "F17": { + "valid": 2426, + "positives": 25, + "negatives": 2401, + "auroc": 0.8905622657226155, + "auprc": 0.08148675095152999, + "brier": 0.009947167043972423, + "calibration": { + "observed_rate": 0.010305028854080791, + "mean_prediction": 0.005530125154584922, + "calibration_in_the_large": -0.00477490369949587, + "expected_calibration_error_10bin": 0.005524565585342739, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8533239535701723 + }, + "F19": { + "valid": 2801, + "positives": 10, + "negatives": 2791, + "auroc": 0.9280544607667502, + "auprc": 0.20971134965404473, + "brier": 0.0033217534749850077, + "calibration": { + "observed_rate": 0.003570153516601214, + "mean_prediction": 0.0021569452833813964, + "calibration_in_the_large": -0.0014132082332198176, + "expected_calibration_error_10bin": 0.0014132082332198172, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "F20": { + "valid": 2808, + "positives": 3, + "negatives": 2805, + "auroc": 0.8149732620320855, + "auprc": 0.012680166539023546, + "brier": 0.0010656622465314415, + "calibration": { + "observed_rate": 0.0010683760683760685, + "mean_prediction": 0.00089618410375039, + "calibration_in_the_large": -0.00017219196462567852, + "expected_calibration_error_10bin": 0.00017219196462567852, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9876890608512136 + }, + "F22": { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.922695035460993, + "auprc": 0.0045662100456621, + "brier": 0.0003648591557736366, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.001407748935886139, + "calibration_in_the_large": 0.0010532647104341717, + "expected_calibration_error_10bin": 0.0010532647104341717, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "F25": { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.8484848484848485, + "auprc": 0.00909718799934292, + "brier": 0.0010681692711164584, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0010638753252974306, + "calibration_in_the_large": -3.318403641514294e-07, + "expected_calibration_error_10bin": 3.318403641514294e-07, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "F29": { + "valid": 2806, + "positives": 7, + "negatives": 2799, + "auroc": 0.7811463277701219, + "auprc": 0.009091707841401961, + "brier": 0.002491088426367913, + "calibration": { + "observed_rate": 0.0024946543121881683, + "mean_prediction": 0.0005840679637590298, + "calibration_in_the_large": -0.0019105863484291385, + "expected_calibration_error_10bin": 0.0019105863484291385, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "F31": { + "valid": 2724, + "positives": 8, + "negatives": 2716, + "auroc": 0.9203792341678939, + "auprc": 0.03499352785682431, + "brier": 0.0028862142366113098, + "calibration": { + "observed_rate": 0.002936857562408223, + "mean_prediction": 0.0021245600560024407, + "calibration_in_the_large": -0.0008122975064057823, + "expected_calibration_error_10bin": 0.0008122975064057823, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9581428068941259 + }, + "F32": { + "valid": 2200, + "positives": 47, + "negatives": 2153, + "auroc": 0.69276911978338, + "auprc": 0.050323200647869576, + "brier": 0.020810416691827482, + "calibration": { + "observed_rate": 0.021363636363636362, + "mean_prediction": 0.019063140515036967, + "calibration_in_the_large": -0.0023004958485993952, + "expected_calibration_error_10bin": 0.004682490410314956, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7738304607808653 + }, + "F33": { + "valid": 2800, + "positives": 9, + "negatives": 2791, + "auroc": 0.8272622317767427, + "auprc": 0.01808137726611524, + "brier": 0.003240727418425967, + "calibration": { + "observed_rate": 0.0032142857142857142, + "mean_prediction": 0.003410499684948393, + "calibration_in_the_large": 0.0001962139706626789, + "expected_calibration_error_10bin": 0.00019621397066267872, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + "F39": { + "valid": 2801, + "positives": 9, + "negatives": 2792, + "auroc": 0.7722063037249284, + "auprc": 0.027159277007854348, + "brier": 0.0031845884466793935, + "calibration": { + "observed_rate": 0.0032131381649410924, + "mean_prediction": 0.0013905402867690122, + "calibration_in_the_large": -0.0018225978781720802, + "expected_calibration_error_10bin": 0.0018225978781720802, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "F41": { + "valid": 2247, + "positives": 66, + "negatives": 2181, + "auroc": 0.7434524057632723, + "auprc": 0.0906911793259779, + "brier": 0.02780641516086947, + "calibration": { + "observed_rate": 0.029372496662216287, + "mean_prediction": 0.02484207684223917, + "calibration_in_the_large": -0.004530419819977118, + "expected_calibration_error_10bin": 0.005370112813463743, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7903622933520928 + }, + "F43": { + "valid": 2734, + "positives": 16, + "negatives": 2718, + "auroc": 0.8103844738778514, + "auprc": 0.033133757680017174, + "brier": 0.005763549924386733, + "calibration": { + "observed_rate": 0.005852231163130944, + "mean_prediction": 0.004883392935313839, + "calibration_in_the_large": -0.0009688382278171051, + "expected_calibration_error_10bin": 0.0012311094619028263, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "F60": { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.9364379665837185, + "auprc": 0.05106263928456095, + "brier": 0.0017402064504364904, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.002295084522997074, + "calibration_in_the_large": 0.0005207765031248241, + "expected_calibration_error_10bin": 0.0005207765031248236, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "F90": { + "valid": 2775, + "positives": 7, + "negatives": 2768, + "auroc": 0.9331647398843931, + "auprc": 0.04446500027774506, + "brier": 0.002471573146720172, + "calibration": { + "observed_rate": 0.0025225225225225223, + "mean_prediction": 0.001800455219451357, + "calibration_in_the_large": -0.0007220673030711655, + "expected_calibration_error_10bin": 0.0007220673030711655, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + "G25": { + "valid": 2774, + "positives": 4, + "negatives": 2770, + "auroc": 0.6993682310469314, + "auprc": 0.005019105519062863, + "brier": 0.0014441231044710983, + "calibration": { + "observed_rate": 0.0014419610670511895, + "mean_prediction": 0.0020642409587446607, + "calibration_in_the_large": 0.0006222798916934711, + "expected_calibration_error_10bin": 0.0006222798916934711, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "G31": { + "valid": 2802, + "positives": 4, + "negatives": 2798, + "auroc": 0.8374731951393852, + "auprc": 0.007548615300202988, + "brier": 0.0014341123506151374, + "calibration": { + "observed_rate": 0.0014275517487508922, + "mean_prediction": 0.0016727239131308993, + "calibration_in_the_large": 0.0002451721643800071, + "expected_calibration_error_10bin": 0.0002451721643800071, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "G40": { + "valid": 2723, + "positives": 20, + "negatives": 2703, + "auroc": 0.7258231594524602, + "auprc": 0.04755586750564753, + "brier": 0.007222365284790956, + "calibration": { + "observed_rate": 0.007344840249724568, + "mean_prediction": 0.004581255401183091, + "calibration_in_the_large": -0.002763584848541477, + "expected_calibration_error_10bin": 0.0031343181106130063, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + "G43": { + "valid": 2725, + "positives": 11, + "negatives": 2714, + "auroc": 0.7013800495745963, + "auprc": 0.030727709972066645, + "brier": 0.0040042873776511756, + "calibration": { + "observed_rate": 0.004036697247706422, + "mean_prediction": 0.0022000915601843147, + "calibration_in_the_large": -0.0018366056875221072, + "expected_calibration_error_10bin": 0.0018366056875221072, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9584945480126627 + }, + "G44": { + "valid": 2805, + "positives": 4, + "negatives": 2801, + "auroc": 0.5976436986790432, + "auprc": 0.012526143911455949, + "brier": 0.0014231507307882146, + "calibration": { + "observed_rate": 0.00142602495543672, + "mean_prediction": 0.0009996475779730978, + "calibration_in_the_large": -0.00042637737746362234, + "expected_calibration_error_10bin": 0.00042637737746362234, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "G47": { + "valid": 2315, + "positives": 70, + "negatives": 2245, + "auroc": 0.6727457842825326, + "auprc": 0.06095990431918096, + "brier": 0.029054330110012194, + "calibration": { + "observed_rate": 0.03023758099352052, + "mean_prediction": 0.023610891369608943, + "calibration_in_the_large": -0.006626689623911577, + "expected_calibration_error_10bin": 0.009291819738878888, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8142806894125924 + }, + "G51": { + "valid": 2834, + "positives": 0, + "negatives": 2834, + "auroc": null, + "auprc": null, + "brier": 2.3336490613253276e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00038397537658017383, + "calibration_in_the_large": 0.00038397537658017383, + "expected_calibration_error_10bin": 0.00038397537658017383, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9968343299331692 + }, + "G62": { + "valid": 2751, + "positives": 28, + "negatives": 2723, + "auroc": 0.838085619852054, + "auprc": 0.09926897833899599, + "brier": 0.009707885103552973, + "calibration": { + "observed_rate": 0.010178117048346057, + "mean_prediction": 0.005753375632727049, + "calibration_in_the_large": -0.004424741415619007, + "expected_calibration_error_10bin": 0.004922421338772589, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "G81": { + "valid": 2789, + "positives": 12, + "negatives": 2777, + "auroc": 0.731004681310767, + "auprc": 0.0509826733108904, + "brier": 0.004244656096489527, + "calibration": { + "observed_rate": 0.004302617425600574, + "mean_prediction": 0.0026779704232249503, + "calibration_in_the_large": -0.0016246470023756235, + "expected_calibration_error_10bin": 0.0017024564743211826, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "G83": { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.6373626373626373, + "auprc": 0.005563796742286444, + "brier": 0.0010621255981268327, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0010502701039740714, + "calibration_in_the_large": -1.2052842201566109e-05, + "expected_calibration_error_10bin": 1.2052842201566109e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "G89": { + "valid": 2537, + "positives": 45, + "negatives": 2492, + "auroc": 0.7662832174068129, + "auprc": 0.06624038997970169, + "brier": 0.01705696049778842, + "calibration": { + "observed_rate": 0.017737485218762318, + "mean_prediction": 0.013749411882519514, + "calibration_in_the_large": -0.003988073336242804, + "expected_calibration_error_10bin": 0.004199957557983995, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8923672177277524 + }, + "G90": { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 7.112553697447123e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0013211932588411634, + "calibration_in_the_large": 0.0013211932588411634, + "expected_calibration_error_10bin": 0.0013211932588411634, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "G92": { + "valid": 2733, + "positives": 32, + "negatives": 2701, + "auroc": 0.8095265642354683, + "auprc": 0.04601461295132882, + "brier": 0.011408779903539269, + "calibration": { + "observed_rate": 0.011708744968898645, + "mean_prediction": 0.009965271649483146, + "calibration_in_the_large": -0.0017434733194154999, + "expected_calibration_error_10bin": 0.0017434733194155012, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + "G93": { + "valid": 2656, + "positives": 37, + "negatives": 2619, + "auroc": 0.8046190520417325, + "auprc": 0.05825816695953981, + "brier": 0.013451987947631545, + "calibration": { + "observed_rate": 0.013930722891566265, + "mean_prediction": 0.010450991388960388, + "calibration_in_the_large": -0.003479731502605877, + "expected_calibration_error_10bin": 0.0036485842238682857, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9342244108336265 + }, + "G99": { + "valid": 2841, + "positives": 0, + "negatives": 2841, + "auroc": null, + "auprc": null, + "brier": 1.1659124701570205e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00034993335278666314, + "calibration_in_the_large": 0.00034993335278666314, + "expected_calibration_error_10bin": 0.00034993335278666314, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9992965177629265 + }, + "H10": { + "valid": 2832, + "positives": 4, + "negatives": 2828, + "auroc": 0.8920615275813296, + "auprc": 0.008217872072528819, + "brier": 0.0014085135107293925, + "calibration": { + "observed_rate": 0.0014124293785310734, + "mean_prediction": 0.0006620340956176908, + "calibration_in_the_large": -0.0007503952829133827, + "expected_calibration_error_10bin": 0.0007503952829133827, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + "H26": { + "valid": 2819, + "positives": 0, + "negatives": 2819, + "auroc": null, + "auprc": null, + "brier": 8.475409989284414e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.001489971014467635, + "calibration_in_the_large": 0.001489971014467635, + "expected_calibration_error_10bin": 0.001489971014467635, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "H35": { + "valid": 2806, + "positives": 4, + "negatives": 2802, + "auroc": 0.6282119914346895, + "auprc": 0.00264096556181446, + "brier": 0.0014261222936385548, + "calibration": { + "observed_rate": 0.0014255167498218105, + "mean_prediction": 0.0009747419698890923, + "calibration_in_the_large": -0.00045077477993271816, + "expected_calibration_error_10bin": 0.00045077477993271816, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "H40": { + "valid": 2750, + "positives": 5, + "negatives": 2745, + "auroc": 0.7432422586520947, + "auprc": 0.059888304839695004, + "brier": 0.0018036517022881414, + "calibration": { + "observed_rate": 0.0018181818181818182, + "mean_prediction": 0.003148632781627715, + "calibration_in_the_large": 0.0013304509634458968, + "expected_calibration_error_10bin": 0.0013304509634458968, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + "H53": { + "valid": 2790, + "positives": 9, + "negatives": 2781, + "auroc": 0.5952694873946223, + "auprc": 0.012840958681159732, + "brier": 0.003217310239942608, + "calibration": { + "observed_rate": 0.0032258064516129032, + "mean_prediction": 0.004016103337592517, + "calibration_in_the_large": 0.0007902968859796141, + "expected_calibration_error_10bin": 0.0007902968859796141, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + "H54": { + "valid": 2809, + "positives": 2, + "negatives": 2807, + "auroc": 0.4474527965799786, + "auprc": 0.000983847992467225, + "brier": 0.0007142526677092737, + "calibration": { + "observed_rate": 0.000711997152011392, + "mean_prediction": 0.0008878545976154933, + "calibration_in_the_large": 0.00017585744560410133, + "expected_calibration_error_10bin": 0.00017585744560410133, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "H91": { + "valid": 2791, + "positives": 5, + "negatives": 2786, + "auroc": 0.803445800430725, + "auprc": 0.01742638805423775, + "brier": 0.0017814440218057476, + "calibration": { + "observed_rate": 0.0017914725904693658, + "mean_prediction": 0.0014238502701227626, + "calibration_in_the_large": -0.00036762232034660315, + "expected_calibration_error_10bin": 0.00036762232034660315, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9817094618360886 + }, + "I07": { + "valid": 2823, + "positives": 5, + "negatives": 2818, + "auroc": 0.8506032647267565, + "auprc": 0.012027843782672538, + "brier": 0.0017645517488897098, + "calibration": { + "observed_rate": 0.001771165426850868, + "mean_prediction": 0.0008147805008769502, + "calibration_in_the_large": -0.0009563849259739177, + "expected_calibration_error_10bin": 0.0009563849259739177, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "I08": { + "valid": 2767, + "positives": 8, + "negatives": 2759, + "auroc": 0.8049565059804277, + "auprc": 0.012813366723481748, + "brier": 0.002935492958330033, + "calibration": { + "observed_rate": 0.0028912179255511385, + "mean_prediction": 0.0036706858168170592, + "calibration_in_the_large": 0.0007794678912659207, + "expected_calibration_error_10bin": 0.0007794678912659209, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9732676749912065 + }, + "I10": { + "valid": 1498, + "positives": 33, + "negatives": 1465, + "auroc": 0.6781466542558693, + "auprc": 0.04485804624021331, + "brier": 0.021458683417378263, + "calibration": { + "observed_rate": 0.022029372496662217, + "mean_prediction": 0.017315076368311307, + "calibration_in_the_large": -0.0047142961283509095, + "expected_calibration_error_10bin": 0.005346540490803227, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5269081955680619 + }, + "I11": { + "valid": 2676, + "positives": 32, + "negatives": 2644, + "auroc": 0.8235509644478064, + "auprc": 0.054846972427158906, + "brier": 0.011685775713958329, + "calibration": { + "observed_rate": 0.01195814648729447, + "mean_prediction": 0.010411671626554438, + "calibration_in_the_large": -0.0015464748607400321, + "expected_calibration_error_10bin": 0.002517661237836992, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9412592332043616 + }, + "I12": { + "valid": 2552, + "positives": 19, + "negatives": 2533, + "auroc": 0.8478816464770296, + "auprc": 0.09903982030607088, + "brier": 0.0071839328641439834, + "calibration": { + "observed_rate": 0.007445141065830721, + "mean_prediction": 0.00724723861444039, + "calibration_in_the_large": -0.00019790245139033116, + "expected_calibration_error_10bin": 0.0010645581788358502, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8976433345058037 + }, + "I13": { + "valid": 2727, + "positives": 20, + "negatives": 2707, + "auroc": 0.8851126708533432, + "auprc": 0.08123911595330893, + "brier": 0.00716705965035658, + "calibration": { + "observed_rate": 0.007334066740007334, + "mean_prediction": 0.009272474541543774, + "calibration_in_the_large": 0.0019384078015364401, + "expected_calibration_error_10bin": 0.0019723905198376873, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9591980302497362 + }, + "I16": { + "valid": 2390, + "positives": 8, + "negatives": 2382, + "auroc": 0.8648719563392108, + "auprc": 0.02016667922752368, + "brier": 0.0033197730095588336, + "calibration": { + "observed_rate": 0.0033472803347280333, + "mean_prediction": 0.002761288255430209, + "calibration_in_the_large": -0.0005859920792978244, + "expected_calibration_error_10bin": 0.0005859920792978244, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8406612733028491 + }, + "I21": { + "valid": 2671, + "positives": 14, + "negatives": 2657, + "auroc": 0.8425990644658315, + "auprc": 0.024559260043448695, + "brier": 0.005279101144457963, + "calibration": { + "observed_rate": 0.005241482590789966, + "mean_prediction": 0.010547172120757516, + "calibration_in_the_large": 0.00530568952996755, + "expected_calibration_error_10bin": 0.00530568952996755, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + "I24": { + "valid": 2809, + "positives": 6, + "negatives": 2803, + "auroc": 0.8960042811273635, + "auprc": 0.02004760966229208, + "brier": 0.002117050385097311, + "calibration": { + "observed_rate": 0.002135991456034176, + "mean_prediction": 0.0021306379051593055, + "calibration_in_the_large": -5.353550874870501e-06, + "expected_calibration_error_10bin": 5.353550874870501e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "I25": { + "valid": 2243, + "positives": 32, + "negatives": 2211, + "auroc": 0.8406405472636815, + "auprc": 0.07777439258880493, + "brier": 0.013686469400905144, + "calibration": { + "observed_rate": 0.014266607222469906, + "mean_prediction": 0.009683020951477389, + "calibration_in_the_large": -0.004583586270992517, + "expected_calibration_error_10bin": 0.005939408216220788, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7889553288779458 + }, + "I26": { + "valid": 2760, + "positives": 14, + "negatives": 2746, + "auroc": 0.8019456872333784, + "auprc": 0.15214003063370254, + "brier": 0.004806788482391979, + "calibration": { + "observed_rate": 0.005072463768115942, + "mean_prediction": 0.007195453534742241, + "calibration_in_the_large": 0.0021229897666262994, + "expected_calibration_error_10bin": 0.002698559600160651, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9708054871614492 + }, + "I27": { + "valid": 2716, + "positives": 26, + "negatives": 2690, + "auroc": 0.8410780669144982, + "auprc": 0.058551797587297054, + "brier": 0.009343493401727663, + "calibration": { + "observed_rate": 0.009572901325478646, + "mean_prediction": 0.0063582532153928974, + "calibration_in_the_large": -0.0032146481100857483, + "expected_calibration_error_10bin": 0.003214648110085749, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + "I31": { + "valid": 2793, + "positives": 11, + "negatives": 2782, + "auroc": 0.7933795176785831, + "auprc": 0.015783688822835342, + "brier": 0.0039144761811736265, + "calibration": { + "observed_rate": 0.003938417472252059, + "mean_prediction": 0.0029013516215397064, + "calibration_in_the_large": -0.0010370658507123528, + "expected_calibration_error_10bin": 0.0010370658507123528, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "I34": { + "valid": 2753, + "positives": 15, + "negatives": 2738, + "auroc": 0.7557341124908693, + "auprc": 0.015070359496659119, + "brier": 0.00550604552447791, + "calibration": { + "observed_rate": 0.005448601525608427, + "mean_prediction": 0.0058801953643500575, + "calibration_in_the_large": 0.00043159383874163005, + "expected_calibration_error_10bin": 0.00043159383874163027, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9683432993316918 + }, + "I35": { + "valid": 2723, + "positives": 5, + "negatives": 2718, + "auroc": 0.6631346578366446, + "auprc": 0.007235859947668644, + "brier": 0.0018498405744636589, + "calibration": { + "observed_rate": 0.001836210062431142, + "mean_prediction": 0.002704647062691294, + "calibration_in_the_large": 0.000868437000260152, + "expected_calibration_error_10bin": 0.000868437000260152, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + "I42": { + "valid": 2740, + "positives": 11, + "negatives": 2729, + "auroc": 0.9190845797661481, + "auprc": 0.03600311584555758, + "brier": 0.003947182208687034, + "calibration": { + "observed_rate": 0.0040145985401459855, + "mean_prediction": 0.0031993585324139565, + "calibration_in_the_large": -0.0008152400077320291, + "expected_calibration_error_10bin": 0.0008919936266754587, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + "I44": { + "valid": 2722, + "positives": 14, + "negatives": 2708, + "auroc": 0.8652669339523106, + "auprc": 0.04227975570457724, + "brier": 0.005032813146442027, + "calibration": { + "observed_rate": 0.005143277002204262, + "mean_prediction": 0.004313556451780033, + "calibration_in_the_large": -0.0008297205504242287, + "expected_calibration_error_10bin": 0.0008297205504242287, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9574393246570524 + }, + "I45": { + "valid": 2766, + "positives": 10, + "negatives": 2756, + "auroc": 0.6675253991291727, + "auprc": 0.00570289775580672, + "brier": 0.003620440986339131, + "calibration": { + "observed_rate": 0.0036153289949385392, + "mean_prediction": 0.003989889112424741, + "calibration_in_the_large": 0.0003745601174862021, + "expected_calibration_error_10bin": 0.0003745601174862021, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9729159338726697 + }, + "I46": { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.7180212014134275, + "auprc": 0.0012515644555694619, + "brier": 0.0003543274277664798, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.0007493209937295027, + "calibration_in_the_large": 0.00039608892025723143, + "expected_calibration_error_10bin": 0.00039608892025723143, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "I47": { + "valid": 2716, + "positives": 11, + "negatives": 2705, + "auroc": 0.636464459754663, + "auprc": 0.0065519720861141805, + "brier": 0.0040852992542870946, + "calibration": { + "observed_rate": 0.004050073637702504, + "mean_prediction": 0.006832356665562093, + "calibration_in_the_large": 0.0027822830278595887, + "expected_calibration_error_10bin": 0.0027822830278595887, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + "I48": { + "valid": 2385, + "positives": 21, + "negatives": 2364, + "auroc": 0.765349286922891, + "auprc": 0.025520064971103845, + "brier": 0.009024782133069786, + "calibration": { + "observed_rate": 0.00880503144654088, + "mean_prediction": 0.01372838522388472, + "calibration_in_the_large": 0.0049233537773438404, + "expected_calibration_error_10bin": 0.004923353777343842, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8389025677101654 + }, + "I49": { + "valid": 2734, + "positives": 14, + "negatives": 2720, + "auroc": 0.6978466386554621, + "auprc": 0.010200901561943481, + "brier": 0.005098566795739212, + "calibration": { + "observed_rate": 0.005120702267739576, + "mean_prediction": 0.003441481156999057, + "calibration_in_the_large": -0.0016792211107405186, + "expected_calibration_error_10bin": 0.0016792211107405186, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "I50": { + "valid": 2415, + "positives": 35, + "negatives": 2380, + "auroc": 0.8257382953181273, + "auprc": 0.0665642186528874, + "brier": 0.014181770576590496, + "calibration": { + "observed_rate": 0.014492753623188406, + "mean_prediction": 0.014690370141011185, + "calibration_in_the_large": 0.00019761651782277886, + "expected_calibration_error_10bin": 0.0019878284941967548, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.849454801266268 + }, + "I51": { + "valid": 2807, + "positives": 6, + "negatives": 2801, + "auroc": 0.7759133642746638, + "auprc": 0.00878599118641811, + "brier": 0.0021312538891496793, + "calibration": { + "observed_rate": 0.0021375133594584966, + "mean_prediction": 0.0017334051374941898, + "calibration_in_the_large": -0.00040410822196430677, + "expected_calibration_error_10bin": 0.00040410822196430677, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "I61": { + "valid": 2802, + "positives": 6, + "negatives": 2796, + "auroc": 0.8229017644253696, + "auprc": 0.010686819044956329, + "brier": 0.002133500199585256, + "calibration": { + "observed_rate": 0.0021413276231263384, + "mean_prediction": 0.0012182298648388728, + "calibration_in_the_large": -0.0009230977582874657, + "expected_calibration_error_10bin": 0.0009230977582874657, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "I63": { + "valid": 2735, + "positives": 11, + "negatives": 2724, + "auroc": 0.7444600186890936, + "auprc": 0.015495155700892228, + "brier": 0.004002492105406266, + "calibration": { + "observed_rate": 0.0040219378427787935, + "mean_prediction": 0.0037583422952932725, + "calibration_in_the_large": -0.00026359554748552104, + "expected_calibration_error_10bin": 0.00026359554748552104, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9620119591980303 + }, + "I65": { + "valid": 2774, + "positives": 5, + "negatives": 2769, + "auroc": 0.7110148067894547, + "auprc": 0.008968079522667287, + "brier": 0.0018163552140479918, + "calibration": { + "observed_rate": 0.001802451333813987, + "mean_prediction": 0.0036937544282327397, + "calibration_in_the_large": 0.0018913030944187528, + "expected_calibration_error_10bin": 0.0018913030944187528, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "I67": { + "valid": 2773, + "positives": 3, + "negatives": 2770, + "auroc": 0.7711191335740072, + "auprc": 0.004574401633225163, + "brier": 0.0011032251182159839, + "calibration": { + "observed_rate": 0.0010818608005769925, + "mean_prediction": 0.002550302801046594, + "calibration_in_the_large": 0.0014684420004696015, + "expected_calibration_error_10bin": 0.0014684420004696015, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + "I69": { + "valid": 2752, + "positives": 14, + "negatives": 2738, + "auroc": 0.7167118856308046, + "auprc": 0.020261941119503468, + "brier": 0.00507455862463531, + "calibration": { + "observed_rate": 0.005087209302325582, + "mean_prediction": 0.0047096651522676855, + "calibration_in_the_large": -0.0003775441500578963, + "expected_calibration_error_10bin": 0.00047465391296631107, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9679915582131551 + }, + "I70": { + "valid": 2771, + "positives": 7, + "negatives": 2764, + "auroc": 0.7878333677899525, + "auprc": 0.029764457257772693, + "brier": 0.002502934122873639, + "calibration": { + "observed_rate": 0.0025261638397690365, + "mean_prediction": 0.0028616439381978233, + "calibration_in_the_large": 0.0003354800984287868, + "expected_calibration_error_10bin": 0.00033548009842878686, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9746746394653535 + }, + "I71": { + "valid": 2769, + "positives": 4, + "negatives": 2765, + "auroc": 0.7116636528028933, + "auprc": 0.014123299871975848, + "brier": 0.001445538377471444, + "calibration": { + "observed_rate": 0.001444564824846515, + "mean_prediction": 0.0026247533238622387, + "calibration_in_the_large": 0.0011801884990157237, + "expected_calibration_error_10bin": 0.0011801884990157237, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.97397115722828 + }, + "I72": { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.7727692854603626, + "auprc": 0.014033510935653696, + "brier": 0.0017656638560108297, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.0013571111830326568, + "calibration_in_the_large": -0.00041719683683959295, + "expected_calibration_error_10bin": 0.00041719683683959295, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "I73": { + "valid": 2734, + "positives": 6, + "negatives": 2728, + "auroc": 0.8259408602150538, + "auprc": 0.03946470034715497, + "brier": 0.0022065947544279364, + "calibration": { + "observed_rate": 0.0021945866861741038, + "mean_prediction": 0.004462249053935625, + "calibration_in_the_large": 0.002267662367761521, + "expected_calibration_error_10bin": 0.002267662367761521, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "I74": { + "valid": 2821, + "positives": 4, + "negatives": 2817, + "auroc": 0.7171636492722755, + "auprc": 0.006212145101135457, + "brier": 0.0014152356599010977, + "calibration": { + "observed_rate": 0.0014179369018078695, + "mean_prediction": 0.000705960350729641, + "calibration_in_the_large": -0.0007119765510782285, + "expected_calibration_error_10bin": 0.0007119765510782285, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "I77": { + "valid": 2785, + "positives": 4, + "negatives": 2781, + "auroc": 0.5940309241280115, + "auprc": 0.004922003321958999, + "brier": 0.001441000573620646, + "calibration": { + "observed_rate": 0.001436265709156194, + "mean_prediction": 0.002254643334567739, + "calibration_in_the_large": 0.0008183776254115452, + "expected_calibration_error_10bin": 0.0008183776254115452, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "I80": { + "valid": 2827, + "positives": 4, + "negatives": 2823, + "auroc": 0.9078993978037548, + "auprc": 0.05657404625458559, + "brier": 0.001398052632472501, + "calibration": { + "observed_rate": 0.0014149274849663955, + "mean_prediction": 0.0008678294776166919, + "calibration_in_the_large": -0.0005470980073497035, + "expected_calibration_error_10bin": 0.0005470980073497035, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "I81": { + "valid": 2826, + "positives": 6, + "negatives": 2820, + "auroc": 0.9059692671394799, + "auprc": 0.022380332154044294, + "brier": 0.002144678197219867, + "calibration": { + "observed_rate": 0.0021231422505307855, + "mean_prediction": 0.001376016427419401, + "calibration_in_the_large": -0.0007471258231113846, + "expected_calibration_error_10bin": 0.0009977747754517554, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "I82": { + "valid": 2739, + "positives": 23, + "negatives": 2716, + "auroc": 0.7412275084843439, + "auprc": 0.033279031942540276, + "brier": 0.008252044327544861, + "calibration": { + "observed_rate": 0.008397225264695144, + "mean_prediction": 0.007114217581900816, + "calibration_in_the_large": -0.001283007682794328, + "expected_calibration_error_10bin": 0.0014388345494428293, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + "I85": { + "valid": 2793, + "positives": 7, + "negatives": 2786, + "auroc": 0.9927699723105322, + "auprc": 0.27681041227407144, + "brier": 0.0021957022329088223, + "calibration": { + "observed_rate": 0.002506265664160401, + "mean_prediction": 0.0010553629900379078, + "calibration_in_the_large": -0.001450902674122493, + "expected_calibration_error_10bin": 0.0018012449793335615, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "I87": { + "valid": 2780, + "positives": 11, + "negatives": 2769, + "auroc": 0.6924718474014249, + "auprc": 0.010396085007106176, + "brier": 0.003941027865665332, + "calibration": { + "observed_rate": 0.003956834532374101, + "mean_prediction": 0.002133977165132276, + "calibration_in_the_large": -0.0018228573672418248, + "expected_calibration_error_10bin": 0.0018228573672418248, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + "I89": { + "valid": 2826, + "positives": 5, + "negatives": 2821, + "auroc": 0.8646579227224388, + "auprc": 0.007756351448441728, + "brier": 0.0017648652330247863, + "calibration": { + "observed_rate": 0.0017692852087756545, + "mean_prediction": 0.0007402387632018724, + "calibration_in_the_large": -0.0010290464455737821, + "expected_calibration_error_10bin": 0.0010290464455737821, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "I95": { + "valid": 2485, + "positives": 66, + "negatives": 2419, + "auroc": 0.7323023538401794, + "auprc": 0.0641801160279076, + "brier": 0.025443406656741906, + "calibration": { + "observed_rate": 0.026559356136820925, + "mean_prediction": 0.025443118732044065, + "calibration_in_the_large": -0.0011162374047768604, + "expected_calibration_error_10bin": 0.0011162374047768615, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.874076679563841 + }, + "I96": { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.8179165192783869, + "auprc": 0.26256042181945427, + "brier": 0.0013874300410257909, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.001102209649073497, + "calibration_in_the_large": -0.00031071864481558805, + "expected_calibration_error_10bin": 0.00031071864481558805, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "I97": { + "valid": 2740, + "positives": 7, + "negatives": 2733, + "auroc": 0.7769588625790602, + "auprc": 0.01123375370020888, + "brier": 0.002549922544286864, + "calibration": { + "observed_rate": 0.0025547445255474453, + "mean_prediction": 0.0033691235861252828, + "calibration_in_the_large": 0.0008143790605778375, + "expected_calibration_error_10bin": 0.0008143790605778375, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + "J02": { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.777718738930216, + "auprc": 0.002327538383613701, + "brier": 0.0007184453636240012, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.0011604329705816813, + "calibration_in_the_large": 0.0004524683688117698, + "expected_calibration_error_10bin": 0.0004524683688117698, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J06": { + "valid": 2816, + "positives": 7, + "negatives": 2809, + "auroc": 0.5867873671362457, + "auprc": 0.006758761226198238, + "brier": 0.0025084769920040704, + "calibration": { + "observed_rate": 0.0024857954545454545, + "mean_prediction": 0.0024480709943449338, + "calibration_in_the_large": -3.772446020052075e-05, + "expected_calibration_error_10bin": 0.0001095906228298106, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "J12": { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 3.373066383003215e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.002030469225790916, + "calibration_in_the_large": 0.002030469225790916, + "expected_calibration_error_10bin": 0.002030469225790916, + "nonempty_bins": 2 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J15": { + "valid": 2795, + "positives": 10, + "negatives": 2785, + "auroc": 0.6839497307001795, + "auprc": 0.010638802811192104, + "brier": 0.0035694226537488142, + "calibration": { + "observed_rate": 0.0035778175313059034, + "mean_prediction": 0.0023286158427187416, + "calibration_in_the_large": -0.0012492016885871618, + "expected_calibration_error_10bin": 0.0012492016885871618, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9831164263102357 + }, + "J18": { + "valid": 2671, + "positives": 37, + "negatives": 2634, + "auroc": 0.7718606989677604, + "auprc": 0.04758284050087388, + "brier": 0.013486100278328928, + "calibration": { + "observed_rate": 0.013852489704230626, + "mean_prediction": 0.010106474983496087, + "calibration_in_the_large": -0.0037460147207345387, + "expected_calibration_error_10bin": 0.0042102925431765584, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + "J30": { + "valid": 2815, + "positives": 6, + "negatives": 2809, + "auroc": 0.6883825798030141, + "auprc": 0.01915787192483127, + "brier": 0.0021209019972554975, + "calibration": { + "observed_rate": 0.0021314387211367673, + "mean_prediction": 0.0010672140426988147, + "calibration_in_the_large": -0.0010642246784379526, + "expected_calibration_error_10bin": 0.0010642246784379526, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + "J32": { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.5268836222143615, + "auprc": 0.003224698821036557, + "brier": 0.0007108170627350474, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0009032351969510203, + "calibration_in_the_large": 0.00019627160557597612, + "expected_calibration_error_10bin": 0.00019627160557597612, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J38": { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.7713425433935529, + "auprc": 0.004648463985813383, + "brier": 0.0007085724675540731, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.0010953574432519056, + "calibration_in_the_large": 0.0003873928414819941, + "expected_calibration_error_10bin": 0.0003873928414819941, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J43": { + "valid": 2804, + "positives": 5, + "negatives": 2799, + "auroc": 0.5991425509110396, + "auprc": 0.00873588230798002, + "brier": 0.0017813681417180006, + "calibration": { + "observed_rate": 0.001783166904422254, + "mean_prediction": 0.0020199334426584344, + "calibration_in_the_large": 0.00023676653823618047, + "expected_calibration_error_10bin": 0.00023676653823618047, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "J44": { + "valid": 2570, + "positives": 20, + "negatives": 2550, + "auroc": 0.822, + "auprc": 0.03729134542044123, + "brier": 0.007653504838877725, + "calibration": { + "observed_rate": 0.007782101167315175, + "mean_prediction": 0.006363997991593174, + "calibration_in_the_large": -0.0014181031757220016, + "expected_calibration_error_10bin": 0.001797158456119839, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9039746746394653 + }, + "J45": { + "valid": 2518, + "positives": 20, + "negatives": 2498, + "auroc": 0.6593074459567654, + "auprc": 0.016554921144249397, + "brier": 0.007904842289781833, + "calibration": { + "observed_rate": 0.007942811755361398, + "mean_prediction": 0.005506442632486214, + "calibration_in_the_large": -0.002436369122875184, + "expected_calibration_error_10bin": 0.002661734846967248, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.885684136475554 + }, + "J47": { + "valid": 2825, + "positives": 4, + "negatives": 2821, + "auroc": 0.7701169797943992, + "auprc": 0.005451173089294216, + "brier": 0.0014144620347158589, + "calibration": { + "observed_rate": 0.001415929203539823, + "mean_prediction": 0.0004594153593102217, + "calibration_in_the_large": -0.0009565138442296014, + "expected_calibration_error_10bin": 0.0009565138442296014, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J69": { + "valid": 2777, + "positives": 22, + "negatives": 2755, + "auroc": 0.7695924764890282, + "auprc": 0.028927040278896334, + "brier": 0.0078039449693052786, + "calibration": { + "observed_rate": 0.00792221822110191, + "mean_prediction": 0.004646091640253333, + "calibration_in_the_large": -0.0032761265808485766, + "expected_calibration_error_10bin": 0.0032761265808485766, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + "J81": { + "valid": 2781, + "positives": 16, + "negatives": 2765, + "auroc": 0.7860307414104882, + "auprc": 0.05112883140393865, + "brier": 0.005660540358937231, + "calibration": { + "observed_rate": 0.005753326141675656, + "mean_prediction": 0.00367000558445335, + "calibration_in_the_large": -0.002083320557222306, + "expected_calibration_error_10bin": 0.002083320557222306, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + "J84": { + "valid": 2817, + "positives": 7, + "negatives": 2810, + "auroc": 0.9070157600406711, + "auprc": 0.017644421031117904, + "brier": 0.002464788361252124, + "calibration": { + "observed_rate": 0.0024849130280440185, + "mean_prediction": 0.0016910226620585156, + "calibration_in_the_large": -0.000793890365985503, + "expected_calibration_error_10bin": 0.000793890365985503, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "J90": { + "valid": 2754, + "positives": 25, + "negatives": 2729, + "auroc": 0.6470355441553682, + "auprc": 0.015322102856098738, + "brier": 0.009060748365218252, + "calibration": { + "observed_rate": 0.00907770515613653, + "mean_prediction": 0.005923637525259515, + "calibration_in_the_large": -0.003154067630877014, + "expected_calibration_error_10bin": 0.00351620352282774, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9686950404502286 + }, + "J91": { + "valid": 2807, + "positives": 10, + "negatives": 2797, + "auroc": 0.8173042545584555, + "auprc": 0.03228432582463201, + "brier": 0.0035231879301432937, + "calibration": { + "observed_rate": 0.003562522265764161, + "mean_prediction": 0.0029290751754426424, + "calibration_in_the_large": -0.0006334470903215186, + "expected_calibration_error_10bin": 0.0007925744301218727, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "J94": { + "valid": 2829, + "positives": 9, + "negatives": 2820, + "auroc": 0.6468873128447596, + "auprc": 0.12399301528396828, + "brier": 0.0031627083395438104, + "calibration": { + "observed_rate": 0.003181336161187699, + "mean_prediction": 0.0003553619333912378, + "calibration_in_the_large": -0.002825974227796461, + "expected_calibration_error_10bin": 0.002825974227796461, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J95": { + "valid": 2770, + "positives": 12, + "negatives": 2758, + "auroc": 0.8123338167754411, + "auprc": 0.018879352275351695, + "brier": 0.004295242243404065, + "calibration": { + "observed_rate": 0.004332129963898917, + "mean_prediction": 0.002559500847732558, + "calibration_in_the_large": -0.001772629116166359, + "expected_calibration_error_10bin": 0.001772629116166359, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9743228983468167 + }, + "J96": { + "valid": 2605, + "positives": 54, + "negatives": 2551, + "auroc": 0.8395908648750672, + "auprc": 0.10729812581477116, + "brier": 0.019476402002011554, + "calibration": { + "observed_rate": 0.02072936660268714, + "mean_prediction": 0.014685812668331383, + "calibration_in_the_large": -0.006043553934355756, + "expected_calibration_error_10bin": 0.006372582224557041, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9162856137882518 + }, + "J98": { + "valid": 2692, + "positives": 27, + "negatives": 2665, + "auroc": 0.7100409978458759, + "auprc": 0.0331204620613533, + "brier": 0.009873123889834504, + "calibration": { + "observed_rate": 0.010029717682020803, + "mean_prediction": 0.005860072164906568, + "calibration_in_the_large": -0.004169645517114236, + "expected_calibration_error_10bin": 0.004169645517114236, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9468870911009497 + }, + "K04": { + "valid": 2836, + "positives": 1, + "negatives": 2835, + "auroc": 0.7883597883597884, + "auprc": 0.0016638935108153079, + "brier": 0.0003529595069901815, + "calibration": { + "observed_rate": 0.0003526093088857546, + "mean_prediction": 0.0003784531542179781, + "calibration_in_the_large": 2.584384533222355e-05, + "expected_calibration_error_10bin": 2.584384533222355e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "K12": { + "valid": 2824, + "positives": 9, + "negatives": 2815, + "auroc": 0.8916518650088809, + "auprc": 0.07328321762608254, + "brier": 0.0034013557189665512, + "calibration": { + "observed_rate": 0.003186968838526912, + "mean_prediction": 0.003380243667573103, + "calibration_in_the_large": 0.00019327482904619086, + "expected_calibration_error_10bin": 0.0023443500444913267, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "K20": { + "valid": 2813, + "positives": 5, + "negatives": 2808, + "auroc": 0.6599002849002849, + "auprc": 0.014183650877982627, + "brier": 0.0018282223258665332, + "calibration": { + "observed_rate": 0.0017774617845716318, + "mean_prediction": 0.003143179482614615, + "calibration_in_the_large": 0.001365717698042983, + "expected_calibration_error_10bin": 0.0013657176980429832, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K21": { + "valid": 2043, + "positives": 59, + "negatives": 1984, + "auroc": 0.7290783898305084, + "auprc": 0.12160054530300515, + "brier": 0.027142518914288136, + "calibration": { + "observed_rate": 0.02887909936368086, + "mean_prediction": 0.024064443761860514, + "calibration_in_the_large": -0.004814655601820348, + "expected_calibration_error_10bin": 0.004814655601820344, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7186071051705945 + }, + "K22": { + "valid": 2764, + "positives": 14, + "negatives": 2750, + "auroc": 0.8131948051948052, + "auprc": 0.038187818129010016, + "brier": 0.005008751134923587, + "calibration": { + "observed_rate": 0.005065123010130246, + "mean_prediction": 0.002209426397085866, + "calibration_in_the_large": -0.00285569661304438, + "expected_calibration_error_10bin": 0.00285569661304438, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9722124516355962 + }, + "K25": { + "valid": 2817, + "positives": 6, + "negatives": 2811, + "auroc": 0.74000948654097, + "auprc": 0.0065101776456007844, + "brier": 0.002132969378262968, + "calibration": { + "observed_rate": 0.002129925452609159, + "mean_prediction": 0.0012657063701707171, + "calibration_in_the_large": -0.0008642190824384418, + "expected_calibration_error_10bin": 0.0008642190824384418, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "K26": { + "valid": 2814, + "positives": 5, + "negatives": 2809, + "auroc": 0.9651833392666429, + "auprc": 0.2259568267947658, + "brier": 0.0017270644184123939, + "calibration": { + "observed_rate": 0.0017768301350390902, + "mean_prediction": 0.0018611795220262882, + "calibration_in_the_large": 8.434938698719798e-05, + "expected_calibration_error_10bin": 8.434938698719798e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "K29": { + "valid": 2785, + "positives": 7, + "negatives": 2778, + "auroc": 0.8214542836573074, + "auprc": 0.032651319151905174, + "brier": 0.002482048492635696, + "calibration": { + "observed_rate": 0.0025134649910233393, + "mean_prediction": 0.003369267245971859, + "calibration_in_the_large": 0.0008558022549485199, + "expected_calibration_error_10bin": 0.0008558022549485199, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K30": { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.9195767195767196, + "auprc": 0.006386676906908121, + "brier": 0.0007042899644239336, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0006500937234971952, + "calibration_in_the_large": -5.487631527615689e-05, + "expected_calibration_error_10bin": 5.487631527615689e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + "K31": { + "valid": 2756, + "positives": 11, + "negatives": 2745, + "auroc": 0.8870673952641166, + "auprc": 0.10385686603769559, + "brier": 0.003832232720264483, + "calibration": { + "observed_rate": 0.0039912917271407835, + "mean_prediction": 0.0035060163831820844, + "calibration_in_the_large": -0.00048527534395869905, + "expected_calibration_error_10bin": 0.0006891937554862581, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + "K40": { + "valid": 2827, + "positives": 2, + "negatives": 2825, + "auroc": 0.8934513274336283, + "auprc": 0.0641750418760469, + "brier": 0.0007007159057197165, + "calibration": { + "observed_rate": 0.0007074637424831977, + "mean_prediction": 0.0006656078607004025, + "calibration_in_the_large": -4.185588178279526e-05, + "expected_calibration_error_10bin": 4.185588178279526e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "K42": { + "valid": 2820, + "positives": 3, + "negatives": 2817, + "auroc": 0.5404094190036682, + "auprc": 0.004378363891096682, + "brier": 0.0010679202793338683, + "calibration": { + "observed_rate": 0.0010638297872340426, + "mean_prediction": 0.0006719090118677089, + "calibration_in_the_large": -0.00039192077536633367, + "expected_calibration_error_10bin": 0.00039192077536633367, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + "K43": { + "valid": 2813, + "positives": 4, + "negatives": 2809, + "auroc": 0.735938056247775, + "auprc": 0.00884680956453237, + "brier": 0.0014173211678545794, + "calibration": { + "observed_rate": 0.0014219694276573053, + "mean_prediction": 0.0010144002437696255, + "calibration_in_the_large": -0.0004075691838876798, + "expected_calibration_error_10bin": 0.0004075691838876798, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K44": { + "valid": 2785, + "positives": 5, + "negatives": 2780, + "auroc": 0.7166906474820144, + "auprc": 0.009984838580578272, + "brier": 0.0017895231730932454, + "calibration": { + "observed_rate": 0.0017953321364452424, + "mean_prediction": 0.0016144969295581264, + "calibration_in_the_large": -0.000180835206887116, + "expected_calibration_error_10bin": 0.000180835206887116, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K52": { + "valid": 2749, + "positives": 28, + "negatives": 2721, + "auroc": 0.8164277839029769, + "auprc": 0.07455829085439446, + "brier": 0.009848149513397575, + "calibration": { + "observed_rate": 0.01018552200800291, + "mean_prediction": 0.007030106424374556, + "calibration_in_the_large": -0.003155415583628354, + "expected_calibration_error_10bin": 0.0032746953786006163, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9669363348575448 + }, + "K55": { + "valid": 2815, + "positives": 8, + "negatives": 2807, + "auroc": 0.8190684004275026, + "auprc": 0.00846965677998888, + "brier": 0.0028472290669470024, + "calibration": { + "observed_rate": 0.002841918294849023, + "mean_prediction": 0.0018176502688418245, + "calibration_in_the_large": -0.0010242680260071984, + "expected_calibration_error_10bin": 0.0011010951946835985, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + "K56": { + "valid": 2745, + "positives": 23, + "negatives": 2722, + "auroc": 0.731255790179855, + "auprc": 0.026844796740274755, + "brier": 0.008286324766799417, + "calibration": { + "observed_rate": 0.008378870673952642, + "mean_prediction": 0.003937345667037551, + "calibration_in_the_large": -0.004441525006915091, + "expected_calibration_error_10bin": 0.004441525006915091, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9655293703833978 + }, + "K57": { + "valid": 2741, + "positives": 18, + "negatives": 2723, + "auroc": 0.6866405516791121, + "auprc": 0.031859517863016495, + "brier": 0.006518386455546521, + "calibration": { + "observed_rate": 0.006566946369937978, + "mean_prediction": 0.002299654793997131, + "calibration_in_the_large": -0.004267291575940847, + "expected_calibration_error_10bin": 0.004267291575940847, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + "K58": { + "valid": 2792, + "positives": 7, + "negatives": 2785, + "auroc": 0.7488073865093614, + "auprc": 0.12289019120973521, + "brier": 0.002466193263829648, + "calibration": { + "observed_rate": 0.002507163323782235, + "mean_prediction": 0.001931958151596797, + "calibration_in_the_large": -0.0005752051721854381, + "expected_calibration_error_10bin": 0.0005752051721854381, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + "K59": { + "valid": 2560, + "positives": 72, + "negatives": 2488, + "auroc": 0.747387459807074, + "auprc": 0.12165439849985266, + "brier": 0.02626999381188877, + "calibration": { + "observed_rate": 0.028125, + "mean_prediction": 0.022353824797608012, + "calibration_in_the_large": -0.0057711752023919885, + "expected_calibration_error_10bin": 0.006567918748771719, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + "K62": { + "valid": 2813, + "positives": 11, + "negatives": 2802, + "auroc": 0.7785672571539809, + "auprc": 0.016111211242838073, + "brier": 0.0038888810739492945, + "calibration": { + "observed_rate": 0.0039104159260575895, + "mean_prediction": 0.0017746771434045963, + "calibration_in_the_large": -0.0021357387826529935, + "expected_calibration_error_10bin": 0.0021357387826529935, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K63": { + "valid": 2810, + "positives": 14, + "negatives": 2796, + "auroc": 0.735719395054159, + "auprc": 0.020472768174263408, + "brier": 0.004945449222381755, + "calibration": { + "observed_rate": 0.00498220640569395, + "mean_prediction": 0.0023318572421811177, + "calibration_in_the_large": -0.0026503491635128324, + "expected_calibration_error_10bin": 0.0026503491635128324, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + "K64": { + "valid": 2801, + "positives": 16, + "negatives": 2785, + "auroc": 0.755475763016158, + "auprc": 0.020445191350177635, + "brier": 0.005665203995157932, + "calibration": { + "observed_rate": 0.005712245626561942, + "mean_prediction": 0.0030930546863961613, + "calibration_in_the_large": -0.002619190940165781, + "expected_calibration_error_10bin": 0.002619190940165781, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "K65": { + "valid": 2813, + "positives": 10, + "negatives": 2803, + "auroc": 0.8818052087049589, + "auprc": 0.030420489368509506, + "brier": 0.0035859404404776024, + "calibration": { + "observed_rate": 0.0035549235691432635, + "mean_prediction": 0.0032004467412745144, + "calibration_in_the_large": -0.0003544768278687491, + "expected_calibration_error_10bin": 0.0015801520142660044, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K66": { + "valid": 2796, + "positives": 6, + "negatives": 2790, + "auroc": 0.7078255675029869, + "auprc": 0.02130945194493246, + "brier": 0.0021374385624941153, + "calibration": { + "observed_rate": 0.002145922746781116, + "mean_prediction": 0.002176846793940089, + "calibration_in_the_large": 3.092404715897322e-05, + "expected_calibration_error_10bin": 3.092404715897322e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + "K70": { + "valid": 2774, + "positives": 1, + "negatives": 2773, + "auroc": 0.9340064911648035, + "auprc": 0.005434782608695652, + "brier": 0.0003720091097933399, + "calibration": { + "observed_rate": 0.0003604902667627974, + "mean_prediction": 0.0007210079479107914, + "calibration_in_the_large": 0.000360517681147994, + "expected_calibration_error_10bin": 0.000360517681147994, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "K72": { + "valid": 2787, + "positives": 15, + "negatives": 2772, + "auroc": 0.9570707070707071, + "auprc": 0.26772000414969843, + "brier": 0.0047382001957626246, + "calibration": { + "observed_rate": 0.005382131324004306, + "mean_prediction": 0.002880065090612824, + "calibration_in_the_large": -0.002502066233391482, + "expected_calibration_error_10bin": 0.0030293436992624378, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "K74": { + "valid": 2763, + "positives": 6, + "negatives": 2757, + "auroc": 0.9605247249425705, + "auprc": 0.03421680035338141, + "brier": 0.002225016591589749, + "calibration": { + "observed_rate": 0.002171552660152009, + "mean_prediction": 0.0019460585645698601, + "calibration_in_the_large": -0.00022549409558214866, + "expected_calibration_error_10bin": 0.0011578723659640168, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + "K75": { + "valid": 2798, + "positives": 10, + "negatives": 2788, + "auroc": 0.8502869440459111, + "auprc": 0.024089240258391965, + "brier": 0.003576095068482732, + "calibration": { + "observed_rate": 0.0035739814152966403, + "mean_prediction": 0.0020592874201682126, + "calibration_in_the_large": -0.0015146939951284277, + "expected_calibration_error_10bin": 0.0018587017497695727, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + "K76": { + "valid": 2681, + "positives": 21, + "negatives": 2660, + "auroc": 0.8549051199427139, + "auprc": 0.19817296809465668, + "brier": 0.007094367214163055, + "calibration": { + "observed_rate": 0.007832898172323759, + "mean_prediction": 0.0034961485342592425, + "calibration_in_the_large": -0.004336749638064517, + "expected_calibration_error_10bin": 0.005463938666821166, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9430179387970454 + }, + "K80": { + "valid": 2731, + "positives": 10, + "negatives": 2721, + "auroc": 0.6337743476662991, + "auprc": 0.01308292709780225, + "brier": 0.003648192588365897, + "calibration": { + "observed_rate": 0.003661662394727206, + "mean_prediction": 0.003041660796147526, + "calibration_in_the_large": -0.0006200015985796804, + "expected_calibration_error_10bin": 0.0006200015985796804, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9606049947238833 + }, + "K81": { + "valid": 2825, + "positives": 5, + "negatives": 2820, + "auroc": 0.8689361702127659, + "auprc": 0.03069010083177156, + "brier": 0.0017479766485680656, + "calibration": { + "observed_rate": 0.0017699115044247787, + "mean_prediction": 0.0011076931203222284, + "calibration_in_the_large": -0.0006622183841025503, + "expected_calibration_error_10bin": 0.0006622183841025503, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "K82": { + "valid": 2824, + "positives": 4, + "negatives": 2820, + "auroc": 0.6413120567375886, + "auprc": 0.003459504197541352, + "brier": 0.0014326510027102618, + "calibration": { + "observed_rate": 0.00141643059490085, + "mean_prediction": 0.001276577298070154, + "calibration_in_the_large": -0.00013985329683069599, + "expected_calibration_error_10bin": 0.00013985329683069599, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "K83": { + "valid": 2757, + "positives": 9, + "negatives": 2748, + "auroc": 0.895924308588064, + "auprc": 0.12585184111015255, + "brier": 0.0031170938400966273, + "calibration": { + "observed_rate": 0.003264417845484222, + "mean_prediction": 0.0023560474674884572, + "calibration_in_the_large": -0.0009083703779957648, + "expected_calibration_error_10bin": 0.0014134607755942855, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.969750263805839 + }, + "K85": { + "valid": 2779, + "positives": 4, + "negatives": 2775, + "auroc": 0.8753153153153154, + "auprc": 0.03551861492930604, + "brier": 0.0014227480315408224, + "calibration": { + "observed_rate": 0.0014393666786613889, + "mean_prediction": 0.0014290121842248235, + "calibration_in_the_large": -1.0354494436565437e-05, + "expected_calibration_error_10bin": 1.0354494436565437e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9774885684136475 + }, + "K86": { + "valid": 2785, + "positives": 6, + "negatives": 2779, + "auroc": 0.7274199352284995, + "auprc": 0.022595339836703976, + "brier": 0.0021462229497959846, + "calibration": { + "observed_rate": 0.0021543985637342907, + "mean_prediction": 0.0018929258787371392, + "calibration_in_the_large": -0.00026147268499715146, + "expected_calibration_error_10bin": 0.00026147268499715146, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K90": { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.6826855123674912, + "auprc": 0.0011123470522803114, + "brier": 0.0003536064419614626, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.0003116684266316893, + "calibration_in_the_large": -4.156364684058196e-05, + "expected_calibration_error_10bin": 4.156364684058196e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "K91": { + "valid": 2768, + "positives": 17, + "negatives": 2751, + "auroc": 0.8659952530630572, + "auprc": 0.040497665820294106, + "brier": 0.006045006101767469, + "calibration": { + "observed_rate": 0.006141618497109827, + "mean_prediction": 0.0027383423862887488, + "calibration_in_the_large": -0.0034032761108210782, + "expected_calibration_error_10bin": 0.0034032761108210782, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "K92": { + "valid": 2751, + "positives": 26, + "negatives": 2725, + "auroc": 0.8637826393789697, + "auprc": 0.14313157924710251, + "brier": 0.009041934648465604, + "calibration": { + "observed_rate": 0.009451108687749909, + "mean_prediction": 0.0068064397833878946, + "calibration_in_the_large": -0.0026446689043620143, + "expected_calibration_error_10bin": 0.0026446689043620143, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "K94": { + "valid": 2823, + "positives": 13, + "negatives": 2810, + "auroc": 0.918286339994525, + "auprc": 0.1391433735094085, + "brier": 0.004524516295643242, + "calibration": { + "observed_rate": 0.004605030109812256, + "mean_prediction": 0.001069796716103707, + "calibration_in_the_large": -0.003535233393708549, + "expected_calibration_error_10bin": 0.003535233393708549, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "L02": { + "valid": 2807, + "positives": 15, + "negatives": 2792, + "auroc": 0.7745940783190067, + "auprc": 0.01813173370663408, + "brier": 0.005300344648605801, + "calibration": { + "observed_rate": 0.005343783398646241, + "mean_prediction": 0.003733463501595656, + "calibration_in_the_large": -0.0016103198970505855, + "expected_calibration_error_10bin": 0.0016103198970505855, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "L03": { + "valid": 2701, + "positives": 31, + "negatives": 2670, + "auroc": 0.7122387338407635, + "auprc": 0.06220849407367732, + "brier": 0.011219172460959718, + "calibration": { + "observed_rate": 0.011477230655312847, + "mean_prediction": 0.00767608707544232, + "calibration_in_the_large": -0.0038011435798705273, + "expected_calibration_error_10bin": 0.003899189777977143, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9500527611677805 + }, + "L08": { + "valid": 2830, + "positives": 5, + "negatives": 2825, + "auroc": 0.6694513274336283, + "auprc": 0.004569267782236664, + "brier": 0.0017656463361067033, + "calibration": { + "observed_rate": 0.0017667844522968198, + "mean_prediction": 0.0008491161517491176, + "calibration_in_the_large": -0.0009176683005477021, + "expected_calibration_error_10bin": 0.0009176683005477021, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9954273654590221 + }, + "L27": { + "valid": 2818, + "positives": 7, + "negatives": 2811, + "auroc": 0.6843522894750216, + "auprc": 0.006638921738352578, + "brier": 0.002516808084194165, + "calibration": { + "observed_rate": 0.00248403122782115, + "mean_prediction": 0.0023374105137006947, + "calibration_in_the_large": -0.00014662071412045513, + "expected_calibration_error_10bin": 0.000319714241781678, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "L29": { + "valid": 2817, + "positives": 3, + "negatives": 2814, + "auroc": 0.7757640369580668, + "auprc": 0.0031544611052508873, + "brier": 0.001093650942752574, + "calibration": { + "observed_rate": 0.0010649627263045794, + "mean_prediction": 0.0022795557580992166, + "calibration_in_the_large": 0.0012145930317946372, + "expected_calibration_error_10bin": 0.0012145930317946372, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "L30": { + "valid": 2816, + "positives": 7, + "negatives": 2809, + "auroc": 0.7000457712454864, + "auprc": 0.034579943190343715, + "brier": 0.002466243798469929, + "calibration": { + "observed_rate": 0.0024857954545454545, + "mean_prediction": 0.0014137655470841568, + "calibration_in_the_large": -0.0010720299074612977, + "expected_calibration_error_10bin": 0.0010720299074612977, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "L50": { + "valid": 2835, + "positives": 3, + "negatives": 2832, + "auroc": 0.817208097928437, + "auprc": 0.008866571522978607, + "brier": 0.001058379950739958, + "calibration": { + "observed_rate": 0.0010582010582010583, + "mean_prediction": 0.0008120290650135091, + "calibration_in_the_large": -0.00024617199318754913, + "expected_calibration_error_10bin": 0.00024617199318754913, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.997186071051706 + }, + "L53": { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 4.4029544126739115e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0008308540240775609, + "calibration_in_the_large": 0.0008308540240775609, + "expected_calibration_error_10bin": 0.0008308540240775609, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "L76": { + "valid": 2793, + "positives": 11, + "negatives": 2782, + "auroc": 0.6955100973792563, + "auprc": 0.007001744845697244, + "brier": 0.003929619592657222, + "calibration": { + "observed_rate": 0.003938417472252059, + "mean_prediction": 0.0020359123420056855, + "calibration_in_the_large": -0.0019025051302463737, + "expected_calibration_error_10bin": 0.0019025051302463737, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "L89": { + "valid": 2798, + "positives": 17, + "negatives": 2781, + "auroc": 0.8461196776445206, + "auprc": 0.03816723640806776, + "brier": 0.00597203993349371, + "calibration": { + "observed_rate": 0.006075768406004289, + "mean_prediction": 0.004059168594977811, + "calibration_in_the_large": -0.0020165998110264777, + "expected_calibration_error_10bin": 0.002093108949770128, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + "L97": { + "valid": 2789, + "positives": 8, + "negatives": 2781, + "auroc": 0.9368033081625314, + "auprc": 0.04744490792770392, + "brier": 0.002846505617164722, + "calibration": { + "observed_rate": 0.0028684116170670493, + "mean_prediction": 0.003236742714897915, + "calibration_in_the_large": 0.00036833109783086576, + "expected_calibration_error_10bin": 0.00036833109783086554, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "L98": { + "valid": 2824, + "positives": 5, + "negatives": 2819, + "auroc": 0.629584959205392, + "auprc": 0.0030238408938555706, + "brier": 0.001773206167672077, + "calibration": { + "observed_rate": 0.0017705382436260624, + "mean_prediction": 0.0014022523660158189, + "calibration_in_the_large": -0.00036828587761024347, + "expected_calibration_error_10bin": 0.00036828587761024347, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "M10": { + "valid": 2713, + "positives": 10, + "negatives": 2703, + "auroc": 0.7884202737698853, + "auprc": 0.023549667360036088, + "brier": 0.003652947406413872, + "calibration": { + "observed_rate": 0.003685956505713233, + "mean_prediction": 0.003809465741720833, + "calibration_in_the_large": 0.00012350923600760013, + "expected_calibration_error_10bin": 0.00012350923600760056, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9542736545902216 + }, + "M16": { + "valid": 2790, + "positives": 2, + "negatives": 2788, + "auroc": 0.8950860832137734, + "auprc": 0.007563587684069612, + "brier": 0.0007153175825302705, + "calibration": { + "observed_rate": 0.0007168458781362007, + "mean_prediction": 0.001111495666715676, + "calibration_in_the_large": 0.00039464978857947533, + "expected_calibration_error_10bin": 0.00039464978857947533, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + "M17": { + "valid": 2733, + "positives": 8, + "negatives": 2725, + "auroc": 0.7051376146788991, + "auprc": 0.006327116192302924, + "brier": 0.0029220366289180143, + "calibration": { + "observed_rate": 0.0029271862422246614, + "mean_prediction": 0.002375926040986287, + "calibration_in_the_large": -0.0005512602012383745, + "expected_calibration_error_10bin": 0.0005512602012383745, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + "M19": { + "valid": 2674, + "positives": 27, + "negatives": 2647, + "auroc": 0.6983867131203738, + "auprc": 0.02142729699797991, + "brier": 0.009997594829658724, + "calibration": { + "observed_rate": 0.010097232610321616, + "mean_prediction": 0.004573674869195243, + "calibration_in_the_large": -0.005523557741126372, + "expected_calibration_error_10bin": 0.005523557741126372, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.940555750967288 + }, + "M21": { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.9336879432624113, + "auprc": 0.005319148936170213, + "brier": 0.00036054023276438433, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.002055114045022664, + "calibration_in_the_large": 0.0017006298195706964, + "expected_calibration_error_10bin": 0.0017006298195706964, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "M25": { + "valid": 2717, + "positives": 26, + "negatives": 2691, + "auroc": 0.654775176514307, + "auprc": 0.02911643033825436, + "brier": 0.009432344684215553, + "calibration": { + "observed_rate": 0.009569377990430622, + "mean_prediction": 0.009193162859006081, + "calibration_in_the_large": -0.0003762151314245406, + "expected_calibration_error_10bin": 0.0004499690402659944, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9556806190643686 + }, + "M35": { + "valid": 2806, + "positives": 1, + "negatives": 2805, + "auroc": 0.8388591800356506, + "auprc": 0.002207505518763797, + "brier": 0.0003572323687969755, + "calibration": { + "observed_rate": 0.0003563791874554526, + "mean_prediction": 0.0005341548635533205, + "calibration_in_the_large": 0.00017777567609786793, + "expected_calibration_error_10bin": 0.00017777567609786793, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "M46": { + "valid": 2814, + "positives": 4, + "negatives": 2810, + "auroc": 0.5673487544483986, + "auprc": 0.0024152390625381505, + "brier": 0.0014216183549380956, + "calibration": { + "observed_rate": 0.0014214641080312722, + "mean_prediction": 0.0009115169139725295, + "calibration_in_the_large": -0.0005099471940587427, + "expected_calibration_error_10bin": 0.0005099471940587427, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "M47": { + "valid": 2743, + "positives": 5, + "negatives": 2738, + "auroc": 0.6323593864134405, + "auprc": 0.012231091383546187, + "brier": 0.0018214169435153203, + "calibration": { + "observed_rate": 0.0018228217280349982, + "mean_prediction": 0.0029887315365662082, + "calibration_in_the_large": 0.00116590980853121, + "expected_calibration_error_10bin": 0.00116590980853121, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + "M48": { + "valid": 2690, + "positives": 8, + "negatives": 2682, + "auroc": 0.7936707680835198, + "auprc": 0.016043274808117035, + "brier": 0.002960965152518827, + "calibration": { + "observed_rate": 0.002973977695167286, + "mean_prediction": 0.004623534133082552, + "calibration_in_the_large": 0.001649556437915266, + "expected_calibration_error_10bin": 0.001649556437915266, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9461836088638762 + }, + "M51": { + "valid": 2785, + "positives": 2, + "negatives": 2783, + "auroc": 0.5483291412145167, + "auprc": 0.0011710774927402071, + "brier": 0.0007211468626128866, + "calibration": { + "observed_rate": 0.000718132854578097, + "mean_prediction": 0.001585014804303596, + "calibration_in_the_large": 0.000866881949725499, + "expected_calibration_error_10bin": 0.000866881949725499, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "M54": { + "valid": 2567, + "positives": 32, + "negatives": 2535, + "auroc": 0.6767504930966469, + "auprc": 0.03462913714287822, + "brier": 0.012245907940133508, + "calibration": { + "observed_rate": 0.012465913517724971, + "mean_prediction": 0.011735516889353675, + "calibration_in_the_large": -0.0007303966283712954, + "expected_calibration_error_10bin": 0.0007501601655898596, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9029194512838551 + }, + "M62": { + "valid": 2781, + "positives": 7, + "negatives": 2774, + "auroc": 0.7974559686888454, + "auprc": 0.030492871448212035, + "brier": 0.0024956823216118955, + "calibration": { + "observed_rate": 0.0025170801869830997, + "mean_prediction": 0.0029532606339616207, + "calibration_in_the_large": 0.000436180446978521, + "expected_calibration_error_10bin": 0.000436180446978521, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + "M79": { + "valid": 2697, + "positives": 24, + "negatives": 2673, + "auroc": 0.7754239930165856, + "auprc": 0.029127633977359096, + "brier": 0.008754581123257112, + "calibration": { + "observed_rate": 0.008898776418242492, + "mean_prediction": 0.008154425375167829, + "calibration_in_the_large": -0.0007443510430746626, + "expected_calibration_error_10bin": 0.0008279690002778846, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9486457966936335 + }, + "M81": { + "valid": 2705, + "positives": 9, + "negatives": 2696, + "auroc": 0.8169304319155951, + "auprc": 0.020487975537139075, + "brier": 0.003401671546443202, + "calibration": { + "observed_rate": 0.0033271719038817007, + "mean_prediction": 0.005179673946610538, + "calibration_in_the_large": 0.0018525020427288376, + "expected_calibration_error_10bin": 0.001852502042728838, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9514597256419275 + }, + "M84": { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.8097404905794525, + "auprc": 0.026734526272781778, + "brier": 0.0017636236342560593, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.0015417709118961545, + "calibration_in_the_large": -0.0002325371079760952, + "expected_calibration_error_10bin": 0.0003116495989390667, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "M85": { + "valid": 2768, + "positives": 7, + "negatives": 2761, + "auroc": 0.6860350804573913, + "auprc": 0.00644773605280588, + "brier": 0.002522456175333952, + "calibration": { + "observed_rate": 0.0025289017341040463, + "mean_prediction": 0.001980853317036071, + "calibration_in_the_large": -0.0005480484170679754, + "expected_calibration_error_10bin": 0.0005480484170679754, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "M86": { + "valid": 2803, + "positives": 13, + "negatives": 2790, + "auroc": 0.7637165701681831, + "auprc": 0.025949355030705723, + "brier": 0.004594011486818823, + "calibration": { + "observed_rate": 0.00463788797716732, + "mean_prediction": 0.0032540464617435154, + "calibration_in_the_large": -0.001383841515423805, + "expected_calibration_error_10bin": 0.0014648472100322588, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9859303552585297 + }, + "M94": { + "valid": 2819, + "positives": 2, + "negatives": 2817, + "auroc": 0.32658856940007097, + "auprc": 0.0007830024906615505, + "brier": 0.0007095839264024563, + "calibration": { + "observed_rate": 0.000709471443774388, + "mean_prediction": 0.00020152291509482393, + "calibration_in_the_large": -0.0005079485286795641, + "expected_calibration_error_10bin": 0.0005079485286795641, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "M96": { + "valid": 2804, + "positives": 2, + "negatives": 2802, + "auroc": 0.8285153461812991, + "auprc": 0.004582698563017252, + "brier": 0.000713826399057785, + "calibration": { + "observed_rate": 0.0007132667617689016, + "mean_prediction": 0.0014294374940783678, + "calibration_in_the_large": 0.0007161707323094662, + "expected_calibration_error_10bin": 0.0007161707323094662, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "N12": { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.7103326256192498, + "auprc": 0.013200214538705679, + "brier": 0.0017657761838910846, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.0011704346643471274, + "calibration_in_the_large": -0.0005957257030142289, + "expected_calibration_error_10bin": 0.0005957257030142289, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "N13": { + "valid": 2756, + "positives": 8, + "negatives": 2748, + "auroc": 0.6715338427947598, + "auprc": 0.010268915285019144, + "brier": 0.0029118068159739983, + "calibration": { + "observed_rate": 0.002902757619738752, + "mean_prediction": 0.003946511371052694, + "calibration_in_the_large": 0.0010437537513139426, + "expected_calibration_error_10bin": 0.0010437537513139433, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + "N14": { + "valid": 2826, + "positives": 7, + "negatives": 2819, + "auroc": 0.7748948461967263, + "auprc": 0.037909727664060366, + "brier": 0.0024447395502562074, + "calibration": { + "observed_rate": 0.0024769992922859165, + "mean_prediction": 0.0016583668416300915, + "calibration_in_the_large": -0.0008186324506558251, + "expected_calibration_error_10bin": 0.0008186324506558251, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "N17": { + "valid": 2292, + "positives": 69, + "negatives": 2223, + "auroc": 0.8122722264598695, + "auprc": 0.12228506848316394, + "brier": 0.027829852632062217, + "calibration": { + "observed_rate": 0.030104712041884817, + "mean_prediction": 0.030668947075220474, + "calibration_in_the_large": 0.0005642350333356569, + "expected_calibration_error_10bin": 0.0036272276908690124, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8061906436862469 + }, + "N18": { + "valid": 2440, + "positives": 34, + "negatives": 2406, + "auroc": 0.8704219842550487, + "auprc": 0.17838294860961196, + "brier": 0.012618372810207789, + "calibration": { + "observed_rate": 0.013934426229508197, + "mean_prediction": 0.011336639055637115, + "calibration_in_the_large": -0.0025977871738710814, + "expected_calibration_error_10bin": 0.004257750490475821, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.858248329229687 + }, + "N20": { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.6967923516797713, + "auprc": 0.005657468602360989, + "brier": 0.0028466090607727193, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.0008227105912736601, + "calibration_in_the_large": -0.002028322908369961, + "expected_calibration_error_10bin": 0.002028322908369961, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "N25": { + "valid": 2831, + "positives": 6, + "negatives": 2825, + "auroc": 0.9145132743362832, + "auprc": 0.055096136800699365, + "brier": 0.0020945725130089203, + "calibration": { + "observed_rate": 0.0021193924408336277, + "mean_prediction": 0.0008550936788886922, + "calibration_in_the_large": -0.0012642987619449356, + "expected_calibration_error_10bin": 0.0012642987619449356, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "N28": { + "valid": 2789, + "positives": 4, + "negatives": 2785, + "auroc": 0.7843806104129264, + "auprc": 0.009157475052166157, + "brier": 0.001432570448654149, + "calibration": { + "observed_rate": 0.0014342058085335247, + "mean_prediction": 0.0025454484208812223, + "calibration_in_the_large": 0.0011112426123476976, + "expected_calibration_error_10bin": 0.0011112426123476976, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "N30": { + "valid": 2829, + "positives": 9, + "negatives": 2820, + "auroc": 0.6855003940110324, + "auprc": 0.008745047276939576, + "brier": 0.0031719689471502474, + "calibration": { + "observed_rate": 0.003181336161187699, + "mean_prediction": 0.002055757630426817, + "calibration_in_the_large": -0.0011255785307608818, + "expected_calibration_error_10bin": 0.0011255785307608818, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "N32": { + "valid": 2807, + "positives": 10, + "negatives": 2797, + "auroc": 0.8604218805863425, + "auprc": 0.025228511033467106, + "brier": 0.003526543815873278, + "calibration": { + "observed_rate": 0.003562522265764161, + "mean_prediction": 0.0028837353808380535, + "calibration_in_the_large": -0.0006787868849261075, + "expected_calibration_error_10bin": 0.0006787868849261075, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "N39": { + "valid": 2520, + "positives": 65, + "negatives": 2455, + "auroc": 0.7845903180322732, + "auprc": 0.09688996219468181, + "brier": 0.024390279838814848, + "calibration": { + "observed_rate": 0.025793650793650792, + "mean_prediction": 0.023202128389005785, + "calibration_in_the_large": -0.0025915224046450074, + "expected_calibration_error_10bin": 0.0026000853687513713, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8863876187126275 + }, + "N40": { + "valid": 2606, + "positives": 16, + "negatives": 2590, + "auroc": 0.7649372586872587, + "auprc": 0.0290942099333271, + "brier": 0.006061669878352765, + "calibration": { + "observed_rate": 0.0061396776669224865, + "mean_prediction": 0.005376021528404573, + "calibration_in_the_large": -0.0007636561385179139, + "expected_calibration_error_10bin": 0.0009398094722283308, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9166373549067885 + }, + "N73": { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9510081358330386, + "auprc": 0.025630181018440196, + "brier": 0.0007038529951530161, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0007058419390904498, + "calibration_in_the_large": -1.1216522845943714e-06, + "expected_calibration_error_10bin": 1.1216522845943714e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "N99": { + "valid": 2799, + "positives": 3, + "negatives": 2796, + "auroc": 0.6860991893180735, + "auprc": 0.0027989104912181837, + "brier": 0.0010793989001349489, + "calibration": { + "observed_rate": 0.0010718113612004287, + "mean_prediction": 0.0018295455422234553, + "calibration_in_the_large": 0.0007577341810230266, + "expected_calibration_error_10bin": 0.0007577341810230266, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9845233907843827 + }, + "O69": { + "valid": 2743, + "positives": 5, + "negatives": 2738, + "auroc": 0.9985390796201608, + "auprc": 0.40979797979797983, + "brier": 0.0012303045621856127, + "calibration": { + "observed_rate": 0.0018228217280349982, + "mean_prediction": 0.002236012415237908, + "calibration_in_the_large": 0.00041319068720290994, + "expected_calibration_error_10bin": 0.0019044714982957751, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + "O99": { + "valid": 2652, + "positives": 1, + "negatives": 2651, + "auroc": 1.0, + "auprc": 1.0, + "brier": 0.0005996821075886326, + "calibration": { + "observed_rate": 0.0003770739064856712, + "mean_prediction": 0.0025580468607894966, + "calibration_in_the_large": 0.0021809729543038254, + "expected_calibration_error_10bin": 0.0021809729543038254, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9328174463594794 + }, + "Q21": { + "valid": 2810, + "positives": 2, + "negatives": 2808, + "auroc": 0.7816951566951567, + "auprc": 0.0023737510126924117, + "brier": 0.0007129328834508819, + "calibration": { + "observed_rate": 0.0007117437722419929, + "mean_prediction": 0.001363867648061157, + "calibration_in_the_large": 0.000652123875819164, + "expected_calibration_error_10bin": 0.000652123875819164, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + "U07": { + "valid": 2828, + "positives": 0, + "negatives": 2828, + "auroc": null, + "auprc": null, + "brier": 3.322142779161199e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.002878172625330107, + "calibration_in_the_large": 0.002878172625330107, + "expected_calibration_error_10bin": 0.002878172625330107, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9947238832219486 + } + }, + "210": { + "A04": { + "valid": 2782, + "positives": 22, + "negatives": 2760, + "auroc": 0.7763998682476944, + "auprc": 0.06723475217453591, + "brier": 0.007878515896547181, + "calibration": { + "observed_rate": 0.007907979870596693, + "mean_prediction": 0.008475262438756802, + "calibration_in_the_large": 0.0005672825681601098, + "expected_calibration_error_10bin": 0.001869073570114511, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + "A08": { + "valid": 2818, + "positives": 11, + "negatives": 2807, + "auroc": 0.7922077922077922, + "auprc": 0.014779169278836367, + "brier": 0.0038920773980718, + "calibration": { + "observed_rate": 0.0039034776437189495, + "mean_prediction": 0.00275000824052738, + "calibration_in_the_large": -0.0011534694031915694, + "expected_calibration_error_10bin": 0.0011534694031915694, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "A41": { + "valid": 2664, + "positives": 54, + "negatives": 2610, + "auroc": 0.7384276997303817, + "auprc": 0.050135418661759135, + "brier": 0.020185097325670236, + "calibration": { + "observed_rate": 0.02027027027027027, + "mean_prediction": 0.018849440837259538, + "calibration_in_the_large": -0.0014208294330107334, + "expected_calibration_error_10bin": 0.007424759182589417, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9370383397819205 + }, + "B00": { + "valid": 2819, + "positives": 4, + "negatives": 2815, + "auroc": 0.7735346358792184, + "auprc": 0.04093912602739841, + "brier": 0.0014064818039635039, + "calibration": { + "observed_rate": 0.001418942887548776, + "mean_prediction": 0.001082747066995084, + "calibration_in_the_large": -0.0003361958205536921, + "expected_calibration_error_10bin": 0.0003361958205536921, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "B02": { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.9543685886098338, + "auprc": 0.007692307692307693, + "brier": 0.00035673143032947805, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.000954419224770447, + "calibration_in_the_large": 0.0006008124355200933, + "expected_calibration_error_10bin": 0.0006008124355200933, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "B18": { + "valid": 2782, + "positives": 5, + "negatives": 2777, + "auroc": 0.9640619373424559, + "auprc": 0.03375746383254015, + "brier": 0.0018229125051787704, + "calibration": { + "observed_rate": 0.0017972681524083393, + "mean_prediction": 0.0011005046615629986, + "calibration_in_the_large": -0.0006967634908453407, + "expected_calibration_error_10bin": 0.0010743930296224023, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + "B19": { + "valid": 2763, + "positives": 16, + "negatives": 2747, + "auroc": 0.9044867127775755, + "auprc": 0.10853135236879316, + "brier": 0.005569571067772794, + "calibration": { + "observed_rate": 0.00579080709373869, + "mean_prediction": 0.0021812273869489186, + "calibration_in_the_large": -0.003609579706789771, + "expected_calibration_error_10bin": 0.0036095797067897716, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + "B20": { + "valid": 2829, + "positives": 4, + "negatives": 2825, + "auroc": 0.9767256637168141, + "auprc": 0.06209663352520495, + "brier": 0.0013996600438051401, + "calibration": { + "observed_rate": 0.0014139271827500884, + "mean_prediction": 0.000804215566452131, + "calibration_in_the_large": -0.0006097116162979574, + "expected_calibration_error_10bin": 0.0008814819069622878, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "B34": { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.9543524416135881, + "auprc": 0.09151954258514843, + "brier": 0.0017385751662624895, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.0008214045212246471, + "calibration_in_the_large": -0.0009447558461367092, + "expected_calibration_error_10bin": 0.0009447558461367092, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "B35": { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 2.7896968645020426e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0009346197832081843, + "calibration_in_the_large": 0.0009346197832081843, + "expected_calibration_error_10bin": 0.0009346197832081843, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "B37": { + "valid": 2768, + "positives": 30, + "negatives": 2738, + "auroc": 0.765473581689798, + "auprc": 0.03162765276812305, + "brier": 0.010706599001186867, + "calibration": { + "observed_rate": 0.01083815028901734, + "mean_prediction": 0.005930389029444838, + "calibration_in_the_large": -0.0049077612595725024, + "expected_calibration_error_10bin": 0.005513462728457449, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "B95": { + "valid": 2678, + "positives": 51, + "negatives": 2627, + "auroc": 0.7392015047358875, + "auprc": 0.045554859138091354, + "brier": 0.018541718663297208, + "calibration": { + "observed_rate": 0.019044062733383122, + "mean_prediction": 0.014112140411308314, + "calibration_in_the_large": -0.004931922322074808, + "expected_calibration_error_10bin": 0.005020357976130978, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9419627154414351 + }, + "B96": { + "valid": 2630, + "positives": 70, + "negatives": 2560, + "auroc": 0.7673716517857143, + "auprc": 0.08253139498705327, + "brier": 0.025332387805298798, + "calibration": { + "observed_rate": 0.026615969581749048, + "mean_prediction": 0.016783055139217747, + "calibration_in_the_large": -0.009832914442531301, + "expected_calibration_error_10bin": 0.01018221796728837, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9250791417516707 + }, + "B97": { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.7466383581033262, + "auprc": 0.03641801548205489, + "brier": 0.0007188602453808231, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.0009229196941364593, + "calibration_in_the_large": 0.00021570611563575203, + "expected_calibration_error_10bin": 0.00021570611563575214, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "C18": { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.9746633593196314, + "auprc": 0.019961240310077517, + "brier": 0.0007046727590860787, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.00068907960400296, + "calibration_in_the_large": -1.913569344746491e-05, + "expected_calibration_error_10bin": 1.913569344746491e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "C22": { + "valid": 2812, + "positives": 5, + "negatives": 2807, + "auroc": 0.916993231207695, + "auprc": 0.02784085184406493, + "brier": 0.001789221030078188, + "calibration": { + "observed_rate": 0.0017780938833570413, + "mean_prediction": 0.0005494950171651448, + "calibration_in_the_large": -0.0012285988661918964, + "expected_calibration_error_10bin": 0.0014584146742703695, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9890960253253606 + }, + "C25": { + "valid": 2809, + "positives": 2, + "negatives": 2807, + "auroc": 0.9695404346277164, + "auprc": 0.10591715976331362, + "brier": 0.00069721235075154, + "calibration": { + "observed_rate": 0.000711997152011392, + "mean_prediction": 0.001053512513500718, + "calibration_in_the_large": 0.000341515361489326, + "expected_calibration_error_10bin": 0.0004082408356758197, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "C61": { + "valid": 2805, + "positives": 2, + "negatives": 2803, + "auroc": 0.9951837317160186, + "auprc": 0.10317460317460317, + "brier": 0.0006989786855296075, + "calibration": { + "observed_rate": 0.00071301247771836, + "mean_prediction": 0.0009882934295917319, + "calibration_in_the_large": 0.0002752809518733718, + "expected_calibration_error_10bin": 0.0002752809518733718, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "C67": { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9694021931376017, + "auprc": 0.01745598057073467, + "brier": 0.0007044737313526573, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0004600398823630248, + "calibration_in_the_large": -0.0002469237090120194, + "expected_calibration_error_10bin": 0.0002469237090120194, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "C77": { + "valid": 2762, + "positives": 17, + "negatives": 2745, + "auroc": 0.8655309118182792, + "auprc": 0.09976351478416694, + "brier": 0.005902613592397995, + "calibration": { + "observed_rate": 0.006154960173787111, + "mean_prediction": 0.005285418585905099, + "calibration_in_the_large": -0.0008695415878820119, + "expected_calibration_error_10bin": 0.0014162237310329521, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + "C78": { + "valid": 2762, + "positives": 25, + "negatives": 2737, + "auroc": 0.8732773109243698, + "auprc": 0.14383449358945685, + "brier": 0.008492855600836308, + "calibration": { + "observed_rate": 0.009051412020275163, + "mean_prediction": 0.005564915712742551, + "calibration_in_the_large": -0.0034864963075326126, + "expected_calibration_error_10bin": 0.006367226398504317, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + "C79": { + "valid": 2751, + "positives": 19, + "negatives": 2732, + "auroc": 0.8917700547121831, + "auprc": 0.10324841888865607, + "brier": 0.006638789326169968, + "calibration": { + "observed_rate": 0.0069065794256633955, + "mean_prediction": 0.0059017637817747205, + "calibration_in_the_large": -0.001004815643888675, + "expected_calibration_error_10bin": 0.002710673867936201, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "C83": { + "valid": 2820, + "positives": 0, + "negatives": 2820, + "auroc": null, + "auprc": null, + "brier": 3.488170509630569e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0005658770074504407, + "calibration_in_the_large": 0.0005658770074504407, + "expected_calibration_error_10bin": 0.0005658770074504407, + "nonempty_bins": 3 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9919099542736546 + }, + "D25": { + "valid": 2792, + "positives": 2, + "negatives": 2790, + "auroc": 0.9933691756272401, + "auprc": 0.2763157894736842, + "brier": 0.0006931363811386892, + "calibration": { + "observed_rate": 0.0007163323782234957, + "mean_prediction": 0.0005926778848158671, + "calibration_in_the_large": -0.00012365449340762862, + "expected_calibration_error_10bin": 0.00012365449340762862, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + "D47": { + "valid": 2796, + "positives": 7, + "negatives": 2789, + "auroc": 0.6245454079803309, + "auprc": 0.005051502831890875, + "brier": 0.002509950687527936, + "calibration": { + "observed_rate": 0.002503576537911302, + "mean_prediction": 0.0024742067942078705, + "calibration_in_the_large": -2.9369743703431313e-05, + "expected_calibration_error_10bin": 0.00010133113376316601, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + "D50": { + "valid": 2663, + "positives": 44, + "negatives": 2619, + "auroc": 0.8166111284667986, + "auprc": 0.12076709482137486, + "brier": 0.015665630623091762, + "calibration": { + "observed_rate": 0.016522718738265114, + "mean_prediction": 0.010909621568704972, + "calibration_in_the_large": -0.005613097169560143, + "expected_calibration_error_10bin": 0.005613097169560142, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9366865986633838 + }, + "D53": { + "valid": 2805, + "positives": 14, + "negatives": 2791, + "auroc": 0.8461892818754159, + "auprc": 0.04651266397719772, + "brier": 0.004888707469565922, + "calibration": { + "observed_rate": 0.004991087344028521, + "mean_prediction": 0.00401075930563308, + "calibration_in_the_large": -0.0009803280383954413, + "expected_calibration_error_10bin": 0.0011608264148575648, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "D59": { + "valid": 2836, + "positives": 1, + "negatives": 2835, + "auroc": 0.9887125220458554, + "auprc": 0.030303030303030304, + "brier": 0.00035158645916072716, + "calibration": { + "observed_rate": 0.0003526093088857546, + "mean_prediction": 0.0007848670302581799, + "calibration_in_the_large": 0.00043225772137242535, + "expected_calibration_error_10bin": 0.00043225772137242535, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "D61": { + "valid": 2773, + "positives": 30, + "negatives": 2743, + "auroc": 0.9050674444039373, + "auprc": 0.20241000442756724, + "brier": 0.009701103251667903, + "calibration": { + "observed_rate": 0.010818608005769925, + "mean_prediction": 0.009230608943134811, + "calibration_in_the_large": -0.0015879990626351138, + "expected_calibration_error_10bin": 0.003103119233777262, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + "D62": { + "valid": 2499, + "positives": 55, + "negatives": 2444, + "auroc": 0.7994643654218122, + "auprc": 0.0966382946524174, + "brier": 0.020998561261215777, + "calibration": { + "observed_rate": 0.022008803521408563, + "mean_prediction": 0.013697256492595712, + "calibration_in_the_large": -0.00831154702881285, + "expected_calibration_error_10bin": 0.00831154702881285, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8790010552233556 + }, + "D63": { + "valid": 2686, + "positives": 66, + "negatives": 2620, + "auroc": 0.8541001619245894, + "auprc": 0.1162135915193821, + "brier": 0.02326934256577795, + "calibration": { + "observed_rate": 0.024571854058078928, + "mean_prediction": 0.01861260776817823, + "calibration_in_the_large": -0.005959246289900699, + "expected_calibration_error_10bin": 0.01179602724613066, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9447766443897292 + }, + "D64": { + "valid": 2434, + "positives": 97, + "negatives": 2337, + "auroc": 0.7922572334784661, + "auprc": 0.15608296939353428, + "brier": 0.03595373754415756, + "calibration": { + "observed_rate": 0.039852095316351685, + "mean_prediction": 0.0326249123291815, + "calibration_in_the_large": -0.0072271829871701845, + "expected_calibration_error_10bin": 0.008290836052296052, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8561378825184665 + }, + "D65": { + "valid": 2833, + "positives": 3, + "negatives": 2830, + "auroc": 0.9296819787985866, + "auprc": 0.011815426322438274, + "brier": 0.001058023959435823, + "calibration": { + "observed_rate": 0.0010589481115425344, + "mean_prediction": 0.0005837380282357032, + "calibration_in_the_large": -0.00047521008330683127, + "expected_calibration_error_10bin": 0.00047521008330683127, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9964825888146325 + }, + "D68": { + "valid": 2682, + "positives": 49, + "negatives": 2633, + "auroc": 0.811148918359596, + "auprc": 0.09635159617093322, + "brier": 0.017537233891705677, + "calibration": { + "observed_rate": 0.018269947800149143, + "mean_prediction": 0.006842463322151449, + "calibration_in_the_large": -0.011427484477997695, + "expected_calibration_error_10bin": 0.011667967729102825, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9433696799155822 + }, + "D69": { + "valid": 2586, + "positives": 65, + "negatives": 2521, + "auroc": 0.8395691575382175, + "auprc": 0.21941767629971212, + "brier": 0.021929822114059576, + "calibration": { + "observed_rate": 0.025135344160866203, + "mean_prediction": 0.015077393419142238, + "calibration_in_the_large": -0.010057950741723965, + "expected_calibration_error_10bin": 0.010270442775482521, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9096025325360535 + }, + "D70": { + "valid": 2787, + "positives": 24, + "negatives": 2763, + "auroc": 0.875196042948486, + "auprc": 0.16972415783711117, + "brier": 0.00786706958565205, + "calibration": { + "observed_rate": 0.008611410118406888, + "mean_prediction": 0.007364606654720645, + "calibration_in_the_large": -0.0012468034636862434, + "expected_calibration_error_10bin": 0.004180500006954105, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "D72": { + "valid": 2595, + "positives": 50, + "negatives": 2545, + "auroc": 0.7282750491159136, + "auprc": 0.05784955602060848, + "brier": 0.01864682947839096, + "calibration": { + "observed_rate": 0.019267822736030827, + "mean_prediction": 0.023398377871506906, + "calibration_in_the_large": 0.004130555135476079, + "expected_calibration_error_10bin": 0.00532494554312286, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9127682026028843 + }, + "D73": { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.8860924022214345, + "auprc": 0.17236194081831666, + "brier": 0.0010479344585157628, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.000601610823637962, + "calibration_in_the_large": -0.0004607121225376755, + "expected_calibration_error_10bin": 0.0004607121225376755, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "D75": { + "valid": 2831, + "positives": 3, + "negatives": 2828, + "auroc": 0.9514380009429514, + "auprc": 0.013918192154589904, + "brier": 0.0010553436539088332, + "calibration": { + "observed_rate": 0.0010596962204168139, + "mean_prediction": 0.0010586473747924486, + "calibration_in_the_large": -1.048845624365257e-06, + "expected_calibration_error_10bin": 1.048845624365257e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "D80": { + "valid": 2832, + "positives": 6, + "negatives": 2826, + "auroc": 0.9820712432177401, + "auprc": 0.07765947861120912, + "brier": 0.0020983572509045306, + "calibration": { + "observed_rate": 0.00211864406779661, + "mean_prediction": 0.0005514857204106113, + "calibration_in_the_large": -0.0015671583473859988, + "expected_calibration_error_10bin": 0.001674417915907531, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + "D89": { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.6800705467372135, + "auprc": 0.007422709563905994, + "brier": 0.0008052955919055006, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0006749876758195411, + "calibration_in_the_large": -2.9982362953811007e-05, + "expected_calibration_error_10bin": 0.0005289452191080395, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + "E03": { + "valid": 2480, + "positives": 20, + "negatives": 2460, + "auroc": 0.7488211382113821, + "auprc": 0.06704156674022087, + "brier": 0.007935664299905281, + "calibration": { + "observed_rate": 0.008064516129032258, + "mean_prediction": 0.0037707474713252233, + "calibration_in_the_large": -0.0042937686577070346, + "expected_calibration_error_10bin": 0.0042937686577070346, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8723179739711572 + }, + "E04": { + "valid": 2775, + "positives": 9, + "negatives": 2766, + "auroc": 0.7757290913473126, + "auprc": 0.011924326451632383, + "brier": 0.003224921650517736, + "calibration": { + "observed_rate": 0.003243243243243243, + "mean_prediction": 0.0025086211937971033, + "calibration_in_the_large": -0.0007346220494461398, + "expected_calibration_error_10bin": 0.0007346220494461398, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + "E05": { + "valid": 2806, + "positives": 3, + "negatives": 2803, + "auroc": 0.5467951004875728, + "auprc": 0.0015856143891766884, + "brier": 0.0010687686474704333, + "calibration": { + "observed_rate": 0.0010691375623663579, + "mean_prediction": 0.0006618051618687458, + "calibration_in_the_large": -0.000407332400497612, + "expected_calibration_error_10bin": 0.000407332400497612, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "E11": { + "valid": 2194, + "positives": 17, + "negatives": 2177, + "auroc": 0.8208273663163015, + "auprc": 0.025272501081802387, + "brier": 0.007671474856086104, + "calibration": { + "observed_rate": 0.007748404740200547, + "mean_prediction": 0.0038963497347269554, + "calibration_in_the_large": -0.0038520550054735917, + "expected_calibration_error_10bin": 0.003949759223085737, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7717200140696447 + }, + "E16": { + "valid": 2816, + "positives": 6, + "negatives": 2810, + "auroc": 0.597508896797153, + "auprc": 0.002994104014244183, + "brier": 0.002142230740939964, + "calibration": { + "observed_rate": 0.002130681818181818, + "mean_prediction": 0.0018744396261754755, + "calibration_in_the_large": -0.0002562421920063425, + "expected_calibration_error_10bin": 0.0002562421920063425, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "E21": { + "valid": 2814, + "positives": 2, + "negatives": 2812, + "auroc": 0.8769559032716927, + "auprc": 0.011170594568728317, + "brier": 0.000711122916062877, + "calibration": { + "observed_rate": 0.0007107320540156361, + "mean_prediction": 0.0009623039726652656, + "calibration_in_the_large": 0.0002515719186496295, + "expected_calibration_error_10bin": 0.0002515719186496295, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "E22": { + "valid": 2802, + "positives": 7, + "negatives": 2795, + "auroc": 0.7767441860465116, + "auprc": 0.020838401762919564, + "brier": 0.0025032295601561836, + "calibration": { + "observed_rate": 0.0024982155603140615, + "mean_prediction": 0.0034443206478797605, + "calibration_in_the_large": 0.0009461050875656991, + "expected_calibration_error_10bin": 0.000946105087565699, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "E27": { + "valid": 2811, + "positives": 6, + "negatives": 2805, + "auroc": 0.7557338086749852, + "auprc": 0.005055588447456737, + "brier": 0.002132289566253841, + "calibration": { + "observed_rate": 0.0021344717182497333, + "mean_prediction": 0.0010043019805213722, + "calibration_in_the_large": -0.0011301697377283611, + "expected_calibration_error_10bin": 0.0011301697377283611, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9887442842068238 + }, + "E43": { + "valid": 2748, + "positives": 33, + "negatives": 2715, + "auroc": 0.8374462860650705, + "auprc": 0.05622205626374805, + "brier": 0.011691404453860941, + "calibration": { + "observed_rate": 0.012008733624454149, + "mean_prediction": 0.01119887520604313, + "calibration_in_the_large": -0.0008098584184110195, + "expected_calibration_error_10bin": 0.003121353704342305, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9665845937390081 + }, + "E44": { + "valid": 2800, + "positives": 17, + "negatives": 2783, + "auroc": 0.7607321764494515, + "auprc": 0.032040144405547116, + "brier": 0.0059861063917070875, + "calibration": { + "observed_rate": 0.006071428571428571, + "mean_prediction": 0.0043043360954285554, + "calibration_in_the_large": -0.001767092476000016, + "expected_calibration_error_10bin": 0.0018847739494935924, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + "E46": { + "valid": 2772, + "positives": 33, + "negatives": 2739, + "auroc": 0.8303959640213747, + "auprc": 0.12467536203738325, + "brier": 0.011313801135002266, + "calibration": { + "observed_rate": 0.011904761904761904, + "mean_prediction": 0.007090564489362444, + "calibration_in_the_large": -0.00481419741539946, + "expected_calibration_error_10bin": 0.00481419741539946, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9750263805838902 + }, + "E53": { + "valid": 2804, + "positives": 6, + "negatives": 2798, + "auroc": 0.5823802716225875, + "auprc": 0.0036244869272534634, + "brier": 0.002141696529494858, + "calibration": { + "observed_rate": 0.0021398002853067048, + "mean_prediction": 0.0014471147569385175, + "calibration_in_the_large": -0.0006926855283681873, + "expected_calibration_error_10bin": 0.0006926855283681873, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "E55": { + "valid": 2737, + "positives": 25, + "negatives": 2712, + "auroc": 0.6036135693215339, + "auprc": 0.01603762851896231, + "brier": 0.009075441240731522, + "calibration": { + "observed_rate": 0.009134088417975887, + "mean_prediction": 0.005005013241746847, + "calibration_in_the_large": -0.0041290751762290395, + "expected_calibration_error_10bin": 0.0041290751762290395, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9627154414351038 + }, + "E66": { + "valid": 2371, + "positives": 32, + "negatives": 2339, + "auroc": 0.7902816374519025, + "auprc": 0.06035050673442161, + "brier": 0.013086926910128206, + "calibration": { + "observed_rate": 0.013496415014761703, + "mean_prediction": 0.009304196111839627, + "calibration_in_the_large": -0.004192218902922077, + "expected_calibration_error_10bin": 0.0053024954676955316, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8339781920506507 + }, + "E78": { + "valid": 1572, + "positives": 35, + "negatives": 1537, + "auroc": 0.7053071846825913, + "auprc": 0.10986752390516133, + "brier": 0.021448265236176097, + "calibration": { + "observed_rate": 0.022264631043257, + "mean_prediction": 0.02228357999249875, + "calibration_in_the_large": 1.8948949241752444e-05, + "expected_calibration_error_10bin": 0.0037547336569633263, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5529370383397819 + }, + "E80": { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.9084132055378061, + "auprc": 0.0163662946889914, + "brier": 0.0021185171160840706, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0010735901250134865, + "calibration_in_the_large": -0.0010518083872075549, + "expected_calibration_error_10bin": 0.0010518083872075549, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "E83": { + "valid": 2653, + "positives": 65, + "negatives": 2588, + "auroc": 0.8036737605516585, + "auprc": 0.12362690994720718, + "brier": 0.02284915803296155, + "calibration": { + "observed_rate": 0.024500565397663022, + "mean_prediction": 0.01446935178031005, + "calibration_in_the_large": -0.010031213617352973, + "expected_calibration_error_10bin": 0.010601538110894903, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9331691874780161 + }, + "E86": { + "valid": 2587, + "positives": 79, + "negatives": 2508, + "auroc": 0.7976601457614115, + "auprc": 0.10185761656139357, + "brier": 0.02849291320165864, + "calibration": { + "observed_rate": 0.030537301894085815, + "mean_prediction": 0.027076425175120423, + "calibration_in_the_large": -0.0034608767189653923, + "expected_calibration_error_10bin": 0.005393080580809484, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9099542736545903 + }, + "E87": { + "valid": 2185, + "positives": 121, + "negatives": 2064, + "auroc": 0.7875184188609136, + "auprc": 0.1726100876187883, + "brier": 0.04934151464786037, + "calibration": { + "observed_rate": 0.05537757437070938, + "mean_prediction": 0.04067252939042169, + "calibration_in_the_large": -0.014705044980287692, + "expected_calibration_error_10bin": 0.018225936275705467, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.768554344002814 + }, + "E88": { + "valid": 2817, + "positives": 10, + "negatives": 2807, + "auroc": 0.7523690773067332, + "auprc": 0.0933187046479845, + "brier": 0.0034297210053687343, + "calibration": { + "observed_rate": 0.003549875754348598, + "mean_prediction": 0.0025541399232962866, + "calibration_in_the_large": -0.0009957358310523114, + "expected_calibration_error_10bin": 0.0011633329519954722, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "E89": { + "valid": 2780, + "positives": 5, + "negatives": 2775, + "auroc": 0.6393513513513513, + "auprc": 0.006644859173622568, + "brier": 0.0017942637582954598, + "calibration": { + "observed_rate": 0.0017985611510791368, + "mean_prediction": 0.0014500801018192165, + "calibration_in_the_large": -0.00034848104925992024, + "expected_calibration_error_10bin": 0.00034848104925992024, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + "F02": { + "valid": 2802, + "positives": 3, + "negatives": 2799, + "auroc": 0.796236751220674, + "auprc": 0.01177919396701701, + "brier": 0.0011008437335990491, + "calibration": { + "observed_rate": 0.0010706638115631692, + "mean_prediction": 0.00213761367489769, + "calibration_in_the_large": 0.0010669498633345206, + "expected_calibration_error_10bin": 0.0010669498633345204, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "F03": { + "valid": 2739, + "positives": 14, + "negatives": 2725, + "auroc": 0.887051114023591, + "auprc": 0.03721025356658693, + "brier": 0.0050516231784298055, + "calibration": { + "observed_rate": 0.00511135450894487, + "mean_prediction": 0.005100158114474166, + "calibration_in_the_large": -1.119639447070414e-05, + "expected_calibration_error_10bin": 0.0007594476005473412, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + "F05": { + "valid": 2750, + "positives": 20, + "negatives": 2730, + "auroc": 0.7338644688644689, + "auprc": 0.015368766459658428, + "brier": 0.007275010470986378, + "calibration": { + "observed_rate": 0.007272727272727273, + "mean_prediction": 0.007037895761362175, + "calibration_in_the_large": -0.00023483151136509742, + "expected_calibration_error_10bin": 0.00038718997287514874, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + "F06": { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.6164189667374381, + "auprc": 0.0014494363130242724, + "brier": 0.0007119442902733019, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.0013726420034913163, + "calibration_in_the_large": 0.000665428424990609, + "expected_calibration_error_10bin": 0.000665428424990609, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "F10": { + "valid": 2560, + "positives": 15, + "negatives": 2545, + "auroc": 0.7599738048461034, + "auprc": 0.11927420042166247, + "brier": 0.0056381854592771185, + "calibration": { + "observed_rate": 0.005859375, + "mean_prediction": 0.003475371695492413, + "calibration_in_the_large": -0.002384003304507587, + "expected_calibration_error_10bin": 0.002384003304507587, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + "F11": { + "valid": 2741, + "positives": 9, + "negatives": 2732, + "auroc": 0.8462664714494875, + "auprc": 0.035971711157187815, + "brier": 0.0032361468462872313, + "calibration": { + "observed_rate": 0.003283473184968989, + "mean_prediction": 0.002406413493592308, + "calibration_in_the_large": -0.0008770596913766811, + "expected_calibration_error_10bin": 0.0008770596913766811, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + "F12": { + "valid": 2777, + "positives": 12, + "negatives": 2765, + "auroc": 0.9108800482218203, + "auprc": 0.029267893671344594, + "brier": 0.00428097736748621, + "calibration": { + "observed_rate": 0.004321209938782859, + "mean_prediction": 0.0016133397139970348, + "calibration_in_the_large": -0.0027078702247858243, + "expected_calibration_error_10bin": 0.0027078702247858243, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + "F14": { + "valid": 2787, + "positives": 9, + "negatives": 2778, + "auroc": 0.9248060155187585, + "auprc": 0.03735340294811186, + "brier": 0.003202627556822994, + "calibration": { + "observed_rate": 0.0032292787944025836, + "mean_prediction": 0.001353684040313828, + "calibration_in_the_large": -0.0018755947540887556, + "expected_calibration_error_10bin": 0.00203114808807134, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "F15": { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.9373446929357473, + "auprc": 0.0531043314992952, + "brier": 0.002091121024477779, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0009136175932062758, + "calibration_in_the_large": -0.0012117809190147655, + "expected_calibration_error_10bin": 0.0012117809190147655, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "F17": { + "valid": 2426, + "positives": 27, + "negatives": 2399, + "auroc": 0.8883176632238742, + "auprc": 0.07942322500595358, + "brier": 0.01074664897916913, + "calibration": { + "observed_rate": 0.011129431162407255, + "mean_prediction": 0.00597268837564168, + "calibration_in_the_large": -0.005156742786765574, + "expected_calibration_error_10bin": 0.005372964194447941, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8533239535701723 + }, + "F19": { + "valid": 2801, + "positives": 10, + "negatives": 2791, + "auroc": 0.927660336796847, + "auprc": 0.20980646080934315, + "brier": 0.0033103984520770997, + "calibration": { + "observed_rate": 0.003570153516601214, + "mean_prediction": 0.002368249763432046, + "calibration_in_the_large": -0.001201903753169168, + "expected_calibration_error_10bin": 0.001201903753169168, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "F20": { + "valid": 2808, + "positives": 3, + "negatives": 2805, + "auroc": 0.8190136660724896, + "auprc": 0.01252518868347798, + "brier": 0.001066317732715788, + "calibration": { + "observed_rate": 0.0010683760683760685, + "mean_prediction": 0.0010656686528360047, + "calibration_in_the_large": -2.707415540063743e-06, + "expected_calibration_error_10bin": 2.707415540063743e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9876890608512136 + }, + "F22": { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.9258865248226951, + "auprc": 0.004761904761904762, + "brier": 0.000367643995036624, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0015860023187374405, + "calibration_in_the_large": 0.0012315180932854731, + "expected_calibration_error_10bin": 0.0012315180932854731, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "F25": { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.8483664772727273, + "auprc": 0.008943760917445127, + "brier": 0.0010688125456401589, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0011300258954184783, + "calibration_in_the_large": 6.581872975689623e-05, + "expected_calibration_error_10bin": 6.581872975689623e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "F29": { + "valid": 2806, + "positives": 7, + "negatives": 2799, + "auroc": 0.7925789822895932, + "auprc": 0.009371560569035504, + "brier": 0.002490714661112245, + "calibration": { + "observed_rate": 0.0024946543121881683, + "mean_prediction": 0.0006770182825243492, + "calibration_in_the_large": -0.0018176360296638192, + "expected_calibration_error_10bin": 0.0018176360296638192, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "F31": { + "valid": 2724, + "positives": 8, + "negatives": 2716, + "auroc": 0.9204252577319587, + "auprc": 0.03427334520008904, + "brier": 0.0028869108234957103, + "calibration": { + "observed_rate": 0.002936857562408223, + "mean_prediction": 0.0024471011863895324, + "calibration_in_the_large": -0.0004897563760186906, + "expected_calibration_error_10bin": 0.0004897563760186906, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9581428068941259 + }, + "F32": { + "valid": 2200, + "positives": 53, + "negatives": 2147, + "auroc": 0.6971113708465521, + "auprc": 0.0581083095477662, + "brier": 0.023332918783282718, + "calibration": { + "observed_rate": 0.02409090909090909, + "mean_prediction": 0.02132940800849941, + "calibration_in_the_large": -0.0027615010824096793, + "expected_calibration_error_10bin": 0.0056972243316175215, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7738304607808653 + }, + "F33": { + "valid": 2800, + "positives": 11, + "negatives": 2789, + "auroc": 0.8336647217966687, + "auprc": 0.021092342826404428, + "brier": 0.003938457966525958, + "calibration": { + "observed_rate": 0.003928571428571429, + "mean_prediction": 0.0035770616991417877, + "calibration_in_the_large": -0.0003515097294296411, + "expected_calibration_error_10bin": 0.0006052251966697699, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + "F39": { + "valid": 2801, + "positives": 9, + "negatives": 2792, + "auroc": 0.7737981534543139, + "auprc": 0.027240467537345707, + "brier": 0.003183005100251665, + "calibration": { + "observed_rate": 0.0032131381649410924, + "mean_prediction": 0.0014851111714773977, + "calibration_in_the_large": -0.0017280269934636947, + "expected_calibration_error_10bin": 0.0017280269934636947, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "F41": { + "valid": 2247, + "positives": 72, + "negatives": 2175, + "auroc": 0.7409578544061303, + "auprc": 0.09193743743430928, + "brier": 0.03030833060045949, + "calibration": { + "observed_rate": 0.03204272363150868, + "mean_prediction": 0.02674758091769345, + "calibration_in_the_large": -0.005295142713815232, + "expected_calibration_error_10bin": 0.007354919071322529, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7903622933520928 + }, + "F43": { + "valid": 2734, + "positives": 16, + "negatives": 2718, + "auroc": 0.8114652317880795, + "auprc": 0.03203603486788463, + "brier": 0.005772011379419505, + "calibration": { + "observed_rate": 0.005852231163130944, + "mean_prediction": 0.00523587431196983, + "calibration_in_the_large": -0.000616356851161114, + "expected_calibration_error_10bin": 0.0009088633806576616, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "F60": { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.9351581940988268, + "auprc": 0.051706475604059055, + "brier": 0.001743739912099231, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.0024297717087209494, + "calibration_in_the_large": 0.0006554636888486997, + "expected_calibration_error_10bin": 0.0006554636888486994, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "F90": { + "valid": 2775, + "positives": 7, + "negatives": 2768, + "auroc": 0.9322873658133773, + "auprc": 0.04224860070407096, + "brier": 0.0024694517199446734, + "calibration": { + "observed_rate": 0.0025225225225225223, + "mean_prediction": 0.002226512260141946, + "calibration_in_the_large": -0.00029601026238057623, + "expected_calibration_error_10bin": 0.00029601026238057623, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + "G25": { + "valid": 2774, + "positives": 5, + "negatives": 2769, + "auroc": 0.7369447453954496, + "auprc": 0.006018652962631855, + "brier": 0.001802605497150564, + "calibration": { + "observed_rate": 0.001802451333813987, + "mean_prediction": 0.002335863343825501, + "calibration_in_the_large": 0.0005334120100115142, + "expected_calibration_error_10bin": 0.0005334120100115142, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "G31": { + "valid": 2802, + "positives": 6, + "negatives": 2796, + "auroc": 0.8795302813543157, + "auprc": 0.02097099041417309, + "brier": 0.0021289274259324383, + "calibration": { + "observed_rate": 0.0021413276231263384, + "mean_prediction": 0.001970565888711958, + "calibration_in_the_large": -0.00017076173441438061, + "expected_calibration_error_10bin": 0.00017076173441438061, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "G40": { + "valid": 2723, + "positives": 21, + "negatives": 2702, + "auroc": 0.714973035846463, + "auprc": 0.04300904939932078, + "brier": 0.007611608355646115, + "calibration": { + "observed_rate": 0.007712082262210797, + "mean_prediction": 0.0052044240335074625, + "calibration_in_the_large": -0.0025076582287033343, + "expected_calibration_error_10bin": 0.0029292985964529277, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + "G43": { + "valid": 2725, + "positives": 13, + "negatives": 2712, + "auroc": 0.744667574313592, + "auprc": 0.03499296208950519, + "brier": 0.004720877784835226, + "calibration": { + "observed_rate": 0.0047706422018348625, + "mean_prediction": 0.0023872646504699106, + "calibration_in_the_large": -0.002383377551364952, + "expected_calibration_error_10bin": 0.002383377551364952, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9584945480126627 + }, + "G44": { + "valid": 2805, + "positives": 5, + "negatives": 2800, + "auroc": 0.667, + "auprc": 0.014821480748276111, + "brier": 0.0017761485542771719, + "calibration": { + "observed_rate": 0.0017825311942959, + "mean_prediction": 0.0010938866016358799, + "calibration_in_the_large": -0.0006886445926600202, + "expected_calibration_error_10bin": 0.0006886445926600202, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "G47": { + "valid": 2315, + "positives": 76, + "negatives": 2239, + "auroc": 0.6876601396300039, + "auprc": 0.07306775576550759, + "brier": 0.03132265112334242, + "calibration": { + "observed_rate": 0.03282937365010799, + "mean_prediction": 0.025874385407790905, + "calibration_in_the_large": -0.006954988242317085, + "expected_calibration_error_10bin": 0.008255882001684103, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8142806894125924 + }, + "G51": { + "valid": 2834, + "positives": 0, + "negatives": 2834, + "auroc": null, + "auprc": null, + "brier": 2.702666946812146e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00042104576287021984, + "calibration_in_the_large": 0.00042104576287021984, + "expected_calibration_error_10bin": 0.00042104576287021984, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9968343299331692 + }, + "G62": { + "valid": 2751, + "positives": 32, + "negatives": 2719, + "auroc": 0.8158904928282457, + "auprc": 0.09182500302598542, + "brier": 0.011142724172658616, + "calibration": { + "observed_rate": 0.011632133769538349, + "mean_prediction": 0.0062304421546921, + "calibration_in_the_large": -0.005401691614846249, + "expected_calibration_error_10bin": 0.006034702773552308, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "G81": { + "valid": 2789, + "positives": 12, + "negatives": 2777, + "auroc": 0.7303144880566559, + "auprc": 0.05098768357233895, + "brier": 0.00424251302164782, + "calibration": { + "observed_rate": 0.004302617425600574, + "mean_prediction": 0.0028903376846200145, + "calibration_in_the_large": -0.0014122797409805593, + "expected_calibration_error_10bin": 0.0014927069392897203, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "G83": { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.6404348339832211, + "auprc": 0.005633990552824816, + "brier": 0.0010626199846136663, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.001141922230924586, + "calibration_in_the_large": 7.959928474894845e-05, + "expected_calibration_error_10bin": 7.959928474894845e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "G89": { + "valid": 2537, + "positives": 50, + "negatives": 2487, + "auroc": 0.7658464012866908, + "auprc": 0.07058624334602101, + "brier": 0.018899703475885356, + "calibration": { + "observed_rate": 0.019708316909735908, + "mean_prediction": 0.014629055204456008, + "calibration_in_the_large": -0.0050792617052799, + "expected_calibration_error_10bin": 0.005299076375520869, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8923672177277524 + }, + "G90": { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 8.322976540981626e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0013866110272470853, + "calibration_in_the_large": 0.0013866110272470853, + "expected_calibration_error_10bin": 0.0013866110272470853, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "G92": { + "valid": 2733, + "positives": 37, + "negatives": 2696, + "auroc": 0.805497634132649, + "auprc": 0.047113447858172154, + "brier": 0.0131622141261798, + "calibration": { + "observed_rate": 0.01353823637028906, + "mean_prediction": 0.010918319378310053, + "calibration_in_the_large": -0.0026199169919790075, + "expected_calibration_error_10bin": 0.0026199169919790075, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + "G93": { + "valid": 2656, + "positives": 41, + "negatives": 2615, + "auroc": 0.8005129879214662, + "auprc": 0.058311750065726704, + "brier": 0.014894182413926321, + "calibration": { + "observed_rate": 0.015436746987951807, + "mean_prediction": 0.011550973695835933, + "calibration_in_the_large": -0.0038857732921158735, + "expected_calibration_error_10bin": 0.004229999092296885, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9342244108336265 + }, + "G99": { + "valid": 2841, + "positives": 0, + "negatives": 2841, + "auroc": null, + "auprc": null, + "brier": 1.4056199662524422e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.000383090540727176, + "calibration_in_the_large": 0.000383090540727176, + "expected_calibration_error_10bin": 0.000383090540727176, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9992965177629265 + }, + "H10": { + "valid": 2832, + "positives": 5, + "negatives": 2827, + "auroc": 0.8293597453130527, + "auprc": 0.007415230589745164, + "brier": 0.0017611567069565905, + "calibration": { + "observed_rate": 0.0017655367231638418, + "mean_prediction": 0.0007157104090008373, + "calibration_in_the_large": -0.0010498263141630044, + "expected_calibration_error_10bin": 0.0010498263141630044, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + "H26": { + "valid": 2819, + "positives": 0, + "negatives": 2819, + "auroc": null, + "auprc": null, + "brier": 9.457976680024477e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.001577545163410444, + "calibration_in_the_large": 0.001577545163410444, + "expected_calibration_error_10bin": 0.001577545163410444, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "H35": { + "valid": 2806, + "positives": 5, + "negatives": 2801, + "auroc": 0.6904676901106748, + "auprc": 0.004552090542496395, + "brier": 0.0017800824059634756, + "calibration": { + "observed_rate": 0.001781895937277263, + "mean_prediction": 0.0010605879990908888, + "calibration_in_the_large": -0.0007213079381863743, + "expected_calibration_error_10bin": 0.0007213079381863743, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "H40": { + "valid": 2750, + "positives": 6, + "negatives": 2744, + "auroc": 0.7809766763848397, + "auprc": 0.05439768909969075, + "brier": 0.0021581292072823605, + "calibration": { + "observed_rate": 0.002181818181818182, + "mean_prediction": 0.0032582612372987732, + "calibration_in_the_large": 0.0010764430554805913, + "expected_calibration_error_10bin": 0.0010764430554805913, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + "H53": { + "valid": 2790, + "positives": 10, + "negatives": 2780, + "auroc": 0.5583093525179856, + "auprc": 0.01167966848098952, + "brier": 0.0035771883423091526, + "calibration": { + "observed_rate": 0.0035842293906810036, + "mean_prediction": 0.004288949714830658, + "calibration_in_the_large": 0.000704720324149654, + "expected_calibration_error_10bin": 0.000704720324149654, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + "H54": { + "valid": 2809, + "positives": 2, + "negatives": 2807, + "auroc": 0.4494121838261489, + "auprc": 0.0009913987343012206, + "brier": 0.0007147294567047905, + "calibration": { + "observed_rate": 0.000711997152011392, + "mean_prediction": 0.0009582429353088315, + "calibration_in_the_large": 0.00024624578329743947, + "expected_calibration_error_10bin": 0.00024624578329743947, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "H91": { + "valid": 2791, + "positives": 7, + "negatives": 2784, + "auroc": 0.8149630541871922, + "auprc": 0.02007297413931362, + "brier": 0.002488179214953149, + "calibration": { + "observed_rate": 0.0025080616266571123, + "mean_prediction": 0.0017328899144569898, + "calibration_in_the_large": -0.0007751717122001225, + "expected_calibration_error_10bin": 0.0007751717122001225, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9817094618360886 + }, + "I07": { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.8439829605963791, + "auprc": 0.011795853335819903, + "brier": 0.0021170930617099067, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0009328341731462274, + "calibration_in_the_large": -0.001192564339074814, + "expected_calibration_error_10bin": 0.001192564339074814, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "I08": { + "valid": 2767, + "positives": 9, + "negatives": 2758, + "auroc": 0.8228184674885183, + "auprc": 0.015761945954382642, + "brier": 0.0032984381043705793, + "calibration": { + "observed_rate": 0.0032526201662450307, + "mean_prediction": 0.004079669855260402, + "calibration_in_the_large": 0.0008270496890153711, + "expected_calibration_error_10bin": 0.000827049689015371, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9732676749912065 + }, + "I10": { + "valid": 1498, + "positives": 34, + "negatives": 1464, + "auroc": 0.6868772099003536, + "auprc": 0.047072008925572666, + "brier": 0.022077527322470203, + "calibration": { + "observed_rate": 0.022696929238985315, + "mean_prediction": 0.018716165867963003, + "calibration_in_the_large": -0.003980763371022312, + "expected_calibration_error_10bin": 0.00516918074292689, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5269081955680619 + }, + "I11": { + "valid": 2676, + "positives": 38, + "negatives": 2638, + "auroc": 0.82607437851642, + "auprc": 0.06006746644292147, + "brier": 0.013807645819751076, + "calibration": { + "observed_rate": 0.014200298953662182, + "mean_prediction": 0.011811654209869564, + "calibration_in_the_large": -0.0023886447437926183, + "expected_calibration_error_10bin": 0.004134032655589188, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9412592332043616 + }, + "I12": { + "valid": 2552, + "positives": 21, + "negatives": 2531, + "auroc": 0.8557882259976294, + "auprc": 0.10360704565902103, + "brier": 0.007883435761703797, + "calibration": { + "observed_rate": 0.008228840125391849, + "mean_prediction": 0.00807002373344093, + "calibration_in_the_large": -0.00015881639195091876, + "expected_calibration_error_10bin": 0.0014672490115842647, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8976433345058037 + }, + "I13": { + "valid": 2727, + "positives": 23, + "negatives": 2704, + "auroc": 0.9003730383329046, + "auprc": 0.1444568890381228, + "brier": 0.007690506642879079, + "calibration": { + "observed_rate": 0.008434176751008434, + "mean_prediction": 0.009936570929678512, + "calibration_in_the_large": 0.0015023941786700776, + "expected_calibration_error_10bin": 0.0028146228094105977, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9591980302497362 + }, + "I16": { + "valid": 2390, + "positives": 8, + "negatives": 2382, + "auroc": 0.8648719563392108, + "auprc": 0.019902834881920062, + "brier": 0.003320351099758492, + "calibration": { + "observed_rate": 0.0033472803347280333, + "mean_prediction": 0.002902250631140872, + "calibration_in_the_large": -0.0004450297035871612, + "expected_calibration_error_10bin": 0.0004450297035871612, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8406612733028491 + }, + "I21": { + "valid": 2671, + "positives": 18, + "negatives": 2653, + "auroc": 0.8341709595007748, + "auprc": 0.028038467873719195, + "brier": 0.006729105543093252, + "calibration": { + "observed_rate": 0.0067390490453013855, + "mean_prediction": 0.011302460837104329, + "calibration_in_the_large": 0.004563411791802943, + "expected_calibration_error_10bin": 0.004563411791802943, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + "I24": { + "valid": 2809, + "positives": 6, + "negatives": 2803, + "auroc": 0.9011178499227018, + "auprc": 0.021127262816354242, + "brier": 0.002116060837041933, + "calibration": { + "observed_rate": 0.002135991456034176, + "mean_prediction": 0.0022776888233846156, + "calibration_in_the_large": 0.00014169736735043965, + "expected_calibration_error_10bin": 0.00014169736735043965, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "I25": { + "valid": 2243, + "positives": 36, + "negatives": 2207, + "auroc": 0.8478074812465388, + "auprc": 0.08694718046269773, + "brier": 0.015323681417347355, + "calibration": { + "observed_rate": 0.016049933125278644, + "mean_prediction": 0.010706305125158059, + "calibration_in_the_large": -0.005343628000120585, + "expected_calibration_error_10bin": 0.006134154498457225, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7889553288779458 + }, + "I26": { + "valid": 2760, + "positives": 16, + "negatives": 2744, + "auroc": 0.7314595481049563, + "auprc": 0.132724761680609, + "brier": 0.005537961601087178, + "calibration": { + "observed_rate": 0.005797101449275362, + "mean_prediction": 0.007673721144382781, + "calibration_in_the_large": 0.0018766196951074182, + "expected_calibration_error_10bin": 0.002448050893089321, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9708054871614492 + }, + "I27": { + "valid": 2716, + "positives": 31, + "negatives": 2685, + "auroc": 0.8361506577761759, + "auprc": 0.062396260951477725, + "brier": 0.011103317403591427, + "calibration": { + "observed_rate": 0.011413843888070692, + "mean_prediction": 0.00706643695901486, + "calibration_in_the_large": -0.004347406929055831, + "expected_calibration_error_10bin": 0.004525534526650832, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + "I31": { + "valid": 2793, + "positives": 15, + "negatives": 2778, + "auroc": 0.7823134149268058, + "auprc": 0.01661135600000019, + "brier": 0.005334647142559568, + "calibration": { + "observed_rate": 0.0053705692803437165, + "mean_prediction": 0.003144281197310707, + "calibration_in_the_large": -0.0022262880830330096, + "expected_calibration_error_10bin": 0.0022262880830330096, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "I34": { + "valid": 2753, + "positives": 15, + "negatives": 2738, + "auroc": 0.7549549549549549, + "auprc": 0.01506446770681936, + "brier": 0.005526831915785628, + "calibration": { + "observed_rate": 0.005448601525608427, + "mean_prediction": 0.006438331595426892, + "calibration_in_the_large": 0.0009897300698184647, + "expected_calibration_error_10bin": 0.0009897300698184647, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9683432993316918 + }, + "I35": { + "valid": 2723, + "positives": 6, + "negatives": 2717, + "auroc": 0.6738437001594896, + "auprc": 0.00723051540044803, + "brier": 0.0022196389472920876, + "calibration": { + "observed_rate": 0.0022034520749173708, + "mean_prediction": 0.0029655995800652746, + "calibration_in_the_large": 0.0007621475051479039, + "expected_calibration_error_10bin": 0.0007621475051479039, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + "I42": { + "valid": 2740, + "positives": 11, + "negatives": 2729, + "auroc": 0.9182517738765449, + "auprc": 0.035312562511623846, + "brier": 0.0039476414466629965, + "calibration": { + "observed_rate": 0.0040145985401459855, + "mean_prediction": 0.0034432087452994785, + "calibration_in_the_large": -0.000571389794846507, + "expected_calibration_error_10bin": 0.0006551637750219978, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + "I44": { + "valid": 2722, + "positives": 17, + "negatives": 2705, + "auroc": 0.8492116994672175, + "auprc": 0.04006183901117289, + "brier": 0.006117057308313529, + "calibration": { + "observed_rate": 0.006245407788390889, + "mean_prediction": 0.004620336956898806, + "calibration_in_the_large": -0.0016250708314920828, + "expected_calibration_error_10bin": 0.0016250708314920828, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9574393246570524 + }, + "I45": { + "valid": 2766, + "positives": 12, + "negatives": 2754, + "auroc": 0.6664245945291697, + "auprc": 0.006687615456640324, + "brier": 0.004340987956977841, + "calibration": { + "observed_rate": 0.004338394793926247, + "mean_prediction": 0.004289442226172436, + "calibration_in_the_large": -4.895256775381152e-05, + "expected_calibration_error_10bin": 4.895256775381152e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9729159338726697 + }, + "I46": { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.7208480565371025, + "auprc": 0.0012642225031605564, + "brier": 0.0003543719411913841, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.0007681548720182805, + "calibration_in_the_large": 0.0004149227985460092, + "expected_calibration_error_10bin": 0.0004149227985460092, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "I47": { + "valid": 2716, + "positives": 12, + "negatives": 2704, + "auroc": 0.6304857001972387, + "auprc": 0.006798026100532959, + "brier": 0.004465466688726536, + "calibration": { + "observed_rate": 0.004418262150220913, + "mean_prediction": 0.007430653438508797, + "calibration_in_the_large": 0.0030123912882878837, + "expected_calibration_error_10bin": 0.0030123912882878837, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + "I48": { + "valid": 2385, + "positives": 22, + "negatives": 2363, + "auroc": 0.7705920824837457, + "auprc": 0.027432611384994966, + "brier": 0.009498957807592105, + "calibration": { + "observed_rate": 0.009224318658280923, + "mean_prediction": 0.014800500186489363, + "calibration_in_the_large": 0.00557618152820844, + "expected_calibration_error_10bin": 0.005576181528208443, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8389025677101654 + }, + "I49": { + "valid": 2734, + "positives": 15, + "negatives": 2719, + "auroc": 0.6767193821257815, + "auprc": 0.010165972620424487, + "brier": 0.0054646216898060354, + "calibration": { + "observed_rate": 0.005486466715435259, + "mean_prediction": 0.003791656320541386, + "calibration_in_the_large": -0.0016948103948938734, + "expected_calibration_error_10bin": 0.0016948103948938734, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "I50": { + "valid": 2415, + "positives": 38, + "negatives": 2377, + "auroc": 0.81426167437947, + "auprc": 0.06503622577878969, + "brier": 0.015500073694944766, + "calibration": { + "observed_rate": 0.015734989648033125, + "mean_prediction": 0.016255446464223812, + "calibration_in_the_large": 0.000520456816190687, + "expected_calibration_error_10bin": 0.003221784506433331, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.849454801266268 + }, + "I51": { + "valid": 2807, + "positives": 6, + "negatives": 2801, + "auroc": 0.7747233131024635, + "auprc": 0.008770661987436064, + "brier": 0.002131744330753146, + "calibration": { + "observed_rate": 0.0021375133594584966, + "mean_prediction": 0.0018691559619412703, + "calibration_in_the_large": -0.00026835739751722627, + "expected_calibration_error_10bin": 0.00026835739751722627, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "I61": { + "valid": 2802, + "positives": 7, + "negatives": 2795, + "auroc": 0.8131868131868132, + "auprc": 0.010425664855114187, + "brier": 0.0024894148921677994, + "calibration": { + "observed_rate": 0.0024982155603140615, + "mean_prediction": 0.0012959272210311251, + "calibration_in_the_large": -0.0012022883392829363, + "expected_calibration_error_10bin": 0.0012022883392829363, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "I63": { + "valid": 2735, + "positives": 11, + "negatives": 2724, + "auroc": 0.7450941129355226, + "auprc": 0.015053599859820533, + "brier": 0.004005537621871089, + "calibration": { + "observed_rate": 0.0040219378427787935, + "mean_prediction": 0.004046267207448404, + "calibration_in_the_large": 2.4329364669610498e-05, + "expected_calibration_error_10bin": 2.4329364669610498e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9620119591980303 + }, + "I65": { + "valid": 2774, + "positives": 5, + "negatives": 2769, + "auroc": 0.7170097508125677, + "auprc": 0.00923156133078778, + "brier": 0.0018244647637486874, + "calibration": { + "observed_rate": 0.001802451333813987, + "mean_prediction": 0.004217262123336134, + "calibration_in_the_large": 0.002414810789522147, + "expected_calibration_error_10bin": 0.002414810789522147, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "I67": { + "valid": 2773, + "positives": 3, + "negatives": 2770, + "auroc": 0.7681107099879663, + "auprc": 0.00456339010045968, + "brier": 0.001109402616117291, + "calibration": { + "observed_rate": 0.0010818608005769925, + "mean_prediction": 0.002857410960246066, + "calibration_in_the_large": 0.0017755501596690736, + "expected_calibration_error_10bin": 0.0017755501596690736, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + "I69": { + "valid": 2752, + "positives": 15, + "negatives": 2737, + "auroc": 0.7133114115211302, + "auprc": 0.01981949093526828, + "brier": 0.0054415146174349935, + "calibration": { + "observed_rate": 0.005450581395348837, + "mean_prediction": 0.0049743112901250025, + "calibration_in_the_large": -0.00047627010522383485, + "expected_calibration_error_10bin": 0.0006530078778712132, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9679915582131551 + }, + "I70": { + "valid": 2771, + "positives": 7, + "negatives": 2764, + "auroc": 0.7864895596444077, + "auprc": 0.02992953930249372, + "brier": 0.0025065859311820086, + "calibration": { + "observed_rate": 0.0025261638397690365, + "mean_prediction": 0.0032066482049541295, + "calibration_in_the_large": 0.000680484365185093, + "expected_calibration_error_10bin": 0.000680484365185093, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9746746394653535 + }, + "I71": { + "valid": 2769, + "positives": 4, + "negatives": 2765, + "auroc": 0.7144665461121157, + "auprc": 0.013672281458700627, + "brier": 0.00144786618989833, + "calibration": { + "observed_rate": 0.001444564824846515, + "mean_prediction": 0.0029068069478214668, + "calibration_in_the_large": 0.0014622421229749517, + "expected_calibration_error_10bin": 0.0014622421229749517, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.97397115722828 + }, + "I72": { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.7719161038037682, + "auprc": 0.013828334979311862, + "brier": 0.001765798289451834, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.0014412198124461313, + "calibration_in_the_large": -0.00033308820742611843, + "expected_calibration_error_10bin": 0.00033308820742611843, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "I73": { + "valid": 2734, + "positives": 7, + "negatives": 2727, + "auroc": 0.8117240295458117, + "auprc": 0.03411490438435915, + "brier": 0.002581437972091296, + "calibration": { + "observed_rate": 0.002560351133869788, + "mean_prediction": 0.004822378981998721, + "calibration_in_the_large": 0.0022620278481289328, + "expected_calibration_error_10bin": 0.002262027848128933, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "I74": { + "valid": 2821, + "positives": 5, + "negatives": 2816, + "auroc": 0.775, + "auprc": 0.01209733198810914, + "brier": 0.0017661738085393243, + "calibration": { + "observed_rate": 0.001772421127259837, + "mean_prediction": 0.0008118536149198257, + "calibration_in_the_large": -0.0009605675123400112, + "expected_calibration_error_10bin": 0.0009605675123400112, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "I77": { + "valid": 2785, + "positives": 4, + "negatives": 2781, + "auroc": 0.5943905070118662, + "auprc": 0.005070365605316792, + "brier": 0.0014427752181835932, + "calibration": { + "observed_rate": 0.001436265709156194, + "mean_prediction": 0.002430050649952791, + "calibration_in_the_large": 0.0009937849407965968, + "expected_calibration_error_10bin": 0.0009937849407965968, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "I80": { + "valid": 2827, + "positives": 4, + "negatives": 2823, + "auroc": 0.9088735387885228, + "auprc": 0.056619541102089985, + "brier": 0.0013978776479407614, + "calibration": { + "observed_rate": 0.0014149274849663955, + "mean_prediction": 0.0009128898538842285, + "calibration_in_the_large": -0.000502037631082167, + "expected_calibration_error_10bin": 0.000502037631082167, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "I81": { + "valid": 2826, + "positives": 7, + "negatives": 2819, + "auroc": 0.9160796635078295, + "auprc": 0.02958716437002159, + "brier": 0.002492800776642123, + "calibration": { + "observed_rate": 0.0024769992922859165, + "mean_prediction": 0.001506889845017881, + "calibration_in_the_large": -0.0009701094472680356, + "expected_calibration_error_10bin": 0.0014638763757380102, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "I82": { + "valid": 2739, + "positives": 26, + "negatives": 2713, + "auroc": 0.750035441889478, + "auprc": 0.03388241914572376, + "brier": 0.009326167766012354, + "calibration": { + "observed_rate": 0.009492515516611903, + "mean_prediction": 0.007449977615686227, + "calibration_in_the_large": -0.0020425379009256757, + "expected_calibration_error_10bin": 0.002205642556721419, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + "I85": { + "valid": 2793, + "positives": 8, + "negatives": 2785, + "auroc": 0.987342908438061, + "auprc": 0.3121333531640549, + "brier": 0.0025338425910859112, + "calibration": { + "observed_rate": 0.0028643036161833156, + "mean_prediction": 0.0011655332399249927, + "calibration_in_the_large": -0.001698770376258323, + "expected_calibration_error_10bin": 0.002098734028411215, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "I87": { + "valid": 2780, + "positives": 12, + "negatives": 2768, + "auroc": 0.6823518786127167, + "auprc": 0.010536094100548876, + "brier": 0.004300696167998873, + "calibration": { + "observed_rate": 0.004316546762589928, + "mean_prediction": 0.0024339020387187963, + "calibration_in_the_large": -0.0018826447238711316, + "expected_calibration_error_10bin": 0.0018826447238711316, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + "I89": { + "valid": 2826, + "positives": 5, + "negatives": 2821, + "auroc": 0.8591279688053881, + "auprc": 0.007398836434700007, + "brier": 0.001764910245653708, + "calibration": { + "observed_rate": 0.0017692852087756545, + "mean_prediction": 0.0008065651345500204, + "calibration_in_the_large": -0.0009627200742256341, + "expected_calibration_error_10bin": 0.0009627200742256341, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "I95": { + "valid": 2485, + "positives": 77, + "negatives": 2408, + "auroc": 0.7415649134918237, + "auprc": 0.07995276668230611, + "brier": 0.029370123300400383, + "calibration": { + "observed_rate": 0.030985915492957747, + "mean_prediction": 0.02719142797875726, + "calibration_in_the_large": -0.003794487514200487, + "expected_calibration_error_10bin": 0.0037944875142004878, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.874076679563841 + }, + "I96": { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.7863411181882519, + "auprc": 0.21086263340781303, + "brier": 0.001735297804783961, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.001312446489458709, + "calibration_in_the_large": -0.0004537138779026474, + "expected_calibration_error_10bin": 0.0004537138779026474, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "I97": { + "valid": 2740, + "positives": 9, + "negatives": 2731, + "auroc": 0.7110541519183042, + "auprc": 0.009896188639469748, + "brier": 0.0032785578377338563, + "calibration": { + "observed_rate": 0.0032846715328467154, + "mean_prediction": 0.0036424176208945764, + "calibration_in_the_large": 0.00035774608804786103, + "expected_calibration_error_10bin": 0.00035774608804786103, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + "J02": { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.7805526036131775, + "auprc": 0.002348547089855574, + "brier": 0.0007200862055189886, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.0012644250321627462, + "calibration_in_the_large": 0.0005564604303928347, + "expected_calibration_error_10bin": 0.0005564604303928347, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J06": { + "valid": 2816, + "positives": 8, + "negatives": 2808, + "auroc": 0.6405359686609686, + "auprc": 0.009373011317839706, + "brier": 0.002860711881069447, + "calibration": { + "observed_rate": 0.002840909090909091, + "mean_prediction": 0.0027686563559644706, + "calibration_in_the_large": -7.225273494462043e-05, + "expected_calibration_error_10bin": 0.00014839413914428799, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "J12": { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 4.2974687510559116e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.002261138998628252, + "calibration_in_the_large": 0.002261138998628252, + "expected_calibration_error_10bin": 0.0022611389986282524, + "nonempty_bins": 2 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J15": { + "valid": 2795, + "positives": 12, + "negatives": 2783, + "auroc": 0.6945442567972212, + "auprc": 0.01114454031387497, + "brier": 0.004282563047203749, + "calibration": { + "observed_rate": 0.004293381037567084, + "mean_prediction": 0.002601274061361533, + "calibration_in_the_large": -0.001692106976205551, + "expected_calibration_error_10bin": 0.001692106976205551, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9831164263102357 + }, + "J18": { + "valid": 2671, + "positives": 44, + "negatives": 2627, + "auroc": 0.7856351870436378, + "auprc": 0.054601471468734945, + "brier": 0.01596010230596489, + "calibration": { + "observed_rate": 0.01647323099962561, + "mean_prediction": 0.011651303342357587, + "calibration_in_the_large": -0.004821927657268023, + "expected_calibration_error_10bin": 0.005625614578358433, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + "J30": { + "valid": 2815, + "positives": 6, + "negatives": 2809, + "auroc": 0.6876112495550017, + "auprc": 0.018345727005862834, + "brier": 0.0021208735780274524, + "calibration": { + "observed_rate": 0.0021314387211367673, + "mean_prediction": 0.0011338623156561185, + "calibration_in_the_large": -0.0009975764054806489, + "expected_calibration_error_10bin": 0.0009975764054806489, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + "J32": { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.5286522815705695, + "auprc": 0.0036032173771027272, + "brier": 0.0007118616456641295, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0010353630673894353, + "calibration_in_the_large": 0.00032839947601439104, + "expected_calibration_error_10bin": 0.00032839947601439104, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J38": { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.767445979454481, + "auprc": 0.0045504437545081065, + "brier": 0.000709156476885244, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.001204570653706678, + "calibration_in_the_large": 0.0004966060519367665, + "expected_calibration_error_10bin": 0.0004966060519367665, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J43": { + "valid": 2804, + "positives": 7, + "negatives": 2797, + "auroc": 0.7113233566576433, + "auprc": 0.018233745724264477, + "brier": 0.002481021741776078, + "calibration": { + "observed_rate": 0.0024964336661911554, + "mean_prediction": 0.002391809339081882, + "calibration_in_the_large": -0.00010462432710927347, + "expected_calibration_error_10bin": 0.00010462432710927347, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "J44": { + "valid": 2570, + "positives": 22, + "negatives": 2548, + "auroc": 0.8149529042386185, + "auprc": 0.03609612997862213, + "brier": 0.008427583934121534, + "calibration": { + "observed_rate": 0.008560311284046693, + "mean_prediction": 0.00699552901867273, + "calibration_in_the_large": -0.001564782265373963, + "expected_calibration_error_10bin": 0.0020525544174916817, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9039746746394653 + }, + "J45": { + "valid": 2518, + "positives": 21, + "negatives": 2497, + "auroc": 0.6753246753246753, + "auprc": 0.020914598466704997, + "brier": 0.008277539200927237, + "calibration": { + "observed_rate": 0.008339952343129467, + "mean_prediction": 0.00592779328166927, + "calibration_in_the_large": -0.002412159061460197, + "expected_calibration_error_10bin": 0.002660167851554015, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.885684136475554 + }, + "J47": { + "valid": 2825, + "positives": 6, + "negatives": 2819, + "auroc": 0.7923613574553624, + "auprc": 0.009771703784826048, + "brier": 0.002119659092662639, + "calibration": { + "observed_rate": 0.0021238938053097347, + "mean_prediction": 0.0005014462541239862, + "calibration_in_the_large": -0.0016224475511857485, + "expected_calibration_error_10bin": 0.0016224475511857485, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J69": { + "valid": 2777, + "positives": 24, + "negatives": 2753, + "auroc": 0.7715522460346289, + "auprc": 0.028652056546742882, + "brier": 0.008510855801851226, + "calibration": { + "observed_rate": 0.008642419877565718, + "mean_prediction": 0.005072263459315896, + "calibration_in_the_large": -0.0035701564182498225, + "expected_calibration_error_10bin": 0.0035701564182498225, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + "J81": { + "valid": 2781, + "positives": 17, + "negatives": 2764, + "auroc": 0.79660764450498, + "auprc": 0.04859757142643354, + "brier": 0.006003135337334184, + "calibration": { + "observed_rate": 0.006112909025530385, + "mean_prediction": 0.0038638670881114296, + "calibration_in_the_large": -0.002249041937418955, + "expected_calibration_error_10bin": 0.002249041937418955, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + "J84": { + "valid": 2817, + "positives": 7, + "negatives": 2810, + "auroc": 0.9062023385866802, + "auprc": 0.017375859930576623, + "brier": 0.002463543653290369, + "calibration": { + "observed_rate": 0.0024849130280440185, + "mean_prediction": 0.0019978216207456128, + "calibration_in_the_large": -0.00048709140729840577, + "expected_calibration_error_10bin": 0.00048709140729840577, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "J90": { + "valid": 2754, + "positives": 28, + "negatives": 2726, + "auroc": 0.6683261712608741, + "auprc": 0.018745781710009828, + "brier": 0.010127739234847026, + "calibration": { + "observed_rate": 0.010167029774872912, + "mean_prediction": 0.0064038634515696975, + "calibration_in_the_large": -0.003763166323303214, + "expected_calibration_error_10bin": 0.004160309225395606, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9686950404502286 + }, + "J91": { + "valid": 2807, + "positives": 10, + "negatives": 2797, + "auroc": 0.8163389345727565, + "auprc": 0.031917348774012165, + "brier": 0.0035238551824170157, + "calibration": { + "observed_rate": 0.003562522265764161, + "mean_prediction": 0.003182090433429904, + "calibration_in_the_large": -0.0003804318323342567, + "expected_calibration_error_10bin": 0.0006951851637401601, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "J94": { + "valid": 2829, + "positives": 9, + "negatives": 2820, + "auroc": 0.64822695035461, + "auprc": 0.12469652179102085, + "brier": 0.003159173355323969, + "calibration": { + "observed_rate": 0.003181336161187699, + "mean_prediction": 0.00045462951597570076, + "calibration_in_the_large": -0.002726706645211998, + "expected_calibration_error_10bin": 0.002726706645211998, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J95": { + "valid": 2770, + "positives": 12, + "negatives": 2758, + "auroc": 0.8098561759729273, + "auprc": 0.018167190914518096, + "brier": 0.0042980841721829205, + "calibration": { + "observed_rate": 0.004332129963898917, + "mean_prediction": 0.002936494302807676, + "calibration_in_the_large": -0.0013956356610912409, + "expected_calibration_error_10bin": 0.0013956356610912409, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9743228983468167 + }, + "J96": { + "valid": 2605, + "positives": 59, + "negatives": 2546, + "auroc": 0.8402345986392746, + "auprc": 0.10881277485360966, + "brier": 0.021211888596659907, + "calibration": { + "observed_rate": 0.022648752399232246, + "mean_prediction": 0.01601515784583143, + "calibration_in_the_large": -0.006633594553400814, + "expected_calibration_error_10bin": 0.0069854550606080895, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9162856137882518 + }, + "J98": { + "valid": 2692, + "positives": 29, + "negatives": 2663, + "auroc": 0.7181426185142502, + "auprc": 0.03395664006926083, + "brier": 0.010589901997458852, + "calibration": { + "observed_rate": 0.010772659732540862, + "mean_prediction": 0.006345829815459311, + "calibration_in_the_large": -0.004426829917081551, + "expected_calibration_error_10bin": 0.004426829917081551, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9468870911009497 + }, + "K04": { + "valid": 2836, + "positives": 1, + "negatives": 2835, + "auroc": 0.799294532627866, + "auprc": 0.0017543859649122807, + "brier": 0.00035306528472612246, + "calibration": { + "observed_rate": 0.0003526093088857546, + "mean_prediction": 0.00041594231039956476, + "calibration_in_the_large": 6.333300151381018e-05, + "expected_calibration_error_10bin": 6.333300151381018e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "K12": { + "valid": 2824, + "positives": 10, + "negatives": 2814, + "auroc": 0.8868159203980099, + "auprc": 0.06759020662505286, + "brier": 0.003806191970110233, + "calibration": { + "observed_rate": 0.0035410764872521247, + "mean_prediction": 0.003563180438202696, + "calibration_in_the_large": 2.2103950950571206e-05, + "expected_calibration_error_10bin": 0.0027275131629527207, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "K20": { + "valid": 2813, + "positives": 6, + "negatives": 2807, + "auroc": 0.7056762854767842, + "auprc": 0.014564340459449314, + "brier": 0.0021831295464285034, + "calibration": { + "observed_rate": 0.002132954141485958, + "mean_prediction": 0.003318778451750451, + "calibration_in_the_large": 0.0011858243102644927, + "expected_calibration_error_10bin": 0.0011858243102644925, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K21": { + "valid": 2043, + "positives": 67, + "negatives": 1976, + "auroc": 0.7486479545591879, + "auprc": 0.14494075292089514, + "brier": 0.030425220643502233, + "calibration": { + "observed_rate": 0.032794909446891826, + "mean_prediction": 0.026658559832833634, + "calibration_in_the_large": -0.0061363496140581925, + "expected_calibration_error_10bin": 0.006136349614058189, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7186071051705945 + }, + "K22": { + "valid": 2764, + "positives": 14, + "negatives": 2750, + "auroc": 0.8115064935064935, + "auprc": 0.03502983834354972, + "brier": 0.005005833681633396, + "calibration": { + "observed_rate": 0.005065123010130246, + "mean_prediction": 0.0024269358278930556, + "calibration_in_the_large": -0.0026381871822371904, + "expected_calibration_error_10bin": 0.0026381871822371904, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9722124516355962 + }, + "K25": { + "valid": 2817, + "positives": 6, + "negatives": 2811, + "auroc": 0.7418475038539073, + "auprc": 0.006649958765721561, + "brier": 0.0021356572771678195, + "calibration": { + "observed_rate": 0.002129925452609159, + "mean_prediction": 0.001398164112022904, + "calibration_in_the_large": -0.0007317613405862548, + "expected_calibration_error_10bin": 0.0007317613405862548, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "K26": { + "valid": 2814, + "positives": 5, + "negatives": 2809, + "auroc": 0.9694553221787113, + "auprc": 0.2271607936250967, + "brier": 0.0017208261606352629, + "calibration": { + "observed_rate": 0.0017768301350390902, + "mean_prediction": 0.00196904451138889, + "calibration_in_the_large": 0.00019221437634979986, + "expected_calibration_error_10bin": 0.00019221437634979986, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "K29": { + "valid": 2785, + "positives": 10, + "negatives": 2775, + "auroc": 0.7245765765765766, + "auprc": 0.02554354219579118, + "brier": 0.003555896119818507, + "calibration": { + "observed_rate": 0.003590664272890485, + "mean_prediction": 0.0036295581615398385, + "calibration_in_the_large": 3.889388864935367e-05, + "expected_calibration_error_10bin": 3.889388864935367e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K30": { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.9199294532627866, + "auprc": 0.0064113001709680045, + "brier": 0.0007043639403010284, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0007003351619497371, + "calibration_in_the_large": -4.6348768236150134e-06, + "expected_calibration_error_10bin": 4.6348768236150134e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + "K31": { + "valid": 2756, + "positives": 15, + "negatives": 2741, + "auroc": 0.9062629210750335, + "auprc": 0.10074883329027952, + "brier": 0.0052261446796464505, + "calibration": { + "observed_rate": 0.00544267053701016, + "mean_prediction": 0.0037838375061329567, + "calibration_in_the_large": -0.0016588330308772029, + "expected_calibration_error_10bin": 0.0018961963687853538, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + "K40": { + "valid": 2827, + "positives": 3, + "negatives": 2824, + "auroc": 0.9248111425873465, + "auprc": 0.0575942209605576, + "brier": 0.0010484279986176545, + "calibration": { + "observed_rate": 0.0010611956137247967, + "mean_prediction": 0.0007986812748710793, + "calibration_in_the_large": -0.00026251433885371737, + "expected_calibration_error_10bin": 0.00026251433885371737, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "K42": { + "valid": 2820, + "positives": 5, + "negatives": 2815, + "auroc": 0.6981172291296626, + "auprc": 0.015389922910728085, + "brier": 0.0017714204061080184, + "calibration": { + "observed_rate": 0.0017730496453900709, + "mean_prediction": 0.0008169280715258453, + "calibration_in_the_large": -0.0009561215738642256, + "expected_calibration_error_10bin": 0.0009561215738642256, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + "K43": { + "valid": 2813, + "positives": 5, + "negatives": 2808, + "auroc": 0.7893162393162393, + "auprc": 0.02577156387361209, + "brier": 0.0017624947033353742, + "calibration": { + "observed_rate": 0.0017774617845716318, + "mean_prediction": 0.0012880323943147635, + "calibration_in_the_large": -0.0004894293902568683, + "expected_calibration_error_10bin": 0.0004894293902568683, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K44": { + "valid": 2785, + "positives": 5, + "negatives": 2780, + "auroc": 0.7160431654676259, + "auprc": 0.008220350501687013, + "brier": 0.0017904542754155785, + "calibration": { + "observed_rate": 0.0017953321364452424, + "mean_prediction": 0.0018134398117462243, + "calibration_in_the_large": 1.8107675300981863e-05, + "expected_calibration_error_10bin": 1.8107675300981863e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K52": { + "valid": 2749, + "positives": 31, + "negatives": 2718, + "auroc": 0.8204443494979705, + "auprc": 0.07575121893455095, + "brier": 0.01088723547422408, + "calibration": { + "observed_rate": 0.011276827937431793, + "mean_prediction": 0.007447732492729821, + "calibration_in_the_large": -0.0038290954447019725, + "expected_calibration_error_10bin": 0.0044040553671199105, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9669363348575448 + }, + "K55": { + "valid": 2815, + "positives": 8, + "negatives": 2807, + "auroc": 0.8189348058425365, + "auprc": 0.00845253836534279, + "brier": 0.002849800832589598, + "calibration": { + "observed_rate": 0.002841918294849023, + "mean_prediction": 0.00198070274588635, + "calibration_in_the_large": -0.0008612155489626729, + "expected_calibration_error_10bin": 0.0009446722045530761, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + "K56": { + "valid": 2745, + "positives": 26, + "negatives": 2719, + "auroc": 0.7425099725577843, + "auprc": 0.02987893266762265, + "brier": 0.009356994407288391, + "calibration": { + "observed_rate": 0.00947176684881603, + "mean_prediction": 0.0042875033697656875, + "calibration_in_the_large": -0.005184263479050342, + "expected_calibration_error_10bin": 0.005184263479050342, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9655293703833978 + }, + "K57": { + "valid": 2741, + "positives": 20, + "negatives": 2721, + "auroc": 0.7081587651598676, + "auprc": 0.033279138293721554, + "brier": 0.007234031873849472, + "calibration": { + "observed_rate": 0.0072966070777088655, + "mean_prediction": 0.002530814339049023, + "calibration_in_the_large": -0.004765792738659843, + "expected_calibration_error_10bin": 0.004765792738659843, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + "K58": { + "valid": 2792, + "positives": 7, + "negatives": 2785, + "auroc": 0.7478840728391896, + "auprc": 0.12289402426293558, + "brier": 0.002464190943119342, + "calibration": { + "observed_rate": 0.002507163323782235, + "mean_prediction": 0.0020668645059760513, + "calibration_in_the_large": -0.0004402988178061839, + "expected_calibration_error_10bin": 0.0004402988178061839, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + "K59": { + "valid": 2560, + "positives": 78, + "negatives": 2482, + "auroc": 0.7539618587160892, + "auprc": 0.12388383489690066, + "brier": 0.02840080496094687, + "calibration": { + "observed_rate": 0.03046875, + "mean_prediction": 0.023718673748408036, + "calibration_in_the_large": -0.006750076251591963, + "expected_calibration_error_10bin": 0.0076778573557021446, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + "K62": { + "valid": 2813, + "positives": 12, + "negatives": 2801, + "auroc": 0.7737712721647031, + "auprc": 0.015827009334801006, + "brier": 0.004241734893990148, + "calibration": { + "observed_rate": 0.004265908282971916, + "mean_prediction": 0.002005202769518957, + "calibration_in_the_large": -0.0022607055134529594, + "expected_calibration_error_10bin": 0.0022607055134529594, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K63": { + "valid": 2810, + "positives": 15, + "negatives": 2795, + "auroc": 0.7136314847942755, + "auprc": 0.020632716405001424, + "brier": 0.005298737379781194, + "calibration": { + "observed_rate": 0.005338078291814947, + "mean_prediction": 0.0025261484056607, + "calibration_in_the_large": -0.0028119298861542467, + "expected_calibration_error_10bin": 0.0028119298861542467, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + "K64": { + "valid": 2801, + "positives": 17, + "negatives": 2784, + "auroc": 0.763607167004733, + "auprc": 0.023194145024532573, + "brier": 0.006012794861000402, + "calibration": { + "observed_rate": 0.006069260978222063, + "mean_prediction": 0.0035085892335637928, + "calibration_in_the_large": -0.0025606717446582704, + "expected_calibration_error_10bin": 0.0025606717446582704, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "K65": { + "valid": 2813, + "positives": 11, + "negatives": 2802, + "auroc": 0.8908896242943353, + "auprc": 0.037156457207546685, + "brier": 0.003931061218613801, + "calibration": { + "observed_rate": 0.0039104159260575895, + "mean_prediction": 0.0034353398396667397, + "calibration_in_the_large": -0.0004750760863908498, + "expected_calibration_error_10bin": 0.0020102894921386416, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K66": { + "valid": 2796, + "positives": 7, + "negatives": 2789, + "auroc": 0.6533831890590586, + "auprc": 0.017430239303529493, + "brier": 0.0024965547064432617, + "calibration": { + "observed_rate": 0.002503576537911302, + "mean_prediction": 0.0024459865480483166, + "calibration_in_the_large": -5.758998986298523e-05, + "expected_calibration_error_10bin": 5.758998986298523e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + "K70": { + "valid": 2774, + "positives": 1, + "negatives": 2773, + "auroc": 0.9332852506310855, + "auprc": 0.005376344086021506, + "brier": 0.0003730878389196409, + "calibration": { + "observed_rate": 0.0003604902667627974, + "mean_prediction": 0.0007668690657032334, + "calibration_in_the_large": 0.00040637879894043604, + "expected_calibration_error_10bin": 0.00040637879894043604, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "K72": { + "valid": 2787, + "positives": 18, + "negatives": 2769, + "auroc": 0.949660928534168, + "auprc": 0.28779798391310546, + "brier": 0.005609408342826071, + "calibration": { + "observed_rate": 0.006458557588805167, + "mean_prediction": 0.0032017635530883957, + "calibration_in_the_large": -0.0032567940357167715, + "expected_calibration_error_10bin": 0.004010647683580504, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "K74": { + "valid": 2763, + "positives": 7, + "negatives": 2756, + "auroc": 0.9450031100974497, + "auprc": 0.0316326865220473, + "brier": 0.0025914945428020014, + "calibration": { + "observed_rate": 0.0025334781035106766, + "mean_prediction": 0.00203400190141653, + "calibration_in_the_large": -0.0004994762020941465, + "expected_calibration_error_10bin": 0.0015347921146656454, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + "K75": { + "valid": 2798, + "positives": 10, + "negatives": 2788, + "auroc": 0.8513271162123386, + "auprc": 0.024203202836230887, + "brier": 0.0035796284740728813, + "calibration": { + "observed_rate": 0.0035739814152966403, + "mean_prediction": 0.0021826906514776042, + "calibration_in_the_large": -0.0013912907638190361, + "expected_calibration_error_10bin": 0.0018269087698262083, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + "K76": { + "valid": 2681, + "positives": 26, + "negatives": 2655, + "auroc": 0.7974069245255686, + "auprc": 0.17925263459372226, + "brier": 0.008909775927866685, + "calibration": { + "observed_rate": 0.00969787392763894, + "mean_prediction": 0.003801330883635049, + "calibration_in_the_large": -0.005896543044003891, + "expected_calibration_error_10bin": 0.006877364541539384, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9430179387970454 + }, + "K80": { + "valid": 2731, + "positives": 12, + "negatives": 2719, + "auroc": 0.6266396959666544, + "auprc": 0.015161280406062835, + "brier": 0.004373183236233086, + "calibration": { + "observed_rate": 0.004393994873672647, + "mean_prediction": 0.0034400805127572085, + "calibration_in_the_large": -0.0009539143609154387, + "expected_calibration_error_10bin": 0.0009539143609154387, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9606049947238833 + }, + "K81": { + "valid": 2825, + "positives": 5, + "negatives": 2820, + "auroc": 0.8734751773049645, + "auprc": 0.033460314679474745, + "brier": 0.001748054796153504, + "calibration": { + "observed_rate": 0.0017699115044247787, + "mean_prediction": 0.0011866802339835104, + "calibration_in_the_large": -0.0005832312704412684, + "expected_calibration_error_10bin": 0.0005832312704412684, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "K82": { + "valid": 2824, + "positives": 4, + "negatives": 2820, + "auroc": 0.6499113475177305, + "auprc": 0.0034016264779382125, + "brier": 0.0014359802595876638, + "calibration": { + "observed_rate": 0.00141643059490085, + "mean_prediction": 0.0014084881026974472, + "calibration_in_the_large": -7.94249220340275e-06, + "expected_calibration_error_10bin": 7.94249220340275e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "K83": { + "valid": 2757, + "positives": 10, + "negatives": 2747, + "auroc": 0.8924645067346196, + "auprc": 0.11574272889717892, + "brier": 0.0034797836614417874, + "calibration": { + "observed_rate": 0.003627130939426913, + "mean_prediction": 0.002521082555197803, + "calibration_in_the_large": -0.00110604838422911, + "expected_calibration_error_10bin": 0.0017124693695592431, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.969750263805839 + }, + "K85": { + "valid": 2779, + "positives": 4, + "negatives": 2775, + "auroc": 0.8714414414414414, + "auprc": 0.03412460471014405, + "brier": 0.0014229347566226166, + "calibration": { + "observed_rate": 0.0014393666786613889, + "mean_prediction": 0.0016278438125541589, + "calibration_in_the_large": 0.00018847713389276996, + "expected_calibration_error_10bin": 0.00018847713389276996, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9774885684136475 + }, + "K86": { + "valid": 2785, + "positives": 7, + "negatives": 2778, + "auroc": 0.6968013987452433, + "auprc": 0.018244609429817323, + "brier": 0.002506848229123208, + "calibration": { + "observed_rate": 0.0025134649910233393, + "mean_prediction": 0.002078405427536687, + "calibration_in_the_large": -0.00043505956348665253, + "expected_calibration_error_10bin": 0.00043505956348665253, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K90": { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.6851590106007067, + "auprc": 0.0011210762331838565, + "brier": 0.0003537016816209792, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.0003432887561040788, + "calibration_in_the_large": -9.943317368192486e-06, + "expected_calibration_error_10bin": 9.943317368192486e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "K91": { + "valid": 2768, + "positives": 20, + "negatives": 2748, + "auroc": 0.8252729257641921, + "auprc": 0.04173925308792325, + "brier": 0.007107002802731154, + "calibration": { + "observed_rate": 0.0072254335260115606, + "mean_prediction": 0.0029986621446939504, + "calibration_in_the_large": -0.00422677138131761, + "expected_calibration_error_10bin": 0.0043022521043713435, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "K92": { + "valid": 2751, + "positives": 29, + "negatives": 2722, + "auroc": 0.8711013706959893, + "auprc": 0.1354331170823192, + "brier": 0.010066887043993444, + "calibration": { + "observed_rate": 0.010541621228644129, + "mean_prediction": 0.007292398154420332, + "calibration_in_the_large": -0.003249223074223797, + "expected_calibration_error_10bin": 0.003249223074223798, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "K94": { + "valid": 2823, + "positives": 14, + "negatives": 2809, + "auroc": 0.9055586634796318, + "auprc": 0.12810504150066634, + "brier": 0.004874305108587261, + "calibration": { + "observed_rate": 0.00495926319518243, + "mean_prediction": 0.0011598960150435709, + "calibration_in_the_large": -0.0037993671801388592, + "expected_calibration_error_10bin": 0.0037993671801388592, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "L02": { + "valid": 2807, + "positives": 15, + "negatives": 2792, + "auroc": 0.7758118433619866, + "auprc": 0.0181453621334629, + "brier": 0.005300693554835174, + "calibration": { + "observed_rate": 0.005343783398646241, + "mean_prediction": 0.004030982986302256, + "calibration_in_the_large": -0.0013128004123439856, + "expected_calibration_error_10bin": 0.0013128004123439856, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "L03": { + "valid": 2701, + "positives": 35, + "negatives": 2666, + "auroc": 0.7225056264066017, + "auprc": 0.062183521599439996, + "brier": 0.012644716830201151, + "calibration": { + "observed_rate": 0.01295816364309515, + "mean_prediction": 0.008296520276944452, + "calibration_in_the_large": -0.004661643366150698, + "expected_calibration_error_10bin": 0.00476836880379802, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9500527611677805 + }, + "L08": { + "valid": 2830, + "positives": 5, + "negatives": 2825, + "auroc": 0.6739115044247788, + "auprc": 0.004628605580881661, + "brier": 0.001766112281984891, + "calibration": { + "observed_rate": 0.0017667844522968198, + "mean_prediction": 0.0009726865201909447, + "calibration_in_the_large": -0.000794097932105875, + "expected_calibration_error_10bin": 0.000794097932105875, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9954273654590221 + }, + "L27": { + "valid": 2818, + "positives": 8, + "negatives": 2810, + "auroc": 0.7115213523131673, + "auprc": 0.007999985579300865, + "brier": 0.0028703411197022206, + "calibration": { + "observed_rate": 0.0028388928317956, + "mean_prediction": 0.0024220507721285345, + "calibration_in_the_large": -0.0004168420596670653, + "expected_calibration_error_10bin": 0.0005963426689014955, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "L29": { + "valid": 2817, + "positives": 3, + "negatives": 2814, + "auroc": 0.7768301350390903, + "auprc": 0.0031472395037027887, + "brier": 0.0011002794676052555, + "calibration": { + "observed_rate": 0.0010649627263045794, + "mean_prediction": 0.002545273281983637, + "calibration_in_the_large": 0.0014803105556790578, + "expected_calibration_error_10bin": 0.0014803105556790578, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "L30": { + "valid": 2816, + "positives": 7, + "negatives": 2809, + "auroc": 0.699588058790622, + "auprc": 0.03451406106474798, + "brier": 0.002465911525259776, + "calibration": { + "observed_rate": 0.0024857954545454545, + "mean_prediction": 0.0015613559258331542, + "calibration_in_the_large": -0.0009244395287123003, + "expected_calibration_error_10bin": 0.0009244395287123003, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "L50": { + "valid": 2835, + "positives": 3, + "negatives": 2832, + "auroc": 0.817208097928437, + "auprc": 0.009140133716716927, + "brier": 0.001059340721039361, + "calibration": { + "observed_rate": 0.0010582010582010583, + "mean_prediction": 0.0008991483163172843, + "calibration_in_the_large": -0.00015905274188377394, + "expected_calibration_error_10bin": 0.00015905274188377394, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.997186071051706 + }, + "L53": { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 4.752561945483229e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0008683356283025098, + "calibration_in_the_large": 0.0008683356283025098, + "expected_calibration_error_10bin": 0.0008683356283025098, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "L76": { + "valid": 2793, + "positives": 13, + "negatives": 2780, + "auroc": 0.715218594355285, + "auprc": 0.00886710635785274, + "brier": 0.004640306050525898, + "calibration": { + "observed_rate": 0.004654493376297888, + "mean_prediction": 0.0021321649818378556, + "calibration_in_the_large": -0.0025223283944600322, + "expected_calibration_error_10bin": 0.0025223283944600322, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "L89": { + "valid": 2798, + "positives": 19, + "negatives": 2779, + "auroc": 0.8424082877218234, + "auprc": 0.03838368501541321, + "brier": 0.00666820640282876, + "calibration": { + "observed_rate": 0.006790564689063617, + "mean_prediction": 0.004327176828377735, + "calibration_in_the_large": -0.002463387860685882, + "expected_calibration_error_10bin": 0.0025455360238119404, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + "L97": { + "valid": 2789, + "positives": 8, + "negatives": 2781, + "auroc": 0.9363088816972313, + "auprc": 0.050495389140339075, + "brier": 0.0028583300360224854, + "calibration": { + "observed_rate": 0.0028684116170670493, + "mean_prediction": 0.0036938158013285365, + "calibration_in_the_large": 0.0008254041842614872, + "expected_calibration_error_10bin": 0.0008254041842614879, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "L98": { + "valid": 2824, + "positives": 5, + "negatives": 2819, + "auroc": 0.6271727562965591, + "auprc": 0.003014084762758612, + "brier": 0.001774102904371741, + "calibration": { + "observed_rate": 0.0017705382436260624, + "mean_prediction": 0.0015149842052973863, + "calibration_in_the_large": -0.000255554038328676, + "expected_calibration_error_10bin": 0.000255554038328676, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "M10": { + "valid": 2713, + "positives": 12, + "negatives": 2701, + "auroc": 0.787578674564976, + "auprc": 0.03174013992395497, + "brier": 0.004365618491350292, + "calibration": { + "observed_rate": 0.0044231478068558795, + "mean_prediction": 0.004108802047529546, + "calibration_in_the_large": -0.0003143457593263333, + "expected_calibration_error_10bin": 0.00039904729350160787, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9542736545902216 + }, + "M16": { + "valid": 2790, + "positives": 2, + "negatives": 2788, + "auroc": 0.8945480631276901, + "auprc": 0.007858637526156707, + "brier": 0.0007153928580639239, + "calibration": { + "observed_rate": 0.0007168458781362007, + "mean_prediction": 0.0011801048290783986, + "calibration_in_the_large": 0.00046325895094219784, + "expected_calibration_error_10bin": 0.00046325895094219784, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + "M17": { + "valid": 2733, + "positives": 9, + "negatives": 2724, + "auroc": 0.7292380486213086, + "auprc": 0.007978609347522866, + "brier": 0.003283665213412243, + "calibration": { + "observed_rate": 0.003293084522502744, + "mean_prediction": 0.0028546663229511117, + "calibration_in_the_large": -0.0004384181995516325, + "expected_calibration_error_10bin": 0.0004384181995516325, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + "M19": { + "valid": 2674, + "positives": 30, + "negatives": 2644, + "auroc": 0.7005547150781644, + "auprc": 0.023265420423669483, + "brier": 0.011099587144116746, + "calibration": { + "observed_rate": 0.011219147344801795, + "mean_prediction": 0.005091922685673358, + "calibration_in_the_large": -0.006127224659128437, + "expected_calibration_error_10bin": 0.006127224659128437, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.940555750967288 + }, + "M21": { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.9237588652482269, + "auprc": 0.004629629629629629, + "brier": 0.00036353926042722706, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0024485556237134414, + "calibration_in_the_large": 0.002094071398261474, + "expected_calibration_error_10bin": 0.002094071398261474, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "M25": { + "valid": 2717, + "positives": 28, + "negatives": 2689, + "auroc": 0.6557004728257982, + "auprc": 0.0288404123220903, + "brier": 0.010155650912079223, + "calibration": { + "observed_rate": 0.010305483989694516, + "mean_prediction": 0.010145209360951547, + "calibration_in_the_large": -0.00016027462874296933, + "expected_calibration_error_10bin": 0.00024046127070073995, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9556806190643686 + }, + "M35": { + "valid": 2806, + "positives": 1, + "negatives": 2805, + "auroc": 0.8367201426024955, + "auprc": 0.002178649237472767, + "brier": 0.0003573743234959312, + "calibration": { + "observed_rate": 0.0003563791874554526, + "mean_prediction": 0.0005696056373789395, + "calibration_in_the_large": 0.00021322644992348688, + "expected_calibration_error_10bin": 0.00021322644992348688, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "M46": { + "valid": 2814, + "positives": 4, + "negatives": 2810, + "auroc": 0.5770462633451957, + "auprc": 0.0025805996259164396, + "brier": 0.0014217107124467057, + "calibration": { + "observed_rate": 0.0014214641080312722, + "mean_prediction": 0.0010040473693379843, + "calibration_in_the_large": -0.00041741673869328784, + "expected_calibration_error_10bin": 0.00041741673869328784, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "M47": { + "valid": 2743, + "positives": 7, + "negatives": 2736, + "auroc": 0.7211779448621554, + "auprc": 0.017724650731094107, + "brier": 0.002537847303523188, + "calibration": { + "observed_rate": 0.0025519504192489974, + "mean_prediction": 0.003641806778661625, + "calibration_in_the_large": 0.0010898563594126274, + "expected_calibration_error_10bin": 0.0010898563594126274, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + "M48": { + "valid": 2690, + "positives": 10, + "negatives": 2680, + "auroc": 0.8001119402985075, + "auprc": 0.015538580253123805, + "brier": 0.0036956747953612932, + "calibration": { + "observed_rate": 0.0037174721189591076, + "mean_prediction": 0.00508556983634537, + "calibration_in_the_large": 0.0013680977173862628, + "expected_calibration_error_10bin": 0.0013680977173862628, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9461836088638762 + }, + "M51": { + "valid": 2785, + "positives": 2, + "negatives": 2783, + "auroc": 0.5896514552641035, + "auprc": 0.0012901987873205926, + "brier": 0.0007224880079031201, + "calibration": { + "observed_rate": 0.000718132854578097, + "mean_prediction": 0.0017919148503033268, + "calibration_in_the_large": 0.00107378199572523, + "expected_calibration_error_10bin": 0.00107378199572523, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "M54": { + "valid": 2567, + "positives": 35, + "negatives": 2532, + "auroc": 0.6723200180546152, + "auprc": 0.03558585293757677, + "brier": 0.01339056715597536, + "calibration": { + "observed_rate": 0.013634592910011687, + "mean_prediction": 0.012722559037918017, + "calibration_in_the_large": -0.0009120338720936694, + "expected_calibration_error_10bin": 0.0012255175354178333, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9029194512838551 + }, + "M62": { + "valid": 2781, + "positives": 8, + "negatives": 2773, + "auroc": 0.7103317706455102, + "auprc": 0.026700532340668798, + "brier": 0.0028552807310987215, + "calibration": { + "observed_rate": 0.002876663070837828, + "mean_prediction": 0.0032524313456008566, + "calibration_in_the_large": 0.0003757682747630286, + "expected_calibration_error_10bin": 0.0003757682747630286, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + "M79": { + "valid": 2697, + "positives": 29, + "negatives": 2668, + "auroc": 0.7491469782350204, + "auprc": 0.030318355954789176, + "brier": 0.010575015938528918, + "calibration": { + "observed_rate": 0.010752688172043012, + "mean_prediction": 0.00879393614752336, + "calibration_in_the_large": -0.0019587520245196513, + "expected_calibration_error_10bin": 0.002126397137962184, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9486457966936335 + }, + "M81": { + "valid": 2705, + "positives": 11, + "negatives": 2694, + "auroc": 0.8365053654585949, + "auprc": 0.02305837939968931, + "brier": 0.004139503667726465, + "calibration": { + "observed_rate": 0.004066543438077634, + "mean_prediction": 0.005625589423747923, + "calibration_in_the_large": 0.0015590459856702895, + "expected_calibration_error_10bin": 0.0015590459856702887, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9514597256419275 + }, + "M84": { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.808460718094561, + "auprc": 0.026951387398209237, + "brier": 0.0017652125271827726, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.001695806760743712, + "calibration_in_the_large": -7.850125912853777e-05, + "expected_calibration_error_10bin": 0.00016556149434189153, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "M85": { + "valid": 2768, + "positives": 7, + "negatives": 2761, + "auroc": 0.6862937858953795, + "auprc": 0.0062102559602612755, + "brier": 0.0025237596667006764, + "calibration": { + "observed_rate": 0.0025289017341040463, + "mean_prediction": 0.0022504435989692292, + "calibration_in_the_large": -0.00027845813513481706, + "expected_calibration_error_10bin": 0.00027845813513481706, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "M86": { + "valid": 2803, + "positives": 14, + "negatives": 2789, + "auroc": 0.7658659017569022, + "auprc": 0.02514859543547489, + "brier": 0.004951188014604433, + "calibration": { + "observed_rate": 0.0049946485907955765, + "mean_prediction": 0.003539241828931782, + "calibration_in_the_large": -0.0014554067618637945, + "expected_calibration_error_10bin": 0.0016979655778338596, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9859303552585297 + }, + "M94": { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.5157433712121212, + "auprc": 0.002136667733887594, + "brier": 0.0010639890341332808, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.00025290421234249865, + "calibration_in_the_large": -0.0008113029533190835, + "expected_calibration_error_10bin": 0.0008113029533190835, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "M96": { + "valid": 2804, + "positives": 2, + "negatives": 2802, + "auroc": 0.8285153461812991, + "auprc": 0.0045010194788971895, + "brier": 0.0007139693545002619, + "calibration": { + "observed_rate": 0.0007132667617689016, + "mean_prediction": 0.0014682875174879865, + "calibration_in_the_large": 0.0007550207557190849, + "expected_calibration_error_10bin": 0.0007550207557190849, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "N12": { + "valid": 2831, + "positives": 7, + "negatives": 2824, + "auroc": 0.7235936867664913, + "auprc": 0.012610434605643832, + "brier": 0.0024699292162804294, + "calibration": { + "observed_rate": 0.002472624514305899, + "mean_prediction": 0.0012615431697735244, + "calibration_in_the_large": -0.0012110813445323748, + "expected_calibration_error_10bin": 0.0012864095040583494, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "N13": { + "valid": 2756, + "positives": 11, + "negatives": 2745, + "auroc": 0.6850803113098195, + "auprc": 0.011394952638103605, + "brier": 0.003991553207569766, + "calibration": { + "observed_rate": 0.0039912917271407835, + "mean_prediction": 0.004267806238810985, + "calibration_in_the_large": 0.0002765145116702013, + "expected_calibration_error_10bin": 0.0002765145116702015, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + "N14": { + "valid": 2826, + "positives": 7, + "negatives": 2819, + "auroc": 0.7728677849287995, + "auprc": 0.037215640654911016, + "brier": 0.0024442187885124894, + "calibration": { + "observed_rate": 0.0024769992922859165, + "mean_prediction": 0.0017923182331319718, + "calibration_in_the_large": -0.0006846810591539447, + "expected_calibration_error_10bin": 0.0006846810591539447, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "N17": { + "valid": 2292, + "positives": 77, + "negatives": 2215, + "auroc": 0.8161121045996893, + "auprc": 0.15588437666901067, + "brier": 0.03055029662585117, + "calibration": { + "observed_rate": 0.033595113438045374, + "mean_prediction": 0.03331666105886465, + "calibration_in_the_large": -0.00027845237918072696, + "expected_calibration_error_10bin": 0.004917796353762704, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8061906436862469 + }, + "N18": { + "valid": 2440, + "positives": 37, + "negatives": 2403, + "auroc": 0.8644037295722689, + "auprc": 0.17604010761538139, + "brier": 0.013708252487602997, + "calibration": { + "observed_rate": 0.015163934426229509, + "mean_prediction": 0.012447743908766273, + "calibration_in_the_large": -0.0027161905174632357, + "expected_calibration_error_10bin": 0.0031817460370616646, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.858248329229687 + }, + "N20": { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.6903591851322373, + "auprc": 0.005564107356417384, + "brier": 0.00284648216172784, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.0008834459144481112, + "calibration_in_the_large": -0.00196758758519551, + "expected_calibration_error_10bin": 0.00196758758519551, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "N25": { + "valid": 2831, + "positives": 6, + "negatives": 2825, + "auroc": 0.9120353982300885, + "auprc": 0.057894081901231964, + "brier": 0.0020921741001890637, + "calibration": { + "observed_rate": 0.0021193924408336277, + "mean_prediction": 0.0009625909962874415, + "calibration_in_the_large": -0.0011568014445461862, + "expected_calibration_error_10bin": 0.0013056361269077044, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "N28": { + "valid": 2789, + "positives": 5, + "negatives": 2784, + "auroc": 0.7857040229885057, + "auprc": 0.008910544577401633, + "brier": 0.0017897275792353442, + "calibration": { + "observed_rate": 0.0017927572606669057, + "mean_prediction": 0.0027790864669930515, + "calibration_in_the_large": 0.0009863292063261458, + "expected_calibration_error_10bin": 0.0009863292063261458, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "N30": { + "valid": 2829, + "positives": 9, + "negatives": 2820, + "auroc": 0.6834909377462569, + "auprc": 0.008629528180448895, + "brier": 0.003173376087954391, + "calibration": { + "observed_rate": 0.003181336161187699, + "mean_prediction": 0.002246946507733641, + "calibration_in_the_large": -0.0009343896534540581, + "expected_calibration_error_10bin": 0.0009343896534540581, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "N32": { + "valid": 2807, + "positives": 10, + "negatives": 2797, + "auroc": 0.8575616732213085, + "auprc": 0.02615335829635248, + "brier": 0.0035254331557199076, + "calibration": { + "observed_rate": 0.003562522265764161, + "mean_prediction": 0.0030832001164385176, + "calibration_in_the_large": -0.00047932214932564334, + "expected_calibration_error_10bin": 0.00047932214932564334, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "N39": { + "valid": 2520, + "positives": 71, + "negatives": 2449, + "auroc": 0.7789037204032689, + "auprc": 0.09654051697428281, + "brier": 0.02659763311529988, + "calibration": { + "observed_rate": 0.028174603174603175, + "mean_prediction": 0.024802425597140212, + "calibration_in_the_large": -0.0033721775774629634, + "expected_calibration_error_10bin": 0.0033721775774629647, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8863876187126275 + }, + "N40": { + "valid": 2606, + "positives": 16, + "negatives": 2590, + "auroc": 0.7638513513513514, + "auprc": 0.02858562649405654, + "brier": 0.006065579436244132, + "calibration": { + "observed_rate": 0.0061396776669224865, + "mean_prediction": 0.0057413069194083965, + "calibration_in_the_large": -0.00039837074751409, + "expected_calibration_error_10bin": 0.0005862206236225752, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9166373549067885 + }, + "N73": { + "valid": 2829, + "positives": 3, + "negatives": 2826, + "auroc": 0.9631988676574664, + "auprc": 0.03243022550802871, + "brier": 0.0010518369021969875, + "calibration": { + "observed_rate": 0.0010604453870625664, + "mean_prediction": 0.0007845489956711931, + "calibration_in_the_large": -0.0002758963913913733, + "expected_calibration_error_10bin": 0.0002758963913913733, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "N99": { + "valid": 2799, + "positives": 5, + "negatives": 2794, + "auroc": 0.7593414459556191, + "auprc": 0.005271161135011556, + "brier": 0.0017906284368900101, + "calibration": { + "observed_rate": 0.0017863522686673813, + "mean_prediction": 0.0020368009182757008, + "calibration_in_the_large": 0.0002504486496083195, + "expected_calibration_error_10bin": 0.0002504486496083195, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9845233907843827 + }, + "O69": { + "valid": 2743, + "positives": 6, + "negatives": 2737, + "auroc": 0.9968335160151017, + "auprc": 0.36781410597200076, + "brier": 0.0015839242184032386, + "calibration": { + "observed_rate": 0.002187386073641998, + "mean_prediction": 0.002365289535803876, + "calibration_in_the_large": 0.0001779034621618783, + "expected_calibration_error_10bin": 0.002067612911958454, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + "O99": { + "valid": 2652, + "positives": 1, + "negatives": 2651, + "auroc": 1.0, + "auprc": 1.0, + "brier": 0.0006782576950019268, + "calibration": { + "observed_rate": 0.0003770739064856712, + "mean_prediction": 0.002816014976635534, + "calibration_in_the_large": 0.002438941070149863, + "expected_calibration_error_10bin": 0.0024389410701498625, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9328174463594794 + }, + "Q21": { + "valid": 2810, + "positives": 3, + "negatives": 2807, + "auroc": 0.5527847049044057, + "auprc": 0.0019813439117743674, + "brier": 0.0010687574292341125, + "calibration": { + "observed_rate": 0.0010676156583629894, + "mean_prediction": 0.0014054092707071416, + "calibration_in_the_large": 0.00033779361234415224, + "expected_calibration_error_10bin": 0.00033779361234415224, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + "U07": { + "valid": 2828, + "positives": 0, + "negatives": 2828, + "auroc": null, + "auprc": null, + "brier": 4.518418140477595e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0032727640027639224, + "calibration_in_the_large": 0.0032727640027639224, + "expected_calibration_error_10bin": 0.0032727640027639224, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9947238832219486 + } + }, + "240": { + "A04": { + "valid": 2782, + "positives": 23, + "negatives": 2759, + "auroc": 0.7878090675575586, + "auprc": 0.07073677450045007, + "brier": 0.008203011578673593, + "calibration": { + "observed_rate": 0.00826743350107836, + "mean_prediction": 0.009133781846830604, + "calibration_in_the_large": 0.000866348345752244, + "expected_calibration_error_10bin": 0.0009104577968459928, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + "A08": { + "valid": 2818, + "positives": 11, + "negatives": 2807, + "auroc": 0.7921430190756874, + "auprc": 0.01464959279497351, + "brier": 0.003895250566792971, + "calibration": { + "observed_rate": 0.0039034776437189495, + "mean_prediction": 0.0029592850332409546, + "calibration_in_the_large": -0.0009441926104779949, + "expected_calibration_error_10bin": 0.0009441926104779949, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "A41": { + "valid": 2664, + "positives": 57, + "negatives": 2607, + "auroc": 0.7435245190075304, + "auprc": 0.0545418163385935, + "brier": 0.021273262436341117, + "calibration": { + "observed_rate": 0.021396396396396396, + "mean_prediction": 0.020166586117752572, + "calibration_in_the_large": -0.0012298102786438246, + "expected_calibration_error_10bin": 0.007390150905723076, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9370383397819205 + }, + "B00": { + "valid": 2819, + "positives": 4, + "negatives": 2815, + "auroc": 0.7741563055062167, + "auprc": 0.04099529812017065, + "brier": 0.0014068844591669165, + "calibration": { + "observed_rate": 0.001418942887548776, + "mean_prediction": 0.001154918459318933, + "calibration_in_the_large": -0.00026402442822984315, + "expected_calibration_error_10bin": 0.00026402442822984315, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "B02": { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.9568447117085249, + "auprc": 0.008130081300813009, + "brier": 0.0003581527590434211, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0010779761385253475, + "calibration_in_the_large": 0.0007243693492749938, + "expected_calibration_error_10bin": 0.0007243693492749938, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "B18": { + "valid": 2782, + "positives": 5, + "negatives": 2777, + "auroc": 0.964277997839395, + "auprc": 0.033753440135463345, + "brier": 0.00182758690562107, + "calibration": { + "observed_rate": 0.0017972681524083393, + "mean_prediction": 0.0011986859100180513, + "calibration_in_the_large": -0.000598582242390288, + "expected_calibration_error_10bin": 0.0010006644420669881, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + "B19": { + "valid": 2763, + "positives": 17, + "negatives": 2746, + "auroc": 0.9081658883509703, + "auprc": 0.10838524823451501, + "brier": 0.00591844561787057, + "calibration": { + "observed_rate": 0.006152732537097358, + "mean_prediction": 0.002300923908856467, + "calibration_in_the_large": -0.003851808628240891, + "expected_calibration_error_10bin": 0.003902269202145569, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + "B20": { + "valid": 2829, + "positives": 5, + "negatives": 2824, + "auroc": 0.9802407932011331, + "auprc": 0.07380425663329644, + "brier": 0.001744693429321952, + "calibration": { + "observed_rate": 0.0017674089784376105, + "mean_prediction": 0.0008378147901254582, + "calibration_in_the_large": -0.0009295941883121523, + "expected_calibration_error_10bin": 0.0012119726414400998, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "B34": { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.9549186128803964, + "auprc": 0.08714285714285715, + "brier": 0.0017361111124953347, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.0009012444302341224, + "calibration_in_the_large": -0.000864915937127234, + "expected_calibration_error_10bin": 0.000864915937127234, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "B35": { + "valid": 2836, + "positives": 1, + "negatives": 2835, + "auroc": 0.5220458553791887, + "auprc": 0.0007374631268436578, + "brier": 0.00035539818930676903, + "calibration": { + "observed_rate": 0.0003526093088857546, + "mean_prediction": 0.0010063712450712344, + "calibration_in_the_large": 0.0006537619361854798, + "expected_calibration_error_10bin": 0.0006537619361854798, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "B37": { + "valid": 2768, + "positives": 31, + "negatives": 2737, + "auroc": 0.7740285454995462, + "auprc": 0.045811871042670316, + "brier": 0.010979783063675867, + "calibration": { + "observed_rate": 0.011199421965317919, + "mean_prediction": 0.006251784777362976, + "calibration_in_the_large": -0.004947637187954943, + "expected_calibration_error_10bin": 0.004947637187954944, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "B95": { + "valid": 2678, + "positives": 54, + "negatives": 2624, + "auroc": 0.7391175474254743, + "auprc": 0.04837673805482002, + "brier": 0.019613138274322352, + "calibration": { + "observed_rate": 0.020164301717699777, + "mean_prediction": 0.014964241242379035, + "calibration_in_the_large": -0.005200060475320742, + "expected_calibration_error_10bin": 0.005575593891976555, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9419627154414351 + }, + "B96": { + "valid": 2630, + "positives": 72, + "negatives": 2558, + "auroc": 0.7649639475284511, + "auprc": 0.084063695010694, + "brier": 0.026008924496827852, + "calibration": { + "observed_rate": 0.02737642585551331, + "mean_prediction": 0.017831448527035734, + "calibration_in_the_large": -0.009544977328477575, + "expected_calibration_error_10bin": 0.009714300106994419, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9250791417516707 + }, + "B97": { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.7448690728945506, + "auprc": 0.03641309773385245, + "brier": 0.000728123729827887, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.0010484347216969977, + "calibration_in_the_large": 0.0003412211431962905, + "expected_calibration_error_10bin": 0.0003412211431962904, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "C18": { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.9750177179305457, + "auprc": 0.020244914082559747, + "brier": 0.0007047397130740024, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0007290566968789215, + "calibration_in_the_large": 2.084139942849653e-05, + "expected_calibration_error_10bin": 2.084139942849653e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "C22": { + "valid": 2812, + "positives": 6, + "negatives": 2806, + "auroc": 0.9183891660727014, + "auprc": 0.026056830257350977, + "brier": 0.002148139119732953, + "calibration": { + "observed_rate": 0.0021337126600284497, + "mean_prediction": 0.0006176509264438866, + "calibration_in_the_large": -0.001516061733584563, + "expected_calibration_error_10bin": 0.0017687294844881498, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9890960253253606 + }, + "C25": { + "valid": 2809, + "positives": 2, + "negatives": 2807, + "auroc": 0.9697185607410046, + "auprc": 0.10595238095238096, + "brier": 0.0007002523244977887, + "calibration": { + "observed_rate": 0.000711997152011392, + "mean_prediction": 0.001092711774788313, + "calibration_in_the_large": 0.00038071462277692106, + "expected_calibration_error_10bin": 0.0005711258619073017, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "C61": { + "valid": 2805, + "positives": 2, + "negatives": 2803, + "auroc": 0.9955404923296468, + "auprc": 0.12878787878787878, + "brier": 0.0006973612555437975, + "calibration": { + "observed_rate": 0.00071301247771836, + "mean_prediction": 0.0011254964127840978, + "calibration_in_the_large": 0.0004124839350657378, + "expected_calibration_error_10bin": 0.0004124839350657378, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "C67": { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9718783162362928, + "auprc": 0.018362533692722373, + "brier": 0.0007043172446383684, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0004934605028577418, + "calibration_in_the_large": -0.0002135030885173024, + "expected_calibration_error_10bin": 0.0002135030885173024, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "C77": { + "valid": 2762, + "positives": 20, + "negatives": 2742, + "auroc": 0.8813092633114515, + "auprc": 0.1102016292358475, + "brier": 0.006880987006164259, + "calibration": { + "observed_rate": 0.00724112961622013, + "mean_prediction": 0.005650395727223138, + "calibration_in_the_large": -0.001590733888996992, + "expected_calibration_error_10bin": 0.0019967367859218777, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + "C78": { + "valid": 2762, + "positives": 25, + "negatives": 2737, + "auroc": 0.8735549872122762, + "auprc": 0.14433846846511858, + "brier": 0.008511168193627457, + "calibration": { + "observed_rate": 0.009051412020275163, + "mean_prediction": 0.00612946529512441, + "calibration_in_the_large": -0.0029219467251507536, + "expected_calibration_error_10bin": 0.005547103833585394, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + "C79": { + "valid": 2751, + "positives": 20, + "negatives": 2731, + "auroc": 0.895221530574881, + "auprc": 0.09584514085762598, + "brier": 0.007045742675556305, + "calibration": { + "observed_rate": 0.007270083605961469, + "mean_prediction": 0.006742011035931897, + "calibration_in_the_large": -0.0005280725700295714, + "expected_calibration_error_10bin": 0.002813917614207913, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "C83": { + "valid": 2820, + "positives": 0, + "negatives": 2820, + "auroc": null, + "auprc": null, + "brier": 3.5394312927712084e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0005768740997900379, + "calibration_in_the_large": 0.0005768740997900379, + "expected_calibration_error_10bin": 0.0005768740997900379, + "nonempty_bins": 3 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9919099542736546 + }, + "D25": { + "valid": 2792, + "positives": 3, + "negatives": 2789, + "auroc": 0.9958168997251106, + "auprc": 0.6929824561403509, + "brier": 0.0010200986384673251, + "calibration": { + "observed_rate": 0.0010744985673352436, + "mean_prediction": 0.0006349265410577354, + "calibration_in_the_large": -0.0004395720262775082, + "expected_calibration_error_10bin": 0.0004395720262775082, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + "D47": { + "valid": 2796, + "positives": 9, + "negatives": 2787, + "auroc": 0.6574173743172667, + "auprc": 0.006187233968181836, + "brier": 0.0032239531802294168, + "calibration": { + "observed_rate": 0.003218884120171674, + "mean_prediction": 0.0026680579445039544, + "calibration_in_the_large": -0.0005508261756677194, + "expected_calibration_error_10bin": 0.0006324586325205329, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + "D50": { + "valid": 2663, + "positives": 46, + "negatives": 2617, + "auroc": 0.8001943812197837, + "auprc": 0.11460323888385526, + "brier": 0.01638735170691456, + "calibration": { + "observed_rate": 0.017273751408186256, + "mean_prediction": 0.011665042813198828, + "calibration_in_the_large": -0.005608708594987428, + "expected_calibration_error_10bin": 0.005759514176915042, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9366865986633838 + }, + "D53": { + "valid": 2805, + "positives": 14, + "negatives": 2791, + "auroc": 0.8455494702359625, + "auprc": 0.04658420213800186, + "brier": 0.004886137965100967, + "calibration": { + "observed_rate": 0.004991087344028521, + "mean_prediction": 0.004428552168755233, + "calibration_in_the_large": -0.0005625351752732875, + "expected_calibration_error_10bin": 0.0009104212172222142, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "D59": { + "valid": 2836, + "positives": 1, + "negatives": 2835, + "auroc": 0.9887125220458554, + "auprc": 0.030303030303030304, + "brier": 0.00035165524856010087, + "calibration": { + "observed_rate": 0.0003526093088857546, + "mean_prediction": 0.0007994693451374499, + "calibration_in_the_large": 0.0004468600362516953, + "expected_calibration_error_10bin": 0.0004468600362516953, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "D61": { + "valid": 2773, + "positives": 32, + "negatives": 2741, + "auroc": 0.9099097044874134, + "auprc": 0.23426645489898182, + "brier": 0.010022555678450076, + "calibration": { + "observed_rate": 0.01153984853948792, + "mean_prediction": 0.00988132303728344, + "calibration_in_the_large": -0.0016585255022044804, + "expected_calibration_error_10bin": 0.0026880848820785706, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + "D62": { + "valid": 2499, + "positives": 60, + "negatives": 2439, + "auroc": 0.8045578789121225, + "auprc": 0.10946207373936562, + "brier": 0.02276296834191756, + "calibration": { + "observed_rate": 0.024009603841536616, + "mean_prediction": 0.014493751832993612, + "calibration_in_the_large": -0.009515852008543003, + "expected_calibration_error_10bin": 0.009515852008543003, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8790010552233556 + }, + "D63": { + "valid": 2686, + "positives": 68, + "negatives": 2618, + "auroc": 0.8514919336718645, + "auprc": 0.11790864667922388, + "brier": 0.023971092709793643, + "calibration": { + "observed_rate": 0.02531645569620253, + "mean_prediction": 0.019508881651576843, + "calibration_in_the_large": -0.005807574044625688, + "expected_calibration_error_10bin": 0.012315083000626996, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9447766443897292 + }, + "D64": { + "valid": 2434, + "positives": 103, + "negatives": 2331, + "auroc": 0.7979033124664192, + "auprc": 0.16392178041998168, + "brier": 0.03795462818336722, + "calibration": { + "observed_rate": 0.042317173377156944, + "mean_prediction": 0.034425470454439645, + "calibration_in_the_large": -0.007891702922717299, + "expected_calibration_error_10bin": 0.009192385391805525, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8561378825184665 + }, + "D65": { + "valid": 2833, + "positives": 3, + "negatives": 2830, + "auroc": 0.9292108362779741, + "auprc": 0.011765817693466575, + "brier": 0.0010581657956292095, + "calibration": { + "observed_rate": 0.0010589481115425344, + "mean_prediction": 0.0006155768020249541, + "calibration_in_the_large": -0.0004433713095175803, + "expected_calibration_error_10bin": 0.0004433713095175803, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9964825888146325 + }, + "D68": { + "valid": 2682, + "positives": 51, + "negatives": 2631, + "auroc": 0.81415401584427, + "auprc": 0.09737806313490241, + "brier": 0.018215421931361053, + "calibration": { + "observed_rate": 0.01901565995525727, + "mean_prediction": 0.007533599824999384, + "calibration_in_the_large": -0.011482060130257887, + "expected_calibration_error_10bin": 0.012330687444062727, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9433696799155822 + }, + "D69": { + "valid": 2586, + "positives": 71, + "negatives": 2515, + "auroc": 0.8485369473301039, + "auprc": 0.2779937006693698, + "brier": 0.023239679860692447, + "calibration": { + "observed_rate": 0.02745552977571539, + "mean_prediction": 0.01624819576352304, + "calibration_in_the_large": -0.01120733401219235, + "expected_calibration_error_10bin": 0.01120733401219235, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9096025325360535 + }, + "D70": { + "valid": 2787, + "positives": 26, + "negatives": 2761, + "auroc": 0.8836681247039813, + "auprc": 0.18313220939805872, + "brier": 0.008512666283822499, + "calibration": { + "observed_rate": 0.009329027628274129, + "mean_prediction": 0.007951804657280223, + "calibration_in_the_large": -0.001377222970993906, + "expected_calibration_error_10bin": 0.004581712306983747, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "D72": { + "valid": 2595, + "positives": 54, + "negatives": 2541, + "auroc": 0.7238036935006632, + "auprc": 0.05803036074723318, + "brier": 0.020117718793613716, + "calibration": { + "observed_rate": 0.020809248554913295, + "mean_prediction": 0.02484918978524633, + "calibration_in_the_large": 0.004039941230333036, + "expected_calibration_error_10bin": 0.005297498894866149, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9127682026028843 + }, + "D73": { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.8832565284178188, + "auprc": 0.11668897113662184, + "brier": 0.001047162571391129, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.000668209651410883, + "calibration_in_the_large": -0.00039411329476475446, + "expected_calibration_error_10bin": 0.00039411329476475446, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "D75": { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.935178634594977, + "auprc": 0.01337427248432331, + "brier": 0.0014071352985734142, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0011120180061882983, + "calibration_in_the_large": -0.00030091028770078674, + "expected_calibration_error_10bin": 0.00030091028770078674, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "D80": { + "valid": 2832, + "positives": 6, + "negatives": 2826, + "auroc": 0.9820712432177401, + "auprc": 0.07764626175673521, + "brier": 0.002097997526007269, + "calibration": { + "observed_rate": 0.00211864406779661, + "mean_prediction": 0.0006097919074085148, + "calibration_in_the_large": -0.0015088521603880954, + "expected_calibration_error_10bin": 0.0016277524823593206, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + "D89": { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.6855379188712521, + "auprc": 0.007527875016206404, + "brier": 0.0008365919264932247, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0007801252535172724, + "calibration_in_the_large": 7.515521474392027e-05, + "expected_calibration_error_10bin": 0.0004985318121576476, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + "E03": { + "valid": 2480, + "positives": 21, + "negatives": 2459, + "auroc": 0.7227289451770949, + "auprc": 0.0639081826558413, + "brier": 0.008330070459468262, + "calibration": { + "observed_rate": 0.008467741935483872, + "mean_prediction": 0.004072240513127209, + "calibration_in_the_large": -0.004395501422356663, + "expected_calibration_error_10bin": 0.004395501422356663, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8723179739711572 + }, + "E04": { + "valid": 2775, + "positives": 9, + "negatives": 2766, + "auroc": 0.7756889210251466, + "auprc": 0.011900932724314498, + "brier": 0.003225013029674926, + "calibration": { + "observed_rate": 0.003243243243243243, + "mean_prediction": 0.002544893667312666, + "calibration_in_the_large": -0.0006983495759305771, + "expected_calibration_error_10bin": 0.0006983495759305771, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + "E05": { + "valid": 2806, + "positives": 3, + "negatives": 2803, + "auroc": 0.5580925199191342, + "auprc": 0.0016203675834883522, + "brier": 0.0010688106204561724, + "calibration": { + "observed_rate": 0.0010691375623663579, + "mean_prediction": 0.0007340440004571548, + "calibration_in_the_large": -0.00033509356190920304, + "expected_calibration_error_10bin": 0.00033509356190920304, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "E11": { + "valid": 2194, + "positives": 19, + "negatives": 2175, + "auroc": 0.810453720508167, + "auprc": 0.025811537546487247, + "brier": 0.008574210984635436, + "calibration": { + "observed_rate": 0.008659981768459436, + "mean_prediction": 0.004391631316136468, + "calibration_in_the_large": -0.004268350452322968, + "expected_calibration_error_10bin": 0.004563029173733496, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7717200140696447 + }, + "E16": { + "valid": 2816, + "positives": 7, + "negatives": 2809, + "auroc": 0.6514265371509943, + "auprc": 0.006493093143195142, + "brier": 0.002487682232101392, + "calibration": { + "observed_rate": 0.0024857954545454545, + "mean_prediction": 0.002011026181705879, + "calibration_in_the_large": -0.00047476927283957547, + "expected_calibration_error_10bin": 0.00047476927283957547, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "E21": { + "valid": 2814, + "positives": 2, + "negatives": 2812, + "auroc": 0.8778449502133713, + "auprc": 0.01066571224051539, + "brier": 0.0007120229849101565, + "calibration": { + "observed_rate": 0.0007107320540156361, + "mean_prediction": 0.0010355158088767886, + "calibration_in_the_large": 0.00032478375486115246, + "expected_calibration_error_10bin": 0.00032478375486115246, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "E22": { + "valid": 2802, + "positives": 9, + "negatives": 2793, + "auroc": 0.8098420654811632, + "auprc": 0.027723740123772957, + "brier": 0.0031881281529859205, + "calibration": { + "observed_rate": 0.0032119914346895075, + "mean_prediction": 0.003699850295663112, + "calibration_in_the_large": 0.00048785886097360434, + "expected_calibration_error_10bin": 0.00048785886097360413, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "E27": { + "valid": 2811, + "positives": 6, + "negatives": 2805, + "auroc": 0.7546048722519311, + "auprc": 0.00501951252407276, + "brier": 0.0021327748819712886, + "calibration": { + "observed_rate": 0.0021344717182497333, + "mean_prediction": 0.0010845438023622635, + "calibration_in_the_large": -0.0010499279158874698, + "expected_calibration_error_10bin": 0.0010499279158874698, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9887442842068238 + }, + "E43": { + "valid": 2748, + "positives": 34, + "negatives": 2714, + "auroc": 0.8334128050630717, + "auprc": 0.055383129727508876, + "brier": 0.012075141702069978, + "calibration": { + "observed_rate": 0.012372634643377001, + "mean_prediction": 0.011878673606059018, + "calibration_in_the_large": -0.0004939610373179831, + "expected_calibration_error_10bin": 0.0035239105015363956, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9665845937390081 + }, + "E44": { + "valid": 2800, + "positives": 19, + "negatives": 2781, + "auroc": 0.7766611782963342, + "auprc": 0.03579372332007466, + "brier": 0.006673528330963585, + "calibration": { + "observed_rate": 0.0067857142857142855, + "mean_prediction": 0.004561682112720454, + "calibration_in_the_large": -0.002224032172993832, + "expected_calibration_error_10bin": 0.0024303097935733475, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + "E46": { + "valid": 2772, + "positives": 33, + "negatives": 2739, + "auroc": 0.8290130217841061, + "auprc": 0.12411776198775877, + "brier": 0.011302627515248945, + "calibration": { + "observed_rate": 0.011904761904761904, + "mean_prediction": 0.007638790380759565, + "calibration_in_the_large": -0.004265971524002339, + "expected_calibration_error_10bin": 0.00426597152400234, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9750263805838902 + }, + "E53": { + "valid": 2804, + "positives": 6, + "negatives": 2798, + "auroc": 0.5831546342625685, + "auprc": 0.0035736187357399787, + "brier": 0.002142357091552768, + "calibration": { + "observed_rate": 0.0021398002853067048, + "mean_prediction": 0.0015590180685129077, + "calibration_in_the_large": -0.0005807822167937971, + "expected_calibration_error_10bin": 0.0005807822167937971, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "E55": { + "valid": 2737, + "positives": 25, + "negatives": 2712, + "auroc": 0.6053244837758112, + "auprc": 0.01618196222396265, + "brier": 0.00907562922153872, + "calibration": { + "observed_rate": 0.009134088417975887, + "mean_prediction": 0.005466115019766693, + "calibration_in_the_large": -0.0036679733982091936, + "expected_calibration_error_10bin": 0.0037421400707360023, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9627154414351038 + }, + "E66": { + "valid": 2371, + "positives": 34, + "negatives": 2337, + "auroc": 0.8016939766920889, + "auprc": 0.06932205457667825, + "brier": 0.013849346581889882, + "calibration": { + "observed_rate": 0.01433994095318431, + "mean_prediction": 0.009778326199507244, + "calibration_in_the_large": -0.0045616147536770655, + "expected_calibration_error_10bin": 0.005196239861544027, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8339781920506507 + }, + "E78": { + "valid": 1572, + "positives": 38, + "negatives": 1534, + "auroc": 0.7177314211212517, + "auprc": 0.10897416460450329, + "brier": 0.023215848574323884, + "calibration": { + "observed_rate": 0.024173027989821884, + "mean_prediction": 0.024293029590759546, + "calibration_in_the_large": 0.00012000160093766227, + "expected_calibration_error_10bin": 0.0060410347528197, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5529370383397819 + }, + "E80": { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.9071707490237841, + "auprc": 0.015918284722442597, + "brier": 0.002120953194547045, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0012070343166550891, + "calibration_in_the_large": -0.0009183641955659522, + "expected_calibration_error_10bin": 0.0009183641955659522, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "E83": { + "valid": 2653, + "positives": 70, + "negatives": 2583, + "auroc": 0.8177700348432055, + "auprc": 0.16145327539915041, + "brier": 0.024053765841463185, + "calibration": { + "observed_rate": 0.026385224274406333, + "mean_prediction": 0.015637390506479262, + "calibration_in_the_large": -0.010747833767927071, + "expected_calibration_error_10bin": 0.011295994432700802, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9331691874780161 + }, + "E86": { + "valid": 2587, + "positives": 82, + "negatives": 2505, + "auroc": 0.791928338445061, + "auprc": 0.10250938971746323, + "brier": 0.029558195368181307, + "calibration": { + "observed_rate": 0.031696946269810594, + "mean_prediction": 0.028648886830627142, + "calibration_in_the_large": -0.0030480594391834523, + "expected_calibration_error_10bin": 0.004908664206453825, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9099542736545903 + }, + "E87": { + "valid": 2185, + "positives": 129, + "negatives": 2056, + "auroc": 0.7866369559315899, + "auprc": 0.18880215267005618, + "brier": 0.05206878269177603, + "calibration": { + "observed_rate": 0.059038901601830666, + "mean_prediction": 0.04295094134179488, + "calibration_in_the_large": -0.01608796026003579, + "expected_calibration_error_10bin": 0.021168638698466857, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.768554344002814 + }, + "E88": { + "valid": 2817, + "positives": 11, + "negatives": 2806, + "auroc": 0.7726624765113718, + "auprc": 0.0916228568603543, + "brier": 0.0037684402037381002, + "calibration": { + "observed_rate": 0.0039048633297834577, + "mean_prediction": 0.0026332316842771868, + "calibration_in_the_large": -0.001271631645506271, + "expected_calibration_error_10bin": 0.001513796758450262, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "E89": { + "valid": 2780, + "positives": 5, + "negatives": 2775, + "auroc": 0.6371171171171172, + "auprc": 0.006453235830606248, + "brier": 0.0017944647347105146, + "calibration": { + "observed_rate": 0.0017985611510791368, + "mean_prediction": 0.0014989115942632629, + "calibration_in_the_large": -0.00029964955681587393, + "expected_calibration_error_10bin": 0.00029964955681587393, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + "F02": { + "valid": 2802, + "positives": 4, + "negatives": 2798, + "auroc": 0.8049499642601858, + "auprc": 0.01063262712592679, + "brier": 0.0014636768706715196, + "calibration": { + "observed_rate": 0.0014275517487508922, + "mean_prediction": 0.0023308237165522343, + "calibration_in_the_large": 0.0009032719678013421, + "expected_calibration_error_10bin": 0.0009032719678013422, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "F03": { + "valid": 2739, + "positives": 14, + "negatives": 2725, + "auroc": 0.887129750982962, + "auprc": 0.03692009718719762, + "brier": 0.005061611878108843, + "calibration": { + "observed_rate": 0.00511135450894487, + "mean_prediction": 0.005425274217115495, + "calibration_in_the_large": 0.00031391970817062475, + "expected_calibration_error_10bin": 0.000624358232328806, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + "F05": { + "valid": 2750, + "positives": 23, + "negatives": 2727, + "auroc": 0.7351445289456482, + "auprc": 0.016962377732274485, + "brier": 0.008357295178478512, + "calibration": { + "observed_rate": 0.008363636363636363, + "mean_prediction": 0.007532688657445016, + "calibration_in_the_large": -0.000830947706191347, + "expected_calibration_error_10bin": 0.0010669382196461308, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + "F06": { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.6019108280254777, + "auprc": 0.0013845703555599481, + "brier": 0.0007133816306249024, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.001529799585315557, + "calibration_in_the_large": 0.0008225860068148497, + "expected_calibration_error_10bin": 0.0008225860068148497, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "F10": { + "valid": 2560, + "positives": 15, + "negatives": 2545, + "auroc": 0.7600261951538966, + "auprc": 0.11905561573388494, + "brier": 0.0056331327334380125, + "calibration": { + "observed_rate": 0.005859375, + "mean_prediction": 0.0036180591841102226, + "calibration_in_the_large": -0.0022413158158897774, + "expected_calibration_error_10bin": 0.0022413158158897774, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + "F11": { + "valid": 2741, + "positives": 9, + "negatives": 2732, + "auroc": 0.8459411094843012, + "auprc": 0.03572177622125204, + "brier": 0.0032361726560708043, + "calibration": { + "observed_rate": 0.003283473184968989, + "mean_prediction": 0.002566627306208198, + "calibration_in_the_large": -0.0007168458787607914, + "expected_calibration_error_10bin": 0.0007904964907255636, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + "F12": { + "valid": 2777, + "positives": 12, + "negatives": 2765, + "auroc": 0.9108499095840868, + "auprc": 0.029022380381367827, + "brier": 0.004279544267513406, + "calibration": { + "observed_rate": 0.004321209938782859, + "mean_prediction": 0.001706683770458108, + "calibration_in_the_large": -0.002614526168324751, + "expected_calibration_error_10bin": 0.002614526168324751, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + "F14": { + "valid": 2787, + "positives": 9, + "negatives": 2778, + "auroc": 0.9242060635149189, + "auprc": 0.037101167944713805, + "brier": 0.003203519049088392, + "calibration": { + "observed_rate": 0.0032292787944025836, + "mean_prediction": 0.0014703432717140111, + "calibration_in_the_large": -0.0017589355226885724, + "expected_calibration_error_10bin": 0.0019274206853205594, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "F15": { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.9366347177848775, + "auprc": 0.0531173165979805, + "brier": 0.002090423901363413, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0009720525733864299, + "calibration_in_the_large": -0.0011533459388346115, + "expected_calibration_error_10bin": 0.0011533459388346115, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "F17": { + "valid": 2426, + "positives": 30, + "negatives": 2396, + "auroc": 0.8717445742904841, + "auprc": 0.07623203935556916, + "brier": 0.011956876483584993, + "calibration": { + "observed_rate": 0.01236603462489695, + "mean_prediction": 0.006284515570213551, + "calibration_in_the_large": -0.006081519054683399, + "expected_calibration_error_10bin": 0.006328177877648746, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8533239535701723 + }, + "F19": { + "valid": 2801, + "positives": 11, + "negatives": 2790, + "auroc": 0.9326816552623004, + "auprc": 0.19719810540902197, + "brier": 0.0036384893398207557, + "calibration": { + "observed_rate": 0.003927168868261335, + "mean_prediction": 0.0026215966897767985, + "calibration_in_the_large": -0.0013055721784845367, + "expected_calibration_error_10bin": 0.0014562027130096689, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "F20": { + "valid": 2808, + "positives": 3, + "negatives": 2805, + "auroc": 0.8163992869875223, + "auprc": 0.012758319014503207, + "brier": 0.001067073642955636, + "calibration": { + "observed_rate": 0.0010683760683760685, + "mean_prediction": 0.0011767766588751624, + "calibration_in_the_large": 0.00010840059049909388, + "expected_calibration_error_10bin": 0.00010840059049909388, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9876890608512136 + }, + "F22": { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.9219858156028369, + "auprc": 0.004524886877828055, + "brier": 0.00036910760112088064, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0016743335590774335, + "calibration_in_the_large": 0.0013198493336254661, + "expected_calibration_error_10bin": 0.0013198493336254661, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "F25": { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.8487215909090909, + "auprc": 0.00901474632316128, + "brier": 0.0010693315736651312, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0011842715843030896, + "calibration_in_the_large": 0.00012006441864150755, + "expected_calibration_error_10bin": 0.00012006441864150755, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "F29": { + "valid": 2806, + "positives": 7, + "negatives": 2799, + "auroc": 0.7930893686520696, + "auprc": 0.009328082272766394, + "brier": 0.0024906322730609072, + "calibration": { + "observed_rate": 0.0024946543121881683, + "mean_prediction": 0.0007162362603286456, + "calibration_in_the_large": -0.0017784180518595227, + "expected_calibration_error_10bin": 0.0017784180518595227, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "F31": { + "valid": 2724, + "positives": 8, + "negatives": 2716, + "auroc": 0.9195508100147275, + "auprc": 0.0342561168210072, + "brier": 0.0028867390286793455, + "calibration": { + "observed_rate": 0.002936857562408223, + "mean_prediction": 0.002615388335460241, + "calibration_in_the_large": -0.0003214692269479821, + "expected_calibration_error_10bin": 0.0003214692269479821, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9581428068941259 + }, + "F32": { + "valid": 2200, + "positives": 56, + "negatives": 2144, + "auroc": 0.6906733075692963, + "auprc": 0.058442208380564846, + "brier": 0.02467274615457255, + "calibration": { + "observed_rate": 0.025454545454545455, + "mean_prediction": 0.022409272912455806, + "calibration_in_the_large": -0.003045272542089649, + "expected_calibration_error_10bin": 0.006670441830118014, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7738304607808653 + }, + "F33": { + "valid": 2800, + "positives": 11, + "negatives": 2789, + "auroc": 0.8330780012386323, + "auprc": 0.020925113938296786, + "brier": 0.003946055171557285, + "calibration": { + "observed_rate": 0.003928571428571429, + "mean_prediction": 0.0038148442090277968, + "calibration_in_the_large": -0.00011372721954363207, + "expected_calibration_error_10bin": 0.0003783756261769408, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + "F39": { + "valid": 2801, + "positives": 10, + "negatives": 2791, + "auroc": 0.7719097097814404, + "auprc": 0.0253800571251792, + "brier": 0.003538653848204094, + "calibration": { + "observed_rate": 0.003570153516601214, + "mean_prediction": 0.0015500609558289087, + "calibration_in_the_large": -0.0020200925607723056, + "expected_calibration_error_10bin": 0.0020200925607723056, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "F41": { + "valid": 2247, + "positives": 74, + "negatives": 2173, + "auroc": 0.7353888633225955, + "auprc": 0.0908805482761876, + "brier": 0.031166748964437576, + "calibration": { + "observed_rate": 0.032932799287939477, + "mean_prediction": 0.028246665699428183, + "calibration_in_the_large": -0.004686133588511294, + "expected_calibration_error_10bin": 0.006723457165468613, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7903622933520928 + }, + "F43": { + "valid": 2734, + "positives": 18, + "negatives": 2716, + "auroc": 0.7888029782359679, + "auprc": 0.03060840304620248, + "brier": 0.006504003246221012, + "calibration": { + "observed_rate": 0.006583760058522311, + "mean_prediction": 0.00569603611714627, + "calibration_in_the_large": -0.0008877239413760413, + "expected_calibration_error_10bin": 0.0012799416836565766, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "F60": { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.9348738002132955, + "auprc": 0.05169320407182748, + "brier": 0.0017484362112178205, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.0025933071734136003, + "calibration_in_the_large": 0.0008189991535413506, + "expected_calibration_error_10bin": 0.0008189991535413508, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "F90": { + "valid": 2775, + "positives": 7, + "negatives": 2768, + "auroc": 0.9299132947976878, + "auprc": 0.04054290941653833, + "brier": 0.0024712853499023303, + "calibration": { + "observed_rate": 0.0025225225225225223, + "mean_prediction": 0.002422746996072657, + "calibration_in_the_large": -9.977552644986534e-05, + "expected_calibration_error_10bin": 9.977552644986534e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + "G25": { + "valid": 2774, + "positives": 6, + "negatives": 2768, + "auroc": 0.7416305394990366, + "auprc": 0.006304849733570848, + "brier": 0.0021622928773115807, + "calibration": { + "observed_rate": 0.0021629416005767843, + "mean_prediction": 0.002542118813350676, + "calibration_in_the_large": 0.0003791772127738919, + "expected_calibration_error_10bin": 0.0003791772127738919, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "G31": { + "valid": 2802, + "positives": 7, + "negatives": 2795, + "auroc": 0.876309736774853, + "auprc": 0.019703266284266226, + "brier": 0.0024850441277735552, + "calibration": { + "observed_rate": 0.0024982155603140615, + "mean_prediction": 0.002168979270232463, + "calibration_in_the_large": -0.0003292362900815986, + "expected_calibration_error_10bin": 0.0003292362900815986, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "G40": { + "valid": 2723, + "positives": 21, + "negatives": 2702, + "auroc": 0.7182334073525783, + "auprc": 0.04205806241204871, + "brier": 0.00761658104916341, + "calibration": { + "observed_rate": 0.007712082262210797, + "mean_prediction": 0.005494813961732123, + "calibration_in_the_large": -0.0022172683004786737, + "expected_calibration_error_10bin": 0.002653487903050204, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + "G43": { + "valid": 2725, + "positives": 15, + "negatives": 2710, + "auroc": 0.7659532595325953, + "auprc": 0.03567421727517575, + "brier": 0.005443428775234246, + "calibration": { + "observed_rate": 0.005504587155963303, + "mean_prediction": 0.002621809692814126, + "calibration_in_the_large": -0.002882777463149177, + "expected_calibration_error_10bin": 0.002882777463149177, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9584945480126627 + }, + "G44": { + "valid": 2805, + "positives": 5, + "negatives": 2800, + "auroc": 0.6656428571428571, + "auprc": 0.014747361002230869, + "brier": 0.001776273692289373, + "calibration": { + "observed_rate": 0.0017825311942959, + "mean_prediction": 0.0011154379945709837, + "calibration_in_the_large": -0.0006670931997249164, + "expected_calibration_error_10bin": 0.0006670931997249164, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "G47": { + "valid": 2315, + "positives": 78, + "negatives": 2237, + "auroc": 0.6917059248306454, + "auprc": 0.07331448759409469, + "brier": 0.03209990937821878, + "calibration": { + "observed_rate": 0.033693304535637146, + "mean_prediction": 0.027452526696013252, + "calibration_in_the_large": -0.006240777839623894, + "expected_calibration_error_10bin": 0.007451154408422269, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8142806894125924 + }, + "G51": { + "valid": 2834, + "positives": 0, + "negatives": 2834, + "auroc": null, + "auprc": null, + "brier": 3.456308239399674e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0004847006045887214, + "calibration_in_the_large": 0.0004847006045887214, + "expected_calibration_error_10bin": 0.0004847006045887214, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9968343299331692 + }, + "G62": { + "valid": 2751, + "positives": 32, + "negatives": 2719, + "auroc": 0.8159364656123574, + "auprc": 0.09324294785787854, + "brier": 0.011144274792611571, + "calibration": { + "observed_rate": 0.011632133769538349, + "mean_prediction": 0.006535183745119399, + "calibration_in_the_large": -0.00509695002441895, + "expected_calibration_error_10bin": 0.006190452460827684, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "G81": { + "valid": 2789, + "positives": 14, + "negatives": 2775, + "auroc": 0.7428571428571429, + "auprc": 0.04863350704655214, + "brier": 0.004946428656700678, + "calibration": { + "observed_rate": 0.005019720329867336, + "mean_prediction": 0.003062872094184256, + "calibration_in_the_large": -0.00195684823568308, + "expected_calibration_error_10bin": 0.0020422281065980733, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "G83": { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.6394895427153492, + "auprc": 0.0056296740082963795, + "brier": 0.0010627215207040777, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0011611586050539776, + "calibration_in_the_large": 9.883565887834015e-05, + "expected_calibration_error_10bin": 9.883565887834015e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "G89": { + "valid": 2537, + "positives": 57, + "negatives": 2480, + "auroc": 0.7882074136955292, + "auprc": 0.08625084628937009, + "brier": 0.02134696288620602, + "calibration": { + "observed_rate": 0.022467481277098935, + "mean_prediction": 0.015608979561996628, + "calibration_in_the_large": -0.006858501715102307, + "expected_calibration_error_10bin": 0.007088921477743394, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8923672177277524 + }, + "G90": { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 9.92792245932749e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0014697509724800203, + "calibration_in_the_large": 0.0014697509724800203, + "expected_calibration_error_10bin": 0.0014697509724800203, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "G92": { + "valid": 2733, + "positives": 38, + "negatives": 2695, + "auroc": 0.8076359730495069, + "auprc": 0.04772287918837189, + "brier": 0.013514036584801386, + "calibration": { + "observed_rate": 0.013904134650567142, + "mean_prediction": 0.011476899855822778, + "calibration_in_the_large": -0.0024272347947443644, + "expected_calibration_error_10bin": 0.002684544556761803, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + "G93": { + "valid": 2656, + "positives": 44, + "negatives": 2612, + "auroc": 0.8012233746345538, + "auprc": 0.058398343585266944, + "brier": 0.015961325246982277, + "calibration": { + "observed_rate": 0.016566265060240965, + "mean_prediction": 0.012416600009176484, + "calibration_in_the_large": -0.004149665051064481, + "expected_calibration_error_10bin": 0.004736402985788874, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9342244108336265 + }, + "G99": { + "valid": 2841, + "positives": 0, + "negatives": 2841, + "auroc": null, + "auprc": null, + "brier": 1.4984803620754141e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0004019708897669712, + "calibration_in_the_large": 0.0004019708897669712, + "expected_calibration_error_10bin": 0.0004019708897669712, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9992965177629265 + }, + "H10": { + "valid": 2832, + "positives": 5, + "negatives": 2827, + "auroc": 0.8278033250795896, + "auprc": 0.007406058457428704, + "brier": 0.0017609484851435387, + "calibration": { + "observed_rate": 0.0017655367231638418, + "mean_prediction": 0.0007766954717419658, + "calibration_in_the_large": -0.000988841251421876, + "expected_calibration_error_10bin": 0.000988841251421876, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + "H26": { + "valid": 2819, + "positives": 0, + "negatives": 2819, + "auroc": null, + "auprc": null, + "brier": 1.1976418573668936e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.001726148167421307, + "calibration_in_the_large": 0.001726148167421307, + "expected_calibration_error_10bin": 0.001726148167421307, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "H35": { + "valid": 2806, + "positives": 5, + "negatives": 2801, + "auroc": 0.6916815423063192, + "auprc": 0.004618962463312626, + "brier": 0.001780133291380698, + "calibration": { + "observed_rate": 0.001781895937277263, + "mean_prediction": 0.0011157255851942183, + "calibration_in_the_large": -0.0006661703520830448, + "expected_calibration_error_10bin": 0.0006661703520830448, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "H40": { + "valid": 2750, + "positives": 6, + "negatives": 2744, + "auroc": 0.780915937803693, + "auprc": 0.05381363327980812, + "brier": 0.0021603632233521373, + "calibration": { + "observed_rate": 0.002181818181818182, + "mean_prediction": 0.003488431840847294, + "calibration_in_the_large": 0.001306613659029112, + "expected_calibration_error_10bin": 0.001306613659029112, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + "H53": { + "valid": 2790, + "positives": 10, + "negatives": 2780, + "auroc": 0.5646762589928057, + "auprc": 0.011735963849741318, + "brier": 0.003578849315484232, + "calibration": { + "observed_rate": 0.0035842293906810036, + "mean_prediction": 0.004431260692481015, + "calibration_in_the_large": 0.000847031301800011, + "expected_calibration_error_10bin": 0.000847031301800011, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + "H54": { + "valid": 2809, + "positives": 2, + "negatives": 2807, + "auroc": 0.4410402565016031, + "auprc": 0.0009741888464013933, + "brier": 0.000715384629762529, + "calibration": { + "observed_rate": 0.000711997152011392, + "mean_prediction": 0.0010513521186612076, + "calibration_in_the_large": 0.0003393549666498156, + "expected_calibration_error_10bin": 0.0003393549666498156, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "H91": { + "valid": 2791, + "positives": 7, + "negatives": 2784, + "auroc": 0.8143986042692939, + "auprc": 0.019780311356996372, + "brier": 0.0024880340364846175, + "calibration": { + "observed_rate": 0.0025080616266571123, + "mean_prediction": 0.0018050512967458304, + "calibration_in_the_large": -0.0007030103299112819, + "expected_calibration_error_10bin": 0.0007030103299112819, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9817094618360886 + }, + "I07": { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.842799668678263, + "auprc": 0.012000711602070356, + "brier": 0.0021166798732851475, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0009967139821525147, + "calibration_in_the_large": -0.0011286845300685266, + "expected_calibration_error_10bin": 0.0011286845300685266, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "I08": { + "valid": 2767, + "positives": 12, + "negatives": 2755, + "auroc": 0.855535390199637, + "auprc": 0.024368036817446526, + "brier": 0.004339508716297554, + "calibration": { + "observed_rate": 0.0043368268883267076, + "mean_prediction": 0.004283348592812026, + "calibration_in_the_large": -5.3478295514681334e-05, + "expected_calibration_error_10bin": 0.0006853776371916805, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9732676749912065 + }, + "I10": { + "valid": 1498, + "positives": 36, + "negatives": 1462, + "auroc": 0.6832535339717283, + "auprc": 0.047968866199599475, + "brier": 0.023362973855725735, + "calibration": { + "observed_rate": 0.02403204272363151, + "mean_prediction": 0.020200564730486575, + "calibration_in_the_large": -0.003831477993144934, + "expected_calibration_error_10bin": 0.005720712245210075, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5269081955680619 + }, + "I11": { + "valid": 2676, + "positives": 43, + "negatives": 2633, + "auroc": 0.8363525556664517, + "auprc": 0.07178884114332446, + "brier": 0.015464484932413024, + "calibration": { + "observed_rate": 0.016068759342301942, + "mean_prediction": 0.012545986980108913, + "calibration_in_the_large": -0.0035227723621930294, + "expected_calibration_error_10bin": 0.005609526303853356, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9412592332043616 + }, + "I12": { + "valid": 2552, + "positives": 23, + "negatives": 2529, + "auroc": 0.8556397957604828, + "auprc": 0.09693706329821226, + "brier": 0.008658281830601442, + "calibration": { + "observed_rate": 0.009012539184952978, + "mean_prediction": 0.008791258918093934, + "calibration_in_the_large": -0.00022128026685904433, + "expected_calibration_error_10bin": 0.001919585676809566, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8976433345058037 + }, + "I13": { + "valid": 2727, + "positives": 24, + "negatives": 2703, + "auroc": 0.8955019114564065, + "auprc": 0.1426894908305858, + "brier": 0.008087783691915913, + "calibration": { + "observed_rate": 0.0088008800880088, + "mean_prediction": 0.010605704397218748, + "calibration_in_the_large": 0.0018048243092099476, + "expected_calibration_error_10bin": 0.00292046622072849, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9591980302497362 + }, + "I16": { + "valid": 2390, + "positives": 9, + "negatives": 2381, + "auroc": 0.8603294600774651, + "auprc": 0.019941465818258848, + "brier": 0.0037356647741110935, + "calibration": { + "observed_rate": 0.0037656903765690376, + "mean_prediction": 0.003049106647002906, + "calibration_in_the_large": -0.0007165837295661317, + "expected_calibration_error_10bin": 0.0007165837295661317, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8406612733028491 + }, + "I21": { + "valid": 2671, + "positives": 19, + "negatives": 2652, + "auroc": 0.8385131380487417, + "auprc": 0.029751578102820926, + "brier": 0.0070946801305959584, + "calibration": { + "observed_rate": 0.00711344065892924, + "mean_prediction": 0.011752622200611358, + "calibration_in_the_large": 0.0046391815416821185, + "expected_calibration_error_10bin": 0.0046391815416821185, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + "I24": { + "valid": 2809, + "positives": 7, + "negatives": 2802, + "auroc": 0.8624451922096462, + "auprc": 0.019335609384596407, + "brier": 0.0024709603972940986, + "calibration": { + "observed_rate": 0.002491990032039872, + "mean_prediction": 0.0024424571200359247, + "calibration_in_the_large": -4.9532912003947323e-05, + "expected_calibration_error_10bin": 4.9532912003947323e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "I25": { + "valid": 2243, + "positives": 39, + "negatives": 2204, + "auroc": 0.8501558937130625, + "auprc": 0.08805005835085519, + "brier": 0.01657516299471515, + "calibration": { + "observed_rate": 0.017387427552385197, + "mean_prediction": 0.01157240712265493, + "calibration_in_the_large": -0.005815020429730268, + "expected_calibration_error_10bin": 0.006810738648146339, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7889553288779458 + }, + "I26": { + "valid": 2760, + "positives": 17, + "negatives": 2743, + "auroc": 0.745148077459201, + "auprc": 0.14481488332163128, + "brier": 0.00584022490823276, + "calibration": { + "observed_rate": 0.006159420289855073, + "mean_prediction": 0.00819358592262174, + "calibration_in_the_large": 0.0020341656327666664, + "expected_calibration_error_10bin": 0.0030259702336084245, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9708054871614492 + }, + "I27": { + "valid": 2716, + "positives": 31, + "negatives": 2685, + "auroc": 0.8364269838409323, + "auprc": 0.0624496401867507, + "brier": 0.011102953038266167, + "calibration": { + "observed_rate": 0.011413843888070692, + "mean_prediction": 0.007522608329824682, + "calibration_in_the_large": -0.003891235558246009, + "expected_calibration_error_10bin": 0.004286213993936879, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + "I31": { + "valid": 2793, + "positives": 15, + "negatives": 2778, + "auroc": 0.7832973362131029, + "auprc": 0.01717347009407218, + "brier": 0.005335234941181661, + "calibration": { + "observed_rate": 0.0053705692803437165, + "mean_prediction": 0.003317866310632627, + "calibration_in_the_large": -0.0020527029697110896, + "expected_calibration_error_10bin": 0.0020527029697110896, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "I34": { + "valid": 2753, + "positives": 16, + "negatives": 2737, + "auroc": 0.7526032151991231, + "auprc": 0.01520573880916567, + "brier": 0.0059046363626322285, + "calibration": { + "observed_rate": 0.005811841627315656, + "mean_prediction": 0.006784065524740522, + "calibration_in_the_large": 0.0009722238974248657, + "expected_calibration_error_10bin": 0.0009722238974248661, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9683432993316918 + }, + "I35": { + "valid": 2723, + "positives": 6, + "negatives": 2717, + "auroc": 0.6730462519936204, + "auprc": 0.007267124618436867, + "brier": 0.002223208423398232, + "calibration": { + "observed_rate": 0.0022034520749173708, + "mean_prediction": 0.003126184258364078, + "calibration_in_the_large": 0.0009227321834467074, + "expected_calibration_error_10bin": 0.0009227321834467074, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + "I42": { + "valid": 2740, + "positives": 12, + "negatives": 2728, + "auroc": 0.917094330400782, + "auprc": 0.03597476890728627, + "brier": 0.004305512968840431, + "calibration": { + "observed_rate": 0.004379562043795621, + "mean_prediction": 0.003671407307350434, + "calibration_in_the_large": -0.0007081547364451869, + "expected_calibration_error_10bin": 0.0008701518184697814, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + "I44": { + "valid": 2722, + "positives": 18, + "negatives": 2704, + "auroc": 0.849913708086785, + "auprc": 0.04009003203569454, + "brier": 0.00647552264656242, + "calibration": { + "observed_rate": 0.006612784717119765, + "mean_prediction": 0.004863820742213312, + "calibration_in_the_large": -0.0017489639749064525, + "expected_calibration_error_10bin": 0.0017489639749064525, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9574393246570524 + }, + "I45": { + "valid": 2766, + "positives": 14, + "negatives": 2752, + "auroc": 0.7057464700996677, + "auprc": 0.009238517672968951, + "brier": 0.005048426960556322, + "calibration": { + "observed_rate": 0.005061460592913955, + "mean_prediction": 0.00462962078524515, + "calibration_in_the_large": -0.00043183980766880493, + "expected_calibration_error_10bin": 0.00043183980766880493, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9729159338726697 + }, + "I46": { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.7169611307420495, + "auprc": 0.0012468827930174563, + "brier": 0.00035466509911216085, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.0008458259498737603, + "calibration_in_the_large": 0.0004925938764014891, + "expected_calibration_error_10bin": 0.0004925938764014891, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "I47": { + "valid": 2716, + "positives": 13, + "negatives": 2703, + "auroc": 0.6473434076097783, + "auprc": 0.007613597038854354, + "brier": 0.004836733790667378, + "calibration": { + "observed_rate": 0.004786450662739323, + "mean_prediction": 0.0078300152277367, + "calibration_in_the_large": 0.0030435645649973773, + "expected_calibration_error_10bin": 0.0030435645649973773, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + "I48": { + "valid": 2385, + "positives": 23, + "negatives": 2362, + "auroc": 0.7653057467879101, + "auprc": 0.027574234218817897, + "brier": 0.009957572804202706, + "calibration": { + "observed_rate": 0.009643605870020965, + "mean_prediction": 0.01553714213618726, + "calibration_in_the_large": 0.005893536266166295, + "expected_calibration_error_10bin": 0.005893536266166295, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8389025677101654 + }, + "I49": { + "valid": 2734, + "positives": 15, + "negatives": 2719, + "auroc": 0.6755915164889053, + "auprc": 0.010130563603256813, + "brier": 0.00546671191479769, + "calibration": { + "observed_rate": 0.005486466715435259, + "mean_prediction": 0.004019300575211857, + "calibration_in_the_large": -0.0014671661402234021, + "expected_calibration_error_10bin": 0.0014671661402234021, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "I50": { + "valid": 2415, + "positives": 42, + "negatives": 2373, + "auroc": 0.8260791042080549, + "auprc": 0.07430024382640121, + "brier": 0.01696881823945502, + "calibration": { + "observed_rate": 0.017391304347826087, + "mean_prediction": 0.0169676322835261, + "calibration_in_the_large": -0.0004236720642999889, + "expected_calibration_error_10bin": 0.003427340491520523, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.849454801266268 + }, + "I51": { + "valid": 2807, + "positives": 7, + "negatives": 2800, + "auroc": 0.7911224489795918, + "auprc": 0.009660730559659682, + "brier": 0.0024852945947470644, + "calibration": { + "observed_rate": 0.0024937655860349127, + "mean_prediction": 0.0020571431566302817, + "calibration_in_the_large": -0.000436622429404631, + "expected_calibration_error_10bin": 0.000436622429404631, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "I61": { + "valid": 2802, + "positives": 8, + "negatives": 2794, + "auroc": 0.8327219040801718, + "auprc": 0.01470068702631876, + "brier": 0.00284070754817755, + "calibration": { + "observed_rate": 0.0028551034975017845, + "mean_prediction": 0.0015049209603387056, + "calibration_in_the_large": -0.001350182537163079, + "expected_calibration_error_10bin": 0.001350182537163079, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "I63": { + "valid": 2735, + "positives": 12, + "negatives": 2723, + "auroc": 0.7596401028277635, + "auprc": 0.015977139050191387, + "brier": 0.004364934680290231, + "calibration": { + "observed_rate": 0.0043875685557586835, + "mean_prediction": 0.004249861760231389, + "calibration_in_the_large": -0.00013770679552729467, + "expected_calibration_error_10bin": 0.00013770679552729467, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9620119591980303 + }, + "I65": { + "valid": 2774, + "positives": 5, + "negatives": 2769, + "auroc": 0.7145539906103286, + "auprc": 0.009200407185788649, + "brier": 0.0018280281023914545, + "calibration": { + "observed_rate": 0.001802451333813987, + "mean_prediction": 0.004440008881211248, + "calibration_in_the_large": 0.0026375575473972608, + "expected_calibration_error_10bin": 0.0026375575473972608, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "I67": { + "valid": 2773, + "positives": 3, + "negatives": 2770, + "auroc": 0.7684717208182912, + "auprc": 0.004600210630068339, + "brier": 0.0011159579578508343, + "calibration": { + "observed_rate": 0.0010818608005769925, + "mean_prediction": 0.0031348846749053045, + "calibration_in_the_large": 0.002053023874328312, + "expected_calibration_error_10bin": 0.002053023874328312, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + "I69": { + "valid": 2752, + "positives": 15, + "negatives": 2737, + "auroc": 0.7130921933990988, + "auprc": 0.019758521394878513, + "brier": 0.005446845209783887, + "calibration": { + "observed_rate": 0.005450581395348837, + "mean_prediction": 0.0051927490371280775, + "calibration_in_the_large": -0.00025783235822075985, + "expected_calibration_error_10bin": 0.0005177346269122246, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9679915582131551 + }, + "I70": { + "valid": 2771, + "positives": 10, + "negatives": 2761, + "auroc": 0.8161897863093083, + "auprc": 0.03558528362093672, + "brier": 0.0035587264727020207, + "calibration": { + "observed_rate": 0.003608805485384338, + "mean_prediction": 0.0034762001005454323, + "calibration_in_the_large": -0.00013260538483890558, + "expected_calibration_error_10bin": 0.0003856329096528021, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9746746394653535 + }, + "I71": { + "valid": 2769, + "positives": 4, + "negatives": 2765, + "auroc": 0.7141048824593128, + "auprc": 0.013228540768152042, + "brier": 0.0014489833038800874, + "calibration": { + "observed_rate": 0.001444564824846515, + "mean_prediction": 0.0030431430848020125, + "calibration_in_the_large": 0.0015985782599554975, + "expected_calibration_error_10bin": 0.0015985782599554975, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.97397115722828 + }, + "I72": { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.7132527264106211, + "auprc": 0.011470668306298214, + "brier": 0.002121089736632481, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.0015358960535832543, + "calibration_in_the_large": -0.0005932735702634455, + "expected_calibration_error_10bin": 0.0005932735702634455, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "I73": { + "valid": 2734, + "positives": 8, + "negatives": 2726, + "auroc": 0.8342809977989728, + "auprc": 0.04531885132761875, + "brier": 0.002910463221450774, + "calibration": { + "observed_rate": 0.002926115581565472, + "mean_prediction": 0.00505210829018239, + "calibration_in_the_large": 0.002125992708616918, + "expected_calibration_error_10bin": 0.0021259927086169183, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "I74": { + "valid": 2821, + "positives": 5, + "negatives": 2816, + "auroc": 0.7736505681818182, + "auprc": 0.01204747242191061, + "brier": 0.0017659110064907797, + "calibration": { + "observed_rate": 0.001772421127259837, + "mean_prediction": 0.0008854926171761545, + "calibration_in_the_large": -0.0008869285100836825, + "expected_calibration_error_10bin": 0.0008869285100836825, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "I77": { + "valid": 2785, + "positives": 6, + "negatives": 2779, + "auroc": 0.6495142137459518, + "auprc": 0.0062729130596951175, + "brier": 0.002155260898287018, + "calibration": { + "observed_rate": 0.0021543985637342907, + "mean_prediction": 0.002538989928802581, + "calibration_in_the_large": 0.00038459136506829037, + "expected_calibration_error_10bin": 0.00038459136506829037, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "I80": { + "valid": 2827, + "positives": 4, + "negatives": 2823, + "auroc": 0.9101133545873185, + "auprc": 0.056693870368389326, + "brier": 0.0013965711642296636, + "calibration": { + "observed_rate": 0.0014149274849663955, + "mean_prediction": 0.0009798149050909855, + "calibration_in_the_large": -0.00043511257987540993, + "expected_calibration_error_10bin": 0.00043511257987540993, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "I81": { + "valid": 2826, + "positives": 8, + "negatives": 2818, + "auroc": 0.8136976579134138, + "auprc": 0.026115238420287786, + "brier": 0.0028561805991029958, + "calibration": { + "observed_rate": 0.0028308563340410475, + "mean_prediction": 0.00165678260875677, + "calibration_in_the_large": -0.0011740737252842776, + "expected_calibration_error_10bin": 0.0018641753322836798, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "I82": { + "valid": 2739, + "positives": 28, + "negatives": 2711, + "auroc": 0.7659271750013174, + "auprc": 0.0420456855355329, + "brier": 0.00998937308990783, + "calibration": { + "observed_rate": 0.01022270901788974, + "mean_prediction": 0.00798762879652067, + "calibration_in_the_large": -0.0022350802213690693, + "expected_calibration_error_10bin": 0.0028011184071384085, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + "I85": { + "valid": 2793, + "positives": 9, + "negatives": 2784, + "auroc": 0.9877873563218391, + "auprc": 0.30239154137354807, + "brier": 0.002876731128292497, + "calibration": { + "observed_rate": 0.00322234156820623, + "mean_prediction": 0.0012805771100071492, + "calibration_in_the_large": -0.0019417644581990808, + "expected_calibration_error_10bin": 0.0019788827225500124, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "I87": { + "valid": 2780, + "positives": 12, + "negatives": 2768, + "auroc": 0.6815390173410405, + "auprc": 0.010453628995782309, + "brier": 0.0043011567915933815, + "calibration": { + "observed_rate": 0.004316546762589928, + "mean_prediction": 0.00265242785889405, + "calibration_in_the_large": -0.0016641189036958781, + "expected_calibration_error_10bin": 0.0016641189036958781, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + "I89": { + "valid": 2826, + "positives": 5, + "negatives": 2821, + "auroc": 0.8562211981566821, + "auprc": 0.007245247793691338, + "brier": 0.0017649253789985648, + "calibration": { + "observed_rate": 0.0017692852087756545, + "mean_prediction": 0.0008456952821905172, + "calibration_in_the_large": -0.0009235899265851373, + "expected_calibration_error_10bin": 0.0009235899265851373, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "I95": { + "valid": 2485, + "positives": 82, + "negatives": 2403, + "auroc": 0.7507181064320007, + "auprc": 0.09009639197183521, + "brier": 0.03108337342344377, + "calibration": { + "observed_rate": 0.03299798792756539, + "mean_prediction": 0.028723506255251482, + "calibration_in_the_large": -0.0042744816723139095, + "expected_calibration_error_10bin": 0.004274481672313913, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.874076679563841 + }, + "I96": { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.7876857749469215, + "auprc": 0.21104454649250598, + "brier": 0.0017346876823894648, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.0014010523987145163, + "calibration_in_the_large": -0.00036510796864683997, + "expected_calibration_error_10bin": 0.00036510796864683997, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "I97": { + "valid": 2740, + "positives": 10, + "negatives": 2730, + "auroc": 0.7275091575091575, + "auprc": 0.010902669602627766, + "brier": 0.0036405168167804674, + "calibration": { + "observed_rate": 0.0036496350364963502, + "mean_prediction": 0.0038654247210250597, + "calibration_in_the_large": 0.0002157896845287094, + "expected_calibration_error_10bin": 0.0002157896845287094, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + "J02": { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.7812610697839178, + "auprc": 0.0023576083721717576, + "brier": 0.0007214298066097277, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.0013234963496545314, + "calibration_in_the_large": 0.0006155317478846199, + "expected_calibration_error_10bin": 0.0006155317478846199, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J06": { + "valid": 2816, + "positives": 8, + "negatives": 2808, + "auroc": 0.6392450142450142, + "auprc": 0.009209751684776694, + "brier": 0.002864413852296398, + "calibration": { + "observed_rate": 0.002840909090909091, + "mean_prediction": 0.0029457538937911272, + "calibration_in_the_large": 0.00010484480288203623, + "expected_calibration_error_10bin": 0.00010484480288203668, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "J12": { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 5.315087509660948e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0024318659246330425, + "calibration_in_the_large": 0.0024318659246330425, + "expected_calibration_error_10bin": 0.0024318659246330425, + "nonempty_bins": 2 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J15": { + "valid": 2795, + "positives": 12, + "negatives": 2783, + "auroc": 0.6937058330338963, + "auprc": 0.011404629149916972, + "brier": 0.004283485249356414, + "calibration": { + "observed_rate": 0.004293381037567084, + "mean_prediction": 0.0027641186466214104, + "calibration_in_the_large": -0.0015292623909456734, + "expected_calibration_error_10bin": 0.0015292623909456734, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9831164263102357 + }, + "J18": { + "valid": 2671, + "positives": 51, + "negatives": 2620, + "auroc": 0.7707828169435713, + "auprc": 0.05780714118582934, + "brier": 0.01847103048069054, + "calibration": { + "observed_rate": 0.019093972295020592, + "mean_prediction": 0.012526024460913556, + "calibration_in_the_large": -0.006567947834107036, + "expected_calibration_error_10bin": 0.007043423697872966, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + "J30": { + "valid": 2815, + "positives": 7, + "negatives": 2808, + "auroc": 0.7212047212047212, + "auprc": 0.01889508726994756, + "brier": 0.0024738381732401903, + "calibration": { + "observed_rate": 0.002486678507992895, + "mean_prediction": 0.0012029165991368582, + "calibration_in_the_large": -0.0012837619088560369, + "expected_calibration_error_10bin": 0.0012837619088560369, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + "J32": { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.5275910859568447, + "auprc": 0.0035227724741447894, + "brier": 0.0007145743392303526, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0011304440550149925, + "calibration_in_the_large": 0.0004234804636399483, + "expected_calibration_error_10bin": 0.0004234804636399483, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J38": { + "valid": 2825, + "positives": 3, + "negatives": 2822, + "auroc": 0.8356957240727616, + "auprc": 0.010309921671726667, + "brier": 0.0010591524281300046, + "calibration": { + "observed_rate": 0.0010619469026548673, + "mean_prediction": 0.0012888789637851906, + "calibration_in_the_large": 0.00022693206113032324, + "expected_calibration_error_10bin": 0.00022693206113032324, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J43": { + "valid": 2804, + "positives": 8, + "negatives": 2796, + "auroc": 0.665414878397711, + "auprc": 0.01603080656628051, + "brier": 0.002837563874365397, + "calibration": { + "observed_rate": 0.0028530670470756064, + "mean_prediction": 0.0025698424712764906, + "calibration_in_the_large": -0.00028322457579911574, + "expected_calibration_error_10bin": 0.00028322457579911574, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "J44": { + "valid": 2570, + "positives": 24, + "negatives": 2546, + "auroc": 0.826148860958366, + "auprc": 0.04684587988147987, + "brier": 0.00913437657216593, + "calibration": { + "observed_rate": 0.00933852140077821, + "mean_prediction": 0.007754040200966708, + "calibration_in_the_large": -0.001584481199811502, + "expected_calibration_error_10bin": 0.0025417694768679316, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9039746746394653 + }, + "J45": { + "valid": 2518, + "positives": 22, + "negatives": 2496, + "auroc": 0.6822370337995338, + "auprc": 0.022377417197123408, + "brier": 0.008666874228704175, + "calibration": { + "observed_rate": 0.008737092930897538, + "mean_prediction": 0.006427605205431516, + "calibration_in_the_large": -0.002309487725466022, + "expected_calibration_error_10bin": 0.002654086487464654, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.885684136475554 + }, + "J47": { + "valid": 2825, + "positives": 6, + "negatives": 2819, + "auroc": 0.7933073193803949, + "auprc": 0.009903053463314278, + "brier": 0.002119684524717258, + "calibration": { + "observed_rate": 0.0021238938053097347, + "mean_prediction": 0.0005178837787904282, + "calibration_in_the_large": -0.0016060100265193064, + "expected_calibration_error_10bin": 0.0016060100265193064, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J69": { + "valid": 2777, + "positives": 25, + "negatives": 2752, + "auroc": 0.7536918604651163, + "auprc": 0.027710757704453033, + "brier": 0.008869174688111874, + "calibration": { + "observed_rate": 0.009002520705797623, + "mean_prediction": 0.00533217611039709, + "calibration_in_the_large": -0.0036703445954005334, + "expected_calibration_error_10bin": 0.0036703445954005334, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + "J81": { + "valid": 2781, + "positives": 17, + "negatives": 2764, + "auroc": 0.7943943134417298, + "auprc": 0.047337695995632, + "brier": 0.006000309423906966, + "calibration": { + "observed_rate": 0.006112909025530385, + "mean_prediction": 0.004200004319336775, + "calibration_in_the_large": -0.0019129047061936097, + "expected_calibration_error_10bin": 0.0019129047061936097, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + "J84": { + "valid": 2817, + "positives": 7, + "negatives": 2810, + "auroc": 0.9045754956786985, + "auprc": 0.017115116151991898, + "brier": 0.002463199331822656, + "calibration": { + "observed_rate": 0.0024849130280440185, + "mean_prediction": 0.002254846345222414, + "calibration_in_the_large": -0.0002300666828216045, + "expected_calibration_error_10bin": 0.0002300666828216045, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "J90": { + "valid": 2754, + "positives": 29, + "negatives": 2725, + "auroc": 0.6774818095539387, + "auprc": 0.02025932406993811, + "brier": 0.010486420658212096, + "calibration": { + "observed_rate": 0.010530137981118372, + "mean_prediction": 0.006819435795892845, + "calibration_in_the_large": -0.0037107021852255274, + "expected_calibration_error_10bin": 0.00429247296344729, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9686950404502286 + }, + "J91": { + "valid": 2807, + "positives": 10, + "negatives": 2797, + "auroc": 0.8149803360743654, + "auprc": 0.03145016113297087, + "brier": 0.0035280732243732653, + "calibration": { + "observed_rate": 0.003562522265764161, + "mean_prediction": 0.0034193558903220316, + "calibration_in_the_large": -0.00014316637544212934, + "expected_calibration_error_10bin": 0.0007122220903364559, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "J94": { + "valid": 2829, + "positives": 9, + "negatives": 2820, + "auroc": 0.64822695035461, + "auprc": 0.06946613082507429, + "brier": 0.003156462767092273, + "calibration": { + "observed_rate": 0.003181336161187699, + "mean_prediction": 0.0005035314111083001, + "calibration_in_the_large": -0.002677804750079399, + "expected_calibration_error_10bin": 0.002677804750079399, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J95": { + "valid": 2770, + "positives": 12, + "negatives": 2758, + "auroc": 0.8079224075416969, + "auprc": 0.01746857351515474, + "brier": 0.004302273951158515, + "calibration": { + "observed_rate": 0.004332129963898917, + "mean_prediction": 0.0031049395811469332, + "calibration_in_the_large": -0.0012271903827519837, + "expected_calibration_error_10bin": 0.0012271903827519837, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9743228983468167 + }, + "J96": { + "valid": 2605, + "positives": 64, + "negatives": 2541, + "auroc": 0.8303325462416371, + "auprc": 0.1113577120021837, + "brier": 0.022982298257783054, + "calibration": { + "observed_rate": 0.024568138195777352, + "mean_prediction": 0.016680419927538572, + "calibration_in_the_large": -0.00788771826823878, + "expected_calibration_error_10bin": 0.008576675109178585, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9162856137882518 + }, + "J98": { + "valid": 2692, + "positives": 31, + "negatives": 2661, + "auroc": 0.72537610163533, + "auprc": 0.03588315513567189, + "brier": 0.01131153178582522, + "calibration": { + "observed_rate": 0.011515601783060922, + "mean_prediction": 0.006646911104899131, + "calibration_in_the_large": -0.004868690678161791, + "expected_calibration_error_10bin": 0.004868690678161791, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9468870911009497 + }, + "K04": { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.8941425546930134, + "auprc": 0.051686340640809444, + "brier": 0.0007009446136564106, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.0004725303776527917, + "calibration_in_the_large": -0.00023268824011871744, + "expected_calibration_error_10bin": 0.00023268824011871744, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "K12": { + "valid": 2824, + "positives": 13, + "negatives": 2811, + "auroc": 0.9092575869523575, + "auprc": 0.0970604493167956, + "brier": 0.004752496358561546, + "calibration": { + "observed_rate": 0.004603399433427762, + "mean_prediction": 0.0038478992020844465, + "calibration_in_the_large": -0.0007555002313433153, + "expected_calibration_error_10bin": 0.00324829314627353, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "K20": { + "valid": 2813, + "positives": 7, + "negatives": 2806, + "auroc": 0.749159963343855, + "auprc": 0.024229519885113272, + "brier": 0.0025113150461201356, + "calibration": { + "observed_rate": 0.002488446498400284, + "mean_prediction": 0.003519173635083209, + "calibration_in_the_large": 0.001030727136682925, + "expected_calibration_error_10bin": 0.0010307271366829245, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K21": { + "valid": 2043, + "positives": 73, + "negatives": 1970, + "auroc": 0.7310687712954593, + "auprc": 0.13707932984227883, + "brier": 0.033189927720685894, + "calibration": { + "observed_rate": 0.03573176700930005, + "mean_prediction": 0.028314726476373384, + "calibration_in_the_large": -0.007417040532926668, + "expected_calibration_error_10bin": 0.007417040532926665, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7186071051705945 + }, + "K22": { + "valid": 2764, + "positives": 15, + "negatives": 2749, + "auroc": 0.8065963380623257, + "auprc": 0.033609983950715155, + "brier": 0.005363658413082254, + "calibration": { + "observed_rate": 0.005426917510853835, + "mean_prediction": 0.0026106752309178367, + "calibration_in_the_large": -0.002816242279935998, + "expected_calibration_error_10bin": 0.002816242279935998, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9722124516355962 + }, + "K25": { + "valid": 2817, + "positives": 6, + "negatives": 2811, + "auroc": 0.7409581406379698, + "auprc": 0.006645435776687023, + "brier": 0.002136628313520666, + "calibration": { + "observed_rate": 0.002129925452609159, + "mean_prediction": 0.001514084034696343, + "calibration_in_the_large": -0.0006158414179128159, + "expected_calibration_error_10bin": 0.0006158414179128159, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "K26": { + "valid": 2814, + "positives": 5, + "negatives": 2809, + "auroc": 0.9691705233179068, + "auprc": 0.22653697315876017, + "brier": 0.001717250581205207, + "calibration": { + "observed_rate": 0.0017768301350390902, + "mean_prediction": 0.0021091120081688872, + "calibration_in_the_large": 0.000332281873129797, + "expected_calibration_error_10bin": 0.000332281873129797, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "K29": { + "valid": 2785, + "positives": 10, + "negatives": 2775, + "auroc": 0.725081081081081, + "auprc": 0.025712110377809228, + "brier": 0.003557886429203206, + "calibration": { + "observed_rate": 0.003590664272890485, + "mean_prediction": 0.0038962274815008244, + "calibration_in_the_large": 0.0003055632086103395, + "expected_calibration_error_10bin": 0.00030556320861033996, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K30": { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.9199294532627866, + "auprc": 0.00642048010469063, + "brier": 0.0007044242221707002, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0007508371246854593, + "calibration_in_the_large": 4.586708591210718e-05, + "expected_calibration_error_10bin": 4.586708591210718e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + "K31": { + "valid": 2756, + "positives": 17, + "negatives": 2739, + "auroc": 0.9079311900006443, + "auprc": 0.09566744097177658, + "brier": 0.0059449544652974955, + "calibration": { + "observed_rate": 0.006168359941944848, + "mean_prediction": 0.0041144133745623715, + "calibration_in_the_large": -0.002053946567382476, + "expected_calibration_error_10bin": 0.0025510451794151876, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + "K40": { + "valid": 2827, + "positives": 3, + "negatives": 2824, + "auroc": 0.923748819641171, + "auprc": 0.058593073593073586, + "brier": 0.0010469513233068188, + "calibration": { + "observed_rate": 0.0010611956137247967, + "mean_prediction": 0.0008869122581474213, + "calibration_in_the_large": -0.0001742833555773754, + "expected_calibration_error_10bin": 0.0001742833555773754, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "K42": { + "valid": 2820, + "positives": 5, + "negatives": 2815, + "auroc": 0.6936412078152753, + "auprc": 0.015601432165542651, + "brier": 0.0017726573670623167, + "calibration": { + "observed_rate": 0.0017730496453900709, + "mean_prediction": 0.0008997379023433541, + "calibration_in_the_large": -0.0008733117430467168, + "expected_calibration_error_10bin": 0.0008733117430467168, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + "K43": { + "valid": 2813, + "positives": 5, + "negatives": 2808, + "auroc": 0.7881054131054132, + "auprc": 0.02439520717805011, + "brier": 0.0017618955943560154, + "calibration": { + "observed_rate": 0.0017774617845716318, + "mean_prediction": 0.0014912885070458505, + "calibration_in_the_large": -0.00028617327752578125, + "expected_calibration_error_10bin": 0.00028617327752578125, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K44": { + "valid": 2785, + "positives": 6, + "negatives": 2779, + "auroc": 0.7211826796209668, + "auprc": 0.008346591059947103, + "brier": 0.002147858574785786, + "calibration": { + "observed_rate": 0.0021543985637342907, + "mean_prediction": 0.001955993133723001, + "calibration_in_the_large": -0.00019840543001128962, + "expected_calibration_error_10bin": 0.00019840543001128962, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K52": { + "valid": 2749, + "positives": 33, + "negatives": 2716, + "auroc": 0.8156714419601018, + "auprc": 0.08912922003084887, + "brier": 0.01158546985627252, + "calibration": { + "observed_rate": 0.012004365223717716, + "mean_prediction": 0.00797420597676012, + "calibration_in_the_large": -0.004030159246957595, + "expected_calibration_error_10bin": 0.004880650432022734, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9669363348575448 + }, + "K55": { + "valid": 2815, + "positives": 8, + "negatives": 2807, + "auroc": 0.820181688635554, + "auprc": 0.008533581154804591, + "brier": 0.0028522889931113966, + "calibration": { + "observed_rate": 0.002841918294849023, + "mean_prediction": 0.0021454110699688075, + "calibration_in_the_large": -0.0006965072248802154, + "expected_calibration_error_10bin": 0.0007871370189146146, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + "K56": { + "valid": 2745, + "positives": 27, + "negatives": 2718, + "auroc": 0.7513558444389938, + "auprc": 0.033310410778850025, + "brier": 0.009699841255870654, + "calibration": { + "observed_rate": 0.009836065573770493, + "mean_prediction": 0.004548536538113728, + "calibration_in_the_large": -0.005287529035656765, + "expected_calibration_error_10bin": 0.005287529035656765, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9655293703833978 + }, + "K57": { + "valid": 2741, + "positives": 22, + "negatives": 2719, + "auroc": 0.7076298104249557, + "auprc": 0.033894375753651625, + "brier": 0.007954519267547885, + "calibration": { + "observed_rate": 0.008026267785479753, + "mean_prediction": 0.0026041014801953103, + "calibration_in_the_large": -0.005422166305284443, + "expected_calibration_error_10bin": 0.005422166305284443, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + "K58": { + "valid": 2792, + "positives": 7, + "negatives": 2785, + "auroc": 0.7483457296742755, + "auprc": 0.12292487677841032, + "brier": 0.00246482651857552, + "calibration": { + "observed_rate": 0.002507163323782235, + "mean_prediction": 0.0022507272666283055, + "calibration_in_the_large": -0.00025643605715392967, + "expected_calibration_error_10bin": 0.00025643605715392967, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + "K59": { + "valid": 2560, + "positives": 78, + "negatives": 2482, + "auroc": 0.7537500774809397, + "auprc": 0.12473455268285775, + "brier": 0.028392876658233025, + "calibration": { + "observed_rate": 0.03046875, + "mean_prediction": 0.02505185712147977, + "calibration_in_the_large": -0.005416892878520228, + "expected_calibration_error_10bin": 0.006500121312956251, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + "K62": { + "valid": 2813, + "positives": 14, + "negatives": 2799, + "auroc": 0.7954116266013372, + "auprc": 0.019359508338311546, + "brier": 0.004941410543553813, + "calibration": { + "observed_rate": 0.004976892996800568, + "mean_prediction": 0.0022210308117631646, + "calibration_in_the_large": -0.002755862185037404, + "expected_calibration_error_10bin": 0.002755862185037404, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K63": { + "valid": 2810, + "positives": 15, + "negatives": 2795, + "auroc": 0.7132737030411449, + "auprc": 0.01998130026927006, + "brier": 0.005296101524486277, + "calibration": { + "observed_rate": 0.005338078291814947, + "mean_prediction": 0.002792997473669957, + "calibration_in_the_large": -0.0025450808181449896, + "expected_calibration_error_10bin": 0.0025450808181449896, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + "K64": { + "valid": 2801, + "positives": 18, + "negatives": 2783, + "auroc": 0.7757815307222422, + "auprc": 0.031164663702176403, + "brier": 0.006340836945363776, + "calibration": { + "observed_rate": 0.006426276329882185, + "mean_prediction": 0.003766649137945893, + "calibration_in_the_large": -0.002659627191936292, + "expected_calibration_error_10bin": 0.002659627191936292, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "K65": { + "valid": 2813, + "positives": 12, + "negatives": 2801, + "auroc": 0.8962275377841247, + "auprc": 0.03950992281649474, + "brier": 0.00428386726562414, + "calibration": { + "observed_rate": 0.004265908282971916, + "mean_prediction": 0.0035805503038597443, + "calibration_in_the_large": -0.0006853579791121721, + "expected_calibration_error_10bin": 0.0022798349927502987, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K66": { + "valid": 2796, + "positives": 8, + "negatives": 2788, + "auroc": 0.6501076040172167, + "auprc": 0.016003882131296443, + "brier": 0.0028545500291943643, + "calibration": { + "observed_rate": 0.002861230329041488, + "mean_prediction": 0.002659960274110624, + "calibration_in_the_large": -0.00020127005493086403, + "expected_calibration_error_10bin": 0.00020127005493086403, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + "K70": { + "valid": 2774, + "positives": 1, + "negatives": 2773, + "auroc": 0.9354489722322394, + "auprc": 0.005555555555555556, + "brier": 0.00037685591144823134, + "calibration": { + "observed_rate": 0.0003604902667627974, + "mean_prediction": 0.0008727293623518636, + "calibration_in_the_large": 0.0005122390955890662, + "expected_calibration_error_10bin": 0.0005122390955890661, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "K72": { + "valid": 2787, + "positives": 18, + "negatives": 2769, + "auroc": 0.9495204847317523, + "auprc": 0.28732566246816155, + "brier": 0.005588339446359693, + "calibration": { + "observed_rate": 0.006458557588805167, + "mean_prediction": 0.003558702652632945, + "calibration_in_the_large": -0.002899854936172222, + "expected_calibration_error_10bin": 0.004059556760018268, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "K74": { + "valid": 2763, + "positives": 7, + "negatives": 2756, + "auroc": 0.944743935309973, + "auprc": 0.031586566933446726, + "brier": 0.002597925553555298, + "calibration": { + "observed_rate": 0.0025334781035106766, + "mean_prediction": 0.0021389753794516884, + "calibration_in_the_large": -0.00039450272405898825, + "expected_calibration_error_10bin": 0.0015405538089291381, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + "K75": { + "valid": 2798, + "positives": 10, + "negatives": 2788, + "auroc": 0.8515423242467719, + "auprc": 0.02434545746562485, + "brier": 0.003583387754937163, + "calibration": { + "observed_rate": 0.0035739814152966403, + "mean_prediction": 0.002308819581205283, + "calibration_in_the_large": -0.0012651618340913575, + "expected_calibration_error_10bin": 0.0017954571477315408, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + "K76": { + "valid": 2681, + "positives": 29, + "negatives": 2652, + "auroc": 0.7775133926249544, + "auprc": 0.18338321335732458, + "brier": 0.009967265893395262, + "calibration": { + "observed_rate": 0.01081685938082805, + "mean_prediction": 0.004108014458940815, + "calibration_in_the_large": -0.006708844921887234, + "expected_calibration_error_10bin": 0.007940078993747572, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9430179387970454 + }, + "K80": { + "valid": 2731, + "positives": 12, + "negatives": 2719, + "auroc": 0.6248927301704058, + "auprc": 0.015141367030758912, + "brier": 0.004373858514239168, + "calibration": { + "observed_rate": 0.004393994873672647, + "mean_prediction": 0.003763639887856278, + "calibration_in_the_large": -0.0006303549858163691, + "expected_calibration_error_10bin": 0.0006303549858163691, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9606049947238833 + }, + "K81": { + "valid": 2825, + "positives": 5, + "negatives": 2820, + "auroc": 0.875886524822695, + "auprc": 0.03345339134875182, + "brier": 0.0017480253121089355, + "calibration": { + "observed_rate": 0.0017699115044247787, + "mean_prediction": 0.0012472370751106811, + "calibration_in_the_large": -0.0005226744293140976, + "expected_calibration_error_10bin": 0.0005226744293140976, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "K82": { + "valid": 2824, + "positives": 4, + "negatives": 2820, + "auroc": 0.6469858156028369, + "auprc": 0.003341759101596746, + "brier": 0.0014381934966570954, + "calibration": { + "observed_rate": 0.00141643059490085, + "mean_prediction": 0.0015263516795230754, + "calibration_in_the_large": 0.00010992108462222548, + "expected_calibration_error_10bin": 0.00010992108462222548, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "K83": { + "valid": 2757, + "positives": 11, + "negatives": 2746, + "auroc": 0.896345097000596, + "auprc": 0.1089943888295685, + "brier": 0.003839624502647531, + "calibration": { + "observed_rate": 0.003989844033369605, + "mean_prediction": 0.002670461251402364, + "calibration_in_the_large": -0.001319382781967241, + "expected_calibration_error_10bin": 0.001950849414190387, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.969750263805839 + }, + "K85": { + "valid": 2779, + "positives": 5, + "negatives": 2774, + "auroc": 0.8473684210526315, + "auprc": 0.02778516484693768, + "brier": 0.0017818173639434689, + "calibration": { + "observed_rate": 0.0017992083483267362, + "mean_prediction": 0.0017016139386441945, + "calibration_in_the_large": -9.759440968254169e-05, + "expected_calibration_error_10bin": 9.759440968254169e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9774885684136475 + }, + "K86": { + "valid": 2785, + "positives": 7, + "negatives": 2778, + "auroc": 0.6954129383934999, + "auprc": 0.01844351513265508, + "brier": 0.0025095715586145708, + "calibration": { + "observed_rate": 0.0025134649910233393, + "mean_prediction": 0.0022559758128947996, + "calibration_in_the_large": -0.00025748917812853976, + "expected_calibration_error_10bin": 0.0003334970907027051, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K90": { + "valid": 2831, + "positives": 2, + "negatives": 2829, + "auroc": 0.5942028985507246, + "auprc": 0.0012792477941619116, + "brier": 0.0007070340423172942, + "calibration": { + "observed_rate": 0.0007064641469445425, + "mean_prediction": 0.00038062666246145837, + "calibration_in_the_large": -0.0003258374844830842, + "expected_calibration_error_10bin": 0.0003258374844830842, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "K91": { + "valid": 2768, + "positives": 22, + "negatives": 2746, + "auroc": 0.836439780176124, + "auprc": 0.047729036608856815, + "brier": 0.007804724509971746, + "calibration": { + "observed_rate": 0.007947976878612716, + "mean_prediction": 0.003156426298747421, + "calibration_in_the_large": -0.004791550579865295, + "expected_calibration_error_10bin": 0.004868694634270558, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "K92": { + "valid": 2751, + "positives": 30, + "negatives": 2721, + "auroc": 0.8751071909837069, + "auprc": 0.11891584220388182, + "brier": 0.01037960010628458, + "calibration": { + "observed_rate": 0.010905125408942203, + "mean_prediction": 0.007854515179034639, + "calibration_in_the_large": -0.003050610229907564, + "expected_calibration_error_10bin": 0.0030506102299075635, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "K94": { + "valid": 2823, + "positives": 14, + "negatives": 2809, + "auroc": 0.9048212378579057, + "auprc": 0.12608888091736536, + "brier": 0.004872646018362914, + "calibration": { + "observed_rate": 0.00495926319518243, + "mean_prediction": 0.0012067103316134638, + "calibration_in_the_large": -0.0037525528635689665, + "expected_calibration_error_10bin": 0.0037525528635689665, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "L02": { + "valid": 2807, + "positives": 16, + "negatives": 2791, + "auroc": 0.752866356144751, + "auprc": 0.017695163236311408, + "brier": 0.005656691654896735, + "calibration": { + "observed_rate": 0.0057000356252226575, + "mean_prediction": 0.0043229105036282625, + "calibration_in_the_large": -0.001377125121594395, + "expected_calibration_error_10bin": 0.0014490578946374881, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "L03": { + "valid": 2701, + "positives": 36, + "negatives": 2665, + "auroc": 0.7210444027517198, + "auprc": 0.06162373072386608, + "brier": 0.012997687459283471, + "calibration": { + "observed_rate": 0.013328396890040726, + "mean_prediction": 0.00901510624813203, + "calibration_in_the_large": -0.0043132906419086955, + "expected_calibration_error_10bin": 0.004313290641908695, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9500527611677805 + }, + "L08": { + "valid": 2830, + "positives": 5, + "negatives": 2825, + "auroc": 0.6683185840707965, + "auprc": 0.004410666520947786, + "brier": 0.0017672934463277277, + "calibration": { + "observed_rate": 0.0017667844522968198, + "mean_prediction": 0.0011252578793942555, + "calibration_in_the_large": -0.0006415265729025643, + "expected_calibration_error_10bin": 0.0006415265729025643, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9954273654590221 + }, + "L27": { + "valid": 2818, + "positives": 9, + "negatives": 2809, + "auroc": 0.7409517028598552, + "auprc": 0.01883484180241021, + "brier": 0.0031867053539847735, + "calibration": { + "observed_rate": 0.00319375443577005, + "mean_prediction": 0.002615308646266813, + "calibration_in_the_large": -0.000578445789503237, + "expected_calibration_error_10bin": 0.0008455681666020706, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "L29": { + "valid": 2817, + "positives": 3, + "negatives": 2814, + "auroc": 0.7769485903814262, + "auprc": 0.0031506854275169366, + "brier": 0.0011076840037586013, + "calibration": { + "observed_rate": 0.0010649627263045794, + "mean_prediction": 0.0028012971095638306, + "calibration_in_the_large": 0.0017363343832592511, + "expected_calibration_error_10bin": 0.0017363343832592511, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "L30": { + "valid": 2816, + "positives": 7, + "negatives": 2809, + "auroc": 0.7019274780043737, + "auprc": 0.03463476065125407, + "brier": 0.0024653302125311567, + "calibration": { + "observed_rate": 0.0024857954545454545, + "mean_prediction": 0.0016818653712777506, + "calibration_in_the_large": -0.0008039300832677039, + "expected_calibration_error_10bin": 0.0008039300832677039, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "L50": { + "valid": 2835, + "positives": 3, + "negatives": 2832, + "auroc": 0.8167372881355932, + "auprc": 0.009282660842228776, + "brier": 0.0010595352191580813, + "calibration": { + "observed_rate": 0.0010582010582010583, + "mean_prediction": 0.0009236476258730977, + "calibration_in_the_large": -0.00013455343232796058, + "expected_calibration_error_10bin": 0.00013455343232796058, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.997186071051706 + }, + "L53": { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 4.996926416439059e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0009111080972883195, + "calibration_in_the_large": 0.0009111080972883195, + "expected_calibration_error_10bin": 0.0009111080972883195, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "L76": { + "valid": 2793, + "positives": 13, + "negatives": 2780, + "auroc": 0.7142778085224128, + "auprc": 0.008823380578623379, + "brier": 0.004640527167308723, + "calibration": { + "observed_rate": 0.004654493376297888, + "mean_prediction": 0.0022541493501410277, + "calibration_in_the_large": -0.00240034402615686, + "expected_calibration_error_10bin": 0.00240034402615686, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "L89": { + "valid": 2798, + "positives": 20, + "negatives": 2778, + "auroc": 0.8428185745140389, + "auprc": 0.037922003856694156, + "brier": 0.007018579896542369, + "calibration": { + "observed_rate": 0.007147962830593281, + "mean_prediction": 0.0046378078956747755, + "calibration_in_the_large": -0.002510154934918505, + "expected_calibration_error_10bin": 0.0026757338474653457, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + "L97": { + "valid": 2789, + "positives": 11, + "negatives": 2778, + "auroc": 0.9336016755023234, + "auprc": 0.0514757547544614, + "brier": 0.003911510700627424, + "calibration": { + "observed_rate": 0.003944065973467192, + "mean_prediction": 0.004112691937804892, + "calibration_in_the_large": 0.00016862596433769948, + "expected_calibration_error_10bin": 0.00021338365549788713, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "L98": { + "valid": 2824, + "positives": 5, + "negatives": 2819, + "auroc": 0.629584959205392, + "auprc": 0.003033612851272627, + "brier": 0.0017761735657522797, + "calibration": { + "observed_rate": 0.0017705382436260624, + "mean_prediction": 0.0017137067126954614, + "calibration_in_the_large": -5.683153093060094e-05, + "expected_calibration_error_10bin": 5.683153093060094e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "M10": { + "valid": 2713, + "positives": 13, + "negatives": 2700, + "auroc": 0.8013105413105414, + "auprc": 0.03768682296962321, + "brier": 0.0047140656194726025, + "calibration": { + "observed_rate": 0.004791743457427202, + "mean_prediction": 0.004410947888695855, + "calibration_in_the_large": -0.00038079556873134735, + "expected_calibration_error_10bin": 0.0004700431324664314, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9542736545902216 + }, + "M16": { + "valid": 2790, + "positives": 3, + "negatives": 2787, + "auroc": 0.8319578997727545, + "auprc": 0.007601998522855493, + "brier": 0.00107267149500752, + "calibration": { + "observed_rate": 0.001075268817204301, + "mean_prediction": 0.0013367931383651195, + "calibration_in_the_large": 0.0002615243211608184, + "expected_calibration_error_10bin": 0.0002615243211608184, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + "M17": { + "valid": 2733, + "positives": 9, + "negatives": 2724, + "auroc": 0.7278511992168379, + "auprc": 0.007885281320256005, + "brier": 0.003285259056478332, + "calibration": { + "observed_rate": 0.003293084522502744, + "mean_prediction": 0.003163526517715782, + "calibration_in_the_large": -0.00012955800478696216, + "expected_calibration_error_10bin": 0.00012955800478696216, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + "M19": { + "valid": 2674, + "positives": 32, + "negatives": 2642, + "auroc": 0.6867666540499622, + "auprc": 0.02302388480323497, + "brier": 0.011841112893353779, + "calibration": { + "observed_rate": 0.011967090501121914, + "mean_prediction": 0.005359398021347745, + "calibration_in_the_large": -0.006607692479774169, + "expected_calibration_error_10bin": 0.006607692479774169, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.940555750967288 + }, + "M21": { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.9290780141843972, + "auprc": 0.004975124378109453, + "brier": 0.00036707981681021156, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.002802598292070779, + "calibration_in_the_large": 0.0024481140666188115, + "expected_calibration_error_10bin": 0.0024481140666188115, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "M25": { + "valid": 2717, + "positives": 31, + "negatives": 2686, + "auroc": 0.6549732183604352, + "auprc": 0.029049033857627443, + "brier": 0.01123770701417658, + "calibration": { + "observed_rate": 0.011409642988590356, + "mean_prediction": 0.01098808615020177, + "calibration_in_the_large": -0.000421556838388586, + "expected_calibration_error_10bin": 0.0006664148799862188, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9556806190643686 + }, + "M35": { + "valid": 2806, + "positives": 2, + "negatives": 2804, + "auroc": 0.8625178316690443, + "auprc": 0.003767066267066267, + "brier": 0.0007131180889092455, + "calibration": { + "observed_rate": 0.0007127583749109052, + "mean_prediction": 0.0006529137132107158, + "calibration_in_the_large": -5.984466170018941e-05, + "expected_calibration_error_10bin": 5.984466170018941e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "M46": { + "valid": 2814, + "positives": 4, + "negatives": 2810, + "auroc": 0.5801601423487545, + "auprc": 0.0026523802259545825, + "brier": 0.001422039368461215, + "calibration": { + "observed_rate": 0.0014214641080312722, + "mean_prediction": 0.0011198076080909387, + "calibration_in_the_large": -0.00030165649994033346, + "expected_calibration_error_10bin": 0.00030165649994033346, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "M47": { + "valid": 2743, + "positives": 9, + "negatives": 2734, + "auroc": 0.6906445582378282, + "auprc": 0.01554362626991144, + "brier": 0.0032645104397083977, + "calibration": { + "observed_rate": 0.0032810791104629965, + "mean_prediction": 0.00423173962553714, + "calibration_in_the_large": 0.0009506605150741438, + "expected_calibration_error_10bin": 0.0009506605150741438, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + "M48": { + "valid": 2690, + "positives": 10, + "negatives": 2680, + "auroc": 0.8008208955223881, + "auprc": 0.015526644864444984, + "brier": 0.0036995827569033944, + "calibration": { + "observed_rate": 0.0037174721189591076, + "mean_prediction": 0.005500831886963058, + "calibration_in_the_large": 0.0017833597680039504, + "expected_calibration_error_10bin": 0.0017833597680039504, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9461836088638762 + }, + "M51": { + "valid": 2785, + "positives": 3, + "negatives": 2782, + "auroc": 0.7038102084831057, + "auprc": 0.0025864199549072817, + "brier": 0.0010799581823055285, + "calibration": { + "observed_rate": 0.0010771992818671453, + "mean_prediction": 0.001965815122881457, + "calibration_in_the_large": 0.0008886158410143115, + "expected_calibration_error_10bin": 0.0008886158410143115, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "M54": { + "valid": 2567, + "positives": 39, + "negatives": 2528, + "auroc": 0.6847512982797793, + "auprc": 0.03717199227968981, + "brier": 0.014891168263066462, + "calibration": { + "observed_rate": 0.015192832099727308, + "mean_prediction": 0.013537633258078057, + "calibration_in_the_large": -0.0016551988416492504, + "expected_calibration_error_10bin": 0.002094385995724418, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9029194512838551 + }, + "M62": { + "valid": 2781, + "positives": 9, + "negatives": 2772, + "auroc": 0.7166506333173, + "auprc": 0.022490214378261642, + "brier": 0.0032123920356586628, + "calibration": { + "observed_rate": 0.003236245954692557, + "mean_prediction": 0.0034525972565403857, + "calibration_in_the_large": 0.0002163513018478289, + "expected_calibration_error_10bin": 0.0002163513018478289, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + "M79": { + "valid": 2697, + "positives": 31, + "negatives": 2666, + "auroc": 0.7514338261984851, + "auprc": 0.03171334275273383, + "brier": 0.011299970039994974, + "calibration": { + "observed_rate": 0.011494252873563218, + "mean_prediction": 0.009474912858575038, + "calibration_in_the_large": -0.0020193400149881805, + "expected_calibration_error_10bin": 0.0024420729299011335, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9486457966936335 + }, + "M81": { + "valid": 2705, + "positives": 13, + "negatives": 2692, + "auroc": 0.8092067664875986, + "auprc": 0.021389562978096164, + "brier": 0.004922638490631272, + "calibration": { + "observed_rate": 0.004805914972273568, + "mean_prediction": 0.006295862787533938, + "calibration_in_the_large": 0.0014899478152603706, + "expected_calibration_error_10bin": 0.0014899478152603706, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9514597256419275 + }, + "M84": { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.8096693921080697, + "auprc": 0.027533559104892785, + "brier": 0.0017667062787385284, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.001789861645579662, + "calibration_in_the_large": 1.555362570741228e-05, + "expected_calibration_error_10bin": 7.653481017157163e-05, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "M85": { + "valid": 2768, + "positives": 7, + "negatives": 2761, + "auroc": 0.6857763750194029, + "auprc": 0.006295052098801278, + "brier": 0.002524816918556628, + "calibration": { + "observed_rate": 0.0025289017341040463, + "mean_prediction": 0.0026022402809058012, + "calibration_in_the_large": 7.333854680175497e-05, + "expected_calibration_error_10bin": 7.333854680175497e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "M86": { + "valid": 2803, + "positives": 14, + "negatives": 2789, + "auroc": 0.7647390257644829, + "auprc": 0.025171711355014836, + "brier": 0.004957860095183217, + "calibration": { + "observed_rate": 0.0049946485907955765, + "mean_prediction": 0.003877554249287488, + "calibration_in_the_large": -0.0011170943415080886, + "expected_calibration_error_10bin": 0.0015429739674113429, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9859303552585297 + }, + "M94": { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.5269886363636364, + "auprc": 0.0023254544607404456, + "brier": 0.0010639609598123514, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.00027476971218233634, + "calibration_in_the_large": -0.0007894374534792457, + "expected_calibration_error_10bin": 0.0007894374534792457, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "M96": { + "valid": 2804, + "positives": 3, + "negatives": 2801, + "auroc": 0.8821849339521599, + "auprc": 0.010179695095489114, + "brier": 0.0010663432881393529, + "calibration": { + "observed_rate": 0.0010699001426533524, + "mean_prediction": 0.0015491125637214728, + "calibration_in_the_large": 0.0004792124210681204, + "expected_calibration_error_10bin": 0.0004792124210681204, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "N12": { + "valid": 2831, + "positives": 7, + "negatives": 2824, + "auroc": 0.7206090651558074, + "auprc": 0.01486136922774273, + "brier": 0.0024682707692581752, + "calibration": { + "observed_rate": 0.002472624514305899, + "mean_prediction": 0.001407563187784312, + "calibration_in_the_large": -0.001065061326521587, + "expected_calibration_error_10bin": 0.0011514474003825963, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "N13": { + "valid": 2756, + "positives": 15, + "negatives": 2741, + "auroc": 0.7096436823543719, + "auprc": 0.055717060016456744, + "brier": 0.005355863871942602, + "calibration": { + "observed_rate": 0.00544267053701016, + "mean_prediction": 0.00456298784185059, + "calibration_in_the_large": -0.0008796826951595694, + "expected_calibration_error_10bin": 0.0009675111503090916, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + "N14": { + "valid": 2826, + "positives": 7, + "negatives": 2819, + "auroc": 0.7761617594891805, + "auprc": 0.03644694811882436, + "brier": 0.0024437485888345206, + "calibration": { + "observed_rate": 0.0024769992922859165, + "mean_prediction": 0.002077228339851919, + "calibration_in_the_large": -0.00039977095243399737, + "expected_calibration_error_10bin": 0.0004843087041693928, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "N17": { + "valid": 2292, + "positives": 83, + "negatives": 2209, + "auroc": 0.8210169787343126, + "auprc": 0.16436075720834964, + "brier": 0.03266544220498883, + "calibration": { + "observed_rate": 0.036212914485165795, + "mean_prediction": 0.035512281461610916, + "calibration_in_the_large": -0.0007006330235548794, + "expected_calibration_error_10bin": 0.0053799757976473, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8061906436862469 + }, + "N18": { + "valid": 2440, + "positives": 41, + "negatives": 2399, + "auroc": 0.8656045710102787, + "auprc": 0.17138285637862563, + "brier": 0.015200606658939842, + "calibration": { + "observed_rate": 0.01680327868852459, + "mean_prediction": 0.013227605752442405, + "calibration_in_the_large": -0.003575672936082184, + "expected_calibration_error_10bin": 0.0043304565317653304, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.858248329229687 + }, + "N20": { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.6940671908506075, + "auprc": 0.005648832596521174, + "brier": 0.002846409050755034, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.0009680913621013135, + "calibration_in_the_large": -0.0018829421375423075, + "expected_calibration_error_10bin": 0.0018829421375423075, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "N25": { + "valid": 2831, + "positives": 6, + "negatives": 2825, + "auroc": 0.911976401179941, + "auprc": 0.057345453880674545, + "brier": 0.002092165373824111, + "calibration": { + "observed_rate": 0.0021193924408336277, + "mean_prediction": 0.0010605439724146477, + "calibration_in_the_large": -0.00105884846841898, + "expected_calibration_error_10bin": 0.0012210816738265327, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "N28": { + "valid": 2789, + "positives": 6, + "negatives": 2783, + "auroc": 0.7541621751107918, + "auprc": 0.007957170636633938, + "brier": 0.0021476712546502617, + "calibration": { + "observed_rate": 0.002151308712800287, + "mean_prediction": 0.0029368159051363246, + "calibration_in_the_large": 0.0007855071923360377, + "expected_calibration_error_10bin": 0.0007855071923360377, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "N30": { + "valid": 2829, + "positives": 10, + "negatives": 2819, + "auroc": 0.7124157502660518, + "auprc": 0.012402971658587296, + "brier": 0.00351955046908509, + "calibration": { + "observed_rate": 0.003534817956875221, + "mean_prediction": 0.002784361719093401, + "calibration_in_the_large": -0.0007504562377818199, + "expected_calibration_error_10bin": 0.0007504562377818199, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "N32": { + "valid": 2807, + "positives": 11, + "negatives": 2796, + "auroc": 0.8695864221615295, + "auprc": 0.040750038279607985, + "brier": 0.00386618437981843, + "calibration": { + "observed_rate": 0.003918774492340577, + "mean_prediction": 0.003273471216122478, + "calibration_in_the_large": -0.000645303276218099, + "expected_calibration_error_10bin": 0.000645303276218099, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "N39": { + "valid": 2520, + "positives": 74, + "negatives": 2446, + "auroc": 0.7791485271043734, + "auprc": 0.0887415460219629, + "brier": 0.027671704364997, + "calibration": { + "observed_rate": 0.029365079365079365, + "mean_prediction": 0.026054646387291585, + "calibration_in_the_large": -0.00331043297778778, + "expected_calibration_error_10bin": 0.00436887656618464, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8863876187126275 + }, + "N40": { + "valid": 2606, + "positives": 19, + "negatives": 2587, + "auroc": 0.7752324374910993, + "auprc": 0.029551287182912642, + "brier": 0.0071931152944469424, + "calibration": { + "observed_rate": 0.0072908672294704525, + "mean_prediction": 0.006028208200870627, + "calibration_in_the_large": -0.0012626590285998258, + "expected_calibration_error_10bin": 0.001542583802989319, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9166373549067885 + }, + "N73": { + "valid": 2829, + "positives": 4, + "negatives": 2825, + "auroc": 0.9721238938053097, + "auprc": 0.09107751094827833, + "brier": 0.0013879602193373488, + "calibration": { + "observed_rate": 0.0014139271827500884, + "mean_prediction": 0.0008034180966971684, + "calibration_in_the_large": -0.0006105090860529201, + "expected_calibration_error_10bin": 0.0006105090860529201, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "N99": { + "valid": 2799, + "positives": 5, + "negatives": 2794, + "auroc": 0.7639226914817466, + "auprc": 0.005449048176929464, + "brier": 0.0017928915961743235, + "calibration": { + "observed_rate": 0.0017863522686673813, + "mean_prediction": 0.0022233919244100796, + "calibration_in_the_large": 0.0004370396557426984, + "expected_calibration_error_10bin": 0.0004370396557426984, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9845233907843827 + }, + "O69": { + "valid": 2743, + "positives": 6, + "negatives": 2737, + "auroc": 0.9968335160151017, + "auprc": 0.36781410597200076, + "brier": 0.0015840647964712766, + "calibration": { + "observed_rate": 0.002187386073641998, + "mean_prediction": 0.002382872887724163, + "calibration_in_the_large": 0.00019548681408216532, + "expected_calibration_error_10bin": 0.0020802645173343534, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + "O99": { + "valid": 2652, + "positives": 1, + "negatives": 2651, + "auroc": 0.999245567710298, + "auprc": 0.3333333333333333, + "brier": 0.0007493962640681357, + "calibration": { + "observed_rate": 0.0003770739064856712, + "mean_prediction": 0.002981042394132075, + "calibration_in_the_large": 0.0026039684876464036, + "expected_calibration_error_10bin": 0.0026039684876464036, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9328174463594794 + }, + "Q21": { + "valid": 2810, + "positives": 3, + "negatives": 2807, + "auroc": 0.552190951193445, + "auprc": 0.0019780956804502743, + "brier": 0.0010690141862664821, + "calibration": { + "observed_rate": 0.0010676156583629894, + "mean_prediction": 0.0014820991455545415, + "calibration_in_the_large": 0.00041448348719155207, + "expected_calibration_error_10bin": 0.00041448348719155207, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + "U07": { + "valid": 2828, + "positives": 0, + "negatives": 2828, + "auroc": null, + "auprc": null, + "brier": 5.1149370331158013e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0034917979609452405, + "calibration_in_the_large": 0.0034917979609452405, + "expected_calibration_error_10bin": 0.0034917979609452405, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9947238832219486 + } + }, + "270": { + "A04": { + "valid": 2782, + "positives": 25, + "negatives": 2757, + "auroc": 0.7855930359085963, + "auprc": 0.06819968684723192, + "brier": 0.00892511516666124, + "calibration": { + "observed_rate": 0.008986340762041696, + "mean_prediction": 0.009717476507737225, + "calibration_in_the_large": 0.0007311357456955287, + "expected_calibration_error_10bin": 0.00121792538841283, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + "A08": { + "valid": 2818, + "positives": 11, + "negatives": 2807, + "auroc": 0.7928231369627878, + "auprc": 0.015558344063051777, + "brier": 0.0038966179869913175, + "calibration": { + "observed_rate": 0.0039034776437189495, + "mean_prediction": 0.003153631952094762, + "calibration_in_the_large": -0.0007498456916241875, + "expected_calibration_error_10bin": 0.0007498456916241875, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "A41": { + "valid": 2664, + "positives": 63, + "negatives": 2601, + "auroc": 0.7576267979958868, + "auprc": 0.06193032561718206, + "brier": 0.023330159110842717, + "calibration": { + "observed_rate": 0.02364864864864865, + "mean_prediction": 0.02099291831997358, + "calibration_in_the_large": -0.0026557303286750683, + "expected_calibration_error_10bin": 0.009598021191747621, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9370383397819205 + }, + "B00": { + "valid": 2819, + "positives": 4, + "negatives": 2815, + "auroc": 0.7738898756660746, + "auprc": 0.040950356141365, + "brier": 0.001407175386111692, + "calibration": { + "observed_rate": 0.001418942887548776, + "mean_prediction": 0.001214071596089329, + "calibration_in_the_large": -0.000204871291459447, + "expected_calibration_error_10bin": 0.000204871291459447, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "B02": { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.9571984435797666, + "auprc": 0.00819672131147541, + "brier": 0.00035915161537939684, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0012216974932057621, + "calibration_in_the_large": 0.0008680907039554085, + "expected_calibration_error_10bin": 0.0008680907039554085, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "B18": { + "valid": 2782, + "positives": 7, + "negatives": 2775, + "auroc": 0.9524839124839125, + "auprc": 0.03377552141126841, + "brier": 0.0025474027151850304, + "calibration": { + "observed_rate": 0.0025161754133716753, + "mean_prediction": 0.0012776801022106727, + "calibration_in_the_large": -0.0012384953111610026, + "expected_calibration_error_10bin": 0.001666127474607814, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + "B19": { + "valid": 2763, + "positives": 17, + "negatives": 2746, + "auroc": 0.9074589777644488, + "auprc": 0.10809774927331826, + "brier": 0.005913709265784416, + "calibration": { + "observed_rate": 0.006152732537097358, + "mean_prediction": 0.0024807795919659483, + "calibration_in_the_large": -0.00367195294513141, + "expected_calibration_error_10bin": 0.0038208794753764393, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + "B20": { + "valid": 2829, + "positives": 5, + "negatives": 2824, + "auroc": 0.9801699716713881, + "auprc": 0.07337733404806576, + "brier": 0.0017454161050497348, + "calibration": { + "observed_rate": 0.0017674089784376105, + "mean_prediction": 0.0008918417233061322, + "calibration_in_the_large": -0.0008755672551314783, + "expected_calibration_error_10bin": 0.001173983992918517, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "B34": { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.9570417551309272, + "auprc": 0.09849773581862784, + "brier": 0.0017273844074543504, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.0010782572799879655, + "calibration_in_the_large": -0.0006879030873733908, + "expected_calibration_error_10bin": 0.0006879030873733908, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "B35": { + "valid": 2836, + "positives": 1, + "negatives": 2835, + "auroc": 0.5181657848324515, + "auprc": 0.000731528895391368, + "brier": 0.00035609426741707833, + "calibration": { + "observed_rate": 0.0003526093088857546, + "mean_prediction": 0.0011242519702589456, + "calibration_in_the_large": 0.000771642661373191, + "expected_calibration_error_10bin": 0.000771642661373191, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "B37": { + "valid": 2768, + "positives": 34, + "negatives": 2734, + "auroc": 0.7872326692198459, + "auprc": 0.0502540286468785, + "brier": 0.01201691302393903, + "calibration": { + "observed_rate": 0.012283236994219654, + "mean_prediction": 0.006690901971681715, + "calibration_in_the_large": -0.005592335022537939, + "expected_calibration_error_10bin": 0.005708743114502343, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "B95": { + "valid": 2678, + "positives": 56, + "negatives": 2622, + "auroc": 0.7454165304565762, + "auprc": 0.05376741668539795, + "brier": 0.02030141301015649, + "calibration": { + "observed_rate": 0.020911127707244213, + "mean_prediction": 0.015517825309619798, + "calibration_in_the_large": -0.005393302397624415, + "expected_calibration_error_10bin": 0.0060449303268671276, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9419627154414351 + }, + "B96": { + "valid": 2630, + "positives": 74, + "negatives": 2556, + "auroc": 0.7604523537622129, + "auprc": 0.08279910158177944, + "brier": 0.026733370499644943, + "calibration": { + "observed_rate": 0.028136882129277566, + "mean_prediction": 0.018863413527190946, + "calibration_in_the_large": -0.00927346860208662, + "expected_calibration_error_10bin": 0.009451549014004882, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9250791417516707 + }, + "B97": { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.7420382165605095, + "auprc": 0.03640537071774114, + "brier": 0.0007434054108120859, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.001316603579934101, + "calibration_in_the_large": 0.0006093900014333937, + "expected_calibration_error_10bin": 0.0006093900014333938, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "C18": { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.9743090007087172, + "auprc": 0.019717261904761904, + "brier": 0.0007050469621031478, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0008038041991704022, + "calibration_in_the_large": 9.558890171997719e-05, + "expected_calibration_error_10bin": 9.558890171997719e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "C22": { + "valid": 2812, + "positives": 6, + "negatives": 2806, + "auroc": 0.9203492516037064, + "auprc": 0.026233862232951308, + "brier": 0.0021492756782918554, + "calibration": { + "observed_rate": 0.0021337126600284497, + "mean_prediction": 0.0006414039882795042, + "calibration_in_the_large": -0.0014923086717489454, + "expected_calibration_error_10bin": 0.0018969460104723763, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9890960253253606 + }, + "C25": { + "valid": 2809, + "positives": 3, + "negatives": 2806, + "auroc": 0.8594678070800665, + "auprc": 0.07148818330108873, + "brier": 0.0010578410369504801, + "calibration": { + "observed_rate": 0.001067995728017088, + "mean_prediction": 0.0011552593065582146, + "calibration_in_the_large": 8.726357854112665e-05, + "expected_calibration_error_10bin": 0.00024405742259660642, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "C61": { + "valid": 2805, + "positives": 2, + "negatives": 2803, + "auroc": 0.9951837317160186, + "auprc": 0.125, + "brier": 0.0006967670389463539, + "calibration": { + "observed_rate": 0.00071301247771836, + "mean_prediction": 0.0012862732827344835, + "calibration_in_the_large": 0.0005732608050161234, + "expected_calibration_error_10bin": 0.0005732608050161234, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "C67": { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9709939865581889, + "auprc": 0.01779500158177792, + "brier": 0.0007043016200355659, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0005124301214135498, + "calibration_in_the_large": -0.0001945334699614944, + "expected_calibration_error_10bin": 0.0001945334699614944, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "C77": { + "valid": 2762, + "positives": 20, + "negatives": 2742, + "auroc": 0.8814551422319474, + "auprc": 0.11016239004703646, + "brier": 0.0068723417678214745, + "calibration": { + "observed_rate": 0.00724112961622013, + "mean_prediction": 0.006184623106737576, + "calibration_in_the_large": -0.0010565065094825547, + "expected_calibration_error_10bin": 0.0013240749105954811, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + "C78": { + "valid": 2762, + "positives": 28, + "negatives": 2734, + "auroc": 0.8759666631831957, + "auprc": 0.16313934508679065, + "brier": 0.009417089632675344, + "calibration": { + "observed_rate": 0.010137581462708182, + "mean_prediction": 0.0065520252463788465, + "calibration_in_the_large": -0.0035855562163293357, + "expected_calibration_error_10bin": 0.006396105738707829, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + "C79": { + "valid": 2751, + "positives": 23, + "negatives": 2728, + "auroc": 0.9038155042713247, + "auprc": 0.11177762725274076, + "brier": 0.007979183560065333, + "calibration": { + "observed_rate": 0.008360596146855689, + "mean_prediction": 0.007323375535153414, + "calibration_in_the_large": -0.001037220611702275, + "expected_calibration_error_10bin": 0.003614219395697496, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "C83": { + "valid": 2820, + "positives": 1, + "negatives": 2819, + "auroc": 0.43490599503369987, + "auprc": 0.0006273525721455458, + "brier": 0.00039106525671145446, + "calibration": { + "observed_rate": 0.0003546099290780142, + "mean_prediction": 0.0006005511066506423, + "calibration_in_the_large": 0.00024594117757262805, + "expected_calibration_error_10bin": 0.0002459411775726281, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + "D25": { + "valid": 2792, + "positives": 3, + "negatives": 2789, + "auroc": 0.9958168997251106, + "auprc": 0.6929824561403509, + "brier": 0.0010186758187071868, + "calibration": { + "observed_rate": 0.0010744985673352436, + "mean_prediction": 0.0006682047628933406, + "calibration_in_the_large": -0.000406293804441903, + "expected_calibration_error_10bin": 0.000406293804441903, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + "D47": { + "valid": 2796, + "positives": 9, + "negatives": 2787, + "auroc": 0.6547861101144201, + "auprc": 0.006088411246557142, + "brier": 0.003226015758338926, + "calibration": { + "observed_rate": 0.003218884120171674, + "mean_prediction": 0.002786445595626455, + "calibration_in_the_large": -0.0004324385245452187, + "expected_calibration_error_10bin": 0.0005179088777890785, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + "D50": { + "valid": 2663, + "positives": 50, + "negatives": 2613, + "auroc": 0.787753539992346, + "auprc": 0.11467516281844822, + "brier": 0.017785370388408907, + "calibration": { + "observed_rate": 0.01877581674802854, + "mean_prediction": 0.01234586638593616, + "calibration_in_the_large": -0.006429950362092379, + "expected_calibration_error_10bin": 0.006589128471714407, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9366865986633838 + }, + "D53": { + "valid": 2805, + "positives": 16, + "negatives": 2789, + "auroc": 0.8370607744711366, + "auprc": 0.04364794189208651, + "brier": 0.00559374150991233, + "calibration": { + "observed_rate": 0.00570409982174688, + "mean_prediction": 0.004820551320617743, + "calibration_in_the_large": -0.0008835485011291378, + "expected_calibration_error_10bin": 0.000883548501129138, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "D59": { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.9940014114326041, + "auprc": 0.10476190476190475, + "brier": 0.0006855802754730768, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.0008523686974168364, + "calibration_in_the_large": 0.0001471500796453272, + "expected_calibration_error_10bin": 0.0001471500796453272, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "D61": { + "valid": 2773, + "positives": 33, + "negatives": 2740, + "auroc": 0.9130391506303915, + "auprc": 0.25436283352928146, + "brier": 0.010120670161339402, + "calibration": { + "observed_rate": 0.011900468806346917, + "mean_prediction": 0.010440055241973986, + "calibration_in_the_large": -0.001460413564372931, + "expected_calibration_error_10bin": 0.0027396419806548496, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + "D62": { + "valid": 2499, + "positives": 64, + "negatives": 2435, + "auroc": 0.8020533880903491, + "auprc": 0.108599318258631, + "brier": 0.024193950124759993, + "calibration": { + "observed_rate": 0.025610244097639057, + "mean_prediction": 0.01539227623492852, + "calibration_in_the_large": -0.010217967862710538, + "expected_calibration_error_10bin": 0.010217967862710535, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8790010552233556 + }, + "D63": { + "valid": 2686, + "positives": 71, + "negatives": 2615, + "auroc": 0.8549430425766839, + "auprc": 0.12279192715345291, + "brier": 0.024965337719162154, + "calibration": { + "observed_rate": 0.02643335815338794, + "mean_prediction": 0.020388082602524386, + "calibration_in_the_large": -0.006045275550863552, + "expected_calibration_error_10bin": 0.013242980208010218, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9447766443897292 + }, + "D64": { + "valid": 2434, + "positives": 107, + "negatives": 2327, + "auroc": 0.7977741988601906, + "auprc": 0.16887042428777946, + "brier": 0.03926868871708402, + "calibration": { + "observed_rate": 0.04396055875102712, + "mean_prediction": 0.03622943095469904, + "calibration_in_the_large": -0.007731127796328077, + "expected_calibration_error_10bin": 0.008563328458890839, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8561378825184665 + }, + "D65": { + "valid": 2833, + "positives": 4, + "negatives": 2829, + "auroc": 0.9416755037115588, + "auprc": 0.018528510126682836, + "brier": 0.0014078530430109886, + "calibration": { + "observed_rate": 0.0014119308153900459, + "mean_prediction": 0.0006391157548509057, + "calibration_in_the_large": -0.0007728150605391402, + "expected_calibration_error_10bin": 0.0007728150605391402, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9964825888146325 + }, + "D68": { + "valid": 2682, + "positives": 54, + "negatives": 2628, + "auroc": 0.7993122498449744, + "auprc": 0.10941260202603634, + "brier": 0.019168178772657408, + "calibration": { + "observed_rate": 0.020134228187919462, + "mean_prediction": 0.008039418441503863, + "calibration_in_the_large": -0.0120948097464156, + "expected_calibration_error_10bin": 0.013323808945676576, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9433696799155822 + }, + "D69": { + "valid": 2586, + "positives": 75, + "negatives": 2511, + "auroc": 0.8451081906279039, + "auprc": 0.27087281606444324, + "brier": 0.024651654692092056, + "calibration": { + "observed_rate": 0.029002320185614848, + "mean_prediction": 0.017542020649781463, + "calibration_in_the_large": -0.011460299535833385, + "expected_calibration_error_10bin": 0.011460299535833383, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9096025325360535 + }, + "D70": { + "valid": 2787, + "positives": 26, + "negatives": 2761, + "auroc": 0.8836402641183517, + "auprc": 0.18422933684943227, + "brier": 0.00854469557768013, + "calibration": { + "observed_rate": 0.009329027628274129, + "mean_prediction": 0.008232172354253392, + "calibration_in_the_large": -0.0010968552740207374, + "expected_calibration_error_10bin": 0.004104618603075999, + "nonempty_bins": 9 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "D72": { + "valid": 2595, + "positives": 58, + "negatives": 2537, + "auroc": 0.7256874125018689, + "auprc": 0.059499274272273694, + "brier": 0.021565691013553226, + "calibration": { + "observed_rate": 0.022350674373795763, + "mean_prediction": 0.02648965777866973, + "calibration_in_the_large": 0.0041389834048739665, + "expected_calibration_error_10bin": 0.00506518100790306, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9127682026028843 + }, + "D73": { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.8830202056008508, + "auprc": 0.11660550380236268, + "brier": 0.001046675587228174, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0007158400666416999, + "calibration_in_the_large": -0.0003464828795339376, + "expected_calibration_error_10bin": 0.0003464828795339376, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "D75": { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.9388928192430138, + "auprc": 0.013751171309310844, + "brier": 0.0014070023859891832, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0011741585204691446, + "calibration_in_the_large": -0.0002387697734199405, + "expected_calibration_error_10bin": 0.0002387697734199405, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "D80": { + "valid": 2832, + "positives": 6, + "negatives": 2826, + "auroc": 0.9819532908704883, + "auprc": 0.07643449615455285, + "brier": 0.002099979013566578, + "calibration": { + "observed_rate": 0.00211864406779661, + "mean_prediction": 0.0006625852018721379, + "calibration_in_the_large": -0.0014560588659244724, + "expected_calibration_error_10bin": 0.0015930306974145632, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + "D89": { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.6843033509700176, + "auprc": 0.007525501969139389, + "brier": 0.000857253011654681, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.000870397373073859, + "calibration_in_the_large": 0.00016542733430050687, + "expected_calibration_error_10bin": 0.0005313035073637156, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + "E03": { + "valid": 2480, + "positives": 22, + "negatives": 2458, + "auroc": 0.7048413344182262, + "auprc": 0.05452690809855135, + "brier": 0.008725546783886907, + "calibration": { + "observed_rate": 0.008870967741935484, + "mean_prediction": 0.004331287249501216, + "calibration_in_the_large": -0.004539680492434268, + "expected_calibration_error_10bin": 0.004539680492434268, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8723179739711572 + }, + "E04": { + "valid": 2775, + "positives": 11, + "negatives": 2764, + "auroc": 0.6857979213261413, + "auprc": 0.010512030155624257, + "brier": 0.003944926560732063, + "calibration": { + "observed_rate": 0.003963963963963964, + "mean_prediction": 0.0027023563769002033, + "calibration_in_the_large": -0.001261607587063761, + "expected_calibration_error_10bin": 0.001261607587063761, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + "E05": { + "valid": 2806, + "positives": 4, + "negatives": 2802, + "auroc": 0.6489114917915775, + "auprc": 0.0031310265974381886, + "brier": 0.0014239646780692104, + "calibration": { + "observed_rate": 0.0014255167498218105, + "mean_prediction": 0.0007811761885257527, + "calibration_in_the_large": -0.0006443405612960578, + "expected_calibration_error_10bin": 0.0006443405612960578, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "E11": { + "valid": 2194, + "positives": 19, + "negatives": 2175, + "auroc": 0.8093647912885662, + "auprc": 0.025543487337626968, + "brier": 0.0085812359316969, + "calibration": { + "observed_rate": 0.008659981768459436, + "mean_prediction": 0.004800222841339752, + "calibration_in_the_large": -0.0038597589271196836, + "expected_calibration_error_10bin": 0.004193707580572494, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7717200140696447 + }, + "E16": { + "valid": 2816, + "positives": 8, + "negatives": 2808, + "auroc": 0.6757923789173789, + "auprc": 0.007049948037558159, + "brier": 0.002841060617009311, + "calibration": { + "observed_rate": 0.002840909090909091, + "mean_prediction": 0.002124742135417276, + "calibration_in_the_large": -0.0007161669554918149, + "expected_calibration_error_10bin": 0.0007161669554918149, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "E21": { + "valid": 2814, + "positives": 3, + "negatives": 2811, + "auroc": 0.8873473259812641, + "auprc": 0.010204667067412165, + "brier": 0.0010658145215449864, + "calibration": { + "observed_rate": 0.0010660980810234541, + "mean_prediction": 0.0011104572126022262, + "calibration_in_the_large": 4.4359131578772075e-05, + "expected_calibration_error_10bin": 4.4359131578772075e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "E22": { + "valid": 2802, + "positives": 9, + "negatives": 2793, + "auroc": 0.8106377053745475, + "auprc": 0.02763892029092737, + "brier": 0.003192409469041351, + "calibration": { + "observed_rate": 0.0032119914346895075, + "mean_prediction": 0.003971011042764111, + "calibration_in_the_large": 0.0007590196080746034, + "expected_calibration_error_10bin": 0.0007590196080746032, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "E27": { + "valid": 2811, + "positives": 7, + "negatives": 2804, + "auroc": 0.7906562054208274, + "auprc": 0.012760039224012436, + "brier": 0.002480493236770541, + "calibration": { + "observed_rate": 0.0024902170046246885, + "mean_prediction": 0.0011628744566412386, + "calibration_in_the_large": -0.0013273425479834499, + "expected_calibration_error_10bin": 0.0013273425479834499, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9887442842068238 + }, + "E43": { + "valid": 2748, + "positives": 36, + "negatives": 2712, + "auroc": 0.8340400688298918, + "auprc": 0.060153805386104695, + "brier": 0.01273965112292437, + "calibration": { + "observed_rate": 0.013100436681222707, + "mean_prediction": 0.012589871446270912, + "calibration_in_the_large": -0.0005105652349517951, + "expected_calibration_error_10bin": 0.0026386045603372585, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9665845937390081 + }, + "E44": { + "valid": 2800, + "positives": 19, + "negatives": 2781, + "auroc": 0.7765097749768164, + "auprc": 0.03724139395494521, + "brier": 0.006672225886120596, + "calibration": { + "observed_rate": 0.0067857142857142855, + "mean_prediction": 0.004775727526059979, + "calibration_in_the_large": -0.0020099867596543065, + "expected_calibration_error_10bin": 0.0023068023668188936, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + "E46": { + "valid": 2772, + "positives": 35, + "negatives": 2737, + "auroc": 0.8330184247612088, + "auprc": 0.13443642174248827, + "brier": 0.011944143678936914, + "calibration": { + "observed_rate": 0.012626262626262626, + "mean_prediction": 0.00802345083988471, + "calibration_in_the_large": -0.004602811786377916, + "expected_calibration_error_10bin": 0.004866574310968608, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9750263805838902 + }, + "E53": { + "valid": 2804, + "positives": 7, + "negatives": 2797, + "auroc": 0.607947290464273, + "auprc": 0.004050391694463482, + "brier": 0.002498953281505402, + "calibration": { + "observed_rate": 0.0024964336661911554, + "mean_prediction": 0.0017581408439174813, + "calibration_in_the_large": -0.000738292822273674, + "expected_calibration_error_10bin": 0.000738292822273674, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "E55": { + "valid": 2737, + "positives": 26, + "negatives": 2711, + "auroc": 0.6210453139630565, + "auprc": 0.018178678840052115, + "brier": 0.009423779737064618, + "calibration": { + "observed_rate": 0.009499451954694921, + "mean_prediction": 0.005913638153694778, + "calibration_in_the_large": -0.003585813801000143, + "expected_calibration_error_10bin": 0.0036659015699750464, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9627154414351038 + }, + "E66": { + "valid": 2371, + "positives": 36, + "negatives": 2335, + "auroc": 0.7795146324054247, + "auprc": 0.06801441748161191, + "brier": 0.01467368103924837, + "calibration": { + "observed_rate": 0.015183466891606916, + "mean_prediction": 0.010547379365016854, + "calibration_in_the_large": -0.004636087526590062, + "expected_calibration_error_10bin": 0.005504194177926381, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8339781920506507 + }, + "E78": { + "valid": 1572, + "positives": 39, + "negatives": 1533, + "auroc": 0.7120611504173148, + "auprc": 0.10827958496143711, + "brier": 0.023904556056419408, + "calibration": { + "observed_rate": 0.02480916030534351, + "mean_prediction": 0.026324247094345932, + "calibration_in_the_large": 0.0015150867890024212, + "expected_calibration_error_10bin": 0.007345000863543734, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5529370383397819 + }, + "E80": { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.9065199384688203, + "auprc": 0.015863038222952014, + "brier": 0.0021218672547353174, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0013076602662341116, + "calibration_in_the_large": -0.0008177382459869298, + "expected_calibration_error_10bin": 0.0008177382459869298, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "E83": { + "valid": 2653, + "positives": 74, + "negatives": 2579, + "auroc": 0.8137084350733051, + "auprc": 0.1601554062004422, + "brier": 0.025427045197898606, + "calibration": { + "observed_rate": 0.02789295137580098, + "mean_prediction": 0.016415669893722347, + "calibration_in_the_large": -0.011477281482078633, + "expected_calibration_error_10bin": 0.012115431860067536, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9331691874780161 + }, + "E86": { + "valid": 2587, + "positives": 85, + "negatives": 2502, + "auroc": 0.7942540085578595, + "auprc": 0.10458762933741299, + "brier": 0.030588902899094807, + "calibration": { + "observed_rate": 0.032856590645535366, + "mean_prediction": 0.030121627824493853, + "calibration_in_the_large": -0.002734962821041513, + "expected_calibration_error_10bin": 0.005481626529317308, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9099542736545903 + }, + "E87": { + "valid": 2185, + "positives": 138, + "negatives": 2047, + "auroc": 0.7900922523594089, + "auprc": 0.1987087638009749, + "brier": 0.05527229365323055, + "calibration": { + "observed_rate": 0.06315789473684211, + "mean_prediction": 0.04490801914961629, + "calibration_in_the_large": -0.018249875587225815, + "expected_calibration_error_10bin": 0.02096760024112016, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.768554344002814 + }, + "E88": { + "valid": 2817, + "positives": 12, + "negatives": 2805, + "auroc": 0.773321449792038, + "auprc": 0.0812393022908025, + "brier": 0.0041172453903263245, + "calibration": { + "observed_rate": 0.004259850905218318, + "mean_prediction": 0.002835093506331776, + "calibration_in_the_large": -0.0014247573988865419, + "expected_calibration_error_10bin": 0.001424757398886541, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "E89": { + "valid": 2780, + "positives": 8, + "negatives": 2772, + "auroc": 0.5647997835497836, + "auprc": 0.005838870890687099, + "brier": 0.0028717155761396173, + "calibration": { + "observed_rate": 0.0028776978417266188, + "mean_prediction": 0.001695142377594238, + "calibration_in_the_large": -0.0011825554641323808, + "expected_calibration_error_10bin": 0.0011825554641323808, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + "F02": { + "valid": 2802, + "positives": 4, + "negatives": 2798, + "auroc": 0.8060221586847749, + "auprc": 0.010629403658432244, + "brier": 0.0014705664632045673, + "calibration": { + "observed_rate": 0.0014275517487508922, + "mean_prediction": 0.0024980224886802815, + "calibration_in_the_large": 0.0010704707399293893, + "expected_calibration_error_10bin": 0.001070470739929389, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "F03": { + "valid": 2739, + "positives": 14, + "negatives": 2725, + "auroc": 0.887051114023591, + "auprc": 0.03710647809039418, + "brier": 0.005078608645079114, + "calibration": { + "observed_rate": 0.00511135450894487, + "mean_prediction": 0.005816184221601799, + "calibration_in_the_large": 0.0007048297126569288, + "expected_calibration_error_10bin": 0.0007048297126569282, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + "F05": { + "valid": 2750, + "positives": 28, + "negatives": 2722, + "auroc": 0.7300960428256534, + "auprc": 0.022153033615424682, + "brier": 0.01010743178149933, + "calibration": { + "observed_rate": 0.010181818181818183, + "mean_prediction": 0.007993943022762654, + "calibration_in_the_large": -0.002187875159055528, + "expected_calibration_error_10bin": 0.0024322454624262626, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + "F06": { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.6024416135881104, + "auprc": 0.001369563756133629, + "brier": 0.0007147352210346931, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.0016460289129173018, + "calibration_in_the_large": 0.0009388153344165945, + "expected_calibration_error_10bin": 0.0009388153344165945, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "F10": { + "valid": 2560, + "positives": 16, + "negatives": 2544, + "auroc": 0.7760908018867925, + "auprc": 0.1223431553558764, + "brier": 0.005987414314279363, + "calibration": { + "observed_rate": 0.00625, + "mean_prediction": 0.0038389572452274478, + "calibration_in_the_large": -0.0024110427547725526, + "expected_calibration_error_10bin": 0.0024110427547725526, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + "F11": { + "valid": 2741, + "positives": 9, + "negatives": 2732, + "auroc": 0.8466731739059704, + "auprc": 0.03488914545041889, + "brier": 0.003236713934400743, + "calibration": { + "observed_rate": 0.003283473184968989, + "mean_prediction": 0.0027156899316082713, + "calibration_in_the_large": -0.0005677832533607179, + "expected_calibration_error_10bin": 0.0006451020734668791, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + "F12": { + "valid": 2777, + "positives": 12, + "negatives": 2765, + "auroc": 0.909132007233273, + "auprc": 0.028372252992854532, + "brier": 0.0042773855625046235, + "calibration": { + "observed_rate": 0.004321209938782859, + "mean_prediction": 0.0018822435486386619, + "calibration_in_the_large": -0.002438966390144197, + "expected_calibration_error_10bin": 0.002438966390144197, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + "F14": { + "valid": 2787, + "positives": 10, + "negatives": 2777, + "auroc": 0.9278357940223263, + "auprc": 0.040353083576346545, + "brier": 0.0035554395675962917, + "calibration": { + "observed_rate": 0.003588087549336204, + "mean_prediction": 0.0016090693157778003, + "calibration_in_the_large": -0.0019790182335584034, + "expected_calibration_error_10bin": 0.002305518688583555, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "F15": { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.9381729972784286, + "auprc": 0.05393282979663732, + "brier": 0.002085190855929053, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0011723619975360915, + "calibration_in_the_large": -0.0009530365146849498, + "expected_calibration_error_10bin": 0.0009530365146849498, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "F17": { + "valid": 2426, + "positives": 32, + "negatives": 2394, + "auroc": 0.8725459482038429, + "auprc": 0.07619812013811966, + "brier": 0.012749950079428524, + "calibration": { + "observed_rate": 0.013190436933223413, + "mean_prediction": 0.006829996758046282, + "calibration_in_the_large": -0.006360440175177132, + "expected_calibration_error_10bin": 0.006635314629407718, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8533239535701723 + }, + "F19": { + "valid": 2801, + "positives": 13, + "negatives": 2788, + "auroc": 0.9358238605010485, + "auprc": 0.17866356212075238, + "brier": 0.004330011382600728, + "calibration": { + "observed_rate": 0.0046411995715815784, + "mean_prediction": 0.0027578801072676235, + "calibration_in_the_large": -0.001883319464313955, + "expected_calibration_error_10bin": 0.002037467694309949, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "F20": { + "valid": 2808, + "positives": 3, + "negatives": 2805, + "auroc": 0.8156862745098039, + "auprc": 0.01245673446414313, + "brier": 0.0010675097001929825, + "calibration": { + "observed_rate": 0.0010683760683760685, + "mean_prediction": 0.001235333684657587, + "calibration_in_the_large": 0.00016695761628151857, + "expected_calibration_error_10bin": 0.00016695761628151857, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9876890608512136 + }, + "F22": { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.926950354609929, + "auprc": 0.004830917874396135, + "brier": 0.0003725346719949682, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0019030426035114318, + "calibration_in_the_large": 0.0015485583780594644, + "expected_calibration_error_10bin": 0.0015485583780594644, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "F25": { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.8461174242424242, + "auprc": 0.008939795612947363, + "brier": 0.0010696800221140868, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.001227841361901152, + "calibration_in_the_large": 0.0001636341962395699, + "expected_calibration_error_10bin": 0.0001636341962395699, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "F29": { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.8168781272337384, + "auprc": 0.019022209218517924, + "brier": 0.0028386152661640704, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.0007672514113122452, + "calibration_in_the_large": -0.002083782088331376, + "expected_calibration_error_10bin": 0.002083782088331376, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "F31": { + "valid": 2724, + "positives": 8, + "negatives": 2716, + "auroc": 0.9188144329896907, + "auprc": 0.03426119191078623, + "brier": 0.0028875109690439235, + "calibration": { + "observed_rate": 0.002936857562408223, + "mean_prediction": 0.0028677442181729708, + "calibration_in_the_large": -6.911334423525227e-05, + "expected_calibration_error_10bin": 6.911334423525227e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9581428068941259 + }, + "F32": { + "valid": 2200, + "positives": 60, + "negatives": 2140, + "auroc": 0.6933956386292834, + "auprc": 0.06132756761539868, + "brier": 0.026379276162270152, + "calibration": { + "observed_rate": 0.02727272727272727, + "mean_prediction": 0.023728734993068924, + "calibration_in_the_large": -0.003543992279658348, + "expected_calibration_error_10bin": 0.005826687061026775, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7738304607808653 + }, + "F33": { + "valid": 2800, + "positives": 11, + "negatives": 2789, + "auroc": 0.832556471853711, + "auprc": 0.02086177673186106, + "brier": 0.003948426039545312, + "calibration": { + "observed_rate": 0.003928571428571429, + "mean_prediction": 0.003917393603023811, + "calibration_in_the_large": -1.1177825547617481e-05, + "expected_calibration_error_10bin": 0.00027936506637810696, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + "F39": { + "valid": 2801, + "positives": 10, + "negatives": 2791, + "auroc": 0.7710498029380151, + "auprc": 0.02525741943809015, + "brier": 0.003536836041760508, + "calibration": { + "observed_rate": 0.003570153516601214, + "mean_prediction": 0.0017138647922834832, + "calibration_in_the_large": -0.0018562887243177308, + "expected_calibration_error_10bin": 0.0018562887243177308, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "F41": { + "valid": 2247, + "positives": 77, + "negatives": 2170, + "auroc": 0.7272787120713388, + "auprc": 0.09053246053254187, + "brier": 0.03245417048531365, + "calibration": { + "observed_rate": 0.03426791277258567, + "mean_prediction": 0.029958972679361998, + "calibration_in_the_large": -0.004308940093223669, + "expected_calibration_error_10bin": 0.007001410324914395, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7903622933520928 + }, + "F43": { + "valid": 2734, + "positives": 18, + "negatives": 2716, + "auroc": 0.7887416134838815, + "auprc": 0.030238186388313746, + "brier": 0.00651846622883054, + "calibration": { + "observed_rate": 0.006583760058522311, + "mean_prediction": 0.006072434257488475, + "calibration_in_the_large": -0.0005113258010338365, + "expected_calibration_error_10bin": 0.0010170374200000627, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "F60": { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.9466571834992887, + "auprc": 0.0970029704585712, + "brier": 0.002026570139812057, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.002786846447535079, + "calibration_in_the_large": 0.0006576768236883791, + "expected_calibration_error_10bin": 0.0006576768236883791, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "F90": { + "valid": 2775, + "positives": 7, + "negatives": 2768, + "auroc": 0.9288810900082577, + "auprc": 0.04003905031786247, + "brier": 0.0024723332705590996, + "calibration": { + "observed_rate": 0.0025225225225225223, + "mean_prediction": 0.002558325734845549, + "calibration_in_the_large": 3.580321232302683e-05, + "expected_calibration_error_10bin": 3.580321232302683e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + "G25": { + "valid": 2774, + "positives": 6, + "negatives": 2768, + "auroc": 0.7347663776493256, + "auprc": 0.00609445900817606, + "brier": 0.0021644789516617677, + "calibration": { + "observed_rate": 0.0021629416005767843, + "mean_prediction": 0.002811653898060277, + "calibration_in_the_large": 0.0006487122974834928, + "expected_calibration_error_10bin": 0.0006487122974834928, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "G31": { + "valid": 2802, + "positives": 8, + "negatives": 2794, + "auroc": 0.8125, + "auprc": 0.017464761771186058, + "brier": 0.002842114806920983, + "calibration": { + "observed_rate": 0.0028551034975017845, + "mean_prediction": 0.002254802724662498, + "calibration_in_the_large": -0.0006003007728392863, + "expected_calibration_error_10bin": 0.0006003007728392863, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "G40": { + "valid": 2723, + "positives": 24, + "negatives": 2699, + "auroc": 0.7124861059651723, + "auprc": 0.04244685021187614, + "brier": 0.008704144268722016, + "calibration": { + "observed_rate": 0.008813808299669483, + "mean_prediction": 0.005871766172786385, + "calibration_in_the_large": -0.0029420421268830984, + "expected_calibration_error_10bin": 0.0034042321495635526, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + "G43": { + "valid": 2725, + "positives": 15, + "negatives": 2710, + "auroc": 0.7628782287822878, + "auprc": 0.036045075835557265, + "brier": 0.005439545096571589, + "calibration": { + "observed_rate": 0.005504587155963303, + "mean_prediction": 0.0028250284138329994, + "calibration_in_the_large": -0.0026795587421303037, + "expected_calibration_error_10bin": 0.0026795587421303037, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9584945480126627 + }, + "G44": { + "valid": 2805, + "positives": 6, + "negatives": 2799, + "auroc": 0.5659163987138264, + "auprc": 0.012943876416590254, + "brier": 0.002133214817578882, + "calibration": { + "observed_rate": 0.0021390374331550803, + "mean_prediction": 0.0011930402815084633, + "calibration_in_the_large": -0.000945997151646617, + "expected_calibration_error_10bin": 0.000945997151646617, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "G47": { + "valid": 2315, + "positives": 82, + "negatives": 2233, + "auroc": 0.6830961301104278, + "auprc": 0.0743070750954072, + "brier": 0.03371197196951344, + "calibration": { + "observed_rate": 0.035421166306695465, + "mean_prediction": 0.029040763225958565, + "calibration_in_the_large": -0.0063804030807369, + "expected_calibration_error_10bin": 0.007801740583043431, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8142806894125924 + }, + "G51": { + "valid": 2834, + "positives": 0, + "negatives": 2834, + "auroc": null, + "auprc": null, + "brier": 3.835583179620045e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0005081163146934815, + "calibration_in_the_large": 0.0005081163146934815, + "expected_calibration_error_10bin": 0.0005081163146934815, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9968343299331692 + }, + "G62": { + "valid": 2751, + "positives": 33, + "negatives": 2718, + "auroc": 0.808705153076014, + "auprc": 0.09096881588013281, + "brier": 0.011507253201620955, + "calibration": { + "observed_rate": 0.011995637949836423, + "mean_prediction": 0.007063517637465043, + "calibration_in_the_large": -0.00493212031237138, + "expected_calibration_error_10bin": 0.006506111520220792, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "G81": { + "valid": 2789, + "positives": 14, + "negatives": 2775, + "auroc": 0.7412612612612612, + "auprc": 0.04852314358318335, + "brier": 0.004944538806335181, + "calibration": { + "observed_rate": 0.005019720329867336, + "mean_prediction": 0.0032924069908846754, + "calibration_in_the_large": -0.0017273133389826604, + "expected_calibration_error_10bin": 0.0018176951273951051, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "G83": { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.6341722793335697, + "auprc": 0.005490346912213833, + "brier": 0.0010630988980080234, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.001243398719519659, + "calibration_in_the_large": 0.00018107577334402158, + "expected_calibration_error_10bin": 0.00018107577334402158, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "G89": { + "valid": 2537, + "positives": 59, + "negatives": 2478, + "auroc": 0.7899413140723109, + "auprc": 0.08692695984119325, + "brier": 0.022073743474343075, + "calibration": { + "observed_rate": 0.023255813953488372, + "mean_prediction": 0.01655532263677217, + "calibration_in_the_large": -0.006700491316716201, + "expected_calibration_error_10bin": 0.0070976834892843, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8923672177277524 + }, + "G90": { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 1.1610446308827127e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0015917906446781043, + "calibration_in_the_large": 0.0015917906446781043, + "expected_calibration_error_10bin": 0.0015917906446781043, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "G92": { + "valid": 2733, + "positives": 39, + "negatives": 2694, + "auroc": 0.798831210857937, + "auprc": 0.04582496019911334, + "brier": 0.013888003427460487, + "calibration": { + "observed_rate": 0.014270032930845226, + "mean_prediction": 0.012161584151154804, + "calibration_in_the_large": -0.002108448779690422, + "expected_calibration_error_10bin": 0.002586414713121677, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + "G93": { + "valid": 2656, + "positives": 45, + "negatives": 2611, + "auroc": 0.8027830971530704, + "auprc": 0.058908004783203, + "brier": 0.016309433508615218, + "calibration": { + "observed_rate": 0.01694277108433735, + "mean_prediction": 0.013157214540706811, + "calibration_in_the_large": -0.003785556543630537, + "expected_calibration_error_10bin": 0.004103278463022786, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9342244108336265 + }, + "G99": { + "valid": 2841, + "positives": 1, + "negatives": 2840, + "auroc": 0.40774647887323945, + "auprc": 0.0005941770647653001, + "brier": 0.0003535813646411379, + "calibration": { + "observed_rate": 0.00035198873636043646, + "mean_prediction": 0.0004280041122561732, + "calibration_in_the_large": 7.601537589573676e-05, + "expected_calibration_error_10bin": 7.601537589573676e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9992965177629265 + }, + "H10": { + "valid": 2832, + "positives": 5, + "negatives": 2827, + "auroc": 0.8253979483551468, + "auprc": 0.007126088854671973, + "brier": 0.0017606657330966797, + "calibration": { + "observed_rate": 0.0017655367231638418, + "mean_prediction": 0.000928314052482992, + "calibration_in_the_large": -0.0008372226706808498, + "expected_calibration_error_10bin": 0.0008372226706808498, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + "H26": { + "valid": 2819, + "positives": 0, + "negatives": 2819, + "auroc": null, + "auprc": null, + "brier": 1.3630997692630187e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.001857177722649399, + "calibration_in_the_large": 0.001857177722649399, + "expected_calibration_error_10bin": 0.001857177722649399, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "H35": { + "valid": 2806, + "positives": 5, + "negatives": 2801, + "auroc": 0.6943234559086041, + "auprc": 0.004643215168607441, + "brier": 0.0017803356241853172, + "calibration": { + "observed_rate": 0.001781895937277263, + "mean_prediction": 0.0011962237312385597, + "calibration_in_the_large": -0.0005856722060387034, + "expected_calibration_error_10bin": 0.0005856722060387034, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "H40": { + "valid": 2750, + "positives": 9, + "negatives": 2741, + "auroc": 0.6817057845879444, + "auprc": 0.0287351290343712, + "brier": 0.0032483530990273304, + "calibration": { + "observed_rate": 0.0032727272727272726, + "mean_prediction": 0.0037291070929052444, + "calibration_in_the_large": 0.0004563798201779718, + "expected_calibration_error_10bin": 0.0004563798201779718, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + "H53": { + "valid": 2790, + "positives": 11, + "negatives": 2779, + "auroc": 0.5307010369982662, + "auprc": 0.011216057278623964, + "brier": 0.003943080942634277, + "calibration": { + "observed_rate": 0.003942652329749104, + "mean_prediction": 0.004896611839409344, + "calibration_in_the_large": 0.0009539595096602392, + "expected_calibration_error_10bin": 0.0009539595096602392, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + "H54": { + "valid": 2809, + "positives": 2, + "negatives": 2807, + "auroc": 0.44584966156038475, + "auprc": 0.0009887641543182687, + "brier": 0.0007158084397271767, + "calibration": { + "observed_rate": 0.000711997152011392, + "mean_prediction": 0.0011333102160396796, + "calibration_in_the_large": 0.00042131306402828765, + "expected_calibration_error_10bin": 0.00042131306402828765, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "H91": { + "valid": 2791, + "positives": 7, + "negatives": 2784, + "auroc": 0.8144499178981938, + "auprc": 0.01920014717698328, + "brier": 0.0024880193433464317, + "calibration": { + "observed_rate": 0.0025080616266571123, + "mean_prediction": 0.0018577493955735486, + "calibration_in_the_large": -0.0006503122310835636, + "expected_calibration_error_10bin": 0.0006503122310835636, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9817094618360886 + }, + "I07": { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.8459945568571766, + "auprc": 0.012197988290656799, + "brier": 0.002116152124138082, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0010779222801554449, + "calibration_in_the_large": -0.0010474762320655964, + "expected_calibration_error_10bin": 0.0010474762320655964, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "I08": { + "valid": 2767, + "positives": 12, + "negatives": 2755, + "auroc": 0.8544162129461585, + "auprc": 0.024137852761356538, + "brier": 0.004349621286332078, + "calibration": { + "observed_rate": 0.0043368268883267076, + "mean_prediction": 0.004540097002318153, + "calibration_in_the_large": 0.0002032701139914458, + "expected_calibration_error_10bin": 0.0006123617353598783, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9732676749912065 + }, + "I10": { + "valid": 1498, + "positives": 38, + "negatives": 1460, + "auroc": 0.691492429704398, + "auprc": 0.05457900074588573, + "brier": 0.024535187036717115, + "calibration": { + "observed_rate": 0.025367156208277702, + "mean_prediction": 0.021247693935818896, + "calibration_in_the_large": -0.004119462272458806, + "expected_calibration_error_10bin": 0.005561252354407366, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5269081955680619 + }, + "I11": { + "valid": 2676, + "positives": 45, + "negatives": 2631, + "auroc": 0.8163773808015541, + "auprc": 0.06971991443996693, + "brier": 0.016208731194444933, + "calibration": { + "observed_rate": 0.016816143497757848, + "mean_prediction": 0.013603260493423796, + "calibration_in_the_large": -0.003212883004334052, + "expected_calibration_error_10bin": 0.005960305787386312, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9412592332043616 + }, + "I12": { + "valid": 2552, + "positives": 26, + "negatives": 2526, + "auroc": 0.8623545891954443, + "auprc": 0.09599860066191897, + "brier": 0.009773331237522357, + "calibration": { + "observed_rate": 0.01018808777429467, + "mean_prediction": 0.009447136316287635, + "calibration_in_the_large": -0.0007409514580070352, + "expected_calibration_error_10bin": 0.003304125950847145, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8976433345058037 + }, + "I13": { + "valid": 2727, + "positives": 26, + "negatives": 2701, + "auroc": 0.9013470794292712, + "auprc": 0.1520339219707502, + "brier": 0.008704237417817963, + "calibration": { + "observed_rate": 0.009534286762009535, + "mean_prediction": 0.011338791767814835, + "calibration_in_the_large": 0.0018045050058053003, + "expected_calibration_error_10bin": 0.003555660759844997, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9591980302497362 + }, + "I16": { + "valid": 2390, + "positives": 10, + "negatives": 2380, + "auroc": 0.868109243697479, + "auprc": 0.02206817749997245, + "brier": 0.004144415919731645, + "calibration": { + "observed_rate": 0.0041841004184100415, + "mean_prediction": 0.0034239464753246392, + "calibration_in_the_large": -0.0007601539430854023, + "expected_calibration_error_10bin": 0.0007601539430854023, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8406612733028491 + }, + "I21": { + "valid": 2671, + "positives": 19, + "negatives": 2652, + "auroc": 0.8386520600142892, + "auprc": 0.029812699061071528, + "brier": 0.007117820690993905, + "calibration": { + "observed_rate": 0.00711344065892924, + "mean_prediction": 0.012398850327400124, + "calibration_in_the_large": 0.005285409668470884, + "expected_calibration_error_10bin": 0.005285409668470882, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + "I24": { + "valid": 2809, + "positives": 8, + "negatives": 2801, + "auroc": 0.8753123884327026, + "auprc": 0.022268223712069084, + "brier": 0.00281956323999062, + "calibration": { + "observed_rate": 0.002847988608045568, + "mean_prediction": 0.0025973938884876722, + "calibration_in_the_large": -0.0002505947195578957, + "expected_calibration_error_10bin": 0.0002505947195578957, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "I25": { + "valid": 2243, + "positives": 40, + "negatives": 2203, + "auroc": 0.8482183386291421, + "auprc": 0.08653115812013493, + "brier": 0.016990691724371357, + "calibration": { + "observed_rate": 0.017833259028087384, + "mean_prediction": 0.012370289017066575, + "calibration_in_the_large": -0.0054629700110208086, + "expected_calibration_error_10bin": 0.005943721936124452, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7889553288779458 + }, + "I26": { + "valid": 2760, + "positives": 17, + "negatives": 2743, + "auroc": 0.7449550728056443, + "auprc": 0.14431707792100373, + "brier": 0.0058467598594888655, + "calibration": { + "observed_rate": 0.006159420289855073, + "mean_prediction": 0.008691304733229512, + "calibration_in_the_large": 0.0025318844433744395, + "expected_calibration_error_10bin": 0.004139373883478676, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9708054871614492 + }, + "I27": { + "valid": 2716, + "positives": 31, + "negatives": 2685, + "auroc": 0.8368234516729741, + "auprc": 0.06268144992490167, + "brier": 0.011095334173905765, + "calibration": { + "observed_rate": 0.011413843888070692, + "mean_prediction": 0.008207219004670578, + "calibration_in_the_large": -0.0032066248834001134, + "expected_calibration_error_10bin": 0.0038331922669780825, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + "I31": { + "valid": 2793, + "positives": 16, + "negatives": 2777, + "auroc": 0.7754321209938783, + "auprc": 0.017106644335185602, + "brier": 0.005691995306511312, + "calibration": { + "observed_rate": 0.005728607232366631, + "mean_prediction": 0.0034491879056756467, + "calibration_in_the_large": -0.0022794193266909846, + "expected_calibration_error_10bin": 0.0022794193266909846, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "I34": { + "valid": 2753, + "positives": 16, + "negatives": 2737, + "auroc": 0.7536079649251005, + "auprc": 0.015197806700420253, + "brier": 0.0059441463709133755, + "calibration": { + "observed_rate": 0.005811841627315656, + "mean_prediction": 0.007415108126053239, + "calibration_in_the_large": 0.0016032664987375832, + "expected_calibration_error_10bin": 0.0016032664987375835, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9683432993316918 + }, + "I35": { + "valid": 2723, + "positives": 6, + "negatives": 2717, + "auroc": 0.6734143049932524, + "auprc": 0.007345726464098677, + "brier": 0.002228409096407755, + "calibration": { + "observed_rate": 0.0022034520749173708, + "mean_prediction": 0.0033696022162930605, + "calibration_in_the_large": 0.0011661501413756897, + "expected_calibration_error_10bin": 0.0011661501413756897, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + "I42": { + "valid": 2740, + "positives": 12, + "negatives": 2728, + "auroc": 0.9170637829912024, + "auprc": 0.03612600131114042, + "brier": 0.004306020349273183, + "calibration": { + "observed_rate": 0.004379562043795621, + "mean_prediction": 0.003910108671919985, + "calibration_in_the_large": -0.00046945337187563607, + "expected_calibration_error_10bin": 0.0006444981336151442, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + "I44": { + "valid": 2722, + "positives": 21, + "negatives": 2701, + "auroc": 0.8445901870559405, + "auprc": 0.04326833508088206, + "brier": 0.007541452981542096, + "calibration": { + "observed_rate": 0.007714915503306392, + "mean_prediction": 0.00514727423209984, + "calibration_in_the_large": -0.0025676412712065527, + "expected_calibration_error_10bin": 0.0025676412712065527, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9574393246570524 + }, + "I45": { + "valid": 2766, + "positives": 16, + "negatives": 2750, + "auroc": 0.6639772727272727, + "auprc": 0.00927763394568392, + "brier": 0.005770880175782014, + "calibration": { + "observed_rate": 0.005784526391901663, + "mean_prediction": 0.0050026361217373975, + "calibration_in_the_large": -0.0007818902701642655, + "expected_calibration_error_10bin": 0.0007818902701642655, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9729159338726697 + }, + "I46": { + "valid": 2831, + "positives": 2, + "negatives": 2829, + "auroc": 0.8071756804524567, + "auprc": 0.003076325394817679, + "brier": 0.0007064071760235292, + "calibration": { + "observed_rate": 0.0007064641469445425, + "mean_prediction": 0.0009023582537068831, + "calibration_in_the_large": 0.00019589410676234056, + "expected_calibration_error_10bin": 0.00019589410676234056, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "I47": { + "valid": 2716, + "positives": 16, + "negatives": 2700, + "auroc": 0.6429166666666667, + "auprc": 0.008979692031002547, + "brier": 0.005931020185576763, + "calibration": { + "observed_rate": 0.005891016200294551, + "mean_prediction": 0.008211117575179295, + "calibration_in_the_large": 0.0023201013748847445, + "expected_calibration_error_10bin": 0.0023201013748847445, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + "I48": { + "valid": 2385, + "positives": 25, + "negatives": 2360, + "auroc": 0.7470847457627119, + "auprc": 0.02725602705852004, + "brier": 0.010877384280444439, + "calibration": { + "observed_rate": 0.010482180293501049, + "mean_prediction": 0.01668672279821891, + "calibration_in_the_large": 0.00620454250471786, + "expected_calibration_error_10bin": 0.006204542504717862, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8389025677101654 + }, + "I49": { + "valid": 2734, + "positives": 17, + "negatives": 2717, + "auroc": 0.6564550001082509, + "auprc": 0.010345803903190287, + "brier": 0.0061957941752183825, + "calibration": { + "observed_rate": 0.006217995610826628, + "mean_prediction": 0.0043230139232827295, + "calibration_in_the_large": -0.0018949816875438981, + "expected_calibration_error_10bin": 0.0018949816875438981, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "I50": { + "valid": 2415, + "positives": 44, + "negatives": 2371, + "auroc": 0.8094877497028489, + "auprc": 0.07306856966538222, + "brier": 0.017935484248932675, + "calibration": { + "observed_rate": 0.018219461697722567, + "mean_prediction": 0.018528099537868773, + "calibration_in_the_large": 0.00030863784014620657, + "expected_calibration_error_10bin": 0.0047571015306283266, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.849454801266268 + }, + "I51": { + "valid": 2807, + "positives": 7, + "negatives": 2800, + "auroc": 0.7886224489795919, + "auprc": 0.009527587563461412, + "brier": 0.0024861560898470944, + "calibration": { + "observed_rate": 0.0024937655860349127, + "mean_prediction": 0.00214259464696652, + "calibration_in_the_large": -0.00035117093906839253, + "expected_calibration_error_10bin": 0.00035117093906839253, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "I61": { + "valid": 2802, + "positives": 8, + "negatives": 2794, + "auroc": 0.8320060844667144, + "auprc": 0.014922933901946768, + "brier": 0.0028391122829296584, + "calibration": { + "observed_rate": 0.0028551034975017845, + "mean_prediction": 0.0017752122422462825, + "calibration_in_the_large": -0.001079891255255502, + "expected_calibration_error_10bin": 0.001079891255255502, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "I63": { + "valid": 2735, + "positives": 14, + "negatives": 2721, + "auroc": 0.7499081220139655, + "auprc": 0.015481272904110704, + "brier": 0.005092611214873918, + "calibration": { + "observed_rate": 0.005118829981718464, + "mean_prediction": 0.004628090777600306, + "calibration_in_the_large": -0.0004907392041181586, + "expected_calibration_error_10bin": 0.0004907392041181586, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9620119591980303 + }, + "I65": { + "valid": 2774, + "positives": 6, + "negatives": 2768, + "auroc": 0.7039378612716763, + "auprc": 0.00844037299697149, + "brier": 0.002191168400052638, + "calibration": { + "observed_rate": 0.0021629416005767843, + "mean_prediction": 0.004710971642050315, + "calibration_in_the_large": 0.002548030041473531, + "expected_calibration_error_10bin": 0.002548030041473531, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "I67": { + "valid": 2773, + "positives": 3, + "negatives": 2770, + "auroc": 0.7669073405535499, + "auprc": 0.004551284169514056, + "brier": 0.001117913598545997, + "calibration": { + "observed_rate": 0.0010818608005769925, + "mean_prediction": 0.003213923339203688, + "calibration_in_the_large": 0.002132062538626696, + "expected_calibration_error_10bin": 0.002132062538626696, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + "I69": { + "valid": 2752, + "positives": 16, + "negatives": 2736, + "auroc": 0.7297377558479532, + "auprc": 0.021709197950174234, + "brier": 0.005786949972112701, + "calibration": { + "observed_rate": 0.005813953488372093, + "mean_prediction": 0.0054113601144015165, + "calibration_in_the_large": -0.00040259337397057643, + "expected_calibration_error_10bin": 0.0006696447779660936, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9679915582131551 + }, + "I70": { + "valid": 2771, + "positives": 12, + "negatives": 2759, + "auroc": 0.8255708590068865, + "auprc": 0.03636503420025636, + "brier": 0.004265179591329044, + "calibration": { + "observed_rate": 0.004330566582461205, + "mean_prediction": 0.0037102718279631653, + "calibration_in_the_large": -0.00062029475449804, + "expected_calibration_error_10bin": 0.0009723741642181455, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9746746394653535 + }, + "I71": { + "valid": 2769, + "positives": 5, + "negatives": 2764, + "auroc": 0.73205499276411, + "auprc": 0.011189730182682048, + "brier": 0.0018094163817533831, + "calibration": { + "observed_rate": 0.0018057060310581437, + "mean_prediction": 0.003388057164624064, + "calibration_in_the_large": 0.0015823511335659201, + "expected_calibration_error_10bin": 0.0015823511335659201, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.97397115722828 + }, + "I72": { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.7124229492650546, + "auprc": 0.0111792193297654, + "brier": 0.0021216122067557, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.0016374744333992497, + "calibration_in_the_large": -0.00049169519044745, + "expected_calibration_error_10bin": 0.00049169519044745, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "I73": { + "valid": 2734, + "positives": 8, + "negatives": 2726, + "auroc": 0.8353815113719736, + "auprc": 0.04500657225636205, + "brier": 0.0029176708152469045, + "calibration": { + "observed_rate": 0.002926115581565472, + "mean_prediction": 0.005291224112317016, + "calibration_in_the_large": 0.0023651085307515437, + "expected_calibration_error_10bin": 0.0023651085307515437, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "I74": { + "valid": 2821, + "positives": 5, + "negatives": 2816, + "auroc": 0.7792613636363637, + "auprc": 0.012138426217219105, + "brier": 0.0017655405037541958, + "calibration": { + "observed_rate": 0.001772421127259837, + "mean_prediction": 0.0009634913935723931, + "calibration_in_the_large": -0.0008089297336874438, + "expected_calibration_error_10bin": 0.0008089297336874438, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "I77": { + "valid": 2785, + "positives": 6, + "negatives": 2779, + "auroc": 0.6472352165047379, + "auprc": 0.006228516372839864, + "brier": 0.002157142262771432, + "calibration": { + "observed_rate": 0.0021543985637342907, + "mean_prediction": 0.0027461312649438943, + "calibration_in_the_large": 0.0005917327012096036, + "expected_calibration_error_10bin": 0.0005917327012096036, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "I80": { + "valid": 2827, + "positives": 5, + "negatives": 2822, + "auroc": 0.9192062367115521, + "auprc": 0.06039682788856231, + "brier": 0.0017464930263824195, + "calibration": { + "observed_rate": 0.0017686593562079944, + "mean_prediction": 0.001061000942220155, + "calibration_in_the_large": -0.0007076584139878394, + "expected_calibration_error_10bin": 0.0007076584139878394, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "I81": { + "valid": 2826, + "positives": 8, + "negatives": 2818, + "auroc": 0.8131210078069553, + "auprc": 0.0257740789415606, + "brier": 0.002864952147134291, + "calibration": { + "observed_rate": 0.0028308563340410475, + "mean_prediction": 0.0017947472181709544, + "calibration_in_the_large": -0.0010361091158700932, + "expected_calibration_error_10bin": 0.0019223482642037513, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "I82": { + "valid": 2739, + "positives": 32, + "negatives": 2707, + "auroc": 0.74906492427041, + "auprc": 0.03988743763426582, + "brier": 0.011431318924197402, + "calibration": { + "observed_rate": 0.011683096020445418, + "mean_prediction": 0.008624481660239396, + "calibration_in_the_large": -0.0030586143602060224, + "expected_calibration_error_10bin": 0.003976289810525115, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + "I85": { + "valid": 2793, + "positives": 9, + "negatives": 2784, + "auroc": 0.9882263729246488, + "auprc": 0.30653398486545186, + "brier": 0.0028621970780061483, + "calibration": { + "observed_rate": 0.00322234156820623, + "mean_prediction": 0.0014076585681316825, + "calibration_in_the_large": -0.0018146830000745475, + "expected_calibration_error_10bin": 0.002343143670693246, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "I87": { + "valid": 2780, + "positives": 12, + "negatives": 2768, + "auroc": 0.6794918111753372, + "auprc": 0.010200894108909295, + "brier": 0.004302028971995632, + "calibration": { + "observed_rate": 0.004316546762589928, + "mean_prediction": 0.0028411537198794346, + "calibration_in_the_large": -0.0014753930427104933, + "expected_calibration_error_10bin": 0.0014753930427104933, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + "I89": { + "valid": 2826, + "positives": 5, + "negatives": 2821, + "auroc": 0.8535980148883374, + "auprc": 0.0070901344855749445, + "brier": 0.0017650665559646992, + "calibration": { + "observed_rate": 0.0017692852087756545, + "mean_prediction": 0.0009000251484275461, + "calibration_in_the_large": -0.0008692600603481084, + "expected_calibration_error_10bin": 0.0008692600603481084, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "I95": { + "valid": 2485, + "positives": 87, + "negatives": 2398, + "auroc": 0.7453193753415203, + "auprc": 0.09202832085592401, + "brier": 0.03290446635904798, + "calibration": { + "observed_rate": 0.03501006036217304, + "mean_prediction": 0.030464860423040807, + "calibration_in_the_large": -0.00454519993913223, + "expected_calibration_error_10bin": 0.00454519993913223, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.874076679563841 + }, + "I96": { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.7862703467799009, + "auprc": 0.2108492098121315, + "brier": 0.0017338973330878805, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.0015259826665399987, + "calibration_in_the_large": -0.0002401777008213576, + "expected_calibration_error_10bin": 0.0002401777008213576, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "I97": { + "valid": 2740, + "positives": 10, + "negatives": 2730, + "auroc": 0.7256410256410256, + "auprc": 0.0109228091847287, + "brier": 0.0036440843179714553, + "calibration": { + "observed_rate": 0.0036496350364963502, + "mean_prediction": 0.004096706173609794, + "calibration_in_the_large": 0.00044707113711344414, + "expected_calibration_error_10bin": 0.00044707113711344414, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + "J02": { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.7807297201558625, + "auprc": 0.0023497129028947385, + "brier": 0.0007227711069319542, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.001392172265713375, + "calibration_in_the_large": 0.0006842076639434635, + "expected_calibration_error_10bin": 0.0006842076639434635, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J06": { + "valid": 2816, + "positives": 8, + "negatives": 2808, + "auroc": 0.6372863247863247, + "auprc": 0.00913354962929751, + "brier": 0.002867759779673589, + "calibration": { + "observed_rate": 0.002840909090909091, + "mean_prediction": 0.0031395403015039847, + "calibration_in_the_large": 0.0002986312105948937, + "expected_calibration_error_10bin": 0.0002986312105948939, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "J12": { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 6.69904320259068e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.002643004378440701, + "calibration_in_the_large": 0.002643004378440701, + "expected_calibration_error_10bin": 0.002643004378440701, + "nonempty_bins": 3 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J15": { + "valid": 2795, + "positives": 14, + "negatives": 2781, + "auroc": 0.7162377356552114, + "auprc": 0.012683286685524693, + "brier": 0.004992243136932619, + "calibration": { + "observed_rate": 0.005008944543828265, + "mean_prediction": 0.0029541470194002066, + "calibration_in_the_large": -0.0020547975244280584, + "expected_calibration_error_10bin": 0.0020547975244280584, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9831164263102357 + }, + "J18": { + "valid": 2671, + "positives": 52, + "negatives": 2619, + "auroc": 0.7728140511645666, + "auprc": 0.05838948674209327, + "brier": 0.01882440241453988, + "calibration": { + "observed_rate": 0.019468363908648447, + "mean_prediction": 0.013043661078639895, + "calibration_in_the_large": -0.006424702830008552, + "expected_calibration_error_10bin": 0.0070592996696505475, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + "J30": { + "valid": 2815, + "positives": 7, + "negatives": 2808, + "auroc": 0.7208994708994709, + "auprc": 0.018877209886711935, + "brier": 0.0024736434274639646, + "calibration": { + "observed_rate": 0.002486678507992895, + "mean_prediction": 0.0012659574656745834, + "calibration_in_the_large": -0.0012207210423183117, + "expected_calibration_error_10bin": 0.0012207210423183117, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + "J32": { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.5284754156349487, + "auprc": 0.0036235789257576924, + "brier": 0.0007152188631413864, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0011984310986574316, + "calibration_in_the_large": 0.0004914675072823874, + "expected_calibration_error_10bin": 0.0004914675072823874, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J38": { + "valid": 2825, + "positives": 3, + "negatives": 2822, + "auroc": 0.8341601700921333, + "auprc": 0.010034062642601033, + "brier": 0.0010595764731102153, + "calibration": { + "observed_rate": 0.0010619469026548673, + "mean_prediction": 0.001398535865749914, + "calibration_in_the_large": 0.0003365889630950467, + "expected_calibration_error_10bin": 0.0003365889630950467, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J43": { + "valid": 2804, + "positives": 8, + "negatives": 2796, + "auroc": 0.6658172389127325, + "auprc": 0.015995400674637398, + "brier": 0.002837759748959647, + "calibration": { + "observed_rate": 0.0028530670470756064, + "mean_prediction": 0.0027038441232148302, + "calibration_in_the_large": -0.00014922292386077615, + "expected_calibration_error_10bin": 0.00014922292386077615, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "J44": { + "valid": 2570, + "positives": 24, + "negatives": 2546, + "auroc": 0.8255269704111023, + "auprc": 0.04620734122178715, + "brier": 0.009147019859683869, + "calibration": { + "observed_rate": 0.00933852140077821, + "mean_prediction": 0.008202258725785581, + "calibration_in_the_large": -0.0011362626749926285, + "expected_calibration_error_10bin": 0.002254935473572397, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9039746746394653 + }, + "J45": { + "valid": 2518, + "positives": 22, + "negatives": 2496, + "auroc": 0.6848412004662005, + "auprc": 0.02220559334590075, + "brier": 0.008674498819152136, + "calibration": { + "observed_rate": 0.008737092930897538, + "mean_prediction": 0.006992576850880184, + "calibration_in_the_large": -0.0017445160800173536, + "expected_calibration_error_10bin": 0.0021175962161134806, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.885684136475554 + }, + "J47": { + "valid": 2825, + "positives": 6, + "negatives": 2819, + "auroc": 0.7936029324819676, + "auprc": 0.009920527777023251, + "brier": 0.0021194302121022206, + "calibration": { + "observed_rate": 0.0021238938053097347, + "mean_prediction": 0.0005533187315749761, + "calibration_in_the_large": -0.0015705750737347586, + "expected_calibration_error_10bin": 0.0015705750737347586, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J69": { + "valid": 2777, + "positives": 26, + "negatives": 2751, + "auroc": 0.7488605542040656, + "auprc": 0.026952720894693267, + "brier": 0.009226355941744842, + "calibration": { + "observed_rate": 0.009362621534029529, + "mean_prediction": 0.005643884987317204, + "calibration_in_the_large": -0.003718736546712325, + "expected_calibration_error_10bin": 0.003718736546712325, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + "J81": { + "valid": 2781, + "positives": 19, + "negatives": 2762, + "auroc": 0.8076717862723427, + "auprc": 0.055065624336929096, + "brier": 0.006693941493815913, + "calibration": { + "observed_rate": 0.0068320747932398415, + "mean_prediction": 0.0044349315823444275, + "calibration_in_the_large": -0.002397143210895414, + "expected_calibration_error_10bin": 0.002397143210895414, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + "J84": { + "valid": 2817, + "positives": 7, + "negatives": 2810, + "auroc": 0.9044229791560753, + "auprc": 0.017155604805650336, + "brier": 0.0024630217140998493, + "calibration": { + "observed_rate": 0.0024849130280440185, + "mean_prediction": 0.002450070453840625, + "calibration_in_the_large": -3.484257420339337e-05, + "expected_calibration_error_10bin": 3.484257420339337e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "J90": { + "valid": 2754, + "positives": 31, + "negatives": 2723, + "auroc": 0.6804165235212586, + "auprc": 0.021062686153201025, + "brier": 0.011206610879292329, + "calibration": { + "observed_rate": 0.011256354393609296, + "mean_prediction": 0.007182801976311858, + "calibration_in_the_large": -0.004073552417297438, + "expected_calibration_error_10bin": 0.004828801020775414, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9686950404502286 + }, + "J91": { + "valid": 2807, + "positives": 10, + "negatives": 2797, + "auroc": 0.81515909903468, + "auprc": 0.03242613193382433, + "brier": 0.0035341088895769384, + "calibration": { + "observed_rate": 0.003562522265764161, + "mean_prediction": 0.0037881467083600317, + "calibration_in_the_large": 0.00022562444259587077, + "expected_calibration_error_10bin": 0.0005379377537847365, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "J94": { + "valid": 2829, + "positives": 10, + "negatives": 2819, + "auroc": 0.6822277403334516, + "auprc": 0.10594496996954203, + "brier": 0.003493714818266965, + "calibration": { + "observed_rate": 0.003534817956875221, + "mean_prediction": 0.0005483489383997509, + "calibration_in_the_large": -0.00298646901847547, + "expected_calibration_error_10bin": 0.00298646901847547, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J95": { + "valid": 2770, + "positives": 13, + "negatives": 2757, + "auroc": 0.8244747635389638, + "auprc": 0.033294706775951095, + "brier": 0.004630790918493728, + "calibration": { + "observed_rate": 0.004693140794223827, + "mean_prediction": 0.003363060950995522, + "calibration_in_the_large": -0.0013300798432283045, + "expected_calibration_error_10bin": 0.0013300798432283045, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9743228983468167 + }, + "J96": { + "valid": 2605, + "positives": 68, + "negatives": 2537, + "auroc": 0.8352500637622018, + "auprc": 0.12153729126010833, + "brier": 0.024269856810256004, + "calibration": { + "observed_rate": 0.026103646833013437, + "mean_prediction": 0.017504570381882918, + "calibration_in_the_large": -0.008599076451130519, + "expected_calibration_error_10bin": 0.008720686709584383, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9162856137882518 + }, + "J98": { + "valid": 2692, + "positives": 34, + "negatives": 2658, + "auroc": 0.7451976275837648, + "auprc": 0.04358095292434753, + "brier": 0.012369566907109296, + "calibration": { + "observed_rate": 0.01263001485884101, + "mean_prediction": 0.006999277724419416, + "calibration_in_the_large": -0.005630737134421595, + "expected_calibration_error_10bin": 0.005630737134421595, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9468870911009497 + }, + "K04": { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.894318983768525, + "auprc": 0.05168918918918919, + "brier": 0.0007008467872658383, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.0004914865797504287, + "calibration_in_the_large": -0.00021373203802108043, + "expected_calibration_error_10bin": 0.00021373203802108043, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "K12": { + "valid": 2824, + "positives": 14, + "negatives": 2810, + "auroc": 0.9048296898830707, + "auprc": 0.09304032877549606, + "brier": 0.005172480988935684, + "calibration": { + "observed_rate": 0.004957507082152974, + "mean_prediction": 0.0040571779671362915, + "calibration_in_the_large": -0.0009003291150166829, + "expected_calibration_error_10bin": 0.0036795983893936294, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "K20": { + "valid": 2813, + "positives": 10, + "negatives": 2803, + "auroc": 0.7246164823403496, + "auprc": 0.02114838552985849, + "brier": 0.003573808467979494, + "calibration": { + "observed_rate": 0.0035549235691432635, + "mean_prediction": 0.0036634264070146126, + "calibration_in_the_large": 0.00010850283787134903, + "expected_calibration_error_10bin": 0.0007247488912012108, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K21": { + "valid": 2043, + "positives": 76, + "negatives": 1967, + "auroc": 0.7371096781098654, + "auprc": 0.13902210039797175, + "brier": 0.03444130937025203, + "calibration": { + "observed_rate": 0.03720019579050416, + "mean_prediction": 0.030408940472247147, + "calibration_in_the_large": -0.006791255318257014, + "expected_calibration_error_10bin": 0.006791255318257016, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7186071051705945 + }, + "K22": { + "valid": 2764, + "positives": 17, + "negatives": 2747, + "auroc": 0.7984539283496435, + "auprc": 0.032102379619004015, + "brier": 0.0060796408035826465, + "calibration": { + "observed_rate": 0.006150506512301013, + "mean_prediction": 0.002804418124993369, + "calibration_in_the_large": -0.0033460883873076444, + "expected_calibration_error_10bin": 0.0033460883873076444, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9722124516355962 + }, + "K25": { + "valid": 2817, + "positives": 6, + "negatives": 2811, + "auroc": 0.7404245227084074, + "auprc": 0.006673478565863102, + "brier": 0.0021396320515496194, + "calibration": { + "observed_rate": 0.002129925452609159, + "mean_prediction": 0.0016530161735875215, + "calibration_in_the_large": -0.00047690927902163736, + "expected_calibration_error_10bin": 0.0005557601038452433, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "K26": { + "valid": 2814, + "positives": 6, + "negatives": 2808, + "auroc": 0.9256885090218424, + "auprc": 0.19077823697662255, + "brier": 0.0020681651065801955, + "calibration": { + "observed_rate": 0.0021321961620469083, + "mean_prediction": 0.002239591520800319, + "calibration_in_the_large": 0.0001073953587534108, + "expected_calibration_error_10bin": 0.0001073953587534108, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "K29": { + "valid": 2785, + "positives": 12, + "negatives": 2773, + "auroc": 0.6808811155186921, + "auprc": 0.023067716787034762, + "brier": 0.0042762651339898535, + "calibration": { + "observed_rate": 0.004308797127468581, + "mean_prediction": 0.004240430941499784, + "calibration_in_the_large": -6.836618596879705e-05, + "expected_calibration_error_10bin": 0.00015100421103859116, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K30": { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.9199294532627866, + "auprc": 0.006407132122984444, + "brier": 0.0007047302447314072, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0008078930588615874, + "calibration_in_the_large": 0.00010292302008823532, + "expected_calibration_error_10bin": 0.00010292302008823532, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + "K31": { + "valid": 2756, + "positives": 18, + "negatives": 2738, + "auroc": 0.8822944566187809, + "auprc": 0.09034086925402379, + "brier": 0.006311572860792329, + "calibration": { + "observed_rate": 0.006531204644412192, + "mean_prediction": 0.004408942132455044, + "calibration_in_the_large": -0.0021222625119571474, + "expected_calibration_error_10bin": 0.002803475000167573, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + "K40": { + "valid": 2827, + "positives": 3, + "negatives": 2824, + "auroc": 0.9236307837582625, + "auprc": 0.06429618565540896, + "brier": 0.001045978647476216, + "calibration": { + "observed_rate": 0.0010611956137247967, + "mean_prediction": 0.0009392716753593656, + "calibration_in_the_large": -0.00012192393836543106, + "expected_calibration_error_10bin": 0.00012192393836543106, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "K42": { + "valid": 2820, + "positives": 6, + "negatives": 2814, + "auroc": 0.7508291873963516, + "auprc": 0.029688048302791505, + "brier": 0.0021168601944922785, + "calibration": { + "observed_rate": 0.002127659574468085, + "mean_prediction": 0.0009755445543195886, + "calibration_in_the_large": -0.0011521150201484966, + "expected_calibration_error_10bin": 0.0011521150201484966, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + "K43": { + "valid": 2813, + "positives": 7, + "negatives": 2806, + "auroc": 0.766367986966704, + "auprc": 0.029993813394556566, + "brier": 0.0024618675659977634, + "calibration": { + "observed_rate": 0.002488446498400284, + "mean_prediction": 0.0016335384942292351, + "calibration_in_the_large": -0.0008549080041710491, + "expected_calibration_error_10bin": 0.0008549080041710491, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K44": { + "valid": 2785, + "positives": 6, + "negatives": 2779, + "auroc": 0.7198632601655272, + "auprc": 0.008439728401935088, + "brier": 0.0021481632621137415, + "calibration": { + "observed_rate": 0.0021543985637342907, + "mean_prediction": 0.0021269717610645344, + "calibration_in_the_large": -2.7426802669756282e-05, + "expected_calibration_error_10bin": 2.7426802669756282e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K52": { + "valid": 2749, + "positives": 35, + "negatives": 2714, + "auroc": 0.8181387514475208, + "auprc": 0.09314193147553791, + "brier": 0.012251393389871914, + "calibration": { + "observed_rate": 0.012731902510003638, + "mean_prediction": 0.008736923545616643, + "calibration_in_the_large": -0.003994978964386995, + "expected_calibration_error_10bin": 0.005487089150766442, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9669363348575448 + }, + "K55": { + "valid": 2815, + "positives": 8, + "negatives": 2807, + "auroc": 0.8207160669754185, + "auprc": 0.008561478324302832, + "brier": 0.002855675864729121, + "calibration": { + "observed_rate": 0.002841918294849023, + "mean_prediction": 0.0023302210952202518, + "calibration_in_the_large": -0.0005116971996287712, + "expected_calibration_error_10bin": 0.0006085206044084256, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + "K56": { + "valid": 2745, + "positives": 27, + "negatives": 2718, + "auroc": 0.7496388957021776, + "auprc": 0.033268322719513174, + "brier": 0.009696438766375411, + "calibration": { + "observed_rate": 0.009836065573770493, + "mean_prediction": 0.004936678021458282, + "calibration_in_the_large": -0.0048993875523122106, + "expected_calibration_error_10bin": 0.0048993875523122106, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9655293703833978 + }, + "K57": { + "valid": 2741, + "positives": 22, + "negatives": 2719, + "auroc": 0.7080143100738908, + "auprc": 0.030315840110490325, + "brier": 0.007950937492171748, + "calibration": { + "observed_rate": 0.008026267785479753, + "mean_prediction": 0.002781879797855122, + "calibration_in_the_large": -0.005244387987624631, + "expected_calibration_error_10bin": 0.005244387987624631, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + "K58": { + "valid": 2792, + "positives": 7, + "negatives": 2785, + "auroc": 0.7495255193639395, + "auprc": 0.09920993838750546, + "brier": 0.0024650638577896514, + "calibration": { + "observed_rate": 0.002507163323782235, + "mean_prediction": 0.0025267117794869837, + "calibration_in_the_large": 1.954845570474855e-05, + "expected_calibration_error_10bin": 1.954845570474855e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + "K59": { + "valid": 2560, + "positives": 83, + "negatives": 2477, + "auroc": 0.7560982727843145, + "auprc": 0.12974376424220235, + "brier": 0.030081876766726662, + "calibration": { + "observed_rate": 0.032421875, + "mean_prediction": 0.026570978676977573, + "calibration_in_the_large": -0.0058508963230224295, + "expected_calibration_error_10bin": 0.006826008765415284, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + "K62": { + "valid": 2813, + "positives": 14, + "negatives": 2799, + "auroc": 0.7989077731843005, + "auprc": 0.019422733903614178, + "brier": 0.004940292953624659, + "calibration": { + "observed_rate": 0.004976892996800568, + "mean_prediction": 0.0023699615341985945, + "calibration_in_the_large": -0.002606931462601974, + "expected_calibration_error_10bin": 0.002606931462601974, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K63": { + "valid": 2810, + "positives": 15, + "negatives": 2795, + "auroc": 0.7133929636255217, + "auprc": 0.02018804826750118, + "brier": 0.005295152567315722, + "calibration": { + "observed_rate": 0.005338078291814947, + "mean_prediction": 0.002943076958973147, + "calibration_in_the_large": -0.0023950013328417996, + "expected_calibration_error_10bin": 0.0023950013328417996, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + "K64": { + "valid": 2801, + "positives": 20, + "negatives": 2781, + "auroc": 0.776878820568141, + "auprc": 0.03224347891481122, + "brier": 0.007041412209272524, + "calibration": { + "observed_rate": 0.007140307033202428, + "mean_prediction": 0.004127101758844199, + "calibration_in_the_large": -0.0030132052743582294, + "expected_calibration_error_10bin": 0.0030132052743582294, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "K65": { + "valid": 2813, + "positives": 12, + "negatives": 2801, + "auroc": 0.8960490301082946, + "auprc": 0.0396429388905958, + "brier": 0.0042942500689519165, + "calibration": { + "observed_rate": 0.004265908282971916, + "mean_prediction": 0.0037074339395230965, + "calibration_in_the_large": -0.0005584743434488199, + "expected_calibration_error_10bin": 0.0022268355255989298, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K66": { + "valid": 2796, + "positives": 8, + "negatives": 2788, + "auroc": 0.6498834289813487, + "auprc": 0.017091286782122687, + "brier": 0.0028556559866548576, + "calibration": { + "observed_rate": 0.002861230329041488, + "mean_prediction": 0.0028551261103648526, + "calibration_in_the_large": -6.104218676635225e-06, + "expected_calibration_error_10bin": 6.104218676635225e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + "K70": { + "valid": 2774, + "positives": 2, + "negatives": 2772, + "auroc": 0.9653679653679653, + "auprc": 0.03502974223397224, + "brier": 0.0007237764579877526, + "calibration": { + "observed_rate": 0.0007209805335255948, + "mean_prediction": 0.0009193172109785577, + "calibration_in_the_large": 0.0001983366774529629, + "expected_calibration_error_10bin": 0.00019833667745296286, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "K72": { + "valid": 2787, + "positives": 18, + "negatives": 2769, + "auroc": 0.9502828939448658, + "auprc": 0.2875740800630248, + "brier": 0.005585454031254538, + "calibration": { + "observed_rate": 0.006458557588805167, + "mean_prediction": 0.003838982916061969, + "calibration_in_the_large": -0.0026195746727431983, + "expected_calibration_error_10bin": 0.003949410544620002, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "K74": { + "valid": 2763, + "positives": 7, + "negatives": 2756, + "auroc": 0.9448476052249637, + "auprc": 0.03177298004367314, + "brier": 0.0026046453153796578, + "calibration": { + "observed_rate": 0.0025334781035106766, + "mean_prediction": 0.002204856950683512, + "calibration_in_the_large": -0.0003286211528271644, + "expected_calibration_error_10bin": 0.0015146808092395773, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + "K75": { + "valid": 2798, + "positives": 10, + "negatives": 2788, + "auroc": 0.8511119081779053, + "auprc": 0.024366036406746963, + "brier": 0.0035935733969860574, + "calibration": { + "observed_rate": 0.0035739814152966403, + "mean_prediction": 0.0025689861406965786, + "calibration_in_the_large": -0.0010049952746000617, + "expected_calibration_error_10bin": 0.0016676419830016114, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + "K76": { + "valid": 2681, + "positives": 30, + "negatives": 2651, + "auroc": 0.7852005532503458, + "auprc": 0.1860730046330949, + "brier": 0.010319864188759454, + "calibration": { + "observed_rate": 0.011189854531891086, + "mean_prediction": 0.0043769277369010194, + "calibration_in_the_large": -0.006812926794990066, + "expected_calibration_error_10bin": 0.008261026831037034, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9430179387970454 + }, + "K80": { + "valid": 2731, + "positives": 13, + "negatives": 2718, + "auroc": 0.6227995698194374, + "auprc": 0.015145219236984357, + "brier": 0.004738599620542355, + "calibration": { + "observed_rate": 0.004760161113145368, + "mean_prediction": 0.00404865840454597, + "calibration_in_the_large": -0.000711502708599398, + "expected_calibration_error_10bin": 0.0007876590514277731, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9606049947238833 + }, + "K81": { + "valid": 2825, + "positives": 5, + "negatives": 2820, + "auroc": 0.8773758865248227, + "auprc": 0.03340892944293789, + "brier": 0.0017477508211950347, + "calibration": { + "observed_rate": 0.0017699115044247787, + "mean_prediction": 0.0013476676214093587, + "calibration_in_the_large": -0.00042224388301542, + "expected_calibration_error_10bin": 0.00042224388301542, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "K82": { + "valid": 2824, + "positives": 4, + "negatives": 2820, + "auroc": 0.6429078014184397, + "auprc": 0.0033730220086055328, + "brier": 0.0014394700577849084, + "calibration": { + "observed_rate": 0.00141643059490085, + "mean_prediction": 0.0015868465168566628, + "calibration_in_the_large": 0.00017041592195581284, + "expected_calibration_error_10bin": 0.00017041592195581284, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "K83": { + "valid": 2757, + "positives": 12, + "negatives": 2745, + "auroc": 0.8971159684274438, + "auprc": 0.10299172080083575, + "brier": 0.004201780309883752, + "calibration": { + "observed_rate": 0.004352557127312296, + "mean_prediction": 0.0029059347246237193, + "calibration_in_the_large": -0.0014466224026885768, + "expected_calibration_error_10bin": 0.0021979264919116995, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.969750263805839 + }, + "K85": { + "valid": 2779, + "positives": 8, + "negatives": 2771, + "auroc": 0.8111241429086973, + "auprc": 0.02101157540472127, + "brier": 0.0028552705548015836, + "calibration": { + "observed_rate": 0.0028787333573227778, + "mean_prediction": 0.0018622161624590584, + "calibration_in_the_large": -0.0010165171948637193, + "expected_calibration_error_10bin": 0.0010165171948637193, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9774885684136475 + }, + "K86": { + "valid": 2785, + "positives": 7, + "negatives": 2778, + "auroc": 0.6940759024992287, + "auprc": 0.017950323629514393, + "brier": 0.002513481046701599, + "calibration": { + "observed_rate": 0.0025134649910233393, + "mean_prediction": 0.002419974609954846, + "calibration_in_the_large": -9.349038106849349e-05, + "expected_calibration_error_10bin": 0.0001794015251144894, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K90": { + "valid": 2831, + "positives": 2, + "negatives": 2829, + "auroc": 0.6032166843407565, + "auprc": 0.0013039083557951482, + "brier": 0.0007071973906540372, + "calibration": { + "observed_rate": 0.0007064641469445425, + "mean_prediction": 0.000411319940028623, + "calibration_in_the_large": -0.0002951442069159195, + "expected_calibration_error_10bin": 0.0002951442069159195, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "K91": { + "valid": 2768, + "positives": 22, + "negatives": 2746, + "auroc": 0.83557902403496, + "auprc": 0.047605990614782254, + "brier": 0.007799391029342741, + "calibration": { + "observed_rate": 0.007947976878612716, + "mean_prediction": 0.0033495479359629764, + "calibration_in_the_large": -0.004598428942649739, + "expected_calibration_error_10bin": 0.004680553204147502, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "K92": { + "valid": 2751, + "positives": 33, + "negatives": 2718, + "auroc": 0.8563449060137802, + "auprc": 0.13940653656400548, + "brier": 0.011377758087713493, + "calibration": { + "observed_rate": 0.011995637949836423, + "mean_prediction": 0.008299980028598672, + "calibration_in_the_large": -0.0036956579212377508, + "expected_calibration_error_10bin": 0.0036956579212377516, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "K94": { + "valid": 2823, + "positives": 14, + "negatives": 2809, + "auroc": 0.9041855261150384, + "auprc": 0.12540175775702045, + "brier": 0.004867693231729358, + "calibration": { + "observed_rate": 0.00495926319518243, + "mean_prediction": 0.0013001872126293965, + "calibration_in_the_large": -0.003659075982553034, + "expected_calibration_error_10bin": 0.003659075982553034, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "L02": { + "valid": 2807, + "positives": 17, + "negatives": 2790, + "auroc": 0.7559983133038162, + "auprc": 0.018013869760653712, + "brier": 0.006009119039490285, + "calibration": { + "observed_rate": 0.006056287851799074, + "mean_prediction": 0.0045337371653781395, + "calibration_in_the_large": -0.001522550686420934, + "expected_calibration_error_10bin": 0.0015971970049785734, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "L03": { + "valid": 2701, + "positives": 41, + "negatives": 2660, + "auroc": 0.7362094260040345, + "auprc": 0.07225565746156537, + "brier": 0.01473718100844149, + "calibration": { + "observed_rate": 0.015179563124768604, + "mean_prediction": 0.009738695255649618, + "calibration_in_the_large": -0.005440867869118985, + "expected_calibration_error_10bin": 0.005440867869118985, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9500527611677805 + }, + "L08": { + "valid": 2830, + "positives": 5, + "negatives": 2825, + "auroc": 0.6692389380530973, + "auprc": 0.004443949513844471, + "brier": 0.001767616695597363, + "calibration": { + "observed_rate": 0.0017667844522968198, + "mean_prediction": 0.0011786212580856838, + "calibration_in_the_large": -0.0005881631942111359, + "expected_calibration_error_10bin": 0.0005881631942111359, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9954273654590221 + }, + "L27": { + "valid": 2818, + "positives": 10, + "negatives": 2808, + "auroc": 0.7596153846153846, + "auprc": 0.02005430397389446, + "brier": 0.003547811196180365, + "calibration": { + "observed_rate": 0.0035486160397444995, + "mean_prediction": 0.002829018082105403, + "calibration_in_the_large": -0.0007195979576390963, + "expected_calibration_error_10bin": 0.001119841983978853, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "L29": { + "valid": 2817, + "positives": 3, + "negatives": 2814, + "auroc": 0.7819237147595357, + "auprc": 0.003189396796822479, + "brier": 0.0011116725599541848, + "calibration": { + "observed_rate": 0.0010649627263045794, + "mean_prediction": 0.0029377104798931496, + "calibration_in_the_large": 0.0018727477535885701, + "expected_calibration_error_10bin": 0.0018727477535885701, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "L30": { + "valid": 2816, + "positives": 8, + "negatives": 2808, + "auroc": 0.7391826923076923, + "auprc": 0.03681508289321508, + "brier": 0.002810553455611419, + "calibration": { + "observed_rate": 0.002840909090909091, + "mean_prediction": 0.0018728022340596825, + "calibration_in_the_large": -0.0009681068568494085, + "expected_calibration_error_10bin": 0.0009681068568494085, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "L50": { + "valid": 2835, + "positives": 3, + "negatives": 2832, + "auroc": 0.817208097928437, + "auprc": 0.008994789912716536, + "brier": 0.001059909527545366, + "calibration": { + "observed_rate": 0.0010582010582010583, + "mean_prediction": 0.0009675837318367585, + "calibration_in_the_large": -9.061732636429982e-05, + "expected_calibration_error_10bin": 9.061732636429982e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.997186071051706 + }, + "L53": { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 6.267907178846875e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0009954128386694837, + "calibration_in_the_large": 0.0009954128386694837, + "expected_calibration_error_10bin": 0.0009954128386694837, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "L76": { + "valid": 2793, + "positives": 13, + "negatives": 2780, + "auroc": 0.712147205312673, + "auprc": 0.008711481615427378, + "brier": 0.004641942266142072, + "calibration": { + "observed_rate": 0.004654493376297888, + "mean_prediction": 0.002409113832528975, + "calibration_in_the_large": -0.0022453795437689127, + "expected_calibration_error_10bin": 0.0022453795437689127, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "L89": { + "valid": 2798, + "positives": 21, + "negatives": 2777, + "auroc": 0.8471800675617744, + "auprc": 0.04053675665255865, + "brier": 0.007359545743285215, + "calibration": { + "observed_rate": 0.007505360972122945, + "mean_prediction": 0.004937883817930922, + "calibration_in_the_large": -0.0025674771541920223, + "expected_calibration_error_10bin": 0.0027497901133647328, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + "L97": { + "valid": 2789, + "positives": 11, + "negatives": 2778, + "auroc": 0.9335689508475685, + "auprc": 0.050841664821828975, + "brier": 0.003914573953714547, + "calibration": { + "observed_rate": 0.003944065973467192, + "mean_prediction": 0.004207550706729394, + "calibration_in_the_large": 0.0002634847332622014, + "expected_calibration_error_10bin": 0.00028167244733832064, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "L98": { + "valid": 2824, + "positives": 5, + "negatives": 2819, + "auroc": 0.6295140120610145, + "auprc": 0.0030194683918115593, + "brier": 0.0017782191813287725, + "calibration": { + "observed_rate": 0.0017705382436260624, + "mean_prediction": 0.001887146048007352, + "calibration_in_the_large": 0.00011660780438128957, + "expected_calibration_error_10bin": 0.00011660780438128957, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "M10": { + "valid": 2713, + "positives": 13, + "negatives": 2700, + "auroc": 0.802022792022792, + "auprc": 0.03600563541271968, + "brier": 0.00471705030323569, + "calibration": { + "observed_rate": 0.004791743457427202, + "mean_prediction": 0.004818589323608915, + "calibration_in_the_large": 2.684586618171246e-05, + "expected_calibration_error_10bin": 7.542278588532066e-05, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9542736545902216 + }, + "M16": { + "valid": 2790, + "positives": 3, + "negatives": 2787, + "auroc": 0.8326755172826217, + "auprc": 0.007472318541970282, + "brier": 0.0010726930517946758, + "calibration": { + "observed_rate": 0.001075268817204301, + "mean_prediction": 0.0013606796182430313, + "calibration_in_the_large": 0.0002854108010387302, + "expected_calibration_error_10bin": 0.0002854108010387302, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + "M17": { + "valid": 2733, + "positives": 10, + "negatives": 2723, + "auroc": 0.7091810503121557, + "auprc": 0.007982727090759967, + "brier": 0.0036500618076422773, + "calibration": { + "observed_rate": 0.003658982802780827, + "mean_prediction": 0.0034519222966631876, + "calibration_in_the_large": -0.00020706050611763935, + "expected_calibration_error_10bin": 0.00020706050611763935, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + "M19": { + "valid": 2674, + "positives": 33, + "negatives": 2641, + "auroc": 0.6848301263295583, + "auprc": 0.023390630999631346, + "brier": 0.01220703119672975, + "calibration": { + "observed_rate": 0.012341062079281975, + "mean_prediction": 0.005949287095622648, + "calibration_in_the_large": -0.006391774983659327, + "expected_calibration_error_10bin": 0.006391774983659327, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.940555750967288 + }, + "M21": { + "valid": 2821, + "positives": 2, + "negatives": 2819, + "auroc": 0.9074139765874424, + "auprc": 0.005586851553794726, + "brier": 0.0007202027935256446, + "calibration": { + "observed_rate": 0.0007089684509039348, + "mean_prediction": 0.003087978887587589, + "calibration_in_the_large": 0.002379010436683654, + "expected_calibration_error_10bin": 0.002379010436683654, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "M25": { + "valid": 2717, + "positives": 34, + "negatives": 2683, + "auroc": 0.6597202429238561, + "auprc": 0.029404957359301983, + "brier": 0.01231337640807976, + "calibration": { + "observed_rate": 0.012513801987486198, + "mean_prediction": 0.011805833512229039, + "calibration_in_the_large": -0.0007079684752571598, + "expected_calibration_error_10bin": 0.0010369451238840962, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9556806190643686 + }, + "M35": { + "valid": 2806, + "positives": 2, + "negatives": 2804, + "auroc": 0.8644793152639088, + "auprc": 0.003825631732608477, + "brier": 0.0007131121398629486, + "calibration": { + "observed_rate": 0.0007127583749109052, + "mean_prediction": 0.0006625006893783825, + "calibration_in_the_large": -5.025768553252273e-05, + "expected_calibration_error_10bin": 5.025768553252273e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "M46": { + "valid": 2814, + "positives": 4, + "negatives": 2810, + "auroc": 0.5802491103202847, + "auprc": 0.0026322406989086537, + "brier": 0.0014222870060117277, + "calibration": { + "observed_rate": 0.0014214641080312722, + "mean_prediction": 0.0011617529807287721, + "calibration_in_the_large": -0.00025971112730250006, + "expected_calibration_error_10bin": 0.00025971112730250006, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "M47": { + "valid": 2743, + "positives": 10, + "negatives": 2733, + "auroc": 0.6751189169410904, + "auprc": 0.014355574864585455, + "brier": 0.003627566216479911, + "calibration": { + "observed_rate": 0.0036456434560699965, + "mean_prediction": 0.004405572457779559, + "calibration_in_the_large": 0.0007599290017095625, + "expected_calibration_error_10bin": 0.0007599290017095625, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + "M48": { + "valid": 2690, + "positives": 10, + "negatives": 2680, + "auroc": 0.7986194029850746, + "auprc": 0.015987418075111563, + "brier": 0.003703879722122605, + "calibration": { + "observed_rate": 0.0037174721189591076, + "mean_prediction": 0.0059455805811634505, + "calibration_in_the_large": 0.002228108462204343, + "expected_calibration_error_10bin": 0.002228108462204343, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9461836088638762 + }, + "M51": { + "valid": 2785, + "positives": 3, + "negatives": 2782, + "auroc": 0.698058950395399, + "auprc": 0.0025199216184752485, + "brier": 0.001081299297612288, + "calibration": { + "observed_rate": 0.0010771992818671453, + "mean_prediction": 0.0021596569169138823, + "calibration_in_the_large": 0.001082457635046737, + "expected_calibration_error_10bin": 0.001082457635046737, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "M54": { + "valid": 2567, + "positives": 40, + "negatives": 2527, + "auroc": 0.6907004352987732, + "auprc": 0.03994084255407547, + "brier": 0.015243773017090095, + "calibration": { + "observed_rate": 0.015582391897156213, + "mean_prediction": 0.014420934784771054, + "calibration_in_the_large": -0.0011614571123851596, + "expected_calibration_error_10bin": 0.001974376238547671, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9029194512838551 + }, + "M62": { + "valid": 2781, + "positives": 10, + "negatives": 2771, + "auroc": 0.6705521472392638, + "auprc": 0.020952555870587704, + "brier": 0.0035721647695462796, + "calibration": { + "observed_rate": 0.003595828838547285, + "mean_prediction": 0.0037807189547074244, + "calibration_in_the_large": 0.0001848901161601393, + "expected_calibration_error_10bin": 0.0001848901161601393, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + "M79": { + "valid": 2697, + "positives": 33, + "negatives": 2664, + "auroc": 0.7383519883519883, + "auprc": 0.03131160225351731, + "brier": 0.01204182928568719, + "calibration": { + "observed_rate": 0.012235817575083427, + "mean_prediction": 0.010132612170488652, + "calibration_in_the_large": -0.0021032054045947747, + "expected_calibration_error_10bin": 0.002569496021477829, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9486457966936335 + }, + "M81": { + "valid": 2705, + "positives": 13, + "negatives": 2692, + "auroc": 0.8109498228368957, + "auprc": 0.021483044084349572, + "brier": 0.004935211096650658, + "calibration": { + "observed_rate": 0.004805914972273568, + "mean_prediction": 0.006541966277404796, + "calibration_in_the_large": 0.0017360513051312282, + "expected_calibration_error_10bin": 0.001736051305131228, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9514597256419275 + }, + "M84": { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.7861545756282599, + "auprc": 0.023587594235016867, + "brier": 0.0021217695335623487, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.001858108615478739, + "calibration_in_the_large": -0.0002710610083679608, + "expected_calibration_error_10bin": 0.0003659435018642404, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "M85": { + "valid": 2768, + "positives": 7, + "negatives": 2761, + "auroc": 0.6865007502457702, + "auprc": 0.006246375649003192, + "brier": 0.0025252638177407794, + "calibration": { + "observed_rate": 0.0025289017341040463, + "mean_prediction": 0.0026807218880509614, + "calibration_in_the_large": 0.0001518201539469151, + "expected_calibration_error_10bin": 0.0001518201539469151, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "M86": { + "valid": 2803, + "positives": 14, + "negatives": 2789, + "auroc": 0.7633048199559493, + "auprc": 0.0248867705522256, + "brier": 0.004960402583214053, + "calibration": { + "observed_rate": 0.0049946485907955765, + "mean_prediction": 0.004089934792810247, + "calibration_in_the_large": -0.0009047137979853294, + "expected_calibration_error_10bin": 0.0014173500417082126, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9859303552585297 + }, + "M94": { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.5222537878787878, + "auprc": 0.0022572754998606264, + "brier": 0.0010639997999036534, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.00029884312465797434, + "calibration_in_the_large": -0.0007653640410036078, + "expected_calibration_error_10bin": 0.0007653640410036078, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "M96": { + "valid": 2804, + "positives": 3, + "negatives": 2801, + "auroc": 0.8817089134832797, + "auprc": 0.010044140244715423, + "brier": 0.0010665443368212493, + "calibration": { + "observed_rate": 0.0010699001426533524, + "mean_prediction": 0.001647695513218205, + "calibration_in_the_large": 0.0005777953705648525, + "expected_calibration_error_10bin": 0.0005777953705648525, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "N12": { + "valid": 2831, + "positives": 7, + "negatives": 2824, + "auroc": 0.7185855928773776, + "auprc": 0.014838021620324854, + "brier": 0.0024695580688702417, + "calibration": { + "observed_rate": 0.002472624514305899, + "mean_prediction": 0.0015338447207035551, + "calibration_in_the_large": -0.000938779793602344, + "expected_calibration_error_10bin": 0.0010301112686301364, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "N13": { + "valid": 2756, + "positives": 19, + "negatives": 2737, + "auroc": 0.757917812433898, + "auprc": 0.05741041494562948, + "brier": 0.006747533212689581, + "calibration": { + "observed_rate": 0.006894049346879536, + "mean_prediction": 0.004865677139568435, + "calibration_in_the_large": -0.002028372207311101, + "expected_calibration_error_10bin": 0.002120081825609613, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + "N14": { + "valid": 2826, + "positives": 8, + "negatives": 2818, + "auroc": 0.7991483321504613, + "auprc": 0.03716256534737214, + "brier": 0.002791886795901086, + "calibration": { + "observed_rate": 0.0028308563340410475, + "mean_prediction": 0.0021961595105488988, + "calibration_in_the_large": -0.0006346968234921487, + "expected_calibration_error_10bin": 0.0007298942890924614, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "N17": { + "valid": 2292, + "positives": 89, + "negatives": 2203, + "auroc": 0.8264164800807887, + "auprc": 0.17055141435449084, + "brier": 0.03476491044065093, + "calibration": { + "observed_rate": 0.03883071553228621, + "mean_prediction": 0.03760129456784386, + "calibration_in_the_large": -0.0012294209644423473, + "expected_calibration_error_10bin": 0.004519723521809245, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8061906436862469 + }, + "N18": { + "valid": 2440, + "positives": 45, + "negatives": 2395, + "auroc": 0.8734864300626305, + "auprc": 0.20653073755727874, + "brier": 0.01631166011959368, + "calibration": { + "observed_rate": 0.018442622950819672, + "mean_prediction": 0.014290307275174855, + "calibration_in_the_large": -0.004152315675644816, + "expected_calibration_error_10bin": 0.004654236398191942, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.858248329229687 + }, + "N20": { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.6950947105075054, + "auprc": 0.005663507798037374, + "brier": 0.0028461869988741393, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.001103028392039023, + "calibration_in_the_large": -0.001748005107604598, + "expected_calibration_error_10bin": 0.001748005107604598, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "N25": { + "valid": 2831, + "positives": 7, + "negatives": 2824, + "auroc": 0.9143565358154593, + "auprc": 0.05363547563805743, + "brier": 0.0024443042100490858, + "calibration": { + "observed_rate": 0.002472624514305899, + "mean_prediction": 0.0011234061379041265, + "calibration_in_the_large": -0.0013492183764017727, + "expected_calibration_error_10bin": 0.0015202114486447384, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "N28": { + "valid": 2789, + "positives": 7, + "negatives": 2782, + "auroc": 0.7708739858272569, + "auprc": 0.00869753582655039, + "brier": 0.0025023654748755793, + "calibration": { + "observed_rate": 0.002509860164933668, + "mean_prediction": 0.0030283435081665433, + "calibration_in_the_large": 0.0005184833432328754, + "expected_calibration_error_10bin": 0.0005184833432328754, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "N30": { + "valid": 2829, + "positives": 10, + "negatives": 2819, + "auroc": 0.7110677545228804, + "auprc": 0.012535753757442532, + "brier": 0.0035220317410654205, + "calibration": { + "observed_rate": 0.003534817956875221, + "mean_prediction": 0.003049145317930829, + "calibration_in_the_large": -0.0004856726389443921, + "expected_calibration_error_10bin": 0.0004856726389443921, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "N32": { + "valid": 2807, + "positives": 12, + "negatives": 2795, + "auroc": 0.8793381037567084, + "auprc": 0.048556977284398846, + "brier": 0.004209795636363183, + "calibration": { + "observed_rate": 0.004275026718916993, + "mean_prediction": 0.003410903665002007, + "calibration_in_the_large": -0.0008641230539149863, + "expected_calibration_error_10bin": 0.0008641230539149863, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "N39": { + "valid": 2520, + "positives": 78, + "negatives": 2442, + "auroc": 0.7695825195825196, + "auprc": 0.08798063181373363, + "brier": 0.029164474028563998, + "calibration": { + "observed_rate": 0.030952380952380953, + "mean_prediction": 0.0276829704961976, + "calibration_in_the_large": -0.003269410456183352, + "expected_calibration_error_10bin": 0.004424197236186869, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8863876187126275 + }, + "N40": { + "valid": 2606, + "positives": 21, + "negatives": 2585, + "auroc": 0.7855024408215897, + "auprc": 0.030669710361110065, + "brier": 0.00794234273896537, + "calibration": { + "observed_rate": 0.008058326937835763, + "mean_prediction": 0.00645176799905356, + "calibration_in_the_large": -0.0016065589387822031, + "expected_calibration_error_10bin": 0.0021475022476120987, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9166373549067885 + }, + "N73": { + "valid": 2829, + "positives": 5, + "negatives": 2824, + "auroc": 0.9777620396600567, + "auprc": 0.22468273092369478, + "brier": 0.0016914733728452796, + "calibration": { + "observed_rate": 0.0017674089784376105, + "mean_prediction": 0.0008815924778133733, + "calibration_in_the_large": -0.0008858165006242372, + "expected_calibration_error_10bin": 0.0008858165006242372, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "N99": { + "valid": 2799, + "positives": 5, + "negatives": 2794, + "auroc": 0.7641374373657838, + "auprc": 0.0055053124374218314, + "brier": 0.0017932583918063968, + "calibration": { + "observed_rate": 0.0017863522686673813, + "mean_prediction": 0.00226852135332912, + "calibration_in_the_large": 0.00048216908466173895, + "expected_calibration_error_10bin": 0.00048216908466173895, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9845233907843827 + }, + "O69": { + "valid": 2743, + "positives": 6, + "negatives": 2737, + "auroc": 0.9968335160151017, + "auprc": 0.36781410597200076, + "brier": 0.001581791856294035, + "calibration": { + "observed_rate": 0.002187386073641998, + "mean_prediction": 0.0024912828816802115, + "calibration_in_the_large": 0.0003038968080382137, + "expected_calibration_error_10bin": 0.002133567377033562, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + "O99": { + "valid": 2652, + "positives": 3, + "negatives": 2649, + "auroc": 0.9041147602869007, + "auprc": 0.11859488563163907, + "brier": 0.0015498389813702101, + "calibration": { + "observed_rate": 0.0011312217194570137, + "mean_prediction": 0.0031707153632337354, + "calibration_in_the_large": 0.002039493643776722, + "expected_calibration_error_10bin": 0.0020394936437767223, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9328174463594794 + }, + "Q21": { + "valid": 2810, + "positives": 3, + "negatives": 2807, + "auroc": 0.5519534497090607, + "auprc": 0.0019723457910101384, + "brier": 0.0010692864125897061, + "calibration": { + "observed_rate": 0.0010676156583629894, + "mean_prediction": 0.001548684841300298, + "calibration_in_the_large": 0.0004810691829373085, + "expected_calibration_error_10bin": 0.0004810691829373085, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + "U07": { + "valid": 2828, + "positives": 0, + "negatives": 2828, + "auroc": null, + "auprc": null, + "brier": 5.792691572253463e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.003736353116747411, + "calibration_in_the_large": 0.003736353116747411, + "expected_calibration_error_10bin": 0.0037363531167474108, + "nonempty_bins": 2 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9947238832219486 + } + }, + "300": { + "A04": { + "valid": 2782, + "positives": 26, + "negatives": 2756, + "auroc": 0.7875962934018086, + "auprc": 0.06714941832486651, + "brier": 0.009297065775117953, + "calibration": { + "observed_rate": 0.009345794392523364, + "mean_prediction": 0.010236573837591469, + "calibration_in_the_large": 0.0008907794450681052, + "expected_calibration_error_10bin": 0.0013947118096026654, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + "A08": { + "valid": 2818, + "positives": 11, + "negatives": 2807, + "auroc": 0.7940862130388315, + "auprc": 0.015565548739924762, + "brier": 0.0038982919745472874, + "calibration": { + "observed_rate": 0.0039034776437189495, + "mean_prediction": 0.003332370867399982, + "calibration_in_the_large": -0.0005711067763189675, + "expected_calibration_error_10bin": 0.0005711067763189675, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "A41": { + "valid": 2664, + "positives": 66, + "negatives": 2598, + "auroc": 0.7499183521123475, + "auprc": 0.061750890162494326, + "brier": 0.02455429079773025, + "calibration": { + "observed_rate": 0.024774774774774775, + "mean_prediction": 0.022274322977274417, + "calibration_in_the_large": -0.002500451797500358, + "expected_calibration_error_10bin": 0.011361197698244433, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9370383397819205 + }, + "B00": { + "valid": 2819, + "positives": 4, + "negatives": 2815, + "auroc": 0.7741563055062167, + "auprc": 0.0466814397303291, + "brier": 0.001407530537520942, + "calibration": { + "observed_rate": 0.001418942887548776, + "mean_prediction": 0.0014044465437927011, + "calibration_in_the_large": -1.4496343756074948e-05, + "expected_calibration_error_10bin": 8.604006952185418e-05, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "B02": { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.9568447117085249, + "auprc": 0.008130081300813009, + "brier": 0.00035955031287051545, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0012716902490111485, + "calibration_in_the_large": 0.0009180834597607949, + "expected_calibration_error_10bin": 0.0009180834597607949, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "B18": { + "valid": 2782, + "positives": 7, + "negatives": 2775, + "auroc": 0.954079794079794, + "auprc": 0.03446012045066081, + "brier": 0.0025501030844068523, + "calibration": { + "observed_rate": 0.0025161754133716753, + "mean_prediction": 0.0014298157207847896, + "calibration_in_the_large": -0.0010863596925868857, + "expected_calibration_error_10bin": 0.0015355670448590178, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + "B19": { + "valid": 2763, + "positives": 17, + "negatives": 2746, + "auroc": 0.9061094211901803, + "auprc": 0.10751683941367321, + "brier": 0.005908218612449177, + "calibration": { + "observed_rate": 0.006152732537097358, + "mean_prediction": 0.0026392915701645976, + "calibration_in_the_large": -0.0035134409669327605, + "expected_calibration_error_10bin": 0.0039256211022458435, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + "B20": { + "valid": 2829, + "positives": 5, + "negatives": 2824, + "auroc": 0.9795325779036828, + "auprc": 0.06910812946040608, + "brier": 0.0017474499854936792, + "calibration": { + "observed_rate": 0.0017674089784376105, + "mean_prediction": 0.0009912527343527433, + "calibration_in_the_large": -0.0007761562440848672, + "expected_calibration_error_10bin": 0.001098884065707347, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "B34": { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.9568294409058741, + "auprc": 0.09634065011094257, + "brier": 0.0017240487109161531, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.0012618035012161581, + "calibration_in_the_large": -0.0005043568661451982, + "expected_calibration_error_10bin": 0.0005043568661451982, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "B35": { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.6471418489767113, + "auprc": 0.0015334692251821654, + "brier": 0.0007079262476306369, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.0011802559251739275, + "calibration_in_the_large": 0.0004750373074024184, + "expected_calibration_error_10bin": 0.0004750373074024184, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "B37": { + "valid": 2768, + "positives": 35, + "negatives": 2733, + "auroc": 0.768564110605823, + "auprc": 0.04899170487526832, + "brier": 0.012378583216146868, + "calibration": { + "observed_rate": 0.012644508670520232, + "mean_prediction": 0.006986780921936828, + "calibration_in_the_large": -0.005657727748583404, + "expected_calibration_error_10bin": 0.006079628535258184, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "B95": { + "valid": 2678, + "positives": 60, + "negatives": 2618, + "auroc": 0.7479819200407436, + "auprc": 0.05910258682954406, + "brier": 0.021662705460164723, + "calibration": { + "observed_rate": 0.022404779686333084, + "mean_prediction": 0.016254464690592642, + "calibration_in_the_large": -0.006150314995740442, + "expected_calibration_error_10bin": 0.006419479945329206, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9419627154414351 + }, + "B96": { + "valid": 2630, + "positives": 77, + "negatives": 2553, + "auroc": 0.7544574501096241, + "auprc": 0.08489509085812227, + "brier": 0.02778176863341625, + "calibration": { + "observed_rate": 0.029277566539923954, + "mean_prediction": 0.01966402837132394, + "calibration_in_the_large": -0.009613538168600014, + "expected_calibration_error_10bin": 0.010122591625972552, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9250791417516707 + }, + "B97": { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.7388535031847133, + "auprc": 0.036396879570941, + "brier": 0.0007579033771515879, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.001467514230113973, + "calibration_in_the_large": 0.0007603006516132658, + "expected_calibration_error_10bin": 0.0007603006516132659, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "C18": { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.9736002834868888, + "auprc": 0.01922739244951712, + "brier": 0.0007051622152425327, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0008261374414628349, + "calibration_in_the_large": 0.00011792214401240998, + "expected_calibration_error_10bin": 0.00011792214401240998, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "C22": { + "valid": 2812, + "positives": 6, + "negatives": 2806, + "auroc": 0.920111665478736, + "auprc": 0.025894448871593177, + "brier": 0.002153999343696987, + "calibration": { + "observed_rate": 0.0021337126600284497, + "mean_prediction": 0.0006997352521140685, + "calibration_in_the_large": -0.0014339774079143812, + "expected_calibration_error_10bin": 0.0018752581486767145, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9890960253253606 + }, + "C25": { + "valid": 2809, + "positives": 3, + "negatives": 2806, + "auroc": 0.8573295319553338, + "auprc": 0.07136857855906333, + "brier": 0.0010615188904250982, + "calibration": { + "observed_rate": 0.001067995728017088, + "mean_prediction": 0.0012183919217841248, + "calibration_in_the_large": 0.00015039619376703683, + "expected_calibration_error_10bin": 0.00023264955851301928, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "C61": { + "valid": 2805, + "positives": 2, + "negatives": 2803, + "auroc": 0.9951837317160186, + "auprc": 0.125, + "brier": 0.0006961513746321841, + "calibration": { + "observed_rate": 0.00071301247771836, + "mean_prediction": 0.0013907191638285045, + "calibration_in_the_large": 0.0006777066861101444, + "expected_calibration_error_10bin": 0.0006777066861101444, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "C67": { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9727626459143969, + "auprc": 0.01889483065953654, + "brier": 0.0007040648422703275, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0005571596634527661, + "calibration_in_the_large": -0.00014980392792227808, + "expected_calibration_error_10bin": 0.00014980392792227808, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "C77": { + "valid": 2762, + "positives": 20, + "negatives": 2742, + "auroc": 0.8813274981765135, + "auprc": 0.11070883774324936, + "brier": 0.006869889313273375, + "calibration": { + "observed_rate": 0.00724112961622013, + "mean_prediction": 0.006397076942254999, + "calibration_in_the_large": -0.0008440526739651316, + "expected_calibration_error_10bin": 0.0011178773184336887, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + "C78": { + "valid": 2762, + "positives": 32, + "negatives": 2730, + "auroc": 0.8734661172161172, + "auprc": 0.14886377646737947, + "brier": 0.01084664241384645, + "calibration": { + "observed_rate": 0.011585807385952208, + "mean_prediction": 0.007036502446929912, + "calibration_in_the_large": -0.004549304939022295, + "expected_calibration_error_10bin": 0.007796875015535896, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + "C79": { + "valid": 2751, + "positives": 25, + "negatives": 2726, + "auroc": 0.9096991929567131, + "auprc": 0.11750153865208939, + "brier": 0.008626021485036387, + "calibration": { + "observed_rate": 0.009087604507451835, + "mean_prediction": 0.0076882516800471324, + "calibration_in_the_large": -0.0013993528274047025, + "expected_calibration_error_10bin": 0.0034806752525557393, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "C83": { + "valid": 2820, + "positives": 2, + "negatives": 2818, + "auroc": 0.7020936834634492, + "auprc": 0.009236453201970442, + "brier": 0.0007441634054286688, + "calibration": { + "observed_rate": 0.0007092198581560284, + "mean_prediction": 0.0006117433204716438, + "calibration_in_the_large": -9.747653768438463e-05, + "expected_calibration_error_10bin": 0.00034726156402162267, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + "D25": { + "valid": 2792, + "positives": 3, + "negatives": 2789, + "auroc": 0.9958168997251106, + "auprc": 0.6929824561403509, + "brier": 0.0010177231039417058, + "calibration": { + "observed_rate": 0.0010744985673352436, + "mean_prediction": 0.0006860453117430492, + "calibration_in_the_large": -0.0003884532555921944, + "expected_calibration_error_10bin": 0.0003884532555921944, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + "D47": { + "valid": 2796, + "positives": 10, + "negatives": 2786, + "auroc": 0.6384063173007897, + "auprc": 0.0061282413780917215, + "brier": 0.0035847691079886196, + "calibration": { + "observed_rate": 0.00357653791130186, + "mean_prediction": 0.002891197657775362, + "calibration_in_the_large": -0.000685340253526498, + "expected_calibration_error_10bin": 0.0007762182999893033, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + "D50": { + "valid": 2663, + "positives": 52, + "negatives": 2611, + "auroc": 0.7943611348437085, + "auprc": 0.12088420878110338, + "brier": 0.018422659804540886, + "calibration": { + "observed_rate": 0.01952684941794968, + "mean_prediction": 0.01299277556196035, + "calibration_in_the_large": -0.006534073855989331, + "expected_calibration_error_10bin": 0.006699521857205571, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9366865986633838 + }, + "D53": { + "valid": 2805, + "positives": 16, + "negatives": 2789, + "auroc": 0.8379795625672284, + "auprc": 0.043686835934387, + "brier": 0.005593936315579451, + "calibration": { + "observed_rate": 0.00570409982174688, + "mean_prediction": 0.005119260347527482, + "calibration_in_the_large": -0.0005848394742193983, + "expected_calibration_error_10bin": 0.0006488561748603304, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "D59": { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.9940014114326041, + "auprc": 0.10476190476190475, + "brier": 0.0006854610512997807, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.000867201308426646, + "calibration_in_the_large": 0.0001619826906551369, + "expected_calibration_error_10bin": 0.0001619826906551369, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "D61": { + "valid": 2773, + "positives": 35, + "negatives": 2738, + "auroc": 0.9174893039757904, + "auprc": 0.27532042179224653, + "brier": 0.010678619800674829, + "calibration": { + "observed_rate": 0.012621709340064912, + "mean_prediction": 0.011081371692773253, + "calibration_in_the_large": -0.0015403376472916588, + "expected_calibration_error_10bin": 0.003485941102131184, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + "D62": { + "valid": 2499, + "positives": 69, + "negatives": 2430, + "auroc": 0.784326355340848, + "auprc": 0.10432392932493798, + "brier": 0.026114900045869895, + "calibration": { + "observed_rate": 0.027611044417767107, + "mean_prediction": 0.016092802452597293, + "calibration_in_the_large": -0.011518241965169814, + "expected_calibration_error_10bin": 0.011518241965169814, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8790010552233556 + }, + "D63": { + "valid": 2686, + "positives": 74, + "negatives": 2612, + "auroc": 0.8453654650055875, + "auprc": 0.12466710911084346, + "brier": 0.026021168788073524, + "calibration": { + "observed_rate": 0.027550260610573342, + "mean_prediction": 0.021264242027360783, + "calibration_in_the_large": -0.006286018583212559, + "expected_calibration_error_10bin": 0.013866023115826692, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9447766443897292 + }, + "D64": { + "valid": 2434, + "positives": 116, + "negatives": 2318, + "auroc": 0.8030890184760942, + "auprc": 0.18059950122979357, + "brier": 0.04224408983880852, + "calibration": { + "observed_rate": 0.047658175842235, + "mean_prediction": 0.03776922599785948, + "calibration_in_the_large": -0.009888949844375522, + "expected_calibration_error_10bin": 0.010266092969196478, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8561378825184665 + }, + "D65": { + "valid": 2833, + "positives": 4, + "negatives": 2829, + "auroc": 0.9416755037115588, + "auprc": 0.018528510126682836, + "brier": 0.0014078596595644111, + "calibration": { + "observed_rate": 0.0014119308153900459, + "mean_prediction": 0.0006487372218507299, + "calibration_in_the_large": -0.000763193593539316, + "expected_calibration_error_10bin": 0.000763193593539316, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9964825888146325 + }, + "D68": { + "valid": 2682, + "positives": 57, + "negatives": 2625, + "auroc": 0.8073049289891395, + "auprc": 0.11374148757525214, + "brier": 0.020209375419760103, + "calibration": { + "observed_rate": 0.021252796420581657, + "mean_prediction": 0.00835289773784533, + "calibration_in_the_large": -0.012899898682736327, + "expected_calibration_error_10bin": 0.01504325524013009, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9433696799155822 + }, + "D69": { + "valid": 2586, + "positives": 81, + "negatives": 2505, + "auroc": 0.8373376703383357, + "auprc": 0.26685051852615094, + "brier": 0.026663188071711516, + "calibration": { + "observed_rate": 0.031322505800464036, + "mean_prediction": 0.018487722633940606, + "calibration_in_the_large": -0.01283478316652343, + "expected_calibration_error_10bin": 0.012834783166523433, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9096025325360535 + }, + "D70": { + "valid": 2787, + "positives": 26, + "negatives": 2761, + "auroc": 0.8830691221129469, + "auprc": 0.18311349502996283, + "brier": 0.008577846773758621, + "calibration": { + "observed_rate": 0.009329027628274129, + "mean_prediction": 0.00852892240352437, + "calibration_in_the_large": -0.0008001052247497593, + "expected_calibration_error_10bin": 0.0038925790192851674, + "nonempty_bins": 9 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "D72": { + "valid": 2595, + "positives": 60, + "negatives": 2535, + "auroc": 0.7285141354372123, + "auprc": 0.059896940070747785, + "brier": 0.022287556153757323, + "calibration": { + "observed_rate": 0.023121387283236993, + "mean_prediction": 0.027725419616111354, + "calibration_in_the_large": 0.004604032332874361, + "expected_calibration_error_10bin": 0.005160247838942906, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9127682026028843 + }, + "D73": { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.8832565284178188, + "auprc": 0.11666172700849102, + "brier": 0.001046085227810413, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0007816681646096525, + "calibration_in_the_large": -0.00028065478156598497, + "expected_calibration_error_10bin": 0.00028065478156598497, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "D75": { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.9370357269189954, + "auprc": 0.013362860023035866, + "brier": 0.0014070560040412151, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0012982230457709999, + "calibration_in_the_large": -0.00011470524811808521, + "expected_calibration_error_10bin": 0.00011470524811808521, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "D80": { + "valid": 2832, + "positives": 6, + "negatives": 2826, + "auroc": 0.9814814814814815, + "auprc": 0.07455643701053738, + "brier": 0.0021007305309884003, + "calibration": { + "observed_rate": 0.00211864406779661, + "mean_prediction": 0.0006956485194991074, + "calibration_in_the_large": -0.0014229955482975027, + "expected_calibration_error_10bin": 0.0015662598476087097, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + "D89": { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.6857142857142857, + "auprc": 0.007433427218025861, + "brier": 0.0008783291795085887, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0009365873360659469, + "calibration_in_the_large": 0.00023161729729259477, + "expected_calibration_error_10bin": 0.0005146123287750472, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + "E03": { + "valid": 2480, + "positives": 23, + "negatives": 2457, + "auroc": 0.6815133336872468, + "auprc": 0.052007129497099965, + "brier": 0.00912257270915987, + "calibration": { + "observed_rate": 0.009274193548387096, + "mean_prediction": 0.004692708482804348, + "calibration_in_the_large": -0.004581485065582748, + "expected_calibration_error_10bin": 0.004581485065582748, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8723179739711572 + }, + "E04": { + "valid": 2775, + "positives": 11, + "negatives": 2764, + "auroc": 0.6881002499671096, + "auprc": 0.010622667682124571, + "brier": 0.003944967326578721, + "calibration": { + "observed_rate": 0.003963963963963964, + "mean_prediction": 0.0028275240230770477, + "calibration_in_the_large": -0.0011364399408869165, + "expected_calibration_error_10bin": 0.0011364399408869165, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + "E05": { + "valid": 2806, + "positives": 4, + "negatives": 2802, + "auroc": 0.6573875802997858, + "auprc": 0.0031220766820422604, + "brier": 0.0014239248785039246, + "calibration": { + "observed_rate": 0.0014255167498218105, + "mean_prediction": 0.0008176910093463496, + "calibration_in_the_large": -0.0006078257404754609, + "expected_calibration_error_10bin": 0.0006078257404754609, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "E11": { + "valid": 2194, + "positives": 20, + "negatives": 2174, + "auroc": 0.8194342226310948, + "auprc": 0.030449176787477612, + "brier": 0.008999292887118999, + "calibration": { + "observed_rate": 0.009115770282588878, + "mean_prediction": 0.005322487830787595, + "calibration_in_the_large": -0.0037932824518012833, + "expected_calibration_error_10bin": 0.004144219542866693, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7717200140696447 + }, + "E16": { + "valid": 2816, + "positives": 10, + "negatives": 2806, + "auroc": 0.6597647897362794, + "auprc": 0.008572208185392644, + "brier": 0.0035461617924717557, + "calibration": { + "observed_rate": 0.0035511363636363635, + "mean_prediction": 0.0022855403201989784, + "calibration_in_the_large": -0.001265596043437385, + "expected_calibration_error_10bin": 0.001265596043437385, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "E21": { + "valid": 2814, + "positives": 3, + "negatives": 2811, + "auroc": 0.8891260524131389, + "auprc": 0.0106656982900376, + "brier": 0.0010664383997067953, + "calibration": { + "observed_rate": 0.0010660980810234541, + "mean_prediction": 0.0012005772010921353, + "calibration_in_the_large": 0.0001344791200686812, + "expected_calibration_error_10bin": 0.0001344791200686812, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "E22": { + "valid": 2802, + "positives": 9, + "negatives": 2793, + "auroc": 0.8137407009587461, + "auprc": 0.028071703388940175, + "brier": 0.0032015013819724075, + "calibration": { + "observed_rate": 0.0032119914346895075, + "mean_prediction": 0.004164298879929566, + "calibration_in_the_large": 0.0009523074452400587, + "expected_calibration_error_10bin": 0.0009523074452400585, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "E27": { + "valid": 2811, + "positives": 8, + "negatives": 2803, + "auroc": 0.8074384587941491, + "auprc": 0.01661841376575507, + "brier": 0.0028332530970362653, + "calibration": { + "observed_rate": 0.002845962290999644, + "mean_prediction": 0.0012108235144819663, + "calibration_in_the_large": -0.0016351387765176778, + "expected_calibration_error_10bin": 0.0016351387765176778, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9887442842068238 + }, + "E43": { + "valid": 2748, + "positives": 37, + "negatives": 2711, + "auroc": 0.8349965605590837, + "auprc": 0.06061234683785569, + "brier": 0.013116023369607084, + "calibration": { + "observed_rate": 0.013464337700145561, + "mean_prediction": 0.013396366273877207, + "calibration_in_the_large": -6.797142626835395e-05, + "expected_calibration_error_10bin": 0.0023660356416563668, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9665845937390081 + }, + "E44": { + "valid": 2800, + "positives": 21, + "negatives": 2779, + "auroc": 0.7626415805616957, + "auprc": 0.035637075117087705, + "brier": 0.007382217036210782, + "calibration": { + "observed_rate": 0.0075, + "mean_prediction": 0.0049754006013508194, + "calibration_in_the_large": -0.0025245993986491803, + "expected_calibration_error_10bin": 0.0028415258205128726, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + "E46": { + "valid": 2772, + "positives": 37, + "negatives": 2735, + "auroc": 0.8290132911705124, + "auprc": 0.1302655374302272, + "brier": 0.01262966209453315, + "calibration": { + "observed_rate": 0.013347763347763348, + "mean_prediction": 0.00858187236895123, + "calibration_in_the_large": -0.004765890978812118, + "expected_calibration_error_10bin": 0.00528935433269233, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9750263805838902 + }, + "E53": { + "valid": 2804, + "positives": 7, + "negatives": 2797, + "auroc": 0.607181163491496, + "auprc": 0.004040191178039145, + "brier": 0.002500246141933898, + "calibration": { + "observed_rate": 0.0024964336661911554, + "mean_prediction": 0.0018690492890973242, + "calibration_in_the_large": -0.0006273843770938311, + "expected_calibration_error_10bin": 0.0006273843770938311, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "E55": { + "valid": 2737, + "positives": 27, + "negatives": 2710, + "auroc": 0.6296706300396337, + "auprc": 0.018922643192791237, + "brier": 0.009782729208380013, + "calibration": { + "observed_rate": 0.009864815491413957, + "mean_prediction": 0.0063317820073282675, + "calibration_in_the_large": -0.0035330334840856896, + "expected_calibration_error_10bin": 0.003617974017371767, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9627154414351038 + }, + "E66": { + "valid": 2371, + "positives": 39, + "negatives": 2332, + "auroc": 0.7718916303821964, + "auprc": 0.06772951714219268, + "brier": 0.015891168563993023, + "calibration": { + "observed_rate": 0.016448755799240825, + "mean_prediction": 0.011293643945494203, + "calibration_in_the_large": -0.005155111853746622, + "expected_calibration_error_10bin": 0.005713198765466569, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8339781920506507 + }, + "E78": { + "valid": 1572, + "positives": 47, + "negatives": 1525, + "auroc": 0.7235298221137078, + "auprc": 0.13242698000906078, + "brier": 0.028086882180772117, + "calibration": { + "observed_rate": 0.02989821882951654, + "mean_prediction": 0.027583194415365837, + "calibration_in_the_large": -0.002315024414150702, + "expected_calibration_error_10bin": 0.010167887555370132, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5529370383397819 + }, + "E80": { + "valid": 2823, + "positives": 7, + "negatives": 2816, + "auroc": 0.8102171266233766, + "auprc": 0.014037031249035338, + "brier": 0.002475990289854209, + "calibration": { + "observed_rate": 0.002479631597591215, + "mean_prediction": 0.001401697602607029, + "calibration_in_the_large": -0.001077933994984186, + "expected_calibration_error_10bin": 0.001077933994984186, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "E83": { + "valid": 2653, + "positives": 78, + "negatives": 2575, + "auroc": 0.809982574060244, + "auprc": 0.16459970681236674, + "brier": 0.026737845631641333, + "calibration": { + "observed_rate": 0.029400678477195626, + "mean_prediction": 0.017325008657818927, + "calibration_in_the_large": -0.012075669819376699, + "expected_calibration_error_10bin": 0.012751663530076833, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9331691874780161 + }, + "E86": { + "valid": 2587, + "positives": 87, + "negatives": 2500, + "auroc": 0.7968551724137931, + "auprc": 0.10794269145955665, + "brier": 0.031238284720991938, + "calibration": { + "observed_rate": 0.03362968689601856, + "mean_prediction": 0.031487019730029486, + "calibration_in_the_large": -0.0021426671659890706, + "expected_calibration_error_10bin": 0.0050562520691538855, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9099542736545903 + }, + "E87": { + "valid": 2185, + "positives": 147, + "negatives": 2038, + "auroc": 0.7843290407428919, + "auprc": 0.20455637238767474, + "brier": 0.058638583244934636, + "calibration": { + "observed_rate": 0.06727688787185354, + "mean_prediction": 0.04701021287954696, + "calibration_in_the_large": -0.020266674992306583, + "expected_calibration_error_10bin": 0.022332961817785622, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.768554344002814 + }, + "E88": { + "valid": 2817, + "positives": 13, + "negatives": 2804, + "auroc": 0.7820970042796006, + "auprc": 0.0762796523915065, + "brier": 0.004465203046832688, + "calibration": { + "observed_rate": 0.004614838480653177, + "mean_prediction": 0.003065179621677686, + "calibration_in_the_large": -0.0015496588589754916, + "expected_calibration_error_10bin": 0.0015496588589754916, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "E89": { + "valid": 2780, + "positives": 8, + "negatives": 2772, + "auroc": 0.5630411255411255, + "auprc": 0.0057075751640409105, + "brier": 0.0028719355410242397, + "calibration": { + "observed_rate": 0.0028776978417266188, + "mean_prediction": 0.0017316642277011407, + "calibration_in_the_large": -0.0011460336140254781, + "expected_calibration_error_10bin": 0.0011460336140254781, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + "F02": { + "valid": 2802, + "positives": 4, + "negatives": 2798, + "auroc": 0.8078091493924232, + "auprc": 0.010844418894240131, + "brier": 0.0014813607930470522, + "calibration": { + "observed_rate": 0.0014275517487508922, + "mean_prediction": 0.0027363892110166986, + "calibration_in_the_large": 0.0013088374622658063, + "expected_calibration_error_10bin": 0.0013088374622658061, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "F03": { + "valid": 2739, + "positives": 14, + "negatives": 2725, + "auroc": 0.8865792922673656, + "auprc": 0.03656995092748838, + "brier": 0.0050927498961553744, + "calibration": { + "observed_rate": 0.00511135450894487, + "mean_prediction": 0.006168827995090105, + "calibration_in_the_large": 0.001057473486145235, + "expected_calibration_error_10bin": 0.0010574734861452345, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + "F05": { + "valid": 2750, + "positives": 29, + "negatives": 2721, + "auroc": 0.738052693609094, + "auprc": 0.02367562193918999, + "brier": 0.010452874244832709, + "calibration": { + "observed_rate": 0.010545454545454545, + "mean_prediction": 0.00819758738252147, + "calibration_in_the_large": -0.002347867162933075, + "expected_calibration_error_10bin": 0.0025959169477234594, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + "F06": { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.6128803963198868, + "auprc": 0.0014475258965787627, + "brier": 0.0007159302173631205, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.0018085860487835855, + "calibration_in_the_large": 0.0011013724702828784, + "expected_calibration_error_10bin": 0.0011013724702828784, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "F10": { + "valid": 2560, + "positives": 17, + "negatives": 2543, + "auroc": 0.7867039855659134, + "auprc": 0.11205330445473295, + "brier": 0.006368205174263178, + "calibration": { + "observed_rate": 0.006640625, + "mean_prediction": 0.004068771292944006, + "calibration_in_the_large": -0.0025718537070559934, + "expected_calibration_error_10bin": 0.0025718537070559926, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + "F11": { + "valid": 2741, + "positives": 10, + "negatives": 2731, + "auroc": 0.8579641157085317, + "auprc": 0.03688262053818272, + "brier": 0.003592314383629308, + "calibration": { + "observed_rate": 0.0036483035388544327, + "mean_prediction": 0.002933622786364486, + "calibration_in_the_large": -0.0007146807524899467, + "expected_calibration_error_10bin": 0.0007969558586392212, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + "F12": { + "valid": 2777, + "positives": 12, + "negatives": 2765, + "auroc": 0.9094333936106088, + "auprc": 0.02849112819739874, + "brier": 0.004276409103789442, + "calibration": { + "observed_rate": 0.004321209938782859, + "mean_prediction": 0.0019608843173526684, + "calibration_in_the_large": -0.0023603256214301906, + "expected_calibration_error_10bin": 0.0023603256214301906, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + "F14": { + "valid": 2787, + "positives": 10, + "negatives": 2777, + "auroc": 0.9272596326971552, + "auprc": 0.04033461198794868, + "brier": 0.003555268979336338, + "calibration": { + "observed_rate": 0.003588087549336204, + "mean_prediction": 0.0016717567853222193, + "calibration_in_the_large": -0.0019163307640139846, + "expected_calibration_error_10bin": 0.002249786773116399, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "F15": { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.9416045438409656, + "auprc": 0.055499046408137305, + "brier": 0.0020809065404352772, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0014278492239157507, + "calibration_in_the_large": -0.0006975492883052907, + "expected_calibration_error_10bin": 0.0006975492883052907, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "F17": { + "valid": 2426, + "positives": 33, + "negatives": 2393, + "auroc": 0.8773316111385481, + "auprc": 0.08394825206574519, + "brier": 0.013088619826137984, + "calibration": { + "observed_rate": 0.013602638087386645, + "mean_prediction": 0.007435415045833115, + "calibration_in_the_large": -0.00616722304155353, + "expected_calibration_error_10bin": 0.006542708330335877, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8533239535701723 + }, + "F19": { + "valid": 2801, + "positives": 13, + "negatives": 2788, + "auroc": 0.9360445866902108, + "auprc": 0.1828266983980744, + "brier": 0.0043171464738141945, + "calibration": { + "observed_rate": 0.0046411995715815784, + "mean_prediction": 0.0029531104581601362, + "calibration_in_the_large": -0.0016880891134214422, + "expected_calibration_error_10bin": 0.0018507364954794185, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "F20": { + "valid": 2808, + "positives": 4, + "negatives": 2804, + "auroc": 0.8467368045649073, + "auprc": 0.013745554865049156, + "brier": 0.0014197991382172545, + "calibration": { + "observed_rate": 0.0014245014245014246, + "mean_prediction": 0.0012695974913683138, + "calibration_in_the_large": -0.00015490393313311078, + "expected_calibration_error_10bin": 0.00015490393313311078, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9876890608512136 + }, + "F22": { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.926950354609929, + "auprc": 0.004830917874396135, + "brier": 0.00037416711169662586, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0019887523594661616, + "calibration_in_the_large": 0.0016342681340141942, + "expected_calibration_error_10bin": 0.0016342681340141942, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "F25": { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.8448153409090909, + "auprc": 0.009063637329008466, + "brier": 0.0010721525878358445, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0013762643490412483, + "calibration_in_the_large": 0.0003120571833796662, + "expected_calibration_error_10bin": 0.0003120571833796662, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "F29": { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.8172802001429592, + "auprc": 0.018194262406543017, + "brier": 0.002837759122357923, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.0008644642797388966, + "calibration_in_the_large": -0.0019865692199047243, + "expected_calibration_error_10bin": 0.0019865692199047243, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "F31": { + "valid": 2724, + "positives": 9, + "negatives": 2715, + "auroc": 0.9227337835072642, + "auprc": 0.03580861660353788, + "brier": 0.003241603477313767, + "calibration": { + "observed_rate": 0.003303964757709251, + "mean_prediction": 0.0030960237296678633, + "calibration_in_the_large": -0.0002079410280413879, + "expected_calibration_error_10bin": 0.0002079410280413879, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9581428068941259 + }, + "F32": { + "valid": 2200, + "positives": 66, + "negatives": 2134, + "auroc": 0.6838061969270967, + "auprc": 0.06416653031358138, + "brier": 0.02898033344551181, + "calibration": { + "observed_rate": 0.03, + "mean_prediction": 0.02502940755856054, + "calibration_in_the_large": -0.004970592441439457, + "expected_calibration_error_10bin": 0.007654343970352785, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7738304607808653 + }, + "F33": { + "valid": 2800, + "positives": 12, + "negatives": 2788, + "auroc": 0.8423900047824008, + "auprc": 0.022824624541810987, + "brier": 0.0043015245149683485, + "calibration": { + "observed_rate": 0.004285714285714286, + "mean_prediction": 0.004166198352031643, + "calibration_in_the_large": -0.00011951593368264308, + "expected_calibration_error_10bin": 0.0004709277510119133, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + "F39": { + "valid": 2801, + "positives": 11, + "negatives": 2790, + "auroc": 0.7049853372434017, + "auprc": 0.023198870716046538, + "brier": 0.003893003181079886, + "calibration": { + "observed_rate": 0.003927168868261335, + "mean_prediction": 0.0018079421203896233, + "calibration_in_the_large": -0.0021192267478717117, + "expected_calibration_error_10bin": 0.0021192267478717117, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "F41": { + "valid": 2247, + "positives": 78, + "negatives": 2169, + "auroc": 0.7299771843340308, + "auprc": 0.09245698768727251, + "brier": 0.03283375178665664, + "calibration": { + "observed_rate": 0.03471295060080107, + "mean_prediction": 0.031277016698849906, + "calibration_in_the_large": -0.0034359339019511617, + "expected_calibration_error_10bin": 0.007576267549566658, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7903622933520928 + }, + "F43": { + "valid": 2734, + "positives": 20, + "negatives": 2714, + "auroc": 0.7478260869565218, + "auprc": 0.028676826089361236, + "brier": 0.0072515010540369455, + "calibration": { + "observed_rate": 0.0073152889539136795, + "mean_prediction": 0.006284718063682789, + "calibration_in_the_large": -0.0010305708902308905, + "expected_calibration_error_10bin": 0.0018502434351734937, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "F60": { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.9465979137031768, + "auprc": 0.09699954744220919, + "brier": 0.0020289791937278933, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.002944850788604769, + "calibration_in_the_large": 0.0008156811647580691, + "expected_calibration_error_10bin": 0.0008156811647580692, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "F90": { + "valid": 2775, + "positives": 8, + "negatives": 2767, + "auroc": 0.9062612938200216, + "auprc": 0.03656524659606109, + "brier": 0.002835159108235917, + "calibration": { + "observed_rate": 0.002882882882882883, + "mean_prediction": 0.0030208538759102298, + "calibration_in_the_large": 0.00013797099302734683, + "expected_calibration_error_10bin": 0.00013797099302734683, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + "G25": { + "valid": 2774, + "positives": 6, + "negatives": 2768, + "auroc": 0.7330804431599229, + "auprc": 0.006040214559692786, + "brier": 0.0021656694900716103, + "calibration": { + "observed_rate": 0.0021629416005767843, + "mean_prediction": 0.002932046939825078, + "calibration_in_the_large": 0.0007691053392482935, + "expected_calibration_error_10bin": 0.0007691053392482935, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "G31": { + "valid": 2802, + "positives": 8, + "negatives": 2794, + "auroc": 0.8117394416607016, + "auprc": 0.01742383286783861, + "brier": 0.002845355138672309, + "calibration": { + "observed_rate": 0.0028551034975017845, + "mean_prediction": 0.0024555131310098647, + "calibration_in_the_large": -0.0003995903664919197, + "expected_calibration_error_10bin": 0.0003995903664919197, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "G40": { + "valid": 2723, + "positives": 24, + "negatives": 2699, + "auroc": 0.7109731999505989, + "auprc": 0.04110383866715208, + "brier": 0.008718335223242455, + "calibration": { + "observed_rate": 0.008813808299669483, + "mean_prediction": 0.006218125757299058, + "calibration_in_the_large": -0.002595682542370425, + "expected_calibration_error_10bin": 0.0033808923527583667, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + "G43": { + "valid": 2725, + "positives": 15, + "negatives": 2710, + "auroc": 0.759950799507995, + "auprc": 0.03630499689689029, + "brier": 0.00543687176642602, + "calibration": { + "observed_rate": 0.005504587155963303, + "mean_prediction": 0.0030161130737562433, + "calibration_in_the_large": -0.00248847408220706, + "expected_calibration_error_10bin": 0.00248847408220706, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9584945480126627 + }, + "G44": { + "valid": 2805, + "positives": 7, + "negatives": 2798, + "auroc": 0.5970591238639845, + "auprc": 0.012276685411125724, + "brier": 0.0024889935645264335, + "calibration": { + "observed_rate": 0.0024955436720142605, + "mean_prediction": 0.0012426656308425841, + "calibration_in_the_large": -0.0012528780411716763, + "expected_calibration_error_10bin": 0.0012528780411716763, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "G47": { + "valid": 2315, + "positives": 84, + "negatives": 2231, + "auroc": 0.6738436746280763, + "auprc": 0.07329841461190653, + "brier": 0.03455375666573324, + "calibration": { + "observed_rate": 0.03628509719222462, + "mean_prediction": 0.030591063963105503, + "calibration_in_the_large": -0.005694033229119117, + "expected_calibration_error_10bin": 0.0067767613918166495, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8142806894125924 + }, + "G51": { + "valid": 2834, + "positives": 0, + "negatives": 2834, + "auroc": null, + "auprc": null, + "brier": 4.6232438924600146e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0005604367763229888, + "calibration_in_the_large": 0.0005604367763229888, + "expected_calibration_error_10bin": 0.0005604367763229888, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9968343299331692 + }, + "G62": { + "valid": 2751, + "positives": 34, + "negatives": 2717, + "auroc": 0.8133971291866029, + "auprc": 0.09614309436354007, + "brier": 0.011828354844612017, + "calibration": { + "observed_rate": 0.012359142130134497, + "mean_prediction": 0.007338368390077021, + "calibration_in_the_large": -0.005020773740057476, + "expected_calibration_error_10bin": 0.006629739007806017, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "G81": { + "valid": 2789, + "positives": 14, + "negatives": 2775, + "auroc": 0.7412355212355213, + "auprc": 0.049383415927709305, + "brier": 0.0049422740721219785, + "calibration": { + "observed_rate": 0.005019720329867336, + "mean_prediction": 0.0035965409637849777, + "calibration_in_the_large": -0.0014231793660823581, + "expected_calibration_error_10bin": 0.001521156301466622, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "G83": { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.6349994091929576, + "auprc": 0.005493336452631197, + "brier": 0.0010634583927752728, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0012993374419028553, + "calibration_in_the_large": 0.00023701449572721776, + "expected_calibration_error_10bin": 0.00023701449572721776, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "G89": { + "valid": 2537, + "positives": 61, + "negatives": 2476, + "auroc": 0.7718954421462433, + "auprc": 0.08433369979437504, + "brier": 0.022852451050464937, + "calibration": { + "observed_rate": 0.02404414662987781, + "mean_prediction": 0.01735180134856655, + "calibration_in_the_large": -0.006692345281311258, + "expected_calibration_error_10bin": 0.007100162116901902, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8923672177277524 + }, + "G90": { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 1.2053387971448474e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.001622969197044423, + "calibration_in_the_large": 0.001622969197044423, + "expected_calibration_error_10bin": 0.001622969197044423, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "G92": { + "valid": 2733, + "positives": 42, + "negatives": 2691, + "auroc": 0.7808568243350852, + "auprc": 0.047702436700987096, + "brier": 0.014932917403260058, + "calibration": { + "observed_rate": 0.015367727771679473, + "mean_prediction": 0.01282759459208008, + "calibration_in_the_large": -0.0025401331795993926, + "expected_calibration_error_10bin": 0.003135246709978225, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + "G93": { + "valid": 2656, + "positives": 47, + "negatives": 2609, + "auroc": 0.8087471355292237, + "auprc": 0.06564262001677783, + "brier": 0.016954665029230504, + "calibration": { + "observed_rate": 0.017695783132530122, + "mean_prediction": 0.014137048008295272, + "calibration_in_the_large": -0.00355873512423485, + "expected_calibration_error_10bin": 0.004384940655123195, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9342244108336265 + }, + "G99": { + "valid": 2841, + "positives": 1, + "negatives": 2840, + "auroc": 0.4126760563380282, + "auprc": 0.0005991611743559018, + "brier": 0.0003538542657774245, + "calibration": { + "observed_rate": 0.00035198873636043646, + "mean_prediction": 0.00046362455718762285, + "calibration_in_the_large": 0.0001116358208271864, + "expected_calibration_error_10bin": 0.0001116358208271864, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9992965177629265 + }, + "H10": { + "valid": 2832, + "positives": 5, + "negatives": 2827, + "auroc": 0.8275910859568447, + "auprc": 0.007217863903208538, + "brier": 0.001760461881760063, + "calibration": { + "observed_rate": 0.0017655367231638418, + "mean_prediction": 0.0009891769899307698, + "calibration_in_the_large": -0.000776359733233072, + "expected_calibration_error_10bin": 0.000776359733233072, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + "H26": { + "valid": 2819, + "positives": 0, + "negatives": 2819, + "auroc": null, + "auprc": null, + "brier": 1.5264509491266083e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.001970294767778994, + "calibration_in_the_large": 0.001970294767778994, + "expected_calibration_error_10bin": 0.001970294767778994, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "H35": { + "valid": 2806, + "positives": 6, + "negatives": 2800, + "auroc": 0.7381547619047619, + "auprc": 0.007266723086213521, + "brier": 0.0021330437220642385, + "calibration": { + "observed_rate": 0.0021382751247327157, + "mean_prediction": 0.0012403931565103767, + "calibration_in_the_large": -0.000897881968222339, + "expected_calibration_error_10bin": 0.000897881968222339, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "H40": { + "valid": 2750, + "positives": 9, + "negatives": 2741, + "auroc": 0.6806518302322754, + "auprc": 0.028563838251874776, + "brier": 0.003249682120014178, + "calibration": { + "observed_rate": 0.0032727272727272726, + "mean_prediction": 0.00395781394004073, + "calibration_in_the_large": 0.0006850866673134576, + "expected_calibration_error_10bin": 0.0006850866673134576, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + "H53": { + "valid": 2790, + "positives": 12, + "negatives": 2778, + "auroc": 0.566444684425246, + "auprc": 0.01229467070406233, + "brier": 0.0042966384126098675, + "calibration": { + "observed_rate": 0.004301075268817204, + "mean_prediction": 0.005161030554910705, + "calibration_in_the_large": 0.0008599552860935004, + "expected_calibration_error_10bin": 0.0008599552860935004, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + "H54": { + "valid": 2809, + "positives": 3, + "negatives": 2806, + "auroc": 0.41910192444761224, + "auprc": 0.0012072972370590965, + "brier": 0.0010720133831151474, + "calibration": { + "observed_rate": 0.001067995728017088, + "mean_prediction": 0.0012168935424528328, + "calibration_in_the_large": 0.0001488978144357448, + "expected_calibration_error_10bin": 0.0001488978144357448, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "H91": { + "valid": 2791, + "positives": 7, + "negatives": 2784, + "auroc": 0.8130644499178982, + "auprc": 0.02056037442764563, + "brier": 0.002486944472275995, + "calibration": { + "observed_rate": 0.0025080616266571123, + "mean_prediction": 0.0021236607670049555, + "calibration_in_the_large": -0.00038440085965215677, + "expected_calibration_error_10bin": 0.00038440085965215677, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9817094618360886 + }, + "I07": { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.8452254171104011, + "auprc": 0.011816034382669862, + "brier": 0.002116258843116491, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0011174032345318882, + "calibration_in_the_large": -0.0010079952776891532, + "expected_calibration_error_10bin": 0.0010079952776891532, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "I08": { + "valid": 2767, + "positives": 12, + "negatives": 2755, + "auroc": 0.8546884452510587, + "auprc": 0.02409583313327875, + "brier": 0.004363550288723414, + "calibration": { + "observed_rate": 0.0043368268883267076, + "mean_prediction": 0.0048181923714573326, + "calibration_in_the_large": 0.000481365483130625, + "expected_calibration_error_10bin": 0.0007704129391691924, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9732676749912065 + }, + "I10": { + "valid": 1498, + "positives": 40, + "negatives": 1458, + "auroc": 0.6920781893004115, + "auprc": 0.056775245916574235, + "brier": 0.025794631812137408, + "calibration": { + "observed_rate": 0.0267022696929239, + "mean_prediction": 0.02280461937481306, + "calibration_in_the_large": -0.003897650318110839, + "expected_calibration_error_10bin": 0.006050118725455911, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5269081955680619 + }, + "I11": { + "valid": 2676, + "positives": 48, + "negatives": 2628, + "auroc": 0.8153697361745307, + "auprc": 0.07026968177781194, + "brier": 0.017290321031669446, + "calibration": { + "observed_rate": 0.017937219730941704, + "mean_prediction": 0.014352190758285107, + "calibration_in_the_large": -0.0035850289726565964, + "expected_calibration_error_10bin": 0.007142667275436117, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9412592332043616 + }, + "I12": { + "valid": 2552, + "positives": 28, + "negatives": 2524, + "auroc": 0.8580625990491284, + "auprc": 0.09624384296135473, + "brier": 0.01051800142513893, + "calibration": { + "observed_rate": 0.0109717868338558, + "mean_prediction": 0.010196043013242187, + "calibration_in_the_large": -0.0007757438206136124, + "expected_calibration_error_10bin": 0.0031804297381663495, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8976433345058037 + }, + "I13": { + "valid": 2727, + "positives": 27, + "negatives": 2700, + "auroc": 0.9043484224965707, + "auprc": 0.154118975508285, + "brier": 0.009030776634122476, + "calibration": { + "observed_rate": 0.009900990099009901, + "mean_prediction": 0.011824650966423654, + "calibration_in_the_large": 0.0019236608674137526, + "expected_calibration_error_10bin": 0.003868807413044929, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9591980302497362 + }, + "I16": { + "valid": 2390, + "positives": 11, + "negatives": 2379, + "auroc": 0.8821506362489969, + "auprc": 0.035264079212603563, + "brier": 0.004524980690102386, + "calibration": { + "observed_rate": 0.004602510460251046, + "mean_prediction": 0.0038976262582766223, + "calibration_in_the_large": -0.000704884201974424, + "expected_calibration_error_10bin": 0.000704884201974424, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8406612733028491 + }, + "I21": { + "valid": 2671, + "positives": 20, + "negatives": 2651, + "auroc": 0.8438325160316862, + "auprc": 0.03272307030294021, + "brier": 0.007473256549468578, + "calibration": { + "observed_rate": 0.007487832272557095, + "mean_prediction": 0.012956678946047644, + "calibration_in_the_large": 0.005468846673490549, + "expected_calibration_error_10bin": 0.005468846673490549, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + "I24": { + "valid": 2809, + "positives": 8, + "negatives": 2801, + "auroc": 0.8768297036772581, + "auprc": 0.02238853077225958, + "brier": 0.0028191795560505006, + "calibration": { + "observed_rate": 0.002847988608045568, + "mean_prediction": 0.0028614157110645896, + "calibration_in_the_large": 1.3427103019021582e-05, + "expected_calibration_error_10bin": 1.3427103019021582e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "I25": { + "valid": 2243, + "positives": 40, + "negatives": 2203, + "auroc": 0.8484339536995007, + "auprc": 0.0860124221611122, + "brier": 0.01698340723850474, + "calibration": { + "observed_rate": 0.017833259028087384, + "mean_prediction": 0.012949652110443764, + "calibration_in_the_large": -0.0048836069176436195, + "expected_calibration_error_10bin": 0.005950612477226441, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7889553288779458 + }, + "I26": { + "valid": 2760, + "positives": 18, + "negatives": 2742, + "auroc": 0.7414903963044007, + "auprc": 0.1387060706145008, + "brier": 0.006206118410156375, + "calibration": { + "observed_rate": 0.006521739130434782, + "mean_prediction": 0.00906653434210149, + "calibration_in_the_large": 0.0025447952116667083, + "expected_calibration_error_10bin": 0.003964257059530044, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9708054871614492 + }, + "I27": { + "valid": 2716, + "positives": 34, + "negatives": 2682, + "auroc": 0.8431701539676273, + "auprc": 0.06578347790454314, + "brier": 0.012150157893728575, + "calibration": { + "observed_rate": 0.012518409425625921, + "mean_prediction": 0.008527688873316985, + "calibration_in_the_large": -0.003990720552308936, + "expected_calibration_error_10bin": 0.004964771668977007, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + "I31": { + "valid": 2793, + "positives": 16, + "negatives": 2777, + "auroc": 0.7754546272956427, + "auprc": 0.017145915996989704, + "brier": 0.00569355084542388, + "calibration": { + "observed_rate": 0.005728607232366631, + "mean_prediction": 0.0035911011929943087, + "calibration_in_the_large": -0.0021375060393723226, + "expected_calibration_error_10bin": 0.0021375060393723226, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "I34": { + "valid": 2753, + "positives": 18, + "negatives": 2735, + "auroc": 0.7605118829981719, + "auprc": 0.016571014379153853, + "brier": 0.006676794212276144, + "calibration": { + "observed_rate": 0.006538321830730113, + "mean_prediction": 0.007767319216268316, + "calibration_in_the_large": 0.0012289973855382028, + "expected_calibration_error_10bin": 0.0012289973855382028, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9683432993316918 + }, + "I35": { + "valid": 2723, + "positives": 7, + "negatives": 2716, + "auroc": 0.6379654954765411, + "auprc": 0.006937898005590227, + "brier": 0.002595675980332701, + "calibration": { + "observed_rate": 0.002570694087403599, + "mean_prediction": 0.0033992142161516315, + "calibration_in_the_large": 0.0008285201287480328, + "expected_calibration_error_10bin": 0.0008285201287480328, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + "I42": { + "valid": 2740, + "positives": 13, + "negatives": 2727, + "auroc": 0.9227948435869228, + "auprc": 0.042721685053857386, + "brier": 0.004647718565187579, + "calibration": { + "observed_rate": 0.004744525547445255, + "mean_prediction": 0.0041968139616651605, + "calibration_in_the_large": -0.0005477115857800948, + "expected_calibration_error_10bin": 0.000738258814074663, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + "I44": { + "valid": 2722, + "positives": 23, + "negatives": 2699, + "auroc": 0.7981700146592136, + "auprc": 0.04110491153518274, + "brier": 0.008271374178981505, + "calibration": { + "observed_rate": 0.008449669360764144, + "mean_prediction": 0.0055287631230996614, + "calibration_in_the_large": -0.0029209062376644827, + "expected_calibration_error_10bin": 0.0029946401503454564, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9574393246570524 + }, + "I45": { + "valid": 2766, + "positives": 18, + "negatives": 2748, + "auroc": 0.6711345625101084, + "auprc": 0.01073508762585674, + "brier": 0.006484659562091377, + "calibration": { + "observed_rate": 0.006507592190889371, + "mean_prediction": 0.005549033655256525, + "calibration_in_the_large": -0.0009585585356328453, + "expected_calibration_error_10bin": 0.0009585585356328453, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9729159338726697 + }, + "I46": { + "valid": 2831, + "positives": 3, + "negatives": 2828, + "auroc": 0.695898161244696, + "auprc": 0.0027124623119847784, + "brier": 0.0010594573569697413, + "calibration": { + "observed_rate": 0.0010596962204168139, + "mean_prediction": 0.0009222303640753122, + "calibration_in_the_large": -0.00013746585634150164, + "expected_calibration_error_10bin": 0.00013746585634150164, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "I47": { + "valid": 2716, + "positives": 18, + "negatives": 2698, + "auroc": 0.633967547977926, + "auprc": 0.009605663868477315, + "brier": 0.0066695199393538695, + "calibration": { + "observed_rate": 0.0066273932253313695, + "mean_prediction": 0.008639605775659084, + "calibration_in_the_large": 0.002012212550327714, + "expected_calibration_error_10bin": 0.0020122125503277133, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + "I48": { + "valid": 2385, + "positives": 30, + "negatives": 2355, + "auroc": 0.7312668082094834, + "auprc": 0.031534959988763316, + "brier": 0.012906578471826689, + "calibration": { + "observed_rate": 0.012578616352201259, + "mean_prediction": 0.017606460069419926, + "calibration_in_the_large": 0.005027843717218667, + "expected_calibration_error_10bin": 0.005027843717218669, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8389025677101654 + }, + "I49": { + "valid": 2734, + "positives": 17, + "negatives": 2717, + "auroc": 0.6556755937560891, + "auprc": 0.010287398805037522, + "brier": 0.0061978754041757175, + "calibration": { + "observed_rate": 0.006217995610826628, + "mean_prediction": 0.004541123989584372, + "calibration_in_the_large": -0.0016768716212422555, + "expected_calibration_error_10bin": 0.0016768716212422555, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "I50": { + "valid": 2415, + "positives": 46, + "negatives": 2369, + "auroc": 0.8126250298236276, + "auprc": 0.07647641488780219, + "brier": 0.018705489565712625, + "calibration": { + "observed_rate": 0.01904761904761905, + "mean_prediction": 0.019145687733759454, + "calibration_in_the_large": 9.806868614040468e-05, + "expected_calibration_error_10bin": 0.005665892784258191, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.849454801266268 + }, + "I51": { + "valid": 2807, + "positives": 8, + "negatives": 2799, + "auroc": 0.7706323687031083, + "auprc": 0.009156095435255045, + "brier": 0.0028418274661671196, + "calibration": { + "observed_rate": 0.0028500178126113287, + "mean_prediction": 0.0022657473693555386, + "calibration_in_the_large": -0.0005842704432557902, + "expected_calibration_error_10bin": 0.0005842704432557902, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "I61": { + "valid": 2802, + "positives": 8, + "negatives": 2794, + "auroc": 0.8304849677881174, + "auprc": 0.014370989125117074, + "brier": 0.0028398893118930743, + "calibration": { + "observed_rate": 0.0028551034975017845, + "mean_prediction": 0.0019970943980895197, + "calibration_in_the_large": -0.0008580090994122647, + "expected_calibration_error_10bin": 0.0008580090994122647, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "I63": { + "valid": 2735, + "positives": 14, + "negatives": 2721, + "auroc": 0.75129941723106, + "auprc": 0.015323706960289177, + "brier": 0.005093629329451391, + "calibration": { + "observed_rate": 0.005118829981718464, + "mean_prediction": 0.004800049846190504, + "calibration_in_the_large": -0.00031878013552796066, + "expected_calibration_error_10bin": 0.00031878013552796066, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9620119591980303 + }, + "I65": { + "valid": 2774, + "positives": 6, + "negatives": 2768, + "auroc": 0.7084537572254336, + "auprc": 0.008398151821117266, + "brier": 0.0021977478180809336, + "calibration": { + "observed_rate": 0.0021629416005767843, + "mean_prediction": 0.005098527384153348, + "calibration_in_the_large": 0.002935585783576564, + "expected_calibration_error_10bin": 0.002935585783576564, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "I67": { + "valid": 2773, + "positives": 3, + "negatives": 2770, + "auroc": 0.7663056558363418, + "auprc": 0.004550827423167848, + "brier": 0.0011214157703826084, + "calibration": { + "observed_rate": 0.0010818608005769925, + "mean_prediction": 0.003352720825801596, + "calibration_in_the_large": 0.002270860025224603, + "expected_calibration_error_10bin": 0.002270860025224603, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + "I69": { + "valid": 2752, + "positives": 17, + "negatives": 2735, + "auroc": 0.7316485643617593, + "auprc": 0.02076226645625337, + "brier": 0.006151209165196731, + "calibration": { + "observed_rate": 0.0061773255813953485, + "mean_prediction": 0.005627762443664707, + "calibration_in_the_large": -0.0005495631377306414, + "expected_calibration_error_10bin": 0.0009056543241348695, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9679915582131551 + }, + "I70": { + "valid": 2771, + "positives": 12, + "negatives": 2759, + "auroc": 0.8252688172043011, + "auprc": 0.038091152570231136, + "brier": 0.004268435576447333, + "calibration": { + "observed_rate": 0.004330566582461205, + "mean_prediction": 0.004039135818586067, + "calibration_in_the_large": -0.00029143076387513813, + "expected_calibration_error_10bin": 0.0007579607657570605, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9746746394653535 + }, + "I71": { + "valid": 2769, + "positives": 5, + "negatives": 2764, + "auroc": 0.7319102749638206, + "auprc": 0.011781612501828902, + "brier": 0.0018109776692672955, + "calibration": { + "observed_rate": 0.0018057060310581437, + "mean_prediction": 0.003559787610399936, + "calibration_in_the_large": 0.0017540815793417922, + "expected_calibration_error_10bin": 0.0017540815793417922, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.97397115722828 + }, + "I72": { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.7105263157894737, + "auprc": 0.011052383168114825, + "brier": 0.002121734694704448, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.0017499722599315635, + "calibration_in_the_large": -0.00037919736391513626, + "expected_calibration_error_10bin": 0.00037919736391513626, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "I73": { + "valid": 2734, + "positives": 10, + "negatives": 2724, + "auroc": 0.8648678414096916, + "auprc": 0.1113544163639181, + "brier": 0.003485500681614444, + "calibration": { + "observed_rate": 0.0036576444769568397, + "mean_prediction": 0.005585373900407947, + "calibration_in_the_large": 0.0019277294234511075, + "expected_calibration_error_10bin": 0.0023357457485408423, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "I74": { + "valid": 2821, + "positives": 5, + "negatives": 2816, + "auroc": 0.7821732954545455, + "auprc": 0.012234965207865637, + "brier": 0.0017651550952404865, + "calibration": { + "observed_rate": 0.001772421127259837, + "mean_prediction": 0.0010355924343923477, + "calibration_in_the_large": -0.0007368286928674892, + "expected_calibration_error_10bin": 0.0007368286928674892, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "I77": { + "valid": 2785, + "positives": 6, + "negatives": 2779, + "auroc": 0.6448962456519132, + "auprc": 0.006097362242616713, + "brier": 0.0021593689905861873, + "calibration": { + "observed_rate": 0.0021543985637342907, + "mean_prediction": 0.0029653312731905226, + "calibration_in_the_large": 0.0008109327094562319, + "expected_calibration_error_10bin": 0.0008109327094562319, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "I80": { + "valid": 2827, + "positives": 5, + "negatives": 2822, + "auroc": 0.9195605953224664, + "auprc": 0.060433887189105404, + "brier": 0.001746395593170281, + "calibration": { + "observed_rate": 0.0017686593562079944, + "mean_prediction": 0.0010831065651651735, + "calibration_in_the_large": -0.000685552791042821, + "expected_calibration_error_10bin": 0.000685552791042821, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "I81": { + "valid": 2826, + "positives": 8, + "negatives": 2818, + "auroc": 0.8125443577004968, + "auprc": 0.025556378228828544, + "brier": 0.002873954929798626, + "calibration": { + "observed_rate": 0.0028308563340410475, + "mean_prediction": 0.0018959263831909636, + "calibration_in_the_large": -0.0009349299508500839, + "expected_calibration_error_10bin": 0.0020236448436316322, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "I82": { + "valid": 2739, + "positives": 32, + "negatives": 2707, + "auroc": 0.7490302918359808, + "auprc": 0.039724039292385036, + "brier": 0.011436476851229397, + "calibration": { + "observed_rate": 0.011683096020445418, + "mean_prediction": 0.009175064070007446, + "calibration_in_the_large": -0.0025080319504379722, + "expected_calibration_error_10bin": 0.0035503221776570356, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + "I85": { + "valid": 2793, + "positives": 9, + "negatives": 2784, + "auroc": 0.9885456577266922, + "auprc": 0.3077109408765756, + "brier": 0.0028604489164857677, + "calibration": { + "observed_rate": 0.00322234156820623, + "mean_prediction": 0.0014603674832859227, + "calibration_in_the_large": -0.0017619740849203072, + "expected_calibration_error_10bin": 0.0022356274630501234, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "I87": { + "valid": 2780, + "positives": 13, + "negatives": 2767, + "auroc": 0.7013705484974007, + "auprc": 0.012948620743957088, + "brier": 0.004652285082441278, + "calibration": { + "observed_rate": 0.004676258992805755, + "mean_prediction": 0.002985485818702492, + "calibration_in_the_large": -0.001690773174103263, + "expected_calibration_error_10bin": 0.001690773174103263, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + "I89": { + "valid": 2826, + "positives": 5, + "negatives": 2821, + "auroc": 0.8520382842963488, + "auprc": 0.006997819593751205, + "brier": 0.0017650641346394387, + "calibration": { + "observed_rate": 0.0017692852087756545, + "mean_prediction": 0.0009336029647755052, + "calibration_in_the_large": -0.0008356822440001493, + "expected_calibration_error_10bin": 0.0008356822440001493, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "I95": { + "valid": 2485, + "positives": 93, + "negatives": 2392, + "auroc": 0.7422186859423886, + "auprc": 0.09686555763555024, + "brier": 0.035044200938034564, + "calibration": { + "observed_rate": 0.03742454728370221, + "mean_prediction": 0.03161475333222141, + "calibration_in_the_large": -0.0058097939514807975, + "expected_calibration_error_10bin": 0.006255244736895114, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.874076679563841 + }, + "I96": { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.7868365180467092, + "auprc": 0.21040218611689648, + "brier": 0.0017318487447310045, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.0016668814510809185, + "calibration_in_the_large": -9.927891628043776e-05, + "expected_calibration_error_10bin": 9.927891628043776e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "I97": { + "valid": 2740, + "positives": 11, + "negatives": 2729, + "auroc": 0.7192777907325361, + "auprc": 0.010739203475981821, + "brier": 0.004009587233408744, + "calibration": { + "observed_rate": 0.0040145985401459855, + "mean_prediction": 0.004362811365861184, + "calibration_in_the_large": 0.0003482128257151981, + "expected_calibration_error_10bin": 0.00034821282571519883, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + "J02": { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.7803754870704924, + "auprc": 0.0023465187910303646, + "brier": 0.0007266109548831483, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.001504446298728256, + "calibration_in_the_large": 0.0007964816969583446, + "expected_calibration_error_10bin": 0.0007964816969583446, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J06": { + "valid": 2816, + "positives": 9, + "negatives": 2807, + "auroc": 0.6722875351304279, + "auprc": 0.01103961595622196, + "brier": 0.0032336706457992176, + "calibration": { + "observed_rate": 0.0031960227272727275, + "mean_prediction": 0.0033860704801120596, + "calibration_in_the_large": 0.00019004775283933215, + "expected_calibration_error_10bin": 0.0001900477528393328, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "J12": { + "valid": 2829, + "positives": 1, + "negatives": 2828, + "auroc": 0.9943422913719944, + "auprc": 0.058823529411764705, + "brier": 0.00041709794900985394, + "calibration": { + "observed_rate": 0.0003534817956875221, + "mean_prediction": 0.002971193283600711, + "calibration_in_the_large": 0.002617711487913189, + "expected_calibration_error_10bin": 0.0026177114879131886, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J15": { + "valid": 2795, + "positives": 15, + "negatives": 2780, + "auroc": 0.7347721822541966, + "auprc": 0.016159596282708306, + "brier": 0.005338468883498124, + "calibration": { + "observed_rate": 0.005366726296958855, + "mean_prediction": 0.0030674529471409273, + "calibration_in_the_large": -0.0022992733498179273, + "expected_calibration_error_10bin": 0.0023731027816844188, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9831164263102357 + }, + "J18": { + "valid": 2671, + "positives": 55, + "negatives": 2616, + "auroc": 0.7734222963580761, + "auprc": 0.05961381156137561, + "brier": 0.0199089417955127, + "calibration": { + "observed_rate": 0.02059153874953201, + "mean_prediction": 0.013895929914433074, + "calibration_in_the_large": -0.006695608835098935, + "expected_calibration_error_10bin": 0.008065152066422507, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + "J30": { + "valid": 2815, + "positives": 7, + "negatives": 2808, + "auroc": 0.7176943426943427, + "auprc": 0.018323660594696894, + "brier": 0.0024730856744381723, + "calibration": { + "observed_rate": 0.002486678507992895, + "mean_prediction": 0.00139837396128697, + "calibration_in_the_large": -0.0010883045467059251, + "expected_calibration_error_10bin": 0.0010883045467059251, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + "J32": { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.5291828793774319, + "auprc": 0.0037090307522904846, + "brier": 0.0007159114200317269, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0012531130007064908, + "calibration_in_the_large": 0.0005461494093314466, + "expected_calibration_error_10bin": 0.0005461494093314466, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J38": { + "valid": 2825, + "positives": 3, + "negatives": 2822, + "auroc": 0.8335695724072761, + "auprc": 0.010170146919802144, + "brier": 0.0010597598470170758, + "calibration": { + "observed_rate": 0.0010619469026548673, + "mean_prediction": 0.0014830720402439503, + "calibration_in_the_large": 0.000421125137589083, + "expected_calibration_error_10bin": 0.000421125137589083, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J43": { + "valid": 2804, + "positives": 8, + "negatives": 2796, + "auroc": 0.6666666666666666, + "auprc": 0.015532530066007029, + "brier": 0.002838001279662778, + "calibration": { + "observed_rate": 0.0028530670470756064, + "mean_prediction": 0.002800342773283405, + "calibration_in_the_large": -5.272427379220124e-05, + "expected_calibration_error_10bin": 5.272427379220124e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "J44": { + "valid": 2570, + "positives": 27, + "negatives": 2543, + "auroc": 0.8305005752901938, + "auprc": 0.04809711077862714, + "brier": 0.010276149238197849, + "calibration": { + "observed_rate": 0.010505836575875487, + "mean_prediction": 0.008635733277859435, + "calibration_in_the_large": -0.0018701032980160525, + "expected_calibration_error_10bin": 0.0025979795303079888, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9039746746394653 + }, + "J45": { + "valid": 2518, + "positives": 23, + "negatives": 2495, + "auroc": 0.6902500653480875, + "auprc": 0.022795255681716316, + "brier": 0.009068875111795273, + "calibration": { + "observed_rate": 0.009134233518665607, + "mean_prediction": 0.007315553096270986, + "calibration_in_the_large": -0.0018186804223946215, + "expected_calibration_error_10bin": 0.002294998413016184, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.885684136475554 + }, + "J47": { + "valid": 2825, + "positives": 6, + "negatives": 2819, + "auroc": 0.7937211777225966, + "auprc": 0.010059045726690563, + "brier": 0.0021192902910156515, + "calibration": { + "observed_rate": 0.0021238938053097347, + "mean_prediction": 0.000600190303930067, + "calibration_in_the_large": -0.0015237035013796678, + "expected_calibration_error_10bin": 0.0015237035013796678, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J69": { + "valid": 2777, + "positives": 27, + "negatives": 2750, + "auroc": 0.7437037037037038, + "auprc": 0.027018895551077452, + "brier": 0.00958253037769144, + "calibration": { + "observed_rate": 0.009722722362261434, + "mean_prediction": 0.005841512536603425, + "calibration_in_the_large": -0.003881209825658009, + "expected_calibration_error_10bin": 0.003881209825658009, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + "J81": { + "valid": 2781, + "positives": 20, + "negatives": 2761, + "auroc": 0.8140890981528431, + "auprc": 0.055981415098261975, + "brier": 0.007037789984525621, + "calibration": { + "observed_rate": 0.00719165767709457, + "mean_prediction": 0.004654312489209061, + "calibration_in_the_large": -0.002537345187885509, + "expected_calibration_error_10bin": 0.002537345187885509, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + "J84": { + "valid": 2817, + "positives": 7, + "negatives": 2810, + "auroc": 0.904168784951703, + "auprc": 0.01720749241135284, + "brier": 0.0024630633927974874, + "calibration": { + "observed_rate": 0.0024849130280440185, + "mean_prediction": 0.002569342980605037, + "calibration_in_the_large": 8.442995256101836e-05, + "expected_calibration_error_10bin": 8.442995256101836e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "J90": { + "valid": 2754, + "positives": 36, + "negatives": 2718, + "auroc": 0.7006683836154035, + "auprc": 0.025157264111826838, + "brier": 0.012978142866428137, + "calibration": { + "observed_rate": 0.013071895424836602, + "mean_prediction": 0.007432999279276205, + "calibration_in_the_large": -0.005638896145560397, + "expected_calibration_error_10bin": 0.006418522193855549, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9686950404502286 + }, + "J91": { + "valid": 2807, + "positives": 10, + "negatives": 2797, + "auroc": 0.8141222738648553, + "auprc": 0.03178613670663006, + "brier": 0.0035422284032555025, + "calibration": { + "observed_rate": 0.003562522265764161, + "mean_prediction": 0.003996979091292433, + "calibration_in_the_large": 0.0004344568255282722, + "expected_calibration_error_10bin": 0.00044184287428461125, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "J94": { + "valid": 2829, + "positives": 10, + "negatives": 2819, + "auroc": 0.6808087974459028, + "auprc": 0.10591301819453196, + "brier": 0.003492243006422368, + "calibration": { + "observed_rate": 0.003534817956875221, + "mean_prediction": 0.0005771840330849491, + "calibration_in_the_large": -0.002957633923790272, + "expected_calibration_error_10bin": 0.002957633923790272, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J95": { + "valid": 2770, + "positives": 14, + "negatives": 2756, + "auroc": 0.8282189508604603, + "auprc": 0.030124189618864948, + "brier": 0.004988158067505975, + "calibration": { + "observed_rate": 0.005054151624548736, + "mean_prediction": 0.0035458595301483763, + "calibration_in_the_large": -0.00150829209440036, + "expected_calibration_error_10bin": 0.00150829209440036, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9743228983468167 + }, + "J96": { + "valid": 2605, + "positives": 70, + "negatives": 2535, + "auroc": 0.8324429416737109, + "auprc": 0.12325126974037492, + "brier": 0.02493843613366994, + "calibration": { + "observed_rate": 0.026871401151631478, + "mean_prediction": 0.018387627565132025, + "calibration_in_the_large": -0.008483773586499453, + "expected_calibration_error_10bin": 0.008483773586499453, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9162856137882518 + }, + "J98": { + "valid": 2692, + "positives": 35, + "negatives": 2657, + "auroc": 0.7521694714769611, + "auprc": 0.04631782272200058, + "brier": 0.01271832867158227, + "calibration": { + "observed_rate": 0.01300148588410104, + "mean_prediction": 0.007196163675353915, + "calibration_in_the_large": -0.005805322208747125, + "expected_calibration_error_10bin": 0.005805322208747125, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9468870911009497 + }, + "K04": { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.8999647141848977, + "auprc": 0.047243454220198405, + "brier": 0.0007006342969417691, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.000550047383939887, + "calibration_in_the_large": -0.0001551712338316222, + "expected_calibration_error_10bin": 0.0001551712338316222, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "K12": { + "valid": 2824, + "positives": 14, + "negatives": 2810, + "auroc": 0.904753431621759, + "auprc": 0.09294334089912103, + "brier": 0.005194068650628238, + "calibration": { + "observed_rate": 0.004957507082152974, + "mean_prediction": 0.004157111310696667, + "calibration_in_the_large": -0.0008003957714563074, + "expected_calibration_error_10bin": 0.0038207348074526036, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "K20": { + "valid": 2813, + "positives": 10, + "negatives": 2803, + "auroc": 0.7247235105244381, + "auprc": 0.0202318517451558, + "brier": 0.003584403491999959, + "calibration": { + "observed_rate": 0.0035549235691432635, + "mean_prediction": 0.0038406179550486363, + "calibration_in_the_large": 0.0002856943859053727, + "expected_calibration_error_10bin": 0.0005949331299081543, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K21": { + "valid": 2043, + "positives": 85, + "negatives": 1958, + "auroc": 0.7396683290272187, + "auprc": 0.14145751736042483, + "brier": 0.03835172755132102, + "calibration": { + "observed_rate": 0.041605482134116495, + "mean_prediction": 0.0320806546087504, + "calibration_in_the_large": -0.009524827525366097, + "expected_calibration_error_10bin": 0.009524827525366101, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7186071051705945 + }, + "K22": { + "valid": 2764, + "positives": 18, + "negatives": 2746, + "auroc": 0.7915756251517359, + "auprc": 0.031722236564359435, + "brier": 0.006436900510950568, + "calibration": { + "observed_rate": 0.006512301013024602, + "mean_prediction": 0.0030338668475240822, + "calibration_in_the_large": -0.00347843416550052, + "expected_calibration_error_10bin": 0.00347843416550052, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9722124516355962 + }, + "K25": { + "valid": 2817, + "positives": 7, + "negatives": 2810, + "auroc": 0.7002033553634978, + "auprc": 0.006441726415232994, + "brier": 0.0024966103266509184, + "calibration": { + "observed_rate": 0.0024849130280440185, + "mean_prediction": 0.0017785921922777634, + "calibration_in_the_large": -0.0007063208357662551, + "expected_calibration_error_10bin": 0.0007903733295864725, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "K26": { + "valid": 2814, + "positives": 6, + "negatives": 2808, + "auroc": 0.9253917378917379, + "auprc": 0.19063778792999128, + "brier": 0.002067041123546076, + "calibration": { + "observed_rate": 0.0021321961620469083, + "mean_prediction": 0.00235613350635128, + "calibration_in_the_large": 0.0002239373443043719, + "expected_calibration_error_10bin": 0.0002239373443043719, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "K29": { + "valid": 2785, + "positives": 13, + "negatives": 2772, + "auroc": 0.6675546675546675, + "auprc": 0.021696706019253904, + "brier": 0.00463755968394962, + "calibration": { + "observed_rate": 0.00466786355475763, + "mean_prediction": 0.004532995271456555, + "calibration_in_the_large": -0.0001348682833010751, + "expected_calibration_error_10bin": 0.00022377275227576597, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K30": { + "valid": 2837, + "positives": 3, + "negatives": 2834, + "auroc": 0.9398964949423665, + "auprc": 0.013327051173229366, + "brier": 0.0010526184863529214, + "calibration": { + "observed_rate": 0.0010574550581600281, + "mean_prediction": 0.0008858183033699764, + "calibration_in_the_large": -0.00017163675479005172, + "expected_calibration_error_10bin": 0.00017163675479005172, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + "K31": { + "valid": 2756, + "positives": 18, + "negatives": 2738, + "auroc": 0.8821930038146254, + "auprc": 0.09046767445227284, + "brier": 0.0063174261158476805, + "calibration": { + "observed_rate": 0.006531204644412192, + "mean_prediction": 0.004689355157077652, + "calibration_in_the_large": -0.0018418494873345395, + "expected_calibration_error_10bin": 0.0026420953708374165, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + "K40": { + "valid": 2827, + "positives": 3, + "negatives": 2824, + "auroc": 0.9219782813975449, + "auprc": 0.06426034115907533, + "brier": 0.0010456538700356654, + "calibration": { + "observed_rate": 0.0010611956137247967, + "mean_prediction": 0.0010109498068869237, + "calibration_in_the_large": -5.0245806837872966e-05, + "expected_calibration_error_10bin": 5.0245806837872966e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "K42": { + "valid": 2820, + "positives": 6, + "negatives": 2814, + "auroc": 0.7511253257521914, + "auprc": 0.02953938058850271, + "brier": 0.002116904242375972, + "calibration": { + "observed_rate": 0.002127659574468085, + "mean_prediction": 0.0010553363248231534, + "calibration_in_the_large": -0.0010723232496449317, + "expected_calibration_error_10bin": 0.0010723232496449317, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + "K43": { + "valid": 2813, + "positives": 9, + "negatives": 2804, + "auroc": 0.8046837850689491, + "auprc": 0.03518993943358338, + "brier": 0.00315827016547905, + "calibration": { + "observed_rate": 0.003199431212228937, + "mean_prediction": 0.0018144927795592165, + "calibration_in_the_large": -0.0013849384326697206, + "expected_calibration_error_10bin": 0.0013849384326697206, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K44": { + "valid": 2785, + "positives": 6, + "negatives": 2779, + "auroc": 0.7195633921074727, + "auprc": 0.008586734174321974, + "brier": 0.0021482928037232186, + "calibration": { + "observed_rate": 0.0021543985637342907, + "mean_prediction": 0.002283777539169529, + "calibration_in_the_large": 0.00012937897543523853, + "expected_calibration_error_10bin": 0.00012937897543523853, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K52": { + "valid": 2749, + "positives": 35, + "negatives": 2714, + "auroc": 0.818612485524792, + "auprc": 0.09275263519199045, + "brier": 0.01225129444224887, + "calibration": { + "observed_rate": 0.012731902510003638, + "mean_prediction": 0.009163296671988928, + "calibration_in_the_large": -0.0035686058380147104, + "expected_calibration_error_10bin": 0.00526931623078489, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9669363348575448 + }, + "K55": { + "valid": 2815, + "positives": 9, + "negatives": 2806, + "auroc": 0.7342995169082126, + "auprc": 0.007951930790780787, + "brier": 0.003213513047113831, + "calibration": { + "observed_rate": 0.003197158081705151, + "mean_prediction": 0.0024814148549982995, + "calibration_in_the_large": -0.0007157432267068517, + "expected_calibration_error_10bin": 0.0008164400652653127, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + "K56": { + "valid": 2745, + "positives": 30, + "negatives": 2715, + "auroc": 0.7469981583793739, + "auprc": 0.036850429746217786, + "brier": 0.010759681275953772, + "calibration": { + "observed_rate": 0.01092896174863388, + "mean_prediction": 0.005162941145799496, + "calibration_in_the_large": -0.005766020602834384, + "expected_calibration_error_10bin": 0.005766020602834384, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9655293703833978 + }, + "K57": { + "valid": 2741, + "positives": 23, + "negatives": 2718, + "auroc": 0.7003071312026106, + "auprc": 0.029820143173165874, + "brier": 0.008310893008353725, + "calibration": { + "observed_rate": 0.008391098139365194, + "mean_prediction": 0.002975023412500228, + "calibration_in_the_large": -0.0054160747268649665, + "expected_calibration_error_10bin": 0.0054160747268649665, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + "K58": { + "valid": 2792, + "positives": 7, + "negatives": 2785, + "auroc": 0.7496794049756348, + "auprc": 0.08732408507313393, + "brier": 0.002465430423179337, + "calibration": { + "observed_rate": 0.002507163323782235, + "mean_prediction": 0.0026857901673892123, + "calibration_in_the_large": 0.00017862684360697711, + "expected_calibration_error_10bin": 0.00017862684360697711, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + "K59": { + "valid": 2560, + "positives": 85, + "negatives": 2475, + "auroc": 0.7573666072489602, + "auprc": 0.12952949467741273, + "brier": 0.030800675634941144, + "calibration": { + "observed_rate": 0.033203125, + "mean_prediction": 0.027916880644602314, + "calibration_in_the_large": -0.005286244355397686, + "expected_calibration_error_10bin": 0.007290636992570399, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + "K62": { + "valid": 2813, + "positives": 14, + "negatives": 2799, + "auroc": 0.7994181595467769, + "auprc": 0.019300443777500915, + "brier": 0.004939476985620884, + "calibration": { + "observed_rate": 0.004976892996800568, + "mean_prediction": 0.0024845058727090553, + "calibration_in_the_large": -0.002492387124091513, + "expected_calibration_error_10bin": 0.002492387124091513, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K63": { + "valid": 2810, + "positives": 15, + "negatives": 2795, + "auroc": 0.7158974358974359, + "auprc": 0.020293828017844694, + "brier": 0.00529367298950648, + "calibration": { + "observed_rate": 0.005338078291814947, + "mean_prediction": 0.003086663951349608, + "calibration_in_the_large": -0.002251414340465339, + "expected_calibration_error_10bin": 0.002251414340465339, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + "K64": { + "valid": 2801, + "positives": 21, + "negatives": 2780, + "auroc": 0.7736382322713258, + "auprc": 0.031828976871988386, + "brier": 0.007396390056722492, + "calibration": { + "observed_rate": 0.007497322384862549, + "mean_prediction": 0.00427590525385771, + "calibration_in_the_large": -0.0032214171310048388, + "expected_calibration_error_10bin": 0.0032214171310048388, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "K65": { + "valid": 2813, + "positives": 13, + "negatives": 2800, + "auroc": 0.8306868131868131, + "auprc": 0.036960929179615624, + "brier": 0.004654172886451441, + "calibration": { + "observed_rate": 0.004621400639886242, + "mean_prediction": 0.0038320785396245925, + "calibration_in_the_large": -0.00078932210026165, + "expected_calibration_error_10bin": 0.002566403097392379, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K66": { + "valid": 2796, + "positives": 9, + "negatives": 2787, + "auroc": 0.672646812582227, + "auprc": 0.01802275241509833, + "brier": 0.0032116241471127926, + "calibration": { + "observed_rate": 0.003218884120171674, + "mean_prediction": 0.002982764184327844, + "calibration_in_the_large": -0.00023611993584382986, + "expected_calibration_error_10bin": 0.00023611993584382986, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + "K70": { + "valid": 2774, + "positives": 3, + "negatives": 2771, + "auroc": 0.9769036448935402, + "auprc": 0.0983397190293742, + "brier": 0.0010467396254207919, + "calibration": { + "observed_rate": 0.0010814708002883922, + "mean_prediction": 0.0009936790199412055, + "calibration_in_the_large": -8.779178034718665e-05, + "expected_calibration_error_10bin": 0.0002452147969630701, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "K72": { + "valid": 2787, + "positives": 20, + "negatives": 2767, + "auroc": 0.9110769786772678, + "auprc": 0.2675086450345904, + "brier": 0.0062857139269414984, + "calibration": { + "observed_rate": 0.007176175098672408, + "mean_prediction": 0.004051266911226045, + "calibration_in_the_large": -0.003124908187446363, + "expected_calibration_error_10bin": 0.004580479490730142, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "K74": { + "valid": 2763, + "positives": 7, + "negatives": 2756, + "auroc": 0.9455732946298984, + "auprc": 0.032280804396797154, + "brier": 0.0026338004527681914, + "calibration": { + "observed_rate": 0.0025334781035106766, + "mean_prediction": 0.0024426281876060102, + "calibration_in_the_large": -9.08499159046664e-05, + "expected_calibration_error_10bin": 0.0017315146564332797, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + "K75": { + "valid": 2798, + "positives": 10, + "negatives": 2788, + "auroc": 0.8523672883787662, + "auprc": 0.0245213136874414, + "brier": 0.0036019902233171055, + "calibration": { + "observed_rate": 0.0035739814152966403, + "mean_prediction": 0.002717695219034522, + "calibration_in_the_large": -0.0008562861962621185, + "expected_calibration_error_10bin": 0.0015572802707771744, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + "K76": { + "valid": 2681, + "positives": 31, + "negatives": 2650, + "auroc": 0.794327449786975, + "auprc": 0.18915802986861838, + "brier": 0.010671676912269256, + "calibration": { + "observed_rate": 0.011562849682954122, + "mean_prediction": 0.004592948721344037, + "calibration_in_the_large": -0.006969900961610085, + "expected_calibration_error_10bin": 0.008617454368613251, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9430179387970454 + }, + "K80": { + "valid": 2731, + "positives": 14, + "negatives": 2717, + "auroc": 0.604527051895473, + "auprc": 0.014601306022793378, + "brier": 0.005104362182964139, + "calibration": { + "observed_rate": 0.005126327352618088, + "mean_prediction": 0.004280935675459293, + "calibration_in_the_large": -0.0008453916771587952, + "expected_calibration_error_10bin": 0.0009239582705335947, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9606049947238833 + }, + "K81": { + "valid": 2825, + "positives": 5, + "negatives": 2820, + "auroc": 0.8774468085106383, + "auprc": 0.03328281244763462, + "brier": 0.0017479728806704695, + "calibration": { + "observed_rate": 0.0017699115044247787, + "mean_prediction": 0.0014310398622028595, + "calibration_in_the_large": -0.00033887164222191923, + "expected_calibration_error_10bin": 0.0004114019814713866, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "K82": { + "valid": 2824, + "positives": 4, + "negatives": 2820, + "auroc": 0.6447695035460993, + "auprc": 0.0033721717124253914, + "brier": 0.001439738770879408, + "calibration": { + "observed_rate": 0.00141643059490085, + "mean_prediction": 0.0016004956046389975, + "calibration_in_the_large": 0.00018406500973814754, + "expected_calibration_error_10bin": 0.00018406500973814754, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "K83": { + "valid": 2757, + "positives": 14, + "negatives": 2743, + "auroc": 0.9064371647310036, + "auprc": 0.09754539371235875, + "brier": 0.004908081154066316, + "calibration": { + "observed_rate": 0.005077983315197679, + "mean_prediction": 0.0030420203791523596, + "calibration_in_the_large": -0.0020359629360453195, + "expected_calibration_error_10bin": 0.002812068767663381, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.969750263805839 + }, + "K85": { + "valid": 2779, + "positives": 9, + "negatives": 2770, + "auroc": 0.8294023265142398, + "auprc": 0.027138775510032354, + "brier": 0.003202994686171606, + "calibration": { + "observed_rate": 0.0032385750269881253, + "mean_prediction": 0.0020312315250686623, + "calibration_in_the_large": -0.001207343501919463, + "expected_calibration_error_10bin": 0.001207343501919463, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9774885684136475 + }, + "K86": { + "valid": 2785, + "positives": 7, + "negatives": 2778, + "auroc": 0.6946415715314204, + "auprc": 0.017752437745134703, + "brier": 0.0025166829655864057, + "calibration": { + "observed_rate": 0.0025134649910233393, + "mean_prediction": 0.002598692909351473, + "calibration_in_the_large": 8.522791832813381e-05, + "expected_calibration_error_10bin": 8.522791832813394e-05, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K90": { + "valid": 2831, + "positives": 3, + "negatives": 2828, + "auroc": 0.5762611975483263, + "auprc": 0.0016043194347069474, + "brier": 0.0010605106210760293, + "calibration": { + "observed_rate": 0.0010596962204168139, + "mean_prediction": 0.0004470639567267816, + "calibration_in_the_large": -0.0006126322636900323, + "expected_calibration_error_10bin": 0.0006126322636900323, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "K91": { + "valid": 2768, + "positives": 24, + "negatives": 2744, + "auroc": 0.8469691448007775, + "auprc": 0.05629946703492206, + "brier": 0.008484745399212847, + "calibration": { + "observed_rate": 0.008670520231213872, + "mean_prediction": 0.003502947908500731, + "calibration_in_the_large": -0.005167572322713141, + "expected_calibration_error_10bin": 0.00525392493405058, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "K92": { + "valid": 2751, + "positives": 35, + "negatives": 2716, + "auroc": 0.834630759520303, + "auprc": 0.12759417837165954, + "brier": 0.012083629822651503, + "calibration": { + "observed_rate": 0.01272264631043257, + "mean_prediction": 0.008689959293361029, + "calibration_in_the_large": -0.0040326870170715404, + "expected_calibration_error_10bin": 0.0040326870170715404, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "K94": { + "valid": 2823, + "positives": 14, + "negatives": 2809, + "auroc": 0.9042109545847531, + "auprc": 0.12487778579506002, + "brier": 0.004865246759887326, + "calibration": { + "observed_rate": 0.00495926319518243, + "mean_prediction": 0.0013558417962942332, + "calibration_in_the_large": -0.003603421398888197, + "expected_calibration_error_10bin": 0.003603421398888197, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "L02": { + "valid": 2807, + "positives": 17, + "negatives": 2790, + "auroc": 0.7561248155176049, + "auprc": 0.017936824073984406, + "brier": 0.006011068261969035, + "calibration": { + "observed_rate": 0.006056287851799074, + "mean_prediction": 0.004888532111145804, + "calibration_in_the_large": -0.00116775574065327, + "expected_calibration_error_10bin": 0.0012486701660445244, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "L03": { + "valid": 2701, + "positives": 43, + "negatives": 2658, + "auroc": 0.7424361733774302, + "auprc": 0.07452485084738988, + "brier": 0.01542522503796576, + "calibration": { + "observed_rate": 0.015920029618659754, + "mean_prediction": 0.01014104311868802, + "calibration_in_the_large": -0.005778986499971734, + "expected_calibration_error_10bin": 0.005778986499971735, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9500527611677805 + }, + "L08": { + "valid": 2830, + "positives": 5, + "negatives": 2825, + "auroc": 0.6754690265486726, + "auprc": 0.004419665476144434, + "brier": 0.0017682959268082844, + "calibration": { + "observed_rate": 0.0017667844522968198, + "mean_prediction": 0.001267834271556474, + "calibration_in_the_large": -0.0004989501807403458, + "expected_calibration_error_10bin": 0.0004989501807403458, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9954273654590221 + }, + "L27": { + "valid": 2818, + "positives": 11, + "negatives": 2807, + "auroc": 0.7716423227645173, + "auprc": 0.02049721001556014, + "brier": 0.0038999311685807623, + "calibration": { + "observed_rate": 0.0039034776437189495, + "mean_prediction": 0.002863444486152379, + "calibration_in_the_large": -0.0010400331575665706, + "expected_calibration_error_10bin": 0.0014446150081687255, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "L29": { + "valid": 2817, + "positives": 3, + "negatives": 2814, + "auroc": 0.7806207059938404, + "auprc": 0.003165735446010861, + "brier": 0.0011189006183097109, + "calibration": { + "observed_rate": 0.0010649627263045794, + "mean_prediction": 0.0031130117895979653, + "calibration_in_the_large": 0.002048049063293386, + "expected_calibration_error_10bin": 0.0020480490632933863, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "L30": { + "valid": 2816, + "positives": 8, + "negatives": 2808, + "auroc": 0.7391381766381766, + "auprc": 0.03675690907571376, + "brier": 0.0028097249154337674, + "calibration": { + "observed_rate": 0.002840909090909091, + "mean_prediction": 0.002071690236601627, + "calibration_in_the_large": -0.0007692188543074641, + "expected_calibration_error_10bin": 0.0007692188543074641, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "L50": { + "valid": 2835, + "positives": 3, + "negatives": 2832, + "auroc": 0.8150894538606404, + "auprc": 0.009257089695238458, + "brier": 0.0010605491236119877, + "calibration": { + "observed_rate": 0.0010582010582010583, + "mean_prediction": 0.0010311356678700963, + "calibration_in_the_large": -2.7065390330961942e-05, + "expected_calibration_error_10bin": 2.7065390330961942e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.997186071051706 + }, + "L53": { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 6.699942597466392e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.001037893474281324, + "calibration_in_the_large": 0.001037893474281324, + "expected_calibration_error_10bin": 0.001037893474281324, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "L76": { + "valid": 2793, + "positives": 13, + "negatives": 2780, + "auroc": 0.7122025456557831, + "auprc": 0.008677488367836304, + "brier": 0.004642176698994248, + "calibration": { + "observed_rate": 0.004654493376297888, + "mean_prediction": 0.002541333893272427, + "calibration_in_the_large": -0.0021131594830254606, + "expected_calibration_error_10bin": 0.0021131594830254606, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "L89": { + "valid": 2798, + "positives": 22, + "negatives": 2776, + "auroc": 0.8523382237359183, + "auprc": 0.04439137934501444, + "brier": 0.007689576374338289, + "calibration": { + "observed_rate": 0.007862759113652609, + "mean_prediction": 0.0051472769827011254, + "calibration_in_the_large": -0.002715482130951483, + "expected_calibration_error_10bin": 0.0029852565344144974, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + "L97": { + "valid": 2789, + "positives": 12, + "negatives": 2777, + "auroc": 0.9337714560076822, + "auprc": 0.05275275269411287, + "brier": 0.004288136741575455, + "calibration": { + "observed_rate": 0.004302617425600574, + "mean_prediction": 0.00476896881925459, + "calibration_in_the_large": 0.0004663513936540159, + "expected_calibration_error_10bin": 0.00047249058793289345, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "L98": { + "valid": 2824, + "positives": 7, + "negatives": 2817, + "auroc": 0.5973426644353161, + "auprc": 0.0036147027038966953, + "brier": 0.002486160178848565, + "calibration": { + "observed_rate": 0.002478753541076487, + "mean_prediction": 0.002097849630225159, + "calibration_in_the_large": -0.0003809039108513281, + "expected_calibration_error_10bin": 0.0003809039108513281, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "M10": { + "valid": 2713, + "positives": 13, + "negatives": 2700, + "auroc": 0.802022792022792, + "auprc": 0.03523292854435505, + "brier": 0.004718881387589302, + "calibration": { + "observed_rate": 0.004791743457427202, + "mean_prediction": 0.005072565035856897, + "calibration_in_the_large": 0.00028082157842969444, + "expected_calibration_error_10bin": 0.00028082157842969444, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9542736545902216 + }, + "M16": { + "valid": 2790, + "positives": 3, + "negatives": 2787, + "auroc": 0.8403301040545389, + "auprc": 0.0075493091519279465, + "brier": 0.0010727293256048546, + "calibration": { + "observed_rate": 0.001075268817204301, + "mean_prediction": 0.001427075906316675, + "calibration_in_the_large": 0.00035180708911237393, + "expected_calibration_error_10bin": 0.00035180708911237393, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + "M17": { + "valid": 2733, + "positives": 13, + "negatives": 2720, + "auroc": 0.7324660633484162, + "auprc": 0.011265319207743697, + "brier": 0.004733031458961771, + "calibration": { + "observed_rate": 0.004756677643615075, + "mean_prediction": 0.0036745663357273623, + "calibration_in_the_large": -0.001082111307887713, + "expected_calibration_error_10bin": 0.001082111307887713, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + "M19": { + "valid": 2674, + "positives": 34, + "negatives": 2640, + "auroc": 0.6836452762923351, + "auprc": 0.02359548513080593, + "brier": 0.012575302776580737, + "calibration": { + "observed_rate": 0.012715033657442034, + "mean_prediction": 0.006261890190097222, + "calibration_in_the_large": -0.006453143467344812, + "expected_calibration_error_10bin": 0.006453143467344812, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.940555750967288 + }, + "M21": { + "valid": 2821, + "positives": 2, + "negatives": 2819, + "auroc": 0.9081234480312167, + "auprc": 0.005624490819076267, + "brier": 0.0007225091429449195, + "calibration": { + "observed_rate": 0.0007089684509039348, + "mean_prediction": 0.003282953659220307, + "calibration_in_the_large": 0.0025739852083163724, + "expected_calibration_error_10bin": 0.0025739852083163724, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "M25": { + "valid": 2717, + "positives": 37, + "negatives": 2680, + "auroc": 0.6557987091569181, + "auprc": 0.030064691297590186, + "brier": 0.013392576349819545, + "calibration": { + "observed_rate": 0.013617960986382039, + "mean_prediction": 0.013010710548290885, + "calibration_in_the_large": -0.0006072504380911538, + "expected_calibration_error_10bin": 0.0010426165568395522, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9556806190643686 + }, + "M35": { + "valid": 2806, + "positives": 2, + "negatives": 2804, + "auroc": 0.8680456490727532, + "auprc": 0.00393164344979828, + "brier": 0.0007132296207963622, + "calibration": { + "observed_rate": 0.0007127583749109052, + "mean_prediction": 0.0007061345712573346, + "calibration_in_the_large": -6.6238036535706465e-06, + "expected_calibration_error_10bin": 6.6238036535706465e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "M46": { + "valid": 2814, + "positives": 4, + "negatives": 2810, + "auroc": 0.5798932384341637, + "auprc": 0.0026275598295996665, + "brier": 0.0014223855689811777, + "calibration": { + "observed_rate": 0.0014214641080312722, + "mean_prediction": 0.001180657990340451, + "calibration_in_the_large": -0.00024080611769082116, + "expected_calibration_error_10bin": 0.00024080611769082116, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "M47": { + "valid": 2743, + "positives": 10, + "negatives": 2733, + "auroc": 0.6731430662275887, + "auprc": 0.013710553767108202, + "brier": 0.003629193232530504, + "calibration": { + "observed_rate": 0.0036456434560699965, + "mean_prediction": 0.004620093416449587, + "calibration_in_the_large": 0.0009744499603795906, + "expected_calibration_error_10bin": 0.0009744499603795906, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + "M48": { + "valid": 2690, + "positives": 10, + "negatives": 2680, + "auroc": 0.8017164179104478, + "auprc": 0.0165940986263379, + "brier": 0.0037075922235896737, + "calibration": { + "observed_rate": 0.0037174721189591076, + "mean_prediction": 0.006343207413426397, + "calibration_in_the_large": 0.0026257352944672897, + "expected_calibration_error_10bin": 0.0026257352944672897, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9461836088638762 + }, + "M51": { + "valid": 2785, + "positives": 4, + "negatives": 2781, + "auroc": 0.7500898957209636, + "auprc": 0.004180346965662552, + "brier": 0.0014372927508595097, + "calibration": { + "observed_rate": 0.001436265709156194, + "mean_prediction": 0.002323395246848852, + "calibration_in_the_large": 0.0008871295376926579, + "expected_calibration_error_10bin": 0.0008871295376926579, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "M54": { + "valid": 2567, + "positives": 43, + "negatives": 2524, + "auroc": 0.6946246268381675, + "auprc": 0.04121874586492418, + "brier": 0.01638481709939755, + "calibration": { + "observed_rate": 0.01675107128944293, + "mean_prediction": 0.015692636857090797, + "calibration_in_the_large": -0.0010584344323521337, + "expected_calibration_error_10bin": 0.0020943767768281905, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9029194512838551 + }, + "M62": { + "valid": 2781, + "positives": 10, + "negatives": 2771, + "auroc": 0.6682425117286178, + "auprc": 0.020510145513845734, + "brier": 0.00357413991186843, + "calibration": { + "observed_rate": 0.003595828838547285, + "mean_prediction": 0.00406819188113831, + "calibration_in_the_large": 0.0004723630425910253, + "expected_calibration_error_10bin": 0.0004723630425910253, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + "M79": { + "valid": 2697, + "positives": 39, + "negatives": 2658, + "auroc": 0.7486060465744439, + "auprc": 0.03983949438060973, + "brier": 0.01415267609880049, + "calibration": { + "observed_rate": 0.014460511679644048, + "mean_prediction": 0.010688164577366004, + "calibration_in_the_large": -0.0037723471022780442, + "expected_calibration_error_10bin": 0.004343506726783361, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9486457966936335 + }, + "M81": { + "valid": 2705, + "positives": 13, + "negatives": 2692, + "auroc": 0.809778260372614, + "auprc": 0.021548875345049807, + "brier": 0.005007982241433721, + "calibration": { + "observed_rate": 0.004805914972273568, + "mean_prediction": 0.0075099619216613305, + "calibration_in_the_large": 0.0027040469493877627, + "expected_calibration_error_10bin": 0.0027040469493877636, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9514597256419275 + }, + "M84": { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.788466097676624, + "auprc": 0.02467929511420761, + "brier": 0.00212700106338654, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.0021993972267063864, + "calibration_in_the_large": 7.022760285968661e-05, + "expected_calibration_error_10bin": 0.00019286482975295556, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "M85": { + "valid": 2768, + "positives": 7, + "negatives": 2761, + "auroc": 0.6861385626325865, + "auprc": 0.006098721826605855, + "brier": 0.002527423576846667, + "calibration": { + "observed_rate": 0.0025289017341040463, + "mean_prediction": 0.002868200339337219, + "calibration_in_the_large": 0.00033929860523317264, + "expected_calibration_error_10bin": 0.00033929860523317264, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "M86": { + "valid": 2803, + "positives": 15, + "negatives": 2788, + "auroc": 0.7529172644667623, + "auprc": 0.02400907302422223, + "brier": 0.005322767572998499, + "calibration": { + "observed_rate": 0.005351409204423832, + "mean_prediction": 0.004419191003719056, + "calibration_in_the_large": -0.000932218200704776, + "expected_calibration_error_10bin": 0.0014902634551967444, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9859303552585297 + }, + "M94": { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.5147964015151515, + "auprc": 0.0021233602483782766, + "brier": 0.0010640756932341474, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0003269761489805268, + "calibration_in_the_large": -0.0007372310166810553, + "expected_calibration_error_10bin": 0.0007372310166810553, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "M96": { + "valid": 2804, + "positives": 4, + "negatives": 2800, + "auroc": 0.9003571428571429, + "auprc": 0.012832846577642137, + "brier": 0.001419371136109287, + "calibration": { + "observed_rate": 0.0014265335235378032, + "mean_prediction": 0.00176015053402606, + "calibration_in_the_large": 0.0003336170104882568, + "expected_calibration_error_10bin": 0.0003336170104882568, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "N12": { + "valid": 2831, + "positives": 7, + "negatives": 2824, + "auroc": 0.718686766491299, + "auprc": 0.014821010834471363, + "brier": 0.0024702648025014535, + "calibration": { + "observed_rate": 0.002472624514305899, + "mean_prediction": 0.001593377532024778, + "calibration_in_the_large": -0.0008792469822811212, + "expected_calibration_error_10bin": 0.0009771096399446746, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "N13": { + "valid": 2756, + "positives": 20, + "negatives": 2736, + "auroc": 0.7410453216374269, + "auprc": 0.05489805298684201, + "brier": 0.00710780733682521, + "calibration": { + "observed_rate": 0.00725689404934688, + "mean_prediction": 0.005360810862303642, + "calibration_in_the_large": -0.0018960831870432375, + "expected_calibration_error_10bin": 0.0019957698900296503, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + "N14": { + "valid": 2826, + "positives": 8, + "negatives": 2818, + "auroc": 0.7960876508161817, + "auprc": 0.03781841037183629, + "brier": 0.002798029358682692, + "calibration": { + "observed_rate": 0.0028308563340410475, + "mean_prediction": 0.002462638462659063, + "calibration_in_the_large": -0.0003682178713819845, + "expected_calibration_error_10bin": 0.000563723352492495, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "N17": { + "valid": 2292, + "positives": 93, + "negatives": 2199, + "auroc": 0.8189793014420045, + "auprc": 0.17772275378475902, + "brier": 0.03619443921240055, + "calibration": { + "observed_rate": 0.04057591623036649, + "mean_prediction": 0.03978762197392354, + "calibration_in_the_large": -0.0007882942564429521, + "expected_calibration_error_10bin": 0.004956327713266123, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8061906436862469 + }, + "N18": { + "valid": 2440, + "positives": 46, + "negatives": 2394, + "auroc": 0.8674948240165632, + "auprc": 0.20409409379515822, + "brier": 0.016690543799197266, + "calibration": { + "observed_rate": 0.018852459016393444, + "mean_prediction": 0.015171314987447495, + "calibration_in_the_large": -0.003681144028945949, + "expected_calibration_error_10bin": 0.004162115990670903, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.858248329229687 + }, + "N20": { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.6977305218012866, + "auprc": 0.0057531974855962375, + "brier": 0.0028459216569021732, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.0012198226648177976, + "calibration_in_the_large": -0.0016312108348258234, + "expected_calibration_error_10bin": 0.0016312108348258234, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "N25": { + "valid": 2831, + "positives": 7, + "negatives": 2824, + "auroc": 0.9135471469040874, + "auprc": 0.056235702332887126, + "brier": 0.002442507217590388, + "calibration": { + "observed_rate": 0.002472624514305899, + "mean_prediction": 0.0012714678014493829, + "calibration_in_the_large": -0.0012011567128565163, + "expected_calibration_error_10bin": 0.0014678225405328912, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "N28": { + "valid": 2789, + "positives": 8, + "negatives": 2781, + "auroc": 0.7978694714131608, + "auprc": 0.015871101728053894, + "brier": 0.002847896778476628, + "calibration": { + "observed_rate": 0.0028684116170670493, + "mean_prediction": 0.0032375333410990083, + "calibration_in_the_large": 0.000369121724031959, + "expected_calibration_error_10bin": 0.000369121724031959, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "N30": { + "valid": 2829, + "positives": 10, + "negatives": 2819, + "auroc": 0.7114224902447677, + "auprc": 0.01357072784123937, + "brier": 0.0035224798242553352, + "calibration": { + "observed_rate": 0.003534817956875221, + "mean_prediction": 0.0032750359079292608, + "calibration_in_the_large": -0.0002597820489459602, + "expected_calibration_error_10bin": 0.0002597820489459602, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "N32": { + "valid": 2807, + "positives": 13, + "negatives": 2794, + "auroc": 0.8598370133803205, + "auprc": 0.04340763627419128, + "brier": 0.004559249590925072, + "calibration": { + "observed_rate": 0.004631278945493409, + "mean_prediction": 0.0037529603867438926, + "calibration_in_the_large": -0.0008783185587495166, + "expected_calibration_error_10bin": 0.0008783185587495166, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "N39": { + "valid": 2520, + "positives": 81, + "negatives": 2439, + "auroc": 0.7650980213505839, + "auprc": 0.08752791254235401, + "brier": 0.03026957062393713, + "calibration": { + "observed_rate": 0.03214285714285714, + "mean_prediction": 0.0290464000764399, + "calibration_in_the_large": -0.00309645706641724, + "expected_calibration_error_10bin": 0.003428576122100894, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8863876187126275 + }, + "N40": { + "valid": 2606, + "positives": 22, + "negatives": 2584, + "auroc": 0.7873452012383901, + "auprc": 0.030610510927311072, + "brier": 0.008333359506155078, + "calibration": { + "observed_rate": 0.00844205679201842, + "mean_prediction": 0.007016408955915489, + "calibration_in_the_large": -0.0014256478361029303, + "expected_calibration_error_10bin": 0.0020428306604090224, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9166373549067885 + }, + "N73": { + "valid": 2829, + "positives": 6, + "negatives": 2823, + "auroc": 0.8806824890778132, + "auprc": 0.18633858115754143, + "brier": 0.002042848335378821, + "calibration": { + "observed_rate": 0.0021208907741251328, + "mean_prediction": 0.0009080537006570897, + "calibration_in_the_large": -0.001212837073468043, + "expected_calibration_error_10bin": 0.001212837073468043, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "N99": { + "valid": 2799, + "positives": 6, + "negatives": 2793, + "auroc": 0.7799260054899153, + "auprc": 0.006690805088254696, + "brier": 0.0021510117556942016, + "calibration": { + "observed_rate": 0.0021436227224008574, + "mean_prediction": 0.00255068948346951, + "calibration_in_the_large": 0.00040706676106865274, + "expected_calibration_error_10bin": 0.00040706676106865274, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9845233907843827 + }, + "O69": { + "valid": 2743, + "positives": 6, + "negatives": 2737, + "auroc": 0.9968335160151017, + "auprc": 0.36781410597200076, + "brier": 0.0015820409033675852, + "calibration": { + "observed_rate": 0.002187386073641998, + "mean_prediction": 0.002509312576241797, + "calibration_in_the_large": 0.0003219265025997992, + "expected_calibration_error_10bin": 0.0021465768307321865, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + "O99": { + "valid": 2652, + "positives": 3, + "negatives": 2649, + "auroc": 0.9051214294702403, + "auprc": 0.11866510473321618, + "brier": 0.0015991679991240496, + "calibration": { + "observed_rate": 0.0011312217194570137, + "mean_prediction": 0.003339365904966686, + "calibration_in_the_large": 0.0022081441855096723, + "expected_calibration_error_10bin": 0.002208144185509673, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9328174463594794 + }, + "Q21": { + "valid": 2810, + "positives": 3, + "negatives": 2807, + "auroc": 0.5529034556465978, + "auprc": 0.0019842942086030495, + "brier": 0.001069707738472139, + "calibration": { + "observed_rate": 0.0010676156583629894, + "mean_prediction": 0.0016379084064810806, + "calibration_in_the_large": 0.0005702927481180912, + "expected_calibration_error_10bin": 0.0005702927481180912, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + "U07": { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.9957552175451008, + "auprc": 0.07692307692307693, + "brier": 0.0003847873863982847, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.003911027059847271, + "calibration_in_the_large": 0.0035574202705969176, + "expected_calibration_error_10bin": 0.003557420270596918, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + } + }, + "330": { + "A04": { + "valid": 2782, + "positives": 27, + "negatives": 2755, + "auroc": 0.7940982725011763, + "auprc": 0.06755598138592822, + "brier": 0.009670962289322259, + "calibration": { + "observed_rate": 0.009705248023005032, + "mean_prediction": 0.010651342331162873, + "calibration_in_the_large": 0.000946094308157841, + "expected_calibration_error_10bin": 0.0023138764173675362, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + "A08": { + "valid": 2818, + "positives": 11, + "negatives": 2807, + "auroc": 0.7935356414159407, + "auprc": 0.015246034202467246, + "brier": 0.0039031819664656305, + "calibration": { + "observed_rate": 0.0039034776437189495, + "mean_prediction": 0.003568956104845259, + "calibration_in_the_large": -0.0003345215388736904, + "expected_calibration_error_10bin": 0.0004830812088515866, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "A41": { + "valid": 2664, + "positives": 70, + "negatives": 2594, + "auroc": 0.7518559312699636, + "auprc": 0.06536000421981636, + "brier": 0.02601099230534515, + "calibration": { + "observed_rate": 0.026276276276276277, + "mean_prediction": 0.023477935313453886, + "calibration_in_the_large": -0.002798340962822391, + "expected_calibration_error_10bin": 0.01246141704967038, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9370383397819205 + }, + "B00": { + "valid": 2819, + "positives": 4, + "negatives": 2815, + "auroc": 0.7735346358792184, + "auprc": 0.03628108684170504, + "brier": 0.0014082675881600085, + "calibration": { + "observed_rate": 0.001418942887548776, + "mean_prediction": 0.0015094062314864778, + "calibration_in_the_large": 9.046334393770171e-05, + "expected_calibration_error_10bin": 9.04633439377017e-05, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "B02": { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.9515387336399009, + "auprc": 0.007246376811594203, + "brier": 0.00036055222064914933, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.001392533089676962, + "calibration_in_the_large": 0.0010389263004266084, + "expected_calibration_error_10bin": 0.0010389263004266084, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "B18": { + "valid": 2782, + "positives": 7, + "negatives": 2775, + "auroc": 0.9535649935649936, + "auprc": 0.033523965931911336, + "brier": 0.0025621067768512367, + "calibration": { + "observed_rate": 0.0025161754133716753, + "mean_prediction": 0.0016050856619779367, + "calibration_in_the_large": -0.0009110897513937386, + "expected_calibration_error_10bin": 0.0014840919229444367, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + "B19": { + "valid": 2763, + "positives": 17, + "negatives": 2746, + "auroc": 0.9051882952744098, + "auprc": 0.10545013968167218, + "brier": 0.005907626054893554, + "calibration": { + "observed_rate": 0.006152732537097358, + "mean_prediction": 0.0027840837955693445, + "calibration_in_the_large": -0.0033686487415280136, + "expected_calibration_error_10bin": 0.0037956870279877057, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + "B20": { + "valid": 2829, + "positives": 5, + "negatives": 2824, + "auroc": 0.9803824362606233, + "auprc": 0.07337117036032711, + "brier": 0.0017462044896190234, + "calibration": { + "observed_rate": 0.0017674089784376105, + "mean_prediction": 0.0010241099930039857, + "calibration_in_the_large": -0.0007432989854336248, + "expected_calibration_error_10bin": 0.0010738781124820511, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "B34": { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.956758669497523, + "auprc": 0.09633155026745989, + "brier": 0.0017231004613226981, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.001313269717004836, + "calibration_in_the_large": -0.0004528906503565202, + "expected_calibration_error_10bin": 0.0004528906503565202, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "B35": { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.642378263937897, + "auprc": 0.0015109727569791466, + "brier": 0.0007081947427831315, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.0012301881609504094, + "calibration_in_the_large": 0.0005249695431789002, + "expected_calibration_error_10bin": 0.0005249695431789002, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "B37": { + "valid": 2768, + "positives": 36, + "negatives": 2732, + "auroc": 0.7750528713193428, + "auprc": 0.059198254942496024, + "brier": 0.012670924167099005, + "calibration": { + "observed_rate": 0.01300578034682081, + "mean_prediction": 0.007382169735999903, + "calibration_in_the_large": -0.005623610610820907, + "expected_calibration_error_10bin": 0.006159162586221368, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "B95": { + "valid": 2678, + "positives": 60, + "negatives": 2618, + "auroc": 0.7475935828877005, + "auprc": 0.059195297514736664, + "brier": 0.021655348180137177, + "calibration": { + "observed_rate": 0.022404779686333084, + "mean_prediction": 0.01695050717199926, + "calibration_in_the_large": -0.005454272514333825, + "expected_calibration_error_10bin": 0.006005808503630091, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9419627154414351 + }, + "B96": { + "valid": 2630, + "positives": 83, + "negatives": 2547, + "auroc": 0.7593199653738629, + "auprc": 0.09277034630869158, + "brier": 0.02981960897489219, + "calibration": { + "observed_rate": 0.03155893536121673, + "mean_prediction": 0.020504174178741525, + "calibration_in_the_large": -0.011054761182475208, + "expected_calibration_error_10bin": 0.011593036916121987, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9250791417516707 + }, + "B97": { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.7538924274593064, + "auprc": 0.03643892339544513, + "brier": 0.0007638575708409341, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.0015919924007125037, + "calibration_in_the_large": 0.0008847788222117965, + "expected_calibration_error_10bin": 0.0008847788222117966, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "C18": { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.9723600283486888, + "auprc": 0.018438697318007662, + "brier": 0.0007053776487778418, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0008888041926584568, + "calibration_in_the_large": 0.0001805888952080318, + "expected_calibration_error_10bin": 0.0001805888952080318, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "C22": { + "valid": 2812, + "positives": 7, + "negatives": 2805, + "auroc": 0.9039979628214923, + "auprc": 0.02402772372169143, + "brier": 0.002510282803894264, + "calibration": { + "observed_rate": 0.0024893314366998577, + "mean_prediction": 0.0007149039554653876, + "calibration_in_the_large": -0.00177442748123447, + "expected_calibration_error_10bin": 0.002221271325708595, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9890960253253606 + }, + "C25": { + "valid": 2809, + "positives": 4, + "negatives": 2805, + "auroc": 0.8581105169340464, + "auprc": 0.05571153268003662, + "brier": 0.001417996850374649, + "calibration": { + "observed_rate": 0.001423994304022784, + "mean_prediction": 0.0012387878155537433, + "calibration_in_the_large": -0.00018520648846904065, + "expected_calibration_error_10bin": 0.0005329714647253816, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "C61": { + "valid": 2805, + "positives": 2, + "negatives": 2803, + "auroc": 0.9953621120228326, + "auprc": 0.12681159420289856, + "brier": 0.0006960885994080514, + "calibration": { + "observed_rate": 0.00071301247771836, + "mean_prediction": 0.0014031065554650946, + "calibration_in_the_large": 0.0006900940777467345, + "expected_calibration_error_10bin": 0.0006900940777467345, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "C67": { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9717014503006721, + "auprc": 0.018089960886571055, + "brier": 0.0007040729724845915, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0005905676413980227, + "calibration_in_the_large": -0.00011639594997702157, + "expected_calibration_error_10bin": 0.00011639594997702157, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "C77": { + "valid": 2762, + "positives": 22, + "negatives": 2740, + "auroc": 0.8684140676841406, + "auprc": 0.11030317214159341, + "brier": 0.007582750756097147, + "calibration": { + "observed_rate": 0.007965242577842143, + "mean_prediction": 0.006633553521260117, + "calibration_in_the_large": -0.001331689056582026, + "expected_calibration_error_10bin": 0.0017377394138671659, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + "C78": { + "valid": 2762, + "positives": 35, + "negatives": 2727, + "auroc": 0.8837131332180838, + "auprc": 0.1732270625931746, + "brier": 0.011687680425836778, + "calibration": { + "observed_rate": 0.012671976828385228, + "mean_prediction": 0.007448603367757562, + "calibration_in_the_large": -0.005223373460627666, + "expected_calibration_error_10bin": 0.008331645405202317, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + "C79": { + "valid": 2751, + "positives": 26, + "negatives": 2725, + "auroc": 0.8998306280875088, + "auprc": 0.11359231237362734, + "brier": 0.009002218018715539, + "calibration": { + "observed_rate": 0.009451108687749909, + "mean_prediction": 0.008306047143192767, + "calibration_in_the_large": -0.0011450615445571417, + "expected_calibration_error_10bin": 0.0030133097308124583, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "C83": { + "valid": 2820, + "positives": 2, + "negatives": 2818, + "auroc": 0.7006742370475515, + "auprc": 0.009087697055981045, + "brier": 0.0007472719871829855, + "calibration": { + "observed_rate": 0.0007092198581560284, + "mean_prediction": 0.0006400378466609164, + "calibration_in_the_large": -6.918201149511203e-05, + "expected_calibration_error_10bin": 0.0003294157954706726, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + "D25": { + "valid": 2792, + "positives": 3, + "negatives": 2789, + "auroc": 0.9959364168758217, + "auprc": 0.6936936936936937, + "brier": 0.0010142308258247145, + "calibration": { + "observed_rate": 0.0010744985673352436, + "mean_prediction": 0.000713366439953315, + "calibration_in_the_large": -0.0003611321273819286, + "expected_calibration_error_10bin": 0.0003611321273819286, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + "D47": { + "valid": 2796, + "positives": 10, + "negatives": 2786, + "auroc": 0.6369346733668342, + "auprc": 0.006088336239175454, + "brier": 0.0035860540634133817, + "calibration": { + "observed_rate": 0.00357653791130186, + "mean_prediction": 0.0030022283503479703, + "calibration_in_the_large": -0.0005743095609538895, + "expected_calibration_error_10bin": 0.0006674580519408299, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + "D50": { + "valid": 2663, + "positives": 57, + "negatives": 2606, + "auroc": 0.7992958220570613, + "auprc": 0.1220077555228941, + "brier": 0.020152075004151667, + "calibration": { + "observed_rate": 0.021404431092752536, + "mean_prediction": 0.013510668376171098, + "calibration_in_the_large": -0.007893762716581439, + "expected_calibration_error_10bin": 0.008064254192905407, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9366865986633838 + }, + "D53": { + "valid": 2805, + "positives": 17, + "negatives": 2788, + "auroc": 0.8374335386952485, + "auprc": 0.041166385902560845, + "brier": 0.005954382946802684, + "calibration": { + "observed_rate": 0.006060606060606061, + "mean_prediction": 0.005502730473132217, + "calibration_in_the_large": -0.0005578755874738432, + "expected_calibration_error_10bin": 0.0007715660428459506, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "D59": { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.9934721242060691, + "auprc": 0.10173160173160173, + "brier": 0.0006848409159905427, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.0009342214739291862, + "calibration_in_the_large": 0.00022900285615767705, + "expected_calibration_error_10bin": 0.00022900285615767705, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "D61": { + "valid": 2773, + "positives": 36, + "negatives": 2737, + "auroc": 0.9016969106483173, + "auprc": 0.26770634402524857, + "brier": 0.011040839457745, + "calibration": { + "observed_rate": 0.01298232960692391, + "mean_prediction": 0.011628812569478135, + "calibration_in_the_large": -0.0013535170374457742, + "expected_calibration_error_10bin": 0.003039415187959618, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + "D62": { + "valid": 2499, + "positives": 71, + "negatives": 2428, + "auroc": 0.7899969835487389, + "auprc": 0.11372164903290426, + "brier": 0.02671888217744498, + "calibration": { + "observed_rate": 0.028411364545818326, + "mean_prediction": 0.016772027018482984, + "calibration_in_the_large": -0.011639337527335342, + "expected_calibration_error_10bin": 0.011717451823304739, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8790010552233556 + }, + "D63": { + "valid": 2686, + "positives": 76, + "negatives": 2610, + "auroc": 0.846455938697318, + "auprc": 0.12622035108780974, + "brier": 0.02676189199536365, + "calibration": { + "observed_rate": 0.028294862248696945, + "mean_prediction": 0.022000983696706243, + "calibration_in_the_large": -0.006293878551990702, + "expected_calibration_error_10bin": 0.01491545153416384, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9447766443897292 + }, + "D64": { + "valid": 2434, + "positives": 119, + "negatives": 2315, + "auroc": 0.8019783291286277, + "auprc": 0.1794909624208503, + "brier": 0.043319654748387226, + "calibration": { + "observed_rate": 0.04889071487263763, + "mean_prediction": 0.03914875207606997, + "calibration_in_the_large": -0.009741962796567659, + "expected_calibration_error_10bin": 0.010444949503016911, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8561378825184665 + }, + "D65": { + "valid": 2833, + "positives": 4, + "negatives": 2829, + "auroc": 0.9410569105691057, + "auprc": 0.01806194225089882, + "brier": 0.0014081079699134072, + "calibration": { + "observed_rate": 0.0014119308153900459, + "mean_prediction": 0.0006791953225189569, + "calibration_in_the_large": -0.000732735492871089, + "expected_calibration_error_10bin": 0.000732735492871089, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9964825888146325 + }, + "D68": { + "valid": 2682, + "positives": 59, + "negatives": 2623, + "auroc": 0.8137079421286275, + "auprc": 0.13132727698676058, + "brier": 0.020739137789059076, + "calibration": { + "observed_rate": 0.021998508575689784, + "mean_prediction": 0.008832069555698176, + "calibration_in_the_large": -0.013166439019991608, + "expected_calibration_error_10bin": 0.015367156058392272, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9433696799155822 + }, + "D69": { + "valid": 2586, + "positives": 85, + "negatives": 2501, + "auroc": 0.8358209657313546, + "auprc": 0.26567456996645233, + "brier": 0.028008485187273707, + "calibration": { + "observed_rate": 0.0328692962103635, + "mean_prediction": 0.01922855942380148, + "calibration_in_the_large": -0.013640736786562017, + "expected_calibration_error_10bin": 0.013825404099836099, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9096025325360535 + }, + "D70": { + "valid": 2787, + "positives": 26, + "negatives": 2761, + "auroc": 0.8831944947482796, + "auprc": 0.1840438488455041, + "brier": 0.008606294610006992, + "calibration": { + "observed_rate": 0.009329027628274129, + "mean_prediction": 0.008833778627240479, + "calibration_in_the_large": -0.0004952490010336503, + "expected_calibration_error_10bin": 0.0036735550880457484, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "D72": { + "valid": 2595, + "positives": 65, + "negatives": 2530, + "auroc": 0.7177561568865917, + "auprc": 0.058906716707679135, + "brier": 0.024123974143114357, + "calibration": { + "observed_rate": 0.025048169556840076, + "mean_prediction": 0.02857639461761136, + "calibration_in_the_large": 0.0035282250607712833, + "expected_calibration_error_10bin": 0.003853954676886831, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9127682026028843 + }, + "D73": { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.8829020441923667, + "auprc": 0.11655213874239967, + "brier": 0.0010443399022862197, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0008629204536924544, + "calibration_in_the_large": -0.00019940249248318314, + "expected_calibration_error_10bin": 0.00019940249248318314, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "D75": { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.9364166961443227, + "auprc": 0.013155246239020063, + "brier": 0.0014072401604911312, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0013774633186615438, + "calibration_in_the_large": -3.5464975227541325e-05, + "expected_calibration_error_10bin": 3.5464975227541325e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "D80": { + "valid": 2832, + "positives": 6, + "negatives": 2826, + "auroc": 0.9811866006133522, + "auprc": 0.07478595478595478, + "brier": 0.0020999941379518587, + "calibration": { + "observed_rate": 0.00211864406779661, + "mean_prediction": 0.0007641490027513383, + "calibration_in_the_large": -0.001354495065045272, + "expected_calibration_error_10bin": 0.0015044517536668951, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + "D89": { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.682716049382716, + "auprc": 0.007427684067914781, + "brier": 0.0008984040122442687, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0009939227890016185, + "calibration_in_the_large": 0.0002889527502282664, + "expected_calibration_error_10bin": 0.0005749035381138783, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + "E03": { + "valid": 2480, + "positives": 24, + "negatives": 2456, + "auroc": 0.6839542616720955, + "auprc": 0.05929554048028011, + "brier": 0.00951572681363312, + "calibration": { + "observed_rate": 0.00967741935483871, + "mean_prediction": 0.004877967432877349, + "calibration_in_the_large": -0.004799451921961361, + "expected_calibration_error_10bin": 0.004799451921961361, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8723179739711572 + }, + "E04": { + "valid": 2775, + "positives": 11, + "negatives": 2764, + "auroc": 0.6898763320615708, + "auprc": 0.01055389885080929, + "brier": 0.003945122686502298, + "calibration": { + "observed_rate": 0.003963963963963964, + "mean_prediction": 0.0029284647996626533, + "calibration_in_the_large": -0.001035499164301311, + "expected_calibration_error_10bin": 0.001035499164301311, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + "E05": { + "valid": 2806, + "positives": 4, + "negatives": 2802, + "auroc": 0.6548001427551748, + "auprc": 0.003082316013871512, + "brier": 0.0014239236237875105, + "calibration": { + "observed_rate": 0.0014255167498218105, + "mean_prediction": 0.000864606276401994, + "calibration_in_the_large": -0.0005609104734198164, + "expected_calibration_error_10bin": 0.0005609104734198164, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "E11": { + "valid": 2194, + "positives": 21, + "negatives": 2173, + "auroc": 0.8133368395678566, + "auprc": 0.03065281828446063, + "brier": 0.009450470156617903, + "calibration": { + "observed_rate": 0.009571558796718322, + "mean_prediction": 0.005678007923498106, + "calibration_in_the_large": -0.0038935508732202166, + "expected_calibration_error_10bin": 0.004266592077846165, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7717200140696447 + }, + "E16": { + "valid": 2816, + "positives": 12, + "negatives": 2804, + "auroc": 0.6462494056110318, + "auprc": 0.008857982794768472, + "brier": 0.004255991836839543, + "calibration": { + "observed_rate": 0.004261363636363636, + "mean_prediction": 0.0024133134290277203, + "calibration_in_the_large": -0.0018480502073359158, + "expected_calibration_error_10bin": 0.0018480502073359158, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "E21": { + "valid": 2814, + "positives": 4, + "negatives": 2810, + "auroc": 0.7449288256227758, + "auprc": 0.008628607532014394, + "brier": 0.001422044625324665, + "calibration": { + "observed_rate": 0.0014214641080312722, + "mean_prediction": 0.0012753054229448057, + "calibration_in_the_large": -0.00014615868508646647, + "expected_calibration_error_10bin": 0.00014615868508646647, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "E22": { + "valid": 2802, + "positives": 9, + "negatives": 2793, + "auroc": 0.8160082746548912, + "auprc": 0.02739621209582529, + "brier": 0.0032047259954458844, + "calibration": { + "observed_rate": 0.0032119914346895075, + "mean_prediction": 0.0043674945698487936, + "calibration_in_the_large": 0.001155503135159286, + "expected_calibration_error_10bin": 0.0011555031351592855, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "E27": { + "valid": 2811, + "positives": 8, + "negatives": 2803, + "auroc": 0.8074830538708526, + "auprc": 0.0180982520530651, + "brier": 0.0028326122875001556, + "calibration": { + "observed_rate": 0.002845962290999644, + "mean_prediction": 0.0012935010909500807, + "calibration_in_the_large": -0.0015524612000495635, + "expected_calibration_error_10bin": 0.0015524612000495635, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9887442842068238 + }, + "E43": { + "valid": 2748, + "positives": 39, + "negatives": 2709, + "auroc": 0.8377109539900237, + "auprc": 0.06324053928409004, + "brier": 0.013800719442399181, + "calibration": { + "observed_rate": 0.014192139737991267, + "mean_prediction": 0.013931282849616592, + "calibration_in_the_large": -0.00026085688837467445, + "expected_calibration_error_10bin": 0.0030955586444470313, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9665845937390081 + }, + "E44": { + "valid": 2800, + "positives": 23, + "negatives": 2777, + "auroc": 0.7418859889464702, + "auprc": 0.03389344676073858, + "brier": 0.008094466066957762, + "calibration": { + "observed_rate": 0.008214285714285714, + "mean_prediction": 0.005200172221274053, + "calibration_in_the_large": -0.0030141134930116607, + "expected_calibration_error_10bin": 0.0034888460644262012, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + "E46": { + "valid": 2772, + "positives": 39, + "negatives": 2733, + "auroc": 0.8171071519040783, + "auprc": 0.12485888769714144, + "brier": 0.013337404455371755, + "calibration": { + "observed_rate": 0.01406926406926407, + "mean_prediction": 0.009045938278392252, + "calibration_in_the_large": -0.005023325790871818, + "expected_calibration_error_10bin": 0.005900328864779164, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9750263805838902 + }, + "E53": { + "valid": 2804, + "positives": 9, + "negatives": 2795, + "auroc": 0.6597495527728086, + "auprc": 0.0060202244766470354, + "brier": 0.0032101352055571037, + "calibration": { + "observed_rate": 0.003209700427960057, + "mean_prediction": 0.0021591364592961197, + "calibration_in_the_large": -0.0010505639686639373, + "expected_calibration_error_10bin": 0.0010505639686639373, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "E55": { + "valid": 2737, + "positives": 29, + "negatives": 2708, + "auroc": 0.6422604798044109, + "auprc": 0.021992297792737717, + "brier": 0.010484919389080262, + "calibration": { + "observed_rate": 0.010595542564852027, + "mean_prediction": 0.006711635784250111, + "calibration_in_the_large": -0.0038839067806019168, + "expected_calibration_error_10bin": 0.003973433773705696, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9627154414351038 + }, + "E66": { + "valid": 2371, + "positives": 42, + "negatives": 2329, + "auroc": 0.7639493753705862, + "auprc": 0.07083020578120738, + "brier": 0.017087937541936056, + "calibration": { + "observed_rate": 0.017714044706874738, + "mean_prediction": 0.012112264584144833, + "calibration_in_the_large": -0.005601780122729905, + "expected_calibration_error_10bin": 0.006414232237952106, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8339781920506507 + }, + "E78": { + "valid": 1572, + "positives": 50, + "negatives": 1522, + "auroc": 0.7260972404730618, + "auprc": 0.13037160534081582, + "brier": 0.029877464387015638, + "calibration": { + "observed_rate": 0.031806615776081425, + "mean_prediction": 0.029842577659954943, + "calibration_in_the_large": -0.0019640381161264812, + "expected_calibration_error_10bin": 0.012161980467465906, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5529370383397819 + }, + "E80": { + "valid": 2823, + "positives": 7, + "negatives": 2816, + "auroc": 0.8114346590909091, + "auprc": 0.014027996629598237, + "brier": 0.0024763403698865195, + "calibration": { + "observed_rate": 0.002479631597591215, + "mean_prediction": 0.0014751528802572941, + "calibration_in_the_large": -0.001004478717333921, + "expected_calibration_error_10bin": 0.001004478717333921, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "E83": { + "valid": 2653, + "positives": 82, + "negatives": 2571, + "auroc": 0.8150951987932948, + "auprc": 0.17356836922025412, + "brier": 0.02796515337114681, + "calibration": { + "observed_rate": 0.030908405578590276, + "mean_prediction": 0.018242549498157318, + "calibration_in_the_large": -0.012665856080432959, + "expected_calibration_error_10bin": 0.013361613527555992, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9331691874780161 + }, + "E86": { + "valid": 2587, + "positives": 92, + "negatives": 2495, + "auroc": 0.7961096105253986, + "auprc": 0.11303299899962706, + "brier": 0.03292416311414147, + "calibration": { + "observed_rate": 0.03556242752222652, + "mean_prediction": 0.03273102817150639, + "calibration_in_the_large": -0.002831399350720132, + "expected_calibration_error_10bin": 0.00563500181864155, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9099542736545903 + }, + "E87": { + "valid": 2185, + "positives": 153, + "negatives": 2032, + "auroc": 0.7855102670989655, + "auprc": 0.21519772996365208, + "brier": 0.06052122269261194, + "calibration": { + "observed_rate": 0.0700228832951945, + "mean_prediction": 0.048986116772596414, + "calibration_in_the_large": -0.021036766522598088, + "expected_calibration_error_10bin": 0.024613455308172893, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.768554344002814 + }, + "E88": { + "valid": 2817, + "positives": 15, + "negatives": 2802, + "auroc": 0.8088032357839638, + "auprc": 0.1113295228569566, + "brier": 0.005077197537980163, + "calibration": { + "observed_rate": 0.005324813631522897, + "mean_prediction": 0.0034096370291862577, + "calibration_in_the_large": -0.001915176602336639, + "expected_calibration_error_10bin": 0.0019151766023366389, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "E89": { + "valid": 2780, + "positives": 8, + "negatives": 2772, + "auroc": 0.5601551226551227, + "auprc": 0.005613413646352464, + "brier": 0.0028721542405779022, + "calibration": { + "observed_rate": 0.0028776978417266188, + "mean_prediction": 0.00187063542301553, + "calibration_in_the_large": -0.0010070624187110888, + "expected_calibration_error_10bin": 0.0010070624187110888, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + "F02": { + "valid": 2802, + "positives": 4, + "negatives": 2798, + "auroc": 0.8077197998570408, + "auprc": 0.010863793002241653, + "brier": 0.001493681787633347, + "calibration": { + "observed_rate": 0.0014275517487508922, + "mean_prediction": 0.0029561702132464562, + "calibration_in_the_large": 0.001528618464495564, + "expected_calibration_error_10bin": 0.001528618464495564, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "F03": { + "valid": 2739, + "positives": 16, + "negatives": 2723, + "auroc": 0.8969427102460521, + "auprc": 0.04579631608562979, + "brier": 0.005759557367523356, + "calibration": { + "observed_rate": 0.005841548010222709, + "mean_prediction": 0.006532068866586318, + "calibration_in_the_large": 0.0006905208563636085, + "expected_calibration_error_10bin": 0.001158467071252534, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + "F05": { + "valid": 2750, + "positives": 31, + "negatives": 2719, + "auroc": 0.7539892512664761, + "auprc": 0.029603237621279973, + "brier": 0.011115485974934395, + "calibration": { + "observed_rate": 0.011272727272727273, + "mean_prediction": 0.0085627705838605, + "calibration_in_the_large": -0.002709956688866772, + "expected_calibration_error_10bin": 0.003198237608331922, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + "F06": { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.613588110403397, + "auprc": 0.0014519140989729226, + "brier": 0.000717328110440298, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.0019301002572227081, + "calibration_in_the_large": 0.0012228866787220008, + "expected_calibration_error_10bin": 0.0012228866787220008, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "F10": { + "valid": 2560, + "positives": 17, + "negatives": 2543, + "auroc": 0.78869329879022, + "auprc": 0.11223699245944607, + "brier": 0.006361592236907035, + "calibration": { + "observed_rate": 0.006640625, + "mean_prediction": 0.004241417698889904, + "calibration_in_the_large": -0.0023992073011100956, + "expected_calibration_error_10bin": 0.0023992073011100947, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + "F11": { + "valid": 2741, + "positives": 10, + "negatives": 2731, + "auroc": 0.8589893811790553, + "auprc": 0.03688662115429908, + "brier": 0.0035920316745016207, + "calibration": { + "observed_rate": 0.0036483035388544327, + "mean_prediction": 0.0030708429383880216, + "calibration_in_the_large": -0.0005774606004664111, + "expected_calibration_error_10bin": 0.0006614434579726018, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + "F12": { + "valid": 2777, + "positives": 12, + "negatives": 2765, + "auroc": 0.9077456298975286, + "auprc": 0.027974345203130593, + "brier": 0.004276275951552324, + "calibration": { + "observed_rate": 0.004321209938782859, + "mean_prediction": 0.0020677553282466986, + "calibration_in_the_large": -0.0022534546105361605, + "expected_calibration_error_10bin": 0.0022534546105361605, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + "F14": { + "valid": 2787, + "positives": 10, + "negatives": 2777, + "auroc": 0.927043572200216, + "auprc": 0.04030019051829374, + "brier": 0.0035556195791177263, + "calibration": { + "observed_rate": 0.003588087549336204, + "mean_prediction": 0.001726802871970485, + "calibration_in_the_large": -0.001861284677365719, + "expected_calibration_error_10bin": 0.0022031058679383335, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "F15": { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.9411312270737191, + "auprc": 0.055459411089349625, + "brier": 0.002080912969586605, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0014487560322755195, + "calibration_in_the_large": -0.0006766424799455218, + "expected_calibration_error_10bin": 0.0006766424799455218, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "F17": { + "valid": 2426, + "positives": 33, + "negatives": 2393, + "auroc": 0.8769770416239284, + "auprc": 0.08300807902443529, + "brier": 0.013080762407740079, + "calibration": { + "observed_rate": 0.013602638087386645, + "mean_prediction": 0.007770460999713019, + "calibration_in_the_large": -0.005832177087673626, + "expected_calibration_error_10bin": 0.006493304191100213, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8533239535701723 + }, + "F19": { + "valid": 2801, + "positives": 13, + "negatives": 2788, + "auroc": 0.9364032667475995, + "auprc": 0.17901851021999762, + "brier": 0.004310866129254137, + "calibration": { + "observed_rate": 0.0046411995715815784, + "mean_prediction": 0.0030887527032270284, + "calibration_in_the_large": -0.00155244686835455, + "expected_calibration_error_10bin": 0.001719460519399886, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "F20": { + "valid": 2808, + "positives": 4, + "negatives": 2804, + "auroc": 0.8445078459343794, + "auprc": 0.013300193264542093, + "brier": 0.001420106867378636, + "calibration": { + "observed_rate": 0.0014245014245014246, + "mean_prediction": 0.001315887944314392, + "calibration_in_the_large": -0.00010861348018703252, + "expected_calibration_error_10bin": 0.00010861348018703252, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9876890608512136 + }, + "F22": { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.926595744680851, + "auprc": 0.004807692307692308, + "brier": 0.00037457990863481875, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.002019439955237057, + "calibration_in_the_large": 0.0016649557297850896, + "expected_calibration_error_10bin": 0.0016649557297850896, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "F25": { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.8443418560606061, + "auprc": 0.009072929180331443, + "brier": 0.0010723401291076612, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.001397873637207679, + "calibration_in_the_large": 0.0003336664715460969, + "expected_calibration_error_10bin": 0.0003336664715460969, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "F29": { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.8201393852751966, + "auprc": 0.018655599765915194, + "brier": 0.002837249918841079, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.0009059351235976213, + "calibration_in_the_large": -0.0019450983760459996, + "expected_calibration_error_10bin": 0.0019450983760459996, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "F31": { + "valid": 2724, + "positives": 9, + "negatives": 2715, + "auroc": 0.9226928586044608, + "auprc": 0.03581915909320054, + "brier": 0.003241469156435094, + "calibration": { + "observed_rate": 0.003303964757709251, + "mean_prediction": 0.0032000413378183603, + "calibration_in_the_large": -0.00010392341989089084, + "expected_calibration_error_10bin": 0.00010392341989089084, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9581428068941259 + }, + "F32": { + "valid": 2200, + "positives": 68, + "negatives": 2132, + "auroc": 0.6810299635801788, + "auprc": 0.06346128655986007, + "brier": 0.02991311912645362, + "calibration": { + "observed_rate": 0.03090909090909091, + "mean_prediction": 0.026175642668015576, + "calibration_in_the_large": -0.0047334482410753345, + "expected_calibration_error_10bin": 0.008877513099631128, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7738304607808653 + }, + "F33": { + "valid": 2800, + "positives": 12, + "negatives": 2788, + "auroc": 0.8421807747489239, + "auprc": 0.022862588165082298, + "brier": 0.004304042742726264, + "calibration": { + "observed_rate": 0.004285714285714286, + "mean_prediction": 0.004313432228560227, + "calibration_in_the_large": 2.7717942845941097e-05, + "expected_calibration_error_10bin": 0.00040176841276531443, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + "F39": { + "valid": 2801, + "positives": 11, + "negatives": 2790, + "auroc": 0.705050505050505, + "auprc": 0.023261068393635894, + "brier": 0.003891221049888677, + "calibration": { + "observed_rate": 0.003927168868261335, + "mean_prediction": 0.0019588015163559836, + "calibration_in_the_large": -0.0019683673519053516, + "expected_calibration_error_10bin": 0.0019683673519053516, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "F41": { + "valid": 2247, + "positives": 78, + "negatives": 2169, + "auroc": 0.7299890059226158, + "auprc": 0.09237787037314801, + "brier": 0.03284788715497202, + "calibration": { + "observed_rate": 0.03471295060080107, + "mean_prediction": 0.032586812621807744, + "calibration_in_the_large": -0.002126137978993324, + "expected_calibration_error_10bin": 0.005524869031470947, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7903622933520928 + }, + "F43": { + "valid": 2734, + "positives": 20, + "negatives": 2714, + "auroc": 0.7478076639646278, + "auprc": 0.028517845992262, + "brier": 0.007260638563108638, + "calibration": { + "observed_rate": 0.0073152889539136795, + "mean_prediction": 0.006612135017992951, + "calibration_in_the_large": -0.0007031539359207287, + "expected_calibration_error_10bin": 0.0010595376993215763, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "F60": { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.946538643907065, + "auprc": 0.09700196773047097, + "brier": 0.0020329006254373493, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.0031195275236181076, + "calibration_in_the_large": 0.0009903578997714079, + "expected_calibration_error_10bin": 0.000990357899771408, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "F90": { + "valid": 2775, + "positives": 8, + "negatives": 2767, + "auroc": 0.9059902421395013, + "auprc": 0.03674639568536495, + "brier": 0.002837469034680055, + "calibration": { + "observed_rate": 0.002882882882882883, + "mean_prediction": 0.0032696132676039826, + "calibration_in_the_large": 0.00038673038472109966, + "expected_calibration_error_10bin": 0.00038673038472109966, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + "G25": { + "valid": 2774, + "positives": 6, + "negatives": 2768, + "auroc": 0.7317557803468208, + "auprc": 0.005869412568155138, + "brier": 0.0021678033865473313, + "calibration": { + "observed_rate": 0.0021629416005767843, + "mean_prediction": 0.003088948335252175, + "calibration_in_the_large": 0.0009260067346753909, + "expected_calibration_error_10bin": 0.0009260067346753909, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "G31": { + "valid": 2802, + "positives": 9, + "negatives": 2793, + "auroc": 0.7870469825357044, + "auprc": 0.016415257412200526, + "brier": 0.003203863962080993, + "calibration": { + "observed_rate": 0.0032119914346895075, + "mean_prediction": 0.0026093603233269436, + "calibration_in_the_large": -0.0006026311113625639, + "expected_calibration_error_10bin": 0.0006026311113625639, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "G40": { + "valid": 2723, + "positives": 24, + "negatives": 2699, + "auroc": 0.7119149067555884, + "auprc": 0.04104283127711398, + "brier": 0.008731291470799759, + "calibration": { + "observed_rate": 0.008813808299669483, + "mean_prediction": 0.006636011263852954, + "calibration_in_the_large": -0.002177797035816529, + "expected_calibration_error_10bin": 0.0030082539731784643, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + "G43": { + "valid": 2725, + "positives": 15, + "negatives": 2710, + "auroc": 0.7591635916359164, + "auprc": 0.03622591697958672, + "brier": 0.005435488219327, + "calibration": { + "observed_rate": 0.005504587155963303, + "mean_prediction": 0.0031654332256972053, + "calibration_in_the_large": -0.0023391539302660977, + "expected_calibration_error_10bin": 0.0023391539302660977, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9584945480126627 + }, + "G44": { + "valid": 2805, + "positives": 7, + "negatives": 2798, + "auroc": 0.5965485550903706, + "auprc": 0.012077408020230117, + "brier": 0.002489221503922386, + "calibration": { + "observed_rate": 0.0024955436720142605, + "mean_prediction": 0.0012972896416827365, + "calibration_in_the_large": -0.001198254030331524, + "expected_calibration_error_10bin": 0.001198254030331524, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "G47": { + "valid": 2315, + "positives": 88, + "negatives": 2227, + "auroc": 0.6725262277013512, + "auprc": 0.07515075801090448, + "brier": 0.03613771529866863, + "calibration": { + "observed_rate": 0.03801295896328294, + "mean_prediction": 0.03194187669713074, + "calibration_in_the_large": -0.006071082266152196, + "expected_calibration_error_10bin": 0.00798661489347418, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8142806894125924 + }, + "G51": { + "valid": 2834, + "positives": 0, + "negatives": 2834, + "auroc": null, + "auprc": null, + "brier": 4.958327814813387e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0005813504026934856, + "calibration_in_the_large": 0.0005813504026934856, + "expected_calibration_error_10bin": 0.0005813504026934856, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9968343299331692 + }, + "G62": { + "valid": 2751, + "positives": 35, + "negatives": 2716, + "auroc": 0.8051546391752578, + "auprc": 0.09413109184933831, + "brier": 0.012185692347626245, + "calibration": { + "observed_rate": 0.01272264631043257, + "mean_prediction": 0.007716304293510167, + "calibration_in_the_large": -0.005006342016922402, + "expected_calibration_error_10bin": 0.0068055876489941936, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "G81": { + "valid": 2789, + "positives": 14, + "negatives": 2775, + "auroc": 0.7406692406692407, + "auprc": 0.048226286476558904, + "brier": 0.004942367686199503, + "calibration": { + "observed_rate": 0.005019720329867336, + "mean_prediction": 0.003762512787478034, + "calibration_in_the_large": -0.0012572075423893016, + "expected_calibration_error_10bin": 0.0013582271677299244, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "G83": { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.6253101736972705, + "auprc": 0.005407283643807608, + "brier": 0.0010641022007138057, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0014010957587841085, + "calibration_in_the_large": 0.00033877281260847095, + "expected_calibration_error_10bin": 0.00033877281260847095, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "G89": { + "valid": 2537, + "positives": 63, + "negatives": 2474, + "auroc": 0.7657928167224852, + "auprc": 0.0822759924763729, + "brier": 0.023629833944899273, + "calibration": { + "observed_rate": 0.024832479306267245, + "mean_prediction": 0.01795054316198748, + "calibration_in_the_large": -0.006881936144279767, + "expected_calibration_error_10bin": 0.007457682664370681, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8923672177277524 + }, + "G90": { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 1.4140709631413878e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0017714583850592922, + "calibration_in_the_large": 0.0017714583850592922, + "expected_calibration_error_10bin": 0.0017714583850592922, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "G92": { + "valid": 2733, + "positives": 45, + "negatives": 2688, + "auroc": 0.7869543650793651, + "auprc": 0.051041288373927234, + "brier": 0.015964875129731562, + "calibration": { + "observed_rate": 0.01646542261251372, + "mean_prediction": 0.013541847027646355, + "calibration_in_the_large": -0.0029235755848673658, + "expected_calibration_error_10bin": 0.0040610344605936325, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + "G93": { + "valid": 2656, + "positives": 50, + "negatives": 2606, + "auroc": 0.8055180353031466, + "auprc": 0.07034830997990224, + "brier": 0.017988026640523347, + "calibration": { + "observed_rate": 0.01882530120481928, + "mean_prediction": 0.014740844475892962, + "calibration_in_the_large": -0.004084456728926317, + "expected_calibration_error_10bin": 0.004084456728926316, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9342244108336265 + }, + "G99": { + "valid": 2841, + "positives": 1, + "negatives": 2840, + "auroc": 0.4084507042253521, + "auprc": 0.000594883997620464, + "brier": 0.00035412015156419677, + "calibration": { + "observed_rate": 0.00035198873636043646, + "mean_prediction": 0.0004950438929937887, + "calibration_in_the_large": 0.0001430551566333523, + "expected_calibration_error_10bin": 0.0001430551566333523, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9992965177629265 + }, + "H10": { + "valid": 2832, + "positives": 6, + "negatives": 2826, + "auroc": 0.751238499646143, + "auprc": 0.00662214758141353, + "brier": 0.0021133254307996543, + "calibration": { + "observed_rate": 0.00211864406779661, + "mean_prediction": 0.0010280827820710237, + "calibration_in_the_large": -0.0010905612857255865, + "expected_calibration_error_10bin": 0.0010905612857255865, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + "H26": { + "valid": 2819, + "positives": 0, + "negatives": 2819, + "auroc": null, + "auprc": null, + "brier": 1.722784381103818e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.002102422599691647, + "calibration_in_the_large": 0.002102422599691647, + "expected_calibration_error_10bin": 0.002102422599691647, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "H35": { + "valid": 2806, + "positives": 6, + "negatives": 2800, + "auroc": 0.7421428571428571, + "auprc": 0.0071794588798501065, + "brier": 0.0021330351963629716, + "calibration": { + "observed_rate": 0.0021382751247327157, + "mean_prediction": 0.0013856879097480812, + "calibration_in_the_large": -0.0007525872149846346, + "expected_calibration_error_10bin": 0.0007525872149846346, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "H40": { + "valid": 2750, + "positives": 12, + "negatives": 2738, + "auroc": 0.7187423910396883, + "auprc": 0.026090032633039953, + "brier": 0.004324937741720263, + "calibration": { + "observed_rate": 0.004363636363636364, + "mean_prediction": 0.004165707434485905, + "calibration_in_the_large": -0.00019792892915045882, + "expected_calibration_error_10bin": 0.00019792892915045882, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + "H53": { + "valid": 2790, + "positives": 13, + "negatives": 2777, + "auroc": 0.5858009473421789, + "auprc": 0.012339560130521864, + "brier": 0.004655644935015549, + "calibration": { + "observed_rate": 0.004659498207885305, + "mean_prediction": 0.005538805510358898, + "calibration_in_the_large": 0.0008793073024735932, + "expected_calibration_error_10bin": 0.0008793073024735932, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + "H54": { + "valid": 2809, + "positives": 4, + "negatives": 2805, + "auroc": 0.46354723707664885, + "auprc": 0.001595298443714852, + "brier": 0.0014280384897347844, + "calibration": { + "observed_rate": 0.001423994304022784, + "mean_prediction": 0.0012996066200631092, + "calibration_in_the_large": -0.0001243876839596748, + "expected_calibration_error_10bin": 0.0001243876839596748, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "H91": { + "valid": 2791, + "positives": 7, + "negatives": 2784, + "auroc": 0.8126539408866995, + "auprc": 0.020153518367602884, + "brier": 0.002486909690399322, + "calibration": { + "observed_rate": 0.0025080616266571123, + "mean_prediction": 0.0021986906241519477, + "calibration_in_the_large": -0.0003093710025051646, + "expected_calibration_error_10bin": 0.0003093710025051646, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9817094618360886 + }, + "I07": { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.8460537214530824, + "auprc": 0.011860126352054337, + "brier": 0.002116068038787503, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0011718535038439978, + "calibration_in_the_large": -0.0009535450083770435, + "expected_calibration_error_10bin": 0.0009535450083770435, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "I08": { + "valid": 2767, + "positives": 13, + "negatives": 2754, + "auroc": 0.8600078207921346, + "auprc": 0.025606940420791514, + "brier": 0.0047221184306614735, + "calibration": { + "observed_rate": 0.0046982291290206, + "mean_prediction": 0.005052296308042058, + "calibration_in_the_large": 0.0003540671790214587, + "expected_calibration_error_10bin": 0.0010176553857206131, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9732676749912065 + }, + "I10": { + "valid": 1498, + "positives": 40, + "negatives": 1458, + "auroc": 0.6937071330589849, + "auprc": 0.057740397629552964, + "brier": 0.025791616317885697, + "calibration": { + "observed_rate": 0.0267022696929239, + "mean_prediction": 0.024078747878212965, + "calibration_in_the_large": -0.0026235218147109343, + "expected_calibration_error_10bin": 0.0031751404603127544, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5269081955680619 + }, + "I11": { + "valid": 2676, + "positives": 53, + "negatives": 2623, + "auroc": 0.8093210280609126, + "auprc": 0.07862544466318412, + "brier": 0.018961609520589118, + "calibration": { + "observed_rate": 0.019805680119581465, + "mean_prediction": 0.015667758758203563, + "calibration_in_the_large": -0.0041379213613779026, + "expected_calibration_error_10bin": 0.007421664254592261, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9412592332043616 + }, + "I12": { + "valid": 2552, + "positives": 29, + "negatives": 2523, + "auroc": 0.8603058755996555, + "auprc": 0.0966567825127648, + "brier": 0.01088840083504887, + "calibration": { + "observed_rate": 0.011363636363636364, + "mean_prediction": 0.01068232336861985, + "calibration_in_the_large": -0.0006813129950165135, + "expected_calibration_error_10bin": 0.0033892078047708047, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8976433345058037 + }, + "I13": { + "valid": 2727, + "positives": 30, + "negatives": 2697, + "auroc": 0.9119515511061673, + "auprc": 0.22025653433494813, + "brier": 0.009571309140907773, + "calibration": { + "observed_rate": 0.011001100110011002, + "mean_prediction": 0.013062792989719152, + "calibration_in_the_large": 0.0020616928797081505, + "expected_calibration_error_10bin": 0.002798526481996526, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9591980302497362 + }, + "I16": { + "valid": 2390, + "positives": 12, + "negatives": 2378, + "auroc": 0.8879310344827587, + "auprc": 0.036778354022984565, + "brier": 0.004929518445438867, + "calibration": { + "observed_rate": 0.00502092050209205, + "mean_prediction": 0.004360748849873047, + "calibration_in_the_large": -0.000660171652219003, + "expected_calibration_error_10bin": 0.0007457273301017999, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8406612733028491 + }, + "I21": { + "valid": 2671, + "positives": 22, + "negatives": 2649, + "auroc": 0.8127595318988298, + "auprc": 0.031215808005549715, + "brier": 0.008239048477210915, + "calibration": { + "observed_rate": 0.008236615499812805, + "mean_prediction": 0.013738887433624123, + "calibration_in_the_large": 0.005502271933811318, + "expected_calibration_error_10bin": 0.005502271933811318, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + "I24": { + "valid": 2809, + "positives": 8, + "negatives": 2801, + "auroc": 0.8783023920028561, + "auprc": 0.023015508644819698, + "brier": 0.002819386101528097, + "calibration": { + "observed_rate": 0.002847988608045568, + "mean_prediction": 0.0030825440661352626, + "calibration_in_the_large": 0.00023455545808969466, + "expected_calibration_error_10bin": 0.00023455545808969466, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "I25": { + "valid": 2243, + "positives": 44, + "negatives": 2199, + "auroc": 0.847968084666584, + "auprc": 0.09174853642650166, + "brier": 0.018627010961175083, + "calibration": { + "observed_rate": 0.01961658493089612, + "mean_prediction": 0.013787618267981645, + "calibration_in_the_large": -0.005828966662914475, + "expected_calibration_error_10bin": 0.006222457793314753, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7889553288779458 + }, + "I26": { + "valid": 2760, + "positives": 20, + "negatives": 2740, + "auroc": 0.7526824817518248, + "auprc": 0.13299887905060837, + "brier": 0.006879779858556827, + "calibration": { + "observed_rate": 0.007246376811594203, + "mean_prediction": 0.009274014541369979, + "calibration_in_the_large": 0.002027637729775776, + "expected_calibration_error_10bin": 0.0031043687345684873, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9708054871614492 + }, + "I27": { + "valid": 2716, + "positives": 36, + "negatives": 2680, + "auroc": 0.8459680762852405, + "auprc": 0.0683134496333456, + "brier": 0.012838804302037187, + "calibration": { + "observed_rate": 0.013254786450662739, + "mean_prediction": 0.009221929983092418, + "calibration_in_the_large": -0.004032856467570321, + "expected_calibration_error_10bin": 0.00537689441343954, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + "I31": { + "valid": 2793, + "positives": 16, + "negatives": 2777, + "auroc": 0.7758372344256392, + "auprc": 0.01755232975005185, + "brier": 0.005693467998679949, + "calibration": { + "observed_rate": 0.005728607232366631, + "mean_prediction": 0.003676158983239434, + "calibration_in_the_large": -0.0020524482491271973, + "expected_calibration_error_10bin": 0.0020524482491271973, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "I34": { + "valid": 2753, + "positives": 18, + "negatives": 2735, + "auroc": 0.7581352833638025, + "auprc": 0.016392349813964494, + "brier": 0.006706636278002519, + "calibration": { + "observed_rate": 0.006538321830730113, + "mean_prediction": 0.0084167263459215, + "calibration_in_the_large": 0.0018784045151913863, + "expected_calibration_error_10bin": 0.0018784045151913863, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9683432993316918 + }, + "I35": { + "valid": 2723, + "positives": 7, + "negatives": 2716, + "auroc": 0.6378077003997475, + "auprc": 0.00693599225439359, + "brier": 0.0025991153114700754, + "calibration": { + "observed_rate": 0.002570694087403599, + "mean_prediction": 0.0035446071709631303, + "calibration_in_the_large": 0.0009739130835595316, + "expected_calibration_error_10bin": 0.0009739130835595316, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + "I42": { + "valid": 2740, + "positives": 13, + "negatives": 2727, + "auroc": 0.9215254858819215, + "auprc": 0.04274854608424362, + "brier": 0.004646390907492781, + "calibration": { + "observed_rate": 0.004744525547445255, + "mean_prediction": 0.004573051233072058, + "calibration_in_the_large": -0.0001714743143731972, + "expected_calibration_error_10bin": 0.00036680226481077184, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + "I44": { + "valid": 2722, + "positives": 23, + "negatives": 2699, + "auroc": 0.7981539056333263, + "auprc": 0.039494115179549594, + "brier": 0.008271513639806213, + "calibration": { + "observed_rate": 0.008449669360764144, + "mean_prediction": 0.005890749003574028, + "calibration_in_the_large": -0.002558920357190116, + "expected_calibration_error_10bin": 0.00264021632451114, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9574393246570524 + }, + "I45": { + "valid": 2766, + "positives": 22, + "negatives": 2744, + "auroc": 0.6734528226875166, + "auprc": 0.014561944398089943, + "brier": 0.007896304565409315, + "calibration": { + "observed_rate": 0.007953723788864787, + "mean_prediction": 0.005849398220419148, + "calibration_in_the_large": -0.0021043255684456393, + "expected_calibration_error_10bin": 0.0021043255684456393, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9729159338726697 + }, + "I46": { + "valid": 2831, + "positives": 3, + "negatives": 2828, + "auroc": 0.6938943894389439, + "auprc": 0.0026491589148397846, + "brier": 0.0010596454767030654, + "calibration": { + "observed_rate": 0.0010596962204168139, + "mean_prediction": 0.000980944883512704, + "calibration_in_the_large": -7.875133690410981e-05, + "expected_calibration_error_10bin": 7.875133690410981e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "I47": { + "valid": 2716, + "positives": 18, + "negatives": 2698, + "auroc": 0.6354089448974549, + "auprc": 0.009705426055929351, + "brier": 0.0066793233102169156, + "calibration": { + "observed_rate": 0.0066273932253313695, + "mean_prediction": 0.009211086095705942, + "calibration_in_the_large": 0.002583692870374572, + "expected_calibration_error_10bin": 0.0025836928703745726, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + "I48": { + "valid": 2385, + "positives": 32, + "negatives": 2353, + "auroc": 0.7408892902677433, + "auprc": 0.03382907812712423, + "brier": 0.01377491232431195, + "calibration": { + "observed_rate": 0.013417190775681341, + "mean_prediction": 0.018812734505931614, + "calibration_in_the_large": 0.005395543730250273, + "expected_calibration_error_10bin": 0.005395543730250273, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8389025677101654 + }, + "I49": { + "valid": 2734, + "positives": 19, + "negatives": 2715, + "auroc": 0.6744402442570515, + "auprc": 0.0197379084755204, + "brier": 0.006892364480562064, + "calibration": { + "observed_rate": 0.006949524506217996, + "mean_prediction": 0.004811877353442526, + "calibration_in_the_large": -0.0021376471527754697, + "expected_calibration_error_10bin": 0.0021376471527754697, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "I50": { + "valid": 2415, + "positives": 50, + "negatives": 2365, + "auroc": 0.817107822410148, + "auprc": 0.09231369315682227, + "brier": 0.020055027579847846, + "calibration": { + "observed_rate": 0.020703933747412008, + "mean_prediction": 0.02092384655114688, + "calibration_in_the_large": 0.00021991280373487299, + "expected_calibration_error_10bin": 0.0046715651009699155, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.849454801266268 + }, + "I51": { + "valid": 2807, + "positives": 9, + "negatives": 2798, + "auroc": 0.7948931776665873, + "auprc": 0.12298400342755353, + "brier": 0.0031569225608897972, + "calibration": { + "observed_rate": 0.003206270039187745, + "mean_prediction": 0.002452100749789775, + "calibration_in_the_large": -0.0007541692893979698, + "expected_calibration_error_10bin": 0.0007541692893979698, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "I61": { + "valid": 2802, + "positives": 8, + "negatives": 2794, + "auroc": 0.829277022190408, + "auprc": 0.014227165659774, + "brier": 0.0028398538445547857, + "calibration": { + "observed_rate": 0.0028551034975017845, + "mean_prediction": 0.0021697686143124753, + "calibration_in_the_large": -0.0006853348831893091, + "expected_calibration_error_10bin": 0.0006853348831893091, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "I63": { + "valid": 2735, + "positives": 15, + "negatives": 2720, + "auroc": 0.7432107843137254, + "auprc": 0.014904534278211997, + "brier": 0.005460118217589707, + "calibration": { + "observed_rate": 0.005484460694698354, + "mean_prediction": 0.005122174054006574, + "calibration_in_the_large": -0.00036228664069178074, + "expected_calibration_error_10bin": 0.00036228664069178074, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9620119591980303 + }, + "I65": { + "valid": 2774, + "positives": 6, + "negatives": 2768, + "auroc": 0.7174253371868978, + "auprc": 0.008458491420279072, + "brier": 0.002206327717123904, + "calibration": { + "observed_rate": 0.0021629416005767843, + "mean_prediction": 0.005658262753685683, + "calibration_in_the_large": 0.003495321153108899, + "expected_calibration_error_10bin": 0.003495321153108899, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "I67": { + "valid": 2773, + "positives": 4, + "negatives": 2769, + "auroc": 0.7701336222462983, + "auprc": 0.004848014256041672, + "brier": 0.0014865704675296448, + "calibration": { + "observed_rate": 0.00144248106743599, + "mean_prediction": 0.0035984619758637052, + "calibration_in_the_large": 0.002155980908427715, + "expected_calibration_error_10bin": 0.002155980908427715, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + "I69": { + "valid": 2752, + "positives": 19, + "negatives": 2733, + "auroc": 0.7543089336953801, + "auprc": 0.027844923082688905, + "brier": 0.0068319780692275185, + "calibration": { + "observed_rate": 0.006904069767441861, + "mean_prediction": 0.005840308347820956, + "calibration_in_the_large": -0.0010637614196209047, + "expected_calibration_error_10bin": 0.0014368429078524916, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9679915582131551 + }, + "I70": { + "valid": 2771, + "positives": 12, + "negatives": 2759, + "auroc": 0.8240606499939591, + "auprc": 0.03806047567560506, + "brier": 0.004269754136859689, + "calibration": { + "observed_rate": 0.004330566582461205, + "mean_prediction": 0.004258637471758103, + "calibration_in_the_large": -7.192911070310216e-05, + "expected_calibration_error_10bin": 0.0005571395061733054, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9746746394653535 + }, + "I71": { + "valid": 2769, + "positives": 5, + "negatives": 2764, + "auroc": 0.7312590448625181, + "auprc": 0.010443240422665473, + "brier": 0.0018135681896256418, + "calibration": { + "observed_rate": 0.0018057060310581437, + "mean_prediction": 0.0037760607760139605, + "calibration_in_the_large": 0.0019703547449558168, + "expected_calibration_error_10bin": 0.0019703547449558168, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.97397115722828 + }, + "I72": { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.7095187292555714, + "auprc": 0.011174575030325038, + "brier": 0.00212186543391543, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.0018959035379936908, + "calibration_in_the_large": -0.00023326608585300893, + "expected_calibration_error_10bin": 0.00023326608585300893, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "I73": { + "valid": 2734, + "positives": 10, + "negatives": 2724, + "auroc": 0.8647577092511013, + "auprc": 0.11012008579869322, + "brier": 0.0034876569644601936, + "calibration": { + "observed_rate": 0.0036576444769568397, + "mean_prediction": 0.005825757590565327, + "calibration_in_the_large": 0.002168113113608487, + "expected_calibration_error_10bin": 0.0025652291030270474, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "I74": { + "valid": 2821, + "positives": 5, + "negatives": 2816, + "auroc": 0.78125, + "auprc": 0.012194474741893741, + "brier": 0.0017647327556898683, + "calibration": { + "observed_rate": 0.001772421127259837, + "mean_prediction": 0.0011418069476417235, + "calibration_in_the_large": -0.0006306141796181134, + "expected_calibration_error_10bin": 0.0006306141796181134, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "I77": { + "valid": 2785, + "positives": 6, + "negatives": 2779, + "auroc": 0.6441165887009715, + "auprc": 0.006102677274582185, + "brier": 0.002161507823017314, + "calibration": { + "observed_rate": 0.0021543985637342907, + "mean_prediction": 0.003175205417843127, + "calibration_in_the_large": 0.0010208068541088361, + "expected_calibration_error_10bin": 0.0010208068541088361, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "I80": { + "valid": 2827, + "positives": 5, + "negatives": 2822, + "auroc": 0.918284904323175, + "auprc": 0.05038982844725248, + "brier": 0.0017461602098962465, + "calibration": { + "observed_rate": 0.0017686593562079944, + "mean_prediction": 0.0011380568358088025, + "calibration_in_the_large": -0.0006306025203991919, + "expected_calibration_error_10bin": 0.0006306025203991919, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "I81": { + "valid": 2826, + "positives": 8, + "negatives": 2818, + "auroc": 0.812278211497516, + "auprc": 0.025686377454794983, + "brier": 0.002886604570469334, + "calibration": { + "observed_rate": 0.0028308563340410475, + "mean_prediction": 0.002014476815110268, + "calibration_in_the_large": -0.0008163795189307793, + "expected_calibration_error_10bin": 0.0020674278674004563, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "I82": { + "valid": 2739, + "positives": 35, + "negatives": 2704, + "auroc": 0.7578508030431107, + "auprc": 0.04391294077541851, + "brier": 0.012473053849568122, + "calibration": { + "observed_rate": 0.012778386272362175, + "mean_prediction": 0.009601940357099263, + "calibration_in_the_large": -0.0031764459152629123, + "expected_calibration_error_10bin": 0.004578563937185112, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + "I85": { + "valid": 2793, + "positives": 9, + "negatives": 2784, + "auroc": 0.9885057471264368, + "auprc": 0.30765726977309765, + "brier": 0.0028588235899222147, + "calibration": { + "observed_rate": 0.00322234156820623, + "mean_prediction": 0.0015365932657259963, + "calibration_in_the_large": -0.0016857483024802337, + "expected_calibration_error_10bin": 0.0021886178586463666, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "I87": { + "valid": 2780, + "positives": 13, + "negatives": 2767, + "auroc": 0.7001473409135137, + "auprc": 0.012633343885602074, + "brier": 0.004653745384948141, + "calibration": { + "observed_rate": 0.004676258992805755, + "mean_prediction": 0.0032270175122975286, + "calibration_in_the_large": -0.0014492414805082265, + "expected_calibration_error_10bin": 0.0014492414805082265, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + "I89": { + "valid": 2826, + "positives": 5, + "negatives": 2821, + "auroc": 0.8498404820985466, + "auprc": 0.00687443866834733, + "brier": 0.0017649842251495783, + "calibration": { + "observed_rate": 0.0017692852087756545, + "mean_prediction": 0.0009992356769266712, + "calibration_in_the_large": -0.0007700495318489833, + "expected_calibration_error_10bin": 0.0007700495318489833, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "I95": { + "valid": 2485, + "positives": 97, + "negatives": 2388, + "auroc": 0.7390302025591877, + "auprc": 0.09751697031695561, + "brier": 0.03650020514054431, + "calibration": { + "observed_rate": 0.03903420523138833, + "mean_prediction": 0.03286181937704534, + "calibration_in_the_large": -0.006172385854342988, + "expected_calibration_error_10bin": 0.006659208481542957, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.874076679563841 + }, + "I96": { + "valid": 2831, + "positives": 6, + "negatives": 2825, + "auroc": 0.8169911504424778, + "auprc": 0.18845871952949753, + "brier": 0.002068107202585445, + "calibration": { + "observed_rate": 0.0021193924408336277, + "mean_prediction": 0.0018848233409654864, + "calibration_in_the_large": -0.00023456909986814133, + "expected_calibration_error_10bin": 0.00023456909986814133, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "I97": { + "valid": 2740, + "positives": 11, + "negatives": 2729, + "auroc": 0.717712115660082, + "auprc": 0.010571108716909729, + "brier": 0.004012722268398647, + "calibration": { + "observed_rate": 0.0040145985401459855, + "mean_prediction": 0.004511979551420566, + "calibration_in_the_large": 0.0004973810112745801, + "expected_calibration_error_10bin": 0.0004973810112745809, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + "J02": { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.7803754870704924, + "auprc": 0.002345543601572119, + "brier": 0.0007272749722508342, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.0015346488051386385, + "calibration_in_the_large": 0.000826684203368727, + "expected_calibration_error_10bin": 0.000826684203368727, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J06": { + "valid": 2816, + "positives": 10, + "negatives": 2806, + "auroc": 0.6346044191019244, + "auprc": 0.010392581667762352, + "brier": 0.003593239453628089, + "calibration": { + "observed_rate": 0.0035511363636363635, + "mean_prediction": 0.0035744283988802554, + "calibration_in_the_large": 2.329203524389185e-05, + "expected_calibration_error_10bin": 0.0003298511818405299, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "J12": { + "valid": 2829, + "positives": 1, + "negatives": 2828, + "auroc": 0.9943422913719944, + "auprc": 0.058823529411764705, + "brier": 0.0004329588494120905, + "calibration": { + "observed_rate": 0.0003534817956875221, + "mean_prediction": 0.0032073440189141164, + "calibration_in_the_large": 0.0028538622232265943, + "expected_calibration_error_10bin": 0.0028538622232265943, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J15": { + "valid": 2795, + "positives": 15, + "negatives": 2780, + "auroc": 0.7353956834532374, + "auprc": 0.016276409466957235, + "brier": 0.00533938893670153, + "calibration": { + "observed_rate": 0.005366726296958855, + "mean_prediction": 0.0032445549843283053, + "calibration_in_the_large": -0.0021221713126305494, + "expected_calibration_error_10bin": 0.0022040879272244383, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9831164263102357 + }, + "J18": { + "valid": 2671, + "positives": 62, + "negatives": 2609, + "auroc": 0.7754052349806501, + "auprc": 0.06581512714142879, + "brier": 0.02236356069345673, + "calibration": { + "observed_rate": 0.023212280044926994, + "mean_prediction": 0.014339075414065839, + "calibration_in_the_large": -0.008873204630861156, + "expected_calibration_error_10bin": 0.010554758350280679, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + "J30": { + "valid": 2815, + "positives": 7, + "negatives": 2808, + "auroc": 0.7183048433048433, + "auprc": 0.017765188902791957, + "brier": 0.0024730217992222484, + "calibration": { + "observed_rate": 0.002486678507992895, + "mean_prediction": 0.0014598086752192047, + "calibration_in_the_large": -0.0010268698327736904, + "expected_calibration_error_10bin": 0.0010268698327736904, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + "J32": { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.5272373540856031, + "auprc": 0.003465415422624439, + "brier": 0.0007172937485872368, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0013569185608109673, + "calibration_in_the_large": 0.000649954969435923, + "expected_calibration_error_10bin": 0.000649954969435923, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J38": { + "valid": 2825, + "positives": 3, + "negatives": 2822, + "auroc": 0.8315615402787621, + "auprc": 0.010158467646390354, + "brier": 0.0010601467155597019, + "calibration": { + "observed_rate": 0.0010619469026548673, + "mean_prediction": 0.0015952826405012765, + "calibration_in_the_large": 0.0005333357378464092, + "expected_calibration_error_10bin": 0.0005333357378464092, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J43": { + "valid": 2804, + "positives": 9, + "negatives": 2795, + "auroc": 0.6735440270323991, + "auprc": 0.015041171680719652, + "brier": 0.003191991056102026, + "calibration": { + "observed_rate": 0.003209700427960057, + "mean_prediction": 0.0028793000958694196, + "calibration_in_the_large": -0.00033040033209063733, + "expected_calibration_error_10bin": 0.00033040033209063733, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "J44": { + "valid": 2570, + "positives": 28, + "negatives": 2542, + "auroc": 0.8296757333932786, + "auprc": 0.047894685961007225, + "brier": 0.010661095549222191, + "calibration": { + "observed_rate": 0.010894941634241245, + "mean_prediction": 0.009333602744772946, + "calibration_in_the_large": -0.0015613388894682983, + "expected_calibration_error_10bin": 0.002693240347548011, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9039746746394653 + }, + "J45": { + "valid": 2518, + "positives": 24, + "negatives": 2494, + "auroc": 0.6829056402031543, + "auprc": 0.02270822994912838, + "brier": 0.00947327919582889, + "calibration": { + "observed_rate": 0.009531374106433678, + "mean_prediction": 0.008025680234036396, + "calibration_in_the_large": -0.0015056938723972818, + "expected_calibration_error_10bin": 0.0021082426826948574, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.885684136475554 + }, + "J47": { + "valid": 2825, + "positives": 6, + "negatives": 2819, + "auroc": 0.7931890741397659, + "auprc": 0.009919067936112578, + "brier": 0.002119170062038598, + "calibration": { + "observed_rate": 0.0021238938053097347, + "mean_prediction": 0.0006370889550516164, + "calibration_in_the_large": -0.0014868048502581182, + "expected_calibration_error_10bin": 0.0014868048502581182, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J69": { + "valid": 2777, + "positives": 30, + "negatives": 2747, + "auroc": 0.7488047567042835, + "auprc": 0.030036114203698797, + "brier": 0.010628827950995184, + "calibration": { + "observed_rate": 0.010803024846957148, + "mean_prediction": 0.0062899040486782114, + "calibration_in_the_large": -0.004513120798278937, + "expected_calibration_error_10bin": 0.004513120798278937, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + "J81": { + "valid": 2781, + "positives": 21, + "negatives": 2760, + "auroc": 0.814095928226363, + "auprc": 0.05478093289261236, + "brier": 0.007389318151835105, + "calibration": { + "observed_rate": 0.007551240560949299, + "mean_prediction": 0.0048906315073255725, + "calibration_in_the_large": -0.0026606090536237265, + "expected_calibration_error_10bin": 0.0026606090536237265, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + "J84": { + "valid": 2817, + "positives": 7, + "negatives": 2810, + "auroc": 0.9035078800203356, + "auprc": 0.017102337916500867, + "brier": 0.0024631717699454317, + "calibration": { + "observed_rate": 0.0024849130280440185, + "mean_prediction": 0.002599445458058247, + "calibration_in_the_large": 0.00011453243001422831, + "expected_calibration_error_10bin": 0.00011453243001422831, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "J90": { + "valid": 2754, + "positives": 37, + "negatives": 2717, + "auroc": 0.7069203911309174, + "auprc": 0.026633067409334937, + "brier": 0.013326743755676164, + "calibration": { + "observed_rate": 0.013435003631082063, + "mean_prediction": 0.007565502803654169, + "calibration_in_the_large": -0.005869500827427893, + "expected_calibration_error_10bin": 0.006660593871156571, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9686950404502286 + }, + "J91": { + "valid": 2807, + "positives": 11, + "negatives": 2796, + "auroc": 0.8299518793081024, + "auprc": 0.04694478501861337, + "brier": 0.0038376187747020175, + "calibration": { + "observed_rate": 0.003918774492340577, + "mean_prediction": 0.004216100711049578, + "calibration_in_the_large": 0.0002973262187090011, + "expected_calibration_error_10bin": 0.0006815480953219304, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "J94": { + "valid": 2829, + "positives": 10, + "negatives": 2819, + "auroc": 0.6794253281305428, + "auprc": 0.10582869699354099, + "brier": 0.0034908005216364012, + "calibration": { + "observed_rate": 0.003534817956875221, + "mean_prediction": 0.000606178833135514, + "calibration_in_the_large": -0.002928639123739707, + "expected_calibration_error_10bin": 0.002928639123739707, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J95": { + "valid": 2770, + "positives": 16, + "negatives": 2754, + "auroc": 0.8198302469135802, + "auprc": 0.029508867718425445, + "brier": 0.005703535905779644, + "calibration": { + "observed_rate": 0.005776173285198556, + "mean_prediction": 0.0037510012796484926, + "calibration_in_the_large": -0.002025172005550063, + "expected_calibration_error_10bin": 0.002025172005550063, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9743228983468167 + }, + "J96": { + "valid": 2605, + "positives": 76, + "negatives": 2529, + "auroc": 0.8240983538323864, + "auprc": 0.12599425371713355, + "brier": 0.027066593356788907, + "calibration": { + "observed_rate": 0.029174664107485603, + "mean_prediction": 0.019227562416234276, + "calibration_in_the_large": -0.009947101691251327, + "expected_calibration_error_10bin": 0.010181766001443064, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9162856137882518 + }, + "J98": { + "valid": 2692, + "positives": 37, + "negatives": 2655, + "auroc": 0.7566244210312006, + "auprc": 0.05012543131559952, + "brier": 0.013426441508250338, + "calibration": { + "observed_rate": 0.0137444279346211, + "mean_prediction": 0.007503182869188978, + "calibration_in_the_large": -0.006241245065432121, + "expected_calibration_error_10bin": 0.006320300458289413, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9468870911009497 + }, + "K04": { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.8994354269583628, + "auprc": 0.04723390488515044, + "brier": 0.000700548007205758, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.0005685787938131147, + "calibration_in_the_large": -0.0001366398239583945, + "expected_calibration_error_10bin": 0.0001366398239583945, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "K12": { + "valid": 2824, + "positives": 14, + "negatives": 2810, + "auroc": 0.9043975597356381, + "auprc": 0.0911700583637843, + "brier": 0.005219370739109059, + "calibration": { + "observed_rate": 0.004957507082152974, + "mean_prediction": 0.004298817860232056, + "calibration_in_the_large": -0.0006586892219209188, + "expected_calibration_error_10bin": 0.004017370673334098, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "K20": { + "valid": 2813, + "positives": 11, + "negatives": 2802, + "auroc": 0.6789955226786062, + "auprc": 0.0187976377342408, + "brier": 0.003949520872857774, + "calibration": { + "observed_rate": 0.0039104159260575895, + "mean_prediction": 0.004004329435637284, + "calibration_in_the_large": 9.391350957969457e-05, + "expected_calibration_error_10bin": 0.000904361205944241, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K21": { + "valid": 2043, + "positives": 88, + "negatives": 1955, + "auroc": 0.745855614973262, + "auprc": 0.14678913552013448, + "brier": 0.039523811858338205, + "calibration": { + "observed_rate": 0.043073910915320604, + "mean_prediction": 0.033440820740641156, + "calibration_in_the_large": -0.009633090174679448, + "expected_calibration_error_10bin": 0.010242523408446565, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7186071051705945 + }, + "K22": { + "valid": 2764, + "positives": 19, + "negatives": 2745, + "auroc": 0.8037580289521619, + "auprc": 0.03555370913899234, + "brier": 0.006784676847363186, + "calibration": { + "observed_rate": 0.006874095513748191, + "mean_prediction": 0.003227334087628263, + "calibration_in_the_large": -0.003646761426119928, + "expected_calibration_error_10bin": 0.003646761426119928, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9722124516355962 + }, + "K25": { + "valid": 2817, + "positives": 7, + "negatives": 2810, + "auroc": 0.7011184544992374, + "auprc": 0.006430457686680993, + "brier": 0.0025012848971226608, + "calibration": { + "observed_rate": 0.0024849130280440185, + "mean_prediction": 0.0019918892441132627, + "calibration_in_the_large": -0.0004930237839307558, + "expected_calibration_error_10bin": 0.000585319492212977, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "K26": { + "valid": 2814, + "positives": 6, + "negatives": 2808, + "auroc": 0.9261633428300095, + "auprc": 0.19016034918819766, + "brier": 0.0020667449031940054, + "calibration": { + "observed_rate": 0.0021321961620469083, + "mean_prediction": 0.0024478309031099915, + "calibration_in_the_large": 0.00031563474106308326, + "expected_calibration_error_10bin": 0.00031563474106308326, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "K29": { + "valid": 2785, + "positives": 14, + "negatives": 2771, + "auroc": 0.6911378048151776, + "auprc": 0.03782814614728959, + "brier": 0.004947740105672075, + "calibration": { + "observed_rate": 0.005026929982046679, + "mean_prediction": 0.004751079135613693, + "calibration_in_the_large": -0.00027585084643298556, + "expected_calibration_error_10bin": 0.00037146221837563905, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K30": { + "valid": 2837, + "positives": 3, + "negatives": 2834, + "auroc": 0.9389555398729711, + "auprc": 0.013249845392702535, + "brier": 0.0010526003825255031, + "calibration": { + "observed_rate": 0.0010574550581600281, + "mean_prediction": 0.0009497496426655631, + "calibration_in_the_large": -0.00010770541549446505, + "expected_calibration_error_10bin": 0.00010770541549446505, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + "K31": { + "valid": 2756, + "positives": 19, + "negatives": 2737, + "auroc": 0.8885256619810395, + "auprc": 0.10645311575405857, + "brier": 0.0065731413707216515, + "calibration": { + "observed_rate": 0.006894049346879536, + "mean_prediction": 0.0050396120178897875, + "calibration_in_the_large": -0.0018544373289897482, + "expected_calibration_error_10bin": 0.0021367045970501755, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + "K40": { + "valid": 2827, + "positives": 3, + "negatives": 2824, + "auroc": 0.9211520302171861, + "auprc": 0.06329579318085064, + "brier": 0.001044755967634135, + "calibration": { + "observed_rate": 0.0010611956137247967, + "mean_prediction": 0.001061410160830241, + "calibration_in_the_large": 2.145471054443987e-07, + "expected_calibration_error_10bin": 2.145471054443987e-07, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "K42": { + "valid": 2820, + "positives": 7, + "negatives": 2813, + "auroc": 0.7093088212889137, + "auprc": 0.025741673176525835, + "brier": 0.002471446261949215, + "calibration": { + "observed_rate": 0.0024822695035460994, + "mean_prediction": 0.0011120504889235146, + "calibration_in_the_large": -0.0013702190146225848, + "expected_calibration_error_10bin": 0.0013702190146225848, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + "K43": { + "valid": 2813, + "positives": 9, + "negatives": 2804, + "auroc": 0.8033761293390395, + "auprc": 0.0340658012943593, + "brier": 0.0031565621611020288, + "calibration": { + "observed_rate": 0.003199431212228937, + "mean_prediction": 0.001977608668321367, + "calibration_in_the_large": -0.00122182254390757, + "expected_calibration_error_10bin": 0.00122182254390757, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K44": { + "valid": 2785, + "positives": 7, + "negatives": 2778, + "auroc": 0.7187082176283041, + "auprc": 0.008689701298916672, + "brier": 0.002505567087797015, + "calibration": { + "observed_rate": 0.0025134649910233393, + "mean_prediction": 0.002394713034615179, + "calibration_in_the_large": -0.00011875195640816041, + "expected_calibration_error_10bin": 0.00011875195640816041, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K52": { + "valid": 2749, + "positives": 38, + "negatives": 2711, + "auroc": 0.801927818439496, + "auprc": 0.08982020836873732, + "brier": 0.013331509235100751, + "calibration": { + "observed_rate": 0.013823208439432522, + "mean_prediction": 0.009497739903069576, + "calibration_in_the_large": -0.004325468536362946, + "expected_calibration_error_10bin": 0.006086559019712716, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9669363348575448 + }, + "K55": { + "valid": 2815, + "positives": 10, + "negatives": 2805, + "auroc": 0.7554367201426025, + "auprc": 0.00988819195825537, + "brier": 0.0035661913454426175, + "calibration": { + "observed_rate": 0.003552397868561279, + "mean_prediction": 0.0026120032413410985, + "calibration_in_the_large": -0.0009403946272201805, + "expected_calibration_error_10bin": 0.001053173856623146, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + "K56": { + "valid": 2745, + "positives": 30, + "negatives": 2715, + "auroc": 0.7466666666666667, + "auprc": 0.03653097542247098, + "brier": 0.01075595901493141, + "calibration": { + "observed_rate": 0.01092896174863388, + "mean_prediction": 0.00548041883676823, + "calibration_in_the_large": -0.00544854291186565, + "expected_calibration_error_10bin": 0.00544854291186565, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9655293703833978 + }, + "K57": { + "valid": 2741, + "positives": 25, + "negatives": 2716, + "auroc": 0.712960235640648, + "auprc": 0.03112557031474697, + "brier": 0.00902815559648534, + "calibration": { + "observed_rate": 0.009120758847136081, + "mean_prediction": 0.0031266567637297134, + "calibration_in_the_large": -0.005994102083406368, + "expected_calibration_error_10bin": 0.005994102083406368, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + "K58": { + "valid": 2792, + "positives": 7, + "negatives": 2785, + "auroc": 0.7495768145678379, + "auprc": 0.0992305832490489, + "brier": 0.0024633018575658363, + "calibration": { + "observed_rate": 0.002507163323782235, + "mean_prediction": 0.0028603205044648483, + "calibration_in_the_large": 0.0003531571806826132, + "expected_calibration_error_10bin": 0.0003531571806826132, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + "K59": { + "valid": 2560, + "positives": 87, + "negatives": 2473, + "auroc": 0.7588344929839973, + "auprc": 0.12909210847965616, + "brier": 0.031526219477559805, + "calibration": { + "observed_rate": 0.033984375, + "mean_prediction": 0.029141715511218535, + "calibration_in_the_large": -0.004842659488781462, + "expected_calibration_error_10bin": 0.007618950937171578, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + "K62": { + "valid": 2813, + "positives": 16, + "negatives": 2797, + "auroc": 0.7493966750089381, + "auprc": 0.017942092346092963, + "brier": 0.0056485663380822625, + "calibration": { + "observed_rate": 0.005687877710629221, + "mean_prediction": 0.002570687315863459, + "calibration_in_the_large": -0.0031171903947657623, + "expected_calibration_error_10bin": 0.0031171903947657623, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K63": { + "valid": 2810, + "positives": 19, + "negatives": 2791, + "auroc": 0.7575288992815252, + "auprc": 0.035866460952013325, + "brier": 0.0066635633063911286, + "calibration": { + "observed_rate": 0.006761565836298933, + "mean_prediction": 0.0033547965518638677, + "calibration_in_the_large": -0.003406769284435065, + "expected_calibration_error_10bin": 0.003406769284435065, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + "K64": { + "valid": 2801, + "positives": 22, + "negatives": 2779, + "auroc": 0.7778959076188295, + "auprc": 0.03224108337311465, + "brier": 0.007745856108036305, + "calibration": { + "observed_rate": 0.00785433773652267, + "mean_prediction": 0.004475389343113427, + "calibration_in_the_large": -0.0033789483934092432, + "expected_calibration_error_10bin": 0.0033789483934092432, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "K65": { + "valid": 2813, + "positives": 13, + "negatives": 2800, + "auroc": 0.8307142857142857, + "auprc": 0.03699874911117102, + "brier": 0.004662653130396141, + "calibration": { + "observed_rate": 0.004621400639886242, + "mean_prediction": 0.004001633153137588, + "calibration_in_the_large": -0.0006197674867486546, + "expected_calibration_error_10bin": 0.0024603457643436644, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K66": { + "valid": 2796, + "positives": 9, + "negatives": 2787, + "auroc": 0.6701351512976916, + "auprc": 0.01795477033080435, + "brier": 0.0032137746692910956, + "calibration": { + "observed_rate": 0.003218884120171674, + "mean_prediction": 0.0031394480755727937, + "calibration_in_the_large": -7.943604459888015e-05, + "expected_calibration_error_10bin": 7.943604459888015e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + "K70": { + "valid": 2774, + "positives": 5, + "negatives": 2769, + "auroc": 0.9373058866016613, + "auprc": 0.06723624939168871, + "brier": 0.0017641305008962807, + "calibration": { + "observed_rate": 0.001802451333813987, + "mean_prediction": 0.0010211628111081387, + "calibration_in_the_large": -0.0007812885227058482, + "expected_calibration_error_10bin": 0.0009407482605450968, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "K72": { + "valid": 2787, + "positives": 21, + "negatives": 2766, + "auroc": 0.9077058155149261, + "auprc": 0.25598870703811316, + "brier": 0.006650044128919625, + "calibration": { + "observed_rate": 0.007534983853606028, + "mean_prediction": 0.004225069387577712, + "calibration_in_the_large": -0.0033099144660283164, + "expected_calibration_error_10bin": 0.005061254603088431, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "K74": { + "valid": 2763, + "positives": 7, + "negatives": 2756, + "auroc": 0.945365954799917, + "auprc": 0.032124273729795656, + "brier": 0.0026526587718394257, + "calibration": { + "observed_rate": 0.0025334781035106766, + "mean_prediction": 0.002580507580790712, + "calibration_in_the_large": 4.702947728003545e-05, + "expected_calibration_error_10bin": 0.0017705265810493062, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + "K75": { + "valid": 2798, + "positives": 11, + "negatives": 2787, + "auroc": 0.8638483869915516, + "auprc": 0.030192470674093842, + "brier": 0.0039468164094894065, + "calibration": { + "observed_rate": 0.003931379556826304, + "mean_prediction": 0.0028485750898704708, + "calibration_in_the_large": -0.0010828044669558335, + "expected_calibration_error_10bin": 0.0018034366156480645, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + "K76": { + "valid": 2681, + "positives": 32, + "negatives": 2649, + "auroc": 0.7959607399018498, + "auprc": 0.18559480851660012, + "brier": 0.011041496609684032, + "calibration": { + "observed_rate": 0.011935844834017158, + "mean_prediction": 0.004786619630356126, + "calibration_in_the_large": -0.007149225203661033, + "expected_calibration_error_10bin": 0.008849564826453837, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9430179387970454 + }, + "K80": { + "valid": 2731, + "positives": 18, + "negatives": 2713, + "auroc": 0.6134250726952533, + "auprc": 0.015011466152317557, + "brier": 0.00655768841738929, + "calibration": { + "observed_rate": 0.006590992310508971, + "mean_prediction": 0.004532266765219835, + "calibration_in_the_large": -0.0020587255452891367, + "expected_calibration_error_10bin": 0.002142435876552936, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9606049947238833 + }, + "K81": { + "valid": 2825, + "positives": 5, + "negatives": 2820, + "auroc": 0.8777304964539007, + "auprc": 0.03322358426117554, + "brier": 0.0017480784074165917, + "calibration": { + "observed_rate": 0.0017699115044247787, + "mean_prediction": 0.0014649761892508498, + "calibration_in_the_large": -0.00030493531517392894, + "expected_calibration_error_10bin": 0.0003783061010137189, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "K82": { + "valid": 2824, + "positives": 4, + "negatives": 2820, + "auroc": 0.6445921985815602, + "auprc": 0.003278352714338855, + "brier": 0.0014437034775156155, + "calibration": { + "observed_rate": 0.00141643059490085, + "mean_prediction": 0.001714704398095265, + "calibration_in_the_large": 0.000298273803194415, + "expected_calibration_error_10bin": 0.000298273803194415, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "K83": { + "valid": 2757, + "positives": 16, + "negatives": 2741, + "auroc": 0.9090888361911711, + "auprc": 0.0948968318643229, + "brier": 0.005597722008745016, + "calibration": { + "observed_rate": 0.005803409503083061, + "mean_prediction": 0.003201273559749938, + "calibration_in_the_large": -0.002602135943333123, + "expected_calibration_error_10bin": 0.003548392291984903, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.969750263805839 + }, + "K85": { + "valid": 2779, + "positives": 10, + "negatives": 2769, + "auroc": 0.8295413506681112, + "auprc": 0.025907513504567083, + "brier": 0.0035612094926190164, + "calibration": { + "observed_rate": 0.0035984166966534724, + "mean_prediction": 0.0020940234349534426, + "calibration_in_the_large": -0.0015043932617000298, + "expected_calibration_error_10bin": 0.0015043932617000298, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9774885684136475 + }, + "K86": { + "valid": 2785, + "positives": 7, + "negatives": 2778, + "auroc": 0.6964928520004114, + "auprc": 0.0176972446855703, + "brier": 0.002519396908921215, + "calibration": { + "observed_rate": 0.0025134649910233393, + "mean_prediction": 0.002780313235928603, + "calibration_in_the_large": 0.0002668482449052637, + "expected_calibration_error_10bin": 0.00026684824490526385, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K90": { + "valid": 2831, + "positives": 3, + "negatives": 2828, + "auroc": 0.576968411126827, + "auprc": 0.0016062785510717362, + "brier": 0.0010605265128522687, + "calibration": { + "observed_rate": 0.0010596962204168139, + "mean_prediction": 0.00045331941278326106, + "calibration_in_the_large": -0.0006063768076335528, + "expected_calibration_error_10bin": 0.0006063768076335528, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "K91": { + "valid": 2768, + "positives": 26, + "negatives": 2742, + "auroc": 0.8568282556247545, + "auprc": 0.06339827441285927, + "brier": 0.009172315216646552, + "calibration": { + "observed_rate": 0.00939306358381503, + "mean_prediction": 0.0037151621883422825, + "calibration_in_the_large": -0.005677901395472747, + "expected_calibration_error_10bin": 0.005769727766416923, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "K92": { + "valid": 2751, + "positives": 36, + "negatives": 2715, + "auroc": 0.8203499079189687, + "auprc": 0.12396039424131117, + "brier": 0.012432407279537615, + "calibration": { + "observed_rate": 0.013086150490730643, + "mean_prediction": 0.009055492835221373, + "calibration_in_the_large": -0.00403065765550927, + "expected_calibration_error_10bin": 0.004030657655509271, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "K94": { + "valid": 2823, + "positives": 14, + "negatives": 2809, + "auroc": 0.9039058129481767, + "auprc": 0.1246186592871328, + "brier": 0.004862642451729221, + "calibration": { + "observed_rate": 0.00495926319518243, + "mean_prediction": 0.001416587112875757, + "calibration_in_the_large": -0.0035426760823066734, + "expected_calibration_error_10bin": 0.0035426760823066734, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "L02": { + "valid": 2807, + "positives": 19, + "negatives": 2788, + "auroc": 0.7724835762289511, + "auprc": 0.021194567090128975, + "brier": 0.006706205353455996, + "calibration": { + "observed_rate": 0.006768792304951906, + "mean_prediction": 0.005070935183494691, + "calibration_in_the_large": -0.0016978571214572146, + "expected_calibration_error_10bin": 0.0017878984735739839, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "L03": { + "valid": 2701, + "positives": 46, + "negatives": 2655, + "auroc": 0.740096618357488, + "auprc": 0.06910988038516852, + "brier": 0.016501777693745116, + "calibration": { + "observed_rate": 0.017030729359496483, + "mean_prediction": 0.010799418077091045, + "calibration_in_the_large": -0.006231311282405437, + "expected_calibration_error_10bin": 0.006231311282405439, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9500527611677805 + }, + "L08": { + "valid": 2830, + "positives": 5, + "negatives": 2825, + "auroc": 0.6778053097345133, + "auprc": 0.0044278719118286515, + "brier": 0.0017685162650879886, + "calibration": { + "observed_rate": 0.0017667844522968198, + "mean_prediction": 0.0013159421647448361, + "calibration_in_the_large": -0.00045084228755198365, + "expected_calibration_error_10bin": 0.00045084228755198365, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9954273654590221 + }, + "L27": { + "valid": 2818, + "positives": 12, + "negatives": 2806, + "auroc": 0.7842124019957234, + "auprc": 0.021921917736012164, + "brier": 0.004253676455665125, + "calibration": { + "observed_rate": 0.0042583392476933995, + "mean_prediction": 0.002979283330428702, + "calibration_in_the_large": -0.0012790559172646977, + "expected_calibration_error_10bin": 0.0017024434351700858, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "L29": { + "valid": 2817, + "positives": 3, + "negatives": 2814, + "auroc": 0.7769485903814262, + "auprc": 0.003111003446924042, + "brier": 0.001123902327590814, + "calibration": { + "observed_rate": 0.0010649627263045794, + "mean_prediction": 0.0032853127856017975, + "calibration_in_the_large": 0.002220350059297218, + "expected_calibration_error_10bin": 0.002220350059297218, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "L30": { + "valid": 2816, + "positives": 8, + "negatives": 2808, + "auroc": 0.7406962250712251, + "auprc": 0.03685996682667298, + "brier": 0.002809730822129426, + "calibration": { + "observed_rate": 0.002840909090909091, + "mean_prediction": 0.0021490244066403623, + "calibration_in_the_large": -0.0006918846842687287, + "expected_calibration_error_10bin": 0.0006918846842687287, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "L50": { + "valid": 2835, + "positives": 3, + "negatives": 2832, + "auroc": 0.814030131826742, + "auprc": 0.00939660197136866, + "brier": 0.0010609365908059716, + "calibration": { + "observed_rate": 0.0010582010582010583, + "mean_prediction": 0.0010793554681617413, + "calibration_in_the_large": 2.115440996068303e-05, + "expected_calibration_error_10bin": 2.115440996068303e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.997186071051706 + }, + "L53": { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 6.975156448309114e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0010732704515040445, + "calibration_in_the_large": 0.0010732704515040445, + "expected_calibration_error_10bin": 0.0010732704515040445, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "L76": { + "valid": 2793, + "positives": 13, + "negatives": 2780, + "auroc": 0.7120641947980078, + "auprc": 0.008690172264799002, + "brier": 0.004642589777222792, + "calibration": { + "observed_rate": 0.004654493376297888, + "mean_prediction": 0.0025982856729035537, + "calibration_in_the_large": -0.002056207703394334, + "expected_calibration_error_10bin": 0.002056207703394334, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "L89": { + "valid": 2798, + "positives": 24, + "negatives": 2774, + "auroc": 0.8534306657053593, + "auprc": 0.04457113409350371, + "brier": 0.008385458575165669, + "calibration": { + "observed_rate": 0.008577555396711936, + "mean_prediction": 0.005449601169560553, + "calibration_in_the_large": -0.0031279542271513833, + "expected_calibration_error_10bin": 0.0034151148347081554, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + "L97": { + "valid": 2789, + "positives": 12, + "negatives": 2777, + "auroc": 0.9328712039371024, + "auprc": 0.052456377361484535, + "brier": 0.004301178827602629, + "calibration": { + "observed_rate": 0.004302617425600574, + "mean_prediction": 0.005029484976338967, + "calibration_in_the_large": 0.0007268675507383932, + "expected_calibration_error_10bin": 0.0007268675507383926, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "L98": { + "valid": 2824, + "positives": 8, + "negatives": 2816, + "auroc": 0.6124822443181818, + "auprc": 0.004108824219523283, + "brier": 0.0028409399327601445, + "calibration": { + "observed_rate": 0.0028328611898017, + "mean_prediction": 0.002242834728038943, + "calibration_in_the_large": -0.0005900264617627569, + "expected_calibration_error_10bin": 0.0005900264617627569, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "M10": { + "valid": 2713, + "positives": 14, + "negatives": 2699, + "auroc": 0.8072301910760599, + "auprc": 0.03512389566337539, + "brier": 0.005082520496929011, + "calibration": { + "observed_rate": 0.005160339107998526, + "mean_prediction": 0.005499081983128182, + "calibration_in_the_large": 0.00033874287512965576, + "expected_calibration_error_10bin": 0.0003387428751296564, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9542736545902216 + }, + "M16": { + "valid": 2790, + "positives": 3, + "negatives": 2787, + "auroc": 0.8454730295419208, + "auprc": 0.007101214075006354, + "brier": 0.0010729754649622951, + "calibration": { + "observed_rate": 0.001075268817204301, + "mean_prediction": 0.0015217799839756742, + "calibration_in_the_large": 0.0004465111667713731, + "expected_calibration_error_10bin": 0.0004465111667713731, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + "M17": { + "valid": 2733, + "positives": 13, + "negatives": 2720, + "auroc": 0.7335407239819004, + "auprc": 0.011158621346805274, + "brier": 0.004734834571773556, + "calibration": { + "observed_rate": 0.004756677643615075, + "mean_prediction": 0.003881360939476791, + "calibration_in_the_large": -0.0008753167041382843, + "expected_calibration_error_10bin": 0.0008753167041382843, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + "M19": { + "valid": 2674, + "positives": 35, + "negatives": 2639, + "auroc": 0.684653277756726, + "auprc": 0.02390294156264333, + "brier": 0.012944944258114625, + "calibration": { + "observed_rate": 0.013089005235602094, + "mean_prediction": 0.006536204449046244, + "calibration_in_the_large": -0.00655280078655585, + "expected_calibration_error_10bin": 0.00655280078655585, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.940555750967288 + }, + "M21": { + "valid": 2821, + "positives": 3, + "negatives": 2818, + "auroc": 0.8921220723917672, + "auprc": 0.006273280542286389, + "brier": 0.0010742016308320683, + "calibration": { + "observed_rate": 0.0010634526763559022, + "mean_prediction": 0.003408694369839707, + "calibration_in_the_large": 0.0023452416934838047, + "expected_calibration_error_10bin": 0.0023452416934838047, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "M25": { + "valid": 2717, + "positives": 41, + "negatives": 2676, + "auroc": 0.6640781654453316, + "auprc": 0.031243464758748042, + "brier": 0.014821672843957984, + "calibration": { + "observed_rate": 0.015090172984909826, + "mean_prediction": 0.013650628593710879, + "calibration_in_the_large": -0.0014395443911989474, + "expected_calibration_error_10bin": 0.0021225252224905036, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9556806190643686 + }, + "M35": { + "valid": 2806, + "positives": 2, + "negatives": 2804, + "auroc": 0.8691155492154066, + "auprc": 0.003969427624102987, + "brier": 0.0007133324215633724, + "calibration": { + "observed_rate": 0.0007127583749109052, + "mean_prediction": 0.000731556286185585, + "calibration_in_the_large": 1.8797911274679715e-05, + "expected_calibration_error_10bin": 1.8797911274679715e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "M46": { + "valid": 2814, + "positives": 7, + "negatives": 2807, + "auroc": 0.6562166013537585, + "auprc": 0.004545555141051013, + "brier": 0.002484986536019095, + "calibration": { + "observed_rate": 0.0024875621890547263, + "mean_prediction": 0.001251500476755273, + "calibration_in_the_large": -0.0012360617122994532, + "expected_calibration_error_10bin": 0.0012360617122994532, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "M47": { + "valid": 2743, + "positives": 11, + "negatives": 2732, + "auroc": 0.6740982297351258, + "auprc": 0.0135047795769563, + "brier": 0.00399246579276675, + "calibration": { + "observed_rate": 0.004010207801676996, + "mean_prediction": 0.005017456752997031, + "calibration_in_the_large": 0.0010072489513200354, + "expected_calibration_error_10bin": 0.0010072489513200354, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + "M48": { + "valid": 2690, + "positives": 10, + "negatives": 2680, + "auroc": 0.8007089552238806, + "auprc": 0.016525784254518554, + "brier": 0.003714565536526948, + "calibration": { + "observed_rate": 0.0037174721189591076, + "mean_prediction": 0.006833120618862893, + "calibration_in_the_large": 0.0031156484999037854, + "expected_calibration_error_10bin": 0.0031156484999037854, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9461836088638762 + }, + "M51": { + "valid": 2785, + "positives": 5, + "negatives": 2780, + "auroc": 0.7715107913669065, + "auprc": 0.005407936755388908, + "brier": 0.0017934851617973308, + "calibration": { + "observed_rate": 0.0017953321364452424, + "mean_prediction": 0.0024505991575849884, + "calibration_in_the_large": 0.0006552670211397459, + "expected_calibration_error_10bin": 0.0006552670211397459, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "M54": { + "valid": 2567, + "positives": 46, + "negatives": 2521, + "auroc": 0.6769656623493093, + "auprc": 0.04135428004120788, + "brier": 0.017527988561440916, + "calibration": { + "observed_rate": 0.017919750681729647, + "mean_prediction": 0.01663737655142021, + "calibration_in_the_large": -0.0012823741303094362, + "expected_calibration_error_10bin": 0.0029780406229681254, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9029194512838551 + }, + "M62": { + "valid": 2781, + "positives": 11, + "negatives": 2770, + "auroc": 0.664653757794552, + "auprc": 0.018793878243055027, + "brier": 0.003932421462942755, + "calibration": { + "observed_rate": 0.003955411722402014, + "mean_prediction": 0.004263343052091869, + "calibration_in_the_large": 0.0003079313296898553, + "expected_calibration_error_10bin": 0.0003079313296898553, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + "M79": { + "valid": 2697, + "positives": 42, + "negatives": 2655, + "auroc": 0.744238184916151, + "auprc": 0.04162129550540175, + "brier": 0.015225619629501324, + "calibration": { + "observed_rate": 0.01557285873192436, + "mean_prediction": 0.011284433177182925, + "calibration_in_the_large": -0.004288425554741435, + "expected_calibration_error_10bin": 0.005182009040765914, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9486457966936335 + }, + "M81": { + "valid": 2705, + "positives": 16, + "negatives": 2689, + "auroc": 0.7652473038304203, + "auprc": 0.020068323575114882, + "brier": 0.006146180184753675, + "calibration": { + "observed_rate": 0.005914972273567467, + "mean_prediction": 0.008014171606493767, + "calibration_in_the_large": 0.0020991993329262998, + "expected_calibration_error_10bin": 0.0020991993329262998, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9514597256419275 + }, + "M84": { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.7891773352299668, + "auprc": 0.024348115506406042, + "brier": 0.0021285276426123243, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.0022681896800690105, + "calibration_in_the_large": 0.00013902005622231078, + "expected_calibration_error_10bin": 0.00013902005622231061, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "M85": { + "valid": 2768, + "positives": 7, + "negatives": 2761, + "auroc": 0.688363429399286, + "auprc": 0.006135794586979491, + "brier": 0.0025282701559108767, + "calibration": { + "observed_rate": 0.0025289017341040463, + "mean_prediction": 0.003035938352296448, + "calibration_in_the_large": 0.0005070366181924016, + "expected_calibration_error_10bin": 0.0005070366181924016, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "M86": { + "valid": 2803, + "positives": 15, + "negatives": 2788, + "auroc": 0.7522716403634625, + "auprc": 0.023896687783002298, + "brier": 0.005330533189432406, + "calibration": { + "observed_rate": 0.005351409204423832, + "mean_prediction": 0.00470272258802158, + "calibration_in_the_large": -0.000648686616402252, + "expected_calibration_error_10bin": 0.001246554344362382, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9859303552585297 + }, + "M94": { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.5099431818181818, + "auprc": 0.002061839221959667, + "brier": 0.0010641619960476292, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.00036064673473355704, + "calibration_in_the_large": -0.000703560430928025, + "expected_calibration_error_10bin": 0.000703560430928025, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "M96": { + "valid": 2804, + "positives": 4, + "negatives": 2800, + "auroc": 0.8997321428571429, + "auprc": 0.012754795892288279, + "brier": 0.001419436310937493, + "calibration": { + "observed_rate": 0.0014265335235378032, + "mean_prediction": 0.0018264253728856176, + "calibration_in_the_large": 0.0003998918493478144, + "expected_calibration_error_10bin": 0.0003998918493478144, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "N12": { + "valid": 2831, + "positives": 7, + "negatives": 2824, + "auroc": 0.717523269931202, + "auprc": 0.014808811196537583, + "brier": 0.002470391879156474, + "calibration": { + "observed_rate": 0.002472624514305899, + "mean_prediction": 0.0016207371288513735, + "calibration_in_the_large": -0.0008518873854545257, + "expected_calibration_error_10bin": 0.0009510773465500571, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "N13": { + "valid": 2756, + "positives": 21, + "negatives": 2735, + "auroc": 0.7527639940802646, + "auprc": 0.058465210117043385, + "brier": 0.007436462617757899, + "calibration": { + "observed_rate": 0.007619738751814224, + "mean_prediction": 0.005693892946502539, + "calibration_in_the_large": -0.0019258458053116843, + "expected_calibration_error_10bin": 0.0019258458053116852, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + "N14": { + "valid": 2826, + "positives": 8, + "negatives": 2818, + "auroc": 0.7947569198012775, + "auprc": 0.0376155401053205, + "brier": 0.0027986549118352226, + "calibration": { + "observed_rate": 0.0028308563340410475, + "mean_prediction": 0.0025560986609956954, + "calibration_in_the_large": -0.00027475767304535213, + "expected_calibration_error_10bin": 0.00047602633379756684, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "N17": { + "valid": 2292, + "positives": 101, + "negatives": 2191, + "auroc": 0.8155912350705632, + "auprc": 0.19427093961187394, + "brier": 0.0388748671238858, + "calibration": { + "observed_rate": 0.04406631762652705, + "mean_prediction": 0.041540666216024216, + "calibration_in_the_large": -0.002525651410502837, + "expected_calibration_error_10bin": 0.004650647671481623, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8061906436862469 + }, + "N18": { + "valid": 2440, + "positives": 49, + "negatives": 2391, + "auroc": 0.8700654665881409, + "auprc": 0.25530513773188934, + "brier": 0.017362897744006164, + "calibration": { + "observed_rate": 0.020081967213114754, + "mean_prediction": 0.01599277804594883, + "calibration_in_the_large": -0.0040891891671659235, + "expected_calibration_error_10bin": 0.004089189167165922, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.858248329229687 + }, + "N20": { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.69415654038599, + "auprc": 0.005670147245176055, + "brier": 0.002845924305924054, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.001284060549372945, + "calibration_in_the_large": -0.001566972950270676, + "expected_calibration_error_10bin": 0.001566972950270676, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "N25": { + "valid": 2831, + "positives": 7, + "negatives": 2824, + "auroc": 0.913445973290166, + "auprc": 0.05937082735001572, + "brier": 0.0024415824564284175, + "calibration": { + "observed_rate": 0.002472624514305899, + "mean_prediction": 0.001391329080854788, + "calibration_in_the_large": -0.001081295433451111, + "expected_calibration_error_10bin": 0.0015084796486949312, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "N28": { + "valid": 2789, + "positives": 9, + "negatives": 2780, + "auroc": 0.807593924860112, + "auprc": 0.016338848619966723, + "brier": 0.003201496920899945, + "calibration": { + "observed_rate": 0.0032269630692004303, + "mean_prediction": 0.0034557637856648666, + "calibration_in_the_large": 0.0002288007164644363, + "expected_calibration_error_10bin": 0.0002288007164644363, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "N30": { + "valid": 2829, + "positives": 11, + "negatives": 2818, + "auroc": 0.7270146461062004, + "auprc": 0.014211591484884113, + "brier": 0.003872474743417984, + "calibration": { + "observed_rate": 0.003888299752562743, + "mean_prediction": 0.003421667115876371, + "calibration_in_the_large": -0.00046663263668637184, + "expected_calibration_error_10bin": 0.00046663263668637184, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "N32": { + "valid": 2807, + "positives": 13, + "negatives": 2794, + "auroc": 0.8586806893893508, + "auprc": 0.04385755918296418, + "brier": 0.0045583709082627506, + "calibration": { + "observed_rate": 0.004631278945493409, + "mean_prediction": 0.003837457521027622, + "calibration_in_the_large": -0.0007938214244657873, + "expected_calibration_error_10bin": 0.0007938214244657873, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "N39": { + "valid": 2520, + "positives": 82, + "negatives": 2438, + "auroc": 0.7640208887732848, + "auprc": 0.08683867439729716, + "brier": 0.030640883436841067, + "calibration": { + "observed_rate": 0.03253968253968254, + "mean_prediction": 0.03028104047582943, + "calibration_in_the_large": -0.002258642063853112, + "expected_calibration_error_10bin": 0.002424854027026054, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8863876187126275 + }, + "N40": { + "valid": 2606, + "positives": 24, + "negatives": 2582, + "auroc": 0.8023980118770978, + "auprc": 0.03936039787237099, + "brier": 0.00903956686259384, + "calibration": { + "observed_rate": 0.00920951650038373, + "mean_prediction": 0.007376948922060054, + "calibration_in_the_large": -0.0018325675783236765, + "expected_calibration_error_10bin": 0.0025910730439823223, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9166373549067885 + }, + "N73": { + "valid": 2829, + "positives": 6, + "negatives": 2823, + "auroc": 0.880328255992443, + "auprc": 0.17668920721310188, + "brier": 0.0020397769575784194, + "calibration": { + "observed_rate": 0.0021208907741251328, + "mean_prediction": 0.0010001963929066235, + "calibration_in_the_large": -0.0011206943812185092, + "expected_calibration_error_10bin": 0.0011206943812185092, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "N99": { + "valid": 2799, + "positives": 6, + "negatives": 2793, + "auroc": 0.7771213748657357, + "auprc": 0.006487732544320564, + "brier": 0.0021539582433735614, + "calibration": { + "observed_rate": 0.0021436227224008574, + "mean_prediction": 0.0028348978571523264, + "calibration_in_the_large": 0.000691275134751469, + "expected_calibration_error_10bin": 0.000691275134751469, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9845233907843827 + }, + "O69": { + "valid": 2743, + "positives": 6, + "negatives": 2737, + "auroc": 0.9968335160151017, + "auprc": 0.36781410597200076, + "brier": 0.0015823030727317054, + "calibration": { + "observed_rate": 0.002187386073641998, + "mean_prediction": 0.002527622695276099, + "calibration_in_the_large": 0.00034023662163410124, + "expected_calibration_error_10bin": 0.00215976882734232, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + "O99": { + "valid": 2652, + "positives": 3, + "negatives": 2649, + "auroc": 0.9046180948785705, + "auprc": 0.11865557865557864, + "brier": 0.0016411114331191087, + "calibration": { + "observed_rate": 0.0011312217194570137, + "mean_prediction": 0.0034809743173523674, + "calibration_in_the_large": 0.002349752597895354, + "expected_calibration_error_10bin": 0.002349752597895354, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9328174463594794 + }, + "Q21": { + "valid": 2810, + "positives": 4, + "negatives": 2806, + "auroc": 0.6392551674982181, + "auprc": 0.00326276771342025, + "brier": 0.0014234050459731129, + "calibration": { + "observed_rate": 0.0014234875444839859, + "mean_prediction": 0.0017262422985847197, + "calibration_in_the_large": 0.0003027547541007338, + "expected_calibration_error_10bin": 0.0003027547541007338, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + "U07": { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.9883227176220807, + "auprc": 0.05011792452830188, + "brier": 0.0007257833379227351, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.00414986073171839, + "calibration_in_the_large": 0.0034426471532176825, + "expected_calibration_error_10bin": 0.0034426471532176825, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + } + }, + "360": { + "A04": { + "valid": 2782, + "positives": 29, + "negatives": 2753, + "auroc": 0.787830204040733, + "auprc": 0.06570489080116118, + "brier": 0.010386577662611718, + "calibration": { + "observed_rate": 0.010424155283968369, + "mean_prediction": 0.010971866848852388, + "calibration_in_the_large": 0.0005477115648840191, + "expected_calibration_error_10bin": 0.0028849908394751726, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + "A08": { + "valid": 2818, + "positives": 11, + "negatives": 2807, + "auroc": 0.7942157593030411, + "auprc": 0.015576678296734854, + "brier": 0.003908613252338238, + "calibration": { + "observed_rate": 0.0039034776437189495, + "mean_prediction": 0.003836536297835216, + "calibration_in_the_large": -6.69413458837336e-05, + "expected_calibration_error_10bin": 0.00022592700617815755, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "A41": { + "valid": 2664, + "positives": 76, + "negatives": 2588, + "auroc": 0.7435684942650289, + "auprc": 0.06770416241112544, + "brier": 0.028190628938846822, + "calibration": { + "observed_rate": 0.028528528528528527, + "mean_prediction": 0.024378863946594036, + "calibration_in_the_large": -0.004149664581934491, + "expected_calibration_error_10bin": 0.014537389194189485, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9370383397819205 + }, + "B00": { + "valid": 2819, + "positives": 4, + "negatives": 2815, + "auroc": 0.7733570159857904, + "auprc": 0.036335919578899915, + "brier": 0.0014089934015666771, + "calibration": { + "observed_rate": 0.001418942887548776, + "mean_prediction": 0.001591472807566733, + "calibration_in_the_large": 0.00017252992001795683, + "expected_calibration_error_10bin": 0.0001725299200179568, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "B02": { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.9522461973823841, + "auprc": 0.007352941176470588, + "brier": 0.0003614449822260898, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0014772253501073858, + "calibration_in_the_large": 0.001123618560857032, + "expected_calibration_error_10bin": 0.001123618560857032, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "B18": { + "valid": 2782, + "positives": 8, + "negatives": 2774, + "auroc": 0.959534967555876, + "auprc": 0.0582914504900309, + "brier": 0.0028677185898990623, + "calibration": { + "observed_rate": 0.002875629043853343, + "mean_prediction": 0.0016932290006377235, + "calibration_in_the_large": -0.0011824000432156196, + "expected_calibration_error_10bin": 0.0018612766040692116, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + "B19": { + "valid": 2763, + "positives": 17, + "negatives": 2746, + "auroc": 0.9045456492866629, + "auprc": 0.1051560761870901, + "brier": 0.0059018829237355375, + "calibration": { + "observed_rate": 0.006152732537097358, + "mean_prediction": 0.0029482447012687896, + "calibration_in_the_large": -0.0032044878358285685, + "expected_calibration_error_10bin": 0.003717931516678793, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + "B20": { + "valid": 2829, + "positives": 5, + "negatives": 2824, + "auroc": 0.9802407932011331, + "auprc": 0.073229927422474, + "brier": 0.001747347956162775, + "calibration": { + "observed_rate": 0.0017674089784376105, + "mean_prediction": 0.0010668748442249276, + "calibration_in_the_large": -0.0007005341342126829, + "expected_calibration_error_10bin": 0.0010434365689740242, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "B34": { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.956617126680821, + "auprc": 0.09375840251358923, + "brier": 0.0017230339541968631, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.0013371021023763586, + "calibration_in_the_large": -0.00042905826498499766, + "expected_calibration_error_10bin": 0.00042905826498499766, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "B35": { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.6296753705010586, + "auprc": 0.0014452208616666509, + "brier": 0.0007087924285391266, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.001344313445417474, + "calibration_in_the_large": 0.0006390948276459648, + "expected_calibration_error_10bin": 0.0006390948276459648, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "B37": { + "valid": 2768, + "positives": 38, + "negatives": 2730, + "auroc": 0.7778773857721226, + "auprc": 0.05986052211606144, + "brier": 0.013370121152441837, + "calibration": { + "observed_rate": 0.013728323699421965, + "mean_prediction": 0.0076208439058237445, + "calibration_in_the_large": -0.006107479793598221, + "expected_calibration_error_10bin": 0.00682513333123029, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "B95": { + "valid": 2678, + "positives": 61, + "negatives": 2617, + "auroc": 0.7397282584864411, + "auprc": 0.05861616314477533, + "brier": 0.022022901311273237, + "calibration": { + "observed_rate": 0.022778192681105303, + "mean_prediction": 0.017796742167567093, + "calibration_in_the_large": -0.00498145051353821, + "expected_calibration_error_10bin": 0.005927771329466785, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9419627154414351 + }, + "B96": { + "valid": 2630, + "positives": 87, + "negatives": 2543, + "auroc": 0.7601529553744559, + "auprc": 0.09490189639955253, + "brier": 0.03120895117146472, + "calibration": { + "observed_rate": 0.03307984790874525, + "mean_prediction": 0.02153442619300267, + "calibration_in_the_large": -0.01154542171574258, + "expected_calibration_error_10bin": 0.012105312971832026, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9250791417516707 + }, + "B97": { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.7533616418966738, + "auprc": 0.036437351513273424, + "brier": 0.0007650650253919449, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.001614710845437417, + "calibration_in_the_large": 0.0009074972669367098, + "expected_calibration_error_10bin": 0.0009074972669367096, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "C18": { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.9723600283486888, + "auprc": 0.018477222045237336, + "brier": 0.0007054199931830308, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0009345155607881467, + "calibration_in_the_large": 0.00022630026333772177, + "expected_calibration_error_10bin": 0.00022630026333772177, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "C22": { + "valid": 2812, + "positives": 7, + "negatives": 2805, + "auroc": 0.9040998217468805, + "auprc": 0.02425298118421723, + "brier": 0.002513830136981759, + "calibration": { + "observed_rate": 0.0024893314366998577, + "mean_prediction": 0.0007595575640885009, + "calibration_in_the_large": -0.0017297738726113569, + "expected_calibration_error_10bin": 0.0022002316381010464, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9890960253253606 + }, + "C25": { + "valid": 2809, + "positives": 4, + "negatives": 2805, + "auroc": 0.85650623885918, + "auprc": 0.055639362277854765, + "brier": 0.0014188515127491036, + "calibration": { + "observed_rate": 0.001423994304022784, + "mean_prediction": 0.0012688833471126242, + "calibration_in_the_large": -0.0001551109569101598, + "expected_calibration_error_10bin": 0.0005058964181682246, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "C61": { + "valid": 2805, + "positives": 2, + "negatives": 2803, + "auroc": 0.9955404923296468, + "auprc": 0.12878787878787878, + "brier": 0.0006956322135124562, + "calibration": { + "observed_rate": 0.00071301247771836, + "mean_prediction": 0.0014727530607891752, + "calibration_in_the_large": 0.0007597405830708151, + "expected_calibration_error_10bin": 0.0007597405830708151, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "C67": { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9717014503006721, + "auprc": 0.018089960886571055, + "brier": 0.0007040589457172846, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0006088857492194513, + "calibration_in_the_large": -9.807784215559289e-05, + "expected_calibration_error_10bin": 9.807784215559289e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "C77": { + "valid": 2762, + "positives": 23, + "negatives": 2739, + "auroc": 0.8636125529787133, + "auprc": 0.10675334618658476, + "brier": 0.007937573201952404, + "calibration": { + "observed_rate": 0.00832729905865315, + "mean_prediction": 0.006850104437164124, + "calibration_in_the_large": -0.0014771946214890263, + "expected_calibration_error_10bin": 0.0025131143756972384, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + "C78": { + "valid": 2762, + "positives": 37, + "negatives": 2725, + "auroc": 0.8812596082320853, + "auprc": 0.17287352717909094, + "brier": 0.01236876012048009, + "calibration": { + "observed_rate": 0.013396089790007242, + "mean_prediction": 0.007731119015773729, + "calibration_in_the_large": -0.0056649707742335124, + "expected_calibration_error_10bin": 0.008956673617696906, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + "C79": { + "valid": 2751, + "positives": 29, + "negatives": 2722, + "auroc": 0.9040006080721579, + "auprc": 0.12415385493615912, + "brier": 0.009950459763824276, + "calibration": { + "observed_rate": 0.010541621228644129, + "mean_prediction": 0.008555711644419572, + "calibration_in_the_large": -0.001985909584224557, + "expected_calibration_error_10bin": 0.0032866486714025014, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "C83": { + "valid": 2820, + "positives": 2, + "negatives": 2818, + "auroc": 0.6992547906316536, + "auprc": 0.00908470439809309, + "brier": 0.0007542155329185873, + "calibration": { + "observed_rate": 0.0007092198581560284, + "mean_prediction": 0.0006895082679315115, + "calibration_in_the_large": -1.9711590224516886e-05, + "expected_calibration_error_10bin": 0.0003026198476649892, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + "D25": { + "valid": 2792, + "positives": 3, + "negatives": 2789, + "auroc": 0.9959364168758217, + "auprc": 0.6936936936936937, + "brier": 0.0010125913182418796, + "calibration": { + "observed_rate": 0.0010744985673352436, + "mean_prediction": 0.000756394730421137, + "calibration_in_the_large": -0.0003181038369141066, + "expected_calibration_error_10bin": 0.0003181038369141066, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + "D47": { + "valid": 2796, + "positives": 11, + "negatives": 2785, + "auroc": 0.6541863881181655, + "auprc": 0.006977006210988492, + "brier": 0.003942925039453989, + "calibration": { + "observed_rate": 0.003934191702432046, + "mean_prediction": 0.0033442028407535615, + "calibration_in_the_large": -0.0005899888616784843, + "expected_calibration_error_10bin": 0.0006883150478470026, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + "D50": { + "valid": 2663, + "positives": 59, + "negatives": 2604, + "auroc": 0.7911427009294697, + "auprc": 0.12170264013906441, + "brier": 0.020860139313055033, + "calibration": { + "observed_rate": 0.022155463762673678, + "mean_prediction": 0.013985683276882648, + "calibration_in_the_large": -0.00816978048579103, + "expected_calibration_error_10bin": 0.008350846011873046, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9366865986633838 + }, + "D53": { + "valid": 2805, + "positives": 18, + "negatives": 2787, + "auroc": 0.8348084359925049, + "auprc": 0.04029992128814606, + "brier": 0.006310283586534205, + "calibration": { + "observed_rate": 0.006417112299465241, + "mean_prediction": 0.00578287302842081, + "calibration_in_the_large": -0.0006342392710444308, + "expected_calibration_error_10bin": 0.0008679657640095033, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "D59": { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.9936485532815809, + "auprc": 0.10267857142857142, + "brier": 0.0006837942585891623, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.0009771346020183078, + "calibration_in_the_large": 0.0002719159842467986, + "expected_calibration_error_10bin": 0.0002719159842467986, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "D61": { + "valid": 2773, + "positives": 37, + "negatives": 2736, + "auroc": 0.8921388493756914, + "auprc": 0.26022837608010274, + "brier": 0.011407298523514773, + "calibration": { + "observed_rate": 0.013342949873782907, + "mean_prediction": 0.01206685533233735, + "calibration_in_the_large": -0.001276094541445557, + "expected_calibration_error_10bin": 0.0030086276519104187, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + "D62": { + "valid": 2499, + "positives": 73, + "negatives": 2426, + "auroc": 0.7859320828016126, + "auprc": 0.11154674916048214, + "brier": 0.027464166755439647, + "calibration": { + "observed_rate": 0.02921168467386955, + "mean_prediction": 0.01756636484055778, + "calibration_in_the_large": -0.011645319833311768, + "expected_calibration_error_10bin": 0.011751382267803236, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8790010552233556 + }, + "D63": { + "valid": 2686, + "positives": 76, + "negatives": 2610, + "auroc": 0.8459366807824158, + "auprc": 0.12595595228934667, + "brier": 0.02680401078194864, + "calibration": { + "observed_rate": 0.028294862248696945, + "mean_prediction": 0.02299469987342413, + "calibration_in_the_large": -0.005300162375272817, + "expected_calibration_error_10bin": 0.014896937036361111, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9447766443897292 + }, + "D64": { + "valid": 2434, + "positives": 121, + "negatives": 2313, + "auroc": 0.8038253064782955, + "auprc": 0.18140149842719902, + "brier": 0.043947907122969795, + "calibration": { + "observed_rate": 0.04971240755957272, + "mean_prediction": 0.04068818599048423, + "calibration_in_the_large": -0.00902422156908849, + "expected_calibration_error_10bin": 0.009978906287074749, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8561378825184665 + }, + "D65": { + "valid": 2833, + "positives": 6, + "negatives": 2827, + "auroc": 0.8846244546633651, + "auprc": 0.01712511513332462, + "brier": 0.0021126015286398376, + "calibration": { + "observed_rate": 0.002117896223085069, + "mean_prediction": 0.0007346890462046386, + "calibration_in_the_large": -0.0013832071768804302, + "expected_calibration_error_10bin": 0.0013832071768804302, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9964825888146325 + }, + "D68": { + "valid": 2682, + "positives": 63, + "negatives": 2619, + "auroc": 0.8020145820833106, + "auprc": 0.13270242533116577, + "brier": 0.022134990139535647, + "calibration": { + "observed_rate": 0.02348993288590604, + "mean_prediction": 0.009290607344282938, + "calibration_in_the_large": -0.014199325541623103, + "expected_calibration_error_10bin": 0.015545081800452517, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9433696799155822 + }, + "D69": { + "valid": 2586, + "positives": 86, + "negatives": 2500, + "auroc": 0.8372372093023256, + "auprc": 0.2652198745550831, + "brier": 0.028311640743245808, + "calibration": { + "observed_rate": 0.033255993812838364, + "mean_prediction": 0.019882799211020846, + "calibration_in_the_large": -0.013373194601817517, + "expected_calibration_error_10bin": 0.013373194601817512, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9096025325360535 + }, + "D70": { + "valid": 2787, + "positives": 26, + "negatives": 2761, + "auroc": 0.8830830524057616, + "auprc": 0.18321721087901022, + "brier": 0.00863018549937368, + "calibration": { + "observed_rate": 0.009329027628274129, + "mean_prediction": 0.009141560398267514, + "calibration_in_the_large": -0.00018746723000661464, + "expected_calibration_error_10bin": 0.00342564622546893, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "D72": { + "valid": 2595, + "positives": 67, + "negatives": 2528, + "auroc": 0.7140858208955224, + "auprc": 0.06420302728044437, + "brier": 0.024811092939906944, + "calibration": { + "observed_rate": 0.02581888246628131, + "mean_prediction": 0.029908574107040245, + "calibration_in_the_large": 0.004089691640758935, + "expected_calibration_error_10bin": 0.004357469865786692, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9127682026028843 + }, + "D73": { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.8842018196856907, + "auprc": 0.11656804936519931, + "brier": 0.0010441092180187579, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0009081575377929834, + "calibration_in_the_large": -0.00015416540838265414, + "expected_calibration_error_10bin": 0.00015416540838265414, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "D75": { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.9380084895649098, + "auprc": 0.013483461810072853, + "brier": 0.001407389754030795, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0014415358242721435, + "calibration_in_the_large": 2.8607530383058374e-05, + "expected_calibration_error_10bin": 2.8607530383058374e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "D80": { + "valid": 2832, + "positives": 6, + "negatives": 2826, + "auroc": 0.9808917197452229, + "auprc": 0.07418575802908728, + "brier": 0.00209986519287218, + "calibration": { + "observed_rate": 0.00211864406779661, + "mean_prediction": 0.0007858289725286558, + "calibration_in_the_large": -0.0013328150952679543, + "expected_calibration_error_10bin": 0.0014840789608944187, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + "D89": { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.6894179894179894, + "auprc": 0.0074406811240815595, + "brier": 0.0009215902400580201, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0010602972823045614, + "calibration_in_the_large": 0.0003553272435312093, + "expected_calibration_error_10bin": 0.0005593633608871072, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + "E03": { + "valid": 2480, + "positives": 26, + "negatives": 2454, + "auroc": 0.6694094414143313, + "auprc": 0.050368063666782856, + "brier": 0.010310691137480373, + "calibration": { + "observed_rate": 0.010483870967741936, + "mean_prediction": 0.005175004374400633, + "calibration_in_the_large": -0.005308866593341303, + "expected_calibration_error_10bin": 0.005308866593341303, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8723179739711572 + }, + "E04": { + "valid": 2775, + "positives": 11, + "negatives": 2764, + "auroc": 0.6901394553348243, + "auprc": 0.01038480683037434, + "brier": 0.003945919072388425, + "calibration": { + "observed_rate": 0.003963963963963964, + "mean_prediction": 0.0031225422585146032, + "calibration_in_the_large": -0.000841421705449361, + "expected_calibration_error_10bin": 0.000841421705449361, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + "E05": { + "valid": 2806, + "positives": 4, + "negatives": 2802, + "auroc": 0.6517665952890792, + "auprc": 0.003002737239252114, + "brier": 0.0014239531256200321, + "calibration": { + "observed_rate": 0.0014255167498218105, + "mean_prediction": 0.0009171761408607865, + "calibration_in_the_large": -0.000508340608961024, + "expected_calibration_error_10bin": 0.000508340608961024, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "E11": { + "valid": 2194, + "positives": 24, + "negatives": 2170, + "auroc": 0.7881336405529954, + "auprc": 0.05454561391770304, + "brier": 0.010688333257230122, + "calibration": { + "observed_rate": 0.010938924339106655, + "mean_prediction": 0.006193192680050758, + "calibration_in_the_large": -0.004745731659055897, + "expected_calibration_error_10bin": 0.004745731659055897, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7717200140696447 + }, + "E16": { + "valid": 2816, + "positives": 13, + "negatives": 2803, + "auroc": 0.6376684321743187, + "auprc": 0.008754156796364642, + "brier": 0.004612609394956744, + "calibration": { + "observed_rate": 0.004616477272727273, + "mean_prediction": 0.0026030836054767355, + "calibration_in_the_large": -0.0020133936672505374, + "expected_calibration_error_10bin": 0.0020133936672505374, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "E21": { + "valid": 2814, + "positives": 5, + "negatives": 2809, + "auroc": 0.6906372374510502, + "auprc": 0.007554763068783513, + "brier": 0.0017777431576370957, + "calibration": { + "observed_rate": 0.0017768301350390902, + "mean_prediction": 0.0013307206451934673, + "calibration_in_the_large": -0.0004461094898456229, + "expected_calibration_error_10bin": 0.0004461094898456229, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "E22": { + "valid": 2802, + "positives": 9, + "negatives": 2793, + "auroc": 0.8164856585909217, + "auprc": 0.027663949532247146, + "brier": 0.003208811583266112, + "calibration": { + "observed_rate": 0.0032119914346895075, + "mean_prediction": 0.0045094381252969076, + "calibration_in_the_large": 0.0012974466906074, + "expected_calibration_error_10bin": 0.0012974466906074, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "E27": { + "valid": 2811, + "positives": 9, + "negatives": 2802, + "auroc": 0.7812276945039258, + "auprc": 0.015023716239684614, + "brier": 0.003187856781691547, + "calibration": { + "observed_rate": 0.0032017075773745998, + "mean_prediction": 0.0014179819696749235, + "calibration_in_the_large": -0.0017837256076996763, + "expected_calibration_error_10bin": 0.0017837256076996763, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9887442842068238 + }, + "E43": { + "valid": 2748, + "positives": 42, + "negatives": 2706, + "auroc": 0.8337116812726569, + "auprc": 0.06801930170208217, + "brier": 0.01480535864715039, + "calibration": { + "observed_rate": 0.015283842794759825, + "mean_prediction": 0.014853525195237458, + "calibration_in_the_large": -0.000430317599522367, + "expected_calibration_error_10bin": 0.0026500326318205127, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9665845937390081 + }, + "E44": { + "valid": 2800, + "positives": 24, + "negatives": 2776, + "auroc": 0.7504803073967339, + "auprc": 0.03582383547428483, + "brier": 0.008431284097149034, + "calibration": { + "observed_rate": 0.008571428571428572, + "mean_prediction": 0.005396410599847903, + "calibration_in_the_large": -0.003175017971580669, + "expected_calibration_error_10bin": 0.0036618913918021324, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + "E46": { + "valid": 2772, + "positives": 42, + "negatives": 2730, + "auroc": 0.8021978021978022, + "auprc": 0.12093119242392786, + "brier": 0.014387133361549188, + "calibration": { + "observed_rate": 0.015151515151515152, + "mean_prediction": 0.009626642899965406, + "calibration_in_the_large": -0.005524872251549746, + "expected_calibration_error_10bin": 0.006923190573739706, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9750263805838902 + }, + "E53": { + "valid": 2804, + "positives": 11, + "negatives": 2793, + "auroc": 0.652800833251961, + "auprc": 0.006501630556807348, + "brier": 0.003923092181747719, + "calibration": { + "observed_rate": 0.0039229671897289585, + "mean_prediction": 0.0023116320614573822, + "calibration_in_the_large": -0.0016113351282715763, + "expected_calibration_error_10bin": 0.0016113351282715763, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "E55": { + "valid": 2737, + "positives": 30, + "negatives": 2707, + "auroc": 0.6299839921191971, + "auprc": 0.021607038703825302, + "brier": 0.010847989264533332, + "calibration": { + "observed_rate": 0.010960906101571063, + "mean_prediction": 0.007199475708986103, + "calibration_in_the_large": -0.0037614303925849607, + "expected_calibration_error_10bin": 0.003927240344321193, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9627154414351038 + }, + "E66": { + "valid": 2371, + "positives": 42, + "negatives": 2329, + "auroc": 0.7636835756200291, + "auprc": 0.07070940168059724, + "brier": 0.01707458230244352, + "calibration": { + "observed_rate": 0.017714044706874738, + "mean_prediction": 0.012811643918540182, + "calibration_in_the_large": -0.004902400788334555, + "expected_calibration_error_10bin": 0.005864402352514486, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8339781920506507 + }, + "E78": { + "valid": 1572, + "positives": 50, + "negatives": 1522, + "auroc": 0.7257161629434954, + "auprc": 0.13090334852996457, + "brier": 0.029912449679951783, + "calibration": { + "observed_rate": 0.031806615776081425, + "mean_prediction": 0.031094615058718682, + "calibration_in_the_large": -0.000712000717362743, + "expected_calibration_error_10bin": 0.012361857274508118, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5529370383397819 + }, + "E80": { + "valid": 2823, + "positives": 8, + "negatives": 2815, + "auroc": 0.8330373001776199, + "auprc": 0.0195612259005365, + "brier": 0.0028190165677390382, + "calibration": { + "observed_rate": 0.0028338646829613886, + "mean_prediction": 0.0015296840318387405, + "calibration_in_the_large": -0.001304180651122648, + "expected_calibration_error_10bin": 0.001304180651122648, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "E83": { + "valid": 2653, + "positives": 86, + "negatives": 2567, + "auroc": 0.8164448591696034, + "auprc": 0.17326756669363685, + "brier": 0.02933719261961764, + "calibration": { + "observed_rate": 0.03241613267998492, + "mean_prediction": 0.019113079716681927, + "calibration_in_the_large": -0.013303052963302996, + "expected_calibration_error_10bin": 0.014893511480147515, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9331691874780161 + }, + "E86": { + "valid": 2587, + "positives": 97, + "negatives": 2490, + "auroc": 0.7929159938723968, + "auprc": 0.1156953189886249, + "brier": 0.0346388834991399, + "calibration": { + "observed_rate": 0.03749516814843448, + "mean_prediction": 0.03392957382650767, + "calibration_in_the_large": -0.00356559432192681, + "expected_calibration_error_10bin": 0.006527050901751548, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9099542736545903 + }, + "E87": { + "valid": 2185, + "positives": 157, + "negatives": 2028, + "auroc": 0.7902925916154726, + "auprc": 0.2246458291038446, + "brier": 0.06161660256806521, + "calibration": { + "observed_rate": 0.07185354691075514, + "mean_prediction": 0.05100720119199053, + "calibration_in_the_large": -0.020846345718764613, + "expected_calibration_error_10bin": 0.022596896518058053, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.768554344002814 + }, + "E88": { + "valid": 2817, + "positives": 15, + "negatives": 2802, + "auroc": 0.8085177254342136, + "auprc": 0.11125840553875185, + "brier": 0.005073083413280319, + "calibration": { + "observed_rate": 0.005324813631522897, + "mean_prediction": 0.003570389935938175, + "calibration_in_the_large": -0.001754423695584722, + "expected_calibration_error_10bin": 0.0019015285936576358, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "E89": { + "valid": 2780, + "positives": 8, + "negatives": 2772, + "auroc": 0.5597943722943723, + "auprc": 0.005595662675715975, + "brier": 0.002872245987259916, + "calibration": { + "observed_rate": 0.0028776978417266188, + "mean_prediction": 0.001892285556970047, + "calibration_in_the_large": -0.0009854122847565718, + "expected_calibration_error_10bin": 0.0009854122847565718, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + "F02": { + "valid": 2802, + "positives": 4, + "negatives": 2798, + "auroc": 0.8081665475339528, + "auprc": 0.010872210730299859, + "brier": 0.0015104734841542215, + "calibration": { + "observed_rate": 0.0014275517487508922, + "mean_prediction": 0.003238195074502497, + "calibration_in_the_large": 0.001810643325751605, + "expected_calibration_error_10bin": 0.0018106433257516047, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "F03": { + "valid": 2739, + "positives": 18, + "negatives": 2721, + "auroc": 0.8938707174649843, + "auprc": 0.0455438747081825, + "brier": 0.006483354305212317, + "calibration": { + "observed_rate": 0.0065717415115005475, + "mean_prediction": 0.006862073022956927, + "calibration_in_the_large": 0.00029033151145637943, + "expected_calibration_error_10bin": 0.0016541039898250503, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + "F05": { + "valid": 2750, + "positives": 32, + "negatives": 2718, + "auroc": 0.7561971118469463, + "auprc": 0.030246853557066546, + "brier": 0.011474737007008, + "calibration": { + "observed_rate": 0.011636363636363636, + "mean_prediction": 0.008971322613800443, + "calibration_in_the_large": -0.0026650410225631926, + "expected_calibration_error_10bin": 0.0032483000469665057, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + "F06": { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.613588110403397, + "auprc": 0.0014500601560121845, + "brier": 0.0007181293868352781, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.0019974333006511956, + "calibration_in_the_large": 0.0012902197221504883, + "expected_calibration_error_10bin": 0.0012902197221504883, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "F10": { + "valid": 2560, + "positives": 17, + "negatives": 2543, + "auroc": 0.7889246142814185, + "auprc": 0.11811546642087078, + "brier": 0.006352605036202927, + "calibration": { + "observed_rate": 0.006640625, + "mean_prediction": 0.004383601272863302, + "calibration_in_the_large": -0.0022570237271366976, + "expected_calibration_error_10bin": 0.002257023727136697, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + "F11": { + "valid": 2741, + "positives": 11, + "negatives": 2730, + "auroc": 0.8648684648684649, + "auprc": 0.03706373420958137, + "brier": 0.003951164666283196, + "calibration": { + "observed_rate": 0.004013133892739876, + "mean_prediction": 0.003168898744166025, + "calibration_in_the_large": -0.0008442351485738512, + "expected_calibration_error_10bin": 0.0009302018448033313, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + "F12": { + "valid": 2777, + "positives": 13, + "negatives": 2764, + "auroc": 0.9109150617833686, + "auprc": 0.030488263543186397, + "brier": 0.004629699665167155, + "calibration": { + "observed_rate": 0.004681310767014764, + "mean_prediction": 0.0021304376816947087, + "calibration_in_the_large": -0.0025508730853200557, + "expected_calibration_error_10bin": 0.0025508730853200557, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + "F14": { + "valid": 2787, + "positives": 10, + "negatives": 2777, + "auroc": 0.9276557436082103, + "auprc": 0.04018209062285767, + "brier": 0.0035558409112564143, + "calibration": { + "observed_rate": 0.003588087549336204, + "mean_prediction": 0.0018039662817757182, + "calibration_in_the_large": -0.0017841212675604858, + "expected_calibration_error_10bin": 0.0021349352100002465, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "F15": { + "valid": 2823, + "positives": 8, + "negatives": 2815, + "auroc": 0.9541296625222024, + "auprc": 0.2071448684379974, + "brier": 0.00270515029377027, + "calibration": { + "observed_rate": 0.0028338646829613886, + "mean_prediction": 0.0014699099509433915, + "calibration_in_the_large": -0.0013639547320179971, + "expected_calibration_error_10bin": 0.0013639547320179971, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "F17": { + "valid": 2426, + "positives": 33, + "negatives": 2393, + "auroc": 0.8774455799111044, + "auprc": 0.08337262341524546, + "brier": 0.013062344857953623, + "calibration": { + "observed_rate": 0.013602638087386645, + "mean_prediction": 0.008239944823389921, + "calibration_in_the_large": -0.005362693263996724, + "expected_calibration_error_10bin": 0.0055485800166709546, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8533239535701723 + }, + "F19": { + "valid": 2801, + "positives": 13, + "negatives": 2788, + "auroc": 0.9350513188389803, + "auprc": 0.17803428774064434, + "brier": 0.00430897512562989, + "calibration": { + "observed_rate": 0.0046411995715815784, + "mean_prediction": 0.0032743843450604923, + "calibration_in_the_large": -0.0013668152265210861, + "expected_calibration_error_10bin": 0.0015391048568587256, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "F20": { + "valid": 2808, + "positives": 4, + "negatives": 2804, + "auroc": 0.8453994293865906, + "auprc": 0.013320580694564465, + "brier": 0.0014205437279449728, + "calibration": { + "observed_rate": 0.0014245014245014246, + "mean_prediction": 0.001365016382681686, + "calibration_in_the_large": -5.948504181973861e-05, + "expected_calibration_error_10bin": 5.948504181973861e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9876890608512136 + }, + "F22": { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.926950354609929, + "auprc": 0.004830917874396135, + "brier": 0.0003809322145939821, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0022510230020388296, + "calibration_in_the_large": 0.0018965387765868622, + "expected_calibration_error_10bin": 0.0018965387765868622, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "F25": { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.8432765151515151, + "auprc": 0.009077811508720097, + "brier": 0.0010736874092504792, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.001473918669302362, + "calibration_in_the_large": 0.00040971150364078, + "expected_calibration_error_10bin": 0.00040971150364078, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "F29": { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.8151804860614725, + "auprc": 0.017742949240171675, + "brier": 0.0028356236290633294, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.001083891503871938, + "calibration_in_the_large": -0.001767141995771683, + "expected_calibration_error_10bin": 0.001767141995771683, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "F31": { + "valid": 2724, + "positives": 9, + "negatives": 2715, + "auroc": 0.9220380601596071, + "auprc": 0.035020089751573724, + "brier": 0.0032427697176383454, + "calibration": { + "observed_rate": 0.003303964757709251, + "mean_prediction": 0.003374975118495806, + "calibration_in_the_large": 7.101036078655497e-05, + "expected_calibration_error_10bin": 7.101036078655497e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9581428068941259 + }, + "F32": { + "valid": 2200, + "positives": 72, + "negatives": 2128, + "auroc": 0.6888640873015873, + "auprc": 0.0685987590697164, + "brier": 0.03156528892683193, + "calibration": { + "observed_rate": 0.03272727272727273, + "mean_prediction": 0.027364625403636388, + "calibration_in_the_large": -0.005362647323636342, + "expected_calibration_error_10bin": 0.009481722467515446, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7738304607808653 + }, + "F33": { + "valid": 2800, + "positives": 12, + "negatives": 2788, + "auroc": 0.8410748445719751, + "auprc": 0.022642887836617377, + "brier": 0.0043113424516648775, + "calibration": { + "observed_rate": 0.004285714285714286, + "mean_prediction": 0.004508895076201692, + "calibration_in_the_large": 0.00022318079048740634, + "expected_calibration_error_10bin": 0.0005094983690261354, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + "F39": { + "valid": 2801, + "positives": 11, + "negatives": 2790, + "auroc": 0.7037797328119909, + "auprc": 0.023064552060905887, + "brier": 0.003891258114101535, + "calibration": { + "observed_rate": 0.003927168868261335, + "mean_prediction": 0.0020289900786961074, + "calibration_in_the_large": -0.0018981787895652278, + "expected_calibration_error_10bin": 0.0018981787895652278, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "F41": { + "valid": 2247, + "positives": 80, + "negatives": 2167, + "auroc": 0.7329257037378865, + "auprc": 0.09420440055984215, + "brier": 0.03365665473866417, + "calibration": { + "observed_rate": 0.035603026257231864, + "mean_prediction": 0.03402464826593178, + "calibration_in_the_large": -0.0015783779913000826, + "expected_calibration_error_10bin": 0.0065247758615883875, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7903622933520928 + }, + "F43": { + "valid": 2734, + "positives": 20, + "negatives": 2714, + "auroc": 0.7483971997052321, + "auprc": 0.028708376209623687, + "brier": 0.007269189465053304, + "calibration": { + "observed_rate": 0.0073152889539136795, + "mean_prediction": 0.006937395951068697, + "calibration_in_the_large": -0.00037789300284498274, + "expected_calibration_error_10bin": 0.0010074916224044107, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "F60": { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.9452939781887151, + "auprc": 0.09565512587113821, + "brier": 0.0020373982365895706, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.003339735646510413, + "calibration_in_the_large": 0.001210566022663713, + "expected_calibration_error_10bin": 0.0012105660226637133, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "F90": { + "valid": 2775, + "positives": 8, + "negatives": 2767, + "auroc": 0.906035417419588, + "auprc": 0.03676148792915902, + "brier": 0.00283792907986853, + "calibration": { + "observed_rate": 0.002882882882882883, + "mean_prediction": 0.003309416774937491, + "calibration_in_the_large": 0.0004265338920546079, + "expected_calibration_error_10bin": 0.0004265338920546079, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + "G25": { + "valid": 2774, + "positives": 8, + "negatives": 2766, + "auroc": 0.7292570498915402, + "auprc": 0.006642861523796685, + "brier": 0.002884649196106699, + "calibration": { + "observed_rate": 0.002883922134102379, + "mean_prediction": 0.0032825499481452134, + "calibration_in_the_large": 0.00039862781404283436, + "expected_calibration_error_10bin": 0.00039862781404283436, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "G31": { + "valid": 2802, + "positives": 9, + "negatives": 2793, + "auroc": 0.7861717786529817, + "auprc": 0.016451493471270912, + "brier": 0.0032070275494100373, + "calibration": { + "observed_rate": 0.0032119914346895075, + "mean_prediction": 0.0027700254594437905, + "calibration_in_the_large": -0.000441965975245717, + "expected_calibration_error_10bin": 0.0005906613230670637, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "G40": { + "valid": 2723, + "positives": 24, + "negatives": 2699, + "auroc": 0.7102167469433124, + "auprc": 0.04084537785025705, + "brier": 0.008753071787513313, + "calibration": { + "observed_rate": 0.008813808299669483, + "mean_prediction": 0.007174190088508323, + "calibration_in_the_large": -0.0016396182111611604, + "expected_calibration_error_10bin": 0.0025205632705413558, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + "G43": { + "valid": 2725, + "positives": 15, + "negatives": 2710, + "auroc": 0.7580319803198032, + "auprc": 0.03603604874147774, + "brier": 0.005434659666013713, + "calibration": { + "observed_rate": 0.005504587155963303, + "mean_prediction": 0.003315662029647875, + "calibration_in_the_large": -0.002188925126315428, + "expected_calibration_error_10bin": 0.002188925126315428, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9584945480126627 + }, + "G44": { + "valid": 2805, + "positives": 7, + "negatives": 2798, + "auroc": 0.5956805881752272, + "auprc": 0.01182187489170317, + "brier": 0.002491078671692155, + "calibration": { + "observed_rate": 0.0024955436720142605, + "mean_prediction": 0.0014319341973847086, + "calibration_in_the_large": -0.0010636094746295519, + "expected_calibration_error_10bin": 0.0010636094746295519, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "G47": { + "valid": 2315, + "positives": 89, + "negatives": 2226, + "auroc": 0.6761056765296748, + "auprc": 0.07666939274945393, + "brier": 0.036492335966495586, + "calibration": { + "observed_rate": 0.03844492440604751, + "mean_prediction": 0.03315245885226964, + "calibration_in_the_large": -0.005292465553777874, + "expected_calibration_error_10bin": 0.007257016809238824, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8142806894125924 + }, + "G51": { + "valid": 2834, + "positives": 0, + "negatives": 2834, + "auroc": null, + "auprc": null, + "brier": 5.678421189792863e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0006243199667851122, + "calibration_in_the_large": 0.0006243199667851122, + "expected_calibration_error_10bin": 0.0006243199667851122, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9968343299331692 + }, + "G62": { + "valid": 2751, + "positives": 36, + "negatives": 2715, + "auroc": 0.8102414569265398, + "auprc": 0.10161105182275823, + "brier": 0.012477499286082402, + "calibration": { + "observed_rate": 0.013086150490730643, + "mean_prediction": 0.007991311191099061, + "calibration_in_the_large": -0.005094839299631582, + "expected_calibration_error_10bin": 0.006195961239797178, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "G81": { + "valid": 2789, + "positives": 15, + "negatives": 2774, + "auroc": 0.7264359528959384, + "auprc": 0.044352901671913046, + "brier": 0.005299766466635288, + "calibration": { + "observed_rate": 0.005378271782000717, + "mean_prediction": 0.0039241649194421925, + "calibration_in_the_large": -0.0014541068625585248, + "expected_calibration_error_10bin": 0.001557883988116458, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "G83": { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.6248375280633345, + "auprc": 0.005405142731371046, + "brier": 0.00106424455047898, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0014213351623431417, + "calibration_in_the_large": 0.00035901221616750417, + "expected_calibration_error_10bin": 0.00035901221616750417, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "G89": { + "valid": 2537, + "positives": 70, + "negatives": 2467, + "auroc": 0.7646418437662864, + "auprc": 0.10066796342075038, + "brier": 0.025974142360609267, + "calibration": { + "observed_rate": 0.027591643673630272, + "mean_prediction": 0.018814038102407483, + "calibration_in_the_large": -0.008777605571222789, + "expected_calibration_error_10bin": 0.00902868977317988, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8923672177277524 + }, + "G90": { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 1.7183636834524752e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.001957629019227677, + "calibration_in_the_large": 0.001957629019227677, + "expected_calibration_error_10bin": 0.001957629019227677, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "G92": { + "valid": 2733, + "positives": 47, + "negatives": 2686, + "auroc": 0.7819346968520777, + "auprc": 0.0513342423980115, + "brier": 0.016679725953073075, + "calibration": { + "observed_rate": 0.017197219173069888, + "mean_prediction": 0.014558288940361357, + "calibration_in_the_large": -0.0026389302327085307, + "expected_calibration_error_10bin": 0.0034812814687657768, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + "G93": { + "valid": 2656, + "positives": 56, + "negatives": 2600, + "auroc": 0.7972321428571428, + "auprc": 0.07114024218294343, + "brier": 0.020142161612839667, + "calibration": { + "observed_rate": 0.02108433734939759, + "mean_prediction": 0.015307136457884181, + "calibration_in_the_large": -0.005777200891513408, + "expected_calibration_error_10bin": 0.005777200891513409, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9342244108336265 + }, + "G99": { + "valid": 2841, + "positives": 1, + "negatives": 2840, + "auroc": 0.4214788732394366, + "auprc": 0.0006082725060827251, + "brier": 0.0003542269554613215, + "calibration": { + "observed_rate": 0.00035198873636043646, + "mean_prediction": 0.0005099258661252065, + "calibration_in_the_large": 0.00015793712976477009, + "expected_calibration_error_10bin": 0.00015793712976477009, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9992965177629265 + }, + "H10": { + "valid": 2832, + "positives": 6, + "negatives": 2826, + "auroc": 0.7515923566878981, + "auprc": 0.00665451540279536, + "brier": 0.0021132250855229098, + "calibration": { + "observed_rate": 0.00211864406779661, + "mean_prediction": 0.0010681579961336388, + "calibration_in_the_large": -0.0010504860716629713, + "expected_calibration_error_10bin": 0.0010504860716629713, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + "H26": { + "valid": 2819, + "positives": 0, + "negatives": 2819, + "auroc": null, + "auprc": null, + "brier": 1.841983482366457e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0021690163563728875, + "calibration_in_the_large": 0.0021690163563728875, + "expected_calibration_error_10bin": 0.0021690163563728875, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "H35": { + "valid": 2806, + "positives": 6, + "negatives": 2800, + "auroc": 0.74125, + "auprc": 0.007099728148179941, + "brier": 0.0021330456759640123, + "calibration": { + "observed_rate": 0.0021382751247327157, + "mean_prediction": 0.001475008683864262, + "calibration_in_the_large": -0.0006632664408684538, + "expected_calibration_error_10bin": 0.0006632664408684538, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "H40": { + "valid": 2750, + "positives": 12, + "negatives": 2738, + "auroc": 0.7184989043097151, + "auprc": 0.02406980549349133, + "brier": 0.00432630997563973, + "calibration": { + "observed_rate": 0.004363636363636364, + "mean_prediction": 0.004317494058290322, + "calibration_in_the_large": -4.614230534604174e-05, + "expected_calibration_error_10bin": 4.614230534604174e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + "H53": { + "valid": 2790, + "positives": 14, + "negatives": 2776, + "auroc": 0.5593608480856319, + "auprc": 0.011842101006515799, + "brier": 0.005021384609748656, + "calibration": { + "observed_rate": 0.005017921146953405, + "mean_prediction": 0.006038387567384876, + "calibration_in_the_large": 0.0010204664204314711, + "expected_calibration_error_10bin": 0.0010204664204314714, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + "H54": { + "valid": 2809, + "positives": 4, + "negatives": 2805, + "auroc": 0.46078431372549017, + "auprc": 0.0015857167972719956, + "brier": 0.001428919782388013, + "calibration": { + "observed_rate": 0.001423994304022784, + "mean_prediction": 0.0014018711972694363, + "calibration_in_the_large": -2.2123106753347676e-05, + "expected_calibration_error_10bin": 2.2123106753347676e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "H91": { + "valid": 2791, + "positives": 7, + "negatives": 2784, + "auroc": 0.8129618226600985, + "auprc": 0.02012665905010633, + "brier": 0.0024867570564862693, + "calibration": { + "observed_rate": 0.0025080616266571123, + "mean_prediction": 0.0023516879159240453, + "calibration_in_the_large": -0.00015637371073306703, + "expected_calibration_error_10bin": 0.00015637371073306703, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9817094618360886 + }, + "I07": { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.8461720506448941, + "auprc": 0.012290062387381782, + "brier": 0.002115708080402413, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0012631244693360702, + "calibration_in_the_large": -0.0008622740428849711, + "expected_calibration_error_10bin": 0.0008622740428849711, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "I08": { + "valid": 2767, + "positives": 13, + "negatives": 2754, + "auroc": 0.8583040053628289, + "auprc": 0.025259114452599044, + "brier": 0.004732553676190619, + "calibration": { + "observed_rate": 0.0046982291290206, + "mean_prediction": 0.00528329487379842, + "calibration_in_the_large": 0.0005850657447778202, + "expected_calibration_error_10bin": 0.000836354481303777, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9732676749912065 + }, + "I10": { + "valid": 1498, + "positives": 43, + "negatives": 1455, + "auroc": 0.6887397107008711, + "auprc": 0.06266216137939452, + "brier": 0.027659988913947324, + "calibration": { + "observed_rate": 0.02870493991989319, + "mean_prediction": 0.024969447538591125, + "calibration_in_the_large": -0.0037354923813020663, + "expected_calibration_error_10bin": 0.0046283828717244855, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5269081955680619 + }, + "I11": { + "valid": 2676, + "positives": 57, + "negatives": 2619, + "auroc": 0.8048806629020049, + "auprc": 0.07957416539330266, + "brier": 0.020375106704971568, + "calibration": { + "observed_rate": 0.021300448430493273, + "mean_prediction": 0.016452141198418615, + "calibration_in_the_large": -0.004848307232074658, + "expected_calibration_error_10bin": 0.007929851524733805, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9412592332043616 + }, + "I12": { + "valid": 2552, + "positives": 30, + "negatives": 2522, + "auroc": 0.8380782447792757, + "auprc": 0.09387541554409086, + "brier": 0.011294906102802222, + "calibration": { + "observed_rate": 0.011755485893416929, + "mean_prediction": 0.011230558811796578, + "calibration_in_the_large": -0.0005249270816203508, + "expected_calibration_error_10bin": 0.00349489870894433, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8976433345058037 + }, + "I13": { + "valid": 2727, + "positives": 31, + "negatives": 2696, + "auroc": 0.9106442040777256, + "auprc": 0.21405265369077203, + "brier": 0.009952164019878364, + "calibration": { + "observed_rate": 0.011367803447011368, + "mean_prediction": 0.01375482844110814, + "calibration_in_the_large": 0.0023870249940967717, + "expected_calibration_error_10bin": 0.0033709354331785267, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9591980302497362 + }, + "I16": { + "valid": 2390, + "positives": 13, + "negatives": 2377, + "auroc": 0.8889679945632828, + "auprc": 0.037119341324890295, + "brier": 0.005338554955855852, + "calibration": { + "observed_rate": 0.005439330543933054, + "mean_prediction": 0.004492015546366324, + "calibration_in_the_large": -0.0009473149975667301, + "expected_calibration_error_10bin": 0.0010344244737699306, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8406612733028491 + }, + "I21": { + "valid": 2671, + "positives": 23, + "negatives": 2648, + "auroc": 0.8182221200577958, + "auprc": 0.033845765012558746, + "brier": 0.00860276987664962, + "calibration": { + "observed_rate": 0.008611007113440658, + "mean_prediction": 0.014162036409880164, + "calibration_in_the_large": 0.005551029296439506, + "expected_calibration_error_10bin": 0.0055510292964395065, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + "I24": { + "valid": 2809, + "positives": 10, + "negatives": 2799, + "auroc": 0.8895677027509825, + "auprc": 0.026905465359018655, + "brier": 0.0035152176336652016, + "calibration": { + "observed_rate": 0.00355998576005696, + "mean_prediction": 0.003352502793757791, + "calibration_in_the_large": -0.00020748296629916887, + "expected_calibration_error_10bin": 0.00020748296629916887, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "I25": { + "valid": 2243, + "positives": 46, + "negatives": 2197, + "auroc": 0.8343986859551562, + "auprc": 0.08850277079982947, + "brier": 0.01949861317346248, + "calibration": { + "observed_rate": 0.02050824788230049, + "mean_prediction": 0.014629307314041572, + "calibration_in_the_large": -0.005878940568258918, + "expected_calibration_error_10bin": 0.006659561315407192, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7889553288779458 + }, + "I26": { + "valid": 2760, + "positives": 20, + "negatives": 2740, + "auroc": 0.7531569343065694, + "auprc": 0.13365005561062376, + "brier": 0.006882732772162676, + "calibration": { + "observed_rate": 0.007246376811594203, + "mean_prediction": 0.00981062650626236, + "calibration_in_the_large": 0.0025642496946681565, + "expected_calibration_error_10bin": 0.003430111257599175, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9708054871614492 + }, + "I27": { + "valid": 2716, + "positives": 38, + "negatives": 2678, + "auroc": 0.847588538186392, + "auprc": 0.07172852943435315, + "brier": 0.013512161165660288, + "calibration": { + "observed_rate": 0.013991163475699559, + "mean_prediction": 0.009515442950629994, + "calibration_in_the_large": -0.004475720525069565, + "expected_calibration_error_10bin": 0.006025172497738849, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + "I31": { + "valid": 2793, + "positives": 17, + "negatives": 2776, + "auroc": 0.7643456518053907, + "auprc": 0.017396167260410125, + "brier": 0.0060505816416276574, + "calibration": { + "observed_rate": 0.006086645184389545, + "mean_prediction": 0.0037584823537164195, + "calibration_in_the_large": -0.0023281628306731257, + "expected_calibration_error_10bin": 0.00240084092625987, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "I34": { + "valid": 2753, + "positives": 19, + "negatives": 2734, + "auroc": 0.747083509798637, + "auprc": 0.01631344811158617, + "brier": 0.00710551410304809, + "calibration": { + "observed_rate": 0.006901561932437341, + "mean_prediction": 0.009014723556713058, + "calibration_in_the_large": 0.0021131616242757167, + "expected_calibration_error_10bin": 0.0021131616242757167, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9683432993316918 + }, + "I35": { + "valid": 2723, + "positives": 7, + "negatives": 2716, + "auroc": 0.6356511676835682, + "auprc": 0.00699378756368456, + "brier": 0.002605532462790047, + "calibration": { + "observed_rate": 0.002570694087403599, + "mean_prediction": 0.0037963903281014676, + "calibration_in_the_large": 0.0012256962406978688, + "expected_calibration_error_10bin": 0.0012256962406978688, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + "I42": { + "valid": 2740, + "positives": 14, + "negatives": 2726, + "auroc": 0.9205534011109947, + "auprc": 0.04298845172520421, + "brier": 0.005003114621395759, + "calibration": { + "observed_rate": 0.0051094890510948905, + "mean_prediction": 0.004722270607619504, + "calibration_in_the_large": -0.00038721844347538656, + "expected_calibration_error_10bin": 0.0005886624830725149, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + "I44": { + "valid": 2722, + "positives": 24, + "negatives": 2698, + "auroc": 0.7983228317272053, + "auprc": 0.03967561904413051, + "brier": 0.008632384339596053, + "calibration": { + "observed_rate": 0.00881704628949302, + "mean_prediction": 0.0060816523770302385, + "calibration_in_the_large": -0.0027353939124627816, + "expected_calibration_error_10bin": 0.00281828515802903, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9574393246570524 + }, + "I45": { + "valid": 2766, + "positives": 22, + "negatives": 2744, + "auroc": 0.6733534322820037, + "auprc": 0.01457105965226292, + "brier": 0.007899994320759659, + "calibration": { + "observed_rate": 0.007953723788864787, + "mean_prediction": 0.006113162893006339, + "calibration_in_the_large": -0.001840560895858448, + "expected_calibration_error_10bin": 0.001840560895858448, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9729159338726697 + }, + "I46": { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.7970983722576079, + "auprc": 0.008548988068447198, + "brier": 0.0017601801435372668, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.0011060842280930143, + "calibration_in_the_large": -0.000660076139268342, + "expected_calibration_error_10bin": 0.000660076139268342, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "I47": { + "valid": 2716, + "positives": 19, + "negatives": 2697, + "auroc": 0.6143278106277931, + "auprc": 0.009674739169498629, + "brier": 0.007059047657570188, + "calibration": { + "observed_rate": 0.006995581737849779, + "mean_prediction": 0.009740220827478878, + "calibration_in_the_large": 0.0027446390896290985, + "expected_calibration_error_10bin": 0.0027446390896290985, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + "I48": { + "valid": 2385, + "positives": 32, + "negatives": 2353, + "auroc": 0.741061942201445, + "auprc": 0.03478023902319937, + "brier": 0.013878257202827992, + "calibration": { + "observed_rate": 0.013417190775681341, + "mean_prediction": 0.019962186497084783, + "calibration_in_the_large": 0.006544995721403442, + "expected_calibration_error_10bin": 0.00654499572140344, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8389025677101654 + }, + "I49": { + "valid": 2734, + "positives": 19, + "negatives": 2715, + "auroc": 0.673703596006591, + "auprc": 0.01960197195101293, + "brier": 0.0068931935042981975, + "calibration": { + "observed_rate": 0.006949524506217996, + "mean_prediction": 0.005071697429884648, + "calibration_in_the_large": -0.001877827076333348, + "expected_calibration_error_10bin": 0.001877827076333348, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "I50": { + "valid": 2415, + "positives": 52, + "negatives": 2363, + "auroc": 0.8180035157394446, + "auprc": 0.09584758406215206, + "brier": 0.020836494298051744, + "calibration": { + "observed_rate": 0.021532091097308487, + "mean_prediction": 0.022129604875319904, + "calibration_in_the_large": 0.0005975137780114166, + "expected_calibration_error_10bin": 0.004840694968602508, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.849454801266268 + }, + "I51": { + "valid": 2807, + "positives": 10, + "negatives": 2797, + "auroc": 0.7920986771540937, + "auprc": 0.112003671765874, + "brier": 0.003509070908183086, + "calibration": { + "observed_rate": 0.003562522265764161, + "mean_prediction": 0.002585253240790584, + "calibration_in_the_large": -0.0009772690249735768, + "expected_calibration_error_10bin": 0.0009772690249735768, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "I61": { + "valid": 2802, + "positives": 9, + "negatives": 2793, + "auroc": 0.839161395552373, + "auprc": 0.016063121449044544, + "brier": 0.0031920869539433026, + "calibration": { + "observed_rate": 0.0032119914346895075, + "mean_prediction": 0.0024072020576696206, + "calibration_in_the_large": -0.0008047893770198869, + "expected_calibration_error_10bin": 0.0008047893770198869, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "I63": { + "valid": 2735, + "positives": 16, + "negatives": 2719, + "auroc": 0.7067625965428467, + "auprc": 0.014427227133490813, + "brier": 0.0058269101604874985, + "calibration": { + "observed_rate": 0.005850091407678245, + "mean_prediction": 0.00526837127214473, + "calibration_in_the_large": -0.000581720135533515, + "expected_calibration_error_10bin": 0.000581720135533515, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9620119591980303 + }, + "I65": { + "valid": 2774, + "positives": 6, + "negatives": 2768, + "auroc": 0.7166425818882466, + "auprc": 0.00822547856777683, + "brier": 0.002211777626637214, + "calibration": { + "observed_rate": 0.0021629416005767843, + "mean_prediction": 0.0058613890883408275, + "calibration_in_the_large": 0.0036984474877640432, + "expected_calibration_error_10bin": 0.0036984474877640432, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "I67": { + "valid": 2773, + "positives": 5, + "negatives": 2768, + "auroc": 0.7976156069364162, + "auprc": 0.006401491411346115, + "brier": 0.0018451640646491687, + "calibration": { + "observed_rate": 0.0018031013342949874, + "mean_prediction": 0.003795260629153176, + "calibration_in_the_large": 0.0019921592948581885, + "expected_calibration_error_10bin": 0.0019921592948581885, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + "I69": { + "valid": 2752, + "positives": 19, + "negatives": 2733, + "auroc": 0.7548866678221349, + "auprc": 0.02692754317146667, + "brier": 0.006841016491999985, + "calibration": { + "observed_rate": 0.006904069767441861, + "mean_prediction": 0.0062350398348607495, + "calibration_in_the_large": -0.0006690299325811111, + "expected_calibration_error_10bin": 0.0012160420193655346, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9679915582131551 + }, + "I70": { + "valid": 2771, + "positives": 12, + "negatives": 2759, + "auroc": 0.8241210583544762, + "auprc": 0.041335502211905704, + "brier": 0.004268721739763721, + "calibration": { + "observed_rate": 0.004330566582461205, + "mean_prediction": 0.0043816680075928, + "calibration_in_the_large": 5.1101425131594436e-05, + "expected_calibration_error_10bin": 0.0004493290518737628, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9746746394653535 + }, + "I71": { + "valid": 2769, + "positives": 5, + "negatives": 2764, + "auroc": 0.7310419681620839, + "auprc": 0.010440547214667247, + "brier": 0.0018156734139374204, + "calibration": { + "observed_rate": 0.0018057060310581437, + "mean_prediction": 0.003968467439294762, + "calibration_in_the_large": 0.002162761408236618, + "expected_calibration_error_10bin": 0.002162761408236618, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.97397115722828 + }, + "I72": { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.7089853010905642, + "auprc": 0.010813276419386196, + "brier": 0.00212253990916288, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.001986772627305349, + "calibration_in_the_large": -0.00014239699654135067, + "expected_calibration_error_10bin": 0.00014239699654135067, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "I73": { + "valid": 2734, + "positives": 10, + "negatives": 2724, + "auroc": 0.865014684287812, + "auprc": 0.10934354163030684, + "brier": 0.003491418236703848, + "calibration": { + "observed_rate": 0.0036576444769568397, + "mean_prediction": 0.006152796628754834, + "calibration_in_the_large": 0.0024951521517979944, + "expected_calibration_error_10bin": 0.0028742215051339457, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "I74": { + "valid": 2821, + "positives": 5, + "negatives": 2816, + "auroc": 0.7808238636363637, + "auprc": 0.011905850015860742, + "brier": 0.0017646813533406082, + "calibration": { + "observed_rate": 0.001772421127259837, + "mean_prediction": 0.0012270248753476645, + "calibration_in_the_large": -0.0005453962519121724, + "expected_calibration_error_10bin": 0.0005453962519121724, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "I77": { + "valid": 2785, + "positives": 6, + "negatives": 2779, + "auroc": 0.6436367998080844, + "auprc": 0.00611674803290068, + "brier": 0.0021626601743300645, + "calibration": { + "observed_rate": 0.0021543985637342907, + "mean_prediction": 0.0032880594380080203, + "calibration_in_the_large": 0.0011336608742737297, + "expected_calibration_error_10bin": 0.0011336608742737297, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "I80": { + "valid": 2827, + "positives": 5, + "negatives": 2822, + "auroc": 0.9202693125442948, + "auprc": 0.050592262093677585, + "brier": 0.0017453413109646259, + "calibration": { + "observed_rate": 0.0017686593562079944, + "mean_prediction": 0.0012221906214970016, + "calibration_in_the_large": -0.0005464687347109928, + "expected_calibration_error_10bin": 0.0005464687347109928, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "I81": { + "valid": 2826, + "positives": 9, + "negatives": 2817, + "auroc": 0.8314992308602532, + "auprc": 0.03637323416051838, + "brier": 0.0032086379544618336, + "calibration": { + "observed_rate": 0.0031847133757961785, + "mean_prediction": 0.0021021099434519416, + "calibration_in_the_large": -0.001082603432344237, + "expected_calibration_error_10bin": 0.002379045853596291, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "I82": { + "valid": 2739, + "positives": 35, + "negatives": 2704, + "auroc": 0.7573858833474219, + "auprc": 0.043833173936351354, + "brier": 0.012476448967385406, + "calibration": { + "observed_rate": 0.012778386272362175, + "mean_prediction": 0.009969279975497309, + "calibration_in_the_large": -0.0028091062968648665, + "expected_calibration_error_10bin": 0.00441931071654025, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + "I85": { + "valid": 2793, + "positives": 9, + "negatives": 2784, + "auroc": 0.9890644955300127, + "auprc": 0.3087503480924534, + "brier": 0.00283851991186401, + "calibration": { + "observed_rate": 0.00322234156820623, + "mean_prediction": 0.00168286615334174, + "calibration_in_the_large": -0.00153947541486449, + "expected_calibration_error_10bin": 0.0022446215439198337, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "I87": { + "valid": 2780, + "positives": 13, + "negatives": 2767, + "auroc": 0.6993967362597648, + "auprc": 0.012861938102303044, + "brier": 0.004655202863918459, + "calibration": { + "observed_rate": 0.004676258992805755, + "mean_prediction": 0.003412517686219806, + "calibration_in_the_large": -0.001263741306585949, + "expected_calibration_error_10bin": 0.001263741306585949, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + "I89": { + "valid": 2826, + "positives": 5, + "negatives": 2821, + "auroc": 0.8484934420418292, + "auprc": 0.006798886494641165, + "brier": 0.0017650927166239282, + "calibration": { + "observed_rate": 0.0017692852087756545, + "mean_prediction": 0.0010779234210956746, + "calibration_in_the_large": -0.00069136178767998, + "expected_calibration_error_10bin": 0.00069136178767998, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "I95": { + "valid": 2485, + "positives": 103, + "negatives": 2382, + "auroc": 0.7412062964140438, + "auprc": 0.10293785530010273, + "brier": 0.03858358505459184, + "calibration": { + "observed_rate": 0.04144869215291751, + "mean_prediction": 0.034340832363326905, + "calibration_in_the_large": -0.007107859789590602, + "expected_calibration_error_10bin": 0.007606046552014665, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.874076679563841 + }, + "I96": { + "valid": 2831, + "positives": 6, + "negatives": 2825, + "auroc": 0.8153392330383481, + "auprc": 0.1896661053019436, + "brier": 0.0020662343245997643, + "calibration": { + "observed_rate": 0.0021193924408336277, + "mean_prediction": 0.0020275766470847817, + "calibration_in_the_large": -9.181579374884603e-05, + "expected_calibration_error_10bin": 9.181579374884603e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "I97": { + "valid": 2740, + "positives": 11, + "negatives": 2729, + "auroc": 0.7168126852993104, + "auprc": 0.010474117092684926, + "brier": 0.004016780098433809, + "calibration": { + "observed_rate": 0.0040145985401459855, + "mean_prediction": 0.004666692994273247, + "calibration_in_the_large": 0.0006520944541272616, + "expected_calibration_error_10bin": 0.0006520944541272625, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + "J02": { + "valid": 2825, + "positives": 3, + "negatives": 2822, + "auroc": 0.8351051263879046, + "auprc": 0.004698834080913642, + "brier": 0.0010808158024749376, + "calibration": { + "observed_rate": 0.0010619469026548673, + "mean_prediction": 0.001643563689511018, + "calibration_in_the_large": 0.0005816167868561506, + "expected_calibration_error_10bin": 0.0005816167868561506, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J06": { + "valid": 2816, + "positives": 12, + "negatives": 2804, + "auroc": 0.6362933903946743, + "auprc": 0.011274784778335547, + "brier": 0.004302193228708392, + "calibration": { + "observed_rate": 0.004261363636363636, + "mean_prediction": 0.003700647806319714, + "calibration_in_the_large": -0.0005607158300439219, + "expected_calibration_error_10bin": 0.000933109553536518, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "J12": { + "valid": 2829, + "positives": 1, + "negatives": 2828, + "auroc": 0.993988684582744, + "auprc": 0.05555555555555555, + "brier": 0.00045075896412040254, + "calibration": { + "observed_rate": 0.0003534817956875221, + "mean_prediction": 0.003410427505936673, + "calibration_in_the_large": 0.003056945710249151, + "expected_calibration_error_10bin": 0.0030569457102491504, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J15": { + "valid": 2795, + "positives": 15, + "negatives": 2780, + "auroc": 0.7350119904076738, + "auprc": 0.016357369121188264, + "brier": 0.005340176732796283, + "calibration": { + "observed_rate": 0.005366726296958855, + "mean_prediction": 0.003426287738043495, + "calibration_in_the_large": -0.0019404385589153598, + "expected_calibration_error_10bin": 0.0020285076150577818, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9831164263102357 + }, + "J18": { + "valid": 2671, + "positives": 64, + "negatives": 2607, + "auroc": 0.7678545742232451, + "auprc": 0.06645272652145129, + "brier": 0.02308704484780913, + "calibration": { + "observed_rate": 0.023961063272182705, + "mean_prediction": 0.015098819947375901, + "calibration_in_the_large": -0.008862243324806804, + "expected_calibration_error_10bin": 0.010420995883047972, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + "J30": { + "valid": 2815, + "positives": 7, + "negatives": 2808, + "auroc": 0.7202889702889703, + "auprc": 0.017157031539022417, + "brier": 0.0024725887532760947, + "calibration": { + "observed_rate": 0.002486678507992895, + "mean_prediction": 0.0015923997845765795, + "calibration_in_the_large": -0.0008942787234163157, + "expected_calibration_error_10bin": 0.0008942787234163157, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + "J32": { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.5279448178280863, + "auprc": 0.0034848261275884115, + "brier": 0.0007182720050788459, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0014645671799692974, + "calibration_in_the_large": 0.0007576035885942532, + "expected_calibration_error_10bin": 0.0007576035885942532, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J38": { + "valid": 2825, + "positives": 3, + "negatives": 2822, + "auroc": 0.8313253012048193, + "auprc": 0.010413789929117186, + "brier": 0.001060502183687726, + "calibration": { + "observed_rate": 0.0010619469026548673, + "mean_prediction": 0.0016948645721822685, + "calibration_in_the_large": 0.0006329176695274012, + "expected_calibration_error_10bin": 0.0006329176695274012, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J43": { + "valid": 2804, + "positives": 10, + "negatives": 2794, + "auroc": 0.6716535433070866, + "auprc": 0.0140928400660859, + "brier": 0.0035469101208878686, + "calibration": { + "observed_rate": 0.003566333808844508, + "mean_prediction": 0.0029616058070204574, + "calibration_in_the_large": -0.0006047280018240506, + "expected_calibration_error_10bin": 0.0006047280018240506, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "J44": { + "valid": 2570, + "positives": 30, + "negatives": 2540, + "auroc": 0.8269028871391076, + "auprc": 0.04807594503980331, + "brier": 0.011426991254332044, + "calibration": { + "observed_rate": 0.011673151750972763, + "mean_prediction": 0.009691850196895226, + "calibration_in_the_large": -0.001981301554077537, + "expected_calibration_error_10bin": 0.003269584181802952, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9039746746394653 + }, + "J45": { + "valid": 2518, + "positives": 25, + "negatives": 2493, + "auroc": 0.6597994384275973, + "auprc": 0.02216522073286535, + "brier": 0.0098796168260922, + "calibration": { + "observed_rate": 0.009928514694201748, + "mean_prediction": 0.008308409700147783, + "calibration_in_the_large": -0.0016201049940539648, + "expected_calibration_error_10bin": 0.0023380104927695627, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.885684136475554 + }, + "J47": { + "valid": 2825, + "positives": 7, + "negatives": 2818, + "auroc": 0.7636114772381628, + "auprc": 0.009437867268757918, + "brier": 0.002472812013663199, + "calibration": { + "observed_rate": 0.00247787610619469, + "mean_prediction": 0.0006732298199039132, + "calibration_in_the_large": -0.001804646286290777, + "expected_calibration_error_10bin": 0.001804646286290777, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J69": { + "valid": 2777, + "positives": 31, + "negatives": 2746, + "auroc": 0.7516504945610036, + "auprc": 0.030318829673176294, + "brier": 0.010979021267799706, + "calibration": { + "observed_rate": 0.011163125675189053, + "mean_prediction": 0.006564455617904654, + "calibration_in_the_large": -0.0045986700572843995, + "expected_calibration_error_10bin": 0.0045986700572843995, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + "J81": { + "valid": 2781, + "positives": 23, + "negatives": 2758, + "auroc": 0.8112999337894504, + "auprc": 0.05281705691665678, + "brier": 0.008093449189754715, + "calibration": { + "observed_rate": 0.008270406328658756, + "mean_prediction": 0.005262203783315454, + "calibration_in_the_large": -0.0030082025453433015, + "expected_calibration_error_10bin": 0.0030082025453433015, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + "J84": { + "valid": 2817, + "positives": 7, + "negatives": 2810, + "auroc": 0.9030503304524656, + "auprc": 0.017007396414796296, + "brier": 0.0024632641205557, + "calibration": { + "observed_rate": 0.0024849130280440185, + "mean_prediction": 0.0026944585484749684, + "calibration_in_the_large": 0.00020954552043094985, + "expected_calibration_error_10bin": 0.00020954552043094985, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "J90": { + "valid": 2754, + "positives": 39, + "negatives": 2715, + "auroc": 0.689852198139491, + "auprc": 0.02678478819669948, + "brier": 0.014053771518905054, + "calibration": { + "observed_rate": 0.014161220043572984, + "mean_prediction": 0.008095383299639986, + "calibration_in_the_large": -0.006065836743932998, + "expected_calibration_error_10bin": 0.0071403910708966655, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9686950404502286 + }, + "J91": { + "valid": 2807, + "positives": 11, + "negatives": 2796, + "auroc": 0.8289439458967356, + "auprc": 0.046409919683314975, + "brier": 0.003841313238948118, + "calibration": { + "observed_rate": 0.003918774492340577, + "mean_prediction": 0.00442488878602005, + "calibration_in_the_large": 0.0005061142936794733, + "expected_calibration_error_10bin": 0.0005061142936794731, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "J94": { + "valid": 2829, + "positives": 10, + "negatives": 2819, + "auroc": 0.6791060659808442, + "auprc": 0.10573296226321713, + "brier": 0.0034883837066982328, + "calibration": { + "observed_rate": 0.003534817956875221, + "mean_prediction": 0.0006308317446854985, + "calibration_in_the_large": -0.0029039862121897223, + "expected_calibration_error_10bin": 0.0029039862121897223, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J95": { + "valid": 2770, + "positives": 16, + "negatives": 2754, + "auroc": 0.8190359477124183, + "auprc": 0.027501714430808347, + "brier": 0.005703935891443803, + "calibration": { + "observed_rate": 0.005776173285198556, + "mean_prediction": 0.0039394722654853154, + "calibration_in_the_large": -0.0018367010197132402, + "expected_calibration_error_10bin": 0.0018367010197132402, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9743228983468167 + }, + "J96": { + "valid": 2605, + "positives": 81, + "negatives": 2524, + "auroc": 0.8216333078984954, + "auprc": 0.13334416058405146, + "brier": 0.028700885717625104, + "calibration": { + "observed_rate": 0.03109404990403071, + "mean_prediction": 0.020233512567790272, + "calibration_in_the_large": -0.010860537336240438, + "expected_calibration_error_10bin": 0.011335782833059874, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9162856137882518 + }, + "J98": { + "valid": 2692, + "positives": 39, + "negatives": 2653, + "auroc": 0.7540568490436564, + "auprc": 0.053367485681335744, + "brier": 0.014133526814842456, + "calibration": { + "observed_rate": 0.01448736998514116, + "mean_prediction": 0.007833160495588541, + "calibration_in_the_large": -0.006654209489552618, + "expected_calibration_error_10bin": 0.006739261398619566, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9468870911009497 + }, + "K04": { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.8980239943542696, + "auprc": 0.057303807303807304, + "brier": 0.0006999716951660315, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.0006038585057988382, + "calibration_in_the_large": -0.00010136011197267093, + "expected_calibration_error_10bin": 0.00010136011197267093, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "K12": { + "valid": 2824, + "positives": 14, + "negatives": 2810, + "auroc": 0.9045500762582613, + "auprc": 0.0919326317551845, + "brier": 0.005252803004196096, + "calibration": { + "observed_rate": 0.004957507082152974, + "mean_prediction": 0.004407607324500462, + "calibration_in_the_large": -0.0005498997576525123, + "expected_calibration_error_10bin": 0.004206532586550712, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "K20": { + "valid": 2813, + "positives": 11, + "negatives": 2802, + "auroc": 0.6781519693725261, + "auprc": 0.018880937725029256, + "brier": 0.0039537906324481715, + "calibration": { + "observed_rate": 0.0039104159260575895, + "mean_prediction": 0.004193785344114965, + "calibration_in_the_large": 0.0002833694180573755, + "expected_calibration_error_10bin": 0.0007334736646245324, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K21": { + "valid": 2043, + "positives": 94, + "negatives": 1949, + "auroc": 0.7331692193487113, + "auprc": 0.14391643340688245, + "brier": 0.04224144375743249, + "calibration": { + "observed_rate": 0.04601076847772883, + "mean_prediction": 0.03477252433220097, + "calibration_in_the_large": -0.011238244145527862, + "expected_calibration_error_10bin": 0.0117269462165735, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7186071051705945 + }, + "K22": { + "valid": 2764, + "positives": 21, + "negatives": 2743, + "auroc": 0.7697862958526466, + "auprc": 0.03367179630529811, + "brier": 0.007502741673983752, + "calibration": { + "observed_rate": 0.007597684515195369, + "mean_prediction": 0.003403210785036577, + "calibration_in_the_large": -0.004194473730158793, + "expected_calibration_error_10bin": 0.004194473730158793, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9722124516355962 + }, + "K25": { + "valid": 2817, + "positives": 7, + "negatives": 2810, + "auroc": 0.7, + "auprc": 0.006576760848485649, + "brier": 0.0025044211002821816, + "calibration": { + "observed_rate": 0.0024849130280440185, + "mean_prediction": 0.0021143637664867688, + "calibration_in_the_large": -0.0003705492615572498, + "expected_calibration_error_10bin": 0.00046851803286511684, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "K26": { + "valid": 2814, + "positives": 6, + "negatives": 2808, + "auroc": 0.9263414055080722, + "auprc": 0.189505023807806, + "brier": 0.0020668956652298335, + "calibration": { + "observed_rate": 0.0021321961620469083, + "mean_prediction": 0.002521912015800416, + "calibration_in_the_large": 0.0003897158537535077, + "expected_calibration_error_10bin": 0.0003897158537535077, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "K29": { + "valid": 2785, + "positives": 15, + "negatives": 2770, + "auroc": 0.6723225030084236, + "auprc": 0.03781750465190805, + "brier": 0.005305502824138879, + "calibration": { + "observed_rate": 0.005385996409335727, + "mean_prediction": 0.004950553381207768, + "calibration_in_the_large": -0.00043544302812795893, + "expected_calibration_error_10bin": 0.0005374782077284265, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K30": { + "valid": 2837, + "positives": 3, + "negatives": 2834, + "auroc": 0.938367442954599, + "auprc": 0.013106386367255932, + "brier": 0.0010526638524394347, + "calibration": { + "observed_rate": 0.0010574550581600281, + "mean_prediction": 0.00097921162040379, + "calibration_in_the_large": -7.824343775623814e-05, + "expected_calibration_error_10bin": 7.824343775623814e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + "K31": { + "valid": 2756, + "positives": 21, + "negatives": 2735, + "auroc": 0.8776704100287281, + "auprc": 0.09128691298878717, + "brier": 0.0073045478380861385, + "calibration": { + "observed_rate": 0.007619738751814224, + "mean_prediction": 0.005303373305806656, + "calibration_in_the_large": -0.0023163654460075676, + "expected_calibration_error_10bin": 0.002629236584839095, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + "K40": { + "valid": 2827, + "positives": 4, + "negatives": 2823, + "auroc": 0.9376549769748495, + "auprc": 0.07150297619047619, + "brier": 0.0013920458890211455, + "calibration": { + "observed_rate": 0.0014149274849663955, + "mean_prediction": 0.0011780185845428638, + "calibration_in_the_large": -0.0002369089004235316, + "expected_calibration_error_10bin": 0.0002369089004235316, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "K42": { + "valid": 2820, + "positives": 7, + "negatives": 2813, + "auroc": 0.7062617439439338, + "auprc": 0.025681814436965263, + "brier": 0.0024718854144769008, + "calibration": { + "observed_rate": 0.0024822695035460994, + "mean_prediction": 0.0011887025812210214, + "calibration_in_the_large": -0.001293566922325078, + "expected_calibration_error_10bin": 0.001293566922325078, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + "K43": { + "valid": 2813, + "positives": 9, + "negatives": 2804, + "auroc": 0.8009589475352671, + "auprc": 0.03375008650962953, + "brier": 0.003154235368696908, + "calibration": { + "observed_rate": 0.003199431212228937, + "mean_prediction": 0.0022391668437389597, + "calibration_in_the_large": -0.0009602643684899774, + "expected_calibration_error_10bin": 0.0009602643684899774, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K44": { + "valid": 2785, + "positives": 7, + "negatives": 2778, + "auroc": 0.7192738866604957, + "auprc": 0.008448526469913713, + "brier": 0.002506656623597722, + "calibration": { + "observed_rate": 0.0025134649910233393, + "mean_prediction": 0.0025630740395706265, + "calibration_in_the_large": 4.960904854728722e-05, + "expected_calibration_error_10bin": 4.960904854728722e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K52": { + "valid": 2749, + "positives": 38, + "negatives": 2711, + "auroc": 0.8025005338872818, + "auprc": 0.08991048295887617, + "brier": 0.013339367276542722, + "calibration": { + "observed_rate": 0.013823208439432522, + "mean_prediction": 0.010105782598824319, + "calibration_in_the_large": -0.0037174258406082027, + "expected_calibration_error_10bin": 0.005813122321370688, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9669363348575448 + }, + "K55": { + "valid": 2815, + "positives": 10, + "negatives": 2805, + "auroc": 0.754367201426025, + "auprc": 0.00982414351397886, + "brier": 0.0035725236245172116, + "calibration": { + "observed_rate": 0.003552397868561279, + "mean_prediction": 0.002779647886081536, + "calibration_in_the_large": -0.000772749982479743, + "expected_calibration_error_10bin": 0.0008969793488398263, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + "K56": { + "valid": 2745, + "positives": 32, + "negatives": 2713, + "auroc": 0.7466365646885367, + "auprc": 0.0420238281443356, + "brier": 0.011433075431391621, + "calibration": { + "observed_rate": 0.011657559198542805, + "mean_prediction": 0.005723403735879494, + "calibration_in_the_large": -0.005934155462663311, + "expected_calibration_error_10bin": 0.006009748537694668, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9655293703833978 + }, + "K57": { + "valid": 2741, + "positives": 26, + "negatives": 2715, + "auroc": 0.7172120696982576, + "auprc": 0.03149752624827319, + "brier": 0.00938432250725024, + "calibration": { + "observed_rate": 0.009485589201021525, + "mean_prediction": 0.0033973407557758815, + "calibration_in_the_large": -0.006088248445245643, + "expected_calibration_error_10bin": 0.006088248445245643, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + "K58": { + "valid": 2792, + "positives": 7, + "negatives": 2785, + "auroc": 0.749115157732752, + "auprc": 0.09921219815095426, + "brier": 0.0024625368443130383, + "calibration": { + "observed_rate": 0.002507163323782235, + "mean_prediction": 0.0029957024132759957, + "calibration_in_the_large": 0.0004885390894937606, + "expected_calibration_error_10bin": 0.0004885390894937606, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + "K59": { + "valid": 2560, + "positives": 90, + "negatives": 2470, + "auroc": 0.7628565002249212, + "auprc": 0.13543191138107796, + "brier": 0.032440248764118294, + "calibration": { + "observed_rate": 0.03515625, + "mean_prediction": 0.030479479499717854, + "calibration_in_the_large": -0.004676770500282146, + "expected_calibration_error_10bin": 0.007331822562173329, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + "K62": { + "valid": 2813, + "positives": 18, + "negatives": 2795, + "auroc": 0.7528324388789505, + "auprc": 0.01840867959602801, + "brier": 0.006354191043065455, + "calibration": { + "observed_rate": 0.006398862424457874, + "mean_prediction": 0.002658322678621573, + "calibration_in_the_large": -0.0037405397458363013, + "expected_calibration_error_10bin": 0.0037405397458363013, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K63": { + "valid": 2810, + "positives": 21, + "negatives": 2789, + "auroc": 0.744147928084823, + "auprc": 0.03376624695156335, + "brier": 0.00736957939278581, + "calibration": { + "observed_rate": 0.007473309608540925, + "mean_prediction": 0.003559505926970808, + "calibration_in_the_large": -0.003913803681570117, + "expected_calibration_error_10bin": 0.003913803681570117, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + "K64": { + "valid": 2801, + "positives": 22, + "negatives": 2779, + "auroc": 0.7773561451143315, + "auprc": 0.03219993399309568, + "brier": 0.007743220013628152, + "calibration": { + "observed_rate": 0.00785433773652267, + "mean_prediction": 0.004716623707826394, + "calibration_in_the_large": -0.003137714028696276, + "expected_calibration_error_10bin": 0.003209685674352822, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "K65": { + "valid": 2813, + "positives": 14, + "negatives": 2799, + "auroc": 0.8039605981728168, + "auprc": 0.035041327223675214, + "brier": 0.005031425644134695, + "calibration": { + "observed_rate": 0.004976892996800568, + "mean_prediction": 0.00419036642690787, + "calibration_in_the_large": -0.0007865265698926982, + "expected_calibration_error_10bin": 0.002790453156370302, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K66": { + "valid": 2796, + "positives": 9, + "negatives": 2787, + "auroc": 0.6690188573934537, + "auprc": 0.016690833459377937, + "brier": 0.0032158284928776744, + "calibration": { + "observed_rate": 0.003218884120171674, + "mean_prediction": 0.003299573072230245, + "calibration_in_the_large": 8.068895205857107e-05, + "expected_calibration_error_10bin": 8.068895205857107e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + "K70": { + "valid": 2774, + "positives": 6, + "negatives": 2768, + "auroc": 0.9431599229287091, + "auprc": 0.0637998698569119, + "brier": 0.002118715997301385, + "calibration": { + "observed_rate": 0.0021629416005767843, + "mean_prediction": 0.0010666407076059421, + "calibration_in_the_large": -0.0010963008929708422, + "expected_calibration_error_10bin": 0.001260708423331212, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "K72": { + "valid": 2787, + "positives": 22, + "negatives": 2765, + "auroc": 0.8706066085812921, + "auprc": 0.2452523137662084, + "brier": 0.007001010780361969, + "calibration": { + "observed_rate": 0.007893792608539648, + "mean_prediction": 0.004418817367043688, + "calibration_in_the_large": -0.0034749752414959595, + "expected_calibration_error_10bin": 0.005278676166271106, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "K74": { + "valid": 2763, + "positives": 7, + "negatives": 2756, + "auroc": 0.9453141198424218, + "auprc": 0.031925437163601376, + "brier": 0.0026607433108695104, + "calibration": { + "observed_rate": 0.0025334781035106766, + "mean_prediction": 0.002682872790946315, + "calibration_in_the_large": 0.00014939468743563854, + "expected_calibration_error_10bin": 0.0017120887590711198, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + "K75": { + "valid": 2798, + "positives": 12, + "negatives": 2786, + "auroc": 0.8564249820531228, + "auprc": 0.029221346860397818, + "brier": 0.004308937613222541, + "calibration": { + "observed_rate": 0.004288777698355968, + "mean_prediction": 0.0030030521342655075, + "calibration_in_the_large": -0.0012857255640904607, + "expected_calibration_error_10bin": 0.002038044121375718, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + "K76": { + "valid": 2681, + "positives": 33, + "negatives": 2648, + "auroc": 0.7988991119655772, + "auprc": 0.18258916357822802, + "brier": 0.011404043769612529, + "calibration": { + "observed_rate": 0.012308839985080195, + "mean_prediction": 0.005089688642142936, + "calibration_in_the_large": -0.0072191513429372585, + "expected_calibration_error_10bin": 0.008846202942013673, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9430179387970454 + }, + "K80": { + "valid": 2731, + "positives": 18, + "negatives": 2713, + "auroc": 0.6097800712618258, + "auprc": 0.014664511280071199, + "brier": 0.006558672325753309, + "calibration": { + "observed_rate": 0.006590992310508971, + "mean_prediction": 0.0048072237125039476, + "calibration_in_the_large": -0.0017837685980050238, + "expected_calibration_error_10bin": 0.0018707384859839732, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9606049947238833 + }, + "K81": { + "valid": 2825, + "positives": 6, + "negatives": 2819, + "auroc": 0.8988411966418351, + "auprc": 0.04301522905125493, + "brier": 0.0020874649706171242, + "calibration": { + "observed_rate": 0.0021238938053097347, + "mean_prediction": 0.001491172986762625, + "calibration_in_the_large": -0.0006327208185471097, + "expected_calibration_error_10bin": 0.0007067119674198228, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "K82": { + "valid": 2824, + "positives": 4, + "negatives": 2820, + "auroc": 0.6461879432624114, + "auprc": 0.0032497668203937246, + "brier": 0.0014460192445721466, + "calibration": { + "observed_rate": 0.00141643059490085, + "mean_prediction": 0.0017954123599191487, + "calibration_in_the_large": 0.00037898176501829873, + "expected_calibration_error_10bin": 0.00037898176501829873, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "K83": { + "valid": 2757, + "positives": 16, + "negatives": 2741, + "auroc": 0.9094992703392922, + "auprc": 0.09501885299406296, + "brier": 0.005598210756639721, + "calibration": { + "observed_rate": 0.005803409503083061, + "mean_prediction": 0.0033231451844800953, + "calibration_in_the_large": -0.002480264318602966, + "expected_calibration_error_10bin": 0.003444486495195949, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.969750263805839 + }, + "K85": { + "valid": 2779, + "positives": 10, + "negatives": 2769, + "auroc": 0.8276273022751895, + "auprc": 0.025020906085636875, + "brier": 0.003561580943563325, + "calibration": { + "observed_rate": 0.0035984166966534724, + "mean_prediction": 0.002248622826850382, + "calibration_in_the_large": -0.0013497938698030904, + "expected_calibration_error_10bin": 0.0013497938698030904, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9774885684136475 + }, + "K86": { + "valid": 2785, + "positives": 7, + "negatives": 2778, + "auroc": 0.6962871541705234, + "auprc": 0.017276045176725922, + "brier": 0.0025226805029206377, + "calibration": { + "observed_rate": 0.0025134649910233393, + "mean_prediction": 0.0029025646663713247, + "calibration_in_the_large": 0.0003890996753479854, + "expected_calibration_error_10bin": 0.00038909967534798555, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K90": { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.6518394057304563, + "auprc": 0.0025490001240796767, + "brier": 0.0014133387703210464, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.00048800052611132274, + "calibration_in_the_large": -0.0009249277677777623, + "expected_calibration_error_10bin": 0.0009249277677777623, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "K91": { + "valid": 2768, + "positives": 26, + "negatives": 2742, + "auroc": 0.8559726196487685, + "auprc": 0.06355382504358476, + "brier": 0.009166298018401783, + "calibration": { + "observed_rate": 0.00939306358381503, + "mean_prediction": 0.0038952695596858864, + "calibration_in_the_large": -0.005497794024129143, + "expected_calibration_error_10bin": 0.005593530334876459, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "K92": { + "valid": 2751, + "positives": 37, + "negatives": 2714, + "auroc": 0.8039694078750822, + "auprc": 0.12082212769211804, + "brier": 0.01278817175183325, + "calibration": { + "observed_rate": 0.013449654671028717, + "mean_prediction": 0.009364808595356162, + "calibration_in_the_large": -0.004084846075672555, + "expected_calibration_error_10bin": 0.004084846075672555, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "K94": { + "valid": 2823, + "positives": 15, + "negatives": 2808, + "auroc": 0.9042022792022792, + "auprc": 0.11923298586171847, + "brier": 0.005210682501709949, + "calibration": { + "observed_rate": 0.005313496280552604, + "mean_prediction": 0.0014992659728093893, + "calibration_in_the_large": -0.0038142303077432146, + "expected_calibration_error_10bin": 0.0038142303077432146, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "L02": { + "valid": 2807, + "positives": 22, + "negatives": 2785, + "auroc": 0.7506773298514771, + "auprc": 0.021259711257010566, + "brier": 0.007765330488863931, + "calibration": { + "observed_rate": 0.007837548984681154, + "mean_prediction": 0.005265161697713374, + "calibration_in_the_large": -0.00257238728696778, + "expected_calibration_error_10bin": 0.002664956241252769, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "L03": { + "valid": 2701, + "positives": 48, + "negatives": 2653, + "auroc": 0.7472515391380826, + "auprc": 0.0708471530102574, + "brier": 0.017194403958988618, + "calibration": { + "observed_rate": 0.017771195853387635, + "mean_prediction": 0.011101406002748436, + "calibration_in_the_large": -0.006669789850639199, + "expected_calibration_error_10bin": 0.0066697898506391995, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9500527611677805 + }, + "L08": { + "valid": 2830, + "positives": 5, + "negatives": 2825, + "auroc": 0.6789380530973451, + "auprc": 0.004436848838879536, + "brier": 0.0017687212784915423, + "calibration": { + "observed_rate": 0.0017667844522968198, + "mean_prediction": 0.0013555330149933385, + "calibration_in_the_large": -0.00041125143730348125, + "expected_calibration_error_10bin": 0.00041125143730348125, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9954273654590221 + }, + "L27": { + "valid": 2818, + "positives": 12, + "negatives": 2806, + "auroc": 0.782816583511523, + "auprc": 0.021911718285194, + "brier": 0.0042553784919912956, + "calibration": { + "observed_rate": 0.0042583392476933995, + "mean_prediction": 0.0030639003552056883, + "calibration_in_the_large": -0.0011944388924877113, + "expected_calibration_error_10bin": 0.0016258098687821267, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "L29": { + "valid": 2817, + "positives": 4, + "negatives": 2813, + "auroc": 0.7909704941343761, + "auprc": 0.004042118505201765, + "brier": 0.0014806908539328775, + "calibration": { + "observed_rate": 0.0014199503017394391, + "mean_prediction": 0.0034287799402553092, + "calibration_in_the_large": 0.00200882963851587, + "expected_calibration_error_10bin": 0.00200882963851587, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "L30": { + "valid": 2816, + "positives": 8, + "negatives": 2808, + "auroc": 0.7413194444444444, + "auprc": 0.036546462132715944, + "brier": 0.0028103175131416417, + "calibration": { + "observed_rate": 0.002840909090909091, + "mean_prediction": 0.0022998168467146226, + "calibration_in_the_large": -0.0005410922441944684, + "expected_calibration_error_10bin": 0.0005410922441944684, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "L50": { + "valid": 2835, + "positives": 3, + "negatives": 2832, + "auroc": 0.814030131826742, + "auprc": 0.009396936244238445, + "brier": 0.0010610878068686136, + "calibration": { + "observed_rate": 0.0010582010582010583, + "mean_prediction": 0.0010928595092407727, + "calibration_in_the_large": 3.4658451039714386e-05, + "expected_calibration_error_10bin": 3.4658451039714386e-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.693037226033895e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0011586136747862368, + "calibration_in_the_large": 0.0011586136747862368, + "expected_calibration_error_10bin": 0.0011586136747862368, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "L76": { + "valid": 2793, + "positives": 15, + "negatives": 2778, + "auroc": 0.7316534677225822, + "auprc": 0.010856386016990254, + "brier": 0.005351340886709837, + "calibration": { + "observed_rate": 0.0053705692803437165, + "mean_prediction": 0.002715257260987141, + "calibration_in_the_large": -0.0026553120193565753, + "expected_calibration_error_10bin": 0.0026553120193565753, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "L89": { + "valid": 2798, + "positives": 25, + "negatives": 2773, + "auroc": 0.8519581680490443, + "auprc": 0.04445730121090517, + "brier": 0.008734185432375618, + "calibration": { + "observed_rate": 0.008934953538241601, + "mean_prediction": 0.005606384735811217, + "calibration_in_the_large": -0.003328568802430384, + "expected_calibration_error_10bin": 0.0036248737168517, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + "L97": { + "valid": 2789, + "positives": 13, + "negatives": 2776, + "auroc": 0.8966969629793837, + "auprc": 0.04784196598686187, + "brier": 0.00467653367844419, + "calibration": { + "observed_rate": 0.004661168877733955, + "mean_prediction": 0.00533679554583249, + "calibration_in_the_large": 0.0006756266680985352, + "expected_calibration_error_10bin": 0.0006756266680985358, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "L98": { + "valid": 2824, + "positives": 8, + "negatives": 2816, + "auroc": 0.6091086647727273, + "auprc": 0.0040842476605746185, + "brier": 0.002844294057498286, + "calibration": { + "observed_rate": 0.0028328611898017, + "mean_prediction": 0.0025667848459041322, + "calibration_in_the_large": -0.0002660763438975676, + "expected_calibration_error_10bin": 0.0002660763438975676, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "M10": { + "valid": 2713, + "positives": 14, + "negatives": 2699, + "auroc": 0.8054835124120044, + "auprc": 0.033406886819375245, + "brier": 0.005088931363104122, + "calibration": { + "observed_rate": 0.005160339107998526, + "mean_prediction": 0.006022206879277327, + "calibration_in_the_large": 0.0008618677712788009, + "expected_calibration_error_10bin": 0.0008618677712788011, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9542736545902216 + }, + "M16": { + "valid": 2790, + "positives": 3, + "negatives": 2787, + "auroc": 0.8441573974404976, + "auprc": 0.007362953653276234, + "brier": 0.0010731134642828052, + "calibration": { + "observed_rate": 0.001075268817204301, + "mean_prediction": 0.0015909097957764286, + "calibration_in_the_large": 0.0005156409785721276, + "expected_calibration_error_10bin": 0.0005156409785721276, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + "M17": { + "valid": 2733, + "positives": 13, + "negatives": 2720, + "auroc": 0.7371606334841629, + "auprc": 0.011332686162789, + "brier": 0.004734384616798627, + "calibration": { + "observed_rate": 0.004756677643615075, + "mean_prediction": 0.004345449533462088, + "calibration_in_the_large": -0.000411228110152987, + "expected_calibration_error_10bin": 0.000411228110152987, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + "M19": { + "valid": 2674, + "positives": 37, + "negatives": 2637, + "auroc": 0.6926482796789964, + "auprc": 0.02703012478313738, + "brier": 0.013659866597520857, + "calibration": { + "observed_rate": 0.013836948391922213, + "mean_prediction": 0.006869851375080558, + "calibration_in_the_large": -0.006967097016841655, + "expected_calibration_error_10bin": 0.007119776894552604, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.940555750967288 + }, + "M21": { + "valid": 2821, + "positives": 3, + "negatives": 2818, + "auroc": 0.8931866572036906, + "auprc": 0.006334268629738221, + "brier": 0.0010765031204284874, + "calibration": { + "observed_rate": 0.0010634526763559022, + "mean_prediction": 0.003622172600838793, + "calibration_in_the_large": 0.002558719924482891, + "expected_calibration_error_10bin": 0.002558719924482891, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "M25": { + "valid": 2717, + "positives": 48, + "negatives": 2669, + "auroc": 0.6512816910203572, + "auprc": 0.034804333507843815, + "brier": 0.017312086276889023, + "calibration": { + "observed_rate": 0.017666543982333457, + "mean_prediction": 0.014491852431070987, + "calibration_in_the_large": -0.00317469155126247, + "expected_calibration_error_10bin": 0.003392892342350793, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9556806190643686 + }, + "M35": { + "valid": 2806, + "positives": 2, + "negatives": 2804, + "auroc": 0.8660841654778887, + "auprc": 0.003885003885003885, + "brier": 0.0007138065802162458, + "calibration": { + "observed_rate": 0.0007127583749109052, + "mean_prediction": 0.0008047895543464686, + "calibration_in_the_large": 9.203117943556332e-05, + "expected_calibration_error_10bin": 9.203117943556332e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "M46": { + "valid": 2814, + "positives": 7, + "negatives": 2807, + "auroc": 0.654333553870426, + "auprc": 0.004515065321771599, + "brier": 0.00248508222380131, + "calibration": { + "observed_rate": 0.0024875621890547263, + "mean_prediction": 0.0013071902636445434, + "calibration_in_the_large": -0.0011803719254101829, + "expected_calibration_error_10bin": 0.0011803719254101829, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "M47": { + "valid": 2743, + "positives": 11, + "negatives": 2732, + "auroc": 0.6845800612272062, + "auprc": 0.013008310347784623, + "brier": 0.003995503281401267, + "calibration": { + "observed_rate": 0.004010207801676996, + "mean_prediction": 0.005420412926894733, + "calibration_in_the_large": 0.0014102051252177375, + "expected_calibration_error_10bin": 0.0014102051252177375, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + "M48": { + "valid": 2690, + "positives": 11, + "negatives": 2679, + "auroc": 0.7901523635006278, + "auprc": 0.015756887884044668, + "brier": 0.004089322590148542, + "calibration": { + "observed_rate": 0.004089219330855019, + "mean_prediction": 0.007343669622132032, + "calibration_in_the_large": 0.0032544502912770137, + "expected_calibration_error_10bin": 0.0032544502912770137, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9461836088638762 + }, + "M51": { + "valid": 2785, + "positives": 5, + "negatives": 2780, + "auroc": 0.7697841726618705, + "auprc": 0.005375090041224364, + "brier": 0.0017945654685290035, + "calibration": { + "observed_rate": 0.0017953321364452424, + "mean_prediction": 0.002689396813777806, + "calibration_in_the_large": 0.0008940646773325637, + "expected_calibration_error_10bin": 0.0008940646773325637, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "M54": { + "valid": 2567, + "positives": 47, + "negatives": 2520, + "auroc": 0.6839750084430936, + "auprc": 0.04463037107219512, + "brier": 0.017866647324479054, + "calibration": { + "observed_rate": 0.018309310479158552, + "mean_prediction": 0.017324327443015985, + "calibration_in_the_large": -0.0009849830361425664, + "expected_calibration_error_10bin": 0.0027674967353694784, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9029194512838551 + }, + "M62": { + "valid": 2781, + "positives": 13, + "negatives": 2768, + "auroc": 0.687222098710538, + "auprc": 0.018354720864683767, + "brier": 0.004640830887499141, + "calibration": { + "observed_rate": 0.004674577490111471, + "mean_prediction": 0.0045443820177956135, + "calibration_in_the_large": -0.00013019547231585705, + "expected_calibration_error_10bin": 0.00013019547231585705, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + "M79": { + "valid": 2697, + "positives": 43, + "negatives": 2654, + "auroc": 0.7355461698883651, + "auprc": 0.041044143158893424, + "brier": 0.015603357717578682, + "calibration": { + "observed_rate": 0.015943641082684465, + "mean_prediction": 0.011957737908060298, + "calibration_in_the_large": -0.0039859031746241665, + "expected_calibration_error_10bin": 0.005189469118912843, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9486457966936335 + }, + "M81": { + "valid": 2705, + "positives": 17, + "negatives": 2688, + "auroc": 0.7544861694677871, + "auprc": 0.019622336408836483, + "brier": 0.006542161585510805, + "calibration": { + "observed_rate": 0.006284658040665434, + "mean_prediction": 0.008463315255923755, + "calibration_in_the_large": 0.0021786572152583212, + "expected_calibration_error_10bin": 0.0021786572152583204, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9514597256419275 + }, + "M84": { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.7900663821716454, + "auprc": 0.0245059786276514, + "brier": 0.002128964292131067, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.0023479349022648218, + "calibration_in_the_large": 0.000218765278418122, + "expected_calibration_error_10bin": 0.00021876527841812183, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "M85": { + "valid": 2768, + "positives": 7, + "negatives": 2761, + "auroc": 0.6889325813628603, + "auprc": 0.006152751646237575, + "brier": 0.0025289373348674755, + "calibration": { + "observed_rate": 0.0025289017341040463, + "mean_prediction": 0.003138459265659354, + "calibration_in_the_large": 0.0006095575315553077, + "expected_calibration_error_10bin": 0.0006095575315553077, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "M86": { + "valid": 2803, + "positives": 16, + "negatives": 2787, + "auroc": 0.7659669895945461, + "auprc": 0.02991438878281829, + "brier": 0.005655114274062009, + "calibration": { + "observed_rate": 0.005708169818052087, + "mean_prediction": 0.004871428048966813, + "calibration_in_the_large": -0.000836741769085274, + "expected_calibration_error_10bin": 0.0014535746083924022, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9859303552585297 + }, + "M94": { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.5104166666666666, + "auprc": 0.00206250615573331, + "brier": 0.001064203432628293, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0003712244692810921, + "calibration_in_the_large": -0.0006929826963804899, + "expected_calibration_error_10bin": 0.0006929826963804899, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "M96": { + "valid": 2804, + "positives": 4, + "negatives": 2800, + "auroc": 0.895, + "auprc": 0.012640355209849151, + "brier": 0.0014196982574319588, + "calibration": { + "observed_rate": 0.0014265335235378032, + "mean_prediction": 0.0019946078593927326, + "calibration_in_the_large": 0.0005680743358549294, + "expected_calibration_error_10bin": 0.0005680743358549294, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "N12": { + "valid": 2831, + "positives": 8, + "negatives": 2823, + "auroc": 0.7138682252922423, + "auprc": 0.013991888198519441, + "brier": 0.0028243822743218867, + "calibration": { + "observed_rate": 0.00282585658777817, + "mean_prediction": 0.0017612331457844289, + "calibration_in_the_large": -0.0010646234419937413, + "expected_calibration_error_10bin": 0.0011669867240589626, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "N13": { + "valid": 2756, + "positives": 21, + "negatives": 2735, + "auroc": 0.7522764864629581, + "auprc": 0.05821835993109867, + "brier": 0.007434596173542999, + "calibration": { + "observed_rate": 0.007619738751814224, + "mean_prediction": 0.005942563184504933, + "calibration_in_the_large": -0.001677175567309291, + "expected_calibration_error_10bin": 0.0016771755673092908, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + "N14": { + "valid": 2826, + "positives": 8, + "negatives": 2818, + "auroc": 0.7933818310858765, + "auprc": 0.03649710682031876, + "brier": 0.002799449473353002, + "calibration": { + "observed_rate": 0.0028308563340410475, + "mean_prediction": 0.002715105250593413, + "calibration_in_the_large": -0.00011575108344763453, + "expected_calibration_error_10bin": 0.0003229235463001098, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "N17": { + "valid": 2292, + "positives": 103, + "negatives": 2189, + "auroc": 0.8061268389609122, + "auprc": 0.19461522895829345, + "brier": 0.039741947881300595, + "calibration": { + "observed_rate": 0.04493891797556719, + "mean_prediction": 0.04322862362964111, + "calibration_in_the_large": -0.0017102943459260805, + "expected_calibration_error_10bin": 0.006992637553519648, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8061906436862469 + }, + "N18": { + "valid": 2440, + "positives": 50, + "negatives": 2390, + "auroc": 0.8617489539748954, + "auprc": 0.25059659038775906, + "brier": 0.01774040907338036, + "calibration": { + "observed_rate": 0.020491803278688523, + "mean_prediction": 0.016662052170028398, + "calibration_in_the_large": -0.0038297511086601253, + "expected_calibration_error_10bin": 0.0038297511086601253, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.858248329229687 + }, + "N20": { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.6936204431736955, + "auprc": 0.005750062114594029, + "brier": 0.002846063202990338, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.00138859393391496, + "calibration_in_the_large": -0.001462439565728661, + "expected_calibration_error_10bin": 0.001462439565728661, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "N25": { + "valid": 2831, + "positives": 7, + "negatives": 2824, + "auroc": 0.9130412788344799, + "auprc": 0.059427622062960546, + "brier": 0.0024420317472067707, + "calibration": { + "observed_rate": 0.002472624514305899, + "mean_prediction": 0.0014618707324624007, + "calibration_in_the_large": -0.0010107537818434984, + "expected_calibration_error_10bin": 0.0014563331831895278, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "N28": { + "valid": 2789, + "positives": 9, + "negatives": 2780, + "auroc": 0.8064748201438849, + "auprc": 0.01626062762206952, + "brier": 0.0032021056736999238, + "calibration": { + "observed_rate": 0.0032269630692004303, + "mean_prediction": 0.003590660124286025, + "calibration_in_the_large": 0.00036369705508559457, + "expected_calibration_error_10bin": 0.00036369705508559457, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "N30": { + "valid": 2829, + "positives": 11, + "negatives": 2818, + "auroc": 0.7267565649396736, + "auprc": 0.014013433087258099, + "brier": 0.0038756400354354294, + "calibration": { + "observed_rate": 0.003888299752562743, + "mean_prediction": 0.003634488591856199, + "calibration_in_the_large": -0.00025381116070654405, + "expected_calibration_error_10bin": 0.00025381116070654405, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "N32": { + "valid": 2807, + "positives": 15, + "negatives": 2792, + "auroc": 0.8457497612225406, + "auprc": 0.04290805176149779, + "brier": 0.005256905768932059, + "calibration": { + "observed_rate": 0.005343783398646241, + "mean_prediction": 0.004155078817037711, + "calibration_in_the_large": -0.00118870458160853, + "expected_calibration_error_10bin": 0.00118870458160853, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "N39": { + "valid": 2520, + "positives": 83, + "negatives": 2437, + "auroc": 0.764622709137741, + "auprc": 0.08685979279702889, + "brier": 0.030997588403162628, + "calibration": { + "observed_rate": 0.03293650793650794, + "mean_prediction": 0.03145660180321318, + "calibration_in_the_large": -0.0014799061332947602, + "expected_calibration_error_10bin": 0.0018205370397366097, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8863876187126275 + }, + "N40": { + "valid": 2606, + "positives": 24, + "negatives": 2582, + "auroc": 0.8033017041053447, + "auprc": 0.039250885671819016, + "brier": 0.009041983516807671, + "calibration": { + "observed_rate": 0.00920951650038373, + "mean_prediction": 0.007701389173803102, + "calibration_in_the_large": -0.0015081273265806286, + "expected_calibration_error_10bin": 0.002445614664824948, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9166373549067885 + }, + "N73": { + "valid": 2829, + "positives": 6, + "negatives": 2823, + "auroc": 0.8805644113826898, + "auprc": 0.18747963472711368, + "brier": 0.0020384659523283812, + "calibration": { + "observed_rate": 0.0021208907741251328, + "mean_prediction": 0.001022965587600775, + "calibration_in_the_large": -0.0010979251865243578, + "expected_calibration_error_10bin": 0.0010979251865243578, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "N99": { + "valid": 2799, + "positives": 6, + "negatives": 2793, + "auroc": 0.7772407208497434, + "auprc": 0.006566046571274745, + "brier": 0.0021581539208305363, + "calibration": { + "observed_rate": 0.0021436227224008574, + "mean_prediction": 0.0031096980160586125, + "calibration_in_the_large": 0.0009660752936577551, + "expected_calibration_error_10bin": 0.0009660752936577551, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9845233907843827 + }, + "O69": { + "valid": 2743, + "positives": 6, + "negatives": 2737, + "auroc": 0.9968335160151017, + "auprc": 0.36781410597200076, + "brier": 0.0015826190156543855, + "calibration": { + "observed_rate": 0.002187386073641998, + "mean_prediction": 0.0025802635588256513, + "calibration_in_the_large": 0.0003928774851836535, + "expected_calibration_error_10bin": 0.0021895167484876207, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + "O99": { + "valid": 2652, + "positives": 3, + "negatives": 2649, + "auroc": 0.9053730967660752, + "auprc": 0.118669912148173, + "brier": 0.001668803101954824, + "calibration": { + "observed_rate": 0.0011312217194570137, + "mean_prediction": 0.0035730286612277906, + "calibration_in_the_large": 0.002441806941770777, + "expected_calibration_error_10bin": 0.0025960024047269256, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9328174463594794 + }, + "Q21": { + "valid": 2810, + "positives": 5, + "negatives": 2805, + "auroc": 0.5431016042780749, + "auprc": 0.0030757352522603554, + "brier": 0.0017793855220192124, + "calibration": { + "observed_rate": 0.0017793594306049821, + "mean_prediction": 0.0018420880722195604, + "calibration_in_the_large": 6.272864161457827e-05, + "expected_calibration_error_10bin": 6.272864161457827e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + "U07": { + "valid": 2828, + "positives": 3, + "negatives": 2825, + "auroc": 0.9162241887905604, + "auprc": 0.03472699996177808, + "brier": 0.001080434194401221, + "calibration": { + "observed_rate": 0.0010608203677510608, + "mean_prediction": 0.004331762201085725, + "calibration_in_the_large": 0.0032709418333346637, + "expected_calibration_error_10bin": 0.003270941833334664, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + } + }, + "365": { + "A04": { + "valid": 2782, + "positives": 29, + "negatives": 2753, + "auroc": 0.7878928316444757, + "auprc": 0.06571085772767926, + "brier": 0.010387405554725632, + "calibration": { + "observed_rate": 0.010424155283968369, + "mean_prediction": 0.010988667105839124, + "calibration_in_the_large": 0.0005645118218707557, + "expected_calibration_error_10bin": 0.002872837934359463, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + "A08": { + "valid": 2818, + "positives": 11, + "negatives": 2807, + "auroc": 0.7937299608122551, + "auprc": 0.015333634839403691, + "brier": 0.003909850273242309, + "calibration": { + "observed_rate": 0.0039034776437189495, + "mean_prediction": 0.003915610721445279, + "calibration_in_the_large": 1.2133077726329822e-05, + "expected_calibration_error_10bin": 0.0001480470814353353, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "A41": { + "valid": 2664, + "positives": 76, + "negatives": 2588, + "auroc": 0.743563410070772, + "auprc": 0.06771733855980011, + "brier": 0.028206000119305203, + "calibration": { + "observed_rate": 0.028528528528528527, + "mean_prediction": 0.024516547192368243, + "calibration_in_the_large": -0.004011981336160285, + "expected_calibration_error_10bin": 0.014830255630720665, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9370383397819205 + }, + "B00": { + "valid": 2819, + "positives": 4, + "negatives": 2815, + "auroc": 0.7733570159857904, + "auprc": 0.036335919578899915, + "brier": 0.001409048757309653, + "calibration": { + "observed_rate": 0.001418942887548776, + "mean_prediction": 0.001597363311959284, + "calibration_in_the_large": 0.00017842042441050792, + "expected_calibration_error_10bin": 0.00017842042441050778, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "B02": { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.9522461973823841, + "auprc": 0.007352941176470588, + "brier": 0.000361475276881779, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.001480109377712678, + "calibration_in_the_large": 0.0011265025884623244, + "expected_calibration_error_10bin": 0.0011265025884623244, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "B18": { + "valid": 2782, + "positives": 8, + "negatives": 2774, + "auroc": 0.9594899062725306, + "auprc": 0.05827984175097214, + "brier": 0.002867958655916254, + "calibration": { + "observed_rate": 0.002875629043853343, + "mean_prediction": 0.0016987689259779053, + "calibration_in_the_large": -0.0011768601178754378, + "expected_calibration_error_10bin": 0.0018572518622223856, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + "B19": { + "valid": 2763, + "positives": 17, + "negatives": 2746, + "auroc": 0.9044813846878883, + "auprc": 0.10509907530907978, + "brier": 0.005902338786282101, + "calibration": { + "observed_rate": 0.006152732537097358, + "mean_prediction": 0.0029579166908744086, + "calibration_in_the_large": -0.0031948158462229495, + "expected_calibration_error_10bin": 0.003710005697239305, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + "B20": { + "valid": 2829, + "positives": 5, + "negatives": 2824, + "auroc": 0.9802407932011331, + "auprc": 0.073229927422474, + "brier": 0.0017473325406429706, + "calibration": { + "observed_rate": 0.0017674089784376105, + "mean_prediction": 0.0010689182201888863, + "calibration_in_the_large": -0.0006984907582487242, + "expected_calibration_error_10bin": 0.0010417520955627083, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "B34": { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.956617126680821, + "auprc": 0.09375840251358923, + "brier": 0.001723005390207934, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.0013422497662645542, + "calibration_in_the_large": -0.0004239106010968021, + "expected_calibration_error_10bin": 0.0004239106010968021, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "B35": { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.6296753705010586, + "auprc": 0.001447129580834316, + "brier": 0.0007088738003540449, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.0013578556376126771, + "calibration_in_the_large": 0.000652637019841168, + "expected_calibration_error_10bin": 0.000652637019841168, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "B37": { + "valid": 2768, + "positives": 38, + "negatives": 2730, + "auroc": 0.7780990938885676, + "auprc": 0.059869418770013776, + "brier": 0.013369639510541606, + "calibration": { + "observed_rate": 0.013728323699421965, + "mean_prediction": 0.007667315865925216, + "calibration_in_the_large": -0.006061007833496749, + "expected_calibration_error_10bin": 0.006785795156699451, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "B95": { + "valid": 2678, + "positives": 61, + "negatives": 2617, + "auroc": 0.739765843758026, + "auprc": 0.058617657693732755, + "brier": 0.02202306817063092, + "calibration": { + "observed_rate": 0.022778192681105303, + "mean_prediction": 0.017865587465024795, + "calibration_in_the_large": -0.004912605216080508, + "expected_calibration_error_10bin": 0.005941795139737661, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9419627154414351 + }, + "B96": { + "valid": 2630, + "positives": 88, + "negatives": 2542, + "auroc": 0.7591999856948716, + "auprc": 0.09472900824404108, + "brier": 0.031573649251084066, + "calibration": { + "observed_rate": 0.033460076045627375, + "mean_prediction": 0.021615773646719575, + "calibration_in_the_large": -0.0118443023989078, + "expected_calibration_error_10bin": 0.012409740683074665, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9250791417516707 + }, + "B97": { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.7533616418966738, + "auprc": 0.036437351513273424, + "brier": 0.0007653450081133212, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.0016196215371186698, + "calibration_in_the_large": 0.0009124079586179625, + "expected_calibration_error_10bin": 0.0009124079586179624, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "C18": { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.9723600283486888, + "auprc": 0.018477222045237336, + "brier": 0.0007054325881894434, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0009365642316105058, + "calibration_in_the_large": 0.00022834893416008085, + "expected_calibration_error_10bin": 0.00022834893416008085, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "C22": { + "valid": 2812, + "positives": 7, + "negatives": 2805, + "auroc": 0.9040998217468805, + "auprc": 0.024250317318810943, + "brier": 0.0025138811681941673, + "calibration": { + "observed_rate": 0.0024893314366998577, + "mean_prediction": 0.0007607394518874463, + "calibration_in_the_large": -0.0017285919848124115, + "expected_calibration_error_10bin": 0.0021994179075474573, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9890960253253606 + }, + "C25": { + "valid": 2809, + "positives": 4, + "negatives": 2805, + "auroc": 0.8564171122994653, + "auprc": 0.055638443913131726, + "brier": 0.0014189394018691477, + "calibration": { + "observed_rate": 0.001423994304022784, + "mean_prediction": 0.0012707585413555373, + "calibration_in_the_large": -0.00015323576266724668, + "expected_calibration_error_10bin": 0.0005042687773565227, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "C61": { + "valid": 2805, + "positives": 2, + "negatives": 2803, + "auroc": 0.9955404923296468, + "auprc": 0.12878787878787878, + "brier": 0.0006954039417866093, + "calibration": { + "observed_rate": 0.00071301247771836, + "mean_prediction": 0.0015007247277878935, + "calibration_in_the_large": 0.0007877122500695334, + "expected_calibration_error_10bin": 0.0007877122500695334, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "C67": { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9717014503006721, + "auprc": 0.018089960886571055, + "brier": 0.0007040190475083178, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0006191574712749957, + "calibration_in_the_large": -8.780612010004856e-05, + "expected_calibration_error_10bin": 8.780612010004856e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "C77": { + "valid": 2762, + "positives": 23, + "negatives": 2739, + "auroc": 0.8636125529787133, + "auprc": 0.10715094652631865, + "brier": 0.007936756538495723, + "calibration": { + "observed_rate": 0.00832729905865315, + "mean_prediction": 0.006895629549853173, + "calibration_in_the_large": -0.001431669508799977, + "expected_calibration_error_10bin": 0.0024789727682590092, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + "C78": { + "valid": 2762, + "positives": 37, + "negatives": 2725, + "auroc": 0.8812794445821969, + "auprc": 0.1729488834365822, + "brier": 0.012368727882716188, + "calibration": { + "observed_rate": 0.013396089790007242, + "mean_prediction": 0.007773229146548899, + "calibration_in_the_large": -0.0056228606434583425, + "expected_calibration_error_10bin": 0.009007265860449507, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + "C79": { + "valid": 2751, + "positives": 29, + "negatives": 2722, + "auroc": 0.9039499353923333, + "auprc": 0.12434817487956541, + "brier": 0.0099521863516585, + "calibration": { + "observed_rate": 0.010541621228644129, + "mean_prediction": 0.008662653377575956, + "calibration_in_the_large": -0.001878967851068173, + "expected_calibration_error_10bin": 0.0030044956128662146, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "C83": { + "valid": 2820, + "positives": 2, + "negatives": 2818, + "auroc": 0.6985450674237047, + "auprc": 0.009083218997905856, + "brier": 0.0007543526401743968, + "calibration": { + "observed_rate": 0.0007092198581560284, + "mean_prediction": 0.0006918897550534804, + "calibration_in_the_large": -1.7330103102548063e-05, + "expected_calibration_error_10bin": 0.000300625780165861, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + "D25": { + "valid": 2792, + "positives": 3, + "negatives": 2789, + "auroc": 0.9960559340265328, + "auprc": 0.6944444444444445, + "brier": 0.0010118851730158555, + "calibration": { + "observed_rate": 0.0010744985673352436, + "mean_prediction": 0.0007641752318717054, + "calibration_in_the_large": -0.0003103233354635382, + "expected_calibration_error_10bin": 0.0003103233354635382, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + "D47": { + "valid": 2796, + "positives": 12, + "negatives": 2784, + "auroc": 0.6753771551724138, + "auprc": 0.008254045286148105, + "brier": 0.004294988186166175, + "calibration": { + "observed_rate": 0.004291845493562232, + "mean_prediction": 0.0033805157741173156, + "calibration_in_the_large": -0.0009113297194449162, + "expected_calibration_error_10bin": 0.00101034287259408, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + "D50": { + "valid": 2663, + "positives": 59, + "negatives": 2604, + "auroc": 0.7912858965346663, + "auprc": 0.12157634030214617, + "brier": 0.02085609704924915, + "calibration": { + "observed_rate": 0.022155463762673678, + "mean_prediction": 0.014113503374280691, + "calibration_in_the_large": -0.008041960388392987, + "expected_calibration_error_10bin": 0.008223886421561266, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9366865986633838 + }, + "D53": { + "valid": 2805, + "positives": 18, + "negatives": 2787, + "auroc": 0.8346688992544752, + "auprc": 0.04028200490652172, + "brier": 0.006310400804670982, + "calibration": { + "observed_rate": 0.006417112299465241, + "mean_prediction": 0.005794012284295507, + "calibration_in_the_large": -0.0006231000151697341, + "expected_calibration_error_10bin": 0.0008579674377207033, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "D59": { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.9936485532815809, + "auprc": 0.10267857142857142, + "brier": 0.0006837738014208862, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.0009802755682745512, + "calibration_in_the_large": 0.00027505695050304203, + "expected_calibration_error_10bin": 0.00027505695050304203, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "D61": { + "valid": 2773, + "positives": 37, + "negatives": 2736, + "auroc": 0.8920104314841157, + "auprc": 0.2600174606735832, + "brier": 0.011410689864091668, + "calibration": { + "observed_rate": 0.013342949873782907, + "mean_prediction": 0.01219929729383375, + "calibration_in_the_large": -0.0011436525799491566, + "expected_calibration_error_10bin": 0.0027966401215014317, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + "D62": { + "valid": 2499, + "positives": 73, + "negatives": 2426, + "auroc": 0.7859264362104598, + "auprc": 0.11150711318495651, + "brier": 0.027460491088346792, + "calibration": { + "observed_rate": 0.02921168467386955, + "mean_prediction": 0.017674396308709164, + "calibration_in_the_large": -0.011537288365160384, + "expected_calibration_error_10bin": 0.011649343594700014, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8790010552233556 + }, + "D63": { + "valid": 2686, + "positives": 76, + "negatives": 2610, + "auroc": 0.8458408953418027, + "auprc": 0.12595834168934117, + "brier": 0.02680538333008845, + "calibration": { + "observed_rate": 0.028294862248696945, + "mean_prediction": 0.02310174931745886, + "calibration_in_the_large": -0.005193112931238086, + "expected_calibration_error_10bin": 0.014922391885407064, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9447766443897292 + }, + "D64": { + "valid": 2434, + "positives": 122, + "negatives": 2312, + "auroc": 0.8045869022633161, + "auprc": 0.18221302859202482, + "brier": 0.044287908914426154, + "calibration": { + "observed_rate": 0.05012325390304026, + "mean_prediction": 0.041010872785946326, + "calibration_in_the_large": -0.009112381117093935, + "expected_calibration_error_10bin": 0.010116619628264082, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8561378825184665 + }, + "D65": { + "valid": 2833, + "positives": 6, + "negatives": 2827, + "auroc": 0.8846834099752388, + "auprc": 0.017137969546904587, + "brier": 0.0021126988109056253, + "calibration": { + "observed_rate": 0.002117896223085069, + "mean_prediction": 0.0007442890732444335, + "calibration_in_the_large": -0.0013736071498406353, + "expected_calibration_error_10bin": 0.0013736071498406353, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9964825888146325 + }, + "D68": { + "valid": 2682, + "positives": 63, + "negatives": 2619, + "auroc": 0.801966096353267, + "auprc": 0.13273745189803757, + "brier": 0.02213129931528312, + "calibration": { + "observed_rate": 0.02348993288590604, + "mean_prediction": 0.009360505898202608, + "calibration_in_the_large": -0.014129426987703433, + "expected_calibration_error_10bin": 0.015487913999705723, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9433696799155822 + }, + "D69": { + "valid": 2586, + "positives": 87, + "negatives": 2499, + "auroc": 0.8387952882302346, + "auprc": 0.26667405562163177, + "brier": 0.028635214431088955, + "calibration": { + "observed_rate": 0.033642691415313224, + "mean_prediction": 0.02003571425933461, + "calibration_in_the_large": -0.013606977155978615, + "expected_calibration_error_10bin": 0.013606977155978622, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9096025325360535 + }, + "D70": { + "valid": 2787, + "positives": 26, + "negatives": 2761, + "auroc": 0.8830691221129469, + "auprc": 0.18319776041447036, + "brier": 0.008631820503977563, + "calibration": { + "observed_rate": 0.009329027628274129, + "mean_prediction": 0.009164310287510373, + "calibration_in_the_large": -0.00016471734076375574, + "expected_calibration_error_10bin": 0.0034063709319977803, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "D72": { + "valid": 2595, + "positives": 67, + "negatives": 2528, + "auroc": 0.7143633100321178, + "auprc": 0.06405983103699506, + "brier": 0.02481371578078495, + "calibration": { + "observed_rate": 0.02581888246628131, + "mean_prediction": 0.030130443220100365, + "calibration_in_the_large": 0.004311560753819055, + "expected_calibration_error_10bin": 0.004474475206573974, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9127682026028843 + }, + "D73": { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.8842018196856907, + "auprc": 0.11654264160593275, + "brier": 0.0010441120111081062, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.000911113747892154, + "calibration_in_the_large": -0.0001512091982834835, + "expected_calibration_error_10bin": 0.0001512091982834835, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "D75": { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.937831623629289, + "auprc": 0.013440165992533552, + "brier": 0.0014073959616719733, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0014563230765098094, + "calibration_in_the_large": 4.339478262072429e-05, + "expected_calibration_error_10bin": 4.339478262072429e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "D80": { + "valid": 2832, + "positives": 6, + "negatives": 2826, + "auroc": 0.9808917197452229, + "auprc": 0.07418575802908728, + "brier": 0.002099875325723036, + "calibration": { + "observed_rate": 0.00211864406779661, + "mean_prediction": 0.0007876969265652982, + "calibration_in_the_large": -0.001330947141231312, + "expected_calibration_error_10bin": 0.0014823660168185007, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + "D89": { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.6890652557319223, + "auprc": 0.007439982522716423, + "brier": 0.0009222718619849919, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0010647971107768295, + "calibration_in_the_large": 0.00035982707200347735, + "expected_calibration_error_10bin": 0.0005564586499841451, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + "E03": { + "valid": 2480, + "positives": 26, + "negatives": 2454, + "auroc": 0.6694564604100056, + "auprc": 0.05033391768743022, + "brier": 0.010309557024247126, + "calibration": { + "observed_rate": 0.010483870967741936, + "mean_prediction": 0.005216581592075302, + "calibration_in_the_large": -0.005267289375666635, + "expected_calibration_error_10bin": 0.005267289375666635, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8723179739711572 + }, + "E04": { + "valid": 2775, + "positives": 11, + "negatives": 2764, + "auroc": 0.6901065649256677, + "auprc": 0.010348848378709603, + "brier": 0.003946085705511667, + "calibration": { + "observed_rate": 0.003963963963963964, + "mean_prediction": 0.0031592201572231454, + "calibration_in_the_large": -0.0008047438067408188, + "expected_calibration_error_10bin": 0.0008047438067408188, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + "E05": { + "valid": 2806, + "positives": 4, + "negatives": 2802, + "auroc": 0.6517665952890792, + "auprc": 0.003010386464132224, + "brier": 0.0014239559498253613, + "calibration": { + "observed_rate": 0.0014255167498218105, + "mean_prediction": 0.0009261650518787704, + "calibration_in_the_large": -0.00049935169794304, + "expected_calibration_error_10bin": 0.00049935169794304, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "E11": { + "valid": 2194, + "positives": 24, + "negatives": 2170, + "auroc": 0.7880376344086022, + "auprc": 0.05454259155835098, + "brier": 0.010687695967290377, + "calibration": { + "observed_rate": 0.010938924339106655, + "mean_prediction": 0.006205424325638533, + "calibration_in_the_large": -0.004733500013468122, + "expected_calibration_error_10bin": 0.004733500013468123, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7717200140696447 + }, + "E16": { + "valid": 2816, + "positives": 13, + "negatives": 2803, + "auroc": 0.6376135459260682, + "auprc": 0.008753964533467672, + "brier": 0.004612667695038716, + "calibration": { + "observed_rate": 0.004616477272727273, + "mean_prediction": 0.0026073992470530397, + "calibration_in_the_large": -0.0020090780256742332, + "expected_calibration_error_10bin": 0.0020090780256742332, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "E21": { + "valid": 2814, + "positives": 5, + "negatives": 2809, + "auroc": 0.6907796368814525, + "auprc": 0.00756021450668921, + "brier": 0.0017777928132850403, + "calibration": { + "observed_rate": 0.0017768301350390902, + "mean_prediction": 0.001343757354895634, + "calibration_in_the_large": -0.0004330727801434562, + "expected_calibration_error_10bin": 0.0004330727801434562, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "E22": { + "valid": 2802, + "positives": 9, + "negatives": 2793, + "auroc": 0.8173210804789752, + "auprc": 0.02770097681533423, + "brier": 0.003209755668525043, + "calibration": { + "observed_rate": 0.0032119914346895075, + "mean_prediction": 0.0045678159448426185, + "calibration_in_the_large": 0.001355824510153111, + "expected_calibration_error_10bin": 0.0013558245101531114, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "E27": { + "valid": 2811, + "positives": 9, + "negatives": 2802, + "auroc": 0.7812673487191688, + "auprc": 0.015023913915020472, + "brier": 0.0031878360579846838, + "calibration": { + "observed_rate": 0.0032017075773745998, + "mean_prediction": 0.001422235617254341, + "calibration_in_the_large": -0.0017794719601202588, + "expected_calibration_error_10bin": 0.0017794719601202588, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9887442842068238 + }, + "E43": { + "valid": 2748, + "positives": 43, + "negatives": 2705, + "auroc": 0.8288827752224562, + "auprc": 0.06730470381768769, + "brier": 0.015165616580240932, + "calibration": { + "observed_rate": 0.01564774381368268, + "mean_prediction": 0.014923827347703972, + "calibration_in_the_large": -0.0007239164659787068, + "expected_calibration_error_10bin": 0.0025564054607367347, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9665845937390081 + }, + "E44": { + "valid": 2800, + "positives": 24, + "negatives": 2776, + "auroc": 0.7504352785782901, + "auprc": 0.035770674999751735, + "brier": 0.008431152863138348, + "calibration": { + "observed_rate": 0.008571428571428572, + "mean_prediction": 0.005436064954301401, + "calibration_in_the_large": -0.003135363617127171, + "expected_calibration_error_10bin": 0.0036244242351105116, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + "E46": { + "valid": 2772, + "positives": 42, + "negatives": 2730, + "auroc": 0.8021716378859236, + "auprc": 0.12089538496247496, + "brier": 0.014386706177733407, + "calibration": { + "observed_rate": 0.015151515151515152, + "mean_prediction": 0.009683600548982355, + "calibration_in_the_large": -0.005467914602532797, + "expected_calibration_error_10bin": 0.006880071840621614, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9750263805838902 + }, + "E53": { + "valid": 2804, + "positives": 11, + "negatives": 2793, + "auroc": 0.6529310288708785, + "auprc": 0.006508058100209154, + "brier": 0.003923149364297813, + "calibration": { + "observed_rate": 0.0039229671897289585, + "mean_prediction": 0.0023182361875922182, + "calibration_in_the_large": -0.0016047310021367403, + "expected_calibration_error_10bin": 0.0016047310021367403, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "E55": { + "valid": 2737, + "positives": 30, + "negatives": 2707, + "auroc": 0.6301071296638345, + "auprc": 0.021607697203195983, + "brier": 0.010848086724241628, + "calibration": { + "observed_rate": 0.010960906101571063, + "mean_prediction": 0.007264666452594792, + "calibration_in_the_large": -0.0036962396489762716, + "expected_calibration_error_10bin": 0.0038630940485256523, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9627154414351038 + }, + "E66": { + "valid": 2371, + "positives": 42, + "negatives": 2329, + "auroc": 0.7638880369666115, + "auprc": 0.07075115527655651, + "brier": 0.017073181165145373, + "calibration": { + "observed_rate": 0.017714044706874738, + "mean_prediction": 0.012917363551839674, + "calibration_in_the_large": -0.0047966811550350635, + "expected_calibration_error_10bin": 0.005867392767485089, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8339781920506507 + }, + "E78": { + "valid": 1572, + "positives": 50, + "negatives": 1522, + "auroc": 0.7256636005256242, + "auprc": 0.13095881634093892, + "brier": 0.02992288889359574, + "calibration": { + "observed_rate": 0.031806615776081425, + "mean_prediction": 0.031306034611563525, + "calibration_in_the_large": -0.0005005811645178992, + "expected_calibration_error_10bin": 0.012392142272223164, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5529370383397819 + }, + "E80": { + "valid": 2823, + "positives": 8, + "negatives": 2815, + "auroc": 0.8330373001776199, + "auprc": 0.0195612259005365, + "brier": 0.0028190184749958707, + "calibration": { + "observed_rate": 0.0028338646829613886, + "mean_prediction": 0.0015345865812430694, + "calibration_in_the_large": -0.0012992781017183192, + "expected_calibration_error_10bin": 0.0012992781017183192, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "E83": { + "valid": 2653, + "positives": 86, + "negatives": 2567, + "auroc": 0.8164176805790851, + "auprc": 0.17304587700350804, + "brier": 0.029326691230596863, + "calibration": { + "observed_rate": 0.03241613267998492, + "mean_prediction": 0.01931429581978712, + "calibration_in_the_large": -0.013101836860197804, + "expected_calibration_error_10bin": 0.014713626863904258, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9331691874780161 + }, + "E86": { + "valid": 2587, + "positives": 98, + "negatives": 2489, + "auroc": 0.7935733554168956, + "auprc": 0.11659773768632059, + "brier": 0.03497628712585842, + "calibration": { + "observed_rate": 0.03788171627367607, + "mean_prediction": 0.03411994077034682, + "calibration_in_the_large": -0.0037617755033292483, + "expected_calibration_error_10bin": 0.006745530441117186, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9099542736545903 + }, + "E87": { + "valid": 2185, + "positives": 158, + "negatives": 2027, + "auroc": 0.7912610142818782, + "auprc": 0.22596638214191658, + "brier": 0.06194305303800415, + "calibration": { + "observed_rate": 0.07231121281464531, + "mean_prediction": 0.0512615454276103, + "calibration_in_the_large": -0.02104966738703501, + "expected_calibration_error_10bin": 0.022819370809075094, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.768554344002814 + }, + "E88": { + "valid": 2817, + "positives": 15, + "negatives": 2802, + "auroc": 0.8085415179633595, + "auprc": 0.11125868933175892, + "brier": 0.005073087715360228, + "calibration": { + "observed_rate": 0.005324813631522897, + "mean_prediction": 0.0035769430710632165, + "calibration_in_the_large": -0.0017478705604596803, + "expected_calibration_error_10bin": 0.0018951361710208409, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "E89": { + "valid": 2780, + "positives": 8, + "negatives": 2772, + "auroc": 0.5593434343434344, + "auprc": 0.005558640900125226, + "brier": 0.0028723845142873813, + "calibration": { + "observed_rate": 0.0028776978417266188, + "mean_prediction": 0.0019090548888742488, + "calibration_in_the_large": -0.00096864295285237, + "expected_calibration_error_10bin": 0.00096864295285237, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + "F02": { + "valid": 2802, + "positives": 4, + "negatives": 2798, + "auroc": 0.8082558970693352, + "auprc": 0.01087291511835569, + "brier": 0.0015111473790202382, + "calibration": { + "observed_rate": 0.0014275517487508922, + "mean_prediction": 0.0032523714457184535, + "calibration_in_the_large": 0.0018248196969675612, + "expected_calibration_error_10bin": 0.001824819696967561, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "F03": { + "valid": 2739, + "positives": 18, + "negatives": 2721, + "auroc": 0.893931969455674, + "auprc": 0.04554335323039531, + "brier": 0.006484642545813823, + "calibration": { + "observed_rate": 0.0065717415115005475, + "mean_prediction": 0.006913213395833296, + "calibration_in_the_large": 0.00034147188433274883, + "expected_calibration_error_10bin": 0.0016139359746502216, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + "F05": { + "valid": 2750, + "positives": 33, + "negatives": 2717, + "auroc": 0.7587022228170553, + "auprc": 0.031073952453694036, + "brier": 0.011827674241047992, + "calibration": { + "observed_rate": 0.012, + "mean_prediction": 0.009091073348280753, + "calibration_in_the_large": -0.002908926651719247, + "expected_calibration_error_10bin": 0.0035009761799712426, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + "F06": { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.613588110403397, + "auprc": 0.0014500601560121845, + "brier": 0.0007181924449787503, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.0020030757934539328, + "calibration_in_the_large": 0.0012958622149532254, + "expected_calibration_error_10bin": 0.0012958622149532254, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "F10": { + "valid": 2560, + "positives": 17, + "negatives": 2543, + "auroc": 0.7892715875182161, + "auprc": 0.11814155796236496, + "brier": 0.006351782052845779, + "calibration": { + "observed_rate": 0.006640625, + "mean_prediction": 0.004414225258528859, + "calibration_in_the_large": -0.002226399741471141, + "expected_calibration_error_10bin": 0.002226399741471141, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + "F11": { + "valid": 2741, + "positives": 11, + "negatives": 2730, + "auroc": 0.8650682650682651, + "auprc": 0.0364954288598319, + "brier": 0.003950893778077481, + "calibration": { + "observed_rate": 0.004013133892739876, + "mean_prediction": 0.0032167748707078495, + "calibration_in_the_large": -0.0007963590220320268, + "expected_calibration_error_10bin": 0.0008829080649915634, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + "F12": { + "valid": 2777, + "positives": 13, + "negatives": 2764, + "auroc": 0.9109707224757876, + "auprc": 0.030477049599037208, + "brier": 0.004629525158772457, + "calibration": { + "observed_rate": 0.004681310767014764, + "mean_prediction": 0.0021502628060765853, + "calibration_in_the_large": -0.002531047960938179, + "expected_calibration_error_10bin": 0.002531047960938179, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + "F14": { + "valid": 2787, + "positives": 10, + "negatives": 2777, + "auroc": 0.9276917536910335, + "auprc": 0.04031315215498811, + "brier": 0.003555917235831282, + "calibration": { + "observed_rate": 0.003588087549336204, + "mean_prediction": 0.0018203911107861138, + "calibration_in_the_large": -0.0017676964385500901, + "expected_calibration_error_10bin": 0.0021207507895560137, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "F15": { + "valid": 2823, + "positives": 8, + "negatives": 2815, + "auroc": 0.9542628774422736, + "auprc": 0.20743190532028863, + "brier": 0.0027028510312046526, + "calibration": { + "observed_rate": 0.0028338646829613886, + "mean_prediction": 0.0014976131125820442, + "calibration_in_the_large": -0.0013362515703793443, + "expected_calibration_error_10bin": 0.0013362515703793443, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "F17": { + "valid": 2426, + "positives": 33, + "negatives": 2393, + "auroc": 0.877204979169041, + "auprc": 0.08314277017140524, + "brier": 0.013062196914807638, + "calibration": { + "observed_rate": 0.013602638087386645, + "mean_prediction": 0.00827179701520836, + "calibration_in_the_large": -0.005330841072178285, + "expected_calibration_error_10bin": 0.0055169352372231644, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8533239535701723 + }, + "F19": { + "valid": 2801, + "positives": 13, + "negatives": 2788, + "auroc": 0.9351616819335614, + "auprc": 0.17831807997853463, + "brier": 0.004307022070527467, + "calibration": { + "observed_rate": 0.0046411995715815784, + "mean_prediction": 0.003315570494221412, + "calibration_in_the_large": -0.0013256290773601665, + "expected_calibration_error_10bin": 0.001499611002942507, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "F20": { + "valid": 2808, + "positives": 4, + "negatives": 2804, + "auroc": 0.8453994293865906, + "auprc": 0.013320580694564465, + "brier": 0.0014205653690931752, + "calibration": { + "observed_rate": 0.0014245014245014246, + "mean_prediction": 0.0013688567636929029, + "calibration_in_the_large": -5.564466080852171e-05, + "expected_calibration_error_10bin": 5.564466080852171e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9876890608512136 + }, + "F22": { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.926950354609929, + "auprc": 0.004830917874396135, + "brier": 0.00038104832048991677, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0022579219830805896, + "calibration_in_the_large": 0.0019034377576286222, + "expected_calibration_error_10bin": 0.0019034377576286222, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "F25": { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.8432765151515151, + "auprc": 0.009077811508720097, + "brier": 0.001073737317254248, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.001478555703332326, + "calibration_in_the_large": 0.000414348537670744, + "expected_calibration_error_10bin": 0.000414348537670744, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "F29": { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.8149124374553253, + "auprc": 0.01773424628842214, + "brier": 0.002835533976637312, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.00110214259201571, + "calibration_in_the_large": -0.0017488909076279109, + "expected_calibration_error_10bin": 0.0017488909076279109, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "F31": { + "valid": 2724, + "positives": 9, + "negatives": 2715, + "auroc": 0.9219971352568037, + "auprc": 0.03513753100324224, + "brier": 0.0032427592689722984, + "calibration": { + "observed_rate": 0.003303964757709251, + "mean_prediction": 0.003398614887690217, + "calibration_in_the_large": 9.46501299809656e-05, + "expected_calibration_error_10bin": 9.46501299809656e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9581428068941259 + }, + "F32": { + "valid": 2200, + "positives": 72, + "negatives": 2128, + "auroc": 0.6888706140350878, + "auprc": 0.06849926409374087, + "brier": 0.0315711214433349, + "calibration": { + "observed_rate": 0.03272727272727273, + "mean_prediction": 0.02763315269284331, + "calibration_in_the_large": -0.005094120034429418, + "expected_calibration_error_10bin": 0.009691637340583837, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7738304607808653 + }, + "F33": { + "valid": 2800, + "positives": 12, + "negatives": 2788, + "auroc": 0.8409851745576279, + "auprc": 0.02263557655084457, + "brier": 0.004313444935458861, + "calibration": { + "observed_rate": 0.004285714285714286, + "mean_prediction": 0.004558730113112688, + "calibration_in_the_large": 0.0002730158273984021, + "expected_calibration_error_10bin": 0.0004670368311339453, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + "F39": { + "valid": 2801, + "positives": 11, + "negatives": 2790, + "auroc": 0.704138155751059, + "auprc": 0.02344714886029102, + "brier": 0.0038900345210111185, + "calibration": { + "observed_rate": 0.003927168868261335, + "mean_prediction": 0.0020819777720988523, + "calibration_in_the_large": -0.0018451910961624829, + "expected_calibration_error_10bin": 0.0018451910961624829, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "F41": { + "valid": 2247, + "positives": 80, + "negatives": 2167, + "auroc": 0.7327930318412552, + "auprc": 0.0941069211846112, + "brier": 0.033662355033850636, + "calibration": { + "observed_rate": 0.035603026257231864, + "mean_prediction": 0.03432463991524536, + "calibration_in_the_large": -0.001278386341986501, + "expected_calibration_error_10bin": 0.006443344934979843, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7903622933520928 + }, + "F43": { + "valid": 2734, + "positives": 21, + "negatives": 2713, + "auroc": 0.740596422866972, + "auprc": 0.028112849906531744, + "brier": 0.007634414934199787, + "calibration": { + "observed_rate": 0.007681053401609363, + "mean_prediction": 0.006973365897955898, + "calibration_in_the_large": -0.0007076875036534655, + "expected_calibration_error_10bin": 0.001342820503865454, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "F60": { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.9452347083926032, + "auprc": 0.09565194277971983, + "brier": 0.002038088795613149, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.003364060592218277, + "calibration_in_the_large": 0.0012348909683715771, + "expected_calibration_error_10bin": 0.0012348909683715771, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "F90": { + "valid": 2775, + "positives": 8, + "negatives": 2767, + "auroc": 0.9059902421395013, + "auprc": 0.03675780613698883, + "brier": 0.002838048892892355, + "calibration": { + "observed_rate": 0.002882882882882883, + "mean_prediction": 0.0033186088640178315, + "calibration_in_the_large": 0.00043572598113494855, + "expected_calibration_error_10bin": 0.00043572598113494855, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + "G25": { + "valid": 2774, + "positives": 9, + "negatives": 2765, + "auroc": 0.730600763512156, + "auprc": 0.00709645497279811, + "brier": 0.0032427769639077767, + "calibration": { + "observed_rate": 0.0032444124008651765, + "mean_prediction": 0.003316573552165695, + "calibration_in_the_large": 7.21611513005184e-05, + "expected_calibration_error_10bin": 7.21611513005184e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "G31": { + "valid": 2802, + "positives": 9, + "negatives": 2793, + "auroc": 0.7860524326689741, + "auprc": 0.016444491742442502, + "brier": 0.0032073337697498044, + "calibration": { + "observed_rate": 0.0032119914346895075, + "mean_prediction": 0.0027890297080474928, + "calibration_in_the_large": -0.0004229617266420147, + "expected_calibration_error_10bin": 0.0005725228149109809, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "G40": { + "valid": 2723, + "positives": 25, + "negatives": 2698, + "auroc": 0.7146478873239437, + "auprc": 0.04064665814395168, + "brier": 0.009113990773116571, + "calibration": { + "observed_rate": 0.00918105031215571, + "mean_prediction": 0.007187233951999684, + "calibration_in_the_large": -0.0019938163601560263, + "expected_calibration_error_10bin": 0.0028760185565749378, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + "G43": { + "valid": 2725, + "positives": 15, + "negatives": 2710, + "auroc": 0.758130381303813, + "auprc": 0.033816845863185334, + "brier": 0.005434417411399636, + "calibration": { + "observed_rate": 0.005504587155963303, + "mean_prediction": 0.0033392021102817953, + "calibration_in_the_large": -0.0021653850456815078, + "expected_calibration_error_10bin": 0.0021653850456815078, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9584945480126627 + }, + "G44": { + "valid": 2805, + "positives": 7, + "negatives": 2798, + "auroc": 0.5955274175431431, + "auprc": 0.0118193781417504, + "brier": 0.002491125655680124, + "calibration": { + "observed_rate": 0.0024955436720142605, + "mean_prediction": 0.0014368430952774699, + "calibration_in_the_large": -0.0010587005767367906, + "expected_calibration_error_10bin": 0.0010587005767367906, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "G47": { + "valid": 2315, + "positives": 89, + "negatives": 2226, + "auroc": 0.6760148197502448, + "auprc": 0.07696061058416427, + "brier": 0.03649283256009902, + "calibration": { + "observed_rate": 0.03844492440604751, + "mean_prediction": 0.033525705136550836, + "calibration_in_the_large": -0.004919219269496677, + "expected_calibration_error_10bin": 0.00637474477949369, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8142806894125924 + }, + "G51": { + "valid": 2834, + "positives": 0, + "negatives": 2834, + "auroc": null, + "auprc": null, + "brier": 5.710779425035261e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0006261236643799135, + "calibration_in_the_large": 0.0006261236643799135, + "expected_calibration_error_10bin": 0.0006261236643799135, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9968343299331692 + }, + "G62": { + "valid": 2751, + "positives": 36, + "negatives": 2715, + "auroc": 0.8102005320237364, + "auprc": 0.10161998773712022, + "brier": 0.012477929914684346, + "calibration": { + "observed_rate": 0.013086150490730643, + "mean_prediction": 0.008040315119336415, + "calibration_in_the_large": -0.005045835371394228, + "expected_calibration_error_10bin": 0.00630542083133462, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "G81": { + "valid": 2789, + "positives": 15, + "negatives": 2774, + "auroc": 0.7265561163181927, + "auprc": 0.04476422555150443, + "brier": 0.005299247905797793, + "calibration": { + "observed_rate": 0.005378271782000717, + "mean_prediction": 0.003961063486313302, + "calibration_in_the_large": -0.0014172082956874152, + "expected_calibration_error_10bin": 0.0015213258665631231, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "G83": { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.6246012052463665, + "auprc": 0.005403876116952225, + "brier": 0.0010642778757698865, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0014259095701234313, + "calibration_in_the_large": 0.00036358662394779377, + "expected_calibration_error_10bin": 0.00036358662394779377, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "G89": { + "valid": 2537, + "positives": 71, + "negatives": 2466, + "auroc": 0.7672400991512742, + "auprc": 0.10230990151357185, + "brier": 0.02632447525100623, + "calibration": { + "observed_rate": 0.02798581001182499, + "mean_prediction": 0.018942552196659634, + "calibration_in_the_large": -0.009043257815165354, + "expected_calibration_error_10bin": 0.00929522478611054, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8923672177277524 + }, + "G90": { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 1.792166973387256e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0020093300639380317, + "calibration_in_the_large": 0.0020093300639380317, + "expected_calibration_error_10bin": 0.0020093300639380317, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "G92": { + "valid": 2733, + "positives": 48, + "negatives": 2685, + "auroc": 0.7859559279950341, + "auprc": 0.05378642837137795, + "brier": 0.017002645584976956, + "calibration": { + "observed_rate": 0.01756311745334797, + "mean_prediction": 0.014713598967477568, + "calibration_in_the_large": -0.0028495184858704017, + "expected_calibration_error_10bin": 0.003939792057722279, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + "G93": { + "valid": 2656, + "positives": 56, + "negatives": 2600, + "auroc": 0.7972527472527473, + "auprc": 0.07100215701312716, + "brier": 0.020140677324843054, + "calibration": { + "observed_rate": 0.02108433734939759, + "mean_prediction": 0.015426707003845044, + "calibration_in_the_large": -0.005657630345552545, + "expected_calibration_error_10bin": 0.005657630345552545, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9342244108336265 + }, + "G99": { + "valid": 2841, + "positives": 1, + "negatives": 2840, + "auroc": 0.4221830985915493, + "auprc": 0.0006090133982947625, + "brier": 0.0003542346406579184, + "calibration": { + "observed_rate": 0.00035198873636043646, + "mean_prediction": 0.0005112272886527154, + "calibration_in_the_large": 0.00015923855229227894, + "expected_calibration_error_10bin": 0.00015923855229227894, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9992965177629265 + }, + "H10": { + "valid": 2832, + "positives": 6, + "negatives": 2826, + "auroc": 0.7517103090351498, + "auprc": 0.00666243370910224, + "brier": 0.0021132184447879856, + "calibration": { + "observed_rate": 0.00211864406779661, + "mean_prediction": 0.0010705848412238335, + "calibration_in_the_large": -0.0010480592265727767, + "expected_calibration_error_10bin": 0.0010480592265727767, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + "H26": { + "valid": 2819, + "positives": 0, + "negatives": 2819, + "auroc": null, + "auprc": null, + "brier": 1.8883339758196673e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0021964826368873836, + "calibration_in_the_large": 0.0021964826368873836, + "expected_calibration_error_10bin": 0.0021964826368873836, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "H35": { + "valid": 2806, + "positives": 6, + "negatives": 2800, + "auroc": 0.7414880952380952, + "auprc": 0.0071029969298665625, + "brier": 0.002133067192907376, + "calibration": { + "observed_rate": 0.0021382751247327157, + "mean_prediction": 0.0014868042014481585, + "calibration_in_the_large": -0.0006514709232845572, + "expected_calibration_error_10bin": 0.0006514709232845572, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "H40": { + "valid": 2750, + "positives": 12, + "negatives": 2738, + "auroc": 0.7188032627221816, + "auprc": 0.024079070027713017, + "brier": 0.004326360284604882, + "calibration": { + "observed_rate": 0.004363636363636364, + "mean_prediction": 0.004348998277397186, + "calibration_in_the_large": -1.4638086239178102e-05, + "expected_calibration_error_10bin": 1.4638086239178102e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + "H53": { + "valid": 2790, + "positives": 15, + "negatives": 2775, + "auroc": 0.5877237237237237, + "auprc": 0.01532570352109092, + "brier": 0.005361187401439963, + "calibration": { + "observed_rate": 0.005376344086021506, + "mean_prediction": 0.0060477511277989785, + "calibration_in_the_large": 0.0006714070417774727, + "expected_calibration_error_10bin": 0.000671407041777473, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + "H54": { + "valid": 2809, + "positives": 4, + "negatives": 2805, + "auroc": 0.4606951871657754, + "auprc": 0.0015853214535154116, + "brier": 0.0014289418422717317, + "calibration": { + "observed_rate": 0.001423994304022784, + "mean_prediction": 0.0014050461319478067, + "calibration_in_the_large": -1.8948172074977282e-05, + "expected_calibration_error_10bin": 1.8948172074977282e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "H91": { + "valid": 2791, + "positives": 7, + "negatives": 2784, + "auroc": 0.8128591954022989, + "auprc": 0.02011695113249203, + "brier": 0.0024867765296618088, + "calibration": { + "observed_rate": 0.0025080616266571123, + "mean_prediction": 0.002357080882865594, + "calibration_in_the_large": -0.00015098074379151817, + "expected_calibration_error_10bin": 0.00015098074379151817, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9817094618360886 + }, + "I07": { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.8462903798367057, + "auprc": 0.012294315636615953, + "brier": 0.002115700640911631, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.001267594302003661, + "calibration_in_the_large": -0.0008578042102173804, + "expected_calibration_error_10bin": 0.0008578042102173804, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "I08": { + "valid": 2767, + "positives": 14, + "negatives": 2753, + "auroc": 0.8684292460173317, + "auprc": 0.03730044130836986, + "brier": 0.005011412866296074, + "calibration": { + "observed_rate": 0.005059631369714492, + "mean_prediction": 0.005290815194337813, + "calibration_in_the_large": 0.00023118382462332127, + "expected_calibration_error_10bin": 0.0004686275618872956, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9732676749912065 + }, + "I10": { + "valid": 1498, + "positives": 43, + "negatives": 1455, + "auroc": 0.6889315112283225, + "auprc": 0.06249822416741957, + "brier": 0.027660395203509047, + "calibration": { + "observed_rate": 0.02870493991989319, + "mean_prediction": 0.025256585656635425, + "calibration_in_the_large": -0.003448354263257767, + "expected_calibration_error_10bin": 0.004348268074814096, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5269081955680619 + }, + "I11": { + "valid": 2676, + "positives": 57, + "negatives": 2619, + "auroc": 0.8048203747245165, + "auprc": 0.07953111963570378, + "brier": 0.020375526557747763, + "calibration": { + "observed_rate": 0.021300448430493273, + "mean_prediction": 0.01655718186427303, + "calibration_in_the_large": -0.004743266566220244, + "expected_calibration_error_10bin": 0.007862871180949192, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9412592332043616 + }, + "I12": { + "valid": 2552, + "positives": 30, + "negatives": 2522, + "auroc": 0.8381575469204335, + "auprc": 0.09386944885947145, + "brier": 0.011296603684665932, + "calibration": { + "observed_rate": 0.011755485893416929, + "mean_prediction": 0.011318934226860734, + "calibration_in_the_large": -0.0004365516665561942, + "expected_calibration_error_10bin": 0.003530351861654865, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8976433345058037 + }, + "I13": { + "valid": 2727, + "positives": 31, + "negatives": 2696, + "auroc": 0.9106442040777256, + "auprc": 0.2140478770030432, + "brier": 0.00995444758528386, + "calibration": { + "observed_rate": 0.011367803447011368, + "mean_prediction": 0.013831286890255269, + "calibration_in_the_large": 0.0024634834432439006, + "expected_calibration_error_10bin": 0.00343916474747611, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9591980302497362 + }, + "I16": { + "valid": 2390, + "positives": 13, + "negatives": 2377, + "auroc": 0.8891298016245429, + "auprc": 0.03716113532427007, + "brier": 0.005338445533287883, + "calibration": { + "observed_rate": 0.005439330543933054, + "mean_prediction": 0.004533145508802472, + "calibration_in_the_large": -0.0009061850351305819, + "expected_calibration_error_10bin": 0.0009941936124853636, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8406612733028491 + }, + "I21": { + "valid": 2671, + "positives": 23, + "negatives": 2648, + "auroc": 0.8184848285826876, + "auprc": 0.033821733843695086, + "brier": 0.008612109415048766, + "calibration": { + "observed_rate": 0.008611007113440658, + "mean_prediction": 0.014409284792844382, + "calibration_in_the_large": 0.0057982776794037235, + "expected_calibration_error_10bin": 0.0057982776794037235, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + "I24": { + "valid": 2809, + "positives": 10, + "negatives": 2799, + "auroc": 0.8894962486602358, + "auprc": 0.026903376135757363, + "brier": 0.003515230644134986, + "calibration": { + "observed_rate": 0.00355998576005696, + "mean_prediction": 0.003360341338773035, + "calibration_in_the_large": -0.00019964442128392497, + "expected_calibration_error_10bin": 0.00019964442128392497, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "I25": { + "valid": 2243, + "positives": 46, + "negatives": 2197, + "auroc": 0.8344580554511092, + "auprc": 0.08868266003676617, + "brier": 0.019494825006023047, + "calibration": { + "observed_rate": 0.02050824788230049, + "mean_prediction": 0.014798171179305332, + "calibration_in_the_large": -0.005710076702995158, + "expected_calibration_error_10bin": 0.006498630023182145, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7889553288779458 + }, + "I26": { + "valid": 2760, + "positives": 20, + "negatives": 2740, + "auroc": 0.7530839416058395, + "auprc": 0.13266450189320567, + "brier": 0.006883535713720256, + "calibration": { + "observed_rate": 0.007246376811594203, + "mean_prediction": 0.00987565006424489, + "calibration_in_the_large": 0.0026292732526506874, + "expected_calibration_error_10bin": 0.0034871639307074596, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9708054871614492 + }, + "I27": { + "valid": 2716, + "positives": 40, + "negatives": 2676, + "auroc": 0.8549140508221226, + "auprc": 0.08029155730668135, + "brier": 0.01413260167745514, + "calibration": { + "observed_rate": 0.014727540500736377, + "mean_prediction": 0.009526245829383242, + "calibration_in_the_large": -0.005201294671353135, + "expected_calibration_error_10bin": 0.00675254056606962, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + "I31": { + "valid": 2793, + "positives": 17, + "negatives": 2776, + "auroc": 0.7643880318698084, + "auprc": 0.017397334649002578, + "brier": 0.0060506184539343266, + "calibration": { + "observed_rate": 0.006086645184389545, + "mean_prediction": 0.003763443953226211, + "calibration_in_the_large": -0.002323201231163334, + "expected_calibration_error_10bin": 0.0023960704276067926, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "I34": { + "valid": 2753, + "positives": 19, + "negatives": 2734, + "auroc": 0.7471412620798522, + "auprc": 0.016311330501458703, + "brier": 0.007107986213489613, + "calibration": { + "observed_rate": 0.006901561932437341, + "mean_prediction": 0.009058608483006006, + "calibration_in_the_large": 0.0021570465505686646, + "expected_calibration_error_10bin": 0.002157046550568666, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9683432993316918 + }, + "I35": { + "valid": 2723, + "positives": 7, + "negatives": 2716, + "auroc": 0.6355459709657059, + "auprc": 0.006992351205398631, + "brier": 0.0026056794787169333, + "calibration": { + "observed_rate": 0.002570694087403599, + "mean_prediction": 0.0038033696806584623, + "calibration_in_the_large": 0.0012326755932548636, + "expected_calibration_error_10bin": 0.0012326755932548636, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + "I42": { + "valid": 2740, + "positives": 14, + "negatives": 2726, + "auroc": 0.9205009957027566, + "auprc": 0.04296869413437488, + "brier": 0.005003049287717162, + "calibration": { + "observed_rate": 0.0051094890510948905, + "mean_prediction": 0.004758008221589963, + "calibration_in_the_large": -0.0003514808295049278, + "expected_calibration_error_10bin": 0.000553747772133037, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + "I44": { + "valid": 2722, + "positives": 24, + "negatives": 2698, + "auroc": 0.7978749691129231, + "auprc": 0.03950649941256082, + "brier": 0.008631425639254729, + "calibration": { + "observed_rate": 0.00881704628949302, + "mean_prediction": 0.006213089782393222, + "calibration_in_the_large": -0.002603956507099798, + "expected_calibration_error_10bin": 0.0026876369503520082, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9574393246570524 + }, + "I45": { + "valid": 2766, + "positives": 22, + "negatives": 2744, + "auroc": 0.6735190829578585, + "auprc": 0.014593353747896219, + "brier": 0.00790034602129538, + "calibration": { + "observed_rate": 0.007953723788864787, + "mean_prediction": 0.006155835984798783, + "calibration_in_the_large": -0.0017978878040660045, + "expected_calibration_error_10bin": 0.0017978878040660045, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9729159338726697 + }, + "I46": { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.79723991507431, + "auprc": 0.008552560421686301, + "brier": 0.0017601733667197644, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.001110442956067974, + "calibration_in_the_large": -0.0006557174112933823, + "expected_calibration_error_10bin": 0.0006557174112933823, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "I47": { + "valid": 2716, + "positives": 19, + "negatives": 2697, + "auroc": 0.6148156821419511, + "auprc": 0.00969316830303286, + "brier": 0.007063441389539944, + "calibration": { + "observed_rate": 0.006995581737849779, + "mean_prediction": 0.00989818417145749, + "calibration_in_the_large": 0.0029026024336077103, + "expected_calibration_error_10bin": 0.0029026024336077103, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + "I48": { + "valid": 2385, + "positives": 32, + "negatives": 2353, + "auroc": 0.7410486612834679, + "auprc": 0.034705970855892436, + "brier": 0.01390464991195817, + "calibration": { + "observed_rate": 0.013417190775681341, + "mean_prediction": 0.020209974092367758, + "calibration_in_the_large": 0.006792783316686417, + "expected_calibration_error_10bin": 0.006792783316686417, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8389025677101654 + }, + "I49": { + "valid": 2734, + "positives": 19, + "negatives": 2715, + "auroc": 0.6736648250460405, + "auprc": 0.019574128360164828, + "brier": 0.006893252335855647, + "calibration": { + "observed_rate": 0.006949524506217996, + "mean_prediction": 0.005097442773719122, + "calibration_in_the_large": -0.0018520817324988734, + "expected_calibration_error_10bin": 0.0018520817324988734, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "I50": { + "valid": 2415, + "positives": 52, + "negatives": 2363, + "auroc": 0.8179058563104268, + "auprc": 0.09567378873799676, + "brier": 0.0208557877312703, + "calibration": { + "observed_rate": 0.021532091097308487, + "mean_prediction": 0.022316457786619365, + "calibration_in_the_large": 0.0007843666893108774, + "expected_calibration_error_10bin": 0.004881331112863535, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.849454801266268 + }, + "I51": { + "valid": 2807, + "positives": 10, + "negatives": 2797, + "auroc": 0.791955666785842, + "auprc": 0.11199618136311437, + "brier": 0.0035089674968141874, + "calibration": { + "observed_rate": 0.003562522265764161, + "mean_prediction": 0.0025897184843343165, + "calibration_in_the_large": -0.0009728037814298444, + "expected_calibration_error_10bin": 0.0009728037814298444, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "I61": { + "valid": 2802, + "positives": 9, + "negatives": 2793, + "auroc": 0.839161395552373, + "auprc": 0.01606340593448037, + "brier": 0.0031921240605519902, + "calibration": { + "observed_rate": 0.0032119914346895075, + "mean_prediction": 0.0024146652023210803, + "calibration_in_the_large": -0.0007973262323684271, + "expected_calibration_error_10bin": 0.0007973262323684271, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "I63": { + "valid": 2735, + "positives": 16, + "negatives": 2719, + "auroc": 0.7055673041559397, + "auprc": 0.014182634941082867, + "brier": 0.005829171568027225, + "calibration": { + "observed_rate": 0.005850091407678245, + "mean_prediction": 0.005405605259542762, + "calibration_in_the_large": -0.00044448614813548306, + "expected_calibration_error_10bin": 0.00044448614813548306, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9620119591980303 + }, + "I65": { + "valid": 2774, + "positives": 6, + "negatives": 2768, + "auroc": 0.7165823699421965, + "auprc": 0.008223695210070941, + "brier": 0.002212001160322597, + "calibration": { + "observed_rate": 0.0021629416005767843, + "mean_prediction": 0.005871951179420765, + "calibration_in_the_large": 0.0037090095788439807, + "expected_calibration_error_10bin": 0.0037090095788439807, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "I67": { + "valid": 2773, + "positives": 5, + "negatives": 2768, + "auroc": 0.7976156069364162, + "auprc": 0.006416670052493601, + "brier": 0.0018454156518348565, + "calibration": { + "observed_rate": 0.0018031013342949874, + "mean_prediction": 0.0038094444661212873, + "calibration_in_the_large": 0.0020063431318262997, + "expected_calibration_error_10bin": 0.0020063431318262997, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + "I69": { + "valid": 2752, + "positives": 19, + "negatives": 2733, + "auroc": 0.7548288944094594, + "auprc": 0.026922135302738244, + "brier": 0.006841196305444108, + "calibration": { + "observed_rate": 0.006904069767441861, + "mean_prediction": 0.006244493571757815, + "calibration_in_the_large": -0.0006595761956840456, + "expected_calibration_error_10bin": 0.0012072524075134935, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9679915582131551 + }, + "I70": { + "valid": 2771, + "positives": 12, + "negatives": 2759, + "auroc": 0.8241210583544762, + "auprc": 0.041432025708309256, + "brier": 0.004267921612631884, + "calibration": { + "observed_rate": 0.004330566582461205, + "mean_prediction": 0.004397469812505889, + "calibration_in_the_large": 6.690323004468392e-05, + "expected_calibration_error_10bin": 0.0004350257466637113, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9746746394653535 + }, + "I71": { + "valid": 2769, + "positives": 5, + "negatives": 2764, + "auroc": 0.7312590448625181, + "auprc": 0.010446015380826592, + "brier": 0.0018159909478774482, + "calibration": { + "observed_rate": 0.0018057060310581437, + "mean_prediction": 0.003990563397997314, + "calibration_in_the_large": 0.00218485736693917, + "expected_calibration_error_10bin": 0.00218485736693917, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.97397115722828 + }, + "I72": { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.7087482219061166, + "auprc": 0.010741512396077936, + "brier": 0.00212256750502436, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.001990072412416783, + "calibration_in_the_large": -0.0001390972114299169, + "expected_calibration_error_10bin": 0.0001390972114299169, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "I73": { + "valid": 2734, + "positives": 10, + "negatives": 2724, + "auroc": 0.8651248164464024, + "auprc": 0.10943283457706157, + "brier": 0.0034917102362557444, + "calibration": { + "observed_rate": 0.0036576444769568397, + "mean_prediction": 0.006172249006341611, + "calibration_in_the_large": 0.002514604529384771, + "expected_calibration_error_10bin": 0.002893277895535142, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "I74": { + "valid": 2821, + "positives": 5, + "negatives": 2816, + "auroc": 0.7810369318181818, + "auprc": 0.01191474480813166, + "brier": 0.0017646688068992617, + "calibration": { + "observed_rate": 0.001772421127259837, + "mean_prediction": 0.001235761619906457, + "calibration_in_the_large": -0.0005366595073533799, + "expected_calibration_error_10bin": 0.0005366595073533799, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "I77": { + "valid": 2785, + "positives": 6, + "negatives": 2779, + "auroc": 0.6435168525848627, + "auprc": 0.006115488396683619, + "brier": 0.002162702605142909, + "calibration": { + "observed_rate": 0.0021543985637342907, + "mean_prediction": 0.0032923809836872125, + "calibration_in_the_large": 0.0011379824199529219, + "expected_calibration_error_10bin": 0.0011379824199529219, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "I80": { + "valid": 2827, + "positives": 5, + "negatives": 2822, + "auroc": 0.9203401842664777, + "auprc": 0.050539179038895946, + "brier": 0.0017452680739701223, + "calibration": { + "observed_rate": 0.0017686593562079944, + "mean_prediction": 0.0012443907454378548, + "calibration_in_the_large": -0.0005242686107701396, + "expected_calibration_error_10bin": 0.0005242686107701396, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "I81": { + "valid": 2826, + "positives": 9, + "negatives": 2817, + "auroc": 0.8314203447323788, + "auprc": 0.036347118892967795, + "brier": 0.00320921155623017, + "calibration": { + "observed_rate": 0.0031847133757961785, + "mean_prediction": 0.0021132429161146624, + "calibration_in_the_large": -0.001071470459681516, + "expected_calibration_error_10bin": 0.002372387531962473, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "I82": { + "valid": 2739, + "positives": 35, + "negatives": 2704, + "auroc": 0.757343617920541, + "auprc": 0.04379219768066706, + "brier": 0.012476656708554705, + "calibration": { + "observed_rate": 0.012778386272362175, + "mean_prediction": 0.010070563086940812, + "calibration_in_the_large": -0.002707823185421364, + "expected_calibration_error_10bin": 0.0036787202302051986, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + "I85": { + "valid": 2793, + "positives": 9, + "negatives": 2784, + "auroc": 0.9890644955300127, + "auprc": 0.3087503480924534, + "brier": 0.0028385123957870204, + "calibration": { + "observed_rate": 0.00322234156820623, + "mean_prediction": 0.0016847545774906136, + "calibration_in_the_large": -0.0015375869907156164, + "expected_calibration_error_10bin": 0.0022436133446472823, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "I87": { + "valid": 2780, + "positives": 14, + "negatives": 2766, + "auroc": 0.717074682367524, + "auprc": 0.014785426712179115, + "brier": 0.005005987477562608, + "calibration": { + "observed_rate": 0.005035971223021582, + "mean_prediction": 0.003453685642162461, + "calibration_in_the_large": -0.0015822855808591213, + "expected_calibration_error_10bin": 0.0015822855808591213, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + "I89": { + "valid": 2826, + "positives": 5, + "negatives": 2821, + "auroc": 0.8484934420418292, + "auprc": 0.006798886494641165, + "brier": 0.0017650985895462375, + "calibration": { + "observed_rate": 0.0017692852087756545, + "mean_prediction": 0.0010801631764813097, + "calibration_in_the_large": -0.0006891220322943448, + "expected_calibration_error_10bin": 0.0006891220322943448, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "I95": { + "valid": 2485, + "positives": 104, + "negatives": 2381, + "auroc": 0.742100927212225, + "auprc": 0.10352808813170841, + "brier": 0.03893420439458631, + "calibration": { + "observed_rate": 0.041851106639839035, + "mean_prediction": 0.03455501310480477, + "calibration_in_the_large": -0.0072960935350342634, + "expected_calibration_error_10bin": 0.007796866035696038, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.874076679563841 + }, + "I96": { + "valid": 2831, + "positives": 6, + "negatives": 2825, + "auroc": 0.8153392330383481, + "auprc": 0.1896661053019436, + "brier": 0.002066210449213989, + "calibration": { + "observed_rate": 0.0021193924408336277, + "mean_prediction": 0.002033851834614038, + "calibration_in_the_large": -8.554060621958955e-05, + "expected_calibration_error_10bin": 8.554060621958955e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "I97": { + "valid": 2740, + "positives": 12, + "negatives": 2728, + "auroc": 0.7394000488758553, + "auprc": 0.014712281755235264, + "brier": 0.0043590862784264085, + "calibration": { + "observed_rate": 0.004379562043795621, + "mean_prediction": 0.0046757159441873945, + "calibration_in_the_large": 0.0002961539003917737, + "expected_calibration_error_10bin": 0.000296153900391774, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + "J02": { + "valid": 2825, + "positives": 3, + "negatives": 2822, + "auroc": 0.8351051263879046, + "auprc": 0.004697867257404251, + "brier": 0.0010809643904898933, + "calibration": { + "observed_rate": 0.0010619469026548673, + "mean_prediction": 0.0016501681903888167, + "calibration_in_the_large": 0.0005882212877339494, + "expected_calibration_error_10bin": 0.0005882212877339494, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J06": { + "valid": 2816, + "positives": 12, + "negatives": 2804, + "auroc": 0.6365014265335235, + "auprc": 0.011290923445593666, + "brier": 0.004303559792299807, + "calibration": { + "observed_rate": 0.004261363636363636, + "mean_prediction": 0.003742510184617293, + "calibration_in_the_large": -0.0005188534517463431, + "expected_calibration_error_10bin": 0.0009668226686843895, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "J12": { + "valid": 2829, + "positives": 1, + "negatives": 2828, + "auroc": 0.993988684582744, + "auprc": 0.05555555555555555, + "brier": 0.0004532866638162191, + "calibration": { + "observed_rate": 0.0003534817956875221, + "mean_prediction": 0.0034504663792695113, + "calibration_in_the_large": 0.0030969845835819893, + "expected_calibration_error_10bin": 0.0030969845835819893, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J15": { + "valid": 2795, + "positives": 15, + "negatives": 2780, + "auroc": 0.7350119904076738, + "auprc": 0.016357735622211433, + "brier": 0.005340276598130697, + "calibration": { + "observed_rate": 0.005366726296958855, + "mean_prediction": 0.003452809073790772, + "calibration_in_the_large": -0.0019139172231680828, + "expected_calibration_error_10bin": 0.0020027360183074165, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9831164263102357 + }, + "J18": { + "valid": 2671, + "positives": 64, + "negatives": 2607, + "auroc": 0.7679145090141926, + "auprc": 0.06653784718623833, + "brier": 0.023087745912199493, + "calibration": { + "observed_rate": 0.023961063272182705, + "mean_prediction": 0.015182388195759086, + "calibration_in_the_large": -0.008778675076423619, + "expected_calibration_error_10bin": 0.010439687218773542, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + "J30": { + "valid": 2815, + "positives": 7, + "negatives": 2808, + "auroc": 0.7202889702889703, + "auprc": 0.01693028493735067, + "brier": 0.0024723637872612393, + "calibration": { + "observed_rate": 0.002486678507992895, + "mean_prediction": 0.0016419690945083366, + "calibration_in_the_large": -0.0008447094134845586, + "expected_calibration_error_10bin": 0.0008447094134845586, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + "J32": { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.5281216837637072, + "auprc": 0.003503996436613793, + "brier": 0.000718634647468304, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.001486217160730292, + "calibration_in_the_large": 0.0007792535693552479, + "expected_calibration_error_10bin": 0.0007792535693552479, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J38": { + "valid": 2825, + "positives": 3, + "negatives": 2822, + "auroc": 0.8322702575005906, + "auprc": 0.0103870107138081, + "brier": 0.0010605746471839146, + "calibration": { + "observed_rate": 0.0010619469026548673, + "mean_prediction": 0.0017147325018511733, + "calibration_in_the_large": 0.000652785599196306, + "expected_calibration_error_10bin": 0.000652785599196306, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J43": { + "valid": 2804, + "positives": 10, + "negatives": 2794, + "auroc": 0.6717967072297781, + "auprc": 0.014028861643468732, + "brier": 0.0035469266111584443, + "calibration": { + "observed_rate": 0.003566333808844508, + "mean_prediction": 0.002968869174427477, + "calibration_in_the_large": -0.0005974646344170309, + "expected_calibration_error_10bin": 0.0005974646344170309, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "J44": { + "valid": 2570, + "positives": 30, + "negatives": 2540, + "auroc": 0.8267060367454068, + "auprc": 0.04803706451738028, + "brier": 0.011430146518702354, + "calibration": { + "observed_rate": 0.011673151750972763, + "mean_prediction": 0.009794354204224117, + "calibration_in_the_large": -0.0018787975467486461, + "expected_calibration_error_10bin": 0.003189804369919155, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9039746746394653 + }, + "J45": { + "valid": 2518, + "positives": 25, + "negatives": 2493, + "auroc": 0.6597994384275973, + "auprc": 0.022166909364690637, + "brier": 0.009879883230358424, + "calibration": { + "observed_rate": 0.009928514694201748, + "mean_prediction": 0.008319916945453651, + "calibration_in_the_large": -0.0016085977487480963, + "expected_calibration_error_10bin": 0.002327513094068444, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.885684136475554 + }, + "J47": { + "valid": 2825, + "positives": 7, + "negatives": 2818, + "auroc": 0.7637128662678698, + "auprc": 0.009441594743073002, + "brier": 0.0024728103486558886, + "calibration": { + "observed_rate": 0.00247787610619469, + "mean_prediction": 0.0006746090820778171, + "calibration_in_the_large": -0.0018032670241168729, + "expected_calibration_error_10bin": 0.0018032670241168729, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J69": { + "valid": 2777, + "positives": 31, + "negatives": 2746, + "auroc": 0.7516622418532528, + "auprc": 0.030150634444240747, + "brier": 0.010978591856049939, + "calibration": { + "observed_rate": 0.011163125675189053, + "mean_prediction": 0.006633439860160899, + "calibration_in_the_large": -0.004529685815028155, + "expected_calibration_error_10bin": 0.004529685815028155, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + "J81": { + "valid": 2781, + "positives": 23, + "negatives": 2758, + "auroc": 0.8112999337894504, + "auprc": 0.05288536332485635, + "brier": 0.008092820576905536, + "calibration": { + "observed_rate": 0.008270406328658756, + "mean_prediction": 0.005302714275554331, + "calibration_in_the_large": -0.0029676920531044246, + "expected_calibration_error_10bin": 0.0029676920531044246, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + "J84": { + "valid": 2817, + "positives": 7, + "negatives": 2810, + "auroc": 0.9029994916115912, + "auprc": 0.017005124885239153, + "brier": 0.002463289804179665, + "calibration": { + "observed_rate": 0.0024849130280440185, + "mean_prediction": 0.0027011314465888534, + "calibration_in_the_large": 0.00021621841854483487, + "expected_calibration_error_10bin": 0.00021621841854483487, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "J90": { + "valid": 2754, + "positives": 39, + "negatives": 2715, + "auroc": 0.6899371960145441, + "auprc": 0.02681652342718324, + "brier": 0.014054000821477945, + "calibration": { + "observed_rate": 0.014161220043572984, + "mean_prediction": 0.008133224341980903, + "calibration_in_the_large": -0.006027995701592081, + "expected_calibration_error_10bin": 0.0071062478160937356, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9686950404502286 + }, + "J91": { + "valid": 2807, + "positives": 12, + "negatives": 2795, + "auroc": 0.8210196779964222, + "auprc": 0.043776127943170616, + "brier": 0.0041961075134994835, + "calibration": { + "observed_rate": 0.004275026718916993, + "mean_prediction": 0.004446240045782896, + "calibration_in_the_large": 0.0001712133268659032, + "expected_calibration_error_10bin": 0.0002176610611469853, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "J94": { + "valid": 2829, + "positives": 10, + "negatives": 2819, + "auroc": 0.6787158566867684, + "auprc": 0.10567626804945404, + "brier": 0.003488274235742768, + "calibration": { + "observed_rate": 0.003534817956875221, + "mean_prediction": 0.0006334815604989354, + "calibration_in_the_large": -0.0029013363963762855, + "expected_calibration_error_10bin": 0.0029013363963762855, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J95": { + "valid": 2770, + "positives": 16, + "negatives": 2754, + "auroc": 0.8191721132897604, + "auprc": 0.027513655931805835, + "brier": 0.0057040175431085196, + "calibration": { + "observed_rate": 0.005776173285198556, + "mean_prediction": 0.003945023042269435, + "calibration_in_the_large": -0.0018311502429291205, + "expected_calibration_error_10bin": 0.0018311502429291205, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9743228983468167 + }, + "J96": { + "valid": 2605, + "positives": 81, + "negatives": 2524, + "auroc": 0.8215892860636653, + "auprc": 0.1332113150161552, + "brier": 0.028695742720697692, + "calibration": { + "observed_rate": 0.03109404990403071, + "mean_prediction": 0.020388831076646942, + "calibration_in_the_large": -0.010705218827383768, + "expected_calibration_error_10bin": 0.011185482211582269, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9162856137882518 + }, + "J98": { + "valid": 2692, + "positives": 39, + "negatives": 2653, + "auroc": 0.7541245034648728, + "auprc": 0.05341762996624125, + "brier": 0.014132248014684287, + "calibration": { + "observed_rate": 0.01448736998514116, + "mean_prediction": 0.00787954429423793, + "calibration_in_the_large": -0.00660782569090323, + "expected_calibration_error_10bin": 0.006693880854413186, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9468870911009497 + }, + "K04": { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.8980239943542696, + "auprc": 0.057303807303807304, + "brier": 0.0006999589953763592, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.0006058342712924561, + "calibration_in_the_large": -9.938434647905302e-05, + "expected_calibration_error_10bin": 9.938434647905302e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "K12": { + "valid": 2824, + "positives": 14, + "negatives": 2810, + "auroc": 0.9044738179969497, + "auprc": 0.0919237385470004, + "brier": 0.005256732429637723, + "calibration": { + "observed_rate": 0.004957507082152974, + "mean_prediction": 0.004431381905713625, + "calibration_in_the_large": -0.0005261251764393498, + "expected_calibration_error_10bin": 0.004195621849590737, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "K20": { + "valid": 2813, + "positives": 11, + "negatives": 2802, + "auroc": 0.6782817468042307, + "auprc": 0.018882198878178706, + "brier": 0.003954865551830521, + "calibration": { + "observed_rate": 0.0039104159260575895, + "mean_prediction": 0.004215673658751264, + "calibration_in_the_large": 0.0003052577326936746, + "expected_calibration_error_10bin": 0.0007165719099557653, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K21": { + "valid": 2043, + "positives": 94, + "negatives": 1949, + "auroc": 0.7331910526947807, + "auprc": 0.1437126023421805, + "brier": 0.04223813522236508, + "calibration": { + "observed_rate": 0.04601076847772883, + "mean_prediction": 0.0350051678995667, + "calibration_in_the_large": -0.011005600578162127, + "expected_calibration_error_10bin": 0.011508470509890548, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7186071051705945 + }, + "K22": { + "valid": 2764, + "positives": 21, + "negatives": 2743, + "auroc": 0.7698730968873149, + "auprc": 0.033628339763792627, + "brier": 0.007502494889087758, + "calibration": { + "observed_rate": 0.007597684515195369, + "mean_prediction": 0.0034190290035491164, + "calibration_in_the_large": -0.004178655511646253, + "expected_calibration_error_10bin": 0.004178655511646253, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9722124516355962 + }, + "K25": { + "valid": 2817, + "positives": 7, + "negatives": 2810, + "auroc": 0.6997966446365023, + "auprc": 0.006574506403590739, + "brier": 0.002504536448169568, + "calibration": { + "observed_rate": 0.0024849130280440185, + "mean_prediction": 0.0021203258430517384, + "calibration_in_the_large": -0.00036458718499228016, + "expected_calibration_error_10bin": 0.0004627374785747403, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "K26": { + "valid": 2814, + "positives": 6, + "negatives": 2808, + "auroc": 0.9261633428300095, + "auprc": 0.1895998507215184, + "brier": 0.002066530825836118, + "calibration": { + "observed_rate": 0.0021321961620469083, + "mean_prediction": 0.0025502336584039857, + "calibration_in_the_large": 0.0004180374963570774, + "expected_calibration_error_10bin": 0.0004180374963570774, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "K29": { + "valid": 2785, + "positives": 15, + "negatives": 2770, + "auroc": 0.6725150421179302, + "auprc": 0.037816248724214845, + "brier": 0.005305682085328012, + "calibration": { + "observed_rate": 0.005385996409335727, + "mean_prediction": 0.004982397268275765, + "calibration_in_the_large": -0.00040359914105996247, + "expected_calibration_error_10bin": 0.0005063969818872059, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K30": { + "valid": 2837, + "positives": 3, + "negatives": 2834, + "auroc": 0.938367442954599, + "auprc": 0.013106386367255932, + "brier": 0.0010526864832882256, + "calibration": { + "observed_rate": 0.0010574550581600281, + "mean_prediction": 0.0009846305111520695, + "calibration_in_the_large": -7.282454700795866e-05, + "expected_calibration_error_10bin": 7.282454700795866e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + "K31": { + "valid": 2756, + "positives": 21, + "negatives": 2735, + "auroc": 0.8775311221380692, + "auprc": 0.09123869444530233, + "brier": 0.007305374211330053, + "calibration": { + "observed_rate": 0.007619738751814224, + "mean_prediction": 0.005349058738735904, + "calibration_in_the_large": -0.0022706800130783194, + "expected_calibration_error_10bin": 0.0027152016566781736, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + "K40": { + "valid": 2827, + "positives": 4, + "negatives": 2823, + "auroc": 0.9379206517888771, + "auprc": 0.07241367141104772, + "brier": 0.0013917184978107188, + "calibration": { + "observed_rate": 0.0014149274849663955, + "mean_prediction": 0.0011955266007168382, + "calibration_in_the_large": -0.00021940088424955728, + "expected_calibration_error_10bin": 0.00021940088424955728, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "K42": { + "valid": 2820, + "positives": 7, + "negatives": 2813, + "auroc": 0.7059062515870195, + "auprc": 0.025679862861222525, + "brier": 0.0024718903735908974, + "calibration": { + "observed_rate": 0.0024822695035460994, + "mean_prediction": 0.0011916782102865044, + "calibration_in_the_large": -0.001290591293259595, + "expected_calibration_error_10bin": 0.001290591293259595, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + "K43": { + "valid": 2813, + "positives": 9, + "negatives": 2804, + "auroc": 0.800641940085592, + "auprc": 0.03342214791960931, + "brier": 0.0031540942958737392, + "calibration": { + "observed_rate": 0.003199431212228937, + "mean_prediction": 0.0022502342221125933, + "calibration_in_the_large": -0.0009491969901163438, + "expected_calibration_error_10bin": 0.0009491969901163438, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K44": { + "valid": 2785, + "positives": 7, + "negatives": 2778, + "auroc": 0.7192224622030238, + "auprc": 0.008448546823038508, + "brier": 0.0025067276911871056, + "calibration": { + "observed_rate": 0.0025134649910233393, + "mean_prediction": 0.00258041916723272, + "calibration_in_the_large": 6.695417620938057e-05, + "expected_calibration_error_10bin": 6.695417620938057e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K52": { + "valid": 2749, + "positives": 39, + "negatives": 2710, + "auroc": 0.7988172958652664, + "auprc": 0.0885565916768143, + "brier": 0.01369882095001345, + "calibration": { + "observed_rate": 0.014186977082575483, + "mean_prediction": 0.010120813488135027, + "calibration_in_the_large": -0.004066163594440456, + "expected_calibration_error_10bin": 0.006165155210336725, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9669363348575448 + }, + "K55": { + "valid": 2815, + "positives": 10, + "negatives": 2805, + "auroc": 0.754331550802139, + "auprc": 0.009821551114435136, + "brier": 0.003572626803902144, + "calibration": { + "observed_rate": 0.003552397868561279, + "mean_prediction": 0.002783796872535988, + "calibration_in_the_large": -0.0007686009960252908, + "expected_calibration_error_10bin": 0.0008929773624728884, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + "K56": { + "valid": 2745, + "positives": 33, + "negatives": 2712, + "auroc": 0.7432287476535264, + "auprc": 0.04160258620614041, + "brier": 0.011794267661445711, + "calibration": { + "observed_rate": 0.012021857923497269, + "mean_prediction": 0.005750199004033694, + "calibration_in_the_large": -0.006271658919463575, + "expected_calibration_error_10bin": 0.006348158327089381, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9655293703833978 + }, + "K57": { + "valid": 2741, + "positives": 26, + "negatives": 2715, + "auroc": 0.7174387306983993, + "auprc": 0.03152199209536439, + "brier": 0.009383614286107369, + "calibration": { + "observed_rate": 0.009485589201021525, + "mean_prediction": 0.0034321897603550237, + "calibration_in_the_large": -0.006053399440666501, + "expected_calibration_error_10bin": 0.006053399440666501, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + "K58": { + "valid": 2792, + "positives": 7, + "negatives": 2785, + "auroc": 0.7490638625288536, + "auprc": 0.09240923707476255, + "brier": 0.0024625553773260926, + "calibration": { + "observed_rate": 0.002507163323782235, + "mean_prediction": 0.003004760913932727, + "calibration_in_the_large": 0.0004975975901504916, + "expected_calibration_error_10bin": 0.0004975975901504916, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + "K59": { + "valid": 2560, + "positives": 90, + "negatives": 2470, + "auroc": 0.7628924876293297, + "auprc": 0.13518858823304467, + "brier": 0.0324397560319607, + "calibration": { + "observed_rate": 0.03515625, + "mean_prediction": 0.0306312154117677, + "calibration_in_the_large": -0.0045250345882323, + "expected_calibration_error_10bin": 0.00722623980714161, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + "K62": { + "valid": 2813, + "positives": 18, + "negatives": 2795, + "auroc": 0.7531107135758298, + "auprc": 0.018329721893168203, + "brier": 0.006354045429827673, + "calibration": { + "observed_rate": 0.006398862424457874, + "mean_prediction": 0.0026823354679165363, + "calibration_in_the_large": -0.003716526956541338, + "expected_calibration_error_10bin": 0.003716526956541338, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K63": { + "valid": 2810, + "positives": 21, + "negatives": 2789, + "auroc": 0.7442674452355341, + "auprc": 0.03421415377659163, + "brier": 0.007368935076933411, + "calibration": { + "observed_rate": 0.007473309608540925, + "mean_prediction": 0.0035796021117083686, + "calibration_in_the_large": -0.0038937074968325566, + "expected_calibration_error_10bin": 0.0038937074968325566, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + "K64": { + "valid": 2801, + "positives": 22, + "negatives": 2779, + "auroc": 0.7773070757957408, + "auprc": 0.03219591083654716, + "brier": 0.007743137164287139, + "calibration": { + "observed_rate": 0.00785433773652267, + "mean_prediction": 0.004726959566240921, + "calibration_in_the_large": -0.0031273781702817497, + "expected_calibration_error_10bin": 0.0031994714564419374, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "K65": { + "valid": 2813, + "positives": 14, + "negatives": 2799, + "auroc": 0.8039605981728168, + "auprc": 0.03503982163164161, + "brier": 0.005035360955482967, + "calibration": { + "observed_rate": 0.004976892996800568, + "mean_prediction": 0.004224522396504188, + "calibration_in_the_large": -0.0007523706002963808, + "expected_calibration_error_10bin": 0.002993681647537139, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K66": { + "valid": 2796, + "positives": 9, + "negatives": 2787, + "auroc": 0.6688593868357054, + "auprc": 0.016685584530878338, + "brier": 0.003215916571127054, + "calibration": { + "observed_rate": 0.003218884120171674, + "mean_prediction": 0.0033055040903842625, + "calibration_in_the_large": 8.661997021258867e-05, + "expected_calibration_error_10bin": 8.661997021258867e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + "K70": { + "valid": 2774, + "positives": 6, + "negatives": 2768, + "auroc": 0.9431599229287091, + "auprc": 0.0637998698569119, + "brier": 0.002118668840189387, + "calibration": { + "observed_rate": 0.0021629416005767843, + "mean_prediction": 0.0010695014804311673, + "calibration_in_the_large": -0.001093440120145617, + "expected_calibration_error_10bin": 0.001258001303287093, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "K72": { + "valid": 2787, + "positives": 22, + "negatives": 2765, + "auroc": 0.8706394870951834, + "auprc": 0.24525416886637502, + "brier": 0.0070011487421924885, + "calibration": { + "observed_rate": 0.007893792608539648, + "mean_prediction": 0.004425425540981812, + "calibration_in_the_large": -0.003468367067557836, + "expected_calibration_error_10bin": 0.00527414675511286, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "K74": { + "valid": 2763, + "positives": 7, + "negatives": 2756, + "auroc": 0.9453141198424218, + "auprc": 0.03191685400854558, + "brier": 0.0026612428380353038, + "calibration": { + "observed_rate": 0.0025334781035106766, + "mean_prediction": 0.0026888288771545438, + "calibration_in_the_large": 0.00015535077364386713, + "expected_calibration_error_10bin": 0.0017087867028813173, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + "K75": { + "valid": 2798, + "positives": 12, + "negatives": 2786, + "auroc": 0.8570531227566404, + "auprc": 0.029298560364031723, + "brier": 0.004310033790250923, + "calibration": { + "observed_rate": 0.004288777698355968, + "mean_prediction": 0.0030336932817293977, + "calibration_in_the_large": -0.0012550844166265705, + "expected_calibration_error_10bin": 0.0020137167844375766, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + "K76": { + "valid": 2681, + "positives": 34, + "negatives": 2647, + "auroc": 0.8025067223716082, + "auprc": 0.1801294692598824, + "brier": 0.011770608769381468, + "calibration": { + "observed_rate": 0.01268183513614323, + "mean_prediction": 0.0051181277126785395, + "calibration_in_the_large": -0.00756370742346469, + "expected_calibration_error_10bin": 0.009197530274706192, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9430179387970454 + }, + "K80": { + "valid": 2731, + "positives": 18, + "negatives": 2713, + "auroc": 0.6098415038702544, + "auprc": 0.014653774454231558, + "brier": 0.0065591527997513315, + "calibration": { + "observed_rate": 0.006590992310508971, + "mean_prediction": 0.004871185195380948, + "calibration_in_the_large": -0.0017198071151280237, + "expected_calibration_error_10bin": 0.0018811922944797096, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9606049947238833 + }, + "K81": { + "valid": 2825, + "positives": 6, + "negatives": 2819, + "auroc": 0.8989003192621497, + "auprc": 0.04299720844735344, + "brier": 0.002087421601855717, + "calibration": { + "observed_rate": 0.0021238938053097347, + "mean_prediction": 0.00150274365381348, + "calibration_in_the_large": -0.0006211501514962546, + "expected_calibration_error_10bin": 0.0006957681671653432, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "K82": { + "valid": 2824, + "positives": 4, + "negatives": 2820, + "auroc": 0.6461879432624114, + "auprc": 0.003248779208614436, + "brier": 0.0014460861227487741, + "calibration": { + "observed_rate": 0.00141643059490085, + "mean_prediction": 0.0017982592489690133, + "calibration_in_the_large": 0.0003818286540681634, + "expected_calibration_error_10bin": 0.0003818286540681634, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "K83": { + "valid": 2757, + "positives": 16, + "negatives": 2741, + "auroc": 0.90952207223641, + "auprc": 0.09504260270219109, + "brier": 0.005598331008474311, + "calibration": { + "observed_rate": 0.005803409503083061, + "mean_prediction": 0.0033369314439247464, + "calibration_in_the_large": -0.0024664780591583148, + "expected_calibration_error_10bin": 0.0034341170120192528, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.969750263805839 + }, + "K85": { + "valid": 2779, + "positives": 10, + "negatives": 2769, + "auroc": 0.8277356446370531, + "auprc": 0.025035416486234124, + "brier": 0.0035616140767799607, + "calibration": { + "observed_rate": 0.0035984166966534724, + "mean_prediction": 0.002255585712436988, + "calibration_in_the_large": -0.0013428309842164845, + "expected_calibration_error_10bin": 0.0013428309842164845, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9774885684136475 + }, + "K86": { + "valid": 2785, + "positives": 7, + "negatives": 2778, + "auroc": 0.6956186362233878, + "auprc": 0.017268260598383368, + "brier": 0.0025233440867739525, + "calibration": { + "observed_rate": 0.0025134649910233393, + "mean_prediction": 0.0029607737115416068, + "calibration_in_the_large": 0.00044730872051826744, + "expected_calibration_error_10bin": 0.00044730872051826717, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K90": { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.6525468694729395, + "auprc": 0.0025547102810993265, + "brier": 0.001413371787045261, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0004942870526387141, + "calibration_in_the_large": -0.000918641241250371, + "expected_calibration_error_10bin": 0.000918641241250371, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "K91": { + "valid": 2768, + "positives": 26, + "negatives": 2742, + "auroc": 0.8560567805644392, + "auprc": 0.06357904630840829, + "brier": 0.00916534600377383, + "calibration": { + "observed_rate": 0.00939306358381503, + "mean_prediction": 0.003923414458079401, + "calibration_in_the_large": -0.0054696491257356285, + "expected_calibration_error_10bin": 0.005565888243005888, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "K92": { + "valid": 2751, + "positives": 37, + "negatives": 2714, + "auroc": 0.8039494911270888, + "auprc": 0.12076412263322574, + "brier": 0.012785917079387615, + "calibration": { + "observed_rate": 0.013449654671028717, + "mean_prediction": 0.009443010689387039, + "calibration_in_the_large": -0.004006643981641678, + "expected_calibration_error_10bin": 0.0040066439816416775, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "K94": { + "valid": 2823, + "positives": 15, + "negatives": 2808, + "auroc": 0.9041785375118708, + "auprc": 0.11923083313396401, + "brier": 0.005210631314887315, + "calibration": { + "observed_rate": 0.005313496280552604, + "mean_prediction": 0.0015018121064582781, + "calibration_in_the_large": -0.003811684174094326, + "expected_calibration_error_10bin": 0.003811684174094326, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "L02": { + "valid": 2807, + "positives": 22, + "negatives": 2785, + "auroc": 0.7506773298514771, + "auprc": 0.021248278883492233, + "brier": 0.00776542971699038, + "calibration": { + "observed_rate": 0.007837548984681154, + "mean_prediction": 0.005276573713501652, + "calibration_in_the_large": -0.0025609752711795017, + "expected_calibration_error_10bin": 0.0026538966934013014, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "L03": { + "valid": 2701, + "positives": 50, + "negatives": 2651, + "auroc": 0.752825348924934, + "auprc": 0.07199877396410045, + "brier": 0.0178978096981159, + "calibration": { + "observed_rate": 0.018511662347278787, + "mean_prediction": 0.011199855031934386, + "calibration_in_the_large": -0.007311807315344402, + "expected_calibration_error_10bin": 0.007311807315344402, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9500527611677805 + }, + "L08": { + "valid": 2830, + "positives": 5, + "negatives": 2825, + "auroc": 0.6789380530973451, + "auprc": 0.004421266376651736, + "brier": 0.001768749542100461, + "calibration": { + "observed_rate": 0.0017667844522968198, + "mean_prediction": 0.0013590262458761933, + "calibration_in_the_large": -0.0004077582064206265, + "expected_calibration_error_10bin": 0.0004077582064206265, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9954273654590221 + }, + "L27": { + "valid": 2818, + "positives": 12, + "negatives": 2806, + "auroc": 0.7828462817771442, + "auprc": 0.02190118723595051, + "brier": 0.004255595768153331, + "calibration": { + "observed_rate": 0.0042583392476933995, + "mean_prediction": 0.0030720564271415405, + "calibration_in_the_large": -0.001186282820551859, + "expected_calibration_error_10bin": 0.0016186277236280363, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "L29": { + "valid": 2817, + "positives": 4, + "negatives": 2813, + "auroc": 0.7916814788482047, + "auprc": 0.004051476118802892, + "brier": 0.0014819306729203696, + "calibration": { + "observed_rate": 0.0014199503017394391, + "mean_prediction": 0.0034793351276719083, + "calibration_in_the_large": 0.002059384825932469, + "expected_calibration_error_10bin": 0.00205938482593247, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "L30": { + "valid": 2816, + "positives": 8, + "negatives": 2808, + "auroc": 0.7413639601139601, + "auprc": 0.036546102063789256, + "brier": 0.0028103280511800614, + "calibration": { + "observed_rate": 0.002840909090909091, + "mean_prediction": 0.002306115643061026, + "calibration_in_the_large": -0.000534793447848065, + "expected_calibration_error_10bin": 0.000534793447848065, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "L50": { + "valid": 2835, + "positives": 3, + "negatives": 2832, + "auroc": 0.8142655367231638, + "auprc": 0.009245793807455908, + "brier": 0.001061249568428993, + "calibration": { + "observed_rate": 0.0010582010582010583, + "mean_prediction": 0.0011197338925375922, + "calibration_in_the_large": 6.153283433653388e-05, + "expected_calibration_error_10bin": 6.153283433653388e-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.718395388490652e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0011610480405897712, + "calibration_in_the_large": 0.0011610480405897712, + "expected_calibration_error_10bin": 0.0011610480405897712, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "L76": { + "valid": 2793, + "positives": 15, + "negatives": 2778, + "auroc": 0.731725461963043, + "auprc": 0.010863393619066356, + "brier": 0.005351354858681221, + "calibration": { + "observed_rate": 0.0053705692803437165, + "mean_prediction": 0.002721243703784194, + "calibration_in_the_large": -0.0026493255765595225, + "expected_calibration_error_10bin": 0.0026493255765595225, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "L89": { + "valid": 2798, + "positives": 25, + "negatives": 2773, + "auroc": 0.8518427695636495, + "auprc": 0.04449684992610038, + "brier": 0.0087333375439141, + "calibration": { + "observed_rate": 0.008934953538241601, + "mean_prediction": 0.005650429351905129, + "calibration_in_the_large": -0.003284524186336472, + "expected_calibration_error_10bin": 0.003583042333269917, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + "L97": { + "valid": 2789, + "positives": 13, + "negatives": 2776, + "auroc": 0.8967800931057415, + "auprc": 0.0478576504737149, + "brier": 0.004676890671484176, + "calibration": { + "observed_rate": 0.004661168877733955, + "mean_prediction": 0.005345621699361976, + "calibration_in_the_large": 0.0006844528216280212, + "expected_calibration_error_10bin": 0.0006844528216280214, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "L98": { + "valid": 2824, + "positives": 8, + "negatives": 2816, + "auroc": 0.6091974431818182, + "auprc": 0.004085885865880758, + "brier": 0.002844674721989035, + "calibration": { + "observed_rate": 0.0028328611898017, + "mean_prediction": 0.002594020030401985, + "calibration_in_the_large": -0.00023884115939971483, + "expected_calibration_error_10bin": 0.00023884115939971483, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "M10": { + "valid": 2713, + "positives": 15, + "negatives": 2698, + "auroc": 0.8180380528786756, + "auprc": 0.04170254588398823, + "brier": 0.0054212907129465825, + "calibration": { + "observed_rate": 0.0055289347585698485, + "mean_prediction": 0.006081639382668679, + "calibration_in_the_large": 0.0005527046240988301, + "expected_calibration_error_10bin": 0.000552704624098829, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9542736545902216 + }, + "M16": { + "valid": 2790, + "positives": 3, + "negatives": 2787, + "auroc": 0.8424829565841406, + "auprc": 0.00745339931386443, + "brier": 0.0010731885070398696, + "calibration": { + "observed_rate": 0.001075268817204301, + "mean_prediction": 0.0016229390554030536, + "calibration_in_the_large": 0.0005476702381987525, + "expected_calibration_error_10bin": 0.0005476702381987525, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + "M17": { + "valid": 2733, + "positives": 13, + "negatives": 2720, + "auroc": 0.7369343891402715, + "auprc": 0.011347902687002483, + "brier": 0.004734732723439067, + "calibration": { + "observed_rate": 0.004756677643615075, + "mean_prediction": 0.004410396752781595, + "calibration_in_the_large": -0.0003462808908334799, + "expected_calibration_error_10bin": 0.0003462808908334799, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + "M19": { + "valid": 2674, + "positives": 37, + "negatives": 2637, + "auroc": 0.6926995254640306, + "auprc": 0.027036763360624886, + "brier": 0.01366000495296213, + "calibration": { + "observed_rate": 0.013836948391922213, + "mean_prediction": 0.006904185646872596, + "calibration_in_the_large": -0.006932762745049618, + "expected_calibration_error_10bin": 0.007086502399585998, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.940555750967288 + }, + "M21": { + "valid": 2821, + "positives": 3, + "negatives": 2818, + "auroc": 0.8931866572036906, + "auprc": 0.006339325523717962, + "brier": 0.001076635257227882, + "calibration": { + "observed_rate": 0.0010634526763559022, + "mean_prediction": 0.0036344287873516946, + "calibration_in_the_large": 0.0025709761109957924, + "expected_calibration_error_10bin": 0.0025709761109957924, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "M25": { + "valid": 2717, + "positives": 49, + "negatives": 2668, + "auroc": 0.6565569256188233, + "auprc": 0.035644462832885755, + "brier": 0.017657910650889796, + "calibration": { + "observed_rate": 0.0180345969819654, + "mean_prediction": 0.014702891068556028, + "calibration_in_the_large": -0.0033317059134093732, + "expected_calibration_error_10bin": 0.003634307440910192, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9556806190643686 + }, + "M35": { + "valid": 2806, + "positives": 2, + "negatives": 2804, + "auroc": 0.8660841654778887, + "auprc": 0.0038865821269591892, + "brier": 0.0007138096910200331, + "calibration": { + "observed_rate": 0.0007127583749109052, + "mean_prediction": 0.0008068810682284179, + "calibration_in_the_large": 9.412269331751264e-05, + "expected_calibration_error_10bin": 9.412269331751264e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "M46": { + "valid": 2814, + "positives": 7, + "negatives": 2807, + "auroc": 0.6541808743447504, + "auprc": 0.004511438050850687, + "brier": 0.00248509631683996, + "calibration": { + "observed_rate": 0.0024875621890547263, + "mean_prediction": 0.001311387068054315, + "calibration_in_the_large": -0.0011761751210004113, + "expected_calibration_error_10bin": 0.0011761751210004113, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "M47": { + "valid": 2743, + "positives": 11, + "negatives": 2732, + "auroc": 0.6845467855716758, + "auprc": 0.013004934716032542, + "brier": 0.003995632824944163, + "calibration": { + "observed_rate": 0.004010207801676996, + "mean_prediction": 0.005431019699433638, + "calibration_in_the_large": 0.0014208118977566426, + "expected_calibration_error_10bin": 0.0014208118977566426, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + "M48": { + "valid": 2690, + "positives": 11, + "negatives": 2679, + "auroc": 0.7896433540330516, + "auprc": 0.015714001800500147, + "brier": 0.004090656950148502, + "calibration": { + "observed_rate": 0.004089219330855019, + "mean_prediction": 0.007435683608962986, + "calibration_in_the_large": 0.0033464642781079676, + "expected_calibration_error_10bin": 0.0033464642781079676, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9461836088638762 + }, + "M51": { + "valid": 2785, + "positives": 5, + "negatives": 2780, + "auroc": 0.7699280575539569, + "auprc": 0.005370014057824792, + "brier": 0.0017946277198471255, + "calibration": { + "observed_rate": 0.0017953321364452424, + "mean_prediction": 0.0026974996627374057, + "calibration_in_the_large": 0.0009021675262921632, + "expected_calibration_error_10bin": 0.0009021675262921632, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "M54": { + "valid": 2567, + "positives": 47, + "negatives": 2520, + "auroc": 0.6840847686592367, + "auprc": 0.044519434390568345, + "brier": 0.017868971929637545, + "calibration": { + "observed_rate": 0.018309310479158552, + "mean_prediction": 0.017530851441616556, + "calibration_in_the_large": -0.000778459037541996, + "expected_calibration_error_10bin": 0.0027437802577586446, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9029194512838551 + }, + "M62": { + "valid": 2781, + "positives": 14, + "negatives": 2767, + "auroc": 0.671975837678765, + "auprc": 0.017679623471315246, + "brier": 0.004998567873755009, + "calibration": { + "observed_rate": 0.005034160373966199, + "mean_prediction": 0.004559559947936336, + "calibration_in_the_large": -0.00047460042602986367, + "expected_calibration_error_10bin": 0.00047460042602986367, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + "M79": { + "valid": 2697, + "positives": 43, + "negatives": 2654, + "auroc": 0.7355549324407213, + "auprc": 0.04104060231617166, + "brier": 0.0156037525768616, + "calibration": { + "observed_rate": 0.015943641082684465, + "mean_prediction": 0.012088099888249736, + "calibration_in_the_large": -0.0038555411944347293, + "expected_calibration_error_10bin": 0.005067293660985522, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9486457966936335 + }, + "M81": { + "valid": 2705, + "positives": 17, + "negatives": 2688, + "auroc": 0.7545518207282913, + "auprc": 0.019629450376637457, + "brier": 0.0065499359666134, + "calibration": { + "observed_rate": 0.006284658040665434, + "mean_prediction": 0.00854676752164299, + "calibration_in_the_large": 0.0022621094809775555, + "expected_calibration_error_10bin": 0.0022621094809775547, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9514597256419275 + }, + "M84": { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.7905998103366524, + "auprc": 0.02451943778806631, + "brier": 0.0021292680778868117, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.002372891094098146, + "calibration_in_the_large": 0.00024372147025144642, + "expected_calibration_error_10bin": 0.00024372147025144647, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "M85": { + "valid": 2768, + "positives": 7, + "negatives": 2761, + "auroc": 0.6895534744140321, + "auprc": 0.006182310731043613, + "brier": 0.0025291019834482328, + "calibration": { + "observed_rate": 0.0025289017341040463, + "mean_prediction": 0.00318395739337362, + "calibration_in_the_large": 0.0006550556592695737, + "expected_calibration_error_10bin": 0.0006550556592695737, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "M86": { + "valid": 2803, + "positives": 17, + "negatives": 2786, + "auroc": 0.7789789282547189, + "auprc": 0.03627148405028922, + "brier": 0.005980091417238713, + "calibration": { + "observed_rate": 0.006064930431680342, + "mean_prediction": 0.004879653718858787, + "calibration_in_the_large": -0.0011852767128215551, + "expected_calibration_error_10bin": 0.0018028790113049941, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9859303552585297 + }, + "M94": { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.5107717803030303, + "auprc": 0.002059500284373853, + "brier": 0.0010642087312291708, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.00037687405297105275, + "calibration_in_the_large": -0.0006873331126905293, + "expected_calibration_error_10bin": 0.0006873331126905293, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "M96": { + "valid": 2804, + "positives": 4, + "negatives": 2800, + "auroc": 0.8952678571428572, + "auprc": 0.012659801836571305, + "brier": 0.001419712037169683, + "calibration": { + "observed_rate": 0.0014265335235378032, + "mean_prediction": 0.0020217059483876696, + "calibration_in_the_large": 0.0005951724248498664, + "expected_calibration_error_10bin": 0.0005951724248498664, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "N12": { + "valid": 2831, + "positives": 8, + "negatives": 2823, + "auroc": 0.7135582713425433, + "auprc": 0.01398784820205123, + "brier": 0.0028244273044903873, + "calibration": { + "observed_rate": 0.00282585658777817, + "mean_prediction": 0.0017672673549586934, + "calibration_in_the_large": -0.0010585892328194768, + "expected_calibration_error_10bin": 0.0011612450534706506, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "N13": { + "valid": 2756, + "positives": 21, + "negatives": 2735, + "auroc": 0.7523287194219552, + "auprc": 0.05821626676378071, + "brier": 0.00743443933581105, + "calibration": { + "observed_rate": 0.007619738751814224, + "mean_prediction": 0.005953598284127184, + "calibration_in_the_large": -0.0016661404676870401, + "expected_calibration_error_10bin": 0.0016661404676870406, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + "N14": { + "valid": 2826, + "positives": 8, + "negatives": 2818, + "auroc": 0.7928938963804116, + "auprc": 0.03645674690768447, + "brier": 0.0027998261303783336, + "calibration": { + "observed_rate": 0.0028308563340410475, + "mean_prediction": 0.0027451288604003962, + "calibration_in_the_large": -8.572747364065129e-05, + "expected_calibration_error_10bin": 0.00029468220712003694, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "N17": { + "valid": 2292, + "positives": 104, + "negatives": 2188, + "auroc": 0.8057103431303614, + "auprc": 0.19391402855944112, + "brier": 0.040134560619628765, + "calibration": { + "observed_rate": 0.04537521815008726, + "mean_prediction": 0.043573481192052274, + "calibration_in_the_large": -0.001801736958034983, + "expected_calibration_error_10bin": 0.008272067492164022, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8061906436862469 + }, + "N18": { + "valid": 2440, + "positives": 50, + "negatives": 2390, + "auroc": 0.8617405857740585, + "auprc": 0.2506713915077462, + "brier": 0.01773668666599681, + "calibration": { + "observed_rate": 0.020491803278688523, + "mean_prediction": 0.016806327493117588, + "calibration_in_the_large": -0.0036854757855709352, + "expected_calibration_error_10bin": 0.0037139787633447253, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.858248329229687 + }, + "N20": { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.6932630450321658, + "auprc": 0.005740505090844119, + "brier": 0.0028460721060492916, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.001394111487359945, + "calibration_in_the_large": -0.001456922012283676, + "expected_calibration_error_10bin": 0.001456922012283676, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "N25": { + "valid": 2831, + "positives": 7, + "negatives": 2824, + "auroc": 0.9129906920275193, + "auprc": 0.05942692003367469, + "brier": 0.0024422089540786663, + "calibration": { + "observed_rate": 0.002472624514305899, + "mean_prediction": 0.0014703874717612226, + "calibration_in_the_large": -0.0010022370425446766, + "expected_calibration_error_10bin": 0.0014506804986551304, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "N28": { + "valid": 2789, + "positives": 10, + "negatives": 2779, + "auroc": 0.7833393306944945, + "auprc": 0.015401336976539956, + "brier": 0.003558824214309802, + "calibration": { + "observed_rate": 0.0035855145213338113, + "mean_prediction": 0.0036454075092721507, + "calibration_in_the_large": 5.98929879383394e-05, + "expected_calibration_error_10bin": 5.98929879383394e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "N30": { + "valid": 2829, + "positives": 11, + "negatives": 2818, + "auroc": 0.7266920446480418, + "auprc": 0.01398301134833051, + "brier": 0.0038757221042536347, + "calibration": { + "observed_rate": 0.003888299752562743, + "mean_prediction": 0.0036431576507142925, + "calibration_in_the_large": -0.0002451421018484505, + "expected_calibration_error_10bin": 0.0002451421018484505, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "N32": { + "valid": 2807, + "positives": 15, + "negatives": 2792, + "auroc": 0.8453199617956065, + "auprc": 0.04272007863066127, + "brier": 0.005255974503820594, + "calibration": { + "observed_rate": 0.005343783398646241, + "mean_prediction": 0.004237084166013644, + "calibration_in_the_large": -0.0011066992326325973, + "expected_calibration_error_10bin": 0.0011066992326325973, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "N39": { + "valid": 2520, + "positives": 83, + "negatives": 2437, + "auroc": 0.7645534950635533, + "auprc": 0.0868799358439216, + "brier": 0.031000262643347917, + "calibration": { + "observed_rate": 0.03293650793650794, + "mean_prediction": 0.031648582024850866, + "calibration_in_the_large": -0.0012879259116570715, + "expected_calibration_error_10bin": 0.001974330836674198, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8863876187126275 + }, + "N40": { + "valid": 2606, + "positives": 24, + "negatives": 2582, + "auroc": 0.80323715466047, + "auprc": 0.03921370057157747, + "brier": 0.00904218363238312, + "calibration": { + "observed_rate": 0.00920951650038373, + "mean_prediction": 0.007712056883310435, + "calibration_in_the_large": -0.0014974596170732948, + "expected_calibration_error_10bin": 0.0025134458950974575, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9166373549067885 + }, + "N73": { + "valid": 2829, + "positives": 6, + "negatives": 2823, + "auroc": 0.8806234502302515, + "auprc": 0.1874799801380871, + "brier": 0.0020383213451952934, + "calibration": { + "observed_rate": 0.0021208907741251328, + "mean_prediction": 0.0010249452100852268, + "calibration_in_the_large": -0.001095945564039906, + "expected_calibration_error_10bin": 0.001095945564039906, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "N99": { + "valid": 2799, + "positives": 6, + "negatives": 2793, + "auroc": 0.7771213748657357, + "auprc": 0.006565363399170029, + "brier": 0.002158286106513821, + "calibration": { + "observed_rate": 0.0021436227224008574, + "mean_prediction": 0.003119660306606363, + "calibration_in_the_large": 0.0009760375842055055, + "expected_calibration_error_10bin": 0.0009760375842055055, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9845233907843827 + }, + "O69": { + "valid": 2743, + "positives": 6, + "negatives": 2737, + "auroc": 0.9968335160151017, + "auprc": 0.36781410597200076, + "brier": 0.0015826949146225437, + "calibration": { + "observed_rate": 0.002187386073641998, + "mean_prediction": 0.0025845080528562317, + "calibration_in_the_large": 0.00039712197921423385, + "expected_calibration_error_10bin": 0.0021922165413212824, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + "O99": { + "valid": 2652, + "positives": 3, + "negatives": 2649, + "auroc": 0.9052472631181578, + "auprc": 0.11866750471401633, + "brier": 0.001670185996316294, + "calibration": { + "observed_rate": 0.0011312217194570137, + "mean_prediction": 0.0035784459679829043, + "calibration_in_the_large": 0.0024472242485258904, + "expected_calibration_error_10bin": 0.0026011429499451745, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9328174463594794 + }, + "Q21": { + "valid": 2810, + "positives": 5, + "negatives": 2805, + "auroc": 0.5431016042780749, + "auprc": 0.0030772420104294125, + "brier": 0.0017793898526896846, + "calibration": { + "observed_rate": 0.0017793594306049821, + "mean_prediction": 0.0018455781075977918, + "calibration_in_the_large": 6.621867699280973e-05, + "expected_calibration_error_10bin": 6.621867699280973e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + "U07": { + "valid": 2828, + "positives": 3, + "negatives": 2825, + "auroc": 0.9163421828908555, + "auprc": 0.03472939994257824, + "brier": 0.001081477355005668, + "calibration": { + "observed_rate": 0.0010608203677510608, + "mean_prediction": 0.00437968920727391, + "calibration_in_the_large": 0.003318868839522849, + "expected_calibration_error_10bin": 0.0033188688395228497, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + } + } + }, + "strata": { + "age_18_64": { + "n": 1531, + "age_sex_normalized_disease_time_brier": 1.2502425911331765, + "raw_disease_time_brier_macro": 0.004413046701530152, + "macro_auroc_365d": 0.814597639419385, + "macro_auprc_365d": 0.07530506658454712, + "macro_brier_365d": 0.006268552812804011, + "scorable_auroc_diseases": 244, + "death_time_brier": 0.020860961208398164 + }, + "age_65_plus": { + "n": 1312, + "age_sex_normalized_disease_time_brier": 1.843311166036025, + "raw_disease_time_brier_macro": 0.007145326784487621, + "macro_auroc_365d": 0.7303748371825822, + "macro_auprc_365d": 0.05856951038741413, + "macro_brier_365d": 0.009980358117710227, + "scorable_auroc_diseases": 239, + "death_time_brier": 0.0799604158865502 + }, + "sex_F": { + "n": 1552, + "age_sex_normalized_disease_time_brier": 1.3598514333764997, + "raw_disease_time_brier_macro": 0.005040526253697199, + "macro_auroc_365d": 0.7923435554923851, + "macro_auprc_365d": 0.07056918727745858, + "macro_brier_365d": 0.006982386126834402, + "scorable_auroc_diseases": 244, + "death_time_brier": 0.04017069957652738 + }, + "sex_M": { + "n": 1291, + "age_sex_normalized_disease_time_brier": 1.7005947055150696, + "raw_disease_time_brier_macro": 0.006290280368036909, + "macro_auroc_365d": 0.7785185461501143, + "macro_auprc_365d": 0.06327994552149942, + "macro_brier_365d": 0.00898460987506586, + "scorable_auroc_diseases": 250, + "death_time_brier": 0.057708188621565445 + }, + "no_future_disease_record": { + "n": 1949, + "age_sex_normalized_disease_time_brier": 0.027190542471683406, + "raw_disease_time_brier_macro": 0.00015724725324304205, + "macro_auroc_365d": null, + "macro_auprc_365d": null, + "macro_brier_365d": 0.0002726490165128657, + "scorable_auroc_diseases": 0, + "death_time_brier": 0.03429073200012466 + }, + "future_disease_record": { + "n": 894, + "age_sex_normalized_disease_time_brier": 4.777866754500629, + "raw_disease_time_brier_macro": 0.017716684514044644, + "macro_auroc_365d": 0.7199351379936457, + "macro_auprc_365d": 0.09936608255478452, + "macro_brier_365d": 0.024810150092764462, + "scorable_auroc_diseases": 258, + "death_time_brier": 0.07831494472591552 + } + }, + "confidence_intervals": null +} diff --git a/shared/package-files/86/86aa7054e3a792af836c8ff85715ae94edac0d6bc33cc6e8ae0ca955c90309fc/resize_as_sparse_native.h b/shared/package-files/86/86aa7054e3a792af836c8ff85715ae94edac0d6bc33cc6e8ae0ca955c90309fc/resize_as_sparse_native.h new file mode 100644 index 0000000000000000000000000000000000000000..beb06b63ff4c927d7bad11dbc81e3e7ebff682f3 --- /dev/null +++ b/shared/package-files/86/86aa7054e3a792af836c8ff85715ae94edac0d6bc33cc6e8ae0ca955c90309fc/resize_as_sparse_native.h @@ -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 at::Tensor resize_as_sparse(const at::Tensor & self, const at::Tensor & the_template); +TORCH_API const at::Tensor & resize_as_sparse_out(const at::Tensor & self, const at::Tensor & the_template, const at::Tensor & out); +TORCH_API const at::Tensor & resize_as_sparse_(const at::Tensor & self, const at::Tensor & the_template); +TORCH_API const at::Tensor & resize_as_sparse_compressed_(const at::Tensor & self, const at::Tensor & the_template); +} // namespace native +} // namespace at diff --git a/shared/package-files/86/86aa8c822cc192915ce26b175ba2108ec183a77585c1f793bd11f148cb8a9391/sane_lists.pyi b/shared/package-files/86/86aa8c822cc192915ce26b175ba2108ec183a77585c1f793bd11f148cb8a9391/sane_lists.pyi new file mode 100644 index 0000000000000000000000000000000000000000..2a9cc86d3266eededdd04a6a52629e803fde0dcc --- /dev/null +++ b/shared/package-files/86/86aa8c822cc192915ce26b175ba2108ec183a77585c1f793bd11f148cb8a9391/sane_lists.pyi @@ -0,0 +1,14 @@ +from typing import Any, Pattern + +from markdown.blockprocessors import OListProcessor, UListProcessor +from markdown.extensions import Extension + +class SaneOListProcessor(OListProcessor): + def __init__(self, parser) -> None: ... + +class SaneUListProcessor(UListProcessor): + def __init__(self, parser) -> None: ... + +class SaneListExtension(Extension): ... + +def makeExtension(**kwargs): ... diff --git a/shared/package-files/86/86afb4bdfefc68b46420c3af8845be9e8c2d01f67703befc31c3d96852a69f9c/test_lazy_imports.py b/shared/package-files/86/86afb4bdfefc68b46420c3af8845be9e8c2d01f67703befc31c3d96852a69f9c/test_lazy_imports.py new file mode 100644 index 0000000000000000000000000000000000000000..fe022c479e0ab829678775f6c88bc818cefaf5e0 --- /dev/null +++ b/shared/package-files/86/86afb4bdfefc68b46420c3af8845be9e8c2d01f67703befc31c3d96852a69f9c/test_lazy_imports.py @@ -0,0 +1,97 @@ +import importlib +import sys +import types + +import pytest + +import networkx.lazy_imports as lazy + + +def test_lazy_import_basics(): + math = lazy._lazy_import("math") + anything_not_real = lazy._lazy_import("anything_not_real") + + # Now test that accessing attributes does what it should + assert math.sin(math.pi) == pytest.approx(0, 1e-6) + # poor-mans pytest.raises for testing errors on attribute access + try: + anything_not_real.pi + assert False # Should not get here + except ModuleNotFoundError: + pass + assert isinstance(anything_not_real, lazy.DelayedImportErrorModule) + # see if it changes for second access + try: + anything_not_real.pi + assert False # Should not get here + except ModuleNotFoundError: + pass + + +def test_lazy_import_impact_on_sys_modules(): + math = lazy._lazy_import("math") + anything_not_real = lazy._lazy_import("anything_not_real") + + assert type(math) == types.ModuleType + assert "math" in sys.modules + assert type(anything_not_real) == lazy.DelayedImportErrorModule + assert "anything_not_real" not in sys.modules + + # only do this if numpy is installed + np_test = pytest.importorskip("numpy") + np = lazy._lazy_import("numpy") + assert type(np) == types.ModuleType + assert "numpy" in sys.modules + + np.pi # trigger load of numpy + + assert type(np) == types.ModuleType + assert "numpy" in sys.modules + + +def test_lazy_import_nonbuiltins(): + sp = lazy._lazy_import("scipy") + np = lazy._lazy_import("numpy") + if isinstance(sp, lazy.DelayedImportErrorModule): + try: + sp.pi + assert False + except ModuleNotFoundError: + pass + elif isinstance(np, lazy.DelayedImportErrorModule): + try: + np.sin(np.pi) + assert False + except ModuleNotFoundError: + pass + else: + assert np.sin(sp.pi) == pytest.approx(0, 1e-6) + + +def test_lazy_attach(): + name = "mymod" + submods = ["mysubmodule", "anothersubmodule"] + myall = {"not_real_submod": ["some_var_or_func"]} + + locls = { + "attach": lazy.attach, + "name": name, + "submods": submods, + "myall": myall, + } + s = "__getattr__, __lazy_dir__, __all__ = attach(name, submods, myall)" + + exec(s, {}, locls) + expected = { + "attach": lazy.attach, + "name": name, + "submods": submods, + "myall": myall, + "__getattr__": None, + "__lazy_dir__": None, + "__all__": None, + } + assert locls.keys() == expected.keys() + for k, v in expected.items(): + if v is not None: + assert locls[k] == v diff --git a/shared/package-files/86/86b8a277862aaa9da236a728244b866d32ab97cf42e5ded9787cce27b1671610/timeit.py b/shared/package-files/86/86b8a277862aaa9da236a728244b866d32ab97cf42e5ded9787cce27b1671610/timeit.py new file mode 100644 index 0000000000000000000000000000000000000000..9dfd454936e6b8c790297f2020d1295fc447dde6 --- /dev/null +++ b/shared/package-files/86/86b8a277862aaa9da236a728244b866d32ab97cf42e5ded9787cce27b1671610/timeit.py @@ -0,0 +1,376 @@ +#! /usr/bin/env python3 + +"""Tool for measuring execution time of small code snippets. + +This module avoids a number of common traps for measuring execution +times. See also Tim Peters' introduction to the Algorithms chapter in +the Python Cookbook, published by O'Reilly. + +Library usage: see the Timer class. + +Command line usage: + python timeit.py [-n N] [-r N] [-s S] [-p] [-h] [--] [statement] + +Options: + -n/--number N: how many times to execute 'statement' (default: see below) + -r/--repeat N: how many times to repeat the timer (default 5) + -s/--setup S: statement to be executed once initially (default 'pass'). + Execution time of this setup statement is NOT timed. + -p/--process: use time.process_time() (default is time.perf_counter()) + -v/--verbose: print raw timing results; repeat for more digits precision + -u/--unit: set the output time unit (nsec, usec, msec, or sec) + -h/--help: print this usage message and exit + --: separate options from statement, use when statement starts with - + statement: statement to be timed (default 'pass') + +A multi-line statement may be given by specifying each line as a +separate argument; indented lines are possible by enclosing an +argument in quotes and using leading spaces. Multiple -s options are +treated similarly. + +If -n is not given, a suitable number of loops is calculated by trying +increasing numbers from the sequence 1, 2, 5, 10, 20, 50, ... until the +total time is at least 0.2 seconds. + +Note: there is a certain baseline overhead associated with executing a +pass statement. It differs between versions. The code here doesn't try +to hide it, but you should be aware of it. The baseline overhead can be +measured by invoking the program without arguments. + +Classes: + + Timer + +Functions: + + timeit(string, string) -> float + repeat(string, string) -> list + default_timer() -> float + +""" + +import gc +import sys +import time +import itertools + +__all__ = ["Timer", "timeit", "repeat", "default_timer"] + +dummy_src_name = "" +default_number = 1000000 +default_repeat = 5 +default_timer = time.perf_counter + +_globals = globals + +# Don't change the indentation of the template; the reindent() calls +# in Timer.__init__() depend on setup being indented 4 spaces and stmt +# being indented 8 spaces. +template = """ +def inner(_it, _timer{init}): + {setup} + _t0 = _timer() + for _i in _it: + {stmt} + pass + _t1 = _timer() + return _t1 - _t0 +""" + +def reindent(src, indent): + """Helper to reindent a multi-line statement.""" + return src.replace("\n", "\n" + " "*indent) + +class Timer: + """Class for timing execution speed of small code snippets. + + The constructor takes a statement to be timed, an additional + statement used for setup, and a timer function. Both statements + default to 'pass'; the timer function is platform-dependent (see + module doc string). If 'globals' is specified, the code will be + executed within that namespace (as opposed to inside timeit's + namespace). + + To measure the execution time of the first statement, use the + timeit() method. The repeat() method is a convenience to call + timeit() multiple times and return a list of results. + + The statements may contain newlines, as long as they don't contain + multi-line string literals. + """ + + def __init__(self, stmt="pass", setup="pass", timer=default_timer, + globals=None): + """Constructor. See class doc string.""" + self.timer = timer + local_ns = {} + global_ns = _globals() if globals is None else globals + init = '' + if isinstance(setup, str): + # Check that the code can be compiled outside a function + compile(setup, dummy_src_name, "exec") + stmtprefix = setup + '\n' + setup = reindent(setup, 4) + elif callable(setup): + local_ns['_setup'] = setup + init += ', _setup=_setup' + stmtprefix = '' + setup = '_setup()' + else: + raise ValueError("setup is neither a string nor callable") + if isinstance(stmt, str): + # Check that the code can be compiled outside a function + compile(stmtprefix + stmt, dummy_src_name, "exec") + stmt = reindent(stmt, 8) + elif callable(stmt): + local_ns['_stmt'] = stmt + init += ', _stmt=_stmt' + stmt = '_stmt()' + else: + raise ValueError("stmt is neither a string nor callable") + src = template.format(stmt=stmt, setup=setup, init=init) + self.src = src # Save for traceback display + code = compile(src, dummy_src_name, "exec") + exec(code, global_ns, local_ns) + self.inner = local_ns["inner"] + + def print_exc(self, file=None): + """Helper to print a traceback from the timed code. + + Typical use: + + t = Timer(...) # outside the try/except + try: + t.timeit(...) # or t.repeat(...) + except: + t.print_exc() + + The advantage over the standard traceback is that source lines + in the compiled template will be displayed. + + The optional file argument directs where the traceback is + sent; it defaults to sys.stderr. + """ + import linecache, traceback + if self.src is not None: + linecache.cache[dummy_src_name] = (len(self.src), + None, + self.src.split("\n"), + dummy_src_name) + # else the source is already stored somewhere else + + traceback.print_exc(file=file) + + def timeit(self, number=default_number): + """Time 'number' executions of the main statement. + + To be precise, this executes the setup statement once, and + then returns the time it takes to execute the main statement + a number of times, as a float measured in seconds. The + argument is the number of times through the loop, defaulting + to one million. The main statement, the setup statement and + the timer function to be used are passed to the constructor. + """ + it = itertools.repeat(None, number) + gcold = gc.isenabled() + gc.disable() + try: + timing = self.inner(it, self.timer) + finally: + if gcold: + gc.enable() + return timing + + def repeat(self, repeat=default_repeat, number=default_number): + """Call timeit() a few times. + + This is a convenience function that calls the timeit() + repeatedly, returning a list of results. The first argument + specifies how many times to call timeit(), defaulting to 5; + the second argument specifies the timer argument, defaulting + to one million. + + Note: it's tempting to calculate mean and standard deviation + from the result vector and report these. However, this is not + very useful. In a typical case, the lowest value gives a + lower bound for how fast your machine can run the given code + snippet; higher values in the result vector are typically not + caused by variability in Python's speed, but by other + processes interfering with your timing accuracy. So the min() + of the result is probably the only number you should be + interested in. After that, you should look at the entire + vector and apply common sense rather than statistics. + """ + r = [] + for i in range(repeat): + t = self.timeit(number) + r.append(t) + return r + + def autorange(self, callback=None): + """Return the number of loops and time taken so that total time >= 0.2. + + Calls the timeit method with increasing numbers from the sequence + 1, 2, 5, 10, 20, 50, ... until the time taken is at least 0.2 + second. Returns (number, time_taken). + + If *callback* is given and is not None, it will be called after + each trial with two arguments: ``callback(number, time_taken)``. + """ + i = 1 + while True: + for j in 1, 2, 5: + number = i * j + time_taken = self.timeit(number) + if callback: + callback(number, time_taken) + if time_taken >= 0.2: + return (number, time_taken) + i *= 10 + +def timeit(stmt="pass", setup="pass", timer=default_timer, + number=default_number, globals=None): + """Convenience function to create Timer object and call timeit method.""" + return Timer(stmt, setup, timer, globals).timeit(number) + +def repeat(stmt="pass", setup="pass", timer=default_timer, + repeat=default_repeat, number=default_number, globals=None): + """Convenience function to create Timer object and call repeat method.""" + return Timer(stmt, setup, timer, globals).repeat(repeat, number) + +def main(args=None, *, _wrap_timer=None): + """Main program, used when run as a script. + + The optional 'args' argument specifies the command line to be parsed, + defaulting to sys.argv[1:]. + + The return value is an exit code to be passed to sys.exit(); it + may be None to indicate success. + + When an exception happens during timing, a traceback is printed to + stderr and the return value is 1. Exceptions at other times + (including the template compilation) are not caught. + + '_wrap_timer' is an internal interface used for unit testing. If it + is not None, it must be a callable that accepts a timer function + and returns another timer function (used for unit testing). + """ + if args is None: + args = sys.argv[1:] + import getopt + try: + opts, args = getopt.getopt(args, "n:u:s:r:tcpvh", + ["number=", "setup=", "repeat=", + "time", "clock", "process", + "verbose", "unit=", "help"]) + except getopt.error as err: + print(err) + print("use -h/--help for command line help") + return 2 + + timer = default_timer + stmt = "\n".join(args) or "pass" + number = 0 # auto-determine + setup = [] + repeat = default_repeat + verbose = 0 + time_unit = None + units = {"nsec": 1e-9, "usec": 1e-6, "msec": 1e-3, "sec": 1.0} + precision = 3 + for o, a in opts: + if o in ("-n", "--number"): + number = int(a) + if o in ("-s", "--setup"): + setup.append(a) + if o in ("-u", "--unit"): + if a in units: + time_unit = a + else: + print("Unrecognized unit. Please select nsec, usec, msec, or sec.", + file=sys.stderr) + return 2 + if o in ("-r", "--repeat"): + repeat = int(a) + if repeat <= 0: + repeat = 1 + if o in ("-p", "--process"): + timer = time.process_time + if o in ("-v", "--verbose"): + if verbose: + precision += 1 + verbose += 1 + if o in ("-h", "--help"): + print(__doc__, end=' ') + return 0 + setup = "\n".join(setup) or "pass" + + # Include the current directory, so that local imports work (sys.path + # contains the directory of this script, rather than the current + # directory) + import os + sys.path.insert(0, os.curdir) + if _wrap_timer is not None: + timer = _wrap_timer(timer) + + t = Timer(stmt, setup, timer) + if number == 0: + # determine number so that 0.2 <= total time < 2.0 + callback = None + if verbose: + def callback(number, time_taken): + msg = "{num} loop{s} -> {secs:.{prec}g} secs" + plural = (number != 1) + print(msg.format(num=number, s='s' if plural else '', + secs=time_taken, prec=precision)) + try: + number, _ = t.autorange(callback) + except: + t.print_exc() + return 1 + + if verbose: + print() + + try: + raw_timings = t.repeat(repeat, number) + except: + t.print_exc() + return 1 + + def format_time(dt): + unit = time_unit + + if unit is not None: + scale = units[unit] + else: + scales = [(scale, unit) for unit, scale in units.items()] + scales.sort(reverse=True) + for scale, unit in scales: + if dt >= scale: + break + + return "%.*g %s" % (precision, dt / scale, unit) + + if verbose: + print("raw times: %s" % ", ".join(map(format_time, raw_timings))) + print() + timings = [dt / number for dt in raw_timings] + + best = min(timings) + print("%d loop%s, best of %d: %s per loop" + % (number, 's' if number != 1 else '', + repeat, format_time(best))) + + best = min(timings) + worst = max(timings) + if worst >= best * 4: + import warnings + warnings.warn_explicit("The test results are likely unreliable. " + "The worst time (%s) was more than four times " + "slower than the best time (%s)." + % (format_time(worst), format_time(best)), + UserWarning, '', 0) + return None + +if __name__ == "__main__": + sys.exit(main()) diff --git a/shared/package-files/86/86b9886d1aef64f4e099dfca1b64024e7bd7379a41e48f57d19666c2bd8ea0e5/_convert_indices_from_csr_to_coo_meta.h b/shared/package-files/86/86b9886d1aef64f4e099dfca1b64024e7bd7379a41e48f57d19666c2bd8ea0e5/_convert_indices_from_csr_to_coo_meta.h new file mode 100644 index 0000000000000000000000000000000000000000..09b58daaa69778d2fa52adfb49927372a99995d9 --- /dev/null +++ b/shared/package-files/86/86b9886d1aef64f4e099dfca1b64024e7bd7379a41e48f57d19666c2bd8ea0e5/_convert_indices_from_csr_to_coo_meta.h @@ -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__convert_indices_from_csr_to_coo : public at::impl::MetaBase { + + + void meta(const at::Tensor & crow_indices, const at::Tensor & col_indices, bool out_int32, bool transpose); +}; + +} // namespace native +} // namespace at diff --git a/shared/package-files/86/86b9eca11257ed6a28fec34265d5c36862aa91a02b0f605af3460ba158e66933/results_tmodel.py b/shared/package-files/86/86b9eca11257ed6a28fec34265d5c36862aa91a02b0f605af3460ba158e66933/results_tmodel.py new file mode 100644 index 0000000000000000000000000000000000000000..057b37225ab6169b2fb84219b79501aa4f47b7c2 --- /dev/null +++ b/shared/package-files/86/86b9eca11257ed6a28fec34265d5c36862aa91a02b0f605af3460ba158e66933/results_tmodel.py @@ -0,0 +1,175 @@ +""" + +Created on Sun Jun 30 23:14:36 2013 + +Author: Josef Perktold +""" + +import numpy as np + +from statsmodels.tools.testing import Holder + +res_t_dfest = Holder() +# > tfit3 <- tlm(m.marietta~CRSP, data=mm, start=list(dof = 3), estDof=TRUE) +# > cat_items(tfit3, "res_t_dfest.") +res_t_dfest.random = np.array([ + 0.6242843, 1.349205, 1.224172, 1.272655, 1.323455, 1.091313, 1.227218, + 0.0316284, 0.7202973, 1.038392, 1.091907, 0.7966355, 0.784222, + 0.5042926, 0.1964543, 1.172123, 1.017338, 0.8799186, 0.7849335, + 0.790158, 0.8121724, 1.286998, 0.7286052, 1.330104, 1.054037, + 1.299656, 1.285306, 1.271166, 1.106877, 1.303909, 0.4250416, 1.277096, + 1.160106, 0.1871806, 1.074168, 1.197795, 1.046638, 1.104423, 1.301670, + 1.333217, 0.8156778, 1.309934, 1.142454, 1.347481, 0.6605017, + 1.035725, 1.172666, 1.281746, 0.8796436, 0.9597098, 0.6221453, + 1.149490, 1.291864, 1.207619, 1.239625, 1.351065, 1.248711, 0.3532520, + 0.6067273, 0.8180234 + ]) +res_t_dfest.dof = 2.837183 +res_t_dfest.dofse = 1.175296 +res_t_dfest.iter = 7 +res_t_dfest.logLik = 71.81292 +res_t_dfest.endTime = 0.01 + +loc_fit = Holder() +# > cat_items(tfit3$loc.fit, "loc_fit.") +loc_fit.coefficients = np.array([-0.007248461, 1.263751]) +loc_fit.residuals = np.array([ + -0.09133902, 0.004151492, -0.02737765, 0.02117769, 0.01251936, + -0.0413709, -0.02701702, 0.5465314, -0.07922967, -0.04651135, + -0.04131256, 0.07064283, -0.07199043, -0.1096804, 0.2051536, + 0.0331728, 0.04853971, 0.06197657, 0.07191273, -0.07134392, + 0.06897908, -0.01907315, -0.0782573, -0.01096341, 0.04500034, + -0.01704652, -0.01933079, 0.02138696, 0.03983612, -0.01631880, + 0.1249257, -0.02054422, -0.03443716, 0.2110156, -0.04304691, + 0.03038995, 0.04571555, 0.04007908, -0.01670529, 0.01015959, + 0.06860706, -0.01523742, 0.03625959, 0.005138716, -0.08656302, + -0.04676856, -0.03311507, -0.01986418, -0.06200429, 0.05410242, + 0.09163019, 0.03553772, 0.01831594, -0.02928904, 0.02551524, + 0.002713425, 0.02437713, -0.1422379, 0.09376145, -0.06835877 + ]) +loc_fit.fitted_values = np.array([ + -0.04516098, -0.0810515, -0.03012235, 0.03142231, -0.05741936, + -0.0445291, -0.04718298, 0.1413686, 0.002229668, 0.1315113, + 0.04431256, 0.004757169, 0.03079043, 0.02068043, 0.02674643, + 0.0755272, -0.01103971, 0.03382343, -0.05451273, -0.001056083, + 0.00602092, -0.03972685, 0.0162573, -0.02683659, -0.02810034, + -0.06285348, 0.004630794, -0.01078696, -0.08193612, 0.01271880, + -0.03732572, 0.1230442, -0.01546284, -0.01571559, -0.02835309, + 0.01651005, 0.08538445, 0.00602092, -0.01609471, -0.01975959, + 0.05859294, 0.00753742, -0.01975959, -0.02013872, -0.06133698, + 0.04026856, 0.07211507, 0.04216418, -0.006995711, 0.07969758, + 0.05416981, -0.02923772, 0.05088406, 0.005389044, -0.08231524, + 0.07868658, -0.1132771, 0.05353794, 0.009938546, -0.04794123 + ]) +loc_fit.effects = np.array([ + -0.4809681, 6.645774, -0.6803134, 0.8423367, 0.5333795, -0.9748358, + -0.6818408, 0.6716256, -1.239349, -0.9454051, -0.919986, 1.546571, + -1.206974, -1.185012, 1.167586, 1.162168, 1.367571, 1.521386, + 1.514811, -1.224234, 1.541103, -0.4658513, -1.229607, -0.2132594, + 1.309335, -0.4211133, -0.4462804, 0.8224875, 1.194665, -0.3537337, + 1.443046, -0.4086050, -0.8295162, 1.122057, -0.9918254, 1.065403, + 1.388378, 1.252209, -0.3826760, 0.4819511, 1.571469, -0.3244968, + 1.166818, 0.3190928, -1.280510, -1.004244, -0.7489287, -0.4386115, + -1.182836, 1.485040, 1.594513, 1.146952, 0.773323, -0.7043392, + 0.888233, 0.2990213, 0.8402323, -1.040679, 1.564756, -1.241512 + ]) +loc_fit.weights = np.array([ + 260.7666, 260.7666, 260.7666, 260.7666, 260.7666, 260.7666, 260.7666, + 260.7666, 260.7666, 260.7666, 260.7666, 260.7666, 260.7666, 260.7666, + 260.7666, 260.7666, 260.7666, 260.7666, 260.7666, 260.7666, 260.7666, + 260.7666, 260.7666, 260.7666, 260.7666, 260.7666, 260.7666, 260.7666, + 260.7666, 260.7666, 260.7666, 260.7666, 260.7666, 260.7666, 260.7666, + 260.7666, 260.7666, 260.7666, 260.7666, 260.7666, 260.7666, 260.7666, + 260.7666, 260.7666, 260.7666, 260.7666, 260.7666, 260.7666, 260.7666, + 260.7666, 260.7666, 260.7666, 260.7666, 260.7666, 260.7666, 260.7666, + 260.7666, 260.7666, 260.7666, 260.7666 + ]) +loc_fit.qr = """structure(list(qr = structure(c(-125.083961390618, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, 0.129099444873581, -1.09802870774065, 5.25877087979451, 0.068920957251135, -0.0806236351850806, 0.135248743629416, 0.103927288950783, 0.110375823737560, -0.34777721920871, -0.00968975253053064, -0.323825518572109, -0.111945089863713, -0.0158312142322233, -0.0790882697596574, -0.0545224229528869, -0.0692619310369492, -0.187792141879617, 0.0225529214033557, -0.0864580238016886, 0.128186062672469, -0.00170585231833022, -0.0189019450830696, 0.092258511717567, -0.0437748649749248, 0.0609370570389346, 0.064007787889781, 0.148452886288055, -0.0155241411471386, 0.0219387752331864, 0.194820922135834, -0.0351768185925551, 0.0864241231009591, -0.303251621871439, 0.0333004793813178, 0.0339146255514870, 0.0646219340599502, -0.044389011145094, -0.211743842516218, -0.0189019450830696, 0.0348358448067410, 0.0437409642741953, -0.146644348478276, -0.0225868221040852, 0.0437409642741953, 0.0446621835294492, 0.144768009267039, -0.102118751141005, -0.179501168582332, -0.106724847417274, 0.0127265826806475, -0.19792555368741, -0.135896790500314, 0.0667714456555426, -0.127912890288114, -0.0173665796576464, 0.195742141391088, -0.195468969006733, 0.270975047236823, -0.134361425074891, -0.0284212107206932, 0.112218262248068), assign = 0:1, .Dim = c(60L, 2L), .Dimnames = list(c("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "50", "51", "52", "53", "54", "55", "56", "57", "58", "59", "60"), c("(Intercept)", "CRSP"))), qraux = c(1.12909944487358, 1.19267141054024), pivot = 1:2, tol = 1e-07, rank = 2L), .Names = c("qr", "qraux", "pivot", "tol", "rank"), class = "qr")""" +loc_fit.method = "maximum likelihood" +loc_fit.formula = """m.marietta ~ CRSP""" +loc_fit.terms = """m.marietta ~ CRSP""" +loc_fit.iter = 7 +loc_fit.call = """tlm(lform = m.marietta ~ CRSP, data = mm, start = list(dof = 3), estDof = TRUE)""" + +# > s = summary(tfit3) +# > cat_items(s$loc.summary, prefix="loc_fit.") +# renamed coefficient -> table +loc_fit.table = np.array([ + -0.007248461, 1.263751, 0.008167043, 0.1901585, -0.8875258, 6.645774, + 0.3784616, 1.150536e-08 + ]).reshape(2, 4, order="F") +loc_fit.table_rownames = ["(Intercept)", "CRSP", ] +loc_fit.table_colnames = ["Estimate", "Std. Error", "t value", "Pr(>|t|)", ] +loc_fit.dispersion = 1 +loc_fit.cov_unscaled = np.array([ + 6.670059e-05, -0.0003174268, -0.0003174268, 0.03616026 + ]).reshape(2, 2, order="F") +loc_fit.cov_unscaled_rownames = ["(Intercept)", "CRSP", ] +loc_fit.cov_unscaled_colnames = ["(Intercept)", "CRSP", ] +loc_fit.cov_scaled = np.array([ + 6.670059e-05, -0.0003174268, -0.0003174268, 0.03616026 + ]).reshape(2, 2, order="F") +loc_fit.cov_scaled_rownames = ["(Intercept)", "CRSP", ] +loc_fit.cov_scaled_colnames = ["(Intercept)", "CRSP", ] + + +scale_fit = Holder() +# > cat_items(tfit3$scale.fit, "scale_fit.") +scale_fit.coefficients = -5.983115 +scale_fit.residuals = np.array([ + 2.193327, -2.038408, -1.308573, -1.591579, -1.888103, -0.5330418, + -1.326357, 5.653531, 1.632833, -0.2240806, -0.5364947, 1.187192, + 1.259662, 2.893897, 4.691185, -1.004751, -0.1011940, 0.7009929, + 1.255535, 1.224993, 1.096490, -1.675302, 1.584339, -1.926915, + -0.3154245, -1.749184, -1.665424, -1.582882, -0.6238652, -1.774011, + 3.356624, -1.617496, -0.9346065, 4.74536, -0.4329547, -1.154602, + -0.2722567, -0.6095562, -1.76094, -1.945082, 1.076003, -1.809181, + -0.8315554, -2.028347, 1.98188, -0.2085298, -1.007913, -1.644641, + 0.702596, 0.2351866, 2.205829, -0.8726262, -1.703705, -1.211949, + -1.398769, -2.049267, -1.451807, 3.775749, 2.295868, 1.062300 + ]) +scale_fit.fitted_values = np.array([ + 0.002520962, 0.002520962, 0.002520962, 0.002520962, 0.002520962, + 0.002520962, 0.002520962, 0.002520962, 0.002520962, 0.002520962, + 0.002520962, 0.002520962, 0.002520962, 0.002520962, 0.002520962, + 0.002520962, 0.002520962, 0.002520962, 0.002520962, 0.002520962, + 0.002520962, 0.002520962, 0.002520962, 0.002520962, 0.002520962, + 0.002520962, 0.002520962, 0.002520962, 0.002520962, 0.002520962, + 0.002520962, 0.002520962, 0.002520962, 0.002520962, 0.002520962, + 0.002520962, 0.002520962, 0.002520962, 0.002520962, 0.002520962, + 0.002520962, 0.002520962, 0.002520962, 0.002520962, 0.002520962, + 0.002520962, 0.002520962, 0.002520962, 0.002520962, 0.002520962, + 0.002520962, 0.002520962, 0.002520962, 0.002520962, 0.002520962, + 0.002520962, 0.002520962, 0.002520962, 0.002520962, 0.002520962 + ]) +scale_fit.effects = np.array([ + 32.31074, -1.595974, -1.087148, -1.284454, -1.491184, -0.5464648, + -1.099547, 3.766681, 0.9635367, -0.3310637, -0.5488721, 0.6528456, + 0.70337, 1.842724, 3.095754, -0.8753306, -0.2453897, 0.3138777, + 0.7004929, 0.6791996, 0.5896097, -1.342824, 0.9297278, -1.518243, + -0.3947467, -1.394333, -1.335937, -1.278391, -0.6097849, -1.411642, + 2.165327, -1.302523, -0.826427, 3.133524, -0.4766862, -0.979803, + -0.364651, -0.599809, -1.402529, -1.530909, 0.5753267, -1.436162, + -0.754582, -1.588959, 1.206885, -0.3202220, -0.8775351, -1.321448, + 0.3149953, -0.01087243, 1.363017, -0.7832157, -1.362626, -1.019784, + -1.150031, -1.603544, -1.187008, 2.457531, 1.425790, 0.5657731 + ]) +scale_fit.weights = np.array([ + 0.4860579, 0.4860579, 0.4860579, 0.4860579, 0.4860579, 0.4860579, + 0.4860579, 0.4860579, 0.4860579, 0.4860579, 0.4860579, 0.4860579, + 0.4860579, 0.4860579, 0.4860579, 0.4860579, 0.4860579, 0.4860579, + 0.4860579, 0.4860579, 0.4860579, 0.4860579, 0.4860579, 0.4860579, + 0.4860579, 0.4860579, 0.4860579, 0.4860579, 0.4860579, 0.4860579, + 0.4860579, 0.4860579, 0.4860579, 0.4860579, 0.4860579, 0.4860579, + 0.4860579, 0.4860579, 0.4860579, 0.4860579, 0.4860579, 0.4860579, + 0.4860579, 0.4860579, 0.4860579, 0.4860579, 0.4860579, 0.4860579, + 0.4860579, 0.4860579, 0.4860579, 0.4860579, 0.4860579, 0.4860579, + 0.4860579, 0.4860579, 0.4860579, 0.4860579, 0.4860579, 0.4860579 + ]) +scale_fit.formula = """m.marietta ~ 1""" +scale_fit.terms = """m.marietta ~ 1""" +scale_fit.iter = 7 +scale_fit.call = """tlm(lform = m.marietta ~ CRSP, data = mm, start = list(dof = 3), estDof = TRUE)""" + +res_t_dfest.loc_fit = loc_fit +res_t_dfest.scale_fit = scale_fit diff --git a/shared/package-files/86/86c12957b22025758d5183f52fbef129a36e8e56e63af6cb2b8b8875173aae2e/test_getitem_on_types.py b/shared/package-files/86/86c12957b22025758d5183f52fbef129a36e8e56e63af6cb2b8b8875173aae2e/test_getitem_on_types.py new file mode 100644 index 0000000000000000000000000000000000000000..6dcec04f9856a820853ba0ea806613ea5beb7bdb --- /dev/null +++ b/shared/package-files/86/86c12957b22025758d5183f52fbef129a36e8e56e63af6cb2b8b8875173aae2e/test_getitem_on_types.py @@ -0,0 +1,107 @@ +import unittest +from itertools import product +from numba import types, njit, typed, errors +from numba.tests.support import TestCase + + +class TestGetitemOnTypes(TestCase): + # Tests getitem on the type types. + + def test_static_getitem_on_type(self): + + def gen(numba_type, index): + def foo(): + ty = numba_type[index] # a static_getitem + return typed.List.empty_list(ty) + return foo + + # test a few types + tys = (types.bool_, types.float64, types.uint8, types.complex128,) + + # and a few indexes of increasing complexity + contig = slice(None, None, 1) # unit stride + noncontig = slice(None, None, None) + indexes = (contig, # 1d contig -> C order + noncontig, # 1d non-contig -> A order + (noncontig, contig), # 2d C order + (contig, noncontig), # 2d F order + (noncontig, noncontig), # 2d A order + (noncontig, noncontig, contig), # 3d C order + (contig, noncontig, noncontig), # 3d F order + (noncontig, noncontig, noncontig), # 3d A order + ) + + for ty, idx in product(tys, indexes): + compilable = njit(gen(ty, idx)) + # check the type of the typed list returned matches the type + # as constructed in the interpreter + expected = ty[idx] + # check execution + self.assertEqual(compilable()._dtype, expected) + got = compilable.nopython_signatures[0].return_type.dtype + # check sig + self.assertEqual(got, expected) + + def test_shorthand_syntax(self): + # tests a couple of shorthand syntax examples + # (test_static_getitem_on_type is a more extensive test of the + # functionality but it uses slices directly). + + @njit + def foo1(): + ty = types.float32[::1, :] # 2d F order + return typed.List.empty_list(ty) + + self.assertEqual(foo1()._dtype, types.float32[::1, :]) + + @njit + def foo2(): + ty = types.complex64[:, :, :] # 3d A order + return typed.List.empty_list(ty) + + self.assertEqual(foo2()._dtype, types.complex64[:, :, :]) + + def test_static_getitem_on_invalid_type(self): + # check that an unsupported type cannot be instantiated in njit code + + # check this executes in the interpreter: + types.void[:] + + # check the same fails in compilation as it's not supported + # it'll fall back to a generic getitem + with self.assertRaises(errors.TypingError) as raises: + @njit + def foo(): + types.void[:] + + foo() + + msg = ("No implementation", + "getitem(typeref[none], slice)") + + excstr = str(raises.exception) + for m in msg: + self.assertIn(m, excstr) + + def test_standard_getitem_on_type(self): + # not supported at present, should be doable if the slice is a literal + # though. + + # check using a non-static arg to the getitem raises + with self.assertRaises(errors.TypingError) as raises: + @njit + def foo(not_static): + types.float64[not_static] + + foo(slice(None, None, 1)) + + msg = ("No implementation", + "getitem(class(float64), slice)") + + excstr = str(raises.exception) + for m in msg: + self.assertIn(m, excstr) + + +if __name__ == '__main__': + unittest.main() diff --git a/shared/package-files/86/86c19cee0f101904d3fb87fcb60cf700ce6ac12720e853b405274b491744be95/wrapper.py b/shared/package-files/86/86c19cee0f101904d3fb87fcb60cf700ce6ac12720e853b405274b491744be95/wrapper.py new file mode 100644 index 0000000000000000000000000000000000000000..f618bc363f12fb416b048e2a86cbddb6082874d6 --- /dev/null +++ b/shared/package-files/86/86c19cee0f101904d3fb87fcb60cf700ce6ac12720e853b405274b491744be95/wrapper.py @@ -0,0 +1,43 @@ +# SPDX-FileCopyrightText: 2015 Eric Larson +# +# SPDX-License-Identifier: Apache-2.0 +from __future__ import annotations + +from typing import TYPE_CHECKING, Collection + +from pip._vendor.cachecontrol.adapter import CacheControlAdapter +from pip._vendor.cachecontrol.cache import DictCache + +if TYPE_CHECKING: + from pip._vendor import requests + + from pip._vendor.cachecontrol.cache import BaseCache + from pip._vendor.cachecontrol.controller import CacheController + from pip._vendor.cachecontrol.heuristics import BaseHeuristic + from pip._vendor.cachecontrol.serialize import Serializer + + +def CacheControl( + sess: requests.Session, + cache: BaseCache | None = None, + cache_etags: bool = True, + serializer: Serializer | None = None, + heuristic: BaseHeuristic | None = None, + controller_class: type[CacheController] | None = None, + adapter_class: type[CacheControlAdapter] | None = None, + cacheable_methods: Collection[str] | None = None, +) -> requests.Session: + cache = DictCache() if cache is None else cache + adapter_class = adapter_class or CacheControlAdapter + adapter = adapter_class( + cache, + cache_etags=cache_etags, + serializer=serializer, + heuristic=heuristic, + controller_class=controller_class, + cacheable_methods=cacheable_methods, + ) + sess.mount("http://", adapter) + sess.mount("https://", adapter) + + return sess diff --git a/shared/package-files/86/86c6efb51c8184bcd3c57eb6018a834e7edb96d19a9d3d4dc1851e7143c45621/test_solvers.py b/shared/package-files/86/86c6efb51c8184bcd3c57eb6018a834e7edb96d19a9d3d4dc1851e7143c45621/test_solvers.py new file mode 100644 index 0000000000000000000000000000000000000000..f7423f38267c448739df64d9da381619bf45f028 --- /dev/null +++ b/shared/package-files/86/86c6efb51c8184bcd3c57eb6018a834e7edb96d19a9d3d4dc1851e7143c45621/test_solvers.py @@ -0,0 +1,564 @@ +from sympy.core.function import expand_mul +from sympy.core.numbers import (I, Rational) +from sympy.core.singleton import S +from sympy.core.symbol import (Symbol, symbols) +from sympy.core.sympify import sympify +from sympy.simplify.simplify import simplify +from sympy.matrices.matrices import (ShapeError, NonSquareMatrixError) +from sympy.matrices import ( + ImmutableMatrix, Matrix, eye, ones, ImmutableDenseMatrix, dotprodsimp) +from sympy.testing.pytest import raises +from sympy.matrices.common import NonInvertibleMatrixError +from sympy.solvers.solveset import linsolve +from sympy.abc import x, y + +def test_issue_17247_expression_blowup_29(): + M = Matrix(S('''[ + [ -3/4, 45/32 - 37*I/16, 0, 0], + [-149/64 + 49*I/32, -177/128 - 1369*I/128, 0, -2063/256 + 541*I/128], + [ 0, 9/4 + 55*I/16, 2473/256 + 137*I/64, 0], + [ 0, 0, 0, -177/128 - 1369*I/128]]''')) + with dotprodsimp(True): + assert M.gauss_jordan_solve(ones(4, 1)) == (Matrix(S('''[ + [ -32549314808672/3306971225785 - 17397006745216*I/3306971225785], + [ 67439348256/3306971225785 - 9167503335872*I/3306971225785], + [-15091965363354518272/21217636514687010905 + 16890163109293858304*I/21217636514687010905], + [ -11328/952745 + 87616*I/952745]]''')), Matrix(0, 1, [])) + +def test_issue_17247_expression_blowup_30(): + M = Matrix(S('''[ + [ -3/4, 45/32 - 37*I/16, 0, 0], + [-149/64 + 49*I/32, -177/128 - 1369*I/128, 0, -2063/256 + 541*I/128], + [ 0, 9/4 + 55*I/16, 2473/256 + 137*I/64, 0], + [ 0, 0, 0, -177/128 - 1369*I/128]]''')) + with dotprodsimp(True): + assert M.cholesky_solve(ones(4, 1)) == Matrix(S('''[ + [ -32549314808672/3306971225785 - 17397006745216*I/3306971225785], + [ 67439348256/3306971225785 - 9167503335872*I/3306971225785], + [-15091965363354518272/21217636514687010905 + 16890163109293858304*I/21217636514687010905], + [ -11328/952745 + 87616*I/952745]]''')) + +# @XFAIL # This calculation hangs with dotprodsimp. +# def test_issue_17247_expression_blowup_31(): +# M = Matrix([ +# [x + 1, 1 - x, 0, 0], +# [1 - x, x + 1, 0, x + 1], +# [ 0, 1 - x, x + 1, 0], +# [ 0, 0, 0, x + 1]]) +# with dotprodsimp(True): +# assert M.LDLsolve(ones(4, 1)) == Matrix([ +# [(x + 1)/(4*x)], +# [(x - 1)/(4*x)], +# [(x + 1)/(4*x)], +# [ 1/(x + 1)]]) + +def test_issue_17247_expression_blowup_32(): + M = Matrix([ + [x + 1, 1 - x, 0, 0], + [1 - x, x + 1, 0, x + 1], + [ 0, 1 - x, x + 1, 0], + [ 0, 0, 0, x + 1]]) + with dotprodsimp(True): + assert M.LUsolve(ones(4, 1)) == Matrix([ + [(x + 1)/(4*x)], + [(x - 1)/(4*x)], + [(x + 1)/(4*x)], + [ 1/(x + 1)]]) + +def test_LUsolve(): + A = Matrix([[2, 3, 5], + [3, 6, 2], + [8, 3, 6]]) + x = Matrix(3, 1, [3, 7, 5]) + b = A*x + soln = A.LUsolve(b) + assert soln == x + A = Matrix([[0, -1, 2], + [5, 10, 7], + [8, 3, 4]]) + x = Matrix(3, 1, [-1, 2, 5]) + b = A*x + soln = A.LUsolve(b) + assert soln == x + A = Matrix([[2, 1], [1, 0], [1, 0]]) # issue 14548 + b = Matrix([3, 1, 1]) + assert A.LUsolve(b) == Matrix([1, 1]) + b = Matrix([3, 1, 2]) # inconsistent + raises(ValueError, lambda: A.LUsolve(b)) + A = Matrix([[0, -1, 2], + [5, 10, 7], + [8, 3, 4], + [2, 3, 5], + [3, 6, 2], + [8, 3, 6]]) + x = Matrix([2, 1, -4]) + b = A*x + soln = A.LUsolve(b) + assert soln == x + A = Matrix([[0, -1, 2], [5, 10, 7]]) # underdetermined + x = Matrix([-1, 2, 0]) + b = A*x + raises(NotImplementedError, lambda: A.LUsolve(b)) + + A = Matrix(4, 4, lambda i, j: 1/(i+j+1) if i != 3 else 0) + b = Matrix.zeros(4, 1) + raises(NonInvertibleMatrixError, lambda: A.LUsolve(b)) + + +def test_QRsolve(): + A = Matrix([[2, 3, 5], + [3, 6, 2], + [8, 3, 6]]) + x = Matrix(3, 1, [3, 7, 5]) + b = A*x + soln = A.QRsolve(b) + assert soln == x + x = Matrix([[1, 2], [3, 4], [5, 6]]) + b = A*x + soln = A.QRsolve(b) + assert soln == x + + A = Matrix([[0, -1, 2], + [5, 10, 7], + [8, 3, 4]]) + x = Matrix(3, 1, [-1, 2, 5]) + b = A*x + soln = A.QRsolve(b) + assert soln == x + x = Matrix([[7, 8], [9, 10], [11, 12]]) + b = A*x + soln = A.QRsolve(b) + assert soln == x + +def test_errors(): + raises(ShapeError, lambda: Matrix([1]).LUsolve(Matrix([[1, 2], [3, 4]]))) + +def test_cholesky_solve(): + A = Matrix([[2, 3, 5], + [3, 6, 2], + [8, 3, 6]]) + x = Matrix(3, 1, [3, 7, 5]) + b = A*x + soln = A.cholesky_solve(b) + assert soln == x + A = Matrix([[0, -1, 2], + [5, 10, 7], + [8, 3, 4]]) + x = Matrix(3, 1, [-1, 2, 5]) + b = A*x + soln = A.cholesky_solve(b) + assert soln == x + A = Matrix(((1, 5), (5, 1))) + x = Matrix((4, -3)) + b = A*x + soln = A.cholesky_solve(b) + assert soln == x + A = Matrix(((9, 3*I), (-3*I, 5))) + x = Matrix((-2, 1)) + b = A*x + soln = A.cholesky_solve(b) + assert expand_mul(soln) == x + A = Matrix(((9*I, 3), (-3 + I, 5))) + x = Matrix((2 + 3*I, -1)) + b = A*x + soln = A.cholesky_solve(b) + assert expand_mul(soln) == x + a00, a01, a11, b0, b1 = symbols('a00, a01, a11, b0, b1') + A = Matrix(((a00, a01), (a01, a11))) + b = Matrix((b0, b1)) + x = A.cholesky_solve(b) + assert simplify(A*x) == b + + +def test_LDLsolve(): + A = Matrix([[2, 3, 5], + [3, 6, 2], + [8, 3, 6]]) + x = Matrix(3, 1, [3, 7, 5]) + b = A*x + soln = A.LDLsolve(b) + assert soln == x + + A = Matrix([[0, -1, 2], + [5, 10, 7], + [8, 3, 4]]) + x = Matrix(3, 1, [-1, 2, 5]) + b = A*x + soln = A.LDLsolve(b) + assert soln == x + + A = Matrix(((9, 3*I), (-3*I, 5))) + x = Matrix((-2, 1)) + b = A*x + soln = A.LDLsolve(b) + assert expand_mul(soln) == x + + A = Matrix(((9*I, 3), (-3 + I, 5))) + x = Matrix((2 + 3*I, -1)) + b = A*x + soln = A.LDLsolve(b) + assert expand_mul(soln) == x + + A = Matrix(((9, 3), (3, 9))) + x = Matrix((1, 1)) + b = A * x + soln = A.LDLsolve(b) + assert expand_mul(soln) == x + + A = Matrix([[-5, -3, -4], [-3, -7, 7]]) + x = Matrix([[8], [7], [-2]]) + b = A * x + raises(NotImplementedError, lambda: A.LDLsolve(b)) + + +def test_lower_triangular_solve(): + + raises(NonSquareMatrixError, + lambda: Matrix([1, 0]).lower_triangular_solve(Matrix([0, 1]))) + raises(ShapeError, + lambda: Matrix([[1, 0], [0, 1]]).lower_triangular_solve(Matrix([1]))) + raises(ValueError, + lambda: Matrix([[2, 1], [1, 2]]).lower_triangular_solve( + Matrix([[1, 0], [0, 1]]))) + + A = Matrix([[1, 0], [0, 1]]) + B = Matrix([[x, y], [y, x]]) + C = Matrix([[4, 8], [2, 9]]) + + assert A.lower_triangular_solve(B) == B + assert A.lower_triangular_solve(C) == C + + +def test_upper_triangular_solve(): + + raises(NonSquareMatrixError, + lambda: Matrix([1, 0]).upper_triangular_solve(Matrix([0, 1]))) + raises(ShapeError, + lambda: Matrix([[1, 0], [0, 1]]).upper_triangular_solve(Matrix([1]))) + raises(TypeError, + lambda: Matrix([[2, 1], [1, 2]]).upper_triangular_solve( + Matrix([[1, 0], [0, 1]]))) + + A = Matrix([[1, 0], [0, 1]]) + B = Matrix([[x, y], [y, x]]) + C = Matrix([[2, 4], [3, 8]]) + + assert A.upper_triangular_solve(B) == B + assert A.upper_triangular_solve(C) == C + + +def test_diagonal_solve(): + raises(TypeError, lambda: Matrix([1, 1]).diagonal_solve(Matrix([1]))) + A = Matrix([[1, 0], [0, 1]])*2 + B = Matrix([[x, y], [y, x]]) + assert A.diagonal_solve(B) == B/2 + + A = Matrix([[1, 0], [1, 2]]) + raises(TypeError, lambda: A.diagonal_solve(B)) + +def test_pinv_solve(): + # Fully determined system (unique result, identical to other solvers). + A = Matrix([[1, 5], [7, 9]]) + B = Matrix([12, 13]) + assert A.pinv_solve(B) == A.cholesky_solve(B) + assert A.pinv_solve(B) == A.LDLsolve(B) + assert A.pinv_solve(B) == Matrix([sympify('-43/26'), sympify('71/26')]) + assert A * A.pinv() * B == B + # Fully determined, with two-dimensional B matrix. + B = Matrix([[12, 13, 14], [15, 16, 17]]) + assert A.pinv_solve(B) == A.cholesky_solve(B) + assert A.pinv_solve(B) == A.LDLsolve(B) + assert A.pinv_solve(B) == Matrix([[-33, -37, -41], [69, 75, 81]]) / 26 + assert A * A.pinv() * B == B + # Underdetermined system (infinite results). + A = Matrix([[1, 0, 1], [0, 1, 1]]) + B = Matrix([5, 7]) + solution = A.pinv_solve(B) + w = {} + for s in solution.atoms(Symbol): + # Extract dummy symbols used in the solution. + w[s.name] = s + assert solution == Matrix([[w['w0_0']/3 + w['w1_0']/3 - w['w2_0']/3 + 1], + [w['w0_0']/3 + w['w1_0']/3 - w['w2_0']/3 + 3], + [-w['w0_0']/3 - w['w1_0']/3 + w['w2_0']/3 + 4]]) + assert A * A.pinv() * B == B + # Overdetermined system (least squares results). + A = Matrix([[1, 0], [0, 0], [0, 1]]) + B = Matrix([3, 2, 1]) + assert A.pinv_solve(B) == Matrix([3, 1]) + # Proof the solution is not exact. + assert A * A.pinv() * B != B + +def test_pinv_rank_deficient(): + # Test the four properties of the pseudoinverse for various matrices. + As = [Matrix([[1, 1, 1], [2, 2, 2]]), + Matrix([[1, 0], [0, 0]]), + Matrix([[1, 2], [2, 4], [3, 6]])] + + for A in As: + A_pinv = A.pinv(method="RD") + AAp = A * A_pinv + ApA = A_pinv * A + assert simplify(AAp * A) == A + assert simplify(ApA * A_pinv) == A_pinv + assert AAp.H == AAp + assert ApA.H == ApA + + for A in As: + A_pinv = A.pinv(method="ED") + AAp = A * A_pinv + ApA = A_pinv * A + assert simplify(AAp * A) == A + assert simplify(ApA * A_pinv) == A_pinv + assert AAp.H == AAp + assert ApA.H == ApA + + # Test solving with rank-deficient matrices. + A = Matrix([[1, 0], [0, 0]]) + # Exact, non-unique solution. + B = Matrix([3, 0]) + solution = A.pinv_solve(B) + w1 = solution.atoms(Symbol).pop() + assert w1.name == 'w1_0' + assert solution == Matrix([3, w1]) + assert A * A.pinv() * B == B + # Least squares, non-unique solution. + B = Matrix([3, 1]) + solution = A.pinv_solve(B) + w1 = solution.atoms(Symbol).pop() + assert w1.name == 'w1_0' + assert solution == Matrix([3, w1]) + assert A * A.pinv() * B != B + +def test_gauss_jordan_solve(): + + # Square, full rank, unique solution + A = Matrix([[1, 2, 3], [4, 5, 6], [7, 8, 10]]) + b = Matrix([3, 6, 9]) + sol, params = A.gauss_jordan_solve(b) + assert sol == Matrix([[-1], [2], [0]]) + assert params == Matrix(0, 1, []) + + # Square, full rank, unique solution, B has more columns than rows + A = eye(3) + B = Matrix([[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12]]) + sol, params = A.gauss_jordan_solve(B) + assert sol == B + assert params == Matrix(0, 4, []) + + # Square, reduced rank, parametrized solution + A = Matrix([[1, 2, 3], [4, 5, 6], [7, 8, 9]]) + b = Matrix([3, 6, 9]) + sol, params, freevar = A.gauss_jordan_solve(b, freevar=True) + w = {} + for s in sol.atoms(Symbol): + # Extract dummy symbols used in the solution. + w[s.name] = s + assert sol == Matrix([[w['tau0'] - 1], [-2*w['tau0'] + 2], [w['tau0']]]) + assert params == Matrix([[w['tau0']]]) + assert freevar == [2] + + # Square, reduced rank, parametrized solution, B has two columns + A = Matrix([[1, 2, 3], [4, 5, 6], [7, 8, 9]]) + B = Matrix([[3, 4], [6, 8], [9, 12]]) + sol, params, freevar = A.gauss_jordan_solve(B, freevar=True) + w = {} + for s in sol.atoms(Symbol): + # Extract dummy symbols used in the solution. + w[s.name] = s + assert sol == Matrix([[w['tau0'] - 1, w['tau1'] - Rational(4, 3)], + [-2*w['tau0'] + 2, -2*w['tau1'] + Rational(8, 3)], + [w['tau0'], w['tau1']],]) + assert params == Matrix([[w['tau0'], w['tau1']]]) + assert freevar == [2] + + # Square, reduced rank, parametrized solution + A = Matrix([[1, 2, 3], [2, 4, 6], [3, 6, 9]]) + b = Matrix([0, 0, 0]) + sol, params = A.gauss_jordan_solve(b) + w = {} + for s in sol.atoms(Symbol): + w[s.name] = s + assert sol == Matrix([[-2*w['tau0'] - 3*w['tau1']], + [w['tau0']], [w['tau1']]]) + assert params == Matrix([[w['tau0']], [w['tau1']]]) + + # Square, reduced rank, parametrized solution + A = Matrix([[0, 0, 0], [0, 0, 0], [0, 0, 0]]) + b = Matrix([0, 0, 0]) + sol, params = A.gauss_jordan_solve(b) + w = {} + for s in sol.atoms(Symbol): + w[s.name] = s + assert sol == Matrix([[w['tau0']], [w['tau1']], [w['tau2']]]) + assert params == Matrix([[w['tau0']], [w['tau1']], [w['tau2']]]) + + # Square, reduced rank, no solution + A = Matrix([[1, 2, 3], [2, 4, 6], [3, 6, 9]]) + b = Matrix([0, 0, 1]) + raises(ValueError, lambda: A.gauss_jordan_solve(b)) + + # Rectangular, tall, full rank, unique solution + A = Matrix([[1, 5, 3], [2, 1, 6], [1, 7, 9], [1, 4, 3]]) + b = Matrix([0, 0, 1, 0]) + sol, params = A.gauss_jordan_solve(b) + assert sol == Matrix([[Rational(-1, 2)], [0], [Rational(1, 6)]]) + assert params == Matrix(0, 1, []) + + # Rectangular, tall, full rank, unique solution, B has less columns than rows + A = Matrix([[1, 5, 3], [2, 1, 6], [1, 7, 9], [1, 4, 3]]) + B = Matrix([[0,0], [0, 0], [1, 2], [0, 0]]) + sol, params = A.gauss_jordan_solve(B) + assert sol == Matrix([[Rational(-1, 2), Rational(-2, 2)], [0, 0], [Rational(1, 6), Rational(2, 6)]]) + assert params == Matrix(0, 2, []) + + # Rectangular, tall, full rank, no solution + A = Matrix([[1, 5, 3], [2, 1, 6], [1, 7, 9], [1, 4, 3]]) + b = Matrix([0, 0, 0, 1]) + raises(ValueError, lambda: A.gauss_jordan_solve(b)) + + # Rectangular, tall, full rank, no solution, B has two columns (2nd has no solution) + A = Matrix([[1, 5, 3], [2, 1, 6], [1, 7, 9], [1, 4, 3]]) + B = Matrix([[0,0], [0, 0], [1, 0], [0, 1]]) + raises(ValueError, lambda: A.gauss_jordan_solve(B)) + + # Rectangular, tall, full rank, no solution, B has two columns (1st has no solution) + A = Matrix([[1, 5, 3], [2, 1, 6], [1, 7, 9], [1, 4, 3]]) + B = Matrix([[0,0], [0, 0], [0, 1], [1, 0]]) + raises(ValueError, lambda: A.gauss_jordan_solve(B)) + + # Rectangular, tall, reduced rank, parametrized solution + A = Matrix([[1, 5, 3], [2, 10, 6], [3, 15, 9], [1, 4, 3]]) + b = Matrix([0, 0, 0, 1]) + sol, params = A.gauss_jordan_solve(b) + w = {} + for s in sol.atoms(Symbol): + w[s.name] = s + assert sol == Matrix([[-3*w['tau0'] + 5], [-1], [w['tau0']]]) + assert params == Matrix([[w['tau0']]]) + + # Rectangular, tall, reduced rank, no solution + A = Matrix([[1, 5, 3], [2, 10, 6], [3, 15, 9], [1, 4, 3]]) + b = Matrix([0, 0, 1, 1]) + raises(ValueError, lambda: A.gauss_jordan_solve(b)) + + # Rectangular, wide, full rank, parametrized solution + A = Matrix([[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 1, 12]]) + b = Matrix([1, 1, 1]) + sol, params = A.gauss_jordan_solve(b) + w = {} + for s in sol.atoms(Symbol): + w[s.name] = s + assert sol == Matrix([[2*w['tau0'] - 1], [-3*w['tau0'] + 1], [0], + [w['tau0']]]) + assert params == Matrix([[w['tau0']]]) + + # Rectangular, wide, reduced rank, parametrized solution + A = Matrix([[1, 2, 3, 4], [5, 6, 7, 8], [2, 4, 6, 8]]) + b = Matrix([0, 1, 0]) + sol, params = A.gauss_jordan_solve(b) + w = {} + for s in sol.atoms(Symbol): + w[s.name] = s + assert sol == Matrix([[w['tau0'] + 2*w['tau1'] + S.Half], + [-2*w['tau0'] - 3*w['tau1'] - Rational(1, 4)], + [w['tau0']], [w['tau1']]]) + assert params == Matrix([[w['tau0']], [w['tau1']]]) + # watch out for clashing symbols + x0, x1, x2, _x0 = symbols('_tau0 _tau1 _tau2 tau1') + M = Matrix([[0, 1, 0, 0, 0, 0], [0, 0, 0, 1, 0, _x0]]) + A = M[:, :-1] + b = M[:, -1:] + sol, params = A.gauss_jordan_solve(b) + assert params == Matrix(3, 1, [x0, x1, x2]) + assert sol == Matrix(5, 1, [x0, 0, x1, _x0, x2]) + + # Rectangular, wide, reduced rank, no solution + A = Matrix([[1, 2, 3, 4], [5, 6, 7, 8], [2, 4, 6, 8]]) + b = Matrix([1, 1, 1]) + raises(ValueError, lambda: A.gauss_jordan_solve(b)) + + # Test for immutable matrix + A = ImmutableMatrix([[1, 0], [0, 1]]) + B = ImmutableMatrix([1, 2]) + sol, params = A.gauss_jordan_solve(B) + assert sol == ImmutableMatrix([1, 2]) + assert params == ImmutableMatrix(0, 1, []) + assert sol.__class__ == ImmutableDenseMatrix + assert params.__class__ == ImmutableDenseMatrix + + # Test placement of free variables + A = Matrix([[1, 0, 0, 0], [0, 0, 0, 1]]) + b = Matrix([1, 1]) + sol, params = A.gauss_jordan_solve(b) + w = {} + for s in sol.atoms(Symbol): + w[s.name] = s + assert sol == Matrix([[1], [w['tau0']], [w['tau1']], [1]]) + assert params == Matrix([[w['tau0']], [w['tau1']]]) + + +def test_linsolve_underdetermined_AND_gauss_jordan_solve(): + #Test placement of free variables as per issue 19815 + A = Matrix([[1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], + [1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0], + [0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0], + [0, 1, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0], + [0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0], + [0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0], + [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0], + [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1]]) + B = Matrix([1, 2, 1, 1, 1, 1, 1, 2]) + sol, params = A.gauss_jordan_solve(B) + w = {} + for s in sol.atoms(Symbol): + w[s.name] = s + assert params == Matrix([[w['tau0']], [w['tau1']], [w['tau2']], + [w['tau3']], [w['tau4']], [w['tau5']]]) + assert sol == Matrix([[1 - 1*w['tau2']], + [w['tau2']], + [1 - 1*w['tau0'] + w['tau1']], + [w['tau0']], + [w['tau3'] + w['tau4']], + [-1*w['tau3'] - 1*w['tau4'] - 1*w['tau1']], + [1 - 1*w['tau2']], + [w['tau1']], + [w['tau2']], + [w['tau3']], + [w['tau4']], + [1 - 1*w['tau5']], + [w['tau5']], + [1]]) + + from sympy.abc import j,f + # https://github.com/sympy/sympy/issues/20046 + A = Matrix([ + [1, 1, 1, 1, 1, 1, 1, 1, 1], + [0, -1, 0, -1, 0, -1, 0, -1, -j], + [0, 0, 0, 0, 1, 1, 1, 1, f] + ]) + + sol_1=Matrix(list(linsolve(A))[0]) + + tau0, tau1, tau2, tau3, tau4 = symbols('tau:5') + + assert sol_1 == Matrix([[-f - j - tau0 + tau2 + tau4 + 1], + [j - tau1 - tau2 - tau4], + [tau0], + [tau1], + [f - tau2 - tau3 - tau4], + [tau2], + [tau3], + [tau4]]) + + # https://github.com/sympy/sympy/issues/19815 + sol_2 = A[:, : -1 ] * sol_1 - A[:, -1 ] + assert sol_2 == Matrix([[0], [0], [0]]) + + +def test_solve(): + A = Matrix([[1,2], [2,4]]) + b = Matrix([[3], [4]]) + raises(ValueError, lambda: A.solve(b)) #no solution + b = Matrix([[ 4], [8]]) + raises(ValueError, lambda: A.solve(b)) #infinite solution diff --git a/shared/package-files/86/86c8c1a5973c8bd3bf68a3290a6b34b6e4368c0a9b915ccb5e750a234d5355c5/common.py b/shared/package-files/86/86c8c1a5973c8bd3bf68a3290a6b34b6e4368c0a9b915ccb5e750a234d5355c5/common.py new file mode 100644 index 0000000000000000000000000000000000000000..72c9deeb54fc7aaab781b2870171cf983a47da1f --- /dev/null +++ b/shared/package-files/86/86c8c1a5973c8bd3bf68a3290a6b34b6e4368c0a9b915ccb5e750a234d5355c5/common.py @@ -0,0 +1,1267 @@ +"""Common IO api utilities""" +from __future__ import annotations + +from abc import ( + ABC, + abstractmethod, +) +import codecs +from collections import defaultdict +from collections.abc import ( + Hashable, + Mapping, + Sequence, +) +import dataclasses +import functools +import gzip +from io import ( + BufferedIOBase, + BytesIO, + RawIOBase, + StringIO, + TextIOBase, + TextIOWrapper, +) +import mmap +import os +from pathlib import Path +import re +import tarfile +from typing import ( + IO, + TYPE_CHECKING, + Any, + AnyStr, + DefaultDict, + Generic, + Literal, + TypeVar, + cast, + overload, +) +from urllib.parse import ( + urljoin, + urlparse as parse_url, + uses_netloc, + uses_params, + uses_relative, +) +import warnings +import zipfile + +from pandas._typing import ( + BaseBuffer, + ReadCsvBuffer, +) +from pandas.compat import ( + get_bz2_file, + get_lzma_file, +) +from pandas.compat._optional import import_optional_dependency +from pandas.util._decorators import doc +from pandas.util._exceptions import find_stack_level + +from pandas.core.dtypes.common import ( + is_bool, + is_file_like, + is_integer, + is_list_like, +) +from pandas.core.dtypes.generic import ABCMultiIndex + +from pandas.core.shared_docs import _shared_docs + +_VALID_URLS = set(uses_relative + uses_netloc + uses_params) +_VALID_URLS.discard("") +_RFC_3986_PATTERN = re.compile(r"^[A-Za-z][A-Za-z0-9+\-+.]*://") + +BaseBufferT = TypeVar("BaseBufferT", bound=BaseBuffer) + + +if TYPE_CHECKING: + from types import TracebackType + + from pandas._typing import ( + CompressionDict, + CompressionOptions, + FilePath, + ReadBuffer, + StorageOptions, + WriteBuffer, + ) + + from pandas import MultiIndex + + +@dataclasses.dataclass +class IOArgs: + """ + Return value of io/common.py:_get_filepath_or_buffer. + """ + + filepath_or_buffer: str | BaseBuffer + encoding: str + mode: str + compression: CompressionDict + should_close: bool = False + + +@dataclasses.dataclass +class IOHandles(Generic[AnyStr]): + """ + Return value of io/common.py:get_handle + + Can be used as a context manager. + + This is used to easily close created buffers and to handle corner cases when + TextIOWrapper is inserted. + + handle: The file handle to be used. + created_handles: All file handles that are created by get_handle + is_wrapped: Whether a TextIOWrapper needs to be detached. + """ + + # handle might not implement the IO-interface + handle: IO[AnyStr] + compression: CompressionDict + created_handles: list[IO[bytes] | IO[str]] = dataclasses.field(default_factory=list) + is_wrapped: bool = False + + def close(self) -> None: + """ + Close all created buffers. + + Note: If a TextIOWrapper was inserted, it is flushed and detached to + avoid closing the potentially user-created buffer. + """ + if self.is_wrapped: + assert isinstance(self.handle, TextIOWrapper) + self.handle.flush() + self.handle.detach() + self.created_handles.remove(self.handle) + for handle in self.created_handles: + handle.close() + self.created_handles = [] + self.is_wrapped = False + + def __enter__(self) -> IOHandles[AnyStr]: + return self + + def __exit__( + self, + exc_type: type[BaseException] | None, + exc_value: BaseException | None, + traceback: TracebackType | None, + ) -> None: + self.close() + + +def is_url(url: object) -> bool: + """ + Check to see if a URL has a valid protocol. + + Parameters + ---------- + url : str or unicode + + Returns + ------- + isurl : bool + If `url` has a valid protocol return True otherwise False. + """ + if not isinstance(url, str): + return False + return parse_url(url).scheme in _VALID_URLS + + +@overload +def _expand_user(filepath_or_buffer: str) -> str: + ... + + +@overload +def _expand_user(filepath_or_buffer: BaseBufferT) -> BaseBufferT: + ... + + +def _expand_user(filepath_or_buffer: str | BaseBufferT) -> str | BaseBufferT: + """ + Return the argument with an initial component of ~ or ~user + replaced by that user's home directory. + + Parameters + ---------- + filepath_or_buffer : object to be converted if possible + + Returns + ------- + expanded_filepath_or_buffer : an expanded filepath or the + input if not expandable + """ + if isinstance(filepath_or_buffer, str): + return os.path.expanduser(filepath_or_buffer) + return filepath_or_buffer + + +def validate_header_arg(header: object) -> None: + if header is None: + return + if is_integer(header): + header = cast(int, header) + if header < 0: + # GH 27779 + raise ValueError( + "Passing negative integer to header is invalid. " + "For no header, use header=None instead" + ) + return + if is_list_like(header, allow_sets=False): + header = cast(Sequence, header) + if not all(map(is_integer, header)): + raise ValueError("header must be integer or list of integers") + if any(i < 0 for i in header): + raise ValueError("cannot specify multi-index header with negative integers") + return + if is_bool(header): + raise TypeError( + "Passing a bool to header is invalid. Use header=None for no header or " + "header=int or list-like of ints to specify " + "the row(s) making up the column names" + ) + # GH 16338 + raise ValueError("header must be integer or list of integers") + + +@overload +def stringify_path(filepath_or_buffer: FilePath, convert_file_like: bool = ...) -> str: + ... + + +@overload +def stringify_path( + filepath_or_buffer: BaseBufferT, convert_file_like: bool = ... +) -> BaseBufferT: + ... + + +def stringify_path( + filepath_or_buffer: FilePath | BaseBufferT, + convert_file_like: bool = False, +) -> str | BaseBufferT: + """ + Attempt to convert a path-like object to a string. + + Parameters + ---------- + filepath_or_buffer : object to be converted + + Returns + ------- + str_filepath_or_buffer : maybe a string version of the object + + Notes + ----- + Objects supporting the fspath protocol are coerced + according to its __fspath__ method. + + Any other object is passed through unchanged, which includes bytes, + strings, buffers, or anything else that's not even path-like. + """ + if not convert_file_like and is_file_like(filepath_or_buffer): + # GH 38125: some fsspec objects implement os.PathLike but have already opened a + # file. This prevents opening the file a second time. infer_compression calls + # this function with convert_file_like=True to infer the compression. + return cast(BaseBufferT, filepath_or_buffer) + + if isinstance(filepath_or_buffer, os.PathLike): + filepath_or_buffer = filepath_or_buffer.__fspath__() + return _expand_user(filepath_or_buffer) + + +def urlopen(*args, **kwargs): + """ + Lazy-import wrapper for stdlib urlopen, as that imports a big chunk of + the stdlib. + """ + import urllib.request + + return urllib.request.urlopen(*args, **kwargs) + + +def is_fsspec_url(url: FilePath | BaseBuffer) -> bool: + """ + Returns true if the given URL looks like + something fsspec can handle + """ + return ( + isinstance(url, str) + and bool(_RFC_3986_PATTERN.match(url)) + and not url.startswith(("http://", "https://")) + ) + + +@doc( + storage_options=_shared_docs["storage_options"], + compression_options=_shared_docs["compression_options"] % "filepath_or_buffer", +) +def _get_filepath_or_buffer( + filepath_or_buffer: FilePath | BaseBuffer, + encoding: str = "utf-8", + compression: CompressionOptions | None = None, + mode: str = "r", + storage_options: StorageOptions | None = None, +) -> IOArgs: + """ + If the filepath_or_buffer is a url, translate and return the buffer. + Otherwise passthrough. + + Parameters + ---------- + filepath_or_buffer : a url, filepath (str, py.path.local or pathlib.Path), + or buffer + {compression_options} + + .. versionchanged:: 1.4.0 Zstandard support. + + encoding : the encoding to use to decode bytes, default is 'utf-8' + mode : str, optional + + {storage_options} + + + Returns the dataclass IOArgs. + """ + filepath_or_buffer = stringify_path(filepath_or_buffer) + + # handle compression dict + compression_method, compression = get_compression_method(compression) + compression_method = infer_compression(filepath_or_buffer, compression_method) + + # GH21227 internal compression is not used for non-binary handles. + if compression_method and hasattr(filepath_or_buffer, "write") and "b" not in mode: + warnings.warn( + "compression has no effect when passing a non-binary object as input.", + RuntimeWarning, + stacklevel=find_stack_level(), + ) + compression_method = None + + compression = dict(compression, method=compression_method) + + # bz2 and xz do not write the byte order mark for utf-16 and utf-32 + # print a warning when writing such files + if ( + "w" in mode + and compression_method in ["bz2", "xz"] + and encoding in ["utf-16", "utf-32"] + ): + warnings.warn( + f"{compression} will not write the byte order mark for {encoding}", + UnicodeWarning, + stacklevel=find_stack_level(), + ) + + # Use binary mode when converting path-like objects to file-like objects (fsspec) + # except when text mode is explicitly requested. The original mode is returned if + # fsspec is not used. + fsspec_mode = mode + if "t" not in fsspec_mode and "b" not in fsspec_mode: + fsspec_mode += "b" + + if isinstance(filepath_or_buffer, str) and is_url(filepath_or_buffer): + # TODO: fsspec can also handle HTTP via requests, but leaving this + # unchanged. using fsspec appears to break the ability to infer if the + # server responded with gzipped data + storage_options = storage_options or {} + + # waiting until now for importing to match intended lazy logic of + # urlopen function defined elsewhere in this module + import urllib.request + + # assuming storage_options is to be interpreted as headers + req_info = urllib.request.Request(filepath_or_buffer, headers=storage_options) + with urlopen(req_info) as req: + content_encoding = req.headers.get("Content-Encoding", None) + if content_encoding == "gzip": + # Override compression based on Content-Encoding header + compression = {"method": "gzip"} + reader = BytesIO(req.read()) + return IOArgs( + filepath_or_buffer=reader, + encoding=encoding, + compression=compression, + should_close=True, + mode=fsspec_mode, + ) + + if is_fsspec_url(filepath_or_buffer): + assert isinstance( + filepath_or_buffer, str + ) # just to appease mypy for this branch + # two special-case s3-like protocols; these have special meaning in Hadoop, + # but are equivalent to just "s3" from fsspec's point of view + # cc #11071 + if filepath_or_buffer.startswith("s3a://"): + filepath_or_buffer = filepath_or_buffer.replace("s3a://", "s3://") + if filepath_or_buffer.startswith("s3n://"): + filepath_or_buffer = filepath_or_buffer.replace("s3n://", "s3://") + fsspec = import_optional_dependency("fsspec") + + # If botocore is installed we fallback to reading with anon=True + # to allow reads from public buckets + err_types_to_retry_with_anon: list[Any] = [] + try: + import_optional_dependency("botocore") + from botocore.exceptions import ( + ClientError, + NoCredentialsError, + ) + + err_types_to_retry_with_anon = [ + ClientError, + NoCredentialsError, + PermissionError, + ] + except ImportError: + pass + + try: + file_obj = fsspec.open( + filepath_or_buffer, mode=fsspec_mode, **(storage_options or {}) + ).open() + # GH 34626 Reads from Public Buckets without Credentials needs anon=True + except tuple(err_types_to_retry_with_anon): + if storage_options is None: + storage_options = {"anon": True} + else: + # don't mutate user input. + storage_options = dict(storage_options) + storage_options["anon"] = True + file_obj = fsspec.open( + filepath_or_buffer, mode=fsspec_mode, **(storage_options or {}) + ).open() + + return IOArgs( + filepath_or_buffer=file_obj, + encoding=encoding, + compression=compression, + should_close=True, + mode=fsspec_mode, + ) + elif storage_options: + raise ValueError( + "storage_options passed with file object or non-fsspec file path" + ) + + if isinstance(filepath_or_buffer, (str, bytes, mmap.mmap)): + return IOArgs( + filepath_or_buffer=_expand_user(filepath_or_buffer), + encoding=encoding, + compression=compression, + should_close=False, + mode=mode, + ) + + # is_file_like requires (read | write) & __iter__ but __iter__ is only + # needed for read_csv(engine=python) + if not ( + hasattr(filepath_or_buffer, "read") or hasattr(filepath_or_buffer, "write") + ): + msg = f"Invalid file path or buffer object type: {type(filepath_or_buffer)}" + raise ValueError(msg) + + return IOArgs( + filepath_or_buffer=filepath_or_buffer, + encoding=encoding, + compression=compression, + should_close=False, + mode=mode, + ) + + +def file_path_to_url(path: str) -> str: + """ + converts an absolute native path to a FILE URL. + + Parameters + ---------- + path : a path in native format + + Returns + ------- + a valid FILE URL + """ + # lazify expensive import (~30ms) + from urllib.request import pathname2url + + return urljoin("file:", pathname2url(path)) + + +extension_to_compression = { + ".tar": "tar", + ".tar.gz": "tar", + ".tar.bz2": "tar", + ".tar.xz": "tar", + ".gz": "gzip", + ".bz2": "bz2", + ".zip": "zip", + ".xz": "xz", + ".zst": "zstd", +} +_supported_compressions = set(extension_to_compression.values()) + + +def get_compression_method( + compression: CompressionOptions, +) -> tuple[str | None, CompressionDict]: + """ + Simplifies a compression argument to a compression method string and + a mapping containing additional arguments. + + Parameters + ---------- + compression : str or mapping + If string, specifies the compression method. If mapping, value at key + 'method' specifies compression method. + + Returns + ------- + tuple of ({compression method}, Optional[str] + {compression arguments}, Dict[str, Any]) + + Raises + ------ + ValueError on mapping missing 'method' key + """ + compression_method: str | None + if isinstance(compression, Mapping): + compression_args = dict(compression) + try: + compression_method = compression_args.pop("method") + except KeyError as err: + raise ValueError("If mapping, compression must have key 'method'") from err + else: + compression_args = {} + compression_method = compression + return compression_method, compression_args + + +@doc(compression_options=_shared_docs["compression_options"] % "filepath_or_buffer") +def infer_compression( + filepath_or_buffer: FilePath | BaseBuffer, compression: str | None +) -> str | None: + """ + Get the compression method for filepath_or_buffer. If compression='infer', + the inferred compression method is returned. Otherwise, the input + compression method is returned unchanged, unless it's invalid, in which + case an error is raised. + + Parameters + ---------- + filepath_or_buffer : str or file handle + File path or object. + {compression_options} + + .. versionchanged:: 1.4.0 Zstandard support. + + Returns + ------- + string or None + + Raises + ------ + ValueError on invalid compression specified. + """ + if compression is None: + return None + + # Infer compression + if compression == "infer": + # Convert all path types (e.g. pathlib.Path) to strings + filepath_or_buffer = stringify_path(filepath_or_buffer, convert_file_like=True) + if not isinstance(filepath_or_buffer, str): + # Cannot infer compression of a buffer, assume no compression + return None + + # Infer compression from the filename/URL extension + for extension, compression in extension_to_compression.items(): + if filepath_or_buffer.lower().endswith(extension): + return compression + return None + + # Compression has been specified. Check that it's valid + if compression in _supported_compressions: + return compression + + valid = ["infer", None] + sorted(_supported_compressions) + msg = ( + f"Unrecognized compression type: {compression}\n" + f"Valid compression types are {valid}" + ) + raise ValueError(msg) + + +def check_parent_directory(path: Path | str) -> None: + """ + Check if parent directory of a file exists, raise OSError if it does not + + Parameters + ---------- + path: Path or str + Path to check parent directory of + """ + parent = Path(path).parent + if not parent.is_dir(): + raise OSError(rf"Cannot save file into a non-existent directory: '{parent}'") + + +@overload +def get_handle( + path_or_buf: FilePath | BaseBuffer, + mode: str, + *, + encoding: str | None = ..., + compression: CompressionOptions = ..., + memory_map: bool = ..., + is_text: Literal[False], + errors: str | None = ..., + storage_options: StorageOptions = ..., +) -> IOHandles[bytes]: + ... + + +@overload +def get_handle( + path_or_buf: FilePath | BaseBuffer, + mode: str, + *, + encoding: str | None = ..., + compression: CompressionOptions = ..., + memory_map: bool = ..., + is_text: Literal[True] = ..., + errors: str | None = ..., + storage_options: StorageOptions = ..., +) -> IOHandles[str]: + ... + + +@overload +def get_handle( + path_or_buf: FilePath | BaseBuffer, + mode: str, + *, + encoding: str | None = ..., + compression: CompressionOptions = ..., + memory_map: bool = ..., + is_text: bool = ..., + errors: str | None = ..., + storage_options: StorageOptions = ..., +) -> IOHandles[str] | IOHandles[bytes]: + ... + + +@doc(compression_options=_shared_docs["compression_options"] % "path_or_buf") +def get_handle( + path_or_buf: FilePath | BaseBuffer, + mode: str, + *, + encoding: str | None = None, + compression: CompressionOptions | None = None, + memory_map: bool = False, + is_text: bool = True, + errors: str | None = None, + storage_options: StorageOptions | None = None, +) -> IOHandles[str] | IOHandles[bytes]: + """ + Get file handle for given path/buffer and mode. + + Parameters + ---------- + path_or_buf : str or file handle + File path or object. + mode : str + Mode to open path_or_buf with. + encoding : str or None + Encoding to use. + {compression_options} + + May be a dict with key 'method' as compression mode + and other keys as compression options if compression + mode is 'zip'. + + Passing compression options as keys in dict is + supported for compression modes 'gzip', 'bz2', 'zstd' and 'zip'. + + .. versionchanged:: 1.4.0 Zstandard support. + + memory_map : bool, default False + See parsers._parser_params for more information. Only used by read_csv. + is_text : bool, default True + Whether the type of the content passed to the file/buffer is string or + bytes. This is not the same as `"b" not in mode`. If a string content is + passed to a binary file/buffer, a wrapper is inserted. + errors : str, default 'strict' + Specifies how encoding and decoding errors are to be handled. + See the errors argument for :func:`open` for a full list + of options. + storage_options: StorageOptions = None + Passed to _get_filepath_or_buffer + + Returns the dataclass IOHandles + """ + # Windows does not default to utf-8. Set to utf-8 for a consistent behavior + encoding = encoding or "utf-8" + + errors = errors or "strict" + + # read_csv does not know whether the buffer is opened in binary/text mode + if _is_binary_mode(path_or_buf, mode) and "b" not in mode: + mode += "b" + + # validate encoding and errors + codecs.lookup(encoding) + if isinstance(errors, str): + codecs.lookup_error(errors) + + # open URLs + ioargs = _get_filepath_or_buffer( + path_or_buf, + encoding=encoding, + compression=compression, + mode=mode, + storage_options=storage_options, + ) + + handle = ioargs.filepath_or_buffer + handles: list[BaseBuffer] + + # memory mapping needs to be the first step + # only used for read_csv + handle, memory_map, handles = _maybe_memory_map(handle, memory_map) + + is_path = isinstance(handle, str) + compression_args = dict(ioargs.compression) + compression = compression_args.pop("method") + + # Only for write methods + if "r" not in mode and is_path: + check_parent_directory(str(handle)) + + if compression: + if compression != "zstd": + # compression libraries do not like an explicit text-mode + ioargs.mode = ioargs.mode.replace("t", "") + elif compression == "zstd" and "b" not in ioargs.mode: + # python-zstandard defaults to text mode, but we always expect + # compression libraries to use binary mode. + ioargs.mode += "b" + + # GZ Compression + if compression == "gzip": + if isinstance(handle, str): + # error: Incompatible types in assignment (expression has type + # "GzipFile", variable has type "Union[str, BaseBuffer]") + handle = gzip.GzipFile( # type: ignore[assignment] + filename=handle, + mode=ioargs.mode, + **compression_args, + ) + else: + handle = gzip.GzipFile( + # No overload variant of "GzipFile" matches argument types + # "Union[str, BaseBuffer]", "str", "Dict[str, Any]" + fileobj=handle, # type: ignore[call-overload] + mode=ioargs.mode, + **compression_args, + ) + + # BZ Compression + elif compression == "bz2": + # Overload of "BZ2File" to handle pickle protocol 5 + # "Union[str, BaseBuffer]", "str", "Dict[str, Any]" + handle = get_bz2_file()( # type: ignore[call-overload] + handle, + mode=ioargs.mode, + **compression_args, + ) + + # ZIP Compression + elif compression == "zip": + # error: Argument 1 to "_BytesZipFile" has incompatible type + # "Union[str, BaseBuffer]"; expected "Union[Union[str, PathLike[str]], + # ReadBuffer[bytes], WriteBuffer[bytes]]" + handle = _BytesZipFile( + handle, ioargs.mode, **compression_args # type: ignore[arg-type] + ) + if handle.buffer.mode == "r": + handles.append(handle) + zip_names = handle.buffer.namelist() + if len(zip_names) == 1: + handle = handle.buffer.open(zip_names.pop()) + elif not zip_names: + raise ValueError(f"Zero files found in ZIP file {path_or_buf}") + else: + raise ValueError( + "Multiple files found in ZIP file. " + f"Only one file per ZIP: {zip_names}" + ) + + # TAR Encoding + elif compression == "tar": + compression_args.setdefault("mode", ioargs.mode) + if isinstance(handle, str): + handle = _BytesTarFile(name=handle, **compression_args) + else: + # error: Argument "fileobj" to "_BytesTarFile" has incompatible + # type "BaseBuffer"; expected "Union[ReadBuffer[bytes], + # WriteBuffer[bytes], None]" + handle = _BytesTarFile( + fileobj=handle, **compression_args # type: ignore[arg-type] + ) + assert isinstance(handle, _BytesTarFile) + if "r" in handle.buffer.mode: + handles.append(handle) + files = handle.buffer.getnames() + if len(files) == 1: + file = handle.buffer.extractfile(files[0]) + assert file is not None + handle = file + elif not files: + raise ValueError(f"Zero files found in TAR archive {path_or_buf}") + else: + raise ValueError( + "Multiple files found in TAR archive. " + f"Only one file per TAR archive: {files}" + ) + + # XZ Compression + elif compression == "xz": + # error: Argument 1 to "LZMAFile" has incompatible type "Union[str, + # BaseBuffer]"; expected "Optional[Union[Union[str, bytes, PathLike[str], + # PathLike[bytes]], IO[bytes]], None]" + handle = get_lzma_file()( + handle, ioargs.mode, **compression_args # type: ignore[arg-type] + ) + + # Zstd Compression + elif compression == "zstd": + zstd = import_optional_dependency("zstandard") + if "r" in ioargs.mode: + open_args = {"dctx": zstd.ZstdDecompressor(**compression_args)} + else: + open_args = {"cctx": zstd.ZstdCompressor(**compression_args)} + handle = zstd.open( + handle, + mode=ioargs.mode, + **open_args, + ) + + # Unrecognized Compression + else: + msg = f"Unrecognized compression type: {compression}" + raise ValueError(msg) + + assert not isinstance(handle, str) + handles.append(handle) + + elif isinstance(handle, str): + # Check whether the filename is to be opened in binary mode. + # Binary mode does not support 'encoding' and 'newline'. + if ioargs.encoding and "b" not in ioargs.mode: + # Encoding + handle = open( + handle, + ioargs.mode, + encoding=ioargs.encoding, + errors=errors, + newline="", + ) + else: + # Binary mode + handle = open(handle, ioargs.mode) + handles.append(handle) + + # Convert BytesIO or file objects passed with an encoding + is_wrapped = False + if not is_text and ioargs.mode == "rb" and isinstance(handle, TextIOBase): + # not added to handles as it does not open/buffer resources + handle = _BytesIOWrapper( + handle, + encoding=ioargs.encoding, + ) + elif is_text and ( + compression or memory_map or _is_binary_mode(handle, ioargs.mode) + ): + if ( + not hasattr(handle, "readable") + or not hasattr(handle, "writable") + or not hasattr(handle, "seekable") + ): + handle = _IOWrapper(handle) + # error: Argument 1 to "TextIOWrapper" has incompatible type + # "_IOWrapper"; expected "IO[bytes]" + handle = TextIOWrapper( + handle, # type: ignore[arg-type] + encoding=ioargs.encoding, + errors=errors, + newline="", + ) + handles.append(handle) + # only marked as wrapped when the caller provided a handle + is_wrapped = not ( + isinstance(ioargs.filepath_or_buffer, str) or ioargs.should_close + ) + + if "r" in ioargs.mode and not hasattr(handle, "read"): + raise TypeError( + "Expected file path name or file-like object, " + f"got {type(ioargs.filepath_or_buffer)} type" + ) + + handles.reverse() # close the most recently added buffer first + if ioargs.should_close: + assert not isinstance(ioargs.filepath_or_buffer, str) + handles.append(ioargs.filepath_or_buffer) + + return IOHandles( + # error: Argument "handle" to "IOHandles" has incompatible type + # "Union[TextIOWrapper, GzipFile, BaseBuffer, typing.IO[bytes], + # typing.IO[Any]]"; expected "pandas._typing.IO[Any]" + handle=handle, # type: ignore[arg-type] + # error: Argument "created_handles" to "IOHandles" has incompatible type + # "List[BaseBuffer]"; expected "List[Union[IO[bytes], IO[str]]]" + created_handles=handles, # type: ignore[arg-type] + is_wrapped=is_wrapped, + compression=ioargs.compression, + ) + + +# error: Definition of "__enter__" in base class "IOBase" is incompatible +# with definition in base class "BinaryIO" +class _BufferedWriter(BytesIO, ABC): # type: ignore[misc] + """ + Some objects do not support multiple .write() calls (TarFile and ZipFile). + This wrapper writes to the underlying buffer on close. + """ + + buffer = BytesIO() + + @abstractmethod + def write_to_buffer(self) -> None: + ... + + def close(self) -> None: + if self.closed: + # already closed + return + if self.getbuffer().nbytes: + # write to buffer + self.seek(0) + with self.buffer: + self.write_to_buffer() + else: + self.buffer.close() + super().close() + + +class _BytesTarFile(_BufferedWriter): + def __init__( + self, + name: str | None = None, + mode: Literal["r", "a", "w", "x"] = "r", + fileobj: ReadBuffer[bytes] | WriteBuffer[bytes] | None = None, + archive_name: str | None = None, + **kwargs, + ) -> None: + super().__init__() + self.archive_name = archive_name + self.name = name + # error: Incompatible types in assignment (expression has type "TarFile", + # base class "_BufferedWriter" defined the type as "BytesIO") + self.buffer: tarfile.TarFile = tarfile.TarFile.open( # type: ignore[assignment] + name=name, + mode=self.extend_mode(mode), + fileobj=fileobj, + **kwargs, + ) + + def extend_mode(self, mode: str) -> str: + mode = mode.replace("b", "") + if mode != "w": + return mode + if self.name is not None: + suffix = Path(self.name).suffix + if suffix in (".gz", ".xz", ".bz2"): + mode = f"{mode}:{suffix[1:]}" + return mode + + def infer_filename(self) -> str | None: + """ + If an explicit archive_name is not given, we still want the file inside the zip + file not to be named something.tar, because that causes confusion (GH39465). + """ + if self.name is None: + return None + + filename = Path(self.name) + if filename.suffix == ".tar": + return filename.with_suffix("").name + elif filename.suffix in (".tar.gz", ".tar.bz2", ".tar.xz"): + return filename.with_suffix("").with_suffix("").name + return filename.name + + def write_to_buffer(self) -> None: + # TarFile needs a non-empty string + archive_name = self.archive_name or self.infer_filename() or "tar" + tarinfo = tarfile.TarInfo(name=archive_name) + tarinfo.size = len(self.getvalue()) + self.buffer.addfile(tarinfo, self) + + +class _BytesZipFile(_BufferedWriter): + def __init__( + self, + file: FilePath | ReadBuffer[bytes] | WriteBuffer[bytes], + mode: str, + archive_name: str | None = None, + **kwargs, + ) -> None: + super().__init__() + mode = mode.replace("b", "") + self.archive_name = archive_name + + kwargs.setdefault("compression", zipfile.ZIP_DEFLATED) + # error: Incompatible types in assignment (expression has type "ZipFile", + # base class "_BufferedWriter" defined the type as "BytesIO") + self.buffer: zipfile.ZipFile = zipfile.ZipFile( # type: ignore[assignment] + file, mode, **kwargs + ) + + def infer_filename(self) -> str | None: + """ + If an explicit archive_name is not given, we still want the file inside the zip + file not to be named something.zip, because that causes confusion (GH39465). + """ + if isinstance(self.buffer.filename, (os.PathLike, str)): + filename = Path(self.buffer.filename) + if filename.suffix == ".zip": + return filename.with_suffix("").name + return filename.name + return None + + def write_to_buffer(self) -> None: + # ZipFile needs a non-empty string + archive_name = self.archive_name or self.infer_filename() or "zip" + self.buffer.writestr(archive_name, self.getvalue()) + + +class _IOWrapper: + # TextIOWrapper is overly strict: it request that the buffer has seekable, readable, + # and writable. If we have a read-only buffer, we shouldn't need writable and vice + # versa. Some buffers, are seek/read/writ-able but they do not have the "-able" + # methods, e.g., tempfile.SpooledTemporaryFile. + # If a buffer does not have the above "-able" methods, we simple assume they are + # seek/read/writ-able. + def __init__(self, buffer: BaseBuffer) -> None: + self.buffer = buffer + + def __getattr__(self, name: str): + return getattr(self.buffer, name) + + def readable(self) -> bool: + if hasattr(self.buffer, "readable"): + return self.buffer.readable() + return True + + def seekable(self) -> bool: + if hasattr(self.buffer, "seekable"): + return self.buffer.seekable() + return True + + def writable(self) -> bool: + if hasattr(self.buffer, "writable"): + return self.buffer.writable() + return True + + +class _BytesIOWrapper: + # Wrapper that wraps a StringIO buffer and reads bytes from it + # Created for compat with pyarrow read_csv + def __init__(self, buffer: StringIO | TextIOBase, encoding: str = "utf-8") -> None: + self.buffer = buffer + self.encoding = encoding + # Because a character can be represented by more than 1 byte, + # it is possible that reading will produce more bytes than n + # We store the extra bytes in this overflow variable, and append the + # overflow to the front of the bytestring the next time reading is performed + self.overflow = b"" + + def __getattr__(self, attr: str): + return getattr(self.buffer, attr) + + def read(self, n: int | None = -1) -> bytes: + assert self.buffer is not None + bytestring = self.buffer.read(n).encode(self.encoding) + # When n=-1/n greater than remaining bytes: Read entire file/rest of file + combined_bytestring = self.overflow + bytestring + if n is None or n < 0 or n >= len(combined_bytestring): + self.overflow = b"" + return combined_bytestring + else: + to_return = combined_bytestring[:n] + self.overflow = combined_bytestring[n:] + return to_return + + +def _maybe_memory_map( + handle: str | BaseBuffer, memory_map: bool +) -> tuple[str | BaseBuffer, bool, list[BaseBuffer]]: + """Try to memory map file/buffer.""" + handles: list[BaseBuffer] = [] + memory_map &= hasattr(handle, "fileno") or isinstance(handle, str) + if not memory_map: + return handle, memory_map, handles + + # mmap used by only read_csv + handle = cast(ReadCsvBuffer, handle) + + # need to open the file first + if isinstance(handle, str): + handle = open(handle, "rb") + handles.append(handle) + + try: + # open mmap and adds *-able + # error: Argument 1 to "_IOWrapper" has incompatible type "mmap"; + # expected "BaseBuffer" + wrapped = _IOWrapper( + mmap.mmap( + handle.fileno(), 0, access=mmap.ACCESS_READ # type: ignore[arg-type] + ) + ) + finally: + for handle in reversed(handles): + # error: "BaseBuffer" has no attribute "close" + handle.close() # type: ignore[attr-defined] + + return wrapped, memory_map, [wrapped] + + +def file_exists(filepath_or_buffer: FilePath | BaseBuffer) -> bool: + """Test whether file exists.""" + exists = False + filepath_or_buffer = stringify_path(filepath_or_buffer) + if not isinstance(filepath_or_buffer, str): + return exists + try: + exists = os.path.exists(filepath_or_buffer) + # gh-5874: if the filepath is too long will raise here + except (TypeError, ValueError): + pass + return exists + + +def _is_binary_mode(handle: FilePath | BaseBuffer, mode: str) -> bool: + """Whether the handle is opened in binary mode""" + # specified by user + if "t" in mode or "b" in mode: + return "b" in mode + + # exceptions + text_classes = ( + # classes that expect string but have 'b' in mode + codecs.StreamWriter, + codecs.StreamReader, + codecs.StreamReaderWriter, + ) + if issubclass(type(handle), text_classes): + return False + + return isinstance(handle, _get_binary_io_classes()) or "b" in getattr( + handle, "mode", mode + ) + + +@functools.lru_cache +def _get_binary_io_classes() -> tuple[type, ...]: + """IO classes that that expect bytes""" + binary_classes: tuple[type, ...] = (BufferedIOBase, RawIOBase) + + # python-zstandard doesn't use any of the builtin base classes; instead we + # have to use the `zstd.ZstdDecompressionReader` class for isinstance checks. + # Unfortunately `zstd.ZstdDecompressionReader` isn't exposed by python-zstandard + # so we have to get it from a `zstd.ZstdDecompressor` instance. + # See also https://github.com/indygreg/python-zstandard/pull/165. + zstd = import_optional_dependency("zstandard", errors="ignore") + if zstd is not None: + with zstd.ZstdDecompressor().stream_reader(b"") as reader: + binary_classes += (type(reader),) + + return binary_classes + + +def is_potential_multi_index( + columns: Sequence[Hashable] | MultiIndex, + index_col: bool | Sequence[int] | None = None, +) -> bool: + """ + Check whether or not the `columns` parameter + could be converted into a MultiIndex. + + Parameters + ---------- + columns : array-like + Object which may or may not be convertible into a MultiIndex + index_col : None, bool or list, optional + Column or columns to use as the (possibly hierarchical) index + + Returns + ------- + bool : Whether or not columns could become a MultiIndex + """ + if index_col is None or isinstance(index_col, bool): + index_col = [] + + return bool( + len(columns) + and not isinstance(columns, ABCMultiIndex) + and all(isinstance(c, tuple) for c in columns if c not in list(index_col)) + ) + + +def dedup_names( + names: Sequence[Hashable], is_potential_multiindex: bool +) -> Sequence[Hashable]: + """ + Rename column names if duplicates exist. + + Currently the renaming is done by appending a period and an autonumeric, + but a custom pattern may be supported in the future. + + Examples + -------- + >>> dedup_names(["x", "y", "x", "x"], is_potential_multiindex=False) + ['x', 'y', 'x.1', 'x.2'] + """ + names = list(names) # so we can index + counts: DefaultDict[Hashable, int] = defaultdict(int) + + for i, col in enumerate(names): + cur_count = counts[col] + + while cur_count > 0: + counts[col] = cur_count + 1 + + if is_potential_multiindex: + # for mypy + assert isinstance(col, tuple) + col = col[:-1] + (f"{col[-1]}.{cur_count}",) + else: + col = f"{col}.{cur_count}" + cur_count = counts[col] + + names[i] = col + counts[col] = cur_count + 1 + + return names diff --git a/shared/package-files/86/86d3a048fef8dc364350a17779601e27e91da8d60e9e919776557eadb1172750/gpos.py b/shared/package-files/86/86d3a048fef8dc364350a17779601e27e91da8d60e9e919776557eadb1172750/gpos.py new file mode 100644 index 0000000000000000000000000000000000000000..3edbfeb306ca38adb839e997cc3b6f1ede914572 --- /dev/null +++ b/shared/package-files/86/86d3a048fef8dc364350a17779601e27e91da8d60e9e919776557eadb1172750/gpos.py @@ -0,0 +1,439 @@ +import logging +import os +from collections import defaultdict, namedtuple +from dataclasses import dataclass +from functools import cached_property, reduce +from itertools import chain +from math import log2 +from typing import DefaultDict, Dict, Iterable, List, Sequence, Tuple + +from fontTools.config import OPTIONS +from fontTools.misc.intTools import bit_count, bit_indices +from fontTools.ttLib import TTFont +from fontTools.ttLib.tables import otBase, otTables + +log = logging.getLogger(__name__) + +COMPRESSION_LEVEL = OPTIONS[f"{__name__}:COMPRESSION_LEVEL"] + +# Kept because ufo2ft depends on it, to be removed once ufo2ft uses the config instead +# https://github.com/fonttools/fonttools/issues/2592 +GPOS_COMPACT_MODE_ENV_KEY = "FONTTOOLS_GPOS_COMPACT_MODE" +GPOS_COMPACT_MODE_DEFAULT = str(COMPRESSION_LEVEL.default) + + +def _compression_level_from_env() -> int: + env_level = GPOS_COMPACT_MODE_DEFAULT + if GPOS_COMPACT_MODE_ENV_KEY in os.environ: + import warnings + + warnings.warn( + f"'{GPOS_COMPACT_MODE_ENV_KEY}' environment variable is deprecated. " + "Please set the 'fontTools.otlLib.optimize.gpos:COMPRESSION_LEVEL' option " + "in TTFont.cfg.", + DeprecationWarning, + ) + + env_level = os.environ[GPOS_COMPACT_MODE_ENV_KEY] + if len(env_level) == 1 and env_level in "0123456789": + return int(env_level) + raise ValueError(f"Bad {GPOS_COMPACT_MODE_ENV_KEY}={env_level}") + + +def compact(font: TTFont, level: int) -> TTFont: + # Ideal plan: + # 1. Find lookups of Lookup Type 2: Pair Adjustment Positioning Subtable + # https://docs.microsoft.com/en-us/typography/opentype/spec/gpos#lookup-type-2-pair-adjustment-positioning-subtable + # 2. Extract glyph-glyph kerning and class-kerning from all present subtables + # 3. Regroup into different subtable arrangements + # 4. Put back into the lookup + # + # Actual implementation: + # 2. Only class kerning is optimized currently + # 3. If the input kerning is already in several subtables, the subtables + # are not grouped together first; instead each subtable is treated + # independently, so currently this step is: + # Split existing subtables into more smaller subtables + gpos = font.get("GPOS") + + # If the font does not contain a GPOS table, there is nothing to do. + if gpos is None: + return font + + for lookup in gpos.table.LookupList.Lookup: + if lookup.LookupType == 2: + compact_lookup(font, level, lookup) + elif lookup.LookupType == 9 and lookup.SubTable[0].ExtensionLookupType == 2: + compact_ext_lookup(font, level, lookup) + + return font + + +def compact_lookup(font: TTFont, level: int, lookup: otTables.Lookup) -> None: + new_subtables = compact_pair_pos(font, level, lookup.SubTable) + lookup.SubTable = new_subtables + lookup.SubTableCount = len(new_subtables) + + +def compact_ext_lookup(font: TTFont, level: int, lookup: otTables.Lookup) -> None: + new_subtables = compact_pair_pos( + font, level, [ext_subtable.ExtSubTable for ext_subtable in lookup.SubTable] + ) + new_ext_subtables = [] + for subtable in new_subtables: + ext_subtable = otTables.ExtensionPos() + ext_subtable.Format = 1 + ext_subtable.ExtSubTable = subtable + new_ext_subtables.append(ext_subtable) + lookup.SubTable = new_ext_subtables + lookup.SubTableCount = len(new_ext_subtables) + + +def compact_pair_pos( + font: TTFont, level: int, subtables: Sequence[otTables.PairPos] +) -> Sequence[otTables.PairPos]: + new_subtables = [] + for subtable in subtables: + if subtable.Format == 1: + # Not doing anything to Format 1 (yet?) + new_subtables.append(subtable) + elif subtable.Format == 2: + new_subtables.extend(compact_class_pairs(font, level, subtable)) + return new_subtables + + +def compact_class_pairs( + font: TTFont, level: int, subtable: otTables.PairPos +) -> List[otTables.PairPos]: + from fontTools.otlLib.builder import buildPairPosClassesSubtable + + subtables = [] + classes1: DefaultDict[int, List[str]] = defaultdict(list) + for g in subtable.Coverage.glyphs: + classes1[subtable.ClassDef1.classDefs.get(g, 0)].append(g) + classes2: DefaultDict[int, List[str]] = defaultdict(list) + for g, i in subtable.ClassDef2.classDefs.items(): + classes2[i].append(g) + all_pairs = {} + for i, class1 in enumerate(subtable.Class1Record): + for j, class2 in enumerate(class1.Class2Record): + if is_really_zero(class2): + continue + all_pairs[(tuple(sorted(classes1[i])), tuple(sorted(classes2[j])))] = ( + getattr(class2, "Value1", None), + getattr(class2, "Value2", None), + ) + grouped_pairs = cluster_pairs_by_class2_coverage_custom_cost(font, all_pairs, level) + for pairs in grouped_pairs: + subtables.append(buildPairPosClassesSubtable(pairs, font.getReverseGlyphMap())) + return subtables + + +def is_really_zero(class2: otTables.Class2Record) -> bool: + v1 = getattr(class2, "Value1", None) + v2 = getattr(class2, "Value2", None) + return (v1 is None or v1.getEffectiveFormat() == 0) and ( + v2 is None or v2.getEffectiveFormat() == 0 + ) + + +Pairs = Dict[ + Tuple[Tuple[str, ...], Tuple[str, ...]], + Tuple[otBase.ValueRecord, otBase.ValueRecord], +] + + +# Adapted from https://github.com/fonttools/fonttools/blob/f64f0b42f2d1163b2d85194e0979def539f5dca3/Lib/fontTools/ttLib/tables/otTables.py#L935-L958 +def _getClassRanges(glyphIDs: Iterable[int]): + glyphIDs = sorted(glyphIDs) + last = glyphIDs[0] + ranges = [[last]] + for glyphID in glyphIDs[1:]: + if glyphID != last + 1: + ranges[-1].append(last) + ranges.append([glyphID]) + last = glyphID + ranges[-1].append(last) + return ranges, glyphIDs[0], glyphIDs[-1] + + +# Adapted from https://github.com/fonttools/fonttools/blob/f64f0b42f2d1163b2d85194e0979def539f5dca3/Lib/fontTools/ttLib/tables/otTables.py#L960-L989 +def _classDef_bytes( + class_data: List[Tuple[List[Tuple[int, int]], int, int]], + class_ids: List[int], + coverage=False, +): + if not class_ids: + return 0 + first_ranges, min_glyph_id, max_glyph_id = class_data[class_ids[0]] + range_count = len(first_ranges) + for i in class_ids[1:]: + data = class_data[i] + range_count += len(data[0]) + min_glyph_id = min(min_glyph_id, data[1]) + max_glyph_id = max(max_glyph_id, data[2]) + glyphCount = max_glyph_id - min_glyph_id + 1 + # https://docs.microsoft.com/en-us/typography/opentype/spec/chapter2#class-definition-table-format-1 + format1_bytes = 6 + glyphCount * 2 + # https://docs.microsoft.com/en-us/typography/opentype/spec/chapter2#class-definition-table-format-2 + format2_bytes = 4 + range_count * 6 + return min(format1_bytes, format2_bytes) + + +ClusteringContext = namedtuple( + "ClusteringContext", + [ + "lines", + "all_class1", + "all_class1_data", + "all_class2_data", + "valueFormat1_bytes", + "valueFormat2_bytes", + ], +) + + +@dataclass +class Cluster: + ctx: ClusteringContext + indices_bitmask: int + + @cached_property + def indices(self): + return bit_indices(self.indices_bitmask) + + @cached_property + def column_indices(self): + # Indices of columns that have a 1 in at least 1 line + # => binary OR all the lines + bitmask = reduce(int.__or__, (self.ctx.lines[i] for i in self.indices)) + return bit_indices(bitmask) + + @property + def width(self): + # Add 1 because Class2=0 cannot be used but needs to be encoded. + return len(self.column_indices) + 1 + + @cached_property + def cost(self): + return ( + # 2 bytes to store the offset to this subtable in the Lookup table above + 2 + # Contents of the subtable + # From: https://docs.microsoft.com/en-us/typography/opentype/spec/gpos#pair-adjustment-positioning-format-2-class-pair-adjustment + # uint16 posFormat Format identifier: format = 2 + + 2 + # Offset16 coverageOffset Offset to Coverage table, from beginning of PairPos subtable. + + 2 + + self.coverage_bytes + # uint16 valueFormat1 ValueRecord definition — for the first glyph of the pair (may be zero). + + 2 + # uint16 valueFormat2 ValueRecord definition — for the second glyph of the pair (may be zero). + + 2 + # Offset16 classDef1Offset Offset to ClassDef table, from beginning of PairPos subtable — for the first glyph of the pair. + + 2 + + self.classDef1_bytes + # Offset16 classDef2Offset Offset to ClassDef table, from beginning of PairPos subtable — for the second glyph of the pair. + + 2 + + self.classDef2_bytes + # uint16 class1Count Number of classes in classDef1 table — includes Class 0. + + 2 + # uint16 class2Count Number of classes in classDef2 table — includes Class 0. + + 2 + # Class1Record class1Records[class1Count] Array of Class1 records, ordered by classes in classDef1. + + (self.ctx.valueFormat1_bytes + self.ctx.valueFormat2_bytes) + * len(self.indices) + * self.width + ) + + @property + def coverage_bytes(self): + format1_bytes = ( + # From https://docs.microsoft.com/en-us/typography/opentype/spec/chapter2#coverage-format-1 + # uint16 coverageFormat Format identifier — format = 1 + # uint16 glyphCount Number of glyphs in the glyph array + 4 + # uint16 glyphArray[glyphCount] Array of glyph IDs — in numerical order + + sum(len(self.ctx.all_class1[i]) for i in self.indices) * 2 + ) + ranges = sorted( + chain.from_iterable(self.ctx.all_class1_data[i][0] for i in self.indices) + ) + merged_range_count = 0 + last = None + for start, end in ranges: + if last is not None and start != last + 1: + merged_range_count += 1 + last = end + format2_bytes = ( + # From https://docs.microsoft.com/en-us/typography/opentype/spec/chapter2#coverage-format-2 + # uint16 coverageFormat Format identifier — format = 2 + # uint16 rangeCount Number of RangeRecords + 4 + # RangeRecord rangeRecords[rangeCount] Array of glyph ranges — ordered by startGlyphID. + # uint16 startGlyphID First glyph ID in the range + # uint16 endGlyphID Last glyph ID in the range + # uint16 startCoverageIndex Coverage Index of first glyph ID in range + + merged_range_count * 6 + ) + return min(format1_bytes, format2_bytes) + + @property + def classDef1_bytes(self): + # We can skip encoding one of the Class1 definitions, and use + # Class1=0 to represent it instead, because Class1 is gated by the + # Coverage definition. Use Class1=0 for the highest byte savings. + # Going through all options takes too long, pick the biggest class + # = what happens in otlLib.builder.ClassDefBuilder.classes() + biggest_index = max(self.indices, key=lambda i: len(self.ctx.all_class1[i])) + return _classDef_bytes( + self.ctx.all_class1_data, [i for i in self.indices if i != biggest_index] + ) + + @property + def classDef2_bytes(self): + # All Class2 need to be encoded because we can't use Class2=0 + return _classDef_bytes(self.ctx.all_class2_data, self.column_indices) + + +def cluster_pairs_by_class2_coverage_custom_cost( + font: TTFont, + pairs: Pairs, + compression: int = 5, +) -> List[Pairs]: + if not pairs: + # The subtable was actually empty? + return [pairs] + + # Sorted for reproducibility/determinism + all_class1 = sorted(set(pair[0] for pair in pairs)) + all_class2 = sorted(set(pair[1] for pair in pairs)) + + # Use Python's big ints for binary vectors representing each line + lines = [ + sum( + 1 << i if (class1, class2) in pairs else 0 + for i, class2 in enumerate(all_class2) + ) + for class1 in all_class1 + ] + + # Map glyph names to ids and work with ints throughout for ClassDef formats + name_to_id = font.getReverseGlyphMap() + # Each entry in the arrays below is (range_count, min_glyph_id, max_glyph_id) + all_class1_data = [ + _getClassRanges(name_to_id[name] for name in cls) for cls in all_class1 + ] + all_class2_data = [ + _getClassRanges(name_to_id[name] for name in cls) for cls in all_class2 + ] + + format1 = 0 + format2 = 0 + for pair, value in pairs.items(): + format1 |= value[0].getEffectiveFormat() if value[0] else 0 + format2 |= value[1].getEffectiveFormat() if value[1] else 0 + valueFormat1_bytes = bit_count(format1) * 2 + valueFormat2_bytes = bit_count(format2) * 2 + + ctx = ClusteringContext( + lines, + all_class1, + all_class1_data, + all_class2_data, + valueFormat1_bytes, + valueFormat2_bytes, + ) + + cluster_cache: Dict[int, Cluster] = {} + + def make_cluster(indices: int) -> Cluster: + cluster = cluster_cache.get(indices, None) + if cluster is not None: + return cluster + cluster = Cluster(ctx, indices) + cluster_cache[indices] = cluster + return cluster + + def merge(cluster: Cluster, other: Cluster) -> Cluster: + return make_cluster(cluster.indices_bitmask | other.indices_bitmask) + + # Agglomerative clustering by hand, checking the cost gain of the new + # cluster against the previously separate clusters + # Start with 1 cluster per line + # cluster = set of lines = new subtable + clusters = [make_cluster(1 << i) for i in range(len(lines))] + + # Cost of 1 cluster with everything + # `(1 << len) - 1` gives a bitmask full of 1's of length `len` + cost_before_splitting = make_cluster((1 << len(lines)) - 1).cost + log.debug(f" len(clusters) = {len(clusters)}") + + while len(clusters) > 1: + lowest_cost_change = None + best_cluster_index = None + best_other_index = None + best_merged = None + for i, cluster in enumerate(clusters): + for j, other in enumerate(clusters[i + 1 :]): + merged = merge(cluster, other) + cost_change = merged.cost - cluster.cost - other.cost + if lowest_cost_change is None or cost_change < lowest_cost_change: + lowest_cost_change = cost_change + best_cluster_index = i + best_other_index = i + 1 + j + best_merged = merged + assert lowest_cost_change is not None + assert best_cluster_index is not None + assert best_other_index is not None + assert best_merged is not None + + # If the best merge we found is still taking down the file size, then + # there's no question: we must do it, because it's beneficial in both + # ways (lower file size and lower number of subtables). However, if the + # best merge we found is not reducing file size anymore, then we need to + # look at the other stop criteria = the compression factor. + if lowest_cost_change > 0: + # Stop critera: check whether we should keep merging. + # Compute size reduction brought by splitting + cost_after_splitting = sum(c.cost for c in clusters) + # size_reduction so that after = before * (1 - size_reduction) + # E.g. before = 1000, after = 800, 1 - 800/1000 = 0.2 + size_reduction = 1 - cost_after_splitting / cost_before_splitting + + # Force more merging by taking into account the compression number. + # Target behaviour: compression number = 1 to 9, default 5 like gzip + # - 1 = accept to add 1 subtable to reduce size by 50% + # - 5 = accept to add 5 subtables to reduce size by 50% + # See https://github.com/harfbuzz/packtab/blob/master/Lib/packTab/__init__.py#L690-L691 + # Given the size reduction we have achieved so far, compute how many + # new subtables are acceptable. + max_new_subtables = -log2(1 - size_reduction) * compression + log.debug( + f" len(clusters) = {len(clusters):3d} size_reduction={size_reduction:5.2f} max_new_subtables={max_new_subtables}", + ) + if compression == 9: + # Override level 9 to mean: create any number of subtables + max_new_subtables = len(clusters) + + # If we have managed to take the number of new subtables below the + # threshold, then we can stop. + if len(clusters) <= max_new_subtables + 1: + break + + # No reason to stop yet, do the merge and move on to the next. + del clusters[best_other_index] + clusters[best_cluster_index] = best_merged + + # All clusters are final; turn bitmasks back into the "Pairs" format + pairs_by_class1: Dict[Tuple[str, ...], Pairs] = defaultdict(dict) + for pair, values in pairs.items(): + pairs_by_class1[pair[0]][pair] = values + pairs_groups: List[Pairs] = [] + for cluster in clusters: + pairs_group: Pairs = dict() + for i in cluster.indices: + class1 = all_class1[i] + pairs_group.update(pairs_by_class1[class1]) + pairs_groups.append(pairs_group) + return pairs_groups diff --git a/shared/package-files/86/86dc1312d1b726c98a635fb227e470acf60187c5852faeb794e46d39fb269477/_embedding_bag_per_sample_weights_backward_compositeexplicitautograd_dispatch.h b/shared/package-files/86/86dc1312d1b726c98a635fb227e470acf60187c5852faeb794e46d39fb269477/_embedding_bag_per_sample_weights_backward_compositeexplicitautograd_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..9bbf3531834c870b8d7558ba42a18ec5f029547a --- /dev/null +++ b/shared/package-files/86/86dc1312d1b726c98a635fb227e470acf60187c5852faeb794e46d39fb269477/_embedding_bag_per_sample_weights_backward_compositeexplicitautograd_dispatch.h @@ -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 compositeexplicitautograd { + +TORCH_API at::Tensor & _embedding_bag_per_sample_weights_backward_out(at::Tensor & out, const at::Tensor & grad, const at::Tensor & weight, const at::Tensor & indices, const at::Tensor & offsets, const at::Tensor & offset2bag, int64_t mode, int64_t padding_idx=-1); +TORCH_API at::Tensor & _embedding_bag_per_sample_weights_backward_outf(const at::Tensor & grad, const at::Tensor & weight, const at::Tensor & indices, const at::Tensor & offsets, const at::Tensor & offset2bag, int64_t mode, int64_t padding_idx, at::Tensor & out); + +} // namespace compositeexplicitautograd +} // namespace at diff --git a/shared/package-files/86/86e1e972526a90edf693b0537e54478fc9c89b3837a7acb2af2792f4bc872965/test_umath.py b/shared/package-files/86/86e1e972526a90edf693b0537e54478fc9c89b3837a7acb2af2792f4bc872965/test_umath.py new file mode 100644 index 0000000000000000000000000000000000000000..963e740d8dcb3be13e791f586ba5cf1448a55523 --- /dev/null +++ b/shared/package-files/86/86e1e972526a90edf693b0537e54478fc9c89b3837a7acb2af2792f4bc872965/test_umath.py @@ -0,0 +1,4743 @@ +import platform +import warnings +import fnmatch +import itertools +import pytest +import sys +import os +import operator +from fractions import Fraction +from functools import reduce +from collections import namedtuple + +import numpy.core.umath as ncu +from numpy.core import _umath_tests as ncu_tests +import numpy as np +from numpy.testing import ( + assert_, assert_equal, assert_raises, assert_raises_regex, + assert_array_equal, assert_almost_equal, assert_array_almost_equal, + assert_array_max_ulp, assert_allclose, assert_no_warnings, suppress_warnings, + _gen_alignment_data, assert_array_almost_equal_nulp, IS_WASM, IS_MUSL, + IS_PYPY + ) +from numpy.testing._private.utils import _glibc_older_than + +UFUNCS = [obj for obj in np.core.umath.__dict__.values() + if isinstance(obj, np.ufunc)] + +UFUNCS_UNARY = [ + uf for uf in UFUNCS if uf.nin == 1 +] +UFUNCS_UNARY_FP = [ + uf for uf in UFUNCS_UNARY if 'f->f' in uf.types +] + +UFUNCS_BINARY = [ + uf for uf in UFUNCS if uf.nin == 2 +] +UFUNCS_BINARY_ACC = [ + uf for uf in UFUNCS_BINARY if hasattr(uf, "accumulate") and uf.nout == 1 +] + +def interesting_binop_operands(val1, val2, dtype): + """ + Helper to create "interesting" operands to cover common code paths: + * scalar inputs + * only first "values" is an array (e.g. scalar division fast-paths) + * Longer array (SIMD) placing the value of interest at different positions + * Oddly strided arrays which may not be SIMD compatible + + It does not attempt to cover unaligned access or mixed dtypes. + These are normally handled by the casting/buffering machinery. + + This is not a fixture (currently), since I believe a fixture normally + only yields once? + """ + fill_value = 1 # could be a parameter, but maybe not an optional one? + + arr1 = np.full(10003, dtype=dtype, fill_value=fill_value) + arr2 = np.full(10003, dtype=dtype, fill_value=fill_value) + + arr1[0] = val1 + arr2[0] = val2 + + extractor = lambda res: res + yield arr1[0], arr2[0], extractor, "scalars" + + extractor = lambda res: res + yield arr1[0, ...], arr2[0, ...], extractor, "scalar-arrays" + + # reset array values to fill_value: + arr1[0] = fill_value + arr2[0] = fill_value + + for pos in [0, 1, 2, 3, 4, 5, -1, -2, -3, -4]: + arr1[pos] = val1 + arr2[pos] = val2 + + extractor = lambda res: res[pos] + yield arr1, arr2, extractor, f"off-{pos}" + yield arr1, arr2[pos], extractor, f"off-{pos}-with-scalar" + + arr1[pos] = fill_value + arr2[pos] = fill_value + + for stride in [-1, 113]: + op1 = arr1[::stride] + op2 = arr2[::stride] + op1[10] = val1 + op2[10] = val2 + + extractor = lambda res: res[10] + yield op1, op2, extractor, f"stride-{stride}" + + op1[10] = fill_value + op2[10] = fill_value + + +def on_powerpc(): + """ True if we are running on a Power PC platform.""" + return platform.processor() == 'powerpc' or \ + platform.machine().startswith('ppc') + + +def bad_arcsinh(): + """The blocklisted trig functions are not accurate on aarch64/PPC for + complex256. Rather than dig through the actual problem skip the + test. This should be fixed when we can move past glibc2.17 + which is the version in manylinux2014 + """ + if platform.machine() == 'aarch64': + x = 1.78e-10 + elif on_powerpc(): + x = 2.16e-10 + else: + return False + v1 = np.arcsinh(np.float128(x)) + v2 = np.arcsinh(np.complex256(x)).real + # The eps for float128 is 1-e33, so this is way bigger + return abs((v1 / v2) - 1.0) > 1e-23 + + +class _FilterInvalids: + def setup_method(self): + self.olderr = np.seterr(invalid='ignore') + + def teardown_method(self): + np.seterr(**self.olderr) + + +class TestConstants: + def test_pi(self): + assert_allclose(ncu.pi, 3.141592653589793, 1e-15) + + def test_e(self): + assert_allclose(ncu.e, 2.718281828459045, 1e-15) + + def test_euler_gamma(self): + assert_allclose(ncu.euler_gamma, 0.5772156649015329, 1e-15) + + +class TestOut: + def test_out_subok(self): + for subok in (True, False): + a = np.array(0.5) + o = np.empty(()) + + r = np.add(a, 2, o, subok=subok) + assert_(r is o) + r = np.add(a, 2, out=o, subok=subok) + assert_(r is o) + r = np.add(a, 2, out=(o,), subok=subok) + assert_(r is o) + + d = np.array(5.7) + o1 = np.empty(()) + o2 = np.empty((), dtype=np.int32) + + r1, r2 = np.frexp(d, o1, None, subok=subok) + assert_(r1 is o1) + r1, r2 = np.frexp(d, None, o2, subok=subok) + assert_(r2 is o2) + r1, r2 = np.frexp(d, o1, o2, subok=subok) + assert_(r1 is o1) + assert_(r2 is o2) + + r1, r2 = np.frexp(d, out=(o1, None), subok=subok) + assert_(r1 is o1) + r1, r2 = np.frexp(d, out=(None, o2), subok=subok) + assert_(r2 is o2) + r1, r2 = np.frexp(d, out=(o1, o2), subok=subok) + assert_(r1 is o1) + assert_(r2 is o2) + + with assert_raises(TypeError): + # Out argument must be tuple, since there are multiple outputs. + r1, r2 = np.frexp(d, out=o1, subok=subok) + + assert_raises(TypeError, np.add, a, 2, o, o, subok=subok) + assert_raises(TypeError, np.add, a, 2, o, out=o, subok=subok) + assert_raises(TypeError, np.add, a, 2, None, out=o, subok=subok) + assert_raises(ValueError, np.add, a, 2, out=(o, o), subok=subok) + assert_raises(ValueError, np.add, a, 2, out=(), subok=subok) + assert_raises(TypeError, np.add, a, 2, [], subok=subok) + assert_raises(TypeError, np.add, a, 2, out=[], subok=subok) + assert_raises(TypeError, np.add, a, 2, out=([],), subok=subok) + o.flags.writeable = False + assert_raises(ValueError, np.add, a, 2, o, subok=subok) + assert_raises(ValueError, np.add, a, 2, out=o, subok=subok) + assert_raises(ValueError, np.add, a, 2, out=(o,), subok=subok) + + def test_out_wrap_subok(self): + class ArrayWrap(np.ndarray): + __array_priority__ = 10 + + def __new__(cls, arr): + return np.asarray(arr).view(cls).copy() + + def __array_wrap__(self, arr, context): + return arr.view(type(self)) + + for subok in (True, False): + a = ArrayWrap([0.5]) + + r = np.add(a, 2, subok=subok) + if subok: + assert_(isinstance(r, ArrayWrap)) + else: + assert_(type(r) == np.ndarray) + + r = np.add(a, 2, None, subok=subok) + if subok: + assert_(isinstance(r, ArrayWrap)) + else: + assert_(type(r) == np.ndarray) + + r = np.add(a, 2, out=None, subok=subok) + if subok: + assert_(isinstance(r, ArrayWrap)) + else: + assert_(type(r) == np.ndarray) + + r = np.add(a, 2, out=(None,), subok=subok) + if subok: + assert_(isinstance(r, ArrayWrap)) + else: + assert_(type(r) == np.ndarray) + + d = ArrayWrap([5.7]) + o1 = np.empty((1,)) + o2 = np.empty((1,), dtype=np.int32) + + r1, r2 = np.frexp(d, o1, subok=subok) + if subok: + assert_(isinstance(r2, ArrayWrap)) + else: + assert_(type(r2) == np.ndarray) + + r1, r2 = np.frexp(d, o1, None, subok=subok) + if subok: + assert_(isinstance(r2, ArrayWrap)) + else: + assert_(type(r2) == np.ndarray) + + r1, r2 = np.frexp(d, None, o2, subok=subok) + if subok: + assert_(isinstance(r1, ArrayWrap)) + else: + assert_(type(r1) == np.ndarray) + + r1, r2 = np.frexp(d, out=(o1, None), subok=subok) + if subok: + assert_(isinstance(r2, ArrayWrap)) + else: + assert_(type(r2) == np.ndarray) + + r1, r2 = np.frexp(d, out=(None, o2), subok=subok) + if subok: + assert_(isinstance(r1, ArrayWrap)) + else: + assert_(type(r1) == np.ndarray) + + with assert_raises(TypeError): + # Out argument must be tuple, since there are multiple outputs. + r1, r2 = np.frexp(d, out=o1, subok=subok) + + +class TestComparisons: + import operator + + @pytest.mark.parametrize('dtype', np.sctypes['uint'] + np.sctypes['int'] + + np.sctypes['float'] + [np.bool_]) + @pytest.mark.parametrize('py_comp,np_comp', [ + (operator.lt, np.less), + (operator.le, np.less_equal), + (operator.gt, np.greater), + (operator.ge, np.greater_equal), + (operator.eq, np.equal), + (operator.ne, np.not_equal) + ]) + def test_comparison_functions(self, dtype, py_comp, np_comp): + # Initialize input arrays + if dtype == np.bool_: + a = np.random.choice(a=[False, True], size=1000) + b = np.random.choice(a=[False, True], size=1000) + scalar = True + else: + a = np.random.randint(low=1, high=10, size=1000).astype(dtype) + b = np.random.randint(low=1, high=10, size=1000).astype(dtype) + scalar = 5 + np_scalar = np.dtype(dtype).type(scalar) + a_lst = a.tolist() + b_lst = b.tolist() + + # (Binary) Comparison (x1=array, x2=array) + comp_b = np_comp(a, b).view(np.uint8) + comp_b_list = [int(py_comp(x, y)) for x, y in zip(a_lst, b_lst)] + + # (Scalar1) Comparison (x1=scalar, x2=array) + comp_s1 = np_comp(np_scalar, b).view(np.uint8) + comp_s1_list = [int(py_comp(scalar, x)) for x in b_lst] + + # (Scalar2) Comparison (x1=array, x2=scalar) + comp_s2 = np_comp(a, np_scalar).view(np.uint8) + comp_s2_list = [int(py_comp(x, scalar)) for x in a_lst] + + # Sequence: Binary, Scalar1 and Scalar2 + assert_(comp_b.tolist() == comp_b_list, + f"Failed comparison ({py_comp.__name__})") + assert_(comp_s1.tolist() == comp_s1_list, + f"Failed comparison ({py_comp.__name__})") + assert_(comp_s2.tolist() == comp_s2_list, + f"Failed comparison ({py_comp.__name__})") + + def test_ignore_object_identity_in_equal(self): + # Check comparing identical objects whose comparison + # is not a simple boolean, e.g., arrays that are compared elementwise. + a = np.array([np.array([1, 2, 3]), None], dtype=object) + assert_raises(ValueError, np.equal, a, a) + + # Check error raised when comparing identical non-comparable objects. + class FunkyType: + def __eq__(self, other): + raise TypeError("I won't compare") + + a = np.array([FunkyType()]) + assert_raises(TypeError, np.equal, a, a) + + # Check identity doesn't override comparison mismatch. + a = np.array([np.nan], dtype=object) + assert_equal(np.equal(a, a), [False]) + + def test_ignore_object_identity_in_not_equal(self): + # Check comparing identical objects whose comparison + # is not a simple boolean, e.g., arrays that are compared elementwise. + a = np.array([np.array([1, 2, 3]), None], dtype=object) + assert_raises(ValueError, np.not_equal, a, a) + + # Check error raised when comparing identical non-comparable objects. + class FunkyType: + def __ne__(self, other): + raise TypeError("I won't compare") + + a = np.array([FunkyType()]) + assert_raises(TypeError, np.not_equal, a, a) + + # Check identity doesn't override comparison mismatch. + a = np.array([np.nan], dtype=object) + assert_equal(np.not_equal(a, a), [True]) + + def test_error_in_equal_reduce(self): + # gh-20929 + # make sure np.equal.reduce raises a TypeError if an array is passed + # without specifying the dtype + a = np.array([0, 0]) + assert_equal(np.equal.reduce(a, dtype=bool), True) + assert_raises(TypeError, np.equal.reduce, a) + + def test_object_dtype(self): + assert np.equal(1, [1], dtype=object).dtype == object + assert np.equal(1, [1], signature=(None, None, "O")).dtype == object + + def test_object_nonbool_dtype_error(self): + # bool output dtype is fine of course: + assert np.equal(1, [1], dtype=bool).dtype == bool + + # but the following are examples do not have a loop: + with pytest.raises(TypeError, match="No loop matching"): + np.equal(1, 1, dtype=np.int64) + + with pytest.raises(TypeError, match="No loop matching"): + np.equal(1, 1, sig=(None, None, "l")) + + @pytest.mark.parametrize("dtypes", ["qQ", "Qq"]) + @pytest.mark.parametrize('py_comp, np_comp', [ + (operator.lt, np.less), + (operator.le, np.less_equal), + (operator.gt, np.greater), + (operator.ge, np.greater_equal), + (operator.eq, np.equal), + (operator.ne, np.not_equal) + ]) + @pytest.mark.parametrize("vals", [(2**60, 2**60+1), (2**60+1, 2**60)]) + def test_large_integer_direct_comparison( + self, dtypes, py_comp, np_comp, vals): + # Note that float(2**60) + 1 == float(2**60). + a1 = np.array([2**60], dtype=dtypes[0]) + a2 = np.array([2**60 + 1], dtype=dtypes[1]) + expected = py_comp(2**60, 2**60+1) + + assert py_comp(a1, a2) == expected + assert np_comp(a1, a2) == expected + # Also check the scalars: + s1 = a1[0] + s2 = a2[0] + assert isinstance(s1, np.integer) + assert isinstance(s2, np.integer) + # The Python operator here is mainly interesting: + assert py_comp(s1, s2) == expected + assert np_comp(s1, s2) == expected + + @pytest.mark.parametrize("dtype", np.typecodes['UnsignedInteger']) + @pytest.mark.parametrize('py_comp_func, np_comp_func', [ + (operator.lt, np.less), + (operator.le, np.less_equal), + (operator.gt, np.greater), + (operator.ge, np.greater_equal), + (operator.eq, np.equal), + (operator.ne, np.not_equal) + ]) + @pytest.mark.parametrize("flip", [True, False]) + def test_unsigned_signed_direct_comparison( + self, dtype, py_comp_func, np_comp_func, flip): + if flip: + py_comp = lambda x, y: py_comp_func(y, x) + np_comp = lambda x, y: np_comp_func(y, x) + else: + py_comp = py_comp_func + np_comp = np_comp_func + + arr = np.array([np.iinfo(dtype).max], dtype=dtype) + expected = py_comp(int(arr[0]), -1) + + assert py_comp(arr, -1) == expected + assert np_comp(arr, -1) == expected + scalar = arr[0] + assert isinstance(scalar, np.integer) + # The Python operator here is mainly interesting: + assert py_comp(scalar, -1) == expected + assert np_comp(scalar, -1) == expected + + +class TestAdd: + def test_reduce_alignment(self): + # gh-9876 + # make sure arrays with weird strides work with the optimizations in + # pairwise_sum_@TYPE@. On x86, the 'b' field will count as aligned at a + # 4 byte offset, even though its itemsize is 8. + a = np.zeros(2, dtype=[('a', np.int32), ('b', np.float64)]) + a['a'] = -1 + assert_equal(a['b'].sum(), 0) + + +class TestDivision: + def test_division_int(self): + # int division should follow Python + x = np.array([5, 10, 90, 100, -5, -10, -90, -100, -120]) + if 5 / 10 == 0.5: + assert_equal(x / 100, [0.05, 0.1, 0.9, 1, + -0.05, -0.1, -0.9, -1, -1.2]) + else: + assert_equal(x / 100, [0, 0, 0, 1, -1, -1, -1, -1, -2]) + assert_equal(x // 100, [0, 0, 0, 1, -1, -1, -1, -1, -2]) + assert_equal(x % 100, [5, 10, 90, 0, 95, 90, 10, 0, 80]) + + @pytest.mark.skipif(IS_WASM, reason="fp errors don't work in wasm") + @pytest.mark.parametrize("dtype,ex_val", itertools.product( + np.sctypes['int'] + np.sctypes['uint'], ( + ( + # dividend + "np.array(range(fo.max-lsize, fo.max)).astype(dtype)," + # divisors + "np.arange(lsize).astype(dtype)," + # scalar divisors + "range(15)" + ), + ( + # dividend + "np.arange(fo.min, fo.min+lsize).astype(dtype)," + # divisors + "np.arange(lsize//-2, lsize//2).astype(dtype)," + # scalar divisors + "range(fo.min, fo.min + 15)" + ), ( + # dividend + "np.array(range(fo.max-lsize, fo.max)).astype(dtype)," + # divisors + "np.arange(lsize).astype(dtype)," + # scalar divisors + "[1,3,9,13,neg, fo.min+1, fo.min//2, fo.max//3, fo.max//4]" + ) + ) + )) + def test_division_int_boundary(self, dtype, ex_val): + fo = np.iinfo(dtype) + neg = -1 if fo.min < 0 else 1 + # Large enough to test SIMD loops and remainder elements + lsize = 512 + 7 + a, b, divisors = eval(ex_val) + a_lst, b_lst = a.tolist(), b.tolist() + + c_div = lambda n, d: ( + 0 if d == 0 else ( + fo.min if (n and n == fo.min and d == -1) else n//d + ) + ) + with np.errstate(divide='ignore'): + ac = a.copy() + ac //= b + div_ab = a // b + div_lst = [c_div(x, y) for x, y in zip(a_lst, b_lst)] + + msg = "Integer arrays floor division check (//)" + assert all(div_ab == div_lst), msg + msg_eq = "Integer arrays floor division check (//=)" + assert all(ac == div_lst), msg_eq + + for divisor in divisors: + ac = a.copy() + with np.errstate(divide='ignore', over='ignore'): + div_a = a // divisor + ac //= divisor + div_lst = [c_div(i, divisor) for i in a_lst] + + assert all(div_a == div_lst), msg + assert all(ac == div_lst), msg_eq + + with np.errstate(divide='raise', over='raise'): + if 0 in b: + # Verify overflow case + with pytest.raises(FloatingPointError, + match="divide by zero encountered in floor_divide"): + a // b + else: + a // b + if fo.min and fo.min in a: + with pytest.raises(FloatingPointError, + match='overflow encountered in floor_divide'): + a // -1 + elif fo.min: + a // -1 + with pytest.raises(FloatingPointError, + match="divide by zero encountered in floor_divide"): + a // 0 + with pytest.raises(FloatingPointError, + match="divide by zero encountered in floor_divide"): + ac = a.copy() + ac //= 0 + + np.array([], dtype=dtype) // 0 + + @pytest.mark.skipif(IS_WASM, reason="fp errors don't work in wasm") + @pytest.mark.parametrize("dtype,ex_val", itertools.product( + np.sctypes['int'] + np.sctypes['uint'], ( + "np.array([fo.max, 1, 2, 1, 1, 2, 3], dtype=dtype)", + "np.array([fo.min, 1, -2, 1, 1, 2, -3]).astype(dtype)", + "np.arange(fo.min, fo.min+(100*10), 10, dtype=dtype)", + "np.array(range(fo.max-(100*7), fo.max, 7)).astype(dtype)", + ) + )) + def test_division_int_reduce(self, dtype, ex_val): + fo = np.iinfo(dtype) + a = eval(ex_val) + lst = a.tolist() + c_div = lambda n, d: ( + 0 if d == 0 or (n and n == fo.min and d == -1) else n//d + ) + + with np.errstate(divide='ignore'): + div_a = np.floor_divide.reduce(a) + div_lst = reduce(c_div, lst) + msg = "Reduce floor integer division check" + assert div_a == div_lst, msg + + with np.errstate(divide='raise', over='raise'): + with pytest.raises(FloatingPointError, + match="divide by zero encountered in reduce"): + np.floor_divide.reduce(np.arange(-100, 100).astype(dtype)) + if fo.min: + with pytest.raises(FloatingPointError, + match='overflow encountered in reduce'): + np.floor_divide.reduce( + np.array([fo.min, 1, -1], dtype=dtype) + ) + + @pytest.mark.parametrize( + "dividend,divisor,quotient", + [(np.timedelta64(2,'Y'), np.timedelta64(2,'M'), 12), + (np.timedelta64(2,'Y'), np.timedelta64(-2,'M'), -12), + (np.timedelta64(-2,'Y'), np.timedelta64(2,'M'), -12), + (np.timedelta64(-2,'Y'), np.timedelta64(-2,'M'), 12), + (np.timedelta64(2,'M'), np.timedelta64(-2,'Y'), -1), + (np.timedelta64(2,'Y'), np.timedelta64(0,'M'), 0), + (np.timedelta64(2,'Y'), 2, np.timedelta64(1,'Y')), + (np.timedelta64(2,'Y'), -2, np.timedelta64(-1,'Y')), + (np.timedelta64(-2,'Y'), 2, np.timedelta64(-1,'Y')), + (np.timedelta64(-2,'Y'), -2, np.timedelta64(1,'Y')), + (np.timedelta64(-2,'Y'), -2, np.timedelta64(1,'Y')), + (np.timedelta64(-2,'Y'), -3, np.timedelta64(0,'Y')), + (np.timedelta64(-2,'Y'), 0, np.timedelta64('Nat','Y')), + ]) + def test_division_int_timedelta(self, dividend, divisor, quotient): + # If either divisor is 0 or quotient is Nat, check for division by 0 + if divisor and (isinstance(quotient, int) or not np.isnat(quotient)): + msg = "Timedelta floor division check" + assert dividend // divisor == quotient, msg + + # Test for arrays as well + msg = "Timedelta arrays floor division check" + dividend_array = np.array([dividend]*5) + quotient_array = np.array([quotient]*5) + assert all(dividend_array // divisor == quotient_array), msg + else: + if IS_WASM: + pytest.skip("fp errors don't work in wasm") + with np.errstate(divide='raise', invalid='raise'): + with pytest.raises(FloatingPointError): + dividend // divisor + + def test_division_complex(self): + # check that implementation is correct + msg = "Complex division implementation check" + x = np.array([1. + 1.*1j, 1. + .5*1j, 1. + 2.*1j], dtype=np.complex128) + assert_almost_equal(x**2/x, x, err_msg=msg) + # check overflow, underflow + msg = "Complex division overflow/underflow check" + x = np.array([1.e+110, 1.e-110], dtype=np.complex128) + y = x**2/x + assert_almost_equal(y/x, [1, 1], err_msg=msg) + + def test_zero_division_complex(self): + with np.errstate(invalid="ignore", divide="ignore"): + x = np.array([0.0], dtype=np.complex128) + y = 1.0/x + assert_(np.isinf(y)[0]) + y = complex(np.inf, np.nan)/x + assert_(np.isinf(y)[0]) + y = complex(np.nan, np.inf)/x + assert_(np.isinf(y)[0]) + y = complex(np.inf, np.inf)/x + assert_(np.isinf(y)[0]) + y = 0.0/x + assert_(np.isnan(y)[0]) + + def test_floor_division_complex(self): + # check that floor division, divmod and remainder raises type errors + x = np.array([.9 + 1j, -.1 + 1j, .9 + .5*1j, .9 + 2.*1j], dtype=np.complex128) + with pytest.raises(TypeError): + x // 7 + with pytest.raises(TypeError): + np.divmod(x, 7) + with pytest.raises(TypeError): + np.remainder(x, 7) + + def test_floor_division_signed_zero(self): + # Check that the sign bit is correctly set when dividing positive and + # negative zero by one. + x = np.zeros(10) + assert_equal(np.signbit(x//1), 0) + assert_equal(np.signbit((-x)//1), 1) + + @pytest.mark.skipif(hasattr(np.__config__, "blas_ssl2_info"), + reason="gh-22982") + @pytest.mark.skipif(IS_WASM, reason="fp errors don't work in wasm") + @pytest.mark.parametrize('dtype', np.typecodes['Float']) + def test_floor_division_errors(self, dtype): + fnan = np.array(np.nan, dtype=dtype) + fone = np.array(1.0, dtype=dtype) + fzer = np.array(0.0, dtype=dtype) + finf = np.array(np.inf, dtype=dtype) + # divide by zero error check + with np.errstate(divide='raise', invalid='ignore'): + assert_raises(FloatingPointError, np.floor_divide, fone, fzer) + with np.errstate(divide='ignore', invalid='raise'): + np.floor_divide(fone, fzer) + + # The following already contain a NaN and should not warn + with np.errstate(all='raise'): + np.floor_divide(fnan, fone) + np.floor_divide(fone, fnan) + np.floor_divide(fnan, fzer) + np.floor_divide(fzer, fnan) + + @pytest.mark.parametrize('dtype', np.typecodes['Float']) + def test_floor_division_corner_cases(self, dtype): + # test corner cases like 1.0//0.0 for errors and return vals + x = np.zeros(10, dtype=dtype) + y = np.ones(10, dtype=dtype) + fnan = np.array(np.nan, dtype=dtype) + fone = np.array(1.0, dtype=dtype) + fzer = np.array(0.0, dtype=dtype) + finf = np.array(np.inf, dtype=dtype) + with suppress_warnings() as sup: + sup.filter(RuntimeWarning, "invalid value encountered in floor_divide") + div = np.floor_divide(fnan, fone) + assert(np.isnan(div)), "dt: %s, div: %s" % (dt, div) + div = np.floor_divide(fone, fnan) + assert(np.isnan(div)), "dt: %s, div: %s" % (dt, div) + div = np.floor_divide(fnan, fzer) + assert(np.isnan(div)), "dt: %s, div: %s" % (dt, div) + # verify 1.0//0.0 computations return inf + with np.errstate(divide='ignore'): + z = np.floor_divide(y, x) + assert_(np.isinf(z).all()) + +def floor_divide_and_remainder(x, y): + return (np.floor_divide(x, y), np.remainder(x, y)) + + +def _signs(dt): + if dt in np.typecodes['UnsignedInteger']: + return (+1,) + else: + return (+1, -1) + + +class TestRemainder: + + def test_remainder_basic(self): + dt = np.typecodes['AllInteger'] + np.typecodes['Float'] + for op in [floor_divide_and_remainder, np.divmod]: + for dt1, dt2 in itertools.product(dt, dt): + for sg1, sg2 in itertools.product(_signs(dt1), _signs(dt2)): + fmt = 'op: %s, dt1: %s, dt2: %s, sg1: %s, sg2: %s' + msg = fmt % (op.__name__, dt1, dt2, sg1, sg2) + a = np.array(sg1*71, dtype=dt1) + b = np.array(sg2*19, dtype=dt2) + div, rem = op(a, b) + assert_equal(div*b + rem, a, err_msg=msg) + if sg2 == -1: + assert_(b < rem <= 0, msg) + else: + assert_(b > rem >= 0, msg) + + def test_float_remainder_exact(self): + # test that float results are exact for small integers. This also + # holds for the same integers scaled by powers of two. + nlst = list(range(-127, 0)) + plst = list(range(1, 128)) + dividend = nlst + [0] + plst + divisor = nlst + plst + arg = list(itertools.product(dividend, divisor)) + tgt = list(divmod(*t) for t in arg) + + a, b = np.array(arg, dtype=int).T + # convert exact integer results from Python to float so that + # signed zero can be used, it is checked. + tgtdiv, tgtrem = np.array(tgt, dtype=float).T + tgtdiv = np.where((tgtdiv == 0.0) & ((b < 0) ^ (a < 0)), -0.0, tgtdiv) + tgtrem = np.where((tgtrem == 0.0) & (b < 0), -0.0, tgtrem) + + for op in [floor_divide_and_remainder, np.divmod]: + for dt in np.typecodes['Float']: + msg = 'op: %s, dtype: %s' % (op.__name__, dt) + fa = a.astype(dt) + fb = b.astype(dt) + div, rem = op(fa, fb) + assert_equal(div, tgtdiv, err_msg=msg) + assert_equal(rem, tgtrem, err_msg=msg) + + def test_float_remainder_roundoff(self): + # gh-6127 + dt = np.typecodes['Float'] + for op in [floor_divide_and_remainder, np.divmod]: + for dt1, dt2 in itertools.product(dt, dt): + for sg1, sg2 in itertools.product((+1, -1), (+1, -1)): + fmt = 'op: %s, dt1: %s, dt2: %s, sg1: %s, sg2: %s' + msg = fmt % (op.__name__, dt1, dt2, sg1, sg2) + a = np.array(sg1*78*6e-8, dtype=dt1) + b = np.array(sg2*6e-8, dtype=dt2) + div, rem = op(a, b) + # Equal assertion should hold when fmod is used + assert_equal(div*b + rem, a, err_msg=msg) + if sg2 == -1: + assert_(b < rem <= 0, msg) + else: + assert_(b > rem >= 0, msg) + + @pytest.mark.skipif(IS_WASM, reason="fp errors don't work in wasm") + @pytest.mark.xfail(sys.platform.startswith("darwin"), + reason="MacOS seems to not give the correct 'invalid' warning for " + "`fmod`. Hopefully, others always do.") + @pytest.mark.parametrize('dtype', np.typecodes['Float']) + def test_float_divmod_errors(self, dtype): + # Check valid errors raised for divmod and remainder + fzero = np.array(0.0, dtype=dtype) + fone = np.array(1.0, dtype=dtype) + finf = np.array(np.inf, dtype=dtype) + fnan = np.array(np.nan, dtype=dtype) + # since divmod is combination of both remainder and divide + # ops it will set both dividebyzero and invalid flags + with np.errstate(divide='raise', invalid='ignore'): + assert_raises(FloatingPointError, np.divmod, fone, fzero) + with np.errstate(divide='ignore', invalid='raise'): + assert_raises(FloatingPointError, np.divmod, fone, fzero) + with np.errstate(invalid='raise'): + assert_raises(FloatingPointError, np.divmod, fzero, fzero) + with np.errstate(invalid='raise'): + assert_raises(FloatingPointError, np.divmod, finf, finf) + with np.errstate(divide='ignore', invalid='raise'): + assert_raises(FloatingPointError, np.divmod, finf, fzero) + with np.errstate(divide='raise', invalid='ignore'): + # inf / 0 does not set any flags, only the modulo creates a NaN + np.divmod(finf, fzero) + + @pytest.mark.skipif(hasattr(np.__config__, "blas_ssl2_info"), + reason="gh-22982") + @pytest.mark.skipif(IS_WASM, reason="fp errors don't work in wasm") + @pytest.mark.xfail(sys.platform.startswith("darwin"), + reason="MacOS seems to not give the correct 'invalid' warning for " + "`fmod`. Hopefully, others always do.") + @pytest.mark.parametrize('dtype', np.typecodes['Float']) + @pytest.mark.parametrize('fn', [np.fmod, np.remainder]) + def test_float_remainder_errors(self, dtype, fn): + fzero = np.array(0.0, dtype=dtype) + fone = np.array(1.0, dtype=dtype) + finf = np.array(np.inf, dtype=dtype) + fnan = np.array(np.nan, dtype=dtype) + + # The following already contain a NaN and should not warn. + with np.errstate(all='raise'): + with pytest.raises(FloatingPointError, + match="invalid value"): + fn(fone, fzero) + fn(fnan, fzero) + fn(fzero, fnan) + fn(fone, fnan) + fn(fnan, fone) + + @pytest.mark.skipif(IS_WASM, reason="fp errors don't work in wasm") + def test_float_remainder_overflow(self): + a = np.finfo(np.float64).tiny + with np.errstate(over='ignore', invalid='ignore'): + div, mod = np.divmod(4, a) + np.isinf(div) + assert_(mod == 0) + with np.errstate(over='raise', invalid='ignore'): + assert_raises(FloatingPointError, np.divmod, 4, a) + with np.errstate(invalid='raise', over='ignore'): + assert_raises(FloatingPointError, np.divmod, 4, a) + + def test_float_divmod_corner_cases(self): + # check nan cases + for dt in np.typecodes['Float']: + fnan = np.array(np.nan, dtype=dt) + fone = np.array(1.0, dtype=dt) + fzer = np.array(0.0, dtype=dt) + finf = np.array(np.inf, dtype=dt) + with suppress_warnings() as sup: + sup.filter(RuntimeWarning, "invalid value encountered in divmod") + sup.filter(RuntimeWarning, "divide by zero encountered in divmod") + div, rem = np.divmod(fone, fzer) + assert(np.isinf(div)), 'dt: %s, div: %s' % (dt, rem) + assert(np.isnan(rem)), 'dt: %s, rem: %s' % (dt, rem) + div, rem = np.divmod(fzer, fzer) + assert(np.isnan(rem)), 'dt: %s, rem: %s' % (dt, rem) + assert_(np.isnan(div)), 'dt: %s, rem: %s' % (dt, rem) + div, rem = np.divmod(finf, finf) + assert(np.isnan(div)), 'dt: %s, rem: %s' % (dt, rem) + assert(np.isnan(rem)), 'dt: %s, rem: %s' % (dt, rem) + div, rem = np.divmod(finf, fzer) + assert(np.isinf(div)), 'dt: %s, rem: %s' % (dt, rem) + assert(np.isnan(rem)), 'dt: %s, rem: %s' % (dt, rem) + div, rem = np.divmod(fnan, fone) + assert(np.isnan(rem)), "dt: %s, rem: %s" % (dt, rem) + assert(np.isnan(div)), "dt: %s, rem: %s" % (dt, rem) + div, rem = np.divmod(fone, fnan) + assert(np.isnan(rem)), "dt: %s, rem: %s" % (dt, rem) + assert(np.isnan(div)), "dt: %s, rem: %s" % (dt, rem) + div, rem = np.divmod(fnan, fzer) + assert(np.isnan(rem)), "dt: %s, rem: %s" % (dt, rem) + assert(np.isnan(div)), "dt: %s, rem: %s" % (dt, rem) + + def test_float_remainder_corner_cases(self): + # Check remainder magnitude. + for dt in np.typecodes['Float']: + fone = np.array(1.0, dtype=dt) + fzer = np.array(0.0, dtype=dt) + fnan = np.array(np.nan, dtype=dt) + b = np.array(1.0, dtype=dt) + a = np.nextafter(np.array(0.0, dtype=dt), -b) + rem = np.remainder(a, b) + assert_(rem <= b, 'dt: %s' % dt) + rem = np.remainder(-a, -b) + assert_(rem >= -b, 'dt: %s' % dt) + + # Check nans, inf + with suppress_warnings() as sup: + sup.filter(RuntimeWarning, "invalid value encountered in remainder") + sup.filter(RuntimeWarning, "invalid value encountered in fmod") + for dt in np.typecodes['Float']: + fone = np.array(1.0, dtype=dt) + fzer = np.array(0.0, dtype=dt) + finf = np.array(np.inf, dtype=dt) + fnan = np.array(np.nan, dtype=dt) + rem = np.remainder(fone, fzer) + assert_(np.isnan(rem), 'dt: %s, rem: %s' % (dt, rem)) + # MSVC 2008 returns NaN here, so disable the check. + #rem = np.remainder(fone, finf) + #assert_(rem == fone, 'dt: %s, rem: %s' % (dt, rem)) + rem = np.remainder(finf, fone) + fmod = np.fmod(finf, fone) + assert_(np.isnan(fmod), 'dt: %s, fmod: %s' % (dt, fmod)) + assert_(np.isnan(rem), 'dt: %s, rem: %s' % (dt, rem)) + rem = np.remainder(finf, finf) + fmod = np.fmod(finf, fone) + assert_(np.isnan(rem), 'dt: %s, rem: %s' % (dt, rem)) + assert_(np.isnan(fmod), 'dt: %s, fmod: %s' % (dt, fmod)) + rem = np.remainder(finf, fzer) + fmod = np.fmod(finf, fzer) + assert_(np.isnan(rem), 'dt: %s, rem: %s' % (dt, rem)) + assert_(np.isnan(fmod), 'dt: %s, fmod: %s' % (dt, fmod)) + rem = np.remainder(fone, fnan) + fmod = np.fmod(fone, fnan) + assert_(np.isnan(rem), 'dt: %s, rem: %s' % (dt, rem)) + assert_(np.isnan(fmod), 'dt: %s, fmod: %s' % (dt, fmod)) + rem = np.remainder(fnan, fzer) + fmod = np.fmod(fnan, fzer) + assert_(np.isnan(rem), 'dt: %s, rem: %s' % (dt, rem)) + assert_(np.isnan(fmod), 'dt: %s, fmod: %s' % (dt, rem)) + rem = np.remainder(fnan, fone) + fmod = np.fmod(fnan, fone) + assert_(np.isnan(rem), 'dt: %s, rem: %s' % (dt, rem)) + assert_(np.isnan(fmod), 'dt: %s, fmod: %s' % (dt, rem)) + + +class TestDivisionIntegerOverflowsAndDivideByZero: + result_type = namedtuple('result_type', + ['nocast', 'casted']) + helper_lambdas = { + 'zero': lambda dtype: 0, + 'min': lambda dtype: np.iinfo(dtype).min, + 'neg_min': lambda dtype: -np.iinfo(dtype).min, + 'min-zero': lambda dtype: (np.iinfo(dtype).min, 0), + 'neg_min-zero': lambda dtype: (-np.iinfo(dtype).min, 0), + } + overflow_results = { + np.remainder: result_type( + helper_lambdas['zero'], helper_lambdas['zero']), + np.fmod: result_type( + helper_lambdas['zero'], helper_lambdas['zero']), + operator.mod: result_type( + helper_lambdas['zero'], helper_lambdas['zero']), + operator.floordiv: result_type( + helper_lambdas['min'], helper_lambdas['neg_min']), + np.floor_divide: result_type( + helper_lambdas['min'], helper_lambdas['neg_min']), + np.divmod: result_type( + helper_lambdas['min-zero'], helper_lambdas['neg_min-zero']) + } + + @pytest.mark.skipif(IS_WASM, reason="fp errors don't work in wasm") + @pytest.mark.parametrize("dtype", np.typecodes["Integer"]) + def test_signed_division_overflow(self, dtype): + to_check = interesting_binop_operands(np.iinfo(dtype).min, -1, dtype) + for op1, op2, extractor, operand_identifier in to_check: + with pytest.warns(RuntimeWarning, match="overflow encountered"): + res = op1 // op2 + + assert res.dtype == op1.dtype + assert extractor(res) == np.iinfo(op1.dtype).min + + # Remainder is well defined though, and does not warn: + res = op1 % op2 + assert res.dtype == op1.dtype + assert extractor(res) == 0 + # Check fmod as well: + res = np.fmod(op1, op2) + assert extractor(res) == 0 + + # Divmod warns for the division part: + with pytest.warns(RuntimeWarning, match="overflow encountered"): + res1, res2 = np.divmod(op1, op2) + + assert res1.dtype == res2.dtype == op1.dtype + assert extractor(res1) == np.iinfo(op1.dtype).min + assert extractor(res2) == 0 + + @pytest.mark.skipif(IS_WASM, reason="fp errors don't work in wasm") + @pytest.mark.parametrize("dtype", np.typecodes["AllInteger"]) + def test_divide_by_zero(self, dtype): + # Note that the return value cannot be well defined here, but NumPy + # currently uses 0 consistently. This could be changed. + to_check = interesting_binop_operands(1, 0, dtype) + for op1, op2, extractor, operand_identifier in to_check: + with pytest.warns(RuntimeWarning, match="divide by zero"): + res = op1 // op2 + + assert res.dtype == op1.dtype + assert extractor(res) == 0 + + with pytest.warns(RuntimeWarning, match="divide by zero"): + res1, res2 = np.divmod(op1, op2) + + assert res1.dtype == res2.dtype == op1.dtype + assert extractor(res1) == 0 + assert extractor(res2) == 0 + + @pytest.mark.skipif(IS_WASM, reason="fp errors don't work in wasm") + @pytest.mark.parametrize("dividend_dtype", + np.sctypes['int']) + @pytest.mark.parametrize("divisor_dtype", + np.sctypes['int']) + @pytest.mark.parametrize("operation", + [np.remainder, np.fmod, np.divmod, np.floor_divide, + operator.mod, operator.floordiv]) + @np.errstate(divide='warn', over='warn') + def test_overflows(self, dividend_dtype, divisor_dtype, operation): + # SIMD tries to perform the operation on as many elements as possible + # that is a multiple of the register's size. We resort to the + # default implementation for the leftover elements. + # We try to cover all paths here. + arrays = [np.array([np.iinfo(dividend_dtype).min]*i, + dtype=dividend_dtype) for i in range(1, 129)] + divisor = np.array([-1], dtype=divisor_dtype) + # If dividend is a larger type than the divisor (`else` case), + # then, result will be a larger type than dividend and will not + # result in an overflow for `divmod` and `floor_divide`. + if np.dtype(dividend_dtype).itemsize >= np.dtype( + divisor_dtype).itemsize and operation in ( + np.divmod, np.floor_divide, operator.floordiv): + with pytest.warns( + RuntimeWarning, + match="overflow encountered in"): + result = operation( + dividend_dtype(np.iinfo(dividend_dtype).min), + divisor_dtype(-1) + ) + assert result == self.overflow_results[operation].nocast( + dividend_dtype) + + # Arrays + for a in arrays: + # In case of divmod, we need to flatten the result + # column first as we get a column vector of quotient and + # remainder and a normal flatten of the expected result. + with pytest.warns( + RuntimeWarning, + match="overflow encountered in"): + result = np.array(operation(a, divisor)).flatten('f') + expected_array = np.array( + [self.overflow_results[operation].nocast( + dividend_dtype)]*len(a)).flatten() + assert_array_equal(result, expected_array) + else: + # Scalars + result = operation( + dividend_dtype(np.iinfo(dividend_dtype).min), + divisor_dtype(-1) + ) + assert result == self.overflow_results[operation].casted( + dividend_dtype) + + # Arrays + for a in arrays: + # See above comment on flatten + result = np.array(operation(a, divisor)).flatten('f') + expected_array = np.array( + [self.overflow_results[operation].casted( + dividend_dtype)]*len(a)).flatten() + assert_array_equal(result, expected_array) + + +class TestCbrt: + def test_cbrt_scalar(self): + assert_almost_equal((np.cbrt(np.float32(-2.5)**3)), -2.5) + + def test_cbrt(self): + x = np.array([1., 2., -3., np.inf, -np.inf]) + assert_almost_equal(np.cbrt(x**3), x) + + assert_(np.isnan(np.cbrt(np.nan))) + assert_equal(np.cbrt(np.inf), np.inf) + assert_equal(np.cbrt(-np.inf), -np.inf) + + +class TestPower: + def test_power_float(self): + x = np.array([1., 2., 3.]) + assert_equal(x**0, [1., 1., 1.]) + assert_equal(x**1, x) + assert_equal(x**2, [1., 4., 9.]) + y = x.copy() + y **= 2 + assert_equal(y, [1., 4., 9.]) + assert_almost_equal(x**(-1), [1., 0.5, 1./3]) + assert_almost_equal(x**(0.5), [1., ncu.sqrt(2), ncu.sqrt(3)]) + + for out, inp, msg in _gen_alignment_data(dtype=np.float32, + type='unary', + max_size=11): + exp = [ncu.sqrt(i) for i in inp] + assert_almost_equal(inp**(0.5), exp, err_msg=msg) + np.sqrt(inp, out=out) + assert_equal(out, exp, err_msg=msg) + + for out, inp, msg in _gen_alignment_data(dtype=np.float64, + type='unary', + max_size=7): + exp = [ncu.sqrt(i) for i in inp] + assert_almost_equal(inp**(0.5), exp, err_msg=msg) + np.sqrt(inp, out=out) + assert_equal(out, exp, err_msg=msg) + + def test_power_complex(self): + x = np.array([1+2j, 2+3j, 3+4j]) + assert_equal(x**0, [1., 1., 1.]) + assert_equal(x**1, x) + assert_almost_equal(x**2, [-3+4j, -5+12j, -7+24j]) + assert_almost_equal(x**3, [(1+2j)**3, (2+3j)**3, (3+4j)**3]) + assert_almost_equal(x**4, [(1+2j)**4, (2+3j)**4, (3+4j)**4]) + assert_almost_equal(x**(-1), [1/(1+2j), 1/(2+3j), 1/(3+4j)]) + assert_almost_equal(x**(-2), [1/(1+2j)**2, 1/(2+3j)**2, 1/(3+4j)**2]) + assert_almost_equal(x**(-3), [(-11+2j)/125, (-46-9j)/2197, + (-117-44j)/15625]) + assert_almost_equal(x**(0.5), [ncu.sqrt(1+2j), ncu.sqrt(2+3j), + ncu.sqrt(3+4j)]) + norm = 1./((x**14)[0]) + assert_almost_equal(x**14 * norm, + [i * norm for i in [-76443+16124j, 23161315+58317492j, + 5583548873 + 2465133864j]]) + + # Ticket #836 + def assert_complex_equal(x, y): + assert_array_equal(x.real, y.real) + assert_array_equal(x.imag, y.imag) + + for z in [complex(0, np.inf), complex(1, np.inf)]: + z = np.array([z], dtype=np.complex_) + with np.errstate(invalid="ignore"): + assert_complex_equal(z**1, z) + assert_complex_equal(z**2, z*z) + assert_complex_equal(z**3, z*z*z) + + def test_power_zero(self): + # ticket #1271 + zero = np.array([0j]) + one = np.array([1+0j]) + cnan = np.array([complex(np.nan, np.nan)]) + # FIXME cinf not tested. + #cinf = np.array([complex(np.inf, 0)]) + + def assert_complex_equal(x, y): + x, y = np.asarray(x), np.asarray(y) + assert_array_equal(x.real, y.real) + assert_array_equal(x.imag, y.imag) + + # positive powers + for p in [0.33, 0.5, 1, 1.5, 2, 3, 4, 5, 6.6]: + assert_complex_equal(np.power(zero, p), zero) + + # zero power + assert_complex_equal(np.power(zero, 0), one) + with np.errstate(invalid="ignore"): + assert_complex_equal(np.power(zero, 0+1j), cnan) + + # negative power + for p in [0.33, 0.5, 1, 1.5, 2, 3, 4, 5, 6.6]: + assert_complex_equal(np.power(zero, -p), cnan) + assert_complex_equal(np.power(zero, -1+0.2j), cnan) + + @pytest.mark.skipif(IS_WASM, reason="fp errors don't work in wasm") + def test_zero_power_nonzero(self): + # Testing 0^{Non-zero} issue 18378 + zero = np.array([0.0+0.0j]) + cnan = np.array([complex(np.nan, np.nan)]) + + def assert_complex_equal(x, y): + assert_array_equal(x.real, y.real) + assert_array_equal(x.imag, y.imag) + + #Complex powers with positive real part will not generate a warning + assert_complex_equal(np.power(zero, 1+4j), zero) + assert_complex_equal(np.power(zero, 2-3j), zero) + #Testing zero values when real part is greater than zero + assert_complex_equal(np.power(zero, 1+1j), zero) + assert_complex_equal(np.power(zero, 1+0j), zero) + assert_complex_equal(np.power(zero, 1-1j), zero) + #Complex powers will negative real part or 0 (provided imaginary + # part is not zero) will generate a NAN and hence a RUNTIME warning + with pytest.warns(expected_warning=RuntimeWarning) as r: + assert_complex_equal(np.power(zero, -1+1j), cnan) + assert_complex_equal(np.power(zero, -2-3j), cnan) + assert_complex_equal(np.power(zero, -7+0j), cnan) + assert_complex_equal(np.power(zero, 0+1j), cnan) + assert_complex_equal(np.power(zero, 0-1j), cnan) + assert len(r) == 5 + + def test_fast_power(self): + x = np.array([1, 2, 3], np.int16) + res = x**2.0 + assert_((x**2.00001).dtype is res.dtype) + assert_array_equal(res, [1, 4, 9]) + # check the inplace operation on the casted copy doesn't mess with x + assert_(not np.may_share_memory(res, x)) + assert_array_equal(x, [1, 2, 3]) + + # Check that the fast path ignores 1-element not 0-d arrays + res = x ** np.array([[[2]]]) + assert_equal(res.shape, (1, 1, 3)) + + def test_integer_power(self): + a = np.array([15, 15], 'i8') + b = np.power(a, a) + assert_equal(b, [437893890380859375, 437893890380859375]) + + def test_integer_power_with_integer_zero_exponent(self): + dtypes = np.typecodes['Integer'] + for dt in dtypes: + arr = np.arange(-10, 10, dtype=dt) + assert_equal(np.power(arr, 0), np.ones_like(arr)) + + dtypes = np.typecodes['UnsignedInteger'] + for dt in dtypes: + arr = np.arange(10, dtype=dt) + assert_equal(np.power(arr, 0), np.ones_like(arr)) + + def test_integer_power_of_1(self): + dtypes = np.typecodes['AllInteger'] + for dt in dtypes: + arr = np.arange(10, dtype=dt) + assert_equal(np.power(1, arr), np.ones_like(arr)) + + def test_integer_power_of_zero(self): + dtypes = np.typecodes['AllInteger'] + for dt in dtypes: + arr = np.arange(1, 10, dtype=dt) + assert_equal(np.power(0, arr), np.zeros_like(arr)) + + def test_integer_to_negative_power(self): + dtypes = np.typecodes['Integer'] + for dt in dtypes: + a = np.array([0, 1, 2, 3], dtype=dt) + b = np.array([0, 1, 2, -3], dtype=dt) + one = np.array(1, dtype=dt) + minusone = np.array(-1, dtype=dt) + assert_raises(ValueError, np.power, a, b) + assert_raises(ValueError, np.power, a, minusone) + assert_raises(ValueError, np.power, one, b) + assert_raises(ValueError, np.power, one, minusone) + + def test_float_to_inf_power(self): + for dt in [np.float32, np.float64]: + a = np.array([1, 1, 2, 2, -2, -2, np.inf, -np.inf], dt) + b = np.array([np.inf, -np.inf, np.inf, -np.inf, + np.inf, -np.inf, np.inf, -np.inf], dt) + r = np.array([1, 1, np.inf, 0, np.inf, 0, np.inf, 0], dt) + assert_equal(np.power(a, b), r) + + +class TestFloat_power: + def test_type_conversion(self): + arg_type = '?bhilBHILefdgFDG' + res_type = 'ddddddddddddgDDG' + for dtin, dtout in zip(arg_type, res_type): + msg = "dtin: %s, dtout: %s" % (dtin, dtout) + arg = np.ones(1, dtype=dtin) + res = np.float_power(arg, arg) + assert_(res.dtype.name == np.dtype(dtout).name, msg) + + +class TestLog2: + @pytest.mark.parametrize('dt', ['f', 'd', 'g']) + def test_log2_values(self, dt): + x = [1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024] + y = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] + xf = np.array(x, dtype=dt) + yf = np.array(y, dtype=dt) + assert_almost_equal(np.log2(xf), yf) + + @pytest.mark.parametrize("i", range(1, 65)) + def test_log2_ints(self, i): + # a good log2 implementation should provide this, + # might fail on OS with bad libm + v = np.log2(2.**i) + assert_equal(v, float(i), err_msg='at exponent %d' % i) + + @pytest.mark.skipif(IS_WASM, reason="fp errors don't work in wasm") + def test_log2_special(self): + assert_equal(np.log2(1.), 0.) + assert_equal(np.log2(np.inf), np.inf) + assert_(np.isnan(np.log2(np.nan))) + + with warnings.catch_warnings(record=True) as w: + warnings.filterwarnings('always', '', RuntimeWarning) + assert_(np.isnan(np.log2(-1.))) + assert_(np.isnan(np.log2(-np.inf))) + assert_equal(np.log2(0.), -np.inf) + assert_(w[0].category is RuntimeWarning) + assert_(w[1].category is RuntimeWarning) + assert_(w[2].category is RuntimeWarning) + + +class TestExp2: + def test_exp2_values(self): + x = [1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024] + y = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] + for dt in ['f', 'd', 'g']: + xf = np.array(x, dtype=dt) + yf = np.array(y, dtype=dt) + assert_almost_equal(np.exp2(yf), xf) + + +class TestLogAddExp2(_FilterInvalids): + # Need test for intermediate precisions + def test_logaddexp2_values(self): + x = [1, 2, 3, 4, 5] + y = [5, 4, 3, 2, 1] + z = [6, 6, 6, 6, 6] + for dt, dec_ in zip(['f', 'd', 'g'], [6, 15, 15]): + xf = np.log2(np.array(x, dtype=dt)) + yf = np.log2(np.array(y, dtype=dt)) + zf = np.log2(np.array(z, dtype=dt)) + assert_almost_equal(np.logaddexp2(xf, yf), zf, decimal=dec_) + + def test_logaddexp2_range(self): + x = [1000000, -1000000, 1000200, -1000200] + y = [1000200, -1000200, 1000000, -1000000] + z = [1000200, -1000000, 1000200, -1000000] + for dt in ['f', 'd', 'g']: + logxf = np.array(x, dtype=dt) + logyf = np.array(y, dtype=dt) + logzf = np.array(z, dtype=dt) + assert_almost_equal(np.logaddexp2(logxf, logyf), logzf) + + def test_inf(self): + inf = np.inf + x = [inf, -inf, inf, -inf, inf, 1, -inf, 1] + y = [inf, inf, -inf, -inf, 1, inf, 1, -inf] + z = [inf, inf, inf, -inf, inf, inf, 1, 1] + with np.errstate(invalid='raise'): + for dt in ['f', 'd', 'g']: + logxf = np.array(x, dtype=dt) + logyf = np.array(y, dtype=dt) + logzf = np.array(z, dtype=dt) + assert_equal(np.logaddexp2(logxf, logyf), logzf) + + def test_nan(self): + assert_(np.isnan(np.logaddexp2(np.nan, np.inf))) + assert_(np.isnan(np.logaddexp2(np.inf, np.nan))) + assert_(np.isnan(np.logaddexp2(np.nan, 0))) + assert_(np.isnan(np.logaddexp2(0, np.nan))) + assert_(np.isnan(np.logaddexp2(np.nan, np.nan))) + + def test_reduce(self): + assert_equal(np.logaddexp2.identity, -np.inf) + assert_equal(np.logaddexp2.reduce([]), -np.inf) + assert_equal(np.logaddexp2.reduce([-np.inf]), -np.inf) + assert_equal(np.logaddexp2.reduce([-np.inf, 0]), 0) + + +class TestLog: + def test_log_values(self): + x = [1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024] + y = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] + for dt in ['f', 'd', 'g']: + log2_ = 0.69314718055994530943 + xf = np.array(x, dtype=dt) + yf = np.array(y, dtype=dt)*log2_ + assert_almost_equal(np.log(xf), yf) + + # test aliasing(issue #17761) + x = np.array([2, 0.937500, 3, 0.947500, 1.054697]) + xf = np.log(x) + assert_almost_equal(np.log(x, out=x), xf) + + # test log() of max for dtype does not raise + for dt in ['f', 'd', 'g']: + try: + with np.errstate(all='raise'): + x = np.finfo(dt).max + np.log(x) + except FloatingPointError as exc: + if dt == 'g' and IS_MUSL: + # FloatingPointError is known to occur on longdouble + # for musllinux_x86_64 x is very large + pytest.skip( + "Overflow has occurred for" + " np.log(np.finfo(np.longdouble).max)" + ) + else: + raise exc + + def test_log_strides(self): + np.random.seed(42) + strides = np.array([-4,-3,-2,-1,1,2,3,4]) + sizes = np.arange(2,100) + for ii in sizes: + x_f64 = np.float64(np.random.uniform(low=0.01, high=100.0,size=ii)) + x_special = x_f64.copy() + x_special[3:-1:4] = 1.0 + y_true = np.log(x_f64) + y_special = np.log(x_special) + for jj in strides: + assert_array_almost_equal_nulp(np.log(x_f64[::jj]), y_true[::jj], nulp=2) + assert_array_almost_equal_nulp(np.log(x_special[::jj]), y_special[::jj], nulp=2) + +class TestExp: + def test_exp_values(self): + x = [1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024] + y = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] + for dt in ['f', 'd', 'g']: + log2_ = 0.69314718055994530943 + xf = np.array(x, dtype=dt) + yf = np.array(y, dtype=dt)*log2_ + assert_almost_equal(np.exp(yf), xf) + + def test_exp_strides(self): + np.random.seed(42) + strides = np.array([-4,-3,-2,-1,1,2,3,4]) + sizes = np.arange(2,100) + for ii in sizes: + x_f64 = np.float64(np.random.uniform(low=0.01, high=709.1,size=ii)) + y_true = np.exp(x_f64) + for jj in strides: + assert_array_almost_equal_nulp(np.exp(x_f64[::jj]), y_true[::jj], nulp=2) + +class TestSpecialFloats: + def test_exp_values(self): + with np.errstate(under='raise', over='raise'): + x = [np.nan, np.nan, np.inf, 0.] + y = [np.nan, -np.nan, np.inf, -np.inf] + for dt in ['e', 'f', 'd', 'g']: + xf = np.array(x, dtype=dt) + yf = np.array(y, dtype=dt) + assert_equal(np.exp(yf), xf) + + # See: https://github.com/numpy/numpy/issues/19192 + @pytest.mark.xfail( + _glibc_older_than("2.17"), + reason="Older glibc versions may not raise appropriate FP exceptions" + ) + def test_exp_exceptions(self): + with np.errstate(over='raise'): + assert_raises(FloatingPointError, np.exp, np.float16(11.0899)) + assert_raises(FloatingPointError, np.exp, np.float32(100.)) + assert_raises(FloatingPointError, np.exp, np.float32(1E19)) + assert_raises(FloatingPointError, np.exp, np.float64(800.)) + assert_raises(FloatingPointError, np.exp, np.float64(1E19)) + + with np.errstate(under='raise'): + assert_raises(FloatingPointError, np.exp, np.float16(-17.5)) + assert_raises(FloatingPointError, np.exp, np.float32(-1000.)) + assert_raises(FloatingPointError, np.exp, np.float32(-1E19)) + assert_raises(FloatingPointError, np.exp, np.float64(-1000.)) + assert_raises(FloatingPointError, np.exp, np.float64(-1E19)) + + @pytest.mark.skipif(IS_WASM, reason="fp errors don't work in wasm") + def test_log_values(self): + with np.errstate(all='ignore'): + x = [np.nan, np.nan, np.inf, np.nan, -np.inf, np.nan] + y = [np.nan, -np.nan, np.inf, -np.inf, 0.0, -1.0] + y1p = [np.nan, -np.nan, np.inf, -np.inf, -1.0, -2.0] + for dt in ['e', 'f', 'd', 'g']: + xf = np.array(x, dtype=dt) + yf = np.array(y, dtype=dt) + yf1p = np.array(y1p, dtype=dt) + assert_equal(np.log(yf), xf) + assert_equal(np.log2(yf), xf) + assert_equal(np.log10(yf), xf) + assert_equal(np.log1p(yf1p), xf) + + with np.errstate(divide='raise'): + for dt in ['e', 'f', 'd']: + assert_raises(FloatingPointError, np.log, + np.array(0.0, dtype=dt)) + assert_raises(FloatingPointError, np.log2, + np.array(0.0, dtype=dt)) + assert_raises(FloatingPointError, np.log10, + np.array(0.0, dtype=dt)) + assert_raises(FloatingPointError, np.log1p, + np.array(-1.0, dtype=dt)) + + with np.errstate(invalid='raise'): + for dt in ['e', 'f', 'd']: + assert_raises(FloatingPointError, np.log, + np.array(-np.inf, dtype=dt)) + assert_raises(FloatingPointError, np.log, + np.array(-1.0, dtype=dt)) + assert_raises(FloatingPointError, np.log2, + np.array(-np.inf, dtype=dt)) + assert_raises(FloatingPointError, np.log2, + np.array(-1.0, dtype=dt)) + assert_raises(FloatingPointError, np.log10, + np.array(-np.inf, dtype=dt)) + assert_raises(FloatingPointError, np.log10, + np.array(-1.0, dtype=dt)) + assert_raises(FloatingPointError, np.log1p, + np.array(-np.inf, dtype=dt)) + assert_raises(FloatingPointError, np.log1p, + np.array(-2.0, dtype=dt)) + + # See https://github.com/numpy/numpy/issues/18005 + with assert_no_warnings(): + a = np.array(1e9, dtype='float32') + np.log(a) + + @pytest.mark.skipif(IS_WASM, reason="fp errors don't work in wasm") + @pytest.mark.parametrize('dtype', ['e', 'f', 'd', 'g']) + def test_sincos_values(self, dtype): + with np.errstate(all='ignore'): + x = [np.nan, np.nan, np.nan, np.nan] + y = [np.nan, -np.nan, np.inf, -np.inf] + xf = np.array(x, dtype=dtype) + yf = np.array(y, dtype=dtype) + assert_equal(np.sin(yf), xf) + assert_equal(np.cos(yf), xf) + + @pytest.mark.skipif(IS_WASM, reason="fp errors don't work in wasm") + @pytest.mark.xfail( + sys.platform.startswith("darwin"), + reason="underflow is triggered for scalar 'sin'" + ) + def test_sincos_underflow(self): + with np.errstate(under='raise'): + underflow_trigger = np.array( + float.fromhex("0x1.f37f47a03f82ap-511"), + dtype=np.float64 + ) + np.sin(underflow_trigger) + np.cos(underflow_trigger) + + @pytest.mark.skipif(IS_WASM, reason="fp errors don't work in wasm") + @pytest.mark.parametrize('callable', [np.sin, np.cos]) + @pytest.mark.parametrize('dtype', ['e', 'f', 'd']) + @pytest.mark.parametrize('value', [np.inf, -np.inf]) + def test_sincos_errors(self, callable, dtype, value): + with np.errstate(invalid='raise'): + assert_raises(FloatingPointError, callable, + np.array([value], dtype=dtype)) + + @pytest.mark.parametrize('callable', [np.sin, np.cos]) + @pytest.mark.parametrize('dtype', ['f', 'd']) + @pytest.mark.parametrize('stride', [-1, 1, 2, 4, 5]) + def test_sincos_overlaps(self, callable, dtype, stride): + N = 100 + M = N // abs(stride) + rng = np.random.default_rng(42) + x = rng.standard_normal(N, dtype) + y = callable(x[::stride]) + callable(x[::stride], out=x[:M]) + assert_equal(x[:M], y) + + @pytest.mark.parametrize('dt', ['e', 'f', 'd', 'g']) + def test_sqrt_values(self, dt): + with np.errstate(all='ignore'): + x = [np.nan, np.nan, np.inf, np.nan, 0.] + y = [np.nan, -np.nan, np.inf, -np.inf, 0.] + xf = np.array(x, dtype=dt) + yf = np.array(y, dtype=dt) + assert_equal(np.sqrt(yf), xf) + + # with np.errstate(invalid='raise'): + # assert_raises( + # FloatingPointError, np.sqrt, np.array(-100., dtype=dt) + # ) + + def test_abs_values(self): + x = [np.nan, np.nan, np.inf, np.inf, 0., 0., 1.0, 1.0] + y = [np.nan, -np.nan, np.inf, -np.inf, 0., -0., -1.0, 1.0] + for dt in ['e', 'f', 'd', 'g']: + xf = np.array(x, dtype=dt) + yf = np.array(y, dtype=dt) + assert_equal(np.abs(yf), xf) + + @pytest.mark.skipif(IS_WASM, reason="fp errors don't work in wasm") + def test_square_values(self): + x = [np.nan, np.nan, np.inf, np.inf] + y = [np.nan, -np.nan, np.inf, -np.inf] + with np.errstate(all='ignore'): + for dt in ['e', 'f', 'd', 'g']: + xf = np.array(x, dtype=dt) + yf = np.array(y, dtype=dt) + assert_equal(np.square(yf), xf) + + with np.errstate(over='raise'): + assert_raises(FloatingPointError, np.square, + np.array(1E3, dtype='e')) + assert_raises(FloatingPointError, np.square, + np.array(1E32, dtype='f')) + assert_raises(FloatingPointError, np.square, + np.array(1E200, dtype='d')) + + @pytest.mark.skipif(IS_WASM, reason="fp errors don't work in wasm") + def test_reciprocal_values(self): + with np.errstate(all='ignore'): + x = [np.nan, np.nan, 0.0, -0.0, np.inf, -np.inf] + y = [np.nan, -np.nan, np.inf, -np.inf, 0., -0.] + for dt in ['e', 'f', 'd', 'g']: + xf = np.array(x, dtype=dt) + yf = np.array(y, dtype=dt) + assert_equal(np.reciprocal(yf), xf) + + with np.errstate(divide='raise'): + for dt in ['e', 'f', 'd', 'g']: + assert_raises(FloatingPointError, np.reciprocal, + np.array(-0.0, dtype=dt)) + + @pytest.mark.skipif(IS_WASM, reason="fp errors don't work in wasm") + def test_tan(self): + with np.errstate(all='ignore'): + in_ = [np.nan, -np.nan, 0.0, -0.0, np.inf, -np.inf] + out = [np.nan, np.nan, 0.0, -0.0, np.nan, np.nan] + for dt in ['e', 'f', 'd']: + in_arr = np.array(in_, dtype=dt) + out_arr = np.array(out, dtype=dt) + assert_equal(np.tan(in_arr), out_arr) + + with np.errstate(invalid='raise'): + for dt in ['e', 'f', 'd']: + assert_raises(FloatingPointError, np.tan, + np.array(np.inf, dtype=dt)) + assert_raises(FloatingPointError, np.tan, + np.array(-np.inf, dtype=dt)) + + @pytest.mark.skipif(IS_WASM, reason="fp errors don't work in wasm") + def test_arcsincos(self): + with np.errstate(all='ignore'): + in_ = [np.nan, -np.nan, np.inf, -np.inf] + out = [np.nan, np.nan, np.nan, np.nan] + for dt in ['e', 'f', 'd']: + in_arr = np.array(in_, dtype=dt) + out_arr = np.array(out, dtype=dt) + assert_equal(np.arcsin(in_arr), out_arr) + assert_equal(np.arccos(in_arr), out_arr) + + for callable in [np.arcsin, np.arccos]: + for value in [np.inf, -np.inf, 2.0, -2.0]: + for dt in ['e', 'f', 'd']: + with np.errstate(invalid='raise'): + assert_raises(FloatingPointError, callable, + np.array(value, dtype=dt)) + + def test_arctan(self): + with np.errstate(all='ignore'): + in_ = [np.nan, -np.nan] + out = [np.nan, np.nan] + for dt in ['e', 'f', 'd']: + in_arr = np.array(in_, dtype=dt) + out_arr = np.array(out, dtype=dt) + assert_equal(np.arctan(in_arr), out_arr) + + @pytest.mark.skipif(IS_WASM, reason="fp errors don't work in wasm") + def test_sinh(self): + in_ = [np.nan, -np.nan, np.inf, -np.inf] + out = [np.nan, np.nan, np.inf, -np.inf] + for dt in ['e', 'f', 'd']: + in_arr = np.array(in_, dtype=dt) + out_arr = np.array(out, dtype=dt) + assert_equal(np.sinh(in_arr), out_arr) + + with np.errstate(over='raise'): + assert_raises(FloatingPointError, np.sinh, + np.array(12.0, dtype='e')) + assert_raises(FloatingPointError, np.sinh, + np.array(120.0, dtype='f')) + assert_raises(FloatingPointError, np.sinh, + np.array(1200.0, dtype='d')) + + @pytest.mark.skipif(IS_WASM, reason="fp errors don't work in wasm") + @pytest.mark.skipif('bsd' in sys.platform, + reason="fallback implementation may not raise, see gh-2487") + def test_cosh(self): + in_ = [np.nan, -np.nan, np.inf, -np.inf] + out = [np.nan, np.nan, np.inf, np.inf] + for dt in ['e', 'f', 'd']: + in_arr = np.array(in_, dtype=dt) + out_arr = np.array(out, dtype=dt) + assert_equal(np.cosh(in_arr), out_arr) + + with np.errstate(over='raise'): + assert_raises(FloatingPointError, np.cosh, + np.array(12.0, dtype='e')) + assert_raises(FloatingPointError, np.cosh, + np.array(120.0, dtype='f')) + assert_raises(FloatingPointError, np.cosh, + np.array(1200.0, dtype='d')) + + def test_tanh(self): + in_ = [np.nan, -np.nan, np.inf, -np.inf] + out = [np.nan, np.nan, 1.0, -1.0] + for dt in ['e', 'f', 'd']: + in_arr = np.array(in_, dtype=dt) + out_arr = np.array(out, dtype=dt) + assert_equal(np.tanh(in_arr), out_arr) + + def test_arcsinh(self): + in_ = [np.nan, -np.nan, np.inf, -np.inf] + out = [np.nan, np.nan, np.inf, -np.inf] + for dt in ['e', 'f', 'd']: + in_arr = np.array(in_, dtype=dt) + out_arr = np.array(out, dtype=dt) + assert_equal(np.arcsinh(in_arr), out_arr) + + @pytest.mark.skipif(IS_WASM, reason="fp errors don't work in wasm") + def test_arccosh(self): + with np.errstate(all='ignore'): + in_ = [np.nan, -np.nan, np.inf, -np.inf, 1.0, 0.0] + out = [np.nan, np.nan, np.inf, np.nan, 0.0, np.nan] + for dt in ['e', 'f', 'd']: + in_arr = np.array(in_, dtype=dt) + out_arr = np.array(out, dtype=dt) + assert_equal(np.arccosh(in_arr), out_arr) + + for value in [0.0, -np.inf]: + with np.errstate(invalid='raise'): + for dt in ['e', 'f', 'd']: + assert_raises(FloatingPointError, np.arccosh, + np.array(value, dtype=dt)) + + @pytest.mark.skipif(IS_WASM, reason="fp errors don't work in wasm") + def test_arctanh(self): + with np.errstate(all='ignore'): + in_ = [np.nan, -np.nan, np.inf, -np.inf, 1.0, -1.0, 2.0] + out = [np.nan, np.nan, np.nan, np.nan, np.inf, -np.inf, np.nan] + for dt in ['e', 'f', 'd']: + in_arr = np.array(in_, dtype=dt) + out_arr = np.array(out, dtype=dt) + assert_equal(np.arctanh(in_arr), out_arr) + + for value in [1.01, np.inf, -np.inf, 1.0, -1.0]: + with np.errstate(invalid='raise', divide='raise'): + for dt in ['e', 'f', 'd']: + assert_raises(FloatingPointError, np.arctanh, + np.array(value, dtype=dt)) + + # Make sure glibc < 2.18 atanh is not used, issue 25087 + assert np.signbit(np.arctanh(-1j).real) + + # See: https://github.com/numpy/numpy/issues/20448 + @pytest.mark.xfail( + _glibc_older_than("2.17"), + reason="Older glibc versions may not raise appropriate FP exceptions" + ) + def test_exp2(self): + with np.errstate(all='ignore'): + in_ = [np.nan, -np.nan, np.inf, -np.inf] + out = [np.nan, np.nan, np.inf, 0.0] + for dt in ['e', 'f', 'd']: + in_arr = np.array(in_, dtype=dt) + out_arr = np.array(out, dtype=dt) + assert_equal(np.exp2(in_arr), out_arr) + + for value in [2000.0, -2000.0]: + with np.errstate(over='raise', under='raise'): + for dt in ['e', 'f', 'd']: + assert_raises(FloatingPointError, np.exp2, + np.array(value, dtype=dt)) + + @pytest.mark.skipif(IS_WASM, reason="fp errors don't work in wasm") + def test_expm1(self): + with np.errstate(all='ignore'): + in_ = [np.nan, -np.nan, np.inf, -np.inf] + out = [np.nan, np.nan, np.inf, -1.0] + for dt in ['e', 'f', 'd']: + in_arr = np.array(in_, dtype=dt) + out_arr = np.array(out, dtype=dt) + assert_equal(np.expm1(in_arr), out_arr) + + for value in [200.0, 2000.0]: + with np.errstate(over='raise'): + for dt in ['e', 'f']: + assert_raises(FloatingPointError, np.expm1, + np.array(value, dtype=dt)) + + # test to ensure no spurious FP exceptions are raised due to SIMD + INF_INVALID_ERR = [ + np.cos, np.sin, np.tan, np.arccos, np.arcsin, np.spacing, np.arctanh + ] + NEG_INVALID_ERR = [ + np.log, np.log2, np.log10, np.log1p, np.sqrt, np.arccosh, + np.arctanh + ] + ONE_INVALID_ERR = [ + np.arctanh, + ] + LTONE_INVALID_ERR = [ + np.arccosh, + ] + BYZERO_ERR = [ + np.log, np.log2, np.log10, np.reciprocal, np.arccosh + ] + + @pytest.mark.skipif(sys.platform == "win32" and sys.maxsize < 2**31 + 1, + reason='failures on 32-bit Python, see FIXME below') + @pytest.mark.parametrize("ufunc", UFUNCS_UNARY_FP) + @pytest.mark.parametrize("dtype", ('e', 'f', 'd')) + @pytest.mark.parametrize("data, escape", ( + ([0.03], LTONE_INVALID_ERR), + ([0.03]*32, LTONE_INVALID_ERR), + # neg + ([-1.0], NEG_INVALID_ERR), + ([-1.0]*32, NEG_INVALID_ERR), + # flat + ([1.0], ONE_INVALID_ERR), + ([1.0]*32, ONE_INVALID_ERR), + # zero + ([0.0], BYZERO_ERR), + ([0.0]*32, BYZERO_ERR), + ([-0.0], BYZERO_ERR), + ([-0.0]*32, BYZERO_ERR), + # nan + ([0.5, 0.5, 0.5, np.nan], LTONE_INVALID_ERR), + ([0.5, 0.5, 0.5, np.nan]*32, LTONE_INVALID_ERR), + ([np.nan, 1.0, 1.0, 1.0], ONE_INVALID_ERR), + ([np.nan, 1.0, 1.0, 1.0]*32, ONE_INVALID_ERR), + ([np.nan], []), + ([np.nan]*32, []), + # inf + ([0.5, 0.5, 0.5, np.inf], INF_INVALID_ERR + LTONE_INVALID_ERR), + ([0.5, 0.5, 0.5, np.inf]*32, INF_INVALID_ERR + LTONE_INVALID_ERR), + ([np.inf, 1.0, 1.0, 1.0], INF_INVALID_ERR), + ([np.inf, 1.0, 1.0, 1.0]*32, INF_INVALID_ERR), + ([np.inf], INF_INVALID_ERR), + ([np.inf]*32, INF_INVALID_ERR), + # ninf + ([0.5, 0.5, 0.5, -np.inf], + NEG_INVALID_ERR + INF_INVALID_ERR + LTONE_INVALID_ERR), + ([0.5, 0.5, 0.5, -np.inf]*32, + NEG_INVALID_ERR + INF_INVALID_ERR + LTONE_INVALID_ERR), + ([-np.inf, 1.0, 1.0, 1.0], NEG_INVALID_ERR + INF_INVALID_ERR), + ([-np.inf, 1.0, 1.0, 1.0]*32, NEG_INVALID_ERR + INF_INVALID_ERR), + ([-np.inf], NEG_INVALID_ERR + INF_INVALID_ERR), + ([-np.inf]*32, NEG_INVALID_ERR + INF_INVALID_ERR), + )) + def test_unary_spurious_fpexception(self, ufunc, dtype, data, escape): + if escape and ufunc in escape: + return + # FIXME: NAN raises FP invalid exception: + # - ceil/float16 on MSVC:32-bit + # - spacing/float16 on almost all platforms + # FIXME: skipped on MSVC:32-bit during switch to Meson, 10 cases fail + # when SIMD support not present / disabled + if ufunc in (np.spacing, np.ceil) and dtype == 'e': + return + array = np.array(data, dtype=dtype) + with assert_no_warnings(): + ufunc(array) + + @pytest.mark.parametrize("dtype", ('e', 'f', 'd')) + def test_divide_spurious_fpexception(self, dtype): + dt = np.dtype(dtype) + dt_info = np.finfo(dt) + subnorm = dt_info.smallest_subnormal + # Verify a bug fix caused due to filling the remaining lanes of the + # partially loaded dividend SIMD vector with ones, which leads to + # raising an overflow warning when the divisor is denormal. + # see https://github.com/numpy/numpy/issues/25097 + with assert_no_warnings(): + np.zeros(128 + 1, dtype=dt) / subnorm + +class TestFPClass: + @pytest.mark.parametrize("stride", [-5, -4, -3, -2, -1, 1, + 2, 4, 5, 6, 7, 8, 9, 10]) + def test_fpclass(self, stride): + arr_f64 = np.array([np.nan, -np.nan, np.inf, -np.inf, -1.0, 1.0, -0.0, 0.0, 2.2251e-308, -2.2251e-308], dtype='d') + arr_f32 = np.array([np.nan, -np.nan, np.inf, -np.inf, -1.0, 1.0, -0.0, 0.0, 1.4013e-045, -1.4013e-045], dtype='f') + nan = np.array([True, True, False, False, False, False, False, False, False, False]) + inf = np.array([False, False, True, True, False, False, False, False, False, False]) + sign = np.array([False, True, False, True, True, False, True, False, False, True]) + finite = np.array([False, False, False, False, True, True, True, True, True, True]) + assert_equal(np.isnan(arr_f32[::stride]), nan[::stride]) + assert_equal(np.isnan(arr_f64[::stride]), nan[::stride]) + assert_equal(np.isinf(arr_f32[::stride]), inf[::stride]) + assert_equal(np.isinf(arr_f64[::stride]), inf[::stride]) + assert_equal(np.signbit(arr_f32[::stride]), sign[::stride]) + assert_equal(np.signbit(arr_f64[::stride]), sign[::stride]) + assert_equal(np.isfinite(arr_f32[::stride]), finite[::stride]) + assert_equal(np.isfinite(arr_f64[::stride]), finite[::stride]) + + @pytest.mark.parametrize("dtype", ['d', 'f']) + def test_fp_noncontiguous(self, dtype): + data = np.array([np.nan, -np.nan, np.inf, -np.inf, -1.0, + 1.0, -0.0, 0.0, 2.2251e-308, + -2.2251e-308], dtype=dtype) + nan = np.array([True, True, False, False, False, False, + False, False, False, False]) + inf = np.array([False, False, True, True, False, False, + False, False, False, False]) + sign = np.array([False, True, False, True, True, False, + True, False, False, True]) + finite = np.array([False, False, False, False, True, True, + True, True, True, True]) + out = np.ndarray(data.shape, dtype='bool') + ncontig_in = data[1::3] + ncontig_out = out[1::3] + contig_in = np.array(ncontig_in) + assert_equal(ncontig_in.flags.c_contiguous, False) + assert_equal(ncontig_out.flags.c_contiguous, False) + assert_equal(contig_in.flags.c_contiguous, True) + # ncontig in, ncontig out + assert_equal(np.isnan(ncontig_in, out=ncontig_out), nan[1::3]) + assert_equal(np.isinf(ncontig_in, out=ncontig_out), inf[1::3]) + assert_equal(np.signbit(ncontig_in, out=ncontig_out), sign[1::3]) + assert_equal(np.isfinite(ncontig_in, out=ncontig_out), finite[1::3]) + # contig in, ncontig out + assert_equal(np.isnan(contig_in, out=ncontig_out), nan[1::3]) + assert_equal(np.isinf(contig_in, out=ncontig_out), inf[1::3]) + assert_equal(np.signbit(contig_in, out=ncontig_out), sign[1::3]) + assert_equal(np.isfinite(contig_in, out=ncontig_out), finite[1::3]) + # ncontig in, contig out + assert_equal(np.isnan(ncontig_in), nan[1::3]) + assert_equal(np.isinf(ncontig_in), inf[1::3]) + assert_equal(np.signbit(ncontig_in), sign[1::3]) + assert_equal(np.isfinite(ncontig_in), finite[1::3]) + # contig in, contig out, nd stride + data_split = np.array(np.array_split(data, 2)) + nan_split = np.array(np.array_split(nan, 2)) + inf_split = np.array(np.array_split(inf, 2)) + sign_split = np.array(np.array_split(sign, 2)) + finite_split = np.array(np.array_split(finite, 2)) + assert_equal(np.isnan(data_split), nan_split) + assert_equal(np.isinf(data_split), inf_split) + assert_equal(np.signbit(data_split), sign_split) + assert_equal(np.isfinite(data_split), finite_split) + +class TestLDExp: + @pytest.mark.parametrize("stride", [-4,-2,-1,1,2,4]) + @pytest.mark.parametrize("dtype", ['f', 'd']) + def test_ldexp(self, dtype, stride): + mant = np.array([0.125, 0.25, 0.5, 1., 1., 2., 4., 8.], dtype=dtype) + exp = np.array([3, 2, 1, 0, 0, -1, -2, -3], dtype='i') + out = np.zeros(8, dtype=dtype) + assert_equal(np.ldexp(mant[::stride], exp[::stride], out=out[::stride]), np.ones(8, dtype=dtype)[::stride]) + assert_equal(out[::stride], np.ones(8, dtype=dtype)[::stride]) + +class TestFRExp: + @pytest.mark.parametrize("stride", [-4,-2,-1,1,2,4]) + @pytest.mark.parametrize("dtype", ['f', 'd']) + @pytest.mark.xfail(IS_MUSL, reason="gh23048") + @pytest.mark.skipif(not sys.platform.startswith('linux'), + reason="np.frexp gives different answers for NAN/INF on windows and linux") + def test_frexp(self, dtype, stride): + arr = np.array([np.nan, np.nan, np.inf, -np.inf, 0.0, -0.0, 1.0, -1.0], dtype=dtype) + mant_true = np.array([np.nan, np.nan, np.inf, -np.inf, 0.0, -0.0, 0.5, -0.5], dtype=dtype) + exp_true = np.array([0, 0, 0, 0, 0, 0, 1, 1], dtype='i') + out_mant = np.ones(8, dtype=dtype) + out_exp = 2*np.ones(8, dtype='i') + mant, exp = np.frexp(arr[::stride], out=(out_mant[::stride], out_exp[::stride])) + assert_equal(mant_true[::stride], mant) + assert_equal(exp_true[::stride], exp) + assert_equal(out_mant[::stride], mant_true[::stride]) + assert_equal(out_exp[::stride], exp_true[::stride]) + +# func : [maxulperror, low, high] +avx_ufuncs = {'sqrt' :[1, 0., 100.], + 'absolute' :[0, -100., 100.], + 'reciprocal' :[1, 1., 100.], + 'square' :[1, -100., 100.], + 'rint' :[0, -100., 100.], + 'floor' :[0, -100., 100.], + 'ceil' :[0, -100., 100.], + 'trunc' :[0, -100., 100.]} + +class TestAVXUfuncs: + def test_avx_based_ufunc(self): + strides = np.array([-4,-3,-2,-1,1,2,3,4]) + np.random.seed(42) + for func, prop in avx_ufuncs.items(): + maxulperr = prop[0] + minval = prop[1] + maxval = prop[2] + # various array sizes to ensure masking in AVX is tested + for size in range(1,32): + myfunc = getattr(np, func) + x_f32 = np.float32(np.random.uniform(low=minval, high=maxval, + size=size)) + x_f64 = np.float64(x_f32) + x_f128 = np.longdouble(x_f32) + y_true128 = myfunc(x_f128) + if maxulperr == 0: + assert_equal(myfunc(x_f32), np.float32(y_true128)) + assert_equal(myfunc(x_f64), np.float64(y_true128)) + else: + assert_array_max_ulp(myfunc(x_f32), np.float32(y_true128), + maxulp=maxulperr) + assert_array_max_ulp(myfunc(x_f64), np.float64(y_true128), + maxulp=maxulperr) + # various strides to test gather instruction + if size > 1: + y_true32 = myfunc(x_f32) + y_true64 = myfunc(x_f64) + for jj in strides: + assert_equal(myfunc(x_f64[::jj]), y_true64[::jj]) + assert_equal(myfunc(x_f32[::jj]), y_true32[::jj]) + +class TestAVXFloat32Transcendental: + def test_exp_float32(self): + np.random.seed(42) + x_f32 = np.float32(np.random.uniform(low=0.0,high=88.1,size=1000000)) + x_f64 = np.float64(x_f32) + assert_array_max_ulp(np.exp(x_f32), np.float32(np.exp(x_f64)), maxulp=3) + + def test_log_float32(self): + np.random.seed(42) + x_f32 = np.float32(np.random.uniform(low=0.0,high=1000,size=1000000)) + x_f64 = np.float64(x_f32) + assert_array_max_ulp(np.log(x_f32), np.float32(np.log(x_f64)), maxulp=4) + + def test_sincos_float32(self): + np.random.seed(42) + N = 1000000 + M = np.int_(N/20) + index = np.random.randint(low=0, high=N, size=M) + x_f32 = np.float32(np.random.uniform(low=-100.,high=100.,size=N)) + if not _glibc_older_than("2.17"): + # test coverage for elements > 117435.992f for which glibc is used + # this is known to be problematic on old glibc, so skip it there + x_f32[index] = np.float32(10E+10*np.random.rand(M)) + x_f64 = np.float64(x_f32) + assert_array_max_ulp(np.sin(x_f32), np.float32(np.sin(x_f64)), maxulp=2) + assert_array_max_ulp(np.cos(x_f32), np.float32(np.cos(x_f64)), maxulp=2) + # test aliasing(issue #17761) + tx_f32 = x_f32.copy() + assert_array_max_ulp(np.sin(x_f32, out=x_f32), np.float32(np.sin(x_f64)), maxulp=2) + assert_array_max_ulp(np.cos(tx_f32, out=tx_f32), np.float32(np.cos(x_f64)), maxulp=2) + + def test_strided_float32(self): + np.random.seed(42) + strides = np.array([-4,-3,-2,-1,1,2,3,4]) + sizes = np.arange(2,100) + for ii in sizes: + x_f32 = np.float32(np.random.uniform(low=0.01,high=88.1,size=ii)) + x_f32_large = x_f32.copy() + x_f32_large[3:-1:4] = 120000.0 + exp_true = np.exp(x_f32) + log_true = np.log(x_f32) + sin_true = np.sin(x_f32_large) + cos_true = np.cos(x_f32_large) + for jj in strides: + assert_array_almost_equal_nulp(np.exp(x_f32[::jj]), exp_true[::jj], nulp=2) + assert_array_almost_equal_nulp(np.log(x_f32[::jj]), log_true[::jj], nulp=2) + assert_array_almost_equal_nulp(np.sin(x_f32_large[::jj]), sin_true[::jj], nulp=2) + assert_array_almost_equal_nulp(np.cos(x_f32_large[::jj]), cos_true[::jj], nulp=2) + +class TestLogAddExp(_FilterInvalids): + def test_logaddexp_values(self): + x = [1, 2, 3, 4, 5] + y = [5, 4, 3, 2, 1] + z = [6, 6, 6, 6, 6] + for dt, dec_ in zip(['f', 'd', 'g'], [6, 15, 15]): + xf = np.log(np.array(x, dtype=dt)) + yf = np.log(np.array(y, dtype=dt)) + zf = np.log(np.array(z, dtype=dt)) + assert_almost_equal(np.logaddexp(xf, yf), zf, decimal=dec_) + + def test_logaddexp_range(self): + x = [1000000, -1000000, 1000200, -1000200] + y = [1000200, -1000200, 1000000, -1000000] + z = [1000200, -1000000, 1000200, -1000000] + for dt in ['f', 'd', 'g']: + logxf = np.array(x, dtype=dt) + logyf = np.array(y, dtype=dt) + logzf = np.array(z, dtype=dt) + assert_almost_equal(np.logaddexp(logxf, logyf), logzf) + + def test_inf(self): + inf = np.inf + x = [inf, -inf, inf, -inf, inf, 1, -inf, 1] + y = [inf, inf, -inf, -inf, 1, inf, 1, -inf] + z = [inf, inf, inf, -inf, inf, inf, 1, 1] + with np.errstate(invalid='raise'): + for dt in ['f', 'd', 'g']: + logxf = np.array(x, dtype=dt) + logyf = np.array(y, dtype=dt) + logzf = np.array(z, dtype=dt) + assert_equal(np.logaddexp(logxf, logyf), logzf) + + def test_nan(self): + assert_(np.isnan(np.logaddexp(np.nan, np.inf))) + assert_(np.isnan(np.logaddexp(np.inf, np.nan))) + assert_(np.isnan(np.logaddexp(np.nan, 0))) + assert_(np.isnan(np.logaddexp(0, np.nan))) + assert_(np.isnan(np.logaddexp(np.nan, np.nan))) + + def test_reduce(self): + assert_equal(np.logaddexp.identity, -np.inf) + assert_equal(np.logaddexp.reduce([]), -np.inf) + + +class TestLog1p: + def test_log1p(self): + assert_almost_equal(ncu.log1p(0.2), ncu.log(1.2)) + assert_almost_equal(ncu.log1p(1e-6), ncu.log(1+1e-6)) + + def test_special(self): + with np.errstate(invalid="ignore", divide="ignore"): + assert_equal(ncu.log1p(np.nan), np.nan) + assert_equal(ncu.log1p(np.inf), np.inf) + assert_equal(ncu.log1p(-1.), -np.inf) + assert_equal(ncu.log1p(-2.), np.nan) + assert_equal(ncu.log1p(-np.inf), np.nan) + + +class TestExpm1: + def test_expm1(self): + assert_almost_equal(ncu.expm1(0.2), ncu.exp(0.2)-1) + assert_almost_equal(ncu.expm1(1e-6), ncu.exp(1e-6)-1) + + def test_special(self): + assert_equal(ncu.expm1(np.inf), np.inf) + assert_equal(ncu.expm1(0.), 0.) + assert_equal(ncu.expm1(-0.), -0.) + assert_equal(ncu.expm1(np.inf), np.inf) + assert_equal(ncu.expm1(-np.inf), -1.) + + def test_complex(self): + x = np.asarray(1e-12) + assert_allclose(x, ncu.expm1(x)) + x = x.astype(np.complex128) + assert_allclose(x, ncu.expm1(x)) + + +class TestHypot: + def test_simple(self): + assert_almost_equal(ncu.hypot(1, 1), ncu.sqrt(2)) + assert_almost_equal(ncu.hypot(0, 0), 0) + + def test_reduce(self): + assert_almost_equal(ncu.hypot.reduce([3.0, 4.0]), 5.0) + assert_almost_equal(ncu.hypot.reduce([3.0, 4.0, 0]), 5.0) + assert_almost_equal(ncu.hypot.reduce([9.0, 12.0, 20.0]), 25.0) + assert_equal(ncu.hypot.reduce([]), 0.0) + + +def assert_hypot_isnan(x, y): + with np.errstate(invalid='ignore'): + assert_(np.isnan(ncu.hypot(x, y)), + "hypot(%s, %s) is %s, not nan" % (x, y, ncu.hypot(x, y))) + + +def assert_hypot_isinf(x, y): + with np.errstate(invalid='ignore'): + assert_(np.isinf(ncu.hypot(x, y)), + "hypot(%s, %s) is %s, not inf" % (x, y, ncu.hypot(x, y))) + + +class TestHypotSpecialValues: + def test_nan_outputs(self): + assert_hypot_isnan(np.nan, np.nan) + assert_hypot_isnan(np.nan, 1) + + def test_nan_outputs2(self): + assert_hypot_isinf(np.nan, np.inf) + assert_hypot_isinf(np.inf, np.nan) + assert_hypot_isinf(np.inf, 0) + assert_hypot_isinf(0, np.inf) + assert_hypot_isinf(np.inf, np.inf) + assert_hypot_isinf(np.inf, 23.0) + + def test_no_fpe(self): + assert_no_warnings(ncu.hypot, np.inf, 0) + + +def assert_arctan2_isnan(x, y): + assert_(np.isnan(ncu.arctan2(x, y)), "arctan(%s, %s) is %s, not nan" % (x, y, ncu.arctan2(x, y))) + + +def assert_arctan2_ispinf(x, y): + assert_((np.isinf(ncu.arctan2(x, y)) and ncu.arctan2(x, y) > 0), "arctan(%s, %s) is %s, not +inf" % (x, y, ncu.arctan2(x, y))) + + +def assert_arctan2_isninf(x, y): + assert_((np.isinf(ncu.arctan2(x, y)) and ncu.arctan2(x, y) < 0), "arctan(%s, %s) is %s, not -inf" % (x, y, ncu.arctan2(x, y))) + + +def assert_arctan2_ispzero(x, y): + assert_((ncu.arctan2(x, y) == 0 and not np.signbit(ncu.arctan2(x, y))), "arctan(%s, %s) is %s, not +0" % (x, y, ncu.arctan2(x, y))) + + +def assert_arctan2_isnzero(x, y): + assert_((ncu.arctan2(x, y) == 0 and np.signbit(ncu.arctan2(x, y))), "arctan(%s, %s) is %s, not -0" % (x, y, ncu.arctan2(x, y))) + + +class TestArctan2SpecialValues: + def test_one_one(self): + # atan2(1, 1) returns pi/4. + assert_almost_equal(ncu.arctan2(1, 1), 0.25 * np.pi) + assert_almost_equal(ncu.arctan2(-1, 1), -0.25 * np.pi) + assert_almost_equal(ncu.arctan2(1, -1), 0.75 * np.pi) + + def test_zero_nzero(self): + # atan2(+-0, -0) returns +-pi. + assert_almost_equal(ncu.arctan2(np.PZERO, np.NZERO), np.pi) + assert_almost_equal(ncu.arctan2(np.NZERO, np.NZERO), -np.pi) + + def test_zero_pzero(self): + # atan2(+-0, +0) returns +-0. + assert_arctan2_ispzero(np.PZERO, np.PZERO) + assert_arctan2_isnzero(np.NZERO, np.PZERO) + + def test_zero_negative(self): + # atan2(+-0, x) returns +-pi for x < 0. + assert_almost_equal(ncu.arctan2(np.PZERO, -1), np.pi) + assert_almost_equal(ncu.arctan2(np.NZERO, -1), -np.pi) + + def test_zero_positive(self): + # atan2(+-0, x) returns +-0 for x > 0. + assert_arctan2_ispzero(np.PZERO, 1) + assert_arctan2_isnzero(np.NZERO, 1) + + def test_positive_zero(self): + # atan2(y, +-0) returns +pi/2 for y > 0. + assert_almost_equal(ncu.arctan2(1, np.PZERO), 0.5 * np.pi) + assert_almost_equal(ncu.arctan2(1, np.NZERO), 0.5 * np.pi) + + def test_negative_zero(self): + # atan2(y, +-0) returns -pi/2 for y < 0. + assert_almost_equal(ncu.arctan2(-1, np.PZERO), -0.5 * np.pi) + assert_almost_equal(ncu.arctan2(-1, np.NZERO), -0.5 * np.pi) + + def test_any_ninf(self): + # atan2(+-y, -infinity) returns +-pi for finite y > 0. + assert_almost_equal(ncu.arctan2(1, np.NINF), np.pi) + assert_almost_equal(ncu.arctan2(-1, np.NINF), -np.pi) + + def test_any_pinf(self): + # atan2(+-y, +infinity) returns +-0 for finite y > 0. + assert_arctan2_ispzero(1, np.inf) + assert_arctan2_isnzero(-1, np.inf) + + def test_inf_any(self): + # atan2(+-infinity, x) returns +-pi/2 for finite x. + assert_almost_equal(ncu.arctan2( np.inf, 1), 0.5 * np.pi) + assert_almost_equal(ncu.arctan2(-np.inf, 1), -0.5 * np.pi) + + def test_inf_ninf(self): + # atan2(+-infinity, -infinity) returns +-3*pi/4. + assert_almost_equal(ncu.arctan2( np.inf, -np.inf), 0.75 * np.pi) + assert_almost_equal(ncu.arctan2(-np.inf, -np.inf), -0.75 * np.pi) + + def test_inf_pinf(self): + # atan2(+-infinity, +infinity) returns +-pi/4. + assert_almost_equal(ncu.arctan2( np.inf, np.inf), 0.25 * np.pi) + assert_almost_equal(ncu.arctan2(-np.inf, np.inf), -0.25 * np.pi) + + def test_nan_any(self): + # atan2(nan, x) returns nan for any x, including inf + assert_arctan2_isnan(np.nan, np.inf) + assert_arctan2_isnan(np.inf, np.nan) + assert_arctan2_isnan(np.nan, np.nan) + + +class TestLdexp: + def _check_ldexp(self, tp): + assert_almost_equal(ncu.ldexp(np.array(2., np.float32), + np.array(3, tp)), 16.) + assert_almost_equal(ncu.ldexp(np.array(2., np.float64), + np.array(3, tp)), 16.) + assert_almost_equal(ncu.ldexp(np.array(2., np.longdouble), + np.array(3, tp)), 16.) + + def test_ldexp(self): + # The default Python int type should work + assert_almost_equal(ncu.ldexp(2., 3), 16.) + # The following int types should all be accepted + self._check_ldexp(np.int8) + self._check_ldexp(np.int16) + self._check_ldexp(np.int32) + self._check_ldexp('i') + self._check_ldexp('l') + + def test_ldexp_overflow(self): + # silence warning emitted on overflow + with np.errstate(over="ignore"): + imax = np.iinfo(np.dtype('l')).max + imin = np.iinfo(np.dtype('l')).min + assert_equal(ncu.ldexp(2., imax), np.inf) + assert_equal(ncu.ldexp(2., imin), 0) + + +class TestMaximum(_FilterInvalids): + def test_reduce(self): + dflt = np.typecodes['AllFloat'] + dint = np.typecodes['AllInteger'] + seq1 = np.arange(11) + seq2 = seq1[::-1] + func = np.maximum.reduce + for dt in dint: + tmp1 = seq1.astype(dt) + tmp2 = seq2.astype(dt) + assert_equal(func(tmp1), 10) + assert_equal(func(tmp2), 10) + for dt in dflt: + tmp1 = seq1.astype(dt) + tmp2 = seq2.astype(dt) + assert_equal(func(tmp1), 10) + assert_equal(func(tmp2), 10) + tmp1[::2] = np.nan + tmp2[::2] = np.nan + assert_equal(func(tmp1), np.nan) + assert_equal(func(tmp2), np.nan) + + def test_reduce_complex(self): + assert_equal(np.maximum.reduce([1, 2j]), 1) + assert_equal(np.maximum.reduce([1+3j, 2j]), 1+3j) + + def test_float_nans(self): + nan = np.nan + arg1 = np.array([0, nan, nan]) + arg2 = np.array([nan, 0, nan]) + out = np.array([nan, nan, nan]) + assert_equal(np.maximum(arg1, arg2), out) + + def test_object_nans(self): + # Multiple checks to give this a chance to + # fail if cmp is used instead of rich compare. + # Failure cannot be guaranteed. + for i in range(1): + x = np.array(float('nan'), object) + y = 1.0 + z = np.array(float('nan'), object) + assert_(np.maximum(x, y) == 1.0) + assert_(np.maximum(z, y) == 1.0) + + def test_complex_nans(self): + nan = np.nan + for cnan in [complex(nan, 0), complex(0, nan), complex(nan, nan)]: + arg1 = np.array([0, cnan, cnan], dtype=complex) + arg2 = np.array([cnan, 0, cnan], dtype=complex) + out = np.array([nan, nan, nan], dtype=complex) + assert_equal(np.maximum(arg1, arg2), out) + + def test_object_array(self): + arg1 = np.arange(5, dtype=object) + arg2 = arg1 + 1 + assert_equal(np.maximum(arg1, arg2), arg2) + + def test_strided_array(self): + arr1 = np.array([-4.0, 1.0, 10.0, 0.0, np.nan, -np.nan, np.inf, -np.inf]) + arr2 = np.array([-2.0,-1.0, np.nan, 1.0, 0.0, np.nan, 1.0, -3.0]) + maxtrue = np.array([-2.0, 1.0, np.nan, 1.0, np.nan, np.nan, np.inf, -3.0]) + out = np.ones(8) + out_maxtrue = np.array([-2.0, 1.0, 1.0, 10.0, 1.0, 1.0, np.nan, 1.0]) + assert_equal(np.maximum(arr1,arr2), maxtrue) + assert_equal(np.maximum(arr1[::2],arr2[::2]), maxtrue[::2]) + assert_equal(np.maximum(arr1[:4:], arr2[::2]), np.array([-2.0, np.nan, 10.0, 1.0])) + assert_equal(np.maximum(arr1[::3], arr2[:3:]), np.array([-2.0, 0.0, np.nan])) + assert_equal(np.maximum(arr1[:6:2], arr2[::3], out=out[::3]), np.array([-2.0, 10., np.nan])) + assert_equal(out, out_maxtrue) + + def test_precision(self): + dtypes = [np.float16, np.float32, np.float64, np.longdouble] + + for dt in dtypes: + dtmin = np.finfo(dt).min + dtmax = np.finfo(dt).max + d1 = dt(0.1) + d1_next = np.nextafter(d1, np.inf) + + test_cases = [ + # v1 v2 expected + (dtmin, -np.inf, dtmin), + (dtmax, -np.inf, dtmax), + (d1, d1_next, d1_next), + (dtmax, np.nan, np.nan), + ] + + for v1, v2, expected in test_cases: + assert_equal(np.maximum([v1], [v2]), [expected]) + assert_equal(np.maximum.reduce([v1, v2]), expected) + + +class TestMinimum(_FilterInvalids): + def test_reduce(self): + dflt = np.typecodes['AllFloat'] + dint = np.typecodes['AllInteger'] + seq1 = np.arange(11) + seq2 = seq1[::-1] + func = np.minimum.reduce + for dt in dint: + tmp1 = seq1.astype(dt) + tmp2 = seq2.astype(dt) + assert_equal(func(tmp1), 0) + assert_equal(func(tmp2), 0) + for dt in dflt: + tmp1 = seq1.astype(dt) + tmp2 = seq2.astype(dt) + assert_equal(func(tmp1), 0) + assert_equal(func(tmp2), 0) + tmp1[::2] = np.nan + tmp2[::2] = np.nan + assert_equal(func(tmp1), np.nan) + assert_equal(func(tmp2), np.nan) + + def test_reduce_complex(self): + assert_equal(np.minimum.reduce([1, 2j]), 2j) + assert_equal(np.minimum.reduce([1+3j, 2j]), 2j) + + def test_float_nans(self): + nan = np.nan + arg1 = np.array([0, nan, nan]) + arg2 = np.array([nan, 0, nan]) + out = np.array([nan, nan, nan]) + assert_equal(np.minimum(arg1, arg2), out) + + def test_object_nans(self): + # Multiple checks to give this a chance to + # fail if cmp is used instead of rich compare. + # Failure cannot be guaranteed. + for i in range(1): + x = np.array(float('nan'), object) + y = 1.0 + z = np.array(float('nan'), object) + assert_(np.minimum(x, y) == 1.0) + assert_(np.minimum(z, y) == 1.0) + + def test_complex_nans(self): + nan = np.nan + for cnan in [complex(nan, 0), complex(0, nan), complex(nan, nan)]: + arg1 = np.array([0, cnan, cnan], dtype=complex) + arg2 = np.array([cnan, 0, cnan], dtype=complex) + out = np.array([nan, nan, nan], dtype=complex) + assert_equal(np.minimum(arg1, arg2), out) + + def test_object_array(self): + arg1 = np.arange(5, dtype=object) + arg2 = arg1 + 1 + assert_equal(np.minimum(arg1, arg2), arg1) + + def test_strided_array(self): + arr1 = np.array([-4.0, 1.0, 10.0, 0.0, np.nan, -np.nan, np.inf, -np.inf]) + arr2 = np.array([-2.0,-1.0, np.nan, 1.0, 0.0, np.nan, 1.0, -3.0]) + mintrue = np.array([-4.0, -1.0, np.nan, 0.0, np.nan, np.nan, 1.0, -np.inf]) + out = np.ones(8) + out_mintrue = np.array([-4.0, 1.0, 1.0, 1.0, 1.0, 1.0, np.nan, 1.0]) + assert_equal(np.minimum(arr1,arr2), mintrue) + assert_equal(np.minimum(arr1[::2],arr2[::2]), mintrue[::2]) + assert_equal(np.minimum(arr1[:4:], arr2[::2]), np.array([-4.0, np.nan, 0.0, 0.0])) + assert_equal(np.minimum(arr1[::3], arr2[:3:]), np.array([-4.0, -1.0, np.nan])) + assert_equal(np.minimum(arr1[:6:2], arr2[::3], out=out[::3]), np.array([-4.0, 1.0, np.nan])) + assert_equal(out, out_mintrue) + + def test_precision(self): + dtypes = [np.float16, np.float32, np.float64, np.longdouble] + + for dt in dtypes: + dtmin = np.finfo(dt).min + dtmax = np.finfo(dt).max + d1 = dt(0.1) + d1_next = np.nextafter(d1, np.inf) + + test_cases = [ + # v1 v2 expected + (dtmin, np.inf, dtmin), + (dtmax, np.inf, dtmax), + (d1, d1_next, d1), + (dtmin, np.nan, np.nan), + ] + + for v1, v2, expected in test_cases: + assert_equal(np.minimum([v1], [v2]), [expected]) + assert_equal(np.minimum.reduce([v1, v2]), expected) + + +class TestFmax(_FilterInvalids): + def test_reduce(self): + dflt = np.typecodes['AllFloat'] + dint = np.typecodes['AllInteger'] + seq1 = np.arange(11) + seq2 = seq1[::-1] + func = np.fmax.reduce + for dt in dint: + tmp1 = seq1.astype(dt) + tmp2 = seq2.astype(dt) + assert_equal(func(tmp1), 10) + assert_equal(func(tmp2), 10) + for dt in dflt: + tmp1 = seq1.astype(dt) + tmp2 = seq2.astype(dt) + assert_equal(func(tmp1), 10) + assert_equal(func(tmp2), 10) + tmp1[::2] = np.nan + tmp2[::2] = np.nan + assert_equal(func(tmp1), 9) + assert_equal(func(tmp2), 9) + + def test_reduce_complex(self): + assert_equal(np.fmax.reduce([1, 2j]), 1) + assert_equal(np.fmax.reduce([1+3j, 2j]), 1+3j) + + def test_float_nans(self): + nan = np.nan + arg1 = np.array([0, nan, nan]) + arg2 = np.array([nan, 0, nan]) + out = np.array([0, 0, nan]) + assert_equal(np.fmax(arg1, arg2), out) + + def test_complex_nans(self): + nan = np.nan + for cnan in [complex(nan, 0), complex(0, nan), complex(nan, nan)]: + arg1 = np.array([0, cnan, cnan], dtype=complex) + arg2 = np.array([cnan, 0, cnan], dtype=complex) + out = np.array([0, 0, nan], dtype=complex) + assert_equal(np.fmax(arg1, arg2), out) + + def test_precision(self): + dtypes = [np.float16, np.float32, np.float64, np.longdouble] + + for dt in dtypes: + dtmin = np.finfo(dt).min + dtmax = np.finfo(dt).max + d1 = dt(0.1) + d1_next = np.nextafter(d1, np.inf) + + test_cases = [ + # v1 v2 expected + (dtmin, -np.inf, dtmin), + (dtmax, -np.inf, dtmax), + (d1, d1_next, d1_next), + (dtmax, np.nan, dtmax), + ] + + for v1, v2, expected in test_cases: + assert_equal(np.fmax([v1], [v2]), [expected]) + assert_equal(np.fmax.reduce([v1, v2]), expected) + + +class TestFmin(_FilterInvalids): + def test_reduce(self): + dflt = np.typecodes['AllFloat'] + dint = np.typecodes['AllInteger'] + seq1 = np.arange(11) + seq2 = seq1[::-1] + func = np.fmin.reduce + for dt in dint: + tmp1 = seq1.astype(dt) + tmp2 = seq2.astype(dt) + assert_equal(func(tmp1), 0) + assert_equal(func(tmp2), 0) + for dt in dflt: + tmp1 = seq1.astype(dt) + tmp2 = seq2.astype(dt) + assert_equal(func(tmp1), 0) + assert_equal(func(tmp2), 0) + tmp1[::2] = np.nan + tmp2[::2] = np.nan + assert_equal(func(tmp1), 1) + assert_equal(func(tmp2), 1) + + def test_reduce_complex(self): + assert_equal(np.fmin.reduce([1, 2j]), 2j) + assert_equal(np.fmin.reduce([1+3j, 2j]), 2j) + + def test_float_nans(self): + nan = np.nan + arg1 = np.array([0, nan, nan]) + arg2 = np.array([nan, 0, nan]) + out = np.array([0, 0, nan]) + assert_equal(np.fmin(arg1, arg2), out) + + def test_complex_nans(self): + nan = np.nan + for cnan in [complex(nan, 0), complex(0, nan), complex(nan, nan)]: + arg1 = np.array([0, cnan, cnan], dtype=complex) + arg2 = np.array([cnan, 0, cnan], dtype=complex) + out = np.array([0, 0, nan], dtype=complex) + assert_equal(np.fmin(arg1, arg2), out) + + def test_precision(self): + dtypes = [np.float16, np.float32, np.float64, np.longdouble] + + for dt in dtypes: + dtmin = np.finfo(dt).min + dtmax = np.finfo(dt).max + d1 = dt(0.1) + d1_next = np.nextafter(d1, np.inf) + + test_cases = [ + # v1 v2 expected + (dtmin, np.inf, dtmin), + (dtmax, np.inf, dtmax), + (d1, d1_next, d1), + (dtmin, np.nan, dtmin), + ] + + for v1, v2, expected in test_cases: + assert_equal(np.fmin([v1], [v2]), [expected]) + assert_equal(np.fmin.reduce([v1, v2]), expected) + + +class TestBool: + def test_exceptions(self): + a = np.ones(1, dtype=np.bool_) + assert_raises(TypeError, np.negative, a) + assert_raises(TypeError, np.positive, a) + assert_raises(TypeError, np.subtract, a, a) + + def test_truth_table_logical(self): + # 2, 3 and 4 serves as true values + input1 = [0, 0, 3, 2] + input2 = [0, 4, 0, 2] + + typecodes = (np.typecodes['AllFloat'] + + np.typecodes['AllInteger'] + + '?') # boolean + for dtype in map(np.dtype, typecodes): + arg1 = np.asarray(input1, dtype=dtype) + arg2 = np.asarray(input2, dtype=dtype) + + # OR + out = [False, True, True, True] + for func in (np.logical_or, np.maximum): + assert_equal(func(arg1, arg2).astype(bool), out) + # AND + out = [False, False, False, True] + for func in (np.logical_and, np.minimum): + assert_equal(func(arg1, arg2).astype(bool), out) + # XOR + out = [False, True, True, False] + for func in (np.logical_xor, np.not_equal): + assert_equal(func(arg1, arg2).astype(bool), out) + + def test_truth_table_bitwise(self): + arg1 = [False, False, True, True] + arg2 = [False, True, False, True] + + out = [False, True, True, True] + assert_equal(np.bitwise_or(arg1, arg2), out) + + out = [False, False, False, True] + assert_equal(np.bitwise_and(arg1, arg2), out) + + out = [False, True, True, False] + assert_equal(np.bitwise_xor(arg1, arg2), out) + + def test_reduce(self): + none = np.array([0, 0, 0, 0], bool) + some = np.array([1, 0, 1, 1], bool) + every = np.array([1, 1, 1, 1], bool) + empty = np.array([], bool) + + arrs = [none, some, every, empty] + + for arr in arrs: + assert_equal(np.logical_and.reduce(arr), all(arr)) + + for arr in arrs: + assert_equal(np.logical_or.reduce(arr), any(arr)) + + for arr in arrs: + assert_equal(np.logical_xor.reduce(arr), arr.sum() % 2 == 1) + + +class TestBitwiseUFuncs: + + bitwise_types = [np.dtype(c) for c in '?' + 'bBhHiIlLqQ' + 'O'] + + def test_values(self): + for dt in self.bitwise_types: + zeros = np.array([0], dtype=dt) + ones = np.array([-1]).astype(dt) + msg = "dt = '%s'" % dt.char + + assert_equal(np.bitwise_not(zeros), ones, err_msg=msg) + assert_equal(np.bitwise_not(ones), zeros, err_msg=msg) + + assert_equal(np.bitwise_or(zeros, zeros), zeros, err_msg=msg) + assert_equal(np.bitwise_or(zeros, ones), ones, err_msg=msg) + assert_equal(np.bitwise_or(ones, zeros), ones, err_msg=msg) + assert_equal(np.bitwise_or(ones, ones), ones, err_msg=msg) + + assert_equal(np.bitwise_xor(zeros, zeros), zeros, err_msg=msg) + assert_equal(np.bitwise_xor(zeros, ones), ones, err_msg=msg) + assert_equal(np.bitwise_xor(ones, zeros), ones, err_msg=msg) + assert_equal(np.bitwise_xor(ones, ones), zeros, err_msg=msg) + + assert_equal(np.bitwise_and(zeros, zeros), zeros, err_msg=msg) + assert_equal(np.bitwise_and(zeros, ones), zeros, err_msg=msg) + assert_equal(np.bitwise_and(ones, zeros), zeros, err_msg=msg) + assert_equal(np.bitwise_and(ones, ones), ones, err_msg=msg) + + def test_types(self): + for dt in self.bitwise_types: + zeros = np.array([0], dtype=dt) + ones = np.array([-1]).astype(dt) + msg = "dt = '%s'" % dt.char + + assert_(np.bitwise_not(zeros).dtype == dt, msg) + assert_(np.bitwise_or(zeros, zeros).dtype == dt, msg) + assert_(np.bitwise_xor(zeros, zeros).dtype == dt, msg) + assert_(np.bitwise_and(zeros, zeros).dtype == dt, msg) + + def test_identity(self): + assert_(np.bitwise_or.identity == 0, 'bitwise_or') + assert_(np.bitwise_xor.identity == 0, 'bitwise_xor') + assert_(np.bitwise_and.identity == -1, 'bitwise_and') + + def test_reduction(self): + binary_funcs = (np.bitwise_or, np.bitwise_xor, np.bitwise_and) + + for dt in self.bitwise_types: + zeros = np.array([0], dtype=dt) + ones = np.array([-1]).astype(dt) + for f in binary_funcs: + msg = "dt: '%s', f: '%s'" % (dt, f) + assert_equal(f.reduce(zeros), zeros, err_msg=msg) + assert_equal(f.reduce(ones), ones, err_msg=msg) + + # Test empty reduction, no object dtype + for dt in self.bitwise_types[:-1]: + # No object array types + empty = np.array([], dtype=dt) + for f in binary_funcs: + msg = "dt: '%s', f: '%s'" % (dt, f) + tgt = np.array(f.identity).astype(dt) + res = f.reduce(empty) + assert_equal(res, tgt, err_msg=msg) + assert_(res.dtype == tgt.dtype, msg) + + # Empty object arrays use the identity. Note that the types may + # differ, the actual type used is determined by the assign_identity + # function and is not the same as the type returned by the identity + # method. + for f in binary_funcs: + msg = "dt: '%s'" % (f,) + empty = np.array([], dtype=object) + tgt = f.identity + res = f.reduce(empty) + assert_equal(res, tgt, err_msg=msg) + + # Non-empty object arrays do not use the identity + for f in binary_funcs: + msg = "dt: '%s'" % (f,) + btype = np.array([True], dtype=object) + assert_(type(f.reduce(btype)) is bool, msg) + + +class TestInt: + def test_logical_not(self): + x = np.ones(10, dtype=np.int16) + o = np.ones(10 * 2, dtype=bool) + tgt = o.copy() + tgt[::2] = False + os = o[::2] + assert_array_equal(np.logical_not(x, out=os), False) + assert_array_equal(o, tgt) + + +class TestFloatingPoint: + def test_floating_point(self): + assert_equal(ncu.FLOATING_POINT_SUPPORT, 1) + + +class TestDegrees: + def test_degrees(self): + assert_almost_equal(ncu.degrees(np.pi), 180.0) + assert_almost_equal(ncu.degrees(-0.5*np.pi), -90.0) + + +class TestRadians: + def test_radians(self): + assert_almost_equal(ncu.radians(180.0), np.pi) + assert_almost_equal(ncu.radians(-90.0), -0.5*np.pi) + + +class TestHeavside: + def test_heaviside(self): + x = np.array([[-30.0, -0.1, 0.0, 0.2], [7.5, np.nan, np.inf, -np.inf]]) + expectedhalf = np.array([[0.0, 0.0, 0.5, 1.0], [1.0, np.nan, 1.0, 0.0]]) + expected1 = expectedhalf.copy() + expected1[0, 2] = 1 + + h = ncu.heaviside(x, 0.5) + assert_equal(h, expectedhalf) + + h = ncu.heaviside(x, 1.0) + assert_equal(h, expected1) + + x = x.astype(np.float32) + + h = ncu.heaviside(x, np.float32(0.5)) + assert_equal(h, expectedhalf.astype(np.float32)) + + h = ncu.heaviside(x, np.float32(1.0)) + assert_equal(h, expected1.astype(np.float32)) + + +class TestSign: + def test_sign(self): + a = np.array([np.inf, -np.inf, np.nan, 0.0, 3.0, -3.0]) + out = np.zeros(a.shape) + tgt = np.array([1., -1., np.nan, 0.0, 1.0, -1.0]) + + with np.errstate(invalid='ignore'): + res = ncu.sign(a) + assert_equal(res, tgt) + res = ncu.sign(a, out) + assert_equal(res, tgt) + assert_equal(out, tgt) + + def test_sign_dtype_object(self): + # In reference to github issue #6229 + + foo = np.array([-.1, 0, .1]) + a = np.sign(foo.astype(object)) + b = np.sign(foo) + + assert_array_equal(a, b) + + def test_sign_dtype_nan_object(self): + # In reference to github issue #6229 + def test_nan(): + foo = np.array([np.nan]) + # FIXME: a not used + a = np.sign(foo.astype(object)) + + assert_raises(TypeError, test_nan) + +class TestMinMax: + def test_minmax_blocked(self): + # simd tests on max/min, test all alignments, slow but important + # for 2 * vz + 2 * (vs - 1) + 1 (unrolled once) + for dt, sz in [(np.float32, 15), (np.float64, 7)]: + for out, inp, msg in _gen_alignment_data(dtype=dt, type='unary', + max_size=sz): + for i in range(inp.size): + inp[:] = np.arange(inp.size, dtype=dt) + inp[i] = np.nan + emsg = lambda: '%r\n%s' % (inp, msg) + with suppress_warnings() as sup: + sup.filter(RuntimeWarning, + "invalid value encountered in reduce") + assert_(np.isnan(inp.max()), msg=emsg) + assert_(np.isnan(inp.min()), msg=emsg) + + inp[i] = 1e10 + assert_equal(inp.max(), 1e10, err_msg=msg) + inp[i] = -1e10 + assert_equal(inp.min(), -1e10, err_msg=msg) + + def test_lower_align(self): + # check data that is not aligned to element size + # i.e doubles are aligned to 4 bytes on i386 + d = np.zeros(23 * 8, dtype=np.int8)[4:-4].view(np.float64) + assert_equal(d.max(), d[0]) + assert_equal(d.min(), d[0]) + + def test_reduce_reorder(self): + # gh 10370, 11029 Some compilers reorder the call to npy_getfloatstatus + # and put it before the call to an intrisic function that causes + # invalid status to be set. Also make sure warnings are not emitted + for n in (2, 4, 8, 16, 32): + for dt in (np.float32, np.float16, np.complex64): + for r in np.diagflat(np.array([np.nan] * n, dtype=dt)): + assert_equal(np.min(r), np.nan) + + def test_minimize_no_warns(self): + a = np.minimum(np.nan, 1) + assert_equal(a, np.nan) + + +class TestAbsoluteNegative: + def test_abs_neg_blocked(self): + # simd tests on abs, test all alignments for vz + 2 * (vs - 1) + 1 + for dt, sz in [(np.float32, 11), (np.float64, 5)]: + for out, inp, msg in _gen_alignment_data(dtype=dt, type='unary', + max_size=sz): + tgt = [ncu.absolute(i) for i in inp] + np.absolute(inp, out=out) + assert_equal(out, tgt, err_msg=msg) + assert_((out >= 0).all()) + + tgt = [-1*(i) for i in inp] + np.negative(inp, out=out) + assert_equal(out, tgt, err_msg=msg) + + for v in [np.nan, -np.inf, np.inf]: + for i in range(inp.size): + d = np.arange(inp.size, dtype=dt) + inp[:] = -d + inp[i] = v + d[i] = -v if v == -np.inf else v + assert_array_equal(np.abs(inp), d, err_msg=msg) + np.abs(inp, out=out) + assert_array_equal(out, d, err_msg=msg) + + assert_array_equal(-inp, -1*inp, err_msg=msg) + d = -1 * inp + np.negative(inp, out=out) + assert_array_equal(out, d, err_msg=msg) + + def test_lower_align(self): + # check data that is not aligned to element size + # i.e doubles are aligned to 4 bytes on i386 + d = np.zeros(23 * 8, dtype=np.int8)[4:-4].view(np.float64) + assert_equal(np.abs(d), d) + assert_equal(np.negative(d), -d) + np.negative(d, out=d) + np.negative(np.ones_like(d), out=d) + np.abs(d, out=d) + np.abs(np.ones_like(d), out=d) + + @pytest.mark.parametrize("dtype", ['d', 'f', 'int32', 'int64']) + @pytest.mark.parametrize("big", [True, False]) + def test_noncontiguous(self, dtype, big): + data = np.array([-1.0, 1.0, -0.0, 0.0, 2.2251e-308, -2.5, 2.5, -6, + 6, -2.2251e-308, -8, 10], dtype=dtype) + expect = np.array([1.0, -1.0, 0.0, -0.0, -2.2251e-308, 2.5, -2.5, 6, + -6, 2.2251e-308, 8, -10], dtype=dtype) + if big: + data = np.repeat(data, 10) + expect = np.repeat(expect, 10) + out = np.ndarray(data.shape, dtype=dtype) + ncontig_in = data[1::2] + ncontig_out = out[1::2] + contig_in = np.array(ncontig_in) + # contig in, contig out + assert_array_equal(np.negative(contig_in), expect[1::2]) + # contig in, ncontig out + assert_array_equal(np.negative(contig_in, out=ncontig_out), + expect[1::2]) + # ncontig in, contig out + assert_array_equal(np.negative(ncontig_in), expect[1::2]) + # ncontig in, ncontig out + assert_array_equal(np.negative(ncontig_in, out=ncontig_out), + expect[1::2]) + # contig in, contig out, nd stride + data_split = np.array(np.array_split(data, 2)) + expect_split = np.array(np.array_split(expect, 2)) + assert_equal(np.negative(data_split), expect_split) + + +class TestPositive: + def test_valid(self): + valid_dtypes = [int, float, complex, object] + for dtype in valid_dtypes: + x = np.arange(5, dtype=dtype) + result = np.positive(x) + assert_equal(x, result, err_msg=str(dtype)) + + def test_invalid(self): + with assert_raises(TypeError): + np.positive(True) + with assert_raises(TypeError): + np.positive(np.datetime64('2000-01-01')) + with assert_raises(TypeError): + np.positive(np.array(['foo'], dtype=str)) + with assert_raises(TypeError): + np.positive(np.array(['bar'], dtype=object)) + + +class TestSpecialMethods: + def test_wrap(self): + + class with_wrap: + def __array__(self): + return np.zeros(1) + + def __array_wrap__(self, arr, context): + r = with_wrap() + r.arr = arr + r.context = context + return r + + a = with_wrap() + x = ncu.minimum(a, a) + assert_equal(x.arr, np.zeros(1)) + func, args, i = x.context + assert_(func is ncu.minimum) + assert_equal(len(args), 2) + assert_equal(args[0], a) + assert_equal(args[1], a) + assert_equal(i, 0) + + def test_wrap_and_prepare_out(self): + # Calling convention for out should not affect how special methods are + # called + + class StoreArrayPrepareWrap(np.ndarray): + _wrap_args = None + _prepare_args = None + def __new__(cls): + return np.zeros(()).view(cls) + def __array_wrap__(self, obj, context): + self._wrap_args = context[1] + return obj + def __array_prepare__(self, obj, context): + self._prepare_args = context[1] + return obj + @property + def args(self): + # We need to ensure these are fetched at the same time, before + # any other ufuncs are called by the assertions + return (self._prepare_args, self._wrap_args) + def __repr__(self): + return "a" # for short test output + + def do_test(f_call, f_expected): + a = StoreArrayPrepareWrap() + f_call(a) + p, w = a.args + expected = f_expected(a) + try: + assert_equal(p, expected) + assert_equal(w, expected) + except AssertionError as e: + # assert_equal produces truly useless error messages + raise AssertionError("\n".join([ + "Bad arguments passed in ufunc call", + " expected: {}".format(expected), + " __array_prepare__ got: {}".format(p), + " __array_wrap__ got: {}".format(w) + ])) + + # method not on the out argument + do_test(lambda a: np.add(a, 0), lambda a: (a, 0)) + do_test(lambda a: np.add(a, 0, None), lambda a: (a, 0)) + do_test(lambda a: np.add(a, 0, out=None), lambda a: (a, 0)) + do_test(lambda a: np.add(a, 0, out=(None,)), lambda a: (a, 0)) + + # method on the out argument + do_test(lambda a: np.add(0, 0, a), lambda a: (0, 0, a)) + do_test(lambda a: np.add(0, 0, out=a), lambda a: (0, 0, a)) + do_test(lambda a: np.add(0, 0, out=(a,)), lambda a: (0, 0, a)) + + # Also check the where mask handling: + do_test(lambda a: np.add(a, 0, where=False), lambda a: (a, 0)) + do_test(lambda a: np.add(0, 0, a, where=False), lambda a: (0, 0, a)) + + def test_wrap_with_iterable(self): + # test fix for bug #1026: + + class with_wrap(np.ndarray): + __array_priority__ = 10 + + def __new__(cls): + return np.asarray(1).view(cls).copy() + + def __array_wrap__(self, arr, context): + return arr.view(type(self)) + + a = with_wrap() + x = ncu.multiply(a, (1, 2, 3)) + assert_(isinstance(x, with_wrap)) + assert_array_equal(x, np.array((1, 2, 3))) + + def test_priority_with_scalar(self): + # test fix for bug #826: + + class A(np.ndarray): + __array_priority__ = 10 + + def __new__(cls): + return np.asarray(1.0, 'float64').view(cls).copy() + + a = A() + x = np.float64(1)*a + assert_(isinstance(x, A)) + assert_array_equal(x, np.array(1)) + + def test_old_wrap(self): + + class with_wrap: + def __array__(self): + return np.zeros(1) + + def __array_wrap__(self, arr): + r = with_wrap() + r.arr = arr + return r + + a = with_wrap() + x = ncu.minimum(a, a) + assert_equal(x.arr, np.zeros(1)) + + def test_priority(self): + + class A: + def __array__(self): + return np.zeros(1) + + def __array_wrap__(self, arr, context): + r = type(self)() + r.arr = arr + r.context = context + return r + + class B(A): + __array_priority__ = 20. + + class C(A): + __array_priority__ = 40. + + x = np.zeros(1) + a = A() + b = B() + c = C() + f = ncu.minimum + assert_(type(f(x, x)) is np.ndarray) + assert_(type(f(x, a)) is A) + assert_(type(f(x, b)) is B) + assert_(type(f(x, c)) is C) + assert_(type(f(a, x)) is A) + assert_(type(f(b, x)) is B) + assert_(type(f(c, x)) is C) + + assert_(type(f(a, a)) is A) + assert_(type(f(a, b)) is B) + assert_(type(f(b, a)) is B) + assert_(type(f(b, b)) is B) + assert_(type(f(b, c)) is C) + assert_(type(f(c, b)) is C) + assert_(type(f(c, c)) is C) + + assert_(type(ncu.exp(a) is A)) + assert_(type(ncu.exp(b) is B)) + assert_(type(ncu.exp(c) is C)) + + def test_failing_wrap(self): + + class A: + def __array__(self): + return np.zeros(2) + + def __array_wrap__(self, arr, context): + raise RuntimeError + + a = A() + assert_raises(RuntimeError, ncu.maximum, a, a) + assert_raises(RuntimeError, ncu.maximum.reduce, a) + + def test_failing_out_wrap(self): + + singleton = np.array([1.0]) + + class Ok(np.ndarray): + def __array_wrap__(self, obj): + return singleton + + class Bad(np.ndarray): + def __array_wrap__(self, obj): + raise RuntimeError + + ok = np.empty(1).view(Ok) + bad = np.empty(1).view(Bad) + # double-free (segfault) of "ok" if "bad" raises an exception + for i in range(10): + assert_raises(RuntimeError, ncu.frexp, 1, ok, bad) + + def test_none_wrap(self): + # Tests that issue #8507 is resolved. Previously, this would segfault + + class A: + def __array__(self): + return np.zeros(1) + + def __array_wrap__(self, arr, context=None): + return None + + a = A() + assert_equal(ncu.maximum(a, a), None) + + def test_default_prepare(self): + + class with_wrap: + __array_priority__ = 10 + + def __array__(self): + return np.zeros(1) + + def __array_wrap__(self, arr, context): + return arr + + a = with_wrap() + x = ncu.minimum(a, a) + assert_equal(x, np.zeros(1)) + assert_equal(type(x), np.ndarray) + + @pytest.mark.parametrize("use_where", [True, False]) + def test_prepare(self, use_where): + + class with_prepare(np.ndarray): + __array_priority__ = 10 + + def __array_prepare__(self, arr, context): + # make sure we can return a new + return np.array(arr).view(type=with_prepare) + + a = np.array(1).view(type=with_prepare) + if use_where: + x = np.add(a, a, where=np.array(True)) + else: + x = np.add(a, a) + assert_equal(x, np.array(2)) + assert_equal(type(x), with_prepare) + + @pytest.mark.parametrize("use_where", [True, False]) + def test_prepare_out(self, use_where): + + class with_prepare(np.ndarray): + __array_priority__ = 10 + + def __array_prepare__(self, arr, context): + return np.array(arr).view(type=with_prepare) + + a = np.array([1]).view(type=with_prepare) + if use_where: + x = np.add(a, a, a, where=[True]) + else: + x = np.add(a, a, a) + # Returned array is new, because of the strange + # __array_prepare__ above + assert_(not np.shares_memory(x, a)) + assert_equal(x, np.array([2])) + assert_equal(type(x), with_prepare) + + def test_failing_prepare(self): + + class A: + def __array__(self): + return np.zeros(1) + + def __array_prepare__(self, arr, context=None): + raise RuntimeError + + a = A() + assert_raises(RuntimeError, ncu.maximum, a, a) + assert_raises(RuntimeError, ncu.maximum, a, a, where=False) + + def test_array_too_many_args(self): + + class A: + def __array__(self, dtype, context): + return np.zeros(1) + + a = A() + assert_raises_regex(TypeError, '2 required positional', np.sum, a) + + def test_ufunc_override(self): + # check override works even with instance with high priority. + class A: + def __array_ufunc__(self, func, method, *inputs, **kwargs): + return self, func, method, inputs, kwargs + + class MyNDArray(np.ndarray): + __array_priority__ = 100 + + a = A() + b = np.array([1]).view(MyNDArray) + res0 = np.multiply(a, b) + res1 = np.multiply(b, b, out=a) + + # self + assert_equal(res0[0], a) + assert_equal(res1[0], a) + assert_equal(res0[1], np.multiply) + assert_equal(res1[1], np.multiply) + assert_equal(res0[2], '__call__') + assert_equal(res1[2], '__call__') + assert_equal(res0[3], (a, b)) + assert_equal(res1[3], (b, b)) + assert_equal(res0[4], {}) + assert_equal(res1[4], {'out': (a,)}) + + def test_ufunc_override_mro(self): + + # Some multi arg functions for testing. + def tres_mul(a, b, c): + return a * b * c + + def quatro_mul(a, b, c, d): + return a * b * c * d + + # Make these into ufuncs. + three_mul_ufunc = np.frompyfunc(tres_mul, 3, 1) + four_mul_ufunc = np.frompyfunc(quatro_mul, 4, 1) + + class A: + def __array_ufunc__(self, func, method, *inputs, **kwargs): + return "A" + + class ASub(A): + def __array_ufunc__(self, func, method, *inputs, **kwargs): + return "ASub" + + class B: + def __array_ufunc__(self, func, method, *inputs, **kwargs): + return "B" + + class C: + def __init__(self): + self.count = 0 + + def __array_ufunc__(self, func, method, *inputs, **kwargs): + self.count += 1 + return NotImplemented + + class CSub(C): + def __array_ufunc__(self, func, method, *inputs, **kwargs): + self.count += 1 + return NotImplemented + + a = A() + a_sub = ASub() + b = B() + c = C() + + # Standard + res = np.multiply(a, a_sub) + assert_equal(res, "ASub") + res = np.multiply(a_sub, b) + assert_equal(res, "ASub") + + # With 1 NotImplemented + res = np.multiply(c, a) + assert_equal(res, "A") + assert_equal(c.count, 1) + # Check our counter works, so we can trust tests below. + res = np.multiply(c, a) + assert_equal(c.count, 2) + + # Both NotImplemented. + c = C() + c_sub = CSub() + assert_raises(TypeError, np.multiply, c, c_sub) + assert_equal(c.count, 1) + assert_equal(c_sub.count, 1) + c.count = c_sub.count = 0 + assert_raises(TypeError, np.multiply, c_sub, c) + assert_equal(c.count, 1) + assert_equal(c_sub.count, 1) + c.count = 0 + assert_raises(TypeError, np.multiply, c, c) + assert_equal(c.count, 1) + c.count = 0 + assert_raises(TypeError, np.multiply, 2, c) + assert_equal(c.count, 1) + + # Ternary testing. + assert_equal(three_mul_ufunc(a, 1, 2), "A") + assert_equal(three_mul_ufunc(1, a, 2), "A") + assert_equal(three_mul_ufunc(1, 2, a), "A") + + assert_equal(three_mul_ufunc(a, a, 6), "A") + assert_equal(three_mul_ufunc(a, 2, a), "A") + assert_equal(three_mul_ufunc(a, 2, b), "A") + assert_equal(three_mul_ufunc(a, 2, a_sub), "ASub") + assert_equal(three_mul_ufunc(a, a_sub, 3), "ASub") + c.count = 0 + assert_equal(three_mul_ufunc(c, a_sub, 3), "ASub") + assert_equal(c.count, 1) + c.count = 0 + assert_equal(three_mul_ufunc(1, a_sub, c), "ASub") + assert_equal(c.count, 0) + + c.count = 0 + assert_equal(three_mul_ufunc(a, b, c), "A") + assert_equal(c.count, 0) + c_sub.count = 0 + assert_equal(three_mul_ufunc(a, b, c_sub), "A") + assert_equal(c_sub.count, 0) + assert_equal(three_mul_ufunc(1, 2, b), "B") + + assert_raises(TypeError, three_mul_ufunc, 1, 2, c) + assert_raises(TypeError, three_mul_ufunc, c_sub, 2, c) + assert_raises(TypeError, three_mul_ufunc, c_sub, 2, 3) + + # Quaternary testing. + assert_equal(four_mul_ufunc(a, 1, 2, 3), "A") + assert_equal(four_mul_ufunc(1, a, 2, 3), "A") + assert_equal(four_mul_ufunc(1, 1, a, 3), "A") + assert_equal(four_mul_ufunc(1, 1, 2, a), "A") + + assert_equal(four_mul_ufunc(a, b, 2, 3), "A") + assert_equal(four_mul_ufunc(1, a, 2, b), "A") + assert_equal(four_mul_ufunc(b, 1, a, 3), "B") + assert_equal(four_mul_ufunc(a_sub, 1, 2, a), "ASub") + assert_equal(four_mul_ufunc(a, 1, 2, a_sub), "ASub") + + c = C() + c_sub = CSub() + assert_raises(TypeError, four_mul_ufunc, 1, 2, 3, c) + assert_equal(c.count, 1) + c.count = 0 + assert_raises(TypeError, four_mul_ufunc, 1, 2, c_sub, c) + assert_equal(c_sub.count, 1) + assert_equal(c.count, 1) + c2 = C() + c.count = c_sub.count = 0 + assert_raises(TypeError, four_mul_ufunc, 1, c, c_sub, c2) + assert_equal(c_sub.count, 1) + assert_equal(c.count, 1) + assert_equal(c2.count, 0) + c.count = c2.count = c_sub.count = 0 + assert_raises(TypeError, four_mul_ufunc, c2, c, c_sub, c) + assert_equal(c_sub.count, 1) + assert_equal(c.count, 0) + assert_equal(c2.count, 1) + + def test_ufunc_override_methods(self): + + class A: + def __array_ufunc__(self, ufunc, method, *inputs, **kwargs): + return self, ufunc, method, inputs, kwargs + + # __call__ + a = A() + with assert_raises(TypeError): + np.multiply.__call__(1, a, foo='bar', answer=42) + res = np.multiply.__call__(1, a, subok='bar', where=42) + assert_equal(res[0], a) + assert_equal(res[1], np.multiply) + assert_equal(res[2], '__call__') + assert_equal(res[3], (1, a)) + assert_equal(res[4], {'subok': 'bar', 'where': 42}) + + # __call__, wrong args + assert_raises(TypeError, np.multiply, a) + assert_raises(TypeError, np.multiply, a, a, a, a) + assert_raises(TypeError, np.multiply, a, a, sig='a', signature='a') + assert_raises(TypeError, ncu_tests.inner1d, a, a, axis=0, axes=[0, 0]) + + # reduce, positional args + res = np.multiply.reduce(a, 'axis0', 'dtype0', 'out0', 'keep0') + assert_equal(res[0], a) + assert_equal(res[1], np.multiply) + assert_equal(res[2], 'reduce') + assert_equal(res[3], (a,)) + assert_equal(res[4], {'dtype':'dtype0', + 'out': ('out0',), + 'keepdims': 'keep0', + 'axis': 'axis0'}) + + # reduce, kwargs + res = np.multiply.reduce(a, axis='axis0', dtype='dtype0', out='out0', + keepdims='keep0', initial='init0', + where='where0') + assert_equal(res[0], a) + assert_equal(res[1], np.multiply) + assert_equal(res[2], 'reduce') + assert_equal(res[3], (a,)) + assert_equal(res[4], {'dtype':'dtype0', + 'out': ('out0',), + 'keepdims': 'keep0', + 'axis': 'axis0', + 'initial': 'init0', + 'where': 'where0'}) + + # reduce, output equal to None removed, but not other explicit ones, + # even if they are at their default value. + res = np.multiply.reduce(a, 0, None, None, False) + assert_equal(res[4], {'axis': 0, 'dtype': None, 'keepdims': False}) + res = np.multiply.reduce(a, out=None, axis=0, keepdims=True) + assert_equal(res[4], {'axis': 0, 'keepdims': True}) + res = np.multiply.reduce(a, None, out=(None,), dtype=None) + assert_equal(res[4], {'axis': None, 'dtype': None}) + res = np.multiply.reduce(a, 0, None, None, False, 2, True) + assert_equal(res[4], {'axis': 0, 'dtype': None, 'keepdims': False, + 'initial': 2, 'where': True}) + # np._NoValue ignored for initial + res = np.multiply.reduce(a, 0, None, None, False, + np._NoValue, True) + assert_equal(res[4], {'axis': 0, 'dtype': None, 'keepdims': False, + 'where': True}) + # None kept for initial, True for where. + res = np.multiply.reduce(a, 0, None, None, False, None, True) + assert_equal(res[4], {'axis': 0, 'dtype': None, 'keepdims': False, + 'initial': None, 'where': True}) + + # reduce, wrong args + assert_raises(ValueError, np.multiply.reduce, a, out=()) + assert_raises(ValueError, np.multiply.reduce, a, out=('out0', 'out1')) + assert_raises(TypeError, np.multiply.reduce, a, 'axis0', axis='axis0') + + # accumulate, pos args + res = np.multiply.accumulate(a, 'axis0', 'dtype0', 'out0') + assert_equal(res[0], a) + assert_equal(res[1], np.multiply) + assert_equal(res[2], 'accumulate') + assert_equal(res[3], (a,)) + assert_equal(res[4], {'dtype':'dtype0', + 'out': ('out0',), + 'axis': 'axis0'}) + + # accumulate, kwargs + res = np.multiply.accumulate(a, axis='axis0', dtype='dtype0', + out='out0') + assert_equal(res[0], a) + assert_equal(res[1], np.multiply) + assert_equal(res[2], 'accumulate') + assert_equal(res[3], (a,)) + assert_equal(res[4], {'dtype':'dtype0', + 'out': ('out0',), + 'axis': 'axis0'}) + + # accumulate, output equal to None removed. + res = np.multiply.accumulate(a, 0, None, None) + assert_equal(res[4], {'axis': 0, 'dtype': None}) + res = np.multiply.accumulate(a, out=None, axis=0, dtype='dtype1') + assert_equal(res[4], {'axis': 0, 'dtype': 'dtype1'}) + res = np.multiply.accumulate(a, None, out=(None,), dtype=None) + assert_equal(res[4], {'axis': None, 'dtype': None}) + + # accumulate, wrong args + assert_raises(ValueError, np.multiply.accumulate, a, out=()) + assert_raises(ValueError, np.multiply.accumulate, a, + out=('out0', 'out1')) + assert_raises(TypeError, np.multiply.accumulate, a, + 'axis0', axis='axis0') + + # reduceat, pos args + res = np.multiply.reduceat(a, [4, 2], 'axis0', 'dtype0', 'out0') + assert_equal(res[0], a) + assert_equal(res[1], np.multiply) + assert_equal(res[2], 'reduceat') + assert_equal(res[3], (a, [4, 2])) + assert_equal(res[4], {'dtype':'dtype0', + 'out': ('out0',), + 'axis': 'axis0'}) + + # reduceat, kwargs + res = np.multiply.reduceat(a, [4, 2], axis='axis0', dtype='dtype0', + out='out0') + assert_equal(res[0], a) + assert_equal(res[1], np.multiply) + assert_equal(res[2], 'reduceat') + assert_equal(res[3], (a, [4, 2])) + assert_equal(res[4], {'dtype':'dtype0', + 'out': ('out0',), + 'axis': 'axis0'}) + + # reduceat, output equal to None removed. + res = np.multiply.reduceat(a, [4, 2], 0, None, None) + assert_equal(res[4], {'axis': 0, 'dtype': None}) + res = np.multiply.reduceat(a, [4, 2], axis=None, out=None, dtype='dt') + assert_equal(res[4], {'axis': None, 'dtype': 'dt'}) + res = np.multiply.reduceat(a, [4, 2], None, None, out=(None,)) + assert_equal(res[4], {'axis': None, 'dtype': None}) + + # reduceat, wrong args + assert_raises(ValueError, np.multiply.reduce, a, [4, 2], out=()) + assert_raises(ValueError, np.multiply.reduce, a, [4, 2], + out=('out0', 'out1')) + assert_raises(TypeError, np.multiply.reduce, a, [4, 2], + 'axis0', axis='axis0') + + # outer + res = np.multiply.outer(a, 42) + assert_equal(res[0], a) + assert_equal(res[1], np.multiply) + assert_equal(res[2], 'outer') + assert_equal(res[3], (a, 42)) + assert_equal(res[4], {}) + + # outer, wrong args + assert_raises(TypeError, np.multiply.outer, a) + assert_raises(TypeError, np.multiply.outer, a, a, a, a) + assert_raises(TypeError, np.multiply.outer, a, a, sig='a', signature='a') + + # at + res = np.multiply.at(a, [4, 2], 'b0') + assert_equal(res[0], a) + assert_equal(res[1], np.multiply) + assert_equal(res[2], 'at') + assert_equal(res[3], (a, [4, 2], 'b0')) + + # at, wrong args + assert_raises(TypeError, np.multiply.at, a) + assert_raises(TypeError, np.multiply.at, a, a, a, a) + + def test_ufunc_override_out(self): + + class A: + def __array_ufunc__(self, ufunc, method, *inputs, **kwargs): + return kwargs + + class B: + def __array_ufunc__(self, ufunc, method, *inputs, **kwargs): + return kwargs + + a = A() + b = B() + res0 = np.multiply(a, b, 'out_arg') + res1 = np.multiply(a, b, out='out_arg') + res2 = np.multiply(2, b, 'out_arg') + res3 = np.multiply(3, b, out='out_arg') + res4 = np.multiply(a, 4, 'out_arg') + res5 = np.multiply(a, 5, out='out_arg') + + assert_equal(res0['out'][0], 'out_arg') + assert_equal(res1['out'][0], 'out_arg') + assert_equal(res2['out'][0], 'out_arg') + assert_equal(res3['out'][0], 'out_arg') + assert_equal(res4['out'][0], 'out_arg') + assert_equal(res5['out'][0], 'out_arg') + + # ufuncs with multiple output modf and frexp. + res6 = np.modf(a, 'out0', 'out1') + res7 = np.frexp(a, 'out0', 'out1') + assert_equal(res6['out'][0], 'out0') + assert_equal(res6['out'][1], 'out1') + assert_equal(res7['out'][0], 'out0') + assert_equal(res7['out'][1], 'out1') + + # While we're at it, check that default output is never passed on. + assert_(np.sin(a, None) == {}) + assert_(np.sin(a, out=None) == {}) + assert_(np.sin(a, out=(None,)) == {}) + assert_(np.modf(a, None) == {}) + assert_(np.modf(a, None, None) == {}) + assert_(np.modf(a, out=(None, None)) == {}) + with assert_raises(TypeError): + # Out argument must be tuple, since there are multiple outputs. + np.modf(a, out=None) + + # don't give positional and output argument, or too many arguments. + # wrong number of arguments in the tuple is an error too. + assert_raises(TypeError, np.multiply, a, b, 'one', out='two') + assert_raises(TypeError, np.multiply, a, b, 'one', 'two') + assert_raises(ValueError, np.multiply, a, b, out=('one', 'two')) + assert_raises(TypeError, np.multiply, a, out=()) + assert_raises(TypeError, np.modf, a, 'one', out=('two', 'three')) + assert_raises(TypeError, np.modf, a, 'one', 'two', 'three') + assert_raises(ValueError, np.modf, a, out=('one', 'two', 'three')) + assert_raises(ValueError, np.modf, a, out=('one',)) + + def test_ufunc_override_where(self): + + class OverriddenArrayOld(np.ndarray): + + def _unwrap(self, objs): + cls = type(self) + result = [] + for obj in objs: + if isinstance(obj, cls): + obj = np.array(obj) + elif type(obj) != np.ndarray: + return NotImplemented + result.append(obj) + return result + + def __array_ufunc__(self, ufunc, method, *inputs, **kwargs): + + inputs = self._unwrap(inputs) + if inputs is NotImplemented: + return NotImplemented + + kwargs = kwargs.copy() + if "out" in kwargs: + kwargs["out"] = self._unwrap(kwargs["out"]) + if kwargs["out"] is NotImplemented: + return NotImplemented + + r = super().__array_ufunc__(ufunc, method, *inputs, **kwargs) + if r is not NotImplemented: + r = r.view(type(self)) + + return r + + class OverriddenArrayNew(OverriddenArrayOld): + def __array_ufunc__(self, ufunc, method, *inputs, **kwargs): + + kwargs = kwargs.copy() + if "where" in kwargs: + kwargs["where"] = self._unwrap((kwargs["where"], )) + if kwargs["where"] is NotImplemented: + return NotImplemented + else: + kwargs["where"] = kwargs["where"][0] + + r = super().__array_ufunc__(ufunc, method, *inputs, **kwargs) + if r is not NotImplemented: + r = r.view(type(self)) + + return r + + ufunc = np.negative + + array = np.array([1, 2, 3]) + where = np.array([True, False, True]) + expected = ufunc(array, where=where) + + with pytest.raises(TypeError): + ufunc(array, where=where.view(OverriddenArrayOld)) + + result_1 = ufunc( + array, + where=where.view(OverriddenArrayNew) + ) + assert isinstance(result_1, OverriddenArrayNew) + assert np.all(np.array(result_1) == expected, where=where) + + result_2 = ufunc( + array.view(OverriddenArrayNew), + where=where.view(OverriddenArrayNew) + ) + assert isinstance(result_2, OverriddenArrayNew) + assert np.all(np.array(result_2) == expected, where=where) + + def test_ufunc_override_exception(self): + + class A: + def __array_ufunc__(self, *a, **kwargs): + raise ValueError("oops") + + a = A() + assert_raises(ValueError, np.negative, 1, out=a) + assert_raises(ValueError, np.negative, a) + assert_raises(ValueError, np.divide, 1., a) + + def test_ufunc_override_not_implemented(self): + + class A: + def __array_ufunc__(self, *args, **kwargs): + return NotImplemented + + msg = ("operand type(s) all returned NotImplemented from " + "__array_ufunc__(, '__call__', <*>): 'A'") + with assert_raises_regex(TypeError, fnmatch.translate(msg)): + np.negative(A()) + + msg = ("operand type(s) all returned NotImplemented from " + "__array_ufunc__(, '__call__', <*>, , " + "out=(1,)): 'A', 'object', 'int'") + with assert_raises_regex(TypeError, fnmatch.translate(msg)): + np.add(A(), object(), out=1) + + def test_ufunc_override_disabled(self): + + class OptOut: + __array_ufunc__ = None + + opt_out = OptOut() + + # ufuncs always raise + msg = "operand 'OptOut' does not support ufuncs" + with assert_raises_regex(TypeError, msg): + np.add(opt_out, 1) + with assert_raises_regex(TypeError, msg): + np.add(1, opt_out) + with assert_raises_regex(TypeError, msg): + np.negative(opt_out) + + # opt-outs still hold even when other arguments have pathological + # __array_ufunc__ implementations + + class GreedyArray: + def __array_ufunc__(self, *args, **kwargs): + return self + + greedy = GreedyArray() + assert_(np.negative(greedy) is greedy) + with assert_raises_regex(TypeError, msg): + np.add(greedy, opt_out) + with assert_raises_regex(TypeError, msg): + np.add(greedy, 1, out=opt_out) + + def test_gufunc_override(self): + # gufunc are just ufunc instances, but follow a different path, + # so check __array_ufunc__ overrides them properly. + class A: + def __array_ufunc__(self, ufunc, method, *inputs, **kwargs): + return self, ufunc, method, inputs, kwargs + + inner1d = ncu_tests.inner1d + a = A() + res = inner1d(a, a) + assert_equal(res[0], a) + assert_equal(res[1], inner1d) + assert_equal(res[2], '__call__') + assert_equal(res[3], (a, a)) + assert_equal(res[4], {}) + + res = inner1d(1, 1, out=a) + assert_equal(res[0], a) + assert_equal(res[1], inner1d) + assert_equal(res[2], '__call__') + assert_equal(res[3], (1, 1)) + assert_equal(res[4], {'out': (a,)}) + + # wrong number of arguments in the tuple is an error too. + assert_raises(TypeError, inner1d, a, out='two') + assert_raises(TypeError, inner1d, a, a, 'one', out='two') + assert_raises(TypeError, inner1d, a, a, 'one', 'two') + assert_raises(ValueError, inner1d, a, a, out=('one', 'two')) + assert_raises(ValueError, inner1d, a, a, out=()) + + def test_ufunc_override_with_super(self): + # NOTE: this class is used in doc/source/user/basics.subclassing.rst + # if you make any changes here, do update it there too. + class A(np.ndarray): + def __array_ufunc__(self, ufunc, method, *inputs, out=None, **kwargs): + args = [] + in_no = [] + for i, input_ in enumerate(inputs): + if isinstance(input_, A): + in_no.append(i) + args.append(input_.view(np.ndarray)) + else: + args.append(input_) + + outputs = out + out_no = [] + if outputs: + out_args = [] + for j, output in enumerate(outputs): + if isinstance(output, A): + out_no.append(j) + out_args.append(output.view(np.ndarray)) + else: + out_args.append(output) + kwargs['out'] = tuple(out_args) + else: + outputs = (None,) * ufunc.nout + + info = {} + if in_no: + info['inputs'] = in_no + if out_no: + info['outputs'] = out_no + + results = super().__array_ufunc__(ufunc, method, + *args, **kwargs) + if results is NotImplemented: + return NotImplemented + + if method == 'at': + if isinstance(inputs[0], A): + inputs[0].info = info + return + + if ufunc.nout == 1: + results = (results,) + + results = tuple((np.asarray(result).view(A) + if output is None else output) + for result, output in zip(results, outputs)) + if results and isinstance(results[0], A): + results[0].info = info + + return results[0] if len(results) == 1 else results + + class B: + def __array_ufunc__(self, ufunc, method, *inputs, **kwargs): + if any(isinstance(input_, A) for input_ in inputs): + return "A!" + else: + return NotImplemented + + d = np.arange(5.) + # 1 input, 1 output + a = np.arange(5.).view(A) + b = np.sin(a) + check = np.sin(d) + assert_(np.all(check == b)) + assert_equal(b.info, {'inputs': [0]}) + b = np.sin(d, out=(a,)) + assert_(np.all(check == b)) + assert_equal(b.info, {'outputs': [0]}) + assert_(b is a) + a = np.arange(5.).view(A) + b = np.sin(a, out=a) + assert_(np.all(check == b)) + assert_equal(b.info, {'inputs': [0], 'outputs': [0]}) + + # 1 input, 2 outputs + a = np.arange(5.).view(A) + b1, b2 = np.modf(a) + assert_equal(b1.info, {'inputs': [0]}) + b1, b2 = np.modf(d, out=(None, a)) + assert_(b2 is a) + assert_equal(b1.info, {'outputs': [1]}) + a = np.arange(5.).view(A) + b = np.arange(5.).view(A) + c1, c2 = np.modf(a, out=(a, b)) + assert_(c1 is a) + assert_(c2 is b) + assert_equal(c1.info, {'inputs': [0], 'outputs': [0, 1]}) + + # 2 input, 1 output + a = np.arange(5.).view(A) + b = np.arange(5.).view(A) + c = np.add(a, b, out=a) + assert_(c is a) + assert_equal(c.info, {'inputs': [0, 1], 'outputs': [0]}) + # some tests with a non-ndarray subclass + a = np.arange(5.) + b = B() + assert_(a.__array_ufunc__(np.add, '__call__', a, b) is NotImplemented) + assert_(b.__array_ufunc__(np.add, '__call__', a, b) is NotImplemented) + assert_raises(TypeError, np.add, a, b) + a = a.view(A) + assert_(a.__array_ufunc__(np.add, '__call__', a, b) is NotImplemented) + assert_(b.__array_ufunc__(np.add, '__call__', a, b) == "A!") + assert_(np.add(a, b) == "A!") + # regression check for gh-9102 -- tests ufunc.reduce implicitly. + d = np.array([[1, 2, 3], [1, 2, 3]]) + a = d.view(A) + c = a.any() + check = d.any() + assert_equal(c, check) + assert_(c.info, {'inputs': [0]}) + c = a.max() + check = d.max() + assert_equal(c, check) + assert_(c.info, {'inputs': [0]}) + b = np.array(0).view(A) + c = a.max(out=b) + assert_equal(c, check) + assert_(c is b) + assert_(c.info, {'inputs': [0], 'outputs': [0]}) + check = a.max(axis=0) + b = np.zeros_like(check).view(A) + c = a.max(axis=0, out=b) + assert_equal(c, check) + assert_(c is b) + assert_(c.info, {'inputs': [0], 'outputs': [0]}) + # simple explicit tests of reduce, accumulate, reduceat + check = np.add.reduce(d, axis=1) + c = np.add.reduce(a, axis=1) + assert_equal(c, check) + assert_(c.info, {'inputs': [0]}) + b = np.zeros_like(c) + c = np.add.reduce(a, 1, None, b) + assert_equal(c, check) + assert_(c is b) + assert_(c.info, {'inputs': [0], 'outputs': [0]}) + check = np.add.accumulate(d, axis=0) + c = np.add.accumulate(a, axis=0) + assert_equal(c, check) + assert_(c.info, {'inputs': [0]}) + b = np.zeros_like(c) + c = np.add.accumulate(a, 0, None, b) + assert_equal(c, check) + assert_(c is b) + assert_(c.info, {'inputs': [0], 'outputs': [0]}) + indices = [0, 2, 1] + check = np.add.reduceat(d, indices, axis=1) + c = np.add.reduceat(a, indices, axis=1) + assert_equal(c, check) + assert_(c.info, {'inputs': [0]}) + b = np.zeros_like(c) + c = np.add.reduceat(a, indices, 1, None, b) + assert_equal(c, check) + assert_(c is b) + assert_(c.info, {'inputs': [0], 'outputs': [0]}) + # and a few tests for at + d = np.array([[1, 2, 3], [1, 2, 3]]) + check = d.copy() + a = d.copy().view(A) + np.add.at(check, ([0, 1], [0, 2]), 1.) + np.add.at(a, ([0, 1], [0, 2]), 1.) + assert_equal(a, check) + assert_(a.info, {'inputs': [0]}) + b = np.array(1.).view(A) + a = d.copy().view(A) + np.add.at(a, ([0, 1], [0, 2]), b) + assert_equal(a, check) + assert_(a.info, {'inputs': [0, 2]}) + + def test_array_ufunc_direct_call(self): + # This is mainly a regression test for gh-24023 (shouldn't segfault) + a = np.array(1) + with pytest.raises(TypeError): + a.__array_ufunc__() + + # No kwargs means kwargs may be NULL on the C-level + with pytest.raises(TypeError): + a.__array_ufunc__(1, 2) + + # And the same with a valid call: + res = a.__array_ufunc__(np.add, "__call__", a, a) + assert_array_equal(res, a + a) + +class TestChoose: + def test_mixed(self): + c = np.array([True, True]) + a = np.array([True, True]) + assert_equal(np.choose(c, (a, 1)), np.array([1, 1])) + + +class TestRationalFunctions: + def test_lcm(self): + self._test_lcm_inner(np.int16) + self._test_lcm_inner(np.uint16) + + def test_lcm_object(self): + self._test_lcm_inner(np.object_) + + def test_gcd(self): + self._test_gcd_inner(np.int16) + self._test_lcm_inner(np.uint16) + + def test_gcd_object(self): + self._test_gcd_inner(np.object_) + + def _test_lcm_inner(self, dtype): + # basic use + a = np.array([12, 120], dtype=dtype) + b = np.array([20, 200], dtype=dtype) + assert_equal(np.lcm(a, b), [60, 600]) + + if not issubclass(dtype, np.unsignedinteger): + # negatives are ignored + a = np.array([12, -12, 12, -12], dtype=dtype) + b = np.array([20, 20, -20, -20], dtype=dtype) + assert_equal(np.lcm(a, b), [60]*4) + + # reduce + a = np.array([3, 12, 20], dtype=dtype) + assert_equal(np.lcm.reduce([3, 12, 20]), 60) + + # broadcasting, and a test including 0 + a = np.arange(6).astype(dtype) + b = 20 + assert_equal(np.lcm(a, b), [0, 20, 20, 60, 20, 20]) + + def _test_gcd_inner(self, dtype): + # basic use + a = np.array([12, 120], dtype=dtype) + b = np.array([20, 200], dtype=dtype) + assert_equal(np.gcd(a, b), [4, 40]) + + if not issubclass(dtype, np.unsignedinteger): + # negatives are ignored + a = np.array([12, -12, 12, -12], dtype=dtype) + b = np.array([20, 20, -20, -20], dtype=dtype) + assert_equal(np.gcd(a, b), [4]*4) + + # reduce + a = np.array([15, 25, 35], dtype=dtype) + assert_equal(np.gcd.reduce(a), 5) + + # broadcasting, and a test including 0 + a = np.arange(6).astype(dtype) + b = 20 + assert_equal(np.gcd(a, b), [20, 1, 2, 1, 4, 5]) + + def test_lcm_overflow(self): + # verify that we don't overflow when a*b does overflow + big = np.int32(np.iinfo(np.int32).max // 11) + a = 2*big + b = 5*big + assert_equal(np.lcm(a, b), 10*big) + + def test_gcd_overflow(self): + for dtype in (np.int32, np.int64): + # verify that we don't overflow when taking abs(x) + # not relevant for lcm, where the result is unrepresentable anyway + a = dtype(np.iinfo(dtype).min) # negative power of two + q = -(a // 4) + assert_equal(np.gcd(a, q*3), q) + assert_equal(np.gcd(a, -q*3), q) + + def test_decimal(self): + from decimal import Decimal + a = np.array([1, 1, -1, -1]) * Decimal('0.20') + b = np.array([1, -1, 1, -1]) * Decimal('0.12') + + assert_equal(np.gcd(a, b), 4*[Decimal('0.04')]) + assert_equal(np.lcm(a, b), 4*[Decimal('0.60')]) + + def test_float(self): + # not well-defined on float due to rounding errors + assert_raises(TypeError, np.gcd, 0.3, 0.4) + assert_raises(TypeError, np.lcm, 0.3, 0.4) + + def test_builtin_long(self): + # sanity check that array coercion is alright for builtin longs + assert_equal(np.array(2**200).item(), 2**200) + + # expressed as prime factors + a = np.array(2**100 * 3**5) + b = np.array([2**100 * 5**7, 2**50 * 3**10]) + assert_equal(np.gcd(a, b), [2**100, 2**50 * 3**5]) + assert_equal(np.lcm(a, b), [2**100 * 3**5 * 5**7, 2**100 * 3**10]) + + assert_equal(np.gcd(2**100, 3**100), 1) + + +class TestRoundingFunctions: + + def test_object_direct(self): + """ test direct implementation of these magic methods """ + class C: + def __floor__(self): + return 1 + def __ceil__(self): + return 2 + def __trunc__(self): + return 3 + + arr = np.array([C(), C()]) + assert_equal(np.floor(arr), [1, 1]) + assert_equal(np.ceil(arr), [2, 2]) + assert_equal(np.trunc(arr), [3, 3]) + + def test_object_indirect(self): + """ test implementations via __float__ """ + class C: + def __float__(self): + return -2.5 + + arr = np.array([C(), C()]) + assert_equal(np.floor(arr), [-3, -3]) + assert_equal(np.ceil(arr), [-2, -2]) + with pytest.raises(TypeError): + np.trunc(arr) # consistent with math.trunc + + def test_fraction(self): + f = Fraction(-4, 3) + assert_equal(np.floor(f), -2) + assert_equal(np.ceil(f), -1) + assert_equal(np.trunc(f), -1) + + +class TestComplexFunctions: + funcs = [np.arcsin, np.arccos, np.arctan, np.arcsinh, np.arccosh, + np.arctanh, np.sin, np.cos, np.tan, np.exp, + np.exp2, np.log, np.sqrt, np.log10, np.log2, + np.log1p] + + def test_it(self): + for f in self.funcs: + if f is np.arccosh: + x = 1.5 + else: + x = .5 + fr = f(x) + fz = f(complex(x)) + assert_almost_equal(fz.real, fr, err_msg='real part %s' % f) + assert_almost_equal(fz.imag, 0., err_msg='imag part %s' % f) + + @pytest.mark.xfail(IS_MUSL, reason="gh23049") + @pytest.mark.xfail(IS_WASM, reason="doesn't work") + def test_precisions_consistent(self): + z = 1 + 1j + for f in self.funcs: + fcf = f(np.csingle(z)) + fcd = f(np.cdouble(z)) + fcl = f(np.clongdouble(z)) + assert_almost_equal(fcf, fcd, decimal=6, err_msg='fch-fcd %s' % f) + assert_almost_equal(fcl, fcd, decimal=15, err_msg='fch-fcl %s' % f) + + @pytest.mark.xfail(IS_MUSL, reason="gh23049") + @pytest.mark.xfail(IS_WASM, reason="doesn't work") + def test_branch_cuts(self): + # check branch cuts and continuity on them + _check_branch_cut(np.log, -0.5, 1j, 1, -1, True) + _check_branch_cut(np.log2, -0.5, 1j, 1, -1, True) + _check_branch_cut(np.log10, -0.5, 1j, 1, -1, True) + _check_branch_cut(np.log1p, -1.5, 1j, 1, -1, True) + _check_branch_cut(np.sqrt, -0.5, 1j, 1, -1, True) + + _check_branch_cut(np.arcsin, [ -2, 2], [1j, 1j], 1, -1, True) + _check_branch_cut(np.arccos, [ -2, 2], [1j, 1j], 1, -1, True) + _check_branch_cut(np.arctan, [0-2j, 2j], [1, 1], -1, 1, True) + + _check_branch_cut(np.arcsinh, [0-2j, 2j], [1, 1], -1, 1, True) + _check_branch_cut(np.arccosh, [ -1, 0.5], [1j, 1j], 1, -1, True) + _check_branch_cut(np.arctanh, [ -2, 2], [1j, 1j], 1, -1, True) + + # check against bogus branch cuts: assert continuity between quadrants + _check_branch_cut(np.arcsin, [0-2j, 2j], [ 1, 1], 1, 1) + _check_branch_cut(np.arccos, [0-2j, 2j], [ 1, 1], 1, 1) + _check_branch_cut(np.arctan, [ -2, 2], [1j, 1j], 1, 1) + + _check_branch_cut(np.arcsinh, [ -2, 2, 0], [1j, 1j, 1], 1, 1) + _check_branch_cut(np.arccosh, [0-2j, 2j, 2], [1, 1, 1j], 1, 1) + _check_branch_cut(np.arctanh, [0-2j, 2j, 0], [1, 1, 1j], 1, 1) + + @pytest.mark.xfail(IS_MUSL, reason="gh23049") + @pytest.mark.xfail(IS_WASM, reason="doesn't work") + def test_branch_cuts_complex64(self): + # check branch cuts and continuity on them + _check_branch_cut(np.log, -0.5, 1j, 1, -1, True, np.complex64) + _check_branch_cut(np.log2, -0.5, 1j, 1, -1, True, np.complex64) + _check_branch_cut(np.log10, -0.5, 1j, 1, -1, True, np.complex64) + _check_branch_cut(np.log1p, -1.5, 1j, 1, -1, True, np.complex64) + _check_branch_cut(np.sqrt, -0.5, 1j, 1, -1, True, np.complex64) + + _check_branch_cut(np.arcsin, [ -2, 2], [1j, 1j], 1, -1, True, np.complex64) + _check_branch_cut(np.arccos, [ -2, 2], [1j, 1j], 1, -1, True, np.complex64) + _check_branch_cut(np.arctan, [0-2j, 2j], [1, 1], -1, 1, True, np.complex64) + + _check_branch_cut(np.arcsinh, [0-2j, 2j], [1, 1], -1, 1, True, np.complex64) + _check_branch_cut(np.arccosh, [ -1, 0.5], [1j, 1j], 1, -1, True, np.complex64) + _check_branch_cut(np.arctanh, [ -2, 2], [1j, 1j], 1, -1, True, np.complex64) + + # check against bogus branch cuts: assert continuity between quadrants + _check_branch_cut(np.arcsin, [0-2j, 2j], [ 1, 1], 1, 1, False, np.complex64) + _check_branch_cut(np.arccos, [0-2j, 2j], [ 1, 1], 1, 1, False, np.complex64) + _check_branch_cut(np.arctan, [ -2, 2], [1j, 1j], 1, 1, False, np.complex64) + + _check_branch_cut(np.arcsinh, [ -2, 2, 0], [1j, 1j, 1], 1, 1, False, np.complex64) + _check_branch_cut(np.arccosh, [0-2j, 2j, 2], [1, 1, 1j], 1, 1, False, np.complex64) + _check_branch_cut(np.arctanh, [0-2j, 2j, 0], [1, 1, 1j], 1, 1, False, np.complex64) + + def test_against_cmath(self): + import cmath + + points = [-1-1j, -1+1j, +1-1j, +1+1j] + name_map = {'arcsin': 'asin', 'arccos': 'acos', 'arctan': 'atan', + 'arcsinh': 'asinh', 'arccosh': 'acosh', 'arctanh': 'atanh'} + atol = 4*np.finfo(complex).eps + for func in self.funcs: + fname = func.__name__.split('.')[-1] + cname = name_map.get(fname, fname) + try: + cfunc = getattr(cmath, cname) + except AttributeError: + continue + for p in points: + a = complex(func(np.complex_(p))) + b = cfunc(p) + assert_( + abs(a - b) < atol, + "%s %s: %s; cmath: %s" % (fname, p, a, b) + ) + + @pytest.mark.xfail( + # manylinux2014 uses glibc2.17 + _glibc_older_than("2.18"), + reason="Older glibc versions are imprecise (maybe passes with SIMD?)" + ) + @pytest.mark.xfail(IS_MUSL, reason="gh23049") + @pytest.mark.xfail(IS_WASM, reason="doesn't work") + @pytest.mark.parametrize('dtype', [np.complex64, np.complex_, np.longcomplex]) + def test_loss_of_precision(self, dtype): + """Check loss of precision in complex arc* functions""" + + # Check against known-good functions + + info = np.finfo(dtype) + real_dtype = dtype(0.).real.dtype + eps = info.eps + + def check(x, rtol): + x = x.astype(real_dtype) + + z = x.astype(dtype) + d = np.absolute(np.arcsinh(x)/np.arcsinh(z).real - 1) + assert_(np.all(d < rtol), (np.argmax(d), x[np.argmax(d)], d.max(), + 'arcsinh')) + + z = (1j*x).astype(dtype) + d = np.absolute(np.arcsinh(x)/np.arcsin(z).imag - 1) + assert_(np.all(d < rtol), (np.argmax(d), x[np.argmax(d)], d.max(), + 'arcsin')) + + z = x.astype(dtype) + d = np.absolute(np.arctanh(x)/np.arctanh(z).real - 1) + assert_(np.all(d < rtol), (np.argmax(d), x[np.argmax(d)], d.max(), + 'arctanh')) + + z = (1j*x).astype(dtype) + d = np.absolute(np.arctanh(x)/np.arctan(z).imag - 1) + assert_(np.all(d < rtol), (np.argmax(d), x[np.argmax(d)], d.max(), + 'arctan')) + + # The switchover was chosen as 1e-3; hence there can be up to + # ~eps/1e-3 of relative cancellation error before it + + x_series = np.logspace(-20, -3.001, 200) + x_basic = np.logspace(-2.999, 0, 10, endpoint=False) + + if dtype is np.longcomplex: + if bad_arcsinh(): + pytest.skip("Trig functions of np.longcomplex values known " + "to be inaccurate on aarch64 and PPC for some " + "compilation configurations.") + # It's not guaranteed that the system-provided arc functions + # are accurate down to a few epsilons. (Eg. on Linux 64-bit) + # So, give more leeway for long complex tests here: + check(x_series, 50.0*eps) + else: + check(x_series, 2.1*eps) + check(x_basic, 2.0*eps/1e-3) + + # Check a few points + + z = np.array([1e-5*(1+1j)], dtype=dtype) + p = 9.999999999333333333e-6 + 1.000000000066666666e-5j + d = np.absolute(1-np.arctanh(z)/p) + assert_(np.all(d < 1e-15)) + + p = 1.0000000000333333333e-5 + 9.999999999666666667e-6j + d = np.absolute(1-np.arcsinh(z)/p) + assert_(np.all(d < 1e-15)) + + p = 9.999999999333333333e-6j + 1.000000000066666666e-5 + d = np.absolute(1-np.arctan(z)/p) + assert_(np.all(d < 1e-15)) + + p = 1.0000000000333333333e-5j + 9.999999999666666667e-6 + d = np.absolute(1-np.arcsin(z)/p) + assert_(np.all(d < 1e-15)) + + # Check continuity across switchover points + + def check(func, z0, d=1): + z0 = np.asarray(z0, dtype=dtype) + zp = z0 + abs(z0) * d * eps * 2 + zm = z0 - abs(z0) * d * eps * 2 + assert_(np.all(zp != zm), (zp, zm)) + + # NB: the cancellation error at the switchover is at least eps + good = (abs(func(zp) - func(zm)) < 2*eps) + assert_(np.all(good), (func, z0[~good])) + + for func in (np.arcsinh, np.arcsinh, np.arcsin, np.arctanh, np.arctan): + pts = [rp+1j*ip for rp in (-1e-3, 0, 1e-3) for ip in(-1e-3, 0, 1e-3) + if rp != 0 or ip != 0] + check(func, pts, 1) + check(func, pts, 1j) + check(func, pts, 1+1j) + + @np.errstate(all="ignore") + def test_promotion_corner_cases(self): + for func in self.funcs: + assert func(np.float16(1)).dtype == np.float16 + # Integer to low precision float promotion is a dubious choice: + assert func(np.uint8(1)).dtype == np.float16 + assert func(np.int16(1)).dtype == np.float32 + + +class TestAttributes: + def test_attributes(self): + add = ncu.add + assert_equal(add.__name__, 'add') + assert_(add.ntypes >= 18) # don't fail if types added + assert_('ii->i' in add.types) + assert_equal(add.nin, 2) + assert_equal(add.nout, 1) + assert_equal(add.identity, 0) + + def test_doc(self): + # don't bother checking the long list of kwargs, which are likely to + # change + assert_(ncu.add.__doc__.startswith( + "add(x1, x2, /, out=None, *, where=True")) + assert_(ncu.frexp.__doc__.startswith( + "frexp(x[, out1, out2], / [, out=(None, None)], *, where=True")) + + +class TestSubclass: + + def test_subclass_op(self): + + class simple(np.ndarray): + def __new__(subtype, shape): + self = np.ndarray.__new__(subtype, shape, dtype=object) + self.fill(0) + return self + + a = simple((3, 4)) + assert_equal(a+a, a) + + +class TestFrompyfunc: + + def test_identity(self): + def mul(a, b): + return a * b + + # with identity=value + mul_ufunc = np.frompyfunc(mul, nin=2, nout=1, identity=1) + assert_equal(mul_ufunc.reduce([2, 3, 4]), 24) + assert_equal(mul_ufunc.reduce(np.ones((2, 2)), axis=(0, 1)), 1) + assert_equal(mul_ufunc.reduce([]), 1) + + # with identity=None (reorderable) + mul_ufunc = np.frompyfunc(mul, nin=2, nout=1, identity=None) + assert_equal(mul_ufunc.reduce([2, 3, 4]), 24) + assert_equal(mul_ufunc.reduce(np.ones((2, 2)), axis=(0, 1)), 1) + assert_raises(ValueError, lambda: mul_ufunc.reduce([])) + + # with no identity (not reorderable) + mul_ufunc = np.frompyfunc(mul, nin=2, nout=1) + assert_equal(mul_ufunc.reduce([2, 3, 4]), 24) + assert_raises(ValueError, lambda: mul_ufunc.reduce(np.ones((2, 2)), axis=(0, 1))) + assert_raises(ValueError, lambda: mul_ufunc.reduce([])) + + +def _check_branch_cut(f, x0, dx, re_sign=1, im_sign=-1, sig_zero_ok=False, + dtype=complex): + """ + Check for a branch cut in a function. + + Assert that `x0` lies on a branch cut of function `f` and `f` is + continuous from the direction `dx`. + + Parameters + ---------- + f : func + Function to check + x0 : array-like + Point on branch cut + dx : array-like + Direction to check continuity in + re_sign, im_sign : {1, -1} + Change of sign of the real or imaginary part expected + sig_zero_ok : bool + Whether to check if the branch cut respects signed zero (if applicable) + dtype : dtype + Dtype to check (should be complex) + + """ + x0 = np.atleast_1d(x0).astype(dtype) + dx = np.atleast_1d(dx).astype(dtype) + + if np.dtype(dtype).char == 'F': + scale = np.finfo(dtype).eps * 1e2 + atol = np.float32(1e-2) + else: + scale = np.finfo(dtype).eps * 1e3 + atol = 1e-4 + + y0 = f(x0) + yp = f(x0 + dx*scale*np.absolute(x0)/np.absolute(dx)) + ym = f(x0 - dx*scale*np.absolute(x0)/np.absolute(dx)) + + assert_(np.all(np.absolute(y0.real - yp.real) < atol), (y0, yp)) + assert_(np.all(np.absolute(y0.imag - yp.imag) < atol), (y0, yp)) + assert_(np.all(np.absolute(y0.real - ym.real*re_sign) < atol), (y0, ym)) + assert_(np.all(np.absolute(y0.imag - ym.imag*im_sign) < atol), (y0, ym)) + + if sig_zero_ok: + # check that signed zeros also work as a displacement + jr = (x0.real == 0) & (dx.real != 0) + ji = (x0.imag == 0) & (dx.imag != 0) + if np.any(jr): + x = x0[jr] + x.real = np.NZERO + ym = f(x) + assert_(np.all(np.absolute(y0[jr].real - ym.real*re_sign) < atol), (y0[jr], ym)) + assert_(np.all(np.absolute(y0[jr].imag - ym.imag*im_sign) < atol), (y0[jr], ym)) + + if np.any(ji): + x = x0[ji] + x.imag = np.NZERO + ym = f(x) + assert_(np.all(np.absolute(y0[ji].real - ym.real*re_sign) < atol), (y0[ji], ym)) + assert_(np.all(np.absolute(y0[ji].imag - ym.imag*im_sign) < atol), (y0[ji], ym)) + +def test_copysign(): + assert_(np.copysign(1, -1) == -1) + with np.errstate(divide="ignore"): + assert_(1 / np.copysign(0, -1) < 0) + assert_(1 / np.copysign(0, 1) > 0) + assert_(np.signbit(np.copysign(np.nan, -1))) + assert_(not np.signbit(np.copysign(np.nan, 1))) + +def _test_nextafter(t): + one = t(1) + two = t(2) + zero = t(0) + eps = np.finfo(t).eps + assert_(np.nextafter(one, two) - one == eps) + assert_(np.nextafter(one, zero) - one < 0) + assert_(np.isnan(np.nextafter(np.nan, one))) + assert_(np.isnan(np.nextafter(one, np.nan))) + assert_(np.nextafter(one, one) == one) + +def test_nextafter(): + return _test_nextafter(np.float64) + + +def test_nextafterf(): + return _test_nextafter(np.float32) + + +@pytest.mark.skipif(np.finfo(np.double) == np.finfo(np.longdouble), + reason="long double is same as double") +@pytest.mark.xfail(condition=platform.machine().startswith("ppc64"), + reason="IBM double double") +def test_nextafterl(): + return _test_nextafter(np.longdouble) + + +def test_nextafter_0(): + for t, direction in itertools.product(np.sctypes['float'], (1, -1)): + # The value of tiny for double double is NaN, so we need to pass the + # assert + with suppress_warnings() as sup: + sup.filter(UserWarning) + if not np.isnan(np.finfo(t).tiny): + tiny = np.finfo(t).tiny + assert_( + 0. < direction * np.nextafter(t(0), t(direction)) < tiny) + assert_equal(np.nextafter(t(0), t(direction)) / t(2.1), direction * 0.0) + +def _test_spacing(t): + one = t(1) + eps = np.finfo(t).eps + nan = t(np.nan) + inf = t(np.inf) + with np.errstate(invalid='ignore'): + assert_equal(np.spacing(one), eps) + assert_(np.isnan(np.spacing(nan))) + assert_(np.isnan(np.spacing(inf))) + assert_(np.isnan(np.spacing(-inf))) + assert_(np.spacing(t(1e30)) != 0) + +def test_spacing(): + return _test_spacing(np.float64) + +def test_spacingf(): + return _test_spacing(np.float32) + + +@pytest.mark.skipif(np.finfo(np.double) == np.finfo(np.longdouble), + reason="long double is same as double") +@pytest.mark.xfail(condition=platform.machine().startswith("ppc64"), + reason="IBM double double") +def test_spacingl(): + return _test_spacing(np.longdouble) + +def test_spacing_gfortran(): + # Reference from this fortran file, built with gfortran 4.3.3 on linux + # 32bits: + # PROGRAM test_spacing + # INTEGER, PARAMETER :: SGL = SELECTED_REAL_KIND(p=6, r=37) + # INTEGER, PARAMETER :: DBL = SELECTED_REAL_KIND(p=13, r=200) + # + # WRITE(*,*) spacing(0.00001_DBL) + # WRITE(*,*) spacing(1.0_DBL) + # WRITE(*,*) spacing(1000._DBL) + # WRITE(*,*) spacing(10500._DBL) + # + # WRITE(*,*) spacing(0.00001_SGL) + # WRITE(*,*) spacing(1.0_SGL) + # WRITE(*,*) spacing(1000._SGL) + # WRITE(*,*) spacing(10500._SGL) + # END PROGRAM + ref = {np.float64: [1.69406589450860068E-021, + 2.22044604925031308E-016, + 1.13686837721616030E-013, + 1.81898940354585648E-012], + np.float32: [9.09494702E-13, + 1.19209290E-07, + 6.10351563E-05, + 9.76562500E-04]} + + for dt, dec_ in zip([np.float32, np.float64], (10, 20)): + x = np.array([1e-5, 1, 1000, 10500], dtype=dt) + assert_array_almost_equal(np.spacing(x), ref[dt], decimal=dec_) + +def test_nextafter_vs_spacing(): + # XXX: spacing does not handle long double yet + for t in [np.float32, np.float64]: + for _f in [1, 1e-5, 1000]: + f = t(_f) + f1 = t(_f + 1) + assert_(np.nextafter(f, f1) - f == np.spacing(f)) + +def test_pos_nan(): + """Check np.nan is a positive nan.""" + assert_(np.signbit(np.nan) == 0) + +def test_reduceat(): + """Test bug in reduceat when structured arrays are not copied.""" + db = np.dtype([('name', 'S11'), ('time', np.int64), ('value', np.float32)]) + a = np.empty([100], dtype=db) + a['name'] = 'Simple' + a['time'] = 10 + a['value'] = 100 + indx = [0, 7, 15, 25] + + h2 = [] + val1 = indx[0] + for val2 in indx[1:]: + h2.append(np.add.reduce(a['value'][val1:val2])) + val1 = val2 + h2.append(np.add.reduce(a['value'][val1:])) + h2 = np.array(h2) + + # test buffered -- this should work + h1 = np.add.reduceat(a['value'], indx) + assert_array_almost_equal(h1, h2) + + # This is when the error occurs. + # test no buffer + np.setbufsize(32) + h1 = np.add.reduceat(a['value'], indx) + np.setbufsize(np.UFUNC_BUFSIZE_DEFAULT) + assert_array_almost_equal(h1, h2) + +def test_reduceat_empty(): + """Reduceat should work with empty arrays""" + indices = np.array([], 'i4') + x = np.array([], 'f8') + result = np.add.reduceat(x, indices) + assert_equal(result.dtype, x.dtype) + assert_equal(result.shape, (0,)) + # Another case with a slightly different zero-sized shape + x = np.ones((5, 2)) + result = np.add.reduceat(x, [], axis=0) + assert_equal(result.dtype, x.dtype) + assert_equal(result.shape, (0, 2)) + result = np.add.reduceat(x, [], axis=1) + assert_equal(result.dtype, x.dtype) + assert_equal(result.shape, (5, 0)) + +def test_complex_nan_comparisons(): + nans = [complex(np.nan, 0), complex(0, np.nan), complex(np.nan, np.nan)] + fins = [complex(1, 0), complex(-1, 0), complex(0, 1), complex(0, -1), + complex(1, 1), complex(-1, -1), complex(0, 0)] + + with np.errstate(invalid='ignore'): + for x in nans + fins: + x = np.array([x]) + for y in nans + fins: + y = np.array([y]) + + if np.isfinite(x) and np.isfinite(y): + continue + + assert_equal(x < y, False, err_msg="%r < %r" % (x, y)) + assert_equal(x > y, False, err_msg="%r > %r" % (x, y)) + assert_equal(x <= y, False, err_msg="%r <= %r" % (x, y)) + assert_equal(x >= y, False, err_msg="%r >= %r" % (x, y)) + assert_equal(x == y, False, err_msg="%r == %r" % (x, y)) + + +def test_rint_big_int(): + # np.rint bug for large integer values on Windows 32-bit and MKL + # https://github.com/numpy/numpy/issues/6685 + val = 4607998452777363968 + # This is exactly representable in floating point + assert_equal(val, int(float(val))) + # Rint should not change the value + assert_equal(val, np.rint(val)) + + +@pytest.mark.parametrize('ftype', [np.float32, np.float64]) +def test_memoverlap_accumulate(ftype): + # Reproduces bug https://github.com/numpy/numpy/issues/15597 + arr = np.array([0.61, 0.60, 0.77, 0.41, 0.19], dtype=ftype) + out_max = np.array([0.61, 0.61, 0.77, 0.77, 0.77], dtype=ftype) + out_min = np.array([0.61, 0.60, 0.60, 0.41, 0.19], dtype=ftype) + assert_equal(np.maximum.accumulate(arr), out_max) + assert_equal(np.minimum.accumulate(arr), out_min) + +@pytest.mark.parametrize("ufunc, dtype", [ + (ufunc, t[0]) + for ufunc in UFUNCS_BINARY_ACC + for t in ufunc.types + if t[-1] == '?' and t[0] not in 'DFGMmO' +]) +def test_memoverlap_accumulate_cmp(ufunc, dtype): + if ufunc.signature: + pytest.skip('For generic signatures only') + for size in (2, 8, 32, 64, 128, 256): + arr = np.array([0, 1, 1]*size, dtype=dtype) + acc = ufunc.accumulate(arr, dtype='?') + acc_u8 = acc.view(np.uint8) + exp = np.array(list(itertools.accumulate(arr, ufunc)), dtype=np.uint8) + assert_equal(exp, acc_u8) + +@pytest.mark.parametrize("ufunc, dtype", [ + (ufunc, t[0]) + for ufunc in UFUNCS_BINARY_ACC + for t in ufunc.types + if t[0] == t[1] and t[0] == t[-1] and t[0] not in 'DFGMmO?' +]) +def test_memoverlap_accumulate_symmetric(ufunc, dtype): + if ufunc.signature: + pytest.skip('For generic signatures only') + with np.errstate(all='ignore'): + for size in (2, 8, 32, 64, 128, 256): + arr = np.array([0, 1, 2]*size).astype(dtype) + acc = ufunc.accumulate(arr, dtype=dtype) + exp = np.array(list(itertools.accumulate(arr, ufunc)), dtype=dtype) + assert_equal(exp, acc) + +def test_signaling_nan_exceptions(): + with assert_no_warnings(): + a = np.ndarray(shape=(), dtype='float32', buffer=b'\x00\xe0\xbf\xff') + np.isnan(a) + +@pytest.mark.parametrize("arr", [ + np.arange(2), + np.matrix([0, 1]), + np.matrix([[0, 1], [2, 5]]), + ]) +def test_outer_subclass_preserve(arr): + # for gh-8661 + class foo(np.ndarray): pass + actual = np.multiply.outer(arr.view(foo), arr.view(foo)) + assert actual.__class__.__name__ == 'foo' + +def test_outer_bad_subclass(): + class BadArr1(np.ndarray): + def __array_finalize__(self, obj): + # The outer call reshapes to 3 dims, try to do a bad reshape. + if self.ndim == 3: + self.shape = self.shape + (1,) + + def __array_prepare__(self, obj, context=None): + return obj + + class BadArr2(np.ndarray): + def __array_finalize__(self, obj): + if isinstance(obj, BadArr2): + # outer inserts 1-sized dims. In that case disturb them. + if self.shape[-1] == 1: + self.shape = self.shape[::-1] + + def __array_prepare__(self, obj, context=None): + return obj + + for cls in [BadArr1, BadArr2]: + arr = np.ones((2, 3)).view(cls) + with assert_raises(TypeError) as a: + # The first array gets reshaped (not the second one) + np.add.outer(arr, [1, 2]) + + # This actually works, since we only see the reshaping error: + arr = np.ones((2, 3)).view(cls) + assert type(np.add.outer([1, 2], arr)) is cls + +def test_outer_exceeds_maxdims(): + deep = np.ones((1,) * 17) + with assert_raises(ValueError): + np.add.outer(deep, deep) + +def test_bad_legacy_ufunc_silent_errors(): + # legacy ufuncs can't report errors and NumPy can't check if the GIL + # is released. So NumPy has to check after the GIL is released just to + # cover all bases. `np.power` uses/used to use this. + arr = np.arange(3).astype(np.float64) + + with pytest.raises(RuntimeError, match=r"How unexpected :\)!"): + ncu_tests.always_error(arr, arr) + + with pytest.raises(RuntimeError, match=r"How unexpected :\)!"): + # not contiguous means the fast-path cannot be taken + non_contig = arr.repeat(20).reshape(-1, 6)[:, ::2] + ncu_tests.always_error(non_contig, arr) + + with pytest.raises(RuntimeError, match=r"How unexpected :\)!"): + ncu_tests.always_error.outer(arr, arr) + + with pytest.raises(RuntimeError, match=r"How unexpected :\)!"): + ncu_tests.always_error.reduce(arr) + + with pytest.raises(RuntimeError, match=r"How unexpected :\)!"): + ncu_tests.always_error.reduceat(arr, [0, 1]) + + with pytest.raises(RuntimeError, match=r"How unexpected :\)!"): + ncu_tests.always_error.accumulate(arr) + + with pytest.raises(RuntimeError, match=r"How unexpected :\)!"): + ncu_tests.always_error.at(arr, [0, 1, 2], arr) + + +@pytest.mark.parametrize('x1', [np.arange(3.0), [0.0, 1.0, 2.0]]) +def test_bad_legacy_gufunc_silent_errors(x1): + # Verify that an exception raised in a gufunc loop propagates correctly. + # The signature of always_error_gufunc is '(i),()->()'. + with pytest.raises(RuntimeError, match=r"How unexpected :\)!"): + ncu_tests.always_error_gufunc(x1, 0.0) diff --git a/shared/package-files/86/86e21b3371582371c9ea73f2eb831b9f9bddfb3556ca8317d09b7c69ca6171a3/macrodata_jmulti_ncs_granger_causality_realcons_realinv.txt b/shared/package-files/86/86e21b3371582371c9ea73f2eb831b9f9bddfb3556ca8317d09b7c69ca6171a3/macrodata_jmulti_ncs_granger_causality_realcons_realinv.txt new file mode 100644 index 0000000000000000000000000000000000000000..9c78f302b286a8d48438b4a41b856c52a64e9dfe --- /dev/null +++ b/shared/package-files/86/86e21b3371582371c9ea73f2eb831b9f9bddfb3556ca8317d09b7c69ca6171a3/macrodata_jmulti_ncs_granger_causality_realcons_realinv.txt @@ -0,0 +1,13 @@ +*** Sat, 3 Sep 2016 22:20:03 *** +TEST FOR GRANGER-CAUSALITY: +H0: "realcons, realinv" do not Granger-cause "realgdp" + +Test statistic l = 10.8067 +pval-F( l; 8, 552) = 0.0000 + +TEST FOR INSTANTANEOUS CAUSALITY: +H0: No instantaneous causality between "realcons, realinv" and "realgdp" + +Test statistic: c = 86.1955 +pval-Chi( c; 2) = 0.0000 + diff --git a/shared/package-files/86/86e38de9b166263e159bbafd6e58ece52473b854d1a75a0f89a83f9aaf433436/models.py b/shared/package-files/86/86e38de9b166263e159bbafd6e58ece52473b854d1a75a0f89a83f9aaf433436/models.py new file mode 100644 index 0000000000000000000000000000000000000000..1d09bb118273b25d61b34cb15ba09a65c2db1c1e --- /dev/null +++ b/shared/package-files/86/86e38de9b166263e159bbafd6e58ece52473b854d1a75a0f89a83f9aaf433436/models.py @@ -0,0 +1,662 @@ +"""Variation fonts interpolation models.""" + +from __future__ import annotations + +__all__ = [ + "normalizeValue", + "normalizeLocation", + "supportScalar", + "piecewiseLinearMap", + "VariationModel", +] + +from collections.abc import Mapping +from typing import TYPE_CHECKING +from fontTools.misc.roundTools import noRound +from .errors import VariationModelError + +if TYPE_CHECKING: + from typing import Mapping, Sequence + + +def nonNone(lst): + return [l for l in lst if l is not None] + + +def allNone(lst): + return all(l is None for l in lst) + + +def allEqualTo(ref, lst, mapper=None): + if mapper is None: + return all(ref == item for item in lst) + + mapped = mapper(ref) + return all(mapped == mapper(item) for item in lst) + + +def allEqual(lst, mapper=None): + if not lst: + return True + it = iter(lst) + try: + first = next(it) + except StopIteration: + return True + return allEqualTo(first, it, mapper=mapper) + + +def subList(truth, lst): + assert len(truth) == len(lst) + return [l for l, t in zip(lst, truth) if t] + + +def normalizeValue( + v: float, triple: Sequence[float], extrapolate: bool = False +) -> float: + """Normalizes value based on a min/default/max triple. + + >>> normalizeValue(400, (100, 400, 900)) + 0.0 + >>> normalizeValue(100, (100, 400, 900)) + -1.0 + >>> normalizeValue(650, (100, 400, 900)) + 0.5 + """ + lower, default, upper = triple + if not (lower <= default <= upper): + raise ValueError( + f"Invalid axis values, must be minimum, default, maximum: " + f"{lower:3.3f}, {default:3.3f}, {upper:3.3f}" + ) + if not extrapolate: + v = max(min(v, upper), lower) + + if v == default or lower == upper: + return 0.0 + + if (v < default and lower != default) or (v > default and upper == default): + return (v - default) / (default - lower) + else: + assert (v > default and upper != default) or ( + v < default and lower == default + ), f"Ooops... v={v}, triple=({lower}, {default}, {upper})" + return (v - default) / (upper - default) + + +def normalizeLocation( + location: Mapping[str, float], + axes: Mapping[str, tuple[float, float, float]], + extrapolate: bool = False, + *, + validate: bool = False, +) -> dict[str, float]: + """Normalizes location based on axis min/default/max values from axes. + + >>> axes = {"wght": (100, 400, 900)} + >>> normalizeLocation({"wght": 400}, axes) + {'wght': 0.0} + >>> normalizeLocation({"wght": 100}, axes) + {'wght': -1.0} + >>> normalizeLocation({"wght": 900}, axes) + {'wght': 1.0} + >>> normalizeLocation({"wght": 650}, axes) + {'wght': 0.5} + >>> normalizeLocation({"wght": 1000}, axes) + {'wght': 1.0} + >>> normalizeLocation({"wght": 0}, axes) + {'wght': -1.0} + >>> axes = {"wght": (0, 0, 1000)} + >>> normalizeLocation({"wght": 0}, axes) + {'wght': 0.0} + >>> normalizeLocation({"wght": -1}, axes) + {'wght': 0.0} + >>> normalizeLocation({"wght": 1000}, axes) + {'wght': 1.0} + >>> normalizeLocation({"wght": 500}, axes) + {'wght': 0.5} + >>> normalizeLocation({"wght": 1001}, axes) + {'wght': 1.0} + >>> axes = {"wght": (0, 1000, 1000)} + >>> normalizeLocation({"wght": 0}, axes) + {'wght': -1.0} + >>> normalizeLocation({"wght": -1}, axes) + {'wght': -1.0} + >>> normalizeLocation({"wght": 500}, axes) + {'wght': -0.5} + >>> normalizeLocation({"wght": 1000}, axes) + {'wght': 0.0} + >>> normalizeLocation({"wght": 1001}, axes) + {'wght': 0.0} + """ + if validate: + assert set(location.keys()) <= set(axes.keys()), set(location.keys()) - set( + axes.keys() + ) + out = {} + for tag, triple in axes.items(): + v = location.get(tag, triple[1]) + out[tag] = normalizeValue(v, triple, extrapolate=extrapolate) + return out + + +def supportScalar(location, support, ot=True, extrapolate=False, axisRanges=None): + """Returns the scalar multiplier at location, for a master + with support. If ot is True, then a peak value of zero + for support of an axis means "axis does not participate". That + is how OpenType Variation Font technology works. + + If extrapolate is True, axisRanges must be a dict that maps axis + names to (axisMin, axisMax) tuples. + + >>> supportScalar({}, {}) + 1.0 + >>> supportScalar({'wght':.2}, {}) + 1.0 + >>> supportScalar({'wght':.2}, {'wght':(0,2,3)}) + 0.1 + >>> supportScalar({'wght':2.5}, {'wght':(0,2,4)}) + 0.75 + >>> supportScalar({'wght':2.5, 'wdth':0}, {'wght':(0,2,4), 'wdth':(-1,0,+1)}) + 0.75 + >>> supportScalar({'wght':2.5, 'wdth':.5}, {'wght':(0,2,4), 'wdth':(-1,0,+1)}, ot=False) + 0.375 + >>> supportScalar({'wght':2.5, 'wdth':0}, {'wght':(0,2,4), 'wdth':(-1,0,+1)}) + 0.75 + >>> supportScalar({'wght':2.5, 'wdth':.5}, {'wght':(0,2,4), 'wdth':(-1,0,+1)}) + 0.75 + >>> supportScalar({'wght':3}, {'wght':(0,1,2)}, extrapolate=True, axisRanges={'wght':(0, 2)}) + -1.0 + >>> supportScalar({'wght':-1}, {'wght':(0,1,2)}, extrapolate=True, axisRanges={'wght':(0, 2)}) + -1.0 + >>> supportScalar({'wght':3}, {'wght':(0,2,2)}, extrapolate=True, axisRanges={'wght':(0, 2)}) + 1.5 + >>> supportScalar({'wght':-1}, {'wght':(0,2,2)}, extrapolate=True, axisRanges={'wght':(0, 2)}) + -0.5 + """ + if extrapolate and axisRanges is None: + raise TypeError("axisRanges must be passed when extrapolate is True") + scalar = 1.0 + for axis, (lower, peak, upper) in support.items(): + if ot: + # OpenType-specific case handling + if peak == 0.0: + continue + if lower > peak or peak > upper: + continue + if lower < 0.0 and upper > 0.0: + continue + v = location.get(axis, 0.0) + else: + assert axis in location + v = location[axis] + if v == peak: + continue + + if extrapolate: + axisMin, axisMax = axisRanges[axis] + if v < axisMin and lower <= axisMin: + if peak <= axisMin and peak < upper: + scalar *= (v - upper) / (peak - upper) + continue + elif axisMin < peak: + scalar *= (v - lower) / (peak - lower) + continue + elif axisMax < v and axisMax <= upper: + if axisMax <= peak and lower < peak: + scalar *= (v - lower) / (peak - lower) + continue + elif peak < axisMax: + scalar *= (v - upper) / (peak - upper) + continue + + if v <= lower or upper <= v: + scalar = 0.0 + break + + if v < peak: + scalar *= (v - lower) / (peak - lower) + else: # v > peak + scalar *= (v - upper) / (peak - upper) + return scalar + + +class VariationModel(object): + """Locations must have the base master at the origin (ie. 0). + + If axis-ranges are not provided, values are assumed to be normalized to + the range [-1, 1]. + + If the extrapolate argument is set to True, then values are extrapolated + outside the axis range. + + >>> from pprint import pprint + >>> axisRanges = {'wght': (-180, +180), 'wdth': (-1, +1)} + >>> locations = [ \ + {'wght':100}, \ + {'wght':-100}, \ + {'wght':-180}, \ + {'wdth':+.3}, \ + {'wght':+120,'wdth':.3}, \ + {'wght':+120,'wdth':.2}, \ + {}, \ + {'wght':+180,'wdth':.3}, \ + {'wght':+180}, \ + ] + >>> model = VariationModel(locations, axisOrder=['wght'], axisRanges=axisRanges) + >>> pprint(model.locations) + [{}, + {'wght': -100}, + {'wght': -180}, + {'wght': 100}, + {'wght': 180}, + {'wdth': 0.3}, + {'wdth': 0.3, 'wght': 180}, + {'wdth': 0.3, 'wght': 120}, + {'wdth': 0.2, 'wght': 120}] + >>> pprint(model.deltaWeights) + [{}, + {0: 1.0}, + {0: 1.0}, + {0: 1.0}, + {0: 1.0}, + {0: 1.0}, + {0: 1.0, 4: 1.0, 5: 1.0}, + {0: 1.0, 3: 0.75, 4: 0.25, 5: 1.0, 6: 0.6666666666666666}, + {0: 1.0, + 3: 0.75, + 4: 0.25, + 5: 0.6666666666666667, + 6: 0.4444444444444445, + 7: 0.6666666666666667}] + """ + + def __init__( + self, locations, axisOrder=None, extrapolate=False, *, axisRanges=None + ): + locations = [{k: v for k, v in loc.items() if v != 0.0} for loc in locations] + + if len(set(tuple(sorted(l.items())) for l in locations)) != len(locations): + raise VariationModelError("Locations must be unique.") + + self.origLocations = locations + self.axisOrder = axisOrder if axisOrder is not None else [] + self.extrapolate = extrapolate + if axisRanges is None: + if extrapolate: + axisRanges = self.computeAxisRanges(locations) + else: + allAxes = {axis for loc in locations for axis in loc.keys()} + axisRanges = {axis: (-1, 1) for axis in allAxes} + self.axisRanges = axisRanges + keyFunc = self.getMasterLocationsSortKeyFunc( + locations, axisOrder=self.axisOrder + ) + self.locations = sorted(locations, key=keyFunc) + + # Mapping from user's master order to our master order + self.mapping = [self.locations.index(l) for l in locations] + self.reverseMapping = [locations.index(l) for l in self.locations] + + self._computeMasterSupports() + self._subModels = {} + + def getSubModel(self, items): + """Return a sub-model and the items that are not None. + + The sub-model is necessary for working with the subset + of items when some are None. + + The sub-model is cached.""" + if None not in items: + return self, items + key = tuple(v is not None for v in items) + subModel = self._subModels.get(key) + if subModel is None: + subModel = VariationModel( + subList(key, self.origLocations), + self.axisOrder, + extrapolate=self.extrapolate, + axisRanges=self.axisRanges, + ) + self._subModels[key] = subModel + return subModel, subList(key, items) + + @staticmethod + def computeAxisRanges(locations): + axisRanges = {} + allAxes = {axis for loc in locations for axis in loc.keys()} + for loc in locations: + for axis in allAxes: + value = loc.get(axis, 0) + axisMin, axisMax = axisRanges.get(axis, (value, value)) + axisRanges[axis] = min(value, axisMin), max(value, axisMax) + return axisRanges + + @staticmethod + def getMasterLocationsSortKeyFunc(locations, axisOrder=[]): + if {} not in locations: + raise VariationModelError("Base master not found.") + axisPoints = {} + for loc in locations: + if len(loc) != 1: + continue + axis = next(iter(loc)) + value = loc[axis] + if axis not in axisPoints: + axisPoints[axis] = {0.0} + assert ( + value not in axisPoints[axis] + ), 'Value "%s" in axisPoints["%s"] --> %s' % (value, axis, axisPoints) + axisPoints[axis].add(value) + + def getKey(axisPoints, axisOrder): + def sign(v): + return -1 if v < 0 else +1 if v > 0 else 0 + + def key(loc): + rank = len(loc) + onPointAxes = [ + axis + for axis, value in loc.items() + if axis in axisPoints and value in axisPoints[axis] + ] + orderedAxes = [axis for axis in axisOrder if axis in loc] + orderedAxes.extend( + [axis for axis in sorted(loc.keys()) if axis not in axisOrder] + ) + return ( + rank, # First, order by increasing rank + -len(onPointAxes), # Next, by decreasing number of onPoint axes + tuple( + axisOrder.index(axis) if axis in axisOrder else 0x10000 + for axis in orderedAxes + ), # Next, by known axes + tuple(orderedAxes), # Next, by all axes + tuple( + sign(loc[axis]) for axis in orderedAxes + ), # Next, by signs of axis values + tuple( + abs(loc[axis]) for axis in orderedAxes + ), # Next, by absolute value of axis values + ) + + return key + + ret = getKey(axisPoints, axisOrder) + return ret + + def reorderMasters(self, master_list, mapping): + # For changing the master data order without + # recomputing supports and deltaWeights. + new_list = [master_list[idx] for idx in mapping] + self.origLocations = [self.origLocations[idx] for idx in mapping] + locations = [ + {k: v for k, v in loc.items() if v != 0.0} for loc in self.origLocations + ] + self.mapping = [self.locations.index(l) for l in locations] + self.reverseMapping = [locations.index(l) for l in self.locations] + self._subModels = {} + return new_list + + def _computeMasterSupports(self): + self.supports = [] + regions = self._locationsToRegions() + for i, region in enumerate(regions): + locAxes = set(region.keys()) + # Walk over previous masters now + for prev_region in regions[:i]: + # Master with different axes do not participate + if set(prev_region.keys()) != locAxes: + continue + # If it's NOT in the current box, it does not participate + relevant = True + for axis, (lower, peak, upper) in region.items(): + if not ( + prev_region[axis][1] == peak + or lower < prev_region[axis][1] < upper + ): + relevant = False + break + if not relevant: + continue + + # Split the box for new master; split in whatever direction + # that has largest range ratio. + # + # For symmetry, we actually cut across multiple axes + # if they have the largest, equal, ratio. + # https://github.com/fonttools/fonttools/commit/7ee81c8821671157968b097f3e55309a1faa511e#commitcomment-31054804 + + bestAxes = {} + bestRatio = -1 + for axis in prev_region.keys(): + val = prev_region[axis][1] + assert axis in region + lower, locV, upper = region[axis] + newLower, newUpper = lower, upper + if val < locV: + newLower = val + ratio = (val - locV) / (lower - locV) + elif locV < val: + newUpper = val + ratio = (val - locV) / (upper - locV) + else: # val == locV + # Can't split box in this direction. + continue + if ratio > bestRatio: + bestAxes = {} + bestRatio = ratio + if ratio == bestRatio: + bestAxes[axis] = (newLower, locV, newUpper) + + for axis, triple in bestAxes.items(): + region[axis] = triple + self.supports.append(region) + self._computeDeltaWeights() + + def _locationsToRegions(self): + locations = self.locations + axisRanges = self.axisRanges + + regions = [] + for loc in locations: + region = {} + for axis, locV in loc.items(): + if locV > 0: + region[axis] = (0, locV, axisRanges[axis][1]) + else: + region[axis] = (axisRanges[axis][0], locV, 0) + regions.append(region) + return regions + + def _computeDeltaWeights(self): + self.deltaWeights = [] + for i, loc in enumerate(self.locations): + deltaWeight = {} + # Walk over previous masters now, populate deltaWeight + for j, support in enumerate(self.supports[:i]): + scalar = supportScalar(loc, support) + if scalar: + deltaWeight[j] = scalar + self.deltaWeights.append(deltaWeight) + + def getDeltas(self, masterValues, *, round=noRound): + assert len(masterValues) == len(self.deltaWeights), ( + len(masterValues), + len(self.deltaWeights), + ) + mapping = self.reverseMapping + out = [] + for i, weights in enumerate(self.deltaWeights): + delta = masterValues[mapping[i]] + for j, weight in weights.items(): + if weight == 1: + delta -= out[j] + else: + delta -= out[j] * weight + out.append(round(delta)) + return out + + def getDeltasAndSupports(self, items, *, round=noRound): + model, items = self.getSubModel(items) + return model.getDeltas(items, round=round), model.supports + + def getScalars(self, loc): + """Return scalars for each delta, for the given location. + If interpolating many master-values at the same location, + this function allows speed up by fetching the scalars once + and using them with interpolateFromMastersAndScalars().""" + return [ + supportScalar( + loc, support, extrapolate=self.extrapolate, axisRanges=self.axisRanges + ) + for support in self.supports + ] + + def getMasterScalars(self, targetLocation): + """Return multipliers for each master, for the given location. + If interpolating many master-values at the same location, + this function allows speed up by fetching the scalars once + and using them with interpolateFromValuesAndScalars(). + + Note that the scalars used in interpolateFromMastersAndScalars(), + are *not* the same as the ones returned here. They are the result + of getScalars().""" + out = self.getScalars(targetLocation) + for i, weights in reversed(list(enumerate(self.deltaWeights))): + for j, weight in weights.items(): + out[j] -= out[i] * weight + + out = [out[self.mapping[i]] for i in range(len(out))] + return out + + @staticmethod + def interpolateFromValuesAndScalars(values, scalars): + """Interpolate from values and scalars coefficients. + + If the values are master-values, then the scalars should be + fetched from getMasterScalars(). + + If the values are deltas, then the scalars should be fetched + from getScalars(); in which case this is the same as + interpolateFromDeltasAndScalars(). + """ + v = None + assert len(values) == len(scalars) + for value, scalar in zip(values, scalars): + if not scalar: + continue + contribution = value * scalar + if v is None: + v = contribution + else: + v += contribution + return v + + @staticmethod + def interpolateFromDeltasAndScalars(deltas, scalars): + """Interpolate from deltas and scalars fetched from getScalars().""" + return VariationModel.interpolateFromValuesAndScalars(deltas, scalars) + + def interpolateFromDeltas(self, loc, deltas): + """Interpolate from deltas, at location loc.""" + scalars = self.getScalars(loc) + return self.interpolateFromDeltasAndScalars(deltas, scalars) + + def interpolateFromMasters(self, loc, masterValues, *, round=noRound): + """Interpolate from master-values, at location loc.""" + scalars = self.getMasterScalars(loc) + return self.interpolateFromValuesAndScalars(masterValues, scalars) + + def interpolateFromMastersAndScalars(self, masterValues, scalars, *, round=noRound): + """Interpolate from master-values, and scalars fetched from + getScalars(), which is useful when you want to interpolate + multiple master-values with the same location.""" + deltas = self.getDeltas(masterValues, round=round) + return self.interpolateFromDeltasAndScalars(deltas, scalars) + + +def piecewiseLinearMap(v: float, mapping: Mapping[float, float]) -> float: + keys = mapping.keys() + if not keys: + return v + if v in keys: + return mapping[v] + k = min(keys) + if v < k: + return v + mapping[k] - k + k = max(keys) + if v > k: + return v + mapping[k] - k + # Interpolate + a = max(k for k in keys if k < v) + b = min(k for k in keys if k > v) + va = mapping[a] + vb = mapping[b] + return va + (vb - va) * (v - a) / (b - a) + + +def main(args=None): + """Normalize locations on a given designspace""" + from fontTools import configLogger + import argparse + + parser = argparse.ArgumentParser( + "fonttools varLib.models", + description=main.__doc__, + ) + parser.add_argument( + "--loglevel", + metavar="LEVEL", + default="INFO", + help="Logging level (defaults to INFO)", + ) + + group = parser.add_mutually_exclusive_group(required=True) + group.add_argument("-d", "--designspace", metavar="DESIGNSPACE", type=str) + group.add_argument( + "-l", + "--locations", + metavar="LOCATION", + nargs="+", + help="Master locations as comma-separate coordinates. One must be all zeros.", + ) + + args = parser.parse_args(args) + + configLogger(level=args.loglevel) + from pprint import pprint + + if args.designspace: + from fontTools.designspaceLib import DesignSpaceDocument + + doc = DesignSpaceDocument() + doc.read(args.designspace) + locs = [s.location for s in doc.sources] + print("Original locations:") + pprint(locs) + doc.normalize() + print("Normalized locations:") + locs = [s.location for s in doc.sources] + pprint(locs) + else: + axes = [chr(c) for c in range(ord("A"), ord("Z") + 1)] + locs = [ + dict(zip(axes, (float(v) for v in s.split(",")))) for s in args.locations + ] + + model = VariationModel(locs) + print("Sorted locations:") + pprint(model.locations) + print("Supports:") + pprint(model.supports) + + +if __name__ == "__main__": + import doctest, sys + + if len(sys.argv) > 1: + sys.exit(main()) + + sys.exit(doctest.testmod().failed) diff --git a/shared/package-files/86/86e69ffac79a1799dd4ea7e86817cfb4c324398a2fabb89b265e7e091a105bbb/comparisons.pyi b/shared/package-files/86/86e69ffac79a1799dd4ea7e86817cfb4c324398a2fabb89b265e7e091a105bbb/comparisons.pyi new file mode 100644 index 0000000000000000000000000000000000000000..5765302a02f8a90db8884f68ec1c8bb569f7c47a --- /dev/null +++ b/shared/package-files/86/86e69ffac79a1799dd4ea7e86817cfb4c324398a2fabb89b265e7e091a105bbb/comparisons.pyi @@ -0,0 +1,270 @@ +import sys +import fractions +import decimal +from typing import Any + +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 + +c16 = np.complex128() +f8 = np.float64() +i8 = np.int64() +u8 = np.uint64() + +c8 = np.complex64() +f4 = np.float32() +i4 = np.int32() +u4 = np.uint32() + +dt = np.datetime64(0, "D") +td = np.timedelta64(0, "D") + +b_ = np.bool_() + +b = bool() +c = complex() +f = float() +i = int() + +AR = np.array([0], dtype=np.int64) +AR.setflags(write=False) + +SEQ = (0, 1, 2, 3, 4) + +# object-like comparisons + +assert_type(i8 > fractions.Fraction(1, 5), Any) +assert_type(i8 > [fractions.Fraction(1, 5)], Any) +assert_type(i8 > decimal.Decimal("1.5"), Any) +assert_type(i8 > [decimal.Decimal("1.5")], Any) + +# Time structures + +assert_type(dt > dt, np.bool_) + +assert_type(td > td, np.bool_) +assert_type(td > i, np.bool_) +assert_type(td > i4, np.bool_) +assert_type(td > i8, np.bool_) + +assert_type(td > AR, npt.NDArray[np.bool_]) +assert_type(td > SEQ, npt.NDArray[np.bool_]) +assert_type(AR > SEQ, npt.NDArray[np.bool_]) +assert_type(AR > td, npt.NDArray[np.bool_]) +assert_type(SEQ > td, npt.NDArray[np.bool_]) +assert_type(SEQ > AR, npt.NDArray[np.bool_]) + +# boolean + +assert_type(b_ > b, np.bool_) +assert_type(b_ > b_, np.bool_) +assert_type(b_ > i, np.bool_) +assert_type(b_ > i8, np.bool_) +assert_type(b_ > i4, np.bool_) +assert_type(b_ > u8, np.bool_) +assert_type(b_ > u4, np.bool_) +assert_type(b_ > f, np.bool_) +assert_type(b_ > f8, np.bool_) +assert_type(b_ > f4, np.bool_) +assert_type(b_ > c, np.bool_) +assert_type(b_ > c16, np.bool_) +assert_type(b_ > c8, np.bool_) +assert_type(b_ > AR, npt.NDArray[np.bool_]) +assert_type(b_ > SEQ, npt.NDArray[np.bool_]) + +# Complex + +assert_type(c16 > c16, np.bool_) +assert_type(c16 > f8, np.bool_) +assert_type(c16 > i8, np.bool_) +assert_type(c16 > c8, np.bool_) +assert_type(c16 > f4, np.bool_) +assert_type(c16 > i4, np.bool_) +assert_type(c16 > b_, np.bool_) +assert_type(c16 > b, np.bool_) +assert_type(c16 > c, np.bool_) +assert_type(c16 > f, np.bool_) +assert_type(c16 > i, np.bool_) +assert_type(c16 > AR, npt.NDArray[np.bool_]) +assert_type(c16 > SEQ, npt.NDArray[np.bool_]) + +assert_type(c16 > c16, np.bool_) +assert_type(f8 > c16, np.bool_) +assert_type(i8 > c16, np.bool_) +assert_type(c8 > c16, np.bool_) +assert_type(f4 > c16, np.bool_) +assert_type(i4 > c16, np.bool_) +assert_type(b_ > c16, np.bool_) +assert_type(b > c16, np.bool_) +assert_type(c > c16, np.bool_) +assert_type(f > c16, np.bool_) +assert_type(i > c16, np.bool_) +assert_type(AR > c16, npt.NDArray[np.bool_]) +assert_type(SEQ > c16, npt.NDArray[np.bool_]) + +assert_type(c8 > c16, np.bool_) +assert_type(c8 > f8, np.bool_) +assert_type(c8 > i8, np.bool_) +assert_type(c8 > c8, np.bool_) +assert_type(c8 > f4, np.bool_) +assert_type(c8 > i4, np.bool_) +assert_type(c8 > b_, np.bool_) +assert_type(c8 > b, np.bool_) +assert_type(c8 > c, np.bool_) +assert_type(c8 > f, np.bool_) +assert_type(c8 > i, np.bool_) +assert_type(c8 > AR, npt.NDArray[np.bool_]) +assert_type(c8 > SEQ, npt.NDArray[np.bool_]) + +assert_type(c16 > c8, np.bool_) +assert_type(f8 > c8, np.bool_) +assert_type(i8 > c8, np.bool_) +assert_type(c8 > c8, np.bool_) +assert_type(f4 > c8, np.bool_) +assert_type(i4 > c8, np.bool_) +assert_type(b_ > c8, np.bool_) +assert_type(b > c8, np.bool_) +assert_type(c > c8, np.bool_) +assert_type(f > c8, np.bool_) +assert_type(i > c8, np.bool_) +assert_type(AR > c8, npt.NDArray[np.bool_]) +assert_type(SEQ > c8, npt.NDArray[np.bool_]) + +# Float + +assert_type(f8 > f8, np.bool_) +assert_type(f8 > i8, np.bool_) +assert_type(f8 > f4, np.bool_) +assert_type(f8 > i4, np.bool_) +assert_type(f8 > b_, np.bool_) +assert_type(f8 > b, np.bool_) +assert_type(f8 > c, np.bool_) +assert_type(f8 > f, np.bool_) +assert_type(f8 > i, np.bool_) +assert_type(f8 > AR, npt.NDArray[np.bool_]) +assert_type(f8 > SEQ, npt.NDArray[np.bool_]) + +assert_type(f8 > f8, np.bool_) +assert_type(i8 > f8, np.bool_) +assert_type(f4 > f8, np.bool_) +assert_type(i4 > f8, np.bool_) +assert_type(b_ > f8, np.bool_) +assert_type(b > f8, np.bool_) +assert_type(c > f8, np.bool_) +assert_type(f > f8, np.bool_) +assert_type(i > f8, np.bool_) +assert_type(AR > f8, npt.NDArray[np.bool_]) +assert_type(SEQ > f8, npt.NDArray[np.bool_]) + +assert_type(f4 > f8, np.bool_) +assert_type(f4 > i8, np.bool_) +assert_type(f4 > f4, np.bool_) +assert_type(f4 > i4, np.bool_) +assert_type(f4 > b_, np.bool_) +assert_type(f4 > b, np.bool_) +assert_type(f4 > c, np.bool_) +assert_type(f4 > f, np.bool_) +assert_type(f4 > i, np.bool_) +assert_type(f4 > AR, npt.NDArray[np.bool_]) +assert_type(f4 > SEQ, npt.NDArray[np.bool_]) + +assert_type(f8 > f4, np.bool_) +assert_type(i8 > f4, np.bool_) +assert_type(f4 > f4, np.bool_) +assert_type(i4 > f4, np.bool_) +assert_type(b_ > f4, np.bool_) +assert_type(b > f4, np.bool_) +assert_type(c > f4, np.bool_) +assert_type(f > f4, np.bool_) +assert_type(i > f4, np.bool_) +assert_type(AR > f4, npt.NDArray[np.bool_]) +assert_type(SEQ > f4, npt.NDArray[np.bool_]) + +# Int + +assert_type(i8 > i8, np.bool_) +assert_type(i8 > u8, np.bool_) +assert_type(i8 > i4, np.bool_) +assert_type(i8 > u4, np.bool_) +assert_type(i8 > b_, np.bool_) +assert_type(i8 > b, np.bool_) +assert_type(i8 > c, np.bool_) +assert_type(i8 > f, np.bool_) +assert_type(i8 > i, np.bool_) +assert_type(i8 > AR, npt.NDArray[np.bool_]) +assert_type(i8 > SEQ, npt.NDArray[np.bool_]) + +assert_type(u8 > u8, np.bool_) +assert_type(u8 > i4, np.bool_) +assert_type(u8 > u4, np.bool_) +assert_type(u8 > b_, np.bool_) +assert_type(u8 > b, np.bool_) +assert_type(u8 > c, np.bool_) +assert_type(u8 > f, np.bool_) +assert_type(u8 > i, np.bool_) +assert_type(u8 > AR, npt.NDArray[np.bool_]) +assert_type(u8 > SEQ, npt.NDArray[np.bool_]) + +assert_type(i8 > i8, np.bool_) +assert_type(u8 > i8, np.bool_) +assert_type(i4 > i8, np.bool_) +assert_type(u4 > i8, np.bool_) +assert_type(b_ > i8, np.bool_) +assert_type(b > i8, np.bool_) +assert_type(c > i8, np.bool_) +assert_type(f > i8, np.bool_) +assert_type(i > i8, np.bool_) +assert_type(AR > i8, npt.NDArray[np.bool_]) +assert_type(SEQ > i8, npt.NDArray[np.bool_]) + +assert_type(u8 > u8, np.bool_) +assert_type(i4 > u8, np.bool_) +assert_type(u4 > u8, np.bool_) +assert_type(b_ > u8, np.bool_) +assert_type(b > u8, np.bool_) +assert_type(c > u8, np.bool_) +assert_type(f > u8, np.bool_) +assert_type(i > u8, np.bool_) +assert_type(AR > u8, npt.NDArray[np.bool_]) +assert_type(SEQ > u8, npt.NDArray[np.bool_]) + +assert_type(i4 > i8, np.bool_) +assert_type(i4 > i4, np.bool_) +assert_type(i4 > i, np.bool_) +assert_type(i4 > b_, np.bool_) +assert_type(i4 > b, np.bool_) +assert_type(i4 > AR, npt.NDArray[np.bool_]) +assert_type(i4 > SEQ, npt.NDArray[np.bool_]) + +assert_type(u4 > i8, np.bool_) +assert_type(u4 > i4, np.bool_) +assert_type(u4 > u8, np.bool_) +assert_type(u4 > u4, np.bool_) +assert_type(u4 > i, np.bool_) +assert_type(u4 > b_, np.bool_) +assert_type(u4 > b, np.bool_) +assert_type(u4 > AR, npt.NDArray[np.bool_]) +assert_type(u4 > SEQ, npt.NDArray[np.bool_]) + +assert_type(i8 > i4, np.bool_) +assert_type(i4 > i4, np.bool_) +assert_type(i > i4, np.bool_) +assert_type(b_ > i4, np.bool_) +assert_type(b > i4, np.bool_) +assert_type(AR > i4, npt.NDArray[np.bool_]) +assert_type(SEQ > i4, npt.NDArray[np.bool_]) + +assert_type(i8 > u4, np.bool_) +assert_type(i4 > u4, np.bool_) +assert_type(u8 > u4, np.bool_) +assert_type(u4 > u4, np.bool_) +assert_type(b_ > u4, np.bool_) +assert_type(b > u4, np.bool_) +assert_type(i > u4, np.bool_) +assert_type(AR > u4, npt.NDArray[np.bool_]) +assert_type(SEQ > u4, npt.NDArray[np.bool_]) diff --git a/shared/package-files/86/86e6d44231b89a84911eba82936e9f6984323324dae825dec5a6b1cf550459a1/fx_utils.py b/shared/package-files/86/86e6d44231b89a84911eba82936e9f6984323324dae825dec5a6b1cf550459a1/fx_utils.py new file mode 100644 index 0000000000000000000000000000000000000000..1cff2844855f9ba1d2328f7036aca61f68da96c5 --- /dev/null +++ b/shared/package-files/86/86e6d44231b89a84911eba82936e9f6984323324dae825dec5a6b1cf550459a1/fx_utils.py @@ -0,0 +1,220 @@ +import operator +from collections import defaultdict +from typing import Any, Callable, DefaultDict, Dict, Optional, Tuple, Type + +import torch +import torch.fx +from torch.fx.experimental.symbolic_shapes import statically_known_true, sym_eq +from torch.utils import _pytree as pytree +from torch.utils._pytree import tree_map +from .virtualized import V + + +# Check the pattern: (nn.module, F.function/torch.Tensor.method) matched. +# Works for length 2 patterns with 1 module and 1 function/method. +def matches_module_function_pattern( + pattern: Tuple[Type[torch.nn.modules.Module], Callable[..., Any]], + node: torch.fx.node.Node, + modules: Dict[str, torch.nn.modules.Module], +) -> bool: + if len(node.args) == 0: + return False + if not isinstance(node.args[0], torch.fx.Node) or not isinstance( + node, torch.fx.Node + ): + return False + # the first node is call_module + if node.args[0].op != "call_module": + return False + if not isinstance(node.args[0].target, str): + return False + if node.args[0].target not in modules: + return False + if type(modules[node.args[0].target]) is not pattern[0]: + return False + # the second node is call_function or call_method + if node.op != "call_function" and node.op != "call_method": + return False + if node.target != pattern[1]: + return False + # make sure node.args[0] output is only used by current node. + if len(node.args[0].users) > 1: + return False + return True + + +class FakeTensorUpdater: + """ + The main idea here is that it's difficult to maintain accurate fake + tensors (our primary form of metadata) for each node in our graph as we + transform it. + + The most reliable way to obtain this information is by rerunning + faketensor propagation. However, in general, faketensor propagation is + fairly expensive. So, instead we'd like to only rerun faketensor + propagation on nodes that have changed. + + In order to detect which nodes have changed, we first hash its node, + target, and argument lists (which are immutable in FX). + + Then, whenever we call incremental_update, we check which FX nodes have a + new hash, and recompute the faketensor metadata for that node. Then, we + continue to recursively compute the faketensors for all users until the + fake tensors stop changing. + """ + + def __init__(self, graph: torch.fx.Graph): + self.processed_hashes = set() + self.graph = graph + + for node in self.graph.nodes: + self.processed_hashes.add(self.hash_node(node)) + + def hash_node(self, node: torch.fx.Node): + # todo(chilli): Not a great hash function + return (node, node.target, id(node.args), id(node.kwargs)) + + def incremental_update(self): + processed = set() + existing_storages: DefaultDict[Optional[int], int] = defaultdict(int) + for node in self.graph.nodes: + existing_storages[get_node_storage(node)] += 1 + + def is_intlist_same(new, old): + return statically_known_true(sym_eq(new, old)) + + def is_fake_tensor_same(new, old): + if type(new) != type(old): + return False + if isinstance(new, (list, tuple)): + if len(new) != len(old): + return False + return all( + is_fake_tensor_same(new_i, old_i) for new_i, old_i in zip(new, old) + ) + assert isinstance(new, torch.Tensor) + if not is_intlist_same(new.shape, old.shape) or new.layout != old.layout: + return False + if new.layout == torch.strided and ( + not is_intlist_same(new.stride(), old.stride()) + or not statically_known_true( + new.storage_offset() == old.storage_offset() + ) + ): + return False + + if get_storage(new) == get_storage(old): + return True + + # This is the case where it returns a completely fresh storage that's used nowhere else. + if ( + existing_storages[get_storage(old)] == 1 + and get_storage(new) not in existing_storages + ): + return True + return False + + for node in self.graph.nodes: + if self.hash_node(node) in self.processed_hashes: + continue + + def is_aten_node(node): + return node.op == "call_function" and isinstance( + node.target, torch._ops.OpOverload + ) + + if not is_aten_node(node): + continue + + processing = [node] + while len(processing) > 0: + updating_node = processing.pop() + if updating_node in processed: + continue + if is_aten_node(updating_node): + continue + + is_valid, args, kwargs = get_fake_args_kwargs(updating_node) + if not is_valid: + continue + with V.fake_mode: + new_fake_tensor = updating_node.target(*args, **kwargs) + if "val" in updating_node.meta and is_fake_tensor_same( + new_fake_tensor, updating_node.meta["val"] + ): + continue + updating_node.meta["val"] = new_fake_tensor + + # todo(chilli): This code path is not exercised by our existing + # tests - add a test + existing_storages[get_node_storage(new_fake_tensor)] += 1 + processed.add(updating_node) + processing.extend(updating_node.users) + + self.processed_hashes.add(self.hash_node(updating_node)) + + +def get_storage(t: torch.Tensor) -> int: + return t.untyped_storage()._cdata + + +def get_node_storage(node: torch.fx.Node) -> Optional[int]: + if "val" not in node.meta: + return None + if not isinstance(node.meta["val"], torch.Tensor): + return None + if not torch._C._has_storage(node.meta["val"]): + return None + return get_storage(node.meta["val"]) + + +def get_fake(x): + if isinstance(x, torch.fx.Node): + if "val" not in x.meta: + return x + return x.meta["val"] + return x + + +def get_fake_args_kwargs(x: torch.fx.Node) -> Tuple[bool, Tuple[Any], Dict[str, Any]]: + """ + First value returns a boolean if any of the input nodes don't have a faketensor. + """ + args, kwargs = tree_map(get_fake, (x.args, x.kwargs)) + if any( + isinstance(a, torch.fx.Node) for a in pytree.arg_tree_leaves(*args, **kwargs) + ): + return False, args, kwargs + return True, args, kwargs + + +def is_node_realized(node: torch.fx.Node) -> bool: + """Returns true if a node is always realized when lowered to inductor IR. + + NOTE: This may return some false negatives. e.g. it doesn't + handle buffers realized heuristically during lowering, or + buffers realized indirectly through view ops. + """ + from torch._inductor.lowering import fallbacks, needs_realized_inputs + + def is_buffer(node: torch.fx.Node) -> bool: + if node.op == "call_function" and node.target is operator.getitem: + # For nodes with multiple outputs, we get the fx graph: + # foo = torch.ops.aten.foo(...) + # getitem = foo[0] + # getitem_1 = foo[1] + # where we need to check if foo is a fallback kernel + return is_buffer(node.args[0]) # type: ignore[arg-type] + return node.op in ("placeholder", "output") or node.target in fallbacks + + if is_buffer(node): + return True + + def realizes_inputs(node: torch.fx.Node) -> bool: + return node.op == "output" or node.target in needs_realized_inputs + + if any(realizes_inputs(user) for user in node.users): + return True + + # Otherwise, assume node isn't realized + return False diff --git a/shared/package-files/86/86e70ad1a6f59ec410058d8671d17cd72896fcaef932dfd1cc2d76bcc1c3779f/einsum_compositeimplicitautograd_dispatch.h b/shared/package-files/86/86e70ad1a6f59ec410058d8671d17cd72896fcaef932dfd1cc2d76bcc1c3779f/einsum_compositeimplicitautograd_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..1bf6ad653457c407ed656ecbf19168bda0127855 --- /dev/null +++ b/shared/package-files/86/86e70ad1a6f59ec410058d8671d17cd72896fcaef932dfd1cc2d76bcc1c3779f/einsum_compositeimplicitautograd_dispatch.h @@ -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 einsum(c10::string_view equation, at::TensorList tensors, at::OptionalIntArrayRef path=c10::nullopt); + +} // namespace compositeimplicitautograd +} // namespace at diff --git a/shared/package-files/86/86e8c15adde2de8e40913e2b52a6d595eeea4372e16da4b09755583d3df7ae28/README.md b/shared/package-files/86/86e8c15adde2de8e40913e2b52a6d595eeea4372e16da4b09755583d3df7ae28/README.md new file mode 100644 index 0000000000000000000000000000000000000000..fd9953b00ad7f9be6ad627df2b469cb78cda7022 --- /dev/null +++ b/shared/package-files/86/86e8c15adde2de8e40913e2b52a6d595eeea4372e16da4b09755583d3df7ae28/README.md @@ -0,0 +1 @@ +Update this directory using maint_tools/vendor_array_api_extra.sh diff --git a/shared/package-files/86/86e9bc13fa2b906fd7dfcbe0c9fc8a8466f2bdc2c9dc09171329320630172188/writer.h b/shared/package-files/86/86e9bc13fa2b906fd7dfcbe0c9fc8a8466f2bdc2c9dc09171329320630172188/writer.h new file mode 100644 index 0000000000000000000000000000000000000000..aefb59f3136e4c98419799eb31faf9700fc6efd2 --- /dev/null +++ b/shared/package-files/86/86e9bc13fa2b906fd7dfcbe0c9fc8a8466f2bdc2c9dc09171329320630172188/writer.h @@ -0,0 +1,475 @@ +// 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. + +// Implement Arrow streaming binary format + +#pragma once + +#include +#include +#include + +#include "arrow/ipc/dictionary.h" // IWYU pragma: export +#include "arrow/ipc/message.h" +#include "arrow/ipc/options.h" +#include "arrow/result.h" +#include "arrow/util/macros.h" +#include "arrow/util/visibility.h" + +namespace arrow { + +class Array; +class Buffer; +class MemoryManager; +class MemoryPool; +class RecordBatch; +class Schema; +class Status; +class Table; +class Tensor; +class SparseTensor; + +namespace io { + +class OutputStream; + +} // namespace io + +namespace ipc { + +/// \brief Intermediate data structure with metadata header, and zero +/// or more buffers for the message body. +struct IpcPayload { + MessageType type = MessageType::NONE; + std::shared_ptr metadata; + std::vector> body_buffers; + std::vector variadic_buffer_counts; + int64_t body_length = 0; // serialized body length (padded, maybe compressed) + int64_t raw_body_length = 0; // initial uncompressed body length +}; + +struct WriteStats { + /// Number of IPC messages written. + int64_t num_messages = 0; + /// Number of record batches written. + int64_t num_record_batches = 0; + /// Number of dictionary batches written. + /// + /// Note: num_dictionary_batches >= num_dictionary_deltas + num_replaced_dictionaries + int64_t num_dictionary_batches = 0; + + /// Number of dictionary deltas written. + int64_t num_dictionary_deltas = 0; + /// Number of replaced dictionaries (i.e. where a dictionary batch replaces + /// an existing dictionary with an unrelated new dictionary). + int64_t num_replaced_dictionaries = 0; + + /// Total size in bytes of record batches emitted. + /// The "raw" size counts the original buffer sizes, while the "serialized" size + /// includes padding and (optionally) compression. + int64_t total_raw_body_size = 0; + int64_t total_serialized_body_size = 0; +}; + +/// \class RecordBatchWriter +/// \brief Abstract interface for writing a stream of record batches +class ARROW_EXPORT RecordBatchWriter { + public: + virtual ~RecordBatchWriter(); + + /// \brief Write a record batch to the stream + /// + /// \param[in] batch the record batch to write to the stream + /// \return Status + virtual Status WriteRecordBatch(const RecordBatch& batch) = 0; + + /// \brief Write a record batch with custom metadata to the stream + /// + /// \param[in] batch the record batch to write to the stream + /// \param[in] custom_metadata the record batch's custom metadata to write to the stream + /// \return Status + virtual Status WriteRecordBatch( + const RecordBatch& batch, + const std::shared_ptr& custom_metadata); + + /// \brief Write possibly-chunked table by creating sequence of record batches + /// \param[in] table table to write + /// \return Status + Status WriteTable(const Table& table); + + /// \brief Write Table with a particular chunksize + /// \param[in] table table to write + /// \param[in] max_chunksize maximum number of rows for table chunks. To + /// indicate that no maximum should be enforced, pass -1. + /// \return Status + virtual Status WriteTable(const Table& table, int64_t max_chunksize); + + /// \brief Perform any logic necessary to finish the stream + /// + /// \return Status + virtual Status Close() = 0; + + /// \brief Return current write statistics + virtual WriteStats stats() const = 0; +}; + +/// \defgroup record-batch-writer-factories Functions for creating RecordBatchWriter +/// instances +/// +/// @{ + +/// Create a new IPC stream writer from stream sink and schema. User is +/// responsible for closing the actual OutputStream. +/// +/// \param[in] sink output stream to write to +/// \param[in] schema the schema of the record batches to be written +/// \param[in] options options for serialization +/// \return Result> +ARROW_EXPORT +Result> MakeStreamWriter( + io::OutputStream* sink, const std::shared_ptr& schema, + const IpcWriteOptions& options = IpcWriteOptions::Defaults()); + +/// Create a new IPC stream writer from stream sink and schema. User is +/// responsible for closing the actual OutputStream. +/// +/// \param[in] sink output stream to write to +/// \param[in] schema the schema of the record batches to be written +/// \param[in] options options for serialization +/// \return Result> +ARROW_EXPORT +Result> MakeStreamWriter( + std::shared_ptr sink, const std::shared_ptr& schema, + const IpcWriteOptions& options = IpcWriteOptions::Defaults()); + +/// Create a new IPC file writer from stream sink and schema +/// +/// \param[in] sink output stream to write to +/// \param[in] schema the schema of the record batches to be written +/// \param[in] options options for serialization, optional +/// \param[in] metadata custom metadata for File Footer, optional +/// \return Result> +ARROW_EXPORT +Result> MakeFileWriter( + io::OutputStream* sink, const std::shared_ptr& schema, + const IpcWriteOptions& options = IpcWriteOptions::Defaults(), + const std::shared_ptr& metadata = NULLPTR); + +/// Create a new IPC file writer from stream sink and schema +/// +/// \param[in] sink output stream to write to +/// \param[in] schema the schema of the record batches to be written +/// \param[in] options options for serialization, optional +/// \param[in] metadata custom metadata for File Footer, optional +/// \return Result> +ARROW_EXPORT +Result> MakeFileWriter( + std::shared_ptr sink, const std::shared_ptr& schema, + const IpcWriteOptions& options = IpcWriteOptions::Defaults(), + const std::shared_ptr& metadata = NULLPTR); + +/// @} + +/// \brief Low-level API for writing a record batch (without schema) +/// to an OutputStream as encapsulated IPC message. See Arrow format +/// documentation for more detail. +/// +/// \param[in] batch the record batch to write +/// \param[in] buffer_start_offset the start offset to use in the buffer metadata, +/// generally should be 0 +/// \param[in] dst an OutputStream +/// \param[out] metadata_length the size of the length-prefixed flatbuffer +/// including padding to a 64-byte boundary +/// \param[out] body_length the size of the contiguous buffer block plus +/// \param[in] options options for serialization +/// \return Status +ARROW_EXPORT +Status WriteRecordBatch(const RecordBatch& batch, int64_t buffer_start_offset, + io::OutputStream* dst, int32_t* metadata_length, + int64_t* body_length, const IpcWriteOptions& options); + +/// \brief Serialize record batch as encapsulated IPC message in a new buffer +/// +/// \param[in] batch the record batch +/// \param[in] options the IpcWriteOptions to use for serialization +/// \return the serialized message +ARROW_EXPORT +Result> SerializeRecordBatch(const RecordBatch& batch, + const IpcWriteOptions& options); + +/// \brief Serialize record batch as encapsulated IPC message in a new buffer +/// +/// \param[in] batch the record batch +/// \param[in] mm a MemoryManager to allocate memory from +/// \return the serialized message +ARROW_EXPORT +Result> SerializeRecordBatch(const RecordBatch& batch, + std::shared_ptr mm); + +/// \brief Write record batch to OutputStream +/// +/// \param[in] batch the record batch to write +/// \param[in] options the IpcWriteOptions to use for serialization +/// \param[in] out the OutputStream to write the output to +/// \return Status +/// +/// If writing to pre-allocated memory, you can use +/// arrow::ipc::GetRecordBatchSize to compute how much space is required +ARROW_EXPORT +Status SerializeRecordBatch(const RecordBatch& batch, const IpcWriteOptions& options, + io::OutputStream* out); + +/// \brief Serialize schema as encapsulated IPC message +/// +/// \param[in] schema the schema to write +/// \param[in] pool a MemoryPool to allocate memory from +/// \return the serialized schema +ARROW_EXPORT +Result> SerializeSchema(const Schema& schema, + MemoryPool* pool = default_memory_pool()); + +/// \brief Write multiple record batches to OutputStream, including schema +/// \param[in] batches a vector of batches. Must all have same schema +/// \param[in] options options for serialization +/// \param[out] dst an OutputStream +/// \return Status +ARROW_EXPORT +Status WriteRecordBatchStream(const std::vector>& batches, + const IpcWriteOptions& options, io::OutputStream* dst); + +/// \brief Compute the number of bytes needed to write an IPC payload +/// including metadata +/// +/// \param[in] payload the IPC payload to write +/// \param[in] options write options +/// \return the size of the complete encapsulated message +ARROW_EXPORT +int64_t GetPayloadSize(const IpcPayload& payload, + const IpcWriteOptions& options = IpcWriteOptions::Defaults()); + +/// \brief Compute the number of bytes needed to write a record batch including metadata +/// +/// \param[in] batch the record batch to write +/// \param[out] size the size of the complete encapsulated message +/// \return Status +ARROW_EXPORT +Status GetRecordBatchSize(const RecordBatch& batch, int64_t* size); + +/// \brief Compute the number of bytes needed to write a record batch including metadata +/// +/// \param[in] batch the record batch to write +/// \param[in] options options for serialization +/// \param[out] size the size of the complete encapsulated message +/// \return Status +ARROW_EXPORT +Status GetRecordBatchSize(const RecordBatch& batch, const IpcWriteOptions& options, + int64_t* size); + +/// \brief Compute the number of bytes needed to write a tensor including metadata +/// +/// \param[in] tensor the tensor to write +/// \param[out] size the size of the complete encapsulated message +/// \return Status +ARROW_EXPORT +Status GetTensorSize(const Tensor& tensor, int64_t* size); + +/// \brief EXPERIMENTAL: Convert arrow::Tensor to a Message with minimal memory +/// allocation +/// +/// \param[in] tensor the Tensor to write +/// \param[in] pool MemoryPool to allocate space for metadata +/// \return the resulting Message +ARROW_EXPORT +Result> GetTensorMessage(const Tensor& tensor, MemoryPool* pool); + +/// \brief Write arrow::Tensor as a contiguous message. +/// +/// The metadata and body are written assuming 64-byte alignment. It is the +/// user's responsibility to ensure that the OutputStream has been aligned +/// to a 64-byte multiple before writing the message. +/// +/// The message is written out as followed: +/// \code +/// +/// \endcode +/// +/// \param[in] tensor the Tensor to write +/// \param[in] dst the OutputStream to write to +/// \param[out] metadata_length the actual metadata length, including padding +/// \param[out] body_length the actual message body length +/// \return Status +ARROW_EXPORT +Status WriteTensor(const Tensor& tensor, io::OutputStream* dst, int32_t* metadata_length, + int64_t* body_length); + +/// \brief EXPERIMENTAL: Convert arrow::SparseTensor to a Message with minimal memory +/// allocation +/// +/// The message is written out as followed: +/// \code +/// +/// \endcode +/// +/// \param[in] sparse_tensor the SparseTensor to write +/// \param[in] pool MemoryPool to allocate space for metadata +/// \return the resulting Message +ARROW_EXPORT +Result> GetSparseTensorMessage(const SparseTensor& sparse_tensor, + MemoryPool* pool); + +/// \brief EXPERIMENTAL: Write arrow::SparseTensor as a contiguous message. The metadata, +/// sparse index, and body are written assuming 64-byte alignment. It is the +/// user's responsibility to ensure that the OutputStream has been aligned +/// to a 64-byte multiple before writing the message. +/// +/// \param[in] sparse_tensor the SparseTensor to write +/// \param[in] dst the OutputStream to write to +/// \param[out] metadata_length the actual metadata length, including padding +/// \param[out] body_length the actual message body length +/// \return Status +ARROW_EXPORT +Status WriteSparseTensor(const SparseTensor& sparse_tensor, io::OutputStream* dst, + int32_t* metadata_length, int64_t* body_length); + +/// \brief Compute IpcPayload for the given schema +/// \param[in] schema the Schema that is being serialized +/// \param[in] options options for serialization +/// \param[in] mapper object mapping dictionary fields to dictionary ids +/// \param[out] out the returned vector of IpcPayloads +/// \return Status +ARROW_EXPORT +Status GetSchemaPayload(const Schema& schema, const IpcWriteOptions& options, + const DictionaryFieldMapper& mapper, IpcPayload* out); + +/// \brief Compute IpcPayload for a dictionary +/// \param[in] id the dictionary id +/// \param[in] dictionary the dictionary values +/// \param[in] options options for serialization +/// \param[out] payload the output IpcPayload +/// \return Status +ARROW_EXPORT +Status GetDictionaryPayload(int64_t id, const std::shared_ptr& dictionary, + const IpcWriteOptions& options, IpcPayload* payload); + +/// \brief Compute IpcPayload for a dictionary +/// \param[in] id the dictionary id +/// \param[in] is_delta whether the dictionary is a delta dictionary +/// \param[in] dictionary the dictionary values +/// \param[in] options options for serialization +/// \param[out] payload the output IpcPayload +/// \return Status +ARROW_EXPORT +Status GetDictionaryPayload(int64_t id, bool is_delta, + const std::shared_ptr& dictionary, + const IpcWriteOptions& options, IpcPayload* payload); + +/// \brief Compute IpcPayload for the given record batch +/// \param[in] batch the RecordBatch that is being serialized +/// \param[in] options options for serialization +/// \param[out] out the returned IpcPayload +/// \return Status +ARROW_EXPORT +Status GetRecordBatchPayload(const RecordBatch& batch, const IpcWriteOptions& options, + IpcPayload* out); + +/// \brief Compute IpcPayload for the given record batch and custom metadata +/// \param[in] batch the RecordBatch that is being serialized +/// \param[in] custom_metadata the custom metadata to be serialized with the record batch +/// \param[in] options options for serialization +/// \param[out] out the returned IpcPayload +/// \return Status +ARROW_EXPORT +Status GetRecordBatchPayload( + const RecordBatch& batch, + const std::shared_ptr& custom_metadata, + const IpcWriteOptions& options, IpcPayload* out); + +/// \brief Write an IPC payload to the given stream. +/// \param[in] payload the payload to write +/// \param[in] options options for serialization +/// \param[in] dst The stream to write the payload to. +/// \param[out] metadata_length the length of the serialized metadata +/// \return Status +ARROW_EXPORT +Status WriteIpcPayload(const IpcPayload& payload, const IpcWriteOptions& options, + io::OutputStream* dst, int32_t* metadata_length); + +/// \brief Compute IpcPayload for the given sparse tensor +/// \param[in] sparse_tensor the SparseTensor that is being serialized +/// \param[in,out] pool for any required temporary memory allocations +/// \param[out] out the returned IpcPayload +/// \return Status +ARROW_EXPORT +Status GetSparseTensorPayload(const SparseTensor& sparse_tensor, MemoryPool* pool, + IpcPayload* out); + +namespace internal { + +// These internal APIs may change without warning or deprecation + +class ARROW_EXPORT IpcPayloadWriter { + public: + virtual ~IpcPayloadWriter(); + + // Default implementation is a no-op + virtual Status Start(); + + virtual Status WritePayload(const IpcPayload& payload) = 0; + + virtual Status Close() = 0; +}; + +/// Create a new IPC payload stream writer from stream sink. User is +/// responsible for closing the actual OutputStream. +/// +/// \param[in] sink output stream to write to +/// \param[in] options options for serialization +/// \return Result> +ARROW_EXPORT +Result> MakePayloadStreamWriter( + io::OutputStream* sink, const IpcWriteOptions& options = IpcWriteOptions::Defaults()); + +/// Create a new IPC payload file writer from stream sink. +/// +/// \param[in] sink output stream to write to +/// \param[in] schema the schema of the record batches to be written +/// \param[in] options options for serialization, optional +/// \param[in] metadata custom metadata for File Footer, optional +/// \return Status +ARROW_EXPORT +Result> MakePayloadFileWriter( + io::OutputStream* sink, const std::shared_ptr& schema, + const IpcWriteOptions& options = IpcWriteOptions::Defaults(), + const std::shared_ptr& metadata = NULLPTR); + +/// Create a new RecordBatchWriter from IpcPayloadWriter and schema. +/// +/// The format is implicitly the IPC stream format (allowing dictionary +/// replacement and deltas). +/// +/// \param[in] sink the IpcPayloadWriter to write to +/// \param[in] schema the schema of the record batches to be written +/// \param[in] options options for serialization +/// \return Result> +ARROW_EXPORT +Result> OpenRecordBatchWriter( + std::unique_ptr sink, const std::shared_ptr& schema, + const IpcWriteOptions& options = IpcWriteOptions::Defaults()); + +} // namespace internal +} // namespace ipc +} // namespace arrow diff --git a/shared/package-files/86/86ed552fd9db55da6926b5688a356c85195c4517bfbf7763bb7326776b0a65d6/_emoji_codes.py b/shared/package-files/86/86ed552fd9db55da6926b5688a356c85195c4517bfbf7763bb7326776b0a65d6/_emoji_codes.py new file mode 100644 index 0000000000000000000000000000000000000000..1f2877bb2bd520253502b1c05bb811bb0d7ef64c --- /dev/null +++ b/shared/package-files/86/86ed552fd9db55da6926b5688a356c85195c4517bfbf7763bb7326776b0a65d6/_emoji_codes.py @@ -0,0 +1,3610 @@ +EMOJI = { + "1st_place_medal": "🥇", + "2nd_place_medal": "🥈", + "3rd_place_medal": "🥉", + "ab_button_(blood_type)": "🆎", + "atm_sign": "🏧", + "a_button_(blood_type)": "🅰", + "afghanistan": "🇦🇫", + "albania": "🇦🇱", + "algeria": "🇩🇿", + "american_samoa": "🇦🇸", + "andorra": "🇦🇩", + "angola": "🇦🇴", + "anguilla": "🇦🇮", + "antarctica": "🇦🇶", + "antigua_&_barbuda": "🇦🇬", + "aquarius": "♒", + "argentina": "🇦🇷", + "aries": "♈", + "armenia": "🇦🇲", + "aruba": "🇦🇼", + "ascension_island": "🇦🇨", + "australia": "🇦🇺", + "austria": "🇦🇹", + "azerbaijan": "🇦🇿", + "back_arrow": "🔙", + "b_button_(blood_type)": "🅱", + "bahamas": "🇧🇸", + "bahrain": "🇧🇭", + "bangladesh": "🇧🇩", + "barbados": "🇧🇧", + "belarus": "🇧🇾", + "belgium": "🇧🇪", + "belize": "🇧🇿", + "benin": "🇧🇯", + "bermuda": "🇧🇲", + "bhutan": "🇧🇹", + "bolivia": "🇧🇴", + "bosnia_&_herzegovina": "🇧🇦", + "botswana": "🇧🇼", + "bouvet_island": "🇧🇻", + "brazil": "🇧🇷", + "british_indian_ocean_territory": "🇮🇴", + "british_virgin_islands": "🇻🇬", + "brunei": "🇧🇳", + "bulgaria": "🇧🇬", + "burkina_faso": "🇧🇫", + "burundi": "🇧🇮", + "cl_button": "🆑", + "cool_button": "🆒", + "cambodia": "🇰🇭", + "cameroon": "🇨🇲", + "canada": "🇨🇦", + "canary_islands": "🇮🇨", + "cancer": "♋", + "cape_verde": "🇨🇻", + "capricorn": "♑", + "caribbean_netherlands": "🇧🇶", + "cayman_islands": "🇰🇾", + "central_african_republic": "🇨🇫", + "ceuta_&_melilla": "🇪🇦", + "chad": "🇹🇩", + "chile": "🇨🇱", + "china": "🇨🇳", + "christmas_island": "🇨🇽", + "christmas_tree": "🎄", + "clipperton_island": "🇨🇵", + "cocos_(keeling)_islands": "🇨🇨", + "colombia": "🇨🇴", + "comoros": "🇰🇲", + "congo_-_brazzaville": "🇨🇬", + "congo_-_kinshasa": "🇨🇩", + "cook_islands": "🇨🇰", + "costa_rica": "🇨🇷", + "croatia": "🇭🇷", + "cuba": "🇨🇺", + "curaçao": "🇨🇼", + "cyprus": "🇨🇾", + "czechia": "🇨🇿", + "côte_d’ivoire": "🇨🇮", + "denmark": "🇩🇰", + "diego_garcia": "🇩🇬", + "djibouti": "🇩🇯", + "dominica": "🇩🇲", + "dominican_republic": "🇩🇴", + "end_arrow": "🔚", + "ecuador": "🇪🇨", + "egypt": "🇪🇬", + "el_salvador": "🇸🇻", + "england": "🏴\U000e0067\U000e0062\U000e0065\U000e006e\U000e0067\U000e007f", + "equatorial_guinea": "🇬🇶", + "eritrea": "🇪🇷", + "estonia": "🇪🇪", + "ethiopia": "🇪🇹", + "european_union": "🇪🇺", + "free_button": "🆓", + "falkland_islands": "🇫🇰", + "faroe_islands": "🇫🇴", + "fiji": "🇫🇯", + "finland": "🇫🇮", + "france": "🇫🇷", + "french_guiana": "🇬🇫", + "french_polynesia": "🇵🇫", + "french_southern_territories": "🇹🇫", + "gabon": "🇬🇦", + "gambia": "🇬🇲", + "gemini": "♊", + "georgia": "🇬🇪", + "germany": "🇩🇪", + "ghana": "🇬🇭", + "gibraltar": "🇬🇮", + "greece": "🇬🇷", + "greenland": "🇬🇱", + "grenada": "🇬🇩", + "guadeloupe": "🇬🇵", + "guam": "🇬🇺", + "guatemala": "🇬🇹", + "guernsey": "🇬🇬", + "guinea": "🇬🇳", + "guinea-bissau": "🇬🇼", + "guyana": "🇬🇾", + "haiti": "🇭🇹", + "heard_&_mcdonald_islands": "🇭🇲", + "honduras": "🇭🇳", + "hong_kong_sar_china": "🇭🇰", + "hungary": "🇭🇺", + "id_button": "🆔", + "iceland": "🇮🇸", + "india": "🇮🇳", + "indonesia": "🇮🇩", + "iran": "🇮🇷", + "iraq": "🇮🇶", + "ireland": "🇮🇪", + "isle_of_man": "🇮🇲", + "israel": "🇮🇱", + "italy": "🇮🇹", + "jamaica": "🇯🇲", + "japan": "🗾", + "japanese_acceptable_button": "🉑", + "japanese_application_button": "🈸", + "japanese_bargain_button": "🉐", + "japanese_castle": "🏯", + "japanese_congratulations_button": "㊗", + "japanese_discount_button": "🈹", + "japanese_dolls": "🎎", + "japanese_free_of_charge_button": "🈚", + "japanese_here_button": "🈁", + "japanese_monthly_amount_button": "🈷", + "japanese_no_vacancy_button": "🈵", + "japanese_not_free_of_charge_button": "🈶", + "japanese_open_for_business_button": "🈺", + "japanese_passing_grade_button": "🈴", + "japanese_post_office": "🏣", + "japanese_prohibited_button": "🈲", + "japanese_reserved_button": "🈯", + "japanese_secret_button": "㊙", + "japanese_service_charge_button": "🈂", + "japanese_symbol_for_beginner": "🔰", + "japanese_vacancy_button": "🈳", + "jersey": "🇯🇪", + "jordan": "🇯🇴", + "kazakhstan": "🇰🇿", + "kenya": "🇰🇪", + "kiribati": "🇰🇮", + "kosovo": "🇽🇰", + "kuwait": "🇰🇼", + "kyrgyzstan": "🇰🇬", + "laos": "🇱🇦", + "latvia": "🇱🇻", + "lebanon": "🇱🇧", + "leo": "♌", + "lesotho": "🇱🇸", + "liberia": "🇱🇷", + "libra": "♎", + "libya": "🇱🇾", + "liechtenstein": "🇱🇮", + "lithuania": "🇱🇹", + "luxembourg": "🇱🇺", + "macau_sar_china": "🇲🇴", + "macedonia": "🇲🇰", + "madagascar": "🇲🇬", + "malawi": "🇲🇼", + "malaysia": "🇲🇾", + "maldives": "🇲🇻", + "mali": "🇲🇱", + "malta": "🇲🇹", + "marshall_islands": "🇲🇭", + "martinique": "🇲🇶", + "mauritania": "🇲🇷", + "mauritius": "🇲🇺", + "mayotte": "🇾🇹", + "mexico": "🇲🇽", + "micronesia": "🇫🇲", + "moldova": "🇲🇩", + "monaco": "🇲🇨", + "mongolia": "🇲🇳", + "montenegro": "🇲🇪", + "montserrat": "🇲🇸", + "morocco": "🇲🇦", + "mozambique": "🇲🇿", + "mrs._claus": "🤶", + "mrs._claus_dark_skin_tone": "🤶🏿", + "mrs._claus_light_skin_tone": "🤶🏻", + "mrs._claus_medium-dark_skin_tone": "🤶🏾", + "mrs._claus_medium-light_skin_tone": "🤶🏼", + "mrs._claus_medium_skin_tone": "🤶🏽", + "myanmar_(burma)": "🇲🇲", + "new_button": "🆕", + "ng_button": "🆖", + "namibia": "🇳🇦", + "nauru": "🇳🇷", + "nepal": "🇳🇵", + "netherlands": "🇳🇱", + "new_caledonia": "🇳🇨", + "new_zealand": "🇳🇿", + "nicaragua": "🇳🇮", + "niger": "🇳🇪", + "nigeria": "🇳🇬", + "niue": "🇳🇺", + "norfolk_island": "🇳🇫", + "north_korea": "🇰🇵", + "northern_mariana_islands": "🇲🇵", + "norway": "🇳🇴", + "ok_button": "🆗", + "ok_hand": "👌", + "ok_hand_dark_skin_tone": "👌🏿", + "ok_hand_light_skin_tone": "👌🏻", + "ok_hand_medium-dark_skin_tone": "👌🏾", + "ok_hand_medium-light_skin_tone": "👌🏼", + "ok_hand_medium_skin_tone": "👌🏽", + "on!_arrow": "🔛", + "o_button_(blood_type)": "🅾", + "oman": "🇴🇲", + "ophiuchus": "⛎", + "p_button": "🅿", + "pakistan": "🇵🇰", + "palau": "🇵🇼", + "palestinian_territories": "🇵🇸", + "panama": "🇵🇦", + "papua_new_guinea": "🇵🇬", + "paraguay": "🇵🇾", + "peru": "🇵🇪", + "philippines": "🇵🇭", + "pisces": "♓", + "pitcairn_islands": "🇵🇳", + "poland": "🇵🇱", + "portugal": "🇵🇹", + "puerto_rico": "🇵🇷", + "qatar": "🇶🇦", + "romania": "🇷🇴", + "russia": "🇷🇺", + "rwanda": "🇷🇼", + "réunion": "🇷🇪", + "soon_arrow": "🔜", + "sos_button": "🆘", + "sagittarius": "♐", + "samoa": "🇼🇸", + "san_marino": "🇸🇲", + "santa_claus": "🎅", + "santa_claus_dark_skin_tone": "🎅🏿", + "santa_claus_light_skin_tone": "🎅🏻", + "santa_claus_medium-dark_skin_tone": "🎅🏾", + "santa_claus_medium-light_skin_tone": "🎅🏼", + "santa_claus_medium_skin_tone": "🎅🏽", + "saudi_arabia": "🇸🇦", + "scorpio": "♏", + "scotland": "🏴\U000e0067\U000e0062\U000e0073\U000e0063\U000e0074\U000e007f", + "senegal": "🇸🇳", + "serbia": "🇷🇸", + "seychelles": "🇸🇨", + "sierra_leone": "🇸🇱", + "singapore": "🇸🇬", + "sint_maarten": "🇸🇽", + "slovakia": "🇸🇰", + "slovenia": "🇸🇮", + "solomon_islands": "🇸🇧", + "somalia": "🇸🇴", + "south_africa": "🇿🇦", + "south_georgia_&_south_sandwich_islands": "🇬🇸", + "south_korea": "🇰🇷", + "south_sudan": "🇸🇸", + "spain": "🇪🇸", + "sri_lanka": "🇱🇰", + "st._barthélemy": "🇧🇱", + "st._helena": "🇸🇭", + "st._kitts_&_nevis": "🇰🇳", + "st._lucia": "🇱🇨", + "st._martin": "🇲🇫", + "st._pierre_&_miquelon": "🇵🇲", + "st._vincent_&_grenadines": "🇻🇨", + "statue_of_liberty": "🗽", + "sudan": "🇸🇩", + "suriname": "🇸🇷", + "svalbard_&_jan_mayen": "🇸🇯", + "swaziland": "🇸🇿", + "sweden": "🇸🇪", + "switzerland": "🇨🇭", + "syria": "🇸🇾", + "são_tomé_&_príncipe": "🇸🇹", + "t-rex": "🦖", + "top_arrow": "🔝", + "taiwan": "🇹🇼", + "tajikistan": "🇹🇯", + "tanzania": "🇹🇿", + "taurus": "♉", + "thailand": "🇹🇭", + "timor-leste": "🇹🇱", + "togo": "🇹🇬", + "tokelau": "🇹🇰", + "tokyo_tower": "🗼", + "tonga": "🇹🇴", + "trinidad_&_tobago": "🇹🇹", + "tristan_da_cunha": "🇹🇦", + "tunisia": "🇹🇳", + "turkey": "🦃", + "turkmenistan": "🇹🇲", + "turks_&_caicos_islands": "🇹🇨", + "tuvalu": "🇹🇻", + "u.s._outlying_islands": "🇺🇲", + "u.s._virgin_islands": "🇻🇮", + "up!_button": "🆙", + "uganda": "🇺🇬", + "ukraine": "🇺🇦", + "united_arab_emirates": "🇦🇪", + "united_kingdom": "🇬🇧", + "united_nations": "🇺🇳", + "united_states": "🇺🇸", + "uruguay": "🇺🇾", + "uzbekistan": "🇺🇿", + "vs_button": "🆚", + "vanuatu": "🇻🇺", + "vatican_city": "🇻🇦", + "venezuela": "🇻🇪", + "vietnam": "🇻🇳", + "virgo": "♍", + "wales": "🏴\U000e0067\U000e0062\U000e0077\U000e006c\U000e0073\U000e007f", + "wallis_&_futuna": "🇼🇫", + "western_sahara": "🇪🇭", + "yemen": "🇾🇪", + "zambia": "🇿🇲", + "zimbabwe": "🇿🇼", + "abacus": "🧮", + "adhesive_bandage": "🩹", + "admission_tickets": "🎟", + "adult": "🧑", + "adult_dark_skin_tone": "🧑🏿", + "adult_light_skin_tone": "🧑🏻", + "adult_medium-dark_skin_tone": "🧑🏾", + "adult_medium-light_skin_tone": "🧑🏼", + "adult_medium_skin_tone": "🧑🏽", + "aerial_tramway": "🚡", + "airplane": "✈", + "airplane_arrival": "🛬", + "airplane_departure": "🛫", + "alarm_clock": "⏰", + "alembic": "⚗", + "alien": "👽", + "alien_monster": "👾", + "ambulance": "🚑", + "american_football": "🏈", + "amphora": "🏺", + "anchor": "⚓", + "anger_symbol": "💢", + "angry_face": "😠", + "angry_face_with_horns": "👿", + "anguished_face": "😧", + "ant": "🐜", + "antenna_bars": "📶", + "anxious_face_with_sweat": "😰", + "articulated_lorry": "🚛", + "artist_palette": "🎨", + "astonished_face": "😲", + "atom_symbol": "⚛", + "auto_rickshaw": "🛺", + "automobile": "🚗", + "avocado": "🥑", + "axe": "🪓", + "baby": "👶", + "baby_angel": "👼", + "baby_angel_dark_skin_tone": "👼🏿", + "baby_angel_light_skin_tone": "👼🏻", + "baby_angel_medium-dark_skin_tone": "👼🏾", + "baby_angel_medium-light_skin_tone": "👼🏼", + "baby_angel_medium_skin_tone": "👼🏽", + "baby_bottle": "🍼", + "baby_chick": "🐤", + "baby_dark_skin_tone": "👶🏿", + "baby_light_skin_tone": "👶🏻", + "baby_medium-dark_skin_tone": "👶🏾", + "baby_medium-light_skin_tone": "👶🏼", + "baby_medium_skin_tone": "👶🏽", + "baby_symbol": "🚼", + "backhand_index_pointing_down": "👇", + "backhand_index_pointing_down_dark_skin_tone": "👇🏿", + "backhand_index_pointing_down_light_skin_tone": "👇🏻", + "backhand_index_pointing_down_medium-dark_skin_tone": "👇🏾", + "backhand_index_pointing_down_medium-light_skin_tone": "👇🏼", + "backhand_index_pointing_down_medium_skin_tone": "👇🏽", + "backhand_index_pointing_left": "👈", + "backhand_index_pointing_left_dark_skin_tone": "👈🏿", + "backhand_index_pointing_left_light_skin_tone": "👈🏻", + "backhand_index_pointing_left_medium-dark_skin_tone": "👈🏾", + "backhand_index_pointing_left_medium-light_skin_tone": "👈🏼", + "backhand_index_pointing_left_medium_skin_tone": "👈🏽", + "backhand_index_pointing_right": "👉", + "backhand_index_pointing_right_dark_skin_tone": "👉🏿", + "backhand_index_pointing_right_light_skin_tone": "👉🏻", + "backhand_index_pointing_right_medium-dark_skin_tone": "👉🏾", + "backhand_index_pointing_right_medium-light_skin_tone": "👉🏼", + "backhand_index_pointing_right_medium_skin_tone": "👉🏽", + "backhand_index_pointing_up": "👆", + "backhand_index_pointing_up_dark_skin_tone": "👆🏿", + "backhand_index_pointing_up_light_skin_tone": "👆🏻", + "backhand_index_pointing_up_medium-dark_skin_tone": "👆🏾", + "backhand_index_pointing_up_medium-light_skin_tone": "👆🏼", + "backhand_index_pointing_up_medium_skin_tone": "👆🏽", + "bacon": "🥓", + "badger": "🦡", + "badminton": "🏸", + "bagel": "🥯", + "baggage_claim": "🛄", + "baguette_bread": "🥖", + "balance_scale": "⚖", + "bald": "🦲", + "bald_man": "👨\u200d🦲", + "bald_woman": "👩\u200d🦲", + "ballet_shoes": "🩰", + "balloon": "🎈", + "ballot_box_with_ballot": "🗳", + "ballot_box_with_check": "☑", + "banana": "🍌", + "banjo": "🪕", + "bank": "🏦", + "bar_chart": "📊", + "barber_pole": "💈", + "baseball": "⚾", + "basket": "🧺", + "basketball": "🏀", + "bat": "🦇", + "bathtub": "🛁", + "battery": "🔋", + "beach_with_umbrella": "🏖", + "beaming_face_with_smiling_eyes": "😁", + "bear_face": "🐻", + "bearded_person": "🧔", + "bearded_person_dark_skin_tone": "🧔🏿", + "bearded_person_light_skin_tone": "🧔🏻", + "bearded_person_medium-dark_skin_tone": "🧔🏾", + "bearded_person_medium-light_skin_tone": "🧔🏼", + "bearded_person_medium_skin_tone": "🧔🏽", + "beating_heart": "💓", + "bed": "🛏", + "beer_mug": "🍺", + "bell": "🔔", + "bell_with_slash": "🔕", + "bellhop_bell": "🛎", + "bento_box": "🍱", + "beverage_box": "🧃", + "bicycle": "🚲", + "bikini": "👙", + "billed_cap": "🧢", + "biohazard": "☣", + "bird": "🐦", + "birthday_cake": "🎂", + "black_circle": "⚫", + "black_flag": "🏴", + "black_heart": "🖤", + "black_large_square": "⬛", + "black_medium-small_square": "◾", + "black_medium_square": "◼", + "black_nib": "✒", + "black_small_square": "▪", + "black_square_button": "🔲", + "blond-haired_man": "👱\u200d♂️", + "blond-haired_man_dark_skin_tone": "👱🏿\u200d♂️", + "blond-haired_man_light_skin_tone": "👱🏻\u200d♂️", + "blond-haired_man_medium-dark_skin_tone": "👱🏾\u200d♂️", + "blond-haired_man_medium-light_skin_tone": "👱🏼\u200d♂️", + "blond-haired_man_medium_skin_tone": "👱🏽\u200d♂️", + "blond-haired_person": "👱", + "blond-haired_person_dark_skin_tone": "👱🏿", + "blond-haired_person_light_skin_tone": "👱🏻", + "blond-haired_person_medium-dark_skin_tone": "👱🏾", + "blond-haired_person_medium-light_skin_tone": "👱🏼", + "blond-haired_person_medium_skin_tone": "👱🏽", + "blond-haired_woman": "👱\u200d♀️", + "blond-haired_woman_dark_skin_tone": "👱🏿\u200d♀️", + "blond-haired_woman_light_skin_tone": "👱🏻\u200d♀️", + "blond-haired_woman_medium-dark_skin_tone": "👱🏾\u200d♀️", + "blond-haired_woman_medium-light_skin_tone": "👱🏼\u200d♀️", + "blond-haired_woman_medium_skin_tone": "👱🏽\u200d♀️", + "blossom": "🌼", + "blowfish": "🐡", + "blue_book": "📘", + "blue_circle": "🔵", + "blue_heart": "💙", + "blue_square": "🟦", + "boar": "🐗", + "bomb": "💣", + "bone": "🦴", + "bookmark": "🔖", + "bookmark_tabs": "📑", + "books": "📚", + "bottle_with_popping_cork": "🍾", + "bouquet": "💐", + "bow_and_arrow": "🏹", + "bowl_with_spoon": "🥣", + "bowling": "🎳", + "boxing_glove": "🥊", + "boy": "👦", + "boy_dark_skin_tone": "👦🏿", + "boy_light_skin_tone": "👦🏻", + "boy_medium-dark_skin_tone": "👦🏾", + "boy_medium-light_skin_tone": "👦🏼", + "boy_medium_skin_tone": "👦🏽", + "brain": "🧠", + "bread": "🍞", + "breast-feeding": "🤱", + "breast-feeding_dark_skin_tone": "🤱🏿", + "breast-feeding_light_skin_tone": "🤱🏻", + "breast-feeding_medium-dark_skin_tone": "🤱🏾", + "breast-feeding_medium-light_skin_tone": "🤱🏼", + "breast-feeding_medium_skin_tone": "🤱🏽", + "brick": "🧱", + "bride_with_veil": "👰", + "bride_with_veil_dark_skin_tone": "👰🏿", + "bride_with_veil_light_skin_tone": "👰🏻", + "bride_with_veil_medium-dark_skin_tone": "👰🏾", + "bride_with_veil_medium-light_skin_tone": "👰🏼", + "bride_with_veil_medium_skin_tone": "👰🏽", + "bridge_at_night": "🌉", + "briefcase": "💼", + "briefs": "🩲", + "bright_button": "🔆", + "broccoli": "🥦", + "broken_heart": "💔", + "broom": "🧹", + "brown_circle": "🟤", + "brown_heart": "🤎", + "brown_square": "🟫", + "bug": "🐛", + "building_construction": "🏗", + "bullet_train": "🚅", + "burrito": "🌯", + "bus": "🚌", + "bus_stop": "🚏", + "bust_in_silhouette": "👤", + "busts_in_silhouette": "👥", + "butter": "🧈", + "butterfly": "🦋", + "cactus": "🌵", + "calendar": "📆", + "call_me_hand": "🤙", + "call_me_hand_dark_skin_tone": "🤙🏿", + "call_me_hand_light_skin_tone": "🤙🏻", + "call_me_hand_medium-dark_skin_tone": "🤙🏾", + "call_me_hand_medium-light_skin_tone": "🤙🏼", + "call_me_hand_medium_skin_tone": "🤙🏽", + "camel": "🐫", + "camera": "📷", + "camera_with_flash": "📸", + "camping": "🏕", + "candle": "🕯", + "candy": "🍬", + "canned_food": "🥫", + "canoe": "🛶", + "card_file_box": "🗃", + "card_index": "📇", + "card_index_dividers": "🗂", + "carousel_horse": "🎠", + "carp_streamer": "🎏", + "carrot": "🥕", + "castle": "🏰", + "cat": "🐱", + "cat_face": "🐱", + "cat_face_with_tears_of_joy": "😹", + "cat_face_with_wry_smile": "😼", + "chains": "⛓", + "chair": "🪑", + "chart_decreasing": "📉", + "chart_increasing": "📈", + "chart_increasing_with_yen": "💹", + "cheese_wedge": "🧀", + "chequered_flag": "🏁", + "cherries": "🍒", + "cherry_blossom": "🌸", + "chess_pawn": "♟", + "chestnut": "🌰", + "chicken": "🐔", + "child": "🧒", + "child_dark_skin_tone": "🧒🏿", + "child_light_skin_tone": "🧒🏻", + "child_medium-dark_skin_tone": "🧒🏾", + "child_medium-light_skin_tone": "🧒🏼", + "child_medium_skin_tone": "🧒🏽", + "children_crossing": "🚸", + "chipmunk": "🐿", + "chocolate_bar": "🍫", + "chopsticks": "🥢", + "church": "⛪", + "cigarette": "🚬", + "cinema": "🎦", + "circled_m": "Ⓜ", + "circus_tent": "🎪", + "cityscape": "🏙", + "cityscape_at_dusk": "🌆", + "clamp": "🗜", + "clapper_board": "🎬", + "clapping_hands": "👏", + "clapping_hands_dark_skin_tone": "👏🏿", + "clapping_hands_light_skin_tone": "👏🏻", + "clapping_hands_medium-dark_skin_tone": "👏🏾", + "clapping_hands_medium-light_skin_tone": "👏🏼", + "clapping_hands_medium_skin_tone": "👏🏽", + "classical_building": "🏛", + "clinking_beer_mugs": "🍻", + "clinking_glasses": "🥂", + "clipboard": "📋", + "clockwise_vertical_arrows": "🔃", + "closed_book": "📕", + "closed_mailbox_with_lowered_flag": "📪", + "closed_mailbox_with_raised_flag": "📫", + "closed_umbrella": "🌂", + "cloud": "☁", + "cloud_with_lightning": "🌩", + "cloud_with_lightning_and_rain": "⛈", + "cloud_with_rain": "🌧", + "cloud_with_snow": "🌨", + "clown_face": "🤡", + "club_suit": "♣", + "clutch_bag": "👝", + "coat": "🧥", + "cocktail_glass": "🍸", + "coconut": "🥥", + "coffin": "⚰", + "cold_face": "🥶", + "collision": "💥", + "comet": "☄", + "compass": "🧭", + "computer_disk": "💽", + "computer_mouse": "🖱", + "confetti_ball": "🎊", + "confounded_face": "😖", + "confused_face": "😕", + "construction": "🚧", + "construction_worker": "👷", + "construction_worker_dark_skin_tone": "👷🏿", + "construction_worker_light_skin_tone": "👷🏻", + "construction_worker_medium-dark_skin_tone": "👷🏾", + "construction_worker_medium-light_skin_tone": "👷🏼", + "construction_worker_medium_skin_tone": "👷🏽", + "control_knobs": "🎛", + "convenience_store": "🏪", + "cooked_rice": "🍚", + "cookie": "🍪", + "cooking": "🍳", + "copyright": "©", + "couch_and_lamp": "🛋", + "counterclockwise_arrows_button": "🔄", + "couple_with_heart": "💑", + "couple_with_heart_man_man": "👨\u200d❤️\u200d👨", + "couple_with_heart_woman_man": "👩\u200d❤️\u200d👨", + "couple_with_heart_woman_woman": "👩\u200d❤️\u200d👩", + "cow": "🐮", + "cow_face": "🐮", + "cowboy_hat_face": "🤠", + "crab": "🦀", + "crayon": "🖍", + "credit_card": "💳", + "crescent_moon": "🌙", + "cricket": "🦗", + "cricket_game": "🏏", + "crocodile": "🐊", + "croissant": "🥐", + "cross_mark": "❌", + "cross_mark_button": "❎", + "crossed_fingers": "🤞", + "crossed_fingers_dark_skin_tone": "🤞🏿", + "crossed_fingers_light_skin_tone": "🤞🏻", + "crossed_fingers_medium-dark_skin_tone": "🤞🏾", + "crossed_fingers_medium-light_skin_tone": "🤞🏼", + "crossed_fingers_medium_skin_tone": "🤞🏽", + "crossed_flags": "🎌", + "crossed_swords": "⚔", + "crown": "👑", + "crying_cat_face": "😿", + "crying_face": "😢", + "crystal_ball": "🔮", + "cucumber": "🥒", + "cupcake": "🧁", + "cup_with_straw": "🥤", + "curling_stone": "🥌", + "curly_hair": "🦱", + "curly-haired_man": "👨\u200d🦱", + "curly-haired_woman": "👩\u200d🦱", + "curly_loop": "➰", + "currency_exchange": "💱", + "curry_rice": "🍛", + "custard": "🍮", + "customs": "🛃", + "cut_of_meat": "🥩", + "cyclone": "🌀", + "dagger": "🗡", + "dango": "🍡", + "dashing_away": "💨", + "deaf_person": "🧏", + "deciduous_tree": "🌳", + "deer": "🦌", + "delivery_truck": "🚚", + "department_store": "🏬", + "derelict_house": "🏚", + "desert": "🏜", + "desert_island": "🏝", + "desktop_computer": "🖥", + "detective": "🕵", + "detective_dark_skin_tone": "🕵🏿", + "detective_light_skin_tone": "🕵🏻", + "detective_medium-dark_skin_tone": "🕵🏾", + "detective_medium-light_skin_tone": "🕵🏼", + "detective_medium_skin_tone": "🕵🏽", + "diamond_suit": "♦", + "diamond_with_a_dot": "💠", + "dim_button": "🔅", + "direct_hit": "🎯", + "disappointed_face": "😞", + "diving_mask": "🤿", + "diya_lamp": "🪔", + "dizzy": "💫", + "dizzy_face": "😵", + "dna": "🧬", + "dog": "🐶", + "dog_face": "🐶", + "dollar_banknote": "💵", + "dolphin": "🐬", + "door": "🚪", + "dotted_six-pointed_star": "🔯", + "double_curly_loop": "➿", + "double_exclamation_mark": "‼", + "doughnut": "🍩", + "dove": "🕊", + "down-left_arrow": "↙", + "down-right_arrow": "↘", + "down_arrow": "⬇", + "downcast_face_with_sweat": "😓", + "downwards_button": "🔽", + "dragon": "🐉", + "dragon_face": "🐲", + "dress": "👗", + "drooling_face": "🤤", + "drop_of_blood": "🩸", + "droplet": "💧", + "drum": "🥁", + "duck": "🦆", + "dumpling": "🥟", + "dvd": "📀", + "e-mail": "📧", + "eagle": "🦅", + "ear": "👂", + "ear_dark_skin_tone": "👂🏿", + "ear_light_skin_tone": "👂🏻", + "ear_medium-dark_skin_tone": "👂🏾", + "ear_medium-light_skin_tone": "👂🏼", + "ear_medium_skin_tone": "👂🏽", + "ear_of_corn": "🌽", + "ear_with_hearing_aid": "🦻", + "egg": "🍳", + "eggplant": "🍆", + "eight-pointed_star": "✴", + "eight-spoked_asterisk": "✳", + "eight-thirty": "🕣", + "eight_o’clock": "🕗", + "eject_button": "⏏", + "electric_plug": "🔌", + "elephant": "🐘", + "eleven-thirty": "🕦", + "eleven_o’clock": "🕚", + "elf": "🧝", + "elf_dark_skin_tone": "🧝🏿", + "elf_light_skin_tone": "🧝🏻", + "elf_medium-dark_skin_tone": "🧝🏾", + "elf_medium-light_skin_tone": "🧝🏼", + "elf_medium_skin_tone": "🧝🏽", + "envelope": "✉", + "envelope_with_arrow": "📩", + "euro_banknote": "💶", + "evergreen_tree": "🌲", + "ewe": "🐑", + "exclamation_mark": "❗", + "exclamation_question_mark": "⁉", + "exploding_head": "🤯", + "expressionless_face": "😑", + "eye": "👁", + "eye_in_speech_bubble": "👁️\u200d🗨️", + "eyes": "👀", + "face_blowing_a_kiss": "😘", + "face_savoring_food": "😋", + "face_screaming_in_fear": "😱", + "face_vomiting": "🤮", + "face_with_hand_over_mouth": "🤭", + "face_with_head-bandage": "🤕", + "face_with_medical_mask": "😷", + "face_with_monocle": "🧐", + "face_with_open_mouth": "😮", + "face_with_raised_eyebrow": "🤨", + "face_with_rolling_eyes": "🙄", + "face_with_steam_from_nose": "😤", + "face_with_symbols_on_mouth": "🤬", + "face_with_tears_of_joy": "😂", + "face_with_thermometer": "🤒", + "face_with_tongue": "😛", + "face_without_mouth": "😶", + "factory": "🏭", + "fairy": "🧚", + "fairy_dark_skin_tone": "🧚🏿", + "fairy_light_skin_tone": "🧚🏻", + "fairy_medium-dark_skin_tone": "🧚🏾", + "fairy_medium-light_skin_tone": "🧚🏼", + "fairy_medium_skin_tone": "🧚🏽", + "falafel": "🧆", + "fallen_leaf": "🍂", + "family": "👪", + "family_man_boy": "👨\u200d👦", + "family_man_boy_boy": "👨\u200d👦\u200d👦", + "family_man_girl": "👨\u200d👧", + "family_man_girl_boy": "👨\u200d👧\u200d👦", + "family_man_girl_girl": "👨\u200d👧\u200d👧", + "family_man_man_boy": "👨\u200d👨\u200d👦", + "family_man_man_boy_boy": "👨\u200d👨\u200d👦\u200d👦", + "family_man_man_girl": "👨\u200d👨\u200d👧", + "family_man_man_girl_boy": "👨\u200d👨\u200d👧\u200d👦", + "family_man_man_girl_girl": "👨\u200d👨\u200d👧\u200d👧", + "family_man_woman_boy": "👨\u200d👩\u200d👦", + "family_man_woman_boy_boy": "👨\u200d👩\u200d👦\u200d👦", + "family_man_woman_girl": "👨\u200d👩\u200d👧", + "family_man_woman_girl_boy": "👨\u200d👩\u200d👧\u200d👦", + "family_man_woman_girl_girl": "👨\u200d👩\u200d👧\u200d👧", + "family_woman_boy": "👩\u200d👦", + "family_woman_boy_boy": "👩\u200d👦\u200d👦", + "family_woman_girl": "👩\u200d👧", + "family_woman_girl_boy": "👩\u200d👧\u200d👦", + "family_woman_girl_girl": "👩\u200d👧\u200d👧", + "family_woman_woman_boy": "👩\u200d👩\u200d👦", + "family_woman_woman_boy_boy": "👩\u200d👩\u200d👦\u200d👦", + "family_woman_woman_girl": "👩\u200d👩\u200d👧", + "family_woman_woman_girl_boy": "👩\u200d👩\u200d👧\u200d👦", + "family_woman_woman_girl_girl": "👩\u200d👩\u200d👧\u200d👧", + "fast-forward_button": "⏩", + "fast_down_button": "⏬", + "fast_reverse_button": "⏪", + "fast_up_button": "⏫", + "fax_machine": "📠", + "fearful_face": "😨", + "female_sign": "♀", + "ferris_wheel": "🎡", + "ferry": "⛴", + "field_hockey": "🏑", + "file_cabinet": "🗄", + "file_folder": "📁", + "film_frames": "🎞", + "film_projector": "📽", + "fire": "🔥", + "fire_extinguisher": "🧯", + "firecracker": "🧨", + "fire_engine": "🚒", + "fireworks": "🎆", + "first_quarter_moon": "🌓", + "first_quarter_moon_face": "🌛", + "fish": "🐟", + "fish_cake_with_swirl": "🍥", + "fishing_pole": "🎣", + "five-thirty": "🕠", + "five_o’clock": "🕔", + "flag_in_hole": "⛳", + "flamingo": "🦩", + "flashlight": "🔦", + "flat_shoe": "🥿", + "fleur-de-lis": "⚜", + "flexed_biceps": "💪", + "flexed_biceps_dark_skin_tone": "💪🏿", + "flexed_biceps_light_skin_tone": "💪🏻", + "flexed_biceps_medium-dark_skin_tone": "💪🏾", + "flexed_biceps_medium-light_skin_tone": "💪🏼", + "flexed_biceps_medium_skin_tone": "💪🏽", + "floppy_disk": "💾", + "flower_playing_cards": "🎴", + "flushed_face": "😳", + "flying_disc": "🥏", + "flying_saucer": "🛸", + "fog": "🌫", + "foggy": "🌁", + "folded_hands": "🙏", + "folded_hands_dark_skin_tone": "🙏🏿", + "folded_hands_light_skin_tone": "🙏🏻", + "folded_hands_medium-dark_skin_tone": "🙏🏾", + "folded_hands_medium-light_skin_tone": "🙏🏼", + "folded_hands_medium_skin_tone": "🙏🏽", + "foot": "🦶", + "footprints": "👣", + "fork_and_knife": "🍴", + "fork_and_knife_with_plate": "🍽", + "fortune_cookie": "🥠", + "fountain": "⛲", + "fountain_pen": "🖋", + "four-thirty": "🕟", + "four_leaf_clover": "🍀", + "four_o’clock": "🕓", + "fox_face": "🦊", + "framed_picture": "🖼", + "french_fries": "🍟", + "fried_shrimp": "🍤", + "frog_face": "🐸", + "front-facing_baby_chick": "🐥", + "frowning_face": "☹", + "frowning_face_with_open_mouth": "😦", + "fuel_pump": "⛽", + "full_moon": "🌕", + "full_moon_face": "🌝", + "funeral_urn": "⚱", + "game_die": "🎲", + "garlic": "🧄", + "gear": "⚙", + "gem_stone": "💎", + "genie": "🧞", + "ghost": "👻", + "giraffe": "🦒", + "girl": "👧", + "girl_dark_skin_tone": "👧🏿", + "girl_light_skin_tone": "👧🏻", + "girl_medium-dark_skin_tone": "👧🏾", + "girl_medium-light_skin_tone": "👧🏼", + "girl_medium_skin_tone": "👧🏽", + "glass_of_milk": "🥛", + "glasses": "👓", + "globe_showing_americas": "🌎", + "globe_showing_asia-australia": "🌏", + "globe_showing_europe-africa": "🌍", + "globe_with_meridians": "🌐", + "gloves": "🧤", + "glowing_star": "🌟", + "goal_net": "🥅", + "goat": "🐐", + "goblin": "👺", + "goggles": "🥽", + "gorilla": "🦍", + "graduation_cap": "🎓", + "grapes": "🍇", + "green_apple": "🍏", + "green_book": "📗", + "green_circle": "🟢", + "green_heart": "💚", + "green_salad": "🥗", + "green_square": "🟩", + "grimacing_face": "😬", + "grinning_cat_face": "😺", + "grinning_cat_face_with_smiling_eyes": "😸", + "grinning_face": "😀", + "grinning_face_with_big_eyes": "😃", + "grinning_face_with_smiling_eyes": "😄", + "grinning_face_with_sweat": "😅", + "grinning_squinting_face": "😆", + "growing_heart": "💗", + "guard": "💂", + "guard_dark_skin_tone": "💂🏿", + "guard_light_skin_tone": "💂🏻", + "guard_medium-dark_skin_tone": "💂🏾", + "guard_medium-light_skin_tone": "💂🏼", + "guard_medium_skin_tone": "💂🏽", + "guide_dog": "🦮", + "guitar": "🎸", + "hamburger": "🍔", + "hammer": "🔨", + "hammer_and_pick": "⚒", + "hammer_and_wrench": "🛠", + "hamster_face": "🐹", + "hand_with_fingers_splayed": "🖐", + "hand_with_fingers_splayed_dark_skin_tone": "🖐🏿", + "hand_with_fingers_splayed_light_skin_tone": "🖐🏻", + "hand_with_fingers_splayed_medium-dark_skin_tone": "🖐🏾", + "hand_with_fingers_splayed_medium-light_skin_tone": "🖐🏼", + "hand_with_fingers_splayed_medium_skin_tone": "🖐🏽", + "handbag": "👜", + "handshake": "🤝", + "hatching_chick": "🐣", + "headphone": "🎧", + "hear-no-evil_monkey": "🙉", + "heart_decoration": "💟", + "heart_suit": "♥", + "heart_with_arrow": "💘", + "heart_with_ribbon": "💝", + "heavy_check_mark": "✔", + "heavy_division_sign": "➗", + "heavy_dollar_sign": "💲", + "heavy_heart_exclamation": "❣", + "heavy_large_circle": "⭕", + "heavy_minus_sign": "➖", + "heavy_multiplication_x": "✖", + "heavy_plus_sign": "➕", + "hedgehog": "🦔", + "helicopter": "🚁", + "herb": "🌿", + "hibiscus": "🌺", + "high-heeled_shoe": "👠", + "high-speed_train": "🚄", + "high_voltage": "⚡", + "hiking_boot": "🥾", + "hindu_temple": "🛕", + "hippopotamus": "🦛", + "hole": "🕳", + "honey_pot": "🍯", + "honeybee": "🐝", + "horizontal_traffic_light": "🚥", + "horse": "🐴", + "horse_face": "🐴", + "horse_racing": "🏇", + "horse_racing_dark_skin_tone": "🏇🏿", + "horse_racing_light_skin_tone": "🏇🏻", + "horse_racing_medium-dark_skin_tone": "🏇🏾", + "horse_racing_medium-light_skin_tone": "🏇🏼", + "horse_racing_medium_skin_tone": "🏇🏽", + "hospital": "🏥", + "hot_beverage": "☕", + "hot_dog": "🌭", + "hot_face": "🥵", + "hot_pepper": "🌶", + "hot_springs": "♨", + "hotel": "🏨", + "hourglass_done": "⌛", + "hourglass_not_done": "⏳", + "house": "🏠", + "house_with_garden": "🏡", + "houses": "🏘", + "hugging_face": "🤗", + "hundred_points": "💯", + "hushed_face": "😯", + "ice": "🧊", + "ice_cream": "🍨", + "ice_hockey": "🏒", + "ice_skate": "⛸", + "inbox_tray": "📥", + "incoming_envelope": "📨", + "index_pointing_up": "☝", + "index_pointing_up_dark_skin_tone": "☝🏿", + "index_pointing_up_light_skin_tone": "☝🏻", + "index_pointing_up_medium-dark_skin_tone": "☝🏾", + "index_pointing_up_medium-light_skin_tone": "☝🏼", + "index_pointing_up_medium_skin_tone": "☝🏽", + "infinity": "♾", + "information": "ℹ", + "input_latin_letters": "🔤", + "input_latin_lowercase": "🔡", + "input_latin_uppercase": "🔠", + "input_numbers": "🔢", + "input_symbols": "🔣", + "jack-o-lantern": "🎃", + "jeans": "👖", + "jigsaw": "🧩", + "joker": "🃏", + "joystick": "🕹", + "kaaba": "🕋", + "kangaroo": "🦘", + "key": "🔑", + "keyboard": "⌨", + "keycap_#": "#️⃣", + "keycap_*": "*️⃣", + "keycap_0": "0️⃣", + "keycap_1": "1️⃣", + "keycap_10": "🔟", + "keycap_2": "2️⃣", + "keycap_3": "3️⃣", + "keycap_4": "4️⃣", + "keycap_5": "5️⃣", + "keycap_6": "6️⃣", + "keycap_7": "7️⃣", + "keycap_8": "8️⃣", + "keycap_9": "9️⃣", + "kick_scooter": "🛴", + "kimono": "👘", + "kiss": "💋", + "kiss_man_man": "👨\u200d❤️\u200d💋\u200d👨", + "kiss_mark": "💋", + "kiss_woman_man": "👩\u200d❤️\u200d💋\u200d👨", + "kiss_woman_woman": "👩\u200d❤️\u200d💋\u200d👩", + "kissing_cat_face": "😽", + "kissing_face": "😗", + "kissing_face_with_closed_eyes": "😚", + "kissing_face_with_smiling_eyes": "😙", + "kitchen_knife": "🔪", + "kite": "🪁", + "kiwi_fruit": "🥝", + "koala": "🐨", + "lab_coat": "🥼", + "label": "🏷", + "lacrosse": "🥍", + "lady_beetle": "🐞", + "laptop_computer": "💻", + "large_blue_diamond": "🔷", + "large_orange_diamond": "🔶", + "last_quarter_moon": "🌗", + "last_quarter_moon_face": "🌜", + "last_track_button": "⏮", + "latin_cross": "✝", + "leaf_fluttering_in_wind": "🍃", + "leafy_green": "🥬", + "ledger": "📒", + "left-facing_fist": "🤛", + "left-facing_fist_dark_skin_tone": "🤛🏿", + "left-facing_fist_light_skin_tone": "🤛🏻", + "left-facing_fist_medium-dark_skin_tone": "🤛🏾", + "left-facing_fist_medium-light_skin_tone": "🤛🏼", + "left-facing_fist_medium_skin_tone": "🤛🏽", + "left-right_arrow": "↔", + "left_arrow": "⬅", + "left_arrow_curving_right": "↪", + "left_luggage": "🛅", + "left_speech_bubble": "🗨", + "leg": "🦵", + "lemon": "🍋", + "leopard": "🐆", + "level_slider": "🎚", + "light_bulb": "💡", + "light_rail": "🚈", + "link": "🔗", + "linked_paperclips": "🖇", + "lion_face": "🦁", + "lipstick": "💄", + "litter_in_bin_sign": "🚮", + "lizard": "🦎", + "llama": "🦙", + "lobster": "🦞", + "locked": "🔒", + "locked_with_key": "🔐", + "locked_with_pen": "🔏", + "locomotive": "🚂", + "lollipop": "🍭", + "lotion_bottle": "🧴", + "loudly_crying_face": "😭", + "loudspeaker": "📢", + "love-you_gesture": "🤟", + "love-you_gesture_dark_skin_tone": "🤟🏿", + "love-you_gesture_light_skin_tone": "🤟🏻", + "love-you_gesture_medium-dark_skin_tone": "🤟🏾", + "love-you_gesture_medium-light_skin_tone": "🤟🏼", + "love-you_gesture_medium_skin_tone": "🤟🏽", + "love_hotel": "🏩", + "love_letter": "💌", + "luggage": "🧳", + "lying_face": "🤥", + "mage": "🧙", + "mage_dark_skin_tone": "🧙🏿", + "mage_light_skin_tone": "🧙🏻", + "mage_medium-dark_skin_tone": "🧙🏾", + "mage_medium-light_skin_tone": "🧙🏼", + "mage_medium_skin_tone": "🧙🏽", + "magnet": "🧲", + "magnifying_glass_tilted_left": "🔍", + "magnifying_glass_tilted_right": "🔎", + "mahjong_red_dragon": "🀄", + "male_sign": "♂", + "man": "👨", + "man_and_woman_holding_hands": "👫", + "man_artist": "👨\u200d🎨", + "man_artist_dark_skin_tone": "👨🏿\u200d🎨", + "man_artist_light_skin_tone": "👨🏻\u200d🎨", + "man_artist_medium-dark_skin_tone": "👨🏾\u200d🎨", + "man_artist_medium-light_skin_tone": "👨🏼\u200d🎨", + "man_artist_medium_skin_tone": "👨🏽\u200d🎨", + "man_astronaut": "👨\u200d🚀", + "man_astronaut_dark_skin_tone": "👨🏿\u200d🚀", + "man_astronaut_light_skin_tone": "👨🏻\u200d🚀", + "man_astronaut_medium-dark_skin_tone": "👨🏾\u200d🚀", + "man_astronaut_medium-light_skin_tone": "👨🏼\u200d🚀", + "man_astronaut_medium_skin_tone": "👨🏽\u200d🚀", + "man_biking": "🚴\u200d♂️", + "man_biking_dark_skin_tone": "🚴🏿\u200d♂️", + "man_biking_light_skin_tone": "🚴🏻\u200d♂️", + "man_biking_medium-dark_skin_tone": "🚴🏾\u200d♂️", + "man_biking_medium-light_skin_tone": "🚴🏼\u200d♂️", + "man_biking_medium_skin_tone": "🚴🏽\u200d♂️", + "man_bouncing_ball": "⛹️\u200d♂️", + "man_bouncing_ball_dark_skin_tone": "⛹🏿\u200d♂️", + "man_bouncing_ball_light_skin_tone": "⛹🏻\u200d♂️", + "man_bouncing_ball_medium-dark_skin_tone": "⛹🏾\u200d♂️", + "man_bouncing_ball_medium-light_skin_tone": "⛹🏼\u200d♂️", + "man_bouncing_ball_medium_skin_tone": "⛹🏽\u200d♂️", + "man_bowing": "🙇\u200d♂️", + "man_bowing_dark_skin_tone": "🙇🏿\u200d♂️", + "man_bowing_light_skin_tone": "🙇🏻\u200d♂️", + "man_bowing_medium-dark_skin_tone": "🙇🏾\u200d♂️", + "man_bowing_medium-light_skin_tone": "🙇🏼\u200d♂️", + "man_bowing_medium_skin_tone": "🙇🏽\u200d♂️", + "man_cartwheeling": "🤸\u200d♂️", + "man_cartwheeling_dark_skin_tone": "🤸🏿\u200d♂️", + "man_cartwheeling_light_skin_tone": "🤸🏻\u200d♂️", + "man_cartwheeling_medium-dark_skin_tone": "🤸🏾\u200d♂️", + "man_cartwheeling_medium-light_skin_tone": "🤸🏼\u200d♂️", + "man_cartwheeling_medium_skin_tone": "🤸🏽\u200d♂️", + "man_climbing": "🧗\u200d♂️", + "man_climbing_dark_skin_tone": "🧗🏿\u200d♂️", + "man_climbing_light_skin_tone": "🧗🏻\u200d♂️", + "man_climbing_medium-dark_skin_tone": "🧗🏾\u200d♂️", + "man_climbing_medium-light_skin_tone": "🧗🏼\u200d♂️", + "man_climbing_medium_skin_tone": "🧗🏽\u200d♂️", + "man_construction_worker": "👷\u200d♂️", + "man_construction_worker_dark_skin_tone": "👷🏿\u200d♂️", + "man_construction_worker_light_skin_tone": "👷🏻\u200d♂️", + "man_construction_worker_medium-dark_skin_tone": "👷🏾\u200d♂️", + "man_construction_worker_medium-light_skin_tone": "👷🏼\u200d♂️", + "man_construction_worker_medium_skin_tone": "👷🏽\u200d♂️", + "man_cook": "👨\u200d🍳", + "man_cook_dark_skin_tone": "👨🏿\u200d🍳", + "man_cook_light_skin_tone": "👨🏻\u200d🍳", + "man_cook_medium-dark_skin_tone": "👨🏾\u200d🍳", + "man_cook_medium-light_skin_tone": "👨🏼\u200d🍳", + "man_cook_medium_skin_tone": "👨🏽\u200d🍳", + "man_dancing": "🕺", + "man_dancing_dark_skin_tone": "🕺🏿", + "man_dancing_light_skin_tone": "🕺🏻", + "man_dancing_medium-dark_skin_tone": "🕺🏾", + "man_dancing_medium-light_skin_tone": "🕺🏼", + "man_dancing_medium_skin_tone": "🕺🏽", + "man_dark_skin_tone": "👨🏿", + "man_detective": "🕵️\u200d♂️", + "man_detective_dark_skin_tone": "🕵🏿\u200d♂️", + "man_detective_light_skin_tone": "🕵🏻\u200d♂️", + "man_detective_medium-dark_skin_tone": "🕵🏾\u200d♂️", + "man_detective_medium-light_skin_tone": "🕵🏼\u200d♂️", + "man_detective_medium_skin_tone": "🕵🏽\u200d♂️", + "man_elf": "🧝\u200d♂️", + "man_elf_dark_skin_tone": "🧝🏿\u200d♂️", + "man_elf_light_skin_tone": "🧝🏻\u200d♂️", + "man_elf_medium-dark_skin_tone": "🧝🏾\u200d♂️", + "man_elf_medium-light_skin_tone": "🧝🏼\u200d♂️", + "man_elf_medium_skin_tone": "🧝🏽\u200d♂️", + "man_facepalming": "🤦\u200d♂️", + "man_facepalming_dark_skin_tone": "🤦🏿\u200d♂️", + "man_facepalming_light_skin_tone": "🤦🏻\u200d♂️", + "man_facepalming_medium-dark_skin_tone": "🤦🏾\u200d♂️", + "man_facepalming_medium-light_skin_tone": "🤦🏼\u200d♂️", + "man_facepalming_medium_skin_tone": "🤦🏽\u200d♂️", + "man_factory_worker": "👨\u200d🏭", + "man_factory_worker_dark_skin_tone": "👨🏿\u200d🏭", + "man_factory_worker_light_skin_tone": "👨🏻\u200d🏭", + "man_factory_worker_medium-dark_skin_tone": "👨🏾\u200d🏭", + "man_factory_worker_medium-light_skin_tone": "👨🏼\u200d🏭", + "man_factory_worker_medium_skin_tone": "👨🏽\u200d🏭", + "man_fairy": "🧚\u200d♂️", + "man_fairy_dark_skin_tone": "🧚🏿\u200d♂️", + "man_fairy_light_skin_tone": "🧚🏻\u200d♂️", + "man_fairy_medium-dark_skin_tone": "🧚🏾\u200d♂️", + "man_fairy_medium-light_skin_tone": "🧚🏼\u200d♂️", + "man_fairy_medium_skin_tone": "🧚🏽\u200d♂️", + "man_farmer": "👨\u200d🌾", + "man_farmer_dark_skin_tone": "👨🏿\u200d🌾", + "man_farmer_light_skin_tone": "👨🏻\u200d🌾", + "man_farmer_medium-dark_skin_tone": "👨🏾\u200d🌾", + "man_farmer_medium-light_skin_tone": "👨🏼\u200d🌾", + "man_farmer_medium_skin_tone": "👨🏽\u200d🌾", + "man_firefighter": "👨\u200d🚒", + "man_firefighter_dark_skin_tone": "👨🏿\u200d🚒", + "man_firefighter_light_skin_tone": "👨🏻\u200d🚒", + "man_firefighter_medium-dark_skin_tone": "👨🏾\u200d🚒", + "man_firefighter_medium-light_skin_tone": "👨🏼\u200d🚒", + "man_firefighter_medium_skin_tone": "👨🏽\u200d🚒", + "man_frowning": "🙍\u200d♂️", + "man_frowning_dark_skin_tone": "🙍🏿\u200d♂️", + "man_frowning_light_skin_tone": "🙍🏻\u200d♂️", + "man_frowning_medium-dark_skin_tone": "🙍🏾\u200d♂️", + "man_frowning_medium-light_skin_tone": "🙍🏼\u200d♂️", + "man_frowning_medium_skin_tone": "🙍🏽\u200d♂️", + "man_genie": "🧞\u200d♂️", + "man_gesturing_no": "🙅\u200d♂️", + "man_gesturing_no_dark_skin_tone": "🙅🏿\u200d♂️", + "man_gesturing_no_light_skin_tone": "🙅🏻\u200d♂️", + "man_gesturing_no_medium-dark_skin_tone": "🙅🏾\u200d♂️", + "man_gesturing_no_medium-light_skin_tone": "🙅🏼\u200d♂️", + "man_gesturing_no_medium_skin_tone": "🙅🏽\u200d♂️", + "man_gesturing_ok": "🙆\u200d♂️", + "man_gesturing_ok_dark_skin_tone": "🙆🏿\u200d♂️", + "man_gesturing_ok_light_skin_tone": "🙆🏻\u200d♂️", + "man_gesturing_ok_medium-dark_skin_tone": "🙆🏾\u200d♂️", + "man_gesturing_ok_medium-light_skin_tone": "🙆🏼\u200d♂️", + "man_gesturing_ok_medium_skin_tone": "🙆🏽\u200d♂️", + "man_getting_haircut": "💇\u200d♂️", + "man_getting_haircut_dark_skin_tone": "💇🏿\u200d♂️", + "man_getting_haircut_light_skin_tone": "💇🏻\u200d♂️", + "man_getting_haircut_medium-dark_skin_tone": "💇🏾\u200d♂️", + "man_getting_haircut_medium-light_skin_tone": "💇🏼\u200d♂️", + "man_getting_haircut_medium_skin_tone": "💇🏽\u200d♂️", + "man_getting_massage": "💆\u200d♂️", + "man_getting_massage_dark_skin_tone": "💆🏿\u200d♂️", + "man_getting_massage_light_skin_tone": "💆🏻\u200d♂️", + "man_getting_massage_medium-dark_skin_tone": "💆🏾\u200d♂️", + "man_getting_massage_medium-light_skin_tone": "💆🏼\u200d♂️", + "man_getting_massage_medium_skin_tone": "💆🏽\u200d♂️", + "man_golfing": "🏌️\u200d♂️", + "man_golfing_dark_skin_tone": "🏌🏿\u200d♂️", + "man_golfing_light_skin_tone": "🏌🏻\u200d♂️", + "man_golfing_medium-dark_skin_tone": "🏌🏾\u200d♂️", + "man_golfing_medium-light_skin_tone": "🏌🏼\u200d♂️", + "man_golfing_medium_skin_tone": "🏌🏽\u200d♂️", + "man_guard": "💂\u200d♂️", + "man_guard_dark_skin_tone": "💂🏿\u200d♂️", + "man_guard_light_skin_tone": "💂🏻\u200d♂️", + "man_guard_medium-dark_skin_tone": "💂🏾\u200d♂️", + "man_guard_medium-light_skin_tone": "💂🏼\u200d♂️", + "man_guard_medium_skin_tone": "💂🏽\u200d♂️", + "man_health_worker": "👨\u200d⚕️", + "man_health_worker_dark_skin_tone": "👨🏿\u200d⚕️", + "man_health_worker_light_skin_tone": "👨🏻\u200d⚕️", + "man_health_worker_medium-dark_skin_tone": "👨🏾\u200d⚕️", + "man_health_worker_medium-light_skin_tone": "👨🏼\u200d⚕️", + "man_health_worker_medium_skin_tone": "👨🏽\u200d⚕️", + "man_in_lotus_position": "🧘\u200d♂️", + "man_in_lotus_position_dark_skin_tone": "🧘🏿\u200d♂️", + "man_in_lotus_position_light_skin_tone": "🧘🏻\u200d♂️", + "man_in_lotus_position_medium-dark_skin_tone": "🧘🏾\u200d♂️", + "man_in_lotus_position_medium-light_skin_tone": "🧘🏼\u200d♂️", + "man_in_lotus_position_medium_skin_tone": "🧘🏽\u200d♂️", + "man_in_manual_wheelchair": "👨\u200d🦽", + "man_in_motorized_wheelchair": "👨\u200d🦼", + "man_in_steamy_room": "🧖\u200d♂️", + "man_in_steamy_room_dark_skin_tone": "🧖🏿\u200d♂️", + "man_in_steamy_room_light_skin_tone": "🧖🏻\u200d♂️", + "man_in_steamy_room_medium-dark_skin_tone": "🧖🏾\u200d♂️", + "man_in_steamy_room_medium-light_skin_tone": "🧖🏼\u200d♂️", + "man_in_steamy_room_medium_skin_tone": "🧖🏽\u200d♂️", + "man_in_suit_levitating": "🕴", + "man_in_suit_levitating_dark_skin_tone": "🕴🏿", + "man_in_suit_levitating_light_skin_tone": "🕴🏻", + "man_in_suit_levitating_medium-dark_skin_tone": "🕴🏾", + "man_in_suit_levitating_medium-light_skin_tone": "🕴🏼", + "man_in_suit_levitating_medium_skin_tone": "🕴🏽", + "man_in_tuxedo": "🤵", + "man_in_tuxedo_dark_skin_tone": "🤵🏿", + "man_in_tuxedo_light_skin_tone": "🤵🏻", + "man_in_tuxedo_medium-dark_skin_tone": "🤵🏾", + "man_in_tuxedo_medium-light_skin_tone": "🤵🏼", + "man_in_tuxedo_medium_skin_tone": "🤵🏽", + "man_judge": "👨\u200d⚖️", + "man_judge_dark_skin_tone": "👨🏿\u200d⚖️", + "man_judge_light_skin_tone": "👨🏻\u200d⚖️", + "man_judge_medium-dark_skin_tone": "👨🏾\u200d⚖️", + "man_judge_medium-light_skin_tone": "👨🏼\u200d⚖️", + "man_judge_medium_skin_tone": "👨🏽\u200d⚖️", + "man_juggling": "🤹\u200d♂️", + "man_juggling_dark_skin_tone": "🤹🏿\u200d♂️", + "man_juggling_light_skin_tone": "🤹🏻\u200d♂️", + "man_juggling_medium-dark_skin_tone": "🤹🏾\u200d♂️", + "man_juggling_medium-light_skin_tone": "🤹🏼\u200d♂️", + "man_juggling_medium_skin_tone": "🤹🏽\u200d♂️", + "man_lifting_weights": "🏋️\u200d♂️", + "man_lifting_weights_dark_skin_tone": "🏋🏿\u200d♂️", + "man_lifting_weights_light_skin_tone": "🏋🏻\u200d♂️", + "man_lifting_weights_medium-dark_skin_tone": "🏋🏾\u200d♂️", + "man_lifting_weights_medium-light_skin_tone": "🏋🏼\u200d♂️", + "man_lifting_weights_medium_skin_tone": "🏋🏽\u200d♂️", + "man_light_skin_tone": "👨🏻", + "man_mage": "🧙\u200d♂️", + "man_mage_dark_skin_tone": "🧙🏿\u200d♂️", + "man_mage_light_skin_tone": "🧙🏻\u200d♂️", + "man_mage_medium-dark_skin_tone": "🧙🏾\u200d♂️", + "man_mage_medium-light_skin_tone": "🧙🏼\u200d♂️", + "man_mage_medium_skin_tone": "🧙🏽\u200d♂️", + "man_mechanic": "👨\u200d🔧", + "man_mechanic_dark_skin_tone": "👨🏿\u200d🔧", + "man_mechanic_light_skin_tone": "👨🏻\u200d🔧", + "man_mechanic_medium-dark_skin_tone": "👨🏾\u200d🔧", + "man_mechanic_medium-light_skin_tone": "👨🏼\u200d🔧", + "man_mechanic_medium_skin_tone": "👨🏽\u200d🔧", + "man_medium-dark_skin_tone": "👨🏾", + "man_medium-light_skin_tone": "👨🏼", + "man_medium_skin_tone": "👨🏽", + "man_mountain_biking": "🚵\u200d♂️", + "man_mountain_biking_dark_skin_tone": "🚵🏿\u200d♂️", + "man_mountain_biking_light_skin_tone": "🚵🏻\u200d♂️", + "man_mountain_biking_medium-dark_skin_tone": "🚵🏾\u200d♂️", + "man_mountain_biking_medium-light_skin_tone": "🚵🏼\u200d♂️", + "man_mountain_biking_medium_skin_tone": "🚵🏽\u200d♂️", + "man_office_worker": "👨\u200d💼", + "man_office_worker_dark_skin_tone": "👨🏿\u200d💼", + "man_office_worker_light_skin_tone": "👨🏻\u200d💼", + "man_office_worker_medium-dark_skin_tone": "👨🏾\u200d💼", + "man_office_worker_medium-light_skin_tone": "👨🏼\u200d💼", + "man_office_worker_medium_skin_tone": "👨🏽\u200d💼", + "man_pilot": "👨\u200d✈️", + "man_pilot_dark_skin_tone": "👨🏿\u200d✈️", + "man_pilot_light_skin_tone": "👨🏻\u200d✈️", + "man_pilot_medium-dark_skin_tone": "👨🏾\u200d✈️", + "man_pilot_medium-light_skin_tone": "👨🏼\u200d✈️", + "man_pilot_medium_skin_tone": "👨🏽\u200d✈️", + "man_playing_handball": "🤾\u200d♂️", + "man_playing_handball_dark_skin_tone": "🤾🏿\u200d♂️", + "man_playing_handball_light_skin_tone": "🤾🏻\u200d♂️", + "man_playing_handball_medium-dark_skin_tone": "🤾🏾\u200d♂️", + "man_playing_handball_medium-light_skin_tone": "🤾🏼\u200d♂️", + "man_playing_handball_medium_skin_tone": "🤾🏽\u200d♂️", + "man_playing_water_polo": "🤽\u200d♂️", + "man_playing_water_polo_dark_skin_tone": "🤽🏿\u200d♂️", + "man_playing_water_polo_light_skin_tone": "🤽🏻\u200d♂️", + "man_playing_water_polo_medium-dark_skin_tone": "🤽🏾\u200d♂️", + "man_playing_water_polo_medium-light_skin_tone": "🤽🏼\u200d♂️", + "man_playing_water_polo_medium_skin_tone": "🤽🏽\u200d♂️", + "man_police_officer": "👮\u200d♂️", + "man_police_officer_dark_skin_tone": "👮🏿\u200d♂️", + "man_police_officer_light_skin_tone": "👮🏻\u200d♂️", + "man_police_officer_medium-dark_skin_tone": "👮🏾\u200d♂️", + "man_police_officer_medium-light_skin_tone": "👮🏼\u200d♂️", + "man_police_officer_medium_skin_tone": "👮🏽\u200d♂️", + "man_pouting": "🙎\u200d♂️", + "man_pouting_dark_skin_tone": "🙎🏿\u200d♂️", + "man_pouting_light_skin_tone": "🙎🏻\u200d♂️", + "man_pouting_medium-dark_skin_tone": "🙎🏾\u200d♂️", + "man_pouting_medium-light_skin_tone": "🙎🏼\u200d♂️", + "man_pouting_medium_skin_tone": "🙎🏽\u200d♂️", + "man_raising_hand": "🙋\u200d♂️", + "man_raising_hand_dark_skin_tone": "🙋🏿\u200d♂️", + "man_raising_hand_light_skin_tone": "🙋🏻\u200d♂️", + "man_raising_hand_medium-dark_skin_tone": "🙋🏾\u200d♂️", + "man_raising_hand_medium-light_skin_tone": "🙋🏼\u200d♂️", + "man_raising_hand_medium_skin_tone": "🙋🏽\u200d♂️", + "man_rowing_boat": "🚣\u200d♂️", + "man_rowing_boat_dark_skin_tone": "🚣🏿\u200d♂️", + "man_rowing_boat_light_skin_tone": "🚣🏻\u200d♂️", + "man_rowing_boat_medium-dark_skin_tone": "🚣🏾\u200d♂️", + "man_rowing_boat_medium-light_skin_tone": "🚣🏼\u200d♂️", + "man_rowing_boat_medium_skin_tone": "🚣🏽\u200d♂️", + "man_running": "🏃\u200d♂️", + "man_running_dark_skin_tone": "🏃🏿\u200d♂️", + "man_running_light_skin_tone": "🏃🏻\u200d♂️", + "man_running_medium-dark_skin_tone": "🏃🏾\u200d♂️", + "man_running_medium-light_skin_tone": "🏃🏼\u200d♂️", + "man_running_medium_skin_tone": "🏃🏽\u200d♂️", + "man_scientist": "👨\u200d🔬", + "man_scientist_dark_skin_tone": "👨🏿\u200d🔬", + "man_scientist_light_skin_tone": "👨🏻\u200d🔬", + "man_scientist_medium-dark_skin_tone": "👨🏾\u200d🔬", + "man_scientist_medium-light_skin_tone": "👨🏼\u200d🔬", + "man_scientist_medium_skin_tone": "👨🏽\u200d🔬", + "man_shrugging": "🤷\u200d♂️", + "man_shrugging_dark_skin_tone": "🤷🏿\u200d♂️", + "man_shrugging_light_skin_tone": "🤷🏻\u200d♂️", + "man_shrugging_medium-dark_skin_tone": "🤷🏾\u200d♂️", + "man_shrugging_medium-light_skin_tone": "🤷🏼\u200d♂️", + "man_shrugging_medium_skin_tone": "🤷🏽\u200d♂️", + "man_singer": "👨\u200d🎤", + "man_singer_dark_skin_tone": "👨🏿\u200d🎤", + "man_singer_light_skin_tone": "👨🏻\u200d🎤", + "man_singer_medium-dark_skin_tone": "👨🏾\u200d🎤", + "man_singer_medium-light_skin_tone": "👨🏼\u200d🎤", + "man_singer_medium_skin_tone": "👨🏽\u200d🎤", + "man_student": "👨\u200d🎓", + "man_student_dark_skin_tone": "👨🏿\u200d🎓", + "man_student_light_skin_tone": "👨🏻\u200d🎓", + "man_student_medium-dark_skin_tone": "👨🏾\u200d🎓", + "man_student_medium-light_skin_tone": "👨🏼\u200d🎓", + "man_student_medium_skin_tone": "👨🏽\u200d🎓", + "man_surfing": "🏄\u200d♂️", + "man_surfing_dark_skin_tone": "🏄🏿\u200d♂️", + "man_surfing_light_skin_tone": "🏄🏻\u200d♂️", + "man_surfing_medium-dark_skin_tone": "🏄🏾\u200d♂️", + "man_surfing_medium-light_skin_tone": "🏄🏼\u200d♂️", + "man_surfing_medium_skin_tone": "🏄🏽\u200d♂️", + "man_swimming": "🏊\u200d♂️", + "man_swimming_dark_skin_tone": "🏊🏿\u200d♂️", + "man_swimming_light_skin_tone": "🏊🏻\u200d♂️", + "man_swimming_medium-dark_skin_tone": "🏊🏾\u200d♂️", + "man_swimming_medium-light_skin_tone": "🏊🏼\u200d♂️", + "man_swimming_medium_skin_tone": "🏊🏽\u200d♂️", + "man_teacher": "👨\u200d🏫", + "man_teacher_dark_skin_tone": "👨🏿\u200d🏫", + "man_teacher_light_skin_tone": "👨🏻\u200d🏫", + "man_teacher_medium-dark_skin_tone": "👨🏾\u200d🏫", + "man_teacher_medium-light_skin_tone": "👨🏼\u200d🏫", + "man_teacher_medium_skin_tone": "👨🏽\u200d🏫", + "man_technologist": "👨\u200d💻", + "man_technologist_dark_skin_tone": "👨🏿\u200d💻", + "man_technologist_light_skin_tone": "👨🏻\u200d💻", + "man_technologist_medium-dark_skin_tone": "👨🏾\u200d💻", + "man_technologist_medium-light_skin_tone": "👨🏼\u200d💻", + "man_technologist_medium_skin_tone": "👨🏽\u200d💻", + "man_tipping_hand": "💁\u200d♂️", + "man_tipping_hand_dark_skin_tone": "💁🏿\u200d♂️", + "man_tipping_hand_light_skin_tone": "💁🏻\u200d♂️", + "man_tipping_hand_medium-dark_skin_tone": "💁🏾\u200d♂️", + "man_tipping_hand_medium-light_skin_tone": "💁🏼\u200d♂️", + "man_tipping_hand_medium_skin_tone": "💁🏽\u200d♂️", + "man_vampire": "🧛\u200d♂️", + "man_vampire_dark_skin_tone": "🧛🏿\u200d♂️", + "man_vampire_light_skin_tone": "🧛🏻\u200d♂️", + "man_vampire_medium-dark_skin_tone": "🧛🏾\u200d♂️", + "man_vampire_medium-light_skin_tone": "🧛🏼\u200d♂️", + "man_vampire_medium_skin_tone": "🧛🏽\u200d♂️", + "man_walking": "🚶\u200d♂️", + "man_walking_dark_skin_tone": "🚶🏿\u200d♂️", + "man_walking_light_skin_tone": "🚶🏻\u200d♂️", + "man_walking_medium-dark_skin_tone": "🚶🏾\u200d♂️", + "man_walking_medium-light_skin_tone": "🚶🏼\u200d♂️", + "man_walking_medium_skin_tone": "🚶🏽\u200d♂️", + "man_wearing_turban": "👳\u200d♂️", + "man_wearing_turban_dark_skin_tone": "👳🏿\u200d♂️", + "man_wearing_turban_light_skin_tone": "👳🏻\u200d♂️", + "man_wearing_turban_medium-dark_skin_tone": "👳🏾\u200d♂️", + "man_wearing_turban_medium-light_skin_tone": "👳🏼\u200d♂️", + "man_wearing_turban_medium_skin_tone": "👳🏽\u200d♂️", + "man_with_probing_cane": "👨\u200d🦯", + "man_with_chinese_cap": "👲", + "man_with_chinese_cap_dark_skin_tone": "👲🏿", + "man_with_chinese_cap_light_skin_tone": "👲🏻", + "man_with_chinese_cap_medium-dark_skin_tone": "👲🏾", + "man_with_chinese_cap_medium-light_skin_tone": "👲🏼", + "man_with_chinese_cap_medium_skin_tone": "👲🏽", + "man_zombie": "🧟\u200d♂️", + "mango": "🥭", + "mantelpiece_clock": "🕰", + "manual_wheelchair": "🦽", + "man’s_shoe": "👞", + "map_of_japan": "🗾", + "maple_leaf": "🍁", + "martial_arts_uniform": "🥋", + "mate": "🧉", + "meat_on_bone": "🍖", + "mechanical_arm": "🦾", + "mechanical_leg": "🦿", + "medical_symbol": "⚕", + "megaphone": "📣", + "melon": "🍈", + "memo": "📝", + "men_with_bunny_ears": "👯\u200d♂️", + "men_wrestling": "🤼\u200d♂️", + "menorah": "🕎", + "men’s_room": "🚹", + "mermaid": "🧜\u200d♀️", + "mermaid_dark_skin_tone": "🧜🏿\u200d♀️", + "mermaid_light_skin_tone": "🧜🏻\u200d♀️", + "mermaid_medium-dark_skin_tone": "🧜🏾\u200d♀️", + "mermaid_medium-light_skin_tone": "🧜🏼\u200d♀️", + "mermaid_medium_skin_tone": "🧜🏽\u200d♀️", + "merman": "🧜\u200d♂️", + "merman_dark_skin_tone": "🧜🏿\u200d♂️", + "merman_light_skin_tone": "🧜🏻\u200d♂️", + "merman_medium-dark_skin_tone": "🧜🏾\u200d♂️", + "merman_medium-light_skin_tone": "🧜🏼\u200d♂️", + "merman_medium_skin_tone": "🧜🏽\u200d♂️", + "merperson": "🧜", + "merperson_dark_skin_tone": "🧜🏿", + "merperson_light_skin_tone": "🧜🏻", + "merperson_medium-dark_skin_tone": "🧜🏾", + "merperson_medium-light_skin_tone": "🧜🏼", + "merperson_medium_skin_tone": "🧜🏽", + "metro": "🚇", + "microbe": "🦠", + "microphone": "🎤", + "microscope": "🔬", + "middle_finger": "🖕", + "middle_finger_dark_skin_tone": "🖕🏿", + "middle_finger_light_skin_tone": "🖕🏻", + "middle_finger_medium-dark_skin_tone": "🖕🏾", + "middle_finger_medium-light_skin_tone": "🖕🏼", + "middle_finger_medium_skin_tone": "🖕🏽", + "military_medal": "🎖", + "milky_way": "🌌", + "minibus": "🚐", + "moai": "🗿", + "mobile_phone": "📱", + "mobile_phone_off": "📴", + "mobile_phone_with_arrow": "📲", + "money-mouth_face": "🤑", + "money_bag": "💰", + "money_with_wings": "💸", + "monkey": "🐒", + "monkey_face": "🐵", + "monorail": "🚝", + "moon_cake": "🥮", + "moon_viewing_ceremony": "🎑", + "mosque": "🕌", + "mosquito": "🦟", + "motor_boat": "🛥", + "motor_scooter": "🛵", + "motorcycle": "🏍", + "motorized_wheelchair": "🦼", + "motorway": "🛣", + "mount_fuji": "🗻", + "mountain": "⛰", + "mountain_cableway": "🚠", + "mountain_railway": "🚞", + "mouse": "🐭", + "mouse_face": "🐭", + "mouth": "👄", + "movie_camera": "🎥", + "mushroom": "🍄", + "musical_keyboard": "🎹", + "musical_note": "🎵", + "musical_notes": "🎶", + "musical_score": "🎼", + "muted_speaker": "🔇", + "nail_polish": "💅", + "nail_polish_dark_skin_tone": "💅🏿", + "nail_polish_light_skin_tone": "💅🏻", + "nail_polish_medium-dark_skin_tone": "💅🏾", + "nail_polish_medium-light_skin_tone": "💅🏼", + "nail_polish_medium_skin_tone": "💅🏽", + "name_badge": "📛", + "national_park": "🏞", + "nauseated_face": "🤢", + "nazar_amulet": "🧿", + "necktie": "👔", + "nerd_face": "🤓", + "neutral_face": "😐", + "new_moon": "🌑", + "new_moon_face": "🌚", + "newspaper": "📰", + "next_track_button": "⏭", + "night_with_stars": "🌃", + "nine-thirty": "🕤", + "nine_o’clock": "🕘", + "no_bicycles": "🚳", + "no_entry": "⛔", + "no_littering": "🚯", + "no_mobile_phones": "📵", + "no_one_under_eighteen": "🔞", + "no_pedestrians": "🚷", + "no_smoking": "🚭", + "non-potable_water": "🚱", + "nose": "👃", + "nose_dark_skin_tone": "👃🏿", + "nose_light_skin_tone": "👃🏻", + "nose_medium-dark_skin_tone": "👃🏾", + "nose_medium-light_skin_tone": "👃🏼", + "nose_medium_skin_tone": "👃🏽", + "notebook": "📓", + "notebook_with_decorative_cover": "📔", + "nut_and_bolt": "🔩", + "octopus": "🐙", + "oden": "🍢", + "office_building": "🏢", + "ogre": "👹", + "oil_drum": "🛢", + "old_key": "🗝", + "old_man": "👴", + "old_man_dark_skin_tone": "👴🏿", + "old_man_light_skin_tone": "👴🏻", + "old_man_medium-dark_skin_tone": "👴🏾", + "old_man_medium-light_skin_tone": "👴🏼", + "old_man_medium_skin_tone": "👴🏽", + "old_woman": "👵", + "old_woman_dark_skin_tone": "👵🏿", + "old_woman_light_skin_tone": "👵🏻", + "old_woman_medium-dark_skin_tone": "👵🏾", + "old_woman_medium-light_skin_tone": "👵🏼", + "old_woman_medium_skin_tone": "👵🏽", + "older_adult": "🧓", + "older_adult_dark_skin_tone": "🧓🏿", + "older_adult_light_skin_tone": "🧓🏻", + "older_adult_medium-dark_skin_tone": "🧓🏾", + "older_adult_medium-light_skin_tone": "🧓🏼", + "older_adult_medium_skin_tone": "🧓🏽", + "om": "🕉", + "oncoming_automobile": "🚘", + "oncoming_bus": "🚍", + "oncoming_fist": "👊", + "oncoming_fist_dark_skin_tone": "👊🏿", + "oncoming_fist_light_skin_tone": "👊🏻", + "oncoming_fist_medium-dark_skin_tone": "👊🏾", + "oncoming_fist_medium-light_skin_tone": "👊🏼", + "oncoming_fist_medium_skin_tone": "👊🏽", + "oncoming_police_car": "🚔", + "oncoming_taxi": "🚖", + "one-piece_swimsuit": "🩱", + "one-thirty": "🕜", + "one_o’clock": "🕐", + "onion": "🧅", + "open_book": "📖", + "open_file_folder": "📂", + "open_hands": "👐", + "open_hands_dark_skin_tone": "👐🏿", + "open_hands_light_skin_tone": "👐🏻", + "open_hands_medium-dark_skin_tone": "👐🏾", + "open_hands_medium-light_skin_tone": "👐🏼", + "open_hands_medium_skin_tone": "👐🏽", + "open_mailbox_with_lowered_flag": "📭", + "open_mailbox_with_raised_flag": "📬", + "optical_disk": "💿", + "orange_book": "📙", + "orange_circle": "🟠", + "orange_heart": "🧡", + "orange_square": "🟧", + "orangutan": "🦧", + "orthodox_cross": "☦", + "otter": "🦦", + "outbox_tray": "📤", + "owl": "🦉", + "ox": "🐂", + "oyster": "🦪", + "package": "📦", + "page_facing_up": "📄", + "page_with_curl": "📃", + "pager": "📟", + "paintbrush": "🖌", + "palm_tree": "🌴", + "palms_up_together": "🤲", + "palms_up_together_dark_skin_tone": "🤲🏿", + "palms_up_together_light_skin_tone": "🤲🏻", + "palms_up_together_medium-dark_skin_tone": "🤲🏾", + "palms_up_together_medium-light_skin_tone": "🤲🏼", + "palms_up_together_medium_skin_tone": "🤲🏽", + "pancakes": "🥞", + "panda_face": "🐼", + "paperclip": "📎", + "parrot": "🦜", + "part_alternation_mark": "〽", + "party_popper": "🎉", + "partying_face": "🥳", + "passenger_ship": "🛳", + "passport_control": "🛂", + "pause_button": "⏸", + "paw_prints": "🐾", + "peace_symbol": "☮", + "peach": "🍑", + "peacock": "🦚", + "peanuts": "🥜", + "pear": "🍐", + "pen": "🖊", + "pencil": "📝", + "penguin": "🐧", + "pensive_face": "😔", + "people_holding_hands": "🧑\u200d🤝\u200d🧑", + "people_with_bunny_ears": "👯", + "people_wrestling": "🤼", + "performing_arts": "🎭", + "persevering_face": "😣", + "person_biking": "🚴", + "person_biking_dark_skin_tone": "🚴🏿", + "person_biking_light_skin_tone": "🚴🏻", + "person_biking_medium-dark_skin_tone": "🚴🏾", + "person_biking_medium-light_skin_tone": "🚴🏼", + "person_biking_medium_skin_tone": "🚴🏽", + "person_bouncing_ball": "⛹", + "person_bouncing_ball_dark_skin_tone": "⛹🏿", + "person_bouncing_ball_light_skin_tone": "⛹🏻", + "person_bouncing_ball_medium-dark_skin_tone": "⛹🏾", + "person_bouncing_ball_medium-light_skin_tone": "⛹🏼", + "person_bouncing_ball_medium_skin_tone": "⛹🏽", + "person_bowing": "🙇", + "person_bowing_dark_skin_tone": "🙇🏿", + "person_bowing_light_skin_tone": "🙇🏻", + "person_bowing_medium-dark_skin_tone": "🙇🏾", + "person_bowing_medium-light_skin_tone": "🙇🏼", + "person_bowing_medium_skin_tone": "🙇🏽", + "person_cartwheeling": "🤸", + "person_cartwheeling_dark_skin_tone": "🤸🏿", + "person_cartwheeling_light_skin_tone": "🤸🏻", + "person_cartwheeling_medium-dark_skin_tone": "🤸🏾", + "person_cartwheeling_medium-light_skin_tone": "🤸🏼", + "person_cartwheeling_medium_skin_tone": "🤸🏽", + "person_climbing": "🧗", + "person_climbing_dark_skin_tone": "🧗🏿", + "person_climbing_light_skin_tone": "🧗🏻", + "person_climbing_medium-dark_skin_tone": "🧗🏾", + "person_climbing_medium-light_skin_tone": "🧗🏼", + "person_climbing_medium_skin_tone": "🧗🏽", + "person_facepalming": "🤦", + "person_facepalming_dark_skin_tone": "🤦🏿", + "person_facepalming_light_skin_tone": "🤦🏻", + "person_facepalming_medium-dark_skin_tone": "🤦🏾", + "person_facepalming_medium-light_skin_tone": "🤦🏼", + "person_facepalming_medium_skin_tone": "🤦🏽", + "person_fencing": "🤺", + "person_frowning": "🙍", + "person_frowning_dark_skin_tone": "🙍🏿", + "person_frowning_light_skin_tone": "🙍🏻", + "person_frowning_medium-dark_skin_tone": "🙍🏾", + "person_frowning_medium-light_skin_tone": "🙍🏼", + "person_frowning_medium_skin_tone": "🙍🏽", + "person_gesturing_no": "🙅", + "person_gesturing_no_dark_skin_tone": "🙅🏿", + "person_gesturing_no_light_skin_tone": "🙅🏻", + "person_gesturing_no_medium-dark_skin_tone": "🙅🏾", + "person_gesturing_no_medium-light_skin_tone": "🙅🏼", + "person_gesturing_no_medium_skin_tone": "🙅🏽", + "person_gesturing_ok": "🙆", + "person_gesturing_ok_dark_skin_tone": "🙆🏿", + "person_gesturing_ok_light_skin_tone": "🙆🏻", + "person_gesturing_ok_medium-dark_skin_tone": "🙆🏾", + "person_gesturing_ok_medium-light_skin_tone": "🙆🏼", + "person_gesturing_ok_medium_skin_tone": "🙆🏽", + "person_getting_haircut": "💇", + "person_getting_haircut_dark_skin_tone": "💇🏿", + "person_getting_haircut_light_skin_tone": "💇🏻", + "person_getting_haircut_medium-dark_skin_tone": "💇🏾", + "person_getting_haircut_medium-light_skin_tone": "💇🏼", + "person_getting_haircut_medium_skin_tone": "💇🏽", + "person_getting_massage": "💆", + "person_getting_massage_dark_skin_tone": "💆🏿", + "person_getting_massage_light_skin_tone": "💆🏻", + "person_getting_massage_medium-dark_skin_tone": "💆🏾", + "person_getting_massage_medium-light_skin_tone": "💆🏼", + "person_getting_massage_medium_skin_tone": "💆🏽", + "person_golfing": "🏌", + "person_golfing_dark_skin_tone": "🏌🏿", + "person_golfing_light_skin_tone": "🏌🏻", + "person_golfing_medium-dark_skin_tone": "🏌🏾", + "person_golfing_medium-light_skin_tone": "🏌🏼", + "person_golfing_medium_skin_tone": "🏌🏽", + "person_in_bed": "🛌", + "person_in_bed_dark_skin_tone": "🛌🏿", + "person_in_bed_light_skin_tone": "🛌🏻", + "person_in_bed_medium-dark_skin_tone": "🛌🏾", + "person_in_bed_medium-light_skin_tone": "🛌🏼", + "person_in_bed_medium_skin_tone": "🛌🏽", + "person_in_lotus_position": "🧘", + "person_in_lotus_position_dark_skin_tone": "🧘🏿", + "person_in_lotus_position_light_skin_tone": "🧘🏻", + "person_in_lotus_position_medium-dark_skin_tone": "🧘🏾", + "person_in_lotus_position_medium-light_skin_tone": "🧘🏼", + "person_in_lotus_position_medium_skin_tone": "🧘🏽", + "person_in_steamy_room": "🧖", + "person_in_steamy_room_dark_skin_tone": "🧖🏿", + "person_in_steamy_room_light_skin_tone": "🧖🏻", + "person_in_steamy_room_medium-dark_skin_tone": "🧖🏾", + "person_in_steamy_room_medium-light_skin_tone": "🧖🏼", + "person_in_steamy_room_medium_skin_tone": "🧖🏽", + "person_juggling": "🤹", + "person_juggling_dark_skin_tone": "🤹🏿", + "person_juggling_light_skin_tone": "🤹🏻", + "person_juggling_medium-dark_skin_tone": "🤹🏾", + "person_juggling_medium-light_skin_tone": "🤹🏼", + "person_juggling_medium_skin_tone": "🤹🏽", + "person_kneeling": "🧎", + "person_lifting_weights": "🏋", + "person_lifting_weights_dark_skin_tone": "🏋🏿", + "person_lifting_weights_light_skin_tone": "🏋🏻", + "person_lifting_weights_medium-dark_skin_tone": "🏋🏾", + "person_lifting_weights_medium-light_skin_tone": "🏋🏼", + "person_lifting_weights_medium_skin_tone": "🏋🏽", + "person_mountain_biking": "🚵", + "person_mountain_biking_dark_skin_tone": "🚵🏿", + "person_mountain_biking_light_skin_tone": "🚵🏻", + "person_mountain_biking_medium-dark_skin_tone": "🚵🏾", + "person_mountain_biking_medium-light_skin_tone": "🚵🏼", + "person_mountain_biking_medium_skin_tone": "🚵🏽", + "person_playing_handball": "🤾", + "person_playing_handball_dark_skin_tone": "🤾🏿", + "person_playing_handball_light_skin_tone": "🤾🏻", + "person_playing_handball_medium-dark_skin_tone": "🤾🏾", + "person_playing_handball_medium-light_skin_tone": "🤾🏼", + "person_playing_handball_medium_skin_tone": "🤾🏽", + "person_playing_water_polo": "🤽", + "person_playing_water_polo_dark_skin_tone": "🤽🏿", + "person_playing_water_polo_light_skin_tone": "🤽🏻", + "person_playing_water_polo_medium-dark_skin_tone": "🤽🏾", + "person_playing_water_polo_medium-light_skin_tone": "🤽🏼", + "person_playing_water_polo_medium_skin_tone": "🤽🏽", + "person_pouting": "🙎", + "person_pouting_dark_skin_tone": "🙎🏿", + "person_pouting_light_skin_tone": "🙎🏻", + "person_pouting_medium-dark_skin_tone": "🙎🏾", + "person_pouting_medium-light_skin_tone": "🙎🏼", + "person_pouting_medium_skin_tone": "🙎🏽", + "person_raising_hand": "🙋", + "person_raising_hand_dark_skin_tone": "🙋🏿", + "person_raising_hand_light_skin_tone": "🙋🏻", + "person_raising_hand_medium-dark_skin_tone": "🙋🏾", + "person_raising_hand_medium-light_skin_tone": "🙋🏼", + "person_raising_hand_medium_skin_tone": "🙋🏽", + "person_rowing_boat": "🚣", + "person_rowing_boat_dark_skin_tone": "🚣🏿", + "person_rowing_boat_light_skin_tone": "🚣🏻", + "person_rowing_boat_medium-dark_skin_tone": "🚣🏾", + "person_rowing_boat_medium-light_skin_tone": "🚣🏼", + "person_rowing_boat_medium_skin_tone": "🚣🏽", + "person_running": "🏃", + "person_running_dark_skin_tone": "🏃🏿", + "person_running_light_skin_tone": "🏃🏻", + "person_running_medium-dark_skin_tone": "🏃🏾", + "person_running_medium-light_skin_tone": "🏃🏼", + "person_running_medium_skin_tone": "🏃🏽", + "person_shrugging": "🤷", + "person_shrugging_dark_skin_tone": "🤷🏿", + "person_shrugging_light_skin_tone": "🤷🏻", + "person_shrugging_medium-dark_skin_tone": "🤷🏾", + "person_shrugging_medium-light_skin_tone": "🤷🏼", + "person_shrugging_medium_skin_tone": "🤷🏽", + "person_standing": "🧍", + "person_surfing": "🏄", + "person_surfing_dark_skin_tone": "🏄🏿", + "person_surfing_light_skin_tone": "🏄🏻", + "person_surfing_medium-dark_skin_tone": "🏄🏾", + "person_surfing_medium-light_skin_tone": "🏄🏼", + "person_surfing_medium_skin_tone": "🏄🏽", + "person_swimming": "🏊", + "person_swimming_dark_skin_tone": "🏊🏿", + "person_swimming_light_skin_tone": "🏊🏻", + "person_swimming_medium-dark_skin_tone": "🏊🏾", + "person_swimming_medium-light_skin_tone": "🏊🏼", + "person_swimming_medium_skin_tone": "🏊🏽", + "person_taking_bath": "🛀", + "person_taking_bath_dark_skin_tone": "🛀🏿", + "person_taking_bath_light_skin_tone": "🛀🏻", + "person_taking_bath_medium-dark_skin_tone": "🛀🏾", + "person_taking_bath_medium-light_skin_tone": "🛀🏼", + "person_taking_bath_medium_skin_tone": "🛀🏽", + "person_tipping_hand": "💁", + "person_tipping_hand_dark_skin_tone": "💁🏿", + "person_tipping_hand_light_skin_tone": "💁🏻", + "person_tipping_hand_medium-dark_skin_tone": "💁🏾", + "person_tipping_hand_medium-light_skin_tone": "💁🏼", + "person_tipping_hand_medium_skin_tone": "💁🏽", + "person_walking": "🚶", + "person_walking_dark_skin_tone": "🚶🏿", + "person_walking_light_skin_tone": "🚶🏻", + "person_walking_medium-dark_skin_tone": "🚶🏾", + "person_walking_medium-light_skin_tone": "🚶🏼", + "person_walking_medium_skin_tone": "🚶🏽", + "person_wearing_turban": "👳", + "person_wearing_turban_dark_skin_tone": "👳🏿", + "person_wearing_turban_light_skin_tone": "👳🏻", + "person_wearing_turban_medium-dark_skin_tone": "👳🏾", + "person_wearing_turban_medium-light_skin_tone": "👳🏼", + "person_wearing_turban_medium_skin_tone": "👳🏽", + "petri_dish": "🧫", + "pick": "⛏", + "pie": "🥧", + "pig": "🐷", + "pig_face": "🐷", + "pig_nose": "🐽", + "pile_of_poo": "💩", + "pill": "💊", + "pinching_hand": "🤏", + "pine_decoration": "🎍", + "pineapple": "🍍", + "ping_pong": "🏓", + "pirate_flag": "🏴\u200d☠️", + "pistol": "🔫", + "pizza": "🍕", + "place_of_worship": "🛐", + "play_button": "▶", + "play_or_pause_button": "⏯", + "pleading_face": "🥺", + "police_car": "🚓", + "police_car_light": "🚨", + "police_officer": "👮", + "police_officer_dark_skin_tone": "👮🏿", + "police_officer_light_skin_tone": "👮🏻", + "police_officer_medium-dark_skin_tone": "👮🏾", + "police_officer_medium-light_skin_tone": "👮🏼", + "police_officer_medium_skin_tone": "👮🏽", + "poodle": "🐩", + "pool_8_ball": "🎱", + "popcorn": "🍿", + "post_office": "🏣", + "postal_horn": "📯", + "postbox": "📮", + "pot_of_food": "🍲", + "potable_water": "🚰", + "potato": "🥔", + "poultry_leg": "🍗", + "pound_banknote": "💷", + "pouting_cat_face": "😾", + "pouting_face": "😡", + "prayer_beads": "📿", + "pregnant_woman": "🤰", + "pregnant_woman_dark_skin_tone": "🤰🏿", + "pregnant_woman_light_skin_tone": "🤰🏻", + "pregnant_woman_medium-dark_skin_tone": "🤰🏾", + "pregnant_woman_medium-light_skin_tone": "🤰🏼", + "pregnant_woman_medium_skin_tone": "🤰🏽", + "pretzel": "🥨", + "probing_cane": "🦯", + "prince": "🤴", + "prince_dark_skin_tone": "🤴🏿", + "prince_light_skin_tone": "🤴🏻", + "prince_medium-dark_skin_tone": "🤴🏾", + "prince_medium-light_skin_tone": "🤴🏼", + "prince_medium_skin_tone": "🤴🏽", + "princess": "👸", + "princess_dark_skin_tone": "👸🏿", + "princess_light_skin_tone": "👸🏻", + "princess_medium-dark_skin_tone": "👸🏾", + "princess_medium-light_skin_tone": "👸🏼", + "princess_medium_skin_tone": "👸🏽", + "printer": "🖨", + "prohibited": "🚫", + "purple_circle": "🟣", + "purple_heart": "💜", + "purple_square": "🟪", + "purse": "👛", + "pushpin": "📌", + "question_mark": "❓", + "rabbit": "🐰", + "rabbit_face": "🐰", + "raccoon": "🦝", + "racing_car": "🏎", + "radio": "📻", + "radio_button": "🔘", + "radioactive": "☢", + "railway_car": "🚃", + "railway_track": "🛤", + "rainbow": "🌈", + "rainbow_flag": "🏳️\u200d🌈", + "raised_back_of_hand": "🤚", + "raised_back_of_hand_dark_skin_tone": "🤚🏿", + "raised_back_of_hand_light_skin_tone": "🤚🏻", + "raised_back_of_hand_medium-dark_skin_tone": "🤚🏾", + "raised_back_of_hand_medium-light_skin_tone": "🤚🏼", + "raised_back_of_hand_medium_skin_tone": "🤚🏽", + "raised_fist": "✊", + "raised_fist_dark_skin_tone": "✊🏿", + "raised_fist_light_skin_tone": "✊🏻", + "raised_fist_medium-dark_skin_tone": "✊🏾", + "raised_fist_medium-light_skin_tone": "✊🏼", + "raised_fist_medium_skin_tone": "✊🏽", + "raised_hand": "✋", + "raised_hand_dark_skin_tone": "✋🏿", + "raised_hand_light_skin_tone": "✋🏻", + "raised_hand_medium-dark_skin_tone": "✋🏾", + "raised_hand_medium-light_skin_tone": "✋🏼", + "raised_hand_medium_skin_tone": "✋🏽", + "raising_hands": "🙌", + "raising_hands_dark_skin_tone": "🙌🏿", + "raising_hands_light_skin_tone": "🙌🏻", + "raising_hands_medium-dark_skin_tone": "🙌🏾", + "raising_hands_medium-light_skin_tone": "🙌🏼", + "raising_hands_medium_skin_tone": "🙌🏽", + "ram": "🐏", + "rat": "🐀", + "razor": "🪒", + "ringed_planet": "🪐", + "receipt": "🧾", + "record_button": "⏺", + "recycling_symbol": "♻", + "red_apple": "🍎", + "red_circle": "🔴", + "red_envelope": "🧧", + "red_hair": "🦰", + "red-haired_man": "👨\u200d🦰", + "red-haired_woman": "👩\u200d🦰", + "red_heart": "❤", + "red_paper_lantern": "🏮", + "red_square": "🟥", + "red_triangle_pointed_down": "🔻", + "red_triangle_pointed_up": "🔺", + "registered": "®", + "relieved_face": "😌", + "reminder_ribbon": "🎗", + "repeat_button": "🔁", + "repeat_single_button": "🔂", + "rescue_worker’s_helmet": "⛑", + "restroom": "🚻", + "reverse_button": "◀", + "revolving_hearts": "💞", + "rhinoceros": "🦏", + "ribbon": "🎀", + "rice_ball": "🍙", + "rice_cracker": "🍘", + "right-facing_fist": "🤜", + "right-facing_fist_dark_skin_tone": "🤜🏿", + "right-facing_fist_light_skin_tone": "🤜🏻", + "right-facing_fist_medium-dark_skin_tone": "🤜🏾", + "right-facing_fist_medium-light_skin_tone": "🤜🏼", + "right-facing_fist_medium_skin_tone": "🤜🏽", + "right_anger_bubble": "🗯", + "right_arrow": "➡", + "right_arrow_curving_down": "⤵", + "right_arrow_curving_left": "↩", + "right_arrow_curving_up": "⤴", + "ring": "💍", + "roasted_sweet_potato": "🍠", + "robot_face": "🤖", + "rocket": "🚀", + "roll_of_paper": "🧻", + "rolled-up_newspaper": "🗞", + "roller_coaster": "🎢", + "rolling_on_the_floor_laughing": "🤣", + "rooster": "🐓", + "rose": "🌹", + "rosette": "🏵", + "round_pushpin": "📍", + "rugby_football": "🏉", + "running_shirt": "🎽", + "running_shoe": "👟", + "sad_but_relieved_face": "😥", + "safety_pin": "🧷", + "safety_vest": "🦺", + "salt": "🧂", + "sailboat": "⛵", + "sake": "🍶", + "sandwich": "🥪", + "sari": "🥻", + "satellite": "📡", + "satellite_antenna": "📡", + "sauropod": "🦕", + "saxophone": "🎷", + "scarf": "🧣", + "school": "🏫", + "school_backpack": "🎒", + "scissors": "✂", + "scorpion": "🦂", + "scroll": "📜", + "seat": "💺", + "see-no-evil_monkey": "🙈", + "seedling": "🌱", + "selfie": "🤳", + "selfie_dark_skin_tone": "🤳🏿", + "selfie_light_skin_tone": "🤳🏻", + "selfie_medium-dark_skin_tone": "🤳🏾", + "selfie_medium-light_skin_tone": "🤳🏼", + "selfie_medium_skin_tone": "🤳🏽", + "service_dog": "🐕\u200d🦺", + "seven-thirty": "🕢", + "seven_o’clock": "🕖", + "shallow_pan_of_food": "🥘", + "shamrock": "☘", + "shark": "🦈", + "shaved_ice": "🍧", + "sheaf_of_rice": "🌾", + "shield": "🛡", + "shinto_shrine": "⛩", + "ship": "🚢", + "shooting_star": "🌠", + "shopping_bags": "🛍", + "shopping_cart": "🛒", + "shortcake": "🍰", + "shorts": "🩳", + "shower": "🚿", + "shrimp": "🦐", + "shuffle_tracks_button": "🔀", + "shushing_face": "🤫", + "sign_of_the_horns": "🤘", + "sign_of_the_horns_dark_skin_tone": "🤘🏿", + "sign_of_the_horns_light_skin_tone": "🤘🏻", + "sign_of_the_horns_medium-dark_skin_tone": "🤘🏾", + "sign_of_the_horns_medium-light_skin_tone": "🤘🏼", + "sign_of_the_horns_medium_skin_tone": "🤘🏽", + "six-thirty": "🕡", + "six_o’clock": "🕕", + "skateboard": "🛹", + "skier": "⛷", + "skis": "🎿", + "skull": "💀", + "skull_and_crossbones": "☠", + "skunk": "🦨", + "sled": "🛷", + "sleeping_face": "😴", + "sleepy_face": "😪", + "slightly_frowning_face": "🙁", + "slightly_smiling_face": "🙂", + "slot_machine": "🎰", + "sloth": "🦥", + "small_airplane": "🛩", + "small_blue_diamond": "🔹", + "small_orange_diamond": "🔸", + "smiling_cat_face_with_heart-eyes": "😻", + "smiling_face": "☺", + "smiling_face_with_halo": "😇", + "smiling_face_with_3_hearts": "🥰", + "smiling_face_with_heart-eyes": "😍", + "smiling_face_with_horns": "😈", + "smiling_face_with_smiling_eyes": "😊", + "smiling_face_with_sunglasses": "😎", + "smirking_face": "😏", + "snail": "🐌", + "snake": "🐍", + "sneezing_face": "🤧", + "snow-capped_mountain": "🏔", + "snowboarder": "🏂", + "snowboarder_dark_skin_tone": "🏂🏿", + "snowboarder_light_skin_tone": "🏂🏻", + "snowboarder_medium-dark_skin_tone": "🏂🏾", + "snowboarder_medium-light_skin_tone": "🏂🏼", + "snowboarder_medium_skin_tone": "🏂🏽", + "snowflake": "❄", + "snowman": "☃", + "snowman_without_snow": "⛄", + "soap": "🧼", + "soccer_ball": "⚽", + "socks": "🧦", + "softball": "🥎", + "soft_ice_cream": "🍦", + "spade_suit": "♠", + "spaghetti": "🍝", + "sparkle": "❇", + "sparkler": "🎇", + "sparkles": "✨", + "sparkling_heart": "💖", + "speak-no-evil_monkey": "🙊", + "speaker_high_volume": "🔊", + "speaker_low_volume": "🔈", + "speaker_medium_volume": "🔉", + "speaking_head": "🗣", + "speech_balloon": "💬", + "speedboat": "🚤", + "spider": "🕷", + "spider_web": "🕸", + "spiral_calendar": "🗓", + "spiral_notepad": "🗒", + "spiral_shell": "🐚", + "spoon": "🥄", + "sponge": "🧽", + "sport_utility_vehicle": "🚙", + "sports_medal": "🏅", + "spouting_whale": "🐳", + "squid": "🦑", + "squinting_face_with_tongue": "😝", + "stadium": "🏟", + "star-struck": "🤩", + "star_and_crescent": "☪", + "star_of_david": "✡", + "station": "🚉", + "steaming_bowl": "🍜", + "stethoscope": "🩺", + "stop_button": "⏹", + "stop_sign": "🛑", + "stopwatch": "⏱", + "straight_ruler": "📏", + "strawberry": "🍓", + "studio_microphone": "🎙", + "stuffed_flatbread": "🥙", + "sun": "☀", + "sun_behind_cloud": "⛅", + "sun_behind_large_cloud": "🌥", + "sun_behind_rain_cloud": "🌦", + "sun_behind_small_cloud": "🌤", + "sun_with_face": "🌞", + "sunflower": "🌻", + "sunglasses": "😎", + "sunrise": "🌅", + "sunrise_over_mountains": "🌄", + "sunset": "🌇", + "superhero": "🦸", + "supervillain": "🦹", + "sushi": "🍣", + "suspension_railway": "🚟", + "swan": "🦢", + "sweat_droplets": "💦", + "synagogue": "🕍", + "syringe": "💉", + "t-shirt": "👕", + "taco": "🌮", + "takeout_box": "🥡", + "tanabata_tree": "🎋", + "tangerine": "🍊", + "taxi": "🚕", + "teacup_without_handle": "🍵", + "tear-off_calendar": "📆", + "teddy_bear": "🧸", + "telephone": "☎", + "telephone_receiver": "📞", + "telescope": "🔭", + "television": "📺", + "ten-thirty": "🕥", + "ten_o’clock": "🕙", + "tennis": "🎾", + "tent": "⛺", + "test_tube": "🧪", + "thermometer": "🌡", + "thinking_face": "🤔", + "thought_balloon": "💭", + "thread": "🧵", + "three-thirty": "🕞", + "three_o’clock": "🕒", + "thumbs_down": "👎", + "thumbs_down_dark_skin_tone": "👎🏿", + "thumbs_down_light_skin_tone": "👎🏻", + "thumbs_down_medium-dark_skin_tone": "👎🏾", + "thumbs_down_medium-light_skin_tone": "👎🏼", + "thumbs_down_medium_skin_tone": "👎🏽", + "thumbs_up": "👍", + "thumbs_up_dark_skin_tone": "👍🏿", + "thumbs_up_light_skin_tone": "👍🏻", + "thumbs_up_medium-dark_skin_tone": "👍🏾", + "thumbs_up_medium-light_skin_tone": "👍🏼", + "thumbs_up_medium_skin_tone": "👍🏽", + "ticket": "🎫", + "tiger": "🐯", + "tiger_face": "🐯", + "timer_clock": "⏲", + "tired_face": "😫", + "toolbox": "🧰", + "toilet": "🚽", + "tomato": "🍅", + "tongue": "👅", + "tooth": "🦷", + "top_hat": "🎩", + "tornado": "🌪", + "trackball": "🖲", + "tractor": "🚜", + "trade_mark": "™", + "train": "🚋", + "tram": "🚊", + "tram_car": "🚋", + "triangular_flag": "🚩", + "triangular_ruler": "📐", + "trident_emblem": "🔱", + "trolleybus": "🚎", + "trophy": "🏆", + "tropical_drink": "🍹", + "tropical_fish": "🐠", + "trumpet": "🎺", + "tulip": "🌷", + "tumbler_glass": "🥃", + "turtle": "🐢", + "twelve-thirty": "🕧", + "twelve_o’clock": "🕛", + "two-hump_camel": "🐫", + "two-thirty": "🕝", + "two_hearts": "💕", + "two_men_holding_hands": "👬", + "two_o’clock": "🕑", + "two_women_holding_hands": "👭", + "umbrella": "☂", + "umbrella_on_ground": "⛱", + "umbrella_with_rain_drops": "☔", + "unamused_face": "😒", + "unicorn_face": "🦄", + "unlocked": "🔓", + "up-down_arrow": "↕", + "up-left_arrow": "↖", + "up-right_arrow": "↗", + "up_arrow": "⬆", + "upside-down_face": "🙃", + "upwards_button": "🔼", + "vampire": "🧛", + "vampire_dark_skin_tone": "🧛🏿", + "vampire_light_skin_tone": "🧛🏻", + "vampire_medium-dark_skin_tone": "🧛🏾", + "vampire_medium-light_skin_tone": "🧛🏼", + "vampire_medium_skin_tone": "🧛🏽", + "vertical_traffic_light": "🚦", + "vibration_mode": "📳", + "victory_hand": "✌", + "victory_hand_dark_skin_tone": "✌🏿", + "victory_hand_light_skin_tone": "✌🏻", + "victory_hand_medium-dark_skin_tone": "✌🏾", + "victory_hand_medium-light_skin_tone": "✌🏼", + "victory_hand_medium_skin_tone": "✌🏽", + "video_camera": "📹", + "video_game": "🎮", + "videocassette": "📼", + "violin": "🎻", + "volcano": "🌋", + "volleyball": "🏐", + "vulcan_salute": "🖖", + "vulcan_salute_dark_skin_tone": "🖖🏿", + "vulcan_salute_light_skin_tone": "🖖🏻", + "vulcan_salute_medium-dark_skin_tone": "🖖🏾", + "vulcan_salute_medium-light_skin_tone": "🖖🏼", + "vulcan_salute_medium_skin_tone": "🖖🏽", + "waffle": "🧇", + "waning_crescent_moon": "🌘", + "waning_gibbous_moon": "🌖", + "warning": "⚠", + "wastebasket": "🗑", + "watch": "⌚", + "water_buffalo": "🐃", + "water_closet": "🚾", + "water_wave": "🌊", + "watermelon": "🍉", + "waving_hand": "👋", + "waving_hand_dark_skin_tone": "👋🏿", + "waving_hand_light_skin_tone": "👋🏻", + "waving_hand_medium-dark_skin_tone": "👋🏾", + "waving_hand_medium-light_skin_tone": "👋🏼", + "waving_hand_medium_skin_tone": "👋🏽", + "wavy_dash": "〰", + "waxing_crescent_moon": "🌒", + "waxing_gibbous_moon": "🌔", + "weary_cat_face": "🙀", + "weary_face": "😩", + "wedding": "💒", + "whale": "🐳", + "wheel_of_dharma": "☸", + "wheelchair_symbol": "♿", + "white_circle": "⚪", + "white_exclamation_mark": "❕", + "white_flag": "🏳", + "white_flower": "💮", + "white_hair": "🦳", + "white-haired_man": "👨\u200d🦳", + "white-haired_woman": "👩\u200d🦳", + "white_heart": "🤍", + "white_heavy_check_mark": "✅", + "white_large_square": "⬜", + "white_medium-small_square": "◽", + "white_medium_square": "◻", + "white_medium_star": "⭐", + "white_question_mark": "❔", + "white_small_square": "▫", + "white_square_button": "🔳", + "wilted_flower": "🥀", + "wind_chime": "🎐", + "wind_face": "🌬", + "wine_glass": "🍷", + "winking_face": "😉", + "winking_face_with_tongue": "😜", + "wolf_face": "🐺", + "woman": "👩", + "woman_artist": "👩\u200d🎨", + "woman_artist_dark_skin_tone": "👩🏿\u200d🎨", + "woman_artist_light_skin_tone": "👩🏻\u200d🎨", + "woman_artist_medium-dark_skin_tone": "👩🏾\u200d🎨", + "woman_artist_medium-light_skin_tone": "👩🏼\u200d🎨", + "woman_artist_medium_skin_tone": "👩🏽\u200d🎨", + "woman_astronaut": "👩\u200d🚀", + "woman_astronaut_dark_skin_tone": "👩🏿\u200d🚀", + "woman_astronaut_light_skin_tone": "👩🏻\u200d🚀", + "woman_astronaut_medium-dark_skin_tone": "👩🏾\u200d🚀", + "woman_astronaut_medium-light_skin_tone": "👩🏼\u200d🚀", + "woman_astronaut_medium_skin_tone": "👩🏽\u200d🚀", + "woman_biking": "🚴\u200d♀️", + "woman_biking_dark_skin_tone": "🚴🏿\u200d♀️", + "woman_biking_light_skin_tone": "🚴🏻\u200d♀️", + "woman_biking_medium-dark_skin_tone": "🚴🏾\u200d♀️", + "woman_biking_medium-light_skin_tone": "🚴🏼\u200d♀️", + "woman_biking_medium_skin_tone": "🚴🏽\u200d♀️", + "woman_bouncing_ball": "⛹️\u200d♀️", + "woman_bouncing_ball_dark_skin_tone": "⛹🏿\u200d♀️", + "woman_bouncing_ball_light_skin_tone": "⛹🏻\u200d♀️", + "woman_bouncing_ball_medium-dark_skin_tone": "⛹🏾\u200d♀️", + "woman_bouncing_ball_medium-light_skin_tone": "⛹🏼\u200d♀️", + "woman_bouncing_ball_medium_skin_tone": "⛹🏽\u200d♀️", + "woman_bowing": "🙇\u200d♀️", + "woman_bowing_dark_skin_tone": "🙇🏿\u200d♀️", + "woman_bowing_light_skin_tone": "🙇🏻\u200d♀️", + "woman_bowing_medium-dark_skin_tone": "🙇🏾\u200d♀️", + "woman_bowing_medium-light_skin_tone": "🙇🏼\u200d♀️", + "woman_bowing_medium_skin_tone": "🙇🏽\u200d♀️", + "woman_cartwheeling": "🤸\u200d♀️", + "woman_cartwheeling_dark_skin_tone": "🤸🏿\u200d♀️", + "woman_cartwheeling_light_skin_tone": "🤸🏻\u200d♀️", + "woman_cartwheeling_medium-dark_skin_tone": "🤸🏾\u200d♀️", + "woman_cartwheeling_medium-light_skin_tone": "🤸🏼\u200d♀️", + "woman_cartwheeling_medium_skin_tone": "🤸🏽\u200d♀️", + "woman_climbing": "🧗\u200d♀️", + "woman_climbing_dark_skin_tone": "🧗🏿\u200d♀️", + "woman_climbing_light_skin_tone": "🧗🏻\u200d♀️", + "woman_climbing_medium-dark_skin_tone": "🧗🏾\u200d♀️", + "woman_climbing_medium-light_skin_tone": "🧗🏼\u200d♀️", + "woman_climbing_medium_skin_tone": "🧗🏽\u200d♀️", + "woman_construction_worker": "👷\u200d♀️", + "woman_construction_worker_dark_skin_tone": "👷🏿\u200d♀️", + "woman_construction_worker_light_skin_tone": "👷🏻\u200d♀️", + "woman_construction_worker_medium-dark_skin_tone": "👷🏾\u200d♀️", + "woman_construction_worker_medium-light_skin_tone": "👷🏼\u200d♀️", + "woman_construction_worker_medium_skin_tone": "👷🏽\u200d♀️", + "woman_cook": "👩\u200d🍳", + "woman_cook_dark_skin_tone": "👩🏿\u200d🍳", + "woman_cook_light_skin_tone": "👩🏻\u200d🍳", + "woman_cook_medium-dark_skin_tone": "👩🏾\u200d🍳", + "woman_cook_medium-light_skin_tone": "👩🏼\u200d🍳", + "woman_cook_medium_skin_tone": "👩🏽\u200d🍳", + "woman_dancing": "💃", + "woman_dancing_dark_skin_tone": "💃🏿", + "woman_dancing_light_skin_tone": "💃🏻", + "woman_dancing_medium-dark_skin_tone": "💃🏾", + "woman_dancing_medium-light_skin_tone": "💃🏼", + "woman_dancing_medium_skin_tone": "💃🏽", + "woman_dark_skin_tone": "👩🏿", + "woman_detective": "🕵️\u200d♀️", + "woman_detective_dark_skin_tone": "🕵🏿\u200d♀️", + "woman_detective_light_skin_tone": "🕵🏻\u200d♀️", + "woman_detective_medium-dark_skin_tone": "🕵🏾\u200d♀️", + "woman_detective_medium-light_skin_tone": "🕵🏼\u200d♀️", + "woman_detective_medium_skin_tone": "🕵🏽\u200d♀️", + "woman_elf": "🧝\u200d♀️", + "woman_elf_dark_skin_tone": "🧝🏿\u200d♀️", + "woman_elf_light_skin_tone": "🧝🏻\u200d♀️", + "woman_elf_medium-dark_skin_tone": "🧝🏾\u200d♀️", + "woman_elf_medium-light_skin_tone": "🧝🏼\u200d♀️", + "woman_elf_medium_skin_tone": "🧝🏽\u200d♀️", + "woman_facepalming": "🤦\u200d♀️", + "woman_facepalming_dark_skin_tone": "🤦🏿\u200d♀️", + "woman_facepalming_light_skin_tone": "🤦🏻\u200d♀️", + "woman_facepalming_medium-dark_skin_tone": "🤦🏾\u200d♀️", + "woman_facepalming_medium-light_skin_tone": "🤦🏼\u200d♀️", + "woman_facepalming_medium_skin_tone": "🤦🏽\u200d♀️", + "woman_factory_worker": "👩\u200d🏭", + "woman_factory_worker_dark_skin_tone": "👩🏿\u200d🏭", + "woman_factory_worker_light_skin_tone": "👩🏻\u200d🏭", + "woman_factory_worker_medium-dark_skin_tone": "👩🏾\u200d🏭", + "woman_factory_worker_medium-light_skin_tone": "👩🏼\u200d🏭", + "woman_factory_worker_medium_skin_tone": "👩🏽\u200d🏭", + "woman_fairy": "🧚\u200d♀️", + "woman_fairy_dark_skin_tone": "🧚🏿\u200d♀️", + "woman_fairy_light_skin_tone": "🧚🏻\u200d♀️", + "woman_fairy_medium-dark_skin_tone": "🧚🏾\u200d♀️", + "woman_fairy_medium-light_skin_tone": "🧚🏼\u200d♀️", + "woman_fairy_medium_skin_tone": "🧚🏽\u200d♀️", + "woman_farmer": "👩\u200d🌾", + "woman_farmer_dark_skin_tone": "👩🏿\u200d🌾", + "woman_farmer_light_skin_tone": "👩🏻\u200d🌾", + "woman_farmer_medium-dark_skin_tone": "👩🏾\u200d🌾", + "woman_farmer_medium-light_skin_tone": "👩🏼\u200d🌾", + "woman_farmer_medium_skin_tone": "👩🏽\u200d🌾", + "woman_firefighter": "👩\u200d🚒", + "woman_firefighter_dark_skin_tone": "👩🏿\u200d🚒", + "woman_firefighter_light_skin_tone": "👩🏻\u200d🚒", + "woman_firefighter_medium-dark_skin_tone": "👩🏾\u200d🚒", + "woman_firefighter_medium-light_skin_tone": "👩🏼\u200d🚒", + "woman_firefighter_medium_skin_tone": "👩🏽\u200d🚒", + "woman_frowning": "🙍\u200d♀️", + "woman_frowning_dark_skin_tone": "🙍🏿\u200d♀️", + "woman_frowning_light_skin_tone": "🙍🏻\u200d♀️", + "woman_frowning_medium-dark_skin_tone": "🙍🏾\u200d♀️", + "woman_frowning_medium-light_skin_tone": "🙍🏼\u200d♀️", + "woman_frowning_medium_skin_tone": "🙍🏽\u200d♀️", + "woman_genie": "🧞\u200d♀️", + "woman_gesturing_no": "🙅\u200d♀️", + "woman_gesturing_no_dark_skin_tone": "🙅🏿\u200d♀️", + "woman_gesturing_no_light_skin_tone": "🙅🏻\u200d♀️", + "woman_gesturing_no_medium-dark_skin_tone": "🙅🏾\u200d♀️", + "woman_gesturing_no_medium-light_skin_tone": "🙅🏼\u200d♀️", + "woman_gesturing_no_medium_skin_tone": "🙅🏽\u200d♀️", + "woman_gesturing_ok": "🙆\u200d♀️", + "woman_gesturing_ok_dark_skin_tone": "🙆🏿\u200d♀️", + "woman_gesturing_ok_light_skin_tone": "🙆🏻\u200d♀️", + "woman_gesturing_ok_medium-dark_skin_tone": "🙆🏾\u200d♀️", + "woman_gesturing_ok_medium-light_skin_tone": "🙆🏼\u200d♀️", + "woman_gesturing_ok_medium_skin_tone": "🙆🏽\u200d♀️", + "woman_getting_haircut": "💇\u200d♀️", + "woman_getting_haircut_dark_skin_tone": "💇🏿\u200d♀️", + "woman_getting_haircut_light_skin_tone": "💇🏻\u200d♀️", + "woman_getting_haircut_medium-dark_skin_tone": "💇🏾\u200d♀️", + "woman_getting_haircut_medium-light_skin_tone": "💇🏼\u200d♀️", + "woman_getting_haircut_medium_skin_tone": "💇🏽\u200d♀️", + "woman_getting_massage": "💆\u200d♀️", + "woman_getting_massage_dark_skin_tone": "💆🏿\u200d♀️", + "woman_getting_massage_light_skin_tone": "💆🏻\u200d♀️", + "woman_getting_massage_medium-dark_skin_tone": "💆🏾\u200d♀️", + "woman_getting_massage_medium-light_skin_tone": "💆🏼\u200d♀️", + "woman_getting_massage_medium_skin_tone": "💆🏽\u200d♀️", + "woman_golfing": "🏌️\u200d♀️", + "woman_golfing_dark_skin_tone": "🏌🏿\u200d♀️", + "woman_golfing_light_skin_tone": "🏌🏻\u200d♀️", + "woman_golfing_medium-dark_skin_tone": "🏌🏾\u200d♀️", + "woman_golfing_medium-light_skin_tone": "🏌🏼\u200d♀️", + "woman_golfing_medium_skin_tone": "🏌🏽\u200d♀️", + "woman_guard": "💂\u200d♀️", + "woman_guard_dark_skin_tone": "💂🏿\u200d♀️", + "woman_guard_light_skin_tone": "💂🏻\u200d♀️", + "woman_guard_medium-dark_skin_tone": "💂🏾\u200d♀️", + "woman_guard_medium-light_skin_tone": "💂🏼\u200d♀️", + "woman_guard_medium_skin_tone": "💂🏽\u200d♀️", + "woman_health_worker": "👩\u200d⚕️", + "woman_health_worker_dark_skin_tone": "👩🏿\u200d⚕️", + "woman_health_worker_light_skin_tone": "👩🏻\u200d⚕️", + "woman_health_worker_medium-dark_skin_tone": "👩🏾\u200d⚕️", + "woman_health_worker_medium-light_skin_tone": "👩🏼\u200d⚕️", + "woman_health_worker_medium_skin_tone": "👩🏽\u200d⚕️", + "woman_in_lotus_position": "🧘\u200d♀️", + "woman_in_lotus_position_dark_skin_tone": "🧘🏿\u200d♀️", + "woman_in_lotus_position_light_skin_tone": "🧘🏻\u200d♀️", + "woman_in_lotus_position_medium-dark_skin_tone": "🧘🏾\u200d♀️", + "woman_in_lotus_position_medium-light_skin_tone": "🧘🏼\u200d♀️", + "woman_in_lotus_position_medium_skin_tone": "🧘🏽\u200d♀️", + "woman_in_manual_wheelchair": "👩\u200d🦽", + "woman_in_motorized_wheelchair": "👩\u200d🦼", + "woman_in_steamy_room": "🧖\u200d♀️", + "woman_in_steamy_room_dark_skin_tone": "🧖🏿\u200d♀️", + "woman_in_steamy_room_light_skin_tone": "🧖🏻\u200d♀️", + "woman_in_steamy_room_medium-dark_skin_tone": "🧖🏾\u200d♀️", + "woman_in_steamy_room_medium-light_skin_tone": "🧖🏼\u200d♀️", + "woman_in_steamy_room_medium_skin_tone": "🧖🏽\u200d♀️", + "woman_judge": "👩\u200d⚖️", + "woman_judge_dark_skin_tone": "👩🏿\u200d⚖️", + "woman_judge_light_skin_tone": "👩🏻\u200d⚖️", + "woman_judge_medium-dark_skin_tone": "👩🏾\u200d⚖️", + "woman_judge_medium-light_skin_tone": "👩🏼\u200d⚖️", + "woman_judge_medium_skin_tone": "👩🏽\u200d⚖️", + "woman_juggling": "🤹\u200d♀️", + "woman_juggling_dark_skin_tone": "🤹🏿\u200d♀️", + "woman_juggling_light_skin_tone": "🤹🏻\u200d♀️", + "woman_juggling_medium-dark_skin_tone": "🤹🏾\u200d♀️", + "woman_juggling_medium-light_skin_tone": "🤹🏼\u200d♀️", + "woman_juggling_medium_skin_tone": "🤹🏽\u200d♀️", + "woman_lifting_weights": "🏋️\u200d♀️", + "woman_lifting_weights_dark_skin_tone": "🏋🏿\u200d♀️", + "woman_lifting_weights_light_skin_tone": "🏋🏻\u200d♀️", + "woman_lifting_weights_medium-dark_skin_tone": "🏋🏾\u200d♀️", + "woman_lifting_weights_medium-light_skin_tone": "🏋🏼\u200d♀️", + "woman_lifting_weights_medium_skin_tone": "🏋🏽\u200d♀️", + "woman_light_skin_tone": "👩🏻", + "woman_mage": "🧙\u200d♀️", + "woman_mage_dark_skin_tone": "🧙🏿\u200d♀️", + "woman_mage_light_skin_tone": "🧙🏻\u200d♀️", + "woman_mage_medium-dark_skin_tone": "🧙🏾\u200d♀️", + "woman_mage_medium-light_skin_tone": "🧙🏼\u200d♀️", + "woman_mage_medium_skin_tone": "🧙🏽\u200d♀️", + "woman_mechanic": "👩\u200d🔧", + "woman_mechanic_dark_skin_tone": "👩🏿\u200d🔧", + "woman_mechanic_light_skin_tone": "👩🏻\u200d🔧", + "woman_mechanic_medium-dark_skin_tone": "👩🏾\u200d🔧", + "woman_mechanic_medium-light_skin_tone": "👩🏼\u200d🔧", + "woman_mechanic_medium_skin_tone": "👩🏽\u200d🔧", + "woman_medium-dark_skin_tone": "👩🏾", + "woman_medium-light_skin_tone": "👩🏼", + "woman_medium_skin_tone": "👩🏽", + "woman_mountain_biking": "🚵\u200d♀️", + "woman_mountain_biking_dark_skin_tone": "🚵🏿\u200d♀️", + "woman_mountain_biking_light_skin_tone": "🚵🏻\u200d♀️", + "woman_mountain_biking_medium-dark_skin_tone": "🚵🏾\u200d♀️", + "woman_mountain_biking_medium-light_skin_tone": "🚵🏼\u200d♀️", + "woman_mountain_biking_medium_skin_tone": "🚵🏽\u200d♀️", + "woman_office_worker": "👩\u200d💼", + "woman_office_worker_dark_skin_tone": "👩🏿\u200d💼", + "woman_office_worker_light_skin_tone": "👩🏻\u200d💼", + "woman_office_worker_medium-dark_skin_tone": "👩🏾\u200d💼", + "woman_office_worker_medium-light_skin_tone": "👩🏼\u200d💼", + "woman_office_worker_medium_skin_tone": "👩🏽\u200d💼", + "woman_pilot": "👩\u200d✈️", + "woman_pilot_dark_skin_tone": "👩🏿\u200d✈️", + "woman_pilot_light_skin_tone": "👩🏻\u200d✈️", + "woman_pilot_medium-dark_skin_tone": "👩🏾\u200d✈️", + "woman_pilot_medium-light_skin_tone": "👩🏼\u200d✈️", + "woman_pilot_medium_skin_tone": "👩🏽\u200d✈️", + "woman_playing_handball": "🤾\u200d♀️", + "woman_playing_handball_dark_skin_tone": "🤾🏿\u200d♀️", + "woman_playing_handball_light_skin_tone": "🤾🏻\u200d♀️", + "woman_playing_handball_medium-dark_skin_tone": "🤾🏾\u200d♀️", + "woman_playing_handball_medium-light_skin_tone": "🤾🏼\u200d♀️", + "woman_playing_handball_medium_skin_tone": "🤾🏽\u200d♀️", + "woman_playing_water_polo": "🤽\u200d♀️", + "woman_playing_water_polo_dark_skin_tone": "🤽🏿\u200d♀️", + "woman_playing_water_polo_light_skin_tone": "🤽🏻\u200d♀️", + "woman_playing_water_polo_medium-dark_skin_tone": "🤽🏾\u200d♀️", + "woman_playing_water_polo_medium-light_skin_tone": "🤽🏼\u200d♀️", + "woman_playing_water_polo_medium_skin_tone": "🤽🏽\u200d♀️", + "woman_police_officer": "👮\u200d♀️", + "woman_police_officer_dark_skin_tone": "👮🏿\u200d♀️", + "woman_police_officer_light_skin_tone": "👮🏻\u200d♀️", + "woman_police_officer_medium-dark_skin_tone": "👮🏾\u200d♀️", + "woman_police_officer_medium-light_skin_tone": "👮🏼\u200d♀️", + "woman_police_officer_medium_skin_tone": "👮🏽\u200d♀️", + "woman_pouting": "🙎\u200d♀️", + "woman_pouting_dark_skin_tone": "🙎🏿\u200d♀️", + "woman_pouting_light_skin_tone": "🙎🏻\u200d♀️", + "woman_pouting_medium-dark_skin_tone": "🙎🏾\u200d♀️", + "woman_pouting_medium-light_skin_tone": "🙎🏼\u200d♀️", + "woman_pouting_medium_skin_tone": "🙎🏽\u200d♀️", + "woman_raising_hand": "🙋\u200d♀️", + "woman_raising_hand_dark_skin_tone": "🙋🏿\u200d♀️", + "woman_raising_hand_light_skin_tone": "🙋🏻\u200d♀️", + "woman_raising_hand_medium-dark_skin_tone": "🙋🏾\u200d♀️", + "woman_raising_hand_medium-light_skin_tone": "🙋🏼\u200d♀️", + "woman_raising_hand_medium_skin_tone": "🙋🏽\u200d♀️", + "woman_rowing_boat": "🚣\u200d♀️", + "woman_rowing_boat_dark_skin_tone": "🚣🏿\u200d♀️", + "woman_rowing_boat_light_skin_tone": "🚣🏻\u200d♀️", + "woman_rowing_boat_medium-dark_skin_tone": "🚣🏾\u200d♀️", + "woman_rowing_boat_medium-light_skin_tone": "🚣🏼\u200d♀️", + "woman_rowing_boat_medium_skin_tone": "🚣🏽\u200d♀️", + "woman_running": "🏃\u200d♀️", + "woman_running_dark_skin_tone": "🏃🏿\u200d♀️", + "woman_running_light_skin_tone": "🏃🏻\u200d♀️", + "woman_running_medium-dark_skin_tone": "🏃🏾\u200d♀️", + "woman_running_medium-light_skin_tone": "🏃🏼\u200d♀️", + "woman_running_medium_skin_tone": "🏃🏽\u200d♀️", + "woman_scientist": "👩\u200d🔬", + "woman_scientist_dark_skin_tone": "👩🏿\u200d🔬", + "woman_scientist_light_skin_tone": "👩🏻\u200d🔬", + "woman_scientist_medium-dark_skin_tone": "👩🏾\u200d🔬", + "woman_scientist_medium-light_skin_tone": "👩🏼\u200d🔬", + "woman_scientist_medium_skin_tone": "👩🏽\u200d🔬", + "woman_shrugging": "🤷\u200d♀️", + "woman_shrugging_dark_skin_tone": "🤷🏿\u200d♀️", + "woman_shrugging_light_skin_tone": "🤷🏻\u200d♀️", + "woman_shrugging_medium-dark_skin_tone": "🤷🏾\u200d♀️", + "woman_shrugging_medium-light_skin_tone": "🤷🏼\u200d♀️", + "woman_shrugging_medium_skin_tone": "🤷🏽\u200d♀️", + "woman_singer": "👩\u200d🎤", + "woman_singer_dark_skin_tone": "👩🏿\u200d🎤", + "woman_singer_light_skin_tone": "👩🏻\u200d🎤", + "woman_singer_medium-dark_skin_tone": "👩🏾\u200d🎤", + "woman_singer_medium-light_skin_tone": "👩🏼\u200d🎤", + "woman_singer_medium_skin_tone": "👩🏽\u200d🎤", + "woman_student": "👩\u200d🎓", + "woman_student_dark_skin_tone": "👩🏿\u200d🎓", + "woman_student_light_skin_tone": "👩🏻\u200d🎓", + "woman_student_medium-dark_skin_tone": "👩🏾\u200d🎓", + "woman_student_medium-light_skin_tone": "👩🏼\u200d🎓", + "woman_student_medium_skin_tone": "👩🏽\u200d🎓", + "woman_surfing": "🏄\u200d♀️", + "woman_surfing_dark_skin_tone": "🏄🏿\u200d♀️", + "woman_surfing_light_skin_tone": "🏄🏻\u200d♀️", + "woman_surfing_medium-dark_skin_tone": "🏄🏾\u200d♀️", + "woman_surfing_medium-light_skin_tone": "🏄🏼\u200d♀️", + "woman_surfing_medium_skin_tone": "🏄🏽\u200d♀️", + "woman_swimming": "🏊\u200d♀️", + "woman_swimming_dark_skin_tone": "🏊🏿\u200d♀️", + "woman_swimming_light_skin_tone": "🏊🏻\u200d♀️", + "woman_swimming_medium-dark_skin_tone": "🏊🏾\u200d♀️", + "woman_swimming_medium-light_skin_tone": "🏊🏼\u200d♀️", + "woman_swimming_medium_skin_tone": "🏊🏽\u200d♀️", + "woman_teacher": "👩\u200d🏫", + "woman_teacher_dark_skin_tone": "👩🏿\u200d🏫", + "woman_teacher_light_skin_tone": "👩🏻\u200d🏫", + "woman_teacher_medium-dark_skin_tone": "👩🏾\u200d🏫", + "woman_teacher_medium-light_skin_tone": "👩🏼\u200d🏫", + "woman_teacher_medium_skin_tone": "👩🏽\u200d🏫", + "woman_technologist": "👩\u200d💻", + "woman_technologist_dark_skin_tone": "👩🏿\u200d💻", + "woman_technologist_light_skin_tone": "👩🏻\u200d💻", + "woman_technologist_medium-dark_skin_tone": "👩🏾\u200d💻", + "woman_technologist_medium-light_skin_tone": "👩🏼\u200d💻", + "woman_technologist_medium_skin_tone": "👩🏽\u200d💻", + "woman_tipping_hand": "💁\u200d♀️", + "woman_tipping_hand_dark_skin_tone": "💁🏿\u200d♀️", + "woman_tipping_hand_light_skin_tone": "💁🏻\u200d♀️", + "woman_tipping_hand_medium-dark_skin_tone": "💁🏾\u200d♀️", + "woman_tipping_hand_medium-light_skin_tone": "💁🏼\u200d♀️", + "woman_tipping_hand_medium_skin_tone": "💁🏽\u200d♀️", + "woman_vampire": "🧛\u200d♀️", + "woman_vampire_dark_skin_tone": "🧛🏿\u200d♀️", + "woman_vampire_light_skin_tone": "🧛🏻\u200d♀️", + "woman_vampire_medium-dark_skin_tone": "🧛🏾\u200d♀️", + "woman_vampire_medium-light_skin_tone": "🧛🏼\u200d♀️", + "woman_vampire_medium_skin_tone": "🧛🏽\u200d♀️", + "woman_walking": "🚶\u200d♀️", + "woman_walking_dark_skin_tone": "🚶🏿\u200d♀️", + "woman_walking_light_skin_tone": "🚶🏻\u200d♀️", + "woman_walking_medium-dark_skin_tone": "🚶🏾\u200d♀️", + "woman_walking_medium-light_skin_tone": "🚶🏼\u200d♀️", + "woman_walking_medium_skin_tone": "🚶🏽\u200d♀️", + "woman_wearing_turban": "👳\u200d♀️", + "woman_wearing_turban_dark_skin_tone": "👳🏿\u200d♀️", + "woman_wearing_turban_light_skin_tone": "👳🏻\u200d♀️", + "woman_wearing_turban_medium-dark_skin_tone": "👳🏾\u200d♀️", + "woman_wearing_turban_medium-light_skin_tone": "👳🏼\u200d♀️", + "woman_wearing_turban_medium_skin_tone": "👳🏽\u200d♀️", + "woman_with_headscarf": "🧕", + "woman_with_headscarf_dark_skin_tone": "🧕🏿", + "woman_with_headscarf_light_skin_tone": "🧕🏻", + "woman_with_headscarf_medium-dark_skin_tone": "🧕🏾", + "woman_with_headscarf_medium-light_skin_tone": "🧕🏼", + "woman_with_headscarf_medium_skin_tone": "🧕🏽", + "woman_with_probing_cane": "👩\u200d🦯", + "woman_zombie": "🧟\u200d♀️", + "woman’s_boot": "👢", + "woman’s_clothes": "👚", + "woman’s_hat": "👒", + "woman’s_sandal": "👡", + "women_with_bunny_ears": "👯\u200d♀️", + "women_wrestling": "🤼\u200d♀️", + "women’s_room": "🚺", + "woozy_face": "🥴", + "world_map": "🗺", + "worried_face": "😟", + "wrapped_gift": "🎁", + "wrench": "🔧", + "writing_hand": "✍", + "writing_hand_dark_skin_tone": "✍🏿", + "writing_hand_light_skin_tone": "✍🏻", + "writing_hand_medium-dark_skin_tone": "✍🏾", + "writing_hand_medium-light_skin_tone": "✍🏼", + "writing_hand_medium_skin_tone": "✍🏽", + "yarn": "🧶", + "yawning_face": "🥱", + "yellow_circle": "🟡", + "yellow_heart": "💛", + "yellow_square": "🟨", + "yen_banknote": "💴", + "yo-yo": "🪀", + "yin_yang": "☯", + "zany_face": "🤪", + "zebra": "🦓", + "zipper-mouth_face": "🤐", + "zombie": "🧟", + "zzz": "💤", + "åland_islands": "🇦🇽", + "keycap_asterisk": "*⃣", + "keycap_digit_eight": "8⃣", + "keycap_digit_five": "5⃣", + "keycap_digit_four": "4⃣", + "keycap_digit_nine": "9⃣", + "keycap_digit_one": "1⃣", + "keycap_digit_seven": "7⃣", + "keycap_digit_six": "6⃣", + "keycap_digit_three": "3⃣", + "keycap_digit_two": "2⃣", + "keycap_digit_zero": "0⃣", + "keycap_number_sign": "#⃣", + "light_skin_tone": "🏻", + "medium_light_skin_tone": "🏼", + "medium_skin_tone": "🏽", + "medium_dark_skin_tone": "🏾", + "dark_skin_tone": "🏿", + "regional_indicator_symbol_letter_a": "🇦", + "regional_indicator_symbol_letter_b": "🇧", + "regional_indicator_symbol_letter_c": "🇨", + "regional_indicator_symbol_letter_d": "🇩", + "regional_indicator_symbol_letter_e": "🇪", + "regional_indicator_symbol_letter_f": "🇫", + "regional_indicator_symbol_letter_g": "🇬", + "regional_indicator_symbol_letter_h": "🇭", + "regional_indicator_symbol_letter_i": "🇮", + "regional_indicator_symbol_letter_j": "🇯", + "regional_indicator_symbol_letter_k": "🇰", + "regional_indicator_symbol_letter_l": "🇱", + "regional_indicator_symbol_letter_m": "🇲", + "regional_indicator_symbol_letter_n": "🇳", + "regional_indicator_symbol_letter_o": "🇴", + "regional_indicator_symbol_letter_p": "🇵", + "regional_indicator_symbol_letter_q": "🇶", + "regional_indicator_symbol_letter_r": "🇷", + "regional_indicator_symbol_letter_s": "🇸", + "regional_indicator_symbol_letter_t": "🇹", + "regional_indicator_symbol_letter_u": "🇺", + "regional_indicator_symbol_letter_v": "🇻", + "regional_indicator_symbol_letter_w": "🇼", + "regional_indicator_symbol_letter_x": "🇽", + "regional_indicator_symbol_letter_y": "🇾", + "regional_indicator_symbol_letter_z": "🇿", + "airplane_arriving": "🛬", + "space_invader": "👾", + "football": "🏈", + "anger": "💢", + "angry": "😠", + "anguished": "😧", + "signal_strength": "📶", + "arrows_counterclockwise": "🔄", + "arrow_heading_down": "⤵", + "arrow_heading_up": "⤴", + "art": "🎨", + "astonished": "😲", + "athletic_shoe": "👟", + "atm": "🏧", + "car": "🚗", + "red_car": "🚗", + "angel": "👼", + "back": "🔙", + "badminton_racquet_and_shuttlecock": "🏸", + "dollar": "💵", + "euro": "💶", + "pound": "💷", + "yen": "💴", + "barber": "💈", + "bath": "🛀", + "bear": "🐻", + "heartbeat": "💓", + "beer": "🍺", + "no_bell": "🔕", + "bento": "🍱", + "bike": "🚲", + "bicyclist": "🚴", + "8ball": "🎱", + "biohazard_sign": "☣", + "birthday": "🎂", + "black_circle_for_record": "⏺", + "clubs": "♣", + "diamonds": "♦", + "arrow_double_down": "⏬", + "hearts": "♥", + "rewind": "⏪", + "black_left__pointing_double_triangle_with_vertical_bar": "⏮", + "arrow_backward": "◀", + "black_medium_small_square": "◾", + "question": "❓", + "fast_forward": "⏩", + "black_right__pointing_double_triangle_with_vertical_bar": "⏭", + "arrow_forward": "▶", + "black_right__pointing_triangle_with_double_vertical_bar": "⏯", + "arrow_right": "➡", + "spades": "♠", + "black_square_for_stop": "⏹", + "sunny": "☀", + "phone": "☎", + "recycle": "♻", + "arrow_double_up": "⏫", + "busstop": "🚏", + "date": "📅", + "flags": "🎏", + "cat2": "🐈", + "joy_cat": "😹", + "smirk_cat": "😼", + "chart_with_downwards_trend": "📉", + "chart_with_upwards_trend": "📈", + "chart": "💹", + "mega": "📣", + "checkered_flag": "🏁", + "accept": "🉑", + "ideograph_advantage": "🉐", + "congratulations": "㊗", + "secret": "㊙", + "m": "Ⓜ", + "city_sunset": "🌆", + "clapper": "🎬", + "clap": "👏", + "beers": "🍻", + "clock830": "🕣", + "clock8": "🕗", + "clock1130": "🕦", + "clock11": "🕚", + "clock530": "🕠", + "clock5": "🕔", + "clock430": "🕟", + "clock4": "🕓", + "clock930": "🕤", + "clock9": "🕘", + "clock130": "🕜", + "clock1": "🕐", + "clock730": "🕢", + "clock7": "🕖", + "clock630": "🕡", + "clock6": "🕕", + "clock1030": "🕥", + "clock10": "🕙", + "clock330": "🕞", + "clock3": "🕒", + "clock1230": "🕧", + "clock12": "🕛", + "clock230": "🕝", + "clock2": "🕑", + "arrows_clockwise": "🔃", + "repeat": "🔁", + "repeat_one": "🔂", + "closed_lock_with_key": "🔐", + "mailbox_closed": "📪", + "mailbox": "📫", + "cloud_with_tornado": "🌪", + "cocktail": "🍸", + "boom": "💥", + "compression": "🗜", + "confounded": "😖", + "confused": "😕", + "rice": "🍚", + "cow2": "🐄", + "cricket_bat_and_ball": "🏏", + "x": "❌", + "cry": "😢", + "curry": "🍛", + "dagger_knife": "🗡", + "dancer": "💃", + "dark_sunglasses": "🕶", + "dash": "💨", + "truck": "🚚", + "derelict_house_building": "🏚", + "diamond_shape_with_a_dot_inside": "💠", + "dart": "🎯", + "disappointed_relieved": "😥", + "disappointed": "😞", + "do_not_litter": "🚯", + "dog2": "🐕", + "flipper": "🐬", + "loop": "➿", + "bangbang": "‼", + "double_vertical_bar": "⏸", + "dove_of_peace": "🕊", + "small_red_triangle_down": "🔻", + "arrow_down_small": "🔽", + "arrow_down": "⬇", + "dromedary_camel": "🐪", + "e__mail": "📧", + "corn": "🌽", + "ear_of_rice": "🌾", + "earth_americas": "🌎", + "earth_asia": "🌏", + "earth_africa": "🌍", + "eight_pointed_black_star": "✴", + "eight_spoked_asterisk": "✳", + "eject_symbol": "⏏", + "bulb": "💡", + "emoji_modifier_fitzpatrick_type__1__2": "🏻", + "emoji_modifier_fitzpatrick_type__3": "🏼", + "emoji_modifier_fitzpatrick_type__4": "🏽", + "emoji_modifier_fitzpatrick_type__5": "🏾", + "emoji_modifier_fitzpatrick_type__6": "🏿", + "end": "🔚", + "email": "✉", + "european_castle": "🏰", + "european_post_office": "🏤", + "interrobang": "⁉", + "expressionless": "😑", + "eyeglasses": "👓", + "massage": "💆", + "yum": "😋", + "scream": "😱", + "kissing_heart": "😘", + "sweat": "😓", + "face_with_head__bandage": "🤕", + "triumph": "😤", + "mask": "😷", + "no_good": "🙅", + "ok_woman": "🙆", + "open_mouth": "😮", + "cold_sweat": "😰", + "stuck_out_tongue": "😛", + "stuck_out_tongue_closed_eyes": "😝", + "stuck_out_tongue_winking_eye": "😜", + "joy": "😂", + "no_mouth": "😶", + "santa": "🎅", + "fax": "📠", + "fearful": "😨", + "field_hockey_stick_and_ball": "🏑", + "first_quarter_moon_with_face": "🌛", + "fish_cake": "🍥", + "fishing_pole_and_fish": "🎣", + "facepunch": "👊", + "punch": "👊", + "flag_for_afghanistan": "🇦🇫", + "flag_for_albania": "🇦🇱", + "flag_for_algeria": "🇩🇿", + "flag_for_american_samoa": "🇦🇸", + "flag_for_andorra": "🇦🇩", + "flag_for_angola": "🇦🇴", + "flag_for_anguilla": "🇦🇮", + "flag_for_antarctica": "🇦🇶", + "flag_for_antigua_&_barbuda": "🇦🇬", + "flag_for_argentina": "🇦🇷", + "flag_for_armenia": "🇦🇲", + "flag_for_aruba": "🇦🇼", + "flag_for_ascension_island": "🇦🇨", + "flag_for_australia": "🇦🇺", + "flag_for_austria": "🇦🇹", + "flag_for_azerbaijan": "🇦🇿", + "flag_for_bahamas": "🇧🇸", + "flag_for_bahrain": "🇧🇭", + "flag_for_bangladesh": "🇧🇩", + "flag_for_barbados": "🇧🇧", + "flag_for_belarus": "🇧🇾", + "flag_for_belgium": "🇧🇪", + "flag_for_belize": "🇧🇿", + "flag_for_benin": "🇧🇯", + "flag_for_bermuda": "🇧🇲", + "flag_for_bhutan": "🇧🇹", + "flag_for_bolivia": "🇧🇴", + "flag_for_bosnia_&_herzegovina": "🇧🇦", + "flag_for_botswana": "🇧🇼", + "flag_for_bouvet_island": "🇧🇻", + "flag_for_brazil": "🇧🇷", + "flag_for_british_indian_ocean_territory": "🇮🇴", + "flag_for_british_virgin_islands": "🇻🇬", + "flag_for_brunei": "🇧🇳", + "flag_for_bulgaria": "🇧🇬", + "flag_for_burkina_faso": "🇧🇫", + "flag_for_burundi": "🇧🇮", + "flag_for_cambodia": "🇰🇭", + "flag_for_cameroon": "🇨🇲", + "flag_for_canada": "🇨🇦", + "flag_for_canary_islands": "🇮🇨", + "flag_for_cape_verde": "🇨🇻", + "flag_for_caribbean_netherlands": "🇧🇶", + "flag_for_cayman_islands": "🇰🇾", + "flag_for_central_african_republic": "🇨🇫", + "flag_for_ceuta_&_melilla": "🇪🇦", + "flag_for_chad": "🇹🇩", + "flag_for_chile": "🇨🇱", + "flag_for_china": "🇨🇳", + "flag_for_christmas_island": "🇨🇽", + "flag_for_clipperton_island": "🇨🇵", + "flag_for_cocos__islands": "🇨🇨", + "flag_for_colombia": "🇨🇴", + "flag_for_comoros": "🇰🇲", + "flag_for_congo____brazzaville": "🇨🇬", + "flag_for_congo____kinshasa": "🇨🇩", + "flag_for_cook_islands": "🇨🇰", + "flag_for_costa_rica": "🇨🇷", + "flag_for_croatia": "🇭🇷", + "flag_for_cuba": "🇨🇺", + "flag_for_curaçao": "🇨🇼", + "flag_for_cyprus": "🇨🇾", + "flag_for_czech_republic": "🇨🇿", + "flag_for_côte_d’ivoire": "🇨🇮", + "flag_for_denmark": "🇩🇰", + "flag_for_diego_garcia": "🇩🇬", + "flag_for_djibouti": "🇩🇯", + "flag_for_dominica": "🇩🇲", + "flag_for_dominican_republic": "🇩🇴", + "flag_for_ecuador": "🇪🇨", + "flag_for_egypt": "🇪🇬", + "flag_for_el_salvador": "🇸🇻", + "flag_for_equatorial_guinea": "🇬🇶", + "flag_for_eritrea": "🇪🇷", + "flag_for_estonia": "🇪🇪", + "flag_for_ethiopia": "🇪🇹", + "flag_for_european_union": "🇪🇺", + "flag_for_falkland_islands": "🇫🇰", + "flag_for_faroe_islands": "🇫🇴", + "flag_for_fiji": "🇫🇯", + "flag_for_finland": "🇫🇮", + "flag_for_france": "🇫🇷", + "flag_for_french_guiana": "🇬🇫", + "flag_for_french_polynesia": "🇵🇫", + "flag_for_french_southern_territories": "🇹🇫", + "flag_for_gabon": "🇬🇦", + "flag_for_gambia": "🇬🇲", + "flag_for_georgia": "🇬🇪", + "flag_for_germany": "🇩🇪", + "flag_for_ghana": "🇬🇭", + "flag_for_gibraltar": "🇬🇮", + "flag_for_greece": "🇬🇷", + "flag_for_greenland": "🇬🇱", + "flag_for_grenada": "🇬🇩", + "flag_for_guadeloupe": "🇬🇵", + "flag_for_guam": "🇬🇺", + "flag_for_guatemala": "🇬🇹", + "flag_for_guernsey": "🇬🇬", + "flag_for_guinea": "🇬🇳", + "flag_for_guinea__bissau": "🇬🇼", + "flag_for_guyana": "🇬🇾", + "flag_for_haiti": "🇭🇹", + "flag_for_heard_&_mcdonald_islands": "🇭🇲", + "flag_for_honduras": "🇭🇳", + "flag_for_hong_kong": "🇭🇰", + "flag_for_hungary": "🇭🇺", + "flag_for_iceland": "🇮🇸", + "flag_for_india": "🇮🇳", + "flag_for_indonesia": "🇮🇩", + "flag_for_iran": "🇮🇷", + "flag_for_iraq": "🇮🇶", + "flag_for_ireland": "🇮🇪", + "flag_for_isle_of_man": "🇮🇲", + "flag_for_israel": "🇮🇱", + "flag_for_italy": "🇮🇹", + "flag_for_jamaica": "🇯🇲", + "flag_for_japan": "🇯🇵", + "flag_for_jersey": "🇯🇪", + "flag_for_jordan": "🇯🇴", + "flag_for_kazakhstan": "🇰🇿", + "flag_for_kenya": "🇰🇪", + "flag_for_kiribati": "🇰🇮", + "flag_for_kosovo": "🇽🇰", + "flag_for_kuwait": "🇰🇼", + "flag_for_kyrgyzstan": "🇰🇬", + "flag_for_laos": "🇱🇦", + "flag_for_latvia": "🇱🇻", + "flag_for_lebanon": "🇱🇧", + "flag_for_lesotho": "🇱🇸", + "flag_for_liberia": "🇱🇷", + "flag_for_libya": "🇱🇾", + "flag_for_liechtenstein": "🇱🇮", + "flag_for_lithuania": "🇱🇹", + "flag_for_luxembourg": "🇱🇺", + "flag_for_macau": "🇲🇴", + "flag_for_macedonia": "🇲🇰", + "flag_for_madagascar": "🇲🇬", + "flag_for_malawi": "🇲🇼", + "flag_for_malaysia": "🇲🇾", + "flag_for_maldives": "🇲🇻", + "flag_for_mali": "🇲🇱", + "flag_for_malta": "🇲🇹", + "flag_for_marshall_islands": "🇲🇭", + "flag_for_martinique": "🇲🇶", + "flag_for_mauritania": "🇲🇷", + "flag_for_mauritius": "🇲🇺", + "flag_for_mayotte": "🇾🇹", + "flag_for_mexico": "🇲🇽", + "flag_for_micronesia": "🇫🇲", + "flag_for_moldova": "🇲🇩", + "flag_for_monaco": "🇲🇨", + "flag_for_mongolia": "🇲🇳", + "flag_for_montenegro": "🇲🇪", + "flag_for_montserrat": "🇲🇸", + "flag_for_morocco": "🇲🇦", + "flag_for_mozambique": "🇲🇿", + "flag_for_myanmar": "🇲🇲", + "flag_for_namibia": "🇳🇦", + "flag_for_nauru": "🇳🇷", + "flag_for_nepal": "🇳🇵", + "flag_for_netherlands": "🇳🇱", + "flag_for_new_caledonia": "🇳🇨", + "flag_for_new_zealand": "🇳🇿", + "flag_for_nicaragua": "🇳🇮", + "flag_for_niger": "🇳🇪", + "flag_for_nigeria": "🇳🇬", + "flag_for_niue": "🇳🇺", + "flag_for_norfolk_island": "🇳🇫", + "flag_for_north_korea": "🇰🇵", + "flag_for_northern_mariana_islands": "🇲🇵", + "flag_for_norway": "🇳🇴", + "flag_for_oman": "🇴🇲", + "flag_for_pakistan": "🇵🇰", + "flag_for_palau": "🇵🇼", + "flag_for_palestinian_territories": "🇵🇸", + "flag_for_panama": "🇵🇦", + "flag_for_papua_new_guinea": "🇵🇬", + "flag_for_paraguay": "🇵🇾", + "flag_for_peru": "🇵🇪", + "flag_for_philippines": "🇵🇭", + "flag_for_pitcairn_islands": "🇵🇳", + "flag_for_poland": "🇵🇱", + "flag_for_portugal": "🇵🇹", + "flag_for_puerto_rico": "🇵🇷", + "flag_for_qatar": "🇶🇦", + "flag_for_romania": "🇷🇴", + "flag_for_russia": "🇷🇺", + "flag_for_rwanda": "🇷🇼", + "flag_for_réunion": "🇷🇪", + "flag_for_samoa": "🇼🇸", + "flag_for_san_marino": "🇸🇲", + "flag_for_saudi_arabia": "🇸🇦", + "flag_for_senegal": "🇸🇳", + "flag_for_serbia": "🇷🇸", + "flag_for_seychelles": "🇸🇨", + "flag_for_sierra_leone": "🇸🇱", + "flag_for_singapore": "🇸🇬", + "flag_for_sint_maarten": "🇸🇽", + "flag_for_slovakia": "🇸🇰", + "flag_for_slovenia": "🇸🇮", + "flag_for_solomon_islands": "🇸🇧", + "flag_for_somalia": "🇸🇴", + "flag_for_south_africa": "🇿🇦", + "flag_for_south_georgia_&_south_sandwich_islands": "🇬🇸", + "flag_for_south_korea": "🇰🇷", + "flag_for_south_sudan": "🇸🇸", + "flag_for_spain": "🇪🇸", + "flag_for_sri_lanka": "🇱🇰", + "flag_for_st._barthélemy": "🇧🇱", + "flag_for_st._helena": "🇸🇭", + "flag_for_st._kitts_&_nevis": "🇰🇳", + "flag_for_st._lucia": "🇱🇨", + "flag_for_st._martin": "🇲🇫", + "flag_for_st._pierre_&_miquelon": "🇵🇲", + "flag_for_st._vincent_&_grenadines": "🇻🇨", + "flag_for_sudan": "🇸🇩", + "flag_for_suriname": "🇸🇷", + "flag_for_svalbard_&_jan_mayen": "🇸🇯", + "flag_for_swaziland": "🇸🇿", + "flag_for_sweden": "🇸🇪", + "flag_for_switzerland": "🇨🇭", + "flag_for_syria": "🇸🇾", + "flag_for_são_tomé_&_príncipe": "🇸🇹", + "flag_for_taiwan": "🇹🇼", + "flag_for_tajikistan": "🇹🇯", + "flag_for_tanzania": "🇹🇿", + "flag_for_thailand": "🇹🇭", + "flag_for_timor__leste": "🇹🇱", + "flag_for_togo": "🇹🇬", + "flag_for_tokelau": "🇹🇰", + "flag_for_tonga": "🇹🇴", + "flag_for_trinidad_&_tobago": "🇹🇹", + "flag_for_tristan_da_cunha": "🇹🇦", + "flag_for_tunisia": "🇹🇳", + "flag_for_turkey": "🇹🇷", + "flag_for_turkmenistan": "🇹🇲", + "flag_for_turks_&_caicos_islands": "🇹🇨", + "flag_for_tuvalu": "🇹🇻", + "flag_for_u.s._outlying_islands": "🇺🇲", + "flag_for_u.s._virgin_islands": "🇻🇮", + "flag_for_uganda": "🇺🇬", + "flag_for_ukraine": "🇺🇦", + "flag_for_united_arab_emirates": "🇦🇪", + "flag_for_united_kingdom": "🇬🇧", + "flag_for_united_states": "🇺🇸", + "flag_for_uruguay": "🇺🇾", + "flag_for_uzbekistan": "🇺🇿", + "flag_for_vanuatu": "🇻🇺", + "flag_for_vatican_city": "🇻🇦", + "flag_for_venezuela": "🇻🇪", + "flag_for_vietnam": "🇻🇳", + "flag_for_wallis_&_futuna": "🇼🇫", + "flag_for_western_sahara": "🇪🇭", + "flag_for_yemen": "🇾🇪", + "flag_for_zambia": "🇿🇲", + "flag_for_zimbabwe": "🇿🇼", + "flag_for_åland_islands": "🇦🇽", + "golf": "⛳", + "fleur__de__lis": "⚜", + "muscle": "💪", + "flushed": "😳", + "frame_with_picture": "🖼", + "fries": "🍟", + "frog": "🐸", + "hatched_chick": "🐥", + "frowning": "😦", + "fuelpump": "⛽", + "full_moon_with_face": "🌝", + "gem": "💎", + "star2": "🌟", + "golfer": "🏌", + "mortar_board": "🎓", + "grimacing": "😬", + "smile_cat": "😸", + "grinning": "😀", + "grin": "😁", + "heartpulse": "💗", + "guardsman": "💂", + "haircut": "💇", + "hamster": "🐹", + "raising_hand": "🙋", + "headphones": "🎧", + "hear_no_evil": "🙉", + "cupid": "💘", + "gift_heart": "💝", + "heart": "❤", + "exclamation": "❗", + "heavy_exclamation_mark": "❗", + "heavy_heart_exclamation_mark_ornament": "❣", + "o": "⭕", + "helm_symbol": "⎈", + "helmet_with_white_cross": "⛑", + "high_heel": "👠", + "bullettrain_side": "🚄", + "bullettrain_front": "🚅", + "high_brightness": "🔆", + "zap": "⚡", + "hocho": "🔪", + "knife": "🔪", + "bee": "🐝", + "traffic_light": "🚥", + "racehorse": "🐎", + "coffee": "☕", + "hotsprings": "♨", + "hourglass": "⌛", + "hourglass_flowing_sand": "⏳", + "house_buildings": "🏘", + "100": "💯", + "hushed": "😯", + "ice_hockey_stick_and_puck": "🏒", + "imp": "👿", + "information_desk_person": "💁", + "information_source": "ℹ", + "capital_abcd": "🔠", + "abc": "🔤", + "abcd": "🔡", + "1234": "🔢", + "symbols": "🔣", + "izakaya_lantern": "🏮", + "lantern": "🏮", + "jack_o_lantern": "🎃", + "dolls": "🎎", + "japanese_goblin": "👺", + "japanese_ogre": "👹", + "beginner": "🔰", + "zero": "0️⃣", + "one": "1️⃣", + "ten": "🔟", + "two": "2️⃣", + "three": "3️⃣", + "four": "4️⃣", + "five": "5️⃣", + "six": "6️⃣", + "seven": "7️⃣", + "eight": "8️⃣", + "nine": "9️⃣", + "couplekiss": "💏", + "kissing_cat": "😽", + "kissing": "😗", + "kissing_closed_eyes": "😚", + "kissing_smiling_eyes": "😙", + "beetle": "🐞", + "large_blue_circle": "🔵", + "last_quarter_moon_with_face": "🌜", + "leaves": "🍃", + "mag": "🔍", + "left_right_arrow": "↔", + "leftwards_arrow_with_hook": "↩", + "arrow_left": "⬅", + "lock": "🔒", + "lock_with_ink_pen": "🔏", + "sob": "😭", + "low_brightness": "🔅", + "lower_left_ballpoint_pen": "🖊", + "lower_left_crayon": "🖍", + "lower_left_fountain_pen": "🖋", + "lower_left_paintbrush": "🖌", + "mahjong": "🀄", + "couple": "👫", + "man_in_business_suit_levitating": "🕴", + "man_with_gua_pi_mao": "👲", + "man_with_turban": "👳", + "mans_shoe": "👞", + "shoe": "👞", + "menorah_with_nine_branches": "🕎", + "mens": "🚹", + "minidisc": "💽", + "iphone": "📱", + "calling": "📲", + "money__mouth_face": "🤑", + "moneybag": "💰", + "rice_scene": "🎑", + "mountain_bicyclist": "🚵", + "mouse2": "🐁", + "lips": "👄", + "moyai": "🗿", + "notes": "🎶", + "nail_care": "💅", + "ab": "🆎", + "negative_squared_cross_mark": "❎", + "a": "🅰", + "b": "🅱", + "o2": "🅾", + "parking": "🅿", + "new_moon_with_face": "🌚", + "no_entry_sign": "🚫", + "underage": "🔞", + "non__potable_water": "🚱", + "arrow_upper_right": "↗", + "arrow_upper_left": "↖", + "office": "🏢", + "older_man": "👴", + "older_woman": "👵", + "om_symbol": "🕉", + "on": "🔛", + "book": "📖", + "unlock": "🔓", + "mailbox_with_no_mail": "📭", + "mailbox_with_mail": "📬", + "cd": "💿", + "tada": "🎉", + "feet": "🐾", + "walking": "🚶", + "pencil2": "✏", + "pensive": "😔", + "persevere": "😣", + "bow": "🙇", + "raised_hands": "🙌", + "person_with_ball": "⛹", + "person_with_blond_hair": "👱", + "pray": "🙏", + "person_with_pouting_face": "🙎", + "computer": "💻", + "pig2": "🐖", + "hankey": "💩", + "poop": "💩", + "shit": "💩", + "bamboo": "🎍", + "gun": "🔫", + "black_joker": "🃏", + "rotating_light": "🚨", + "cop": "👮", + "stew": "🍲", + "pouch": "👝", + "pouting_cat": "😾", + "rage": "😡", + "put_litter_in_its_place": "🚮", + "rabbit2": "🐇", + "racing_motorcycle": "🏍", + "radioactive_sign": "☢", + "fist": "✊", + "hand": "✋", + "raised_hand_with_fingers_splayed": "🖐", + "raised_hand_with_part_between_middle_and_ring_fingers": "🖖", + "blue_car": "🚙", + "apple": "🍎", + "relieved": "😌", + "reversed_hand_with_middle_finger_extended": "🖕", + "mag_right": "🔎", + "arrow_right_hook": "↪", + "sweet_potato": "🍠", + "robot": "🤖", + "rolled__up_newspaper": "🗞", + "rowboat": "🚣", + "runner": "🏃", + "running": "🏃", + "running_shirt_with_sash": "🎽", + "boat": "⛵", + "scales": "⚖", + "school_satchel": "🎒", + "scorpius": "♏", + "see_no_evil": "🙈", + "sheep": "🐑", + "stars": "🌠", + "cake": "🍰", + "six_pointed_star": "🔯", + "ski": "🎿", + "sleeping_accommodation": "🛌", + "sleeping": "😴", + "sleepy": "😪", + "sleuth_or_spy": "🕵", + "heart_eyes_cat": "😻", + "smiley_cat": "😺", + "innocent": "😇", + "heart_eyes": "😍", + "smiling_imp": "😈", + "smiley": "😃", + "sweat_smile": "😅", + "smile": "😄", + "laughing": "😆", + "satisfied": "😆", + "blush": "😊", + "smirk": "😏", + "smoking": "🚬", + "snow_capped_mountain": "🏔", + "soccer": "⚽", + "icecream": "🍦", + "soon": "🔜", + "arrow_lower_right": "↘", + "arrow_lower_left": "↙", + "speak_no_evil": "🙊", + "speaker": "🔈", + "mute": "🔇", + "sound": "🔉", + "loud_sound": "🔊", + "speaking_head_in_silhouette": "🗣", + "spiral_calendar_pad": "🗓", + "spiral_note_pad": "🗒", + "shell": "🐚", + "sweat_drops": "💦", + "u5272": "🈹", + "u5408": "🈴", + "u55b6": "🈺", + "u6307": "🈯", + "u6708": "🈷", + "u6709": "🈶", + "u6e80": "🈵", + "u7121": "🈚", + "u7533": "🈸", + "u7981": "🈲", + "u7a7a": "🈳", + "cl": "🆑", + "cool": "🆒", + "free": "🆓", + "id": "🆔", + "koko": "🈁", + "sa": "🈂", + "new": "🆕", + "ng": "🆖", + "ok": "🆗", + "sos": "🆘", + "up": "🆙", + "vs": "🆚", + "steam_locomotive": "🚂", + "ramen": "🍜", + "partly_sunny": "⛅", + "city_sunrise": "🌇", + "surfer": "🏄", + "swimmer": "🏊", + "shirt": "👕", + "tshirt": "👕", + "table_tennis_paddle_and_ball": "🏓", + "tea": "🍵", + "tv": "📺", + "three_button_mouse": "🖱", + "+1": "👍", + "thumbsup": "👍", + "__1": "👎", + "-1": "👎", + "thumbsdown": "👎", + "thunder_cloud_and_rain": "⛈", + "tiger2": "🐅", + "tophat": "🎩", + "top": "🔝", + "tm": "™", + "train2": "🚆", + "triangular_flag_on_post": "🚩", + "trident": "🔱", + "twisted_rightwards_arrows": "🔀", + "unamused": "😒", + "small_red_triangle": "🔺", + "arrow_up_small": "🔼", + "arrow_up_down": "↕", + "upside__down_face": "🙃", + "arrow_up": "⬆", + "v": "✌", + "vhs": "📼", + "wc": "🚾", + "ocean": "🌊", + "waving_black_flag": "🏴", + "wave": "👋", + "waving_white_flag": "🏳", + "moon": "🌔", + "scream_cat": "🙀", + "weary": "😩", + "weight_lifter": "🏋", + "whale2": "🐋", + "wheelchair": "♿", + "point_down": "👇", + "grey_exclamation": "❕", + "white_frowning_face": "☹", + "white_check_mark": "✅", + "point_left": "👈", + "white_medium_small_square": "◽", + "star": "⭐", + "grey_question": "❔", + "point_right": "👉", + "relaxed": "☺", + "white_sun_behind_cloud": "🌥", + "white_sun_behind_cloud_with_rain": "🌦", + "white_sun_with_small_cloud": "🌤", + "point_up_2": "👆", + "point_up": "☝", + "wind_blowing_face": "🌬", + "wink": "😉", + "wolf": "🐺", + "dancers": "👯", + "boot": "👢", + "womans_clothes": "👚", + "womans_hat": "👒", + "sandal": "👡", + "womens": "🚺", + "worried": "😟", + "gift": "🎁", + "zipper__mouth_face": "🤐", + "regional_indicator_a": "🇦", + "regional_indicator_b": "🇧", + "regional_indicator_c": "🇨", + "regional_indicator_d": "🇩", + "regional_indicator_e": "🇪", + "regional_indicator_f": "🇫", + "regional_indicator_g": "🇬", + "regional_indicator_h": "🇭", + "regional_indicator_i": "🇮", + "regional_indicator_j": "🇯", + "regional_indicator_k": "🇰", + "regional_indicator_l": "🇱", + "regional_indicator_m": "🇲", + "regional_indicator_n": "🇳", + "regional_indicator_o": "🇴", + "regional_indicator_p": "🇵", + "regional_indicator_q": "🇶", + "regional_indicator_r": "🇷", + "regional_indicator_s": "🇸", + "regional_indicator_t": "🇹", + "regional_indicator_u": "🇺", + "regional_indicator_v": "🇻", + "regional_indicator_w": "🇼", + "regional_indicator_x": "🇽", + "regional_indicator_y": "🇾", + "regional_indicator_z": "🇿", +} diff --git a/shared/package-files/86/86f2f71e86bd55a628faa10e664062d88ab0db9d540f13f3fae30755a5a62e91/found_candidates.py b/shared/package-files/86/86f2f71e86bd55a628faa10e664062d88ab0db9d540f13f3fae30755a5a62e91/found_candidates.py new file mode 100644 index 0000000000000000000000000000000000000000..8663097b447cdd80c52e2b2abde33a4736ddb9c2 --- /dev/null +++ b/shared/package-files/86/86f2f71e86bd55a628faa10e664062d88ab0db9d540f13f3fae30755a5a62e91/found_candidates.py @@ -0,0 +1,155 @@ +"""Utilities to lazily create and visit candidates found. + +Creating and visiting a candidate is a *very* costly operation. It involves +fetching, extracting, potentially building modules from source, and verifying +distribution metadata. It is therefore crucial for performance to keep +everything here lazy all the way down, so we only touch candidates that we +absolutely need, and not "download the world" when we only need one version of +something. +""" + +import functools +from collections.abc import Sequence +from typing import TYPE_CHECKING, Any, Callable, Iterator, Optional, Set, Tuple + +from pip._vendor.packaging.version import _BaseVersion + +from .base import Candidate + +IndexCandidateInfo = Tuple[_BaseVersion, Callable[[], Optional[Candidate]]] + +if TYPE_CHECKING: + SequenceCandidate = Sequence[Candidate] +else: + # For compatibility: Python before 3.9 does not support using [] on the + # Sequence class. + # + # >>> from collections.abc import Sequence + # >>> Sequence[str] + # Traceback (most recent call last): + # File "", line 1, in + # TypeError: 'ABCMeta' object is not subscriptable + # + # TODO: Remove this block after dropping Python 3.8 support. + SequenceCandidate = Sequence + + +def _iter_built(infos: Iterator[IndexCandidateInfo]) -> Iterator[Candidate]: + """Iterator for ``FoundCandidates``. + + This iterator is used when the package is not already installed. Candidates + from index come later in their normal ordering. + """ + versions_found: Set[_BaseVersion] = set() + for version, func in infos: + if version in versions_found: + continue + candidate = func() + if candidate is None: + continue + yield candidate + versions_found.add(version) + + +def _iter_built_with_prepended( + installed: Candidate, infos: Iterator[IndexCandidateInfo] +) -> Iterator[Candidate]: + """Iterator for ``FoundCandidates``. + + This iterator is used when the resolver prefers the already-installed + candidate and NOT to upgrade. The installed candidate is therefore + always yielded first, and candidates from index come later in their + normal ordering, except skipped when the version is already installed. + """ + yield installed + versions_found: Set[_BaseVersion] = {installed.version} + for version, func in infos: + if version in versions_found: + continue + candidate = func() + if candidate is None: + continue + yield candidate + versions_found.add(version) + + +def _iter_built_with_inserted( + installed: Candidate, infos: Iterator[IndexCandidateInfo] +) -> Iterator[Candidate]: + """Iterator for ``FoundCandidates``. + + This iterator is used when the resolver prefers to upgrade an + already-installed package. Candidates from index are returned in their + normal ordering, except replaced when the version is already installed. + + The implementation iterates through and yields other candidates, inserting + the installed candidate exactly once before we start yielding older or + equivalent candidates, or after all other candidates if they are all newer. + """ + versions_found: Set[_BaseVersion] = set() + for version, func in infos: + if version in versions_found: + continue + # If the installed candidate is better, yield it first. + if installed.version >= version: + yield installed + versions_found.add(installed.version) + candidate = func() + if candidate is None: + continue + yield candidate + versions_found.add(version) + + # If the installed candidate is older than all other candidates. + if installed.version not in versions_found: + yield installed + + +class FoundCandidates(SequenceCandidate): + """A lazy sequence to provide candidates to the resolver. + + The intended usage is to return this from `find_matches()` so the resolver + can iterate through the sequence multiple times, but only access the index + page when remote packages are actually needed. This improve performances + when suitable candidates are already installed on disk. + """ + + def __init__( + self, + get_infos: Callable[[], Iterator[IndexCandidateInfo]], + installed: Optional[Candidate], + prefers_installed: bool, + incompatible_ids: Set[int], + ): + self._get_infos = get_infos + self._installed = installed + self._prefers_installed = prefers_installed + self._incompatible_ids = incompatible_ids + + def __getitem__(self, index: Any) -> Any: + # Implemented to satisfy the ABC check. This is not needed by the + # resolver, and should not be used by the provider either (for + # performance reasons). + raise NotImplementedError("don't do this") + + def __iter__(self) -> Iterator[Candidate]: + infos = self._get_infos() + if not self._installed: + iterator = _iter_built(infos) + elif self._prefers_installed: + iterator = _iter_built_with_prepended(self._installed, infos) + else: + iterator = _iter_built_with_inserted(self._installed, infos) + return (c for c in iterator if id(c) not in self._incompatible_ids) + + def __len__(self) -> int: + # Implemented to satisfy the ABC check. This is not needed by the + # resolver, and should not be used by the provider either (for + # performance reasons). + raise NotImplementedError("don't do this") + + @functools.lru_cache(maxsize=1) + def __bool__(self) -> bool: + if self._prefers_installed and self._installed: + return True + return any(self) diff --git a/shared/package-files/86/86f425dfbcf75ba0b070b380aab81cd9a72ab6338921ba956e75e4114058e1c3/test_freq_code.py b/shared/package-files/86/86f425dfbcf75ba0b070b380aab81cd9a72ab6338921ba956e75e4114058e1c3/test_freq_code.py new file mode 100644 index 0000000000000000000000000000000000000000..16b7190753ee2c5beaa1179b8318732f546f9bf6 --- /dev/null +++ b/shared/package-files/86/86f425dfbcf75ba0b070b380aab81cd9a72ab6338921ba956e75e4114058e1c3/test_freq_code.py @@ -0,0 +1,69 @@ +import numpy as np +import pytest + +from pandas._libs.tslibs import ( + Period, + to_offset, +) + + +@pytest.mark.parametrize( + "freqstr,exp_freqstr", + [("D", "D"), ("W", "D"), ("ME", "D"), ("s", "s"), ("min", "s"), ("h", "s")], +) +def test_get_to_timestamp_base(freqstr, exp_freqstr): + off = to_offset(freqstr) + per = Period._from_ordinal(1, off) + exp_code = to_offset(exp_freqstr)._period_dtype_code + + result_code = per._dtype._get_to_timestamp_base() + assert result_code == exp_code + + +@pytest.mark.parametrize( + "args,expected", + [ + ((1.5, "min"), (90, "s")), + ((62.4, "min"), (3744, "s")), + ((1.04, "h"), (3744, "s")), + ((1, "D"), (1, "D")), + ((0.342931, "h"), (1234551600, "us")), + ((1.2345, "D"), (106660800, "ms")), + ], +) +def test_resolution_bumping(args, expected): + # see gh-14378 + off = to_offset(str(args[0]) + args[1]) + assert off.n == expected[0] + assert off._prefix == expected[1] + + +@pytest.mark.parametrize( + "args", + [ + (0.5, "ns"), + # Too much precision in the input can prevent. + (0.3429324798798269273987982, "h"), + ], +) +def test_cat(args): + msg = "Invalid frequency" + + with pytest.raises(ValueError, match=msg): + to_offset(str(args[0]) + args[1]) + + +@pytest.mark.parametrize( + "freqstr,expected", + [ + ("1h", "2021-01-01T09:00:00"), + ("1D", "2021-01-02T08:00:00"), + ("1W", "2021-01-03T08:00:00"), + ("1ME", "2021-01-31T08:00:00"), + ("1YE", "2021-12-31T08:00:00"), + ], +) +def test_compatibility(freqstr, expected): + ts_np = np.datetime64("2021-01-01T08:00:00.00") + do = to_offset(freqstr) + assert ts_np + do == np.datetime64(expected) diff --git a/shared/package-files/86/86f49fdb1646c4542164599139170145f396ca910ab07e55270773ffaf544019/_fill_mem_eff_dropout_mask.h b/shared/package-files/86/86f49fdb1646c4542164599139170145f396ca910ab07e55270773ffaf544019/_fill_mem_eff_dropout_mask.h new file mode 100644 index 0000000000000000000000000000000000000000..a4fa85ba80c31284c29de21d0beb13197929f4f4 --- /dev/null +++ b/shared/package-files/86/86f49fdb1646c4542164599139170145f396ca910ab07e55270773ffaf544019/_fill_mem_eff_dropout_mask.h @@ -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::_fill_mem_eff_dropout_mask_(Tensor(a!) self, float dropout_p, int seed, int offset) -> Tensor(a!) +inline at::Tensor & _fill_mem_eff_dropout_mask_(at::Tensor & self, double dropout_p, int64_t seed, int64_t offset) { + return at::_ops::_fill_mem_eff_dropout_mask_::call(self, dropout_p, seed, offset); +} + +} diff --git a/shared/package-files/86/86f58adeda5314bb4c897da7f512f6ba41341c238d21690cc01bc4ce296b6479/special_log_ndtr_native.h b/shared/package-files/86/86f58adeda5314bb4c897da7f512f6ba41341c238d21690cc01bc4ce296b6479/special_log_ndtr_native.h new file mode 100644 index 0000000000000000000000000000000000000000..ef8cd79b4b2e51466a35e982c51fc207b9b07f48 --- /dev/null +++ b/shared/package-files/86/86f58adeda5314bb4c897da7f512f6ba41341c238d21690cc01bc4ce296b6479/special_log_ndtr_native.h @@ -0,0 +1,23 @@ +#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_special_log_ndtr_out : public at::meta::structured_special_log_ndtr { +void impl(const at::Tensor & self, const at::Tensor & out); +}; +} // namespace native +} // namespace at diff --git a/shared/package-files/86/86f6a23ed4bff902d947e8a1f6c8cfe801a42d953b4fd76efc301870d409989e/develop.py b/shared/package-files/86/86f6a23ed4bff902d947e8a1f6c8cfe801a42d953b4fd76efc301870d409989e/develop.py new file mode 100644 index 0000000000000000000000000000000000000000..27bcf9eb5bca0f0eda0c64166110884c37f08a3a --- /dev/null +++ b/shared/package-files/86/86f6a23ed4bff902d947e8a1f6c8cfe801a42d953b4fd76efc301870d409989e/develop.py @@ -0,0 +1,188 @@ +from distutils.util import convert_path +from distutils import log +from distutils.errors import DistutilsOptionError +import os +import glob +import io + +from setuptools.command.easy_install import easy_install +from setuptools import _path +from setuptools import namespaces +import setuptools + + +class develop(namespaces.DevelopInstaller, easy_install): + """Set up package for development""" + + description = "install package in 'development mode'" + + user_options = easy_install.user_options + [ + ("uninstall", "u", "Uninstall this source package"), + ("egg-path=", None, "Set the path to be used in the .egg-link file"), + ] + + boolean_options = easy_install.boolean_options + ['uninstall'] + + command_consumes_arguments = False # override base + + def run(self): + if self.uninstall: + self.multi_version = True + self.uninstall_link() + self.uninstall_namespaces() + else: + self.install_for_development() + self.warn_deprecated_options() + + def initialize_options(self): + self.uninstall = None + self.egg_path = None + easy_install.initialize_options(self) + self.setup_path = None + self.always_copy_from = '.' # always copy eggs installed in curdir + + def finalize_options(self): + import pkg_resources + + ei = self.get_finalized_command("egg_info") + self.args = [ei.egg_name] + + easy_install.finalize_options(self) + self.expand_basedirs() + self.expand_dirs() + # pick up setup-dir .egg files only: no .egg-info + self.package_index.scan(glob.glob('*.egg')) + + egg_link_fn = ei.egg_name + '.egg-link' + self.egg_link = os.path.join(self.install_dir, egg_link_fn) + self.egg_base = ei.egg_base + if self.egg_path is None: + self.egg_path = os.path.abspath(ei.egg_base) + + target = _path.normpath(self.egg_base) + egg_path = _path.normpath(os.path.join(self.install_dir, self.egg_path)) + if egg_path != target: + raise DistutilsOptionError( + "--egg-path must be a relative path from the install" + " directory to " + target + ) + + # Make a distribution for the package's source + self.dist = pkg_resources.Distribution( + target, + pkg_resources.PathMetadata(target, os.path.abspath(ei.egg_info)), + project_name=ei.egg_name, + ) + + self.setup_path = self._resolve_setup_path( + self.egg_base, + self.install_dir, + self.egg_path, + ) + + @staticmethod + def _resolve_setup_path(egg_base, install_dir, egg_path): + """ + Generate a path from egg_base back to '.' where the + setup script resides and ensure that path points to the + setup path from $install_dir/$egg_path. + """ + path_to_setup = egg_base.replace(os.sep, '/').rstrip('/') + if path_to_setup != os.curdir: + path_to_setup = '../' * (path_to_setup.count('/') + 1) + resolved = _path.normpath(os.path.join(install_dir, egg_path, path_to_setup)) + curdir = _path.normpath(os.curdir) + if resolved != curdir: + raise DistutilsOptionError( + "Can't get a consistent path to setup script from" + " installation directory", + resolved, + curdir, + ) + return path_to_setup + + def install_for_development(self): + self.run_command('egg_info') + + # Build extensions in-place + self.reinitialize_command('build_ext', inplace=1) + self.run_command('build_ext') + + if setuptools.bootstrap_install_from: + self.easy_install(setuptools.bootstrap_install_from) + setuptools.bootstrap_install_from = None + + self.install_namespaces() + + # create an .egg-link in the installation dir, pointing to our egg + log.info("Creating %s (link to %s)", self.egg_link, self.egg_base) + if not self.dry_run: + with open(self.egg_link, "w") as f: + f.write(self.egg_path + "\n" + self.setup_path) + # postprocess the installed distro, fixing up .pth, installing scripts, + # and handling requirements + self.process_distribution(None, self.dist, not self.no_deps) + + def uninstall_link(self): + if os.path.exists(self.egg_link): + log.info("Removing %s (link to %s)", self.egg_link, self.egg_base) + egg_link_file = open(self.egg_link) + contents = [line.rstrip() for line in egg_link_file] + egg_link_file.close() + if contents not in ([self.egg_path], [self.egg_path, self.setup_path]): + log.warn("Link points to %s: uninstall aborted", contents) + return + if not self.dry_run: + os.unlink(self.egg_link) + if not self.dry_run: + self.update_pth(self.dist) # remove any .pth link to us + if self.distribution.scripts: + # XXX should also check for entry point scripts! + log.warn("Note: you must uninstall or replace scripts manually!") + + def install_egg_scripts(self, dist): + if dist is not self.dist: + # Installing a dependency, so fall back to normal behavior + return easy_install.install_egg_scripts(self, dist) + + # create wrapper scripts in the script dir, pointing to dist.scripts + + # new-style... + self.install_wrapper_scripts(dist) + + # ...and old-style + for script_name in self.distribution.scripts or []: + script_path = os.path.abspath(convert_path(script_name)) + script_name = os.path.basename(script_path) + with io.open(script_path) as strm: + script_text = strm.read() + self.install_script(dist, script_name, script_text, script_path) + + def install_wrapper_scripts(self, dist): + dist = VersionlessRequirement(dist) + return easy_install.install_wrapper_scripts(self, dist) + + +class VersionlessRequirement: + """ + Adapt a pkg_resources.Distribution to simply return the project + name as the 'requirement' so that scripts will work across + multiple versions. + + >>> from pkg_resources import Distribution + >>> dist = Distribution(project_name='foo', version='1.0') + >>> str(dist.as_requirement()) + 'foo==1.0' + >>> adapted_dist = VersionlessRequirement(dist) + >>> str(adapted_dist.as_requirement()) + 'foo' + """ + + def __init__(self, dist): + self.__dist = dist + + def __getattr__(self, name): + return getattr(self.__dist, name) + + def as_requirement(self): + return self.project_name diff --git a/shared/package-files/86/86fc6390bfad46815383525e49c6c451e88c605e47ae70f0d97429378698d105/defaulttags.pyi b/shared/package-files/86/86fc6390bfad46815383525e49c6c451e88c605e47ae70f0d97429378698d105/defaulttags.pyi new file mode 100644 index 0000000000000000000000000000000000000000..6faac5dda38bbcb3a0dc60f31704c4d69171638a --- /dev/null +++ b/shared/package-files/86/86fc6390bfad46815383525e49c6c451e88c605e47ae70f0d97429378698d105/defaulttags.pyi @@ -0,0 +1,204 @@ +from collections import namedtuple +from datetime import date +from typing import Any, Dict, List, Optional, Sequence, Tuple, Union + +from django.template.base import FilterExpression, Parser, Token +from django.template.context import Context +from django.utils.safestring import SafeText + +from .base import Node, NodeList +from .library import Library +from .smartif import IfParser, Literal + +register: Any + +class AutoEscapeControlNode(Node): + nodelist: NodeList + setting: bool + def __init__(self, setting: bool, nodelist: NodeList) -> None: ... + +class CommentNode(Node): ... +class CsrfTokenNode(Node): ... + +class CycleNode(Node): + cyclevars: List[FilterExpression] = ... + variable_name: Optional[str] = ... + silent: bool = ... + def __init__( + self, cyclevars: List[FilterExpression], variable_name: Optional[str] = ..., silent: bool = ... + ) -> None: ... + def reset(self, context: Context) -> None: ... + +class DebugNode(Node): ... + +class FilterNode(Node): + filter_expr: FilterExpression + nodelist: NodeList + def __init__(self, filter_expr: FilterExpression, nodelist: NodeList) -> None: ... + +class FirstOfNode(Node): + vars: List[FilterExpression] = ... + asvar: Optional[str] = ... + def __init__(self, variables: List[FilterExpression], asvar: Optional[str] = ...) -> None: ... + +class ForNode(Node): + loopvars: Union[List[str], str] + sequence: Union[FilterExpression, str] + child_nodelists: Any = ... + is_reversed: bool = ... + nodelist_loop: Union[List[str], NodeList] = ... + nodelist_empty: Union[List[str], NodeList] = ... + def __init__( + self, + loopvars: Union[List[str], str], + sequence: Union[FilterExpression, str], + is_reversed: bool, + nodelist_loop: Union[List[str], NodeList], + nodelist_empty: Optional[Union[List[str], NodeList]] = ..., + ) -> None: ... + +class IfChangedNode(Node): + nodelist_false: NodeList + nodelist_true: NodeList + child_nodelists: Any = ... + def __init__(self, nodelist_true: NodeList, nodelist_false: NodeList, *varlist: Any) -> None: ... + +class IfEqualNode(Node): + nodelist_false: Union[List[Any], NodeList] + nodelist_true: Union[List[Any], NodeList] + var1: Union[FilterExpression, str] + var2: Union[FilterExpression, str] + child_nodelists: Any = ... + negate: bool = ... + def __init__( + self, + var1: Union[FilterExpression, str], + var2: Union[FilterExpression, str], + nodelist_true: Union[List[Any], NodeList], + nodelist_false: Union[List[Any], NodeList], + negate: bool, + ) -> None: ... + +class IfNode(Node): + conditions_nodelists: List[Tuple[Optional[TemplateLiteral], NodeList]] = ... + def __init__(self, conditions_nodelists: List[Tuple[Optional[TemplateLiteral], NodeList]]) -> None: ... + def __iter__(self) -> None: ... + @property + def nodelist(self) -> NodeList: ... + +class LoremNode(Node): + common: bool + count: FilterExpression + method: str + def __init__(self, count: FilterExpression, method: str, common: bool) -> None: ... + +GroupedResult = namedtuple("GroupedResult", ["grouper", "list"]) + +class RegroupNode(Node): + expression: FilterExpression + target: FilterExpression + var_name: str = ... + def __init__(self, target: FilterExpression, expression: FilterExpression, var_name: str) -> None: ... + def resolve_expression(self, obj: Dict[str, date], context: Context) -> Union[int, str]: ... + +class LoadNode(Node): ... + +class NowNode(Node): + format_string: str = ... + asvar: Optional[str] = ... + def __init__(self, format_string: str, asvar: Optional[str] = ...) -> None: ... + +class ResetCycleNode(Node): + node: CycleNode = ... + def __init__(self, node: CycleNode) -> None: ... + +class SpacelessNode(Node): + nodelist: NodeList = ... + def __init__(self, nodelist: NodeList) -> None: ... + +class TemplateTagNode(Node): + mapping: Any = ... + tagtype: str = ... + def __init__(self, tagtype: str) -> None: ... + +class URLNode(Node): + view_name: FilterExpression = ... + args: List[FilterExpression] = ... + kwargs: Dict[str, FilterExpression] = ... + asvar: Optional[str] = ... + def __init__( + self, + view_name: FilterExpression, + args: List[FilterExpression], + kwargs: Dict[str, FilterExpression], + asvar: Optional[str], + ) -> None: ... + +class VerbatimNode(Node): + content: SafeText = ... + def __init__(self, content: SafeText) -> None: ... + +class WidthRatioNode(Node): + val_expr: FilterExpression = ... + max_expr: FilterExpression = ... + max_width: FilterExpression = ... + asvar: Optional[str] = ... + def __init__( + self, + val_expr: FilterExpression, + max_expr: FilterExpression, + max_width: FilterExpression, + asvar: Optional[str] = ..., + ) -> None: ... + +class WithNode(Node): + nodelist: NodeList = ... + extra_context: Dict[str, Any] = ... + def __init__( + self, + var: Optional[str], + name: Optional[str], + nodelist: Union[NodeList, Sequence[Node]], + extra_context: Optional[Dict[str, Any]] = ..., + ) -> None: ... + +def autoescape(parser: Parser, token: Token) -> AutoEscapeControlNode: ... +def comment(parser: Parser, token: Token) -> CommentNode: ... +def cycle(parser: Parser, token: Token) -> CycleNode: ... +def csrf_token(parser: Parser, token: Token) -> CsrfTokenNode: ... +def debug(parser: Parser, token: Token) -> DebugNode: ... +def do_filter(parser: Parser, token: Token) -> FilterNode: ... +def firstof(parser: Parser, token: Token) -> FirstOfNode: ... +def do_for(parser: Parser, token: Token) -> ForNode: ... +def do_ifequal(parser: Parser, token: Token, negate: bool) -> IfEqualNode: ... +def ifequal(parser: Parser, token: Token) -> IfEqualNode: ... +def ifnotequal(parser: Parser, token: Token) -> IfEqualNode: ... + +class TemplateLiteral(Literal): + text: str = ... + def __init__(self, value: FilterExpression, text: str) -> None: ... + def display(self) -> str: ... + +class TemplateIfParser(IfParser): + current_token: TemplateLiteral + pos: int + tokens: List[TemplateLiteral] + error_class: Any = ... + template_parser: Parser = ... + def __init__(self, parser: Parser, *args: Any, **kwargs: Any) -> None: ... + +def do_if(parser: Parser, token: Token) -> IfNode: ... +def ifchanged(parser: Parser, token: Token) -> IfChangedNode: ... +def find_library(parser: Parser, name: str) -> Library: ... +def load_from_library(library: Library, label: str, names: List[str]) -> Library: ... +def load(parser: Parser, token: Token) -> LoadNode: ... +def lorem(parser: Parser, token: Token) -> LoremNode: ... +def now(parser: Parser, token: Token) -> NowNode: ... +def regroup(parser: Parser, token: Token) -> RegroupNode: ... +def resetcycle(parser: Parser, token: Token) -> ResetCycleNode: ... +def spaceless(parser: Parser, token: Token) -> SpacelessNode: ... +def templatetag(parser: Parser, token: Token) -> TemplateTagNode: ... +def url(parser: Parser, token: Token) -> URLNode: ... +def verbatim(parser: Parser, token: Token) -> VerbatimNode: ... +def widthratio(parser: Parser, token: Token) -> WidthRatioNode: ... +def do_with(parser: Parser, token: Token) -> WithNode: ... diff --git a/shared/package-files/a0/a0010735b190c987b0209b6523c4b7f1f6b20f731e8b81327a2110ee7629ed5e/context.py b/shared/package-files/a0/a0010735b190c987b0209b6523c4b7f1f6b20f731e8b81327a2110ee7629ed5e/context.py new file mode 100644 index 0000000000000000000000000000000000000000..4b2b9b60abd0236372686975504920914b6e87fb --- /dev/null +++ b/shared/package-files/a0/a0010735b190c987b0209b6523c4b7f1f6b20f731e8b81327a2110ee7629ed5e/context.py @@ -0,0 +1,43 @@ +import sys +from collections.abc import Mapping +from typing import Any, Optional, Union + +from .layered_mapping import LayeredMapping + + +def capture_context( + context: Optional[Union[int, Mapping[str, Any]]] = 0, +) -> Optional[Mapping[str, Any]]: + """ + Explicitly capture the context to be used by subsequent formula + materialisations. + + Note: This function is primarily useful in libraries that wrap Formulaic, + allowing them to easily decouple the extraction of evaluation context from + the actual materializations calls, which may be several frames removed from + the users. Also note that implementers are free to do context collection + without this method, since passing of a dictionary context will always be + supported; however using this method allows users to treat formulaic as a + black box. + + Args: + context: The context from which variables (and custom transforms/etc) + should be inherited. When specified as an integer, it is interpreted + as a frame offset from the caller's frame (i.e. 0, the default, + means that all variables in the caller's scope should be made + accessible when interpreting and evaluating formulae). Otherwise, a + mapping from variable name to value is expected. When nesting in a + library, and attempting to capture user-context, make sure you + account for the extra frames introduced by your wrappers. + + Returns: + The context that should be later passed to the Formulaic materialization + procedure like: `.get_model_matrix(..., context=)`. + """ + if isinstance(context, int): + if hasattr(sys, "_getframe"): + frame = sys._getframe(context + 1) + context = LayeredMapping(frame.f_locals, frame.f_globals) + else: + context = None # pragma: no cover + return context diff --git a/shared/package-files/a0/a0017a34882ddddadc80b86eea47bfc160a0941cd92e856d9facb02373b883f6/_rowwise_prune_ops.h b/shared/package-files/a0/a0017a34882ddddadc80b86eea47bfc160a0941cd92e856d9facb02373b883f6/_rowwise_prune_ops.h new file mode 100644 index 0000000000000000000000000000000000000000..b9996b919a40c75266c9bdfe0f1c637bb4a24e47 --- /dev/null +++ b/shared/package-files/a0/a0017a34882ddddadc80b86eea47bfc160a0941cd92e856d9facb02373b883f6/_rowwise_prune_ops.h @@ -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 _rowwise_prune { + using schema = ::std::tuple (const at::Tensor &, const at::Tensor &, at::ScalarType); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::_rowwise_prune") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "_rowwise_prune(Tensor weight, Tensor mask, ScalarType compressed_indices_dtype) -> (Tensor, Tensor)") + static ::std::tuple call(const at::Tensor & weight, const at::Tensor & mask, at::ScalarType compressed_indices_dtype); + static ::std::tuple redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & weight, const at::Tensor & mask, at::ScalarType compressed_indices_dtype); +}; + +}} // namespace at::_ops diff --git a/shared/package-files/a0/a0113a6308ebd643eae6032d4cd331f720c7c64d99c0ef4e91a199f0c6abed1d/view_as_native.h b/shared/package-files/a0/a0113a6308ebd643eae6032d4cd331f720c7c64d99c0ef4e91a199f0c6abed1d/view_as_native.h new file mode 100644 index 0000000000000000000000000000000000000000..8357f32a9336d32a6f6e969d87c4551a6eba345f --- /dev/null +++ b/shared/package-files/a0/a0113a6308ebd643eae6032d4cd331f720c7c64d99c0ef4e91a199f0c6abed1d/view_as_native.h @@ -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 view_as(const at::Tensor & self, const at::Tensor & other); +} // namespace native +} // namespace at diff --git a/shared/package-files/a0/a014ad9cea2d2a725c529fa52428a02cd39e38ee14d0acb07eb2a8e331410731/predictor.py b/shared/package-files/a0/a014ad9cea2d2a725c529fa52428a02cd39e38ee14d0acb07eb2a8e331410731/predictor.py new file mode 100644 index 0000000000000000000000000000000000000000..59bb6499c450114db3171342d7bb97111db64b81 --- /dev/null +++ b/shared/package-files/a0/a014ad9cea2d2a725c529fa52428a02cd39e38ee14d0acb07eb2a8e331410731/predictor.py @@ -0,0 +1,146 @@ +""" +This module contains the TreePredictor class which is used for prediction. +""" + +# Authors: The scikit-learn developers +# SPDX-License-Identifier: BSD-3-Clause + +import numpy as np + +from ._predictor import ( + _compute_partial_dependence, + _predict_from_binned_data, + _predict_from_raw_data, +) +from .common import PREDICTOR_RECORD_DTYPE, Y_DTYPE + + +class TreePredictor: + """Tree class used for predictions. + + Parameters + ---------- + nodes : ndarray of PREDICTOR_RECORD_DTYPE + The nodes of the tree. + binned_left_cat_bitsets : ndarray of shape (n_categorical_splits, 8), dtype=uint32 + Array of bitsets for binned categories used in predict_binned when a + split is categorical. + raw_left_cat_bitsets : ndarray of shape (n_categorical_splits, 8), dtype=uint32 + Array of bitsets for raw categories used in predict when a split is + categorical. + """ + + def __init__(self, nodes, binned_left_cat_bitsets, raw_left_cat_bitsets): + self.nodes = nodes + self.binned_left_cat_bitsets = binned_left_cat_bitsets + self.raw_left_cat_bitsets = raw_left_cat_bitsets + + def get_n_leaf_nodes(self): + """Return number of leaves.""" + return int(self.nodes["is_leaf"].sum()) + + def get_max_depth(self): + """Return maximum depth among all leaves.""" + return int(self.nodes["depth"].max()) + + def predict(self, X, known_cat_bitsets, f_idx_map, n_threads): + """Predict raw values for non-binned data. + + Parameters + ---------- + X : ndarray, shape (n_samples, n_features) + The input samples. + + known_cat_bitsets : ndarray of shape (n_categorical_features, 8) + Array of bitsets of known categories, for each categorical feature. + + f_idx_map : ndarray of shape (n_features,) + Map from original feature index to the corresponding index in the + known_cat_bitsets array. + + n_threads : int + Number of OpenMP threads to use. + + Returns + ------- + y : ndarray, shape (n_samples,) + The raw predicted values. + """ + out = np.empty(X.shape[0], dtype=Y_DTYPE) + + _predict_from_raw_data( + self.nodes, + X, + self.raw_left_cat_bitsets, + known_cat_bitsets, + f_idx_map, + n_threads, + out, + ) + return out + + def predict_binned(self, X, missing_values_bin_idx, n_threads): + """Predict raw values for binned data. + + Parameters + ---------- + X : ndarray, shape (n_samples, n_features) + The input samples. + missing_values_bin_idx : uint8 + Index of the bin that is used for missing values. This is the + index of the last bin and is always equal to max_bins (as passed + to the GBDT classes), or equivalently to n_bins - 1. + n_threads : int + Number of OpenMP threads to use. + + Returns + ------- + y : ndarray, shape (n_samples,) + The raw predicted values. + """ + out = np.empty(X.shape[0], dtype=Y_DTYPE) + _predict_from_binned_data( + self.nodes, + X, + self.binned_left_cat_bitsets, + missing_values_bin_idx, + n_threads, + out, + ) + return out + + def compute_partial_dependence(self, grid, target_features, out): + """Fast partial dependence computation. + + Parameters + ---------- + grid : ndarray, shape (n_samples, n_target_features) + The grid points on which the partial dependence should be + evaluated. + target_features : ndarray, shape (n_target_features) + The set of target features for which the partial dependence + should be evaluated. + out : ndarray, shape (n_samples) + The value of the partial dependence function on each grid + point. + """ + _compute_partial_dependence(self.nodes, grid, target_features, out) + + def __setstate__(self, state): + try: + super().__setstate__(state) + except AttributeError: + self.__dict__.update(state) + + # The dtype of feature_idx is np.intp which is platform dependent. Here, we + # make sure that saving and loading on different bitness systems works without + # errors. For instance, on a 64 bit Python runtime, np.intp = np.int64, + # while on 32 bit np.intp = np.int32. + # + # TODO: consider always using platform agnostic dtypes for fitted + # estimator attributes. For this particular estimator, this would + # mean replacing the intp field of PREDICTOR_RECORD_DTYPE by an int32 + # field. Ideally this should be done consistently throughout + # scikit-learn along with a common test. + if self.nodes.dtype != PREDICTOR_RECORD_DTYPE: + self.nodes = self.nodes.astype(PREDICTOR_RECORD_DTYPE, casting="same_kind") diff --git a/shared/package-files/a0/a016f3fb2f6d0f9d3afa627eacc9618996832942628b669b55a8d7595068446a/special_log_ndtr_meta.h b/shared/package-files/a0/a016f3fb2f6d0f9d3afa627eacc9618996832942628b669b55a8d7595068446a/special_log_ndtr_meta.h new file mode 100644 index 0000000000000000000000000000000000000000..10a44435ce067e6adba001d7cb4196aabf99c6ab --- /dev/null +++ b/shared/package-files/a0/a016f3fb2f6d0f9d3afa627eacc9618996832942628b669b55a8d7595068446a/special_log_ndtr_meta.h @@ -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_special_log_ndtr : public TensorIteratorBase { + + + void meta(const at::Tensor & self); +}; + +} // namespace native +} // namespace at diff --git a/shared/package-files/a0/a017fdb74bc245a28537cbf7e809f94da06c98ceeeb53c855a22a83508eb8587/linalg_tensorinv_compositeimplicitautograd_dispatch.h b/shared/package-files/a0/a017fdb74bc245a28537cbf7e809f94da06c98ceeeb53c855a22a83508eb8587/linalg_tensorinv_compositeimplicitautograd_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..ae380cc18fdaa690dc9b5a0d8cca27e64e8764a7 --- /dev/null +++ b/shared/package-files/a0/a017fdb74bc245a28537cbf7e809f94da06c98ceeeb53c855a22a83508eb8587/linalg_tensorinv_compositeimplicitautograd_dispatch.h @@ -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 linalg_tensorinv(const at::Tensor & self, int64_t ind=2); +TORCH_API at::Tensor & linalg_tensorinv_out(at::Tensor & out, const at::Tensor & self, int64_t ind=2); +TORCH_API at::Tensor & linalg_tensorinv_outf(const at::Tensor & self, int64_t ind, at::Tensor & out); + +} // namespace compositeimplicitautograd +} // namespace at diff --git a/shared/package-files/a0/a01a4bad28f810d710026281a5a901619226ec0a3eec21aa2844fb27a1db5b38/_rcv1.py b/shared/package-files/a0/a01a4bad28f810d710026281a5a901619226ec0a3eec21aa2844fb27a1db5b38/_rcv1.py new file mode 100644 index 0000000000000000000000000000000000000000..b673f938f0e46f180e6cbd9235cc79b21fde1154 --- /dev/null +++ b/shared/package-files/a0/a01a4bad28f810d710026281a5a901619226ec0a3eec21aa2844fb27a1db5b38/_rcv1.py @@ -0,0 +1,334 @@ +"""RCV1 dataset. + +The dataset page is available at + + http://jmlr.csail.mit.edu/papers/volume5/lewis04a/ +""" + +# Authors: The scikit-learn developers +# SPDX-License-Identifier: BSD-3-Clause + +import logging +from gzip import GzipFile +from numbers import Integral, Real +from os import PathLike, makedirs, remove +from os.path import exists, join + +import joblib +import numpy as np +import scipy.sparse as sp + +from ..utils import Bunch +from ..utils import shuffle as shuffle_ +from ..utils._param_validation import Interval, StrOptions, validate_params +from . import get_data_home +from ._base import RemoteFileMetadata, _fetch_remote, _pkl_filepath, load_descr +from ._svmlight_format_io import load_svmlight_files + +# The original vectorized data can be found at: +# http://www.ai.mit.edu/projects/jmlr/papers/volume5/lewis04a/a13-vector-files/lyrl2004_vectors_test_pt0.dat.gz +# http://www.ai.mit.edu/projects/jmlr/papers/volume5/lewis04a/a13-vector-files/lyrl2004_vectors_test_pt1.dat.gz +# http://www.ai.mit.edu/projects/jmlr/papers/volume5/lewis04a/a13-vector-files/lyrl2004_vectors_test_pt2.dat.gz +# http://www.ai.mit.edu/projects/jmlr/papers/volume5/lewis04a/a13-vector-files/lyrl2004_vectors_test_pt3.dat.gz +# http://www.ai.mit.edu/projects/jmlr/papers/volume5/lewis04a/a13-vector-files/lyrl2004_vectors_train.dat.gz +# while the original stemmed token files can be found +# in the README, section B.12.i.: +# http://www.ai.mit.edu/projects/jmlr/papers/volume5/lewis04a/lyrl2004_rcv1v2_README.htm +XY_METADATA = ( + RemoteFileMetadata( + url="https://ndownloader.figshare.com/files/5976069", + checksum="ed40f7e418d10484091b059703eeb95ae3199fe042891dcec4be6696b9968374", + filename="lyrl2004_vectors_test_pt0.dat.gz", + ), + RemoteFileMetadata( + url="https://ndownloader.figshare.com/files/5976066", + checksum="87700668ae45d45d5ca1ef6ae9bd81ab0f5ec88cc95dcef9ae7838f727a13aa6", + filename="lyrl2004_vectors_test_pt1.dat.gz", + ), + RemoteFileMetadata( + url="https://ndownloader.figshare.com/files/5976063", + checksum="48143ac703cbe33299f7ae9f4995db49a258690f60e5debbff8995c34841c7f5", + filename="lyrl2004_vectors_test_pt2.dat.gz", + ), + RemoteFileMetadata( + url="https://ndownloader.figshare.com/files/5976060", + checksum="dfcb0d658311481523c6e6ca0c3f5a3e1d3d12cde5d7a8ce629a9006ec7dbb39", + filename="lyrl2004_vectors_test_pt3.dat.gz", + ), + RemoteFileMetadata( + url="https://ndownloader.figshare.com/files/5976057", + checksum="5468f656d0ba7a83afc7ad44841cf9a53048a5c083eedc005dcdb5cc768924ae", + filename="lyrl2004_vectors_train.dat.gz", + ), +) + +# The original data can be found at: +# http://jmlr.csail.mit.edu/papers/volume5/lewis04a/a08-topic-qrels/rcv1-v2.topics.qrels.gz +TOPICS_METADATA = RemoteFileMetadata( + url="https://ndownloader.figshare.com/files/5976048", + checksum="2a98e5e5d8b770bded93afc8930d88299474317fe14181aee1466cc754d0d1c1", + filename="rcv1v2.topics.qrels.gz", +) + +logger = logging.getLogger(__name__) + + +@validate_params( + { + "data_home": [str, PathLike, None], + "subset": [StrOptions({"train", "test", "all"})], + "download_if_missing": ["boolean"], + "random_state": ["random_state"], + "shuffle": ["boolean"], + "return_X_y": ["boolean"], + "n_retries": [Interval(Integral, 1, None, closed="left")], + "delay": [Interval(Real, 0.0, None, closed="neither")], + }, + prefer_skip_nested_validation=True, +) +def fetch_rcv1( + *, + data_home=None, + subset="all", + download_if_missing=True, + random_state=None, + shuffle=False, + return_X_y=False, + n_retries=3, + delay=1.0, +): + """Load the RCV1 multilabel dataset (classification). + + Download it if necessary. + + Version: RCV1-v2, vectors, full sets, topics multilabels. + + ================= ===================== + Classes 103 + Samples total 804414 + Dimensionality 47236 + Features real, between 0 and 1 + ================= ===================== + + Read more in the :ref:`User Guide `. + + .. versionadded:: 0.17 + + Parameters + ---------- + data_home : str or path-like, default=None + Specify another download and cache folder for the datasets. By default + all scikit-learn data is stored in '~/scikit_learn_data' subfolders. + + subset : {'train', 'test', 'all'}, default='all' + Select the dataset to load: 'train' for the training set + (23149 samples), 'test' for the test set (781265 samples), + 'all' for both, with the training samples first if shuffle is False. + This follows the official LYRL2004 chronological split. + + download_if_missing : bool, default=True + If False, raise an OSError if the data is not locally available + instead of trying to download the data from the source site. + + random_state : int, RandomState instance or None, default=None + Determines random number generation for dataset shuffling. Pass an int + for reproducible output across multiple function calls. + See :term:`Glossary `. + + shuffle : bool, default=False + Whether to shuffle dataset. + + return_X_y : bool, default=False + If True, returns ``(dataset.data, dataset.target)`` instead of a Bunch + object. See below for more information about the `dataset.data` and + `dataset.target` object. + + .. versionadded:: 0.20 + + n_retries : int, default=3 + Number of retries when HTTP errors are encountered. + + .. versionadded:: 1.5 + + delay : float, default=1.0 + Number of seconds between retries. + + .. versionadded:: 1.5 + + Returns + ------- + dataset : :class:`~sklearn.utils.Bunch` + Dictionary-like object. Returned only if `return_X_y` is False. + `dataset` has the following attributes: + + - data : sparse matrix of shape (804414, 47236), dtype=np.float64 + The array has 0.16% of non zero values. Will be of CSR format. + - target : sparse matrix of shape (804414, 103), dtype=np.uint8 + Each sample has a value of 1 in its categories, and 0 in others. + The array has 3.15% of non zero values. Will be of CSR format. + - sample_id : ndarray of shape (804414,), dtype=np.uint32, + Identification number of each sample, as ordered in dataset.data. + - target_names : ndarray of shape (103,), dtype=object + Names of each target (RCV1 topics), as ordered in dataset.target. + - DESCR : str + Description of the RCV1 dataset. + + (data, target) : tuple + A tuple consisting of `dataset.data` and `dataset.target`, as + described above. Returned only if `return_X_y` is True. + + .. versionadded:: 0.20 + + Examples + -------- + >>> from sklearn.datasets import fetch_rcv1 + >>> rcv1 = fetch_rcv1() + >>> rcv1.data.shape + (804414, 47236) + >>> rcv1.target.shape + (804414, 103) + """ + N_SAMPLES = 804414 + N_FEATURES = 47236 + N_CATEGORIES = 103 + N_TRAIN = 23149 + + data_home = get_data_home(data_home=data_home) + rcv1_dir = join(data_home, "RCV1") + if download_if_missing: + if not exists(rcv1_dir): + makedirs(rcv1_dir) + + samples_path = _pkl_filepath(rcv1_dir, "samples.pkl") + sample_id_path = _pkl_filepath(rcv1_dir, "sample_id.pkl") + sample_topics_path = _pkl_filepath(rcv1_dir, "sample_topics.pkl") + topics_path = _pkl_filepath(rcv1_dir, "topics_names.pkl") + + # load data (X) and sample_id + if download_if_missing and (not exists(samples_path) or not exists(sample_id_path)): + files = [] + for each in XY_METADATA: + logger.info("Downloading %s" % each.url) + file_path = _fetch_remote( + each, dirname=rcv1_dir, n_retries=n_retries, delay=delay + ) + files.append(GzipFile(filename=file_path)) + + Xy = load_svmlight_files(files, n_features=N_FEATURES) + + # Training data is before testing data + X = sp.vstack([Xy[8], Xy[0], Xy[2], Xy[4], Xy[6]]).tocsr() + sample_id = np.hstack((Xy[9], Xy[1], Xy[3], Xy[5], Xy[7])) + sample_id = sample_id.astype(np.uint32, copy=False) + + joblib.dump(X, samples_path, compress=9) + joblib.dump(sample_id, sample_id_path, compress=9) + + # delete archives + for f in files: + f.close() + remove(f.name) + else: + X = joblib.load(samples_path) + sample_id = joblib.load(sample_id_path) + + # load target (y), categories, and sample_id_bis + if download_if_missing and ( + not exists(sample_topics_path) or not exists(topics_path) + ): + logger.info("Downloading %s" % TOPICS_METADATA.url) + topics_archive_path = _fetch_remote( + TOPICS_METADATA, dirname=rcv1_dir, n_retries=n_retries, delay=delay + ) + + # parse the target file + n_cat = -1 + n_doc = -1 + doc_previous = -1 + y = np.zeros((N_SAMPLES, N_CATEGORIES), dtype=np.uint8) + sample_id_bis = np.zeros(N_SAMPLES, dtype=np.int32) + category_names = {} + with GzipFile(filename=topics_archive_path, mode="rb") as f: + for line in f: + line_components = line.decode("ascii").split(" ") + if len(line_components) == 3: + cat, doc, _ = line_components + if cat not in category_names: + n_cat += 1 + category_names[cat] = n_cat + + doc = int(doc) + if doc != doc_previous: + doc_previous = doc + n_doc += 1 + sample_id_bis[n_doc] = doc + y[n_doc, category_names[cat]] = 1 + + # delete archive + remove(topics_archive_path) + + # Samples in X are ordered with sample_id, + # whereas in y, they are ordered with sample_id_bis. + permutation = _find_permutation(sample_id_bis, sample_id) + y = y[permutation, :] + + # save category names in a list, with same order than y + categories = np.empty(N_CATEGORIES, dtype=object) + for k in category_names.keys(): + categories[category_names[k]] = k + + # reorder categories in lexicographic order + order = np.argsort(categories) + categories = categories[order] + y = sp.csr_matrix(y[:, order]) + + joblib.dump(y, sample_topics_path, compress=9) + joblib.dump(categories, topics_path, compress=9) + else: + y = joblib.load(sample_topics_path) + categories = joblib.load(topics_path) + + if subset == "all": + pass + elif subset == "train": + X = X[:N_TRAIN, :] + y = y[:N_TRAIN, :] + sample_id = sample_id[:N_TRAIN] + elif subset == "test": + X = X[N_TRAIN:, :] + y = y[N_TRAIN:, :] + sample_id = sample_id[N_TRAIN:] + else: + raise ValueError( + "Unknown subset parameter. Got '%s' instead of one" + " of ('all', 'train', test')" % subset + ) + + if shuffle: + X, y, sample_id = shuffle_(X, y, sample_id, random_state=random_state) + + fdescr = load_descr("rcv1.rst") + + if return_X_y: + return X, y + + return Bunch( + data=X, target=y, sample_id=sample_id, target_names=categories, DESCR=fdescr + ) + + +def _inverse_permutation(p): + """Inverse permutation p.""" + n = p.size + s = np.zeros(n, dtype=np.int32) + i = np.arange(n, dtype=np.int32) + np.put(s, p, i) # s[p] = i + return s + + +def _find_permutation(a, b): + """Find the permutation from a to b.""" + t = np.argsort(a) + u = np.argsort(b) + u_ = _inverse_permutation(u) + return t[u_] diff --git a/shared/package-files/a0/a01a4cb3abd2014dcda09c2571f65340cdb143fa5987d0c7f1e2fbbe39d99707/__init__.py b/shared/package-files/a0/a01a4cb3abd2014dcda09c2571f65340cdb143fa5987d0c7f1e2fbbe39d99707/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..46c89762c29879ceb4962f6b7a3fb0fa7cb38b79 --- /dev/null +++ b/shared/package-files/a0/a01a4cb3abd2014dcda09c2571f65340cdb143fa5987d0c7f1e2fbbe39d99707/__init__.py @@ -0,0 +1,149 @@ +""" +Python HTTP library with thread-safe connection pooling, file post support, user friendly, and more +""" + +from __future__ import annotations + +# Set default logging handler to avoid "No handler found" warnings. +import logging +import typing +import warnings +from logging import NullHandler + +from . import exceptions +from ._base_connection import _TYPE_BODY +from ._collections import HTTPHeaderDict +from ._version import __version__ +from .connectionpool import HTTPConnectionPool, HTTPSConnectionPool, connection_from_url +from .filepost import _TYPE_FIELDS, encode_multipart_formdata +from .poolmanager import PoolManager, ProxyManager, proxy_from_url +from .response import BaseHTTPResponse, HTTPResponse +from .util.request import make_headers +from .util.retry import Retry +from .util.timeout import Timeout + +# Ensure that Python is compiled with OpenSSL 1.1.1+ +# If the 'ssl' module isn't available at all that's +# fine, we only care if the module is available. +try: + import ssl +except ImportError: + pass +else: + if not ssl.OPENSSL_VERSION.startswith("OpenSSL "): # Defensive: + warnings.warn( + "urllib3 v2 only supports OpenSSL 1.1.1+, currently " + f"the 'ssl' module is compiled with {ssl.OPENSSL_VERSION!r}. " + "See: https://github.com/urllib3/urllib3/issues/3020", + exceptions.NotOpenSSLWarning, + ) + elif ssl.OPENSSL_VERSION_INFO < (1, 1, 1): # Defensive: + raise ImportError( + "urllib3 v2 only supports OpenSSL 1.1.1+, currently " + f"the 'ssl' module is compiled with {ssl.OPENSSL_VERSION!r}. " + "See: https://github.com/urllib3/urllib3/issues/2168" + ) + +__author__ = "Andrey Petrov (andrey.petrov@shazow.net)" +__license__ = "MIT" +__version__ = __version__ + +__all__ = ( + "HTTPConnectionPool", + "HTTPHeaderDict", + "HTTPSConnectionPool", + "PoolManager", + "ProxyManager", + "HTTPResponse", + "Retry", + "Timeout", + "add_stderr_logger", + "connection_from_url", + "disable_warnings", + "encode_multipart_formdata", + "make_headers", + "proxy_from_url", + "request", + "BaseHTTPResponse", +) + +logging.getLogger(__name__).addHandler(NullHandler()) + + +def add_stderr_logger( + level: int = logging.DEBUG, +) -> logging.StreamHandler[typing.TextIO]: + """ + Helper for quickly adding a StreamHandler to the logger. Useful for + debugging. + + Returns the handler after adding it. + """ + # This method needs to be in this __init__.py to get the __name__ correct + # even if urllib3 is vendored within another package. + logger = logging.getLogger(__name__) + handler = logging.StreamHandler() + handler.setFormatter(logging.Formatter("%(asctime)s %(levelname)s %(message)s")) + logger.addHandler(handler) + logger.setLevel(level) + logger.debug("Added a stderr logging handler to logger: %s", __name__) + return handler + + +# ... Clean up. +del NullHandler + + +# All warning filters *must* be appended unless you're really certain that they +# shouldn't be: otherwise, it's very hard for users to use most Python +# mechanisms to silence them. +# SecurityWarning's always go off by default. +warnings.simplefilter("always", exceptions.SecurityWarning, append=True) +# InsecurePlatformWarning's don't vary between requests, so we keep it default. +warnings.simplefilter("default", exceptions.InsecurePlatformWarning, append=True) + + +def disable_warnings(category: type[Warning] = exceptions.HTTPWarning) -> None: + """ + Helper for quickly disabling all urllib3 warnings. + """ + warnings.simplefilter("ignore", category) + + +_DEFAULT_POOL = PoolManager() + + +def request( + method: str, + url: str, + *, + body: _TYPE_BODY | None = None, + fields: _TYPE_FIELDS | None = None, + headers: typing.Mapping[str, str] | None = None, + preload_content: bool | None = True, + decode_content: bool | None = True, + redirect: bool | None = True, + retries: Retry | bool | int | None = None, + timeout: Timeout | float | int | None = 3, + json: typing.Any | None = None, +) -> BaseHTTPResponse: + """ + A convenience, top-level request method. It uses a module-global ``PoolManager`` instance. + Therefore, its side effects could be shared across dependencies relying on it. + To avoid side effects create a new ``PoolManager`` instance and use it instead. + The method does not accept low-level ``**urlopen_kw`` keyword arguments. + """ + + return _DEFAULT_POOL.request( + method, + url, + body=body, + fields=fields, + headers=headers, + preload_content=preload_content, + decode_content=decode_content, + redirect=redirect, + retries=retries, + timeout=timeout, + json=json, + ) diff --git a/shared/package-files/a0/a01ba64bb03cd312f36ff600f191149ecaa6e588ea13dd6bf26fbd730d252e53/mapper.pyi b/shared/package-files/a0/a01ba64bb03cd312f36ff600f191149ecaa6e588ea13dd6bf26fbd730d252e53/mapper.pyi new file mode 100644 index 0000000000000000000000000000000000000000..a3e21e8d058a707e600e375845d426c0a5fabf0b --- /dev/null +++ b/shared/package-files/a0/a01ba64bb03cd312f36ff600f191149ecaa6e588ea13dd6bf26fbd730d252e53/mapper.pyi @@ -0,0 +1,77 @@ +from typing import Any + +COLLECTION_ACTIONS: Any +MEMBER_ACTIONS: Any + +def strip_slashes(name): ... + +class SubMapperParent: + def submapper(self, **kargs): ... + def collection( + self, + collection_name, + resource_name, + path_prefix=..., + member_prefix=..., + controller=..., + collection_actions=..., + member_actions=..., + member_options=..., + **kwargs, + ): ... + +class SubMapper(SubMapperParent): + kwargs: Any + obj: Any + collection_name: Any + member: Any + resource_name: Any + formatted: Any + def __init__(self, obj, resource_name=..., collection_name=..., actions=..., formatted=..., **kwargs) -> None: ... + def connect(self, *args, **kwargs): ... + def link(self, rel=..., name=..., action=..., method=..., formatted=..., **kwargs): ... + def new(self, **kwargs): ... + def edit(self, **kwargs): ... + def action(self, name=..., action=..., method=..., formatted=..., **kwargs): ... + def index(self, name=..., **kwargs): ... + def show(self, name=..., **kwargs): ... + def create(self, **kwargs): ... + def update(self, **kwargs): ... + def delete(self, **kwargs): ... + def add_actions(self, actions): ... + def __enter__(self): ... + def __exit__(self, type, value, tb): ... + +class Mapper(SubMapperParent): + matchlist: Any + maxkeys: Any + minkeys: Any + urlcache: Any + prefix: Any + req_data: Any + directory: Any + always_scan: Any + controller_scan: Any + debug: Any + append_slash: Any + sub_domains: Any + sub_domains_ignore: Any + domain_match: Any + explicit: Any + encoding: Any + decode_errors: Any + hardcode_names: Any + minimization: Any + create_regs_lock: Any + def __init__(self, controller_scan=..., directory=..., always_scan=..., register=..., explicit=...) -> None: ... + environ: Any + def extend(self, routes, path_prefix=...): ... + def make_route(self, *args, **kargs): ... + def connect(self, *args, **kargs): ... + def create_regs(self, *args, **kwargs): ... + def match(self, url=..., environ=...): ... + def routematch(self, url=..., environ=...): ... + obj: Any + def generate(self, *args, **kargs): ... + def resource(self, member_name, collection_name, **kwargs): ... + def redirect(self, match_path, destination_path, *args, **kwargs): ... diff --git a/shared/package-files/a0/a01c1b19295bafd3241728553b66a5763734d5dafd187accad289141e93c53ae/foo_free.f90 b/shared/package-files/a0/a01c1b19295bafd3241728553b66a5763734d5dafd187accad289141e93c53ae/foo_free.f90 new file mode 100644 index 0000000000000000000000000000000000000000..b301710f5dda005e67e40cc21a5e0d62d0ec116a --- /dev/null +++ b/shared/package-files/a0/a01c1b19295bafd3241728553b66a5763734d5dafd187accad289141e93c53ae/foo_free.f90 @@ -0,0 +1,34 @@ + +subroutine sum(x, res) + implicit none + real, intent(in) :: x(:) + real, intent(out) :: res + + integer :: i + + !print *, "sum: size(x) = ", size(x) + + res = 0.0 + + do i = 1, size(x) + res = res + x(i) + enddo + +end subroutine sum + +function fsum(x) result (res) + implicit none + real, intent(in) :: x(:) + real :: res + + integer :: i + + !print *, "fsum: size(x) = ", size(x) + + res = 0.0 + + do i = 1, size(x) + res = res + x(i) + enddo + +end function fsum diff --git a/shared/package-files/a0/a01c2a0d4223d807975c1431f52381220b0b30a3dfe247d0b8e852ebd5b2e185/item_native.h b/shared/package-files/a0/a01c2a0d4223d807975c1431f52381220b0b30a3dfe247d0b8e852ebd5b2e185/item_native.h new file mode 100644 index 0000000000000000000000000000000000000000..90652f887a66b19fcfe472e21ef635d17b47c00c --- /dev/null +++ b/shared/package-files/a0/a01c2a0d4223d807975c1431f52381220b0b30a3dfe247d0b8e852ebd5b2e185/item_native.h @@ -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::Scalar item(const at::Tensor & self); +} // namespace native +} // namespace at diff --git a/shared/package-files/a0/a023bd0cac8a3f2e044588f8acfe6c573b09d95d46a1ce76d6d2c2e64f969731/_test_multivariate.cpython-310-x86_64-linux-gnu.so b/shared/package-files/a0/a023bd0cac8a3f2e044588f8acfe6c573b09d95d46a1ce76d6d2c2e64f969731/_test_multivariate.cpython-310-x86_64-linux-gnu.so new file mode 100644 index 0000000000000000000000000000000000000000..fbe799fa8bfe4c5f1b2d2ed5edc07fe91db628ef Binary files /dev/null and b/shared/package-files/a0/a023bd0cac8a3f2e044588f8acfe6c573b09d95d46a1ce76d6d2c2e64f969731/_test_multivariate.cpython-310-x86_64-linux-gnu.so differ diff --git a/shared/package-files/a0/a02884d7e544953d7a72b070d5eaa2d46919fc4266c612759b183b982b3625b9/linux-m2 b/shared/package-files/a0/a02884d7e544953d7a72b070d5eaa2d46919fc4266c612759b183b982b3625b9/linux-m2 new file mode 100644 index 0000000000000000000000000000000000000000..0dcf370b4ad1fdb14fcdfa06d7687f03d4579598 Binary files /dev/null and b/shared/package-files/a0/a02884d7e544953d7a72b070d5eaa2d46919fc4266c612759b183b982b3625b9/linux-m2 differ diff --git a/shared/package-files/a0/a029f09dd29b5ac3204908a32610edace53a0a8adf7a0ac7aa5d84146dd67b1b/ncr160vt200an b/shared/package-files/a0/a029f09dd29b5ac3204908a32610edace53a0a8adf7a0ac7aa5d84146dd67b1b/ncr160vt200an new file mode 100644 index 0000000000000000000000000000000000000000..c09609215555ab72162368e2afd8c6562b819075 Binary files /dev/null and b/shared/package-files/a0/a029f09dd29b5ac3204908a32610edace53a0a8adf7a0ac7aa5d84146dd67b1b/ncr160vt200an differ diff --git a/shared/package-files/a0/a02c55e836d701174b73c37ee96eba60afa9aed0c29b3a3e498260e4425dc817/test_logical_ops.py b/shared/package-files/a0/a02c55e836d701174b73c37ee96eba60afa9aed0c29b3a3e498260e4425dc817/test_logical_ops.py new file mode 100644 index 0000000000000000000000000000000000000000..8d7adc1c1aae644136561a8813b9cd7871d60b36 --- /dev/null +++ b/shared/package-files/a0/a02c55e836d701174b73c37ee96eba60afa9aed0c29b3a3e498260e4425dc817/test_logical_ops.py @@ -0,0 +1,567 @@ +from datetime import datetime +import operator + +import numpy as np +import pytest + +from pandas._config import using_string_dtype + +from pandas import ( + ArrowDtype, + DataFrame, + Index, + Series, + StringDtype, + bdate_range, +) +import pandas._testing as tm +from pandas.core import ops + + +class TestSeriesLogicalOps: + @pytest.mark.filterwarnings("ignore:Downcasting object dtype arrays:FutureWarning") + @pytest.mark.parametrize("bool_op", [operator.and_, operator.or_, operator.xor]) + def test_bool_operators_with_nas(self, bool_op): + # boolean &, |, ^ should work with object arrays and propagate NAs + ser = Series(bdate_range("1/1/2000", periods=10), dtype=object) + ser[::2] = np.nan + + mask = ser.isna() + filled = ser.fillna(ser[0]) + + result = bool_op(ser < ser[9], ser > ser[3]) + + expected = bool_op(filled < filled[9], filled > filled[3]) + expected[mask] = False + tm.assert_series_equal(result, expected) + + def test_logical_operators_bool_dtype_with_empty(self): + # GH#9016: support bitwise op for integer types + index = list("bca") + + s_tft = Series([True, False, True], index=index) + s_fff = Series([False, False, False], index=index) + s_empty = Series([], dtype=object) + + res = s_tft & s_empty + expected = s_fff.sort_index() + tm.assert_series_equal(res, expected) + + res = s_tft | s_empty + expected = s_tft.sort_index() + tm.assert_series_equal(res, expected) + + def test_logical_operators_int_dtype_with_int_dtype(self): + # GH#9016: support bitwise op for integer types + + s_0123 = Series(range(4), dtype="int64") + s_3333 = Series([3] * 4) + s_4444 = Series([4] * 4) + + res = s_0123 & s_3333 + expected = Series(range(4), dtype="int64") + tm.assert_series_equal(res, expected) + + res = s_0123 | s_4444 + expected = Series(range(4, 8), dtype="int64") + tm.assert_series_equal(res, expected) + + s_1111 = Series([1] * 4, dtype="int8") + res = s_0123 & s_1111 + expected = Series([0, 1, 0, 1], dtype="int64") + tm.assert_series_equal(res, expected) + + res = s_0123.astype(np.int16) | s_1111.astype(np.int32) + expected = Series([1, 1, 3, 3], dtype="int32") + tm.assert_series_equal(res, expected) + + def test_logical_operators_int_dtype_with_int_scalar(self): + # GH#9016: support bitwise op for integer types + s_0123 = Series(range(4), dtype="int64") + + res = s_0123 & 0 + expected = Series([0] * 4) + tm.assert_series_equal(res, expected) + + res = s_0123 & 1 + expected = Series([0, 1, 0, 1]) + tm.assert_series_equal(res, expected) + + def test_logical_operators_int_dtype_with_float(self): + # GH#9016: support bitwise op for integer types + s_0123 = Series(range(4), dtype="int64") + + warn_msg = ( + r"Logical ops \(and, or, xor\) between Pandas objects and " + "dtype-less sequences" + ) + + msg = "Cannot perform.+with a dtyped.+array and scalar of type" + with pytest.raises(TypeError, match=msg): + s_0123 & np.nan + with pytest.raises(TypeError, match=msg): + s_0123 & 3.14 + msg = "unsupported operand type.+for &:" + with pytest.raises(TypeError, match=msg): + with tm.assert_produces_warning(FutureWarning, match=warn_msg): + s_0123 & [0.1, 4, 3.14, 2] + with pytest.raises(TypeError, match=msg): + s_0123 & np.array([0.1, 4, 3.14, 2]) + with pytest.raises(TypeError, match=msg): + s_0123 & Series([0.1, 4, -3.14, 2]) + + def test_logical_operators_int_dtype_with_str(self): + s_1111 = Series([1] * 4, dtype="int8") + + warn_msg = ( + r"Logical ops \(and, or, xor\) between Pandas objects and " + "dtype-less sequences" + ) + + msg = "Cannot perform 'and_' with a dtyped.+array and scalar of type" + with pytest.raises(TypeError, match=msg): + s_1111 & "a" + with pytest.raises(TypeError, match="unsupported operand.+for &"): + with tm.assert_produces_warning(FutureWarning, match=warn_msg): + s_1111 & ["a", "b", "c", "d"] + + def test_logical_operators_int_dtype_with_bool(self): + # GH#9016: support bitwise op for integer types + s_0123 = Series(range(4), dtype="int64") + + expected = Series([False] * 4) + + result = s_0123 & False + tm.assert_series_equal(result, expected) + + warn_msg = ( + r"Logical ops \(and, or, xor\) between Pandas objects and " + "dtype-less sequences" + ) + with tm.assert_produces_warning(FutureWarning, match=warn_msg): + result = s_0123 & [False] + tm.assert_series_equal(result, expected) + + with tm.assert_produces_warning(FutureWarning, match=warn_msg): + result = s_0123 & (False,) + tm.assert_series_equal(result, expected) + + result = s_0123 ^ False + expected = Series([False, True, True, True]) + tm.assert_series_equal(result, expected) + + def test_logical_operators_int_dtype_with_object(self): + # GH#9016: support bitwise op for integer types + s_0123 = Series(range(4), dtype="int64") + + result = s_0123 & Series([False, np.nan, False, False]) + expected = Series([False] * 4) + tm.assert_series_equal(result, expected) + + s_abNd = Series(["a", "b", np.nan, "d"]) + with pytest.raises( + TypeError, match="unsupported.* 'int' and 'str'|'rand_' not supported" + ): + s_0123 & s_abNd + + def test_logical_operators_bool_dtype_with_int(self): + index = list("bca") + + s_tft = Series([True, False, True], index=index) + s_fff = Series([False, False, False], index=index) + + res = s_tft & 0 + expected = s_fff + tm.assert_series_equal(res, expected) + + res = s_tft & 1 + expected = s_tft + tm.assert_series_equal(res, expected) + + def test_logical_ops_bool_dtype_with_ndarray(self): + # make sure we operate on ndarray the same as Series + left = Series([True, True, True, False, True]) + right = [True, False, None, True, np.nan] + + msg = ( + r"Logical ops \(and, or, xor\) between Pandas objects and " + "dtype-less sequences" + ) + + expected = Series([True, False, False, False, False]) + with tm.assert_produces_warning(FutureWarning, match=msg): + result = left & right + tm.assert_series_equal(result, expected) + result = left & np.array(right) + tm.assert_series_equal(result, expected) + result = left & Index(right) + tm.assert_series_equal(result, expected) + result = left & Series(right) + tm.assert_series_equal(result, expected) + + expected = Series([True, True, True, True, True]) + with tm.assert_produces_warning(FutureWarning, match=msg): + result = left | right + tm.assert_series_equal(result, expected) + result = left | np.array(right) + tm.assert_series_equal(result, expected) + result = left | Index(right) + tm.assert_series_equal(result, expected) + result = left | Series(right) + tm.assert_series_equal(result, expected) + + expected = Series([False, True, True, True, True]) + with tm.assert_produces_warning(FutureWarning, match=msg): + result = left ^ right + tm.assert_series_equal(result, expected) + result = left ^ np.array(right) + tm.assert_series_equal(result, expected) + result = left ^ Index(right) + tm.assert_series_equal(result, expected) + result = left ^ Series(right) + tm.assert_series_equal(result, expected) + + def test_logical_operators_int_dtype_with_bool_dtype_and_reindex(self): + # GH#9016: support bitwise op for integer types + + index = list("bca") + + s_tft = Series([True, False, True], index=index) + s_tft = Series([True, False, True], index=index) + s_tff = Series([True, False, False], index=index) + + s_0123 = Series(range(4), dtype="int64") + + # s_0123 will be all false now because of reindexing like s_tft + expected = Series([False] * 7, index=[0, 1, 2, 3, "a", "b", "c"]) + with tm.assert_produces_warning(FutureWarning): + result = s_tft & s_0123 + tm.assert_series_equal(result, expected) + + # GH 52538: Deprecate casting to object type when reindex is needed; + # matches DataFrame behavior + expected = Series([False] * 7, index=[0, 1, 2, 3, "a", "b", "c"]) + with tm.assert_produces_warning(FutureWarning): + result = s_0123 & s_tft + tm.assert_series_equal(result, expected) + + s_a0b1c0 = Series([1], list("b")) + + with tm.assert_produces_warning(FutureWarning): + res = s_tft & s_a0b1c0 + expected = s_tff.reindex(list("abc")) + tm.assert_series_equal(res, expected) + + with tm.assert_produces_warning(FutureWarning): + res = s_tft | s_a0b1c0 + expected = s_tft.reindex(list("abc")) + tm.assert_series_equal(res, expected) + + def test_scalar_na_logical_ops_corners(self): + s = Series([2, 3, 4, 5, 6, 7, 8, 9, 10]) + + msg = "Cannot perform.+with a dtyped.+array and scalar of type" + with pytest.raises(TypeError, match=msg): + s & datetime(2005, 1, 1) + + s = Series([2, 3, 4, 5, 6, 7, 8, 9, datetime(2005, 1, 1)]) + s[::2] = np.nan + + expected = Series(True, index=s.index) + expected[::2] = False + + msg = ( + r"Logical ops \(and, or, xor\) between Pandas objects and " + "dtype-less sequences" + ) + with tm.assert_produces_warning(FutureWarning, match=msg): + result = s & list(s) + tm.assert_series_equal(result, expected) + + def test_scalar_na_logical_ops_corners_aligns(self): + s = Series([2, 3, 4, 5, 6, 7, 8, 9, datetime(2005, 1, 1)]) + s[::2] = np.nan + d = DataFrame({"A": s}) + + expected = DataFrame(False, index=range(9), columns=["A"] + list(range(9))) + + result = s & d + tm.assert_frame_equal(result, expected) + + result = d & s + tm.assert_frame_equal(result, expected) + + @pytest.mark.parametrize("op", [operator.and_, operator.or_, operator.xor]) + def test_logical_ops_with_index(self, op): + # GH#22092, GH#19792 + ser = Series([True, True, False, False]) + idx1 = Index([True, False, True, False]) + idx2 = Index([1, 0, 1, 0]) + + expected = Series([op(ser[n], idx1[n]) for n in range(len(ser))]) + + result = op(ser, idx1) + tm.assert_series_equal(result, expected) + + expected = Series([op(ser[n], idx2[n]) for n in range(len(ser))], dtype=bool) + + result = op(ser, idx2) + tm.assert_series_equal(result, expected) + + def test_reversed_xor_with_index_returns_series(self): + # GH#22092, GH#19792 pre-2.0 these were aliased to setops + ser = Series([True, True, False, False]) + idx1 = Index([True, False, True, False], dtype=bool) + idx2 = Index([1, 0, 1, 0]) + + expected = Series([False, True, True, False]) + result = idx1 ^ ser + tm.assert_series_equal(result, expected) + + result = idx2 ^ ser + tm.assert_series_equal(result, expected) + + @pytest.mark.parametrize( + "op", + [ + ops.rand_, + ops.ror_, + ], + ) + def test_reversed_logical_op_with_index_returns_series(self, op): + # GH#22092, GH#19792 + ser = Series([True, True, False, False]) + idx1 = Index([True, False, True, False]) + idx2 = Index([1, 0, 1, 0]) + + expected = Series(op(idx1.values, ser.values)) + result = op(ser, idx1) + tm.assert_series_equal(result, expected) + + expected = op(ser, Series(idx2)) + result = op(ser, idx2) + tm.assert_series_equal(result, expected) + + @pytest.mark.parametrize( + "op, expected", + [ + (ops.rand_, Series([False, False])), + (ops.ror_, Series([True, True])), + (ops.rxor, Series([True, True])), + ], + ) + def test_reverse_ops_with_index(self, op, expected): + # https://github.com/pandas-dev/pandas/pull/23628 + # multi-set Index ops are buggy, so let's avoid duplicates... + # GH#49503 + ser = Series([True, False]) + idx = Index([False, True]) + + result = op(ser, idx) + tm.assert_series_equal(result, expected) + + @pytest.mark.xfail(using_string_dtype(), reason="TODO(infer_string)") + def test_logical_ops_label_based(self, using_infer_string): + # GH#4947 + # logical ops should be label based + + a = Series([True, False, True], list("bca")) + b = Series([False, True, False], list("abc")) + + expected = Series([False, True, False], list("abc")) + result = a & b + tm.assert_series_equal(result, expected) + + expected = Series([True, True, False], list("abc")) + result = a | b + tm.assert_series_equal(result, expected) + + expected = Series([True, False, False], list("abc")) + result = a ^ b + tm.assert_series_equal(result, expected) + + # rhs is bigger + a = Series([True, False, True], list("bca")) + b = Series([False, True, False, True], list("abcd")) + + expected = Series([False, True, False, False], list("abcd")) + result = a & b + tm.assert_series_equal(result, expected) + + expected = Series([True, True, False, False], list("abcd")) + result = a | b + tm.assert_series_equal(result, expected) + + # filling + + # vs empty + empty = Series([], dtype=object) + + result = a & empty.copy() + expected = Series([False, False, False], list("abc")) + tm.assert_series_equal(result, expected) + + result = a | empty.copy() + expected = Series([True, True, False], list("abc")) + tm.assert_series_equal(result, expected) + + # vs non-matching + with tm.assert_produces_warning(FutureWarning): + result = a & Series([1], ["z"]) + expected = Series([False, False, False, False], list("abcz")) + tm.assert_series_equal(result, expected) + + with tm.assert_produces_warning(FutureWarning): + result = a | Series([1], ["z"]) + expected = Series([True, True, False, False], list("abcz")) + tm.assert_series_equal(result, expected) + + # identity + # we would like s[s|e] == s to hold for any e, whether empty or not + with tm.assert_produces_warning(FutureWarning): + for e in [ + empty.copy(), + Series([1], ["z"]), + Series(np.nan, b.index), + Series(np.nan, a.index), + ]: + result = a[a | e] + tm.assert_series_equal(result, a[a]) + + for e in [Series(["z"])]: + if using_infer_string: + # TODO(infer_string) should this behave differently? + # -> https://github.com/pandas-dev/pandas/issues/60234 + with pytest.raises( + TypeError, match="not supported for dtype|unsupported operand type" + ): + result = a[a | e] + else: + result = a[a | e] + tm.assert_series_equal(result, a[a]) + + # vs scalars + index = list("bca") + t = Series([True, False, True]) + + for v in [True, 1, 2]: + result = Series([True, False, True], index=index) | v + expected = Series([True, True, True], index=index) + tm.assert_series_equal(result, expected) + + msg = "Cannot perform.+with a dtyped.+array and scalar of type" + for v in [np.nan, "foo"]: + with pytest.raises(TypeError, match=msg): + t | v + + for v in [False, 0]: + result = Series([True, False, True], index=index) | v + expected = Series([True, False, True], index=index) + tm.assert_series_equal(result, expected) + + for v in [True, 1]: + result = Series([True, False, True], index=index) & v + expected = Series([True, False, True], index=index) + tm.assert_series_equal(result, expected) + + for v in [False, 0]: + result = Series([True, False, True], index=index) & v + expected = Series([False, False, False], index=index) + tm.assert_series_equal(result, expected) + msg = "Cannot perform.+with a dtyped.+array and scalar of type" + for v in [np.nan]: + with pytest.raises(TypeError, match=msg): + t & v + + def test_logical_ops_df_compat(self): + # GH#1134 + s1 = Series([True, False, True], index=list("ABC"), name="x") + s2 = Series([True, True, False], index=list("ABD"), name="x") + + exp = Series([True, False, False, False], index=list("ABCD"), name="x") + tm.assert_series_equal(s1 & s2, exp) + tm.assert_series_equal(s2 & s1, exp) + + # True | np.nan => True + exp_or1 = Series([True, True, True, False], index=list("ABCD"), name="x") + tm.assert_series_equal(s1 | s2, exp_or1) + # np.nan | True => np.nan, filled with False + exp_or = Series([True, True, False, False], index=list("ABCD"), name="x") + tm.assert_series_equal(s2 | s1, exp_or) + + # DataFrame doesn't fill nan with False + tm.assert_frame_equal(s1.to_frame() & s2.to_frame(), exp.to_frame()) + tm.assert_frame_equal(s2.to_frame() & s1.to_frame(), exp.to_frame()) + + exp = DataFrame({"x": [True, True, np.nan, np.nan]}, index=list("ABCD")) + tm.assert_frame_equal(s1.to_frame() | s2.to_frame(), exp_or1.to_frame()) + tm.assert_frame_equal(s2.to_frame() | s1.to_frame(), exp_or.to_frame()) + + # different length + s3 = Series([True, False, True], index=list("ABC"), name="x") + s4 = Series([True, True, True, True], index=list("ABCD"), name="x") + + exp = Series([True, False, True, False], index=list("ABCD"), name="x") + tm.assert_series_equal(s3 & s4, exp) + tm.assert_series_equal(s4 & s3, exp) + + # np.nan | True => np.nan, filled with False + exp_or1 = Series([True, True, True, False], index=list("ABCD"), name="x") + tm.assert_series_equal(s3 | s4, exp_or1) + # True | np.nan => True + exp_or = Series([True, True, True, True], index=list("ABCD"), name="x") + tm.assert_series_equal(s4 | s3, exp_or) + + tm.assert_frame_equal(s3.to_frame() & s4.to_frame(), exp.to_frame()) + tm.assert_frame_equal(s4.to_frame() & s3.to_frame(), exp.to_frame()) + + tm.assert_frame_equal(s3.to_frame() | s4.to_frame(), exp_or1.to_frame()) + tm.assert_frame_equal(s4.to_frame() | s3.to_frame(), exp_or.to_frame()) + + @pytest.mark.xfail(reason="Will pass once #52839 deprecation is enforced") + def test_int_dtype_different_index_not_bool(self): + # GH 52500 + ser1 = Series([1, 2, 3], index=[10, 11, 23], name="a") + ser2 = Series([10, 20, 30], index=[11, 10, 23], name="a") + result = np.bitwise_xor(ser1, ser2) + expected = Series([21, 8, 29], index=[10, 11, 23], name="a") + tm.assert_series_equal(result, expected) + + result = ser1 ^ ser2 + tm.assert_series_equal(result, expected) + + # TODO: this belongs in comparison tests + def test_pyarrow_numpy_string_invalid(self): + # GH#56008 + pa = pytest.importorskip("pyarrow") + ser = Series([False, True]) + ser2 = Series(["a", "b"], dtype=StringDtype(na_value=np.nan)) + result = ser == ser2 + expected_eq = Series(False, index=ser.index) + tm.assert_series_equal(result, expected_eq) + + result = ser != ser2 + expected_ne = Series(True, index=ser.index) + tm.assert_series_equal(result, expected_ne) + + with pytest.raises(TypeError, match="Invalid comparison"): + ser > ser2 + + # GH#59505 + ser3 = ser2.astype("string[pyarrow]") + result3_eq = ser3 == ser + tm.assert_series_equal(result3_eq, expected_eq.astype("bool[pyarrow]")) + result3_ne = ser3 != ser + tm.assert_series_equal(result3_ne, expected_ne.astype("bool[pyarrow]")) + + with pytest.raises(TypeError, match="Invalid comparison"): + ser > ser3 + + ser4 = ser2.astype(ArrowDtype(pa.string())) + result4_eq = ser4 == ser + tm.assert_series_equal(result4_eq, expected_eq.astype("bool[pyarrow]")) + result4_ne = ser4 != ser + tm.assert_series_equal(result4_ne, expected_ne.astype("bool[pyarrow]")) + + with pytest.raises(TypeError, match="Invalid comparison"): + ser > ser4 diff --git a/shared/package-files/a0/a02cee3f328df6ddbc33ad6a95283cafef0d0c3dc4401a441c25e2e1d3001c2e/sinc_meta_dispatch.h b/shared/package-files/a0/a02cee3f328df6ddbc33ad6a95283cafef0d0c3dc4401a441c25e2e1d3001c2e/sinc_meta_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..fb29448070f8236a7714864cb707b6b254475943 --- /dev/null +++ b/shared/package-files/a0/a02cee3f328df6ddbc33ad6a95283cafef0d0c3dc4401a441c25e2e1d3001c2e/sinc_meta_dispatch.h @@ -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 sinc(const at::Tensor & self); +TORCH_API at::Tensor & sinc_out(at::Tensor & out, const at::Tensor & self); +TORCH_API at::Tensor & sinc_outf(const at::Tensor & self, at::Tensor & out); +TORCH_API at::Tensor & sinc_(at::Tensor & self); + +} // namespace meta +} // namespace at diff --git a/shared/package-files/a0/a02d75e433661333d83dd28de63354cfe815e3873fa956f663939f18ede043f5/shell.py b/shared/package-files/a0/a02d75e433661333d83dd28de63354cfe815e3873fa956f663939f18ede043f5/shell.py new file mode 100644 index 0000000000000000000000000000000000000000..eabf4ec942425f5cc0982e2aee394b7cdb0a67ab --- /dev/null +++ b/shared/package-files/a0/a02d75e433661333d83dd28de63354cfe815e3873fa956f663939f18ede043f5/shell.py @@ -0,0 +1,920 @@ +""" + pygments.lexers.shell + ~~~~~~~~~~~~~~~~~~~~~ + + Lexers for various shells. + + :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS. + :license: BSD, see LICENSE for details. +""" + +import re + +from pygments.lexer import Lexer, RegexLexer, do_insertions, bygroups, \ + include, default, this, using, words, line_re +from pygments.token import Punctuation, Whitespace, \ + Text, Comment, Operator, Keyword, Name, String, Number, Generic +from pygments.util import shebang_matches + +__all__ = ['BashLexer', 'BashSessionLexer', 'TcshLexer', 'BatchLexer', + 'SlurmBashLexer', 'MSDOSSessionLexer', 'PowerShellLexer', + 'PowerShellSessionLexer', 'TcshSessionLexer', 'FishShellLexer', + 'ExeclineLexer'] + + +class BashLexer(RegexLexer): + """ + Lexer for (ba|k|z|)sh shell scripts. + + .. versionadded:: 0.6 + """ + + name = 'Bash' + aliases = ['bash', 'sh', 'ksh', 'zsh', 'shell'] + filenames = ['*.sh', '*.ksh', '*.bash', '*.ebuild', '*.eclass', + '*.exheres-0', '*.exlib', '*.zsh', + '.bashrc', 'bashrc', '.bash_*', 'bash_*', 'zshrc', '.zshrc', + '.kshrc', 'kshrc', + 'PKGBUILD'] + mimetypes = ['application/x-sh', 'application/x-shellscript', 'text/x-shellscript'] + + tokens = { + 'root': [ + include('basic'), + (r'`', String.Backtick, 'backticks'), + include('data'), + include('interp'), + ], + 'interp': [ + (r'\$\(\(', Keyword, 'math'), + (r'\$\(', Keyword, 'paren'), + (r'\$\{#?', String.Interpol, 'curly'), + (r'\$[a-zA-Z_]\w*', Name.Variable), # user variable + (r'\$(?:\d+|[#$?!_*@-])', Name.Variable), # builtin + (r'\$', Text), + ], + 'basic': [ + (r'\b(if|fi|else|while|in|do|done|for|then|return|function|case|' + r'select|break|continue|until|esac|elif)(\s*)\b', + bygroups(Keyword, Whitespace)), + (r'\b(alias|bg|bind|builtin|caller|cd|command|compgen|' + r'complete|declare|dirs|disown|echo|enable|eval|exec|exit|' + r'export|false|fc|fg|getopts|hash|help|history|jobs|kill|let|' + r'local|logout|popd|printf|pushd|pwd|read|readonly|set|shift|' + r'shopt|source|suspend|test|time|times|trap|true|type|typeset|' + r'ulimit|umask|unalias|unset|wait)(?=[\s)`])', + Name.Builtin), + (r'\A#!.+\n', Comment.Hashbang), + (r'#.*\n', Comment.Single), + (r'\\[\w\W]', String.Escape), + (r'(\b\w+)(\s*)(\+?=)', bygroups(Name.Variable, Whitespace, Operator)), + (r'[\[\]{}()=]', Operator), + (r'<<<', Operator), # here-string + (r'<<-?\s*(\'?)\\?(\w+)[\w\W]+?\2', String), + (r'&&|\|\|', Operator), + ], + 'data': [ + (r'(?s)\$?"(\\.|[^"\\$])*"', String.Double), + (r'"', String.Double, 'string'), + (r"(?s)\$'(\\\\|\\[0-7]+|\\.|[^'\\])*'", String.Single), + (r"(?s)'.*?'", String.Single), + (r';', Punctuation), + (r'&', Punctuation), + (r'\|', Punctuation), + (r'\s+', Whitespace), + (r'\d+\b', Number), + (r'[^=\s\[\]{}()$"\'`\\<&|;]+', Text), + (r'<', Text), + ], + 'string': [ + (r'"', String.Double, '#pop'), + (r'(?s)(\\\\|\\[0-7]+|\\.|[^"\\$])+', String.Double), + include('interp'), + ], + 'curly': [ + (r'\}', String.Interpol, '#pop'), + (r':-', Keyword), + (r'\w+', Name.Variable), + (r'[^}:"\'`$\\]+', Punctuation), + (r':', Punctuation), + include('root'), + ], + 'paren': [ + (r'\)', Keyword, '#pop'), + include('root'), + ], + 'math': [ + (r'\)\)', Keyword, '#pop'), + (r'\*\*|\|\||<<|>>|[-+*/%^|&<>]', Operator), + (r'\d+#[\da-zA-Z]+', Number), + (r'\d+#(?! )', Number), + (r'0[xX][\da-fA-F]+', Number), + (r'\d+', Number), + (r'[a-zA-Z_]\w*', Name.Variable), # user variable + include('root'), + ], + 'backticks': [ + (r'`', String.Backtick, '#pop'), + include('root'), + ], + } + + def analyse_text(text): + if shebang_matches(text, r'(ba|z|)sh'): + return 1 + if text.startswith('$ '): + return 0.2 + + +class SlurmBashLexer(BashLexer): + """ + Lexer for (ba|k|z|)sh Slurm scripts. + + .. versionadded:: 2.4 + """ + + name = 'Slurm' + aliases = ['slurm', 'sbatch'] + filenames = ['*.sl'] + mimetypes = [] + EXTRA_KEYWORDS = {'srun'} + + def get_tokens_unprocessed(self, text): + for index, token, value in BashLexer.get_tokens_unprocessed(self, text): + if token is Text and value in self.EXTRA_KEYWORDS: + yield index, Name.Builtin, value + elif token is Comment.Single and 'SBATCH' in value: + yield index, Keyword.Pseudo, value + else: + yield index, token, value + + +class ShellSessionBaseLexer(Lexer): + """ + Base lexer for shell sessions. + + .. versionadded:: 2.1 + """ + + _bare_continuation = False + _venv = re.compile(r'^(\([^)]*\))(\s*)') + + def get_tokens_unprocessed(self, text): + innerlexer = self._innerLexerCls(**self.options) + + pos = 0 + curcode = '' + insertions = [] + backslash_continuation = False + + for match in line_re.finditer(text): + line = match.group() + + venv_match = self._venv.match(line) + if venv_match: + venv = venv_match.group(1) + venv_whitespace = venv_match.group(2) + insertions.append((len(curcode), + [(0, Generic.Prompt.VirtualEnv, venv)])) + if venv_whitespace: + insertions.append((len(curcode), + [(0, Text, venv_whitespace)])) + line = line[venv_match.end():] + + m = self._ps1rgx.match(line) + if m: + # To support output lexers (say diff output), the output + # needs to be broken by prompts whenever the output lexer + # changes. + if not insertions: + pos = match.start() + + insertions.append((len(curcode), + [(0, Generic.Prompt, m.group(1))])) + curcode += m.group(2) + backslash_continuation = curcode.endswith('\\\n') + elif backslash_continuation: + if line.startswith(self._ps2): + insertions.append((len(curcode), + [(0, Generic.Prompt, + line[:len(self._ps2)])])) + curcode += line[len(self._ps2):] + else: + curcode += line + backslash_continuation = curcode.endswith('\\\n') + elif self._bare_continuation and line.startswith(self._ps2): + insertions.append((len(curcode), + [(0, Generic.Prompt, + line[:len(self._ps2)])])) + curcode += line[len(self._ps2):] + else: + if insertions: + toks = innerlexer.get_tokens_unprocessed(curcode) + for i, t, v in do_insertions(insertions, toks): + yield pos+i, t, v + yield match.start(), Generic.Output, line + insertions = [] + curcode = '' + if insertions: + for i, t, v in do_insertions(insertions, + innerlexer.get_tokens_unprocessed(curcode)): + yield pos+i, t, v + + +class BashSessionLexer(ShellSessionBaseLexer): + """ + Lexer for Bash shell sessions, i.e. command lines, including a + prompt, interspersed with output. + + .. versionadded:: 1.1 + """ + + name = 'Bash Session' + aliases = ['console', 'shell-session'] + filenames = ['*.sh-session', '*.shell-session'] + mimetypes = ['application/x-shell-session', 'application/x-sh-session'] + + _innerLexerCls = BashLexer + _ps1rgx = re.compile( + r'^((?:(?:\[.*?\])|(?:\(\S+\))?(?:| |sh\S*?|\w+\S+[@:]\S+(?:\s+\S+)' \ + r'?|\[\S+[@:][^\n]+\].+))\s*[$#%]\s*)(.*\n?)') + _ps2 = '> ' + + +class BatchLexer(RegexLexer): + """ + Lexer for the DOS/Windows Batch file format. + + .. versionadded:: 0.7 + """ + name = 'Batchfile' + aliases = ['batch', 'bat', 'dosbatch', 'winbatch'] + filenames = ['*.bat', '*.cmd'] + mimetypes = ['application/x-dos-batch'] + + flags = re.MULTILINE | re.IGNORECASE + + _nl = r'\n\x1a' + _punct = r'&<>|' + _ws = r'\t\v\f\r ,;=\xa0' + _nlws = r'\s\x1a\xa0,;=' + _space = r'(?:(?:(?:\^[%s])?[%s])+)' % (_nl, _ws) + _keyword_terminator = (r'(?=(?:\^[%s]?)?[%s+./:[\\\]]|[%s%s(])' % + (_nl, _ws, _nl, _punct)) + _token_terminator = r'(?=\^?[%s]|[%s%s])' % (_ws, _punct, _nl) + _start_label = r'((?:(?<=^[^:])|^[^:]?)[%s]*)(:)' % _ws + _label = r'(?:(?:[^%s%s+:^]|\^[%s]?[\w\W])*)' % (_nlws, _punct, _nl) + _label_compound = r'(?:(?:[^%s%s+:^)]|\^[%s]?[^)])*)' % (_nlws, _punct, _nl) + _number = r'(?:-?(?:0[0-7]+|0x[\da-f]+|\d+)%s)' % _token_terminator + _opword = r'(?:equ|geq|gtr|leq|lss|neq)' + _string = r'(?:"[^%s"]*(?:"|(?=[%s])))' % (_nl, _nl) + _variable = (r'(?:(?:%%(?:\*|(?:~[a-z]*(?:\$[^:]+:)?)?\d|' + r'[^%%:%s]+(?::(?:~(?:-?\d+)?(?:,(?:-?\d+)?)?|(?:[^%%%s^]|' + r'\^[^%%%s])[^=%s]*=(?:[^%%%s^]|\^[^%%%s])*)?)?%%))|' + r'(?:\^?![^!:%s]+(?::(?:~(?:-?\d+)?(?:,(?:-?\d+)?)?|(?:' + r'[^!%s^]|\^[^!%s])[^=%s]*=(?:[^!%s^]|\^[^!%s])*)?)?\^?!))' % + (_nl, _nl, _nl, _nl, _nl, _nl, _nl, _nl, _nl, _nl, _nl, _nl)) + _core_token = r'(?:(?:(?:\^[%s]?)?[^"%s%s])+)' % (_nl, _nlws, _punct) + _core_token_compound = r'(?:(?:(?:\^[%s]?)?[^"%s%s)])+)' % (_nl, _nlws, _punct) + _token = r'(?:[%s]+|%s)' % (_punct, _core_token) + _token_compound = r'(?:[%s]+|%s)' % (_punct, _core_token_compound) + _stoken = (r'(?:[%s]+|(?:%s|%s|%s)+)' % + (_punct, _string, _variable, _core_token)) + + def _make_begin_state(compound, _core_token=_core_token, + _core_token_compound=_core_token_compound, + _keyword_terminator=_keyword_terminator, + _nl=_nl, _punct=_punct, _string=_string, + _space=_space, _start_label=_start_label, + _stoken=_stoken, _token_terminator=_token_terminator, + _variable=_variable, _ws=_ws): + rest = '(?:%s|%s|[^"%%%s%s%s])*' % (_string, _variable, _nl, _punct, + ')' if compound else '') + rest_of_line = r'(?:(?:[^%s^]|\^[%s]?[\w\W])*)' % (_nl, _nl) + rest_of_line_compound = r'(?:(?:[^%s^)]|\^[%s]?[^)])*)' % (_nl, _nl) + set_space = r'((?:(?:\^[%s]?)?[^\S\n])*)' % _nl + suffix = '' + if compound: + _keyword_terminator = r'(?:(?=\))|%s)' % _keyword_terminator + _token_terminator = r'(?:(?=\))|%s)' % _token_terminator + suffix = '/compound' + return [ + ((r'\)', Punctuation, '#pop') if compound else + (r'\)((?=\()|%s)%s' % (_token_terminator, rest_of_line), + Comment.Single)), + (r'(?=%s)' % _start_label, Text, 'follow%s' % suffix), + (_space, using(this, state='text')), + include('redirect%s' % suffix), + (r'[%s]+' % _nl, Text), + (r'\(', Punctuation, 'root/compound'), + (r'@+', Punctuation), + (r'((?:for|if|rem)(?:(?=(?:\^[%s]?)?/)|(?:(?!\^)|' + r'(?<=m))(?:(?=\()|%s)))(%s?%s?(?:\^[%s]?)?/(?:\^[%s]?)?\?)' % + (_nl, _token_terminator, _space, + _core_token_compound if compound else _core_token, _nl, _nl), + bygroups(Keyword, using(this, state='text')), + 'follow%s' % suffix), + (r'(goto%s)(%s(?:\^[%s]?)?/(?:\^[%s]?)?\?%s)' % + (_keyword_terminator, rest, _nl, _nl, rest), + bygroups(Keyword, using(this, state='text')), + 'follow%s' % suffix), + (words(('assoc', 'break', 'cd', 'chdir', 'cls', 'color', 'copy', + 'date', 'del', 'dir', 'dpath', 'echo', 'endlocal', 'erase', + 'exit', 'ftype', 'keys', 'md', 'mkdir', 'mklink', 'move', + 'path', 'pause', 'popd', 'prompt', 'pushd', 'rd', 'ren', + 'rename', 'rmdir', 'setlocal', 'shift', 'start', 'time', + 'title', 'type', 'ver', 'verify', 'vol'), + suffix=_keyword_terminator), Keyword, 'follow%s' % suffix), + (r'(call)(%s?)(:)' % _space, + bygroups(Keyword, using(this, state='text'), Punctuation), + 'call%s' % suffix), + (r'call%s' % _keyword_terminator, Keyword), + (r'(for%s(?!\^))(%s)(/f%s)' % + (_token_terminator, _space, _token_terminator), + bygroups(Keyword, using(this, state='text'), Keyword), + ('for/f', 'for')), + (r'(for%s(?!\^))(%s)(/l%s)' % + (_token_terminator, _space, _token_terminator), + bygroups(Keyword, using(this, state='text'), Keyword), + ('for/l', 'for')), + (r'for%s(?!\^)' % _token_terminator, Keyword, ('for2', 'for')), + (r'(goto%s)(%s?)(:?)' % (_keyword_terminator, _space), + bygroups(Keyword, using(this, state='text'), Punctuation), + 'label%s' % suffix), + (r'(if(?:(?=\()|%s)(?!\^))(%s?)((?:/i%s)?)(%s?)((?:not%s)?)(%s?)' % + (_token_terminator, _space, _token_terminator, _space, + _token_terminator, _space), + bygroups(Keyword, using(this, state='text'), Keyword, + using(this, state='text'), Keyword, + using(this, state='text')), ('(?', 'if')), + (r'rem(((?=\()|%s)%s?%s?.*|%s%s)' % + (_token_terminator, _space, _stoken, _keyword_terminator, + rest_of_line_compound if compound else rest_of_line), + Comment.Single, 'follow%s' % suffix), + (r'(set%s)%s(/a)' % (_keyword_terminator, set_space), + bygroups(Keyword, using(this, state='text'), Keyword), + 'arithmetic%s' % suffix), + (r'(set%s)%s((?:/p)?)%s((?:(?:(?:\^[%s]?)?[^"%s%s^=%s]|' + r'\^[%s]?[^"=])+)?)((?:(?:\^[%s]?)?=)?)' % + (_keyword_terminator, set_space, set_space, _nl, _nl, _punct, + ')' if compound else '', _nl, _nl), + bygroups(Keyword, using(this, state='text'), Keyword, + using(this, state='text'), using(this, state='variable'), + Punctuation), + 'follow%s' % suffix), + default('follow%s' % suffix) + ] + + def _make_follow_state(compound, _label=_label, + _label_compound=_label_compound, _nl=_nl, + _space=_space, _start_label=_start_label, + _token=_token, _token_compound=_token_compound, + _ws=_ws): + suffix = '/compound' if compound else '' + state = [] + if compound: + state.append((r'(?=\))', Text, '#pop')) + state += [ + (r'%s([%s]*)(%s)(.*)' % + (_start_label, _ws, _label_compound if compound else _label), + bygroups(Text, Punctuation, Text, Name.Label, Comment.Single)), + include('redirect%s' % suffix), + (r'(?=[%s])' % _nl, Text, '#pop'), + (r'\|\|?|&&?', Punctuation, '#pop'), + include('text') + ] + return state + + def _make_arithmetic_state(compound, _nl=_nl, _punct=_punct, + _string=_string, _variable=_variable, + _ws=_ws, _nlws=_nlws): + op = r'=+\-*/!~' + state = [] + if compound: + state.append((r'(?=\))', Text, '#pop')) + state += [ + (r'0[0-7]+', Number.Oct), + (r'0x[\da-f]+', Number.Hex), + (r'\d+', Number.Integer), + (r'[(),]+', Punctuation), + (r'([%s]|%%|\^\^)+' % op, Operator), + (r'(%s|%s|(\^[%s]?)?[^()%s%%\^"%s%s]|\^[%s]?%s)+' % + (_string, _variable, _nl, op, _nlws, _punct, _nlws, + r'[^)]' if compound else r'[\w\W]'), + using(this, state='variable')), + (r'(?=[\x00|&])', Text, '#pop'), + include('follow') + ] + return state + + def _make_call_state(compound, _label=_label, + _label_compound=_label_compound): + state = [] + if compound: + state.append((r'(?=\))', Text, '#pop')) + state.append((r'(:?)(%s)' % (_label_compound if compound else _label), + bygroups(Punctuation, Name.Label), '#pop')) + return state + + def _make_label_state(compound, _label=_label, + _label_compound=_label_compound, _nl=_nl, + _punct=_punct, _string=_string, _variable=_variable): + state = [] + if compound: + state.append((r'(?=\))', Text, '#pop')) + state.append((r'(%s?)((?:%s|%s|\^[%s]?%s|[^"%%^%s%s%s])*)' % + (_label_compound if compound else _label, _string, + _variable, _nl, r'[^)]' if compound else r'[\w\W]', _nl, + _punct, r')' if compound else ''), + bygroups(Name.Label, Comment.Single), '#pop')) + return state + + def _make_redirect_state(compound, + _core_token_compound=_core_token_compound, + _nl=_nl, _punct=_punct, _stoken=_stoken, + _string=_string, _space=_space, + _variable=_variable, _nlws=_nlws): + stoken_compound = (r'(?:[%s]+|(?:%s|%s|%s)+)' % + (_punct, _string, _variable, _core_token_compound)) + return [ + (r'((?:(?<=[%s])\d)?)(>>?&|<&)([%s]*)(\d)' % + (_nlws, _nlws), + bygroups(Number.Integer, Punctuation, Text, Number.Integer)), + (r'((?:(?<=[%s])(?>?|<)(%s?%s)' % + (_nlws, _nl, _space, stoken_compound if compound else _stoken), + bygroups(Number.Integer, Punctuation, using(this, state='text'))) + ] + + tokens = { + 'root': _make_begin_state(False), + 'follow': _make_follow_state(False), + 'arithmetic': _make_arithmetic_state(False), + 'call': _make_call_state(False), + 'label': _make_label_state(False), + 'redirect': _make_redirect_state(False), + 'root/compound': _make_begin_state(True), + 'follow/compound': _make_follow_state(True), + 'arithmetic/compound': _make_arithmetic_state(True), + 'call/compound': _make_call_state(True), + 'label/compound': _make_label_state(True), + 'redirect/compound': _make_redirect_state(True), + 'variable-or-escape': [ + (_variable, Name.Variable), + (r'%%%%|\^[%s]?(\^!|[\w\W])' % _nl, String.Escape) + ], + 'string': [ + (r'"', String.Double, '#pop'), + (_variable, Name.Variable), + (r'\^!|%%', String.Escape), + (r'[^"%%^%s]+|[%%^]' % _nl, String.Double), + default('#pop') + ], + 'sqstring': [ + include('variable-or-escape'), + (r'[^%]+|%', String.Single) + ], + 'bqstring': [ + include('variable-or-escape'), + (r'[^%]+|%', String.Backtick) + ], + 'text': [ + (r'"', String.Double, 'string'), + include('variable-or-escape'), + (r'[^"%%^%s%s\d)]+|.' % (_nlws, _punct), Text) + ], + 'variable': [ + (r'"', String.Double, 'string'), + include('variable-or-escape'), + (r'[^"%%^%s]+|.' % _nl, Name.Variable) + ], + 'for': [ + (r'(%s)(in)(%s)(\()' % (_space, _space), + bygroups(using(this, state='text'), Keyword, + using(this, state='text'), Punctuation), '#pop'), + include('follow') + ], + 'for2': [ + (r'\)', Punctuation), + (r'(%s)(do%s)' % (_space, _token_terminator), + bygroups(using(this, state='text'), Keyword), '#pop'), + (r'[%s]+' % _nl, Text), + include('follow') + ], + 'for/f': [ + (r'(")((?:%s|[^"])*?")([%s]*)(\))' % (_variable, _nlws), + bygroups(String.Double, using(this, state='string'), Text, + Punctuation)), + (r'"', String.Double, ('#pop', 'for2', 'string')), + (r"('(?:%%%%|%s|[\w\W])*?')([%s]*)(\))" % (_variable, _nlws), + bygroups(using(this, state='sqstring'), Text, Punctuation)), + (r'(`(?:%%%%|%s|[\w\W])*?`)([%s]*)(\))' % (_variable, _nlws), + bygroups(using(this, state='bqstring'), Text, Punctuation)), + include('for2') + ], + 'for/l': [ + (r'-?\d+', Number.Integer), + include('for2') + ], + 'if': [ + (r'((?:cmdextversion|errorlevel)%s)(%s)(\d+)' % + (_token_terminator, _space), + bygroups(Keyword, using(this, state='text'), + Number.Integer), '#pop'), + (r'(defined%s)(%s)(%s)' % (_token_terminator, _space, _stoken), + bygroups(Keyword, using(this, state='text'), + using(this, state='variable')), '#pop'), + (r'(exist%s)(%s%s)' % (_token_terminator, _space, _stoken), + bygroups(Keyword, using(this, state='text')), '#pop'), + (r'(%s%s)(%s)(%s%s)' % (_number, _space, _opword, _space, _number), + bygroups(using(this, state='arithmetic'), Operator.Word, + using(this, state='arithmetic')), '#pop'), + (_stoken, using(this, state='text'), ('#pop', 'if2')), + ], + 'if2': [ + (r'(%s?)(==)(%s?%s)' % (_space, _space, _stoken), + bygroups(using(this, state='text'), Operator, + using(this, state='text')), '#pop'), + (r'(%s)(%s)(%s%s)' % (_space, _opword, _space, _stoken), + bygroups(using(this, state='text'), Operator.Word, + using(this, state='text')), '#pop') + ], + '(?': [ + (_space, using(this, state='text')), + (r'\(', Punctuation, ('#pop', 'else?', 'root/compound')), + default('#pop') + ], + 'else?': [ + (_space, using(this, state='text')), + (r'else%s' % _token_terminator, Keyword, '#pop'), + default('#pop') + ] + } + + +class MSDOSSessionLexer(ShellSessionBaseLexer): + """ + Lexer for MS DOS shell sessions, i.e. command lines, including a + prompt, interspersed with output. + + .. versionadded:: 2.1 + """ + + name = 'MSDOS Session' + aliases = ['doscon'] + filenames = [] + mimetypes = [] + + _innerLexerCls = BatchLexer + _ps1rgx = re.compile(r'^([^>]*>)(.*\n?)') + _ps2 = 'More? ' + + +class TcshLexer(RegexLexer): + """ + Lexer for tcsh scripts. + + .. versionadded:: 0.10 + """ + + name = 'Tcsh' + aliases = ['tcsh', 'csh'] + filenames = ['*.tcsh', '*.csh'] + mimetypes = ['application/x-csh'] + + tokens = { + 'root': [ + include('basic'), + (r'\$\(', Keyword, 'paren'), + (r'\$\{#?', Keyword, 'curly'), + (r'`', String.Backtick, 'backticks'), + include('data'), + ], + 'basic': [ + (r'\b(if|endif|else|while|then|foreach|case|default|' + r'break|continue|goto|breaksw|end|switch|endsw)\s*\b', + Keyword), + (r'\b(alias|alloc|bg|bindkey|builtins|bye|caller|cd|chdir|' + r'complete|dirs|echo|echotc|eval|exec|exit|fg|filetest|getxvers|' + r'glob|getspath|hashstat|history|hup|inlib|jobs|kill|' + r'limit|log|login|logout|ls-F|migrate|newgrp|nice|nohup|notify|' + r'onintr|popd|printenv|pushd|rehash|repeat|rootnode|popd|pushd|' + r'set|shift|sched|setenv|setpath|settc|setty|setxvers|shift|' + r'source|stop|suspend|source|suspend|telltc|time|' + r'umask|unalias|uncomplete|unhash|universe|unlimit|unset|unsetenv|' + r'ver|wait|warp|watchlog|where|which)\s*\b', + Name.Builtin), + (r'#.*', Comment), + (r'\\[\w\W]', String.Escape), + (r'(\b\w+)(\s*)(=)', bygroups(Name.Variable, Text, Operator)), + (r'[\[\]{}()=]+', Operator), + (r'<<\s*(\'?)\\?(\w+)[\w\W]+?\2', String), + (r';', Punctuation), + ], + 'data': [ + (r'(?s)"(\\\\|\\[0-7]+|\\.|[^"\\])*"', String.Double), + (r"(?s)'(\\\\|\\[0-7]+|\\.|[^'\\])*'", String.Single), + (r'\s+', Text), + (r'[^=\s\[\]{}()$"\'`\\;#]+', Text), + (r'\d+(?= |\Z)', Number), + (r'\$#?(\w+|.)', Name.Variable), + ], + 'curly': [ + (r'\}', Keyword, '#pop'), + (r':-', Keyword), + (r'\w+', Name.Variable), + (r'[^}:"\'`$]+', Punctuation), + (r':', Punctuation), + include('root'), + ], + 'paren': [ + (r'\)', Keyword, '#pop'), + include('root'), + ], + 'backticks': [ + (r'`', String.Backtick, '#pop'), + include('root'), + ], + } + + +class TcshSessionLexer(ShellSessionBaseLexer): + """ + Lexer for Tcsh sessions, i.e. command lines, including a + prompt, interspersed with output. + + .. versionadded:: 2.1 + """ + + name = 'Tcsh Session' + aliases = ['tcshcon'] + filenames = [] + mimetypes = [] + + _innerLexerCls = TcshLexer + _ps1rgx = re.compile(r'^([^>]+>)(.*\n?)') + _ps2 = '? ' + + +class PowerShellLexer(RegexLexer): + """ + For Windows PowerShell code. + + .. versionadded:: 1.5 + """ + name = 'PowerShell' + aliases = ['powershell', 'pwsh', 'posh', 'ps1', 'psm1'] + filenames = ['*.ps1', '*.psm1'] + mimetypes = ['text/x-powershell'] + + flags = re.DOTALL | re.IGNORECASE | re.MULTILINE + + keywords = ( + 'while validateset validaterange validatepattern validatelength ' + 'validatecount until trap switch return ref process param parameter in ' + 'if global: local: function foreach for finally filter end elseif else ' + 'dynamicparam do default continue cmdletbinding break begin alias \\? ' + '% #script #private #local #global mandatory parametersetname position ' + 'valuefrompipeline valuefrompipelinebypropertyname ' + 'valuefromremainingarguments helpmessage try catch throw').split() + + operators = ( + 'and as band bnot bor bxor casesensitive ccontains ceq cge cgt cle ' + 'clike clt cmatch cne cnotcontains cnotlike cnotmatch contains ' + 'creplace eq exact f file ge gt icontains ieq ige igt ile ilike ilt ' + 'imatch ine inotcontains inotlike inotmatch ireplace is isnot le like ' + 'lt match ne not notcontains notlike notmatch or regex replace ' + 'wildcard').split() + + verbs = ( + 'write where watch wait use update unregister unpublish unprotect ' + 'unlock uninstall undo unblock trace test tee take sync switch ' + 'suspend submit stop step start split sort skip show set send select ' + 'search scroll save revoke resume restore restart resolve resize ' + 'reset request repair rename remove register redo receive read push ' + 'publish protect pop ping out optimize open new move mount merge ' + 'measure lock limit join invoke install initialize import hide group ' + 'grant get format foreach find export expand exit enter enable edit ' + 'dismount disconnect disable deny debug cxnew copy convertto ' + 'convertfrom convert connect confirm compress complete compare close ' + 'clear checkpoint block backup assert approve aggregate add').split() + + aliases_ = ( + 'ac asnp cat cd cfs chdir clc clear clhy cli clp cls clv cnsn ' + 'compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo epal ' + 'epcsv epsn erase etsn exsn fc fhx fl foreach ft fw gal gbp gc gci gcm ' + 'gcs gdr ghy gi gjb gl gm gmo gp gps gpv group gsn gsnp gsv gu gv gwmi ' + 'h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ' + 'ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv ' + 'oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo ' + 'rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc select ' + 'set shcm si sl sleep sls sort sp spjb spps spsv start sujb sv swmi tee ' + 'trcm type wget where wjb write').split() + + commenthelp = ( + 'component description example externalhelp forwardhelpcategory ' + 'forwardhelptargetname functionality inputs link ' + 'notes outputs parameter remotehelprunspace role synopsis').split() + + tokens = { + 'root': [ + # we need to count pairs of parentheses for correct highlight + # of '$(...)' blocks in strings + (r'\(', Punctuation, 'child'), + (r'\s+', Text), + (r'^(\s*#[#\s]*)(\.(?:%s))([^\n]*$)' % '|'.join(commenthelp), + bygroups(Comment, String.Doc, Comment)), + (r'#[^\n]*?$', Comment), + (r'(<|<)#', Comment.Multiline, 'multline'), + (r'@"\n', String.Heredoc, 'heredoc-double'), + (r"@'\n.*?\n'@", String.Heredoc), + # escaped syntax + (r'`[\'"$@-]', Punctuation), + (r'"', String.Double, 'string'), + (r"'([^']|'')*'", String.Single), + (r'(\$|@@|@)((global|script|private|env):)?\w+', + Name.Variable), + (r'(%s)\b' % '|'.join(keywords), Keyword), + (r'-(%s)\b' % '|'.join(operators), Operator), + (r'(%s)-[a-z_]\w*\b' % '|'.join(verbs), Name.Builtin), + (r'(%s)\s' % '|'.join(aliases_), Name.Builtin), + (r'\[[a-z_\[][\w. `,\[\]]*\]', Name.Constant), # .net [type]s + (r'-[a-z_]\w*', Name), + (r'\w+', Name), + (r'[.,;:@{}\[\]$()=+*/\\&%!~?^`|<>-]', Punctuation), + ], + 'child': [ + (r'\)', Punctuation, '#pop'), + include('root'), + ], + 'multline': [ + (r'[^#&.]+', Comment.Multiline), + (r'#(>|>)', Comment.Multiline, '#pop'), + (r'\.(%s)' % '|'.join(commenthelp), String.Doc), + (r'[#&.]', Comment.Multiline), + ], + 'string': [ + (r"`[0abfnrtv'\"$`]", String.Escape), + (r'[^$`"]+', String.Double), + (r'\$\(', Punctuation, 'child'), + (r'""', String.Double), + (r'[`$]', String.Double), + (r'"', String.Double, '#pop'), + ], + 'heredoc-double': [ + (r'\n"@', String.Heredoc, '#pop'), + (r'\$\(', Punctuation, 'child'), + (r'[^@\n]+"]', String.Heredoc), + (r".", String.Heredoc), + ] + } + + +class PowerShellSessionLexer(ShellSessionBaseLexer): + """ + Lexer for PowerShell sessions, i.e. command lines, including a + prompt, interspersed with output. + + .. versionadded:: 2.1 + """ + + name = 'PowerShell Session' + aliases = ['pwsh-session', 'ps1con'] + filenames = [] + mimetypes = [] + + _innerLexerCls = PowerShellLexer + _bare_continuation = True + _ps1rgx = re.compile(r'^((?:\[[^]]+\]: )?PS[^>]*> ?)(.*\n?)') + _ps2 = '> ' + + +class FishShellLexer(RegexLexer): + """ + Lexer for Fish shell scripts. + + .. versionadded:: 2.1 + """ + + name = 'Fish' + aliases = ['fish', 'fishshell'] + filenames = ['*.fish', '*.load'] + mimetypes = ['application/x-fish'] + + tokens = { + 'root': [ + include('basic'), + include('data'), + include('interp'), + ], + 'interp': [ + (r'\$\(\(', Keyword, 'math'), + (r'\(', Keyword, 'paren'), + (r'\$#?(\w+|.)', Name.Variable), + ], + 'basic': [ + (r'\b(begin|end|if|else|while|break|for|in|return|function|block|' + r'case|continue|switch|not|and|or|set|echo|exit|pwd|true|false|' + r'cd|count|test)(\s*)\b', + bygroups(Keyword, Text)), + (r'\b(alias|bg|bind|breakpoint|builtin|command|commandline|' + r'complete|contains|dirh|dirs|emit|eval|exec|fg|fish|fish_config|' + r'fish_indent|fish_pager|fish_prompt|fish_right_prompt|' + r'fish_update_completions|fishd|funced|funcsave|functions|help|' + r'history|isatty|jobs|math|mimedb|nextd|open|popd|prevd|psub|' + r'pushd|random|read|set_color|source|status|trap|type|ulimit|' + r'umask|vared|fc|getopts|hash|kill|printf|time|wait)\s*\b(?!\.)', + Name.Builtin), + (r'#.*\n', Comment), + (r'\\[\w\W]', String.Escape), + (r'(\b\w+)(\s*)(=)', bygroups(Name.Variable, Whitespace, Operator)), + (r'[\[\]()=]', Operator), + (r'<<-?\s*(\'?)\\?(\w+)[\w\W]+?\2', String), + ], + 'data': [ + (r'(?s)\$?"(\\\\|\\[0-7]+|\\.|[^"\\$])*"', String.Double), + (r'"', String.Double, 'string'), + (r"(?s)\$'(\\\\|\\[0-7]+|\\.|[^'\\])*'", String.Single), + (r"(?s)'.*?'", String.Single), + (r';', Punctuation), + (r'&|\||\^|<|>', Operator), + (r'\s+', Text), + (r'\d+(?= |\Z)', Number), + (r'[^=\s\[\]{}()$"\'`\\<&|;]+', Text), + ], + 'string': [ + (r'"', String.Double, '#pop'), + (r'(?s)(\\\\|\\[0-7]+|\\.|[^"\\$])+', String.Double), + include('interp'), + ], + 'paren': [ + (r'\)', Keyword, '#pop'), + include('root'), + ], + 'math': [ + (r'\)\)', Keyword, '#pop'), + (r'[-+*/%^|&]|\*\*|\|\|', Operator), + (r'\d+#\d+', Number), + (r'\d+#(?! )', Number), + (r'\d+', Number), + include('root'), + ], + } + +class ExeclineLexer(RegexLexer): + """ + Lexer for Laurent Bercot's execline language + (https://skarnet.org/software/execline). + + .. versionadded:: 2.7 + """ + + name = 'execline' + aliases = ['execline'] + filenames = ['*.exec'] + + tokens = { + 'root': [ + include('basic'), + include('data'), + include('interp') + ], + 'interp': [ + (r'\$\{', String.Interpol, 'curly'), + (r'\$[\w@#]+', Name.Variable), # user variable + (r'\$', Text), + ], + 'basic': [ + (r'\b(background|backtick|cd|define|dollarat|elgetopt|' + r'elgetpositionals|elglob|emptyenv|envfile|exec|execlineb|' + r'exit|export|fdblock|fdclose|fdmove|fdreserve|fdswap|' + r'forbacktickx|foreground|forstdin|forx|getcwd|getpid|heredoc|' + r'homeof|if|ifelse|ifte|ifthenelse|importas|loopwhilex|' + r'multidefine|multisubstitute|pipeline|piperw|posix-cd|' + r'redirfd|runblock|shift|trap|tryexec|umask|unexport|wait|' + r'withstdinas)\b', Name.Builtin), + (r'\A#!.+\n', Comment.Hashbang), + (r'#.*\n', Comment.Single), + (r'[{}]', Operator) + ], + 'data': [ + (r'(?s)"(\\.|[^"\\$])*"', String.Double), + (r'"', String.Double, 'string'), + (r'\s+', Text), + (r'[^\s{}$"\\]+', Text) + ], + 'string': [ + (r'"', String.Double, '#pop'), + (r'(?s)(\\\\|\\.|[^"\\$])+', String.Double), + include('interp'), + ], + 'curly': [ + (r'\}', String.Interpol, '#pop'), + (r'[\w#@]+', Name.Variable), + include('root') + ] + + } + + def analyse_text(text): + if shebang_matches(text, r'execlineb'): + return 1 diff --git a/shared/package-files/a0/a02dc857ce858a6986e2f8a1e3f4f5f03b3ce2580af052713d9d58b063a43a2b/api.py b/shared/package-files/a0/a02dc857ce858a6986e2f8a1e3f4f5f03b3ce2580af052713d9d58b063a43a2b/api.py new file mode 100644 index 0000000000000000000000000000000000000000..a2b31b197e49ab692a2828fbc045be5a2321de0d --- /dev/null +++ b/shared/package-files/a0/a02dc857ce858a6986e2f8a1e3f4f5f03b3ce2580af052713d9d58b063a43a2b/api.py @@ -0,0 +1,52 @@ +# (c) Continuum Analytics, Inc. / http://continuum.io +# All Rights Reserved +# +# conda is distributed under the terms of the BSD 3-clause license. +# Consult LICENSE or http://opensource.org/licenses/BSD-3-Clause + + +def update_index( + dir_paths, + output_dir=None, + check_md5=False, + channel_name=None, + subdir=None, + threads=None, + patch_generator=None, + verbose=False, + progress=False, + current_index_versions=None, + write_run_exports=False, +): + import os + + from conda_index.index import update_index + from conda_index.utils import ensure_list + + from . import yaml + + # we basically expect there to be one path now + dir_paths = [os.path.abspath(path) for path in ensure_list(dir_paths)] + + assert ( + output_dir is None or len(dir_paths) == 1 + ), "Cannot combine output_dir with multiple paths" + + if isinstance(current_index_versions, str): + with open(current_index_versions) as f: + current_index_versions = yaml.safe_load(f) + + for path in dir_paths: + update_index( + path, + output_dir=output_dir, + check_md5=check_md5, + channel_name=channel_name, + patch_generator=patch_generator, + threads=threads, + verbose=verbose, + progress=progress, + subdirs=ensure_list(subdir), + current_index_versions=current_index_versions, + write_run_exports=write_run_exports, + ) diff --git a/shared/package-files/a0/a02f18dbd45435da924749d6984677242d0979a45709b3f7c04e394daba2887e/inlining_usecases.py b/shared/package-files/a0/a02f18dbd45435da924749d6984677242d0979a45709b3f7c04e394daba2887e/inlining_usecases.py new file mode 100644 index 0000000000000000000000000000000000000000..663b7d3c4798a2add0689a3d52a3c82e034c81e4 --- /dev/null +++ b/shared/package-files/a0/a02f18dbd45435da924749d6984677242d0979a45709b3f7c04e394daba2887e/inlining_usecases.py @@ -0,0 +1,69 @@ +""" Test cases for inlining IR from another module """ +from numba import jit, njit +from numba.core import types +from numba.core.extending import overload + +_GLOBAL1 = 100 + + +@njit(inline='always') +def bar(): + return _GLOBAL1 + 10 + + +def baz_factory(a): + b = 17 + a + + @njit(inline='always') + def baz(): + return _GLOBAL1 + a - b + return baz + + +def baz(): + return _GLOBAL1 + 10 + + +@overload(baz, inline='always') +def baz_ol(): + def impl(): + return _GLOBAL1 + 10 + return impl + + +def bop_factory(a): + b = 17 + a + + def bop(): + return _GLOBAL1 + a - b + + @overload(bop, inline='always') + def baz(): + def impl(): + return _GLOBAL1 + a - b + return impl + + return bop + + +@jit((types.int32,), nopython=True) +def inner(a): + return a + 1 + + +@jit((types.int32,), nopython=True) +def more(a): + return inner(inner(a)) + + +def outer_simple(a): + return inner(a) * 2 + + +def outer_multiple(a): + return inner(a) * more(a) + + +@njit +def __dummy__(): + return diff --git a/shared/package-files/a0/a0386b641f11f83eb0bde7bbb51e189320614eaf773347c58b74effa5a4dfc38/_typing.py b/shared/package-files/a0/a0386b641f11f83eb0bde7bbb51e189320614eaf773347c58b74effa5a4dfc38/_typing.py new file mode 100644 index 0000000000000000000000000000000000000000..f3d9aab67e52f3300cd96c3d0e701d1604eaccbb --- /dev/null +++ b/shared/package-files/a0/a0386b641f11f83eb0bde7bbb51e189320614eaf773347c58b74effa5a4dfc38/_typing.py @@ -0,0 +1,46 @@ +from __future__ import annotations + +__all__ = [ + "ndarray", + "Device", + "Dtype", +] + +import sys +from typing import ( + Union, + TYPE_CHECKING, +) + +from cupy import ( + ndarray, + dtype, + int8, + int16, + int32, + int64, + uint8, + uint16, + uint32, + uint64, + float32, + float64, +) + +from cupy.cuda.device import Device + +if TYPE_CHECKING or sys.version_info >= (3, 9): + Dtype = dtype[Union[ + int8, + int16, + int32, + int64, + uint8, + uint16, + uint32, + uint64, + float32, + float64, + ]] +else: + Dtype = dtype diff --git a/shared/package-files/a0/a03aa3b9a8076e94155f735ad088209bdf869eafdf3cde4397ffdf1541c85d29/macrodata_jmulti_ncs_granger_causality_realgdp_realinv.txt b/shared/package-files/a0/a03aa3b9a8076e94155f735ad088209bdf869eafdf3cde4397ffdf1541c85d29/macrodata_jmulti_ncs_granger_causality_realgdp_realinv.txt new file mode 100644 index 0000000000000000000000000000000000000000..e7d7226125dafdb9370a9b9004c7fd85506ae8ba --- /dev/null +++ b/shared/package-files/a0/a03aa3b9a8076e94155f735ad088209bdf869eafdf3cde4397ffdf1541c85d29/macrodata_jmulti_ncs_granger_causality_realgdp_realinv.txt @@ -0,0 +1,13 @@ +*** Sat, 3 Sep 2016 22:20:25 *** +TEST FOR GRANGER-CAUSALITY: +H0: "realgdp, realinv" do not Granger-cause "realcons" + +Test statistic l = 3.7293 +pval-F( l; 8, 552) = 0.0003 + +TEST FOR INSTANTANEOUS CAUSALITY: +H0: No instantaneous causality between "realgdp, realinv" and "realcons" + +Test statistic: c = 71.7504 +pval-Chi( c; 2) = 0.0000 + diff --git a/shared/package-files/a0/a03e8f704ba0b8fc3b1badf02befdd01c154ee8d95c4476af22676db891419fb/quantized_rnn_relu_cell_native.h b/shared/package-files/a0/a03e8f704ba0b8fc3b1badf02befdd01c154ee8d95c4476af22676db891419fb/quantized_rnn_relu_cell_native.h new file mode 100644 index 0000000000000000000000000000000000000000..37c0e2272be6abd25ff16aa432fbdbcf9eb052f0 --- /dev/null +++ b/shared/package-files/a0/a03e8f704ba0b8fc3b1badf02befdd01c154ee8d95c4476af22676db891419fb/quantized_rnn_relu_cell_native.h @@ -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 quantized_rnn_relu_cell(const at::Tensor & input, const at::Tensor & hx, const at::Tensor & w_ih, const at::Tensor & w_hh, const at::Tensor & b_ih, const at::Tensor & b_hh, const at::Tensor & packed_ih, const at::Tensor & packed_hh, const at::Tensor & col_offsets_ih, const at::Tensor & col_offsets_hh, const at::Scalar & scale_ih, const at::Scalar & scale_hh, const at::Scalar & zero_point_ih, const at::Scalar & zero_point_hh); +} // namespace native +} // namespace at diff --git a/shared/package-files/a0/a042202b9dda7f3d52631601fc3d2347df12b37839f35c9bf139cba693da61c6/Ceuta b/shared/package-files/a0/a042202b9dda7f3d52631601fc3d2347df12b37839f35c9bf139cba693da61c6/Ceuta new file mode 100644 index 0000000000000000000000000000000000000000..a461dceaa2adccd6cb3196b6eccf5395130881ff Binary files /dev/null and b/shared/package-files/a0/a042202b9dda7f3d52631601fc3d2347df12b37839f35c9bf139cba693da61c6/Ceuta differ diff --git a/shared/package-files/a0/a04594e9641cc844462f78aab181649ef76b35bd1b7ad08f1548f99353d3cc71/v5410 b/shared/package-files/a0/a04594e9641cc844462f78aab181649ef76b35bd1b7ad08f1548f99353d3cc71/v5410 new file mode 100644 index 0000000000000000000000000000000000000000..996e2eb35c700d6c60ffd991908297948bd110c8 Binary files /dev/null and b/shared/package-files/a0/a04594e9641cc844462f78aab181649ef76b35bd1b7ad08f1548f99353d3cc71/v5410 differ diff --git a/shared/package-files/a0/a0491d33224b92d65a502d317c6e2f92b232be1de1404a789dd5bd624ee5f15d/select_ops.h b/shared/package-files/a0/a0491d33224b92d65a502d317c6e2f92b232be1de1404a789dd5bd624ee5f15d/select_ops.h new file mode 100644 index 0000000000000000000000000000000000000000..b0b86a0b83348bbe186cdbad1017e8364ce32c24 --- /dev/null +++ b/shared/package-files/a0/a0491d33224b92d65a502d317c6e2f92b232be1de1404a789dd5bd624ee5f15d/select_ops.h @@ -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 select_Dimname { + using schema = at::Tensor (const at::Tensor &, at::Dimname, int64_t); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::select") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "Dimname") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "select.Dimname(Tensor(a) self, Dimname dim, int index) -> Tensor(a)") + static at::Tensor call(const at::Tensor & self, at::Dimname dim, int64_t index); + static at::Tensor redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim, int64_t index); +}; + +struct TORCH_API select_int { + using schema = at::Tensor (const at::Tensor &, int64_t, c10::SymInt); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::select") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "int") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "select.int(Tensor(a) self, int dim, SymInt index) -> Tensor(a)") + static at::Tensor call(const at::Tensor & self, int64_t dim, c10::SymInt index); + static at::Tensor redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, c10::SymInt index); +}; + +}} // namespace at::_ops diff --git a/shared/package-files/a0/a049abd8af0b8d5885fb0db27f92ac5e789b8ebf5ec4259b109c72732d96df93/RECORD b/shared/package-files/a0/a049abd8af0b8d5885fb0db27f92ac5e789b8ebf5ec4259b109c72732d96df93/RECORD new file mode 100644 index 0000000000000000000000000000000000000000..acfaa3f045a64382baf0695735b1ab2ac0b62c78 --- /dev/null +++ b/shared/package-files/a0/a049abd8af0b8d5885fb0db27f92ac5e789b8ebf5ec4259b109c72732d96df93/RECORD @@ -0,0 +1,14 @@ +matplotlib_inline-0.1.6.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4 +matplotlib_inline-0.1.6.dist-info/LICENSE,sha256=hSGwNsZEjg4KpyE9RxO2_e4PTGTJ8yBFD3c0a_XA6OQ,1538 +matplotlib_inline-0.1.6.dist-info/METADATA,sha256=iP6YScmis6YNZibrwn3fvVNtKp0k6ZHpMCbpfEvdGKk,2841 +matplotlib_inline-0.1.6.dist-info/RECORD,, +matplotlib_inline-0.1.6.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +matplotlib_inline-0.1.6.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92 +matplotlib_inline-0.1.6.dist-info/direct_url.json,sha256=FunYnRXw7E47hUipg80dsdi_L9QMjK0P3It-4LYSidY,91 +matplotlib_inline-0.1.6.dist-info/top_level.txt,sha256=0ViJqRtJZLIS7IfjHrUgYI6RIvWY0cfk1OjAlp40Zsw,18 +matplotlib_inline/__init__.py,sha256=ibK75tAMh_hr1mTuKaz62oBiVg1azrOT_nclTO5R73k,75 +matplotlib_inline/__pycache__/__init__.cpython-310.pyc,, +matplotlib_inline/__pycache__/backend_inline.cpython-310.pyc,, +matplotlib_inline/__pycache__/config.cpython-310.pyc,, +matplotlib_inline/backend_inline.py,sha256=a4w8cmBHOSUwMJHvLJUOs6pSUlOHEsx0N8HGEAfxsxU,11311 +matplotlib_inline/config.py,sha256=Z87OCv-LStYhOwQ2LmHDNxwkAn9BLFKTbHI7XSAT1Jc,3911 diff --git a/shared/package-files/a0/a04c2c72f4f76a83178d036dd97d157ee1f32e478e44dda7a5c10923687ee6cf/ROC b/shared/package-files/a0/a04c2c72f4f76a83178d036dd97d157ee1f32e478e44dda7a5c10923687ee6cf/ROC new file mode 100644 index 0000000000000000000000000000000000000000..35d89d036d07c3f28dec64092ab1b533c21ae2bc Binary files /dev/null and b/shared/package-files/a0/a04c2c72f4f76a83178d036dd97d157ee1f32e478e44dda7a5c10923687ee6cf/ROC differ diff --git a/shared/package-files/a0/a04c2c72f4f76a83178d036dd97d157ee1f32e478e44dda7a5c10923687ee6cf/Taipei b/shared/package-files/a0/a04c2c72f4f76a83178d036dd97d157ee1f32e478e44dda7a5c10923687ee6cf/Taipei new file mode 100644 index 0000000000000000000000000000000000000000..35d89d036d07c3f28dec64092ab1b533c21ae2bc Binary files /dev/null and b/shared/package-files/a0/a04c2c72f4f76a83178d036dd97d157ee1f32e478e44dda7a5c10923687ee6cf/Taipei differ diff --git a/shared/package-files/a0/a04e0c3ca34f6da97224bcec6a4a0ae7e9a2398148784bd6cc6eabd73f07f535/_triton_scaled_dot_attention.h b/shared/package-files/a0/a04e0c3ca34f6da97224bcec6a4a0ae7e9a2398148784bd6cc6eabd73f07f535/_triton_scaled_dot_attention.h new file mode 100644 index 0000000000000000000000000000000000000000..82479771bfda0ba9f6951d4f7a4f2741ad28398b --- /dev/null +++ b/shared/package-files/a0/a04e0c3ca34f6da97224bcec6a4a0ae7e9a2398148784bd6cc6eabd73f07f535/_triton_scaled_dot_attention.h @@ -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::_triton_scaled_dot_attention(Tensor q, Tensor k, Tensor v, float dropout_p=0.0) -> Tensor +inline at::Tensor _triton_scaled_dot_attention(const at::Tensor & q, const at::Tensor & k, const at::Tensor & v, double dropout_p=0.0) { + return at::_ops::_triton_scaled_dot_attention::call(q, k, v, dropout_p); +} + +// aten::_triton_scaled_dot_attention.out(Tensor q, Tensor k, Tensor v, float dropout_p=0.0, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & _triton_scaled_dot_attention_out(at::Tensor & out, const at::Tensor & q, const at::Tensor & k, const at::Tensor & v, double dropout_p=0.0) { + return at::_ops::_triton_scaled_dot_attention_out::call(q, k, v, dropout_p, out); +} +// aten::_triton_scaled_dot_attention.out(Tensor q, Tensor k, Tensor v, float dropout_p=0.0, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & _triton_scaled_dot_attention_outf(const at::Tensor & q, const at::Tensor & k, const at::Tensor & v, double dropout_p, at::Tensor & out) { + return at::_ops::_triton_scaled_dot_attention_out::call(q, k, v, dropout_p, out); +} + +} diff --git a/shared/package-files/a0/a05ae148c9ccc1b4ea1e72d049df1c942c94cd624bfe318518ac6e3857ac5bc8/graph6.py b/shared/package-files/a0/a05ae148c9ccc1b4ea1e72d049df1c942c94cd624bfe318518ac6e3857ac5bc8/graph6.py new file mode 100644 index 0000000000000000000000000000000000000000..ef5345bccb84a7ff68286302263f63437969fb21 --- /dev/null +++ b/shared/package-files/a0/a05ae148c9ccc1b4ea1e72d049df1c942c94cd624bfe318518ac6e3857ac5bc8/graph6.py @@ -0,0 +1,414 @@ +# Original author: D. Eppstein, UC Irvine, August 12, 2003. +# The original code at http://www.ics.uci.edu/~eppstein/PADS/ is public domain. +"""Functions for reading and writing graphs in the *graph6* format. + +The *graph6* file format is suitable for small graphs or large dense +graphs. For large sparse graphs, use the *sparse6* format. + +For more information, see the `graph6`_ homepage. + +.. _graph6: http://users.cecs.anu.edu.au/~bdm/data/formats.html + +""" +from itertools import islice + +import networkx as nx +from networkx.exception import NetworkXError +from networkx.utils import not_implemented_for, open_file + +__all__ = ["from_graph6_bytes", "read_graph6", "to_graph6_bytes", "write_graph6"] + + +def _generate_graph6_bytes(G, nodes, header): + """Yield bytes in the graph6 encoding of a graph. + + `G` is an undirected simple graph. `nodes` is the list of nodes for + which the node-induced subgraph will be encoded; if `nodes` is the + list of all nodes in the graph, the entire graph will be + encoded. `header` is a Boolean that specifies whether to generate + the header ``b'>>graph6<<'`` before the remaining data. + + This function generates `bytes` objects in the following order: + + 1. the header (if requested), + 2. the encoding of the number of nodes, + 3. each character, one-at-a-time, in the encoding of the requested + node-induced subgraph, + 4. a newline character. + + This function raises :exc:`ValueError` if the graph is too large for + the graph6 format (that is, greater than ``2 ** 36`` nodes). + + """ + n = len(G) + if n >= 2**36: + raise ValueError( + "graph6 is only defined if number of nodes is less " "than 2 ** 36" + ) + if header: + yield b">>graph6<<" + for d in n_to_data(n): + yield str.encode(chr(d + 63)) + # This generates the same as `(v in G[u] for u, v in combinations(G, 2))`, + # but in "column-major" order instead of "row-major" order. + bits = (nodes[j] in G[nodes[i]] for j in range(1, n) for i in range(j)) + chunk = list(islice(bits, 6)) + while chunk: + d = sum(b << 5 - i for i, b in enumerate(chunk)) + yield str.encode(chr(d + 63)) + chunk = list(islice(bits, 6)) + yield b"\n" + + +def from_graph6_bytes(bytes_in): + """Read a simple undirected graph in graph6 format from bytes. + + Parameters + ---------- + bytes_in : bytes + Data in graph6 format, without a trailing newline. + + Returns + ------- + G : Graph + + Raises + ------ + NetworkXError + If bytes_in is unable to be parsed in graph6 format + + ValueError + If any character ``c`` in bytes_in does not satisfy + ``63 <= ord(c) < 127``. + + Examples + -------- + >>> G = nx.from_graph6_bytes(b"A_") + >>> sorted(G.edges()) + [(0, 1)] + + See Also + -------- + read_graph6, write_graph6 + + References + ---------- + .. [1] Graph6 specification + + + """ + + def bits(): + """Returns sequence of individual bits from 6-bit-per-value + list of data values.""" + for d in data: + for i in [5, 4, 3, 2, 1, 0]: + yield (d >> i) & 1 + + if bytes_in.startswith(b">>graph6<<"): + bytes_in = bytes_in[10:] + + data = [c - 63 for c in bytes_in] + if any(c > 63 for c in data): + raise ValueError("each input character must be in range(63, 127)") + + n, data = data_to_n(data) + nd = (n * (n - 1) // 2 + 5) // 6 + if len(data) != nd: + raise NetworkXError( + f"Expected {n * (n - 1) // 2} bits but got {len(data) * 6} in graph6" + ) + + G = nx.Graph() + G.add_nodes_from(range(n)) + for (i, j), b in zip(((i, j) for j in range(1, n) for i in range(j)), bits()): + if b: + G.add_edge(i, j) + + return G + + +@not_implemented_for("directed") +@not_implemented_for("multigraph") +def to_graph6_bytes(G, nodes=None, header=True): + """Convert a simple undirected graph to bytes in graph6 format. + + Parameters + ---------- + G : Graph (undirected) + + nodes: list or iterable + Nodes are labeled 0...n-1 in the order provided. If None the ordering + given by ``G.nodes()`` is used. + + header: bool + If True add '>>graph6<<' bytes to head of data. + + Raises + ------ + NetworkXNotImplemented + If the graph is directed or is a multigraph. + + ValueError + If the graph has at least ``2 ** 36`` nodes; the graph6 format + is only defined for graphs of order less than ``2 ** 36``. + + Examples + -------- + >>> nx.to_graph6_bytes(nx.path_graph(2)) + b'>>graph6< + + """ + if nodes is not None: + G = G.subgraph(nodes) + H = nx.convert_node_labels_to_integers(G) + nodes = sorted(H.nodes()) + return b"".join(_generate_graph6_bytes(H, nodes, header)) + + +@open_file(0, mode="rb") +def read_graph6(path): + """Read simple undirected graphs in graph6 format from path. + + Parameters + ---------- + path : file or string + File or filename to write. + + Returns + ------- + G : Graph or list of Graphs + If the file contains multiple lines then a list of graphs is returned + + Raises + ------ + NetworkXError + If the string is unable to be parsed in graph6 format + + Examples + -------- + You can read a graph6 file by giving the path to the file:: + + >>> import tempfile + >>> with tempfile.NamedTemporaryFile(delete=False) as f: + ... _ = f.write(b">>graph6<>> list(G.edges()) + [(0, 1)] + + You can also read a graph6 file by giving an open file-like object:: + + >>> import tempfile + >>> with tempfile.NamedTemporaryFile() as f: + ... _ = f.write(b">>graph6<>> list(G.edges()) + [(0, 1)] + + See Also + -------- + from_graph6_bytes, write_graph6 + + References + ---------- + .. [1] Graph6 specification + + + """ + glist = [] + for line in path: + line = line.strip() + if not len(line): + continue + glist.append(from_graph6_bytes(line)) + if len(glist) == 1: + return glist[0] + else: + return glist + + +@not_implemented_for("directed") +@not_implemented_for("multigraph") +@open_file(1, mode="wb") +def write_graph6(G, path, nodes=None, header=True): + """Write a simple undirected graph to a path in graph6 format. + + Parameters + ---------- + G : Graph (undirected) + + path : str + The path naming the file to which to write the graph. + + nodes: list or iterable + Nodes are labeled 0...n-1 in the order provided. If None the ordering + given by ``G.nodes()`` is used. + + header: bool + If True add '>>graph6<<' string to head of data + + Raises + ------ + NetworkXNotImplemented + If the graph is directed or is a multigraph. + + ValueError + If the graph has at least ``2 ** 36`` nodes; the graph6 format + is only defined for graphs of order less than ``2 ** 36``. + + Examples + -------- + You can write a graph6 file by giving the path to a file:: + + >>> import tempfile + >>> with tempfile.NamedTemporaryFile(delete=False) as f: + ... nx.write_graph6(nx.path_graph(2), f.name) + ... _ = f.seek(0) + ... print(f.read()) + b'>>graph6< + + """ + return write_graph6_file(G, path, nodes=nodes, header=header) + + +@not_implemented_for("directed") +@not_implemented_for("multigraph") +def write_graph6_file(G, f, nodes=None, header=True): + """Write a simple undirected graph to a file-like object in graph6 format. + + Parameters + ---------- + G : Graph (undirected) + + f : file-like object + The file to write. + + nodes: list or iterable + Nodes are labeled 0...n-1 in the order provided. If None the ordering + given by ``G.nodes()`` is used. + + header: bool + If True add '>>graph6<<' string to head of data + + Raises + ------ + NetworkXNotImplemented + If the graph is directed or is a multigraph. + + ValueError + If the graph has at least ``2 ** 36`` nodes; the graph6 format + is only defined for graphs of order less than ``2 ** 36``. + + Examples + -------- + You can write a graph6 file by giving an open file-like object:: + + >>> import tempfile + >>> with tempfile.NamedTemporaryFile() as f: + ... nx.write_graph6(nx.path_graph(2), f) + ... _ = f.seek(0) + ... print(f.read()) + b'>>graph6< + + """ + if nodes is not None: + G = G.subgraph(nodes) + H = nx.convert_node_labels_to_integers(G) + nodes = sorted(H.nodes()) + for b in _generate_graph6_bytes(H, nodes, header): + f.write(b) + + +def data_to_n(data): + """Read initial one-, four- or eight-unit value from graph6 + integer sequence. + + Return (value, rest of seq.)""" + if data[0] <= 62: + return data[0], data[1:] + if data[1] <= 62: + return (data[1] << 12) + (data[2] << 6) + data[3], data[4:] + return ( + (data[2] << 30) + + (data[3] << 24) + + (data[4] << 18) + + (data[5] << 12) + + (data[6] << 6) + + data[7], + data[8:], + ) + + +def n_to_data(n): + """Convert an integer to one-, four- or eight-unit graph6 sequence. + + This function is undefined if `n` is not in ``range(2 ** 36)``. + + """ + if n <= 62: + return [n] + elif n <= 258047: + return [63, (n >> 12) & 0x3F, (n >> 6) & 0x3F, n & 0x3F] + else: # if n <= 68719476735: + return [ + 63, + 63, + (n >> 30) & 0x3F, + (n >> 24) & 0x3F, + (n >> 18) & 0x3F, + (n >> 12) & 0x3F, + (n >> 6) & 0x3F, + n & 0x3F, + ] diff --git a/shared/package-files/a0/a061eb261f466fa93c0a0835887355a09b9a9a4207aa7cece44a14fd7758f613/test_join.py b/shared/package-files/a0/a061eb261f466fa93c0a0835887355a09b9a9a4207aa7cece44a14fd7758f613/test_join.py new file mode 100644 index 0000000000000000000000000000000000000000..735f6c50ab739dba04ebc49fec73cfa3147fc661 --- /dev/null +++ b/shared/package-files/a0/a061eb261f466fa93c0a0835887355a09b9a9a4207aa7cece44a14fd7758f613/test_join.py @@ -0,0 +1,576 @@ +from datetime import datetime + +import numpy as np +import pytest + +from pandas.errors import MergeError + +import pandas as pd +from pandas import ( + DataFrame, + Index, + MultiIndex, + date_range, + period_range, +) +import pandas._testing as tm +from pandas.core.reshape.concat import concat + + +@pytest.fixture +def frame_with_period_index(): + return DataFrame( + data=np.arange(20).reshape(4, 5), + columns=list("abcde"), + index=period_range(start="2000", freq="Y", periods=4), + ) + + +@pytest.fixture +def left(): + return DataFrame({"a": [20, 10, 0]}, index=[2, 1, 0]) + + +@pytest.fixture +def right(): + return DataFrame({"b": [300, 100, 200]}, index=[3, 1, 2]) + + +@pytest.fixture +def left_no_dup(): + return DataFrame( + {"a": ["a", "b", "c", "d"], "b": ["cat", "dog", "weasel", "horse"]}, + index=range(4), + ) + + +@pytest.fixture +def right_no_dup(): + return DataFrame( + { + "a": ["a", "b", "c", "d", "e"], + "c": ["meow", "bark", "um... weasel noise?", "nay", "chirp"], + }, + index=range(5), + ).set_index("a") + + +@pytest.fixture +def left_w_dups(left_no_dup): + return concat( + [left_no_dup, DataFrame({"a": ["a"], "b": ["cow"]}, index=[3])], sort=True + ) + + +@pytest.fixture +def right_w_dups(right_no_dup): + return concat( + [right_no_dup, DataFrame({"a": ["e"], "c": ["moo"]}, index=[3])] + ).set_index("a") + + +@pytest.mark.parametrize( + "how, sort, expected", + [ + ("inner", False, DataFrame({"a": [20, 10], "b": [200, 100]}, index=[2, 1])), + ("inner", True, DataFrame({"a": [10, 20], "b": [100, 200]}, index=[1, 2])), + ( + "left", + False, + DataFrame({"a": [20, 10, 0], "b": [200, 100, np.nan]}, index=[2, 1, 0]), + ), + ( + "left", + True, + DataFrame({"a": [0, 10, 20], "b": [np.nan, 100, 200]}, index=[0, 1, 2]), + ), + ( + "right", + False, + DataFrame({"a": [np.nan, 10, 20], "b": [300, 100, 200]}, index=[3, 1, 2]), + ), + ( + "right", + True, + DataFrame({"a": [10, 20, np.nan], "b": [100, 200, 300]}, index=[1, 2, 3]), + ), + ( + "outer", + False, + DataFrame( + {"a": [0, 10, 20, np.nan], "b": [np.nan, 100, 200, 300]}, + index=[0, 1, 2, 3], + ), + ), + ( + "outer", + True, + DataFrame( + {"a": [0, 10, 20, np.nan], "b": [np.nan, 100, 200, 300]}, + index=[0, 1, 2, 3], + ), + ), + ], +) +def test_join(left, right, how, sort, expected): + result = left.join(right, how=how, sort=sort, validate="1:1") + tm.assert_frame_equal(result, expected) + + +def test_suffix_on_list_join(): + first = DataFrame({"key": [1, 2, 3, 4, 5]}) + second = DataFrame({"key": [1, 8, 3, 2, 5], "v1": [1, 2, 3, 4, 5]}) + third = DataFrame({"keys": [5, 2, 3, 4, 1], "v2": [1, 2, 3, 4, 5]}) + + # check proper errors are raised + msg = "Suffixes not supported when joining multiple DataFrames" + with pytest.raises(ValueError, match=msg): + first.join([second], lsuffix="y") + with pytest.raises(ValueError, match=msg): + first.join([second, third], rsuffix="x") + with pytest.raises(ValueError, match=msg): + first.join([second, third], lsuffix="y", rsuffix="x") + with pytest.raises(ValueError, match="Indexes have overlapping values"): + first.join([second, third]) + + # no errors should be raised + arr_joined = first.join([third]) + norm_joined = first.join(third) + tm.assert_frame_equal(arr_joined, norm_joined) + + +def test_join_invalid_validate(left_no_dup, right_no_dup): + # GH 46622 + # Check invalid arguments + msg = ( + '"invalid" is not a valid argument. ' + "Valid arguments are:\n" + '- "1:1"\n' + '- "1:m"\n' + '- "m:1"\n' + '- "m:m"\n' + '- "one_to_one"\n' + '- "one_to_many"\n' + '- "many_to_one"\n' + '- "many_to_many"' + ) + with pytest.raises(ValueError, match=msg): + left_no_dup.merge(right_no_dup, on="a", validate="invalid") + + +@pytest.mark.parametrize("dtype", ["object", "string[pyarrow]"]) +def test_join_on_single_col_dup_on_right(left_no_dup, right_w_dups, dtype): + # GH 46622 + # Dups on right allowed by one_to_many constraint + if dtype == "string[pyarrow]": + pytest.importorskip("pyarrow") + left_no_dup = left_no_dup.astype(dtype) + right_w_dups.index = right_w_dups.index.astype(dtype) + left_no_dup.join( + right_w_dups, + on="a", + validate="one_to_many", + ) + + # Dups on right not allowed by one_to_one constraint + msg = "Merge keys are not unique in right dataset; not a one-to-one merge" + with pytest.raises(MergeError, match=msg): + left_no_dup.join( + right_w_dups, + on="a", + validate="one_to_one", + ) + + +def test_join_on_single_col_dup_on_left(left_w_dups, right_no_dup): + # GH 46622 + # Dups on left allowed by many_to_one constraint + left_w_dups.join( + right_no_dup, + on="a", + validate="many_to_one", + ) + + # Dups on left not allowed by one_to_one constraint + msg = "Merge keys are not unique in left dataset; not a one-to-one merge" + with pytest.raises(MergeError, match=msg): + left_w_dups.join( + right_no_dup, + on="a", + validate="one_to_one", + ) + + +def test_join_on_single_col_dup_on_both(left_w_dups, right_w_dups): + # GH 46622 + # Dups on both allowed by many_to_many constraint + left_w_dups.join(right_w_dups, on="a", validate="many_to_many") + + # Dups on both not allowed by many_to_one constraint + msg = "Merge keys are not unique in right dataset; not a many-to-one merge" + with pytest.raises(MergeError, match=msg): + left_w_dups.join( + right_w_dups, + on="a", + validate="many_to_one", + ) + + # Dups on both not allowed by one_to_many constraint + msg = "Merge keys are not unique in left dataset; not a one-to-many merge" + with pytest.raises(MergeError, match=msg): + left_w_dups.join( + right_w_dups, + on="a", + validate="one_to_many", + ) + + +def test_join_on_multi_col_check_dup(): + # GH 46622 + # Two column join, dups in both, but jointly no dups + left = DataFrame( + { + "a": ["a", "a", "b", "b"], + "b": [0, 1, 0, 1], + "c": ["cat", "dog", "weasel", "horse"], + }, + index=range(4), + ).set_index(["a", "b"]) + + right = DataFrame( + { + "a": ["a", "a", "b"], + "b": [0, 1, 0], + "d": ["meow", "bark", "um... weasel noise?"], + }, + index=range(3), + ).set_index(["a", "b"]) + + expected_multi = DataFrame( + { + "a": ["a", "a", "b"], + "b": [0, 1, 0], + "c": ["cat", "dog", "weasel"], + "d": ["meow", "bark", "um... weasel noise?"], + }, + index=range(3), + ).set_index(["a", "b"]) + + # Jointly no dups allowed by one_to_one constraint + result = left.join(right, how="inner", validate="1:1") + tm.assert_frame_equal(result, expected_multi) + + +def test_join_index(float_frame): + # left / right + + f = float_frame.loc[float_frame.index[:10], ["A", "B"]] + f2 = float_frame.loc[float_frame.index[5:], ["C", "D"]].iloc[::-1] + + joined = f.join(f2) + tm.assert_index_equal(f.index, joined.index) + expected_columns = Index(["A", "B", "C", "D"]) + tm.assert_index_equal(joined.columns, expected_columns) + + joined = f.join(f2, how="left") + tm.assert_index_equal(joined.index, f.index) + tm.assert_index_equal(joined.columns, expected_columns) + + joined = f.join(f2, how="right") + tm.assert_index_equal(joined.index, f2.index) + tm.assert_index_equal(joined.columns, expected_columns) + + # inner + + joined = f.join(f2, how="inner") + tm.assert_index_equal(joined.index, f.index[5:10]) + tm.assert_index_equal(joined.columns, expected_columns) + + # outer + + joined = f.join(f2, how="outer") + tm.assert_index_equal(joined.index, float_frame.index.sort_values()) + tm.assert_index_equal(joined.columns, expected_columns) + + with pytest.raises(ValueError, match="join method"): + f.join(f2, how="foo") + + # corner case - overlapping columns + msg = "columns overlap but no suffix" + for how in ("outer", "left", "inner"): + with pytest.raises(ValueError, match=msg): + float_frame.join(float_frame, how=how) + + +def test_join_index_more(float_frame): + af = float_frame.loc[:, ["A", "B"]] + bf = float_frame.loc[::2, ["C", "D"]] + + expected = af.copy() + expected["C"] = float_frame["C"][::2] + expected["D"] = float_frame["D"][::2] + + result = af.join(bf) + tm.assert_frame_equal(result, expected) + + result = af.join(bf, how="right") + tm.assert_frame_equal(result, expected[::2]) + + result = bf.join(af, how="right") + tm.assert_frame_equal(result, expected.loc[:, result.columns]) + + +def test_join_index_series(float_frame): + df = float_frame.copy() + ser = df.pop(float_frame.columns[-1]) + joined = df.join(ser) + + tm.assert_frame_equal(joined, float_frame) + + ser.name = None + with pytest.raises(ValueError, match="must have a name"): + df.join(ser) + + +def test_join_overlap(float_frame): + df1 = float_frame.loc[:, ["A", "B", "C"]] + df2 = float_frame.loc[:, ["B", "C", "D"]] + + joined = df1.join(df2, lsuffix="_df1", rsuffix="_df2") + df1_suf = df1.loc[:, ["B", "C"]].add_suffix("_df1") + df2_suf = df2.loc[:, ["B", "C"]].add_suffix("_df2") + + no_overlap = float_frame.loc[:, ["A", "D"]] + expected = df1_suf.join(df2_suf).join(no_overlap) + + # column order not necessarily sorted + tm.assert_frame_equal(joined, expected.loc[:, joined.columns]) + + +def test_join_period_index(frame_with_period_index): + other = frame_with_period_index.rename(columns=lambda key: f"{key}{key}") + + joined_values = np.concatenate([frame_with_period_index.values] * 2, axis=1) + + joined_cols = frame_with_period_index.columns.append(other.columns) + + joined = frame_with_period_index.join(other) + expected = DataFrame( + data=joined_values, columns=joined_cols, index=frame_with_period_index.index + ) + + tm.assert_frame_equal(joined, expected) + + +def test_join_left_sequence_non_unique_index(): + # https://github.com/pandas-dev/pandas/issues/19607 + df1 = DataFrame({"a": [0, 10, 20]}, index=[1, 2, 3]) + df2 = DataFrame({"b": [100, 200, 300]}, index=[4, 3, 2]) + df3 = DataFrame({"c": [400, 500, 600]}, index=[2, 2, 4]) + + joined = df1.join([df2, df3], how="left") + + expected = DataFrame( + { + "a": [0, 10, 10, 20], + "b": [np.nan, 300, 300, 200], + "c": [np.nan, 400, 500, np.nan], + }, + index=[1, 2, 2, 3], + ) + + tm.assert_frame_equal(joined, expected) + + +def test_join_list_series(float_frame): + # GH#46850 + # Join a DataFrame with a list containing both a Series and a DataFrame + left = float_frame.A.to_frame() + right = [float_frame.B, float_frame[["C", "D"]]] + result = left.join(right) + tm.assert_frame_equal(result, float_frame) + + +@pytest.mark.parametrize("sort_kw", [True, False]) +def test_suppress_future_warning_with_sort_kw(sort_kw): + a = DataFrame({"col1": [1, 2]}, index=["c", "a"]) + + b = DataFrame({"col2": [4, 5]}, index=["b", "a"]) + + c = DataFrame({"col3": [7, 8]}, index=["a", "b"]) + + expected = DataFrame( + { + "col1": {"a": 2.0, "b": float("nan"), "c": 1.0}, + "col2": {"a": 5.0, "b": 4.0, "c": float("nan")}, + "col3": {"a": 7.0, "b": 8.0, "c": float("nan")}, + } + ) + if sort_kw is False: + expected = expected.reindex(index=["c", "a", "b"]) + + with tm.assert_produces_warning(None): + result = a.join([b, c], how="outer", sort=sort_kw) + tm.assert_frame_equal(result, expected) + + +class TestDataFrameJoin: + def test_join(self, multiindex_dataframe_random_data): + frame = multiindex_dataframe_random_data + + a = frame.loc[frame.index[:5], ["A"]] + b = frame.loc[frame.index[2:], ["B", "C"]] + + joined = a.join(b, how="outer").reindex(frame.index) + expected = frame.copy().values.copy() + expected[np.isnan(joined.values)] = np.nan + expected = DataFrame(expected, index=frame.index, columns=frame.columns) + + assert not np.isnan(joined.values).all() + + tm.assert_frame_equal(joined, expected) + + def test_join_segfault(self): + # GH#1532 + df1 = DataFrame({"a": [1, 1], "b": [1, 2], "x": [1, 2]}) + df2 = DataFrame({"a": [2, 2], "b": [1, 2], "y": [1, 2]}) + df1 = df1.set_index(["a", "b"]) + df2 = df2.set_index(["a", "b"]) + # it works! + for how in ["left", "right", "outer"]: + df1.join(df2, how=how) + + def test_join_str_datetime(self): + str_dates = ["20120209", "20120222"] + dt_dates = [datetime(2012, 2, 9), datetime(2012, 2, 22)] + + A = DataFrame(str_dates, index=range(2), columns=["aa"]) + C = DataFrame([[1, 2], [3, 4]], index=str_dates, columns=dt_dates) + + tst = A.join(C, on="aa") + + assert len(tst.columns) == 3 + + def test_join_multiindex_leftright(self): + # GH 10741 + df1 = DataFrame( + [ + ["a", "x", 0.471780], + ["a", "y", 0.774908], + ["a", "z", 0.563634], + ["b", "x", -0.353756], + ["b", "y", 0.368062], + ["b", "z", -1.721840], + ["c", "x", 1], + ["c", "y", 2], + ["c", "z", 3], + ], + columns=["first", "second", "value1"], + ).set_index(["first", "second"]) + + df2 = DataFrame([["a", 10], ["b", 20]], columns=["first", "value2"]).set_index( + ["first"] + ) + + exp = DataFrame( + [ + [0.471780, 10], + [0.774908, 10], + [0.563634, 10], + [-0.353756, 20], + [0.368062, 20], + [-1.721840, 20], + [1.000000, np.nan], + [2.000000, np.nan], + [3.000000, np.nan], + ], + index=df1.index, + columns=["value1", "value2"], + ) + + # these must be the same results (but columns are flipped) + tm.assert_frame_equal(df1.join(df2, how="left"), exp) + tm.assert_frame_equal(df2.join(df1, how="right"), exp[["value2", "value1"]]) + + exp_idx = MultiIndex.from_product( + [["a", "b"], ["x", "y", "z"]], names=["first", "second"] + ) + exp = DataFrame( + [ + [0.471780, 10], + [0.774908, 10], + [0.563634, 10], + [-0.353756, 20], + [0.368062, 20], + [-1.721840, 20], + ], + index=exp_idx, + columns=["value1", "value2"], + ) + + tm.assert_frame_equal(df1.join(df2, how="right"), exp) + tm.assert_frame_equal(df2.join(df1, how="left"), exp[["value2", "value1"]]) + + def test_join_multiindex_dates(self): + # GH 33692 + date = pd.Timestamp(2000, 1, 1).date() + + df1_index = MultiIndex.from_tuples([(0, date)], names=["index_0", "date"]) + df1 = DataFrame({"col1": [0]}, index=df1_index) + df2_index = MultiIndex.from_tuples([(0, date)], names=["index_0", "date"]) + df2 = DataFrame({"col2": [0]}, index=df2_index) + df3_index = MultiIndex.from_tuples([(0, date)], names=["index_0", "date"]) + df3 = DataFrame({"col3": [0]}, index=df3_index) + + result = df1.join([df2, df3]) + + expected_index = MultiIndex.from_tuples([(0, date)], names=["index_0", "date"]) + expected = DataFrame( + {"col1": [0], "col2": [0], "col3": [0]}, index=expected_index + ) + + tm.assert_equal(result, expected) + + def test_merge_join_different_levels_raises(self): + # GH#9455 + # GH 40993: For raising, enforced in 2.0 + + # first dataframe + df1 = DataFrame(columns=["a", "b"], data=[[1, 11], [0, 22]]) + + # second dataframe + columns = MultiIndex.from_tuples([("a", ""), ("c", "c1")]) + df2 = DataFrame(columns=columns, data=[[1, 33], [0, 44]]) + + # merge + with pytest.raises( + MergeError, match="Not allowed to merge between different levels" + ): + pd.merge(df1, df2, on="a") + + # join, see discussion in GH#12219 + with pytest.raises( + MergeError, match="Not allowed to merge between different levels" + ): + df1.join(df2, on="a") + + def test_frame_join_tzaware(self): + test1 = DataFrame( + np.zeros((6, 3)), + index=date_range( + "2012-11-15 00:00:00", periods=6, freq="100ms", tz="US/Central" + ), + ) + test2 = DataFrame( + np.zeros((3, 3)), + index=date_range( + "2012-11-15 00:00:00", periods=3, freq="250ms", tz="US/Central" + ), + columns=range(3, 6), + ) + + result = test1.join(test2, how="outer") + expected = test1.index.union(test2.index) + + tm.assert_index_equal(result.index, expected) + assert result.index.tz.zone == "US/Central" diff --git a/shared/package-files/a0/a06a694cf6a87ac2a3686b78e0a7e136212f64c5df0463e8ed957dc8d5fd8dfe/_flash_attention_forward.h b/shared/package-files/a0/a06a694cf6a87ac2a3686b78e0a7e136212f64c5df0463e8ed957dc8d5fd8dfe/_flash_attention_forward.h new file mode 100644 index 0000000000000000000000000000000000000000..129daca273893d1db21c45cc2e25e61626e495dd --- /dev/null +++ b/shared/package-files/a0/a06a694cf6a87ac2a3686b78e0a7e136212f64c5df0463e8ed957dc8d5fd8dfe/_flash_attention_forward.h @@ -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::_flash_attention_forward(Tensor query, Tensor key, Tensor value, Tensor? cum_seq_q, Tensor? cum_seq_k, SymInt max_q, SymInt max_k, float dropout_p, bool is_causal, bool return_debug_mask, *, float? scale=None) -> (Tensor output, Tensor softmax_logsumexp, Tensor philox_seed, Tensor philox_offset, Tensor debug_attn_mask) +inline ::std::tuple _flash_attention_forward(const at::Tensor & query, const at::Tensor & key, const at::Tensor & value, const c10::optional & cum_seq_q, const c10::optional & cum_seq_k, int64_t max_q, int64_t max_k, double dropout_p, bool is_causal, bool return_debug_mask, c10::optional scale=c10::nullopt) { + return at::_ops::_flash_attention_forward::call(query, key, value, cum_seq_q, cum_seq_k, max_q, max_k, dropout_p, is_causal, return_debug_mask, scale); +} +namespace symint { + template ::value>> + ::std::tuple _flash_attention_forward(const at::Tensor & query, const at::Tensor & key, const at::Tensor & value, const c10::optional & cum_seq_q, const c10::optional & cum_seq_k, int64_t max_q, int64_t max_k, double dropout_p, bool is_causal, bool return_debug_mask, c10::optional scale=c10::nullopt) { + return at::_ops::_flash_attention_forward::call(query, key, value, cum_seq_q, cum_seq_k, max_q, max_k, dropout_p, is_causal, return_debug_mask, scale); + } +} + +// aten::_flash_attention_forward(Tensor query, Tensor key, Tensor value, Tensor? cum_seq_q, Tensor? cum_seq_k, SymInt max_q, SymInt max_k, float dropout_p, bool is_causal, bool return_debug_mask, *, float? scale=None) -> (Tensor output, Tensor softmax_logsumexp, Tensor philox_seed, Tensor philox_offset, Tensor debug_attn_mask) +inline ::std::tuple _flash_attention_forward_symint(const at::Tensor & query, const at::Tensor & key, const at::Tensor & value, const c10::optional & cum_seq_q, const c10::optional & cum_seq_k, c10::SymInt max_q, c10::SymInt max_k, double dropout_p, bool is_causal, bool return_debug_mask, c10::optional scale=c10::nullopt) { + return at::_ops::_flash_attention_forward::call(query, key, value, cum_seq_q, cum_seq_k, max_q, max_k, dropout_p, is_causal, return_debug_mask, scale); +} +namespace symint { + template ::value>> + ::std::tuple _flash_attention_forward(const at::Tensor & query, const at::Tensor & key, const at::Tensor & value, const c10::optional & cum_seq_q, const c10::optional & cum_seq_k, c10::SymInt max_q, c10::SymInt max_k, double dropout_p, bool is_causal, bool return_debug_mask, c10::optional scale=c10::nullopt) { + return at::_ops::_flash_attention_forward::call(query, key, value, cum_seq_q, cum_seq_k, max_q, max_k, dropout_p, is_causal, return_debug_mask, scale); + } +} + +} diff --git a/shared/package-files/a0/a06b0d835aa276200d08e59a5c35a5d92942fd008f0a5d9befcf1895d0605cb5/AccumulateType.h b/shared/package-files/a0/a06b0d835aa276200d08e59a5c35a5d92942fd008f0a5d9befcf1895d0605cb5/AccumulateType.h new file mode 100644 index 0000000000000000000000000000000000000000..0275ef099b03d714b916b9d0d09c4827724bf58c --- /dev/null +++ b/shared/package-files/a0/a06b0d835aa276200d08e59a5c35a5d92942fd008f0a5d9befcf1895d0605cb5/AccumulateType.h @@ -0,0 +1,153 @@ +#pragma once +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Defines the accumulation type for a scalar type. +// Example: +// using accscalar_t = acc_type; +// +// Accumulation types are an important concept in numeric computing +// because you frequently want to perform intermediate computations +// at a higher precision than the input and output precision, to avoid +// compounding internal rounding errors. Accumulation is the most +// well-known intermediate computation (it is of great importance for +// sum reduction and matrix multiply, for example), but in PyTorch +// acc_type ends up getting used for all sorts of other intermediate +// computations, so it perhaps would be more accurately (ahem) called an +// "accurate" type. acc_type is especially important for reduced +// precision operations like float16 and bfloat16, where relatively +// benign looking inputs can easily end up overflowing/underflowing. +// +// acc_type is parametrized by whether or not you are running on CUDA +// or not, because on CUDA double precision operations are expensive +// and so by default, we don't actually want to use double as an +// acc_type on CUDA. A lot of things are typed out below, but +// basically, the table is generated by a few rules: +// +// If bool: +// Use 'bool' as acc_type. +// If floating point: +// If CUDA, use 'float' as acc_type (unless scalar_t is double), +// otherwise (CPU) use 'double' +// If integral: +// Use 'int64_t' as acc_type +// +// You're not forced to use this template; if you happen to know +// something specific about your use case, you can specify your own +// desired behavior. This template, however, will give you a reasonable +// default that will work for all dtypes supported in PyTorch. + +#if defined(__CUDACC__) +#include +#include +#elif defined(__HIPCC__) +#include +#include +#endif + +namespace at { + +template +struct AccumulateTypeDevice {}; + +template +struct AccumulateType {}; + +template +struct AccumulateType { + using type = typename AccumulateTypeDevice::type; +}; + +template +struct AccumulateType { + using type = typename AccumulateTypeDevice::type; +}; + +template +using acc_type_device = typename AccumulateTypeDevice::type; + +template +using acc_type = typename AccumulateType::type; + +#define ACC_TYPE(t, acc_t, device_type) \ + template <> \ + struct AccumulateTypeDevice { \ + using type = acc_t; \ + }; +#define MPS_ACC_TYPE(t, acc_t) ACC_TYPE(t, acc_t, c10::DeviceType::MPS) +#define CUDA_ACC_TYPE(t, acc_t) ACC_TYPE(t, acc_t, c10::DeviceType::CUDA) +#define CPU_ACC_TYPE(t, acc_t) ACC_TYPE(t, acc_t, c10::DeviceType::CPU) + +MPS_ACC_TYPE(BFloat16, float); +MPS_ACC_TYPE(Half, float); +MPS_ACC_TYPE(Float8_e5m2, float); +MPS_ACC_TYPE(Float8_e4m3fn, float); +MPS_ACC_TYPE(Float8_e5m2fnuz, float); +MPS_ACC_TYPE(Float8_e4m3fnuz, float); +MPS_ACC_TYPE(float, float); +MPS_ACC_TYPE(double, float); +MPS_ACC_TYPE(int8_t, int64_t); +MPS_ACC_TYPE(uint8_t, int64_t); +MPS_ACC_TYPE(char, int64_t); +MPS_ACC_TYPE(int16_t, int64_t); +MPS_ACC_TYPE(int32_t, int64_t); +MPS_ACC_TYPE(int64_t, int64_t); +MPS_ACC_TYPE(bool, bool); +MPS_ACC_TYPE(c10::complex, c10::complex); +MPS_ACC_TYPE(c10::complex, c10::complex); +MPS_ACC_TYPE(c10::complex, c10::complex); + +#if defined(__CUDACC__) || defined(__HIPCC__) +CUDA_ACC_TYPE(half, float); +#endif +CUDA_ACC_TYPE(BFloat16, float); +CUDA_ACC_TYPE(Half, float); +CUDA_ACC_TYPE(Float8_e5m2, float); +CUDA_ACC_TYPE(Float8_e4m3fn, float); +CUDA_ACC_TYPE(Float8_e5m2fnuz, float); +CUDA_ACC_TYPE(Float8_e4m3fnuz, float); +CUDA_ACC_TYPE(float, float); +CUDA_ACC_TYPE(double, double); +CUDA_ACC_TYPE(int8_t, int64_t); +CUDA_ACC_TYPE(uint8_t, int64_t); +CUDA_ACC_TYPE(char, int64_t); +CUDA_ACC_TYPE(int16_t, int64_t); +CUDA_ACC_TYPE(int32_t, int64_t); +CUDA_ACC_TYPE(int64_t, int64_t); +CUDA_ACC_TYPE(bool, bool); +CUDA_ACC_TYPE(c10::complex, c10::complex); +CUDA_ACC_TYPE(c10::complex, c10::complex); +CUDA_ACC_TYPE(c10::complex, c10::complex); + +CPU_ACC_TYPE(BFloat16, float); +CPU_ACC_TYPE(Half, float); +CPU_ACC_TYPE(Float8_e5m2, float); +CPU_ACC_TYPE(Float8_e4m3fn, float); +CPU_ACC_TYPE(Float8_e5m2fnuz, float); +CPU_ACC_TYPE(Float8_e4m3fnuz, float); +CPU_ACC_TYPE(float, double); +CPU_ACC_TYPE(double, double); +CPU_ACC_TYPE(int8_t, int64_t); +CPU_ACC_TYPE(uint8_t, int64_t); +CPU_ACC_TYPE(char, int64_t); +CPU_ACC_TYPE(int16_t, int64_t); +CPU_ACC_TYPE(int32_t, int64_t); +CPU_ACC_TYPE(int64_t, int64_t); +CPU_ACC_TYPE(bool, bool); +CPU_ACC_TYPE(c10::complex, c10::complex); +CPU_ACC_TYPE(c10::complex, c10::complex); +CPU_ACC_TYPE(c10::complex, c10::complex); + +TORCH_API c10::ScalarType toAccumulateType( + c10::ScalarType type, + c10::DeviceType device); +TORCH_API c10::ScalarType toAccumulateType(c10::ScalarType type, bool is_cuda); + +} // namespace at diff --git a/shared/package-files/a0/a06b972fe15de26582650dc3941edea1c5457deeaaea1620c08c74736a46d41a/test_generic.py b/shared/package-files/a0/a06b972fe15de26582650dc3941edea1c5457deeaaea1620c08c74736a46d41a/test_generic.py new file mode 100644 index 0000000000000000000000000000000000000000..91b0e3095aa6f09486f82a6af0e1e303e063b7ff --- /dev/null +++ b/shared/package-files/a0/a06b972fe15de26582650dc3941edea1c5457deeaaea1620c08c74736a46d41a/test_generic.py @@ -0,0 +1,380 @@ +import pytest + +import networkx as nx + + +def validate_grid_path(r, c, s, t, p): + assert isinstance(p, list) + assert p[0] == s + assert p[-1] == t + s = ((s - 1) // c, (s - 1) % c) + t = ((t - 1) // c, (t - 1) % c) + assert len(p) == abs(t[0] - s[0]) + abs(t[1] - s[1]) + 1 + p = [((u - 1) // c, (u - 1) % c) for u in p] + for u in p: + assert 0 <= u[0] < r + assert 0 <= u[1] < c + for u, v in zip(p[:-1], p[1:]): + assert (abs(v[0] - u[0]), abs(v[1] - u[1])) in [(0, 1), (1, 0)] + + +class TestGenericPath: + @classmethod + def setup_class(cls): + from networkx import convert_node_labels_to_integers as cnlti + + cls.grid = cnlti(nx.grid_2d_graph(4, 4), first_label=1, ordering="sorted") + cls.cycle = nx.cycle_graph(7) + cls.directed_cycle = nx.cycle_graph(7, create_using=nx.DiGraph()) + cls.neg_weights = nx.DiGraph() + cls.neg_weights.add_edge(0, 1, weight=1) + cls.neg_weights.add_edge(0, 2, weight=3) + cls.neg_weights.add_edge(1, 3, weight=1) + cls.neg_weights.add_edge(2, 3, weight=-2) + + def test_shortest_path(self): + assert nx.shortest_path(self.cycle, 0, 3) == [0, 1, 2, 3] + assert nx.shortest_path(self.cycle, 0, 4) == [0, 6, 5, 4] + validate_grid_path(4, 4, 1, 12, nx.shortest_path(self.grid, 1, 12)) + assert nx.shortest_path(self.directed_cycle, 0, 3) == [0, 1, 2, 3] + # now with weights + assert nx.shortest_path(self.cycle, 0, 3, weight="weight") == [0, 1, 2, 3] + assert nx.shortest_path(self.cycle, 0, 4, weight="weight") == [0, 6, 5, 4] + validate_grid_path( + 4, 4, 1, 12, nx.shortest_path(self.grid, 1, 12, weight="weight") + ) + assert nx.shortest_path(self.directed_cycle, 0, 3, weight="weight") == [ + 0, + 1, + 2, + 3, + ] + # weights and method specified + assert nx.shortest_path( + self.directed_cycle, 0, 3, weight="weight", method="dijkstra" + ) == [0, 1, 2, 3] + assert nx.shortest_path( + self.directed_cycle, 0, 3, weight="weight", method="bellman-ford" + ) == [0, 1, 2, 3] + # when Dijkstra's will probably (depending on precise implementation) + # incorrectly return [0, 1, 3] instead + assert nx.shortest_path( + self.neg_weights, 0, 3, weight="weight", method="bellman-ford" + ) == [0, 2, 3] + # confirm bad method rejection + pytest.raises(ValueError, nx.shortest_path, self.cycle, method="SPAM") + # confirm absent source rejection + pytest.raises(nx.NodeNotFound, nx.shortest_path, self.cycle, 8) + + def test_shortest_path_target(self): + answer = {0: [0, 1], 1: [1], 2: [2, 1]} + sp = nx.shortest_path(nx.path_graph(3), target=1) + assert sp == answer + # with weights + sp = nx.shortest_path(nx.path_graph(3), target=1, weight="weight") + assert sp == answer + # weights and method specified + sp = nx.shortest_path( + nx.path_graph(3), target=1, weight="weight", method="dijkstra" + ) + assert sp == answer + sp = nx.shortest_path( + nx.path_graph(3), target=1, weight="weight", method="bellman-ford" + ) + assert sp == answer + + def test_shortest_path_length(self): + assert nx.shortest_path_length(self.cycle, 0, 3) == 3 + assert nx.shortest_path_length(self.grid, 1, 12) == 5 + assert nx.shortest_path_length(self.directed_cycle, 0, 4) == 4 + # now with weights + assert nx.shortest_path_length(self.cycle, 0, 3, weight="weight") == 3 + assert nx.shortest_path_length(self.grid, 1, 12, weight="weight") == 5 + assert nx.shortest_path_length(self.directed_cycle, 0, 4, weight="weight") == 4 + # weights and method specified + assert ( + nx.shortest_path_length( + self.cycle, 0, 3, weight="weight", method="dijkstra" + ) + == 3 + ) + assert ( + nx.shortest_path_length( + self.cycle, 0, 3, weight="weight", method="bellman-ford" + ) + == 3 + ) + # confirm bad method rejection + pytest.raises(ValueError, nx.shortest_path_length, self.cycle, method="SPAM") + # confirm absent source rejection + pytest.raises(nx.NodeNotFound, nx.shortest_path_length, self.cycle, 8) + + def test_shortest_path_length_target(self): + answer = {0: 1, 1: 0, 2: 1} + sp = dict(nx.shortest_path_length(nx.path_graph(3), target=1)) + assert sp == answer + # with weights + sp = nx.shortest_path_length(nx.path_graph(3), target=1, weight="weight") + assert sp == answer + # weights and method specified + sp = nx.shortest_path_length( + nx.path_graph(3), target=1, weight="weight", method="dijkstra" + ) + assert sp == answer + sp = nx.shortest_path_length( + nx.path_graph(3), target=1, weight="weight", method="bellman-ford" + ) + assert sp == answer + + def test_single_source_shortest_path(self): + p = nx.shortest_path(self.cycle, 0) + assert p[3] == [0, 1, 2, 3] + assert p == nx.single_source_shortest_path(self.cycle, 0) + p = nx.shortest_path(self.grid, 1) + validate_grid_path(4, 4, 1, 12, p[12]) + # now with weights + p = nx.shortest_path(self.cycle, 0, weight="weight") + assert p[3] == [0, 1, 2, 3] + assert p == nx.single_source_dijkstra_path(self.cycle, 0) + p = nx.shortest_path(self.grid, 1, weight="weight") + validate_grid_path(4, 4, 1, 12, p[12]) + # weights and method specified + p = nx.shortest_path(self.cycle, 0, method="dijkstra", weight="weight") + assert p[3] == [0, 1, 2, 3] + assert p == nx.single_source_shortest_path(self.cycle, 0) + p = nx.shortest_path(self.cycle, 0, method="bellman-ford", weight="weight") + assert p[3] == [0, 1, 2, 3] + assert p == nx.single_source_shortest_path(self.cycle, 0) + + def test_single_source_shortest_path_length(self): + ans = dict(nx.shortest_path_length(self.cycle, 0)) + assert ans == {0: 0, 1: 1, 2: 2, 3: 3, 4: 3, 5: 2, 6: 1} + assert ans == dict(nx.single_source_shortest_path_length(self.cycle, 0)) + ans = dict(nx.shortest_path_length(self.grid, 1)) + assert ans[16] == 6 + # now with weights + ans = dict(nx.shortest_path_length(self.cycle, 0, weight="weight")) + assert ans == {0: 0, 1: 1, 2: 2, 3: 3, 4: 3, 5: 2, 6: 1} + assert ans == dict(nx.single_source_dijkstra_path_length(self.cycle, 0)) + ans = dict(nx.shortest_path_length(self.grid, 1, weight="weight")) + assert ans[16] == 6 + # weights and method specified + ans = dict( + nx.shortest_path_length(self.cycle, 0, weight="weight", method="dijkstra") + ) + assert ans == {0: 0, 1: 1, 2: 2, 3: 3, 4: 3, 5: 2, 6: 1} + assert ans == dict(nx.single_source_dijkstra_path_length(self.cycle, 0)) + ans = dict( + nx.shortest_path_length( + self.cycle, 0, weight="weight", method="bellman-ford" + ) + ) + assert ans == {0: 0, 1: 1, 2: 2, 3: 3, 4: 3, 5: 2, 6: 1} + assert ans == dict(nx.single_source_bellman_ford_path_length(self.cycle, 0)) + + def test_all_pairs_shortest_path(self): + p = nx.shortest_path(self.cycle) + assert p[0][3] == [0, 1, 2, 3] + assert p == dict(nx.all_pairs_shortest_path(self.cycle)) + p = nx.shortest_path(self.grid) + validate_grid_path(4, 4, 1, 12, p[1][12]) + # now with weights + p = nx.shortest_path(self.cycle, weight="weight") + assert p[0][3] == [0, 1, 2, 3] + assert p == dict(nx.all_pairs_dijkstra_path(self.cycle)) + p = nx.shortest_path(self.grid, weight="weight") + validate_grid_path(4, 4, 1, 12, p[1][12]) + # weights and method specified + p = nx.shortest_path(self.cycle, weight="weight", method="dijkstra") + assert p[0][3] == [0, 1, 2, 3] + assert p == dict(nx.all_pairs_dijkstra_path(self.cycle)) + p = nx.shortest_path(self.cycle, weight="weight", method="bellman-ford") + assert p[0][3] == [0, 1, 2, 3] + assert p == dict(nx.all_pairs_bellman_ford_path(self.cycle)) + + def test_all_pairs_shortest_path_length(self): + ans = dict(nx.shortest_path_length(self.cycle)) + assert ans[0] == {0: 0, 1: 1, 2: 2, 3: 3, 4: 3, 5: 2, 6: 1} + assert ans == dict(nx.all_pairs_shortest_path_length(self.cycle)) + ans = dict(nx.shortest_path_length(self.grid)) + assert ans[1][16] == 6 + # now with weights + ans = dict(nx.shortest_path_length(self.cycle, weight="weight")) + assert ans[0] == {0: 0, 1: 1, 2: 2, 3: 3, 4: 3, 5: 2, 6: 1} + assert ans == dict(nx.all_pairs_dijkstra_path_length(self.cycle)) + ans = dict(nx.shortest_path_length(self.grid, weight="weight")) + assert ans[1][16] == 6 + # weights and method specified + ans = dict( + nx.shortest_path_length(self.cycle, weight="weight", method="dijkstra") + ) + assert ans[0] == {0: 0, 1: 1, 2: 2, 3: 3, 4: 3, 5: 2, 6: 1} + assert ans == dict(nx.all_pairs_dijkstra_path_length(self.cycle)) + ans = dict( + nx.shortest_path_length(self.cycle, weight="weight", method="bellman-ford") + ) + assert ans[0] == {0: 0, 1: 1, 2: 2, 3: 3, 4: 3, 5: 2, 6: 1} + assert ans == dict(nx.all_pairs_bellman_ford_path_length(self.cycle)) + + def test_has_path(self): + G = nx.Graph() + nx.add_path(G, range(3)) + nx.add_path(G, range(3, 5)) + assert nx.has_path(G, 0, 2) + assert not nx.has_path(G, 0, 4) + + def test_all_shortest_paths(self): + G = nx.Graph() + nx.add_path(G, [0, 1, 2, 3]) + nx.add_path(G, [0, 10, 20, 3]) + assert [[0, 1, 2, 3], [0, 10, 20, 3]] == sorted(nx.all_shortest_paths(G, 0, 3)) + # with weights + G = nx.Graph() + nx.add_path(G, [0, 1, 2, 3]) + nx.add_path(G, [0, 10, 20, 3]) + assert [[0, 1, 2, 3], [0, 10, 20, 3]] == sorted( + nx.all_shortest_paths(G, 0, 3, weight="weight") + ) + # weights and method specified + G = nx.Graph() + nx.add_path(G, [0, 1, 2, 3]) + nx.add_path(G, [0, 10, 20, 3]) + assert [[0, 1, 2, 3], [0, 10, 20, 3]] == sorted( + nx.all_shortest_paths(G, 0, 3, weight="weight", method="dijkstra") + ) + G = nx.Graph() + nx.add_path(G, [0, 1, 2, 3]) + nx.add_path(G, [0, 10, 20, 3]) + assert [[0, 1, 2, 3], [0, 10, 20, 3]] == sorted( + nx.all_shortest_paths(G, 0, 3, weight="weight", method="bellman-ford") + ) + + def test_all_shortest_paths_raise(self): + with pytest.raises(nx.NetworkXNoPath): + G = nx.path_graph(4) + G.add_node(4) + list(nx.all_shortest_paths(G, 0, 4)) + + def test_bad_method(self): + with pytest.raises(ValueError): + G = nx.path_graph(2) + list(nx.all_shortest_paths(G, 0, 1, weight="weight", method="SPAM")) + + def test_all_shortest_paths_zero_weight_edge(self): + g = nx.Graph() + nx.add_path(g, [0, 1, 3]) + nx.add_path(g, [0, 1, 2, 3]) + g.edges[1, 2]["weight"] = 0 + paths30d = list( + nx.all_shortest_paths(g, 3, 0, weight="weight", method="dijkstra") + ) + paths03d = list( + nx.all_shortest_paths(g, 0, 3, weight="weight", method="dijkstra") + ) + paths30b = list( + nx.all_shortest_paths(g, 3, 0, weight="weight", method="bellman-ford") + ) + paths03b = list( + nx.all_shortest_paths(g, 0, 3, weight="weight", method="bellman-ford") + ) + assert sorted(paths03d) == sorted(p[::-1] for p in paths30d) + assert sorted(paths03d) == sorted(p[::-1] for p in paths30b) + assert sorted(paths03b) == sorted(p[::-1] for p in paths30b) + + +class TestAverageShortestPathLength: + def test_cycle_graph(self): + ans = nx.average_shortest_path_length(nx.cycle_graph(7)) + assert ans == pytest.approx(2, abs=1e-7) + + def test_path_graph(self): + ans = nx.average_shortest_path_length(nx.path_graph(5)) + assert ans == pytest.approx(2, abs=1e-7) + + def test_weighted(self): + G = nx.Graph() + nx.add_cycle(G, range(7), weight=2) + ans = nx.average_shortest_path_length(G, weight="weight") + assert ans == pytest.approx(4, abs=1e-7) + G = nx.Graph() + nx.add_path(G, range(5), weight=2) + ans = nx.average_shortest_path_length(G, weight="weight") + assert ans == pytest.approx(4, abs=1e-7) + + def test_specified_methods(self): + G = nx.Graph() + nx.add_cycle(G, range(7), weight=2) + ans = nx.average_shortest_path_length(G, weight="weight", method="dijkstra") + assert ans == pytest.approx(4, abs=1e-7) + ans = nx.average_shortest_path_length(G, weight="weight", method="bellman-ford") + assert ans == pytest.approx(4, abs=1e-7) + ans = nx.average_shortest_path_length( + G, weight="weight", method="floyd-warshall" + ) + assert ans == pytest.approx(4, abs=1e-7) + + G = nx.Graph() + nx.add_path(G, range(5), weight=2) + ans = nx.average_shortest_path_length(G, weight="weight", method="dijkstra") + assert ans == pytest.approx(4, abs=1e-7) + ans = nx.average_shortest_path_length(G, weight="weight", method="bellman-ford") + assert ans == pytest.approx(4, abs=1e-7) + ans = nx.average_shortest_path_length( + G, weight="weight", method="floyd-warshall" + ) + assert ans == pytest.approx(4, abs=1e-7) + + def test_directed_not_strongly_connected(self): + G = nx.DiGraph([(0, 1)]) + with pytest.raises(nx.NetworkXError, match="Graph is not strongly connected"): + nx.average_shortest_path_length(G) + + def test_undirected_not_connected(self): + g = nx.Graph() + g.add_nodes_from(range(3)) + g.add_edge(0, 1) + pytest.raises(nx.NetworkXError, nx.average_shortest_path_length, g) + + def test_trivial_graph(self): + """Tests that the trivial graph has average path length zero, + since there is exactly one path of length zero in the trivial + graph. + + For more information, see issue #1960. + + """ + G = nx.trivial_graph() + assert nx.average_shortest_path_length(G) == 0 + + def test_null_graph(self): + with pytest.raises(nx.NetworkXPointlessConcept): + nx.average_shortest_path_length(nx.null_graph()) + + def test_bad_method(self): + with pytest.raises(ValueError): + G = nx.path_graph(2) + nx.average_shortest_path_length(G, weight="weight", method="SPAM") + + +class TestAverageShortestPathLengthNumpy: + @classmethod + def setup_class(cls): + global np + import pytest + + np = pytest.importorskip("numpy") + + def test_specified_methods_numpy(self): + G = nx.Graph() + nx.add_cycle(G, range(7), weight=2) + ans = nx.average_shortest_path_length( + G, weight="weight", method="floyd-warshall-numpy" + ) + np.testing.assert_almost_equal(ans, 4) + + G = nx.Graph() + nx.add_path(G, range(5), weight=2) + ans = nx.average_shortest_path_length( + G, weight="weight", method="floyd-warshall-numpy" + ) + np.testing.assert_almost_equal(ans, 4) diff --git a/shared/package-files/a0/a06c072df81cf7977b7318862fab338dbf2d577dc46c28f54ebed94e2fdc1542/_thnn_fused_lstm_cell_compositeexplicitautograd_dispatch.h b/shared/package-files/a0/a06c072df81cf7977b7318862fab338dbf2d577dc46c28f54ebed94e2fdc1542/_thnn_fused_lstm_cell_compositeexplicitautograd_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..c64f6b554409de8fe5b7fa2772ac3d6e0b3c05c8 --- /dev/null +++ b/shared/package-files/a0/a06c072df81cf7977b7318862fab338dbf2d577dc46c28f54ebed94e2fdc1542/_thnn_fused_lstm_cell_compositeexplicitautograd_dispatch.h @@ -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 compositeexplicitautograd { + +TORCH_API ::std::tuple _thnn_fused_lstm_cell_out(at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, const at::Tensor & input_gates, const at::Tensor & hidden_gates, const at::Tensor & cx, const c10::optional & input_bias={}, const c10::optional & hidden_bias={}); +TORCH_API ::std::tuple _thnn_fused_lstm_cell_outf(const at::Tensor & input_gates, const at::Tensor & hidden_gates, const at::Tensor & cx, const c10::optional & input_bias, const c10::optional & hidden_bias, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2); + +} // namespace compositeexplicitautograd +} // namespace at diff --git a/shared/package-files/a0/a08779e7109a3a356b1859e4f8ab10b7213e9c73ab075d30cf8b85752f7397ef/replication_pad2d.h b/shared/package-files/a0/a08779e7109a3a356b1859e4f8ab10b7213e9c73ab075d30cf8b85752f7397ef/replication_pad2d.h new file mode 100644 index 0000000000000000000000000000000000000000..a7804dd6ca54bf31fc2dfa98a8f88bfaeedcfab1 --- /dev/null +++ b/shared/package-files/a0/a08779e7109a3a356b1859e4f8ab10b7213e9c73ab075d30cf8b85752f7397ef/replication_pad2d.h @@ -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::replication_pad2d.out(Tensor self, SymInt[4] padding, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & replication_pad2d_out(at::Tensor & out, const at::Tensor & self, at::IntArrayRef padding) { + return at::_ops::replication_pad2d_out::call(self, c10::fromIntArrayRefSlow(padding), out); +} +namespace symint { + template ::value>> + at::Tensor & replication_pad2d_out(at::Tensor & out, const at::Tensor & self, at::IntArrayRef padding) { + return at::_ops::replication_pad2d_out::call(self, c10::fromIntArrayRefSlow(padding), out); + } +} + +// aten::replication_pad2d.out(Tensor self, SymInt[4] padding, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & replication_pad2d_outf(const at::Tensor & self, at::IntArrayRef padding, at::Tensor & out) { + return at::_ops::replication_pad2d_out::call(self, c10::fromIntArrayRefSlow(padding), out); +} +namespace symint { + template ::value>> + at::Tensor & replication_pad2d_outf(const at::Tensor & self, at::IntArrayRef padding, at::Tensor & out) { + return at::_ops::replication_pad2d_out::call(self, c10::fromIntArrayRefSlow(padding), out); + } +} + +// aten::replication_pad2d.out(Tensor self, SymInt[4] padding, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & replication_pad2d_symint_out(at::Tensor & out, const at::Tensor & self, c10::SymIntArrayRef padding) { + return at::_ops::replication_pad2d_out::call(self, padding, out); +} +namespace symint { + template ::value>> + at::Tensor & replication_pad2d_out(at::Tensor & out, const at::Tensor & self, c10::SymIntArrayRef padding) { + return at::_ops::replication_pad2d_out::call(self, padding, out); + } +} + +// aten::replication_pad2d.out(Tensor self, SymInt[4] padding, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & replication_pad2d_symint_outf(const at::Tensor & self, c10::SymIntArrayRef padding, at::Tensor & out) { + return at::_ops::replication_pad2d_out::call(self, padding, out); +} +namespace symint { + template ::value>> + at::Tensor & replication_pad2d_outf(const at::Tensor & self, c10::SymIntArrayRef padding, at::Tensor & out) { + return at::_ops::replication_pad2d_out::call(self, padding, out); + } +} + +// aten::replication_pad2d(Tensor self, SymInt[4] padding) -> Tensor +inline at::Tensor replication_pad2d(const at::Tensor & self, at::IntArrayRef padding) { + return at::_ops::replication_pad2d::call(self, c10::fromIntArrayRefSlow(padding)); +} +namespace symint { + template ::value>> + at::Tensor replication_pad2d(const at::Tensor & self, at::IntArrayRef padding) { + return at::_ops::replication_pad2d::call(self, c10::fromIntArrayRefSlow(padding)); + } +} + +// aten::replication_pad2d(Tensor self, SymInt[4] padding) -> Tensor +inline at::Tensor replication_pad2d_symint(const at::Tensor & self, c10::SymIntArrayRef padding) { + return at::_ops::replication_pad2d::call(self, padding); +} +namespace symint { + template ::value>> + at::Tensor replication_pad2d(const at::Tensor & self, c10::SymIntArrayRef padding) { + return at::_ops::replication_pad2d::call(self, padding); + } +} + +} diff --git a/shared/package-files/a0/a08faa5f81026a18599143f8e6630b2f9eb2987adb208301dbcec859e1cf9367/test_datetime.py b/shared/package-files/a0/a08faa5f81026a18599143f8e6630b2f9eb2987adb208301dbcec859e1cf9367/test_datetime.py new file mode 100644 index 0000000000000000000000000000000000000000..9fc1335490175838f65b461fef34722f556a50c0 --- /dev/null +++ b/shared/package-files/a0/a08faa5f81026a18599143f8e6630b2f9eb2987adb208301dbcec859e1cf9367/test_datetime.py @@ -0,0 +1,876 @@ +import datetime +import numpy as np + +import pytest + +import matplotlib.pyplot as plt +import matplotlib as mpl + + +class TestDatetimePlotting: + @mpl.style.context("default") + def test_annotate(self): + mpl.rcParams["date.converter"] = 'concise' + fig, (ax1, ax2, ax3, ax4) = plt.subplots(4, 1, layout="constrained") + + start_date = datetime.datetime(2023, 10, 1) + dates = [start_date + datetime.timedelta(days=i) for i in range(31)] + data = list(range(1, 32)) + test_text = "Test Text" + + ax1.plot(dates, data) + ax1.annotate(text=test_text, xy=(dates[15], data[15])) + ax2.plot(data, dates) + ax2.annotate(text=test_text, xy=(data[5], dates[26])) + ax3.plot(dates, dates) + ax3.annotate(text=test_text, xy=(dates[15], dates[3])) + ax4.plot(dates, dates) + ax4.annotate(text=test_text, xy=(dates[5], dates[30]), + xytext=(dates[1], dates[7]), arrowprops=dict(facecolor='red')) + + @pytest.mark.xfail(reason="Test for arrow not written yet") + @mpl.style.context("default") + def test_arrow(self): + fig, ax = plt.subplots() + ax.arrow(...) + + @mpl.style.context("default") + def test_axhline(self): + mpl.rcParams["date.converter"] = 'concise' + fig, (ax1, ax2, ax3) = plt.subplots(3, 1, layout='constrained') + ax1.set_ylim(bottom=datetime.datetime(2020, 4, 1), + top=datetime.datetime(2020, 8, 1)) + ax2.set_ylim(bottom=np.datetime64('2005-01-01'), + top=np.datetime64('2005-04-01')) + ax3.set_ylim(bottom=datetime.datetime(2023, 9, 1), + top=datetime.datetime(2023, 11, 1)) + ax1.axhline(y=datetime.datetime(2020, 6, 3), xmin=0.5, xmax=0.7) + ax2.axhline(np.datetime64('2005-02-25T03:30'), xmin=0.1, xmax=0.9) + ax3.axhline(y=datetime.datetime(2023, 10, 24), xmin=0.4, xmax=0.7) + + @mpl.style.context("default") + def test_axhspan(self): + mpl.rcParams["date.converter"] = 'concise' + + start_date = datetime.datetime(2023, 1, 1) + dates = [start_date + datetime.timedelta(days=i) for i in range(31)] + numbers = list(range(1, 32)) + + fig, (ax1, ax2, ax3) = plt.subplots(3, 1, + constrained_layout=True, + figsize=(10, 12)) + + ax1.plot(dates, numbers, marker='o', color='blue') + for i in range(0, 31, 2): + ax1.axhspan(ymin=i+1, ymax=i+2, facecolor='green', alpha=0.5) + ax1.set_title('Datetime vs. Number') + ax1.set_xlabel('Date') + ax1.set_ylabel('Number') + + ax2.plot(numbers, dates, marker='o', color='blue') + for i in range(0, 31, 2): + ymin = start_date + datetime.timedelta(days=i) + ymax = ymin + datetime.timedelta(days=1) + ax2.axhspan(ymin=ymin, ymax=ymax, facecolor='green', alpha=0.5) + ax2.set_title('Number vs. Datetime') + ax2.set_xlabel('Number') + ax2.set_ylabel('Date') + + ax3.plot(dates, dates, marker='o', color='blue') + for i in range(0, 31, 2): + ymin = start_date + datetime.timedelta(days=i) + ymax = ymin + datetime.timedelta(days=1) + ax3.axhspan(ymin=ymin, ymax=ymax, facecolor='green', alpha=0.5) + ax3.set_title('Datetime vs. Datetime') + ax3.set_xlabel('Date') + ax3.set_ylabel('Date') + + @pytest.mark.xfail(reason="Test for axline not written yet") + @mpl.style.context("default") + def test_axline(self): + fig, ax = plt.subplots() + ax.axline(...) + + @mpl.style.context("default") + def test_axvline(self): + mpl.rcParams["date.converter"] = 'concise' + fig, (ax1, ax2, ax3) = plt.subplots(3, 1, layout='constrained') + ax1.set_xlim(left=datetime.datetime(2020, 4, 1), + right=datetime.datetime(2020, 8, 1)) + ax2.set_xlim(left=np.datetime64('2005-01-01'), + right=np.datetime64('2005-04-01')) + ax3.set_xlim(left=datetime.datetime(2023, 9, 1), + right=datetime.datetime(2023, 11, 1)) + ax1.axvline(x=datetime.datetime(2020, 6, 3), ymin=0.5, ymax=0.7) + ax2.axvline(np.datetime64('2005-02-25T03:30'), ymin=0.1, ymax=0.9) + ax3.axvline(x=datetime.datetime(2023, 10, 24), ymin=0.4, ymax=0.7) + + @mpl.style.context("default") + def test_axvspan(self): + mpl.rcParams["date.converter"] = 'concise' + + start_date = datetime.datetime(2023, 1, 1) + dates = [start_date + datetime.timedelta(days=i) for i in range(31)] + numbers = list(range(1, 32)) + + fig, (ax1, ax2, ax3) = plt.subplots(3, 1, + constrained_layout=True, + figsize=(10, 12)) + + ax1.plot(dates, numbers, marker='o', color='blue') + for i in range(0, 31, 2): + xmin = start_date + datetime.timedelta(days=i) + xmax = xmin + datetime.timedelta(days=1) + ax1.axvspan(xmin=xmin, xmax=xmax, facecolor='red', alpha=0.5) + ax1.set_title('Datetime vs. Number') + ax1.set_xlabel('Date') + ax1.set_ylabel('Number') + + ax2.plot(numbers, dates, marker='o', color='blue') + for i in range(0, 31, 2): + ax2.axvspan(xmin=i+1, xmax=i+2, facecolor='red', alpha=0.5) + ax2.set_title('Number vs. Datetime') + ax2.set_xlabel('Number') + ax2.set_ylabel('Date') + + ax3.plot(dates, dates, marker='o', color='blue') + for i in range(0, 31, 2): + xmin = start_date + datetime.timedelta(days=i) + xmax = xmin + datetime.timedelta(days=1) + ax3.axvspan(xmin=xmin, xmax=xmax, facecolor='red', alpha=0.5) + ax3.set_title('Datetime vs. Datetime') + ax3.set_xlabel('Date') + ax3.set_ylabel('Date') + + @mpl.style.context("default") + def test_bar(self): + mpl.rcParams["date.converter"] = "concise" + + fig, (ax1, ax2) = plt.subplots(2, 1, layout="constrained") + + x_dates = np.array( + [ + datetime.datetime(2020, 6, 30), + datetime.datetime(2020, 7, 22), + datetime.datetime(2020, 8, 3), + datetime.datetime(2020, 9, 14), + ], + dtype=np.datetime64, + ) + x_ranges = [8800, 2600, 8500, 7400] + + x = np.datetime64(datetime.datetime(2020, 6, 1)) + ax1.bar(x_dates, x_ranges, width=np.timedelta64(4, "D")) + ax2.bar(np.arange(4), x_dates - x, bottom=x) + + @mpl.style.context("default") + def test_bar_label(self): + # Generate some example data with dateTime inputs + date_list = [datetime.datetime(2023, 1, 1) + + datetime.timedelta(days=i) for i in range(5)] + values = [10, 20, 15, 25, 30] + + # Creating the plot + fig, ax = plt.subplots(1, 1, figsize=(10, 8), layout='constrained') + bars = ax.bar(date_list, values) + + # Add labels to the bars using bar_label + ax.bar_label(bars, labels=[f'{val}%' for val in values], + label_type='edge', color='black') + + @mpl.style.context("default") + def test_barbs(self): + plt.rcParams["date.converter"] = 'concise' + + start_date = datetime.datetime(2022, 2, 8, 22) + dates = [start_date + datetime.timedelta(hours=i) for i in range(12)] + + numbers = np.sin(np.linspace(0, 2 * np.pi, 12)) + + u = np.ones(12) * 10 + v = np.arange(0, 120, 10) + + fig, axes = plt.subplots(nrows=1, ncols=2, figsize=(12, 6)) + + axes[0].barbs(dates, numbers, u, v, length=7) + axes[0].set_title('Datetime vs. Numeric Data') + axes[0].set_xlabel('Datetime') + axes[0].set_ylabel('Numeric Data') + + axes[1].barbs(numbers, dates, u, v, length=7) + axes[1].set_title('Numeric vs. Datetime Data') + axes[1].set_xlabel('Numeric Data') + axes[1].set_ylabel('Datetime') + + @mpl.style.context("default") + def test_barh(self): + mpl.rcParams["date.converter"] = 'concise' + fig, (ax1, ax2) = plt.subplots(2, 1, layout='constrained') + birth_date = np.array([datetime.datetime(2020, 4, 10), + datetime.datetime(2020, 5, 30), + datetime.datetime(2020, 10, 12), + datetime.datetime(2020, 11, 15)]) + year_start = datetime.datetime(2020, 1, 1) + year_end = datetime.datetime(2020, 12, 31) + age = [21, 53, 20, 24] + ax1.set_xlabel('Age') + ax1.set_ylabel('Birth Date') + ax1.barh(birth_date, width=age, height=datetime.timedelta(days=10)) + ax2.set_xlim(left=year_start, right=year_end) + ax2.set_xlabel('Birth Date') + ax2.set_ylabel('Order of Birth Dates') + ax2.barh(np.arange(4), birth_date-year_start, left=year_start) + + @pytest.mark.xfail(reason="Test for boxplot not written yet") + @mpl.style.context("default") + def test_boxplot(self): + fig, ax = plt.subplots() + ax.boxplot(...) + + @mpl.style.context("default") + def test_broken_barh(self): + # Horizontal bar plot with gaps + mpl.rcParams["date.converter"] = 'concise' + fig, ax = plt.subplots() + + ax.broken_barh([(datetime.datetime(2023, 1, 4), datetime.timedelta(days=2)), + (datetime.datetime(2023, 1, 8), datetime.timedelta(days=3))], + (10, 9), facecolors='tab:blue') + ax.broken_barh([(datetime.datetime(2023, 1, 2), datetime.timedelta(days=1)), + (datetime.datetime(2023, 1, 4), datetime.timedelta(days=4))], + (20, 9), facecolors=('tab:red')) + + @mpl.style.context("default") + def test_bxp(self): + mpl.rcParams["date.converter"] = 'concise' + fig, ax = plt.subplots() + data = [{ + "med": datetime.datetime(2020, 1, 15), + "q1": datetime.datetime(2020, 1, 10), + "q3": datetime.datetime(2020, 1, 20), + "whislo": datetime.datetime(2020, 1, 5), + "whishi": datetime.datetime(2020, 1, 25), + "fliers": [ + datetime.datetime(2020, 1, 3), + datetime.datetime(2020, 1, 27) + ] + }] + ax.bxp(data, orientation='horizontal') + ax.xaxis.set_major_formatter(mpl.dates.DateFormatter("%Y-%m-%d")) + ax.set_title('Box plot with datetime data') + + @mpl.style.context("default") + def test_clabel(self): + dates = [datetime.datetime(2023, 10, 1) + datetime.timedelta(days=i) + for i in range(10)] + x = np.arange(-10.0, 5.0, 0.5) + X, Y = np.meshgrid(x, dates) + Z = np.arange(X.size).reshape(X.shape) + + fig, ax = plt.subplots() + CS = ax.contour(X, Y, Z) + labels = ax.clabel(CS, manual=[(x[0], dates[0])]) + assert len(labels) == 1 + assert labels[0].get_text() == '0' + x_pos, y_pos = labels[0].get_position() + assert x_pos == pytest.approx(-10.0, abs=1e-3) + assert y_pos == pytest.approx(mpl.dates.date2num(dates[0]), abs=1e-3) + + @mpl.style.context("default") + def test_contour(self): + mpl.rcParams["date.converter"] = "concise" + range_threshold = 10 + fig, (ax1, ax2, ax3) = plt.subplots(3, 1, layout="constrained") + + x_dates = np.array( + [datetime.datetime(2023, 10, delta) for delta in range(1, range_threshold)] + ) + y_dates = np.array( + [datetime.datetime(2023, 10, delta) for delta in range(1, range_threshold)] + ) + x_ranges = np.array(range(1, range_threshold)) + y_ranges = np.array(range(1, range_threshold)) + + X_dates, Y_dates = np.meshgrid(x_dates, y_dates) + X_ranges, Y_ranges = np.meshgrid(x_ranges, y_ranges) + + Z_ranges = np.cos(X_ranges / 4) + np.sin(Y_ranges / 4) + + ax1.contour(X_dates, Y_dates, Z_ranges) + ax2.contour(X_dates, Y_ranges, Z_ranges) + ax3.contour(X_ranges, Y_dates, Z_ranges) + + @mpl.style.context("default") + def test_contourf(self): + mpl.rcParams["date.converter"] = "concise" + range_threshold = 10 + fig, (ax1, ax2, ax3) = plt.subplots(3, 1, layout="constrained") + + x_dates = np.array( + [datetime.datetime(2023, 10, delta) for delta in range(1, range_threshold)] + ) + y_dates = np.array( + [datetime.datetime(2023, 10, delta) for delta in range(1, range_threshold)] + ) + x_ranges = np.array(range(1, range_threshold)) + y_ranges = np.array(range(1, range_threshold)) + + X_dates, Y_dates = np.meshgrid(x_dates, y_dates) + X_ranges, Y_ranges = np.meshgrid(x_ranges, y_ranges) + + Z_ranges = np.cos(X_ranges / 4) + np.sin(Y_ranges / 4) + + ax1.contourf(X_dates, Y_dates, Z_ranges) + ax2.contourf(X_dates, Y_ranges, Z_ranges) + ax3.contourf(X_ranges, Y_dates, Z_ranges) + + @mpl.style.context("default") + def test_errorbar(self): + mpl.rcParams["date.converter"] = "concise" + fig, (ax1, ax2, ax3, ax4) = plt.subplots(4, 1, layout="constrained") + limit = 7 + start_date = datetime.datetime(2023, 1, 1) + + x_dates = np.array([datetime.datetime(2023, 10, d) for d in range(1, limit)]) + y_dates = np.array([datetime.datetime(2023, 10, d) for d in range(1, limit)]) + x_date_error = datetime.timedelta(days=1) + y_date_error = datetime.timedelta(days=1) + + x_values = list(range(1, limit)) + y_values = list(range(1, limit)) + x_value_error = 0.5 + y_value_error = 0.5 + + ax1.errorbar(x_dates, y_values, + yerr=y_value_error, + capsize=10, + barsabove=True, + label='Data') + ax2.errorbar(x_values, y_dates, + xerr=x_value_error, yerr=y_date_error, + errorevery=(1, 2), + fmt='-o', label='Data') + ax3.errorbar(x_dates, y_dates, + xerr=x_date_error, yerr=y_date_error, + lolims=True, xlolims=True, + label='Data') + ax4.errorbar(x_dates, y_values, + xerr=x_date_error, yerr=y_value_error, + uplims=True, xuplims=True, + label='Data') + + @mpl.style.context("default") + def test_eventplot(self): + mpl.rcParams["date.converter"] = "concise" + + fig, (ax1, ax2, ax3) = plt.subplots(3, 1, layout="constrained") + + x_dates1 = np.array([datetime.datetime(2020, 6, 30), + datetime.datetime(2020, 7, 22), + datetime.datetime(2020, 8, 3), + datetime.datetime(2020, 9, 14),], + dtype=np.datetime64, + ) + + ax1.eventplot(x_dates1) + + np.random.seed(19680801) + + start_date = datetime.datetime(2020, 7, 1) + end_date = datetime.datetime(2020, 10, 15) + date_range = end_date - start_date + + dates1 = start_date + np.random.rand(30) * date_range + dates2 = start_date + np.random.rand(10) * date_range + dates3 = start_date + np.random.rand(50) * date_range + + colors1 = ['C1', 'C2', 'C3'] + lineoffsets1 = np.array([1, 6, 8]) + linelengths1 = [5, 2, 3] + + ax2.eventplot([dates1, dates2, dates3], + colors=colors1, + lineoffsets=lineoffsets1, + linelengths=linelengths1) + + lineoffsets2 = np.array([ + datetime.datetime(2020, 7, 1), + datetime.datetime(2020, 7, 15), + datetime.datetime(2020, 8, 1) + ], dtype=np.datetime64) + + ax3.eventplot([dates1, dates2, dates3], + colors=colors1, + lineoffsets=lineoffsets2, + linelengths=linelengths1) + + @mpl.style.context("default") + def test_fill(self): + mpl.rcParams["date.converter"] = "concise" + fig, (ax1, ax2, ax3, ax4) = plt.subplots(4, 1, layout="constrained") + + np.random.seed(19680801) + + x_base_date = datetime.datetime(2023, 1, 1) + x_dates = [x_base_date] + for _ in range(1, 5): + x_base_date += datetime.timedelta(days=np.random.randint(1, 5)) + x_dates.append(x_base_date) + + y_base_date = datetime.datetime(2023, 1, 1) + y_dates = [y_base_date] + for _ in range(1, 5): + y_base_date += datetime.timedelta(days=np.random.randint(1, 5)) + y_dates.append(y_base_date) + + x_values = np.random.rand(5) * 5 + y_values = np.random.rand(5) * 5 - 2 + + ax1.fill(x_dates, y_values) + ax2.fill(x_values, y_dates) + ax3.fill(x_values, y_values) + ax4.fill(x_dates, y_dates) + + @mpl.style.context("default") + def test_fill_between(self): + mpl.rcParams["date.converter"] = "concise" + np.random.seed(19680801) + + y_base_date = datetime.datetime(2023, 1, 1) + y_dates1 = [y_base_date] + for i in range(1, 10): + y_base_date += datetime.timedelta(days=np.random.randint(1, 5)) + y_dates1.append(y_base_date) + + y_dates2 = [y_base_date] + for i in range(1, 10): + y_base_date += datetime.timedelta(days=np.random.randint(1, 5)) + y_dates2.append(y_base_date) + x_values = np.random.rand(10) * 10 + x_values.sort() + + y_values1 = np.random.rand(10) * 10 + y_values2 = y_values1 + np.random.rand(10) * 10 + y_values1.sort() + y_values2.sort() + + x_base_date = datetime.datetime(2023, 1, 1) + x_dates = [x_base_date] + for i in range(1, 10): + x_base_date += datetime.timedelta(days=np.random.randint(1, 10)) + x_dates.append(x_base_date) + + fig, (ax1, ax2, ax3) = plt.subplots(3, 1, layout="constrained") + + ax1.fill_between(x_values, y_dates1, y_dates2) + ax2.fill_between(x_dates, y_values1, y_values2) + ax3.fill_between(x_dates, y_dates1, y_dates2) + + @mpl.style.context("default") + def test_fill_betweenx(self): + mpl.rcParams["date.converter"] = "concise" + np.random.seed(19680801) + + x_base_date = datetime.datetime(2023, 1, 1) + x_dates1 = [x_base_date] + for i in range(1, 10): + x_base_date += datetime.timedelta(days=np.random.randint(1, 5)) + x_dates1.append(x_base_date) + + x_dates2 = [x_base_date] + for i in range(1, 10): + x_base_date += datetime.timedelta(days=np.random.randint(1, 5)) + x_dates2.append(x_base_date) + y_values = np.random.rand(10) * 10 + y_values.sort() + + x_values1 = np.random.rand(10) * 10 + x_values2 = x_values1 + np.random.rand(10) * 10 + x_values1.sort() + x_values2.sort() + + y_base_date = datetime.datetime(2023, 1, 1) + y_dates = [y_base_date] + for i in range(1, 10): + y_base_date += datetime.timedelta(days=np.random.randint(1, 10)) + y_dates.append(y_base_date) + + fig, (ax1, ax2, ax3) = plt.subplots(1, 3, layout="constrained") + + ax1.fill_betweenx(y_values, x_dates1, x_dates2) + ax2.fill_betweenx(y_dates, x_values1, x_values2) + ax3.fill_betweenx(y_dates, x_dates1, x_dates2) + + @pytest.mark.xfail(reason="Test for hexbin not written yet") + @mpl.style.context("default") + def test_hexbin(self): + fig, ax = plt.subplots() + ax.hexbin(...) + + @mpl.style.context("default") + def test_hist(self): + mpl.rcParams["date.converter"] = 'concise' + + start_date = datetime.datetime(2023, 10, 1) + time_delta = datetime.timedelta(days=1) + + values1 = np.random.randint(1, 10, 30) + values2 = np.random.randint(1, 10, 30) + values3 = np.random.randint(1, 10, 30) + + bin_edges = [start_date + i * time_delta for i in range(31)] + + fig, (ax1, ax2, ax3) = plt.subplots(3, 1, constrained_layout=True) + ax1.hist( + [start_date + i * time_delta for i in range(30)], + bins=10, + weights=values1 + ) + ax2.hist( + [start_date + i * time_delta for i in range(30)], + bins=10, + weights=values2 + ) + ax3.hist( + [start_date + i * time_delta for i in range(30)], + bins=10, + weights=values3 + ) + + fig, (ax4, ax5, ax6) = plt.subplots(3, 1, constrained_layout=True) + ax4.hist( + [start_date + i * time_delta for i in range(30)], + bins=bin_edges, + weights=values1 + ) + ax5.hist( + [start_date + i * time_delta for i in range(30)], + bins=bin_edges, + weights=values2 + ) + ax6.hist( + [start_date + i * time_delta for i in range(30)], + bins=bin_edges, + weights=values3 + ) + + @pytest.mark.xfail(reason="Test for hist2d not written yet") + @mpl.style.context("default") + def test_hist2d(self): + fig, ax = plt.subplots() + ax.hist2d(...) + + @mpl.style.context("default") + def test_hlines(self): + mpl.rcParams["date.converter"] = 'concise' + fig, axs = plt.subplots(2, 4, layout='constrained') + dateStrs = ['2023-03-08', + '2023-04-09', + '2023-05-13', + '2023-07-28', + '2023-12-24'] + dates = [datetime.datetime(2023, m*2, 10) for m in range(1, 6)] + date_start = [datetime.datetime(2023, 6, d) for d in range(5, 30, 5)] + date_end = [datetime.datetime(2023, 7, d) for d in range(5, 30, 5)] + npDates = [np.datetime64(s) for s in dateStrs] + axs[0, 0].hlines(y=dates, + xmin=[0.1, 0.2, 0.3, 0.4, 0.5], + xmax=[0.5, 0.6, 0.7, 0.8, 0.9]) + axs[0, 1].hlines(dates, + xmin=datetime.datetime(2020, 5, 10), + xmax=datetime.datetime(2020, 5, 31)) + axs[0, 2].hlines(dates, + xmin=date_start, + xmax=date_end) + axs[0, 3].hlines(dates, + xmin=0.45, + xmax=0.65) + axs[1, 0].hlines(y=npDates, + xmin=[0.5, 0.6, 0.7, 0.8, 0.9], + xmax=[0.1, 0.2, 0.3, 0.4, 0.5]) + axs[1, 2].hlines(y=npDates, + xmin=date_start, + xmax=date_end) + axs[1, 1].hlines(npDates, + xmin=datetime.datetime(2020, 5, 10), + xmax=datetime.datetime(2020, 5, 31)) + axs[1, 3].hlines(npDates, + xmin=0.45, + xmax=0.65) + + @mpl.style.context("default") + def test_imshow(self): + fig, ax = plt.subplots() + a = np.diag(range(5)) + dt_start = datetime.datetime(2010, 11, 1) + dt_end = datetime.datetime(2010, 11, 11) + extent = (dt_start, dt_end, dt_start, dt_end) + ax.imshow(a, extent=extent) + ax.tick_params(axis="x", labelrotation=90) + + @pytest.mark.xfail(reason="Test for loglog not written yet") + @mpl.style.context("default") + def test_loglog(self): + fig, ax = plt.subplots() + ax.loglog(...) + + @mpl.style.context("default") + def test_matshow(self): + a = np.diag(range(5)) + dt_start = datetime.datetime(1980, 4, 15) + dt_end = datetime.datetime(2020, 11, 11) + extent = (dt_start, dt_end, dt_start, dt_end) + fig, ax = plt.subplots() + ax.matshow(a, extent=extent) + for label in ax.get_xticklabels(): + label.set_rotation(90) + + @pytest.mark.xfail(reason="Test for pcolor not written yet") + @mpl.style.context("default") + def test_pcolor(self): + fig, ax = plt.subplots() + ax.pcolor(...) + + @pytest.mark.xfail(reason="Test for pcolorfast not written yet") + @mpl.style.context("default") + def test_pcolorfast(self): + fig, ax = plt.subplots() + ax.pcolorfast(...) + + @pytest.mark.xfail(reason="Test for pcolormesh not written yet") + @mpl.style.context("default") + def test_pcolormesh(self): + fig, ax = plt.subplots() + ax.pcolormesh(...) + + @mpl.style.context("default") + def test_plot(self): + mpl.rcParams["date.converter"] = 'concise' + N = 6 + fig, (ax1, ax2, ax3) = plt.subplots(3, 1, layout='constrained') + x = np.array([datetime.datetime(2023, 9, n) for n in range(1, N)]) + ax1.plot(x, range(1, N)) + ax2.plot(range(1, N), x) + ax3.plot(x, x) + + @mpl.style.context("default") + def test_plot_date(self): + mpl.rcParams["date.converter"] = "concise" + range_threshold = 10 + fig, (ax1, ax2, ax3) = plt.subplots(3, 1, layout="constrained") + + x_dates = np.array( + [datetime.datetime(2023, 10, delta) for delta in range(1, range_threshold)] + ) + y_dates = np.array( + [datetime.datetime(2023, 10, delta) for delta in range(1, range_threshold)] + ) + x_ranges = np.array(range(1, range_threshold)) + y_ranges = np.array(range(1, range_threshold)) + + with pytest.warns(mpl.MatplotlibDeprecationWarning): + ax1.plot_date(x_dates, y_dates) + ax2.plot_date(x_dates, y_ranges) + ax3.plot_date(x_ranges, y_dates) + + @pytest.mark.xfail(reason="Test for quiver not written yet") + @mpl.style.context("default") + def test_quiver(self): + fig, ax = plt.subplots() + ax.quiver(...) + + @mpl.style.context("default") + def test_scatter(self): + mpl.rcParams["date.converter"] = 'concise' + base = datetime.datetime(2005, 2, 1) + dates = [base + datetime.timedelta(hours=(2 * i)) for i in range(10)] + N = len(dates) + np.random.seed(19680801) + y = np.cumsum(np.random.randn(N)) + fig, axs = plt.subplots(3, 1, layout='constrained', figsize=(6, 6)) + # datetime array on x axis + axs[0].scatter(dates, y) + for label in axs[0].get_xticklabels(): + label.set_rotation(40) + label.set_horizontalalignment('right') + # datetime on y axis + axs[1].scatter(y, dates) + # datetime on both x, y axes + axs[2].scatter(dates, dates) + for label in axs[2].get_xticklabels(): + label.set_rotation(40) + label.set_horizontalalignment('right') + + @pytest.mark.xfail(reason="Test for semilogx not written yet") + @mpl.style.context("default") + def test_semilogx(self): + fig, ax = plt.subplots() + ax.semilogx(...) + + @pytest.mark.xfail(reason="Test for semilogy not written yet") + @mpl.style.context("default") + def test_semilogy(self): + fig, ax = plt.subplots() + ax.semilogy(...) + + @mpl.style.context("default") + def test_stackplot(self): + mpl.rcParams["date.converter"] = 'concise' + N = 10 + stacked_nums = np.tile(np.arange(1, N), (4, 1)) + dates = np.array([datetime.datetime(2020 + i, 1, 1) for i in range(N - 1)]) + + fig, ax = plt.subplots(layout='constrained') + ax.stackplot(dates, stacked_nums) + + @mpl.style.context("default") + def test_stairs(self): + mpl.rcParams["date.converter"] = 'concise' + + start_date = datetime.datetime(2023, 12, 1) + time_delta = datetime.timedelta(days=1) + baseline_date = datetime.datetime(1980, 1, 1) + + bin_edges = [start_date + i * time_delta for i in range(31)] + edge_int = np.arange(31) + np.random.seed(123456) + values1 = np.random.randint(1, 100, 30) + values2 = [start_date + datetime.timedelta(days=int(i)) + for i in np.random.randint(1, 10000, 30)] + values3 = [start_date + datetime.timedelta(days=int(i)) + for i in np.random.randint(-10000, 10000, 30)] + + fig, (ax1, ax2, ax3) = plt.subplots(3, 1, constrained_layout=True) + ax1.stairs(values1, edges=bin_edges) + ax2.stairs(values2, edges=edge_int, baseline=baseline_date) + ax3.stairs(values3, edges=bin_edges, baseline=baseline_date) + + @mpl.style.context("default") + def test_stem(self): + mpl.rcParams["date.converter"] = "concise" + + fig, (ax1, ax2, ax3, ax4, ax5, ax6) = plt.subplots(6, 1, layout="constrained") + + limit_value = 10 + above = datetime.datetime(2023, 9, 18) + below = datetime.datetime(2023, 11, 18) + + x_ranges = np.arange(1, limit_value) + y_ranges = np.arange(1, limit_value) + + x_dates = np.array( + [datetime.datetime(2023, 10, n) for n in range(1, limit_value)] + ) + y_dates = np.array( + [datetime.datetime(2023, 10, n) for n in range(1, limit_value)] + ) + + ax1.stem(x_dates, y_dates, bottom=above) + ax2.stem(x_dates, y_ranges, bottom=5) + ax3.stem(x_ranges, y_dates, bottom=below) + + ax4.stem(x_ranges, y_dates, orientation="horizontal", bottom=above) + ax5.stem(x_dates, y_ranges, orientation="horizontal", bottom=5) + ax6.stem(x_ranges, y_dates, orientation="horizontal", bottom=below) + + @mpl.style.context("default") + def test_step(self): + mpl.rcParams["date.converter"] = "concise" + N = 6 + fig, (ax1, ax2, ax3) = plt.subplots(3, 1, layout='constrained') + x = np.array([datetime.datetime(2023, 9, n) for n in range(1, N)]) + ax1.step(x, range(1, N)) + ax2.step(range(1, N), x) + ax3.step(x, x) + + @pytest.mark.xfail(reason="Test for streamplot not written yet") + @mpl.style.context("default") + def test_streamplot(self): + fig, ax = plt.subplots() + ax.streamplot(...) + + @mpl.style.context("default") + def test_text(self): + mpl.rcParams["date.converter"] = 'concise' + fig, (ax1, ax2, ax3) = plt.subplots(3, 1, layout="constrained") + + limit_value = 10 + font_properties = {'family': 'serif', 'size': 12, 'weight': 'bold'} + test_date = datetime.datetime(2023, 10, 1) + + x_data = np.array(range(1, limit_value)) + y_data = np.array(range(1, limit_value)) + + x_dates = np.array( + [datetime.datetime(2023, 10, n) for n in range(1, limit_value)] + ) + y_dates = np.array( + [datetime.datetime(2023, 10, n) for n in range(1, limit_value)] + ) + + ax1.plot(x_dates, y_data) + ax1.text(test_date, 5, "Inserted Text", **font_properties) + + ax2.plot(x_data, y_dates) + ax2.text(7, test_date, "Inserted Text", **font_properties) + + ax3.plot(x_dates, y_dates) + ax3.text(test_date, test_date, "Inserted Text", **font_properties) + + @pytest.mark.xfail(reason="Test for tricontour not written yet") + @mpl.style.context("default") + def test_tricontour(self): + fig, ax = plt.subplots() + ax.tricontour(...) + + @pytest.mark.xfail(reason="Test for tricontourf not written yet") + @mpl.style.context("default") + def test_tricontourf(self): + fig, ax = plt.subplots() + ax.tricontourf(...) + + @pytest.mark.xfail(reason="Test for tripcolor not written yet") + @mpl.style.context("default") + def test_tripcolor(self): + fig, ax = plt.subplots() + ax.tripcolor(...) + + @pytest.mark.xfail(reason="Test for triplot not written yet") + @mpl.style.context("default") + def test_triplot(self): + fig, ax = plt.subplots() + ax.triplot(...) + + @pytest.mark.xfail(reason="Test for violin not written yet") + @mpl.style.context("default") + def test_violin(self): + fig, ax = plt.subplots() + ax.violin(...) + + @pytest.mark.xfail(reason="Test for violinplot not written yet") + @mpl.style.context("default") + def test_violinplot(self): + fig, ax = plt.subplots() + ax.violinplot(...) + + @mpl.style.context("default") + def test_vlines(self): + mpl.rcParams["date.converter"] = 'concise' + fig, (ax1, ax2, ax3) = plt.subplots(3, 1, layout='constrained') + ax1.set_xlim(left=datetime.datetime(2023, 1, 1), + right=datetime.datetime(2023, 6, 30)) + ax1.vlines(x=[datetime.datetime(2023, 2, 10), + datetime.datetime(2023, 5, 18), + datetime.datetime(2023, 6, 6)], + ymin=[0, 0.25, 0.5], + ymax=[0.25, 0.5, 0.75]) + ax2.set_xlim(left=0, + right=0.5) + ax2.vlines(x=[0.3, 0.35], + ymin=[np.datetime64('2023-03-20'), np.datetime64('2023-03-31')], + ymax=[np.datetime64('2023-05-01'), np.datetime64('2023-05-16')]) + ax3.set_xlim(left=datetime.datetime(2023, 7, 1), + right=datetime.datetime(2023, 12, 31)) + ax3.vlines(x=[datetime.datetime(2023, 9, 1), datetime.datetime(2023, 12, 10)], + ymin=datetime.datetime(2023, 1, 15), + ymax=datetime.datetime(2023, 1, 30)) diff --git a/shared/package-files/a0/a09fe632bfb8a2b828c12519d845cdc26c39e72ac759fdff565b684422823867/test_lowess.py b/shared/package-files/a0/a09fe632bfb8a2b828c12519d845cdc26c39e72ac759fdff565b684422823867/test_lowess.py new file mode 100644 index 0000000000000000000000000000000000000000..43eb80ee2040723f03a270466b6ebbc5154dc593 --- /dev/null +++ b/shared/package-files/a0/a09fe632bfb8a2b828c12519d845cdc26c39e72ac759fdff565b684422823867/test_lowess.py @@ -0,0 +1,302 @@ +""" +Lowess testing suite. + +Expected outcomes are generated by R's lowess function given the same +arguments. The R script test_lowess_r_outputs.R can be used to +generate the expected outcomes. + +The delta tests utilize Silverman's motorcycle collision data, +available in R's MASS package. +""" + +from pathlib import Path + +import numpy as np +from numpy.testing import ( + assert_, + assert_allclose, + assert_almost_equal, + assert_equal, +) +import pandas as pd +import pytest + +from statsmodels.nonparametric.smoothers_lowess import lowess + +# Number of decimals to test equality with. +# The default is 7. +curdir = Path(__file__).resolve().parent +rpath = Path(curdir).joinpath("results") + + +class TestLowess: + def test_import(self): + # this does not work + # from statsmodels.api.nonparametric import lowess as lowess1 + import statsmodels.api as sm + + lowess1 = sm.nonparametric.lowess + assert_(lowess is lowess1) + + @pytest.mark.parametrize("use_pandas", [False, True]) + def test_flat(self, use_pandas): + test_data = { + "x": np.arange(20), + "y": np.zeros(20), + "out": np.zeros(20), + } + if use_pandas: + test_data = {k: pd.Series(test_data[k]) for k in test_data} + expected_lowess = np.array([test_data["x"], test_data["out"]]).T + actual_lowess = lowess(test_data["y"], test_data["x"]) + assert_almost_equal(expected_lowess, actual_lowess, 7) + + def test_range(self): + test_data = { + "x": np.arange(20), + "y": np.arange(20), + "out": np.arange(20), + } + expected_lowess = np.array([test_data["x"], test_data["out"]]).T + actual_lowess = lowess(test_data["y"], test_data["x"]) + assert_almost_equal(expected_lowess, actual_lowess, 7) + + @staticmethod + def generate(name, fname, x="x", y="y", out="out", kwargs=None, decimal=7): + kwargs = {} if kwargs is None else kwargs + data = pd.read_csv(Path(rpath).joinpath(fname)) + assert_almost_equal.description = name + if callable(kwargs): + kwargs = kwargs(data) + result = lowess(data[y], data[x], **kwargs) + expect = np.array([data[x], data[out]]).T + assert_almost_equal(result, expect, decimal) + + # TODO: Refactor as parametrized test once nose is permanently dropped + def test_simple(self): + self.generate("test_simple", "test_lowess_simple.csv") + + def test_iter_0(self): + self.generate( + "test_iter_0", + "test_lowess_iter.csv", + out="out_0", + kwargs={"it": 0}, + ) + + def test_iter_0_3(self): + self.generate( + "test_iter_0", + "test_lowess_iter.csv", + out="out_3", + kwargs={"it": 3}, + ) + + def test_frac_2_3(self): + self.generate( + "test_frac_2_3", + "test_lowess_frac.csv", + out="out_2_3", + kwargs={"frac": 2.0 / 3}, + ) + + def test_frac_1_5(self): + self.generate( + "test_frac_1_5", + "test_lowess_frac.csv", + out="out_1_5", + kwargs={"frac": 1.0 / 5}, + ) + + def test_delta_0(self): + self.generate( + "test_delta_0", + "test_lowess_delta.csv", + out="out_0", + kwargs={"frac": 0.1}, + ) + + def test_delta_rdef(self): + self.generate( + "test_delta_Rdef", + "test_lowess_delta.csv", + out="out_Rdef", + kwargs=lambda data: { + "frac": 0.1, + "delta": 0.01 * np.ptp(data["x"]), + }, + ) + + def test_delta_1(self): + self.generate( + "test_delta_1", + "test_lowess_delta.csv", + out="out_1", + kwargs={"frac": 0.1, "delta": 1 + 1e-10}, + decimal=10, + ) + + def test_options(self): + rs = np.random.RandomState(8437973) + rfile = Path(rpath).joinpath("test_lowess_simple.csv") + test_data = pd.read_csv(rfile, dtype=float) + y = np.require(test_data["y"], requirements="W") + x = np.require(test_data["x"], requirements="W") + expected_lowess = np.column_stack( + [test_data["x"].to_numpy(), test_data["out"].to_numpy()] + ) + # check skip sorting + actual_lowess1 = lowess(y, x, is_sorted=True) + assert_almost_equal(actual_lowess1, expected_lowess, decimal=13) + + # check skip sorting - DataFrame + df = pd.DataFrame({"y": y, "x": x}) + actual_lowess1 = lowess(df["y"], df["x"], is_sorted=True) + assert_almost_equal(actual_lowess1, expected_lowess, decimal=13) + + # check skip missing + actual_lowess = lowess(y, x, is_sorted=True, missing="none") + assert_almost_equal(actual_lowess, actual_lowess1, decimal=13) + + # check order/index, returns yfitted only + actual_lowess = lowess(y[::-1], x[::-1], return_sorted=False) + assert_almost_equal(actual_lowess, actual_lowess1[::-1, 1], decimal=13) + + # check returns yfitted only + actual_lowess = lowess( + y, x, return_sorted=False, missing="none", is_sorted=True + ) + assert_almost_equal(actual_lowess, actual_lowess1[:, 1], decimal=13) + + # check integer input + actual_lowess = lowess(np.round(y).astype(int), x, is_sorted=True) + actual_lowess1 = lowess(np.round(y), x, is_sorted=True) + assert_almost_equal(actual_lowess, actual_lowess1, decimal=13) + assert_(actual_lowess.dtype is np.dtype(float)) + # this will also have duplicate x + actual_lowess = lowess(y, np.round(x).astype(int), is_sorted=True) + actual_lowess1 = lowess(y, np.round(x), is_sorted=True) + assert_almost_equal(actual_lowess, actual_lowess1, decimal=13) + assert_(actual_lowess.dtype is np.dtype(float)) + + # Test specifying xvals explicitly + perm_idx = np.arange(len(x) // 2) + rs.shuffle(perm_idx) + actual_lowess2 = lowess(y, x, xvals=x[perm_idx], return_sorted=False) + assert_almost_equal(actual_lowess[perm_idx, 1], actual_lowess2, decimal=13) + + # check with nans, this changes the arrays + y[[5, 6]] = np.nan + x[3] = np.nan + mask_valid = np.isfinite(x) & np.isfinite(y) + # actual_lowess1[[3, 5, 6], 1] = np.nan + actual_lowess = lowess(y, x, is_sorted=True) + actual_lowess1 = lowess(y[mask_valid], x[mask_valid], is_sorted=True) + assert_almost_equal(actual_lowess, actual_lowess1, decimal=13) + with pytest.raises(ValueError): + lowess(y, x, missing="raise") + + perm_idx = np.arange(len(x)) + rs.shuffle(perm_idx) + yperm = y[perm_idx] + xperm = x[perm_idx] + actual_lowess2 = lowess(yperm, xperm, is_sorted=False) + assert_almost_equal(actual_lowess, actual_lowess2, decimal=13) + + actual_lowess3 = lowess(yperm, xperm, is_sorted=False, return_sorted=False) + mask_valid = np.isfinite(xperm) & np.isfinite(yperm) + assert_equal(np.isnan(actual_lowess3), ~mask_valid) + # get valid sorted smoothed y from actual_lowess3 + sort_idx = np.argsort(xperm) + yhat = actual_lowess3[sort_idx] + yhat = yhat[np.isfinite(yhat)] + assert_almost_equal(yhat, actual_lowess2[:, 1], decimal=13) + + # Test specifying xvals explicitly, now with nans + perm_idx = np.arange(actual_lowess.shape[0]) + actual_lowess4 = lowess( + y, x, xvals=actual_lowess[perm_idx, 0], return_sorted=False + ) + assert_almost_equal(actual_lowess[perm_idx, 1], actual_lowess4, decimal=13) + + def test_duplicate_xs(self): + # see 2449 + # Generate cases with many duplicate x values + rs = np.random.RandomState(8437972) + x = [0] + [1] * 100 + [2] * 100 + [3] + y = x + rs.normal(size=len(x)) * 1e-8 + result = lowess(y, x, frac=50 / len(x), it=1) + # fit values should be approximately averages of values at + # a particular fit, which in this case are just equal to x + assert_almost_equal(result[1:-1, 1], x[1:-1], decimal=7) + + def test_spike(self): + # see 7700 + # Create a curve that is easy to fit at first but gets + # harder further along. + # This used to give an outlier bad fit at position 961 + x = np.linspace(0, 10, 1001) + y = np.cos(x**2 / 5) + result = lowess(y, x, frac=11 / len(x), it=1) + assert_(np.all(result[:, 1] > np.min(y) - 0.1)) + assert_(np.all(result[:, 1] < np.max(y) + 0.1)) + + def test_exog_predict(self): + rs = np.random.RandomState(8437971) + rfile = Path(rpath).joinpath("test_lowess_simple.csv") + test_data = pd.read_csv(rfile) + y, x = test_data["y"], test_data["x"] + target = lowess(y, x, is_sorted=True) + + # Test specifying exog_predict explicitly + perm_idx = np.arange(len(x) // 2) + rs.shuffle(perm_idx) + actual_lowess = lowess(y, x, xvals=x[perm_idx], missing="none") + assert_almost_equal(target[perm_idx, 1], actual_lowess, decimal=13) + + target_it0 = lowess(y, x, return_sorted=False, it=0) + actual_lowess2 = lowess(y, x, xvals=x[perm_idx], it=0) + assert_almost_equal(target_it0[perm_idx], actual_lowess2, decimal=13) + + # Check nans in exog_predict + with pytest.raises(ValueError): + lowess(y, x, xvals=np.array([np.nan, 5, 3]), missing="raise") + + # With is_sorted=True + actual_lowess3 = lowess(y, x, xvals=x, is_sorted=True) + assert_equal(actual_lowess3, target[:, 1]) + + # check with nans, this changes the arrays + y[[5, 6]] = np.nan + x[3] = np.nan + target = lowess(y, x, is_sorted=True) + + # Test specifying exog_predict explicitly, now with nans + perm_idx = np.arange(target.shape[0]) + actual_lowess1 = lowess(y, x, xvals=target[perm_idx, 0]) + assert_almost_equal(target[perm_idx, 1], actual_lowess1, decimal=13) + + # nans and missing='drop' + actual_lowess2 = lowess(y, x, xvals=x, missing="drop") + all_finite = np.isfinite(x) & np.isfinite(y) + assert_equal(actual_lowess2[all_finite], target[:, 1]) + + # Dimensional check + with pytest.raises(ValueError): + lowess(y, x, xvals=np.array([[5], [10]])) + + +def test_returns_inputs(): + # see 1960 + y = [0] * 10 + [1] * 10 + x = np.arange(20) + result = lowess(y, x, frac=0.4) + assert_almost_equal(result, np.column_stack((x, y))) + + +def test_xvals_dtype(): + y = [0] * 10 + [1] * 10 + x = np.arange(20) + # Previously raised ValueError: Buffer dtype mismatch + results_xvals = lowess(y, x, frac=0.4, xvals=x[:5]) + assert_allclose(results_xvals, np.zeros(5), atol=1e-12) diff --git a/shared/package-files/a0/a0a319e832c6cd3fa97890b3dbcb41c26af43b12e5f89c79eaeb407519254a59/geometric.h b/shared/package-files/a0/a0a319e832c6cd3fa97890b3dbcb41c26af43b12e5f89c79eaeb407519254a59/geometric.h new file mode 100644 index 0000000000000000000000000000000000000000..c37f3bd20829361e55e918016bf40b8b50a91e18 --- /dev/null +++ b/shared/package-files/a0/a0a319e832c6cd3fa97890b3dbcb41c26af43b12e5f89c79eaeb407519254a59/geometric.h @@ -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::geometric.out(Tensor self, float p, *, Generator? generator=None, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & geometric_out(at::Tensor & out, const at::Tensor & self, double p, c10::optional generator=c10::nullopt) { + return at::_ops::geometric_out::call(self, p, generator, out); +} +// aten::geometric.out(Tensor self, float p, *, Generator? generator=None, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & geometric_outf(const at::Tensor & self, double p, c10::optional generator, at::Tensor & out) { + return at::_ops::geometric_out::call(self, p, generator, out); +} + +// aten::geometric(Tensor self, float p, *, Generator? generator=None) -> Tensor +inline at::Tensor geometric(const at::Tensor & self, double p, c10::optional generator=c10::nullopt) { + return at::_ops::geometric::call(self, p, generator); +} + +} diff --git a/shared/package-files/a0/a0a4e5fd60d245885e3427a7c4c8f0474ac700f7c096d67ec4bac0a70741d4de/heapq.pyi b/shared/package-files/a0/a0a4e5fd60d245885e3427a7c4c8f0474ac700f7c096d67ec4bac0a70741d4de/heapq.pyi new file mode 100644 index 0000000000000000000000000000000000000000..d6da32d767d31e3ae03d4cf04486d2edeade9ee2 --- /dev/null +++ b/shared/package-files/a0/a0a4e5fd60d245885e3427a7c4c8f0474ac700f7c096d67ec4bac0a70741d4de/heapq.pyi @@ -0,0 +1,15 @@ +from _typeshed import SupportsLessThan +from typing import Any, Callable, Iterable, List, Optional, Protocol, TypeVar + +_T = TypeVar("_T") + +def cmp_lt(x, y) -> bool: ... +def heappush(heap: List[_T], item: _T) -> None: ... +def heappop(heap: List[_T]) -> _T: ... +def heappushpop(heap: List[_T], item: _T) -> _T: ... +def heapify(x: List[_T]) -> None: ... +def heapreplace(heap: List[_T], item: _T) -> _T: ... +def merge(*iterables: Iterable[_T]) -> Iterable[_T]: ... +def nlargest(n: int, iterable: Iterable[_T], key: Optional[Callable[[_T], SupportsLessThan]] = ...) -> List[_T]: ... +def nsmallest(n: int, iterable: Iterable[_T], key: Optional[Callable[[_T], SupportsLessThan]] = ...) -> List[_T]: ... +def _heapify_max(__x: List[_T]) -> None: ... # undocumented diff --git a/shared/package-files/a0/a0a7f4254d9b63dfe878f33eb0b303ff1a302a331d957158479735bde7ae58ac/_qmvnt.py b/shared/package-files/a0/a0a7f4254d9b63dfe878f33eb0b303ff1a302a331d957158479735bde7ae58ac/_qmvnt.py new file mode 100644 index 0000000000000000000000000000000000000000..55da67a3b7220a5d7216188335273c96e8cf06f8 --- /dev/null +++ b/shared/package-files/a0/a0a7f4254d9b63dfe878f33eb0b303ff1a302a331d957158479735bde7ae58ac/_qmvnt.py @@ -0,0 +1,533 @@ +# Integration of multivariate normal and t distributions. + +# Adapted from the MATLAB original implementations by Dr. Alan Genz. + +# http://www.math.wsu.edu/faculty/genz/software/software.html + +# Copyright (C) 2013, Alan Genz, All rights reserved. +# Python implementation is copyright (C) 2022, Robert Kern, All rights +# reserved. + +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided 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 contributor name(s) may not 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 USE +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +import numpy as np + +from scipy.fft import fft, ifft +from scipy.special import gammaincinv, ndtr, ndtri +from scipy.stats._qmc import primes_from_2_to + + +phi = ndtr +phinv = ndtri + + +def _factorize_int(n): + """Return a sorted list of the unique prime factors of a positive integer. + """ + # NOTE: There are lots faster ways to do this, but this isn't terrible. + factors = set() + for p in primes_from_2_to(int(np.sqrt(n)) + 1): + while not (n % p): + factors.add(p) + n //= p + if n == 1: + break + if n != 1: + factors.add(n) + return sorted(factors) + + +def _primitive_root(p): + """Compute a primitive root of the prime number `p`. + + Used in the CBC lattice construction. + + References + ---------- + .. [1] https://en.wikipedia.org/wiki/Primitive_root_modulo_n + """ + # p is prime + pm = p - 1 + factors = _factorize_int(pm) + n = len(factors) + r = 2 + k = 0 + while k < n: + d = pm // factors[k] + # pow() doesn't like numpy scalar types. + rd = pow(int(r), int(d), int(p)) + if rd == 1: + r += 1 + k = 0 + else: + k += 1 + return r + + +def _cbc_lattice(n_dim, n_qmc_samples): + """Compute a QMC lattice generator using a Fast CBC construction. + + Parameters + ---------- + n_dim : int > 0 + The number of dimensions for the lattice. + n_qmc_samples : int > 0 + The desired number of QMC samples. This will be rounded down to the + nearest prime to enable the CBC construction. + + Returns + ------- + q : float array : shape=(n_dim,) + The lattice generator vector. All values are in the open interval + ``(0, 1)``. + actual_n_qmc_samples : int + The prime number of QMC samples that must be used with this lattice, + no more, no less. + + References + ---------- + .. [1] Nuyens, D. and Cools, R. "Fast Component-by-Component Construction, + a Reprise for Different Kernels", In H. Niederreiter and D. Talay, + editors, Monte-Carlo and Quasi-Monte Carlo Methods 2004, + Springer-Verlag, 2006, 371-385. + """ + # Round down to the nearest prime number. + primes = primes_from_2_to(n_qmc_samples + 1) + n_qmc_samples = primes[-1] + + bt = np.ones(n_dim) + gm = np.hstack([1.0, 0.8 ** np.arange(n_dim - 1)]) + q = 1 + w = 0 + z = np.arange(1, n_dim + 1) + m = (n_qmc_samples - 1) // 2 + g = _primitive_root(n_qmc_samples) + # Slightly faster way to compute perm[j] = pow(g, j, n_qmc_samples) + # Shame that we don't have modulo pow() implemented as a ufunc. + perm = np.ones(m, dtype=int) + for j in range(m - 1): + perm[j + 1] = (g * perm[j]) % n_qmc_samples + perm = np.minimum(n_qmc_samples - perm, perm) + pn = perm / n_qmc_samples + c = pn * pn - pn + 1.0 / 6 + fc = fft(c) + for s in range(1, n_dim): + reordered = np.hstack([ + c[:w+1][::-1], + c[w+1:m][::-1], + ]) + q = q * (bt[s-1] + gm[s-1] * reordered) + w = ifft(fc * fft(q)).real.argmin() + z[s] = perm[w] + q = z / n_qmc_samples + return q, n_qmc_samples + + +# Note: this function is not currently used or tested by any SciPy code. It is +# included in this file to facilitate the development of a parameter for users +# to set the desired CDF accuracy, but must be reviewed and tested before use. +def _qauto(func, covar, low, high, rng, error=1e-3, limit=10_000, **kwds): + """Automatically rerun the integration to get the required error bound. + + Parameters + ---------- + func : callable + Either :func:`_qmvn` or :func:`_qmvt`. + covar, low, high : array + As specified in :func:`_qmvn` and :func:`_qmvt`. + rng : Generator, optional + default_rng(), yada, yada + error : float > 0 + The desired error bound. + limit : int > 0: + The rough limit of the number of integration points to consider. The + integration will stop looping once this limit has been *exceeded*. + **kwds : + Other keyword arguments to pass to `func`. When using :func:`_qmvt`, be + sure to include ``nu=`` as one of these. + + Returns + ------- + prob : float + The estimated probability mass within the bounds. + est_error : float + 3 times the standard error of the batch estimates. + n_samples : int + The number of integration points actually used. + """ + n = len(covar) + n_samples = 0 + if n == 1: + prob = phi(high) - phi(low) + # More or less + est_error = 1e-15 + else: + mi = min(limit, n * 1000) + prob = 0.0 + est_error = 1.0 + ei = 0.0 + while est_error > error and n_samples < limit: + mi = round(np.sqrt(2) * mi) + pi, ei, ni = func(mi, covar, low, high, rng=rng, **kwds) + n_samples += ni + wt = 1.0 / (1 + (ei / est_error)**2) + prob += wt * (pi - prob) + est_error = np.sqrt(wt) * ei + return prob, est_error, n_samples + + +# Note: this function is not currently used or tested by any SciPy code. It is +# included in this file to facilitate the resolution of gh-8367, gh-16142, and +# possibly gh-14286, but must be reviewed and tested before use. +def _qmvn(m, covar, low, high, rng, lattice='cbc', n_batches=10): + """Multivariate normal integration over box bounds. + + Parameters + ---------- + m : int > n_batches + The number of points to sample. This number will be divided into + `n_batches` batches that apply random offsets of the sampling lattice + for each batch in order to estimate the error. + covar : (n, n) float array + Possibly singular, positive semidefinite symmetric covariance matrix. + low, high : (n,) float array + The low and high integration bounds. + rng : Generator, optional + default_rng(), yada, yada + lattice : 'cbc' or callable + The type of lattice rule to use to construct the integration points. + n_batches : int > 0, optional + The number of QMC batches to apply. + + Returns + ------- + prob : float + The estimated probability mass within the bounds. + est_error : float + 3 times the standard error of the batch estimates. + """ + cho, lo, hi = _permuted_cholesky(covar, low, high) + n = cho.shape[0] + ct = cho[0, 0] + c = phi(lo[0] / ct) + d = phi(hi[0] / ct) + ci = c + dci = d - ci + prob = 0.0 + error_var = 0.0 + q, n_qmc_samples = _cbc_lattice(n - 1, max(m // n_batches, 1)) + y = np.zeros((n - 1, n_qmc_samples)) + i_samples = np.arange(n_qmc_samples) + 1 + for j in range(n_batches): + c = np.full(n_qmc_samples, ci) + dc = np.full(n_qmc_samples, dci) + pv = dc.copy() + for i in range(1, n): + # Pseudorandomly-shifted lattice coordinate. + z = q[i - 1] * i_samples + rng.random() + # Fast remainder(z, 1.0) + z -= z.astype(int) + # Tent periodization transform. + x = abs(2 * z - 1) + y[i - 1, :] = phinv(c + x * dc) + s = cho[i, :i] @ y[:i, :] + ct = cho[i, i] + c = phi((lo[i] - s) / ct) + d = phi((hi[i] - s) / ct) + dc = d - c + pv = pv * dc + # Accumulate the mean and error variances with online formulations. + d = (pv.mean() - prob) / (j + 1) + prob += d + error_var = (j - 1) * error_var / (j + 1) + d * d + # Error bounds are 3 times the standard error of the estimates. + est_error = 3 * np.sqrt(error_var) + n_samples = n_qmc_samples * n_batches + return prob, est_error, n_samples + + +# Note: this function is not currently used or tested by any SciPy code. It is +# included in this file to facilitate the resolution of gh-8367, gh-16142, and +# possibly gh-14286, but must be reviewed and tested before use. +def _mvn_qmc_integrand(covar, low, high, use_tent=False): + """Transform the multivariate normal integration into a QMC integrand over + a unit hypercube. + + The dimensionality of the resulting hypercube integration domain is one + less than the dimensionality of the original integrand. Note that this + transformation subsumes the integration bounds in order to account for + infinite bounds. The QMC integration one does with the returned integrand + should be on the unit hypercube. + + Parameters + ---------- + covar : (n, n) float array + Possibly singular, positive semidefinite symmetric covariance matrix. + low, high : (n,) float array + The low and high integration bounds. + use_tent : bool, optional + If True, then use tent periodization. Only helpful for lattice rules. + + Returns + ------- + integrand : Callable[[NDArray], NDArray] + The QMC-integrable integrand. It takes an + ``(n_qmc_samples, ndim_integrand)`` array of QMC samples in the unit + hypercube and returns the ``(n_qmc_samples,)`` evaluations of at these + QMC points. + ndim_integrand : int + The dimensionality of the integrand. Equal to ``n-1``. + """ + cho, lo, hi = _permuted_cholesky(covar, low, high) + n = cho.shape[0] + ndim_integrand = n - 1 + ct = cho[0, 0] + c = phi(lo[0] / ct) + d = phi(hi[0] / ct) + ci = c + dci = d - ci + + def integrand(*zs): + ndim_qmc = len(zs) + n_qmc_samples = len(np.atleast_1d(zs[0])) + assert ndim_qmc == ndim_integrand + y = np.zeros((ndim_qmc, n_qmc_samples)) + c = np.full(n_qmc_samples, ci) + dc = np.full(n_qmc_samples, dci) + pv = dc.copy() + for i in range(1, n): + if use_tent: + # Tent periodization transform. + x = abs(2 * zs[i-1] - 1) + else: + x = zs[i-1] + y[i - 1, :] = phinv(c + x * dc) + s = cho[i, :i] @ y[:i, :] + ct = cho[i, i] + c = phi((lo[i] - s) / ct) + d = phi((hi[i] - s) / ct) + dc = d - c + pv = pv * dc + return pv + + return integrand, ndim_integrand + + +def _qmvt(m, nu, covar, low, high, rng, lattice='cbc', n_batches=10): + """Multivariate t integration over box bounds. + + Parameters + ---------- + m : int > n_batches + The number of points to sample. This number will be divided into + `n_batches` batches that apply random offsets of the sampling lattice + for each batch in order to estimate the error. + nu : float >= 0 + The shape parameter of the multivariate t distribution. + covar : (n, n) float array + Possibly singular, positive semidefinite symmetric covariance matrix. + low, high : (n,) float array + The low and high integration bounds. + rng : Generator, optional + default_rng(), yada, yada + lattice : 'cbc' or callable + The type of lattice rule to use to construct the integration points. + n_batches : int > 0, optional + The number of QMC batches to apply. + + Returns + ------- + prob : float + The estimated probability mass within the bounds. + est_error : float + 3 times the standard error of the batch estimates. + n_samples : int + The number of samples actually used. + """ + sn = max(1.0, np.sqrt(nu)) + low = np.asarray(low, dtype=np.float64) + high = np.asarray(high, dtype=np.float64) + cho, lo, hi = _permuted_cholesky(covar, low / sn, high / sn) + n = cho.shape[0] + prob = 0.0 + error_var = 0.0 + q, n_qmc_samples = _cbc_lattice(n, max(m // n_batches, 1)) + i_samples = np.arange(n_qmc_samples) + 1 + for j in range(n_batches): + pv = np.ones(n_qmc_samples) + s = np.zeros((n, n_qmc_samples)) + for i in range(n): + # Pseudorandomly-shifted lattice coordinate. + z = q[i] * i_samples + rng.random() + # Fast remainder(z, 1.0) + z -= z.astype(int) + # Tent periodization transform. + x = abs(2 * z - 1) + # FIXME: Lift the i==0 case out of the loop to make the logic + # easier to follow. + if i == 0: + # We'll use one of the QR variates to pull out the + # t-distribution scaling. + if nu > 0: + r = np.sqrt(2 * gammaincinv(nu / 2, x)) + else: + r = np.ones_like(x) + else: + y = phinv(c + x * dc) # noqa: F821 + with np.errstate(invalid='ignore'): + s[i:, :] += cho[i:, i - 1][:, np.newaxis] * y + si = s[i, :] + + c = np.ones(n_qmc_samples) + d = np.ones(n_qmc_samples) + with np.errstate(invalid='ignore'): + lois = lo[i] * r - si + hiis = hi[i] * r - si + c[lois < -9] = 0.0 + d[hiis < -9] = 0.0 + lo_mask = abs(lois) < 9 + hi_mask = abs(hiis) < 9 + c[lo_mask] = phi(lois[lo_mask]) + d[hi_mask] = phi(hiis[hi_mask]) + + dc = d - c + pv *= dc + + # Accumulate the mean and error variances with online formulations. + d = (pv.mean() - prob) / (j + 1) + prob += d + error_var = (j - 1) * error_var / (j + 1) + d * d + # Error bounds are 3 times the standard error of the estimates. + est_error = 3 * np.sqrt(error_var) + n_samples = n_qmc_samples * n_batches + return prob, est_error, n_samples + + +def _permuted_cholesky(covar, low, high, tol=1e-10): + """Compute a scaled, permuted Cholesky factor, with integration bounds. + + The scaling and permuting of the dimensions accomplishes part of the + transformation of the original integration problem into a more numerically + tractable form. The lower-triangular Cholesky factor will then be used in + the subsequent integration. The integration bounds will be scaled and + permuted as well. + + Parameters + ---------- + covar : (n, n) float array + Possibly singular, positive semidefinite symmetric covariance matrix. + low, high : (n,) float array + The low and high integration bounds. + tol : float, optional + The singularity tolerance. + + Returns + ------- + cho : (n, n) float array + Lower Cholesky factor, scaled and permuted. + new_low, new_high : (n,) float array + The scaled and permuted low and high integration bounds. + """ + # Make copies for outputting. + cho = np.array(covar, dtype=np.float64) + new_lo = np.array(low, dtype=np.float64) + new_hi = np.array(high, dtype=np.float64) + n = cho.shape[0] + if cho.shape != (n, n): + raise ValueError("expected a square symmetric array") + if new_lo.shape != (n,) or new_hi.shape != (n,): + raise ValueError( + "expected integration boundaries the same dimensions " + "as the covariance matrix" + ) + # Scale by the sqrt of the diagonal. + dc = np.sqrt(np.maximum(np.diag(cho), 0.0)) + # But don't divide by 0. + dc[dc == 0.0] = 1.0 + new_lo /= dc + new_hi /= dc + cho /= dc + cho /= dc[:, np.newaxis] + + y = np.zeros(n) + sqtp = np.sqrt(2 * np.pi) + for k in range(n): + epk = (k + 1) * tol + im = k + ck = 0.0 + dem = 1.0 + s = 0.0 + lo_m = 0.0 + hi_m = 0.0 + for i in range(k, n): + if cho[i, i] > tol: + ci = np.sqrt(cho[i, i]) + if i > 0: + s = cho[i, :k] @ y[:k] + lo_i = (new_lo[i] - s) / ci + hi_i = (new_hi[i] - s) / ci + de = phi(hi_i) - phi(lo_i) + if de <= dem: + ck = ci + dem = de + lo_m = lo_i + hi_m = hi_i + im = i + if im > k: + # Swap im and k + cho[im, im] = cho[k, k] + _swap_slices(cho, np.s_[im, :k], np.s_[k, :k]) + _swap_slices(cho, np.s_[im + 1:, im], np.s_[im + 1:, k]) + _swap_slices(cho, np.s_[k + 1:im, k], np.s_[im, k + 1:im]) + _swap_slices(new_lo, k, im) + _swap_slices(new_hi, k, im) + if ck > epk: + cho[k, k] = ck + cho[k, k + 1:] = 0.0 + for i in range(k + 1, n): + cho[i, k] /= ck + cho[i, k + 1:i + 1] -= cho[i, k] * cho[k + 1:i + 1, k] + if abs(dem) > tol: + y[k] = ((np.exp(-lo_m * lo_m / 2) - np.exp(-hi_m * hi_m / 2)) / + (sqtp * dem)) + else: + y[k] = (lo_m + hi_m) / 2 + if lo_m < -10: + y[k] = hi_m + elif hi_m > 10: + y[k] = lo_m + cho[k, :k + 1] /= ck + new_lo[k] /= ck + new_hi[k] /= ck + else: + cho[k:, k] = 0.0 + y[k] = (new_lo[k] + new_hi[k]) / 2 + return cho, new_lo, new_hi + + +def _swap_slices(x, slc1, slc2): + t = x[slc1].copy() + x[slc1] = x[slc2].copy() + x[slc2] = t diff --git a/shared/package-files/a0/a0ac39d42ef61e1e39c13c18bc31c93fd91b89cc62321311e18e46bdda4a7474/setters.py b/shared/package-files/a0/a0ac39d42ef61e1e39c13c18bc31c93fd91b89cc62321311e18e46bdda4a7474/setters.py new file mode 100644 index 0000000000000000000000000000000000000000..9b50770804e4187f0c935ef17bddf2d9a61120ff --- /dev/null +++ b/shared/package-files/a0/a0ac39d42ef61e1e39c13c18bc31c93fd91b89cc62321311e18e46bdda4a7474/setters.py @@ -0,0 +1,3 @@ +# SPDX-License-Identifier: MIT + +from attr.setters import * # noqa diff --git a/shared/package-files/a0/a0b50ee95909e47d147fbd79df2179e25b188dd27324547cbf8966bc7b01c79d/__init__.py b/shared/package-files/a0/a0b50ee95909e47d147fbd79df2179e25b188dd27324547cbf8966bc7b01c79d/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..f4bf9a9c3c122f9f8c3a3f9c0936d094b626ecb9 --- /dev/null +++ b/shared/package-files/a0/a0b50ee95909e47d147fbd79df2179e25b188dd27324547cbf8966bc7b01c79d/__init__.py @@ -0,0 +1,198 @@ +""" +Type inference of Python code in |jedi| is based on three assumptions: + +* The code uses as least side effects as possible. Jedi understands certain + list/tuple/set modifications, but there's no guarantee that Jedi detects + everything (list.append in different modules for example). +* No magic is being used: + + - metaclasses + - ``setattr()`` / ``__import__()`` + - writing to ``globals()``, ``locals()``, ``object.__dict__`` +* The programmer is not a total dick, e.g. like `this + `_ :-) + +The actual algorithm is based on a principle I call lazy type inference. That +said, the typical entry point for static analysis is calling +``infer_expr_stmt``. There's separate logic for autocompletion in the API, the +inference_state is all about inferring an expression. + +TODO this paragraph is not what jedi does anymore, it's similar, but not the +same. + +Now you need to understand what follows after ``infer_expr_stmt``. Let's +make an example:: + + import datetime + datetime.date.toda# <-- cursor here + +First of all, this module doesn't care about completion. It really just cares +about ``datetime.date``. At the end of the procedure ``infer_expr_stmt`` will +return the ``date`` class. + +To *visualize* this (simplified): + +- ``InferenceState.infer_expr_stmt`` doesn't do much, because there's no assignment. +- ``Context.infer_node`` cares for resolving the dotted path +- ``InferenceState.find_types`` searches for global definitions of datetime, which + it finds in the definition of an import, by scanning the syntax tree. +- Using the import logic, the datetime module is found. +- Now ``find_types`` is called again by ``infer_node`` to find ``date`` + inside the datetime module. + +Now what would happen if we wanted ``datetime.date.foo.bar``? Two more +calls to ``find_types``. However the second call would be ignored, because the +first one would return nothing (there's no foo attribute in ``date``). + +What if the import would contain another ``ExprStmt`` like this:: + + from foo import bar + Date = bar.baz + +Well... You get it. Just another ``infer_expr_stmt`` recursion. It's really +easy. Python can obviously get way more complicated then this. To understand +tuple assignments, list comprehensions and everything else, a lot more code had +to be written. + +Jedi has been tested very well, so you can just start modifying code. It's best +to write your own test first for your "new" feature. Don't be scared of +breaking stuff. As long as the tests pass, you're most likely to be fine. + +I need to mention now that lazy type inference is really good because it +only *inferes* what needs to be *inferred*. All the statements and modules +that are not used are just being ignored. +""" +import parso +from jedi.file_io import FileIO + +from jedi import debug +from jedi import settings +from jedi.inference import imports +from jedi.inference import recursion +from jedi.inference.cache import inference_state_function_cache +from jedi.inference import helpers +from jedi.inference.names import TreeNameDefinition +from jedi.inference.base_value import ContextualizedNode, \ + ValueSet, iterate_values +from jedi.inference.value import ClassValue, FunctionValue +from jedi.inference.syntax_tree import infer_expr_stmt, \ + check_tuple_assignments, tree_name_to_values +from jedi.inference.imports import follow_error_node_imports_if_possible +from jedi.plugins import plugin_manager + + +class InferenceState: + def __init__(self, project, environment=None, script_path=None): + if environment is None: + environment = project.get_environment() + self.environment = environment + self.script_path = script_path + self.compiled_subprocess = environment.get_inference_state_subprocess(self) + self.grammar = environment.get_grammar() + + self.latest_grammar = parso.load_grammar(version='3.7') + self.memoize_cache = {} # for memoize decorators + self.module_cache = imports.ModuleCache() # does the job of `sys.modules`. + self.stub_module_cache = {} # Dict[Tuple[str, ...], Optional[ModuleValue]] + self.compiled_cache = {} # see `inference.compiled.create()` + self.inferred_element_counts = {} + self.mixed_cache = {} # see `inference.compiled.mixed._create()` + self.analysis = [] + self.dynamic_params_depth = 0 + self.is_analysis = False + self.project = project + self.access_cache = {} + self.allow_descriptor_getattr = False + self.flow_analysis_enabled = True + + self.reset_recursion_limitations() + + def import_module(self, import_names, sys_path=None, prefer_stubs=True): + return imports.import_module_by_names( + self, import_names, sys_path, prefer_stubs=prefer_stubs) + + @staticmethod + @plugin_manager.decorate() + def execute(value, arguments): + debug.dbg('execute: %s %s', value, arguments) + with debug.increase_indent_cm(): + value_set = value.py__call__(arguments=arguments) + debug.dbg('execute result: %s in %s', value_set, value) + return value_set + + # mypy doesn't suppport decorated propeties (https://github.com/python/mypy/issues/1362) + @property # type: ignore[misc] + @inference_state_function_cache() + def builtins_module(self): + module_name = 'builtins' + builtins_module, = self.import_module((module_name,), sys_path=()) + return builtins_module + + @property # type: ignore[misc] + @inference_state_function_cache() + def typing_module(self): + typing_module, = self.import_module(('typing',)) + return typing_module + + def reset_recursion_limitations(self): + self.recursion_detector = recursion.RecursionDetector() + self.execution_recursion_detector = recursion.ExecutionRecursionDetector(self) + + def get_sys_path(self, **kwargs): + """Convenience function""" + return self.project._get_sys_path(self, **kwargs) + + def infer(self, context, name): + def_ = name.get_definition(import_name_always=True) + if def_ is not None: + type_ = def_.type + is_classdef = type_ == 'classdef' + if is_classdef or type_ == 'funcdef': + if is_classdef: + c = ClassValue(self, context, name.parent) + else: + c = FunctionValue.from_context(context, name.parent) + return ValueSet([c]) + + if type_ == 'expr_stmt': + is_simple_name = name.parent.type not in ('power', 'trailer') + if is_simple_name: + return infer_expr_stmt(context, def_, name) + if type_ == 'for_stmt': + container_types = context.infer_node(def_.children[3]) + cn = ContextualizedNode(context, def_.children[3]) + for_types = iterate_values(container_types, cn) + n = TreeNameDefinition(context, name) + return check_tuple_assignments(n, for_types) + if type_ in ('import_from', 'import_name'): + return imports.infer_import(context, name) + if type_ == 'with_stmt': + return tree_name_to_values(self, context, name) + elif type_ == 'param': + return context.py__getattribute__(name.value, position=name.end_pos) + elif type_ == 'namedexpr_test': + return context.infer_node(def_) + else: + result = follow_error_node_imports_if_possible(context, name) + if result is not None: + return result + + return helpers.infer_call_of_leaf(context, name) + + def parse_and_get_code(self, code=None, path=None, + use_latest_grammar=False, file_io=None, **kwargs): + if code is None: + if file_io is None: + file_io = FileIO(path) + code = file_io.read() + # We cannot just use parso, because it doesn't use errors='replace'. + code = parso.python_bytes_to_unicode(code, encoding='utf-8', errors='replace') + + if len(code) > settings._cropped_file_size: + code = code[:settings._cropped_file_size] + + grammar = self.latest_grammar if use_latest_grammar else self.grammar + return grammar.parse(code=code, path=path, file_io=file_io, **kwargs), code + + def parse(self, *args, **kwargs): + return self.parse_and_get_code(*args, **kwargs)[0] diff --git a/shared/package-files/a0/a0bc9df55e4987883b268a5074fbb0dad18bbef43b6707479bf9241de710d9f8/rng_prims.py b/shared/package-files/a0/a0bc9df55e4987883b268a5074fbb0dad18bbef43b6707479bf9241de710d9f8/rng_prims.py new file mode 100644 index 0000000000000000000000000000000000000000..1a149047e697b36ff2dc31a92f1f8639471906cc --- /dev/null +++ b/shared/package-files/a0/a0bc9df55e4987883b268a5074fbb0dad18bbef43b6707479bf9241de710d9f8/rng_prims.py @@ -0,0 +1,268 @@ +from typing import Optional, Tuple + +import torch +import torch.utils._pytree as pytree +from torch import _prims +from torch._C import DispatchKey +from torch._higher_order_ops.utils import autograd_not_implemented +from torch._ops import HigherOrderOperator + +from torch._prims_common import CUDARngStateHelper, make_contiguous_strides_for +from torch._prims_common.wrappers import backwards_not_supported +from torch._subclasses.fake_tensor import FakeTensorMode +from torch.fx.experimental.proxy_tensor import ( + disable_proxy_modes_tracing, + ProxyTorchDispatchMode, + track_tensor_tree, +) +from torch.types import _device, _dtype + + +rngprim_namespace = "rngprims" +rngprim = torch.library.Library(rngprim_namespace, "DEF") +rngprim_impl = torch.library.Library( + rngprim_namespace, "IMPL", "CompositeExplicitAutograd" +) +rngprim_autograd_impl = torch.library.Library(rngprim_namespace, "IMPL", "Autograd") +rngprim_meta_impl = torch.library.Library(rngprim_namespace, "IMPL", "Meta") + + +def throw_on_non_cuda(device): + raise RuntimeError( + f"You are trying to functionalize a {device.type} RNG operator but {device.type} does not " + f"use Philox/counter-based RNG. Therefore, functionalizing a {device.type} RNG operator is " + "not supported. We are discussing the possibility of a Philox-based RNG implementation for CPU." + ) + + +def register_rng_prim(name, schema, impl_aten, impl_meta, doc, tags=None): + rngprim.define(schema) + rngprim_impl.impl(name, impl_aten) + rngprim_meta_impl.impl(name, impl_meta) + + prim_packet = getattr(torch._ops.ops.rngprims, name) + prim = prim_packet.default + if tags: + prim._tags = tags + + rngprim_autograd_impl.impl(name, backwards_not_supported(prim)) + + for p in (prim_packet, prim): + p.__doc__ = doc + p.return_type = torch._prims_common.RETURN_TYPE.NEW # type: ignore[attr-defined] + + p.schema = schema + p.impl_aten = impl_aten + p.prim_meta_impl = impl_meta + + +# Philox rand offsets could be shared in future with other philox ops, so +# keeping these functions in global scope. +def philox_rand_offset_meta( + shape: torch.Size, +): + return _prims.TensorLike(torch.tensor(0, dtype=torch.int64)) + + +def philox_rand_offset( + shape: torch.Size, +): + # For impl, look at the function calc_execution_policy in the file + # aten/src/ATen/native/cuda/DistributionTemplates.h. The impl was copied at + # commit hash 72aa0667bd16707d50eb8fa337092a1f5d11dfb6 + numel_scalar = 1 + for dim_size in shape: + numel_scalar *= dim_size + numel = torch.scalar_tensor(numel_scalar, dtype=torch.int64) + + block_size = 256 + unroll = 4 + curand4_engine_calls = 4 + device_property = torch.cuda.get_device_properties(torch.cuda.current_device()) + blocks_per_sm = device_property.max_threads_per_multi_processor // block_size + grid_size = (numel + block_size - 1) // block_size + grid_size = min(grid_size, device_property.multi_processor_count * blocks_per_sm) + offset = ( + (numel - 1) // (block_size * grid_size * unroll) + 1 + ) * curand4_engine_calls + return offset + + +def register_philox_rand(): + name = "philox_rand" + schema = "philox_rand(SymInt[] size, Tensor seed, Tensor offset, int[]? stride, Device? device=None, ScalarType? dtype=None) -> (Tensor, Tensor)" # noqa: B950 + + def _philox_rand_meta( + shape: torch.Size, + seed: torch.Tensor, + offset: torch.Tensor, + stride: Optional[Tuple[int, ...]], + device: _device, + dtype: _dtype, + ): + # stride arg will be useful for distributed usecase. Currently, its unused. + assert stride is None + stride = make_contiguous_strides_for(shape) + random_values = _prims.TensorMeta( + shape=shape, strides=stride, dtype=dtype, device=device + ) + offset = philox_rand_offset_meta(shape) + return (random_values, offset) + + def _philox_rand( + shape: torch.Size, + seed: torch.Tensor, + offset: torch.Tensor, + stride: Optional[Tuple[int, ...]], + device: _device, + dtype: _dtype, + ): + # stride arg will be useful for distributed usecase. Currently, its unused. + assert stride is None + if device.type == "cpu": + devices = [] + else: + devices = [device] + + if device.type != "cuda": + raise throw_on_non_cuda(device) + + with torch.random.fork_rng(devices): + CUDARngStateHelper.set_torch_state_tensor(seed, offset) + random_values = torch.rand(shape, device=device, dtype=dtype) + + return random_values, philox_rand_offset(shape) + + register_rng_prim( + name=name, + schema=schema, + impl_aten=_philox_rand, + impl_meta=_philox_rand_meta, + doc="Philox based stateless rand operator", + tags=(torch.Tag.nondeterministic_seeded,), + ) + + +def get_device(args, kwargs): + if kwargs.get("device"): + device = kwargs.get("device") + if isinstance(device, str): + device = torch.device(device) + return device.type + + devices = {arg.device.type for arg in args if isinstance(arg, torch.Tensor)} + if any(dev == "cuda" for dev in devices): + return "cuda" + elif any(dev == "cpu" for dev in devices): + return "cpu" + return None + + +def register_run_and_save_rng_state_op(): + run_and_save_rng_state = HigherOrderOperator("run_and_save_rng_state") + + run_and_save_rng_state.py_impl(DispatchKey.Autograd)( + autograd_not_implemented(run_and_save_rng_state, deferred_error=True) + ) + + @run_and_save_rng_state.py_impl(DispatchKey.CUDA) + def impl_cuda(op, *args, **kwargs): + return torch.cuda.get_rng_state(), op(*args, **kwargs) + + @run_and_save_rng_state.py_impl(DispatchKey.CPU) + def impl_cpu(op, *args, **kwargs): + return torch.get_rng_state(), op(*args, **kwargs) + + @run_and_save_rng_state.py_impl(DispatchKey.BackendSelect) + def impl_backend_select(op, *args, **kwargs): + impl_map = {"cuda": impl_cuda, "cpu": impl_cpu} + device = get_device(args, kwargs) + assert device in impl_map, f"Backend not supported for {device}" + impl = impl_map[device] + return impl(op, *args, **kwargs) + + @run_and_save_rng_state.py_impl(FakeTensorMode) + def impl_fake_tensor_mode(mode, op, *args, **kwargs): + # Check device to call the right impl + with mode: + return impl_backend_select(op, *args, **kwargs) + + @run_and_save_rng_state.py_impl(ProxyTorchDispatchMode) + def impl_proxy_dispatch_mode(mode, op, *args, **kwargs): + if mode.enable_tracing: + out = impl_backend_select(op, *args, **kwargs) + proxy_args = pytree.tree_map(mode.tracer.unwrap_proxy, (op, *args)) + proxy_kwargs = pytree.tree_map(mode.tracer.unwrap_proxy, kwargs) + out_proxy = mode.tracer.create_proxy( + "call_function", run_and_save_rng_state, proxy_args, proxy_kwargs + ) + return track_tensor_tree(out, out_proxy, constant=None, tracer=mode.tracer) + else: + return run_and_save_rng_state(op, *args, **kwargs) + + return run_and_save_rng_state + + +def register_run_with_rng_state_op(): + run_with_rng_state = HigherOrderOperator("run_with_rng_state") + + run_with_rng_state.py_impl(DispatchKey.Autograd)( + autograd_not_implemented(run_with_rng_state, deferred_error=True) + ) + + @run_with_rng_state.py_impl(DispatchKey.CUDA) + def impl_cuda(rng_state, op, *args, **kwargs): + current_state = torch.cuda.get_rng_state() + torch.cuda.set_rng_state(rng_state.cpu()) + out = op(*args, **kwargs) + torch.cuda.set_rng_state(current_state) + return out + + @run_with_rng_state.py_impl(DispatchKey.CPU) + def impl_cpu(rng_state, op, *args, **kwargs): + current_state = torch.get_rng_state() + torch.set_rng_state(rng_state) + out = op(*args, **kwargs) + torch.set_rng_state(current_state) + return out + + @run_with_rng_state.py_impl(ProxyTorchDispatchMode) + def impl_proxy_dispatch_mode(mode, rng_state, op, *args, **kwargs): + if mode.enable_tracing: + with disable_proxy_modes_tracing(): + out = run_with_rng_state(rng_state, op, *args, **kwargs) + proxy_args = pytree.tree_map( + mode.tracer.unwrap_proxy, (rng_state, op, *args) + ) + proxy_kwargs = pytree.tree_map(mode.tracer.unwrap_proxy, kwargs) + out_proxy = mode.tracer.create_proxy( + "call_function", run_with_rng_state, proxy_args, proxy_kwargs + ) + return track_tensor_tree(out, out_proxy, constant=None, tracer=mode.tracer) + else: + return run_with_rng_state(rng_state, op, *args, **kwargs) + + @run_with_rng_state.py_impl(DispatchKey.BackendSelect) + def impl_backend_select(rng_state, op, *args, **kwargs): + impl_map = {"cuda": impl_cuda, "cpu": impl_cpu} + device = get_device(args, kwargs) + assert device in impl_map, f"Backend not supported for {device}" + impl = impl_map[device] + return impl(rng_state, op, *args, **kwargs) + + @run_with_rng_state.py_impl(FakeTensorMode) + def impl_fake_tensor_mode(mode, rng_state, op, *args, **kwargs): + # Skip setting the set_rng_state as it does not work well with fake tensors. + # And it does not matter for the fake tensor mode. + with mode: + return op(*args, **kwargs) + + return run_with_rng_state + + +run_and_save_rng_state = register_run_and_save_rng_state_op() +run_with_rng_state = register_run_with_rng_state_op() + + +def register_rng_prims(): + register_philox_rand() diff --git a/shared/package-files/a0/a0bff08438e43ed1f3a3a1c92e210f9461ddaceab38e5bbcd60faf95a3644410/ffmpeg.py b/shared/package-files/a0/a0bff08438e43ed1f3a3a1c92e210f9461ddaceab38e5bbcd60faf95a3644410/ffmpeg.py new file mode 100644 index 0000000000000000000000000000000000000000..ca8374ea07de9c9c06615f773d62b1ca910efb95 --- /dev/null +++ b/shared/package-files/a0/a0bff08438e43ed1f3a3a1c92e210f9461ddaceab38e5bbcd60faf95a3644410/ffmpeg.py @@ -0,0 +1,334 @@ +import os +import re +import sys +from typing import BinaryIO, Optional, Tuple, Union + +import torch +import torchaudio + +from .backend import Backend +from .common import AudioMetaData + +InputType = Union[BinaryIO, str, os.PathLike] + + +def info_audio( + src: InputType, + format: Optional[str], + buffer_size: int = 4096, +) -> AudioMetaData: + s = torchaudio.io.StreamReader(src, format, None, buffer_size) + sinfo = s.get_src_stream_info(s.default_audio_stream) + if sinfo.num_frames == 0: + waveform = _load_audio(s) + num_frames = waveform.size(1) + else: + num_frames = sinfo.num_frames + return AudioMetaData( + int(sinfo.sample_rate), + num_frames, + sinfo.num_channels, + sinfo.bits_per_sample, + sinfo.codec.upper(), + ) + + +def _get_load_filter( + frame_offset: int = 0, + num_frames: int = -1, + convert: bool = True, +) -> Optional[str]: + if frame_offset < 0: + raise RuntimeError("Invalid argument: frame_offset must be non-negative. Found: {}".format(frame_offset)) + if num_frames == 0 or num_frames < -1: + raise RuntimeError("Invalid argument: num_frames must be -1 or greater than 0. Found: {}".format(num_frames)) + + # All default values -> no filter + if frame_offset == 0 and num_frames == -1 and not convert: + return None + # Only convert + aformat = "aformat=sample_fmts=fltp" + if frame_offset == 0 and num_frames == -1 and convert: + return aformat + # At least one of frame_offset or num_frames has non-default value + if num_frames > 0: + atrim = "atrim=start_sample={}:end_sample={}".format(frame_offset, frame_offset + num_frames) + else: + atrim = "atrim=start_sample={}".format(frame_offset) + if not convert: + return atrim + return "{},{}".format(atrim, aformat) + + +def _load_audio( + s: "torchaudio.io.StreamReader", + filter: Optional[str] = None, + channels_first: bool = True, +) -> torch.Tensor: + s.add_audio_stream(-1, -1, filter_desc=filter) + s.process_all_packets() + chunk = s.pop_chunks()[0] + if chunk is None: + raise RuntimeError("Failed to decode audio.") + waveform = chunk._elem + return waveform.T if channels_first else waveform + + +def load_audio( + src: InputType, + frame_offset: int = 0, + num_frames: int = -1, + convert: bool = True, + channels_first: bool = True, + format: Optional[str] = None, + buffer_size: int = 4096, +) -> Tuple[torch.Tensor, int]: + if hasattr(src, "read") and format == "vorbis": + format = "ogg" + s = torchaudio.io.StreamReader(src, format, None, buffer_size) + sample_rate = int(s.get_src_stream_info(s.default_audio_stream).sample_rate) + filter = _get_load_filter(frame_offset, num_frames, convert) + waveform = _load_audio(s, filter, channels_first) + return waveform, sample_rate + + +def _get_sample_format(dtype: torch.dtype) -> str: + dtype_to_format = { + torch.uint8: "u8", + torch.int16: "s16", + torch.int32: "s32", + torch.int64: "s64", + torch.float32: "flt", + torch.float64: "dbl", + } + format = dtype_to_format.get(dtype) + if format is None: + raise ValueError(f"No format found for dtype {dtype}; dtype must be one of {list(dtype_to_format.keys())}.") + return format + + +def _native_endianness() -> str: + if sys.byteorder == "little": + return "le" + else: + return "be" + + +def _get_encoder_for_wav(encoding: str, bits_per_sample: int) -> str: + if bits_per_sample not in {None, 8, 16, 24, 32, 64}: + raise ValueError(f"Invalid bits_per_sample {bits_per_sample} for WAV encoding.") + endianness = _native_endianness() + if not encoding: + if not bits_per_sample: + # default to PCM S16 + return f"pcm_s16{endianness}" + if bits_per_sample == 8: + return "pcm_u8" + return f"pcm_s{bits_per_sample}{endianness}" + if encoding == "PCM_S": + if not bits_per_sample: + bits_per_sample = 16 + if bits_per_sample == 8: + raise ValueError("For WAV signed PCM, 8-bit encoding is not supported.") + return f"pcm_s{bits_per_sample}{endianness}" + if encoding == "PCM_U": + if bits_per_sample in (None, 8): + return "pcm_u8" + raise ValueError("For WAV unsigned PCM, only 8-bit encoding is supported.") + if encoding == "PCM_F": + if not bits_per_sample: + bits_per_sample = 32 + if bits_per_sample in (32, 64): + return f"pcm_f{bits_per_sample}{endianness}" + raise ValueError("For WAV float PCM, only 32- and 64-bit encodings are supported.") + if encoding == "ULAW": + if bits_per_sample in (None, 8): + return "pcm_mulaw" + raise ValueError("For WAV PCM mu-law, only 8-bit encoding is supported.") + if encoding == "ALAW": + if bits_per_sample in (None, 8): + return "pcm_alaw" + raise ValueError("For WAV PCM A-law, only 8-bit encoding is supported.") + raise ValueError(f"WAV encoding {encoding} is not supported.") + + +def _get_flac_sample_fmt(bps): + if bps is None or bps == 16: + return "s16" + if bps == 24: + return "s32" + raise ValueError(f"FLAC only supports bits_per_sample values of 16 and 24 ({bps} specified).") + + +def _parse_save_args( + ext: Optional[str], + format: Optional[str], + encoding: Optional[str], + bps: Optional[int], +): + # torchaudio's save function accepts the followings, which do not 1to1 map + # to FFmpeg. + # + # - format: audio format + # - bits_per_sample: encoder sample format + # - encoding: such as PCM_U8. + # + # In FFmpeg, format is specified with the following three (and more) + # + # - muxer: could be audio format or container format. + # the one we passed to the constructor of StreamWriter + # - encoder: the audio encoder used to encode audio + # - encoder sample format: the format used by encoder to encode audio. + # + # If encoder sample format is different from source sample format, StreamWriter + # will insert a filter automatically. + # + def _type(spec): + # either format is exactly the specified one + # or extension matches to the spec AND there is no format override. + return format == spec or (format is None and ext == spec) + + if _type("wav") or _type("amb"): + # wav is special because it supports different encoding through encoders + # each encoder only supports one encoder format + # + # amb format is a special case originated from libsox. + # It is basically a WAV format, with slight modification. + # https://github.com/chirlu/sox/commit/4a4ea33edbca5972a1ed8933cc3512c7302fa67a#diff-39171191a858add9df87f5f210a34a776ac2c026842ae6db6ce97f5e68836795 + # It is a format so that decoders will recognize it as ambisonic. + # https://www.ambisonia.com/Members/mleese/file-format-for-b-format/ + # FFmpeg does not recognize amb because it is basically a WAV format. + muxer = "wav" + encoder = _get_encoder_for_wav(encoding, bps) + sample_fmt = None + elif _type("vorbis"): + # FFpmeg does not recognize vorbis extension, while libsox used to do. + # For the sake of bakward compatibility, (and the simplicity), + # we support the case where users want to do save("foo.vorbis") + muxer = "ogg" + encoder = "vorbis" + sample_fmt = None + else: + muxer = format + encoder = None + sample_fmt = None + if _type("flac"): + sample_fmt = _get_flac_sample_fmt(bps) + if _type("ogg"): + sample_fmt = _get_flac_sample_fmt(bps) + return muxer, encoder, sample_fmt + + +def save_audio( + uri: InputType, + src: torch.Tensor, + sample_rate: int, + channels_first: bool = True, + format: Optional[str] = None, + encoding: Optional[str] = None, + bits_per_sample: Optional[int] = None, + buffer_size: int = 4096, + compression: Optional[torchaudio.io.CodecConfig] = None, +) -> None: + ext = None + if hasattr(uri, "write"): + if format is None: + raise RuntimeError("'format' is required when saving to file object.") + else: + uri = os.path.normpath(uri) + if tokens := str(uri).split(".")[1:]: + ext = tokens[-1].lower() + + muxer, encoder, enc_fmt = _parse_save_args(ext, format, encoding, bits_per_sample) + + if channels_first: + src = src.T + + s = torchaudio.io.StreamWriter(uri, format=muxer, buffer_size=buffer_size) + s.add_audio_stream( + sample_rate, + num_channels=src.size(-1), + format=_get_sample_format(src.dtype), + encoder=encoder, + encoder_format=enc_fmt, + codec_config=compression, + ) + with s.open(): + s.write_audio_chunk(0, src) + + +def _map_encoding(encoding: str) -> str: + for dst in ["PCM_S", "PCM_U", "PCM_F"]: + if dst in encoding: + return dst + if encoding == "PCM_MULAW": + return "ULAW" + elif encoding == "PCM_ALAW": + return "ALAW" + return encoding + + +def _get_bits_per_sample(encoding: str, bits_per_sample: int) -> str: + if m := re.search(r"PCM_\w(\d+)\w*", encoding): + return int(m.group(1)) + elif encoding in ["PCM_ALAW", "PCM_MULAW"]: + return 8 + return bits_per_sample + + +class FFmpegBackend(Backend): + @staticmethod + def info(uri: InputType, format: Optional[str], buffer_size: int = 4096) -> AudioMetaData: + metadata = info_audio(uri, format, buffer_size) + metadata.bits_per_sample = _get_bits_per_sample(metadata.encoding, metadata.bits_per_sample) + metadata.encoding = _map_encoding(metadata.encoding) + return metadata + + @staticmethod + def load( + uri: InputType, + frame_offset: int = 0, + num_frames: int = -1, + normalize: bool = True, + channels_first: bool = True, + format: Optional[str] = None, + buffer_size: int = 4096, + ) -> Tuple[torch.Tensor, int]: + return load_audio(uri, frame_offset, num_frames, normalize, channels_first, format) + + @staticmethod + def save( + uri: InputType, + src: torch.Tensor, + sample_rate: int, + channels_first: bool = True, + format: Optional[str] = None, + encoding: Optional[str] = None, + bits_per_sample: Optional[int] = None, + buffer_size: int = 4096, + compression: Optional[Union[torchaudio.io.CodecConfig, float, int]] = None, + ) -> None: + if not isinstance(compression, (torchaudio.io.CodecConfig, type(None))): + raise ValueError( + "FFmpeg backend expects non-`None` value for argument `compression` to be of ", + f"type `torchaudio.io.CodecConfig`, but received value of type {type(compression)}", + ) + save_audio( + uri, + src, + sample_rate, + channels_first, + format, + encoding, + bits_per_sample, + buffer_size, + compression, + ) + + @staticmethod + def can_decode(uri: InputType, format: Optional[str]) -> bool: + return True + + @staticmethod + def can_encode(uri: InputType, format: Optional[str]) -> bool: + return True diff --git a/shared/package-files/a0/a0c214dfcc4b94ea94b7bc21c414b2c9602253aee507e57ae511a721eba53c10/cholesky_native.h b/shared/package-files/a0/a0c214dfcc4b94ea94b7bc21c414b2c9602253aee507e57ae511a721eba53c10/cholesky_native.h new file mode 100644 index 0000000000000000000000000000000000000000..a624b4e2dabd55b0086d5d64e4a1a5bc69664dfa --- /dev/null +++ b/shared/package-files/a0/a0c214dfcc4b94ea94b7bc21c414b2c9602253aee507e57ae511a721eba53c10/cholesky_native.h @@ -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 cholesky(const at::Tensor & self, bool upper=false); +TORCH_API at::Tensor & cholesky_out(const at::Tensor & self, bool upper, at::Tensor & out); +} // namespace native +} // namespace at diff --git a/shared/package-files/a0/a0c63d797358b8ac1ff570cf2cb97865f735fd37c8cbd10046436f945fd535e2/_linalg_solve_ex_meta_dispatch.h b/shared/package-files/a0/a0c63d797358b8ac1ff570cf2cb97865f735fd37c8cbd10046436f945fd535e2/_linalg_solve_ex_meta_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..94f38f038d2997977c3fb29e115637e999c1ed81 --- /dev/null +++ b/shared/package-files/a0/a0c63d797358b8ac1ff570cf2cb97865f735fd37c8cbd10046436f945fd535e2/_linalg_solve_ex_meta_dispatch.h @@ -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 ::std::tuple _linalg_solve_ex(const at::Tensor & A, const at::Tensor & B, bool left=true, bool check_errors=false); +TORCH_API ::std::tuple _linalg_solve_ex_out(at::Tensor & result, at::Tensor & LU, at::Tensor & pivots, at::Tensor & info, const at::Tensor & A, const at::Tensor & B, bool left=true, bool check_errors=false); +TORCH_API ::std::tuple _linalg_solve_ex_outf(const at::Tensor & A, const at::Tensor & B, bool left, bool check_errors, at::Tensor & result, at::Tensor & LU, at::Tensor & pivots, at::Tensor & info); + +} // namespace meta +} // namespace at diff --git a/shared/package-files/a0/a0d13e2d768f9cd1f6d1353b237a5fb4f0ab9b8af599b6a25af6bc4263501043/views.py b/shared/package-files/a0/a0d13e2d768f9cd1f6d1353b237a5fb4f0ab9b8af599b6a25af6bc4263501043/views.py new file mode 100644 index 0000000000000000000000000000000000000000..740ff2382390daf183cf103e804e74ac10807962 --- /dev/null +++ b/shared/package-files/a0/a0d13e2d768f9cd1f6d1353b237a5fb4f0ab9b8af599b6a25af6bc4263501043/views.py @@ -0,0 +1,51 @@ +# Copyright (C) 2012 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause +"""Handles all display/view logic.""" +from typing import Sequence + +from .types import ChannelNotice + + +def print_notices(channel_notices: Sequence[ChannelNotice]): + """ + Accepts a list of channel notice responses and prints a display. + + Args: + channel_notices: A sequence of ChannelNotice objects. + """ + current_channel = None + + for channel_notice in channel_notices: + if current_channel != channel_notice.channel_name: + print() + channel_header = "Channel" + channel_header += ( + f' "{channel_notice.channel_name}" has the following notices:' + ) + print(channel_header) + current_channel = channel_notice.channel_name + print_notice_message(channel_notice) + print() + + +def print_notice_message(notice: ChannelNotice, indent: str = " ") -> None: + """Prints a single channel notice.""" + timestamp = f"{notice.created_at:%c}" if notice.created_at else "" + + level = f"[{notice.level}] -- {timestamp}" + + print(f"{indent}{level}\n{indent}{notice.message}") + + +def print_more_notices_message( + total_notices: int, displayed_notices: int, viewed_notices: int +) -> None: + """Conditionally shows a message informing users how many more message there are.""" + notices_not_shown = total_notices - viewed_notices - displayed_notices + + if notices_not_shown > 0: + if notices_not_shown > 1: + msg = f"There are {notices_not_shown} more messages. To retrieve them run:\n\n" + else: + msg = f"There is {notices_not_shown} more message. To retrieve it run:\n\n" + print(f"{msg}conda notices\n") diff --git a/shared/package-files/a0/a0d8080cea16f86a416d7c5bb70d394969c4f08eec1a2b25626077303a20c01e/test_assumptions_2.py b/shared/package-files/a0/a0d8080cea16f86a416d7c5bb70d394969c4f08eec1a2b25626077303a20c01e/test_assumptions_2.py new file mode 100644 index 0000000000000000000000000000000000000000..493fe4a7ed70301754ad2cfe181c5acf30433768 --- /dev/null +++ b/shared/package-files/a0/a0d8080cea16f86a416d7c5bb70d394969c4f08eec1a2b25626077303a20c01e/test_assumptions_2.py @@ -0,0 +1,35 @@ +""" +rename this to test_assumptions.py when the old assumptions system is deleted +""" +from sympy.abc import x, y +from sympy.assumptions.assume import global_assumptions +from sympy.assumptions.ask import Q +from sympy.printing import pretty + + +def test_equal(): + """Test for equality""" + assert Q.positive(x) == Q.positive(x) + assert Q.positive(x) != ~Q.positive(x) + assert ~Q.positive(x) == ~Q.positive(x) + + +def test_pretty(): + assert pretty(Q.positive(x)) == "Q.positive(x)" + assert pretty( + {Q.positive, Q.integer}) == "{Q.integer, Q.positive}" + + +def test_global(): + """Test for global assumptions""" + global_assumptions.add(x > 0) + assert (x > 0) in global_assumptions + global_assumptions.remove(x > 0) + assert not (x > 0) in global_assumptions + # same with multiple of assumptions + global_assumptions.add(x > 0, y > 0) + assert (x > 0) in global_assumptions + assert (y > 0) in global_assumptions + global_assumptions.clear() + assert not (x > 0) in global_assumptions + assert not (y > 0) in global_assumptions diff --git a/shared/package-files/a0/a0db428319939a488cd43894c639f34de0310a3ffb8e379ec2d6f2fb781da28d/util.py b/shared/package-files/a0/a0db428319939a488cd43894c639f34de0310a3ffb8e379ec2d6f2fb781da28d/util.py new file mode 100644 index 0000000000000000000000000000000000000000..969334424936559767b0bca87093acfec52f9763 --- /dev/null +++ b/shared/package-files/a0/a0db428319939a488cd43894c639f34de0310a3ffb8e379ec2d6f2fb781da28d/util.py @@ -0,0 +1,30 @@ +from pandas import ( + Categorical, + Index, + Series, +) +from pandas.core.arrays import BaseMaskedArray + + +def get_array(obj, col=None): + """ + Helper method to get array for a DataFrame column or a Series. + + Equivalent of df[col].values, but without going through normal getitem, + which triggers tracking references / CoW (and we might be testing that + this is done by some other operation). + """ + if isinstance(obj, Index): + arr = obj._values + elif isinstance(obj, Series) and (col is None or obj.name == col): + arr = obj._values + else: + assert col is not None + icol = obj.columns.get_loc(col) + assert isinstance(icol, int) + arr = obj._get_column_array(icol) + if isinstance(arr, BaseMaskedArray): + return arr._data + elif isinstance(arr, Categorical): + return arr + return getattr(arr, "_ndarray", arr) diff --git a/shared/package-files/a0/a0ddb1fb1d6aca9e565512be8c5f6b563cd02078948cd3b9440c1f45341245d0/exceptions.pyi b/shared/package-files/a0/a0ddb1fb1d6aca9e565512be8c5f6b563cd02078948cd3b9440c1f45341245d0/exceptions.pyi new file mode 100644 index 0000000000000000000000000000000000000000..728db4a7b94d2c375bf1f559c8dad3c2b6c475ec --- /dev/null +++ b/shared/package-files/a0/a0ddb1fb1d6aca9e565512be8c5f6b563cd02078948cd3b9440c1f45341245d0/exceptions.pyi @@ -0,0 +1,23 @@ +from typing import Any, Optional, Text + +class PynamoDBException(Exception): + msg: str + cause: Any + def __init__(self, msg: Optional[Text] = ..., cause: Optional[Exception] = ...) -> None: ... + +class PynamoDBConnectionError(PynamoDBException): ... +class DeleteError(PynamoDBConnectionError): ... +class QueryError(PynamoDBConnectionError): ... +class ScanError(PynamoDBConnectionError): ... +class PutError(PynamoDBConnectionError): ... +class UpdateError(PynamoDBConnectionError): ... +class GetError(PynamoDBConnectionError): ... +class TableError(PynamoDBConnectionError): ... +class DoesNotExist(PynamoDBException): ... + +class TableDoesNotExist(PynamoDBException): + def __init__(self, table_name) -> None: ... + +class VerboseClientError(Exception): + MSG_TEMPLATE: Any + def __init__(self, error_response, operation_name, verbose_properties: Optional[Any] = ...) -> None: ... diff --git a/shared/package-files/a0/a0e517bf2ef3b11fb15462326be4f99987dd13f55cc30164b2b3c121bd55ce16/_foreach_log2_cuda_dispatch.h b/shared/package-files/a0/a0e517bf2ef3b11fb15462326be4f99987dd13f55cc30164b2b3c121bd55ce16/_foreach_log2_cuda_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..404ef09f9ba20807eeffeb22ef366b8c8373bd17 --- /dev/null +++ b/shared/package-files/a0/a0e517bf2ef3b11fb15462326be4f99987dd13f55cc30164b2b3c121bd55ce16/_foreach_log2_cuda_dispatch.h @@ -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 cuda { + +TORCH_API ::std::vector _foreach_log2(at::TensorList self); +TORCH_API void _foreach_log2_(at::TensorList self); + +} // namespace cuda +} // namespace at diff --git a/shared/package-files/a0/a0e5ebd53ab962846e6ca7fa2936399170141cd48b75681b4ba66f782feb5523/css_match.py b/shared/package-files/a0/a0e5ebd53ab962846e6ca7fa2936399170141cd48b75681b4ba66f782feb5523/css_match.py new file mode 100644 index 0000000000000000000000000000000000000000..0b0ecfa9d2d7305860f226a06ca28d3ccfc8702b --- /dev/null +++ b/shared/package-files/a0/a0e5ebd53ab962846e6ca7fa2936399170141cd48b75681b4ba66f782feb5523/css_match.py @@ -0,0 +1,1582 @@ +"""CSS matcher.""" +from __future__ import annotations +from datetime import datetime +from . import util +import re +from . import css_types as ct +import unicodedata +import bs4 # type: ignore[import] +from typing import Iterator, Iterable, Any, Callable, Sequence, cast # noqa: F401 + +# Empty tag pattern (whitespace okay) +RE_NOT_EMPTY = re.compile('[^ \t\r\n\f]') + +RE_NOT_WS = re.compile('[^ \t\r\n\f]+') + +# Relationships +REL_PARENT = ' ' +REL_CLOSE_PARENT = '>' +REL_SIBLING = '~' +REL_CLOSE_SIBLING = '+' + +# Relationships for :has() (forward looking) +REL_HAS_PARENT = ': ' +REL_HAS_CLOSE_PARENT = ':>' +REL_HAS_SIBLING = ':~' +REL_HAS_CLOSE_SIBLING = ':+' + +NS_XHTML = 'http://www.w3.org/1999/xhtml' +NS_XML = 'http://www.w3.org/XML/1998/namespace' + +DIR_FLAGS = ct.SEL_DIR_LTR | ct.SEL_DIR_RTL +RANGES = ct.SEL_IN_RANGE | ct.SEL_OUT_OF_RANGE + +DIR_MAP = { + 'ltr': ct.SEL_DIR_LTR, + 'rtl': ct.SEL_DIR_RTL, + 'auto': 0 +} + +RE_NUM = re.compile(r"^(?P-?(?:[0-9]{1,}(\.[0-9]+)?|\.[0-9]+))$") +RE_TIME = re.compile(r'^(?P[0-9]{2}):(?P[0-9]{2})$') +RE_MONTH = re.compile(r'^(?P[0-9]{4,})-(?P[0-9]{2})$') +RE_WEEK = re.compile(r'^(?P[0-9]{4,})-W(?P[0-9]{2})$') +RE_DATE = re.compile(r'^(?P[0-9]{4,})-(?P[0-9]{2})-(?P[0-9]{2})$') +RE_DATETIME = re.compile( + r'^(?P[0-9]{4,})-(?P[0-9]{2})-(?P[0-9]{2})T(?P[0-9]{2}):(?P[0-9]{2})$' +) +RE_WILD_STRIP = re.compile(r'(?:(?:-\*-)(?:\*(?:-|$))*|-\*$)') + +MONTHS_30 = (4, 6, 9, 11) # April, June, September, and November +FEB = 2 +SHORT_MONTH = 30 +LONG_MONTH = 31 +FEB_MONTH = 28 +FEB_LEAP_MONTH = 29 +DAYS_IN_WEEK = 7 + + +class _FakeParent: + """ + Fake parent class. + + When we have a fragment with no `BeautifulSoup` document object, + we can't evaluate `nth` selectors properly. Create a temporary + fake parent so we can traverse the root element as a child. + """ + + def __init__(self, element: bs4.Tag) -> None: + """Initialize.""" + + self.contents = [element] + + def __len__(self) -> bs4.PageElement: + """Length.""" + + return len(self.contents) + + +class _DocumentNav: + """Navigate a Beautiful Soup document.""" + + @classmethod + def assert_valid_input(cls, tag: Any) -> None: + """Check if valid input tag or document.""" + + # Fail on unexpected types. + if not cls.is_tag(tag): + raise TypeError(f"Expected a BeautifulSoup 'Tag', but instead received type {type(tag)}") + + @staticmethod + def is_doc(obj: bs4.Tag) -> bool: + """Is `BeautifulSoup` object.""" + return isinstance(obj, bs4.BeautifulSoup) + + @staticmethod + def is_tag(obj: bs4.PageElement) -> bool: + """Is tag.""" + return isinstance(obj, bs4.Tag) + + @staticmethod + def is_declaration(obj: bs4.PageElement) -> bool: # pragma: no cover + """Is declaration.""" + return isinstance(obj, bs4.Declaration) + + @staticmethod + def is_cdata(obj: bs4.PageElement) -> bool: + """Is CDATA.""" + return isinstance(obj, bs4.CData) + + @staticmethod + def is_processing_instruction(obj: bs4.PageElement) -> bool: # pragma: no cover + """Is processing instruction.""" + return isinstance(obj, bs4.ProcessingInstruction) + + @staticmethod + def is_navigable_string(obj: bs4.PageElement) -> bool: + """Is navigable string.""" + return isinstance(obj, bs4.NavigableString) + + @staticmethod + def is_special_string(obj: bs4.PageElement) -> bool: + """Is special string.""" + return isinstance(obj, (bs4.Comment, bs4.Declaration, bs4.CData, bs4.ProcessingInstruction, bs4.Doctype)) + + @classmethod + def is_content_string(cls, obj: bs4.PageElement) -> bool: + """Check if node is content string.""" + + return cls.is_navigable_string(obj) and not cls.is_special_string(obj) + + @staticmethod + def create_fake_parent(el: bs4.Tag) -> _FakeParent: + """Create fake parent for a given element.""" + + return _FakeParent(el) + + @staticmethod + def is_xml_tree(el: bs4.Tag) -> bool: + """Check if element (or document) is from a XML tree.""" + + return bool(el._is_xml) + + def is_iframe(self, el: bs4.Tag) -> bool: + """Check if element is an `iframe`.""" + + return bool( + ((el.name if self.is_xml_tree(el) else util.lower(el.name)) == 'iframe') and + self.is_html_tag(el) # type: ignore[attr-defined] + ) + + def is_root(self, el: bs4.Tag) -> bool: + """ + Return whether element is a root element. + + We check that the element is the root of the tree (which we have already pre-calculated), + and we check if it is the root element under an `iframe`. + """ + + root = self.root and self.root is el # type: ignore[attr-defined] + if not root: + parent = self.get_parent(el) + root = parent is not None and self.is_html and self.is_iframe(parent) # type: ignore[attr-defined] + return root + + def get_contents(self, el: bs4.Tag, no_iframe: bool = False) -> Iterator[bs4.PageElement]: + """Get contents or contents in reverse.""" + if not no_iframe or not self.is_iframe(el): + yield from el.contents + + def get_children( + self, + el: bs4.Tag, + start: int | None = None, + reverse: bool = False, + tags: bool = True, + no_iframe: bool = False + ) -> Iterator[bs4.PageElement]: + """Get children.""" + + if not no_iframe or not self.is_iframe(el): + last = len(el.contents) - 1 + if start is None: + index = last if reverse else 0 + else: + index = start + end = -1 if reverse else last + 1 + incr = -1 if reverse else 1 + + if 0 <= index <= last: + while index != end: + node = el.contents[index] + index += incr + if not tags or self.is_tag(node): + yield node + + def get_descendants( + self, + el: bs4.Tag, + tags: bool = True, + no_iframe: bool = False + ) -> Iterator[bs4.PageElement]: + """Get descendants.""" + + if not no_iframe or not self.is_iframe(el): + next_good = None + for child in el.descendants: + + if next_good is not None: + if child is not next_good: + continue + next_good = None + + is_tag = self.is_tag(child) + + if no_iframe and is_tag and self.is_iframe(child): + if child.next_sibling is not None: + next_good = child.next_sibling + else: + last_child = child + while self.is_tag(last_child) and last_child.contents: + last_child = last_child.contents[-1] + next_good = last_child.next_element + yield child + if next_good is None: + break + # Coverage isn't seeing this even though it's executed + continue # pragma: no cover + + if not tags or is_tag: + yield child + + def get_parent(self, el: bs4.Tag, no_iframe: bool = False) -> bs4.Tag: + """Get parent.""" + + parent = el.parent + if no_iframe and parent is not None and self.is_iframe(parent): + parent = None + return parent + + @staticmethod + def get_tag_name(el: bs4.Tag) -> str | None: + """Get tag.""" + + return cast('str | None', el.name) + + @staticmethod + def get_prefix_name(el: bs4.Tag) -> str | None: + """Get prefix.""" + + return cast('str | None', el.prefix) + + @staticmethod + def get_uri(el: bs4.Tag) -> str | None: + """Get namespace `URI`.""" + + return cast('str | None', el.namespace) + + @classmethod + def get_next(cls, el: bs4.Tag, tags: bool = True) -> bs4.PageElement: + """Get next sibling tag.""" + + sibling = el.next_sibling + while tags and not cls.is_tag(sibling) and sibling is not None: + sibling = sibling.next_sibling + return sibling + + @classmethod + def get_previous(cls, el: bs4.Tag, tags: bool = True) -> bs4.PageElement: + """Get previous sibling tag.""" + + sibling = el.previous_sibling + while tags and not cls.is_tag(sibling) and sibling is not None: + sibling = sibling.previous_sibling + return sibling + + @staticmethod + def has_html_ns(el: bs4.Tag) -> bool: + """ + Check if element has an HTML namespace. + + This is a bit different than whether a element is treated as having an HTML namespace, + like we do in the case of `is_html_tag`. + """ + + ns = getattr(el, 'namespace') if el else None # noqa: B009 + return bool(ns and ns == NS_XHTML) + + @staticmethod + def split_namespace(el: bs4.Tag, attr_name: str) -> tuple[str | None, str | None]: + """Return namespace and attribute name without the prefix.""" + + return getattr(attr_name, 'namespace', None), getattr(attr_name, 'name', None) + + @classmethod + def normalize_value(cls, value: Any) -> str | Sequence[str]: + """Normalize the value to be a string or list of strings.""" + + # Treat `None` as empty string. + if value is None: + return '' + + # Pass through strings + if (isinstance(value, str)): + return value + + # If it's a byte string, convert it to Unicode, treating it as UTF-8. + if isinstance(value, bytes): + return value.decode("utf8") + + # BeautifulSoup supports sequences of attribute values, so make sure the children are strings. + if isinstance(value, Sequence): + new_value = [] + for v in value: + if not isinstance(v, (str, bytes)) and isinstance(v, Sequence): + # This is most certainly a user error and will crash and burn later. + # To keep things working, we'll do what we do with all objects, + # And convert them to strings. + new_value.append(str(v)) + else: + # Convert the child to a string + new_value.append(cast(str, cls.normalize_value(v))) + return new_value + + # Try and make anything else a string + return str(value) + + @classmethod + def get_attribute_by_name( + cls, + el: bs4.Tag, + name: str, + default: str | Sequence[str] | None = None + ) -> str | Sequence[str] | None: + """Get attribute by name.""" + + value = default + if el._is_xml: + try: + value = cls.normalize_value(el.attrs[name]) + except KeyError: + pass + else: + for k, v in el.attrs.items(): + if util.lower(k) == name: + value = cls.normalize_value(v) + break + return value + + @classmethod + def iter_attributes(cls, el: bs4.Tag) -> Iterator[tuple[str, str | Sequence[str] | None]]: + """Iterate attributes.""" + + for k, v in el.attrs.items(): + yield k, cls.normalize_value(v) + + @classmethod + def get_classes(cls, el: bs4.Tag) -> Sequence[str]: + """Get classes.""" + + classes = cls.get_attribute_by_name(el, 'class', []) + if isinstance(classes, str): + classes = RE_NOT_WS.findall(classes) + return cast(Sequence[str], classes) + + def get_text(self, el: bs4.Tag, no_iframe: bool = False) -> str: + """Get text.""" + + return ''.join( + [node for node in self.get_descendants(el, tags=False, no_iframe=no_iframe) if self.is_content_string(node)] + ) + + def get_own_text(self, el: bs4.Tag, no_iframe: bool = False) -> list[str]: + """Get Own Text.""" + + return [node for node in self.get_contents(el, no_iframe=no_iframe) if self.is_content_string(node)] + + +class Inputs: + """Class for parsing and validating input items.""" + + @staticmethod + def validate_day(year: int, month: int, day: int) -> bool: + """Validate day.""" + + max_days = LONG_MONTH + if month == FEB: + max_days = FEB_LEAP_MONTH if ((year % 4 == 0) and (year % 100 != 0)) or (year % 400 == 0) else FEB_MONTH + elif month in MONTHS_30: + max_days = SHORT_MONTH + return 1 <= day <= max_days + + @staticmethod + def validate_week(year: int, week: int) -> bool: + """Validate week.""" + + max_week = datetime.strptime(f"{12}-{31}-{year}", "%m-%d-%Y").isocalendar()[1] + if max_week == 1: + max_week = 53 + return 1 <= week <= max_week + + @staticmethod + def validate_month(month: int) -> bool: + """Validate month.""" + + return 1 <= month <= 12 + + @staticmethod + def validate_year(year: int) -> bool: + """Validate year.""" + + return 1 <= year + + @staticmethod + def validate_hour(hour: int) -> bool: + """Validate hour.""" + + return 0 <= hour <= 23 + + @staticmethod + def validate_minutes(minutes: int) -> bool: + """Validate minutes.""" + + return 0 <= minutes <= 59 + + @classmethod + def parse_value(cls, itype: str, value: str | None) -> tuple[float, ...] | None: + """Parse the input value.""" + + parsed = None # type: tuple[float, ...] | None + if value is None: + return value + if itype == "date": + m = RE_DATE.match(value) + if m: + year = int(m.group('year'), 10) + month = int(m.group('month'), 10) + day = int(m.group('day'), 10) + if cls.validate_year(year) and cls.validate_month(month) and cls.validate_day(year, month, day): + parsed = (year, month, day) + elif itype == "month": + m = RE_MONTH.match(value) + if m: + year = int(m.group('year'), 10) + month = int(m.group('month'), 10) + if cls.validate_year(year) and cls.validate_month(month): + parsed = (year, month) + elif itype == "week": + m = RE_WEEK.match(value) + if m: + year = int(m.group('year'), 10) + week = int(m.group('week'), 10) + if cls.validate_year(year) and cls.validate_week(year, week): + parsed = (year, week) + elif itype == "time": + m = RE_TIME.match(value) + if m: + hour = int(m.group('hour'), 10) + minutes = int(m.group('minutes'), 10) + if cls.validate_hour(hour) and cls.validate_minutes(minutes): + parsed = (hour, minutes) + elif itype == "datetime-local": + m = RE_DATETIME.match(value) + if m: + year = int(m.group('year'), 10) + month = int(m.group('month'), 10) + day = int(m.group('day'), 10) + hour = int(m.group('hour'), 10) + minutes = int(m.group('minutes'), 10) + if ( + cls.validate_year(year) and cls.validate_month(month) and cls.validate_day(year, month, day) and + cls.validate_hour(hour) and cls.validate_minutes(minutes) + ): + parsed = (year, month, day, hour, minutes) + elif itype in ("number", "range"): + m = RE_NUM.match(value) + if m: + parsed = (float(m.group('value')),) + return parsed + + +class CSSMatch(_DocumentNav): + """Perform CSS matching.""" + + def __init__( + self, + selectors: ct.SelectorList, + scope: bs4.Tag, + namespaces: ct.Namespaces | None, + flags: int + ) -> None: + """Initialize.""" + + self.assert_valid_input(scope) + self.tag = scope + self.cached_meta_lang = [] # type: list[tuple[str, str]] + self.cached_default_forms = [] # type: list[tuple[bs4.Tag, bs4.Tag]] + self.cached_indeterminate_forms = [] # type: list[tuple[bs4.Tag, str, bool]] + self.selectors = selectors + self.namespaces = {} if namespaces is None else namespaces # type: ct.Namespaces | dict[str, str] + self.flags = flags + self.iframe_restrict = False + + # Find the root element for the whole tree + doc = scope + parent = self.get_parent(doc) + while parent: + doc = parent + parent = self.get_parent(doc) + root = None + if not self.is_doc(doc): + root = doc + else: + for child in self.get_children(doc): + root = child + break + + self.root = root + self.scope = scope if scope is not doc else root + self.has_html_namespace = self.has_html_ns(root) + + # A document can be both XML and HTML (XHTML) + self.is_xml = self.is_xml_tree(doc) + self.is_html = not self.is_xml or self.has_html_namespace + + def supports_namespaces(self) -> bool: + """Check if namespaces are supported in the HTML type.""" + + return self.is_xml or self.has_html_namespace + + def get_tag_ns(self, el: bs4.Tag) -> str: + """Get tag namespace.""" + + if self.supports_namespaces(): + namespace = '' + ns = self.get_uri(el) + if ns: + namespace = ns + else: + namespace = NS_XHTML + return namespace + + def is_html_tag(self, el: bs4.Tag) -> bool: + """Check if tag is in HTML namespace.""" + + return self.get_tag_ns(el) == NS_XHTML + + def get_tag(self, el: bs4.Tag) -> str | None: + """Get tag.""" + + name = self.get_tag_name(el) + return util.lower(name) if name is not None and not self.is_xml else name + + def get_prefix(self, el: bs4.Tag) -> str | None: + """Get prefix.""" + + prefix = self.get_prefix_name(el) + return util.lower(prefix) if prefix is not None and not self.is_xml else prefix + + def find_bidi(self, el: bs4.Tag) -> int | None: + """Get directionality from element text.""" + + for node in self.get_children(el, tags=False): + + # Analyze child text nodes + if self.is_tag(node): + + # Avoid analyzing certain elements specified in the specification. + direction = DIR_MAP.get(util.lower(self.get_attribute_by_name(node, 'dir', '')), None) + if ( + self.get_tag(node) in ('bdi', 'script', 'style', 'textarea', 'iframe') or + not self.is_html_tag(node) or + direction is not None + ): + continue # pragma: no cover + + # Check directionality of this node's text + value = self.find_bidi(node) + if value is not None: + return value + + # Direction could not be determined + continue # pragma: no cover + + # Skip `doctype` comments, etc. + if self.is_special_string(node): + continue + + # Analyze text nodes for directionality. + for c in node: + bidi = unicodedata.bidirectional(c) + if bidi in ('AL', 'R', 'L'): + return ct.SEL_DIR_LTR if bidi == 'L' else ct.SEL_DIR_RTL + return None + + def extended_language_filter(self, lang_range: str, lang_tag: str) -> bool: + """Filter the language tags.""" + + match = True + lang_range = RE_WILD_STRIP.sub('-', lang_range).lower() + ranges = lang_range.split('-') + subtags = lang_tag.lower().split('-') + length = len(ranges) + slength = len(subtags) + rindex = 0 + sindex = 0 + r = ranges[rindex] + s = subtags[sindex] + + # Empty specified language should match unspecified language attributes + if length == 1 and slength == 1 and not r and r == s: + return True + + # Primary tag needs to match + if (r != '*' and r != s) or (r == '*' and slength == 1 and not s): + match = False + + rindex += 1 + sindex += 1 + + # Match until we run out of ranges + while match and rindex < length: + r = ranges[rindex] + try: + s = subtags[sindex] + except IndexError: + # Ran out of subtags, + # but we still have ranges + match = False + continue + + # Empty range + if not r: + match = False + continue + + # Matched range + elif s == r: + rindex += 1 + + # Implicit wildcard cannot match + # singletons + elif len(s) == 1: + match = False + continue + + # Implicitly matched, so grab next subtag + sindex += 1 + + return match + + def match_attribute_name( + self, + el: bs4.Tag, + attr: str, + prefix: str | None + ) -> str | Sequence[str] | None: + """Match attribute name and return value if it exists.""" + + value = None + if self.supports_namespaces(): + value = None + # If we have not defined namespaces, we can't very well find them, so don't bother trying. + if prefix: + ns = self.namespaces.get(prefix) + if ns is None and prefix != '*': + return None + else: + ns = None + + for k, v in self.iter_attributes(el): + + # Get attribute parts + namespace, name = self.split_namespace(el, k) + + # Can't match a prefix attribute as we haven't specified one to match + # Try to match it normally as a whole `p:a` as selector may be trying `p\:a`. + if ns is None: + if (self.is_xml and attr == k) or (not self.is_xml and util.lower(attr) == util.lower(k)): + value = v + break + # Coverage is not finding this even though it is executed. + # Adding a print statement before this (and erasing coverage) causes coverage to find the line. + # Ignore the false positive message. + continue # pragma: no cover + + # We can't match our desired prefix attribute as the attribute doesn't have a prefix + if namespace is None or ns != namespace and prefix != '*': + continue + + # The attribute doesn't match. + if (util.lower(attr) != util.lower(name)) if not self.is_xml else (attr != name): + continue + + value = v + break + else: + for k, v in self.iter_attributes(el): + if util.lower(attr) != util.lower(k): + continue + value = v + break + return value + + def match_namespace(self, el: bs4.Tag, tag: ct.SelectorTag) -> bool: + """Match the namespace of the element.""" + + match = True + namespace = self.get_tag_ns(el) + default_namespace = self.namespaces.get('') + tag_ns = '' if tag.prefix is None else self.namespaces.get(tag.prefix) + # We must match the default namespace if one is not provided + if tag.prefix is None and (default_namespace is not None and namespace != default_namespace): + match = False + # If we specified `|tag`, we must not have a namespace. + elif (tag.prefix is not None and tag.prefix == '' and namespace): + match = False + # Verify prefix matches + elif ( + tag.prefix and + tag.prefix != '*' and (tag_ns is None or namespace != tag_ns) + ): + match = False + return match + + def match_attributes(self, el: bs4.Tag, attributes: tuple[ct.SelectorAttribute, ...]) -> bool: + """Match attributes.""" + + match = True + if attributes: + for a in attributes: + temp = self.match_attribute_name(el, a.attribute, a.prefix) + pattern = a.xml_type_pattern if self.is_xml and a.xml_type_pattern else a.pattern + if temp is None: + match = False + break + value = temp if isinstance(temp, str) else ' '.join(temp) + if pattern is None: + continue + elif pattern.match(value) is None: + match = False + break + return match + + def match_tagname(self, el: bs4.Tag, tag: ct.SelectorTag) -> bool: + """Match tag name.""" + + name = (util.lower(tag.name) if not self.is_xml and tag.name is not None else tag.name) + return not ( + name is not None and + name not in (self.get_tag(el), '*') + ) + + def match_tag(self, el: bs4.Tag, tag: ct.SelectorTag | None) -> bool: + """Match the tag.""" + + match = True + if tag is not None: + # Verify namespace + if not self.match_namespace(el, tag): + match = False + if not self.match_tagname(el, tag): + match = False + return match + + def match_past_relations(self, el: bs4.Tag, relation: ct.SelectorList) -> bool: + """Match past relationship.""" + + found = False + # I don't think this can ever happen, but it makes `mypy` happy + if isinstance(relation[0], ct.SelectorNull): # pragma: no cover + return found + + if relation[0].rel_type == REL_PARENT: + parent = self.get_parent(el, no_iframe=self.iframe_restrict) + while not found and parent: + found = self.match_selectors(parent, relation) + parent = self.get_parent(parent, no_iframe=self.iframe_restrict) + elif relation[0].rel_type == REL_CLOSE_PARENT: + parent = self.get_parent(el, no_iframe=self.iframe_restrict) + if parent: + found = self.match_selectors(parent, relation) + elif relation[0].rel_type == REL_SIBLING: + sibling = self.get_previous(el) + while not found and sibling: + found = self.match_selectors(sibling, relation) + sibling = self.get_previous(sibling) + elif relation[0].rel_type == REL_CLOSE_SIBLING: + sibling = self.get_previous(el) + if sibling and self.is_tag(sibling): + found = self.match_selectors(sibling, relation) + return found + + def match_future_child(self, parent: bs4.Tag, relation: ct.SelectorList, recursive: bool = False) -> bool: + """Match future child.""" + + match = False + if recursive: + children = self.get_descendants # type: Callable[..., Iterator[bs4.Tag]] + else: + children = self.get_children + for child in children(parent, no_iframe=self.iframe_restrict): + match = self.match_selectors(child, relation) + if match: + break + return match + + def match_future_relations(self, el: bs4.Tag, relation: ct.SelectorList) -> bool: + """Match future relationship.""" + + found = False + # I don't think this can ever happen, but it makes `mypy` happy + if isinstance(relation[0], ct.SelectorNull): # pragma: no cover + return found + + if relation[0].rel_type == REL_HAS_PARENT: + found = self.match_future_child(el, relation, True) + elif relation[0].rel_type == REL_HAS_CLOSE_PARENT: + found = self.match_future_child(el, relation) + elif relation[0].rel_type == REL_HAS_SIBLING: + sibling = self.get_next(el) + while not found and sibling: + found = self.match_selectors(sibling, relation) + sibling = self.get_next(sibling) + elif relation[0].rel_type == REL_HAS_CLOSE_SIBLING: + sibling = self.get_next(el) + if sibling and self.is_tag(sibling): + found = self.match_selectors(sibling, relation) + return found + + def match_relations(self, el: bs4.Tag, relation: ct.SelectorList) -> bool: + """Match relationship to other elements.""" + + found = False + + if isinstance(relation[0], ct.SelectorNull) or relation[0].rel_type is None: + return found + + if relation[0].rel_type.startswith(':'): + found = self.match_future_relations(el, relation) + else: + found = self.match_past_relations(el, relation) + + return found + + def match_id(self, el: bs4.Tag, ids: tuple[str, ...]) -> bool: + """Match element's ID.""" + + found = True + for i in ids: + if i != self.get_attribute_by_name(el, 'id', ''): + found = False + break + return found + + def match_classes(self, el: bs4.Tag, classes: tuple[str, ...]) -> bool: + """Match element's classes.""" + + current_classes = self.get_classes(el) + found = True + for c in classes: + if c not in current_classes: + found = False + break + return found + + def match_root(self, el: bs4.Tag) -> bool: + """Match element as root.""" + + is_root = self.is_root(el) + if is_root: + sibling = self.get_previous(el, tags=False) + while is_root and sibling is not None: + if ( + self.is_tag(sibling) or (self.is_content_string(sibling) and sibling.strip()) or + self.is_cdata(sibling) + ): + is_root = False + else: + sibling = self.get_previous(sibling, tags=False) + if is_root: + sibling = self.get_next(el, tags=False) + while is_root and sibling is not None: + if ( + self.is_tag(sibling) or (self.is_content_string(sibling) and sibling.strip()) or + self.is_cdata(sibling) + ): + is_root = False + else: + sibling = self.get_next(sibling, tags=False) + return is_root + + def match_scope(self, el: bs4.Tag) -> bool: + """Match element as scope.""" + + return self.scope is el + + def match_nth_tag_type(self, el: bs4.Tag, child: bs4.Tag) -> bool: + """Match tag type for `nth` matches.""" + + return ( + (self.get_tag(child) == self.get_tag(el)) and + (self.get_tag_ns(child) == self.get_tag_ns(el)) + ) + + def match_nth(self, el: bs4.Tag, nth: bs4.Tag) -> bool: + """Match `nth` elements.""" + + matched = True + + for n in nth: + matched = False + if n.selectors and not self.match_selectors(el, n.selectors): + break + parent = self.get_parent(el) + if parent is None: + parent = self.create_fake_parent(el) + last = n.last + last_index = len(parent) - 1 + index = last_index if last else 0 + relative_index = 0 + a = n.a + b = n.b + var = n.n + count = 0 + count_incr = 1 + factor = -1 if last else 1 + idx = last_idx = a * count + b if var else a + + # We can only adjust bounds within a variable index + if var: + # Abort if our nth index is out of bounds and only getting further out of bounds as we increment. + # Otherwise, increment to try to get in bounds. + adjust = None + while idx < 1 or idx > last_index: + if idx < 0: + diff_low = 0 - idx + if adjust is not None and adjust == 1: + break + adjust = -1 + count += count_incr + idx = last_idx = a * count + b if var else a + diff = 0 - idx + if diff >= diff_low: + break + else: + diff_high = idx - last_index + if adjust is not None and adjust == -1: + break + adjust = 1 + count += count_incr + idx = last_idx = a * count + b if var else a + diff = idx - last_index + if diff >= diff_high: + break + diff_high = diff + + # If a < 0, our count is working backwards, so floor the index by increasing the count. + # Find the count that yields the lowest, in bound value and use that. + # Lastly reverse count increment so that we'll increase our index. + lowest = count + if a < 0: + while idx >= 1: + lowest = count + count += count_incr + idx = last_idx = a * count + b if var else a + count_incr = -1 + count = lowest + idx = last_idx = a * count + b if var else a + + # Evaluate elements while our calculated nth index is still in range + while 1 <= idx <= last_index + 1: + child = None + # Evaluate while our child index is still in range. + for child in self.get_children(parent, start=index, reverse=factor < 0, tags=False): + index += factor + if not self.is_tag(child): + continue + # Handle `of S` in `nth-child` + if n.selectors and not self.match_selectors(child, n.selectors): + continue + # Handle `of-type` + if n.of_type and not self.match_nth_tag_type(el, child): + continue + relative_index += 1 + if relative_index == idx: + if child is el: + matched = True + else: + break + if child is el: + break + if child is el: + break + last_idx = idx + count += count_incr + if count < 0: + # Count is counting down and has now ventured into invalid territory. + break + idx = a * count + b if var else a + if last_idx == idx: + break + if not matched: + break + return matched + + def match_empty(self, el: bs4.Tag) -> bool: + """Check if element is empty (if requested).""" + + is_empty = True + for child in self.get_children(el, tags=False): + if self.is_tag(child): + is_empty = False + break + elif self.is_content_string(child) and RE_NOT_EMPTY.search(child): + is_empty = False + break + return is_empty + + def match_subselectors(self, el: bs4.Tag, selectors: tuple[ct.SelectorList, ...]) -> bool: + """Match selectors.""" + + match = True + for sel in selectors: + if not self.match_selectors(el, sel): + match = False + return match + + def match_contains(self, el: bs4.Tag, contains: tuple[ct.SelectorContains, ...]) -> bool: + """Match element if it contains text.""" + + match = True + content = None # type: str | Sequence[str] | None + for contain_list in contains: + if content is None: + if contain_list.own: + content = self.get_own_text(el, no_iframe=self.is_html) + else: + content = self.get_text(el, no_iframe=self.is_html) + found = False + for text in contain_list.text: + if contain_list.own: + for c in content: + if text in c: + found = True + break + if found: + break + else: + if text in content: + found = True + break + if not found: + match = False + return match + + def match_default(self, el: bs4.Tag) -> bool: + """Match default.""" + + match = False + + # Find this input's form + form = None + parent = self.get_parent(el, no_iframe=True) + while parent and form is None: + if self.get_tag(parent) == 'form' and self.is_html_tag(parent): + form = parent + else: + parent = self.get_parent(parent, no_iframe=True) + + # Look in form cache to see if we've already located its default button + found_form = False + for f, t in self.cached_default_forms: + if f is form: + found_form = True + if t is el: + match = True + break + + # We didn't have the form cached, so look for its default button + if not found_form: + for child in self.get_descendants(form, no_iframe=True): + name = self.get_tag(child) + # Can't do nested forms (haven't figured out why we never hit this) + if name == 'form': # pragma: no cover + break + if name in ('input', 'button'): + v = self.get_attribute_by_name(child, 'type', '') + if v and util.lower(v) == 'submit': + self.cached_default_forms.append((form, child)) + if el is child: + match = True + break + return match + + def match_indeterminate(self, el: bs4.Tag) -> bool: + """Match default.""" + + match = False + name = cast(str, self.get_attribute_by_name(el, 'name')) + + def get_parent_form(el: bs4.Tag) -> bs4.Tag | None: + """Find this input's form.""" + form = None + parent = self.get_parent(el, no_iframe=True) + while form is None: + if self.get_tag(parent) == 'form' and self.is_html_tag(parent): + form = parent + break + last_parent = parent + parent = self.get_parent(parent, no_iframe=True) + if parent is None: + form = last_parent + break + return form + + form = get_parent_form(el) + + # Look in form cache to see if we've already evaluated that its fellow radio buttons are indeterminate + found_form = False + for f, n, i in self.cached_indeterminate_forms: + if f is form and n == name: + found_form = True + if i is True: + match = True + break + + # We didn't have the form cached, so validate that the radio button is indeterminate + if not found_form: + checked = False + for child in self.get_descendants(form, no_iframe=True): + if child is el: + continue + tag_name = self.get_tag(child) + if tag_name == 'input': + is_radio = False + check = False + has_name = False + for k, v in self.iter_attributes(child): + if util.lower(k) == 'type' and util.lower(v) == 'radio': + is_radio = True + elif util.lower(k) == 'name' and v == name: + has_name = True + elif util.lower(k) == 'checked': + check = True + if is_radio and check and has_name and get_parent_form(child) is form: + checked = True + break + if checked: + break + if not checked: + match = True + self.cached_indeterminate_forms.append((form, name, match)) + + return match + + def match_lang(self, el: bs4.Tag, langs: tuple[ct.SelectorLang, ...]) -> bool: + """Match languages.""" + + match = False + has_ns = self.supports_namespaces() + root = self.root + has_html_namespace = self.has_html_namespace + + # Walk parents looking for `lang` (HTML) or `xml:lang` XML property. + parent = el + found_lang = None + last = None + while not found_lang: + has_html_ns = self.has_html_ns(parent) + for k, v in self.iter_attributes(parent): + attr_ns, attr = self.split_namespace(parent, k) + if ( + ((not has_ns or has_html_ns) and (util.lower(k) if not self.is_xml else k) == 'lang') or + ( + has_ns and not has_html_ns and attr_ns == NS_XML and + (util.lower(attr) if not self.is_xml and attr is not None else attr) == 'lang' + ) + ): + found_lang = v + break + last = parent + parent = self.get_parent(parent, no_iframe=self.is_html) + + if parent is None: + root = last + has_html_namespace = self.has_html_ns(root) + parent = last + break + + # Use cached meta language. + if found_lang is None and self.cached_meta_lang: + for cache in self.cached_meta_lang: + if root is cache[0]: + found_lang = cache[1] + + # If we couldn't find a language, and the document is HTML, look to meta to determine language. + if found_lang is None and (not self.is_xml or (has_html_namespace and root.name == 'html')): + # Find head + found = False + for tag in ('html', 'head'): + found = False + for child in self.get_children(parent, no_iframe=self.is_html): + if self.get_tag(child) == tag and self.is_html_tag(child): + found = True + parent = child + break + if not found: # pragma: no cover + break + + # Search meta tags + if found: + for child in parent: + if self.is_tag(child) and self.get_tag(child) == 'meta' and self.is_html_tag(parent): + c_lang = False + content = None + for k, v in self.iter_attributes(child): + if util.lower(k) == 'http-equiv' and util.lower(v) == 'content-language': + c_lang = True + if util.lower(k) == 'content': + content = v + if c_lang and content: + found_lang = content + self.cached_meta_lang.append((cast(str, root), cast(str, found_lang))) + break + if found_lang is not None: + break + if found_lang is None: + self.cached_meta_lang.append((cast(str, root), '')) + + # If we determined a language, compare. + if found_lang is not None: + for patterns in langs: + match = False + for pattern in patterns: + if self.extended_language_filter(pattern, cast(str, found_lang)): + match = True + if not match: + break + + return match + + def match_dir(self, el: bs4.Tag, directionality: int) -> bool: + """Check directionality.""" + + # If we have to match both left and right, we can't match either. + if directionality & ct.SEL_DIR_LTR and directionality & ct.SEL_DIR_RTL: + return False + + if el is None or not self.is_html_tag(el): + return False + + # Element has defined direction of left to right or right to left + direction = DIR_MAP.get(util.lower(self.get_attribute_by_name(el, 'dir', '')), None) + if direction not in (None, 0): + return direction == directionality + + # Element is the document element (the root) and no direction assigned, assume left to right. + is_root = self.is_root(el) + if is_root and direction is None: + return ct.SEL_DIR_LTR == directionality + + # If `input[type=telephone]` and no direction is assigned, assume left to right. + name = self.get_tag(el) + is_input = name == 'input' + is_textarea = name == 'textarea' + is_bdi = name == 'bdi' + itype = util.lower(self.get_attribute_by_name(el, 'type', '')) if is_input else '' + if is_input and itype == 'tel' and direction is None: + return ct.SEL_DIR_LTR == directionality + + # Auto handling for text inputs + if ((is_input and itype in ('text', 'search', 'tel', 'url', 'email')) or is_textarea) and direction == 0: + if is_textarea: + value = ''.join(node for node in self.get_contents(el, no_iframe=True) if self.is_content_string(node)) + else: + value = cast(str, self.get_attribute_by_name(el, 'value', '')) + if value: + for c in value: + bidi = unicodedata.bidirectional(c) + if bidi in ('AL', 'R', 'L'): + direction = ct.SEL_DIR_LTR if bidi == 'L' else ct.SEL_DIR_RTL + return direction == directionality + # Assume left to right + return ct.SEL_DIR_LTR == directionality + elif is_root: + return ct.SEL_DIR_LTR == directionality + return self.match_dir(self.get_parent(el, no_iframe=True), directionality) + + # Auto handling for `bdi` and other non text inputs. + if (is_bdi and direction is None) or direction == 0: + direction = self.find_bidi(el) + if direction is not None: + return direction == directionality + elif is_root: + return ct.SEL_DIR_LTR == directionality + return self.match_dir(self.get_parent(el, no_iframe=True), directionality) + + # Match parents direction + return self.match_dir(self.get_parent(el, no_iframe=True), directionality) + + def match_range(self, el: bs4.Tag, condition: int) -> bool: + """ + Match range. + + Behavior is modeled after what we see in browsers. Browsers seem to evaluate + if the value is out of range, and if not, it is in range. So a missing value + will not evaluate out of range; therefore, value is in range. Personally, I + feel like this should evaluate as neither in or out of range. + """ + + out_of_range = False + + itype = util.lower(self.get_attribute_by_name(el, 'type')) + mn = Inputs.parse_value(itype, cast(str, self.get_attribute_by_name(el, 'min', None))) + mx = Inputs.parse_value(itype, cast(str, self.get_attribute_by_name(el, 'max', None))) + + # There is no valid min or max, so we cannot evaluate a range + if mn is None and mx is None: + return False + + value = Inputs.parse_value(itype, cast(str, self.get_attribute_by_name(el, 'value', None))) + if value is not None: + if itype in ("date", "datetime-local", "month", "week", "number", "range"): + if mn is not None and value < mn: + out_of_range = True + if not out_of_range and mx is not None and value > mx: + out_of_range = True + elif itype == "time": + if mn is not None and mx is not None and mn > mx: + # Time is periodic, so this is a reversed/discontinuous range + if value < mn and value > mx: + out_of_range = True + else: + if mn is not None and value < mn: + out_of_range = True + if not out_of_range and mx is not None and value > mx: + out_of_range = True + + return not out_of_range if condition & ct.SEL_IN_RANGE else out_of_range + + def match_defined(self, el: bs4.Tag) -> bool: + """ + Match defined. + + `:defined` is related to custom elements in a browser. + + - If the document is XML (not XHTML), all tags will match. + - Tags that are not custom (don't have a hyphen) are marked defined. + - If the tag has a prefix (without or without a namespace), it will not match. + + This is of course requires the parser to provide us with the proper prefix and namespace info, + if it doesn't, there is nothing we can do. + """ + + name = self.get_tag(el) + return ( + name is not None and ( + name.find('-') == -1 or + name.find(':') != -1 or + self.get_prefix(el) is not None + ) + ) + + def match_placeholder_shown(self, el: bs4.Tag) -> bool: + """ + Match placeholder shown according to HTML spec. + + - text area should be checked if they have content. A single newline does not count as content. + + """ + + match = False + content = self.get_text(el) + if content in ('', '\n'): + match = True + + return match + + def match_selectors(self, el: bs4.Tag, selectors: ct.SelectorList) -> bool: + """Check if element matches one of the selectors.""" + + match = False + is_not = selectors.is_not + is_html = selectors.is_html + + # Internal selector lists that use the HTML flag, will automatically get the `html` namespace. + if is_html: + namespaces = self.namespaces + iframe_restrict = self.iframe_restrict + self.namespaces = {'html': NS_XHTML} + self.iframe_restrict = True + + if not is_html or self.is_html: + for selector in selectors: + match = is_not + # We have a un-matchable situation (like `:focus` as you can focus an element in this environment) + if isinstance(selector, ct.SelectorNull): + continue + # Verify tag matches + if not self.match_tag(el, selector.tag): + continue + # Verify tag is defined + if selector.flags & ct.SEL_DEFINED and not self.match_defined(el): + continue + # Verify element is root + if selector.flags & ct.SEL_ROOT and not self.match_root(el): + continue + # Verify element is scope + if selector.flags & ct.SEL_SCOPE and not self.match_scope(el): + continue + # Verify element has placeholder shown + if selector.flags & ct.SEL_PLACEHOLDER_SHOWN and not self.match_placeholder_shown(el): + continue + # Verify `nth` matches + if not self.match_nth(el, selector.nth): + continue + if selector.flags & ct.SEL_EMPTY and not self.match_empty(el): + continue + # Verify id matches + if selector.ids and not self.match_id(el, selector.ids): + continue + # Verify classes match + if selector.classes and not self.match_classes(el, selector.classes): + continue + # Verify attribute(s) match + if not self.match_attributes(el, selector.attributes): + continue + # Verify ranges + if selector.flags & RANGES and not self.match_range(el, selector.flags & RANGES): + continue + # Verify language patterns + if selector.lang and not self.match_lang(el, selector.lang): + continue + # Verify pseudo selector patterns + if selector.selectors and not self.match_subselectors(el, selector.selectors): + continue + # Verify relationship selectors + if selector.relation and not self.match_relations(el, selector.relation): + continue + # Validate that the current default selector match corresponds to the first submit button in the form + if selector.flags & ct.SEL_DEFAULT and not self.match_default(el): + continue + # Validate that the unset radio button is among radio buttons with the same name in a form that are + # also not set. + if selector.flags & ct.SEL_INDETERMINATE and not self.match_indeterminate(el): + continue + # Validate element directionality + if selector.flags & DIR_FLAGS and not self.match_dir(el, selector.flags & DIR_FLAGS): + continue + # Validate that the tag contains the specified text. + if selector.contains and not self.match_contains(el, selector.contains): + continue + match = not is_not + break + + # Restore actual namespaces being used for external selector lists + if is_html: + self.namespaces = namespaces + self.iframe_restrict = iframe_restrict + + return match + + def select(self, limit: int = 0) -> Iterator[bs4.Tag]: + """Match all tags under the targeted tag.""" + + lim = None if limit < 1 else limit + + for child in self.get_descendants(self.tag): + if self.match(child): + yield child + if lim is not None: + lim -= 1 + if lim < 1: + break + + def closest(self) -> bs4.Tag | None: + """Match closest ancestor.""" + + current = self.tag + closest = None + while closest is None and current is not None: + if self.match(current): + closest = current + else: + current = self.get_parent(current) + return closest + + def filter(self) -> list[bs4.Tag]: # noqa A001 + """Filter tag's children.""" + + return [tag for tag in self.get_contents(self.tag) if not self.is_navigable_string(tag) and self.match(tag)] + + def match(self, el: bs4.Tag) -> bool: + """Match.""" + + return not self.is_doc(el) and self.is_tag(el) and self.match_selectors(el, self.selectors) + + +class SoupSieve(ct.Immutable): + """Compiled Soup Sieve selector matching object.""" + + pattern: str + selectors: ct.SelectorList + namespaces: ct.Namespaces | None + custom: dict[str, str] + flags: int + + __slots__ = ("pattern", "selectors", "namespaces", "custom", "flags", "_hash") + + def __init__( + self, + pattern: str, + selectors: ct.SelectorList, + namespaces: ct.Namespaces | None, + custom: ct.CustomSelectors | None, + flags: int + ): + """Initialize.""" + + super().__init__( + pattern=pattern, + selectors=selectors, + namespaces=namespaces, + custom=custom, + flags=flags + ) + + def match(self, tag: bs4.Tag) -> bool: + """Match.""" + + return CSSMatch(self.selectors, tag, self.namespaces, self.flags).match(tag) + + def closest(self, tag: bs4.Tag) -> bs4.Tag: + """Match closest ancestor.""" + + return CSSMatch(self.selectors, tag, self.namespaces, self.flags).closest() + + def filter(self, iterable: Iterable[bs4.Tag]) -> list[bs4.Tag]: # noqa A001 + """ + Filter. + + `CSSMatch` can cache certain searches for tags of the same document, + so if we are given a tag, all tags are from the same document, + and we can take advantage of the optimization. + + Any other kind of iterable could have tags from different documents or detached tags, + so for those, we use a new `CSSMatch` for each item in the iterable. + """ + + if CSSMatch.is_tag(iterable): + return CSSMatch(self.selectors, iterable, self.namespaces, self.flags).filter() + else: + return [node for node in iterable if not CSSMatch.is_navigable_string(node) and self.match(node)] + + def select_one(self, tag: bs4.Tag) -> bs4.Tag: + """Select a single tag.""" + + tags = self.select(tag, limit=1) + return tags[0] if tags else None + + def select(self, tag: bs4.Tag, limit: int = 0) -> list[bs4.Tag]: + """Select the specified tags.""" + + return list(self.iselect(tag, limit)) + + def iselect(self, tag: bs4.Tag, limit: int = 0) -> Iterator[bs4.Tag]: + """Iterate the specified tags.""" + + yield from CSSMatch(self.selectors, tag, self.namespaces, self.flags).select(limit) + + def __repr__(self) -> str: # pragma: no cover + """Representation.""" + + return ( + f"SoupSieve(pattern={self.pattern!r}, namespaces={self.namespaces!r}, " + f"custom={self.custom!r}, flags={self.flags!r})" + ) + + __str__ = __repr__ + + +ct.pickle_register(SoupSieve) diff --git a/shared/package-files/a0/a0e72bc9d4e13117bdaf7d5fc204acbfbb7d228f24354d64928c6647a98b46c5/ossaudiodev.cpython-310-x86_64-linux-gnu.so b/shared/package-files/a0/a0e72bc9d4e13117bdaf7d5fc204acbfbb7d228f24354d64928c6647a98b46c5/ossaudiodev.cpython-310-x86_64-linux-gnu.so new file mode 100644 index 0000000000000000000000000000000000000000..e67a94a6f8f84330647f9fe905db783f24782ae2 Binary files /dev/null and b/shared/package-files/a0/a0e72bc9d4e13117bdaf7d5fc204acbfbb7d228f24354d64928c6647a98b46c5/ossaudiodev.cpython-310-x86_64-linux-gnu.so differ diff --git a/shared/package-files/a0/a0e9a14e798a944eb4f8930945132fff37c5b38cea8a830df1003495d960419a/struct_arrays_byte_idl80.sav b/shared/package-files/a0/a0e9a14e798a944eb4f8930945132fff37c5b38cea8a830df1003495d960419a/struct_arrays_byte_idl80.sav new file mode 100644 index 0000000000000000000000000000000000000000..f1aa416f8e661893be282a490005536953d4b7af Binary files /dev/null and b/shared/package-files/a0/a0e9a14e798a944eb4f8930945132fff37c5b38cea8a830df1003495d960419a/struct_arrays_byte_idl80.sav differ diff --git a/shared/package-files/a0/a0ead2b01e2d2ad806c055766094947f4237ad397d66a0a91765a01e57839fbd/_matfuncs.py b/shared/package-files/a0/a0ead2b01e2d2ad806c055766094947f4237ad397d66a0a91765a01e57839fbd/_matfuncs.py new file mode 100644 index 0000000000000000000000000000000000000000..3a0ba92af71f3f3188cc73ca441187db9701b052 --- /dev/null +++ b/shared/package-files/a0/a0ead2b01e2d2ad806c055766094947f4237ad397d66a0a91765a01e57839fbd/_matfuncs.py @@ -0,0 +1,867 @@ +# +# Author: Travis Oliphant, March 2002 +# +import warnings +from itertools import product + +import numpy as np +from numpy import (dot, diag, prod, logical_not, ravel, transpose, + conjugate, absolute, amax, sign, isfinite, triu) + +# Local imports +from scipy.linalg import LinAlgError, bandwidth +from ._misc import norm +from ._basic import solve, inv +from ._decomp_svd import svd +from ._decomp_schur import schur, rsf2csf +from ._expm_frechet import expm_frechet, expm_cond +from ._matfuncs_sqrtm import sqrtm +from ._matfuncs_expm import pick_pade_structure, pade_UV_calc +from ._linalg_pythran import _funm_loops # type: ignore[import-not-found] + +__all__ = ['expm', 'cosm', 'sinm', 'tanm', 'coshm', 'sinhm', 'tanhm', 'logm', + 'funm', 'signm', 'sqrtm', 'fractional_matrix_power', 'expm_frechet', + 'expm_cond', 'khatri_rao'] + +eps = np.finfo('d').eps +feps = np.finfo('f').eps + +_array_precision = {'i': 1, 'l': 1, 'f': 0, 'd': 1, 'F': 0, 'D': 1} + + +############################################################################### +# Utility functions. + + +def _asarray_square(A): + """ + Wraps asarray with the extra requirement that the input be a square matrix. + + The motivation is that the matfuncs module has real functions that have + been lifted to square matrix functions. + + Parameters + ---------- + A : array_like + A square matrix. + + Returns + ------- + out : ndarray + An ndarray copy or view or other representation of A. + + """ + A = np.asarray(A) + if len(A.shape) != 2 or A.shape[0] != A.shape[1]: + raise ValueError('expected square array_like input') + return A + + +def _maybe_real(A, B, tol=None): + """ + Return either B or the real part of B, depending on properties of A and B. + + The motivation is that B has been computed as a complicated function of A, + and B may be perturbed by negligible imaginary components. + If A is real and B is complex with small imaginary components, + then return a real copy of B. The assumption in that case would be that + the imaginary components of B are numerical artifacts. + + Parameters + ---------- + A : ndarray + Input array whose type is to be checked as real vs. complex. + B : ndarray + Array to be returned, possibly without its imaginary part. + tol : float + Absolute tolerance. + + Returns + ------- + out : real or complex array + Either the input array B or only the real part of the input array B. + + """ + # Note that booleans and integers compare as real. + if np.isrealobj(A) and np.iscomplexobj(B): + if tol is None: + tol = {0: feps*1e3, 1: eps*1e6}[_array_precision[B.dtype.char]] + if np.allclose(B.imag, 0.0, atol=tol): + B = B.real + return B + + +############################################################################### +# Matrix functions. + + +def fractional_matrix_power(A, t): + """ + Compute the fractional power of a matrix. + + Proceeds according to the discussion in section (6) of [1]_. + + Parameters + ---------- + A : (N, N) array_like + Matrix whose fractional power to evaluate. + t : float + Fractional power. + + Returns + ------- + X : (N, N) array_like + The fractional power of the matrix. + + References + ---------- + .. [1] Nicholas J. Higham and Lijing lin (2011) + "A Schur-Pade Algorithm for Fractional Powers of a Matrix." + SIAM Journal on Matrix Analysis and Applications, + 32 (3). pp. 1056-1078. ISSN 0895-4798 + + Examples + -------- + >>> import numpy as np + >>> from scipy.linalg import fractional_matrix_power + >>> a = np.array([[1.0, 3.0], [1.0, 4.0]]) + >>> b = fractional_matrix_power(a, 0.5) + >>> b + array([[ 0.75592895, 1.13389342], + [ 0.37796447, 1.88982237]]) + >>> np.dot(b, b) # Verify square root + array([[ 1., 3.], + [ 1., 4.]]) + + """ + # This fixes some issue with imports; + # this function calls onenormest which is in scipy.sparse. + A = _asarray_square(A) + import scipy.linalg._matfuncs_inv_ssq + return scipy.linalg._matfuncs_inv_ssq._fractional_matrix_power(A, t) + + +def logm(A, disp=True): + """ + Compute matrix logarithm. + + The matrix logarithm is the inverse of + expm: expm(logm(`A`)) == `A` + + Parameters + ---------- + A : (N, N) array_like + Matrix whose logarithm to evaluate + disp : bool, optional + Emit warning if error in the result is estimated large + instead of returning estimated error. (Default: True) + + Returns + ------- + logm : (N, N) ndarray + Matrix logarithm of `A` + errest : float + (if disp == False) + + 1-norm of the estimated error, ||err||_1 / ||A||_1 + + References + ---------- + .. [1] Awad H. Al-Mohy and Nicholas J. Higham (2012) + "Improved Inverse Scaling and Squaring Algorithms + for the Matrix Logarithm." + SIAM Journal on Scientific Computing, 34 (4). C152-C169. + ISSN 1095-7197 + + .. [2] Nicholas J. Higham (2008) + "Functions of Matrices: Theory and Computation" + ISBN 978-0-898716-46-7 + + .. [3] Nicholas J. Higham and Lijing lin (2011) + "A Schur-Pade Algorithm for Fractional Powers of a Matrix." + SIAM Journal on Matrix Analysis and Applications, + 32 (3). pp. 1056-1078. ISSN 0895-4798 + + Examples + -------- + >>> import numpy as np + >>> from scipy.linalg import logm, expm + >>> a = np.array([[1.0, 3.0], [1.0, 4.0]]) + >>> b = logm(a) + >>> b + array([[-1.02571087, 2.05142174], + [ 0.68380725, 1.02571087]]) + >>> expm(b) # Verify expm(logm(a)) returns a + array([[ 1., 3.], + [ 1., 4.]]) + + """ + A = np.asarray(A) # squareness checked in `_logm` + # Avoid circular import ... this is OK, right? + import scipy.linalg._matfuncs_inv_ssq + F = scipy.linalg._matfuncs_inv_ssq._logm(A) + F = _maybe_real(A, F) + errtol = 1000*eps + # TODO use a better error approximation + with np.errstate(divide='ignore', invalid='ignore'): + errest = norm(expm(F)-A, 1) / np.asarray(norm(A, 1), dtype=A.dtype).real[()] + if disp: + if not isfinite(errest) or errest >= errtol: + message = f"logm result may be inaccurate, approximate err = {errest}" + warnings.warn(message, RuntimeWarning, stacklevel=2) + return F + else: + return F, errest + + +def expm(A): + """Compute the matrix exponential of an array. + + Parameters + ---------- + A : ndarray + Input with last two dimensions are square ``(..., n, n)``. + + Returns + ------- + eA : ndarray + The resulting matrix exponential with the same shape of ``A`` + + Notes + ----- + Implements the algorithm given in [1], which is essentially a Pade + approximation with a variable order that is decided based on the array + data. + + For input with size ``n``, the memory usage is in the worst case in the + order of ``8*(n**2)``. If the input data is not of single and double + precision of real and complex dtypes, it is copied to a new array. + + For cases ``n >= 400``, the exact 1-norm computation cost, breaks even with + 1-norm estimation and from that point on the estimation scheme given in + [2] is used to decide on the approximation order. + + References + ---------- + .. [1] Awad H. Al-Mohy and Nicholas J. Higham, (2009), "A New Scaling + and Squaring Algorithm for the Matrix Exponential", SIAM J. Matrix + Anal. Appl. 31(3):970-989, :doi:`10.1137/09074721X` + + .. [2] Nicholas J. Higham and Francoise Tisseur (2000), "A Block Algorithm + for Matrix 1-Norm Estimation, with an Application to 1-Norm + Pseudospectra." SIAM J. Matrix Anal. Appl. 21(4):1185-1201, + :doi:`10.1137/S0895479899356080` + + Examples + -------- + >>> import numpy as np + >>> from scipy.linalg import expm, sinm, cosm + + Matrix version of the formula exp(0) = 1: + + >>> expm(np.zeros((3, 2, 2))) + array([[[1., 0.], + [0., 1.]], + + [[1., 0.], + [0., 1.]], + + [[1., 0.], + [0., 1.]]]) + + Euler's identity (exp(i*theta) = cos(theta) + i*sin(theta)) + applied to a matrix: + + >>> a = np.array([[1.0, 2.0], [-1.0, 3.0]]) + >>> expm(1j*a) + array([[ 0.42645930+1.89217551j, -2.13721484-0.97811252j], + [ 1.06860742+0.48905626j, -1.71075555+0.91406299j]]) + >>> cosm(a) + 1j*sinm(a) + array([[ 0.42645930+1.89217551j, -2.13721484-0.97811252j], + [ 1.06860742+0.48905626j, -1.71075555+0.91406299j]]) + + """ + a = np.asarray(A) + if a.size == 1 and a.ndim < 2: + return np.array([[np.exp(a.item())]]) + + if a.ndim < 2: + raise LinAlgError('The input array must be at least two-dimensional') + if a.shape[-1] != a.shape[-2]: + raise LinAlgError('Last 2 dimensions of the array must be square') + + # Empty array + if min(*a.shape) == 0: + dtype = expm(np.eye(2, dtype=a.dtype)).dtype + return np.empty_like(a, dtype=dtype) + + # Scalar case + if a.shape[-2:] == (1, 1): + return np.exp(a) + + if not np.issubdtype(a.dtype, np.inexact): + a = a.astype(np.float64) + elif a.dtype == np.float16: + a = a.astype(np.float32) + + # An explicit formula for 2x2 case exists (formula (2.2) in [1]). However, without + # Kahan's method, numerical instabilities can occur (See gh-19584). Hence removed + # here until we have a more stable implementation. + + n = a.shape[-1] + eA = np.empty(a.shape, dtype=a.dtype) + # working memory to hold intermediate arrays + Am = np.empty((5, n, n), dtype=a.dtype) + + # Main loop to go through the slices of an ndarray and passing to expm + for ind in product(*[range(x) for x in a.shape[:-2]]): + aw = a[ind] + + lu = bandwidth(aw) + if not any(lu): # a is diagonal? + eA[ind] = np.diag(np.exp(np.diag(aw))) + continue + + # Generic/triangular case; copy the slice into scratch and send. + # Am will be mutated by pick_pade_structure + # If s != 0, scaled Am will be returned from pick_pade_structure. + Am[0, :, :] = aw + m, s = pick_pade_structure(Am) + if (m < 0): + raise MemoryError("scipy.linalg.expm could not allocate sufficient" + " memory while trying to compute the Pade " + f"structure (error code {m}).") + info = pade_UV_calc(Am, m) + if info != 0: + if info <= -11: + # We raise it from failed mallocs; negative LAPACK codes > -7 + raise MemoryError("scipy.linalg.expm could not allocate " + "sufficient memory while trying to compute the " + f"exponential (error code {info}).") + else: + # LAPACK wrong argument error or exact singularity. + # Neither should happen. + raise RuntimeError("scipy.linalg.expm got an internal LAPACK " + "error during the exponential computation " + f"(error code {info})") + eAw = Am[0] + + if s != 0: # squaring needed + + if (lu[1] == 0) or (lu[0] == 0): # lower/upper triangular + # This branch implements Code Fragment 2.1 of [1] + + diag_aw = np.diag(aw) + # einsum returns a writable view + np.einsum('ii->i', eAw)[:] = np.exp(diag_aw * 2**(-s)) + # super/sub diagonal + sd = np.diag(aw, k=-1 if lu[1] == 0 else 1) + + for i in range(s-1, -1, -1): + eAw = eAw @ eAw + + # diagonal + np.einsum('ii->i', eAw)[:] = np.exp(diag_aw * 2.**(-i)) + exp_sd = _exp_sinch(diag_aw * (2.**(-i))) * (sd * 2**(-i)) + if lu[1] == 0: # lower + np.einsum('ii->i', eAw[1:, :-1])[:] = exp_sd + else: # upper + np.einsum('ii->i', eAw[:-1, 1:])[:] = exp_sd + + else: # generic + for _ in range(s): + eAw = eAw @ eAw + + # Zero out the entries from np.empty in case of triangular input + if (lu[0] == 0) or (lu[1] == 0): + eA[ind] = np.triu(eAw) if lu[0] == 0 else np.tril(eAw) + else: + eA[ind] = eAw + + return eA + + +def _exp_sinch(x): + # Higham's formula (10.42), might overflow, see GH-11839 + lexp_diff = np.diff(np.exp(x)) + l_diff = np.diff(x) + mask_z = l_diff == 0. + lexp_diff[~mask_z] /= l_diff[~mask_z] + lexp_diff[mask_z] = np.exp(x[:-1][mask_z]) + return lexp_diff + + +def cosm(A): + """ + Compute the matrix cosine. + + This routine uses expm to compute the matrix exponentials. + + Parameters + ---------- + A : (N, N) array_like + Input array + + Returns + ------- + cosm : (N, N) ndarray + Matrix cosine of A + + Examples + -------- + >>> import numpy as np + >>> from scipy.linalg import expm, sinm, cosm + + Euler's identity (exp(i*theta) = cos(theta) + i*sin(theta)) + applied to a matrix: + + >>> a = np.array([[1.0, 2.0], [-1.0, 3.0]]) + >>> expm(1j*a) + array([[ 0.42645930+1.89217551j, -2.13721484-0.97811252j], + [ 1.06860742+0.48905626j, -1.71075555+0.91406299j]]) + >>> cosm(a) + 1j*sinm(a) + array([[ 0.42645930+1.89217551j, -2.13721484-0.97811252j], + [ 1.06860742+0.48905626j, -1.71075555+0.91406299j]]) + + """ + A = _asarray_square(A) + if np.iscomplexobj(A): + return 0.5*(expm(1j*A) + expm(-1j*A)) + else: + return expm(1j*A).real + + +def sinm(A): + """ + Compute the matrix sine. + + This routine uses expm to compute the matrix exponentials. + + Parameters + ---------- + A : (N, N) array_like + Input array. + + Returns + ------- + sinm : (N, N) ndarray + Matrix sine of `A` + + Examples + -------- + >>> import numpy as np + >>> from scipy.linalg import expm, sinm, cosm + + Euler's identity (exp(i*theta) = cos(theta) + i*sin(theta)) + applied to a matrix: + + >>> a = np.array([[1.0, 2.0], [-1.0, 3.0]]) + >>> expm(1j*a) + array([[ 0.42645930+1.89217551j, -2.13721484-0.97811252j], + [ 1.06860742+0.48905626j, -1.71075555+0.91406299j]]) + >>> cosm(a) + 1j*sinm(a) + array([[ 0.42645930+1.89217551j, -2.13721484-0.97811252j], + [ 1.06860742+0.48905626j, -1.71075555+0.91406299j]]) + + """ + A = _asarray_square(A) + if np.iscomplexobj(A): + return -0.5j*(expm(1j*A) - expm(-1j*A)) + else: + return expm(1j*A).imag + + +def tanm(A): + """ + Compute the matrix tangent. + + This routine uses expm to compute the matrix exponentials. + + Parameters + ---------- + A : (N, N) array_like + Input array. + + Returns + ------- + tanm : (N, N) ndarray + Matrix tangent of `A` + + Examples + -------- + >>> import numpy as np + >>> from scipy.linalg import tanm, sinm, cosm + >>> a = np.array([[1.0, 3.0], [1.0, 4.0]]) + >>> t = tanm(a) + >>> t + array([[ -2.00876993, -8.41880636], + [ -2.80626879, -10.42757629]]) + + Verify tanm(a) = sinm(a).dot(inv(cosm(a))) + + >>> s = sinm(a) + >>> c = cosm(a) + >>> s.dot(np.linalg.inv(c)) + array([[ -2.00876993, -8.41880636], + [ -2.80626879, -10.42757629]]) + + """ + A = _asarray_square(A) + return _maybe_real(A, solve(cosm(A), sinm(A))) + + +def coshm(A): + """ + Compute the hyperbolic matrix cosine. + + This routine uses expm to compute the matrix exponentials. + + Parameters + ---------- + A : (N, N) array_like + Input array. + + Returns + ------- + coshm : (N, N) ndarray + Hyperbolic matrix cosine of `A` + + Examples + -------- + >>> import numpy as np + >>> from scipy.linalg import tanhm, sinhm, coshm + >>> a = np.array([[1.0, 3.0], [1.0, 4.0]]) + >>> c = coshm(a) + >>> c + array([[ 11.24592233, 38.76236492], + [ 12.92078831, 50.00828725]]) + + Verify tanhm(a) = sinhm(a).dot(inv(coshm(a))) + + >>> t = tanhm(a) + >>> s = sinhm(a) + >>> t - s.dot(np.linalg.inv(c)) + array([[ 2.72004641e-15, 4.55191440e-15], + [ 0.00000000e+00, -5.55111512e-16]]) + + """ + A = _asarray_square(A) + return _maybe_real(A, 0.5 * (expm(A) + expm(-A))) + + +def sinhm(A): + """ + Compute the hyperbolic matrix sine. + + This routine uses expm to compute the matrix exponentials. + + Parameters + ---------- + A : (N, N) array_like + Input array. + + Returns + ------- + sinhm : (N, N) ndarray + Hyperbolic matrix sine of `A` + + Examples + -------- + >>> import numpy as np + >>> from scipy.linalg import tanhm, sinhm, coshm + >>> a = np.array([[1.0, 3.0], [1.0, 4.0]]) + >>> s = sinhm(a) + >>> s + array([[ 10.57300653, 39.28826594], + [ 13.09608865, 49.86127247]]) + + Verify tanhm(a) = sinhm(a).dot(inv(coshm(a))) + + >>> t = tanhm(a) + >>> c = coshm(a) + >>> t - s.dot(np.linalg.inv(c)) + array([[ 2.72004641e-15, 4.55191440e-15], + [ 0.00000000e+00, -5.55111512e-16]]) + + """ + A = _asarray_square(A) + return _maybe_real(A, 0.5 * (expm(A) - expm(-A))) + + +def tanhm(A): + """ + Compute the hyperbolic matrix tangent. + + This routine uses expm to compute the matrix exponentials. + + Parameters + ---------- + A : (N, N) array_like + Input array + + Returns + ------- + tanhm : (N, N) ndarray + Hyperbolic matrix tangent of `A` + + Examples + -------- + >>> import numpy as np + >>> from scipy.linalg import tanhm, sinhm, coshm + >>> a = np.array([[1.0, 3.0], [1.0, 4.0]]) + >>> t = tanhm(a) + >>> t + array([[ 0.3428582 , 0.51987926], + [ 0.17329309, 0.86273746]]) + + Verify tanhm(a) = sinhm(a).dot(inv(coshm(a))) + + >>> s = sinhm(a) + >>> c = coshm(a) + >>> t - s.dot(np.linalg.inv(c)) + array([[ 2.72004641e-15, 4.55191440e-15], + [ 0.00000000e+00, -5.55111512e-16]]) + + """ + A = _asarray_square(A) + return _maybe_real(A, solve(coshm(A), sinhm(A))) + + +def funm(A, func, disp=True): + """ + Evaluate a matrix function specified by a callable. + + Returns the value of matrix-valued function ``f`` at `A`. The + function ``f`` is an extension of the scalar-valued function `func` + to matrices. + + Parameters + ---------- + A : (N, N) array_like + Matrix at which to evaluate the function + func : callable + Callable object that evaluates a scalar function f. + Must be vectorized (eg. using vectorize). + disp : bool, optional + Print warning if error in the result is estimated large + instead of returning estimated error. (Default: True) + + Returns + ------- + funm : (N, N) ndarray + Value of the matrix function specified by func evaluated at `A` + errest : float + (if disp == False) + + 1-norm of the estimated error, ||err||_1 / ||A||_1 + + Notes + ----- + This function implements the general algorithm based on Schur decomposition + (Algorithm 9.1.1. in [1]_). + + If the input matrix is known to be diagonalizable, then relying on the + eigendecomposition is likely to be faster. For example, if your matrix is + Hermitian, you can do + + >>> from scipy.linalg import eigh + >>> def funm_herm(a, func, check_finite=False): + ... w, v = eigh(a, check_finite=check_finite) + ... ## if you further know that your matrix is positive semidefinite, + ... ## you can optionally guard against precision errors by doing + ... # w = np.maximum(w, 0) + ... w = func(w) + ... return (v * w).dot(v.conj().T) + + References + ---------- + .. [1] Gene H. Golub, Charles F. van Loan, Matrix Computations 4th ed. + + Examples + -------- + >>> import numpy as np + >>> from scipy.linalg import funm + >>> a = np.array([[1.0, 3.0], [1.0, 4.0]]) + >>> funm(a, lambda x: x*x) + array([[ 4., 15.], + [ 5., 19.]]) + >>> a.dot(a) + array([[ 4., 15.], + [ 5., 19.]]) + + """ + A = _asarray_square(A) + # Perform Shur decomposition (lapack ?gees) + T, Z = schur(A) + T, Z = rsf2csf(T, Z) + n, n = T.shape + F = diag(func(diag(T))) # apply function to diagonal elements + F = F.astype(T.dtype.char) # e.g., when F is real but T is complex + + minden = abs(T[0, 0]) + + # implement Algorithm 11.1.1 from Golub and Van Loan + # "matrix Computations." + F, minden = _funm_loops(F, T, n, minden) + + F = dot(dot(Z, F), transpose(conjugate(Z))) + F = _maybe_real(A, F) + + tol = {0: feps, 1: eps}[_array_precision[F.dtype.char]] + if minden == 0.0: + minden = tol + err = min(1, max(tol, (tol/minden)*norm(triu(T, 1), 1))) + if prod(ravel(logical_not(isfinite(F))), axis=0): + err = np.inf + if disp: + if err > 1000*tol: + print("funm result may be inaccurate, approximate err =", err) + return F + else: + return F, err + + +def signm(A, disp=True): + """ + Matrix sign function. + + Extension of the scalar sign(x) to matrices. + + Parameters + ---------- + A : (N, N) array_like + Matrix at which to evaluate the sign function + disp : bool, optional + Print warning if error in the result is estimated large + instead of returning estimated error. (Default: True) + + Returns + ------- + signm : (N, N) ndarray + Value of the sign function at `A` + errest : float + (if disp == False) + + 1-norm of the estimated error, ||err||_1 / ||A||_1 + + Examples + -------- + >>> from scipy.linalg import signm, eigvals + >>> a = [[1,2,3], [1,2,1], [1,1,1]] + >>> eigvals(a) + array([ 4.12488542+0.j, -0.76155718+0.j, 0.63667176+0.j]) + >>> eigvals(signm(a)) + array([-1.+0.j, 1.+0.j, 1.+0.j]) + + """ + A = _asarray_square(A) + + def rounded_sign(x): + rx = np.real(x) + if rx.dtype.char == 'f': + c = 1e3*feps*amax(x) + else: + c = 1e3*eps*amax(x) + return sign((absolute(rx) > c) * rx) + result, errest = funm(A, rounded_sign, disp=0) + errtol = {0: 1e3*feps, 1: 1e3*eps}[_array_precision[result.dtype.char]] + if errest < errtol: + return result + + # Handle signm of defective matrices: + + # See "E.D.Denman and J.Leyva-Ramos, Appl.Math.Comp., + # 8:237-250,1981" for how to improve the following (currently a + # rather naive) iteration process: + + # a = result # sometimes iteration converges faster but where?? + + # Shifting to avoid zero eigenvalues. How to ensure that shifting does + # not change the spectrum too much? + vals = svd(A, compute_uv=False) + max_sv = np.amax(vals) + # min_nonzero_sv = vals[(vals>max_sv*errtol).tolist().count(1)-1] + # c = 0.5/min_nonzero_sv + c = 0.5/max_sv + S0 = A + c*np.identity(A.shape[0]) + prev_errest = errest + for i in range(100): + iS0 = inv(S0) + S0 = 0.5*(S0 + iS0) + Pp = 0.5*(dot(S0, S0)+S0) + errest = norm(dot(Pp, Pp)-Pp, 1) + if errest < errtol or prev_errest == errest: + break + prev_errest = errest + if disp: + if not isfinite(errest) or errest >= errtol: + print("signm result may be inaccurate, approximate err =", errest) + return S0 + else: + return S0, errest + + +def khatri_rao(a, b): + r""" + Khatri-rao product + + A column-wise Kronecker product of two matrices + + Parameters + ---------- + a : (n, k) array_like + Input array + b : (m, k) array_like + Input array + + Returns + ------- + c: (n*m, k) ndarray + Khatri-rao product of `a` and `b`. + + Notes + ----- + The mathematical definition of the Khatri-Rao product is: + + .. math:: + + (A_{ij} \bigotimes B_{ij})_{ij} + + which is the Kronecker product of every column of A and B, e.g.:: + + c = np.vstack([np.kron(a[:, k], b[:, k]) for k in range(b.shape[1])]).T + + Examples + -------- + >>> import numpy as np + >>> from scipy import linalg + >>> a = np.array([[1, 2, 3], [4, 5, 6]]) + >>> b = np.array([[3, 4, 5], [6, 7, 8], [2, 3, 9]]) + >>> linalg.khatri_rao(a, b) + array([[ 3, 8, 15], + [ 6, 14, 24], + [ 2, 6, 27], + [12, 20, 30], + [24, 35, 48], + [ 8, 15, 54]]) + + """ + a = np.asarray(a) + b = np.asarray(b) + + if not (a.ndim == 2 and b.ndim == 2): + raise ValueError("The both arrays should be 2-dimensional.") + + if not a.shape[1] == b.shape[1]: + raise ValueError("The number of columns for both arrays " + "should be equal.") + + # accommodate empty arrays + if a.size == 0 or b.size == 0: + m = a.shape[0] * b.shape[0] + n = a.shape[1] + return np.empty_like(a, shape=(m, n)) + + # c = np.vstack([np.kron(a[:, k], b[:, k]) for k in range(b.shape[1])]).T + c = a[..., :, np.newaxis, :] * b[..., np.newaxis, :, :] + return c.reshape((-1,) + c.shape[2:]) diff --git a/shared/package-files/a0/a0eb9ef70bb1b1563fee3a648179877c0ad198e3af0cfe5d16ca780bb86935b8/fft_ifftshift_compositeimplicitautograd_dispatch.h b/shared/package-files/a0/a0eb9ef70bb1b1563fee3a648179877c0ad198e3af0cfe5d16ca780bb86935b8/fft_ifftshift_compositeimplicitautograd_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..4f6b519bab2d96dec2d29c807681731f361aec34 --- /dev/null +++ b/shared/package-files/a0/a0eb9ef70bb1b1563fee3a648179877c0ad198e3af0cfe5d16ca780bb86935b8/fft_ifftshift_compositeimplicitautograd_dispatch.h @@ -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 fft_ifftshift(const at::Tensor & self, at::OptionalIntArrayRef dim=c10::nullopt); + +} // namespace compositeimplicitautograd +} // namespace at diff --git a/shared/package-files/a0/a0ee3a364f22a76b07031e4f4a454f9b00e7e19f37121b32db68d5c2f3220020/ex155 b/shared/package-files/a0/a0ee3a364f22a76b07031e4f4a454f9b00e7e19f37121b32db68d5c2f3220020/ex155 new file mode 100644 index 0000000000000000000000000000000000000000..be3dbbefbb8e45d14d89ea94e8fed283e59eac2f Binary files /dev/null and b/shared/package-files/a0/a0ee3a364f22a76b07031e4f4a454f9b00e7e19f37121b32db68d5c2f3220020/ex155 differ diff --git a/shared/package-files/a0/a0eeb81b4032d21750b547864a05dc703016c52678f5bc3fd3028d6a11a333e0/backend_init.h b/shared/package-files/a0/a0eeb81b4032d21750b547864a05dc703016c52678f5bc3fd3028d6a11a333e0/backend_init.h new file mode 100644 index 0000000000000000000000000000000000000000..e7be08c765953e4a59fd9f3bb106efb195866128 --- /dev/null +++ b/shared/package-files/a0/a0eeb81b4032d21750b547864a05dc703016c52678f5bc3fd3028d6a11a333e0/backend_init.h @@ -0,0 +1,11 @@ +#pragma once + +#include +#include + +namespace torch { +namespace jit { +// Initialize Python bindings for JIT to_ functions. +void initJitBackendBindings(PyObject* module); +} // namespace jit +} // namespace torch diff --git a/shared/package-files/a0/a0f4a601ce65bb25e08a7e95ab2d4233408c57d94f3964c50991bc2350702fc3/can_cast_ops.h b/shared/package-files/a0/a0f4a601ce65bb25e08a7e95ab2d4233408c57d94f3964c50991bc2350702fc3/can_cast_ops.h new file mode 100644 index 0000000000000000000000000000000000000000..e97279b8b5b454fd44d2f4b377f2e19135203952 --- /dev/null +++ b/shared/package-files/a0/a0f4a601ce65bb25e08a7e95ab2d4233408c57d94f3964c50991bc2350702fc3/can_cast_ops.h @@ -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 can_cast { + using schema = bool (at::ScalarType, at::ScalarType); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::can_cast") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "can_cast(ScalarType from, ScalarType to) -> bool") + static bool call(at::ScalarType from, at::ScalarType to); + static bool redispatch(c10::DispatchKeySet dispatchKeySet, at::ScalarType from, at::ScalarType to); +}; + +}} // namespace at::_ops diff --git a/shared/package-files/a0/a0fa807c28a79812fce498bb928e109730332c02bd9d92f4b76fc296511b0845/nanfunctions.pyi b/shared/package-files/a0/a0fa807c28a79812fce498bb928e109730332c02bd9d92f4b76fc296511b0845/nanfunctions.pyi new file mode 100644 index 0000000000000000000000000000000000000000..8642055fedd2e5b851c656efd563453e8bd94bd6 --- /dev/null +++ b/shared/package-files/a0/a0fa807c28a79812fce498bb928e109730332c02bd9d92f4b76fc296511b0845/nanfunctions.pyi @@ -0,0 +1,38 @@ +from numpy.core.fromnumeric import ( + amin, + amax, + argmin, + argmax, + sum, + prod, + cumsum, + cumprod, + mean, + var, + std +) + +from numpy.lib.function_base import ( + median, + percentile, + quantile, +) + +__all__: list[str] + +# NOTE: In reaility these functions are not aliases but distinct functions +# with identical signatures. +nanmin = amin +nanmax = amax +nanargmin = argmin +nanargmax = argmax +nansum = sum +nanprod = prod +nancumsum = cumsum +nancumprod = cumprod +nanmean = mean +nanvar = var +nanstd = std +nanmedian = median +nanpercentile = percentile +nanquantile = quantile diff --git a/shared/package-files/a0/a0fd55cef4fe5a050e67d0b53364aa85257af2b27978cc4b0232fb584ab97017/orgqr_compositeimplicitautograd_dispatch.h b/shared/package-files/a0/a0fd55cef4fe5a050e67d0b53364aa85257af2b27978cc4b0232fb584ab97017/orgqr_compositeimplicitautograd_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..ce06d57632bcd494ad3d410680059e6379e7f7c8 --- /dev/null +++ b/shared/package-files/a0/a0fd55cef4fe5a050e67d0b53364aa85257af2b27978cc4b0232fb584ab97017/orgqr_compositeimplicitautograd_dispatch.h @@ -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 orgqr(const at::Tensor & self, const at::Tensor & input2); +TORCH_API at::Tensor & orgqr_out(at::Tensor & out, const at::Tensor & self, const at::Tensor & input2); +TORCH_API at::Tensor & orgqr_outf(const at::Tensor & self, const at::Tensor & input2, at::Tensor & out); + +} // namespace compositeimplicitautograd +} // namespace at diff --git a/shared/package-files/ea/ea0028106ed2656f8b2ca4e1226a1ead01cd2ca42a5239970d380cab4be931a8/fitdb_ca.index b/shared/package-files/ea/ea0028106ed2656f8b2ca4e1226a1ead01cd2ca42a5239970d380cab4be931a8/fitdb_ca.index new file mode 100644 index 0000000000000000000000000000000000000000..d81abf914dd7ec5e1d30eefeb1e8179dcd25cd4e --- /dev/null +++ b/shared/package-files/ea/ea0028106ed2656f8b2ca4e1226a1ead01cd2ca42a5239970d380cab4be931a8/fitdb_ca.index @@ -0,0 +1,68153 @@ +0 0 68 +1 68 1970 +2 2038 68 +3 2106 812 +4 2918 38 +5 2956 38 +6 2994 104 +7 3098 104 +8 3202 1634 +9 4836 2486 +10 7322 2486 +11 9808 2486 +12 12294 2486 +13 14780 2486 +14 17266 2486 +15 19752 884 +16 20636 1796 +17 22432 146 +18 22578 146 +19 22724 146 +20 22870 1460 +21 24330 584 +22 24914 584 +23 25498 902 +24 26400 890 +25 27290 4484 +26 31774 4508 +27 36282 4496 +28 40778 4436 +29 45214 4538 +30 49752 4496 +31 54248 1112 +32 55360 1112 +33 56472 1112 +34 57584 1112 +35 58696 1112 +36 59808 1112 +37 60920 1238 +38 62158 1352 +39 63510 2732 +40 66242 1028 +41 67270 1028 +42 68298 1028 +43 69326 1028 +44 70354 1052 +45 71406 1040 +46 72446 1052 +47 73498 1040 +48 74538 188 +49 74726 182 +50 74908 188 +51 75096 1982 +52 77078 1982 +53 79060 1952 +54 81012 1952 +55 82964 1994 +56 84958 1994 +57 86952 2000 +58 88952 2000 +59 90952 1994 +60 92946 1994 +61 94940 2000 +62 96940 2000 +63 98940 2096 +64 101036 2096 +65 103132 1574 +66 104706 2006 +67 106712 746 +68 107458 1862 +69 109320 758 +70 110078 1910 +71 111988 752 +72 112740 1442 +73 114182 1442 +74 115624 1442 +75 117066 554 +76 117620 1928 +77 119548 1346 +78 120894 542 +79 121436 542 +80 121978 2126 +81 124104 2180 +82 126284 2126 +83 128410 2126 +84 130536 158 +85 130694 152 +86 130846 164 +87 131010 446 +88 131456 236 +89 131692 146 +90 131838 158 +91 131996 152 +92 132148 680 +93 132828 680 +94 133508 674 +95 134182 518 +96 134700 518 +97 135218 518 +98 135736 356 +99 136092 356 +100 136448 356 +101 136804 356 +102 137160 356 +103 137516 356 +104 137872 1274 +105 139146 1106 +106 140252 1124 +107 141376 1124 +108 142500 1106 +109 143606 1784 +110 145390 860 +111 146250 2078 +112 148328 2078 +113 150406 422 +114 150828 416 +115 151244 2642 +116 153886 2642 +117 156528 1964 +118 158492 1958 +119 160450 2024 +120 162474 722 +121 163196 2042 +122 165238 2042 +123 167280 2042 +124 169322 2042 +125 171364 2042 +126 173406 2042 +127 175448 2042 +128 177490 2042 +129 179532 1982 +130 181514 2018 +131 183532 3206 +132 186738 3206 +133 189944 3206 +134 193150 3206 +135 196356 3206 +136 199562 3206 +137 202768 3206 +138 205974 3206 +139 209180 3206 +140 212386 3206 +141 215592 3206 +142 218798 3206 +143 222004 3206 +144 225210 3206 +145 228416 3206 +146 231622 3206 +147 234828 2228 +148 237056 884 +149 237940 62 +150 238002 884 +151 238886 62 +152 238948 2684 +153 241632 1784 +154 243416 1394 +155 244810 1394 +156 246204 1394 +157 247598 1394 +158 248992 1394 +159 250386 1394 +160 251780 1388 +161 253168 1388 +162 254556 1388 +163 255944 1382 +164 257326 1388 +165 258714 1382 +166 260096 3854 +167 263950 2906 +168 266856 1892 +169 268748 1862 +170 270610 4490 +171 275100 4472 +172 279572 1340 +173 280912 2720 +174 283632 1826 +175 285458 1316 +176 286774 2816 +177 289590 2810 +178 292400 1784 +179 294184 344 +180 294528 350 +181 294878 1862 +182 296740 1016 +183 297756 968 +184 298724 980 +185 299704 980 +186 300684 896 +187 301580 890 +188 302470 2102 +189 304572 1742 +190 306314 2300 +191 308614 866 +192 309480 884 +193 310364 1802 +194 312166 1802 +195 313968 1058 +196 315026 1046 +197 316072 1256 +198 317328 1256 +199 318584 2024 +200 320608 2024 +201 322632 1082 +202 323714 1892 +203 325606 1934 +204 327540 1886 +205 329426 1922 +206 331348 2636 +207 333984 2606 +208 336590 2726 +209 339316 2726 +210 342042 2258 +211 344300 2606 +212 346906 2762 +213 349668 2786 +214 352454 2792 +215 355246 1142 +216 356388 2216 +217 358604 1142 +218 359746 2216 +219 361962 1142 +220 363104 2216 +221 365320 1142 +222 366462 2216 +223 368678 1142 +224 369820 2216 +225 372036 1142 +226 373178 2216 +227 375394 1142 +228 376536 2216 +229 378752 1142 +230 379894 2216 +231 382110 1142 +232 383252 2216 +233 385468 1142 +234 386610 2216 +235 388826 1142 +236 389968 2216 +237 392184 1142 +238 393326 2216 +239 395542 1142 +240 396684 2216 +241 398900 1142 +242 400042 2216 +243 402258 1142 +244 403400 2216 +245 405616 1142 +246 406758 2216 +247 408974 1142 +248 410116 2216 +249 412332 1142 +250 413474 2216 +251 415690 1142 +252 416832 2216 +253 419048 1142 +254 420190 2216 +255 422406 1142 +256 423548 2216 +257 425764 1142 +258 426906 2216 +259 429122 1142 +260 430264 2216 +261 432480 1142 +262 433622 2216 +263 435838 1142 +264 436980 2216 +265 439196 1142 +266 440338 2216 +267 442554 1142 +268 443696 2216 +269 445912 1142 +270 447054 2216 +271 449270 1142 +272 450412 2216 +273 452628 1142 +274 453770 2216 +275 455986 1142 +276 457128 2216 +277 459344 1142 +278 460486 2216 +279 462702 1142 +280 463844 2216 +281 466060 1142 +282 467202 2216 +283 469418 1142 +284 470560 2216 +285 472776 1142 +286 473918 2216 +287 476134 1142 +288 477276 2216 +289 479492 1142 +290 480634 2216 +291 482850 1142 +292 483992 2216 +293 486208 1142 +294 487350 2216 +295 489566 1142 +296 490708 2216 +297 492924 1142 +298 494066 2216 +299 496282 1142 +300 497424 2216 +301 499640 1142 +302 500782 2216 +303 502998 1142 +304 504140 2216 +305 506356 1142 +306 507498 2216 +307 509714 1142 +308 510856 2216 +309 513072 1142 +310 514214 2216 +311 516430 1142 +312 517572 2216 +313 519788 1142 +314 520930 2216 +315 523146 1142 +316 524288 2216 +317 526504 1142 +318 527646 2216 +319 529862 1142 +320 531004 2216 +321 533220 1142 +322 534362 2216 +323 536578 1142 +324 537720 2216 +325 539936 1142 +326 541078 2216 +327 543294 1142 +328 544436 2216 +329 546652 1142 +330 547794 2216 +331 550010 1142 +332 551152 2216 +333 553368 1142 +334 554510 2216 +335 556726 1184 +336 557910 2210 +337 560120 1184 +338 561304 2210 +339 563514 1184 +340 564698 2210 +341 566908 1184 +342 568092 2210 +343 570302 1184 +344 571486 2210 +345 573696 1184 +346 574880 2210 +347 577090 1184 +348 578274 2210 +349 580484 1184 +350 581668 2210 +351 583878 1184 +352 585062 2210 +353 587272 1184 +354 588456 2210 +355 590666 1184 +356 591850 2210 +357 594060 1184 +358 595244 2210 +359 597454 1184 +360 598638 2210 +361 600848 1184 +362 602032 2210 +363 604242 1184 +364 605426 2210 +365 607636 1184 +366 608820 2210 +367 611030 1184 +368 612214 2210 +369 614424 1184 +370 615608 2210 +371 617818 1184 +372 619002 2210 +373 621212 1184 +374 622396 2210 +375 624606 1184 +376 625790 2210 +377 628000 1184 +378 629184 2210 +379 631394 1184 +380 632578 2210 +381 634788 1184 +382 635972 2210 +383 638182 1184 +384 639366 2210 +385 641576 1184 +386 642760 2210 +387 644970 1184 +388 646154 2210 +389 648364 1184 +390 649548 2210 +391 651758 1184 +392 652942 2210 +393 655152 1184 +394 656336 2210 +395 658546 1184 +396 659730 2210 +397 661940 1184 +398 663124 2210 +399 665334 1184 +400 666518 2210 +401 668728 1184 +402 669912 2210 +403 672122 1184 +404 673306 2210 +405 675516 1184 +406 676700 2210 +407 678910 1184 +408 680094 2210 +409 682304 1184 +410 683488 2210 +411 685698 1184 +412 686882 2210 +413 689092 1184 +414 690276 2210 +415 692486 1184 +416 693670 2210 +417 695880 1184 +418 697064 2210 +419 699274 1184 +420 700458 2210 +421 702668 1184 +422 703852 2210 +423 706062 1184 +424 707246 2210 +425 709456 1184 +426 710640 2210 +427 712850 1184 +428 714034 2210 +429 716244 1184 +430 717428 2210 +431 719638 1184 +432 720822 2210 +433 723032 1184 +434 724216 2210 +435 726426 1184 +436 727610 2210 +437 729820 1184 +438 731004 2210 +439 733214 1184 +440 734398 2210 +441 736608 1184 +442 737792 2210 +443 740002 1184 +444 741186 2210 +445 743396 1184 +446 744580 2210 +447 746790 1184 +448 747974 2210 +449 750184 1184 +450 751368 2210 +451 753578 1184 +452 754762 2210 +453 756972 1184 +454 758156 2210 +455 760366 1724 +456 762090 2018 +457 764108 920 +458 765028 74 +459 765102 2144 +460 767246 2144 +461 769390 2144 +462 771534 2144 +463 773678 2240 +464 775918 2240 +465 778158 2252 +466 780410 2234 +467 782644 2240 +468 784884 2228 +469 787112 2210 +470 789322 2204 +471 791526 2246 +472 793772 2246 +473 796018 2276 +474 798294 2246 +475 800540 1850 +476 802390 1838 +477 804228 1838 +478 806066 2018 +479 808084 2018 +480 810102 2018 +481 812120 2018 +482 814138 2018 +483 816156 1814 +484 817970 986 +485 818956 1568 +486 820524 1238 +487 821762 1406 +488 823168 1106 +489 824274 1202 +490 825476 782 +491 826258 1112 +492 827370 860 +493 828230 620 +494 828850 596 +495 829446 812 +496 830258 860 +497 831118 818 +498 831936 332 +499 832268 848 +500 833116 932 +501 834048 434 +502 834482 674 +503 835156 848 +504 836004 536 +505 836540 740 +506 837280 428 +507 837708 512 +508 838220 512 +509 838732 332 +510 839064 284 +511 839348 1748 +512 841096 1232 +513 842328 1268 +514 843596 1220 +515 844816 578 +516 845394 2378 +517 847772 1958 +518 849730 1532 +519 851262 1370 +520 852632 1466 +521 854098 1226 +522 855324 1328 +523 856652 1280 +524 857932 1184 +525 859116 1076 +526 860192 1022 +527 861214 1016 +528 862230 920 +529 863150 914 +530 864064 872 +531 864936 860 +532 865796 896 +533 866692 800 +534 867492 746 +535 868238 752 +536 868990 746 +537 869736 782 +538 870518 710 +539 871228 716 +540 871944 680 +541 872624 728 +542 873352 722 +543 874074 488 +544 874562 524 +545 875086 692 +546 875778 506 +547 876284 536 +548 876820 608 +549 877428 536 +550 877964 392 +551 878356 404 +552 878760 434 +553 879194 308 +554 879502 158 +555 879660 914 +556 880574 1334 +557 881908 1118 +558 883026 1796 +559 884822 1088 +560 885910 1082 +561 886992 944 +562 887936 1424 +563 889360 1424 +564 890784 1430 +565 892214 1430 +566 893644 1556 +567 895200 386 +568 895586 386 +569 895972 1484 +570 897456 1124 +571 898580 956 +572 899536 3914 +573 903450 1622 +574 905072 1628 +575 906700 1190 +576 907890 1196 +577 909086 770 +578 909856 770 +579 910626 1256 +580 911882 1028 +581 912910 1238 +582 914148 1028 +583 915176 2462 +584 917638 2468 +585 920106 2462 +586 922568 2468 +587 925036 1070 +588 926106 1442 +589 927548 1442 +590 928990 1472 +591 930462 1118 +592 931580 1076 +593 932656 716 +594 933372 680 +595 934052 716 +596 934768 680 +597 935448 566 +598 936014 566 +599 936580 3554 +600 940134 3518 +601 943652 3554 +602 947206 3518 +603 950724 3560 +604 954284 3566 +605 957850 698 +606 958548 704 +607 959252 686 +608 959938 692 +609 960630 446 +610 961076 92 +611 961168 1988 +612 963156 950 +613 964106 764 +614 964870 764 +615 965634 764 +616 966398 764 +617 967162 794 +618 967956 794 +619 968750 692 +620 969442 566 +621 970008 914 +622 970922 908 +623 971830 914 +624 972744 908 +625 973652 3020 +626 976672 2840 +627 979512 2522 +628 982034 2522 +629 984556 2522 +630 987078 3038 +631 990116 3038 +632 993154 2996 +633 996150 2036 +634 998186 848 +635 999034 500 +636 999534 488 +637 1000022 902 +638 1000924 3086 +639 1004010 3086 +640 1007096 3086 +641 1010182 3086 +642 1013268 3086 +643 1016354 3086 +644 1019440 3086 +645 1022526 3086 +646 1025612 3086 +647 1028698 3086 +648 1031784 3086 +649 1034870 3086 +650 1037956 3086 +651 1041042 3086 +652 1044128 3086 +653 1047214 3086 +654 1050300 3086 +655 1053386 3086 +656 1056472 3086 +657 1059558 3086 +658 1062644 3086 +659 1065730 3086 +660 1068816 3086 +661 1071902 3086 +662 1074988 3086 +663 1078074 3086 +664 1081160 3086 +665 1084246 3086 +666 1087332 3086 +667 1090418 3086 +668 1093504 3086 +669 1096590 3086 +670 1099676 3086 +671 1102762 3086 +672 1105848 3086 +673 1108934 3086 +674 1112020 3086 +675 1115106 3086 +676 1118192 3086 +677 1121278 3086 +678 1124364 3086 +679 1127450 3086 +680 1130536 3086 +681 1133622 3086 +682 1136708 3086 +683 1139794 3086 +684 1142880 3086 +685 1145966 3086 +686 1149052 3086 +687 1152138 3086 +688 1155224 3086 +689 1158310 3086 +690 1161396 3086 +691 1164482 3086 +692 1167568 3086 +693 1170654 3086 +694 1173740 3086 +695 1176826 3086 +696 1179912 3086 +697 1182998 3086 +698 1186084 908 +699 1186992 950 +700 1187942 908 +701 1188850 950 +702 1189800 1004 +703 1190804 1010 +704 1191814 1388 +705 1193202 1550 +706 1194752 1550 +707 1196302 1550 +708 1197852 1550 +709 1199402 1550 +710 1200952 1550 +711 1202502 1550 +712 1204052 1544 +713 1205596 1544 +714 1207140 1550 +715 1208690 1544 +716 1210234 1550 +717 1211784 1550 +718 1213334 1550 +719 1214884 1556 +720 1216440 1544 +721 1217984 1544 +722 1219528 1550 +723 1221078 6440 +724 1227518 1028 +725 1228546 2078 +726 1230624 2078 +727 1232702 2078 +728 1234780 2078 +729 1236858 668 +730 1237526 668 +731 1238194 662 +732 1238856 650 +733 1239506 872 +734 1240378 2582 +735 1242960 1640 +736 1244600 1640 +737 1246240 1274 +738 1247514 1226 +739 1248740 3728 +740 1252468 3590 +741 1256058 1634 +742 1257692 1610 +743 1259302 1646 +744 1260948 482 +745 1261430 1646 +746 1263076 482 +747 1263558 980 +748 1264538 980 +749 1265518 1106 +750 1266624 1094 +751 1267718 548 +752 1268266 818 +753 1269084 110 +754 1269194 680 +755 1269874 668 +756 1270542 458 +757 1271000 332 +758 1271332 716 +759 1272048 68 +760 1272116 806 +761 1272922 806 +762 1273728 1382 +763 1275110 1388 +764 1276498 1436 +765 1277934 2036 +766 1279970 2030 +767 1282000 1970 +768 1283970 1910 +769 1285880 554 +770 1286434 554 +771 1286988 554 +772 1287542 554 +773 1288096 890 +774 1288986 926 +775 1289912 920 +776 1290832 698 +777 1291530 710 +778 1292240 1958 +779 1294198 1862 +780 1296060 4574 +781 1300634 554 +782 1301188 1274 +783 1302462 1310 +784 1303772 836 +785 1304608 836 +786 1305444 830 +787 1306274 836 +788 1307110 818 +789 1307928 380 +790 1308308 842 +791 1309150 380 +792 1309530 818 +793 1310348 380 +794 1310728 836 +795 1311564 380 +796 1311944 2012 +797 1313956 1040 +798 1314996 3008 +799 1318004 1334 +800 1319338 1334 +801 1320672 1334 +802 1322006 1334 +803 1323340 1334 +804 1324674 1334 +805 1326008 1334 +806 1327342 1334 +807 1328676 1334 +808 1330010 1334 +809 1331344 926 +810 1332270 1268 +811 1333538 896 +812 1334434 956 +813 1335390 962 +814 1336352 896 +815 1337248 896 +816 1338144 956 +817 1339100 962 +818 1340062 896 +819 1340958 1004 +820 1341962 1010 +821 1342972 1604 +822 1344576 1604 +823 1346180 536 +824 1346716 170 +825 1346886 758 +826 1347644 1718 +827 1349362 704 +828 1350066 1526 +829 1351592 1526 +830 1353118 1526 +831 1354644 1520 +832 1356164 1520 +833 1357684 1520 +834 1359204 2126 +835 1361330 1820 +836 1363150 1820 +837 1364970 1820 +838 1366790 1820 +839 1368610 1820 +840 1370430 1820 +841 1372250 1820 +842 1374070 1820 +843 1375890 1820 +844 1377710 1820 +845 1379530 1820 +846 1381350 1820 +847 1383170 1820 +848 1384990 1820 +849 1386810 1820 +850 1388630 1820 +851 1390450 1820 +852 1392270 1820 +853 1394090 1820 +854 1395910 1820 +855 1397730 1820 +856 1399550 1820 +857 1401370 1820 +858 1403190 1820 +859 1405010 2054 +860 1407064 2054 +861 1409118 1910 +862 1411028 3344 +863 1414372 3272 +864 1417644 614 +865 1418258 620 +866 1418878 968 +867 1419846 2438 +868 1422284 2438 +869 1424722 2420 +870 1427142 2444 +871 1429586 3542 +872 1433128 3542 +873 1436670 3542 +874 1440212 3542 +875 1443754 3542 +876 1447296 3542 +877 1450838 794 +878 1451632 3494 +879 1455126 1226 +880 1456352 1226 +881 1457578 1226 +882 1458804 404 +883 1459208 362 +884 1459570 62 +885 1459632 2042 +886 1461674 626 +887 1462300 626 +888 1462926 626 +889 1463552 614 +890 1464166 2366 +891 1466532 1712 +892 1468244 1712 +893 1469956 3086 +894 1473042 3086 +895 1476128 656 +896 1476784 344 +897 1477128 344 +898 1477472 626 +899 1478098 638 +900 1478736 632 +901 1479368 632 +902 1480000 626 +903 1480626 632 +904 1481258 1640 +905 1482898 1208 +906 1484106 3572 +907 1487678 3578 +908 1491256 3572 +909 1494828 3572 +910 1498400 3572 +911 1501972 3572 +912 1505544 890 +913 1506434 3314 +914 1509748 5552 +915 1515300 3314 +916 1518614 5552 +917 1524166 2372 +918 1526538 1076 +919 1527614 1076 +920 1528690 1382 +921 1530072 1046 +922 1531118 1076 +923 1532194 686 +924 1532880 1070 +925 1533950 1064 +926 1535014 1274 +927 1536288 392 +928 1536680 386 +929 1537066 386 +930 1537452 380 +931 1537832 374 +932 1538206 386 +933 1538592 1292 +934 1539884 1262 +935 1541146 2438 +936 1543584 2624 +937 1546208 2624 +938 1548832 2438 +939 1551270 482 +940 1551752 482 +941 1552234 2540 +942 1554774 1724 +943 1556498 1724 +944 1558222 1724 +945 1559946 1724 +946 1561670 1010 +947 1562680 1004 +948 1563684 2156 +949 1565840 404 +950 1566244 404 +951 1566648 404 +952 1567052 440 +953 1567492 608 +954 1568100 2042 +955 1570142 440 +956 1570582 608 +957 1571190 2048 +958 1573238 428 +959 1573666 608 +960 1574274 2036 +961 1576310 428 +962 1576738 608 +963 1577346 2030 +964 1579376 2354 +965 1581730 2168 +966 1583898 2354 +967 1586252 1418 +968 1587670 1418 +969 1589088 1418 +970 1590506 1472 +971 1591978 1472 +972 1593450 1472 +973 1594922 2906 +974 1597828 3230 +975 1601058 1052 +976 1602110 1052 +977 1603162 2420 +978 1605582 2462 +979 1608044 2426 +980 1610470 2444 +981 1612914 2774 +982 1615688 2744 +983 1618432 1712 +984 1620144 1712 +985 1621856 2510 +986 1624366 1064 +987 1625430 1064 +988 1626494 938 +989 1627432 2090 +990 1629522 890 +991 1630412 512 +992 1630924 1634 +993 1632558 1262 +994 1633820 1214 +995 1635034 1070 +996 1636104 1058 +997 1637162 902 +998 1638064 788 +999 1638852 854 +1000 1639706 746 +1001 1640452 872 +1002 1641324 824 +1003 1642148 722 +1004 1642870 698 +1005 1643568 692 +1006 1644260 710 +1007 1644970 626 +1008 1645596 662 +1009 1646258 572 +1010 1646830 626 +1011 1647456 572 +1012 1648028 470 +1013 1648498 356 +1014 1648854 344 +1015 1649198 404 +1016 1649602 332 +1017 1649934 320 +1018 1650254 284 +1019 1650538 392 +1020 1650930 230 +1021 1651160 1358 +1022 1652518 1256 +1023 1653774 1238 +1024 1655012 944 +1025 1655956 632 +1026 1656588 914 +1027 1657502 782 +1028 1658284 764 +1029 1659048 602 +1030 1659650 710 +1031 1660360 746 +1032 1661106 698 +1033 1661804 608 +1034 1662412 530 +1035 1662942 494 +1036 1663436 488 +1037 1663924 398 +1038 1664322 500 +1039 1664822 518 +1040 1665340 428 +1041 1665768 422 +1042 1666190 242 +1043 1666432 1886 +1044 1668318 2222 +1045 1670540 1916 +1046 1672456 2246 +1047 1674702 1916 +1048 1676618 2246 +1049 1678864 1394 +1050 1680258 3596 +1051 1683854 3554 +1052 1687408 1730 +1053 1689138 1724 +1054 1690862 1730 +1055 1692592 1724 +1056 1694316 3230 +1057 1697546 5786 +1058 1703332 2432 +1059 1705764 1178 +1060 1706942 554 +1061 1707496 1484 +1062 1708980 1442 +1063 1710422 440 +1064 1710862 440 +1065 1711302 170 +1066 1711472 170 +1067 1711642 164 +1068 1711806 1868 +1069 1713674 1868 +1070 1715542 1562 +1071 1717104 2156 +1072 1719260 2588 +1073 1721848 2594 +1074 1724442 2600 +1075 1727042 2708 +1076 1729750 1016 +1077 1730766 1004 +1078 1731770 296 +1079 1732066 320 +1080 1732386 302 +1081 1732688 278 +1082 1732966 296 +1083 1733262 296 +1084 1733558 314 +1085 1733872 284 +1086 1734156 2192 +1087 1736348 2192 +1088 1738540 2198 +1089 1740738 2204 +1090 1742942 2198 +1091 1745140 3686 +1092 1748826 3692 +1093 1752518 1262 +1094 1753780 458 +1095 1754238 3098 +1096 1757336 368 +1097 1757704 368 +1098 1758072 1358 +1099 1759430 1376 +1100 1760806 1322 +1101 1762128 1406 +1102 1763534 1358 +1103 1764892 1412 +1104 1766304 1406 +1105 1767710 1316 +1106 1769026 1226 +1107 1770252 1166 +1108 1771418 1178 +1109 1772596 1256 +1110 1773852 1280 +1111 1775132 1172 +1112 1776304 1358 +1113 1777662 1376 +1114 1779038 1322 +1115 1780360 1406 +1116 1781766 1358 +1117 1783124 1412 +1118 1784536 1406 +1119 1785942 1316 +1120 1787258 1226 +1121 1788484 1166 +1122 1789650 1178 +1123 1790828 1256 +1124 1792084 1280 +1125 1793364 1172 +1126 1794536 2354 +1127 1796890 1346 +1128 1798236 1034 +1129 1799270 992 +1130 1800262 1034 +1131 1801296 992 +1132 1802288 1034 +1133 1803322 992 +1134 1804314 1898 +1135 1806212 1898 +1136 1808110 1898 +1137 1810008 1898 +1138 1811906 1898 +1139 1813804 1898 +1140 1815702 2204 +1141 1817906 2204 +1142 1820110 1142 +1143 1821252 3230 +1144 1824482 572 +1145 1825054 572 +1146 1825626 572 +1147 1826198 572 +1148 1826770 692 +1149 1827462 698 +1150 1828160 962 +1151 1829122 1124 +1152 1830246 1124 +1153 1831370 1010 +1154 1832380 1004 +1155 1833384 4112 +1156 1837496 1286 +1157 1838782 1316 +1158 1840098 1280 +1159 1841378 4580 +1160 1845958 4610 +1161 1850568 608 +1162 1851176 1592 +1163 1852768 2450 +1164 1855218 2864 +1165 1858082 2864 +1166 1860946 2864 +1167 1863810 2864 +1168 1866674 2858 +1169 1869532 2864 +1170 1872396 410 +1171 1872806 410 +1172 1873216 410 +1173 1873626 410 +1174 1874036 410 +1175 1874446 410 +1176 1874856 776 +1177 1875632 836 +1178 1876468 3302 +1179 1879770 3302 +1180 1883072 3302 +1181 1886374 3302 +1182 1889676 3302 +1183 1892978 3302 +1184 1896280 6074 +1185 1902354 6074 +1186 1908428 6074 +1187 1914502 6074 +1188 1920576 6074 +1189 1926650 6074 +1190 1932724 1358 +1191 1934082 1358 +1192 1935440 1358 +1193 1936798 1358 +1194 1938156 1358 +1195 1939514 1358 +1196 1940872 806 +1197 1941678 806 +1198 1942484 806 +1199 1943290 806 +1200 1944096 806 +1201 1944902 806 +1202 1945708 878 +1203 1946586 878 +1204 1947464 878 +1205 1948342 878 +1206 1949220 878 +1207 1950098 878 +1208 1950976 3938 +1209 1954914 3938 +1210 1958852 3938 +1211 1962790 3938 +1212 1966728 3938 +1213 1970666 3938 +1214 1974604 854 +1215 1975458 854 +1216 1976312 854 +1217 1977166 854 +1218 1978020 854 +1219 1978874 854 +1220 1979728 248 +1221 1979976 248 +1222 1980224 248 +1223 1980472 3488 +1224 1983960 3488 +1225 1987448 3488 +1226 1990936 1610 +1227 1992546 1610 +1228 1994156 5726 +1229 1999882 5726 +1230 2005608 5726 +1231 2011334 1772 +1232 2013106 1772 +1233 2014878 1652 +1234 2016530 68 +1235 2016598 794 +1236 2017392 584 +1237 2017976 986 +1238 2018962 1982 +1239 2020944 1964 +1240 2022908 1982 +1241 2024890 1964 +1242 2026854 1982 +1243 2028836 1964 +1244 2030800 926 +1245 2031726 1550 +1246 2033276 1550 +1247 2034826 1550 +1248 2036376 1550 +1249 2037926 1052 +1250 2038978 1052 +1251 2040030 776 +1252 2040806 1430 +1253 2042236 2132 +1254 2044368 2132 +1255 2046500 5438 +1256 2051938 650 +1257 2052588 260 +1258 2052848 2156 +1259 2055004 2150 +1260 2057154 710 +1261 2057864 710 +1262 2058574 1190 +1263 2059764 1190 +1264 2060954 992 +1265 2061946 980 +1266 2062926 638 +1267 2063564 2078 +1268 2065642 1064 +1269 2066706 896 +1270 2067602 998 +1271 2068600 992 +1272 2069592 992 +1273 2070584 992 +1274 2071576 488 +1275 2072064 488 +1276 2072552 2006 +1277 2074558 4712 +1278 2079270 1058 +1279 2080328 2725 +1280 2083053 884 +1281 2083937 950 +1282 2084887 734 +1283 2085621 794 +1284 2086415 1460 +1285 2087875 1766 +1286 2089641 776 +1287 2090417 1694 +1288 2092111 1652 +1289 2093763 1148 +1290 2094911 1082 +1291 2095993 1082 +1292 2097075 848 +1293 2097923 638 +1294 2098561 1681 +1295 2100242 638 +1296 2100880 2258 +1297 2103138 2312 +1298 2105450 2162 +1299 2107612 644 +1300 2108256 644 +1301 2108900 2018 +1302 2110918 4190 +1303 2115108 206 +1304 2115314 518 +1305 2115832 662 +1306 2116494 2636 +1307 2119130 1556 +1308 2120686 2372 +1309 2123058 794 +1310 2123852 44 +1311 2123896 6674 +1312 2130570 6674 +1313 2137244 6674 +1314 2143918 728 +1315 2144646 728 +1316 2145374 728 +1317 2146102 7729 +1318 2153831 206 +1319 2154037 518 +1320 2154555 662 +1321 2155217 2636 +1322 2157853 1556 +1323 2159409 2372 +1324 2161781 806 +1325 2162587 44 +1326 2162631 1730 +1327 2164361 1736 +1328 2166097 1796 +1329 2167893 1736 +1330 2169629 764 +1331 2170393 764 +1332 2171157 764 +1333 2171921 998 +1334 2172919 2270 +1335 2175189 3080 +1336 2178269 3080 +1337 2181349 3080 +1338 2184429 2930 +1339 2187359 1706 +1340 2189065 3392 +1341 2192457 3392 +1342 2195849 4712 +1343 2200561 1058 +1344 2201619 1226 +1345 2202845 884 +1346 2203729 950 +1347 2204679 734 +1348 2205413 794 +1349 2206207 1460 +1350 2207667 1766 +1351 2209433 776 +1352 2210209 2642 +1353 2212851 2642 +1354 2215493 2642 +1355 2218135 2642 +1356 2220777 2642 +1357 2223419 2642 +1358 2226061 668 +1359 2226729 668 +1360 2227397 656 +1361 2228053 656 +1362 2228709 650 +1363 2229359 656 +1364 2230015 656 +1365 2230671 656 +1366 2231327 650 +1367 2231977 650 +1368 2232627 650 +1369 2233277 656 +1370 2233933 650 +1371 2234583 650 +1372 2235233 650 +1373 2235883 644 +1374 2236527 650 +1375 2237177 656 +1376 2237833 650 +1377 2238483 650 +1378 2239133 650 +1379 2239783 650 +1380 2240433 368 +1381 2240801 368 +1382 2241169 1712 +1383 2242881 1730 +1384 2244611 1634 +1385 2246245 398 +1386 2246643 356 +1387 2246999 1406 +1388 2248405 1346 +1389 2249751 1376 +1390 2251127 1094 +1391 2252221 1166 +1392 2253387 668 +1393 2254055 2738 +1394 2256793 1496 +1395 2258289 1484 +1396 2259773 1496 +1397 2261269 1484 +1398 2262753 1136 +1399 2263889 1136 +1400 2265025 332 +1401 2265357 908 +1402 2266265 2498 +1403 2268763 746 +1404 2269509 908 +1405 2270417 464 +1406 2270881 908 +1407 2271789 464 +1408 2272253 1214 +1409 2273467 1220 +1410 2274687 2336 +1411 2277023 506 +1412 2277529 2516 +1413 2280045 2516 +1414 2282561 2498 +1415 2285059 2504 +1416 2287563 2468 +1417 2290031 2444 +1418 2292475 650 +1419 2293125 686 +1420 2293811 1934 +1421 2295745 1934 +1422 2297679 1910 +1423 2299589 1928 +1424 2301517 1904 +1425 2303421 74 +1426 2303495 1940 +1427 2305435 1946 +1428 2307381 854 +1429 2308235 824 +1430 2309059 1046 +1431 2310105 1046 +1432 2311151 950 +1433 2312101 896 +1434 2312997 914 +1435 2313911 944 +1436 2314855 914 +1437 2315769 914 +1438 2316683 938 +1439 2317621 914 +1440 2318535 914 +1441 2319449 944 +1442 2320393 1532 +1443 2321925 1016 +1444 2322941 2960 +1445 2325901 2960 +1446 2328861 2948 +1447 2331809 1298 +1448 2333107 2672 +1449 2335779 2390 +1450 2338169 2684 +1451 2340853 2690 +1452 2343543 800 +1453 2344343 800 +1454 2345143 1448 +1455 2346591 1448 +1456 2348039 368 +1457 2348407 392 +1458 2348799 56 +1459 2348855 368 +1460 2349223 392 +1461 2349615 56 +1462 2349671 1658 +1463 2351329 1658 +1464 2352987 1784 +1465 2354771 1736 +1466 2356507 1694 +1467 2358201 1694 +1468 2359895 788 +1469 2360683 3608 +1470 2364291 3608 +1471 2367899 3608 +1472 2371507 3608 +1473 2375115 3608 +1474 2378723 3608 +1475 2382331 1370 +1476 2383701 1370 +1477 2385071 1370 +1478 2386441 3368 +1479 2389809 3368 +1480 2393177 2216 +1481 2395393 2210 +1482 2397603 1778 +1483 2399381 734 +1484 2400115 6409 +1485 2406524 734 +1486 2407258 6409 +1487 2413667 452 +1488 2414119 458 +1489 2414577 926 +1490 2415503 926 +1491 2416429 2408 +1492 2418837 2408 +1493 2421245 2804 +1494 2424049 302 +1495 2424351 296 +1496 2424647 302 +1497 2424949 296 +1498 2425245 320 +1499 2425565 290 +1500 2425855 122 +1501 2425977 2714 +1502 2428691 1586 +1503 2430277 1772 +1504 2432049 866 +1505 2432915 806 +1506 2433721 848 +1507 2434569 884 +1508 2435453 2516 +1509 2437969 1058 +1510 2439027 302 +1511 2439329 866 +1512 2440195 806 +1513 2441001 848 +1514 2441849 884 +1515 2442733 2516 +1516 2445249 1058 +1517 2446307 302 +1518 2446609 866 +1519 2447475 806 +1520 2448281 848 +1521 2449129 884 +1522 2450013 2516 +1523 2452529 1058 +1524 2453587 302 +1525 2453889 866 +1526 2454755 806 +1527 2455561 848 +1528 2456409 884 +1529 2457293 2516 +1530 2459809 1058 +1531 2460867 302 +1532 2461169 866 +1533 2462035 806 +1534 2462841 848 +1535 2463689 884 +1536 2464573 2516 +1537 2467089 1058 +1538 2468147 302 +1539 2468449 866 +1540 2469315 806 +1541 2470121 848 +1542 2470969 884 +1543 2471853 2516 +1544 2474369 1058 +1545 2475427 302 +1546 2475729 866 +1547 2476595 806 +1548 2477401 848 +1549 2478249 884 +1550 2479133 2516 +1551 2481649 1058 +1552 2482707 302 +1553 2483009 866 +1554 2483875 806 +1555 2484681 848 +1556 2485529 884 +1557 2486413 2516 +1558 2488929 1058 +1559 2489987 302 +1560 2490289 866 +1561 2491155 806 +1562 2491961 848 +1563 2492809 884 +1564 2493693 2516 +1565 2496209 1058 +1566 2497267 302 +1567 2497569 866 +1568 2498435 806 +1569 2499241 848 +1570 2500089 884 +1571 2500973 2516 +1572 2503489 1058 +1573 2504547 302 +1574 2504849 866 +1575 2505715 806 +1576 2506521 848 +1577 2507369 884 +1578 2508253 2516 +1579 2510769 1058 +1580 2511827 302 +1581 2512129 866 +1582 2512995 806 +1583 2513801 848 +1584 2514649 884 +1585 2515533 2516 +1586 2518049 1058 +1587 2519107 302 +1588 2519409 866 +1589 2520275 806 +1590 2521081 848 +1591 2521929 884 +1592 2522813 2516 +1593 2525329 1058 +1594 2526387 302 +1595 2526689 866 +1596 2527555 806 +1597 2528361 848 +1598 2529209 884 +1599 2530093 2516 +1600 2532609 1058 +1601 2533667 302 +1602 2533969 866 +1603 2534835 806 +1604 2535641 848 +1605 2536489 884 +1606 2537373 2516 +1607 2539889 1058 +1608 2540947 302 +1609 2541249 866 +1610 2542115 806 +1611 2542921 848 +1612 2543769 884 +1613 2544653 2516 +1614 2547169 1058 +1615 2548227 302 +1616 2548529 866 +1617 2549395 806 +1618 2550201 848 +1619 2551049 884 +1620 2551933 2516 +1621 2554449 1058 +1622 2555507 302 +1623 2555809 866 +1624 2556675 806 +1625 2557481 848 +1626 2558329 884 +1627 2559213 2516 +1628 2561729 1058 +1629 2562787 302 +1630 2563089 866 +1631 2563955 806 +1632 2564761 848 +1633 2565609 884 +1634 2566493 2516 +1635 2569009 1058 +1636 2570067 302 +1637 2570369 866 +1638 2571235 806 +1639 2572041 848 +1640 2572889 884 +1641 2573773 2516 +1642 2576289 1058 +1643 2577347 302 +1644 2577649 866 +1645 2578515 806 +1646 2579321 848 +1647 2580169 884 +1648 2581053 2516 +1649 2583569 1058 +1650 2584627 302 +1651 2584929 866 +1652 2585795 806 +1653 2586601 848 +1654 2587449 884 +1655 2588333 2516 +1656 2590849 1058 +1657 2591907 302 +1658 2592209 866 +1659 2593075 806 +1660 2593881 848 +1661 2594729 884 +1662 2595613 2516 +1663 2598129 1058 +1664 2599187 302 +1665 2599489 866 +1666 2600355 806 +1667 2601161 848 +1668 2602009 884 +1669 2602893 2516 +1670 2605409 1058 +1671 2606467 302 +1672 2606769 866 +1673 2607635 806 +1674 2608441 848 +1675 2609289 884 +1676 2610173 2516 +1677 2612689 1058 +1678 2613747 302 +1679 2614049 866 +1680 2614915 806 +1681 2615721 848 +1682 2616569 884 +1683 2617453 2516 +1684 2619969 1058 +1685 2621027 302 +1686 2621329 866 +1687 2622195 806 +1688 2623001 848 +1689 2623849 884 +1690 2624733 2516 +1691 2627249 1058 +1692 2628307 302 +1693 2628609 866 +1694 2629475 806 +1695 2630281 848 +1696 2631129 884 +1697 2632013 2516 +1698 2634529 1058 +1699 2635587 302 +1700 2635889 866 +1701 2636755 806 +1702 2637561 848 +1703 2638409 884 +1704 2639293 2516 +1705 2641809 1058 +1706 2642867 302 +1707 2643169 866 +1708 2644035 806 +1709 2644841 848 +1710 2645689 884 +1711 2646573 2516 +1712 2649089 1058 +1713 2650147 302 +1714 2650449 866 +1715 2651315 806 +1716 2652121 848 +1717 2652969 884 +1718 2653853 2516 +1719 2656369 1058 +1720 2657427 302 +1721 2657729 866 +1722 2658595 806 +1723 2659401 848 +1724 2660249 884 +1725 2661133 2516 +1726 2663649 1058 +1727 2664707 302 +1728 2665009 866 +1729 2665875 806 +1730 2666681 848 +1731 2667529 884 +1732 2668413 2516 +1733 2670929 1058 +1734 2671987 302 +1735 2672289 866 +1736 2673155 806 +1737 2673961 848 +1738 2674809 884 +1739 2675693 2516 +1740 2678209 1058 +1741 2679267 302 +1742 2679569 866 +1743 2680435 806 +1744 2681241 848 +1745 2682089 884 +1746 2682973 2516 +1747 2685489 1058 +1748 2686547 302 +1749 2686849 866 +1750 2687715 806 +1751 2688521 848 +1752 2689369 884 +1753 2690253 2516 +1754 2692769 1058 +1755 2693827 302 +1756 2694129 866 +1757 2694995 806 +1758 2695801 848 +1759 2696649 884 +1760 2697533 2516 +1761 2700049 1058 +1762 2701107 302 +1763 2701409 866 +1764 2702275 806 +1765 2703081 848 +1766 2703929 884 +1767 2704813 2516 +1768 2707329 1058 +1769 2708387 302 +1770 2708689 866 +1771 2709555 806 +1772 2710361 848 +1773 2711209 884 +1774 2712093 2516 +1775 2714609 1058 +1776 2715667 302 +1777 2715969 866 +1778 2716835 806 +1779 2717641 848 +1780 2718489 884 +1781 2719373 2516 +1782 2721889 1058 +1783 2722947 302 +1784 2723249 866 +1785 2724115 806 +1786 2724921 848 +1787 2725769 884 +1788 2726653 2516 +1789 2729169 1058 +1790 2730227 302 +1791 2730529 866 +1792 2731395 806 +1793 2732201 848 +1794 2733049 884 +1795 2733933 2516 +1796 2736449 1058 +1797 2737507 302 +1798 2737809 866 +1799 2738675 806 +1800 2739481 848 +1801 2740329 884 +1802 2741213 2516 +1803 2743729 1058 +1804 2744787 302 +1805 2745089 866 +1806 2745955 806 +1807 2746761 848 +1808 2747609 884 +1809 2748493 2516 +1810 2751009 1058 +1811 2752067 302 +1812 2752369 866 +1813 2753235 806 +1814 2754041 848 +1815 2754889 884 +1816 2755773 2516 +1817 2758289 1058 +1818 2759347 302 +1819 2759649 866 +1820 2760515 806 +1821 2761321 848 +1822 2762169 884 +1823 2763053 2516 +1824 2765569 1058 +1825 2766627 302 +1826 2766929 866 +1827 2767795 806 +1828 2768601 848 +1829 2769449 884 +1830 2770333 2516 +1831 2772849 1058 +1832 2773907 302 +1833 2774209 866 +1834 2775075 806 +1835 2775881 848 +1836 2776729 884 +1837 2777613 2516 +1838 2780129 1058 +1839 2781187 302 +1840 2781489 866 +1841 2782355 806 +1842 2783161 848 +1843 2784009 884 +1844 2784893 2516 +1845 2787409 1058 +1846 2788467 302 +1847 2788769 866 +1848 2789635 806 +1849 2790441 848 +1850 2791289 884 +1851 2792173 2516 +1852 2794689 1058 +1853 2795747 302 +1854 2796049 866 +1855 2796915 806 +1856 2797721 848 +1857 2798569 884 +1858 2799453 2516 +1859 2801969 1058 +1860 2803027 302 +1861 2803329 866 +1862 2804195 806 +1863 2805001 848 +1864 2805849 884 +1865 2806733 2516 +1866 2809249 1058 +1867 2810307 302 +1868 2810609 866 +1869 2811475 806 +1870 2812281 848 +1871 2813129 884 +1872 2814013 2516 +1873 2816529 1058 +1874 2817587 302 +1875 2817889 866 +1876 2818755 806 +1877 2819561 848 +1878 2820409 884 +1879 2821293 2516 +1880 2823809 1058 +1881 2824867 302 +1882 2825169 866 +1883 2826035 806 +1884 2826841 848 +1885 2827689 884 +1886 2828573 2516 +1887 2831089 1058 +1888 2832147 302 +1889 2832449 866 +1890 2833315 806 +1891 2834121 848 +1892 2834969 884 +1893 2835853 2516 +1894 2838369 1058 +1895 2839427 302 +1896 2839729 866 +1897 2840595 806 +1898 2841401 848 +1899 2842249 884 +1900 2843133 2516 +1901 2845649 1058 +1902 2846707 302 +1903 2847009 866 +1904 2847875 806 +1905 2848681 848 +1906 2849529 884 +1907 2850413 2516 +1908 2852929 1058 +1909 2853987 302 +1910 2854289 866 +1911 2855155 806 +1912 2855961 848 +1913 2856809 884 +1914 2857693 2516 +1915 2860209 1058 +1916 2861267 302 +1917 2861569 866 +1918 2862435 806 +1919 2863241 848 +1920 2864089 884 +1921 2864973 2516 +1922 2867489 1058 +1923 2868547 302 +1924 2868849 80 +1925 2868929 104 +1926 2869033 104 +1927 2869137 938 +1928 2870075 4238 +1929 2874313 4238 +1930 2878551 1814 +1931 2880365 1832 +1932 2882197 854 +1933 2883051 476 +1934 2883527 1256 +1935 2884783 1280 +1936 2886063 1172 +1937 2887235 272 +1938 2887507 272 +1939 2887779 272 +1940 2888051 272 +1941 2888323 1736 +1942 2890059 518 +1943 2890577 518 +1944 2891095 506 +1945 2891601 506 +1946 2892107 506 +1947 2892613 506 +1948 2893119 506 +1949 2893625 536 +1950 2894161 896 +1951 2895057 1202 +1952 2896259 1052 +1953 2897311 488 +1954 2897799 458 +1955 2898257 500 +1956 2898757 464 +1957 2899221 2732 +1958 2901953 1178 +1959 2903131 2204 +1960 2905335 2174 +1961 2907509 2192 +1962 2909701 2144 +1963 2911845 3746 +1964 2915591 3494 +1965 2919085 638 +1966 2919723 638 +1967 2920361 614 +1968 2920975 818 +1969 2921793 332 +1970 2922125 338 +1971 2922463 332 +1972 2922795 338 +1973 2923133 332 +1974 2923465 332 +1975 2923797 350 +1976 2924147 332 +1977 2924479 332 +1978 2924811 338 +1979 2925149 344 +1980 2925493 4868 +1981 2930361 698 +1982 2931059 3218 +1983 2934277 3224 +1984 2937501 1208 +1985 2938709 1208 +1986 2939917 1214 +1987 2941131 1010 +1988 2942141 1214 +1989 2943355 1208 +1990 2944563 524 +1991 2945087 524 +1992 2945611 836 +1993 2946447 836 +1994 2947283 1892 +1995 2949175 1154 +1996 2950329 1154 +1997 2951483 74 +1998 2951557 74 +1999 2951631 1910 +2000 2953541 1910 +2001 2955451 1352 +2002 2956803 1334 +2003 2958137 1340 +2004 2959477 1328 +2005 2960805 1352 +2006 2962157 1334 +2007 2963491 1340 +2008 2964831 1328 +2009 2966159 1352 +2010 2967511 1334 +2011 2968845 1340 +2012 2970185 1328 +2013 2971513 1214 +2014 2972727 1178 +2015 2973905 2276 +2016 2976181 2264 +2017 2978445 2270 +2018 2980715 1208 +2019 2981923 1178 +2020 2983101 1034 +2021 2984135 980 +2022 2985115 794 +2023 2985909 794 +2024 2986703 794 +2025 2987497 794 +2026 2988291 794 +2027 2989085 794 +2028 2989879 794 +2029 2990673 794 +2030 2991467 794 +2031 2992261 794 +2032 2993055 794 +2033 2993849 794 +2034 2994643 794 +2035 2995437 794 +2036 2996231 794 +2037 2997025 794 +2038 2997819 794 +2039 2998613 794 +2040 2999407 794 +2041 3000201 794 +2042 3000995 794 +2043 3001789 794 +2044 3002583 794 +2045 3003377 794 +2046 3004171 794 +2047 3004965 794 +2048 3005759 794 +2049 3006553 794 +2050 3007347 794 +2051 3008141 794 +2052 3008935 794 +2053 3009729 794 +2054 3010523 794 +2055 3011317 794 +2056 3012111 794 +2057 3012905 794 +2058 3013699 794 +2059 3014493 794 +2060 3015287 794 +2061 3016081 794 +2062 3016875 794 +2063 3017669 794 +2064 3018463 794 +2065 3019257 794 +2066 3020051 794 +2067 3020845 794 +2068 3021639 794 +2069 3022433 794 +2070 3023227 794 +2071 3024021 794 +2072 3024815 794 +2073 3025609 794 +2074 3026403 794 +2075 3027197 794 +2076 3027991 794 +2077 3028785 794 +2078 3029579 794 +2079 3030373 794 +2080 3031167 794 +2081 3031961 794 +2082 3032755 794 +2083 3033549 794 +2084 3034343 794 +2085 3035137 794 +2086 3035931 794 +2087 3036725 794 +2088 3037519 794 +2089 3038313 794 +2090 3039107 794 +2091 3039901 794 +2092 3040695 794 +2093 3041489 794 +2094 3042283 794 +2095 3043077 794 +2096 3043871 794 +2097 3044665 794 +2098 3045459 794 +2099 3046253 794 +2100 3047047 794 +2101 3047841 794 +2102 3048635 794 +2103 3049429 794 +2104 3050223 794 +2105 3051017 794 +2106 3051811 794 +2107 3052605 794 +2108 3053399 794 +2109 3054193 794 +2110 3054987 794 +2111 3055781 794 +2112 3056575 794 +2113 3057369 794 +2114 3058163 794 +2115 3058957 794 +2116 3059751 794 +2117 3060545 794 +2118 3061339 794 +2119 3062133 794 +2120 3062927 794 +2121 3063721 794 +2122 3064515 794 +2123 3065309 794 +2124 3066103 794 +2125 3066897 794 +2126 3067691 794 +2127 3068485 794 +2128 3069279 794 +2129 3070073 794 +2130 3070867 794 +2131 3071661 794 +2132 3072455 794 +2133 3073249 794 +2134 3074043 794 +2135 3074837 794 +2136 3075631 794 +2137 3076425 794 +2138 3077219 794 +2139 3078013 794 +2140 3078807 794 +2141 3079601 794 +2142 3080395 794 +2143 3081189 794 +2144 3081983 794 +2145 3082777 794 +2146 3083571 794 +2147 3084365 794 +2148 3085159 794 +2149 3085953 794 +2150 3086747 794 +2151 3087541 794 +2152 3088335 794 +2153 3089129 794 +2154 3089923 794 +2155 3090717 794 +2156 3091511 794 +2157 3092305 794 +2158 3093099 794 +2159 3093893 794 +2160 3094687 794 +2161 3095481 794 +2162 3096275 794 +2163 3097069 794 +2164 3097863 794 +2165 3098657 794 +2166 3099451 794 +2167 3100245 794 +2168 3101039 794 +2169 3101833 794 +2170 3102627 794 +2171 3103421 794 +2172 3104215 794 +2173 3105009 794 +2174 3105803 794 +2175 3106597 794 +2176 3107391 794 +2177 3108185 794 +2178 3108979 794 +2179 3109773 794 +2180 3110567 794 +2181 3111361 794 +2182 3112155 794 +2183 3112949 794 +2184 3113743 794 +2185 3114537 794 +2186 3115331 794 +2187 3116125 794 +2188 3116919 794 +2189 3117713 794 +2190 3118507 794 +2191 3119301 794 +2192 3120095 794 +2193 3120889 794 +2194 3121683 794 +2195 3122477 794 +2196 3123271 794 +2197 3124065 794 +2198 3124859 794 +2199 3125653 794 +2200 3126447 794 +2201 3127241 794 +2202 3128035 1262 +2203 3129297 788 +2204 3130085 824 +2205 3130909 818 +2206 3131727 3752 +2207 3135479 3752 +2208 3139231 2258 +2209 3141489 1022 +2210 3142511 1694 +2211 3144205 1712 +2212 3145917 1700 +2213 3147617 1706 +2214 3149323 1718 +2215 3151041 1706 +2216 3152747 536 +2217 3153283 554 +2218 3153837 548 +2219 3154385 1904 +2220 3156289 1904 +2221 3158193 1904 +2222 3160097 1904 +2223 3162001 1904 +2224 3163905 1904 +2225 3165809 1904 +2226 3167713 2510 +2227 3170223 482 +2228 3170705 488 +2229 3171193 410 +2230 3171603 416 +2231 3172019 3320 +2232 3175339 3320 +2233 3178659 1328 +2234 3179987 1328 +2235 3181315 1334 +2236 3182649 1346 +2237 3183995 1346 +2238 3185341 866 +2239 3186207 116 +2240 3186323 1838 +2241 3188161 1670 +2242 3189831 1850 +2243 3191681 302 +2244 3191983 1406 +2245 3193389 1406 +2246 3194795 524 +2247 3195319 536 +2248 3195855 620 +2249 3196475 854 +2250 3197329 1034 +2251 3198363 1070 +2252 3199433 1070 +2253 3200503 1310 +2254 3201813 2702 +2255 3204515 908 +2256 3205423 338 +2257 3205761 860 +2258 3206621 2174 +2259 3208795 2660 +2260 3211455 1280 +2261 3212735 1640 +2262 3214375 1034 +2263 3215409 1868 +2264 3217277 1544 +2265 3218821 836 +2266 3219657 1058 +2267 3220715 1088 +2268 3221803 1670 +2269 3223473 998 +2270 3224471 2012 +2271 3226483 704 +2272 3227187 806 +2273 3227993 1118 +2274 3229111 1028 +2275 3230139 806 +2276 3230945 1736 +2277 3232681 878 +2278 3233559 1184 +2279 3234743 8725 +2280 3243468 2234 +2281 3245702 2510 +2282 3248212 2414 +2283 3250626 4093 +2284 3254719 1358 +2285 3256077 1946 +2286 3258023 974 +2287 3258997 1460 +2288 3260457 1412 +2289 3261869 1292 +2290 3263161 1274 +2291 3264435 1118 +2292 3265553 1178 +2293 3266731 872 +2294 3267603 1010 +2295 3268613 500 +2296 3269113 1130 +2297 3270243 650 +2298 3270893 1142 +2299 3272035 818 +2300 3272853 626 +2301 3273479 830 +2302 3274309 488 +2303 3274797 500 +2304 3275297 554 +2305 3275851 284 +2306 3276135 62 +2307 3276197 92 +2308 3276289 56 +2309 3276345 80 +2310 3276425 842 +2311 3277267 122 +2312 3277389 110 +2313 3277499 242 +2314 3277741 158 +2315 3277899 290 +2316 3278189 932 +2317 3279121 3692 +2318 3282813 3512 +2319 3286325 506 +2320 3286831 506 +2321 3287337 974 +2322 3288311 992 +2323 3289303 4825 +2324 3294128 7165 +2325 3301293 908 +2326 3302201 3134 +2327 3305335 554 +2328 3305889 3254 +2329 3309143 2396 +2330 3311539 2234 +2331 3313773 1706 +2332 3315479 830 +2333 3316309 1100 +2334 3317409 590 +2335 3317999 1160 +2336 3319159 632 +2337 3319791 632 +2338 3320423 632 +2339 3321055 632 +2340 3321687 632 +2341 3322319 632 +2342 3322951 632 +2343 3323583 632 +2344 3324215 1472 +2345 3325687 4136 +2346 3329823 1256 +2347 3331079 1958 +2348 3333037 38 +2349 3333075 692 +2350 3333767 1754 +2351 3335521 1754 +2352 3337275 782 +2353 3338057 914 +2354 3338971 464 +2355 3339435 890 +2356 3340325 470 +2357 3340795 2342 +2358 3343137 2342 +2359 3345479 2342 +2360 3347821 1208 +2361 3349029 1208 +2362 3350237 1208 +2363 3351445 1208 +2364 3352653 1208 +2365 3353861 1208 +2366 3355069 1208 +2367 3356277 1208 +2368 3357485 1766 +2369 3359251 1958 +2370 3361209 38 +2371 3361247 590 +2372 3361837 590 +2373 3362427 1958 +2374 3364385 50 +2375 3364435 1892 +2376 3366327 1940 +2377 3368267 1940 +2378 3370207 1940 +2379 3372147 1832 +2380 3373979 56 +2381 3374035 1856 +2382 3375891 260 +2383 3376151 260 +2384 3376411 260 +2385 3376671 260 +2386 3376931 260 +2387 3377191 260 +2388 3377451 260 +2389 3377711 260 +2390 3377971 260 +2391 3378231 260 +2392 3378491 260 +2393 3378751 260 +2394 3379011 1700 +2395 3380711 1958 +2396 3382669 44 +2397 3382713 2618 +2398 3385331 1946 +2399 3387277 1940 +2400 3389217 1946 +2401 3391163 1946 +2402 3393109 2156 +2403 3395265 1394 +2404 3396659 392 +2405 3397051 1166 +2406 3398217 2306 +2407 3400523 818 +2408 3401341 626 +2409 3401967 1016 +2410 3402983 638 +2411 3403621 398 +2412 3404019 782 +2413 3404801 842 +2414 3405643 584 +2415 3406227 488 +2416 3406715 518 +2417 3407233 380 +2418 3407613 1394 +2419 3409007 392 +2420 3409399 1166 +2421 3410565 2306 +2422 3412871 818 +2423 3413689 626 +2424 3414315 1016 +2425 3415331 638 +2426 3415969 398 +2427 3416367 782 +2428 3417149 842 +2429 3417991 584 +2430 3418575 488 +2431 3419063 518 +2432 3419581 380 +2433 3419961 3188 +2434 3423149 3146 +2435 3426295 3146 +2436 3429441 2930 +2437 3432371 2924 +2438 3435295 2942 +2439 3438237 1808 +2440 3440045 974 +2441 3441019 398 +2442 3441417 1004 +2443 3442421 1004 +2444 3443425 398 +2445 3443823 998 +2446 3444821 782 +2447 3445603 1412 +2448 3447015 476 +2449 3447491 476 +2450 3447967 476 +2451 3448443 476 +2452 3448919 476 +2453 3449395 476 +2454 3449871 476 +2455 3450347 476 +2456 3450823 476 +2457 3451299 476 +2458 3451775 1394 +2459 3453169 524 +2460 3453693 2000 +2461 3455693 2306 +2462 3457999 818 +2463 3458817 1616 +2464 3460433 830 +2465 3461263 626 +2466 3461889 1016 +2467 3462905 638 +2468 3463543 398 +2469 3463941 782 +2470 3464723 842 +2471 3465565 584 +2472 3466149 488 +2473 3466637 518 +2474 3467155 380 +2475 3467535 398 +2476 3467933 782 +2477 3468715 1394 +2478 3470109 524 +2479 3470633 2000 +2480 3472633 2306 +2481 3474939 818 +2482 3475757 1616 +2483 3477373 830 +2484 3478203 626 +2485 3478829 1016 +2486 3479845 638 +2487 3480483 398 +2488 3480881 782 +2489 3481663 842 +2490 3482505 584 +2491 3483089 488 +2492 3483577 518 +2493 3484095 380 +2494 3484475 974 +2495 3485449 398 +2496 3485847 1004 +2497 3486851 1004 +2498 3487855 998 +2499 3488853 1412 +2500 3490265 476 +2501 3490741 476 +2502 3491217 476 +2503 3491693 476 +2504 3492169 476 +2505 3492645 476 +2506 3493121 476 +2507 3493597 476 +2508 3494073 476 +2509 3494549 476 +2510 3495025 1808 +2511 3496833 3146 +2512 3499979 3182 +2513 3503161 3152 +2514 3506313 2936 +2515 3509249 2924 +2516 3512173 2936 +2517 3515109 1478 +2518 3516587 1478 +2519 3518065 788 +2520 3518853 68 +2521 3518921 740 +2522 3519661 68 +2523 3519729 668 +2524 3520397 668 +2525 3521065 3200 +2526 3524265 866 +2527 3525131 866 +2528 3525997 1742 +2529 3527739 1730 +2530 3529469 1964 +2531 3531433 1886 +2532 3533319 1154 +2533 3534473 602 +2534 3535075 590 +2535 3535665 602 +2536 3536267 596 +2537 3536863 4598 +2538 3541461 1658 +2539 3543119 1664 +2540 3544783 1664 +2541 3546447 1004 +2542 3547451 1010 +2543 3548461 1304 +2544 3549765 2606 +2545 3552371 1658 +2546 3554029 1250 +2547 3555279 1238 +2548 3556517 1076 +2549 3557593 1058 +2550 3558651 806 +2551 3559457 860 +2552 3560317 740 +2553 3561057 884 +2554 3561941 836 +2555 3562777 722 +2556 3563499 728 +2557 3564227 710 +2558 3564937 662 +2559 3565599 608 +2560 3566207 500 +2561 3566707 50 +2562 3566757 356 +2563 3567113 356 +2564 3567469 692 +2565 3568161 332 +2566 3568493 296 +2567 3568789 272 +2568 3569061 392 +2569 3569453 224 +2570 3569677 614 +2571 3570291 566 +2572 3570857 398 +2573 3571255 3542 +2574 3574797 1358 +2575 3576155 512 +2576 3576667 464 +2577 3577131 458 +2578 3577589 98 +2579 3577687 314 +2580 3578001 290 +2581 3578291 404 +2582 3578695 428 +2583 3579123 662 +2584 3579785 488 +2585 3580273 566 +2586 3580839 950 +2587 3581789 962 +2588 3582751 950 +2589 3583701 1490 +2590 3585191 1430 +2591 3586621 1394 +2592 3588015 1298 +2593 3589313 770 +2594 3590083 770 +2595 3590853 770 +2596 3591623 770 +2597 3592393 704 +2598 3593097 704 +2599 3593801 704 +2600 3594505 704 +2601 3595209 836 +2602 3596045 812 +2603 3596857 44 +2604 3596901 1238 +2605 3598139 1310 +2606 3599449 1322 +2607 3600771 1310 +2608 3602081 1340 +2609 3603421 1334 +2610 3604755 986 +2611 3605741 590 +2612 3606331 584 +2613 3606915 2648 +2614 3609563 2360 +2615 3611923 3320 +2616 3615243 3320 +2617 3618563 758 +2618 3619321 758 +2619 3620079 2144 +2620 3622223 2018 +2621 3624241 1856 +2622 3626097 5228 +2623 3631325 278 +2624 3631603 3218 +2625 3634821 1640 +2626 3636461 1244 +2627 3637705 1238 +2628 3638943 992 +2629 3639935 1058 +2630 3640993 800 +2631 3641793 686 +2632 3642479 860 +2633 3643339 740 +2634 3644079 884 +2635 3644963 818 +2636 3645781 722 +2637 3646503 728 +2638 3647231 698 +2639 3647929 710 +2640 3648639 608 +2641 3649247 662 +2642 3649909 548 +2643 3650457 614 +2644 3651071 458 +2645 3651529 356 +2646 3651885 398 +2647 3652283 356 +2648 3652639 326 +2649 3652965 296 +2650 3653261 272 +2651 3653533 392 +2652 3653925 230 +2653 3654155 2486 +2654 3656641 278 +2655 3656919 2486 +2656 3659405 278 +2657 3659683 2486 +2658 3662169 278 +2659 3662447 2486 +2660 3664933 278 +2661 3665211 1022 +2662 3666233 686 +2663 3666919 1346 +2664 3668265 1328 +2665 3669593 1778 +2666 3671371 1778 +2667 3673149 1778 +2668 3674927 1016 +2669 3675943 2906 +2670 3678849 2906 +2671 3681755 1178 +2672 3682933 1334 +2673 3684267 1334 +2674 3685601 2150 +2675 3687751 242 +2676 3687993 242 +2677 3688235 236 +2678 3688471 1004 +2679 3689475 986 +2680 3690461 2426 +2681 3692887 782 +2682 3693669 704 +2683 3694373 674 +2684 3695047 764 +2685 3695811 86 +2686 3695897 638 +2687 3696535 638 +2688 3697173 1772 +2689 3698945 1772 +2690 3700717 1256 +2691 3701973 1262 +2692 3703235 1262 +2693 3704497 1268 +2694 3705765 350 +2695 3706115 1280 +2696 3707395 1280 +2697 3708675 344 +2698 3709019 356 +2699 3709375 2270 +2700 3711645 2240 +2701 3713885 2240 +2702 3716125 2168 +2703 3718293 3392 +2704 3721685 824 +2705 3722509 1430 +2706 3723939 824 +2707 3724763 1430 +2708 3726193 1688 +2709 3727881 260 +2710 3728141 4124 +2711 3732265 4124 +2712 3736389 962 +2713 3737351 956 +2714 3738307 1016 +2715 3739323 986 +2716 3740309 902 +2717 3741211 968 +2718 3742179 860 +2719 3743039 872 +2720 3743911 4142 +2721 3748053 4142 +2722 3752195 4142 +2723 3756337 4142 +2724 3760479 4142 +2725 3764621 4142 +2726 3768763 4142 +2727 3772905 4142 +2728 3777047 4142 +2729 3781189 4142 +2730 3785331 4142 +2731 3789473 4142 +2732 3793615 4142 +2733 3797757 4142 +2734 3801899 4142 +2735 3806041 4142 +2736 3810183 4142 +2737 3814325 4142 +2738 3818467 1496 +2739 3819963 104 +2740 3820067 104 +2741 3820171 1376 +2742 3821547 1376 +2743 3822923 1358 +2744 3824281 818 +2745 3825099 1490 +2746 3826589 1490 +2747 3828079 2222 +2748 3830301 2198 +2749 3832499 590 +2750 3833089 1520 +2751 3834609 1520 +2752 3836129 1472 +2753 3837601 1472 +2754 3839073 230 +2755 3839303 248 +2756 3839551 560 +2757 3840111 1598 +2758 3841709 1562 +2759 3843271 1268 +2760 3844539 1256 +2761 3845795 1850 +2762 3847645 1802 +2763 3849447 1796 +2764 3851243 1802 +2765 3853045 1790 +2766 3854835 644 +2767 3855479 644 +2768 3856123 314 +2769 3856437 1964 +2770 3858401 1964 +2771 3860365 1964 +2772 3862329 1964 +2773 3864293 1964 +2774 3866257 1964 +2775 3868221 1964 +2776 3870185 1964 +2777 3872149 740 +2778 3872889 716 +2779 3873605 68 +2780 3873673 1610 +2781 3875283 1604 +2782 3876887 68 +2783 3876955 656 +2784 3877611 1604 +2785 3879215 1598 +2786 3880813 1604 +2787 3882417 1586 +2788 3884003 1310 +2789 3885313 1154 +2790 3886467 728 +2791 3887195 1928 +2792 3889123 1904 +2793 3891027 1604 +2794 3892631 1604 +2795 3894235 1604 +2796 3895839 788 +2797 3896627 1250 +2798 3897877 1796 +2799 3899673 590 +2800 3900263 590 +2801 3900853 1454 +2802 3902307 1412 +2803 3903719 2330 +2804 3906049 2330 +2805 3908379 1004 +2806 3909383 1004 +2807 3910387 1418 +2808 3911805 1418 +2809 3913223 50 +2810 3913273 50 +2811 3913323 752 +2812 3914075 752 +2813 3914827 2894 +2814 3917721 2894 +2815 3920615 2894 +2816 3923509 1286 +2817 3924795 1442 +2818 3926237 1286 +2819 3927523 1442 +2820 3928965 1322 +2821 3930287 1442 +2822 3931729 1322 +2823 3933051 1442 +2824 3934493 866 +2825 3935359 38 +2826 3935397 866 +2827 3936263 38 +2828 3936301 866 +2829 3937167 38 +2830 3937205 974 +2831 3938179 1928 +2832 3940107 1928 +2833 3942035 1928 +2834 3943963 1928 +2835 3945891 1928 +2836 3947819 1928 +2837 3949747 1928 +2838 3951675 1928 +2839 3953603 1928 +2840 3955531 1928 +2841 3957459 1928 +2842 3959387 1928 +2843 3961315 1928 +2844 3963243 1928 +2845 3965171 1928 +2846 3967099 1274 +2847 3968373 1316 +2848 3969689 1316 +2849 3971005 1088 +2850 3972093 836 +2851 3972929 836 +2852 3973765 1088 +2853 3974853 1088 +2854 3975941 1316 +2855 3977257 1316 +2856 3978573 1316 +2857 3979889 1316 +2858 3981205 1316 +2859 3982521 1316 +2860 3983837 1316 +2861 3985153 1316 +2862 3986469 1316 +2863 3987785 1316 +2864 3989101 1316 +2865 3990417 1316 +2866 3991733 1316 +2867 3993049 1316 +2868 3994365 1274 +2869 3995639 1274 +2870 3996913 1274 +2871 3998187 1274 +2872 3999461 1274 +2873 4000735 1274 +2874 4002009 1274 +2875 4003283 1088 +2876 4004371 1088 +2877 4005459 1088 +2878 4006547 1088 +2879 4007635 1088 +2880 4008723 1088 +2881 4009811 1088 +2882 4010899 1088 +2883 4011987 1088 +2884 4013075 1088 +2885 4014163 1088 +2886 4015251 1088 +2887 4016339 1088 +2888 4017427 1088 +2889 4018515 1088 +2890 4019603 1088 +2891 4020691 1088 +2892 4021779 1088 +2893 4022867 1088 +2894 4023955 1088 +2895 4025043 1088 +2896 4026131 836 +2897 4026967 836 +2898 4027803 836 +2899 4028639 836 +2900 4029475 836 +2901 4030311 836 +2902 4031147 836 +2903 4031983 836 +2904 4032819 836 +2905 4033655 836 +2906 4034491 836 +2907 4035327 836 +2908 4036163 836 +2909 4036999 836 +2910 4037835 200 +2911 4038035 206 +2912 4038241 200 +2913 4038441 206 +2914 4038647 194 +2915 4038841 182 +2916 4039023 194 +2917 4039217 182 +2918 4039399 788 +2919 4040187 788 +2920 4040975 1796 +2921 4042771 812 +2922 4043583 1106 +2923 4044689 4112 +2924 4048801 4112 +2925 4052913 4112 +2926 4057025 4112 +2927 4061137 2108 +2928 4063245 1454 +2929 4064699 2030 +2930 4066729 2048 +2931 4068777 2444 +2932 4071221 1106 +2933 4072327 854 +2934 4073181 752 +2935 4073933 800 +2936 4074733 800 +2937 4075533 800 +2938 4076333 800 +2939 4077133 800 +2940 4077933 800 +2941 4078733 836 +2942 4079569 836 +2943 4080405 836 +2944 4081241 836 +2945 4082077 836 +2946 4082913 836 +2947 4083749 794 +2948 4084543 794 +2949 4085337 794 +2950 4086131 794 +2951 4086925 794 +2952 4087719 794 +2953 4088513 428 +2954 4088941 434 +2955 4089375 2558 +2956 4091933 1166 +2957 4093099 38 +2958 4093137 1316 +2959 4094453 3974 +2960 4098427 2516 +2961 4100943 2516 +2962 4103459 2618 +2963 4106077 2618 +2964 4108695 2618 +2965 4111313 2618 +2966 4113931 2618 +2967 4116549 2618 +2968 4119167 2618 +2969 4121785 2618 +2970 4124403 2618 +2971 4127021 2618 +2972 4129639 2618 +2973 4132257 2618 +2974 4134875 2660 +2975 4137535 2660 +2976 4140195 2660 +2977 4142855 2660 +2978 4145515 2660 +2979 4148175 2660 +2980 4150835 2660 +2981 4153495 2660 +2982 4156155 2660 +2983 4158815 2660 +2984 4161475 2660 +2985 4164135 2660 +2986 4166795 2486 +2987 4169281 4364 +2988 4173645 770 +2989 4174415 1358 +2990 4175773 1274 +2991 4177047 1280 +2992 4178327 1100 +2993 4179427 1568 +2994 4180995 1328 +2995 4182323 1436 +2996 4183759 1112 +2997 4184871 1208 +2998 4186079 782 +2999 4186861 1106 +3000 4187967 866 +3001 4188833 620 +3002 4189453 554 +3003 4190007 830 +3004 4190837 860 +3005 4191697 698 +3006 4192395 860 +3007 4193255 332 +3008 4193587 860 +3009 4194447 944 +3010 4195391 740 +3011 4196131 668 +3012 4196799 920 +3013 4197719 536 +3014 4198255 770 +3015 4199025 440 +3016 4199465 626 +3017 4200091 512 +3018 4200603 398 +3019 4201001 362 +3020 4201363 368 +3021 4201731 1808 +3022 4203539 1142 +3023 4204681 1112 +3024 4205793 1520 +3025 4207313 1232 +3026 4208545 1232 +3027 4209777 1430 +3028 4211207 1376 +3029 4212583 1526 +3030 4214109 1454 +3031 4215563 1406 +3032 4216969 1430 +3033 4218399 1454 +3034 4219853 1220 +3035 4221073 1328 +3036 4222401 1196 +3037 4223597 1214 +3038 4224811 1274 +3039 4226085 1280 +3040 4227365 1448 +3041 4228813 1376 +3042 4230189 1484 +3043 4231673 1460 +3044 4233133 1400 +3045 4234533 1394 +3046 4235927 1454 +3047 4237381 1202 +3048 4238583 1328 +3049 4239911 1190 +3050 4241101 1208 +3051 4242309 1280 +3052 4243589 1280 +3053 4244869 266 +3054 4245135 266 +3055 4245401 266 +3056 4245667 266 +3057 4245933 1682 +3058 4247615 626 +3059 4248241 194 +3060 4248435 1124 +3061 4249559 1124 +3062 4250683 596 +3063 4251279 578 +3064 4251857 596 +3065 4252453 578 +3066 4253031 992 +3067 4254023 956 +3068 4254979 1850 +3069 4256829 350 +3070 4257179 338 +3071 4257517 302 +3072 4257819 338 +3073 4258157 338 +3074 4258495 326 +3075 4258821 344 +3076 4259165 2744 +3077 4261909 1370 +3078 4263279 1328 +3079 4264607 2126 +3080 4266733 2126 +3081 4268859 5384 +3082 4274243 254 +3083 4274497 50 +3084 4274547 5384 +3085 4279931 254 +3086 4280185 50 +3087 4280235 2360 +3088 4282595 2372 +3089 4284967 2348 +3090 4287315 32 +3091 4287347 2360 +3092 4289707 2372 +3093 4292079 2348 +3094 4294427 32 +3095 4294459 872 +3096 4295331 872 +3097 4296203 926 +3098 4297129 2570 +3099 4299699 632 +3100 4300331 2606 +3101 4302937 2984 +3102 4305921 2984 +3103 4308905 464 +3104 4309369 902 +3105 4310271 776 +3106 4311047 614 +3107 4311661 614 +3108 4312275 2570 +3109 4314845 1070 +3110 4315915 2570 +3111 4318485 1070 +3112 4319555 1010 +3113 4320565 1010 +3114 4321575 1010 +3115 4322585 1010 +3116 4323595 1010 +3117 4324605 1010 +3118 4325615 1724 +3119 4327339 1724 +3120 4329063 2150 +3121 4331213 2150 +3122 4333363 704 +3123 4334067 722 +3124 4334789 926 +3125 4335715 1262 +3126 4336977 452 +3127 4337429 494 +3128 4337923 1820 +3129 4339743 1820 +3130 4341563 1820 +3131 4343383 1820 +3132 4345203 836 +3133 4346039 1358 +3134 4347397 1358 +3135 4348755 836 +3136 4349591 548 +3137 4350139 554 +3138 4350693 6854 +3139 4357547 6488 +3140 4364035 3614 +3141 4367649 290 +3142 4367939 2354 +3143 4370293 1532 +3144 4371825 950 +3145 4372775 890 +3146 4373665 50 +3147 4373715 188 +3148 4373903 188 +3149 4374091 188 +3150 4374279 2696 +3151 4376975 1178 +3152 4378153 1232 +3153 4379385 392 +3154 4379777 392 +3155 4380169 392 +3156 4380561 392 +3157 4380953 392 +3158 4381345 392 +3159 4381737 392 +3160 4382129 392 +3161 4382521 392 +3162 4382913 392 +3163 4383305 392 +3164 4383697 392 +3165 4384089 1046 +3166 4385135 1040 +3167 4386175 1706 +3168 4387881 1706 +3169 4389587 710 +3170 4390297 716 +3171 4391013 68 +3172 4391081 656 +3173 4391737 1610 +3174 4393347 836 +3175 4394183 1376 +3176 4395559 1376 +3177 4396935 836 +3178 4397771 554 +3179 4398325 554 +3180 4398879 560 +3181 4399439 836 +3182 4400275 1346 +3183 4401621 1346 +3184 4402967 836 +3185 4403803 548 +3186 4404351 548 +3187 4404899 860 +3188 4405759 1364 +3189 4407123 1352 +3190 4408475 860 +3191 4409335 500 +3192 4409835 506 +3193 4410341 1154 +3194 4411495 644 +3195 4412139 944 +3196 4413083 938 +3197 4414021 980 +3198 4415001 944 +3199 4415945 1502 +3200 4417447 1502 +3201 4418949 1040 +3202 4419989 1568 +3203 4421557 1538 +3204 4423095 1700 +3205 4424795 350 +3206 4425145 1568 +3207 4426713 1538 +3208 4428251 1700 +3209 4429951 350 +3210 4430301 1568 +3211 4431869 1538 +3212 4433407 1700 +3213 4435107 350 +3214 4435457 1568 +3215 4437025 1538 +3216 4438563 1700 +3217 4440263 350 +3218 4440613 1568 +3219 4442181 1538 +3220 4443719 1700 +3221 4445419 350 +3222 4445769 1568 +3223 4447337 1538 +3224 4448875 1700 +3225 4450575 350 +3226 4450925 1568 +3227 4452493 1538 +3228 4454031 1700 +3229 4455731 350 +3230 4456081 1568 +3231 4457649 1538 +3232 4459187 1700 +3233 4460887 350 +3234 4461237 1568 +3235 4462805 1538 +3236 4464343 1700 +3237 4466043 350 +3238 4466393 1568 +3239 4467961 1538 +3240 4469499 1700 +3241 4471199 350 +3242 4471549 1568 +3243 4473117 1538 +3244 4474655 1700 +3245 4476355 350 +3246 4476705 1568 +3247 4478273 1538 +3248 4479811 1700 +3249 4481511 350 +3250 4481861 1568 +3251 4483429 1538 +3252 4484967 1700 +3253 4486667 350 +3254 4487017 1568 +3255 4488585 1538 +3256 4490123 1700 +3257 4491823 350 +3258 4492173 1568 +3259 4493741 1538 +3260 4495279 1700 +3261 4496979 350 +3262 4497329 1568 +3263 4498897 1538 +3264 4500435 1700 +3265 4502135 350 +3266 4502485 1568 +3267 4504053 1538 +3268 4505591 1700 +3269 4507291 350 +3270 4507641 1568 +3271 4509209 1538 +3272 4510747 1700 +3273 4512447 350 +3274 4512797 1568 +3275 4514365 1538 +3276 4515903 1700 +3277 4517603 350 +3278 4517953 1568 +3279 4519521 1538 +3280 4521059 1700 +3281 4522759 350 +3282 4523109 1568 +3283 4524677 1538 +3284 4526215 1700 +3285 4527915 350 +3286 4528265 1568 +3287 4529833 1538 +3288 4531371 1700 +3289 4533071 350 +3290 4533421 1568 +3291 4534989 1538 +3292 4536527 1700 +3293 4538227 350 +3294 4538577 1568 +3295 4540145 1538 +3296 4541683 1700 +3297 4543383 350 +3298 4543733 1568 +3299 4545301 1538 +3300 4546839 1700 +3301 4548539 350 +3302 4548889 1568 +3303 4550457 1538 +3304 4551995 1700 +3305 4553695 350 +3306 4554045 1568 +3307 4555613 1538 +3308 4557151 1700 +3309 4558851 350 +3310 4559201 1568 +3311 4560769 1538 +3312 4562307 1700 +3313 4564007 350 +3314 4564357 1568 +3315 4565925 1538 +3316 4567463 1700 +3317 4569163 350 +3318 4569513 1568 +3319 4571081 1538 +3320 4572619 1700 +3321 4574319 350 +3322 4574669 1568 +3323 4576237 1538 +3324 4577775 1700 +3325 4579475 350 +3326 4579825 1568 +3327 4581393 1538 +3328 4582931 1700 +3329 4584631 350 +3330 4584981 1568 +3331 4586549 1538 +3332 4588087 1700 +3333 4589787 350 +3334 4590137 1568 +3335 4591705 1538 +3336 4593243 1700 +3337 4594943 350 +3338 4595293 1568 +3339 4596861 1538 +3340 4598399 1700 +3341 4600099 350 +3342 4600449 1568 +3343 4602017 1538 +3344 4603555 1700 +3345 4605255 350 +3346 4605605 1568 +3347 4607173 1538 +3348 4608711 1700 +3349 4610411 350 +3350 4610761 1568 +3351 4612329 1538 +3352 4613867 1700 +3353 4615567 350 +3354 4615917 1568 +3355 4617485 1538 +3356 4619023 1700 +3357 4620723 350 +3358 4621073 1568 +3359 4622641 1538 +3360 4624179 1700 +3361 4625879 350 +3362 4626229 1568 +3363 4627797 1538 +3364 4629335 1700 +3365 4631035 350 +3366 4631385 1568 +3367 4632953 1538 +3368 4634491 1700 +3369 4636191 350 +3370 4636541 1568 +3371 4638109 1538 +3372 4639647 1700 +3373 4641347 350 +3374 4641697 1568 +3375 4643265 1538 +3376 4644803 1700 +3377 4646503 350 +3378 4646853 1568 +3379 4648421 1538 +3380 4649959 1700 +3381 4651659 350 +3382 4652009 1568 +3383 4653577 1538 +3384 4655115 1700 +3385 4656815 350 +3386 4657165 1568 +3387 4658733 1538 +3388 4660271 1700 +3389 4661971 350 +3390 4662321 1568 +3391 4663889 1538 +3392 4665427 1700 +3393 4667127 350 +3394 4667477 1568 +3395 4669045 1538 +3396 4670583 1700 +3397 4672283 350 +3398 4672633 1568 +3399 4674201 1538 +3400 4675739 1700 +3401 4677439 350 +3402 4677789 1568 +3403 4679357 1538 +3404 4680895 1700 +3405 4682595 350 +3406 4682945 1568 +3407 4684513 1538 +3408 4686051 1700 +3409 4687751 350 +3410 4688101 1568 +3411 4689669 1538 +3412 4691207 1700 +3413 4692907 350 +3414 4693257 1568 +3415 4694825 1538 +3416 4696363 1700 +3417 4698063 350 +3418 4698413 1568 +3419 4699981 1538 +3420 4701519 1700 +3421 4703219 350 +3422 4703569 1568 +3423 4705137 1538 +3424 4706675 1700 +3425 4708375 350 +3426 4708725 1568 +3427 4710293 1538 +3428 4711831 1700 +3429 4713531 350 +3430 4713881 1568 +3431 4715449 1538 +3432 4716987 1700 +3433 4718687 350 +3434 4719037 1568 +3435 4720605 1538 +3436 4722143 1700 +3437 4723843 350 +3438 4724193 1568 +3439 4725761 1538 +3440 4727299 1700 +3441 4728999 350 +3442 4729349 1592 +3443 4730941 5336 +3444 4736277 2684 +3445 4738961 3758 +3446 4742719 3692 +3447 4746411 2588 +3448 4748999 1844 +3449 4750843 1844 +3450 4752687 2234 +3451 4754921 2444 +3452 4757365 812 +3453 4758177 3752 +3454 4761929 1262 +3455 4763191 1628 +3456 4764819 1430 +3457 4766249 1676 +3458 4767925 1628 +3459 4769553 1430 +3460 4770983 1676 +3461 4772659 1628 +3462 4774287 1430 +3463 4775717 1676 +3464 4777393 1628 +3465 4779021 1430 +3466 4780451 1676 +3467 4782127 1628 +3468 4783755 1430 +3469 4785185 1676 +3470 4786861 1628 +3471 4788489 1430 +3472 4789919 1676 +3473 4791595 1628 +3474 4793223 1430 +3475 4794653 1676 +3476 4796329 1628 +3477 4797957 1430 +3478 4799387 1676 +3479 4801063 1628 +3480 4802691 1430 +3481 4804121 1676 +3482 4805797 1628 +3483 4807425 1430 +3484 4808855 1676 +3485 4810531 1628 +3486 4812159 1430 +3487 4813589 1676 +3488 4815265 1628 +3489 4816893 1430 +3490 4818323 1676 +3491 4819999 1628 +3492 4821627 1430 +3493 4823057 1676 +3494 4824733 1628 +3495 4826361 1430 +3496 4827791 1676 +3497 4829467 1628 +3498 4831095 1430 +3499 4832525 1676 +3500 4834201 1628 +3501 4835829 1430 +3502 4837259 1676 +3503 4838935 1628 +3504 4840563 1430 +3505 4841993 1676 +3506 4843669 1628 +3507 4845297 1430 +3508 4846727 1676 +3509 4848403 1628 +3510 4850031 1430 +3511 4851461 1676 +3512 4853137 1628 +3513 4854765 1430 +3514 4856195 1676 +3515 4857871 1628 +3516 4859499 1430 +3517 4860929 1676 +3518 4862605 1628 +3519 4864233 1430 +3520 4865663 1676 +3521 4867339 1628 +3522 4868967 1430 +3523 4870397 1676 +3524 4872073 1628 +3525 4873701 1430 +3526 4875131 1676 +3527 4876807 1628 +3528 4878435 1430 +3529 4879865 1676 +3530 4881541 1628 +3531 4883169 1430 +3532 4884599 1676 +3533 4886275 1628 +3534 4887903 1430 +3535 4889333 1676 +3536 4891009 1628 +3537 4892637 1430 +3538 4894067 1676 +3539 4895743 1628 +3540 4897371 1430 +3541 4898801 1676 +3542 4900477 1628 +3543 4902105 1430 +3544 4903535 1676 +3545 4905211 1628 +3546 4906839 1430 +3547 4908269 1676 +3548 4909945 1628 +3549 4911573 1430 +3550 4913003 1676 +3551 4914679 1628 +3552 4916307 1430 +3553 4917737 1676 +3554 4919413 1628 +3555 4921041 1430 +3556 4922471 1676 +3557 4924147 1628 +3558 4925775 1430 +3559 4927205 1676 +3560 4928881 1628 +3561 4930509 1430 +3562 4931939 1676 +3563 4933615 1628 +3564 4935243 1430 +3565 4936673 1676 +3566 4938349 1628 +3567 4939977 1430 +3568 4941407 1676 +3569 4943083 1628 +3570 4944711 1430 +3571 4946141 1676 +3572 4947817 1628 +3573 4949445 1430 +3574 4950875 1676 +3575 4952551 1628 +3576 4954179 1430 +3577 4955609 1676 +3578 4957285 1628 +3579 4958913 1430 +3580 4960343 1676 +3581 4962019 1628 +3582 4963647 1430 +3583 4965077 1676 +3584 4966753 1628 +3585 4968381 1430 +3586 4969811 1676 +3587 4971487 1628 +3588 4973115 1430 +3589 4974545 1676 +3590 4976221 1628 +3591 4977849 1430 +3592 4979279 1676 +3593 4980955 1628 +3594 4982583 1430 +3595 4984013 1676 +3596 4985689 1628 +3597 4987317 1430 +3598 4988747 1676 +3599 4990423 1628 +3600 4992051 1430 +3601 4993481 1676 +3602 4995157 1628 +3603 4996785 1430 +3604 4998215 1676 +3605 4999891 1628 +3606 5001519 1430 +3607 5002949 1676 +3608 5004625 1628 +3609 5006253 1430 +3610 5007683 1676 +3611 5009359 1628 +3612 5010987 1430 +3613 5012417 1676 +3614 5014093 1628 +3615 5015721 1430 +3616 5017151 1676 +3617 5018827 1628 +3618 5020455 1430 +3619 5021885 1676 +3620 5023561 1628 +3621 5025189 1430 +3622 5026619 1676 +3623 5028295 1628 +3624 5029923 1430 +3625 5031353 1676 +3626 5033029 1628 +3627 5034657 1430 +3628 5036087 1676 +3629 5037763 1628 +3630 5039391 1430 +3631 5040821 1676 +3632 5042497 1628 +3633 5044125 1430 +3634 5045555 1676 +3635 5047231 2342 +3636 5049573 2342 +3637 5051915 1448 +3638 5053363 890 +3639 5054253 2192 +3640 5056445 1112 +3641 5057557 782 +3642 5058339 704 +3643 5059043 2630 +3644 5061673 2408 +3645 5064081 488 +3646 5064569 488 +3647 5065057 1316 +3648 5066373 1304 +3649 5067677 560 +3650 5068237 554 +3651 5068791 560 +3652 5069351 554 +3653 5069905 560 +3654 5070465 554 +3655 5071019 2012 +3656 5073031 86 +3657 5073117 860 +3658 5073977 896 +3659 5074873 152 +3660 5075025 3770 +3661 5078795 1814 +3662 5080609 3770 +3663 5084379 1814 +3664 5086193 3770 +3665 5089963 1658 +3666 5091621 3770 +3667 5095391 1658 +3668 5097049 1772 +3669 5098821 1772 +3670 5100593 4268 +3671 5104861 2882 +3672 5107743 482 +3673 5108225 1862 +3674 5110087 1784 +3675 5111871 194 +3676 5112065 392 +3677 5112457 1916 +3678 5114373 2522 +3679 5116895 2228 +3680 5119123 668 +3681 5119791 632 +3682 5120423 638 +3683 5121061 668 +3684 5121729 7160 +3685 5128889 7364 +3686 5136253 7160 +3687 5143413 7364 +3688 5150777 7160 +3689 5157937 7364 +3690 5165301 7160 +3691 5172461 7364 +3692 5179825 7160 +3693 5186985 7364 +3694 5194349 7160 +3695 5201509 7364 +3696 5208873 7160 +3697 5216033 7364 +3698 5223397 7160 +3699 5230557 7364 +3700 5237921 7160 +3701 5245081 7364 +3702 5252445 7160 +3703 5259605 7364 +3704 5266969 7160 +3705 5274129 7364 +3706 5281493 7160 +3707 5288653 7364 +3708 5296017 7160 +3709 5303177 7364 +3710 5310541 7160 +3711 5317701 7364 +3712 5325065 7160 +3713 5332225 7364 +3714 5339589 7160 +3715 5346749 7364 +3716 5354113 7160 +3717 5361273 7364 +3718 5368637 7160 +3719 5375797 7364 +3720 5383161 7160 +3721 5390321 7364 +3722 5397685 7160 +3723 5404845 7364 +3724 5412209 7160 +3725 5419369 7364 +3726 5426733 7160 +3727 5433893 7364 +3728 5441257 7160 +3729 5448417 7364 +3730 5455781 7160 +3731 5462941 7364 +3732 5470305 7160 +3733 5477465 7364 +3734 5484829 7160 +3735 5491989 7364 +3736 5499353 7160 +3737 5506513 7364 +3738 5513877 7160 +3739 5521037 7364 +3740 5528401 7160 +3741 5535561 7364 +3742 5542925 7160 +3743 5550085 7364 +3744 5557449 7160 +3745 5564609 7364 +3746 5571973 7160 +3747 5579133 7364 +3748 5586497 7160 +3749 5593657 7364 +3750 5601021 7160 +3751 5608181 7364 +3752 5615545 7160 +3753 5622705 7364 +3754 5630069 7160 +3755 5637229 7364 +3756 5644593 7160 +3757 5651753 7364 +3758 5659117 7160 +3759 5666277 7364 +3760 5673641 7160 +3761 5680801 7364 +3762 5688165 7160 +3763 5695325 7364 +3764 5702689 7160 +3765 5709849 7364 +3766 5717213 7160 +3767 5724373 7364 +3768 5731737 7160 +3769 5738897 7364 +3770 5746261 7160 +3771 5753421 7364 +3772 5760785 7160 +3773 5767945 7364 +3774 5775309 7160 +3775 5782469 7364 +3776 5789833 7160 +3777 5796993 7364 +3778 5804357 7160 +3779 5811517 7364 +3780 5818881 7160 +3781 5826041 7364 +3782 5833405 7160 +3783 5840565 7364 +3784 5847929 7160 +3785 5855089 7364 +3786 5862453 7160 +3787 5869613 7364 +3788 5876977 7160 +3789 5884137 7364 +3790 5891501 7160 +3791 5898661 7364 +3792 5906025 7160 +3793 5913185 7364 +3794 5920549 7160 +3795 5927709 7364 +3796 5935073 7160 +3797 5942233 7364 +3798 5949597 7160 +3799 5956757 7364 +3800 5964121 7160 +3801 5971281 7364 +3802 5978645 7160 +3803 5985805 7364 +3804 5993169 512 +3805 5993681 1658 +3806 5995339 1652 +3807 5996991 1610 +3808 5998601 2672 +3809 6001273 560 +3810 6001833 1814 +3811 6003647 1814 +3812 6005461 1814 +3813 6007275 1814 +3814 6009089 1814 +3815 6010903 1814 +3816 6012717 2072 +3817 6014789 2048 +3818 6016837 374 +3819 6017211 422 +3820 6017633 428 +3821 6018061 392 +3822 6018453 722 +3823 6019175 1868 +3824 6021043 1952 +3825 6022995 410 +3826 6023405 416 +3827 6023821 1130 +3828 6024951 1130 +3829 6026081 56 +3830 6026137 56 +3831 6026193 1040 +3832 6027233 392 +3833 6027625 1358 +3834 6028983 1358 +3835 6030341 74 +3836 6030415 1286 +3837 6031701 1274 +3838 6032975 86 +3839 6033061 1280 +3840 6034341 1280 +3841 6035621 4382 +3842 6040003 4352 +3843 6044355 4208 +3844 6048563 6662 +3845 6055225 608 +3846 6055833 608 +3847 6056441 608 +3848 6057049 7370 +3849 6064419 3518 +3850 6067937 230 +3851 6068167 836 +3852 6069003 1400 +3853 6070403 926 +3854 6071329 860 +3855 6072189 2846 +3856 6075035 2888 +3857 6077923 2888 +3858 6080811 4382 +3859 6085193 4352 +3860 6089545 4208 +3861 6093753 6662 +3862 6100415 608 +3863 6101023 608 +3864 6101631 608 +3865 6102239 7370 +3866 6109609 836 +3867 6110445 1400 +3868 6111845 926 +3869 6112771 860 +3870 6113631 2846 +3871 6116477 2888 +3872 6119365 2888 +3873 6122253 4382 +3874 6126635 4352 +3875 6130987 4208 +3876 6135195 6662 +3877 6141857 608 +3878 6142465 608 +3879 6143073 608 +3880 6143681 7370 +3881 6151051 3518 +3882 6154569 230 +3883 6154799 836 +3884 6155635 1400 +3885 6157035 926 +3886 6157961 860 +3887 6158821 2846 +3888 6161667 2888 +3889 6164555 2888 +3890 6167443 4382 +3891 6171825 4352 +3892 6176177 4208 +3893 6180385 6662 +3894 6187047 608 +3895 6187655 608 +3896 6188263 608 +3897 6188871 7370 +3898 6196241 836 +3899 6197077 1400 +3900 6198477 926 +3901 6199403 860 +3902 6200263 2846 +3903 6203109 2888 +3904 6205997 2888 +3905 6208885 4382 +3906 6213267 4352 +3907 6217619 4208 +3908 6221827 6662 +3909 6228489 608 +3910 6229097 608 +3911 6229705 608 +3912 6230313 7370 +3913 6237683 3518 +3914 6241201 230 +3915 6241431 836 +3916 6242267 1400 +3917 6243667 926 +3918 6244593 860 +3919 6245453 2846 +3920 6248299 2888 +3921 6251187 2888 +3922 6254075 4382 +3923 6258457 4352 +3924 6262809 4208 +3925 6267017 6662 +3926 6273679 608 +3927 6274287 608 +3928 6274895 608 +3929 6275503 7370 +3930 6282873 836 +3931 6283709 1400 +3932 6285109 926 +3933 6286035 860 +3934 6286895 2846 +3935 6289741 2888 +3936 6292629 2888 +3937 6295517 1166 +3938 6296683 1166 +3939 6297849 2918 +3940 6300767 740 +3941 6301507 926 +3942 6302433 650 +3943 6303083 1406 +3944 6304489 776 +3945 6305265 1094 +3946 6306359 1064 +3947 6307423 1238 +3948 6308661 1766 +3949 6310427 794 +3950 6311221 1304 +3951 6312525 1028 +3952 6313553 926 +3953 6314479 422 +3954 6314901 1249 +3955 6316150 320 +3956 6316470 818 +3957 6317288 962 +3958 6318250 620 +3959 6318870 1358 +3960 6320228 158 +3961 6320386 1268 +3962 6321654 1202 +3963 6322856 2180 +3964 6325036 812 +3965 6325848 2372 +3966 6328220 1088 +3967 6329308 716 +3968 6330024 554 +3969 6330578 836 +3970 6331414 1148 +3971 6332562 752 +3972 6333314 1130 +3973 6334444 662 +3974 6335106 890 +3975 6335996 1496 +3976 6337492 692 +3977 6338184 884 +3978 6339068 410 +3979 6339478 956 +3980 6340434 524 +3981 6340958 1226 +3982 6342184 626 +3983 6342810 2792 +3984 6345602 596 +3985 6346198 386 +3986 6346584 308 +3987 6346892 602 +3988 6347494 2192 +3989 6349686 2186 +3990 6351872 2180 +3991 6354052 734 +3992 6354786 1868 +3993 6356654 1880 +3994 6358534 1880 +3995 6360414 1676 +3996 6362090 1220 +3997 6363310 1226 +3998 6364536 1844 +3999 6366380 1802 +4000 6368182 92 +4001 6368274 866 +4002 6369140 782 +4003 6369922 92 +4004 6370014 524 +4005 6370538 3386 +4006 6373924 3326 +4007 6377250 4226 +4008 6381476 1184 +4009 6382660 464 +4010 6383124 2198 +4011 6385322 2192 +4012 6387514 2900 +4013 6390414 2768 +4014 6393182 2564 +4015 6395746 1778 +4016 6397524 1478 +4017 6399002 524 +4018 6399526 1970 +4019 6401496 782 +4020 6402278 710 +4021 6402988 356 +4022 6403344 2900 +4023 6406244 2768 +4024 6409012 2564 +4025 6411576 1778 +4026 6413354 1478 +4027 6414832 518 +4028 6415350 1970 +4029 6417320 782 +4030 6418102 710 +4031 6418812 356 +4032 6419168 200 +4033 6419368 200 +4034 6419568 1640 +4035 6421208 3104 +4036 6424312 2894 +4037 6427206 2732 +4038 6429938 2732 +4039 6432670 2732 +4040 6435402 2732 +4041 6438134 2732 +4042 6440866 2732 +4043 6443598 2732 +4044 6446330 2732 +4045 6449062 2732 +4046 6451794 2732 +4047 6454526 2732 +4048 6457258 2732 +4049 6459990 2732 +4050 6462722 2732 +4051 6465454 2732 +4052 6468186 2732 +4053 6470918 2732 +4054 6473650 2732 +4055 6476382 2732 +4056 6479114 2732 +4057 6481846 2732 +4058 6484578 2732 +4059 6487310 2732 +4060 6490042 2732 +4061 6492774 2732 +4062 6495506 2732 +4063 6498238 2732 +4064 6500970 2732 +4065 6503702 2732 +4066 6506434 2732 +4067 6509166 2732 +4068 6511898 2732 +4069 6514630 2732 +4070 6517362 2732 +4071 6520094 2732 +4072 6522826 2732 +4073 6525558 2732 +4074 6528290 2732 +4075 6531022 2732 +4076 6533754 2732 +4077 6536486 2732 +4078 6539218 2732 +4079 6541950 2732 +4080 6544682 1022 +4081 6545704 956 +4082 6546660 1514 +4083 6548174 2150 +4084 6550324 2216 +4085 6552540 1238 +4086 6553778 1304 +4087 6555082 236 +4088 6555318 230 +4089 6555548 698 +4090 6556246 590 +4091 6556836 1502 +4092 6558338 1496 +4093 6559834 1622 +4094 6561456 1616 +4095 6563072 1748 +4096 6564820 554 +4097 6565374 2528 +4098 6567902 3440 +4099 6571342 3440 +4100 6574782 5161 +4101 6579943 1286 +4102 6581229 380 +4103 6581609 356 +4104 6581965 662 +4105 6582627 698 +4106 6583325 1910 +4107 6585235 1916 +4108 6587151 1274 +4109 6588425 1274 +4110 6589699 1274 +4111 6590973 1274 +4112 6592247 470 +4113 6592717 2492 +4114 6595209 1448 +4115 6596657 854 +4116 6597511 860 +4117 6598371 848 +4118 6599219 860 +4119 6600079 290 +4120 6600369 314 +4121 6600683 698 +4122 6601381 578 +4123 6601959 1400 +4124 6603359 1520 +4125 6604879 1610 +4126 6606489 1406 +4127 6607895 3817 +4128 6611712 1610 +4129 6613322 1406 +4130 6614728 2521 +4131 6617249 848 +4132 6618097 842 +4133 6618939 1544 +4134 6620483 1526 +4135 6622009 992 +4136 6623001 992 +4137 6623993 2222 +4138 6626215 722 +4139 6626937 722 +4140 6627659 722 +4141 6628381 722 +4142 6629103 722 +4143 6629825 722 +4144 6630547 722 +4145 6631269 722 +4146 6631991 1556 +4147 6633547 1490 +4148 6635037 1556 +4149 6636593 1478 +4150 6638071 428 +4151 6638499 854 +4152 6639353 854 +4153 6640207 920 +4154 6641127 848 +4155 6641975 920 +4156 6642895 320 +4157 6643215 320 +4158 6643535 2240 +4159 6645775 3656 +4160 6649431 3656 +4161 6653087 3656 +4162 6656743 3656 +4163 6660399 2678 +4164 6663077 1910 +4165 6664987 1904 +4166 6666891 2606 +4167 6669497 1616 +4168 6671113 2336 +4169 6673449 2336 +4170 6675785 2336 +4171 6678121 914 +4172 6679035 1748 +4173 6680783 1778 +4174 6682561 920 +4175 6683481 884 +4176 6684365 1004 +4177 6685369 1706 +4178 6687075 2660 +4179 6689735 2654 +4180 6692389 5180 +4181 6697569 398 +4182 6697967 5060 +4183 6703027 566 +4184 6703593 1880 +4185 6705473 5228 +4186 6710701 452 +4187 6711153 5060 +4188 6716213 560 +4189 6716773 998 +4190 6717771 2558 +4191 6720329 2030 +4192 6722359 2918 +4193 6725277 386 +4194 6725663 1442 +4195 6727105 2558 +4196 6729663 1778 +4197 6731441 104 +4198 6731545 1778 +4199 6733323 104 +4200 6733427 902 +4201 6734329 902 +4202 6735231 902 +4203 6736133 902 +4204 6737035 2102 +4205 6739137 2102 +4206 6741239 776 +4207 6742015 1184 +4208 6743199 2522 +4209 6745721 2108 +4210 6747829 2078 +4211 6749907 212 +4212 6750119 212 +4213 6750331 212 +4214 6750543 1046 +4215 6751589 1046 +4216 6752635 1046 +4217 6753681 1046 +4218 6754727 2492 +4219 6757219 626 +4220 6757845 626 +4221 6758471 662 +4222 6759133 674 +4223 6759807 686 +4224 6760493 626 +4225 6761119 1892 +4226 6763011 1484 +4227 6764495 1154 +4228 6765649 1154 +4229 6766803 1418 +4230 6768221 1412 +4231 6769633 3578 +4232 6773211 686 +4233 6773897 686 +4234 6774583 680 +4235 6775263 668 +4236 6775931 1628 +4237 6777559 1622 +4238 6779181 4321 +4239 6783502 572 +4240 6784074 572 +4241 6784646 2108 +4242 6786754 1028 +4243 6787782 2906 +4244 6790688 866 +4245 6791554 2504 +4246 6794058 566 +4247 6794624 1778 +4248 6796402 1538 +4249 6797940 926 +4250 6798866 32 +4251 6798898 1538 +4252 6800436 926 +4253 6801362 32 +4254 6801394 2846 +4255 6804240 2846 +4256 6807086 2660 +4257 6809746 1172 +4258 6810918 998 +4259 6811916 1184 +4260 6813100 1184 +4261 6814284 716 +4262 6815000 722 +4263 6815722 884 +4264 6816606 3176 +4265 6819782 3158 +4266 6822940 3152 +4267 6826092 794 +4268 6826886 1082 +4269 6827968 356 +4270 6828324 1256 +4271 6829580 1742 +4272 6831322 1496 +4273 6832818 356 +4274 6833174 1256 +4275 6834430 1742 +4276 6836172 1496 +4277 6837668 356 +4278 6838024 1256 +4279 6839280 1742 +4280 6841022 1496 +4281 6842518 356 +4282 6842874 1256 +4283 6844130 1742 +4284 6845872 1496 +4285 6847368 356 +4286 6847724 1256 +4287 6848980 1742 +4288 6850722 1496 +4289 6852218 356 +4290 6852574 1256 +4291 6853830 1742 +4292 6855572 1496 +4293 6857068 356 +4294 6857424 1256 +4295 6858680 1742 +4296 6860422 1496 +4297 6861918 356 +4298 6862274 1256 +4299 6863530 1742 +4300 6865272 1496 +4301 6866768 356 +4302 6867124 1256 +4303 6868380 1742 +4304 6870122 1496 +4305 6871618 356 +4306 6871974 1256 +4307 6873230 1742 +4308 6874972 1496 +4309 6876468 356 +4310 6876824 1256 +4311 6878080 1742 +4312 6879822 1496 +4313 6881318 356 +4314 6881674 1256 +4315 6882930 1742 +4316 6884672 1496 +4317 6886168 356 +4318 6886524 1256 +4319 6887780 1742 +4320 6889522 1496 +4321 6891018 356 +4322 6891374 1256 +4323 6892630 1742 +4324 6894372 1496 +4325 6895868 356 +4326 6896224 1256 +4327 6897480 1742 +4328 6899222 1496 +4329 6900718 356 +4330 6901074 1256 +4331 6902330 1742 +4332 6904072 1496 +4333 6905568 356 +4334 6905924 1256 +4335 6907180 1742 +4336 6908922 1496 +4337 6910418 356 +4338 6910774 1256 +4339 6912030 1742 +4340 6913772 1496 +4341 6915268 356 +4342 6915624 1256 +4343 6916880 1742 +4344 6918622 1496 +4345 6920118 356 +4346 6920474 1256 +4347 6921730 1742 +4348 6923472 1496 +4349 6924968 356 +4350 6925324 1256 +4351 6926580 1742 +4352 6928322 1496 +4353 6929818 356 +4354 6930174 1256 +4355 6931430 1742 +4356 6933172 1496 +4357 6934668 356 +4358 6935024 1256 +4359 6936280 1742 +4360 6938022 1496 +4361 6939518 356 +4362 6939874 1256 +4363 6941130 1742 +4364 6942872 1496 +4365 6944368 356 +4366 6944724 1256 +4367 6945980 1742 +4368 6947722 1496 +4369 6949218 356 +4370 6949574 1256 +4371 6950830 1742 +4372 6952572 1496 +4373 6954068 356 +4374 6954424 1256 +4375 6955680 1742 +4376 6957422 1496 +4377 6958918 356 +4378 6959274 1256 +4379 6960530 1742 +4380 6962272 1496 +4381 6963768 356 +4382 6964124 1256 +4383 6965380 1742 +4384 6967122 1496 +4385 6968618 356 +4386 6968974 1256 +4387 6970230 1742 +4388 6971972 1496 +4389 6973468 356 +4390 6973824 1256 +4391 6975080 1742 +4392 6976822 1496 +4393 6978318 356 +4394 6978674 1256 +4395 6979930 1742 +4396 6981672 1496 +4397 6983168 356 +4398 6983524 1256 +4399 6984780 1742 +4400 6986522 1496 +4401 6988018 356 +4402 6988374 1256 +4403 6989630 1742 +4404 6991372 1496 +4405 6992868 356 +4406 6993224 1256 +4407 6994480 1742 +4408 6996222 1496 +4409 6997718 356 +4410 6998074 1256 +4411 6999330 1742 +4412 7001072 1496 +4413 7002568 356 +4414 7002924 1256 +4415 7004180 1742 +4416 7005922 1496 +4417 7007418 356 +4418 7007774 1256 +4419 7009030 1742 +4420 7010772 1496 +4421 7012268 356 +4422 7012624 1256 +4423 7013880 1742 +4424 7015622 1496 +4425 7017118 356 +4426 7017474 1256 +4427 7018730 1742 +4428 7020472 1496 +4429 7021968 356 +4430 7022324 1256 +4431 7023580 1742 +4432 7025322 1496 +4433 7026818 356 +4434 7027174 1256 +4435 7028430 1742 +4436 7030172 1496 +4437 7031668 356 +4438 7032024 1256 +4439 7033280 1742 +4440 7035022 1496 +4441 7036518 356 +4442 7036874 1256 +4443 7038130 1742 +4444 7039872 1496 +4445 7041368 356 +4446 7041724 1256 +4447 7042980 1742 +4448 7044722 1496 +4449 7046218 356 +4450 7046574 1256 +4451 7047830 1742 +4452 7049572 1496 +4453 7051068 356 +4454 7051424 1256 +4455 7052680 1742 +4456 7054422 1496 +4457 7055918 356 +4458 7056274 1256 +4459 7057530 1742 +4460 7059272 1496 +4461 7060768 356 +4462 7061124 1256 +4463 7062380 1742 +4464 7064122 1496 +4465 7065618 356 +4466 7065974 1256 +4467 7067230 1742 +4468 7068972 1496 +4469 7070468 356 +4470 7070824 1256 +4471 7072080 1742 +4472 7073822 1496 +4473 7075318 356 +4474 7075674 1256 +4475 7076930 1742 +4476 7078672 1496 +4477 7080168 356 +4478 7080524 1256 +4479 7081780 1742 +4480 7083522 1496 +4481 7085018 356 +4482 7085374 1256 +4483 7086630 1742 +4484 7088372 1496 +4485 7089868 356 +4486 7090224 1256 +4487 7091480 1742 +4488 7093222 1496 +4489 7094718 356 +4490 7095074 1256 +4491 7096330 1742 +4492 7098072 1496 +4493 7099568 356 +4494 7099924 1256 +4495 7101180 1742 +4496 7102922 1496 +4497 7104418 356 +4498 7104774 1256 +4499 7106030 1742 +4500 7107772 1496 +4501 7109268 356 +4502 7109624 1256 +4503 7110880 1742 +4504 7112622 1496 +4505 7114118 356 +4506 7114474 1256 +4507 7115730 1742 +4508 7117472 1496 +4509 7118968 584 +4510 7119552 566 +4511 7120118 2630 +4512 7122748 488 +4513 7123236 488 +4514 7123724 284 +4515 7124008 326 +4516 7124334 266 +4517 7124600 308 +4518 7124908 746 +4519 7125654 746 +4520 7126400 1268 +4521 7127668 1268 +4522 7128936 1004 +4523 7129940 1004 +4524 7130944 992 +4525 7131936 1154 +4526 7133090 1850 +4527 7134940 1172 +4528 7136112 584 +4529 7136696 584 +4530 7137280 578 +4531 7137858 578 +4532 7138436 578 +4533 7139014 578 +4534 7139592 578 +4535 7140170 578 +4536 7140748 578 +4537 7141326 578 +4538 7141904 578 +4539 7142482 578 +4540 7143060 578 +4541 7143638 578 +4542 7144216 578 +4543 7144794 578 +4544 7145372 578 +4545 7145950 578 +4546 7146528 578 +4547 7147106 590 +4548 7147696 578 +4549 7148274 578 +4550 7148852 578 +4551 7149430 578 +4552 7150008 590 +4553 7150598 578 +4554 7151176 1814 +4555 7152990 1814 +4556 7154804 56 +4557 7154860 1226 +4558 7156086 1142 +4559 7157228 1094 +4560 7158322 158 +4561 7158480 1478 +4562 7159958 1478 +4563 7161436 3242 +4564 7164678 5078 +4565 7169756 1129 +4566 7170885 1952 +4567 7172837 1052 +4568 7173889 608 +4569 7174497 464 +4570 7174961 1622 +4571 7176583 2936 +4572 7179519 746 +4573 7180265 596 +4574 7180861 758 +4575 7181619 596 +4576 7182215 356 +4577 7182571 266 +4578 7182837 458 +4579 7183295 392 +4580 7183687 614 +4581 7184301 416 +4582 7184717 338 +4583 7185055 182 +4584 7185237 1268 +4585 7186505 1598 +4586 7188103 1406 +4587 7189509 3542 +4588 7193051 1358 +4589 7194409 506 +4590 7194915 464 +4591 7195379 482 +4592 7195861 98 +4593 7195959 314 +4594 7196273 296 +4595 7196569 452 +4596 7197021 428 +4597 7197449 662 +4598 7198111 488 +4599 7198599 548 +4600 7199147 1754 +4601 7200901 704 +4602 7201605 794 +4603 7202399 536 +4604 7202935 224 +4605 7203159 224 +4606 7203383 758 +4607 7204141 758 +4608 7204899 1712 +4609 7206611 1682 +4610 7208293 1388 +4611 7209681 1388 +4612 7211069 800 +4613 7211869 98 +4614 7211967 1136 +4615 7213103 1148 +4616 7214251 188 +4617 7214439 1814 +4618 7216253 1568 +4619 7217821 1592 +4620 7219413 2366 +4621 7221779 2102 +4622 7223881 2102 +4623 7225983 464 +4624 7226447 464 +4625 7226911 1706 +4626 7228617 2546 +4627 7231163 2528 +4628 7233691 1694 +4629 7235385 1706 +4630 7237091 2546 +4631 7239637 2528 +4632 7242165 1694 +4633 7243859 1718 +4634 7245577 2546 +4635 7248123 2528 +4636 7250651 1706 +4637 7252357 1718 +4638 7254075 2546 +4639 7256621 2528 +4640 7259149 1706 +4641 7260855 1472 +4642 7262327 1472 +4643 7263799 1472 +4644 7265271 1478 +4645 7266749 1472 +4646 7268221 1472 +4647 7269693 1472 +4648 7271165 1478 +4649 7272643 1472 +4650 7274115 1472 +4651 7275587 1472 +4652 7277059 1478 +4653 7278537 644 +4654 7279181 644 +4655 7279825 1364 +4656 7281189 1214 +4657 7282403 596 +4658 7282999 536 +4659 7283535 1892 +4660 7285427 1892 +4661 7287319 1892 +4662 7289211 1892 +4663 7291103 1892 +4664 7292995 1940 +4665 7294935 716 +4666 7295651 1442 +4667 7297093 2246 +4668 7299339 1826 +4669 7301165 1886 +4670 7303051 2042 +4671 7305093 392 +4672 7305485 572 +4673 7306057 776 +4674 7306833 542 +4675 7307375 380 +4676 7307755 776 +4677 7308531 2150 +4678 7310681 1286 +4679 7311967 1280 +4680 7313247 740 +4681 7313987 782 +4682 7314769 1226 +4683 7315995 1604 +4684 7317599 1604 +4685 7319203 1604 +4686 7320807 1604 +4687 7322411 1604 +4688 7324015 1604 +4689 7325619 1610 +4690 7327229 1604 +4691 7328833 1610 +4692 7330443 1610 +4693 7332053 1610 +4694 7333663 1604 +4695 7335267 1754 +4696 7337021 278 +4697 7337299 542 +4698 7337841 2264 +4699 7340105 1532 +4700 7341637 1532 +4701 7343169 1172 +4702 7344341 1472 +4703 7345813 1472 +4704 7347285 1472 +4705 7348757 1472 +4706 7350229 1472 +4707 7351701 1472 +4708 7353173 1472 +4709 7354645 1472 +4710 7356117 1472 +4711 7357589 1472 +4712 7359061 1472 +4713 7360533 1472 +4714 7362005 1472 +4715 7363477 1472 +4716 7364949 1472 +4717 7366421 1478 +4718 7367899 1472 +4719 7369371 1472 +4720 7370843 1472 +4721 7372315 1478 +4722 7373793 1472 +4723 7375265 1472 +4724 7376737 1472 +4725 7378209 1478 +4726 7379687 1274 +4727 7380961 1658 +4728 7382619 320 +4729 7382939 2282 +4730 7385221 2282 +4731 7387503 2282 +4732 7389785 1100 +4733 7390885 788 +4734 7391673 494 +4735 7392167 548 +4736 7392715 1028 +4737 7393743 1028 +4738 7394771 1028 +4739 7395799 608 +4740 7396407 608 +4741 7397015 620 +4742 7397635 584 +4743 7398219 596 +4744 7398815 596 +4745 7399411 620 +4746 7400031 590 +4747 7400621 350 +4748 7400971 326 +4749 7401297 1280 +4750 7402577 830 +4751 7403407 2354 +4752 7405761 2354 +4753 7408115 1652 +4754 7409767 602 +4755 7410369 68 +4756 7410437 668 +4757 7411105 356 +4758 7411461 350 +4759 7411811 494 +4760 7412305 860 +4761 7413165 494 +4762 7413659 860 +4763 7414519 986 +4764 7415505 986 +4765 7416491 572 +4766 7417063 986 +4767 7418049 1382 +4768 7419431 1358 +4769 7420789 590 +4770 7421379 590 +4771 7421969 2876 +4772 7424845 2138 +4773 7426983 2132 +4774 7429115 2138 +4775 7431253 2132 +4776 7433385 1568 +4777 7434953 2048 +4778 7437001 2186 +4779 7439187 920 +4780 7440107 914 +4781 7441021 704 +4782 7441725 1970 +4783 7443695 1970 +4784 7445665 626 +4785 7446291 1784 +4786 7448075 1826 +4787 7449901 1772 +4788 7451673 1826 +4789 7453499 1838 +4790 7455337 1784 +4791 7457121 1778 +4792 7458899 1760 +4793 7460659 1766 +4794 7462425 1796 +4795 7464221 1472 +4796 7465693 1472 +4797 7467165 1574 +4798 7468739 1574 +4799 7470313 722 +4800 7471035 716 +4801 7471751 722 +4802 7472473 716 +4803 7473189 1100 +4804 7474289 1100 +4805 7475389 2540 +4806 7477929 1754 +4807 7479683 2540 +4808 7482223 1754 +4809 7483977 2540 +4810 7486517 1754 +4811 7488271 2540 +4812 7490811 1754 +4813 7492565 2540 +4814 7495105 1754 +4815 7496859 2540 +4816 7499399 1754 +4817 7501153 1364 +4818 7502517 1340 +4819 7503857 1340 +4820 7505197 1322 +4821 7506519 3296 +4822 7509815 1766 +4823 7511581 236 +4824 7511817 1886 +4825 7513703 1328 +4826 7515031 560 +4827 7515591 560 +4828 7516151 524 +4829 7516675 518 +4830 7517193 2444 +4831 7519637 2444 +4832 7522081 596 +4833 7522677 596 +4834 7523273 2168 +4835 7525441 2168 +4836 7527609 2162 +4837 7529771 2168 +4838 7531939 1934 +4839 7533873 1124 +4840 7534997 1130 +4841 7536127 1124 +4842 7537251 1124 +4843 7538375 1124 +4844 7539499 1130 +4845 7540629 1124 +4846 7541753 1124 +4847 7542877 1130 +4848 7544007 1124 +4849 7545131 1130 +4850 7546261 560 +4851 7546821 566 +4852 7547387 566 +4853 7547953 560 +4854 7548513 566 +4855 7549079 566 +4856 7549645 1100 +4857 7550745 1388 +4858 7552133 1388 +4859 7553521 1676 +4860 7555197 1676 +4861 7556873 656 +4862 7557529 926 +4863 7558455 1388 +4864 7559843 1388 +4865 7561231 1268 +4866 7562499 1274 +4867 7563773 470 +4868 7564243 1460 +4869 7565703 1028 +4870 7566731 860 +4871 7567591 968 +4872 7568559 2246 +4873 7570805 1616 +4874 7572421 722 +4875 7573143 1616 +4876 7574759 1322 +4877 7576081 1304 +4878 7577385 1652 +4879 7579037 1652 +4880 7580689 2882 +4881 7583571 698 +4882 7584269 794 +4883 7585063 764 +4884 7585827 1028 +4885 7586855 1028 +4886 7587883 1028 +4887 7588911 1028 +4888 7589939 1028 +4889 7590967 1028 +4890 7591995 878 +4891 7592873 866 +4892 7593739 860 +4893 7594599 872 +4894 7595471 872 +4895 7596343 872 +4896 7597215 884 +4897 7598099 878 +4898 7598977 872 +4899 7599849 890 +4900 7600739 878 +4901 7601617 950 +4902 7602567 872 +4903 7603439 872 +4904 7604311 908 +4905 7605219 878 +4906 7606097 878 +4907 7606975 866 +4908 7607841 872 +4909 7608713 872 +4910 7609585 878 +4911 7610463 866 +4912 7611329 860 +4913 7612189 872 +4914 7613061 872 +4915 7613933 872 +4916 7614805 884 +4917 7615689 878 +4918 7616567 872 +4919 7617439 890 +4920 7618329 878 +4921 7619207 950 +4922 7620157 872 +4923 7621029 872 +4924 7621901 908 +4925 7622809 878 +4926 7623687 878 +4927 7624565 866 +4928 7625431 872 +4929 7626303 872 +4930 7627175 878 +4931 7628053 866 +4932 7628919 860 +4933 7629779 872 +4934 7630651 872 +4935 7631523 872 +4936 7632395 884 +4937 7633279 878 +4938 7634157 872 +4939 7635029 890 +4940 7635919 878 +4941 7636797 950 +4942 7637747 872 +4943 7638619 872 +4944 7639491 908 +4945 7640399 878 +4946 7641277 878 +4947 7642155 866 +4948 7643021 872 +4949 7643893 872 +4950 7644765 644 +4951 7645409 578 +4952 7645987 2252 +4953 7648239 938 +4954 7649177 1874 +4955 7651051 1874 +4956 7652925 860 +4957 7653785 860 +4958 7654645 752 +4959 7655397 752 +4960 7656149 752 +4961 7656901 752 +4962 7657653 1256 +4963 7658909 1010 +4964 7659919 4388 +4965 7664307 1610 +4966 7665917 1610 +4967 7667527 1610 +4968 7669137 1610 +4969 7670747 1610 +4970 7672357 1610 +4971 7673967 956 +4972 7674923 3656 +4973 7678579 1118 +4974 7679697 2252 +4975 7681949 1118 +4976 7683067 2252 +4977 7685319 1118 +4978 7686437 2252 +4979 7688689 1118 +4980 7689807 2252 +4981 7692059 1118 +4982 7693177 2252 +4983 7695429 1118 +4984 7696547 2252 +4985 7698799 1118 +4986 7699917 2252 +4987 7702169 1118 +4988 7703287 2252 +4989 7705539 1118 +4990 7706657 2252 +4991 7708909 1118 +4992 7710027 2252 +4993 7712279 1118 +4994 7713397 2252 +4995 7715649 1118 +4996 7716767 2252 +4997 7719019 1118 +4998 7720137 2252 +4999 7722389 1118 +5000 7723507 2252 +5001 7725759 1118 +5002 7726877 2252 +5003 7729129 1118 +5004 7730247 2252 +5005 7732499 1118 +5006 7733617 2252 +5007 7735869 1118 +5008 7736987 2252 +5009 7739239 1118 +5010 7740357 2252 +5011 7742609 1118 +5012 7743727 2252 +5013 7745979 1118 +5014 7747097 2252 +5015 7749349 1118 +5016 7750467 2252 +5017 7752719 1118 +5018 7753837 2252 +5019 7756089 1118 +5020 7757207 2252 +5021 7759459 1118 +5022 7760577 2252 +5023 7762829 1118 +5024 7763947 2252 +5025 7766199 1118 +5026 7767317 2252 +5027 7769569 1118 +5028 7770687 2252 +5029 7772939 1118 +5030 7774057 2252 +5031 7776309 1118 +5032 7777427 2252 +5033 7779679 1118 +5034 7780797 2252 +5035 7783049 1118 +5036 7784167 2252 +5037 7786419 1118 +5038 7787537 2252 +5039 7789789 1118 +5040 7790907 2252 +5041 7793159 1118 +5042 7794277 2252 +5043 7796529 1118 +5044 7797647 2252 +5045 7799899 1118 +5046 7801017 2252 +5047 7803269 1118 +5048 7804387 2252 +5049 7806639 1118 +5050 7807757 2252 +5051 7810009 1118 +5052 7811127 2252 +5053 7813379 1118 +5054 7814497 2252 +5055 7816749 1118 +5056 7817867 2252 +5057 7820119 1118 +5058 7821237 2252 +5059 7823489 1118 +5060 7824607 2252 +5061 7826859 1118 +5062 7827977 2252 +5063 7830229 1118 +5064 7831347 2252 +5065 7833599 1118 +5066 7834717 2252 +5067 7836969 1118 +5068 7838087 2252 +5069 7840339 1118 +5070 7841457 2252 +5071 7843709 1118 +5072 7844827 2252 +5073 7847079 1118 +5074 7848197 2252 +5075 7850449 1118 +5076 7851567 2252 +5077 7853819 1118 +5078 7854937 2252 +5079 7857189 1118 +5080 7858307 2252 +5081 7860559 1118 +5082 7861677 2252 +5083 7863929 1118 +5084 7865047 2252 +5085 7867299 1118 +5086 7868417 2252 +5087 7870669 1118 +5088 7871787 2252 +5089 7874039 1118 +5090 7875157 2252 +5091 7877409 1118 +5092 7878527 2252 +5093 7880779 980 +5094 7881759 1046 +5095 7882805 1022 +5096 7883827 1076 +5097 7884903 1022 +5098 7885925 1076 +5099 7887001 1022 +5100 7888023 1076 +5101 7889099 1022 +5102 7890121 1076 +5103 7891197 1022 +5104 7892219 1076 +5105 7893295 1022 +5106 7894317 1076 +5107 7895393 1070 +5108 7896463 1070 +5109 7897533 1220 +5110 7898753 1448 +5111 7900201 1454 +5112 7901655 1460 +5113 7903115 1238 +5114 7904353 1238 +5115 7905591 1238 +5116 7906829 1400 +5117 7908229 998 +5118 7909227 1004 +5119 7910231 1760 +5120 7911991 1772 +5121 7913763 1694 +5122 7915457 458 +5123 7915915 470 +5124 7916385 458 +5125 7916843 452 +5126 7917295 470 +5127 7917765 464 +5128 7918229 458 +5129 7918687 698 +5130 7919385 680 +5131 7920065 698 +5132 7920763 1676 +5133 7922439 1694 +5134 7924133 1022 +5135 7925155 1574 +5136 7926729 1478 +5137 7928207 734 +5138 7928941 722 +5139 7929663 728 +5140 7930391 734 +5141 7931125 740 +5142 7931865 1628 +5143 7933493 1214 +5144 7934707 1514 +5145 7936221 1436 +5146 7937657 1442 +5147 7939099 1658 +5148 7940757 1658 +5149 7942415 4982 +5150 7947397 1772 +5151 7949169 782 +5152 7949951 776 +5153 7950727 578 +5154 7951305 1748 +5155 7953053 1742 +5156 7954795 1316 +5157 7956111 1316 +5158 7957427 1316 +5159 7958743 1316 +5160 7960059 1316 +5161 7961375 1316 +5162 7962691 1316 +5163 7964007 1316 +5164 7965323 746 +5165 7966069 746 +5166 7966815 1700 +5167 7968515 1694 +5168 7970209 1670 +5169 7971879 506 +5170 7972385 80 +5171 7972465 584 +5172 7973049 584 +5173 7973633 572 +5174 7974205 578 +5175 7974783 1844 +5176 7976627 614 +5177 7977241 518 +5178 7977759 518 +5179 7978277 416 +5180 7978693 416 +5181 7979109 416 +5182 7979525 416 +5183 7979941 416 +5184 7980357 1262 +5185 7981619 1286 +5186 7982905 1262 +5187 7984167 824 +5188 7984991 836 +5189 7985827 1172 +5190 7986999 1466 +5191 7988465 1466 +5192 7989931 1748 +5193 7991679 1682 +5194 7993361 1670 +5195 7995031 1664 +5196 7996695 1172 +5197 7997867 1202 +5198 7999069 1184 +5199 8000253 5810 +5200 8006063 3392 +5201 8009455 3386 +5202 8012841 3368 +5203 8016209 584 +5204 8016793 2744 +5205 8019537 2894 +5206 8022431 2894 +5207 8025325 2894 +5208 8028219 2894 +5209 8031113 2894 +5210 8034007 2894 +5211 8036901 1946 +5212 8038847 1928 +5213 8040775 1526 +5214 8042301 68 +5215 8042369 2246 +5216 8044615 494 +5217 8045109 494 +5218 8045603 554 +5219 8046157 554 +5220 8046711 554 +5221 8047265 554 +5222 8047819 554 +5223 8048373 560 +5224 8048933 554 +5225 8049487 524 +5226 8050011 830 +5227 8050841 830 +5228 8051671 4280 +5229 8055951 1994 +5230 8057945 1718 +5231 8059663 1700 +5232 8061363 1724 +5233 8063087 1700 +5234 8064787 1430 +5235 8066217 722 +5236 8066939 1586 +5237 8068525 1586 +5238 8070111 1556 +5239 8071667 1538 +5240 8073205 722 +5241 8073927 404 +5242 8074331 404 +5243 8074735 2024 +5244 8076759 2024 +5245 8078783 2018 +5246 8080801 1994 +5247 8082795 2012 +5248 8084807 2012 +5249 8086819 2030 +5250 8088849 1934 +5251 8090783 1076 +5252 8091859 3224 +5253 8095083 2216 +5254 8097299 1513 +5255 8098812 1508 +5256 8100320 1508 +5257 8101828 884 +5258 8102712 1658 +5259 8104370 1658 +5260 8106028 2090 +5261 8108118 1238 +5262 8109356 1238 +5263 8110594 4484 +5264 8115078 4496 +5265 8119574 1874 +5266 8121448 1856 +5267 8123304 920 +5268 8124224 1610 +5269 8125834 1610 +5270 8127444 1022 +5271 8128466 1070 +5272 8129536 1022 +5273 8130558 1070 +5274 8131628 1574 +5275 8133202 1526 +5276 8134728 1580 +5277 8136308 1580 +5278 8137888 2750 +5279 8140638 2750 +5280 8143388 2768 +5281 8146156 572 +5282 8146728 950 +5283 8147678 1094 +5284 8148772 2318 +5285 8151090 1160 +5286 8152250 2612 +5287 8154862 4130 +5288 8158992 1952 +5289 8160944 998 +5290 8161942 1052 +5291 8162994 608 +5292 8163602 3998 +5293 8167600 2972 +5294 8170572 2936 +5295 8173508 746 +5296 8174254 1904 +5297 8176158 638 +5298 8176796 446 +5299 8177242 566 +5300 8177808 506 +5301 8178314 530 +5302 8178844 848 +5303 8179692 680 +5304 8180372 596 +5305 8180968 758 +5306 8181726 758 +5307 8182484 356 +5308 8182840 266 +5309 8183106 464 +5310 8183570 458 +5311 8184028 392 +5312 8184420 614 +5313 8185034 422 +5314 8185456 416 +5315 8185872 314 +5316 8186186 296 +5317 8186482 452 +5318 8186934 428 +5319 8187362 662 +5320 8188024 488 +5321 8188512 548 +5322 8189060 488 +5323 8189548 338 +5324 8189886 182 +5325 8190068 1268 +5326 8191336 1598 +5327 8192934 1406 +5328 8194340 2528 +5329 8196868 2930 +5330 8199798 2330 +5331 8202128 1184 +5332 8203312 1472 +5333 8204784 704 +5334 8205488 422 +5335 8205910 392 +5336 8206302 350 +5337 8206652 176 +5338 8206828 2516 +5339 8209344 2930 +5340 8212274 2330 +5341 8214604 1178 +5342 8215782 1472 +5343 8217254 704 +5344 8217958 416 +5345 8218374 386 +5346 8218760 350 +5347 8219110 176 +5348 8219286 1460 +5349 8220746 1460 +5350 8222206 1460 +5351 8223666 1460 +5352 8225126 1460 +5353 8226586 1460 +5354 8228046 3026 +5355 8231072 2036 +5356 8233108 1622 +5357 8234730 1754 +5358 8236484 1874 +5359 8238358 1700 +5360 8240058 1388 +5361 8241446 806 +5362 8242252 1310 +5363 8243562 1394 +5364 8244956 4286 +5365 8249242 4136 +5366 8253378 3038 +5367 8256416 2654 +5368 8259070 2654 +5369 8261724 2162 +5370 8263886 2084 +5371 8265970 1706 +5372 8267676 1394 +5373 8269070 1532 +5374 8270602 1388 +5375 8271990 1316 +5376 8273306 1394 +5377 8274700 950 +5378 8275650 1196 +5379 8276846 1154 +5380 8278000 1130 +5381 8279130 1094 +5382 8280224 1040 +5383 8281264 974 +5384 8282238 902 +5385 8283140 680 +5386 8283820 596 +5387 8284416 734 +5388 8285150 704 +5389 8285854 572 +5390 8286426 566 +5391 8286992 560 +5392 8287552 566 +5393 8288118 446 +5394 8288564 446 +5395 8289010 332 +5396 8289342 362 +5397 8289704 1202 +5398 8290906 1010 +5399 8291916 1046 +5400 8292962 896 +5401 8293858 1016 +5402 8294874 1070 +5403 8295944 968 +5404 8296912 1076 +5405 8297988 902 +5406 8298890 872 +5407 8299762 662 +5408 8300424 860 +5409 8301284 776 +5410 8302060 806 +5411 8302866 824 +5412 8303690 440 +5413 8304130 614 +5414 8304744 554 +5415 8305298 728 +5416 8306026 758 +5417 8306784 812 +5418 8307596 758 +5419 8308354 716 +5420 8309070 584 +5421 8309654 608 +5422 8310262 620 +5423 8310882 668 +5424 8311550 452 +5425 8312002 536 +5426 8312538 3602 +5427 8316140 692 +5428 8316832 1718 +5429 8318550 1316 +5430 8319866 1184 +5431 8321050 566 +5432 8321616 1934 +5433 8323550 626 +5434 8324176 380 +5435 8324556 362 +5436 8324918 266 +5437 8325184 272 +5438 8325456 2900 +5439 8328356 2768 +5440 8331124 2564 +5441 8333688 1778 +5442 8335466 1478 +5443 8336944 524 +5444 8337468 1970 +5445 8339438 782 +5446 8340220 710 +5447 8340930 356 +5448 8341286 200 +5449 8341486 2900 +5450 8344386 2768 +5451 8347154 2564 +5452 8349718 1778 +5453 8351496 1478 +5454 8352974 518 +5455 8353492 1970 +5456 8355462 782 +5457 8356244 710 +5458 8356954 356 +5459 8357310 200 +5460 8357510 4034 +5461 8361544 3632 +5462 8365176 3500 +5463 8368676 3356 +5464 8372032 764 +5465 8372796 1340 +5466 8374136 596 +5467 8374732 806 +5468 8375538 1244 +5469 8376782 1328 +5470 8378110 788 +5471 8378898 2738 +5472 8381636 2726 +5473 8384362 2618 +5474 8386980 1748 +5475 8388728 2306 +5476 8391034 1466 +5477 8392500 2084 +5478 8394584 1766 +5479 8396350 1982 +5480 8398332 1916 +5481 8400248 1814 +5482 8402062 1514 +5483 8403576 1130 +5484 8404706 1256 +5485 8405962 1166 +5486 8407128 1262 +5487 8408390 1280 +5488 8409670 1148 +5489 8410818 758 +5490 8411576 1136 +5491 8412712 596 +5492 8413308 1046 +5493 8414354 1040 +5494 8415394 476 +5495 8415870 1022 +5496 8416892 926 +5497 8417818 926 +5498 8418744 878 +5499 8419622 746 +5500 8420368 608 +5501 8420976 740 +5502 8421716 632 +5503 8422348 542 +5504 8422890 500 +5505 8423390 536 +5506 8423926 1058 +5507 8424984 386 +5508 8425370 422 +5509 8425792 428 +5510 8426220 356 +5511 8426576 434 +5512 8427010 4034 +5513 8431044 3632 +5514 8434676 3500 +5515 8438176 3356 +5516 8441532 764 +5517 8442296 1340 +5518 8443636 596 +5519 8444232 806 +5520 8445038 1244 +5521 8446282 1328 +5522 8447610 788 +5523 8448398 2738 +5524 8451136 2726 +5525 8453862 2618 +5526 8456480 1748 +5527 8458228 2306 +5528 8460534 1466 +5529 8462000 2084 +5530 8464084 1766 +5531 8465850 1982 +5532 8467832 1916 +5533 8469748 1814 +5534 8471562 1514 +5535 8473076 1130 +5536 8474206 1256 +5537 8475462 1166 +5538 8476628 1262 +5539 8477890 1280 +5540 8479170 1148 +5541 8480318 758 +5542 8481076 1136 +5543 8482212 596 +5544 8482808 1046 +5545 8483854 1040 +5546 8484894 476 +5547 8485370 1022 +5548 8486392 926 +5549 8487318 926 +5550 8488244 878 +5551 8489122 746 +5552 8489868 608 +5553 8490476 740 +5554 8491216 632 +5555 8491848 542 +5556 8492390 500 +5557 8492890 536 +5558 8493426 1058 +5559 8494484 386 +5560 8494870 422 +5561 8495292 428 +5562 8495720 356 +5563 8496076 434 +5564 8496510 2288 +5565 8498798 2288 +5566 8501086 2048 +5567 8503134 1922 +5568 8505056 1568 +5569 8506624 1454 +5570 8508078 1568 +5571 8509646 1490 +5572 8511136 1568 +5573 8512704 1454 +5574 8514158 2546 +5575 8516704 86 +5576 8516790 926 +5577 8517716 1154 +5578 8518870 1142 +5579 8520012 1910 +5580 8521922 2132 +5581 8524054 2102 +5582 8526156 2258 +5583 8528414 182 +5584 8528596 2264 +5585 8530860 188 +5586 8531048 422 +5587 8531470 422 +5588 8531892 2192 +5589 8534084 2192 +5590 8536276 1268 +5591 8537544 734 +5592 8538278 758 +5593 8539036 1406 +5594 8540442 3020 +5595 8543462 5384 +5596 8548846 254 +5597 8549100 50 +5598 8549150 2558 +5599 8551708 2822 +5600 8554530 2822 +5601 8557352 830 +5602 8558182 878 +5603 8559060 3806 +5604 8562866 812 +5605 8563678 812 +5606 8564490 1676 +5607 8566166 1676 +5608 8567842 1064 +5609 8568906 980 +5610 8569886 992 +5611 8570878 1532 +5612 8572410 1532 +5613 8573942 1532 +5614 8575474 650 +5615 8576124 650 +5616 8576774 650 +5617 8577424 740 +5618 8578164 740 +5619 8578904 740 +5620 8579644 1478 +5621 8581122 482 +5622 8581604 2432 +5623 8584036 536 +5624 8584572 716 +5625 8585288 710 +5626 8585998 1346 +5627 8587344 1358 +5628 8588702 350 +5629 8589052 302 +5630 8589354 1214 +5631 8590568 1208 +5632 8591776 848 +5633 8592624 836 +5634 8593460 848 +5635 8594308 848 +5636 8595156 848 +5637 8596004 848 +5638 8596852 848 +5639 8597700 956 +5640 8598656 866 +5641 8599522 782 +5642 8600304 782 +5643 8601086 2222 +5644 8603308 1004 +5645 8604312 2324 +5646 8606636 176 +5647 8606812 1430 +5648 8608242 1430 +5649 8609672 1424 +5650 8611096 1424 +5651 8612520 1424 +5652 8613944 1424 +5653 8615368 1424 +5654 8616792 1424 +5655 8618216 800 +5656 8619016 818 +5657 8619834 800 +5658 8620634 1784 +5659 8622418 1628 +5660 8624046 1334 +5661 8625380 5702 +5662 8631082 2750 +5663 8633832 1040 +5664 8634872 980 +5665 8635852 2420 +5666 8638272 1214 +5667 8639486 1208 +5668 8640694 848 +5669 8641542 812 +5670 8642354 830 +5671 8643184 848 +5672 8644032 824 +5673 8644856 842 +5674 8645698 848 +5675 8646546 830 +5676 8647376 824 +5677 8648200 806 +5678 8649006 812 +5679 8649818 836 +5680 8650654 800 +5681 8651454 830 +5682 8652284 848 +5683 8653132 842 +5684 8653974 848 +5685 8654822 848 +5686 8655670 848 +5687 8656518 848 +5688 8657366 848 +5689 8658214 1658 +5690 8659872 1280 +5691 8661152 1256 +5692 8662408 15806 +5693 8678214 992 +5694 8679206 1046 +5695 8680252 956 +5696 8681208 656 +5697 8681864 656 +5698 8682520 1760 +5699 8684280 1784 +5700 8686064 1796 +5701 8687860 1772 +5702 8689632 1730 +5703 8691362 1754 +5704 8693116 1178 +5705 8694294 1178 +5706 8695472 1178 +5707 8696650 1178 +5708 8697828 872 +5709 8698700 1400 +5710 8700100 1712 +5711 8701812 1736 +5712 8703548 908 +5713 8704456 914 +5714 8705370 10681 +5715 8716051 2006 +5716 8718057 812 +5717 8718869 2726 +5718 8721595 2726 +5719 8724321 2714 +5720 8727035 518 +5721 8727553 1190 +5722 8728743 404 +5723 8729147 416 +5724 8729563 2648 +5725 8732211 1742 +5726 8733953 1274 +5727 8735227 1016 +5728 8736243 2270 +5729 8738513 1268 +5730 8739781 1340 +5731 8741121 1280 +5732 8742401 1328 +5733 8743729 2828 +5734 8746557 2750 +5735 8749307 2642 +5736 8751949 1412 +5737 8753361 1712 +5738 8755073 6476 +5739 8761549 6386 +5740 8767935 548 +5741 8768483 6476 +5742 8774959 6386 +5743 8781345 566 +5744 8781911 6218 +5745 8788129 6218 +5746 8794347 512 +5747 8794859 512 +5748 8795371 1820 +5749 8797191 2354 +5750 8799545 578 +5751 8800123 56 +5752 8800179 1340 +5753 8801519 1220 +5754 8802739 1742 +5755 8804481 1742 +5756 8806223 1742 +5757 8807965 1742 +5758 8809707 2390 +5759 8812097 2396 +5760 8814493 1196 +5761 8815689 3200 +5762 8818889 644 +5763 8819533 662 +5764 8820195 644 +5765 8820839 662 +5766 8821501 1364 +5767 8822865 284 +5768 8823149 2090 +5769 8825239 2090 +5770 8827329 2084 +5771 8829413 2084 +5772 8831497 2090 +5773 8833587 2090 +5774 8835677 830 +5775 8836507 2180 +5776 8838687 2222 +5777 8840909 2450 +5778 8843359 1934 +5779 8845293 578 +5780 8845871 692 +5781 8846563 590 +5782 8847153 644 +5783 8847797 656 +5784 8848453 524 +5785 8848977 524 +5786 8849501 1736 +5787 8851237 1736 +5788 8852973 1736 +5789 8854709 1736 +5790 8856445 1736 +5791 8858181 1736 +5792 8859917 1928 +5793 8861845 1832 +5794 8863677 1706 +5795 8865383 314 +5796 8865697 2660 +5797 8868357 2636 +5798 8870993 1178 +5799 8872171 1184 +5800 8873355 62 +5801 8873417 1652 +5802 8875069 62 +5803 8875131 1652 +5804 8876783 56 +5805 8876839 2564 +5806 8879403 1142 +5807 8880545 1124 +5808 8881669 1238 +5809 8882907 1478 +5810 8884385 530 +5811 8884915 560 +5812 8885475 530 +5813 8886005 554 +5814 8886559 1226 +5815 8887785 476 +5816 8888261 86 +5817 8888347 4358 +5818 8892705 314 +5819 8893019 302 +5820 8893321 368 +5821 8893689 326 +5822 8894015 326 +5823 8894341 326 +5824 8894667 326 +5825 8894993 326 +5826 8895319 326 +5827 8895645 326 +5828 8895971 326 +5829 8896297 326 +5830 8896623 326 +5831 8896949 326 +5832 8897275 326 +5833 8897601 1556 +5834 8899157 1490 +5835 8900647 1526 +5836 8902173 1496 +5837 8903669 1526 +5838 8905195 2096 +5839 8907291 2168 +5840 8909459 2168 +5841 8911627 884 +5842 8912511 884 +5843 8913395 1532 +5844 8914927 1538 +5845 8916465 1532 +5846 8917997 1538 +5847 8919535 614 +5848 8920149 602 +5849 8920751 602 +5850 8921353 608 +5851 8921961 590 +5852 8922551 938 +5853 8923489 56 +5854 8923545 1664 +5855 8925209 608 +5856 8925817 278 +5857 8926095 278 +5858 8926373 278 +5859 8926651 278 +5860 8926929 278 +5861 8927207 278 +5862 8927485 1064 +5863 8928549 1088 +5864 8929637 470 +5865 8930107 1525 +5866 8931632 1796 +5867 8933428 500 +5868 8933928 500 +5869 8934428 1154 +5870 8935582 1160 +5871 8936742 1154 +5872 8937896 1154 +5873 8939050 1160 +5874 8940210 1154 +5875 8941364 950 +5876 8942314 962 +5877 8943276 1849 +5878 8945125 128 +5879 8945253 3986 +5880 8949239 1172 +5881 8950411 4562 +5882 8954973 638 +5883 8955611 638 +5884 8956249 734 +5885 8956983 188 +5886 8957171 728 +5887 8957899 188 +5888 8958087 728 +5889 8958815 392 +5890 8959207 740 +5891 8959947 392 +5892 8960339 740 +5893 8961079 2696 +5894 8963775 2630 +5895 8966405 866 +5896 8967271 932 +5897 8968203 872 +5898 8969075 908 +5899 8969983 914 +5900 8970897 920 +5901 8971817 1946 +5902 8973763 1940 +5903 8975703 1946 +5904 8977649 1856 +5905 8979505 1856 +5906 8981361 1856 +5907 8983217 1928 +5908 8985145 1910 +5909 8987055 1910 +5910 8988965 1904 +5911 8990869 1016 +5912 8991885 1142 +5913 8993027 4388 +5914 8997415 236 +5915 8997651 500 +5916 8998151 2588 +5917 9000739 662 +5918 9001401 1064 +5919 9002465 1202 +5920 9003667 1046 +5921 9004713 1046 +5922 9005759 1658 +5923 9007417 1658 +5924 9009075 1658 +5925 9010733 1658 +5926 9012391 1496 +5927 9013887 464 +5928 9014351 2690 +5929 9017041 2708 +5930 9019749 2192 +5931 9021941 3008 +5932 9024949 1190 +5933 9026139 1244 +5934 9027383 2930 +5935 9030313 3014 +5936 9033327 3014 +5937 9036341 2984 +5938 9039325 662 +5939 9039987 1232 +5940 9041219 1370 +5941 9042589 1436 +5942 9044025 1358 +5943 9045383 1358 +5944 9046741 1376 +5945 9048117 1448 +5946 9049565 1466 +5947 9051031 1328 +5948 9052359 1232 +5949 9053591 1184 +5950 9054775 1208 +5951 9055983 1286 +5952 9057269 1292 +5953 9058561 1190 +5954 9059751 1334 +5955 9061085 1436 +5956 9062521 1340 +5957 9063861 1388 +5958 9065249 1430 +5959 9066679 1442 +5960 9068121 1388 +5961 9069509 1316 +5962 9070825 1184 +5963 9072009 1202 +5964 9073211 1286 +5965 9074497 1298 +5966 9075795 1196 +5967 9076991 38 +5968 9077029 38 +5969 9077067 32 +5970 9077099 578 +5971 9077677 536 +5972 9078213 566 +5973 9078779 2582 +5974 9081361 728 +5975 9082089 932 +5976 9083021 2186 +5977 9085207 2186 +5978 9087393 2186 +5979 9089579 2186 +5980 9091765 2126 +5981 9093891 1016 +5982 9094907 1058 +5983 9095965 122 +5984 9096087 506 +5985 9096593 1460 +5986 9098053 1460 +5987 9099513 1460 +5988 9100973 1460 +5989 9102433 662 +5990 9103095 518 +5991 9103613 518 +5992 9104131 2378 +5993 9106509 2378 +5994 9108887 914 +5995 9109801 1346 +5996 9111147 3272 +5997 9114419 1658 +5998 9116077 1658 +5999 9117735 1658 +6000 9119393 1658 +6001 9121051 1658 +6002 9122709 1658 +6003 9124367 3056 +6004 9127423 548 +6005 9127971 584 +6006 9128555 2432 +6007 9130987 908 +6008 9131895 908 +6009 9132803 5414 +6010 9138217 584 +6011 9138801 5342 +6012 9144143 5234 +6013 9149377 1022 +6014 9150399 1754 +6015 9152153 1250 +6016 9153403 1250 +6017 9154653 1052 +6018 9155705 32 +6019 9155737 1712 +6020 9157449 2708 +6021 9160157 2750 +6022 9162907 1256 +6023 9164163 1256 +6024 9165419 830 +6025 9166249 830 +6026 9167079 830 +6027 9167909 830 +6028 9168739 362 +6029 9169101 380 +6030 9169481 1682 +6031 9171163 1640 +6032 9172803 1838 +6033 9174641 1838 +6034 9176479 1568 +6035 9178047 602 +6036 9178649 4238 +6037 9182887 4256 +6038 9187143 4034 +6039 9191177 4034 +6040 9195211 2588 +6041 9197799 2588 +6042 9200387 2588 +6043 9202975 2588 +6044 9205563 1592 +6045 9207155 830 +6046 9207985 1646 +6047 9209631 1394 +6048 9211025 1748 +6049 9212773 1742 +6050 9214515 1850 +6051 9216365 668 +6052 9217033 650 +6053 9217683 464 +6054 9218147 458 +6055 9218605 1034 +6056 9219639 1016 +6057 9220655 4220 +6058 9224875 4220 +6059 9229095 4226 +6060 9233321 4226 +6061 9237547 1136 +6062 9238683 1136 +6063 9239819 362 +6064 9240181 44 +6065 9240225 362 +6066 9240587 44 +6067 9240631 1796 +6068 9242427 1796 +6069 9244223 1328 +6070 9245551 1514 +6071 9247065 1268 +6072 9248333 1190 +6073 9249523 1988 +6074 9251511 1988 +6075 9253499 458 +6076 9253957 2468 +6077 9256425 698 +6078 9257123 698 +6079 9257821 698 +6080 9258519 740 +6081 9259259 2600 +6082 9261859 2576 +6083 9264435 2144 +6084 9266579 2090 +6085 9268669 1766 +6086 9270435 536 +6087 9270971 728 +6088 9271699 1508 +6089 9273207 1508 +6090 9274715 1814 +6091 9276529 1106 +6092 9277635 1670 +6093 9279305 1652 +6094 9280957 2132 +6095 9283089 2126 +6096 9285215 680 +6097 9285895 18253 +6098 9304148 7100 +6099 9311248 1838 +6100 9313086 356 +6101 9313442 1280 +6102 9314722 608 +6103 9315330 1166 +6104 9316496 794 +6105 9317290 752 +6106 9318042 422 +6107 9318464 614 +6108 9319078 272 +6109 9319350 656 +6110 9320006 878 +6111 9320884 320 +6112 9321204 2816 +6113 9324020 2768 +6114 9326788 2774 +6115 9329562 2774 +6116 9332336 860 +6117 9333196 860 +6118 9334056 572 +6119 9334628 566 +6120 9335194 482 +6121 9335676 446 +6122 9336122 314 +6123 9336436 296 +6124 9336732 794 +6125 9337526 1028 +6126 9338554 1028 +6127 9339582 830 +6128 9340412 830 +6129 9341242 830 +6130 9342072 872 +6131 9342944 872 +6132 9343816 872 +6133 9344688 872 +6134 9345560 1568 +6135 9347128 1454 +6136 9348582 1568 +6137 9350150 1496 +6138 9351646 1568 +6139 9353214 1454 +6140 9354668 566 +6141 9355234 1310 +6142 9356544 746 +6143 9357290 746 +6144 9358036 1196 +6145 9359232 1148 +6146 9360380 998 +6147 9361378 998 +6148 9362376 998 +6149 9363374 998 +6150 9364372 1016 +6151 9365388 986 +6152 9366374 992 +6153 9367366 986 +6154 9368352 314 +6155 9368666 314 +6156 9368980 2468 +6157 9371448 2468 +6158 9373916 2468 +6159 9376384 2468 +6160 9378852 1178 +6161 9380030 1178 +6162 9381208 1172 +6163 9382380 1172 +6164 9383552 1910 +6165 9385462 1262 +6166 9386724 2084 +6167 9388808 2072 +6168 9390880 2072 +6169 9392952 2084 +6170 9395036 2066 +6171 9397102 2084 +6172 9399186 626 +6173 9399812 350 +6174 9400162 104 +6175 9400266 104 +6176 9400370 1802 +6177 9402172 1796 +6178 9403968 860 +6179 9404828 1508 +6180 9406336 2198 +6181 9408534 602 +6182 9409136 602 +6183 9409738 602 +6184 9410340 602 +6185 9410942 1154 +6186 9412096 1148 +6187 9413244 1130 +6188 9414374 914 +6189 9415288 920 +6190 9416208 716 +6191 9416924 1724 +6192 9418648 1700 +6193 9420348 158 +6194 9420506 158 +6195 9420664 158 +6196 9420822 158 +6197 9420980 158 +6198 9421138 158 +6199 9421296 158 +6200 9421454 158 +6201 9421612 158 +6202 9421770 158 +6203 9421928 158 +6204 9422086 158 +6205 9422244 158 +6206 9422402 158 +6207 9422560 158 +6208 9422718 158 +6209 9422876 158 +6210 9423034 158 +6211 9423192 1778 +6212 9424970 1778 +6213 9426748 2612 +6214 9429360 2618 +6215 9431978 2624 +6216 9434602 1574 +6217 9436176 1376 +6218 9437552 1376 +6219 9438928 2252 +6220 9441180 4741 +6221 9445921 932 +6222 9446853 5053 +6223 9451906 3457 +6224 9455363 2306 +6225 9457669 1460 +6226 9459129 3152 +6227 9462281 565 +6228 9462846 326 +6229 9463172 2330 +6230 9465502 2360 +6231 9467862 3674 +6232 9471536 3674 +6233 9475210 3692 +6234 9478902 3692 +6235 9482594 2066 +6236 9484660 1934 +6237 9486594 2066 +6238 9488660 1934 +6239 9490594 578 +6240 9491172 578 +6241 9491750 578 +6242 9492328 2240 +6243 9494568 2240 +6244 9496808 104 +6245 9496912 2318 +6246 9499230 314 +6247 9499544 302 +6248 9499846 2066 +6249 9501912 2372 +6250 9504284 2372 +6251 9506656 1772 +6252 9508428 1616 +6253 9510044 1622 +6254 9511666 2156 +6255 9513822 2228 +6256 9516050 1268 +6257 9517318 770 +6258 9518088 770 +6259 9518858 860 +6260 9519718 842 +6261 9520560 1028 +6262 9521588 926 +6263 9522514 1718 +6264 9524232 710 +6265 9524942 992 +6266 9525934 986 +6267 9526920 992 +6268 9527912 986 +6269 9528898 2264 +6270 9531162 3812 +6271 9534974 830 +6272 9535804 830 +6273 9536634 830 +6274 9537464 836 +6275 9538300 2024 +6276 9540324 2060 +6277 9542384 662 +6278 9543046 1190 +6279 9544236 1202 +6280 9545438 2702 +6281 9548140 2702 +6282 9550842 2714 +6283 9553556 2708 +6284 9556264 1010 +6285 9557274 1022 +6286 9558296 1010 +6287 9559306 1004 +6288 9560310 1970 +6289 9562280 1970 +6290 9564250 2426 +6291 9566676 716 +6292 9567392 710 +6293 9568102 2036 +6294 9570138 2216 +6295 9572354 2090 +6296 9574444 2126 +6297 9576570 2012 +6298 9578582 1694 +6299 9580276 3950 +6300 9584226 422 +6301 9584648 4766 +6302 9589414 920 +6303 9590334 3013 +6304 9593347 878 +6305 9594225 950 +6306 9595175 734 +6307 9595909 794 +6308 9596703 1460 +6309 9598163 1760 +6310 9599923 632 +6311 9600555 794 +6312 9601349 3026 +6313 9604375 2240 +6314 9606615 2498 +6315 9609113 3482 +6316 9612595 404 +6317 9612999 404 +6318 9613403 410 +6319 9613813 392 +6320 9614205 3650 +6321 9617855 2420 +6322 9620275 2528 +6323 9622803 1082 +6324 9623885 1574 +6325 9625459 1580 +6326 9627039 1574 +6327 9628613 1574 +6328 9630187 1532 +6329 9631719 1580 +6330 9633299 1928 +6331 9635227 1928 +6332 9637155 1928 +6333 9639083 1928 +6334 9641011 1142 +6335 9642153 1142 +6336 9643295 1322 +6337 9644617 1142 +6338 9645759 1142 +6339 9646901 1322 +6340 9648223 1142 +6341 9649365 1142 +6342 9650507 1322 +6343 9651829 1142 +6344 9652971 1142 +6345 9654113 1322 +6346 9655435 1142 +6347 9656577 1142 +6348 9657719 1322 +6349 9659041 1142 +6350 9660183 1142 +6351 9661325 1322 +6352 9662647 1142 +6353 9663789 1142 +6354 9664931 1322 +6355 9666253 1142 +6356 9667395 1142 +6357 9668537 1322 +6358 9669859 1142 +6359 9671001 1142 +6360 9672143 1322 +6361 9673465 1142 +6362 9674607 1142 +6363 9675749 1322 +6364 9677071 1142 +6365 9678213 1142 +6366 9679355 1322 +6367 9680677 1142 +6368 9681819 1142 +6369 9682961 1322 +6370 9684283 1142 +6371 9685425 1142 +6372 9686567 1322 +6373 9687889 1142 +6374 9689031 1142 +6375 9690173 1322 +6376 9691495 1142 +6377 9692637 1142 +6378 9693779 1322 +6379 9695101 1142 +6380 9696243 1142 +6381 9697385 1322 +6382 9698707 1142 +6383 9699849 1142 +6384 9700991 1322 +6385 9702313 1142 +6386 9703455 1142 +6387 9704597 1322 +6388 9705919 1142 +6389 9707061 1142 +6390 9708203 1322 +6391 9709525 1142 +6392 9710667 1142 +6393 9711809 1322 +6394 9713131 1142 +6395 9714273 1142 +6396 9715415 1322 +6397 9716737 1142 +6398 9717879 1142 +6399 9719021 1322 +6400 9720343 1142 +6401 9721485 1142 +6402 9722627 1322 +6403 9723949 1142 +6404 9725091 1142 +6405 9726233 1322 +6406 9727555 1142 +6407 9728697 1142 +6408 9729839 1322 +6409 9731161 1142 +6410 9732303 1142 +6411 9733445 1322 +6412 9734767 1142 +6413 9735909 1142 +6414 9737051 1322 +6415 9738373 1142 +6416 9739515 1142 +6417 9740657 1322 +6418 9741979 1142 +6419 9743121 1142 +6420 9744263 1322 +6421 9745585 1142 +6422 9746727 1142 +6423 9747869 1322 +6424 9749191 1142 +6425 9750333 1142 +6426 9751475 1322 +6427 9752797 1142 +6428 9753939 1142 +6429 9755081 1322 +6430 9756403 1142 +6431 9757545 1142 +6432 9758687 1322 +6433 9760009 1142 +6434 9761151 1142 +6435 9762293 1322 +6436 9763615 1142 +6437 9764757 1142 +6438 9765899 1322 +6439 9767221 1142 +6440 9768363 1142 +6441 9769505 1322 +6442 9770827 1142 +6443 9771969 1142 +6444 9773111 1322 +6445 9774433 1142 +6446 9775575 1142 +6447 9776717 1322 +6448 9778039 1142 +6449 9779181 1142 +6450 9780323 1322 +6451 9781645 1142 +6452 9782787 1142 +6453 9783929 1322 +6454 9785251 1142 +6455 9786393 1142 +6456 9787535 1322 +6457 9788857 1142 +6458 9789999 1142 +6459 9791141 1322 +6460 9792463 1142 +6461 9793605 1142 +6462 9794747 1322 +6463 9796069 1142 +6464 9797211 1142 +6465 9798353 1322 +6466 9799675 1142 +6467 9800817 1142 +6468 9801959 1322 +6469 9803281 1142 +6470 9804423 1142 +6471 9805565 1322 +6472 9806887 1142 +6473 9808029 1142 +6474 9809171 1322 +6475 9810493 1142 +6476 9811635 1142 +6477 9812777 1322 +6478 9814099 1142 +6479 9815241 1142 +6480 9816383 1322 +6481 9817705 1142 +6482 9818847 1142 +6483 9819989 1322 +6484 9821311 1142 +6485 9822453 1142 +6486 9823595 1322 +6487 9824917 1142 +6488 9826059 1142 +6489 9827201 1322 +6490 9828523 1142 +6491 9829665 1142 +6492 9830807 1322 +6493 9832129 1142 +6494 9833271 1142 +6495 9834413 1322 +6496 9835735 1142 +6497 9836877 1142 +6498 9838019 1322 +6499 9839341 1142 +6500 9840483 1142 +6501 9841625 1322 +6502 9842947 1142 +6503 9844089 1142 +6504 9845231 1322 +6505 9846553 1142 +6506 9847695 1142 +6507 9848837 1322 +6508 9850159 1142 +6509 9851301 1142 +6510 9852443 1322 +6511 9853765 1142 +6512 9854907 1142 +6513 9856049 1322 +6514 9857371 1214 +6515 9858585 1220 +6516 9859805 1220 +6517 9861025 908 +6518 9861933 884 +6519 9862817 1448 +6520 9864265 1448 +6521 9865713 1004 +6522 9866717 1004 +6523 9867721 2306 +6524 9870027 734 +6525 9870761 722 +6526 9871483 734 +6527 9872217 722 +6528 9872939 1952 +6529 9874891 1952 +6530 9876843 1244 +6531 9878087 944 +6532 9879031 944 +6533 9879975 944 +6534 9880919 2054 +6535 9882973 2042 +6536 9885015 632 +6537 9885647 2660 +6538 9888307 2654 +6539 9890961 2654 +6540 9893615 2654 +6541 9896269 2132 +6542 9898401 2132 +6543 9900533 2306 +6544 9902839 2306 +6545 9905145 2306 +6546 9907451 974 +6547 9908425 974 +6548 9909399 974 +6549 9910373 3109 +6550 9913482 464 +6551 9913946 1244 +6552 9915190 1304 +6553 9916494 1556 +6554 9918050 1376 +6555 9919426 1112 +6556 9920538 1130 +6557 9921668 1112 +6558 9922780 860 +6559 9923640 908 +6560 9924548 530 +6561 9925078 782 +6562 9925860 872 +6563 9926732 812 +6564 9927544 494 +6565 9928038 368 +6566 9928406 416 +6567 9928822 416 +6568 9929238 9488 +6569 9938726 9488 +6570 9948214 9488 +6571 9957702 9488 +6572 9967190 9488 +6573 9976678 9488 +6574 9986166 2516 +6575 9988682 2516 +6576 9991198 2516 +6577 9993714 2516 +6578 9996230 2516 +6579 9998746 2516 +6580 10001262 8780 +6581 10010042 8780 +6582 10018822 8780 +6583 10027602 8780 +6584 10036382 8780 +6585 10045162 8780 +6586 10053942 6200 +6587 10060142 230 +6588 10060372 230 +6589 10060602 2672 +6590 10063274 2720 +6591 10065994 2246 +6592 10068240 494 +6593 10068734 728 +6594 10069462 728 +6595 10070190 1196 +6596 10071386 1202 +6597 10072588 1256 +6598 10073844 1238 +6599 10075082 788 +6600 10075870 776 +6601 10076646 1460 +6602 10078106 1460 +6603 10079566 1598 +6604 10081164 1670 +6605 10082834 746 +6606 10083580 1166 +6607 10084746 1136 +6608 10085882 2876 +6609 10088758 4346 +6610 10093104 4346 +6611 10097450 914 +6612 10098364 914 +6613 10099278 878 +6614 10100156 908 +6615 10101064 278 +6616 10101342 518 +6617 10101860 488 +6618 10102348 542 +6619 10102890 482 +6620 10103372 1130 +6621 10104502 1130 +6622 10105632 182 +6623 10105814 188 +6624 10106002 182 +6625 10106184 380 +6626 10106564 2066 +6627 10108630 932 +6628 10109562 926 +6629 10110488 326 +6630 10110814 308 +6631 10111122 326 +6632 10111448 290 +6633 10111738 800 +6634 10112538 794 +6635 10113332 800 +6636 10114132 794 +6637 10114926 410 +6638 10115336 410 +6639 10115746 626 +6640 10116372 1496 +6641 10117868 1496 +6642 10119364 3824 +6643 10123188 584 +6644 10123772 4394 +6645 10128166 4394 +6646 10132560 2114 +6647 10134674 1022 +6648 10135696 1988 +6649 10137684 326 +6650 10138010 6349 +6651 10144359 7753 +6652 10152112 7633 +6653 10159745 590 +6654 10160335 548 +6655 10160883 1244 +6656 10162127 1364 +6657 10163491 1304 +6658 10164795 1556 +6659 10166351 1376 +6660 10167727 1130 +6661 10168857 1112 +6662 10169969 860 +6663 10170829 908 +6664 10171737 770 +6665 10172507 530 +6666 10173037 782 +6667 10173819 872 +6668 10174691 812 +6669 10175503 590 +6670 10176093 494 +6671 10176587 368 +6672 10176955 710 +6673 10177665 1340 +6674 10179005 1244 +6675 10180249 560 +6676 10180809 734 +6677 10181543 854 +6678 10182397 734 +6679 10183131 878 +6680 10184009 866 +6681 10184875 608 +6682 10185483 500 +6683 10185983 326 +6684 10186309 446 +6685 10186755 1880 +6686 10188635 386 +6687 10189021 728 +6688 10189749 482 +6689 10190231 6985 +6690 10197216 464 +6691 10197680 116 +6692 10197796 3109 +6693 10200905 1112 +6694 10202017 4106 +6695 10206123 4106 +6696 10210229 4106 +6697 10214335 4106 +6698 10218441 4106 +6699 10222547 4106 +6700 10226653 4988 +6701 10231641 5168 +6702 10236809 5156 +6703 10241965 128 +6704 10242093 74 +6705 10242167 830 +6706 10242997 2906 +6707 10245903 830 +6708 10246733 2906 +6709 10249639 1442 +6710 10251081 1442 +6711 10252523 1370 +6712 10253893 1370 +6713 10255263 1412 +6714 10256675 1412 +6715 10258087 680 +6716 10258767 698 +6717 10259465 674 +6718 10260139 680 +6719 10260819 3158 +6720 10263977 1472 +6721 10265449 44 +6722 10265493 158 +6723 10265651 158 +6724 10265809 158 +6725 10265967 158 +6726 10266125 158 +6727 10266283 158 +6728 10266441 158 +6729 10266599 158 +6730 10266757 1316 +6731 10268073 1316 +6732 10269389 2144 +6733 10271533 38 +6734 10271571 1268 +6735 10272839 422 +6736 10273261 422 +6737 10273683 422 +6738 10274105 422 +6739 10274527 422 +6740 10274949 422 +6741 10275371 422 +6742 10275793 422 +6743 10276215 422 +6744 10276637 422 +6745 10277059 422 +6746 10277481 422 +6747 10277903 422 +6748 10278325 3944 +6749 10282269 3944 +6750 10286213 872 +6751 10287085 3140 +6752 10290225 608 +6753 10290833 2060 +6754 10292893 2090 +6755 10294983 872 +6756 10295855 872 +6757 10296727 392 +6758 10297119 392 +6759 10297511 392 +6760 10297903 392 +6761 10298295 392 +6762 10298687 392 +6763 10299079 392 +6764 10299471 392 +6765 10299863 392 +6766 10300255 392 +6767 10300647 392 +6768 10301039 392 +6769 10301431 392 +6770 10301823 392 +6771 10302215 392 +6772 10302607 392 +6773 10302999 392 +6774 10303391 392 +6775 10303783 392 +6776 10304175 392 +6777 10304567 392 +6778 10304959 392 +6779 10305351 392 +6780 10305743 392 +6781 10306135 392 +6782 10306527 392 +6783 10306919 392 +6784 10307311 392 +6785 10307703 392 +6786 10308095 392 +6787 10308487 392 +6788 10308879 392 +6789 10309271 392 +6790 10309663 392 +6791 10310055 392 +6792 10310447 392 +6793 10310839 356 +6794 10311195 68 +6795 10311263 3848 +6796 10315111 2234 +6797 10317345 2240 +6798 10319585 1718 +6799 10321303 2684 +6800 10323987 386 +6801 10324373 404 +6802 10324777 452 +6803 10325229 392 +6804 10325621 1676 +6805 10327297 1652 +6806 10328949 1652 +6807 10330601 1706 +6808 10332307 2234 +6809 10334541 1706 +6810 10336247 2234 +6811 10338481 1832 +6812 10340313 2360 +6813 10342673 596 +6814 10343269 224 +6815 10343493 1334 +6816 10344827 1364 +6817 10346191 6578 +6818 10352769 7178 +6819 10359947 470 +6820 10360417 1820 +6821 10362237 962 +6822 10363199 80 +6823 10363279 854 +6824 10364133 1082 +6825 10365215 584 +6826 10365799 2186 +6827 10367985 2174 +6828 10370159 2186 +6829 10372345 2174 +6830 10374519 2168 +6831 10376687 2162 +6832 10378849 2168 +6833 10381017 2162 +6834 10383179 836 +6835 10384015 2714 +6836 10386729 2702 +6837 10389431 1976 +6838 10391407 1964 +6839 10393371 1976 +6840 10395347 812 +6841 10396159 824 +6842 10396983 1130 +6843 10398113 1136 +6844 10399249 1898 +6845 10401147 1892 +6846 10403039 1202 +6847 10404241 2150 +6848 10406391 2144 +6849 10408535 2138 +6850 10410673 2180 +6851 10412853 2186 +6852 10415039 2180 +6853 10417219 1322 +6854 10418541 2972 +6855 10421513 944 +6856 10422457 932 +6857 10423389 2762 +6858 10426151 230 +6859 10426381 2084 +6860 10428465 1886 +6861 10430351 2054 +6862 10432405 4256 +6863 10436661 1316 +6864 10437977 1238 +6865 10439215 1118 +6866 10440333 956 +6867 10441289 902 +6868 10442191 794 +6869 10442985 656 +6870 10443641 824 +6871 10444465 656 +6872 10445121 302 +6873 10445423 518 +6874 10445941 536 +6875 10446477 512 +6876 10446989 476 +6877 10447465 506 +6878 10447971 578 +6879 10448549 392 +6880 10448941 614 +6881 10449555 578 +6882 10450133 1994 +6883 10452127 656 +6884 10452783 602 +6885 10453385 602 +6886 10453987 608 +6887 10454595 608 +6888 10455203 608 +6889 10455811 608 +6890 10456419 608 +6891 10457027 608 +6892 10457635 908 +6893 10458543 908 +6894 10459451 548 +6895 10459999 1196 +6896 10461195 716 +6897 10461911 716 +6898 10462627 2348 +6899 10464975 2078 +6900 10467053 2096 +6901 10469149 2060 +6902 10471209 6932 +6903 10478141 6896 +6904 10485037 1448 +6905 10486485 518 +6906 10487003 626 +6907 10487629 518 +6908 10488147 614 +6909 10488761 518 +6910 10489279 626 +6911 10489905 518 +6912 10490423 614 +6913 10491037 1430 +6914 10492467 1520 +6915 10493987 2414 +6916 10496401 1166 +6917 10497567 554 +6918 10498121 554 +6919 10498675 956 +6920 10499631 932 +6921 10500563 4520 +6922 10505083 6265 +6923 10511348 2720 +6924 10514068 794 +6925 10514862 1820 +6926 10516682 398 +6927 10517080 2306 +6928 10519386 7381 +6929 10526767 18097 +6930 10544864 7088 +6931 10551952 1604 +6932 10553556 1010 +6933 10554566 1292 +6934 10555858 716 +6935 10556574 1034 +6936 10557608 848 +6937 10558456 704 +6938 10559160 422 +6939 10559582 698 +6940 10560280 278 +6941 10560558 1868 +6942 10562426 1094 +6943 10563520 2653 +6944 10566173 1616 +6945 10567789 650 +6946 10568439 632 +6947 10569071 3649 +6948 10572720 1274 +6949 10573994 1076 +6950 10575070 2077 +6951 10577147 674 +6952 10577821 6013 +6953 10583834 1544 +6954 10585378 1244 +6955 10586622 620 +6956 10587242 1034 +6957 10588276 1094 +6958 10589370 620 +6959 10589990 950 +6960 10590940 3218 +6961 10594158 788 +6962 10594946 824 +6963 10595770 668 +6964 10596438 1358 +6965 10597796 1088 +6966 10598884 2149 +6967 10601033 1088 +6968 10602121 2149 +6969 10604270 974 +6970 10605244 908 +6971 10606152 2912 +6972 10609064 464 +6973 10609528 968 +6974 10610496 698 +6975 10611194 878 +6976 10612072 1358 +6977 10613430 1376 +6978 10614806 1346 +6979 10616152 1346 +6980 10617498 1556 +6981 10619054 1520 +6982 10620574 1400 +6983 10621974 1556 +6984 10623530 152 +6985 10623682 1520 +6986 10625202 1400 +6987 10626602 1556 +6988 10628158 152 +6989 10628310 1520 +6990 10629830 1400 +6991 10631230 1556 +6992 10632786 152 +6993 10632938 1520 +6994 10634458 1400 +6995 10635858 1556 +6996 10637414 152 +6997 10637566 1520 +6998 10639086 1400 +6999 10640486 1556 +7000 10642042 152 +7001 10642194 1520 +7002 10643714 1400 +7003 10645114 1556 +7004 10646670 152 +7005 10646822 1520 +7006 10648342 1400 +7007 10649742 1556 +7008 10651298 152 +7009 10651450 1520 +7010 10652970 1400 +7011 10654370 1556 +7012 10655926 152 +7013 10656078 1520 +7014 10657598 1400 +7015 10658998 1556 +7016 10660554 152 +7017 10660706 1520 +7018 10662226 1400 +7019 10663626 1556 +7020 10665182 152 +7021 10665334 1520 +7022 10666854 1400 +7023 10668254 1556 +7024 10669810 152 +7025 10669962 1520 +7026 10671482 1400 +7027 10672882 1556 +7028 10674438 152 +7029 10674590 1520 +7030 10676110 1400 +7031 10677510 1556 +7032 10679066 152 +7033 10679218 1520 +7034 10680738 1400 +7035 10682138 1556 +7036 10683694 152 +7037 10683846 1520 +7038 10685366 1400 +7039 10686766 1556 +7040 10688322 152 +7041 10688474 1520 +7042 10689994 1400 +7043 10691394 1556 +7044 10692950 152 +7045 10693102 1520 +7046 10694622 1400 +7047 10696022 1556 +7048 10697578 152 +7049 10697730 1520 +7050 10699250 1400 +7051 10700650 1556 +7052 10702206 152 +7053 10702358 1520 +7054 10703878 1400 +7055 10705278 1556 +7056 10706834 152 +7057 10706986 1520 +7058 10708506 1400 +7059 10709906 1556 +7060 10711462 152 +7061 10711614 1520 +7062 10713134 1400 +7063 10714534 1556 +7064 10716090 152 +7065 10716242 1520 +7066 10717762 1400 +7067 10719162 1556 +7068 10720718 152 +7069 10720870 1520 +7070 10722390 1400 +7071 10723790 1556 +7072 10725346 152 +7073 10725498 1520 +7074 10727018 1400 +7075 10728418 1556 +7076 10729974 152 +7077 10730126 1520 +7078 10731646 1400 +7079 10733046 1556 +7080 10734602 152 +7081 10734754 1520 +7082 10736274 1400 +7083 10737674 1556 +7084 10739230 152 +7085 10739382 1520 +7086 10740902 1400 +7087 10742302 1556 +7088 10743858 152 +7089 10744010 1520 +7090 10745530 1400 +7091 10746930 1556 +7092 10748486 152 +7093 10748638 1520 +7094 10750158 1400 +7095 10751558 1556 +7096 10753114 152 +7097 10753266 1520 +7098 10754786 1400 +7099 10756186 1556 +7100 10757742 152 +7101 10757894 1520 +7102 10759414 1400 +7103 10760814 1556 +7104 10762370 152 +7105 10762522 1520 +7106 10764042 1400 +7107 10765442 1556 +7108 10766998 152 +7109 10767150 1520 +7110 10768670 1400 +7111 10770070 1556 +7112 10771626 152 +7113 10771778 1520 +7114 10773298 1400 +7115 10774698 1556 +7116 10776254 152 +7117 10776406 1520 +7118 10777926 1400 +7119 10779326 1556 +7120 10780882 152 +7121 10781034 1520 +7122 10782554 1400 +7123 10783954 1556 +7124 10785510 152 +7125 10785662 1520 +7126 10787182 1400 +7127 10788582 1556 +7128 10790138 152 +7129 10790290 1520 +7130 10791810 1400 +7131 10793210 1556 +7132 10794766 152 +7133 10794918 1520 +7134 10796438 1400 +7135 10797838 1556 +7136 10799394 152 +7137 10799546 1520 +7138 10801066 1400 +7139 10802466 1556 +7140 10804022 152 +7141 10804174 1520 +7142 10805694 1400 +7143 10807094 1556 +7144 10808650 152 +7145 10808802 1520 +7146 10810322 1400 +7147 10811722 1556 +7148 10813278 152 +7149 10813430 1520 +7150 10814950 1400 +7151 10816350 1556 +7152 10817906 152 +7153 10818058 1520 +7154 10819578 1400 +7155 10820978 1556 +7156 10822534 152 +7157 10822686 1520 +7158 10824206 1400 +7159 10825606 1556 +7160 10827162 152 +7161 10827314 1520 +7162 10828834 1400 +7163 10830234 1556 +7164 10831790 152 +7165 10831942 1520 +7166 10833462 1400 +7167 10834862 1556 +7168 10836418 152 +7169 10836570 1520 +7170 10838090 1400 +7171 10839490 1556 +7172 10841046 152 +7173 10841198 1520 +7174 10842718 1400 +7175 10844118 1556 +7176 10845674 152 +7177 10845826 1520 +7178 10847346 1400 +7179 10848746 1556 +7180 10850302 152 +7181 10850454 1520 +7182 10851974 1400 +7183 10853374 1556 +7184 10854930 152 +7185 10855082 1520 +7186 10856602 1400 +7187 10858002 1556 +7188 10859558 152 +7189 10859710 1520 +7190 10861230 1400 +7191 10862630 1556 +7192 10864186 152 +7193 10864338 1520 +7194 10865858 1400 +7195 10867258 1556 +7196 10868814 152 +7197 10868966 1520 +7198 10870486 1400 +7199 10871886 1556 +7200 10873442 152 +7201 10873594 1520 +7202 10875114 1400 +7203 10876514 1556 +7204 10878070 152 +7205 10878222 1520 +7206 10879742 1400 +7207 10881142 1556 +7208 10882698 152 +7209 10882850 1520 +7210 10884370 1400 +7211 10885770 1556 +7212 10887326 152 +7213 10887478 1520 +7214 10888998 1400 +7215 10890398 1556 +7216 10891954 152 +7217 10892106 1520 +7218 10893626 1400 +7219 10895026 1556 +7220 10896582 152 +7221 10896734 1520 +7222 10898254 1400 +7223 10899654 1556 +7224 10901210 152 +7225 10901362 1520 +7226 10902882 1400 +7227 10904282 1556 +7228 10905838 152 +7229 10905990 1520 +7230 10907510 1400 +7231 10908910 1556 +7232 10910466 152 +7233 10910618 1520 +7234 10912138 1400 +7235 10913538 1556 +7236 10915094 152 +7237 10915246 1520 +7238 10916766 1400 +7239 10918166 1556 +7240 10919722 152 +7241 10919874 1520 +7242 10921394 1400 +7243 10922794 1556 +7244 10924350 152 +7245 10924502 1520 +7246 10926022 1400 +7247 10927422 1556 +7248 10928978 152 +7249 10929130 1520 +7250 10930650 1400 +7251 10932050 1556 +7252 10933606 152 +7253 10933758 1520 +7254 10935278 1400 +7255 10936678 1556 +7256 10938234 152 +7257 10938386 1520 +7258 10939906 1400 +7259 10941306 1556 +7260 10942862 152 +7261 10943014 1520 +7262 10944534 1400 +7263 10945934 1556 +7264 10947490 152 +7265 10947642 1520 +7266 10949162 1400 +7267 10950562 1556 +7268 10952118 152 +7269 10952270 1520 +7270 10953790 1400 +7271 10955190 1556 +7272 10956746 152 +7273 10956898 1520 +7274 10958418 1400 +7275 10959818 1556 +7276 10961374 152 +7277 10961526 1520 +7278 10963046 1400 +7279 10964446 1556 +7280 10966002 152 +7281 10966154 1520 +7282 10967674 1400 +7283 10969074 1556 +7284 10970630 152 +7285 10970782 1520 +7286 10972302 1400 +7287 10973702 1556 +7288 10975258 152 +7289 10975410 1520 +7290 10976930 1400 +7291 10978330 1556 +7292 10979886 152 +7293 10980038 1520 +7294 10981558 1400 +7295 10982958 1556 +7296 10984514 152 +7297 10984666 1520 +7298 10986186 1400 +7299 10987586 1556 +7300 10989142 152 +7301 10989294 1520 +7302 10990814 1400 +7303 10992214 1556 +7304 10993770 152 +7305 10993922 1520 +7306 10995442 1400 +7307 10996842 1556 +7308 10998398 152 +7309 10998550 1520 +7310 11000070 1400 +7311 11001470 1556 +7312 11003026 152 +7313 11003178 1520 +7314 11004698 1400 +7315 11006098 1556 +7316 11007654 152 +7317 11007806 1520 +7318 11009326 1400 +7319 11010726 1556 +7320 11012282 152 +7321 11012434 1520 +7322 11013954 1400 +7323 11015354 1556 +7324 11016910 152 +7325 11017062 1520 +7326 11018582 1400 +7327 11019982 1556 +7328 11021538 152 +7329 11021690 1520 +7330 11023210 1400 +7331 11024610 1556 +7332 11026166 152 +7333 11026318 1520 +7334 11027838 1400 +7335 11029238 1556 +7336 11030794 152 +7337 11030946 1520 +7338 11032466 1400 +7339 11033866 1556 +7340 11035422 152 +7341 11035574 1520 +7342 11037094 1400 +7343 11038494 1556 +7344 11040050 152 +7345 11040202 1520 +7346 11041722 1400 +7347 11043122 1556 +7348 11044678 152 +7349 11044830 1520 +7350 11046350 1400 +7351 11047750 1556 +7352 11049306 152 +7353 11049458 1520 +7354 11050978 1400 +7355 11052378 1556 +7356 11053934 152 +7357 11054086 1520 +7358 11055606 1400 +7359 11057006 1556 +7360 11058562 152 +7361 11058714 1520 +7362 11060234 1400 +7363 11061634 1556 +7364 11063190 152 +7365 11063342 1520 +7366 11064862 1400 +7367 11066262 1556 +7368 11067818 152 +7369 11067970 1520 +7370 11069490 1400 +7371 11070890 1556 +7372 11072446 152 +7373 11072598 1520 +7374 11074118 1400 +7375 11075518 1556 +7376 11077074 152 +7377 11077226 1520 +7378 11078746 1400 +7379 11080146 1556 +7380 11081702 152 +7381 11081854 1520 +7382 11083374 1400 +7383 11084774 1556 +7384 11086330 152 +7385 11086482 1520 +7386 11088002 1400 +7387 11089402 1556 +7388 11090958 152 +7389 11091110 1520 +7390 11092630 1400 +7391 11094030 1556 +7392 11095586 152 +7393 11095738 1520 +7394 11097258 1400 +7395 11098658 1556 +7396 11100214 152 +7397 11100366 1520 +7398 11101886 1400 +7399 11103286 1556 +7400 11104842 152 +7401 11104994 1520 +7402 11106514 1400 +7403 11107914 1556 +7404 11109470 152 +7405 11109622 1520 +7406 11111142 1400 +7407 11112542 1556 +7408 11114098 152 +7409 11114250 1520 +7410 11115770 1400 +7411 11117170 1556 +7412 11118726 152 +7413 11118878 1520 +7414 11120398 1400 +7415 11121798 1556 +7416 11123354 152 +7417 11123506 1520 +7418 11125026 1400 +7419 11126426 1556 +7420 11127982 152 +7421 11128134 1520 +7422 11129654 1400 +7423 11131054 1556 +7424 11132610 152 +7425 11132762 1520 +7426 11134282 1400 +7427 11135682 1556 +7428 11137238 152 +7429 11137390 1520 +7430 11138910 1400 +7431 11140310 1556 +7432 11141866 152 +7433 11142018 1520 +7434 11143538 1400 +7435 11144938 1556 +7436 11146494 152 +7437 11146646 1520 +7438 11148166 1400 +7439 11149566 1556 +7440 11151122 152 +7441 11151274 1520 +7442 11152794 1400 +7443 11154194 1556 +7444 11155750 152 +7445 11155902 1520 +7446 11157422 1400 +7447 11158822 1556 +7448 11160378 152 +7449 11160530 1520 +7450 11162050 1400 +7451 11163450 1556 +7452 11165006 152 +7453 11165158 1520 +7454 11166678 1400 +7455 11168078 1556 +7456 11169634 152 +7457 11169786 1520 +7458 11171306 1400 +7459 11172706 1556 +7460 11174262 152 +7461 11174414 1094 +7462 11175508 1088 +7463 11176596 1100 +7464 11177696 1100 +7465 11178796 1040 +7466 11179836 1040 +7467 11180876 1064 +7468 11181940 1052 +7469 11182992 896 +7470 11183888 866 +7471 11184754 1076 +7472 11185830 32 +7473 11185862 872 +7474 11186734 368 +7475 11187102 1604 +7476 11188706 434 +7477 11189140 2876 +7478 11192016 2882 +7479 11194898 794 +7480 11195692 776 +7481 11196468 1784 +7482 11198252 1778 +7483 11200030 1124 +7484 11201154 1250 +7485 11202404 1238 +7486 11203642 806 +7487 11204448 866 +7488 11205314 2132 +7489 11207446 2132 +7490 11209578 176 +7491 11209754 164 +7492 11209918 182 +7493 11210100 440 +7494 11210540 1190 +7495 11211730 1154 +7496 11212884 3722 +7497 11216606 1238 +7498 11217844 1604 +7499 11219448 1448 +7500 11220896 1448 +7501 11222344 1448 +7502 11223792 1448 +7503 11225240 1448 +7504 11226688 1448 +7505 11228136 104 +7506 11228240 104 +7507 11228344 104 +7508 11228448 1766 +7509 11230214 458 +7510 11230672 1712 +7511 11232384 464 +7512 11232848 1160 +7513 11234008 2084 +7514 11236092 2084 +7515 11238176 1148 +7516 11239324 1022 +7517 11240346 974 +7518 11241320 962 +7519 11242282 1886 +7520 11244168 1886 +7521 11246054 1886 +7522 11247940 1886 +7523 11249826 1886 +7524 11251712 1886 +7525 11253598 1640 +7526 11255238 1136 +7527 11256374 1724 +7528 11258098 62 +7529 11258160 806 +7530 11258966 806 +7531 11259772 182 +7532 11259954 182 +7533 11260136 752 +7534 11260888 758 +7535 11261646 3722 +7536 11265368 1298 +7537 11266666 764 +7538 11267430 770 +7539 11268200 1724 +7540 11269924 1718 +7541 11271642 1712 +7542 11273354 56 +7543 11273410 794 +7544 11274204 590 +7545 11274794 56 +7546 11274850 794 +7547 11275644 590 +7548 11276234 1388 +7549 11277622 1268 +7550 11278890 1262 +7551 11280152 2384 +7552 11282536 2474 +7553 11285010 1004 +7554 11286014 890 +7555 11286904 1298 +7556 11288202 1004 +7557 11289206 890 +7558 11290096 1298 +7559 11291394 1004 +7560 11292398 890 +7561 11293288 1298 +7562 11294586 1004 +7563 11295590 890 +7564 11296480 1298 +7565 11297778 1004 +7566 11298782 890 +7567 11299672 1298 +7568 11300970 1004 +7569 11301974 890 +7570 11302864 1298 +7571 11304162 1004 +7572 11305166 890 +7573 11306056 1298 +7574 11307354 1004 +7575 11308358 890 +7576 11309248 1298 +7577 11310546 1004 +7578 11311550 890 +7579 11312440 1298 +7580 11313738 1004 +7581 11314742 890 +7582 11315632 1298 +7583 11316930 1004 +7584 11317934 890 +7585 11318824 1298 +7586 11320122 1004 +7587 11321126 890 +7588 11322016 1298 +7589 11323314 1004 +7590 11324318 890 +7591 11325208 1298 +7592 11326506 1004 +7593 11327510 890 +7594 11328400 1298 +7595 11329698 1004 +7596 11330702 890 +7597 11331592 1298 +7598 11332890 1004 +7599 11333894 890 +7600 11334784 1298 +7601 11336082 1004 +7602 11337086 890 +7603 11337976 1298 +7604 11339274 1004 +7605 11340278 890 +7606 11341168 1298 +7607 11342466 1004 +7608 11343470 890 +7609 11344360 1298 +7610 11345658 1004 +7611 11346662 890 +7612 11347552 1298 +7613 11348850 1004 +7614 11349854 890 +7615 11350744 1298 +7616 11352042 1004 +7617 11353046 890 +7618 11353936 1298 +7619 11355234 1004 +7620 11356238 890 +7621 11357128 1298 +7622 11358426 1004 +7623 11359430 890 +7624 11360320 1298 +7625 11361618 1004 +7626 11362622 890 +7627 11363512 1298 +7628 11364810 1004 +7629 11365814 890 +7630 11366704 1298 +7631 11368002 1004 +7632 11369006 890 +7633 11369896 1298 +7634 11371194 1004 +7635 11372198 890 +7636 11373088 1298 +7637 11374386 1004 +7638 11375390 890 +7639 11376280 1298 +7640 11377578 1004 +7641 11378582 890 +7642 11379472 1298 +7643 11380770 1004 +7644 11381774 890 +7645 11382664 1298 +7646 11383962 1004 +7647 11384966 890 +7648 11385856 1298 +7649 11387154 1004 +7650 11388158 890 +7651 11389048 1298 +7652 11390346 1004 +7653 11391350 890 +7654 11392240 1298 +7655 11393538 1004 +7656 11394542 890 +7657 11395432 1298 +7658 11396730 1004 +7659 11397734 890 +7660 11398624 1298 +7661 11399922 1004 +7662 11400926 890 +7663 11401816 1298 +7664 11403114 1004 +7665 11404118 890 +7666 11405008 1298 +7667 11406306 1004 +7668 11407310 890 +7669 11408200 1298 +7670 11409498 1004 +7671 11410502 890 +7672 11411392 1298 +7673 11412690 1004 +7674 11413694 890 +7675 11414584 1298 +7676 11415882 1004 +7677 11416886 890 +7678 11417776 1298 +7679 11419074 1004 +7680 11420078 890 +7681 11420968 1298 +7682 11422266 1004 +7683 11423270 890 +7684 11424160 1298 +7685 11425458 1004 +7686 11426462 890 +7687 11427352 1298 +7688 11428650 1004 +7689 11429654 890 +7690 11430544 1298 +7691 11431842 1004 +7692 11432846 890 +7693 11433736 1298 +7694 11435034 1004 +7695 11436038 890 +7696 11436928 1298 +7697 11438226 1004 +7698 11439230 890 +7699 11440120 1298 +7700 11441418 1004 +7701 11442422 890 +7702 11443312 1298 +7703 11444610 1004 +7704 11445614 890 +7705 11446504 1298 +7706 11447802 1004 +7707 11448806 890 +7708 11449696 1298 +7709 11450994 1004 +7710 11451998 890 +7711 11452888 1298 +7712 11454186 1004 +7713 11455190 890 +7714 11456080 1298 +7715 11457378 1004 +7716 11458382 890 +7717 11459272 1298 +7718 11460570 1004 +7719 11461574 890 +7720 11462464 1298 +7721 11463762 1004 +7722 11464766 890 +7723 11465656 1298 +7724 11466954 1004 +7725 11467958 890 +7726 11468848 1298 +7727 11470146 1004 +7728 11471150 890 +7729 11472040 1298 +7730 11473338 1004 +7731 11474342 890 +7732 11475232 1298 +7733 11476530 530 +7734 11477060 464 +7735 11477524 1088 +7736 11478612 1100 +7737 11479712 1088 +7738 11480800 1106 +7739 11481906 410 +7740 11482316 416 +7741 11482732 1238 +7742 11483970 1232 +7743 11485202 344 +7744 11485546 290 +7745 11485836 1760 +7746 11487596 1760 +7747 11489356 620 +7748 11489976 62 +7749 11490038 1346 +7750 11491384 1346 +7751 11492730 374 +7752 11493104 374 +7753 11493478 374 +7754 11493852 374 +7755 11494226 374 +7756 11494600 374 +7757 11494974 374 +7758 11495348 374 +7759 11495722 374 +7760 11496096 374 +7761 11496470 374 +7762 11496844 374 +7763 11497218 2618 +7764 11499836 2618 +7765 11502454 746 +7766 11503200 506 +7767 11503706 932 +7768 11504638 1688 +7769 11506326 956 +7770 11507282 1004 +7771 11508286 272 +7772 11508558 278 +7773 11508836 272 +7774 11509108 278 +7775 11509386 272 +7776 11509658 278 +7777 11509936 4292 +7778 11514228 4292 +7779 11518520 1904 +7780 11520424 836 +7781 11521260 830 +7782 11522090 44 +7783 11522134 1088 +7784 11523222 1088 +7785 11524310 1616 +7786 11525926 1616 +7787 11527542 2468 +7788 11530010 710 +7789 11530720 704 +7790 11531424 1970 +7791 11533394 1328 +7792 11534722 1322 +7793 11536044 1328 +7794 11537372 1316 +7795 11538688 1184 +7796 11539872 1190 +7797 11541062 1184 +7798 11542246 1184 +7799 11543430 1190 +7800 11544620 1184 +7801 11545804 3806 +7802 11549610 392 +7803 11550002 392 +7804 11550394 392 +7805 11550786 392 +7806 11551178 392 +7807 11551570 392 +7808 11551962 392 +7809 11552354 392 +7810 11552746 392 +7811 11553138 392 +7812 11553530 392 +7813 11553922 392 +7814 11554314 2618 +7815 11556932 2618 +7816 11559550 386 +7817 11559936 1232 +7818 11561168 734 +7819 11561902 686 +7820 11562588 1538 +7821 11564126 884 +7822 11565010 884 +7823 11565894 1580 +7824 11567474 1580 +7825 11569054 1250 +7826 11570304 980 +7827 11571284 3272 +7828 11574556 386 +7829 11574942 4526 +7830 11579468 1477 +7831 11580945 1477 +7832 11582422 1477 +7833 11583899 6380 +7834 11590279 6368 +7835 11596647 6374 +7836 11603021 6362 +7837 11609383 1526 +7838 11610909 1526 +7839 11612435 998 +7840 11613433 1742 +7841 11615175 698 +7842 11615873 698 +7843 11616571 5456 +7844 11622027 5348 +7845 11627375 5456 +7846 11632831 5348 +7847 11638179 2060 +7848 11640239 2060 +7849 11642299 2060 +7850 11644359 2060 +7851 11646419 2060 +7852 11648479 2060 +7853 11650539 1988 +7854 11652527 530 +7855 11653057 782 +7856 11653839 782 +7857 11654621 782 +7858 11655403 782 +7859 11656185 782 +7860 11656967 782 +7861 11657749 782 +7862 11658531 1910 +7863 11660441 518 +7864 11660959 518 +7865 11661477 1580 +7866 11663057 1580 +7867 11664637 728 +7868 11665365 596 +7869 11665961 584 +7870 11666545 2072 +7871 11668617 2084 +7872 11670701 2084 +7873 11672785 2096 +7874 11674881 1838 +7875 11676719 2930 +7876 11679649 356 +7877 11680005 1082 +7878 11681087 194 +7879 11681281 200 +7880 11681481 212 +7881 11681693 206 +7882 11681899 1472 +7883 11683371 1472 +7884 11684843 1460 +7885 11686303 1472 +7886 11687775 1478 +7887 11689253 2984 +7888 11692237 3014 +7889 11695251 3056 +7890 11698307 3032 +7891 11701339 3014 +7892 11704353 1064 +7893 11705417 1070 +7894 11706487 1142 +7895 11707629 1136 +7896 11708765 1148 +7897 11709913 1142 +7898 11711055 1064 +7899 11712119 1070 +7900 11713189 1142 +7901 11714331 1136 +7902 11715467 1148 +7903 11716615 1142 +7904 11717757 1064 +7905 11718821 1070 +7906 11719891 1142 +7907 11721033 1136 +7908 11722169 1148 +7909 11723317 1142 +7910 11724459 3512 +7911 11727971 1292 +7912 11729263 2696 +7913 11731959 1760 +7914 11733719 1058 +7915 11734777 1358 +7916 11736135 1358 +7917 11737493 1358 +7918 11738851 1358 +7919 11740209 1358 +7920 11741567 1358 +7921 11742925 1274 +7922 11744199 584 +7923 11744783 686 +7924 11745469 686 +7925 11746155 734 +7926 11746889 584 +7927 11747473 614 +7928 11748087 1820 +7929 11749907 1760 +7930 11751667 1808 +7931 11753475 1754 +7932 11755229 1808 +7933 11757037 1724 +7934 11758761 1730 +7935 11760491 1736 +7936 11762227 1838 +7937 11764065 1826 +7938 11765891 1574 +7939 11767465 1574 +7940 11769039 3254 +7941 11772293 2156 +7942 11774449 2156 +7943 11776605 1820 +7944 11778425 1820 +7945 11780245 1820 +7946 11782065 1820 +7947 11783885 1820 +7948 11785705 1820 +7949 11787525 1820 +7950 11789345 1820 +7951 11791165 1454 +7952 11792619 1454 +7953 11794073 1454 +7954 11795527 1454 +7955 11796981 2120 +7956 11799101 1556 +7957 11800657 1556 +7958 11802213 2528 +7959 11804741 2534 +7960 11807275 938 +7961 11808213 950 +7962 11809163 950 +7963 11810113 968 +7964 11811081 842 +7965 11811923 842 +7966 11812765 2036 +7967 11814801 1820 +7968 11816621 6505 +7969 11823126 4142 +7970 11827268 3482 +7971 11830750 3697 +7972 11834447 4142 +7973 11838589 3482 +7974 11842071 1856 +7975 11843927 4142 +7976 11848069 3482 +7977 11851551 632 +7978 11852183 632 +7979 11852815 632 +7980 11853447 632 +7981 11854079 632 +7982 11854711 632 +7983 11855343 632 +7984 11855975 632 +7985 11856607 1292 +7986 11857899 464 +7987 11858363 1268 +7988 11859631 110 +7989 11859741 344 +7990 11860085 2012 +7991 11862097 2012 +7992 11864109 992 +7993 11865101 992 +7994 11866093 9662 +7995 11875755 9662 +7996 11885417 9626 +7997 11895043 368 +7998 11895411 368 +7999 11895779 2042 +8000 11897821 1718 +8001 11899539 1718 +8002 11901257 734 +8003 11901991 1952 +8004 11903943 932 +8005 11904875 15337 +8006 11920212 1100 +8007 11921312 938 +8008 11922250 938 +8009 11923188 962 +8010 11924150 692 +8011 11924842 5486 +8012 11930328 5366 +8013 11935694 92 +8014 11935786 92 +8015 11935878 80 +8016 11935958 524 +8017 11936482 524 +8018 11937006 2204 +8019 11939210 2186 +8020 11941396 746 +8021 11942142 122 +8022 11942264 1466 +8023 11943730 1466 +8024 11945196 1466 +8025 11946662 1466 +8026 11948128 1070 +8027 11949198 1064 +8028 11950262 1208 +8029 11951470 860 +8030 11952330 854 +8031 11953184 836 +8032 11954020 884 +8033 11954904 2390 +8034 11957294 938 +8035 11958232 914 +8036 11959146 944 +8037 11960090 896 +8038 11960986 1364 +8039 11962350 1364 +8040 11963714 1124 +8041 11964838 1142 +8042 11965980 1160 +8043 11967140 1112 +8044 11968252 1130 +8045 11969382 1124 +8046 11970506 1130 +8047 11971636 1154 +8048 11972790 1136 +8049 11973926 1106 +8050 11975032 1142 +8051 11976174 1130 +8052 11977304 74 +8053 11977378 74 +8054 11977452 68 +8055 11977520 74 +8056 11977594 74 +8057 11977668 74 +8058 11977742 74 +8059 11977816 74 +8060 11977890 74 +8061 11977964 74 +8062 11978038 74 +8063 11978112 68 +8064 11978180 974 +8065 11979154 968 +8066 11980122 458 +8067 11980580 1760 +8068 11982340 2324 +8069 11984664 794 +8070 11985458 2324 +8071 11987782 782 +8072 11988564 2324 +8073 11990888 794 +8074 11991682 2324 +8075 11994006 794 +8076 11994800 1190 +8077 11995990 734 +8078 11996724 560 +8079 11997284 560 +8080 11997844 530 +8081 11998374 536 +8082 11998910 530 +8083 11999440 536 +8084 11999976 434 +8085 12000410 1586 +8086 12001996 1874 +8087 12003870 812 +8088 12004682 800 +8089 12005482 2138 +8090 12007620 1244 +8091 12008864 1244 +8092 12010108 1244 +8093 12011352 2198 +8094 12013550 2198 +8095 12015748 1040 +8096 12016788 2048 +8097 12018836 2042 +8098 12020878 2042 +8099 12022920 2090 +8100 12025010 1604 +8101 12026614 1172 +8102 12027786 128 +8103 12027914 1166 +8104 12029080 128 +8105 12029208 1160 +8106 12030368 116 +8107 12030484 44 +8108 12030528 1958 +8109 12032486 50 +8110 12032536 1958 +8111 12034494 50 +8112 12034544 1958 +8113 12036502 44 +8114 12036546 1958 +8115 12038504 44 +8116 12038548 1958 +8117 12040506 62 +8118 12040568 1958 +8119 12042526 50 +8120 12042576 1982 +8121 12044558 50 +8122 12044608 1982 +8123 12046590 50 +8124 12046640 1982 +8125 12048622 1262 +8126 12049884 1256 +8127 12051140 1262 +8128 12052402 1256 +8129 12053658 596 +8130 12054254 614 +8131 12054868 386 +8132 12055254 770 +8133 12056024 770 +8134 12056794 704 +8135 12057498 1526 +8136 12059024 2630 +8137 12061654 716 +8138 12062370 602 +8139 12062972 614 +8140 12063586 2708 +8141 12066294 2672 +8142 12068966 866 +8143 12069832 872 +8144 12070704 920 +8145 12071624 848 +8146 12072472 2084 +8147 12074556 2036 +8148 12076592 3074 +8149 12079666 902 +8150 12080568 3020 +8151 12083588 926 +8152 12084514 476 +8153 12084990 980 +8154 12085970 956 +8155 12086926 818 +8156 12087744 818 +8157 12088562 920 +8158 12089482 914 +8159 12090396 896 +8160 12091292 800 +8161 12092092 800 +8162 12092892 806 +8163 12093698 3122 +8164 12096820 3164 +8165 12099984 3608 +8166 12103592 1538 +8167 12105130 1538 +8168 12106668 2312 +8169 12108980 950 +8170 12109930 2672 +8171 12112602 2684 +8172 12115286 602 +8173 12115888 602 +8174 12116490 584 +8175 12117074 596 +8176 12117670 584 +8177 12118254 584 +8178 12118838 1490 +8179 12120328 1124 +8180 12121452 1358 +8181 12122810 1112 +8182 12123922 980 +8183 12124902 1034 +8184 12125936 1028 +8185 12126964 1154 +8186 12128118 2420 +8187 12130538 2408 +8188 12132946 2414 +8189 12135360 2408 +8190 12137768 2414 +8191 12140182 2420 +8192 12142602 1262 +8193 12143864 1250 +8194 12145114 452 +8195 12145566 1250 +8196 12146816 1250 +8197 12148066 4094 +8198 12152160 4082 +8199 12156242 1160 +8200 12157402 1172 +8201 12158574 2018 +8202 12160592 404 +8203 12160996 2696 +8204 12163692 2720 +8205 12166412 1082 +8206 12167494 1094 +8207 12168588 3314 +8208 12171902 1394 +8209 12173296 2324 +8210 12175620 692 +8211 12176312 722 +8212 12177034 2168 +8213 12179202 2588 +8214 12181790 1418 +8215 12183208 3704 +8216 12186912 248 +8217 12187160 248 +8218 12187408 3110 +8219 12190518 3110 +8220 12193628 704 +8221 12194332 728 +8222 12195060 728 +8223 12195788 356 +8224 12196144 2510 +8225 12198654 296 +8226 12198950 296 +8227 12199246 1592 +8228 12200838 1940 +8229 12202778 1940 +8230 12204718 374 +8231 12205092 434 +8232 12205526 974 +8233 12206500 962 +8234 12207462 992 +8235 12208454 986 +8236 12209440 1304 +8237 12210744 2336 +8238 12213080 2336 +8239 12215416 890 +8240 12216306 50 +8241 12216356 890 +8242 12217246 50 +8243 12217296 956 +8244 12218252 314 +8245 12218566 266 +8246 12218832 320 +8247 12219152 206 +8248 12219358 1130 +8249 12220488 1130 +8250 12221618 1142 +8251 12222760 1118 +8252 12223878 2600 +8253 12226478 2558 +8254 12229036 1022 +8255 12230058 3950 +8256 12234008 416 +8257 12234424 416 +8258 12234840 1118 +8259 12235958 788 +8260 12236746 776 +8261 12237522 1130 +8262 12238652 1130 +8263 12239782 656 +8264 12240438 656 +8265 12241094 416 +8266 12241510 506 +8267 12242016 524 +8268 12242540 398 +8269 12242938 560 +8270 12243498 560 +8271 12244058 3710 +8272 12247768 3710 +8273 12251478 1412 +8274 12252890 1394 +8275 12254284 1292 +8276 12255576 1328 +8277 12256904 1298 +8278 12258202 1502 +8279 12259704 1502 +8280 12261206 1502 +8281 12262708 1778 +8282 12264486 1586 +8283 12266072 2822 +8284 12268894 2822 +8285 12271716 2582 +8286 12274298 248 +8287 12274546 248 +8288 12274794 3110 +8289 12277904 3110 +8290 12281014 2714 +8291 12283728 200 +8292 12283928 3950 +8293 12287878 2288 +8294 12290166 2336 +8295 12292502 2348 +8296 12294850 248 +8297 12295098 248 +8298 12295346 4832 +8299 12300178 9769 +8300 12309947 1490 +8301 12311437 1490 +8302 12312927 1490 +8303 12314417 1490 +8304 12315907 1286 +8305 12317193 1286 +8306 12318479 1286 +8307 12319765 2018 +8308 12321783 2018 +8309 12323801 506 +8310 12324307 1508 +8311 12325815 1490 +8312 12327305 980 +8313 12328285 980 +8314 12329265 752 +8315 12330017 782 +8316 12330799 1580 +8317 12332379 488 +8318 12332867 488 +8319 12333355 488 +8320 12333843 488 +8321 12334331 1190 +8322 12335521 1136 +8323 12336657 1142 +8324 12337799 1142 +8325 12338941 1142 +8326 12340083 956 +8327 12341039 956 +8328 12341995 920 +8329 12342915 890 +8330 12343805 890 +8331 12344695 794 +8332 12345489 800 +8333 12346289 794 +8334 12347083 698 +8335 12347781 15325 +8336 12363106 1046 +8337 12364152 1136 +8338 12365288 1136 +8339 12366424 1136 +8340 12367560 1154 +8341 12368714 1148 +8342 12369862 1136 +8343 12370998 1136 +8344 12372134 530 +8345 12372664 530 +8346 12373194 530 +8347 12373724 4388 +8348 12378112 6356 +8349 12384468 4970 +8350 12389438 4784 +8351 12394222 3212 +8352 12397434 5378 +8353 12402812 5480 +8354 12408292 3752 +8355 12412044 3536 +8356 12415580 3500 +8357 12419080 1766 +8358 12420846 932 +8359 12421778 1328 +8360 12423106 1088 +8361 12424194 2222 +8362 12426416 416 +8363 12426832 404 +8364 12427236 404 +8365 12427640 374 +8366 12428014 2354 +8367 12430368 2354 +8368 12432722 2666 +8369 12435388 1028 +8370 12436416 980 +8371 12437396 2030 +8372 12439426 4213 +8373 12443639 2144 +8374 12445783 938 +8375 12446721 752 +8376 12447473 1100 +8377 12448573 908 +8378 12449481 1802 +8379 12451283 1796 +8380 12453079 1802 +8381 12454881 1796 +8382 12456677 1802 +8383 12458479 1796 +8384 12460275 764 +8385 12461039 764 +8386 12461803 680 +8387 12462483 764 +8388 12463247 764 +8389 12464011 680 +8390 12464691 572 +8391 12465263 566 +8392 12465829 1700 +8393 12467529 1700 +8394 12469229 1700 +8395 12470929 1700 +8396 12472629 1166 +8397 12473795 1148 +8398 12474943 1700 +8399 12476643 1694 +8400 12478337 1700 +8401 12480037 1694 +8402 12481731 788 +8403 12482519 788 +8404 12483307 3842 +8405 12487149 3842 +8406 12490991 1628 +8407 12492619 1628 +8408 12494247 368 +8409 12494615 578 +8410 12495193 350 +8411 12495543 578 +8412 12496121 362 +8413 12496483 584 +8414 12497067 374 +8415 12497441 578 +8416 12498019 362 +8417 12498381 578 +8418 12498959 374 +8419 12499333 578 +8420 12499911 350 +8421 12500261 578 +8422 12500839 368 +8423 12501207 578 +8424 12501785 1190 +8425 12502975 1184 +8426 12504159 1070 +8427 12505229 1178 +8428 12506407 968 +8429 12507375 1040 +8430 12508415 1070 +8431 12509485 1364 +8432 12510849 1322 +8433 12512171 1406 +8434 12513577 848 +8435 12514425 3236 +8436 12517661 200 +8437 12517861 632 +8438 12518493 626 +8439 12519119 1034 +8440 12520153 1808 +8441 12521961 1850 +8442 12523811 44 +8443 12523855 1856 +8444 12525711 1820 +8445 12527531 638 +8446 12528169 734 +8447 12528903 3614 +8448 12532517 3614 +8449 12536131 3614 +8450 12539745 3614 +8451 12543359 458 +8452 12543817 656 +8453 12544473 458 +8454 12544931 656 +8455 12545587 464 +8456 12546051 656 +8457 12546707 1214 +8458 12547921 590 +8459 12548511 506 +8460 12549017 662 +8461 12549679 560 +8462 12550239 590 +8463 12550829 500 +8464 12551329 662 +8465 12551991 560 +8466 12552551 752 +8467 12553303 752 +8468 12554055 1010 +8469 12555065 1280 +8470 12556345 650 +8471 12556995 1544 +8472 12558539 338 +8473 12558877 302 +8474 12559179 308 +8475 12559487 302 +8476 12559789 602 +8477 12560391 602 +8478 12560993 1760 +8479 12562753 1760 +8480 12564513 2516 +8481 12567029 2516 +8482 12569545 2516 +8483 12572061 2516 +8484 12574577 2516 +8485 12577093 2516 +8486 12579609 2798 +8487 12582407 434 +8488 12582841 2240 +8489 12585081 434 +8490 12585515 2240 +8491 12587755 434 +8492 12588189 2240 +8493 12590429 434 +8494 12590863 2240 +8495 12593103 1970 +8496 12595073 1964 +8497 12597037 1964 +8498 12599001 1970 +8499 12600971 1478 +8500 12602449 2905 +8501 12605354 962 +8502 12606316 962 +8503 12607278 1880 +8504 12609158 716 +8505 12609874 2162 +8506 12612036 2162 +8507 12614198 2162 +8508 12616360 2162 +8509 12618522 2162 +8510 12620684 2162 +8511 12622846 2162 +8512 12625008 2162 +8513 12627170 2498 +8514 12629668 1052 +8515 12630720 386 +8516 12631106 554 +8517 12631660 554 +8518 12632214 902 +8519 12633116 1916 +8520 12635032 1916 +8521 12636948 1916 +8522 12638864 2222 +8523 12641086 620 +8524 12641706 1778 +8525 12643484 1778 +8526 12645262 1928 +8527 12647190 5156 +8528 12652346 5240 +8529 12657586 2510 +8530 12660096 2516 +8531 12662612 1376 +8532 12663988 1376 +8533 12665364 1376 +8534 12666740 2084 +8535 12668824 2438 +8536 12671262 2426 +8537 12673688 854 +8538 12674542 566 +8539 12675108 1100 +8540 12676208 1100 +8541 12677308 614 +8542 12677922 614 +8543 12678536 182 +8544 12678718 176 +8545 12678894 200 +8546 12679094 182 +8547 12679276 2498 +8548 12681774 2522 +8549 12684296 878 +8550 12685174 962 +8551 12686136 1772 +8552 12687908 1724 +8553 12689632 1946 +8554 12691578 2426 +8555 12694004 1946 +8556 12695950 2426 +8557 12698376 1898 +8558 12700274 2252 +8559 12702526 614 +8560 12703140 1298 +8561 12704438 1382 +8562 12705820 2702 +8563 12708522 2024 +8564 12710546 2024 +8565 12712570 2012 +8566 12714582 2024 +8567 12716606 2024 +8568 12718630 2012 +8569 12720642 2036 +8570 12722678 1850 +8571 12724528 2018 +8572 12726546 2018 +8573 12728564 2060 +8574 12730624 1898 +8575 12732522 1880 +8576 12734402 1886 +8577 12736288 656 +8578 12736944 56 +8579 12737000 2408 +8580 12739408 1190 +8581 12740598 1208 +8582 12741806 1562 +8583 12743368 1856 +8584 12745224 1460 +8585 12746684 1460 +8586 12748144 1652 +8587 12749796 1634 +8588 12751430 1634 +8589 12753064 1634 +8590 12754698 1634 +8591 12756332 1652 +8592 12757984 638 +8593 12758622 638 +8594 12759260 464 +8595 12759724 476 +8596 12760200 524 +8597 12760724 512 +8598 12761236 1556 +8599 12762792 1982 +8600 12764774 638 +8601 12765412 662 +8602 12766074 1112 +8603 12767186 1736 +8604 12768922 1646 +8605 12770568 176 +8606 12770744 1652 +8607 12772396 176 +8608 12772572 368 +8609 12772940 368 +8610 12773308 392 +8611 12773700 410 +8612 12774110 410 +8613 12774520 392 +8614 12774912 398 +8615 12775310 386 +8616 12775696 404 +8617 12776100 398 +8618 12776498 404 +8619 12776902 410 +8620 12777312 398 +8621 12777710 398 +8622 12778108 398 +8623 12778506 398 +8624 12778904 1790 +8625 12780694 1790 +8626 12782484 1790 +8627 12784274 1790 +8628 12786064 980 +8629 12787044 974 +8630 12788018 980 +8631 12788998 974 +8632 12789972 1592 +8633 12791564 1580 +8634 12793144 1556 +8635 12794700 1568 +8636 12796268 1550 +8637 12797818 1550 +8638 12799368 2156 +8639 12801524 2156 +8640 12803680 2744 +8641 12806424 1220 +8642 12807644 1220 +8643 12808864 1652 +8644 12810516 1652 +8645 12812168 3482 +8646 12815650 3482 +8647 12819132 3482 +8648 12822614 3482 +8649 12826096 4694 +8650 12830790 4682 +8651 12835472 416 +8652 12835888 1820 +8653 12837708 1772 +8654 12839480 2816 +8655 12842296 2816 +8656 12845112 2810 +8657 12847922 2822 +8658 12850744 2816 +8659 12853560 2822 +8660 12856382 2390 +8661 12858772 2390 +8662 12861162 2390 +8663 12863552 2390 +8664 12865942 620 +8665 12866562 908 +8666 12867470 896 +8667 12868366 872 +8668 12869238 692 +8669 12869930 620 +8670 12870550 1442 +8671 12871992 1484 +8672 12873476 782 +8673 12874258 410 +8674 12874668 1652 +8675 12876320 1634 +8676 12877954 2792 +8677 12880746 2756 +8678 12883502 2792 +8679 12886294 2756 +8680 12889050 2792 +8681 12891842 2756 +8682 12894598 494 +8683 12895092 836 +8684 12895928 146 +8685 12896074 836 +8686 12896910 146 +8687 12897056 824 +8688 12897880 140 +8689 12898020 824 +8690 12898844 134 +8691 12898978 824 +8692 12899802 140 +8693 12899942 824 +8694 12900766 134 +8695 12900900 2918 +8696 12903818 1586 +8697 12905404 1586 +8698 12906990 1586 +8699 12908576 1724 +8700 12910300 1658 +8701 12911958 1658 +8702 12913616 2576 +8703 12916192 542 +8704 12916734 554 +8705 12917288 488 +8706 12917776 650 +8707 12918426 566 +8708 12918992 530 +8709 12919522 662 +8710 12920184 1004 +8711 12921188 560 +8712 12921748 782 +8713 12922530 1244 +8714 12923774 428 +8715 12924202 1490 +8716 12925692 788 +8717 12926480 758 +8718 12927238 758 +8719 12927996 2384 +8720 12930380 2384 +8721 12932764 2384 +8722 12935148 2384 +8723 12937532 2384 +8724 12939916 2384 +8725 12942300 2768 +8726 12945068 1214 +8727 12946282 1226 +8728 12947508 2768 +8729 12950276 1214 +8730 12951490 1226 +8731 12952716 2768 +8732 12955484 1214 +8733 12956698 1226 +8734 12957924 3068 +8735 12960992 3002 +8736 12963994 3002 +8737 12966996 3032 +8738 12970028 3068 +8739 12973096 3026 +8740 12976122 3032 +8741 12979154 3002 +8742 12982156 506 +8743 12982662 164 +8744 12982826 164 +8745 12982990 164 +8746 12983154 566 +8747 12983720 668 +8748 12984388 404 +8749 12984792 608 +8750 12985400 1322 +8751 12986722 572 +8752 12987294 1274 +8753 12988568 1298 +8754 12989866 3632 +8755 12993498 842 +8756 12994340 530 +8757 12994870 836 +8758 12995706 518 +8759 12996224 1850 +8760 12998074 848 +8761 12998922 800 +8762 12999722 1568 +8763 13001290 1514 +8764 13002804 1514 +8765 13004318 1514 +8766 13005832 1514 +8767 13007346 16561 +8768 13023907 1640 +8769 13025547 16561 +8770 13042108 1640 +8771 13043748 8222 +8772 13051970 1640 +8773 13053610 8222 +8774 13061832 1640 +8775 13063472 6470 +8776 13069942 170 +8777 13070112 1604 +8778 13071716 1388 +8779 13073104 2048 +8780 13075152 350 +8781 13075502 776 +8782 13076278 1502 +8783 13077780 788 +8784 13078568 884 +8785 13079452 1292 +8786 13080744 1862 +8787 13082606 1712 +8788 13084318 32 +8789 13084350 1748 +8790 13086098 1754 +8791 13087852 1784 +8792 13089636 452 +8793 13090088 1700 +8794 13091788 1700 +8795 13093488 1694 +8796 13095182 1694 +8797 13096876 1466 +8798 13098342 1484 +8799 13099826 1550 +8800 13101376 1568 +8801 13102944 638 +8802 13103582 638 +8803 13104220 638 +8804 13104858 626 +8805 13105484 1436 +8806 13106920 842 +8807 13107762 764 +8808 13108526 5180 +8809 13113706 608 +8810 13114314 6440 +8811 13120754 7250 +8812 13128004 824 +8813 13128828 824 +8814 13129652 2606 +8815 13132258 1736 +8816 13133994 1736 +8817 13135730 68 +8818 13135798 3008 +8819 13138806 2270 +8820 13141076 1520 +8821 13142596 704 +8822 13143300 3506 +8823 13146806 500 +8824 13147306 500 +8825 13147806 1280 +8826 13149086 1040 +8827 13150126 1004 +8828 13151130 1880 +8829 13153010 806 +8830 13153816 2444 +8831 13156260 68 +8832 13156328 866 +8833 13157194 866 +8834 13158060 980 +8835 13159040 1340 +8836 13160380 1472 +8837 13161852 1472 +8838 13163324 926 +8839 13164250 914 +8840 13165164 1106 +8841 13166270 1094 +8842 13167364 2282 +8843 13169646 2342 +8844 13171988 2282 +8845 13174270 2342 +8846 13176612 512 +8847 13177124 590 +8848 13177714 350 +8849 13178064 350 +8850 13178414 1070 +8851 13179484 1100 +8852 13180584 1268 +8853 13181852 2540 +8854 13184392 1754 +8855 13186146 2540 +8856 13188686 1754 +8857 13190440 2540 +8858 13192980 1754 +8859 13194734 2540 +8860 13197274 1754 +8861 13199028 2540 +8862 13201568 1754 +8863 13203322 2540 +8864 13205862 1754 +8865 13207616 662 +8866 13208278 662 +8867 13208940 662 +8868 13209602 662 +8869 13210264 464 +8870 13210728 422 +8871 13211150 728 +8872 13211878 734 +8873 13212612 734 +8874 13213346 524 +8875 13213870 1238 +8876 13215108 770 +8877 13215878 776 +8878 13216654 3110 +8879 13219764 758 +8880 13220522 962 +8881 13221484 458 +8882 13221942 1760 +8883 13223702 1124 +8884 13224826 1124 +8885 13225950 962 +8886 13226912 3734 +8887 13230646 236 +8888 13230882 620 +8889 13231502 590 +8890 13232092 638 +8891 13232730 620 +8892 13233350 3224 +8893 13236574 3224 +8894 13239798 1010 +8895 13240808 1784 +8896 13242592 1286 +8897 13243878 2138 +8898 13246016 698 +8899 13246714 1280 +8900 13247994 1190 +8901 13249184 692 +8902 13249876 1274 +8903 13251150 1196 +8904 13252346 698 +8905 13253044 1286 +8906 13254330 1244 +8907 13255574 2102 +8908 13257676 2102 +8909 13259778 1694 +8910 13261472 3482 +8911 13264954 3482 +8912 13268436 3482 +8913 13271918 3482 +8914 13275400 4802 +8915 13280202 4736 +8916 13284938 4742 +8917 13289680 4730 +8918 13294410 2168 +8919 13296578 2168 +8920 13298746 2450 +8921 13301196 2444 +8922 13303640 2444 +8923 13306084 2444 +8924 13308528 2168 +8925 13310696 2168 +8926 13312864 2168 +8927 13315032 2168 +8928 13317200 2168 +8929 13319368 2168 +8930 13321536 1778 +8931 13323314 1766 +8932 13325080 1676 +8933 13326756 1868 +8934 13328624 1700 +8935 13330324 1298 +8936 13331622 1310 +8937 13332932 1298 +8938 13334230 1292 +8939 13335522 1736 +8940 13337258 1736 +8941 13338994 2420 +8942 13341414 2420 +8943 13343834 2414 +8944 13346248 2426 +8945 13348674 536 +8946 13349210 536 +8947 13349746 2186 +8948 13351932 386 +8949 13352318 386 +8950 13352704 386 +8951 13353090 386 +8952 13353476 50 +8953 13353526 50 +8954 13353576 50 +8955 13353626 50 +8956 13353676 746 +8957 13354422 770 +8958 13355192 956 +8959 13356148 1772 +8960 13357920 3062 +8961 13360982 1490 +8962 13362472 1490 +8963 13363962 1250 +8964 13365212 956 +8965 13366168 110 +8966 13366278 1952 +8967 13368230 3434 +8968 13371664 3434 +8969 13375098 3434 +8970 13378532 3416 +8971 13381948 5000 +8972 13386948 4994 +8973 13391942 1400 +8974 13393342 44 +8975 13393386 680 +8976 13394066 596 +8977 13394662 680 +8978 13395342 596 +8979 13395938 1712 +8980 13397650 5378 +8981 13403028 5378 +8982 13408406 1784 +8983 13410190 1022 +8984 13411212 3542 +8985 13414754 1784 +8986 13416538 1022 +8987 13417560 3542 +8988 13421102 2300 +8989 13423402 2582 +8990 13425984 1628 +8991 13427612 1442 +8992 13429054 3968 +8993 13433022 506 +8994 13433528 686 +8995 13434214 1268 +8996 13435482 704 +8997 13436186 1238 +8998 13437424 554 +8999 13437978 458 +9000 13438436 560 +9001 13438996 1406 +9002 13440402 1406 +9003 13441808 2378 +9004 13444186 584 +9005 13444770 1586 +9006 13446356 512 +9007 13446868 1202 +9008 13448070 1604 +9009 13449674 602 +9010 13450276 1472 +9011 13451748 1856 +9012 13453604 1634 +9013 13455238 1754 +9014 13456992 794 +9015 13457786 3013 +9016 13460799 896 +9017 13461695 938 +9018 13462633 1256 +9019 13463889 872 +9020 13464761 854 +9021 13465615 734 +9022 13466349 1946 +9023 13468295 2006 +9024 13470301 1970 +9025 13472271 1958 +9026 13474229 3548 +9027 13477777 3548 +9028 13481325 2600 +9029 13483925 2594 +9030 13486519 2588 +9031 13489107 2594 +9032 13491701 800 +9033 13492501 812 +9034 13493313 692 +9035 13494005 674 +9036 13494679 692 +9037 13495371 2342 +9038 13497713 2360 +9039 13500073 2204 +9040 13502277 2150 +9041 13504427 1220 +9042 13505647 1166 +9043 13506813 1748 +9044 13508561 1766 +9045 13510327 800 +9046 13511127 1964 +9047 13513091 698 +9048 13513789 698 +9049 13514487 800 +9050 13515287 818 +9051 13516105 806 +9052 13516911 662 +9053 13517573 548 +9054 13518121 1598 +9055 13519719 2840 +9056 13522559 2828 +9057 13525387 1400 +9058 13526787 2810 +9059 13529597 680 +9060 13530277 2606 +9061 13532883 2408 +9062 13535291 518 +9063 13535809 368 +9064 13536177 2600 +9065 13538777 2600 +9066 13541377 350 +9067 13541727 1652 +9068 13543379 2276 +9069 13545655 2336 +9070 13547991 2336 +9071 13550327 866 +9072 13551193 866 +9073 13552059 746 +9074 13552805 1442 +9075 13554247 2528 +9076 13556775 944 +9077 13557719 944 +9078 13558663 944 +9079 13559607 944 +9080 13560551 944 +9081 13561495 944 +9082 13562439 944 +9083 13563383 944 +9084 13564327 944 +9085 13565271 944 +9086 13566215 896 +9087 13567111 896 +9088 13568007 704 +9089 13568711 752 +9090 13569463 704 +9091 13570167 752 +9092 13570919 752 +9093 13571671 2282 +9094 13573953 3128 +9095 13577081 2600 +9096 13579681 464 +9097 13580145 908 +9098 13581053 2162 +9099 13583215 2162 +9100 13585377 2138 +9101 13587515 2120 +9102 13589635 1898 +9103 13591533 1826 +9104 13593359 1880 +9105 13595239 1784 +9106 13597023 644 +9107 13597667 3740 +9108 13601407 2114 +9109 13603521 3740 +9110 13607261 2114 +9111 13609375 926 +9112 13610301 950 +9113 13611251 2540 +9114 13613791 2516 +9115 13616307 1520 +9116 13617827 1520 +9117 13619347 1832 +9118 13621179 1814 +9119 13622993 1808 +9120 13624801 1826 +9121 13626627 1868 +9122 13628495 1874 +9123 13630369 806 +9124 13631175 806 +9125 13631981 602 +9126 13632583 602 +9127 13633185 602 +9128 13633787 602 +9129 13634389 1658 +9130 13636047 1658 +9131 13637705 1658 +9132 13639363 1658 +9133 13641021 1658 +9134 13642679 1658 +9135 13644337 746 +9136 13645083 602 +9137 13645685 602 +9138 13646287 602 +9139 13646889 602 +9140 13647491 1952 +9141 13649443 1988 +9142 13651431 1946 +9143 13653377 1976 +9144 13655353 1958 +9145 13657311 1232 +9146 13658543 2540 +9147 13661083 788 +9148 13661871 788 +9149 13662659 1670 +9150 13664329 1490 +9151 13665819 1028 +9152 13666847 1226 +9153 13668073 2168 +9154 13670241 434 +9155 13670675 440 +9156 13671115 2204 +9157 13673319 2204 +9158 13675523 1358 +9159 13676881 2444 +9160 13679325 518 +9161 13679843 1322 +9162 13681165 1358 +9163 13682523 5156 +9164 13687679 7064 +9165 13694743 500 +9166 13695243 1790 +9167 13697033 3842 +9168 13700875 950 +9169 13701825 950 +9170 13702775 1484 +9171 13704259 1454 +9172 13705713 1100 +9173 13706813 8041 +9174 13714854 380 +9175 13715234 3926 +9176 13719160 950 +9177 13720110 950 +9178 13721060 3872 +9179 13724932 4154 +9180 13729086 3428 +9181 13732514 230 +9182 13732744 422 +9183 13733166 4154 +9184 13737320 3428 +9185 13740748 230 +9186 13740978 422 +9187 13741400 4154 +9188 13745554 3428 +9189 13748982 230 +9190 13749212 422 +9191 13749634 776 +9192 13750410 776 +9193 13751186 200 +9194 13751386 200 +9195 13751586 1256 +9196 13752842 3740 +9197 13756582 3740 +9198 13760322 1736 +9199 13762058 1736 +9200 13763794 1814 +9201 13765608 1952 +9202 13767560 1382 +9203 13768942 1346 +9204 13770288 1682 +9205 13771970 488 +9206 13772458 488 +9207 13772946 1364 +9208 13774310 1346 +9209 13775656 3080 +9210 13778736 3032 +9211 13781768 3092 +9212 13784860 3074 +9213 13787934 3086 +9214 13791020 3080 +9215 13794100 1346 +9216 13795446 1346 +9217 13796792 3080 +9218 13799872 3074 +9219 13802946 3920 +9220 13806866 1730 +9221 13808596 5180 +9222 13813776 6782 +9223 13820558 6782 +9224 13827340 6782 +9225 13834122 6782 +9226 13840904 1196 +9227 13842100 1202 +9228 13843302 1208 +9229 13844510 1202 +9230 13845712 1670 +9231 13847382 2510 +9232 13849892 2504 +9233 13852396 2504 +9234 13854900 2504 +9235 13857404 1604 +9236 13859008 1604 +9237 13860612 1604 +9238 13862216 1604 +9239 13863820 1604 +9240 13865424 1604 +9241 13867028 1454 +9242 13868482 1394 +9243 13869876 1406 +9244 13871282 1172 +9245 13872454 254 +9246 13872708 1406 +9247 13874114 1958 +9248 13876072 1958 +9249 13878030 1202 +9250 13879232 1208 +9251 13880440 482 +9252 13880922 488 +9253 13881410 680 +9254 13882090 2240 +9255 13884330 2240 +9256 13886570 2246 +9257 13888816 2246 +9258 13891062 1178 +9259 13892240 788 +9260 13893028 1178 +9261 13894206 1670 +9262 13895876 356 +9263 13896232 38 +9264 13896270 848 +9265 13897118 842 +9266 13897960 848 +9267 13898808 848 +9268 13899656 848 +9269 13900504 848 +9270 13901352 848 +9271 13902200 602 +9272 13902802 620 +9273 13903422 602 +9274 13904024 620 +9275 13904644 2858 +9276 13907502 2654 +9277 13910156 2648 +9278 13912804 362 +9279 13913166 116 +9280 13913282 1958 +9281 13915240 1952 +9282 13917192 1892 +9283 13919084 1892 +9284 13920976 1460 +9285 13922436 1604 +9286 13924040 1604 +9287 13925644 1376 +9288 13927020 1376 +9289 13928396 1184 +9290 13929580 1202 +9291 13930782 1388 +9292 13932170 518 +9293 13932688 734 +9294 13933422 1118 +9295 13934540 1202 +9296 13935742 938 +9297 13936680 1148 +9298 13937828 818 +9299 13938646 1940 +9300 13940586 2312 +9301 13942898 1916 +9302 13944814 2222 +9303 13947036 1928 +9304 13948964 1028 +9305 13949992 710 +9306 13950702 2750 +9307 13953452 2252 +9308 13955704 2252 +9309 13957956 2252 +9310 13960208 2252 +9311 13962460 19969 +9312 13982429 3037 +9313 13985466 506 +9314 13985972 506 +9315 13986478 302 +9316 13986780 302 +9317 13987082 1484 +9318 13988566 1460 +9319 13990026 740 +9320 13990766 1208 +9321 13991974 1214 +9322 13993188 2012 +9323 13995200 1976 +9324 13997176 1400 +9325 13998576 1352 +9326 13999928 1400 +9327 14001328 1352 +9328 14002680 3122 +9329 14005802 3074 +9330 14008876 3122 +9331 14011998 3074 +9332 14015072 3122 +9333 14018194 3074 +9334 14021268 1526 +9335 14022794 566 +9336 14023360 1244 +9337 14024604 1166 +9338 14025770 806 +9339 14026576 800 +9340 14027376 590 +9341 14027966 602 +9342 14028568 24337 +9343 14052905 24049 +9344 14076954 24337 +9345 14101291 24049 +9346 14125340 3236 +9347 14128576 3236 +9348 14131812 3236 +9349 14135048 3236 +9350 14138284 338 +9351 14138622 338 +9352 14138960 1532 +9353 14140492 1304 +9354 14141796 2540 +9355 14144336 2996 +9356 14147332 602 +9357 14147934 602 +9358 14148536 1976 +9359 14150512 1976 +9360 14152488 1682 +9361 14154170 1676 +9362 14155846 1670 +9363 14157516 1664 +9364 14159180 1652 +9365 14160832 1664 +9366 14162496 3290 +9367 14165786 302 +9368 14166088 302 +9369 14166390 302 +9370 14166692 302 +9371 14166994 284 +9372 14167278 302 +9373 14167580 284 +9374 14167864 302 +9375 14168166 4970 +9376 14173136 5126 +9377 14178262 896 +9378 14179158 896 +9379 14180054 896 +9380 14180950 884 +9381 14181834 890 +9382 14182724 884 +9383 14183608 422 +9384 14184030 368 +9385 14184398 902 +9386 14185300 902 +9387 14186202 1256 +9388 14187458 1700 +9389 14189158 1646 +9390 14190804 1808 +9391 14192612 1646 +9392 14194258 1808 +9393 14196066 1646 +9394 14197712 1808 +9395 14199520 1772 +9396 14201292 1724 +9397 14203016 2420 +9398 14205436 2408 +9399 14207844 2366 +9400 14210210 698 +9401 14210908 680 +9402 14211588 680 +9403 14212268 680 +9404 14212948 680 +9405 14213628 680 +9406 14214308 680 +9407 14214988 38 +9408 14215026 2786 +9409 14217812 2852 +9410 14220664 86 +9411 14220750 794 +9412 14221544 590 +9413 14222134 3620 +9414 14225754 3638 +9415 14229392 3872 +9416 14233264 1058 +9417 14234322 1052 +9418 14235374 1592 +9419 14236966 1592 +9420 14238558 482 +9421 14239040 482 +9422 14239522 3086 +9423 14242608 3086 +9424 14245694 3086 +9425 14248780 3086 +9426 14251866 488 +9427 14252354 488 +9428 14252842 488 +9429 14253330 488 +9430 14253818 488 +9431 14254306 488 +9432 14254794 488 +9433 14255282 482 +9434 14255764 488 +9435 14256252 488 +9436 14256740 1544 +9437 14258284 1538 +9438 14259822 1538 +9439 14261360 1508 +9440 14262868 1508 +9441 14264376 1508 +9442 14265884 734 +9443 14266618 1604 +9444 14268222 1514 +9445 14269736 818 +9446 14270554 1550 +9447 14272104 1514 +9448 14273618 3128 +9449 14276746 3536 +9450 14280282 1676 +9451 14281958 1796 +9452 14283754 2750 +9453 14286504 1826 +9454 14288330 464 +9455 14288794 446 +9456 14289240 3224 +9457 14292464 3224 +9458 14295688 1448 +9459 14297136 644 +9460 14297780 644 +9461 14298424 1172 +9462 14299596 584 +9463 14300180 812 +9464 14300992 1826 +9465 14302818 5558 +9466 14308376 5576 +9467 14313952 5534 +9468 14319486 818 +9469 14320304 686 +9470 14320990 470 +9471 14321460 452 +9472 14321912 2036 +9473 14323948 5486 +9474 14329434 602 +9475 14330036 320 +9476 14330356 314 +9477 14330670 2102 +9478 14332772 2102 +9479 14334874 3062 +9480 14337936 3062 +9481 14340998 1064 +9482 14342062 1142 +9483 14343204 1064 +9484 14344268 1142 +9485 14345410 998 +9486 14346408 86 +9487 14346494 1388 +9488 14347882 86 +9489 14347968 1388 +9490 14349356 1322 +9491 14350678 596 +9492 14351274 1730 +9493 14353004 1070 +9494 14354074 2126 +9495 14356200 98 +9496 14356298 1586 +9497 14357884 74 +9498 14357958 74 +9499 14358032 74 +9500 14358106 74 +9501 14358180 74 +9502 14358254 74 +9503 14358328 74 +9504 14358402 74 +9505 14358476 2666 +9506 14361142 6320 +9507 14367462 1046 +9508 14368508 836 +9509 14369344 692 +9510 14370036 668 +9511 14370704 596 +9512 14371300 662 +9513 14371962 2420 +9514 14374382 950 +9515 14375332 950 +9516 14376282 2678 +9517 14378960 1286 +9518 14380246 1322 +9519 14381568 1898 +9520 14383466 1898 +9521 14385364 1898 +9522 14387262 1898 +9523 14389160 1898 +9524 14391058 1898 +9525 14392956 1040 +9526 14393996 1610 +9527 14395606 224 +9528 14395830 716 +9529 14396546 716 +9530 14397262 596 +9531 14397858 596 +9532 14398454 596 +9533 14399050 596 +9534 14399646 1250 +9535 14400896 1238 +9536 14402134 2234 +9537 14404368 2234 +9538 14406602 974 +9539 14407576 1292 +9540 14408868 1292 +9541 14410160 1292 +9542 14411452 1292 +9543 14412744 530 +9544 14413274 1448 +9545 14414722 74 +9546 14414796 1526 +9547 14416322 188 +9548 14416510 188 +9549 14416698 188 +9550 14416886 949 +9551 14417835 1136 +9552 14418971 1676 +9553 14420647 1688 +9554 14422335 1676 +9555 14424011 1688 +9556 14425699 710 +9557 14426409 758 +9558 14427167 734 +9559 14427901 734 +9560 14428635 722 +9561 14429357 740 +9562 14430097 2528 +9563 14432625 998 +9564 14433623 710 +9565 14434333 1760 +9566 14436093 1736 +9567 14437829 1022 +9568 14438851 1814 +9569 14440665 206 +9570 14440871 194 +9571 14441065 272 +9572 14441337 158 +9573 14441495 494 +9574 14441989 152 +9575 14442141 512 +9576 14442653 1010 +9577 14443663 1010 +9578 14444673 1022 +9579 14445695 2156 +9580 14447851 4400 +9581 14452251 4033 +9582 14456284 4033 +9583 14460317 1124 +9584 14461441 1124 +9585 14462565 1460 +9586 14464025 1460 +9587 14465485 5630 +9588 14471115 572 +9589 14471687 1976 +9590 14473663 1694 +9591 14475357 1700 +9592 14477057 2492 +9593 14479549 434 +9594 14479983 2492 +9595 14482475 434 +9596 14482909 884 +9597 14483793 884 +9598 14484677 1682 +9599 14486359 2444 +9600 14488803 2444 +9601 14491247 596 +9602 14491843 590 +9603 14492433 1550 +9604 14493983 1940 +9605 14495923 1952 +9606 14497875 6194 +9607 14504069 1940 +9608 14506009 1952 +9609 14507961 6194 +9610 14514155 1940 +9611 14516095 1952 +9612 14518047 6194 +9613 14524241 2240 +9614 14526481 2240 +9615 14528721 2222 +9616 14530943 2252 +9617 14533195 914 +9618 14534109 2438 +9619 14536547 1082 +9620 14537629 2120 +9621 14539749 2162 +9622 14541911 2114 +9623 14544025 2156 +9624 14546181 698 +9625 14546879 1130 +9626 14548009 704 +9627 14548713 1802 +9628 14550515 974 +9629 14551489 2024 +9630 14553513 812 +9631 14554325 2150 +9632 14556475 2132 +9633 14558607 776 +9634 14559383 776 +9635 14560159 776 +9636 14560935 776 +9637 14561711 776 +9638 14562487 776 +9639 14563263 500 +9640 14563763 1784 +9641 14565547 1766 +9642 14567313 818 +9643 14568131 746 +9644 14568877 1082 +9645 14569959 2258 +9646 14572217 2246 +9647 14574463 2258 +9648 14576721 2246 +9649 14578967 2258 +9650 14581225 2246 +9651 14583471 2258 +9652 14585729 2246 +9653 14587975 2258 +9654 14590233 2246 +9655 14592479 2258 +9656 14594737 2246 +9657 14596983 446 +9658 14597429 356 +9659 14597785 2330 +9660 14600115 2408 +9661 14602523 2336 +9662 14604859 2408 +9663 14607267 1250 +9664 14608517 950 +9665 14609467 80 +9666 14609547 350 +9667 14609897 350 +9668 14610247 350 +9669 14610597 350 +9670 14610947 1190 +9671 14612137 1220 +9672 14613357 1322 +9673 14614679 1028 +9674 14615707 374 +9675 14616081 380 +9676 14616461 374 +9677 14616835 380 +9678 14617215 1922 +9679 14619137 1922 +9680 14621059 950 +9681 14622009 950 +9682 14622959 1148 +9683 14624107 1148 +9684 14625255 56 +9685 14625311 1028 +9686 14626339 464 +9687 14626803 464 +9688 14627267 3050 +9689 14630317 752 +9690 14631069 752 +9691 14631821 2396 +9692 14634217 2396 +9693 14636613 2396 +9694 14639009 2396 +9695 14641405 110 +9696 14641515 110 +9697 14641625 134 +9698 14641759 134 +9699 14641893 1376 +9700 14643269 1400 +9701 14644669 602 +9702 14645271 1166 +9703 14646437 1136 +9704 14647573 2918 +9705 14650491 1976 +9706 14652467 620 +9707 14653087 614 +9708 14653701 740 +9709 14654441 1676 +9710 14656117 1640 +9711 14657757 950 +9712 14658707 950 +9713 14659657 548 +9714 14660205 542 +9715 14660747 548 +9716 14661295 542 +9717 14661837 1022 +9718 14662859 68 +9719 14662927 1388 +9720 14664315 1388 +9721 14665703 1322 +9722 14667025 1322 +9723 14668347 902 +9724 14669249 860 +9725 14670109 2576 +9726 14672685 1538 +9727 14674223 1508 +9728 14675731 1514 +9729 14677245 1508 +9730 14678753 1034 +9731 14679787 1034 +9732 14680821 1370 +9733 14682191 3032 +9734 14685223 3032 +9735 14688255 3128 +9736 14691383 3128 +9737 14694511 68 +9738 14694579 56 +9739 14694635 56 +9740 14694691 68 +9741 14694759 1598 +9742 14696357 974 +9743 14697331 974 +9744 14698305 950 +9745 14699255 944 +9746 14700199 1784 +9747 14701983 1784 +9748 14703767 1802 +9749 14705569 1646 +9750 14707215 1790 +9751 14709005 1598 +9752 14710603 1154 +9753 14711757 1196 +9754 14712953 2180 +9755 14715133 176 +9756 14715309 182 +9757 14715491 188 +9758 14715679 1802 +9759 14717481 1790 +9760 14719271 2768 +9761 14722039 2708 +9762 14724747 668 +9763 14725415 1346 +9764 14726761 104 +9765 14726865 104 +9766 14726969 104 +9767 14727073 104 +9768 14727177 104 +9769 14727281 104 +9770 14727385 104 +9771 14727489 104 +9772 14727593 104 +9773 14727697 104 +9774 14727801 1472 +9775 14729273 1148 +9776 14730421 1124 +9777 14731545 1802 +9778 14733347 1808 +9779 14735155 44 +9780 14735199 38 +9781 14735237 1880 +9782 14737117 1778 +9783 14738895 98 +9784 14738993 716 +9785 14739709 314 +9786 14740023 164 +9787 14740187 410 +9788 14740597 740 +9789 14741337 740 +9790 14742077 920 +9791 14742997 920 +9792 14743917 2006 +9793 14745923 2006 +9794 14747929 404 +9795 14748333 404 +9796 14748737 404 +9797 14749141 1160 +9798 14750301 1160 +9799 14751461 1064 +9800 14752525 1778 +9801 14754303 1064 +9802 14755367 1052 +9803 14756419 1046 +9804 14757465 1076 +9805 14758541 2558 +9806 14761099 2564 +9807 14763663 2546 +9808 14766209 2564 +9809 14768773 560 +9810 14769333 560 +9811 14769893 3230 +9812 14773123 1394 +9813 14774517 566 +9814 14775083 536 +9815 14775619 536 +9816 14776155 536 +9817 14776691 536 +9818 14777227 584 +9819 14777811 1280 +9820 14779091 1280 +9821 14780371 2600 +9822 14782971 2600 +9823 14785571 446 +9824 14786017 452 +9825 14786469 362 +9826 14786831 1292 +9827 14788123 1292 +9828 14789415 1298 +9829 14790713 1334 +9830 14792047 1298 +9831 14793345 1346 +9832 14794691 1346 +9833 14796037 2282 +9834 14798319 2282 +9835 14800601 2432 +9836 14803033 2792 +9837 14805825 1472 +9838 14807297 2042 +9839 14809339 374 +9840 14809713 374 +9841 14810087 848 +9842 14810935 206 +9843 14811141 5245 +9844 14816386 5113 +9845 14821499 5233 +9846 14826732 5197 +9847 14831929 524 +9848 14832453 506 +9849 14832959 1172 +9850 14834131 2252 +9851 14836383 2252 +9852 14838635 2252 +9853 14840887 2252 +9854 14843139 3212 +9855 14846351 2798 +9856 14849149 3212 +9857 14852361 2798 +9858 14855159 3212 +9859 14858371 2798 +9860 14861169 3212 +9861 14864381 2798 +9862 14867179 3212 +9863 14870391 2798 +9864 14873189 3212 +9865 14876401 2798 +9866 14879199 1478 +9867 14880677 1514 +9868 14882191 770 +9869 14882961 1712 +9870 14884673 1700 +9871 14886373 1322 +9872 14887695 1304 +9873 14888999 1322 +9874 14890321 1304 +9875 14891625 1292 +9876 14892917 1322 +9877 14894239 1304 +9878 14895543 1322 +9879 14896865 1304 +9880 14898169 1292 +9881 14899461 1562 +9882 14901023 1562 +9883 14902585 2276 +9884 14904861 2630 +9885 14907491 950 +9886 14908441 950 +9887 14909391 2180 +9888 14911571 2198 +9889 14913769 758 +9890 14914527 644 +9891 14915171 644 +9892 14915815 68 +9893 14915883 452 +9894 14916335 452 +9895 14916787 2600 +9896 14919387 2600 +9897 14921987 2600 +9898 14924587 2600 +9899 14927187 2600 +9900 14929787 2600 +9901 14932387 1046 +9902 14933433 1046 +9903 14934479 1958 +9904 14936437 1952 +9905 14938389 1946 +9906 14940335 1934 +9907 14942269 1958 +9908 14944227 1952 +9909 14946179 1946 +9910 14948125 1934 +9911 14950059 1154 +9912 14951213 1154 +9913 14952367 2054 +9914 14954421 2060 +9915 14956481 950 +9916 14957431 974 +9917 14958405 3944 +9918 14962349 2342 +9919 14964691 2384 +9920 14967075 314 +9921 14967389 326 +9922 14967715 464 +9923 14968179 452 +9924 14968631 458 +9925 14969089 452 +9926 14969541 812 +9927 14970353 812 +9928 14971165 1868 +9929 14973033 1946 +9930 14974979 890 +9931 14975869 890 +9932 14976759 842 +9933 14977601 848 +9934 14978449 1964 +9935 14980413 1892 +9936 14982305 1184 +9937 14983489 1136 +9938 14984625 2600 +9939 14987225 2600 +9940 14989825 2600 +9941 14992425 2600 +9942 14995025 2600 +9943 14997625 2600 +9944 15000225 3865 +9945 15004090 800 +9946 15004890 2228 +9947 15007118 680 +9948 15007798 680 +9949 15008478 680 +9950 15009158 2336 +9951 15011494 2336 +9952 15013830 2336 +9953 15016166 2336 +9954 15018502 980 +9955 15019482 638 +9956 15020120 632 +9957 15020752 3014 +9958 15023766 3032 +9959 15026798 3596 +9960 15030394 2672 +9961 15033066 956 +9962 15034022 962 +9963 15034984 956 +9964 15035940 2216 +9965 15038156 2246 +9966 15040402 2216 +9967 15042618 2246 +9968 15044864 2216 +9969 15047080 2246 +9970 15049326 2216 +9971 15051542 2246 +9972 15053788 3080 +9973 15056868 3032 +9974 15059900 3080 +9975 15062980 3026 +9976 15066006 1862 +9977 15067868 1676 +9978 15069544 1676 +9979 15071220 2906 +9980 15074126 2906 +9981 15077032 1946 +9982 15078978 1892 +9983 15080870 1592 +9984 15082462 2072 +9985 15084534 368 +9986 15084902 368 +9987 15085270 1634 +9988 15086904 1634 +9989 15088538 1634 +9990 15090172 1634 +9991 15091806 1634 +9992 15093440 1634 +9993 15095074 1634 +9994 15096708 1634 +9995 15098342 1634 +9996 15099976 1634 +9997 15101610 1634 +9998 15103244 1634 +9999 15104878 890 +10000 15105768 872 +10001 15106640 788 +10002 15107428 176 +10003 15107604 794 +10004 15108398 170 +10005 15108568 1802 +10006 15110370 1802 +10007 15112172 710 +10008 15112882 716 +10009 15113598 1772 +10010 15115370 452 +10011 15115822 2540 +10012 15118362 2612 +10013 15120974 2540 +10014 15123514 2564 +10015 15126078 1256 +10016 15127334 1208 +10017 15128542 842 +10018 15129384 728 +10019 15130112 1406 +10020 15131518 2906 +10021 15134424 2906 +10022 15137330 2036 +10023 15139366 2012 +10024 15141378 4808 +10025 15146186 4652 +10026 15150838 4826 +10027 15155664 4844 +10028 15160508 2354 +10029 15162862 842 +10030 15163704 2990 +10031 15166694 1040 +10032 15167734 980 +10033 15168714 554 +10034 15169268 1622 +10035 15170890 224 +10036 15171114 782 +10037 15171896 1328 +10038 15173224 1316 +10039 15174540 1220 +10040 15175760 1214 +10041 15176974 620 +10042 15177594 1412 +10043 15179006 1034 +10044 15180040 1436 +10045 15181476 548 +10046 15182024 734 +10047 15182758 680 +10048 15183438 734 +10049 15184172 680 +10050 15184852 734 +10051 15185586 680 +10052 15186266 734 +10053 15187000 680 +10054 15187680 734 +10055 15188414 680 +10056 15189094 734 +10057 15189828 680 +10058 15190508 734 +10059 15191242 680 +10060 15191922 734 +10061 15192656 680 +10062 15193336 734 +10063 15194070 680 +10064 15194750 734 +10065 15195484 680 +10066 15196164 734 +10067 15196898 680 +10068 15197578 1274 +10069 15198852 1814 +10070 15200666 1814 +10071 15202480 1814 +10072 15204294 1814 +10073 15206108 1088 +10074 15207196 1088 +10075 15208284 1058 +10076 15209342 1064 +10077 15210406 1256 +10078 15211662 2096 +10079 15213758 1382 +10080 15215140 1166 +10081 15216306 2642 +10082 15218948 2642 +10083 15221590 1976 +10084 15223566 1664 +10085 15225230 1736 +10086 15226966 1010 +10087 15227976 944 +10088 15228920 1244 +10089 15230164 650 +10090 15230814 5324 +10091 15236138 2492 +10092 15238630 2498 +10093 15241128 2942 +10094 15244070 320 +10095 15244390 308 +10096 15244698 200 +10097 15244898 1256 +10098 15246154 1208 +10099 15247362 1088 +10100 15248450 584 +10101 15249034 938 +10102 15249972 794 +10103 15250766 764 +10104 15251530 602 +10105 15252132 698 +10106 15252830 740 +10107 15253570 704 +10108 15254274 536 +10109 15254810 686 +10110 15255496 572 +10111 15256068 500 +10112 15256568 518 +10113 15257086 1376 +10114 15258462 512 +10115 15258974 626 +10116 15259600 608 +10117 15260208 1658 +10118 15261866 1292 +10119 15263158 1262 +10120 15264420 1100 +10121 15265520 1064 +10122 15266584 914 +10123 15267498 764 +10124 15268262 806 +10125 15269068 884 +10126 15269952 740 +10127 15270692 878 +10128 15271570 824 +10129 15272394 716 +10130 15273110 764 +10131 15273874 686 +10132 15274560 752 +10133 15275312 608 +10134 15275920 692 +10135 15276612 590 +10136 15277202 590 +10137 15277792 1160 +10138 15278952 482 +10139 15279434 392 +10140 15279826 362 +10141 15280188 332 +10142 15280520 326 +10143 15280846 284 +10144 15281130 386 +10145 15281516 230 +10146 15281746 458 +10147 15282204 470 +10148 15282674 146 +10149 15282820 1568 +10150 15284388 1088 +10151 15285476 140 +10152 15285616 344 +10153 15285960 752 +10154 15286712 638 +10155 15287350 752 +10156 15288102 638 +10157 15288740 752 +10158 15289492 638 +10159 15290130 752 +10160 15290882 638 +10161 15291520 752 +10162 15292272 638 +10163 15292910 752 +10164 15293662 638 +10165 15294300 752 +10166 15295052 638 +10167 15295690 536 +10168 15296226 644 +10169 15296870 752 +10170 15297622 644 +10171 15298266 752 +10172 15299018 644 +10173 15299662 752 +10174 15300414 644 +10175 15301058 752 +10176 15301810 644 +10177 15302454 752 +10178 15303206 644 +10179 15303850 752 +10180 15304602 644 +10181 15305246 752 +10182 15305998 644 +10183 15306642 752 +10184 15307394 644 +10185 15308038 752 +10186 15308790 644 +10187 15309434 752 +10188 15310186 644 +10189 15310830 752 +10190 15311582 590 +10191 15312172 2486 +10192 15314658 2486 +10193 15317144 2486 +10194 15319630 2486 +10195 15322116 2486 +10196 15324602 2486 +10197 15327088 2528 +10198 15329616 2528 +10199 15332144 2528 +10200 15334672 2528 +10201 15337200 2528 +10202 15339728 2528 +10203 15342256 1022 +10204 15343278 992 +10205 15344270 374 +10206 15344644 362 +10207 15345006 1454 +10208 15346460 1472 +10209 15347932 2456 +10210 15350388 866 +10211 15351254 2660 +10212 15353914 2660 +10213 15356574 860 +10214 15357434 860 +10215 15358294 842 +10216 15359136 842 +10217 15359978 854 +10218 15360832 854 +10219 15361686 1442 +10220 15363128 1784 +10221 15364912 1478 +10222 15366390 92 +10223 15366482 92 +10224 15366574 1916 +10225 15368490 1916 +10226 15370406 1922 +10227 15372328 1922 +10228 15374250 74 +10229 15374324 74 +10230 15374398 74 +10231 15374472 74 +10232 15374546 74 +10233 15374620 74 +10234 15374694 74 +10235 15374768 74 +10236 15374842 74 +10237 15374916 74 +10238 15374990 74 +10239 15375064 74 +10240 15375138 74 +10241 15375212 74 +10242 15375286 74 +10243 15375360 74 +10244 15375434 74 +10245 15375508 74 +10246 15375582 74 +10247 15375656 74 +10248 15375730 74 +10249 15375804 74 +10250 15375878 74 +10251 15375952 74 +10252 15376026 74 +10253 15376100 74 +10254 15376174 74 +10255 15376248 74 +10256 15376322 74 +10257 15376396 74 +10258 15376470 74 +10259 15376544 74 +10260 15376618 998 +10261 15377616 998 +10262 15378614 998 +10263 15379612 998 +10264 15380610 998 +10265 15381608 998 +10266 15382606 998 +10267 15383604 998 +10268 15384602 998 +10269 15385600 998 +10270 15386598 1760 +10271 15388358 1640 +10272 15389998 602 +10273 15390600 488 +10274 15391088 650 +10275 15391738 578 +10276 15392316 602 +10277 15392918 488 +10278 15393406 656 +10279 15394062 572 +10280 15394634 1382 +10281 15396016 1382 +10282 15397398 3620 +10283 15401018 3620 +10284 15404638 3620 +10285 15408258 3620 +10286 15411878 3620 +10287 15415498 3620 +10288 15419118 584 +10289 15419702 50 +10290 15419752 1322 +10291 15421074 1436 +10292 15422510 1328 +10293 15423838 1514 +10294 15425352 914 +10295 15426266 902 +10296 15427168 1016 +10297 15428184 1010 +10298 15429194 1100 +10299 15430294 1034 +10300 15431328 1028 +10301 15432356 1052 +10302 15433408 4676 +10303 15438084 1598 +10304 15439682 1598 +10305 15441280 1754 +10306 15443034 1778 +10307 15444812 824 +10308 15445636 848 +10309 15446484 854 +10310 15447338 854 +10311 15448192 1916 +10312 15450108 1916 +10313 15452024 1028 +10314 15453052 338 +10315 15453390 344 +10316 15453734 578 +10317 15454312 836 +10318 15455148 3860 +10319 15459008 2150 +10320 15461158 2138 +10321 15463296 2156 +10322 15465452 1652 +10323 15467104 1022 +10324 15468126 1022 +10325 15469148 3272 +10326 15472420 3266 +10327 15475686 3272 +10328 15478958 62 +10329 15479020 2006 +10330 15481026 1202 +10331 15482228 1220 +10332 15483448 1664 +10333 15485112 3320 +10334 15488432 1124 +10335 15489556 842 +10336 15490398 410 +10337 15490808 878 +10338 15491686 464 +10339 15492150 1706 +10340 15493856 3320 +10341 15497176 1118 +10342 15498294 842 +10343 15499136 410 +10344 15499546 878 +10345 15500424 458 +10346 15500882 3152 +10347 15504034 2276 +10348 15506310 1286 +10349 15507596 3152 +10350 15510748 2276 +10351 15513024 1316 +10352 15514340 1664 +10353 15516004 3320 +10354 15519324 1124 +10355 15520448 842 +10356 15521290 410 +10357 15521700 878 +10358 15522578 464 +10359 15523042 1706 +10360 15524748 3320 +10361 15528068 1118 +10362 15529186 842 +10363 15530028 410 +10364 15530438 878 +10365 15531316 458 +10366 15531774 3152 +10367 15534926 2276 +10368 15537202 1346 +10369 15538548 3152 +10370 15541700 2276 +10371 15543976 1316 +10372 15545292 1640 +10373 15546932 1640 +10374 15548572 1640 +10375 15550212 1640 +10376 15551852 1640 +10377 15553492 1640 +10378 15555132 1640 +10379 15556772 1640 +10380 15558412 1640 +10381 15560052 1640 +10382 15561692 1640 +10383 15563332 1640 +10384 15564972 1640 +10385 15566612 1640 +10386 15568252 1640 +10387 15569892 1640 +10388 15571532 1640 +10389 15573172 1640 +10390 15574812 1640 +10391 15576452 1640 +10392 15578092 1640 +10393 15579732 1640 +10394 15581372 1640 +10395 15583012 1640 +10396 15584652 1640 +10397 15586292 1640 +10398 15587932 1640 +10399 15589572 1640 +10400 15591212 1640 +10401 15592852 1640 +10402 15594492 1640 +10403 15596132 1640 +10404 15597772 1640 +10405 15599412 1640 +10406 15601052 1640 +10407 15602692 1640 +10408 15604332 1640 +10409 15605972 1640 +10410 15607612 1640 +10411 15609252 1640 +10412 15610892 1640 +10413 15612532 1640 +10414 15614172 1640 +10415 15615812 1640 +10416 15617452 1640 +10417 15619092 1640 +10418 15620732 1640 +10419 15622372 1640 +10420 15624012 1640 +10421 15625652 1640 +10422 15627292 1640 +10423 15628932 1640 +10424 15630572 1640 +10425 15632212 1640 +10426 15633852 1640 +10427 15635492 1640 +10428 15637132 1640 +10429 15638772 1640 +10430 15640412 1640 +10431 15642052 1640 +10432 15643692 1640 +10433 15645332 1640 +10434 15646972 1640 +10435 15648612 1640 +10436 15650252 1640 +10437 15651892 1640 +10438 15653532 1640 +10439 15655172 1640 +10440 15656812 1640 +10441 15658452 1640 +10442 15660092 1640 +10443 15661732 1640 +10444 15663372 1640 +10445 15665012 1640 +10446 15666652 1640 +10447 15668292 1640 +10448 15669932 1640 +10449 15671572 1640 +10450 15673212 1640 +10451 15674852 1640 +10452 15676492 1640 +10453 15678132 1640 +10454 15679772 1640 +10455 15681412 1640 +10456 15683052 1640 +10457 15684692 1640 +10458 15686332 1640 +10459 15687972 1640 +10460 15689612 1640 +10461 15691252 1640 +10462 15692892 1640 +10463 15694532 1640 +10464 15696172 1640 +10465 15697812 1640 +10466 15699452 1640 +10467 15701092 1640 +10468 15702732 1640 +10469 15704372 1640 +10470 15706012 1640 +10471 15707652 1640 +10472 15709292 1640 +10473 15710932 1640 +10474 15712572 1640 +10475 15714212 1640 +10476 15715852 1640 +10477 15717492 1640 +10478 15719132 1640 +10479 15720772 1640 +10480 15722412 1640 +10481 15724052 1640 +10482 15725692 1640 +10483 15727332 1640 +10484 15728972 1640 +10485 15730612 1640 +10486 15732252 1640 +10487 15733892 1640 +10488 15735532 1640 +10489 15737172 1640 +10490 15738812 1640 +10491 15740452 1640 +10492 15742092 1640 +10493 15743732 1640 +10494 15745372 1640 +10495 15747012 1640 +10496 15748652 1640 +10497 15750292 1640 +10498 15751932 1640 +10499 15753572 1640 +10500 15755212 1640 +10501 15756852 1640 +10502 15758492 1640 +10503 15760132 1640 +10504 15761772 1640 +10505 15763412 1640 +10506 15765052 1640 +10507 15766692 1640 +10508 15768332 1640 +10509 15769972 1640 +10510 15771612 1640 +10511 15773252 1640 +10512 15774892 1640 +10513 15776532 1640 +10514 15778172 1640 +10515 15779812 1640 +10516 15781452 1640 +10517 15783092 1640 +10518 15784732 1640 +10519 15786372 1640 +10520 15788012 1640 +10521 15789652 1640 +10522 15791292 1640 +10523 15792932 1640 +10524 15794572 1640 +10525 15796212 1640 +10526 15797852 1640 +10527 15799492 1640 +10528 15801132 1640 +10529 15802772 1640 +10530 15804412 1640 +10531 15806052 1640 +10532 15807692 1640 +10533 15809332 1640 +10534 15810972 1640 +10535 15812612 1640 +10536 15814252 1640 +10537 15815892 1640 +10538 15817532 1640 +10539 15819172 1640 +10540 15820812 1640 +10541 15822452 1640 +10542 15824092 1640 +10543 15825732 1640 +10544 15827372 1640 +10545 15829012 1640 +10546 15830652 1640 +10547 15832292 1640 +10548 15833932 1640 +10549 15835572 1640 +10550 15837212 1640 +10551 15838852 1640 +10552 15840492 1640 +10553 15842132 1640 +10554 15843772 1640 +10555 15845412 1640 +10556 15847052 1640 +10557 15848692 1640 +10558 15850332 1640 +10559 15851972 1640 +10560 15853612 1640 +10561 15855252 1640 +10562 15856892 1640 +10563 15858532 1640 +10564 15860172 1640 +10565 15861812 1640 +10566 15863452 1640 +10567 15865092 1640 +10568 15866732 1640 +10569 15868372 1640 +10570 15870012 1640 +10571 15871652 1640 +10572 15873292 1640 +10573 15874932 1640 +10574 15876572 1640 +10575 15878212 1640 +10576 15879852 1640 +10577 15881492 1640 +10578 15883132 1640 +10579 15884772 1640 +10580 15886412 1640 +10581 15888052 1640 +10582 15889692 1640 +10583 15891332 1640 +10584 15892972 1640 +10585 15894612 1640 +10586 15896252 1640 +10587 15897892 1640 +10588 15899532 1640 +10589 15901172 1640 +10590 15902812 1640 +10591 15904452 1640 +10592 15906092 1640 +10593 15907732 1640 +10594 15909372 1640 +10595 15911012 1640 +10596 15912652 1640 +10597 15914292 1640 +10598 15915932 1640 +10599 15917572 1640 +10600 15919212 1640 +10601 15920852 1640 +10602 15922492 1640 +10603 15924132 1640 +10604 15925772 1640 +10605 15927412 1640 +10606 15929052 1640 +10607 15930692 1640 +10608 15932332 1640 +10609 15933972 1640 +10610 15935612 1640 +10611 15937252 1640 +10612 15938892 1640 +10613 15940532 1640 +10614 15942172 1640 +10615 15943812 1640 +10616 15945452 1640 +10617 15947092 1640 +10618 15948732 1640 +10619 15950372 1640 +10620 15952012 1640 +10621 15953652 1640 +10622 15955292 1640 +10623 15956932 1640 +10624 15958572 1640 +10625 15960212 1640 +10626 15961852 1640 +10627 15963492 1640 +10628 15965132 1640 +10629 15966772 1640 +10630 15968412 1640 +10631 15970052 1640 +10632 15971692 1640 +10633 15973332 1640 +10634 15974972 1640 +10635 15976612 1640 +10636 15978252 1640 +10637 15979892 1640 +10638 15981532 1640 +10639 15983172 1640 +10640 15984812 1640 +10641 15986452 1640 +10642 15988092 1640 +10643 15989732 1640 +10644 15991372 1640 +10645 15993012 1640 +10646 15994652 1640 +10647 15996292 1640 +10648 15997932 1640 +10649 15999572 1640 +10650 16001212 1640 +10651 16002852 1640 +10652 16004492 1640 +10653 16006132 1640 +10654 16007772 1640 +10655 16009412 1640 +10656 16011052 1640 +10657 16012692 1640 +10658 16014332 1640 +10659 16015972 1640 +10660 16017612 1640 +10661 16019252 1640 +10662 16020892 1640 +10663 16022532 1640 +10664 16024172 1640 +10665 16025812 1640 +10666 16027452 1640 +10667 16029092 1640 +10668 16030732 1640 +10669 16032372 1640 +10670 16034012 1640 +10671 16035652 1640 +10672 16037292 1640 +10673 16038932 1640 +10674 16040572 1640 +10675 16042212 1640 +10676 16043852 1640 +10677 16045492 1640 +10678 16047132 1640 +10679 16048772 1640 +10680 16050412 1640 +10681 16052052 1640 +10682 16053692 1640 +10683 16055332 1640 +10684 16056972 1640 +10685 16058612 1640 +10686 16060252 1640 +10687 16061892 1640 +10688 16063532 1640 +10689 16065172 1640 +10690 16066812 1640 +10691 16068452 1640 +10692 16070092 1640 +10693 16071732 1640 +10694 16073372 1640 +10695 16075012 1640 +10696 16076652 1640 +10697 16078292 1640 +10698 16079932 1640 +10699 16081572 1640 +10700 16083212 1640 +10701 16084852 1640 +10702 16086492 1640 +10703 16088132 1640 +10704 16089772 1640 +10705 16091412 1640 +10706 16093052 1640 +10707 16094692 1640 +10708 16096332 1640 +10709 16097972 1640 +10710 16099612 1640 +10711 16101252 1640 +10712 16102892 1640 +10713 16104532 1640 +10714 16106172 1640 +10715 16107812 1640 +10716 16109452 1640 +10717 16111092 1640 +10718 16112732 1640 +10719 16114372 1640 +10720 16116012 1640 +10721 16117652 1640 +10722 16119292 1640 +10723 16120932 1640 +10724 16122572 1640 +10725 16124212 1640 +10726 16125852 1640 +10727 16127492 1640 +10728 16129132 1640 +10729 16130772 1640 +10730 16132412 1640 +10731 16134052 1640 +10732 16135692 1640 +10733 16137332 1640 +10734 16138972 1640 +10735 16140612 1640 +10736 16142252 1640 +10737 16143892 1640 +10738 16145532 1640 +10739 16147172 1640 +10740 16148812 1640 +10741 16150452 1640 +10742 16152092 1640 +10743 16153732 1640 +10744 16155372 1640 +10745 16157012 1640 +10746 16158652 1640 +10747 16160292 1640 +10748 16161932 1640 +10749 16163572 1640 +10750 16165212 1640 +10751 16166852 1640 +10752 16168492 1640 +10753 16170132 1640 +10754 16171772 1640 +10755 16173412 1640 +10756 16175052 1640 +10757 16176692 1640 +10758 16178332 1640 +10759 16179972 1640 +10760 16181612 1640 +10761 16183252 1640 +10762 16184892 1640 +10763 16186532 1640 +10764 16188172 1640 +10765 16189812 1640 +10766 16191452 1640 +10767 16193092 1640 +10768 16194732 1640 +10769 16196372 1640 +10770 16198012 1640 +10771 16199652 1640 +10772 16201292 1640 +10773 16202932 1640 +10774 16204572 1640 +10775 16206212 1640 +10776 16207852 1640 +10777 16209492 1640 +10778 16211132 1640 +10779 16212772 1640 +10780 16214412 1640 +10781 16216052 1640 +10782 16217692 1640 +10783 16219332 1640 +10784 16220972 1640 +10785 16222612 1640 +10786 16224252 1640 +10787 16225892 1640 +10788 16227532 1640 +10789 16229172 1640 +10790 16230812 1640 +10791 16232452 1640 +10792 16234092 1640 +10793 16235732 1640 +10794 16237372 1640 +10795 16239012 1640 +10796 16240652 1640 +10797 16242292 1640 +10798 16243932 1640 +10799 16245572 1640 +10800 16247212 1640 +10801 16248852 1640 +10802 16250492 1640 +10803 16252132 1640 +10804 16253772 1640 +10805 16255412 1640 +10806 16257052 1640 +10807 16258692 1640 +10808 16260332 1640 +10809 16261972 1640 +10810 16263612 1640 +10811 16265252 1640 +10812 16266892 1640 +10813 16268532 1640 +10814 16270172 1640 +10815 16271812 1640 +10816 16273452 1640 +10817 16275092 1640 +10818 16276732 1640 +10819 16278372 1640 +10820 16280012 1640 +10821 16281652 1640 +10822 16283292 1640 +10823 16284932 1640 +10824 16286572 1640 +10825 16288212 1640 +10826 16289852 1640 +10827 16291492 1640 +10828 16293132 1640 +10829 16294772 1640 +10830 16296412 1640 +10831 16298052 1640 +10832 16299692 1640 +10833 16301332 1640 +10834 16302972 1640 +10835 16304612 1640 +10836 16306252 1640 +10837 16307892 1640 +10838 16309532 1640 +10839 16311172 1640 +10840 16312812 1640 +10841 16314452 1640 +10842 16316092 1640 +10843 16317732 1640 +10844 16319372 1640 +10845 16321012 1640 +10846 16322652 1640 +10847 16324292 1640 +10848 16325932 1640 +10849 16327572 1640 +10850 16329212 1640 +10851 16330852 1640 +10852 16332492 1640 +10853 16334132 1640 +10854 16335772 1640 +10855 16337412 1640 +10856 16339052 1640 +10857 16340692 1640 +10858 16342332 1640 +10859 16343972 1640 +10860 16345612 1640 +10861 16347252 1640 +10862 16348892 1640 +10863 16350532 1640 +10864 16352172 1640 +10865 16353812 1640 +10866 16355452 1640 +10867 16357092 1640 +10868 16358732 1640 +10869 16360372 1640 +10870 16362012 1640 +10871 16363652 1640 +10872 16365292 1640 +10873 16366932 1640 +10874 16368572 1640 +10875 16370212 1640 +10876 16371852 1640 +10877 16373492 1640 +10878 16375132 1640 +10879 16376772 1640 +10880 16378412 1640 +10881 16380052 1640 +10882 16381692 1640 +10883 16383332 1640 +10884 16384972 1640 +10885 16386612 1640 +10886 16388252 1640 +10887 16389892 1640 +10888 16391532 1640 +10889 16393172 1640 +10890 16394812 1640 +10891 16396452 1640 +10892 16398092 1640 +10893 16399732 1640 +10894 16401372 1640 +10895 16403012 1640 +10896 16404652 1640 +10897 16406292 1640 +10898 16407932 1640 +10899 16409572 1640 +10900 16411212 1640 +10901 16412852 1640 +10902 16414492 1640 +10903 16416132 1640 +10904 16417772 1640 +10905 16419412 1640 +10906 16421052 1640 +10907 16422692 1640 +10908 16424332 1640 +10909 16425972 1640 +10910 16427612 1640 +10911 16429252 1640 +10912 16430892 818 +10913 16431710 4238 +10914 16435948 1802 +10915 16437750 1802 +10916 16439552 1790 +10917 16441342 1784 +10918 16443126 248 +10919 16443374 1196 +10920 16444570 1058 +10921 16445628 1406 +10922 16447034 1388 +10923 16448422 1406 +10924 16449828 1388 +10925 16451216 1406 +10926 16452622 1388 +10927 16454010 1406 +10928 16455416 1388 +10929 16456804 1406 +10930 16458210 1400 +10931 16459610 1406 +10932 16461016 1400 +10933 16462416 1406 +10934 16463822 1400 +10935 16465222 1406 +10936 16466628 1400 +10937 16468028 2678 +10938 16470706 578 +10939 16471284 650 +10940 16471934 632 +10941 16472566 650 +10942 16473216 632 +10943 16473848 2984 +10944 16476832 1526 +10945 16478358 854 +10946 16479212 902 +10947 16480114 2426 +10948 16482540 2432 +10949 16484972 494 +10950 16485466 2060 +10951 16487526 2066 +10952 16489592 2060 +10953 16491652 2066 +10954 16493718 1058 +10955 16494776 1040 +10956 16495816 716 +10957 16496532 716 +10958 16497248 1106 +10959 16498354 1058 +10960 16499412 1724 +10961 16501136 1724 +10962 16502860 1064 +10963 16503924 896 +10964 16504820 728 +10965 16505548 728 +10966 16506276 1712 +10967 16507988 1712 +10968 16509700 1712 +10969 16511412 1670 +10970 16513082 1670 +10971 16514752 1670 +10972 16516422 2942 +10973 16519364 2942 +10974 16522306 3068 +10975 16525374 32 +10976 16525406 212 +10977 16525618 764 +10978 16526382 1136 +10979 16527518 2024 +10980 16529542 302 +10981 16529844 2084 +10982 16531928 698 +10983 16532626 1922 +10984 16534548 2378 +10985 16536926 1436 +10986 16538362 1442 +10987 16539804 1388 +10988 16541192 2288 +10989 16543480 380 +10990 16543860 392 +10991 16544252 1682 +10992 16545934 1742 +10993 16547676 2378 +10994 16550054 1064 +10995 16551118 1082 +10996 16552200 1082 +10997 16553282 1478 +10998 16554760 932 +10999 16555692 932 +11000 16556624 818 +11001 16557442 932 +11002 16558374 818 +11003 16559192 2402 +11004 16561594 2402 +11005 16563996 1058 +11006 16565054 1064 +11007 16566118 2450 +11008 16568568 2450 +11009 16571018 308 +11010 16571326 308 +11011 16571634 308 +11012 16571942 308 +11013 16572250 308 +11014 16572558 308 +11015 16572866 308 +11016 16573174 308 +11017 16573482 644 +11018 16574126 2000 +11019 16576126 272 +11020 16576398 272 +11021 16576670 1628 +11022 16578298 1628 +11023 16579926 452 +11024 16580378 458 +11025 16580836 404 +11026 16581240 404 +11027 16581644 1964 +11028 16583608 1802 +11029 16585410 1964 +11030 16587374 1802 +11031 16589176 1964 +11032 16591140 1802 +11033 16592942 1964 +11034 16594906 1802 +11035 16596708 1568 +11036 16598276 1580 +11037 16599856 1256 +11038 16601112 1256 +11039 16602368 1256 +11040 16603624 1256 +11041 16604880 1958 +11042 16606838 1952 +11043 16608790 1274 +11044 16610064 1256 +11045 16611320 764 +11046 16612084 764 +11047 16612848 1688 +11048 16614536 668 +11049 16615204 50 +11050 16615254 1274 +11051 16616528 1250 +11052 16617778 3074 +11053 16620852 3032 +11054 16623884 386 +11055 16624270 386 +11056 16624656 2552 +11057 16627208 902 +11058 16628110 2552 +11059 16630662 902 +11060 16631564 2552 +11061 16634116 902 +11062 16635018 1466 +11063 16636484 1382 +11064 16637866 488 +11065 16638354 2402 +11066 16640756 884 +11067 16641640 890 +11068 16642530 764 +11069 16643294 764 +11070 16644058 764 +11071 16644822 2462 +11072 16647284 554 +11073 16647838 512 +11074 16648350 1034 +11075 16649384 518 +11076 16649902 518 +11077 16650420 1982 +11078 16652402 2000 +11079 16654402 2552 +11080 16656954 902 +11081 16657856 2552 +11082 16660408 902 +11083 16661310 2552 +11084 16663862 902 +11085 16664764 2552 +11086 16667316 902 +11087 16668218 2552 +11088 16670770 902 +11089 16671672 2552 +11090 16674224 902 +11091 16675126 2552 +11092 16677678 902 +11093 16678580 2552 +11094 16681132 902 +11095 16682034 2552 +11096 16684586 902 +11097 16685488 710 +11098 16686198 32 +11099 16686230 812 +11100 16687042 344 +11101 16687386 344 +11102 16687730 1616 +11103 16689346 1538 +11104 16690884 1538 +11105 16692422 1100 +11106 16693522 1082 +11107 16694604 1106 +11108 16695710 1046 +11109 16696756 2072 +11110 16698828 2072 +11111 16700900 650 +11112 16701550 674 +11113 16702224 698 +11114 16702922 614 +11115 16703536 692 +11116 16704228 734 +11117 16704962 1640 +11118 16706602 1622 +11119 16708224 4370 +11120 16712594 2198 +11121 16714792 620 +11122 16715412 614 +11123 16716026 620 +11124 16716646 614 +11125 16717260 1256 +11126 16718516 1268 +11127 16719784 248 +11128 16720032 3056 +11129 16723088 1946 +11130 16725034 1946 +11131 16726980 3044 +11132 16730024 938 +11133 16730962 734 +11134 16731696 734 +11135 16732430 740 +11136 16733170 740 +11137 16733910 722 +11138 16734632 740 +11139 16735372 716 +11140 16736088 740 +11141 16736828 710 +11142 16737538 740 +11143 16738278 704 +11144 16738982 722 +11145 16739704 2534 +11146 16742238 506 +11147 16742744 3098 +11148 16745842 3098 +11149 16748940 3380 +11150 16752320 3380 +11151 16755700 3380 +11152 16759080 3380 +11153 16762460 2618 +11154 16765078 950 +11155 16766028 944 +11156 16766972 950 +11157 16767922 950 +11158 16768872 944 +11159 16769816 938 +11160 16770754 944 +11161 16771698 938 +11162 16772636 2144 +11163 16774780 1118 +11164 16775898 1448 +11165 16777346 620 +11166 16777966 614 +11167 16778580 1328 +11168 16779908 1328 +11169 16781236 3572 +11170 16784808 3542 +11171 16788350 3548 +11172 16791898 3572 +11173 16795470 2132 +11174 16797602 2210 +11175 16799812 2132 +11176 16801944 2210 +11177 16804154 2132 +11178 16806286 2210 +11179 16808496 2132 +11180 16810628 2210 +11181 16812838 1004 +11182 16813842 998 +11183 16814840 1802 +11184 16816642 1802 +11185 16818444 1856 +11186 16820300 1856 +11187 16822156 1856 +11188 16824012 1856 +11189 16825868 332 +11190 16826200 1994 +11191 16828194 1958 +11192 16830152 956 +11193 16831108 950 +11194 16832058 1202 +11195 16833260 1238 +11196 16834498 2786 +11197 16837284 110 +11198 16837394 1364 +11199 16838758 1310 +11200 16840068 1370 +11201 16841438 1310 +11202 16842748 1256 +11203 16844004 1286 +11204 16845290 1316 +11205 16846606 1310 +11206 16847916 1340 +11207 16849256 1340 +11208 16850596 1232 +11209 16851828 1508 +11210 16853336 2174 +11211 16855510 668 +11212 16856178 644 +11213 16856822 638 +11214 16857460 1310 +11215 16858770 1256 +11216 16860026 1892 +11217 16861918 590 +11218 16862508 1388 +11219 16863896 938 +11220 16864834 938 +11221 16865772 524 +11222 16866296 3026 +11223 16869322 2690 +11224 16872012 3026 +11225 16875038 2678 +11226 16877716 680 +11227 16878396 674 +11228 16879070 2294 +11229 16881364 2462 +11230 16883826 1358 +11231 16885184 1358 +11232 16886542 1358 +11233 16887900 1358 +11234 16889258 1358 +11235 16890616 1358 +11236 16891974 1358 +11237 16893332 1358 +11238 16894690 1358 +11239 16896048 3152 +11240 16899200 3098 +11241 16902298 80 +11242 16902378 3248 +11243 16905626 758 +11244 16906384 1106 +11245 16907490 740 +11246 16908230 1328 +11247 16909558 2450 +11248 16912008 1400 +11249 16913408 4700 +11250 16918108 2624 +11251 16920732 998 +11252 16921730 2378 +11253 16924108 1394 +11254 16925502 602 +11255 16926104 3758 +11256 16929862 3122 +11257 16932984 3110 +11258 16936094 752 +11259 16936846 1106 +11260 16937952 734 +11261 16938686 1322 +11262 16940008 2450 +11263 16942458 1400 +11264 16943858 4688 +11265 16948546 2618 +11266 16951164 1004 +11267 16952168 2378 +11268 16954546 1388 +11269 16955934 602 +11270 16956536 3734 +11271 16960270 3116 +11272 16963386 3116 +11273 16966502 860 +11274 16967362 860 +11275 16968222 542 +11276 16968764 542 +11277 16969306 248 +11278 16969554 1676 +11279 16971230 1676 +11280 16972906 1676 +11281 16974582 2378 +11282 16976960 1112 +11283 16978072 1136 +11284 16979208 6314 +11285 16985522 6314 +11286 16991836 6284 +11287 16998120 428 +11288 16998548 2510 +11289 17001058 9145 +11290 17010203 1910 +11291 17012113 752 +11292 17012865 734 +11293 17013599 722 +11294 17014321 716 +11295 17015037 734 +11296 17015771 728 +11297 17016499 746 +11298 17017245 728 +11299 17017973 1730 +11300 17019703 1676 +11301 17021379 68 +11302 17021447 1550 +11303 17022997 170 +11304 17023167 2048 +11305 17025215 2048 +11306 17027263 2048 +11307 17029311 2048 +11308 17031359 2048 +11309 17033407 2048 +11310 17035455 2048 +11311 17037503 2048 +11312 17039551 2156 +11313 17041707 2156 +11314 17043863 1562 +11315 17045425 1586 +11316 17047011 1574 +11317 17048585 1562 +11318 17050147 1556 +11319 17051703 1562 +11320 17053265 1586 +11321 17054851 1574 +11322 17056425 1562 +11323 17057987 1556 +11324 17059543 644 +11325 17060187 644 +11326 17060831 4274 +11327 17065105 4274 +11328 17069379 1568 +11329 17070947 1040 +11330 17071987 872 +11331 17072859 794 +11332 17073653 794 +11333 17074447 2708 +11334 17077155 950 +11335 17078105 950 +11336 17079055 2384 +11337 17081439 2384 +11338 17083823 2384 +11339 17086207 2384 +11340 17088591 2384 +11341 17090975 2384 +11342 17093359 998 +11343 17094357 332 +11344 17094689 470 +11345 17095159 3188 +11346 17098347 1322 +11347 17099669 1322 +11348 17100991 1316 +11349 17102307 1316 +11350 17103623 1538 +11351 17105161 884 +11352 17106045 464 +11353 17106509 446 +11354 17106955 4010 +11355 17110965 1928 +11356 17112893 1838 +11357 17114731 728 +11358 17115459 728 +11359 17116187 4274 +11360 17120461 1352 +11361 17121813 782 +11362 17122595 782 +11363 17123377 2024 +11364 17125401 2018 +11365 17127419 2018 +11366 17129437 2024 +11367 17131461 1100 +11368 17132561 776 +11369 17133337 776 +11370 17134113 1478 +11371 17135591 1478 +11372 17137069 1478 +11373 17138547 1478 +11374 17140025 1820 +11375 17141845 914 +11376 17142759 650 +11377 17143409 620 +11378 17144029 650 +11379 17144679 620 +11380 17145299 4784 +11381 17150083 4826 +11382 17154909 740 +11383 17155649 764 +11384 17156413 1058 +11385 17157471 938 +11386 17158409 74 +11387 17158483 2564 +11388 17161047 1856 +11389 17162903 1856 +11390 17164759 1856 +11391 17166615 1856 +11392 17168471 1856 +11393 17170327 1856 +11394 17172183 1856 +11395 17174039 1856 +11396 17175895 1856 +11397 17177751 1856 +11398 17179607 1856 +11399 17181463 1856 +11400 17183319 1856 +11401 17185175 1856 +11402 17187031 1856 +11403 17188887 1856 +11404 17190743 1856 +11405 17192599 1856 +11406 17194455 1856 +11407 17196311 1856 +11408 17198167 1856 +11409 17200023 1856 +11410 17201879 1856 +11411 17203735 1856 +11412 17205591 1856 +11413 17207447 1856 +11414 17209303 1856 +11415 17211159 1856 +11416 17213015 1856 +11417 17214871 1856 +11418 17216727 1856 +11419 17218583 1856 +11420 17220439 1856 +11421 17222295 1856 +11422 17224151 1856 +11423 17226007 1856 +11424 17227863 1856 +11425 17229719 1856 +11426 17231575 1856 +11427 17233431 1856 +11428 17235287 1856 +11429 17237143 1856 +11430 17238999 1856 +11431 17240855 1856 +11432 17242711 1856 +11433 17244567 1856 +11434 17246423 1856 +11435 17248279 1856 +11436 17250135 1856 +11437 17251991 1856 +11438 17253847 1856 +11439 17255703 1856 +11440 17257559 1856 +11441 17259415 1856 +11442 17261271 1856 +11443 17263127 1856 +11444 17264983 1856 +11445 17266839 1856 +11446 17268695 1856 +11447 17270551 1856 +11448 17272407 1856 +11449 17274263 1856 +11450 17276119 1856 +11451 17277975 1856 +11452 17279831 1856 +11453 17281687 1856 +11454 17283543 1856 +11455 17285399 1856 +11456 17287255 1856 +11457 17289111 1856 +11458 17290967 1856 +11459 17292823 1856 +11460 17294679 1856 +11461 17296535 1856 +11462 17298391 1856 +11463 17300247 1856 +11464 17302103 1856 +11465 17303959 1856 +11466 17305815 1856 +11467 17307671 1856 +11468 17309527 1856 +11469 17311383 1856 +11470 17313239 1856 +11471 17315095 1856 +11472 17316951 1856 +11473 17318807 1856 +11474 17320663 1856 +11475 17322519 1856 +11476 17324375 1856 +11477 17326231 1856 +11478 17328087 1856 +11479 17329943 1856 +11480 17331799 1856 +11481 17333655 1856 +11482 17335511 1856 +11483 17337367 1856 +11484 17339223 1856 +11485 17341079 1856 +11486 17342935 1856 +11487 17344791 1856 +11488 17346647 1856 +11489 17348503 1856 +11490 17350359 1856 +11491 17352215 1856 +11492 17354071 1856 +11493 17355927 1856 +11494 17357783 1856 +11495 17359639 1856 +11496 17361495 1856 +11497 17363351 1856 +11498 17365207 1856 +11499 17367063 1856 +11500 17368919 1856 +11501 17370775 1856 +11502 17372631 1856 +11503 17374487 1856 +11504 17376343 1856 +11505 17378199 1856 +11506 17380055 1856 +11507 17381911 1856 +11508 17383767 1856 +11509 17385623 1856 +11510 17387479 1856 +11511 17389335 1856 +11512 17391191 1856 +11513 17393047 1856 +11514 17394903 1856 +11515 17396759 1856 +11516 17398615 1856 +11517 17400471 1856 +11518 17402327 1856 +11519 17404183 1856 +11520 17406039 1856 +11521 17407895 1856 +11522 17409751 1856 +11523 17411607 1856 +11524 17413463 1856 +11525 17415319 1856 +11526 17417175 1856 +11527 17419031 1856 +11528 17420887 1856 +11529 17422743 1856 +11530 17424599 1856 +11531 17426455 1856 +11532 17428311 1856 +11533 17430167 1856 +11534 17432023 1856 +11535 17433879 1856 +11536 17435735 1856 +11537 17437591 1856 +11538 17439447 1856 +11539 17441303 1856 +11540 17443159 1856 +11541 17445015 1856 +11542 17446871 1856 +11543 17448727 1856 +11544 17450583 1856 +11545 17452439 1856 +11546 17454295 1856 +11547 17456151 1856 +11548 17458007 1856 +11549 17459863 1856 +11550 17461719 1856 +11551 17463575 1856 +11552 17465431 1856 +11553 17467287 1856 +11554 17469143 1856 +11555 17470999 1856 +11556 17472855 1856 +11557 17474711 1856 +11558 17476567 1856 +11559 17478423 1856 +11560 17480279 1856 +11561 17482135 1856 +11562 17483991 1856 +11563 17485847 1856 +11564 17487703 1856 +11565 17489559 1856 +11566 17491415 1856 +11567 17493271 1856 +11568 17495127 1856 +11569 17496983 1856 +11570 17498839 1856 +11571 17500695 1856 +11572 17502551 1856 +11573 17504407 1856 +11574 17506263 1856 +11575 17508119 1856 +11576 17509975 1856 +11577 17511831 1856 +11578 17513687 1856 +11579 17515543 1856 +11580 17517399 1856 +11581 17519255 1856 +11582 17521111 1856 +11583 17522967 1856 +11584 17524823 1856 +11585 17526679 1856 +11586 17528535 1856 +11587 17530391 1856 +11588 17532247 1856 +11589 17534103 1856 +11590 17535959 1856 +11591 17537815 1856 +11592 17539671 1856 +11593 17541527 1856 +11594 17543383 1856 +11595 17545239 1856 +11596 17547095 1856 +11597 17548951 1856 +11598 17550807 1856 +11599 17552663 1856 +11600 17554519 1856 +11601 17556375 1856 +11602 17558231 1856 +11603 17560087 1856 +11604 17561943 1856 +11605 17563799 1856 +11606 17565655 1856 +11607 17567511 1856 +11608 17569367 1856 +11609 17571223 1856 +11610 17573079 1856 +11611 17574935 1856 +11612 17576791 1856 +11613 17578647 1856 +11614 17580503 1856 +11615 17582359 1856 +11616 17584215 1856 +11617 17586071 1856 +11618 17587927 1856 +11619 17589783 1856 +11620 17591639 1856 +11621 17593495 1856 +11622 17595351 1856 +11623 17597207 1856 +11624 17599063 1856 +11625 17600919 1856 +11626 17602775 1856 +11627 17604631 1856 +11628 17606487 1856 +11629 17608343 1856 +11630 17610199 1856 +11631 17612055 1856 +11632 17613911 1856 +11633 17615767 1856 +11634 17617623 1856 +11635 17619479 1856 +11636 17621335 1856 +11637 17623191 1856 +11638 17625047 1856 +11639 17626903 1856 +11640 17628759 1856 +11641 17630615 1856 +11642 17632471 1856 +11643 17634327 1856 +11644 17636183 1856 +11645 17638039 1856 +11646 17639895 1856 +11647 17641751 1856 +11648 17643607 1856 +11649 17645463 1856 +11650 17647319 1856 +11651 17649175 1856 +11652 17651031 1856 +11653 17652887 1856 +11654 17654743 1856 +11655 17656599 1856 +11656 17658455 1856 +11657 17660311 1856 +11658 17662167 1856 +11659 17664023 1856 +11660 17665879 1856 +11661 17667735 1856 +11662 17669591 1856 +11663 17671447 1856 +11664 17673303 1856 +11665 17675159 1856 +11666 17677015 1856 +11667 17678871 1856 +11668 17680727 1856 +11669 17682583 1856 +11670 17684439 1856 +11671 17686295 1856 +11672 17688151 1856 +11673 17690007 1856 +11674 17691863 1856 +11675 17693719 1856 +11676 17695575 1856 +11677 17697431 1856 +11678 17699287 1856 +11679 17701143 1856 +11680 17702999 1856 +11681 17704855 1856 +11682 17706711 1856 +11683 17708567 1856 +11684 17710423 1856 +11685 17712279 1856 +11686 17714135 1856 +11687 17715991 1856 +11688 17717847 1856 +11689 17719703 1856 +11690 17721559 1856 +11691 17723415 1856 +11692 17725271 1856 +11693 17727127 1856 +11694 17728983 1856 +11695 17730839 1856 +11696 17732695 1856 +11697 17734551 1856 +11698 17736407 1856 +11699 17738263 1856 +11700 17740119 1856 +11701 17741975 1856 +11702 17743831 1856 +11703 17745687 1856 +11704 17747543 1856 +11705 17749399 1856 +11706 17751255 1856 +11707 17753111 1856 +11708 17754967 1856 +11709 17756823 1856 +11710 17758679 1856 +11711 17760535 1856 +11712 17762391 1856 +11713 17764247 1856 +11714 17766103 1856 +11715 17767959 1856 +11716 17769815 1856 +11717 17771671 1856 +11718 17773527 1856 +11719 17775383 1856 +11720 17777239 1856 +11721 17779095 1856 +11722 17780951 1856 +11723 17782807 1856 +11724 17784663 1856 +11725 17786519 1856 +11726 17788375 1856 +11727 17790231 1856 +11728 17792087 1856 +11729 17793943 1856 +11730 17795799 1856 +11731 17797655 1856 +11732 17799511 1856 +11733 17801367 1856 +11734 17803223 1856 +11735 17805079 1856 +11736 17806935 1856 +11737 17808791 1856 +11738 17810647 1856 +11739 17812503 1856 +11740 17814359 1856 +11741 17816215 1856 +11742 17818071 1856 +11743 17819927 1856 +11744 17821783 1856 +11745 17823639 1856 +11746 17825495 1856 +11747 17827351 1856 +11748 17829207 1856 +11749 17831063 1856 +11750 17832919 1856 +11751 17834775 1856 +11752 17836631 1856 +11753 17838487 1856 +11754 17840343 1856 +11755 17842199 1856 +11756 17844055 1856 +11757 17845911 1856 +11758 17847767 1856 +11759 17849623 1856 +11760 17851479 1856 +11761 17853335 1856 +11762 17855191 1856 +11763 17857047 1856 +11764 17858903 1856 +11765 17860759 1856 +11766 17862615 1856 +11767 17864471 1856 +11768 17866327 1856 +11769 17868183 1856 +11770 17870039 1856 +11771 17871895 1856 +11772 17873751 1856 +11773 17875607 1856 +11774 17877463 1856 +11775 17879319 1856 +11776 17881175 1856 +11777 17883031 1856 +11778 17884887 1856 +11779 17886743 1856 +11780 17888599 1856 +11781 17890455 1856 +11782 17892311 1856 +11783 17894167 1856 +11784 17896023 1856 +11785 17897879 1856 +11786 17899735 1856 +11787 17901591 1856 +11788 17903447 1856 +11789 17905303 1856 +11790 17907159 1856 +11791 17909015 1856 +11792 17910871 1856 +11793 17912727 1856 +11794 17914583 1856 +11795 17916439 1856 +11796 17918295 1856 +11797 17920151 1856 +11798 17922007 1856 +11799 17923863 1856 +11800 17925719 1856 +11801 17927575 1856 +11802 17929431 1856 +11803 17931287 1856 +11804 17933143 1856 +11805 17934999 1856 +11806 17936855 1856 +11807 17938711 1856 +11808 17940567 1856 +11809 17942423 1856 +11810 17944279 1856 +11811 17946135 1856 +11812 17947991 1856 +11813 17949847 1856 +11814 17951703 1856 +11815 17953559 1856 +11816 17955415 1856 +11817 17957271 1856 +11818 17959127 1856 +11819 17960983 1856 +11820 17962839 1856 +11821 17964695 1856 +11822 17966551 1856 +11823 17968407 1856 +11824 17970263 1856 +11825 17972119 1856 +11826 17973975 1856 +11827 17975831 1856 +11828 17977687 1856 +11829 17979543 1856 +11830 17981399 1856 +11831 17983255 1856 +11832 17985111 1856 +11833 17986967 1856 +11834 17988823 1856 +11835 17990679 1856 +11836 17992535 1856 +11837 17994391 1856 +11838 17996247 1856 +11839 17998103 1856 +11840 17999959 1856 +11841 18001815 1856 +11842 18003671 1856 +11843 18005527 1856 +11844 18007383 1856 +11845 18009239 1856 +11846 18011095 1856 +11847 18012951 1856 +11848 18014807 1856 +11849 18016663 1856 +11850 18018519 1856 +11851 18020375 1856 +11852 18022231 1856 +11853 18024087 1856 +11854 18025943 1856 +11855 18027799 1856 +11856 18029655 1856 +11857 18031511 1856 +11858 18033367 1856 +11859 18035223 1856 +11860 18037079 1856 +11861 18038935 1856 +11862 18040791 1856 +11863 18042647 1856 +11864 18044503 1856 +11865 18046359 1856 +11866 18048215 1856 +11867 18050071 1856 +11868 18051927 1856 +11869 18053783 1856 +11870 18055639 1856 +11871 18057495 1856 +11872 18059351 1856 +11873 18061207 1856 +11874 18063063 1856 +11875 18064919 1856 +11876 18066775 1856 +11877 18068631 1856 +11878 18070487 1856 +11879 18072343 1856 +11880 18074199 1856 +11881 18076055 1856 +11882 18077911 1856 +11883 18079767 1856 +11884 18081623 1856 +11885 18083479 1856 +11886 18085335 1856 +11887 18087191 1856 +11888 18089047 1856 +11889 18090903 1856 +11890 18092759 1856 +11891 18094615 1856 +11892 18096471 1856 +11893 18098327 1856 +11894 18100183 1856 +11895 18102039 1856 +11896 18103895 1856 +11897 18105751 1856 +11898 18107607 1856 +11899 18109463 1856 +11900 18111319 1856 +11901 18113175 1856 +11902 18115031 1856 +11903 18116887 1856 +11904 18118743 1856 +11905 18120599 1856 +11906 18122455 1856 +11907 18124311 1856 +11908 18126167 1856 +11909 18128023 1856 +11910 18129879 1856 +11911 18131735 1856 +11912 18133591 1856 +11913 18135447 1856 +11914 18137303 1856 +11915 18139159 1856 +11916 18141015 1856 +11917 18142871 1856 +11918 18144727 1856 +11919 18146583 1856 +11920 18148439 1856 +11921 18150295 1856 +11922 18152151 1856 +11923 18154007 1856 +11924 18155863 1856 +11925 18157719 1856 +11926 18159575 1856 +11927 18161431 1856 +11928 18163287 692 +11929 18163979 692 +11930 18164671 692 +11931 18165363 134 +11932 18165497 134 +11933 18165631 812 +11934 18166443 788 +11935 18167231 812 +11936 18168043 788 +11937 18168831 974 +11938 18169805 974 +11939 18170779 974 +11940 18171753 1178 +11941 18172931 1214 +11942 18174145 914 +11943 18175059 1346 +11944 18176405 1328 +11945 18177733 1934 +11946 18179667 1904 +11947 18181571 1274 +11948 18182845 56 +11949 18182901 1274 +11950 18184175 56 +11951 18184231 434 +11952 18184665 440 +11953 18185105 386 +11954 18185491 1352 +11955 18186843 4346 +11956 18191189 2108 +11957 18193297 2090 +11958 18195387 2096 +11959 18197483 2096 +11960 18199579 2096 +11961 18201675 2096 +11962 18203771 2096 +11963 18205867 2096 +11964 18207963 1004 +11965 18208967 1286 +11966 18210253 1286 +11967 18211539 146 +11968 18211685 578 +11969 18212263 146 +11970 18212409 578 +11971 18212987 146 +11972 18213133 578 +11973 18213711 146 +11974 18213857 578 +11975 18214435 2054 +11976 18216489 3182 +11977 18219671 3182 +11978 18222853 926 +11979 18223779 914 +11980 18224693 1874 +11981 18226567 1832 +11982 18228399 2941 +11983 18231340 2941 +11984 18234281 1178 +11985 18235459 1142 +11986 18236601 1934 +11987 18238535 1382 +11988 18239917 1382 +11989 18241299 1790 +11990 18243089 854 +11991 18243943 884 +11992 18244827 632 +11993 18245459 56 +11994 18245515 626 +11995 18246141 68 +11996 18246209 1898 +11997 18248107 1898 +11998 18250005 1898 +11999 18251903 1898 +12000 18253801 2882 +12001 18256683 2816 +12002 18259499 1124 +12003 18260623 3878 +12004 18264501 3866 +12005 18268367 3884 +12006 18272251 1172 +12007 18273423 1178 +12008 18274601 1166 +12009 18275767 1184 +12010 18276951 2642 +12011 18279593 2648 +12012 18282241 2648 +12013 18284889 2648 +12014 18287537 692 +12015 18288229 18529 +12016 18306758 4418 +12017 18311176 1460 +12018 18312636 1880 +12019 18314516 1520 +12020 18316036 1694 +12021 18317730 1694 +12022 18319424 500 +12023 18319924 500 +12024 18320424 1484 +12025 18321908 1496 +12026 18323404 1256 +12027 18324660 1262 +12028 18325922 314 +12029 18326236 314 +12030 18326550 314 +12031 18326864 3440 +12032 18330304 1478 +12033 18331782 2102 +12034 18333884 1418 +12035 18335302 1940 +12036 18337242 1460 +12037 18338702 104 +12038 18338806 1538 +12039 18340344 104 +12040 18340448 1538 +12041 18341986 104 +12042 18342090 1538 +12043 18343628 104 +12044 18343732 1538 +12045 18345270 872 +12046 18346142 1958 +12047 18348100 2084 +12048 18350184 2084 +12049 18352268 1784 +12050 18354052 1784 +12051 18355836 1208 +12052 18357044 1364 +12053 18358408 1628 +12054 18360036 920 +12055 18360956 914 +12056 18361870 920 +12057 18362790 920 +12058 18363710 920 +12059 18364630 914 +12060 18365544 524 +12061 18366068 554 +12062 18366622 542 +12063 18367164 548 +12064 18367712 1178 +12065 18368890 1160 +12066 18370050 1160 +12067 18371210 1142 +12068 18372352 386 +12069 18372738 380 +12070 18373118 386 +12071 18373504 380 +12072 18373884 3242 +12073 18377126 1538 +12074 18378664 2234 +12075 18380898 2234 +12076 18383132 674 +12077 18383806 2360 +12078 18386166 2360 +12079 18388526 1568 +12080 18390094 1568 +12081 18391662 1700 +12082 18393362 1328 +12083 18394690 1778 +12084 18396468 758 +12085 18397226 758 +12086 18397984 116 +12087 18398100 596 +12088 18398696 500 +12089 18399196 650 +12090 18399846 566 +12091 18400412 578 +12092 18400990 524 +12093 18401514 650 +12094 18402164 566 +12095 18402730 1861 +12096 18404591 3290 +12097 18407881 878 +12098 18408759 764 +12099 18409523 728 +12100 18410251 548 +12101 18410799 464 +12102 18411263 2138 +12103 18413401 2138 +12104 18415539 542 +12105 18416081 536 +12106 18416617 1256 +12107 18417873 1256 +12108 18419129 1256 +12109 18420385 1256 +12110 18421641 752 +12111 18422393 752 +12112 18423145 770 +12113 18423915 776 +12114 18424691 1748 +12115 18426439 1748 +12116 18428187 1082 +12117 18429269 632 +12118 18429901 1160 +12119 18431061 1166 +12120 18432227 3068 +12121 18435295 1076 +12122 18436371 752 +12123 18437123 740 +12124 18437863 1616 +12125 18439479 1562 +12126 18441041 1850 +12127 18442891 176 +12128 18443067 1526 +12129 18444593 644 +12130 18445237 638 +12131 18445875 650 +12132 18446525 638 +12133 18447163 644 +12134 18447807 6224 +12135 18454031 6224 +12136 18460255 1940 +12137 18462195 1916 +12138 18464111 1916 +12139 18466027 1916 +12140 18467943 800 +12141 18468743 1070 +12142 18469813 998 +12143 18470811 980 +12144 18471791 932 +12145 18472723 1004 +12146 18473727 2444 +12147 18476171 2438 +12148 18478609 584 +12149 18479193 614 +12150 18479807 2126 +12151 18481933 752 +12152 18482685 3116 +12153 18485801 3116 +12154 18488917 524 +12155 18489441 1088 +12156 18490529 644 +12157 18491173 644 +12158 18491817 698 +12159 18492515 758 +12160 18493273 1466 +12161 18494739 1466 +12162 18496205 1826 +12163 18498031 1922 +12164 18499953 1568 +12165 18501521 1568 +12166 18503089 1358 +12167 18504447 1460 +12168 18505907 1544 +12169 18507451 1544 +12170 18508995 674 +12171 18509669 950 +12172 18510619 4376 +12173 18514995 722 +12174 18515717 704 +12175 18516421 704 +12176 18517125 710 +12177 18517835 2018 +12178 18519853 458 +12179 18520311 62 +12180 18520373 836 +12181 18521209 5804 +12182 18527013 5804 +12183 18532817 848 +12184 18533665 668 +12185 18534333 668 +12186 18535001 104 +12187 18535105 2564 +12188 18537669 1508 +12189 18539177 1508 +12190 18540685 1508 +12191 18542193 806 +12192 18542999 794 +12193 18543793 1994 +12194 18545787 1994 +12195 18547781 986 +12196 18548767 986 +12197 18549753 986 +12198 18550739 950 +12199 18551689 950 +12200 18552639 2066 +12201 18554705 2060 +12202 18556765 2060 +12203 18558825 2060 +12204 18560885 2060 +12205 18562945 1346 +12206 18564291 1334 +12207 18565625 1634 +12208 18567259 1346 +12209 18568605 1334 +12210 18569939 1634 +12211 18571573 848 +12212 18572421 836 +12213 18573257 902 +12214 18574159 890 +12215 18575049 818 +12216 18575867 830 +12217 18576697 1742 +12218 18578439 1742 +12219 18580181 1280 +12220 18581461 4334 +12221 18585795 3950 +12222 18589745 1418 +12223 18591163 482 +12224 18591645 2984 +12225 18594629 2918 +12226 18597547 4376 +12227 18601923 3938 +12228 18605861 4244 +12229 18610105 68 +12230 18610173 4226 +12231 18614399 62 +12232 18614461 4214 +12233 18618675 74 +12234 18618749 4184 +12235 18622933 50 +12236 18622983 4220 +12237 18627203 68 +12238 18627271 4214 +12239 18631485 62 +12240 18631547 4166 +12241 18635713 62 +12242 18635775 2168 +12243 18637943 1604 +12244 18639547 1430 +12245 18640977 698 +12246 18641675 536 +12247 18642211 650 +12248 18642861 668 +12249 18643529 680 +12250 18644209 686 +12251 18644895 344 +12252 18645239 344 +12253 18645583 1028 +12254 18646611 1268 +12255 18647879 1286 +12256 18649165 1310 +12257 18650475 1274 +12258 18651749 1268 +12259 18653017 1286 +12260 18654303 1310 +12261 18655613 1274 +12262 18656887 548 +12263 18657435 548 +12264 18657983 482 +12265 18658465 476 +12266 18658941 476 +12267 18659417 476 +12268 18659893 2480 +12269 18662373 2480 +12270 18664853 1226 +12271 18666079 1226 +12272 18667305 1226 +12273 18668531 1226 +12274 18669757 1226 +12275 18670983 1232 +12276 18672215 968 +12277 18673183 968 +12278 18674151 968 +12279 18675119 1130 +12280 18676249 1130 +12281 18677379 2198 +12282 18679577 716 +12283 18680293 728 +12284 18681021 4016 +12285 18685037 2066 +12286 18687103 2090 +12287 18689193 2060 +12288 18691253 1826 +12289 18693079 1826 +12290 18694905 4502 +12291 18699407 2066 +12292 18701473 1004 +12293 18702477 3356 +12294 18705833 1256 +12295 18707089 1256 +12296 18708345 1256 +12297 18709601 2294 +12298 18711895 2294 +12299 18714189 794 +12300 18714983 1820 +12301 18716803 770 +12302 18717573 638 +12303 18718211 626 +12304 18718837 638 +12305 18719475 626 +12306 18720101 1610 +12307 18721711 1610 +12308 18723321 1448 +12309 18724769 1598 +12310 18726367 1568 +12311 18727935 1562 +12312 18729497 1286 +12313 18730783 1394 +12314 18732177 1418 +12315 18733595 596 +12316 18734191 806 +12317 18734997 1418 +12318 18736415 302 +12319 18736717 16825 +12320 18753542 1250 +12321 18754792 2294 +12322 18757086 2312 +12323 18759398 872 +12324 18760270 434 +12325 18760704 434 +12326 18761138 434 +12327 18761572 434 +12328 18762006 434 +12329 18762440 434 +12330 18762874 434 +12331 18763308 2126 +12332 18765434 2126 +12333 18767560 1610 +12334 18769170 1454 +12335 18770624 1046 +12336 18771670 1328 +12337 18772998 2318 +12338 18775316 878 +12339 18776194 404 +12340 18776598 788 +12341 18777386 2066 +12342 18779452 758 +12343 18780210 914 +12344 18781124 644 +12345 18781768 962 +12346 18782730 722 +12347 18783452 452 +12348 18783904 434 +12349 18784338 656 +12350 18784994 812 +12351 18785806 1070 +12352 18786876 1190 +12353 18788066 710 +12354 18788776 794 +12355 18789570 1028 +12356 18790598 758 +12357 18791356 1172 +12358 18792528 1484 +12359 18794012 1880 +12360 18795892 704 +12361 18796596 1496 +12362 18798092 866 +12363 18798958 1376 +12364 18800334 1556 +12365 18801890 1472 +12366 18803362 1010 +12367 18804372 1028 +12368 18805400 2486 +12369 18807886 2480 +12370 18810366 1676 +12371 18812042 3020 +12372 18815062 3008 +12373 18818070 3308 +12374 18821378 5162 +12375 18826540 566 +12376 18827106 524 +12377 18827630 332 +12378 18827962 830 +12379 18828792 524 +12380 18829316 830 +12381 18830146 1604 +12382 18831750 1598 +12383 18833348 554 +12384 18833902 554 +12385 18834456 776 +12386 18835232 776 +12387 18836008 3122 +12388 18839130 2150 +12389 18841280 2150 +12390 18843430 2150 +12391 18845580 1040 +12392 18846620 1040 +12393 18847660 710 +12394 18848370 710 +12395 18849080 692 +12396 18849772 692 +12397 18850464 878 +12398 18851342 866 +12399 18852208 872 +12400 18853080 1544 +12401 18854624 806 +12402 18855430 80 +12403 18855510 1028 +12404 18856538 2528 +12405 18859066 1028 +12406 18860094 2528 +12407 18862622 1028 +12408 18863650 2528 +12409 18866178 1028 +12410 18867206 2528 +12411 18869734 1028 +12412 18870762 2528 +12413 18873290 1028 +12414 18874318 2528 +12415 18876846 1028 +12416 18877874 2528 +12417 18880402 1028 +12418 18881430 2528 +12419 18883958 1028 +12420 18884986 2528 +12421 18887514 1892 +12422 18889406 1892 +12423 18891298 7088 +12424 18898386 398 +12425 18898784 5060 +12426 18903844 566 +12427 18904410 2240 +12428 18906650 1118 +12429 18907768 1064 +12430 18908832 1148 +12431 18909980 1148 +12432 18911128 1148 +12433 18912276 1148 +12434 18913424 758 +12435 18914182 1262 +12436 18915444 1178 +12437 18916622 1706 +12438 18918328 2930 +12439 18921258 2930 +12440 18924188 1736 +12441 18925924 1706 +12442 18927630 1322 +12443 18928952 1322 +12444 18930274 746 +12445 18931020 962 +12446 18931982 1058 +12447 18933040 962 +12448 18934002 1058 +12449 18935060 644 +12450 18935704 1934 +12451 18937638 1934 +12452 18939572 938 +12453 18940510 938 +12454 18941448 650 +12455 18942098 1238 +12456 18943336 2102 +12457 18945438 2144 +12458 18947582 2132 +12459 18949714 4532 +12460 18954246 3812 +12461 18958058 1652 +12462 18959710 2636 +12463 18962346 4694 +12464 18967040 998 +12465 18968038 992 +12466 18969030 950 +12467 18969980 992 +12468 18970972 1874 +12469 18972846 1574 +12470 18974420 1874 +12471 18976294 1574 +12472 18977868 968 +12473 18978836 992 +12474 18979828 968 +12475 18980796 992 +12476 18981788 1142 +12477 18982930 1154 +12478 18984084 3686 +12479 18987770 3686 +12480 18991456 3560 +12481 18995016 3560 +12482 18998576 3404 +12483 19001980 1964 +12484 19003944 1964 +12485 19005908 950 +12486 19006858 950 +12487 19007808 2990 +12488 19010798 2990 +12489 19013788 332 +12490 19014120 38 +12491 19014158 1574 +12492 19015732 1574 +12493 19017306 1574 +12494 19018880 1574 +12495 19020454 926 +12496 19021380 1034 +12497 19022414 320 +12498 19022734 2372 +12499 19025106 1784 +12500 19026890 1760 +12501 19028650 2960 +12502 19031610 2030 +12503 19033640 2030 +12504 19035670 3044 +12505 19038714 1298 +12506 19040012 1292 +12507 19041304 752 +12508 19042056 752 +12509 19042808 758 +12510 19043566 758 +12511 19044324 1694 +12512 19046018 44 +12513 19046062 2006 +12514 19048068 1922 +12515 19049990 2006 +12516 19051996 1922 +12517 19053918 740 +12518 19054658 2642 +12519 19057300 2120 +12520 19059420 2114 +12521 19061534 10832 +12522 19072366 10826 +12523 19083192 1250 +12524 19084442 770 +12525 19085212 770 +12526 19085982 770 +12527 19086752 770 +12528 19087522 770 +12529 19088292 770 +12530 19089062 770 +12531 19089832 770 +12532 19090602 770 +12533 19091372 770 +12534 19092142 770 +12535 19092912 770 +12536 19093682 770 +12537 19094452 770 +12538 19095222 770 +12539 19095992 770 +12540 19096762 770 +12541 19097532 770 +12542 19098302 770 +12543 19099072 770 +12544 19099842 770 +12545 19100612 770 +12546 19101382 770 +12547 19102152 770 +12548 19102922 770 +12549 19103692 770 +12550 19104462 770 +12551 19105232 770 +12552 19106002 770 +12553 19106772 770 +12554 19107542 770 +12555 19108312 770 +12556 19109082 770 +12557 19109852 770 +12558 19110622 770 +12559 19111392 770 +12560 19112162 770 +12561 19112932 770 +12562 19113702 770 +12563 19114472 770 +12564 19115242 770 +12565 19116012 770 +12566 19116782 770 +12567 19117552 770 +12568 19118322 770 +12569 19119092 770 +12570 19119862 770 +12571 19120632 770 +12572 19121402 770 +12573 19122172 770 +12574 19122942 770 +12575 19123712 770 +12576 19124482 770 +12577 19125252 770 +12578 19126022 770 +12579 19126792 770 +12580 19127562 770 +12581 19128332 770 +12582 19129102 770 +12583 19129872 770 +12584 19130642 416 +12585 19131058 416 +12586 19131474 614 +12587 19132088 644 +12588 19132732 973 +12589 19133705 650 +12590 19134355 1082 +12591 19135437 1028 +12592 19136465 1112 +12593 19137577 1112 +12594 19138689 1154 +12595 19139843 1154 +12596 19140997 488 +12597 19141485 488 +12598 19141973 1016 +12599 19142989 1160 +12600 19144149 1112 +12601 19145261 410 +12602 19145671 392 +12603 19146063 1208 +12604 19147271 962 +12605 19148233 956 +12606 19149189 2708 +12607 19151897 2708 +12608 19154605 1916 +12609 19156521 3248 +12610 19159769 2048 +12611 19161817 1952 +12612 19163769 2048 +12613 19165817 1952 +12614 19167769 1724 +12615 19169493 1730 +12616 19171223 1724 +12617 19172947 1730 +12618 19174677 1724 +12619 19176401 1730 +12620 19178131 1814 +12621 19179945 1808 +12622 19181753 1802 +12623 19183555 1814 +12624 19185369 1808 +12625 19187177 1802 +12626 19188979 1010 +12627 19189989 974 +12628 19190963 1184 +12629 19192147 1202 +12630 19193349 2252 +12631 19195601 2252 +12632 19197853 764 +12633 19198617 758 +12634 19199375 1988 +12635 19201363 1988 +12636 19203351 1988 +12637 19205339 1988 +12638 19207327 1988 +12639 19209315 1988 +12640 19211303 1988 +12641 19213291 1988 +12642 19215279 1988 +12643 19217267 1988 +12644 19219255 1988 +12645 19221243 1988 +12646 19223231 1988 +12647 19225219 1988 +12648 19227207 1988 +12649 19229195 1988 +12650 19231183 1988 +12651 19233171 1988 +12652 19235159 1988 +12653 19237147 1988 +12654 19239135 1988 +12655 19241123 1988 +12656 19243111 1988 +12657 19245099 1988 +12658 19247087 1988 +12659 19249075 1988 +12660 19251063 1988 +12661 19253051 1988 +12662 19255039 1988 +12663 19257027 1988 +12664 19259015 1988 +12665 19261003 1988 +12666 19262991 1988 +12667 19264979 1988 +12668 19266967 1988 +12669 19268955 1988 +12670 19270943 1988 +12671 19272931 1988 +12672 19274919 1988 +12673 19276907 1988 +12674 19278895 1988 +12675 19280883 1988 +12676 19282871 1988 +12677 19284859 1988 +12678 19286847 1988 +12679 19288835 1988 +12680 19290823 1988 +12681 19292811 1988 +12682 19294799 1988 +12683 19296787 1988 +12684 19298775 1988 +12685 19300763 1988 +12686 19302751 1988 +12687 19304739 1988 +12688 19306727 1988 +12689 19308715 1988 +12690 19310703 1988 +12691 19312691 1988 +12692 19314679 1988 +12693 19316667 1988 +12694 19318655 1892 +12695 19320547 1892 +12696 19322439 1892 +12697 19324331 1892 +12698 19326223 1892 +12699 19328115 1892 +12700 19330007 1892 +12701 19331899 1892 +12702 19333791 1892 +12703 19335683 1892 +12704 19337575 1892 +12705 19339467 1892 +12706 19341359 1892 +12707 19343251 1892 +12708 19345143 1892 +12709 19347035 1892 +12710 19348927 1892 +12711 19350819 1892 +12712 19352711 1892 +12713 19354603 1892 +12714 19356495 1892 +12715 19358387 1892 +12716 19360279 1892 +12717 19362171 1892 +12718 19364063 1892 +12719 19365955 1892 +12720 19367847 1892 +12721 19369739 1892 +12722 19371631 1892 +12723 19373523 1892 +12724 19375415 1892 +12725 19377307 1892 +12726 19379199 1892 +12727 19381091 1892 +12728 19382983 1892 +12729 19384875 1892 +12730 19386767 1892 +12731 19388659 1892 +12732 19390551 1892 +12733 19392443 1892 +12734 19394335 1892 +12735 19396227 1892 +12736 19398119 1892 +12737 19400011 1892 +12738 19401903 1892 +12739 19403795 1892 +12740 19405687 1892 +12741 19407579 1892 +12742 19409471 1892 +12743 19411363 1892 +12744 19413255 1892 +12745 19415147 1892 +12746 19417039 1892 +12747 19418931 1892 +12748 19420823 1892 +12749 19422715 1892 +12750 19424607 1892 +12751 19426499 1892 +12752 19428391 1892 +12753 19430283 1892 +12754 19432175 1820 +12755 19433995 464 +12756 19434459 464 +12757 19434923 980 +12758 19435903 692 +12759 19436595 986 +12760 19437581 986 +12761 19438567 704 +12762 19439271 704 +12763 19439975 2282 +12764 19442257 2276 +12765 19444533 2282 +12766 19446815 2276 +12767 19449091 2282 +12768 19451373 2276 +12769 19453649 2282 +12770 19455931 2276 +12771 19458207 2282 +12772 19460489 2276 +12773 19462765 2282 +12774 19465047 2276 +12775 19467323 2282 +12776 19469605 2276 +12777 19471881 2282 +12778 19474163 2276 +12779 19476439 2282 +12780 19478721 2276 +12781 19480997 2282 +12782 19483279 2276 +12783 19485555 2282 +12784 19487837 2276 +12785 19490113 2282 +12786 19492395 2276 +12787 19494671 2282 +12788 19496953 2276 +12789 19499229 2282 +12790 19501511 2276 +12791 19503787 2282 +12792 19506069 2276 +12793 19508345 2282 +12794 19510627 2276 +12795 19512903 2282 +12796 19515185 2276 +12797 19517461 2282 +12798 19519743 2276 +12799 19522019 2282 +12800 19524301 2276 +12801 19526577 2282 +12802 19528859 2276 +12803 19531135 2282 +12804 19533417 2276 +12805 19535693 2282 +12806 19537975 2276 +12807 19540251 2282 +12808 19542533 2276 +12809 19544809 2282 +12810 19547091 2276 +12811 19549367 2282 +12812 19551649 2276 +12813 19553925 2282 +12814 19556207 2276 +12815 19558483 2282 +12816 19560765 2276 +12817 19563041 2282 +12818 19565323 2276 +12819 19567599 2282 +12820 19569881 2276 +12821 19572157 2282 +12822 19574439 2276 +12823 19576715 2282 +12824 19578997 2276 +12825 19581273 2282 +12826 19583555 2276 +12827 19585831 2282 +12828 19588113 2276 +12829 19590389 2282 +12830 19592671 2276 +12831 19594947 2282 +12832 19597229 2276 +12833 19599505 2282 +12834 19601787 2276 +12835 19604063 2282 +12836 19606345 2276 +12837 19608621 2282 +12838 19610903 2276 +12839 19613179 2282 +12840 19615461 2276 +12841 19617737 2282 +12842 19620019 2276 +12843 19622295 2282 +12844 19624577 2276 +12845 19626853 2282 +12846 19629135 2276 +12847 19631411 2282 +12848 19633693 2276 +12849 19635969 2282 +12850 19638251 2276 +12851 19640527 2282 +12852 19642809 2276 +12853 19645085 2282 +12854 19647367 2276 +12855 19649643 2282 +12856 19651925 2276 +12857 19654201 2282 +12858 19656483 2276 +12859 19658759 2282 +12860 19661041 2276 +12861 19663317 2282 +12862 19665599 2276 +12863 19667875 2282 +12864 19670157 2276 +12865 19672433 2282 +12866 19674715 2276 +12867 19676991 2282 +12868 19679273 2276 +12869 19681549 2282 +12870 19683831 2276 +12871 19686107 2282 +12872 19688389 2276 +12873 19690665 2282 +12874 19692947 2276 +12875 19695223 2282 +12876 19697505 2276 +12877 19699781 2282 +12878 19702063 2276 +12879 19704339 2282 +12880 19706621 2276 +12881 19708897 2282 +12882 19711179 2276 +12883 19713455 1670 +12884 19715125 1658 +12885 19716783 1658 +12886 19718441 1670 +12887 19720111 1658 +12888 19721769 1658 +12889 19723427 752 +12890 19724179 752 +12891 19724931 752 +12892 19725683 752 +12893 19726435 836 +12894 19727271 836 +12895 19728107 1100 +12896 19729207 1100 +12897 19730307 1244 +12898 19731551 488 +12899 19732039 1202 +12900 19733241 494 +12901 19733735 1502 +12902 19735237 1784 +12903 19737021 476 +12904 19737497 470 +12905 19737967 1868 +12906 19739835 1862 +12907 19741697 428 +12908 19742125 440 +12909 19742565 1250 +12910 19743815 1238 +12911 19745053 2162 +12912 19747215 2168 +12913 19749383 2360 +12914 19751743 2360 +12915 19754103 2360 +12916 19756463 2360 +12917 19758823 770 +12918 19759593 782 +12919 19760375 776 +12920 19761151 776 +12921 19761927 2090 +12922 19764017 2096 +12923 19766113 2090 +12924 19768203 2090 +12925 19770293 2138 +12926 19772431 1682 +12927 19774113 2246 +12928 19776359 2522 +12929 19778881 2618 +12930 19781499 1598 +12931 19783097 1568 +12932 19784665 1586 +12933 19786251 1562 +12934 19787813 1598 +12935 19789411 1556 +12936 19790967 1592 +12937 19792559 1592 +12938 19794151 1592 +12939 19795743 1592 +12940 19797335 1592 +12941 19798927 1592 +12942 19800519 1592 +12943 19802111 1556 +12944 19803667 1610 +12945 19805277 1592 +12946 19806869 1556 +12947 19808425 1610 +12948 19810035 2528 +12949 19812563 2444 +12950 19815007 2444 +12951 19817451 668 +12952 19818119 140 +12953 19818259 1232 +12954 19819491 2018 +12955 19821509 2162 +12956 19823671 2516 +12957 19826187 944 +12958 19827131 1292 +12959 19828423 1244 +12960 19829667 1106 +12961 19830773 4909 +12962 19835682 698 +12963 19836380 1508 +12964 19837888 704 +12965 19838592 758 +12966 19839350 998 +12967 19840348 1184 +12968 19841532 902 +12969 19842434 806 +12970 19843240 680 +12971 19843920 1010 +12972 19844930 596 +12973 19845526 800 +12974 19846326 1298 +12975 19847624 800 +12976 19848424 758 +12977 19849182 812 +12978 19849994 1165 +12979 19851159 4309 +12980 19855468 572 +12981 19856040 584 +12982 19856624 722 +12983 19857346 644 +12984 19857990 590 +12985 19858580 734 +12986 19859314 518 +12987 19859832 434 +12988 19860266 428 +12989 19860694 1052 +12990 19861746 3440 +12991 19865186 2600 +12992 19867786 830 +12993 19868616 1658 +12994 19870274 1568 +12995 19871842 1981 +12996 19873823 146 +12997 19873969 1418 +12998 19875387 614 +12999 19876001 974 +13000 19876975 1088 +13001 19878063 1346 +13002 19879409 218 +13003 19879627 116 +13004 19879743 830 +13005 19880573 548 +13006 19881121 4088 +13007 19885209 1256 +13008 19886465 1292 +13009 19887757 1100 +13010 19888857 1124 +13011 19889981 638 +13012 19890619 1898 +13013 19892517 2684 +13014 19895201 3470 +13015 19898671 1052 +13016 19899723 428 +13017 19900151 872 +13018 19901023 608 +13019 19901631 992 +13020 19902623 908 +13021 19903531 974 +13022 19904505 668 +13023 19905173 674 +13024 19905847 866 +13025 19906713 806 +13026 19907519 644 +13027 19908163 872 +13028 19909035 494 +13029 19909529 512 +13030 19910041 698 +13031 19910739 338 +13032 19911077 764 +13033 19911841 2228 +13034 19914069 362 +13035 19914431 2522 +13036 19916953 2642 +13037 19919595 2054 +13038 19921649 578 +13039 19922227 998 +13040 19923225 548 +13041 19923773 710 +13042 19924483 410 +13043 19924893 692 +13044 19925585 2216 +13045 19927801 494 +13046 19928295 212 +13047 19928507 212 +13048 19928719 1214 +13049 19929933 1214 +13050 19931147 1214 +13051 19932361 1214 +13052 19933575 1214 +13053 19934789 1214 +13054 19936003 1214 +13055 19937217 3500 +13056 19940717 1214 +13057 19941931 1214 +13058 19943145 1214 +13059 19944359 1214 +13060 19945573 1214 +13061 19946787 1214 +13062 19948001 854 +13063 19948855 1214 +13064 19950069 1214 +13065 19951283 1214 +13066 19952497 1214 +13067 19953711 1214 +13068 19954925 1214 +13069 19956139 1472 +13070 19957611 1472 +13071 19959083 3386 +13072 19962469 3392 +13073 19965861 3386 +13074 19969247 3392 +13075 19972639 1808 +13076 19974447 1994 +13077 19976441 146 +13078 19976587 188 +13079 19976775 188 +13080 19976963 188 +13081 19977151 188 +13082 19977339 1862 +13083 19979201 1658 +13084 19980859 620 +13085 19981479 602 +13086 19982081 662 +13087 19982743 620 +13088 19983363 2840 +13089 19986203 2840 +13090 19989043 2828 +13091 19991871 2774 +13092 19994645 1058 +13093 19995703 1070 +13094 19996773 2444 +13095 19999217 2444 +13096 20001661 524 +13097 20002185 992 +13098 20003177 2576 +13099 20005753 1748 +13100 20007501 1748 +13101 20009249 1748 +13102 20010997 1886 +13103 20012883 92 +13104 20012975 2198 +13105 20015173 2150 +13106 20017323 1898 +13107 20019221 1934 +13108 20021155 1244 +13109 20022399 1136 +13110 20023535 1214 +13111 20024749 1100 +13112 20025849 2630 +13113 20028479 548 +13114 20029027 2630 +13115 20031657 548 +13116 20032205 1226 +13117 20033431 1208 +13118 20034639 848 +13119 20035487 518 +13120 20036005 470 +13121 20036475 3086 +13122 20039561 3032 +13123 20042593 3032 +13124 20045625 3032 +13125 20048657 3086 +13126 20051743 3032 +13127 20054775 3032 +13128 20057807 3032 +13129 20060839 824 +13130 20061663 920 +13131 20062583 1724 +13132 20064307 524 +13133 20064831 728 +13134 20065559 728 +13135 20066287 1160 +13136 20067447 4856 +13137 20072303 2078 +13138 20074381 500 +13139 20074881 518 +13140 20075399 38 +13141 20075437 6476 +13142 20081913 722 +13143 20082635 692 +13144 20083327 1736 +13145 20085063 1916 +13146 20086979 1916 +13147 20088895 1916 +13148 20090811 1916 +13149 20092727 1916 +13150 20094643 1916 +13151 20096559 1916 +13152 20098475 1916 +13153 20100391 1916 +13154 20102307 1916 +13155 20104223 1916 +13156 20106139 1916 +13157 20108055 1916 +13158 20109971 1916 +13159 20111887 1916 +13160 20113803 1916 +13161 20115719 1916 +13162 20117635 1916 +13163 20119551 1916 +13164 20121467 1916 +13165 20123383 1916 +13166 20125299 1916 +13167 20127215 1916 +13168 20129131 1916 +13169 20131047 1916 +13170 20132963 1916 +13171 20134879 1916 +13172 20136795 1916 +13173 20138711 1916 +13174 20140627 1916 +13175 20142543 1916 +13176 20144459 1916 +13177 20146375 1916 +13178 20148291 1916 +13179 20150207 1916 +13180 20152123 1916 +13181 20154039 1916 +13182 20155955 1916 +13183 20157871 1916 +13184 20159787 1916 +13185 20161703 1916 +13186 20163619 1916 +13187 20165535 1916 +13188 20167451 1916 +13189 20169367 1916 +13190 20171283 1916 +13191 20173199 1916 +13192 20175115 1916 +13193 20177031 1916 +13194 20178947 1916 +13195 20180863 1916 +13196 20182779 1916 +13197 20184695 1916 +13198 20186611 1916 +13199 20188527 1916 +13200 20190443 1916 +13201 20192359 1916 +13202 20194275 1916 +13203 20196191 1916 +13204 20198107 1916 +13205 20200023 1118 +13206 20201141 1094 +13207 20202235 1124 +13208 20203359 1106 +13209 20204465 1112 +13210 20205577 1118 +13211 20206695 1124 +13212 20207819 1106 +13213 20208925 902 +13214 20209827 1748 +13215 20211575 1748 +13216 20213323 1748 +13217 20215071 1748 +13218 20216819 716 +13219 20217535 716 +13220 20218251 1904 +13221 20220155 506 +13222 20220661 1190 +13223 20221851 1364 +13224 20223215 1772 +13225 20224987 398 +13226 20225385 416 +13227 20225801 1472 +13228 20227273 590 +13229 20227863 572 +13230 20228435 590 +13231 20229025 572 +13232 20229597 1976 +13233 20231573 146 +13234 20231719 2744 +13235 20234463 722 +13236 20235185 722 +13237 20235907 2924 +13238 20238831 2924 +13239 20241755 2924 +13240 20244679 2924 +13241 20247603 2924 +13242 20250527 2924 +13243 20253451 728 +13244 20254179 740 +13245 20254919 728 +13246 20255647 722 +13247 20256369 728 +13248 20257097 740 +13249 20257837 728 +13250 20258565 728 +13251 20259293 728 +13252 20260021 728 +13253 20260749 734 +13254 20261483 728 +13255 20262211 3530 +13256 20265741 1838 +13257 20267579 944 +13258 20268523 434 +13259 20268957 434 +13260 20269391 1040 +13261 20270431 2150 +13262 20272581 2192 +13263 20274773 488 +13264 20275261 488 +13265 20275749 1370 +13266 20277119 836 +13267 20277955 1010 +13268 20278965 686 +13269 20279651 686 +13270 20280337 1178 +13271 20281515 1616 +13272 20283131 2840 +13273 20285971 1454 +13274 20287425 1094 +13275 20288519 2594 +13276 20291113 458 +13277 20291571 458 +13278 20292029 1640 +13279 20293669 2468 +13280 20296137 356 +13281 20296493 2510 +13282 20299003 1442 +13283 20300445 6110 +13284 20306555 1124 +13285 20307679 1118 +13286 20308797 1118 +13287 20309915 3428 +13288 20313343 1184 +13289 20314527 2666 +13290 20317193 2684 +13291 20319877 476 +13292 20320353 476 +13293 20320829 2180 +13294 20323009 1982 +13295 20324991 2186 +13296 20327177 1982 +13297 20329159 2162 +13298 20331321 1982 +13299 20333303 2180 +13300 20335483 1982 +13301 20337465 962 +13302 20338427 962 +13303 20339389 884 +13304 20340273 884 +13305 20341157 1322 +13306 20342479 1820 +13307 20344299 1820 +13308 20346119 1820 +13309 20347939 1526 +13310 20349465 1538 +13311 20351003 692 +13312 20351695 680 +13313 20352375 2858 +13314 20355233 2858 +13315 20358091 884 +13316 20358975 884 +13317 20359859 920 +13318 20360779 920 +13319 20361699 1640 +13320 20363339 1634 +13321 20364973 1652 +13322 20366625 2492 +13323 20369117 278 +13324 20369395 1676 +13325 20371071 1694 +13326 20372765 1844 +13327 20374609 56 +13328 20374665 1310 +13329 20375975 1298 +13330 20377273 632 +13331 20377905 422 +13332 20378327 1676 +13333 20380003 1250 +13334 20381253 2648 +13335 20383901 1358 +13336 20385259 1334 +13337 20386593 3032 +13338 20389625 3020 +13339 20392645 800 +13340 20393445 776 +13341 20394221 2030 +13342 20396251 2120 +13343 20398371 836 +13344 20399207 824 +13345 20400031 836 +13346 20400867 824 +13347 20401691 836 +13348 20402527 824 +13349 20403351 836 +13350 20404187 824 +13351 20405011 980 +13352 20405991 362 +13353 20406353 1136 +13354 20407489 1484 +13355 20408973 530 +13356 20409503 530 +13357 20410033 2840 +13358 20412873 2840 +13359 20415713 2840 +13360 20418553 2840 +13361 20421393 1274 +13362 20422667 1760 +13363 20424427 1766 +13364 20426193 1400 +13365 20427593 1400 +13366 20428993 1382 +13367 20430375 3620 +13368 20433995 356 +13369 20434351 536 +13370 20434887 692 +13371 20435579 692 +13372 20436271 692 +13373 20436963 692 +13374 20437655 1610 +13375 20439265 1622 +13376 20440887 1610 +13377 20442497 1622 +13378 20444119 1304 +13379 20445423 1286 +13380 20446709 2336 +13381 20449045 2372 +13382 20451417 2336 +13383 20453753 2372 +13384 20456125 2060 +13385 20458185 2060 +13386 20460245 692 +13387 20460937 686 +13388 20461623 1802 +13389 20463425 1802 +13390 20465227 2234 +13391 20467461 1022 +13392 20468483 1022 +13393 20469505 1022 +13394 20470527 1022 +13395 20471549 2138 +13396 20473687 1658 +13397 20475345 1880 +13398 20477225 1952 +13399 20479177 1550 +13400 20480727 1370 +13401 20482097 980 +13402 20483077 1040 +13403 20484117 980 +13404 20485097 1040 +13405 20486137 980 +13406 20487117 1040 +13407 20488157 980 +13408 20489137 1040 +13409 20490177 980 +13410 20491157 1040 +13411 20492197 980 +13412 20493177 1040 +13413 20494217 992 +13414 20495209 1070 +13415 20496279 992 +13416 20497271 1070 +13417 20498341 992 +13418 20499333 1070 +13419 20500403 992 +13420 20501395 1070 +13421 20502465 992 +13422 20503457 1070 +13423 20504527 992 +13424 20505519 1070 +13425 20506589 992 +13426 20507581 1070 +13427 20508651 992 +13428 20509643 1070 +13429 20510713 992 +13430 20511705 1070 +13431 20512775 992 +13432 20513767 1070 +13433 20514837 992 +13434 20515829 1070 +13435 20516899 992 +13436 20517891 1070 +13437 20518961 1496 +13438 20520457 992 +13439 20521449 1070 +13440 20522519 992 +13441 20523511 1070 +13442 20524581 992 +13443 20525573 1070 +13444 20526643 992 +13445 20527635 1070 +13446 20528705 992 +13447 20529697 1070 +13448 20530767 992 +13449 20531759 1070 +13450 20532829 992 +13451 20533821 1070 +13452 20534891 992 +13453 20535883 1070 +13454 20536953 992 +13455 20537945 1070 +13456 20539015 992 +13457 20540007 1070 +13458 20541077 992 +13459 20542069 1070 +13460 20543139 992 +13461 20544131 1070 +13462 20545201 884 +13463 20546085 884 +13464 20546969 2258 +13465 20549227 1790 +13466 20551017 992 +13467 20552009 1070 +13468 20553079 992 +13469 20554071 1070 +13470 20555141 992 +13471 20556133 1070 +13472 20557203 992 +13473 20558195 1070 +13474 20559265 992 +13475 20560257 1070 +13476 20561327 992 +13477 20562319 1070 +13478 20563389 884 +13479 20564273 884 +13480 20565157 884 +13481 20566041 884 +13482 20566925 1070 +13483 20567995 992 +13484 20568987 1070 +13485 20570057 884 +13486 20570941 1070 +13487 20572011 1070 +13488 20573081 494 +13489 20573575 1238 +13490 20574813 1718 +13491 20576531 1952 +13492 20578483 1550 +13493 20580033 1388 +13494 20581421 980 +13495 20582401 1040 +13496 20583441 980 +13497 20584421 1040 +13498 20585461 980 +13499 20586441 1040 +13500 20587481 980 +13501 20588461 1040 +13502 20589501 980 +13503 20590481 1040 +13504 20591521 980 +13505 20592501 1040 +13506 20593541 992 +13507 20594533 1070 +13508 20595603 992 +13509 20596595 1070 +13510 20597665 992 +13511 20598657 1070 +13512 20599727 992 +13513 20600719 1070 +13514 20601789 992 +13515 20602781 1070 +13516 20603851 992 +13517 20604843 1070 +13518 20605913 992 +13519 20606905 1070 +13520 20607975 992 +13521 20608967 1070 +13522 20610037 992 +13523 20611029 1070 +13524 20612099 992 +13525 20613091 1070 +13526 20614161 992 +13527 20615153 1070 +13528 20616223 992 +13529 20617215 1070 +13530 20618285 884 +13531 20619169 884 +13532 20620053 884 +13533 20620937 884 +13534 20621821 1070 +13535 20622891 992 +13536 20623883 1070 +13537 20624953 884 +13538 20625837 1070 +13539 20626907 1070 +13540 20627977 494 +13541 20628471 1238 +13542 20629709 1952 +13543 20631661 1550 +13544 20633211 1388 +13545 20634599 980 +13546 20635579 1040 +13547 20636619 980 +13548 20637599 1040 +13549 20638639 980 +13550 20639619 1040 +13551 20640659 980 +13552 20641639 1040 +13553 20642679 980 +13554 20643659 1040 +13555 20644699 980 +13556 20645679 1040 +13557 20646719 992 +13558 20647711 1070 +13559 20648781 992 +13560 20649773 1070 +13561 20650843 992 +13562 20651835 1070 +13563 20652905 992 +13564 20653897 1070 +13565 20654967 992 +13566 20655959 1070 +13567 20657029 992 +13568 20658021 1070 +13569 20659091 992 +13570 20660083 1070 +13571 20661153 992 +13572 20662145 1070 +13573 20663215 992 +13574 20664207 1070 +13575 20665277 992 +13576 20666269 1070 +13577 20667339 992 +13578 20668331 1070 +13579 20669401 992 +13580 20670393 1070 +13581 20671463 992 +13582 20672455 1070 +13583 20673525 992 +13584 20674517 1070 +13585 20675587 992 +13586 20676579 1070 +13587 20677649 992 +13588 20678641 1070 +13589 20679711 992 +13590 20680703 1070 +13591 20681773 992 +13592 20682765 1070 +13593 20683835 1436 +13594 20685271 2288 +13595 20687559 1436 +13596 20688995 1508 +13597 20690503 992 +13598 20691495 1070 +13599 20692565 992 +13600 20693557 1070 +13601 20694627 992 +13602 20695619 1070 +13603 20696689 992 +13604 20697681 1070 +13605 20698751 992 +13606 20699743 1070 +13607 20700813 992 +13608 20701805 1070 +13609 20702875 992 +13610 20703867 1070 +13611 20704937 992 +13612 20705929 1070 +13613 20706999 992 +13614 20707991 1070 +13615 20709061 992 +13616 20710053 1070 +13617 20711123 992 +13618 20712115 1070 +13619 20713185 992 +13620 20714177 1070 +13621 20715247 992 +13622 20716239 1070 +13623 20717309 992 +13624 20718301 1070 +13625 20719371 992 +13626 20720363 1070 +13627 20721433 992 +13628 20722425 1070 +13629 20723495 992 +13630 20724487 1070 +13631 20725557 992 +13632 20726549 1070 +13633 20727619 992 +13634 20728611 1070 +13635 20729681 992 +13636 20730673 1070 +13637 20731743 992 +13638 20732735 1070 +13639 20733805 992 +13640 20734797 1070 +13641 20735867 992 +13642 20736859 1070 +13643 20737929 992 +13644 20738921 1070 +13645 20739991 1688 +13646 20741679 1790 +13647 20743469 992 +13648 20744461 1070 +13649 20745531 992 +13650 20746523 1070 +13651 20747593 992 +13652 20748585 1070 +13653 20749655 992 +13654 20750647 1070 +13655 20751717 992 +13656 20752709 1070 +13657 20753779 992 +13658 20754771 1070 +13659 20755841 992 +13660 20756833 1070 +13661 20757903 992 +13662 20758895 1070 +13663 20759965 992 +13664 20760957 1070 +13665 20762027 992 +13666 20763019 1070 +13667 20764089 992 +13668 20765081 1070 +13669 20766151 992 +13670 20767143 1070 +13671 20768213 1688 +13672 20769901 1952 +13673 20771853 1550 +13674 20773403 1394 +13675 20774797 980 +13676 20775777 1040 +13677 20776817 980 +13678 20777797 1040 +13679 20778837 980 +13680 20779817 1040 +13681 20780857 980 +13682 20781837 1040 +13683 20782877 980 +13684 20783857 1040 +13685 20784897 980 +13686 20785877 1040 +13687 20786917 992 +13688 20787909 1070 +13689 20788979 992 +13690 20789971 1070 +13691 20791041 992 +13692 20792033 1070 +13693 20793103 992 +13694 20794095 1070 +13695 20795165 992 +13696 20796157 1070 +13697 20797227 992 +13698 20798219 1070 +13699 20799289 992 +13700 20800281 1070 +13701 20801351 992 +13702 20802343 1070 +13703 20803413 992 +13704 20804405 1070 +13705 20805475 992 +13706 20806467 1070 +13707 20807537 992 +13708 20808529 1070 +13709 20809599 992 +13710 20810591 1070 +13711 20811661 992 +13712 20812653 1070 +13713 20813723 992 +13714 20814715 1070 +13715 20815785 992 +13716 20816777 1070 +13717 20817847 992 +13718 20818839 1070 +13719 20819909 992 +13720 20820901 1070 +13721 20821971 992 +13722 20822963 1070 +13723 20824033 1436 +13724 20825469 1718 +13725 20827187 1952 +13726 20829139 1550 +13727 20830689 1394 +13728 20832083 980 +13729 20833063 1040 +13730 20834103 980 +13731 20835083 1040 +13732 20836123 980 +13733 20837103 1040 +13734 20838143 980 +13735 20839123 1040 +13736 20840163 980 +13737 20841143 1040 +13738 20842183 980 +13739 20843163 1040 +13740 20844203 992 +13741 20845195 1070 +13742 20846265 992 +13743 20847257 1070 +13744 20848327 992 +13745 20849319 1070 +13746 20850389 992 +13747 20851381 1070 +13748 20852451 992 +13749 20853443 1070 +13750 20854513 992 +13751 20855505 1070 +13752 20856575 992 +13753 20857567 1070 +13754 20858637 992 +13755 20859629 1070 +13756 20860699 992 +13757 20861691 1070 +13758 20862761 992 +13759 20863753 1070 +13760 20864823 992 +13761 20865815 1070 +13762 20866885 992 +13763 20867877 1070 +13764 20868947 992 +13765 20869939 1070 +13766 20871009 992 +13767 20872001 1070 +13768 20873071 992 +13769 20874063 1070 +13770 20875133 992 +13771 20876125 1070 +13772 20877195 992 +13773 20878187 1070 +13774 20879257 992 +13775 20880249 1070 +13776 20881319 992 +13777 20882311 1070 +13778 20883381 992 +13779 20884373 1070 +13780 20885443 992 +13781 20886435 1070 +13782 20887505 992 +13783 20888497 1070 +13784 20889567 992 +13785 20890559 1070 +13786 20891629 992 +13787 20892621 1070 +13788 20893691 992 +13789 20894683 1070 +13790 20895753 992 +13791 20896745 1070 +13792 20897815 992 +13793 20898807 1070 +13794 20899877 992 +13795 20900869 1070 +13796 20901939 992 +13797 20902931 1070 +13798 20904001 992 +13799 20904993 1070 +13800 20906063 992 +13801 20907055 1070 +13802 20908125 992 +13803 20909117 1070 +13804 20910187 992 +13805 20911179 1070 +13806 20912249 992 +13807 20913241 1070 +13808 20914311 992 +13809 20915303 1070 +13810 20916373 992 +13811 20917365 1070 +13812 20918435 1436 +13813 20919871 1436 +13814 20921307 1508 +13815 20922815 2228 +13816 20925043 1952 +13817 20926995 1550 +13818 20928545 1370 +13819 20929915 980 +13820 20930895 1040 +13821 20931935 980 +13822 20932915 1040 +13823 20933955 980 +13824 20934935 1040 +13825 20935975 980 +13826 20936955 1040 +13827 20937995 980 +13828 20938975 1040 +13829 20940015 980 +13830 20940995 1040 +13831 20942035 992 +13832 20943027 1070 +13833 20944097 992 +13834 20945089 1070 +13835 20946159 992 +13836 20947151 1070 +13837 20948221 992 +13838 20949213 1070 +13839 20950283 992 +13840 20951275 1070 +13841 20952345 992 +13842 20953337 1070 +13843 20954407 992 +13844 20955399 1070 +13845 20956469 992 +13846 20957461 1070 +13847 20958531 992 +13848 20959523 1070 +13849 20960593 992 +13850 20961585 1070 +13851 20962655 992 +13852 20963647 1070 +13853 20964717 992 +13854 20965709 1070 +13855 20966779 992 +13856 20967771 1070 +13857 20968841 992 +13858 20969833 1070 +13859 20970903 992 +13860 20971895 1070 +13861 20972965 992 +13862 20973957 1070 +13863 20975027 992 +13864 20976019 1070 +13865 20977089 992 +13866 20978081 1070 +13867 20979151 992 +13868 20980143 1070 +13869 20981213 992 +13870 20982205 1070 +13871 20983275 992 +13872 20984267 1070 +13873 20985337 992 +13874 20986329 1070 +13875 20987399 992 +13876 20988391 1070 +13877 20989461 992 +13878 20990453 1070 +13879 20991523 992 +13880 20992515 1070 +13881 20993585 992 +13882 20994577 1070 +13883 20995647 992 +13884 20996639 1070 +13885 20997709 992 +13886 20998701 1070 +13887 20999771 992 +13888 21000763 1070 +13889 21001833 992 +13890 21002825 1070 +13891 21003895 992 +13892 21004887 1070 +13893 21005957 992 +13894 21006949 1070 +13895 21008019 992 +13896 21009011 1070 +13897 21010081 992 +13898 21011073 1070 +13899 21012143 992 +13900 21013135 1070 +13901 21014205 992 +13902 21015197 1070 +13903 21016267 1436 +13904 21017703 1436 +13905 21019139 1508 +13906 21020647 2228 +13907 21022875 2288 +13908 21025163 1436 +13909 21026599 1508 +13910 21028107 992 +13911 21029099 1070 +13912 21030169 992 +13913 21031161 1070 +13914 21032231 992 +13915 21033223 1070 +13916 21034293 992 +13917 21035285 1070 +13918 21036355 992 +13919 21037347 1070 +13920 21038417 992 +13921 21039409 1070 +13922 21040479 992 +13923 21041471 1070 +13924 21042541 992 +13925 21043533 1070 +13926 21044603 992 +13927 21045595 1070 +13928 21046665 992 +13929 21047657 1070 +13930 21048727 992 +13931 21049719 1070 +13932 21050789 992 +13933 21051781 1070 +13934 21052851 992 +13935 21053843 1070 +13936 21054913 992 +13937 21055905 1070 +13938 21056975 992 +13939 21057967 1070 +13940 21059037 992 +13941 21060029 1070 +13942 21061099 992 +13943 21062091 1070 +13944 21063161 992 +13945 21064153 1070 +13946 21065223 992 +13947 21066215 1070 +13948 21067285 992 +13949 21068277 1070 +13950 21069347 992 +13951 21070339 1070 +13952 21071409 992 +13953 21072401 1070 +13954 21073471 992 +13955 21074463 1070 +13956 21075533 992 +13957 21076525 1070 +13958 21077595 1436 +13959 21079031 992 +13960 21080023 1070 +13961 21081093 992 +13962 21082085 1070 +13963 21083155 992 +13964 21084147 1070 +13965 21085217 992 +13966 21086209 1070 +13967 21087279 992 +13968 21088271 1070 +13969 21089341 992 +13970 21090333 1070 +13971 21091403 884 +13972 21092287 884 +13973 21093171 2258 +13974 21095429 968 +13975 21096397 974 +13976 21097371 968 +13977 21098339 974 +13978 21099313 968 +13979 21100281 974 +13980 21101255 968 +13981 21102223 974 +13982 21103197 974 +13983 21104171 968 +13984 21105139 968 +13985 21106107 974 +13986 21107081 974 +13987 21108055 968 +13988 21109023 974 +13989 21109997 968 +13990 21110965 974 +13991 21111939 968 +13992 21112907 974 +13993 21113881 968 +13994 21114849 974 +13995 21115823 968 +13996 21116791 1046 +13997 21117837 560 +13998 21118397 5072 +13999 21123469 800 +14000 21124269 1526 +14001 21125795 1250 +14002 21127045 968 +14003 21128013 974 +14004 21128987 968 +14005 21129955 974 +14006 21130929 968 +14007 21131897 974 +14008 21132871 968 +14009 21133839 974 +14010 21134813 974 +14011 21135787 968 +14012 21136755 968 +14013 21137723 974 +14014 21138697 974 +14015 21139671 968 +14016 21140639 974 +14017 21141613 968 +14018 21142581 974 +14019 21143555 968 +14020 21144523 974 +14021 21145497 968 +14022 21146465 974 +14023 21147439 968 +14024 21148407 1046 +14025 21149453 560 +14026 21150013 5072 +14027 21155085 800 +14028 21155885 1526 +14029 21157411 1250 +14030 21158661 992 +14031 21159653 1070 +14032 21160723 992 +14033 21161715 1070 +14034 21162785 992 +14035 21163777 1070 +14036 21164847 992 +14037 21165839 1070 +14038 21166909 992 +14039 21167901 1070 +14040 21168971 992 +14041 21169963 1070 +14042 21171033 1436 +14043 21172469 1496 +14044 21173965 992 +14045 21174957 1070 +14046 21176027 992 +14047 21177019 1070 +14048 21178089 992 +14049 21179081 1070 +14050 21180151 992 +14051 21181143 1070 +14052 21182213 992 +14053 21183205 1070 +14054 21184275 992 +14055 21185267 1070 +14056 21186337 398 +14057 21186735 1064 +14058 21187799 1532 +14059 21189331 422 +14060 21189753 428 +14061 21190181 3020 +14062 21193201 1622 +14063 21194823 1622 +14064 21196445 1622 +14065 21198067 1622 +14066 21199689 1190 +14067 21200879 1184 +14068 21202063 782 +14069 21202845 1256 +14070 21204101 1376 +14071 21205477 1376 +14072 21206853 1880 +14073 21208733 2696 +14074 21211429 2702 +14075 21214131 2624 +14076 21216755 2624 +14077 21219379 6236 +14078 21225615 6116 +14079 21231731 110 +14080 21231841 962 +14081 21232803 986 +14082 21233789 1328 +14083 21235117 116 +14084 21235233 170 +14085 21235403 170 +14086 21235573 170 +14087 21235743 1220 +14088 21236963 1328 +14089 21238291 1394 +14090 21239685 338 +14091 21240023 1220 +14092 21241243 1328 +14093 21242571 1220 +14094 21243791 1328 +14095 21245119 1394 +14096 21246513 338 +14097 21246851 1220 +14098 21248071 1328 +14099 21249399 1700 +14100 21251099 1700 +14101 21252799 1700 +14102 21254499 44 +14103 21254543 2522 +14104 21257065 938 +14105 21258003 908 +14106 21258911 950 +14107 21259861 1148 +14108 21261009 1154 +14109 21262163 950 +14110 21263113 1148 +14111 21264261 1154 +14112 21265415 950 +14113 21266365 1148 +14114 21267513 1154 +14115 21268667 950 +14116 21269617 1148 +14117 21270765 1154 +14118 21271919 950 +14119 21272869 1148 +14120 21274017 1154 +14121 21275171 950 +14122 21276121 1148 +14123 21277269 1154 +14124 21278423 950 +14125 21279373 1148 +14126 21280521 1154 +14127 21281675 950 +14128 21282625 1148 +14129 21283773 1154 +14130 21284927 950 +14131 21285877 1148 +14132 21287025 1154 +14133 21288179 950 +14134 21289129 1148 +14135 21290277 1154 +14136 21291431 950 +14137 21292381 1148 +14138 21293529 1154 +14139 21294683 950 +14140 21295633 1148 +14141 21296781 1154 +14142 21297935 950 +14143 21298885 1148 +14144 21300033 1154 +14145 21301187 950 +14146 21302137 1148 +14147 21303285 1154 +14148 21304439 950 +14149 21305389 1148 +14150 21306537 1154 +14151 21307691 950 +14152 21308641 1148 +14153 21309789 1154 +14154 21310943 950 +14155 21311893 1148 +14156 21313041 1154 +14157 21314195 950 +14158 21315145 1148 +14159 21316293 1154 +14160 21317447 950 +14161 21318397 1148 +14162 21319545 1154 +14163 21320699 950 +14164 21321649 1148 +14165 21322797 1154 +14166 21323951 950 +14167 21324901 1148 +14168 21326049 1154 +14169 21327203 950 +14170 21328153 1148 +14171 21329301 1154 +14172 21330455 950 +14173 21331405 1148 +14174 21332553 1154 +14175 21333707 950 +14176 21334657 1148 +14177 21335805 1154 +14178 21336959 950 +14179 21337909 1148 +14180 21339057 1154 +14181 21340211 950 +14182 21341161 1148 +14183 21342309 1154 +14184 21343463 950 +14185 21344413 1148 +14186 21345561 1154 +14187 21346715 950 +14188 21347665 1148 +14189 21348813 1154 +14190 21349967 950 +14191 21350917 1148 +14192 21352065 1154 +14193 21353219 950 +14194 21354169 1148 +14195 21355317 1154 +14196 21356471 950 +14197 21357421 1148 +14198 21358569 1154 +14199 21359723 950 +14200 21360673 1148 +14201 21361821 1154 +14202 21362975 950 +14203 21363925 1148 +14204 21365073 1154 +14205 21366227 950 +14206 21367177 1148 +14207 21368325 1154 +14208 21369479 950 +14209 21370429 1148 +14210 21371577 1154 +14211 21372731 950 +14212 21373681 1148 +14213 21374829 1154 +14214 21375983 950 +14215 21376933 1148 +14216 21378081 1154 +14217 21379235 950 +14218 21380185 1148 +14219 21381333 1154 +14220 21382487 950 +14221 21383437 1148 +14222 21384585 1154 +14223 21385739 950 +14224 21386689 1148 +14225 21387837 1154 +14226 21388991 950 +14227 21389941 1148 +14228 21391089 1154 +14229 21392243 950 +14230 21393193 1148 +14231 21394341 1154 +14232 21395495 950 +14233 21396445 1148 +14234 21397593 1154 +14235 21398747 950 +14236 21399697 1148 +14237 21400845 1154 +14238 21401999 950 +14239 21402949 1148 +14240 21404097 1154 +14241 21405251 950 +14242 21406201 1148 +14243 21407349 1154 +14244 21408503 950 +14245 21409453 1148 +14246 21410601 1154 +14247 21411755 950 +14248 21412705 1148 +14249 21413853 1154 +14250 21415007 950 +14251 21415957 1148 +14252 21417105 1154 +14253 21418259 950 +14254 21419209 1148 +14255 21420357 1154 +14256 21421511 950 +14257 21422461 1148 +14258 21423609 1154 +14259 21424763 950 +14260 21425713 1148 +14261 21426861 1154 +14262 21428015 950 +14263 21428965 1148 +14264 21430113 1154 +14265 21431267 950 +14266 21432217 1148 +14267 21433365 1154 +14268 21434519 950 +14269 21435469 1148 +14270 21436617 1154 +14271 21437771 950 +14272 21438721 1148 +14273 21439869 1154 +14274 21441023 950 +14275 21441973 1148 +14276 21443121 1154 +14277 21444275 950 +14278 21445225 1148 +14279 21446373 1154 +14280 21447527 950 +14281 21448477 1148 +14282 21449625 1154 +14283 21450779 950 +14284 21451729 1148 +14285 21452877 1154 +14286 21454031 926 +14287 21454957 926 +14288 21455883 1568 +14289 21457451 1382 +14290 21458833 1346 +14291 21460179 896 +14292 21461075 884 +14293 21461959 1070 +14294 21463029 2468 +14295 21465497 1976 +14296 21467473 1976 +14297 21469449 1460 +14298 21470909 1460 +14299 21472369 1460 +14300 21473829 1460 +14301 21475289 3086 +14302 21478375 1244 +14303 21479619 3361 +14304 21482980 1826 +14305 21484806 1280 +14306 21486086 1472 +14307 21487558 2120 +14308 21489678 2216 +14309 21491894 824 +14310 21492718 2372 +14311 21495090 2372 +14312 21497462 2372 +14313 21499834 2372 +14314 21502206 1778 +14315 21503984 1778 +14316 21505762 1142 +14317 21506904 1142 +14318 21508046 1280 +14319 21509326 1142 +14320 21510468 1142 +14321 21511610 1280 +14322 21512890 1142 +14323 21514032 1142 +14324 21515174 1280 +14325 21516454 1142 +14326 21517596 1142 +14327 21518738 1280 +14328 21520018 1142 +14329 21521160 1142 +14330 21522302 1280 +14331 21523582 1142 +14332 21524724 1142 +14333 21525866 1280 +14334 21527146 1142 +14335 21528288 1142 +14336 21529430 1280 +14337 21530710 1142 +14338 21531852 1142 +14339 21532994 1280 +14340 21534274 1142 +14341 21535416 1142 +14342 21536558 1280 +14343 21537838 1142 +14344 21538980 1142 +14345 21540122 1280 +14346 21541402 1142 +14347 21542544 1142 +14348 21543686 1280 +14349 21544966 1142 +14350 21546108 1142 +14351 21547250 1280 +14352 21548530 1142 +14353 21549672 1142 +14354 21550814 1280 +14355 21552094 1142 +14356 21553236 1142 +14357 21554378 1280 +14358 21555658 1142 +14359 21556800 1142 +14360 21557942 1280 +14361 21559222 1142 +14362 21560364 1142 +14363 21561506 1280 +14364 21562786 1142 +14365 21563928 1142 +14366 21565070 1280 +14367 21566350 1142 +14368 21567492 1142 +14369 21568634 1280 +14370 21569914 1142 +14371 21571056 1142 +14372 21572198 1280 +14373 21573478 1142 +14374 21574620 1142 +14375 21575762 1280 +14376 21577042 1142 +14377 21578184 1142 +14378 21579326 1280 +14379 21580606 1142 +14380 21581748 1142 +14381 21582890 1280 +14382 21584170 1142 +14383 21585312 1142 +14384 21586454 1280 +14385 21587734 1142 +14386 21588876 1142 +14387 21590018 1280 +14388 21591298 1142 +14389 21592440 1142 +14390 21593582 1280 +14391 21594862 1142 +14392 21596004 1142 +14393 21597146 1280 +14394 21598426 1142 +14395 21599568 1142 +14396 21600710 1280 +14397 21601990 1142 +14398 21603132 1142 +14399 21604274 1280 +14400 21605554 1142 +14401 21606696 1142 +14402 21607838 1280 +14403 21609118 1142 +14404 21610260 1142 +14405 21611402 1280 +14406 21612682 1142 +14407 21613824 1142 +14408 21614966 1280 +14409 21616246 1142 +14410 21617388 1142 +14411 21618530 1280 +14412 21619810 1142 +14413 21620952 1142 +14414 21622094 1280 +14415 21623374 1142 +14416 21624516 1142 +14417 21625658 1280 +14418 21626938 1142 +14419 21628080 1142 +14420 21629222 1280 +14421 21630502 1142 +14422 21631644 1142 +14423 21632786 1280 +14424 21634066 1142 +14425 21635208 1142 +14426 21636350 1280 +14427 21637630 1142 +14428 21638772 1142 +14429 21639914 1280 +14430 21641194 1142 +14431 21642336 1142 +14432 21643478 1280 +14433 21644758 1142 +14434 21645900 1142 +14435 21647042 1280 +14436 21648322 1142 +14437 21649464 1142 +14438 21650606 1280 +14439 21651886 1142 +14440 21653028 1142 +14441 21654170 1280 +14442 21655450 1142 +14443 21656592 1142 +14444 21657734 1280 +14445 21659014 1142 +14446 21660156 1142 +14447 21661298 1280 +14448 21662578 1142 +14449 21663720 1142 +14450 21664862 1280 +14451 21666142 1142 +14452 21667284 1142 +14453 21668426 1280 +14454 21669706 1142 +14455 21670848 1142 +14456 21671990 1280 +14457 21673270 1142 +14458 21674412 1142 +14459 21675554 1280 +14460 21676834 1142 +14461 21677976 1142 +14462 21679118 1280 +14463 21680398 1142 +14464 21681540 1142 +14465 21682682 1280 +14466 21683962 1142 +14467 21685104 1142 +14468 21686246 1280 +14469 21687526 1142 +14470 21688668 1142 +14471 21689810 1280 +14472 21691090 1142 +14473 21692232 1142 +14474 21693374 1280 +14475 21694654 1142 +14476 21695796 1142 +14477 21696938 1280 +14478 21698218 1142 +14479 21699360 1142 +14480 21700502 1280 +14481 21701782 1142 +14482 21702924 1142 +14483 21704066 1280 +14484 21705346 1142 +14485 21706488 1142 +14486 21707630 1280 +14487 21708910 1142 +14488 21710052 1142 +14489 21711194 1280 +14490 21712474 1142 +14491 21713616 1142 +14492 21714758 1280 +14493 21716038 1142 +14494 21717180 1142 +14495 21718322 1280 +14496 21719602 1478 +14497 21721080 1478 +14498 21722558 1478 +14499 21724036 1478 +14500 21725514 860 +14501 21726374 848 +14502 21727222 1298 +14503 21728520 1010 +14504 21729530 1004 +14505 21730534 956 +14506 21731490 956 +14507 21732446 1256 +14508 21733702 1232 +14509 21734934 980 +14510 21735914 986 +14511 21736900 1190 +14512 21738090 32 +14513 21738122 1052 +14514 21739174 1052 +14515 21740226 1154 +14516 21741380 1154 +14517 21742534 320 +14518 21742854 320 +14519 21743174 428 +14520 21743602 446 +14521 21744048 776 +14522 21744824 1088 +14523 21745912 1178 +14524 21747090 1100 +14525 21748190 1124 +14526 21749314 1958 +14527 21751272 1988 +14528 21753260 1988 +14529 21755248 1178 +14530 21756426 1178 +14531 21757604 1178 +14532 21758782 1178 +14533 21759960 1178 +14534 21761138 1178 +14535 21762316 1178 +14536 21763494 1178 +14537 21764672 1226 +14538 21765898 1316 +14539 21767214 1178 +14540 21768392 1178 +14541 21769570 1178 +14542 21770748 1178 +14543 21771926 1178 +14544 21773104 1178 +14545 21774282 1178 +14546 21775460 1178 +14547 21776638 1178 +14548 21777816 1226 +14549 21779042 1316 +14550 21780358 1178 +14551 21781536 1178 +14552 21782714 1178 +14553 21783892 1178 +14554 21785070 1178 +14555 21786248 1178 +14556 21787426 1178 +14557 21788604 1178 +14558 21789782 1178 +14559 21790960 1226 +14560 21792186 1316 +14561 21793502 1178 +14562 21794680 1178 +14563 21795858 1178 +14564 21797036 1178 +14565 21798214 1178 +14566 21799392 1178 +14567 21800570 1178 +14568 21801748 1178 +14569 21802926 1178 +14570 21804104 1226 +14571 21805330 1316 +14572 21806646 1178 +14573 21807824 1178 +14574 21809002 1178 +14575 21810180 1178 +14576 21811358 1178 +14577 21812536 1178 +14578 21813714 1178 +14579 21814892 1178 +14580 21816070 1178 +14581 21817248 1226 +14582 21818474 1316 +14583 21819790 1178 +14584 21820968 1178 +14585 21822146 1178 +14586 21823324 1178 +14587 21824502 1178 +14588 21825680 1178 +14589 21826858 1178 +14590 21828036 1178 +14591 21829214 1178 +14592 21830392 1226 +14593 21831618 1316 +14594 21832934 1178 +14595 21834112 1178 +14596 21835290 1178 +14597 21836468 1178 +14598 21837646 1178 +14599 21838824 1178 +14600 21840002 1178 +14601 21841180 1178 +14602 21842358 1178 +14603 21843536 1226 +14604 21844762 1316 +14605 21846078 1178 +14606 21847256 1178 +14607 21848434 1178 +14608 21849612 1178 +14609 21850790 1178 +14610 21851968 1178 +14611 21853146 1178 +14612 21854324 1178 +14613 21855502 1178 +14614 21856680 1226 +14615 21857906 1316 +14616 21859222 1178 +14617 21860400 1178 +14618 21861578 1178 +14619 21862756 1178 +14620 21863934 1178 +14621 21865112 1178 +14622 21866290 1178 +14623 21867468 1178 +14624 21868646 1178 +14625 21869824 1226 +14626 21871050 1316 +14627 21872366 1178 +14628 21873544 1178 +14629 21874722 1178 +14630 21875900 1178 +14631 21877078 1178 +14632 21878256 1178 +14633 21879434 1178 +14634 21880612 1178 +14635 21881790 1178 +14636 21882968 1226 +14637 21884194 1316 +14638 21885510 1178 +14639 21886688 2216 +14640 21888904 2216 +14641 21891120 2216 +14642 21893336 2216 +14643 21895552 2042 +14644 21897594 2648 +14645 21900242 2648 +14646 21902890 2648 +14647 21905538 2648 +14648 21908186 2648 +14649 21910834 2642 +14650 21913476 2642 +14651 21916118 2642 +14652 21918760 2558 +14653 21921318 2648 +14654 21923966 2642 +14655 21926608 2648 +14656 21929256 2642 +14657 21931898 2642 +14658 21934540 2642 +14659 21937182 2642 +14660 21939824 2648 +14661 21942472 2642 +14662 21945114 2642 +14663 21947756 2642 +14664 21950398 2642 +14665 21953040 2642 +14666 21955682 2642 +14667 21958324 2642 +14668 21960966 2642 +14669 21963608 2648 +14670 21966256 2642 +14671 21968898 2642 +14672 21971540 2642 +14673 21974182 2642 +14674 21976824 2648 +14675 21979472 2642 +14676 21982114 2642 +14677 21984756 2642 +14678 21987398 2642 +14679 21990040 2642 +14680 21992682 2648 +14681 21995330 2660 +14682 21997990 2660 +14683 22000650 2654 +14684 22003304 2660 +14685 22005964 2660 +14686 22008624 2648 +14687 22011272 2642 +14688 22013914 2642 +14689 22016556 2642 +14690 22019198 2642 +14691 22021840 2648 +14692 22024488 2648 +14693 22027136 2648 +14694 22029784 2648 +14695 22032432 2648 +14696 22035080 2642 +14697 22037722 2642 +14698 22040364 2642 +14699 22043006 2558 +14700 22045564 2648 +14701 22048212 2642 +14702 22050854 2648 +14703 22053502 2642 +14704 22056144 2642 +14705 22058786 2642 +14706 22061428 2642 +14707 22064070 2648 +14708 22066718 2642 +14709 22069360 2642 +14710 22072002 2642 +14711 22074644 2642 +14712 22077286 2642 +14713 22079928 2642 +14714 22082570 2642 +14715 22085212 2642 +14716 22087854 2648 +14717 22090502 2642 +14718 22093144 2642 +14719 22095786 2642 +14720 22098428 2642 +14721 22101070 2648 +14722 22103718 2642 +14723 22106360 2642 +14724 22109002 2642 +14725 22111644 2642 +14726 22114286 2642 +14727 22116928 2648 +14728 22119576 2660 +14729 22122236 2660 +14730 22124896 2654 +14731 22127550 2660 +14732 22130210 2660 +14733 22132870 2648 +14734 22135518 2642 +14735 22138160 2642 +14736 22140802 2642 +14737 22143444 2642 +14738 22146086 2648 +14739 22148734 2648 +14740 22151382 2648 +14741 22154030 2648 +14742 22156678 2648 +14743 22159326 2642 +14744 22161968 2642 +14745 22164610 2642 +14746 22167252 2558 +14747 22169810 2648 +14748 22172458 2642 +14749 22175100 2648 +14750 22177748 2642 +14751 22180390 2642 +14752 22183032 2642 +14753 22185674 2642 +14754 22188316 2648 +14755 22190964 2642 +14756 22193606 2642 +14757 22196248 2642 +14758 22198890 2642 +14759 22201532 2642 +14760 22204174 2642 +14761 22206816 2642 +14762 22209458 2642 +14763 22212100 2648 +14764 22214748 2642 +14765 22217390 2642 +14766 22220032 2642 +14767 22222674 2642 +14768 22225316 2648 +14769 22227964 2642 +14770 22230606 2642 +14771 22233248 2642 +14772 22235890 2642 +14773 22238532 2642 +14774 22241174 2648 +14775 22243822 2660 +14776 22246482 2660 +14777 22249142 2654 +14778 22251796 2660 +14779 22254456 2660 +14780 22257116 2648 +14781 22259764 2642 +14782 22262406 2642 +14783 22265048 2642 +14784 22267690 2642 +14785 22270332 2648 +14786 22272980 2648 +14787 22275628 2648 +14788 22278276 2648 +14789 22280924 2648 +14790 22283572 2642 +14791 22286214 2642 +14792 22288856 2642 +14793 22291498 2558 +14794 22294056 2648 +14795 22296704 2642 +14796 22299346 2648 +14797 22301994 2642 +14798 22304636 2642 +14799 22307278 2642 +14800 22309920 2642 +14801 22312562 2648 +14802 22315210 2642 +14803 22317852 2642 +14804 22320494 2642 +14805 22323136 2642 +14806 22325778 2642 +14807 22328420 2642 +14808 22331062 2642 +14809 22333704 2642 +14810 22336346 2648 +14811 22338994 2642 +14812 22341636 2642 +14813 22344278 2642 +14814 22346920 2642 +14815 22349562 2648 +14816 22352210 2642 +14817 22354852 2642 +14818 22357494 2642 +14819 22360136 2642 +14820 22362778 2642 +14821 22365420 2648 +14822 22368068 2660 +14823 22370728 2660 +14824 22373388 2654 +14825 22376042 2660 +14826 22378702 2660 +14827 22381362 2648 +14828 22384010 2642 +14829 22386652 2642 +14830 22389294 2642 +14831 22391936 2642 +14832 22394578 2648 +14833 22397226 2648 +14834 22399874 2648 +14835 22402522 2648 +14836 22405170 2648 +14837 22407818 2642 +14838 22410460 2642 +14839 22413102 2642 +14840 22415744 2558 +14841 22418302 2648 +14842 22420950 2642 +14843 22423592 2648 +14844 22426240 2642 +14845 22428882 2642 +14846 22431524 2642 +14847 22434166 2642 +14848 22436808 2648 +14849 22439456 2642 +14850 22442098 2642 +14851 22444740 2642 +14852 22447382 2642 +14853 22450024 2642 +14854 22452666 2642 +14855 22455308 2642 +14856 22457950 2642 +14857 22460592 2648 +14858 22463240 2642 +14859 22465882 2642 +14860 22468524 2642 +14861 22471166 2642 +14862 22473808 2648 +14863 22476456 2642 +14864 22479098 2642 +14865 22481740 2642 +14866 22484382 2642 +14867 22487024 2642 +14868 22489666 2648 +14869 22492314 2660 +14870 22494974 2660 +14871 22497634 2654 +14872 22500288 2660 +14873 22502948 2660 +14874 22505608 2648 +14875 22508256 2642 +14876 22510898 2642 +14877 22513540 2642 +14878 22516182 2642 +14879 22518824 1130 +14880 22519954 1202 +14881 22521156 1178 +14882 22522334 1202 +14883 22523536 1238 +14884 22524774 470 +14885 22525244 1208 +14886 22526452 1082 +14887 22527534 1196 +14888 22528730 1196 +14889 22529926 866 +14890 22530792 866 +14891 22531658 830 +14892 22532488 848 +14893 22533336 698 +14894 22534034 1568 +14895 22535602 1580 +14896 22537182 1880 +14897 22539062 1412 +14898 22540474 1394 +14899 22541868 1526 +14900 22543394 1166 +14901 22544560 1136 +14902 22545696 1112 +14903 22546808 1064 +14904 22547872 2120 +14905 22549992 2162 +14906 22552154 2114 +14907 22554268 2156 +14908 22556424 1142 +14909 22557566 458 +14910 22558024 2042 +14911 22560066 566 +14912 22560632 554 +14913 22561186 554 +14914 22561740 542 +14915 22562282 668 +14916 22562950 116 +14917 22563066 1574 +14918 22564640 938 +14919 22565578 1034 +14920 22566612 542 +14921 22567154 518 +14922 22567672 452 +14923 22568124 452 +14924 22568576 458 +14925 22569034 452 +14926 22569486 452 +14927 22569938 452 +14928 22570390 452 +14929 22570842 458 +14930 22571300 452 +14931 22571752 452 +14932 22572204 254 +14933 22572458 1352 +14934 22573810 230 +14935 22574040 1004 +14936 22575044 3050 +14937 22578094 3044 +14938 22581138 3038 +14939 22584176 2846 +14940 22587022 2846 +14941 22589868 2840 +14942 22592708 800 +14943 22593508 362 +14944 22593870 704 +14945 22594574 656 +14946 22595230 662 +14947 22595892 890 +14948 22596782 566 +14949 22597348 512 +14950 22597860 566 +14951 22598426 512 +14952 22598938 1202 +14953 22600140 1208 +14954 22601348 1922 +14955 22603270 512 +14956 22603782 506 +14957 22604288 506 +14958 22604794 2792 +14959 22607586 908 +14960 22608494 908 +14961 22609402 1496 +14962 22610898 416 +14963 22611314 440 +14964 22611754 422 +14965 22612176 2486 +14966 22614662 548 +14967 22615210 560 +14968 22615770 788 +14969 22616558 1298 +14970 22617856 158 +14971 22618014 788 +14972 22618802 1298 +14973 22620100 158 +14974 22620258 2354 +14975 22622612 2354 +14976 22624966 2354 +14977 22627320 2354 +14978 22629674 2354 +14979 22632028 2354 +14980 22634382 2360 +14981 22636742 2360 +14982 22639102 2360 +14983 22641462 2360 +14984 22643822 2360 +14985 22646182 2360 +14986 22648542 2348 +14987 22650890 2348 +14988 22653238 2348 +14989 22655586 2348 +14990 22657934 2348 +14991 22660282 2348 +14992 22662630 728 +14993 22663358 728 +14994 22664086 728 +14995 22664814 728 +14996 22665542 1796 +14997 22667338 950 +14998 22668288 962 +14999 22669250 2468 +15000 22671718 500 +15001 22672218 902 +15002 22673120 332 +15003 22673452 350 +15004 22673802 686 +15005 22674488 686 +15006 22675174 1340 +15007 22676514 4226 +15008 22680740 38 +15009 22680778 920 +15010 22681698 3152 +15011 22684850 3152 +15012 22688002 3134 +15013 22691136 2894 +15014 22694030 2930 +15015 22696960 2936 +15016 22699896 1670 +15017 22701566 884 +15018 22702450 404 +15019 22702854 992 +15020 22703846 980 +15021 22704826 998 +15022 22705824 1364 +15023 22707188 1376 +15024 22708564 362 +15025 22708926 338 +15026 22709264 926 +15027 22710190 662 +15028 22710852 728 +15029 22711580 662 +15030 22712242 728 +15031 22712970 2354 +15032 22715324 2354 +15033 22717678 2354 +15034 22720032 2354 +15035 22722386 2354 +15036 22724740 2354 +15037 22727094 782 +15038 22727876 458 +15039 22728334 6776 +15040 22735110 7064 +15041 22742174 7345 +15042 22749519 6350 +15043 22755869 5828 +15044 22761697 1010 +15045 22762707 1010 +15046 22763717 1064 +15047 22764781 1088 +15048 22765869 956 +15049 22766825 956 +15050 22767781 398 +15051 22768179 674 +15052 22768853 398 +15053 22769251 1316 +15054 22770567 1352 +15055 22771919 656 +15056 22772575 878 +15057 22773453 1016 +15058 22774469 1448 +15059 22775917 908 +15060 22776825 878 +15061 22777703 698 +15062 22778401 734 +15063 22779135 722 +15064 22779857 758 +15065 22780615 1010 +15066 22781625 428 +15067 22782053 452 +15068 22782505 446 +15069 22782951 440 +15070 22783391 590 +15071 22783981 554 +15072 22784535 584 +15073 22785119 584 +15074 22785703 944 +15075 22786647 944 +15076 22787591 596 +15077 22788187 122 +15078 22788309 122 +15079 22788431 1076 +15080 22789507 926 +15081 22790433 638 +15082 22791071 632 +15083 22791703 638 +15084 22792341 632 +15085 22792973 578 +15086 22793551 578 +15087 22794129 578 +15088 22794707 578 +15089 22795285 1958 +15090 22797243 596 +15091 22797839 590 +15092 22798429 542 +15093 22798971 596 +15094 22799567 716 +15095 22800283 674 +15096 22800957 1682 +15097 22802639 1730 +15098 22804369 1682 +15099 22806051 1730 +15100 22807781 752 +15101 22808533 722 +15102 22809255 722 +15103 22809977 722 +15104 22810699 1340 +15105 22812039 1292 +15106 22813331 1376 +15107 22814707 1286 +15108 22815993 1292 +15109 22817285 1292 +15110 22818577 2900 +15111 22821477 2900 +15112 22824377 4214 +15113 22828591 1196 +15114 22829787 1178 +15115 22830965 500 +15116 22831465 488 +15117 22831953 476 +15118 22832429 446 +15119 22832875 416 +15120 22833291 704 +15121 22833995 5684 +15122 22839679 3296 +15123 22842975 590 +15124 22843565 1916 +15125 22845481 740 +15126 22846221 1922 +15127 22848143 2234 +15128 22850377 2234 +15129 22852611 2234 +15130 22854845 2234 +15131 22857079 584 +15132 22857663 548 +15133 22858211 5402 +15134 22863613 716 +15135 22864329 716 +15136 22865045 704 +15137 22865749 452 +15138 22866201 452 +15139 22866653 446 +15140 22867099 1634 +15141 22868733 1634 +15142 22870367 2690 +15143 22873057 2690 +15144 22875747 2690 +15145 22878437 2690 +15146 22881127 2018 +15147 22883145 2006 +15148 22885151 4232 +15149 22889383 4232 +15150 22893615 3056 +15151 22896671 1820 +15152 22898491 1850 +15153 22900341 206 +15154 22900547 206 +15155 22900753 206 +15156 22900959 206 +15157 22901165 506 +15158 22901671 500 +15159 22902171 830 +15160 22903001 830 +15161 22903831 794 +15162 22904625 794 +15163 22905419 800 +15164 22906219 2486 +15165 22908705 1496 +15166 22910201 1496 +15167 22911697 1496 +15168 22913193 1496 +15169 22914689 1496 +15170 22916185 1496 +15171 22917681 1484 +15172 22919165 1484 +15173 22920649 1484 +15174 22922133 1484 +15175 22923617 1484 +15176 22925101 1484 +15177 22926585 2588 +15178 22929173 416 +15179 22929589 422 +15180 22930011 422 +15181 22930433 386 +15182 22930819 398 +15183 22931217 398 +15184 22931615 422 +15185 22932037 410 +15186 22932447 842 +15187 22933289 878 +15188 22934167 878 +15189 22935045 878 +15190 22935923 878 +15191 22936801 842 +15192 22937643 878 +15193 22938521 878 +15194 22939399 878 +15195 22940277 878 +15196 22941155 2018 +15197 22943173 1184 +15198 22944357 1136 +15199 22945493 2198 +15200 22947691 242 +15201 22947933 2198 +15202 22950131 242 +15203 22950373 2126 +15204 22952499 2108 +15205 22954607 584 +15206 22955191 1784 +15207 22956975 4298 +15208 22961273 4298 +15209 22965571 1478 +15210 22967049 1550 +15211 22968599 632 +15212 22969231 632 +15213 22969863 2102 +15214 22971965 2102 +15215 22974067 896 +15216 22974963 2264 +15217 22977227 2252 +15218 22979479 626 +15219 22980105 602 +15220 22980707 194 +15221 22980901 170 +15222 22981071 1250 +15223 22982321 680 +15224 22983001 494 +15225 22983495 1304 +15226 22984799 1304 +15227 22986103 1004 +15228 22987107 692 +15229 22987799 218 +15230 22988017 1454 +15231 22989471 1496 +15232 22990967 2372 +15233 22993339 2360 +15234 22995699 1880 +15235 22997579 548 +15236 22998127 1898 +15237 23000025 548 +15238 23000573 1916 +15239 23002489 548 +15240 23003037 1322 +15241 23004359 776 +15242 23005135 788 +15243 23005923 776 +15244 23006699 1130 +15245 23007829 4448 +15246 23012277 4454 +15247 23016731 4568 +15248 23021299 4568 +15249 23025867 1610 +15250 23027477 1610 +15251 23029087 1610 +15252 23030697 1610 +15253 23032307 1610 +15254 23033917 1010 +15255 23034927 266 +15256 23035193 1010 +15257 23036203 266 +15258 23036469 452 +15259 23036921 200 +15260 23037121 452 +15261 23037573 200 +15262 23037773 788 +15263 23038561 794 +15264 23039355 788 +15265 23040143 794 +15266 23040937 416 +15267 23041353 422 +15268 23041775 956 +15269 23042731 602 +15270 23043333 62 +15271 23043395 1346 +15272 23044741 1286 +15273 23046027 2120 +15274 23048147 776 +15275 23048923 776 +15276 23049699 608 +15277 23050307 374 +15278 23050681 842 +15279 23051523 860 +15280 23052383 1778 +15281 23054161 1778 +15282 23055939 1508 +15283 23057447 662 +15284 23058109 4658 +15285 23062767 4634 +15286 23067401 986 +15287 23068387 986 +15288 23069373 1370 +15289 23070743 1370 +15290 23072113 1370 +15291 23073483 380 +15292 23073863 380 +15293 23074243 380 +15294 23074623 380 +15295 23075003 380 +15296 23075383 380 +15297 23075763 944 +15298 23076707 3926 +15299 23080633 374 +15300 23081007 374 +15301 23081381 1664 +15302 23083045 584 +15303 23083629 788 +15304 23084417 644 +15305 23085061 284 +15306 23085345 284 +15307 23085629 284 +15308 23085913 284 +15309 23086197 284 +15310 23086481 1334 +15311 23087815 1334 +15312 23089149 1334 +15313 23090483 1334 +15314 23091817 1334 +15315 23093151 1334 +15316 23094485 1334 +15317 23095819 1334 +15318 23097153 1334 +15319 23098487 1334 +15320 23099821 572 +15321 23100393 572 +15322 23100965 1232 +15323 23102197 1232 +15324 23103429 1232 +15325 23104661 1514 +15326 23106175 1508 +15327 23107683 1508 +15328 23109191 1136 +15329 23110327 332 +15330 23110659 572 +15331 23111231 2516 +15332 23113747 2516 +15333 23116263 2516 +15334 23118779 2558 +15335 23121337 2516 +15336 23123853 2516 +15337 23126369 2516 +15338 23128885 2516 +15339 23131401 2504 +15340 23133905 2504 +15341 23136409 2558 +15342 23138967 2516 +15343 23141483 2516 +15344 23143999 2516 +15345 23146515 1676 +15346 23148191 1676 +15347 23149867 1616 +15348 23151483 1508 +15349 23152991 452 +15350 23153443 2282 +15351 23155725 134 +15352 23155859 2024 +15353 23157883 1982 +15354 23159865 2024 +15355 23161889 2024 +15356 23163913 2012 +15357 23165925 2030 +15358 23167955 914 +15359 23168869 914 +15360 23169783 938 +15361 23170721 938 +15362 23171659 4730 +15363 23176389 4622 +15364 23181011 2948 +15365 23183959 74 +15366 23184033 506 +15367 23184539 110 +15368 23184649 3134 +15369 23187783 3134 +15370 23190917 3134 +15371 23194051 3134 +15372 23197185 896 +15373 23198081 140 +15374 23198221 1898 +15375 23200119 2366 +15376 23202485 1400 +15377 23203885 2324 +15378 23206209 2330 +15379 23208539 1820 +15380 23210359 38 +15381 23210397 1238 +15382 23211635 1226 +15383 23212861 692 +15384 23213553 950 +15385 23214503 1862 +15386 23216365 1142 +15387 23217507 1136 +15388 23218643 1754 +15389 23220397 1754 +15390 23222151 1754 +15391 23223905 1754 +15392 23225659 710 +15393 23226369 722 +15394 23227091 3008 +15395 23230099 2594 +15396 23232693 2594 +15397 23235287 2588 +15398 23237875 2600 +15399 23240475 2900 +15400 23243375 1106 +15401 23244481 56 +15402 23244537 2900 +15403 23247437 32 +15404 23247469 2876 +15405 23250345 1118 +15406 23251463 1118 +15407 23252581 38 +15408 23252619 1376 +15409 23253995 842 +15410 23254837 512 +15411 23255349 2366 +15412 23257715 2366 +15413 23260081 2366 +15414 23262447 2366 +15415 23264813 2366 +15416 23267179 2366 +15417 23269545 866 +15418 23270411 866 +15419 23271277 896 +15420 23272173 1280 +15421 23273453 1286 +15422 23274739 1718 +15423 23276457 1718 +15424 23278175 1724 +15425 23279899 1718 +15426 23281617 1718 +15427 23283335 1718 +15428 23285053 2972 +15429 23288025 662 +15430 23288687 662 +15431 23289349 662 +15432 23290011 1970 +15433 23291981 1868 +15434 23293849 254 +15435 23294103 254 +15436 23294357 566 +15437 23294923 566 +15438 23295489 524 +15439 23296013 1340 +15440 23297353 1448 +15441 23298801 1442 +15442 23300243 1442 +15443 23301685 2270 +15444 23303955 2270 +15445 23306225 1430 +15446 23307655 560 +15447 23308215 656 +15448 23308871 1862 +15449 23310733 1598 +15450 23312331 674 +15451 23313005 716 +15452 23313721 98 +15453 23313819 614 +15454 23314433 1046 +15455 23315479 1046 +15456 23316525 1358 +15457 23317883 2612 +15458 23320495 2612 +15459 23323107 2612 +15460 23325719 2612 +15461 23328331 2150 +15462 23330481 998 +15463 23331479 986 +15464 23332465 1106 +15465 23333571 2606 +15466 23336177 2684 +15467 23338861 620 +15468 23339481 620 +15469 23340101 3062 +15470 23343163 3080 +15471 23346243 3062 +15472 23349305 3080 +15473 23352385 3062 +15474 23355447 3080 +15475 23358527 836 +15476 23359363 440 +15477 23359803 434 +15478 23360237 434 +15479 23360671 428 +15480 23361099 434 +15481 23361533 710 +15482 23362243 704 +15483 23362947 710 +15484 23363657 722 +15485 23364379 704 +15486 23365083 2198 +15487 23367281 1184 +15488 23368465 1250 +15489 23369715 128 +15490 23369843 122 +15491 23369965 128 +15492 23370093 92 +15493 23370185 2360 +15494 23372545 2012 +15495 23374557 1640 +15496 23376197 2300 +15497 23378497 2156 +15498 23380653 2402 +15499 23383055 1802 +15500 23384857 1796 +15501 23386653 1514 +15502 23388167 1586 +15503 23389753 2456 +15504 23392209 938 +15505 23393147 4790 +15506 23397937 1730 +15507 23399667 944 +15508 23400611 4790 +15509 23405401 1730 +15510 23407131 1964 +15511 23409095 1970 +15512 23411065 2282 +15513 23413347 56 +15514 23413403 1466 +15515 23414869 98 +15516 23414967 2726 +15517 23417693 488 +15518 23418181 482 +15519 23418663 506 +15520 23419169 710 +15521 23419879 710 +15522 23420589 734 +15523 23421323 698 +15524 23422021 698 +15525 23422719 3452 +15526 23426171 3458 +15527 23429629 2132 +15528 23431761 2120 +15529 23433881 764 +15530 23434645 758 +15531 23435403 1064 +15532 23436467 680 +15533 23437147 680 +15534 23437827 1370 +15535 23439197 2882 +15536 23442079 2888 +15537 23444967 2888 +15538 23447855 2126 +15539 23449981 2126 +15540 23452107 2126 +15541 23454233 2090 +15542 23456323 1946 +15543 23458269 1826 +15544 23460095 6272 +15545 23466367 1874 +15546 23468241 392 +15547 23468633 2341 +15548 23470974 422 +15549 23471396 1340 +15550 23472736 1340 +15551 23474076 1058 +15552 23475134 1280 +15553 23476414 1286 +15554 23477700 1718 +15555 23479418 1718 +15556 23481136 1724 +15557 23482860 1718 +15558 23484578 1718 +15559 23486296 1718 +15560 23488014 2972 +15561 23490986 662 +15562 23491648 662 +15563 23492310 662 +15564 23492972 998 +15565 23493970 1940 +15566 23495910 1940 +15567 23497850 1928 +15568 23499778 1004 +15569 23500782 1004 +15570 23501786 1004 +15571 23502790 1004 +15572 23503794 1004 +15573 23504798 1004 +15574 23505802 974 +15575 23506776 974 +15576 23507750 512 +15577 23508262 1454 +15578 23509716 890 +15579 23510606 884 +15580 23511490 572 +15581 23512062 572 +15582 23512634 3182 +15583 23515816 3182 +15584 23518998 584 +15585 23519582 818 +15586 23520400 794 +15587 23521194 842 +15588 23522036 878 +15589 23522914 878 +15590 23523792 878 +15591 23524670 878 +15592 23525548 842 +15593 23526390 878 +15594 23527268 878 +15595 23528146 878 +15596 23529024 878 +15597 23529902 3530 +15598 23533432 1124 +15599 23534556 1094 +15600 23535650 3596 +15601 23539246 398 +15602 23539644 380 +15603 23540024 398 +15604 23540422 1454 +15605 23541876 4190 +15606 23546066 1166 +15607 23547232 1136 +15608 23548368 1142 +15609 23549510 2066 +15610 23551576 458 +15611 23552034 2072 +15612 23554106 2072 +15613 23556178 1568 +15614 23557746 56 +15615 23557802 914 +15616 23558716 1796 +15617 23560512 752 +15618 23561264 1136 +15619 23562400 818 +15620 23563218 812 +15621 23564030 644 +15622 23564674 566 +15623 23565240 890 +15624 23566130 866 +15625 23566996 890 +15626 23567886 890 +15627 23568776 824 +15628 23569600 758 +15629 23570358 1838 +15630 23572196 1844 +15631 23574040 908 +15632 23574948 908 +15633 23575856 578 +15634 23576434 2048 +15635 23578482 2048 +15636 23580530 614 +15637 23581144 854 +15638 23581998 860 +15639 23582858 1298 +15640 23584156 1298 +15641 23585454 944 +15642 23586398 926 +15643 23587324 5882 +15644 23593206 5876 +15645 23599082 1232 +15646 23600314 1568 +15647 23601882 92 +15648 23601974 482 +15649 23602456 950 +15650 23603406 746 +15651 23604152 686 +15652 23604838 698 +15653 23605536 698 +15654 23606234 1718 +15655 23607952 1070 +15656 23609022 2042 +15657 23611064 1934 +15658 23612998 1928 +15659 23614926 596 +15660 23615522 1352 +15661 23616874 1340 +15662 23618214 1334 +15663 23619548 1346 +15664 23620894 1352 +15665 23622246 1346 +15666 23623592 1340 +15667 23624932 1352 +15668 23626284 1394 +15669 23627678 1394 +15670 23629072 1436 +15671 23630508 1436 +15672 23631944 434 +15673 23632378 3236 +15674 23635614 3170 +15675 23638784 464 +15676 23639248 1460 +15677 23640708 1460 +15678 23642168 3668 +15679 23645836 446 +15680 23646282 3752 +15681 23650034 3752 +15682 23653786 350 +15683 23654136 4352 +15684 23658488 968 +15685 23659456 1052 +15686 23660508 1046 +15687 23661554 1382 +15688 23662936 146 +15689 23663082 1382 +15690 23664464 1970 +15691 23666434 524 +15692 23666958 3860 +15693 23670818 3860 +15694 23674678 902 +15695 23675580 902 +15696 23676482 3860 +15697 23680342 3860 +15698 23684202 902 +15699 23685104 902 +15700 23686006 3860 +15701 23689866 3860 +15702 23693726 902 +15703 23694628 902 +15704 23695530 2402 +15705 23697932 1076 +15706 23699008 1058 +15707 23700066 1394 +15708 23701460 1394 +15709 23702854 1064 +15710 23703918 1088 +15711 23705006 2030 +15712 23707036 1898 +15713 23708934 824 +15714 23709758 824 +15715 23710582 824 +15716 23711406 2690 +15717 23714096 2690 +15718 23716786 488 +15719 23717274 788 +15720 23718062 1064 +15721 23719126 1046 +15722 23720172 518 +15723 23720690 530 +15724 23721220 512 +15725 23721732 416 +15726 23722148 374 +15727 23722522 398 +15728 23722920 806 +15729 23723726 806 +15730 23724532 806 +15731 23725338 806 +15732 23726144 806 +15733 23726950 806 +15734 23727756 806 +15735 23728562 806 +15736 23729368 806 +15737 23730174 806 +15738 23730980 806 +15739 23731786 806 +15740 23732592 806 +15741 23733398 806 +15742 23734204 806 +15743 23735010 806 +15744 23735816 806 +15745 23736622 806 +15746 23737428 806 +15747 23738234 806 +15748 23739040 770 +15749 23739810 35185 +15750 23774995 566 +15751 23775561 566 +15752 23776127 566 +15753 23776693 566 +15754 23777259 1178 +15755 23778437 1172 +15756 23779609 1178 +15757 23780787 1172 +15758 23781959 1178 +15759 23783137 1172 +15760 23784309 1178 +15761 23785487 1172 +15762 23786659 974 +15763 23787633 3272 +15764 23790905 3284 +15765 23794189 848 +15766 23795037 848 +15767 23795885 848 +15768 23796733 926 +15769 23797659 926 +15770 23798585 722 +15771 23799307 728 +15772 23800035 722 +15773 23800757 722 +15774 23801479 1550 +15775 23803029 1550 +15776 23804579 1100 +15777 23805679 1106 +15778 23806785 674 +15779 23807459 674 +15780 23808133 1100 +15781 23809233 1106 +15782 23810339 674 +15783 23811013 674 +15784 23811687 1100 +15785 23812787 1106 +15786 23813893 674 +15787 23814567 674 +15788 23815241 500 +15789 23815741 368 +15790 23816109 86 +15791 23816195 1592 +15792 23817787 692 +15793 23818479 1112 +15794 23819591 818 +15795 23820409 1106 +15796 23821515 866 +15797 23822381 914 +15798 23823295 1052 +15799 23824347 656 +15800 23825003 692 +15801 23825695 128 +15802 23825823 812 +15803 23826635 1297 +15804 23827932 2270 +15805 23830202 806 +15806 23831008 740 +15807 23831748 662 +15808 23832410 620 +15809 23833030 422 +15810 23833452 194 +15811 23833646 944 +15812 23834590 542 +15813 23835132 1100 +15814 23836232 1472 +15815 23837704 1838 +15816 23839542 1952 +15817 23841494 1838 +15818 23843332 1994 +15819 23845326 1202 +15820 23846528 1442 +15821 23847970 1124 +15822 23849094 908 +15823 23850002 1202 +15824 23851204 440 +15825 23851644 1364 +15826 23853008 1466 +15827 23854474 5245 +15828 23859719 2017 +15829 23861736 1850 +15830 23863586 470 +15831 23864056 1418 +15832 23865474 224 +15833 23865698 830 +15834 23866528 2678 +15835 23869206 968 +15836 23870174 992 +15837 23871166 2570 +15838 23873736 980 +15839 23874716 2570 +15840 23877286 980 +15841 23878266 2570 +15842 23880836 980 +15843 23881816 506 +15844 23882322 1142 +15845 23883464 1154 +15846 23884618 1154 +15847 23885772 1154 +15848 23886926 854 +15849 23887780 854 +15850 23888634 560 +15851 23889194 794 +15852 23889988 794 +15853 23890782 2768 +15854 23893550 2792 +15855 23896342 2726 +15856 23899068 2780 +15857 23901848 2786 +15858 23904634 2792 +15859 23907426 2786 +15860 23910212 32 +15861 23910244 128 +15862 23910372 32 +15863 23910404 2786 +15864 23913190 2792 +15865 23915982 2786 +15866 23918768 32 +15867 23918800 128 +15868 23918928 32 +15869 23918960 752 +15870 23919712 752 +15871 23920464 752 +15872 23921216 1148 +15873 23922364 1106 +15874 23923470 1106 +15875 23924576 1106 +15876 23925682 1106 +15877 23926788 1106 +15878 23927894 770 +15879 23928664 932 +15880 23929596 1304 +15881 23930900 1304 +15882 23932204 494 +15883 23932698 860 +15884 23933558 1856 +15885 23935414 1214 +15886 23936628 716 +15887 23937344 416 +15888 23937760 410 +15889 23938170 410 +15890 23938580 404 +15891 23938984 716 +15892 23939700 416 +15893 23940116 410 +15894 23940526 410 +15895 23940936 404 +15896 23941340 1730 +15897 23943070 1736 +15898 23944806 1730 +15899 23946536 1634 +15900 23948170 1664 +15901 23949834 1574 +15902 23951408 1664 +15903 23953072 1598 +15904 23954670 1088 +15905 23955758 2144 +15906 23957902 2198 +15907 23960100 2198 +15908 23962298 2204 +15909 23964502 2198 +15910 23966700 2144 +15911 23968844 980 +15912 23969824 950 +15913 23970774 1148 +15914 23971922 404 +15915 23972326 404 +15916 23972730 2114 +15917 23974844 1034 +15918 23975878 1232 +15919 23977110 1412 +15920 23978522 1430 +15921 23979952 614 +15922 23980566 3752 +15923 23984318 3752 +15924 23988070 3752 +15925 23991822 3752 +15926 23995574 3752 +15927 23999326 3752 +15928 24003078 1460 +15929 24004538 812 +15930 24005350 794 +15931 24006144 2114 +15932 24008258 590 +15933 24008848 1628 +15934 24010476 1952 +15935 24012428 1952 +15936 24014380 1952 +15937 24016332 1952 +15938 24018284 1952 +15939 24020236 1952 +15940 24022188 1952 +15941 24024140 1952 +15942 24026092 1952 +15943 24028044 1952 +15944 24029996 1952 +15945 24031948 2006 +15946 24033954 2006 +15947 24035960 2006 +15948 24037966 2006 +15949 24039972 2006 +15950 24041978 2006 +15951 24043984 2006 +15952 24045990 2006 +15953 24047996 2006 +15954 24050002 2006 +15955 24052008 2006 +15956 24054014 1352 +15957 24055366 2240 +15958 24057606 2234 +15959 24059840 2252 +15960 24062092 2252 +15961 24064344 1442 +15962 24065786 1442 +15963 24067228 740 +15964 24067968 740 +15965 24068708 2252 +15966 24070960 2234 +15967 24073194 596 +15968 24073790 596 +15969 24074386 596 +15970 24074982 596 +15971 24075578 596 +15972 24076174 4316 +15973 24080490 4316 +15974 24084806 4316 +15975 24089122 4316 +15976 24093438 4316 +15977 24097754 4316 +15978 24102070 4316 +15979 24106386 4316 +15980 24110702 4316 +15981 24115018 4316 +15982 24119334 4316 +15983 24123650 4316 +15984 24127966 3962 +15985 24131928 1520 +15986 24133448 3416 +15987 24136864 914 +15988 24137778 920 +15989 24138698 962 +15990 24139660 1688 +15991 24141348 1700 +15992 24143048 1562 +15993 24144610 1784 +15994 24146394 3416 +15995 24149810 1400 +15996 24151210 1400 +15997 24152610 1550 +15998 24154160 1550 +15999 24155710 1550 +16000 24157260 1550 +16001 24158810 1550 +16002 24160360 1550 +16003 24161910 1550 +16004 24163460 1550 +16005 24165010 1550 +16006 24166560 1550 +16007 24168110 1550 +16008 24169660 1550 +16009 24171210 3356 +16010 24174566 3932 +16011 24178498 3944 +16012 24182442 3038 +16013 24185480 620 +16014 24186100 620 +16015 24186720 824 +16016 24187544 1016 +16017 24188560 1574 +16018 24190134 2582 +16019 24192716 812 +16020 24193528 1286 +16021 24194814 1310 +16022 24196124 896 +16023 24197020 926 +16024 24197946 1478 +16025 24199424 1034 +16026 24200458 1820 +16027 24202278 998 +16028 24203276 1238 +16029 24204514 1238 +16030 24205752 3074 +16031 24208826 2906 +16032 24211732 38 +16033 24211770 2906 +16034 24214676 50 +16035 24214726 716 +16036 24215442 572 +16037 24216014 518 +16038 24216532 536 +16039 24217068 950 +16040 24218018 1556 +16041 24219574 44 +16042 24219618 938 +16043 24220556 3608 +16044 24224164 3596 +16045 24227760 1976 +16046 24229736 1994 +16047 24231730 836 +16048 24232566 1604 +16049 24234170 1604 +16050 24235774 1604 +16051 24237378 1604 +16052 24238982 1604 +16053 24240586 1604 +16054 24242190 1112 +16055 24243302 1112 +16056 24244414 2624 +16057 24247038 2618 +16058 24249656 1028 +16059 24250684 1202 +16060 24251886 2888 +16061 24254774 5678 +16062 24260452 884 +16063 24261336 68 +16064 24261404 2888 +16065 24264292 5696 +16066 24269988 884 +16067 24270872 68 +16068 24270940 1244 +16069 24272184 782 +16070 24272966 992 +16071 24273958 1382 +16072 24275340 782 +16073 24276122 368 +16074 24276490 374 +16075 24276864 386 +16076 24277250 956 +16077 24278206 968 +16078 24279174 2738 +16079 24281912 1454 +16080 24283366 1394 +16081 24284760 1400 +16082 24286160 1520 +16083 24287680 1520 +16084 24289200 1556 +16085 24290756 2642 +16086 24293398 2642 +16087 24296040 2642 +16088 24298682 572 +16089 24299254 584 +16090 24299838 2108 +16091 24301946 1586 +16092 24303532 1292 +16093 24304824 1286 +16094 24306110 1118 +16095 24307228 1298 +16096 24308526 1298 +16097 24309824 824 +16098 24310648 836 +16099 24311484 2144 +16100 24313628 2102 +16101 24315730 4250 +16102 24319980 1544 +16103 24321524 4070 +16104 24325594 3968 +16105 24329562 110 +16106 24329672 110 +16107 24329782 1946 +16108 24331728 1946 +16109 24333674 560 +16110 24334234 374 +16111 24334608 374 +16112 24334982 1604 +16113 24336586 1604 +16114 24338190 1604 +16115 24339794 1604 +16116 24341398 1604 +16117 24343002 1604 +16118 24344606 812 +16119 24345418 1868 +16120 24347286 1034 +16121 24348320 1190 +16122 24349510 1190 +16123 24350700 1562 +16124 24352262 1562 +16125 24353824 1562 +16126 24355386 2030 +16127 24357416 2102 +16128 24359518 1610 +16129 24361128 1604 +16130 24362732 1592 +16131 24364324 1808 +16132 24366132 1844 +16133 24367976 1808 +16134 24369784 1832 +16135 24371616 1850 +16136 24373466 1790 +16137 24375256 2306 +16138 24377562 1664 +16139 24379226 1478 +16140 24380704 1256 +16141 24381960 626 +16142 24382586 608 +16143 24383194 278 +16144 24383472 284 +16145 24383756 416 +16146 24384172 374 +16147 24384546 2840 +16148 24387386 1268 +16149 24388654 2000 +16150 24390654 2000 +16151 24392654 476 +16152 24393130 1316 +16153 24394446 1316 +16154 24395762 776 +16155 24396538 1166 +16156 24397704 1148 +16157 24398852 2270 +16158 24401122 2402 +16159 24403524 1748 +16160 24405272 590 +16161 24405862 572 +16162 24406434 752 +16163 24407186 1016 +16164 24408202 998 +16165 24409200 1016 +16166 24410216 998 +16167 24411214 500 +16168 24411714 236 +16169 24411950 236 +16170 24412186 236 +16171 24412422 2108 +16172 24414530 2186 +16173 24416716 2108 +16174 24418824 2186 +16175 24421010 2108 +16176 24423118 2186 +16177 24425304 2108 +16178 24427412 2186 +16179 24429598 2114 +16180 24431712 2180 +16181 24433892 2114 +16182 24436006 2192 +16183 24438198 2108 +16184 24440306 2198 +16185 24442504 2114 +16186 24444618 2228 +16187 24446846 1208 +16188 24448054 1160 +16189 24449214 2270 +16190 24451484 1838 +16191 24453322 2210 +16192 24455532 2174 +16193 24457706 2210 +16194 24459916 2174 +16195 24462090 2210 +16196 24464300 2174 +16197 24466474 2210 +16198 24468684 2174 +16199 24470858 2066 +16200 24472924 2108 +16201 24475032 1292 +16202 24476324 2480 +16203 24478804 1070 +16204 24479874 1064 +16205 24480938 860 +16206 24481798 746 +16207 24482544 746 +16208 24483290 746 +16209 24484036 746 +16210 24484782 746 +16211 24485528 746 +16212 24486274 1100 +16213 24487374 1100 +16214 24488474 1100 +16215 24489574 1100 +16216 24490674 1100 +16217 24491774 1100 +16218 24492874 938 +16219 24493812 938 +16220 24494750 938 +16221 24495688 938 +16222 24496626 938 +16223 24497564 938 +16224 24498502 938 +16225 24499440 938 +16226 24500378 938 +16227 24501316 938 +16228 24502254 938 +16229 24503192 938 +16230 24504130 2606 +16231 24506736 2606 +16232 24509342 2606 +16233 24511948 2606 +16234 24514554 2606 +16235 24517160 2606 +16236 24519766 2606 +16237 24522372 2606 +16238 24524978 2606 +16239 24527584 2606 +16240 24530190 2606 +16241 24532796 2606 +16242 24535402 836 +16243 24536238 968 +16244 24537206 1088 +16245 24538294 764 +16246 24539058 524 +16247 24539582 530 +16248 24540112 740 +16249 24540852 746 +16250 24541598 2612 +16251 24544210 1754 +16252 24545964 4250 +16253 24550214 704 +16254 24550918 704 +16255 24551622 704 +16256 24552326 848 +16257 24553174 818 +16258 24553992 1868 +16259 24555860 1766 +16260 24557626 1766 +16261 24559392 4202 +16262 24563594 12433 +16263 24576027 2180 +16264 24578207 2408 +16265 24580615 1814 +16266 24582429 1718 +16267 24584147 548 +16268 24584695 968 +16269 24585663 710 +16270 24586373 494 +16271 24586867 176 +16272 24587043 176 +16273 24587219 212 +16274 24587431 176 +16275 24587607 128 +16276 24587735 1802 +16277 24589537 1802 +16278 24591339 1736 +16279 24593075 830 +16280 24593905 830 +16281 24594735 1802 +16282 24596537 1802 +16283 24598339 830 +16284 24599169 830 +16285 24599999 1802 +16286 24601801 830 +16287 24602631 830 +16288 24603461 824 +16289 24604285 824 +16290 24605109 176 +16291 24605285 176 +16292 24605461 212 +16293 24605673 176 +16294 24605849 128 +16295 24605977 1802 +16296 24607779 1802 +16297 24609581 1736 +16298 24611317 830 +16299 24612147 830 +16300 24612977 1802 +16301 24614779 1802 +16302 24616581 830 +16303 24617411 830 +16304 24618241 1802 +16305 24620043 830 +16306 24620873 830 +16307 24621703 824 +16308 24622527 824 +16309 24623351 1346 +16310 24624697 1388 +16311 24626085 1346 +16312 24627431 1346 +16313 24628777 1388 +16314 24630165 1346 +16315 24631511 1346 +16316 24632857 1388 +16317 24634245 1346 +16318 24635591 1346 +16319 24636937 1388 +16320 24638325 1346 +16321 24639671 1346 +16322 24641017 1388 +16323 24642405 1346 +16324 24643751 1346 +16325 24645097 1346 +16326 24646443 1346 +16327 24647789 1346 +16328 24649135 1346 +16329 24650481 1346 +16330 24651827 1346 +16331 24653173 1346 +16332 24654519 1346 +16333 24655865 1346 +16334 24657211 1346 +16335 24658557 1346 +16336 24659903 1346 +16337 24661249 1346 +16338 24662595 1346 +16339 24663941 1346 +16340 24665287 1346 +16341 24666633 1346 +16342 24667979 1346 +16343 24669325 1346 +16344 24670671 1346 +16345 24672017 1346 +16346 24673363 1346 +16347 24674709 1346 +16348 24676055 1346 +16349 24677401 1346 +16350 24678747 1346 +16351 24680093 1346 +16352 24681439 1346 +16353 24682785 1346 +16354 24684131 1346 +16355 24685477 1346 +16356 24686823 1346 +16357 24688169 1346 +16358 24689515 1346 +16359 24690861 1346 +16360 24692207 1346 +16361 24693553 1346 +16362 24694899 1346 +16363 24696245 1346 +16364 24697591 1346 +16365 24698937 1346 +16366 24700283 1346 +16367 24701629 1346 +16368 24702975 1346 +16369 24704321 530 +16370 24704851 530 +16371 24705381 530 +16372 24705911 530 +16373 24706441 530 +16374 24706971 176 +16375 24707147 176 +16376 24707323 212 +16377 24707535 176 +16378 24707711 128 +16379 24707839 1802 +16380 24709641 1802 +16381 24711443 1736 +16382 24713179 830 +16383 24714009 830 +16384 24714839 1802 +16385 24716641 1802 +16386 24718443 830 +16387 24719273 830 +16388 24720103 1802 +16389 24721905 830 +16390 24722735 830 +16391 24723565 824 +16392 24724389 824 +16393 24725213 176 +16394 24725389 176 +16395 24725565 212 +16396 24725777 176 +16397 24725953 128 +16398 24726081 1802 +16399 24727883 1802 +16400 24729685 1736 +16401 24731421 830 +16402 24732251 830 +16403 24733081 1802 +16404 24734883 1802 +16405 24736685 830 +16406 24737515 830 +16407 24738345 1802 +16408 24740147 830 +16409 24740977 830 +16410 24741807 824 +16411 24742631 824 +16412 24743455 176 +16413 24743631 176 +16414 24743807 212 +16415 24744019 176 +16416 24744195 128 +16417 24744323 1802 +16418 24746125 1802 +16419 24747927 1736 +16420 24749663 830 +16421 24750493 830 +16422 24751323 1802 +16423 24753125 1802 +16424 24754927 830 +16425 24755757 830 +16426 24756587 1802 +16427 24758389 830 +16428 24759219 830 +16429 24760049 824 +16430 24760873 824 +16431 24761697 212 +16432 24761909 212 +16433 24762121 212 +16434 24762333 212 +16435 24762545 212 +16436 24762757 1418 +16437 24764175 1418 +16438 24765593 866 +16439 24766459 902 +16440 24767361 860 +16441 24768221 818 +16442 24769039 1388 +16443 24770427 1328 +16444 24771755 356 +16445 24772111 356 +16446 24772467 512 +16447 24772979 530 +16448 24773509 1868 +16449 24775377 686 +16450 24776063 686 +16451 24776749 2186 +16452 24778935 2186 +16453 24781121 2186 +16454 24783307 2186 +16455 24785493 1784 +16456 24787277 1610 +16457 24788887 1784 +16458 24790671 1610 +16459 24792281 740 +16460 24793021 818 +16461 24793839 776 +16462 24794615 806 +16463 24795421 596 +16464 24796017 1160 +16465 24797177 1160 +16466 24798337 2678 +16467 24801015 1166 +16468 24802181 566 +16469 24802747 3386 +16470 24806133 3344 +16471 24809477 1862 +16472 24811339 440 +16473 24811779 452 +16474 24812231 776 +16475 24813007 734 +16476 24813741 776 +16477 24814517 734 +16478 24815251 398 +16479 24815649 398 +16480 24816047 476 +16481 24816523 476 +16482 24816999 476 +16483 24817475 476 +16484 24817951 3572 +16485 24821523 3698 +16486 24825221 3788 +16487 24829009 3788 +16488 24832797 3698 +16489 24836495 3572 +16490 24840067 1322 +16491 24841389 1352 +16492 24842741 2216 +16493 24844957 2216 +16494 24847173 596 +16495 24847769 536 +16496 24848305 1586 +16497 24849891 2258 +16498 24852149 2258 +16499 24854407 980 +16500 24855387 5096 +16501 24860483 1346 +16502 24861829 1322 +16503 24863151 1562 +16504 24864713 1520 +16505 24866233 4580 +16506 24870813 1190 +16507 24872003 476 +16508 24872479 482 +16509 24872961 782 +16510 24873743 782 +16511 24874525 806 +16512 24875331 806 +16513 24876137 794 +16514 24876931 800 +16515 24877731 644 +16516 24878375 1118 +16517 24879493 1634 +16518 24881127 1556 +16519 24882683 1718 +16520 24884401 1748 +16521 24886149 1718 +16522 24887867 1646 +16523 24889513 932 +16524 24890445 1262 +16525 24891707 1142 +16526 24892849 758 +16527 24893607 770 +16528 24894377 1454 +16529 24895831 1442 +16530 24897273 1406 +16531 24898679 1424 +16532 24900103 824 +16533 24900927 1136 +16534 24902063 416 +16535 24902479 902 +16536 24903381 1658 +16537 24905039 806 +16538 24905845 2318 +16539 24908163 2318 +16540 24910481 782 +16541 24911263 782 +16542 24912045 2072 +16543 24914117 2630 +16544 24916747 2618 +16545 24919365 818 +16546 24920183 890 +16547 24921073 890 +16548 24921963 890 +16549 24922853 890 +16550 24923743 890 +16551 24924633 18829 +16552 24943462 512 +16553 24943974 3152 +16554 24947126 338 +16555 24947464 344 +16556 24947808 2768 +16557 24950576 158 +16558 24950734 2936 +16559 24953670 4346 +16560 24958016 3032 +16561 24961048 2966 +16562 24964014 1100 +16563 24965114 362 +16564 24965476 3632 +16565 24969108 4136 +16566 24973244 2960 +16567 24976204 98 +16568 24976302 164 +16569 24976466 2912 +16570 24979378 2984 +16571 24982362 2816 +16572 24985178 2834 +16573 24988012 2816 +16574 24990828 2846 +16575 24993674 2750 +16576 24996424 2750 +16577 24999174 4580 +16578 25003754 1010 +16579 25004764 980 +16580 25005744 596 +16581 25006340 1262 +16582 25007602 1262 +16583 25008864 1262 +16584 25010126 1262 +16585 25011388 1850 +16586 25013238 830 +16587 25014068 830 +16588 25014898 2132 +16589 25017030 1844 +16590 25018874 512 +16591 25019386 488 +16592 25019874 494 +16593 25020368 230 +16594 25020598 230 +16595 25020828 1502 +16596 25022330 1508 +16597 25023838 1586 +16598 25025424 1586 +16599 25027010 98 +16600 25027108 1142 +16601 25028250 1988 +16602 25030238 2012 +16603 25032250 2006 +16604 25034256 2180 +16605 25036436 2186 +16606 25038622 2186 +16607 25040808 2180 +16608 25042988 2180 +16609 25045168 500 +16610 25045668 428 +16611 25046096 446 +16612 25046542 380 +16613 25046922 1028 +16614 25047950 1028 +16615 25048978 1076 +16616 25050054 1076 +16617 25051130 1850 +16618 25052980 902 +16619 25053882 1838 +16620 25055720 494 +16621 25056214 494 +16622 25056708 1112 +16623 25057820 1118 +16624 25058938 1094 +16625 25060032 1118 +16626 25061150 1838 +16627 25062988 2864 +16628 25065852 2780 +16629 25068632 668 +16630 25069300 656 +16631 25069956 650 +16632 25070606 656 +16633 25071262 644 +16634 25071906 644 +16635 25072550 644 +16636 25073194 644 +16637 25073838 644 +16638 25074482 644 +16639 25075126 1208 +16640 25076334 1172 +16641 25077506 500 +16642 25078006 1988 +16643 25079994 2810 +16644 25082804 2786 +16645 25085590 656 +16646 25086246 632 +16647 25086878 656 +16648 25087534 632 +16649 25088166 650 +16650 25088816 650 +16651 25089466 650 +16652 25090116 650 +16653 25090766 650 +16654 25091416 650 +16655 25092066 650 +16656 25092716 2366 +16657 25095082 1298 +16658 25096380 836 +16659 25097216 1274 +16660 25098490 1274 +16661 25099764 830 +16662 25100594 830 +16663 25101424 1754 +16664 25103178 1916 +16665 25105094 860 +16666 25105954 860 +16667 25106814 164 +16668 25106978 164 +16669 25107142 164 +16670 25107306 164 +16671 25107470 1814 +16672 25109284 938 +16673 25110222 848 +16674 25111070 326 +16675 25111396 830 +16676 25112226 830 +16677 25113056 2192 +16678 25115248 2528 +16679 25117776 602 +16680 25118378 596 +16681 25118974 596 +16682 25119570 596 +16683 25120166 596 +16684 25120762 746 +16685 25121508 542 +16686 25122050 4430 +16687 25126480 1118 +16688 25127598 1142 +16689 25128740 1766 +16690 25130506 1766 +16691 25132272 1766 +16692 25134038 1766 +16693 25135804 2624 +16694 25138428 3818 +16695 25142246 1472 +16696 25143718 1472 +16697 25145190 2012 +16698 25147202 2012 +16699 25149214 968 +16700 25150182 2144 +16701 25152326 2144 +16702 25154470 1046 +16703 25155516 1046 +16704 25156562 1046 +16705 25157608 1046 +16706 25158654 2144 +16707 25160798 2144 +16708 25162942 1046 +16709 25163988 1046 +16710 25165034 1046 +16711 25166080 1046 +16712 25167126 2144 +16713 25169270 2144 +16714 25171414 1046 +16715 25172460 1046 +16716 25173506 1046 +16717 25174552 1046 +16718 25175598 2168 +16719 25177766 1088 +16720 25178854 992 +16721 25179846 992 +16722 25180838 482 +16723 25181320 476 +16724 25181796 638 +16725 25182434 668 +16726 25183102 158 +16727 25183260 158 +16728 25183418 158 +16729 25183576 158 +16730 25183734 656 +16731 25184390 590 +16732 25184980 572 +16733 25185552 2552 +16734 25188104 2558 +16735 25190662 2546 +16736 25193208 2552 +16737 25195760 1676 +16738 25197436 1646 +16739 25199082 740 +16740 25199822 3842 +16741 25203664 1496 +16742 25205160 1496 +16743 25206656 2012 +16744 25208668 2012 +16745 25210680 1352 +16746 25212032 1538 +16747 25213570 1538 +16748 25215108 1784 +16749 25216892 788 +16750 25217680 1340 +16751 25219020 1286 +16752 25220306 560 +16753 25220866 494 +16754 25221360 530 +16755 25221890 560 +16756 25222450 1106 +16757 25223556 1106 +16758 25224662 1106 +16759 25225768 1106 +16760 25226874 2546 +16761 25229420 2528 +16762 25231948 1340 +16763 25233288 950 +16764 25234238 950 +16765 25235188 950 +16766 25236138 950 +16767 25237088 1652 +16768 25238740 2006 +16769 25240746 2036 +16770 25242782 2054 +16771 25244836 2066 +16772 25246902 740 +16773 25247642 728 +16774 25248370 740 +16775 25249110 728 +16776 25249838 722 +16777 25250560 716 +16778 25251276 722 +16779 25251998 716 +16780 25252714 740 +16781 25253454 2240 +16782 25255694 2252 +16783 25257946 992 +16784 25258938 1052 +16785 25259990 986 +16786 25260976 980 +16787 25261956 986 +16788 25262942 1052 +16789 25263994 992 +16790 25264986 992 +16791 25265978 992 +16792 25266970 992 +16793 25267962 986 +16794 25268948 992 +16795 25269940 1532 +16796 25271472 296 +16797 25271768 296 +16798 25272064 1478 +16799 25273542 1550 +16800 25275092 164 +16801 25275256 170 +16802 25275426 176 +16803 25275602 890 +16804 25276492 866 +16805 25277358 884 +16806 25278242 1532 +16807 25279774 1574 +16808 25281348 1556 +16809 25282904 2078 +16810 25284982 2114 +16811 25287096 2078 +16812 25289174 2114 +16813 25291288 1208 +16814 25292496 1208 +16815 25293704 80 +16816 25293784 1328 +16817 25295112 1316 +16818 25296428 2006 +16819 25298434 1958 +16820 25300392 1910 +16821 25302302 1928 +16822 25304230 1922 +16823 25306152 1916 +16824 25308068 956 +16825 25309024 950 +16826 25309974 1496 +16827 25311470 1496 +16828 25312966 1496 +16829 25314462 1496 +16830 25315958 950 +16831 25316908 542 +16832 25317450 3362 +16833 25320812 3464 +16834 25324276 3422 +16835 25327698 416 +16836 25328114 416 +16837 25328530 416 +16838 25328946 416 +16839 25329362 1658 +16840 25331020 2858 +16841 25333878 2858 +16842 25336736 926 +16843 25337662 1754 +16844 25339416 596 +16845 25340012 560 +16846 25340572 620 +16847 25341192 3062 +16848 25344254 3068 +16849 25347322 1412 +16850 25348734 1430 +16851 25350164 1388 +16852 25351552 1406 +16853 25352958 1442 +16854 25354400 1436 +16855 25355836 1388 +16856 25357224 1388 +16857 25358612 1430 +16858 25360042 1412 +16859 25361454 1328 +16860 25362782 1328 +16861 25364110 2108 +16862 25366218 1916 +16863 25368134 2102 +16864 25370236 950 +16865 25371186 938 +16866 25372124 1934 +16867 25374058 1388 +16868 25375446 1388 +16869 25376834 1454 +16870 25378288 1454 +16871 25379742 2096 +16872 25381838 2162 +16873 25384000 2156 +16874 25386156 446 +16875 25386602 446 +16876 25387048 1628 +16877 25388676 1442 +16878 25390118 1424 +16879 25391542 782 +16880 25392324 782 +16881 25393106 2570 +16882 25395676 2564 +16883 25398240 1670 +16884 25399910 1658 +16885 25401568 374 +16886 25401942 1190 +16887 25403132 1286 +16888 25404418 1364 +16889 25405782 1178 +16890 25406960 1172 +16891 25408132 560 +16892 25408692 530 +16893 25409222 836 +16894 25410058 842 +16895 25410900 1532 +16896 25412432 1532 +16897 25413964 1532 +16898 25415496 1532 +16899 25417028 1676 +16900 25418704 722 +16901 25419426 722 +16902 25420148 1658 +16903 25421806 860 +16904 25422666 866 +16905 25423532 860 +16906 25424392 866 +16907 25425258 2408 +16908 25427666 1214 +16909 25428880 5216 +16910 25434096 1124 +16911 25435220 1298 +16912 25436518 1298 +16913 25437816 1298 +16914 25439114 1298 +16915 25440412 2228 +16916 25442640 2222 +16917 25444862 2222 +16918 25447084 830 +16919 25447914 620 +16920 25448534 614 +16921 25449148 5798 +16922 25454946 2426 +16923 25457372 1148 +16924 25458520 554 +16925 25459074 944 +16926 25460018 1838 +16927 25461856 410 +16928 25462266 1466 +16929 25463732 1460 +16930 25465192 1466 +16931 25466658 1460 +16932 25468118 1466 +16933 25469584 1466 +16934 25471050 1460 +16935 25472510 1466 +16936 25473976 1460 +16937 25475436 1466 +16938 25476902 1496 +16939 25478398 1490 +16940 25479888 2966 +16941 25482854 2966 +16942 25485820 1508 +16943 25487328 1508 +16944 25488836 2336 +16945 25491172 3074 +16946 25494246 1004 +16947 25495250 800 +16948 25496050 2336 +16949 25498386 3074 +16950 25501460 1004 +16951 25502464 800 +16952 25503264 1316 +16953 25504580 1292 +16954 25505872 1286 +16955 25507158 3434 +16956 25510592 110 +16957 25510702 1328 +16958 25512030 800 +16959 25512830 2066 +16960 25514896 740 +16961 25515636 1256 +16962 25516892 1976 +16963 25518868 848 +16964 25519716 830 +16965 25520546 662 +16966 25521208 614 +16967 25521822 1058 +16968 25522880 710 +16969 25523590 680 +16970 25524270 590 +16971 25524860 524 +16972 25525384 116 +16973 25525500 1760 +16974 25527260 818 +16975 25528078 1022 +16976 25529100 1070 +16977 25530170 2336 +16978 25532506 602 +16979 25533108 2126 +16980 25535234 728 +16981 25535962 602 +16982 25536564 1286 +16983 25537850 1658 +16984 25539508 704 +16985 25540212 440 +16986 25540652 3440 +16987 25544092 1148 +16988 25545240 3026 +16989 25548266 632 +16990 25548898 698 +16991 25549596 638 +16992 25550234 632 +16993 25550866 1598 +16994 25552464 1574 +16995 25554038 944 +16996 25554982 938 +16997 25555920 2246 +16998 25558166 2246 +16999 25560412 2498 +17000 25562910 2498 +17001 25565408 1838 +17002 25567246 2960 +17003 25570206 1742 +17004 25571948 1730 +17005 25573678 770 +17006 25574448 770 +17007 25575218 896 +17008 25576114 896 +17009 25577010 896 +17010 25577906 2618 +17011 25580524 2612 +17012 25583136 1118 +17013 25584254 2858 +17014 25587112 2858 +17015 25589970 428 +17016 25590398 398 +17017 25590796 422 +17018 25591218 416 +17019 25591634 62 +17020 25591696 62 +17021 25591758 62 +17022 25591820 1136 +17023 25592956 1136 +17024 25594092 1136 +17025 25595228 1136 +17026 25596364 1136 +17027 25597500 1136 +17028 25598636 68 +17029 25598704 794 +17030 25599498 578 +17031 25600076 68 +17032 25600144 794 +17033 25600938 578 +17034 25601516 68 +17035 25601584 794 +17036 25602378 578 +17037 25602956 68 +17038 25603024 794 +17039 25603818 578 +17040 25604396 68 +17041 25604464 794 +17042 25605258 578 +17043 25605836 32 +17044 25605868 68 +17045 25605936 794 +17046 25606730 578 +17047 25607308 32 +17048 25607340 2858 +17049 25610198 1658 +17050 25611856 1658 +17051 25613514 1586 +17052 25615100 1112 +17053 25616212 878 +17054 25617090 884 +17055 25617974 68 +17056 25618042 794 +17057 25618836 578 +17058 25619414 68 +17059 25619482 794 +17060 25620276 578 +17061 25620854 3302 +17062 25624156 68 +17063 25624224 794 +17064 25625018 578 +17065 25625596 68 +17066 25625664 794 +17067 25626458 578 +17068 25627036 2774 +17069 25629810 68 +17070 25629878 794 +17071 25630672 578 +17072 25631250 68 +17073 25631318 794 +17074 25632112 578 +17075 25632690 398 +17076 25633088 392 +17077 25633480 722 +17078 25634202 1352 +17079 25635554 860 +17080 25636414 944 +17081 25637358 1070 +17082 25638428 1034 +17083 25639462 2246 +17084 25641708 2246 +17085 25643954 2246 +17086 25646200 2246 +17087 25648446 2246 +17088 25650692 2246 +17089 25652938 2246 +17090 25655184 2246 +17091 25657430 2180 +17092 25659610 2252 +17093 25661862 2252 +17094 25664114 2180 +17095 25666294 1274 +17096 25667568 2210 +17097 25669778 2210 +17098 25671988 2210 +17099 25674198 2210 +17100 25676408 536 +17101 25676944 1610 +17102 25678554 212 +17103 25678766 530 +17104 25679296 1598 +17105 25680894 218 +17106 25681112 2024 +17107 25683136 260 +17108 25683396 254 +17109 25683650 902 +17110 25684552 902 +17111 25685454 902 +17112 25686356 2192 +17113 25688548 1544 +17114 25690092 656 +17115 25690748 656 +17116 25691404 668 +17117 25692072 62 +17118 25692134 62 +17119 25692196 2138 +17120 25694334 716 +17121 25695050 1010 +17122 25696060 1010 +17123 25697070 1304 +17124 25698374 992 +17125 25699366 986 +17126 25700352 2174 +17127 25702526 1136 +17128 25703662 1136 +17129 25704798 1310 +17130 25706108 1334 +17131 25707442 1352 +17132 25708794 1292 +17133 25710086 872 +17134 25710958 1148 +17135 25712106 1196 +17136 25713302 1172 +17137 25714474 1142 +17138 25715616 878 +17139 25716494 842 +17140 25717336 3188 +17141 25720524 1136 +17142 25721660 590 +17143 25722250 608 +17144 25722858 1160 +17145 25724018 1166 +17146 25725184 2258 +17147 25727442 2258 +17148 25729700 1736 +17149 25731436 1688 +17150 25733124 1676 +17151 25734800 1712 +17152 25736512 1100 +17153 25737612 1190 +17154 25738802 1184 +17155 25739986 1904 +17156 25741890 1904 +17157 25743794 1292 +17158 25745086 1292 +17159 25746378 1292 +17160 25747670 1514 +17161 25749184 2606 +17162 25751790 3176 +17163 25754966 1958 +17164 25756924 1112 +17165 25758036 1142 +17166 25759178 1148 +17167 25760326 980 +17168 25761306 3182 +17169 25764488 914 +17170 25765402 644 +17171 25766046 668 +17172 25766714 626 +17173 25767340 626 +17174 25767966 1016 +17175 25768982 680 +17176 25769662 1262 +17177 25770924 674 +17178 25771598 3314 +17179 25774912 1280 +17180 25776192 1292 +17181 25777484 2642 +17182 25780126 2594 +17183 25782720 2558 +17184 25785278 2528 +17185 25787806 2570 +17186 25790376 2060 +17187 25792436 2060 +17188 25794496 1466 +17189 25795962 1766 +17190 25797728 1748 +17191 25799476 458 +17192 25799934 452 +17193 25800386 452 +17194 25800838 458 +17195 25801296 782 +17196 25802078 794 +17197 25802872 1718 +17198 25804590 1694 +17199 25806284 1724 +17200 25808008 1724 +17201 25809732 998 +17202 25810730 998 +17203 25811728 992 +17204 25812720 992 +17205 25813712 1670 +17206 25815382 1670 +17207 25817052 758 +17208 25817810 98 +17209 25817908 926 +17210 25818834 908 +17211 25819742 38 +17212 25819780 878 +17213 25820658 1196 +17214 25821854 1202 +17215 25823056 1028 +17216 25824084 1844 +17217 25825928 1844 +17218 25827772 608 +17219 25828380 602 +17220 25828982 1208 +17221 25830190 1202 +17222 25831392 2186 +17223 25833578 1778 +17224 25835356 1562 +17225 25836918 1562 +17226 25838480 1838 +17227 25840318 1862 +17228 25842180 380 +17229 25842560 422 +17230 25842982 5420 +17231 25848402 5402 +17232 25853804 1718 +17233 25855522 1718 +17234 25857240 1664 +17235 25858904 1658 +17236 25860562 1664 +17237 25862226 9817 +17238 25872043 2522 +17239 25874565 2270 +17240 25876835 1664 +17241 25878499 2522 +17242 25881021 2270 +17243 25883291 9817 +17244 25893108 8005 +17245 25901113 4808 +17246 25905921 2270 +17247 25908191 18397 +17248 25926588 764 +17249 25927352 266 +17250 25927618 3914 +17251 25931532 4808 +17252 25936340 2270 +17253 25938610 18397 +17254 25957007 764 +17255 25957771 392 +17256 25958163 440 +17257 25958603 476 +17258 25959079 932 +17259 25960011 1532 +17260 25961543 626 +17261 25962169 596 +17262 25962765 626 +17263 25963391 596 +17264 25963987 2606 +17265 25966593 1220 +17266 25967813 1274 +17267 25969087 1250 +17268 25970337 470 +17269 25970807 896 +17270 25971703 896 +17271 25972599 2174 +17272 25974773 1850 +17273 25976623 1850 +17274 25978473 1832 +17275 25980305 1844 +17276 25982149 1844 +17277 25983993 1838 +17278 25985831 1082 +17279 25986913 1028 +17280 25987941 1574 +17281 25989515 1610 +17282 25991125 2048 +17283 25993173 2048 +17284 25995221 2048 +17285 25997269 2048 +17286 25999317 2048 +17287 26001365 2048 +17288 26003413 2048 +17289 26005461 2048 +17290 26007509 1598 +17291 26009107 1682 +17292 26010789 1202 +17293 26011991 1604 +17294 26013595 632 +17295 26014227 62 +17296 26014289 3032 +17297 26017321 2960 +17298 26020281 2036 +17299 26022317 500 +17300 26022817 506 +17301 26023323 500 +17302 26023823 1526 +17303 26025349 1550 +17304 26026899 1532 +17305 26028431 62 +17306 26028493 92 +17307 26028585 68 +17308 26028653 98 +17309 26028751 98 +17310 26028849 98 +17311 26028947 98 +17312 26029045 980 +17313 26030025 158 +17314 26030183 482 +17315 26030665 482 +17316 26031147 338 +17317 26031485 320 +17318 26031805 242 +17319 26032047 1124 +17320 26033171 1382 +17321 26034553 1322 +17322 26035875 1862 +17323 26037737 314 +17324 26038051 926 +17325 26038977 2048 +17326 26041025 2012 +17327 26043037 1892 +17328 26044929 1664 +17329 26046593 1664 +17330 26048257 1664 +17331 26049921 1664 +17332 26051585 1664 +17333 26053249 1664 +17334 26054913 1664 +17335 26056577 1664 +17336 26058241 1664 +17337 26059905 1664 +17338 26061569 2018 +17339 26063587 32 +17340 26063619 320 +17341 26063939 290 +17342 26064229 2528 +17343 26066757 1460 +17344 26068217 1784 +17345 26070001 956 +17346 26070957 956 +17347 26071913 4364 +17348 26076277 4364 +17349 26080641 1442 +17350 26082083 1442 +17351 26083525 1286 +17352 26084811 1382 +17353 26086193 4364 +17354 26090557 4364 +17355 26094921 2114 +17356 26097035 62 +17357 26097097 62 +17358 26097159 782 +17359 26097941 776 +17360 26098717 62 +17361 26098779 62 +17362 26098841 2570 +17363 26101411 272 +17364 26101683 248 +17365 26101931 332 +17366 26102263 368 +17367 26102631 368 +17368 26102999 338 +17369 26103337 2510 +17370 26105847 2528 +17371 26108375 2504 +17372 26110879 2498 +17373 26113377 2504 +17374 26115881 2492 +17375 26118373 1862 +17376 26120235 986 +17377 26121221 986 +17378 26122207 980 +17379 26123187 986 +17380 26124173 986 +17381 26125159 980 +17382 26126139 848 +17383 26126987 872 +17384 26127859 860 +17385 26128719 872 +17386 26129591 2744 +17387 26132335 2744 +17388 26135079 2744 +17389 26137823 2744 +17390 26140567 2744 +17391 26143311 2744 +17392 26146055 2744 +17393 26148799 2744 +17394 26151543 2744 +17395 26154287 2744 +17396 26157031 2744 +17397 26159775 2744 +17398 26162519 902 +17399 26163421 896 +17400 26164317 2048 +17401 26166365 2012 +17402 26168377 1898 +17403 26170275 1298 +17404 26171573 1280 +17405 26172853 2533 +17406 26175386 2533 +17407 26177919 1760 +17408 26179679 356 +17409 26180035 902 +17410 26180937 3590 +17411 26184527 1994 +17412 26186521 1988 +17413 26188509 1988 +17414 26190497 1988 +17415 26192485 1988 +17416 26194473 62 +17417 26194535 62 +17418 26194597 1142 +17419 26195739 62 +17420 26195801 13154 +17421 26208955 776 +17422 26209731 2210 +17423 26211941 464 +17424 26212405 2198 +17425 26214603 458 +17426 26215061 13154 +17427 26228215 776 +17428 26228991 2210 +17429 26231201 13154 +17430 26244355 776 +17431 26245131 2210 +17432 26247341 458 +17433 26247799 13154 +17434 26260953 776 +17435 26261729 2210 +17436 26263939 458 +17437 26264397 1922 +17438 26266319 1922 +17439 26268241 908 +17440 26269149 662 +17441 26269811 908 +17442 26270719 662 +17443 26271381 908 +17444 26272289 662 +17445 26272951 908 +17446 26273859 662 +17447 26274521 908 +17448 26275429 662 +17449 26276091 908 +17450 26276999 662 +17451 26277661 68 +17452 26277729 794 +17453 26278523 584 +17454 26279107 656 +17455 26279763 926 +17456 26280689 878 +17457 26281567 1310 +17458 26282877 1286 +17459 26284163 1298 +17460 26285461 1310 +17461 26286771 3494 +17462 26290265 602 +17463 26290867 602 +17464 26291469 602 +17465 26292071 602 +17466 26292673 68 +17467 26292741 794 +17468 26293535 578 +17469 26294113 68 +17470 26294181 794 +17471 26294975 578 +17472 26295553 890 +17473 26296443 884 +17474 26297327 884 +17475 26298211 878 +17476 26299089 878 +17477 26299967 890 +17478 26300857 914 +17479 26301771 914 +17480 26302685 2144 +17481 26304829 944 +17482 26305773 932 +17483 26306705 932 +17484 26307637 1106 +17485 26308743 998 +17486 26309741 1010 +17487 26310751 986 +17488 26311737 1106 +17489 26312843 1028 +17490 26313871 1034 +17491 26314905 1928 +17492 26316833 1934 +17493 26318767 1940 +17494 26320707 1940 +17495 26322647 1940 +17496 26324587 1928 +17497 26326515 2018 +17498 26328533 1982 +17499 26330515 122 +17500 26330637 3314 +17501 26333951 560 +17502 26334511 1568 +17503 26336079 1148 +17504 26337227 1022 +17505 26338249 1322 +17506 26339571 656 +17507 26340227 560 +17508 26340787 578 +17509 26341365 1784 +17510 26343149 1580 +17511 26344729 1736 +17512 26346465 416 +17513 26346881 416 +17514 26347297 1514 +17515 26348811 2096 +17516 26350907 1640 +17517 26352547 1640 +17518 26354187 584 +17519 26354771 344 +17520 26355115 1184 +17521 26356299 1196 +17522 26357495 620 +17523 26358115 1712 +17524 26359827 1712 +17525 26361539 1730 +17526 26363269 1730 +17527 26364999 1682 +17528 26366681 566 +17529 26367247 1688 +17530 26368935 500 +17531 26369435 2966 +17532 26372401 350 +17533 26372751 326 +17534 26373077 1070 +17535 26374147 650 +17536 26374797 662 +17537 26375459 986 +17538 26376445 2756 +17539 26379201 488 +17540 26379689 1142 +17541 26380831 1142 +17542 26381973 254 +17543 26382227 1016 +17544 26383243 248 +17545 26383491 1046 +17546 26384537 254 +17547 26384791 1016 +17548 26385807 248 +17549 26386055 1046 +17550 26387101 320 +17551 26387421 278 +17552 26387699 656 +17553 26388355 1490 +17554 26389845 3050 +17555 26392895 524 +17556 26393419 2690 +17557 26396109 2666 +17558 26398775 2678 +17559 26401453 2690 +17560 26404143 2666 +17561 26406809 2678 +17562 26409487 2690 +17563 26412177 2630 +17564 26414807 2612 +17565 26417419 2690 +17566 26420109 2630 +17567 26422739 2612 +17568 26425351 2630 +17569 26427981 2618 +17570 26430599 2642 +17571 26433241 2630 +17572 26435871 2618 +17573 26438489 2642 +17574 26441131 2750 +17575 26443881 2750 +17576 26446631 2750 +17577 26449381 2738 +17578 26452119 2750 +17579 26454869 2750 +17580 26457619 2084 +17581 26459703 2084 +17582 26461787 1316 +17583 26463103 770 +17584 26463873 776 +17585 26464649 770 +17586 26465419 776 +17587 26466195 1736 +17588 26467931 554 +17589 26468485 2996 +17590 26471481 1118 +17591 26472599 1160 +17592 26473759 938 +17593 26474697 1646 +17594 26476343 1994 +17595 26478337 1574 +17596 26479911 1718 +17597 26481629 1256 +17598 26482885 1376 +17599 26484261 1376 +17600 26485637 1814 +17601 26487451 1814 +17602 26489265 1814 +17603 26491079 1814 +17604 26492893 1814 +17605 26494707 1814 +17606 26496521 3692 +17607 26500213 3692 +17608 26503905 3632 +17609 26507537 3632 +17610 26511169 3632 +17611 26514801 986 +17612 26515787 986 +17613 26516773 986 +17614 26517759 1496 +17615 26519255 986 +17616 26520241 986 +17617 26521227 986 +17618 26522213 608 +17619 26522821 710 +17620 26523531 704 +17621 26524235 2090 +17622 26526325 5432 +17623 26531757 2234 +17624 26533991 800 +17625 26534791 800 +17626 26535591 1988 +17627 26537579 2036 +17628 26539615 590 +17629 26540205 596 +17630 26540801 590 +17631 26541391 596 +17632 26541987 1076 +17633 26543063 1076 +17634 26544139 1028 +17635 26545167 1010 +17636 26546177 626 +17637 26546803 140 +17638 26546943 140 +17639 26547083 140 +17640 26547223 140 +17641 26547363 140 +17642 26547503 140 +17643 26547643 140 +17644 26547783 140 +17645 26547923 140 +17646 26548063 140 +17647 26548203 140 +17648 26548343 140 +17649 26548483 140 +17650 26548623 140 +17651 26548763 140 +17652 26548903 140 +17653 26549043 140 +17654 26549183 140 +17655 26549323 140 +17656 26549463 140 +17657 26549603 140 +17658 26549743 140 +17659 26549883 140 +17660 26550023 140 +17661 26550163 140 +17662 26550303 140 +17663 26550443 140 +17664 26550583 140 +17665 26550723 140 +17666 26550863 140 +17667 26551003 140 +17668 26551143 140 +17669 26551283 140 +17670 26551423 140 +17671 26551563 140 +17672 26551703 140 +17673 26551843 2630 +17674 26554473 2630 +17675 26557103 2630 +17676 26559733 2630 +17677 26562363 2630 +17678 26564993 2630 +17679 26567623 2630 +17680 26570253 2630 +17681 26572883 2630 +17682 26575513 2630 +17683 26578143 2630 +17684 26580773 2630 +17685 26583403 2630 +17686 26586033 2630 +17687 26588663 2630 +17688 26591293 2630 +17689 26593923 2096 +17690 26596019 2324 +17691 26598343 2330 +17692 26600673 2372 +17693 26603045 380 +17694 26603425 122 +17695 26603547 1976 +17696 26605523 1976 +17697 26607499 1976 +17698 26609475 1976 +17699 26611451 800 +17700 26612251 800 +17701 26613051 800 +17702 26613851 914 +17703 26614765 752 +17704 26615517 1886 +17705 26617403 1880 +17706 26619283 1856 +17707 26621139 1844 +17708 26622983 1844 +17709 26624827 1868 +17710 26626695 1862 +17711 26628557 1838 +17712 26630395 1802 +17713 26632197 1850 +17714 26634047 1832 +17715 26635879 1868 +17716 26637747 1082 +17717 26638829 2210 +17718 26641039 2168 +17719 26643207 1178 +17720 26644385 1178 +17721 26645563 1166 +17722 26646729 1148 +17723 26647877 1166 +17724 26649043 1166 +17725 26650209 1148 +17726 26651357 1166 +17727 26652523 1118 +17728 26653641 968 +17729 26654609 2456 +17730 26657065 2540 +17731 26659605 3614 +17732 26663219 836 +17733 26664055 830 +17734 26664885 1580 +17735 26666465 1586 +17736 26668051 1160 +17737 26669211 1166 +17738 26670377 632 +17739 26671009 638 +17740 26671647 1352 +17741 26672999 1346 +17742 26674345 548 +17743 26674893 518 +17744 26675411 188 +17745 26675599 164 +17746 26675763 128 +17747 26675891 1712 +17748 26677603 1700 +17749 26679303 1598 +17750 26680901 2384 +17751 26683285 128 +17752 26683413 1712 +17753 26685125 1700 +17754 26686825 1598 +17755 26688423 2384 +17756 26690807 1274 +17757 26692081 1922 +17758 26694003 1964 +17759 26695967 692 +17760 26696659 3194 +17761 26699853 962 +17762 26700815 932 +17763 26701747 1166 +17764 26702913 692 +17765 26703605 716 +17766 26704321 752 +17767 26705073 722 +17768 26705795 1964 +17769 26707759 1964 +17770 26709723 1964 +17771 26711687 2558 +17772 26714245 1172 +17773 26715417 548 +17774 26715965 2108 +17775 26718073 692 +17776 26718765 1184 +17777 26719949 1184 +17778 26721133 410 +17779 26721543 3596 +17780 26725139 3560 +17781 26728699 1124 +17782 26729823 1088 +17783 26730911 1658 +17784 26732569 1658 +17785 26734227 4658 +17786 26738885 4658 +17787 26743543 1844 +17788 26745387 1484 +17789 26746871 2342 +17790 26749213 1220 +17791 26750433 2000 +17792 26752433 1748 +17793 26754181 1718 +17794 26755899 1748 +17795 26757647 1724 +17796 26759371 1562 +17797 26760933 398 +17798 26761331 410 +17799 26761741 398 +17800 26762139 410 +17801 26762549 968 +17802 26763517 968 +17803 26764485 626 +17804 26765111 626 +17805 26765737 626 +17806 26766363 626 +17807 26766989 626 +17808 26767615 1556 +17809 26769171 1556 +17810 26770727 1508 +17811 26772235 818 +17812 26773053 2354 +17813 26775407 2054 +17814 26777461 2054 +17815 26779515 2000 +17816 26781515 2480 +17817 26783995 902 +17818 26784897 1820 +17819 26786717 1820 +17820 26788537 2282 +17821 26790819 926 +17822 26791745 2672 +17823 26794417 2672 +17824 26797089 788 +17825 26797877 788 +17826 26798665 788 +17827 26799453 788 +17828 26800241 788 +17829 26801029 788 +17830 26801817 788 +17831 26802605 788 +17832 26803393 788 +17833 26804181 788 +17834 26804969 788 +17835 26805757 788 +17836 26806545 788 +17837 26807333 788 +17838 26808121 788 +17839 26808909 788 +17840 26809697 788 +17841 26810485 788 +17842 26811273 2840 +17843 26814113 752 +17844 26814865 398 +17845 26815263 410 +17846 26815673 938 +17847 26816611 1850 +17848 26818461 1850 +17849 26820311 674 +17850 26820985 680 +17851 26821665 674 +17852 26822339 680 +17853 26823019 2474 +17854 26825493 2516 +17855 26828009 2372 +17856 26830381 2474 +17857 26832855 2516 +17858 26835371 2372 +17859 26837743 2444 +17860 26840187 1664 +17861 26841851 1664 +17862 26843515 860 +17863 26844375 860 +17864 26845235 1490 +17865 26846725 3980 +17866 26850705 1190 +17867 26851895 656 +17868 26852551 1106 +17869 26853657 1700 +17870 26855357 1694 +17871 26857051 1706 +17872 26858757 1706 +17873 26860463 716 +17874 26861179 716 +17875 26861895 620 +17876 26862515 626 +17877 26863141 626 +17878 26863767 626 +17879 26864393 620 +17880 26865013 974 +17881 26865987 530 +17882 26866517 620 +17883 26867137 1346 +17884 26868483 320 +17885 26868803 1952 +17886 26870755 1814 +17887 26872569 770 +17888 26873339 806 +17889 26874145 1214 +17890 26875359 1214 +17891 26876573 1622 +17892 26878195 848 +17893 26879043 842 +17894 26879885 2012 +17895 26881897 2012 +17896 26883909 260 +17897 26884169 260 +17898 26884429 260 +17899 26884689 2048 +17900 26886737 1898 +17901 26888635 1898 +17902 26890533 1898 +17903 26892431 1898 +17904 26894329 1898 +17905 26896227 1898 +17906 26898125 980 +17907 26899105 974 +17908 26900079 2414 +17909 26902493 2414 +17910 26904907 2414 +17911 26907321 1412 +17912 26908733 1304 +17913 26910037 1544 +17914 26911581 1178 +17915 26912759 1454 +17916 26914213 716 +17917 26914929 656 +17918 26915585 1544 +17919 26917129 1178 +17920 26918307 1454 +17921 26919761 716 +17922 26920477 656 +17923 26921133 1544 +17924 26922677 1178 +17925 26923855 1454 +17926 26925309 716 +17927 26926025 656 +17928 26926681 1544 +17929 26928225 1178 +17930 26929403 1454 +17931 26930857 716 +17932 26931573 656 +17933 26932229 1544 +17934 26933773 1178 +17935 26934951 1454 +17936 26936405 716 +17937 26937121 656 +17938 26937777 1544 +17939 26939321 1178 +17940 26940499 1454 +17941 26941953 716 +17942 26942669 656 +17943 26943325 1544 +17944 26944869 1178 +17945 26946047 1454 +17946 26947501 716 +17947 26948217 656 +17948 26948873 1544 +17949 26950417 1178 +17950 26951595 1454 +17951 26953049 716 +17952 26953765 656 +17953 26954421 1544 +17954 26955965 1178 +17955 26957143 1454 +17956 26958597 716 +17957 26959313 656 +17958 26959969 1544 +17959 26961513 1178 +17960 26962691 1454 +17961 26964145 716 +17962 26964861 656 +17963 26965517 1544 +17964 26967061 1178 +17965 26968239 1454 +17966 26969693 716 +17967 26970409 656 +17968 26971065 1544 +17969 26972609 1178 +17970 26973787 1454 +17971 26975241 716 +17972 26975957 656 +17973 26976613 1544 +17974 26978157 1178 +17975 26979335 1454 +17976 26980789 716 +17977 26981505 656 +17978 26982161 1544 +17979 26983705 1178 +17980 26984883 1454 +17981 26986337 716 +17982 26987053 656 +17983 26987709 1544 +17984 26989253 1178 +17985 26990431 1454 +17986 26991885 716 +17987 26992601 656 +17988 26993257 1544 +17989 26994801 1178 +17990 26995979 1454 +17991 26997433 716 +17992 26998149 656 +17993 26998805 1544 +17994 27000349 1178 +17995 27001527 1454 +17996 27002981 716 +17997 27003697 656 +17998 27004353 1544 +17999 27005897 1178 +18000 27007075 1454 +18001 27008529 716 +18002 27009245 656 +18003 27009901 1544 +18004 27011445 1178 +18005 27012623 1454 +18006 27014077 716 +18007 27014793 656 +18008 27015449 1544 +18009 27016993 1178 +18010 27018171 1454 +18011 27019625 716 +18012 27020341 656 +18013 27020997 1544 +18014 27022541 1178 +18015 27023719 1454 +18016 27025173 716 +18017 27025889 656 +18018 27026545 1544 +18019 27028089 1178 +18020 27029267 1454 +18021 27030721 716 +18022 27031437 656 +18023 27032093 1544 +18024 27033637 1178 +18025 27034815 1454 +18026 27036269 716 +18027 27036985 656 +18028 27037641 1544 +18029 27039185 1178 +18030 27040363 1454 +18031 27041817 716 +18032 27042533 656 +18033 27043189 1544 +18034 27044733 1178 +18035 27045911 1454 +18036 27047365 716 +18037 27048081 656 +18038 27048737 1544 +18039 27050281 1178 +18040 27051459 1454 +18041 27052913 716 +18042 27053629 656 +18043 27054285 1544 +18044 27055829 1178 +18045 27057007 1454 +18046 27058461 716 +18047 27059177 656 +18048 27059833 1544 +18049 27061377 1178 +18050 27062555 1454 +18051 27064009 716 +18052 27064725 656 +18053 27065381 1544 +18054 27066925 1178 +18055 27068103 1454 +18056 27069557 716 +18057 27070273 656 +18058 27070929 1544 +18059 27072473 1178 +18060 27073651 1454 +18061 27075105 716 +18062 27075821 656 +18063 27076477 1544 +18064 27078021 1178 +18065 27079199 1454 +18066 27080653 716 +18067 27081369 656 +18068 27082025 1544 +18069 27083569 1178 +18070 27084747 1454 +18071 27086201 716 +18072 27086917 656 +18073 27087573 1544 +18074 27089117 1178 +18075 27090295 1454 +18076 27091749 716 +18077 27092465 656 +18078 27093121 1544 +18079 27094665 1178 +18080 27095843 1454 +18081 27097297 716 +18082 27098013 656 +18083 27098669 1544 +18084 27100213 1178 +18085 27101391 1454 +18086 27102845 716 +18087 27103561 656 +18088 27104217 1544 +18089 27105761 1178 +18090 27106939 1454 +18091 27108393 716 +18092 27109109 656 +18093 27109765 1544 +18094 27111309 1178 +18095 27112487 1454 +18096 27113941 716 +18097 27114657 656 +18098 27115313 1544 +18099 27116857 1178 +18100 27118035 1454 +18101 27119489 716 +18102 27120205 656 +18103 27120861 1544 +18104 27122405 1178 +18105 27123583 1454 +18106 27125037 716 +18107 27125753 656 +18108 27126409 1544 +18109 27127953 1178 +18110 27129131 1454 +18111 27130585 716 +18112 27131301 656 +18113 27131957 1544 +18114 27133501 1178 +18115 27134679 1454 +18116 27136133 716 +18117 27136849 656 +18118 27137505 1544 +18119 27139049 1178 +18120 27140227 1454 +18121 27141681 716 +18122 27142397 656 +18123 27143053 1544 +18124 27144597 1178 +18125 27145775 1454 +18126 27147229 716 +18127 27147945 656 +18128 27148601 1544 +18129 27150145 1178 +18130 27151323 1454 +18131 27152777 716 +18132 27153493 656 +18133 27154149 1544 +18134 27155693 1178 +18135 27156871 1454 +18136 27158325 716 +18137 27159041 656 +18138 27159697 1544 +18139 27161241 1178 +18140 27162419 1454 +18141 27163873 716 +18142 27164589 656 +18143 27165245 1544 +18144 27166789 1178 +18145 27167967 1454 +18146 27169421 716 +18147 27170137 656 +18148 27170793 1544 +18149 27172337 1178 +18150 27173515 1454 +18151 27174969 716 +18152 27175685 656 +18153 27176341 1544 +18154 27177885 1178 +18155 27179063 1454 +18156 27180517 716 +18157 27181233 656 +18158 27181889 1544 +18159 27183433 1178 +18160 27184611 1454 +18161 27186065 716 +18162 27186781 656 +18163 27187437 1544 +18164 27188981 1178 +18165 27190159 1454 +18166 27191613 716 +18167 27192329 656 +18168 27192985 1544 +18169 27194529 1178 +18170 27195707 1454 +18171 27197161 716 +18172 27197877 656 +18173 27198533 1544 +18174 27200077 1178 +18175 27201255 1454 +18176 27202709 716 +18177 27203425 656 +18178 27204081 1544 +18179 27205625 1178 +18180 27206803 1454 +18181 27208257 716 +18182 27208973 656 +18183 27209629 1544 +18184 27211173 1178 +18185 27212351 1454 +18186 27213805 716 +18187 27214521 656 +18188 27215177 1544 +18189 27216721 1178 +18190 27217899 1454 +18191 27219353 716 +18192 27220069 656 +18193 27220725 1544 +18194 27222269 1178 +18195 27223447 1454 +18196 27224901 716 +18197 27225617 656 +18198 27226273 1544 +18199 27227817 1178 +18200 27228995 1454 +18201 27230449 716 +18202 27231165 656 +18203 27231821 1544 +18204 27233365 1178 +18205 27234543 1454 +18206 27235997 716 +18207 27236713 656 +18208 27237369 1544 +18209 27238913 1178 +18210 27240091 1454 +18211 27241545 716 +18212 27242261 656 +18213 27242917 3194 +18214 27246111 1046 +18215 27247157 500 +18216 27247657 1298 +18217 27248955 1298 +18218 27250253 644 +18219 27250897 620 +18220 27251517 2042 +18221 27253559 2042 +18222 27255601 2042 +18223 27257643 2042 +18224 27259685 3218 +18225 27262903 3200 +18226 27266103 386 +18227 27266489 470 +18228 27266959 422 +18229 27267381 470 +18230 27267851 410 +18231 27268261 416 +18232 27268677 626 +18233 27269303 626 +18234 27269929 626 +18235 27270555 626 +18236 27271181 626 +18237 27271807 956 +18238 27272763 974 +18239 27273737 1610 +18240 27275347 956 +18241 27276303 1610 +18242 27277913 956 +18243 27278869 764 +18244 27279633 764 +18245 27280397 2042 +18246 27282439 2042 +18247 27284481 614 +18248 27285095 614 +18249 27285709 2300 +18250 27288009 1076 +18251 27289085 1988 +18252 27291073 1988 +18253 27293061 2168 +18254 27295229 2180 +18255 27297409 2180 +18256 27299589 722 +18257 27300311 740 +18258 27301051 722 +18259 27301773 740 +18260 27302513 206 +18261 27302719 206 +18262 27302925 980 +18263 27303905 950 +18264 27304855 590 +18265 27305445 590 +18266 27306035 2390 +18267 27308425 2444 +18268 27310869 902 +18269 27311771 890 +18270 27312661 1076 +18271 27313737 1088 +18272 27314825 1718 +18273 27316543 1388 +18274 27317931 1670 +18275 27319601 1508 +18276 27321109 1460 +18277 27322569 68 +18278 27322637 1832 +18279 27324469 1586 +18280 27326055 2774 +18281 27328829 2774 +18282 27331603 2768 +18283 27334371 2774 +18284 27337145 1070 +18285 27338215 1070 +18286 27339285 1304 +18287 27340589 1304 +18288 27341893 1298 +18289 27343191 1304 +18290 27344495 1304 +18291 27345799 1298 +18292 27347097 1370 +18293 27348467 1352 +18294 27349819 1022 +18295 27350841 2408 +18296 27353249 2438 +18297 27355687 356 +18298 27356043 332 +18299 27356375 1718 +18300 27358093 74 +18301 27358167 2030 +18302 27360197 2030 +18303 27362227 362 +18304 27362589 374 +18305 27362963 2648 +18306 27365611 932 +18307 27366543 4400 +18308 27370943 2084 +18309 27373027 2084 +18310 27375111 2084 +18311 27377195 2084 +18312 27379279 2084 +18313 27381363 2084 +18314 27383447 2084 +18315 27385531 1280 +18316 27386811 1298 +18317 27388109 842 +18318 27388951 1250 +18319 27390201 1208 +18320 27391409 1184 +18321 27392593 1502 +18322 27394095 1322 +18323 27395417 1322 +18324 27396739 602 +18325 27397341 596 +18326 27397937 932 +18327 27398869 932 +18328 27399801 932 +18329 27400733 830 +18330 27401563 1226 +18331 27402789 1226 +18332 27404015 3170 +18333 27407185 2582 +18334 27409767 482 +18335 27410249 866 +18336 27411115 860 +18337 27411975 800 +18338 27412775 3908 +18339 27416683 1748 +18340 27418431 2600 +18341 27421031 2600 +18342 27423631 422 +18343 27424053 6812 +18344 27430865 1766 +18345 27432631 1754 +18346 27434385 1754 +18347 27436139 1766 +18348 27437905 806 +18349 27438711 1730 +18350 27440441 998 +18351 27441439 470 +18352 27441909 464 +18353 27442373 980 +18354 27443353 1970 +18355 27445323 1928 +18356 27447251 1028 +18357 27448279 1028 +18358 27449307 80 +18359 27449387 80 +18360 27449467 80 +18361 27449547 80 +18362 27449627 80 +18363 27449707 62 +18364 27449769 80 +18365 27449849 80 +18366 27449929 80 +18367 27450009 80 +18368 27450089 80 +18369 27450169 62 +18370 27450231 80 +18371 27450311 80 +18372 27450391 80 +18373 27450471 80 +18374 27450551 80 +18375 27450631 62 +18376 27450693 80 +18377 27450773 80 +18378 27450853 80 +18379 27450933 80 +18380 27451013 62 +18381 27451075 80 +18382 27451155 80 +18383 27451235 80 +18384 27451315 80 +18385 27451395 62 +18386 27451457 80 +18387 27451537 80 +18388 27451617 80 +18389 27451697 80 +18390 27451777 80 +18391 27451857 62 +18392 27451919 200 +18393 27452119 200 +18394 27452319 194 +18395 27452513 2036 +18396 27454549 1364 +18397 27455913 1388 +18398 27457301 1388 +18399 27458689 1100 +18400 27459789 1574 +18401 27461363 1544 +18402 27462907 2018 +18403 27464925 2018 +18404 27466943 1604 +18405 27468547 1580 +18406 27470127 1580 +18407 27471707 1592 +18408 27473299 1592 +18409 27474891 1442 +18410 27476333 1640 +18411 27477973 938 +18412 27478911 986 +18413 27479897 842 +18414 27480739 938 +18415 27481677 914 +18416 27482591 1856 +18417 27484447 1760 +18418 27486207 1754 +18419 27487961 1760 +18420 27489721 1742 +18421 27491463 1724 +18422 27493187 1760 +18423 27494947 1760 +18424 27496707 1760 +18425 27498467 1760 +18426 27500227 560 +18427 27500787 1220 +18428 27502007 200 +18429 27502207 200 +18430 27502407 194 +18431 27502601 194 +18432 27502795 194 +18433 27502989 200 +18434 27503189 878 +18435 27504067 878 +18436 27504945 1946 +18437 27506891 1310 +18438 27508201 1940 +18439 27510141 356 +18440 27510497 3404 +18441 27513901 1634 +18442 27515535 1124 +18443 27516659 1112 +18444 27517771 1868 +18445 27519639 1046 +18446 27520685 1190 +18447 27521875 1172 +18448 27523047 1874 +18449 27524921 1550 +18450 27526471 2264 +18451 27528735 2336 +18452 27531071 2276 +18453 27533347 2282 +18454 27535629 2294 +18455 27537923 2252 +18456 27540175 2288 +18457 27542463 2276 +18458 27544739 1640 +18459 27546379 890 +18460 27547269 734 +18461 27548003 1070 +18462 27549073 812 +18463 27549885 704 +18464 27550589 728 +18465 27551317 716 +18466 27552033 698 +18467 27552731 890 +18468 27553621 872 +18469 27554493 560 +18470 27555053 752 +18471 27555805 608 +18472 27556413 452 +18473 27556865 548 +18474 27557413 1490 +18475 27558903 284 +18476 27559187 314 +18477 27559501 350 +18478 27559851 422 +18479 27560273 230 +18480 27560503 1280 +18481 27561783 1268 +18482 27563051 1058 +18483 27564109 1046 +18484 27565155 326 +18485 27565481 266 +18486 27565747 236 +18487 27565983 284 +18488 27566267 3146 +18489 27569413 896 +18490 27570309 1448 +18491 27571757 1448 +18492 27573205 1250 +18493 27574455 662 +18494 27575117 2552 +18495 27577669 2546 +18496 27580215 566 +18497 27580781 566 +18498 27581347 1136 +18499 27582483 2330 +18500 27584813 2336 +18501 27587149 1304 +18502 27588453 1304 +18503 27589757 1862 +18504 27591619 2270 +18505 27593889 2270 +18506 27596159 494 +18507 27596653 506 +18508 27597159 956 +18509 27598115 1292 +18510 27599407 1286 +18511 27600693 1256 +18512 27601949 1244 +18513 27603193 1778 +18514 27604971 1790 +18515 27606761 206 +18516 27606967 452 +18517 27607419 1778 +18518 27609197 1784 +18519 27610981 476 +18520 27611457 458 +18521 27611915 1778 +18522 27613693 1784 +18523 27615477 470 +18524 27615947 458 +18525 27616405 1586 +18526 27617991 6170 +18527 27624161 38 +18528 27624199 794 +18529 27624993 782 +18530 27625775 1298 +18531 27627073 1190 +18532 27628263 1070 +18533 27629333 1352 +18534 27630685 5060 +18535 27635745 1766 +18536 27637511 1760 +18537 27639271 1766 +18538 27641037 1766 +18539 27642803 1862 +18540 27644665 1058 +18541 27645723 1022 +18542 27646745 848 +18543 27647593 848 +18544 27648441 4532 +18545 27652973 1574 +18546 27654547 836 +18547 27655383 1574 +18548 27656957 812 +18549 27657769 458 +18550 27658227 302 +18551 27658529 452 +18552 27658981 674 +18553 27659655 710 +18554 27660365 1274 +18555 27661639 1466 +18556 27663105 626 +18557 27663731 602 +18558 27664333 704 +18559 27665037 602 +18560 27665639 680 +18561 27666319 548 +18562 27666867 536 +18563 27667403 476 +18564 27667879 476 +18565 27668355 1544 +18566 27669899 836 +18567 27670735 542 +18568 27671277 500 +18569 27671777 1364 +18570 27673141 1376 +18571 27674517 794 +18572 27675311 788 +18573 27676099 1100 +18574 27677199 1100 +18575 27678299 674 +18576 27678973 680 +18577 27679653 566 +18578 27680219 3218 +18579 27683437 1484 +18580 27684921 1484 +18581 27686405 1484 +18582 27687889 1334 +18583 27689223 1256 +18584 27690479 1634 +18585 27692113 974 +18586 27693087 2846 +18587 27695933 2846 +18588 27698779 674 +18589 27699453 698 +18590 27700151 1838 +18591 27701989 2006 +18592 27703995 2072 +18593 27706067 1916 +18594 27707983 1940 +18595 27709923 1934 +18596 27711857 1562 +18597 27713419 3632 +18598 27717051 380 +18599 27717431 1256 +18600 27718687 818 +18601 27719505 512 +18602 27720017 584 +18603 27720601 2912 +18604 27723513 2858 +18605 27726371 2912 +18606 27729283 2858 +18607 27732141 2936 +18608 27735077 2894 +18609 27737971 2936 +18610 27740907 2894 +18611 27743801 5762 +18612 27749563 4520 +18613 27754083 4532 +18614 27758615 2936 +18615 27761551 458 +18616 27762009 860 +18617 27762869 848 +18618 27763717 2330 +18619 27766047 2330 +18620 27768377 2330 +18621 27770707 2330 +18622 27773037 2330 +18623 27775367 2330 +18624 27777697 2150 +18625 27779847 2150 +18626 27781997 2156 +18627 27784153 2108 +18628 27786261 1016 +18629 27787277 2390 +18630 27789667 2036 +18631 27791703 2036 +18632 27793739 2036 +18633 27795775 2000 +18634 27797775 1634 +18635 27799409 2048 +18636 27801457 2012 +18637 27803469 2066 +18638 27805535 2006 +18639 27807541 50 +18640 27807591 50 +18641 27807641 920 +18642 27808561 902 +18643 27809463 584 +18644 27810047 608 +18645 27810655 1826 +18646 27812481 1784 +18647 27814265 3176 +18648 27817441 1232 +18649 27818673 1292 +18650 27819965 1172 +18651 27821137 2156 +18652 27823293 758 +18653 27824051 746 +18654 27824797 524 +18655 27825321 344 +18656 27825665 278 +18657 27825943 2150 +18658 27828093 1634 +18659 27829727 1262 +18660 27830989 1214 +18661 27832203 1070 +18662 27833273 1064 +18663 27834337 896 +18664 27835233 818 +18665 27836051 434 +18666 27836485 860 +18667 27837345 746 +18668 27838091 872 +18669 27838963 824 +18670 27839787 758 +18671 27840545 710 +18672 27841255 692 +18673 27841947 710 +18674 27842657 626 +18675 27843283 668 +18676 27843951 566 +18677 27844517 620 +18678 27845137 572 +18679 27845709 464 +18680 27846173 470 +18681 27846643 380 +18682 27847023 356 +18683 27847379 344 +18684 27847723 314 +18685 27848037 284 +18686 27848321 392 +18687 27848713 236 +18688 27848949 1352 +18689 27850301 1244 +18690 27851545 1238 +18691 27852783 938 +18692 27853721 644 +18693 27854365 914 +18694 27855279 782 +18695 27856061 770 +18696 27856831 602 +18697 27857433 710 +18698 27858143 746 +18699 27858889 692 +18700 27859581 608 +18701 27860189 536 +18702 27860725 500 +18703 27861225 488 +18704 27861713 338 +18705 27862051 482 +18706 27862533 4778 +18707 27867311 3386 +18708 27870697 3044 +18709 27873741 1328 +18710 27875069 3044 +18711 27878113 1328 +18712 27879441 3044 +18713 27882485 1328 +18714 27883813 3044 +18715 27886857 1328 +18716 27888185 3044 +18717 27891229 1328 +18718 27892557 3044 +18719 27895601 1328 +18720 27896929 398 +18721 27897327 932 +18722 27898259 932 +18723 27899191 1112 +18724 27900303 1124 +18725 27901427 1538 +18726 27902965 1370 +18727 27904335 1280 +18728 27905615 32 +18729 27905647 1226 +18730 27906873 1262 +18731 27908135 1232 +18732 27909367 1208 +18733 27910575 2756 +18734 27913331 2636 +18735 27915967 2636 +18736 27918603 2636 +18737 27921239 368 +18738 27921607 410 +18739 27922017 344 +18740 27922361 338 +18741 27922699 1016 +18742 27923715 830 +18743 27924545 824 +18744 27925369 1052 +18745 27926421 596 +18746 27927017 2468 +18747 27929485 1214 +18748 27930699 710 +18749 27931409 1112 +18750 27932521 1112 +18751 27933633 1112 +18752 27934745 1112 +18753 27935857 1670 +18754 27937527 1742 +18755 27939269 746 +18756 27940015 728 +18757 27940743 764 +18758 27941507 716 +18759 27942223 734 +18760 27942957 704 +18761 27943661 698 +18762 27944359 692 +18763 27945051 710 +18764 27945761 710 +18765 27946471 2570 +18766 27949041 2576 +18767 27951617 1784 +18768 27953401 1784 +18769 27955185 1784 +18770 27956969 1784 +18771 27958753 1442 +18772 27960195 2048 +18773 27962243 2048 +18774 27964291 2048 +18775 27966339 2048 +18776 27968387 2048 +18777 27970435 2048 +18778 27972483 2048 +18779 27974531 2048 +18780 27976579 2054 +18781 27978633 2054 +18782 27980687 2054 +18783 27982741 2054 +18784 27984795 2054 +18785 27986849 2054 +18786 27988903 2054 +18787 27990957 2054 +18788 27993011 1880 +18789 27994891 356 +18790 27995247 356 +18791 27995603 1628 +18792 27997231 2852 +18793 28000083 1976 +18794 28002059 4244 +18795 28006303 1376 +18796 28007679 1328 +18797 28009007 1070 +18798 28010077 2840 +18799 28012917 2816 +18800 28015733 1190 +18801 28016923 1100 +18802 28018023 1784 +18803 28019807 488 +18804 28020295 482 +18805 28020777 476 +18806 28021253 80 +18807 28021333 470 +18808 28021803 80 +18809 28021883 1976 +18810 28023859 1910 +18811 28025769 1424 +18812 28027193 1424 +18813 28028617 1424 +18814 28030041 428 +18815 28030469 434 +18816 28030903 920 +18817 28031823 578 +18818 28032401 572 +18819 28032973 578 +18820 28033551 572 +18821 28034123 536 +18822 28034659 536 +18823 28035195 536 +18824 28035731 536 +18825 28036267 710 +18826 28036977 704 +18827 28037681 728 +18828 28038409 728 +18829 28039137 1484 +18830 28040621 1472 +18831 28042093 1964 +18832 28044057 1946 +18833 28046003 2846 +18834 28048849 2846 +18835 28051695 2846 +18836 28054541 2846 +18837 28057387 2846 +18838 28060233 2846 +18839 28063079 2990 +18840 28066069 2990 +18841 28069059 2990 +18842 28072049 2990 +18843 28075039 2990 +18844 28078029 2990 +18845 28081019 2144 +18846 28083163 2144 +18847 28085307 1712 +18848 28087019 1100 +18849 28088119 1100 +18850 28089219 1100 +18851 28090319 1100 +18852 28091419 2144 +18853 28093563 2132 +18854 28095695 2144 +18855 28097839 2204 +18856 28100043 2138 +18857 28102181 2216 +18858 28104397 1016 +18859 28105413 1016 +18860 28106429 2030 +18861 28108459 1886 +18862 28110345 722 +18863 28111067 2156 +18864 28113223 2156 +18865 28115379 2156 +18866 28117535 278 +18867 28117813 284 +18868 28118097 314 +18869 28118411 302 +18870 28118713 2138 +18871 28120851 2126 +18872 28122977 2120 +18873 28125097 2090 +18874 28127187 890 +18875 28128077 842 +18876 28128919 842 +18877 28129761 1298 +18878 28131059 1310 +18879 28132369 512 +18880 28132881 530 +18881 28133411 524 +18882 28133935 830 +18883 28134765 1358 +18884 28136123 1070 +18885 28137193 662 +18886 28137855 662 +18887 28138517 710 +18888 28139227 590 +18889 28139817 548 +18890 28140365 494 +18891 28140859 890 +18892 28141749 1916 +18893 28143665 1136 +18894 28144801 110 +18895 28144911 1148 +18896 28146059 1142 +18897 28147201 5150 +18898 28152351 536 +18899 28152887 980 +18900 28153867 830 +18901 28154697 2906 +18902 28157603 830 +18903 28158433 2906 +18904 28161339 1508 +18905 28162847 770 +18906 28163617 782 +18907 28164399 776 +18908 28165175 1208 +18909 28166383 1214 +18910 28167597 1196 +18911 28168793 410 +18912 28169203 944 +18913 28170147 458 +18914 28170605 458 +18915 28171063 458 +18916 28171521 458 +18917 28171979 458 +18918 28172437 458 +18919 28172895 458 +18920 28173353 458 +18921 28173811 800 +18922 28174611 278 +18923 28174889 1346 +18924 28176235 254 +18925 28176489 452 +18926 28176941 470 +18927 28177411 272 +18928 28177683 314 +18929 28177997 2954 +18930 28180951 2870 +18931 28183821 2930 +18932 28186751 2804 +18933 28189555 2828 +18934 28192383 1634 +18935 28194017 1130 +18936 28195147 2660 +18937 28197807 2246 +18938 28200053 2246 +18939 28202299 2246 +18940 28204545 2246 +18941 28206791 476 +18942 28207267 530 +18943 28207797 1004 +18944 28208801 632 +18945 28209433 770 +18946 28210203 674 +18947 28210877 1622 +18948 28212499 1604 +18949 28214103 1772 +18950 28215875 1772 +18951 28217647 1724 +18952 28219371 1712 +18953 28221083 1298 +18954 28222381 596 +18955 28222977 590 +18956 28223567 788 +18957 28224355 626 +18958 28224981 4196 +18959 28229177 92 +18960 28229269 530 +18961 28229799 4292 +18962 28234091 4292 +18963 28238383 524 +18964 28238907 890 +18965 28239797 530 +18966 28240327 524 +18967 28240851 1345 +18968 28242196 320 +18969 28242516 314 +18970 28242830 860 +18971 28243690 860 +18972 28244550 1328 +18973 28245878 1394 +18974 28247272 1694 +18975 28248966 902 +18976 28249868 272 +18977 28250140 272 +18978 28250412 1478 +18979 28251890 1202 +18980 28253092 1202 +18981 28254294 1202 +18982 28255496 1202 +18983 28256698 482 +18984 28257180 482 +18985 28257662 848 +18986 28258510 1040 +18987 28259550 4304 +18988 28263854 842 +18989 28264696 836 +18990 28265532 662 +18991 28266194 1148 +18992 28267342 1184 +18993 28268526 1148 +18994 28269674 1142 +18995 28270816 2492 +18996 28273308 2474 +18997 28275782 1622 +18998 28277404 1628 +18999 28279032 2942 +19000 28281974 2942 +19001 28284916 2942 +19002 28287858 2942 +19003 28290800 2942 +19004 28293742 2942 +19005 28296684 1358 +19006 28298042 1070 +19007 28299112 1520 +19008 28300632 926 +19009 28301558 1736 +19010 28303294 632 +19011 28303926 896 +19012 28304822 644 +19013 28305466 908 +19014 28306374 890 +19015 28307264 536 +19016 28307800 578 +19017 28308378 548 +19018 28308926 2312 +19019 28311238 2312 +19020 28313550 1322 +19021 28314872 1328 +19022 28316200 1598 +19023 28317798 1598 +19024 28319396 1502 +19025 28320898 1550 +19026 28322448 668 +19027 28323116 50 +19028 28323166 626 +19029 28323792 2450 +19030 28326242 1208 +19031 28327450 590 +19032 28328040 602 +19033 28328642 584 +19034 28329226 590 +19035 28329816 398 +19036 28330214 398 +19037 28330612 1868 +19038 28332480 608 +19039 28333088 608 +19040 28333696 608 +19041 28334304 608 +19042 28334912 362 +19043 28335274 1250 +19044 28336524 404 +19045 28336928 2426 +19046 28339354 2426 +19047 28341780 2426 +19048 28344206 2228 +19049 28346434 1112 +19050 28347546 908 +19051 28348454 908 +19052 28349362 752 +19053 28350114 746 +19054 28350860 1874 +19055 28352734 1874 +19056 28354608 1022 +19057 28355630 1022 +19058 28356652 2744 +19059 28359396 2000 +19060 28361396 1922 +19061 28363318 1172 +19062 28364490 1808 +19063 28366298 1808 +19064 28368106 1808 +19065 28369914 1808 +19066 28371722 1808 +19067 28373530 1808 +19068 28375338 1004 +19069 28376342 1004 +19070 28377346 1004 +19071 28378350 1004 +19072 28379354 1004 +19073 28380358 1004 +19074 28381362 1004 +19075 28382366 1808 +19076 28384174 944 +19077 28385118 980 +19078 28386098 962 +19079 28387060 950 +19080 28388010 932 +19081 28388942 860 +19082 28389802 860 +19083 28390662 2300 +19084 28392962 2300 +19085 28395262 2300 +19086 28397562 2300 +19087 28399862 2300 +19088 28402162 2300 +19089 28404462 2300 +19090 28406762 2300 +19091 28409062 2300 +19092 28411362 2300 +19093 28413662 2300 +19094 28415962 2300 +19095 28418262 860 +19096 28419122 860 +19097 28419982 860 +19098 28420842 860 +19099 28421702 860 +19100 28422562 860 +19101 28423422 860 +19102 28424282 860 +19103 28425142 860 +19104 28426002 860 +19105 28426862 860 +19106 28427722 860 +19107 28428582 860 +19108 28429442 860 +19109 28430302 860 +19110 28431162 860 +19111 28432022 650 +19112 28432672 650 +19113 28433322 812 +19114 28434134 812 +19115 28434946 1040 +19116 28435986 986 +19117 28436972 998 +19118 28437970 1856 +19119 28439826 890 +19120 28440716 866 +19121 28441582 890 +19122 28442472 866 +19123 28443338 890 +19124 28444228 866 +19125 28445094 278 +19126 28445372 272 +19127 28445644 278 +19128 28445922 272 +19129 28446194 278 +19130 28446472 272 +19131 28446744 278 +19132 28447022 272 +19133 28447294 278 +19134 28447572 272 +19135 28447844 278 +19136 28448122 272 +19137 28448394 194 +19138 28448588 194 +19139 28448782 194 +19140 28448976 194 +19141 28449170 332 +19142 28449502 1100 +19143 28450602 1106 +19144 28451708 1658 +19145 28453366 1658 +19146 28455024 1664 +19147 28456688 1664 +19148 28458352 1580 +19149 28459932 1580 +19150 28461512 1484 +19151 28462996 1484 +19152 28464480 1358 +19153 28465838 854 +19154 28466692 890 +19155 28467582 1148 +19156 28468730 1184 +19157 28469914 1244 +19158 28471158 1586 +19159 28472744 1586 +19160 28474330 1604 +19161 28475934 1274 +19162 28477208 1274 +19163 28478482 1274 +19164 28479756 1274 +19165 28481030 1274 +19166 28482304 1262 +19167 28483566 1964 +19168 28485530 830 +19169 28486360 830 +19170 28487190 2150 +19171 28489340 728 +19172 28490068 716 +19173 28490784 698 +19174 28491482 1453 +19175 28492935 938 +19176 28493873 608 +19177 28494481 968 +19178 28495449 596 +19179 28496045 968 +19180 28497013 590 +19181 28497603 1142 +19182 28498745 1142 +19183 28499887 362 +19184 28500249 326 +19185 28500575 1220 +19186 28501795 1214 +19187 28503009 1172 +19188 28504181 1838 +19189 28506019 902 +19190 28506921 1010 +19191 28507931 1778 +19192 28509709 752 +19193 28510461 1358 +19194 28511819 1280 +19195 28513099 1922 +19196 28515021 1874 +19197 28516895 1664 +19198 28518559 1340 +19199 28519899 2720 +19200 28522619 2690 +19201 28525309 2696 +19202 28528005 2678 +19203 28530683 722 +19204 28531405 692 +19205 28532097 338 +19206 28532435 1514 +19207 28533949 824 +19208 28534773 1190 +19209 28535963 644 +19210 28536607 1058 +19211 28537665 644 +19212 28538309 3890 +19213 28542199 932 +19214 28543131 590 +19215 28543721 2324 +19216 28546045 1460 +19217 28547505 698 +19218 28548203 668 +19219 28548871 782 +19220 28549653 781 +19221 28550434 818 +19222 28551252 998 +19223 28552250 1196 +19224 28553446 962 +19225 28554408 2234 +19226 28556642 2174 +19227 28558816 1136 +19228 28559952 824 +19229 28560776 998 +19230 28561774 566 +19231 28562340 3488 +19232 28565828 764 +19233 28566592 1478 +19234 28568070 2570 +19235 28570640 2090 +19236 28572730 554 +19237 28573284 1034 +19238 28574318 584 +19239 28574902 1154 +19240 28576056 746 +19241 28576802 440 +19242 28577242 1406 +19243 28578648 530 +19244 28579178 308 +19245 28579486 1388 +19246 28580874 1118 +19247 28581992 968 +19248 28582960 908 +19249 28583868 1226 +19250 28585094 536 +19251 28585630 818 +19252 28586448 470 +19253 28586918 1310 +19254 28588228 998 +19255 28589226 1346 +19256 28590572 1100 +19257 28591672 896 +19258 28592568 866 +19259 28593434 1004 +19260 28594438 1748 +19261 28596186 1586 +19262 28597772 2102 +19263 28599874 830 +19264 28600704 788 +19265 28601492 800 +19266 28602292 752 +19267 28603044 890 +19268 28603934 890 +19269 28604824 1724 +19270 28606548 1724 +19271 28608272 1220 +19272 28609492 1220 +19273 28610712 1832 +19274 28612544 1826 +19275 28614370 1832 +19276 28616202 1814 +19277 28618016 1250 +19278 28619266 566 +19279 28619832 458 +19280 28620290 1802 +19281 28622092 1760 +19282 28623852 1436 +19283 28625288 1382 +19284 28626670 1412 +19285 28628082 1418 +19286 28629500 1424 +19287 28630924 1418 +19288 28632342 1424 +19289 28633766 1376 +19290 28635142 1430 +19291 28636572 1418 +19292 28637990 1424 +19293 28639414 1412 +19294 28640826 764 +19295 28641590 740 +19296 28642330 2126 +19297 28644456 2126 +19298 28646582 2126 +19299 28648708 2072 +19300 28650780 2072 +19301 28652852 842 +19302 28653694 842 +19303 28654536 662 +19304 28655198 662 +19305 28655860 1676 +19306 28657536 1658 +19307 28659194 446 +19308 28659640 446 +19309 28660086 446 +19310 28660532 446 +19311 28660978 446 +19312 28661424 2534 +19313 28663958 2534 +19314 28666492 2534 +19315 28669026 2534 +19316 28671560 2534 +19317 28674094 446 +19318 28674540 446 +19319 28674986 446 +19320 28675432 446 +19321 28675878 446 +19322 28676324 2534 +19323 28678858 2534 +19324 28681392 2534 +19325 28683926 2534 +19326 28686460 2534 +19327 28688994 1532 +19328 28690526 1514 +19329 28692040 1544 +19330 28693584 1514 +19331 28695098 1544 +19332 28696642 1514 +19333 28698156 986 +19334 28699142 950 +19335 28700092 92 +19336 28700184 920 +19337 28701104 920 +19338 28702024 3842 +19339 28705866 1328 +19340 28707194 1028 +19341 28708222 1178 +19342 28709400 1178 +19343 28710578 2294 +19344 28712872 2366 +19345 28715238 2762 +19346 28718000 188 +19347 28718188 188 +19348 28718376 188 +19349 28718564 2882 +19350 28721446 2882 +19351 28724328 488 +19352 28724816 908 +19353 28725724 296 +19354 28726020 1448 +19355 28727468 1502 +19356 28728970 1472 +19357 28730442 1466 +19358 28731908 584 +19359 28732492 584 +19360 28733076 3470 +19361 28736546 428 +19362 28736974 590 +19363 28737564 482 +19364 28738046 974 +19365 28739020 986 +19366 28740006 4298 +19367 28744304 4268 +19368 28748572 1148 +19369 28749720 1160 +19370 28750880 500 +19371 28751380 500 +19372 28751880 1550 +19373 28753430 1550 +19374 28754980 2300 +19375 28757280 1064 +19376 28758344 1064 +19377 28759408 1232 +19378 28760640 518 +19379 28761158 818 +19380 28761976 818 +19381 28762794 752 +19382 28763546 776 +19383 28764322 818 +19384 28765140 818 +19385 28765958 752 +19386 28766710 776 +19387 28767486 818 +19388 28768304 818 +19389 28769122 752 +19390 28769874 776 +19391 28770650 68 +19392 28770718 68 +19393 28770786 824 +19394 28771610 824 +19395 28772434 2450 +19396 28774884 632 +19397 28775516 62 +19398 28775578 18685 +19399 28794263 4754 +19400 28799017 2348 +19401 28801365 1706 +19402 28803071 1772 +19403 28804843 1550 +19404 28806393 1340 +19405 28807733 1142 +19406 28808875 1544 +19407 28810419 1514 +19408 28811933 1436 +19409 28813369 1286 +19410 28814655 500 +19411 28815155 338 +19412 28815493 6674 +19413 28822167 6578 +19414 28828745 3548 +19415 28832293 3548 +19416 28835841 3404 +19417 28839245 3392 +19418 28842637 1898 +19419 28844535 1538 +19420 28846073 1442 +19421 28847515 968 +19422 28848483 974 +19423 28849457 854 +19424 28850311 932 +19425 28851243 452 +19426 28851695 2510 +19427 28854205 962 +19428 28855167 1646 +19429 28856813 2552 +19430 28859365 4808 +19431 28864173 1766 +19432 28865939 530 +19433 28866469 950 +19434 28867419 2174 +19435 28869593 1088 +19436 28870681 1148 +19437 28871829 1892 +19438 28873721 860 +19439 28874581 1112 +19440 28875693 914 +19441 28876607 3560 +19442 28880167 1520 +19443 28881687 1754 +19444 28883441 2900 +19445 28886341 998 +19446 28887339 1364 +19447 28888703 4226 +19448 28892929 1184 +19449 28894113 668 +19450 28894781 1058 +19451 28895839 1520 +19452 28897359 1550 +19453 28898909 6362 +19454 28905271 68 +19455 28905339 794 +19456 28906133 590 +19457 28906723 314 +19458 28907037 86 +19459 28907123 1646 +19460 28908769 1646 +19461 28910415 1646 +19462 28912061 1592 +19463 28913653 1592 +19464 28915245 1592 +19465 28916837 2042 +19466 28918879 1982 +19467 28920861 1268 +19468 28922129 1226 +19469 28923355 542 +19470 28923897 542 +19471 28924439 1268 +19472 28925707 1958 +19473 28927665 1964 +19474 28929629 554 +19475 28930183 554 +19476 28930737 548 +19477 28931285 548 +19478 28931833 956 +19479 28932789 2312 +19480 28935101 2294 +19481 28937395 1220 +19482 28938615 1220 +19483 28939835 908 +19484 28940743 1058 +19485 28941801 1064 +19486 28942865 1070 +19487 28943935 1052 +19488 28944987 836 +19489 28945823 836 +19490 28946659 836 +19491 28947495 842 +19492 28948337 1586 +19493 28949923 932 +19494 28950855 1604 +19495 28952459 1604 +19496 28954063 1604 +19497 28955667 5138 +19498 28960805 506 +19499 28961311 884 +19500 28962195 2150 +19501 28964345 2144 +19502 28966489 776 +19503 28967265 764 +19504 28968029 1106 +19505 28969135 1136 +19506 28970271 656 +19507 28970927 656 +19508 28971583 1322 +19509 28972905 1154 +19510 28974059 1118 +19511 28975177 896 +19512 28976073 896 +19513 28976969 1238 +19514 28978207 1238 +19515 28979445 1922 +19516 28981367 1982 +19517 28983349 1988 +19518 28985337 1982 +19519 28987319 1982 +19520 28989301 1052 +19521 28990353 1046 +19522 28991399 980 +19523 28992379 1004 +19524 28993383 1058 +19525 28994441 1016 +19526 28995457 188 +19527 28995645 188 +19528 28995833 188 +19529 28996021 188 +19530 28996209 188 +19531 28996397 188 +19532 28996585 188 +19533 28996773 188 +19534 28996961 1574 +19535 28998535 1574 +19536 29000109 1574 +19537 29001683 1574 +19538 29003257 1574 +19539 29004831 1574 +19540 29006405 1574 +19541 29007979 1574 +19542 29009553 1772 +19543 29011325 10789 +19544 29022114 10789 +19545 29032903 10789 +19546 29043692 10789 +19547 29054481 1814 +19548 29056295 5402 +19549 29061697 5402 +19550 29067099 5402 +19551 29072501 5402 +19552 29077903 5420 +19553 29083323 5420 +19554 29088743 5420 +19555 29094163 5420 +19556 29099583 722 +19557 29100305 830 +19558 29101135 794 +19559 29101929 500 +19560 29102429 1142 +19561 29103571 1160 +19562 29104731 1544 +19563 29106275 1688 +19564 29107963 2540 +19565 29110503 602 +19566 29111105 2144 +19567 29113249 4178 +19568 29117427 4406 +19569 29121833 4406 +19570 29126239 3902 +19571 29130141 1676 +19572 29131817 794 +19573 29132611 794 +19574 29133405 5456 +19575 29138861 5384 +19576 29144245 1280 +19577 29145525 4052 +19578 29149577 4052 +19579 29153629 4052 +19580 29157681 1970 +19581 29159651 932 +19582 29160583 1154 +19583 29161737 1154 +19584 29162891 1856 +19585 29164747 1742 +19586 29166489 1142 +19587 29167631 1154 +19588 29168785 1634 +19589 29170419 1604 +19590 29172023 1946 +19591 29173969 5618 +19592 29179587 1304 +19593 29180891 3842 +19594 29184733 1238 +19595 29185971 1238 +19596 29187209 1688 +19597 29188897 1688 +19598 29190585 1244 +19599 29191829 1682 +19600 29193511 944 +19601 29194455 1010 +19602 29195465 2378 +19603 29197843 2378 +19604 29200221 1166 +19605 29201387 944 +19606 29202331 1904 +19607 29204235 1088 +19608 29205323 980 +19609 29206303 1004 +19610 29207307 980 +19611 29208287 1082 +19612 29209369 1004 +19613 29210373 1028 +19614 29211401 4406 +19615 29215807 1304 +19616 29217111 1688 +19617 29218799 1082 +19618 29219881 800 +19619 29220681 440 +19620 29221121 800 +19621 29221921 440 +19622 29222361 2810 +19623 29225171 2828 +19624 29227999 2810 +19625 29230809 2810 +19626 29233619 668 +19627 29234287 692 +19628 29234979 926 +19629 29235905 842 +19630 29236747 824 +19631 29237571 452 +19632 29238023 1604 +19633 29239627 1604 +19634 29241231 1604 +19635 29242835 1604 +19636 29244439 1604 +19637 29246043 1604 +19638 29247647 2084 +19639 29249731 206 +19640 29249937 68 +19641 29250005 1514 +19642 29251519 2132 +19643 29253651 2132 +19644 29255783 344 +19645 29256127 356 +19646 29256483 2144 +19647 29258627 2144 +19648 29260771 2558 +19649 29263329 2570 +19650 29265899 944 +19651 29266843 4814 +19652 29271657 524 +19653 29272181 524 +19654 29272705 374 +19655 29273079 356 +19656 29273435 1244 +19657 29274679 1442 +19658 29276121 1442 +19659 29277563 1904 +19660 29279467 1634 +19661 29281101 158 +19662 29281259 1286 +19663 29282545 1058 +19664 29283603 2780 +19665 29286383 530 +19666 29286913 518 +19667 29287431 344 +19668 29287775 3158 +19669 29290933 1082 +19670 29292015 1112 +19671 29293127 680 +19672 29293807 3458 +19673 29297265 3470 +19674 29300735 110 +19675 29300845 110 +19676 29300955 314 +19677 29301269 2564 +19678 29303833 2564 +19679 29306397 2564 +19680 29308961 2564 +19681 29311525 2564 +19682 29314089 2564 +19683 29316653 1640 +19684 29318293 4820 +19685 29323113 530 +19686 29323643 512 +19687 29324155 518 +19688 29324673 494 +19689 29325167 530 +19690 29325697 530 +19691 29326227 512 +19692 29326739 518 +19693 29327257 494 +19694 29327751 530 +19695 29328281 530 +19696 29328811 512 +19697 29329323 518 +19698 29329841 494 +19699 29330335 530 +19700 29330865 530 +19701 29331395 512 +19702 29331907 518 +19703 29332425 494 +19704 29332919 530 +19705 29333449 530 +19706 29333979 512 +19707 29334491 518 +19708 29335009 494 +19709 29335503 530 +19710 29336033 530 +19711 29336563 512 +19712 29337075 518 +19713 29337593 494 +19714 29338087 530 +19715 29338617 530 +19716 29339147 512 +19717 29339659 518 +19718 29340177 494 +19719 29340671 530 +19720 29341201 530 +19721 29341731 512 +19722 29342243 518 +19723 29342761 494 +19724 29343255 530 +19725 29343785 530 +19726 29344315 512 +19727 29344827 518 +19728 29345345 494 +19729 29345839 530 +19730 29346369 530 +19731 29346899 512 +19732 29347411 518 +19733 29347929 494 +19734 29348423 530 +19735 29348953 530 +19736 29349483 512 +19737 29349995 518 +19738 29350513 494 +19739 29351007 530 +19740 29351537 530 +19741 29352067 512 +19742 29352579 518 +19743 29353097 494 +19744 29353591 530 +19745 29354121 6362 +19746 29360483 1160 +19747 29361643 1076 +19748 29362719 2366 +19749 29365085 746 +19750 29365831 668 +19751 29366499 2348 +19752 29368847 1280 +19753 29370127 1298 +19754 29371425 2486 +19755 29373911 1981 +19756 29375892 2366 +19757 29378258 2318 +19758 29380576 788 +19759 29381364 3830 +19760 29385194 1406 +19761 29386600 836 +19762 29387436 1538 +19763 29388974 3686 +19764 29392660 1262 +19765 29393922 2378 +19766 29396300 2372 +19767 29398672 524 +19768 29399196 1094 +19769 29400290 1370 +19770 29401660 1346 +19771 29403006 842 +19772 29403848 956 +19773 29404804 1094 +19774 29405898 818 +19775 29406716 836 +19776 29407552 1706 +19777 29409258 1796 +19778 29411054 1784 +19779 29412838 1790 +19780 29414628 1736 +19781 29416364 1784 +19782 29418148 1736 +19783 29419884 848 +19784 29420732 638 +19785 29421370 656 +19786 29422026 578 +19787 29422604 578 +19788 29423182 578 +19789 29423760 578 +19790 29424338 368 +19791 29424706 704 +19792 29425410 1460 +19793 29426870 1346 +19794 29428216 1346 +19795 29429562 1340 +19796 29430902 2216 +19797 29433118 2216 +19798 29435334 1028 +19799 29436362 1028 +19800 29437390 968 +19801 29438358 2216 +19802 29440574 2216 +19803 29442790 1028 +19804 29443818 1028 +19805 29444846 968 +19806 29445814 488 +19807 29446302 2216 +19808 29448518 2216 +19809 29450734 1028 +19810 29451762 1028 +19811 29452790 968 +19812 29453758 2216 +19813 29455974 2216 +19814 29458190 1028 +19815 29459218 1028 +19816 29460246 968 +19817 29461214 488 +19818 29461702 2216 +19819 29463918 2216 +19820 29466134 1028 +19821 29467162 1028 +19822 29468190 968 +19823 29469158 2216 +19824 29471374 2216 +19825 29473590 1028 +19826 29474618 1028 +19827 29475646 968 +19828 29476614 488 +19829 29477102 1394 +19830 29478496 1472 +19831 29479968 1298 +19832 29481266 1334 +19833 29482600 2396 +19834 29484996 2372 +19835 29487368 2456 +19836 29489824 1862 +19837 29491686 3170 +19838 29494856 1940 +19839 29496796 1718 +19840 29498514 1705 +19841 29500219 1646 +19842 29501865 842 +19843 29502707 3458 +19844 29506165 2060 +19845 29508225 1550 +19846 29509775 572 +19847 29510347 1052 +19848 29511399 410 +19849 29511809 338 +19850 29512147 716 +19851 29512863 722 +19852 29513585 2972 +19853 29516557 2978 +19854 29519535 548 +19855 29520083 2264 +19856 29522347 3392 +19857 29525739 3392 +19858 29529131 1166 +19859 29530297 1148 +19860 29531445 1154 +19861 29532599 1196 +19862 29533795 10033 +19863 29543828 5018 +19864 29548846 5024 +19865 29553870 5006 +19866 29558876 10021 +19867 29568897 4988 +19868 29573885 10009 +19869 29583894 10033 +19870 29593927 10021 +19871 29603948 5024 +19872 29608972 9997 +19873 29618969 10021 +19874 29628990 9961 +19875 29638951 10009 +19876 29648960 10033 +19877 29658993 10021 +19878 29669014 5024 +19879 29674038 9997 +19880 29684035 10021 +19881 29694056 9961 +19882 29704017 10009 +19883 29714026 2930 +19884 29716956 2930 +19885 29719886 452 +19886 29720338 1730 +19887 29722068 1730 +19888 29723798 1112 +19889 29724910 1112 +19890 29726022 1112 +19891 29727134 1112 +19892 29728246 1112 +19893 29729358 1112 +19894 29730470 1112 +19895 29731582 1112 +19896 29732694 80 +19897 29732774 1316 +19898 29734090 1292 +19899 29735382 2264 +19900 29737646 1364 +19901 29739010 1298 +19902 29740308 1718 +19903 29742026 3644 +19904 29745670 3578 +19905 29749248 740 +19906 29749988 740 +19907 29750728 758 +19908 29751486 740 +19909 29752226 2204 +19910 29754430 2204 +19911 29756634 2198 +19912 29758832 2198 +19913 29761030 2204 +19914 29763234 1148 +19915 29764382 1184 +19916 29765566 74 +19917 29765640 1172 +19918 29766812 1214 +19919 29768026 1004 +19920 29769030 968 +19921 29769998 974 +19922 29770972 962 +19923 29771934 992 +19924 29772926 968 +19925 29773894 764 +19926 29774658 2438 +19927 29777096 1100 +19928 29778196 368 +19929 29778564 446 +19930 29779010 1532 +19931 29780542 596 +19932 29781138 548 +19933 29781686 524 +19934 29782210 74 +19935 29782284 2048 +19936 29784332 1472 +19937 29785804 1490 +19938 29787294 536 +19939 29787830 698 +19940 29788528 500 +19941 29789028 500 +19942 29789528 500 +19943 29790028 530 +19944 29790558 1580 +19945 29792138 1568 +19946 29793706 2522 +19947 29796228 854 +19948 29797082 842 +19949 29797924 2516 +19950 29800440 2552 +19951 29802992 2552 +19952 29805544 722 +19953 29806266 716 +19954 29806982 464 +19955 29807446 464 +19956 29807910 398 +19957 29808308 1082 +19958 29809390 1088 +19959 29810478 1232 +19960 29811710 992 +19961 29812702 1562 +19962 29814264 1562 +19963 29815826 488 +19964 29816314 380 +19965 29816694 470 +19966 29817164 380 +19967 29817544 752 +19968 29818296 722 +19969 29819018 1670 +19970 29820688 1622 +19971 29822310 1670 +19972 29823980 1622 +19973 29825602 1232 +19974 29826834 1910 +19975 29828744 1910 +19976 29830654 1574 +19977 29832228 1544 +19978 29833772 1454 +19979 29835226 2504 +19980 29837730 2576 +19981 29840306 2186 +19982 29842492 2186 +19983 29844678 320 +19984 29844998 1718 +19985 29846716 824 +19986 29847540 758 +19987 29848298 1304 +19988 29849602 1178 +19989 29850780 1988 +19990 29852768 2366 +19991 29855134 788 +19992 29855922 788 +19993 29856710 4154 +19994 29860864 1244 +19995 29862108 1190 +19996 29863298 1856 +19997 29865154 2534 +19998 29867688 1766 +19999 29869454 242 +20000 29869696 278 +20001 29869974 122 +20002 29870096 998 +20003 29871094 902 +20004 29871996 1802 +20005 29873798 1796 +20006 29875594 2264 +20007 29877858 2264 +20008 29880122 674 +20009 29880796 1304 +20010 29882100 1280 +20011 29883380 524 +20012 29883904 692 +20013 29884596 692 +20014 29885288 1562 +20015 29886850 1868 +20016 29888718 1826 +20017 29890544 1814 +20018 29892358 1838 +20019 29894196 1826 +20020 29896022 1868 +20021 29897890 1850 +20022 29899740 1814 +20023 29901554 1772 +20024 29903326 2480 +20025 29905806 2426 +20026 29908232 2456 +20027 29910688 2504 +20028 29913192 2528 +20029 29915720 2390 +20030 29918110 1982 +20031 29920092 1964 +20032 29922056 1628 +20033 29923684 1268 +20034 29924952 872 +20035 29925824 872 +20036 29926696 872 +20037 29927568 872 +20038 29928440 1250 +20039 29929690 1250 +20040 29930940 1382 +20041 29932322 1388 +20042 29933710 626 +20043 29934336 776 +20044 29935112 770 +20045 29935882 614 +20046 29936496 596 +20047 29937092 1508 +20048 29938600 1508 +20049 29940108 1508 +20050 29941616 1508 +20051 29943124 2498 +20052 29945622 974 +20053 29946596 1070 +20054 29947666 1010 +20055 29948676 3644 +20056 29952320 3644 +20057 29955964 3644 +20058 29959608 3644 +20059 29963252 3644 +20060 29966896 3644 +20061 29970540 1490 +20062 29972030 1490 +20063 29973520 1910 +20064 29975430 1808 +20065 29977238 1430 +20066 29978668 1412 +20067 29980080 1766 +20068 29981846 746 +20069 29982592 746 +20070 29983338 1766 +20071 29985104 1784 +20072 29986888 2060 +20073 29988948 2468 +20074 29991416 2060 +20075 29993476 2468 +20076 29995944 1496 +20077 29997440 3968 +20078 30001408 3914 +20079 30005322 3962 +20080 30009284 3920 +20081 30013204 728 +20082 30013932 458 +20083 30014390 194 +20084 30014584 194 +20085 30014778 194 +20086 30014972 200 +20087 30015172 194 +20088 30015366 200 +20089 30015566 188 +20090 30015754 788 +20091 30016542 800 +20092 30017342 614 +20093 30017956 788 +20094 30018744 800 +20095 30019544 614 +20096 30020158 1166 +20097 30021324 1166 +20098 30022490 164 +20099 30022654 1814 +20100 30024468 1658 +20101 30026126 1574 +20102 30027700 1028 +20103 30028728 74 +20104 30028802 686 +20105 30029488 698 +20106 30030186 1220 +20107 30031406 1520 +20108 30032926 350 +20109 30033276 1790 +20110 30035066 182 +20111 30035248 752 +20112 30036000 176 +20113 30036176 758 +20114 30036934 212 +20115 30037146 758 +20116 30037904 212 +20117 30038116 758 +20118 30038874 2180 +20119 30041054 2180 +20120 30043234 1334 +20121 30044568 1334 +20122 30045902 1844 +20123 30047746 440 +20124 30048186 410 +20125 30048596 530 +20126 30049126 524 +20127 30049650 668 +20128 30050318 1004 +20129 30051322 2990 +20130 30054312 1160 +20131 30055472 1658 +20132 30057130 1574 +20133 30058704 776 +20134 30059480 776 +20135 30060256 1760 +20136 30062016 1760 +20137 30063776 1298 +20138 30065074 1298 +20139 30066372 716 +20140 30067088 746 +20141 30067834 740 +20142 30068574 716 +20143 30069290 746 +20144 30070036 740 +20145 30070776 1526 +20146 30072302 1478 +20147 30073780 2864 +20148 30076644 1688 +20149 30078332 434 +20150 30078766 434 +20151 30079200 758 +20152 30079958 758 +20153 30080716 3596 +20154 30084312 5162 +20155 30089474 5168 +20156 30094642 1982 +20157 30096624 1778 +20158 30098402 4466 +20159 30102868 950 +20160 30103818 950 +20161 30104768 2882 +20162 30107650 2852 +20163 30110502 2870 +20164 30113372 2840 +20165 30116212 974 +20166 30117186 1016 +20167 30118202 1838 +20168 30120040 3224 +20169 30123264 464 +20170 30123728 488 +20171 30124216 1922 +20172 30126138 1928 +20173 30128066 1904 +20174 30129970 1028 +20175 30130998 1034 +20176 30132032 1178 +20177 30133210 1748 +20178 30134958 1754 +20179 30136712 836 +20180 30137548 818 +20181 30138366 458 +20182 30138824 506 +20183 30139330 1940 +20184 30141270 212 +20185 30141482 758 +20186 30142240 212 +20187 30142452 758 +20188 30143210 464 +20189 30143674 470 +20190 30144144 656 +20191 30144800 644 +20192 30145444 2078 +20193 30147522 2108 +20194 30149630 620 +20195 30150250 344 +20196 30150594 308 +20197 30150902 284 +20198 30151186 392 +20199 30151578 236 +20200 30151814 896 +20201 30152710 188 +20202 30152898 104 +20203 30153002 572 +20204 30153574 1634 +20205 30155208 1262 +20206 30156470 1214 +20207 30157684 1070 +20208 30158754 1058 +20209 30159812 308 +20210 30160120 854 +20211 30160974 860 +20212 30161834 740 +20213 30162574 866 +20214 30163440 824 +20215 30164264 728 +20216 30164992 704 +20217 30165696 692 +20218 30166388 710 +20219 30167098 626 +20220 30167724 668 +20221 30168392 566 +20222 30168958 482 +20223 30169440 470 +20224 30169910 386 +20225 30170296 356 +20226 30170652 542 +20227 30171194 1238 +20228 30172432 1238 +20229 30173670 1262 +20230 30174932 1262 +20231 30176194 644 +20232 30176838 1352 +20233 30178190 740 +20234 30178930 740 +20235 30179670 698 +20236 30180368 1076 +20237 30181444 1676 +20238 30183120 1958 +20239 30185078 1928 +20240 30187006 1352 +20241 30188358 716 +20242 30189074 818 +20243 30189892 1718 +20244 30191610 1706 +20245 30193316 1754 +20246 30195070 518 +20247 30195588 548 +20248 30196136 98 +20249 30196234 836 +20250 30197070 1622 +20251 30198692 1622 +20252 30200314 2762 +20253 30203076 1556 +20254 30204632 2762 +20255 30207394 1556 +20256 30208950 410 +20257 30209360 434 +20258 30209794 1196 +20259 30210990 1196 +20260 30212186 662 +20261 30212848 2018 +20262 30214866 1976 +20263 30216842 974 +20264 30217816 710 +20265 30218526 926 +20266 30219452 716 +20267 30220168 1556 +20268 30221724 1556 +20269 30223280 3397 +20270 30226677 1436 +20271 30228113 1424 +20272 30229537 1430 +20273 30230967 1430 +20274 30232397 1820 +20275 30234217 1820 +20276 30236037 350 +20277 30236387 3308 +20278 30239695 2354 +20279 30242049 2348 +20280 30244397 2372 +20281 30246769 2354 +20282 30249123 1718 +20283 30250841 1718 +20284 30252559 1436 +20285 30253995 1436 +20286 30255431 1436 +20287 30256867 1436 +20288 30258303 2306 +20289 30260609 2186 +20290 30262795 2180 +20291 30264975 2180 +20292 30267155 2180 +20293 30269335 2186 +20294 30271521 332 +20295 30271853 2882 +20296 30274735 1058 +20297 30275793 1058 +20298 30276851 6625 +20299 30283476 6625 +20300 30290101 812 +20301 30290913 818 +20302 30291731 344 +20303 30292075 3578 +20304 30295653 368 +20305 30296021 368 +20306 30296389 3517 +20307 30299906 2917 +20308 30302823 686 +20309 30303509 686 +20310 30304195 686 +20311 30304881 686 +20312 30305567 686 +20313 30306253 686 +20314 30306939 686 +20315 30307625 686 +20316 30308311 584 +20317 30308895 590 +20318 30309485 1748 +20319 30311233 1400 +20320 30312633 812 +20321 30313445 812 +20322 30314257 2636 +20323 30316893 2534 +20324 30319427 782 +20325 30320209 782 +20326 30320991 782 +20327 30321773 782 +20328 30322555 836 +20329 30323391 794 +20330 30324185 1658 +20331 30325843 1652 +20332 30327495 1658 +20333 30329153 1658 +20334 30330811 1658 +20335 30332469 1658 +20336 30334127 1178 +20337 30335305 1556 +20338 30336861 1592 +20339 30338453 3794 +20340 30342247 536 +20341 30342783 650 +20342 30343433 1124 +20343 30344557 536 +20344 30345093 650 +20345 30345743 1124 +20346 30346867 530 +20347 30347397 212 +20348 30347609 2018 +20349 30349627 650 +20350 30350277 524 +20351 30350801 206 +20352 30351007 2018 +20353 30353025 644 +20354 30353669 2522 +20355 30356191 3806 +20356 30359997 1172 +20357 30361169 1154 +20358 30362323 2318 +20359 30364641 1268 +20360 30365909 1268 +20361 30367177 698 +20362 30367875 470 +20363 30368345 2702 +20364 30371047 1844 +20365 30372891 1784 +20366 30374675 1760 +20367 30376435 788 +20368 30377223 1664 +20369 30378887 1682 +20370 30380569 1676 +20371 30382245 1670 +20372 30383915 1670 +20373 30385585 2678 +20374 30388263 2534 +20375 30390797 728 +20376 30391525 716 +20377 30392241 728 +20378 30392969 722 +20379 30393691 3182 +20380 30396873 1676 +20381 30398549 782 +20382 30399331 380 +20383 30399711 1082 +20384 30400793 1064 +20385 30401857 1688 +20386 30403545 1700 +20387 30405245 1688 +20388 30406933 1700 +20389 30408633 2402 +20390 30411035 2384 +20391 30413419 422 +20392 30413841 332 +20393 30414173 3146 +20394 30417319 3050 +20395 30420369 2534 +20396 30422903 1490 +20397 30424393 1460 +20398 30425853 1130 +20399 30426983 1130 +20400 30428113 698 +20401 30428811 698 +20402 30429509 3860 +20403 30433369 3848 +20404 30437217 32 +20405 30437249 32 +20406 30437281 1688 +20407 30438969 1646 +20408 30440615 1970 +20409 30442585 1916 +20410 30444501 1904 +20411 30446405 1184 +20412 30447589 2042 +20413 30449631 584 +20414 30450215 50 +20415 30450265 2774 +20416 30453039 5186 +20417 30458225 1202 +20418 30459427 716 +20419 30460143 692 +20420 30460835 692 +20421 30461527 536 +20422 30462063 536 +20423 30462599 902 +20424 30463501 902 +20425 30464403 902 +20426 30465305 902 +20427 30466207 1868 +20428 30468075 1730 +20429 30469805 482 +20430 30470287 1262 +20431 30471549 1262 +20432 30472811 1262 +20433 30474073 2018 +20434 30476091 2012 +20435 30478103 308 +20436 30478411 620 +20437 30479031 1562 +20438 30480593 866 +20439 30481459 1082 +20440 30482541 1082 +20441 30483623 1718 +20442 30485341 1676 +20443 30487017 1718 +20444 30488735 1688 +20445 30490423 1718 +20446 30492141 1688 +20447 30493829 1718 +20448 30495547 1688 +20449 30497235 44 +20450 30497279 1718 +20451 30498997 1688 +20452 30500685 44 +20453 30500729 428 +20454 30501157 434 +20455 30501591 698 +20456 30502289 1592 +20457 30503881 1142 +20458 30505023 362 +20459 30505385 356 +20460 30505741 338 +20461 30506079 362 +20462 30506441 1970 +20463 30508411 530 +20464 30508941 512 +20465 30509453 308 +20466 30509761 74 +20467 30509835 2048 +20468 30511883 530 +20469 30512413 422 +20470 30512835 422 +20471 30513257 422 +20472 30513679 890 +20473 30514569 1010 +20474 30515579 1004 +20475 30516583 1130 +20476 30517713 1136 +20477 30518849 638 +20478 30519487 656 +20479 30520143 1082 +20480 30521225 1082 +20481 30522307 2534 +20482 30524841 2114 +20483 30526955 254 +20484 30527209 2336 +20485 30529545 2258 +20486 30531803 2216 +20487 30534019 1550 +20488 30535569 1556 +20489 30537125 1550 +20490 30538675 1550 +20491 30540225 1562 +20492 30541787 1562 +20493 30543349 1550 +20494 30544899 1550 +20495 30546449 848 +20496 30547297 854 +20497 30548151 848 +20498 30548999 854 +20499 30549853 860 +20500 30550713 866 +20501 30551579 848 +20502 30552427 854 +20503 30553281 854 +20504 30554135 854 +20505 30554989 1832 +20506 30556821 1850 +20507 30558671 1832 +20508 30560503 1850 +20509 30562353 1568 +20510 30563921 1622 +20511 30565543 3097 +20512 30568640 2786 +20513 30571426 884 +20514 30572310 2288 +20515 30574598 1130 +20516 30575728 1010 +20517 30576738 704 +20518 30577442 2180 +20519 30579622 1028 +20520 30580650 1448 +20521 30582098 1118 +20522 30583216 710 +20523 30583926 776 +20524 30584702 1106 +20525 30585808 1232 +20526 30587040 932 +20527 30587972 782 +20528 30588754 1052 +20529 30589806 764 +20530 30590570 140 +20531 30590710 812 +20532 30591522 794 +20533 30592316 656 +20534 30592972 734 +20535 30593706 536 +20536 30594242 452 +20537 30594694 1424 +20538 30596118 2066 +20539 30598184 1172 +20540 30599356 1568 +20541 30600924 1568 +20542 30602492 1742 +20543 30604234 2786 +20544 30607020 1478 +20545 30608498 1070 +20546 30609568 2864 +20547 30612432 884 +20548 30613316 2288 +20549 30615604 1400 +20550 30617004 4681 +20551 30621685 1130 +20552 30622815 1484 +20553 30624299 380 +20554 30624679 1952 +20555 30626631 680 +20556 30627311 1010 +20557 30628321 3577 +20558 30631898 2756 +20559 30634654 1076 +20560 30635730 536 +20561 30636266 1952 +20562 30638218 428 +20563 30638646 7705 +20564 30646351 2054 +20565 30648405 2180 +20566 30650585 1028 +20567 30651613 1448 +20568 30653061 1184 +20569 30654245 1148 +20570 30655393 884 +20571 30656277 710 +20572 30656987 830 +20573 30657817 1106 +20574 30658923 1232 +20575 30660155 932 +20576 30661087 782 +20577 30661869 1052 +20578 30662921 764 +20579 30663685 818 +20580 30664503 140 +20581 30664643 812 +20582 30665455 662 +20583 30666117 794 +20584 30666911 656 +20585 30667567 734 +20586 30668301 536 +20587 30668837 452 +20588 30669289 1250 +20589 30670539 1424 +20590 30671963 2060 +20591 30674023 1172 +20592 30675195 362 +20593 30675557 1514 +20594 30677071 1568 +20595 30678639 1754 +20596 30680393 2786 +20597 30683179 1478 +20598 30684657 1070 +20599 30685727 3026 +20600 30688753 884 +20601 30689637 2282 +20602 30691919 1436 +20603 30693355 4765 +20604 30698120 1346 +20605 30699466 1484 +20606 30700950 380 +20607 30701330 2144 +20608 30703474 758 +20609 30704232 1010 +20610 30705242 1418 +20611 30706660 5857 +20612 30712517 1076 +20613 30713593 842 +20614 30714435 536 +20615 30714971 2174 +20616 30717145 7609 +20617 30724754 428 +20618 30725182 2042 +20619 30727224 2180 +20620 30729404 1082 +20621 30730486 1490 +20622 30731976 1232 +20623 30733208 1148 +20624 30734356 884 +20625 30735240 710 +20626 30735950 830 +20627 30736780 1106 +20628 30737886 1232 +20629 30739118 926 +20630 30740044 782 +20631 30740826 1052 +20632 30741878 764 +20633 30742642 818 +20634 30743460 290 +20635 30743750 812 +20636 30744562 662 +20637 30745224 770 +20638 30745994 656 +20639 30746650 734 +20640 30747384 536 +20641 30747920 452 +20642 30748372 1250 +20643 30749622 1514 +20644 30751136 1568 +20645 30752704 3956 +20646 30756660 2768 +20647 30759428 2780 +20648 30762208 1478 +20649 30763686 1070 +20650 30764756 3260 +20651 30768016 884 +20652 30768900 2972 +20653 30771872 1436 +20654 30773308 4765 +20655 30778073 1346 +20656 30779419 1484 +20657 30780903 380 +20658 30781283 2144 +20659 30783427 1082 +20660 30784509 1010 +20661 30785519 3145 +20662 30788664 2936 +20663 30791600 1076 +20664 30792676 842 +20665 30793518 536 +20666 30794054 4921 +20667 30798975 7705 +20668 30806680 428 +20669 30807108 2144 +20670 30809252 2180 +20671 30811432 1082 +20672 30812514 1490 +20673 30814004 1232 +20674 30815236 1148 +20675 30816384 878 +20676 30817262 710 +20677 30817972 830 +20678 30818802 1106 +20679 30819908 1232 +20680 30821140 1022 +20681 30822162 782 +20682 30822944 716 +20683 30823660 1052 +20684 30824712 764 +20685 30825476 638 +20686 30826114 818 +20687 30826932 830 +20688 30827762 812 +20689 30828574 818 +20690 30829392 596 +20691 30829988 662 +20692 30830650 770 +20693 30831420 656 +20694 30832076 710 +20695 30832786 734 +20696 30833520 536 +20697 30834056 452 +20698 30834508 458 +20699 30834966 236 +20700 30835202 1250 +20701 30836452 1514 +20702 30837966 1568 +20703 30839534 3956 +20704 30843490 2768 +20705 30846258 2780 +20706 30849038 1478 +20707 30850516 1070 +20708 30851586 3260 +20709 30854846 884 +20710 30855730 2972 +20711 30858702 1382 +20712 30860084 4765 +20713 30864849 1346 +20714 30866195 1484 +20715 30867679 380 +20716 30868059 2144 +20717 30870203 1082 +20718 30871285 1010 +20719 30872295 3145 +20720 30875440 2936 +20721 30878376 1076 +20722 30879452 842 +20723 30880294 536 +20724 30880830 5041 +20725 30885871 428 +20726 30886299 2144 +20727 30888443 2180 +20728 30890623 1082 +20729 30891705 1490 +20730 30893195 1232 +20731 30894427 1148 +20732 30895575 884 +20733 30896459 710 +20734 30897169 830 +20735 30897999 1106 +20736 30899105 1232 +20737 30900337 1022 +20738 30901359 782 +20739 30902141 722 +20740 30902863 1052 +20741 30903915 764 +20742 30904679 638 +20743 30905317 818 +20744 30906135 830 +20745 30906965 812 +20746 30907777 818 +20747 30908595 596 +20748 30909191 662 +20749 30909853 770 +20750 30910623 656 +20751 30911279 710 +20752 30911989 734 +20753 30912723 536 +20754 30913259 452 +20755 30913711 458 +20756 30914169 236 +20757 30914405 1250 +20758 30915655 2042 +20759 30917697 944 +20760 30918641 926 +20761 30919567 1022 +20762 30920589 1028 +20763 30921617 1790 +20764 30923407 1808 +20765 30925215 1802 +20766 30927017 1784 +20767 30928801 674 +20768 30929475 572 +20769 30930047 578 +20770 30930625 2834 +20771 30933459 1214 +20772 30934673 1214 +20773 30935887 692 +20774 30936579 1466 +20775 30938045 1454 +20776 30939499 1478 +20777 30940977 1436 +20778 30942413 2558 +20779 30944971 590 +20780 30945561 452 +20781 30946013 1244 +20782 30947257 1178 +20783 30948435 1184 +20784 30949619 1172 +20785 30950791 1670 +20786 30952461 1676 +20787 30954137 1676 +20788 30955813 1670 +20789 30957483 1682 +20790 30959165 926 +20791 30960091 938 +20792 30961029 1448 +20793 30962477 650 +20794 30963127 1844 +20795 30964971 2600 +20796 30967571 2318 +20797 30969889 2360 +20798 30972249 2318 +20799 30974567 2366 +20800 30976933 332 +20801 30977265 338 +20802 30977603 170 +20803 30977773 338 +20804 30978111 2318 +20805 30980429 2360 +20806 30982789 2318 +20807 30985107 2366 +20808 30987473 332 +20809 30987805 338 +20810 30988143 170 +20811 30988313 338 +20812 30988651 2318 +20813 30990969 2360 +20814 30993329 2318 +20815 30995647 2366 +20816 30998013 332 +20817 30998345 338 +20818 30998683 170 +20819 30998853 338 +20820 30999191 2318 +20821 31001509 2360 +20822 31003869 2318 +20823 31006187 2366 +20824 31008553 332 +20825 31008885 338 +20826 31009223 170 +20827 31009393 338 +20828 31009731 2318 +20829 31012049 2360 +20830 31014409 2318 +20831 31016727 2366 +20832 31019093 332 +20833 31019425 338 +20834 31019763 170 +20835 31019933 338 +20836 31020271 2318 +20837 31022589 2360 +20838 31024949 2318 +20839 31027267 2366 +20840 31029633 332 +20841 31029965 338 +20842 31030303 170 +20843 31030473 338 +20844 31030811 2318 +20845 31033129 2360 +20846 31035489 2318 +20847 31037807 2366 +20848 31040173 332 +20849 31040505 338 +20850 31040843 170 +20851 31041013 338 +20852 31041351 2318 +20853 31043669 2360 +20854 31046029 2318 +20855 31048347 2366 +20856 31050713 332 +20857 31051045 338 +20858 31051383 170 +20859 31051553 338 +20860 31051891 2318 +20861 31054209 2360 +20862 31056569 2318 +20863 31058887 2366 +20864 31061253 332 +20865 31061585 338 +20866 31061923 170 +20867 31062093 338 +20868 31062431 2318 +20869 31064749 2360 +20870 31067109 2318 +20871 31069427 2366 +20872 31071793 332 +20873 31072125 338 +20874 31072463 170 +20875 31072633 338 +20876 31072971 2318 +20877 31075289 2360 +20878 31077649 2318 +20879 31079967 2366 +20880 31082333 332 +20881 31082665 338 +20882 31083003 170 +20883 31083173 338 +20884 31083511 2318 +20885 31085829 2360 +20886 31088189 2318 +20887 31090507 2366 +20888 31092873 332 +20889 31093205 338 +20890 31093543 170 +20891 31093713 338 +20892 31094051 2318 +20893 31096369 2360 +20894 31098729 2318 +20895 31101047 2366 +20896 31103413 332 +20897 31103745 338 +20898 31104083 170 +20899 31104253 338 +20900 31104591 2318 +20901 31106909 2360 +20902 31109269 2318 +20903 31111587 2366 +20904 31113953 332 +20905 31114285 338 +20906 31114623 170 +20907 31114793 338 +20908 31115131 2318 +20909 31117449 2360 +20910 31119809 2318 +20911 31122127 2366 +20912 31124493 332 +20913 31124825 338 +20914 31125163 170 +20915 31125333 338 +20916 31125671 2318 +20917 31127989 2360 +20918 31130349 2318 +20919 31132667 2366 +20920 31135033 332 +20921 31135365 338 +20922 31135703 170 +20923 31135873 338 +20924 31136211 2318 +20925 31138529 2360 +20926 31140889 2318 +20927 31143207 2366 +20928 31145573 332 +20929 31145905 338 +20930 31146243 170 +20931 31146413 338 +20932 31146751 2318 +20933 31149069 2360 +20934 31151429 2318 +20935 31153747 2366 +20936 31156113 332 +20937 31156445 338 +20938 31156783 170 +20939 31156953 338 +20940 31157291 2318 +20941 31159609 2360 +20942 31161969 2318 +20943 31164287 2366 +20944 31166653 332 +20945 31166985 338 +20946 31167323 170 +20947 31167493 338 +20948 31167831 2318 +20949 31170149 2360 +20950 31172509 2318 +20951 31174827 2366 +20952 31177193 332 +20953 31177525 338 +20954 31177863 170 +20955 31178033 338 +20956 31178371 2318 +20957 31180689 2360 +20958 31183049 2318 +20959 31185367 2366 +20960 31187733 332 +20961 31188065 338 +20962 31188403 170 +20963 31188573 338 +20964 31188911 2318 +20965 31191229 2360 +20966 31193589 2318 +20967 31195907 2366 +20968 31198273 332 +20969 31198605 338 +20970 31198943 170 +20971 31199113 338 +20972 31199451 2318 +20973 31201769 2360 +20974 31204129 2318 +20975 31206447 2366 +20976 31208813 332 +20977 31209145 338 +20978 31209483 170 +20979 31209653 338 +20980 31209991 2318 +20981 31212309 2360 +20982 31214669 2318 +20983 31216987 2366 +20984 31219353 332 +20985 31219685 338 +20986 31220023 170 +20987 31220193 338 +20988 31220531 2318 +20989 31222849 2360 +20990 31225209 2318 +20991 31227527 2366 +20992 31229893 332 +20993 31230225 338 +20994 31230563 170 +20995 31230733 338 +20996 31231071 2318 +20997 31233389 2360 +20998 31235749 2318 +20999 31238067 2366 +21000 31240433 332 +21001 31240765 338 +21002 31241103 170 +21003 31241273 338 +21004 31241611 2318 +21005 31243929 2360 +21006 31246289 2318 +21007 31248607 2366 +21008 31250973 332 +21009 31251305 338 +21010 31251643 170 +21011 31251813 338 +21012 31252151 2318 +21013 31254469 2360 +21014 31256829 2318 +21015 31259147 2366 +21016 31261513 332 +21017 31261845 338 +21018 31262183 170 +21019 31262353 338 +21020 31262691 2318 +21021 31265009 2360 +21022 31267369 2318 +21023 31269687 2366 +21024 31272053 332 +21025 31272385 338 +21026 31272723 170 +21027 31272893 338 +21028 31273231 2318 +21029 31275549 2360 +21030 31277909 2318 +21031 31280227 2366 +21032 31282593 332 +21033 31282925 338 +21034 31283263 170 +21035 31283433 338 +21036 31283771 2318 +21037 31286089 2360 +21038 31288449 2318 +21039 31290767 2366 +21040 31293133 332 +21041 31293465 338 +21042 31293803 170 +21043 31293973 338 +21044 31294311 2318 +21045 31296629 2360 +21046 31298989 2318 +21047 31301307 2366 +21048 31303673 332 +21049 31304005 338 +21050 31304343 170 +21051 31304513 338 +21052 31304851 2318 +21053 31307169 2360 +21054 31309529 2318 +21055 31311847 2366 +21056 31314213 332 +21057 31314545 338 +21058 31314883 170 +21059 31315053 338 +21060 31315391 2318 +21061 31317709 2360 +21062 31320069 2318 +21063 31322387 2366 +21064 31324753 332 +21065 31325085 338 +21066 31325423 170 +21067 31325593 338 +21068 31325931 2318 +21069 31328249 2360 +21070 31330609 2318 +21071 31332927 2366 +21072 31335293 332 +21073 31335625 338 +21074 31335963 170 +21075 31336133 338 +21076 31336471 2318 +21077 31338789 2360 +21078 31341149 2318 +21079 31343467 2366 +21080 31345833 332 +21081 31346165 338 +21082 31346503 170 +21083 31346673 338 +21084 31347011 2318 +21085 31349329 2360 +21086 31351689 2318 +21087 31354007 2366 +21088 31356373 332 +21089 31356705 338 +21090 31357043 170 +21091 31357213 338 +21092 31357551 2318 +21093 31359869 2360 +21094 31362229 2318 +21095 31364547 2366 +21096 31366913 332 +21097 31367245 338 +21098 31367583 170 +21099 31367753 338 +21100 31368091 2318 +21101 31370409 2360 +21102 31372769 2318 +21103 31375087 2366 +21104 31377453 332 +21105 31377785 338 +21106 31378123 170 +21107 31378293 338 +21108 31378631 2318 +21109 31380949 2360 +21110 31383309 2318 +21111 31385627 2366 +21112 31387993 332 +21113 31388325 338 +21114 31388663 170 +21115 31388833 338 +21116 31389171 2318 +21117 31391489 2360 +21118 31393849 2318 +21119 31396167 2366 +21120 31398533 332 +21121 31398865 338 +21122 31399203 170 +21123 31399373 338 +21124 31399711 2318 +21125 31402029 2360 +21126 31404389 2318 +21127 31406707 2366 +21128 31409073 332 +21129 31409405 338 +21130 31409743 170 +21131 31409913 338 +21132 31410251 2318 +21133 31412569 2360 +21134 31414929 2318 +21135 31417247 2366 +21136 31419613 332 +21137 31419945 338 +21138 31420283 170 +21139 31420453 338 +21140 31420791 2318 +21141 31423109 2360 +21142 31425469 2318 +21143 31427787 2366 +21144 31430153 332 +21145 31430485 338 +21146 31430823 170 +21147 31430993 338 +21148 31431331 2318 +21149 31433649 2360 +21150 31436009 2318 +21151 31438327 2366 +21152 31440693 332 +21153 31441025 338 +21154 31441363 170 +21155 31441533 338 +21156 31441871 2318 +21157 31444189 2360 +21158 31446549 2318 +21159 31448867 2366 +21160 31451233 332 +21161 31451565 338 +21162 31451903 170 +21163 31452073 338 +21164 31452411 2318 +21165 31454729 2360 +21166 31457089 2318 +21167 31459407 2366 +21168 31461773 332 +21169 31462105 338 +21170 31462443 170 +21171 31462613 338 +21172 31462951 2318 +21173 31465269 2360 +21174 31467629 2318 +21175 31469947 2366 +21176 31472313 332 +21177 31472645 338 +21178 31472983 170 +21179 31473153 338 +21180 31473491 2318 +21181 31475809 2360 +21182 31478169 2318 +21183 31480487 2366 +21184 31482853 332 +21185 31483185 338 +21186 31483523 170 +21187 31483693 338 +21188 31484031 2318 +21189 31486349 2360 +21190 31488709 2318 +21191 31491027 2366 +21192 31493393 332 +21193 31493725 338 +21194 31494063 170 +21195 31494233 338 +21196 31494571 2318 +21197 31496889 2360 +21198 31499249 2318 +21199 31501567 2366 +21200 31503933 332 +21201 31504265 338 +21202 31504603 170 +21203 31504773 338 +21204 31505111 2318 +21205 31507429 2360 +21206 31509789 2318 +21207 31512107 2366 +21208 31514473 332 +21209 31514805 338 +21210 31515143 170 +21211 31515313 338 +21212 31515651 2318 +21213 31517969 2360 +21214 31520329 2318 +21215 31522647 2366 +21216 31525013 332 +21217 31525345 338 +21218 31525683 170 +21219 31525853 338 +21220 31526191 2318 +21221 31528509 2360 +21222 31530869 2318 +21223 31533187 2366 +21224 31535553 332 +21225 31535885 338 +21226 31536223 170 +21227 31536393 338 +21228 31536731 2318 +21229 31539049 2360 +21230 31541409 2318 +21231 31543727 2366 +21232 31546093 332 +21233 31546425 338 +21234 31546763 170 +21235 31546933 338 +21236 31547271 2318 +21237 31549589 2360 +21238 31551949 2318 +21239 31554267 2366 +21240 31556633 332 +21241 31556965 338 +21242 31557303 170 +21243 31557473 338 +21244 31557811 2318 +21245 31560129 2360 +21246 31562489 2318 +21247 31564807 2366 +21248 31567173 332 +21249 31567505 338 +21250 31567843 170 +21251 31568013 338 +21252 31568351 2318 +21253 31570669 2360 +21254 31573029 2318 +21255 31575347 2366 +21256 31577713 332 +21257 31578045 338 +21258 31578383 170 +21259 31578553 338 +21260 31578891 2318 +21261 31581209 2360 +21262 31583569 2318 +21263 31585887 2366 +21264 31588253 332 +21265 31588585 338 +21266 31588923 170 +21267 31589093 338 +21268 31589431 2318 +21269 31591749 2360 +21270 31594109 2318 +21271 31596427 2366 +21272 31598793 332 +21273 31599125 338 +21274 31599463 170 +21275 31599633 338 +21276 31599971 2048 +21277 31602019 2048 +21278 31604067 2174 +21279 31606241 56 +21280 31606297 1724 +21281 31608021 1304 +21282 31609325 2030 +21283 31611355 344 +21284 31611699 1406 +21285 31613105 2276 +21286 31615381 2282 +21287 31617663 2276 +21288 31619939 2282 +21289 31622221 4232 +21290 31626453 4232 +21291 31630685 2042 +21292 31632727 494 +21293 31633221 1382 +21294 31634603 464 +21295 31635067 1382 +21296 31636449 494 +21297 31636943 1382 +21298 31638325 494 +21299 31638819 1382 +21300 31640201 464 +21301 31640665 1382 +21302 31642047 494 +21303 31642541 1382 +21304 31643923 398 +21305 31644321 1382 +21306 31645703 410 +21307 31646113 1382 +21308 31647495 428 +21309 31647923 1382 +21310 31649305 398 +21311 31649703 1382 +21312 31651085 410 +21313 31651495 1382 +21314 31652877 428 +21315 31653305 1382 +21316 31654687 494 +21317 31655181 1382 +21318 31656563 494 +21319 31657057 1382 +21320 31658439 494 +21321 31658933 1382 +21322 31660315 494 +21323 31660809 1382 +21324 31662191 494 +21325 31662685 1382 +21326 31664067 494 +21327 31664561 1382 +21328 31665943 674 +21329 31666617 680 +21330 31667297 668 +21331 31667965 1256 +21332 31669221 1160 +21333 31670381 1136 +21334 31671517 524 +21335 31672041 2366 +21336 31674407 2366 +21337 31676773 3314 +21338 31680087 1082 +21339 31681169 1082 +21340 31682251 1076 +21341 31683327 1082 +21342 31684409 1808 +21343 31686217 1808 +21344 31688025 1256 +21345 31689281 1256 +21346 31690537 1706 +21347 31692243 1706 +21348 31693949 1238 +21349 31695187 1244 +21350 31696431 5510 +21351 31701941 1070 +21352 31703011 1490 +21353 31704501 1274 +21354 31705775 2318 +21355 31708093 2360 +21356 31710453 2318 +21357 31712771 2366 +21358 31715137 332 +21359 31715469 338 +21360 31715807 170 +21361 31715977 338 +21362 31716315 2318 +21363 31718633 2360 +21364 31720993 2318 +21365 31723311 2366 +21366 31725677 332 +21367 31726009 338 +21368 31726347 170 +21369 31726517 338 +21370 31726855 2318 +21371 31729173 2360 +21372 31731533 2318 +21373 31733851 2366 +21374 31736217 332 +21375 31736549 338 +21376 31736887 170 +21377 31737057 338 +21378 31737395 2318 +21379 31739713 2360 +21380 31742073 2318 +21381 31744391 2366 +21382 31746757 332 +21383 31747089 338 +21384 31747427 170 +21385 31747597 338 +21386 31747935 2318 +21387 31750253 2360 +21388 31752613 2318 +21389 31754931 2366 +21390 31757297 332 +21391 31757629 338 +21392 31757967 170 +21393 31758137 338 +21394 31758475 2318 +21395 31760793 2360 +21396 31763153 2318 +21397 31765471 2366 +21398 31767837 332 +21399 31768169 338 +21400 31768507 170 +21401 31768677 338 +21402 31769015 2318 +21403 31771333 2360 +21404 31773693 2318 +21405 31776011 2366 +21406 31778377 332 +21407 31778709 338 +21408 31779047 170 +21409 31779217 338 +21410 31779555 2318 +21411 31781873 2360 +21412 31784233 2318 +21413 31786551 2366 +21414 31788917 332 +21415 31789249 338 +21416 31789587 170 +21417 31789757 338 +21418 31790095 2318 +21419 31792413 2360 +21420 31794773 2318 +21421 31797091 2366 +21422 31799457 332 +21423 31799789 338 +21424 31800127 170 +21425 31800297 338 +21426 31800635 2318 +21427 31802953 2360 +21428 31805313 2318 +21429 31807631 2366 +21430 31809997 332 +21431 31810329 338 +21432 31810667 170 +21433 31810837 338 +21434 31811175 2318 +21435 31813493 2360 +21436 31815853 2318 +21437 31818171 2366 +21438 31820537 332 +21439 31820869 338 +21440 31821207 170 +21441 31821377 338 +21442 31821715 2318 +21443 31824033 2360 +21444 31826393 2318 +21445 31828711 2366 +21446 31831077 332 +21447 31831409 338 +21448 31831747 170 +21449 31831917 338 +21450 31832255 2318 +21451 31834573 2360 +21452 31836933 2318 +21453 31839251 2366 +21454 31841617 332 +21455 31841949 338 +21456 31842287 170 +21457 31842457 338 +21458 31842795 2318 +21459 31845113 2360 +21460 31847473 2318 +21461 31849791 2366 +21462 31852157 332 +21463 31852489 338 +21464 31852827 170 +21465 31852997 338 +21466 31853335 2318 +21467 31855653 2360 +21468 31858013 2318 +21469 31860331 2366 +21470 31862697 332 +21471 31863029 338 +21472 31863367 170 +21473 31863537 338 +21474 31863875 2318 +21475 31866193 2360 +21476 31868553 2318 +21477 31870871 2366 +21478 31873237 332 +21479 31873569 338 +21480 31873907 170 +21481 31874077 338 +21482 31874415 2318 +21483 31876733 2360 +21484 31879093 2318 +21485 31881411 2366 +21486 31883777 332 +21487 31884109 338 +21488 31884447 170 +21489 31884617 338 +21490 31884955 2318 +21491 31887273 2360 +21492 31889633 2318 +21493 31891951 2366 +21494 31894317 332 +21495 31894649 338 +21496 31894987 170 +21497 31895157 338 +21498 31895495 2318 +21499 31897813 2360 +21500 31900173 2318 +21501 31902491 2366 +21502 31904857 332 +21503 31905189 338 +21504 31905527 170 +21505 31905697 338 +21506 31906035 2318 +21507 31908353 2360 +21508 31910713 2318 +21509 31913031 2366 +21510 31915397 332 +21511 31915729 338 +21512 31916067 170 +21513 31916237 338 +21514 31916575 2318 +21515 31918893 2360 +21516 31921253 2318 +21517 31923571 2366 +21518 31925937 332 +21519 31926269 338 +21520 31926607 170 +21521 31926777 338 +21522 31927115 2318 +21523 31929433 2360 +21524 31931793 2318 +21525 31934111 2366 +21526 31936477 332 +21527 31936809 338 +21528 31937147 170 +21529 31937317 338 +21530 31937655 2318 +21531 31939973 2360 +21532 31942333 2318 +21533 31944651 2366 +21534 31947017 332 +21535 31947349 338 +21536 31947687 170 +21537 31947857 338 +21538 31948195 2318 +21539 31950513 2360 +21540 31952873 2318 +21541 31955191 2366 +21542 31957557 332 +21543 31957889 338 +21544 31958227 170 +21545 31958397 338 +21546 31958735 2318 +21547 31961053 2360 +21548 31963413 2318 +21549 31965731 2366 +21550 31968097 332 +21551 31968429 338 +21552 31968767 170 +21553 31968937 338 +21554 31969275 2318 +21555 31971593 2360 +21556 31973953 2318 +21557 31976271 2366 +21558 31978637 332 +21559 31978969 338 +21560 31979307 170 +21561 31979477 338 +21562 31979815 2318 +21563 31982133 2360 +21564 31984493 2318 +21565 31986811 2366 +21566 31989177 332 +21567 31989509 338 +21568 31989847 170 +21569 31990017 338 +21570 31990355 2318 +21571 31992673 2360 +21572 31995033 2318 +21573 31997351 2366 +21574 31999717 332 +21575 32000049 338 +21576 32000387 170 +21577 32000557 338 +21578 32000895 2318 +21579 32003213 2360 +21580 32005573 2318 +21581 32007891 2366 +21582 32010257 332 +21583 32010589 338 +21584 32010927 170 +21585 32011097 338 +21586 32011435 2318 +21587 32013753 2360 +21588 32016113 2318 +21589 32018431 2366 +21590 32020797 332 +21591 32021129 338 +21592 32021467 170 +21593 32021637 338 +21594 32021975 2318 +21595 32024293 2360 +21596 32026653 2318 +21597 32028971 2366 +21598 32031337 332 +21599 32031669 338 +21600 32032007 170 +21601 32032177 338 +21602 32032515 2318 +21603 32034833 2360 +21604 32037193 2318 +21605 32039511 2366 +21606 32041877 332 +21607 32042209 338 +21608 32042547 170 +21609 32042717 338 +21610 32043055 2318 +21611 32045373 2360 +21612 32047733 2318 +21613 32050051 2366 +21614 32052417 332 +21615 32052749 338 +21616 32053087 170 +21617 32053257 338 +21618 32053595 2318 +21619 32055913 2360 +21620 32058273 2318 +21621 32060591 2366 +21622 32062957 332 +21623 32063289 338 +21624 32063627 170 +21625 32063797 338 +21626 32064135 2318 +21627 32066453 2360 +21628 32068813 2318 +21629 32071131 2366 +21630 32073497 332 +21631 32073829 338 +21632 32074167 170 +21633 32074337 338 +21634 32074675 2318 +21635 32076993 2360 +21636 32079353 2318 +21637 32081671 2366 +21638 32084037 332 +21639 32084369 338 +21640 32084707 170 +21641 32084877 338 +21642 32085215 2318 +21643 32087533 2360 +21644 32089893 2318 +21645 32092211 2366 +21646 32094577 332 +21647 32094909 338 +21648 32095247 170 +21649 32095417 338 +21650 32095755 2318 +21651 32098073 2360 +21652 32100433 2318 +21653 32102751 2366 +21654 32105117 332 +21655 32105449 338 +21656 32105787 170 +21657 32105957 338 +21658 32106295 2318 +21659 32108613 2360 +21660 32110973 2318 +21661 32113291 2366 +21662 32115657 332 +21663 32115989 338 +21664 32116327 170 +21665 32116497 338 +21666 32116835 2318 +21667 32119153 2360 +21668 32121513 2318 +21669 32123831 2366 +21670 32126197 332 +21671 32126529 338 +21672 32126867 170 +21673 32127037 338 +21674 32127375 2318 +21675 32129693 2360 +21676 32132053 2318 +21677 32134371 2366 +21678 32136737 332 +21679 32137069 338 +21680 32137407 170 +21681 32137577 338 +21682 32137915 2318 +21683 32140233 2360 +21684 32142593 2318 +21685 32144911 2366 +21686 32147277 332 +21687 32147609 338 +21688 32147947 170 +21689 32148117 338 +21690 32148455 2318 +21691 32150773 2360 +21692 32153133 2318 +21693 32155451 2366 +21694 32157817 332 +21695 32158149 338 +21696 32158487 170 +21697 32158657 338 +21698 32158995 2318 +21699 32161313 2360 +21700 32163673 2318 +21701 32165991 2366 +21702 32168357 332 +21703 32168689 338 +21704 32169027 170 +21705 32169197 338 +21706 32169535 2318 +21707 32171853 2360 +21708 32174213 2318 +21709 32176531 2366 +21710 32178897 332 +21711 32179229 338 +21712 32179567 170 +21713 32179737 338 +21714 32180075 2318 +21715 32182393 2360 +21716 32184753 2318 +21717 32187071 2366 +21718 32189437 332 +21719 32189769 338 +21720 32190107 170 +21721 32190277 338 +21722 32190615 2318 +21723 32192933 2360 +21724 32195293 2318 +21725 32197611 2366 +21726 32199977 332 +21727 32200309 338 +21728 32200647 170 +21729 32200817 338 +21730 32201155 2318 +21731 32203473 2360 +21732 32205833 2318 +21733 32208151 2366 +21734 32210517 332 +21735 32210849 338 +21736 32211187 170 +21737 32211357 338 +21738 32211695 2318 +21739 32214013 2360 +21740 32216373 2318 +21741 32218691 2366 +21742 32221057 332 +21743 32221389 338 +21744 32221727 170 +21745 32221897 338 +21746 32222235 2318 +21747 32224553 2360 +21748 32226913 2318 +21749 32229231 2366 +21750 32231597 332 +21751 32231929 338 +21752 32232267 170 +21753 32232437 338 +21754 32232775 2318 +21755 32235093 2360 +21756 32237453 2318 +21757 32239771 2366 +21758 32242137 332 +21759 32242469 338 +21760 32242807 170 +21761 32242977 338 +21762 32243315 2318 +21763 32245633 2360 +21764 32247993 2318 +21765 32250311 2366 +21766 32252677 332 +21767 32253009 338 +21768 32253347 170 +21769 32253517 338 +21770 32253855 2318 +21771 32256173 2360 +21772 32258533 2318 +21773 32260851 2366 +21774 32263217 332 +21775 32263549 338 +21776 32263887 170 +21777 32264057 338 +21778 32264395 2318 +21779 32266713 2360 +21780 32269073 2318 +21781 32271391 2366 +21782 32273757 332 +21783 32274089 338 +21784 32274427 170 +21785 32274597 338 +21786 32274935 2318 +21787 32277253 2360 +21788 32279613 2318 +21789 32281931 2366 +21790 32284297 332 +21791 32284629 338 +21792 32284967 170 +21793 32285137 338 +21794 32285475 2318 +21795 32287793 2360 +21796 32290153 2318 +21797 32292471 2366 +21798 32294837 332 +21799 32295169 338 +21800 32295507 170 +21801 32295677 338 +21802 32296015 2318 +21803 32298333 2360 +21804 32300693 2318 +21805 32303011 2366 +21806 32305377 332 +21807 32305709 338 +21808 32306047 170 +21809 32306217 338 +21810 32306555 2318 +21811 32308873 2360 +21812 32311233 2318 +21813 32313551 2366 +21814 32315917 332 +21815 32316249 338 +21816 32316587 170 +21817 32316757 338 +21818 32317095 2318 +21819 32319413 2360 +21820 32321773 2318 +21821 32324091 2366 +21822 32326457 332 +21823 32326789 338 +21824 32327127 170 +21825 32327297 338 +21826 32327635 2318 +21827 32329953 2360 +21828 32332313 2318 +21829 32334631 2366 +21830 32336997 332 +21831 32337329 338 +21832 32337667 170 +21833 32337837 338 +21834 32338175 794 +21835 32338969 632 +21836 32339601 962 +21837 32340563 1322 +21838 32341885 572 +21839 32342457 698 +21840 32343155 2894 +21841 32346049 2894 +21842 32348943 1904 +21843 32350847 1898 +21844 32352745 980 +21845 32353725 1472 +21846 32355197 1778 +21847 32356975 1778 +21848 32358753 5702 +21849 32364455 1010 +21850 32365465 1358 +21851 32366823 1358 +21852 32368181 2240 +21853 32370421 1268 +21854 32371689 1268 +21855 32372957 1262 +21856 32374219 788 +21857 32375007 722 +21858 32375729 962 +21859 32376691 2018 +21860 32378709 2018 +21861 32380727 2486 +21862 32383213 2486 +21863 32385699 2444 +21864 32388143 2444 +21865 32390587 788 +21866 32391375 1712 +21867 32393087 1088 +21868 32394175 32 +21869 32394207 1088 +21870 32395295 1088 +21871 32396383 3518 +21872 32399901 1988 +21873 32401889 1988 +21874 32403877 1988 +21875 32405865 530 +21876 32406395 1988 +21877 32408383 1988 +21878 32410371 1988 +21879 32412359 530 +21880 32412889 2072 +21881 32414961 2072 +21882 32417033 2072 +21883 32419105 2072 +21884 32421177 2072 +21885 32423249 2072 +21886 32425321 2018 +21887 32427339 2012 +21888 32429351 2012 +21889 32431363 2018 +21890 32433381 2012 +21891 32435393 2012 +21892 32437405 2012 +21893 32439417 2006 +21894 32441423 2012 +21895 32443435 2012 +21896 32445447 2006 +21897 32447453 2012 +21898 32449465 872 +21899 32450337 554 +21900 32450891 2324 +21901 32453215 158 +21902 32453373 27037 +21903 32480410 5372 +21904 32485782 1826 +21905 32487608 3434 +21906 32491042 5449 +21907 32496491 788 +21908 32497279 866 +21909 32498145 1718 +21910 32499863 668 +21911 32500531 1574 +21912 32502105 962 +21913 32503067 1886 +21914 32504953 164 +21915 32505117 5425 +21916 32510542 3056 +21917 32513598 560 +21918 32514158 1460 +21919 32515618 3392 +21920 32519010 482 +21921 32519492 7940 +21922 32527432 494 +21923 32527926 524 +21924 32528450 500 +21925 32528950 518 +21926 32529468 446 +21927 32529914 482 +21928 32530396 422 +21929 32530818 980 +21930 32531798 572 +21931 32532370 8557 +21932 32540927 494 +21933 32541421 524 +21934 32541945 500 +21935 32542445 590 +21936 32543035 452 +21937 32543487 482 +21938 32543969 452 +21939 32544421 920 +21940 32545341 800 +21941 32546141 794 +21942 32546935 410 +21943 32547345 410 +21944 32547755 10340 +21945 32558095 2882 +21946 32560977 2882 +21947 32563859 5138 +21948 32568997 5126 +21949 32574123 2162 +21950 32576285 2162 +21951 32578447 3824 +21952 32582271 1154 +21953 32583425 1148 +21954 32584573 2888 +21955 32587461 32 +21956 32587493 2828 +21957 32590321 2846 +21958 32593167 2840 +21959 32596007 2834 +21960 32598841 1070 +21961 32599911 1070 +21962 32600981 896 +21963 32601877 1076 +21964 32602953 1088 +21965 32604041 1556 +21966 32605597 1328 +21967 32606925 1556 +21968 32608481 1328 +21969 32609809 2192 +21970 32612001 2174 +21971 32614175 704 +21972 32614879 398 +21973 32615277 1934 +21974 32617211 1976 +21975 32619187 1934 +21976 32621121 1934 +21977 32623055 1934 +21978 32624989 1934 +21979 32626923 932 +21980 32627855 950 +21981 32628805 860 +21982 32629665 860 +21983 32630525 1322 +21984 32631847 1322 +21985 32633169 1304 +21986 32634473 1580 +21987 32636053 1592 +21988 32637645 1580 +21989 32639225 1592 +21990 32640817 2636 +21991 32643453 1526 +21992 32644979 1526 +21993 32646505 1526 +21994 32648031 2162 +21995 32650193 1616 +21996 32651809 1868 +21997 32653677 458 +21998 32654135 5150 +21999 32659285 536 +22000 32659821 5156 +22001 32664977 536 +22002 32665513 734 +22003 32666247 794 +22004 32667041 602 +22005 32667643 578 +22006 32668221 602 +22007 32668823 578 +22008 32669401 1862 +22009 32671263 2012 +22010 32673275 2024 +22011 32675299 2018 +22012 32677317 2018 +22013 32679335 794 +22014 32680129 794 +22015 32680923 770 +22016 32681693 1556 +22017 32683249 1100 +22018 32684349 608 +22019 32684957 602 +22020 32685559 2936 +22021 32688495 824 +22022 32689319 1058 +22023 32690377 1058 +22024 32691435 5120 +22025 32696555 812 +22026 32697367 1550 +22027 32698917 1520 +22028 32700437 962 +22029 32701399 1070 +22030 32702469 794 +22031 32703263 794 +22032 32704057 764 +22033 32704821 764 +22034 32705585 764 +22035 32706349 818 +22036 32707167 1268 +22037 32708435 1316 +22038 32709751 356 +22039 32710107 332 +22040 32710439 350 +22041 32710789 362 +22042 32711151 368 +22043 32711519 770 +22044 32712289 2018 +22045 32714307 2060 +22046 32716367 860 +22047 32717227 866 +22048 32718093 860 +22049 32718953 1292 +22050 32720245 1292 +22051 32721537 1286 +22052 32722823 1286 +22053 32724109 1292 +22054 32725401 1298 +22055 32726699 1292 +22056 32727991 1292 +22057 32729283 1886 +22058 32731169 458 +22059 32731627 2006 +22060 32733633 2024 +22061 32735657 1004 +22062 32736661 2330 +22063 32738991 2330 +22064 32741321 2564 +22065 32743885 1850 +22066 32745735 1850 +22067 32747585 1922 +22068 32749507 1838 +22069 32751345 80 +22070 32751425 80 +22071 32751505 1928 +22072 32753433 1016 +22073 32754449 740 +22074 32755189 728 +22075 32755917 722 +22076 32756639 500 +22077 32757139 302 +22078 32757441 4766 +22079 32762207 2192 +22080 32764399 572 +22081 32764971 38 +22082 32765009 686 +22083 32765695 2366 +22084 32768061 2348 +22085 32770409 770 +22086 32771179 1802 +22087 32772981 2114 +22088 32775095 1496 +22089 32776591 1574 +22090 32778165 1088 +22091 32779253 1088 +22092 32780341 1094 +22093 32781435 1094 +22094 32782529 1100 +22095 32783629 1094 +22096 32784723 986 +22097 32785709 974 +22098 32786683 1238 +22099 32787921 3218 +22100 32791139 542 +22101 32791681 548 +22102 32792229 1016 +22103 32793245 710 +22104 32793955 1484 +22105 32795439 1592 +22106 32797031 1592 +22107 32798623 1526 +22108 32800149 1598 +22109 32801747 1586 +22110 32803333 1592 +22111 32804925 1544 +22112 32806469 1544 +22113 32808013 1550 +22114 32809563 1538 +22115 32811101 782 +22116 32811883 704 +22117 32812587 1808 +22118 32814395 1628 +22119 32816023 1802 +22120 32817825 1628 +22121 32819453 626 +22122 32820079 1412 +22123 32821491 1412 +22124 32822903 1412 +22125 32824315 1412 +22126 32825727 1412 +22127 32827139 1412 +22128 32828551 1412 +22129 32829963 1412 +22130 32831375 1412 +22131 32832787 1412 +22132 32834199 1412 +22133 32835611 1412 +22134 32837023 1412 +22135 32838435 1412 +22136 32839847 1412 +22137 32841259 1412 +22138 32842671 1412 +22139 32844083 1412 +22140 32845495 1412 +22141 32846907 1412 +22142 32848319 1412 +22143 32849731 1412 +22144 32851143 1412 +22145 32852555 1412 +22146 32853967 1412 +22147 32855379 1412 +22148 32856791 1412 +22149 32858203 1412 +22150 32859615 1412 +22151 32861027 1412 +22152 32862439 1412 +22153 32863851 1412 +22154 32865263 1412 +22155 32866675 1412 +22156 32868087 1412 +22157 32869499 1412 +22158 32870911 1412 +22159 32872323 1412 +22160 32873735 1412 +22161 32875147 1412 +22162 32876559 1412 +22163 32877971 1412 +22164 32879383 1412 +22165 32880795 1412 +22166 32882207 1412 +22167 32883619 1412 +22168 32885031 1412 +22169 32886443 1412 +22170 32887855 542 +22171 32888397 542 +22172 32888939 542 +22173 32889481 542 +22174 32890023 1256 +22175 32891279 1256 +22176 32892535 1256 +22177 32893791 1256 +22178 32895047 1256 +22179 32896303 1256 +22180 32897559 908 +22181 32898467 1058 +22182 32899525 1850 +22183 32901375 1850 +22184 32903225 1850 +22185 32905075 1850 +22186 32906925 1832 +22187 32908757 1832 +22188 32910589 1832 +22189 32912421 1832 +22190 32914253 1208 +22191 32915461 1166 +22192 32916627 530 +22193 32917157 602 +22194 32917759 602 +22195 32918361 38 +22196 32918399 38 +22197 32918437 2138 +22198 32920575 740 +22199 32921315 1184 +22200 32922499 1550 +22201 32924049 1550 +22202 32925599 1550 +22203 32927149 1550 +22204 32928699 1550 +22205 32930249 1550 +22206 32931799 1550 +22207 32933349 1550 +22208 32934899 1550 +22209 32936449 1550 +22210 32937999 1550 +22211 32939549 1550 +22212 32941099 1760 +22213 32942859 866 +22214 32943725 860 +22215 32944585 860 +22216 32945445 860 +22217 32946305 860 +22218 32947165 872 +22219 32948037 1430 +22220 32949467 1700 +22221 32951167 1724 +22222 32952891 1718 +22223 32954609 1040 +22224 32955649 1040 +22225 32956689 1232 +22226 32957921 1196 +22227 32959117 1190 +22228 32960307 1166 +22229 32961473 896 +22230 32962369 11317 +22231 32973686 2198 +22232 32975884 2198 +22233 32978082 1622 +22234 32979704 1622 +22235 32981326 1622 +22236 32982948 2048 +22237 32984996 1976 +22238 32986972 1916 +22239 32988888 854 +22240 32989742 1580 +22241 32991322 1544 +22242 32992866 1724 +22243 32994590 1718 +22244 32996308 476 +22245 32996784 1502 +22246 32998286 38 +22247 32998324 1178 +22248 32999502 1184 +22249 33000686 908 +22250 33001594 818 +22251 33002412 3572 +22252 33005984 3572 +22253 33009556 6296 +22254 33015852 6290 +22255 33022142 1172 +22256 33023314 1070 +22257 33024384 4934 +22258 33029318 1178 +22259 33030496 896 +22260 33031392 1550 +22261 33032942 2540 +22262 33035482 1682 +22263 33037164 1682 +22264 33038846 998 +22265 33039844 998 +22266 33040842 2648 +22267 33043490 2648 +22268 33046138 2798 +22269 33048936 2738 +22270 33051674 2798 +22271 33054472 2738 +22272 33057210 2798 +22273 33060008 2738 +22274 33062746 2798 +22275 33065544 2738 +22276 33068282 1208 +22277 33069490 1208 +22278 33070698 1208 +22279 33071906 1208 +22280 33073114 1208 +22281 33074322 1208 +22282 33075530 1208 +22283 33076738 1208 +22284 33077946 560 +22285 33078506 1880 +22286 33080386 1886 +22287 33082272 1880 +22288 33084152 1886 +22289 33086038 2570 +22290 33088608 2570 +22291 33091178 2570 +22292 33093748 2570 +22293 33096318 2582 +22294 33098900 2582 +22295 33101482 2582 +22296 33104064 2582 +22297 33106646 368 +22298 33107014 1358 +22299 33108372 1694 +22300 33110066 1694 +22301 33111760 2342 +22302 33114102 1226 +22303 33115328 1226 +22304 33116554 1364 +22305 33117918 956 +22306 33118874 944 +22307 33119818 2288 +22308 33122106 1466 +22309 33123572 1838 +22310 33125410 1496 +22311 33126906 1502 +22312 33128408 1454 +22313 33129862 1496 +22314 33131358 830 +22315 33132188 530 +22316 33132718 1814 +22317 33134532 1940 +22318 33136472 1172 +22319 33137644 1310 +22320 33138954 2474 +22321 33141428 302 +22322 33141730 308 +22323 33142038 776 +22324 33142814 776 +22325 33143590 2984 +22326 33146574 2966 +22327 33149540 1922 +22328 33151462 1958 +22329 33153420 716 +22330 33154136 716 +22331 33154852 530 +22332 33155382 2972 +22333 33158354 2966 +22334 33161320 1916 +22335 33163236 1976 +22336 33165212 716 +22337 33165928 716 +22338 33166644 506 +22339 33167150 890 +22340 33168040 890 +22341 33168930 2342 +22342 33171272 2426 +22343 33173698 764 +22344 33174462 764 +22345 33175226 1922 +22346 33177148 1922 +22347 33179070 488 +22348 33179558 3542 +22349 33183100 458 +22350 33183558 3800 +22351 33187358 2114 +22352 33189472 2102 +22353 33191574 620 +22354 33192194 680 +22355 33192874 1808 +22356 33194682 2240 +22357 33196922 1658 +22358 33198580 1322 +22359 33199902 1322 +22360 33201224 458 +22361 33201682 3530 +22362 33205212 3530 +22363 33208742 1382 +22364 33210124 1382 +22365 33211506 1382 +22366 33212888 1634 +22367 33214522 1640 +22368 33216162 812 +22369 33216974 1460 +22370 33218434 1460 +22371 33219894 1466 +22372 33221360 1466 +22373 33222826 608 +22374 33223434 602 +22375 33224036 602 +22376 33224638 716 +22377 33225354 698 +22378 33226052 710 +22379 33226762 632 +22380 33227394 614 +22381 33228008 2972 +22382 33230980 2978 +22383 33233958 1262 +22384 33235220 1154 +22385 33236374 1424 +22386 33237798 1424 +22387 33239222 1436 +22388 33240658 1454 +22389 33242112 1430 +22390 33243542 1430 +22391 33244972 1148 +22392 33246120 1094 +22393 33247214 1970 +22394 33249184 1958 +22395 33251142 632 +22396 33251774 92 +22397 33251866 1280 +22398 33253146 1250 +22399 33254396 2234 +22400 33256630 1850 +22401 33258480 212 +22402 33258692 212 +22403 33258904 212 +22404 33259116 212 +22405 33259328 422 +22406 33259750 398 +22407 33260148 1616 +22408 33261764 1616 +22409 33263380 578 +22410 33263958 662 +22411 33264620 734 +22412 33265354 734 +22413 33266088 2240 +22414 33268328 998 +22415 33269326 1928 +22416 33271254 1928 +22417 33273182 1928 +22418 33275110 1928 +22419 33277038 1928 +22420 33278966 1874 +22421 33280840 140 +22422 33280980 1718 +22423 33282698 134 +22424 33282832 1700 +22425 33284532 1208 +22426 33285740 2498 +22427 33288238 1004 +22428 33289242 1046 +22429 33290288 716 +22430 33291004 1778 +22431 33292782 1778 +22432 33294560 1118 +22433 33295678 1148 +22434 33296826 1850 +22435 33298676 1856 +22436 33300532 1568 +22437 33302100 1538 +22438 33303638 776 +22439 33304414 1562 +22440 33305976 1562 +22441 33307538 1340 +22442 33308878 800 +22443 33309678 68 +22444 33309746 614 +22445 33310360 818 +22446 33311178 782 +22447 33311960 1358 +22448 33313318 1382 +22449 33314700 1412 +22450 33316112 1388 +22451 33317500 296 +22452 33317796 302 +22453 33318098 662 +22454 33318760 662 +22455 33319422 1244 +22456 33320666 1244 +22457 33321910 1244 +22458 33323154 1244 +22459 33324398 830 +22460 33325228 2708 +22461 33327936 2678 +22462 33330614 2732 +22463 33333346 2612 +22464 33335958 3056 +22465 33339014 3056 +22466 33342070 2396 +22467 33344466 1340 +22468 33345806 1340 +22469 33347146 1340 +22470 33348486 1340 +22471 33349826 1340 +22472 33351166 1340 +22473 33352506 4610 +22474 33357116 4628 +22475 33361744 4484 +22476 33366228 422 +22477 33366650 1274 +22478 33367924 1184 +22479 33369108 104 +22480 33369212 3830 +22481 33373042 3782 +22482 33376824 2156 +22483 33378980 1232 +22484 33380212 1112 +22485 33381324 1322 +22486 33382646 1322 +22487 33383968 1994 +22488 33385962 1982 +22489 33387944 848 +22490 33388792 848 +22491 33389640 848 +22492 33390488 848 +22493 33391336 1430 +22494 33392766 1310 +22495 33394076 1724 +22496 33395800 1742 +22497 33397542 1718 +22498 33399260 1742 +22499 33401002 848 +22500 33401850 848 +22501 33402698 1130 +22502 33403828 1112 +22503 33404940 368 +22504 33405308 1454 +22505 33406762 380 +22506 33407142 1454 +22507 33408596 2492 +22508 33411088 98 +22509 33411186 3692 +22510 33414878 3692 +22511 33418570 2936 +22512 33421506 728 +22513 33422234 1346 +22514 33423580 1550 +22515 33425130 3469 +22516 33428599 4448 +22517 33433047 728 +22518 33433775 728 +22519 33434503 1100 +22520 33435603 2414 +22521 33438017 746 +22522 33438763 764 +22523 33439527 746 +22524 33440273 764 +22525 33441037 650 +22526 33441687 1898 +22527 33443585 1802 +22528 33445387 1784 +22529 33447171 1064 +22530 33448235 1070 +22531 33449305 812 +22532 33450117 1976 +22533 33452093 1976 +22534 33454069 3002 +22535 33457071 1334 +22536 33458405 1652 +22537 33460057 1652 +22538 33461709 1652 +22539 33463361 1652 +22540 33465013 1106 +22541 33466119 596 +22542 33466715 1076 +22543 33467791 1082 +22544 33468873 1070 +22545 33469943 1910 +22546 33471853 1934 +22547 33473787 1274 +22548 33475061 1274 +22549 33476335 1274 +22550 33477609 2360 +22551 33479969 2048 +22552 33482017 3320 +22553 33485337 2972 +22554 33488309 2540 +22555 33490849 776 +22556 33491625 806 +22557 33492431 56 +22558 33492487 770 +22559 33493257 782 +22560 33494039 644 +22561 33494683 680 +22562 33495363 1880 +22563 33497243 5162 +22564 33502405 1262 +22565 33503667 1250 +22566 33504917 800 +22567 33505717 2678 +22568 33508395 2678 +22569 33511073 2714 +22570 33513787 584 +22571 33514371 578 +22572 33514949 4160 +22573 33519109 3518 +22574 33522627 3194 +22575 33525821 2120 +22576 33527941 3158 +22577 33531099 848 +22578 33531947 1232 +22579 33533179 746 +22580 33533925 1046 +22581 33534971 968 +22582 33535939 458 +22583 33536397 1790 +22584 33538187 1238 +22585 33539425 1598 +22586 33541023 536 +22587 33541559 656 +22588 33542215 950 +22589 33543165 1184 +22590 33544349 554 +22591 33544903 1700 +22592 33546603 998 +22593 33547601 914 +22594 33548515 830 +22595 33549345 1160 +22596 33550505 752 +22597 33551257 932 +22598 33552189 2546 +22599 33554735 824 +22600 33555559 1346 +22601 33556905 2912 +22602 33559817 536 +22603 33560353 560 +22604 33560913 1598 +22605 33562511 1112 +22606 33563623 1730 +22607 33565353 638 +22608 33565991 374 +22609 33566365 1034 +22610 33567399 848 +22611 33568247 554 +22612 33568801 590 +22613 33569391 890 +22614 33570281 914 +22615 33571195 872 +22616 33572067 680 +22617 33572747 2978 +22618 33575725 1184 +22619 33576909 974 +22620 33577883 1106 +22621 33578989 1010 +22622 33579999 2708 +22623 33582707 2804 +22624 33585511 2600 +22625 33588111 2114 +22626 33590225 1664 +22627 33591889 2060 +22628 33593949 1484 +22629 33595433 1238 +22630 33596671 998 +22631 33597669 752 +22632 33598421 614 +22633 33599035 518 +22634 33599553 836 +22635 33600389 1430 +22636 33601819 2564 +22637 33604383 1424 +22638 33605807 1574 +22639 33607381 1868 +22640 33609249 1784 +22641 33611033 734 +22642 33611767 2876 +22643 33614643 3512 +22644 33618155 932 +22645 33619087 2864 +22646 33621951 2738 +22647 33624689 2192 +22648 33626881 1454 +22649 33628335 1394 +22650 33629729 392 +22651 33630121 1376 +22652 33631497 518 +22653 33632015 428 +22654 33632443 902 +22655 33633345 374 +22656 33633719 2864 +22657 33636583 2546 +22658 33639129 2192 +22659 33641321 1454 +22660 33642775 1394 +22661 33644169 392 +22662 33644561 1376 +22663 33645937 518 +22664 33646455 428 +22665 33646883 902 +22666 33647785 374 +22667 33648159 2372 +22668 33650531 1496 +22669 33652027 1148 +22670 33653175 740 +22671 33653915 890 +22672 33654805 1214 +22673 33656019 1100 +22674 33657119 3032 +22675 33660151 1358 +22676 33661509 2030 +22677 33663539 2012 +22678 33665551 2702 +22679 33668253 1958 +22680 33670211 1544 +22681 33671755 536 +22682 33672291 536 +22683 33672827 680 +22684 33673507 3002 +22685 33676509 698 +22686 33677207 674 +22687 33677881 2396 +22688 33680277 2408 +22689 33682685 2324 +22690 33685009 2330 +22691 33687339 2792 +22692 33690131 1592 +22693 33691723 1574 +22694 33693297 2792 +22695 33696089 1052 +22696 33697141 2486 +22697 33699627 2432 +22698 33702059 650 +22699 33702709 986 +22700 33703695 1070 +22701 33704765 1070 +22702 33705835 1364 +22703 33707199 2228 +22704 33709427 5840 +22705 33715267 5888 +22706 33721155 5840 +22707 33726995 5888 +22708 33732883 1064 +22709 33733947 1670 +22710 33735617 2000 +22711 33737617 374 +22712 33737991 344 +22713 33738335 374 +22714 33738709 344 +22715 33739053 1502 +22716 33740555 1472 +22717 33742027 1490 +22718 33743517 1478 +22719 33744995 1004 +22720 33745999 1004 +22721 33747003 1004 +22722 33748007 1004 +22723 33749011 1004 +22724 33750015 1004 +22725 33751019 1214 +22726 33752233 2288 +22727 33754521 1550 +22728 33756071 1556 +22729 33757627 1574 +22730 33759201 1574 +22731 33760775 2240 +22732 33763015 176 +22733 33763191 2570 +22734 33765761 3284 +22735 33769045 3284 +22736 33772329 2204 +22737 33774533 512 +22738 33775045 500 +22739 33775545 1934 +22740 33777479 1934 +22741 33779413 482 +22742 33779895 6541 +22743 33786436 6541 +22744 33792977 1838 +22745 33794815 1850 +22746 33796665 1838 +22747 33798503 3830 +22748 33802333 3866 +22749 33806199 5840 +22750 33812039 5840 +22751 33817879 1184 +22752 33819063 1178 +22753 33820241 1760 +22754 33822001 1850 +22755 33823851 2036 +22756 33825887 2036 +22757 33827923 530 +22758 33828453 572 +22759 33829025 794 +22760 33829819 788 +22761 33830607 2084 +22762 33832691 2108 +22763 33834799 2084 +22764 33836883 2108 +22765 33838991 2084 +22766 33841075 2108 +22767 33843183 1916 +22768 33845099 1916 +22769 33847015 2168 +22770 33849183 2180 +22771 33851363 1508 +22772 33852871 1514 +22773 33854385 4112 +22774 33858497 1022 +22775 33859519 1016 +22776 33860535 2366 +22777 33862901 620 +22778 33863521 620 +22779 33864141 2324 +22780 33866465 2378 +22781 33868843 1286 +22782 33870129 2582 +22783 33872711 2582 +22784 33875293 2534 +22785 33877827 2576 +22786 33880403 1256 +22787 33881659 1256 +22788 33882915 1802 +22789 33884717 1802 +22790 33886519 1502 +22791 33888021 662 +22792 33888683 656 +22793 33889339 662 +22794 33890001 656 +22795 33890657 656 +22796 33891313 644 +22797 33891957 254 +22798 33892211 3632 +22799 33895843 254 +22800 33896097 3632 +22801 33899729 254 +22802 33899983 3632 +22803 33903615 254 +22804 33903869 3632 +22805 33907501 254 +22806 33907755 3632 +22807 33911387 254 +22808 33911641 3632 +22809 33915273 254 +22810 33915527 3632 +22811 33919159 254 +22812 33919413 3632 +22813 33923045 254 +22814 33923299 3632 +22815 33926931 254 +22816 33927185 3632 +22817 33930817 2474 +22818 33933291 2474 +22819 33935765 7712 +22820 33943477 6116 +22821 33949593 6932 +22822 33956525 254 +22823 33956779 3632 +22824 33960411 254 +22825 33960665 3632 +22826 33964297 254 +22827 33964551 3632 +22828 33968183 254 +22829 33968437 3632 +22830 33972069 254 +22831 33972323 3632 +22832 33975955 254 +22833 33976209 3632 +22834 33979841 254 +22835 33980095 3632 +22836 33983727 254 +22837 33983981 3632 +22838 33987613 254 +22839 33987867 3632 +22840 33991499 254 +22841 33991753 3632 +22842 33995385 2474 +22843 33997859 2474 +22844 34000333 7712 +22845 34008045 6116 +22846 34014161 6932 +22847 34021093 254 +22848 34021347 3632 +22849 34024979 254 +22850 34025233 3632 +22851 34028865 254 +22852 34029119 3632 +22853 34032751 254 +22854 34033005 3632 +22855 34036637 254 +22856 34036891 3632 +22857 34040523 254 +22858 34040777 3632 +22859 34044409 254 +22860 34044663 3632 +22861 34048295 254 +22862 34048549 3632 +22863 34052181 254 +22864 34052435 3632 +22865 34056067 254 +22866 34056321 3632 +22867 34059953 2474 +22868 34062427 2474 +22869 34064901 7712 +22870 34072613 6116 +22871 34078729 6932 +22872 34085661 254 +22873 34085915 3632 +22874 34089547 254 +22875 34089801 3632 +22876 34093433 254 +22877 34093687 3632 +22878 34097319 254 +22879 34097573 3632 +22880 34101205 254 +22881 34101459 3632 +22882 34105091 254 +22883 34105345 3632 +22884 34108977 254 +22885 34109231 3632 +22886 34112863 254 +22887 34113117 3632 +22888 34116749 254 +22889 34117003 3632 +22890 34120635 254 +22891 34120889 3632 +22892 34124521 2474 +22893 34126995 2474 +22894 34129469 7712 +22895 34137181 6116 +22896 34143297 6932 +22897 34150229 254 +22898 34150483 3632 +22899 34154115 254 +22900 34154369 3632 +22901 34158001 254 +22902 34158255 3632 +22903 34161887 254 +22904 34162141 3632 +22905 34165773 254 +22906 34166027 3632 +22907 34169659 254 +22908 34169913 3632 +22909 34173545 254 +22910 34173799 3632 +22911 34177431 254 +22912 34177685 3632 +22913 34181317 254 +22914 34181571 3632 +22915 34185203 254 +22916 34185457 3632 +22917 34189089 2474 +22918 34191563 2474 +22919 34194037 7712 +22920 34201749 6116 +22921 34207865 6932 +22922 34214797 254 +22923 34215051 3632 +22924 34218683 254 +22925 34218937 3632 +22926 34222569 254 +22927 34222823 3632 +22928 34226455 254 +22929 34226709 3632 +22930 34230341 254 +22931 34230595 3632 +22932 34234227 254 +22933 34234481 3632 +22934 34238113 254 +22935 34238367 3632 +22936 34241999 254 +22937 34242253 3632 +22938 34245885 254 +22939 34246139 3632 +22940 34249771 254 +22941 34250025 3632 +22942 34253657 2474 +22943 34256131 2474 +22944 34258605 7712 +22945 34266317 6116 +22946 34272433 6932 +22947 34279365 254 +22948 34279619 3632 +22949 34283251 254 +22950 34283505 3632 +22951 34287137 254 +22952 34287391 3632 +22953 34291023 254 +22954 34291277 3632 +22955 34294909 254 +22956 34295163 3632 +22957 34298795 254 +22958 34299049 3632 +22959 34302681 254 +22960 34302935 3632 +22961 34306567 254 +22962 34306821 3632 +22963 34310453 254 +22964 34310707 3632 +22965 34314339 254 +22966 34314593 3632 +22967 34318225 2474 +22968 34320699 2474 +22969 34323173 7712 +22970 34330885 6116 +22971 34337001 6932 +22972 34343933 254 +22973 34344187 3632 +22974 34347819 254 +22975 34348073 3632 +22976 34351705 254 +22977 34351959 3632 +22978 34355591 254 +22979 34355845 3632 +22980 34359477 254 +22981 34359731 3632 +22982 34363363 254 +22983 34363617 3632 +22984 34367249 254 +22985 34367503 3632 +22986 34371135 254 +22987 34371389 3632 +22988 34375021 254 +22989 34375275 3632 +22990 34378907 254 +22991 34379161 3632 +22992 34382793 2474 +22993 34385267 2474 +22994 34387741 7712 +22995 34395453 6116 +22996 34401569 6932 +22997 34408501 254 +22998 34408755 3632 +22999 34412387 254 +23000 34412641 3632 +23001 34416273 254 +23002 34416527 3632 +23003 34420159 254 +23004 34420413 3632 +23005 34424045 254 +23006 34424299 3632 +23007 34427931 254 +23008 34428185 3632 +23009 34431817 254 +23010 34432071 3632 +23011 34435703 254 +23012 34435957 3632 +23013 34439589 254 +23014 34439843 3632 +23015 34443475 254 +23016 34443729 3632 +23017 34447361 2474 +23018 34449835 2474 +23019 34452309 7712 +23020 34460021 6116 +23021 34466137 6932 +23022 34473069 254 +23023 34473323 3632 +23024 34476955 254 +23025 34477209 3632 +23026 34480841 254 +23027 34481095 3632 +23028 34484727 254 +23029 34484981 3632 +23030 34488613 254 +23031 34488867 3632 +23032 34492499 254 +23033 34492753 3632 +23034 34496385 254 +23035 34496639 3632 +23036 34500271 254 +23037 34500525 3632 +23038 34504157 254 +23039 34504411 3632 +23040 34508043 254 +23041 34508297 3632 +23042 34511929 2474 +23043 34514403 2474 +23044 34516877 7712 +23045 34524589 6116 +23046 34530705 6932 +23047 34537637 254 +23048 34537891 3632 +23049 34541523 254 +23050 34541777 3632 +23051 34545409 254 +23052 34545663 3632 +23053 34549295 254 +23054 34549549 3632 +23055 34553181 254 +23056 34553435 3632 +23057 34557067 254 +23058 34557321 3632 +23059 34560953 254 +23060 34561207 3632 +23061 34564839 254 +23062 34565093 3632 +23063 34568725 254 +23064 34568979 3632 +23065 34572611 254 +23066 34572865 3632 +23067 34576497 2474 +23068 34578971 2474 +23069 34581445 7712 +23070 34589157 6116 +23071 34595273 6932 +23072 34602205 254 +23073 34602459 3632 +23074 34606091 254 +23075 34606345 3632 +23076 34609977 254 +23077 34610231 3632 +23078 34613863 254 +23079 34614117 3632 +23080 34617749 254 +23081 34618003 3632 +23082 34621635 254 +23083 34621889 3632 +23084 34625521 254 +23085 34625775 3632 +23086 34629407 254 +23087 34629661 3632 +23088 34633293 254 +23089 34633547 3632 +23090 34637179 254 +23091 34637433 3632 +23092 34641065 2474 +23093 34643539 2474 +23094 34646013 7712 +23095 34653725 6116 +23096 34659841 6932 +23097 34666773 254 +23098 34667027 3632 +23099 34670659 254 +23100 34670913 3632 +23101 34674545 254 +23102 34674799 3632 +23103 34678431 254 +23104 34678685 3632 +23105 34682317 254 +23106 34682571 3632 +23107 34686203 254 +23108 34686457 3632 +23109 34690089 254 +23110 34690343 3632 +23111 34693975 254 +23112 34694229 3632 +23113 34697861 254 +23114 34698115 3632 +23115 34701747 254 +23116 34702001 3632 +23117 34705633 2474 +23118 34708107 2474 +23119 34710581 7712 +23120 34718293 6116 +23121 34724409 6932 +23122 34731341 254 +23123 34731595 3632 +23124 34735227 254 +23125 34735481 3632 +23126 34739113 254 +23127 34739367 3632 +23128 34742999 254 +23129 34743253 3632 +23130 34746885 254 +23131 34747139 3632 +23132 34750771 254 +23133 34751025 3632 +23134 34754657 254 +23135 34754911 3632 +23136 34758543 254 +23137 34758797 3632 +23138 34762429 254 +23139 34762683 3632 +23140 34766315 254 +23141 34766569 3632 +23142 34770201 2474 +23143 34772675 2474 +23144 34775149 7712 +23145 34782861 6116 +23146 34788977 6932 +23147 34795909 254 +23148 34796163 3632 +23149 34799795 254 +23150 34800049 3632 +23151 34803681 254 +23152 34803935 3632 +23153 34807567 254 +23154 34807821 3632 +23155 34811453 254 +23156 34811707 3632 +23157 34815339 254 +23158 34815593 3632 +23159 34819225 254 +23160 34819479 3632 +23161 34823111 254 +23162 34823365 3632 +23163 34826997 254 +23164 34827251 3632 +23165 34830883 254 +23166 34831137 3632 +23167 34834769 2474 +23168 34837243 2474 +23169 34839717 7712 +23170 34847429 6116 +23171 34853545 6932 +23172 34860477 254 +23173 34860731 3632 +23174 34864363 254 +23175 34864617 3632 +23176 34868249 254 +23177 34868503 3632 +23178 34872135 254 +23179 34872389 3632 +23180 34876021 254 +23181 34876275 3632 +23182 34879907 254 +23183 34880161 3632 +23184 34883793 254 +23185 34884047 3632 +23186 34887679 254 +23187 34887933 3632 +23188 34891565 254 +23189 34891819 3632 +23190 34895451 254 +23191 34895705 3632 +23192 34899337 2474 +23193 34901811 2474 +23194 34904285 7712 +23195 34911997 6116 +23196 34918113 6932 +23197 34925045 254 +23198 34925299 3632 +23199 34928931 254 +23200 34929185 3632 +23201 34932817 254 +23202 34933071 3632 +23203 34936703 254 +23204 34936957 3632 +23205 34940589 254 +23206 34940843 3632 +23207 34944475 254 +23208 34944729 3632 +23209 34948361 254 +23210 34948615 3632 +23211 34952247 254 +23212 34952501 3632 +23213 34956133 254 +23214 34956387 3632 +23215 34960019 254 +23216 34960273 3632 +23217 34963905 2474 +23218 34966379 2474 +23219 34968853 7712 +23220 34976565 6116 +23221 34982681 6932 +23222 34989613 254 +23223 34989867 3632 +23224 34993499 254 +23225 34993753 3632 +23226 34997385 254 +23227 34997639 3632 +23228 35001271 254 +23229 35001525 3632 +23230 35005157 254 +23231 35005411 3632 +23232 35009043 254 +23233 35009297 3632 +23234 35012929 254 +23235 35013183 3632 +23236 35016815 254 +23237 35017069 3632 +23238 35020701 254 +23239 35020955 3632 +23240 35024587 254 +23241 35024841 3632 +23242 35028473 2474 +23243 35030947 2474 +23244 35033421 7712 +23245 35041133 6116 +23246 35047249 6932 +23247 35054181 254 +23248 35054435 3632 +23249 35058067 254 +23250 35058321 3632 +23251 35061953 254 +23252 35062207 3632 +23253 35065839 254 +23254 35066093 3632 +23255 35069725 254 +23256 35069979 3632 +23257 35073611 254 +23258 35073865 3632 +23259 35077497 254 +23260 35077751 3632 +23261 35081383 254 +23262 35081637 3632 +23263 35085269 254 +23264 35085523 3632 +23265 35089155 254 +23266 35089409 3632 +23267 35093041 2474 +23268 35095515 2474 +23269 35097989 7712 +23270 35105701 6116 +23271 35111817 6932 +23272 35118749 254 +23273 35119003 3632 +23274 35122635 254 +23275 35122889 3632 +23276 35126521 254 +23277 35126775 3632 +23278 35130407 254 +23279 35130661 3632 +23280 35134293 254 +23281 35134547 3632 +23282 35138179 254 +23283 35138433 3632 +23284 35142065 254 +23285 35142319 3632 +23286 35145951 254 +23287 35146205 3632 +23288 35149837 254 +23289 35150091 3632 +23290 35153723 254 +23291 35153977 3632 +23292 35157609 2474 +23293 35160083 2474 +23294 35162557 7712 +23295 35170269 6116 +23296 35176385 6932 +23297 35183317 254 +23298 35183571 3632 +23299 35187203 254 +23300 35187457 3632 +23301 35191089 254 +23302 35191343 3632 +23303 35194975 254 +23304 35195229 3632 +23305 35198861 254 +23306 35199115 3632 +23307 35202747 254 +23308 35203001 3632 +23309 35206633 254 +23310 35206887 3632 +23311 35210519 254 +23312 35210773 3632 +23313 35214405 254 +23314 35214659 3632 +23315 35218291 254 +23316 35218545 3632 +23317 35222177 2474 +23318 35224651 2474 +23319 35227125 7712 +23320 35234837 6116 +23321 35240953 6932 +23322 35247885 254 +23323 35248139 3632 +23324 35251771 254 +23325 35252025 3632 +23326 35255657 254 +23327 35255911 3632 +23328 35259543 254 +23329 35259797 3632 +23330 35263429 254 +23331 35263683 3632 +23332 35267315 254 +23333 35267569 3632 +23334 35271201 254 +23335 35271455 3632 +23336 35275087 254 +23337 35275341 3632 +23338 35278973 254 +23339 35279227 3632 +23340 35282859 254 +23341 35283113 3632 +23342 35286745 2474 +23343 35289219 2474 +23344 35291693 7712 +23345 35299405 6116 +23346 35305521 6932 +23347 35312453 254 +23348 35312707 3632 +23349 35316339 254 +23350 35316593 3632 +23351 35320225 254 +23352 35320479 3632 +23353 35324111 254 +23354 35324365 3632 +23355 35327997 254 +23356 35328251 3632 +23357 35331883 254 +23358 35332137 3632 +23359 35335769 254 +23360 35336023 3632 +23361 35339655 254 +23362 35339909 3632 +23363 35343541 254 +23364 35343795 3632 +23365 35347427 254 +23366 35347681 3632 +23367 35351313 2474 +23368 35353787 2474 +23369 35356261 7712 +23370 35363973 6116 +23371 35370089 6932 +23372 35377021 254 +23373 35377275 3632 +23374 35380907 254 +23375 35381161 3632 +23376 35384793 254 +23377 35385047 3632 +23378 35388679 254 +23379 35388933 3632 +23380 35392565 254 +23381 35392819 3632 +23382 35396451 254 +23383 35396705 3632 +23384 35400337 254 +23385 35400591 3632 +23386 35404223 254 +23387 35404477 3632 +23388 35408109 254 +23389 35408363 3632 +23390 35411995 254 +23391 35412249 3632 +23392 35415881 2474 +23393 35418355 2474 +23394 35420829 7712 +23395 35428541 6116 +23396 35434657 6932 +23397 35441589 254 +23398 35441843 3632 +23399 35445475 254 +23400 35445729 3632 +23401 35449361 254 +23402 35449615 3632 +23403 35453247 254 +23404 35453501 3632 +23405 35457133 254 +23406 35457387 3632 +23407 35461019 254 +23408 35461273 3632 +23409 35464905 254 +23410 35465159 3632 +23411 35468791 254 +23412 35469045 3632 +23413 35472677 254 +23414 35472931 3632 +23415 35476563 254 +23416 35476817 3632 +23417 35480449 2474 +23418 35482923 2474 +23419 35485397 7712 +23420 35493109 6116 +23421 35499225 6932 +23422 35506157 254 +23423 35506411 3632 +23424 35510043 254 +23425 35510297 3632 +23426 35513929 254 +23427 35514183 3632 +23428 35517815 254 +23429 35518069 3632 +23430 35521701 254 +23431 35521955 3632 +23432 35525587 254 +23433 35525841 3632 +23434 35529473 254 +23435 35529727 3632 +23436 35533359 254 +23437 35533613 3632 +23438 35537245 254 +23439 35537499 3632 +23440 35541131 254 +23441 35541385 3632 +23442 35545017 2474 +23443 35547491 2474 +23444 35549965 7712 +23445 35557677 6116 +23446 35563793 6932 +23447 35570725 254 +23448 35570979 3632 +23449 35574611 254 +23450 35574865 3632 +23451 35578497 254 +23452 35578751 3632 +23453 35582383 254 +23454 35582637 3632 +23455 35586269 254 +23456 35586523 3632 +23457 35590155 254 +23458 35590409 3632 +23459 35594041 254 +23460 35594295 3632 +23461 35597927 254 +23462 35598181 3632 +23463 35601813 254 +23464 35602067 3632 +23465 35605699 254 +23466 35605953 3632 +23467 35609585 2474 +23468 35612059 2474 +23469 35614533 7712 +23470 35622245 6116 +23471 35628361 6932 +23472 35635293 254 +23473 35635547 3632 +23474 35639179 254 +23475 35639433 3632 +23476 35643065 254 +23477 35643319 3632 +23478 35646951 254 +23479 35647205 3632 +23480 35650837 254 +23481 35651091 3632 +23482 35654723 254 +23483 35654977 3632 +23484 35658609 254 +23485 35658863 3632 +23486 35662495 254 +23487 35662749 3632 +23488 35666381 254 +23489 35666635 3632 +23490 35670267 254 +23491 35670521 3632 +23492 35674153 2474 +23493 35676627 2474 +23494 35679101 7712 +23495 35686813 6116 +23496 35692929 6932 +23497 35699861 254 +23498 35700115 3632 +23499 35703747 254 +23500 35704001 3632 +23501 35707633 254 +23502 35707887 3632 +23503 35711519 254 +23504 35711773 3632 +23505 35715405 254 +23506 35715659 3632 +23507 35719291 254 +23508 35719545 3632 +23509 35723177 254 +23510 35723431 3632 +23511 35727063 254 +23512 35727317 3632 +23513 35730949 254 +23514 35731203 3632 +23515 35734835 254 +23516 35735089 3632 +23517 35738721 2474 +23518 35741195 2474 +23519 35743669 7712 +23520 35751381 6116 +23521 35757497 6932 +23522 35764429 254 +23523 35764683 3632 +23524 35768315 254 +23525 35768569 3632 +23526 35772201 254 +23527 35772455 3632 +23528 35776087 254 +23529 35776341 3632 +23530 35779973 254 +23531 35780227 3632 +23532 35783859 254 +23533 35784113 3632 +23534 35787745 254 +23535 35787999 3632 +23536 35791631 254 +23537 35791885 3632 +23538 35795517 254 +23539 35795771 3632 +23540 35799403 254 +23541 35799657 3632 +23542 35803289 2474 +23543 35805763 2474 +23544 35808237 7712 +23545 35815949 6116 +23546 35822065 6932 +23547 35828997 254 +23548 35829251 3632 +23549 35832883 254 +23550 35833137 3632 +23551 35836769 254 +23552 35837023 3632 +23553 35840655 254 +23554 35840909 3632 +23555 35844541 254 +23556 35844795 3632 +23557 35848427 254 +23558 35848681 3632 +23559 35852313 254 +23560 35852567 3632 +23561 35856199 254 +23562 35856453 3632 +23563 35860085 254 +23564 35860339 3632 +23565 35863971 254 +23566 35864225 3632 +23567 35867857 2474 +23568 35870331 2474 +23569 35872805 7712 +23570 35880517 6116 +23571 35886633 6932 +23572 35893565 254 +23573 35893819 3632 +23574 35897451 254 +23575 35897705 3632 +23576 35901337 254 +23577 35901591 3632 +23578 35905223 254 +23579 35905477 3632 +23580 35909109 254 +23581 35909363 3632 +23582 35912995 254 +23583 35913249 3632 +23584 35916881 254 +23585 35917135 3632 +23586 35920767 254 +23587 35921021 3632 +23588 35924653 254 +23589 35924907 3632 +23590 35928539 254 +23591 35928793 3632 +23592 35932425 2474 +23593 35934899 2474 +23594 35937373 7712 +23595 35945085 6116 +23596 35951201 6932 +23597 35958133 254 +23598 35958387 3632 +23599 35962019 254 +23600 35962273 3632 +23601 35965905 254 +23602 35966159 3632 +23603 35969791 254 +23604 35970045 3632 +23605 35973677 254 +23606 35973931 3632 +23607 35977563 254 +23608 35977817 3632 +23609 35981449 254 +23610 35981703 3632 +23611 35985335 254 +23612 35985589 3632 +23613 35989221 254 +23614 35989475 3632 +23615 35993107 254 +23616 35993361 3632 +23617 35996993 2474 +23618 35999467 2474 +23619 36001941 7712 +23620 36009653 6116 +23621 36015769 6932 +23622 36022701 254 +23623 36022955 3632 +23624 36026587 254 +23625 36026841 3632 +23626 36030473 254 +23627 36030727 3632 +23628 36034359 254 +23629 36034613 3632 +23630 36038245 254 +23631 36038499 3632 +23632 36042131 254 +23633 36042385 3632 +23634 36046017 254 +23635 36046271 3632 +23636 36049903 254 +23637 36050157 3632 +23638 36053789 254 +23639 36054043 3632 +23640 36057675 254 +23641 36057929 3632 +23642 36061561 2474 +23643 36064035 2474 +23644 36066509 7712 +23645 36074221 6116 +23646 36080337 6932 +23647 36087269 254 +23648 36087523 3632 +23649 36091155 254 +23650 36091409 3632 +23651 36095041 254 +23652 36095295 3632 +23653 36098927 254 +23654 36099181 3632 +23655 36102813 254 +23656 36103067 3632 +23657 36106699 254 +23658 36106953 3632 +23659 36110585 254 +23660 36110839 3632 +23661 36114471 254 +23662 36114725 3632 +23663 36118357 254 +23664 36118611 3632 +23665 36122243 254 +23666 36122497 3632 +23667 36126129 2474 +23668 36128603 2474 +23669 36131077 7712 +23670 36138789 6116 +23671 36144905 6932 +23672 36151837 254 +23673 36152091 3632 +23674 36155723 254 +23675 36155977 3632 +23676 36159609 254 +23677 36159863 3632 +23678 36163495 254 +23679 36163749 3632 +23680 36167381 254 +23681 36167635 3632 +23682 36171267 254 +23683 36171521 3632 +23684 36175153 254 +23685 36175407 3632 +23686 36179039 254 +23687 36179293 3632 +23688 36182925 254 +23689 36183179 3632 +23690 36186811 254 +23691 36187065 3632 +23692 36190697 2474 +23693 36193171 2474 +23694 36195645 7712 +23695 36203357 6116 +23696 36209473 6932 +23697 36216405 254 +23698 36216659 3632 +23699 36220291 254 +23700 36220545 3632 +23701 36224177 254 +23702 36224431 3632 +23703 36228063 254 +23704 36228317 3632 +23705 36231949 254 +23706 36232203 3632 +23707 36235835 254 +23708 36236089 3632 +23709 36239721 254 +23710 36239975 3632 +23711 36243607 254 +23712 36243861 3632 +23713 36247493 254 +23714 36247747 3632 +23715 36251379 254 +23716 36251633 3632 +23717 36255265 2474 +23718 36257739 2474 +23719 36260213 7712 +23720 36267925 6116 +23721 36274041 6932 +23722 36280973 254 +23723 36281227 3632 +23724 36284859 254 +23725 36285113 3632 +23726 36288745 254 +23727 36288999 3632 +23728 36292631 254 +23729 36292885 3632 +23730 36296517 254 +23731 36296771 3632 +23732 36300403 254 +23733 36300657 3632 +23734 36304289 254 +23735 36304543 3632 +23736 36308175 254 +23737 36308429 3632 +23738 36312061 254 +23739 36312315 3632 +23740 36315947 254 +23741 36316201 3632 +23742 36319833 2474 +23743 36322307 2474 +23744 36324781 7712 +23745 36332493 6116 +23746 36338609 6932 +23747 36345541 254 +23748 36345795 3632 +23749 36349427 254 +23750 36349681 3632 +23751 36353313 254 +23752 36353567 3632 +23753 36357199 254 +23754 36357453 3632 +23755 36361085 254 +23756 36361339 3632 +23757 36364971 254 +23758 36365225 3632 +23759 36368857 254 +23760 36369111 3632 +23761 36372743 254 +23762 36372997 3632 +23763 36376629 254 +23764 36376883 3632 +23765 36380515 254 +23766 36380769 3632 +23767 36384401 2474 +23768 36386875 2474 +23769 36389349 7712 +23770 36397061 6116 +23771 36403177 6932 +23772 36410109 254 +23773 36410363 3632 +23774 36413995 254 +23775 36414249 3632 +23776 36417881 254 +23777 36418135 3632 +23778 36421767 254 +23779 36422021 3632 +23780 36425653 254 +23781 36425907 3632 +23782 36429539 254 +23783 36429793 3632 +23784 36433425 254 +23785 36433679 3632 +23786 36437311 254 +23787 36437565 3632 +23788 36441197 254 +23789 36441451 3632 +23790 36445083 254 +23791 36445337 3632 +23792 36448969 2474 +23793 36451443 2474 +23794 36453917 7712 +23795 36461629 6116 +23796 36467745 6932 +23797 36474677 254 +23798 36474931 3632 +23799 36478563 254 +23800 36478817 3632 +23801 36482449 254 +23802 36482703 3632 +23803 36486335 254 +23804 36486589 3632 +23805 36490221 254 +23806 36490475 3632 +23807 36494107 254 +23808 36494361 3632 +23809 36497993 254 +23810 36498247 3632 +23811 36501879 254 +23812 36502133 3632 +23813 36505765 254 +23814 36506019 3632 +23815 36509651 254 +23816 36509905 3632 +23817 36513537 2474 +23818 36516011 2474 +23819 36518485 7712 +23820 36526197 6116 +23821 36532313 6932 +23822 36539245 254 +23823 36539499 3632 +23824 36543131 254 +23825 36543385 3632 +23826 36547017 254 +23827 36547271 3632 +23828 36550903 254 +23829 36551157 3632 +23830 36554789 254 +23831 36555043 3632 +23832 36558675 254 +23833 36558929 3632 +23834 36562561 254 +23835 36562815 3632 +23836 36566447 254 +23837 36566701 3632 +23838 36570333 254 +23839 36570587 3632 +23840 36574219 254 +23841 36574473 3632 +23842 36578105 2474 +23843 36580579 2474 +23844 36583053 7712 +23845 36590765 6116 +23846 36596881 6932 +23847 36603813 254 +23848 36604067 3632 +23849 36607699 254 +23850 36607953 3632 +23851 36611585 254 +23852 36611839 3632 +23853 36615471 254 +23854 36615725 3632 +23855 36619357 254 +23856 36619611 3632 +23857 36623243 254 +23858 36623497 3632 +23859 36627129 254 +23860 36627383 3632 +23861 36631015 254 +23862 36631269 3632 +23863 36634901 254 +23864 36635155 3632 +23865 36638787 254 +23866 36639041 3632 +23867 36642673 2474 +23868 36645147 2474 +23869 36647621 7712 +23870 36655333 6116 +23871 36661449 6932 +23872 36668381 254 +23873 36668635 3632 +23874 36672267 254 +23875 36672521 3632 +23876 36676153 254 +23877 36676407 3632 +23878 36680039 254 +23879 36680293 3632 +23880 36683925 254 +23881 36684179 3632 +23882 36687811 254 +23883 36688065 3632 +23884 36691697 254 +23885 36691951 3632 +23886 36695583 254 +23887 36695837 3632 +23888 36699469 254 +23889 36699723 3632 +23890 36703355 254 +23891 36703609 3632 +23892 36707241 2474 +23893 36709715 2474 +23894 36712189 7712 +23895 36719901 6116 +23896 36726017 6932 +23897 36732949 254 +23898 36733203 3632 +23899 36736835 254 +23900 36737089 3632 +23901 36740721 254 +23902 36740975 3632 +23903 36744607 254 +23904 36744861 3632 +23905 36748493 254 +23906 36748747 3632 +23907 36752379 254 +23908 36752633 3632 +23909 36756265 254 +23910 36756519 3632 +23911 36760151 254 +23912 36760405 3632 +23913 36764037 254 +23914 36764291 3632 +23915 36767923 254 +23916 36768177 3632 +23917 36771809 2474 +23918 36774283 2474 +23919 36776757 7712 +23920 36784469 6116 +23921 36790585 6932 +23922 36797517 254 +23923 36797771 3632 +23924 36801403 254 +23925 36801657 3632 +23926 36805289 254 +23927 36805543 3632 +23928 36809175 254 +23929 36809429 3632 +23930 36813061 254 +23931 36813315 3632 +23932 36816947 254 +23933 36817201 3632 +23934 36820833 254 +23935 36821087 3632 +23936 36824719 254 +23937 36824973 3632 +23938 36828605 254 +23939 36828859 3632 +23940 36832491 254 +23941 36832745 3632 +23942 36836377 2474 +23943 36838851 2474 +23944 36841325 7712 +23945 36849037 6116 +23946 36855153 6932 +23947 36862085 254 +23948 36862339 3632 +23949 36865971 254 +23950 36866225 3632 +23951 36869857 254 +23952 36870111 3632 +23953 36873743 254 +23954 36873997 3632 +23955 36877629 254 +23956 36877883 3632 +23957 36881515 254 +23958 36881769 3632 +23959 36885401 254 +23960 36885655 3632 +23961 36889287 254 +23962 36889541 3632 +23963 36893173 254 +23964 36893427 3632 +23965 36897059 254 +23966 36897313 3632 +23967 36900945 2474 +23968 36903419 2474 +23969 36905893 7712 +23970 36913605 6116 +23971 36919721 6932 +23972 36926653 254 +23973 36926907 3632 +23974 36930539 254 +23975 36930793 3632 +23976 36934425 254 +23977 36934679 3632 +23978 36938311 254 +23979 36938565 3632 +23980 36942197 254 +23981 36942451 3632 +23982 36946083 254 +23983 36946337 3632 +23984 36949969 254 +23985 36950223 3632 +23986 36953855 254 +23987 36954109 3632 +23988 36957741 254 +23989 36957995 3632 +23990 36961627 254 +23991 36961881 3632 +23992 36965513 2474 +23993 36967987 2474 +23994 36970461 7712 +23995 36978173 6116 +23996 36984289 6932 +23997 36991221 254 +23998 36991475 3632 +23999 36995107 254 +24000 36995361 3632 +24001 36998993 254 +24002 36999247 3632 +24003 37002879 254 +24004 37003133 3632 +24005 37006765 254 +24006 37007019 3632 +24007 37010651 254 +24008 37010905 3632 +24009 37014537 254 +24010 37014791 3632 +24011 37018423 254 +24012 37018677 3632 +24013 37022309 254 +24014 37022563 3632 +24015 37026195 254 +24016 37026449 3632 +24017 37030081 2474 +24018 37032555 2474 +24019 37035029 7712 +24020 37042741 6116 +24021 37048857 6932 +24022 37055789 254 +24023 37056043 3632 +24024 37059675 254 +24025 37059929 3632 +24026 37063561 254 +24027 37063815 3632 +24028 37067447 254 +24029 37067701 3632 +24030 37071333 254 +24031 37071587 3632 +24032 37075219 254 +24033 37075473 3632 +24034 37079105 254 +24035 37079359 3632 +24036 37082991 254 +24037 37083245 3632 +24038 37086877 254 +24039 37087131 3632 +24040 37090763 254 +24041 37091017 3632 +24042 37094649 2474 +24043 37097123 2474 +24044 37099597 7712 +24045 37107309 6116 +24046 37113425 6932 +24047 37120357 254 +24048 37120611 3632 +24049 37124243 254 +24050 37124497 3632 +24051 37128129 254 +24052 37128383 3632 +24053 37132015 254 +24054 37132269 3632 +24055 37135901 254 +24056 37136155 3632 +24057 37139787 254 +24058 37140041 3632 +24059 37143673 254 +24060 37143927 3632 +24061 37147559 254 +24062 37147813 3632 +24063 37151445 254 +24064 37151699 3632 +24065 37155331 254 +24066 37155585 3632 +24067 37159217 2474 +24068 37161691 2474 +24069 37164165 7712 +24070 37171877 6116 +24071 37177993 6932 +24072 37184925 254 +24073 37185179 3632 +24074 37188811 254 +24075 37189065 3632 +24076 37192697 254 +24077 37192951 3632 +24078 37196583 254 +24079 37196837 3632 +24080 37200469 254 +24081 37200723 3632 +24082 37204355 254 +24083 37204609 3632 +24084 37208241 254 +24085 37208495 3632 +24086 37212127 254 +24087 37212381 3632 +24088 37216013 254 +24089 37216267 3632 +24090 37219899 254 +24091 37220153 3632 +24092 37223785 2474 +24093 37226259 2474 +24094 37228733 7712 +24095 37236445 6116 +24096 37242561 6932 +24097 37249493 254 +24098 37249747 3632 +24099 37253379 254 +24100 37253633 3632 +24101 37257265 254 +24102 37257519 3632 +24103 37261151 254 +24104 37261405 3632 +24105 37265037 254 +24106 37265291 3632 +24107 37268923 254 +24108 37269177 3632 +24109 37272809 254 +24110 37273063 3632 +24111 37276695 254 +24112 37276949 3632 +24113 37280581 254 +24114 37280835 3632 +24115 37284467 254 +24116 37284721 3632 +24117 37288353 2474 +24118 37290827 2474 +24119 37293301 7712 +24120 37301013 6116 +24121 37307129 6932 +24122 37314061 254 +24123 37314315 3632 +24124 37317947 254 +24125 37318201 3632 +24126 37321833 254 +24127 37322087 3632 +24128 37325719 254 +24129 37325973 3632 +24130 37329605 254 +24131 37329859 3632 +24132 37333491 254 +24133 37333745 3632 +24134 37337377 254 +24135 37337631 3632 +24136 37341263 254 +24137 37341517 3632 +24138 37345149 254 +24139 37345403 3632 +24140 37349035 254 +24141 37349289 3632 +24142 37352921 2474 +24143 37355395 2474 +24144 37357869 7712 +24145 37365581 6116 +24146 37371697 6932 +24147 37378629 254 +24148 37378883 3632 +24149 37382515 254 +24150 37382769 3632 +24151 37386401 254 +24152 37386655 3632 +24153 37390287 254 +24154 37390541 3632 +24155 37394173 254 +24156 37394427 3632 +24157 37398059 254 +24158 37398313 3632 +24159 37401945 254 +24160 37402199 3632 +24161 37405831 254 +24162 37406085 3632 +24163 37409717 254 +24164 37409971 3632 +24165 37413603 254 +24166 37413857 3632 +24167 37417489 2474 +24168 37419963 2474 +24169 37422437 7712 +24170 37430149 6116 +24171 37436265 6932 +24172 37443197 254 +24173 37443451 3632 +24174 37447083 254 +24175 37447337 3632 +24176 37450969 254 +24177 37451223 3632 +24178 37454855 254 +24179 37455109 3632 +24180 37458741 254 +24181 37458995 3632 +24182 37462627 254 +24183 37462881 3632 +24184 37466513 254 +24185 37466767 3632 +24186 37470399 254 +24187 37470653 3632 +24188 37474285 254 +24189 37474539 3632 +24190 37478171 254 +24191 37478425 3632 +24192 37482057 2474 +24193 37484531 2474 +24194 37487005 7712 +24195 37494717 6116 +24196 37500833 6932 +24197 37507765 254 +24198 37508019 3632 +24199 37511651 254 +24200 37511905 3632 +24201 37515537 254 +24202 37515791 3632 +24203 37519423 254 +24204 37519677 3632 +24205 37523309 254 +24206 37523563 3632 +24207 37527195 254 +24208 37527449 3632 +24209 37531081 254 +24210 37531335 3632 +24211 37534967 254 +24212 37535221 3632 +24213 37538853 254 +24214 37539107 3632 +24215 37542739 254 +24216 37542993 3632 +24217 37546625 2474 +24218 37549099 2474 +24219 37551573 7712 +24220 37559285 6116 +24221 37565401 6932 +24222 37572333 254 +24223 37572587 3632 +24224 37576219 254 +24225 37576473 3632 +24226 37580105 254 +24227 37580359 3632 +24228 37583991 254 +24229 37584245 3632 +24230 37587877 254 +24231 37588131 3632 +24232 37591763 254 +24233 37592017 3632 +24234 37595649 254 +24235 37595903 3632 +24236 37599535 254 +24237 37599789 3632 +24238 37603421 254 +24239 37603675 3632 +24240 37607307 254 +24241 37607561 3632 +24242 37611193 2474 +24243 37613667 2474 +24244 37616141 7712 +24245 37623853 6116 +24246 37629969 6932 +24247 37636901 254 +24248 37637155 3632 +24249 37640787 254 +24250 37641041 3632 +24251 37644673 254 +24252 37644927 3632 +24253 37648559 254 +24254 37648813 3632 +24255 37652445 254 +24256 37652699 3632 +24257 37656331 254 +24258 37656585 3632 +24259 37660217 254 +24260 37660471 3632 +24261 37664103 254 +24262 37664357 3632 +24263 37667989 254 +24264 37668243 3632 +24265 37671875 254 +24266 37672129 3632 +24267 37675761 2474 +24268 37678235 2474 +24269 37680709 7712 +24270 37688421 6116 +24271 37694537 6932 +24272 37701469 254 +24273 37701723 3632 +24274 37705355 254 +24275 37705609 3632 +24276 37709241 254 +24277 37709495 3632 +24278 37713127 254 +24279 37713381 3632 +24280 37717013 254 +24281 37717267 3632 +24282 37720899 254 +24283 37721153 3632 +24284 37724785 254 +24285 37725039 3632 +24286 37728671 254 +24287 37728925 3632 +24288 37732557 254 +24289 37732811 3632 +24290 37736443 254 +24291 37736697 3632 +24292 37740329 2474 +24293 37742803 2474 +24294 37745277 7712 +24295 37752989 6116 +24296 37759105 6932 +24297 37766037 1418 +24298 37767455 1820 +24299 37769275 1238 +24300 37770513 722 +24301 37771235 566 +24302 37771801 296 +24303 37772097 296 +24304 37772393 494 +24305 37772887 2780 +24306 37775667 1628 +24307 37777295 2858 +24308 37780153 896 +24309 37781049 2264 +24310 37783313 2264 +24311 37785577 1693 +24312 37787270 1064 +24313 37788334 572 +24314 37788906 332 +24315 37789238 2162 +24316 37791400 2414 +24317 37793814 2414 +24318 37796228 2402 +24319 37798630 1022 +24320 37799652 2642 +24321 37802294 2600 +24322 37804894 2642 +24323 37807536 2618 +24324 37810154 2648 +24325 37812802 2588 +24326 37815390 2654 +24327 37818044 2612 +24328 37820656 2648 +24329 37823304 2612 +24330 37825916 2636 +24331 37828552 2612 +24332 37831164 2648 +24333 37833812 2612 +24334 37836424 2648 +24335 37839072 2600 +24336 37841672 1922 +24337 37843594 242 +24338 37843836 2192 +24339 37846028 2492 +24340 37848520 2492 +24341 37851012 2498 +24342 37853510 1226 +24343 37854736 2576 +24344 37857312 2594 +24345 37859906 2588 +24346 37862494 2654 +24347 37865148 2582 +24348 37867730 2612 +24349 37870342 2588 +24350 37872930 2654 +24351 37875584 2594 +24352 37878178 2606 +24353 37880784 2588 +24354 37883372 2642 +24355 37886014 2588 +24356 37888602 2612 +24357 37891214 2588 +24358 37893802 1682 +24359 37895484 1082 +24360 37896566 2474 +24361 37899040 2474 +24362 37901514 2456 +24363 37903970 2186 +24364 37906156 314 +24365 37906470 260 +24366 37906730 2570 +24367 37909300 2642 +24368 37911942 2594 +24369 37914536 2642 +24370 37917178 2594 +24371 37919772 2642 +24372 37922414 2594 +24373 37925008 2642 +24374 37927650 2576 +24375 37930226 2642 +24376 37932868 2582 +24377 37935450 2648 +24378 37938098 2594 +24379 37940692 2642 +24380 37943334 2588 +24381 37945922 2630 +24382 37948552 470 +24383 37949022 662 +24384 37949684 2474 +24385 37952158 2552 +24386 37954710 2552 +24387 37957262 2552 +24388 37959814 530 +24389 37960344 2582 +24390 37962926 2600 +24391 37965526 2582 +24392 37968108 2588 +24393 37970696 2588 +24394 37973284 2588 +24395 37975872 2588 +24396 37978460 2594 +24397 37981054 2588 +24398 37983642 2594 +24399 37986236 2594 +24400 37988830 2600 +24401 37991430 2576 +24402 37994006 2594 +24403 37996600 2588 +24404 37999188 2582 +24405 38001770 1796 +24406 38003566 2642 +24407 38006208 2576 +24408 38008784 2636 +24409 38011420 2576 +24410 38013996 2642 +24411 38016638 2576 +24412 38019214 2642 +24413 38021856 2576 +24414 38024432 2642 +24415 38027074 2570 +24416 38029644 2642 +24417 38032286 2576 +24418 38034862 2642 +24419 38037504 2576 +24420 38040080 2630 +24421 38042710 1790 +24422 38044500 2588 +24423 38047088 2588 +24424 38049676 2588 +24425 38052264 2588 +24426 38054852 2588 +24427 38057440 2588 +24428 38060028 2576 +24429 38062604 2588 +24430 38065192 2588 +24431 38067780 2582 +24432 38070362 2594 +24433 38072956 2582 +24434 38075538 2588 +24435 38078126 2588 +24436 38080714 2576 +24437 38083290 554 +24438 38083844 2588 +24439 38086432 2570 +24440 38089002 2594 +24441 38091596 2588 +24442 38094184 2594 +24443 38096778 2588 +24444 38099366 2648 +24445 38102014 2594 +24446 38104608 2606 +24447 38107214 2588 +24448 38109802 2606 +24449 38112408 2594 +24450 38115002 2612 +24451 38117614 2594 +24452 38120208 2612 +24453 38122820 1945 +24454 38124765 2594 +24455 38127359 2588 +24456 38129947 2612 +24457 38132559 2570 +24458 38135129 2648 +24459 38137777 2588 +24460 38140365 2648 +24461 38143013 2594 +24462 38145607 2648 +24463 38148255 2588 +24464 38150843 2588 +24465 38153431 2594 +24466 38156025 2612 +24467 38158637 2588 +24468 38161225 2600 +24469 38163825 2570 +24470 38166395 2101 +24471 38168496 572 +24472 38169068 2600 +24473 38171668 2588 +24474 38174256 2648 +24475 38176904 2588 +24476 38179492 2654 +24477 38182146 2588 +24478 38184734 2606 +24479 38187340 2594 +24480 38189934 2618 +24481 38192552 2582 +24482 38195134 2624 +24483 38197758 2594 +24484 38200352 2612 +24485 38202964 2594 +24486 38205558 2648 +24487 38208206 2594 +24488 38210800 1933 +24489 38212733 674 +24490 38213407 1490 +24491 38214897 1490 +24492 38216387 1478 +24493 38217865 764 +24494 38218629 2570 +24495 38221199 2612 +24496 38223811 2570 +24497 38226381 2642 +24498 38229023 2570 +24499 38231593 2582 +24500 38234175 2570 +24501 38236745 2606 +24502 38239351 2570 +24503 38241921 2600 +24504 38244521 2570 +24505 38247091 2588 +24506 38249679 2564 +24507 38252243 2600 +24508 38254843 2570 +24509 38257413 2618 +24510 38260031 2089 +24511 38262120 716 +24512 38262836 716 +24513 38263552 1082 +24514 38264634 2600 +24515 38267234 2588 +24516 38269822 2606 +24517 38272428 2594 +24518 38275022 2612 +24519 38277634 2594 +24520 38280228 2600 +24521 38282828 2594 +24522 38285422 2594 +24523 38288016 2588 +24524 38290604 2594 +24525 38293198 2588 +24526 38295786 2600 +24527 38298386 2588 +24528 38300974 2606 +24529 38303580 2576 +24530 38306156 1945 +24531 38308101 764 +24532 38308865 2612 +24533 38311477 2630 +24534 38314107 2594 +24535 38316701 2594 +24536 38319295 2606 +24537 38321901 2642 +24538 38324543 2654 +24539 38327197 2594 +24540 38329791 2654 +24541 38332445 2630 +24542 38335075 2654 +24543 38337729 2576 +24544 38340305 2618 +24545 38342923 2600 +24546 38345523 2588 +24547 38348111 2582 +24548 38350693 2077 +24549 38352770 584 +24550 38353354 584 +24551 38353938 1873 +24552 38355811 584 +24553 38356395 2594 +24554 38358989 2594 +24555 38361583 2594 +24556 38364177 2594 +24557 38366771 2642 +24558 38369413 2570 +24559 38371983 2600 +24560 38374583 2594 +24561 38377177 2600 +24562 38379777 2588 +24563 38382365 2606 +24564 38384971 2588 +24565 38387559 2600 +24566 38390159 2594 +24567 38392753 2576 +24568 38395329 2594 +24569 38397923 1945 +24570 38399868 572 +24571 38400440 1790 +24572 38402230 2576 +24573 38404806 2576 +24574 38407382 2576 +24575 38409958 2594 +24576 38412552 2612 +24577 38415164 2576 +24578 38417740 2600 +24579 38420340 2570 +24580 38422910 2594 +24581 38425504 2588 +24582 38428092 2594 +24583 38430686 2576 +24584 38433262 2600 +24585 38435862 2588 +24586 38438450 2600 +24587 38441050 2570 +24588 38443620 452 +24589 38444072 1004 +24590 38445076 1010 +24591 38446086 1010 +24592 38447096 1010 +24593 38448106 5893 +24594 38453999 296 +24595 38454295 2077 +24596 38456372 626 +24597 38456998 626 +24598 38457624 2594 +24599 38460218 2576 +24600 38462794 2588 +24601 38465382 2576 +24602 38467958 2594 +24603 38470552 2582 +24604 38473134 2588 +24605 38475722 2576 +24606 38478298 2582 +24607 38480880 2582 +24608 38483462 2594 +24609 38486056 2570 +24610 38488626 2576 +24611 38491202 2570 +24612 38493772 2558 +24613 38496330 2564 +24614 38498894 2090 +24615 38500984 464 +24616 38501448 596 +24617 38502044 818 +24618 38502862 938 +24619 38503800 938 +24620 38504738 932 +24621 38505670 637 +24622 38506307 626 +24623 38506933 626 +24624 38507559 2576 +24625 38510135 2576 +24626 38512711 2576 +24627 38515287 2558 +24628 38517845 2576 +24629 38520421 2588 +24630 38523009 2576 +24631 38525585 2588 +24632 38528173 2570 +24633 38530743 2588 +24634 38533331 2576 +24635 38535907 2600 +24636 38538507 2576 +24637 38541083 2588 +24638 38543671 2570 +24639 38546241 626 +24640 38546867 1202 +24641 38548069 1202 +24642 38549271 1202 +24643 38550473 1202 +24644 38551675 116 +24645 38551791 2564 +24646 38554355 2576 +24647 38556931 2570 +24648 38559501 2588 +24649 38562089 2570 +24650 38564659 2576 +24651 38567235 2570 +24652 38569805 2570 +24653 38572375 2570 +24654 38574945 2570 +24655 38577515 2570 +24656 38580085 2564 +24657 38582649 2570 +24658 38585219 2570 +24659 38587789 2564 +24660 38590353 1178 +24661 38591531 1184 +24662 38592715 2498 +24663 38595213 2498 +24664 38597711 2498 +24665 38600209 2222 +24666 38602431 266 +24667 38602697 2576 +24668 38605273 2576 +24669 38607849 2576 +24670 38610425 2576 +24671 38613001 2576 +24672 38615577 2576 +24673 38618153 2582 +24674 38620735 2576 +24675 38623311 2588 +24676 38625899 2576 +24677 38628475 2582 +24678 38631057 2570 +24679 38633627 2576 +24680 38636203 2576 +24681 38638779 1946 +24682 38640725 1958 +24683 38642683 2654 +24684 38645337 2654 +24685 38647991 2654 +24686 38650645 1826 +24687 38652471 1886 +24688 38654357 2540 +24689 38656897 2540 +24690 38659437 2528 +24691 38661965 1664 +24692 38663629 2582 +24693 38666211 2564 +24694 38668775 2576 +24695 38671351 2576 +24696 38673927 2576 +24697 38676503 2564 +24698 38679067 2570 +24699 38681637 2570 +24700 38684207 2582 +24701 38686789 2570 +24702 38689359 2570 +24703 38691929 2564 +24704 38694493 2558 +24705 38697051 2564 +24706 38699615 1688 +24707 38701303 722 +24708 38702025 2648 +24709 38704673 2648 +24710 38707321 2654 +24711 38709975 2378 +24712 38712353 722 +24713 38713075 2564 +24714 38715639 2564 +24715 38718203 2564 +24716 38720767 2564 +24717 38723331 2582 +24718 38725913 2564 +24719 38728477 2564 +24720 38731041 2570 +24721 38733611 2570 +24722 38736181 2576 +24723 38738757 2576 +24724 38741333 2570 +24725 38743903 2564 +24726 38746467 2564 +24727 38749031 6037 +24728 38755068 2138 +24729 38757206 2498 +24730 38759704 2498 +24731 38762202 2498 +24732 38764700 1214 +24733 38765914 1916 +24734 38767830 2468 +24735 38770298 2468 +24736 38772766 2468 +24737 38775234 1100 +24738 38776334 2552 +24739 38778886 2564 +24740 38781450 2576 +24741 38784026 2564 +24742 38786590 2576 +24743 38789166 2564 +24744 38791730 2576 +24745 38794306 2570 +24746 38796876 2576 +24747 38799452 2570 +24748 38802022 2576 +24749 38804598 2564 +24750 38807162 2582 +24751 38809744 2564 +24752 38812308 2570 +24753 38814878 3152 +24754 38818030 1256 +24755 38819286 2342 +24756 38821628 2342 +24757 38823970 2342 +24758 38826312 1712 +24759 38828024 1772 +24760 38829796 2192 +24761 38831988 2012 +24762 38834000 1826 +24763 38835826 602 +24764 38836428 2570 +24765 38838998 2564 +24766 38841562 2630 +24767 38844192 2564 +24768 38846756 2582 +24769 38849338 2564 +24770 38851902 2630 +24771 38854532 2570 +24772 38857102 2582 +24773 38859684 2570 +24774 38862254 2636 +24775 38864890 2576 +24776 38867466 2582 +24777 38870048 2564 +24778 38872612 2624 +24779 38875236 4454 +24780 38879690 3577 +24781 38883267 1808 +24782 38885075 1946 +24783 38887021 1946 +24784 38888967 1946 +24785 38890913 1946 +24786 38892859 2624 +24787 38895483 2570 +24788 38898053 2642 +24789 38900695 2570 +24790 38903265 2606 +24791 38905871 2588 +24792 38908459 2636 +24793 38911095 2576 +24794 38913671 2642 +24795 38916313 2576 +24796 38918889 2636 +24797 38921525 2570 +24798 38924095 2594 +24799 38926689 2570 +24800 38929259 2582 +24801 38931841 2570 +24802 38934411 4454 +24803 38938865 158 +24804 38939023 152 +24805 38939175 152 +24806 38939327 158 +24807 38939485 3961 +24808 38943446 806 +24809 38944252 1610 +24810 38945862 1610 +24811 38947472 1610 +24812 38949082 1118 +24813 38950200 1118 +24814 38951318 1118 +24815 38952436 1118 +24816 38953554 1118 +24817 38954672 1118 +24818 38955790 1118 +24819 38956908 1118 +24820 38958026 4460 +24821 38962486 386 +24822 38962872 1448 +24823 38964320 1358 +24824 38965678 386 +24825 38966064 1118 +24826 38967182 518 +24827 38967700 1328 +24828 38969028 1328 +24829 38970356 1328 +24830 38971684 1328 +24831 38973012 1328 +24832 38974340 1328 +24833 38975668 1328 +24834 38976996 1328 +24835 38978324 4454 +24836 38982778 206 +24837 38982984 314 +24838 38983298 314 +24839 38983612 314 +24840 38983926 308 +24841 38984234 1772 +24842 38986006 944 +24843 38986950 944 +24844 38987894 944 +24845 38988838 944 +24846 38989782 428 +24847 38990210 1472 +24848 38991682 800 +24849 38992482 2294 +24850 38994776 2300 +24851 38997076 2300 +24852 38999376 2006 +24853 39001382 2486 +24854 39003868 818 +24855 39004686 3650 +24856 39008336 3650 +24857 39011986 3650 +24858 39015636 1490 +24859 39017126 590 +24860 39017716 602 +24861 39018318 602 +24862 39018920 596 +24863 39019516 1478 +24864 39020994 704 +24865 39021698 1088 +24866 39022786 1088 +24867 39023874 1088 +24868 39024962 1472 +24869 39026434 2264 +24870 39028698 1478 +24871 39030176 704 +24872 39030880 704 +24873 39031584 704 +24874 39032288 1202 +24875 39033490 2378 +24876 39035868 458 +24877 39036326 476 +24878 39036802 476 +24879 39037278 674 +24880 39037952 980 +24881 39038932 1028 +24882 39039960 1028 +24883 39040988 1640 +24884 39042628 1076 +24885 39043704 1082 +24886 39044786 1256 +24887 39046042 1076 +24888 39047118 1082 +24889 39048200 1256 +24890 39049456 1076 +24891 39050532 1082 +24892 39051614 1256 +24893 39052870 1076 +24894 39053946 1082 +24895 39055028 1256 +24896 39056284 1076 +24897 39057360 1082 +24898 39058442 1256 +24899 39059698 1076 +24900 39060774 1082 +24901 39061856 1256 +24902 39063112 1076 +24903 39064188 1082 +24904 39065270 1256 +24905 39066526 1076 +24906 39067602 1082 +24907 39068684 1256 +24908 39069940 1076 +24909 39071016 1082 +24910 39072098 1256 +24911 39073354 1076 +24912 39074430 1082 +24913 39075512 1256 +24914 39076768 1076 +24915 39077844 1082 +24916 39078926 1256 +24917 39080182 1076 +24918 39081258 1082 +24919 39082340 1256 +24920 39083596 1076 +24921 39084672 1082 +24922 39085754 1256 +24923 39087010 1076 +24924 39088086 1082 +24925 39089168 1256 +24926 39090424 1076 +24927 39091500 1082 +24928 39092582 1256 +24929 39093838 1076 +24930 39094914 1082 +24931 39095996 1256 +24932 39097252 1076 +24933 39098328 1082 +24934 39099410 1256 +24935 39100666 1076 +24936 39101742 1082 +24937 39102824 1256 +24938 39104080 1076 +24939 39105156 1082 +24940 39106238 1256 +24941 39107494 1076 +24942 39108570 1082 +24943 39109652 1256 +24944 39110908 1076 +24945 39111984 1082 +24946 39113066 1256 +24947 39114322 1076 +24948 39115398 1082 +24949 39116480 1256 +24950 39117736 1076 +24951 39118812 1082 +24952 39119894 1256 +24953 39121150 1076 +24954 39122226 1082 +24955 39123308 1256 +24956 39124564 1076 +24957 39125640 1082 +24958 39126722 1256 +24959 39127978 1076 +24960 39129054 1082 +24961 39130136 1256 +24962 39131392 1076 +24963 39132468 1082 +24964 39133550 1256 +24965 39134806 1076 +24966 39135882 1082 +24967 39136964 1256 +24968 39138220 1076 +24969 39139296 1082 +24970 39140378 1256 +24971 39141634 1076 +24972 39142710 1082 +24973 39143792 1256 +24974 39145048 1076 +24975 39146124 1082 +24976 39147206 1256 +24977 39148462 1076 +24978 39149538 1082 +24979 39150620 1256 +24980 39151876 1076 +24981 39152952 1082 +24982 39154034 1256 +24983 39155290 1076 +24984 39156366 1082 +24985 39157448 1256 +24986 39158704 1076 +24987 39159780 1082 +24988 39160862 1256 +24989 39162118 1076 +24990 39163194 1082 +24991 39164276 1256 +24992 39165532 1076 +24993 39166608 1082 +24994 39167690 1256 +24995 39168946 1076 +24996 39170022 1082 +24997 39171104 1256 +24998 39172360 1076 +24999 39173436 1082 +25000 39174518 1256 +25001 39175774 1076 +25002 39176850 1082 +25003 39177932 1256 +25004 39179188 1076 +25005 39180264 1082 +25006 39181346 1256 +25007 39182602 1076 +25008 39183678 1082 +25009 39184760 1256 +25010 39186016 1076 +25011 39187092 1082 +25012 39188174 1256 +25013 39189430 1076 +25014 39190506 1082 +25015 39191588 1256 +25016 39192844 1076 +25017 39193920 1082 +25018 39195002 1256 +25019 39196258 1076 +25020 39197334 1082 +25021 39198416 1256 +25022 39199672 1076 +25023 39200748 1082 +25024 39201830 1256 +25025 39203086 1076 +25026 39204162 1082 +25027 39205244 1256 +25028 39206500 1076 +25029 39207576 1082 +25030 39208658 1256 +25031 39209914 1076 +25032 39210990 1082 +25033 39212072 1256 +25034 39213328 1076 +25035 39214404 1082 +25036 39215486 1256 +25037 39216742 1076 +25038 39217818 1082 +25039 39218900 1256 +25040 39220156 1076 +25041 39221232 1082 +25042 39222314 1256 +25043 39223570 1076 +25044 39224646 1082 +25045 39225728 1256 +25046 39226984 1076 +25047 39228060 1082 +25048 39229142 1256 +25049 39230398 1076 +25050 39231474 1082 +25051 39232556 1256 +25052 39233812 1076 +25053 39234888 1082 +25054 39235970 1256 +25055 39237226 1076 +25056 39238302 1082 +25057 39239384 1256 +25058 39240640 1076 +25059 39241716 1082 +25060 39242798 1256 +25061 39244054 1076 +25062 39245130 1082 +25063 39246212 1256 +25064 39247468 1226 +25065 39248694 4550 +25066 39253244 2888 +25067 39256132 3092 +25068 39259224 4052 +25069 39263276 1274 +25070 39264550 1340 +25071 39265890 1298 +25072 39267188 1412 +25073 39268600 1280 +25074 39269880 80 +25075 39269960 1340 +25076 39271300 1298 +25077 39272598 1412 +25078 39274010 1280 +25079 39275290 80 +25080 39275370 1166 +25081 39276536 1214 +25082 39277750 1328 +25083 39279078 1166 +25084 39280244 1214 +25085 39281458 1328 +25086 39282786 1166 +25087 39283952 1214 +25088 39285166 1328 +25089 39286494 1166 +25090 39287660 1214 +25091 39288874 1328 +25092 39290202 1166 +25093 39291368 1214 +25094 39292582 1328 +25095 39293910 1166 +25096 39295076 1214 +25097 39296290 1328 +25098 39297618 1166 +25099 39298784 1214 +25100 39299998 1328 +25101 39301326 1166 +25102 39302492 1214 +25103 39303706 1328 +25104 39305034 1166 +25105 39306200 1214 +25106 39307414 1328 +25107 39308742 1166 +25108 39309908 1214 +25109 39311122 1328 +25110 39312450 1166 +25111 39313616 1214 +25112 39314830 1328 +25113 39316158 1166 +25114 39317324 1214 +25115 39318538 1328 +25116 39319866 1166 +25117 39321032 1214 +25118 39322246 1328 +25119 39323574 1166 +25120 39324740 1214 +25121 39325954 1328 +25122 39327282 1166 +25123 39328448 1214 +25124 39329662 1328 +25125 39330990 1166 +25126 39332156 1214 +25127 39333370 1328 +25128 39334698 1166 +25129 39335864 1214 +25130 39337078 1328 +25131 39338406 1166 +25132 39339572 1214 +25133 39340786 1328 +25134 39342114 1166 +25135 39343280 1214 +25136 39344494 1328 +25137 39345822 1166 +25138 39346988 1214 +25139 39348202 1328 +25140 39349530 1166 +25141 39350696 1214 +25142 39351910 1328 +25143 39353238 1166 +25144 39354404 1214 +25145 39355618 1328 +25146 39356946 1166 +25147 39358112 1214 +25148 39359326 1328 +25149 39360654 1166 +25150 39361820 1214 +25151 39363034 1328 +25152 39364362 1166 +25153 39365528 1214 +25154 39366742 1328 +25155 39368070 1166 +25156 39369236 1214 +25157 39370450 1328 +25158 39371778 1166 +25159 39372944 1214 +25160 39374158 1328 +25161 39375486 1166 +25162 39376652 1214 +25163 39377866 1328 +25164 39379194 1166 +25165 39380360 1214 +25166 39381574 1328 +25167 39382902 1166 +25168 39384068 1214 +25169 39385282 1328 +25170 39386610 1166 +25171 39387776 1214 +25172 39388990 1328 +25173 39390318 1166 +25174 39391484 1214 +25175 39392698 1328 +25176 39394026 1166 +25177 39395192 1214 +25178 39396406 1328 +25179 39397734 1166 +25180 39398900 1214 +25181 39400114 1328 +25182 39401442 1166 +25183 39402608 1214 +25184 39403822 1328 +25185 39405150 1166 +25186 39406316 1214 +25187 39407530 1328 +25188 39408858 1166 +25189 39410024 1214 +25190 39411238 1328 +25191 39412566 1166 +25192 39413732 1214 +25193 39414946 1328 +25194 39416274 1166 +25195 39417440 1214 +25196 39418654 1328 +25197 39419982 1166 +25198 39421148 1214 +25199 39422362 1328 +25200 39423690 1166 +25201 39424856 1214 +25202 39426070 1328 +25203 39427398 1166 +25204 39428564 1214 +25205 39429778 1328 +25206 39431106 1166 +25207 39432272 1214 +25208 39433486 1328 +25209 39434814 1166 +25210 39435980 1214 +25211 39437194 1328 +25212 39438522 1166 +25213 39439688 1214 +25214 39440902 1328 +25215 39442230 1166 +25216 39443396 1214 +25217 39444610 1328 +25218 39445938 1166 +25219 39447104 1214 +25220 39448318 1328 +25221 39449646 1166 +25222 39450812 1214 +25223 39452026 1328 +25224 39453354 1166 +25225 39454520 1214 +25226 39455734 1328 +25227 39457062 1166 +25228 39458228 1214 +25229 39459442 1328 +25230 39460770 1166 +25231 39461936 1214 +25232 39463150 1328 +25233 39464478 1166 +25234 39465644 1214 +25235 39466858 1328 +25236 39468186 1166 +25237 39469352 1214 +25238 39470566 1328 +25239 39471894 1166 +25240 39473060 1214 +25241 39474274 1328 +25242 39475602 1166 +25243 39476768 1214 +25244 39477982 1328 +25245 39479310 1166 +25246 39480476 1214 +25247 39481690 1328 +25248 39483018 1166 +25249 39484184 1214 +25250 39485398 1328 +25251 39486726 1166 +25252 39487892 1214 +25253 39489106 1328 +25254 39490434 1166 +25255 39491600 1214 +25256 39492814 1328 +25257 39494142 1166 +25258 39495308 1214 +25259 39496522 1328 +25260 39497850 746 +25261 39498596 830 +25262 39499426 3530 +25263 39502956 2834 +25264 39505790 1466 +25265 39507256 1586 +25266 39508842 440 +25267 39509282 440 +25268 39509722 440 +25269 39510162 446 +25270 39510608 446 +25271 39511054 446 +25272 39511500 428 +25273 39511928 422 +25274 39512350 434 +25275 39512784 788 +25276 39513572 728 +25277 39514300 626 +25278 39514926 626 +25279 39515552 224 +25280 39515776 530 +25281 39516306 68 +25282 39516374 68 +25283 39516442 770 +25284 39517212 770 +25285 39517982 770 +25286 39518752 770 +25287 39519522 770 +25288 39520292 770 +25289 39521062 3620 +25290 39524682 3620 +25291 39528302 3620 +25292 39531922 3620 +25293 39535542 3620 +25294 39539162 3620 +25295 39542782 4688 +25296 39547470 4688 +25297 39552158 4688 +25298 39556846 4688 +25299 39561534 4688 +25300 39566222 4688 +25301 39570910 2366 +25302 39573276 2366 +25303 39575642 2366 +25304 39578008 2366 +25305 39580374 2366 +25306 39582740 2366 +25307 39585106 1346 +25308 39586452 1346 +25309 39587798 1346 +25310 39589144 1346 +25311 39590490 1346 +25312 39591836 1346 +25313 39593182 2120 +25314 39595302 2120 +25315 39597422 2120 +25316 39599542 2120 +25317 39601662 2120 +25318 39603782 2120 +25319 39605902 896 +25320 39606798 896 +25321 39607694 896 +25322 39608590 896 +25323 39609486 896 +25324 39610382 896 +25325 39611278 896 +25326 39612174 896 +25327 39613070 896 +25328 39613966 896 +25329 39614862 896 +25330 39615758 2414 +25331 39618172 2414 +25332 39620586 2414 +25333 39623000 2414 +25334 39625414 2414 +25335 39627828 2414 +25336 39630242 896 +25337 39631138 1430 +25338 39632568 3110 +25339 39635678 2960 +25340 39638638 3194 +25341 39641832 2822 +25342 39644654 2822 +25343 39647476 2822 +25344 39650298 1736 +25345 39652034 716 +25346 39652750 494 +25347 39653244 494 +25348 39653738 494 +25349 39654232 494 +25350 39654726 494 +25351 39655220 494 +25352 39655714 494 +25353 39656208 494 +25354 39656702 494 +25355 39657196 872 +25356 39658068 2678 +25357 39660746 1376 +25358 39662122 572 +25359 39662694 4436 +25360 39667130 950 +25361 39668080 470 +25362 39668550 464 +25363 39669014 2510 +25364 39671524 692 +25365 39672216 1184 +25366 39673400 1148 +25367 39674548 2708 +25368 39677256 1328 +25369 39678584 1322 +25370 39679906 2084 +25371 39681990 968 +25372 39682958 1100 +25373 39684058 1004 +25374 39685062 1064 +25375 39686126 3392 +25376 39689518 3392 +25377 39692910 3386 +25378 39696296 3386 +25379 39699682 1856 +25380 39701538 1880 +25381 39703418 7412 +25382 39710830 464 +25383 39711294 452 +25384 39711746 452 +25385 39712198 596 +25386 39712794 1550 +25387 39714344 1550 +25388 39715894 1550 +25389 39717444 1550 +25390 39718994 1550 +25391 39720544 1550 +25392 39722094 1550 +25393 39723644 1550 +25394 39725194 1550 +25395 39726744 1550 +25396 39728294 1550 +25397 39729844 1550 +25398 39731394 428 +25399 39731822 116 +25400 39731938 1094 +25401 39733032 770 +25402 39733802 770 +25403 39734572 734 +25404 39735306 158 +25405 39735464 332 +25406 39735796 332 +25407 39736128 332 +25408 39736460 344 +25409 39736804 332 +25410 39737136 740 +25411 39737876 740 +25412 39738616 428 +25413 39739044 2882 +25414 39741926 2036 +25415 39743962 2078 +25416 39746040 2078 +25417 39748118 1208 +25418 39749326 1118 +25419 39750444 440 +25420 39750884 1646 +25421 39752530 2312 +25422 39754842 2312 +25423 39757154 2552 +25424 39759706 2552 +25425 39762258 1442 +25426 39763700 1988 +25427 39765688 1982 +25428 39767670 2030 +25429 39769700 1970 +25430 39771670 1970 +25431 39773640 3086 +25432 39776726 3116 +25433 39779842 698 +25434 39780540 770 +25435 39781310 770 +25436 39782080 1130 +25437 39783210 1106 +25438 39784316 812 +25439 39785128 818 +25440 39785946 806 +25441 39786752 806 +25442 39787558 956 +25443 39788514 920 +25444 39789434 854 +25445 39790288 1268 +25446 39791556 932 +25447 39792488 614 +25448 39793102 932 +25449 39794034 614 +25450 39794648 950 +25451 39795598 614 +25452 39796212 950 +25453 39797162 614 +25454 39797776 1184 +25455 39798960 1040 +25456 39800000 92 +25457 39800092 704 +25458 39800796 680 +25459 39801476 1634 +25460 39803110 1574 +25461 39804684 1406 +25462 39806090 1400 +25463 39807490 1532 +25464 39809022 1532 +25465 39810554 1532 +25466 39812086 1532 +25467 39813618 3656 +25468 39817274 662 +25469 39817936 2138 +25470 39820074 1970 +25471 39822044 1970 +25472 39824014 1970 +25473 39825984 1970 +25474 39827954 1970 +25475 39829924 1970 +25476 39831894 1880 +25477 39833774 848 +25478 39834622 848 +25479 39835470 848 +25480 39836318 848 +25481 39837166 848 +25482 39838014 848 +25483 39838862 848 +25484 39839710 1970 +25485 39841680 1970 +25486 39843650 1970 +25487 39845620 1970 +25488 39847590 1970 +25489 39849560 1970 +25490 39851530 1880 +25491 39853410 848 +25492 39854258 848 +25493 39855106 848 +25494 39855954 848 +25495 39856802 848 +25496 39857650 848 +25497 39858498 848 +25498 39859346 1970 +25499 39861316 1970 +25500 39863286 1970 +25501 39865256 1970 +25502 39867226 1970 +25503 39869196 1970 +25504 39871166 1880 +25505 39873046 848 +25506 39873894 848 +25507 39874742 848 +25508 39875590 848 +25509 39876438 848 +25510 39877286 848 +25511 39878134 848 +25512 39878982 1970 +25513 39880952 1970 +25514 39882922 1970 +25515 39884892 1970 +25516 39886862 1970 +25517 39888832 1970 +25518 39890802 1880 +25519 39892682 848 +25520 39893530 848 +25521 39894378 848 +25522 39895226 848 +25523 39896074 848 +25524 39896922 848 +25525 39897770 848 +25526 39898618 1970 +25527 39900588 1970 +25528 39902558 1970 +25529 39904528 1970 +25530 39906498 1970 +25531 39908468 1970 +25532 39910438 1880 +25533 39912318 848 +25534 39913166 848 +25535 39914014 848 +25536 39914862 848 +25537 39915710 848 +25538 39916558 848 +25539 39917406 848 +25540 39918254 1970 +25541 39920224 1970 +25542 39922194 1970 +25543 39924164 1970 +25544 39926134 1970 +25545 39928104 1970 +25546 39930074 1880 +25547 39931954 848 +25548 39932802 848 +25549 39933650 848 +25550 39934498 848 +25551 39935346 848 +25552 39936194 848 +25553 39937042 848 +25554 39937890 1970 +25555 39939860 1970 +25556 39941830 1970 +25557 39943800 1970 +25558 39945770 1970 +25559 39947740 1970 +25560 39949710 1880 +25561 39951590 848 +25562 39952438 848 +25563 39953286 848 +25564 39954134 848 +25565 39954982 848 +25566 39955830 848 +25567 39956678 848 +25568 39957526 1970 +25569 39959496 1970 +25570 39961466 1970 +25571 39963436 1970 +25572 39965406 1970 +25573 39967376 1970 +25574 39969346 1880 +25575 39971226 848 +25576 39972074 848 +25577 39972922 848 +25578 39973770 848 +25579 39974618 848 +25580 39975466 848 +25581 39976314 848 +25582 39977162 1970 +25583 39979132 1970 +25584 39981102 1970 +25585 39983072 1970 +25586 39985042 1970 +25587 39987012 1970 +25588 39988982 1880 +25589 39990862 848 +25590 39991710 848 +25591 39992558 848 +25592 39993406 848 +25593 39994254 848 +25594 39995102 848 +25595 39995950 848 +25596 39996798 1970 +25597 39998768 1970 +25598 40000738 1970 +25599 40002708 1970 +25600 40004678 1970 +25601 40006648 1970 +25602 40008618 1880 +25603 40010498 848 +25604 40011346 848 +25605 40012194 848 +25606 40013042 848 +25607 40013890 848 +25608 40014738 848 +25609 40015586 848 +25610 40016434 1970 +25611 40018404 1970 +25612 40020374 1970 +25613 40022344 1970 +25614 40024314 1970 +25615 40026284 1970 +25616 40028254 1880 +25617 40030134 848 +25618 40030982 848 +25619 40031830 848 +25620 40032678 848 +25621 40033526 848 +25622 40034374 848 +25623 40035222 848 +25624 40036070 1970 +25625 40038040 1970 +25626 40040010 1970 +25627 40041980 1970 +25628 40043950 1970 +25629 40045920 1970 +25630 40047890 1880 +25631 40049770 848 +25632 40050618 848 +25633 40051466 848 +25634 40052314 848 +25635 40053162 848 +25636 40054010 848 +25637 40054858 848 +25638 40055706 1970 +25639 40057676 1970 +25640 40059646 1970 +25641 40061616 1970 +25642 40063586 1970 +25643 40065556 1970 +25644 40067526 1880 +25645 40069406 848 +25646 40070254 848 +25647 40071102 848 +25648 40071950 848 +25649 40072798 848 +25650 40073646 848 +25651 40074494 848 +25652 40075342 1970 +25653 40077312 1970 +25654 40079282 1970 +25655 40081252 1970 +25656 40083222 1970 +25657 40085192 1970 +25658 40087162 1880 +25659 40089042 848 +25660 40089890 848 +25661 40090738 848 +25662 40091586 848 +25663 40092434 848 +25664 40093282 848 +25665 40094130 848 +25666 40094978 1970 +25667 40096948 1970 +25668 40098918 1970 +25669 40100888 1970 +25670 40102858 1970 +25671 40104828 1970 +25672 40106798 1880 +25673 40108678 848 +25674 40109526 848 +25675 40110374 848 +25676 40111222 848 +25677 40112070 848 +25678 40112918 848 +25679 40113766 848 +25680 40114614 1970 +25681 40116584 1970 +25682 40118554 1970 +25683 40120524 1970 +25684 40122494 1970 +25685 40124464 1970 +25686 40126434 1880 +25687 40128314 848 +25688 40129162 848 +25689 40130010 848 +25690 40130858 848 +25691 40131706 848 +25692 40132554 848 +25693 40133402 848 +25694 40134250 1970 +25695 40136220 1970 +25696 40138190 1970 +25697 40140160 1970 +25698 40142130 1970 +25699 40144100 1970 +25700 40146070 1880 +25701 40147950 848 +25702 40148798 848 +25703 40149646 848 +25704 40150494 848 +25705 40151342 848 +25706 40152190 848 +25707 40153038 848 +25708 40153886 1970 +25709 40155856 1970 +25710 40157826 1970 +25711 40159796 1970 +25712 40161766 1970 +25713 40163736 1970 +25714 40165706 1880 +25715 40167586 848 +25716 40168434 848 +25717 40169282 848 +25718 40170130 848 +25719 40170978 848 +25720 40171826 848 +25721 40172674 848 +25722 40173522 1970 +25723 40175492 1970 +25724 40177462 1970 +25725 40179432 1970 +25726 40181402 1970 +25727 40183372 1970 +25728 40185342 1880 +25729 40187222 848 +25730 40188070 848 +25731 40188918 848 +25732 40189766 848 +25733 40190614 848 +25734 40191462 848 +25735 40192310 848 +25736 40193158 1970 +25737 40195128 1970 +25738 40197098 1970 +25739 40199068 1970 +25740 40201038 1970 +25741 40203008 1970 +25742 40204978 1880 +25743 40206858 848 +25744 40207706 848 +25745 40208554 848 +25746 40209402 848 +25747 40210250 848 +25748 40211098 848 +25749 40211946 848 +25750 40212794 1970 +25751 40214764 1970 +25752 40216734 1970 +25753 40218704 1970 +25754 40220674 1970 +25755 40222644 1970 +25756 40224614 1880 +25757 40226494 848 +25758 40227342 848 +25759 40228190 848 +25760 40229038 848 +25761 40229886 848 +25762 40230734 848 +25763 40231582 848 +25764 40232430 1970 +25765 40234400 1970 +25766 40236370 1970 +25767 40238340 1970 +25768 40240310 1970 +25769 40242280 1970 +25770 40244250 1880 +25771 40246130 848 +25772 40246978 848 +25773 40247826 848 +25774 40248674 848 +25775 40249522 848 +25776 40250370 848 +25777 40251218 848 +25778 40252066 1970 +25779 40254036 1970 +25780 40256006 1970 +25781 40257976 1970 +25782 40259946 1970 +25783 40261916 1970 +25784 40263886 1880 +25785 40265766 848 +25786 40266614 848 +25787 40267462 848 +25788 40268310 848 +25789 40269158 848 +25790 40270006 848 +25791 40270854 848 +25792 40271702 1970 +25793 40273672 1970 +25794 40275642 1970 +25795 40277612 1970 +25796 40279582 1970 +25797 40281552 1970 +25798 40283522 1880 +25799 40285402 848 +25800 40286250 848 +25801 40287098 848 +25802 40287946 848 +25803 40288794 848 +25804 40289642 848 +25805 40290490 848 +25806 40291338 1970 +25807 40293308 1970 +25808 40295278 1970 +25809 40297248 1970 +25810 40299218 1970 +25811 40301188 1970 +25812 40303158 1880 +25813 40305038 848 +25814 40305886 848 +25815 40306734 848 +25816 40307582 848 +25817 40308430 848 +25818 40309278 848 +25819 40310126 848 +25820 40310974 1970 +25821 40312944 1970 +25822 40314914 1970 +25823 40316884 1970 +25824 40318854 1970 +25825 40320824 1970 +25826 40322794 1880 +25827 40324674 848 +25828 40325522 848 +25829 40326370 848 +25830 40327218 848 +25831 40328066 848 +25832 40328914 848 +25833 40329762 848 +25834 40330610 1970 +25835 40332580 1970 +25836 40334550 1970 +25837 40336520 1970 +25838 40338490 1970 +25839 40340460 1970 +25840 40342430 1880 +25841 40344310 848 +25842 40345158 848 +25843 40346006 848 +25844 40346854 848 +25845 40347702 848 +25846 40348550 848 +25847 40349398 848 +25848 40350246 1970 +25849 40352216 1970 +25850 40354186 1970 +25851 40356156 1970 +25852 40358126 1970 +25853 40360096 1970 +25854 40362066 1880 +25855 40363946 848 +25856 40364794 848 +25857 40365642 848 +25858 40366490 848 +25859 40367338 848 +25860 40368186 848 +25861 40369034 848 +25862 40369882 1970 +25863 40371852 1970 +25864 40373822 1970 +25865 40375792 1970 +25866 40377762 1970 +25867 40379732 1970 +25868 40381702 1880 +25869 40383582 848 +25870 40384430 848 +25871 40385278 848 +25872 40386126 848 +25873 40386974 848 +25874 40387822 848 +25875 40388670 848 +25876 40389518 1970 +25877 40391488 1970 +25878 40393458 1970 +25879 40395428 1970 +25880 40397398 1970 +25881 40399368 1970 +25882 40401338 1880 +25883 40403218 848 +25884 40404066 848 +25885 40404914 848 +25886 40405762 848 +25887 40406610 848 +25888 40407458 848 +25889 40408306 848 +25890 40409154 1970 +25891 40411124 1970 +25892 40413094 1970 +25893 40415064 1970 +25894 40417034 1970 +25895 40419004 1970 +25896 40420974 1880 +25897 40422854 848 +25898 40423702 848 +25899 40424550 848 +25900 40425398 848 +25901 40426246 848 +25902 40427094 848 +25903 40427942 848 +25904 40428790 1970 +25905 40430760 1970 +25906 40432730 1970 +25907 40434700 1970 +25908 40436670 1970 +25909 40438640 1970 +25910 40440610 1880 +25911 40442490 848 +25912 40443338 848 +25913 40444186 848 +25914 40445034 848 +25915 40445882 848 +25916 40446730 848 +25917 40447578 848 +25918 40448426 1970 +25919 40450396 1970 +25920 40452366 1970 +25921 40454336 1970 +25922 40456306 1970 +25923 40458276 1970 +25924 40460246 1880 +25925 40462126 848 +25926 40462974 848 +25927 40463822 848 +25928 40464670 848 +25929 40465518 848 +25930 40466366 848 +25931 40467214 848 +25932 40468062 1970 +25933 40470032 1970 +25934 40472002 1970 +25935 40473972 1970 +25936 40475942 1970 +25937 40477912 1970 +25938 40479882 1880 +25939 40481762 848 +25940 40482610 848 +25941 40483458 848 +25942 40484306 848 +25943 40485154 848 +25944 40486002 848 +25945 40486850 848 +25946 40487698 1970 +25947 40489668 1970 +25948 40491638 1970 +25949 40493608 1970 +25950 40495578 1970 +25951 40497548 1970 +25952 40499518 1880 +25953 40501398 848 +25954 40502246 848 +25955 40503094 848 +25956 40503942 848 +25957 40504790 848 +25958 40505638 848 +25959 40506486 848 +25960 40507334 1970 +25961 40509304 1970 +25962 40511274 1970 +25963 40513244 1970 +25964 40515214 1970 +25965 40517184 1970 +25966 40519154 1880 +25967 40521034 848 +25968 40521882 848 +25969 40522730 848 +25970 40523578 848 +25971 40524426 848 +25972 40525274 848 +25973 40526122 848 +25974 40526970 1970 +25975 40528940 1970 +25976 40530910 1970 +25977 40532880 1970 +25978 40534850 1970 +25979 40536820 1970 +25980 40538790 1880 +25981 40540670 848 +25982 40541518 848 +25983 40542366 848 +25984 40543214 848 +25985 40544062 848 +25986 40544910 848 +25987 40545758 848 +25988 40546606 1970 +25989 40548576 1970 +25990 40550546 1970 +25991 40552516 1970 +25992 40554486 1970 +25993 40556456 1970 +25994 40558426 1880 +25995 40560306 848 +25996 40561154 848 +25997 40562002 848 +25998 40562850 848 +25999 40563698 848 +26000 40564546 848 +26001 40565394 848 +26002 40566242 1970 +26003 40568212 1970 +26004 40570182 1970 +26005 40572152 1970 +26006 40574122 1970 +26007 40576092 1970 +26008 40578062 1880 +26009 40579942 848 +26010 40580790 848 +26011 40581638 848 +26012 40582486 848 +26013 40583334 848 +26014 40584182 848 +26015 40585030 848 +26016 40585878 1970 +26017 40587848 1970 +26018 40589818 1970 +26019 40591788 1970 +26020 40593758 1970 +26021 40595728 1970 +26022 40597698 1880 +26023 40599578 848 +26024 40600426 848 +26025 40601274 848 +26026 40602122 848 +26027 40602970 848 +26028 40603818 848 +26029 40604666 848 +26030 40605514 1970 +26031 40607484 1970 +26032 40609454 1970 +26033 40611424 1970 +26034 40613394 1970 +26035 40615364 1970 +26036 40617334 1880 +26037 40619214 848 +26038 40620062 848 +26039 40620910 848 +26040 40621758 848 +26041 40622606 848 +26042 40623454 848 +26043 40624302 848 +26044 40625150 1970 +26045 40627120 1970 +26046 40629090 1970 +26047 40631060 1970 +26048 40633030 1970 +26049 40635000 1970 +26050 40636970 1880 +26051 40638850 848 +26052 40639698 848 +26053 40640546 848 +26054 40641394 848 +26055 40642242 848 +26056 40643090 848 +26057 40643938 848 +26058 40644786 1970 +26059 40646756 1970 +26060 40648726 1970 +26061 40650696 1970 +26062 40652666 1970 +26063 40654636 1970 +26064 40656606 1880 +26065 40658486 848 +26066 40659334 848 +26067 40660182 848 +26068 40661030 848 +26069 40661878 848 +26070 40662726 848 +26071 40663574 848 +26072 40664422 1970 +26073 40666392 1970 +26074 40668362 1970 +26075 40670332 1970 +26076 40672302 1970 +26077 40674272 1970 +26078 40676242 1880 +26079 40678122 848 +26080 40678970 848 +26081 40679818 848 +26082 40680666 848 +26083 40681514 848 +26084 40682362 848 +26085 40683210 848 +26086 40684058 1970 +26087 40686028 1970 +26088 40687998 1970 +26089 40689968 1970 +26090 40691938 1970 +26091 40693908 1970 +26092 40695878 1880 +26093 40697758 848 +26094 40698606 848 +26095 40699454 848 +26096 40700302 848 +26097 40701150 848 +26098 40701998 848 +26099 40702846 848 +26100 40703694 1970 +26101 40705664 1970 +26102 40707634 1970 +26103 40709604 1970 +26104 40711574 1970 +26105 40713544 1970 +26106 40715514 1880 +26107 40717394 848 +26108 40718242 848 +26109 40719090 848 +26110 40719938 848 +26111 40720786 848 +26112 40721634 848 +26113 40722482 848 +26114 40723330 1970 +26115 40725300 1970 +26116 40727270 1970 +26117 40729240 1970 +26118 40731210 1970 +26119 40733180 1970 +26120 40735150 1880 +26121 40737030 848 +26122 40737878 848 +26123 40738726 848 +26124 40739574 848 +26125 40740422 848 +26126 40741270 848 +26127 40742118 848 +26128 40742966 1970 +26129 40744936 1970 +26130 40746906 1970 +26131 40748876 1970 +26132 40750846 1970 +26133 40752816 1970 +26134 40754786 1880 +26135 40756666 848 +26136 40757514 848 +26137 40758362 848 +26138 40759210 848 +26139 40760058 848 +26140 40760906 848 +26141 40761754 848 +26142 40762602 1970 +26143 40764572 1970 +26144 40766542 1970 +26145 40768512 1970 +26146 40770482 1970 +26147 40772452 1970 +26148 40774422 1880 +26149 40776302 848 +26150 40777150 848 +26151 40777998 848 +26152 40778846 848 +26153 40779694 848 +26154 40780542 848 +26155 40781390 848 +26156 40782238 1970 +26157 40784208 1970 +26158 40786178 1970 +26159 40788148 1970 +26160 40790118 1970 +26161 40792088 1970 +26162 40794058 1880 +26163 40795938 848 +26164 40796786 848 +26165 40797634 848 +26166 40798482 848 +26167 40799330 848 +26168 40800178 848 +26169 40801026 848 +26170 40801874 1970 +26171 40803844 1970 +26172 40805814 1970 +26173 40807784 1970 +26174 40809754 1970 +26175 40811724 1970 +26176 40813694 1880 +26177 40815574 848 +26178 40816422 848 +26179 40817270 848 +26180 40818118 848 +26181 40818966 848 +26182 40819814 848 +26183 40820662 848 +26184 40821510 1970 +26185 40823480 1970 +26186 40825450 1970 +26187 40827420 1970 +26188 40829390 1970 +26189 40831360 1970 +26190 40833330 1880 +26191 40835210 848 +26192 40836058 848 +26193 40836906 848 +26194 40837754 848 +26195 40838602 848 +26196 40839450 848 +26197 40840298 848 +26198 40841146 1970 +26199 40843116 1970 +26200 40845086 1970 +26201 40847056 1970 +26202 40849026 1970 +26203 40850996 1970 +26204 40852966 1880 +26205 40854846 848 +26206 40855694 848 +26207 40856542 848 +26208 40857390 848 +26209 40858238 848 +26210 40859086 848 +26211 40859934 848 +26212 40860782 1970 +26213 40862752 1970 +26214 40864722 1970 +26215 40866692 1970 +26216 40868662 1970 +26217 40870632 1970 +26218 40872602 1880 +26219 40874482 848 +26220 40875330 848 +26221 40876178 848 +26222 40877026 848 +26223 40877874 848 +26224 40878722 848 +26225 40879570 848 +26226 40880418 1970 +26227 40882388 1970 +26228 40884358 1970 +26229 40886328 1970 +26230 40888298 1970 +26231 40890268 1970 +26232 40892238 1880 +26233 40894118 848 +26234 40894966 848 +26235 40895814 848 +26236 40896662 848 +26237 40897510 848 +26238 40898358 848 +26239 40899206 848 +26240 40900054 1970 +26241 40902024 1970 +26242 40903994 1970 +26243 40905964 1970 +26244 40907934 1970 +26245 40909904 1970 +26246 40911874 1880 +26247 40913754 848 +26248 40914602 848 +26249 40915450 848 +26250 40916298 848 +26251 40917146 848 +26252 40917994 848 +26253 40918842 848 +26254 40919690 1970 +26255 40921660 1970 +26256 40923630 1970 +26257 40925600 1970 +26258 40927570 1970 +26259 40929540 1970 +26260 40931510 1880 +26261 40933390 848 +26262 40934238 848 +26263 40935086 848 +26264 40935934 848 +26265 40936782 848 +26266 40937630 848 +26267 40938478 848 +26268 40939326 1970 +26269 40941296 1970 +26270 40943266 1970 +26271 40945236 1970 +26272 40947206 1970 +26273 40949176 1970 +26274 40951146 1880 +26275 40953026 848 +26276 40953874 848 +26277 40954722 848 +26278 40955570 848 +26279 40956418 848 +26280 40957266 848 +26281 40958114 848 +26282 40958962 1970 +26283 40960932 1970 +26284 40962902 1970 +26285 40964872 1970 +26286 40966842 1970 +26287 40968812 1970 +26288 40970782 1880 +26289 40972662 848 +26290 40973510 848 +26291 40974358 848 +26292 40975206 848 +26293 40976054 848 +26294 40976902 848 +26295 40977750 848 +26296 40978598 1970 +26297 40980568 1970 +26298 40982538 1970 +26299 40984508 1970 +26300 40986478 1970 +26301 40988448 1970 +26302 40990418 1880 +26303 40992298 848 +26304 40993146 848 +26305 40993994 848 +26306 40994842 848 +26307 40995690 848 +26308 40996538 848 +26309 40997386 848 +26310 40998234 614 +26311 40998848 614 +26312 40999462 614 +26313 41000076 614 +26314 41000690 614 +26315 41001304 680 +26316 41001984 596 +26317 41002580 590 +26318 41003170 764 +26319 41003934 746 +26320 41004680 746 +26321 41005426 386 +26322 41005812 1058 +26323 41006870 1058 +26324 41007928 1058 +26325 41008986 1058 +26326 41010044 1058 +26327 41011102 1058 +26328 41012160 1058 +26329 41013218 1058 +26330 41014276 1058 +26331 41015334 1058 +26332 41016392 1058 +26333 41017450 1058 +26334 41018508 1058 +26335 41019566 1058 +26336 41020624 1058 +26337 41021682 1058 +26338 41022740 1058 +26339 41023798 1058 +26340 41024856 1058 +26341 41025914 1058 +26342 41026972 1058 +26343 41028030 1058 +26344 41029088 1058 +26345 41030146 1058 +26346 41031204 368 +26347 41031572 356 +26348 41031928 2048 +26349 41033976 1262 +26350 41035238 1262 +26351 41036500 1262 +26352 41037762 404 +26353 41038166 608 +26354 41038774 590 +26355 41039364 2456 +26356 41041820 2456 +26357 41044276 1052 +26358 41045328 1922 +26359 41047250 1490 +26360 41048740 1472 +26361 41050212 1484 +26362 41051696 1490 +26363 41053186 1490 +26364 41054676 1478 +26365 41056154 374 +26366 41056528 1508 +26367 41058036 1508 +26368 41059544 674 +26369 41060218 3272 +26370 41063490 3278 +26371 41066768 3320 +26372 41070088 3068 +26373 41073156 3068 +26374 41076224 3068 +26375 41079292 3068 +26376 41082360 3050 +26377 41085410 3026 +26378 41088436 1436 +26379 41089872 1436 +26380 41091308 3170 +26381 41094478 1958 +26382 41096436 1652 +26383 41098088 3674 +26384 41101762 3122 +26385 41104884 1958 +26386 41106842 1646 +26387 41108488 3662 +26388 41112150 3170 +26389 41115320 1958 +26390 41117278 1700 +26391 41118978 3656 +26392 41122634 3212 +26393 41125846 62 +26394 41125908 3182 +26395 41129090 1004 +26396 41130094 1004 +26397 41131098 3176 +26398 41134274 2450 +26399 41136724 1190 +26400 41137914 2588 +26401 41140502 2348 +26402 41142850 2348 +26403 41145198 4034 +26404 41149232 3656 +26405 41152888 3656 +26406 41156544 350 +26407 41156894 50 +26408 41156944 2228 +26409 41159172 2210 +26410 41161382 2216 +26411 41163598 2126 +26412 41165724 524 +26413 41166248 524 +26414 41166772 2180 +26415 41168952 2174 +26416 41171126 1256 +26417 41172382 1262 +26418 41173644 746 +26419 41174390 122 +26420 41174512 2660 +26421 41177172 2660 +26422 41179832 1676 +26423 41181508 1796 +26424 41183304 3854 +26425 41187158 3854 +26426 41191012 1202 +26427 41192214 2618 +26428 41194832 1820 +26429 41196652 506 +26430 41197158 506 +26431 41197664 1598 +26432 41199262 1268 +26433 41200530 1178 +26434 41201708 950 +26435 41202658 1118 +26436 41203776 1550 +26437 41205326 1352 +26438 41206678 1232 +26439 41207910 1088 +26440 41208998 1136 +26441 41210134 782 +26442 41210916 1040 +26443 41211956 836 +26444 41212792 596 +26445 41213388 482 +26446 41213870 770 +26447 41214640 872 +26448 41215512 596 +26449 41216108 776 +26450 41216884 296 +26451 41217180 902 +26452 41218082 884 +26453 41218966 578 +26454 41219544 584 +26455 41220128 932 +26456 41221060 440 +26457 41221500 728 +26458 41222228 254 +26459 41222482 578 +26460 41223060 464 +26461 41223524 356 +26462 41223880 266 +26463 41224146 2240 +26464 41226386 2138 +26465 41228524 2696 +26466 41231220 2696 +26467 41233916 2684 +26468 41236600 2684 +26469 41239284 1982 +26470 41241266 1946 +26471 41243212 1940 +26472 41245152 1940 +26473 41247092 458 +26474 41247550 458 +26475 41248008 2708 +26476 41250716 6733 +26477 41257449 1994 +26478 41259443 1994 +26479 41261437 2306 +26480 41263743 2270 +26481 41266013 1076 +26482 41267089 1664 +26483 41268753 1970 +26484 41270723 1160 +26485 41271883 872 +26486 41272755 1070 +26487 41273825 1742 +26488 41275567 1742 +26489 41277309 1742 +26490 41279051 1742 +26491 41280793 128 +26492 41280921 1634 +26493 41282555 1316 +26494 41283871 1298 +26495 41285169 1298 +26496 41286467 1316 +26497 41287783 1724 +26498 41289507 1730 +26499 41291237 1298 +26500 41292535 1316 +26501 41293851 1316 +26502 41295167 1298 +26503 41296465 1730 +26504 41298195 98 +26505 41298293 614 +26506 41298907 560 +26507 41299467 560 +26508 41300027 1184 +26509 41301211 1106 +26510 41302317 692 +26511 41303009 2036 +26512 41305045 1178 +26513 41306223 1178 +26514 41307401 1178 +26515 41308579 1178 +26516 41309757 1988 +26517 41311745 1988 +26518 41313733 944 +26519 41314677 836 +26520 41315513 1094 +26521 41316607 1550 +26522 41318157 1592 +26523 41319749 1538 +26524 41321287 68 +26525 41321355 1748 +26526 41323103 1298 +26527 41324401 1316 +26528 41325717 1736 +26529 41327453 1316 +26530 41328769 1298 +26531 41330067 1748 +26532 41331815 1748 +26533 41333563 1748 +26534 41335311 5444 +26535 41340755 290 +26536 41341045 554 +26537 41341599 422 +26538 41342021 5204 +26539 41347225 596 +26540 41347821 422 +26541 41348243 272 +26542 41348515 836 +26543 41349351 1214 +26544 41350565 758 +26545 41351323 2600 +26546 41353923 758 +26547 41354681 2600 +26548 41357281 758 +26549 41358039 2600 +26550 41360639 758 +26551 41361397 2600 +26552 41363997 758 +26553 41364755 2600 +26554 41367355 758 +26555 41368113 2600 +26556 41370713 758 +26557 41371471 2600 +26558 41374071 758 +26559 41374829 2600 +26560 41377429 758 +26561 41378187 2600 +26562 41380787 758 +26563 41381545 2600 +26564 41384145 758 +26565 41384903 2600 +26566 41387503 758 +26567 41388261 2600 +26568 41390861 758 +26569 41391619 2600 +26570 41394219 758 +26571 41394977 2600 +26572 41397577 758 +26573 41398335 2600 +26574 41400935 758 +26575 41401693 2600 +26576 41404293 758 +26577 41405051 2600 +26578 41407651 758 +26579 41408409 2600 +26580 41411009 758 +26581 41411767 2600 +26582 41414367 758 +26583 41415125 2600 +26584 41417725 758 +26585 41418483 2600 +26586 41421083 758 +26587 41421841 2600 +26588 41424441 758 +26589 41425199 2600 +26590 41427799 758 +26591 41428557 2600 +26592 41431157 758 +26593 41431915 2600 +26594 41434515 758 +26595 41435273 2600 +26596 41437873 758 +26597 41438631 2600 +26598 41441231 758 +26599 41441989 2600 +26600 41444589 758 +26601 41445347 2600 +26602 41447947 758 +26603 41448705 2600 +26604 41451305 1010 +26605 41452315 1028 +26606 41453343 458 +26607 41453801 182 +26608 41453983 1418 +26609 41455401 704 +26610 41456105 704 +26611 41456809 680 +26612 41457489 680 +26613 41458169 170 +26614 41458339 2120 +26615 41460459 3158 +26616 41463617 848 +26617 41464465 656 +26618 41465121 830 +26619 41465951 1160 +26620 41467111 752 +26621 41467863 932 +26622 41468795 2546 +26623 41471341 824 +26624 41472165 1346 +26625 41473511 2912 +26626 41476423 536 +26627 41476959 1598 +26628 41478557 1112 +26629 41479669 1730 +26630 41481399 638 +26631 41482037 374 +26632 41482411 1034 +26633 41483445 848 +26634 41484293 554 +26635 41484847 590 +26636 41485437 890 +26637 41486327 914 +26638 41487241 872 +26639 41488113 680 +26640 41488793 1106 +26641 41489899 2708 +26642 41492607 2804 +26643 41495411 2600 +26644 41498011 2114 +26645 41500125 1664 +26646 41501789 1916 +26647 41503705 1238 +26648 41504943 752 +26649 41505695 614 +26650 41506309 518 +26651 41506827 836 +26652 41507663 1430 +26653 41509093 2426 +26654 41511519 1424 +26655 41512943 1574 +26656 41514517 1868 +26657 41516385 1784 +26658 41518169 734 +26659 41518903 2876 +26660 41521779 3512 +26661 41525291 932 +26662 41526223 2372 +26663 41528595 1496 +26664 41530091 1148 +26665 41531239 740 +26666 41531979 890 +26667 41532869 1214 +26668 41534083 1100 +26669 41535183 3032 +26670 41538215 1358 +26671 41539573 1484 +26672 41541057 560 +26673 41541617 2120 +26674 41543737 3158 +26675 41546895 848 +26676 41547743 656 +26677 41548399 830 +26678 41549229 1160 +26679 41550389 752 +26680 41551141 932 +26681 41552073 2546 +26682 41554619 824 +26683 41555443 1346 +26684 41556789 2912 +26685 41559701 536 +26686 41560237 560 +26687 41560797 1598 +26688 41562395 1112 +26689 41563507 1730 +26690 41565237 638 +26691 41565875 374 +26692 41566249 1034 +26693 41567283 848 +26694 41568131 554 +26695 41568685 590 +26696 41569275 890 +26697 41570165 914 +26698 41571079 872 +26699 41571951 680 +26700 41572631 1106 +26701 41573737 2708 +26702 41576445 2804 +26703 41579249 2600 +26704 41581849 2114 +26705 41583963 1664 +26706 41585627 2060 +26707 41587687 1238 +26708 41588925 752 +26709 41589677 614 +26710 41590291 518 +26711 41590809 836 +26712 41591645 1430 +26713 41593075 2516 +26714 41595591 1424 +26715 41597015 1574 +26716 41598589 1868 +26717 41600457 1784 +26718 41602241 734 +26719 41602975 2876 +26720 41605851 3512 +26721 41609363 932 +26722 41610295 2372 +26723 41612667 1496 +26724 41614163 1148 +26725 41615311 740 +26726 41616051 890 +26727 41616941 1214 +26728 41618155 1100 +26729 41619255 3032 +26730 41622287 1358 +26731 41623645 1484 +26732 41625129 2120 +26733 41627249 3158 +26734 41630407 848 +26735 41631255 656 +26736 41631911 830 +26737 41632741 1160 +26738 41633901 752 +26739 41634653 932 +26740 41635585 2546 +26741 41638131 824 +26742 41638955 1346 +26743 41640301 2912 +26744 41643213 536 +26745 41643749 560 +26746 41644309 1598 +26747 41645907 1112 +26748 41647019 1730 +26749 41648749 638 +26750 41649387 374 +26751 41649761 1034 +26752 41650795 848 +26753 41651643 554 +26754 41652197 590 +26755 41652787 890 +26756 41653677 914 +26757 41654591 872 +26758 41655463 680 +26759 41656143 1106 +26760 41657249 2708 +26761 41659957 2804 +26762 41662761 2600 +26763 41665361 2114 +26764 41667475 1664 +26765 41669139 1916 +26766 41671055 1238 +26767 41672293 752 +26768 41673045 614 +26769 41673659 518 +26770 41674177 836 +26771 41675013 1430 +26772 41676443 2426 +26773 41678869 1424 +26774 41680293 1574 +26775 41681867 1868 +26776 41683735 1784 +26777 41685519 734 +26778 41686253 2876 +26779 41689129 3512 +26780 41692641 932 +26781 41693573 2372 +26782 41695945 1496 +26783 41697441 1148 +26784 41698589 740 +26785 41699329 890 +26786 41700219 1214 +26787 41701433 1100 +26788 41702533 3032 +26789 41705565 1358 +26790 41706923 1484 +26791 41708407 434 +26792 41708841 410 +26793 41709251 200 +26794 41709451 614 +26795 41710065 1058 +26796 41711123 1058 +26797 41712181 656 +26798 41712837 2084 +26799 41714921 2036 +26800 41716957 818 +26801 41717775 770 +26802 41718545 848 +26803 41719393 2318 +26804 41721711 2612 +26805 41724323 2612 +26806 41726935 2612 +26807 41729547 3440 +26808 41732987 1148 +26809 41734135 590 +26810 41734725 548 +26811 41735273 50 +26812 41735323 3440 +26813 41738763 50 +26814 41738813 602 +26815 41739415 566 +26816 41739981 3824 +26817 41743805 500 +26818 41744305 3440 +26819 41747745 3434 +26820 41751179 836 +26821 41752015 590 +26822 41752605 554 +26823 41753159 50 +26824 41753209 50 +26825 41753259 584 +26826 41753843 554 +26827 41754397 500 +26828 41754897 3824 +26829 41758721 3434 +26830 41762155 638 +26831 41762793 584 +26832 41763377 62 +26833 41763439 3446 +26834 41766885 62 +26835 41766947 584 +26836 41767531 584 +26837 41768115 1580 +26838 41769695 1532 +26839 41771227 1232 +26840 41772459 1232 +26841 41773691 3434 +26842 41777125 1580 +26843 41778705 638 +26844 41779343 584 +26845 41779927 50 +26846 41779977 3446 +26847 41783423 50 +26848 41783473 590 +26849 41784063 584 +26850 41784647 1700 +26851 41786347 902 +26852 41787249 902 +26853 41788151 986 +26854 41789137 986 +26855 41790123 980 +26856 41791103 986 +26857 41792089 986 +26858 41793075 980 +26859 41794055 752 +26860 41794807 752 +26861 41795559 752 +26862 41796311 3308 +26863 41799619 2114 +26864 41801733 3308 +26865 41805041 2114 +26866 41807155 2030 +26867 41809185 2006 +26868 41811191 1982 +26869 41813173 2006 +26870 41815179 2000 +26871 41817179 1664 +26872 41818843 350 +26873 41819193 998 +26874 41820191 992 +26875 41821183 1004 +26876 41822187 1004 +26877 41823191 1004 +26878 41824195 1778 +26879 41825973 1778 +26880 41827751 1106 +26881 41828857 1586 +26882 41830443 1940 +26883 41832383 2774 +26884 41835157 2774 +26885 41837931 2816 +26886 41840747 2744 +26887 41843491 926 +26888 41844417 926 +26889 41845343 902 +26890 41846245 950 +26891 41847195 1370 +26892 41848565 1340 +26893 41849905 1376 +26894 41851281 878 +26895 41852159 872 +26896 41853031 878 +26897 41853909 890 +26898 41854799 314 +26899 41855113 320 +26900 41855433 326 +26901 41855759 308 +26902 41856067 320 +26903 41856387 308 +26904 41856695 1172 +26905 41857867 2390 +26906 41860257 2432 +26907 41862689 2276 +26908 41864965 2312 +26909 41867277 1670 +26910 41868947 2336 +26911 41871283 1550 +26912 41872833 1484 +26913 41874317 284 +26914 41874601 1520 +26915 41876121 1520 +26916 41877641 1502 +26917 41879143 1514 +26918 41880657 1028 +26919 41881685 1028 +26920 41882713 1028 +26921 41883741 1028 +26922 41884769 1028 +26923 41885797 1028 +26924 41886825 1028 +26925 41887853 1034 +26926 41888887 1034 +26927 41889921 1034 +26928 41890955 1034 +26929 41891989 1034 +26930 41893023 1034 +26931 41894057 1034 +26932 41895091 1034 +26933 41896125 1034 +26934 41897159 1034 +26935 41898193 1034 +26936 41899227 1034 +26937 41900261 1034 +26938 41901295 1034 +26939 41902329 1178 +26940 41903507 1760 +26941 41905267 1178 +26942 41906445 1178 +26943 41907623 1178 +26944 41908801 1178 +26945 41909979 1178 +26946 41911157 1178 +26947 41912335 1178 +26948 41913513 1178 +26949 41914691 1178 +26950 41915869 1178 +26951 41917047 1178 +26952 41918225 1178 +26953 41919403 1178 +26954 41920581 1178 +26955 41921759 1178 +26956 41922937 1178 +26957 41924115 1178 +26958 41925293 1178 +26959 41926471 1178 +26960 41927649 1178 +26961 41928827 1178 +26962 41930005 1178 +26963 41931183 1178 +26964 41932361 1178 +26965 41933539 1178 +26966 41934717 1178 +26967 41935895 1178 +26968 41937073 1178 +26969 41938251 1178 +26970 41939429 1178 +26971 41940607 1178 +26972 41941785 1178 +26973 41942963 1178 +26974 41944141 1178 +26975 41945319 1178 +26976 41946497 1178 +26977 41947675 3074 +26978 41950749 3074 +26979 41953823 3080 +26980 41956903 3080 +26981 41959983 3080 +26982 41963063 3080 +26983 41966143 3038 +26984 41969181 3092 +26985 41972273 992 +26986 41973265 1184 +26987 41974449 1142 +26988 41975591 716 +26989 41976307 2450 +26990 41978757 2450 +26991 41981207 2384 +26992 41983591 2378 +26993 41985969 116 +26994 41986085 548 +26995 41986633 548 +26996 41987181 2126 +26997 41989307 2168 +26998 41991475 38 +26999 41991513 842 +27000 41992355 2384 +27001 41994739 2384 +27002 41997123 2384 +27003 41999507 2384 +27004 42001891 2384 +27005 42004275 2384 +27006 42006659 716 +27007 42007375 872 +27008 42008247 866 +27009 42009113 890 +27010 42010003 1592 +27011 42011595 1598 +27012 42013193 620 +27013 42013813 620 +27014 42014433 1322 +27015 42015755 2162 +27016 42017917 1586 +27017 42019503 1568 +27018 42021071 1772 +27019 42022843 632 +27020 42023475 1772 +27021 42025247 1502 +27022 42026749 1478 +27023 42028227 854 +27024 42029081 878 +27025 42029959 848 +27026 42030807 872 +27027 42031679 1784 +27028 42033463 734 +27029 42034197 692 +27030 42034889 278 +27031 42035167 1922 +27032 42037089 5618 +27033 42042707 5618 +27034 42048325 1658 +27035 42049983 248 +27036 42050231 212 +27037 42050443 248 +27038 42050691 212 +27039 42050903 248 +27040 42051151 212 +27041 42051363 1646 +27042 42053009 1406 +27043 42054415 1190 +27044 42055605 1646 +27045 42057251 1406 +27046 42058657 1190 +27047 42059847 1646 +27048 42061493 1406 +27049 42062899 1190 +27050 42064089 2204 +27051 42066293 2192 +27052 42068485 2216 +27053 42070701 2210 +27054 42072911 80 +27055 42072991 758 +27056 42073749 566 +27057 42074315 1190 +27058 42075505 1454 +27059 42076959 1454 +27060 42078413 950 +27061 42079363 926 +27062 42080289 722 +27063 42081011 740 +27064 42081751 1070 +27065 42082821 68 +27066 42082889 1412 +27067 42084301 68 +27068 42084369 1412 +27069 42085781 1922 +27070 42087703 962 +27071 42088665 860 +27072 42089525 860 +27073 42090385 860 +27074 42091245 860 +27075 42092105 1052 +27076 42093157 1412 +27077 42094569 1400 +27078 42095969 548 +27079 42096517 548 +27080 42097065 548 +27081 42097613 2180 +27082 42099793 2096 +27083 42101889 1550 +27084 42103439 1550 +27085 42104989 1550 +27086 42106539 722 +27087 42107261 722 +27088 42107983 926 +27089 42108909 896 +27090 42109805 962 +27091 42110767 956 +27092 42111723 6206 +27093 42117929 11833 +27094 42129762 11833 +27095 42141595 6206 +27096 42147801 6206 +27097 42154007 11833 +27098 42165840 6206 +27099 42172046 11833 +27100 42183879 878 +27101 42184757 2234 +27102 42186991 878 +27103 42187869 2234 +27104 42190103 878 +27105 42190981 2234 +27106 42193215 878 +27107 42194093 2234 +27108 42196327 1034 +27109 42197361 1034 +27110 42198395 1400 +27111 42199795 1298 +27112 42201093 350 +27113 42201443 350 +27114 42201793 2354 +27115 42204147 1124 +27116 42205271 1118 +27117 42206389 1244 +27118 42207633 1238 +27119 42208871 668 +27120 42209539 668 +27121 42210207 1244 +27122 42211451 1268 +27123 42212719 1226 +27124 42213945 1220 +27125 42215165 722 +27126 42215887 776 +27127 42216663 374 +27128 42217037 470 +27129 42217507 2768 +27130 42220275 2768 +27131 42223043 2768 +27132 42225811 2780 +27133 42228591 2768 +27134 42231359 2768 +27135 42234127 2768 +27136 42236895 2780 +27137 42239675 2768 +27138 42242443 2768 +27139 42245211 2768 +27140 42247979 2780 +27141 42250759 1424 +27142 42252183 1646 +27143 42253829 710 +27144 42254539 710 +27145 42255249 704 +27146 42255953 758 +27147 42256711 1250 +27148 42257961 254 +27149 42258215 248 +27150 42258463 494 +27151 42258957 494 +27152 42259451 494 +27153 42259945 494 +27154 42260439 494 +27155 42260933 494 +27156 42261427 494 +27157 42261921 494 +27158 42262415 494 +27159 42262909 548 +27160 42263457 2954 +27161 42266411 2960 +27162 42269371 2936 +27163 42272307 2930 +27164 42275237 1868 +27165 42277105 2288 +27166 42279393 3686 +27167 42283079 3686 +27168 42286765 3686 +27169 42290451 3686 +27170 42294137 668 +27171 42294805 668 +27172 42295473 1160 +27173 42296633 1100 +27174 42297733 1322 +27175 42299055 1322 +27176 42300377 1322 +27177 42301699 1322 +27178 42303021 1322 +27179 42304343 1322 +27180 42305665 1322 +27181 42306987 1322 +27182 42308309 662 +27183 42308971 662 +27184 42309633 1700 +27185 42311333 1712 +27186 42313045 1400 +27187 42314445 1394 +27188 42315839 704 +27189 42316543 698 +27190 42317241 4304 +27191 42321545 4304 +27192 42325849 4304 +27193 42330153 4304 +27194 42334457 704 +27195 42335161 704 +27196 42335865 704 +27197 42336569 836 +27198 42337405 1052 +27199 42338457 1946 +27200 42340403 1994 +27201 42342397 1994 +27202 42344391 1994 +27203 42346385 4874 +27204 42351259 1304 +27205 42352563 1244 +27206 42353807 788 +27207 42354595 122 +27208 42354717 1040 +27209 42355757 56 +27210 42355813 578 +27211 42356391 560 +27212 42356951 1790 +27213 42358741 758 +27214 42359499 1304 +27215 42360803 1874 +27216 42362677 3230 +27217 42365907 2618 +27218 42368525 2618 +27219 42371143 2618 +27220 42373761 2618 +27221 42376379 2162 +27222 42378541 2162 +27223 42380703 2162 +27224 42382865 2162 +27225 42385027 2126 +27226 42387153 1220 +27227 42388373 4232 +27228 42392605 1802 +27229 42394407 788 +27230 42395195 788 +27231 42395983 788 +27232 42396771 806 +27233 42397577 542 +27234 42398119 128 +27235 42398247 536 +27236 42398783 86 +27237 42398869 44 +27238 42398913 2540 +27239 42401453 1496 +27240 42402949 884 +27241 42403833 1316 +27242 42405149 1532 +27243 42406681 878 +27244 42407559 878 +27245 42408437 1712 +27246 42410149 776 +27247 42410925 680 +27248 42411605 584 +27249 42412189 764 +27250 42412953 170 +27251 42413123 170 +27252 42413293 170 +27253 42413463 3421 +27254 42416884 3662 +27255 42420546 2654 +27256 42423200 2396 +27257 42425596 110 +27258 42425706 2414 +27259 42428120 2240 +27260 42430360 3481 +27261 42433841 3680 +27262 42437521 2654 +27263 42440175 2396 +27264 42442571 110 +27265 42442681 2414 +27266 42445095 2240 +27267 42447335 62 +27268 42447397 2558 +27269 42449955 890 +27270 42450845 1802 +27271 42452647 1802 +27272 42454449 1802 +27273 42456251 1802 +27274 42458053 1730 +27275 42459783 1730 +27276 42461513 2300 +27277 42463813 2786 +27278 42466599 1016 +27279 42467615 1004 +27280 42468619 1082 +27281 42469701 1094 +27282 42470795 1100 +27283 42471895 1088 +27284 42472983 1376 +27285 42474359 2378 +27286 42476737 2378 +27287 42479115 2378 +27288 42481493 2378 +27289 42483871 3362 +27290 42487233 692 +27291 42487925 350 +27292 42488275 872 +27293 42489147 308 +27294 42489455 1910 +27295 42491365 1898 +27296 42493263 2030 +27297 42495293 2030 +27298 42497323 2462 +27299 42499785 2462 +27300 42502247 2168 +27301 42504415 2174 +27302 42506589 2588 +27303 42509177 2576 +27304 42511753 1010 +27305 42512763 1022 +27306 42513785 536 +27307 42514321 2918 +27308 42517239 2918 +27309 42520157 2918 +27310 42523075 2918 +27311 42525993 2918 +27312 42528911 2918 +27313 42531829 506 +27314 42532335 332 +27315 42532667 722 +27316 42533389 650 +27317 42534039 422 +27318 42534461 710 +27319 42535171 650 +27320 42535821 596 +27321 42536417 146 +27322 42536563 848 +27323 42537411 830 +27324 42538241 1058 +27325 42539299 1106 +27326 42540405 740 +27327 42541145 704 +27328 42541849 740 +27329 42542589 1094 +27330 42543683 914 +27331 42544597 1364 +27332 42545961 2678 +27333 42548639 2678 +27334 42551317 2678 +27335 42553995 2678 +27336 42556673 2678 +27337 42559351 2678 +27338 42562029 2678 +27339 42564707 2678 +27340 42567385 2678 +27341 42570063 2678 +27342 42572741 2678 +27343 42575419 2678 +27344 42578097 3344 +27345 42581441 3320 +27346 42584761 3320 +27347 42588081 3320 +27348 42591401 3836 +27349 42595237 746 +27350 42595983 608 +27351 42596591 506 +27352 42597097 860 +27353 42597957 2090 +27354 42600047 104 +27355 42600151 1550 +27356 42601701 1538 +27357 42603239 974 +27358 42604213 1034 +27359 42605247 1034 +27360 42606281 1034 +27361 42607315 1010 +27362 42608325 1412 +27363 42609737 776 +27364 42610513 3860 +27365 42614373 902 +27366 42615275 3860 +27367 42619135 902 +27368 42620037 3860 +27369 42623897 902 +27370 42624799 3860 +27371 42628659 902 +27372 42629561 1034 +27373 42630595 1046 +27374 42631641 1982 +27375 42633623 1952 +27376 42635575 1742 +27377 42637317 1586 +27378 42638903 284 +27379 42639187 284 +27380 42639471 176 +27381 42639647 158 +27382 42639805 2114 +27383 42641919 950 +27384 42642869 482 +27385 42643351 1532 +27386 42644883 470 +27387 42645353 1538 +27388 42646891 1532 +27389 42648423 542 +27390 42648965 542 +27391 42649507 350 +27392 42649857 704 +27393 42650561 704 +27394 42651265 350 +27395 42651615 704 +27396 42652319 704 +27397 42653023 308 +27398 42653331 3980 +27399 42657311 3980 +27400 42661291 356 +27401 42661647 608 +27402 42662255 1028 +27403 42663283 1430 +27404 42664713 140 +27405 42664853 1430 +27406 42666283 140 +27407 42666423 2222 +27408 42668645 2144 +27409 42670789 1790 +27410 42672579 1778 +27411 42674357 1538 +27412 42675895 1538 +27413 42677433 1538 +27414 42678971 1100 +27415 42680071 1796 +27416 42681867 1544 +27417 42683411 560 +27418 42683971 1190 +27419 42685161 1190 +27420 42686351 1196 +27421 42687547 1196 +27422 42688743 4580 +27423 42693323 4580 +27424 42697903 1550 +27425 42699453 704 +27426 42700157 2162 +27427 42702319 698 +27428 42703017 674 +27429 42703691 896 +27430 42704587 860 +27431 42705447 866 +27432 42706313 4478 +27433 42710791 1202 +27434 42711993 470 +27435 42712463 1238 +27436 42713701 458 +27437 42714159 2042 +27438 42716201 1910 +27439 42718111 1916 +27440 42720027 1868 +27441 42721895 1748 +27442 42723643 50 +27443 42723693 860 +27444 42724553 872 +27445 42725425 872 +27446 42726297 1304 +27447 42727601 1298 +27448 42728899 1250 +27449 42730149 1298 +27450 42731447 200 +27451 42731647 1304 +27452 42732951 1298 +27453 42734249 1250 +27454 42735499 1298 +27455 42736797 200 +27456 42736997 4628 +27457 42741625 5996 +27458 42747621 1394 +27459 42749015 1796 +27460 42750811 1784 +27461 42752595 734 +27462 42753329 734 +27463 42754063 842 +27464 42754905 824 +27465 42755729 2648 +27466 42758377 4628 +27467 42763005 4628 +27468 42767633 2114 +27469 42769747 2114 +27470 42771861 2114 +27471 42773975 2114 +27472 42776089 2462 +27473 42778551 2876 +27474 42781427 1604 +27475 42783031 1604 +27476 42784635 1574 +27477 42786209 1586 +27478 42787795 1478 +27479 42789273 1478 +27480 42790751 1478 +27481 42792229 2594 +27482 42794823 2594 +27483 42797417 860 +27484 42798277 80 +27485 42798357 1664 +27486 42800021 5516 +27487 42805537 794 +27488 42806331 1358 +27489 42807689 992 +27490 42808681 992 +27491 42809673 1814 +27492 42811487 2120 +27493 42813607 2120 +27494 42815727 2210 +27495 42817937 2204 +27496 42820141 2192 +27497 42822333 2216 +27498 42824549 2192 +27499 42826741 104 +27500 42826845 104 +27501 42826949 104 +27502 42827053 104 +27503 42827157 104 +27504 42827261 104 +27505 42827365 410 +27506 42827775 2468 +27507 42830243 2462 +27508 42832705 2474 +27509 42835179 2510 +27510 42837689 1568 +27511 42839257 644 +27512 42839901 644 +27513 42840545 2708 +27514 42843253 4568 +27515 42847821 2708 +27516 42850529 4568 +27517 42855097 914 +27518 42856011 1004 +27519 42857015 1004 +27520 42858019 2462 +27521 42860481 1286 +27522 42861767 1274 +27523 42863041 2420 +27524 42865461 1286 +27525 42866747 1274 +27526 42868021 1214 +27527 42869235 1112 +27528 42870347 1112 +27529 42871459 1112 +27530 42872571 1112 +27531 42873683 1112 +27532 42874795 1112 +27533 42875907 1112 +27534 42877019 1112 +27535 42878131 1112 +27536 42879243 1112 +27537 42880355 1136 +27538 42881491 1124 +27539 42882615 1118 +27540 42883733 1124 +27541 42884857 1124 +27542 42885981 1124 +27543 42887105 1118 +27544 42888223 1124 +27545 42889347 1124 +27546 42890471 1124 +27547 42891595 1112 +27548 42892707 1124 +27549 42893831 1118 +27550 42894949 1124 +27551 42896073 1112 +27552 42897185 1124 +27553 42898309 1118 +27554 42899427 4178 +27555 42903605 4070 +27556 42907675 1010 +27557 42908685 1010 +27558 42909695 104 +27559 42909799 104 +27560 42909903 104 +27561 42910007 104 +27562 42910111 104 +27563 42910215 104 +27564 42910319 104 +27565 42910423 104 +27566 42910527 104 +27567 42910631 104 +27568 42910735 104 +27569 42910839 104 +27570 42910943 3452 +27571 42914395 1952 +27572 42916347 1916 +27573 42918263 1916 +27574 42920179 2300 +27575 42922479 1250 +27576 42923729 1934 +27577 42925663 3236 +27578 42928899 1760 +27579 42930659 1754 +27580 42932413 1760 +27581 42934173 1760 +27582 42935933 1754 +27583 42937687 1760 +27584 42939447 1754 +27585 42941201 1754 +27586 42942955 1286 +27587 42944241 1220 +27588 42945461 3296 +27589 42948757 3296 +27590 42952053 3296 +27591 42955349 1154 +27592 42956503 1148 +27593 42957651 2576 +27594 42960227 2600 +27595 42962827 1688 +27596 42964515 1700 +27597 42966215 998 +27598 42967213 1562 +27599 42968775 536 +27600 42969311 1490 +27601 42970801 1532 +27602 42972333 938 +27603 42973271 938 +27604 42974209 938 +27605 42975147 398 +27606 42975545 944 +27607 42976489 944 +27608 42977433 752 +27609 42978185 758 +27610 42978943 542 +27611 42979485 572 +27612 42980057 1988 +27613 42982045 1988 +27614 42984033 2012 +27615 42986045 2042 +27616 42988087 3368 +27617 42991455 344 +27618 42991799 344 +27619 42992143 344 +27620 42992487 344 +27621 42992831 5306 +27622 42998137 38 +27623 42998175 5114 +27624 43003289 506 +27625 43003795 3080 +27626 43006875 3080 +27627 43009955 1166 +27628 43011121 1166 +27629 43012287 632 +27630 43012919 632 +27631 43013551 578 +27632 43014129 2174 +27633 43016303 2216 +27634 43018519 2216 +27635 43020735 872 +27636 43021607 872 +27637 43022479 1010 +27638 43023489 998 +27639 43024487 1208 +27640 43025695 1190 +27641 43026885 974 +27642 43027859 962 +27643 43028821 590 +27644 43029411 590 +27645 43030001 512 +27646 43030513 512 +27647 43031025 548 +27648 43031573 512 +27649 43032085 1064 +27650 43033149 1064 +27651 43034213 2630 +27652 43036843 2636 +27653 43039479 2618 +27654 43042097 2612 +27655 43044709 3206 +27656 43047915 3344 +27657 43051259 3176 +27658 43054435 3272 +27659 43057707 3248 +27660 43060955 3284 +27661 43064239 3206 +27662 43067445 3314 +27663 43070759 620 +27664 43071379 1160 +27665 43072539 1160 +27666 43073699 1664 +27667 43075363 1874 +27668 43077237 1646 +27669 43078883 1856 +27670 43080739 1748 +27671 43082487 1748 +27672 43084235 1748 +27673 43085983 842 +27674 43086825 614 +27675 43087439 614 +27676 43088053 614 +27677 43088667 698 +27678 43089365 614 +27679 43089979 650 +27680 43090629 1538 +27681 43092167 1556 +27682 43093723 632 +27683 43094355 632 +27684 43094987 1634 +27685 43096621 386 +27686 43097007 944 +27687 43097951 944 +27688 43098895 1580 +27689 43100475 2948 +27690 43103423 2534 +27691 43105957 728 +27692 43106685 1286 +27693 43107971 1166 +27694 43109137 1466 +27695 43110603 1040 +27696 43111643 1028 +27697 43112671 1154 +27698 43113825 1178 +27699 43115003 1538 +27700 43116541 1538 +27701 43118079 1538 +27702 43119617 674 +27703 43120291 590 +27704 43120881 1130 +27705 43122011 1130 +27706 43123141 1118 +27707 43124259 2804 +27708 43127063 122 +27709 43127185 1322 +27710 43128507 1316 +27711 43129823 1364 +27712 43131187 1364 +27713 43132551 1670 +27714 43134221 602 +27715 43134823 62 +27716 43134885 1226 +27717 43136111 1448 +27718 43137559 1604 +27719 43139163 590 +27720 43139753 62 +27721 43139815 1184 +27722 43140999 1466 +27723 43142465 1694 +27724 43144159 1694 +27725 43145853 1694 +27726 43147547 1694 +27727 43149241 1694 +27728 43150935 1694 +27729 43152629 1694 +27730 43154323 284 +27731 43154607 284 +27732 43154891 284 +27733 43155175 284 +27734 43155459 284 +27735 43155743 284 +27736 43156027 284 +27737 43156311 284 +27738 43156595 284 +27739 43156879 284 +27740 43157163 284 +27741 43157447 284 +27742 43157731 284 +27743 43158015 284 +27744 43158299 284 +27745 43158583 284 +27746 43158867 284 +27747 43159151 284 +27748 43159435 284 +27749 43159719 284 +27750 43160003 284 +27751 43160287 284 +27752 43160571 284 +27753 43160855 284 +27754 43161139 284 +27755 43161423 284 +27756 43161707 284 +27757 43161991 284 +27758 43162275 284 +27759 43162559 284 +27760 43162843 284 +27761 43163127 284 +27762 43163411 284 +27763 43163695 284 +27764 43163979 284 +27765 43164263 284 +27766 43164547 284 +27767 43164831 284 +27768 43165115 284 +27769 43165399 284 +27770 43165683 6242 +27771 43171925 2036 +27772 43173961 1022 +27773 43174983 1022 +27774 43176005 2420 +27775 43178425 2402 +27776 43180827 788 +27777 43181615 1988 +27778 43183603 1706 +27779 43185309 1706 +27780 43187015 524 +27781 43187539 476 +27782 43188015 476 +27783 43188491 5114 +27784 43193605 5114 +27785 43198719 5114 +27786 43203833 5114 +27787 43208947 5114 +27788 43214061 5114 +27789 43219175 5114 +27790 43224289 5114 +27791 43229403 5114 +27792 43234517 5114 +27793 43239631 5114 +27794 43244745 3758 +27795 43248503 926 +27796 43249429 908 +27797 43250337 902 +27798 43251239 896 +27799 43252135 134 +27800 43252269 134 +27801 43252403 134 +27802 43252537 1616 +27803 43254153 452 +27804 43254605 2690 +27805 43257295 1226 +27806 43258521 2024 +27807 43260545 1700 +27808 43262245 1700 +27809 43263945 1598 +27810 43265543 1604 +27811 43267147 1946 +27812 43269093 1898 +27813 43270991 1874 +27814 43272865 1892 +27815 43274757 1214 +27816 43275971 1184 +27817 43277155 1502 +27818 43278657 1502 +27819 43280159 1496 +27820 43281655 1466 +27821 43283121 1496 +27822 43284617 1460 +27823 43286077 800 +27824 43286877 692 +27825 43287569 854 +27826 43288423 638 +27827 43289061 632 +27828 43289693 632 +27829 43290325 626 +27830 43290951 632 +27831 43291583 638 +27832 43292221 632 +27833 43292853 632 +27834 43293485 626 +27835 43294111 632 +27836 43294743 2348 +27837 43297091 2348 +27838 43299439 1460 +27839 43300899 1460 +27840 43302359 1460 +27841 43303819 1460 +27842 43305279 1460 +27843 43306739 1460 +27844 43308199 1460 +27845 43309659 1460 +27846 43311119 1460 +27847 43312579 1460 +27848 43314039 1460 +27849 43315499 1460 +27850 43316959 1508 +27851 43318467 1508 +27852 43319975 1508 +27853 43321483 1508 +27854 43322991 1508 +27855 43324499 1508 +27856 43326007 1508 +27857 43327515 1508 +27858 43329023 1508 +27859 43330531 1508 +27860 43332039 1508 +27861 43333547 1508 +27862 43335055 1508 +27863 43336563 1508 +27864 43338071 1508 +27865 43339579 1508 +27866 43341087 1508 +27867 43342595 1508 +27868 43344103 1508 +27869 43345611 1508 +27870 43347119 1508 +27871 43348627 1508 +27872 43350135 1508 +27873 43351643 1508 +27874 43353151 1508 +27875 43354659 1508 +27876 43356167 1508 +27877 43357675 1508 +27878 43359183 1508 +27879 43360691 1508 +27880 43362199 1508 +27881 43363707 1508 +27882 43365215 1508 +27883 43366723 1508 +27884 43368231 1508 +27885 43369739 1508 +27886 43371247 1508 +27887 43372755 1508 +27888 43374263 1508 +27889 43375771 1508 +27890 43377279 1508 +27891 43378787 1508 +27892 43380295 1508 +27893 43381803 1508 +27894 43383311 1508 +27895 43384819 1508 +27896 43386327 1508 +27897 43387835 1508 +27898 43389343 1508 +27899 43390851 1508 +27900 43392359 1508 +27901 43393867 1508 +27902 43395375 1508 +27903 43396883 1508 +27904 43398391 1508 +27905 43399899 1508 +27906 43401407 1508 +27907 43402915 1508 +27908 43404423 1508 +27909 43405931 1508 +27910 43407439 1508 +27911 43408947 1508 +27912 43410455 1508 +27913 43411963 1508 +27914 43413471 1508 +27915 43414979 1508 +27916 43416487 1508 +27917 43417995 1508 +27918 43419503 1508 +27919 43421011 1508 +27920 43422519 1508 +27921 43424027 1508 +27922 43425535 1508 +27923 43427043 1508 +27924 43428551 1508 +27925 43430059 1508 +27926 43431567 1508 +27927 43433075 1508 +27928 43434583 1508 +27929 43436091 1508 +27930 43437599 1508 +27931 43439107 1508 +27932 43440615 1508 +27933 43442123 1508 +27934 43443631 1508 +27935 43445139 1508 +27936 43446647 1508 +27937 43448155 1508 +27938 43449663 3398 +27939 43453061 1130 +27940 43454191 1100 +27941 43455291 1082 +27942 43456373 1112 +27943 43457485 1076 +27944 43458561 1082 +27945 43459643 1166 +27946 43460809 1160 +27947 43461969 956 +27948 43462925 1004 +27949 43463929 404 +27950 43464333 4934 +27951 43469267 1190 +27952 43470457 788 +27953 43471245 356 +27954 43471601 1604 +27955 43473205 1604 +27956 43474809 914 +27957 43475723 962 +27958 43476685 2132 +27959 43478817 2132 +27960 43480949 2336 +27961 43483285 956 +27962 43484241 494 +27963 43484735 494 +27964 43485229 1837 +27965 43487066 1777 +27966 43488843 2048 +27967 43490891 2054 +27968 43492945 1316 +27969 43494261 2060 +27970 43496321 1316 +27971 43497637 1004 +27972 43498641 86 +27973 43498727 1208 +27974 43499935 1070 +27975 43501005 1310 +27976 43502315 1124 +27977 43503439 524 +27978 43503963 1316 +27979 43505279 446 +27980 43505725 1112 +27981 43506837 794 +27982 43507631 722 +27983 43508353 596 +27984 43508949 1508 +27985 43510457 482 +27986 43510939 4028 +27987 43514967 3986 +27988 43518953 1160 +27989 43520113 968 +27990 43521081 1022 +27991 43522103 968 +27992 43523071 1328 +27993 43524399 1118 +27994 43525517 1016 +27995 43526533 926 +27996 43527459 2996 +27997 43530455 2996 +27998 43533451 2996 +27999 43536447 2996 +28000 43539443 2996 +28001 43542439 2996 +28002 43545435 1190 +28003 43546625 788 +28004 43547413 356 +28005 43547769 1346 +28006 43549115 1454 +28007 43550569 842 +28008 43551411 848 +28009 43552259 746 +28010 43553005 746 +28011 43553751 752 +28012 43554503 1196 +28013 43555699 902 +28014 43556601 902 +28015 43557503 830 +28016 43558333 824 +28017 43559157 830 +28018 43559987 824 +28019 43560811 2312 +28020 43563123 866 +28021 43563989 878 +28022 43564867 1058 +28023 43565925 350 +28024 43566275 1928 +28025 43568203 1934 +28026 43570137 164 +28027 43570301 2540 +28028 43572841 3362 +28029 43576203 3362 +28030 43579565 3380 +28031 43582945 1976 +28032 43584921 1322 +28033 43586243 1844 +28034 43588087 1844 +28035 43589931 1844 +28036 43591775 1826 +28037 43593601 1832 +28038 43595433 1826 +28039 43597259 3842 +28040 43601101 2180 +28041 43603281 1094 +28042 43604375 3866 +28043 43608241 2180 +28044 43610421 1094 +28045 43611515 3776 +28046 43615291 3824 +28047 43619115 2138 +28048 43621253 2138 +28049 43623391 2138 +28050 43625529 2138 +28051 43627667 1826 +28052 43629493 1838 +28053 43631331 1454 +28054 43632785 836 +28055 43633621 788 +28056 43634409 788 +28057 43635197 836 +28058 43636033 788 +28059 43636821 788 +28060 43637609 2042 +28061 43639651 1142 +28062 43640793 470 +28063 43641263 938 +28064 43642201 938 +28065 43643139 1838 +28066 43644977 1802 +28067 43646779 2150 +28068 43648929 2150 +28069 43651079 4460 +28070 43655539 4460 +28071 43659999 4430 +28072 43664429 4460 +28073 43668889 1118 +28074 43670007 1196 +28075 43671203 1502 +28076 43672705 1094 +28077 43673799 1094 +28078 43674893 1094 +28079 43675987 1094 +28080 43677081 1742 +28081 43678823 980 +28082 43679803 1052 +28083 43680855 2330 +28084 43683185 2330 +28085 43685515 2330 +28086 43687845 2330 +28087 43690175 1070 +28088 43691245 1070 +28089 43692315 2360 +28090 43694675 2360 +28091 43697035 2132 +28092 43699167 2126 +28093 43701293 2132 +28094 43703425 2126 +28095 43705551 1604 +28096 43707155 1388 +28097 43708543 1256 +28098 43709799 1256 +28099 43711055 734 +28100 43711789 746 +28101 43712535 740 +28102 43713275 2726 +28103 43716001 950 +28104 43716951 950 +28105 43717901 968 +28106 43718869 968 +28107 43719837 1418 +28108 43721255 1400 +28109 43722655 1442 +28110 43724097 1796 +28111 43725893 836 +28112 43726729 836 +28113 43727565 2984 +28114 43730549 3386 +28115 43733935 3368 +28116 43737303 3362 +28117 43740665 6146 +28118 43746811 6146 +28119 43752957 6146 +28120 43759103 6146 +28121 43765249 6146 +28122 43771395 6146 +28123 43777541 1580 +28124 43779121 1592 +28125 43780713 752 +28126 43781465 410 +28127 43781875 446 +28128 43782321 434 +28129 43782755 752 +28130 43783507 410 +28131 43783917 446 +28132 43784363 434 +28133 43784797 920 +28134 43785717 920 +28135 43786637 770 +28136 43787407 770 +28137 43788177 1994 +28138 43790171 1994 +28139 43792165 1994 +28140 43794159 518 +28141 43794677 518 +28142 43795195 482 +28143 43795677 4322 +28144 43799999 2294 +28145 43802293 2192 +28146 43804485 2108 +28147 43806593 2132 +28148 43808725 2132 +28149 43810857 2138 +28150 43812995 2132 +28151 43815127 1868 +28152 43816995 1868 +28153 43818863 1442 +28154 43820305 1454 +28155 43821759 1442 +28156 43823201 3812 +28157 43827013 3818 +28158 43830831 374 +28159 43831205 662 +28160 43831867 2378 +28161 43834245 2378 +28162 43836623 632 +28163 43837255 554 +28164 43837809 578 +28165 43838387 578 +28166 43838965 578 +28167 43839543 578 +28168 43840121 578 +28169 43840699 578 +28170 43841277 578 +28171 43841855 578 +28172 43842433 578 +28173 43843011 578 +28174 43843589 578 +28175 43844167 578 +28176 43844745 578 +28177 43845323 578 +28178 43845901 578 +28179 43846479 578 +28180 43847057 578 +28181 43847635 578 +28182 43848213 578 +28183 43848791 578 +28184 43849369 578 +28185 43849947 638 +28186 43850585 638 +28187 43851223 2888 +28188 43854111 2888 +28189 43856999 764 +28190 43857763 818 +28191 43858581 818 +28192 43859399 818 +28193 43860217 818 +28194 43861035 818 +28195 43861853 818 +28196 43862671 830 +28197 43863501 830 +28198 43864331 830 +28199 43865161 104 +28200 43865265 86 +28201 43865351 86 +28202 43865437 2126 +28203 43867563 2066 +28204 43869629 1220 +28205 43870849 1208 +28206 43872057 1286 +28207 43873343 428 +28208 43873771 434 +28209 43874205 446 +28210 43874651 416 +28211 43875067 1658 +28212 43876725 2144 +28213 43878869 3332 +28214 43882201 4652 +28215 43886853 5432 +28216 43892285 1796 +28217 43894081 1796 +28218 43895877 1796 +28219 43897673 1796 +28220 43899469 1796 +28221 43901265 1802 +28222 43903067 1796 +28223 43904863 1802 +28224 43906665 1796 +28225 43908461 1796 +28226 43910257 1796 +28227 43912053 1796 +28228 43913849 1790 +28229 43915639 1502 +28230 43917141 1406 +28231 43918547 3620 +28232 43922167 3740 +28233 43925907 3704 +28234 43929611 3632 +28235 43933243 3740 +28236 43936983 3680 +28237 43940663 92 +28238 43940755 92 +28239 43940847 92 +28240 43940939 92 +28241 43941031 92 +28242 43941123 92 +28243 43941215 4652 +28244 43945867 5432 +28245 43951299 1796 +28246 43953095 1796 +28247 43954891 1796 +28248 43956687 1796 +28249 43958483 1796 +28250 43960279 1802 +28251 43962081 1796 +28252 43963877 1802 +28253 43965679 1796 +28254 43967475 1796 +28255 43969271 1796 +28256 43971067 1796 +28257 43972863 1790 +28258 43974653 1502 +28259 43976155 1406 +28260 43977561 3620 +28261 43981181 3740 +28262 43984921 3704 +28263 43988625 3632 +28264 43992257 3740 +28265 43995997 3680 +28266 43999677 92 +28267 43999769 92 +28268 43999861 92 +28269 43999953 92 +28270 44000045 92 +28271 44000137 92 +28272 44000229 4652 +28273 44004881 5432 +28274 44010313 1796 +28275 44012109 1796 +28276 44013905 1796 +28277 44015701 1796 +28278 44017497 1796 +28279 44019293 1802 +28280 44021095 1796 +28281 44022891 1802 +28282 44024693 1796 +28283 44026489 1796 +28284 44028285 1796 +28285 44030081 1796 +28286 44031877 1790 +28287 44033667 1502 +28288 44035169 1406 +28289 44036575 3620 +28290 44040195 3740 +28291 44043935 3704 +28292 44047639 3632 +28293 44051271 3740 +28294 44055011 3680 +28295 44058691 92 +28296 44058783 92 +28297 44058875 92 +28298 44058967 92 +28299 44059059 92 +28300 44059151 92 +28301 44059243 4652 +28302 44063895 5432 +28303 44069327 1796 +28304 44071123 1796 +28305 44072919 1796 +28306 44074715 1796 +28307 44076511 1796 +28308 44078307 1802 +28309 44080109 1796 +28310 44081905 1802 +28311 44083707 1796 +28312 44085503 1796 +28313 44087299 1796 +28314 44089095 1796 +28315 44090891 1790 +28316 44092681 1502 +28317 44094183 1406 +28318 44095589 3620 +28319 44099209 3740 +28320 44102949 3704 +28321 44106653 3632 +28322 44110285 3740 +28323 44114025 3680 +28324 44117705 92 +28325 44117797 92 +28326 44117889 92 +28327 44117981 92 +28328 44118073 92 +28329 44118165 92 +28330 44118257 4652 +28331 44122909 5432 +28332 44128341 1796 +28333 44130137 1796 +28334 44131933 1796 +28335 44133729 1796 +28336 44135525 1796 +28337 44137321 1802 +28338 44139123 1796 +28339 44140919 1802 +28340 44142721 1796 +28341 44144517 1796 +28342 44146313 1796 +28343 44148109 1796 +28344 44149905 1790 +28345 44151695 1502 +28346 44153197 1406 +28347 44154603 3620 +28348 44158223 3740 +28349 44161963 3704 +28350 44165667 3632 +28351 44169299 3740 +28352 44173039 3680 +28353 44176719 92 +28354 44176811 92 +28355 44176903 92 +28356 44176995 92 +28357 44177087 92 +28358 44177179 92 +28359 44177271 1196 +28360 44178467 716 +28361 44179183 1202 +28362 44180385 716 +28363 44181101 440 +28364 44181541 2006 +28365 44183547 4700 +28366 44188247 4616 +28367 44192863 4562 +28368 44197425 4436 +28369 44201861 2774 +28370 44204635 404 +28371 44205039 404 +28372 44205443 1148 +28373 44206591 1142 +28374 44207733 1148 +28375 44208881 1142 +28376 44210023 56 +28377 44210079 56 +28378 44210135 56 +28379 44210191 56 +28380 44210247 1658 +28381 44211905 1766 +28382 44213671 1268 +28383 44214939 1280 +28384 44216219 1616 +28385 44217835 1520 +28386 44219355 344 +28387 44219699 350 +28388 44220049 512 +28389 44220561 1196 +28390 44221757 1364 +28391 44223121 884 +28392 44224005 884 +28393 44224889 884 +28394 44225773 884 +28395 44226657 1868 +28396 44228525 1892 +28397 44230417 1520 +28398 44231937 1526 +28399 44233463 1520 +28400 44234983 1820 +28401 44236803 1742 +28402 44238545 1730 +28403 44240275 1736 +28404 44242011 938 +28405 44242949 800 +28406 44243749 332 +28407 44244081 1358 +28408 44245439 1142 +28409 44246581 578 +28410 44247159 746 +28411 44247905 728 +28412 44248633 842 +28413 44249475 866 +28414 44250341 872 +28415 44251213 608 +28416 44251821 440 +28417 44252261 374 +28418 44252635 440 +28419 44253075 1892 +28420 44254967 1244 +28421 44256211 1286 +28422 44257497 1316 +28423 44258813 1580 +28424 44260393 1388 +28425 44261781 1124 +28426 44262905 1238 +28427 44264143 1088 +28428 44265231 914 +28429 44266145 902 +28430 44267047 818 +28431 44267865 500 +28432 44268365 782 +28433 44269147 854 +28434 44270001 752 +28435 44270753 614 +28436 44271367 500 +28437 44271867 308 +28438 44272175 152 +28439 44272327 188 +28440 44272515 1802 +28441 44274317 1760 +28442 44276077 1796 +28443 44277873 1796 +28444 44279669 1214 +28445 44280883 1202 +28446 44282085 740 +28447 44282825 734 +28448 44283559 728 +28449 44284287 1310 +28450 44285597 602 +28451 44286199 566 +28452 44286765 206 +28453 44286971 1370 +28454 44288341 1370 +28455 44289711 1196 +28456 44290907 1190 +28457 44292097 2990 +28458 44295087 4778 +28459 44299865 2282 +28460 44302147 2282 +28461 44304429 2282 +28462 44306711 2282 +28463 44308993 2858 +28464 44311851 2858 +28465 44314709 2252 +28466 44316961 2210 +28467 44319171 1538 +28468 44320709 1568 +28469 44322277 1772 +28470 44324049 1760 +28471 44325809 356 +28472 44326165 698 +28473 44326863 686 +28474 44327549 1562 +28475 44329111 1586 +28476 44330697 746 +28477 44331443 752 +28478 44332195 620 +28479 44332815 356 +28480 44333171 1406 +28481 44334577 1244 +28482 44335821 920 +28483 44336741 656 +28484 44337397 3266 +28485 44340663 3278 +28486 44343941 1334 +28487 44345275 674 +28488 44345949 2036 +28489 44347985 2120 +28490 44350105 980 +28491 44351085 2294 +28492 44353379 1112 +28493 44354491 1112 +28494 44355603 920 +28495 44356523 914 +28496 44357437 902 +28497 44358339 902 +28498 44359241 1970 +28499 44361211 1958 +28500 44363169 1388 +28501 44364557 1388 +28502 44365945 1388 +28503 44367333 1382 +28504 44368715 4532 +28505 44373247 4538 +28506 44377785 4532 +28507 44382317 4520 +28508 44386837 2270 +28509 44389107 638 +28510 44389745 644 +28511 44390389 716 +28512 44391105 728 +28513 44391833 3284 +28514 44395117 3266 +28515 44398383 1892 +28516 44400275 1514 +28517 44401789 1520 +28518 44403309 1508 +28519 44404817 1508 +28520 44406325 1508 +28521 44407833 926 +28522 44408759 1778 +28523 44410537 3572 +28524 44414109 518 +28525 44414627 506 +28526 44415133 1226 +28527 44416359 1244 +28528 44417603 1256 +28529 44418859 2804 +28530 44421663 2804 +28531 44424467 800 +28532 44425267 800 +28533 44426067 512 +28534 44426579 512 +28535 44427091 488 +28536 44427579 770 +28537 44428349 770 +28538 44429119 416 +28539 44429535 488 +28540 44430023 770 +28541 44430793 770 +28542 44431563 416 +28543 44431979 884 +28544 44432863 2276 +28545 44435139 680 +28546 44435819 692 +28547 44436511 1772 +28548 44438283 1688 +28549 44439971 1700 +28550 44441671 1796 +28551 44443467 1052 +28552 44444519 368 +28553 44444887 356 +28554 44445243 356 +28555 44445599 464 +28556 44446063 464 +28557 44446527 2990 +28558 44449517 2990 +28559 44452507 2132 +28560 44454639 1616 +28561 44456255 1634 +28562 44457889 1214 +28563 44459103 1232 +28564 44460335 2540 +28565 44462875 2540 +28566 44465415 2540 +28567 44467955 1478 +28568 44469433 1478 +28569 44470911 1478 +28570 44472389 1478 +28571 44473867 1268 +28572 44475135 1778 +28573 44476913 1742 +28574 44478655 1442 +28575 44480097 2504 +28576 44482601 2492 +28577 44485093 2504 +28578 44487597 2492 +28579 44490089 2504 +28580 44492593 2492 +28581 44495085 2060 +28582 44497145 1976 +28583 44499121 5132 +28584 44504253 506 +28585 44504759 5126 +28586 44509885 530 +28587 44510415 1082 +28588 44511497 2438 +28589 44513935 878 +28590 44514813 2132 +28591 44516945 2990 +28592 44519935 2990 +28593 44522925 2990 +28594 44525915 2990 +28595 44528905 608 +28596 44529513 608 +28597 44530121 1178 +28598 44531299 1514 +28599 44532813 1358 +28600 44534171 1394 +28601 44535565 602 +28602 44536167 608 +28603 44536775 866 +28604 44537641 848 +28605 44538489 854 +28606 44539343 854 +28607 44540197 4178 +28608 44544375 32 +28609 44544407 704 +28610 44545111 710 +28611 44545821 716 +28612 44546537 722 +28613 44547259 728 +28614 44547987 716 +28615 44548703 710 +28616 44549413 728 +28617 44550141 998 +28618 44551139 998 +28619 44552137 1214 +28620 44553351 992 +28621 44554343 566 +28622 44554909 566 +28623 44555475 2684 +28624 44558159 2678 +28625 44560837 2678 +28626 44563515 2666 +28627 44566181 2684 +28628 44568865 2678 +28629 44571543 2678 +28630 44574221 2666 +28631 44576887 2666 +28632 44579553 2672 +28633 44582225 2654 +28634 44584879 2588 +28635 44587467 5132 +28636 44592599 530 +28637 44593129 2432 +28638 44595561 872 +28639 44596433 698 +28640 44597131 1034 +28641 44598165 1010 +28642 44599175 2552 +28643 44601727 2552 +28644 44604279 878 +28645 44605157 878 +28646 44606035 2378 +28647 44608413 2552 +28648 44610965 2552 +28649 44613517 1178 +28650 44614695 3704 +28651 44618399 5132 +28652 44623531 530 +28653 44624061 920 +28654 44624981 638 +28655 44625619 3590 +28656 44629209 500 +28657 44629709 1334 +28658 44631043 1160 +28659 44632203 752 +28660 44632955 752 +28661 44633707 752 +28662 44634459 752 +28663 44635211 752 +28664 44635963 746 +28665 44636709 2006 +28666 44638715 6110 +28667 44644825 1970 +28668 44646795 1922 +28669 44648717 842 +28670 44649559 1826 +28671 44651385 986 +28672 44652371 2702 +28673 44655073 1748 +28674 44656821 4850 +28675 44661671 9685 +28676 44671356 4850 +28677 44676206 9685 +28678 44685891 710 +28679 44686601 710 +28680 44687311 2828 +28681 44690139 2828 +28682 44692967 2174 +28683 44695141 2174 +28684 44697315 506 +28685 44697821 506 +28686 44698327 1370 +28687 44699697 2444 +28688 44702141 3242 +28689 44705383 1100 +28690 44706483 4009 +28691 44710492 920 +28692 44711412 1621 +28693 44713033 1046 +28694 44714079 1628 +28695 44715707 1628 +28696 44717335 1244 +28697 44718579 1244 +28698 44719823 1562 +28699 44721385 3146 +28700 44724531 218 +28701 44724749 218 +28702 44724967 1304 +28703 44726271 2210 +28704 44728481 452 +28705 44728933 1718 +28706 44730651 1706 +28707 44732357 1730 +28708 44734087 1718 +28709 44735805 1706 +28710 44737511 1730 +28711 44739241 1718 +28712 44740959 1706 +28713 44742665 1730 +28714 44744395 1718 +28715 44746113 1706 +28716 44747819 1730 +28717 44749549 1244 +28718 44750793 1244 +28719 44752037 1298 +28720 44753335 1298 +28721 44754633 1298 +28722 44755931 620 +28723 44756551 3224 +28724 44759775 3230 +28725 44763005 1124 +28726 44764129 2066 +28727 44766195 1970 +28728 44768165 1970 +28729 44770135 1970 +28730 44772105 1970 +28731 44774075 1970 +28732 44776045 1970 +28733 44778015 1088 +28734 44779103 626 +28735 44779729 3974 +28736 44783703 2354 +28737 44786057 3122 +28738 44789179 1100 +28739 44790279 3481 +28740 44793760 122 +28741 44793882 116 +28742 44793998 584 +28743 44794582 482 +28744 44795064 650 +28745 44795714 554 +28746 44796268 584 +28747 44796852 470 +28748 44797322 650 +28749 44797972 560 +28750 44798532 2336 +28751 44800868 3260 +28752 44804128 2773 +28753 44806901 3817 +28754 44810718 2401 +28755 44813119 1513 +28756 44814632 602 +28757 44815234 482 +28758 44815716 650 +28759 44816366 566 +28760 44816932 1237 +28761 44818169 482 +28762 44818651 650 +28763 44819301 554 +28764 44819855 1094 +28765 44820949 1118 +28766 44822067 1142 +28767 44823209 1136 +28768 44824345 1136 +28769 44825481 1142 +28770 44826623 1136 +28771 44827759 1130 +28772 44828889 1130 +28773 44830019 1124 +28774 44831143 1100 +28775 44832243 1076 +28776 44833319 1142 +28777 44834461 1142 +28778 44835603 1142 +28779 44836745 1142 +28780 44837887 1136 +28781 44839023 1136 +28782 44840159 1142 +28783 44841301 1142 +28784 44842443 1136 +28785 44843579 1124 +28786 44844703 1136 +28787 44845839 1142 +28788 44846981 2444 +28789 44849425 2366 +28790 44851791 1406 +28791 44853197 2114 +28792 44855311 2114 +28793 44857425 2114 +28794 44859539 2114 +28795 44861653 626 +28796 44862279 584 +28797 44862863 2234 +28798 44865097 2234 +28799 44867331 2132 +28800 44869463 800 +28801 44870263 806 +28802 44871069 1706 +28803 44872775 1706 +28804 44874481 1112 +28805 44875593 794 +28806 44876387 806 +28807 44877193 3218 +28808 44880411 2348 +28809 44882759 2348 +28810 44885107 1940 +28811 44887047 1394 +28812 44888441 872 +28813 44889313 920 +28814 44890233 542 +28815 44890775 800 +28816 44891575 1910 +28817 44893485 2102 +28818 44895587 2066 +28819 44897653 308 +28820 44897961 308 +28821 44898269 308 +28822 44898577 2618 +28823 44901195 824 +28824 44902019 638 +28825 44902657 1250 +28826 44903907 728 +28827 44904635 1286 +28828 44905921 884 +28829 44906805 770 +28830 44907575 602 +28831 44908177 6158 +28832 44914335 6098 +28833 44920433 6098 +28834 44926531 590 +28835 44927121 596 +28836 44927717 782 +28837 44928499 728 +28838 44929227 698 +28839 44929925 1190 +28840 44931115 1166 +28841 44932281 1388 +28842 44933669 1376 +28843 44935045 1388 +28844 44936433 1376 +28845 44937809 1226 +28846 44939035 1106 +28847 44940141 872 +28848 44941013 362 +28849 44941375 890 +28850 44942265 380 +28851 44942645 2684 +28852 44945329 2696 +28853 44948025 2618 +28854 44950643 2654 +28855 44953297 3080 +28856 44956377 1166 +28857 44957543 1166 +28858 44958709 2966 +28859 44961675 800 +28860 44962475 620 +28861 44963095 638 +28862 44963733 1184 +28863 44964917 1142 +28864 44966059 2936 +28865 44968995 2540 +28866 44971535 2606 +28867 44974141 2960 +28868 44977101 3560 +28869 44980661 3566 +28870 44984227 3560 +28871 44987787 3566 +28872 44991353 3554 +28873 44994907 3554 +28874 44998461 3554 +28875 45002015 3554 +28876 45005569 3572 +28877 45009141 3584 +28878 45012725 3572 +28879 45016297 3584 +28880 45019881 1874 +28881 45021755 2174 +28882 45023929 2168 +28883 45026097 560 +28884 45026657 6313 +28885 45032970 6313 +28886 45039283 446 +28887 45039729 440 +28888 45040169 626 +28889 45040795 644 +28890 45041439 998 +28891 45042437 1010 +28892 45043447 1868 +28893 45045315 1862 +28894 45047177 1868 +28895 45049045 1862 +28896 45050907 2102 +28897 45053009 1928 +28898 45054937 2462 +28899 45057399 2462 +28900 45059861 2636 +28901 45062497 2600 +28902 45065097 1052 +28903 45066149 1052 +28904 45067201 1052 +28905 45068253 1052 +28906 45069305 1052 +28907 45070357 1052 +28908 45071409 1052 +28909 45072461 1052 +28910 45073513 1052 +28911 45074565 1052 +28912 45075617 1052 +28913 45076669 1052 +28914 45077721 1052 +28915 45078773 1052 +28916 45079825 1052 +28917 45080877 1052 +28918 45081929 1052 +28919 45082981 1052 +28920 45084033 1052 +28921 45085085 1052 +28922 45086137 1052 +28923 45087189 1052 +28924 45088241 1052 +28925 45089293 1052 +28926 45090345 1052 +28927 45091397 1052 +28928 45092449 1052 +28929 45093501 1052 +28930 45094553 1052 +28931 45095605 1052 +28932 45096657 1052 +28933 45097709 1052 +28934 45098761 1052 +28935 45099813 1052 +28936 45100865 1052 +28937 45101917 1052 +28938 45102969 1052 +28939 45104021 1052 +28940 45105073 1052 +28941 45106125 1052 +28942 45107177 1052 +28943 45108229 1052 +28944 45109281 1052 +28945 45110333 1052 +28946 45111385 1052 +28947 45112437 1052 +28948 45113489 1052 +28949 45114541 1052 +28950 45115593 1052 +28951 45116645 1052 +28952 45117697 1898 +28953 45119595 1892 +28954 45121487 4550 +28955 45126037 2000 +28956 45128037 2000 +28957 45130037 3722 +28958 45133759 3908 +28959 45137667 1190 +28960 45138857 1166 +28961 45140023 464 +28962 45140487 2648 +28963 45143135 2408 +28964 45145543 2072 +28965 45147615 2072 +28966 45149687 2054 +28967 45151741 2078 +28968 45153819 2084 +28969 45155903 2060 +28970 45157963 1658 +28971 45159621 734 +28972 45160355 1958 +28973 45162313 1964 +28974 45164277 7022 +28975 45171299 3104 +28976 45174403 4154 +28977 45178557 1712 +28978 45180269 2342 +28979 45182611 2342 +28980 45184953 920 +28981 45185873 920 +28982 45186793 1532 +28983 45188325 1532 +28984 45189857 1532 +28985 45191389 1532 +28986 45192921 1754 +28987 45194675 2006 +28988 45196681 2006 +28989 45198687 740 +28990 45199427 716 +28991 45200143 2666 +28992 45202809 710 +28993 45203519 1562 +28994 45205081 614 +28995 45205695 1244 +28996 45206939 1064 +28997 45208003 1070 +28998 45209073 1058 +28999 45210131 530 +29000 45210661 530 +29001 45211191 530 +29002 45211721 1064 +29003 45212785 1070 +29004 45213855 1058 +29005 45214913 530 +29006 45215443 530 +29007 45215973 530 +29008 45216503 758 +29009 45217261 758 +29010 45218019 392 +29011 45218411 1070 +29012 45219481 1070 +29013 45220551 638 +29014 45221189 638 +29015 45221827 1658 +29016 45223485 1598 +29017 45225083 1604 +29018 45226687 1778 +29019 45228465 2702 +29020 45231167 1982 +29021 45233149 2078 +29022 45235227 2066 +29023 45237293 1976 +29024 45239269 2090 +29025 45241359 2060 +29026 45243419 3230 +29027 45246649 3230 +29028 45249879 644 +29029 45250523 3230 +29030 45253753 3230 +29031 45256983 3230 +29032 45260213 3230 +29033 45263443 626 +29034 45264069 806 +29035 45264875 758 +29036 45265633 434 +29037 45266067 434 +29038 45266501 434 +29039 45266935 428 +29040 45267363 848 +29041 45268211 824 +29042 45269035 818 +29043 45269853 1004 +29044 45270857 812 +29045 45271669 788 +29046 45272457 782 +29047 45273239 782 +29048 45274021 2030 +29049 45276051 1334 +29050 45277385 1862 +29051 45279247 1928 +29052 45281175 3290 +29053 45284465 812 +29054 45285277 2378 +29055 45287655 1424 +29056 45289079 812 +29057 45289891 2378 +29058 45292269 1424 +29059 45293693 638 +29060 45294331 638 +29061 45294969 752 +29062 45295721 746 +29063 45296467 2324 +29064 45298791 2300 +29065 45301091 2648 +29066 45303739 2306 +29067 45306045 2342 +29068 45308387 2294 +29069 45310681 2294 +29070 45312975 2294 +29071 45315269 2294 +29072 45317563 2294 +29073 45319857 2294 +29074 45322151 680 +29075 45322831 614 +29076 45323445 1220 +29077 45324665 1580 +29078 45326245 1886 +29079 45328131 200 +29080 45328331 2078 +29081 45330409 2078 +29082 45332487 2078 +29083 45334565 554 +29084 45335119 704 +29085 45335823 848 +29086 45336671 848 +29087 45337519 872 +29088 45338391 1826 +29089 45340217 1832 +29090 45342049 1808 +29091 45343857 1832 +29092 45345689 1868 +29093 45347557 1844 +29094 45349401 932 +29095 45350333 836 +29096 45351169 1442 +29097 45352611 1172 +29098 45353783 1940 +29099 45355723 1934 +29100 45357657 2522 +29101 45360179 1514 +29102 45361693 1514 +29103 45363207 1514 +29104 45364721 1340 +29105 45366061 1340 +29106 45367401 1568 +29107 45368969 1328 +29108 45370297 2306 +29109 45372603 2306 +29110 45374909 1484 +29111 45376393 1484 +29112 45377877 1046 +29113 45378923 1718 +29114 45380641 1718 +29115 45382359 1718 +29116 45384077 974 +29117 45385051 974 +29118 45386025 1790 +29119 45387815 1790 +29120 45389605 1364 +29121 45390969 608 +29122 45391577 608 +29123 45392185 1196 +29124 45393381 1196 +29125 45394577 1484 +29126 45396061 1484 +29127 45397545 80 +29128 45397625 2624 +29129 45400249 2174 +29130 45402423 1172 +29131 45403595 1166 +29132 45404761 638 +29133 45405399 638 +29134 45406037 830 +29135 45406867 830 +29136 45407697 848 +29137 45408545 860 +29138 45409405 1184 +29139 45410589 1172 +29140 45411761 2516 +29141 45414277 2516 +29142 45416793 1598 +29143 45418391 1598 +29144 45419989 1598 +29145 45421587 2276 +29146 45423863 92 +29147 45423955 2276 +29148 45426231 92 +29149 45426323 2264 +29150 45428587 92 +29151 45428679 2264 +29152 45430943 92 +29153 45431035 1772 +29154 45432807 2480 +29155 45435287 2318 +29156 45437605 2750 +29157 45440355 2168 +29158 45442523 2168 +29159 45444691 2516 +29160 45447207 1922 +29161 45449129 1022 +29162 45450151 668 +29163 45450819 1328 +29164 45452147 1328 +29165 45453475 1346 +29166 45454821 2054 +29167 45456875 2024 +29168 45458899 1214 +29169 45460113 1214 +29170 45461327 1772 +29171 45463099 1148 +29172 45464247 1172 +29173 45465419 410 +29174 45465829 410 +29175 45466239 452 +29176 45466691 500 +29177 45467191 1352 +29178 45468543 1928 +29179 45470471 1922 +29180 45472393 1844 +29181 45474237 1820 +29182 45476057 1712 +29183 45477769 722 +29184 45478491 650 +29185 45479141 4172 +29186 45483313 1748 +29187 45485061 2257 +29188 45487318 817 +29189 45488135 782 +29190 45488917 578 +29191 45489495 914 +29192 45490409 758 +29193 45491167 1028 +29194 45492195 1262 +29195 45493457 5132 +29196 45498589 512 +29197 45499101 1754 +29198 45500855 1412 +29199 45502267 1412 +29200 45503679 1070 +29201 45504749 1412 +29202 45506161 1346 +29203 45507507 854 +29204 45508361 854 +29205 45509215 1742 +29206 45510957 1730 +29207 45512687 2450 +29208 45515137 2450 +29209 45517587 2450 +29210 45520037 2450 +29211 45522487 398 +29212 45522885 320 +29213 45523205 392 +29214 45523597 380 +29215 45523977 398 +29216 45524375 320 +29217 45524695 392 +29218 45525087 380 +29219 45525467 5006 +29220 45530473 968 +29221 45531441 878 +29222 45532319 2396 +29223 45534715 1724 +29224 45536439 722 +29225 45537161 650 +29226 45537811 1814 +29227 45539625 2660 +29228 45542285 2570 +29229 45544855 1520 +29230 45546375 4460 +29231 45550835 2336 +29232 45553171 2336 +29233 45555507 2750 +29234 45558257 2246 +29235 45560503 2246 +29236 45562749 2462 +29237 45565211 2432 +29238 45567643 2456 +29239 45570099 2426 +29240 45572525 1118 +29241 45573643 560 +29242 45574203 698 +29243 45574901 692 +29244 45575593 536 +29245 45576129 1532 +29246 45577661 974 +29247 45578635 1370 +29248 45580005 1322 +29249 45581327 1742 +29250 45583069 1742 +29251 45584811 968 +29252 45585779 956 +29253 45586735 968 +29254 45587703 962 +29255 45588665 914 +29256 45589579 956 +29257 45590535 260 +29258 45590795 1856 +29259 45592651 1856 +29260 45594507 1856 +29261 45596363 1856 +29262 45598219 2720 +29263 45600939 2390 +29264 45603329 2210 +29265 45605539 2204 +29266 45607743 2216 +29267 45609959 2216 +29268 45612175 2210 +29269 45614385 2204 +29270 45616589 2216 +29271 45618805 2216 +29272 45621021 1064 +29273 45622085 1064 +29274 45623149 1064 +29275 45624213 1064 +29276 45625277 1274 +29277 45626551 1220 +29278 45627771 1220 +29279 45628991 1220 +29280 45630211 1220 +29281 45631431 656 +29282 45632087 668 +29283 45632755 662 +29284 45633417 1586 +29285 45635003 554 +29286 45635557 548 +29287 45636105 2396 +29288 45638501 896 +29289 45639397 884 +29290 45640281 1772 +29291 45642053 1772 +29292 45643825 902 +29293 45644727 902 +29294 45645629 446 +29295 45646075 518 +29296 45646593 392 +29297 45646985 560 +29298 45647545 386 +29299 45647931 470 +29300 45648401 386 +29301 45648787 470 +29302 45649257 1172 +29303 45650429 2204 +29304 45652633 3776 +29305 45656409 626 +29306 45657035 626 +29307 45657661 626 +29308 45658287 626 +29309 45658913 548 +29310 45659461 548 +29311 45660009 2222 +29312 45662231 1484 +29313 45663715 1556 +29314 45665271 674 +29315 45665945 674 +29316 45666619 3674 +29317 45670293 3674 +29318 45673967 2126 +29319 45676093 2132 +29320 45678225 4436 +29321 45682661 3434 +29322 45686095 3422 +29323 45689517 2834 +29324 45692351 2738 +29325 45695089 2072 +29326 45697161 2162 +29327 45699323 2996 +29328 45702319 1448 +29329 45703767 1448 +29330 45705215 1448 +29331 45706663 6362 +29332 45713025 1148 +29333 45714173 842 +29334 45715015 842 +29335 45715857 842 +29336 45716699 1850 +29337 45718549 1910 +29338 45720459 1472 +29339 45721931 2846 +29340 45724777 2846 +29341 45727623 398 +29342 45728021 386 +29343 45728407 398 +29344 45728805 386 +29345 45729191 398 +29346 45729589 386 +29347 45729975 398 +29348 45730373 386 +29349 45730759 398 +29350 45731157 386 +29351 45731543 398 +29352 45731941 386 +29353 45732327 398 +29354 45732725 386 +29355 45733111 398 +29356 45733509 386 +29357 45733895 1226 +29358 45735121 1664 +29359 45736785 1664 +29360 45738449 2072 +29361 45740521 2066 +29362 45742587 2066 +29363 45744653 2066 +29364 45746719 944 +29365 45747663 824 +29366 45748487 1616 +29367 45750103 1616 +29368 45751719 344 +29369 45752063 5432 +29370 45757495 746 +29371 45758241 2894 +29372 45761135 3326 +29373 45764461 98 +29374 45764559 98 +29375 45764657 98 +29376 45764755 1358 +29377 45766113 1358 +29378 45767471 1664 +29379 45769135 1664 +29380 45770799 2330 +29381 45773129 2330 +29382 45775459 776 +29383 45776235 632 +29384 45776867 782 +29385 45777649 782 +29386 45778431 1166 +29387 45779597 1256 +29388 45780853 1532 +29389 45782385 1454 +29390 45783839 2342 +29391 45786181 2324 +29392 45788505 284 +29393 45788789 284 +29394 45789073 5750 +29395 45794823 2198 +29396 45797021 7052 +29397 45804073 2234 +29398 45806307 7076 +29399 45813383 2252 +29400 45815635 1412 +29401 45817047 1310 +29402 45818357 1304 +29403 45819661 1556 +29404 45821217 1412 +29405 45822629 1310 +29406 45823939 1304 +29407 45825243 1556 +29408 45826799 1424 +29409 45828223 1676 +29410 45829899 1400 +29411 45831299 1640 +29412 45832939 698 +29413 45833637 680 +29414 45834317 674 +29415 45834991 680 +29416 45835671 1196 +29417 45836867 1526 +29418 45838393 1526 +29419 45839919 296 +29420 45840215 290 +29421 45840505 1976 +29422 45842481 1976 +29423 45844457 1976 +29424 45846433 2012 +29425 45848445 2012 +29426 45850457 2012 +29427 45852469 2000 +29428 45854469 2000 +29429 45856469 2000 +29430 45858469 2750 +29431 45861219 2594 +29432 45863813 2594 +29433 45866407 2594 +29434 45869001 2594 +29435 45871595 710 +29436 45872305 704 +29437 45873009 590 +29438 45873599 80 +29439 45873679 878 +29440 45874557 854 +29441 45875411 890 +29442 45876301 4628 +29443 45880929 1694 +29444 45882623 1160 +29445 45883783 1262 +29446 45885045 1694 +29447 45886739 1160 +29448 45887899 1262 +29449 45889161 2354 +29450 45891515 1508 +29451 45893023 1514 +29452 45894537 1604 +29453 45896141 1604 +29454 45897745 1604 +29455 45899349 2486 +29456 45901835 2090 +29457 45903925 3254 +29458 45907179 3260 +29459 45910439 2084 +29460 45912523 1538 +29461 45914061 1256 +29462 45915317 1232 +29463 45916549 980 +29464 45917529 986 +29465 45918515 974 +29466 45919489 992 +29467 45920481 2138 +29468 45922619 242 +29469 45922861 2144 +29470 45925005 248 +29471 45925253 2144 +29472 45927397 248 +29473 45927645 2144 +29474 45929789 242 +29475 45930031 1262 +29476 45931293 980 +29477 45932273 1718 +29478 45933991 1712 +29479 45935703 374 +29480 45936077 104 +29481 45936181 1220 +29482 45937401 1082 +29483 45938483 1082 +29484 45939565 632 +29485 45940197 1796 +29486 45941993 1760 +29487 45943753 2156 +29488 45945909 974 +29489 45946883 1040 +29490 45947923 1028 +29491 45948951 656 +29492 45949607 1208 +29493 45950815 1472 +29494 45952287 740 +29495 45953027 710 +29496 45953737 350 +29497 45954087 1700 +29498 45955787 2558 +29499 45958345 2558 +29500 45960903 956 +29501 45961859 962 +29502 45962821 956 +29503 45963777 944 +29504 45964721 2264 +29505 45966985 2264 +29506 45969249 2264 +29507 45971513 2264 +29508 45973777 2522 +29509 45976299 2498 +29510 45978797 2444 +29511 45981241 1268 +29512 45982509 206 +29513 45982715 1766 +29514 45984481 1004 +29515 45985485 866 +29516 45986351 866 +29517 45987217 626 +29518 45987843 626 +29519 45988469 1004 +29520 45989473 1028 +29521 45990501 1100 +29522 45991601 1034 +29523 45992635 1406 +29524 45994041 1358 +29525 45995399 620 +29526 45996019 620 +29527 45996639 728 +29528 45997367 752 +29529 45998119 1262 +29530 45999381 1262 +29531 46000643 1262 +29532 46001905 3793 +29533 46005698 1874 +29534 46007572 926 +29535 46008498 836 +29536 46009334 926 +29537 46010260 836 +29538 46011096 926 +29539 46012022 836 +29540 46012858 476 +29541 46013334 476 +29542 46013810 524 +29543 46014334 470 +29544 46014804 476 +29545 46015280 1070 +29546 46016350 2342 +29547 46018692 1070 +29548 46019762 2342 +29549 46022104 1070 +29550 46023174 2342 +29551 46025516 6217 +29552 46031733 1940 +29553 46033673 1214 +29554 46034887 1214 +29555 46036101 1214 +29556 46037315 1214 +29557 46038529 1214 +29558 46039743 1214 +29559 46040957 98 +29560 46041055 98 +29561 46041153 98 +29562 46041251 98 +29563 46041349 98 +29564 46041447 98 +29565 46041545 98 +29566 46041643 98 +29567 46041741 1316 +29568 46043057 1292 +29569 46044349 44 +29570 46044393 662 +29571 46045055 494 +29572 46045549 734 +29573 46046283 1076 +29574 46047359 374 +29575 46047733 374 +29576 46048107 326 +29577 46048433 650 +29578 46049083 1220 +29579 46050303 3980 +29580 46054283 3980 +29581 46058263 3140 +29582 46061403 3122 +29583 46064525 2126 +29584 46066651 2108 +29585 46068759 2120 +29586 46070879 404 +29587 46071283 422 +29588 46071705 2552 +29589 46074257 2552 +29590 46076809 2552 +29591 46079361 614 +29592 46079975 614 +29593 46080589 5180 +29594 46085769 1196 +29595 46086965 1430 +29596 46088395 1412 +29597 46089807 1508 +29598 46091315 1226 +29599 46092541 1382 +29600 46093923 1382 +29601 46095305 1382 +29602 46096687 1766 +29603 46098453 1778 +29604 46100231 1544 +29605 46101775 1652 +29606 46103427 1652 +29607 46105079 2612 +29608 46107691 116 +29609 46107807 2144 +29610 46109951 116 +29611 46110067 2018 +29612 46112085 2018 +29613 46114103 1502 +29614 46115605 638 +29615 46116243 638 +29616 46116881 638 +29617 46117519 638 +29618 46118157 638 +29619 46118795 1802 +29620 46120597 2678 +29621 46123275 2600 +29622 46125875 998 +29623 46126873 488 +29624 46127361 2558 +29625 46129919 2510 +29626 46132429 2510 +29627 46134939 2474 +29628 46137413 2474 +29629 46139887 2474 +29630 46142361 2456 +29631 46144817 2468 +29632 46147285 2480 +29633 46149765 2474 +29634 46152239 2474 +29635 46154713 2450 +29636 46157163 2474 +29637 46159637 2474 +29638 46162111 2480 +29639 46164591 1412 +29640 46166003 1544 +29641 46167547 1574 +29642 46169121 2948 +29643 46172069 356 +29644 46172425 50 +29645 46172475 2066 +29646 46174541 2054 +29647 46176595 2066 +29648 46178661 2066 +29649 46180727 2060 +29650 46182787 2060 +29651 46184847 2756 +29652 46187603 3536 +29653 46191139 3392 +29654 46194531 878 +29655 46195409 638 +29656 46196047 482 +29657 46196529 2666 +29658 46199195 2678 +29659 46201873 2654 +29660 46204527 2588 +29661 46207115 2666 +29662 46209781 2678 +29663 46212459 2654 +29664 46215113 2588 +29665 46217701 2660 +29666 46220361 2672 +29667 46223033 2654 +29668 46225687 2594 +29669 46228281 2378 +29670 46230659 2378 +29671 46233037 614 +29672 46233651 1634 +29673 46235285 1118 +29674 46236403 1106 +29675 46237509 1082 +29676 46238591 2756 +29677 46241347 2738 +29678 46244085 2756 +29679 46246841 2738 +29680 46249579 620 +29681 46250199 620 +29682 46250819 620 +29683 46251439 2078 +29684 46253517 2090 +29685 46255607 2090 +29686 46257697 2072 +29687 46259769 2072 +29688 46261841 2090 +29689 46263931 1964 +29690 46265895 1964 +29691 46267859 1898 +29692 46269757 2696 +29693 46272453 2696 +29694 46275149 992 +29695 46276141 992 +29696 46277133 992 +29697 46278125 1016 +29698 46279141 1016 +29699 46280157 1016 +29700 46281173 2030 +29701 46283203 2030 +29702 46285233 2030 +29703 46287263 2030 +29704 46289293 380 +29705 46289673 620 +29706 46290293 332 +29707 46290625 584 +29708 46291209 374 +29709 46291583 596 +29710 46292179 428 +29711 46292607 530 +29712 46293137 506 +29713 46293643 530 +29714 46294173 512 +29715 46294685 752 +29716 46295437 746 +29717 46296183 752 +29718 46296935 1376 +29719 46298311 530 +29720 46298841 452 +29721 46299293 1028 +29722 46300321 1028 +29723 46301349 578 +29724 46301927 236 +29725 46302163 2036 +29726 46304199 2150 +29727 46306349 2024 +29728 46308373 2024 +29729 46310397 902 +29730 46311299 902 +29731 46312201 2030 +29732 46314231 2030 +29733 46316261 2030 +29734 46318291 2030 +29735 46320321 302 +29736 46320623 260 +29737 46320883 1886 +29738 46322769 1892 +29739 46324661 1892 +29740 46326553 1892 +29741 46328445 1886 +29742 46330331 1886 +29743 46332217 4106 +29744 46336323 770 +29745 46337093 686 +29746 46337779 716 +29747 46338495 908 +29748 46339403 638 +29749 46340041 3590 +29750 46343631 518 +29751 46344149 926 +29752 46345075 650 +29753 46345725 3590 +29754 46349315 512 +29755 46349827 1808 +29756 46351635 2912 +29757 46354547 2912 +29758 46357459 2912 +29759 46360371 2912 +29760 46363283 2912 +29761 46366195 2912 +29762 46369107 1010 +29763 46370117 1010 +29764 46371127 1010 +29765 46372137 482 +29766 46372619 482 +29767 46373101 482 +29768 46373583 476 +29769 46374059 476 +29770 46374535 476 +29771 46375011 470 +29772 46375481 488 +29773 46375969 476 +29774 46376445 494 +29775 46376939 584 +29776 46377523 584 +29777 46378107 1148 +29778 46379255 1142 +29779 46380397 1130 +29780 46381527 2864 +29781 46384391 2852 +29782 46387243 1796 +29783 46389039 1814 +29784 46390853 1034 +29785 46391887 1130 +29786 46393017 1058 +29787 46394075 938 +29788 46395013 56 +29789 46395069 938 +29790 46396007 62 +29791 46396069 1286 +29792 46397355 794 +29793 46398149 812 +29794 46398961 350 +29795 46399311 386 +29796 46399697 350 +29797 46400047 386 +29798 46400433 1646 +29799 46402079 1646 +29800 46403725 644 +29801 46404369 572 +29802 46404941 572 +29803 46405513 572 +29804 46406085 572 +29805 46406657 572 +29806 46407229 572 +29807 46407801 572 +29808 46408373 572 +29809 46408945 1004 +29810 46409949 476 +29811 46410425 2078 +29812 46412503 2072 +29813 46414575 1652 +29814 46416227 596 +29815 46416823 62 +29816 46416885 896 +29817 46417781 1778 +29818 46419559 914 +29819 46420473 1826 +29820 46422299 914 +29821 46423213 2288 +29822 46425501 2288 +29823 46427789 2138 +29824 46429927 2138 +29825 46432065 2156 +29826 46434221 2156 +29827 46436377 1238 +29828 46437615 3332 +29829 46440947 2498 +29830 46443445 1184 +29831 46444629 1136 +29832 46445765 1646 +29833 46447411 1676 +29834 46449087 1562 +29835 46450649 1898 +29836 46452547 1856 +29837 46454403 494 +29838 46454897 1040 +29839 46455937 1034 +29840 46456971 1022 +29841 46457993 536 +29842 46458529 542 +29843 46459071 542 +29844 46459613 536 +29845 46460149 2450 +29846 46462599 2882 +29847 46465481 2882 +29848 46468363 2882 +29849 46471245 2882 +29850 46474127 2882 +29851 46477009 2882 +29852 46479891 2738 +29853 46482629 2738 +29854 46485367 2882 +29855 46488249 2882 +29856 46491131 2882 +29857 46494013 2882 +29858 46496895 962 +29859 46497857 962 +29860 46498819 4544 +29861 46503363 776 +29862 46504139 776 +29863 46504915 962 +29864 46505877 2012 +29865 46507889 1310 +29866 46509199 1268 +29867 46510467 2270 +29868 46512737 710 +29869 46513447 902 +29870 46514349 1940 +29871 46516289 1940 +29872 46518229 1010 +29873 46519239 1004 +29874 46520243 1058 +29875 46521301 1058 +29876 46522359 4394 +29877 46526753 4394 +29878 46531147 2018 +29879 46533165 1130 +29880 46534295 2294 +29881 46536589 2294 +29882 46538883 1616 +29883 46540499 1616 +29884 46542115 644 +29885 46542759 746 +29886 46543505 746 +29887 46544251 2366 +29888 46546617 2258 +29889 46548875 2258 +29890 46551133 1952 +29891 46553085 998 +29892 46554083 998 +29893 46555081 1502 +29894 46556583 1496 +29895 46558079 1220 +29896 46559299 2750 +29897 46562049 860 +29898 46562909 1100 +29899 46564009 1886 +29900 46565895 1778 +29901 46567673 1904 +29902 46569577 2852 +29903 46572429 2846 +29904 46575275 566 +29905 46575841 38 +29906 46575879 1874 +29907 46577753 1832 +29908 46579585 1832 +29909 46581417 1820 +29910 46583237 1466 +29911 46584703 1550 +29912 46586253 1586 +29913 46587839 1574 +29914 46589413 1580 +29915 46590993 530 +29916 46591523 530 +29917 46592053 3812 +29918 46595865 3812 +29919 46599677 614 +29920 46600291 1820 +29921 46602111 662 +29922 46602773 686 +29923 46603459 650 +29924 46604109 680 +29925 46604789 662 +29926 46605451 686 +29927 46606137 650 +29928 46606787 680 +29929 46607467 662 +29930 46608129 686 +29931 46608815 650 +29932 46609465 680 +29933 46610145 1466 +29934 46611611 1424 +29935 46613035 1466 +29936 46614501 1424 +29937 46615925 1070 +29938 46616995 2822 +29939 46619817 1850 +29940 46621667 764 +29941 46622431 752 +29942 46623183 428 +29943 46623611 380 +29944 46623991 428 +29945 46624419 380 +29946 46624799 1622 +29947 46626421 1622 +29948 46628043 578 +29949 46628621 590 +29950 46629211 1310 +29951 46630521 1286 +29952 46631807 1310 +29953 46633117 1868 +29954 46634985 2108 +29955 46637093 2366 +29956 46639459 1280 +29957 46640739 1244 +29958 46641983 1514 +29959 46643497 1136 +29960 46644633 1052 +29961 46645685 1040 +29962 46646725 1424 +29963 46648149 1418 +29964 46649567 1424 +29965 46650991 1424 +29966 46652415 1430 +29967 46653845 1418 +29968 46655263 2744 +29969 46658007 2408 +29970 46660415 914 +29971 46661329 452 +29972 46661781 2252 +29973 46664033 2270 +29974 46666303 392 +29975 46666695 770 +29976 46667465 416 +29977 46667881 764 +29978 46668645 668 +29979 46669313 668 +29980 46669981 1706 +29981 46671687 1706 +29982 46673393 608 +29983 46674001 608 +29984 46674609 752 +29985 46675361 1532 +29986 46676893 1808 +29987 46678701 1778 +29988 46680479 962 +29989 46681441 956 +29990 46682397 968 +29991 46683365 962 +29992 46684327 956 +29993 46685283 968 +29994 46686251 1310 +29995 46687561 2030 +29996 46689591 2030 +29997 46691621 1250 +29998 46692871 2738 +29999 46695609 2738 +30000 46698347 2738 +30001 46701085 2738 +30002 46703823 2738 +30003 46706561 2738 +30004 46709299 1712 +30005 46711011 1712 +30006 46712723 1712 +30007 46714435 1712 +30008 46716147 1712 +30009 46717859 1712 +30010 46719571 1712 +30011 46721283 1712 +30012 46722995 1712 +30013 46724707 1712 +30014 46726419 1712 +30015 46728131 1712 +30016 46729843 170 +30017 46730013 170 +30018 46730183 530 +30019 46730713 4322 +30020 46735035 4430 +30021 46739465 1292 +30022 46740757 1292 +30023 46742049 3458 +30024 46745507 3458 +30025 46748965 1376 +30026 46750341 1370 +30027 46751711 1352 +30028 46753063 1376 +30029 46754439 1370 +30030 46755809 1358 +30031 46757167 1598 +30032 46758765 1604 +30033 46760369 3812 +30034 46764181 3812 +30035 46767993 1982 +30036 46769975 1274 +30037 46771249 1286 +30038 46772535 458 +30039 46772993 464 +30040 46773457 470 +30041 46773927 2294 +30042 46776221 488 +30043 46776709 512 +30044 46777221 2168 +30045 46779389 2168 +30046 46781557 2168 +30047 46783725 2168 +30048 46785893 2654 +30049 46788547 2078 +30050 46790625 2048 +30051 46792673 1178 +30052 46793851 1340 +30053 46795191 860 +30054 46796051 878 +30055 46796929 854 +30056 46797783 2870 +30057 46800653 2870 +30058 46803523 2918 +30059 46806441 2906 +30060 46809347 104 +30061 46809451 104 +30062 46809555 104 +30063 46809659 104 +30064 46809763 104 +30065 46809867 104 +30066 46809971 104 +30067 46810075 104 +30068 46810179 2270 +30069 46812449 2270 +30070 46814719 2270 +30071 46816989 2270 +30072 46819259 1238 +30073 46820497 980 +30074 46821477 1070 +30075 46822547 1070 +30076 46823617 644 +30077 46824261 668 +30078 46824929 140 +30079 46825069 170 +30080 46825239 2450 +30081 46827689 2420 +30082 46830109 2450 +30083 46832559 2450 +30084 46835009 2450 +30085 46837459 2450 +30086 46839909 3278 +30087 46843187 1322 +30088 46844509 1274 +30089 46845783 902 +30090 46846685 902 +30091 46847587 398 +30092 46847985 392 +30093 46848377 740 +30094 46849117 5054 +30095 46854171 884 +30096 46855055 884 +30097 46855939 884 +30098 46856823 1712 +30099 46858535 1718 +30100 46860253 1718 +30101 46861971 1718 +30102 46863689 1718 +30103 46865407 1718 +30104 46867125 1718 +30105 46868843 1718 +30106 46870561 1718 +30107 46872279 3344 +30108 46875623 1748 +30109 46877371 818 +30110 46878189 2138 +30111 46880327 2138 +30112 46882465 2006 +30113 46884471 2006 +30114 46886477 2300 +30115 46888777 2300 +30116 46891077 2816 +30117 46893893 1724 +30118 46895617 320 +30119 46895937 2672 +30120 46898609 1610 +30121 46900219 1652 +30122 46901871 1634 +30123 46903505 1646 +30124 46905151 1622 +30125 46906773 1574 +30126 46908347 1964 +30127 46910311 1448 +30128 46911759 1460 +30129 46913219 1484 +30130 46914703 1544 +30131 46916247 1514 +30132 46917761 1538 +30133 46919299 1544 +30134 46920843 1502 +30135 46922345 1538 +30136 46923883 1538 +30137 46925421 1532 +30138 46926953 1508 +30139 46928461 1538 +30140 46929999 2150 +30141 46932149 2072 +30142 46934221 440 +30143 46934661 482 +30144 46935143 476 +30145 46935619 470 +30146 46936089 2570 +30147 46938659 2534 +30148 46941193 1028 +30149 46942221 1772 +30150 46943993 1772 +30151 46945765 1034 +30152 46946799 1772 +30153 46948571 1772 +30154 46950343 1028 +30155 46951371 1028 +30156 46952399 1772 +30157 46954171 2654 +30158 46956825 2654 +30159 46959479 2900 +30160 46962379 2900 +30161 46965279 902 +30162 46966181 668 +30163 46966849 3212 +30164 46970061 3212 +30165 46973273 17701 +30166 46990974 17701 +30167 47008675 1574 +30168 47010249 1574 +30169 47011823 1574 +30170 47013397 806 +30171 47014203 704 +30172 47014907 722 +30173 47015629 1454 +30174 47017083 1454 +30175 47018537 1442 +30176 47019979 1460 +30177 47021439 1364 +30178 47022803 2180 +30179 47024983 2132 +30180 47027115 932 +30181 47028047 1358 +30182 47029405 1340 +30183 47030745 1772 +30184 47032517 1772 +30185 47034289 1862 +30186 47036151 1874 +30187 47038025 1154 +30188 47039179 662 +30189 47039841 662 +30190 47040503 662 +30191 47041165 662 +30192 47041827 2960 +30193 47044787 572 +30194 47045359 572 +30195 47045931 2840 +30196 47048771 728 +30197 47049499 728 +30198 47050227 818 +30199 47051045 824 +30200 47051869 488 +30201 47052357 980 +30202 47053337 416 +30203 47053753 986 +30204 47054739 1916 +30205 47056655 1922 +30206 47058577 1604 +30207 47060181 1574 +30208 47061755 404 +30209 47062159 458 +30210 47062617 1226 +30211 47063843 452 +30212 47064295 446 +30213 47064741 446 +30214 47065187 446 +30215 47065633 446 +30216 47066079 452 +30217 47066531 446 +30218 47066977 1850 +30219 47068827 2102 +30220 47070929 1850 +30221 47072779 2102 +30222 47074881 1850 +30223 47076731 2102 +30224 47078833 2054 +30225 47080887 644 +30226 47081531 968 +30227 47082499 968 +30228 47083467 404 +30229 47083871 68 +30230 47083939 1136 +30231 47085075 464 +30232 47085539 1136 +30233 47086675 464 +30234 47087139 746 +30235 47087885 764 +30236 47088649 794 +30237 47089443 800 +30238 47090243 806 +30239 47091049 1358 +30240 47092407 1346 +30241 47093753 1376 +30242 47095129 1274 +30243 47096403 2978 +30244 47099381 782 +30245 47100163 866 +30246 47101029 3398 +30247 47104427 2624 +30248 47107051 2168 +30249 47109219 2528 +30250 47111747 1214 +30251 47112961 1214 +30252 47114175 2126 +30253 47116301 1646 +30254 47117947 2714 +30255 47120661 1724 +30256 47122385 872 +30257 47123257 1724 +30258 47124981 758 +30259 47125739 764 +30260 47126503 2834 +30261 47129337 5629 +30262 47134966 1556 +30263 47136522 1340 +30264 47137862 1316 +30265 47139178 1496 +30266 47140674 2354 +30267 47143028 2354 +30268 47145382 1334 +30269 47146716 1052 +30270 47147768 1562 +30271 47149330 1046 +30272 47150376 380 +30273 47150756 542 +30274 47151298 830 +30275 47152128 518 +30276 47152646 2702 +30277 47155348 518 +30278 47155866 2702 +30279 47158568 3212 +30280 47161780 1190 +30281 47162970 482 +30282 47163452 1892 +30283 47165344 1232 +30284 47166576 632 +30285 47167208 632 +30286 47167840 632 +30287 47168472 632 +30288 47169104 1472 +30289 47170576 176 +30290 47170752 2804 +30291 47173556 2810 +30292 47176366 206 +30293 47176572 74 +30294 47176646 4352 +30295 47180998 4358 +30296 47185356 1250 +30297 47186606 1244 +30298 47187850 860 +30299 47188710 860 +30300 47189570 1220 +30301 47190790 1190 +30302 47191980 1790 +30303 47193770 793 +30304 47194563 1532 +30305 47196095 1328 +30306 47197423 1280 +30307 47198703 2420 +30308 47201123 1165 +30309 47202288 2156 +30310 47204444 572 +30311 47205016 692 +30312 47205708 1454 +30313 47207162 740 +30314 47207902 1148 +30315 47209050 932 +30316 47209982 620 +30317 47210602 890 +30318 47211492 524 +30319 47212016 1064 +30320 47213080 422 +30321 47213502 308 +30322 47213810 1226 +30323 47215036 290 +30324 47215326 818 +30325 47216144 650 +30326 47216794 1226 +30327 47218020 1214 +30328 47219234 620 +30329 47219854 554 +30330 47220408 926 +30331 47221334 1130 +30332 47222464 926 +30333 47223390 1058 +30334 47224448 962 +30335 47225410 614 +30336 47226024 788 +30337 47226812 374 +30338 47227186 710 +30339 47227896 794 +30340 47228690 818 +30341 47229508 758 +30342 47230266 1496 +30343 47231762 1766 +30344 47233528 776 +30345 47234304 662 +30346 47234966 1418 +30347 47236384 1358 +30348 47237742 1586 +30349 47239328 434 +30350 47239762 434 +30351 47240196 1556 +30352 47241752 1556 +30353 47243308 1556 +30354 47244864 4040 +30355 47248904 1556 +30356 47250460 1598 +30357 47252058 764 +30358 47252822 968 +30359 47253790 968 +30360 47254758 446 +30361 47255204 446 +30362 47255650 1406 +30363 47257056 620 +30364 47257676 620 +30365 47258296 692 +30366 47258988 692 +30367 47259680 722 +30368 47260402 746 +30369 47261148 500 +30370 47261648 512 +30371 47262160 2282 +30372 47264442 2030 +30373 47266472 1772 +30374 47268244 2030 +30375 47270274 1772 +30376 47272046 650 +30377 47272696 638 +30378 47273334 620 +30379 47273954 644 +30380 47274598 650 +30381 47275248 638 +30382 47275886 620 +30383 47276506 644 +30384 47277150 1724 +30385 47278874 434 +30386 47279308 458 +30387 47279766 2096 +30388 47281862 458 +30389 47282320 2714 +30390 47285034 2714 +30391 47287748 2468 +30392 47290216 2456 +30393 47292672 2468 +30394 47295140 2462 +30395 47297602 2462 +30396 47300064 2456 +30397 47302520 4196 +30398 47306716 32 +30399 47306748 686 +30400 47307434 698 +30401 47308132 806 +30402 47308938 1238 +30403 47310176 1232 +30404 47311408 1160 +30405 47312568 1160 +30406 47313728 1346 +30407 47315074 1328 +30408 47316402 1310 +30409 47317712 1292 +30410 47319004 1820 +30411 47320824 1670 +30412 47322494 1676 +30413 47324170 1466 +30414 47325636 1442 +30415 47327078 1646 +30416 47328724 164 +30417 47328888 1466 +30418 47330354 1442 +30419 47331796 1646 +30420 47333442 164 +30421 47333606 1466 +30422 47335072 1442 +30423 47336514 1646 +30424 47338160 164 +30425 47338324 1466 +30426 47339790 1442 +30427 47341232 1646 +30428 47342878 164 +30429 47343042 1466 +30430 47344508 1442 +30431 47345950 1646 +30432 47347596 164 +30433 47347760 1466 +30434 47349226 1442 +30435 47350668 1646 +30436 47352314 164 +30437 47352478 1466 +30438 47353944 1442 +30439 47355386 1646 +30440 47357032 164 +30441 47357196 1466 +30442 47358662 1442 +30443 47360104 1646 +30444 47361750 164 +30445 47361914 1466 +30446 47363380 1442 +30447 47364822 1646 +30448 47366468 164 +30449 47366632 1466 +30450 47368098 1442 +30451 47369540 1646 +30452 47371186 164 +30453 47371350 1466 +30454 47372816 1442 +30455 47374258 1646 +30456 47375904 164 +30457 47376068 1466 +30458 47377534 1442 +30459 47378976 1646 +30460 47380622 164 +30461 47380786 1466 +30462 47382252 1442 +30463 47383694 1646 +30464 47385340 164 +30465 47385504 1466 +30466 47386970 1442 +30467 47388412 1646 +30468 47390058 164 +30469 47390222 1466 +30470 47391688 1442 +30471 47393130 1646 +30472 47394776 164 +30473 47394940 1466 +30474 47396406 1442 +30475 47397848 1646 +30476 47399494 164 +30477 47399658 1466 +30478 47401124 1442 +30479 47402566 1646 +30480 47404212 164 +30481 47404376 1466 +30482 47405842 1442 +30483 47407284 1646 +30484 47408930 164 +30485 47409094 1466 +30486 47410560 1442 +30487 47412002 1646 +30488 47413648 164 +30489 47413812 1466 +30490 47415278 1442 +30491 47416720 1646 +30492 47418366 164 +30493 47418530 1466 +30494 47419996 1442 +30495 47421438 1646 +30496 47423084 164 +30497 47423248 1466 +30498 47424714 1442 +30499 47426156 1646 +30500 47427802 164 +30501 47427966 1466 +30502 47429432 1442 +30503 47430874 1646 +30504 47432520 164 +30505 47432684 1466 +30506 47434150 1442 +30507 47435592 1646 +30508 47437238 164 +30509 47437402 1466 +30510 47438868 1442 +30511 47440310 1646 +30512 47441956 164 +30513 47442120 1466 +30514 47443586 1442 +30515 47445028 1646 +30516 47446674 164 +30517 47446838 1466 +30518 47448304 1442 +30519 47449746 1646 +30520 47451392 164 +30521 47451556 1466 +30522 47453022 1442 +30523 47454464 1646 +30524 47456110 164 +30525 47456274 1466 +30526 47457740 1442 +30527 47459182 1646 +30528 47460828 164 +30529 47460992 1466 +30530 47462458 1442 +30531 47463900 1646 +30532 47465546 164 +30533 47465710 1466 +30534 47467176 1442 +30535 47468618 1646 +30536 47470264 164 +30537 47470428 1466 +30538 47471894 1442 +30539 47473336 1646 +30540 47474982 164 +30541 47475146 1466 +30542 47476612 1442 +30543 47478054 1646 +30544 47479700 164 +30545 47479864 1466 +30546 47481330 1442 +30547 47482772 1646 +30548 47484418 164 +30549 47484582 1466 +30550 47486048 1442 +30551 47487490 1646 +30552 47489136 164 +30553 47489300 1466 +30554 47490766 1442 +30555 47492208 1646 +30556 47493854 164 +30557 47494018 1466 +30558 47495484 1442 +30559 47496926 1646 +30560 47498572 164 +30561 47498736 1466 +30562 47500202 1442 +30563 47501644 1646 +30564 47503290 164 +30565 47503454 1466 +30566 47504920 1442 +30567 47506362 1646 +30568 47508008 164 +30569 47508172 1466 +30570 47509638 1442 +30571 47511080 1646 +30572 47512726 164 +30573 47512890 1466 +30574 47514356 1442 +30575 47515798 1646 +30576 47517444 164 +30577 47517608 1466 +30578 47519074 1442 +30579 47520516 1646 +30580 47522162 164 +30581 47522326 1466 +30582 47523792 1442 +30583 47525234 1646 +30584 47526880 164 +30585 47527044 1466 +30586 47528510 1442 +30587 47529952 1646 +30588 47531598 164 +30589 47531762 1466 +30590 47533228 1442 +30591 47534670 1646 +30592 47536316 164 +30593 47536480 1466 +30594 47537946 1442 +30595 47539388 1646 +30596 47541034 164 +30597 47541198 1466 +30598 47542664 1442 +30599 47544106 1646 +30600 47545752 164 +30601 47545916 1466 +30602 47547382 1442 +30603 47548824 1646 +30604 47550470 164 +30605 47550634 1466 +30606 47552100 1442 +30607 47553542 1646 +30608 47555188 164 +30609 47555352 1466 +30610 47556818 1442 +30611 47558260 1646 +30612 47559906 164 +30613 47560070 1466 +30614 47561536 1442 +30615 47562978 1646 +30616 47564624 164 +30617 47564788 1466 +30618 47566254 1442 +30619 47567696 1646 +30620 47569342 164 +30621 47569506 1466 +30622 47570972 1442 +30623 47572414 1646 +30624 47574060 164 +30625 47574224 1466 +30626 47575690 1442 +30627 47577132 1646 +30628 47578778 164 +30629 47578942 1466 +30630 47580408 1442 +30631 47581850 1646 +30632 47583496 164 +30633 47583660 1466 +30634 47585126 1442 +30635 47586568 1646 +30636 47588214 164 +30637 47588378 1466 +30638 47589844 1442 +30639 47591286 1646 +30640 47592932 164 +30641 47593096 1466 +30642 47594562 1442 +30643 47596004 1646 +30644 47597650 164 +30645 47597814 1466 +30646 47599280 1442 +30647 47600722 1646 +30648 47602368 164 +30649 47602532 1466 +30650 47603998 1442 +30651 47605440 1646 +30652 47607086 164 +30653 47607250 1202 +30654 47608452 1046 +30655 47609498 614 +30656 47610112 614 +30657 47610726 86 +30658 47610812 3710 +30659 47614522 1394 +30660 47615916 2281 +30661 47618197 1490 +30662 47619687 1538 +30663 47621225 1352 +30664 47622577 1280 +30665 47623857 2420 +30666 47626277 1105 +30667 47627382 2150 +30668 47629532 572 +30669 47630104 662 +30670 47630766 1394 +30671 47632160 740 +30672 47632900 1148 +30673 47634048 620 +30674 47634668 890 +30675 47635558 524 +30676 47636082 980 +30677 47637062 416 +30678 47637478 308 +30679 47637786 1268 +30680 47639054 812 +30681 47639866 650 +30682 47640516 1226 +30683 47641742 1202 +30684 47642944 638 +30685 47643582 554 +30686 47644136 926 +30687 47645062 1130 +30688 47646192 878 +30689 47647070 1058 +30690 47648128 950 +30691 47649078 602 +30692 47649680 782 +30693 47650462 380 +30694 47650842 710 +30695 47651552 812 +30696 47652364 818 +30697 47653182 758 +30698 47653940 1496 +30699 47655436 1658 +30700 47657094 776 +30701 47657870 662 +30702 47658532 1418 +30703 47659950 1358 +30704 47661308 2132 +30705 47663440 122 +30706 47663562 3728 +30707 47667290 1472 +30708 47668762 818 +30709 47669580 524 +30710 47670104 2420 +30711 47672524 1117 +30712 47673641 2156 +30713 47675797 596 +30714 47676393 662 +30715 47677055 1454 +30716 47678509 740 +30717 47679249 1148 +30718 47680397 620 +30719 47681017 890 +30720 47681907 524 +30721 47682431 998 +30722 47683429 422 +30723 47683851 308 +30724 47684159 1268 +30725 47685427 908 +30726 47686335 818 +30727 47687153 1226 +30728 47688379 1214 +30729 47689593 614 +30730 47690207 554 +30731 47690761 926 +30732 47691687 1130 +30733 47692817 896 +30734 47693713 1064 +30735 47694777 938 +30736 47695715 614 +30737 47696329 794 +30738 47697123 716 +30739 47697839 812 +30740 47698651 818 +30741 47699469 650 +30742 47700119 776 +30743 47700895 758 +30744 47701653 1496 +30745 47703149 662 +30746 47703811 1418 +30747 47705229 1358 +30748 47706587 1766 +30749 47708353 212 +30750 47708565 1838 +30751 47710403 1898 +30752 47712301 1838 +30753 47714139 1898 +30754 47716037 2096 +30755 47718133 2048 +30756 47720181 2096 +30757 47722277 2048 +30758 47724325 1442 +30759 47725767 1442 +30760 47727209 1442 +30761 47728651 1442 +30762 47730093 1442 +30763 47731535 1442 +30764 47732977 1442 +30765 47734419 1442 +30766 47735861 1442 +30767 47737303 1442 +30768 47738745 1442 +30769 47740187 1442 +30770 47741629 1796 +30771 47743425 1796 +30772 47745221 1796 +30773 47747017 1796 +30774 47748813 422 +30775 47749235 422 +30776 47749657 422 +30777 47750079 422 +30778 47750501 3140 +30779 47753641 3194 +30780 47756835 350 +30781 47757185 350 +30782 47757535 3140 +30783 47760675 3194 +30784 47763869 314 +30785 47764183 2810 +30786 47766993 2012 +30787 47769005 5528 +30788 47774533 5546 +30789 47780079 6230 +30790 47786309 2426 +30791 47788735 2330 +30792 47791065 1508 +30793 47792573 1544 +30794 47794117 1508 +30795 47795625 1730 +30796 47797355 1730 +30797 47799085 1730 +30798 47800815 1730 +30799 47802545 1730 +30800 47804275 1730 +30801 47806005 1964 +30802 47807969 1928 +30803 47809897 1616 +30804 47811513 1622 +30805 47813135 1706 +30806 47814841 1142 +30807 47815983 1142 +30808 47817125 536 +30809 47817661 62 +30810 47817723 476 +30811 47818199 62 +30812 47818261 476 +30813 47818737 5630 +30814 47824367 2888 +30815 47827255 1490 +30816 47828745 1490 +30817 47830235 1490 +30818 47831725 1484 +30819 47833209 1484 +30820 47834693 1490 +30821 47836183 1484 +30822 47837667 1490 +30823 47839157 578 +30824 47839735 1610 +30825 47841345 584 +30826 47841929 62 +30827 47841991 620 +30828 47842611 614 +30829 47843225 2606 +30830 47845831 1514 +30831 47847345 788 +30832 47848133 788 +30833 47848921 5006 +30834 47853927 1184 +30835 47855111 1160 +30836 47856271 1922 +30837 47858193 1052 +30838 47859245 554 +30839 47859799 554 +30840 47860353 4514 +30841 47864867 722 +30842 47865589 4514 +30843 47870103 722 +30844 47870825 4514 +30845 47875339 722 +30846 47876061 4514 +30847 47880575 722 +30848 47881297 4016 +30849 47885313 4016 +30850 47889329 4016 +30851 47893345 2150 +30852 47895495 2144 +30853 47897639 1118 +30854 47898757 590 +30855 47899347 356 +30856 47899703 734 +30857 47900437 830 +30858 47901267 356 +30859 47901623 2240 +30860 47903863 2240 +30861 47906103 2240 +30862 47908343 2240 +30863 47910583 1436 +30864 47912019 1826 +30865 47913845 1826 +30866 47915671 536 +30867 47916207 1334 +30868 47917541 1658 +30869 47919199 1256 +30870 47920455 1808 +30871 47922263 1424 +30872 47923687 1256 +30873 47924943 1808 +30874 47926751 1424 +30875 47928175 1256 +30876 47929431 1808 +30877 47931239 1424 +30878 47932663 1256 +30879 47933919 1808 +30880 47935727 1424 +30881 47937151 1256 +30882 47938407 1808 +30883 47940215 1424 +30884 47941639 1256 +30885 47942895 1808 +30886 47944703 1424 +30887 47946127 1256 +30888 47947383 1808 +30889 47949191 1424 +30890 47950615 1256 +30891 47951871 1808 +30892 47953679 1424 +30893 47955103 1256 +30894 47956359 1808 +30895 47958167 1424 +30896 47959591 1256 +30897 47960847 1808 +30898 47962655 1424 +30899 47964079 1256 +30900 47965335 1808 +30901 47967143 1424 +30902 47968567 1256 +30903 47969823 1808 +30904 47971631 1424 +30905 47973055 1256 +30906 47974311 1808 +30907 47976119 1424 +30908 47977543 1256 +30909 47978799 1808 +30910 47980607 1424 +30911 47982031 1256 +30912 47983287 1808 +30913 47985095 1424 +30914 47986519 1256 +30915 47987775 1808 +30916 47989583 1424 +30917 47991007 1256 +30918 47992263 1808 +30919 47994071 1424 +30920 47995495 1256 +30921 47996751 1808 +30922 47998559 1424 +30923 47999983 1256 +30924 48001239 1808 +30925 48003047 1424 +30926 48004471 1256 +30927 48005727 1808 +30928 48007535 1424 +30929 48008959 1256 +30930 48010215 1808 +30931 48012023 1424 +30932 48013447 1256 +30933 48014703 1808 +30934 48016511 1424 +30935 48017935 1256 +30936 48019191 1808 +30937 48020999 1424 +30938 48022423 1256 +30939 48023679 1808 +30940 48025487 1424 +30941 48026911 1256 +30942 48028167 1808 +30943 48029975 1424 +30944 48031399 1256 +30945 48032655 1808 +30946 48034463 1424 +30947 48035887 1256 +30948 48037143 1808 +30949 48038951 1424 +30950 48040375 1256 +30951 48041631 1808 +30952 48043439 1424 +30953 48044863 1256 +30954 48046119 1808 +30955 48047927 1424 +30956 48049351 1256 +30957 48050607 1808 +30958 48052415 1424 +30959 48053839 1256 +30960 48055095 1808 +30961 48056903 1424 +30962 48058327 1256 +30963 48059583 1808 +30964 48061391 1424 +30965 48062815 1256 +30966 48064071 1808 +30967 48065879 1424 +30968 48067303 1256 +30969 48068559 1808 +30970 48070367 1424 +30971 48071791 1256 +30972 48073047 1808 +30973 48074855 1424 +30974 48076279 1256 +30975 48077535 1808 +30976 48079343 1424 +30977 48080767 1256 +30978 48082023 1808 +30979 48083831 1424 +30980 48085255 1256 +30981 48086511 1808 +30982 48088319 1424 +30983 48089743 1256 +30984 48090999 1808 +30985 48092807 1424 +30986 48094231 1256 +30987 48095487 1808 +30988 48097295 1424 +30989 48098719 1256 +30990 48099975 1808 +30991 48101783 1424 +30992 48103207 1256 +30993 48104463 1808 +30994 48106271 1424 +30995 48107695 1256 +30996 48108951 1808 +30997 48110759 1424 +30998 48112183 1256 +30999 48113439 1808 +31000 48115247 1424 +31001 48116671 1256 +31002 48117927 1808 +31003 48119735 1424 +31004 48121159 1256 +31005 48122415 1808 +31006 48124223 1424 +31007 48125647 1256 +31008 48126903 1808 +31009 48128711 1424 +31010 48130135 1256 +31011 48131391 1808 +31012 48133199 1424 +31013 48134623 1256 +31014 48135879 1808 +31015 48137687 1424 +31016 48139111 1256 +31017 48140367 1808 +31018 48142175 1424 +31019 48143599 1256 +31020 48144855 1808 +31021 48146663 1424 +31022 48148087 1256 +31023 48149343 1808 +31024 48151151 1424 +31025 48152575 1256 +31026 48153831 1808 +31027 48155639 1424 +31028 48157063 1256 +31029 48158319 1808 +31030 48160127 1424 +31031 48161551 1256 +31032 48162807 1808 +31033 48164615 1424 +31034 48166039 1256 +31035 48167295 1808 +31036 48169103 1424 +31037 48170527 1256 +31038 48171783 1808 +31039 48173591 1424 +31040 48175015 1256 +31041 48176271 1808 +31042 48178079 1424 +31043 48179503 1256 +31044 48180759 1808 +31045 48182567 1424 +31046 48183991 1256 +31047 48185247 1808 +31048 48187055 1424 +31049 48188479 926 +31050 48189405 926 +31051 48190331 344 +31052 48190675 344 +31053 48191019 344 +31054 48191363 344 +31055 48191707 344 +31056 48192051 344 +31057 48192395 344 +31058 48192739 344 +31059 48193083 332 +31060 48193415 332 +31061 48193747 560 +31062 48194307 560 +31063 48194867 632 +31064 48195499 632 +31065 48196131 632 +31066 48196763 632 +31067 48197395 2462 +31068 48199857 2462 +31069 48202319 2216 +31070 48204535 866 +31071 48205401 866 +31072 48206267 1982 +31073 48208249 1982 +31074 48210231 3200 +31075 48213431 170 +31076 48213601 170 +31077 48213771 170 +31078 48213941 338 +31079 48214279 338 +31080 48214617 920 +31081 48215537 920 +31082 48216457 2084 +31083 48218541 2084 +31084 48220625 1274 +31085 48221899 956 +31086 48222855 968 +31087 48223823 728 +31088 48224551 728 +31089 48225279 368 +31090 48225647 356 +31091 48226003 620 +31092 48226623 608 +31093 48227231 2492 +31094 48229723 656 +31095 48230379 650 +31096 48231029 2006 +31097 48233035 1388 +31098 48234423 1634 +31099 48236057 506 +31100 48236563 1382 +31101 48237945 680 +31102 48238625 2300 +31103 48240925 1298 +31104 48242223 1946 +31105 48244169 1946 +31106 48246115 2192 +31107 48248307 1910 +31108 48250217 554 +31109 48250771 884 +31110 48251655 830 +31111 48252485 830 +31112 48253315 1016 +31113 48254331 1040 +31114 48255371 746 +31115 48256117 674 +31116 48256791 2258 +31117 48259049 1304 +31118 48260353 6464 +31119 48266817 6464 +31120 48273281 6464 +31121 48279745 6464 +31122 48286209 3188 +31123 48289397 1520 +31124 48290917 1520 +31125 48292437 884 +31126 48293321 926 +31127 48294247 4304 +31128 48298551 4304 +31129 48302855 4304 +31130 48307159 782 +31131 48307941 782 +31132 48308723 1970 +31133 48310693 782 +31134 48311475 782 +31135 48312257 1226 +31136 48313483 1220 +31137 48314703 1934 +31138 48316637 1022 +31139 48317659 4334 +31140 48321993 1280 +31141 48323273 860 +31142 48324133 884 +31143 48325017 2030 +31144 48327047 386 +31145 48327433 956 +31146 48328389 1196 +31147 48329585 320 +31148 48329905 434 +31149 48330339 962 +31150 48331301 422 +31151 48331723 962 +31152 48332685 962 +31153 48333647 962 +31154 48334609 962 +31155 48335571 962 +31156 48336533 962 +31157 48337495 962 +31158 48338457 2078 +31159 48340535 4508 +31160 48345043 6200 +31161 48351243 6200 +31162 48357443 584 +31163 48358027 590 +31164 48358617 986 +31165 48359603 44 +31166 48359647 530 +31167 48360177 2888 +31168 48363065 1478 +31169 48364543 770 +31170 48365313 1430 +31171 48366743 1628 +31172 48368371 1634 +31173 48370005 1640 +31174 48371645 1658 +31175 48373303 1634 +31176 48374937 1616 +31177 48376553 1640 +31178 48378193 1616 +31179 48379809 1622 +31180 48381431 1610 +31181 48383041 1928 +31182 48384969 1916 +31183 48386885 1910 +31184 48388795 1904 +31185 48390699 1934 +31186 48392633 1904 +31187 48394537 1904 +31188 48396441 656 +31189 48397097 656 +31190 48397753 656 +31191 48398409 4496 +31192 48402905 3206 +31193 48406111 1142 +31194 48407253 1136 +31195 48408389 1130 +31196 48409519 1034 +31197 48410553 5798 +31198 48416351 5798 +31199 48422149 5798 +31200 48427947 1190 +31201 48429137 1190 +31202 48430327 5636 +31203 48435963 5636 +31204 48441599 1106 +31205 48442705 1076 +31206 48443781 1124 +31207 48444905 1076 +31208 48445981 1124 +31209 48447105 1094 +31210 48448199 1088 +31211 48449287 1934 +31212 48451221 1904 +31213 48453125 116 +31214 48453241 116 +31215 48453357 362 +31216 48453719 356 +31217 48454075 356 +31218 48454431 362 +31219 48454793 356 +31220 48455149 356 +31221 48455505 1010 +31222 48456515 1970 +31223 48458485 1004 +31224 48459489 1958 +31225 48461447 1010 +31226 48462457 2000 +31227 48464457 974 +31228 48465431 1934 +31229 48467365 4274 +31230 48471639 644 +31231 48472283 854 +31232 48473137 482 +31233 48473619 644 +31234 48474263 734 +31235 48474997 734 +31236 48475731 752 +31237 48476483 758 +31238 48477241 764 +31239 48478005 764 +31240 48478769 350 +31241 48479119 716 +31242 48479835 722 +31243 48480557 1346 +31244 48481903 1352 +31245 48483255 1340 +31246 48484595 1358 +31247 48485953 1352 +31248 48487305 1346 +31249 48488651 1274 +31250 48489925 1070 +31251 48490995 1070 +31252 48492065 1688 +31253 48493753 1724 +31254 48495477 878 +31255 48496355 1712 +31256 48498067 2438 +31257 48500505 1700 +31258 48502205 722 +31259 48502927 746 +31260 48503673 740 +31261 48504413 686 +31262 48505099 1688 +31263 48506787 1688 +31264 48508475 1688 +31265 48510163 1688 +31266 48511851 626 +31267 48512477 608 +31268 48513085 638 +31269 48513723 602 +31270 48514325 608 +31271 48514933 578 +31272 48515511 632 +31273 48516143 614 +31274 48516757 686 +31275 48517443 614 +31276 48518057 698 +31277 48518755 608 +31278 48519363 686 +31279 48520049 614 +31280 48520663 698 +31281 48521361 608 +31282 48521969 656 +31283 48522625 2726 +31284 48525351 1814 +31285 48527165 4874 +31286 48532039 872 +31287 48532911 866 +31288 48533777 860 +31289 48534637 872 +31290 48535509 872 +31291 48536381 872 +31292 48537253 872 +31293 48538125 878 +31294 48539003 872 +31295 48539875 872 +31296 48540747 884 +31297 48541631 950 +31298 48542581 872 +31299 48543453 872 +31300 48544325 908 +31301 48545233 872 +31302 48546105 872 +31303 48546977 866 +31304 48547843 872 +31305 48548715 872 +31306 48549587 872 +31307 48550459 866 +31308 48551325 860 +31309 48552185 872 +31310 48553057 872 +31311 48553929 872 +31312 48554801 872 +31313 48555673 878 +31314 48556551 872 +31315 48557423 872 +31316 48558295 884 +31317 48559179 950 +31318 48560129 872 +31319 48561001 872 +31320 48561873 908 +31321 48562781 872 +31322 48563653 872 +31323 48564525 866 +31324 48565391 872 +31325 48566263 872 +31326 48567135 872 +31327 48568007 866 +31328 48568873 860 +31329 48569733 872 +31330 48570605 872 +31331 48571477 872 +31332 48572349 872 +31333 48573221 878 +31334 48574099 872 +31335 48574971 872 +31336 48575843 884 +31337 48576727 950 +31338 48577677 872 +31339 48578549 872 +31340 48579421 908 +31341 48580329 872 +31342 48581201 872 +31343 48582073 866 +31344 48582939 872 +31345 48583811 872 +31346 48584683 1604 +31347 48586287 1610 +31348 48587897 1610 +31349 48589507 1604 +31350 48591111 1610 +31351 48592721 1610 +31352 48594331 1070 +31353 48595401 1088 +31354 48596489 1094 +31355 48597583 1064 +31356 48598647 806 +31357 48599453 806 +31358 48600259 860 +31359 48601119 854 +31360 48601973 2000 +31361 48603973 2000 +31362 48605973 2000 +31363 48607973 1286 +31364 48609259 1436 +31365 48610695 920 +31366 48611615 4280 +31367 48615895 4580 +31368 48620475 4262 +31369 48624737 998 +31370 48625735 4580 +31371 48630315 4262 +31372 48634577 998 +31373 48635575 2582 +31374 48638157 2582 +31375 48640739 692 +31376 48641431 692 +31377 48642123 3296 +31378 48645419 1262 +31379 48646681 2282 +31380 48648963 1046 +31381 48650009 464 +31382 48650473 728 +31383 48651201 464 +31384 48651665 464 +31385 48652129 704 +31386 48652833 464 +31387 48653297 464 +31388 48653761 764 +31389 48654525 770 +31390 48655295 770 +31391 48656065 770 +31392 48656835 770 +31393 48657605 770 +31394 48658375 770 +31395 48659145 776 +31396 48659921 776 +31397 48660697 776 +31398 48661473 776 +31399 48662249 770 +31400 48663019 776 +31401 48663795 776 +31402 48664571 974 +31403 48665545 974 +31404 48666519 662 +31405 48667181 662 +31406 48667843 2000 +31407 48669843 2000 +31408 48671843 2000 +31409 48673843 1586 +31410 48675429 1640 +31411 48677069 1634 +31412 48678703 1574 +31413 48680277 992 +31414 48681269 1094 +31415 48682363 1292 +31416 48683655 1388 +31417 48685043 1382 +31418 48686425 5072 +31419 48691497 1724 +31420 48693221 1766 +31421 48694987 1730 +31422 48696717 1748 +31423 48698465 3884 +31424 48702349 8269 +31425 48710618 638 +31426 48711256 74 +31427 48711330 1322 +31428 48712652 1316 +31429 48713968 74 +31430 48714042 1328 +31431 48715370 1316 +31432 48716686 596 +31433 48717282 722 +31434 48718004 956 +31435 48718960 962 +31436 48719922 956 +31437 48720878 962 +31438 48721840 836 +31439 48722676 2402 +31440 48725078 2414 +31441 48727492 2408 +31442 48729900 2408 +31443 48732308 1766 +31444 48734074 5738 +31445 48739812 440 +31446 48740252 1628 +31447 48741880 1352 +31448 48743232 1340 +31449 48744572 2174 +31450 48746746 2174 +31451 48748920 2108 +31452 48751028 2018 +31453 48753046 2042 +31454 48755088 1226 +31455 48756314 122 +31456 48756436 1172 +31457 48757608 128 +31458 48757736 1166 +31459 48758902 170 +31460 48759072 1850 +31461 48760922 1898 +31462 48762820 1004 +31463 48763824 1004 +31464 48764828 710 +31465 48765538 800 +31466 48766338 800 +31467 48767138 800 +31468 48767938 710 +31469 48768648 800 +31470 48769448 800 +31471 48770248 782 +31472 48771030 746 +31473 48771776 788 +31474 48772564 776 +31475 48773340 782 +31476 48774122 2965 +31477 48777087 32 +31478 48777119 2977 +31479 48780096 32 +31480 48780128 1256 +31481 48781384 1100 +31482 48782484 1226 +31483 48783710 1208 +31484 48784918 1502 +31485 48786420 1640 +31486 48788060 1640 +31487 48789700 860 +31488 48790560 860 +31489 48791420 830 +31490 48792250 2006 +31491 48794256 2000 +31492 48796256 2000 +31493 48798256 2006 +31494 48800262 1088 +31495 48801350 1604 +31496 48802954 1604 +31497 48804558 1010 +31498 48805568 5546 +31499 48811114 5720 +31500 48816834 104 +31501 48816938 1580 +31502 48818518 3236 +31503 48821754 728 +31504 48822482 1082 +31505 48823564 1082 +31506 48824646 1082 +31507 48825728 1466 +31508 48827194 1478 +31509 48828672 1484 +31510 48830156 1556 +31511 48831712 1556 +31512 48833268 1562 +31513 48834830 2366 +31514 48837196 3212 +31515 48840408 3188 +31516 48843596 3212 +31517 48846808 3212 +31518 48850020 3188 +31519 48853208 3212 +31520 48856420 3212 +31521 48859632 3188 +31522 48862820 3212 +31523 48866032 3212 +31524 48869244 3188 +31525 48872432 3212 +31526 48875644 3212 +31527 48878856 3188 +31528 48882044 3212 +31529 48885256 3212 +31530 48888468 3188 +31531 48891656 3212 +31532 48894868 3212 +31533 48898080 3188 +31534 48901268 3212 +31535 48904480 3212 +31536 48907692 3188 +31537 48910880 3212 +31538 48914092 3212 +31539 48917304 3188 +31540 48920492 3212 +31541 48923704 3212 +31542 48926916 3188 +31543 48930104 3212 +31544 48933316 3212 +31545 48936528 3188 +31546 48939716 3212 +31547 48942928 3212 +31548 48946140 3188 +31549 48949328 3212 +31550 48952540 3212 +31551 48955752 3188 +31552 48958940 3212 +31553 48962152 3212 +31554 48965364 3188 +31555 48968552 3212 +31556 48971764 3212 +31557 48974976 3188 +31558 48978164 3212 +31559 48981376 3212 +31560 48984588 3188 +31561 48987776 3212 +31562 48990988 3212 +31563 48994200 3188 +31564 48997388 3212 +31565 49000600 3212 +31566 49003812 3188 +31567 49007000 3212 +31568 49010212 3212 +31569 49013424 3188 +31570 49016612 3212 +31571 49019824 3212 +31572 49023036 3188 +31573 49026224 3212 +31574 49029436 3212 +31575 49032648 3188 +31576 49035836 3212 +31577 49039048 3212 +31578 49042260 3188 +31579 49045448 3212 +31580 49048660 3212 +31581 49051872 3188 +31582 49055060 3212 +31583 49058272 3212 +31584 49061484 3188 +31585 49064672 3212 +31586 49067884 3212 +31587 49071096 3188 +31588 49074284 3212 +31589 49077496 3212 +31590 49080708 3188 +31591 49083896 3212 +31592 49087108 3212 +31593 49090320 3188 +31594 49093508 3212 +31595 49096720 3212 +31596 49099932 3188 +31597 49103120 3212 +31598 49106332 3212 +31599 49109544 3188 +31600 49112732 3212 +31601 49115944 3212 +31602 49119156 3188 +31603 49122344 3212 +31604 49125556 3212 +31605 49128768 3188 +31606 49131956 3212 +31607 49135168 3212 +31608 49138380 3188 +31609 49141568 3212 +31610 49144780 3212 +31611 49147992 3188 +31612 49151180 3212 +31613 49154392 3212 +31614 49157604 3188 +31615 49160792 3212 +31616 49164004 3212 +31617 49167216 3188 +31618 49170404 3212 +31619 49173616 3212 +31620 49176828 3188 +31621 49180016 3212 +31622 49183228 3212 +31623 49186440 3188 +31624 49189628 3212 +31625 49192840 3212 +31626 49196052 3188 +31627 49199240 3212 +31628 49202452 3212 +31629 49205664 3188 +31630 49208852 3212 +31631 49212064 3212 +31632 49215276 3188 +31633 49218464 3212 +31634 49221676 3212 +31635 49224888 3188 +31636 49228076 3212 +31637 49231288 3212 +31638 49234500 3188 +31639 49237688 3212 +31640 49240900 3212 +31641 49244112 3188 +31642 49247300 3212 +31643 49250512 3212 +31644 49253724 3188 +31645 49256912 3212 +31646 49260124 3212 +31647 49263336 3188 +31648 49266524 3212 +31649 49269736 3212 +31650 49272948 3188 +31651 49276136 3212 +31652 49279348 3212 +31653 49282560 3188 +31654 49285748 3212 +31655 49288960 3212 +31656 49292172 3188 +31657 49295360 3212 +31658 49298572 3212 +31659 49301784 3188 +31660 49304972 3212 +31661 49308184 3212 +31662 49311396 3188 +31663 49314584 3212 +31664 49317796 3212 +31665 49321008 3188 +31666 49324196 3212 +31667 49327408 3212 +31668 49330620 3188 +31669 49333808 3212 +31670 49337020 3212 +31671 49340232 3188 +31672 49343420 3212 +31673 49346632 3212 +31674 49349844 3188 +31675 49353032 3212 +31676 49356244 3212 +31677 49359456 3188 +31678 49362644 3212 +31679 49365856 3212 +31680 49369068 3188 +31681 49372256 3212 +31682 49375468 3212 +31683 49378680 3188 +31684 49381868 3212 +31685 49385080 3212 +31686 49388292 3188 +31687 49391480 3212 +31688 49394692 3212 +31689 49397904 3188 +31690 49401092 3212 +31691 49404304 3212 +31692 49407516 3188 +31693 49410704 3212 +31694 49413916 1232 +31695 49415148 1106 +31696 49416254 3056 +31697 49419310 2138 +31698 49421448 3452 +31699 49424900 3368 +31700 49428268 1016 +31701 49429284 1010 +31702 49430294 2444 +31703 49432738 2444 +31704 49435182 2444 +31705 49437626 2444 +31706 49440070 1934 +31707 49442004 1934 +31708 49443938 1934 +31709 49445872 1934 +31710 49447806 1934 +31711 49449740 734 +31712 49450474 734 +31713 49451208 488 +31714 49451696 494 +31715 49452190 566 +31716 49452756 566 +31717 49453322 1214 +31718 49454536 1214 +31719 49455750 542 +31720 49456292 2234 +31721 49458526 2264 +31722 49460790 2240 +31723 49463030 2192 +31724 49465222 590 +31725 49465812 1178 +31726 49466990 1544 +31727 49468534 2677 +31728 49471211 368 +31729 49471579 3068 +31730 49474647 50 +31731 49474697 3074 +31732 49477771 38 +31733 49477809 3068 +31734 49480877 50 +31735 49480927 3074 +31736 49484001 38 +31737 49484039 3068 +31738 49487107 50 +31739 49487157 3074 +31740 49490231 38 +31741 49490269 3068 +31742 49493337 50 +31743 49493387 3074 +31744 49496461 38 +31745 49496499 2414 +31746 49498913 728 +31747 49499641 422 +31748 49500063 434 +31749 49500497 122 +31750 49500619 80 +31751 49500699 1256 +31752 49501955 1256 +31753 49503211 1256 +31754 49504467 2216 +31755 49506683 32 +31756 49506715 2156 +31757 49508871 2156 +31758 49511027 548 +31759 49511575 2126 +31760 49513701 2126 +31761 49515827 3494 +31762 49519321 362 +31763 49519683 1562 +31764 49521245 1562 +31765 49522807 1550 +31766 49524357 1412 +31767 49525769 1610 +31768 49527379 128 +31769 49527507 1640 +31770 49529147 170 +31771 49529317 2918 +31772 49532235 2048 +31773 49534283 2048 +31774 49536331 2048 +31775 49538379 374 +31776 49538753 362 +31777 49539115 380 +31778 49539495 356 +31779 49539851 374 +31780 49540225 332 +31781 49540557 2240 +31782 49542797 2222 +31783 49545019 1856 +31784 49546875 2840 +31785 49549715 1213 +31786 49550928 1213 +31787 49552141 98 +31788 49552239 2894 +31789 49555133 98 +31790 49555231 2894 +31791 49558125 680 +31792 49558805 2390 +31793 49561195 932 +31794 49562127 2186 +31795 49564313 2186 +31796 49566499 2186 +31797 49568685 2186 +31798 49570871 1784 +31799 49572655 1904 +31800 49574559 3128 +31801 49577687 1106 +31802 49578793 3122 +31803 49581915 1106 +31804 49583021 1406 +31805 49584427 458 +31806 49584885 506 +31807 49585391 998 +31808 49586389 1628 +31809 49588017 1628 +31810 49589645 1394 +31811 49591039 1406 +31812 49592445 1016 +31813 49593461 464 +31814 49593925 1718 +31815 49595643 2174 +31816 49597817 2186 +31817 49600003 926 +31818 49600929 284 +31819 49601213 2180 +31820 49603393 1634 +31821 49605027 1262 +31822 49606289 1214 +31823 49607503 1070 +31824 49608573 1058 +31825 49609631 902 +31826 49610533 788 +31827 49611321 818 +31828 49612139 860 +31829 49612999 746 +31830 49613745 872 +31831 49614617 824 +31832 49615441 722 +31833 49616163 704 +31834 49616867 692 +31835 49617559 710 +31836 49618269 626 +31837 49618895 668 +31838 49619563 572 +31839 49620135 626 +31840 49620761 572 +31841 49621333 464 +31842 49621797 470 +31843 49622267 380 +31844 49622647 356 +31845 49623003 404 +31846 49623407 344 +31847 49623751 320 +31848 49624071 284 +31849 49624355 392 +31850 49624747 236 +31851 49624983 1358 +31852 49626341 1256 +31853 49627597 1238 +31854 49628835 944 +31855 49629779 632 +31856 49630411 920 +31857 49631331 782 +31858 49632113 770 +31859 49632883 602 +31860 49633485 710 +31861 49634195 746 +31862 49634941 704 +31863 49635645 608 +31864 49636253 536 +31865 49636789 500 +31866 49637289 488 +31867 49637777 404 +31868 49638181 506 +31869 49638687 524 +31870 49639211 428 +31871 49639639 1646 +31872 49641285 1118 +31873 49642403 1106 +31874 49643509 2636 +31875 49646145 2726 +31876 49648871 2726 +31877 49651597 1652 +31878 49653249 1544 +31879 49654793 1394 +31880 49656187 380 +31881 49656567 1652 +31882 49658219 1544 +31883 49659763 1394 +31884 49661157 380 +31885 49661537 1652 +31886 49663189 1544 +31887 49664733 1394 +31888 49666127 380 +31889 49666507 1652 +31890 49668159 1544 +31891 49669703 1394 +31892 49671097 380 +31893 49671477 1652 +31894 49673129 1544 +31895 49674673 1394 +31896 49676067 380 +31897 49676447 1652 +31898 49678099 1544 +31899 49679643 1394 +31900 49681037 380 +31901 49681417 1652 +31902 49683069 1544 +31903 49684613 1394 +31904 49686007 380 +31905 49686387 1652 +31906 49688039 1544 +31907 49689583 1394 +31908 49690977 380 +31909 49691357 1652 +31910 49693009 1544 +31911 49694553 1394 +31912 49695947 380 +31913 49696327 1652 +31914 49697979 1544 +31915 49699523 1394 +31916 49700917 380 +31917 49701297 1652 +31918 49702949 1544 +31919 49704493 1394 +31920 49705887 380 +31921 49706267 1652 +31922 49707919 1544 +31923 49709463 1394 +31924 49710857 380 +31925 49711237 1652 +31926 49712889 1544 +31927 49714433 1394 +31928 49715827 380 +31929 49716207 1652 +31930 49717859 1544 +31931 49719403 1394 +31932 49720797 380 +31933 49721177 1652 +31934 49722829 1544 +31935 49724373 1394 +31936 49725767 380 +31937 49726147 1652 +31938 49727799 1544 +31939 49729343 1394 +31940 49730737 380 +31941 49731117 1652 +31942 49732769 1544 +31943 49734313 1394 +31944 49735707 380 +31945 49736087 1652 +31946 49737739 1544 +31947 49739283 1394 +31948 49740677 380 +31949 49741057 1652 +31950 49742709 1544 +31951 49744253 1394 +31952 49745647 380 +31953 49746027 1652 +31954 49747679 1544 +31955 49749223 1394 +31956 49750617 380 +31957 49750997 1652 +31958 49752649 1544 +31959 49754193 1394 +31960 49755587 380 +31961 49755967 1652 +31962 49757619 1544 +31963 49759163 1394 +31964 49760557 380 +31965 49760937 1652 +31966 49762589 1544 +31967 49764133 1394 +31968 49765527 380 +31969 49765907 1652 +31970 49767559 1544 +31971 49769103 1394 +31972 49770497 380 +31973 49770877 1652 +31974 49772529 1544 +31975 49774073 1394 +31976 49775467 380 +31977 49775847 1652 +31978 49777499 1544 +31979 49779043 1394 +31980 49780437 380 +31981 49780817 1652 +31982 49782469 1544 +31983 49784013 1394 +31984 49785407 380 +31985 49785787 1652 +31986 49787439 1544 +31987 49788983 1394 +31988 49790377 380 +31989 49790757 1652 +31990 49792409 1544 +31991 49793953 1394 +31992 49795347 380 +31993 49795727 1652 +31994 49797379 1544 +31995 49798923 1394 +31996 49800317 380 +31997 49800697 1652 +31998 49802349 1544 +31999 49803893 1394 +32000 49805287 380 +32001 49805667 1652 +32002 49807319 1544 +32003 49808863 1394 +32004 49810257 380 +32005 49810637 1652 +32006 49812289 1544 +32007 49813833 1394 +32008 49815227 380 +32009 49815607 1652 +32010 49817259 1544 +32011 49818803 1394 +32012 49820197 380 +32013 49820577 1652 +32014 49822229 1544 +32015 49823773 1394 +32016 49825167 380 +32017 49825547 1652 +32018 49827199 1544 +32019 49828743 1394 +32020 49830137 380 +32021 49830517 1652 +32022 49832169 1544 +32023 49833713 1394 +32024 49835107 380 +32025 49835487 1652 +32026 49837139 1544 +32027 49838683 1394 +32028 49840077 380 +32029 49840457 1652 +32030 49842109 1544 +32031 49843653 1394 +32032 49845047 380 +32033 49845427 1652 +32034 49847079 1544 +32035 49848623 1394 +32036 49850017 380 +32037 49850397 1652 +32038 49852049 1544 +32039 49853593 1394 +32040 49854987 380 +32041 49855367 1652 +32042 49857019 1544 +32043 49858563 1394 +32044 49859957 380 +32045 49860337 1652 +32046 49861989 1544 +32047 49863533 1394 +32048 49864927 380 +32049 49865307 1652 +32050 49866959 1544 +32051 49868503 1394 +32052 49869897 380 +32053 49870277 1652 +32054 49871929 1544 +32055 49873473 1394 +32056 49874867 380 +32057 49875247 1652 +32058 49876899 1544 +32059 49878443 1394 +32060 49879837 380 +32061 49880217 1652 +32062 49881869 1544 +32063 49883413 1394 +32064 49884807 380 +32065 49885187 1652 +32066 49886839 1544 +32067 49888383 1394 +32068 49889777 380 +32069 49890157 1652 +32070 49891809 1544 +32071 49893353 1394 +32072 49894747 380 +32073 49895127 1652 +32074 49896779 1544 +32075 49898323 1394 +32076 49899717 380 +32077 49900097 1652 +32078 49901749 1544 +32079 49903293 1394 +32080 49904687 380 +32081 49905067 1652 +32082 49906719 1544 +32083 49908263 1394 +32084 49909657 380 +32085 49910037 1652 +32086 49911689 1544 +32087 49913233 1394 +32088 49914627 380 +32089 49915007 1652 +32090 49916659 1544 +32091 49918203 1394 +32092 49919597 380 +32093 49919977 1652 +32094 49921629 1544 +32095 49923173 1394 +32096 49924567 380 +32097 49924947 1652 +32098 49926599 1544 +32099 49928143 1394 +32100 49929537 380 +32101 49929917 1652 +32102 49931569 1544 +32103 49933113 1394 +32104 49934507 380 +32105 49934887 1652 +32106 49936539 1544 +32107 49938083 1394 +32108 49939477 380 +32109 49939857 1652 +32110 49941509 1544 +32111 49943053 1394 +32112 49944447 380 +32113 49944827 1652 +32114 49946479 1544 +32115 49948023 1394 +32116 49949417 380 +32117 49949797 1304 +32118 49951101 506 +32119 49951607 1514 +32120 49953121 1082 +32121 49954203 1082 +32122 49955285 1046 +32123 49956331 2150 +32124 49958481 2156 +32125 49960637 1052 +32126 49961689 56 +32127 49961745 1058 +32128 49962803 1076 +32129 49963879 32 +32130 49963911 32 +32131 49963943 950 +32132 49964893 1172 +32133 49966065 1484 +32134 49967549 1136 +32135 49968685 1124 +32136 49969809 1826 +32137 49971635 584 +32138 49972219 578 +32139 49972797 536 +32140 49973333 590 +32141 49973923 1874 +32142 49975797 1556 +32143 49977353 980 +32144 49978333 980 +32145 49979313 2156 +32146 49981469 2156 +32147 49983625 2156 +32148 49985781 578 +32149 49986359 62 +32150 49986421 1778 +32151 49988199 1658 +32152 49989857 1946 +32153 49991803 1946 +32154 49993749 50 +32155 49993799 992 +32156 49994791 992 +32157 49995783 1922 +32158 49997705 1532 +32159 49999237 764 +32160 50000001 1268 +32161 50001269 2096 +32162 50003365 2108 +32163 50005473 2114 +32164 50007587 2132 +32165 50009719 2114 +32166 50011833 2114 +32167 50013947 566 +32168 50014513 596 +32169 50015109 2114 +32170 50017223 2120 +32171 50019343 512 +32172 50019855 866 +32173 50020721 1538 +32174 50022259 1370 +32175 50023629 1202 +32176 50024831 1214 +32177 50026045 2222 +32178 50028267 2174 +32179 50030441 2210 +32180 50032651 2174 +32181 50034825 2174 +32182 50036999 2180 +32183 50039179 2114 +32184 50041293 2180 +32185 50043473 2282 +32186 50045755 2282 +32187 50048037 2282 +32188 50050319 2282 +32189 50052601 2282 +32190 50054883 2282 +32191 50057165 2282 +32192 50059447 2282 +32193 50061729 2282 +32194 50064011 2282 +32195 50066293 2282 +32196 50068575 2282 +32197 50070857 2282 +32198 50073139 2282 +32199 50075421 2282 +32200 50077703 2282 +32201 50079985 2282 +32202 50082267 2282 +32203 50084549 2282 +32204 50086831 2282 +32205 50089113 2282 +32206 50091395 2282 +32207 50093677 2282 +32208 50095959 2282 +32209 50098241 2282 +32210 50100523 2282 +32211 50102805 2282 +32212 50105087 2282 +32213 50107369 2282 +32214 50109651 2282 +32215 50111933 2282 +32216 50114215 2282 +32217 50116497 2282 +32218 50118779 2282 +32219 50121061 2282 +32220 50123343 2282 +32221 50125625 2282 +32222 50127907 2282 +32223 50130189 2282 +32224 50132471 2282 +32225 50134753 2282 +32226 50137035 2282 +32227 50139317 2282 +32228 50141599 2282 +32229 50143881 2282 +32230 50146163 2282 +32231 50148445 2282 +32232 50150727 2282 +32233 50153009 2282 +32234 50155291 2282 +32235 50157573 2282 +32236 50159855 2282 +32237 50162137 2282 +32238 50164419 2282 +32239 50166701 2282 +32240 50168983 2282 +32241 50171265 2282 +32242 50173547 2282 +32243 50175829 2282 +32244 50178111 2282 +32245 50180393 3770 +32246 50184163 908 +32247 50185071 2438 +32248 50187509 758 +32249 50188267 758 +32250 50189025 1388 +32251 50190413 1388 +32252 50191801 392 +32253 50192193 416 +32254 50192609 3140 +32255 50195749 3140 +32256 50198889 2942 +32257 50201831 3116 +32258 50204947 626 +32259 50205573 548 +32260 50206121 596 +32261 50206717 542 +32262 50207259 746 +32263 50208005 746 +32264 50208751 716 +32265 50209467 1238 +32266 50210705 1178 +32267 50211883 620 +32268 50212503 260 +32269 50212763 620 +32270 50213383 260 +32271 50213643 518 +32272 50214161 494 +32273 50214655 3770 +32274 50218425 908 +32275 50219333 4034 +32276 50223367 866 +32277 50224233 866 +32278 50225099 1172 +32279 50226271 1130 +32280 50227401 1736 +32281 50229137 1844 +32282 50230981 1838 +32283 50232819 1844 +32284 50234663 1838 +32285 50236501 1844 +32286 50238345 1838 +32287 50240183 1844 +32288 50242027 1838 +32289 50243865 1844 +32290 50245709 1838 +32291 50247547 1844 +32292 50249391 1838 +32293 50251229 2954 +32294 50254183 716 +32295 50254899 662 +32296 50255561 608 +32297 50256169 572 +32298 50256741 56 +32299 50256797 2954 +32300 50259751 686 +32301 50260437 674 +32302 50261111 1970 +32303 50263081 632 +32304 50263713 4460 +32305 50268173 4424 +32306 50272597 4430 +32307 50277027 4466 +32308 50281493 1694 +32309 50283187 1694 +32310 50284881 1568 +32311 50286449 1574 +32312 50288023 1574 +32313 50289597 2042 +32314 50291639 2042 +32315 50293681 2042 +32316 50295723 2072 +32317 50297795 2042 +32318 50299837 2042 +32319 50301879 2042 +32320 50303921 2042 +32321 50305963 2042 +32322 50308005 2042 +32323 50310047 2042 +32324 50312089 2042 +32325 50314131 1664 +32326 50315795 2042 +32327 50317837 2042 +32328 50319879 2042 +32329 50321921 2042 +32330 50323963 950 +32331 50324913 944 +32332 50325857 2720 +32333 50328577 2726 +32334 50331303 1460 +32335 50332763 1088 +32336 50333851 1082 +32337 50334933 632 +32338 50335565 632 +32339 50336197 632 +32340 50336829 632 +32341 50337461 632 +32342 50338093 632 +32343 50338725 590 +32344 50339315 614 +32345 50339929 1652 +32346 50341581 1646 +32347 50343227 650 +32348 50343877 644 +32349 50344521 950 +32350 50345471 926 +32351 50346397 686 +32352 50347083 686 +32353 50347769 1358 +32354 50349127 1358 +32355 50350485 1070 +32356 50351555 704 +32357 50352259 1442 +32358 50353701 1418 +32359 50355119 536 +32360 50355655 500 +32361 50356155 1124 +32362 50357279 1160 +32363 50358439 1442 +32364 50359881 1550 +32365 50361431 1160 +32366 50362591 1442 +32367 50364033 1550 +32368 50365583 1160 +32369 50366743 1442 +32370 50368185 1550 +32371 50369735 1160 +32372 50370895 1442 +32373 50372337 1550 +32374 50373887 1160 +32375 50375047 1442 +32376 50376489 1550 +32377 50378039 1160 +32378 50379199 1442 +32379 50380641 1550 +32380 50382191 1160 +32381 50383351 1442 +32382 50384793 1550 +32383 50386343 1160 +32384 50387503 1442 +32385 50388945 1550 +32386 50390495 1160 +32387 50391655 1442 +32388 50393097 1550 +32389 50394647 1160 +32390 50395807 1442 +32391 50397249 1550 +32392 50398799 1160 +32393 50399959 1442 +32394 50401401 1550 +32395 50402951 1160 +32396 50404111 1442 +32397 50405553 1550 +32398 50407103 1160 +32399 50408263 1442 +32400 50409705 1550 +32401 50411255 1160 +32402 50412415 1442 +32403 50413857 1550 +32404 50415407 1160 +32405 50416567 1442 +32406 50418009 1550 +32407 50419559 1160 +32408 50420719 1442 +32409 50422161 1550 +32410 50423711 1160 +32411 50424871 1442 +32412 50426313 1550 +32413 50427863 1160 +32414 50429023 1442 +32415 50430465 1550 +32416 50432015 1160 +32417 50433175 1442 +32418 50434617 1550 +32419 50436167 1160 +32420 50437327 1442 +32421 50438769 1550 +32422 50440319 1160 +32423 50441479 1442 +32424 50442921 1550 +32425 50444471 1160 +32426 50445631 1442 +32427 50447073 1550 +32428 50448623 1160 +32429 50449783 1442 +32430 50451225 1550 +32431 50452775 1160 +32432 50453935 1442 +32433 50455377 1550 +32434 50456927 1160 +32435 50458087 1442 +32436 50459529 1550 +32437 50461079 1160 +32438 50462239 1442 +32439 50463681 1550 +32440 50465231 1160 +32441 50466391 1442 +32442 50467833 1550 +32443 50469383 1160 +32444 50470543 1442 +32445 50471985 1550 +32446 50473535 1160 +32447 50474695 1442 +32448 50476137 1550 +32449 50477687 1160 +32450 50478847 1442 +32451 50480289 1550 +32452 50481839 1160 +32453 50482999 1442 +32454 50484441 1550 +32455 50485991 1160 +32456 50487151 1442 +32457 50488593 1550 +32458 50490143 1160 +32459 50491303 1442 +32460 50492745 1550 +32461 50494295 1160 +32462 50495455 1442 +32463 50496897 1550 +32464 50498447 1160 +32465 50499607 1442 +32466 50501049 1550 +32467 50502599 1160 +32468 50503759 1442 +32469 50505201 1550 +32470 50506751 1160 +32471 50507911 1442 +32472 50509353 1550 +32473 50510903 1160 +32474 50512063 1442 +32475 50513505 1550 +32476 50515055 1160 +32477 50516215 1442 +32478 50517657 1550 +32479 50519207 1160 +32480 50520367 1442 +32481 50521809 1550 +32482 50523359 1160 +32483 50524519 1442 +32484 50525961 1550 +32485 50527511 1160 +32486 50528671 1442 +32487 50530113 1550 +32488 50531663 1160 +32489 50532823 1442 +32490 50534265 1550 +32491 50535815 1160 +32492 50536975 1442 +32493 50538417 1550 +32494 50539967 1160 +32495 50541127 1442 +32496 50542569 1550 +32497 50544119 1160 +32498 50545279 1442 +32499 50546721 1550 +32500 50548271 1160 +32501 50549431 1442 +32502 50550873 1550 +32503 50552423 1160 +32504 50553583 1442 +32505 50555025 1550 +32506 50556575 1160 +32507 50557735 1442 +32508 50559177 1550 +32509 50560727 1160 +32510 50561887 1442 +32511 50563329 1550 +32512 50564879 1160 +32513 50566039 1442 +32514 50567481 1550 +32515 50569031 1160 +32516 50570191 1442 +32517 50571633 1550 +32518 50573183 1160 +32519 50574343 1442 +32520 50575785 1550 +32521 50577335 1160 +32522 50578495 1442 +32523 50579937 1550 +32524 50581487 1160 +32525 50582647 1442 +32526 50584089 1550 +32527 50585639 1160 +32528 50586799 1442 +32529 50588241 1550 +32530 50589791 1160 +32531 50590951 1442 +32532 50592393 1550 +32533 50593943 1160 +32534 50595103 1442 +32535 50596545 1550 +32536 50598095 1160 +32537 50599255 1442 +32538 50600697 1550 +32539 50602247 1160 +32540 50603407 1442 +32541 50604849 1550 +32542 50606399 2156 +32543 50608555 2174 +32544 50610729 128 +32545 50610857 602 +32546 50611459 602 +32547 50612061 128 +32548 50612189 128 +32549 50612317 632 +32550 50612949 686 +32551 50613635 230 +32552 50613865 1220 +32553 50615085 1220 +32554 50616305 1220 +32555 50617525 1220 +32556 50618745 1220 +32557 50619965 1220 +32558 50621185 1220 +32559 50622405 1220 +32560 50623625 1028 +32561 50624653 1034 +32562 50625687 1754 +32563 50627441 1928 +32564 50629369 698 +32565 50630067 698 +32566 50630765 680 +32567 50631445 668 +32568 50632113 1136 +32569 50633249 1136 +32570 50634385 1706 +32571 50636091 1718 +32572 50637809 2036 +32573 50639845 2036 +32574 50641881 2036 +32575 50643917 2036 +32576 50645953 2174 +32577 50648127 128 +32578 50648255 2174 +32579 50650429 74 +32580 50650503 1496 +32581 50651999 482 +32582 50652481 488 +32583 50652969 482 +32584 50653451 488 +32585 50653939 488 +32586 50654427 482 +32587 50654909 488 +32588 50655397 722 +32589 50656119 968 +32590 50657087 998 +32591 50658085 1562 +32592 50659647 992 +32593 50660639 728 +32594 50661367 962 +32595 50662329 518 +32596 50662847 2222 +32597 50665069 446 +32598 50665515 146 +32599 50665661 1838 +32600 50667499 2552 +32601 50670051 164 +32602 50670215 164 +32603 50670379 164 +32604 50670543 164 +32605 50670707 1238 +32606 50671945 1250 +32607 50673195 62 +32608 50673257 62 +32609 50673319 1334 +32610 50674653 1346 +32611 50675999 1124 +32612 50677123 236 +32613 50677359 512 +32614 50677871 548 +32615 50678419 500 +32616 50678919 548 +32617 50679467 1220 +32618 50680687 1232 +32619 50681919 1220 +32620 50683139 1226 +32621 50684365 1946 +32622 50686311 1946 +32623 50688257 920 +32624 50689177 920 +32625 50690097 920 +32626 50691017 920 +32627 50691937 920 +32628 50692857 920 +32629 50693777 1184 +32630 50694961 1214 +32631 50696175 1802 +32632 50697977 1520 +32633 50699497 1520 +32634 50701017 1520 +32635 50702537 1520 +32636 50704057 2192 +32637 50706249 1430 +32638 50707679 1436 +32639 50709115 1538 +32640 50710653 2192 +32641 50712845 2192 +32642 50715037 1778 +32643 50716815 944 +32644 50717759 926 +32645 50718685 2312 +32646 50720997 2312 +32647 50723309 3080 +32648 50726389 3080 +32649 50729469 980 +32650 50730449 980 +32651 50731429 2510 +32652 50733939 2186 +32653 50736125 2510 +32654 50738635 2186 +32655 50740821 2510 +32656 50743331 2186 +32657 50745517 2510 +32658 50748027 2186 +32659 50750213 2510 +32660 50752723 2186 +32661 50754909 2510 +32662 50757419 2186 +32663 50759605 2510 +32664 50762115 2186 +32665 50764301 2510 +32666 50766811 2186 +32667 50768997 914 +32668 50769911 1436 +32669 50771347 1298 +32670 50772645 1412 +32671 50774057 1328 +32672 50775385 1358 +32673 50776743 1250 +32674 50777993 3830 +32675 50781823 3824 +32676 50785647 2630 +32677 50788277 2300 +32678 50790577 2294 +32679 50792871 2294 +32680 50795165 1214 +32681 50796379 1244 +32682 50797623 578 +32683 50798201 518 +32684 50798719 494 +32685 50799213 470 +32686 50799683 470 +32687 50800153 1748 +32688 50801901 68 +32689 50801969 68 +32690 50802037 680 +32691 50802717 104 +32692 50802821 1328 +32693 50804149 1238 +32694 50805387 896 +32695 50806283 860 +32696 50807143 1838 +32697 50808981 2456 +32698 50811437 2456 +32699 50813893 1832 +32700 50815725 2528 +32701 50818253 1538 +32702 50819791 1562 +32703 50821353 2402 +32704 50823755 2402 +32705 50826157 2462 +32706 50828619 908 +32707 50829527 3140 +32708 50832667 3140 +32709 50835807 74 +32710 50835881 1286 +32711 50837167 1406 +32712 50838573 74 +32713 50838647 1292 +32714 50839939 1430 +32715 50841369 2294 +32716 50843663 2294 +32717 50845957 944 +32718 50846901 2102 +32719 50849003 3620 +32720 50852623 1922 +32721 50854545 1922 +32722 50856467 1922 +32723 50858389 1574 +32724 50859963 1574 +32725 50861537 1556 +32726 50863093 1904 +32727 50864997 1892 +32728 50866889 1916 +32729 50868805 1886 +32730 50870691 1892 +32731 50872583 2810 +32732 50875393 2840 +32733 50878233 2828 +32734 50881061 2828 +32735 50883889 2804 +32736 50886693 992 +32737 50887685 932 +32738 50888617 938 +32739 50889555 938 +32740 50890493 950 +32741 50891443 1700 +32742 50893143 2150 +32743 50895293 1784 +32744 50897077 1784 +32745 50898861 1418 +32746 50900279 1208 +32747 50901487 1208 +32748 50902695 1208 +32749 50903903 1196 +32750 50905099 1172 +32751 50906271 1094 +32752 50907365 1112 +32753 50908477 272 +32754 50908749 1952 +32755 50910701 1952 +32756 50912653 1952 +32757 50914605 1952 +32758 50916557 1952 +32759 50918509 1952 +32760 50920461 824 +32761 50921285 476 +32762 50921761 476 +32763 50922237 698 +32764 50922935 698 +32765 50923633 698 +32766 50924331 698 +32767 50925029 3212 +32768 50928241 662 +32769 50928903 644 +32770 50929547 644 +32771 50930191 620 +32772 50930811 608 +32773 50931419 608 +32774 50932027 608 +32775 50932635 608 +32776 50933243 1148 +32777 50934391 1148 +32778 50935539 1160 +32779 50936699 686 +32780 50937385 716 +32781 50938101 1238 +32782 50939339 3824 +32783 50943163 6236 +32784 50949399 6236 +32785 50955635 3608 +32786 50959243 1226 +32787 50960469 1202 +32788 50961671 6500 +32789 50968171 698 +32790 50968869 1580 +32791 50970449 1148 +32792 50971597 1388 +32793 50972985 1016 +32794 50974001 1088 +32795 50975089 1088 +32796 50976177 728 +32797 50976905 824 +32798 50977729 914 +32799 50978643 764 +32800 50979407 380 +32801 50979787 8953 +32802 50988740 3230 +32803 50991970 5545 +32804 50997515 716 +32805 50998231 6121 +32806 51004352 12254 +32807 51016606 4034 +32808 51020640 4922 +32809 51025562 3404 +32810 51028966 4988 +32811 51033954 4640 +32812 51038594 2726 +32813 51041320 5138 +32814 51046458 2678 +32815 51049136 2720 +32816 51051856 1141 +32817 51052997 980 +32818 51053977 1778 +32819 51055755 1237 +32820 51056992 506 +32821 51057498 902 +32822 51058400 770 +32823 51059170 6404 +32824 51065574 1412 +32825 51066986 1676 +32826 51068662 1406 +32827 51070068 782 +32828 51070850 872 +32829 51071722 500 +32830 51072222 10969 +32831 51083191 356 +32832 51083547 368 +32833 51083915 260 +32834 51084175 2384 +32835 51086559 2588 +32836 51089147 1382 +32837 51090529 1424 +32838 51091953 758 +32839 51092711 746 +32840 51093457 2342 +32841 51095799 2216 +32842 51098015 9637 +32843 51107652 1232 +32844 51108884 1232 +32845 51110116 2101 +32846 51112217 1646 +32847 51113863 14918 +32848 51128781 944 +32849 51129725 854 +32850 51130579 4201 +32851 51134780 6841 +32852 51141621 2660 +32853 51144281 1178 +32854 51145459 1430 +32855 51146889 1748 +32856 51148637 1262 +32857 51149899 794 +32858 51150693 1046 +32859 51151739 1040 +32860 51152779 2948 +32861 51155727 1820 +32862 51157547 1826 +32863 51159373 470 +32864 51159843 1358 +32865 51161201 1124 +32866 51162325 62 +32867 51162387 1274 +32868 51163661 1274 +32869 51164935 1298 +32870 51166233 1298 +32871 51167531 1850 +32872 51169381 326 +32873 51169707 1718 +32874 51171425 1718 +32875 51173143 1718 +32876 51174861 1718 +32877 51176579 1718 +32878 51178297 1718 +32879 51180015 1718 +32880 51181733 1718 +32881 51183451 1718 +32882 51185169 1718 +32883 51186887 1718 +32884 51188605 1718 +32885 51190323 1250 +32886 51191573 1250 +32887 51192823 1250 +32888 51194073 1250 +32889 51195323 2102 +32890 51197425 2114 +32891 51199539 2138 +32892 51201677 2114 +32893 51203791 2108 +32894 51205899 2114 +32895 51208013 1148 +32896 51209161 1142 +32897 51210303 1142 +32898 51211445 1118 +32899 51212563 470 +32900 51213033 3518 +32901 51216551 2378 +32902 51218929 2234 +32903 51221163 800 +32904 51221963 170 +32905 51222133 1562 +32906 51223695 2750 +32907 51226445 1094 +32908 51227539 284 +32909 51227823 464 +32910 51228287 464 +32911 51228751 464 +32912 51229215 632 +32913 51229847 2510 +32914 51232357 2504 +32915 51234861 746 +32916 51235607 746 +32917 51236353 1454 +32918 51237807 74 +32919 51237881 794 +32920 51238675 590 +32921 51239265 356 +32922 51239621 1928 +32923 51241549 218 +32924 51241767 1694 +32925 51243461 1004 +32926 51244465 1088 +32927 51245553 986 +32928 51246539 1772 +32929 51248311 1904 +32930 51250215 470 +32931 51250685 836 +32932 51251521 374 +32933 51251895 374 +32934 51252269 2840 +32935 51255109 2846 +32936 51257955 2840 +32937 51260795 608 +32938 51261403 584 +32939 51261987 1256 +32940 51263243 1322 +32941 51264565 1256 +32942 51265821 1322 +32943 51267143 716 +32944 51267859 776 +32945 51268635 722 +32946 51269357 710 +32947 51270067 2120 +32948 51272187 836 +32949 51273023 824 +32950 51273847 836 +32951 51274683 836 +32952 51275519 80 +32953 51275599 80 +32954 51275679 80 +32955 51275759 4616 +32956 51280375 1388 +32957 51281763 1388 +32958 51283151 2264 +32959 51285415 2264 +32960 51287679 1886 +32961 51289565 1022 +32962 51290587 998 +32963 51291585 1046 +32964 51292631 1040 +32965 51293671 254 +32966 51293925 296 +32967 51294221 518 +32968 51294739 1652 +32969 51296391 1340 +32970 51297731 1334 +32971 51299065 8270 +32972 51307335 2234 +32973 51309569 908 +32974 51310477 2120 +32975 51312597 2258 +32976 51314855 1970 +32977 51316825 1976 +32978 51318801 1970 +32979 51320771 1970 +32980 51322741 4262 +32981 51327003 1460 +32982 51328463 2186 +32983 51330649 620 +32984 51331269 548 +32985 51331817 626 +32986 51332443 560 +32987 51333003 614 +32988 51333617 548 +32989 51334165 638 +32990 51334803 560 +32991 51335363 128 +32992 51335491 122 +32993 51335613 1238 +32994 51336851 1238 +32995 51338089 386 +32996 51338475 968 +32997 51339443 386 +32998 51339829 968 +32999 51340797 968 +33000 51341765 386 +33001 51342151 386 +33002 51342537 386 +33003 51342923 386 +33004 51343309 212 +33005 51343521 386 +33006 51343907 386 +33007 51344293 386 +33008 51344679 386 +33009 51345065 386 +33010 51345451 386 +33011 51345837 386 +33012 51346223 386 +33013 51346609 386 +33014 51346995 386 +33015 51347381 386 +33016 51347767 386 +33017 51348153 212 +33018 51348365 212 +33019 51348577 212 +33020 51348789 212 +33021 51349001 212 +33022 51349213 212 +33023 51349425 212 +33024 51349637 212 +33025 51349849 212 +33026 51350061 212 +33027 51350273 212 +33028 51350485 212 +33029 51350697 212 +33030 51350909 212 +33031 51351121 212 +33032 51351333 212 +33033 51351545 212 +33034 51351757 968 +33035 51352725 968 +33036 51353693 968 +33037 51354661 968 +33038 51355629 968 +33039 51356597 968 +33040 51357565 968 +33041 51358533 968 +33042 51359501 968 +33043 51360469 968 +33044 51361437 968 +33045 51362405 968 +33046 51363373 968 +33047 51364341 968 +33048 51365309 968 +33049 51366277 1460 +33050 51367737 1460 +33051 51369197 1460 +33052 51370657 1454 +33053 51372111 1466 +33054 51373577 734 +33055 51374311 734 +33056 51375045 680 +33057 51375725 674 +33058 51376399 1826 +33059 51378225 1766 +33060 51379991 848 +33061 51380839 848 +33062 51381687 854 +33063 51382541 848 +33064 51383389 854 +33065 51384243 848 +33066 51385091 866 +33067 51385957 854 +33068 51386811 854 +33069 51387665 854 +33070 51388519 1232 +33071 51389751 1172 +33072 51390923 1358 +33073 51392281 1358 +33074 51393639 1358 +33075 51394997 1358 +33076 51396355 734 +33077 51397089 728 +33078 51397817 896 +33079 51398713 1538 +33080 51400251 1208 +33081 51401459 1166 +33082 51402625 1244 +33083 51403869 1190 +33084 51405059 2390 +33085 51407449 2012 +33086 51409461 2012 +33087 51411473 1802 +33088 51413275 2264 +33089 51415539 2612 +33090 51418151 1760 +33091 51419911 1664 +33092 51421575 2492 +33093 51424067 2534 +33094 51426601 1880 +33095 51428481 1898 +33096 51430379 1886 +33097 51432265 722 +33098 51432987 722 +33099 51433709 728 +33100 51434437 710 +33101 51435147 1442 +33102 51436589 1442 +33103 51438031 1442 +33104 51439473 1442 +33105 51440915 656 +33106 51441571 2618 +33107 51444189 428 +33108 51444617 428 +33109 51445045 428 +33110 51445473 428 +33111 51445901 428 +33112 51446329 2372 +33113 51448701 2228 +33114 51450929 2222 +33115 51453151 2354 +33116 51455505 812 +33117 51456317 1538 +33118 51457855 1358 +33119 51459213 1814 +33120 51461027 1814 +33121 51462841 1832 +33122 51464673 500 +33123 51465173 536 +33124 51465709 536 +33125 51466245 1196 +33126 51467441 1196 +33127 51468637 290 +33128 51468927 278 +33129 51469205 278 +33130 51469483 248 +33131 51469731 2006 +33132 51471737 1418 +33133 51473155 1520 +33134 51474675 734 +33135 51475409 710 +33136 51476119 1520 +33137 51477639 482 +33138 51478121 512 +33139 51478633 296 +33140 51478929 320 +33141 51479249 566 +33142 51479815 2120 +33143 51481935 404 +33144 51482339 794 +33145 51483133 566 +33146 51483699 1046 +33147 51484745 194 +33148 51484939 2030 +33149 51486969 2030 +33150 51488999 2030 +33151 51491029 2030 +33152 51493059 4273 +33153 51497332 836 +33154 51498168 110 +33155 51498278 1580 +33156 51499858 1586 +33157 51501444 1448 +33158 51502892 1454 +33159 51504346 1580 +33160 51505926 1586 +33161 51507512 1454 +33162 51508966 1454 +33163 51510420 1580 +33164 51512000 1586 +33165 51513586 1454 +33166 51515040 1472 +33167 51516512 2084 +33168 51518596 1892 +33169 51520488 3506 +33170 51523994 932 +33171 51524926 932 +33172 51525858 932 +33173 51526790 554 +33174 51527344 566 +33175 51527910 530 +33176 51528440 512 +33177 51528952 3416 +33178 51532368 3386 +33179 51535754 2252 +33180 51538006 2234 +33181 51540240 1058 +33182 51541298 1064 +33183 51542362 674 +33184 51543036 488 +33185 51543524 488 +33186 51544012 524 +33187 51544536 512 +33188 51545048 416 +33189 51545464 458 +33190 51545922 524 +33191 51546446 488 +33192 51546934 488 +33193 51547422 524 +33194 51547946 512 +33195 51548458 416 +33196 51548874 458 +33197 51549332 524 +33198 51549856 1610 +33199 51551466 878 +33200 51552344 2414 +33201 51554758 1286 +33202 51556044 1238 +33203 51557282 1574 +33204 51558856 1586 +33205 51560442 1448 +33206 51561890 1448 +33207 51563338 1580 +33208 51564918 1586 +33209 51566504 1448 +33210 51567952 1454 +33211 51569406 1256 +33212 51570662 1256 +33213 51571918 6212 +33214 51578130 2174 +33215 51580304 662 +33216 51580966 644 +33217 51581610 662 +33218 51582272 644 +33219 51582916 2180 +33220 51585096 2180 +33221 51587276 572 +33222 51587848 926 +33223 51588774 1862 +33224 51590636 1826 +33225 51592462 1862 +33226 51594324 1862 +33227 51596186 848 +33228 51597034 710 +33229 51597744 716 +33230 51598460 2060 +33231 51600520 2096 +33232 51602616 782 +33233 51603398 4226 +33234 51607624 1148 +33235 51608772 1136 +33236 51609908 1244 +33237 51611152 2324 +33238 51613476 368 +33239 51613844 866 +33240 51614710 854 +33241 51615564 1730 +33242 51617294 662 +33243 51617956 620 +33244 51618576 446 +33245 51619022 482 +33246 51619504 428 +33247 51619932 1196 +33248 51621128 1196 +33249 51622324 1190 +33250 51623514 1190 +33251 51624704 878 +33252 51625582 836 +33253 51626418 722 +33254 51627140 722 +33255 51627862 710 +33256 51628572 1454 +33257 51630026 1052 +33258 51631078 2540 +33259 51633618 2474 +33260 51636092 3440 +33261 51639532 1754 +33262 51641286 3440 +33263 51644726 1754 +33264 51646480 350 +33265 51646830 38 +33266 51646868 5198 +33267 51652066 2324 +33268 51654390 2324 +33269 51656714 1334 +33270 51658048 1334 +33271 51659382 1334 +33272 51660716 1334 +33273 51662050 1328 +33274 51663378 644 +33275 51664022 632 +33276 51664654 332 +33277 51664986 332 +33278 51665318 332 +33279 51665650 1754 +33280 51667404 1010 +33281 51668414 1010 +33282 51669424 1010 +33283 51670434 368 +33284 51670802 2432 +33285 51673234 578 +33286 51673812 572 +33287 51674384 32 +33288 51674416 2024 +33289 51676440 656 +33290 51677096 656 +33291 51677752 1604 +33292 51679356 2282 +33293 51681638 2216 +33294 51683854 2210 +33295 51686064 2216 +33296 51688280 2210 +33297 51690490 2216 +33298 51692706 2210 +33299 51694916 2216 +33300 51697132 2210 +33301 51699342 566 +33302 51699908 596 +33303 51700504 530 +33304 51701034 494 +33305 51701528 902 +33306 51702430 914 +33307 51703344 2438 +33308 51705782 2420 +33309 51708202 2990 +33310 51711192 2990 +33311 51714182 2990 +33312 51717172 2990 +33313 51720162 2990 +33314 51723152 2990 +33315 51726142 1832 +33316 51727974 2120 +33317 51730094 1394 +33318 51731488 6212 +33319 51737700 680 +33320 51738380 680 +33321 51739060 410 +33322 51739470 434 +33323 51739904 1874 +33324 51741778 674 +33325 51742452 50 +33326 51742502 674 +33327 51743176 50 +33328 51743226 674 +33329 51743900 50 +33330 51743950 674 +33331 51744624 50 +33332 51744674 674 +33333 51745348 50 +33334 51745398 674 +33335 51746072 50 +33336 51746122 4478 +33337 51750600 2276 +33338 51752876 2276 +33339 51755152 938 +33340 51756090 596 +33341 51756686 596 +33342 51757282 590 +33343 51757872 590 +33344 51758462 596 +33345 51759058 590 +33346 51759648 590 +33347 51760238 596 +33348 51760834 590 +33349 51761424 590 +33350 51762014 836 +33351 51762850 530 +33352 51763380 2024 +33353 51765404 2024 +33354 51767428 1838 +33355 51769266 1448 +33356 51770714 1586 +33357 51772300 3608 +33358 51775908 3608 +33359 51779516 4633 +33360 51784149 2234 +33361 51786383 2234 +33362 51788617 2234 +33363 51790851 2234 +33364 51793085 2234 +33365 51795319 2234 +33366 51797553 3793 +33367 51801346 1868 +33368 51803214 1868 +33369 51805082 1868 +33370 51806950 1868 +33371 51808818 1868 +33372 51810686 1868 +33373 51812554 974 +33374 51813528 4832 +33375 51818360 1724 +33376 51820084 962 +33377 51821046 4784 +33378 51825830 1724 +33379 51827554 2000 +33380 51829554 1010 +33381 51830564 1010 +33382 51831574 1016 +33383 51832590 1010 +33384 51833600 1028 +33385 51834628 992 +33386 51835620 1238 +33387 51836858 482 +33388 51837340 854 +33389 51838194 854 +33390 51839048 398 +33391 51839446 422 +33392 51839868 398 +33393 51840266 416 +33394 51840682 5605 +33395 51846287 5605 +33396 51851892 5713 +33397 51857605 5713 +33398 51863318 776 +33399 51864094 776 +33400 51864870 776 +33401 51865646 776 +33402 51866422 2696 +33403 51869118 2696 +33404 51871814 1004 +33405 51872818 1004 +33406 51873822 6181 +33407 51880003 6181 +33408 51886184 1136 +33409 51887320 1136 +33410 51888456 3710 +33411 51892166 3710 +33412 51895876 2528 +33413 51898404 4849 +33414 51903253 2528 +33415 51905781 4849 +33416 51910630 3788 +33417 51914418 3788 +33418 51918206 3746 +33419 51921952 3746 +33420 51925698 3692 +33421 51929390 3692 +33422 51933082 2594 +33423 51935676 2588 +33424 51938264 2594 +33425 51940858 2588 +33426 51943446 2594 +33427 51946040 2588 +33428 51948628 2594 +33429 51951222 2588 +33430 51953810 2594 +33431 51956404 2588 +33432 51958992 2594 +33433 51961586 2588 +33434 51964174 2594 +33435 51966768 2588 +33436 51969356 2594 +33437 51971950 2588 +33438 51974538 2594 +33439 51977132 2588 +33440 51979720 2594 +33441 51982314 2588 +33442 51984902 2594 +33443 51987496 2588 +33444 51990084 2594 +33445 51992678 2588 +33446 51995266 2594 +33447 51997860 2588 +33448 52000448 2594 +33449 52003042 2588 +33450 52005630 2594 +33451 52008224 2588 +33452 52010812 2594 +33453 52013406 2588 +33454 52015994 2594 +33455 52018588 2588 +33456 52021176 2594 +33457 52023770 2588 +33458 52026358 2594 +33459 52028952 2588 +33460 52031540 2594 +33461 52034134 2588 +33462 52036722 2594 +33463 52039316 2588 +33464 52041904 2594 +33465 52044498 2588 +33466 52047086 2594 +33467 52049680 2588 +33468 52052268 2594 +33469 52054862 2588 +33470 52057450 2594 +33471 52060044 2588 +33472 52062632 2594 +33473 52065226 2588 +33474 52067814 2594 +33475 52070408 2588 +33476 52072996 2594 +33477 52075590 2588 +33478 52078178 2594 +33479 52080772 2588 +33480 52083360 2594 +33481 52085954 2588 +33482 52088542 2594 +33483 52091136 2588 +33484 52093724 2594 +33485 52096318 2588 +33486 52098906 2594 +33487 52101500 2588 +33488 52104088 2594 +33489 52106682 2588 +33490 52109270 2594 +33491 52111864 2588 +33492 52114452 2594 +33493 52117046 2588 +33494 52119634 2594 +33495 52122228 2588 +33496 52124816 2594 +33497 52127410 2588 +33498 52129998 2594 +33499 52132592 2588 +33500 52135180 2594 +33501 52137774 2588 +33502 52140362 2594 +33503 52142956 2588 +33504 52145544 2594 +33505 52148138 2588 +33506 52150726 2594 +33507 52153320 2588 +33508 52155908 2594 +33509 52158502 2588 +33510 52161090 2594 +33511 52163684 2588 +33512 52166272 2594 +33513 52168866 2588 +33514 52171454 2594 +33515 52174048 2588 +33516 52176636 2594 +33517 52179230 2588 +33518 52181818 2594 +33519 52184412 2588 +33520 52187000 2594 +33521 52189594 2588 +33522 52192182 2594 +33523 52194776 2588 +33524 52197364 2594 +33525 52199958 2588 +33526 52202546 2606 +33527 52205152 578 +33528 52205730 524 +33529 52206254 524 +33530 52206778 56 +33531 52206834 56 +33532 52206890 386 +33533 52207276 416 +33534 52207692 482 +33535 52208174 404 +33536 52208578 3332 +33537 52211910 3332 +33538 52215242 1976 +33539 52217218 1976 +33540 52219194 920 +33541 52220114 866 +33542 52220980 1508 +33543 52222488 1370 +33544 52223858 1370 +33545 52225228 1418 +33546 52226646 1370 +33547 52228016 854 +33548 52228870 554 +33549 52229424 488 +33550 52229912 1088 +33551 52231000 7112 +33552 52238112 6518 +33553 52244630 2425 +33554 52247055 410 +33555 52247465 944 +33556 52248409 56 +33557 52248465 1052 +33558 52249517 230 +33559 52249747 380 +33560 52250127 380 +33561 52250507 644 +33562 52251151 1154 +33563 52252305 1154 +33564 52253459 386 +33565 52253845 380 +33566 52254225 1976 +33567 52256201 1976 +33568 52258177 1262 +33569 52259439 1262 +33570 52260701 1262 +33571 52261963 1262 +33572 52263225 74 +33573 52263299 794 +33574 52264093 590 +33575 52264683 824 +33576 52265507 74 +33577 52265581 794 +33578 52266375 590 +33579 52266965 824 +33580 52267789 2030 +33581 52269819 1526 +33582 52271345 1526 +33583 52272871 926 +33584 52273797 656 +33585 52274453 650 +33586 52275103 644 +33587 52275747 638 +33588 52276385 644 +33589 52277029 1172 +33590 52278201 1178 +33591 52279379 1184 +33592 52280563 842 +33593 52281405 4676 +33594 52286081 4676 +33595 52290757 4676 +33596 52295433 4676 +33597 52300109 4676 +33598 52304785 4676 +33599 52309461 968 +33600 52310429 386 +33601 52310815 1166 +33602 52311981 1172 +33603 52313153 1538 +33604 52314691 974 +33605 52315665 1478 +33606 52317143 572 +33607 52317715 2324 +33608 52320039 3890 +33609 52323929 2174 +33610 52326103 590 +33611 52326693 650 +33612 52327343 968 +33613 52328311 770 +33614 52329081 1340 +33615 52330421 644 +33616 52331065 1388 +33617 52332453 680 +33618 52333133 794 +33619 52333927 1136 +33620 52335063 722 +33621 52335785 584 +33622 52336369 518 +33623 52336887 470 +33624 52337357 2276 +33625 52339633 1130 +33626 52340763 308 +33627 52341071 830 +33628 52341901 554 +33629 52342455 1226 +33630 52343681 902 +33631 52344583 1190 +33632 52345773 1106 +33633 52346879 932 +33634 52347811 932 +33635 52348743 2449 +33636 52351192 1028 +33637 52352220 374 +33638 52352594 632 +33639 52353226 824 +33640 52354050 1370 +33641 52355420 728 +33642 52356148 764 +33643 52356912 1460 +33644 52358372 818 +33645 52359190 338 +33646 52359528 890 +33647 52360418 590 +33648 52361008 332 +33649 52361340 776 +33650 52362116 1412 +33651 52363528 890 +33652 52364418 2270 +33653 52366688 2360 +33654 52369048 1484 +33655 52370532 2312 +33656 52372844 2174 +33657 52375018 1742 +33658 52376760 938 +33659 52377698 1328 +33660 52379026 1370 +33661 52380396 1136 +33662 52381532 1214 +33663 52382746 1016 +33664 52383762 1166 +33665 52384928 824 +33666 52385752 620 +33667 52386372 536 +33668 52386908 1226 +33669 52388134 1190 +33670 52389324 1106 +33671 52390430 1118 +33672 52391548 914 +33673 52392462 1028 +33674 52393490 962 +33675 52394452 590 +33676 52395042 800 +33677 52395842 374 +33678 52396216 734 +33679 52396950 758 +33680 52397708 818 +33681 52398526 896 +33682 52399422 356 +33683 52399778 584 +33684 52400362 650 +33685 52401012 764 +33686 52401776 644 +33687 52402420 662 +33688 52403082 722 +33689 52403804 596 +33690 52404400 512 +33691 52404912 470 +33692 52405382 308 +33693 52405690 314 +33694 52406004 1298 +33695 52407302 1286 +33696 52408588 416 +33697 52409004 416 +33698 52409420 452 +33699 52409872 434 +33700 52410306 416 +33701 52410722 428 +33702 52411150 428 +33703 52411578 1898 +33704 52413476 2576 +33705 52416052 2576 +33706 52418628 2234 +33707 52420862 2234 +33708 52423096 2234 +33709 52425330 2234 +33710 52427564 2234 +33711 52429798 2234 +33712 52432032 1472 +33713 52433504 3404 +33714 52436908 806 +33715 52437714 674 +33716 52438388 818 +33717 52439206 1214 +33718 52440420 482 +33719 52440902 986 +33720 52441888 602 +33721 52442490 1034 +33722 52443524 1196 +33723 52444720 602 +33724 52445322 2786 +33725 52448108 1250 +33726 52449358 1118 +33727 52450476 722 +33728 52451198 1466 +33729 52452664 2408 +33730 52455072 2120 +33731 52457192 1994 +33732 52459186 2846 +33733 52462032 2198 +33734 52464230 2378 +33735 52466608 404 +33736 52467012 404 +33737 52467416 386 +33738 52467802 404 +33739 52468206 2222 +33740 52470428 2222 +33741 52472650 104 +33742 52472754 1286 +33743 52474040 1286 +33744 52475326 1256 +33745 52476582 1256 +33746 52477838 536 +33747 52478374 1604 +33748 52479978 212 +33749 52480190 86 +33750 52480276 1274 +33751 52481550 1274 +33752 52482824 3896 +33753 52486720 3890 +33754 52490610 2120 +33755 52492730 74 +33756 52492804 1364 +33757 52494168 1370 +33758 52495538 1352 +33759 52496890 1358 +33760 52498248 1346 +33761 52499594 1346 +33762 52500940 2012 +33763 52502952 1477 +33764 52504429 356 +33765 52504785 62 +33766 52504847 122 +33767 52504969 2012 +33768 52506981 314 +33769 52507295 812 +33770 52508107 620 +33771 52508727 224 +33772 52508951 596 +33773 52509547 818 +33774 52510365 326 +33775 52510691 590 +33776 52511281 440 +33777 52511721 680 +33778 52512401 470 +33779 52512871 2480 +33780 52515351 1237 +33781 52516588 2030 +33782 52518618 164 +33783 52518782 344 +33784 52519126 3937 +33785 52523063 170 +33786 52523233 3242 +33787 52526475 890 +33788 52527365 1328 +33789 52528693 56 +33790 52528749 596 +33791 52529345 938 +33792 52530283 938 +33793 52531221 3644 +33794 52534865 686 +33795 52535551 3632 +33796 52539183 686 +33797 52539869 896 +33798 52540765 896 +33799 52541661 3265 +33800 52544926 1034 +33801 52545960 6254 +33802 52552214 1598 +33803 52553812 1598 +33804 52555410 620 +33805 52556030 1268 +33806 52557298 1256 +33807 52558554 1244 +33808 52559798 1268 +33809 52561066 1256 +33810 52562322 1244 +33811 52563566 1256 +33812 52564822 1256 +33813 52566078 1250 +33814 52567328 1256 +33815 52568584 1256 +33816 52569840 1250 +33817 52571090 2390 +33818 52573480 2204 +33819 52575684 752 +33820 52576436 2390 +33821 52578826 2192 +33822 52581018 752 +33823 52581770 1322 +33824 52583092 1322 +33825 52584414 98 +33826 52584512 98 +33827 52584610 98 +33828 52584708 98 +33829 52584806 98 +33830 52584904 98 +33831 52585002 98 +33832 52585100 98 +33833 52585198 98 +33834 52585296 98 +33835 52585394 2348 +33836 52587742 2360 +33837 52590102 974 +33838 52591076 1280 +33839 52592356 1112 +33840 52593468 896 +33841 52594364 404 +33842 52594768 674 +33843 52595442 422 +33844 52595864 350 +33845 52596214 2162 +33846 52598376 1117 +33847 52599493 614 +33848 52600107 260 +33849 52600367 3500 +33850 52603867 3032 +33851 52606899 2906 +33852 52609805 1154 +33853 52610959 2114 +33854 52613073 2090 +33855 52615163 1448 +33856 52616611 1448 +33857 52618059 686 +33858 52618745 686 +33859 52619431 2288 +33860 52621719 2312 +33861 52624031 2282 +33862 52626313 2222 +33863 52628535 2222 +33864 52630757 2696 +33865 52633453 170 +33866 52633623 170 +33867 52633793 170 +33868 52633963 170 +33869 52634133 170 +33870 52634303 170 +33871 52634473 1166 +33872 52635639 1166 +33873 52636805 1166 +33874 52637971 962 +33875 52638933 956 +33876 52639889 1244 +33877 52641133 1244 +33878 52642377 1244 +33879 52643621 1244 +33880 52644865 2516 +33881 52647381 1094 +33882 52648475 38 +33883 52648513 3518 +33884 52652031 3518 +33885 52655549 3518 +33886 52659067 3518 +33887 52662585 3518 +33888 52666103 3518 +33889 52669621 3536 +33890 52673157 3536 +33891 52676693 3542 +33892 52680235 3542 +33893 52683777 3542 +33894 52687319 3542 +33895 52690861 1238 +33896 52692099 1292 +33897 52693391 1430 +33898 52694821 1442 +33899 52696263 1430 +33900 52697693 1436 +33901 52699129 1424 +33902 52700553 1430 +33903 52701983 1442 +33904 52703425 1436 +33905 52704861 1436 +33906 52706297 1436 +33907 52707733 2138 +33908 52709871 1442 +33909 52711313 1430 +33910 52712743 1430 +33911 52714173 1442 +33912 52715615 1430 +33913 52717045 1430 +33914 52718475 2012 +33915 52720487 2012 +33916 52722499 2012 +33917 52724511 2012 +33918 52726523 2012 +33919 52728535 2012 +33920 52730547 2012 +33921 52732559 2012 +33922 52734571 2012 +33923 52736583 2012 +33924 52738595 2012 +33925 52740607 2012 +33926 52742619 2012 +33927 52744631 2012 +33928 52746643 2012 +33929 52748655 2012 +33930 52750667 2012 +33931 52752679 2012 +33932 52754691 2012 +33933 52756703 2012 +33934 52758715 2012 +33935 52760727 2012 +33936 52762739 2012 +33937 52764751 2012 +33938 52766763 2012 +33939 52768775 2012 +33940 52770787 2012 +33941 52772799 2012 +33942 52774811 2012 +33943 52776823 2012 +33944 52778835 2012 +33945 52780847 2012 +33946 52782859 2012 +33947 52784871 2012 +33948 52786883 2012 +33949 52788895 2012 +33950 52790907 2012 +33951 52792919 2012 +33952 52794931 2012 +33953 52796943 2012 +33954 52798955 2012 +33955 52800967 2012 +33956 52802979 2012 +33957 52804991 2012 +33958 52807003 2012 +33959 52809015 2012 +33960 52811027 2012 +33961 52813039 2012 +33962 52815051 2012 +33963 52817063 2012 +33964 52819075 2012 +33965 52821087 2012 +33966 52823099 2012 +33967 52825111 2012 +33968 52827123 2012 +33969 52829135 2012 +33970 52831147 2012 +33971 52833159 2012 +33972 52835171 2012 +33973 52837183 2012 +33974 52839195 2012 +33975 52841207 2012 +33976 52843219 2012 +33977 52845231 2012 +33978 52847243 2012 +33979 52849255 2012 +33980 52851267 2012 +33981 52853279 2012 +33982 52855291 2012 +33983 52857303 2012 +33984 52859315 2012 +33985 52861327 2012 +33986 52863339 2012 +33987 52865351 2012 +33988 52867363 2012 +33989 52869375 2012 +33990 52871387 2012 +33991 52873399 2012 +33992 52875411 2012 +33993 52877423 2012 +33994 52879435 2012 +33995 52881447 2012 +33996 52883459 2012 +33997 52885471 2012 +33998 52887483 2012 +33999 52889495 2012 +34000 52891507 2012 +34001 52893519 2012 +34002 52895531 2012 +34003 52897543 2012 +34004 52899555 2012 +34005 52901567 2012 +34006 52903579 2012 +34007 52905591 2012 +34008 52907603 2012 +34009 52909615 2012 +34010 52911627 2012 +34011 52913639 2012 +34012 52915651 2012 +34013 52917663 2012 +34014 52919675 2012 +34015 52921687 2012 +34016 52923699 2012 +34017 52925711 2012 +34018 52927723 2012 +34019 52929735 2012 +34020 52931747 2012 +34021 52933759 2012 +34022 52935771 2012 +34023 52937783 2012 +34024 52939795 2012 +34025 52941807 2012 +34026 52943819 2012 +34027 52945831 2012 +34028 52947843 2012 +34029 52949855 2012 +34030 52951867 2012 +34031 52953879 2012 +34032 52955891 2012 +34033 52957903 2012 +34034 52959915 1430 +34035 52961345 1436 +34036 52962781 650 +34037 52963431 650 +34038 52964081 2060 +34039 52966141 2066 +34040 52968207 896 +34041 52969103 896 +34042 52969999 896 +34043 52970895 896 +34044 52971791 896 +34045 52972687 896 +34046 52973583 1424 +34047 52975007 1394 +34048 52976401 776 +34049 52977177 782 +34050 52977959 1466 +34051 52979425 1472 +34052 52980897 1460 +34053 52982357 1424 +34054 52983781 1436 +34055 52985217 1454 +34056 52986671 2018 +34057 52988689 788 +34058 52989477 698 +34059 52990175 698 +34060 52990873 1328 +34061 52992201 1334 +34062 52993535 548 +34063 52994083 554 +34064 52994637 722 +34065 52995359 722 +34066 52996081 1436 +34067 52997517 56 +34068 52997573 950 +34069 52998523 884 +34070 52999407 1040 +34071 53000447 1046 +34072 53001493 968 +34073 53002461 968 +34074 53003429 1238 +34075 53004667 1244 +34076 53005911 1238 +34077 53007149 1244 +34078 53008393 1604 +34079 53009997 1286 +34080 53011283 1436 +34081 53012719 1460 +34082 53014179 1460 +34083 53015639 1454 +34084 53017093 1484 +34085 53018577 1424 +34086 53020001 716 +34087 53020717 968 +34088 53021685 2450 +34089 53024135 2450 +34090 53026585 2450 +34091 53029035 2450 +34092 53031485 2450 +34093 53033935 2450 +34094 53036385 2450 +34095 53038835 2450 +34096 53041285 2450 +34097 53043735 524 +34098 53044259 524 +34099 53044783 1064 +34100 53045847 1748 +34101 53047595 1754 +34102 53049349 1748 +34103 53051097 1760 +34104 53052857 4070 +34105 53056927 728 +34106 53057655 728 +34107 53058383 716 +34108 53059099 728 +34109 53059827 3278 +34110 53063105 3278 +34111 53066383 1022 +34112 53067405 1022 +34113 53068427 1022 +34114 53069449 1022 +34115 53070471 1022 +34116 53071493 1022 +34117 53072515 1022 +34118 53073537 1028 +34119 53074565 1028 +34120 53075593 1022 +34121 53076615 1022 +34122 53077637 1028 +34123 53078665 1028 +34124 53079693 1022 +34125 53080715 1022 +34126 53081737 1028 +34127 53082765 1028 +34128 53083793 1028 +34129 53084821 1022 +34130 53085843 1028 +34131 53086871 1028 +34132 53087899 1028 +34133 53088927 1022 +34134 53089949 1028 +34135 53090977 1028 +34136 53092005 1028 +34137 53093033 1022 +34138 53094055 1028 +34139 53095083 1028 +34140 53096111 1028 +34141 53097139 1022 +34142 53098161 1028 +34143 53099189 1028 +34144 53100217 1028 +34145 53101245 1022 +34146 53102267 1028 +34147 53103295 1028 +34148 53104323 1028 +34149 53105351 1022 +34150 53106373 1028 +34151 53107401 1022 +34152 53108423 1028 +34153 53109451 1028 +34154 53110479 1028 +34155 53111507 1028 +34156 53112535 1028 +34157 53113563 1022 +34158 53114585 1028 +34159 53115613 1028 +34160 53116641 1028 +34161 53117669 1028 +34162 53118697 1028 +34163 53119725 1028 +34164 53120753 1028 +34165 53121781 1022 +34166 53122803 1028 +34167 53123831 1838 +34168 53125669 1838 +34169 53127507 884 +34170 53128391 884 +34171 53129275 1232 +34172 53130507 1778 +34173 53132285 458 +34174 53132743 1076 +34175 53133819 452 +34176 53134271 458 +34177 53134729 1910 +34178 53136639 1916 +34179 53138555 284 +34180 53138839 314 +34181 53139153 1160 +34182 53140313 1160 +34183 53141473 1316 +34184 53142789 1160 +34185 53143949 1160 +34186 53145109 1316 +34187 53146425 1160 +34188 53147585 1160 +34189 53148745 1316 +34190 53150061 1160 +34191 53151221 1160 +34192 53152381 1316 +34193 53153697 1160 +34194 53154857 1160 +34195 53156017 1316 +34196 53157333 1160 +34197 53158493 1160 +34198 53159653 1316 +34199 53160969 1160 +34200 53162129 1160 +34201 53163289 1316 +34202 53164605 1160 +34203 53165765 1160 +34204 53166925 1316 +34205 53168241 1160 +34206 53169401 1160 +34207 53170561 1316 +34208 53171877 1160 +34209 53173037 1160 +34210 53174197 1316 +34211 53175513 1160 +34212 53176673 1160 +34213 53177833 1316 +34214 53179149 1160 +34215 53180309 1160 +34216 53181469 1316 +34217 53182785 1160 +34218 53183945 1160 +34219 53185105 1316 +34220 53186421 1160 +34221 53187581 1160 +34222 53188741 1316 +34223 53190057 1160 +34224 53191217 1160 +34225 53192377 1316 +34226 53193693 1160 +34227 53194853 1160 +34228 53196013 1316 +34229 53197329 1160 +34230 53198489 1160 +34231 53199649 1316 +34232 53200965 1160 +34233 53202125 1160 +34234 53203285 1316 +34235 53204601 1160 +34236 53205761 1160 +34237 53206921 1316 +34238 53208237 1160 +34239 53209397 1160 +34240 53210557 1316 +34241 53211873 1160 +34242 53213033 1160 +34243 53214193 1316 +34244 53215509 1160 +34245 53216669 1160 +34246 53217829 1316 +34247 53219145 1160 +34248 53220305 1160 +34249 53221465 1316 +34250 53222781 1160 +34251 53223941 1160 +34252 53225101 1316 +34253 53226417 1160 +34254 53227577 1160 +34255 53228737 1316 +34256 53230053 1160 +34257 53231213 1160 +34258 53232373 1316 +34259 53233689 1160 +34260 53234849 1160 +34261 53236009 1316 +34262 53237325 1160 +34263 53238485 1160 +34264 53239645 1316 +34265 53240961 1160 +34266 53242121 1160 +34267 53243281 1316 +34268 53244597 1160 +34269 53245757 1160 +34270 53246917 1316 +34271 53248233 1160 +34272 53249393 1160 +34273 53250553 1316 +34274 53251869 1160 +34275 53253029 1160 +34276 53254189 1316 +34277 53255505 1160 +34278 53256665 1160 +34279 53257825 1316 +34280 53259141 1160 +34281 53260301 1160 +34282 53261461 1316 +34283 53262777 1160 +34284 53263937 1160 +34285 53265097 1316 +34286 53266413 1160 +34287 53267573 1160 +34288 53268733 1316 +34289 53270049 1160 +34290 53271209 1160 +34291 53272369 1316 +34292 53273685 1160 +34293 53274845 1160 +34294 53276005 1316 +34295 53277321 1160 +34296 53278481 1160 +34297 53279641 1316 +34298 53280957 1160 +34299 53282117 1160 +34300 53283277 1316 +34301 53284593 1160 +34302 53285753 1160 +34303 53286913 1316 +34304 53288229 1160 +34305 53289389 1160 +34306 53290549 1316 +34307 53291865 1160 +34308 53293025 1160 +34309 53294185 1316 +34310 53295501 1160 +34311 53296661 1160 +34312 53297821 1316 +34313 53299137 1160 +34314 53300297 1160 +34315 53301457 1316 +34316 53302773 1160 +34317 53303933 1160 +34318 53305093 1316 +34319 53306409 1160 +34320 53307569 1160 +34321 53308729 1316 +34322 53310045 1160 +34323 53311205 1160 +34324 53312365 1316 +34325 53313681 1160 +34326 53314841 1160 +34327 53316001 1316 +34328 53317317 1160 +34329 53318477 1160 +34330 53319637 1316 +34331 53320953 1160 +34332 53322113 1160 +34333 53323273 1316 +34334 53324589 1160 +34335 53325749 1160 +34336 53326909 1316 +34337 53328225 1160 +34338 53329385 1160 +34339 53330545 1316 +34340 53331861 1160 +34341 53333021 1160 +34342 53334181 1316 +34343 53335497 1160 +34344 53336657 1160 +34345 53337817 1316 +34346 53339133 1160 +34347 53340293 1160 +34348 53341453 1316 +34349 53342769 1160 +34350 53343929 1160 +34351 53345089 1316 +34352 53346405 1160 +34353 53347565 1160 +34354 53348725 1316 +34355 53350041 1160 +34356 53351201 1160 +34357 53352361 1316 +34358 53353677 1160 +34359 53354837 1160 +34360 53355997 1316 +34361 53357313 1556 +34362 53358869 284 +34363 53359153 2018 +34364 53361171 2018 +34365 53363189 332 +34366 53363521 296 +34367 53363817 2756 +34368 53366573 704 +34369 53367277 1664 +34370 53368941 1664 +34371 53370605 1826 +34372 53372431 1826 +34373 53374257 1844 +34374 53376101 1844 +34375 53377945 1772 +34376 53379717 674 +34377 53380391 1970 +34378 53382361 1970 +34379 53384331 1970 +34380 53386301 1970 +34381 53388271 1970 +34382 53390241 500 +34383 53390741 818 +34384 53391559 1646 +34385 53393205 1304 +34386 53394509 1232 +34387 53395741 1058 +34388 53396799 992 +34389 53397791 860 +34390 53398651 740 +34391 53399391 878 +34392 53400269 728 +34393 53400997 716 +34394 53401713 692 +34395 53402405 704 +34396 53403109 614 +34397 53403723 674 +34398 53404397 542 +34399 53404939 602 +34400 53405541 572 +34401 53406113 362 +34402 53406475 392 +34403 53406867 344 +34404 53407211 332 +34405 53407543 290 +34406 53407833 392 +34407 53408225 260 +34408 53408485 1250 +34409 53409735 1202 +34410 53410937 896 +34411 53411833 620 +34412 53412453 716 +34413 53413169 362 +34414 53413531 524 +34415 53414055 548 +34416 53414603 488 +34417 53415091 224 +34418 53415315 482 +34419 53415797 686 +34420 53416483 770 +34421 53417253 944 +34422 53418197 794 +34423 53418991 386 +34424 53419377 566 +34425 53419943 818 +34426 53420761 482 +34427 53421243 1334 +34428 53422577 362 +34429 53422939 2606 +34430 53425545 2606 +34431 53428151 578 +34432 53428729 530 +34433 53429259 1052 +34434 53430311 1046 +34435 53431357 482 +34436 53431839 482 +34437 53432321 482 +34438 53432803 500 +34439 53433303 1904 +34440 53435207 1904 +34441 53437111 1904 +34442 53439015 1904 +34443 53440919 1904 +34444 53442823 1904 +34445 53444727 500 +34446 53445227 542 +34447 53445769 2018 +34448 53447787 2018 +34449 53449805 422 +34450 53450227 1082 +34451 53451309 140 +34452 53451449 1448 +34453 53452897 1448 +34454 53454345 1502 +34455 53455847 1502 +34456 53457349 644 +34457 53457993 656 +34458 53458649 644 +34459 53459293 656 +34460 53459949 680 +34461 53460629 50 +34462 53460679 680 +34463 53461359 50 +34464 53461409 680 +34465 53462089 50 +34466 53462139 680 +34467 53462819 50 +34468 53462869 680 +34469 53463549 50 +34470 53463599 680 +34471 53464279 50 +34472 53464329 680 +34473 53465009 50 +34474 53465059 680 +34475 53465739 50 +34476 53465789 680 +34477 53466469 50 +34478 53466519 680 +34479 53467199 50 +34480 53467249 680 +34481 53467929 50 +34482 53467979 680 +34483 53468659 50 +34484 53468709 740 +34485 53469449 740 +34486 53470189 740 +34487 53470929 740 +34488 53471669 740 +34489 53472409 740 +34490 53473149 692 +34491 53473841 56 +34492 53473897 692 +34493 53474589 50 +34494 53474639 692 +34495 53475331 56 +34496 53475387 692 +34497 53476079 50 +34498 53476129 692 +34499 53476821 56 +34500 53476877 692 +34501 53477569 50 +34502 53477619 1112 +34503 53478731 1112 +34504 53479843 1112 +34505 53480955 1112 +34506 53482067 410 +34507 53482477 368 +34508 53482845 1262 +34509 53484107 1262 +34510 53485369 1262 +34511 53486631 1262 +34512 53487893 1262 +34513 53489155 1262 +34514 53490417 2888 +34515 53493305 2672 +34516 53495977 2888 +34517 53498865 2666 +34518 53501531 32 +34519 53501563 2888 +34520 53504451 2666 +34521 53507117 1748 +34522 53508865 728 +34523 53509593 2642 +34524 53512235 1490 +34525 53513725 1472 +34526 53515197 1028 +34527 53516225 1334 +34528 53517559 1358 +34529 53518917 2798 +34530 53521715 590 +34531 53522305 590 +34532 53522895 578 +34533 53523473 584 +34534 53524057 2552 +34535 53526609 2480 +34536 53529089 638 +34537 53529727 1154 +34538 53530881 896 +34539 53531777 896 +34540 53532673 2048 +34541 53534721 1544 +34542 53536265 2078 +34543 53538343 1568 +34544 53539911 1724 +34545 53541635 68 +34546 53541703 1586 +34547 53543289 1598 +34548 53544887 1574 +34549 53546461 1556 +34550 53548017 1562 +34551 53549579 1538 +34552 53551117 1532 +34553 53552649 1532 +34554 53554181 1532 +34555 53555713 1532 +34556 53557245 1532 +34557 53558777 1532 +34558 53560309 638 +34559 53560947 590 +34560 53561537 584 +34561 53562121 572 +34562 53562693 596 +34563 53563289 1340 +34564 53564629 1340 +34565 53565969 1376 +34566 53567345 50 +34567 53567395 2216 +34568 53569611 2120 +34569 53571731 1964 +34570 53573695 2120 +34571 53575815 1964 +34572 53577779 2120 +34573 53579899 1964 +34574 53581863 2120 +34575 53583983 1964 +34576 53585947 1694 +34577 53587641 1694 +34578 53589335 1304 +34579 53590639 3086 +34580 53593725 3026 +34581 53596751 3044 +34582 53599795 3032 +34583 53602827 3014 +34584 53605841 3020 +34585 53608861 3080 +34586 53611941 3068 +34587 53615009 3074 +34588 53618083 3080 +34589 53621163 3068 +34590 53624231 3074 +34591 53627305 1586 +34592 53628891 740 +34593 53629631 740 +34594 53630371 740 +34595 53631111 884 +34596 53631995 884 +34597 53632879 1580 +34598 53634459 1670 +34599 53636129 1304 +34600 53637433 1304 +34601 53638737 1292 +34602 53640029 1304 +34603 53641333 476 +34604 53641809 554 +34605 53642363 1838 +34606 53644201 686 +34607 53644887 3050 +34608 53647937 3050 +34609 53650987 3050 +34610 53654037 3050 +34611 53657087 3038 +34612 53660125 3050 +34613 53663175 1802 +34614 53664977 614 +34615 53665591 602 +34616 53666193 698 +34617 53666891 7238 +34618 53674129 698 +34619 53674827 7238 +34620 53682065 698 +34621 53682763 7244 +34622 53690007 692 +34623 53690699 2486 +34624 53693185 2480 +34625 53695665 386 +34626 53696051 1304 +34627 53697355 476 +34628 53697831 554 +34629 53698385 1448 +34630 53699833 1448 +34631 53701281 2198 +34632 53703479 1766 +34633 53705245 1238 +34634 53706483 1418 +34635 53707901 1568 +34636 53709469 668 +34637 53710137 698 +34638 53710835 668 +34639 53711503 698 +34640 53712201 2108 +34641 53714309 1370 +34642 53715679 2108 +34643 53717787 1370 +34644 53719157 926 +34645 53720083 578 +34646 53720661 578 +34647 53721239 578 +34648 53721817 578 +34649 53722395 830 +34650 53723225 830 +34651 53724055 830 +34652 53724885 662 +34653 53725547 1190 +34654 53726737 1106 +34655 53727843 614 +34656 53728457 1166 +34657 53729623 986 +34658 53730609 2996 +34659 53733605 2906 +34660 53736511 2396 +34661 53738907 2390 +34662 53741297 2306 +34663 53743603 1172 +34664 53744775 1682 +34665 53746457 1640 +34666 53748097 1022 +34667 53749119 1562 +34668 53750681 1682 +34669 53752363 1646 +34670 53754009 1022 +34671 53755031 1574 +34672 53756605 86 +34673 53756691 1208 +34674 53757899 1208 +34675 53759107 1652 +34676 53760759 1592 +34677 53762351 1544 +34678 53763895 1508 +34679 53765403 1592 +34680 53766995 1544 +34681 53768539 1508 +34682 53770047 368 +34683 53770415 362 +34684 53770777 1418 +34685 53772195 1418 +34686 53773613 1418 +34687 53775031 1418 +34688 53776449 1418 +34689 53777867 1418 +34690 53779285 1412 +34691 53780697 884 +34692 53781581 860 +34693 53782441 2768 +34694 53785209 638 +34695 53785847 2132 +34696 53787979 1196 +34697 53789175 1196 +34698 53790371 938 +34699 53791309 1400 +34700 53792709 1394 +34701 53794103 1406 +34702 53795509 1232 +34703 53796741 1376 +34704 53798117 1376 +34705 53799493 1406 +34706 53800899 1232 +34707 53802131 1382 +34708 53803513 1412 +34709 53804925 1298 +34710 53806223 902 +34711 53807125 902 +34712 53808027 1586 +34713 53809613 992 +34714 53810605 374 +34715 53810979 1472 +34716 53812451 2690 +34717 53815141 2366 +34718 53817507 1436 +34719 53818943 386 +34720 53819329 416 +34721 53819745 482 +34722 53820227 386 +34723 53820613 530 +34724 53821143 542 +34725 53821685 536 +34726 53822221 542 +34727 53822763 686 +34728 53823449 1838 +34729 53825287 1790 +34730 53827077 530 +34731 53827607 530 +34732 53828137 1760 +34733 53829897 1622 +34734 53831519 644 +34735 53832163 1094 +34736 53833257 1070 +34737 53834327 1082 +34738 53835409 1094 +34739 53836503 1070 +34740 53837573 1082 +34741 53838655 686 +34742 53839341 848 +34743 53840189 812 +34744 53841001 854 +34745 53841855 812 +34746 53842667 854 +34747 53843521 812 +34748 53844333 2948 +34749 53847281 2948 +34750 53850229 2948 +34751 53853177 2948 +34752 53856125 3014 +34753 53859139 3014 +34754 53862153 3014 +34755 53865167 3014 +34756 53868181 2330 +34757 53870511 2330 +34758 53872841 2396 +34759 53875237 2420 +34760 53877657 86 +34761 53877743 86 +34762 53877829 3302 +34763 53881131 3272 +34764 53884403 3464 +34765 53887867 1856 +34766 53889723 1514 +34767 53891237 1808 +34768 53893045 1496 +34769 53894541 590 +34770 53895131 662 +34771 53895793 1334 +34772 53897127 1592 +34773 53898719 1586 +34774 53900305 464 +34775 53900769 422 +34776 53901191 464 +34777 53901655 422 +34778 53902077 1838 +34779 53903915 1838 +34780 53905753 914 +34781 53906667 908 +34782 53907575 1100 +34783 53908675 1070 +34784 53909745 2924 +34785 53912669 1532 +34786 53914201 2192 +34787 53916393 2462 +34788 53918855 854 +34789 53919709 776 +34790 53920485 758 +34791 53921243 758 +34792 53922001 758 +34793 53922759 758 +34794 53923517 758 +34795 53924275 764 +34796 53925039 764 +34797 53925803 764 +34798 53926567 764 +34799 53927331 3734 +34800 53931065 3734 +34801 53934799 1244 +34802 53936043 1298 +34803 53937341 1274 +34804 53938615 1268 +34805 53939883 890 +34806 53940773 1154 +34807 53941927 1718 +34808 53943645 1988 +34809 53945633 1274 +34810 53946907 1286 +34811 53948193 998 +34812 53949191 998 +34813 53950189 188 +34814 53950377 206 +34815 53950583 194 +34816 53950777 212 +34817 53950989 950 +34818 53951939 818 +34819 53952757 812 +34820 53953569 1310 +34821 53954879 1880 +34822 53956759 422 +34823 53957181 422 +34824 53957603 2360 +34825 53959963 746 +34826 53960709 758 +34827 53961467 1250 +34828 53962717 1244 +34829 53963961 1250 +34830 53965211 1742 +34831 53966953 1028 +34832 53967981 2504 +34833 53970485 1364 +34834 53971849 4190 +34835 53976039 644 +34836 53976683 662 +34837 53977345 632 +34838 53977977 578 +34839 53978555 1202 +34840 53979757 656 +34841 53980413 638 +34842 53981051 1940 +34843 53982991 1970 +34844 53984961 1010 +34845 53985971 662 +34846 53986633 578 +34847 53987211 578 +34848 53987789 848 +34849 53988637 548 +34850 53989185 602 +34851 53989787 644 +34852 53990431 1634 +34853 53992065 434 +34854 53992499 434 +34855 53992933 434 +34856 53993367 1190 +34857 53994557 572 +34858 53995129 1190 +34859 53996319 572 +34860 53996891 698 +34861 53997589 836 +34862 53998425 644 +34863 53999069 3752 +34864 54002821 3752 +34865 54006573 2678 +34866 54009251 2678 +34867 54011929 2714 +34868 54014643 1250 +34869 54015893 3806 +34870 54019699 4004 +34871 54023703 3992 +34872 54027695 1100 +34873 54028795 1100 +34874 54029895 1100 +34875 54030995 1100 +34876 54032095 1100 +34877 54033195 1100 +34878 54034295 1100 +34879 54035395 1100 +34880 54036495 1100 +34881 54037595 1100 +34882 54038695 1100 +34883 54039795 1100 +34884 54040895 1166 +34885 54042061 1160 +34886 54043221 1172 +34887 54044393 1160 +34888 54045553 1160 +34889 54046713 1154 +34890 54047867 572 +34891 54048439 44 +34892 54048483 4580 +34893 54053063 1958 +34894 54055021 5089 +34895 54060110 824 +34896 54060934 1202 +34897 54062136 1922 +34898 54064058 1748 +34899 54065806 1880 +34900 54067686 1766 +34901 54069452 668 +34902 54070120 1244 +34903 54071364 2366 +34904 54073730 578 +34905 54074308 2132 +34906 54076440 1778 +34907 54078218 848 +34908 54079066 740 +34909 54079806 656 +34910 54080462 896 +34911 54081358 1742 +34912 54083100 1568 +34913 54084668 1310 +34914 54085978 938 +34915 54086916 806 +34916 54087722 662 +34917 54088384 590 +34918 54088974 590 +34919 54089564 590 +34920 54090154 488 +34921 54090642 572 +34922 54091214 914 +34923 54092128 818 +34924 54092946 2330 +34925 54095276 980 +34926 54096256 278 +34927 54096534 1472 +34928 54098006 170 +34929 54098176 176 +34930 54098352 170 +34931 54098522 236 +34932 54098758 170 +34933 54098928 164 +34934 54099092 1082 +34935 54100174 716 +34936 54100890 380 +34937 54101270 668 +34938 54101938 320 +34939 54102258 284 +34940 54102542 4208 +34941 54106750 1448 +34942 54108198 1184 +34943 54109382 1340 +34944 54110722 428 +34945 54111150 1850 +34946 54113000 1508 +34947 54114508 596 +34948 54115104 1280 +34949 54116384 1064 +34950 54117448 1070 +34951 54118518 698 +34952 54119216 1736 +34953 54120952 926 +34954 54121878 866 +34955 54122744 1346 +34956 54124090 848 +34957 54124938 938 +34958 54125876 1004 +34959 54126880 902 +34960 54127782 920 +34961 54128702 68 +34962 54128770 1244 +34963 54130014 1220 +34964 54131234 1220 +34965 54132454 1220 +34966 54133674 1220 +34967 54134894 1220 +34968 54136114 1244 +34969 54137358 1220 +34970 54138578 2030 +34971 54140608 2030 +34972 54142638 2030 +34973 54144668 2030 +34974 54146698 1022 +34975 54147720 1274 +34976 54148994 1310 +34977 54150304 1274 +34978 54151578 2030 +34979 54153608 2030 +34980 54155638 2030 +34981 54157668 2030 +34982 54159698 1112 +34983 54160810 1112 +34984 54161922 1112 +34985 54163034 1760 +34986 54164794 1784 +34987 54166578 1460 +34988 54168038 1460 +34989 54169498 464 +34990 54169962 884 +34991 54170846 104 +34992 54170950 104 +34993 54171054 104 +34994 54171158 104 +34995 54171262 104 +34996 54171366 104 +34997 54171470 104 +34998 54171574 104 +34999 54171678 104 +35000 54171782 104 +35001 54171886 104 +35002 54171990 104 +35003 54172094 104 +35004 54172198 104 +35005 54172302 104 +35006 54172406 104 +35007 54172510 926 +35008 54173436 560 +35009 54173996 560 +35010 54174556 926 +35011 54175482 668 +35012 54176150 1856 +35013 54178006 1646 +35014 54179652 3038 +35015 54182690 1970 +35016 54184660 920 +35017 54185580 68 +35018 54185648 4148 +35019 54189796 854 +35020 54190650 1814 +35021 54192464 716 +35022 54193180 1448 +35023 54194628 1442 +35024 54196070 1016 +35025 54197086 656 +35026 54197742 656 +35027 54198398 1778 +35028 54200176 4454 +35029 54204630 656 +35030 54205286 1280 +35031 54206566 1280 +35032 54207846 1280 +35033 54209126 1280 +35034 54210406 1280 +35035 54211686 6272 +35036 54217958 2048 +35037 54220006 1880 +35038 54221886 2030 +35039 54223916 1856 +35040 54225772 1088 +35041 54226860 266 +35042 54227126 290 +35043 54227416 590 +35044 54228006 854 +35045 54228860 854 +35046 54229714 632 +35047 54230346 674 +35048 54231020 734 +35049 54231754 734 +35050 54232488 1184 +35051 54233672 824 +35052 54234496 1490 +35053 54235986 734 +35054 54236720 1490 +35055 54238210 734 +35056 54238944 2114 +35057 54241058 3536 +35058 54244594 2852 +35059 54247446 3536 +35060 54250982 2852 +35061 54253834 1214 +35062 54255048 1214 +35063 54256262 1214 +35064 54257476 1214 +35065 54258690 944 +35066 54259634 950 +35067 54260584 1826 +35068 54262410 1040 +35069 54263450 416 +35070 54263866 986 +35071 54264852 422 +35072 54265274 1064 +35073 54266338 230 +35074 54266568 1472 +35075 54268040 1208 +35076 54269248 1190 +35077 54270438 1670 +35078 54272108 1742 +35079 54273850 404 +35080 54274254 3638 +35081 54277892 98 +35082 54277990 1634 +35083 54279624 1634 +35084 54281258 1640 +35085 54282898 368 +35086 54283266 368 +35087 54283634 1850 +35088 54285484 680 +35089 54286164 680 +35090 54286844 1100 +35091 54287944 1100 +35092 54289044 1088 +35093 54290132 1088 +35094 54291220 1088 +35095 54292308 1088 +35096 54293396 1088 +35097 54294484 1088 +35098 54295572 638 +35099 54296210 638 +35100 54296848 632 +35101 54297480 614 +35102 54298094 1856 +35103 54299950 1856 +35104 54301806 1856 +35105 54303662 1148 +35106 54304810 1106 +35107 54305916 1106 +35108 54307022 776 +35109 54307798 230 +35110 54308028 1634 +35111 54309662 1262 +35112 54310924 1214 +35113 54312138 1070 +35114 54313208 1064 +35115 54314272 290 +35116 54314562 854 +35117 54315416 860 +35118 54316276 740 +35119 54317016 866 +35120 54317882 824 +35121 54318706 728 +35122 54319434 704 +35123 54320138 692 +35124 54320830 710 +35125 54321540 626 +35126 54322166 668 +35127 54322834 566 +35128 54323400 620 +35129 54324020 572 +35130 54324592 458 +35131 54325050 470 +35132 54325520 386 +35133 54325906 356 +35134 54326262 344 +35135 54326606 308 +35136 54326914 284 +35137 54327198 392 +35138 54327590 236 +35139 54327826 404 +35140 54328230 1316 +35141 54329546 1244 +35142 54330790 1238 +35143 54332028 908 +35144 54332936 608 +35145 54333544 914 +35146 54334458 782 +35147 54335240 770 +35148 54336010 596 +35149 54336606 710 +35150 54337316 746 +35151 54338062 692 +35152 54338754 584 +35153 54339338 536 +35154 54339874 500 +35155 54340374 488 +35156 54340862 338 +35157 54341200 482 +35158 54341682 518 +35159 54342200 314 +35160 54342514 3704 +35161 54346218 3704 +35162 54349922 3722 +35163 54353644 938 +35164 54354582 980 +35165 54355562 986 +35166 54356548 980 +35167 54357528 980 +35168 54358508 464 +35169 54358972 464 +35170 54359436 3998 +35171 54363434 2600 +35172 54366034 1490 +35173 54367524 1544 +35174 54369068 1508 +35175 54370576 1490 +35176 54372066 1544 +35177 54373610 1508 +35178 54375118 1496 +35179 54376614 1544 +35180 54378158 1484 +35181 54379642 1496 +35182 54381138 1544 +35183 54382682 1484 +35184 54384166 752 +35185 54384918 716 +35186 54385634 1076 +35187 54386710 1892 +35188 54388602 902 +35189 54389504 1070 +35190 54390574 1070 +35191 54391644 902 +35192 54392546 890 +35193 54393436 896 +35194 54394332 902 +35195 54395234 1166 +35196 54396400 1196 +35197 54397596 2792 +35198 54400388 2498 +35199 54402886 2516 +35200 54405402 2648 +35201 54408050 2486 +35202 54410536 1862 +35203 54412398 560 +35204 54412958 554 +35205 54413512 554 +35206 54414066 560 +35207 54414626 554 +35208 54415180 554 +35209 54415734 674 +35210 54416408 1172 +35211 54417580 1178 +35212 54418758 704 +35213 54419462 698 +35214 54420160 1034 +35215 54421194 1028 +35216 54422222 710 +35217 54422932 698 +35218 54423630 884 +35219 54424514 890 +35220 54425404 890 +35221 54426294 926 +35222 54427220 896 +35223 54428116 896 +35224 54429012 716 +35225 54429728 470 +35226 54430198 1946 +35227 54432144 392 +35228 54432536 2294 +35229 54434830 2294 +35230 54437124 1766 +35231 54438890 752 +35232 54439642 746 +35233 54440388 1400 +35234 54441788 1328 +35235 54443116 1376 +35236 54444492 1286 +35237 54445778 1100 +35238 54446878 926 +35239 54447804 2066 +35240 54449870 2066 +35241 54451936 2936 +35242 54454872 2936 +35243 54457808 2936 +35244 54460744 2942 +35245 54463686 2942 +35246 54466628 2942 +35247 54469570 2324 +35248 54471894 2228 +35249 54474122 1508 +35250 54475630 1508 +35251 54477138 1508 +35252 54478646 566 +35253 54479212 578 +35254 54479790 578 +35255 54480368 4094 +35256 54484462 818 +35257 54485280 1682 +35258 54486962 1646 +35259 54488608 4118 +35260 54492726 10297 +35261 54503023 2018 +35262 54505041 572 +35263 54505613 1280 +35264 54506893 1196 +35265 54508089 440 +35266 54508529 440 +35267 54508969 812 +35268 54509781 818 +35269 54510599 1184 +35270 54511783 1184 +35271 54512967 566 +35272 54513533 596 +35273 54514129 488 +35274 54514617 494 +35275 54515111 488 +35276 54515599 500 +35277 54516099 1760 +35278 54517859 938 +35279 54518797 674 +35280 54519471 674 +35281 54520145 2048 +35282 54522193 2036 +35283 54524229 2066 +35284 54526295 2036 +35285 54528331 1478 +35286 54529809 1478 +35287 54531287 566 +35288 54531853 566 +35289 54532419 566 +35290 54532985 566 +35291 54533551 2816 +35292 54536367 2276 +35293 54538643 2030 +35294 54540673 578 +35295 54541251 3002 +35296 54544253 578 +35297 54544831 3002 +35298 54547833 578 +35299 54548411 3002 +35300 54551413 578 +35301 54551991 3002 +35302 54554993 578 +35303 54555571 3002 +35304 54558573 578 +35305 54559151 3002 +35306 54562153 578 +35307 54562731 3002 +35308 54565733 578 +35309 54566311 3002 +35310 54569313 578 +35311 54569891 3002 +35312 54572893 578 +35313 54573471 3002 +35314 54576473 578 +35315 54577051 3002 +35316 54580053 578 +35317 54580631 3002 +35318 54583633 578 +35319 54584211 3002 +35320 54587213 578 +35321 54587791 3002 +35322 54590793 578 +35323 54591371 3002 +35324 54594373 578 +35325 54594951 3002 +35326 54597953 578 +35327 54598531 3002 +35328 54601533 578 +35329 54602111 3002 +35330 54605113 578 +35331 54605691 3002 +35332 54608693 578 +35333 54609271 3002 +35334 54612273 578 +35335 54612851 3002 +35336 54615853 578 +35337 54616431 3002 +35338 54619433 578 +35339 54620011 3002 +35340 54623013 578 +35341 54623591 3002 +35342 54626593 578 +35343 54627171 3002 +35344 54630173 578 +35345 54630751 3002 +35346 54633753 578 +35347 54634331 3002 +35348 54637333 578 +35349 54637911 3002 +35350 54640913 578 +35351 54641491 3002 +35352 54644493 578 +35353 54645071 3002 +35354 54648073 578 +35355 54648651 3002 +35356 54651653 578 +35357 54652231 3002 +35358 54655233 578 +35359 54655811 3002 +35360 54658813 578 +35361 54659391 3002 +35362 54662393 578 +35363 54662971 3002 +35364 54665973 578 +35365 54666551 3002 +35366 54669553 578 +35367 54670131 3002 +35368 54673133 578 +35369 54673711 3002 +35370 54676713 578 +35371 54677291 3002 +35372 54680293 578 +35373 54680871 3002 +35374 54683873 578 +35375 54684451 3002 +35376 54687453 578 +35377 54688031 3002 +35378 54691033 578 +35379 54691611 3002 +35380 54694613 578 +35381 54695191 3002 +35382 54698193 578 +35383 54698771 3002 +35384 54701773 578 +35385 54702351 3002 +35386 54705353 578 +35387 54705931 3002 +35388 54708933 578 +35389 54709511 3002 +35390 54712513 578 +35391 54713091 3002 +35392 54716093 578 +35393 54716671 3002 +35394 54719673 578 +35395 54720251 3002 +35396 54723253 578 +35397 54723831 3002 +35398 54726833 578 +35399 54727411 3002 +35400 54730413 578 +35401 54730991 3002 +35402 54733993 578 +35403 54734571 3002 +35404 54737573 578 +35405 54738151 3002 +35406 54741153 578 +35407 54741731 3002 +35408 54744733 578 +35409 54745311 3002 +35410 54748313 578 +35411 54748891 3002 +35412 54751893 578 +35413 54752471 3002 +35414 54755473 560 +35415 54756033 590 +35416 54756623 572 +35417 54757195 560 +35418 54757755 554 +35419 54758309 560 +35420 54758869 2810 +35421 54761679 2714 +35422 54764393 2756 +35423 54767149 2732 +35424 54769881 5030 +35425 54774911 5030 +35426 54779941 464 +35427 54780405 854 +35428 54781259 854 +35429 54782113 1250 +35430 54783363 1244 +35431 54784607 1244 +35432 54785851 1226 +35433 54787077 2534 +35434 54789611 1622 +35435 54791233 692 +35436 54791925 1460 +35437 54793385 1472 +35438 54794857 1718 +35439 54796575 1706 +35440 54798281 662 +35441 54798943 656 +35442 54799599 620 +35443 54800219 1946 +35444 54802165 1946 +35445 54804111 1946 +35446 54806057 1946 +35447 54808003 1946 +35448 54809949 1946 +35449 54811895 1328 +35450 54813223 1328 +35451 54814551 1532 +35452 54816083 1904 +35453 54817987 1910 +35454 54819897 1886 +35455 54821783 1898 +35456 54823681 1898 +35457 54825579 1874 +35458 54827453 1880 +35459 54829333 1856 +35460 54831189 1754 +35461 54832943 842 +35462 54833785 4586 +35463 54838371 1202 +35464 54839573 3404 +35465 54842977 3146 +35466 54846123 1472 +35467 54847595 1214 +35468 54848809 302 +35469 54849111 302 +35470 54849413 296 +35471 54849709 296 +35472 54850005 302 +35473 54850307 302 +35474 54850609 302 +35475 54850911 302 +35476 54851213 302 +35477 54851515 302 +35478 54851817 302 +35479 54852119 302 +35480 54852421 302 +35481 54852723 302 +35482 54853025 302 +35483 54853327 302 +35484 54853629 302 +35485 54853931 302 +35486 54854233 302 +35487 54854535 302 +35488 54854837 302 +35489 54855139 302 +35490 54855441 302 +35491 54855743 302 +35492 54856045 242 +35493 54856287 248 +35494 54856535 242 +35495 54856777 248 +35496 54857025 248 +35497 54857273 242 +35498 54857515 242 +35499 54857757 242 +35500 54857999 248 +35501 54858247 242 +35502 54858489 242 +35503 54858731 242 +35504 54858973 242 +35505 54859215 242 +35506 54859457 242 +35507 54859699 242 +35508 54859941 248 +35509 54860189 248 +35510 54860437 248 +35511 54860685 248 +35512 54860933 242 +35513 54861175 248 +35514 54861423 248 +35515 54861671 242 +35516 54861913 1802 +35517 54863715 626 +35518 54864341 380 +35519 54864721 1052 +35520 54865773 1646 +35521 54867419 1898 +35522 54869317 338 +35523 54869655 356 +35524 54870011 344 +35525 54870355 368 +35526 54870723 356 +35527 54871079 356 +35528 54871435 356 +35529 54871791 368 +35530 54872159 368 +35531 54872527 368 +35532 54872895 434 +35533 54873329 368 +35534 54873697 368 +35535 54874065 434 +35536 54874499 368 +35537 54874867 434 +35538 54875301 242 +35539 54875543 242 +35540 54875785 242 +35541 54876027 242 +35542 54876269 242 +35543 54876511 242 +35544 54876753 242 +35545 54876995 242 +35546 54877237 242 +35547 54877479 242 +35548 54877721 242 +35549 54877963 242 +35550 54878205 242 +35551 54878447 248 +35552 54878695 242 +35553 54878937 242 +35554 54879179 302 +35555 54879481 302 +35556 54879783 296 +35557 54880079 296 +35558 54880375 302 +35559 54880677 302 +35560 54880979 302 +35561 54881281 302 +35562 54881583 302 +35563 54881885 302 +35564 54882187 302 +35565 54882489 302 +35566 54882791 302 +35567 54883093 302 +35568 54883395 302 +35569 54883697 302 +35570 54883999 302 +35571 54884301 302 +35572 54884603 302 +35573 54884905 302 +35574 54885207 302 +35575 54885509 302 +35576 54885811 302 +35577 54886113 302 +35578 54886415 242 +35579 54886657 248 +35580 54886905 242 +35581 54887147 248 +35582 54887395 248 +35583 54887643 242 +35584 54887885 242 +35585 54888127 242 +35586 54888369 248 +35587 54888617 242 +35588 54888859 242 +35589 54889101 242 +35590 54889343 242 +35591 54889585 242 +35592 54889827 242 +35593 54890069 242 +35594 54890311 248 +35595 54890559 248 +35596 54890807 248 +35597 54891055 248 +35598 54891303 242 +35599 54891545 248 +35600 54891793 248 +35601 54892041 242 +35602 54892283 1802 +35603 54894085 626 +35604 54894711 602 +35605 54895313 380 +35606 54895693 1088 +35607 54896781 1646 +35608 54898427 2018 +35609 54900445 338 +35610 54900783 356 +35611 54901139 344 +35612 54901483 368 +35613 54901851 356 +35614 54902207 356 +35615 54902563 356 +35616 54902919 368 +35617 54903287 368 +35618 54903655 368 +35619 54904023 434 +35620 54904457 368 +35621 54904825 368 +35622 54905193 434 +35623 54905627 368 +35624 54905995 434 +35625 54906429 242 +35626 54906671 242 +35627 54906913 242 +35628 54907155 242 +35629 54907397 242 +35630 54907639 242 +35631 54907881 242 +35632 54908123 242 +35633 54908365 242 +35634 54908607 242 +35635 54908849 242 +35636 54909091 242 +35637 54909333 242 +35638 54909575 248 +35639 54909823 242 +35640 54910065 242 +35641 54910307 650 +35642 54910957 1364 +35643 54912321 890 +35644 54913211 1604 +35645 54914815 842 +35646 54915657 842 +35647 54916499 1118 +35648 54917617 1256 +35649 54918873 3488 +35650 54922361 602 +35651 54922963 488 +35652 54923451 650 +35653 54924101 572 +35654 54924673 602 +35655 54925275 488 +35656 54925763 656 +35657 54926419 572 +35658 54926991 1472 +35659 54928463 1472 +35660 54929935 1472 +35661 54931407 2420 +35662 54933827 4370 +35663 54938197 2420 +35664 54940617 4370 +35665 54944987 2420 +35666 54947407 4358 +35667 54951765 2420 +35668 54954185 4358 +35669 54958543 1868 +35670 54960411 1856 +35671 54962267 1772 +35672 54964039 368 +35673 54964407 350 +35674 54964757 524 +35675 54965281 2264 +35676 54967545 2240 +35677 54969785 1250 +35678 54971035 830 +35679 54971865 830 +35680 54972695 1016 +35681 54973711 1922 +35682 54975633 1946 +35683 54977579 3470 +35684 54981049 3464 +35685 54984513 1496 +35686 54986009 1664 +35687 54987673 1616 +35688 54989289 1004 +35689 54990293 410 +35690 54990703 542 +35691 54991245 548 +35692 54991793 1454 +35693 54993247 1442 +35694 54994689 1340 +35695 54996029 548 +35696 54996577 548 +35697 54997125 2402 +35698 54999527 2246 +35699 55001773 2402 +35700 55004175 2258 +35701 55006433 716 +35702 55007149 710 +35703 55007859 716 +35704 55008575 92 +35705 55008667 614 +35706 55009281 98 +35707 55009379 620 +35708 55009999 2966 +35709 55012965 2948 +35710 55015913 2942 +35711 55018855 2954 +35712 55021809 2954 +35713 55024763 2936 +35714 55027699 3446 +35715 55031145 776 +35716 55031921 2912 +35717 55034833 740 +35718 55035573 1856 +35719 55037429 1928 +35720 55039357 1628 +35721 55040985 872 +35722 55041857 872 +35723 55042729 872 +35724 55043601 872 +35725 55044473 872 +35726 55045345 872 +35727 55046217 1814 +35728 55048031 1814 +35729 55049845 2474 +35730 55052319 2474 +35731 55054793 2474 +35732 55057267 1910 +35733 55059177 1922 +35734 55061099 2606 +35735 55063705 2606 +35736 55066311 3440 +35737 55069751 866 +35738 55070617 878 +35739 55071495 890 +35740 55072385 866 +35741 55073251 1454 +35742 55074705 1202 +35743 55075907 1190 +35744 55077097 1568 +35745 55078665 1562 +35746 55080227 1580 +35747 55081807 1556 +35748 55083363 1586 +35749 55084949 1586 +35750 55086535 1586 +35751 55088121 1574 +35752 55089695 74 +35753 55089769 74 +35754 55089843 74 +35755 55089917 74 +35756 55089991 74 +35757 55090065 74 +35758 55090139 74 +35759 55090213 74 +35760 55090287 74 +35761 55090361 74 +35762 55090435 74 +35763 55090509 74 +35764 55090583 164 +35765 55090747 164 +35766 55090911 164 +35767 55091075 164 +35768 55091239 1022 +35769 55092261 1778 +35770 55094039 4706 +35771 55098745 4724 +35772 55103469 4520 +35773 55107989 6265 +35774 55114254 2678 +35775 55116932 794 +35776 55117726 1766 +35777 55119492 398 +35778 55119890 2144 +35779 55122034 3698 +35780 55125732 8588 +35781 55134320 7088 +35782 55141408 1604 +35783 55143012 1010 +35784 55144022 1292 +35785 55145314 524 +35786 55145838 1034 +35787 55146872 848 +35788 55147720 704 +35789 55148424 422 +35790 55148846 698 +35791 55149544 278 +35792 55149822 1856 +35793 55151678 1094 +35794 55152772 2653 +35795 55155425 1616 +35796 55157041 650 +35797 55157691 632 +35798 55158323 3745 +35799 55162068 2557 +35800 55164625 4520 +35801 55169145 6265 +35802 55175410 2678 +35803 55178088 794 +35804 55178882 1766 +35805 55180648 398 +35806 55181046 2144 +35807 55183190 3698 +35808 55186888 8588 +35809 55195476 7088 +35810 55202564 1604 +35811 55204168 1010 +35812 55205178 1292 +35813 55206470 524 +35814 55206994 1034 +35815 55208028 848 +35816 55208876 704 +35817 55209580 422 +35818 55210002 698 +35819 55210700 278 +35820 55210978 1856 +35821 55212834 1094 +35822 55213928 2653 +35823 55216581 1616 +35824 55218197 650 +35825 55218847 632 +35826 55219479 3745 +35827 55223224 1268 +35828 55224492 854 +35829 55225346 854 +35830 55226200 1766 +35831 55227966 1718 +35832 55229684 1604 +35833 55231288 1682 +35834 55232970 1268 +35835 55234238 1262 +35836 55235500 1268 +35837 55236768 1268 +35838 55238036 2534 +35839 55240570 1820 +35840 55242390 1820 +35841 55244210 1532 +35842 55245742 776 +35843 55246518 716 +35844 55247234 4640 +35845 55251874 2816 +35846 55254690 2156 +35847 55256846 890 +35848 55257736 1904 +35849 55259640 1556 +35850 55261196 1496 +35851 55262692 4460 +35852 55267152 1946 +35853 55269098 560 +35854 55269658 200 +35855 55269858 1256 +35856 55271114 1208 +35857 55272322 1088 +35858 55273410 584 +35859 55273994 938 +35860 55274932 794 +35861 55275726 764 +35862 55276490 602 +35863 55277092 698 +35864 55277790 740 +35865 55278530 704 +35866 55279234 368 +35867 55279602 536 +35868 55280138 686 +35869 55280824 572 +35870 55281396 398 +35871 55281794 500 +35872 55282294 518 +35873 55282812 1376 +35874 55284188 74 +35875 55284262 974 +35876 55285236 974 +35877 55286210 974 +35878 55287184 986 +35879 55288170 914 +35880 55289084 86 +35881 55289170 776 +35882 55289946 782 +35883 55290728 1316 +35884 55292044 1292 +35885 55293336 890 +35886 55294226 1358 +35887 55295584 1400 +35888 55296984 1358 +35889 55298342 1400 +35890 55299742 2996 +35891 55302738 1892 +35892 55304630 1622 +35893 55306252 956 +35894 55307208 950 +35895 55308158 668 +35896 55308826 656 +35897 55309482 668 +35898 55310150 656 +35899 55310806 1628 +35900 55312434 1100 +35901 55313534 1100 +35902 55314634 1178 +35903 55315812 428 +35904 55316240 344 +35905 55316584 350 +35906 55316934 344 +35907 55317278 44 +35908 55317322 926 +35909 55318248 824 +35910 55319072 1988 +35911 55321060 2054 +35912 55323114 146 +35913 55323260 1658 +35914 55324918 1292 +35915 55326210 1262 +35916 55327472 1100 +35917 55328572 1064 +35918 55329636 914 +35919 55330550 764 +35920 55331314 806 +35921 55332120 884 +35922 55333004 740 +35923 55333744 878 +35924 55334622 824 +35925 55335446 716 +35926 55336162 764 +35927 55336926 686 +35928 55337612 752 +35929 55338364 608 +35930 55338972 692 +35931 55339664 590 +35932 55340254 590 +35933 55340844 1160 +35934 55342004 482 +35935 55342486 386 +35936 55342872 392 +35937 55343264 362 +35938 55343626 332 +35939 55343958 302 +35940 55344260 284 +35941 55344544 386 +35942 55344930 230 +35943 55345160 296 +35944 55345456 962 +35945 55346418 1640 +35946 55348058 1652 +35947 55349710 1580 +35948 55351290 3080 +35949 55354370 1292 +35950 55355662 1148 +35951 55356810 1112 +35952 55357922 818 +35953 55358740 830 +35954 55359570 806 +35955 55360376 764 +35956 55361140 578 +35957 55361718 590 +35958 55362308 110 +35959 55362418 98 +35960 55362516 446 +35961 55362962 416 +35962 55363378 434 +35963 55363812 422 +35964 55364234 422 +35965 55364656 1784 +35966 55366440 2402 +35967 55368842 2420 +35968 55371262 1538 +35969 55372800 1544 +35970 55374344 998 +35971 55375342 992 +35972 55376334 998 +35973 55377332 992 +35974 55378324 998 +35975 55379322 992 +35976 55380314 536 +35977 55380850 542 +35978 55381392 1850 +35979 55383242 3008 +35980 55386250 1850 +35981 55388100 338 +35982 55388438 1004 +35983 55389442 908 +35984 55390350 1004 +35985 55391354 2468 +35986 55393822 2492 +35987 55396314 992 +35988 55397306 1946 +35989 55399252 1946 +35990 55401198 434 +35991 55401632 1934 +35992 55403566 1928 +35993 55405494 4286 +35994 55409780 1460 +35995 55411240 1508 +35996 55412748 4232 +35997 55416980 8401 +35998 55425381 1472 +35999 55426853 4226 +36000 55431079 1532 +36001 55432611 4256 +36002 55436867 1460 +36003 55438327 4634 +36004 55442961 962 +36005 55443923 1676 +36006 55445599 1712 +36007 55447311 1724 +36008 55449035 2174 +36009 55451209 4454 +36010 55455663 884 +36011 55456547 1658 +36012 55458205 1640 +36013 55459845 1682 +36014 55461527 734 +36015 55462261 1658 +36016 55463919 2174 +36017 55466093 4412 +36018 55470505 236 +36019 55470741 1178 +36020 55471919 1892 +36021 55473811 386 +36022 55474197 938 +36023 55475135 962 +36024 55476097 956 +36025 55477053 956 +36026 55478009 956 +36027 55478965 944 +36028 55479909 956 +36029 55480865 956 +36030 55481821 944 +36031 55482765 392 +36032 55483157 4520 +36033 55487677 6265 +36034 55493942 2678 +36035 55496620 794 +36036 55497414 1766 +36037 55499180 398 +36038 55499578 2144 +36039 55501722 3698 +36040 55505420 8576 +36041 55513996 7088 +36042 55521084 1604 +36043 55522688 986 +36044 55523674 1292 +36045 55524966 524 +36046 55525490 1034 +36047 55526524 848 +36048 55527372 704 +36049 55528076 422 +36050 55528498 698 +36051 55529196 278 +36052 55529474 1856 +36053 55531330 1094 +36054 55532424 2653 +36055 55535077 1616 +36056 55536693 650 +36057 55537343 632 +36058 55537975 3745 +36059 55541720 2485 +36060 55544205 248 +36061 55544453 2954 +36062 55547407 2960 +36063 55550367 2210 +36064 55552577 2216 +36065 55554793 1328 +36066 55556121 1328 +36067 55557449 1388 +36068 55558837 374 +36069 55559211 374 +36070 55559585 374 +36071 55559959 620 +36072 55560579 1904 +36073 55562483 1892 +36074 55564375 1550 +36075 55565925 1472 +36076 55567397 1370 +36077 55568767 1370 +36078 55570137 1370 +36079 55571507 1676 +36080 55573183 1052 +36081 55574235 1004 +36082 55575239 1052 +36083 55576291 1004 +36084 55577295 812 +36085 55578107 3554 +36086 55581661 2468 +36087 55584129 2450 +36088 55586579 1502 +36089 55588081 1502 +36090 55589583 1022 +36091 55590605 1028 +36092 55591633 698 +36093 55592331 698 +36094 55593029 698 +36095 55593727 698 +36096 55594425 698 +36097 55595123 698 +36098 55595821 698 +36099 55596519 698 +36100 55597217 410 +36101 55597627 68 +36102 55597695 980 +36103 55598675 3602 +36104 55602277 3626 +36105 55605903 1184 +36106 55607087 542 +36107 55607629 542 +36108 55608171 2360 +36109 55610531 2654 +36110 55613185 3254 +36111 55616439 2372 +36112 55618811 1448 +36113 55620259 1436 +36114 55621695 1832 +36115 55623527 1508 +36116 55625035 548 +36117 55625583 1238 +36118 55626821 848 +36119 55627669 1070 +36120 55628739 698 +36121 55629437 1730 +36122 55631167 1244 +36123 55632411 920 +36124 55633331 854 +36125 55634185 1310 +36126 55635495 848 +36127 55636343 944 +36128 55637287 1004 +36129 55638291 842 +36130 55639133 1220 +36131 55640353 614 +36132 55640967 1466 +36133 55642433 1064 +36134 55643497 728 +36135 55644225 500 +36136 55644725 656 +36137 55645381 320 +36138 55645701 278 +36139 55645979 578 +36140 55646557 236 +36141 55646793 2360 +36142 55649153 3889 +36143 55653042 1730 +36144 55654772 518 +36145 55655290 746 +36146 55656036 896 +36147 55656932 1724 +36148 55658656 1328 +36149 55659984 1310 +36150 55661294 788 +36151 55662082 794 +36152 55662876 638 +36153 55663514 590 +36154 55664104 518 +36155 55664622 578 +36156 55665200 272 +36157 55665472 260 +36158 55665732 488 +36159 55666220 770 +36160 55666990 818 +36161 55667808 950 +36162 55668758 2240 +36163 55670998 1298 +36164 55672296 2018 +36165 55674314 1436 +36166 55675750 422 +36167 55676172 782 +36168 55676954 284 +36169 55677238 188 +36170 55677426 188 +36171 55677614 182 +36172 55677796 170 +36173 55677966 182 +36174 55678148 530 +36175 55678678 1850 +36176 55680528 656 +36177 55681184 800 +36178 55681984 800 +36179 55682784 560 +36180 55683344 590 +36181 55683934 560 +36182 55684494 590 +36183 55685084 1490 +36184 55686574 866 +36185 55687440 872 +36186 55688312 866 +36187 55689178 872 +36188 55690050 2216 +36189 55692266 1868 +36190 55694134 1868 +36191 55696002 1868 +36192 55697870 1850 +36193 55699720 1844 +36194 55701564 1874 +36195 55703438 1802 +36196 55705240 1796 +36197 55707036 2936 +36198 55709972 1868 +36199 55711840 704 +36200 55712544 848 +36201 55713392 848 +36202 55714240 1280 +36203 55715520 1322 +36204 55716842 1322 +36205 55718164 1322 +36206 55719486 1322 +36207 55720808 1322 +36208 55722130 1322 +36209 55723452 1322 +36210 55724774 1322 +36211 55726096 446 +36212 55726542 482 +36213 55727024 548 +36214 55727572 74 +36215 55727646 440 +36216 55728086 2990 +36217 55731076 446 +36218 55731522 2996 +36219 55734518 2564 +36220 55737082 2564 +36221 55739646 2564 +36222 55742210 2558 +36223 55744768 2564 +36224 55747332 2564 +36225 55749896 1232 +36226 55751128 248 +36227 55751376 248 +36228 55751624 248 +36229 55751872 248 +36230 55752120 248 +36231 55752368 248 +36232 55752616 248 +36233 55752864 248 +36234 55753112 248 +36235 55753360 248 +36236 55753608 248 +36237 55753856 248 +36238 55754104 248 +36239 55754352 248 +36240 55754600 248 +36241 55754848 248 +36242 55755096 248 +36243 55755344 248 +36244 55755592 248 +36245 55755840 248 +36246 55756088 248 +36247 55756336 248 +36248 55756584 248 +36249 55756832 248 +36250 55757080 248 +36251 55757328 248 +36252 55757576 248 +36253 55757824 248 +36254 55758072 248 +36255 55758320 248 +36256 55758568 248 +36257 55758816 248 +36258 55759064 248 +36259 55759312 248 +36260 55759560 248 +36261 55759808 248 +36262 55760056 248 +36263 55760304 248 +36264 55760552 248 +36265 55760800 248 +36266 55761048 248 +36267 55761296 248 +36268 55761544 104 +36269 55761648 104 +36270 55761752 722 +36271 55762474 752 +36272 55763226 752 +36273 55763978 2036 +36274 55766014 2876 +36275 55768890 2864 +36276 55771754 1922 +36277 55773676 2840 +36278 55776516 512 +36279 55777028 518 +36280 55777546 500 +36281 55778046 512 +36282 55778558 908 +36283 55779466 890 +36284 55780356 890 +36285 55781246 884 +36286 55782130 884 +36287 55783014 896 +36288 55783910 896 +36289 55784806 890 +36290 55785696 884 +36291 55786580 884 +36292 55787464 68 +36293 55787532 1784 +36294 55789316 74 +36295 55789390 1784 +36296 55791174 2480 +36297 55793654 1910 +36298 55795564 1748 +36299 55797312 530 +36300 55797842 3392 +36301 55801234 2294 +36302 55803528 3752 +36303 55807280 1802 +36304 55809082 1064 +36305 55810146 1058 +36306 55811204 980 +36307 55812184 1196 +36308 55813380 1196 +36309 55814576 1196 +36310 55815772 4382 +36311 55820154 1532 +36312 55821686 1532 +36313 55823218 902 +36314 55824120 902 +36315 55825022 890 +36316 55825912 1466 +36317 55827378 812 +36318 55828190 1082 +36319 55829272 1082 +36320 55830354 884 +36321 55831238 884 +36322 55832122 1490 +36323 55833612 1490 +36324 55835102 1490 +36325 55836592 1490 +36326 55838082 500 +36327 55838582 992 +36328 55839574 1070 +36329 55840644 758 +36330 55841402 1052 +36331 55842454 998 +36332 55843452 740 +36333 55844192 674 +36334 55844866 560 +36335 55845426 3650 +36336 55849076 3704 +36337 55852780 1538 +36338 55854318 2342 +36339 55856660 2324 +36340 55858984 2324 +36341 55861308 2276 +36342 55863584 812 +36343 55864396 614 +36344 55865010 614 +36345 55865624 554 +36346 55866178 668 +36347 55866846 656 +36348 55867502 1520 +36349 55869022 1508 +36350 55870530 1406 +36351 55871936 314 +36352 55872250 308 +36353 55872558 4393 +36354 55876951 1784 +36355 55878735 236 +36356 55878971 1994 +36357 55880965 1658 +36358 55882623 500 +36359 55883123 2744 +36360 55885867 752 +36361 55886619 1952 +36362 55888571 1940 +36363 55890511 764 +36364 55891275 758 +36365 55892033 1046 +36366 55893079 4634 +36367 55897713 1178 +36368 55898891 2000 +36369 55900891 644 +36370 55901535 1616 +36371 55903151 2588 +36372 55905739 2120 +36373 55907859 668 +36374 55908527 422 +36375 55908949 482 +36376 55909431 2024 +36377 55911455 1472 +36378 55912927 1094 +36379 55914021 668 +36380 55914689 338 +36381 55915027 284 +36382 55915311 578 +36383 55915889 236 +36384 55916125 2372 +36385 55918497 2132 +36386 55920629 1772 +36387 55922401 620 +36388 55923021 752 +36389 55923773 1448 +36390 55925221 1838 +36391 55927059 1520 +36392 55928579 590 +36393 55929169 992 +36394 55930161 1058 +36395 55931219 1070 +36396 55932289 698 +36397 55932987 1754 +36398 55934741 1262 +36399 55936003 932 +36400 55936935 872 +36401 55937807 1334 +36402 55939141 848 +36403 55939989 974 +36404 55940963 1004 +36405 55941967 920 +36406 55942887 1220 +36407 55944107 644 +36408 55944751 1472 +36409 55946223 1094 +36410 55947317 740 +36411 55948057 608 +36412 55948665 902 +36413 55949567 1724 +36414 55951291 1346 +36415 55952637 1376 +36416 55954013 908 +36417 55954921 812 +36418 55955733 668 +36419 55956401 590 +36420 55956991 572 +36421 55957563 614 +36422 55958177 500 +36423 55958677 314 +36424 55958991 494 +36425 55959485 890 +36426 55960375 854 +36427 55961229 980 +36428 55962209 2324 +36429 55964533 782 +36430 55965315 734 +36431 55966049 3026 +36432 55969075 1022 +36433 55970097 3038 +36434 55973135 1028 +36435 55974163 362 +36436 55974525 80 +36437 55974605 644 +36438 55975249 644 +36439 55975893 644 +36440 55976537 632 +36441 55977169 920 +36442 55978089 560 +36443 55978649 560 +36444 55979209 230 +36445 55979439 62 +36446 55979501 1508 +36447 55981009 554 +36448 55981563 554 +36449 55982117 4130 +36450 55986247 4106 +36451 55990353 722 +36452 55991075 2966 +36453 55994041 2450 +36454 55996491 2438 +36455 55998929 1178 +36456 56000107 998 +36457 56001105 2432 +36458 56003537 1958 +36459 56005495 1922 +36460 56007417 1964 +36461 56009381 1814 +36462 56011195 1550 +36463 56012745 1436 +36464 56014181 1562 +36465 56015743 1562 +36466 56017305 1562 +36467 56018867 2108 +36468 56020975 2108 +36469 56023083 1880 +36470 56024963 1064 +36471 56026027 1034 +36472 56027061 8954 +36473 56036015 2894 +36474 56038909 722 +36475 56039631 722 +36476 56040353 722 +36477 56041075 722 +36478 56041797 1808 +36479 56043605 1100 +36480 56044705 458 +36481 56045163 1256 +36482 56046419 1256 +36483 56047675 1340 +36484 56049015 1310 +36485 56050325 1388 +36486 56051713 662 +36487 56052375 638 +36488 56053013 638 +36489 56053651 626 +36490 56054277 1388 +36491 56055665 2450 +36492 56058115 2516 +36493 56060631 4184 +36494 56064815 4184 +36495 56068999 4184 +36496 56073183 4184 +36497 56077367 4184 +36498 56081551 4184 +36499 56085735 4184 +36500 56089919 4184 +36501 56094103 476 +36502 56094579 476 +36503 56095055 476 +36504 56095531 476 +36505 56096007 476 +36506 56096483 476 +36507 56096959 476 +36508 56097435 476 +36509 56097911 476 +36510 56098387 476 +36511 56098863 476 +36512 56099339 476 +36513 56099815 476 +36514 56100291 476 +36515 56100767 476 +36516 56101243 476 +36517 56101719 476 +36518 56102195 476 +36519 56102671 2822 +36520 56105493 2018 +36521 56107511 2012 +36522 56109523 2990 +36523 56112513 896 +36524 56113409 896 +36525 56114305 896 +36526 56115201 896 +36527 56116097 890 +36528 56116987 896 +36529 56117883 896 +36530 56118779 896 +36531 56119675 2414 +36532 56122089 2414 +36533 56124503 2414 +36534 56126917 1472 +36535 56128389 1472 +36536 56129861 1472 +36537 56131333 1472 +36538 56132805 1472 +36539 56134277 1472 +36540 56135749 1472 +36541 56137221 1472 +36542 56138693 3440 +36543 56142133 2336 +36544 56144469 2336 +36545 56146805 848 +36546 56147653 1190 +36547 56148843 914 +36548 56149757 878 +36549 56150635 1550 +36550 56152185 1550 +36551 56153735 1550 +36552 56155285 2192 +36553 56157477 5306 +36554 56162783 5870 +36555 56168653 812 +36556 56169465 4298 +36557 56173763 4298 +36558 56178061 4268 +36559 56182329 4268 +36560 56186597 1880 +36561 56188477 2756 +36562 56191233 2486 +36563 56193719 2486 +36564 56196205 2486 +36565 56198691 854 +36566 56199545 1556 +36567 56201101 1556 +36568 56202657 1556 +36569 56204213 1556 +36570 56205769 2774 +36571 56208543 2774 +36572 56211317 2774 +36573 56214091 2774 +36574 56216865 848 +36575 56217713 344 +36576 56218057 848 +36577 56218905 344 +36578 56219249 848 +36579 56220097 344 +36580 56220441 1748 +36581 56222189 1736 +36582 56223925 830 +36583 56224755 830 +36584 56225585 1772 +36585 56227357 1772 +36586 56229129 3518 +36587 56232647 3518 +36588 56236165 2402 +36589 56238567 1802 +36590 56240369 1832 +36591 56242201 1802 +36592 56244003 2576 +36593 56246579 2588 +36594 56249167 1268 +36595 56250435 1268 +36596 56251703 446 +36597 56252149 1184 +36598 56253333 2324 +36599 56255657 2120 +36600 56257777 1610 +36601 56259387 944 +36602 56260331 1340 +36603 56261671 1376 +36604 56263047 1136 +36605 56264183 1022 +36606 56265205 1130 +36607 56266335 830 +36608 56267165 1226 +36609 56268391 1190 +36610 56269581 1052 +36611 56270633 812 +36612 56271445 944 +36613 56272389 1034 +36614 56273423 686 +36615 56274109 596 +36616 56274705 824 +36617 56275529 1412 +36618 56276941 710 +36619 56277651 764 +36620 56278415 818 +36621 56279233 566 +36622 56279799 2738 +36623 56282537 590 +36624 56283127 638 +36625 56283765 770 +36626 56284535 644 +36627 56285179 680 +36628 56285859 722 +36629 56286581 602 +36630 56287183 530 +36631 56287713 428 +36632 56288141 308 +36633 56288449 2822 +36634 56291271 530 +36635 56291801 1388 +36636 56293189 332 +36637 56293521 908 +36638 56294429 1730 +36639 56296159 1100 +36640 56297259 2936 +36641 56300195 1472 +36642 56301667 260 +36643 56301927 6392 +36644 56308319 2138 +36645 56310457 2744 +36646 56313201 2630 +36647 56315831 2630 +36648 56318461 656 +36649 56319117 1154 +36650 56320271 1046 +36651 56321317 3158 +36652 56324475 3158 +36653 56327633 1328 +36654 56328961 1226 +36655 56330187 1226 +36656 56331413 1076 +36657 56332489 944 +36658 56333433 932 +36659 56334365 680 +36660 56335045 1190 +36661 56336235 1190 +36662 56337425 560 +36663 56337985 2378 +36664 56340363 1142 +36665 56341505 650 +36666 56342155 650 +36667 56342805 536 +36668 56343341 536 +36669 56343877 2006 +36670 56345883 164 +36671 56346047 164 +36672 56346211 164 +36673 56346375 152 +36674 56346527 98 +36675 56346625 98 +36676 56346723 98 +36677 56346821 98 +36678 56346919 98 +36679 56347017 974 +36680 56347991 974 +36681 56348965 92 +36682 56349057 92 +36683 56349149 92 +36684 56349241 164 +36685 56349405 1682 +36686 56351087 800 +36687 56351887 428 +36688 56352315 740 +36689 56353055 1256 +36690 56354311 848 +36691 56355159 656 +36692 56355815 614 +36693 56356429 1052 +36694 56357481 722 +36695 56358203 668 +36696 56358871 1166 +36697 56360037 590 +36698 56360627 524 +36699 56361151 1778 +36700 56362929 818 +36701 56363747 1016 +36702 56364763 1064 +36703 56365827 2180 +36704 56368007 608 +36705 56368615 2120 +36706 56370735 902 +36707 56371637 608 +36708 56372245 2294 +36709 56374539 1358 +36710 56375897 710 +36711 56376607 2066 +36712 56378673 3536 +36713 56382209 1970 +36714 56384179 830 +36715 56385009 1298 +36716 56386307 614 +36717 56386921 620 +36718 56387541 614 +36719 56388155 614 +36720 56388769 614 +36721 56389383 608 +36722 56389991 320 +36723 56390311 308 +36724 56390619 770 +36725 56391389 1670 +36726 56393059 482 +36727 56393541 470 +36728 56394011 482 +36729 56394493 470 +36730 56394963 3260 +36731 56398223 3290 +36732 56401513 1388 +36733 56402901 1388 +36734 56404289 1388 +36735 56405677 1388 +36736 56407065 2516 +36737 56409581 2480 +36738 56412061 2462 +36739 56414523 2516 +36740 56417039 4556 +36741 56421595 4544 +36742 56426139 4526 +36743 56430665 1526 +36744 56432191 1634 +36745 56433825 1634 +36746 56435459 1526 +36747 56436985 1634 +36748 56438619 1634 +36749 56440253 2774 +36750 56443027 2774 +36751 56445801 2774 +36752 56448575 1724 +36753 56450299 1298 +36754 56451597 1298 +36755 56452895 1340 +36756 56454235 1604 +36757 56455839 1676 +36758 56457515 1604 +36759 56459119 1676 +36760 56460795 1604 +36761 56462399 1676 +36762 56464075 2678 +36763 56466753 2678 +36764 56469431 5666 +36765 56475097 5666 +36766 56480763 5666 +36767 56486429 5666 +36768 56492095 5444 +36769 56497539 5336 +36770 56502875 5444 +36771 56508319 5336 +36772 56513655 5444 +36773 56519099 5348 +36774 56524447 5444 +36775 56529891 5348 +36776 56535239 1532 +36777 56536771 1520 +36778 56538291 1520 +36779 56539811 1520 +36780 56541331 1520 +36781 56542851 2180 +36782 56545031 1106 +36783 56546137 1106 +36784 56547243 728 +36785 56547971 740 +36786 56548711 2552 +36787 56551263 782 +36788 56552045 782 +36789 56552827 1502 +36790 56554329 1514 +36791 56555843 884 +36792 56556727 770 +36793 56557497 716 +36794 56558213 740 +36795 56558953 704 +36796 56559657 5732 +36797 56565389 1322 +36798 56566711 1322 +36799 56568033 2348 +36800 56570381 758 +36801 56571139 758 +36802 56571897 944 +36803 56572841 902 +36804 56573743 1358 +36805 56575101 1034 +36806 56576135 1028 +36807 56577163 1418 +36808 56578581 1706 +36809 56580287 1706 +36810 56581993 692 +36811 56582685 1148 +36812 56583833 1778 +36813 56585611 1430 +36814 56587041 1910 +36815 56588951 1346 +36816 56590297 1574 +36817 56591871 1244 +36818 56593115 1364 +36819 56594479 1616 +36820 56596095 68 +36821 56596163 1160 +36822 56597323 590 +36823 56597913 590 +36824 56598503 734 +36825 56599237 2174 +36826 56601411 2174 +36827 56603585 1724 +36828 56605309 2018 +36829 56607327 1922 +36830 56609249 1004 +36831 56610253 998 +36832 56611251 674 +36833 56611925 674 +36834 56612599 662 +36835 56613261 2036 +36836 56615297 1958 +36837 56617255 914 +36838 56618169 914 +36839 56619083 920 +36840 56620003 3734 +36841 56623737 3734 +36842 56627471 1664 +36843 56629135 1274 +36844 56630409 1310 +36845 56631719 1274 +36846 56632993 1310 +36847 56634303 1274 +36848 56635577 1310 +36849 56636887 3656 +36850 56640543 3710 +36851 56644253 1082 +36852 56645335 596 +36853 56645931 560 +36854 56646491 674 +36855 56647165 674 +36856 56647839 482 +36857 56648321 512 +36858 56648833 482 +36859 56649315 512 +36860 56649827 482 +36861 56650309 512 +36862 56650821 4226 +36863 56655047 218 +36864 56655265 218 +36865 56655483 218 +36866 56655701 2564 +36867 56658265 2678 +36868 56660943 2684 +36869 56663627 2594 +36870 56666221 2258 +36871 56668479 2102 +36872 56670581 2096 +36873 56672677 1346 +36874 56674023 638 +36875 56674661 602 +36876 56675263 878 +36877 56676141 782 +36878 56676923 782 +36879 56677705 1298 +36880 56679003 710 +36881 56679713 680 +36882 56680393 710 +36883 56681103 740 +36884 56681843 2078 +36885 56683921 50 +36886 56683971 2144 +36887 56686115 2144 +36888 56688259 2666 +36889 56690925 2666 +36890 56693591 2666 +36891 56696257 2660 +36892 56698917 2666 +36893 56701583 2666 +36894 56704249 3974 +36895 56708223 3914 +36896 56712137 3920 +36897 56716057 1268 +36898 56717325 1184 +36899 56718509 1262 +36900 56719771 1808 +36901 56721579 2060 +36902 56723639 2240 +36903 56725879 2054 +36904 56727933 1772 +36905 56729705 794 +36906 56730499 1226 +36907 56731725 932 +36908 56732657 1394 +36909 56734051 980 +36910 56735031 914 +36911 56735945 746 +36912 56736691 722 +36913 56737413 686 +36914 56738099 1346 +36915 56739445 728 +36916 56740173 1418 +36917 56741591 614 +36918 56742205 482 +36919 56742687 560 +36920 56743247 1430 +36921 56744677 1724 +36922 56746401 2420 +36923 56748821 596 +36924 56749417 1640 +36925 56751057 560 +36926 56751617 194 +36927 56751811 620 +36928 56752431 1550 +36929 56753981 1826 +36930 56755807 1754 +36931 56757561 1922 +36932 56759483 2810 +36933 56762293 872 +36934 56763165 1808 +36935 56764973 2060 +36936 56767033 2240 +36937 56769273 2054 +36938 56771327 1772 +36939 56773099 794 +36940 56773893 1226 +36941 56775119 932 +36942 56776051 1394 +36943 56777445 980 +36944 56778425 914 +36945 56779339 746 +36946 56780085 722 +36947 56780807 686 +36948 56781493 1346 +36949 56782839 728 +36950 56783567 1418 +36951 56784985 614 +36952 56785599 482 +36953 56786081 560 +36954 56786641 1430 +36955 56788071 1724 +36956 56789795 2420 +36957 56792215 596 +36958 56792811 1640 +36959 56794451 560 +36960 56795011 194 +36961 56795205 620 +36962 56795825 1550 +36963 56797375 1826 +36964 56799201 1754 +36965 56800955 1922 +36966 56802877 2810 +36967 56805687 1448 +36968 56807135 944 +36969 56808079 950 +36970 56809029 944 +36971 56809973 950 +36972 56810923 1598 +36973 56812521 1580 +36974 56814101 2270 +36975 56816371 2270 +36976 56818641 908 +36977 56819549 734 +36978 56820283 716 +36979 56820999 716 +36980 56821715 650 +36981 56822365 734 +36982 56823099 716 +36983 56823815 716 +36984 56824531 650 +36985 56825181 602 +36986 56825783 1148 +36987 56826931 1148 +36988 56828079 1142 +36989 56829221 2024 +36990 56831245 1946 +36991 56833191 2024 +36992 56835215 1946 +36993 56837161 2666 +36994 56839827 2666 +36995 56842493 968 +36996 56843461 686 +36997 56844147 590 +36998 56844737 830 +36999 56845567 848 +37000 56846415 824 +37001 56847239 578 +37002 56847817 1502 +37003 56849319 1280 +37004 56850599 1280 +37005 56851879 1280 +37006 56853159 1280 +37007 56854439 434 +37008 56854873 428 +37009 56855301 428 +37010 56855729 410 +37011 56856139 428 +37012 56856567 434 +37013 56857001 434 +37014 56857435 434 +37015 56857869 434 +37016 56858303 416 +37017 56858719 410 +37018 56859129 434 +37019 56859563 1526 +37020 56861089 1526 +37021 56862615 1484 +37022 56864099 1484 +37023 56865583 1970 +37024 56867553 1628 +37025 56869181 140 +37026 56869321 440 +37027 56869761 422 +37028 56870183 440 +37029 56870623 422 +37030 56871045 1262 +37031 56872307 134 +37032 56872441 482 +37033 56872923 578 +37034 56873501 590 +37035 56874091 482 +37036 56874573 590 +37037 56875163 572 +37038 56875735 590 +37039 56876325 590 +37040 56876915 134 +37041 56877049 1670 +37042 56878719 7148 +37043 56885867 410 +37044 56886277 4904 +37045 56891181 494 +37046 56891675 134 +37047 56891809 1094 +37048 56892903 290 +37049 56893193 590 +37050 56893783 416 +37051 56894199 1694 +37052 56895893 1928 +37053 56897821 1232 +37054 56899053 1232 +37055 56900285 1232 +37056 56901517 878 +37057 56902395 878 +37058 56903273 890 +37059 56904163 2072 +37060 56906235 2072 +37061 56908307 2072 +37062 56910379 4070 +37063 56914449 2786 +37064 56917235 2786 +37065 56920021 2348 +37066 56922369 2348 +37067 56924717 2378 +37068 56927095 1790 +37069 56928885 1790 +37070 56930675 686 +37071 56931361 686 +37072 56932047 800 +37073 56932847 800 +37074 56933647 1676 +37075 56935323 638 +37076 56935961 992 +37077 56936953 980 +37078 56937933 3632 +37079 56941565 3656 +37080 56945221 734 +37081 56945955 734 +37082 56946689 1004 +37083 56947693 938 +37084 56948631 938 +37085 56949569 938 +37086 56950507 1472 +37087 56951979 2852 +37088 56954831 1112 +37089 56955943 662 +37090 56956605 2690 +37091 56959295 680 +37092 56959975 650 +37093 56960625 728 +37094 56961353 668 +37095 56962021 674 +37096 56962695 1094 +37097 56963789 1100 +37098 56964889 494 +37099 56965383 494 +37100 56965877 632 +37101 56966509 698 +37102 56967207 716 +37103 56967923 2324 +37104 56970247 1796 +37105 56972043 1490 +37106 56973533 3518 +37107 56977051 1586 +37108 56978637 2210 +37109 56980847 2210 +37110 56983057 1802 +37111 56984859 2312 +37112 56987171 806 +37113 56987977 1010 +37114 56988987 260 +37115 56989247 1688 +37116 56990935 1694 +37117 56992629 3914 +37118 56996543 728 +37119 56997271 758 +37120 56998029 1346 +37121 56999375 662 +37122 57000037 662 +37123 57000699 644 +37124 57001343 644 +37125 57001987 1088 +37126 57003075 1076 +37127 57004151 914 +37128 57005065 1004 +37129 57006069 998 +37130 57007067 98 +37131 57007165 620 +37132 57007785 1790 +37133 57009575 4094 +37134 57013669 4094 +37135 57017763 1532 +37136 57019295 1532 +37137 57020827 2156 +37138 57022983 1112 +37139 57024095 4844 +37140 57028939 584 +37141 57029523 608 +37142 57030131 440 +37143 57030571 428 +37144 57030999 4202 +37145 57035201 4202 +37146 57039403 4202 +37147 57043605 416 +37148 57044021 416 +37149 57044437 416 +37150 57044853 416 +37151 57045269 416 +37152 57045685 416 +37153 57046101 416 +37154 57046517 416 +37155 57046933 416 +37156 57047349 416 +37157 57047765 416 +37158 57048181 416 +37159 57048597 416 +37160 57049013 416 +37161 57049429 416 +37162 57049845 416 +37163 57050261 416 +37164 57050677 416 +37165 57051093 416 +37166 57051509 416 +37167 57051925 416 +37168 57052341 416 +37169 57052757 416 +37170 57053173 416 +37171 57053589 416 +37172 57054005 416 +37173 57054421 416 +37174 57054837 416 +37175 57055253 416 +37176 57055669 416 +37177 57056085 416 +37178 57056501 416 +37179 57056917 416 +37180 57057333 416 +37181 57057749 416 +37182 57058165 416 +37183 57058581 626 +37184 57059207 1016 +37185 57060223 944 +37186 57061167 1100 +37187 57062267 1100 +37188 57063367 650 +37189 57064017 704 +37190 57064721 410 +37191 57065131 398 +37192 57065529 392 +37193 57065921 410 +37194 57066331 404 +37195 57066735 392 +37196 57067127 3212 +37197 57070339 3212 +37198 57073551 974 +37199 57074525 974 +37200 57075499 974 +37201 57076473 974 +37202 57077447 968 +37203 57078415 974 +37204 57079389 974 +37205 57080363 968 +37206 57081331 2168 +37207 57083499 2204 +37208 57085703 1358 +37209 57087061 1364 +37210 57088425 2108 +37211 57090533 2192 +37212 57092725 2294 +37213 57095019 2030 +37214 57097049 698 +37215 57097747 1178 +37216 57098925 1178 +37217 57100103 1178 +37218 57101281 2366 +37219 57103647 722 +37220 57104369 722 +37221 57105091 2108 +37222 57107199 2180 +37223 57109379 926 +37224 57110305 1202 +37225 57111507 1490 +37226 57112997 2324 +37227 57115321 2174 +37228 57117495 1784 +37229 57119279 944 +37230 57120223 1340 +37231 57121563 1382 +37232 57122945 1154 +37233 57124099 1268 +37234 57125367 1022 +37235 57126389 1166 +37236 57127555 824 +37237 57128379 1226 +37238 57129605 1190 +37239 57130795 932 +37240 57131727 1118 +37241 57132845 1052 +37242 57133897 1040 +37243 57134937 962 +37244 57135899 596 +37245 57136495 800 +37246 57137295 386 +37247 57137681 734 +37248 57138415 764 +37249 57139179 818 +37250 57139997 896 +37251 57140893 356 +37252 57141249 590 +37253 57141839 662 +37254 57142501 770 +37255 57143271 644 +37256 57143915 680 +37257 57144595 722 +37258 57145317 602 +37259 57145919 518 +37260 57146437 470 +37261 57146907 308 +37262 57147215 320 +37263 57147535 158 +37264 57147693 638 +37265 57148331 554 +37266 57148885 1220 +37267 57150105 1292 +37268 57151397 1310 +37269 57152707 1292 +37270 57153999 1556 +37271 57155555 1244 +37272 57156799 1346 +37273 57158145 1112 +37274 57159257 1136 +37275 57160393 1118 +37276 57161511 584 +37277 57162095 854 +37278 57162949 752 +37279 57163701 908 +37280 57164609 770 +37281 57165379 710 +37282 57166089 818 +37283 57166907 734 +37284 57167641 878 +37285 57168519 866 +37286 57169385 482 +37287 57169867 530 +37288 57170397 782 +37289 57171179 872 +37290 57172051 812 +37291 57172863 428 +37292 57173291 590 +37293 57173881 494 +37294 57174375 374 +37295 57174749 314 +37296 57175063 344 +37297 57175407 1916 +37298 57177323 386 +37299 57177709 5060 +37300 57182769 830 +37301 57183599 2360 +37302 57185959 1856 +37303 57187815 1850 +37304 57189665 1610 +37305 57191275 1496 +37306 57192771 872 +37307 57193643 626 +37308 57194269 2762 +37309 57197031 1286 +37310 57198317 758 +37311 57199075 758 +37312 57199833 758 +37313 57200591 1082 +37314 57201673 1478 +37315 57203151 698 +37316 57203849 716 +37317 57204565 74 +37318 57204639 1028 +37319 57205667 1016 +37320 57206683 1082 +37321 57207765 1082 +37322 57208847 2354 +37323 57211201 2378 +37324 57213579 926 +37325 57214505 920 +37326 57215425 4430 +37327 57219855 4442 +37328 57224297 2024 +37329 57226321 1436 +37330 57227757 1952 +37331 57229709 2150 +37332 57231859 1100 +37333 57232959 2192 +37334 57235151 2450 +37335 57237601 2450 +37336 57240051 2462 +37337 57242513 3110 +37338 57245623 3110 +37339 57248733 1220 +37340 57249953 2636 +37341 57252589 1148 +37342 57253737 1166 +37343 57254903 1154 +37344 57256057 1154 +37345 57257211 740 +37346 57257951 734 +37347 57258685 1106 +37348 57259791 1106 +37349 57260897 2168 +37350 57263065 2168 +37351 57265233 2168 +37352 57267401 2168 +37353 57269569 818 +37354 57270387 824 +37355 57271211 818 +37356 57272029 824 +37357 57272853 818 +37358 57273671 824 +37359 57274495 1232 +37360 57275727 1286 +37361 57277013 1286 +37362 57278299 956 +37363 57279255 650 +37364 57279905 650 +37365 57280555 644 +37366 57281199 644 +37367 57281843 1496 +37368 57283339 1340 +37369 57284679 554 +37370 57285233 1550 +37371 57286783 962 +37372 57287745 758 +37373 57288503 758 +37374 57289261 4250 +37375 57293511 2366 +37376 57295877 2132 +37377 57298009 860 +37378 57298869 4688 +37379 57303557 734 +37380 57304291 764 +37381 57305055 1382 +37382 57306437 1364 +37383 57307801 344 +37384 57308145 344 +37385 57308489 344 +37386 57308833 344 +37387 57309177 1568 +37388 57310745 1454 +37389 57312199 1454 +37390 57313653 1226 +37391 57314879 1238 +37392 57316117 1496 +37393 57317613 1496 +37394 57319109 980 +37395 57320089 980 +37396 57321069 1496 +37397 57322565 1496 +37398 57324061 344 +37399 57324405 554 +37400 57324959 554 +37401 57325513 2114 +37402 57327627 2114 +37403 57329741 2114 +37404 57331855 2114 +37405 57333969 2114 +37406 57336083 2114 +37407 57338197 404 +37408 57338601 2288 +37409 57340889 2288 +37410 57343177 1208 +37411 57344385 1208 +37412 57345593 1202 +37413 57346795 1208 +37414 57348003 344 +37415 57348347 344 +37416 57348691 1856 +37417 57350547 1838 +37418 57352385 1838 +37419 57354223 1118 +37420 57355341 1118 +37421 57356459 1118 +37422 57357577 1118 +37423 57358695 1118 +37424 57359813 1118 +37425 57360931 1118 +37426 57362049 1118 +37427 57363167 1118 +37428 57364285 1124 +37429 57365409 1130 +37430 57366539 1118 +37431 57367657 1118 +37432 57368775 1118 +37433 57369893 1538 +37434 57371431 1448 +37435 57372879 1472 +37436 57374351 1820 +37437 57376171 2432 +37438 57378603 2432 +37439 57381035 668 +37440 57381703 1058 +37441 57382761 1184 +37442 57383945 1082 +37443 57385027 1820 +37444 57386847 1814 +37445 57388661 1976 +37446 57390637 1976 +37447 57392613 1892 +37448 57394505 1898 +37449 57396403 1844 +37450 57398247 1844 +37451 57400091 2750 +37452 57402841 770 +37453 57403611 506 +37454 57404117 524 +37455 57404641 182 +37456 57404823 1028 +37457 57405851 1004 +37458 57406855 2786 +37459 57409641 650 +37460 57410291 242 +37461 57410533 1028 +37462 57411561 470 +37463 57412031 68 +37464 57412099 740 +37465 57412839 1094 +37466 57413933 176 +37467 57414109 176 +37468 57414285 542 +37469 57414827 548 +37470 57415375 68 +37471 57415443 1322 +37472 57416765 1292 +37473 57418057 2366 +37474 57420423 1406 +37475 57421829 1040 +37476 57422869 3212 +37477 57426081 3194 +37478 57429275 650 +37479 57429925 650 +37480 57430575 656 +37481 57431231 56 +37482 57431287 656 +37483 57431943 56 +37484 57431999 2168 +37485 57434167 2162 +37486 57436329 2180 +37487 57438509 1898 +37488 57440407 1898 +37489 57442305 1898 +37490 57444203 1898 +37491 57446101 3230 +37492 57449331 1238 +37493 57450569 1574 +37494 57452143 1574 +37495 57453717 1514 +37496 57455231 1286 +37497 57456517 1280 +37498 57457797 566 +37499 57458363 506 +37500 57458869 566 +37501 57459435 506 +37502 57459941 1292 +37503 57461233 626 +37504 57461859 566 +37505 57462425 626 +37506 57463051 566 +37507 57463617 626 +37508 57464243 566 +37509 57464809 1118 +37510 57465927 32 +37511 57465959 1208 +37512 57467167 644 +37513 57467811 482 +37514 57468293 182 +37515 57468475 548 +37516 57469023 206 +37517 57469229 98 +37518 57469327 2894 +37519 57472221 98 +37520 57472319 2906 +37521 57475225 1172 +37522 57476397 464 +37523 57476861 1256 +37524 57478117 722 +37525 57478839 938 +37526 57479777 2660 +37527 57482437 2660 +37528 57485097 1028 +37529 57486125 1028 +37530 57487153 1028 +37531 57488181 1028 +37532 57489209 1028 +37533 57490237 1028 +37534 57491265 1028 +37535 57492293 1028 +37536 57493321 1028 +37537 57494349 1028 +37538 57495377 2846 +37539 57498223 176 +37540 57498399 566 +37541 57498965 578 +37542 57499543 560 +37543 57500103 50 +37544 57500153 16496 +37545 57516649 50 +37546 57516699 16496 +37547 57533195 1496 +37548 57534691 1496 +37549 57536187 1496 +37550 57537683 1496 +37551 57539179 1496 +37552 57540675 1496 +37553 57542171 1496 +37554 57543667 1496 +37555 57545163 1496 +37556 57546659 1496 +37557 57548155 1364 +37558 57549519 1364 +37559 57550883 1364 +37560 57552247 1364 +37561 57553611 1364 +37562 57554975 1364 +37563 57556339 1388 +37564 57557727 1388 +37565 57559115 434 +37566 57559549 434 +37567 57559983 434 +37568 57560417 434 +37569 57560851 434 +37570 57561285 434 +37571 57561719 2360 +37572 57564079 2360 +37573 57566439 2096 +37574 57568535 2096 +37575 57570631 2096 +37576 57572727 2264 +37577 57574991 2264 +37578 57577255 2264 +37579 57579519 2828 +37580 57582347 1382 +37581 57583729 134 +37582 57583863 134 +37583 57583997 134 +37584 57584131 134 +37585 57584265 506 +37586 57584771 896 +37587 57585667 896 +37588 57586563 1112 +37589 57587675 1112 +37590 57588787 1466 +37591 57590253 1442 +37592 57591695 1646 +37593 57593341 164 +37594 57593505 1466 +37595 57594971 1442 +37596 57596413 1646 +37597 57598059 164 +37598 57598223 1466 +37599 57599689 1442 +37600 57601131 1646 +37601 57602777 164 +37602 57602941 1466 +37603 57604407 1442 +37604 57605849 1646 +37605 57607495 164 +37606 57607659 1466 +37607 57609125 1442 +37608 57610567 1646 +37609 57612213 164 +37610 57612377 1466 +37611 57613843 1442 +37612 57615285 1646 +37613 57616931 164 +37614 57617095 1466 +37615 57618561 1442 +37616 57620003 1646 +37617 57621649 164 +37618 57621813 1466 +37619 57623279 1442 +37620 57624721 1646 +37621 57626367 164 +37622 57626531 1466 +37623 57627997 1442 +37624 57629439 1646 +37625 57631085 164 +37626 57631249 1466 +37627 57632715 1442 +37628 57634157 1646 +37629 57635803 164 +37630 57635967 1466 +37631 57637433 1442 +37632 57638875 1646 +37633 57640521 164 +37634 57640685 1466 +37635 57642151 1442 +37636 57643593 1646 +37637 57645239 164 +37638 57645403 1466 +37639 57646869 1442 +37640 57648311 1646 +37641 57649957 164 +37642 57650121 1466 +37643 57651587 1442 +37644 57653029 1646 +37645 57654675 164 +37646 57654839 1466 +37647 57656305 1442 +37648 57657747 1646 +37649 57659393 164 +37650 57659557 1466 +37651 57661023 1442 +37652 57662465 1646 +37653 57664111 164 +37654 57664275 1466 +37655 57665741 1442 +37656 57667183 1646 +37657 57668829 164 +37658 57668993 1466 +37659 57670459 1442 +37660 57671901 1646 +37661 57673547 164 +37662 57673711 1466 +37663 57675177 1442 +37664 57676619 1646 +37665 57678265 164 +37666 57678429 1466 +37667 57679895 1442 +37668 57681337 1646 +37669 57682983 164 +37670 57683147 1466 +37671 57684613 1442 +37672 57686055 1646 +37673 57687701 164 +37674 57687865 1466 +37675 57689331 1442 +37676 57690773 1646 +37677 57692419 164 +37678 57692583 1466 +37679 57694049 1442 +37680 57695491 1646 +37681 57697137 164 +37682 57697301 1466 +37683 57698767 1442 +37684 57700209 1646 +37685 57701855 164 +37686 57702019 1466 +37687 57703485 1442 +37688 57704927 1646 +37689 57706573 164 +37690 57706737 1466 +37691 57708203 1442 +37692 57709645 1646 +37693 57711291 164 +37694 57711455 1466 +37695 57712921 1442 +37696 57714363 1646 +37697 57716009 164 +37698 57716173 1466 +37699 57717639 1442 +37700 57719081 1646 +37701 57720727 164 +37702 57720891 1466 +37703 57722357 1442 +37704 57723799 1646 +37705 57725445 164 +37706 57725609 1466 +37707 57727075 1442 +37708 57728517 1646 +37709 57730163 164 +37710 57730327 1466 +37711 57731793 1442 +37712 57733235 1646 +37713 57734881 164 +37714 57735045 1466 +37715 57736511 1442 +37716 57737953 1646 +37717 57739599 164 +37718 57739763 1466 +37719 57741229 1442 +37720 57742671 1646 +37721 57744317 164 +37722 57744481 1466 +37723 57745947 1442 +37724 57747389 1646 +37725 57749035 164 +37726 57749199 1466 +37727 57750665 1442 +37728 57752107 1646 +37729 57753753 164 +37730 57753917 1466 +37731 57755383 1442 +37732 57756825 1646 +37733 57758471 164 +37734 57758635 1466 +37735 57760101 1442 +37736 57761543 1646 +37737 57763189 164 +37738 57763353 1466 +37739 57764819 1442 +37740 57766261 1646 +37741 57767907 164 +37742 57768071 1466 +37743 57769537 1442 +37744 57770979 1646 +37745 57772625 164 +37746 57772789 1466 +37747 57774255 1442 +37748 57775697 1646 +37749 57777343 164 +37750 57777507 1466 +37751 57778973 1442 +37752 57780415 1646 +37753 57782061 164 +37754 57782225 1466 +37755 57783691 1442 +37756 57785133 1646 +37757 57786779 164 +37758 57786943 1466 +37759 57788409 1442 +37760 57789851 1646 +37761 57791497 164 +37762 57791661 1466 +37763 57793127 1442 +37764 57794569 1646 +37765 57796215 164 +37766 57796379 1466 +37767 57797845 1442 +37768 57799287 1646 +37769 57800933 164 +37770 57801097 1466 +37771 57802563 1442 +37772 57804005 1646 +37773 57805651 164 +37774 57805815 1466 +37775 57807281 1442 +37776 57808723 1646 +37777 57810369 164 +37778 57810533 1466 +37779 57811999 1442 +37780 57813441 1646 +37781 57815087 164 +37782 57815251 1466 +37783 57816717 1442 +37784 57818159 1646 +37785 57819805 164 +37786 57819969 1466 +37787 57821435 1442 +37788 57822877 1646 +37789 57824523 164 +37790 57824687 1466 +37791 57826153 1442 +37792 57827595 1646 +37793 57829241 164 +37794 57829405 1466 +37795 57830871 1442 +37796 57832313 1646 +37797 57833959 164 +37798 57834123 1466 +37799 57835589 1442 +37800 57837031 1646 +37801 57838677 164 +37802 57838841 1466 +37803 57840307 1442 +37804 57841749 1646 +37805 57843395 164 +37806 57843559 1466 +37807 57845025 1442 +37808 57846467 1646 +37809 57848113 164 +37810 57848277 1466 +37811 57849743 1442 +37812 57851185 1646 +37813 57852831 164 +37814 57852995 1466 +37815 57854461 1442 +37816 57855903 1646 +37817 57857549 164 +37818 57857713 1466 +37819 57859179 1442 +37820 57860621 1646 +37821 57862267 164 +37822 57862431 1466 +37823 57863897 1442 +37824 57865339 1646 +37825 57866985 164 +37826 57867149 1466 +37827 57868615 1442 +37828 57870057 1646 +37829 57871703 164 +37830 57871867 740 +37831 57872607 1304 +37832 57873911 1310 +37833 57875221 2996 +37834 57878217 152 +37835 57878369 554 +37836 57878923 152 +37837 57879075 554 +37838 57879629 152 +37839 57879781 554 +37840 57880335 152 +37841 57880487 554 +37842 57881041 2834 +37843 57883875 176 +37844 57884051 2834 +37845 57886885 176 +37846 57887061 200 +37847 57887261 200 +37848 57887461 200 +37849 57887661 200 +37850 57887861 200 +37851 57888061 200 +37852 57888261 1136 +37853 57889397 1100 +37854 57890497 1400 +37855 57891897 872 +37856 57892769 830 +37857 57893599 824 +37858 57894423 818 +37859 57895241 152 +37860 57895393 152 +37861 57895545 764 +37862 57896309 752 +37863 57897061 2336 +37864 57899397 2336 +37865 57901733 2336 +37866 57904069 2336 +37867 57906405 2336 +37868 57908741 2336 +37869 57911077 860 +37870 57911937 860 +37871 57912797 1934 +37872 57914731 1388 +37873 57916119 2114 +37874 57918233 674 +37875 57918907 668 +37876 57919575 56 +37877 57919631 938 +37878 57920569 302 +37879 57920871 1190 +37880 57922061 1184 +37881 57923245 2546 +37882 57925791 3128 +37883 57928919 2630 +37884 57931549 1622 +37885 57933171 470 +37886 57933641 1904 +37887 57935545 152 +37888 57935697 4406 +37889 57940103 1298 +37890 57941401 2192 +37891 57943593 1676 +37892 57945269 2792 +37893 57948061 1958 +37894 57950019 590 +37895 57950609 902 +37896 57951511 3458 +37897 57954969 8245 +37898 57963214 3194 +37899 57966408 1076 +37900 57967484 494 +37901 57967978 494 +37902 57968472 1328 +37903 57969800 1274 +37904 57971074 1292 +37905 57972366 602 +37906 57972968 1388 +37907 57974356 806 +37908 57975162 842 +37909 57976004 908 +37910 57976912 860 +37911 57977772 1544 +37912 57979316 1070 +37913 57980386 848 +37914 57981234 290 +37915 57981524 782 +37916 57982306 1196 +37917 57983502 758 +37918 57984260 1112 +37919 57985372 854 +37920 57986226 1370 +37921 57987596 602 +37922 57988198 668 +37923 57988866 1886 +37924 57990752 860 +37925 57991612 404 +37926 57992016 860 +37927 57992876 308 +37928 57993184 326 +37929 57993510 740 +37930 57994250 386 +37931 57994636 794 +37932 57995430 626 +37933 57996056 5281 +37934 58001337 2276 +37935 58003613 2234 +37936 58005847 1430 +37937 58007277 1052 +37938 58008329 1052 +37939 58009381 1052 +37940 58010433 1052 +37941 58011485 1052 +37942 58012537 2588 +37943 58015125 422 +37944 58015547 422 +37945 58015969 650 +37946 58016619 716 +37947 58017335 1262 +37948 58018597 1604 +37949 58020201 974 +37950 58021175 896 +37951 58022071 1448 +37952 58023519 1172 +37953 58024691 674 +37954 58025365 1268 +37955 58026633 1340 +37956 58027973 1304 +37957 58029277 4376 +37958 58033653 3938 +37959 58037591 3428 +37960 58041019 3428 +37961 58044447 1628 +37962 58046075 1826 +37963 58047901 1814 +37964 58049715 1826 +37965 58051541 1826 +37966 58053367 1808 +37967 58055175 98 +37968 58055273 1046 +37969 58056319 1538 +37970 58057857 1388 +37971 58059245 1178 +37972 58060423 44 +37973 58060467 3740 +37974 58064207 3722 +37975 58067929 44 +37976 58067973 1148 +37977 58069121 1202 +37978 58070323 1178 +37979 58071501 1202 +37980 58072703 1220 +37981 58073923 428 +37982 58074351 1208 +37983 58075559 1106 +37984 58076665 1196 +37985 58077861 1220 +37986 58079081 1412 +37987 58080493 1633 +37988 58082126 1478 +37989 58083604 1166 +37990 58084770 1166 +37991 58085936 620 +37992 58086556 1004 +37993 58087560 998 +37994 58088558 866 +37995 58089424 908 +37996 58090332 956 +37997 58091288 1016 +37998 58092304 2420 +37999 58094724 2420 +38000 58097144 1148 +38001 58098292 1166 +38002 58099458 1940 +38003 58101398 1922 +38004 58103320 3098 +38005 58106418 1892 +38006 58108310 1892 +38007 58110202 440 +38008 58110642 818 +38009 58111460 2402 +38010 58113862 404 +38011 58114266 764 +38012 58115030 2342 +38013 58117372 44 +38014 58117416 1694 +38015 58119110 1598 +38016 58120708 152 +38017 58120860 620 +38018 58121480 152 +38019 58121632 620 +38020 58122252 152 +38021 58122404 620 +38022 58123024 152 +38023 58123176 620 +38024 58123796 3356 +38025 58127152 470 +38026 58127622 476 +38027 58128098 470 +38028 58128568 476 +38029 58129044 470 +38030 58129514 476 +38031 58129990 470 +38032 58130460 476 +38033 58130936 470 +38034 58131406 476 +38035 58131882 470 +38036 58132352 476 +38037 58132828 470 +38038 58133298 476 +38039 58133774 470 +38040 58134244 476 +38041 58134720 1034 +38042 58135754 1052 +38043 58136806 398 +38044 58137204 392 +38045 58137596 392 +38046 58137988 410 +38047 58138398 404 +38048 58138802 404 +38049 58139206 392 +38050 58139598 410 +38051 58140008 404 +38052 58140412 398 +38053 58140810 392 +38054 58141202 404 +38055 58141606 392 +38056 58141998 392 +38057 58142390 68 +38058 58142458 1946 +38059 58144404 2456 +38060 58146860 2456 +38061 58149316 824 +38062 58150140 824 +38063 58150964 764 +38064 58151728 764 +38065 58152492 446 +38066 58152938 2006 +38067 58154944 2006 +38068 58156950 878 +38069 58157828 1058 +38070 58158886 1112 +38071 58159998 1502 +38072 58161500 1508 +38073 58163008 1160 +38074 58164168 4394 +38075 58168562 4148 +38076 58172710 1160 +38077 58173870 2456 +38078 58176326 2456 +38079 58178782 1802 +38080 58180584 1778 +38081 58182362 1202 +38082 58183564 1202 +38083 58184766 1034 +38084 58185800 1034 +38085 58186834 1034 +38086 58187868 1034 +38087 58188902 1034 +38088 58189936 1034 +38089 58190970 1034 +38090 58192004 1034 +38091 58193038 1034 +38092 58194072 1034 +38093 58195106 1034 +38094 58196140 1034 +38095 58197174 1478 +38096 58198652 1448 +38097 58200100 938 +38098 58201038 938 +38099 58201976 938 +38100 58202914 938 +38101 58203852 1190 +38102 58205042 1736 +38103 58206778 1724 +38104 58208502 530 +38105 58209032 1448 +38106 58210480 2996 +38107 58213476 2996 +38108 58216472 1760 +38109 58218232 2114 +38110 58220346 2120 +38111 58222466 2126 +38112 58224592 2120 +38113 58226712 2114 +38114 58228826 2114 +38115 58230940 2078 +38116 58233018 2384 +38117 58235402 2384 +38118 58237786 2384 +38119 58240170 2384 +38120 58242554 2384 +38121 58244938 2384 +38122 58247322 2948 +38123 58250270 1016 +38124 58251286 962 +38125 58252248 1214 +38126 58253462 608 +38127 58254070 2318 +38128 58256388 2318 +38129 58258706 2318 +38130 58261024 2318 +38131 58263342 980 +38132 58264322 2408 +38133 58266730 2486 +38134 58269216 2408 +38135 58271624 2462 +38136 58274086 890 +38137 58274976 1508 +38138 58276484 986 +38139 58277470 1154 +38140 58278624 1496 +38141 58280120 1496 +38142 58281616 1820 +38143 58283436 944 +38144 58284380 1190 +38145 58285570 1196 +38146 58286766 1406 +38147 58288172 1658 +38148 58289830 116 +38149 58289946 116 +38150 58290062 116 +38151 58290178 2738 +38152 58292916 2594 +38153 58295510 2018 +38154 58297528 2018 +38155 58299546 104 +38156 58299650 104 +38157 58299754 104 +38158 58299858 104 +38159 58299962 104 +38160 58300066 104 +38161 58300170 104 +38162 58300274 104 +38163 58300378 104 +38164 58300482 104 +38165 58300586 104 +38166 58300690 104 +38167 58300794 104 +38168 58300898 104 +38169 58301002 104 +38170 58301106 104 +38171 58301210 104 +38172 58301314 104 +38173 58301418 104 +38174 58301522 104 +38175 58301626 1304 +38176 58302930 2660 +38177 58305590 2882 +38178 58308472 422 +38179 58308894 938 +38180 58309832 1130 +38181 58310962 446 +38182 58311408 476 +38183 58311884 1484 +38184 58313368 302 +38185 58313670 1250 +38186 58314920 122 +38187 58315042 1484 +38188 58316526 302 +38189 58316828 1250 +38190 58318078 122 +38191 58318200 2870 +38192 58321070 2876 +38193 58323946 2870 +38194 58326816 950 +38195 58327766 2270 +38196 58330036 2156 +38197 58332192 2204 +38198 58334396 2054 +38199 58336450 2264 +38200 58338714 2252 +38201 58340966 3224 +38202 58344190 3224 +38203 58347414 980 +38204 58348394 1076 +38205 58349470 212 +38206 58349682 980 +38207 58350662 980 +38208 58351642 212 +38209 58351854 212 +38210 58352066 1076 +38211 58353142 1076 +38212 58354218 560 +38213 58354778 560 +38214 58355338 1292 +38215 58356630 500 +38216 58357130 482 +38217 58357612 482 +38218 58358094 500 +38219 58358594 482 +38220 58359076 482 +38221 58359558 950 +38222 58360508 974 +38223 58361482 560 +38224 58362042 1472 +38225 58363514 566 +38226 58364080 1490 +38227 58365570 1874 +38228 58367444 1874 +38229 58369318 1232 +38230 58370550 1874 +38231 58372424 2174 +38232 58374598 2174 +38233 58376772 2174 +38234 58378946 1580 +38235 58380526 1034 +38236 58381560 704 +38237 58382264 1898 +38238 58384162 2138 +38239 58386300 908 +38240 58387208 908 +38241 58388116 938 +38242 58389054 596 +38243 58389650 584 +38244 58390234 1154 +38245 58391388 1856 +38246 58393244 2006 +38247 58395250 4664 +38248 58399914 4688 +38249 58404602 4694 +38250 58409296 4700 +38251 58413996 4694 +38252 58418690 4700 +38253 58423390 650 +38254 58424040 350 +38255 58424390 350 +38256 58424740 758 +38257 58425498 692 +38258 58426190 758 +38259 58426948 2072 +38260 58429020 1124 +38261 58430144 1124 +38262 58431268 2222 +38263 58433490 2252 +38264 58435742 1442 +38265 58437184 1712 +38266 58438896 2324 +38267 58441220 2306 +38268 58443526 2324 +38269 58445850 2306 +38270 58448156 2324 +38271 58450480 2306 +38272 58452786 2324 +38273 58455110 2306 +38274 58457416 158 +38275 58457574 158 +38276 58457732 158 +38277 58457890 158 +38278 58458048 1166 +38279 58459214 806 +38280 58460020 632 +38281 58460652 644 +38282 58461296 152 +38283 58461448 152 +38284 58461600 146 +38285 58461746 668 +38286 58462414 656 +38287 58463070 2264 +38288 58465334 560 +38289 58465894 560 +38290 58466454 1688 +38291 58468142 326 +38292 58468468 1358 +38293 58469826 1382 +38294 58471208 1358 +38295 58472566 1382 +38296 58473948 1598 +38297 58475546 1652 +38298 58477198 1898 +38299 58479096 1826 +38300 58480922 1622 +38301 58482544 74 +38302 58482618 362 +38303 58482980 374 +38304 58483354 4754 +38305 58488108 4754 +38306 58492862 1442 +38307 58494304 1466 +38308 58495770 4754 +38309 58500524 4754 +38310 58505278 1418 +38311 58506696 1472 +38312 58508168 4754 +38313 58512922 4754 +38314 58517676 1442 +38315 58519118 1466 +38316 58520584 1724 +38317 58522308 3080 +38318 58525388 3080 +38319 58528468 902 +38320 58529370 896 +38321 58530266 896 +38322 58531162 884 +38323 58532046 50 +38324 58532096 2450 +38325 58534546 3212 +38326 58537758 362 +38327 58538120 350 +38328 58538470 488 +38329 58538958 326 +38330 58539284 296 +38331 58539580 272 +38332 58539852 392 +38333 58540244 236 +38334 58540480 1364 +38335 58541844 1652 +38336 58543496 1244 +38337 58544740 1238 +38338 58545978 1070 +38339 58547048 1052 +38340 58548100 890 +38341 58548990 740 +38342 58549730 884 +38343 58550614 812 +38344 58551426 758 +38345 58552184 716 +38346 58552900 692 +38347 58553592 716 +38348 58554308 614 +38349 58554922 674 +38350 58555596 554 +38351 58556150 614 +38352 58556764 452 +38353 58557216 374 +38354 58557590 1340 +38355 58558930 1238 +38356 58560168 1208 +38357 58561376 986 +38358 58562362 584 +38359 58562946 926 +38360 58563872 794 +38361 58564666 770 +38362 58565436 584 +38363 58566020 704 +38364 58566724 812 +38365 58567536 692 +38366 58568228 368 +38367 58568596 518 +38368 58569114 530 +38369 58569644 488 +38370 58570132 386 +38371 58570518 500 +38372 58571018 494 +38373 58571512 3212 +38374 58574724 362 +38375 58575086 350 +38376 58575436 488 +38377 58575924 326 +38378 58576250 296 +38379 58576546 272 +38380 58576818 392 +38381 58577210 236 +38382 58577446 1364 +38383 58578810 1652 +38384 58580462 1244 +38385 58581706 1238 +38386 58582944 1070 +38387 58584014 1052 +38388 58585066 890 +38389 58585956 740 +38390 58586696 884 +38391 58587580 812 +38392 58588392 758 +38393 58589150 716 +38394 58589866 692 +38395 58590558 716 +38396 58591274 614 +38397 58591888 674 +38398 58592562 554 +38399 58593116 614 +38400 58593730 452 +38401 58594182 374 +38402 58594556 1340 +38403 58595896 1238 +38404 58597134 1208 +38405 58598342 986 +38406 58599328 584 +38407 58599912 926 +38408 58600838 794 +38409 58601632 770 +38410 58602402 584 +38411 58602986 704 +38412 58603690 812 +38413 58604502 692 +38414 58605194 368 +38415 58605562 518 +38416 58606080 530 +38417 58606610 488 +38418 58607098 386 +38419 58607484 500 +38420 58607984 494 +38421 58608478 296 +38422 58608774 362 +38423 58609136 230 +38424 58609366 1604 +38425 58610970 1400 +38426 58612370 1232 +38427 58613602 938 +38428 58614540 1112 +38429 58615652 938 +38430 58616590 854 +38431 58617444 782 +38432 58618226 632 +38433 58618858 692 +38434 58619550 818 +38435 58620368 746 +38436 58621114 368 +38437 58621482 518 +38438 58622000 530 +38439 58622530 518 +38440 58623048 434 +38441 58623482 524 +38442 58624006 482 +38443 58624488 362 +38444 58624850 188 +38445 58625038 224 +38446 58625262 1718 +38447 58626980 1394 +38448 58628374 1274 +38449 58629648 1082 +38450 58630730 1064 +38451 58631794 902 +38452 58632696 758 +38453 58633454 776 +38454 58634230 872 +38455 58635102 740 +38456 58635842 908 +38457 58636750 824 +38458 58637574 722 +38459 58638296 704 +38460 58639000 716 +38461 58639716 716 +38462 58640432 602 +38463 58641034 860 +38464 58641894 578 +38465 58642472 674 +38466 58643146 536 +38467 58643682 392 +38468 58644074 668 +38469 58644742 584 +38470 58645326 344 +38471 58645670 308 +38472 58645978 1664 +38473 58647642 1682 +38474 58649324 182 +38475 58649506 1508 +38476 58651014 1682 +38477 58652696 182 +38478 58652878 1508 +38479 58654386 806 +38480 58655192 806 +38481 58655998 1298 +38482 58657296 710 +38483 58658006 710 +38484 58658716 1244 +38485 58659960 1250 +38486 58661210 710 +38487 58661920 1616 +38488 58663536 1616 +38489 58665152 1772 +38490 58666924 1772 +38491 58668696 1772 +38492 58670468 1772 +38493 58672240 1772 +38494 58674012 1772 +38495 58675784 2348 +38496 58678132 2330 +38497 58680462 2348 +38498 58682810 2330 +38499 58685140 2348 +38500 58687488 2330 +38501 58689818 2348 +38502 58692166 2330 +38503 58694496 1700 +38504 58696196 1916 +38505 58698112 800 +38506 58698912 788 +38507 58699700 1010 +38508 58700710 1808 +38509 58702518 998 +38510 58703516 50 +38511 58703566 806 +38512 58704372 728 +38513 58705100 842 +38514 58705942 770 +38515 58706712 296 +38516 58707008 362 +38517 58707370 230 +38518 58707600 188 +38519 58707788 224 +38520 58708012 1718 +38521 58709730 1394 +38522 58711124 1274 +38523 58712398 1082 +38524 58713480 1064 +38525 58714544 902 +38526 58715446 758 +38527 58716204 776 +38528 58716980 872 +38529 58717852 740 +38530 58718592 908 +38531 58719500 824 +38532 58720324 722 +38533 58721046 704 +38534 58721750 716 +38535 58722466 716 +38536 58723182 602 +38537 58723784 860 +38538 58724644 578 +38539 58725222 674 +38540 58725896 536 +38541 58726432 392 +38542 58726824 668 +38543 58727492 284 +38544 58727776 344 +38545 58728120 308 +38546 58728428 308 +38547 58728736 1340 +38548 58730076 728 +38549 58730804 470 +38550 58731274 1364 +38551 58732638 752 +38552 58733390 302 +38553 58733692 1142 +38554 58734834 1136 +38555 58735970 818 +38556 58736788 626 +38557 58737414 812 +38558 58738226 1232 +38559 58739458 896 +38560 58740354 554 +38561 58740908 1226 +38562 58742134 998 +38563 58743132 326 +38564 58743458 2029 +38565 58745487 1190 +38566 58746677 1118 +38567 58747795 536 +38568 58748331 890 +38569 58749221 1034 +38570 58750255 596 +38571 58750851 962 +38572 58751813 590 +38573 58752403 770 +38574 58753173 782 +38575 58753955 1472 +38576 58755427 374 +38577 58755801 644 +38578 58756445 2324 +38579 58758769 626 +38580 58759395 2174 +38581 58761569 722 +38582 58762291 1718 +38583 58764009 602 +38584 58764611 944 +38585 58765555 518 +38586 58766073 1616 +38587 58767689 1556 +38588 58769245 254 +38589 58769499 980 +38590 58770479 980 +38591 58771459 2276 +38592 58773735 710 +38593 58774445 1622 +38594 58776067 1634 +38595 58777701 1604 +38596 58779305 1214 +38597 58780519 1214 +38598 58781733 620 +38599 58782353 2006 +38600 58784359 1724 +38601 58786083 1808 +38602 58787891 824 +38603 58788715 824 +38604 58789539 824 +38605 58790363 824 +38606 58791187 824 +38607 58792011 818 +38608 58792829 818 +38609 58793647 818 +38610 58794465 824 +38611 58795289 818 +38612 58796107 818 +38613 58796925 818 +38614 58797743 1280 +38615 58799023 1214 +38616 58800237 4904 +38617 58805141 1604 +38618 58806745 482 +38619 58807227 2732 +38620 58809959 2720 +38621 58812679 2720 +38622 58815399 2720 +38623 58818119 2720 +38624 58820839 2720 +38625 58823559 932 +38626 58824491 134 +38627 58824625 452 +38628 58825077 62 +38629 58825139 446 +38630 58825585 788 +38631 58826373 650 +38632 58827023 974 +38633 58827997 1070 +38634 58829067 1064 +38635 58830131 650 +38636 58830781 1460 +38637 58832241 1460 +38638 58833701 4904 +38639 58838605 4946 +38640 58843551 1946 +38641 58845497 1886 +38642 58847383 1892 +38643 58849275 1892 +38644 58851167 1886 +38645 58853053 1190 +38646 58854243 3536 +38647 58857779 1202 +38648 58858981 1226 +38649 58860207 806 +38650 58861013 2498 +38651 58863511 476 +38652 58863987 896 +38653 58864883 1994 +38654 58866877 1994 +38655 58868871 2078 +38656 58870949 962 +38657 58871911 1328 +38658 58873239 1178 +38659 58874417 608 +38660 58875025 1316 +38661 58876341 2498 +38662 58878839 2078 +38663 58880917 1376 +38664 58882293 1370 +38665 58883663 44 +38666 58883707 44 +38667 58883751 1580 +38668 58885331 1178 +38669 58886509 1178 +38670 58887687 1886 +38671 58889573 1892 +38672 58891465 1892 +38673 58893357 1886 +38674 58895243 620 +38675 58895863 1826 +38676 58897689 698 +38677 58898387 788 +38678 58899175 788 +38679 58899963 698 +38680 58900661 2018 +38681 58902679 2018 +38682 58904697 2018 +38683 58906715 2018 +38684 58908733 1885 +38685 58910618 1766 +38686 58912384 1148 +38687 58913532 1142 +38688 58914674 2138 +38689 58916812 1046 +38690 58917858 992 +38691 58918850 992 +38692 58919842 2240 +38693 58922082 2234 +38694 58924316 2240 +38695 58926556 2240 +38696 58928796 2240 +38697 58931036 2228 +38698 58933264 2240 +38699 58935504 2240 +38700 58937744 920 +38701 58938664 602 +38702 58939266 626 +38703 58939892 1484 +38704 58941376 1526 +38705 58942902 1610 +38706 58944512 1622 +38707 58946134 1604 +38708 58947738 1586 +38709 58949324 1592 +38710 58950916 4766 +38711 58955682 596 +38712 58956278 596 +38713 58956874 596 +38714 58957470 596 +38715 58958066 1328 +38716 58959394 56 +38717 58959450 530 +38718 58959980 506 +38719 58960486 746 +38720 58961232 314 +38721 58961546 62 +38722 58961608 626 +38723 58962234 614 +38724 58962848 902 +38725 58963750 890 +38726 58964640 2678 +38727 58967318 2672 +38728 58969990 542 +38729 58970532 746 +38730 58971278 740 +38731 58972018 908 +38732 58972926 842 +38733 58973768 3686 +38734 58977454 3710 +38735 58981164 3698 +38736 58984862 3704 +38737 58988566 1490 +38738 58990056 2870 +38739 58992926 2870 +38740 58995796 2870 +38741 58998666 2870 +38742 59001536 2870 +38743 59004406 2870 +38744 59007276 2750 +38745 59010026 2696 +38746 59012722 2714 +38747 59015436 2732 +38748 59018168 2726 +38749 59020894 2714 +38750 59023608 2114 +38751 59025722 2114 +38752 59027836 2114 +38753 59029950 2114 +38754 59032064 104 +38755 59032168 632 +38756 59032800 68 +38757 59032868 1676 +38758 59034544 800 +38759 59035344 2870 +38760 59038214 1076 +38761 59039290 1778 +38762 59041068 2354 +38763 59043422 1898 +38764 59045320 1568 +38765 59046888 1508 +38766 59048396 4556 +38767 59052952 326 +38768 59053278 2078 +38769 59055356 422 +38770 59055778 452 +38771 59056230 1202 +38772 59057432 956 +38773 59058388 962 +38774 59059350 962 +38775 59060312 962 +38776 59061274 962 +38777 59062236 962 +38778 59063198 962 +38779 59064160 956 +38780 59065116 956 +38781 59066072 2222 +38782 59068294 1730 +38783 59070024 2324 +38784 59072348 2282 +38785 59074630 3764 +38786 59078394 3782 +38787 59082176 3764 +38788 59085940 3782 +38789 59089722 3764 +38790 59093486 3782 +38791 59097268 3764 +38792 59101032 3782 +38793 59104814 3764 +38794 59108578 3782 +38795 59112360 3764 +38796 59116124 3782 +38797 59119906 3764 +38798 59123670 3782 +38799 59127452 3764 +38800 59131216 3782 +38801 59134998 3764 +38802 59138762 3782 +38803 59142544 3764 +38804 59146308 3782 +38805 59150090 3764 +38806 59153854 3782 +38807 59157636 3764 +38808 59161400 3782 +38809 59165182 3764 +38810 59168946 3782 +38811 59172728 3764 +38812 59176492 3782 +38813 59180274 3764 +38814 59184038 3782 +38815 59187820 3764 +38816 59191584 3782 +38817 59195366 3764 +38818 59199130 3782 +38819 59202912 3764 +38820 59206676 3782 +38821 59210458 3764 +38822 59214222 3782 +38823 59218004 3764 +38824 59221768 3782 +38825 59225550 3764 +38826 59229314 3782 +38827 59233096 3764 +38828 59236860 3782 +38829 59240642 3764 +38830 59244406 3782 +38831 59248188 3764 +38832 59251952 3782 +38833 59255734 3764 +38834 59259498 3782 +38835 59263280 3764 +38836 59267044 3782 +38837 59270826 3764 +38838 59274590 3782 +38839 59278372 3764 +38840 59282136 3782 +38841 59285918 3764 +38842 59289682 3782 +38843 59293464 3764 +38844 59297228 3782 +38845 59301010 3764 +38846 59304774 3782 +38847 59308556 3764 +38848 59312320 3782 +38849 59316102 3764 +38850 59319866 3782 +38851 59323648 3764 +38852 59327412 3782 +38853 59331194 3764 +38854 59334958 3782 +38855 59338740 3764 +38856 59342504 3782 +38857 59346286 3764 +38858 59350050 3782 +38859 59353832 3764 +38860 59357596 3782 +38861 59361378 3764 +38862 59365142 3782 +38863 59368924 3764 +38864 59372688 3782 +38865 59376470 3764 +38866 59380234 3782 +38867 59384016 3764 +38868 59387780 3782 +38869 59391562 3764 +38870 59395326 3782 +38871 59399108 3764 +38872 59402872 3782 +38873 59406654 3764 +38874 59410418 3782 +38875 59414200 3764 +38876 59417964 3782 +38877 59421746 3764 +38878 59425510 3782 +38879 59429292 3764 +38880 59433056 3782 +38881 59436838 3764 +38882 59440602 3782 +38883 59444384 3764 +38884 59448148 3782 +38885 59451930 3764 +38886 59455694 3782 +38887 59459476 3764 +38888 59463240 3782 +38889 59467022 3764 +38890 59470786 3782 +38891 59474568 3764 +38892 59478332 3782 +38893 59482114 3764 +38894 59485878 3782 +38895 59489660 3764 +38896 59493424 3782 +38897 59497206 3764 +38898 59500970 3782 +38899 59504752 3764 +38900 59508516 3782 +38901 59512298 3764 +38902 59516062 3782 +38903 59519844 3764 +38904 59523608 3782 +38905 59527390 338 +38906 59527728 74 +38907 59527802 530 +38908 59528332 782 +38909 59529114 788 +38910 59529902 758 +38911 59530660 758 +38912 59531418 1910 +38913 59533328 2870 +38914 59536198 2564 +38915 59538762 2564 +38916 59541326 3674 +38917 59545000 3668 +38918 59548668 3668 +38919 59552336 3674 +38920 59556010 1478 +38921 59557488 902 +38922 59558390 1322 +38923 59559712 1280 +38924 59560992 3644 +38925 59564636 3656 +38926 59568292 1244 +38927 59569536 1238 +38928 59570774 1226 +38929 59572000 1238 +38930 59573238 1238 +38931 59574476 2162 +38932 59576638 1490 +38933 59578128 4448 +38934 59582576 4448 +38935 59587024 1040 +38936 59588064 986 +38937 59589050 2264 +38938 59591314 2570 +38939 59593884 2456 +38940 59596340 662 +38941 59597002 692 +38942 59597694 2378 +38943 59600072 2384 +38944 59602456 2360 +38945 59604816 2354 +38946 59607170 2402 +38947 59609572 2336 +38948 59611908 1316 +38949 59613224 920 +38950 59614144 458 +38951 59614602 2744 +38952 59617346 1310 +38953 59618656 2762 +38954 59621418 1304 +38955 59622722 2768 +38956 59625490 1304 +38957 59626794 2762 +38958 59629556 1304 +38959 59630860 2720 +38960 59633580 1310 +38961 59634890 2768 +38962 59637658 1304 +38963 59638962 1670 +38964 59640632 1670 +38965 59642302 1088 +38966 59643390 1016 +38967 59644406 1118 +38968 59645524 1100 +38969 59646624 1568 +38970 59648192 1562 +38971 59649754 1538 +38972 59651292 1550 +38973 59652842 1886 +38974 59654728 2768 +38975 59657496 1028 +38976 59658524 1298 +38977 59659822 1328 +38978 59661150 4334 +38979 59665484 4334 +38980 59669818 4334 +38981 59674152 4334 +38982 59678486 4334 +38983 59682820 4334 +38984 59687154 4334 +38985 59691488 4334 +38986 59695822 2360 +38987 59698182 2360 +38988 59700542 2360 +38989 59702902 2360 +38990 59705262 2366 +38991 59707628 2366 +38992 59709994 2366 +38993 59712360 2366 +38994 59714726 2354 +38995 59717080 2354 +38996 59719434 2354 +38997 59721788 2354 +38998 59724142 2708 +38999 59726850 2756 +39000 59729606 3314 +39001 59732920 3314 +39002 59736234 98 +39003 59736332 98 +39004 59736430 3380 +39005 59739810 3404 +39006 59743214 3380 +39007 59746594 3404 +39008 59749998 3380 +39009 59753378 3404 +39010 59756782 3380 +39011 59760162 3404 +39012 59763566 3380 +39013 59766946 3404 +39014 59770350 3380 +39015 59773730 3404 +39016 59777134 3380 +39017 59780514 3404 +39018 59783918 3380 +39019 59787298 3404 +39020 59790702 3380 +39021 59794082 3404 +39022 59797486 3380 +39023 59800866 3404 +39024 59804270 3380 +39025 59807650 3404 +39026 59811054 3380 +39027 59814434 3404 +39028 59817838 3380 +39029 59821218 3404 +39030 59824622 3380 +39031 59828002 3404 +39032 59831406 3380 +39033 59834786 3404 +39034 59838190 3380 +39035 59841570 3404 +39036 59844974 3380 +39037 59848354 3404 +39038 59851758 3380 +39039 59855138 3404 +39040 59858542 3380 +39041 59861922 3404 +39042 59865326 3380 +39043 59868706 3404 +39044 59872110 3380 +39045 59875490 3404 +39046 59878894 3380 +39047 59882274 3404 +39048 59885678 3380 +39049 59889058 3404 +39050 59892462 3380 +39051 59895842 3404 +39052 59899246 3380 +39053 59902626 3404 +39054 59906030 3380 +39055 59909410 3404 +39056 59912814 3380 +39057 59916194 3404 +39058 59919598 3380 +39059 59922978 3404 +39060 59926382 3380 +39061 59929762 3404 +39062 59933166 3380 +39063 59936546 3404 +39064 59939950 3380 +39065 59943330 3404 +39066 59946734 3380 +39067 59950114 3404 +39068 59953518 3380 +39069 59956898 3404 +39070 59960302 3380 +39071 59963682 3404 +39072 59967086 3380 +39073 59970466 3404 +39074 59973870 3380 +39075 59977250 3404 +39076 59980654 3380 +39077 59984034 3404 +39078 59987438 3380 +39079 59990818 3404 +39080 59994222 3380 +39081 59997602 3404 +39082 60001006 3380 +39083 60004386 3404 +39084 60007790 3380 +39085 60011170 3404 +39086 60014574 3380 +39087 60017954 3404 +39088 60021358 3380 +39089 60024738 3404 +39090 60028142 3380 +39091 60031522 3404 +39092 60034926 3380 +39093 60038306 3404 +39094 60041710 3380 +39095 60045090 3404 +39096 60048494 3380 +39097 60051874 3404 +39098 60055278 3380 +39099 60058658 3404 +39100 60062062 3380 +39101 60065442 3404 +39102 60068846 3380 +39103 60072226 3404 +39104 60075630 3380 +39105 60079010 3404 +39106 60082414 3380 +39107 60085794 3404 +39108 60089198 3380 +39109 60092578 3404 +39110 60095982 3380 +39111 60099362 3404 +39112 60102766 3380 +39113 60106146 3404 +39114 60109550 3380 +39115 60112930 3404 +39116 60116334 3380 +39117 60119714 3404 +39118 60123118 3380 +39119 60126498 3404 +39120 60129902 3380 +39121 60133282 3404 +39122 60136686 3380 +39123 60140066 3404 +39124 60143470 1910 +39125 60145380 1910 +39126 60147290 1910 +39127 60149200 1910 +39128 60151110 1910 +39129 60153020 1910 +39130 60154930 1910 +39131 60156840 1910 +39132 60158750 1910 +39133 60160660 1910 +39134 60162570 1910 +39135 60164480 1910 +39136 60166390 1958 +39137 60168348 542 +39138 60168890 1958 +39139 60170848 542 +39140 60171390 1958 +39141 60173348 542 +39142 60173890 1958 +39143 60175848 542 +39144 60176390 1958 +39145 60178348 542 +39146 60178890 1958 +39147 60180848 542 +39148 60181390 1958 +39149 60183348 542 +39150 60183890 1958 +39151 60185848 542 +39152 60186390 1958 +39153 60188348 542 +39154 60188890 1958 +39155 60190848 542 +39156 60191390 1958 +39157 60193348 542 +39158 60193890 1958 +39159 60195848 542 +39160 60196390 1886 +39161 60198276 1808 +39162 60200084 728 +39163 60200812 872 +39164 60201684 230 +39165 60201914 182 +39166 60202096 1862 +39167 60203958 1886 +39168 60205844 1886 +39169 60207730 974 +39170 60208704 914 +39171 60209618 956 +39172 60210574 230 +39173 60210804 230 +39174 60211034 230 +39175 60211264 1862 +39176 60213126 1886 +39177 60215012 1886 +39178 60216898 932 +39179 60217830 926 +39180 60218756 968 +39181 60219724 230 +39182 60219954 230 +39183 60220184 230 +39184 60220414 1862 +39185 60222276 1886 +39186 60224162 1886 +39187 60226048 932 +39188 60226980 956 +39189 60227936 932 +39190 60228868 230 +39191 60229098 230 +39192 60229328 230 +39193 60229558 1874 +39194 60231432 1886 +39195 60233318 1886 +39196 60235204 1058 +39197 60236262 926 +39198 60237188 914 +39199 60238102 176 +39200 60238278 230 +39201 60238508 230 +39202 60238738 1862 +39203 60240600 1886 +39204 60242486 1874 +39205 60244360 950 +39206 60245310 1004 +39207 60246314 914 +39208 60247228 230 +39209 60247458 230 +39210 60247688 182 +39211 60247870 1886 +39212 60249756 1790 +39213 60251546 1886 +39214 60253432 1016 +39215 60254448 920 +39216 60255368 932 +39217 60256300 230 +39218 60256530 182 +39219 60256712 230 +39220 60256942 1886 +39221 60258828 1886 +39222 60260714 1790 +39223 60262504 920 +39224 60263424 926 +39225 60264350 1028 +39226 60265378 230 +39227 60265608 230 +39228 60265838 182 +39229 60266020 1886 +39230 60267906 1886 +39231 60269792 1886 +39232 60271678 188 +39233 60271866 188 +39234 60272054 188 +39235 60272242 1886 +39236 60274128 1808 +39237 60275936 728 +39238 60276664 872 +39239 60277536 230 +39240 60277766 182 +39241 60277948 1862 +39242 60279810 1886 +39243 60281696 1886 +39244 60283582 974 +39245 60284556 914 +39246 60285470 956 +39247 60286426 230 +39248 60286656 230 +39249 60286886 230 +39250 60287116 1862 +39251 60288978 1886 +39252 60290864 1886 +39253 60292750 932 +39254 60293682 926 +39255 60294608 968 +39256 60295576 230 +39257 60295806 230 +39258 60296036 230 +39259 60296266 1862 +39260 60298128 1886 +39261 60300014 1886 +39262 60301900 932 +39263 60302832 956 +39264 60303788 932 +39265 60304720 230 +39266 60304950 230 +39267 60305180 230 +39268 60305410 1874 +39269 60307284 1886 +39270 60309170 1886 +39271 60311056 1058 +39272 60312114 926 +39273 60313040 914 +39274 60313954 176 +39275 60314130 230 +39276 60314360 230 +39277 60314590 1862 +39278 60316452 1886 +39279 60318338 1874 +39280 60320212 950 +39281 60321162 1004 +39282 60322166 914 +39283 60323080 230 +39284 60323310 230 +39285 60323540 182 +39286 60323722 1886 +39287 60325608 1790 +39288 60327398 1886 +39289 60329284 1016 +39290 60330300 920 +39291 60331220 932 +39292 60332152 230 +39293 60332382 182 +39294 60332564 230 +39295 60332794 1886 +39296 60334680 1886 +39297 60336566 1790 +39298 60338356 920 +39299 60339276 926 +39300 60340202 1028 +39301 60341230 230 +39302 60341460 230 +39303 60341690 182 +39304 60341872 1886 +39305 60343758 1886 +39306 60345644 1886 +39307 60347530 188 +39308 60347718 188 +39309 60347906 188 +39310 60348094 1886 +39311 60349980 1808 +39312 60351788 728 +39313 60352516 872 +39314 60353388 230 +39315 60353618 182 +39316 60353800 1862 +39317 60355662 1886 +39318 60357548 1886 +39319 60359434 974 +39320 60360408 914 +39321 60361322 956 +39322 60362278 230 +39323 60362508 230 +39324 60362738 230 +39325 60362968 1862 +39326 60364830 1886 +39327 60366716 1886 +39328 60368602 932 +39329 60369534 926 +39330 60370460 968 +39331 60371428 230 +39332 60371658 230 +39333 60371888 230 +39334 60372118 1862 +39335 60373980 1886 +39336 60375866 1886 +39337 60377752 932 +39338 60378684 956 +39339 60379640 932 +39340 60380572 230 +39341 60380802 230 +39342 60381032 230 +39343 60381262 1874 +39344 60383136 1886 +39345 60385022 1886 +39346 60386908 1058 +39347 60387966 926 +39348 60388892 914 +39349 60389806 176 +39350 60389982 230 +39351 60390212 230 +39352 60390442 1862 +39353 60392304 1886 +39354 60394190 1874 +39355 60396064 950 +39356 60397014 1004 +39357 60398018 914 +39358 60398932 230 +39359 60399162 230 +39360 60399392 182 +39361 60399574 1886 +39362 60401460 1790 +39363 60403250 1886 +39364 60405136 1016 +39365 60406152 920 +39366 60407072 932 +39367 60408004 230 +39368 60408234 182 +39369 60408416 230 +39370 60408646 1886 +39371 60410532 1886 +39372 60412418 1790 +39373 60414208 920 +39374 60415128 926 +39375 60416054 1028 +39376 60417082 230 +39377 60417312 230 +39378 60417542 182 +39379 60417724 1886 +39380 60419610 1886 +39381 60421496 1886 +39382 60423382 188 +39383 60423570 188 +39384 60423758 188 +39385 60423946 1886 +39386 60425832 1808 +39387 60427640 728 +39388 60428368 872 +39389 60429240 230 +39390 60429470 182 +39391 60429652 1862 +39392 60431514 1886 +39393 60433400 1886 +39394 60435286 974 +39395 60436260 914 +39396 60437174 956 +39397 60438130 230 +39398 60438360 230 +39399 60438590 230 +39400 60438820 1862 +39401 60440682 1886 +39402 60442568 1886 +39403 60444454 932 +39404 60445386 926 +39405 60446312 968 +39406 60447280 230 +39407 60447510 230 +39408 60447740 230 +39409 60447970 1862 +39410 60449832 1886 +39411 60451718 1886 +39412 60453604 932 +39413 60454536 956 +39414 60455492 932 +39415 60456424 230 +39416 60456654 230 +39417 60456884 230 +39418 60457114 1874 +39419 60458988 1886 +39420 60460874 1886 +39421 60462760 1058 +39422 60463818 926 +39423 60464744 914 +39424 60465658 176 +39425 60465834 230 +39426 60466064 230 +39427 60466294 1862 +39428 60468156 1886 +39429 60470042 1874 +39430 60471916 950 +39431 60472866 1004 +39432 60473870 914 +39433 60474784 230 +39434 60475014 230 +39435 60475244 182 +39436 60475426 1886 +39437 60477312 1790 +39438 60479102 1886 +39439 60480988 1016 +39440 60482004 920 +39441 60482924 932 +39442 60483856 230 +39443 60484086 182 +39444 60484268 230 +39445 60484498 1886 +39446 60486384 1886 +39447 60488270 1790 +39448 60490060 920 +39449 60490980 926 +39450 60491906 1028 +39451 60492934 230 +39452 60493164 230 +39453 60493394 182 +39454 60493576 1886 +39455 60495462 1886 +39456 60497348 1886 +39457 60499234 188 +39458 60499422 188 +39459 60499610 188 +39460 60499798 1886 +39461 60501684 1808 +39462 60503492 728 +39463 60504220 872 +39464 60505092 230 +39465 60505322 182 +39466 60505504 1862 +39467 60507366 1886 +39468 60509252 1886 +39469 60511138 974 +39470 60512112 914 +39471 60513026 956 +39472 60513982 230 +39473 60514212 230 +39474 60514442 230 +39475 60514672 1862 +39476 60516534 1886 +39477 60518420 1886 +39478 60520306 932 +39479 60521238 926 +39480 60522164 968 +39481 60523132 230 +39482 60523362 230 +39483 60523592 230 +39484 60523822 1862 +39485 60525684 1886 +39486 60527570 1886 +39487 60529456 932 +39488 60530388 956 +39489 60531344 932 +39490 60532276 230 +39491 60532506 230 +39492 60532736 230 +39493 60532966 1874 +39494 60534840 1886 +39495 60536726 1886 +39496 60538612 1058 +39497 60539670 926 +39498 60540596 914 +39499 60541510 176 +39500 60541686 230 +39501 60541916 230 +39502 60542146 1862 +39503 60544008 1886 +39504 60545894 1874 +39505 60547768 950 +39506 60548718 1004 +39507 60549722 914 +39508 60550636 230 +39509 60550866 230 +39510 60551096 182 +39511 60551278 1886 +39512 60553164 1790 +39513 60554954 1886 +39514 60556840 1016 +39515 60557856 920 +39516 60558776 932 +39517 60559708 230 +39518 60559938 182 +39519 60560120 230 +39520 60560350 1886 +39521 60562236 1886 +39522 60564122 1790 +39523 60565912 920 +39524 60566832 926 +39525 60567758 1028 +39526 60568786 230 +39527 60569016 230 +39528 60569246 182 +39529 60569428 1886 +39530 60571314 1886 +39531 60573200 1886 +39532 60575086 188 +39533 60575274 188 +39534 60575462 188 +39535 60575650 194 +39536 60575844 194 +39537 60576038 194 +39538 60576232 596 +39539 60576828 680 +39540 60577508 650 +39541 60578158 632 +39542 60578790 782 +39543 60579572 710 +39544 60580282 1772 +39545 60582054 1742 +39546 60583796 800 +39547 60584596 800 +39548 60585396 2072 +39549 60587468 2072 +39550 60589540 2180 +39551 60591720 6350 +39552 60598070 6350 +39553 60604420 1106 +39554 60605526 944 +39555 60606470 932 +39556 60607402 1052 +39557 60608454 1064 +39558 60609518 722 +39559 60610240 722 +39560 60610962 1568 +39561 60612530 1568 +39562 60614098 800 +39563 60614898 602 +39564 60615500 476 +39565 60615976 596 +39566 60616572 560 +39567 60617132 572 +39568 60617704 488 +39569 60618192 626 +39570 60618818 560 +39571 60619378 134 +39572 60619512 140 +39573 60619652 704 +39574 60620356 770 +39575 60621126 716 +39576 60621842 536 +39577 60622378 554 +39578 60622932 956 +39579 60623888 950 +39580 60624838 1268 +39581 60626106 1058 +39582 60627164 1934 +39583 60629098 1964 +39584 60631062 1964 +39585 60633026 1910 +39586 60634936 1910 +39587 60636846 1550 +39588 60638396 3734 +39589 60642130 3536 +39590 60645666 1832 +39591 60647498 1286 +39592 60648784 1550 +39593 60650334 3128 +39594 60653462 2180 +39595 60655642 1910 +39596 60657552 152 +39597 60657704 860 +39598 60658564 1544 +39599 60660108 1070 +39600 60661178 848 +39601 60662026 356 +39602 60662382 1070 +39603 60663452 494 +39604 60663946 908 +39605 60664854 782 +39606 60665636 494 +39607 60666130 1328 +39608 60667458 794 +39609 60668252 1250 +39610 60669502 1274 +39611 60670776 806 +39612 60671582 602 +39613 60672184 1196 +39614 60673380 1388 +39615 60674768 758 +39616 60675526 1142 +39617 60676668 854 +39618 60677522 1370 +39619 60678892 602 +39620 60679494 794 +39621 60680288 1886 +39622 60682174 860 +39623 60683034 494 +39624 60683528 902 +39625 60684430 626 +39626 60685056 308 +39627 60685364 416 +39628 60685780 740 +39629 60686520 392 +39630 60686912 470 +39631 60687382 710 +39632 60688092 1784 +39633 60689876 2738 +39634 60692614 4244 +39635 60696858 2438 +39636 60699296 5077 +39637 60704373 3266 +39638 60707639 1784 +39639 60709423 1873 +39640 60711296 2378 +39641 60713674 464 +39642 60714138 1694 +39643 60715832 1802 +39644 60717634 1844 +39645 60719478 1760 +39646 60721238 1718 +39647 60722956 1808 +39648 60724764 752 +39649 60725516 1544 +39650 60727060 1544 +39651 60728604 1544 +39652 60730148 1544 +39653 60731692 488 +39654 60732180 1730 +39655 60733910 1292 +39656 60735202 1406 +39657 60736608 1376 +39658 60737984 602 +39659 60738586 1010 +39660 60739596 1010 +39661 60740606 2162 +39662 60742768 2150 +39663 60744918 668 +39664 60745586 908 +39665 60746494 908 +39666 60747402 908 +39667 60748310 908 +39668 60749218 1862 +39669 60751080 1886 +39670 60752966 1886 +39671 60754852 1862 +39672 60756714 1886 +39673 60758600 1886 +39674 60760486 1862 +39675 60762348 1886 +39676 60764234 1886 +39677 60766120 1862 +39678 60767982 1886 +39679 60769868 1886 +39680 60771754 1862 +39681 60773616 1886 +39682 60775502 1886 +39683 60777388 1862 +39684 60779250 1886 +39685 60781136 1886 +39686 60783022 1886 +39687 60784908 1886 +39688 60786794 1886 +39689 60788680 1886 +39690 60790566 1886 +39691 60792452 1886 +39692 60794338 1886 +39693 60796224 1886 +39694 60798110 1886 +39695 60799996 1886 +39696 60801882 1808 +39697 60803690 1862 +39698 60805552 1886 +39699 60807438 1886 +39700 60809324 1862 +39701 60811186 1886 +39702 60813072 1886 +39703 60814958 1862 +39704 60816820 1886 +39705 60818706 1886 +39706 60820592 1874 +39707 60822466 1886 +39708 60824352 1886 +39709 60826238 1862 +39710 60828100 1886 +39711 60829986 1874 +39712 60831860 1886 +39713 60833746 1790 +39714 60835536 1886 +39715 60837422 1886 +39716 60839308 1886 +39717 60841194 1790 +39718 60842984 1886 +39719 60844870 1886 +39720 60846756 1886 +39721 60848642 1886 +39722 60850528 1886 +39723 60852414 1886 +39724 60854300 1886 +39725 60856186 1886 +39726 60858072 1886 +39727 60859958 1886 +39728 60861844 1886 +39729 60863730 1886 +39730 60865616 1886 +39731 60867502 1886 +39732 60869388 1886 +39733 60871274 1886 +39734 60873160 1886 +39735 60875046 1886 +39736 60876932 1886 +39737 60878818 1886 +39738 60880704 1886 +39739 60882590 1886 +39740 60884476 1886 +39741 60886362 1886 +39742 60888248 1886 +39743 60890134 1886 +39744 60892020 1886 +39745 60893906 1886 +39746 60895792 1886 +39747 60897678 1886 +39748 60899564 1886 +39749 60901450 1886 +39750 60903336 1886 +39751 60905222 938 +39752 60906160 920 +39753 60907080 932 +39754 60908012 926 +39755 60908938 932 +39756 60909870 926 +39757 60910796 932 +39758 60911728 932 +39759 60912660 932 +39760 60913592 926 +39761 60914518 926 +39762 60915444 920 +39763 60916364 932 +39764 60917296 1016 +39765 60918312 932 +39766 60919244 926 +39767 60920170 926 +39768 60921096 926 +39769 60922022 956 +39770 60922978 914 +39771 60923892 932 +39772 60924824 728 +39773 60925552 956 +39774 60926508 926 +39775 60927434 968 +39776 60928402 956 +39777 60929358 932 +39778 60930290 1058 +39779 60931348 926 +39780 60932274 950 +39781 60933224 1004 +39782 60934228 1016 +39783 60935244 920 +39784 60936164 932 +39785 60937096 926 +39786 60938022 1028 +39787 60939050 926 +39788 60939976 956 +39789 60940932 914 +39790 60941846 932 +39791 60942778 926 +39792 60943704 956 +39793 60944660 914 +39794 60945574 932 +39795 60946506 926 +39796 60947432 956 +39797 60948388 914 +39798 60949302 932 +39799 60950234 926 +39800 60951160 956 +39801 60952116 914 +39802 60953030 932 +39803 60953962 926 +39804 60954888 956 +39805 60955844 914 +39806 60956758 932 +39807 60957690 974 +39808 60958664 920 +39809 60959584 920 +39810 60960504 926 +39811 60961430 920 +39812 60962350 944 +39813 60963294 920 +39814 60964214 1034 +39815 60965248 1034 +39816 60966282 1034 +39817 60967316 872 +39818 60968188 914 +39819 60969102 932 +39820 60970034 932 +39821 60970966 914 +39822 60971880 914 +39823 60972794 920 +39824 60973714 1034 +39825 60974748 1034 +39826 60975782 1034 +39827 60976816 1034 +39828 60977850 1034 +39829 60978884 1034 +39830 60979918 1034 +39831 60980952 1034 +39832 60981986 1034 +39833 60983020 1034 +39834 60984054 188 +39835 60984242 230 +39836 60984472 230 +39837 60984702 230 +39838 60984932 230 +39839 60985162 230 +39840 60985392 230 +39841 60985622 230 +39842 60985852 230 +39843 60986082 230 +39844 60986312 230 +39845 60986542 230 +39846 60986772 188 +39847 60986960 230 +39848 60987190 230 +39849 60987420 230 +39850 60987650 230 +39851 60987880 230 +39852 60988110 230 +39853 60988340 188 +39854 60988528 230 +39855 60988758 230 +39856 60988988 230 +39857 60989218 188 +39858 60989406 188 +39859 60989594 188 +39860 60989782 188 +39861 60989970 230 +39862 60990200 182 +39863 60990382 230 +39864 60990612 230 +39865 60990842 230 +39866 60991072 230 +39867 60991302 230 +39868 60991532 230 +39869 60991762 230 +39870 60991992 230 +39871 60992222 230 +39872 60992452 176 +39873 60992628 230 +39874 60992858 230 +39875 60993088 230 +39876 60993318 230 +39877 60993548 182 +39878 60993730 230 +39879 60993960 182 +39880 60994142 230 +39881 60994372 230 +39882 60994602 230 +39883 60994832 182 +39884 60995014 188 +39885 60995202 188 +39886 60995390 188 +39887 60995578 248 +39888 60995826 230 +39889 60996056 230 +39890 60996286 248 +39891 60996534 230 +39892 60996764 230 +39893 60996994 248 +39894 60997242 230 +39895 60997472 230 +39896 60997702 248 +39897 60997950 230 +39898 60998180 230 +39899 60998410 230 +39900 60998640 248 +39901 60998888 230 +39902 60999118 248 +39903 60999366 230 +39904 60999596 230 +39905 60999826 248 +39906 61000074 230 +39907 61000304 230 +39908 61000534 248 +39909 61000782 230 +39910 61001012 230 +39911 61001242 248 +39912 61001490 230 +39913 61001720 230 +39914 61001950 230 +39915 61002180 248 +39916 61002428 230 +39917 61002658 1862 +39918 61004520 1886 +39919 61006406 1886 +39920 61008292 1862 +39921 61010154 1886 +39922 61012040 1886 +39923 61013926 1862 +39924 61015788 1886 +39925 61017674 1886 +39926 61019560 1862 +39927 61021422 1886 +39928 61023308 1886 +39929 61025194 1862 +39930 61027056 1886 +39931 61028942 1886 +39932 61030828 1862 +39933 61032690 1886 +39934 61034576 1886 +39935 61036462 1886 +39936 61038348 1886 +39937 61040234 1886 +39938 61042120 1886 +39939 61044006 1886 +39940 61045892 1886 +39941 61047778 1886 +39942 61049664 1886 +39943 61051550 1886 +39944 61053436 1886 +39945 61055322 1808 +39946 61057130 1862 +39947 61058992 1886 +39948 61060878 1886 +39949 61062764 1862 +39950 61064626 1886 +39951 61066512 1886 +39952 61068398 1862 +39953 61070260 1886 +39954 61072146 1886 +39955 61074032 1874 +39956 61075906 1886 +39957 61077792 1886 +39958 61079678 1862 +39959 61081540 1886 +39960 61083426 1874 +39961 61085300 1886 +39962 61087186 1790 +39963 61088976 1886 +39964 61090862 1886 +39965 61092748 1886 +39966 61094634 1790 +39967 61096424 1886 +39968 61098310 1886 +39969 61100196 1886 +39970 61102082 1886 +39971 61103968 1886 +39972 61105854 1886 +39973 61107740 1886 +39974 61109626 1886 +39975 61111512 1886 +39976 61113398 1886 +39977 61115284 1886 +39978 61117170 1886 +39979 61119056 1886 +39980 61120942 1886 +39981 61122828 1886 +39982 61124714 1886 +39983 61126600 1886 +39984 61128486 1886 +39985 61130372 1886 +39986 61132258 1886 +39987 61134144 1886 +39988 61136030 1886 +39989 61137916 1886 +39990 61139802 1886 +39991 61141688 1886 +39992 61143574 1886 +39993 61145460 1886 +39994 61147346 1886 +39995 61149232 1886 +39996 61151118 1886 +39997 61153004 1886 +39998 61154890 1886 +39999 61156776 1886 +40000 61158662 938 +40001 61159600 920 +40002 61160520 932 +40003 61161452 926 +40004 61162378 932 +40005 61163310 926 +40006 61164236 932 +40007 61165168 932 +40008 61166100 932 +40009 61167032 926 +40010 61167958 926 +40011 61168884 920 +40012 61169804 932 +40013 61170736 1016 +40014 61171752 932 +40015 61172684 926 +40016 61173610 926 +40017 61174536 926 +40018 61175462 956 +40019 61176418 914 +40020 61177332 932 +40021 61178264 728 +40022 61178992 956 +40023 61179948 926 +40024 61180874 968 +40025 61181842 956 +40026 61182798 932 +40027 61183730 1058 +40028 61184788 926 +40029 61185714 950 +40030 61186664 1004 +40031 61187668 1016 +40032 61188684 920 +40033 61189604 932 +40034 61190536 926 +40035 61191462 1028 +40036 61192490 926 +40037 61193416 956 +40038 61194372 914 +40039 61195286 932 +40040 61196218 926 +40041 61197144 956 +40042 61198100 914 +40043 61199014 932 +40044 61199946 926 +40045 61200872 956 +40046 61201828 914 +40047 61202742 932 +40048 61203674 926 +40049 61204600 956 +40050 61205556 914 +40051 61206470 932 +40052 61207402 926 +40053 61208328 956 +40054 61209284 914 +40055 61210198 932 +40056 61211130 974 +40057 61212104 920 +40058 61213024 920 +40059 61213944 926 +40060 61214870 920 +40061 61215790 944 +40062 61216734 920 +40063 61217654 1034 +40064 61218688 1034 +40065 61219722 1034 +40066 61220756 872 +40067 61221628 914 +40068 61222542 932 +40069 61223474 932 +40070 61224406 914 +40071 61225320 914 +40072 61226234 920 +40073 61227154 1034 +40074 61228188 1034 +40075 61229222 1034 +40076 61230256 1034 +40077 61231290 1034 +40078 61232324 1034 +40079 61233358 1034 +40080 61234392 1034 +40081 61235426 1034 +40082 61236460 1034 +40083 61237494 188 +40084 61237682 230 +40085 61237912 230 +40086 61238142 230 +40087 61238372 230 +40088 61238602 230 +40089 61238832 230 +40090 61239062 230 +40091 61239292 230 +40092 61239522 230 +40093 61239752 230 +40094 61239982 230 +40095 61240212 188 +40096 61240400 230 +40097 61240630 230 +40098 61240860 230 +40099 61241090 230 +40100 61241320 230 +40101 61241550 230 +40102 61241780 188 +40103 61241968 230 +40104 61242198 230 +40105 61242428 230 +40106 61242658 188 +40107 61242846 188 +40108 61243034 188 +40109 61243222 188 +40110 61243410 230 +40111 61243640 182 +40112 61243822 230 +40113 61244052 230 +40114 61244282 230 +40115 61244512 230 +40116 61244742 230 +40117 61244972 230 +40118 61245202 230 +40119 61245432 230 +40120 61245662 230 +40121 61245892 176 +40122 61246068 230 +40123 61246298 230 +40124 61246528 230 +40125 61246758 230 +40126 61246988 182 +40127 61247170 230 +40128 61247400 182 +40129 61247582 230 +40130 61247812 230 +40131 61248042 230 +40132 61248272 182 +40133 61248454 188 +40134 61248642 188 +40135 61248830 188 +40136 61249018 248 +40137 61249266 230 +40138 61249496 230 +40139 61249726 248 +40140 61249974 230 +40141 61250204 230 +40142 61250434 248 +40143 61250682 230 +40144 61250912 230 +40145 61251142 248 +40146 61251390 230 +40147 61251620 230 +40148 61251850 230 +40149 61252080 248 +40150 61252328 230 +40151 61252558 248 +40152 61252806 230 +40153 61253036 230 +40154 61253266 248 +40155 61253514 230 +40156 61253744 230 +40157 61253974 248 +40158 61254222 230 +40159 61254452 230 +40160 61254682 248 +40161 61254930 230 +40162 61255160 230 +40163 61255390 230 +40164 61255620 248 +40165 61255868 230 +40166 61256098 1862 +40167 61257960 1886 +40168 61259846 1886 +40169 61261732 1862 +40170 61263594 1886 +40171 61265480 1886 +40172 61267366 1862 +40173 61269228 1886 +40174 61271114 1886 +40175 61273000 1862 +40176 61274862 1886 +40177 61276748 1886 +40178 61278634 1862 +40179 61280496 1886 +40180 61282382 1886 +40181 61284268 1862 +40182 61286130 1886 +40183 61288016 1886 +40184 61289902 1886 +40185 61291788 1886 +40186 61293674 1886 +40187 61295560 1886 +40188 61297446 1886 +40189 61299332 1886 +40190 61301218 1886 +40191 61303104 1886 +40192 61304990 1886 +40193 61306876 1886 +40194 61308762 1808 +40195 61310570 1862 +40196 61312432 1886 +40197 61314318 1886 +40198 61316204 1862 +40199 61318066 1886 +40200 61319952 1886 +40201 61321838 1862 +40202 61323700 1886 +40203 61325586 1886 +40204 61327472 1874 +40205 61329346 1886 +40206 61331232 1886 +40207 61333118 1862 +40208 61334980 1886 +40209 61336866 1874 +40210 61338740 1886 +40211 61340626 1790 +40212 61342416 1886 +40213 61344302 1886 +40214 61346188 1886 +40215 61348074 1790 +40216 61349864 1886 +40217 61351750 1886 +40218 61353636 1886 +40219 61355522 1886 +40220 61357408 1886 +40221 61359294 1886 +40222 61361180 1886 +40223 61363066 1886 +40224 61364952 1886 +40225 61366838 1886 +40226 61368724 1886 +40227 61370610 1886 +40228 61372496 1886 +40229 61374382 1886 +40230 61376268 1886 +40231 61378154 1886 +40232 61380040 1886 +40233 61381926 1886 +40234 61383812 1886 +40235 61385698 1886 +40236 61387584 1886 +40237 61389470 1886 +40238 61391356 1886 +40239 61393242 1886 +40240 61395128 1886 +40241 61397014 1886 +40242 61398900 1886 +40243 61400786 1886 +40244 61402672 1886 +40245 61404558 1886 +40246 61406444 1886 +40247 61408330 1886 +40248 61410216 1886 +40249 61412102 938 +40250 61413040 920 +40251 61413960 932 +40252 61414892 926 +40253 61415818 932 +40254 61416750 926 +40255 61417676 932 +40256 61418608 932 +40257 61419540 932 +40258 61420472 926 +40259 61421398 926 +40260 61422324 920 +40261 61423244 932 +40262 61424176 1016 +40263 61425192 932 +40264 61426124 926 +40265 61427050 926 +40266 61427976 926 +40267 61428902 956 +40268 61429858 914 +40269 61430772 932 +40270 61431704 728 +40271 61432432 956 +40272 61433388 926 +40273 61434314 968 +40274 61435282 956 +40275 61436238 932 +40276 61437170 1058 +40277 61438228 926 +40278 61439154 950 +40279 61440104 1004 +40280 61441108 1016 +40281 61442124 920 +40282 61443044 932 +40283 61443976 926 +40284 61444902 1028 +40285 61445930 926 +40286 61446856 956 +40287 61447812 914 +40288 61448726 932 +40289 61449658 926 +40290 61450584 956 +40291 61451540 914 +40292 61452454 932 +40293 61453386 926 +40294 61454312 956 +40295 61455268 914 +40296 61456182 932 +40297 61457114 926 +40298 61458040 956 +40299 61458996 914 +40300 61459910 932 +40301 61460842 926 +40302 61461768 956 +40303 61462724 914 +40304 61463638 932 +40305 61464570 974 +40306 61465544 920 +40307 61466464 920 +40308 61467384 926 +40309 61468310 920 +40310 61469230 944 +40311 61470174 920 +40312 61471094 1034 +40313 61472128 1034 +40314 61473162 1034 +40315 61474196 872 +40316 61475068 914 +40317 61475982 932 +40318 61476914 932 +40319 61477846 914 +40320 61478760 914 +40321 61479674 920 +40322 61480594 1034 +40323 61481628 1034 +40324 61482662 1034 +40325 61483696 1034 +40326 61484730 1034 +40327 61485764 1034 +40328 61486798 1034 +40329 61487832 1034 +40330 61488866 1034 +40331 61489900 1034 +40332 61490934 188 +40333 61491122 230 +40334 61491352 230 +40335 61491582 230 +40336 61491812 230 +40337 61492042 230 +40338 61492272 230 +40339 61492502 230 +40340 61492732 230 +40341 61492962 230 +40342 61493192 230 +40343 61493422 230 +40344 61493652 188 +40345 61493840 230 +40346 61494070 230 +40347 61494300 230 +40348 61494530 230 +40349 61494760 230 +40350 61494990 230 +40351 61495220 188 +40352 61495408 230 +40353 61495638 230 +40354 61495868 230 +40355 61496098 188 +40356 61496286 188 +40357 61496474 188 +40358 61496662 188 +40359 61496850 230 +40360 61497080 182 +40361 61497262 230 +40362 61497492 230 +40363 61497722 230 +40364 61497952 230 +40365 61498182 230 +40366 61498412 230 +40367 61498642 230 +40368 61498872 230 +40369 61499102 230 +40370 61499332 176 +40371 61499508 230 +40372 61499738 230 +40373 61499968 230 +40374 61500198 230 +40375 61500428 182 +40376 61500610 230 +40377 61500840 182 +40378 61501022 230 +40379 61501252 230 +40380 61501482 230 +40381 61501712 182 +40382 61501894 188 +40383 61502082 188 +40384 61502270 188 +40385 61502458 248 +40386 61502706 230 +40387 61502936 230 +40388 61503166 248 +40389 61503414 230 +40390 61503644 230 +40391 61503874 248 +40392 61504122 230 +40393 61504352 230 +40394 61504582 248 +40395 61504830 230 +40396 61505060 230 +40397 61505290 230 +40398 61505520 248 +40399 61505768 230 +40400 61505998 248 +40401 61506246 230 +40402 61506476 230 +40403 61506706 248 +40404 61506954 230 +40405 61507184 230 +40406 61507414 248 +40407 61507662 230 +40408 61507892 230 +40409 61508122 248 +40410 61508370 230 +40411 61508600 230 +40412 61508830 230 +40413 61509060 248 +40414 61509308 230 +40415 61509538 1862 +40416 61511400 1886 +40417 61513286 1886 +40418 61515172 1862 +40419 61517034 1886 +40420 61518920 1886 +40421 61520806 1862 +40422 61522668 1886 +40423 61524554 1886 +40424 61526440 1862 +40425 61528302 1886 +40426 61530188 1886 +40427 61532074 1862 +40428 61533936 1886 +40429 61535822 1886 +40430 61537708 1862 +40431 61539570 1886 +40432 61541456 1886 +40433 61543342 1886 +40434 61545228 1886 +40435 61547114 1886 +40436 61549000 1886 +40437 61550886 1886 +40438 61552772 1886 +40439 61554658 1886 +40440 61556544 1886 +40441 61558430 1886 +40442 61560316 1886 +40443 61562202 1808 +40444 61564010 1862 +40445 61565872 1886 +40446 61567758 1886 +40447 61569644 1862 +40448 61571506 1886 +40449 61573392 1886 +40450 61575278 1862 +40451 61577140 1886 +40452 61579026 1886 +40453 61580912 1874 +40454 61582786 1886 +40455 61584672 1886 +40456 61586558 1862 +40457 61588420 1886 +40458 61590306 1874 +40459 61592180 1886 +40460 61594066 1790 +40461 61595856 1886 +40462 61597742 1886 +40463 61599628 1886 +40464 61601514 1790 +40465 61603304 1886 +40466 61605190 1886 +40467 61607076 1886 +40468 61608962 1886 +40469 61610848 1886 +40470 61612734 1886 +40471 61614620 1886 +40472 61616506 1886 +40473 61618392 1886 +40474 61620278 1886 +40475 61622164 1886 +40476 61624050 1886 +40477 61625936 1886 +40478 61627822 1886 +40479 61629708 1886 +40480 61631594 1886 +40481 61633480 1886 +40482 61635366 1886 +40483 61637252 1886 +40484 61639138 1886 +40485 61641024 1886 +40486 61642910 1886 +40487 61644796 1886 +40488 61646682 1886 +40489 61648568 1886 +40490 61650454 1886 +40491 61652340 1886 +40492 61654226 1886 +40493 61656112 1886 +40494 61657998 1886 +40495 61659884 1886 +40496 61661770 1886 +40497 61663656 1886 +40498 61665542 938 +40499 61666480 920 +40500 61667400 932 +40501 61668332 926 +40502 61669258 932 +40503 61670190 926 +40504 61671116 932 +40505 61672048 932 +40506 61672980 932 +40507 61673912 926 +40508 61674838 926 +40509 61675764 920 +40510 61676684 932 +40511 61677616 1016 +40512 61678632 932 +40513 61679564 926 +40514 61680490 926 +40515 61681416 926 +40516 61682342 956 +40517 61683298 914 +40518 61684212 932 +40519 61685144 728 +40520 61685872 956 +40521 61686828 926 +40522 61687754 968 +40523 61688722 956 +40524 61689678 932 +40525 61690610 1058 +40526 61691668 926 +40527 61692594 950 +40528 61693544 1004 +40529 61694548 1016 +40530 61695564 920 +40531 61696484 932 +40532 61697416 926 +40533 61698342 1028 +40534 61699370 926 +40535 61700296 956 +40536 61701252 914 +40537 61702166 932 +40538 61703098 926 +40539 61704024 956 +40540 61704980 914 +40541 61705894 932 +40542 61706826 926 +40543 61707752 956 +40544 61708708 914 +40545 61709622 932 +40546 61710554 926 +40547 61711480 956 +40548 61712436 914 +40549 61713350 932 +40550 61714282 926 +40551 61715208 956 +40552 61716164 914 +40553 61717078 932 +40554 61718010 974 +40555 61718984 920 +40556 61719904 920 +40557 61720824 926 +40558 61721750 920 +40559 61722670 944 +40560 61723614 920 +40561 61724534 1034 +40562 61725568 1034 +40563 61726602 1034 +40564 61727636 872 +40565 61728508 914 +40566 61729422 932 +40567 61730354 932 +40568 61731286 914 +40569 61732200 914 +40570 61733114 920 +40571 61734034 1034 +40572 61735068 1034 +40573 61736102 1034 +40574 61737136 1034 +40575 61738170 1034 +40576 61739204 1034 +40577 61740238 1034 +40578 61741272 1034 +40579 61742306 1034 +40580 61743340 1034 +40581 61744374 188 +40582 61744562 230 +40583 61744792 230 +40584 61745022 230 +40585 61745252 230 +40586 61745482 230 +40587 61745712 230 +40588 61745942 230 +40589 61746172 230 +40590 61746402 230 +40591 61746632 230 +40592 61746862 230 +40593 61747092 188 +40594 61747280 230 +40595 61747510 230 +40596 61747740 230 +40597 61747970 230 +40598 61748200 230 +40599 61748430 230 +40600 61748660 188 +40601 61748848 230 +40602 61749078 230 +40603 61749308 230 +40604 61749538 188 +40605 61749726 188 +40606 61749914 188 +40607 61750102 188 +40608 61750290 230 +40609 61750520 182 +40610 61750702 230 +40611 61750932 230 +40612 61751162 230 +40613 61751392 230 +40614 61751622 230 +40615 61751852 230 +40616 61752082 230 +40617 61752312 230 +40618 61752542 230 +40619 61752772 176 +40620 61752948 230 +40621 61753178 230 +40622 61753408 230 +40623 61753638 230 +40624 61753868 182 +40625 61754050 230 +40626 61754280 182 +40627 61754462 230 +40628 61754692 230 +40629 61754922 230 +40630 61755152 182 +40631 61755334 188 +40632 61755522 188 +40633 61755710 188 +40634 61755898 248 +40635 61756146 230 +40636 61756376 230 +40637 61756606 248 +40638 61756854 230 +40639 61757084 230 +40640 61757314 248 +40641 61757562 230 +40642 61757792 230 +40643 61758022 248 +40644 61758270 230 +40645 61758500 230 +40646 61758730 230 +40647 61758960 248 +40648 61759208 230 +40649 61759438 248 +40650 61759686 230 +40651 61759916 230 +40652 61760146 248 +40653 61760394 230 +40654 61760624 230 +40655 61760854 248 +40656 61761102 230 +40657 61761332 230 +40658 61761562 248 +40659 61761810 230 +40660 61762040 230 +40661 61762270 230 +40662 61762500 248 +40663 61762748 230 +40664 61762978 1862 +40665 61764840 1886 +40666 61766726 1886 +40667 61768612 1862 +40668 61770474 1886 +40669 61772360 1886 +40670 61774246 1862 +40671 61776108 1886 +40672 61777994 1886 +40673 61779880 1862 +40674 61781742 1886 +40675 61783628 1886 +40676 61785514 1862 +40677 61787376 1886 +40678 61789262 1886 +40679 61791148 1862 +40680 61793010 1886 +40681 61794896 1886 +40682 61796782 1886 +40683 61798668 1886 +40684 61800554 1886 +40685 61802440 1886 +40686 61804326 1886 +40687 61806212 1886 +40688 61808098 1886 +40689 61809984 1886 +40690 61811870 1886 +40691 61813756 1886 +40692 61815642 1808 +40693 61817450 1862 +40694 61819312 1886 +40695 61821198 1886 +40696 61823084 1862 +40697 61824946 1886 +40698 61826832 1886 +40699 61828718 1862 +40700 61830580 1886 +40701 61832466 1886 +40702 61834352 1874 +40703 61836226 1886 +40704 61838112 1886 +40705 61839998 1862 +40706 61841860 1886 +40707 61843746 1874 +40708 61845620 1886 +40709 61847506 1790 +40710 61849296 1886 +40711 61851182 1886 +40712 61853068 1886 +40713 61854954 1790 +40714 61856744 1886 +40715 61858630 1886 +40716 61860516 1886 +40717 61862402 1886 +40718 61864288 1886 +40719 61866174 1886 +40720 61868060 1886 +40721 61869946 1886 +40722 61871832 1886 +40723 61873718 1886 +40724 61875604 1886 +40725 61877490 1886 +40726 61879376 1886 +40727 61881262 1886 +40728 61883148 1886 +40729 61885034 1886 +40730 61886920 1886 +40731 61888806 1886 +40732 61890692 1886 +40733 61892578 1886 +40734 61894464 1886 +40735 61896350 1886 +40736 61898236 1886 +40737 61900122 1886 +40738 61902008 1886 +40739 61903894 1886 +40740 61905780 1886 +40741 61907666 1886 +40742 61909552 1886 +40743 61911438 1886 +40744 61913324 1886 +40745 61915210 1886 +40746 61917096 1886 +40747 61918982 938 +40748 61919920 920 +40749 61920840 932 +40750 61921772 926 +40751 61922698 932 +40752 61923630 926 +40753 61924556 932 +40754 61925488 932 +40755 61926420 932 +40756 61927352 926 +40757 61928278 926 +40758 61929204 920 +40759 61930124 932 +40760 61931056 1016 +40761 61932072 932 +40762 61933004 926 +40763 61933930 926 +40764 61934856 926 +40765 61935782 956 +40766 61936738 914 +40767 61937652 932 +40768 61938584 728 +40769 61939312 956 +40770 61940268 926 +40771 61941194 968 +40772 61942162 956 +40773 61943118 932 +40774 61944050 1058 +40775 61945108 926 +40776 61946034 950 +40777 61946984 1004 +40778 61947988 1016 +40779 61949004 920 +40780 61949924 932 +40781 61950856 926 +40782 61951782 1028 +40783 61952810 926 +40784 61953736 956 +40785 61954692 914 +40786 61955606 932 +40787 61956538 926 +40788 61957464 956 +40789 61958420 914 +40790 61959334 932 +40791 61960266 926 +40792 61961192 956 +40793 61962148 914 +40794 61963062 932 +40795 61963994 926 +40796 61964920 956 +40797 61965876 914 +40798 61966790 932 +40799 61967722 926 +40800 61968648 956 +40801 61969604 914 +40802 61970518 932 +40803 61971450 974 +40804 61972424 920 +40805 61973344 920 +40806 61974264 926 +40807 61975190 920 +40808 61976110 944 +40809 61977054 920 +40810 61977974 1034 +40811 61979008 1034 +40812 61980042 1034 +40813 61981076 872 +40814 61981948 914 +40815 61982862 932 +40816 61983794 932 +40817 61984726 914 +40818 61985640 914 +40819 61986554 920 +40820 61987474 1034 +40821 61988508 1034 +40822 61989542 1034 +40823 61990576 1034 +40824 61991610 1034 +40825 61992644 1034 +40826 61993678 1034 +40827 61994712 1034 +40828 61995746 1034 +40829 61996780 1034 +40830 61997814 188 +40831 61998002 230 +40832 61998232 230 +40833 61998462 230 +40834 61998692 230 +40835 61998922 230 +40836 61999152 230 +40837 61999382 230 +40838 61999612 230 +40839 61999842 230 +40840 62000072 230 +40841 62000302 230 +40842 62000532 188 +40843 62000720 230 +40844 62000950 230 +40845 62001180 230 +40846 62001410 230 +40847 62001640 230 +40848 62001870 230 +40849 62002100 188 +40850 62002288 230 +40851 62002518 230 +40852 62002748 230 +40853 62002978 188 +40854 62003166 188 +40855 62003354 188 +40856 62003542 188 +40857 62003730 230 +40858 62003960 182 +40859 62004142 230 +40860 62004372 230 +40861 62004602 230 +40862 62004832 230 +40863 62005062 230 +40864 62005292 230 +40865 62005522 230 +40866 62005752 230 +40867 62005982 230 +40868 62006212 176 +40869 62006388 230 +40870 62006618 230 +40871 62006848 230 +40872 62007078 230 +40873 62007308 182 +40874 62007490 230 +40875 62007720 182 +40876 62007902 230 +40877 62008132 230 +40878 62008362 230 +40879 62008592 182 +40880 62008774 188 +40881 62008962 188 +40882 62009150 188 +40883 62009338 248 +40884 62009586 230 +40885 62009816 230 +40886 62010046 248 +40887 62010294 230 +40888 62010524 230 +40889 62010754 248 +40890 62011002 230 +40891 62011232 230 +40892 62011462 248 +40893 62011710 230 +40894 62011940 230 +40895 62012170 230 +40896 62012400 248 +40897 62012648 230 +40898 62012878 248 +40899 62013126 230 +40900 62013356 230 +40901 62013586 248 +40902 62013834 230 +40903 62014064 230 +40904 62014294 248 +40905 62014542 230 +40906 62014772 230 +40907 62015002 248 +40908 62015250 230 +40909 62015480 230 +40910 62015710 230 +40911 62015940 248 +40912 62016188 230 +40913 62016418 434 +40914 62016852 1652 +40915 62018504 920 +40916 62019424 890 +40917 62020314 512 +40918 62020826 500 +40919 62021326 494 +40920 62021820 494 +40921 62022314 1100 +40922 62023414 32 +40923 62023446 1814 +40924 62025260 452 +40925 62025712 116 +40926 62025828 488 +40927 62026316 134 +40928 62026450 158 +40929 62026608 614 +40930 62027222 158 +40931 62027380 614 +40932 62027994 158 +40933 62028152 614 +40934 62028766 158 +40935 62028924 614 +40936 62029538 350 +40937 62029888 2258 +40938 62032146 584 +40939 62032730 584 +40940 62033314 1304 +40941 62034618 698 +40942 62035316 11929 +40943 62047245 11929 +40944 62059174 11929 +40945 62071103 11929 +40946 62083032 11929 +40947 62094961 1460 +40948 62096421 260 +40949 62096681 1076 +40950 62097757 842 +40951 62098599 4490 +40952 62103089 2234 +40953 62105323 50 +40954 62105373 422 +40955 62105795 416 +40956 62106211 1118 +40957 62107329 2078 +40958 62109407 1682 +40959 62111089 2090 +40960 62113179 1736 +40961 62114915 1712 +40962 62116627 1286 +40963 62117913 2048 +40964 62119961 2048 +40965 62122009 4537 +40966 62126546 1046 +40967 62127592 2798 +40968 62130390 2798 +40969 62133188 740 +40970 62133928 986 +40971 62134914 74 +40972 62134988 1916 +40973 62136904 1694 +40974 62138598 1274 +40975 62139872 1232 +40976 62141104 842 +40977 62141946 4484 +40978 62146430 2240 +40979 62148670 50 +40980 62148720 842 +40981 62149562 4484 +40982 62154046 2240 +40983 62156286 50 +40984 62156336 2240 +40985 62158576 50 +40986 62158626 50 +40987 62158676 842 +40988 62159518 4466 +40989 62163984 2240 +40990 62166224 842 +40991 62167066 4460 +40992 62171526 2240 +40993 62173766 50 +40994 62173816 842 +40995 62174658 4412 +40996 62179070 2240 +40997 62181310 50 +40998 62181360 3020 +40999 62184380 3020 +41000 62187400 3020 +41001 62190420 3020 +41002 62193440 3020 +41003 62196460 3020 +41004 62199480 2048 +41005 62201528 1640 +41006 62203168 1628 +41007 62204796 1640 +41008 62206436 1640 +41009 62208076 1856 +41010 62209932 1856 +41011 62211788 830 +41012 62212618 830 +41013 62213448 15397 +41014 62228845 722 +41015 62229567 494 +41016 62230061 2300 +41017 62232361 2132 +41018 62234493 1508 +41019 62236001 974 +41020 62236975 1574 +41021 62238549 1568 +41022 62240117 1562 +41023 62241679 1574 +41024 62243253 44 +41025 62243297 44 +41026 62243341 1010 +41027 62244351 1016 +41028 62245367 1262 +41029 62246629 188 +41030 62246817 188 +41031 62247005 188 +41032 62247193 188 +41033 62247381 188 +41034 62247569 188 +41035 62247757 182 +41036 62247939 188 +41037 62248127 188 +41038 62248315 188 +41039 62248503 1628 +41040 62250131 938 +41041 62251069 938 +41042 62252007 938 +41043 62252945 938 +41044 62253883 938 +41045 62254821 938 +41046 62255759 950 +41047 62256709 1766 +41048 62258475 1766 +41049 62260241 1766 +41050 62262007 2066 +41051 62264073 62 +41052 62264135 1202 +41053 62265337 1202 +41054 62266539 2348 +41055 62268887 1544 +41056 62270431 896 +41057 62271327 710 +41058 62272037 332 +41059 62272369 854 +41060 62273223 1520 +41061 62274743 590 +41062 62275333 674 +41063 62276007 2324 +41064 62278331 662 +41065 62278993 878 +41066 62279871 2174 +41067 62282045 770 +41068 62282815 866 +41069 62283681 1784 +41070 62285465 644 +41071 62286109 650 +41072 62286759 944 +41073 62287703 680 +41074 62288383 530 +41075 62288913 1340 +41076 62290253 722 +41077 62290975 782 +41078 62291757 1406 +41079 62293163 602 +41080 62293765 872 +41081 62294637 1154 +41082 62295791 530 +41083 62296321 812 +41084 62297133 1274 +41085 62298407 470 +41086 62298877 392 +41087 62299269 1022 +41088 62300291 308 +41089 62300599 566 +41090 62301165 1166 +41091 62302331 320 +41092 62302651 1244 +41093 62303895 494 +41094 62304389 824 +41095 62305213 158 +41096 62305371 704 +41097 62306075 386 +41098 62306461 1190 +41099 62307651 638 +41100 62308289 1310 +41101 62309599 326 +41102 62309925 1100 +41103 62311025 554 +41104 62311579 1346 +41105 62312925 368 +41106 62313293 1118 +41107 62314411 848 +41108 62315259 1568 +41109 62316827 434 +41110 62317261 1106 +41111 62318367 1244 +41112 62319611 1868 +41113 62321479 1040 +41114 62322519 1364 +41115 62323883 962 +41116 62324845 1112 +41117 62325957 608 +41118 62326565 1136 +41119 62327701 824 +41120 62328525 1070 +41121 62329595 386 +41122 62329981 548 +41123 62330529 710 +41124 62331239 836 +41125 62332075 764 +41126 62332839 908 +41127 62333747 1226 +41128 62334973 818 +41129 62335791 536 +41130 62336327 1220 +41131 62337547 1202 +41132 62338749 812 +41133 62339561 812 +41134 62340373 1910 +41135 62342283 1568 +41136 62343851 1910 +41137 62345761 1568 +41138 62347329 1910 +41139 62349239 1568 +41140 62350807 1910 +41141 62352717 1568 +41142 62354285 2366 +41143 62356651 2360 +41144 62359011 2756 +41145 62361767 2744 +41146 62364511 1814 +41147 62366325 1814 +41148 62368139 1814 +41149 62369953 572 +41150 62370525 542 +41151 62371067 584 +41152 62371651 50 +41153 62371701 152 +41154 62371853 152 +41155 62372005 152 +41156 62372157 1814 +41157 62373971 1814 +41158 62375785 1814 +41159 62377599 1502 +41160 62379101 1514 +41161 62380615 704 +41162 62381319 1040 +41163 62382359 1034 +41164 62383393 614 +41165 62384007 1424 +41166 62385431 620 +41167 62386051 782 +41168 62386833 536 +41169 62387369 560 +41170 62387929 4082 +41171 62392011 4040 +41172 62396051 4076 +41173 62400127 4070 +41174 62404197 4034 +41175 62408231 4076 +41176 62412307 740 +41177 62413047 740 +41178 62413787 614 +41179 62414401 614 +41180 62415015 614 +41181 62415629 620 +41182 62416249 614 +41183 62416863 620 +41184 62417483 614 +41185 62418097 1352 +41186 62419449 2330 +41187 62421779 2228 +41188 62424007 2300 +41189 62426307 2306 +41190 62428613 2330 +41191 62430943 2228 +41192 62433171 2300 +41193 62435471 2306 +41194 62437777 1868 +41195 62439645 1868 +41196 62441513 902 +41197 62442415 866 +41198 62443281 1268 +41199 62444549 1268 +41200 62445817 386 +41201 62446203 386 +41202 62446589 386 +41203 62446975 1064 +41204 62448039 1064 +41205 62449103 422 +41206 62449525 566 +41207 62450091 458 +41208 62450549 500 +41209 62451049 458 +41210 62451507 434 +41211 62451941 518 +41212 62452459 422 +41213 62452881 566 +41214 62453447 458 +41215 62453905 500 +41216 62454405 458 +41217 62454863 434 +41218 62455297 518 +41219 62455815 2660 +41220 62458475 170 +41221 62458645 446 +41222 62459091 374 +41223 62459465 638 +41224 62460103 614 +41225 62460717 608 +41226 62461325 608 +41227 62461933 596 +41228 62462529 494 +41229 62463023 644 +41230 62463667 572 +41231 62464239 596 +41232 62464835 500 +41233 62465335 650 +41234 62465985 566 +41235 62466551 1538 +41236 62468089 1352 +41237 62469441 1436 +41238 62470877 602 +41239 62471479 776 +41240 62472255 692 +41241 62472947 1436 +41242 62474383 1778 +41243 62476161 440 +41244 62476601 428 +41245 62477029 650 +41246 62477679 650 +41247 62478329 650 +41248 62478979 1220 +41249 62480199 1220 +41250 62481419 1220 +41251 62482639 2120 +41252 62484759 632 +41253 62485391 590 +41254 62485981 74 +41255 62486055 1406 +41256 62487461 950 +41257 62488411 2258 +41258 62490669 2258 +41259 62492927 1292 +41260 62494219 1436 +41261 62495655 620 +41262 62496275 944 +41263 62497219 1214 +41264 62498433 824 +41265 62499257 1664 +41266 62500921 2318 +41267 62503239 2816 +41268 62506055 2816 +41269 62508871 1364 +41270 62510235 830 +41271 62511065 926 +41272 62511991 920 +41273 62512911 3476 +41274 62516387 3470 +41275 62519857 908 +41276 62520765 908 +41277 62521673 908 +41278 62522581 1238 +41279 62523819 1202 +41280 62525021 2888 +41281 62527909 2888 +41282 62530797 2324 +41283 62533121 2324 +41284 62535445 908 +41285 62536353 2630 +41286 62538983 2636 +41287 62541619 2150 +41288 62543769 632 +41289 62544401 632 +41290 62545033 632 +41291 62545665 632 +41292 62546297 632 +41293 62546929 2282 +41294 62549211 1022 +41295 62550233 1082 +41296 62551315 2258 +41297 62553573 776 +41298 62554349 560 +41299 62554909 476 +41300 62555385 482 +41301 62555867 1976 +41302 62557843 1976 +41303 62559819 1994 +41304 62561813 2174 +41305 62563987 2174 +41306 62566161 710 +41307 62566871 416 +41308 62567287 374 +41309 62567661 584 +41310 62568245 602 +41311 62568847 1910 +41312 62570757 1304 +41313 62572061 1304 +41314 62573365 1328 +41315 62574693 1346 +41316 62576039 1328 +41317 62577367 1328 +41318 62578695 1322 +41319 62580017 1334 +41320 62581351 1334 +41321 62582685 1904 +41322 62584589 2204 +41323 62586793 236 +41324 62587029 872 +41325 62587901 872 +41326 62588773 440 +41327 62589213 440 +41328 62589653 74 +41329 62589727 74 +41330 62589801 440 +41331 62590241 446 +41332 62590687 1400 +41333 62592087 1316 +41334 62593403 8030 +41335 62601433 6992 +41336 62608425 440 +41337 62608865 3356 +41338 62612221 6206 +41339 62618427 2042 +41340 62620469 2756 +41341 62623225 2618 +41342 62625843 2432 +41343 62628275 2432 +41344 62630707 2432 +41345 62633139 2432 +41346 62635571 1208 +41347 62636779 1208 +41348 62637987 1160 +41349 62639147 1160 +41350 62640307 1160 +41351 62641467 1160 +41352 62642627 626 +41353 62643253 656 +41354 62643909 1928 +41355 62645837 1712 +41356 62647549 1712 +41357 62649261 782 +41358 62650043 794 +41359 62650837 800 +41360 62651637 800 +41361 62652437 800 +41362 62653237 2846 +41363 62656083 2834 +41364 62658917 2108 +41365 62661025 2102 +41366 62663127 2840 +41367 62665967 2840 +41368 62668807 2840 +41369 62671647 2840 +41370 62674487 1214 +41371 62675701 1196 +41372 62676897 728 +41373 62677625 4358 +41374 62681983 4358 +41375 62686341 4358 +41376 62690699 4358 +41377 62695057 4358 +41378 62699415 4358 +41379 62703773 3878 +41380 62707651 3878 +41381 62711529 2060 +41382 62713589 1298 +41383 62714887 986 +41384 62715873 98 +41385 62715971 980 +41386 62716951 572 +41387 62717523 452 +41388 62717975 854 +41389 62718829 362 +41390 62719191 368 +41391 62719559 68 +41392 62719627 1424 +41393 62721051 1424 +41394 62722475 596 +41395 62723071 1628 +41396 62724699 1118 +41397 62725817 770 +41398 62726587 908 +41399 62727495 938 +41400 62728433 2564 +41401 62730997 2564 +41402 62733561 434 +41403 62733995 434 +41404 62734429 2636 +41405 62737065 392 +41406 62737457 434 +41407 62737891 434 +41408 62738325 434 +41409 62738759 572 +41410 62739331 518 +41411 62739849 4160 +41412 62744009 950 +41413 62744959 3080 +41414 62748039 2072 +41415 62750111 2066 +41416 62752177 1022 +41417 62753199 2540 +41418 62755739 2558 +41419 62758297 2882 +41420 62761179 896 +41421 62762075 896 +41422 62762971 896 +41423 62763867 896 +41424 62764763 458 +41425 62765221 1154 +41426 62766375 452 +41427 62766827 3602 +41428 62770429 3602 +41429 62774031 2269 +41430 62776300 3200 +41431 62779500 3200 +41432 62782700 2269 +41433 62784969 1574 +41434 62786543 1664 +41435 62788207 1688 +41436 62789895 1664 +41437 62791559 1688 +41438 62793247 1664 +41439 62794911 1688 +41440 62796599 2042 +41441 62798641 2042 +41442 62800683 2042 +41443 62802725 2042 +41444 62804767 1712 +41445 62806479 1712 +41446 62808191 68 +41447 62808259 878 +41448 62809137 1664 +41449 62810801 1688 +41450 62812489 650 +41451 62813139 1982 +41452 62815121 1898 +41453 62817019 1292 +41454 62818311 680 +41455 62818991 1280 +41456 62820271 2678 +41457 62822949 2672 +41458 62825621 824 +41459 62826445 824 +41460 62827269 3086 +41461 62830355 3086 +41462 62833441 1598 +41463 62835039 1478 +41464 62836517 3770 +41465 62840287 920 +41466 62841207 2300 +41467 62843507 1430 +41468 62844937 482 +41469 62845419 1310 +41470 62846729 1484 +41471 62848213 380 +41472 62848593 1106 +41473 62849699 614 +41474 62850313 2780 +41475 62853093 3145 +41476 62856238 1718 +41477 62857956 1136 +41478 62859092 2918 +41479 62862010 614 +41480 62862624 1154 +41481 62863778 2342 +41482 62866120 2186 +41483 62868306 1724 +41484 62870030 1154 +41485 62871184 1496 +41486 62872680 1418 +41487 62874098 1148 +41488 62875246 1022 +41489 62876268 956 +41490 62877224 1226 +41491 62878450 854 +41492 62879304 1220 +41493 62880524 1226 +41494 62881750 1034 +41495 62882784 908 +41496 62883692 938 +41497 62884630 1052 +41498 62885682 782 +41499 62886464 638 +41500 62887102 818 +41501 62887920 878 +41502 62888798 806 +41503 62889604 818 +41504 62890422 656 +41505 62891078 578 +41506 62891656 668 +41507 62892324 764 +41508 62893088 656 +41509 62893744 716 +41510 62894460 740 +41511 62895200 614 +41512 62895814 536 +41513 62896350 464 +41514 62896814 308 +41515 62897122 554 +41516 62897676 842 +41517 62898518 1610 +41518 62900128 1478 +41519 62901606 3770 +41520 62905376 920 +41521 62906296 2300 +41522 62908596 1430 +41523 62910026 482 +41524 62910508 1310 +41525 62911818 1484 +41526 62913302 380 +41527 62913682 1106 +41528 62914788 842 +41529 62915630 614 +41530 62916244 2780 +41531 62919024 3145 +41532 62922169 1718 +41533 62923887 1136 +41534 62925023 2918 +41535 62927941 614 +41536 62928555 1154 +41537 62929709 2342 +41538 62932051 2186 +41539 62934237 1724 +41540 62935961 1154 +41541 62937115 1496 +41542 62938611 1418 +41543 62940029 1148 +41544 62941177 1022 +41545 62942199 956 +41546 62943155 1226 +41547 62944381 854 +41548 62945235 1220 +41549 62946455 1226 +41550 62947681 1034 +41551 62948715 908 +41552 62949623 938 +41553 62950561 1052 +41554 62951613 782 +41555 62952395 638 +41556 62953033 818 +41557 62953851 878 +41558 62954729 806 +41559 62955535 818 +41560 62956353 656 +41561 62957009 578 +41562 62957587 668 +41563 62958255 764 +41564 62959019 656 +41565 62959675 716 +41566 62960391 740 +41567 62961131 614 +41568 62961745 536 +41569 62962281 464 +41570 62962745 308 +41571 62963053 554 +41572 62963607 956 +41573 62964563 956 +41574 62965519 2252 +41575 62967771 2162 +41576 62969933 2174 +41577 62972107 2126 +41578 62974233 2144 +41579 62976377 2162 +41580 62978539 1064 +41581 62979603 464 +41582 62980067 470 +41583 62980537 518 +41584 62981055 518 +41585 62981573 764 +41586 62982337 86 +41587 62982423 656 +41588 62983079 920 +41589 62983999 1004 +41590 62985003 1100 +41591 62986103 860 +41592 62986963 806 +41593 62987769 758 +41594 62988527 1280 +41595 62989807 1316 +41596 62991123 482 +41597 62991605 590 +41598 62992195 500 +41599 62992695 602 +41600 62993297 506 +41601 62993803 986 +41602 62994789 230 +41603 62995019 980 +41604 62995999 152 +41605 62996151 338 +41606 62996489 764 +41607 62997253 782 +41608 62998035 1556 +41609 62999591 1094 +41610 63000685 452 +41611 63001137 1508 +41612 63002645 2276 +41613 63004921 1892 +41614 63006813 1604 +41615 63008417 1292 +41616 63009709 1100 +41617 63010809 1112 +41618 63011921 1208 +41619 63013129 992 +41620 63014121 1142 +41621 63015263 776 +41622 63016039 1232 +41623 63017271 1178 +41624 63018449 932 +41625 63019381 1076 +41626 63020457 1070 +41627 63021527 1046 +41628 63022573 926 +41629 63023499 608 +41630 63024107 842 +41631 63024949 704 +41632 63025653 806 +41633 63026459 782 +41634 63027241 896 +41635 63028137 344 +41636 63028481 608 +41637 63029089 572 +41638 63029661 764 +41639 63030425 746 +41640 63031171 602 +41641 63031773 728 +41642 63032501 518 +41643 63033019 530 +41644 63033549 404 +41645 63033953 308 +41646 63034261 314 +41647 63034575 572 +41648 63035147 554 +41649 63035701 398 +41650 63036099 296 +41651 63036395 974 +41652 63037369 554 +41653 63037923 1142 +41654 63039065 1172 +41655 63040237 1286 +41656 63041523 1136 +41657 63042659 1142 +41658 63043801 3518 +41659 63047319 2804 +41660 63050123 1172 +41661 63051295 1232 +41662 63052527 1208 +41663 63053735 1166 +41664 63054901 440 +41665 63055341 860 +41666 63056201 440 +41667 63056641 854 +41668 63057495 440 +41669 63057935 860 +41670 63058795 440 +41671 63059235 854 +41672 63060089 440 +41673 63060529 860 +41674 63061389 440 +41675 63061829 854 +41676 63062683 440 +41677 63063123 860 +41678 63063983 440 +41679 63064423 854 +41680 63065277 440 +41681 63065717 860 +41682 63066577 440 +41683 63067017 854 +41684 63067871 440 +41685 63068311 860 +41686 63069171 440 +41687 63069611 854 +41688 63070465 512 +41689 63070977 512 +41690 63071489 800 +41691 63072289 794 +41692 63073083 2312 +41693 63075395 2318 +41694 63077713 1520 +41695 63079233 806 +41696 63080039 494 +41697 63080533 1382 +41698 63081915 494 +41699 63082409 1382 +41700 63083791 494 +41701 63084285 1382 +41702 63085667 62 +41703 63085729 62 +41704 63085791 440 +41705 63086231 422 +41706 63086653 3410 +41707 63090063 614 +41708 63090677 626 +41709 63091303 776 +41710 63092079 746 +41711 63092825 1628 +41712 63094453 1628 +41713 63096081 1802 +41714 63097883 1010 +41715 63098893 2318 +41716 63101211 2318 +41717 63103529 2318 +41718 63105847 2318 +41719 63108165 2318 +41720 63110483 2318 +41721 63112801 2318 +41722 63115119 2318 +41723 63117437 2318 +41724 63119755 2318 +41725 63122073 2318 +41726 63124391 2318 +41727 63126709 1010 +41728 63127719 1010 +41729 63128729 1010 +41730 63129739 1010 +41731 63130749 1010 +41732 63131759 1010 +41733 63132769 1010 +41734 63133779 1010 +41735 63134789 1010 +41736 63135799 1010 +41737 63136809 1010 +41738 63137819 986 +41739 63138805 812 +41740 63139617 2360 +41741 63141977 806 +41742 63142783 2360 +41743 63145143 1634 +41744 63146777 1034 +41745 63147811 1034 +41746 63148845 812 +41747 63149657 806 +41748 63150463 806 +41749 63151269 806 +41750 63152075 1904 +41751 63153979 1886 +41752 63155865 3434 +41753 63159299 524 +41754 63159823 2150 +41755 63161973 2150 +41756 63164123 374 +41757 63164497 428 +41758 63164925 422 +41759 63165347 428 +41760 63165775 422 +41761 63166197 410 +41762 63166607 434 +41763 63167041 434 +41764 63167475 434 +41765 63167909 428 +41766 63168337 440 +41767 63168777 434 +41768 63169211 2792 +41769 63172003 2486 +41770 63174489 1592 +41771 63176081 1592 +41772 63177673 590 +41773 63178263 968 +41774 63179231 740 +41775 63179971 770 +41776 63180741 542 +41777 63181283 1454 +41778 63182737 1262 +41779 63183999 2882 +41780 63186881 2888 +41781 63189769 2888 +41782 63192657 1556 +41783 63194213 1502 +41784 63195715 1502 +41785 63197217 848 +41786 63198065 926 +41787 63198991 926 +41788 63199917 878 +41789 63200795 884 +41790 63201679 1826 +41791 63203505 1730 +41792 63205235 1730 +41793 63206965 1970 +41794 63208935 1970 +41795 63210905 3122 +41796 63214027 3038 +41797 63217065 3128 +41798 63220193 3122 +41799 63223315 3038 +41800 63226353 3128 +41801 63229481 932 +41802 63230413 1502 +41803 63231915 1502 +41804 63233417 1502 +41805 63234919 1502 +41806 63236421 1502 +41807 63237923 1502 +41808 63239425 1502 +41809 63240927 1502 +41810 63242429 2504 +41811 63244933 2504 +41812 63247437 2504 +41813 63249941 2504 +41814 63252445 566 +41815 63253011 50 +41816 63253061 926 +41817 63253987 104 +41818 63254091 2528 +41819 63256619 806 +41820 63257425 2528 +41821 63259953 806 +41822 63260759 2528 +41823 63263287 806 +41824 63264093 2528 +41825 63266621 806 +41826 63267427 2528 +41827 63269955 806 +41828 63270761 2528 +41829 63273289 806 +41830 63274095 2528 +41831 63276623 806 +41832 63277429 2528 +41833 63279957 806 +41834 63280763 2954 +41835 63283717 2954 +41836 63286671 2954 +41837 63289625 2846 +41838 63292471 3008 +41839 63295479 3008 +41840 63298487 3008 +41841 63301495 3008 +41842 63304503 518 +41843 63305021 38 +41844 63305059 98 +41845 63305157 2612 +41846 63307769 56 +41847 63307825 74 +41848 63307899 2570 +41849 63310469 836 +41850 63311305 1436 +41851 63312741 1460 +41852 63314201 1460 +41853 63315661 1064 +41854 63316725 1118 +41855 63317843 404 +41856 63318247 404 +41857 63318651 1526 +41858 63320177 1514 +41859 63321691 1550 +41860 63323241 1574 +41861 63324815 1520 +41862 63326335 1562 +41863 63327897 1808 +41864 63329705 1778 +41865 63331483 2420 +41866 63333903 188 +41867 63334091 188 +41868 63334279 188 +41869 63334467 188 +41870 63334655 5072 +41871 63339727 980 +41872 63340707 56 +41873 63340763 974 +41874 63341737 44 +41875 63341781 386 +41876 63342167 380 +41877 63342547 5630 +41878 63348177 788 +41879 63348965 854 +41880 63349819 854 +41881 63350673 854 +41882 63351527 854 +41883 63352381 854 +41884 63353235 854 +41885 63354089 716 +41886 63354805 644 +41887 63355449 1766 +41888 63357215 2084 +41889 63359299 1982 +41890 63361281 2090 +41891 63363371 2066 +41892 63365437 1934 +41893 63367371 1970 +41894 63369341 2060 +41895 63371401 2060 +41896 63373461 668 +41897 63374129 5570 +41898 63379699 380 +41899 63380079 560 +41900 63380639 542 +41901 63381181 824 +41902 63382005 512 +41903 63382517 548 +41904 63383065 506 +41905 63383571 548 +41906 63384119 1718 +41907 63385837 1718 +41908 63387555 1724 +41909 63389279 1724 +41910 63391003 6338 +41911 63397341 1916 +41912 63399257 902 +41913 63400159 2594 +41914 63402753 2336 +41915 63405089 3421 +41916 63408510 5972 +41917 63414482 2594 +41918 63417076 2336 +41919 63419412 3373 +41920 63422785 5864 +41921 63428649 4880 +41922 63433529 1081 +41923 63434610 1454 +41924 63436064 1448 +41925 63437512 1412 +41926 63438924 1412 +41927 63440336 1394 +41928 63441730 758 +41929 63442488 1910 +41930 63444398 860 +41931 63445258 860 +41932 63446118 1034 +41933 63447152 1424 +41934 63448576 1424 +41935 63450000 3728 +41936 63453728 1946 +41937 63455674 1322 +41938 63456996 1658 +41939 63458654 1688 +41940 63460342 1676 +41941 63462018 1658 +41942 63463676 1910 +41943 63465586 1910 +41944 63467496 296 +41945 63467792 296 +41946 63468088 296 +41947 63468384 734 +41948 63469118 734 +41949 63469852 56 +41950 63469908 56 +41951 63469964 1928 +41952 63471892 1928 +41953 63473820 2042 +41954 63475862 1928 +41955 63477790 1928 +41956 63479718 3278 +41957 63482996 2726 +41958 63485722 2366 +41959 63488088 1321 +41960 63489409 7142 +41961 63496551 428 +41962 63496979 494 +41963 63497473 560 +41964 63498033 404 +41965 63498437 4892 +41966 63503329 116 +41967 63503445 2624 +41968 63506069 2624 +41969 63508693 2630 +41970 63511323 2630 +41971 63513953 2258 +41972 63516211 914 +41973 63517125 914 +41974 63518039 1880 +41975 63519919 1376 +41976 63521295 1814 +41977 63523109 1802 +41978 63524911 980 +41979 63525891 1058 +41980 63526949 1046 +41981 63527995 740 +41982 63528735 1298 +41983 63530033 1850 +41984 63531883 1850 +41985 63533733 1022 +41986 63534755 1022 +41987 63535777 1022 +41988 63536799 1022 +41989 63537821 2372 +41990 63540193 2114 +41991 63542307 2108 +41992 63544415 2222 +41993 63546637 62 +41994 63546699 2222 +41995 63548921 2222 +41996 63551143 44 +41997 63551187 1004 +41998 63552191 1682 +41999 63553873 1694 +42000 63555567 38 +42001 63555605 38 +42002 63555643 404 +42003 63556047 2570 +42004 63558617 2522 +42005 63561139 2612 +42006 63563751 2594 +42007 63566345 2474 +42008 63568819 2576 +42009 63571395 2618 +42010 63574013 2630 +42011 63576643 794 +42012 63577437 794 +42013 63578231 794 +42014 63579025 1226 +42015 63580251 1196 +42016 63581447 1634 +42017 63583081 1688 +42018 63584769 1634 +42019 63586403 1634 +42020 63588037 1634 +42021 63589671 1634 +42022 63591305 878 +42023 63592183 1022 +42024 63593205 2018 +42025 63595223 1982 +42026 63597205 830 +42027 63598035 470 +42028 63598505 830 +42029 63599335 470 +42030 63599805 1592 +42031 63601397 1598 +42032 63602995 614 +42033 63603609 614 +42034 63604223 614 +42035 63604837 614 +42036 63605451 614 +42037 63606065 614 +42038 63606679 1022 +42039 63607701 464 +42040 63608165 938 +42041 63609103 1430 +42042 63610533 1088 +42043 63611621 2774 +42044 63614395 710 +42045 63615105 710 +42046 63615815 728 +42047 63616543 710 +42048 63617253 4196 +42049 63621449 188 +42050 63621637 188 +42051 63621825 188 +42052 63622013 188 +42053 63622201 902 +42054 63623103 1226 +42055 63624329 56 +42056 63624385 1532 +42057 63625917 884 +42058 63626801 812 +42059 63627613 1268 +42060 63628881 1268 +42061 63630149 1268 +42062 63631417 1268 +42063 63632685 1286 +42064 63633971 1286 +42065 63635257 938 +42066 63636195 938 +42067 63637133 1400 +42068 63638533 2438 +42069 63640971 1334 +42070 63642305 638 +42071 63642943 812 +42072 63643755 818 +42073 63644573 404 +42074 63644977 3140 +42075 63648117 3140 +42076 63651257 566 +42077 63651823 1364 +42078 63653187 1034 +42079 63654221 3350 +42080 63657571 3050 +42081 63660621 884 +42082 63661505 812 +42083 63662317 1418 +42084 63663735 818 +42085 63664553 1916 +42086 63666469 1952 +42087 63668421 818 +42088 63669239 2264 +42089 63671503 716 +42090 63672219 704 +42091 63672923 800 +42092 63673723 710 +42093 63674433 1328 +42094 63675761 14545 +42095 63690306 14677 +42096 63704983 9865 +42097 63714848 1052 +42098 63715900 1022 +42099 63716922 1016 +42100 63717938 1010 +42101 63718948 1496 +42102 63720444 1496 +42103 63721940 3452 +42104 63725392 3440 +42105 63728832 3452 +42106 63732284 3470 +42107 63735754 3452 +42108 63739206 3500 +42109 63742706 998 +42110 63743704 1004 +42111 63744708 836 +42112 63745544 836 +42113 63746380 1682 +42114 63748062 2156 +42115 63750218 2156 +42116 63752374 914 +42117 63753288 548 +42118 63753836 488 +42119 63754324 554 +42120 63754878 482 +42121 63755360 668 +42122 63756028 578 +42123 63756606 584 +42124 63757190 608 +42125 63757798 1340 +42126 63759138 1364 +42127 63760502 2000 +42128 63762502 2054 +42129 63764556 806 +42130 63765362 818 +42131 63766180 1562 +42132 63767742 4622 +42133 63772364 4628 +42134 63776992 1592 +42135 63778584 1592 +42136 63780176 1562 +42137 63781738 2654 +42138 63784392 1562 +42139 63785954 2654 +42140 63788608 1562 +42141 63790170 2654 +42142 63792824 1562 +42143 63794386 2654 +42144 63797040 1562 +42145 63798602 2654 +42146 63801256 1562 +42147 63802818 2654 +42148 63805472 1562 +42149 63807034 2654 +42150 63809688 1562 +42151 63811250 2654 +42152 63813904 1562 +42153 63815466 2654 +42154 63818120 1562 +42155 63819682 2654 +42156 63822336 1562 +42157 63823898 2654 +42158 63826552 1562 +42159 63828114 2654 +42160 63830768 1550 +42161 63832318 80 +42162 63832398 1550 +42163 63833948 80 +42164 63834028 1550 +42165 63835578 80 +42166 63835658 1118 +42167 63836776 800 +42168 63837576 4256 +42169 63841832 734 +42170 63842566 734 +42171 63843300 2132 +42172 63845432 692 +42173 63846124 692 +42174 63846816 1286 +42175 63848102 62 +42176 63848164 1718 +42177 63849882 1718 +42178 63851600 1394 +42179 63852994 230 +42180 63853224 3500 +42181 63856724 3506 +42182 63860230 6170 +42183 63866400 1034 +42184 63867434 1172 +42185 63868606 158 +42186 63868764 1484 +42187 63870248 2396 +42188 63872644 2174 +42189 63874818 1784 +42190 63876602 1358 +42191 63877960 1412 +42192 63879372 1268 +42193 63880640 1160 +42194 63881800 1286 +42195 63883086 1028 +42196 63884114 1256 +42197 63885370 788 +42198 63886158 1226 +42199 63887384 1214 +42200 63888598 938 +42201 63889536 1130 +42202 63890666 1004 +42203 63891670 1064 +42204 63892734 962 +42205 63893696 608 +42206 63894304 842 +42207 63895146 380 +42208 63895526 722 +42209 63896248 806 +42210 63897054 818 +42211 63897872 890 +42212 63898762 428 +42213 63899190 578 +42214 63899768 638 +42215 63900406 788 +42216 63901194 668 +42217 63901862 656 +42218 63902518 740 +42219 63903258 608 +42220 63903866 524 +42221 63904390 422 +42222 63904812 308 +42223 63905120 320 +42224 63905440 638 +42225 63906078 554 +42226 63906632 752 +42227 63907384 1286 +42228 63908670 506 +42229 63909176 374 +42230 63909550 1322 +42231 63910872 386 +42232 63911258 1358 +42233 63912616 1580 +42234 63914196 350 +42235 63914546 602 +42236 63915148 1154 +42237 63916302 1370 +42238 63917672 1874 +42239 63919546 1130 +42240 63920676 338 +42241 63921014 1226 +42242 63922240 1082 +42243 63923322 584 +42244 63923906 908 +42245 63924814 674 +42246 63925488 908 +42247 63926396 824 +42248 63927220 776 +42249 63927996 806 +42250 63928802 872 +42251 63929674 866 +42252 63930540 626 +42253 63931166 506 +42254 63931672 782 +42255 63932454 860 +42256 63933314 758 +42257 63934072 428 +42258 63934500 1244 +42259 63935744 854 +42260 63936598 260 +42261 63936858 5150 +42262 63942008 1202 +42263 63943210 920 +42264 63944130 1298 +42265 63945428 3224 +42266 63948652 3224 +42267 63951876 3224 +42268 63955100 3224 +42269 63958324 1898 +42270 63960222 1898 +42271 63962120 1898 +42272 63964018 1898 +42273 63965916 1898 +42274 63967814 2114 +42275 63969928 2132 +42276 63972060 2336 +42277 63974396 902 +42278 63975298 776 +42279 63976074 776 +42280 63976850 2240 +42281 63979090 548 +42282 63979638 548 +42283 63980186 482 +42284 63980668 476 +42285 63981144 1058 +42286 63982202 1058 +42287 63983260 1058 +42288 63984318 1058 +42289 63985376 1058 +42290 63986434 1058 +42291 63987492 68 +42292 63987560 68 +42293 63987628 68 +42294 63987696 68 +42295 63987764 1550 +42296 63989314 1550 +42297 63990864 3470 +42298 63994334 3470 +42299 63997804 1322 +42300 63999126 1316 +42301 64000442 614 +42302 64001056 560 +42303 64001616 2312 +42304 64003928 1538 +42305 64005466 104 +42306 64005570 554 +42307 64006124 560 +42308 64006684 3266 +42309 64009950 3266 +42310 64013216 3260 +42311 64016476 3260 +42312 64019736 410 +42313 64020146 1286 +42314 64021432 3038 +42315 64024470 602 +42316 64025072 428 +42317 64025500 872 +42318 64026372 98 +42319 64026470 728 +42320 64027198 68 +42321 64027266 728 +42322 64027994 68 +42323 64028062 1322 +42324 64029384 1322 +42325 64030706 1268 +42326 64031974 2336 +42327 64034310 2336 +42328 64036646 1034 +42329 64037680 1178 +42330 64038858 1130 +42331 64039988 1190 +42332 64041178 1130 +42333 64042308 1178 +42334 64043486 938 +42335 64044424 908 +42336 64045332 2642 +42337 64047974 2654 +42338 64050628 1388 +42339 64052016 1388 +42340 64053404 1850 +42341 64055254 2222 +42342 64057476 5246 +42343 64062722 5246 +42344 64067968 5246 +42345 64073214 5246 +42346 64078460 602 +42347 64079062 602 +42348 64079664 602 +42349 64080266 602 +42350 64080868 602 +42351 64081470 2204 +42352 64083674 2216 +42353 64085890 2570 +42354 64088460 1202 +42355 64089662 1196 +42356 64090858 938 +42357 64091796 992 +42358 64092788 938 +42359 64093726 992 +42360 64094718 938 +42361 64095656 992 +42362 64096648 986 +42363 64097634 152 +42364 64097786 728 +42365 64098514 734 +42366 64099248 962 +42367 64100210 740 +42368 64100950 764 +42369 64101714 1310 +42370 64103024 1316 +42371 64104340 1304 +42372 64105644 1304 +42373 64106948 1352 +42374 64108300 1352 +42375 64109652 2462 +42376 64112114 937 +42377 64113051 758 +42378 64113809 2294 +42379 64116103 494 +42380 64116597 734 +42381 64117331 2474 +42382 64119805 2516 +42383 64122321 2474 +42384 64124795 614 +42385 64125409 4004 +42386 64129413 1304 +42387 64130717 962 +42388 64131679 1424 +42389 64133103 2882 +42390 64135985 2060 +42391 64138045 2534 +42392 64140579 2468 +42393 64143047 752 +42394 64143799 734 +42395 64144533 1178 +42396 64145711 362 +42397 64146073 626 +42398 64146699 1154 +42399 64147853 896 +42400 64148749 3962 +42401 64152711 3026 +42402 64155737 656 +42403 64156393 50 +42404 64156443 656 +42405 64157099 38 +42406 64157137 1526 +42407 64158663 1526 +42408 64160189 2162 +42409 64162351 1820 +42410 64164171 1220 +42411 64165391 1220 +42412 64166611 3002 +42413 64169613 1958 +42414 64171571 1958 +42415 64173529 1958 +42416 64175487 1958 +42417 64177445 1652 +42418 64179097 1652 +42419 64180749 2468 +42420 64183217 2444 +42421 64185661 3026 +42422 64188687 3698 +42423 64192385 2006 +42424 64194391 1142 +42425 64195533 1142 +42426 64196675 1148 +42427 64197823 1712 +42428 64199535 1724 +42429 64201259 332 +42430 64201591 320 +42431 64201911 1760 +42432 64203671 1634 +42433 64205305 2750 +42434 64208055 1256 +42435 64209311 5300 +42436 64214611 5318 +42437 64219929 5456 +42438 64225385 5456 +42439 64230841 5456 +42440 64236297 5456 +42441 64241753 5456 +42442 64247209 5456 +42443 64252665 584 +42444 64253249 968 +42445 64254217 950 +42446 64255167 1094 +42447 64256261 1094 +42448 64257355 620 +42449 64257975 620 +42450 64258595 1706 +42451 64260301 1724 +42452 64262025 878 +42453 64262903 1076 +42454 64263979 1010 +42455 64264989 542 +42456 64265531 2840 +42457 64268371 50 +42458 64268421 2810 +42459 64271231 1754 +42460 64272985 398 +42461 64273383 674 +42462 64274057 638 +42463 64274695 4442 +42464 64279137 1958 +42465 64281095 1958 +42466 64283053 644 +42467 64283697 644 +42468 64284341 2522 +42469 64286863 2798 +42470 64289661 1754 +42471 64291415 6308 +42472 64297723 1976 +42473 64299699 494 +42474 64300193 854 +42475 64301047 716 +42476 64301763 884 +42477 64302647 764 +42478 64303411 704 +42479 64304115 854 +42480 64304969 710 +42481 64305679 854 +42482 64306533 818 +42483 64307351 566 +42484 64307917 416 +42485 64308333 770 +42486 64309103 830 +42487 64309933 770 +42488 64310703 530 +42489 64311233 614 +42490 64311847 500 +42491 64312347 350 +42492 64312697 398 +42493 64313095 356 +42494 64313451 1244 +42495 64314695 1400 +42496 64316095 2186 +42497 64318281 1982 +42498 64320263 1706 +42499 64321969 962 +42500 64322931 1394 +42501 64324325 1190 +42502 64325515 1100 +42503 64326615 1274 +42504 64327889 1010 +42505 64328899 974 +42506 64329873 632 +42507 64330505 1226 +42508 64331731 1184 +42509 64332915 1052 +42510 64333967 1124 +42511 64335091 1028 +42512 64336119 1028 +42513 64337147 416 +42514 64337563 1076 +42515 64338639 962 +42516 64339601 566 +42517 64340167 818 +42518 64340985 542 +42519 64341527 566 +42520 64342093 860 +42521 64342953 716 +42522 64343669 884 +42523 64344553 338 +42524 64344891 548 +42525 64345439 656 +42526 64346095 776 +42527 64346871 662 +42528 64347533 608 +42529 64348141 734 +42530 64348875 572 +42531 64349447 524 +42532 64349971 308 +42533 64350279 302 +42534 64350581 590 +42535 64351171 524 +42536 64351695 1226 +42537 64352921 1262 +42538 64354183 1310 +42539 64355493 1268 +42540 64356761 1562 +42541 64358323 1136 +42542 64359459 1232 +42543 64360691 902 +42544 64361593 992 +42545 64362585 1034 +42546 64363619 1010 +42547 64364629 986 +42548 64365615 956 +42549 64366571 842 +42550 64367413 452 +42551 64367865 1166 +42552 64369031 1172 +42553 64370203 2552 +42554 64372755 2552 +42555 64375307 548 +42556 64375855 2270 +42557 64378125 2270 +42558 64380395 1502 +42559 64381897 1502 +42560 64383399 350 +42561 64383749 2762 +42562 64386511 3038 +42563 64389549 3050 +42564 64392599 2636 +42565 64395235 2636 +42566 64397871 2642 +42567 64400513 2606 +42568 64403119 2972 +42569 64406091 2756 +42570 64408847 770 +42571 64409617 1052 +42572 64410669 1058 +42573 64411727 980 +42574 64412707 1730 +42575 64414437 1736 +42576 64416173 938 +42577 64417111 902 +42578 64418013 698 +42579 64418711 80 +42580 64418791 1436 +42581 64420227 1562 +42582 64421789 1436 +42583 64423225 1436 +42584 64424661 788 +42585 64425449 542 +42586 64425991 1064 +42587 64427055 2372 +42588 64429427 2372 +42589 64431799 2360 +42590 64434159 692 +42591 64434851 2618 +42592 64437469 1046 +42593 64438515 1076 +42594 64439591 1298 +42595 64440889 1334 +42596 64442223 1346 +42597 64443569 1526 +42598 64445095 2630 +42599 64447725 1754 +42600 64449479 1526 +42601 64451005 2630 +42602 64453635 1754 +42603 64455389 1526 +42604 64456915 2630 +42605 64459545 1754 +42606 64461299 1526 +42607 64462825 2630 +42608 64465455 1754 +42609 64467209 1526 +42610 64468735 2630 +42611 64471365 1754 +42612 64473119 1526 +42613 64474645 2630 +42614 64477275 1754 +42615 64479029 1526 +42616 64480555 2630 +42617 64483185 1754 +42618 64484939 1526 +42619 64486465 2630 +42620 64489095 1754 +42621 64490849 1526 +42622 64492375 2630 +42623 64495005 1754 +42624 64496759 1526 +42625 64498285 2630 +42626 64500915 1754 +42627 64502669 1526 +42628 64504195 2630 +42629 64506825 1754 +42630 64508579 1526 +42631 64510105 2630 +42632 64512735 1754 +42633 64514489 1358 +42634 64515847 842 +42635 64516689 1796 +42636 64518485 1232 +42637 64519717 848 +42638 64520565 842 +42639 64521407 2792 +42640 64524199 842 +42641 64525041 1796 +42642 64526837 1232 +42643 64528069 1232 +42644 64529301 848 +42645 64530149 842 +42646 64530991 2792 +42647 64533783 2792 +42648 64536575 842 +42649 64537417 848 +42650 64538265 1796 +42651 64540061 1232 +42652 64541293 848 +42653 64542141 842 +42654 64542983 2792 +42655 64545775 2792 +42656 64548567 2792 +42657 64551359 848 +42658 64552207 848 +42659 64553055 1232 +42660 64554287 1232 +42661 64555519 338 +42662 64555857 566 +42663 64556423 1568 +42664 64557991 1568 +42665 64559559 2396 +42666 64561955 1808 +42667 64563763 1082 +42668 64564845 1118 +42669 64565963 1526 +42670 64567489 518 +42671 64568007 668 +42672 64568675 668 +42673 64569343 1736 +42674 64571079 1178 +42675 64572257 1184 +42676 64573441 1892 +42677 64575333 848 +42678 64576181 1640 +42679 64577821 1640 +42680 64579461 1082 +42681 64580543 962 +42682 64581505 656 +42683 64582161 656 +42684 64582817 656 +42685 64583473 656 +42686 64584129 1454 +42687 64585583 1472 +42688 64587055 1466 +42689 64588521 1466 +42690 64589987 1460 +42691 64591447 1466 +42692 64592913 1472 +42693 64594385 1472 +42694 64595857 2408 +42695 64598265 1424 +42696 64599689 1424 +42697 64601113 1448 +42698 64602561 1448 +42699 64604009 1520 +42700 64605529 926 +42701 64606455 2570 +42702 64609025 632 +42703 64609657 908 +42704 64610565 2162 +42705 64612727 6764 +42706 64619491 320 +42707 64619811 980 +42708 64620791 980 +42709 64621771 1538 +42710 64623309 1538 +42711 64624847 5666 +42712 64630513 320 +42713 64630833 320 +42714 64631153 1766 +42715 64632919 86 +42716 64633005 1694 +42717 64634699 1706 +42718 64636405 1202 +42719 64637607 1178 +42720 64638785 1202 +42721 64639987 1178 +42722 64641165 926 +42723 64642091 926 +42724 64643017 1256 +42725 64644273 3518 +42726 64647791 3518 +42727 64651309 4838 +42728 64656147 1808 +42729 64657955 1814 +42730 64659769 1814 +42731 64661583 1802 +42732 64663385 1796 +42733 64665181 1796 +42734 64666977 1814 +42735 64668791 1814 +42736 64670605 1814 +42737 64672419 1790 +42738 64674209 1796 +42739 64676005 1796 +42740 64677801 1802 +42741 64679603 2750 +42742 64682353 2690 +42743 64685043 2690 +42744 64687733 2108 +42745 64689841 2102 +42746 64691943 1526 +42747 64693469 2630 +42748 64696099 1754 +42749 64697853 1526 +42750 64699379 2630 +42751 64702009 1754 +42752 64703763 1526 +42753 64705289 2630 +42754 64707919 1754 +42755 64709673 1526 +42756 64711199 2630 +42757 64713829 1754 +42758 64715583 1526 +42759 64717109 2630 +42760 64719739 1754 +42761 64721493 1526 +42762 64723019 2630 +42763 64725649 1754 +42764 64727403 1526 +42765 64728929 2630 +42766 64731559 1754 +42767 64733313 1526 +42768 64734839 2630 +42769 64737469 1754 +42770 64739223 1526 +42771 64740749 2630 +42772 64743379 1754 +42773 64745133 1526 +42774 64746659 2630 +42775 64749289 1754 +42776 64751043 1526 +42777 64752569 2630 +42778 64755199 1754 +42779 64756953 1526 +42780 64758479 2630 +42781 64761109 1754 +42782 64762863 2414 +42783 64765277 710 +42784 64765987 734 +42785 64766721 74 +42786 64766795 794 +42787 64767589 590 +42788 64768179 356 +42789 64768535 74 +42790 64768609 794 +42791 64769403 590 +42792 64769993 356 +42793 64770349 74 +42794 64770423 794 +42795 64771217 590 +42796 64771807 356 +42797 64772163 74 +42798 64772237 794 +42799 64773031 590 +42800 64773621 356 +42801 64773977 896 +42802 64774873 896 +42803 64775769 896 +42804 64776665 896 +42805 64777561 896 +42806 64778457 896 +42807 64779353 1892 +42808 64781245 1340 +42809 64782585 3302 +42810 64785887 3278 +42811 64789165 1034 +42812 64790199 1028 +42813 64791227 1028 +42814 64792255 1028 +42815 64793283 1028 +42816 64794311 1028 +42817 64795339 1028 +42818 64796367 1028 +42819 64797395 1028 +42820 64798423 1028 +42821 64799451 1028 +42822 64800479 1028 +42823 64801507 1448 +42824 64802955 1448 +42825 64804403 1448 +42826 64805851 1562 +42827 64807413 572 +42828 64807985 950 +42829 64808935 1814 +42830 64810749 392 +42831 64811141 6230 +42832 64817371 6296 +42833 64823667 6230 +42834 64829897 500 +42835 64830397 500 +42836 64830897 500 +42837 64831397 500 +42838 64831897 446 +42839 64832343 926 +42840 64833269 2312 +42841 64835581 596 +42842 64836177 656 +42843 64836833 632 +42844 64837465 608 +42845 64838073 932 +42846 64839005 914 +42847 64839919 1052 +42848 64840971 1064 +42849 64842035 518 +42850 64842553 518 +42851 64843071 518 +42852 64843589 518 +42853 64844107 518 +42854 64844625 560 +42855 64845185 560 +42856 64845745 560 +42857 64846305 560 +42858 64846865 560 +42859 64847425 560 +42860 64847985 1832 +42861 64849817 1856 +42862 64851673 1688 +42863 64853361 1688 +42864 64855049 992 +42865 64856041 1148 +42866 64857189 614 +42867 64857803 602 +42868 64858405 590 +42869 64858995 3974 +42870 64862969 3968 +42871 64866937 3968 +42872 64870905 14389 +42873 64885294 794 +42874 64886088 794 +42875 64886882 794 +42876 64887676 1454 +42877 64889130 1454 +42878 64890584 602 +42879 64891186 1904 +42880 64893090 1904 +42881 64894994 1904 +42882 64896898 764 +42883 64897662 1514 +42884 64899176 656 +42885 64899832 656 +42886 64900488 3128 +42887 64903616 3128 +42888 64906744 1058 +42889 64907802 1202 +42890 64909004 1310 +42891 64910314 1268 +42892 64911582 1040 +42893 64912622 1046 +42894 64913668 1046 +42895 64914714 1046 +42896 64915760 386 +42897 64916146 386 +42898 64916532 386 +42899 64916918 386 +42900 64917304 500 +42901 64917804 500 +42902 64918304 2804 +42903 64921108 68 +42904 64921176 3734 +42905 64924910 944 +42906 64925854 1580 +42907 64927434 1616 +42908 64929050 716 +42909 64929766 704 +42910 64930470 2036 +42911 64932506 2036 +42912 64934542 1400 +42913 64935942 1358 +42914 64937300 1892 +42915 64939192 1874 +42916 64941066 2690 +42917 64943756 2690 +42918 64946446 2684 +42919 64949130 2684 +42920 64951814 2684 +42921 64954498 2690 +42922 64957188 2690 +42923 64959878 2690 +42924 64962568 1166 +42925 64963734 1328 +42926 64965062 1328 +42927 64966390 686 +42928 64967076 686 +42929 64967762 1676 +42930 64969438 1676 +42931 64971114 332 +42932 64971446 326 +42933 64971772 320 +42934 64972092 1160 +42935 64973252 1052 +42936 64974304 128 +42937 64974432 1616 +42938 64976048 1604 +42939 64977652 116 +42940 64977768 530 +42941 64978298 512 +42942 64978810 746 +42943 64979556 740 +42944 64980296 4106 +42945 64984402 4100 +42946 64988502 1028 +42947 64989530 74 +42948 64989604 1022 +42949 64990626 74 +42950 64990700 2072 +42951 64992772 2072 +42952 64994844 1262 +42953 64996106 950 +42954 64997056 950 +42955 64998006 854 +42956 64998860 950 +42957 64999810 950 +42958 65000760 1172 +42959 65001932 1172 +42960 65003104 2654 +42961 65005758 2654 +42962 65008412 1646 +42963 65010058 1604 +42964 65011662 3080 +42965 65014742 3086 +42966 65017828 2600 +42967 65020428 2600 +42968 65023028 2240 +42969 65025268 926 +42970 65026194 590 +42971 65026784 590 +42972 65027374 1334 +42973 65028708 1334 +42974 65030042 770 +42975 65030812 686 +42976 65031498 1508 +42977 65033006 770 +42978 65033776 686 +42979 65034462 1508 +42980 65035970 776 +42981 65036746 704 +42982 65037450 1508 +42983 65038958 776 +42984 65039734 686 +42985 65040420 1508 +42986 65041928 2852 +42987 65044780 2318 +42988 65047098 2318 +42989 65049416 1826 +42990 65051242 1250 +42991 65052492 1598 +42992 65054090 1184 +42993 65055274 2654 +42994 65057928 2654 +42995 65060582 1460 +42996 65062042 3134 +42997 65065176 3134 +42998 65068310 3134 +42999 65071444 1166 +43000 65072610 1130 +43001 65073740 1130 +43002 65074870 1130 +43003 65076000 2840 +43004 65078840 3026 +43005 65081866 3026 +43006 65084892 3026 +43007 65087918 3026 +43008 65090944 3026 +43009 65093970 3026 +43010 65096996 3026 +43011 65100022 3026 +43012 65103048 2006 +43013 65105054 2006 +43014 65107060 2006 +43015 65109066 2006 +43016 65111072 2006 +43017 65113078 2006 +43018 65115084 2006 +43019 65117090 2006 +43020 65119096 2006 +43021 65121102 356 +43022 65121458 356 +43023 65121814 236 +43024 65122050 2840 +43025 65124890 3026 +43026 65127916 3026 +43027 65130942 3026 +43028 65133968 3026 +43029 65136994 3026 +43030 65140020 3026 +43031 65143046 3026 +43032 65146072 3026 +43033 65149098 2006 +43034 65151104 2006 +43035 65153110 2006 +43036 65155116 2006 +43037 65157122 2006 +43038 65159128 2006 +43039 65161134 2006 +43040 65163140 2006 +43041 65165146 2006 +43042 65167152 356 +43043 65167508 356 +43044 65167864 236 +43045 65168100 2840 +43046 65170940 3026 +43047 65173966 3026 +43048 65176992 3026 +43049 65180018 3026 +43050 65183044 3026 +43051 65186070 3026 +43052 65189096 3026 +43053 65192122 3026 +43054 65195148 2006 +43055 65197154 2006 +43056 65199160 2006 +43057 65201166 2006 +43058 65203172 2006 +43059 65205178 2006 +43060 65207184 2006 +43061 65209190 2006 +43062 65211196 2006 +43063 65213202 356 +43064 65213558 356 +43065 65213914 236 +43066 65214150 2840 +43067 65216990 3026 +43068 65220016 3026 +43069 65223042 3026 +43070 65226068 3026 +43071 65229094 3026 +43072 65232120 3026 +43073 65235146 3026 +43074 65238172 3026 +43075 65241198 2006 +43076 65243204 2006 +43077 65245210 2006 +43078 65247216 2006 +43079 65249222 2006 +43080 65251228 2006 +43081 65253234 2006 +43082 65255240 2006 +43083 65257246 2006 +43084 65259252 356 +43085 65259608 356 +43086 65259964 236 +43087 65260200 2840 +43088 65263040 3026 +43089 65266066 3026 +43090 65269092 3026 +43091 65272118 3026 +43092 65275144 3026 +43093 65278170 3026 +43094 65281196 3026 +43095 65284222 3026 +43096 65287248 2006 +43097 65289254 2006 +43098 65291260 2006 +43099 65293266 2006 +43100 65295272 2006 +43101 65297278 2006 +43102 65299284 2006 +43103 65301290 2006 +43104 65303296 2006 +43105 65305302 356 +43106 65305658 356 +43107 65306014 236 +43108 65306250 2840 +43109 65309090 3026 +43110 65312116 3026 +43111 65315142 3026 +43112 65318168 3026 +43113 65321194 3026 +43114 65324220 3026 +43115 65327246 3026 +43116 65330272 3026 +43117 65333298 2006 +43118 65335304 2006 +43119 65337310 2006 +43120 65339316 2006 +43121 65341322 2006 +43122 65343328 2006 +43123 65345334 2006 +43124 65347340 2006 +43125 65349346 2006 +43126 65351352 356 +43127 65351708 356 +43128 65352064 236 +43129 65352300 2840 +43130 65355140 3026 +43131 65358166 3026 +43132 65361192 3026 +43133 65364218 3026 +43134 65367244 3026 +43135 65370270 3026 +43136 65373296 3026 +43137 65376322 3026 +43138 65379348 2006 +43139 65381354 2006 +43140 65383360 2006 +43141 65385366 2006 +43142 65387372 2006 +43143 65389378 2006 +43144 65391384 2006 +43145 65393390 2006 +43146 65395396 2006 +43147 65397402 356 +43148 65397758 356 +43149 65398114 236 +43150 65398350 2840 +43151 65401190 3026 +43152 65404216 3026 +43153 65407242 3026 +43154 65410268 3026 +43155 65413294 3026 +43156 65416320 3026 +43157 65419346 3026 +43158 65422372 3026 +43159 65425398 2006 +43160 65427404 2006 +43161 65429410 2006 +43162 65431416 2006 +43163 65433422 2006 +43164 65435428 2006 +43165 65437434 2006 +43166 65439440 2006 +43167 65441446 2006 +43168 65443452 356 +43169 65443808 356 +43170 65444164 236 +43171 65444400 2840 +43172 65447240 3026 +43173 65450266 3026 +43174 65453292 3026 +43175 65456318 3026 +43176 65459344 3026 +43177 65462370 3026 +43178 65465396 3026 +43179 65468422 3026 +43180 65471448 2006 +43181 65473454 2006 +43182 65475460 2006 +43183 65477466 2006 +43184 65479472 2006 +43185 65481478 2006 +43186 65483484 2006 +43187 65485490 2006 +43188 65487496 2006 +43189 65489502 356 +43190 65489858 356 +43191 65490214 236 +43192 65490450 2840 +43193 65493290 3026 +43194 65496316 3026 +43195 65499342 3026 +43196 65502368 3026 +43197 65505394 3026 +43198 65508420 3026 +43199 65511446 3026 +43200 65514472 3026 +43201 65517498 2006 +43202 65519504 2006 +43203 65521510 2006 +43204 65523516 2006 +43205 65525522 2006 +43206 65527528 2006 +43207 65529534 2006 +43208 65531540 2006 +43209 65533546 2006 +43210 65535552 356 +43211 65535908 356 +43212 65536264 236 +43213 65536500 2840 +43214 65539340 3026 +43215 65542366 3026 +43216 65545392 3026 +43217 65548418 3026 +43218 65551444 3026 +43219 65554470 3026 +43220 65557496 3026 +43221 65560522 3026 +43222 65563548 2006 +43223 65565554 2006 +43224 65567560 2006 +43225 65569566 2006 +43226 65571572 2006 +43227 65573578 2006 +43228 65575584 2006 +43229 65577590 2006 +43230 65579596 2006 +43231 65581602 356 +43232 65581958 356 +43233 65582314 236 +43234 65582550 2840 +43235 65585390 3026 +43236 65588416 3026 +43237 65591442 3026 +43238 65594468 3026 +43239 65597494 3026 +43240 65600520 3026 +43241 65603546 3026 +43242 65606572 3026 +43243 65609598 2006 +43244 65611604 2006 +43245 65613610 2006 +43246 65615616 2006 +43247 65617622 2006 +43248 65619628 2006 +43249 65621634 2006 +43250 65623640 2006 +43251 65625646 2006 +43252 65627652 356 +43253 65628008 356 +43254 65628364 236 +43255 65628600 2840 +43256 65631440 3026 +43257 65634466 3026 +43258 65637492 3026 +43259 65640518 3026 +43260 65643544 3026 +43261 65646570 3026 +43262 65649596 3026 +43263 65652622 3026 +43264 65655648 2006 +43265 65657654 2006 +43266 65659660 2006 +43267 65661666 2006 +43268 65663672 2006 +43269 65665678 2006 +43270 65667684 2006 +43271 65669690 2006 +43272 65671696 2006 +43273 65673702 356 +43274 65674058 356 +43275 65674414 236 +43276 65674650 2840 +43277 65677490 3026 +43278 65680516 3026 +43279 65683542 3026 +43280 65686568 3026 +43281 65689594 3026 +43282 65692620 3026 +43283 65695646 3026 +43284 65698672 3026 +43285 65701698 2006 +43286 65703704 2006 +43287 65705710 2006 +43288 65707716 2006 +43289 65709722 2006 +43290 65711728 2006 +43291 65713734 2006 +43292 65715740 2006 +43293 65717746 2006 +43294 65719752 356 +43295 65720108 356 +43296 65720464 236 +43297 65720700 2840 +43298 65723540 3026 +43299 65726566 3026 +43300 65729592 3026 +43301 65732618 3026 +43302 65735644 3026 +43303 65738670 3026 +43304 65741696 3026 +43305 65744722 3026 +43306 65747748 2006 +43307 65749754 2006 +43308 65751760 2006 +43309 65753766 2006 +43310 65755772 2006 +43311 65757778 2006 +43312 65759784 2006 +43313 65761790 2006 +43314 65763796 2006 +43315 65765802 356 +43316 65766158 356 +43317 65766514 236 +43318 65766750 2840 +43319 65769590 3026 +43320 65772616 3026 +43321 65775642 3026 +43322 65778668 3026 +43323 65781694 3026 +43324 65784720 3026 +43325 65787746 3026 +43326 65790772 3026 +43327 65793798 2006 +43328 65795804 2006 +43329 65797810 2006 +43330 65799816 2006 +43331 65801822 2006 +43332 65803828 2006 +43333 65805834 2006 +43334 65807840 2006 +43335 65809846 2006 +43336 65811852 356 +43337 65812208 356 +43338 65812564 236 +43339 65812800 2840 +43340 65815640 3026 +43341 65818666 3026 +43342 65821692 3026 +43343 65824718 3026 +43344 65827744 3026 +43345 65830770 3026 +43346 65833796 3026 +43347 65836822 3026 +43348 65839848 2006 +43349 65841854 2006 +43350 65843860 2006 +43351 65845866 2006 +43352 65847872 2006 +43353 65849878 2006 +43354 65851884 2006 +43355 65853890 2006 +43356 65855896 2006 +43357 65857902 356 +43358 65858258 356 +43359 65858614 236 +43360 65858850 2840 +43361 65861690 3026 +43362 65864716 3026 +43363 65867742 3026 +43364 65870768 3026 +43365 65873794 3026 +43366 65876820 3026 +43367 65879846 3026 +43368 65882872 3026 +43369 65885898 2006 +43370 65887904 2006 +43371 65889910 2006 +43372 65891916 2006 +43373 65893922 2006 +43374 65895928 2006 +43375 65897934 2006 +43376 65899940 2006 +43377 65901946 2006 +43378 65903952 356 +43379 65904308 356 +43380 65904664 236 +43381 65904900 2840 +43382 65907740 3026 +43383 65910766 3026 +43384 65913792 3026 +43385 65916818 3026 +43386 65919844 3026 +43387 65922870 3026 +43388 65925896 3026 +43389 65928922 3026 +43390 65931948 2006 +43391 65933954 2006 +43392 65935960 2006 +43393 65937966 2006 +43394 65939972 2006 +43395 65941978 2006 +43396 65943984 2006 +43397 65945990 2006 +43398 65947996 2006 +43399 65950002 356 +43400 65950358 356 +43401 65950714 236 +43402 65950950 2840 +43403 65953790 3026 +43404 65956816 3026 +43405 65959842 3026 +43406 65962868 3026 +43407 65965894 3026 +43408 65968920 3026 +43409 65971946 3026 +43410 65974972 3026 +43411 65977998 2006 +43412 65980004 2006 +43413 65982010 2006 +43414 65984016 2006 +43415 65986022 2006 +43416 65988028 2006 +43417 65990034 2006 +43418 65992040 2006 +43419 65994046 2006 +43420 65996052 356 +43421 65996408 356 +43422 65996764 236 +43423 65997000 2840 +43424 65999840 3026 +43425 66002866 3026 +43426 66005892 3026 +43427 66008918 3026 +43428 66011944 3026 +43429 66014970 3026 +43430 66017996 3026 +43431 66021022 3026 +43432 66024048 2006 +43433 66026054 2006 +43434 66028060 2006 +43435 66030066 2006 +43436 66032072 2006 +43437 66034078 2006 +43438 66036084 2006 +43439 66038090 2006 +43440 66040096 2006 +43441 66042102 356 +43442 66042458 356 +43443 66042814 236 +43444 66043050 2840 +43445 66045890 3026 +43446 66048916 3026 +43447 66051942 3026 +43448 66054968 3026 +43449 66057994 3026 +43450 66061020 3026 +43451 66064046 3026 +43452 66067072 3026 +43453 66070098 2006 +43454 66072104 2006 +43455 66074110 2006 +43456 66076116 2006 +43457 66078122 2006 +43458 66080128 2006 +43459 66082134 2006 +43460 66084140 2006 +43461 66086146 2006 +43462 66088152 356 +43463 66088508 356 +43464 66088864 236 +43465 66089100 2840 +43466 66091940 3026 +43467 66094966 3026 +43468 66097992 3026 +43469 66101018 3026 +43470 66104044 3026 +43471 66107070 3026 +43472 66110096 3026 +43473 66113122 3026 +43474 66116148 2006 +43475 66118154 2006 +43476 66120160 2006 +43477 66122166 2006 +43478 66124172 2006 +43479 66126178 2006 +43480 66128184 2006 +43481 66130190 2006 +43482 66132196 2006 +43483 66134202 356 +43484 66134558 356 +43485 66134914 236 +43486 66135150 2840 +43487 66137990 3026 +43488 66141016 3026 +43489 66144042 3026 +43490 66147068 3026 +43491 66150094 3026 +43492 66153120 3026 +43493 66156146 3026 +43494 66159172 3026 +43495 66162198 2006 +43496 66164204 2006 +43497 66166210 2006 +43498 66168216 2006 +43499 66170222 2006 +43500 66172228 2006 +43501 66174234 2006 +43502 66176240 2006 +43503 66178246 2006 +43504 66180252 356 +43505 66180608 356 +43506 66180964 236 +43507 66181200 2840 +43508 66184040 3026 +43509 66187066 3026 +43510 66190092 3026 +43511 66193118 3026 +43512 66196144 3026 +43513 66199170 3026 +43514 66202196 3026 +43515 66205222 3026 +43516 66208248 2006 +43517 66210254 2006 +43518 66212260 2006 +43519 66214266 2006 +43520 66216272 2006 +43521 66218278 2006 +43522 66220284 2006 +43523 66222290 2006 +43524 66224296 2006 +43525 66226302 356 +43526 66226658 356 +43527 66227014 236 +43528 66227250 2840 +43529 66230090 3026 +43530 66233116 3026 +43531 66236142 3026 +43532 66239168 3026 +43533 66242194 3026 +43534 66245220 3026 +43535 66248246 3026 +43536 66251272 3026 +43537 66254298 2006 +43538 66256304 2006 +43539 66258310 2006 +43540 66260316 2006 +43541 66262322 2006 +43542 66264328 2006 +43543 66266334 2006 +43544 66268340 2006 +43545 66270346 2006 +43546 66272352 356 +43547 66272708 356 +43548 66273064 236 +43549 66273300 2840 +43550 66276140 3026 +43551 66279166 3026 +43552 66282192 3026 +43553 66285218 3026 +43554 66288244 3026 +43555 66291270 3026 +43556 66294296 3026 +43557 66297322 3026 +43558 66300348 2006 +43559 66302354 2006 +43560 66304360 2006 +43561 66306366 2006 +43562 66308372 2006 +43563 66310378 2006 +43564 66312384 2006 +43565 66314390 2006 +43566 66316396 2006 +43567 66318402 356 +43568 66318758 356 +43569 66319114 236 +43570 66319350 2840 +43571 66322190 3026 +43572 66325216 3026 +43573 66328242 3026 +43574 66331268 3026 +43575 66334294 3026 +43576 66337320 3026 +43577 66340346 3026 +43578 66343372 3026 +43579 66346398 2006 +43580 66348404 2006 +43581 66350410 2006 +43582 66352416 2006 +43583 66354422 2006 +43584 66356428 2006 +43585 66358434 2006 +43586 66360440 2006 +43587 66362446 2006 +43588 66364452 356 +43589 66364808 356 +43590 66365164 236 +43591 66365400 2840 +43592 66368240 3026 +43593 66371266 3026 +43594 66374292 3026 +43595 66377318 3026 +43596 66380344 3026 +43597 66383370 3026 +43598 66386396 3026 +43599 66389422 3026 +43600 66392448 2006 +43601 66394454 2006 +43602 66396460 2006 +43603 66398466 2006 +43604 66400472 2006 +43605 66402478 2006 +43606 66404484 2006 +43607 66406490 2006 +43608 66408496 2006 +43609 66410502 356 +43610 66410858 356 +43611 66411214 236 +43612 66411450 2840 +43613 66414290 3026 +43614 66417316 3026 +43615 66420342 3026 +43616 66423368 3026 +43617 66426394 3026 +43618 66429420 3026 +43619 66432446 3026 +43620 66435472 3026 +43621 66438498 2006 +43622 66440504 2006 +43623 66442510 2006 +43624 66444516 2006 +43625 66446522 2006 +43626 66448528 2006 +43627 66450534 2006 +43628 66452540 2006 +43629 66454546 2006 +43630 66456552 356 +43631 66456908 356 +43632 66457264 236 +43633 66457500 2840 +43634 66460340 3026 +43635 66463366 3026 +43636 66466392 3026 +43637 66469418 3026 +43638 66472444 3026 +43639 66475470 3026 +43640 66478496 3026 +43641 66481522 3026 +43642 66484548 2006 +43643 66486554 2006 +43644 66488560 2006 +43645 66490566 2006 +43646 66492572 2006 +43647 66494578 2006 +43648 66496584 2006 +43649 66498590 2006 +43650 66500596 2006 +43651 66502602 356 +43652 66502958 356 +43653 66503314 236 +43654 66503550 2840 +43655 66506390 3026 +43656 66509416 3026 +43657 66512442 3026 +43658 66515468 3026 +43659 66518494 3026 +43660 66521520 3026 +43661 66524546 3026 +43662 66527572 3026 +43663 66530598 2006 +43664 66532604 2006 +43665 66534610 2006 +43666 66536616 2006 +43667 66538622 2006 +43668 66540628 2006 +43669 66542634 2006 +43670 66544640 2006 +43671 66546646 2006 +43672 66548652 356 +43673 66549008 356 +43674 66549364 236 +43675 66549600 2840 +43676 66552440 3026 +43677 66555466 3026 +43678 66558492 3026 +43679 66561518 3026 +43680 66564544 3026 +43681 66567570 3026 +43682 66570596 3026 +43683 66573622 3026 +43684 66576648 2006 +43685 66578654 2006 +43686 66580660 2006 +43687 66582666 2006 +43688 66584672 2006 +43689 66586678 2006 +43690 66588684 2006 +43691 66590690 2006 +43692 66592696 2006 +43693 66594702 356 +43694 66595058 356 +43695 66595414 236 +43696 66595650 2840 +43697 66598490 3026 +43698 66601516 3026 +43699 66604542 3026 +43700 66607568 3026 +43701 66610594 3026 +43702 66613620 3026 +43703 66616646 3026 +43704 66619672 3026 +43705 66622698 2006 +43706 66624704 2006 +43707 66626710 2006 +43708 66628716 2006 +43709 66630722 2006 +43710 66632728 2006 +43711 66634734 2006 +43712 66636740 2006 +43713 66638746 2006 +43714 66640752 356 +43715 66641108 356 +43716 66641464 236 +43717 66641700 2840 +43718 66644540 3026 +43719 66647566 3026 +43720 66650592 3026 +43721 66653618 3026 +43722 66656644 3026 +43723 66659670 3026 +43724 66662696 3026 +43725 66665722 3026 +43726 66668748 2006 +43727 66670754 2006 +43728 66672760 2006 +43729 66674766 2006 +43730 66676772 2006 +43731 66678778 2006 +43732 66680784 2006 +43733 66682790 2006 +43734 66684796 2006 +43735 66686802 356 +43736 66687158 356 +43737 66687514 236 +43738 66687750 2840 +43739 66690590 3026 +43740 66693616 3026 +43741 66696642 3026 +43742 66699668 3026 +43743 66702694 3026 +43744 66705720 3026 +43745 66708746 3026 +43746 66711772 3026 +43747 66714798 2006 +43748 66716804 2006 +43749 66718810 2006 +43750 66720816 2006 +43751 66722822 2006 +43752 66724828 2006 +43753 66726834 2006 +43754 66728840 2006 +43755 66730846 2006 +43756 66732852 356 +43757 66733208 356 +43758 66733564 236 +43759 66733800 2840 +43760 66736640 3026 +43761 66739666 3026 +43762 66742692 3026 +43763 66745718 3026 +43764 66748744 3026 +43765 66751770 3026 +43766 66754796 3026 +43767 66757822 3026 +43768 66760848 2006 +43769 66762854 2006 +43770 66764860 2006 +43771 66766866 2006 +43772 66768872 2006 +43773 66770878 2006 +43774 66772884 2006 +43775 66774890 2006 +43776 66776896 2006 +43777 66778902 356 +43778 66779258 356 +43779 66779614 236 +43780 66779850 2840 +43781 66782690 3026 +43782 66785716 3026 +43783 66788742 3026 +43784 66791768 3026 +43785 66794794 3026 +43786 66797820 3026 +43787 66800846 3026 +43788 66803872 3026 +43789 66806898 2006 +43790 66808904 2006 +43791 66810910 2006 +43792 66812916 2006 +43793 66814922 2006 +43794 66816928 2006 +43795 66818934 2006 +43796 66820940 2006 +43797 66822946 2006 +43798 66824952 356 +43799 66825308 356 +43800 66825664 236 +43801 66825900 2840 +43802 66828740 3026 +43803 66831766 3026 +43804 66834792 3026 +43805 66837818 3026 +43806 66840844 3026 +43807 66843870 3026 +43808 66846896 3026 +43809 66849922 3026 +43810 66852948 2006 +43811 66854954 2006 +43812 66856960 2006 +43813 66858966 2006 +43814 66860972 2006 +43815 66862978 2006 +43816 66864984 2006 +43817 66866990 2006 +43818 66868996 2006 +43819 66871002 356 +43820 66871358 356 +43821 66871714 236 +43822 66871950 2840 +43823 66874790 3026 +43824 66877816 3026 +43825 66880842 3026 +43826 66883868 3026 +43827 66886894 3026 +43828 66889920 3026 +43829 66892946 3026 +43830 66895972 3026 +43831 66898998 2006 +43832 66901004 2006 +43833 66903010 2006 +43834 66905016 2006 +43835 66907022 2006 +43836 66909028 2006 +43837 66911034 2006 +43838 66913040 2006 +43839 66915046 2006 +43840 66917052 356 +43841 66917408 356 +43842 66917764 236 +43843 66918000 2840 +43844 66920840 3026 +43845 66923866 3026 +43846 66926892 3026 +43847 66929918 3026 +43848 66932944 3026 +43849 66935970 3026 +43850 66938996 3026 +43851 66942022 3026 +43852 66945048 2006 +43853 66947054 2006 +43854 66949060 2006 +43855 66951066 2006 +43856 66953072 2006 +43857 66955078 2006 +43858 66957084 2006 +43859 66959090 2006 +43860 66961096 2006 +43861 66963102 356 +43862 66963458 356 +43863 66963814 236 +43864 66964050 2840 +43865 66966890 3026 +43866 66969916 3026 +43867 66972942 3026 +43868 66975968 3026 +43869 66978994 3026 +43870 66982020 3026 +43871 66985046 3026 +43872 66988072 3026 +43873 66991098 2006 +43874 66993104 2006 +43875 66995110 2006 +43876 66997116 2006 +43877 66999122 2006 +43878 67001128 2006 +43879 67003134 2006 +43880 67005140 2006 +43881 67007146 2006 +43882 67009152 356 +43883 67009508 356 +43884 67009864 236 +43885 67010100 2840 +43886 67012940 3026 +43887 67015966 3026 +43888 67018992 3026 +43889 67022018 3026 +43890 67025044 3026 +43891 67028070 3026 +43892 67031096 3026 +43893 67034122 3026 +43894 67037148 2006 +43895 67039154 2006 +43896 67041160 2006 +43897 67043166 2006 +43898 67045172 2006 +43899 67047178 2006 +43900 67049184 2006 +43901 67051190 2006 +43902 67053196 2006 +43903 67055202 356 +43904 67055558 356 +43905 67055914 236 +43906 67056150 2840 +43907 67058990 3026 +43908 67062016 3026 +43909 67065042 3026 +43910 67068068 3026 +43911 67071094 3026 +43912 67074120 3026 +43913 67077146 3026 +43914 67080172 3026 +43915 67083198 2006 +43916 67085204 2006 +43917 67087210 2006 +43918 67089216 2006 +43919 67091222 2006 +43920 67093228 2006 +43921 67095234 2006 +43922 67097240 2006 +43923 67099246 2006 +43924 67101252 356 +43925 67101608 356 +43926 67101964 236 +43927 67102200 2840 +43928 67105040 3026 +43929 67108066 3026 +43930 67111092 3026 +43931 67114118 3026 +43932 67117144 3026 +43933 67120170 3026 +43934 67123196 3026 +43935 67126222 3026 +43936 67129248 2006 +43937 67131254 2006 +43938 67133260 2006 +43939 67135266 2006 +43940 67137272 2006 +43941 67139278 2006 +43942 67141284 2006 +43943 67143290 2006 +43944 67145296 2006 +43945 67147302 356 +43946 67147658 356 +43947 67148014 236 +43948 67148250 2840 +43949 67151090 3026 +43950 67154116 3026 +43951 67157142 3026 +43952 67160168 3026 +43953 67163194 3026 +43954 67166220 3026 +43955 67169246 3026 +43956 67172272 3026 +43957 67175298 2006 +43958 67177304 2006 +43959 67179310 2006 +43960 67181316 2006 +43961 67183322 2006 +43962 67185328 2006 +43963 67187334 2006 +43964 67189340 2006 +43965 67191346 2006 +43966 67193352 356 +43967 67193708 356 +43968 67194064 236 +43969 67194300 2840 +43970 67197140 3026 +43971 67200166 3026 +43972 67203192 3026 +43973 67206218 3026 +43974 67209244 3026 +43975 67212270 3026 +43976 67215296 3026 +43977 67218322 3026 +43978 67221348 2006 +43979 67223354 2006 +43980 67225360 2006 +43981 67227366 2006 +43982 67229372 2006 +43983 67231378 2006 +43984 67233384 2006 +43985 67235390 2006 +43986 67237396 2006 +43987 67239402 356 +43988 67239758 356 +43989 67240114 236 +43990 67240350 2840 +43991 67243190 3026 +43992 67246216 3026 +43993 67249242 3026 +43994 67252268 3026 +43995 67255294 3026 +43996 67258320 3026 +43997 67261346 3026 +43998 67264372 3026 +43999 67267398 2006 +44000 67269404 2006 +44001 67271410 2006 +44002 67273416 2006 +44003 67275422 2006 +44004 67277428 2006 +44005 67279434 2006 +44006 67281440 2006 +44007 67283446 2006 +44008 67285452 356 +44009 67285808 356 +44010 67286164 236 +44011 67286400 2840 +44012 67289240 3026 +44013 67292266 3026 +44014 67295292 3026 +44015 67298318 3026 +44016 67301344 3026 +44017 67304370 3026 +44018 67307396 3026 +44019 67310422 3026 +44020 67313448 2006 +44021 67315454 2006 +44022 67317460 2006 +44023 67319466 2006 +44024 67321472 2006 +44025 67323478 2006 +44026 67325484 2006 +44027 67327490 2006 +44028 67329496 2006 +44029 67331502 356 +44030 67331858 356 +44031 67332214 236 +44032 67332450 2840 +44033 67335290 3026 +44034 67338316 3026 +44035 67341342 3026 +44036 67344368 3026 +44037 67347394 3026 +44038 67350420 3026 +44039 67353446 3026 +44040 67356472 3026 +44041 67359498 2006 +44042 67361504 2006 +44043 67363510 2006 +44044 67365516 2006 +44045 67367522 2006 +44046 67369528 2006 +44047 67371534 2006 +44048 67373540 2006 +44049 67375546 2006 +44050 67377552 356 +44051 67377908 356 +44052 67378264 236 +44053 67378500 2840 +44054 67381340 3026 +44055 67384366 3026 +44056 67387392 3026 +44057 67390418 3026 +44058 67393444 3026 +44059 67396470 3026 +44060 67399496 3026 +44061 67402522 3026 +44062 67405548 2006 +44063 67407554 2006 +44064 67409560 2006 +44065 67411566 2006 +44066 67413572 2006 +44067 67415578 2006 +44068 67417584 2006 +44069 67419590 2006 +44070 67421596 2006 +44071 67423602 356 +44072 67423958 356 +44073 67424314 236 +44074 67424550 2840 +44075 67427390 3026 +44076 67430416 3026 +44077 67433442 3026 +44078 67436468 3026 +44079 67439494 3026 +44080 67442520 3026 +44081 67445546 3026 +44082 67448572 3026 +44083 67451598 2006 +44084 67453604 2006 +44085 67455610 2006 +44086 67457616 2006 +44087 67459622 2006 +44088 67461628 2006 +44089 67463634 2006 +44090 67465640 2006 +44091 67467646 2006 +44092 67469652 356 +44093 67470008 356 +44094 67470364 236 +44095 67470600 2840 +44096 67473440 3026 +44097 67476466 3026 +44098 67479492 3026 +44099 67482518 3026 +44100 67485544 3026 +44101 67488570 3026 +44102 67491596 3026 +44103 67494622 3026 +44104 67497648 2006 +44105 67499654 2006 +44106 67501660 2006 +44107 67503666 2006 +44108 67505672 2006 +44109 67507678 2006 +44110 67509684 2006 +44111 67511690 2006 +44112 67513696 2006 +44113 67515702 356 +44114 67516058 356 +44115 67516414 236 +44116 67516650 2840 +44117 67519490 3026 +44118 67522516 3026 +44119 67525542 3026 +44120 67528568 3026 +44121 67531594 3026 +44122 67534620 3026 +44123 67537646 3026 +44124 67540672 3026 +44125 67543698 2006 +44126 67545704 2006 +44127 67547710 2006 +44128 67549716 2006 +44129 67551722 2006 +44130 67553728 2006 +44131 67555734 2006 +44132 67557740 2006 +44133 67559746 2006 +44134 67561752 356 +44135 67562108 356 +44136 67562464 236 +44137 67562700 2840 +44138 67565540 3026 +44139 67568566 3026 +44140 67571592 3026 +44141 67574618 3026 +44142 67577644 3026 +44143 67580670 3026 +44144 67583696 3026 +44145 67586722 3026 +44146 67589748 2006 +44147 67591754 2006 +44148 67593760 2006 +44149 67595766 2006 +44150 67597772 2006 +44151 67599778 2006 +44152 67601784 2006 +44153 67603790 2006 +44154 67605796 2006 +44155 67607802 356 +44156 67608158 356 +44157 67608514 236 +44158 67608750 2840 +44159 67611590 3026 +44160 67614616 3026 +44161 67617642 3026 +44162 67620668 3026 +44163 67623694 3026 +44164 67626720 3026 +44165 67629746 3026 +44166 67632772 3026 +44167 67635798 2006 +44168 67637804 2006 +44169 67639810 2006 +44170 67641816 2006 +44171 67643822 2006 +44172 67645828 2006 +44173 67647834 2006 +44174 67649840 2006 +44175 67651846 2006 +44176 67653852 356 +44177 67654208 356 +44178 67654564 236 +44179 67654800 2840 +44180 67657640 3026 +44181 67660666 3026 +44182 67663692 3026 +44183 67666718 3026 +44184 67669744 3026 +44185 67672770 3026 +44186 67675796 3026 +44187 67678822 3026 +44188 67681848 2006 +44189 67683854 2006 +44190 67685860 2006 +44191 67687866 2006 +44192 67689872 2006 +44193 67691878 2006 +44194 67693884 2006 +44195 67695890 2006 +44196 67697896 2006 +44197 67699902 356 +44198 67700258 356 +44199 67700614 236 +44200 67700850 2840 +44201 67703690 3026 +44202 67706716 3026 +44203 67709742 3026 +44204 67712768 3026 +44205 67715794 3026 +44206 67718820 3026 +44207 67721846 3026 +44208 67724872 3026 +44209 67727898 2006 +44210 67729904 2006 +44211 67731910 2006 +44212 67733916 2006 +44213 67735922 2006 +44214 67737928 2006 +44215 67739934 2006 +44216 67741940 2006 +44217 67743946 2006 +44218 67745952 356 +44219 67746308 356 +44220 67746664 236 +44221 67746900 2840 +44222 67749740 3026 +44223 67752766 3026 +44224 67755792 3026 +44225 67758818 3026 +44226 67761844 3026 +44227 67764870 3026 +44228 67767896 3026 +44229 67770922 3026 +44230 67773948 2006 +44231 67775954 2006 +44232 67777960 2006 +44233 67779966 2006 +44234 67781972 2006 +44235 67783978 2006 +44236 67785984 2006 +44237 67787990 2006 +44238 67789996 2006 +44239 67792002 356 +44240 67792358 356 +44241 67792714 236 +44242 67792950 2840 +44243 67795790 3026 +44244 67798816 3026 +44245 67801842 3026 +44246 67804868 3026 +44247 67807894 3026 +44248 67810920 3026 +44249 67813946 3026 +44250 67816972 3026 +44251 67819998 2006 +44252 67822004 2006 +44253 67824010 2006 +44254 67826016 2006 +44255 67828022 2006 +44256 67830028 2006 +44257 67832034 2006 +44258 67834040 2006 +44259 67836046 2006 +44260 67838052 356 +44261 67838408 356 +44262 67838764 236 +44263 67839000 3950 +44264 67842950 1364 +44265 67844314 1358 +44266 67845672 764 +44267 67846436 200 +44268 67846636 3950 +44269 67850586 1364 +44270 67851950 1358 +44271 67853308 764 +44272 67854072 200 +44273 67854272 3950 +44274 67858222 1364 +44275 67859586 1358 +44276 67860944 764 +44277 67861708 200 +44278 67861908 3950 +44279 67865858 1364 +44280 67867222 1358 +44281 67868580 764 +44282 67869344 200 +44283 67869544 3950 +44284 67873494 1364 +44285 67874858 1358 +44286 67876216 764 +44287 67876980 200 +44288 67877180 3950 +44289 67881130 1364 +44290 67882494 1358 +44291 67883852 764 +44292 67884616 200 +44293 67884816 3950 +44294 67888766 1364 +44295 67890130 1358 +44296 67891488 764 +44297 67892252 200 +44298 67892452 3950 +44299 67896402 1364 +44300 67897766 1358 +44301 67899124 764 +44302 67899888 200 +44303 67900088 3950 +44304 67904038 1364 +44305 67905402 1358 +44306 67906760 764 +44307 67907524 200 +44308 67907724 3950 +44309 67911674 1364 +44310 67913038 1358 +44311 67914396 764 +44312 67915160 200 +44313 67915360 3950 +44314 67919310 1364 +44315 67920674 1358 +44316 67922032 764 +44317 67922796 200 +44318 67922996 3950 +44319 67926946 1364 +44320 67928310 1358 +44321 67929668 764 +44322 67930432 200 +44323 67930632 3950 +44324 67934582 1364 +44325 67935946 1358 +44326 67937304 1364 +44327 67938668 1436 +44328 67940104 1400 +44329 67941504 1070 +44330 67942574 1136 +44331 67943710 650 +44332 67944360 122 +44333 67944482 122 +44334 67944604 158 +44335 67944762 764 +44336 67945526 200 +44337 67945726 3950 +44338 67949676 1364 +44339 67951040 1358 +44340 67952398 1364 +44341 67953762 1436 +44342 67955198 1400 +44343 67956598 1070 +44344 67957668 1136 +44345 67958804 650 +44346 67959454 122 +44347 67959576 122 +44348 67959698 158 +44349 67959856 764 +44350 67960620 200 +44351 67960820 3950 +44352 67964770 1364 +44353 67966134 1358 +44354 67967492 1364 +44355 67968856 1436 +44356 67970292 1400 +44357 67971692 1070 +44358 67972762 1136 +44359 67973898 650 +44360 67974548 122 +44361 67974670 122 +44362 67974792 158 +44363 67974950 764 +44364 67975714 200 +44365 67975914 3950 +44366 67979864 1364 +44367 67981228 1358 +44368 67982586 1364 +44369 67983950 1436 +44370 67985386 1400 +44371 67986786 1070 +44372 67987856 1136 +44373 67988992 650 +44374 67989642 122 +44375 67989764 122 +44376 67989886 158 +44377 67990044 764 +44378 67990808 200 +44379 67991008 3950 +44380 67994958 1364 +44381 67996322 1358 +44382 67997680 1364 +44383 67999044 1436 +44384 68000480 1400 +44385 68001880 1070 +44386 68002950 1136 +44387 68004086 650 +44388 68004736 122 +44389 68004858 122 +44390 68004980 158 +44391 68005138 764 +44392 68005902 200 +44393 68006102 3950 +44394 68010052 1364 +44395 68011416 1358 +44396 68012774 1364 +44397 68014138 1436 +44398 68015574 1400 +44399 68016974 1070 +44400 68018044 1136 +44401 68019180 650 +44402 68019830 122 +44403 68019952 122 +44404 68020074 158 +44405 68020232 764 +44406 68020996 200 +44407 68021196 3950 +44408 68025146 1364 +44409 68026510 1358 +44410 68027868 1364 +44411 68029232 1436 +44412 68030668 1400 +44413 68032068 1070 +44414 68033138 1136 +44415 68034274 650 +44416 68034924 122 +44417 68035046 122 +44418 68035168 158 +44419 68035326 764 +44420 68036090 200 +44421 68036290 3950 +44422 68040240 1364 +44423 68041604 1358 +44424 68042962 1364 +44425 68044326 1436 +44426 68045762 1400 +44427 68047162 1070 +44428 68048232 1136 +44429 68049368 650 +44430 68050018 122 +44431 68050140 122 +44432 68050262 158 +44433 68050420 764 +44434 68051184 200 +44435 68051384 3950 +44436 68055334 1364 +44437 68056698 1358 +44438 68058056 1364 +44439 68059420 1436 +44440 68060856 1400 +44441 68062256 1070 +44442 68063326 1136 +44443 68064462 650 +44444 68065112 122 +44445 68065234 122 +44446 68065356 158 +44447 68065514 764 +44448 68066278 200 +44449 68066478 3950 +44450 68070428 1364 +44451 68071792 1358 +44452 68073150 1364 +44453 68074514 1436 +44454 68075950 1400 +44455 68077350 1070 +44456 68078420 1136 +44457 68079556 650 +44458 68080206 122 +44459 68080328 122 +44460 68080450 158 +44461 68080608 764 +44462 68081372 200 +44463 68081572 3950 +44464 68085522 1364 +44465 68086886 1358 +44466 68088244 1364 +44467 68089608 1436 +44468 68091044 1400 +44469 68092444 1070 +44470 68093514 1136 +44471 68094650 650 +44472 68095300 122 +44473 68095422 122 +44474 68095544 158 +44475 68095702 764 +44476 68096466 200 +44477 68096666 3950 +44478 68100616 1364 +44479 68101980 1358 +44480 68103338 1364 +44481 68104702 1436 +44482 68106138 1400 +44483 68107538 1070 +44484 68108608 1136 +44485 68109744 650 +44486 68110394 122 +44487 68110516 122 +44488 68110638 158 +44489 68110796 764 +44490 68111560 200 +44491 68111760 3950 +44492 68115710 1364 +44493 68117074 1358 +44494 68118432 1364 +44495 68119796 1436 +44496 68121232 1436 +44497 68122668 1070 +44498 68123738 1136 +44499 68124874 650 +44500 68125524 122 +44501 68125646 122 +44502 68125768 158 +44503 68125926 764 +44504 68126690 200 +44505 68126890 3950 +44506 68130840 1364 +44507 68132204 1358 +44508 68133562 1364 +44509 68134926 1436 +44510 68136362 1436 +44511 68137798 1052 +44512 68138850 1136 +44513 68139986 650 +44514 68140636 122 +44515 68140758 122 +44516 68140880 158 +44517 68141038 764 +44518 68141802 200 +44519 68142002 8132 +44520 68150134 3950 +44521 68154084 1364 +44522 68155448 1358 +44523 68156806 1364 +44524 68158170 1436 +44525 68159606 1436 +44526 68161042 1070 +44527 68162112 1136 +44528 68163248 650 +44529 68163898 122 +44530 68164020 122 +44531 68164142 158 +44532 68164300 764 +44533 68165064 200 +44534 68165264 3950 +44535 68169214 1364 +44536 68170578 1358 +44537 68171936 1364 +44538 68173300 1436 +44539 68174736 1436 +44540 68176172 1052 +44541 68177224 1136 +44542 68178360 650 +44543 68179010 122 +44544 68179132 122 +44545 68179254 158 +44546 68179412 764 +44547 68180176 200 +44548 68180376 8132 +44549 68188508 3950 +44550 68192458 1364 +44551 68193822 1358 +44552 68195180 1364 +44553 68196544 1436 +44554 68197980 1436 +44555 68199416 1070 +44556 68200486 1136 +44557 68201622 650 +44558 68202272 122 +44559 68202394 122 +44560 68202516 158 +44561 68202674 764 +44562 68203438 200 +44563 68203638 3950 +44564 68207588 1364 +44565 68208952 1358 +44566 68210310 1364 +44567 68211674 1436 +44568 68213110 1436 +44569 68214546 1052 +44570 68215598 1136 +44571 68216734 650 +44572 68217384 122 +44573 68217506 122 +44574 68217628 158 +44575 68217786 764 +44576 68218550 200 +44577 68218750 8132 +44578 68226882 3950 +44579 68230832 1364 +44580 68232196 1358 +44581 68233554 1364 +44582 68234918 1436 +44583 68236354 1436 +44584 68237790 1070 +44585 68238860 1136 +44586 68239996 650 +44587 68240646 122 +44588 68240768 122 +44589 68240890 158 +44590 68241048 764 +44591 68241812 200 +44592 68242012 3950 +44593 68245962 1364 +44594 68247326 1358 +44595 68248684 1364 +44596 68250048 1436 +44597 68251484 1436 +44598 68252920 1052 +44599 68253972 1136 +44600 68255108 650 +44601 68255758 122 +44602 68255880 122 +44603 68256002 158 +44604 68256160 764 +44605 68256924 200 +44606 68257124 8132 +44607 68265256 3950 +44608 68269206 1364 +44609 68270570 1358 +44610 68271928 1364 +44611 68273292 1436 +44612 68274728 1436 +44613 68276164 1070 +44614 68277234 1136 +44615 68278370 650 +44616 68279020 122 +44617 68279142 122 +44618 68279264 158 +44619 68279422 764 +44620 68280186 200 +44621 68280386 3950 +44622 68284336 1364 +44623 68285700 1358 +44624 68287058 1364 +44625 68288422 1436 +44626 68289858 1436 +44627 68291294 1052 +44628 68292346 1136 +44629 68293482 650 +44630 68294132 122 +44631 68294254 122 +44632 68294376 158 +44633 68294534 764 +44634 68295298 200 +44635 68295498 8132 +44636 68303630 3950 +44637 68307580 1364 +44638 68308944 1358 +44639 68310302 1364 +44640 68311666 1436 +44641 68313102 1436 +44642 68314538 1070 +44643 68315608 1136 +44644 68316744 650 +44645 68317394 122 +44646 68317516 122 +44647 68317638 158 +44648 68317796 764 +44649 68318560 200 +44650 68318760 3950 +44651 68322710 1364 +44652 68324074 1358 +44653 68325432 1364 +44654 68326796 1436 +44655 68328232 1436 +44656 68329668 1052 +44657 68330720 1136 +44658 68331856 650 +44659 68332506 122 +44660 68332628 122 +44661 68332750 158 +44662 68332908 764 +44663 68333672 200 +44664 68333872 8132 +44665 68342004 3020 +44666 68345024 3038 +44667 68348062 6224 +44668 68354286 1814 +44669 68356100 1814 +44670 68357914 1574 +44671 68359488 1574 +44672 68361062 806 +44673 68361868 2996 +44674 68364864 1736 +44675 68366600 2432 +44676 68369032 2264 +44677 68371296 2264 +44678 68373560 2264 +44679 68375824 1076 +44680 68376900 1076 +44681 68377976 614 +44682 68378590 1076 +44683 68379666 1076 +44684 68380742 2318 +44685 68383060 2234 +44686 68385294 1220 +44687 68386514 1220 +44688 68387734 812 +44689 68388546 806 +44690 68389352 1226 +44691 68390578 326 +44692 68390904 314 +44693 68391218 326 +44694 68391544 320 +44695 68391864 806 +44696 68392670 470 +44697 68393140 482 +44698 68393622 2690 +44699 68396312 2354 +44700 68398666 188 +44701 68398854 1328 +44702 68400182 98 +44703 68400280 1286 +44704 68401566 116 +44705 68401682 1322 +44706 68403004 1322 +44707 68404326 1280 +44708 68405606 1286 +44709 68406892 200 +44710 68407092 1322 +44711 68408414 1280 +44712 68409694 86 +44713 68409780 614 +44714 68410394 362 +44715 68410756 5120 +44716 68415876 2744 +44717 68418620 23017 +44718 68441637 644 +44719 68442281 920 +44720 68443201 308 +44721 68443509 260 +44722 68443769 854 +44723 68444623 116 +44724 68444739 494 +44725 68445233 5024 +44726 68450257 854 +44727 68451111 1106 +44728 68452217 194 +44729 68452411 752 +44730 68453163 2744 +44731 68455907 488 +44732 68456395 542 +44733 68456937 1352 +44734 68458289 2264 +44735 68460553 4849 +44736 68465402 4994 +44737 68470396 13490 +44738 68483886 1777 +44739 68485663 1478 +44740 68487141 1478 +44741 68488619 1478 +44742 68490097 1478 +44743 68491575 872 +44744 68492447 872 +44745 68493319 1022 +44746 68494341 1028 +44747 68495369 1022 +44748 68496391 1028 +44749 68497419 1736 +44750 68499155 2617 +44751 68501772 2617 +44752 68504389 3218 +44753 68507607 3212 +44754 68510819 1478 +44755 68512297 1478 +44756 68513775 422 +44757 68514197 416 +44758 68514613 2294 +44759 68516907 500 +44760 68517407 356 +44761 68517763 1298 +44762 68519061 428 +44763 68519489 428 +44764 68519917 428 +44765 68520345 428 +44766 68520773 428 +44767 68521201 428 +44768 68521629 428 +44769 68522057 428 +44770 68522485 2150 +44771 68524635 2150 +44772 68526785 1712 +44773 68528497 1772 +44774 68530269 1796 +44775 68532065 1466 +44776 68533531 1022 +44777 68534553 440 +44778 68534993 1130 +44779 68536123 1880 +44780 68538003 2402 +44781 68540405 2378 +44782 68542783 5474 +44783 68548257 5402 +44784 68553659 734 +44785 68554393 1304 +44786 68555697 56 +44787 68555753 1310 +44788 68557063 758 +44789 68557821 758 +44790 68558579 758 +44791 68559337 758 +44792 68560095 758 +44793 68560853 758 +44794 68561611 758 +44795 68562369 758 +44796 68563127 758 +44797 68563885 758 +44798 68564643 758 +44799 68565401 758 +44800 68566159 758 +44801 68566917 758 +44802 68567675 758 +44803 68568433 758 +44804 68569191 758 +44805 68569949 758 +44806 68570707 758 +44807 68571465 758 +44808 68572223 758 +44809 68572981 758 +44810 68573739 758 +44811 68574497 758 +44812 68575255 758 +44813 68576013 758 +44814 68576771 758 +44815 68577529 758 +44816 68578287 758 +44817 68579045 758 +44818 68579803 758 +44819 68580561 758 +44820 68581319 758 +44821 68582077 758 +44822 68582835 758 +44823 68583593 758 +44824 68584351 758 +44825 68585109 758 +44826 68585867 758 +44827 68586625 758 +44828 68587383 758 +44829 68588141 758 +44830 68588899 758 +44831 68589657 758 +44832 68590415 758 +44833 68591173 734 +44834 68591907 80 +44835 68591987 5834 +44836 68597821 5822 +44837 68603643 1376 +44838 68605019 3266 +44839 68608285 3266 +44840 68611551 3266 +44841 68614817 1574 +44842 68616391 1574 +44843 68617965 1574 +44844 68619539 1574 +44845 68621113 3134 +44846 68624247 3044 +44847 68627291 2198 +44848 68629489 2234 +44849 68631723 590 +44850 68632313 596 +44851 68632909 1856 +44852 68634765 920 +44853 68635685 1196 +44854 68636881 1196 +44855 68638077 1196 +44856 68639273 1280 +44857 68640553 2000 +44858 68642553 1952 +44859 68644505 1754 +44860 68646259 488 +44861 68646747 2408 +44862 68649155 488 +44863 68649643 2408 +44864 68652051 866 +44865 68652917 896 +44866 68653813 890 +44867 68654703 890 +44868 68655593 2954 +44869 68658547 4838 +44870 68663385 848 +44871 68664233 680 +44872 68664913 956 +44873 68665869 554 +44874 68666423 686 +44875 68667109 290 +44876 68667399 584 +44877 68667983 620 +44878 68668603 620 +44879 68669223 980 +44880 68670203 74 +44881 68670277 980 +44882 68671257 614 +44883 68671871 1328 +44884 68673199 1046 +44885 68674245 1046 +44886 68675291 1718 +44887 68677009 1718 +44888 68678727 1340 +44889 68680067 368 +44890 68680435 374 +44891 68680809 374 +44892 68681183 368 +44893 68681551 374 +44894 68681925 374 +44895 68682299 1070 +44896 68683369 2984 +44897 68686353 2306 +44898 68688659 2300 +44899 68690959 4124 +44900 68695083 2402 +44901 68697485 1436 +44902 68698921 3026 +44903 68701947 3026 +44904 68704973 680 +44905 68705653 920 +44906 68706573 680 +44907 68707253 62 +44908 68707315 1166 +44909 68708481 992 +44910 68709473 2084 +44911 68711557 746 +44912 68712303 758 +44913 68713061 2174 +44914 68715235 2204 +44915 68717439 1712 +44916 68719151 1712 +44917 68720863 1718 +44918 68722581 2414 +44919 68724995 1172 +44920 68726167 32 +44921 68726199 662 +44922 68726861 662 +44923 68727523 2696 +44924 68730219 1232 +44925 68731451 1190 +44926 68732641 1496 +44927 68734137 1478 +44928 68735615 758 +44929 68736373 806 +44930 68737179 1040 +44931 68738219 992 +44932 68739211 2096 +44933 68741307 2102 +44934 68743409 680 +44935 68744089 68 +44936 68744157 1136 +44937 68745293 1076 +44938 68746369 1130 +44939 68747499 1076 +44940 68748575 2402 +44941 68750977 2402 +44942 68753379 5510 +44943 68758889 1652 +44944 68760541 1652 +44945 68762193 1292 +44946 68763485 1268 +44947 68764753 1814 +44948 68766567 1832 +44949 68768399 758 +44950 68769157 758 +44951 68769915 758 +44952 68770673 1916 +44953 68772589 602 +44954 68773191 2366 +44955 68775557 1166 +44956 68776723 86 +44957 68776809 530 +44958 68777339 500 +44959 68777839 86 +44960 68777925 530 +44961 68778455 494 +44962 68778949 1286 +44963 68780235 878 +44964 68781113 872 +44965 68781985 872 +44966 68782857 848 +44967 68783705 740 +44968 68784445 740 +44969 68785185 1838 +44970 68787023 1838 +44971 68788861 2690 +44972 68791551 1526 +44973 68793077 1508 +44974 68794585 1520 +44975 68796105 1526 +44976 68797631 872 +44977 68798503 1712 +44978 68800215 1604 +44979 68801819 2000 +44980 68803819 2000 +44981 68805819 2000 +44982 68807819 2000 +44983 68809819 686 +44984 68810505 1478 +44985 68811983 1478 +44986 68813461 1478 +44987 68814939 1478 +44988 68816417 1478 +44989 68817895 1478 +44990 68819373 1478 +44991 68820851 1478 +44992 68822329 1478 +44993 68823807 1478 +44994 68825285 1478 +44995 68826763 1478 +44996 68828241 1478 +44997 68829719 1478 +44998 68831197 1478 +44999 68832675 1478 +45000 68834153 1478 +45001 68835631 1478 +45002 68837109 1874 +45003 68838983 1940 +45004 68840923 1868 +45005 68842791 1868 +45006 68844659 854 +45007 68845513 872 +45008 68846385 1874 +45009 68848259 1874 +45010 68850133 1418 +45011 68851551 1418 +45012 68852969 1310 +45013 68854279 1310 +45014 68855589 1310 +45015 68856899 1310 +45016 68858209 1904 +45017 68860113 1904 +45018 68862017 1904 +45019 68863921 1904 +45020 68865825 1034 +45021 68866859 1046 +45022 68867905 764 +45023 68868669 764 +45024 68869433 764 +45025 68870197 764 +45026 68870961 3116 +45027 68874077 3956 +45028 68878033 620 +45029 68878653 608 +45030 68879261 842 +45031 68880103 818 +45032 68880921 812 +45033 68881733 506 +45034 68882239 506 +45035 68882745 506 +45036 68883251 842 +45037 68884093 818 +45038 68884911 812 +45039 68885723 506 +45040 68886229 506 +45041 68886735 506 +45042 68887241 1052 +45043 68888293 1106 +45044 68889399 1106 +45045 68890505 2696 +45046 68893201 1052 +45047 68894253 1106 +45048 68895359 2696 +45049 68898055 1106 +45050 68899161 1106 +45051 68900267 2696 +45052 68902963 2696 +45053 68905659 3434 +45054 68909093 2696 +45055 68911789 1106 +45056 68912895 3434 +45057 68916329 2696 +45058 68919025 620 +45059 68919645 620 +45060 68920265 620 +45061 68920885 620 +45062 68921505 860 +45063 68922365 860 +45064 68923225 1412 +45065 68924637 1970 +45066 68926607 1958 +45067 68928565 1970 +45068 68930535 1958 +45069 68932493 518 +45070 68933011 518 +45071 68933529 506 +45072 68934035 524 +45073 68934559 1136 +45074 68935695 1190 +45075 68936885 884 +45076 68937769 872 +45077 68938641 872 +45078 68939513 872 +45079 68940385 836 +45080 68941221 830 +45081 68942051 566 +45082 68942617 1196 +45083 68943813 302 +45084 68944115 494 +45085 68944609 560 +45086 68945169 506 +45087 68945675 1442 +45088 68947117 2162 +45089 68949279 1814 +45090 68951093 746 +45091 68951839 500 +45092 68952339 464 +45093 68952803 440 +45094 68953243 452 +45095 68953695 494 +45096 68954189 596 +45097 68954785 512 +45098 68955297 26545 +45099 68981842 24013 +45100 69005855 5120 +45101 69010975 854 +45102 69011829 4826 +45103 69016655 1844 +45104 69018499 6997 +45105 69025496 446 +45106 69025942 470 +45107 69026412 446 +45108 69026858 452 +45109 69027310 578 +45110 69027888 518 +45111 69028406 446 +45112 69028852 464 +45113 69029316 440 +45114 69029756 470 +45115 69030226 578 +45116 69030804 644 +45117 69031448 1513 +45118 69032961 2744 +45119 69035705 3344 +45120 69039049 1928 +45121 69040977 692 +45122 69041669 1706 +45123 69043375 1706 +45124 69045081 3422 +45125 69048503 494 +45126 69048997 1352 +45127 69050349 1352 +45128 69051701 1478 +45129 69053179 1352 +45130 69054531 1352 +45131 69055883 2528 +45132 69058411 884 +45133 69059295 866 +45134 69060161 1592 +45135 69061753 2060 +45136 69063813 290 +45137 69064103 5594 +45138 69069697 5594 +45139 69075291 5594 +45140 69080885 5594 +45141 69086479 998 +45142 69087477 1304 +45143 69088781 914 +45144 69089695 914 +45145 69090609 1190 +45146 69091799 1136 +45147 69092935 74 +45148 69093009 2012 +45149 69095021 476 +45150 69095497 494 +45151 69095991 1124 +45152 69097115 2840 +45153 69099955 2828 +45154 69102783 1646 +45155 69104429 1646 +45156 69106075 2606 +45157 69108681 2678 +45158 69111359 2678 +45159 69114037 2678 +45160 69116715 2618 +45161 69119333 2636 +45162 69121969 2636 +45163 69124605 2678 +45164 69127283 2678 +45165 69129961 2678 +45166 69132639 2678 +45167 69135317 2618 +45168 69137935 2618 +45169 69140553 2678 +45170 69143231 2678 +45171 69145909 2678 +45172 69148587 2678 +45173 69151265 2618 +45174 69153883 2618 +45175 69156501 2618 +45176 69159119 2618 +45177 69161737 2678 +45178 69164415 2678 +45179 69167093 2618 +45180 69169711 2618 +45181 69172329 2618 +45182 69174947 2618 +45183 69177565 2678 +45184 69180243 2678 +45185 69182921 2678 +45186 69185599 2678 +45187 69188277 2618 +45188 69190895 2618 +45189 69193513 2678 +45190 69196191 2678 +45191 69198869 2678 +45192 69201547 2678 +45193 69204225 2678 +45194 69206903 2678 +45195 69209581 2678 +45196 69212259 2678 +45197 69214937 2678 +45198 69217615 2678 +45199 69220293 2678 +45200 69222971 2678 +45201 69225649 2678 +45202 69228327 2678 +45203 69231005 2606 +45204 69233611 2678 +45205 69236289 2678 +45206 69238967 2678 +45207 69241645 2618 +45208 69244263 2636 +45209 69246899 2636 +45210 69249535 2678 +45211 69252213 2678 +45212 69254891 2678 +45213 69257569 2678 +45214 69260247 2618 +45215 69262865 2618 +45216 69265483 2678 +45217 69268161 2678 +45218 69270839 2678 +45219 69273517 2678 +45220 69276195 2618 +45221 69278813 2618 +45222 69281431 2618 +45223 69284049 2618 +45224 69286667 2678 +45225 69289345 2678 +45226 69292023 2618 +45227 69294641 2618 +45228 69297259 2618 +45229 69299877 2618 +45230 69302495 2678 +45231 69305173 2678 +45232 69307851 2678 +45233 69310529 2678 +45234 69313207 2618 +45235 69315825 2618 +45236 69318443 2678 +45237 69321121 2678 +45238 69323799 2678 +45239 69326477 2678 +45240 69329155 2678 +45241 69331833 2678 +45242 69334511 2678 +45243 69337189 2678 +45244 69339867 2678 +45245 69342545 2678 +45246 69345223 2678 +45247 69347901 2678 +45248 69350579 2678 +45249 69353257 2678 +45250 69355935 2606 +45251 69358541 2678 +45252 69361219 2678 +45253 69363897 2678 +45254 69366575 2618 +45255 69369193 2636 +45256 69371829 2636 +45257 69374465 2678 +45258 69377143 2678 +45259 69379821 2678 +45260 69382499 2678 +45261 69385177 2618 +45262 69387795 2618 +45263 69390413 2678 +45264 69393091 2678 +45265 69395769 2678 +45266 69398447 2678 +45267 69401125 2618 +45268 69403743 2618 +45269 69406361 2618 +45270 69408979 2618 +45271 69411597 2678 +45272 69414275 2678 +45273 69416953 2618 +45274 69419571 2618 +45275 69422189 2618 +45276 69424807 2618 +45277 69427425 2678 +45278 69430103 2678 +45279 69432781 2678 +45280 69435459 2678 +45281 69438137 2618 +45282 69440755 2618 +45283 69443373 2678 +45284 69446051 2678 +45285 69448729 2678 +45286 69451407 2678 +45287 69454085 2678 +45288 69456763 2678 +45289 69459441 2678 +45290 69462119 2678 +45291 69464797 2678 +45292 69467475 2678 +45293 69470153 2678 +45294 69472831 2678 +45295 69475509 2678 +45296 69478187 2678 +45297 69480865 2606 +45298 69483471 2678 +45299 69486149 2678 +45300 69488827 2678 +45301 69491505 2618 +45302 69494123 2636 +45303 69496759 2636 +45304 69499395 2678 +45305 69502073 2678 +45306 69504751 2678 +45307 69507429 2678 +45308 69510107 2618 +45309 69512725 2618 +45310 69515343 2678 +45311 69518021 2678 +45312 69520699 2678 +45313 69523377 2678 +45314 69526055 2618 +45315 69528673 2618 +45316 69531291 2618 +45317 69533909 2618 +45318 69536527 2678 +45319 69539205 2678 +45320 69541883 2618 +45321 69544501 2618 +45322 69547119 2618 +45323 69549737 2618 +45324 69552355 2678 +45325 69555033 2678 +45326 69557711 2678 +45327 69560389 2678 +45328 69563067 2618 +45329 69565685 2618 +45330 69568303 2678 +45331 69570981 2678 +45332 69573659 2678 +45333 69576337 2678 +45334 69579015 2678 +45335 69581693 2678 +45336 69584371 2678 +45337 69587049 2678 +45338 69589727 2678 +45339 69592405 2678 +45340 69595083 2678 +45341 69597761 2678 +45342 69600439 2678 +45343 69603117 2678 +45344 69605795 2606 +45345 69608401 2678 +45346 69611079 2678 +45347 69613757 2678 +45348 69616435 2618 +45349 69619053 2636 +45350 69621689 2636 +45351 69624325 2678 +45352 69627003 2678 +45353 69629681 2678 +45354 69632359 2678 +45355 69635037 2618 +45356 69637655 2618 +45357 69640273 2678 +45358 69642951 2678 +45359 69645629 2678 +45360 69648307 2678 +45361 69650985 2618 +45362 69653603 2618 +45363 69656221 2618 +45364 69658839 2618 +45365 69661457 2678 +45366 69664135 2678 +45367 69666813 2618 +45368 69669431 2618 +45369 69672049 2618 +45370 69674667 2618 +45371 69677285 2678 +45372 69679963 2678 +45373 69682641 2678 +45374 69685319 2678 +45375 69687997 2618 +45376 69690615 2618 +45377 69693233 2678 +45378 69695911 2678 +45379 69698589 2678 +45380 69701267 2678 +45381 69703945 2678 +45382 69706623 2678 +45383 69709301 2678 +45384 69711979 2678 +45385 69714657 2678 +45386 69717335 2678 +45387 69720013 2678 +45388 69722691 2678 +45389 69725369 2678 +45390 69728047 2678 +45391 69730725 1688 +45392 69732413 1682 +45393 69734095 1688 +45394 69735783 1682 +45395 69737465 1688 +45396 69739153 1688 +45397 69740841 1688 +45398 69742529 1688 +45399 69744217 1688 +45400 69745905 1682 +45401 69747587 1688 +45402 69749275 1682 +45403 69750957 1688 +45404 69752645 1688 +45405 69754333 1682 +45406 69756015 1688 +45407 69757703 1682 +45408 69759385 1682 +45409 69761067 1688 +45410 69762755 1682 +45411 69764437 1688 +45412 69766125 1688 +45413 69767813 1688 +45414 69769501 1688 +45415 69771189 1688 +45416 69772877 1688 +45417 69774565 1682 +45418 69776247 1688 +45419 69777935 1688 +45420 69779623 1682 +45421 69781305 1688 +45422 69782993 1682 +45423 69784675 1688 +45424 69786363 1688 +45425 69788051 1682 +45426 69789733 1688 +45427 69791421 1682 +45428 69793103 1688 +45429 69794791 1688 +45430 69796479 1688 +45431 69798167 1688 +45432 69799855 1688 +45433 69801543 1682 +45434 69803225 1688 +45435 69804913 1682 +45436 69806595 1688 +45437 69808283 1688 +45438 69809971 1682 +45439 69811653 1688 +45440 69813341 1682 +45441 69815023 1682 +45442 69816705 1688 +45443 69818393 1682 +45444 69820075 1688 +45445 69821763 1688 +45446 69823451 1688 +45447 69825139 1688 +45448 69826827 1688 +45449 69828515 1688 +45450 69830203 1682 +45451 69831885 1688 +45452 69833573 1688 +45453 69835261 1682 +45454 69836943 1688 +45455 69838631 1682 +45456 69840313 1688 +45457 69842001 1688 +45458 69843689 1682 +45459 69845371 1688 +45460 69847059 1682 +45461 69848741 1688 +45462 69850429 1688 +45463 69852117 1688 +45464 69853805 1688 +45465 69855493 1688 +45466 69857181 1682 +45467 69858863 1688 +45468 69860551 1682 +45469 69862233 1688 +45470 69863921 1688 +45471 69865609 1682 +45472 69867291 1688 +45473 69868979 1682 +45474 69870661 1682 +45475 69872343 1688 +45476 69874031 1682 +45477 69875713 1688 +45478 69877401 1688 +45479 69879089 1688 +45480 69880777 1688 +45481 69882465 1688 +45482 69884153 1688 +45483 69885841 1682 +45484 69887523 1688 +45485 69889211 1688 +45486 69890899 1682 +45487 69892581 1688 +45488 69894269 1682 +45489 69895951 1688 +45490 69897639 1688 +45491 69899327 1682 +45492 69901009 1688 +45493 69902697 1682 +45494 69904379 1688 +45495 69906067 1688 +45496 69907755 1688 +45497 69909443 1688 +45498 69911131 1688 +45499 69912819 1682 +45500 69914501 1688 +45501 69916189 1682 +45502 69917871 1688 +45503 69919559 1688 +45504 69921247 1682 +45505 69922929 1688 +45506 69924617 1682 +45507 69926299 1682 +45508 69927981 1688 +45509 69929669 1682 +45510 69931351 1688 +45511 69933039 1688 +45512 69934727 1688 +45513 69936415 1688 +45514 69938103 1688 +45515 69939791 1688 +45516 69941479 1682 +45517 69943161 1688 +45518 69944849 1688 +45519 69946537 1682 +45520 69948219 1688 +45521 69949907 1682 +45522 69951589 1688 +45523 69953277 1688 +45524 69954965 1682 +45525 69956647 1688 +45526 69958335 1682 +45527 69960017 1688 +45528 69961705 1688 +45529 69963393 1688 +45530 69965081 1688 +45531 69966769 1688 +45532 69968457 1682 +45533 69970139 1688 +45534 69971827 1682 +45535 69973509 1688 +45536 69975197 1688 +45537 69976885 1682 +45538 69978567 1688 +45539 69980255 1682 +45540 69981937 1682 +45541 69983619 1688 +45542 69985307 1682 +45543 69986989 1688 +45544 69988677 1688 +45545 69990365 1688 +45546 69992053 1688 +45547 69993741 1688 +45548 69995429 1688 +45549 69997117 1682 +45550 69998799 1688 +45551 70000487 1688 +45552 70002175 1682 +45553 70003857 1688 +45554 70005545 1682 +45555 70007227 1688 +45556 70008915 1592 +45557 70010507 1592 +45558 70012099 1592 +45559 70013691 1592 +45560 70015283 1592 +45561 70016875 1592 +45562 70018467 1592 +45563 70020059 1592 +45564 70021651 1592 +45565 70023243 1592 +45566 70024835 1592 +45567 70026427 1592 +45568 70028019 1550 +45569 70029569 1556 +45570 70031125 1550 +45571 70032675 1556 +45572 70034231 10717 +45573 70044948 1736 +45574 70046684 1736 +45575 70048420 1286 +45576 70049706 1106 +45577 70050812 1040 +45578 70051852 1328 +45579 70053180 536 +45580 70053716 542 +45581 70054258 614 +45582 70054872 1844 +45583 70056716 656 +45584 70057372 680 +45585 70058052 2606 +45586 70060658 2678 +45587 70063336 2678 +45588 70066014 2678 +45589 70068692 2618 +45590 70071310 2636 +45591 70073946 2636 +45592 70076582 2678 +45593 70079260 2678 +45594 70081938 2678 +45595 70084616 2678 +45596 70087294 2618 +45597 70089912 2618 +45598 70092530 2678 +45599 70095208 2678 +45600 70097886 2678 +45601 70100564 2678 +45602 70103242 2618 +45603 70105860 2618 +45604 70108478 2618 +45605 70111096 2618 +45606 70113714 2678 +45607 70116392 2678 +45608 70119070 2618 +45609 70121688 2618 +45610 70124306 2618 +45611 70126924 2618 +45612 70129542 2678 +45613 70132220 2678 +45614 70134898 2678 +45615 70137576 2678 +45616 70140254 2618 +45617 70142872 2618 +45618 70145490 2678 +45619 70148168 2678 +45620 70150846 2678 +45621 70153524 2678 +45622 70156202 2678 +45623 70158880 2678 +45624 70161558 2678 +45625 70164236 2678 +45626 70166914 2678 +45627 70169592 2678 +45628 70172270 2678 +45629 70174948 2678 +45630 70177626 2678 +45631 70180304 2678 +45632 70182982 2606 +45633 70185588 2678 +45634 70188266 2678 +45635 70190944 2678 +45636 70193622 2618 +45637 70196240 2636 +45638 70198876 2636 +45639 70201512 2678 +45640 70204190 2678 +45641 70206868 2678 +45642 70209546 2678 +45643 70212224 2618 +45644 70214842 2618 +45645 70217460 2678 +45646 70220138 2678 +45647 70222816 2678 +45648 70225494 2678 +45649 70228172 2618 +45650 70230790 2618 +45651 70233408 2618 +45652 70236026 2618 +45653 70238644 2678 +45654 70241322 2678 +45655 70244000 2618 +45656 70246618 2618 +45657 70249236 2618 +45658 70251854 2618 +45659 70254472 2678 +45660 70257150 2678 +45661 70259828 2678 +45662 70262506 2678 +45663 70265184 2618 +45664 70267802 2618 +45665 70270420 2678 +45666 70273098 2678 +45667 70275776 2678 +45668 70278454 2678 +45669 70281132 2678 +45670 70283810 2678 +45671 70286488 2678 +45672 70289166 2678 +45673 70291844 2678 +45674 70294522 2678 +45675 70297200 2678 +45676 70299878 2678 +45677 70302556 2678 +45678 70305234 2678 +45679 70307912 2606 +45680 70310518 2678 +45681 70313196 2678 +45682 70315874 2678 +45683 70318552 2618 +45684 70321170 2636 +45685 70323806 2636 +45686 70326442 2678 +45687 70329120 2678 +45688 70331798 2678 +45689 70334476 2678 +45690 70337154 2618 +45691 70339772 2618 +45692 70342390 2678 +45693 70345068 2678 +45694 70347746 2678 +45695 70350424 2678 +45696 70353102 2618 +45697 70355720 2618 +45698 70358338 2618 +45699 70360956 2618 +45700 70363574 2678 +45701 70366252 2678 +45702 70368930 2618 +45703 70371548 2618 +45704 70374166 2618 +45705 70376784 2618 +45706 70379402 2678 +45707 70382080 2678 +45708 70384758 2678 +45709 70387436 2678 +45710 70390114 2618 +45711 70392732 2618 +45712 70395350 2678 +45713 70398028 2678 +45714 70400706 2678 +45715 70403384 2678 +45716 70406062 2678 +45717 70408740 2678 +45718 70411418 2678 +45719 70414096 2678 +45720 70416774 2678 +45721 70419452 2678 +45722 70422130 2678 +45723 70424808 2678 +45724 70427486 2678 +45725 70430164 2678 +45726 70432842 2606 +45727 70435448 2678 +45728 70438126 2678 +45729 70440804 2678 +45730 70443482 2618 +45731 70446100 2636 +45732 70448736 2636 +45733 70451372 2678 +45734 70454050 2678 +45735 70456728 2678 +45736 70459406 2678 +45737 70462084 2618 +45738 70464702 2618 +45739 70467320 2678 +45740 70469998 2678 +45741 70472676 2678 +45742 70475354 2678 +45743 70478032 2618 +45744 70480650 2618 +45745 70483268 2618 +45746 70485886 2618 +45747 70488504 2678 +45748 70491182 2678 +45749 70493860 2618 +45750 70496478 2618 +45751 70499096 2618 +45752 70501714 2618 +45753 70504332 2678 +45754 70507010 2678 +45755 70509688 2678 +45756 70512366 2678 +45757 70515044 2618 +45758 70517662 2618 +45759 70520280 2678 +45760 70522958 2678 +45761 70525636 2678 +45762 70528314 2678 +45763 70530992 2678 +45764 70533670 2678 +45765 70536348 2678 +45766 70539026 2678 +45767 70541704 2678 +45768 70544382 2678 +45769 70547060 2678 +45770 70549738 2678 +45771 70552416 2678 +45772 70555094 2678 +45773 70557772 2606 +45774 70560378 2678 +45775 70563056 2678 +45776 70565734 2678 +45777 70568412 2618 +45778 70571030 2636 +45779 70573666 2636 +45780 70576302 2678 +45781 70578980 2678 +45782 70581658 2678 +45783 70584336 2678 +45784 70587014 2618 +45785 70589632 2618 +45786 70592250 2678 +45787 70594928 2678 +45788 70597606 2678 +45789 70600284 2678 +45790 70602962 2618 +45791 70605580 2618 +45792 70608198 2618 +45793 70610816 2618 +45794 70613434 2678 +45795 70616112 2678 +45796 70618790 2618 +45797 70621408 2618 +45798 70624026 2618 +45799 70626644 2618 +45800 70629262 2678 +45801 70631940 2678 +45802 70634618 2678 +45803 70637296 2678 +45804 70639974 2618 +45805 70642592 2618 +45806 70645210 2678 +45807 70647888 2678 +45808 70650566 2678 +45809 70653244 2678 +45810 70655922 2678 +45811 70658600 2678 +45812 70661278 2678 +45813 70663956 2678 +45814 70666634 2678 +45815 70669312 2678 +45816 70671990 2678 +45817 70674668 2678 +45818 70677346 2678 +45819 70680024 2678 +45820 70682702 1688 +45821 70684390 1682 +45822 70686072 1688 +45823 70687760 1682 +45824 70689442 1688 +45825 70691130 1688 +45826 70692818 1688 +45827 70694506 1688 +45828 70696194 1688 +45829 70697882 1682 +45830 70699564 1688 +45831 70701252 1682 +45832 70702934 1688 +45833 70704622 1688 +45834 70706310 1682 +45835 70707992 1688 +45836 70709680 1682 +45837 70711362 1682 +45838 70713044 1688 +45839 70714732 1682 +45840 70716414 1688 +45841 70718102 1688 +45842 70719790 1688 +45843 70721478 1688 +45844 70723166 1688 +45845 70724854 1688 +45846 70726542 1682 +45847 70728224 1688 +45848 70729912 1688 +45849 70731600 1682 +45850 70733282 1688 +45851 70734970 1682 +45852 70736652 1688 +45853 70738340 1688 +45854 70740028 1682 +45855 70741710 1688 +45856 70743398 1682 +45857 70745080 1688 +45858 70746768 1688 +45859 70748456 1688 +45860 70750144 1688 +45861 70751832 1688 +45862 70753520 1682 +45863 70755202 1688 +45864 70756890 1682 +45865 70758572 1688 +45866 70760260 1688 +45867 70761948 1682 +45868 70763630 1688 +45869 70765318 1682 +45870 70767000 1682 +45871 70768682 1688 +45872 70770370 1682 +45873 70772052 1688 +45874 70773740 1688 +45875 70775428 1688 +45876 70777116 1688 +45877 70778804 1688 +45878 70780492 1688 +45879 70782180 1682 +45880 70783862 1688 +45881 70785550 1688 +45882 70787238 1682 +45883 70788920 1688 +45884 70790608 1682 +45885 70792290 1688 +45886 70793978 1688 +45887 70795666 1682 +45888 70797348 1688 +45889 70799036 1682 +45890 70800718 1688 +45891 70802406 1688 +45892 70804094 1688 +45893 70805782 1688 +45894 70807470 1688 +45895 70809158 1682 +45896 70810840 1688 +45897 70812528 1682 +45898 70814210 1688 +45899 70815898 1688 +45900 70817586 1682 +45901 70819268 1688 +45902 70820956 1682 +45903 70822638 1682 +45904 70824320 1688 +45905 70826008 1682 +45906 70827690 1688 +45907 70829378 1688 +45908 70831066 1688 +45909 70832754 1688 +45910 70834442 1688 +45911 70836130 1688 +45912 70837818 1682 +45913 70839500 1688 +45914 70841188 1688 +45915 70842876 1682 +45916 70844558 1688 +45917 70846246 1682 +45918 70847928 1688 +45919 70849616 1688 +45920 70851304 1682 +45921 70852986 1688 +45922 70854674 1682 +45923 70856356 1688 +45924 70858044 1688 +45925 70859732 1688 +45926 70861420 1688 +45927 70863108 1688 +45928 70864796 1682 +45929 70866478 1688 +45930 70868166 1682 +45931 70869848 1688 +45932 70871536 1688 +45933 70873224 1682 +45934 70874906 1688 +45935 70876594 1682 +45936 70878276 1682 +45937 70879958 1688 +45938 70881646 1682 +45939 70883328 1688 +45940 70885016 1688 +45941 70886704 1688 +45942 70888392 1688 +45943 70890080 1688 +45944 70891768 1688 +45945 70893456 1682 +45946 70895138 1688 +45947 70896826 1688 +45948 70898514 1682 +45949 70900196 1688 +45950 70901884 1682 +45951 70903566 1688 +45952 70905254 1688 +45953 70906942 1682 +45954 70908624 1688 +45955 70910312 1682 +45956 70911994 1688 +45957 70913682 1688 +45958 70915370 1688 +45959 70917058 1688 +45960 70918746 1688 +45961 70920434 1682 +45962 70922116 1688 +45963 70923804 1682 +45964 70925486 1688 +45965 70927174 1688 +45966 70928862 1682 +45967 70930544 1688 +45968 70932232 1682 +45969 70933914 1682 +45970 70935596 1688 +45971 70937284 1682 +45972 70938966 1688 +45973 70940654 1688 +45974 70942342 1688 +45975 70944030 1688 +45976 70945718 1688 +45977 70947406 1688 +45978 70949094 1682 +45979 70950776 1688 +45980 70952464 1688 +45981 70954152 1682 +45982 70955834 1688 +45983 70957522 1682 +45984 70959204 1688 +45985 70960892 3356 +45986 70964248 1592 +45987 70965840 1592 +45988 70967432 1592 +45989 70969024 1592 +45990 70970616 1592 +45991 70972208 1592 +45992 70973800 1592 +45993 70975392 1592 +45994 70976984 1592 +45995 70978576 1592 +45996 70980168 1592 +45997 70981760 1592 +45998 70983352 1754 +45999 70985106 1754 +46000 70986860 1754 +46001 70988614 1754 +46002 70990368 1754 +46003 70992122 1754 +46004 70993876 1754 +46005 70995630 1754 +46006 70997384 1754 +46007 70999138 1754 +46008 71000892 1754 +46009 71002646 1754 +46010 71004400 314 +46011 71004714 350 +46012 71005064 434 +46013 71005498 314 +46014 71005812 350 +46015 71006162 434 +46016 71006596 314 +46017 71006910 350 +46018 71007260 434 +46019 71007694 314 +46020 71008008 350 +46021 71008358 434 +46022 71008792 314 +46023 71009106 350 +46024 71009456 434 +46025 71009890 314 +46026 71010204 350 +46027 71010554 434 +46028 71010988 314 +46029 71011302 350 +46030 71011652 434 +46031 71012086 314 +46032 71012400 350 +46033 71012750 434 +46034 71013184 314 +46035 71013498 350 +46036 71013848 434 +46037 71014282 314 +46038 71014596 350 +46039 71014946 434 +46040 71015380 314 +46041 71015694 350 +46042 71016044 434 +46043 71016478 314 +46044 71016792 350 +46045 71017142 434 +46046 71017576 2054 +46047 71019630 2054 +46048 71021684 476 +46049 71022160 2072 +46050 71024232 4214 +46051 71028446 4214 +46052 71032660 1586 +46053 71034246 464 +46054 71034710 476 +46055 71035186 914 +46056 71036100 1766 +46057 71037866 1268 +46058 71039134 1268 +46059 71040402 1268 +46060 71041670 1268 +46061 71042938 2864 +46062 71045802 2816 +46063 71048618 2852 +46064 71051470 2906 +46065 71054376 1526 +46066 71055902 1448 +46067 71057350 980 +46068 71058330 536 +46069 71058866 470 +46070 71059336 3596 +46071 71062932 3596 +46072 71066528 3602 +46073 71070130 3590 +46074 71073720 3590 +46075 71077310 3608 +46076 71080918 2930 +46077 71083848 2912 +46078 71086760 2882 +46079 71089642 1742 +46080 71091384 392 +46081 71091776 1340 +46082 71093116 962 +46083 71094078 1682 +46084 71095760 200 +46085 71095960 212 +46086 71096172 200 +46087 71096372 182 +46088 71096554 1340 +46089 71097894 962 +46090 71098856 1682 +46091 71100538 1022 +46092 71101560 200 +46093 71101760 212 +46094 71101972 200 +46095 71102172 182 +46096 71102354 1022 +46097 71103376 392 +46098 71103768 848 +46099 71104616 584 +46100 71105200 44 +46101 71105244 1766 +46102 71107010 1706 +46103 71108716 1730 +46104 71110446 476 +46105 71110922 3212 +46106 71114134 266 +46107 71114400 2516 +46108 71116916 2516 +46109 71119432 818 +46110 71120250 2372 +46111 71122622 1112 +46112 71123734 1112 +46113 71124846 1112 +46114 71125958 1112 +46115 71127070 2126 +46116 71129196 1154 +46117 71130350 734 +46118 71131084 662 +46119 71131746 206 +46120 71131952 206 +46121 71132158 206 +46122 71132364 206 +46123 71132570 800 +46124 71133370 482 +46125 71133852 1946 +46126 71135798 2702 +46127 71138500 2690 +46128 71141190 2702 +46129 71143892 2702 +46130 71146594 2126 +46131 71148720 2126 +46132 71150846 6865 +46133 71157711 650 +46134 71158361 650 +46135 71159011 650 +46136 71159661 656 +46137 71160317 650 +46138 71160967 650 +46139 71161617 650 +46140 71162267 2018 +46141 71164285 2024 +46142 71166309 2024 +46143 71168333 2024 +46144 71170357 2024 +46145 71172381 2024 +46146 71174405 1430 +46147 71175835 2024 +46148 71177859 1448 +46149 71179307 2024 +46150 71181331 2024 +46151 71183355 1832 +46152 71185187 2006 +46153 71187193 4580 +46154 71191773 4316 +46155 71196089 2414 +46156 71198503 2582 +46157 71201085 8317 +46158 71209402 8413 +46159 71217815 1880 +46160 71219695 1886 +46161 71221581 1550 +46162 71223131 1838 +46163 71224969 1424 +46164 71226393 1628 +46165 71228021 1664 +46166 71229685 1664 +46167 71231349 1664 +46168 71233013 1664 +46169 71234677 1988 +46170 71236665 1958 +46171 71238623 512 +46172 71239135 926 +46173 71240061 1082 +46174 71241143 1184 +46175 71242327 1196 +46176 71243523 1040 +46177 71244563 1604 +46178 71246167 1112 +46179 71247279 1106 +46180 71248385 1112 +46181 71249497 1106 +46182 71250603 2918 +46183 71253521 2918 +46184 71256439 4538 +46185 71260977 1220 +46186 71262197 914 +46187 71263111 1652 +46188 71264763 626 +46189 71265389 632 +46190 71266021 644 +46191 71266665 632 +46192 71267297 626 +46193 71267923 632 +46194 71268555 644 +46195 71269199 632 +46196 71269831 2978 +46197 71272809 638 +46198 71273447 1454 +46199 71274901 2972 +46200 71277873 2516 +46201 71280389 620 +46202 71281009 944 +46203 71281953 56 +46204 71282009 1934 +46205 71283943 1934 +46206 71285877 1934 +46207 71287811 1652 +46208 71289463 512 +46209 71289975 506 +46210 71290481 1940 +46211 71292421 68 +46212 71292489 794 +46213 71293283 590 +46214 71293873 32 +46215 71293905 38 +46216 71293943 68 +46217 71294011 794 +46218 71294805 578 +46219 71295383 32 +46220 71295415 38 +46221 71295453 68 +46222 71295521 794 +46223 71296315 590 +46224 71296905 32 +46225 71296937 38 +46226 71296975 68 +46227 71297043 794 +46228 71297837 590 +46229 71298427 38 +46230 71298465 38 +46231 71298503 872 +46232 71299375 128 +46233 71299503 1268 +46234 71300771 1352 +46235 71302123 1550 +46236 71303673 1100 +46237 71304773 1112 +46238 71305885 1238 +46239 71307123 590 +46240 71307713 854 +46241 71308567 746 +46242 71309313 842 +46243 71310155 794 +46244 71310949 866 +46245 71311815 866 +46246 71312681 632 +46247 71313313 506 +46248 71313819 848 +46249 71314667 602 +46250 71315269 362 +46251 71315631 338 +46252 71315969 1322 +46253 71317291 1370 +46254 71318661 1118 +46255 71319779 632 +46256 71320411 908 +46257 71321319 770 +46258 71322089 782 +46259 71322871 740 +46260 71323611 440 +46261 71324051 500 +46262 71324551 338 +46263 71324889 392 +46264 71325281 1880 +46265 71327161 1244 +46266 71328405 1898 +46267 71330303 1484 +46268 71331787 1916 +46269 71333703 1424 +46270 71335127 1244 +46271 71336371 2114 +46272 71338485 548 +46273 71339033 566 +46274 71339599 1316 +46275 71340915 446 +46276 71341361 362 +46277 71341723 458 +46278 71342181 362 +46279 71342543 1934 +46280 71344477 1916 +46281 71346393 1934 +46282 71348327 1934 +46283 71350261 1916 +46284 71352177 1934 +46285 71354111 2036 +46286 71356147 2030 +46287 71358177 2018 +46288 71360195 1928 +46289 71362123 1928 +46290 71364051 1922 +46291 71365973 704 +46292 71366677 1814 +46293 71368491 854 +46294 71369345 848 +46295 71370193 326 +46296 71370519 410 +46297 71370929 416 +46298 71371345 350 +46299 71371695 152 +46300 71371847 1496 +46301 71373343 2372 +46302 71375715 2180 +46303 71377895 1766 +46304 71379661 1304 +46305 71380965 1358 +46306 71382323 1406 +46307 71383729 1148 +46308 71384877 1238 +46309 71386115 1028 +46310 71387143 1268 +46311 71388411 836 +46312 71389247 1226 +46313 71390473 1202 +46314 71391675 926 +46315 71392601 1130 +46316 71393731 1088 +46317 71394819 1064 +46318 71395883 962 +46319 71396845 602 +46320 71397447 794 +46321 71398241 1273 +46322 71399514 716 +46323 71400230 812 +46324 71401042 818 +46325 71401860 890 +46326 71402750 632 +46327 71403382 596 +46328 71403978 650 +46329 71404628 776 +46330 71405404 662 +46331 71406066 692 +46332 71406758 740 +46333 71407498 620 +46334 71408118 524 +46335 71408642 422 +46336 71409064 308 +46337 71409372 320 +46338 71409692 158 +46339 71409850 632 +46340 71410482 554 +46341 71411036 752 +46342 71411788 1184 +46343 71412972 926 +46344 71413898 1310 +46345 71415208 1286 +46346 71416494 1334 +46347 71417828 1376 +46348 71419204 1580 +46349 71420784 1118 +46350 71421902 1430 +46351 71423332 1118 +46352 71424450 1244 +46353 71425694 1118 +46354 71426812 584 +46355 71427396 866 +46356 71428262 710 +46357 71428972 902 +46358 71429874 818 +46359 71430692 728 +46360 71431420 860 +46361 71432280 800 +46362 71433080 872 +46363 71433952 854 +46364 71434806 608 +46365 71435414 506 +46366 71435920 782 +46367 71436702 854 +46368 71437556 752 +46369 71438308 458 +46370 71438766 614 +46371 71439380 506 +46372 71439886 380 +46373 71440266 338 +46374 71440604 416 +46375 71441020 1886 +46376 71442906 338 +46377 71443244 1232 +46378 71444476 7465 +46379 71451941 1406 +46380 71453347 1880 +46381 71455227 1040 +46382 71456267 3817 +46383 71460084 2521 +46384 71462605 1352 +46385 71463957 1154 +46386 71465111 1004 +46387 71466115 488 +46388 71466603 680 +46389 71467283 536 +46390 71467819 728 +46391 71468547 452 +46392 71468999 506 +46393 71469505 716 +46394 71470221 1274 +46395 71471495 1106 +46396 71472601 878 +46397 71473479 626 +46398 71474105 848 +46399 71474953 434 +46400 71475387 380 +46401 71475767 338 +46402 71476105 1886 +46403 71477991 848 +46404 71478839 722 +46405 71479561 434 +46406 71479995 392 +46407 71480387 1238 +46408 71481625 1238 +46409 71482863 824 +46410 71483687 2894 +46411 71486581 32 +46412 71486613 4034 +46413 71490647 2744 +46414 71493391 1502 +46415 71494893 2744 +46416 71497637 788 +46417 71498425 764 +46418 71499189 698 +46419 71499887 2708 +46420 71502595 932 +46421 71503527 1658 +46422 71505185 938 +46423 71506123 3674 +46424 71509797 3746 +46425 71513543 668 +46426 71514211 608 +46427 71514819 1309 +46428 71516128 5497 +46429 71521625 656 +46430 71522281 320 +46431 71522601 3056 +46432 71525657 356 +46433 71526013 560 +46434 71526573 110 +46435 71526683 320 +46436 71527003 1064 +46437 71528067 644 +46438 71528711 1070 +46439 71529781 116 +46440 71529897 2569 +46441 71532466 56 +46442 71532522 440 +46443 71532962 452 +46444 71533414 692 +46445 71534106 704 +46446 71534810 668 +46447 71535478 452 +46448 71535930 452 +46449 71536382 626 +46450 71537008 662 +46451 71537670 1346 +46452 71539016 644 +46453 71539660 692 +46454 71540352 698 +46455 71541050 950 +46456 71542000 962 +46457 71542962 1370 +46458 71544332 1754 +46459 71546086 1754 +46460 71547840 1754 +46461 71549594 932 +46462 71550526 122 +46463 71550648 1742 +46464 71552390 1772 +46465 71554162 1916 +46466 71556078 1922 +46467 71558000 1688 +46468 71559688 1694 +46469 71561382 1730 +46470 71563112 1016 +46471 71564128 1016 +46472 71565144 1016 +46473 71566160 1016 +46474 71567176 1604 +46475 71568780 1598 +46476 71570378 1592 +46477 71571970 902 +46478 71572872 908 +46479 71573780 2096 +46480 71575876 2096 +46481 71577972 1850 +46482 71579822 890 +46483 71580712 452 +46484 71581164 896 +46485 71582060 11012 +46486 71593072 10988 +46487 71604060 22561 +46488 71626621 464 +46489 71627085 470 +46490 71627555 782 +46491 71628337 1604 +46492 71629941 2018 +46493 71631959 2162 +46494 71634121 992 +46495 71635113 1340 +46496 71636453 1148 +46497 71637601 878 +46498 71638479 734 +46499 71639213 824 +46500 71640037 1142 +46501 71641179 1190 +46502 71642369 1106 +46503 71643475 812 +46504 71644287 1028 +46505 71645315 320 +46506 71645635 1400 +46507 71647035 830 +46508 71647865 764 +46509 71648629 3020 +46510 71651649 650 +46511 71652299 758 +46512 71653057 644 +46513 71653701 722 +46514 71654423 482 +46515 71654905 446 +46516 71655351 1064 +46517 71656415 4004 +46518 71660419 2156 +46519 71662575 2113 +46520 71664688 224 +46521 71664912 848 +46522 71665760 788 +46523 71666548 1358 +46524 71667906 338 +46525 71668244 5641 +46526 71673885 3206 +46527 71677091 3409 +46528 71680500 812 +46529 71681312 812 +46530 71682124 1196 +46531 71683320 818 +46532 71684138 620 +46533 71684758 590 +46534 71685348 680 +46535 71686028 470 +46536 71686498 2558 +46537 71689056 2030 +46538 71691086 1718 +46539 71692804 2600 +46540 71695404 806 +46541 71696210 5065 +46542 71701275 1292 +46543 71702567 3242 +46544 71705809 3410 +46545 71709219 3410 +46546 71712629 1262 +46547 71713891 458 +46548 71714349 680 +46549 71715029 3776 +46550 71718805 3776 +46551 71722581 1262 +46552 71723843 794 +46553 71724637 1814 +46554 71726451 1814 +46555 71728265 1922 +46556 71730187 1922 +46557 71732109 1922 +46558 71734031 1922 +46559 71735953 1088 +46560 71737041 1088 +46561 71738129 464 +46562 71738593 596 +46563 71739189 1436 +46564 71740625 1460 +46565 71742085 1238 +46566 71743323 1238 +46567 71744561 1238 +46568 71745799 1238 +46569 71747037 1238 +46570 71748275 1238 +46571 71749513 4622 +46572 71754135 2192 +46573 71756327 2330 +46574 71758657 674 +46575 71759331 56 +46576 71759387 590 +46577 71759977 590 +46578 71760567 590 +46579 71761157 590 +46580 71761747 590 +46581 71762337 590 +46582 71762927 590 +46583 71763517 590 +46584 71764107 1862 +46585 71765969 1862 +46586 71767831 1724 +46587 71769555 1694 +46588 71771249 1712 +46589 71772961 1712 +46590 71774673 1322 +46591 71775995 1292 +46592 71777287 2198 +46593 71779485 1118 +46594 71780603 1118 +46595 71781721 1118 +46596 71782839 1088 +46597 71783927 1094 +46598 71785021 1094 +46599 71786115 1094 +46600 71787209 1088 +46601 71788297 1130 +46602 71789427 1136 +46603 71790563 1136 +46604 71791699 1088 +46605 71792787 1892 +46606 71794679 1550 +46607 71796229 1532 +46608 71797761 92 +46609 71797853 92 +46610 71797945 1496 +46611 71799441 2372 +46612 71801813 1268 +46613 71803081 2516 +46614 71805597 398 +46615 71805995 398 +46616 71806393 2114 +46617 71808507 2114 +46618 71810621 2426 +46619 71813047 1574 +46620 71814621 1208 +46621 71815829 1232 +46622 71817061 1574 +46623 71818635 176 +46624 71818811 158 +46625 71818969 596 +46626 71819565 962 +46627 71820527 2186 +46628 71822713 1928 +46629 71824641 2180 +46630 71826821 4196 +46631 71831017 836 +46632 71831853 836 +46633 71832689 2600 +46634 71835289 2606 +46635 71837895 9277 +46636 71847172 98 +46637 71847270 632 +46638 71847902 98 +46639 71848000 632 +46640 71848632 98 +46641 71848730 632 +46642 71849362 992 +46643 71850354 1574 +46644 71851928 782 +46645 71852710 770 +46646 71853480 1022 +46647 71854502 1022 +46648 71855524 1478 +46649 71857002 1478 +46650 71858480 338 +46651 71858818 2240 +46652 71861058 1346 +46653 71862404 1352 +46654 71863756 3032 +46655 71866788 1346 +46656 71868134 1352 +46657 71869486 3032 +46658 71872518 1346 +46659 71873864 1352 +46660 71875216 3032 +46661 71878248 1088 +46662 71879336 1088 +46663 71880424 1088 +46664 71881512 1088 +46665 71882600 1088 +46666 71883688 1088 +46667 71884776 1088 +46668 71885864 1088 +46669 71886952 1088 +46670 71888040 1088 +46671 71889128 1088 +46672 71890216 1088 +46673 71891304 1088 +46674 71892392 1088 +46675 71893480 1088 +46676 71894568 1088 +46677 71895656 1088 +46678 71896744 1088 +46679 71897832 1088 +46680 71898920 1088 +46681 71900008 1088 +46682 71901096 1088 +46683 71902184 1088 +46684 71903272 1088 +46685 71904360 1088 +46686 71905448 1088 +46687 71906536 1088 +46688 71907624 1088 +46689 71908712 1088 +46690 71909800 1088 +46691 71910888 1088 +46692 71911976 1088 +46693 71913064 1088 +46694 71914152 1088 +46695 71915240 1088 +46696 71916328 1088 +46697 71917416 1088 +46698 71918504 1088 +46699 71919592 1088 +46700 71920680 1088 +46701 71921768 1088 +46702 71922856 1088 +46703 71923944 1088 +46704 71925032 1088 +46705 71926120 1088 +46706 71927208 1088 +46707 71928296 1088 +46708 71929384 1088 +46709 71930472 1088 +46710 71931560 1088 +46711 71932648 1088 +46712 71933736 1088 +46713 71934824 1088 +46714 71935912 1088 +46715 71937000 1088 +46716 71938088 1088 +46717 71939176 1088 +46718 71940264 1088 +46719 71941352 1088 +46720 71942440 1088 +46721 71943528 1088 +46722 71944616 1088 +46723 71945704 1742 +46724 71947446 1742 +46725 71949188 1742 +46726 71950930 1742 +46727 71952672 1028 +46728 71953700 1028 +46729 71954728 1028 +46730 71955756 1028 +46731 71956784 1712 +46732 71958496 1718 +46733 71960214 1730 +46734 71961944 776 +46735 71962720 776 +46736 71963496 1676 +46737 71965172 2528 +46738 71967700 44 +46739 71967744 4106 +46740 71971850 56 +46741 71971906 1454 +46742 71973360 1424 +46743 71974784 1460 +46744 71976244 1454 +46745 71977698 1424 +46746 71979122 1460 +46747 71980582 992 +46748 71981574 5840 +46749 71987414 6008 +46750 71993422 5840 +46751 71999262 6008 +46752 72005270 5840 +46753 72011110 6008 +46754 72017118 1088 +46755 72018206 884 +46756 72019090 1088 +46757 72020178 896 +46758 72021074 2246 +46759 72023320 4940 +46760 72028260 4874 +46761 72033134 4976 +46762 72038110 1982 +46763 72040092 2000 +46764 72042092 1994 +46765 72044086 1994 +46766 72046080 1706 +46767 72047786 1340 +46768 72049126 1448 +46769 72050574 1382 +46770 72051956 1238 +46771 72053194 1238 +46772 72054432 674 +46773 72055106 680 +46774 72055786 674 +46775 72056460 680 +46776 72057140 752 +46777 72057892 740 +46778 72058632 746 +46779 72059378 752 +46780 72060130 740 +46781 72060870 746 +46782 72061616 848 +46783 72062464 848 +46784 72063312 1598 +46785 72064910 2222 +46786 72067132 2222 +46787 72069354 2222 +46788 72071576 2222 +46789 72073798 2222 +46790 72076020 2222 +46791 72078242 2168 +46792 72080410 2222 +46793 72082632 500 +46794 72083132 464 +46795 72083596 500 +46796 72084096 488 +46797 72084584 488 +46798 72085072 428 +46799 72085500 56 +46800 72085556 698 +46801 72086254 998 +46802 72087252 374 +46803 72087626 2708 +46804 72090334 2714 +46805 72093048 2714 +46806 72095762 2714 +46807 72098476 740 +46808 72099216 2258 +46809 72101474 992 +46810 72102466 2180 +46811 72104646 764 +46812 72105410 1118 +46813 72106528 344 +46814 72106872 1406 +46815 72108278 944 +46816 72109222 740 +46817 72109962 1070 +46818 72111032 1202 +46819 72112234 326 +46820 72112560 722 +46821 72113282 590 +46822 72113872 464 +46823 72114336 380 +46824 72114716 662 +46825 72115378 620 +46826 72115998 512 +46827 72116510 620 +46828 72117130 374 +46829 72117504 608 +46830 72118112 524 +46831 72118636 560 +46832 72119196 704 +46833 72119900 488 +46834 72120388 794 +46835 72121182 1058 +46836 72122240 926 +46837 72123166 1238 +46838 72124404 698 +46839 72125102 350 +46840 72125452 344 +46841 72125796 860 +46842 72126656 608 +46843 72127264 482 +46844 72127746 272 +46845 72128018 626 +46846 72128644 686 +46847 72129330 872 +46848 72130202 740 +46849 72130942 1274 +46850 72132216 830 +46851 72133046 392 +46852 72133438 698 +46853 72134136 494 +46854 72134630 302 +46855 72134932 1640 +46856 72136572 1280 +46857 72137852 536 +46858 72138388 530 +46859 72138918 236 +46860 72139154 302 +46861 72139456 2216 +46862 72141672 158 +46863 72141830 752 +46864 72142582 2324 +46865 72144906 344 +46866 72145250 1406 +46867 72146656 944 +46868 72147600 740 +46869 72148340 1070 +46870 72149410 1202 +46871 72150612 326 +46872 72150938 722 +46873 72151660 590 +46874 72152250 464 +46875 72152714 380 +46876 72153094 662 +46877 72153756 620 +46878 72154376 512 +46879 72154888 620 +46880 72155508 374 +46881 72155882 608 +46882 72156490 524 +46883 72157014 704 +46884 72157718 704 +46885 72158422 476 +46886 72158898 794 +46887 72159692 1058 +46888 72160750 926 +46889 72161676 1238 +46890 72162914 698 +46891 72163612 350 +46892 72163962 344 +46893 72164306 860 +46894 72165166 608 +46895 72165774 482 +46896 72166256 272 +46897 72166528 626 +46898 72167154 686 +46899 72167840 872 +46900 72168712 740 +46901 72169452 1274 +46902 72170726 830 +46903 72171556 392 +46904 72171948 698 +46905 72172646 494 +46906 72173140 302 +46907 72173442 1640 +46908 72175082 1280 +46909 72176362 536 +46910 72176898 530 +46911 72177428 236 +46912 72177664 302 +46913 72177966 716 +46914 72178682 1202 +46915 72179884 1748 +46916 72181632 512 +46917 72182144 962 +46918 72183106 488 +46919 72183594 938 +46920 72184532 500 +46921 72185032 944 +46922 72185976 494 +46923 72186470 950 +46924 72187420 1508 +46925 72188928 2618 +46926 72191546 590 +46927 72192136 590 +46928 72192726 1772 +46929 72194498 1742 +46930 72196240 296 +46931 72196536 1952 +46932 72198488 1952 +46933 72200440 1952 +46934 72202392 2720 +46935 72205112 2720 +46936 72207832 818 +46937 72208650 818 +46938 72209468 818 +46939 72210286 818 +46940 72211104 818 +46941 72211922 818 +46942 72212740 818 +46943 72213558 818 +46944 72214376 818 +46945 72215194 818 +46946 72216012 818 +46947 72216830 818 +46948 72217648 818 +46949 72218466 818 +46950 72219284 818 +46951 72220102 818 +46952 72220920 818 +46953 72221738 818 +46954 72222556 818 +46955 72223374 818 +46956 72224192 818 +46957 72225010 818 +46958 72225828 818 +46959 72226646 818 +46960 72227464 818 +46961 72228282 818 +46962 72229100 818 +46963 72229918 818 +46964 72230736 818 +46965 72231554 818 +46966 72232372 818 +46967 72233190 818 +46968 72234008 818 +46969 72234826 818 +46970 72235644 818 +46971 72236462 818 +46972 72237280 722 +46973 72238002 722 +46974 72238724 770 +46975 72239494 542 +46976 72240036 542 +46977 72240578 542 +46978 72241120 1028 +46979 72242148 1028 +46980 72243176 674 +46981 72243850 488 +46982 72244338 932 +46983 72245270 932 +46984 72246202 950 +46985 72247152 932 +46986 72248084 932 +46987 72249016 950 +46988 72249966 2144 +46989 72252110 1292 +46990 72253402 1292 +46991 72254694 2000 +46992 72256694 2000 +46993 72258694 1628 +46994 72260322 1628 +46995 72261950 1712 +46996 72263662 1658 +46997 72265320 1130 +46998 72266450 1424 +46999 72267874 866 +47000 72268740 848 +47001 72269588 4172 +47002 72273760 2654 +47003 72276414 2588 +47004 72279002 524 +47005 72279526 1586 +47006 72281112 734 +47007 72281846 1268 +47008 72283114 1298 +47009 72284412 1148 +47010 72285560 1082 +47011 72286642 926 +47012 72287568 542 +47013 72288110 470 +47014 72288580 746 +47015 72289326 518 +47016 72289844 644 +47017 72290488 1052 +47018 72291540 1034 +47019 72292574 722 +47020 72293296 1016 +47021 72294312 746 +47022 72295058 728 +47023 72295786 752 +47024 72296538 392 +47025 72296930 272 +47026 72297202 548 +47027 72297750 320 +47028 72298070 482 +47029 72298552 464 +47030 72299016 506 +47031 72299522 548 +47032 72300070 596 +47033 72300666 692 +47034 72301358 1916 +47035 72303274 2822 +47036 72306096 656 +47037 72306752 2924 +47038 72309676 3932 +47039 72313608 1106 +47040 72314714 500 +47041 72315214 524 +47042 72315738 1982 +47043 72317720 1988 +47044 72319708 1952 +47045 72321660 1346 +47046 72323006 1454 +47047 72324460 1454 +47048 72325914 1454 +47049 72327368 3284 +47050 72330652 3284 +47051 72333936 3350 +47052 72337286 3188 +47053 72340474 806 +47054 72341280 812 +47055 72342092 812 +47056 72342904 4334 +47057 72347238 4334 +47058 72351572 854 +47059 72352426 866 +47060 72353292 1658 +47061 72354950 1658 +47062 72356608 1760 +47063 72358368 3302 +47064 72361670 944 +47065 72362614 1718 +47066 72364332 1700 +47067 72366032 2348 +47068 72368380 2348 +47069 72370728 2348 +47070 72373076 434 +47071 72373510 2504 +47072 72376014 2504 +47073 72378518 1958 +47074 72380476 1538 +47075 72382014 1538 +47076 72383552 2000 +47077 72385552 2006 +47078 72387558 1976 +47079 72389534 2006 +47080 72391540 842 +47081 72392382 812 +47082 72393194 842 +47083 72394036 812 +47084 72394848 2210 +47085 72397058 2210 +47086 72399268 566 +47087 72399834 674 +47088 72400508 2720 +47089 72403228 2720 +47090 72405948 632 +47091 72406580 788 +47092 72407368 206 +47093 72407574 206 +47094 72407780 206 +47095 72407986 206 +47096 72408192 1088 +47097 72409280 1088 +47098 72410368 1088 +47099 72411456 806 +47100 72412262 800 +47101 72413062 734 +47102 72413796 896 +47103 72414692 896 +47104 72415588 608 +47105 72416196 18038 +47106 72434234 4172 +47107 72438406 4172 +47108 72442578 1742 +47109 72444320 1742 +47110 72446062 1742 +47111 72447804 1874 +47112 72449678 1874 +47113 72451552 1874 +47114 72453426 1874 +47115 72455300 1874 +47116 72457174 1874 +47117 72459048 1856 +47118 72460904 1844 +47119 72462748 1820 +47120 72464568 1142 +47121 72465710 1250 +47122 72466960 956 +47123 72467916 1880 +47124 72469796 3320 +47125 72473116 1226 +47126 72474342 842 +47127 72475184 482 +47128 72475666 878 +47129 72476544 560 +47130 72477104 1304 +47131 72478408 1346 +47132 72479754 3218 +47133 72482972 1880 +47134 72484852 3320 +47135 72488172 1226 +47136 72489398 842 +47137 72490240 482 +47138 72490722 878 +47139 72491600 560 +47140 72492160 1304 +47141 72493464 956 +47142 72494420 1346 +47143 72495766 3218 +47144 72498984 2300 +47145 72501284 2300 +47146 72503584 1670 +47147 72505254 1664 +47148 72506918 1646 +47149 72508564 13573 +47150 72522137 488 +47151 72522625 13777 +47152 72536402 488 +47153 72536890 2006 +47154 72538896 1700 +47155 72540596 890 +47156 72541486 722 +47157 72542208 794 +47158 72543002 788 +47159 72543790 1100 +47160 72544890 1844 +47161 72546734 1220 +47162 72547954 1184 +47163 72549138 1076 +47164 72550214 1076 +47165 72551290 650 +47166 72551940 650 +47167 72552590 1532 +47168 72554122 1532 +47169 72555654 650 +47170 72556304 650 +47171 72556954 1532 +47172 72558486 650 +47173 72559136 650 +47174 72559786 1532 +47175 72561318 1532 +47176 72562850 650 +47177 72563500 1532 +47178 72565032 1532 +47179 72566564 650 +47180 72567214 650 +47181 72567864 1532 +47182 72569396 1532 +47183 72570928 650 +47184 72571578 650 +47185 72572228 1532 +47186 72573760 1532 +47187 72575292 332 +47188 72575624 4706 +47189 72580330 2234 +47190 72582564 374 +47191 72582938 1328 +47192 72584266 542 +47193 72584808 188 +47194 72584996 188 +47195 72585184 188 +47196 72585372 2000 +47197 72587372 710 +47198 72588082 710 +47199 72588792 710 +47200 72589502 710 +47201 72590212 710 +47202 72590922 710 +47203 72591632 710 +47204 72592342 710 +47205 72593052 710 +47206 72593762 710 +47207 72594472 710 +47208 72595182 1976 +47209 72597158 1754 +47210 72598912 2516 +47211 72601428 818 +47212 72602246 806 +47213 72603052 1562 +47214 72604614 1538 +47215 72606152 1562 +47216 72607714 1538 +47217 72609252 584 +47218 72609836 1256 +47219 72611092 1268 +47220 72612360 1268 +47221 72613628 2210 +47222 72615838 2180 +47223 72618018 2174 +47224 72620192 2198 +47225 72622390 2300 +47226 72624690 4994 +47227 72629684 566 +47228 72630250 2498 +47229 72632748 290 +47230 72633038 728 +47231 72633766 686 +47232 72634452 896 +47233 72635348 932 +47234 72636280 1070 +47235 72637350 1034 +47236 72638384 1010 +47237 72639394 818 +47238 72640212 674 +47239 72640886 404 +47240 72641290 1232 +47241 72642522 1208 +47242 72643730 1244 +47243 72644974 1244 +47244 72646218 4418 +47245 72650636 4418 +47246 72655054 704 +47247 72655758 710 +47248 72656468 470 +47249 72656938 1688 +47250 72658626 1688 +47251 72660314 2630 +47252 72662944 1292 +47253 72664236 1292 +47254 72665528 2108 +47255 72667636 890 +47256 72668526 1628 +47257 72670154 1628 +47258 72671782 1064 +47259 72672846 3962 +47260 72676808 3968 +47261 72680776 3962 +47262 72684738 3968 +47263 72688706 3968 +47264 72692674 3962 +47265 72696636 1652 +47266 72698288 1610 +47267 72699898 1886 +47268 72701784 566 +47269 72702350 2498 +47270 72704848 2498 +47271 72707346 2498 +47272 72709844 1274 +47273 72711118 1274 +47274 72712392 2438 +47275 72714830 830 +47276 72715660 2438 +47277 72718098 830 +47278 72718928 2438 +47279 72721366 830 +47280 72722196 2438 +47281 72724634 830 +47282 72725464 2438 +47283 72727902 830 +47284 72728732 2438 +47285 72731170 830 +47286 72732000 2438 +47287 72734438 830 +47288 72735268 2438 +47289 72737706 830 +47290 72738536 2438 +47291 72740974 830 +47292 72741804 2438 +47293 72744242 830 +47294 72745072 2438 +47295 72747510 830 +47296 72748340 2438 +47297 72750778 830 +47298 72751608 2438 +47299 72754046 830 +47300 72754876 2438 +47301 72757314 830 +47302 72758144 2438 +47303 72760582 830 +47304 72761412 2438 +47305 72763850 830 +47306 72764680 2438 +47307 72767118 830 +47308 72767948 2438 +47309 72770386 830 +47310 72771216 2438 +47311 72773654 830 +47312 72774484 2438 +47313 72776922 830 +47314 72777752 2438 +47315 72780190 830 +47316 72781020 2438 +47317 72783458 830 +47318 72784288 2438 +47319 72786726 830 +47320 72787556 2438 +47321 72789994 830 +47322 72790824 158 +47323 72790982 1028 +47324 72792010 140 +47325 72792150 1016 +47326 72793166 140 +47327 72793306 1022 +47328 72794328 176 +47329 72794504 992 +47330 72795496 812 +47331 72796308 812 +47332 72797120 914 +47333 72798034 944 +47334 72798978 944 +47335 72799922 998 +47336 72800920 1016 +47337 72801936 818 +47338 72802754 1616 +47339 72804370 764 +47340 72805134 98 +47341 72805232 632 +47342 72805864 1682 +47343 72807546 1772 +47344 72809318 1718 +47345 72811036 920 +47346 72811956 1610 +47347 72813566 1238 +47348 72814804 1286 +47349 72816090 818 +47350 72816908 764 +47351 72817672 2744 +47352 72820416 2744 +47353 72823160 2774 +47354 72825934 2774 +47355 72828708 1058 +47356 72829766 80 +47357 72829846 1322 +47358 72831168 1340 +47359 72832508 98 +47360 72832606 1316 +47361 72833922 1334 +47362 72835256 68 +47363 72835324 1316 +47364 72836640 1334 +47365 72837974 1088 +47366 72839062 614 +47367 72839676 1393 +47368 72841069 1262 +47369 72842331 1256 +47370 72843587 1262 +47371 72844849 1256 +47372 72846105 392 +47373 72846497 392 +47374 72846889 1268 +47375 72848157 1268 +47376 72849425 1262 +47377 72850687 1262 +47378 72851949 1100 +47379 72853049 74 +47380 72853123 770 +47381 72853893 806 +47382 72854699 638 +47383 72855337 638 +47384 72855975 470 +47385 72856445 458 +47386 72856903 1424 +47387 72858327 662 +47388 72858989 4694 +47389 72863683 2258 +47390 72865941 2258 +47391 72868199 2258 +47392 72870457 2258 +47393 72872715 854 +47394 72873569 938 +47395 72874507 824 +47396 72875331 824 +47397 72876155 938 +47398 72877093 938 +47399 72878031 3938 +47400 72881969 278 +47401 72882247 3932 +47402 72886179 212 +47403 72886391 3716 +47404 72890107 236 +47405 72890343 3374 +47406 72893717 3374 +47407 72897091 3374 +47408 72900465 3374 +47409 72903839 3374 +47410 72907213 3374 +47411 72910587 3374 +47412 72913961 3374 +47413 72917335 3374 +47414 72920709 3374 +47415 72924083 3374 +47416 72927457 3374 +47417 72930831 1634 +47418 72932465 1550 +47419 72934015 1634 +47420 72935649 1550 +47421 72937199 1694 +47422 72938893 1694 +47423 72940587 188 +47424 72940775 188 +47425 72940963 188 +47426 72941151 188 +47427 72941339 1382 +47428 72942721 1382 +47429 72944103 1604 +47430 72945707 1490 +47431 72947197 1124 +47432 72948321 2558 +47433 72950879 500 +47434 72951379 506 +47435 72951885 2162 +47436 72954047 404 +47437 72954451 1268 +47438 72955719 956 +47439 72956675 50 +47440 72956725 3404 +47441 72960129 1820 +47442 72961949 1076 +47443 72963025 1820 +47444 72964845 1070 +47445 72965915 1850 +47446 72967765 1070 +47447 72968835 1112 +47448 72969947 6680 +47449 72976627 2030 +47450 72978657 710 +47451 72979367 74 +47452 72979441 74 +47453 72979515 74 +47454 72979589 74 +47455 72979663 74 +47456 72979737 74 +47457 72979811 74 +47458 72979885 74 +47459 72979959 74 +47460 72980033 74 +47461 72980107 74 +47462 72980181 74 +47463 72980255 74 +47464 72980329 74 +47465 72980403 74 +47466 72980477 74 +47467 72980551 74 +47468 72980625 74 +47469 72980699 74 +47470 72980773 74 +47471 72980847 74 +47472 72980921 74 +47473 72980995 74 +47474 72981069 74 +47475 72981143 3878 +47476 72985021 6392 +47477 72991413 1676 +47478 72993089 1676 +47479 72994765 1676 +47480 72996441 1676 +47481 72998117 1676 +47482 72999793 1676 +47483 73001469 1676 +47484 73003145 1676 +47485 73004821 2432 +47486 73007253 2060 +47487 73009313 2060 +47488 73011373 2060 +47489 73013433 2060 +47490 73015493 1388 +47491 73016881 1388 +47492 73018269 1388 +47493 73019657 1388 +47494 73021045 1388 +47495 73022433 1388 +47496 73023821 1730 +47497 73025551 1730 +47498 73027281 1730 +47499 73029011 1730 +47500 73030741 2078 +47501 73032819 878 +47502 73033697 386 +47503 73034083 878 +47504 73034961 386 +47505 73035347 3548 +47506 73038895 1328 +47507 73040223 1328 +47508 73041551 2660 +47509 73044211 2588 +47510 73046799 2714 +47511 73049513 2714 +47512 73052227 968 +47513 73053195 1502 +47514 73054697 704 +47515 73055401 530 +47516 73055931 530 +47517 73056461 266 +47518 73056727 1520 +47519 73058247 11113 +47520 73069360 11113 +47521 73080473 11113 +47522 73091586 932 +47523 73092518 1922 +47524 73094440 1892 +47525 73096332 1892 +47526 73098224 3620 +47527 73101844 1040 +47528 73102884 998 +47529 73103882 3644 +47530 73107526 3644 +47531 73111170 1388 +47532 73112558 2492 +47533 73115050 2486 +47534 73117536 1028 +47535 73118564 1028 +47536 73119592 386 +47537 73119978 374 +47538 73120352 1940 +47539 73122292 1940 +47540 73124232 2864 +47541 73127096 3668 +47542 73130764 1988 +47543 73132752 650 +47544 73133402 18505 +47545 73151907 7088 +47546 73158995 1832 +47547 73160827 428 +47548 73161255 1298 +47549 73162553 608 +47550 73163161 1202 +47551 73164363 812 +47552 73165175 752 +47553 73165927 422 +47554 73166349 626 +47555 73166975 278 +47556 73167253 842 +47557 73168095 3002 +47558 73171097 3146 +47559 73174243 1556 +47560 73175799 1556 +47561 73177355 1556 +47562 73178911 1556 +47563 73180467 1556 +47564 73182023 1556 +47565 73183579 1736 +47566 73185315 1736 +47567 73187051 1736 +47568 73188787 1736 +47569 73190523 800 +47570 73191323 800 +47571 73192123 800 +47572 73192923 800 +47573 73193723 800 +47574 73194523 800 +47575 73195323 800 +47576 73196123 800 +47577 73196923 1538 +47578 73198461 1766 +47579 73200227 704 +47580 73200931 68 +47581 73200999 2870 +47582 73203869 3668 +47583 73207537 1988 +47584 73209525 752 +47585 73210277 842 +47586 73211119 656 +47587 73211775 17581 +47588 73229356 7088 +47589 73236444 1832 +47590 73238276 428 +47591 73238704 1298 +47592 73240002 608 +47593 73240610 1220 +47594 73241830 812 +47595 73242642 422 +47596 73243064 626 +47597 73243690 278 +47598 73243968 3032 +47599 73247000 770 +47600 73247770 1070 +47601 73248840 1370 +47602 73250210 1346 +47603 73251556 1382 +47604 73252938 1346 +47605 73254284 1346 +47606 73255630 1364 +47607 73256994 1364 +47608 73258358 1364 +47609 73259722 1706 +47610 73261428 2324 +47611 73263752 1628 +47612 73265380 1604 +47613 73266984 1538 +47614 73268522 1538 +47615 73270060 1898 +47616 73271958 1898 +47617 73273856 560 +47618 73274416 50 +47619 73274466 1460 +47620 73275926 1052 +47621 73276978 1034 +47622 73278012 1580 +47623 73279592 1844 +47624 73281436 1820 +47625 73283256 2582 +47626 73285838 1058 +47627 73286896 488 +47628 73287384 488 +47629 73287872 2798 +47630 73290670 2792 +47631 73293462 3032 +47632 73296494 1472 +47633 73297966 152 +47634 73298118 152 +47635 73298270 422 +47636 73298692 1976 +47637 73300668 686 +47638 73301354 1976 +47639 73303330 686 +47640 73304016 1736 +47641 73305752 2498 +47642 73308250 1736 +47643 73309986 1238 +47644 73311224 1238 +47645 73312462 1238 +47646 73313700 3542 +47647 73317242 3548 +47648 73320790 3542 +47649 73324332 524 +47650 73324856 2324 +47651 73327180 1844 +47652 73329024 1844 +47653 73330868 1634 +47654 73332502 602 +47655 73333104 296 +47656 73333400 1634 +47657 73335034 602 +47658 73335636 296 +47659 73335932 1838 +47660 73337770 1838 +47661 73339608 1634 +47662 73341242 608 +47663 73341850 296 +47664 73342146 1634 +47665 73343780 608 +47666 73344388 296 +47667 73344684 1130 +47668 73345814 1118 +47669 73346932 1124 +47670 73348056 1310 +47671 73349366 1436 +47672 73350802 2678 +47673 73353480 2678 +47674 73356158 2192 +47675 73358350 5210 +47676 73363560 5210 +47677 73368770 2348 +47678 73371118 2348 +47679 73373466 2348 +47680 73375814 2348 +47681 73378162 2348 +47682 73380510 2348 +47683 73382858 2348 +47684 73385206 2348 +47685 73387554 2348 +47686 73389902 2348 +47687 73392250 2348 +47688 73394598 2348 +47689 73396946 2084 +47690 73399030 1790 +47691 73400820 938 +47692 73401758 932 +47693 73402690 926 +47694 73403616 1112 +47695 73404728 626 +47696 73405354 494 +47697 73405848 5210 +47698 73411058 5210 +47699 73416268 5210 +47700 73421478 5198 +47701 73426676 2102 +47702 73428778 11246 +47703 73440024 11246 +47704 73451270 11246 +47705 73462516 11246 +47706 73473762 11246 +47707 73485008 512 +47708 73485520 1094 +47709 73486614 2114 +47710 73488728 2126 +47711 73490854 1592 +47712 73492446 1592 +47713 73494038 1592 +47714 73495630 1658 +47715 73497288 1658 +47716 73498946 1658 +47717 73500604 1052 +47718 73501656 1058 +47719 73502714 1052 +47720 73503766 1022 +47721 73504788 2456 +47722 73507244 2432 +47723 73509676 2456 +47724 73512132 2432 +47725 73514564 1664 +47726 73516228 1658 +47727 73517886 1658 +47728 73519544 1724 +47729 73521268 1724 +47730 73522992 1730 +47731 73524722 1730 +47732 73526452 710 +47733 73527162 1754 +47734 73528916 2048 +47735 73530964 1382 +47736 73532346 542 +47737 73532888 524 +47738 73533412 602 +47739 73534014 3062 +47740 73537076 3002 +47741 73540078 3056 +47742 73543134 3062 +47743 73546196 1922 +47744 73548118 2384 +47745 73550502 2384 +47746 73552886 2384 +47747 73555270 2384 +47748 73557654 2384 +47749 73560038 2384 +47750 73562422 1898 +47751 73564320 1922 +47752 73566242 2510 +47753 73568752 1778 +47754 73570530 1778 +47755 73572308 932 +47756 73573240 914 +47757 73574154 914 +47758 73575068 362 +47759 73575430 362 +47760 73575792 806 +47761 73576598 800 +47762 73577398 938 +47763 73578336 32 +47764 73578368 992 +47765 73579360 926 +47766 73580286 926 +47767 73581212 908 +47768 73582120 908 +47769 73583028 2870 +47770 73585898 2246 +47771 73588144 2246 +47772 73590390 1556 +47773 73591946 1472 +47774 73593418 1472 +47775 73594890 1460 +47776 73596350 2984 +47777 73599334 2984 +47778 73602318 428 +47779 73602746 188 +47780 73602934 188 +47781 73603122 188 +47782 73603310 188 +47783 73603498 2642 +47784 73606140 2642 +47785 73608782 752 +47786 73609534 764 +47787 73610298 1058 +47788 73611356 1322 +47789 73612678 626 +47790 73613304 842 +47791 73614146 2629 +47792 73616775 2786 +47793 73619561 2564 +47794 73622125 2912 +47795 73625037 3794 +47796 73628831 3902 +47797 73632733 1286 +47798 73634019 1004 +47799 73635023 1004 +47800 73636027 1424 +47801 73637451 1424 +47802 73638875 1424 +47803 73640299 956 +47804 73641255 998 +47805 73642253 866 +47806 73643119 806 +47807 73643925 848 +47808 73644773 836 +47809 73645609 1820 +47810 73647429 1736 +47811 73649165 1736 +47812 73650901 1736 +47813 73652637 1022 +47814 73653659 1202 +47815 73654861 2270 +47816 73657131 1694 +47817 73658825 4694 +47818 73663519 4688 +47819 73668207 4694 +47820 73672901 4694 +47821 73677595 4694 +47822 73682289 4754 +47823 73687043 4694 +47824 73691737 4694 +47825 73696431 884 +47826 73697315 830 +47827 73698145 464 +47828 73698609 3698 +47829 73702307 3680 +47830 73705987 32 +47831 73706019 32 +47832 73706051 842 +47833 73706893 950 +47834 73707843 3752 +47835 73711595 3752 +47836 73715347 3752 +47837 73719099 3752 +47838 73722851 2108 +47839 73724959 2054 +47840 73727013 530 +47841 73727543 530 +47842 73728073 2222 +47843 73730295 2216 +47844 73732511 2222 +47845 73734733 2210 +47846 73736943 836 +47847 73737779 836 +47848 73738615 998 +47849 73739613 998 +47850 73740611 650 +47851 73741261 632 +47852 73741893 1532 +47853 73743425 2060 +47854 73745485 2060 +47855 73747545 878 +47856 73748423 872 +47857 73749295 878 +47858 73750173 878 +47859 73751051 614 +47860 73751665 548 +47861 73752213 548 +47862 73752761 548 +47863 73753309 1016 +47864 73754325 1052 +47865 73755377 1040 +47866 73756417 536 +47867 73756953 542 +47868 73757495 2582 +47869 73760077 2582 +47870 73762659 860 +47871 73763519 806 +47872 73764325 854 +47873 73765179 806 +47874 73765985 2030 +47875 73768015 2030 +47876 73770045 2018 +47877 73772063 2018 +47878 73774081 2018 +47879 73776099 752 +47880 73776851 752 +47881 73777603 1190 +47882 73778793 7244 +47883 73786037 6884 +47884 73792921 884 +47885 73793805 884 +47886 73794689 884 +47887 73795573 884 +47888 73796457 884 +47889 73797341 884 +47890 73798225 884 +47891 73799109 884 +47892 73799993 884 +47893 73800877 884 +47894 73801761 884 +47895 73802645 884 +47896 73803529 884 +47897 73804413 884 +47898 73805297 884 +47899 73806181 884 +47900 73807065 884 +47901 73807949 884 +47902 73808833 884 +47903 73809717 884 +47904 73810601 884 +47905 73811485 884 +47906 73812369 884 +47907 73813253 884 +47908 73814137 884 +47909 73815021 884 +47910 73815905 884 +47911 73816789 884 +47912 73817673 884 +47913 73818557 884 +47914 73819441 884 +47915 73820325 884 +47916 73821209 884 +47917 73822093 884 +47918 73822977 884 +47919 73823861 884 +47920 73824745 884 +47921 73825629 884 +47922 73826513 884 +47923 73827397 884 +47924 73828281 884 +47925 73829165 884 +47926 73830049 884 +47927 73830933 884 +47928 73831817 884 +47929 73832701 884 +47930 73833585 884 +47931 73834469 884 +47932 73835353 884 +47933 73836237 884 +47934 73837121 884 +47935 73838005 884 +47936 73838889 884 +47937 73839773 884 +47938 73840657 884 +47939 73841541 884 +47940 73842425 884 +47941 73843309 884 +47942 73844193 884 +47943 73845077 884 +47944 73845961 1118 +47945 73847079 500 +47946 73847579 386 +47947 73847965 944 +47948 73848909 944 +47949 73849853 944 +47950 73850797 1256 +47951 73852053 626 +47952 73852679 626 +47953 73853305 626 +47954 73853931 626 +47955 73854557 626 +47956 73855183 1316 +47957 73856499 1256 +47958 73857755 1058 +47959 73858813 644 +47960 73859457 506 +47961 73859963 416 +47962 73860379 446 +47963 73860825 464 +47964 73861289 338 +47965 73861627 2504 +47966 73864131 536 +47967 73864667 494 +47968 73865161 494 +47969 73865655 866 +47970 73866521 866 +47971 73867387 1304 +47972 73868691 1328 +47973 73870019 1838 +47974 73871857 1838 +47975 73873695 1844 +47976 73875539 1838 +47977 73877377 3182 +47978 73880559 206 +47979 73880765 3188 +47980 73883953 152 +47981 73884105 3224 +47982 73887329 440 +47983 73887769 3200 +47984 73890969 386 +47985 73891355 3182 +47986 73894537 206 +47987 73894743 3188 +47988 73897931 152 +47989 73898083 3224 +47990 73901307 440 +47991 73901747 3200 +47992 73904947 386 +47993 73905333 3182 +47994 73908515 206 +47995 73908721 3188 +47996 73911909 152 +47997 73912061 3224 +47998 73915285 440 +47999 73915725 3200 +48000 73918925 386 +48001 73919311 3182 +48002 73922493 206 +48003 73922699 3188 +48004 73925887 152 +48005 73926039 3224 +48006 73929263 440 +48007 73929703 3200 +48008 73932903 386 +48009 73933289 3182 +48010 73936471 206 +48011 73936677 3188 +48012 73939865 152 +48013 73940017 3224 +48014 73943241 440 +48015 73943681 3200 +48016 73946881 386 +48017 73947267 3182 +48018 73950449 206 +48019 73950655 3188 +48020 73953843 152 +48021 73953995 3224 +48022 73957219 440 +48023 73957659 3200 +48024 73960859 386 +48025 73961245 3182 +48026 73964427 206 +48027 73964633 3188 +48028 73967821 152 +48029 73967973 3224 +48030 73971197 440 +48031 73971637 3200 +48032 73974837 386 +48033 73975223 3182 +48034 73978405 206 +48035 73978611 3188 +48036 73981799 152 +48037 73981951 3224 +48038 73985175 440 +48039 73985615 3200 +48040 73988815 386 +48041 73989201 3182 +48042 73992383 206 +48043 73992589 3188 +48044 73995777 152 +48045 73995929 3224 +48046 73999153 440 +48047 73999593 3200 +48048 74002793 386 +48049 74003179 3182 +48050 74006361 206 +48051 74006567 3188 +48052 74009755 152 +48053 74009907 3224 +48054 74013131 440 +48055 74013571 3200 +48056 74016771 386 +48057 74017157 3182 +48058 74020339 206 +48059 74020545 3188 +48060 74023733 152 +48061 74023885 3224 +48062 74027109 440 +48063 74027549 3200 +48064 74030749 386 +48065 74031135 3182 +48066 74034317 206 +48067 74034523 3188 +48068 74037711 152 +48069 74037863 3224 +48070 74041087 440 +48071 74041527 3200 +48072 74044727 386 +48073 74045113 3182 +48074 74048295 206 +48075 74048501 3188 +48076 74051689 152 +48077 74051841 3224 +48078 74055065 440 +48079 74055505 3200 +48080 74058705 386 +48081 74059091 3182 +48082 74062273 206 +48083 74062479 3188 +48084 74065667 152 +48085 74065819 3224 +48086 74069043 440 +48087 74069483 3200 +48088 74072683 386 +48089 74073069 3182 +48090 74076251 206 +48091 74076457 3188 +48092 74079645 152 +48093 74079797 3224 +48094 74083021 440 +48095 74083461 3200 +48096 74086661 386 +48097 74087047 3182 +48098 74090229 206 +48099 74090435 3188 +48100 74093623 152 +48101 74093775 3224 +48102 74096999 440 +48103 74097439 3200 +48104 74100639 386 +48105 74101025 3182 +48106 74104207 206 +48107 74104413 3188 +48108 74107601 152 +48109 74107753 3224 +48110 74110977 440 +48111 74111417 3200 +48112 74114617 386 +48113 74115003 3182 +48114 74118185 206 +48115 74118391 3188 +48116 74121579 152 +48117 74121731 3224 +48118 74124955 440 +48119 74125395 3200 +48120 74128595 386 +48121 74128981 3182 +48122 74132163 206 +48123 74132369 3188 +48124 74135557 152 +48125 74135709 3224 +48126 74138933 440 +48127 74139373 3200 +48128 74142573 386 +48129 74142959 3182 +48130 74146141 206 +48131 74146347 3188 +48132 74149535 152 +48133 74149687 3224 +48134 74152911 440 +48135 74153351 3200 +48136 74156551 386 +48137 74156937 3182 +48138 74160119 206 +48139 74160325 3188 +48140 74163513 152 +48141 74163665 3224 +48142 74166889 440 +48143 74167329 3200 +48144 74170529 386 +48145 74170915 3182 +48146 74174097 206 +48147 74174303 3188 +48148 74177491 152 +48149 74177643 3224 +48150 74180867 440 +48151 74181307 3200 +48152 74184507 386 +48153 74184893 3182 +48154 74188075 206 +48155 74188281 3188 +48156 74191469 152 +48157 74191621 3224 +48158 74194845 440 +48159 74195285 3200 +48160 74198485 386 +48161 74198871 3182 +48162 74202053 206 +48163 74202259 3188 +48164 74205447 152 +48165 74205599 3224 +48166 74208823 440 +48167 74209263 3200 +48168 74212463 386 +48169 74212849 3182 +48170 74216031 206 +48171 74216237 3188 +48172 74219425 152 +48173 74219577 3224 +48174 74222801 440 +48175 74223241 3200 +48176 74226441 386 +48177 74226827 3182 +48178 74230009 206 +48179 74230215 3188 +48180 74233403 152 +48181 74233555 3224 +48182 74236779 440 +48183 74237219 3200 +48184 74240419 386 +48185 74240805 3182 +48186 74243987 206 +48187 74244193 3188 +48188 74247381 152 +48189 74247533 3224 +48190 74250757 440 +48191 74251197 3200 +48192 74254397 386 +48193 74254783 3182 +48194 74257965 206 +48195 74258171 3188 +48196 74261359 152 +48197 74261511 3224 +48198 74264735 440 +48199 74265175 3200 +48200 74268375 386 +48201 74268761 3182 +48202 74271943 206 +48203 74272149 3188 +48204 74275337 152 +48205 74275489 3224 +48206 74278713 440 +48207 74279153 3200 +48208 74282353 386 +48209 74282739 3182 +48210 74285921 206 +48211 74286127 3188 +48212 74289315 152 +48213 74289467 3224 +48214 74292691 440 +48215 74293131 3200 +48216 74296331 386 +48217 74296717 3182 +48218 74299899 206 +48219 74300105 3188 +48220 74303293 152 +48221 74303445 3224 +48222 74306669 440 +48223 74307109 3200 +48224 74310309 386 +48225 74310695 3182 +48226 74313877 206 +48227 74314083 3188 +48228 74317271 152 +48229 74317423 3224 +48230 74320647 440 +48231 74321087 3200 +48232 74324287 386 +48233 74324673 3182 +48234 74327855 206 +48235 74328061 3188 +48236 74331249 152 +48237 74331401 3224 +48238 74334625 440 +48239 74335065 3200 +48240 74338265 386 +48241 74338651 3182 +48242 74341833 206 +48243 74342039 3188 +48244 74345227 152 +48245 74345379 3224 +48246 74348603 440 +48247 74349043 3200 +48248 74352243 386 +48249 74352629 3182 +48250 74355811 206 +48251 74356017 3188 +48252 74359205 152 +48253 74359357 3224 +48254 74362581 440 +48255 74363021 3200 +48256 74366221 386 +48257 74366607 3182 +48258 74369789 206 +48259 74369995 3188 +48260 74373183 152 +48261 74373335 3224 +48262 74376559 440 +48263 74376999 3200 +48264 74380199 386 +48265 74380585 3182 +48266 74383767 206 +48267 74383973 3188 +48268 74387161 152 +48269 74387313 3224 +48270 74390537 440 +48271 74390977 3200 +48272 74394177 386 +48273 74394563 3182 +48274 74397745 206 +48275 74397951 3188 +48276 74401139 152 +48277 74401291 3224 +48278 74404515 440 +48279 74404955 3200 +48280 74408155 386 +48281 74408541 3182 +48282 74411723 206 +48283 74411929 3188 +48284 74415117 152 +48285 74415269 3224 +48286 74418493 440 +48287 74418933 3200 +48288 74422133 386 +48289 74422519 3182 +48290 74425701 206 +48291 74425907 3188 +48292 74429095 152 +48293 74429247 3224 +48294 74432471 440 +48295 74432911 3200 +48296 74436111 386 +48297 74436497 3182 +48298 74439679 206 +48299 74439885 3188 +48300 74443073 152 +48301 74443225 3224 +48302 74446449 440 +48303 74446889 3200 +48304 74450089 386 +48305 74450475 3182 +48306 74453657 206 +48307 74453863 3188 +48308 74457051 152 +48309 74457203 3224 +48310 74460427 440 +48311 74460867 3200 +48312 74464067 386 +48313 74464453 3182 +48314 74467635 206 +48315 74467841 3188 +48316 74471029 152 +48317 74471181 3224 +48318 74474405 440 +48319 74474845 3200 +48320 74478045 386 +48321 74478431 3182 +48322 74481613 206 +48323 74481819 3188 +48324 74485007 152 +48325 74485159 3224 +48326 74488383 440 +48327 74488823 3200 +48328 74492023 386 +48329 74492409 3182 +48330 74495591 206 +48331 74495797 3188 +48332 74498985 152 +48333 74499137 3224 +48334 74502361 440 +48335 74502801 3200 +48336 74506001 386 +48337 74506387 3182 +48338 74509569 206 +48339 74509775 3188 +48340 74512963 152 +48341 74513115 3224 +48342 74516339 440 +48343 74516779 3200 +48344 74519979 386 +48345 74520365 3182 +48346 74523547 206 +48347 74523753 3188 +48348 74526941 152 +48349 74527093 3224 +48350 74530317 440 +48351 74530757 3200 +48352 74533957 386 +48353 74534343 3182 +48354 74537525 206 +48355 74537731 3188 +48356 74540919 152 +48357 74541071 3224 +48358 74544295 440 +48359 74544735 3200 +48360 74547935 386 +48361 74548321 3182 +48362 74551503 206 +48363 74551709 3188 +48364 74554897 152 +48365 74555049 3224 +48366 74558273 440 +48367 74558713 3200 +48368 74561913 386 +48369 74562299 3182 +48370 74565481 206 +48371 74565687 3188 +48372 74568875 152 +48373 74569027 3224 +48374 74572251 440 +48375 74572691 3200 +48376 74575891 386 +48377 74576277 3182 +48378 74579459 206 +48379 74579665 3188 +48380 74582853 152 +48381 74583005 3224 +48382 74586229 440 +48383 74586669 3200 +48384 74589869 386 +48385 74590255 3182 +48386 74593437 206 +48387 74593643 3188 +48388 74596831 152 +48389 74596983 3224 +48390 74600207 440 +48391 74600647 3200 +48392 74603847 386 +48393 74604233 3182 +48394 74607415 206 +48395 74607621 3188 +48396 74610809 152 +48397 74610961 3224 +48398 74614185 440 +48399 74614625 3200 +48400 74617825 386 +48401 74618211 3182 +48402 74621393 206 +48403 74621599 3188 +48404 74624787 152 +48405 74624939 3224 +48406 74628163 440 +48407 74628603 3200 +48408 74631803 386 +48409 74632189 3182 +48410 74635371 206 +48411 74635577 3188 +48412 74638765 152 +48413 74638917 3224 +48414 74642141 440 +48415 74642581 3200 +48416 74645781 386 +48417 74646167 3182 +48418 74649349 206 +48419 74649555 3188 +48420 74652743 152 +48421 74652895 3224 +48422 74656119 440 +48423 74656559 3200 +48424 74659759 386 +48425 74660145 3182 +48426 74663327 206 +48427 74663533 3188 +48428 74666721 152 +48429 74666873 3224 +48430 74670097 440 +48431 74670537 3200 +48432 74673737 386 +48433 74674123 3182 +48434 74677305 206 +48435 74677511 3188 +48436 74680699 152 +48437 74680851 3224 +48438 74684075 440 +48439 74684515 3200 +48440 74687715 386 +48441 74688101 3182 +48442 74691283 206 +48443 74691489 3188 +48444 74694677 152 +48445 74694829 3224 +48446 74698053 440 +48447 74698493 3200 +48448 74701693 386 +48449 74702079 3182 +48450 74705261 206 +48451 74705467 3188 +48452 74708655 152 +48453 74708807 3224 +48454 74712031 440 +48455 74712471 3200 +48456 74715671 386 +48457 74716057 1796 +48458 74717853 1646 +48459 74719499 1808 +48460 74721307 1712 +48461 74723019 86 +48462 74723105 86 +48463 74723191 86 +48464 74723277 86 +48465 74723363 86 +48466 74723449 86 +48467 74723535 86 +48468 74723621 86 +48469 74723707 86 +48470 74723793 86 +48471 74723879 86 +48472 74723965 86 +48473 74724051 86 +48474 74724137 86 +48475 74724223 86 +48476 74724309 86 +48477 74724395 86 +48478 74724481 86 +48479 74724567 86 +48480 74724653 86 +48481 74724739 86 +48482 74724825 86 +48483 74724911 86 +48484 74724997 86 +48485 74725083 86 +48486 74725169 86 +48487 74725255 86 +48488 74725341 86 +48489 74725427 86 +48490 74725513 86 +48491 74725599 86 +48492 74725685 86 +48493 74725771 86 +48494 74725857 86 +48495 74725943 86 +48496 74726029 86 +48497 74726115 86 +48498 74726201 86 +48499 74726287 86 +48500 74726373 86 +48501 74726459 86 +48502 74726545 86 +48503 74726631 86 +48504 74726717 86 +48505 74726803 86 +48506 74726889 86 +48507 74726975 86 +48508 74727061 86 +48509 74727147 86 +48510 74727233 86 +48511 74727319 86 +48512 74727405 86 +48513 74727491 86 +48514 74727577 86 +48515 74727663 86 +48516 74727749 86 +48517 74727835 86 +48518 74727921 86 +48519 74728007 86 +48520 74728093 86 +48521 74728179 86 +48522 74728265 86 +48523 74728351 86 +48524 74728437 86 +48525 74728523 86 +48526 74728609 86 +48527 74728695 86 +48528 74728781 86 +48529 74728867 86 +48530 74728953 86 +48531 74729039 86 +48532 74729125 86 +48533 74729211 86 +48534 74729297 86 +48535 74729383 86 +48536 74729469 86 +48537 74729555 86 +48538 74729641 86 +48539 74729727 86 +48540 74729813 86 +48541 74729899 86 +48542 74729985 86 +48543 74730071 86 +48544 74730157 86 +48545 74730243 86 +48546 74730329 86 +48547 74730415 86 +48548 74730501 86 +48549 74730587 86 +48550 74730673 86 +48551 74730759 86 +48552 74730845 86 +48553 74730931 86 +48554 74731017 86 +48555 74731103 86 +48556 74731189 86 +48557 74731275 86 +48558 74731361 86 +48559 74731447 86 +48560 74731533 86 +48561 74731619 86 +48562 74731705 86 +48563 74731791 86 +48564 74731877 86 +48565 74731963 86 +48566 74732049 86 +48567 74732135 86 +48568 74732221 86 +48569 74732307 86 +48570 74732393 86 +48571 74732479 86 +48572 74732565 86 +48573 74732651 86 +48574 74732737 86 +48575 74732823 86 +48576 74732909 86 +48577 74732995 86 +48578 74733081 86 +48579 74733167 86 +48580 74733253 86 +48581 74733339 86 +48582 74733425 86 +48583 74733511 86 +48584 74733597 86 +48585 74733683 86 +48586 74733769 86 +48587 74733855 86 +48588 74733941 86 +48589 74734027 86 +48590 74734113 86 +48591 74734199 86 +48592 74734285 86 +48593 74734371 86 +48594 74734457 86 +48595 74734543 86 +48596 74734629 86 +48597 74734715 86 +48598 74734801 86 +48599 74734887 86 +48600 74734973 86 +48601 74735059 86 +48602 74735145 86 +48603 74735231 86 +48604 74735317 86 +48605 74735403 86 +48606 74735489 86 +48607 74735575 86 +48608 74735661 86 +48609 74735747 86 +48610 74735833 86 +48611 74735919 86 +48612 74736005 86 +48613 74736091 86 +48614 74736177 86 +48615 74736263 86 +48616 74736349 86 +48617 74736435 86 +48618 74736521 86 +48619 74736607 86 +48620 74736693 86 +48621 74736779 86 +48622 74736865 86 +48623 74736951 86 +48624 74737037 86 +48625 74737123 86 +48626 74737209 86 +48627 74737295 86 +48628 74737381 86 +48629 74737467 86 +48630 74737553 86 +48631 74737639 86 +48632 74737725 86 +48633 74737811 86 +48634 74737897 86 +48635 74737983 86 +48636 74738069 86 +48637 74738155 86 +48638 74738241 86 +48639 74738327 86 +48640 74738413 86 +48641 74738499 86 +48642 74738585 86 +48643 74738671 86 +48644 74738757 86 +48645 74738843 86 +48646 74738929 86 +48647 74739015 86 +48648 74739101 86 +48649 74739187 86 +48650 74739273 86 +48651 74739359 86 +48652 74739445 86 +48653 74739531 86 +48654 74739617 86 +48655 74739703 86 +48656 74739789 86 +48657 74739875 86 +48658 74739961 86 +48659 74740047 86 +48660 74740133 86 +48661 74740219 86 +48662 74740305 86 +48663 74740391 86 +48664 74740477 86 +48665 74740563 86 +48666 74740649 86 +48667 74740735 86 +48668 74740821 86 +48669 74740907 86 +48670 74740993 86 +48671 74741079 86 +48672 74741165 86 +48673 74741251 86 +48674 74741337 86 +48675 74741423 86 +48676 74741509 86 +48677 74741595 86 +48678 74741681 86 +48679 74741767 86 +48680 74741853 86 +48681 74741939 86 +48682 74742025 86 +48683 74742111 86 +48684 74742197 86 +48685 74742283 86 +48686 74742369 86 +48687 74742455 86 +48688 74742541 86 +48689 74742627 86 +48690 74742713 86 +48691 74742799 86 +48692 74742885 86 +48693 74742971 86 +48694 74743057 86 +48695 74743143 86 +48696 74743229 86 +48697 74743315 86 +48698 74743401 86 +48699 74743487 86 +48700 74743573 86 +48701 74743659 86 +48702 74743745 86 +48703 74743831 86 +48704 74743917 86 +48705 74744003 86 +48706 74744089 86 +48707 74744175 86 +48708 74744261 86 +48709 74744347 86 +48710 74744433 86 +48711 74744519 86 +48712 74744605 86 +48713 74744691 86 +48714 74744777 86 +48715 74744863 86 +48716 74744949 86 +48717 74745035 86 +48718 74745121 86 +48719 74745207 86 +48720 74745293 86 +48721 74745379 86 +48722 74745465 86 +48723 74745551 86 +48724 74745637 86 +48725 74745723 86 +48726 74745809 86 +48727 74745895 86 +48728 74745981 86 +48729 74746067 86 +48730 74746153 86 +48731 74746239 86 +48732 74746325 86 +48733 74746411 86 +48734 74746497 86 +48735 74746583 86 +48736 74746669 86 +48737 74746755 86 +48738 74746841 86 +48739 74746927 86 +48740 74747013 86 +48741 74747099 86 +48742 74747185 86 +48743 74747271 86 +48744 74747357 86 +48745 74747443 86 +48746 74747529 86 +48747 74747615 86 +48748 74747701 86 +48749 74747787 86 +48750 74747873 86 +48751 74747959 86 +48752 74748045 86 +48753 74748131 86 +48754 74748217 86 +48755 74748303 86 +48756 74748389 86 +48757 74748475 86 +48758 74748561 86 +48759 74748647 86 +48760 74748733 86 +48761 74748819 86 +48762 74748905 86 +48763 74748991 86 +48764 74749077 86 +48765 74749163 86 +48766 74749249 86 +48767 74749335 86 +48768 74749421 86 +48769 74749507 86 +48770 74749593 86 +48771 74749679 86 +48772 74749765 86 +48773 74749851 86 +48774 74749937 86 +48775 74750023 86 +48776 74750109 86 +48777 74750195 86 +48778 74750281 86 +48779 74750367 86 +48780 74750453 86 +48781 74750539 86 +48782 74750625 86 +48783 74750711 86 +48784 74750797 86 +48785 74750883 86 +48786 74750969 86 +48787 74751055 86 +48788 74751141 86 +48789 74751227 86 +48790 74751313 86 +48791 74751399 86 +48792 74751485 86 +48793 74751571 86 +48794 74751657 86 +48795 74751743 86 +48796 74751829 86 +48797 74751915 86 +48798 74752001 86 +48799 74752087 86 +48800 74752173 86 +48801 74752259 86 +48802 74752345 86 +48803 74752431 86 +48804 74752517 86 +48805 74752603 86 +48806 74752689 86 +48807 74752775 86 +48808 74752861 86 +48809 74752947 86 +48810 74753033 86 +48811 74753119 86 +48812 74753205 86 +48813 74753291 86 +48814 74753377 86 +48815 74753463 86 +48816 74753549 86 +48817 74753635 86 +48818 74753721 86 +48819 74753807 86 +48820 74753893 86 +48821 74753979 2324 +48822 74756303 2318 +48823 74758621 2192 +48824 74760813 2186 +48825 74762999 8840 +48826 74771839 8840 +48827 74780679 8840 +48828 74789519 8840 +48829 74798359 8840 +48830 74807199 8840 +48831 74816039 2840 +48832 74818879 2840 +48833 74821719 2840 +48834 74824559 2840 +48835 74827399 2840 +48836 74830239 2840 +48837 74833079 1124 +48838 74834203 1088 +48839 74835291 1568 +48840 74836859 956 +48841 74837815 950 +48842 74838765 950 +48843 74839715 644 +48844 74840359 638 +48845 74840997 656 +48846 74841653 494 +48847 74842147 2060 +48848 74844207 2060 +48849 74846267 410 +48850 74846677 4244 +48851 74850921 206 +48852 74851127 476 +48853 74851603 626 +48854 74852229 2576 +48855 74854805 1508 +48856 74856313 2468 +48857 74858781 680 +48858 74859461 230 +48859 74859691 50 +48860 74859741 2276 +48861 74862017 512 +48862 74862529 116 +48863 74862645 1832 +48864 74864477 1616 +48865 74866093 1628 +48866 74867721 716 +48867 74868437 494 +48868 74868931 1544 +48869 74870475 650 +48870 74871125 3752 +48871 74874877 3752 +48872 74878629 662 +48873 74879291 1124 +48874 74880415 1088 +48875 74881503 2462 +48876 74883965 2462 +48877 74886427 488 +48878 74886915 1628 +48879 74888543 500 +48880 74889043 464 +48881 74889507 962 +48882 74890469 380 +48883 74890849 7436 +48884 74898285 3182 +48885 74901467 1454 +48886 74902921 4628 +48887 74907549 1118 +48888 74908667 3308 +48889 74911975 3092 +48890 74915067 4076 +48891 74919143 1244 +48892 74920387 1256 +48893 74921643 2270 +48894 74923913 2006 +48895 74925919 662 +48896 74926581 650 +48897 74927231 3998 +48898 74931229 68 +48899 74931297 680 +48900 74931977 680 +48901 74932657 1286 +48902 74933943 1274 +48903 74935217 368 +48904 74935585 338 +48905 74935923 308 +48906 74936231 308 +48907 74936539 308 +48908 74936847 1310 +48909 74938157 1298 +48910 74939455 374 +48911 74939829 362 +48912 74940191 344 +48913 74940535 350 +48914 74940885 350 +48915 74941235 5162 +48916 74946397 2060 +48917 74948457 2072 +48918 74950529 722 +48919 74951251 722 +48920 74951973 1694 +48921 74953667 1388 +48922 74955055 1388 +48923 74956443 2090 +48924 74958533 2120 +48925 74960653 2120 +48926 74962773 2078 +48927 74964851 2114 +48928 74966965 1304 +48929 74968269 1304 +48930 74969573 1274 +48931 74970847 1280 +48932 74972127 572 +48933 74972699 704 +48934 74973403 332 +48935 74973735 296 +48936 74974031 338 +48937 74974369 338 +48938 74974707 1928 +48939 74976635 1928 +48940 74978563 1928 +48941 74980491 1928 +48942 74982419 1928 +48943 74984347 1928 +48944 74986275 1928 +48945 74988203 1346 +48946 74989549 4088 +48947 74993637 884 +48948 74994521 884 +48949 74995405 1376 +48950 74996781 1532 +48951 74998313 920 +48952 74999233 1532 +48953 75000765 920 +48954 75001685 1280 +48955 75002965 1274 +48956 75004239 3692 +48957 75007931 686 +48958 75008617 662 +48959 75009279 2120 +48960 75011399 2120 +48961 75013519 2138 +48962 75015657 2132 +48963 75017789 848 +48964 75018637 884 +48965 75019521 848 +48966 75020369 848 +48967 75021217 884 +48968 75022101 848 +48969 75022949 848 +48970 75023797 884 +48971 75024681 848 +48972 75025529 848 +48973 75026377 884 +48974 75027261 848 +48975 75028109 848 +48976 75028957 884 +48977 75029841 848 +48978 75030689 848 +48979 75031537 884 +48980 75032421 848 +48981 75033269 848 +48982 75034117 884 +48983 75035001 848 +48984 75035849 848 +48985 75036697 884 +48986 75037581 848 +48987 75038429 848 +48988 75039277 884 +48989 75040161 848 +48990 75041009 848 +48991 75041857 884 +48992 75042741 848 +48993 75043589 848 +48994 75044437 884 +48995 75045321 848 +48996 75046169 848 +48997 75047017 884 +48998 75047901 848 +48999 75048749 848 +49000 75049597 884 +49001 75050481 848 +49002 75051329 848 +49003 75052177 884 +49004 75053061 848 +49005 75053909 848 +49006 75054757 884 +49007 75055641 848 +49008 75056489 848 +49009 75057337 884 +49010 75058221 848 +49011 75059069 848 +49012 75059917 884 +49013 75060801 848 +49014 75061649 848 +49015 75062497 884 +49016 75063381 848 +49017 75064229 848 +49018 75065077 884 +49019 75065961 848 +49020 75066809 848 +49021 75067657 884 +49022 75068541 848 +49023 75069389 848 +49024 75070237 884 +49025 75071121 848 +49026 75071969 848 +49027 75072817 884 +49028 75073701 848 +49029 75074549 848 +49030 75075397 884 +49031 75076281 848 +49032 75077129 848 +49033 75077977 884 +49034 75078861 848 +49035 75079709 848 +49036 75080557 884 +49037 75081441 848 +49038 75082289 848 +49039 75083137 884 +49040 75084021 848 +49041 75084869 848 +49042 75085717 884 +49043 75086601 848 +49044 75087449 848 +49045 75088297 884 +49046 75089181 848 +49047 75090029 848 +49048 75090877 884 +49049 75091761 848 +49050 75092609 848 +49051 75093457 884 +49052 75094341 848 +49053 75095189 848 +49054 75096037 884 +49055 75096921 848 +49056 75097769 848 +49057 75098617 884 +49058 75099501 848 +49059 75100349 848 +49060 75101197 884 +49061 75102081 848 +49062 75102929 848 +49063 75103777 884 +49064 75104661 848 +49065 75105509 848 +49066 75106357 884 +49067 75107241 848 +49068 75108089 848 +49069 75108937 884 +49070 75109821 848 +49071 75110669 848 +49072 75111517 884 +49073 75112401 848 +49074 75113249 848 +49075 75114097 884 +49076 75114981 848 +49077 75115829 848 +49078 75116677 884 +49079 75117561 848 +49080 75118409 848 +49081 75119257 884 +49082 75120141 848 +49083 75120989 848 +49084 75121837 884 +49085 75122721 848 +49086 75123569 848 +49087 75124417 884 +49088 75125301 848 +49089 75126149 848 +49090 75126997 884 +49091 75127881 848 +49092 75128729 848 +49093 75129577 884 +49094 75130461 848 +49095 75131309 848 +49096 75132157 884 +49097 75133041 848 +49098 75133889 848 +49099 75134737 884 +49100 75135621 848 +49101 75136469 848 +49102 75137317 884 +49103 75138201 848 +49104 75139049 848 +49105 75139897 884 +49106 75140781 848 +49107 75141629 848 +49108 75142477 884 +49109 75143361 848 +49110 75144209 848 +49111 75145057 884 +49112 75145941 848 +49113 75146789 848 +49114 75147637 884 +49115 75148521 848 +49116 75149369 848 +49117 75150217 884 +49118 75151101 848 +49119 75151949 848 +49120 75152797 884 +49121 75153681 848 +49122 75154529 848 +49123 75155377 884 +49124 75156261 848 +49125 75157109 848 +49126 75157957 884 +49127 75158841 848 +49128 75159689 848 +49129 75160537 884 +49130 75161421 848 +49131 75162269 848 +49132 75163117 884 +49133 75164001 848 +49134 75164849 848 +49135 75165697 884 +49136 75166581 848 +49137 75167429 848 +49138 75168277 884 +49139 75169161 848 +49140 75170009 848 +49141 75170857 884 +49142 75171741 848 +49143 75172589 854 +49144 75173443 854 +49145 75174297 854 +49146 75175151 854 +49147 75176005 854 +49148 75176859 854 +49149 75177713 854 +49150 75178567 854 +49151 75179421 854 +49152 75180275 854 +49153 75181129 854 +49154 75181983 854 +49155 75182837 854 +49156 75183691 854 +49157 75184545 854 +49158 75185399 854 +49159 75186253 854 +49160 75187107 854 +49161 75187961 854 +49162 75188815 854 +49163 75189669 854 +49164 75190523 854 +49165 75191377 854 +49166 75192231 854 +49167 75193085 854 +49168 75193939 854 +49169 75194793 854 +49170 75195647 854 +49171 75196501 854 +49172 75197355 854 +49173 75198209 854 +49174 75199063 854 +49175 75199917 854 +49176 75200771 854 +49177 75201625 854 +49178 75202479 854 +49179 75203333 854 +49180 75204187 854 +49181 75205041 854 +49182 75205895 854 +49183 75206749 854 +49184 75207603 854 +49185 75208457 854 +49186 75209311 854 +49187 75210165 854 +49188 75211019 854 +49189 75211873 854 +49190 75212727 854 +49191 75213581 854 +49192 75214435 854 +49193 75215289 854 +49194 75216143 854 +49195 75216997 854 +49196 75217851 854 +49197 75218705 854 +49198 75219559 854 +49199 75220413 854 +49200 75221267 854 +49201 75222121 854 +49202 75222975 854 +49203 75223829 854 +49204 75224683 854 +49205 75225537 854 +49206 75226391 854 +49207 75227245 854 +49208 75228099 854 +49209 75228953 854 +49210 75229807 854 +49211 75230661 854 +49212 75231515 854 +49213 75232369 854 +49214 75233223 854 +49215 75234077 854 +49216 75234931 854 +49217 75235785 854 +49218 75236639 854 +49219 75237493 854 +49220 75238347 854 +49221 75239201 854 +49222 75240055 854 +49223 75240909 854 +49224 75241763 854 +49225 75242617 854 +49226 75243471 854 +49227 75244325 854 +49228 75245179 854 +49229 75246033 854 +49230 75246887 854 +49231 75247741 854 +49232 75248595 854 +49233 75249449 854 +49234 75250303 854 +49235 75251157 854 +49236 75252011 854 +49237 75252865 854 +49238 75253719 854 +49239 75254573 854 +49240 75255427 854 +49241 75256281 854 +49242 75257135 854 +49243 75257989 854 +49244 75258843 854 +49245 75259697 854 +49246 75260551 854 +49247 75261405 854 +49248 75262259 854 +49249 75263113 854 +49250 75263967 854 +49251 75264821 854 +49252 75265675 854 +49253 75266529 854 +49254 75267383 854 +49255 75268237 854 +49256 75269091 854 +49257 75269945 854 +49258 75270799 854 +49259 75271653 854 +49260 75272507 854 +49261 75273361 854 +49262 75274215 854 +49263 75275069 854 +49264 75275923 854 +49265 75276777 854 +49266 75277631 854 +49267 75278485 854 +49268 75279339 854 +49269 75280193 854 +49270 75281047 854 +49271 75281901 854 +49272 75282755 854 +49273 75283609 854 +49274 75284463 854 +49275 75285317 854 +49276 75286171 854 +49277 75287025 854 +49278 75287879 854 +49279 75288733 854 +49280 75289587 854 +49281 75290441 854 +49282 75291295 854 +49283 75292149 854 +49284 75293003 854 +49285 75293857 854 +49286 75294711 854 +49287 75295565 854 +49288 75296419 854 +49289 75297273 854 +49290 75298127 854 +49291 75298981 854 +49292 75299835 854 +49293 75300689 854 +49294 75301543 854 +49295 75302397 854 +49296 75303251 854 +49297 75304105 854 +49298 75304959 854 +49299 75305813 854 +49300 75306667 854 +49301 75307521 854 +49302 75308375 854 +49303 75309229 854 +49304 75310083 854 +49305 75310937 854 +49306 75311791 854 +49307 75312645 854 +49308 75313499 854 +49309 75314353 854 +49310 75315207 854 +49311 75316061 854 +49312 75316915 854 +49313 75317769 854 +49314 75318623 854 +49315 75319477 854 +49316 75320331 854 +49317 75321185 854 +49318 75322039 854 +49319 75322893 854 +49320 75323747 854 +49321 75324601 854 +49322 75325455 854 +49323 75326309 782 +49324 75327091 782 +49325 75327873 782 +49326 75328655 782 +49327 75329437 782 +49328 75330219 782 +49329 75331001 782 +49330 75331783 782 +49331 75332565 782 +49332 75333347 782 +49333 75334129 782 +49334 75334911 674 +49335 75335585 2234 +49336 75337819 2228 +49337 75340047 836 +49338 75340883 836 +49339 75341719 1286 +49340 75343005 926 +49341 75343931 926 +49342 75344857 926 +49343 75345783 926 +49344 75346709 422 +49345 75347131 3026 +49346 75350157 3026 +49347 75353183 3026 +49348 75356209 3026 +49349 75359235 2132 +49350 75361367 2132 +49351 75363499 2132 +49352 75365631 2132 +49353 75367763 1736 +49354 75369499 1736 +49355 75371235 1160 +49356 75372395 1172 +49357 75373567 1154 +49358 75374721 206 +49359 75374927 212 +49360 75375139 218 +49361 75375357 1238 +49362 75376595 1166 +49363 75377761 1154 +49364 75378915 200 +49365 75379115 206 +49366 75379321 206 +49367 75379527 680 +49368 75380207 668 +49369 75380875 680 +49370 75381555 2798 +49371 75384353 2798 +49372 75387151 884 +49373 75388035 662 +49374 75388697 1214 +49375 75389911 662 +49376 75390573 1214 +49377 75391787 1316 +49378 75393103 1364 +49379 75394467 1574 +49380 75396041 596 +49381 75396637 500 +49382 75397137 614 +49383 75397751 560 +49384 75398311 596 +49385 75398907 512 +49386 75399419 656 +49387 75400075 548 +49388 75400623 116 +49389 75400739 1664 +49390 75402403 512 +49391 75402915 1628 +49392 75404543 512 +49393 75405055 1676 +49394 75406731 1478 +49395 75408209 722 +49396 75408931 728 +49397 75409659 1184 +49398 75410843 1148 +49399 75411991 1178 +49400 75413169 200 +49401 75413369 230 +49402 75413599 224 +49403 75413823 1178 +49404 75415001 1160 +49405 75416161 1178 +49406 75417339 200 +49407 75417539 230 +49408 75417769 236 +49409 75418005 698 +49410 75418703 734 +49411 75419437 998 +49412 75420435 674 +49413 75421109 674 +49414 75421783 1154 +49415 75422937 1490 +49416 75424427 1490 +49417 75425917 1784 +49418 75427701 1778 +49419 75429479 1784 +49420 75431263 1784 +49421 75433047 1658 +49422 75434705 1286 +49423 75435991 2036 +49424 75438027 326 +49425 75438353 896 +49426 75439249 926 +49427 75440175 914 +49428 75441089 2522 +49429 75443611 2540 +49430 75446151 854 +49431 75447005 662 +49432 75447667 860 +49433 75448527 1502 +49434 75450029 1556 +49435 75451585 1508 +49436 75453093 1394 +49437 75454487 1394 +49438 75455881 1394 +49439 75457275 1112 +49440 75458387 1112 +49441 75459499 1580 +49442 75461079 74 +49443 75461153 74 +49444 75461227 74 +49445 75461301 74 +49446 75461375 74 +49447 75461449 74 +49448 75461523 74 +49449 75461597 74 +49450 75461671 74 +49451 75461745 74 +49452 75461819 74 +49453 75461893 74 +49454 75461967 74 +49455 75462041 74 +49456 75462115 74 +49457 75462189 74 +49458 75462263 74 +49459 75462337 74 +49460 75462411 158 +49461 75462569 152 +49462 75462721 158 +49463 75462879 158 +49464 75463037 158 +49465 75463195 158 +49466 75463353 1358 +49467 75464711 1244 +49468 75465955 1274 +49469 75467229 1208 +49470 75468437 146 +49471 75468583 248 +49472 75468831 116 +49473 75468947 254 +49474 75469201 560 +49475 75469761 242 +49476 75470003 452 +49477 75470455 2546 +49478 75473001 4214 +49479 75477215 926 +49480 75478141 518 +49481 75478659 2912 +49482 75481571 890 +49483 75482461 3836 +49484 75486297 8149 +49485 75494446 6176 +49486 75500622 3548 +49487 75504170 2954 +49488 75507124 3404 +49489 75510528 5665 +49490 75516193 1856 +49491 75518049 1478 +49492 75519527 1334 +49493 75520861 950 +49494 75521811 806 +49495 75522617 698 +49496 75523315 932 +49497 75524247 5006 +49498 75529253 6493 +49499 75535746 2372 +49500 75538118 2456 +49501 75540574 1022 +49502 75541596 1910 +49503 75543506 2096 +49504 75545602 1256 +49505 75546858 1928 +49506 75548786 1268 +49507 75550054 740 +49508 75550794 2360 +49509 75553154 962 +49510 75554116 1340 +49511 75555456 1274 +49512 75556730 2156 +49513 75558886 1088 +49514 75559974 1322 +49515 75561296 926 +49516 75562222 3080 +49517 75565302 926 +49518 75566228 1118 +49519 75567346 1364 +49520 75568710 170 +49521 75568880 1076 +49522 75569956 4724 +49523 75574680 2348 +49524 75577028 1226 +49525 75578254 1232 +49526 75579486 1280 +49527 75580766 1532 +49528 75582298 1322 +49529 75583620 188 +49530 75583808 5498 +49531 75589306 5336 +49532 75594642 5761 +49533 75600403 2744 +49534 75603147 3980 +49535 75607127 3086 +49536 75610213 1304 +49537 75611517 3482 +49538 75614999 2270 +49539 75617269 1874 +49540 75619143 2612 +49541 75621755 2126 +49542 75623881 1964 +49543 75625845 1922 +49544 75627767 1952 +49545 75629719 2096 +49546 75631815 1550 +49547 75633365 1466 +49548 75634831 1670 +49549 75636501 1406 +49550 75637907 1628 +49551 75639535 1490 +49552 75641025 1328 +49553 75642353 968 +49554 75643321 806 +49555 75644127 986 +49556 75645113 782 +49557 75645895 512 +49558 75646407 584 +49559 75646991 452 +49560 75647443 2546 +49561 75649989 4214 +49562 75654203 926 +49563 75655129 518 +49564 75655647 2912 +49565 75658559 890 +49566 75659449 3836 +49567 75663285 8149 +49568 75671434 6176 +49569 75677610 3548 +49570 75681158 2954 +49571 75684112 3404 +49572 75687516 5665 +49573 75693181 1856 +49574 75695037 1478 +49575 75696515 1334 +49576 75697849 950 +49577 75698799 806 +49578 75699605 698 +49579 75700303 932 +49580 75701235 10669 +49581 75711904 6493 +49582 75718397 2372 +49583 75720769 2456 +49584 75723225 1022 +49585 75724247 1910 +49586 75726157 2096 +49587 75728253 1256 +49588 75729509 1928 +49589 75731437 1268 +49590 75732705 740 +49591 75733445 728 +49592 75734173 710 +49593 75734883 734 +49594 75735617 2834 +49595 75738451 728 +49596 75739179 710 +49597 75739889 734 +49598 75740623 2834 +49599 75743457 728 +49600 75744185 710 +49601 75744895 734 +49602 75745629 2834 +49603 75748463 728 +49604 75749191 710 +49605 75749901 734 +49606 75750635 2834 +49607 75753469 728 +49608 75754197 710 +49609 75754907 734 +49610 75755641 2834 +49611 75758475 728 +49612 75759203 710 +49613 75759913 734 +49614 75760647 2834 +49615 75763481 3428 +49616 75766909 4208 +49617 75771117 4208 +49618 75775325 3428 +49619 75778753 4208 +49620 75782961 3428 +49621 75786389 422 +49622 75786811 422 +49623 75787233 422 +49624 75787655 1004 +49625 75788659 998 +49626 75789657 302 +49627 75789959 1694 +49628 75791653 1178 +49629 75792831 1106 +49630 75793937 1130 +49631 75795067 1082 +49632 75796149 1118 +49633 75797267 1088 +49634 75798355 1016 +49635 75799371 956 +49636 75800327 1016 +49637 75801343 956 +49638 75802299 1016 +49639 75803315 956 +49640 75804271 1016 +49641 75805287 956 +49642 75806243 2036 +49643 75808279 296 +49644 75808575 296 +49645 75808871 296 +49646 75809167 296 +49647 75809463 296 +49648 75809759 296 +49649 75810055 2042 +49650 75812097 1448 +49651 75813545 1904 +49652 75815449 1838 +49653 75817287 1070 +49654 75818357 1598 +49655 75819955 902 +49656 75820857 920 +49657 75821777 608 +49658 75822385 656 +49659 75823041 626 +49660 75823667 608 +49661 75824275 902 +49662 75825177 920 +49663 75826097 608 +49664 75826705 656 +49665 75827361 626 +49666 75827987 608 +49667 75828595 1292 +49668 75829887 1040 +49669 75830927 1394 +49670 75832321 1394 +49671 75833715 308 +49672 75834023 1778 +49673 75835801 1790 +49674 75837591 1154 +49675 75838745 1082 +49676 75839827 2216 +49677 75842043 116 +49678 75842159 2054 +49679 75844213 584 +49680 75844797 482 +49681 75845279 656 +49682 75845935 572 +49683 75846507 584 +49684 75847091 524 +49685 75847615 650 +49686 75848265 566 +49687 75848831 116 +49688 75848947 866 +49689 75849813 830 +49690 75850643 860 +49691 75851503 860 +49692 75852363 860 +49693 75853223 860 +49694 75854083 1664 +49695 75855747 1670 +49696 75857417 332 +49697 75857749 332 +49698 75858081 764 +49699 75858845 710 +49700 75859555 2966 +49701 75862521 2966 +49702 75865487 2972 +49703 75868459 2978 +49704 75871437 2972 +49705 75874409 2978 +49706 75877387 1952 +49707 75879339 1952 +49708 75881291 1952 +49709 75883243 3134 +49710 75886377 3140 +49711 75889517 3140 +49712 75892657 656 +49713 75893313 1172 +49714 75894485 1172 +49715 75895657 1172 +49716 75896829 710 +49717 75897539 644 +49718 75898183 710 +49719 75898893 644 +49720 75899537 710 +49721 75900247 644 +49722 75900891 74 +49723 75900965 1334 +49724 75902299 1280 +49725 75903579 836 +49726 75904415 836 +49727 75905251 1130 +49728 75906381 1970 +49729 75908351 632 +49730 75908983 632 +49731 75909615 1388 +49732 75911003 1370 +49733 75912373 3272 +49734 75915645 2132 +49735 75917777 1592 +49736 75919369 1592 +49737 75920961 1592 +49738 75922553 8480 +49739 75931033 8480 +49740 75939513 1634 +49741 75941147 1700 +49742 75942847 1664 +49743 75944511 1706 +49744 75946217 80 +49745 75946297 1364 +49746 75947661 1298 +49747 75948959 1856 +49748 75950815 1856 +49749 75952671 1856 +49750 75954527 1856 +49751 75956383 1856 +49752 75958239 1856 +49753 75960095 854 +49754 75960949 854 +49755 75961803 1838 +49756 75963641 1838 +49757 75965479 2114 +49758 75967593 770 +49759 75968363 770 +49760 75969133 752 +49761 75969885 5426 +49762 75975311 5420 +49763 75980731 2894 +49764 75983625 2900 +49765 75986525 86 +49766 75986611 86 +49767 75986697 902 +49768 75987599 686 +49769 75988285 668 +49770 75988953 596 +49771 75989549 614 +49772 75990163 530 +49773 75990693 494 +49774 75991187 686 +49775 75991873 680 +49776 75992553 32 +49777 75992585 32 +49778 75992617 1358 +49779 75993975 1376 +49780 75995351 1382 +49781 75996733 2294 +49782 75999027 806 +49783 75999833 1688 +49784 76001521 476 +49785 76001997 470 +49786 76002467 482 +49787 76002949 788 +49788 76003737 440 +49789 76004177 2510 +49790 76006687 2102 +49791 76008789 2048 +49792 76010837 74 +49793 76010911 2060 +49794 76012971 92 +49795 76013063 2060 +49796 76015123 68 +49797 76015191 1052 +49798 76016243 2810 +49799 76019053 944 +49800 76019997 116 +49801 76020113 1034 +49802 76021147 1028 +49803 76022175 1148 +49804 76023323 2426 +49805 76025749 1400 +49806 76027149 1094 +49807 76028243 104 +49808 76028347 1172 +49809 76029519 2426 +49810 76031945 1232 +49811 76033177 1094 +49812 76034271 104 +49813 76034375 2816 +49814 76037191 1208 +49815 76038399 1880 +49816 76040279 134 +49817 76040413 134 +49818 76040547 134 +49819 76040681 134 +49820 76040815 2108 +49821 76042923 398 +49822 76043321 5096 +49823 76048417 5108 +49824 76053525 260 +49825 76053785 1610 +49826 76055395 2522 +49827 76057917 1028 +49828 76058945 1772 +49829 76060717 2528 +49830 76063245 1058 +49831 76064303 1058 +49832 76065361 1058 +49833 76066419 1226 +49834 76067645 836 +49835 76068481 1376 +49836 76069857 674 +49837 76070531 2749 +49838 76073280 1285 +49839 76074565 722 +49840 76075287 812 +49841 76076099 740 +49842 76076839 614 +49843 76077453 224 +49844 76077677 314 +49845 76077991 212 +49846 76078203 194 +49847 76078397 242 +49848 76078639 242 +49849 76078881 182 +49850 76079063 188 +49851 76079251 284 +49852 76079535 170 +49853 76079705 2485 +49854 76082190 530 +49855 76082720 3001 +49856 76085721 2377 +49857 76088098 530 +49858 76088628 1508 +49859 76090136 1514 +49860 76091650 1514 +49861 76093164 482 +49862 76093646 1370 +49863 76095016 650 +49864 76095666 650 +49865 76096316 650 +49866 76096966 722 +49867 76097688 728 +49868 76098416 2264 +49869 76100680 1712 +49870 76102392 1712 +49871 76104104 332 +49872 76104436 1130 +49873 76105566 1130 +49874 76106696 1088 +49875 76107784 1064 +49876 76108848 1124 +49877 76109972 1130 +49878 76111102 1124 +49879 76112226 5941 +49880 76118167 428 +49881 76118595 1556 +49882 76120151 1676 +49883 76121827 998 +49884 76122825 770 +49885 76123595 998 +49886 76124593 2312 +49887 76126905 1898 +49888 76128803 632 +49889 76129435 1040 +49890 76130475 3710 +49891 76134185 3698 +49892 76137883 3710 +49893 76141593 1886 +49894 76143479 1244 +49895 76144723 2276 +49896 76146999 2264 +49897 76149263 914 +49898 76150177 656 +49899 76150833 908 +49900 76151741 566 +49901 76152307 866 +49902 76153173 866 +49903 76154039 92 +49904 76154131 1808 +49905 76155939 218 +49906 76156157 1286 +49907 76157443 932 +49908 76158375 680 +49909 76159055 860 +49910 76159915 710 +49911 76160625 170 +49912 76160795 1406 +49913 76162201 812 +49914 76163013 758 +49915 76163771 92 +49916 76163863 1472 +49917 76165335 98 +49918 76165433 1358 +49919 76166791 1322 +49920 76168113 1346 +49921 76169459 1352 +49922 76170811 1352 +49923 76172163 1352 +49924 76173515 476 +49925 76173991 326 +49926 76174317 2354 +49927 76176671 488 +49928 76177159 2413 +49929 76179572 440 +49930 76180012 902 +49931 76180914 1652 +49932 76182566 1466 +49933 76184032 734 +49934 76184766 4358 +49935 76189124 2738 +49936 76191862 3266 +49937 76195128 4352 +49938 76199480 3182 +49939 76202662 3182 +49940 76205844 3704 +49941 76209548 1586 +49942 76211134 416 +49943 76211550 1741 +49944 76213291 860 +49945 76214151 566 +49946 76214717 326 +49947 76215043 1208 +49948 76216251 392 +49949 76216643 1466 +49950 76218109 2390 +49951 76220499 1076 +49952 76221575 1598 +49953 76223173 2390 +49954 76225563 2426 +49955 76227989 1940 +49956 76229929 2426 +49957 76232355 776 +49958 76233131 110 +49959 76233241 134 +49960 76233375 2408 +49961 76235783 1832 +49962 76237615 2408 +49963 76240023 728 +49964 76240751 632 +49965 76241383 632 +49966 76242015 632 +49967 76242647 1250 +49968 76243897 584 +49969 76244481 908 +49970 76245389 614 +49971 76246003 512 +49972 76246515 512 +49973 76247027 254 +49974 76247281 860 +49975 76248141 458 +49976 76248599 152 +49977 76248751 428 +49978 76249179 848 +49979 76250027 614 +49980 76250641 2630 +49981 76253271 2630 +49982 76255901 2594 +49983 76258495 2594 +49984 76261089 2630 +49985 76263719 2594 +49986 76266313 2630 +49987 76268943 2594 +49988 76271537 2630 +49989 76274167 2594 +49990 76276761 2630 +49991 76279391 2594 +49992 76281985 2630 +49993 76284615 2630 +49994 76287245 2630 +49995 76289875 2594 +49996 76292469 2594 +49997 76295063 2630 +49998 76297693 2594 +49999 76300287 2630 +50000 76302917 2594 +50001 76305511 2630 +50002 76308141 2594 +50003 76310735 2630 +50004 76313365 2594 +50005 76315959 2630 +50006 76318589 2630 +50007 76321219 2630 +50008 76323849 2594 +50009 76326443 2594 +50010 76329037 2630 +50011 76331667 2594 +50012 76334261 2630 +50013 76336891 2594 +50014 76339485 2630 +50015 76342115 2594 +50016 76344709 2630 +50017 76347339 2594 +50018 76349933 2630 +50019 76352563 2630 +50020 76355193 2630 +50021 76357823 2594 +50022 76360417 2594 +50023 76363011 2630 +50024 76365641 2594 +50025 76368235 2630 +50026 76370865 2594 +50027 76373459 2630 +50028 76376089 2594 +50029 76378683 2630 +50030 76381313 2594 +50031 76383907 2630 +50032 76386537 2630 +50033 76389167 2594 +50034 76391761 2630 +50035 76394391 2594 +50036 76396985 2630 +50037 76399615 2594 +50038 76402209 2630 +50039 76404839 2594 +50040 76407433 2630 +50041 76410063 2594 +50042 76412657 2630 +50043 76415287 2594 +50044 76417881 2594 +50045 76420475 2630 +50046 76423105 2630 +50047 76425735 2594 +50048 76428329 2594 +50049 76430923 2630 +50050 76433553 2594 +50051 76436147 2630 +50052 76438777 2594 +50053 76441371 2630 +50054 76444001 2594 +50055 76446595 2630 +50056 76449225 2594 +50057 76451819 2594 +50058 76454413 2630 +50059 76457043 2630 +50060 76459673 2594 +50061 76462267 2594 +50062 76464861 2630 +50063 76467491 2594 +50064 76470085 2630 +50065 76472715 2594 +50066 76475309 2630 +50067 76477939 2594 +50068 76480533 2630 +50069 76483163 2594 +50070 76485757 2594 +50071 76488351 2630 +50072 76490981 2630 +50073 76493611 2594 +50074 76496205 2594 +50075 76498799 2600 +50076 76501399 2594 +50077 76503993 2618 +50078 76506611 2594 +50079 76509205 2630 +50080 76511835 2594 +50081 76514429 2618 +50082 76517047 2594 +50083 76519641 2594 +50084 76522235 2630 +50085 76524865 2612 +50086 76527477 2594 +50087 76530071 2594 +50088 76532665 2630 +50089 76535295 2594 +50090 76537889 2630 +50091 76540519 2594 +50092 76543113 2618 +50093 76545731 2594 +50094 76548325 2630 +50095 76550955 2594 +50096 76553549 2630 +50097 76556179 2600 +50098 76558779 2630 +50099 76561409 2594 +50100 76564003 2594 +50101 76566597 2630 +50102 76569227 2594 +50103 76571821 2630 +50104 76574451 2594 +50105 76577045 2630 +50106 76579675 2594 +50107 76582269 2630 +50108 76584899 2594 +50109 76587493 2594 +50110 76590087 2630 +50111 76592717 2612 +50112 76595329 2594 +50113 76597923 2594 +50114 76600517 2630 +50115 76603147 2594 +50116 76605741 2630 +50117 76608371 2594 +50118 76610965 2630 +50119 76613595 2594 +50120 76616189 2630 +50121 76618819 2594 +50122 76621413 2594 +50123 76624007 2630 +50124 76626637 2630 +50125 76629267 2594 +50126 76631861 2594 +50127 76634455 2630 +50128 76637085 2594 +50129 76639679 2630 +50130 76642309 2594 +50131 76644903 2630 +50132 76647533 2594 +50133 76650127 2630 +50134 76652757 2594 +50135 76655351 2594 +50136 76657945 2630 +50137 76660575 2630 +50138 76663205 2594 +50139 76665799 2594 +50140 76668393 2630 +50141 76671023 2594 +50142 76673617 2630 +50143 76676247 2594 +50144 76678841 2630 +50145 76681471 2594 +50146 76684065 2630 +50147 76686695 2630 +50148 76689325 2594 +50149 76691919 2618 +50150 76694537 2630 +50151 76697167 2594 +50152 76699761 2594 +50153 76702355 2630 +50154 76704985 2594 +50155 76707579 2630 +50156 76710209 2594 +50157 76712803 2612 +50158 76715415 2594 +50159 76718009 2594 +50160 76720603 2606 +50161 76723209 2594 +50162 76725803 2630 +50163 76728433 2612 +50164 76731045 2594 +50165 76733639 2594 +50166 76736233 2630 +50167 76738863 2594 +50168 76741457 2630 +50169 76744087 2594 +50170 76746681 2630 +50171 76749311 2594 +50172 76751905 2630 +50173 76754535 2630 +50174 76757165 2594 +50175 76759759 2630 +50176 76762389 2630 +50177 76765019 2594 +50178 76767613 2594 +50179 76770207 2630 +50180 76772837 2594 +50181 76775431 2630 +50182 76778061 2594 +50183 76780655 2630 +50184 76783285 2594 +50185 76785879 2630 +50186 76788509 2630 +50187 76791139 2594 +50188 76793733 2630 +50189 76796363 2630 +50190 76798993 2594 +50191 76801587 2594 +50192 76804181 2630 +50193 76806811 2594 +50194 76809405 2630 +50195 76812035 2594 +50196 76814629 2630 +50197 76817259 2594 +50198 76819853 2606 +50199 76822459 2624 +50200 76825083 2594 +50201 76827677 2630 +50202 76830307 2630 +50203 76832937 2594 +50204 76835531 2594 +50205 76838125 2630 +50206 76840755 2594 +50207 76843349 2630 +50208 76845979 2594 +50209 76848573 2630 +50210 76851203 2594 +50211 76853797 2630 +50212 76856427 2630 +50213 76859057 2594 +50214 76861651 2630 +50215 76864281 2630 +50216 76866911 2594 +50217 76869505 2594 +50218 76872099 2630 +50219 76874729 2594 +50220 76877323 2630 +50221 76879953 2594 +50222 76882547 2630 +50223 76885177 2594 +50224 76887771 2630 +50225 76890401 2594 +50226 76892995 2594 +50227 76895589 2624 +50228 76898213 2624 +50229 76900837 2594 +50230 76903431 2594 +50231 76906025 2630 +50232 76908655 2594 +50233 76911249 2630 +50234 76913879 2594 +50235 76916473 2630 +50236 76919103 2594 +50237 76921697 2630 +50238 76924327 2594 +50239 76926921 2594 +50240 76929515 2624 +50241 76932139 2612 +50242 76934751 2594 +50243 76937345 2594 +50244 76939939 2630 +50245 76942569 2594 +50246 76945163 2630 +50247 76947793 2594 +50248 76950387 2630 +50249 76953017 2594 +50250 76955611 2630 +50251 76958241 2594 +50252 76960835 2594 +50253 76963429 2630 +50254 76966059 2630 +50255 76968689 2594 +50256 76971283 2594 +50257 76973877 2630 +50258 76976507 2594 +50259 76979101 2618 +50260 76981719 2594 +50261 76984313 2630 +50262 76986943 2594 +50263 76989537 2630 +50264 76992167 2594 +50265 76994761 2594 +50266 76997355 2630 +50267 76999985 2624 +50268 77002609 2594 +50269 77005203 2594 +50270 77007797 2630 +50271 77010427 2594 +50272 77013021 2630 +50273 77015651 2594 +50274 77018245 2630 +50275 77020875 2594 +50276 77023469 2630 +50277 77026099 2594 +50278 77028693 2072 +50279 77030765 524 +50280 77031289 512 +50281 77031801 638 +50282 77032439 680 +50283 77033119 830 +50284 77033949 86 +50285 77034035 1190 +50286 77035225 1190 +50287 77036415 890 +50288 77037305 884 +50289 77038189 1478 +50290 77039667 1478 +50291 77041145 1478 +50292 77042623 1430 +50293 77044053 1430 +50294 77045483 1430 +50295 77046913 1430 +50296 77048343 1430 +50297 77049773 1430 +50298 77051203 2624 +50299 77053827 2006 +50300 77055833 1976 +50301 77057809 1976 +50302 77059785 1976 +50303 77061761 662 +50304 77062423 680 +50305 77063103 2396 +50306 77065499 1142 +50307 77066641 2744 +50308 77069385 2738 +50309 77072123 1904 +50310 77074027 1904 +50311 77075931 1940 +50312 77077871 1940 +50313 77079811 1976 +50314 77081787 1976 +50315 77083763 728 +50316 77084491 734 +50317 77085225 740 +50318 77085965 728 +50319 77086693 728 +50320 77087421 734 +50321 77088155 734 +50322 77088889 740 +50323 77089629 920 +50324 77090549 932 +50325 77091481 884 +50326 77092365 3140 +50327 77095505 140 +50328 77095645 68 +50329 77095713 3140 +50330 77098853 140 +50331 77098993 68 +50332 77099061 3140 +50333 77102201 140 +50334 77102341 68 +50335 77102409 3140 +50336 77105549 140 +50337 77105689 68 +50338 77105757 3260 +50339 77109017 158 +50340 77109175 44 +50341 77109219 3260 +50342 77112479 158 +50343 77112637 44 +50344 77112681 3260 +50345 77115941 158 +50346 77116099 44 +50347 77116143 3260 +50348 77119403 158 +50349 77119561 44 +50350 77119605 3446 +50351 77123051 3470 +50352 77126521 1988 +50353 77128509 1832 +50354 77130341 512 +50355 77130853 488 +50356 77131341 1130 +50357 77132471 1130 +50358 77133601 8258 +50359 77141859 8258 +50360 77150117 8258 +50361 77158375 8258 +50362 77166633 8126 +50363 77174759 8126 +50364 77182885 8126 +50365 77191011 8126 +50366 77199137 16189 +50367 77215326 16189 +50368 77231515 16189 +50369 77247704 16189 +50370 77263893 8216 +50371 77272109 8216 +50372 77280325 8216 +50373 77288541 8216 +50374 77296757 8270 +50375 77305027 8270 +50376 77313297 8270 +50377 77321567 8270 +50378 77329837 8204 +50379 77338041 8204 +50380 77346245 8204 +50381 77354449 8204 +50382 77362653 8216 +50383 77370869 8216 +50384 77379085 8216 +50385 77387301 8216 +50386 77395517 1844 +50387 77397361 1880 +50388 77399241 1688 +50389 77400929 656 +50390 77401585 656 +50391 77402241 1442 +50392 77403683 1502 +50393 77405185 68 +50394 77405253 74 +50395 77405327 1094 +50396 77406421 1094 +50397 77407515 1094 +50398 77408609 1094 +50399 77409703 1046 +50400 77410749 1046 +50401 77411795 1046 +50402 77412841 1046 +50403 77413887 626 +50404 77414513 548 +50405 77415061 620 +50406 77415681 542 +50407 77416223 1046 +50408 77417269 1082 +50409 77418351 1046 +50410 77419397 1082 +50411 77420479 1190 +50412 77421669 3230 +50413 77424899 1946 +50414 77426845 1874 +50415 77428719 1874 +50416 77430593 2222 +50417 77432815 2222 +50418 77435037 1556 +50419 77436593 1562 +50420 77438155 1556 +50421 77439711 1568 +50422 77441279 1556 +50423 77442835 1562 +50424 77444397 530 +50425 77444927 530 +50426 77445457 494 +50427 77445951 530 +50428 77446481 1196 +50429 77447677 1148 +50430 77448825 956 +50431 77449781 5492 +50432 77455273 38 +50433 77455311 2348 +50434 77457659 1220 +50435 77458879 1226 +50436 77460105 1220 +50437 77461325 1226 +50438 77462551 1220 +50439 77463771 1226 +50440 77464997 1220 +50441 77466217 1226 +50442 77467443 1112 +50443 77468555 1112 +50444 77469667 1100 +50445 77470767 1100 +50446 77471867 962 +50447 77472829 962 +50448 77473791 818 +50449 77474609 1730 +50450 77476339 104 +50451 77476443 104 +50452 77476547 104 +50453 77476651 578 +50454 77477229 572 +50455 77477801 578 +50456 77478379 572 +50457 77478951 776 +50458 77479727 776 +50459 77480503 776 +50460 77481279 764 +50461 77482043 662 +50462 77482705 674 +50463 77483379 716 +50464 77484095 704 +50465 77484799 662 +50466 77485461 674 +50467 77486135 716 +50468 77486851 704 +50469 77487555 1178 +50470 77488733 2396 +50471 77491129 2396 +50472 77493525 2396 +50473 77495921 2408 +50474 77498329 2408 +50475 77500737 2408 +50476 77503145 2348 +50477 77505493 2414 +50478 77507907 2372 +50479 77510279 2408 +50480 77512687 2396 +50481 77515083 2408 +50482 77517491 3446 +50483 77520937 3452 +50484 77524389 3518 +50485 77527907 3302 +50486 77531209 3320 +50487 77534529 3152 +50488 77537681 1196 +50489 77538877 1196 +50490 77540073 2396 +50491 77542469 2390 +50492 77544859 2396 +50493 77547255 2408 +50494 77549663 2408 +50495 77552071 2402 +50496 77554473 2348 +50497 77556821 2408 +50498 77559229 2372 +50499 77561601 2402 +50500 77564003 2396 +50501 77566399 2402 +50502 77568801 3446 +50503 77572247 3452 +50504 77575699 3518 +50505 77579217 3194 +50506 77582411 470 +50507 77582881 500 +50508 77583381 476 +50509 77583857 392 +50510 77584249 236 +50511 77584485 392 +50512 77584877 236 +50513 77585113 392 +50514 77585505 236 +50515 77585741 1850 +50516 77587591 2048 +50517 77589639 2060 +50518 77591699 2048 +50519 77593747 2060 +50520 77595807 986 +50521 77596793 92 +50522 77596885 2168 +50523 77599053 2162 +50524 77601215 1094 +50525 77602309 1100 +50526 77603409 1094 +50527 77604503 1100 +50528 77605603 1652 +50529 77607255 1658 +50530 77608913 1652 +50531 77610565 1658 +50532 77612223 1196 +50533 77613419 4484 +50534 77617903 4250 +50535 77622153 1010 +50536 77623163 4490 +50537 77627653 4250 +50538 77631903 998 +50539 77632901 3266 +50540 77636167 728 +50541 77636895 740 +50542 77637635 818 +50543 77638453 998 +50544 77639451 1172 +50545 77640623 1190 +50546 77641813 1178 +50547 77642991 1190 +50548 77644181 416 +50549 77644597 464 +50550 77645061 434 +50551 77645495 476 +50552 77645971 446 +50553 77646417 440 +50554 77646857 4166 +50555 77651023 4094 +50556 77655117 1286 +50557 77656403 812 +50558 77657215 614 +50559 77657829 866 +50560 77658695 338 +50561 77659033 404 +50562 77659437 788 +50563 77660225 902 +50564 77661127 410 +50565 77661537 308 +50566 77661845 1190 +50567 77663035 746 +50568 77663781 578 +50569 77664359 1226 +50570 77665585 1226 +50571 77666811 1046 +50572 77667857 830 +50573 77668687 830 +50574 77669517 2420 +50575 77671937 2420 +50576 77674357 2420 +50577 77676777 2420 +50578 77679197 2420 +50579 77681617 2420 +50580 77684037 884 +50581 77684921 620 +50582 77685541 32 +50583 77685573 1214 +50584 77686787 1214 +50585 77688001 374 +50586 77688375 368 +50587 77688743 134 +50588 77688877 3542 +50589 77692419 8324 +50590 77700743 926 +50591 77701669 692 +50592 77702361 8516 +50593 77710877 9674 +50594 77720551 16597 +50595 77737148 914 +50596 77738062 692 +50597 77738754 8444 +50598 77747198 9530 +50599 77756728 764 +50600 77757492 2342 +50601 77759834 2360 +50602 77762194 2288 +50603 77764482 2234 +50604 77766716 2342 +50605 77769058 2360 +50606 77771418 2288 +50607 77773706 2234 +50608 77775940 1502 +50609 77777442 1550 +50610 77778992 788 +50611 77779780 1346 +50612 77781126 1346 +50613 77782472 5162 +50614 77787634 5174 +50615 77792808 1850 +50616 77794658 626 +50617 77795284 1262 +50618 77796546 1208 +50619 77797754 62 +50620 77797816 2174 +50621 77799990 2174 +50622 77802164 2168 +50623 77804332 2234 +50624 77806566 2168 +50625 77808734 2180 +50626 77810914 1022 +50627 77811936 866 +50628 77812802 872 +50629 77813674 890 +50630 77814564 2846 +50631 77817410 2846 +50632 77820256 1178 +50633 77821434 1178 +50634 77822612 1178 +50635 77823790 1172 +50636 77824962 1172 +50637 77826134 1172 +50638 77827306 914 +50639 77828220 440 +50640 77828660 428 +50641 77829088 434 +50642 77829522 422 +50643 77829944 422 +50644 77830366 440 +50645 77830806 866 +50646 77831672 1058 +50647 77832730 848 +50648 77833578 1046 +50649 77834624 890 +50650 77835514 890 +50651 77836404 890 +50652 77837294 890 +50653 77838184 890 +50654 77839074 890 +50655 77839964 890 +50656 77840854 890 +50657 77841744 890 +50658 77842634 890 +50659 77843524 890 +50660 77844414 890 +50661 77845304 902 +50662 77846206 896 +50663 77847102 902 +50664 77848004 896 +50665 77848900 902 +50666 77849802 896 +50667 77850698 2138 +50668 77852836 1076 +50669 77853912 890 +50670 77854802 908 +50671 77855710 878 +50672 77856588 896 +50673 77857484 890 +50674 77858374 884 +50675 77859258 788 +50676 77860046 782 +50677 77860828 770 +50678 77861598 782 +50679 77862380 1028 +50680 77863408 1628 +50681 77865036 1202 +50682 77866238 1202 +50683 77867440 728 +50684 77868168 650 +50685 77868818 728 +50686 77869546 650 +50687 77870196 650 +50688 77870846 920 +50689 77871766 116 +50690 77871882 722 +50691 77872604 2534 +50692 77875138 806 +50693 77875944 806 +50694 77876750 800 +50695 77877550 848 +50696 77878398 800 +50697 77879198 848 +50698 77880046 800 +50699 77880846 848 +50700 77881694 800 +50701 77882494 848 +50702 77883342 800 +50703 77884142 848 +50704 77884990 800 +50705 77885790 848 +50706 77886638 818 +50707 77887456 854 +50708 77888310 812 +50709 77889122 806 +50710 77889928 842 +50711 77890770 818 +50712 77891588 830 +50713 77892418 830 +50714 77893248 818 +50715 77894066 842 +50716 77894908 794 +50717 77895702 824 +50718 77896526 2156 +50719 77898682 1472 +50720 77900154 1472 +50721 77901626 1466 +50722 77903092 1466 +50723 77904558 2042 +50724 77906600 1886 +50725 77908486 1952 +50726 77910438 1892 +50727 77912330 620 +50728 77912950 44 +50729 77912994 602 +50730 77913596 44 +50731 77913640 1550 +50732 77915190 2270 +50733 77917460 2258 +50734 77919718 1412 +50735 77921130 764 +50736 77921894 734 +50737 77922628 824 +50738 77923452 878 +50739 77924330 584 +50740 77924914 2348 +50741 77927262 2348 +50742 77929610 2348 +50743 77931958 2348 +50744 77934306 2348 +50745 77936654 2348 +50746 77939002 2348 +50747 77941350 2348 +50748 77943698 2306 +50749 77946004 2306 +50750 77948310 2306 +50751 77950616 2306 +50752 77952922 2306 +50753 77955228 2306 +50754 77957534 2306 +50755 77959840 2306 +50756 77962146 1670 +50757 77963816 1670 +50758 77965486 1430 +50759 77966916 878 +50760 77967794 878 +50761 77968672 830 +50762 77969502 848 +50763 77970350 1124 +50764 77971474 380 +50765 77971854 380 +50766 77972234 560 +50767 77972794 560 +50768 77973354 548 +50769 77973902 566 +50770 77974468 578 +50771 77975046 2450 +50772 77977496 2018 +50773 77979514 2054 +50774 77981568 1202 +50775 77982770 1148 +50776 77983918 740 +50777 77984658 722 +50778 77985380 1454 +50779 77986834 1430 +50780 77988264 1484 +50781 77989748 1490 +50782 77991238 1484 +50783 77992722 1496 +50784 77994218 1406 +50785 77995624 2756 +50786 77998380 926 +50787 77999306 662 +50788 77999968 1280 +50789 78001248 2948 +50790 78004196 1418 +50791 78005614 1418 +50792 78007032 1418 +50793 78008450 1418 +50794 78009868 488 +50795 78010356 488 +50796 78010844 488 +50797 78011332 488 +50798 78011820 92 +50799 78011912 92 +50800 78012004 1610 +50801 78013614 1580 +50802 78015194 1616 +50803 78016810 1586 +50804 78018396 1598 +50805 78019994 1598 +50806 78021592 1598 +50807 78023190 1598 +50808 78024788 710 +50809 78025498 2162 +50810 78027660 38 +50811 78027698 2186 +50812 78029884 38 +50813 78029922 2162 +50814 78032084 38 +50815 78032122 2186 +50816 78034308 38 +50817 78034346 1220 +50818 78035566 1220 +50819 78036786 4634 +50820 78041420 1280 +50821 78042700 1268 +50822 78043968 872 +50823 78044840 1394 +50824 78046234 1394 +50825 78047628 1394 +50826 78049022 1394 +50827 78050416 1394 +50828 78051810 1394 +50829 78053204 1394 +50830 78054598 1394 +50831 78055992 1394 +50832 78057386 1394 +50833 78058780 1394 +50834 78060174 1394 +50835 78061568 1394 +50836 78062962 3578 +50837 78066540 1940 +50838 78068480 1952 +50839 78070432 6176 +50840 78076608 2384 +50841 78078992 2060 +50842 78081052 2060 +50843 78083112 1664 +50844 78084776 1664 +50845 78086440 908 +50846 78087348 584 +50847 78087932 584 +50848 78088516 584 +50849 78089100 584 +50850 78089684 1664 +50851 78091348 1664 +50852 78093012 1664 +50853 78094676 1664 +50854 78096340 764 +50855 78097104 1838 +50856 78098942 2426 +50857 78101368 2522 +50858 78103890 1676 +50859 78105566 788 +50860 78106354 140 +50861 78106494 1178 +50862 78107672 1208 +50863 78108880 1208 +50864 78110088 1346 +50865 78111434 1358 +50866 78112792 1346 +50867 78114138 1352 +50868 78115490 1352 +50869 78116842 1340 +50870 78118182 752 +50871 78118934 230 +50872 78119164 230 +50873 78119394 2216 +50874 78121610 1100 +50875 78122710 1064 +50876 78123774 1058 +50877 78124832 1814 +50878 78126646 1832 +50879 78128478 716 +50880 78129194 710 +50881 78129904 710 +50882 78130614 716 +50883 78131330 710 +50884 78132040 710 +50885 78132750 362 +50886 78133112 560 +50887 78133672 80 +50888 78133752 2840 +50889 78136592 1196 +50890 78137788 1190 +50891 78138978 776 +50892 78139754 1262 +50893 78141016 1250 +50894 78142266 794 +50895 78143060 782 +50896 78143842 938 +50897 78144780 926 +50898 78145706 944 +50899 78146650 938 +50900 78147588 1400 +50901 78148988 116 +50902 78149104 116 +50903 78149220 782 +50904 78150002 1538 +50905 78151540 1556 +50906 78153096 1538 +50907 78154634 1556 +50908 78156190 1904 +50909 78158094 1904 +50910 78159998 1754 +50911 78161752 1688 +50912 78163440 452 +50913 78163892 2030 +50914 78165922 572 +50915 78166494 572 +50916 78167066 1406 +50917 78168472 890 +50918 78169362 902 +50919 78170264 470 +50920 78170734 362 +50921 78171096 362 +50922 78171458 2096 +50923 78173554 2090 +50924 78175644 2198 +50925 78177842 2198 +50926 78180040 2108 +50927 78182148 2156 +50928 78184304 2198 +50929 78186502 2198 +50930 78188700 2108 +50931 78190808 2156 +50932 78192964 944 +50933 78193908 950 +50934 78194858 938 +50935 78195796 944 +50936 78196740 968 +50937 78197708 1772 +50938 78199480 2666 +50939 78202146 2672 +50940 78204818 2666 +50941 78207484 2666 +50942 78210150 2666 +50943 78212816 2666 +50944 78215482 2774 +50945 78218256 2774 +50946 78221030 2774 +50947 78223804 2774 +50948 78226578 2774 +50949 78229352 2774 +50950 78232126 1628 +50951 78233754 1586 +50952 78235340 1484 +50953 78236824 1610 +50954 78238434 1622 +50955 78240056 1592 +50956 78241648 1520 +50957 78243168 1652 +50958 78244820 1502 +50959 78246322 1520 +50960 78247842 1652 +50961 78249494 1502 +50962 78250996 752 +50963 78251748 752 +50964 78252500 632 +50965 78253132 746 +50966 78253878 692 +50967 78254570 422 +50968 78254992 758 +50969 78255750 758 +50970 78256508 1076 +50971 78257584 2612 +50972 78260196 1220 +50973 78261416 398 +50974 78261814 398 +50975 78262212 824 +50976 78263036 752 +50977 78263788 824 +50978 78264612 752 +50979 78265364 1286 +50980 78266650 2096 +50981 78268746 2936 +50982 78271682 1502 +50983 78273184 1604 +50984 78274788 1568 +50985 78276356 1730 +50986 78278086 890 +50987 78278976 890 +50988 78279866 1694 +50989 78281560 1604 +50990 78283164 1592 +50991 78284756 1592 +50992 78286348 1598 +50993 78287946 1592 +50994 78289538 1592 +50995 78291130 1592 +50996 78292722 2216 +50997 78294938 2198 +50998 78297136 818 +50999 78297954 818 +51000 78298772 1958 +51001 78300730 1988 +51002 78302718 1958 +51003 78304676 1508 +51004 78306184 1508 +51005 78307692 1502 +51006 78309194 1526 +51007 78310720 2348 +51008 78313068 638 +51009 78313706 266 +51010 78313972 374 +51011 78314346 42157 +51012 78356503 236 +51013 78356739 446 +51014 78357185 2582 +51015 78359767 2582 +51016 78362349 2582 +51017 78364931 2582 +51018 78367513 2582 +51019 78370095 2582 +51020 78372677 2582 +51021 78375259 2582 +51022 78377841 2582 +51023 78380423 2582 +51024 78383005 2582 +51025 78385587 2582 +51026 78388169 2582 +51027 78390751 2582 +51028 78393333 2582 +51029 78395915 2582 +51030 78398497 2582 +51031 78401079 2582 +51032 78403661 2582 +51033 78406243 2582 +51034 78408825 2582 +51035 78411407 2582 +51036 78413989 2582 +51037 78416571 2582 +51038 78419153 2582 +51039 78421735 2582 +51040 78424317 2582 +51041 78426899 2582 +51042 78429481 2582 +51043 78432063 2582 +51044 78434645 2582 +51045 78437227 2582 +51046 78439809 2582 +51047 78442391 2582 +51048 78444973 2582 +51049 78447555 2582 +51050 78450137 2582 +51051 78452719 2582 +51052 78455301 2582 +51053 78457883 2582 +51054 78460465 2582 +51055 78463047 2582 +51056 78465629 2582 +51057 78468211 2582 +51058 78470793 2582 +51059 78473375 2582 +51060 78475957 2582 +51061 78478539 2582 +51062 78481121 2582 +51063 78483703 2582 +51064 78486285 2582 +51065 78488867 2582 +51066 78491449 2582 +51067 78494031 2582 +51068 78496613 2582 +51069 78499195 2582 +51070 78501777 2582 +51071 78504359 2582 +51072 78506941 2582 +51073 78509523 2582 +51074 78512105 2480 +51075 78514585 2480 +51076 78517065 2480 +51077 78519545 2480 +51078 78522025 2480 +51079 78524505 2480 +51080 78526985 2480 +51081 78529465 2480 +51082 78531945 2480 +51083 78534425 2480 +51084 78536905 2480 +51085 78539385 2480 +51086 78541865 2480 +51087 78544345 2480 +51088 78546825 2480 +51089 78549305 2480 +51090 78551785 2480 +51091 78554265 2480 +51092 78556745 2480 +51093 78559225 2480 +51094 78561705 2480 +51095 78564185 2480 +51096 78566665 2480 +51097 78569145 2480 +51098 78571625 2480 +51099 78574105 2480 +51100 78576585 2480 +51101 78579065 2480 +51102 78581545 2480 +51103 78584025 2480 +51104 78586505 2480 +51105 78588985 2480 +51106 78591465 2480 +51107 78593945 2480 +51108 78596425 2480 +51109 78598905 2480 +51110 78601385 2480 +51111 78603865 2480 +51112 78606345 2480 +51113 78608825 2480 +51114 78611305 2480 +51115 78613785 2480 +51116 78616265 2480 +51117 78618745 2480 +51118 78621225 2480 +51119 78623705 2480 +51120 78626185 2480 +51121 78628665 2480 +51122 78631145 2480 +51123 78633625 2480 +51124 78636105 2480 +51125 78638585 2480 +51126 78641065 2480 +51127 78643545 2480 +51128 78646025 2480 +51129 78648505 2480 +51130 78650985 2480 +51131 78653465 2480 +51132 78655945 2480 +51133 78658425 2480 +51134 78660905 818 +51135 78661723 584 +51136 78662307 584 +51137 78662891 2744 +51138 78665635 2744 +51139 78668379 2744 +51140 78671123 2744 +51141 78673867 2744 +51142 78676611 2744 +51143 78679355 1592 +51144 78680947 1100 +51145 78682047 1100 +51146 78683147 1100 +51147 78684247 1256 +51148 78685503 1232 +51149 78686735 2078 +51150 78688813 956 +51151 78689769 1196 +51152 78690965 320 +51153 78691285 434 +51154 78691719 962 +51155 78692681 422 +51156 78693103 962 +51157 78694065 962 +51158 78695027 962 +51159 78695989 962 +51160 78696951 962 +51161 78697913 962 +51162 78698875 962 +51163 78699837 2078 +51164 78701915 4508 +51165 78706423 19777 +51166 78726200 80 +51167 78726280 512 +51168 78726792 344 +51169 78727136 116 +51170 78727252 170 +51171 78727422 356 +51172 78727778 4460 +51173 78732238 3068 +51174 78735306 3194 +51175 78738500 1106 +51176 78739606 416 +51177 78740022 4100 +51178 78744122 4250 +51179 78748372 2984 +51180 78751356 878 +51181 78752234 2648 +51182 78754882 3044 +51183 78757926 3248 +51184 78761174 3212 +51185 78764386 164 +51186 78764550 3014 +51187 78767564 2936 +51188 78770500 572 +51189 78771072 548 +51190 78771620 1724 +51191 78773344 1724 +51192 78775068 1934 +51193 78777002 1724 +51194 78778726 1724 +51195 78780450 1934 +51196 78782384 1724 +51197 78784108 1724 +51198 78785832 1934 +51199 78787766 1724 +51200 78789490 1724 +51201 78791214 1934 +51202 78793148 1724 +51203 78794872 1724 +51204 78796596 1934 +51205 78798530 1724 +51206 78800254 1724 +51207 78801978 1934 +51208 78803912 1724 +51209 78805636 1724 +51210 78807360 1934 +51211 78809294 1724 +51212 78811018 1724 +51213 78812742 1934 +51214 78814676 1724 +51215 78816400 1724 +51216 78818124 1934 +51217 78820058 1724 +51218 78821782 1724 +51219 78823506 1934 +51220 78825440 1724 +51221 78827164 1724 +51222 78828888 1934 +51223 78830822 1724 +51224 78832546 1724 +51225 78834270 1934 +51226 78836204 1724 +51227 78837928 1724 +51228 78839652 1934 +51229 78841586 1724 +51230 78843310 1724 +51231 78845034 1934 +51232 78846968 1724 +51233 78848692 1724 +51234 78850416 1934 +51235 78852350 1724 +51236 78854074 1724 +51237 78855798 1934 +51238 78857732 1724 +51239 78859456 1724 +51240 78861180 1934 +51241 78863114 1724 +51242 78864838 1724 +51243 78866562 1934 +51244 78868496 1724 +51245 78870220 1724 +51246 78871944 1934 +51247 78873878 1724 +51248 78875602 1724 +51249 78877326 1934 +51250 78879260 1724 +51251 78880984 1724 +51252 78882708 1934 +51253 78884642 1724 +51254 78886366 1724 +51255 78888090 1934 +51256 78890024 1724 +51257 78891748 1724 +51258 78893472 1934 +51259 78895406 1724 +51260 78897130 1724 +51261 78898854 1934 +51262 78900788 1724 +51263 78902512 1724 +51264 78904236 1934 +51265 78906170 1724 +51266 78907894 1724 +51267 78909618 1934 +51268 78911552 1724 +51269 78913276 1724 +51270 78915000 1934 +51271 78916934 1724 +51272 78918658 1724 +51273 78920382 1934 +51274 78922316 1724 +51275 78924040 1724 +51276 78925764 1934 +51277 78927698 1724 +51278 78929422 1724 +51279 78931146 1934 +51280 78933080 1724 +51281 78934804 1724 +51282 78936528 1934 +51283 78938462 1724 +51284 78940186 1724 +51285 78941910 1934 +51286 78943844 1724 +51287 78945568 1724 +51288 78947292 1934 +51289 78949226 1724 +51290 78950950 1724 +51291 78952674 1934 +51292 78954608 1724 +51293 78956332 1724 +51294 78958056 1934 +51295 78959990 1724 +51296 78961714 1724 +51297 78963438 1934 +51298 78965372 1724 +51299 78967096 1724 +51300 78968820 1934 +51301 78970754 1724 +51302 78972478 1724 +51303 78974202 1934 +51304 78976136 1724 +51305 78977860 1724 +51306 78979584 1934 +51307 78981518 1724 +51308 78983242 1724 +51309 78984966 1934 +51310 78986900 1724 +51311 78988624 1724 +51312 78990348 1934 +51313 78992282 1724 +51314 78994006 1724 +51315 78995730 1934 +51316 78997664 1724 +51317 78999388 1724 +51318 79001112 1934 +51319 79003046 1724 +51320 79004770 1724 +51321 79006494 1934 +51322 79008428 1724 +51323 79010152 1724 +51324 79011876 1934 +51325 79013810 1724 +51326 79015534 1724 +51327 79017258 1934 +51328 79019192 1724 +51329 79020916 1724 +51330 79022640 1934 +51331 79024574 1724 +51332 79026298 1724 +51333 79028022 1934 +51334 79029956 1724 +51335 79031680 1724 +51336 79033404 1934 +51337 79035338 1724 +51338 79037062 1724 +51339 79038786 1934 +51340 79040720 1724 +51341 79042444 1724 +51342 79044168 1934 +51343 79046102 1724 +51344 79047826 1724 +51345 79049550 1934 +51346 79051484 1724 +51347 79053208 1724 +51348 79054932 1934 +51349 79056866 1724 +51350 79058590 1724 +51351 79060314 1934 +51352 79062248 1724 +51353 79063972 1724 +51354 79065696 1934 +51355 79067630 1724 +51356 79069354 1724 +51357 79071078 1934 +51358 79073012 1724 +51359 79074736 1724 +51360 79076460 1934 +51361 79078394 1724 +51362 79080118 1724 +51363 79081842 1934 +51364 79083776 1724 +51365 79085500 1724 +51366 79087224 1934 +51367 79089158 1724 +51368 79090882 1724 +51369 79092606 1934 +51370 79094540 1430 +51371 79095970 332 +51372 79096302 332 +51373 79096634 1688 +51374 79098322 1646 +51375 79099968 1406 +51376 79101374 1406 +51377 79102780 2756 +51378 79105536 1130 +51379 79106666 1130 +51380 79107796 1742 +51381 79109538 1838 +51382 79111376 1742 +51383 79113118 644 +51384 79113762 2336 +51385 79116098 1406 +51386 79117504 572 +51387 79118076 572 +51388 79118648 746 +51389 79119394 746 +51390 79120140 2390 +51391 79122530 2576 +51392 79125106 1034 +51393 79126140 1586 +51394 79127726 1172 +51395 79128898 1628 +51396 79130526 1628 +51397 79132154 1628 +51398 79133782 1628 +51399 79135410 620 +51400 79136030 620 +51401 79136650 620 +51402 79137270 1730 +51403 79139000 1730 +51404 79140730 626 +51405 79141356 626 +51406 79141982 626 +51407 79142608 842 +51408 79143450 842 +51409 79144292 2108 +51410 79146400 2108 +51411 79148508 1814 +51412 79150322 752 +51413 79151074 824 +51414 79151898 422 +51415 79152320 74 +51416 79152394 1664 +51417 79154058 968 +51418 79155026 404 +51419 79155430 494 +51420 79155924 494 +51421 79156418 494 +51422 79156912 494 +51423 79157406 494 +51424 79157900 494 +51425 79158394 494 +51426 79158888 494 +51427 79159382 494 +51428 79159876 494 +51429 79160370 170 +51430 79160540 1466 +51431 79162006 296 +51432 79162302 308 +51433 79162610 1826 +51434 79164436 968 +51435 79165404 404 +51436 79165808 494 +51437 79166302 494 +51438 79166796 494 +51439 79167290 494 +51440 79167784 494 +51441 79168278 494 +51442 79168772 494 +51443 79169266 494 +51444 79169760 494 +51445 79170254 494 +51446 79170748 3164 +51447 79173912 3188 +51448 79177100 3170 +51449 79180270 2930 +51450 79183200 2930 +51451 79186130 2930 +51452 79189060 1028 +51453 79190088 1028 +51454 79191116 1028 +51455 79192144 302 +51456 79192446 2720 +51457 79195166 2720 +51458 79197886 2714 +51459 79200600 2714 +51460 79203314 2216 +51461 79205530 2162 +51462 79207692 2216 +51463 79209908 2162 +51464 79212070 1442 +51465 79213512 1466 +51466 79214978 1382 +51467 79216360 2240 +51468 79218600 608 +51469 79219208 614 +51470 79219822 722 +51471 79220544 734 +51472 79221278 1268 +51473 79222546 1262 +51474 79223808 62 +51475 79223870 3392 +51476 79227262 44 +51477 79227306 1100 +51478 79228406 2168 +51479 79230574 1100 +51480 79231674 2168 +51481 79233842 1100 +51482 79234942 2168 +51483 79237110 1100 +51484 79238210 2168 +51485 79240378 1100 +51486 79241478 2168 +51487 79243646 1100 +51488 79244746 2168 +51489 79246914 1100 +51490 79248014 2168 +51491 79250182 1100 +51492 79251282 2168 +51493 79253450 1100 +51494 79254550 2168 +51495 79256718 1100 +51496 79257818 2168 +51497 79259986 1100 +51498 79261086 2168 +51499 79263254 1100 +51500 79264354 2168 +51501 79266522 476 +51502 79266998 476 +51503 79267474 2432 +51504 79269906 632 +51505 79270538 632 +51506 79271170 674 +51507 79271844 662 +51508 79272506 728 +51509 79273234 734 +51510 79273968 674 +51511 79274642 3062 +51512 79277704 3074 +51513 79280778 1706 +51514 79282484 2066 +51515 79284550 1988 +51516 79286538 2066 +51517 79288604 1988 +51518 79290592 2222 +51519 79292814 2222 +51520 79295036 2222 +51521 79297258 2222 +51522 79299480 2234 +51523 79301714 1016 +51524 79302730 998 +51525 79303728 2036 +51526 79305764 2018 +51527 79307782 380 +51528 79308162 380 +51529 79308542 380 +51530 79308922 380 +51531 79309302 380 +51532 79309682 380 +51533 79310062 380 +51534 79310442 2546 +51535 79312988 2540 +51536 79315528 2552 +51537 79318080 2546 +51538 79320626 2540 +51539 79323166 2552 +51540 79325718 68 +51541 79325786 2654 +51542 79328440 68 +51543 79328508 68 +51544 79328576 2654 +51545 79331230 2654 +51546 79333884 68 +51547 79333952 68 +51548 79334020 68 +51549 79334088 2654 +51550 79336742 2654 +51551 79339396 2654 +51552 79342050 68 +51553 79342118 68 +51554 79342186 68 +51555 79342254 68 +51556 79342322 2654 +51557 79344976 2654 +51558 79347630 2654 +51559 79350284 2654 +51560 79352938 68 +51561 79353006 68 +51562 79353074 2654 +51563 79355728 2654 +51564 79358382 68 +51565 79358450 2654 +51566 79361104 68 +51567 79361172 2654 +51568 79363826 68 +51569 79363894 2654 +51570 79366548 68 +51571 79366616 68 +51572 79366684 68 +51573 79366752 2654 +51574 79369406 2654 +51575 79372060 2654 +51576 79374714 68 +51577 79374782 2654 +51578 79377436 68 +51579 79377504 68 +51580 79377572 68 +51581 79377640 68 +51582 79377708 2654 +51583 79380362 2654 +51584 79383016 2654 +51585 79385670 2654 +51586 79388324 68 +51587 79388392 68 +51588 79388460 2654 +51589 79391114 2654 +51590 79393768 68 +51591 79393836 2654 +51592 79396490 860 +51593 79397350 3098 +51594 79400448 3074 +51595 79403522 4136 +51596 79407658 854 +51597 79408512 206 +51598 79408718 206 +51599 79408924 206 +51600 79409130 776 +51601 79409906 770 +51602 79410676 1898 +51603 79412574 860 +51604 79413434 860 +51605 79414294 1256 +51606 79415550 698 +51607 79416248 2450 +51608 79418698 2378 +51609 79421076 410 +51610 79421486 2006 +51611 79423492 662 +51612 79424154 656 +51613 79424810 650 +51614 79425460 662 +51615 79426122 1388 +51616 79427510 1394 +51617 79428904 704 +51618 79429608 4100 +51619 79433708 4130 +51620 79437838 4046 +51621 79441884 536 +51622 79442420 1052 +51623 79443472 32 +51624 79443504 2120 +51625 79445624 2120 +51626 79447744 1718 +51627 79449462 2180 +51628 79451642 3320 +51629 79454962 3320 +51630 79458282 3320 +51631 79461602 1820 +51632 79463422 2180 +51633 79465602 1496 +51634 79467098 1508 +51635 79468606 1508 +51636 79470114 1508 +51637 79471622 2330 +51638 79473952 1064 +51639 79475016 584 +51640 79475600 584 +51641 79476184 4904 +51642 79481088 584 +51643 79481672 584 +51644 79482256 4904 +51645 79487160 2192 +51646 79489352 2192 +51647 79491544 2198 +51648 79493742 2216 +51649 79495958 2192 +51650 79498150 1754 +51651 79499904 1718 +51652 79501622 2876 +51653 79504498 482 +51654 79504980 956 +51655 79505936 2960 +51656 79508896 3074 +51657 79511970 464 +51658 79512434 596 +51659 79513030 596 +51660 79513626 596 +51661 79514222 596 +51662 79514818 596 +51663 79515414 1124 +51664 79516538 224 +51665 79516762 1046 +51666 79517808 926 +51667 79518734 2534 +51668 79521268 2624 +51669 79523892 2624 +51670 79526516 2624 +51671 79529140 2624 +51672 79531764 2624 +51673 79534388 2624 +51674 79537012 1580 +51675 79538592 1580 +51676 79540172 986 +51677 79541158 986 +51678 79542144 530 +51679 79542674 512 +51680 79543186 1418 +51681 79544604 1562 +51682 79546166 1532 +51683 79547698 1376 +51684 79549074 1220 +51685 79550294 1118 +51686 79551412 1124 +51687 79552536 1220 +51688 79553756 1976 +51689 79555732 1970 +51690 79557702 698 +51691 79558400 110 +51692 79558510 878 +51693 79559388 1574 +51694 79560962 2906 +51695 79563868 2900 +51696 79566768 902 +51697 79567670 920 +51698 79568590 1196 +51699 79569786 1196 +51700 79570982 1190 +51701 79572172 644 +51702 79572816 1154 +51703 79573970 1154 +51704 79575124 1154 +51705 79576278 1154 +51706 79577432 944 +51707 79578376 944 +51708 79579320 944 +51709 79580264 944 +51710 79581208 2096 +51711 79583304 2096 +51712 79585400 2096 +51713 79587496 2096 +51714 79589592 416 +51715 79590008 1310 +51716 79591318 1310 +51717 79592628 1340 +51718 79593968 518 +51719 79594486 518 +51720 79595004 2582 +51721 79597586 2582 +51722 79600168 2582 +51723 79602750 2582 +51724 79605332 2582 +51725 79607914 2582 +51726 79610496 2582 +51727 79613078 2582 +51728 79615660 2582 +51729 79618242 2582 +51730 79620824 2582 +51731 79623406 2582 +51732 79625988 2582 +51733 79628570 2582 +51734 79631152 2582 +51735 79633734 2582 +51736 79636316 2582 +51737 79638898 2582 +51738 79641480 2582 +51739 79644062 2582 +51740 79646644 2582 +51741 79649226 2582 +51742 79651808 2582 +51743 79654390 2582 +51744 79656972 2582 +51745 79659554 2582 +51746 79662136 2582 +51747 79664718 2582 +51748 79667300 2582 +51749 79669882 2582 +51750 79672464 2582 +51751 79675046 2582 +51752 79677628 2582 +51753 79680210 2582 +51754 79682792 2582 +51755 79685374 2582 +51756 79687956 2582 +51757 79690538 2582 +51758 79693120 2582 +51759 79695702 2582 +51760 79698284 2582 +51761 79700866 2582 +51762 79703448 2582 +51763 79706030 2582 +51764 79708612 2582 +51765 79711194 2582 +51766 79713776 2582 +51767 79716358 2582 +51768 79718940 2582 +51769 79721522 2582 +51770 79724104 2582 +51771 79726686 2582 +51772 79729268 2582 +51773 79731850 2582 +51774 79734432 2582 +51775 79737014 2582 +51776 79739596 2582 +51777 79742178 2582 +51778 79744760 2582 +51779 79747342 2582 +51780 79749924 1508 +51781 79751432 1766 +51782 79753198 1922 +51783 79755120 1706 +51784 79756826 1706 +51785 79758532 2378 +51786 79760910 4741 +51787 79765651 1460 +51788 79767111 1454 +51789 79768565 1460 +51790 79770025 1454 +51791 79771479 2102 +51792 79773581 2102 +51793 79775683 2102 +51794 79777785 2102 +51795 79779887 560 +51796 79780447 1154 +51797 79781601 1154 +51798 79782755 1154 +51799 79783909 1154 +51800 79785063 2096 +51801 79787159 2096 +51802 79789255 2096 +51803 79791351 2096 +51804 79793447 2108 +51805 79795555 2108 +51806 79797663 2108 +51807 79799771 2108 +51808 79801879 1766 +51809 79803645 2072 +51810 79805717 1232 +51811 79806949 1274 +51812 79808223 1754 +51813 79809977 3860 +51814 79813837 3680 +51815 79817517 3692 +51816 79821209 1130 +51817 79822339 296 +51818 79822635 3692 +51819 79826327 1130 +51820 79827457 296 +51821 79827753 1256 +51822 79829009 320 +51823 79829329 1142 +51824 79830471 1136 +51825 79831607 974 +51826 79832581 974 +51827 79833555 974 +51828 79834529 974 +51829 79835503 1832 +51830 79837335 1838 +51831 79839173 1832 +51832 79841005 1838 +51833 79842843 1424 +51834 79844267 1172 +51835 79845439 2384 +51836 79847823 1268 +51837 79849091 1514 +51838 79850605 1526 +51839 79852131 1454 +51840 79853585 1742 +51841 79855327 1736 +51842 79857063 1736 +51843 79858799 680 +51844 79859479 602 +51845 79860081 734 +51846 79860815 752 +51847 79861567 752 +51848 79862319 2876 +51849 79865195 2870 +51850 79868065 2846 +51851 79870911 2876 +51852 79873787 2882 +51853 79876669 1610 +51854 79878279 1616 +51855 79879895 1292 +51856 79881187 632 +51857 79881819 632 +51858 79882451 626 +51859 79883077 626 +51860 79883703 1874 +51861 79885577 1874 +51862 79887451 1544 +51863 79888995 1538 +51864 79890533 1388 +51865 79891921 158 +51866 79892079 1544 +51867 79893623 1538 +51868 79895161 1388 +51869 79896549 158 +51870 79896707 1544 +51871 79898251 1538 +51872 79899789 1388 +51873 79901177 158 +51874 79901335 1544 +51875 79902879 1538 +51876 79904417 1388 +51877 79905805 158 +51878 79905963 1544 +51879 79907507 1538 +51880 79909045 1388 +51881 79910433 158 +51882 79910591 1544 +51883 79912135 1538 +51884 79913673 1388 +51885 79915061 158 +51886 79915219 1544 +51887 79916763 1538 +51888 79918301 1388 +51889 79919689 158 +51890 79919847 1544 +51891 79921391 1538 +51892 79922929 1388 +51893 79924317 158 +51894 79924475 1544 +51895 79926019 1538 +51896 79927557 1388 +51897 79928945 158 +51898 79929103 1544 +51899 79930647 1538 +51900 79932185 1388 +51901 79933573 158 +51902 79933731 1544 +51903 79935275 1538 +51904 79936813 1388 +51905 79938201 158 +51906 79938359 1544 +51907 79939903 1538 +51908 79941441 1388 +51909 79942829 158 +51910 79942987 1544 +51911 79944531 1538 +51912 79946069 1388 +51913 79947457 158 +51914 79947615 1544 +51915 79949159 1538 +51916 79950697 1388 +51917 79952085 158 +51918 79952243 1544 +51919 79953787 1538 +51920 79955325 1388 +51921 79956713 158 +51922 79956871 1544 +51923 79958415 1538 +51924 79959953 1388 +51925 79961341 158 +51926 79961499 1544 +51927 79963043 1538 +51928 79964581 1388 +51929 79965969 158 +51930 79966127 1544 +51931 79967671 1538 +51932 79969209 1388 +51933 79970597 158 +51934 79970755 1544 +51935 79972299 1538 +51936 79973837 1388 +51937 79975225 158 +51938 79975383 1544 +51939 79976927 1538 +51940 79978465 1388 +51941 79979853 158 +51942 79980011 1544 +51943 79981555 1538 +51944 79983093 1388 +51945 79984481 158 +51946 79984639 1544 +51947 79986183 1538 +51948 79987721 1388 +51949 79989109 158 +51950 79989267 1544 +51951 79990811 1538 +51952 79992349 1388 +51953 79993737 158 +51954 79993895 1544 +51955 79995439 1538 +51956 79996977 1388 +51957 79998365 158 +51958 79998523 1544 +51959 80000067 1538 +51960 80001605 1388 +51961 80002993 158 +51962 80003151 1544 +51963 80004695 1538 +51964 80006233 1388 +51965 80007621 158 +51966 80007779 1544 +51967 80009323 1538 +51968 80010861 1388 +51969 80012249 158 +51970 80012407 1544 +51971 80013951 1538 +51972 80015489 1388 +51973 80016877 158 +51974 80017035 1544 +51975 80018579 1538 +51976 80020117 1388 +51977 80021505 158 +51978 80021663 1544 +51979 80023207 1538 +51980 80024745 1388 +51981 80026133 158 +51982 80026291 1544 +51983 80027835 1538 +51984 80029373 1388 +51985 80030761 158 +51986 80030919 1544 +51987 80032463 1538 +51988 80034001 1388 +51989 80035389 158 +51990 80035547 1544 +51991 80037091 1538 +51992 80038629 1388 +51993 80040017 158 +51994 80040175 1544 +51995 80041719 1538 +51996 80043257 1388 +51997 80044645 158 +51998 80044803 1544 +51999 80046347 1538 +52000 80047885 1388 +52001 80049273 158 +52002 80049431 1544 +52003 80050975 1538 +52004 80052513 1388 +52005 80053901 158 +52006 80054059 1544 +52007 80055603 1538 +52008 80057141 1388 +52009 80058529 158 +52010 80058687 1544 +52011 80060231 1538 +52012 80061769 1388 +52013 80063157 158 +52014 80063315 1544 +52015 80064859 1538 +52016 80066397 1388 +52017 80067785 158 +52018 80067943 1544 +52019 80069487 1538 +52020 80071025 1388 +52021 80072413 158 +52022 80072571 1544 +52023 80074115 1538 +52024 80075653 1388 +52025 80077041 158 +52026 80077199 1544 +52027 80078743 1538 +52028 80080281 1388 +52029 80081669 158 +52030 80081827 1544 +52031 80083371 1538 +52032 80084909 1388 +52033 80086297 158 +52034 80086455 1544 +52035 80087999 1538 +52036 80089537 1388 +52037 80090925 158 +52038 80091083 1544 +52039 80092627 1538 +52040 80094165 1388 +52041 80095553 158 +52042 80095711 1544 +52043 80097255 1538 +52044 80098793 1388 +52045 80100181 158 +52046 80100339 1544 +52047 80101883 1538 +52048 80103421 1388 +52049 80104809 158 +52050 80104967 1544 +52051 80106511 1538 +52052 80108049 1388 +52053 80109437 158 +52054 80109595 1544 +52055 80111139 1538 +52056 80112677 1388 +52057 80114065 158 +52058 80114223 1544 +52059 80115767 1538 +52060 80117305 1388 +52061 80118693 158 +52062 80118851 1544 +52063 80120395 1538 +52064 80121933 1388 +52065 80123321 158 +52066 80123479 1544 +52067 80125023 1538 +52068 80126561 1388 +52069 80127949 158 +52070 80128107 1544 +52071 80129651 1538 +52072 80131189 1388 +52073 80132577 158 +52074 80132735 1544 +52075 80134279 1538 +52076 80135817 1388 +52077 80137205 158 +52078 80137363 1544 +52079 80138907 1538 +52080 80140445 1388 +52081 80141833 158 +52082 80141991 1544 +52083 80143535 1538 +52084 80145073 1388 +52085 80146461 158 +52086 80146619 1544 +52087 80148163 1538 +52088 80149701 1388 +52089 80151089 158 +52090 80151247 1544 +52091 80152791 1538 +52092 80154329 1388 +52093 80155717 158 +52094 80155875 1544 +52095 80157419 1538 +52096 80158957 1388 +52097 80160345 158 +52098 80160503 1544 +52099 80162047 1538 +52100 80163585 1388 +52101 80164973 158 +52102 80165131 1862 +52103 80166993 1838 +52104 80168831 1604 +52105 80170435 1148 +52106 80171583 4256 +52107 80175839 4256 +52108 80180095 2450 +52109 80182545 2450 +52110 80184995 548 +52111 80185543 548 +52112 80186091 4256 +52113 80190347 4256 +52114 80194603 2450 +52115 80197053 2450 +52116 80199503 548 +52117 80200051 548 +52118 80200599 4256 +52119 80204855 4256 +52120 80209111 2450 +52121 80211561 2450 +52122 80214011 548 +52123 80214559 548 +52124 80215107 1742 +52125 80216849 1742 +52126 80218591 1742 +52127 80220333 590 +52128 80220923 1460 +52129 80222383 806 +52130 80223189 548 +52131 80223737 560 +52132 80224297 680 +52133 80224977 902 +52134 80225879 710 +52135 80226589 1064 +52136 80227653 578 +52137 80228231 572 +52138 80228803 1364 +52139 80230167 848 +52140 80231015 500 +52141 80231515 1526 +52142 80233041 548 +52143 80233589 656 +52144 80234245 668 +52145 80234913 1250 +52146 80236163 740 +52147 80236903 1532 +52148 80238435 584 +52149 80239019 968 +52150 80239987 1136 +52151 80241123 584 +52152 80241707 2234 +52153 80243941 806 +52154 80244747 548 +52155 80245295 560 +52156 80245855 680 +52157 80246535 902 +52158 80247437 710 +52159 80248147 1064 +52160 80249211 578 +52161 80249789 572 +52162 80250361 1364 +52163 80251725 848 +52164 80252573 500 +52165 80253073 1526 +52166 80254599 548 +52167 80255147 656 +52168 80255803 668 +52169 80256471 1250 +52170 80257721 740 +52171 80258461 1532 +52172 80259993 584 +52173 80260577 968 +52174 80261545 1136 +52175 80262681 584 +52176 80263265 2234 +52177 80265499 80 +52178 80265579 422 +52179 80266001 1238 +52180 80267239 866 +52181 80268105 398 +52182 80268503 434 +52183 80268937 434 +52184 80269371 434 +52185 80269805 434 +52186 80270239 434 +52187 80270673 434 +52188 80271107 434 +52189 80271541 434 +52190 80271975 434 +52191 80272409 434 +52192 80272843 944 +52193 80273787 938 +52194 80274725 944 +52195 80275669 938 +52196 80276607 3284 +52197 80279891 3254 +52198 80283145 3284 +52199 80286429 3254 +52200 80289683 3284 +52201 80292967 3254 +52202 80296221 3254 +52203 80299475 3284 +52204 80302759 3254 +52205 80306013 3284 +52206 80309297 3254 +52207 80312551 3284 +52208 80315835 3254 +52209 80319089 3254 +52210 80322343 62 +52211 80322405 1034 +52212 80323439 1106 +52213 80324545 1106 +52214 80325651 1106 +52215 80326757 62 +52216 80326819 62 +52217 80326881 62 +52218 80326943 1526 +52219 80328469 998 +52220 80329467 1358 +52221 80330825 1376 +52222 80332201 56 +52223 80332257 548 +52224 80332805 1814 +52225 80334619 1814 +52226 80336433 2654 +52227 80339087 2798 +52228 80341885 1784 +52229 80343669 1616 +52230 80345285 1616 +52231 80346901 668 +52232 80347569 1994 +52233 80349563 824 +52234 80350387 1640 +52235 80352027 896 +52236 80352923 896 +52237 80353819 2234 +52238 80356053 2234 +52239 80358287 1358 +52240 80359645 1346 +52241 80360991 944 +52242 80361935 578 +52243 80362513 1280 +52244 80363793 1220 +52245 80365013 1280 +52246 80366293 1220 +52247 80367513 3110 +52248 80370623 1688 +52249 80372311 3404 +52250 80375715 1100 +52251 80376815 2168 +52252 80378983 1100 +52253 80380083 2168 +52254 80382251 1100 +52255 80383351 2168 +52256 80385519 1100 +52257 80386619 2168 +52258 80388787 1100 +52259 80389887 2168 +52260 80392055 1100 +52261 80393155 2168 +52262 80395323 1100 +52263 80396423 2168 +52264 80398591 1100 +52265 80399691 2168 +52266 80401859 1100 +52267 80402959 2168 +52268 80405127 1100 +52269 80406227 2168 +52270 80408395 1100 +52271 80409495 2168 +52272 80411663 1100 +52273 80412763 2168 +52274 80414931 266 +52275 80415197 272 +52276 80415469 266 +52277 80415735 272 +52278 80416007 428 +52279 80416435 428 +52280 80416863 428 +52281 80417291 428 +52282 80417719 428 +52283 80418147 428 +52284 80418575 428 +52285 80419003 428 +52286 80419431 428 +52287 80419859 428 +52288 80420287 428 +52289 80420715 428 +52290 80421143 428 +52291 80421571 428 +52292 80421999 428 +52293 80422427 428 +52294 80422855 428 +52295 80423283 428 +52296 80423711 428 +52297 80424139 428 +52298 80424567 428 +52299 80424995 428 +52300 80425423 422 +52301 80425845 422 +52302 80426267 422 +52303 80426689 422 +52304 80427111 422 +52305 80427533 422 +52306 80427955 422 +52307 80428377 422 +52308 80428799 422 +52309 80429221 422 +52310 80429643 422 +52311 80430065 422 +52312 80430487 422 +52313 80430909 422 +52314 80431331 422 +52315 80431753 422 +52316 80432175 422 +52317 80432597 422 +52318 80433019 422 +52319 80433441 422 +52320 80433863 422 +52321 80434285 422 +52322 80434707 764 +52323 80435471 1358 +52324 80436829 2846 +52325 80439675 2840 +52326 80442515 2384 +52327 80444899 2498 +52328 80447397 2534 +52329 80449931 848 +52330 80450779 500 +52331 80451279 938 +52332 80452217 854 +52333 80453071 2408 +52334 80455479 2408 +52335 80457887 3632 +52336 80461519 770 +52337 80462289 770 +52338 80463059 770 +52339 80463829 770 +52340 80464599 998 +52341 80465597 998 +52342 80466595 998 +52343 80467593 1910 +52344 80469503 1358 +52345 80470861 554 +52346 80471415 1556 +52347 80472971 200 +52348 80473171 1736 +52349 80474907 1658 +52350 80476565 1604 +52351 80478169 1790 +52352 80479959 1790 +52353 80481749 1790 +52354 80483539 1790 +52355 80485329 1790 +52356 80487119 1790 +52357 80488909 1736 +52358 80490645 1730 +52359 80492375 1448 +52360 80493823 1448 +52361 80495271 1448 +52362 80496719 1448 +52363 80498167 1484 +52364 80499651 1454 +52365 80501105 1454 +52366 80502559 1448 +52367 80504007 926 +52368 80504933 794 +52369 80505727 56 +52370 80505783 794 +52371 80506577 752 +52372 80507329 68 +52373 80507397 3722 +52374 80511119 548 +52375 80511667 1244 +52376 80512911 1286 +52377 80514197 1316 +52378 80515513 1556 +52379 80517069 1358 +52380 80518427 1364 +52381 80519791 1118 +52382 80520909 1238 +52383 80522147 1088 +52384 80523235 1142 +52385 80524377 890 +52386 80525267 590 +52387 80525857 854 +52388 80526711 728 +52389 80527439 812 +52390 80528251 698 +52391 80528949 842 +52392 80529791 800 +52393 80530591 848 +52394 80531439 842 +52395 80532281 614 +52396 80532895 782 +52397 80533677 854 +52398 80534531 746 +52399 80535277 500 +52400 80535777 440 +52401 80536217 500 +52402 80536717 602 +52403 80537319 356 +52404 80537675 314 +52405 80537989 332 +52406 80538321 398 +52407 80538719 122 +52408 80538841 1892 +52409 80540733 560 +52410 80541293 560 +52411 80541853 560 +52412 80542413 560 +52413 80542973 1988 +52414 80544961 1352 +52415 80546313 1262 +52416 80547575 1262 +52417 80548837 2174 +52418 80551011 2174 +52419 80553185 656 +52420 80553841 1760 +52421 80555601 1688 +52422 80557289 2006 +52423 80559295 650 +52424 80559945 656 +52425 80560601 650 +52426 80561251 650 +52427 80561901 650 +52428 80562551 2018 +52429 80564569 2024 +52430 80566593 2024 +52431 80568617 2024 +52432 80570641 2024 +52433 80572665 1934 +52434 80574599 1652 +52435 80576251 1448 +52436 80577699 3440 +52437 80581139 2006 +52438 80583145 650 +52439 80583795 656 +52440 80584451 2018 +52441 80586469 2024 +52442 80588493 2024 +52443 80590517 2024 +52444 80592541 1448 +52445 80593989 1322 +52446 80595311 650 +52447 80595961 650 +52448 80596611 650 +52449 80597261 2024 +52450 80599285 1934 +52451 80601219 1652 +52452 80602871 710 +52453 80603581 1226 +52454 80604807 1226 +52455 80606033 1262 +52456 80607295 1262 +52457 80608557 992 +52458 80609549 974 +52459 80610523 1730 +52460 80612253 2462 +52461 80614715 1310 +52462 80616025 1310 +52463 80617335 1562 +52464 80618897 1538 +52465 80620435 1538 +52466 80621973 1598 +52467 80623571 1586 +52468 80625157 1532 +52469 80626689 1514 +52470 80628203 1568 +52471 80629771 1514 +52472 80631285 1526 +52473 80632811 1544 +52474 80634355 1544 +52475 80635899 1244 +52476 80637143 1208 +52477 80638351 1328 +52478 80639679 1298 +52479 80640977 1244 +52480 80642221 1208 +52481 80643429 1328 +52482 80644757 1298 +52483 80646055 1364 +52484 80647419 1364 +52485 80648783 1292 +52486 80650075 1292 +52487 80651367 1538 +52488 80652905 1538 +52489 80654443 1196 +52490 80655639 1232 +52491 80656871 1262 +52492 80658133 1052 +52493 80659185 1196 +52494 80660381 1232 +52495 80661613 1262 +52496 80662875 1052 +52497 80663927 3140 +52498 80667067 2492 +52499 80669559 86 +52500 80669645 1898 +52501 80671543 1406 +52502 80672949 782 +52503 80673731 794 +52504 80674525 752 +52505 80675277 782 +52506 80676059 752 +52507 80676811 782 +52508 80677593 428 +52509 80678021 440 +52510 80678461 182 +52511 80678643 182 +52512 80678825 182 +52513 80679007 1310 +52514 80680317 1310 +52515 80681627 1034 +52516 80682661 1064 +52517 80683725 3260 +52518 80686985 3260 +52519 80690245 1364 +52520 80691609 1544 +52521 80693153 1544 +52522 80694697 1370 +52523 80696067 1370 +52524 80697437 1382 +52525 80698819 1448 +52526 80700267 1394 +52527 80701661 1400 +52528 80703061 1406 +52529 80704467 1430 +52530 80705897 1364 +52531 80707261 260 +52532 80707521 254 +52533 80707775 3632 +52534 80711407 3656 +52535 80715063 1022 +52536 80716085 7597 +52537 80723682 7597 +52538 80731279 1142 +52539 80732421 374 +52540 80732795 2612 +52541 80735407 2612 +52542 80738019 410 +52543 80738429 620 +52544 80739049 620 +52545 80739669 620 +52546 80740289 626 +52547 80740915 626 +52548 80741541 1304 +52549 80742845 1304 +52550 80744149 2072 +52551 80746221 2066 +52552 80748287 422 +52553 80748709 854 +52554 80749563 920 +52555 80750483 434 +52556 80750917 2318 +52557 80753235 2336 +52558 80755571 650 +52559 80756221 2240 +52560 80758461 2222 +52561 80760683 1532 +52562 80762215 1532 +52563 80763747 1538 +52564 80765285 872 +52565 80766157 644 +52566 80766801 2456 +52567 80769257 2498 +52568 80771755 1226 +52569 80772981 1238 +52570 80774219 1928 +52571 80776147 1742 +52572 80777889 1886 +52573 80779775 1910 +52574 80781685 1910 +52575 80783595 1910 +52576 80785505 1910 +52577 80787415 1910 +52578 80789325 1364 +52579 80790689 1364 +52580 80792053 1556 +52581 80793609 1544 +52582 80795153 1184 +52583 80796337 1268 +52584 80797605 1322 +52585 80798927 1388 +52586 80800315 1364 +52587 80801679 1352 +52588 80803031 1412 +52589 80804443 1328 +52590 80805771 1916 +52591 80807687 1916 +52592 80809603 1916 +52593 80811519 1916 +52594 80813435 1916 +52595 80815351 704 +52596 80816055 704 +52597 80816759 824 +52598 80817583 392 +52599 80817975 434 +52600 80818409 392 +52601 80818801 434 +52602 80819235 1700 +52603 80820935 2582 +52604 80823517 2636 +52605 80826153 1040 +52606 80827193 1232 +52607 80828425 920 +52608 80829345 1040 +52609 80830385 2012 +52610 80832397 950 +52611 80833347 938 +52612 80834285 2162 +52613 80836447 2132 +52614 80838579 2132 +52615 80840711 2138 +52616 80842849 2156 +52617 80845005 2174 +52618 80847179 1322 +52619 80848501 1178 +52620 80849679 2966 +52621 80852645 2372 +52622 80855017 956 +52623 80855973 476 +52624 80856449 1640 +52625 80858089 1778 +52626 80859867 2240 +52627 80862107 2240 +52628 80864347 3968 +52629 80868315 3968 +52630 80872283 3968 +52631 80876251 3968 +52632 80880219 764 +52633 80880983 3086 +52634 80884069 716 +52635 80884785 716 +52636 80885501 716 +52637 80886217 2834 +52638 80889051 716 +52639 80889767 716 +52640 80890483 716 +52641 80891199 2834 +52642 80894033 716 +52643 80894749 716 +52644 80895465 716 +52645 80896181 2834 +52646 80899015 716 +52647 80899731 716 +52648 80900447 716 +52649 80901163 2834 +52650 80903997 716 +52651 80904713 716 +52652 80905429 716 +52653 80906145 2834 +52654 80908979 716 +52655 80909695 716 +52656 80910411 716 +52657 80911127 2834 +52658 80913961 2612 +52659 80916573 2612 +52660 80919185 2072 +52661 80921257 824 +52662 80922081 824 +52663 80922905 824 +52664 80923729 1016 +52665 80924745 1004 +52666 80925749 710 +52667 80926459 1586 +52668 80928045 2372 +52669 80930417 1958 +52670 80932375 2162 +52671 80934537 974 +52672 80935511 158 +52673 80935669 1142 +52674 80936811 1166 +52675 80937977 38 +52676 80938015 2342 +52677 80940357 2330 +52678 80942687 1340 +52679 80944027 1346 +52680 80945373 2504 +52681 80947877 2252 +52682 80950129 2360 +52683 80952489 2336 +52684 80954825 2336 +52685 80957161 2318 +52686 80959479 1826 +52687 80961305 1658 +52688 80962963 1682 +52689 80964645 1772 +52690 80966417 158 +52691 80966575 452 +52692 80967027 392 +52693 80967419 452 +52694 80967871 392 +52695 80968263 1370 +52696 80969633 1364 +52697 80970997 2168 +52698 80973165 2168 +52699 80975333 2126 +52700 80977459 2126 +52701 80979585 1046 +52702 80980631 1010 +52703 80981641 1862 +52704 80983503 2024 +52705 80985527 1742 +52706 80987269 1748 +52707 80989017 1748 +52708 80990765 1754 +52709 80992519 3926 +52710 80996445 2276 +52711 80998721 1910 +52712 81000631 464 +52713 81001095 1718 +52714 81002813 1184 +52715 81003997 1184 +52716 81005181 1184 +52717 81006365 1184 +52718 81007549 1184 +52719 81008733 1184 +52720 81009917 1184 +52721 81011101 1184 +52722 81012285 1184 +52723 81013469 1184 +52724 81014653 1184 +52725 81015837 1184 +52726 81017021 1184 +52727 81018205 1184 +52728 81019389 1184 +52729 81020573 1184 +52730 81021757 1184 +52731 81022941 1184 +52732 81024125 1184 +52733 81025309 1184 +52734 81026493 632 +52735 81027125 638 +52736 81027763 620 +52737 81028383 614 +52738 81028997 1262 +52739 81030259 1262 +52740 81031521 1262 +52741 81032783 1658 +52742 81034441 1760 +52743 81036201 1652 +52744 81037853 1760 +52745 81039613 1778 +52746 81041391 158 +52747 81041549 992 +52748 81042541 1004 +52749 81043545 182 +52750 81043727 170 +52751 81043897 398 +52752 81044295 1460 +52753 81045755 1430 +52754 81047185 392 +52755 81047577 398 +52756 81047975 1460 +52757 81049435 1430 +52758 81050865 392 +52759 81051257 3266 +52760 81054523 3266 +52761 81057789 3266 +52762 81061055 3260 +52763 81064315 3260 +52764 81067575 3260 +52765 81070835 3266 +52766 81074101 3266 +52767 81077367 3266 +52768 81080633 3266 +52769 81083899 3266 +52770 81087165 3266 +52771 81090431 2312 +52772 81092743 2312 +52773 81095055 2312 +52774 81097367 824 +52775 81098191 824 +52776 81099015 824 +52777 81099839 884 +52778 81100723 908 +52779 81101631 1232 +52780 81102863 2312 +52781 81105175 2162 +52782 81107337 542 +52783 81107879 542 +52784 81108421 332 +52785 81108753 326 +52786 81109079 890 +52787 81109969 1358 +52788 81111327 1400 +52789 81112727 6692 +52790 81119419 7580 +52791 81126999 494 +52792 81127493 2912 +52793 81130405 680 +52794 81131085 644 +52795 81131729 734 +52796 81132463 1148 +52797 81133611 884 +52798 81134495 2408 +52799 81136903 500 +52800 81137403 980 +52801 81138383 500 +52802 81138883 980 +52803 81139863 3014 +52804 81142877 506 +52805 81143383 812 +52806 81144195 3014 +52807 81147209 506 +52808 81147715 812 +52809 81148527 656 +52810 81149183 590 +52811 81149773 614 +52812 81150387 2072 +52813 81152459 2072 +52814 81154531 1814 +52815 81156345 1814 +52816 81158159 1514 +52817 81159673 1514 +52818 81161187 1514 +52819 81162701 1514 +52820 81164215 1514 +52821 81165729 1514 +52822 81167243 854 +52823 81168097 854 +52824 81168951 860 +52825 81169811 2252 +52826 81172063 434 +52827 81172497 152 +52828 81172649 356 +52829 81173005 80 +52830 81173085 2168 +52831 81175253 2042 +52832 81177295 1442 +52833 81178737 1376 +52834 81180113 92 +52835 81180205 1370 +52836 81181575 62 +52837 81181637 1382 +52838 81183019 110 +52839 81183129 620 +52840 81183749 626 +52841 81184375 800 +52842 81185175 140 +52843 81185315 2174 +52844 81187489 854 +52845 81188343 704 +52846 81189047 698 +52847 81189745 1760 +52848 81191505 1988 +52849 81193493 1760 +52850 81195253 1988 +52851 81197241 1010 +52852 81198251 1226 +52853 81199477 1286 +52854 81200763 2318 +52855 81203081 2096 +52856 81205177 2096 +52857 81207273 1370 +52858 81208643 62 +52859 81208705 1712 +52860 81210417 1700 +52861 81212117 2396 +52862 81214513 914 +52863 81215427 1424 +52864 81216851 1922 +52865 81218773 2018 +52866 81220791 1202 +52867 81221993 1202 +52868 81223195 1202 +52869 81224397 1202 +52870 81225599 1466 +52871 81227065 2360 +52872 81229425 2330 +52873 81231755 1712 +52874 81233467 650 +52875 81234117 620 +52876 81234737 56 +52877 81234793 56 +52878 81234849 920 +52879 81235769 908 +52880 81236677 1160 +52881 81237837 3026 +52882 81240863 1568 +52883 81242431 2210 +52884 81244641 2210 +52885 81246851 2204 +52886 81249055 2204 +52887 81251259 1982 +52888 81253241 1046 +52889 81254287 998 +52890 81255285 1454 +52891 81256739 3266 +52892 81260005 596 +52893 81260601 578 +52894 81261179 806 +52895 81261985 728 +52896 81262713 1862 +52897 81264575 446 +52898 81265021 1178 +52899 81266199 680 +52900 81266879 458 +52901 81267337 1022 +52902 81268359 860 +52903 81269219 884 +52904 81270103 884 +52905 81270987 872 +52906 81271859 878 +52907 81272737 884 +52908 81273621 896 +52909 81274517 866 +52910 81275383 662 +52911 81276045 662 +52912 81276707 2672 +52913 81279379 2852 +52914 81282231 2858 +52915 81285089 1754 +52916 81286843 1742 +52917 81288585 1736 +52918 81290321 1754 +52919 81292075 1928 +52920 81294003 3986 +52921 81297989 3986 +52922 81301975 3986 +52923 81305961 524 +52924 81306485 704 +52925 81307189 866 +52926 81308055 944 +52927 81308999 938 +52928 81309937 662 +52929 81310599 656 +52930 81311255 1100 +52931 81312355 1100 +52932 81313455 1100 +52933 81314555 1100 +52934 81315655 344 +52935 81315999 86 +52936 81316085 3284 +52937 81319369 1844 +52938 81321213 1844 +52939 81323057 98 +52940 81323155 2426 +52941 81325581 908 +52942 81326489 3458 +52943 81329947 3458 +52944 81333405 3458 +52945 81336863 3458 +52946 81340321 3458 +52947 81343779 3458 +52948 81347237 3458 +52949 81350695 3458 +52950 81354153 3458 +52951 81357611 3458 +52952 81361069 3458 +52953 81364527 3458 +52954 81367985 3458 +52955 81371443 3458 +52956 81374901 3458 +52957 81378359 3458 +52958 81381817 3686 +52959 81385503 3686 +52960 81389189 3686 +52961 81392875 3686 +52962 81396561 3686 +52963 81400247 3686 +52964 81403933 3686 +52965 81407619 3686 +52966 81411305 3686 +52967 81414991 3686 +52968 81418677 3686 +52969 81422363 3686 +52970 81426049 3686 +52971 81429735 3686 +52972 81433421 3686 +52973 81437107 3686 +52974 81440793 3686 +52975 81444479 3686 +52976 81448165 3686 +52977 81451851 3686 +52978 81455537 3686 +52979 81459223 3686 +52980 81462909 3686 +52981 81466595 3686 +52982 81470281 3686 +52983 81473967 3686 +52984 81477653 3686 +52985 81481339 3686 +52986 81485025 3686 +52987 81488711 3686 +52988 81492397 3686 +52989 81496083 3686 +52990 81499769 2792 +52991 81502561 5522 +52992 81508083 5498 +52993 81513581 5516 +52994 81519097 5522 +52995 81524619 278 +52996 81524897 278 +52997 81525175 278 +52998 81525453 278 +52999 81525731 278 +53000 81526009 278 +53001 81526287 278 +53002 81526565 278 +53003 81526843 278 +53004 81527121 278 +53005 81527399 278 +53006 81527677 278 +53007 81527955 278 +53008 81528233 278 +53009 81528511 278 +53010 81528789 278 +53011 81529067 278 +53012 81529345 278 +53013 81529623 278 +53014 81529901 278 +53015 81530179 278 +53016 81530457 278 +53017 81530735 278 +53018 81531013 278 +53019 81531291 278 +53020 81531569 278 +53021 81531847 278 +53022 81532125 278 +53023 81532403 278 +53024 81532681 278 +53025 81532959 278 +53026 81533237 278 +53027 81533515 278 +53028 81533793 278 +53029 81534071 278 +53030 81534349 278 +53031 81534627 278 +53032 81534905 830 +53033 81535735 3248 +53034 81538983 3242 +53035 81542225 3242 +53036 81545467 3242 +53037 81548709 632 +53038 81549341 848 +53039 81550189 1388 +53040 81551577 1376 +53041 81552953 1688 +53042 81554641 1688 +53043 81556329 50 +53044 81556379 50 +53045 81556429 6518 +53046 81562947 980 +53047 81563927 1760 +53048 81565687 2000 +53049 81567687 1760 +53050 81569447 2000 +53051 81571447 1826 +53052 81573273 1754 +53053 81575027 1502 +53054 81576529 1520 +53055 81578049 1430 +53056 81579479 1430 +53057 81580909 986 +53058 81581895 1556 +53059 81583451 662 +53060 81584113 1196 +53061 81585309 764 +53062 81586073 740 +53063 81586813 2672 +53064 81589485 2636 +53065 81592121 2852 +53066 81594973 2852 +53067 81597825 1070 +53068 81598895 962 +53069 81599857 464 +53070 81600321 1388 +53071 81601709 1430 +53072 81603139 3428 +53073 81606567 3428 +53074 81609995 3428 +53075 81613423 2846 +53076 81616269 542 +53077 81616811 482 +53078 81617293 602 +53079 81617895 560 +53080 81618455 554 +53081 81619009 476 +53082 81619485 608 +53083 81620093 560 +53084 81620653 1238 +53085 81621891 3464 +53086 81625355 134 +53087 81625489 134 +53088 81625623 134 +53089 81625757 134 +53090 81625891 134 +53091 81626025 134 +53092 81626159 134 +53093 81626293 134 +53094 81626427 134 +53095 81626561 134 +53096 81626695 134 +53097 81626829 134 +53098 81626963 1340 +53099 81628303 596 +53100 81628899 656 +53101 81629555 722 +53102 81630277 1274 +53103 81631551 1862 +53104 81633413 980 +53105 81634393 1040 +53106 81635433 788 +53107 81636221 788 +53108 81637009 788 +53109 81637797 776 +53110 81638573 776 +53111 81639349 776 +53112 81640125 608 +53113 81640733 614 +53114 81641347 1136 +53115 81642483 116 +53116 81642599 1928 +53117 81644527 1928 +53118 81646455 1928 +53119 81648383 1838 +53120 81650221 1124 +53121 81651345 1376 +53122 81652721 1376 +53123 81654097 1376 +53124 81655473 2582 +53125 81658055 914 +53126 81658969 920 +53127 81659889 914 +53128 81660803 230 +53129 81661033 230 +53130 81661263 1130 +53131 81662393 1124 +53132 81663517 1124 +53133 81664641 1124 +53134 81665765 1148 +53135 81666913 1124 +53136 81668037 1124 +53137 81669161 1082 +53138 81670243 1130 +53139 81671373 1130 +53140 81672503 1130 +53141 81673633 1088 +53142 81674721 1724 +53143 81676445 1712 +53144 81678157 692 +53145 81678849 716 +53146 81679565 560 +53147 81680125 722 +53148 81680847 542 +53149 81681389 722 +53150 81682111 536 +53151 81682647 722 +53152 81683369 584 +53153 81683953 1754 +53154 81685707 2300 +53155 81688007 998 +53156 81689005 914 +53157 81689919 602 +53158 81690521 338 +53159 81690859 1718 +53160 81692577 602 +53161 81693179 602 +53162 81693781 602 +53163 81694383 602 +53164 81694985 602 +53165 81695587 338 +53166 81695925 338 +53167 81696263 338 +53168 81696601 338 +53169 81696939 338 +53170 81697277 1754 +53171 81699031 1754 +53172 81700785 1754 +53173 81702539 1754 +53174 81704293 1754 +53175 81706047 914 +53176 81706961 914 +53177 81707875 914 +53178 81708789 914 +53179 81709703 914 +53180 81710617 998 +53181 81711615 998 +53182 81712613 998 +53183 81713611 998 +53184 81714609 998 +53185 81715607 2300 +53186 81717907 2300 +53187 81720207 2300 +53188 81722507 2300 +53189 81724807 2300 +53190 81727107 1718 +53191 81728825 1718 +53192 81730543 1718 +53193 81732261 1718 +53194 81733979 1718 +53195 81735697 1760 +53196 81737457 2300 +53197 81739757 1004 +53198 81740761 2300 +53199 81743061 2300 +53200 81745361 2300 +53201 81747661 2300 +53202 81749961 2300 +53203 81752261 1004 +53204 81753265 1004 +53205 81754269 1004 +53206 81755273 1004 +53207 81756277 1004 +53208 81757281 1760 +53209 81759041 1760 +53210 81760801 1760 +53211 81762561 1760 +53212 81764321 1760 +53213 81766081 992 +53214 81767073 2306 +53215 81769379 992 +53216 81770371 992 +53217 81771363 992 +53218 81772355 992 +53219 81773347 992 +53220 81774339 2306 +53221 81776645 2306 +53222 81778951 2306 +53223 81781257 2306 +53224 81783563 2306 +53225 81785869 2306 +53226 81788175 2306 +53227 81790481 2306 +53228 81792787 2306 +53229 81795093 2306 +53230 81797399 2306 +53231 81799705 2306 +53232 81802011 2306 +53233 81804317 2306 +53234 81806623 2306 +53235 81808929 2306 +53236 81811235 2306 +53237 81813541 2306 +53238 81815847 338 +53239 81816185 1754 +53240 81817939 914 +53241 81818853 602 +53242 81819455 914 +53243 81820369 914 +53244 81821283 914 +53245 81822197 914 +53246 81823111 914 +53247 81824025 2306 +53248 81826331 2306 +53249 81828637 2306 +53250 81830943 2306 +53251 81833249 2306 +53252 81835555 602 +53253 81836157 602 +53254 81836759 602 +53255 81837361 602 +53256 81837963 602 +53257 81838565 1754 +53258 81840319 1754 +53259 81842073 1754 +53260 81843827 1754 +53261 81845581 1754 +53262 81847335 338 +53263 81847673 338 +53264 81848011 338 +53265 81848349 338 +53266 81848687 338 +53267 81849025 2306 +53268 81851331 1760 +53269 81853091 2306 +53270 81855397 2306 +53271 81857703 2306 +53272 81860009 2306 +53273 81862315 2306 +53274 81864621 1760 +53275 81866381 1760 +53276 81868141 1760 +53277 81869901 1760 +53278 81871661 1760 +53279 81873421 2306 +53280 81875727 2306 +53281 81878033 2306 +53282 81880339 2306 +53283 81882645 2306 +53284 81884951 2306 +53285 81887257 2306 +53286 81889563 2306 +53287 81891869 2306 +53288 81894175 2306 +53289 81896481 2306 +53290 81898787 2306 +53291 81901093 4208 +53292 81905301 4190 +53293 81909491 4160 +53294 81913651 1862 +53295 81915513 1862 +53296 81917375 770 +53297 81918145 944 +53298 81919089 944 +53299 81920033 896 +53300 81920929 890 +53301 81921819 1838 +53302 81923657 1922 +53303 81925579 1928 +53304 81927507 1772 +53305 81929279 1076 +53306 81930355 1376 +53307 81931731 1376 +53308 81933107 1340 +53309 81934447 1526 +53310 81935973 1016 +53311 81936989 758 +53312 81937747 746 +53313 81938493 1496 +53314 81939989 1604 +53315 81941593 1310 +53316 81942903 1310 +53317 81944213 1304 +53318 81945517 92 +53319 81945609 1250 +53320 81946859 92 +53321 81946951 1250 +53322 81948201 1736 +53323 81949937 410 +53324 81950347 2198 +53325 81952545 2198 +53326 81954743 758 +53327 81955501 794 +53328 81956295 794 +53329 81957089 794 +53330 81957883 794 +53331 81958677 794 +53332 81959471 794 +53333 81960265 980 +53334 81961245 992 +53335 81962237 1196 +53336 81963433 1184 +53337 81964617 1256 +53338 81965873 1100 +53339 81966973 1100 +53340 81968073 734 +53341 81968807 734 +53342 81969541 566 +53343 81970107 104 +53344 81970211 1256 +53345 81971467 1256 +53346 81972723 872 +53347 81973595 872 +53348 81974467 1574 +53349 81976041 2768 +53350 81978809 2714 +53351 81981523 704 +53352 81982227 1178 +53353 81983405 1796 +53354 81985201 1208 +53355 81986409 1154 +53356 81987563 1334 +53357 81988897 1334 +53358 81990231 1334 +53359 81991565 1334 +53360 81992899 506 +53361 81993405 1280 +53362 81994685 1280 +53363 81995965 1280 +53364 81997245 1280 +53365 81998525 1256 +53366 81999781 1382 +53367 82001163 1382 +53368 82002545 1382 +53369 82003927 932 +53370 82004859 98 +53371 82004957 1292 +53372 82006249 1286 +53373 82007535 584 +53374 82008119 890 +53375 82009009 308 +53376 82009317 302 +53377 82009619 1676 +53378 82011295 1676 +53379 82012971 1676 +53380 82014647 1676 +53381 82016323 1676 +53382 82017999 1676 +53383 82019675 2288 +53384 82021963 1244 +53385 82023207 1262 +53386 82024469 1262 +53387 82025731 1934 +53388 82027665 2540 +53389 82030205 482 +53390 82030687 428 +53391 82031115 482 +53392 82031597 428 +53393 82032025 710 +53394 82032735 710 +53395 82033445 1880 +53396 82035325 1196 +53397 82036521 2072 +53398 82038593 752 +53399 82039345 758 +53400 82040103 2432 +53401 82042535 2432 +53402 82044967 908 +53403 82045875 818 +53404 82046693 200 +53405 82046893 1868 +53406 82048761 3122 +53407 82051883 3092 +53408 82054975 2648 +53409 82057623 572 +53410 82058195 572 +53411 82058767 1556 +53412 82060323 1436 +53413 82061759 1382 +53414 82063141 704 +53415 82063845 680 +53416 82064525 704 +53417 82065229 680 +53418 82065909 2396 +53419 82068305 2294 +53420 82070599 2396 +53421 82072995 2312 +53422 82075307 2408 +53423 82077715 2306 +53424 82080021 2348 +53425 82082369 2312 +53426 82084681 2372 +53427 82087053 2306 +53428 82089359 2396 +53429 82091755 2306 +53430 82094061 3446 +53431 82097507 3452 +53432 82100959 3518 +53433 82104477 3302 +53434 82107779 3320 +53435 82111099 3152 +53436 82114251 2012 +53437 82116263 710 +53438 82116973 1394 +53439 82118367 1394 +53440 82119761 1394 +53441 82121155 1394 +53442 82122549 1394 +53443 82123943 1394 +53444 82125337 1394 +53445 82126731 1394 +53446 82128125 1394 +53447 82129519 1394 +53448 82130913 1400 +53449 82132313 1400 +53450 82133713 1400 +53451 82135113 1400 +53452 82136513 1400 +53453 82137913 1400 +53454 82139313 1400 +53455 82140713 1400 +53456 82142113 1400 +53457 82143513 1400 +53458 82144913 608 +53459 82145521 608 +53460 82146129 692 +53461 82146821 1796 +53462 82148617 2462 +53463 82151079 1262 +53464 82152341 1244 +53465 82153585 1280 +53466 82154865 1250 +53467 82156115 2810 +53468 82158925 2810 +53469 82161735 2810 +53470 82164545 2810 +53471 82167355 830 +53472 82168185 830 +53473 82169015 1676 +53474 82170691 2138 +53475 82172829 248 +53476 82173077 1682 +53477 82174759 704 +53478 82175463 1670 +53479 82177133 1670 +53480 82178803 1988 +53481 82180791 1994 +53482 82182785 1988 +53483 82184773 1982 +53484 82186755 1472 +53485 82188227 1388 +53486 82189615 1388 +53487 82191003 1502 +53488 82192505 1490 +53489 82193995 1490 +53490 82195485 1550 +53491 82197035 554 +53492 82197589 38 +53493 82197627 1274 +53494 82198901 1274 +53495 82200175 1364 +53496 82201539 1364 +53497 82202903 1364 +53498 82204267 1364 +53499 82205631 1364 +53500 82206995 1364 +53501 82208359 1364 +53502 82209723 1364 +53503 82211087 1364 +53504 82212451 1364 +53505 82213815 1364 +53506 82215179 1364 +53507 82216543 1364 +53508 82217907 1364 +53509 82219271 1364 +53510 82220635 1364 +53511 82221999 1364 +53512 82223363 1364 +53513 82224727 1364 +53514 82226091 1364 +53515 82227455 752 +53516 82228207 914 +53517 82229121 914 +53518 82230035 914 +53519 82230949 914 +53520 82231863 914 +53521 82232777 914 +53522 82233691 140 +53523 82233831 140 +53524 82233971 140 +53525 82234111 140 +53526 82234251 140 +53527 82234391 140 +53528 82234531 1088 +53529 82235619 1130 +53530 82236749 1178 +53531 82237927 1256 +53532 82239183 1124 +53533 82240307 602 +53534 82240909 608 +53535 82241517 452 +53536 82241969 422 +53537 82242391 944 +53538 82243335 938 +53539 82244273 1262 +53540 82245535 602 +53541 82246137 602 +53542 82246739 1178 +53543 82247917 1178 +53544 82249095 1178 +53545 82250273 1178 +53546 82251451 1178 +53547 82252629 1178 +53548 82253807 1178 +53549 82254985 1178 +53550 82256163 1178 +53551 82257341 1178 +53552 82258519 1178 +53553 82259697 1178 +53554 82260875 2486 +53555 82263361 3824 +53556 82267185 3704 +53557 82270889 92 +53558 82270981 1244 +53559 82272225 1316 +53560 82273541 398 +53561 82273939 1298 +53562 82275237 1286 +53563 82276523 1298 +53564 82277821 1286 +53565 82279107 1532 +53566 82280639 1532 +53567 82282171 1532 +53568 82283703 1532 +53569 82285235 1532 +53570 82286767 1532 +53571 82288299 1532 +53572 82289831 1532 +53573 82291363 1532 +53574 82292895 1532 +53575 82294427 1532 +53576 82295959 1532 +53577 82297491 1940 +53578 82299431 1610 +53579 82301041 1610 +53580 82302651 1610 +53581 82304261 1610 +53582 82305871 1610 +53583 82307481 1610 +53584 82309091 1610 +53585 82310701 518 +53586 82311219 3128 +53587 82314347 878 +53588 82315225 878 +53589 82316103 878 +53590 82316981 878 +53591 82317859 878 +53592 82318737 878 +53593 82319615 878 +53594 82320493 878 +53595 82321371 878 +53596 82322249 878 +53597 82323127 2474 +53598 82325601 920 +53599 82326521 446 +53600 82326967 296 +53601 82327263 302 +53602 82327565 2336 +53603 82329901 38 +53604 82329939 38 +53605 82329977 2408 +53606 82332385 1688 +53607 82334073 1700 +53608 82335773 158 +53609 82335931 164 +53610 82336095 158 +53611 82336253 158 +53612 82336411 158 +53613 82336569 158 +53614 82336727 158 +53615 82336885 158 +53616 82337043 158 +53617 82337201 158 +53618 82337359 152 +53619 82337511 164 +53620 82337675 158 +53621 82337833 164 +53622 82337997 158 +53623 82338155 386 +53624 82338541 170 +53625 82338711 170 +53626 82338881 170 +53627 82339051 890 +53628 82339941 686 +53629 82340627 722 +53630 82341349 686 +53631 82342035 722 +53632 82342757 668 +53633 82343425 644 +53634 82344069 668 +53635 82344737 644 +53636 82345381 722 +53637 82346103 1292 +53638 82347395 1358 +53639 82348753 716 +53640 82349469 818 +53641 82350287 776 +53642 82351063 620 +53643 82351683 620 +53644 82352303 2156 +53645 82354459 518 +53646 82354977 518 +53647 82355495 1118 +53648 82356613 1124 +53649 82357737 860 +53650 82358597 854 +53651 82359451 1118 +53652 82360569 1124 +53653 82361693 860 +53654 82362553 854 +53655 82363407 1118 +53656 82364525 1124 +53657 82365649 860 +53658 82366509 854 +53659 82367363 1688 +53660 82369051 2258 +53661 82371309 2264 +53662 82373573 2912 +53663 82376485 1832 +53664 82378317 122 +53665 82378439 1376 +53666 82379815 1826 +53667 82381641 1826 +53668 82383467 1826 +53669 82385293 1826 +53670 82387119 938 +53671 82388057 932 +53672 82388989 938 +53673 82389927 932 +53674 82390859 4808 +53675 82395667 3854 +53676 82399521 3854 +53677 82403375 3854 +53678 82407229 3188 +53679 82410417 1358 +53680 82411775 1478 +53681 82413253 2822 +53682 82416075 6236 +53683 82422311 6236 +53684 82428547 6236 +53685 82434783 6236 +53686 82441019 6200 +53687 82447219 6200 +53688 82453419 6200 +53689 82459619 6200 +53690 82465819 6236 +53691 82472055 6236 +53692 82478291 6236 +53693 82484527 6236 +53694 82490763 608 +53695 82491371 1136 +53696 82492507 608 +53697 82493115 1136 +53698 82494251 608 +53699 82494859 1136 +53700 82495995 608 +53701 82496603 1136 +53702 82497739 608 +53703 82498347 1136 +53704 82499483 608 +53705 82500091 1136 +53706 82501227 608 +53707 82501835 1136 +53708 82502971 608 +53709 82503579 1136 +53710 82504715 608 +53711 82505323 1136 +53712 82506459 608 +53713 82507067 1136 +53714 82508203 608 +53715 82508811 1136 +53716 82509947 608 +53717 82510555 1136 +53718 82511691 968 +53719 82512659 416 +53720 82513075 962 +53721 82514037 410 +53722 82514447 1946 +53723 82516393 506 +53724 82516899 506 +53725 82517405 3152 +53726 82520557 3152 +53727 82523709 68 +53728 82523777 80 +53729 82523857 302 +53730 82524159 302 +53731 82524461 302 +53732 82524763 302 +53733 82525065 4585 +53734 82529650 4585 +53735 82534235 500 +53736 82534735 2528 +53737 82537263 2528 +53738 82539791 2210 +53739 82542001 2198 +53740 82544199 2198 +53741 82546397 794 +53742 82547191 806 +53743 82547997 494 +53744 82548491 494 +53745 82548985 1526 +53746 82550511 1532 +53747 82552043 668 +53748 82552711 662 +53749 82553373 80 +53750 82553453 704 +53751 82554157 2834 +53752 82556991 3188 +53753 82560179 3308 +53754 82563487 8510 +53755 82571997 6824 +53756 82578821 1538 +53757 82580359 764 +53758 82581123 1244 +53759 82582367 470 +53760 82582837 1034 +53761 82583871 896 +53762 82584767 692 +53763 82585459 398 +53764 82585857 698 +53765 82586555 272 +53766 82586827 2353 +53767 82589180 1136 +53768 82590316 1160 +53769 82591476 1172 +53770 82592648 1988 +53771 82594636 1790 +53772 82596426 1544 +53773 82597970 1214 +53774 82599184 632 +53775 82599816 488 +53776 82600304 944 +53777 82601248 1214 +53778 82602462 632 +53779 82603094 488 +53780 82603582 944 +53781 82604526 632 +53782 82605158 1358 +53783 82606516 1358 +53784 82607874 4160 +53785 82612034 758 +53786 82612792 1585 +53787 82614377 1652 +53788 82616029 98 +53789 82616127 1196 +53790 82617323 668 +53791 82617991 680 +53792 82618671 668 +53793 82619339 680 +53794 82620019 752 +53795 82620771 674 +53796 82621445 398 +53797 82621843 668 +53798 82622511 10153 +53799 82632664 4382 +53800 82637046 5378 +53801 82642424 542 +53802 82642966 542 +53803 82643508 1268 +53804 82644776 1034 +53805 82645810 872 +53806 82646682 524 +53807 82647206 896 +53808 82648102 698 +53809 82648800 3098 +53810 82651898 1526 +53811 82653424 494 +53812 82653918 740 +53813 82654658 662 +53814 82655320 626 +53815 82655946 158 +53816 82656104 8726 +53817 82664830 7040 +53818 82671870 1634 +53819 82673504 1022 +53820 82674526 1298 +53821 82675824 524 +53822 82676348 1034 +53823 82677382 854 +53824 82678236 704 +53825 82678940 428 +53826 82679368 704 +53827 82680072 266 +53828 82680338 218 +53829 82680556 626 +53830 82681182 758 +53831 82681940 1094 +53832 82683034 2198 +53833 82685232 1034 +53834 82686266 2029 +53835 82688295 674 +53836 82688969 398 +53837 82689367 650 +53838 82690017 10153 +53839 82700170 4382 +53840 82704552 5378 +53841 82709930 1268 +53842 82711198 1034 +53843 82712232 872 +53844 82713104 524 +53845 82713628 896 +53846 82714524 698 +53847 82715222 6181 +53848 82721403 1526 +53849 82722929 494 +53850 82723423 740 +53851 82724163 662 +53852 82724825 626 +53853 82725451 158 +53854 82725609 8726 +53855 82734335 7040 +53856 82741375 1634 +53857 82743009 1022 +53858 82744031 1298 +53859 82745329 524 +53860 82745853 1034 +53861 82746887 854 +53862 82747741 704 +53863 82748445 428 +53864 82748873 704 +53865 82749577 266 +53866 82749843 218 +53867 82750061 626 +53868 82750687 758 +53869 82751445 1094 +53870 82752539 2198 +53871 82754737 1034 +53872 82755771 2029 +53873 82757800 3866 +53874 82761666 1922 +53875 82763588 2042 +53876 82765630 1976 +53877 82767606 2096 +53878 82769702 1574 +53879 82771276 1574 +53880 82772850 1574 +53881 82774424 2450 +53882 82776874 2564 +53883 82779438 4208 +53884 82783646 2294 +53885 82785940 1646 +53886 82787586 8498 +53887 82796084 6824 +53888 82802908 1538 +53889 82804446 752 +53890 82805198 1250 +53891 82806448 470 +53892 82806918 1034 +53893 82807952 896 +53894 82808848 692 +53895 82809540 398 +53896 82809938 698 +53897 82810636 272 +53898 82810908 740 +53899 82811648 2353 +53900 82814001 602 +53901 82814603 710 +53902 82815313 710 +53903 82816023 1442 +53904 82817465 3356 +53905 82820821 3350 +53906 82824171 1952 +53907 82826123 2030 +53908 82828153 3110 +53909 82831263 1094 +53910 82832357 2660 +53911 82835017 1190 +53912 82836207 1184 +53913 82837391 320 +53914 82837711 332 +53915 82838043 1292 +53916 82839335 1070 +53917 82840405 440 +53918 82840845 1556 +53919 82842401 1556 +53920 82843957 1556 +53921 82845513 1556 +53922 82847069 2342 +53923 82849411 2216 +53924 82851627 500 +53925 82852127 500 +53926 82852627 620 +53927 82853247 590 +53928 82853837 644 +53929 82854481 626 +53930 82855107 644 +53931 82855751 626 +53932 82856377 692 +53933 82857069 692 +53934 82857761 704 +53935 82858465 686 +53936 82859151 692 +53937 82859843 4394 +53938 82864237 1928 +53939 82866165 806 +53940 82866971 1394 +53941 82868365 1394 +53942 82869759 1394 +53943 82871153 1394 +53944 82872547 1394 +53945 82873941 1394 +53946 82875335 7166 +53947 82882501 7226 +53948 82889727 1904 +53949 82891631 2588 +53950 82894219 1490 +53951 82895709 1490 +53952 82897199 1496 +53953 82898695 1496 +53954 82900191 1250 +53955 82901441 1232 +53956 82902673 110 +53957 82902783 1994 +53958 82904777 1946 +53959 82906723 2018 +53960 82908741 1946 +53961 82910687 2162 +53962 82912849 2162 +53963 82915011 2162 +53964 82917173 2162 +53965 82919335 2162 +53966 82921497 2162 +53967 82923659 2162 +53968 82925821 2162 +53969 82927983 1610 +53970 82929593 1004 +53971 82930597 716 +53972 82931313 3068 +53973 82934381 692 +53974 82935073 692 +53975 82935765 692 +53976 82936457 932 +53977 82937389 3638 +53978 82941027 848 +53979 82941875 1682 +53980 82943557 1292 +53981 82944849 1364 +53982 82946213 1268 +53983 82947481 1358 +53984 82948839 1646 +53985 82950485 1616 +53986 82952101 1292 +53987 82953393 2036 +53988 82955429 332 +53989 82955761 1388 +53990 82957149 1040 +53991 82958189 32 +53992 82958221 380 +53993 82958601 380 +53994 82958981 380 +53995 82959361 380 +53996 82959741 380 +53997 82960121 380 +53998 82960501 380 +53999 82960881 380 +54000 82961261 380 +54001 82961641 380 +54002 82962021 1736 +54003 82963757 1736 +54004 82965493 1736 +54005 82967229 1292 +54006 82968521 2018 +54007 82970539 1250 +54008 82971789 2096 +54009 82973885 2006 +54010 82975891 1676 +54011 82977567 1484 +54012 82979051 1478 +54013 82980529 1472 +54014 82982001 1478 +54015 82983479 6290 +54016 82989769 752 +54017 82990521 944 +54018 82991465 452 +54019 82991917 1376 +54020 82993293 1376 +54021 82994669 1376 +54022 82996045 1922 +54023 82997967 1922 +54024 82999889 1922 +54025 83001811 1922 +54026 83003733 1130 +54027 83004863 1922 +54028 83006785 1922 +54029 83008707 530 +54030 83009237 530 +54031 83009767 1130 +54032 83010897 1376 +54033 83012273 1376 +54034 83013649 1376 +54035 83015025 1700 +54036 83016725 1700 +54037 83018425 1700 +54038 83020125 1586 +54039 83021711 1610 +54040 83023321 1610 +54041 83024931 1610 +54042 83026541 1544 +54043 83028085 1544 +54044 83029629 1544 +54045 83031173 392 +54046 83031565 2390 +54047 83033955 590 +54048 83034545 566 +54049 83035111 1112 +54050 83036223 1172 +54051 83037395 1112 +54052 83038507 1172 +54053 83039679 1112 +54054 83040791 1172 +54055 83041963 1112 +54056 83043075 1172 +54057 83044247 1112 +54058 83045359 1172 +54059 83046531 1112 +54060 83047643 1172 +54061 83048815 1112 +54062 83049927 1172 +54063 83051099 1112 +54064 83052211 1172 +54065 83053383 1112 +54066 83054495 1172 +54067 83055667 1112 +54068 83056779 1172 +54069 83057951 1112 +54070 83059063 1172 +54071 83060235 1112 +54072 83061347 1172 +54073 83062519 1112 +54074 83063631 1172 +54075 83064803 1112 +54076 83065915 1172 +54077 83067087 1112 +54078 83068199 1172 +54079 83069371 1112 +54080 83070483 1172 +54081 83071655 1112 +54082 83072767 1172 +54083 83073939 1112 +54084 83075051 1172 +54085 83076223 1112 +54086 83077335 1172 +54087 83078507 1112 +54088 83079619 1172 +54089 83080791 1112 +54090 83081903 1172 +54091 83083075 1112 +54092 83084187 1172 +54093 83085359 1112 +54094 83086471 1172 +54095 83087643 2486 +54096 83090129 2468 +54097 83092597 2450 +54098 83095047 2432 +54099 83097479 2492 +54100 83099971 2462 +54101 83102433 2462 +54102 83104895 2462 +54103 83107357 650 +54104 83108007 2618 +54105 83110625 2660 +54106 83113285 2678 +54107 83115963 2642 +54108 83118605 1544 +54109 83120149 1544 +54110 83121693 1538 +54111 83123231 1532 +54112 83124763 566 +54113 83125329 482 +54114 83125811 590 +54115 83126401 584 +54116 83126985 590 +54117 83127575 482 +54118 83128057 602 +54119 83128659 560 +54120 83129219 908 +54121 83130127 908 +54122 83131035 1046 +54123 83132081 2234 +54124 83134315 1046 +54125 83135361 2234 +54126 83137595 2234 +54127 83139829 2234 +54128 83142063 2234 +54129 83144297 452 +54130 83144749 476 +54131 83145225 464 +54132 83145689 1796 +54133 83147485 1670 +54134 83149155 1808 +54135 83150963 1802 +54136 83152765 1622 +54137 83154387 1418 +54138 83155805 1646 +54139 83157451 1790 +54140 83159241 1802 +54141 83161043 1772 +54142 83162815 1766 +54143 83164581 1424 +54144 83166005 2648 +54145 83168653 392 +54146 83169045 416 +54147 83169461 344 +54148 83169805 1220 +54149 83171025 392 +54150 83171417 392 +54151 83171809 1472 +54152 83173281 1508 +54153 83174789 1862 +54154 83176651 1862 +54155 83178513 1850 +54156 83180363 1862 +54157 83182225 962 +54158 83183187 938 +54159 83184125 980 +54160 83185105 1580 +54161 83186685 1550 +54162 83188235 86 +54163 83188321 524 +54164 83188845 548 +54165 83189393 1262 +54166 83190655 668 +54167 83191323 680 +54168 83192003 668 +54169 83192671 680 +54170 83193351 1490 +54171 83194841 1562 +54172 83196403 1562 +54173 83197965 728 +54174 83198693 206 +54175 83198899 206 +54176 83199105 206 +54177 83199311 206 +54178 83199517 2228 +54179 83201745 980 +54180 83202725 356 +54181 83203081 392 +54182 83203473 416 +54183 83203889 380 +54184 83204269 590 +54185 83204859 1616 +54186 83206475 1934 +54187 83208409 920 +54188 83209329 908 +54189 83210237 1220 +54190 83211457 1826 +54191 83213283 1868 +54192 83215151 1850 +54193 83217001 1814 +54194 83218815 1022 +54195 83219837 1046 +54196 83220883 3062 +54197 83223945 3056 +54198 83227001 3062 +54199 83230063 968 +54200 83231031 2954 +54201 83233985 50 +54202 83234035 686 +54203 83234721 674 +54204 83235395 2414 +54205 83237809 2414 +54206 83240223 3050 +54207 83243273 2900 +54208 83246173 470 +54209 83246643 470 +54210 83247113 1568 +54211 83248681 1658 +54212 83250339 1658 +54213 83251997 1652 +54214 83253649 1652 +54215 83255301 1214 +54216 83256515 1220 +54217 83257735 1226 +54218 83258961 1214 +54219 83260175 590 +54220 83260765 1184 +54221 83261949 1184 +54222 83263133 1694 +54223 83264827 1694 +54224 83266521 860 +54225 83267381 860 +54226 83268241 1694 +54227 83269935 1694 +54228 83271629 860 +54229 83272489 860 +54230 83273349 1694 +54231 83275043 1694 +54232 83276737 860 +54233 83277597 860 +54234 83278457 2006 +54235 83280463 2054 +54236 83282517 2006 +54237 83284523 2054 +54238 83286577 2150 +54239 83288727 2498 +54240 83291225 1142 +54241 83292367 1076 +54242 83293443 1346 +54243 83294789 1304 +54244 83296093 1280 +54245 83297373 1370 +54246 83298743 1286 +54247 83300029 1268 +54248 83301297 842 +54249 83302139 2084 +54250 83304223 2060 +54251 83306283 2060 +54252 83308343 2066 +54253 83310409 14221 +54254 83324630 6572 +54255 83331202 2293 +54256 83333495 380 +54257 83333875 938 +54258 83334813 1070 +54259 83335883 14065 +54260 83349948 6602 +54261 83356550 680 +54262 83357230 380 +54263 83357610 938 +54264 83358548 1064 +54265 83359612 1076 +54266 83360688 3638 +54267 83364326 3638 +54268 83367964 1112 +54269 83369076 284 +54270 83369360 1112 +54271 83370472 284 +54272 83370756 1844 +54273 83372600 5900 +54274 83378500 5900 +54275 83384400 5900 +54276 83390300 5900 +54277 83396200 5900 +54278 83402100 5900 +54279 83408000 884 +54280 83408884 908 +54281 83409792 1634 +54282 83411426 3638 +54283 83415064 1820 +54284 83416884 428 +54285 83417312 428 +54286 83417740 584 +54287 83418324 578 +54288 83418902 776 +54289 83419678 776 +54290 83420454 770 +54291 83421224 770 +54292 83421994 776 +54293 83422770 776 +54294 83423546 2078 +54295 83425624 2078 +54296 83427702 1154 +54297 83428856 1148 +54298 83430004 2330 +54299 83432334 2318 +54300 83434652 2312 +54301 83436964 2306 +54302 83439270 2324 +54303 83441594 2348 +54304 83443942 554 +54305 83444496 1382 +54306 83445878 2120 +54307 83447998 2120 +54308 83450118 2120 +54309 83452238 2120 +54310 83454358 338 +54311 83454696 338 +54312 83455034 464 +54313 83455498 452 +54314 83455950 2468 +54315 83458418 2774 +54316 83461192 2774 +54317 83463966 782 +54318 83464748 782 +54319 83465530 2960 +54320 83468490 338 +54321 83468828 2414 +54322 83471242 2426 +54323 83473668 1982 +54324 83475650 1334 +54325 83476984 2018 +54326 83479002 2030 +54327 83481032 1256 +54328 83482288 554 +54329 83482842 446 +54330 83483288 992 +54331 83484280 1562 +54332 83485842 1718 +54333 83487560 1754 +54334 83489314 1652 +54335 83490966 758 +54336 83491724 1778 +54337 83493502 116 +54338 83493618 1460 +54339 83495078 1460 +54340 83496538 1424 +54341 83497962 974 +54342 83498936 980 +54343 83499916 980 +54344 83500896 722 +54345 83501618 722 +54346 83502340 722 +54347 83503062 554 +54348 83503616 554 +54349 83504170 554 +54350 83504724 554 +54351 83505278 866 +54352 83506144 866 +54353 83507010 866 +54354 83507876 866 +54355 83508742 2060 +54356 83510802 2102 +54357 83512904 1538 +54358 83514442 2192 +54359 83516634 2192 +54360 83518826 5264 +54361 83524090 2096 +54362 83526186 698 +54363 83526884 698 +54364 83527582 1148 +54365 83528730 596 +54366 83529326 2552 +54367 83531878 2594 +54368 83534472 2564 +54369 83537036 1196 +54370 83538232 2996 +54371 83541228 2030 +54372 83543258 2030 +54373 83545288 2030 +54374 83547318 2030 +54375 83549348 2030 +54376 83551378 1856 +54377 83553234 2306 +54378 83555540 2342 +54379 83557882 674 +54380 83558556 692 +54381 83559248 1004 +54382 83560252 2366 +54383 83562618 1652 +54384 83564270 1610 +54385 83565880 1604 +54386 83567484 1190 +54387 83568674 2414 +54388 83571088 2414 +54389 83573502 2414 +54390 83575916 788 +54391 83576704 1412 +54392 83578116 98 +54393 83578214 1130 +54394 83579344 704 +54395 83580048 572 +54396 83580620 1436 +54397 83582056 572 +54398 83582628 1436 +54399 83584064 2606 +54400 83586670 2606 +54401 83589276 2606 +54402 83591882 2606 +54403 83594488 2606 +54404 83597094 2606 +54405 83599700 3776 +54406 83603476 3194 +54407 83606670 2408 +54408 83609078 2474 +54409 83611552 2474 +54410 83614026 476 +54411 83614502 752 +54412 83615254 752 +54413 83616006 788 +54414 83616794 788 +54415 83617582 1088 +54416 83618670 1088 +54417 83619758 1088 +54418 83620846 1088 +54419 83621934 1088 +54420 83623022 1088 +54421 83624110 2702 +54422 83626812 986 +54423 83627798 104 +54424 83627902 1574 +54425 83629476 1562 +54426 83631038 962 +54427 83632000 1532 +54428 83633532 1562 +54429 83635094 56 +54430 83635150 2624 +54431 83637774 434 +54432 83638208 1652 +54433 83639860 1652 +54434 83641512 1652 +54435 83643164 1652 +54436 83644816 992 +54437 83645808 968 +54438 83646776 992 +54439 83647768 968 +54440 83648736 1028 +54441 83649764 1046 +54442 83650810 1022 +54443 83651832 950 +54444 83652782 794 +54445 83653576 1214 +54446 83654790 5786 +54447 83660576 1298 +54448 83661874 1298 +54449 83663172 1298 +54450 83664470 968 +54451 83665438 284 +54452 83665722 986 +54453 83666708 2425 +54454 83669133 698 +54455 83669831 2114 +54456 83671945 2138 +54457 83674083 2276 +54458 83676359 2174 +54459 83678533 698 +54460 83679231 698 +54461 83679929 698 +54462 83680627 698 +54463 83681325 698 +54464 83682023 698 +54465 83682721 698 +54466 83683419 698 +54467 83684117 698 +54468 83684815 698 +54469 83685513 1442 +54470 83686955 842 +54471 83687797 836 +54472 83688633 1172 +54473 83689805 1184 +54474 83690989 2810 +54475 83693799 2822 +54476 83696621 2810 +54477 83699431 2822 +54478 83702253 812 +54479 83703065 812 +54480 83703877 812 +54481 83704689 812 +54482 83705501 1442 +54483 83706943 1844 +54484 83708787 2384 +54485 83711171 2420 +54486 83713591 1904 +54487 83715495 470 +54488 83715965 2684 +54489 83718649 1712 +54490 83720361 1904 +54491 83722265 470 +54492 83722735 2684 +54493 83725419 1586 +54494 83727005 134 +54495 83727139 1646 +54496 83728785 1646 +54497 83730431 1646 +54498 83732077 788 +54499 83732865 794 +54500 83733659 794 +54501 83734453 1970 +54502 83736423 1652 +54503 83738075 2882 +54504 83740957 1760 +54505 83742717 1760 +54506 83744477 1760 +54507 83746237 1754 +54508 83747991 2384 +54509 83750375 2384 +54510 83752759 2384 +54511 83755143 2384 +54512 83757527 2384 +54513 83759911 2384 +54514 83762295 740 +54515 83763035 1172 +54516 83764207 2414 +54517 83766621 872 +54518 83767493 446 +54519 83767939 884 +54520 83768823 446 +54521 83769269 1070 +54522 83770339 2546 +54523 83772885 668 +54524 83773553 746 +54525 83774299 1010 +54526 83775309 1022 +54527 83776331 1778 +54528 83778109 764 +54529 83778873 1304 +54530 83780177 2036 +54531 83782213 344 +54532 83782557 1106 +54533 83783663 1106 +54534 83784769 1106 +54535 83785875 1106 +54536 83786981 1106 +54537 83788087 1106 +54538 83789193 1106 +54539 83790299 1106 +54540 83791405 1106 +54541 83792511 1106 +54542 83793617 1106 +54543 83794723 1106 +54544 83795829 1106 +54545 83796935 1106 +54546 83798041 1106 +54547 83799147 1106 +54548 83800253 1106 +54549 83801359 1106 +54550 83802465 1106 +54551 83803571 1106 +54552 83804677 1106 +54553 83805783 1106 +54554 83806889 1106 +54555 83807995 1106 +54556 83809101 1106 +54557 83810207 1106 +54558 83811313 1106 +54559 83812419 1106 +54560 83813525 1106 +54561 83814631 1106 +54562 83815737 1106 +54563 83816843 1106 +54564 83817949 1106 +54565 83819055 1106 +54566 83820161 1106 +54567 83821267 1106 +54568 83822373 1106 +54569 83823479 1106 +54570 83824585 1106 +54571 83825691 1106 +54572 83826797 1106 +54573 83827903 1106 +54574 83829009 1106 +54575 83830115 1106 +54576 83831221 1106 +54577 83832327 1106 +54578 83833433 1106 +54579 83834539 1106 +54580 83835645 1106 +54581 83836751 1106 +54582 83837857 1106 +54583 83838963 1106 +54584 83840069 1106 +54585 83841175 1106 +54586 83842281 1106 +54587 83843387 1106 +54588 83844493 1106 +54589 83845599 1106 +54590 83846705 1106 +54591 83847811 1106 +54592 83848917 1844 +54593 83850761 764 +54594 83851525 1304 +54595 83852829 2036 +54596 83854865 344 +54597 83855209 794 +54598 83856003 620 +54599 83856623 590 +54600 83857213 2468 +54601 83859681 848 +54602 83860529 452 +54603 83860981 2672 +54604 83863653 2672 +54605 83866325 1580 +54606 83867905 602 +54607 83868507 1670 +54608 83870177 1910 +54609 83872087 512 +54610 83872599 548 +54611 83873147 548 +54612 83873695 248 +54613 83873943 248 +54614 83874191 3110 +54615 83877301 3110 +54616 83880411 1274 +54617 83881685 1274 +54618 83882959 1904 +54619 83884863 470 +54620 83885333 2684 +54621 83888017 1712 +54622 83889729 1904 +54623 83891633 470 +54624 83892103 2684 +54625 83894787 1586 +54626 83896373 134 +54627 83896507 344 +54628 83896851 2294 +54629 83899145 2294 +54630 83901439 2294 +54631 83903733 2306 +54632 83906039 2198 +54633 83908237 2192 +54634 83910429 2276 +54635 83912705 2174 +54636 83914879 2162 +54637 83917041 2168 +54638 83919209 1472 +54639 83920681 1472 +54640 83922153 1646 +54641 83923799 1634 +54642 83925433 1322 +54643 83926755 1292 +54644 83928047 1178 +54645 83929225 1238 +54646 83930463 1166 +54647 83931629 1160 +54648 83932789 788 +54649 83933577 788 +54650 83934365 788 +54651 83935153 788 +54652 83935941 3445 +54653 83939386 1730 +54654 83941116 1424 +54655 83942540 1424 +54656 83943964 1334 +54657 83945298 1346 +54658 83946644 914 +54659 83947558 722 +54660 83948280 422 +54661 83948702 422 +54662 83949124 1622 +54663 83950746 2666 +54664 83953412 2672 +54665 83956084 248 +54666 83956332 248 +54667 83956580 3110 +54668 83959690 3110 +54669 83962800 3242 +54670 83966042 3176 +54671 83969218 1100 +54672 83970318 1022 +54673 83971340 1100 +54674 83972440 1022 +54675 83973462 1100 +54676 83974562 1022 +54677 83975584 1100 +54678 83976684 1022 +54679 83977706 2714 +54680 83980420 200 +54681 83980620 3956 +54682 83984576 2258 +54683 83986834 2258 +54684 83989092 2372 +54685 83991464 2372 +54686 83993836 2372 +54687 83996208 11821 +54688 84008029 728 +54689 84008757 764 +54690 84009521 800 +54691 84010321 668 +54692 84010989 674 +54693 84011663 782 +54694 84012445 284 +54695 84012729 296 +54696 84013025 284 +54697 84013309 290 +54698 84013599 272 +54699 84013871 260 +54700 84014131 1802 +54701 84015933 932 +54702 84016865 902 +54703 84017767 914 +54704 84018681 896 +54705 84019577 2366 +54706 84021943 2132 +54707 84024075 1778 +54708 84025853 602 +54709 84026455 734 +54710 84027189 656 +54711 84027845 896 +54712 84028741 1742 +54713 84030483 1460 +54714 84031943 1310 +54715 84033253 794 +54716 84034047 806 +54717 84034853 662 +54718 84035515 590 +54719 84036105 572 +54720 84036677 590 +54721 84037267 230 +54722 84037497 572 +54723 84038069 914 +54724 84038983 794 +54725 84039777 2330 +54726 84042107 980 +54727 84043087 794 +54728 84043881 794 +54729 84044675 4484 +54730 84049159 4466 +54731 84053625 80 +54732 84053705 80 +54733 84053785 2846 +54734 84056631 2840 +54735 84059471 2846 +54736 84062317 2846 +54737 84065163 2852 +54738 84068015 2840 +54739 84070855 326 +54740 84071181 248 +54741 84071429 248 +54742 84071677 3110 +54743 84074787 3110 +54744 84077897 1334 +54745 84079231 92 +54746 84079323 1334 +54747 84080657 92 +54748 84080749 2372 +54749 84083121 2372 +54750 84085493 2372 +54751 84087865 2372 +54752 84090237 2396 +54753 84092633 2396 +54754 84095029 2396 +54755 84097425 2396 +54756 84099821 1118 +54757 84100939 2330 +54758 84103269 896 +54759 84104165 644 +54760 84104809 644 +54761 84105453 1622 +54762 84107075 1628 +54763 84108703 1622 +54764 84110325 278 +54765 84110603 278 +54766 84110881 278 +54767 84111159 278 +54768 84111437 278 +54769 84111715 278 +54770 84111993 278 +54771 84112271 278 +54772 84112549 278 +54773 84112827 278 +54774 84113105 1538 +54775 84114643 1538 +54776 84116181 1496 +54777 84117677 1934 +54778 84119611 1418 +54779 84121029 1418 +54780 84122447 3566 +54781 84126013 14713 +54782 84140726 2006 +54783 84142732 836 +54784 84143568 1088 +54785 84144656 2264 +54786 84146920 716 +54787 84147636 548 +54788 84148184 548 +54789 84148732 1622 +54790 84150354 530 +54791 84150884 2426 +54792 84153310 572 +54793 84153882 554 +54794 84154436 2438 +54795 84156874 986 +54796 84157860 1160 +54797 84159020 1010 +54798 84160030 2078 +54799 84162108 1670 +54800 84163778 1670 +54801 84165448 662 +54802 84166110 206 +54803 84166316 662 +54804 84166978 206 +54805 84167184 1904 +54806 84169088 1856 +54807 84170944 5648 +54808 84176592 5660 +54809 84182252 5588 +54810 84187840 5570 +54811 84193410 1076 +54812 84194486 1076 +54813 84195562 1766 +54814 84197328 1766 +54815 84199094 2252 +54816 84201346 2264 +54817 84203610 998 +54818 84204608 2378 +54819 84206986 2366 +54820 84209352 2366 +54821 84211718 2366 +54822 84214084 3008 +54823 84217092 1400 +54824 84218492 1970 +54825 84220462 1970 +54826 84222432 1388 +54827 84223820 1970 +54828 84225790 1970 +54829 84227760 1970 +54830 84229730 1970 +54831 84231700 1970 +54832 84233670 1970 +54833 84235640 1970 +54834 84237610 1970 +54835 84239580 1970 +54836 84241550 1046 +54837 84242596 1226 +54838 84243822 1046 +54839 84244868 1226 +54840 84246094 2624 +54841 84248718 2288 +54842 84251006 626 +54843 84251632 2624 +54844 84254256 2288 +54845 84256544 626 +54846 84257170 1616 +54847 84258786 1586 +54848 84260372 728 +54849 84261100 764 +54850 84261864 806 +54851 84262670 452 +54852 84263122 5258 +54853 84268380 1652 +54854 84270032 5258 +54855 84275290 1652 +54856 84276942 1166 +54857 84278108 1148 +54858 84279256 1166 +54859 84280422 1148 +54860 84281570 1154 +54861 84282724 1148 +54862 84283872 1154 +54863 84285026 1148 +54864 84286174 374 +54865 84286548 74 +54866 84286622 2804 +54867 84289426 2804 +54868 84292230 974 +54869 84293204 974 +54870 84294178 2690 +54871 84296868 2612 +54872 84299480 2660 +54873 84302140 2636 +54874 84304776 1412 +54875 84306188 1412 +54876 84307600 1412 +54877 84309012 1412 +54878 84310424 986 +54879 84311410 2012 +54880 84313422 2060 +54881 84315482 1232 +54882 84316714 1226 +54883 84317940 1712 +54884 84319652 1742 +54885 84321394 1712 +54886 84323106 1724 +54887 84324830 1724 +54888 84326554 1730 +54889 84328284 674 +54890 84328958 656 +54891 84329614 662 +54892 84330276 668 +54893 84330944 656 +54894 84331600 662 +54895 84332262 452 +54896 84332714 2324 +54897 84335038 2144 +54898 84337182 2138 +54899 84339320 2120 +54900 84341440 2108 +54901 84343548 3002 +54902 84346550 2990 +54903 84349540 1136 +54904 84350676 1844 +54905 84352520 1820 +54906 84354340 2522 +54907 84356862 5588 +54908 84362450 62 +54909 84362512 62 +54910 84362574 944 +54911 84363518 146 +54912 84363664 602 +54913 84364266 608 +54914 84364874 602 +54915 84365476 608 +54916 84366084 704 +54917 84366788 680 +54918 84367468 572 +54919 84368040 1130 +54920 84369170 572 +54921 84369742 1130 +54922 84370872 104 +54923 84370976 1808 +54924 84372784 1016 +54925 84373800 668 +54926 84374468 260 +54927 84374728 1814 +54928 84376542 1016 +54929 84377558 668 +54930 84378226 2210 +54931 84380436 752 +54932 84381188 1220 +54933 84382408 1550 +54934 84383958 1550 +54935 84385508 1550 +54936 84387058 1550 +54937 84388608 1550 +54938 84390158 1550 +54939 84391708 968 +54940 84392676 968 +54941 84393644 968 +54942 84394612 968 +54943 84395580 830 +54944 84396410 542 +54945 84396952 842 +54946 84397794 1310 +54947 84399104 2312 +54948 84401416 2312 +54949 84403728 764 +54950 84404492 1226 +54951 84405718 722 +54952 84406440 722 +54953 84407162 722 +54954 84407884 722 +54955 84408606 722 +54956 84409328 722 +54957 84410050 722 +54958 84410772 722 +54959 84411494 722 +54960 84412216 722 +54961 84412938 722 +54962 84413660 722 +54963 84414382 722 +54964 84415104 722 +54965 84415826 722 +54966 84416548 722 +54967 84417270 722 +54968 84417992 722 +54969 84418714 722 +54970 84419436 722 +54971 84420158 722 +54972 84420880 722 +54973 84421602 722 +54974 84422324 764 +54975 84423088 764 +54976 84423852 764 +54977 84424616 764 +54978 84425380 764 +54979 84426144 764 +54980 84426908 764 +54981 84427672 764 +54982 84428436 764 +54983 84429200 764 +54984 84429964 764 +54985 84430728 764 +54986 84431492 764 +54987 84432256 764 +54988 84433020 764 +54989 84433784 764 +54990 84434548 764 +54991 84435312 764 +54992 84436076 764 +54993 84436840 764 +54994 84437604 764 +54995 84438368 764 +54996 84439132 764 +54997 84439896 2222 +54998 84442118 404 +54999 84442522 404 +55000 84442926 404 +55001 84443330 404 +55002 84443734 1238 +55003 84444972 1238 +55004 84446210 1238 +55005 84447448 1820 +55006 84449268 1820 +55007 84451088 1820 +55008 84452908 1820 +55009 84454728 1820 +55010 84456548 1820 +55011 84458368 1232 +55012 84459600 170 +55013 84459770 170 +55014 84459940 170 +55015 84460110 2882 +55016 84462992 2810 +55017 84465802 3992 +55018 84469794 512 +55019 84470306 566 +55020 84470872 434 +55021 84471306 362 +55022 84471668 272 +55023 84471940 362 +55024 84472302 308 +55025 84472610 296 +55026 84472906 386 +55027 84473292 230 +55028 84473522 1376 +55029 84474898 1658 +55030 84476556 1232 +55031 84477788 1250 +55032 84479038 1094 +55033 84480132 962 +55034 84481094 836 +55035 84481930 740 +55036 84482670 884 +55037 84483554 854 +55038 84484408 710 +55039 84485118 596 +55040 84485714 830 +55041 84486544 710 +55042 84487254 614 +55043 84487868 686 +55044 84488554 560 +55045 84489114 608 +55046 84489722 1106 +55047 84490828 872 +55048 84491700 1412 +55049 84493112 1244 +55050 84494356 1256 +55051 84495612 908 +55052 84496520 614 +55053 84497134 938 +55054 84498072 836 +55055 84498908 770 +55056 84499678 596 +55057 84500274 722 +55058 84500996 752 +55059 84501748 752 +55060 84502500 368 +55061 84502868 536 +55062 84503404 506 +55063 84503910 602 +55064 84504512 428 +55065 84504940 476 +55066 84505416 602 +55067 84506018 152 +55068 84506170 2270 +55069 84508440 1148 +55070 84509588 1640 +55071 84511228 1748 +55072 84512976 2402 +55073 84515378 2384 +55074 84517762 470 +55075 84518232 632 +55076 84518864 1478 +55077 84520342 2354 +55078 84522696 1478 +55079 84524174 2354 +55080 84526528 368 +55081 84526896 608 +55082 84527504 728 +55083 84528232 410 +55084 84528642 326 +55085 84528968 794 +55086 84529762 1766 +55087 84531528 698 +55088 84532226 662 +55089 84532888 1796 +55090 84534684 1868 +55091 84536552 2480 +55092 84539032 4609 +55093 84543641 3169 +55094 84546810 3145 +55095 84549955 212 +55096 84550167 1556 +55097 84551723 2138 +55098 84553861 74 +55099 84553935 866 +55100 84554801 1538 +55101 84556339 1994 +55102 84558333 2066 +55103 84560399 2546 +55104 84562945 914 +55105 84563859 1454 +55106 84565313 992 +55107 84566305 1148 +55108 84567453 2372 +55109 84569825 914 +55110 84570739 1598 +55111 84572337 668 +55112 84573005 812 +55113 84573817 1070 +55114 84574887 1052 +55115 84575939 830 +55116 84576769 872 +55117 84577641 1148 +55118 84578789 1028 +55119 84579817 482 +55120 84580299 740 +55121 84581039 1400 +55122 84582439 758 +55123 84583197 1526 +55124 84584723 1268 +55125 84585991 5077 +55126 84591068 758 +55127 84591826 644 +55128 84592470 722 +55129 84593192 512 +55130 84593704 440 +55131 84594144 1064 +55132 84595208 2533 +55133 84597741 2030 +55134 84599771 806 +55135 84600577 2156 +55136 84602733 1208 +55137 84603941 1502 +55138 84605443 680 +55139 84606123 1789 +55140 84607912 1466 +55141 84609378 1682 +55142 84611060 1358 +55143 84612418 1322 +55144 84613740 1376 +55145 84615116 1202 +55146 84616318 1256 +55147 84617574 1256 +55148 84618830 1190 +55149 84620020 1820 +55150 84621840 1640 +55151 84623480 1616 +55152 84625096 1610 +55153 84626706 1652 +55154 84628358 1628 +55155 84629986 1622 +55156 84631608 650 +55157 84632258 1268 +55158 84633526 800 +55159 84634326 800 +55160 84635126 800 +55161 84635926 800 +55162 84636726 800 +55163 84637526 800 +55164 84638326 800 +55165 84639126 800 +55166 84639926 1982 +55167 84641908 2180 +55168 84644088 1412 +55169 84645500 1244 +55170 84646744 1256 +55171 84648000 914 +55172 84648914 614 +55173 84649528 938 +55174 84650466 836 +55175 84651302 770 +55176 84652072 596 +55177 84652668 692 +55178 84653360 740 +55179 84654100 710 +55180 84654810 368 +55181 84655178 536 +55182 84655714 506 +55183 84656220 602 +55184 84656822 428 +55185 84657250 476 +55186 84657726 602 +55187 84658328 152 +55188 84658480 1634 +55189 84660114 1232 +55190 84661346 1220 +55191 84662566 1094 +55192 84663660 962 +55193 84664622 878 +55194 84665500 890 +55195 84666390 830 +55196 84667220 740 +55197 84667960 884 +55198 84668844 812 +55199 84669656 710 +55200 84670366 596 +55201 84670962 830 +55202 84671792 710 +55203 84672502 614 +55204 84673116 680 +55205 84673796 560 +55206 84674356 608 +55207 84674964 1130 +55208 84676094 464 +55209 84676558 536 +55210 84677094 380 +55211 84677474 362 +55212 84677836 188 +55213 84678024 320 +55214 84678344 272 +55215 84678616 296 +55216 84678912 386 +55217 84679298 4640 +55218 84683938 638 +55219 84684576 680 +55220 84685256 638 +55221 84685894 182 +55222 84686076 182 +55223 84686258 416 +55224 84686674 830 +55225 84687504 602 +55226 84688106 1364 +55227 84689470 1418 +55228 84690888 1370 +55229 84692258 1376 +55230 84693634 1418 +55231 84695052 1364 +55232 84696416 812 +55233 84697228 566 +55234 84697794 566 +55235 84698360 2096 +55236 84700456 2090 +55237 84702546 770 +55238 84703316 2144 +55239 84705460 1388 +55240 84706848 1388 +55241 84708236 7016 +55242 84715252 6926 +55243 84722178 1412 +55244 84723590 4586 +55245 84728176 4520 +55246 84732696 212 +55247 84732908 2576 +55248 84735484 1850 +55249 84737334 1784 +55250 84739118 416 +55251 84739534 3074 +55252 84742608 3074 +55253 84745682 3074 +55254 84748756 3062 +55255 84751818 3062 +55256 84754880 3062 +55257 84757942 824 +55258 84758766 794 +55259 84759560 812 +55260 84760372 2714 +55261 84763086 2732 +55262 84765818 1124 +55263 84766942 1136 +55264 84768078 1124 +55265 84769202 1124 +55266 84770326 1124 +55267 84771450 1124 +55268 84772574 1130 +55269 84773704 1142 +55270 84774846 1136 +55271 84775982 1124 +55272 84777106 1130 +55273 84778236 1124 +55274 84779360 2456 +55275 84781816 1478 +55276 84783294 728 +55277 84784022 728 +55278 84784750 320 +55279 84785070 2924 +55280 84787994 3962 +55281 84791956 2324 +55282 84794280 1808 +55283 84796088 4196 +55284 84800284 2858 +55285 84803142 4592 +55286 84807734 6626 +55287 84814360 6626 +55288 84820986 6626 +55289 84827612 6626 +55290 84834238 5072 +55291 84839310 5072 +55292 84844382 5072 +55293 84849454 5072 +55294 84854526 5072 +55295 84859598 5072 +55296 84864670 5072 +55297 84869742 5072 +55298 84874814 758 +55299 84875572 758 +55300 84876330 758 +55301 84877088 758 +55302 84877846 758 +55303 84878604 758 +55304 84879362 758 +55305 84880120 758 +55306 84880878 3902 +55307 84884780 818 +55308 84885598 818 +55309 84886416 818 +55310 84887234 818 +55311 84888052 818 +55312 84888870 818 +55313 84889688 926 +55314 84890614 926 +55315 84891540 926 +55316 84892466 926 +55317 84893392 926 +55318 84894318 926 +55319 84895244 896 +55320 84896140 896 +55321 84897036 896 +55322 84897932 896 +55323 84898828 896 +55324 84899724 896 +55325 84900620 3902 +55326 84904522 3902 +55327 84908424 3902 +55328 84912326 3902 +55329 84916228 3902 +55330 84920130 1532 +55331 84921662 764 +55332 84922426 764 +55333 84923190 470 +55334 84923660 2600 +55335 84926260 1232 +55336 84927492 440 +55337 84927932 1670 +55338 84929602 1112 +55339 84930714 1106 +55340 84931820 1106 +55341 84932926 1106 +55342 84934032 1112 +55343 84935144 1106 +55344 84936250 1106 +55345 84937356 1106 +55346 84938462 1112 +55347 84939574 1106 +55348 84940680 1106 +55349 84941786 1106 +55350 84942892 1112 +55351 84944004 1106 +55352 84945110 1106 +55353 84946216 1106 +55354 84947322 1112 +55355 84948434 1106 +55356 84949540 1106 +55357 84950646 1106 +55358 84951752 1112 +55359 84952864 1106 +55360 84953970 1106 +55361 84955076 1106 +55362 84956182 2114 +55363 84958296 1340 +55364 84959636 1268 +55365 84960904 1292 +55366 84962196 2132 +55367 84964328 1946 +55368 84966274 1124 +55369 84967398 956 +55370 84968354 4466 +55371 84972820 2264 +55372 84975084 2948 +55373 84978032 2948 +55374 84980980 2906 +55375 84983886 2906 +55376 84986792 2372 +55377 84989164 1862 +55378 84991026 2906 +55379 84993932 2900 +55380 84996832 2426 +55381 84999258 2378 +55382 85001636 1868 +55383 85003504 2270 +55384 85005774 284 +55385 85006058 284 +55386 85006342 284 +55387 85006626 284 +55388 85006910 284 +55389 85007194 1358 +55390 85008552 2252 +55391 85010804 2264 +55392 85013068 1214 +55393 85014282 1214 +55394 85015496 584 +55395 85016080 2810 +55396 85018890 2144 +55397 85021034 2144 +55398 85023178 2144 +55399 85025322 614 +55400 85025936 590 +55401 85026526 614 +55402 85027140 590 +55403 85027730 572 +55404 85028302 272 +55405 85028574 3026 +55406 85031600 1244 +55407 85032844 1484 +55408 85034328 1322 +55409 85035650 1520 +55410 85037170 1532 +55411 85038702 1520 +55412 85040222 1532 +55413 85041754 1520 +55414 85043274 1532 +55415 85044806 1520 +55416 85046326 1532 +55417 85047858 908 +55418 85048766 884 +55419 85049650 908 +55420 85050558 884 +55421 85051442 2096 +55422 85053538 6158 +55423 85059696 74 +55424 85059770 1430 +55425 85061200 128 +55426 85061328 140 +55427 85061468 152 +55428 85061620 152 +55429 85061772 152 +55430 85061924 3662 +55431 85065586 1724 +55432 85067310 1730 +55433 85069040 1700 +55434 85070740 1700 +55435 85072440 1724 +55436 85074164 1670 +55437 85075834 800 +55438 85076634 410 +55439 85077044 1622 +55440 85078666 2162 +55441 85080828 3338 +55442 85084166 3338 +55443 85087504 3338 +55444 85090842 3338 +55445 85094180 3338 +55446 85097518 3338 +55447 85100856 3344 +55448 85104200 3344 +55449 85107544 3344 +55450 85110888 3344 +55451 85114232 3344 +55452 85117576 3344 +55453 85120920 1226 +55454 85122146 1604 +55455 85123750 632 +55456 85124382 380 +55457 85124762 2294 +55458 85127056 620 +55459 85127676 620 +55460 85128296 1730 +55461 85130026 2576 +55462 85132602 2576 +55463 85135178 2576 +55464 85137754 2576 +55465 85140330 1826 +55466 85142156 1826 +55467 85143982 1832 +55468 85145814 2390 +55469 85148204 3014 +55470 85151218 1022 +55471 85152240 68 +55472 85152308 794 +55473 85153102 578 +55474 85153680 974 +55475 85154654 974 +55476 85155628 974 +55477 85156602 974 +55478 85157576 974 +55479 85158550 974 +55480 85159524 1112 +55481 85160636 584 +55482 85161220 638 +55483 85161858 584 +55484 85162442 638 +55485 85163080 2258 +55486 85165338 2258 +55487 85167596 1370 +55488 85168966 1370 +55489 85170336 2132 +55490 85172468 68 +55491 85172536 794 +55492 85173330 578 +55493 85173908 1274 +55494 85175182 1232 +55495 85176414 3860 +55496 85180274 3854 +55497 85184128 1670 +55498 85185798 3434 +55499 85189232 2468 +55500 85191700 2492 +55501 85194192 620 +55502 85194812 656 +55503 85195468 842 +55504 85196310 800 +55505 85197110 572 +55506 85197682 2096 +55507 85199778 2282 +55508 85202060 2294 +55509 85204354 2282 +55510 85206636 2288 +55511 85208924 2282 +55512 85211206 2294 +55513 85213500 2060 +55514 85215560 3440 +55515 85219000 3440 +55516 85222440 1928 +55517 85224368 686 +55518 85225054 1928 +55519 85226982 686 +55520 85227668 1928 +55521 85229596 686 +55522 85230282 1928 +55523 85232210 686 +55524 85232896 2066 +55525 85234962 2066 +55526 85237028 158 +55527 85237186 164 +55528 85237350 908 +55529 85238258 854 +55530 85239112 812 +55531 85239924 1681 +55532 85241605 446 +55533 85242051 992 +55534 85243043 1568 +55535 85244611 2330 +55536 85246941 2384 +55537 85249325 2342 +55538 85251667 386 +55539 85252053 386 +55540 85252439 386 +55541 85252825 386 +55542 85253211 1610 +55543 85254821 1610 +55544 85256431 1802 +55545 85258233 1802 +55546 85260035 1802 +55547 85261837 1610 +55548 85263447 386 +55549 85263833 386 +55550 85264219 1244 +55551 85265463 1736 +55552 85267199 1736 +55553 85268935 1388 +55554 85270323 1388 +55555 85271711 986 +55556 85272697 986 +55557 85273683 680 +55558 85274363 740 +55559 85275103 518 +55560 85275621 4226 +55561 85279847 1676 +55562 85281523 932 +55563 85282455 1154 +55564 85283609 1130 +55565 85284739 1046 +55566 85285785 1514 +55567 85287299 1214 +55568 85288513 1214 +55569 85289727 362 +55570 85290089 2012 +55571 85292101 2006 +55572 85294107 2000 +55573 85296107 1196 +55574 85297303 3296 +55575 85300599 590 +55576 85301189 1664 +55577 85302853 1586 +55578 85304439 1658 +55579 85306097 1646 +55580 85307743 2780 +55581 85310523 1700 +55582 85312223 1064 +55583 85313287 1022 +55584 85314309 1310 +55585 85315619 1310 +55586 85316929 1556 +55587 85318485 1556 +55588 85320041 2552 +55589 85322593 2558 +55590 85325151 2546 +55591 85327697 2564 +55592 85330261 998 +55593 85331259 998 +55594 85332257 1352 +55595 85333609 1352 +55596 85334961 1286 +55597 85336247 1286 +55598 85337533 632 +55599 85338165 632 +55600 85338797 3020 +55601 85341817 3014 +55602 85344831 3008 +55603 85347839 3008 +55604 85350847 1238 +55605 85352085 2276 +55606 85354361 926 +55607 85355287 2366 +55608 85357653 932 +55609 85358585 2276 +55610 85360861 926 +55611 85361787 1208 +55612 85362995 1208 +55613 85364203 1208 +55614 85365411 1208 +55615 85366619 1208 +55616 85367827 1208 +55617 85369035 1550 +55618 85370585 1550 +55619 85372135 890 +55620 85373025 1760 +55621 85374785 1760 +55622 85376545 1760 +55623 85378305 518 +55624 85378823 1310 +55625 85380133 2354 +55626 85382487 1784 +55627 85384271 3248 +55628 85387519 380 +55629 85387899 380 +55630 85388279 380 +55631 85388659 380 +55632 85389039 380 +55633 85389419 380 +55634 85389799 380 +55635 85390179 380 +55636 85390559 380 +55637 85390939 380 +55638 85391319 380 +55639 85391699 380 +55640 85392079 626 +55641 85392705 662 +55642 85393367 626 +55643 85393993 662 +55644 85394655 1190 +55645 85395845 1178 +55646 85397023 1196 +55647 85398219 1190 +55648 85399409 1526 +55649 85400935 1520 +55650 85402455 1526 +55651 85403981 1520 +55652 85405501 1526 +55653 85407027 1532 +55654 85408559 1526 +55655 85410085 1520 +55656 85411605 464 +55657 85412069 2648 +55658 85414717 2828 +55659 85417545 2822 +55660 85420367 1574 +55661 85421941 620 +55662 85422561 632 +55663 85423193 632 +55664 85423825 632 +55665 85424457 632 +55666 85425089 614 +55667 85425703 632 +55668 85426335 632 +55669 85426967 632 +55670 85427599 1850 +55671 85429449 1334 +55672 85430783 2192 +55673 85432975 2516 +55674 85435491 980 +55675 85436471 980 +55676 85437451 1376 +55677 85438827 1364 +55678 85440191 566 +55679 85440757 614 +55680 85441371 2504 +55681 85443875 2432 +55682 85446307 1316 +55683 85447623 2588 +55684 85450211 2582 +55685 85452793 5726 +55686 85458519 1988 +55687 85460507 212 +55688 85460719 1070 +55689 85461789 650 +55690 85462439 2420 +55691 85464859 2408 +55692 85467267 986 +55693 85468253 1520 +55694 85469773 1520 +55695 85471293 1520 +55696 85472813 740 +55697 85473553 734 +55698 85474287 1520 +55699 85475807 1520 +55700 85477327 1520 +55701 85478847 1544 +55702 85480391 1544 +55703 85481935 1538 +55704 85483473 884 +55705 85484357 2828 +55706 85487185 4256 +55707 85491441 2834 +55708 85494275 3776 +55709 85498051 1346 +55710 85499397 1328 +55711 85500725 1952 +55712 85502677 296 +55713 85502973 296 +55714 85503269 2636 +55715 85505905 512 +55716 85506417 506 +55717 85506923 602 +55718 85507525 3728 +55719 85511253 3728 +55720 85514981 332 +55721 85515313 986 +55722 85516299 860 +55723 85517159 344 +55724 85517503 914 +55725 85518417 392 +55726 85518809 296 +55727 85519105 302 +55728 85519407 896 +55729 85520303 890 +55730 85521193 2804 +55731 85523997 2702 +55732 85526699 2708 +55733 85529407 1526 +55734 85530933 1538 +55735 85532471 1550 +55736 85534021 1526 +55737 85535547 2000 +55738 85537547 2000 +55739 85539547 2012 +55740 85541559 2000 +55741 85543559 2000 +55742 85545559 2012 +55743 85547571 398 +55744 85547969 656 +55745 85548625 896 +55746 85549521 464 +55747 85549985 656 +55748 85550641 896 +55749 85551537 464 +55750 85552001 902 +55751 85552903 716 +55752 85553619 1022 +55753 85554641 1022 +55754 85555663 1022 +55755 85556685 1022 +55756 85557707 1304 +55757 85559011 902 +55758 85559913 3596 +55759 85563509 668 +55760 85564177 632 +55761 85564809 2696 +55762 85567505 1748 +55763 85569253 1886 +55764 85571139 1898 +55765 85573037 1886 +55766 85574923 1898 +55767 85576821 2804 +55768 85579625 2504 +55769 85582129 704 +55770 85582833 686 +55771 85583519 2474 +55772 85585993 1790 +55773 85587783 1796 +55774 85589579 1742 +55775 85591321 1784 +55776 85593105 1850 +55777 85594955 1868 +55778 85596823 1790 +55779 85598613 1874 +55780 85600487 1250 +55781 85601737 1250 +55782 85602987 1250 +55783 85604237 1250 +55784 85605487 1064 +55785 85606551 1052 +55786 85607603 1478 +55787 85609081 1490 +55788 85610571 1970 +55789 85612541 416 +55790 85612957 470 +55791 85613427 1148 +55792 85614575 1148 +55793 85615723 1148 +55794 85616871 1148 +55795 85618019 1148 +55796 85619167 1148 +55797 85620315 1334 +55798 85621649 1328 +55799 85622977 2210 +55800 85625187 2210 +55801 85627397 1568 +55802 85628965 2114 +55803 85631079 1514 +55804 85632593 350 +55805 85632943 344 +55806 85633287 350 +55807 85633637 218 +55808 85633855 362 +55809 85634217 212 +55810 85634429 698 +55811 85635127 698 +55812 85635825 3608 +55813 85639433 1850 +55814 85641283 1214 +55815 85642497 1214 +55816 85643711 572 +55817 85644283 560 +55818 85644843 572 +55819 85645415 560 +55820 85645975 572 +55821 85646547 560 +55822 85647107 4412 +55823 85651519 1166 +55824 85652685 1508 +55825 85654193 4412 +55826 85658605 1166 +55827 85659771 1508 +55828 85661279 4412 +55829 85665691 1166 +55830 85666857 1508 +55831 85668365 4412 +55832 85672777 1166 +55833 85673943 1508 +55834 85675451 1118 +55835 85676569 1118 +55836 85677687 1142 +55837 85678829 1130 +55838 85679959 1826 +55839 85681785 1340 +55840 85683125 1274 +55841 85684399 1292 +55842 85685691 1346 +55843 85687037 1274 +55844 85688311 1304 +55845 85689615 2432 +55846 85692047 2432 +55847 85694479 866 +55848 85695345 860 +55849 85696205 518 +55850 85696723 2906 +55851 85699629 398 +55852 85700027 332 +55853 85700359 356 +55854 85700715 506 +55855 85701221 356 +55856 85701577 356 +55857 85701933 284 +55858 85702217 278 +55859 85702495 1694 +55860 85704189 1688 +55861 85705877 1658 +55862 85707535 1604 +55863 85709139 1748 +55864 85710887 1748 +55865 85712635 1046 +55866 85713681 1046 +55867 85714727 524 +55868 85715251 512 +55869 85715763 530 +55870 85716293 512 +55871 85716805 668 +55872 85717473 674 +55873 85718147 668 +55874 85718815 674 +55875 85719489 668 +55876 85720157 674 +55877 85720831 668 +55878 85721499 674 +55879 85722173 2660 +55880 85724833 2660 +55881 85727493 638 +55882 85728131 692 +55883 85728823 638 +55884 85729461 632 +55885 85730093 632 +55886 85730725 638 +55887 85731363 638 +55888 85732001 638 +55889 85732639 1328 +55890 85733967 1328 +55891 85735295 464 +55892 85735759 1940 +55893 85737699 518 +55894 85738217 32 +55895 85738249 1520 +55896 85739769 2978 +55897 85742747 590 +55898 85743337 2540 +55899 85745877 1838 +55900 85747715 1766 +55901 85749481 2006 +55902 85751487 2012 +55903 85753499 2018 +55904 85755517 2006 +55905 85757523 2006 +55906 85759529 1130 +55907 85760659 2408 +55908 85763067 2408 +55909 85765475 1058 +55910 85766533 1016 +55911 85767549 1178 +55912 85768727 1178 +55913 85769905 14161 +55914 85784066 14161 +55915 85798227 14161 +55916 85812388 14161 +55917 85826549 1082 +55918 85827631 728 +55919 85828359 716 +55920 85829075 734 +55921 85829809 5786 +55922 85835595 2420 +55923 85838015 1178 +55924 85839193 554 +55925 85839747 734 +55926 85840481 716 +55927 85841197 1856 +55928 85843053 80 +55929 85843133 1220 +55930 85844353 1712 +55931 85846065 1712 +55932 85847777 1718 +55933 85849495 1718 +55934 85851213 1718 +55935 85852931 1718 +55936 85854649 1640 +55937 85856289 1568 +55938 85857857 1574 +55939 85859431 1640 +55940 85861071 1568 +55941 85862639 1574 +55942 85864213 1046 +55943 85865259 2966 +55944 85868225 2966 +55945 85871191 1472 +55946 85872663 1472 +55947 85874135 1496 +55948 85875631 1496 +55949 85877127 1052 +55950 85878179 2408 +55951 85880587 1796 +55952 85882383 1796 +55953 85884179 2900 +55954 85887079 902 +55955 85887981 2972 +55956 85890953 2222 +55957 85893175 2990 +55958 85896165 1502 +55959 85897667 1502 +55960 85899169 1298 +55961 85900467 1298 +55962 85901765 1298 +55963 85903063 1298 +55964 85904361 3212 +55965 85907573 1436 +55966 85909009 1490 +55967 85910499 1418 +55968 85911917 1484 +55969 85913401 1448 +55970 85914849 1484 +55971 85916333 1448 +55972 85917781 1490 +55973 85919271 1514 +55974 85920785 1490 +55975 85922275 1478 +55976 85923753 1478 +55977 85925231 2432 +55978 85927663 2420 +55979 85930083 2414 +55980 85932497 2384 +55981 85934881 1628 +55982 85936509 1832 +55983 85938341 1628 +55984 85939969 1808 +55985 85941777 1628 +55986 85943405 1820 +55987 85945225 1628 +55988 85946853 1832 +55989 85948685 3794 +55990 85952479 3794 +55991 85956273 3794 +55992 85960067 3794 +55993 85963861 3836 +55994 85967697 3836 +55995 85971533 3836 +55996 85975369 3836 +55997 85979205 722 +55998 85979927 38 +55999 85979965 1202 +56000 85981167 1346 +56001 85982513 1346 +56002 85983859 1346 +56003 85985205 1346 +56004 85986551 2000 +56005 85988551 1940 +56006 85990491 1928 +56007 85992419 674 +56008 85993093 674 +56009 85993767 1904 +56010 85995671 1922 +56011 85997593 1916 +56012 85999509 1916 +56013 86001425 1904 +56014 86003329 1916 +56015 86005245 962 +56016 86006207 968 +56017 86007175 1640 +56018 86008815 548 +56019 86009363 542 +56020 86009905 2600 +56021 86012505 2600 +56022 86015105 434 +56023 86015539 434 +56024 86015973 434 +56025 86016407 608 +56026 86017015 656 +56027 86017671 656 +56028 86018327 1250 +56029 86019577 182 +56030 86019759 182 +56031 86019941 182 +56032 86020123 182 +56033 86020305 182 +56034 86020487 182 +56035 86020669 2018 +56036 86022687 2042 +56037 86024729 2030 +56038 86026759 2048 +56039 86028807 2024 +56040 86030831 2030 +56041 86032861 290 +56042 86033151 1322 +56043 86034473 1322 +56044 86035795 1796 +56045 86037591 1808 +56046 86039399 4424 +56047 86043823 2618 +56048 86046441 1352 +56049 86047793 206 +56050 86047999 992 +56051 86048991 926 +56052 86049917 1076 +56053 86050993 1064 +56054 86052057 110 +56055 86052167 110 +56056 86052277 110 +56057 86052387 110 +56058 86052497 110 +56059 86052607 110 +56060 86052717 2816 +56061 86055533 818 +56062 86056351 2462 +56063 86058813 1118 +56064 86059931 1118 +56065 86061049 2384 +56066 86063433 2384 +56067 86065817 2384 +56068 86068201 2384 +56069 86070585 2384 +56070 86072969 2384 +56071 86075353 2384 +56072 86077737 2384 +56073 86080121 2384 +56074 86082505 2384 +56075 86084889 2384 +56076 86087273 2384 +56077 86089657 2384 +56078 86092041 2384 +56079 86094425 2384 +56080 86096809 2384 +56081 86099193 2384 +56082 86101577 2384 +56083 86103961 2618 +56084 86106579 2618 +56085 86109197 1028 +56086 86110225 398 +56087 86110623 404 +56088 86111027 404 +56089 86111431 404 +56090 86111835 386 +56091 86112221 1520 +56092 86113741 1520 +56093 86115261 1520 +56094 86116781 1520 +56095 86118301 2876 +56096 86121177 2870 +56097 86124047 860 +56098 86124907 860 +56099 86125767 854 +56100 86126621 848 +56101 86127469 2216 +56102 86129685 2222 +56103 86131907 2216 +56104 86134123 2222 +56105 86136345 2384 +56106 86138729 2384 +56107 86141113 2384 +56108 86143497 2384 +56109 86145881 2384 +56110 86148265 2384 +56111 86150649 2384 +56112 86153033 2384 +56113 86155417 2384 +56114 86157801 2384 +56115 86160185 2384 +56116 86162569 2384 +56117 86164953 1430 +56118 86166383 536 +56119 86166919 1346 +56120 86168265 1418 +56121 86169683 4748 +56122 86174431 7052 +56123 86181483 470 +56124 86181953 1820 +56125 86183773 326 +56126 86184099 1826 +56127 86185925 1802 +56128 86187727 1796 +56129 86189523 1820 +56130 86191343 1808 +56131 86193151 1580 +56132 86194731 1214 +56133 86195945 284 +56134 86196229 686 +56135 86196915 1652 +56136 86198567 584 +56137 86199151 488 +56138 86199639 644 +56139 86200283 560 +56140 86200843 572 +56141 86201415 530 +56142 86201945 644 +56143 86202589 566 +56144 86203155 1628 +56145 86204783 62 +56146 86204845 578 +56147 86205423 740 +56148 86206163 3194 +56149 86209357 1958 +56150 86211315 1958 +56151 86213273 470 +56152 86213743 470 +56153 86214213 470 +56154 86214683 470 +56155 86215153 470 +56156 86215623 470 +56157 86216093 470 +56158 86216563 470 +56159 86217033 470 +56160 86217503 470 +56161 86217973 290 +56162 86218263 308 +56163 86218571 1604 +56164 86220175 2618 +56165 86222793 2576 +56166 86225369 2534 +56167 86227903 2456 +56168 86230359 1556 +56169 86231915 1964 +56170 86233879 1910 +56171 86235789 1346 +56172 86237135 1394 +56173 86238529 32 +56174 86238561 794 +56175 86239355 3866 +56176 86243221 3956 +56177 86247177 1616 +56178 86248793 914 +56179 86249707 1262 +56180 86250969 1796 +56181 86252765 1796 +56182 86254561 1796 +56183 86256357 1202 +56184 86257559 1202 +56185 86258761 1202 +56186 86259963 1244 +56187 86261207 1292 +56188 86262499 896 +56189 86263395 776 +56190 86264171 776 +56191 86264947 440 +56192 86265387 2234 +56193 86267621 326 +56194 86267947 2216 +56195 86270163 2006 +56196 86272169 326 +56197 86272495 2216 +56198 86274711 2006 +56199 86276717 1496 +56200 86278213 1520 +56201 86279733 1472 +56202 86281205 1472 +56203 86282677 1592 +56204 86284269 7274 +56205 86291543 266 +56206 86291809 1748 +56207 86293557 1724 +56208 86295281 1748 +56209 86297029 1724 +56210 86298753 1016 +56211 86299769 1010 +56212 86300779 1010 +56213 86301789 1010 +56214 86302799 1016 +56215 86303815 1010 +56216 86304825 1010 +56217 86305835 1010 +56218 86306845 1016 +56219 86307861 1010 +56220 86308871 1010 +56221 86309881 1010 +56222 86310891 86 +56223 86310977 764 +56224 86311741 1046 +56225 86312787 1286 +56226 86314073 1304 +56227 86315377 5108 +56228 86320485 764 +56229 86321249 764 +56230 86322013 5108 +56231 86327121 1268 +56232 86328389 1268 +56233 86329657 1268 +56234 86330925 1268 +56235 86332193 470 +56236 86332663 470 +56237 86333133 2474 +56238 86335607 2474 +56239 86338081 470 +56240 86338551 524 +56241 86339075 524 +56242 86339599 2408 +56243 86342007 2432 +56244 86344439 2408 +56245 86346847 2438 +56246 86349285 2420 +56247 86351705 2252 +56248 86353957 2252 +56249 86356209 4514 +56250 86360723 4532 +56251 86365255 4514 +56252 86369769 5132 +56253 86374901 1166 +56254 86376067 218 +56255 86376285 218 +56256 86376503 236 +56257 86376739 5156 +56258 86381895 878 +56259 86382773 218 +56260 86382991 218 +56261 86383209 236 +56262 86383445 464 +56263 86383909 368 +56264 86384277 3938 +56265 86388215 3956 +56266 86392171 1358 +56267 86393529 1358 +56268 86394887 1358 +56269 86396245 1358 +56270 86397603 4526 +56271 86402129 5060 +56272 86407189 1226 +56273 86408415 1226 +56274 86409641 182 +56275 86409823 182 +56276 86410005 182 +56277 86410187 182 +56278 86410369 182 +56279 86410551 182 +56280 86410733 1292 +56281 86412025 4520 +56282 86416545 4514 +56283 86421059 758 +56284 86421817 368 +56285 86422185 80 +56286 86422265 1844 +56287 86424109 1256 +56288 86425365 842 +56289 86426207 842 +56290 86427049 1652 +56291 86428701 1652 +56292 86430353 2132 +56293 86432485 2360 +56294 86434845 2336 +56295 86437181 2360 +56296 86439541 2342 +56297 86441883 2354 +56298 86444237 2360 +56299 86446597 2342 +56300 86448939 2348 +56301 86451287 2342 +56302 86453629 2342 +56303 86455971 2360 +56304 86458331 2348 +56305 86460679 2360 +56306 86463039 2348 +56307 86465387 2360 +56308 86467747 2360 +56309 86470107 2342 +56310 86472449 2360 +56311 86474809 2360 +56312 86477169 2360 +56313 86479529 698 +56314 86480227 728 +56315 86480955 632 +56316 86481587 548 +56317 86482135 1166 +56318 86483301 1166 +56319 86484467 1628 +56320 86486095 1628 +56321 86487723 1628 +56322 86489351 1628 +56323 86490979 1208 +56324 86492187 1280 +56325 86493467 2612 +56326 86496079 2708 +56327 86498787 1280 +56328 86500067 950 +56329 86501017 950 +56330 86501967 1670 +56331 86503637 590 +56332 86504227 1658 +56333 86505885 1364 +56334 86507249 1262 +56335 86508511 2828 +56336 86511339 2414 +56337 86513753 2378 +56338 86516131 1586 +56339 86517717 1586 +56340 86519303 1586 +56341 86520889 1586 +56342 86522475 1586 +56343 86524061 182 +56344 86524243 2209 +56345 86526452 656 +56346 86527108 1316 +56347 86528424 1352 +56348 86529776 1784 +56349 86531560 1784 +56350 86533344 1784 +56351 86535128 1724 +56352 86536852 1724 +56353 86538576 1724 +56354 86540300 674 +56355 86540974 1208 +56356 86542182 1208 +56357 86543390 2048 +56358 86545438 2048 +56359 86547486 2048 +56360 86549534 2048 +56361 86551582 2048 +56362 86553630 2048 +56363 86555678 2048 +56364 86557726 2048 +56365 86559774 6956 +56366 86566730 6734 +56367 86573464 3236 +56368 86576700 596 +56369 86577296 1766 +56370 86579062 1766 +56371 86580828 1766 +56372 86582594 1766 +56373 86584360 74 +56374 86584434 74 +56375 86584508 1766 +56376 86586274 1766 +56377 86588040 1766 +56378 86589806 1766 +56379 86591572 1232 +56380 86592804 1232 +56381 86594036 1232 +56382 86595268 1232 +56383 86596500 1766 +56384 86598266 1766 +56385 86600032 1766 +56386 86601798 1766 +56387 86603564 1094 +56388 86604658 1088 +56389 86605746 920 +56390 86606666 920 +56391 86607586 3290 +56392 86610876 3296 +56393 86614172 2708 +56394 86616880 4568 +56395 86621448 2708 +56396 86624156 4568 +56397 86628724 1610 +56398 86630334 1436 +56399 86631770 1160 +56400 86632930 1160 +56401 86634090 920 +56402 86635010 3170 +56403 86638180 3170 +56404 86641350 6158 +56405 86647508 6188 +56406 86653696 6176 +56407 86659872 80 +56408 86659952 6164 +56409 86666116 56 +56410 86666172 6086 +56411 86672258 1034 +56412 86673292 1862 +56413 86675154 1934 +56414 86677088 1940 +56415 86679028 2000 +56416 86681028 2018 +56417 86683046 410 +56418 86683456 1958 +56419 86685414 404 +56420 86685818 2048 +56421 86687866 602 +56422 86688468 602 +56423 86689070 1670 +56424 86690740 668 +56425 86691408 668 +56426 86692076 1214 +56427 86693290 1208 +56428 86694498 584 +56429 86695082 524 +56430 86695606 524 +56431 86696130 1202 +56432 86697332 1202 +56433 86698534 1202 +56434 86699736 1646 +56435 86701382 1628 +56436 86703010 1664 +56437 86704674 2348 +56438 86707022 2342 +56439 86709364 2024 +56440 86711388 2720 +56441 86714108 2696 +56442 86716804 1280 +56443 86718084 1292 +56444 86719376 104 +56445 86719480 104 +56446 86719584 104 +56447 86719688 104 +56448 86719792 104 +56449 86719896 104 +56450 86720000 104 +56451 86720104 104 +56452 86720208 104 +56453 86720312 104 +56454 86720416 2708 +56455 86723124 2690 +56456 86725814 2684 +56457 86728498 2690 +56458 86731188 188 +56459 86731376 188 +56460 86731564 188 +56461 86731752 4550 +56462 86736302 4544 +56463 86740846 4556 +56464 86745402 2390 +56465 86747792 2420 +56466 86750212 2390 +56467 86752602 2420 +56468 86755022 2390 +56469 86757412 2420 +56470 86759832 1766 +56471 86761598 1766 +56472 86763364 1766 +56473 86765130 1778 +56474 86766908 1778 +56475 86768686 1778 +56476 86770464 1778 +56477 86772242 1778 +56478 86774020 1778 +56479 86775798 1784 +56480 86777582 1784 +56481 86779366 1784 +56482 86781150 1292 +56483 86782442 986 +56484 86783428 2708 +56485 86786136 4568 +56486 86790704 2084 +56487 86792788 2084 +56488 86794872 2084 +56489 86796956 2084 +56490 86799040 2108 +56491 86801148 2108 +56492 86803256 2048 +56493 86805304 2048 +56494 86807352 2228 +56495 86809580 236 +56496 86809816 332 +56497 86810148 374 +56498 86810522 332 +56499 86810854 290 +56500 86811144 920 +56501 86812064 236 +56502 86812300 332 +56503 86812632 374 +56504 86813006 332 +56505 86813338 290 +56506 86813628 920 +56507 86814548 1580 +56508 86816128 1538 +56509 86817666 932 +56510 86818598 3086 +56511 86821684 3116 +56512 86824800 458 +56513 86825258 446 +56514 86825704 458 +56515 86826162 434 +56516 86826596 2066 +56517 86828662 2042 +56518 86830704 770 +56519 86831474 206 +56520 86831680 260 +56521 86831940 4040 +56522 86835980 3464 +56523 86839444 6757 +56524 86846201 3332 +56525 86849533 758 +56526 86850291 1334 +56527 86851625 470 +56528 86852095 578 +56529 86852673 806 +56530 86853479 1250 +56531 86854729 788 +56532 86855517 2084 +56533 86857601 1916 +56534 86859517 1982 +56535 86861499 428 +56536 86861927 386 +56537 86862313 506 +56538 86862819 350 +56539 86863169 386 +56540 86863555 428 +56541 86863983 2288 +56542 86866271 1136 +56543 86867407 608 +56544 86868015 2036 +56545 86870051 542 +56546 86870593 632 +56547 86871225 2696 +56548 86873921 1292 +56549 86875213 284 +56550 86875497 1712 +56551 86877209 2312 +56552 86879521 1460 +56553 86880981 1694 +56554 86882675 1442 +56555 86884117 614 +56556 86884731 1130 +56557 86885861 1256 +56558 86887117 1172 +56559 86888289 1106 +56560 86889395 1244 +56561 86890639 776 +56562 86891415 1058 +56563 86892473 1046 +56564 86893519 962 +56565 86894481 866 +56566 86895347 950 +56567 86896297 926 +56568 86897223 884 +56569 86898107 620 +56570 86898727 740 +56571 86899467 638 +56572 86900105 368 +56573 86900473 770 +56574 86901243 206 +56575 86901449 260 +56576 86901709 4040 +56577 86905749 3464 +56578 86909213 6757 +56579 86915970 3332 +56580 86919302 758 +56581 86920060 1334 +56582 86921394 470 +56583 86921864 578 +56584 86922442 806 +56585 86923248 1250 +56586 86924498 788 +56587 86925286 2084 +56588 86927370 1916 +56589 86929286 1982 +56590 86931268 428 +56591 86931696 386 +56592 86932082 506 +56593 86932588 350 +56594 86932938 386 +56595 86933324 428 +56596 86933752 2288 +56597 86936040 1136 +56598 86937176 608 +56599 86937784 2036 +56600 86939820 542 +56601 86940362 632 +56602 86940994 2696 +56603 86943690 1292 +56604 86944982 1712 +56605 86946694 2312 +56606 86949006 1460 +56607 86950466 1694 +56608 86952160 1442 +56609 86953602 614 +56610 86954216 1130 +56611 86955346 1256 +56612 86956602 1172 +56613 86957774 1106 +56614 86958880 1244 +56615 86960124 776 +56616 86960900 1058 +56617 86961958 1046 +56618 86963004 962 +56619 86963966 866 +56620 86964832 950 +56621 86965782 926 +56622 86966708 884 +56623 86967592 620 +56624 86968212 740 +56625 86968952 638 +56626 86969590 368 +56627 86969958 284 +56628 86970242 674 +56629 86970916 674 +56630 86971590 662 +56631 86972252 650 +56632 86972902 674 +56633 86973576 674 +56634 86974250 644 +56635 86974894 650 +56636 86975544 638 +56637 86976182 620 +56638 86976802 656 +56639 86977458 644 +56640 86978102 626 +56641 86978728 638 +56642 86979366 656 +56643 86980022 650 +56644 86980672 1814 +56645 86982486 2180 +56646 86984666 2114 +56647 86986780 1316 +56648 86988096 4370 +56649 86992466 1736 +56650 86994202 1724 +56651 86995926 1724 +56652 86997650 1700 +56653 86999350 374 +56654 86999724 344 +56655 87000068 98 +56656 87000166 500 +56657 87000666 530 +56658 87001196 674 +56659 87001870 1358 +56660 87003228 1358 +56661 87004586 710 +56662 87005296 1394 +56663 87006690 1424 +56664 87008114 1328 +56665 87009442 854 +56666 87010296 752 +56667 87011048 884 +56668 87011932 776 +56669 87012708 884 +56670 87013592 776 +56671 87014368 3704 +56672 87018072 3704 +56673 87021776 3704 +56674 87025480 4064 +56675 87029544 4064 +56676 87033608 4064 +56677 87037672 1232 +56678 87038904 1214 +56679 87040118 986 +56680 87041104 590 +56681 87041694 932 +56682 87042626 794 +56683 87043420 776 +56684 87044196 602 +56685 87044798 710 +56686 87045508 824 +56687 87046332 668 +56688 87047000 368 +56689 87047368 536 +56690 87047904 542 +56691 87048446 506 +56692 87048952 404 +56693 87049356 476 +56694 87049832 500 +56695 87050332 1658 +56696 87051990 1250 +56697 87053240 1244 +56698 87054484 1070 +56699 87055554 1064 +56700 87056618 878 +56701 87057496 740 +56702 87058236 884 +56703 87059120 854 +56704 87059974 752 +56705 87060726 710 +56706 87061436 692 +56707 87062128 716 +56708 87062844 620 +56709 87063464 680 +56710 87064144 542 +56711 87064686 614 +56712 87065300 464 +56713 87065764 332 +56714 87066096 374 +56715 87066470 356 +56716 87066826 344 +56717 87067170 302 +56718 87067472 272 +56719 87067744 392 +56720 87068136 236 +56721 87068372 656 +56722 87069028 650 +56723 87069678 350 +56724 87070028 302 +56725 87070330 650 +56726 87070980 650 +56727 87071630 320 +56728 87071950 350 +56729 87072300 962 +56730 87073262 1034 +56731 87074296 1280 +56732 87075576 1280 +56733 87076856 2474 +56734 87079330 716 +56735 87080046 86 +56736 87080132 86 +56737 87080218 4640 +56738 87084858 4640 +56739 87089498 4640 +56740 87094138 572 +56741 87094710 578 +56742 87095288 500 +56743 87095788 500 +56744 87096288 1796 +56745 87098084 1382 +56746 87099466 68 +56747 87099534 1652 +56748 87101186 1646 +56749 87102832 2384 +56750 87105216 2384 +56751 87107600 638 +56752 87108238 620 +56753 87108858 50 +56754 87108908 626 +56755 87109534 56 +56756 87109590 1868 +56757 87111458 650 +56758 87112108 650 +56759 87112758 662 +56760 87113420 656 +56761 87114076 662 +56762 87114738 650 +56763 87115388 656 +56764 87116044 656 +56765 87116700 626 +56766 87117326 1364 +56767 87118690 18337 +56768 87137027 10274 +56769 87147301 16153 +56770 87163454 1046 +56771 87164500 860 +56772 87165360 854 +56773 87166214 758 +56774 87166972 770 +56775 87167742 32 +56776 87167774 2558 +56777 87170332 1430 +56778 87171762 1982 +56779 87173744 1982 +56780 87175726 1046 +56781 87176772 956 +56782 87177728 1274 +56783 87179002 1286 +56784 87180288 1280 +56785 87181568 5978 +56786 87187546 710 +56787 87188256 746 +56788 87189002 944 +56789 87189946 890 +56790 87190836 332 +56791 87191168 4580 +56792 87195748 758 +56793 87196506 4580 +56794 87201086 758 +56795 87201844 4580 +56796 87206424 758 +56797 87207182 4580 +56798 87211762 758 +56799 87212520 1358 +56800 87213878 1226 +56801 87215104 1358 +56802 87216462 1226 +56803 87217688 1514 +56804 87219202 1388 +56805 87220590 1382 +56806 87221972 1382 +56807 87223354 3356 +56808 87226710 3356 +56809 87230066 3356 +56810 87233422 872 +56811 87234294 1550 +56812 87235844 1550 +56813 87237394 1532 +56814 87238926 1532 +56815 87240458 1526 +56816 87241984 1526 +56817 87243510 1364 +56818 87244874 1364 +56819 87246238 2600 +56820 87248838 2600 +56821 87251438 2600 +56822 87254038 2600 +56823 87256638 2600 +56824 87259238 2600 +56825 87261838 2600 +56826 87264438 1562 +56827 87266000 1808 +56828 87267808 7880 +56829 87275688 470 +56830 87276158 1076 +56831 87277234 476 +56832 87277710 176 +56833 87277886 176 +56834 87278062 176 +56835 87278238 1628 +56836 87279866 1628 +56837 87281494 1628 +56838 87283122 818 +56839 87283940 1658 +56840 87285598 1652 +56841 87287250 2570 +56842 87289820 2570 +56843 87292390 1910 +56844 87294300 1916 +56845 87296216 560 +56846 87296776 542 +56847 87297318 566 +56848 87297884 566 +56849 87298450 560 +56850 87299010 566 +56851 87299576 506 +56852 87300082 2018 +56853 87302100 3644 +56854 87305744 1310 +56855 87307054 1310 +56856 87308364 902 +56857 87309266 824 +56858 87310090 902 +56859 87310992 824 +56860 87311816 926 +56861 87312742 164 +56862 87312906 1898 +56863 87314804 4274 +56864 87319078 2156 +56865 87321234 1088 +56866 87322322 230 +56867 87322552 380 +56868 87322932 1088 +56869 87324020 230 +56870 87324250 380 +56871 87324630 1844 +56872 87326474 1868 +56873 87328342 2900 +56874 87331242 2870 +56875 87334112 176 +56876 87334288 194 +56877 87334482 188 +56878 87334670 3182 +56879 87337852 650 +56880 87338502 848 +56881 87339350 818 +56882 87340168 848 +56883 87341016 848 +56884 87341864 848 +56885 87342712 848 +56886 87343560 848 +56887 87344408 5720 +56888 87350128 722 +56889 87350850 1364 +56890 87352214 1406 +56891 87353620 1418 +56892 87355038 1670 +56893 87356708 1670 +56894 87358378 3314 +56895 87361692 3314 +56896 87365006 56 +56897 87365062 836 +56898 87365898 626 +56899 87366524 8720 +56900 87375244 6884 +56901 87382128 1550 +56902 87383678 776 +56903 87384454 1262 +56904 87385716 500 +56905 87386216 1034 +56906 87387250 896 +56907 87388146 692 +56908 87388838 410 +56909 87389248 698 +56910 87389946 272 +56911 87390218 56 +56912 87390274 836 +56913 87391110 626 +56914 87391736 8720 +56915 87400456 6884 +56916 87407340 1550 +56917 87408890 776 +56918 87409666 1262 +56919 87410928 500 +56920 87411428 1034 +56921 87412462 896 +56922 87413358 692 +56923 87414050 410 +56924 87414460 698 +56925 87415158 272 +56926 87415430 56 +56927 87415486 836 +56928 87416322 626 +56929 87416948 8720 +56930 87425668 6884 +56931 87432552 1550 +56932 87434102 776 +56933 87434878 1262 +56934 87436140 500 +56935 87436640 1034 +56936 87437674 896 +56937 87438570 692 +56938 87439262 410 +56939 87439672 698 +56940 87440370 272 +56941 87440642 56 +56942 87440698 836 +56943 87441534 626 +56944 87442160 8720 +56945 87450880 6884 +56946 87457764 1550 +56947 87459314 776 +56948 87460090 1262 +56949 87461352 500 +56950 87461852 1034 +56951 87462886 896 +56952 87463782 692 +56953 87464474 410 +56954 87464884 698 +56955 87465582 272 +56956 87465854 692 +56957 87466546 692 +56958 87467238 3158 +56959 87470396 1598 +56960 87471994 1106 +56961 87473100 1124 +56962 87474224 1112 +56963 87475336 2990 +56964 87478326 2990 +56965 87481316 3536 +56966 87484852 1052 +56967 87485904 1046 +56968 87486950 2222 +56969 87489172 2210 +56970 87491382 1796 +56971 87493178 1796 +56972 87494974 1796 +56973 87496770 1796 +56974 87498566 830 +56975 87499396 800 +56976 87500196 188 +56977 87500384 188 +56978 87500572 3926 +56979 87504498 182 +56980 87504680 176 +56981 87504856 158 +56982 87505014 2582 +56983 87507596 1316 +56984 87508912 1328 +56985 87510240 7592 +56986 87517832 2498 +56987 87520330 1088 +56988 87521418 968 +56989 87522386 968 +56990 87523354 1070 +56991 87524424 890 +56992 87525314 884 +56993 87526198 836 +56994 87527034 848 +56995 87527882 836 +56996 87528718 848 +56997 87529566 842 +56998 87530408 836 +56999 87531244 848 +57000 87532092 836 +57001 87532928 848 +57002 87533776 842 +57003 87534618 2006 +57004 87536624 2012 +57005 87538636 2012 +57006 87540648 2012 +57007 87542660 2012 +57008 87544672 2012 +57009 87546684 2054 +57010 87548738 2054 +57011 87550792 2054 +57012 87552846 2060 +57013 87554906 2054 +57014 87556960 2054 +57015 87559014 2054 +57016 87561068 2054 +57017 87563122 2054 +57018 87565176 2012 +57019 87567188 2012 +57020 87569200 2012 +57021 87571212 2012 +57022 87573224 2012 +57023 87575236 2012 +57024 87577248 2054 +57025 87579302 2054 +57026 87581356 2054 +57027 87583410 2054 +57028 87585464 2012 +57029 87587476 2012 +57030 87589488 2012 +57031 87591500 2012 +57032 87593512 2012 +57033 87595524 2012 +57034 87597536 2012 +57035 87599548 2000 +57036 87601548 2018 +57037 87603566 2018 +57038 87605584 2018 +57039 87607602 2012 +57040 87609614 1982 +57041 87611596 2000 +57042 87613596 2000 +57043 87615596 1958 +57044 87617554 1988 +57045 87619542 1976 +57046 87621518 2678 +57047 87624196 2690 +57048 87626886 2318 +57049 87629204 2300 +57050 87631504 1406 +57051 87632910 704 +57052 87633614 680 +57053 87634294 1502 +57054 87635796 1502 +57055 87637298 1508 +57056 87638806 842 +57057 87639648 842 +57058 87640490 842 +57059 87641332 842 +57060 87642174 842 +57061 87643016 842 +57062 87643858 842 +57063 87644700 842 +57064 87645542 842 +57065 87646384 842 +57066 87647226 842 +57067 87648068 842 +57068 87648910 842 +57069 87649752 842 +57070 87650594 842 +57071 87651436 842 +57072 87652278 842 +57073 87653120 842 +57074 87653962 842 +57075 87654804 842 +57076 87655646 842 +57077 87656488 842 +57078 87657330 842 +57079 87658172 842 +57080 87659014 842 +57081 87659856 842 +57082 87660698 842 +57083 87661540 842 +57084 87662382 842 +57085 87663224 842 +57086 87664066 2294 +57087 87666360 2108 +57088 87668468 1994 +57089 87670462 2060 +57090 87672522 1988 +57091 87674510 2300 +57092 87676810 1184 +57093 87677994 188 +57094 87678182 188 +57095 87678370 764 +57096 87679134 770 +57097 87679904 1922 +57098 87681826 2870 +57099 87684696 2876 +57100 87687572 2384 +57101 87689956 6272 +57102 87696228 392 +57103 87696620 860 +57104 87697480 920 +57105 87698400 1742 +57106 87700142 1124 +57107 87701266 920 +57108 87702186 1124 +57109 87703310 1394 +57110 87704704 1340 +57111 87706044 842 +57112 87706886 1502 +57113 87708388 1490 +57114 87709878 1550 +57115 87711428 1526 +57116 87712954 3884 +57117 87716838 11581 +57118 87728419 11545 +57119 87739964 2300 +57120 87742264 2300 +57121 87744564 548 +57122 87745112 524 +57123 87745636 908 +57124 87746544 1592 +57125 87748136 1568 +57126 87749704 2186 +57127 87751890 2078 +57128 87753968 2120 +57129 87756088 2186 +57130 87758274 2102 +57131 87760376 2252 +57132 87762628 2240 +57133 87764868 2216 +57134 87767084 2210 +57135 87769294 2246 +57136 87771540 2246 +57137 87773786 2246 +57138 87776032 5210 +57139 87781242 2096 +57140 87783338 2024 +57141 87785362 2018 +57142 87787380 6145 +57143 87793525 6157 +57144 87799682 4508 +57145 87804190 4508 +57146 87808698 1340 +57147 87810038 1034 +57148 87811072 1148 +57149 87812220 1142 +57150 87813362 962 +57151 87814324 1610 +57152 87815934 1610 +57153 87817544 1610 +57154 87819154 1610 +57155 87820764 1610 +57156 87822374 1610 +57157 87823984 1490 +57158 87825474 800 +57159 87826274 2576 +57160 87828850 2480 +57161 87831330 2012 +57162 87833342 2018 +57163 87835360 1556 +57164 87836916 1532 +57165 87838448 1526 +57166 87839974 1556 +57167 87841530 2906 +57168 87844436 1244 +57169 87845680 1244 +57170 87846924 1244 +57171 87848168 956 +57172 87849124 1628 +57173 87850752 1598 +57174 87852350 1532 +57175 87853882 1580 +57176 87855462 104 +57177 87855566 98 +57178 87855664 2156 +57179 87857820 3512 +57180 87861332 2156 +57181 87863488 3512 +57182 87867000 3512 +57183 87870512 3512 +57184 87874024 3512 +57185 87877536 3512 +57186 87881048 1094 +57187 87882142 1094 +57188 87883236 1040 +57189 87884276 998 +57190 87885274 2054 +57191 87887328 2558 +57192 87889886 2624 +57193 87892510 1160 +57194 87893670 800 +57195 87894470 788 +57196 87895258 590 +57197 87895848 590 +57198 87896438 386 +57199 87896824 1148 +57200 87897972 1154 +57201 87899126 1694 +57202 87900820 1016 +57203 87901836 1010 +57204 87902846 1016 +57205 87903862 1010 +57206 87904872 1016 +57207 87905888 1010 +57208 87906898 1016 +57209 87907914 1010 +57210 87908924 1952 +57211 87910876 1922 +57212 87912798 1970 +57213 87914768 1952 +57214 87916720 674 +57215 87917394 662 +57216 87918056 50 +57217 87918106 3992 +57218 87922098 3992 +57219 87926090 3992 +57220 87930082 3992 +57221 87934074 3992 +57222 87938066 2102 +57223 87940168 5108 +57224 87945276 5108 +57225 87950384 4177 +57226 87954561 4177 +57227 87958738 4177 +57228 87962915 4177 +57229 87967092 4177 +57230 87971269 1538 +57231 87972807 926 +57232 87973733 1538 +57233 87975271 926 +57234 87976197 428 +57235 87976625 950 +57236 87977575 140 +57237 87977715 674 +57238 87978389 2168 +57239 87980557 1112 +57240 87981669 2162 +57241 87983831 1106 +57242 87984937 1364 +57243 87986301 356 +57244 87986657 620 +57245 87987277 524 +57246 87987801 500 +57247 87988301 536 +57248 87988837 518 +57249 87989355 524 +57250 87989879 512 +57251 87990391 536 +57252 87990927 512 +57253 87991439 524 +57254 87991963 500 +57255 87992463 536 +57256 87992999 518 +57257 87993517 524 +57258 87994041 512 +57259 87994553 536 +57260 87995089 512 +57261 87995601 578 +57262 87996179 470 +57263 87996649 578 +57264 87997227 584 +57265 87997811 2012 +57266 87999823 2012 +57267 88001835 2012 +57268 88003847 2012 +57269 88005859 2012 +57270 88007871 2012 +57271 88009883 2012 +57272 88011895 2012 +57273 88013907 2012 +57274 88015919 2012 +57275 88017931 2012 +57276 88019943 2012 +57277 88021955 2012 +57278 88023967 2012 +57279 88025979 2012 +57280 88027991 2012 +57281 88030003 2012 +57282 88032015 2012 +57283 88034027 2012 +57284 88036039 2012 +57285 88038051 2012 +57286 88040063 2012 +57287 88042075 2012 +57288 88044087 2012 +57289 88046099 2012 +57290 88048111 2012 +57291 88050123 2012 +57292 88052135 2012 +57293 88054147 2012 +57294 88056159 2012 +57295 88058171 2012 +57296 88060183 2012 +57297 88062195 2012 +57298 88064207 2012 +57299 88066219 2012 +57300 88068231 2012 +57301 88070243 2012 +57302 88072255 2012 +57303 88074267 2012 +57304 88076279 2012 +57305 88078291 2012 +57306 88080303 2012 +57307 88082315 2012 +57308 88084327 2012 +57309 88086339 2012 +57310 88088351 2012 +57311 88090363 2012 +57312 88092375 2012 +57313 88094387 2012 +57314 88096399 2012 +57315 88098411 2012 +57316 88100423 2012 +57317 88102435 2012 +57318 88104447 2012 +57319 88106459 2012 +57320 88108471 2012 +57321 88110483 2012 +57322 88112495 2012 +57323 88114507 2012 +57324 88116519 2012 +57325 88118531 1910 +57326 88120441 1910 +57327 88122351 1910 +57328 88124261 1910 +57329 88126171 1910 +57330 88128081 1910 +57331 88129991 1910 +57332 88131901 1910 +57333 88133811 1910 +57334 88135721 1910 +57335 88137631 1910 +57336 88139541 1910 +57337 88141451 1910 +57338 88143361 1910 +57339 88145271 1910 +57340 88147181 1910 +57341 88149091 1910 +57342 88151001 1910 +57343 88152911 1910 +57344 88154821 1910 +57345 88156731 1910 +57346 88158641 1910 +57347 88160551 1910 +57348 88162461 1910 +57349 88164371 1910 +57350 88166281 1910 +57351 88168191 1910 +57352 88170101 1910 +57353 88172011 1910 +57354 88173921 1910 +57355 88175831 1910 +57356 88177741 1910 +57357 88179651 1910 +57358 88181561 1910 +57359 88183471 1910 +57360 88185381 1910 +57361 88187291 1910 +57362 88189201 1910 +57363 88191111 1910 +57364 88193021 1910 +57365 88194931 1910 +57366 88196841 1910 +57367 88198751 1910 +57368 88200661 1910 +57369 88202571 1910 +57370 88204481 1910 +57371 88206391 1910 +57372 88208301 1910 +57373 88210211 1910 +57374 88212121 1910 +57375 88214031 1910 +57376 88215941 1910 +57377 88217851 1910 +57378 88219761 1910 +57379 88221671 1910 +57380 88223581 1910 +57381 88225491 1910 +57382 88227401 1910 +57383 88229311 1910 +57384 88231221 1910 +57385 88233131 1988 +57386 88235119 2018 +57387 88237137 1922 +57388 88239059 2864 +57389 88241923 2846 +57390 88244769 2852 +57391 88247621 2864 +57392 88250485 2846 +57393 88253331 2852 +57394 88256183 7292 +57395 88263475 2168 +57396 88265643 2168 +57397 88267811 2168 +57398 88269979 2168 +57399 88272147 2168 +57400 88274315 2168 +57401 88276483 6764 +57402 88283247 2180 +57403 88285427 1112 +57404 88286539 1100 +57405 88287639 1106 +57406 88288745 1136 +57407 88289881 860 +57408 88290741 1700 +57409 88292441 1706 +57410 88294147 2594 +57411 88296741 434 +57412 88297175 2414 +57413 88299589 434 +57414 88300023 1298 +57415 88301321 2168 +57416 88303489 2168 +57417 88305657 2168 +57418 88307825 2168 +57419 88309993 536 +57420 88310529 1286 +57421 88311815 1322 +57422 88313137 392 +57423 88313529 392 +57424 88313921 392 +57425 88314313 2234 +57426 88316547 2096 +57427 88318643 824 +57428 88319467 50 +57429 88319517 1238 +57430 88320755 80 +57431 88320835 1238 +57432 88322073 662 +57433 88322735 548 +57434 88323283 416 +57435 88323699 512 +57436 88324211 92 +57437 88324303 1736 +57438 88326039 1358 +57439 88327397 2042 +57440 88329439 356 +57441 88329795 1412 +57442 88331207 530 +57443 88331737 566 +57444 88332303 536 +57445 88332839 566 +57446 88333405 572 +57447 88333977 1124 +57448 88335101 818 +57449 88335919 818 +57450 88336737 1238 +57451 88337975 1802 +57452 88339777 1808 +57453 88341585 1808 +57454 88343393 1808 +57455 88345201 1988 +57456 88347189 1988 +57457 88349177 1988 +57458 88351165 1076 +57459 88352241 1724 +57460 88353965 1640 +57461 88355605 776 +57462 88356381 788 +57463 88357169 416 +57464 88357585 4046 +57465 88361631 92 +57466 88361723 416 +57467 88362139 4046 +57468 88366185 92 +57469 88366277 1178 +57470 88367455 1184 +57471 88368639 962 +57472 88369601 32 +57473 88369633 818 +57474 88370451 1304 +57475 88371755 1694 +57476 88373449 764 +57477 88374213 4382 +57478 88378595 4382 +57479 88382977 4382 +57480 88387359 4382 +57481 88391741 4382 +57482 88396123 4382 +57483 88400505 4382 +57484 88404887 4382 +57485 88409269 4382 +57486 88413651 4382 +57487 88418033 4382 +57488 88422415 4382 +57489 88426797 2726 +57490 88429523 2726 +57491 88432249 338 +57492 88432587 368 +57493 88432955 3002 +57494 88435957 3788 +57495 88439745 3260 +57496 88443005 3950 +57497 88446955 3872 +57498 88450827 512 +57499 88451339 1100 +57500 88452439 866 +57501 88453305 1016 +57502 88454321 986 +57503 88455307 548 +57504 88455855 542 +57505 88456397 548 +57506 88456945 542 +57507 88457487 2456 +57508 88459943 2456 +57509 88462399 2456 +57510 88464855 2456 +57511 88467311 2180 +57512 88469491 2192 +57513 88471683 416 +57514 88472099 416 +57515 88472515 848 +57516 88473363 1190 +57517 88474553 1184 +57518 88475737 38 +57519 88475775 38 +57520 88475813 1190 +57521 88477003 3470 +57522 88480473 3464 +57523 88483937 548 +57524 88484485 548 +57525 88485033 548 +57526 88485581 644 +57527 88486225 644 +57528 88486869 644 +57529 88487513 644 +57530 88488157 962 +57531 88489119 1010 +57532 88490129 248 +57533 88490377 440 +57534 88490817 452 +57535 88491269 452 +57536 88491721 452 +57537 88492173 446 +57538 88492619 722 +57539 88493341 656 +57540 88493997 656 +57541 88494653 668 +57542 88495321 644 +57543 88495965 1526 +57544 88497491 1256 +57545 88498747 542 +57546 88499289 104 +57547 88499393 104 +57548 88499497 104 +57549 88499601 104 +57550 88499705 104 +57551 88499809 806 +57552 88500615 1496 +57553 88502111 1502 +57554 88503613 1508 +57555 88505121 1508 +57556 88506629 1502 +57557 88508131 806 +57558 88508937 1256 +57559 88510193 542 +57560 88510735 542 +57561 88511277 806 +57562 88512083 1262 +57563 88513345 86 +57564 88513431 1250 +57565 88514681 134 +57566 88514815 128 +57567 88514943 134 +57568 88515077 128 +57569 88515205 134 +57570 88515339 1262 +57571 88516601 806 +57572 88517407 542 +57573 88517949 806 +57574 88518755 800 +57575 88519555 1100 +57576 88520655 1094 +57577 88521749 1100 +57578 88522849 1100 +57579 88523949 992 +57580 88524941 1016 +57581 88525957 668 +57582 88526625 2006 +57583 88528631 2024 +57584 88530655 1982 +57585 88532637 674 +57586 88533311 674 +57587 88533985 788 +57588 88534773 788 +57589 88535561 7742 +57590 88543303 1244 +57591 88544547 1208 +57592 88545755 1166 +57593 88546921 1178 +57594 88548099 788 +57595 88548887 788 +57596 88549675 2594 +57597 88552269 2174 +57598 88554443 2084 +57599 88556527 788 +57600 88557315 788 +57601 88558103 4376 +57602 88562479 4376 +57603 88566855 4376 +57604 88571231 4376 +57605 88575607 4376 +57606 88579983 4376 +57607 88584359 944 +57608 88585303 1274 +57609 88586577 1274 +57610 88587851 1274 +57611 88589125 1274 +57612 88590399 1274 +57613 88591673 1274 +57614 88592947 1274 +57615 88594221 1274 +57616 88595495 1274 +57617 88596769 1274 +57618 88598043 1274 +57619 88599317 1274 +57620 88600591 1274 +57621 88601865 1274 +57622 88603139 1274 +57623 88604413 1274 +57624 88605687 1274 +57625 88606961 1274 +57626 88608235 1274 +57627 88609509 1274 +57628 88610783 1274 +57629 88612057 1274 +57630 88613331 1274 +57631 88614605 1274 +57632 88615879 1274 +57633 88617153 1274 +57634 88618427 1826 +57635 88620253 1826 +57636 88622079 1826 +57637 88623905 1826 +57638 88625731 1826 +57639 88627557 1826 +57640 88629383 1826 +57641 88631209 1826 +57642 88633035 1826 +57643 88634861 1826 +57644 88636687 1826 +57645 88638513 1826 +57646 88640339 1826 +57647 88642165 1826 +57648 88643991 1826 +57649 88645817 1826 +57650 88647643 1826 +57651 88649469 1826 +57652 88651295 1826 +57653 88653121 1826 +57654 88654947 1826 +57655 88656773 1826 +57656 88658599 1826 +57657 88660425 1826 +57658 88662251 1826 +57659 88664077 1826 +57660 88665903 1496 +57661 88667399 1520 +57662 88668919 1568 +57663 88670487 1568 +57664 88672055 1568 +57665 88673623 1568 +57666 88675191 1568 +57667 88676759 1568 +57668 88678327 1568 +57669 88679895 1568 +57670 88681463 1568 +57671 88683031 1568 +57672 88684599 1568 +57673 88686167 1568 +57674 88687735 1568 +57675 88689303 2414 +57676 88691717 2414 +57677 88694131 2414 +57678 88696545 2414 +57679 88698959 2414 +57680 88701373 2414 +57681 88703787 2414 +57682 88706201 2414 +57683 88708615 2414 +57684 88711029 2414 +57685 88713443 2414 +57686 88715857 2414 +57687 88718271 2414 +57688 88720685 2414 +57689 88723099 2414 +57690 88725513 2414 +57691 88727927 2414 +57692 88730341 2414 +57693 88732755 2414 +57694 88735169 2414 +57695 88737583 2414 +57696 88739997 2414 +57697 88742411 2414 +57698 88744825 2414 +57699 88747239 2414 +57700 88749653 2414 +57701 88752067 2414 +57702 88754481 2414 +57703 88756895 2414 +57704 88759309 1496 +57705 88760805 1502 +57706 88762307 1508 +57707 88763815 1508 +57708 88765323 1502 +57709 88766825 1532 +57710 88768357 1538 +57711 88769895 1544 +57712 88771439 1532 +57713 88772971 1538 +57714 88774509 1466 +57715 88775975 1496 +57716 88777471 1496 +57717 88778967 1496 +57718 88780463 992 +57719 88781455 992 +57720 88782447 992 +57721 88783439 992 +57722 88784431 992 +57723 88785423 992 +57724 88786415 992 +57725 88787407 992 +57726 88788399 992 +57727 88789391 992 +57728 88790383 542 +57729 88790925 992 +57730 88791917 992 +57731 88792909 992 +57732 88793901 992 +57733 88794893 992 +57734 88795885 992 +57735 88796877 992 +57736 88797869 992 +57737 88798861 992 +57738 88799853 992 +57739 88800845 992 +57740 88801837 992 +57741 88802829 992 +57742 88803821 992 +57743 88804813 992 +57744 88805805 992 +57745 88806797 992 +57746 88807789 542 +57747 88808331 542 +57748 88808873 542 +57749 88809415 1526 +57750 88810941 1250 +57751 88812191 1262 +57752 88813453 1256 +57753 88814709 1256 +57754 88815965 1262 +57755 88817227 362 +57756 88817589 554 +57757 88818143 566 +57758 88818709 566 +57759 88819275 566 +57760 88819841 560 +57761 88820401 812 +57762 88821213 734 +57763 88821947 758 +57764 88822705 770 +57765 88823475 746 +57766 88824221 938 +57767 88825159 938 +57768 88826097 938 +57769 88827035 938 +57770 88827973 938 +57771 88828911 938 +57772 88829849 938 +57773 88830787 938 +57774 88831725 806 +57775 88832531 800 +57776 88833331 686 +57777 88834017 674 +57778 88834691 656 +57779 88835347 668 +57780 88836015 680 +57781 88836695 674 +57782 88837369 680 +57783 88838049 578 +57784 88838627 578 +57785 88839205 602 +57786 88839807 596 +57787 88840403 518 +57788 88840921 500 +57789 88841421 512 +57790 88841933 584 +57791 88842517 608 +57792 88843125 674 +57793 88843799 674 +57794 88844473 674 +57795 88845147 674 +57796 88845821 680 +57797 88846501 668 +57798 88847169 674 +57799 88847843 806 +57800 88848649 806 +57801 88849455 806 +57802 88850261 806 +57803 88851067 86 +57804 88851153 104 +57805 88851257 128 +57806 88851385 104 +57807 88851489 134 +57808 88851623 104 +57809 88851727 134 +57810 88851861 104 +57811 88851965 128 +57812 88852093 104 +57813 88852197 134 +57814 88852331 992 +57815 88853323 992 +57816 88854315 992 +57817 88855307 992 +57818 88856299 992 +57819 88857291 992 +57820 88858283 992 +57821 88859275 2048 +57822 88861323 2090 +57823 88863413 2018 +57824 88865431 2030 +57825 88867461 2084 +57826 88869545 2072 +57827 88871617 2060 +57828 88873677 4046 +57829 88877723 2894 +57830 88880617 3968 +57831 88884585 4046 +57832 88888631 4040 +57833 88892671 3686 +57834 88896357 2048 +57835 88898405 2090 +57836 88900495 1886 +57837 88902381 1658 +57838 88904039 2612 +57839 88906651 536 +57840 88907187 374 +57841 88907561 536 +57842 88908097 374 +57843 88908471 866 +57844 88909337 1976 +57845 88911313 1922 +57846 88913235 1250 +57847 88914485 1184 +57848 88915669 1172 +57849 88916841 830 +57850 88917671 830 +57851 88918501 836 +57852 88919337 830 +57853 88920167 818 +57854 88920985 848 +57855 88921833 4526 +57856 88926359 2258 +57857 88928617 1358 +57858 88929975 692 +57859 88930667 1358 +57860 88932025 692 +57861 88932717 1358 +57862 88934075 692 +57863 88934767 470 +57864 88935237 518 +57865 88935755 1232 +57866 88936987 302 +57867 88937289 1232 +57868 88938521 908 +57869 88939429 908 +57870 88940337 908 +57871 88941245 908 +57872 88942153 908 +57873 88943061 908 +57874 88943969 908 +57875 88944877 908 +57876 88945785 908 +57877 88946693 2114 +57878 88948807 3608 +57879 88952415 3608 +57880 88956023 3608 +57881 88959631 2816 +57882 88962447 2816 +57883 88965263 2816 +57884 88968079 1580 +57885 88969659 1610 +57886 88971269 1580 +57887 88972849 1286 +57888 88974135 668 +57889 88974803 2570 +57890 88977373 3224 +57891 88980597 3212 +57892 88983809 1934 +57893 88985743 1970 +57894 88987713 1958 +57895 88989671 1886 +57896 88991557 2024 +57897 88993581 2024 +57898 88995605 1280 +57899 88996885 1280 +57900 88998165 1448 +57901 88999613 1142 +57902 89000755 2042 +57903 89002797 2042 +57904 89004839 2042 +57905 89006881 2042 +57906 89008923 926 +57907 89009849 3620 +57908 89013469 212 +57909 89013681 1634 +57910 89015315 1778 +57911 89017093 1748 +57912 89018841 1832 +57913 89020673 1946 +57914 89022619 548 +57915 89023167 7280 +57916 89030447 7280 +57917 89037727 812 +57918 89038539 812 +57919 89039351 770 +57920 89040121 1088 +57921 89041209 1088 +57922 89042297 1532 +57923 89043829 1526 +57924 89045355 1520 +57925 89046875 1646 +57926 89048521 1346 +57927 89049867 722 +57928 89050589 2678 +57929 89053267 2678 +57930 89055945 152 +57931 89056097 146 +57932 89056243 152 +57933 89056395 2174 +57934 89058569 2174 +57935 89060743 4214 +57936 89064957 4214 +57937 89069171 4208 +57938 89073379 1364 +57939 89074743 350 +57940 89075093 638 +57941 89075731 578 +57942 89076309 560 +57943 89076869 230 +57944 89077099 1280 +57945 89078379 1052 +57946 89079431 1052 +57947 89080483 1586 +57948 89082069 1592 +57949 89083661 938 +57950 89084599 1178 +57951 89085777 1484 +57952 89087261 1490 +57953 89088751 2552 +57954 89091303 3326 +57955 89094629 3332 +57956 89097961 602 +57957 89098563 602 +57958 89099165 608 +57959 89099773 602 +57960 89100375 740 +57961 89101115 2174 +57962 89103289 1472 +57963 89104761 1460 +57964 89106221 1478 +57965 89107699 1460 +57966 89109159 1472 +57967 89110631 1472 +57968 89112103 1712 +57969 89113815 1832 +57970 89115647 1826 +57971 89117473 1826 +57972 89119299 2804 +57973 89122103 2804 +57974 89124907 1352 +57975 89126259 1550 +57976 89127809 1544 +57977 89129353 536 +57978 89129889 542 +57979 89130431 548 +57980 89130979 530 +57981 89131509 74 +57982 89131583 74 +57983 89131657 74 +57984 89131731 74 +57985 89131805 74 +57986 89131879 74 +57987 89131953 74 +57988 89132027 74 +57989 89132101 74 +57990 89132175 74 +57991 89132249 74 +57992 89132323 74 +57993 89132397 74 +57994 89132471 74 +57995 89132545 74 +57996 89132619 74 +57997 89132693 74 +57998 89132767 74 +57999 89132841 74 +58000 89132915 74 +58001 89132989 2162 +58002 89135151 1976 +58003 89137127 2582 +58004 89139709 5516 +58005 89145225 5516 +58006 89150741 3290 +58007 89154031 2030 +58008 89156061 2018 +58009 89158079 4046 +58010 89162125 4040 +58011 89166165 3686 +58012 89169851 4046 +58013 89173897 2072 +58014 89175969 2060 +58015 89178029 2084 +58016 89180113 2048 +58017 89182161 2090 +58018 89184251 3140 +58019 89187391 968 +58020 89188359 392 +58021 89188751 386 +58022 89189137 374 +58023 89189511 1088 +58024 89190599 1088 +58025 89191687 518 +58026 89192205 530 +58027 89192735 1088 +58028 89193823 1088 +58029 89194911 518 +58030 89195429 530 +58031 89195959 746 +58032 89196705 50 +58033 89196755 692 +58034 89197447 62 +58035 89197509 1694 +58036 89199203 296 +58037 89199499 1976 +58038 89201475 914 +58039 89202389 1706 +58040 89204095 1736 +58041 89205831 1280 +58042 89207111 1274 +58043 89208385 722 +58044 89209107 3296 +58045 89212403 2414 +58046 89214817 2882 +58047 89217699 608 +58048 89218307 608 +58049 89218915 584 +58050 89219499 584 +58051 89220083 1580 +58052 89221663 1580 +58053 89223243 1580 +58054 89224823 1580 +58055 89226403 1580 +58056 89227983 1580 +58057 89229563 1580 +58058 89231143 1580 +58059 89232723 1580 +58060 89234303 1580 +58061 89235883 1580 +58062 89237463 1580 +58063 89239043 1580 +58064 89240623 1580 +58065 89242203 1580 +58066 89243783 1580 +58067 89245363 1580 +58068 89246943 1580 +58069 89248523 1580 +58070 89250103 1580 +58071 89251683 1580 +58072 89253263 1580 +58073 89254843 1580 +58074 89256423 1580 +58075 89258003 1580 +58076 89259583 1580 +58077 89261163 1580 +58078 89262743 1580 +58079 89264323 1580 +58080 89265903 1580 +58081 89267483 1580 +58082 89269063 1580 +58083 89270643 1580 +58084 89272223 1580 +58085 89273803 1580 +58086 89275383 1580 +58087 89276963 1580 +58088 89278543 1580 +58089 89280123 1580 +58090 89281703 1580 +58091 89283283 1580 +58092 89284863 1580 +58093 89286443 1580 +58094 89288023 1580 +58095 89289603 1580 +58096 89291183 1580 +58097 89292763 1580 +58098 89294343 1580 +58099 89295923 1580 +58100 89297503 1580 +58101 89299083 1580 +58102 89300663 1580 +58103 89302243 1580 +58104 89303823 1580 +58105 89305403 1580 +58106 89306983 1580 +58107 89308563 1580 +58108 89310143 1580 +58109 89311723 1580 +58110 89313303 1580 +58111 89314883 1754 +58112 89316637 1754 +58113 89318391 1772 +58114 89320163 1772 +58115 89321935 2228 +58116 89324163 5438 +58117 89329601 5438 +58118 89335039 1376 +58119 89336415 1370 +58120 89337785 1388 +58121 89339173 1058 +58122 89340231 2810 +58123 89343041 6074 +58124 89349115 1316 +58125 89350431 1316 +58126 89351747 572 +58127 89352319 554 +58128 89352873 1742 +58129 89354615 1358 +58130 89355973 2042 +58131 89358015 356 +58132 89358371 1406 +58133 89359777 104 +58134 89359881 1700 +58135 89361581 86 +58136 89361667 1412 +58137 89363079 2036 +58138 89365115 776 +58139 89365891 326 +58140 89366217 1040 +58141 89367257 602 +58142 89367859 1466 +58143 89369325 1466 +58144 89370791 2144 +58145 89372935 6362 +58146 89379297 1388 +58147 89380685 1394 +58148 89382079 566 +58149 89382645 1496 +58150 89384141 1130 +58151 89385271 1970 +58152 89387241 968 +58153 89388209 476 +58154 89388685 3494 +58155 89392179 3506 +58156 89395685 3506 +58157 89399191 3506 +58158 89402697 3506 +58159 89406203 3506 +58160 89409709 3572 +58161 89413281 3572 +58162 89416853 3572 +58163 89420425 3548 +58164 89423973 3572 +58165 89427545 3572 +58166 89431117 524 +58167 89431641 1358 +58168 89432999 2234 +58169 89435233 2234 +58170 89437467 1718 +58171 89439185 1982 +58172 89441167 2000 +58173 89443167 2000 +58174 89445167 1958 +58175 89447125 1988 +58176 89449113 1976 +58177 89451089 728 +58178 89451817 68 +58179 89451885 2978 +58180 89454863 2978 +58181 89457841 674 +58182 89458515 74 +58183 89458589 482 +58184 89459071 2786 +58185 89461857 2786 +58186 89464643 974 +58187 89465617 998 +58188 89466615 452 +58189 89467067 452 +58190 89467519 566 +58191 89468085 566 +58192 89468651 386 +58193 89469037 548 +58194 89469585 566 +58195 89470151 554 +58196 89470705 566 +58197 89471271 542 +58198 89471813 572 +58199 89472385 590 +58200 89472975 770 +58201 89473745 854 +58202 89474599 764 +58203 89475363 812 +58204 89476175 542 +58205 89476717 476 +58206 89477193 650 +58207 89477843 572 +58208 89478415 608 +58209 89479023 518 +58210 89479541 626 +58211 89480167 566 +58212 89480733 1604 +58213 89482337 1556 +58214 89483893 752 +58215 89484645 692 +58216 89485337 650 +58217 89485987 632 +58218 89486619 554 +58219 89487173 596 +58220 89487769 578 +58221 89488347 3266 +58222 89491613 1862 +58223 89493475 1862 +58224 89495337 1994 +58225 89497331 1994 +58226 89499325 1814 +58227 89501139 830 +58228 89501969 3410 +58229 89505379 494 +58230 89505873 500 +58231 89506373 1286 +58232 89507659 374 +58233 89508033 1580 +58234 89509613 128 +58235 89509741 1142 +58236 89510883 1124 +58237 89512007 1388 +58238 89513395 440 +58239 89513835 752 +58240 89514587 1058 +58241 89515645 854 +58242 89516499 3973 +58243 89520472 782 +58244 89521254 7705 +58245 89528959 709 +58246 89529668 872 +58247 89530540 770 +58248 89531310 758 +58249 89532068 734 +58250 89532802 818 +58251 89533620 902 +58252 89534522 914 +58253 89535436 1088 +58254 89536524 1238 +58255 89537762 716 +58256 89538478 2821 +58257 89541299 12265 +58258 89553564 656 +58259 89554220 350 +58260 89554570 985 +58261 89555555 494 +58262 89556049 500 +58263 89556549 1286 +58264 89557835 374 +58265 89558209 1580 +58266 89559789 128 +58267 89559917 1142 +58268 89561059 1124 +58269 89562183 1388 +58270 89563571 440 +58271 89564011 752 +58272 89564763 1058 +58273 89565821 854 +58274 89566675 3973 +58275 89570648 782 +58276 89571430 7705 +58277 89579135 872 +58278 89580007 764 +58279 89580771 758 +58280 89581529 734 +58281 89582263 818 +58282 89583081 902 +58283 89583983 914 +58284 89584897 1088 +58285 89585985 1238 +58286 89587223 716 +58287 89587939 2821 +58288 89590760 11917 +58289 89602677 656 +58290 89603333 350 +58291 89603683 320 +58292 89604003 1304 +58293 89605307 1304 +58294 89606611 506 +58295 89607117 494 +58296 89607611 500 +58297 89608111 1286 +58298 89609397 374 +58299 89609771 1580 +58300 89611351 128 +58301 89611479 1142 +58302 89612621 1124 +58303 89613745 1388 +58304 89615133 440 +58305 89615573 752 +58306 89616325 1058 +58307 89617383 854 +58308 89618237 3985 +58309 89622222 1297 +58310 89623519 782 +58311 89624301 7705 +58312 89632006 872 +58313 89632878 770 +58314 89633648 758 +58315 89634406 734 +58316 89635140 818 +58317 89635958 902 +58318 89636860 914 +58319 89637774 1088 +58320 89638862 1238 +58321 89640100 716 +58322 89640816 1220 +58323 89642036 11917 +58324 89653953 656 +58325 89654609 350 +58326 89654959 320 +58327 89655279 1304 +58328 89656583 1304 +58329 89657887 506 +58330 89658393 1598 +58331 89659991 1142 +58332 89661133 746 +58333 89661879 728 +58334 89662607 740 +58335 89663347 680 +58336 89664027 788 +58337 89664815 872 +58338 89665687 440 +58339 89666127 374 +58340 89666501 374 +58341 89666875 1304 +58342 89668179 1286 +58343 89669465 1316 +58344 89670781 1580 +58345 89672361 1388 +58346 89673749 1124 +58347 89674873 1238 +58348 89676111 1088 +58349 89677199 914 +58350 89678113 902 +58351 89679015 818 +58352 89679833 500 +58353 89680333 782 +58354 89681115 854 +58355 89681969 752 +58356 89682721 500 +58357 89683221 338 +58358 89683559 1076 +58359 89684635 1958 +58360 89686593 7549 +58361 89694142 3301 +58362 89697443 1585 +58363 89699028 5648 +58364 89704676 938 +58365 89705614 812 +58366 89706426 2984 +58367 89709410 2984 +58368 89712394 2018 +58369 89714412 974 +58370 89715386 1604 +58371 89716990 1670 +58372 89718660 1706 +58373 89720366 326 +58374 89720692 272 +58375 89720964 86 +58376 89721050 2264 +58377 89723314 878 +58378 89724192 842 +58379 89725034 5588 +58380 89730622 1142 +58381 89731764 746 +58382 89732510 728 +58383 89733238 740 +58384 89733978 704 +58385 89734682 788 +58386 89735470 872 +58387 89736342 440 +58388 89736782 374 +58389 89737156 446 +58390 89737602 1304 +58391 89738906 1286 +58392 89740192 1316 +58393 89741508 1580 +58394 89743088 1388 +58395 89744476 1124 +58396 89745600 1238 +58397 89746838 1088 +58398 89747926 914 +58399 89748840 902 +58400 89749742 818 +58401 89750560 500 +58402 89751060 782 +58403 89751842 854 +58404 89752696 752 +58405 89753448 500 +58406 89753948 338 +58407 89754286 1076 +58408 89755362 1958 +58409 89757320 7549 +58410 89764869 1502 +58411 89766371 1525 +58412 89767896 5462 +58413 89773358 3889 +58414 89777247 416 +58415 89777663 428 +58416 89778091 530 +58417 89778621 524 +58418 89779145 1532 +58419 89780677 1532 +58420 89782209 1532 +58421 89783741 1532 +58422 89785273 1532 +58423 89786805 1532 +58424 89788337 2120 +58425 89790457 2108 +58426 89792565 2120 +58427 89794685 2108 +58428 89796793 896 +58429 89797689 890 +58430 89798579 884 +58431 89799463 1208 +58432 89800671 62 +58433 89800733 1580 +58434 89802313 4424 +58435 89806737 2330 +58436 89809067 1214 +58437 89810281 1214 +58438 89811495 1214 +58439 89812709 1214 +58440 89813923 1214 +58441 89815137 1022 +58442 89816159 1022 +58443 89817181 2696 +58444 89819877 2330 +58445 89822207 3266 +58446 89825473 3260 +58447 89828733 2606 +58448 89831339 2540 +58449 89833879 2570 +58450 89836449 2498 +58451 89838947 524 +58452 89839471 566 +58453 89840037 3680 +58454 89843717 3704 +58455 89847421 596 +58456 89848017 596 +58457 89848613 5552 +58458 89854165 3068 +58459 89857233 3068 +58460 89860301 950 +58461 89861251 926 +58462 89862177 1202 +58463 89863379 3314 +58464 89866693 3314 +58465 89870007 3314 +58466 89873321 3314 +58467 89876635 3314 +58468 89879949 3314 +58469 89883263 3314 +58470 89886577 3314 +58471 89889891 2606 +58472 89892497 2606 +58473 89895103 602 +58474 89895705 554 +58475 89896259 596 +58476 89896855 596 +58477 89897451 722 +58478 89898173 722 +58479 89898895 4424 +58480 89903319 4430 +58481 89907749 4898 +58482 89912647 1760 +58483 89914407 1892 +58484 89916299 1070 +58485 89917369 1058 +58486 89918427 1460 +58487 89919887 1460 +58488 89921347 1460 +58489 89922807 1460 +58490 89924267 2018 +58491 89926285 2018 +58492 89928303 740 +58493 89929043 806 +58494 89929849 746 +58495 89930595 332 +58496 89930927 2108 +58497 89933035 1430 +58498 89934465 1040 +58499 89935505 680 +58500 89936185 722 +58501 89936907 284 +58502 89937191 326 +58503 89937517 344 +58504 89937861 1376 +58505 89939237 6373 +58506 89945610 572 +58507 89946182 512 +58508 89946694 488 +58509 89947182 2210 +58510 89949392 2654 +58511 89952046 2612 +58512 89954658 2198 +58513 89956856 2654 +58514 89959510 2594 +58515 89962104 1670 +58516 89963774 1658 +58517 89965432 962 +58518 89966394 962 +58519 89967356 188 +58520 89967544 188 +58521 89967732 188 +58522 89967920 2030 +58523 89969950 2024 +58524 89971974 2948 +58525 89974922 2936 +58526 89977858 2948 +58527 89980806 2948 +58528 89983754 2942 +58529 89986696 2948 +58530 89989644 2072 +58531 89991716 2270 +58532 89993986 2300 +58533 89996286 2300 +58534 89998586 2300 +58535 90000886 266 +58536 90001152 260 +58537 90001412 290 +58538 90001702 236 +58539 90001938 254 +58540 90002192 266 +58541 90002458 392 +58542 90002850 506 +58543 90003356 998 +58544 90004354 998 +58545 90005352 998 +58546 90006350 386 +58547 90006736 50 +58548 90006786 2258 +58549 90009044 404 +58550 90009448 302 +58551 90009750 12901 +58552 90022651 1376 +58553 90024027 13093 +58554 90037120 1376 +58555 90038496 2240 +58556 90040736 2240 +58557 90042976 2240 +58558 90045216 2240 +58559 90047456 1670 +58560 90049126 344 +58561 90049470 1412 +58562 90050882 770 +58563 90051652 2036 +58564 90053688 1370 +58565 90055058 464 +58566 90055522 458 +58567 90055980 1970 +58568 90057950 1970 +58569 90059920 962 +58570 90060882 2630 +58571 90063512 2846 +58572 90066358 2630 +58573 90068988 2846 +58574 90071834 5438 +58575 90077272 5354 +58576 90082626 1832 +58577 90084458 1820 +58578 90086278 1802 +58579 90088080 1808 +58580 90089888 1820 +58581 90091708 1820 +58582 90093528 2984 +58583 90096512 2960 +58584 90099472 2084 +58585 90101556 2222 +58586 90103778 1166 +58587 90104944 1154 +58588 90106098 602 +58589 90106700 1202 +58590 90107902 1142 +58591 90109044 1424 +58592 90110468 1472 +58593 90111940 1472 +58594 90113412 1472 +58595 90114884 1472 +58596 90116356 1472 +58597 90117828 1472 +58598 90119300 2288 +58599 90121588 2174 +58600 90123762 2288 +58601 90126050 2174 +58602 90128224 1574 +58603 90129798 1532 +58604 90131330 1574 +58605 90132904 1532 +58606 90134436 1544 +58607 90135980 1544 +58608 90137524 1580 +58609 90139104 344 +58610 90139448 1400 +58611 90140848 770 +58612 90141618 2036 +58613 90143654 512 +58614 90144166 512 +58615 90144678 1424 +58616 90146102 1436 +58617 90147538 1424 +58618 90148962 1436 +58619 90150398 818 +58620 90151216 728 +58621 90151944 3098 +58622 90155042 3020 +58623 90158062 884 +58624 90158946 884 +58625 90159830 4424 +58626 90164254 1244 +58627 90165498 1244 +58628 90166742 638 +58629 90167380 632 +58630 90168012 1364 +58631 90169376 1376 +58632 90170752 1370 +58633 90172122 1370 +58634 90173492 1334 +58635 90174826 602 +58636 90175428 608 +58637 90176036 596 +58638 90176632 608 +58639 90177240 644 +58640 90177884 644 +58641 90178528 878 +58642 90179406 938 +58643 90180344 458 +58644 90180802 1268 +58645 90182070 836 +58646 90182906 860 +58647 90183766 836 +58648 90184602 860 +58649 90185462 836 +58650 90186298 860 +58651 90187158 836 +58652 90187994 860 +58653 90188854 836 +58654 90189690 860 +58655 90190550 3074 +58656 90193624 1934 +58657 90195558 788 +58658 90196346 794 +58659 90197140 3212 +58660 90200352 3086 +58661 90203438 1148 +58662 90204586 68 +58663 90204654 170 +58664 90204824 2282 +58665 90207106 1448 +58666 90208554 2036 +58667 90210590 338 +58668 90210928 764 +58669 90211692 1178 +58670 90212870 1406 +58671 90214276 1304 +58672 90215580 2030 +58673 90217610 344 +58674 90217954 1406 +58675 90219360 974 +58676 90220334 2756 +58677 90223090 1808 +58678 90224898 284 +58679 90225182 1094 +58680 90226276 476 +58681 90226752 284 +58682 90227036 1214 +58683 90228250 1118 +58684 90229368 2330 +58685 90231698 1442 +58686 90233140 2360 +58687 90235500 1454 +58688 90236954 1118 +58689 90238072 2264 +58690 90240336 1382 +58691 90241718 1382 +58692 90243100 1394 +58693 90244494 1394 +58694 90245888 1376 +58695 90247264 1376 +58696 90248640 620 +58697 90249260 668 +58698 90249928 674 +58699 90250602 632 +58700 90251234 5114 +58701 90256348 5108 +58702 90261456 2270 +58703 90263726 2300 +58704 90266026 2558 +58705 90268584 302 +58706 90268886 302 +58707 90269188 308 +58708 90269496 296 +58709 90269792 1304 +58710 90271096 1214 +58711 90272310 104 +58712 90272414 104 +58713 90272518 104 +58714 90272622 104 +58715 90272726 104 +58716 90272830 104 +58717 90272934 926 +58718 90273860 932 +58719 90274792 1838 +58720 90276630 1454 +58721 90278084 1442 +58722 90279526 1448 +58723 90280974 2210 +58724 90283184 704 +58725 90283888 2030 +58726 90285918 704 +58727 90286622 1898 +58728 90288520 704 +58729 90289224 2012 +58730 90291236 704 +58731 90291940 2084 +58732 90294024 704 +58733 90294728 1976 +58734 90296704 704 +58735 90297408 2288 +58736 90299696 728 +58737 90300424 1874 +58738 90302298 1112 +58739 90303410 1112 +58740 90304522 1112 +58741 90305634 1100 +58742 90306734 1112 +58743 90307846 1112 +58744 90308958 1112 +58745 90310070 1112 +58746 90311182 1100 +58747 90312282 1112 +58748 90313394 1142 +58749 90314536 1112 +58750 90315648 1100 +58751 90316748 1112 +58752 90317860 1142 +58753 90319002 1112 +58754 90320114 818 +58755 90320932 80 +58756 90321012 740 +58757 90321752 86 +58758 90321838 170 +58759 90322008 170 +58760 90322178 170 +58761 90322348 170 +58762 90322518 164 +58763 90322682 182 +58764 90322864 530 +58765 90323394 1232 +58766 90324626 1232 +58767 90325858 596 +58768 90326454 596 +58769 90327050 1082 +58770 90328132 1172 +58771 90329304 1202 +58772 90330506 1160 +58773 90331666 1934 +58774 90333600 2354 +58775 90335954 2354 +58776 90338308 2354 +58777 90340662 2354 +58778 90343016 2354 +58779 90345370 2354 +58780 90347724 1298 +58781 90349022 1568 +58782 90350590 1568 +58783 90352158 554 +58784 90352712 566 +58785 90353278 4064 +58786 90357342 4064 +58787 90361406 4064 +58788 90365470 4064 +58789 90369534 4076 +58790 90373610 4076 +58791 90377686 422 +58792 90378108 416 +58793 90378524 2036 +58794 90380560 2036 +58795 90382596 1886 +58796 90384482 1262 +58797 90385744 944 +58798 90386688 944 +58799 90387632 944 +58800 90388576 710 +58801 90389286 896 +58802 90390182 920 +58803 90391102 1556 +58804 90392658 1556 +58805 90394214 1862 +58806 90396076 1862 +58807 90397938 1850 +58808 90399788 1850 +58809 90401638 2324 +58810 90403962 2294 +58811 90406256 2192 +58812 90408448 2192 +58813 90410640 1082 +58814 90411722 1058 +58815 90412780 56 +58816 90412836 1814 +58817 90414650 6493 +58818 90421143 6481 +58819 90427624 1118 +58820 90428742 1118 +58821 90429860 2252 +58822 90432112 2252 +58823 90434364 692 +58824 90435056 698 +58825 90435754 692 +58826 90436446 698 +58827 90437144 2624 +58828 90439768 1928 +58829 90441696 350 +58830 90442046 1928 +58831 90443974 350 +58832 90444324 704 +58833 90445028 704 +58834 90445732 2528 +58835 90448260 2546 +58836 90450806 1754 +58837 90452560 1748 +58838 90454308 344 +58839 90454652 1754 +58840 90456406 1754 +58841 90458160 1370 +58842 90459530 1370 +58843 90460900 1370 +58844 90462270 476 +58845 90462746 482 +58846 90463228 1916 +58847 90465144 1916 +58848 90467060 488 +58849 90467548 428 +58850 90467976 428 +58851 90468404 374 +58852 90468778 374 +58853 90469152 830 +58854 90469982 830 +58855 90470812 830 +58856 90471642 830 +58857 90472472 1664 +58858 90474136 872 +58859 90475008 602 +58860 90475610 620 +58861 90476230 1178 +58862 90477408 422 +58863 90477830 920 +58864 90478750 602 +58865 90479352 1262 +58866 90480614 716 +58867 90481330 692 +58868 90482022 1790 +58869 90483812 728 +58870 90484540 1844 +58871 90486384 1622 +58872 90488006 1628 +58873 90489634 1628 +58874 90491262 1622 +58875 90492884 2720 +58876 90495604 1628 +58877 90497232 2576 +58878 90499808 2576 +58879 90502384 554 +58880 90502938 554 +58881 90503492 1142 +58882 90504634 1106 +58883 90505740 1088 +58884 90506828 752 +58885 90507580 752 +58886 90508332 2006 +58887 90510338 2006 +58888 90512344 566 +58889 90512910 566 +58890 90513476 2006 +58891 90515482 2006 +58892 90517488 524 +58893 90518012 524 +58894 90518536 554 +58895 90519090 560 +58896 90519650 1658 +58897 90521308 1658 +58898 90522966 1406 +58899 90524372 650 +58900 90525022 2444 +58901 90527466 2444 +58902 90529910 1718 +58903 90531628 1718 +58904 90533346 1718 +58905 90535064 1718 +58906 90536782 1718 +58907 90538500 542 +58908 90539042 530 +58909 90539572 536 +58910 90540108 866 +58911 90540974 740 +58912 90541714 746 +58913 90542460 4682 +58914 90547142 4172 +58915 90551314 4670 +58916 90555984 4754 +58917 90560738 2876 +58918 90563614 2876 +58919 90566490 2354 +58920 90568844 2354 +58921 90571198 2354 +58922 90573552 2354 +58923 90575906 2354 +58924 90578260 2354 +58925 90580614 626 +58926 90581240 764 +58927 90582004 2048 +58928 90584052 2042 +58929 90586094 2090 +58930 90588184 1610 +58931 90589794 1550 +58932 90591344 1598 +58933 90592942 1526 +58934 90594468 1094 +58935 90595562 1004 +58936 90596566 362 +58937 90596928 362 +58938 90597290 2072 +58939 90599362 2066 +58940 90601428 992 +58941 90602420 74 +58942 90602494 1844 +58943 90604338 1844 +58944 90606182 1724 +58945 90607906 1814 +58946 90609720 1808 +58947 90611528 4682 +58948 90616210 4688 +58949 90620898 4208 +58950 90625106 4208 +58951 90629314 3284 +58952 90632598 2360 +58953 90634958 2360 +58954 90637318 2360 +58955 90639678 2360 +58956 90642038 2360 +58957 90644398 2360 +58958 90646758 608 +58959 90647366 608 +58960 90647974 1838 +58961 90649812 3506 +58962 90653318 3506 +58963 90656824 3506 +58964 90660330 3506 +58965 90663836 440 +58966 90664276 224 +58967 90664500 440 +58968 90664940 224 +58969 90665164 440 +58970 90665604 224 +58971 90665828 2180 +58972 90668008 1088 +58973 90669096 2978 +58974 90672074 2966 +58975 90675040 1412 +58976 90676452 1436 +58977 90677888 596 +58978 90678484 62 +58979 90678546 1262 +58980 90679808 2666 +58981 90682474 2666 +58982 90685140 314 +58983 90685454 344 +58984 90685798 2348 +58985 90688146 2366 +58986 90690512 830 +58987 90691342 818 +58988 90692160 572 +58989 90692732 1220 +58990 90693952 578 +58991 90694530 1178 +58992 90695708 2030 +58993 90697738 2030 +58994 90699768 2006 +58995 90701774 2006 +58996 90703780 956 +58997 90704736 770 +58998 90705506 788 +58999 90706294 422 +59000 90706716 428 +59001 90707144 428 +59002 90707572 422 +59003 90707994 2150 +59004 90710144 2198 +59005 90712342 710 +59006 90713052 1262 +59007 90714314 1370 +59008 90715684 1370 +59009 90717054 1592 +59010 90718646 3650 +59011 90722296 3608 +59012 90725904 3620 +59013 90729524 3650 +59014 90733174 3632 +59015 90736806 3638 +59016 90740444 3626 +59017 90744070 3632 +59018 90747702 3626 +59019 90751328 3632 +59020 90754960 3608 +59021 90758568 3608 +59022 90762176 590 +59023 90762766 1814 +59024 90764580 1814 +59025 90766394 1808 +59026 90768202 1814 +59027 90770016 2246 +59028 90772262 2234 +59029 90774496 2234 +59030 90776730 2246 +59031 90778976 2234 +59032 90781210 2240 +59033 90783450 2246 +59034 90785696 2240 +59035 90787936 638 +59036 90788574 2588 +59037 90791162 2588 +59038 90793750 1544 +59039 90795294 1406 +59040 90796700 2594 +59041 90799294 2264 +59042 90801558 2264 +59043 90803822 2270 +59044 90806092 2264 +59045 90808356 2264 +59046 90810620 2360 +59047 90812980 2306 +59048 90815286 2366 +59049 90817652 2348 +59050 90820000 2354 +59051 90822354 2366 +59052 90824720 2312 +59053 90827032 686 +59054 90827718 902 +59055 90828620 656 +59056 90829276 1010 +59057 90830286 2006 +59058 90832292 2006 +59059 90834298 1820 +59060 90836118 1310 +59061 90837428 2024 +59062 90839452 332 +59063 90839784 224 +59064 90840008 56 +59065 90840064 68 +59066 90840132 2696 +59067 90842828 2498 +59068 90845326 986 +59069 90846312 2504 +59070 90848816 986 +59071 90849802 2408 +59072 90852210 2408 +59073 90854618 2408 +59074 90857026 2408 +59075 90859434 1184 +59076 90860618 1172 +59077 90861790 650 +59078 90862440 602 +59079 90863042 590 +59080 90863632 590 +59081 90864222 578 +59082 90864800 1562 +59083 90866362 50 +59084 90866412 1256 +59085 90867668 1256 +59086 90868924 1256 +59087 90870180 1208 +59088 90871388 1202 +59089 90872590 1334 +59090 90873924 1478 +59091 90875402 1070 +59092 90876472 1694 +59093 90878166 1544 +59094 90879710 2240 +59095 90881950 2276 +59096 90884226 1112 +59097 90885338 956 +59098 90886294 2258 +59099 90888552 1004 +59100 90889556 974 +59101 90890530 1298 +59102 90891828 1160 +59103 90892988 470 +59104 90893458 722 +59105 90894180 638 +59106 90894818 638 +59107 90895456 356 +59108 90895812 56 +59109 90895868 3014 +59110 90898882 1130 +59111 90900012 1130 +59112 90901142 2222 +59113 90903364 1664 +59114 90905028 830 +59115 90905858 1406 +59116 90907264 656 +59117 90907920 872 +59118 90908792 1172 +59119 90909964 2126 +59120 90912090 1670 +59121 90913760 902 +59122 90914662 1166 +59123 90915828 2126 +59124 90917954 1670 +59125 90919624 2264 +59126 90921888 806 +59127 90922694 4118 +59128 90926812 4100 +59129 90930912 4118 +59130 90935030 1172 +59131 90936202 1172 +59132 90937374 896 +59133 90938270 896 +59134 90939166 776 +59135 90939942 1634 +59136 90941576 1634 +59137 90943210 764 +59138 90943974 1082 +59139 90945056 1412 +59140 90946468 1382 +59141 90947850 1202 +59142 90949052 1154 +59143 90950206 1448 +59144 90951654 1448 +59145 90953102 2816 +59146 90955918 1298 +59147 90957216 2024 +59148 90959240 326 +59149 90959566 1400 +59150 90960966 872 +59151 90961838 872 +59152 90962710 848 +59153 90963558 848 +59154 90964406 1670 +59155 90966076 1382 +59156 90967458 2042 +59157 90969500 362 +59158 90969862 1406 +59159 90971268 104 +59160 90971372 1580 +59161 90972952 1544 +59162 90974496 1556 +59163 90976052 1568 +59164 90977620 1832 +59165 90979452 1796 +59166 90981248 1778 +59167 90983026 1382 +59168 90984408 1886 +59169 90986294 668 +59170 90986962 734 +59171 90987696 770 +59172 90988466 80 +59173 90988546 6356 +59174 90994902 6368 +59175 91001270 938 +59176 91002208 1826 +59177 91004034 1046 +59178 91005080 1076 +59179 91006156 1070 +59180 91007226 1304 +59181 91008530 1082 +59182 91009612 1082 +59183 91010694 1082 +59184 91011776 1076 +59185 91012852 3902 +59186 91016754 14293 +59187 91031047 1382 +59188 91032429 728 +59189 91033157 704 +59190 91033861 704 +59191 91034565 1436 +59192 91036001 2282 +59193 91038283 104 +59194 91038387 104 +59195 91038491 770 +59196 91039261 1424 +59197 91040685 536 +59198 91041221 1946 +59199 91043167 1988 +59200 91045155 524 +59201 91045679 674 +59202 91046353 662 +59203 91047015 572 +59204 91047587 2654 +59205 91050241 506 +59206 91050747 656 +59207 91051403 560 +59208 91051963 596 +59209 91052559 602 +59210 91053161 560 +59211 91053721 656 +59212 91054377 506 +59213 91054883 464 +59214 91055347 464 +59215 91055811 2156 +59216 91057967 2156 +59217 91060123 2156 +59218 91062279 656 +59219 91062935 650 +59220 91063585 614 +59221 91064199 638 +59222 91064837 632 +59223 91065469 1142 +59224 91066611 1166 +59225 91067777 1874 +59226 91069651 1874 +59227 91071525 1874 +59228 91073399 1874 +59229 91075273 1838 +59230 91077111 1838 +59231 91078949 1454 +59232 91080403 1454 +59233 91081857 4334 +59234 91086191 32 +59235 91086223 590 +59236 91086813 632 +59237 91087445 632 +59238 91088077 1688 +59239 91089765 1688 +59240 91091453 746 +59241 91092199 1820 +59242 91094019 1814 +59243 91095833 1808 +59244 91097641 1814 +59245 91099455 1670 +59246 91101125 1646 +59247 91102771 1562 +59248 91104333 1508 +59249 91105841 992 +59250 91106833 980 +59251 91107813 602 +59252 91108415 608 +59253 91109023 2018 +59254 91111041 1436 +59255 91112477 1442 +59256 91113919 1544 +59257 91115463 1952 +59258 91117415 932 +59259 91118347 932 +59260 91119279 302 +59261 91119581 308 +59262 91119889 302 +59263 91120191 296 +59264 91120487 302 +59265 91120789 302 +59266 91121091 866 +59267 91121957 1646 +59268 91123603 2414 +59269 91126017 4208 +59270 91130225 3464 +59271 91133689 1412 +59272 91135101 1076 +59273 91136177 2738 +59274 91138915 2132 +59275 91141047 464 +59276 91141511 470 +59277 91141981 386 +59278 91142367 74 +59279 91142441 242 +59280 91142683 242 +59281 91142925 242 +59282 91143167 242 +59283 91143409 242 +59284 91143651 242 +59285 91143893 242 +59286 91144135 242 +59287 91144377 572 +59288 91144949 584 +59289 91145533 584 +59290 91146117 3080 +59291 91149197 3260 +59292 91152457 2366 +59293 91154823 2516 +59294 91157339 1694 +59295 91159033 3410 +59296 91162443 2420 +59297 91164863 1868 +59298 91166731 122 +59299 91166853 2648 +59300 91169501 800 +59301 91170301 188 +59302 91170489 800 +59303 91171289 188 +59304 91171477 1430 +59305 91172907 362 +59306 91173269 1502 +59307 91174771 632 +59308 91175403 638 +59309 91176041 2414 +59310 91178455 2114 +59311 91180569 2414 +59312 91182983 2144 +59313 91185127 3230 +59314 91188357 1616 +59315 91189973 1658 +59316 91191631 3638 +59317 91195269 626 +59318 91195895 3650 +59319 91199545 716 +59320 91200261 752 +59321 91201013 1730 +59322 91202743 1286 +59323 91204029 2030 +59324 91206059 344 +59325 91206403 1406 +59326 91207809 56 +59327 91207865 1268 +59328 91209133 1274 +59329 91210407 2084 +59330 91212491 1040 +59331 91213531 1034 +59332 91214565 3434 +59333 91217999 1166 +59334 91219165 2054 +59335 91221219 944 +59336 91222163 932 +59337 91223095 3086 +59338 91226181 3086 +59339 91229267 4382 +59340 91233649 800 +59341 91234449 1250 +59342 91235699 1250 +59343 91236949 2156 +59344 91239105 2222 +59345 91241327 2336 +59346 91243663 2336 +59347 91245999 572 +59348 91246571 68 +59349 91246639 974 +59350 91247613 974 +59351 91248587 3638 +59352 91252225 3638 +59353 91255863 3632 +59354 91259495 3632 +59355 91263127 1358 +59356 91264485 1016 +59357 91265501 1016 +59358 91266517 368 +59359 91266885 74 +59360 91266959 1868 +59361 91268827 1868 +59362 91270695 932 +59363 91271627 902 +59364 91272529 566 +59365 91273095 566 +59366 91273661 566 +59367 91274227 566 +59368 91274793 1730 +59369 91276523 1850 +59370 91278373 3434 +59371 91281807 1220 +59372 91283027 1220 +59373 91284247 2336 +59374 91286583 2324 +59375 91288907 2366 +59376 91291273 2324 +59377 91293597 2210 +59378 91295807 1040 +59379 91296847 2504 +59380 91299351 1664 +59381 91301015 1676 +59382 91302691 2186 +59383 91304877 362 +59384 91305239 1736 +59385 91306975 1748 +59386 91308723 2186 +59387 91310909 2960 +59388 91313869 2186 +59389 91316055 692 +59390 91316747 692 +59391 91317439 1430 +59392 91318869 1436 +59393 91320305 1028 +59394 91321333 428 +59395 91321761 2678 +59396 91324439 2678 +59397 91327117 2558 +59398 91329675 1232 +59399 91330907 1232 +59400 91332139 1232 +59401 91333371 1232 +59402 91334603 1622 +59403 91336225 1622 +59404 91337847 1622 +59405 91339469 2288 +59406 91341757 15073 +59407 91356830 872 +59408 91357702 2594 +59409 91360296 2822 +59410 91363118 1742 +59411 91364860 1424 +59412 91366284 2018 +59413 91368302 758 +59414 91369060 338 +59415 91369398 44 +59416 91369442 2342 +59417 91371784 2336 +59418 91374120 878 +59419 91374998 3698 +59420 91378696 3668 +59421 91382364 3746 +59422 91386110 3674 +59423 91389784 3752 +59424 91393536 3656 +59425 91397192 3716 +59426 91400908 3668 +59427 91404576 1598 +59428 91406174 1598 +59429 91407772 62 +59430 91407834 794 +59431 91408628 218 +59432 91408846 980 +59433 91409826 980 +59434 91410806 2240 +59435 91413046 2210 +59436 91415256 2228 +59437 91417484 1058 +59438 91418542 4244 +59439 91422786 4094 +59440 91426880 3224 +59441 91430104 104 +59442 91430208 1364 +59443 91431572 2036 +59444 91433608 314 +59445 91433922 1388 +59446 91435310 1676 +59447 91436986 3050 +59448 91440036 1670 +59449 91441706 1676 +59450 91443382 5132 +59451 91448514 5150 +59452 91453664 2420 +59453 91456084 2420 +59454 91458504 1952 +59455 91460456 1952 +59456 91462408 3938 +59457 91466346 2402 +59458 91468748 902 +59459 91469650 902 +59460 91470552 1514 +59461 91472066 1532 +59462 91473598 1514 +59463 91475112 2186 +59464 91477298 278 +59465 91477576 3086 +59466 91480662 2288 +59467 91482950 1928 +59468 91484878 1898 +59469 91486776 1814 +59470 91488590 1700 +59471 91490290 1166 +59472 91491456 2240 +59473 91493696 3554 +59474 91497250 3554 +59475 91500804 644 +59476 91501448 644 +59477 91502092 644 +59478 91502736 644 +59479 91503380 890 +59480 91504270 1394 +59481 91505664 1418 +59482 91507082 1406 +59483 91508488 1406 +59484 91509894 1736 +59485 91511630 1682 +59486 91513312 956 +59487 91514268 962 +59488 91515230 998 +59489 91516228 164 +59490 91516392 2156 +59491 91518548 1100 +59492 91519648 1610 +59493 91521258 734 +59494 91521992 722 +59495 91522714 1556 +59496 91524270 128 +59497 91524398 1292 +59498 91525690 1292 +59499 91526982 44 +59500 91527026 2024 +59501 91529050 2024 +59502 91531074 2024 +59503 91533098 2024 +59504 91535122 2024 +59505 91537146 2024 +59506 91539170 2024 +59507 91541194 1700 +59508 91542894 2384 +59509 91545278 2390 +59510 91547668 2408 +59511 91550076 2360 +59512 91552436 1472 +59513 91553908 1514 +59514 91555422 1502 +59515 91556924 1502 +59516 91558426 1532 +59517 91559958 2528 +59518 91562486 3554 +59519 91566040 3554 +59520 91569594 2288 +59521 91571882 1214 +59522 91573096 1196 +59523 91574292 1184 +59524 91575476 1184 +59525 91576660 2462 +59526 91579122 386 +59527 91579508 386 +59528 91579894 386 +59529 91580280 386 +59530 91580666 386 +59531 91581052 386 +59532 91581438 386 +59533 91581824 386 +59534 91582210 1592 +59535 91583802 1538 +59536 91585340 1580 +59537 91586920 1580 +59538 91588500 1580 +59539 91590080 1592 +59540 91591672 1586 +59541 91593258 1574 +59542 91594832 1610 +59543 91596442 1568 +59544 91598010 1550 +59545 91599560 1610 +59546 91601170 2072 +59547 91603242 386 +59548 91603628 50 +59549 91603678 1850 +59550 91605528 1598 +59551 91607126 1352 +59552 91608478 1406 +59553 91609884 218 +59554 91610102 1874 +59555 91611976 6962 +59556 91618938 6374 +59557 91625312 1706 +59558 91627018 686 +59559 91627704 1196 +59560 91628900 464 +59561 91629364 1052 +59562 91630416 764 +59563 91631180 686 +59564 91631866 380 +59565 91632246 572 +59566 91632818 260 +59567 91633078 12625 +59568 91645703 830 +59569 91646533 896 +59570 91647429 890 +59571 91648319 890 +59572 91649209 890 +59573 91650099 896 +59574 91650995 896 +59575 91651891 896 +59576 91652787 884 +59577 91653671 896 +59578 91654567 890 +59579 91655457 1538 +59580 91656995 1580 +59581 91658575 1514 +59582 91660089 1514 +59583 91661603 4382 +59584 91665985 4382 +59585 91670367 4382 +59586 91674749 4382 +59587 91679131 4382 +59588 91683513 4382 +59589 91687895 4382 +59590 91692277 4382 +59591 91696659 476 +59592 91697135 848 +59593 91697983 830 +59594 91698813 836 +59595 91699649 872 +59596 91700521 3278 +59597 91703799 836 +59598 91704635 830 +59599 91705465 830 +59600 91706295 1412 +59601 91707707 1418 +59602 91709125 2624 +59603 91711749 2624 +59604 91714373 2624 +59605 91716997 2624 +59606 91719621 1478 +59607 91721099 3032 +59608 91724131 62 +59609 91724193 98 +59610 91724291 116 +59611 91724407 2557 +59612 91726964 716 +59613 91727680 716 +59614 91728396 1016 +59615 91729412 1040 +59616 91730452 1280 +59617 91731732 2557 +59618 91734289 368 +59619 91734657 368 +59620 91735025 1616 +59621 91736641 1616 +59622 91738257 1172 +59623 91739429 806 +59624 91740235 1172 +59625 91741407 806 +59626 91742213 1172 +59627 91743385 806 +59628 91744191 1166 +59629 91745357 140 +59630 91745497 1166 +59631 91746663 140 +59632 91746803 1166 +59633 91747969 140 +59634 91748109 932 +59635 91749041 1004 +59636 91750045 5804 +59637 91755849 2798 +59638 91758647 2624 +59639 91761271 752 +59640 91762023 746 +59641 91762769 746 +59642 91763515 746 +59643 91764261 872 +59644 91765133 4652 +59645 91769785 1130 +59646 91770915 938 +59647 91771853 44 +59648 91771897 854 +59649 91772751 3998 +59650 91776749 3998 +59651 91780747 3998 +59652 91784745 3998 +59653 91788743 800 +59654 91789543 830 +59655 91790373 518 +59656 91790891 536 +59657 91791427 524 +59658 91791951 530 +59659 91792481 530 +59660 91793011 2342 +59661 91795353 1088 +59662 91796441 1088 +59663 91797529 1196 +59664 91798725 1196 +59665 91799921 1190 +59666 91801111 1190 +59667 91802301 1208 +59668 91803509 1208 +59669 91804717 1196 +59670 91805913 1196 +59671 91807109 2258 +59672 91809367 2258 +59673 91811625 1394 +59674 91813019 1388 +59675 91814407 746 +59676 91815153 734 +59677 91815887 740 +59678 91816627 740 +59679 91817367 1526 +59680 91818893 1592 +59681 91820485 998 +59682 91821483 638 +59683 91822121 1370 +59684 91823491 1220 +59685 91824711 476 +59686 91825187 470 +59687 91825657 470 +59688 91826127 482 +59689 91826609 470 +59690 91827079 506 +59691 91827585 494 +59692 91828079 9110 +59693 91837189 1076 +59694 91838265 398 +59695 91838663 290 +59696 91838953 266 +59697 91839219 254 +59698 91839473 272 +59699 91839745 194 +59700 91839939 932 +59701 91840871 914 +59702 91841785 158 +59703 91841943 932 +59704 91842875 164 +59705 91843039 914 +59706 91843953 1850 +59707 91845803 1754 +59708 91847557 2492 +59709 91850049 2486 +59710 91852535 2660 +59711 91855195 2222 +59712 91857417 218 +59713 91857635 218 +59714 91857853 218 +59715 91858071 218 +59716 91858289 218 +59717 91858507 218 +59718 91858725 218 +59719 91858943 218 +59720 91859161 1442 +59721 91860603 1448 +59722 91862051 1442 +59723 91863493 1448 +59724 91864941 1850 +59725 91866791 2744 +59726 91869535 2726 +59727 91872261 860 +59728 91873121 860 +59729 91873981 860 +59730 91874841 860 +59731 91875701 2726 +59732 91878427 2702 +59733 91881129 1820 +59734 91882949 1754 +59735 91884703 2372 +59736 91887075 2552 +59737 91889627 1730 +59738 91891357 2366 +59739 91893723 2552 +59740 91896275 482 +59741 91896757 476 +59742 91897233 2336 +59743 91899569 2336 +59744 91901905 3314 +59745 91905219 4772 +59746 91909991 5084 +59747 91915075 1226 +59748 91916301 1226 +59749 91917527 1652 +59750 91919179 1652 +59751 91920831 1652 +59752 91922483 1652 +59753 91924135 1652 +59754 91925787 1652 +59755 91927439 1652 +59756 91929091 1652 +59757 91930743 1652 +59758 91932395 1652 +59759 91934047 1652 +59760 91935699 1652 +59761 91937351 1652 +59762 91939003 4772 +59763 91943775 5084 +59764 91948859 1226 +59765 91950085 1226 +59766 91951311 1652 +59767 91952963 1652 +59768 91954615 1652 +59769 91956267 1652 +59770 91957919 1652 +59771 91959571 1652 +59772 91961223 1652 +59773 91962875 1652 +59774 91964527 1652 +59775 91966179 1652 +59776 91967831 1652 +59777 91969483 1652 +59778 91971135 1652 +59779 91972787 4772 +59780 91977559 5084 +59781 91982643 1226 +59782 91983869 1226 +59783 91985095 1652 +59784 91986747 1652 +59785 91988399 1652 +59786 91990051 1652 +59787 91991703 1652 +59788 91993355 1652 +59789 91995007 1652 +59790 91996659 1652 +59791 91998311 1652 +59792 91999963 1652 +59793 92001615 1652 +59794 92003267 1652 +59795 92004919 1652 +59796 92006571 4772 +59797 92011343 5084 +59798 92016427 1226 +59799 92017653 1226 +59800 92018879 1652 +59801 92020531 1652 +59802 92022183 1652 +59803 92023835 1652 +59804 92025487 1652 +59805 92027139 1652 +59806 92028791 1652 +59807 92030443 1652 +59808 92032095 1652 +59809 92033747 1652 +59810 92035399 1652 +59811 92037051 1652 +59812 92038703 1652 +59813 92040355 4772 +59814 92045127 5084 +59815 92050211 1226 +59816 92051437 1226 +59817 92052663 1652 +59818 92054315 1652 +59819 92055967 1652 +59820 92057619 1652 +59821 92059271 1652 +59822 92060923 1652 +59823 92062575 1652 +59824 92064227 1652 +59825 92065879 1652 +59826 92067531 1652 +59827 92069183 1652 +59828 92070835 1652 +59829 92072487 1652 +59830 92074139 4772 +59831 92078911 5084 +59832 92083995 1226 +59833 92085221 1226 +59834 92086447 1652 +59835 92088099 1652 +59836 92089751 1652 +59837 92091403 1652 +59838 92093055 1652 +59839 92094707 1652 +59840 92096359 1652 +59841 92098011 1652 +59842 92099663 1652 +59843 92101315 1652 +59844 92102967 1652 +59845 92104619 1652 +59846 92106271 1652 +59847 92107923 4772 +59848 92112695 5084 +59849 92117779 1226 +59850 92119005 1226 +59851 92120231 1652 +59852 92121883 1652 +59853 92123535 1652 +59854 92125187 1652 +59855 92126839 1652 +59856 92128491 1652 +59857 92130143 1652 +59858 92131795 1652 +59859 92133447 1652 +59860 92135099 1652 +59861 92136751 1652 +59862 92138403 1652 +59863 92140055 1652 +59864 92141707 4772 +59865 92146479 5084 +59866 92151563 1226 +59867 92152789 1226 +59868 92154015 1652 +59869 92155667 1652 +59870 92157319 1652 +59871 92158971 1652 +59872 92160623 1652 +59873 92162275 1652 +59874 92163927 1652 +59875 92165579 1652 +59876 92167231 1652 +59877 92168883 1652 +59878 92170535 1652 +59879 92172187 1652 +59880 92173839 1652 +59881 92175491 4772 +59882 92180263 5084 +59883 92185347 1226 +59884 92186573 1226 +59885 92187799 1652 +59886 92189451 1652 +59887 92191103 1652 +59888 92192755 1652 +59889 92194407 1652 +59890 92196059 1652 +59891 92197711 1652 +59892 92199363 1652 +59893 92201015 1652 +59894 92202667 1652 +59895 92204319 1652 +59896 92205971 1652 +59897 92207623 1652 +59898 92209275 4772 +59899 92214047 5084 +59900 92219131 1226 +59901 92220357 1226 +59902 92221583 1652 +59903 92223235 1652 +59904 92224887 1652 +59905 92226539 1652 +59906 92228191 1652 +59907 92229843 1652 +59908 92231495 1652 +59909 92233147 1652 +59910 92234799 1652 +59911 92236451 1652 +59912 92238103 1652 +59913 92239755 1652 +59914 92241407 1652 +59915 92243059 4772 +59916 92247831 5084 +59917 92252915 1226 +59918 92254141 1226 +59919 92255367 1652 +59920 92257019 1652 +59921 92258671 1652 +59922 92260323 1652 +59923 92261975 1652 +59924 92263627 1652 +59925 92265279 1652 +59926 92266931 1652 +59927 92268583 1652 +59928 92270235 1652 +59929 92271887 1652 +59930 92273539 1652 +59931 92275191 1652 +59932 92276843 4772 +59933 92281615 5084 +59934 92286699 1226 +59935 92287925 1226 +59936 92289151 1652 +59937 92290803 1652 +59938 92292455 1652 +59939 92294107 1652 +59940 92295759 1652 +59941 92297411 1652 +59942 92299063 1652 +59943 92300715 1652 +59944 92302367 1652 +59945 92304019 1652 +59946 92305671 1652 +59947 92307323 1652 +59948 92308975 1652 +59949 92310627 4772 +59950 92315399 5084 +59951 92320483 1226 +59952 92321709 1226 +59953 92322935 1652 +59954 92324587 1652 +59955 92326239 1652 +59956 92327891 1652 +59957 92329543 1652 +59958 92331195 1652 +59959 92332847 1652 +59960 92334499 1652 +59961 92336151 1652 +59962 92337803 1652 +59963 92339455 1652 +59964 92341107 1652 +59965 92342759 1652 +59966 92344411 4772 +59967 92349183 5084 +59968 92354267 1226 +59969 92355493 1226 +59970 92356719 1652 +59971 92358371 1652 +59972 92360023 1652 +59973 92361675 1652 +59974 92363327 1652 +59975 92364979 1652 +59976 92366631 1652 +59977 92368283 1652 +59978 92369935 1652 +59979 92371587 1652 +59980 92373239 1652 +59981 92374891 1652 +59982 92376543 1652 +59983 92378195 4772 +59984 92382967 5084 +59985 92388051 1226 +59986 92389277 1226 +59987 92390503 1652 +59988 92392155 1652 +59989 92393807 1652 +59990 92395459 1652 +59991 92397111 1652 +59992 92398763 1652 +59993 92400415 1652 +59994 92402067 1652 +59995 92403719 1652 +59996 92405371 1652 +59997 92407023 1652 +59998 92408675 1652 +59999 92410327 1652 +60000 92411979 4772 +60001 92416751 5084 +60002 92421835 1226 +60003 92423061 1226 +60004 92424287 1652 +60005 92425939 1652 +60006 92427591 1652 +60007 92429243 1652 +60008 92430895 1652 +60009 92432547 1652 +60010 92434199 1652 +60011 92435851 1652 +60012 92437503 1652 +60013 92439155 1652 +60014 92440807 1652 +60015 92442459 1652 +60016 92444111 1652 +60017 92445763 4772 +60018 92450535 5084 +60019 92455619 1226 +60020 92456845 1226 +60021 92458071 1652 +60022 92459723 1652 +60023 92461375 1652 +60024 92463027 1652 +60025 92464679 1652 +60026 92466331 1652 +60027 92467983 1652 +60028 92469635 1652 +60029 92471287 1652 +60030 92472939 1652 +60031 92474591 1652 +60032 92476243 1652 +60033 92477895 1652 +60034 92479547 4772 +60035 92484319 5084 +60036 92489403 1226 +60037 92490629 1226 +60038 92491855 1652 +60039 92493507 1652 +60040 92495159 1652 +60041 92496811 1652 +60042 92498463 1652 +60043 92500115 1652 +60044 92501767 1652 +60045 92503419 1652 +60046 92505071 1652 +60047 92506723 1652 +60048 92508375 1652 +60049 92510027 1652 +60050 92511679 1652 +60051 92513331 4772 +60052 92518103 5084 +60053 92523187 1226 +60054 92524413 1226 +60055 92525639 1652 +60056 92527291 1652 +60057 92528943 1652 +60058 92530595 1652 +60059 92532247 1652 +60060 92533899 1652 +60061 92535551 1652 +60062 92537203 1652 +60063 92538855 1652 +60064 92540507 1652 +60065 92542159 1652 +60066 92543811 1652 +60067 92545463 1652 +60068 92547115 4772 +60069 92551887 5084 +60070 92556971 1226 +60071 92558197 1226 +60072 92559423 1652 +60073 92561075 1652 +60074 92562727 1652 +60075 92564379 1652 +60076 92566031 1652 +60077 92567683 1652 +60078 92569335 1652 +60079 92570987 1652 +60080 92572639 1652 +60081 92574291 1652 +60082 92575943 1652 +60083 92577595 1652 +60084 92579247 1652 +60085 92580899 4772 +60086 92585671 5084 +60087 92590755 1226 +60088 92591981 1226 +60089 92593207 1652 +60090 92594859 1652 +60091 92596511 1652 +60092 92598163 1652 +60093 92599815 1652 +60094 92601467 1652 +60095 92603119 1652 +60096 92604771 1652 +60097 92606423 1652 +60098 92608075 1652 +60099 92609727 1652 +60100 92611379 1652 +60101 92613031 1652 +60102 92614683 4772 +60103 92619455 5084 +60104 92624539 1226 +60105 92625765 1226 +60106 92626991 1652 +60107 92628643 1652 +60108 92630295 1652 +60109 92631947 1652 +60110 92633599 1652 +60111 92635251 1652 +60112 92636903 1652 +60113 92638555 1652 +60114 92640207 1652 +60115 92641859 1652 +60116 92643511 1652 +60117 92645163 1652 +60118 92646815 1652 +60119 92648467 4772 +60120 92653239 5084 +60121 92658323 1226 +60122 92659549 1226 +60123 92660775 1652 +60124 92662427 1652 +60125 92664079 1652 +60126 92665731 1652 +60127 92667383 1652 +60128 92669035 1652 +60129 92670687 1652 +60130 92672339 1652 +60131 92673991 1652 +60132 92675643 1652 +60133 92677295 1652 +60134 92678947 1652 +60135 92680599 1652 +60136 92682251 4772 +60137 92687023 5084 +60138 92692107 1226 +60139 92693333 1226 +60140 92694559 1652 +60141 92696211 1652 +60142 92697863 1652 +60143 92699515 1652 +60144 92701167 1652 +60145 92702819 1652 +60146 92704471 1652 +60147 92706123 1652 +60148 92707775 1652 +60149 92709427 1652 +60150 92711079 1652 +60151 92712731 1652 +60152 92714383 1652 +60153 92716035 4772 +60154 92720807 5084 +60155 92725891 1226 +60156 92727117 1226 +60157 92728343 1652 +60158 92729995 1652 +60159 92731647 1652 +60160 92733299 1652 +60161 92734951 1652 +60162 92736603 1652 +60163 92738255 1652 +60164 92739907 1652 +60165 92741559 1652 +60166 92743211 1652 +60167 92744863 1652 +60168 92746515 1652 +60169 92748167 1652 +60170 92749819 4772 +60171 92754591 5084 +60172 92759675 1226 +60173 92760901 1226 +60174 92762127 1652 +60175 92763779 1652 +60176 92765431 1652 +60177 92767083 1652 +60178 92768735 1652 +60179 92770387 1652 +60180 92772039 1652 +60181 92773691 1652 +60182 92775343 1652 +60183 92776995 1652 +60184 92778647 1652 +60185 92780299 1652 +60186 92781951 1652 +60187 92783603 4772 +60188 92788375 5084 +60189 92793459 1226 +60190 92794685 1226 +60191 92795911 1652 +60192 92797563 1652 +60193 92799215 1652 +60194 92800867 1652 +60195 92802519 1652 +60196 92804171 1652 +60197 92805823 1652 +60198 92807475 1652 +60199 92809127 1652 +60200 92810779 1652 +60201 92812431 1652 +60202 92814083 1652 +60203 92815735 1652 +60204 92817387 4772 +60205 92822159 5084 +60206 92827243 1226 +60207 92828469 1226 +60208 92829695 1652 +60209 92831347 1652 +60210 92832999 1652 +60211 92834651 1652 +60212 92836303 1652 +60213 92837955 1652 +60214 92839607 1652 +60215 92841259 1652 +60216 92842911 1652 +60217 92844563 1652 +60218 92846215 1652 +60219 92847867 1652 +60220 92849519 1652 +60221 92851171 4772 +60222 92855943 5084 +60223 92861027 1226 +60224 92862253 1226 +60225 92863479 1652 +60226 92865131 1652 +60227 92866783 1652 +60228 92868435 1652 +60229 92870087 1652 +60230 92871739 1652 +60231 92873391 1652 +60232 92875043 1652 +60233 92876695 1652 +60234 92878347 1652 +60235 92879999 1652 +60236 92881651 1652 +60237 92883303 1652 +60238 92884955 4772 +60239 92889727 5084 +60240 92894811 1226 +60241 92896037 1226 +60242 92897263 1652 +60243 92898915 1652 +60244 92900567 1652 +60245 92902219 1652 +60246 92903871 1652 +60247 92905523 1652 +60248 92907175 1652 +60249 92908827 1652 +60250 92910479 1652 +60251 92912131 1652 +60252 92913783 1652 +60253 92915435 1652 +60254 92917087 1652 +60255 92918739 4772 +60256 92923511 5084 +60257 92928595 1226 +60258 92929821 1226 +60259 92931047 1652 +60260 92932699 1652 +60261 92934351 1652 +60262 92936003 1652 +60263 92937655 1652 +60264 92939307 1652 +60265 92940959 1652 +60266 92942611 1652 +60267 92944263 1652 +60268 92945915 1652 +60269 92947567 1652 +60270 92949219 1652 +60271 92950871 1652 +60272 92952523 4772 +60273 92957295 5084 +60274 92962379 1226 +60275 92963605 1226 +60276 92964831 1652 +60277 92966483 1652 +60278 92968135 1652 +60279 92969787 1652 +60280 92971439 1652 +60281 92973091 1652 +60282 92974743 1652 +60283 92976395 1652 +60284 92978047 1652 +60285 92979699 1652 +60286 92981351 1652 +60287 92983003 1652 +60288 92984655 1652 +60289 92986307 4772 +60290 92991079 5084 +60291 92996163 1226 +60292 92997389 1226 +60293 92998615 1652 +60294 93000267 1652 +60295 93001919 1652 +60296 93003571 1652 +60297 93005223 1652 +60298 93006875 1652 +60299 93008527 1652 +60300 93010179 1652 +60301 93011831 1652 +60302 93013483 1652 +60303 93015135 1652 +60304 93016787 1652 +60305 93018439 1652 +60306 93020091 4772 +60307 93024863 5084 +60308 93029947 1226 +60309 93031173 1226 +60310 93032399 1652 +60311 93034051 1652 +60312 93035703 1652 +60313 93037355 1652 +60314 93039007 1652 +60315 93040659 1652 +60316 93042311 1652 +60317 93043963 1652 +60318 93045615 1652 +60319 93047267 1652 +60320 93048919 1652 +60321 93050571 1652 +60322 93052223 1652 +60323 93053875 4772 +60324 93058647 5084 +60325 93063731 1226 +60326 93064957 1226 +60327 93066183 1652 +60328 93067835 1652 +60329 93069487 1652 +60330 93071139 1652 +60331 93072791 1652 +60332 93074443 1652 +60333 93076095 1652 +60334 93077747 1652 +60335 93079399 1652 +60336 93081051 1652 +60337 93082703 1652 +60338 93084355 1652 +60339 93086007 1652 +60340 93087659 4772 +60341 93092431 5084 +60342 93097515 1226 +60343 93098741 1226 +60344 93099967 1652 +60345 93101619 1652 +60346 93103271 1652 +60347 93104923 1652 +60348 93106575 1652 +60349 93108227 1652 +60350 93109879 1652 +60351 93111531 1652 +60352 93113183 1652 +60353 93114835 1652 +60354 93116487 1652 +60355 93118139 1652 +60356 93119791 1652 +60357 93121443 4772 +60358 93126215 5084 +60359 93131299 1226 +60360 93132525 1226 +60361 93133751 1652 +60362 93135403 1652 +60363 93137055 1652 +60364 93138707 1652 +60365 93140359 1652 +60366 93142011 1652 +60367 93143663 1652 +60368 93145315 1652 +60369 93146967 1652 +60370 93148619 1652 +60371 93150271 1652 +60372 93151923 1652 +60373 93153575 1652 +60374 93155227 4772 +60375 93159999 5084 +60376 93165083 1226 +60377 93166309 1226 +60378 93167535 1652 +60379 93169187 1652 +60380 93170839 1652 +60381 93172491 1652 +60382 93174143 1652 +60383 93175795 1652 +60384 93177447 1652 +60385 93179099 1652 +60386 93180751 1652 +60387 93182403 1652 +60388 93184055 1652 +60389 93185707 1652 +60390 93187359 1652 +60391 93189011 4772 +60392 93193783 5084 +60393 93198867 1226 +60394 93200093 1226 +60395 93201319 1652 +60396 93202971 1652 +60397 93204623 1652 +60398 93206275 1652 +60399 93207927 1652 +60400 93209579 1652 +60401 93211231 1652 +60402 93212883 1652 +60403 93214535 1652 +60404 93216187 1652 +60405 93217839 1652 +60406 93219491 1652 +60407 93221143 1652 +60408 93222795 4772 +60409 93227567 5084 +60410 93232651 1226 +60411 93233877 1226 +60412 93235103 1652 +60413 93236755 1652 +60414 93238407 1652 +60415 93240059 1652 +60416 93241711 1652 +60417 93243363 1652 +60418 93245015 1652 +60419 93246667 1652 +60420 93248319 1652 +60421 93249971 1652 +60422 93251623 1652 +60423 93253275 1652 +60424 93254927 1652 +60425 93256579 4772 +60426 93261351 5084 +60427 93266435 1226 +60428 93267661 1226 +60429 93268887 1652 +60430 93270539 1652 +60431 93272191 1652 +60432 93273843 1652 +60433 93275495 1652 +60434 93277147 1652 +60435 93278799 1652 +60436 93280451 1652 +60437 93282103 1652 +60438 93283755 1652 +60439 93285407 1652 +60440 93287059 1652 +60441 93288711 1652 +60442 93290363 4772 +60443 93295135 5084 +60444 93300219 1226 +60445 93301445 1226 +60446 93302671 1652 +60447 93304323 1652 +60448 93305975 1652 +60449 93307627 1652 +60450 93309279 1652 +60451 93310931 1652 +60452 93312583 1652 +60453 93314235 1652 +60454 93315887 1652 +60455 93317539 1652 +60456 93319191 1652 +60457 93320843 1652 +60458 93322495 1652 +60459 93324147 4772 +60460 93328919 5084 +60461 93334003 1226 +60462 93335229 1226 +60463 93336455 1652 +60464 93338107 1652 +60465 93339759 1652 +60466 93341411 1652 +60467 93343063 1652 +60468 93344715 1652 +60469 93346367 1652 +60470 93348019 1652 +60471 93349671 1652 +60472 93351323 1652 +60473 93352975 1652 +60474 93354627 1652 +60475 93356279 1652 +60476 93357931 4772 +60477 93362703 5084 +60478 93367787 1226 +60479 93369013 1226 +60480 93370239 1652 +60481 93371891 1652 +60482 93373543 1652 +60483 93375195 1652 +60484 93376847 1652 +60485 93378499 1652 +60486 93380151 1652 +60487 93381803 1652 +60488 93383455 1652 +60489 93385107 1652 +60490 93386759 1652 +60491 93388411 1652 +60492 93390063 1652 +60493 93391715 4772 +60494 93396487 5084 +60495 93401571 1226 +60496 93402797 1226 +60497 93404023 1652 +60498 93405675 1652 +60499 93407327 1652 +60500 93408979 1652 +60501 93410631 1652 +60502 93412283 1652 +60503 93413935 1652 +60504 93415587 1652 +60505 93417239 1652 +60506 93418891 1652 +60507 93420543 1652 +60508 93422195 1652 +60509 93423847 1652 +60510 93425499 4772 +60511 93430271 5084 +60512 93435355 1226 +60513 93436581 1226 +60514 93437807 1652 +60515 93439459 1652 +60516 93441111 1652 +60517 93442763 1652 +60518 93444415 1652 +60519 93446067 1652 +60520 93447719 1652 +60521 93449371 1652 +60522 93451023 1652 +60523 93452675 1652 +60524 93454327 1652 +60525 93455979 1652 +60526 93457631 1652 +60527 93459283 4772 +60528 93464055 5084 +60529 93469139 1226 +60530 93470365 1226 +60531 93471591 1652 +60532 93473243 1652 +60533 93474895 1652 +60534 93476547 1652 +60535 93478199 1652 +60536 93479851 1652 +60537 93481503 1652 +60538 93483155 1652 +60539 93484807 1652 +60540 93486459 1652 +60541 93488111 1652 +60542 93489763 1652 +60543 93491415 1652 +60544 93493067 4772 +60545 93497839 5084 +60546 93502923 1226 +60547 93504149 1226 +60548 93505375 1652 +60549 93507027 1652 +60550 93508679 1652 +60551 93510331 1652 +60552 93511983 1652 +60553 93513635 1652 +60554 93515287 1652 +60555 93516939 1652 +60556 93518591 1652 +60557 93520243 1652 +60558 93521895 1652 +60559 93523547 1652 +60560 93525199 1652 +60561 93526851 4772 +60562 93531623 5084 +60563 93536707 1226 +60564 93537933 1226 +60565 93539159 1652 +60566 93540811 1652 +60567 93542463 1652 +60568 93544115 1652 +60569 93545767 1652 +60570 93547419 1652 +60571 93549071 1652 +60572 93550723 1652 +60573 93552375 1652 +60574 93554027 1652 +60575 93555679 1652 +60576 93557331 1652 +60577 93558983 1652 +60578 93560635 4772 +60579 93565407 5084 +60580 93570491 1226 +60581 93571717 1226 +60582 93572943 1652 +60583 93574595 1652 +60584 93576247 1652 +60585 93577899 1652 +60586 93579551 1652 +60587 93581203 1652 +60588 93582855 1652 +60589 93584507 1652 +60590 93586159 1652 +60591 93587811 1652 +60592 93589463 1652 +60593 93591115 1652 +60594 93592767 1652 +60595 93594419 4772 +60596 93599191 5084 +60597 93604275 1226 +60598 93605501 1226 +60599 93606727 1652 +60600 93608379 1652 +60601 93610031 1652 +60602 93611683 1652 +60603 93613335 1652 +60604 93614987 1652 +60605 93616639 1652 +60606 93618291 1652 +60607 93619943 1652 +60608 93621595 1652 +60609 93623247 1652 +60610 93624899 1652 +60611 93626551 1652 +60612 93628203 4772 +60613 93632975 5084 +60614 93638059 1226 +60615 93639285 1226 +60616 93640511 1652 +60617 93642163 1652 +60618 93643815 1652 +60619 93645467 1652 +60620 93647119 1652 +60621 93648771 1652 +60622 93650423 1652 +60623 93652075 1652 +60624 93653727 1652 +60625 93655379 1652 +60626 93657031 1652 +60627 93658683 1652 +60628 93660335 1652 +60629 93661987 4772 +60630 93666759 5084 +60631 93671843 1226 +60632 93673069 1226 +60633 93674295 1652 +60634 93675947 1652 +60635 93677599 1652 +60636 93679251 1652 +60637 93680903 1652 +60638 93682555 1652 +60639 93684207 1652 +60640 93685859 1652 +60641 93687511 1652 +60642 93689163 1652 +60643 93690815 1652 +60644 93692467 1652 +60645 93694119 1652 +60646 93695771 4772 +60647 93700543 5084 +60648 93705627 1226 +60649 93706853 1226 +60650 93708079 1652 +60651 93709731 1652 +60652 93711383 1652 +60653 93713035 1652 +60654 93714687 1652 +60655 93716339 1652 +60656 93717991 1652 +60657 93719643 1652 +60658 93721295 1652 +60659 93722947 1652 +60660 93724599 1652 +60661 93726251 1652 +60662 93727903 1652 +60663 93729555 4772 +60664 93734327 5084 +60665 93739411 1226 +60666 93740637 1226 +60667 93741863 1652 +60668 93743515 1652 +60669 93745167 1652 +60670 93746819 1652 +60671 93748471 1652 +60672 93750123 1652 +60673 93751775 1652 +60674 93753427 1652 +60675 93755079 1652 +60676 93756731 1652 +60677 93758383 1652 +60678 93760035 1652 +60679 93761687 1652 +60680 93763339 4772 +60681 93768111 5084 +60682 93773195 1226 +60683 93774421 1226 +60684 93775647 1652 +60685 93777299 1652 +60686 93778951 1652 +60687 93780603 1652 +60688 93782255 1652 +60689 93783907 1652 +60690 93785559 1652 +60691 93787211 1652 +60692 93788863 1652 +60693 93790515 1652 +60694 93792167 1652 +60695 93793819 1652 +60696 93795471 1652 +60697 93797123 4772 +60698 93801895 5084 +60699 93806979 1226 +60700 93808205 1226 +60701 93809431 1652 +60702 93811083 1652 +60703 93812735 1652 +60704 93814387 1652 +60705 93816039 1652 +60706 93817691 1652 +60707 93819343 1652 +60708 93820995 1652 +60709 93822647 1652 +60710 93824299 1652 +60711 93825951 1652 +60712 93827603 1652 +60713 93829255 1652 +60714 93830907 4772 +60715 93835679 5084 +60716 93840763 1226 +60717 93841989 1226 +60718 93843215 1652 +60719 93844867 1652 +60720 93846519 1652 +60721 93848171 1652 +60722 93849823 1652 +60723 93851475 1652 +60724 93853127 1652 +60725 93854779 1652 +60726 93856431 1652 +60727 93858083 1652 +60728 93859735 1652 +60729 93861387 1652 +60730 93863039 1652 +60731 93864691 4772 +60732 93869463 5084 +60733 93874547 1226 +60734 93875773 1226 +60735 93876999 1652 +60736 93878651 1652 +60737 93880303 1652 +60738 93881955 1652 +60739 93883607 1652 +60740 93885259 1652 +60741 93886911 1652 +60742 93888563 1652 +60743 93890215 1652 +60744 93891867 1652 +60745 93893519 1652 +60746 93895171 1652 +60747 93896823 1652 +60748 93898475 4772 +60749 93903247 5084 +60750 93908331 1226 +60751 93909557 1226 +60752 93910783 1652 +60753 93912435 1652 +60754 93914087 1652 +60755 93915739 1652 +60756 93917391 1652 +60757 93919043 1652 +60758 93920695 1652 +60759 93922347 1652 +60760 93923999 1652 +60761 93925651 1652 +60762 93927303 1652 +60763 93928955 1652 +60764 93930607 1652 +60765 93932259 1609 +60766 93933868 1609 +60767 93935477 1994 +60768 93937471 2396 +60769 93939867 776 +60770 93940643 776 +60771 93941419 1448 +60772 93942867 758 +60773 93943625 758 +60774 93944383 932 +60775 93945315 938 +60776 93946253 956 +60777 93947209 956 +60778 93948165 776 +60779 93948941 968 +60780 93949909 2624 +60781 93952533 2318 +60782 93954851 632 +60783 93955483 2624 +60784 93958107 2318 +60785 93960425 632 +60786 93961057 2048 +60787 93963105 2192 +60788 93965297 2192 +60789 93967489 2192 +60790 93969681 2198 +60791 93971879 2192 +60792 93974071 2198 +60793 93976269 2210 +60794 93978479 2216 +60795 93980695 1844 +60796 93982539 1112 +60797 93983651 1076 +60798 93984727 1112 +60799 93985839 1112 +60800 93986951 1112 +60801 93988063 1112 +60802 93989175 1112 +60803 93990287 1112 +60804 93991399 1112 +60805 93992511 1112 +60806 93993623 1112 +60807 93994735 1094 +60808 93995829 1052 +60809 93996881 518 +60810 93997399 2918 +60811 94000317 2918 +60812 94003235 1982 +60813 94005217 3296 +60814 94008513 3296 +60815 94011809 3968 +60816 94015777 15385 +60817 94031162 1256 +60818 94032418 464 +60819 94032882 1160 +60820 94034042 278 +60821 94034320 626 +60822 94034946 626 +60823 94035572 626 +60824 94036198 626 +60825 94036824 626 +60826 94037450 902 +60827 94038352 1298 +60828 94039650 1256 +60829 94040906 1298 +60830 94042204 1256 +60831 94043460 1808 +60832 94045268 452 +60833 94045720 380 +60834 94046100 452 +60835 94046552 380 +60836 94046932 1868 +60837 94048800 2702 +60838 94051502 1256 +60839 94052758 1334 +60840 94054092 218 +60841 94054310 1346 +60842 94055656 1286 +60843 94056942 1256 +60844 94058198 728 +60845 94058926 728 +60846 94059654 728 +60847 94060382 728 +60848 94061110 1418 +60849 94062528 1418 +60850 94063946 1418 +60851 94065364 5053 +60852 94070417 2336 +60853 94072753 2336 +60854 94075089 4064 +60855 94079153 15157 +60856 94094310 260 +60857 94094570 536 +60858 94095106 260 +60859 94095366 1496 +60860 94096862 1808 +60861 94098670 536 +60862 94099206 260 +60863 94099466 1496 +60864 94100962 1808 +60865 94102770 536 +60866 94103306 1496 +60867 94104802 1808 +60868 94106610 830 +60869 94107440 830 +60870 94108270 830 +60871 94109100 236 +60872 94109336 224 +60873 94109560 242 +60874 94109802 2690 +60875 94112492 1568 +60876 94114060 1574 +60877 94115634 1694 +60878 94117328 1142 +60879 94118470 1142 +60880 94119612 1142 +60881 94120754 2198 +60882 94122952 944 +60883 94123896 1022 +60884 94124918 1022 +60885 94125940 992 +60886 94126932 1022 +60887 94127954 560 +60888 94128514 2210 +60889 94130724 1016 +60890 94131740 1016 +60891 94132756 1016 +60892 94133772 1208 +60893 94134980 1178 +60894 94136158 2864 +60895 94139022 2744 +60896 94141766 2864 +60897 94144630 2744 +60898 94147374 1850 +60899 94149224 2186 +60900 94151410 872 +60901 94152282 1352 +60902 94153634 1352 +60903 94154986 2420 +60904 94157406 2420 +60905 94159826 2420 +60906 94162246 2420 +60907 94164666 956 +60908 94165622 968 +60909 94166590 956 +60910 94167546 968 +60911 94168514 956 +60912 94169470 968 +60913 94170438 956 +60914 94171394 968 +60915 94172362 2402 +60916 94174764 350 +60917 94175114 350 +60918 94175464 632 +60919 94176096 632 +60920 94176728 1862 +60921 94178590 1112 +60922 94179702 1094 +60923 94180796 1004 +60924 94181800 1982 +60925 94183782 3824 +60926 94187606 788 +60927 94188394 746 +60928 94189140 782 +60929 94189922 788 +60930 94190710 746 +60931 94191456 782 +60932 94192238 788 +60933 94193026 746 +60934 94193772 782 +60935 94194554 1310 +60936 94195864 470 +60937 94196334 446 +60938 94196780 2234 +60939 94199014 2246 +60940 94201260 2234 +60941 94203494 2246 +60942 94205740 1436 +60943 94207176 1352 +60944 94208528 1094 +60945 94209622 1274 +60946 94210896 1106 +60947 94212002 1232 +60948 94213234 1100 +60949 94214334 1250 +60950 94215584 1118 +60951 94216702 1292 +60952 94217994 2162 +60953 94220156 2204 +60954 94222360 1364 +60955 94223724 146 +60956 94223870 1364 +60957 94225234 146 +60958 94225380 656 +60959 94226036 644 +60960 94226680 482 +60961 94227162 470 +60962 94227632 464 +60963 94228096 470 +60964 94228566 782 +60965 94229348 1568 +60966 94230916 1328 +60967 94232244 1340 +60968 94233584 1334 +60969 94234918 1370 +60970 94236288 1148 +60971 94237436 1766 +60972 94239202 1790 +60973 94240992 1316 +60974 94242308 1304 +60975 94243612 1340 +60976 94244952 1298 +60977 94246250 3188 +60978 94249438 6758 +60979 94256196 1628 +60980 94257824 1628 +60981 94259452 3392 +60982 94262844 512 +60983 94263356 1736 +60984 94265092 1370 +60985 94266462 2036 +60986 94268498 344 +60987 94268842 1394 +60988 94270236 1478 +60989 94271714 1472 +60990 94273186 1478 +60991 94274664 1472 +60992 94276136 1478 +60993 94277614 1472 +60994 94279086 428 +60995 94279514 428 +60996 94279942 464 +60997 94280406 464 +60998 94280870 440 +60999 94281310 440 +61000 94281750 1346 +61001 94283096 1346 +61002 94284442 1346 +61003 94285788 1340 +61004 94287128 1340 +61005 94288468 1346 +61006 94289814 1040 +61007 94290854 1040 +61008 94291894 1040 +61009 94292934 974 +61010 94293908 1004 +61011 94294912 998 +61012 94295910 434 +61013 94296344 440 +61014 94296784 440 +61015 94297224 434 +61016 94297658 434 +61017 94298092 434 +61018 94298526 926 +61019 94299452 926 +61020 94300378 1916 +61021 94302294 1538 +61022 94303832 1538 +61023 94305370 1334 +61024 94306704 2270 +61025 94308974 746 +61026 94309720 458 +61027 94310178 458 +61028 94310636 464 +61029 94311100 464 +61030 94311564 2270 +61031 94313834 2270 +61032 94316104 62 +61033 94316166 62 +61034 94316228 56 +61035 94316284 728 +61036 94317012 740 +61037 94317752 1160 +61038 94318912 1754 +61039 94320666 1952 +61040 94322618 1160 +61041 94323778 80 +61042 94323858 158 +61043 94324016 1232 +61044 94325248 1322 +61045 94326570 1310 +61046 94327880 1256 +61047 94329136 1484 +61048 94330620 1124 +61049 94331744 194 +61050 94331938 986 +61051 94332924 1004 +61052 94333928 980 +61053 94334908 548 +61054 94335456 860 +61055 94336316 626 +61056 94336942 908 +61057 94337850 818 +61058 94338668 716 +61059 94339384 806 +61060 94340190 716 +61061 94340906 818 +61062 94341724 884 +61063 94342608 590 +61064 94343198 530 +61065 94343728 776 +61066 94344504 848 +61067 94345352 638 +61068 94345990 446 +61069 94346436 608 +61070 94347044 500 +61071 94347544 374 +61072 94347918 320 +61073 94348238 260 +61074 94348498 1838 +61075 94350336 152 +61076 94350488 386 +61077 94350874 392 +61078 94351266 320 +61079 94351586 254 +61080 94351840 644 +61081 94352484 620 +61082 94353104 656 +61083 94353760 638 +61084 94354398 3080 +61085 94357478 3080 +61086 94360558 3080 +61087 94363638 4544 +61088 94368182 1388 +61089 94369570 1388 +61090 94370958 2276 +61091 94373234 2300 +61092 94375534 2012 +61093 94377546 2006 +61094 94379552 1292 +61095 94380844 1292 +61096 94382136 1292 +61097 94383428 1292 +61098 94384720 1292 +61099 94386012 1292 +61100 94387304 1286 +61101 94388590 362 +61102 94388952 2210 +61103 94391162 2210 +61104 94393372 2300 +61105 94395672 2324 +61106 94397996 2666 +61107 94400662 2660 +61108 94403322 542 +61109 94403864 764 +61110 94404628 1022 +61111 94405650 1022 +61112 94406672 614 +61113 94407286 596 +61114 94407882 1088 +61115 94408970 1724 +61116 94410694 998 +61117 94411692 998 +61118 94412690 992 +61119 94413682 992 +61120 94414674 242 +61121 94414916 224 +61122 94415140 182 +61123 94415322 182 +61124 94415504 1034 +61125 94416538 1034 +61126 94417572 848 +61127 94418420 860 +61128 94419280 2774 +61129 94422054 2780 +61130 94424834 488 +61131 94425322 2798 +61132 94428120 2222 +61133 94430342 2798 +61134 94433140 2222 +61135 94435362 2798 +61136 94438160 2222 +61137 94440382 2798 +61138 94443180 2222 +61139 94445402 1034 +61140 94446436 1184 +61141 94447620 1142 +61142 94448762 752 +61143 94449514 752 +61144 94450266 752 +61145 94451018 752 +61146 94451770 1016 +61147 94452786 1016 +61148 94453802 1016 +61149 94454818 1016 +61150 94455834 1100 +61151 94456934 524 +61152 94457458 3632 +61153 94461090 518 +61154 94461608 530 +61155 94462138 1034 +61156 94463172 1052 +61157 94464224 518 +61158 94464742 110 +61159 94464852 74 +61160 94464926 74 +61161 94465000 74 +61162 94465074 758 +61163 94465832 776 +61164 94466608 1742 +61165 94468350 800 +61166 94469150 4346 +61167 94473496 3032 +61168 94476528 3032 +61169 94479560 3032 +61170 94482592 3032 +61171 94485624 3032 +61172 94488656 3032 +61173 94491688 3032 +61174 94494720 3032 +61175 94497752 3032 +61176 94500784 3032 +61177 94503816 3032 +61178 94506848 3032 +61179 94509880 3032 +61180 94512912 3032 +61181 94515944 3032 +61182 94518976 3032 +61183 94522008 3032 +61184 94525040 3032 +61185 94528072 3032 +61186 94531104 3032 +61187 94534136 3032 +61188 94537168 3032 +61189 94540200 3032 +61190 94543232 3032 +61191 94546264 3032 +61192 94549296 3032 +61193 94552328 3032 +61194 94555360 3032 +61195 94558392 3032 +61196 94561424 3032 +61197 94564456 3032 +61198 94567488 3032 +61199 94570520 3032 +61200 94573552 3032 +61201 94576584 3032 +61202 94579616 3032 +61203 94582648 3032 +61204 94585680 3032 +61205 94588712 3032 +61206 94591744 3032 +61207 94594776 3032 +61208 94597808 3032 +61209 94600840 3032 +61210 94603872 3032 +61211 94606904 3032 +61212 94609936 3032 +61213 94612968 3032 +61214 94616000 3032 +61215 94619032 3032 +61216 94622064 3032 +61217 94625096 3032 +61218 94628128 3032 +61219 94631160 3032 +61220 94634192 3032 +61221 94637224 3032 +61222 94640256 3032 +61223 94643288 3032 +61224 94646320 3032 +61225 94649352 3032 +61226 94652384 3032 +61227 94655416 1088 +61228 94656504 1082 +61229 94657586 1082 +61230 94658668 3308 +61231 94661976 1748 +61232 94663724 398 +61233 94664122 398 +61234 94664520 596 +61235 94665116 560 +61236 94665676 1256 +61237 94666932 1256 +61238 94668188 440 +61239 94668628 2084 +61240 94670712 2084 +61241 94672796 926 +61242 94673722 452 +61243 94674174 1988 +61244 94676162 1988 +61245 94678150 830 +61246 94678980 830 +61247 94679810 836 +61248 94680646 830 +61249 94681476 1676 +61250 94683152 452 +61251 94683604 686 +61252 94684290 728 +61253 94685018 572 +61254 94685590 548 +61255 94686138 506 +61256 94686644 326 +61257 94686970 560 +61258 94687530 650 +61259 94688180 368 +61260 94688548 554 +61261 94689102 716 +61262 94689818 176 +61263 94689994 548 +61264 94690542 716 +61265 94691258 182 +61266 94691440 530 +61267 94691970 710 +61268 94692680 194 +61269 94692874 530 +61270 94693404 716 +61271 94694120 788 +61272 94694908 2228 +61273 94697136 2228 +61274 94699364 1622 +61275 94700986 1790 +61276 94702776 326 +61277 94703102 326 +61278 94703428 326 +61279 94703754 536 +61280 94704290 536 +61281 94704826 1112 +61282 94705938 2552 +61283 94708490 818 +61284 94709308 1562 +61285 94710870 1562 +61286 94712432 1562 +61287 94713994 1562 +61288 94715556 1562 +61289 94717118 1562 +61290 94718680 1562 +61291 94720242 1562 +61292 94721804 1904 +61293 94723708 1904 +61294 94725612 170 +61295 94725782 170 +61296 94725952 170 +61297 94726122 170 +61298 94726292 170 +61299 94726462 170 +61300 94726632 1094 +61301 94727726 1076 +61302 94728802 2288 +61303 94731090 1646 +61304 94732736 722 +61305 94733458 602 +61306 94734060 1340 +61307 94735400 4196 +61308 94739596 812 +61309 94740408 1634 +61310 94742042 1118 +61311 94743160 1094 +61312 94744254 500 +61313 94744754 584 +61314 94745338 584 +61315 94745922 2912 +61316 94748834 2252 +61317 94751086 2912 +61318 94753998 2252 +61319 94756250 2912 +61320 94759162 2252 +61321 94761414 2912 +61322 94764326 2252 +61323 94766578 950 +61324 94767528 968 +61325 94768496 974 +61326 94769470 1514 +61327 94770984 1136 +61328 94772120 80 +61329 94772200 896 +61330 94773096 890 +61331 94773986 896 +61332 94774882 1028 +61333 94775910 1010 +61334 94776920 902 +61335 94777822 1760 +61336 94779582 638 +61337 94780220 308 +61338 94780528 284 +61339 94780812 272 +61340 94781084 284 +61341 94781368 104 +61342 94781472 104 +61343 94781576 662 +61344 94782238 464 +61345 94782702 776 +61346 94783478 920 +61347 94784398 1730 +61348 94786128 794 +61349 94786922 1274 +61350 94788196 1046 +61351 94789242 1028 +61352 94790270 1286 +61353 94791556 356 +61354 94791912 638 +61355 94792550 638 +61356 94793188 644 +61357 94793832 1322 +61358 94795154 1328 +61359 94796482 932 +61360 94797414 926 +61361 94798340 1562 +61362 94799902 1562 +61363 94801464 968 +61364 94802432 974 +61365 94803406 968 +61366 94804374 974 +61367 94805348 968 +61368 94806316 974 +61369 94807290 974 +61370 94808264 968 +61371 94809232 974 +61372 94810206 968 +61373 94811174 1052 +61374 94812226 968 +61375 94813194 974 +61376 94814168 968 +61377 94815136 974 +61378 94816110 968 +61379 94817078 974 +61380 94818052 968 +61381 94819020 974 +61382 94819994 968 +61383 94820962 974 +61384 94821936 968 +61385 94822904 974 +61386 94823878 968 +61387 94824846 968 +61388 94825814 968 +61389 94826782 1052 +61390 94827834 974 +61391 94828808 968 +61392 94829776 974 +61393 94830750 968 +61394 94831718 974 +61395 94832692 968 +61396 94833660 974 +61397 94834634 968 +61398 94835602 974 +61399 94836576 968 +61400 94837544 974 +61401 94838518 968 +61402 94839486 974 +61403 94840460 968 +61404 94841428 974 +61405 94842402 968 +61406 94843370 974 +61407 94844344 968 +61408 94845312 974 +61409 94846286 4814 +61410 94851100 4814 +61411 94855914 554 +61412 94856468 554 +61413 94857022 992 +61414 94858014 1070 +61415 94859084 992 +61416 94860076 1070 +61417 94861146 992 +61418 94862138 1070 +61419 94863208 992 +61420 94864200 1070 +61421 94865270 992 +61422 94866262 1070 +61423 94867332 992 +61424 94868324 1070 +61425 94869394 992 +61426 94870386 1070 +61427 94871456 992 +61428 94872448 1070 +61429 94873518 992 +61430 94874510 1070 +61431 94875580 992 +61432 94876572 1070 +61433 94877642 992 +61434 94878634 1070 +61435 94879704 1670 +61436 94881374 2252 +61437 94883626 1478 +61438 94885104 1442 +61439 94886546 992 +61440 94887538 1070 +61441 94888608 992 +61442 94889600 1070 +61443 94890670 992 +61444 94891662 1070 +61445 94892732 992 +61446 94893724 1070 +61447 94894794 992 +61448 94895786 1070 +61449 94896856 992 +61450 94897848 1070 +61451 94898918 992 +61452 94899910 1070 +61453 94900980 992 +61454 94901972 1070 +61455 94903042 992 +61456 94904034 1070 +61457 94905104 992 +61458 94906096 1070 +61459 94907166 992 +61460 94908158 1070 +61461 94909228 992 +61462 94910220 1070 +61463 94911290 992 +61464 94912282 1070 +61465 94913352 992 +61466 94914344 1070 +61467 94915414 992 +61468 94916406 1070 +61469 94917476 992 +61470 94918468 1070 +61471 94919538 992 +61472 94920530 1070 +61473 94921600 992 +61474 94922592 1070 +61475 94923662 992 +61476 94924654 1070 +61477 94925724 992 +61478 94926716 1070 +61479 94927786 992 +61480 94928778 1070 +61481 94929848 992 +61482 94930840 1070 +61483 94931910 992 +61484 94932902 1070 +61485 94933972 992 +61486 94934964 1070 +61487 94936034 1670 +61488 94937704 2252 +61489 94939956 1478 +61490 94941434 1442 +61491 94942876 992 +61492 94943868 1070 +61493 94944938 992 +61494 94945930 1070 +61495 94947000 992 +61496 94947992 1070 +61497 94949062 992 +61498 94950054 1070 +61499 94951124 992 +61500 94952116 1070 +61501 94953186 992 +61502 94954178 1070 +61503 94955248 992 +61504 94956240 1070 +61505 94957310 992 +61506 94958302 1070 +61507 94959372 992 +61508 94960364 1070 +61509 94961434 992 +61510 94962426 1070 +61511 94963496 992 +61512 94964488 1070 +61513 94965558 992 +61514 94966550 1070 +61515 94967620 992 +61516 94968612 1070 +61517 94969682 992 +61518 94970674 1070 +61519 94971744 992 +61520 94972736 1070 +61521 94973806 992 +61522 94974798 1070 +61523 94975868 992 +61524 94976860 1070 +61525 94977930 992 +61526 94978922 1070 +61527 94979992 992 +61528 94980984 1070 +61529 94982054 992 +61530 94983046 1070 +61531 94984116 992 +61532 94985108 1070 +61533 94986178 992 +61534 94987170 1070 +61535 94988240 992 +61536 94989232 1070 +61537 94990302 992 +61538 94991294 1070 +61539 94992364 1370 +61540 94993734 1994 +61541 94995728 1670 +61542 94997398 1478 +61543 94998876 980 +61544 94999856 980 +61545 95000836 1040 +61546 95001876 980 +61547 95002856 1040 +61548 95003896 980 +61549 95004876 1040 +61550 95005916 1040 +61551 95006956 980 +61552 95007936 1040 +61553 95008976 980 +61554 95009956 1040 +61555 95010996 992 +61556 95011988 1070 +61557 95013058 992 +61558 95014050 1070 +61559 95015120 992 +61560 95016112 1070 +61561 95017182 992 +61562 95018174 1070 +61563 95019244 992 +61564 95020236 1070 +61565 95021306 992 +61566 95022298 1070 +61567 95023368 992 +61568 95024360 1070 +61569 95025430 992 +61570 95026422 1070 +61571 95027492 992 +61572 95028484 1070 +61573 95029554 992 +61574 95030546 1070 +61575 95031616 992 +61576 95032608 1070 +61577 95033678 992 +61578 95034670 1070 +61579 95035740 992 +61580 95036732 1070 +61581 95037802 992 +61582 95038794 1070 +61583 95039864 992 +61584 95040856 1070 +61585 95041926 992 +61586 95042918 1070 +61587 95043988 992 +61588 95044980 1070 +61589 95046050 992 +61590 95047042 1070 +61591 95048112 1370 +61592 95049482 1994 +61593 95051476 1670 +61594 95053146 1478 +61595 95054624 980 +61596 95055604 980 +61597 95056584 1040 +61598 95057624 980 +61599 95058604 1040 +61600 95059644 980 +61601 95060624 1040 +61602 95061664 1040 +61603 95062704 980 +61604 95063684 1040 +61605 95064724 980 +61606 95065704 1040 +61607 95066744 992 +61608 95067736 1070 +61609 95068806 992 +61610 95069798 1070 +61611 95070868 992 +61612 95071860 1070 +61613 95072930 992 +61614 95073922 1070 +61615 95074992 992 +61616 95075984 1070 +61617 95077054 992 +61618 95078046 1070 +61619 95079116 992 +61620 95080108 1070 +61621 95081178 1070 +61622 95082248 1070 +61623 95083318 1070 +61624 95084388 992 +61625 95085380 992 +61626 95086372 992 +61627 95087364 992 +61628 95088356 992 +61629 95089348 992 +61630 95090340 1070 +61631 95091410 992 +61632 95092402 1070 +61633 95093472 992 +61634 95094464 1070 +61635 95095534 992 +61636 95096526 1070 +61637 95097596 986 +61638 95098582 1070 +61639 95099652 992 +61640 95100644 1070 +61641 95101714 992 +61642 95102706 1070 +61643 95103776 992 +61644 95104768 1070 +61645 95105838 992 +61646 95106830 1070 +61647 95107900 992 +61648 95108892 1070 +61649 95109962 992 +61650 95110954 1070 +61651 95112024 992 +61652 95113016 1070 +61653 95114086 992 +61654 95115078 1070 +61655 95116148 1070 +61656 95117218 1070 +61657 95118288 1070 +61658 95119358 1070 +61659 95120428 1070 +61660 95121498 992 +61661 95122490 992 +61662 95123482 992 +61663 95124474 992 +61664 95125466 992 +61665 95126458 992 +61666 95127450 1070 +61667 95128520 992 +61668 95129512 1070 +61669 95130582 992 +61670 95131574 1070 +61671 95132644 992 +61672 95133636 1070 +61673 95134706 992 +61674 95135698 1070 +61675 95136768 992 +61676 95137760 1070 +61677 95138830 992 +61678 95139822 1070 +61679 95140892 1070 +61680 95141962 1070 +61681 95143032 1070 +61682 95144102 1070 +61683 95145172 1070 +61684 95146242 992 +61685 95147234 992 +61686 95148226 992 +61687 95149218 992 +61688 95150210 992 +61689 95151202 992 +61690 95152194 1070 +61691 95153264 992 +61692 95154256 1070 +61693 95155326 992 +61694 95156318 1070 +61695 95157388 986 +61696 95158374 1070 +61697 95159444 992 +61698 95160436 1070 +61699 95161506 992 +61700 95162498 1070 +61701 95163568 992 +61702 95164560 1070 +61703 95165630 992 +61704 95166622 1070 +61705 95167692 992 +61706 95168684 1070 +61707 95169754 992 +61708 95170746 1070 +61709 95171816 992 +61710 95172808 1070 +61711 95173878 992 +61712 95174870 1070 +61713 95175940 992 +61714 95176932 1070 +61715 95178002 1070 +61716 95179072 1070 +61717 95180142 1070 +61718 95181212 1070 +61719 95182282 1070 +61720 95183352 992 +61721 95184344 992 +61722 95185336 992 +61723 95186328 992 +61724 95187320 992 +61725 95188312 992 +61726 95189304 1070 +61727 95190374 992 +61728 95191366 1070 +61729 95192436 992 +61730 95193428 1070 +61731 95194498 992 +61732 95195490 1070 +61733 95196560 992 +61734 95197552 1070 +61735 95198622 992 +61736 95199614 1070 +61737 95200684 992 +61738 95201676 1070 +61739 95202746 1070 +61740 95203816 1070 +61741 95204886 2180 +61742 95207066 1670 +61743 95208736 1478 +61744 95210214 1442 +61745 95211656 1442 +61746 95213098 2180 +61747 95215278 1670 +61748 95216948 1478 +61749 95218426 1442 +61750 95219868 1442 +61751 95221310 992 +61752 95222302 1070 +61753 95223372 992 +61754 95224364 1070 +61755 95225434 992 +61756 95226426 1070 +61757 95227496 992 +61758 95228488 1070 +61759 95229558 992 +61760 95230550 1070 +61761 95231620 992 +61762 95232612 1070 +61763 95233682 992 +61764 95234674 1070 +61765 95235744 992 +61766 95236736 1070 +61767 95237806 992 +61768 95238798 1070 +61769 95239868 992 +61770 95240860 1070 +61771 95241930 992 +61772 95242922 1070 +61773 95243992 1364 +61774 95245356 1994 +61775 95247350 1478 +61776 95248828 1670 +61777 95250498 980 +61778 95251478 1040 +61779 95252518 980 +61780 95253498 1040 +61781 95254538 980 +61782 95255518 1040 +61783 95256558 980 +61784 95257538 1040 +61785 95258578 980 +61786 95259558 1040 +61787 95260598 980 +61788 95261578 1040 +61789 95262618 992 +61790 95263610 1070 +61791 95264680 992 +61792 95265672 1070 +61793 95266742 992 +61794 95267734 1070 +61795 95268804 992 +61796 95269796 1070 +61797 95270866 992 +61798 95271858 1070 +61799 95272928 992 +61800 95273920 1070 +61801 95274990 992 +61802 95275982 1070 +61803 95277052 992 +61804 95278044 1070 +61805 95279114 992 +61806 95280106 1070 +61807 95281176 992 +61808 95282168 1070 +61809 95283238 992 +61810 95284230 1070 +61811 95285300 992 +61812 95286292 1070 +61813 95287362 992 +61814 95288354 1070 +61815 95289424 992 +61816 95290416 1070 +61817 95291486 992 +61818 95292478 1070 +61819 95293548 992 +61820 95294540 1070 +61821 95295610 992 +61822 95296602 1070 +61823 95297672 992 +61824 95298664 1070 +61825 95299734 1364 +61826 95301098 1994 +61827 95303092 1478 +61828 95304570 1670 +61829 95306240 980 +61830 95307220 1040 +61831 95308260 980 +61832 95309240 1040 +61833 95310280 980 +61834 95311260 1040 +61835 95312300 980 +61836 95313280 1040 +61837 95314320 980 +61838 95315300 1040 +61839 95316340 980 +61840 95317320 1040 +61841 95318360 992 +61842 95319352 1070 +61843 95320422 992 +61844 95321414 1070 +61845 95322484 992 +61846 95323476 1070 +61847 95324546 992 +61848 95325538 1070 +61849 95326608 992 +61850 95327600 1070 +61851 95328670 992 +61852 95329662 1070 +61853 95330732 992 +61854 95331724 1070 +61855 95332794 992 +61856 95333786 1070 +61857 95334856 992 +61858 95335848 1070 +61859 95336918 992 +61860 95337910 1070 +61861 95338980 992 +61862 95339972 1070 +61863 95341042 992 +61864 95342034 1070 +61865 95343104 992 +61866 95344096 1070 +61867 95345166 992 +61868 95346158 1070 +61869 95347228 992 +61870 95348220 1070 +61871 95349290 992 +61872 95350282 1070 +61873 95351352 992 +61874 95352344 1070 +61875 95353414 992 +61876 95354406 1070 +61877 95355476 1376 +61878 95356852 1994 +61879 95358846 1670 +61880 95360516 1478 +61881 95361994 980 +61882 95362974 1040 +61883 95364014 980 +61884 95364994 1040 +61885 95366034 980 +61886 95367014 1040 +61887 95368054 980 +61888 95369034 1040 +61889 95370074 980 +61890 95371054 1040 +61891 95372094 980 +61892 95373074 1040 +61893 95374114 992 +61894 95375106 1070 +61895 95376176 1070 +61896 95377246 1070 +61897 95378316 1070 +61898 95379386 1070 +61899 95380456 1070 +61900 95381526 992 +61901 95382518 992 +61902 95383510 992 +61903 95384502 992 +61904 95385494 992 +61905 95386486 992 +61906 95387478 1070 +61907 95388548 992 +61908 95389540 1070 +61909 95390610 992 +61910 95391602 1070 +61911 95392672 992 +61912 95393664 1070 +61913 95394734 992 +61914 95395726 1070 +61915 95396796 992 +61916 95397788 1070 +61917 95398858 992 +61918 95399850 1070 +61919 95400920 992 +61920 95401912 1070 +61921 95402982 992 +61922 95403974 1070 +61923 95405044 992 +61924 95406036 1070 +61925 95407106 992 +61926 95408098 1070 +61927 95409168 992 +61928 95410160 1070 +61929 95411230 1376 +61930 95412606 1994 +61931 95414600 1670 +61932 95416270 1478 +61933 95417748 980 +61934 95418728 1040 +61935 95419768 980 +61936 95420748 1040 +61937 95421788 980 +61938 95422768 1040 +61939 95423808 980 +61940 95424788 1040 +61941 95425828 980 +61942 95426808 1040 +61943 95427848 980 +61944 95428828 1040 +61945 95429868 992 +61946 95430860 1070 +61947 95431930 1070 +61948 95433000 1070 +61949 95434070 1070 +61950 95435140 1070 +61951 95436210 1070 +61952 95437280 992 +61953 95438272 992 +61954 95439264 992 +61955 95440256 992 +61956 95441248 992 +61957 95442240 992 +61958 95443232 1070 +61959 95444302 992 +61960 95445294 1070 +61961 95446364 992 +61962 95447356 992 +61963 95448348 1070 +61964 95449418 1070 +61965 95450488 992 +61966 95451480 1070 +61967 95452550 992 +61968 95453542 1070 +61969 95454612 992 +61970 95455604 1070 +61971 95456674 1070 +61972 95457744 1070 +61973 95458814 1070 +61974 95459884 1070 +61975 95460954 1070 +61976 95462024 1070 +61977 95463094 992 +61978 95464086 992 +61979 95465078 992 +61980 95466070 992 +61981 95467062 992 +61982 95468054 992 +61983 95469046 1070 +61984 95470116 992 +61985 95471108 992 +61986 95472100 992 +61987 95473092 992 +61988 95474084 1070 +61989 95475154 992 +61990 95476146 1070 +61991 95477216 992 +61992 95478208 1070 +61993 95479278 1070 +61994 95480348 1070 +61995 95481418 992 +61996 95482410 1070 +61997 95483480 992 +61998 95484472 1070 +61999 95485542 992 +62000 95486534 1070 +62001 95487604 992 +62002 95488596 1070 +62003 95489666 992 +62004 95490658 1070 +62005 95491728 992 +62006 95492720 1070 +62007 95493790 1670 +62008 95495460 1670 +62009 95497130 1826 +62010 95498956 1826 +62011 95500782 992 +62012 95501774 1070 +62013 95502844 992 +62014 95503836 1070 +62015 95504906 992 +62016 95505898 1070 +62017 95506968 992 +62018 95507960 1070 +62019 95509030 992 +62020 95510022 992 +62021 95511014 1070 +62022 95512084 1070 +62023 95513154 992 +62024 95514146 1070 +62025 95515216 992 +62026 95516208 1070 +62027 95517278 992 +62028 95518270 1070 +62029 95519340 992 +62030 95520332 1070 +62031 95521402 992 +62032 95522394 1070 +62033 95523464 992 +62034 95524456 1070 +62035 95525526 1070 +62036 95526596 992 +62037 95527588 992 +62038 95528580 1070 +62039 95529650 1070 +62040 95530720 992 +62041 95531712 1070 +62042 95532782 992 +62043 95533774 1070 +62044 95534844 992 +62045 95535836 1070 +62046 95536906 992 +62047 95537898 992 +62048 95538890 1070 +62049 95539960 992 +62050 95540952 1070 +62051 95542022 992 +62052 95543014 1070 +62053 95544084 992 +62054 95545076 1070 +62055 95546146 992 +62056 95547138 1070 +62057 95548208 992 +62058 95549200 1070 +62059 95550270 1406 +62060 95551676 1406 +62061 95553082 1670 +62062 95554752 1664 +62063 95556416 992 +62064 95557408 1070 +62065 95558478 992 +62066 95559470 1070 +62067 95560540 992 +62068 95561532 1070 +62069 95562602 992 +62070 95563594 1070 +62071 95564664 992 +62072 95565656 1070 +62073 95566726 992 +62074 95567718 1070 +62075 95568788 992 +62076 95569780 1070 +62077 95570850 992 +62078 95571842 1070 +62079 95572912 992 +62080 95573904 1070 +62081 95574974 992 +62082 95575966 1070 +62083 95577036 992 +62084 95578028 1070 +62085 95579098 992 +62086 95580090 1070 +62087 95581160 1862 +62088 95583022 1862 +62089 95584884 992 +62090 95585876 1070 +62091 95586946 992 +62092 95587938 1070 +62093 95589008 992 +62094 95590000 1070 +62095 95591070 992 +62096 95592062 1070 +62097 95593132 992 +62098 95594124 1070 +62099 95595194 992 +62100 95596186 1070 +62101 95597256 992 +62102 95598248 1070 +62103 95599318 992 +62104 95600310 1070 +62105 95601380 992 +62106 95602372 1070 +62107 95603442 992 +62108 95604434 1070 +62109 95605504 992 +62110 95606496 1070 +62111 95607566 992 +62112 95608558 1070 +62113 95609628 1514 +62114 95611142 1514 +62115 95612656 1070 +62116 95613726 992 +62117 95614718 1070 +62118 95615788 1184 +62119 95616972 992 +62120 95617964 1070 +62121 95619034 992 +62122 95620026 992 +62123 95621018 1070 +62124 95622088 1070 +62125 95623158 992 +62126 95624150 992 +62127 95625142 1070 +62128 95626212 992 +62129 95627204 1070 +62130 95628274 992 +62131 95629266 1070 +62132 95630336 992 +62133 95631328 1070 +62134 95632398 992 +62135 95633390 1070 +62136 95634460 992 +62137 95635452 1070 +62138 95636522 992 +62139 95637514 1070 +62140 95638584 1184 +62141 95639768 1070 +62142 95640838 992 +62143 95641830 992 +62144 95642822 1070 +62145 95643892 1070 +62146 95644962 992 +62147 95645954 1070 +62148 95647024 992 +62149 95648016 1070 +62150 95649086 992 +62151 95650078 1070 +62152 95651148 992 +62153 95652140 992 +62154 95653132 1070 +62155 95654202 992 +62156 95655194 1070 +62157 95656264 992 +62158 95657256 1070 +62159 95658326 992 +62160 95659318 1070 +62161 95660388 992 +62162 95661380 1070 +62163 95662450 992 +62164 95663442 1070 +62165 95664512 1568 +62166 95666080 1568 +62167 95667648 992 +62168 95668640 1070 +62169 95669710 992 +62170 95670702 1070 +62171 95671772 992 +62172 95672764 992 +62173 95673756 1070 +62174 95674826 1070 +62175 95675896 992 +62176 95676888 1070 +62177 95677958 992 +62178 95678950 1070 +62179 95680020 992 +62180 95681012 1070 +62181 95682082 992 +62182 95683074 1070 +62183 95684144 992 +62184 95685136 1070 +62185 95686206 992 +62186 95687198 1070 +62187 95688268 992 +62188 95689260 1070 +62189 95690330 992 +62190 95691322 1070 +62191 95692392 1382 +62192 95693774 1382 +62193 95695156 992 +62194 95696148 992 +62195 95697140 1070 +62196 95698210 1070 +62197 95699280 884 +62198 95700164 884 +62199 95701048 896 +62200 95701944 896 +62201 95702840 872 +62202 95703712 872 +62203 95704584 878 +62204 95705462 878 +62205 95706340 878 +62206 95707218 878 +62207 95708096 878 +62208 95708974 878 +62209 95709852 872 +62210 95710724 872 +62211 95711596 890 +62212 95712486 884 +62213 95713370 872 +62214 95714242 872 +62215 95715114 890 +62216 95716004 890 +62217 95716894 1646 +62218 95718540 1646 +62219 95720186 2174 +62220 95722360 716 +62221 95723076 1382 +62222 95724458 716 +62223 95725174 1382 +62224 95726556 716 +62225 95727272 1376 +62226 95728648 716 +62227 95729364 1376 +62228 95730740 2156 +62229 95732896 452 +62230 95733348 422 +62231 95733770 7801 +62232 95741571 7801 +62233 95749372 7645 +62234 95757017 7645 +62235 95764662 446 +62236 95765108 446 +62237 95765554 464 +62238 95766018 452 +62239 95766470 440 +62240 95766910 440 +62241 95767350 446 +62242 95767796 446 +62243 95768242 2432 +62244 95770674 4178 +62245 95774852 4202 +62246 95779054 812 +62247 95779866 674 +62248 95780540 674 +62249 95781214 668 +62250 95781882 1610 +62251 95783492 5486 +62252 95788978 3284 +62253 95792262 4160 +62254 95796422 2744 +62255 95799166 2606 +62256 95801772 524 +62257 95802296 1910 +62258 95804206 734 +62259 95804940 1442 +62260 95806382 1304 +62261 95807686 1148 +62262 95808834 1082 +62263 95809916 1058 +62264 95810974 542 +62265 95811516 710 +62266 95812226 470 +62267 95812696 746 +62268 95813442 518 +62269 95813960 644 +62270 95814604 1052 +62271 95815656 1034 +62272 95816690 734 +62273 95817424 1010 +62274 95818434 746 +62275 95819180 1094 +62276 95820274 752 +62277 95821026 392 +62278 95821418 272 +62279 95821690 548 +62280 95822238 320 +62281 95822558 488 +62282 95823046 464 +62283 95823510 824 +62284 95824334 506 +62285 95824840 548 +62286 95825388 692 +62287 95826080 1982 +62288 95828062 2822 +62289 95830884 704 +62290 95831588 2918 +62291 95834506 3932 +62292 95838438 1088 +62293 95839526 470 +62294 95839996 524 +62295 95840520 1532 +62296 95842052 1544 +62297 95843596 1922 +62298 95845518 1136 +62299 95846654 1178 +62300 95847832 1706 +62301 95849538 1640 +62302 95851178 1538 +62303 95852716 2888 +62304 95855604 1274 +62305 95856878 1802 +62306 95858680 1850 +62307 95860530 872 +62308 95861402 872 +62309 95862274 494 +62310 95862768 506 +62311 95863274 560 +62312 95863834 500 +62313 95864334 1658 +62314 95865992 1736 +62315 95867728 2252 +62316 95869980 2066 +62317 95872046 434 +62318 95872480 470 +62319 95872950 2168 +62320 95875118 2168 +62321 95877286 2168 +62322 95879454 2168 +62323 95881622 1982 +62324 95883604 1982 +62325 95885586 1982 +62326 95887568 1982 +62327 95889550 1982 +62328 95891532 1982 +62329 95893514 3110 +62330 95896624 962 +62331 95897586 962 +62332 95898548 962 +62333 95899510 962 +62334 95900472 3110 +62335 95903582 668 +62336 95904250 2618 +62337 95906868 2354 +62338 95909222 824 +62339 95910046 2354 +62340 95912400 824 +62341 95913224 404 +62342 95913628 404 +62343 95914032 398 +62344 95914430 404 +62345 95914834 404 +62346 95915238 446 +62347 95915684 3560 +62348 95919244 3566 +62349 95922810 3560 +62350 95926370 3566 +62351 95929936 1544 +62352 95931480 1538 +62353 95933018 3626 +62354 95936644 3626 +62355 95940270 3626 +62356 95943896 1646 +62357 95945542 590 +62358 95946132 62 +62359 95946194 2168 +62360 95948362 1100 +62361 95949462 824 +62362 95950286 2588 +62363 95952874 1790 +62364 95954664 1436 +62365 95956100 1436 +62366 95957536 1436 +62367 95958972 1436 +62368 95960408 1436 +62369 95961844 1280 +62370 95963124 1796 +62371 95964920 1790 +62372 95966710 566 +62373 95967276 56 +62374 95967332 2282 +62375 95969614 698 +62376 95970312 698 +62377 95971010 2282 +62378 95973292 1322 +62379 95974614 1316 +62380 95975930 1322 +62381 95977252 1316 +62382 95978568 4256 +62383 95982824 242 +62384 95983066 236 +62385 95983302 1478 +62386 95984780 1580 +62387 95986360 1580 +62388 95987940 2582 +62389 95990522 2888 +62390 95993410 518 +62391 95993928 2876 +62392 95996804 518 +62393 95997322 2876 +62394 96000198 518 +62395 96000716 2060 +62396 96002776 1136 +62397 96003912 1148 +62398 96005060 2108 +62399 96007168 650 +62400 96007818 62 +62401 96007880 2240 +62402 96010120 2252 +62403 96012372 2252 +62404 96014624 2252 +62405 96016876 2252 +62406 96019128 2252 +62407 96021380 1004 +62408 96022384 1448 +62409 96023832 1376 +62410 96025208 1388 +62411 96026596 1010 +62412 96027606 1040 +62413 96028646 554 +62414 96029200 560 +62415 96029760 464 +62416 96030224 470 +62417 96030694 476 +62418 96031170 1040 +62419 96032210 1040 +62420 96033250 794 +62421 96034044 194 +62422 96034238 194 +62423 96034432 194 +62424 96034626 194 +62425 96034820 194 +62426 96035014 194 +62427 96035208 194 +62428 96035402 194 +62429 96035596 1880 +62430 96037476 380 +62431 96037856 380 +62432 96038236 380 +62433 96038616 380 +62434 96038996 380 +62435 96039376 380 +62436 96039756 380 +62437 96040136 380 +62438 96040516 380 +62439 96040896 380 +62440 96041276 380 +62441 96041656 380 +62442 96042036 380 +62443 96042416 380 +62444 96042796 380 +62445 96043176 380 +62446 96043556 1322 +62447 96044878 1322 +62448 96046200 794 +62449 96046994 794 +62450 96047788 1070 +62451 96048858 1058 +62452 96049916 1286 +62453 96051202 1286 +62454 96052488 2024 +62455 96054512 56 +62456 96054568 1754 +62457 96056322 1082 +62458 96057404 746 +62459 96058150 368 +62460 96058518 62 +62461 96058580 1502 +62462 96060082 1532 +62463 96061614 1502 +62464 96063116 1532 +62465 96064648 818 +62466 96065466 584 +62467 96066050 812 +62468 96066862 578 +62469 96067440 470 +62470 96067910 470 +62471 96068380 470 +62472 96068850 1448 +62473 96070298 404 +62474 96070702 410 +62475 96071112 416 +62476 96071528 398 +62477 96071926 962 +62478 96072888 1238 +62479 96074126 1370 +62480 96075496 1226 +62481 96076722 1004 +62482 96077726 1172 +62483 96078898 4460 +62484 96083358 4400 +62485 96087758 488 +62486 96088246 866 +62487 96089112 380 +62488 96089492 998 +62489 96090490 578 +62490 96091068 584 +62491 96091652 218 +62492 96091870 254 +62493 96092124 530 +62494 96092654 956 +62495 96093610 194 +62496 96093804 554 +62497 96094358 584 +62498 96094942 1214 +62499 96096156 1358 +62500 96097514 1214 +62501 96098728 1220 +62502 96099948 1214 +62503 96101162 1214 +62504 96102376 1190 +62505 96103566 1208 +62506 96104774 1184 +62507 96105958 338 +62508 96106296 314 +62509 96106610 320 +62510 96106930 320 +62511 96107250 338 +62512 96107588 314 +62513 96107902 320 +62514 96108222 320 +62515 96108542 338 +62516 96108880 314 +62517 96109194 320 +62518 96109514 320 +62519 96109834 338 +62520 96110172 314 +62521 96110486 320 +62522 96110806 320 +62523 96111126 1022 +62524 96112148 1796 +62525 96113944 1796 +62526 96115740 2066 +62527 96117806 2108 +62528 96119914 2252 +62529 96122166 2084 +62530 96124250 9944 +62531 96134194 4958 +62532 96139152 2204 +62533 96141356 9944 +62534 96151300 4958 +62535 96156258 2204 +62536 96158462 9944 +62537 96168406 4958 +62538 96173364 2204 +62539 96175568 9944 +62540 96185512 4958 +62541 96190470 2204 +62542 96192674 9944 +62543 96202618 4958 +62544 96207576 2204 +62545 96209780 9944 +62546 96219724 4958 +62547 96224682 2204 +62548 96226886 9944 +62549 96236830 4958 +62550 96241788 2204 +62551 96243992 9944 +62552 96253936 4958 +62553 96258894 2204 +62554 96261098 9944 +62555 96271042 4958 +62556 96276000 2204 +62557 96278204 9944 +62558 96288148 4958 +62559 96293106 2204 +62560 96295310 2024 +62561 96297334 1388 +62562 96298722 74 +62563 96298796 1244 +62564 96300040 1328 +62565 96301368 2462 +62566 96303830 728 +62567 96304558 734 +62568 96305292 674 +62569 96305966 692 +62570 96306658 704 +62571 96307362 494 +62572 96307856 464 +62573 96308320 458 +62574 96308778 2456 +62575 96311234 1112 +62576 96312346 1094 +62577 96313440 2348 +62578 96315788 3098 +62579 96318886 1016 +62580 96319902 824 +62581 96320726 2348 +62582 96323074 3098 +62583 96326172 1016 +62584 96327188 824 +62585 96328012 2342 +62586 96330354 3074 +62587 96333428 1016 +62588 96334444 824 +62589 96335268 2342 +62590 96337610 3074 +62591 96340684 1016 +62592 96341700 824 +62593 96342524 2342 +62594 96344866 3098 +62595 96347964 1010 +62596 96348974 824 +62597 96349798 2342 +62598 96352140 3098 +62599 96355238 1010 +62600 96356248 824 +62601 96357072 560 +62602 96357632 560 +62603 96358192 584 +62604 96358776 560 +62605 96359336 584 +62606 96359920 656 +62607 96360576 1610 +62608 96362186 1934 +62609 96364120 764 +62610 96364884 1376 +62611 96366260 32 +62612 96366292 1604 +62613 96367896 1556 +62614 96369452 1514 +62615 96370966 1538 +62616 96372504 1094 +62617 96373598 1718 +62618 96375316 1670 +62619 96376986 1832 +62620 96378818 644 +62621 96379462 1820 +62622 96381282 602 +62623 96381884 1022 +62624 96382906 1010 +62625 96383916 1010 +62626 96384926 722 +62627 96385648 806 +62628 96386454 800 +62629 96387254 806 +62630 96388060 2294 +62631 96390354 2294 +62632 96392648 2726 +62633 96395374 518 +62634 96395892 512 +62635 96396404 1862 +62636 96398266 1826 +62637 96400092 1652 +62638 96401744 2558 +62639 96404302 1562 +62640 96405864 2696 +62641 96408560 4322 +62642 96412882 4322 +62643 96417204 4322 +62644 96421526 4322 +62645 96425848 4322 +62646 96430170 4322 +62647 96434492 4322 +62648 96438814 4322 +62649 96443136 1358 +62650 96444494 416 +62651 96444910 452 +62652 96445362 368 +62653 96445730 2048 +62654 96447778 2114 +62655 96449892 1010 +62656 96450902 1010 +62657 96451912 1010 +62658 96452922 1010 +62659 96453932 1010 +62660 96454942 1010 +62661 96455952 1010 +62662 96456962 1010 +62663 96457972 1010 +62664 96458982 1010 +62665 96459992 1010 +62666 96461002 1010 +62667 96462012 1010 +62668 96463022 1010 +62669 96464032 1010 +62670 96465042 1010 +62671 96466052 1010 +62672 96467062 1010 +62673 96468072 1010 +62674 96469082 1010 +62675 96470092 1010 +62676 96471102 1010 +62677 96472112 1010 +62678 96473122 1010 +62679 96474132 1010 +62680 96475142 1010 +62681 96476152 1010 +62682 96477162 1010 +62683 96478172 1010 +62684 96479182 1010 +62685 96480192 1010 +62686 96481202 1010 +62687 96482212 1010 +62688 96483222 1010 +62689 96484232 1010 +62690 96485242 1010 +62691 96486252 1010 +62692 96487262 1010 +62693 96488272 1010 +62694 96489282 1010 +62695 96490292 1010 +62696 96491302 1010 +62697 96492312 1010 +62698 96493322 1010 +62699 96494332 1010 +62700 96495342 1010 +62701 96496352 1010 +62702 96497362 1010 +62703 96498372 1010 +62704 96499382 1010 +62705 96500392 1010 +62706 96501402 1010 +62707 96502412 1010 +62708 96503422 1010 +62709 96504432 1010 +62710 96505442 1010 +62711 96506452 1010 +62712 96507462 1010 +62713 96508472 1010 +62714 96509482 1010 +62715 96510492 1010 +62716 96511502 1010 +62717 96512512 1010 +62718 96513522 1010 +62719 96514532 1010 +62720 96515542 1010 +62721 96516552 1010 +62722 96517562 1010 +62723 96518572 1010 +62724 96519582 1010 +62725 96520592 1010 +62726 96521602 1010 +62727 96522612 1010 +62728 96523622 1010 +62729 96524632 1010 +62730 96525642 1010 +62731 96526652 1010 +62732 96527662 1010 +62733 96528672 1010 +62734 96529682 1010 +62735 96530692 1010 +62736 96531702 1010 +62737 96532712 1010 +62738 96533722 1010 +62739 96534732 1010 +62740 96535742 1010 +62741 96536752 1010 +62742 96537762 1010 +62743 96538772 1010 +62744 96539782 1010 +62745 96540792 1010 +62746 96541802 1010 +62747 96542812 1010 +62748 96543822 1010 +62749 96544832 1010 +62750 96545842 1010 +62751 96546852 1010 +62752 96547862 1010 +62753 96548872 1010 +62754 96549882 1010 +62755 96550892 1010 +62756 96551902 1010 +62757 96552912 1010 +62758 96553922 1010 +62759 96554932 1010 +62760 96555942 1010 +62761 96556952 1010 +62762 96557962 1010 +62763 96558972 1010 +62764 96559982 1010 +62765 96560992 1010 +62766 96562002 1010 +62767 96563012 1010 +62768 96564022 1010 +62769 96565032 1010 +62770 96566042 1010 +62771 96567052 1010 +62772 96568062 1010 +62773 96569072 1010 +62774 96570082 1010 +62775 96571092 1010 +62776 96572102 1010 +62777 96573112 1010 +62778 96574122 1010 +62779 96575132 1010 +62780 96576142 1010 +62781 96577152 1010 +62782 96578162 1010 +62783 96579172 1010 +62784 96580182 1010 +62785 96581192 1010 +62786 96582202 1010 +62787 96583212 1010 +62788 96584222 1010 +62789 96585232 1010 +62790 96586242 1010 +62791 96587252 1010 +62792 96588262 1010 +62793 96589272 1010 +62794 96590282 1010 +62795 96591292 1010 +62796 96592302 1010 +62797 96593312 1010 +62798 96594322 1010 +62799 96595332 1010 +62800 96596342 1010 +62801 96597352 1010 +62802 96598362 1010 +62803 96599372 1010 +62804 96600382 1010 +62805 96601392 1010 +62806 96602402 1010 +62807 96603412 1010 +62808 96604422 1010 +62809 96605432 1010 +62810 96606442 1010 +62811 96607452 1010 +62812 96608462 1010 +62813 96609472 1010 +62814 96610482 1010 +62815 96611492 1010 +62816 96612502 1010 +62817 96613512 1010 +62818 96614522 1010 +62819 96615532 1010 +62820 96616542 1010 +62821 96617552 1010 +62822 96618562 1010 +62823 96619572 1010 +62824 96620582 1010 +62825 96621592 1010 +62826 96622602 1010 +62827 96623612 1010 +62828 96624622 1010 +62829 96625632 1010 +62830 96626642 1010 +62831 96627652 1010 +62832 96628662 1010 +62833 96629672 1010 +62834 96630682 1010 +62835 96631692 752 +62836 96632444 710 +62837 96633154 752 +62838 96633906 752 +62839 96634658 710 +62840 96635368 752 +62841 96636120 752 +62842 96636872 710 +62843 96637582 752 +62844 96638334 752 +62845 96639086 710 +62846 96639796 752 +62847 96640548 752 +62848 96641300 710 +62849 96642010 752 +62850 96642762 752 +62851 96643514 710 +62852 96644224 752 +62853 96644976 752 +62854 96645728 710 +62855 96646438 752 +62856 96647190 752 +62857 96647942 710 +62858 96648652 752 +62859 96649404 752 +62860 96650156 710 +62861 96650866 752 +62862 96651618 752 +62863 96652370 710 +62864 96653080 752 +62865 96653832 752 +62866 96654584 710 +62867 96655294 752 +62868 96656046 752 +62869 96656798 710 +62870 96657508 752 +62871 96658260 752 +62872 96659012 710 +62873 96659722 752 +62874 96660474 752 +62875 96661226 710 +62876 96661936 752 +62877 96662688 752 +62878 96663440 710 +62879 96664150 752 +62880 96664902 752 +62881 96665654 710 +62882 96666364 752 +62883 96667116 752 +62884 96667868 710 +62885 96668578 752 +62886 96669330 752 +62887 96670082 710 +62888 96670792 752 +62889 96671544 752 +62890 96672296 710 +62891 96673006 752 +62892 96673758 752 +62893 96674510 710 +62894 96675220 752 +62895 96675972 752 +62896 96676724 710 +62897 96677434 752 +62898 96678186 752 +62899 96678938 710 +62900 96679648 752 +62901 96680400 752 +62902 96681152 710 +62903 96681862 752 +62904 96682614 752 +62905 96683366 710 +62906 96684076 752 +62907 96684828 752 +62908 96685580 710 +62909 96686290 752 +62910 96687042 752 +62911 96687794 710 +62912 96688504 752 +62913 96689256 752 +62914 96690008 710 +62915 96690718 752 +62916 96691470 752 +62917 96692222 710 +62918 96692932 752 +62919 96693684 752 +62920 96694436 710 +62921 96695146 752 +62922 96695898 752 +62923 96696650 710 +62924 96697360 752 +62925 96698112 752 +62926 96698864 710 +62927 96699574 752 +62928 96700326 752 +62929 96701078 710 +62930 96701788 752 +62931 96702540 752 +62932 96703292 710 +62933 96704002 752 +62934 96704754 752 +62935 96705506 710 +62936 96706216 752 +62937 96706968 752 +62938 96707720 710 +62939 96708430 752 +62940 96709182 752 +62941 96709934 710 +62942 96710644 752 +62943 96711396 752 +62944 96712148 710 +62945 96712858 752 +62946 96713610 752 +62947 96714362 710 +62948 96715072 752 +62949 96715824 752 +62950 96716576 710 +62951 96717286 752 +62952 96718038 752 +62953 96718790 710 +62954 96719500 752 +62955 96720252 752 +62956 96721004 710 +62957 96721714 752 +62958 96722466 752 +62959 96723218 710 +62960 96723928 752 +62961 96724680 752 +62962 96725432 710 +62963 96726142 752 +62964 96726894 752 +62965 96727646 710 +62966 96728356 752 +62967 96729108 752 +62968 96729860 710 +62969 96730570 752 +62970 96731322 752 +62971 96732074 710 +62972 96732784 752 +62973 96733536 752 +62974 96734288 710 +62975 96734998 752 +62976 96735750 752 +62977 96736502 710 +62978 96737212 752 +62979 96737964 752 +62980 96738716 710 +62981 96739426 752 +62982 96740178 752 +62983 96740930 710 +62984 96741640 752 +62985 96742392 752 +62986 96743144 710 +62987 96743854 752 +62988 96744606 752 +62989 96745358 710 +62990 96746068 752 +62991 96746820 752 +62992 96747572 710 +62993 96748282 752 +62994 96749034 752 +62995 96749786 710 +62996 96750496 752 +62997 96751248 752 +62998 96752000 710 +62999 96752710 752 +63000 96753462 752 +63001 96754214 710 +63002 96754924 752 +63003 96755676 752 +63004 96756428 710 +63005 96757138 752 +63006 96757890 752 +63007 96758642 710 +63008 96759352 752 +63009 96760104 752 +63010 96760856 710 +63011 96761566 752 +63012 96762318 752 +63013 96763070 710 +63014 96763780 752 +63015 96764532 716 +63016 96765248 716 +63017 96765964 716 +63018 96766680 716 +63019 96767396 716 +63020 96768112 716 +63021 96768828 716 +63022 96769544 716 +63023 96770260 716 +63024 96770976 716 +63025 96771692 716 +63026 96772408 716 +63027 96773124 716 +63028 96773840 716 +63029 96774556 716 +63030 96775272 716 +63031 96775988 716 +63032 96776704 716 +63033 96777420 716 +63034 96778136 716 +63035 96778852 716 +63036 96779568 716 +63037 96780284 716 +63038 96781000 716 +63039 96781716 716 +63040 96782432 716 +63041 96783148 716 +63042 96783864 716 +63043 96784580 716 +63044 96785296 716 +63045 96786012 716 +63046 96786728 716 +63047 96787444 716 +63048 96788160 716 +63049 96788876 716 +63050 96789592 716 +63051 96790308 716 +63052 96791024 716 +63053 96791740 716 +63054 96792456 716 +63055 96793172 716 +63056 96793888 716 +63057 96794604 716 +63058 96795320 716 +63059 96796036 716 +63060 96796752 716 +63061 96797468 716 +63062 96798184 716 +63063 96798900 716 +63064 96799616 716 +63065 96800332 716 +63066 96801048 716 +63067 96801764 716 +63068 96802480 716 +63069 96803196 716 +63070 96803912 716 +63071 96804628 716 +63072 96805344 716 +63073 96806060 716 +63074 96806776 716 +63075 96807492 716 +63076 96808208 716 +63077 96808924 716 +63078 96809640 716 +63079 96810356 716 +63080 96811072 716 +63081 96811788 716 +63082 96812504 716 +63083 96813220 716 +63084 96813936 716 +63085 96814652 716 +63086 96815368 716 +63087 96816084 716 +63088 96816800 716 +63089 96817516 716 +63090 96818232 716 +63091 96818948 716 +63092 96819664 716 +63093 96820380 716 +63094 96821096 716 +63095 96821812 716 +63096 96822528 716 +63097 96823244 716 +63098 96823960 716 +63099 96824676 716 +63100 96825392 716 +63101 96826108 716 +63102 96826824 716 +63103 96827540 716 +63104 96828256 716 +63105 96828972 716 +63106 96829688 716 +63107 96830404 716 +63108 96831120 716 +63109 96831836 716 +63110 96832552 716 +63111 96833268 716 +63112 96833984 716 +63113 96834700 716 +63114 96835416 716 +63115 96836132 716 +63116 96836848 716 +63117 96837564 716 +63118 96838280 716 +63119 96838996 716 +63120 96839712 716 +63121 96840428 716 +63122 96841144 716 +63123 96841860 716 +63124 96842576 716 +63125 96843292 716 +63126 96844008 716 +63127 96844724 716 +63128 96845440 716 +63129 96846156 716 +63130 96846872 716 +63131 96847588 716 +63132 96848304 716 +63133 96849020 716 +63134 96849736 716 +63135 96850452 716 +63136 96851168 716 +63137 96851884 716 +63138 96852600 716 +63139 96853316 716 +63140 96854032 716 +63141 96854748 716 +63142 96855464 716 +63143 96856180 716 +63144 96856896 716 +63145 96857612 716 +63146 96858328 716 +63147 96859044 716 +63148 96859760 716 +63149 96860476 716 +63150 96861192 716 +63151 96861908 716 +63152 96862624 716 +63153 96863340 716 +63154 96864056 716 +63155 96864772 716 +63156 96865488 716 +63157 96866204 716 +63158 96866920 716 +63159 96867636 716 +63160 96868352 716 +63161 96869068 716 +63162 96869784 716 +63163 96870500 716 +63164 96871216 716 +63165 96871932 716 +63166 96872648 716 +63167 96873364 716 +63168 96874080 716 +63169 96874796 716 +63170 96875512 716 +63171 96876228 716 +63172 96876944 716 +63173 96877660 716 +63174 96878376 716 +63175 96879092 716 +63176 96879808 716 +63177 96880524 716 +63178 96881240 716 +63179 96881956 716 +63180 96882672 716 +63181 96883388 716 +63182 96884104 716 +63183 96884820 716 +63184 96885536 716 +63185 96886252 716 +63186 96886968 716 +63187 96887684 716 +63188 96888400 716 +63189 96889116 716 +63190 96889832 716 +63191 96890548 716 +63192 96891264 716 +63193 96891980 716 +63194 96892696 716 +63195 96893412 992 +63196 96894404 992 +63197 96895396 992 +63198 96896388 992 +63199 96897380 992 +63200 96898372 992 +63201 96899364 992 +63202 96900356 992 +63203 96901348 992 +63204 96902340 992 +63205 96903332 992 +63206 96904324 992 +63207 96905316 992 +63208 96906308 992 +63209 96907300 992 +63210 96908292 992 +63211 96909284 992 +63212 96910276 992 +63213 96911268 992 +63214 96912260 992 +63215 96913252 992 +63216 96914244 992 +63217 96915236 992 +63218 96916228 992 +63219 96917220 992 +63220 96918212 992 +63221 96919204 992 +63222 96920196 992 +63223 96921188 992 +63224 96922180 992 +63225 96923172 992 +63226 96924164 992 +63227 96925156 992 +63228 96926148 992 +63229 96927140 992 +63230 96928132 992 +63231 96929124 992 +63232 96930116 992 +63233 96931108 992 +63234 96932100 992 +63235 96933092 992 +63236 96934084 992 +63237 96935076 992 +63238 96936068 992 +63239 96937060 992 +63240 96938052 992 +63241 96939044 992 +63242 96940036 992 +63243 96941028 992 +63244 96942020 992 +63245 96943012 992 +63246 96944004 992 +63247 96944996 992 +63248 96945988 992 +63249 96946980 992 +63250 96947972 992 +63251 96948964 992 +63252 96949956 992 +63253 96950948 992 +63254 96951940 992 +63255 96952932 992 +63256 96953924 992 +63257 96954916 992 +63258 96955908 992 +63259 96956900 992 +63260 96957892 992 +63261 96958884 992 +63262 96959876 992 +63263 96960868 992 +63264 96961860 992 +63265 96962852 992 +63266 96963844 992 +63267 96964836 992 +63268 96965828 992 +63269 96966820 992 +63270 96967812 992 +63271 96968804 992 +63272 96969796 992 +63273 96970788 992 +63274 96971780 992 +63275 96972772 992 +63276 96973764 992 +63277 96974756 992 +63278 96975748 992 +63279 96976740 992 +63280 96977732 992 +63281 96978724 992 +63282 96979716 992 +63283 96980708 992 +63284 96981700 992 +63285 96982692 992 +63286 96983684 992 +63287 96984676 992 +63288 96985668 992 +63289 96986660 992 +63290 96987652 992 +63291 96988644 992 +63292 96989636 992 +63293 96990628 992 +63294 96991620 992 +63295 96992612 992 +63296 96993604 992 +63297 96994596 992 +63298 96995588 992 +63299 96996580 992 +63300 96997572 992 +63301 96998564 992 +63302 96999556 992 +63303 97000548 992 +63304 97001540 992 +63305 97002532 992 +63306 97003524 992 +63307 97004516 992 +63308 97005508 992 +63309 97006500 992 +63310 97007492 992 +63311 97008484 992 +63312 97009476 992 +63313 97010468 992 +63314 97011460 992 +63315 97012452 992 +63316 97013444 992 +63317 97014436 992 +63318 97015428 992 +63319 97016420 992 +63320 97017412 992 +63321 97018404 992 +63322 97019396 992 +63323 97020388 992 +63324 97021380 992 +63325 97022372 992 +63326 97023364 992 +63327 97024356 992 +63328 97025348 992 +63329 97026340 992 +63330 97027332 992 +63331 97028324 992 +63332 97029316 992 +63333 97030308 992 +63334 97031300 992 +63335 97032292 992 +63336 97033284 992 +63337 97034276 992 +63338 97035268 992 +63339 97036260 992 +63340 97037252 992 +63341 97038244 992 +63342 97039236 992 +63343 97040228 992 +63344 97041220 992 +63345 97042212 992 +63346 97043204 992 +63347 97044196 992 +63348 97045188 992 +63349 97046180 992 +63350 97047172 992 +63351 97048164 992 +63352 97049156 992 +63353 97050148 992 +63354 97051140 992 +63355 97052132 992 +63356 97053124 992 +63357 97054116 992 +63358 97055108 992 +63359 97056100 992 +63360 97057092 992 +63361 97058084 992 +63362 97059076 992 +63363 97060068 992 +63364 97061060 992 +63365 97062052 992 +63366 97063044 992 +63367 97064036 992 +63368 97065028 992 +63369 97066020 992 +63370 97067012 992 +63371 97068004 992 +63372 97068996 992 +63373 97069988 992 +63374 97070980 992 +63375 97071972 758 +63376 97072730 752 +63377 97073482 752 +63378 97074234 758 +63379 97074992 752 +63380 97075744 752 +63381 97076496 758 +63382 97077254 752 +63383 97078006 752 +63384 97078758 758 +63385 97079516 752 +63386 97080268 752 +63387 97081020 758 +63388 97081778 752 +63389 97082530 752 +63390 97083282 758 +63391 97084040 752 +63392 97084792 752 +63393 97085544 758 +63394 97086302 752 +63395 97087054 752 +63396 97087806 758 +63397 97088564 752 +63398 97089316 752 +63399 97090068 758 +63400 97090826 752 +63401 97091578 752 +63402 97092330 758 +63403 97093088 752 +63404 97093840 752 +63405 97094592 758 +63406 97095350 752 +63407 97096102 752 +63408 97096854 758 +63409 97097612 752 +63410 97098364 752 +63411 97099116 758 +63412 97099874 752 +63413 97100626 752 +63414 97101378 758 +63415 97102136 752 +63416 97102888 752 +63417 97103640 758 +63418 97104398 752 +63419 97105150 752 +63420 97105902 758 +63421 97106660 752 +63422 97107412 752 +63423 97108164 758 +63424 97108922 752 +63425 97109674 752 +63426 97110426 758 +63427 97111184 752 +63428 97111936 752 +63429 97112688 758 +63430 97113446 752 +63431 97114198 752 +63432 97114950 758 +63433 97115708 752 +63434 97116460 752 +63435 97117212 758 +63436 97117970 752 +63437 97118722 752 +63438 97119474 758 +63439 97120232 752 +63440 97120984 752 +63441 97121736 758 +63442 97122494 752 +63443 97123246 752 +63444 97123998 758 +63445 97124756 752 +63446 97125508 752 +63447 97126260 758 +63448 97127018 752 +63449 97127770 752 +63450 97128522 758 +63451 97129280 752 +63452 97130032 752 +63453 97130784 758 +63454 97131542 752 +63455 97132294 752 +63456 97133046 758 +63457 97133804 752 +63458 97134556 752 +63459 97135308 758 +63460 97136066 752 +63461 97136818 752 +63462 97137570 758 +63463 97138328 752 +63464 97139080 752 +63465 97139832 758 +63466 97140590 752 +63467 97141342 752 +63468 97142094 758 +63469 97142852 752 +63470 97143604 752 +63471 97144356 758 +63472 97145114 752 +63473 97145866 752 +63474 97146618 758 +63475 97147376 752 +63476 97148128 752 +63477 97148880 758 +63478 97149638 752 +63479 97150390 752 +63480 97151142 758 +63481 97151900 752 +63482 97152652 752 +63483 97153404 758 +63484 97154162 752 +63485 97154914 752 +63486 97155666 758 +63487 97156424 752 +63488 97157176 752 +63489 97157928 758 +63490 97158686 752 +63491 97159438 752 +63492 97160190 758 +63493 97160948 752 +63494 97161700 752 +63495 97162452 758 +63496 97163210 752 +63497 97163962 752 +63498 97164714 758 +63499 97165472 752 +63500 97166224 752 +63501 97166976 758 +63502 97167734 752 +63503 97168486 752 +63504 97169238 758 +63505 97169996 752 +63506 97170748 752 +63507 97171500 758 +63508 97172258 752 +63509 97173010 752 +63510 97173762 758 +63511 97174520 752 +63512 97175272 752 +63513 97176024 758 +63514 97176782 752 +63515 97177534 752 +63516 97178286 758 +63517 97179044 752 +63518 97179796 752 +63519 97180548 758 +63520 97181306 752 +63521 97182058 752 +63522 97182810 758 +63523 97183568 752 +63524 97184320 752 +63525 97185072 758 +63526 97185830 752 +63527 97186582 752 +63528 97187334 758 +63529 97188092 752 +63530 97188844 752 +63531 97189596 758 +63532 97190354 752 +63533 97191106 752 +63534 97191858 758 +63535 97192616 752 +63536 97193368 752 +63537 97194120 758 +63538 97194878 752 +63539 97195630 752 +63540 97196382 758 +63541 97197140 752 +63542 97197892 752 +63543 97198644 758 +63544 97199402 752 +63545 97200154 752 +63546 97200906 758 +63547 97201664 752 +63548 97202416 752 +63549 97203168 758 +63550 97203926 752 +63551 97204678 752 +63552 97205430 758 +63553 97206188 752 +63554 97206940 752 +63555 97207692 1988 +63556 97209680 2696 +63557 97212376 3434 +63558 97215810 32 +63559 97215842 842 +63560 97216684 1922 +63561 97218606 1922 +63562 97220528 1088 +63563 97221616 1088 +63564 97222704 1088 +63565 97223792 1088 +63566 97224880 2504 +63567 97227384 2492 +63568 97229876 440 +63569 97230316 422 +63570 97230738 422 +63571 97231160 434 +63572 97231594 1664 +63573 97233258 4046 +63574 97237304 1664 +63575 97238968 4046 +63576 97243014 1370 +63577 97244384 422 +63578 97244806 1286 +63579 97246092 1022 +63580 97247114 1010 +63581 97248124 1298 +63582 97249422 62 +63583 97249484 962 +63584 97250446 4322 +63585 97254768 458 +63586 97255226 962 +63587 97256188 4328 +63588 97260516 452 +63589 97260968 32 +63590 97261000 962 +63591 97261962 4328 +63592 97266290 434 +63593 97266724 44 +63594 97266768 1256 +63595 97268024 1256 +63596 97269280 1262 +63597 97270542 1262 +63598 97271804 1862 +63599 97273666 1862 +63600 97275528 1856 +63601 97277384 1856 +63602 97279240 806 +63603 97280046 818 +63604 97280864 4412 +63605 97285276 560 +63606 97285836 2372 +63607 97288208 2330 +63608 97290538 2312 +63609 97292850 2192 +63610 97295042 1022 +63611 97296064 1070 +63612 97297134 1076 +63613 97298210 1016 +63614 97299226 362 +63615 97299588 1196 +63616 97300784 344 +63617 97301128 284 +63618 97301412 560 +63619 97301972 50 +63620 97302022 1430 +63621 97303452 2030 +63622 97305482 1484 +63623 97306966 848 +63624 97307814 1040 +63625 97308854 722 +63626 97309576 182 +63627 97309758 968 +63628 97310726 428 +63629 97311154 860 +63630 97312014 800 +63631 97312814 878 +63632 97313692 1172 +63633 97314864 1124 +63634 97315988 698 +63635 97316686 866 +63636 97317552 578 +63637 97318130 908 +63638 97319038 494 +63639 97319532 722 +63640 97320254 326 +63641 97320580 398 +63642 97320978 932 +63643 97321910 500 +63644 97322410 860 +63645 97323270 446 +63646 97323716 1856 +63647 97325572 1856 +63648 97327428 794 +63649 97328222 782 +63650 97329004 776 +63651 97329780 776 +63652 97330556 776 +63653 97331332 110 +63654 97331442 776 +63655 97332218 110 +63656 97332328 302 +63657 97332630 278 +63658 97332908 278 +63659 97333186 1952 +63660 97335138 296 +63661 97335434 2960 +63662 97338394 602 +63663 97338996 596 +63664 97339592 3002 +63665 97342594 266 +63666 97342860 926 +63667 97343786 296 +63668 97344082 2546 +63669 97346628 932 +63670 97347560 932 +63671 97348492 926 +63672 97349418 956 +63673 97350374 344 +63674 97350718 284 +63675 97351002 560 +63676 97351562 50 +63677 97351612 1430 +63678 97353042 2030 +63679 97355072 1484 +63680 97356556 848 +63681 97357404 1040 +63682 97358444 722 +63683 97359166 182 +63684 97359348 968 +63685 97360316 428 +63686 97360744 860 +63687 97361604 800 +63688 97362404 878 +63689 97363282 1172 +63690 97364454 1124 +63691 97365578 698 +63692 97366276 866 +63693 97367142 578 +63694 97367720 908 +63695 97368628 494 +63696 97369122 722 +63697 97369844 326 +63698 97370170 398 +63699 97370568 932 +63700 97371500 500 +63701 97372000 860 +63702 97372860 446 +63703 97373306 1424 +63704 97374730 1484 +63705 97376214 1496 +63706 97377710 2948 +63707 97380658 518 +63708 97381176 506 +63709 97381682 428 +63710 97382110 404 +63711 97382514 2228 +63712 97384742 1022 +63713 97385764 1862 +63714 97387626 1862 +63715 97389488 632 +63716 97390120 632 +63717 97390752 1928 +63718 97392680 3722 +63719 97396402 3734 +63720 97400136 1196 +63721 97401332 854 +63722 97402186 860 +63723 97403046 860 +63724 97403906 860 +63725 97404766 860 +63726 97405626 860 +63727 97406486 668 +63728 97407154 668 +63729 97407822 668 +63730 97408490 668 +63731 97409158 668 +63732 97409826 668 +63733 97410494 1598 +63734 97412092 506 +63735 97412598 2402 +63736 97415000 2414 +63737 97417414 512 +63738 97417926 542 +63739 97418468 2726 +63740 97421194 2726 +63741 97423920 1634 +63742 97425554 1634 +63743 97427188 1346 +63744 97428534 1136 +63745 97429670 5804 +63746 97435474 1136 +63747 97436610 80 +63748 97436690 1106 +63749 97437796 80 +63750 97437876 710 +63751 97438586 716 +63752 97439302 722 +63753 97440024 860 +63754 97440884 896 +63755 97441780 860 +63756 97442640 896 +63757 97443536 860 +63758 97444396 896 +63759 97445292 1148 +63760 97446440 1142 +63761 97447582 1172 +63762 97448754 1178 +63763 97449932 1364 +63764 97451296 1364 +63765 97452660 566 +63766 97453226 566 +63767 97453792 2054 +63768 97455846 2054 +63769 97457900 2054 +63770 97459954 2054 +63771 97462008 2054 +63772 97464062 2054 +63773 97466116 2054 +63774 97468170 2054 +63775 97470224 608 +63776 97470832 608 +63777 97471440 2210 +63778 97473650 2210 +63779 97475860 2210 +63780 97478070 2198 +63781 97480268 1652 +63782 97481920 1652 +63783 97483572 1652 +63784 97485224 1130 +63785 97486354 1862 +63786 97488216 2804 +63787 97491020 2402 +63788 97493422 2498 +63789 97495920 3278 +63790 97499198 3290 +63791 97502488 152 +63792 97502640 3062 +63793 97505702 476 +63794 97506178 1478 +63795 97507656 2324 +63796 97509980 2174 +63797 97512154 1466 +63798 97513620 944 +63799 97514564 1304 +63800 97515868 1376 +63801 97517244 1130 +63802 97518374 788 +63803 97519162 1016 +63804 97520178 1556 +63805 97521734 1094 +63806 97522828 812 +63807 97523640 1226 +63808 97524866 1190 +63809 97526056 1034 +63810 97527090 872 +63811 97527962 914 +63812 97528876 1034 +63813 97529910 752 +63814 97530662 614 +63815 97531276 812 +63816 97532088 1406 +63817 97533494 848 +63818 97534342 758 +63819 97535100 818 +63820 97535918 566 +63821 97536484 3686 +63822 97540170 662 +63823 97540832 638 +63824 97541470 770 +63825 97542240 644 +63826 97542884 650 +63827 97543534 722 +63828 97544256 584 +63829 97544840 512 +63830 97545352 470 +63831 97545822 302 +63832 97546124 2642 +63833 97548766 590 +63834 97549356 1070 +63835 97550426 542 +63836 97550968 764 +63837 97551732 1358 +63838 97553090 344 +63839 97553434 2594 +63840 97556028 896 +63841 97556924 2762 +63842 97559686 1466 +63843 97561152 925 +63844 97562077 43549 +63845 97605626 2402 +63846 97608028 2498 +63847 97610526 3278 +63848 97613804 3290 +63849 97617094 1802 +63850 97618896 956 +63851 97619852 2624 +63852 97622476 3464 +63853 97625940 170 +63854 97626110 170 +63855 97626280 170 +63856 97626450 1568 +63857 97628018 1196 +63858 97629214 1814 +63859 97631028 284 +63860 97631312 290 +63861 97631602 290 +63862 97631892 284 +63863 97632176 290 +63864 97632466 290 +63865 97632756 1358 +63866 97634114 1358 +63867 97635472 4088 +63868 97639560 4118 +63869 97643678 4088 +63870 97647766 4118 +63871 97651884 1442 +63872 97653326 1418 +63873 97654744 1448 +63874 97656192 1448 +63875 97657640 1298 +63876 97658938 1292 +63877 97660230 2804 +63878 97663034 1244 +63879 97664278 2582 +63880 97666860 2582 +63881 97669442 2642 +63882 97672084 2642 +63883 97674726 1706 +63884 97676432 1532 +63885 97677964 350 +63886 97678314 1496 +63887 97679810 1532 +63888 97681342 1706 +63889 97683048 1712 +63890 97684760 1706 +63891 97686466 1712 +63892 97688178 902 +63893 97689080 914 +63894 97689994 1574 +63895 97691568 1694 +63896 97693262 1706 +63897 97694968 4142 +63898 97699110 86 +63899 97699196 3404 +63900 97702600 176 +63901 97702776 878 +63902 97703654 890 +63903 97704544 188 +63904 97704732 170 +63905 97704902 188 +63906 97705090 170 +63907 97705260 1760 +63908 97707020 686 +63909 97707706 704 +63910 97708410 1094 +63911 97709504 1076 +63912 97710580 1124 +63913 97711704 2066 +63914 97713770 116 +63915 97713886 2048 +63916 97715934 86 +63917 97716020 1328 +63918 97717348 1202 +63919 97718550 1274 +63920 97719824 1370 +63921 97721194 1370 +63922 97722564 1370 +63923 97723934 1364 +63924 97725298 1364 +63925 97726662 1352 +63926 97728014 1364 +63927 97729378 1364 +63928 97730742 1352 +63929 97732094 2234 +63930 97734328 2204 +63931 97736532 1136 +63932 97737668 548 +63933 97738216 3086 +63934 97741302 2828 +63935 97744130 3074 +63936 97747204 2822 +63937 97750026 3080 +63938 97753106 2828 +63939 97755934 224 +63940 97756158 194 +63941 97756352 1238 +63942 97757590 626 +63943 97758216 314 +63944 97758530 260 +63945 97758790 212 +63946 97759002 698 +63947 97759700 7862 +63948 97767562 464 +63949 97768026 434 +63950 97768460 956 +63951 97769416 416 +63952 97769832 7868 +63953 97777700 1778 +63954 97779478 1778 +63955 97781256 1778 +63956 97783034 1778 +63957 97784812 650 +63958 97785462 2030 +63959 97787492 2060 +63960 97789552 506 +63961 97790058 506 +63962 97790564 506 +63963 97791070 1892 +63964 97792962 1316 +63965 97794278 686 +63966 97794964 686 +63967 97795650 1724 +63968 97797374 1724 +63969 97799098 1724 +63970 97800822 1970 +63971 97802792 1970 +63972 97804762 1970 +63973 97806732 1970 +63974 97808702 1970 +63975 97810672 998 +63976 97811670 992 +63977 97812662 1004 +63978 97813666 1010 +63979 97814676 1040 +63980 97815716 1034 +63981 97816750 1508 +63982 97818258 1508 +63983 97819766 1508 +63984 97821274 980 +63985 97822254 980 +63986 97823234 980 +63987 97824214 872 +63988 97825086 872 +63989 97825958 872 +63990 97826830 872 +63991 97827702 872 +63992 97828574 872 +63993 97829446 1700 +63994 97831146 1100 +63995 97832246 1070 +63996 97833316 1094 +63997 97834410 794 +63998 97835204 776 +63999 97835980 764 +64000 97836744 1814 +64001 97838558 1820 +64002 97840378 1616 +64003 97841994 3200 +64004 97845194 1046 +64005 97846240 1046 +64006 97847286 2390 +64007 97849676 2396 +64008 97852072 1196 +64009 97853268 1196 +64010 97854464 1196 +64011 97855660 1196 +64012 97856856 1196 +64013 97858052 1196 +64014 97859248 1196 +64015 97860444 1148 +64016 97861592 1148 +64017 97862740 1148 +64018 97863888 1148 +64019 97865036 1148 +64020 97866184 1148 +64021 97867332 1148 +64022 97868480 1466 +64023 97869946 1466 +64024 97871412 1484 +64025 97872896 1484 +64026 97874380 1484 +64027 97875864 1484 +64028 97877348 2930 +64029 97880278 2594 +64030 97882872 2930 +64031 97885802 2828 +64032 97888630 926 +64033 97889556 716 +64034 97890272 704 +64035 97890976 1484 +64036 97892460 4052 +64037 97896512 4046 +64038 97900558 2048 +64039 97902606 2054 +64040 97904660 2042 +64041 97906702 1664 +64042 97908366 2816 +64043 97911182 704 +64044 97911886 908 +64045 97912794 356 +64046 97913150 890 +64047 97914040 356 +64048 97914396 656 +64049 97915052 656 +64050 97915708 638 +64051 97916346 674 +64052 97917020 650 +64053 97917670 674 +64054 97918344 650 +64055 97918994 644 +64056 97919638 884 +64057 97920522 884 +64058 97921406 506 +64059 97921912 1298 +64060 97923210 1238 +64061 97924448 698 +64062 97925146 704 +64063 97925850 830 +64064 97926680 836 +64065 97927516 824 +64066 97928340 2534 +64067 97930874 3464 +64068 97934338 746 +64069 97935084 440 +64070 97935524 440 +64071 97935964 1952 +64072 97937916 1058 +64073 97938974 1022 +64074 97939996 1070 +64075 97941066 956 +64076 97942022 2234 +64077 97944256 2066 +64078 97946322 2084 +64079 97948406 2078 +64080 97950484 2078 +64081 97952562 2072 +64082 97954634 2072 +64083 97956706 422 +64084 97957128 1646 +64085 97958774 818 +64086 97959592 68 +64087 97959660 3614 +64088 97963274 722 +64089 97963996 620 +64090 97964616 620 +64091 97965236 7801 +64092 97973037 440 +64093 97973477 422 +64094 97973899 392 +64095 97974291 410 +64096 97974701 956 +64097 97975657 956 +64098 97976613 2348 +64099 97978961 1988 +64100 97980949 1988 +64101 97982937 530 +64102 97983467 6716 +64103 97990183 2228 +64104 97992411 2654 +64105 97995065 2654 +64106 97997719 1718 +64107 97999437 608 +64108 98000045 1718 +64109 98001763 608 +64110 98002371 1454 +64111 98003825 1472 +64112 98005297 1454 +64113 98006751 1472 +64114 98008223 1478 +64115 98009701 1478 +64116 98011179 1478 +64117 98012657 1478 +64118 98014135 560 +64119 98014695 560 +64120 98015255 560 +64121 98015815 560 +64122 98016375 1322 +64123 98017697 1322 +64124 98019019 470 +64125 98019489 458 +64126 98019947 386 +64127 98020333 290 +64128 98020623 1220 +64129 98021843 722 +64130 98022565 368 +64131 98022933 1940 +64132 98024873 224 +64133 98025097 3500 +64134 98028597 1772 +64135 98030369 2078 +64136 98032447 2216 +64137 98034663 3200 +64138 98037863 3176 +64139 98041039 1088 +64140 98042127 1088 +64141 98043215 1136 +64142 98044351 542 +64143 98044893 920 +64144 98045813 908 +64145 98046721 4933 +64146 98051654 1076 +64147 98052730 1076 +64148 98053806 1076 +64149 98054882 1058 +64150 98055940 668 +64151 98056608 476 +64152 98057084 2006 +64153 98059090 2006 +64154 98061096 1718 +64155 98062814 1712 +64156 98064526 1466 +64157 98065992 1466 +64158 98067458 2156 +64159 98069614 1952 +64160 98071566 1292 +64161 98072858 1286 +64162 98074144 1586 +64163 98075730 1598 +64164 98077328 1586 +64165 98078914 1598 +64166 98080512 1868 +64167 98082380 2318 +64168 98084698 1838 +64169 98086536 1838 +64170 98088374 422 +64171 98088796 416 +64172 98089212 554 +64173 98089766 554 +64174 98090320 554 +64175 98090874 554 +64176 98091428 554 +64177 98091982 554 +64178 98092536 554 +64179 98093090 554 +64180 98093644 1676 +64181 98095320 2432 +64182 98097752 752 +64183 98098504 1718 +64184 98100222 734 +64185 98100956 656 +64186 98101612 542 +64187 98102154 542 +64188 98102696 1628 +64189 98104324 1634 +64190 98105958 2162 +64191 98108120 1886 +64192 98110006 1880 +64193 98111886 1880 +64194 98113766 1814 +64195 98115580 1850 +64196 98117430 1838 +64197 98119268 74 +64198 98119342 776 +64199 98120118 10532 +64200 98130650 10532 +64201 98141182 10454 +64202 98151636 554 +64203 98152190 2042 +64204 98154232 2066 +64205 98156298 368 +64206 98156666 368 +64207 98157034 44 +64208 98157078 602 +64209 98157680 590 +64210 98158270 788 +64211 98159058 776 +64212 98159834 74 +64213 98159908 2408 +64214 98162316 764 +64215 98163080 2900 +64216 98165980 3494 +64217 98169474 644 +64218 98170118 632 +64219 98170750 614 +64220 98171364 536 +64221 98171900 728 +64222 98172628 2348 +64223 98174976 3098 +64224 98178074 1016 +64225 98179090 824 +64226 98179914 2348 +64227 98182262 3098 +64228 98185360 1016 +64229 98186376 824 +64230 98187200 4196 +64231 98191396 680 +64232 98192076 1394 +64233 98193470 896 +64234 98194366 1658 +64235 98196024 1178 +64236 98197202 1232 +64237 98198434 938 +64238 98199372 1178 +64239 98200550 1178 +64240 98201728 1178 +64241 98202906 1178 +64242 98204084 2480 +64243 98206564 1604 +64244 98208168 1586 +64245 98209754 1604 +64246 98211358 1586 +64247 98212944 1604 +64248 98214548 1586 +64249 98216134 1604 +64250 98217738 1586 +64251 98219324 1586 +64252 98220910 1598 +64253 98222508 1586 +64254 98224094 1598 +64255 98225692 548 +64256 98226240 800 +64257 98227040 824 +64258 98227864 1724 +64259 98229588 1706 +64260 98231294 2054 +64261 98233348 1568 +64262 98234916 1196 +64263 98236112 1196 +64264 98237308 794 +64265 98238102 824 +64266 98238926 806 +64267 98239732 962 +64268 98240694 962 +64269 98241656 2216 +64270 98243872 2204 +64271 98246076 2540 +64272 98248616 2534 +64273 98251150 1466 +64274 98252616 1466 +64275 98254082 2726 +64276 98256808 998 +64277 98257806 956 +64278 98258762 1502 +64279 98260264 1502 +64280 98261766 1502 +64281 98263268 1502 +64282 98264770 1502 +64283 98266272 1502 +64284 98267774 1502 +64285 98269276 1502 +64286 98270778 1502 +64287 98272280 1502 +64288 98273782 1502 +64289 98275284 1502 +64290 98276786 1802 +64291 98278588 1802 +64292 98280390 1994 +64293 98282384 1934 +64294 98284318 590 +64295 98284908 608 +64296 98285516 776 +64297 98286292 338 +64298 98286630 338 +64299 98286968 1718 +64300 98288686 1712 +64301 98290398 4190 +64302 98294588 1292 +64303 98295880 1292 +64304 98297172 620 +64305 98297792 272 +64306 98298064 2414 +64307 98300478 2192 +64308 98302670 2414 +64309 98305084 2408 +64310 98307492 2384 +64311 98309876 2408 +64312 98312284 3134 +64313 98315418 3110 +64314 98318528 3140 +64315 98321668 3134 +64316 98324802 296 +64317 98325098 296 +64318 98325394 296 +64319 98325690 296 +64320 98325986 1226 +64321 98327212 1226 +64322 98328438 1226 +64323 98329664 1208 +64324 98330872 1208 +64325 98332080 1208 +64326 98333288 3020 +64327 98336308 3020 +64328 98339328 1442 +64329 98340770 1094 +64330 98341864 1070 +64331 98342934 1082 +64332 98344016 1064 +64333 98345080 1046 +64334 98346126 1040 +64335 98347166 3632 +64336 98350798 3200 +64337 98353998 1028 +64338 98355026 1508 +64339 98356534 992 +64340 98357526 1844 +64341 98359370 1430 +64342 98360800 1448 +64343 98362248 3518 +64344 98365766 3518 +64345 98369284 3518 +64346 98372802 3518 +64347 98376320 3518 +64348 98379838 3518 +64349 98383356 392 +64350 98383748 392 +64351 98384140 1070 +64352 98385210 1058 +64353 98386268 704 +64354 98386972 704 +64355 98387676 170 +64356 98387846 164 +64357 98388010 158 +64358 98388168 632 +64359 98388800 608 +64360 98389408 4418 +64361 98393826 4442 +64362 98398268 602 +64363 98398870 1280 +64364 98400150 98 +64365 98400248 578 +64366 98400826 578 +64367 98401404 4172 +64368 98405576 878 +64369 98406454 1166 +64370 98407620 2126 +64371 98409746 1682 +64372 98411428 872 +64373 98412300 1166 +64374 98413466 2126 +64375 98415592 1664 +64376 98417256 1496 +64377 98418752 1496 +64378 98420248 860 +64379 98421108 1160 +64380 98422268 2126 +64381 98424394 1664 +64382 98426058 866 +64383 98426924 1160 +64384 98428084 2126 +64385 98430210 1658 +64386 98431868 1496 +64387 98433364 584 +64388 98433948 1142 +64389 98435090 1142 +64390 98436232 2630 +64391 98438862 620 +64392 98439482 620 +64393 98440102 1682 +64394 98441784 3902 +64395 98445686 3902 +64396 98449588 3902 +64397 98453490 3902 +64398 98457392 3902 +64399 98461294 3902 +64400 98465196 746 +64401 98465942 836 +64402 98466778 554 +64403 98467332 554 +64404 98467886 218 +64405 98468104 1298 +64406 98469402 620 +64407 98470022 2132 +64408 98472154 2144 +64409 98474298 68 +64410 98474366 3356 +64411 98477722 3356 +64412 98481078 13958 +64413 98495036 13958 +64414 98508994 1040 +64415 98510034 980 +64416 98511014 1358 +64417 98512372 944 +64418 98513316 944 +64419 98514260 3872 +64420 98518132 938 +64421 98519070 902 +64422 98519972 134 +64423 98520106 140 +64424 98520246 1472 +64425 98521718 1394 +64426 98523112 1394 +64427 98524506 1382 +64428 98525888 1382 +64429 98527270 38 +64430 98527308 38 +64431 98527346 1388 +64432 98528734 1388 +64433 98530122 38 +64434 98530160 38 +64435 98530198 1400 +64436 98531598 1394 +64437 98532992 692 +64438 98533684 494 +64439 98534178 686 +64440 98534864 452 +64441 98535316 344 +64442 98535660 344 +64443 98536004 344 +64444 98536348 1766 +64445 98538114 1778 +64446 98539892 272 +64447 98540164 1664 +64448 98541828 1658 +64449 98543486 1190 +64450 98544676 1190 +64451 98545866 1196 +64452 98547062 2594 +64453 98549656 3926 +64454 98553582 3926 +64455 98557508 1004 +64456 98558512 1028 +64457 98559540 3920 +64458 98563460 3920 +64459 98567380 986 +64460 98568366 1028 +64461 98569394 2852 +64462 98572246 926 +64463 98573172 920 +64464 98574092 4196 +64465 98578288 668 +64466 98578956 1760 +64467 98580716 1178 +64468 98581894 2600 +64469 98584494 3920 +64470 98588414 3920 +64471 98592334 1004 +64472 98593338 1028 +64473 98594366 1328 +64474 98595694 1328 +64475 98597022 2108 +64476 98599130 1862 +64477 98600992 770 +64478 98601762 764 +64479 98602526 2078 +64480 98604604 2084 +64481 98606688 2090 +64482 98608778 2078 +64483 98610856 2084 +64484 98612940 2084 +64485 98615024 2090 +64486 98617114 2066 +64487 98619180 2084 +64488 98621264 2060 +64489 98623324 2090 +64490 98625414 2090 +64491 98627504 2084 +64492 98629588 2090 +64493 98631678 2090 +64494 98633768 2066 +64495 98635834 2084 +64496 98637918 2060 +64497 98639978 2054 +64498 98642032 2078 +64499 98644110 2084 +64500 98646194 2078 +64501 98648272 2090 +64502 98650362 2084 +64503 98652446 2084 +64504 98654530 2090 +64505 98656620 2084 +64506 98658704 2084 +64507 98660788 2090 +64508 98662878 2090 +64509 98664968 2078 +64510 98667046 2084 +64511 98669130 2090 +64512 98671220 2078 +64513 98673298 2084 +64514 98675382 2084 +64515 98677466 2090 +64516 98679556 2066 +64517 98681622 2084 +64518 98683706 2060 +64519 98685766 2090 +64520 98687856 2090 +64521 98689946 2084 +64522 98692030 2090 +64523 98694120 2090 +64524 98696210 2066 +64525 98698276 2084 +64526 98700360 2060 +64527 98702420 2054 +64528 98704474 2078 +64529 98706552 2084 +64530 98708636 2078 +64531 98710714 2090 +64532 98712804 2084 +64533 98714888 2084 +64534 98716972 2090 +64535 98719062 2084 +64536 98721146 2084 +64537 98723230 2090 +64538 98725320 2090 +64539 98727410 2078 +64540 98729488 2084 +64541 98731572 2090 +64542 98733662 2078 +64543 98735740 2084 +64544 98737824 2084 +64545 98739908 2090 +64546 98741998 2066 +64547 98744064 2084 +64548 98746148 2060 +64549 98748208 2090 +64550 98750298 2090 +64551 98752388 2084 +64552 98754472 2090 +64553 98756562 2090 +64554 98758652 2066 +64555 98760718 2084 +64556 98762802 2060 +64557 98764862 2054 +64558 98766916 2078 +64559 98768994 2084 +64560 98771078 2078 +64561 98773156 2090 +64562 98775246 2084 +64563 98777330 2084 +64564 98779414 2090 +64565 98781504 2084 +64566 98783588 2084 +64567 98785672 2090 +64568 98787762 2090 +64569 98789852 2078 +64570 98791930 2084 +64571 98794014 2090 +64572 98796104 2078 +64573 98798182 2084 +64574 98800266 2084 +64575 98802350 2090 +64576 98804440 2066 +64577 98806506 2084 +64578 98808590 2060 +64579 98810650 2090 +64580 98812740 2090 +64581 98814830 2084 +64582 98816914 2090 +64583 98819004 2090 +64584 98821094 2066 +64585 98823160 2084 +64586 98825244 2060 +64587 98827304 2054 +64588 98829358 2078 +64589 98831436 2084 +64590 98833520 2078 +64591 98835598 2090 +64592 98837688 2084 +64593 98839772 2084 +64594 98841856 2090 +64595 98843946 2084 +64596 98846030 2084 +64597 98848114 2090 +64598 98850204 2090 +64599 98852294 2078 +64600 98854372 2084 +64601 98856456 2090 +64602 98858546 2078 +64603 98860624 2084 +64604 98862708 2084 +64605 98864792 2090 +64606 98866882 2066 +64607 98868948 2084 +64608 98871032 2060 +64609 98873092 2090 +64610 98875182 2090 +64611 98877272 2084 +64612 98879356 2090 +64613 98881446 2090 +64614 98883536 2066 +64615 98885602 2084 +64616 98887686 2060 +64617 98889746 2054 +64618 98891800 2078 +64619 98893878 2084 +64620 98895962 2078 +64621 98898040 2090 +64622 98900130 2084 +64623 98902214 2084 +64624 98904298 2090 +64625 98906388 2084 +64626 98908472 2084 +64627 98910556 2090 +64628 98912646 2090 +64629 98914736 1256 +64630 98915992 1262 +64631 98917254 1256 +64632 98918510 1268 +64633 98919778 1256 +64634 98921034 1268 +64635 98922302 1256 +64636 98923558 1268 +64637 98924826 716 +64638 98925542 824 +64639 98926366 932 +64640 98927298 932 +64641 98928230 770 +64642 98929000 800 +64643 98929800 920 +64644 98930720 914 +64645 98931634 740 +64646 98932374 740 +64647 98933114 2726 +64648 98935840 824 +64649 98936664 824 +64650 98937488 824 +64651 98938312 434 +64652 98938746 434 +64653 98939180 434 +64654 98939614 434 +64655 98940048 434 +64656 98940482 434 +64657 98940916 440 +64658 98941356 440 +64659 98941796 3584 +64660 98945380 38 +64661 98945418 2288 +64662 98947706 404 +64663 98948110 1136 +64664 98949246 1142 +64665 98950388 1076 +64666 98951464 1106 +64667 98952570 2000 +64668 98954570 2000 +64669 98956570 344 +64670 98956914 344 +64671 98957258 2030 +64672 98959288 38 +64673 98959326 2888 +64674 98962214 1058 +64675 98963272 1004 +64676 98964276 896 +64677 98965172 908 +64678 98966080 2336 +64679 98968416 2384 +64680 98970800 2216 +64681 98973016 2216 +64682 98975232 548 +64683 98975780 3038 +64684 98978818 4220 +64685 98983038 1640 +64686 98984678 3284 +64687 98987962 3914 +64688 98991876 3974 +64689 98995850 6409 +64690 99002259 3254 +64691 99005513 482 +64692 99005995 1244 +64693 99007239 1304 +64694 99008543 1310 +64695 99009853 1346 +64696 99011199 1568 +64697 99012767 1244 +64698 99014011 1316 +64699 99015327 1118 +64700 99016445 1136 +64701 99017581 1118 +64702 99018699 560 +64703 99019259 884 +64704 99020143 752 +64705 99020895 908 +64706 99021803 776 +64707 99022579 722 +64708 99023301 854 +64709 99024155 698 +64710 99024853 878 +64711 99025731 866 +64712 99026597 614 +64713 99027211 530 +64714 99027741 782 +64715 99028523 872 +64716 99029395 812 +64717 99030207 422 +64718 99030629 590 +64719 99031219 494 +64720 99031713 386 +64721 99032099 326 +64722 99032425 368 +64723 99032793 206 +64724 99032999 1886 +64725 99034885 1520 +64726 99036405 2324 +64727 99038729 2174 +64728 99040903 1772 +64729 99042675 950 +64730 99043625 1346 +64731 99044971 1394 +64732 99046365 1148 +64733 99047513 1262 +64734 99048775 1022 +64735 99049797 1172 +64736 99050969 830 +64737 99051799 1226 +64738 99053025 1190 +64739 99054215 1058 +64740 99055273 1118 +64741 99056391 1052 +64742 99057443 1040 +64743 99058483 962 +64744 99059445 596 +64745 99060041 812 +64746 99060853 386 +64747 99061239 728 +64748 99061967 752 +64749 99062719 818 +64750 99063537 896 +64751 99064433 356 +64752 99064789 608 +64753 99065397 662 +64754 99066059 770 +64755 99066829 644 +64756 99067473 680 +64757 99068153 722 +64758 99068875 602 +64759 99069477 500 +64760 99069977 470 +64761 99070447 308 +64762 99070755 320 +64763 99071075 158 +64764 99071233 638 +64765 99071871 554 +64766 99072425 482 +64767 99072907 1244 +64768 99074151 1304 +64769 99075455 1310 +64770 99076765 1346 +64771 99078111 1568 +64772 99079679 1244 +64773 99080923 1316 +64774 99082239 1118 +64775 99083357 1136 +64776 99084493 1118 +64777 99085611 560 +64778 99086171 884 +64779 99087055 752 +64780 99087807 908 +64781 99088715 776 +64782 99089491 722 +64783 99090213 854 +64784 99091067 698 +64785 99091765 878 +64786 99092643 866 +64787 99093509 614 +64788 99094123 530 +64789 99094653 782 +64790 99095435 872 +64791 99096307 812 +64792 99097119 422 +64793 99097541 590 +64794 99098131 494 +64795 99098625 386 +64796 99099011 326 +64797 99099337 368 +64798 99099705 206 +64799 99099911 1886 +64800 99101797 1520 +64801 99103317 2324 +64802 99105641 2174 +64803 99107815 1772 +64804 99109587 950 +64805 99110537 1346 +64806 99111883 1394 +64807 99113277 1148 +64808 99114425 1262 +64809 99115687 1022 +64810 99116709 1172 +64811 99117881 830 +64812 99118711 1226 +64813 99119937 1190 +64814 99121127 1058 +64815 99122185 1118 +64816 99123303 1052 +64817 99124355 1040 +64818 99125395 962 +64819 99126357 596 +64820 99126953 812 +64821 99127765 386 +64822 99128151 728 +64823 99128879 752 +64824 99129631 818 +64825 99130449 896 +64826 99131345 356 +64827 99131701 608 +64828 99132309 662 +64829 99132971 770 +64830 99133741 644 +64831 99134385 680 +64832 99135065 722 +64833 99135787 602 +64834 99136389 500 +64835 99136889 470 +64836 99137359 308 +64837 99137667 320 +64838 99137987 158 +64839 99138145 638 +64840 99138783 554 +64841 99139337 2000 +64842 99141337 38 +64843 99141375 1136 +64844 99142511 1106 +64845 99143617 1814 +64846 99145431 1814 +64847 99147245 1808 +64848 99149053 1808 +64849 99150861 1886 +64850 99152747 1916 +64851 99154663 1832 +64852 99156495 1880 +64853 99158375 1226 +64854 99159601 1238 +64855 99160839 1226 +64856 99162065 1208 +64857 99163273 2036 +64858 99165309 1046 +64859 99166355 986 +64860 99167341 1016 +64861 99168357 1178 +64862 99169535 1316 +64863 99170851 1274 +64864 99172125 2606 +64865 99174731 2570 +64866 99177301 2492 +64867 99179793 662 +64868 99180455 668 +64869 99181123 266 +64870 99181389 266 +64871 99181655 2024 +64872 99183679 2024 +64873 99185703 2162 +64874 99187865 2162 +64875 99190027 2144 +64876 99192171 2144 +64877 99194315 668 +64878 99194983 668 +64879 99195651 1568 +64880 99197219 1562 +64881 99198781 464 +64882 99199245 464 +64883 99199709 446 +64884 99200155 446 +64885 99200601 446 +64886 99201047 440 +64887 99201487 452 +64888 99201939 3614 +64889 99205553 3554 +64890 99209107 2414 +64891 99211521 2414 +64892 99213935 1298 +64893 99215233 1310 +64894 99216543 50 +64895 99216593 3506 +64896 99220099 1022 +64897 99221121 1058 +64898 99222179 1046 +64899 99223225 1058 +64900 99224283 398 +64901 99224681 74 +64902 99224755 398 +64903 99225153 80 +64904 99225233 584 +64905 99225817 50 +64906 99225867 920 +64907 99226787 62 +64908 99226849 1994 +64909 99228843 596 +64910 99229439 1994 +64911 99231433 596 +64912 99232029 1262 +64913 99233291 1232 +64914 99234523 878 +64915 99235401 884 +64916 99236285 1976 +64917 99238261 1076 +64918 99239337 962 +64919 99240299 2084 +64920 99242383 2102 +64921 99244485 3326 +64922 99247811 4850 +64923 99252661 3326 +64924 99255987 4850 +64925 99260837 7352 +64926 99268189 2750 +64927 99270939 524 +64928 99271463 782 +64929 99272245 152 +64930 99272397 98 +64931 99272495 1076 +64932 99273571 2306 +64933 99275877 2282 +64934 99278159 2222 +64935 99280381 2240 +64936 99282621 1100 +64937 99283721 2228 +64938 99285949 236 +64939 99286185 470 +64940 99286655 476 +64941 99287131 1712 +64942 99288843 1622 +64943 99290465 1568 +64944 99292033 32 +64945 99292065 32 +64946 99292097 38 +64947 99292135 32 +64948 99292167 2918 +64949 99295085 3002 +64950 99298087 1400 +64951 99299487 1400 +64952 99300887 3320 +64953 99304207 5534 +64954 99309741 3320 +64955 99313061 5534 +64956 99318595 1442 +64957 99320037 1460 +64958 99321497 1076 +64959 99322573 188 +64960 99322761 188 +64961 99322949 188 +64962 99323137 182 +64963 99323319 182 +64964 99323501 170 +64965 99323671 2588 +64966 99326259 2588 +64967 99328847 2588 +64968 99331435 2588 +64969 99334023 1856 +64970 99335879 1880 +64971 99337759 1880 +64972 99339639 2228 +64973 99341867 2228 +64974 99344095 3338 +64975 99347433 5534 +64976 99352967 3338 +64977 99356305 5534 +64978 99361839 1760 +64979 99363599 1760 +64980 99365359 4237 +64981 99369596 4333 +64982 99373929 1604 +64983 99375533 2042 +64984 99377575 2042 +64985 99379617 668 +64986 99380285 1322 +64987 99381607 1316 +64988 99382923 1034 +64989 99383957 998 +64990 99384955 1340 +64991 99386295 1334 +64992 99387629 932 +64993 99388561 722 +64994 99389283 722 +64995 99390005 1184 +64996 99391189 1142 +64997 99392331 1268 +64998 99393599 2774 +64999 99396373 1316 +65000 99397689 92 +65001 99397781 578 +65002 99398359 578 +65003 99398937 1076 +65004 99400013 17365 +65005 99417378 1076 +65006 99418454 17389 +65007 99435843 2096 +65008 99437939 2048 +65009 99439987 884 +65010 99440871 1502 +65011 99442373 1502 +65012 99443875 458 +65013 99444333 104 +65014 99444437 2312 +65015 99446749 104 +65016 99446853 2312 +65017 99449165 1970 +65018 99451135 1094 +65019 99452229 1094 +65020 99453323 1100 +65021 99454423 1154 +65022 99455577 1238 +65023 99456815 350 +65024 99457165 1928 +65025 99459093 1976 +65026 99461069 3704 +65027 99464773 3680 +65028 99468453 3770 +65029 99472223 3374 +65030 99475597 932 +65031 99476529 1100 +65032 99477629 1094 +65033 99478723 4358 +65034 99483081 506 +65035 99483587 92 +65036 99483679 578 +65037 99484257 578 +65038 99484835 4268 +65039 99489103 1142 +65040 99490245 1004 +65041 99491249 1412 +65042 99492661 752 +65043 99493413 2876 +65044 99496289 2864 +65045 99499153 1118 +65046 99500271 4418 +65047 99504689 4418 +65048 99509107 4418 +65049 99513525 4418 +65050 99517943 4418 +65051 99522361 4418 +65052 99526779 800 +65053 99527579 782 +65054 99528361 1472 +65055 99529833 1526 +65056 99531359 1496 +65057 99532855 1496 +65058 99534351 650 +65059 99535001 650 +65060 99535651 1394 +65061 99537045 1004 +65062 99538049 608 +65063 99538657 2384 +65064 99541041 656 +65065 99541697 656 +65066 99542353 2186 +65067 99544539 2186 +65068 99546725 1658 +65069 99548383 1658 +65070 99550041 3308 +65071 99553349 3272 +65072 99556621 1646 +65073 99558267 1748 +65074 99560015 2318 +65075 99562333 1856 +65076 99564189 2852 +65077 99567041 1124 +65078 99568165 1022 +65079 99569187 1130 +65080 99570317 1088 +65081 99571405 1280 +65082 99572685 2030 +65083 99574715 2048 +65084 99576763 566 +65085 99577329 560 +65086 99577889 896 +65087 99578785 896 +65088 99579681 896 +65089 99580577 908 +65090 99581485 1562 +65091 99583047 1556 +65092 99584603 1370 +65093 99585973 1394 +65094 99587367 1388 +65095 99588755 1376 +65096 99590131 1118 +65097 99591249 464 +65098 99591713 1220 +65099 99592933 1226 +65100 99594159 428 +65101 99594587 1640 +65102 99596227 800 +65103 99597027 290 +65104 99597317 458 +65105 99597775 452 +65106 99598227 452 +65107 99598679 458 +65108 99599137 458 +65109 99599595 452 +65110 99600047 458 +65111 99600505 458 +65112 99600963 926 +65113 99601889 326 +65114 99602215 314 +65115 99602529 2486 +65116 99605015 2492 +65117 99607507 236 +65118 99607743 7430 +65119 99615173 548 +65120 99615721 2312 +65121 99618033 5702 +65122 99623735 5702 +65123 99629437 5702 +65124 99635139 5702 +65125 99640841 5702 +65126 99646543 5702 +65127 99652245 2072 +65128 99654317 1256 +65129 99655573 812 +65130 99656385 2624 +65131 99659009 2624 +65132 99661633 734 +65133 99662367 734 +65134 99663101 728 +65135 99663829 728 +65136 99664557 896 +65137 99665453 1052 +65138 99666505 1040 +65139 99667545 2402 +65140 99669947 2348 +65141 99672295 794 +65142 99673089 632 +65143 99673721 38 +65144 99673759 2312 +65145 99676071 2300 +65146 99678371 2312 +65147 99680683 2300 +65148 99682983 668 +65149 99683651 1244 +65150 99684895 1208 +65151 99686103 1094 +65152 99687197 1094 +65153 99688291 902 +65154 99689193 1508 +65155 99690701 1508 +65156 99692209 1322 +65157 99693531 686 +65158 99694217 530 +65159 99694747 788 +65160 99695535 1694 +65161 99697229 1694 +65162 99698923 1682 +65163 99700605 1706 +65164 99702311 2168 +65165 99704479 506 +65166 99704985 518 +65167 99705503 2216 +65168 99707719 452 +65169 99708171 476 +65170 99708647 2912 +65171 99711559 2888 +65172 99714447 2894 +65173 99717341 2882 +65174 99720223 2906 +65175 99723129 2888 +65176 99726017 1268 +65177 99727285 1262 +65178 99728547 1586 +65179 99730133 1490 +65180 99731623 1826 +65181 99733449 1832 +65182 99735281 548 +65183 99735829 548 +65184 99736377 1958 +65185 99738335 1934 +65186 99740269 566 +65187 99740835 566 +65188 99741401 674 +65189 99742075 386 +65190 99742461 446 +65191 99742907 356 +65192 99743263 440 +65193 99743703 386 +65194 99744089 440 +65195 99744529 854 +65196 99745383 1616 +65197 99746999 1232 +65198 99748231 1526 +65199 99749757 2396 +65200 99752153 2180 +65201 99754333 1766 +65202 99756099 1466 +65203 99757565 1364 +65204 99758929 1406 +65205 99760335 1148 +65206 99761483 1286 +65207 99762769 1028 +65208 99763797 1268 +65209 99765065 836 +65210 99765901 1226 +65211 99767127 1202 +65212 99768329 962 +65213 99769291 1130 +65214 99770421 1088 +65215 99771509 1064 +65216 99772573 962 +65217 99773535 602 +65218 99774137 842 +65219 99774979 1117 +65220 99776096 716 +65221 99776812 812 +65222 99777624 818 +65223 99778442 890 +65224 99779332 656 +65225 99779988 656 +65226 99780644 650 +65227 99781294 788 +65228 99782082 668 +65229 99782750 692 +65230 99783442 740 +65231 99784182 620 +65232 99784802 524 +65233 99785326 422 +65234 99785748 308 +65235 99786056 320 +65236 99786376 638 +65237 99787014 554 +65238 99787568 764 +65239 99788332 1022 +65240 99789354 506 +65241 99789860 386 +65242 99790246 410 +65243 99790656 350 +65244 99791006 614 +65245 99791620 1886 +65246 99793506 338 +65247 99793844 1334 +65248 99795178 1352 +65249 99796530 1328 +65250 99797858 1358 +65251 99799216 1580 +65252 99800796 1154 +65253 99801950 1430 +65254 99803380 1148 +65255 99804528 1244 +65256 99805772 1118 +65257 99806890 584 +65258 99807474 932 +65259 99808406 734 +65260 99809140 908 +65261 99810048 824 +65262 99810872 770 +65263 99811642 854 +65264 99812496 812 +65265 99813308 854 +65266 99814162 866 +65267 99815028 608 +65268 99815636 506 +65269 99816142 782 +65270 99816924 854 +65271 99817778 758 +65272 99818536 458 +65273 99818994 158 +65274 99819152 1040 +65275 99820192 494 +65276 99820686 494 +65277 99821180 1910 +65278 99823090 1514 +65279 99824604 1478 +65280 99826082 1118 +65281 99827200 2174 +65282 99829374 2174 +65283 99831548 1988 +65284 99833536 2294 +65285 99835830 524 +65286 99836354 524 +65287 99836878 374 +65288 99837252 386 +65289 99837638 1304 +65290 99838942 374 +65291 99839316 1316 +65292 99840632 302 +65293 99840934 2828 +65294 99843762 2846 +65295 99846608 2780 +65296 99849388 2336 +65297 99851724 1166 +65298 99852890 1730 +65299 99854620 1082 +65300 99855702 1052 +65301 99856754 998 +65302 99857752 2042 +65303 99859794 1844 +65304 99861638 626 +65305 99862264 398 +65306 99862662 398 +65307 99863060 356 +65308 99863416 4718 +65309 99868134 4718 +65310 99872852 1676 +65311 99874528 1676 +65312 99876204 290 +65313 99876494 290 +65314 99876784 1358 +65315 99878142 1358 +65316 99879500 1064 +65317 99880564 1064 +65318 99881628 1064 +65319 99882692 1064 +65320 99883756 1448 +65321 99885204 1676 +65322 99886880 1442 +65323 99888322 716 +65324 99889038 1712 +65325 99890750 1712 +65326 99892462 428 +65327 99892890 428 +65328 99893318 194 +65329 99893512 1310 +65330 99894822 1298 +65331 99896120 602 +65332 99896722 590 +65333 99897312 1220 +65334 99898532 1226 +65335 99899758 1220 +65336 99900978 1226 +65337 99902204 1220 +65338 99903424 1226 +65339 99904650 2672 +65340 99907322 2132 +65341 99909454 1040 +65342 99910494 1040 +65343 99911534 1040 +65344 99912574 1040 +65345 99913614 1418 +65346 99915032 434 +65347 99915466 434 +65348 99915900 992 +65349 99916892 974 +65350 99917866 2054 +65351 99919920 2036 +65352 99921956 1526 +65353 99923482 1076 +65354 99924558 1076 +65355 99925634 1838 +65356 99927472 938 +65357 99928410 3770 +65358 99932180 1256 +65359 99933436 782 +65360 99934218 782 +65361 99935000 782 +65362 99935782 1202 +65363 99936984 1208 +65364 99938192 1202 +65365 99939394 1208 +65366 99940602 728 +65367 99941330 722 +65368 99942052 1250 +65369 99943302 2582 +65370 99945884 2606 +65371 99948490 2276 +65372 99950766 3356 +65373 99954122 614 +65374 99954736 2972 +65375 99957708 4028 +65376 99961736 1142 +65377 99962878 470 +65378 99963348 620 +65379 99963968 518 +65380 99964486 1136 +65381 99965622 530 +65382 99966152 518 +65383 99966670 596 +65384 99967266 440 +65385 99967706 1010 +65386 99968716 614 +65387 99969330 1124 +65388 99970454 866 +65389 99971320 488 +65390 99971808 392 +65391 99972200 608 +65392 99972808 236 +65393 99973044 470 +65394 99973514 494 +65395 99974008 446 +65396 99974454 818 +65397 99975272 2012 +65398 99977284 3356 +65399 99980640 788 +65400 99981428 2972 +65401 99984400 4028 +65402 99988428 1148 +65403 99989576 470 +65404 99990046 626 +65405 99990672 4274 +65406 99994946 2744 +65407 99997690 2654 +65408 100000344 518 +65409 100000862 2030 +65410 100002892 1436 +65411 100004328 1460 +65412 100005788 1334 +65413 100007122 1118 +65414 100008240 1124 +65415 100009364 1100 +65416 100010464 536 +65417 100011000 710 +65418 100011710 500 +65419 100012210 698 +65420 100012908 518 +65421 100013426 596 +65422 100014022 452 +65423 100014474 1022 +65424 100015496 728 +65425 100016224 1130 +65426 100017354 932 +65427 100018286 1124 +65428 100019410 866 +65429 100020276 494 +65430 100020770 368 +65431 100021138 602 +65432 100021740 230 +65433 100021970 536 +65434 100022506 476 +65435 100022982 806 +65436 100023788 488 +65437 100024276 446 +65438 100024722 818 +65439 100025540 200 +65440 100025740 2012 +65441 100027752 3356 +65442 100031108 614 +65443 100031722 2972 +65444 100034694 4028 +65445 100038722 1148 +65446 100039870 476 +65447 100040346 626 +65448 100040972 518 +65449 100041490 1124 +65450 100042614 530 +65451 100043144 518 +65452 100043662 596 +65453 100044258 452 +65454 100044710 1010 +65455 100045720 602 +65456 100046322 1130 +65457 100047452 872 +65458 100048324 494 +65459 100048818 374 +65460 100049192 614 +65461 100049806 236 +65462 100050042 476 +65463 100050518 494 +65464 100051012 458 +65465 100051470 818 +65466 100052288 848 +65467 100053136 848 +65468 100053984 1118 +65469 100055102 1004 +65470 100056106 1010 +65471 100057116 572 +65472 100057688 566 +65473 100058254 560 +65474 100058814 572 +65475 100059386 560 +65476 100059946 572 +65477 100060518 572 +65478 100061090 572 +65479 100061662 554 +65480 100062216 572 +65481 100062788 572 +65482 100063360 572 +65483 100063932 572 +65484 100064504 572 +65485 100065076 572 +65486 100065648 572 +65487 100066220 572 +65488 100066792 560 +65489 100067352 554 +65490 100067906 554 +65491 100068460 836 +65492 100069296 362 +65493 100069658 890 +65494 100070548 410 +65495 100070958 2120 +65496 100073078 2120 +65497 100075198 68 +65498 100075266 68 +65499 100075334 68 +65500 100075402 68 +65501 100075470 68 +65502 100075538 68 +65503 100075606 68 +65504 100075674 68 +65505 100075742 68 +65506 100075810 68 +65507 100075878 4088 +65508 100079966 4100 +65509 100084066 4064 +65510 100088130 4070 +65511 100092200 602 +65512 100092802 2156 +65513 100094958 2150 +65514 100097108 1118 +65515 100098226 56 +65516 100098282 2294 +65517 100100576 2282 +65518 100102858 2696 +65519 100105554 2708 +65520 100108262 2708 +65521 100110970 2726 +65522 100113696 3464 +65523 100117160 752 +65524 100117912 752 +65525 100118664 1634 +65526 100120298 1634 +65527 100121932 1634 +65528 100123566 1634 +65529 100125200 1634 +65530 100126834 1634 +65531 100128468 1634 +65532 100130102 1634 +65533 100131736 1634 +65534 100133370 1634 +65535 100135004 1634 +65536 100136638 1634 +65537 100138272 818 +65538 100139090 560 +65539 100139650 572 +65540 100140222 572 +65541 100140794 554 +65542 100141348 542 +65543 100141890 554 +65544 100142444 572 +65545 100143016 560 +65546 100143576 560 +65547 100144136 560 +65548 100144696 1088 +65549 100145784 1088 +65550 100146872 1220 +65551 100148092 1172 +65552 100149264 1214 +65553 100150478 1172 +65554 100151650 4214 +65555 100155864 1652 +65556 100157516 974 +65557 100158490 4214 +65558 100162704 1652 +65559 100164356 974 +65560 100165330 626 +65561 100165956 596 +65562 100166552 722 +65563 100167274 722 +65564 100167996 2282 +65565 100170278 2282 +65566 100172560 92 +65567 100172652 1208 +65568 100173860 770 +65569 100174630 1208 +65570 100175838 770 +65571 100176608 1208 +65572 100177816 770 +65573 100178586 1544 +65574 100180130 1490 +65575 100181620 752 +65576 100182372 638 +65577 100183010 764 +65578 100183774 788 +65579 100184562 4880 +65580 100189442 10220 +65581 100199662 716 +65582 100200378 1370 +65583 100201748 1712 +65584 100203460 1610 +65585 100205070 1718 +65586 100206788 1700 +65587 100208488 1718 +65588 100210206 1610 +65589 100211816 1016 +65590 100212832 518 +65591 100213350 512 +65592 100213862 536 +65593 100214398 962 +65594 100215360 962 +65595 100216322 2534 +65596 100218856 1730 +65597 100220586 1706 +65598 100222292 1118 +65599 100223410 950 +65600 100224360 3770 +65601 100228130 3770 +65602 100231900 3770 +65603 100235670 3770 +65604 100239440 1310 +65605 100240750 1310 +65606 100242060 776 +65607 100242836 776 +65608 100243612 1214 +65609 100244826 1232 +65610 100246058 1232 +65611 100247290 1232 +65612 100248522 1676 +65613 100250198 1676 +65614 100251874 2198 +65615 100254072 692 +65616 100254764 692 +65617 100255456 692 +65618 100256148 692 +65619 100256840 794 +65620 100257634 788 +65621 100258422 104 +65622 100258526 104 +65623 100258630 104 +65624 100258734 104 +65625 100258838 1640 +65626 100260478 362 +65627 100260840 344 +65628 100261184 344 +65629 100261528 344 +65630 100261872 350 +65631 100262222 344 +65632 100262566 362 +65633 100262928 338 +65634 100263266 356 +65635 100263622 344 +65636 100263966 428 +65637 100264394 428 +65638 100264822 428 +65639 100265250 428 +65640 100265678 428 +65641 100266106 428 +65642 100266534 428 +65643 100266962 428 +65644 100267390 434 +65645 100267824 428 +65646 100268252 458 +65647 100268710 464 +65648 100269174 470 +65649 100269644 458 +65650 100270102 464 +65651 100270566 458 +65652 100271024 464 +65653 100271488 470 +65654 100271958 464 +65655 100272422 1424 +65656 100273846 1424 +65657 100275270 1424 +65658 100276694 398 +65659 100277092 398 +65660 100277490 1490 +65661 100278980 1490 +65662 100280470 3506 +65663 100283976 3506 +65664 100287482 3536 +65665 100291018 3536 +65666 100294554 1526 +65667 100296080 1514 +65668 100297594 1532 +65669 100299126 1922 +65670 100301048 1922 +65671 100302970 506 +65672 100303476 3854 +65673 100307330 3854 +65674 100311184 404 +65675 100311588 398 +65676 100311986 2576 +65677 100314562 968 +65678 100315530 92 +65679 100315622 716 +65680 100316338 1856 +65681 100318194 1856 +65682 100320050 2408 +65683 100322458 464 +65684 100322922 668 +65685 100323590 632 +65686 100324222 668 +65687 100324890 632 +65688 100325522 380 +65689 100325902 380 +65690 100326282 380 +65691 100326662 380 +65692 100327042 380 +65693 100327422 380 +65694 100327802 380 +65695 100328182 380 +65696 100328562 1190 +65697 100329752 1190 +65698 100330942 2822 +65699 100333764 2396 +65700 100336160 1112 +65701 100337272 632 +65702 100337904 1328 +65703 100339232 662 +65704 100339894 1034 +65705 100340928 1034 +65706 100341962 1034 +65707 100342996 1034 +65708 100344030 1034 +65709 100345064 1034 +65710 100346098 1034 +65711 100347132 1034 +65712 100348166 1034 +65713 100349200 1034 +65714 100350234 1034 +65715 100351268 1034 +65716 100352302 1976 +65717 100354278 2270 +65718 100356548 2774 +65719 100359322 2774 +65720 100362096 1766 +65721 100363862 1772 +65722 100365634 1766 +65723 100367400 1772 +65724 100369172 1766 +65725 100370938 1772 +65726 100372710 2774 +65727 100375484 2768 +65728 100378252 680 +65729 100378932 32 +65730 100378964 680 +65731 100379644 32 +65732 100379676 680 +65733 100380356 32 +65734 100380388 680 +65735 100381068 32 +65736 100381100 680 +65737 100381780 32 +65738 100381812 680 +65739 100382492 32 +65740 100382524 680 +65741 100383204 32 +65742 100383236 680 +65743 100383916 32 +65744 100383948 680 +65745 100384628 32 +65746 100384660 680 +65747 100385340 32 +65748 100385372 680 +65749 100386052 32 +65750 100386084 680 +65751 100386764 32 +65752 100386796 1892 +65753 100388688 1892 +65754 100390580 1892 +65755 100392472 1892 +65756 100394364 704 +65757 100395068 854 +65758 100395922 560 +65759 100396482 656 +65760 100397138 1838 +65761 100398976 1832 +65762 100400808 1376 +65763 100402184 4442 +65764 100406626 1160 +65765 100407786 842 +65766 100408628 842 +65767 100409470 2090 +65768 100411560 2090 +65769 100413650 2090 +65770 100415740 2090 +65771 100417830 3398 +65772 100421228 3398 +65773 100424626 1616 +65774 100426242 692 +65775 100426934 398 +65776 100427332 1874 +65777 100429206 1190 +65778 100430396 1190 +65779 100431586 1022 +65780 100432608 1022 +65781 100433630 854 +65782 100434484 314 +65783 100434798 854 +65784 100435652 314 +65785 100435966 854 +65786 100436820 314 +65787 100437134 2948 +65788 100440082 2948 +65789 100443030 2948 +65790 100445978 2948 +65791 100448926 2948 +65792 100451874 2948 +65793 100454822 2954 +65794 100457776 2954 +65795 100460730 2954 +65796 100463684 2954 +65797 100466638 2954 +65798 100469592 2954 +65799 100472546 2948 +65800 100475494 2948 +65801 100478442 2948 +65802 100481390 2948 +65803 100484338 2948 +65804 100487286 2948 +65805 100490234 2948 +65806 100493182 2948 +65807 100496130 2948 +65808 100499078 2828 +65809 100501906 2828 +65810 100504734 2810 +65811 100507544 2852 +65812 100510396 1964 +65813 100512360 1400 +65814 100513760 1838 +65815 100515598 1016 +65816 100516614 1016 +65817 100517630 1016 +65818 100518646 1016 +65819 100519662 1016 +65820 100520678 1016 +65821 100521694 1016 +65822 100522710 1016 +65823 100523726 1016 +65824 100524742 1016 +65825 100525758 1016 +65826 100526774 1016 +65827 100527790 980 +65828 100528770 2504 +65829 100531274 2492 +65830 100533766 1490 +65831 100535256 260 +65832 100535516 488 +65833 100536004 482 +65834 100536486 2540 +65835 100539026 2564 +65836 100541590 896 +65837 100542486 1316 +65838 100543802 1304 +65839 100545106 3500 +65840 100548606 3632 +65841 100552238 3380 +65842 100555618 3038 +65843 100558656 3206 +65844 100561862 3230 +65845 100565092 1052 +65846 100566144 764 +65847 100566908 764 +65848 100567672 764 +65849 100568436 764 +65850 100569200 764 +65851 100569964 764 +65852 100570728 524 +65853 100571252 752 +65854 100572004 752 +65855 100572756 362 +65856 100573118 362 +65857 100573480 1028 +65858 100574508 1028 +65859 100575536 1958 +65860 100577494 1982 +65861 100579476 920 +65862 100580396 950 +65863 100581346 830 +65864 100582176 572 +65865 100582748 1802 +65866 100584550 1808 +65867 100586358 1808 +65868 100588166 554 +65869 100588720 554 +65870 100589274 1436 +65871 100590710 704 +65872 100591414 698 +65873 100592112 686 +65874 100592798 686 +65875 100593484 974 +65876 100594458 992 +65877 100595450 80 +65878 100595530 1322 +65879 100596852 1322 +65880 100598174 632 +65881 100598806 1094 +65882 100599900 524 +65883 100600424 524 +65884 100600948 524 +65885 100601472 524 +65886 100601996 524 +65887 100602520 524 +65888 100603044 524 +65889 100603568 524 +65890 100604092 524 +65891 100604616 524 +65892 100605140 254 +65893 100605394 3632 +65894 100609026 254 +65895 100609280 3632 +65896 100612912 254 +65897 100613166 3632 +65898 100616798 254 +65899 100617052 3632 +65900 100620684 254 +65901 100620938 3632 +65902 100624570 254 +65903 100624824 3632 +65904 100628456 254 +65905 100628710 3632 +65906 100632342 254 +65907 100632596 3632 +65908 100636228 254 +65909 100636482 3632 +65910 100640114 254 +65911 100640368 3632 +65912 100644000 2474 +65913 100646474 2474 +65914 100648948 7712 +65915 100656660 6116 +65916 100662776 6932 +65917 100669708 524 +65918 100670232 524 +65919 100670756 524 +65920 100671280 524 +65921 100671804 524 +65922 100672328 524 +65923 100672852 524 +65924 100673376 524 +65925 100673900 524 +65926 100674424 524 +65927 100674948 254 +65928 100675202 3632 +65929 100678834 254 +65930 100679088 3632 +65931 100682720 254 +65932 100682974 3632 +65933 100686606 254 +65934 100686860 3632 +65935 100690492 254 +65936 100690746 3632 +65937 100694378 254 +65938 100694632 3632 +65939 100698264 254 +65940 100698518 3632 +65941 100702150 254 +65942 100702404 3632 +65943 100706036 254 +65944 100706290 3632 +65945 100709922 254 +65946 100710176 3632 +65947 100713808 2474 +65948 100716282 2474 +65949 100718756 7712 +65950 100726468 6116 +65951 100732584 6932 +65952 100739516 524 +65953 100740040 524 +65954 100740564 524 +65955 100741088 524 +65956 100741612 524 +65957 100742136 524 +65958 100742660 524 +65959 100743184 524 +65960 100743708 524 +65961 100744232 524 +65962 100744756 254 +65963 100745010 3632 +65964 100748642 254 +65965 100748896 3632 +65966 100752528 254 +65967 100752782 3632 +65968 100756414 254 +65969 100756668 3632 +65970 100760300 254 +65971 100760554 3632 +65972 100764186 254 +65973 100764440 3632 +65974 100768072 254 +65975 100768326 3632 +65976 100771958 254 +65977 100772212 3632 +65978 100775844 254 +65979 100776098 3632 +65980 100779730 254 +65981 100779984 3632 +65982 100783616 2474 +65983 100786090 2474 +65984 100788564 7712 +65985 100796276 6116 +65986 100802392 6932 +65987 100809324 524 +65988 100809848 524 +65989 100810372 524 +65990 100810896 524 +65991 100811420 524 +65992 100811944 524 +65993 100812468 524 +65994 100812992 524 +65995 100813516 524 +65996 100814040 524 +65997 100814564 254 +65998 100814818 3632 +65999 100818450 254 +66000 100818704 3632 +66001 100822336 254 +66002 100822590 3632 +66003 100826222 254 +66004 100826476 3632 +66005 100830108 254 +66006 100830362 3632 +66007 100833994 254 +66008 100834248 3632 +66009 100837880 254 +66010 100838134 3632 +66011 100841766 254 +66012 100842020 3632 +66013 100845652 254 +66014 100845906 3632 +66015 100849538 254 +66016 100849792 3632 +66017 100853424 2474 +66018 100855898 2474 +66019 100858372 7712 +66020 100866084 6116 +66021 100872200 6932 +66022 100879132 524 +66023 100879656 524 +66024 100880180 524 +66025 100880704 524 +66026 100881228 524 +66027 100881752 524 +66028 100882276 524 +66029 100882800 524 +66030 100883324 524 +66031 100883848 524 +66032 100884372 254 +66033 100884626 3632 +66034 100888258 254 +66035 100888512 3632 +66036 100892144 254 +66037 100892398 3632 +66038 100896030 254 +66039 100896284 3632 +66040 100899916 254 +66041 100900170 3632 +66042 100903802 254 +66043 100904056 3632 +66044 100907688 254 +66045 100907942 3632 +66046 100911574 254 +66047 100911828 3632 +66048 100915460 254 +66049 100915714 3632 +66050 100919346 254 +66051 100919600 3632 +66052 100923232 2474 +66053 100925706 2474 +66054 100928180 7712 +66055 100935892 6116 +66056 100942008 6932 +66057 100948940 524 +66058 100949464 524 +66059 100949988 524 +66060 100950512 524 +66061 100951036 524 +66062 100951560 524 +66063 100952084 524 +66064 100952608 524 +66065 100953132 524 +66066 100953656 524 +66067 100954180 254 +66068 100954434 3632 +66069 100958066 254 +66070 100958320 3632 +66071 100961952 254 +66072 100962206 3632 +66073 100965838 254 +66074 100966092 3632 +66075 100969724 254 +66076 100969978 3632 +66077 100973610 254 +66078 100973864 3632 +66079 100977496 254 +66080 100977750 3632 +66081 100981382 254 +66082 100981636 3632 +66083 100985268 254 +66084 100985522 3632 +66085 100989154 254 +66086 100989408 3632 +66087 100993040 2474 +66088 100995514 2474 +66089 100997988 7712 +66090 101005700 6116 +66091 101011816 6932 +66092 101018748 524 +66093 101019272 524 +66094 101019796 524 +66095 101020320 524 +66096 101020844 524 +66097 101021368 524 +66098 101021892 524 +66099 101022416 524 +66100 101022940 524 +66101 101023464 524 +66102 101023988 254 +66103 101024242 3632 +66104 101027874 254 +66105 101028128 3632 +66106 101031760 254 +66107 101032014 3632 +66108 101035646 254 +66109 101035900 3632 +66110 101039532 254 +66111 101039786 3632 +66112 101043418 254 +66113 101043672 3632 +66114 101047304 254 +66115 101047558 3632 +66116 101051190 254 +66117 101051444 3632 +66118 101055076 254 +66119 101055330 3632 +66120 101058962 254 +66121 101059216 3632 +66122 101062848 2474 +66123 101065322 2474 +66124 101067796 7712 +66125 101075508 6116 +66126 101081624 6932 +66127 101088556 524 +66128 101089080 524 +66129 101089604 524 +66130 101090128 524 +66131 101090652 524 +66132 101091176 524 +66133 101091700 524 +66134 101092224 524 +66135 101092748 524 +66136 101093272 524 +66137 101093796 254 +66138 101094050 3632 +66139 101097682 254 +66140 101097936 3632 +66141 101101568 254 +66142 101101822 3632 +66143 101105454 254 +66144 101105708 3632 +66145 101109340 254 +66146 101109594 3632 +66147 101113226 254 +66148 101113480 3632 +66149 101117112 254 +66150 101117366 3632 +66151 101120998 254 +66152 101121252 3632 +66153 101124884 254 +66154 101125138 3632 +66155 101128770 254 +66156 101129024 3632 +66157 101132656 2474 +66158 101135130 2474 +66159 101137604 7712 +66160 101145316 6116 +66161 101151432 6932 +66162 101158364 524 +66163 101158888 524 +66164 101159412 524 +66165 101159936 524 +66166 101160460 524 +66167 101160984 524 +66168 101161508 524 +66169 101162032 524 +66170 101162556 524 +66171 101163080 524 +66172 101163604 254 +66173 101163858 3632 +66174 101167490 254 +66175 101167744 3632 +66176 101171376 254 +66177 101171630 3632 +66178 101175262 254 +66179 101175516 3632 +66180 101179148 254 +66181 101179402 3632 +66182 101183034 254 +66183 101183288 3632 +66184 101186920 254 +66185 101187174 3632 +66186 101190806 254 +66187 101191060 3632 +66188 101194692 254 +66189 101194946 3632 +66190 101198578 254 +66191 101198832 3632 +66192 101202464 2474 +66193 101204938 2474 +66194 101207412 7712 +66195 101215124 6116 +66196 101221240 6932 +66197 101228172 524 +66198 101228696 524 +66199 101229220 524 +66200 101229744 524 +66201 101230268 524 +66202 101230792 524 +66203 101231316 524 +66204 101231840 524 +66205 101232364 524 +66206 101232888 524 +66207 101233412 254 +66208 101233666 3632 +66209 101237298 254 +66210 101237552 3632 +66211 101241184 254 +66212 101241438 3632 +66213 101245070 254 +66214 101245324 3632 +66215 101248956 254 +66216 101249210 3632 +66217 101252842 254 +66218 101253096 3632 +66219 101256728 254 +66220 101256982 3632 +66221 101260614 254 +66222 101260868 3632 +66223 101264500 254 +66224 101264754 3632 +66225 101268386 254 +66226 101268640 3632 +66227 101272272 2474 +66228 101274746 2474 +66229 101277220 7712 +66230 101284932 6116 +66231 101291048 6932 +66232 101297980 524 +66233 101298504 524 +66234 101299028 524 +66235 101299552 524 +66236 101300076 524 +66237 101300600 524 +66238 101301124 524 +66239 101301648 524 +66240 101302172 524 +66241 101302696 524 +66242 101303220 254 +66243 101303474 3632 +66244 101307106 254 +66245 101307360 3632 +66246 101310992 254 +66247 101311246 3632 +66248 101314878 254 +66249 101315132 3632 +66250 101318764 254 +66251 101319018 3632 +66252 101322650 254 +66253 101322904 3632 +66254 101326536 254 +66255 101326790 3632 +66256 101330422 254 +66257 101330676 3632 +66258 101334308 254 +66259 101334562 3632 +66260 101338194 254 +66261 101338448 3632 +66262 101342080 2474 +66263 101344554 2474 +66264 101347028 7712 +66265 101354740 6116 +66266 101360856 6932 +66267 101367788 524 +66268 101368312 524 +66269 101368836 524 +66270 101369360 524 +66271 101369884 524 +66272 101370408 524 +66273 101370932 524 +66274 101371456 524 +66275 101371980 524 +66276 101372504 524 +66277 101373028 254 +66278 101373282 3632 +66279 101376914 254 +66280 101377168 3632 +66281 101380800 254 +66282 101381054 3632 +66283 101384686 254 +66284 101384940 3632 +66285 101388572 254 +66286 101388826 3632 +66287 101392458 254 +66288 101392712 3632 +66289 101396344 254 +66290 101396598 3632 +66291 101400230 254 +66292 101400484 3632 +66293 101404116 254 +66294 101404370 3632 +66295 101408002 254 +66296 101408256 3632 +66297 101411888 2474 +66298 101414362 2474 +66299 101416836 7712 +66300 101424548 6116 +66301 101430664 6932 +66302 101437596 524 +66303 101438120 524 +66304 101438644 524 +66305 101439168 524 +66306 101439692 524 +66307 101440216 524 +66308 101440740 524 +66309 101441264 524 +66310 101441788 524 +66311 101442312 524 +66312 101442836 254 +66313 101443090 3632 +66314 101446722 254 +66315 101446976 3632 +66316 101450608 254 +66317 101450862 3632 +66318 101454494 254 +66319 101454748 3632 +66320 101458380 254 +66321 101458634 3632 +66322 101462266 254 +66323 101462520 3632 +66324 101466152 254 +66325 101466406 3632 +66326 101470038 254 +66327 101470292 3632 +66328 101473924 254 +66329 101474178 3632 +66330 101477810 254 +66331 101478064 3632 +66332 101481696 2474 +66333 101484170 2474 +66334 101486644 7712 +66335 101494356 6116 +66336 101500472 6932 +66337 101507404 524 +66338 101507928 524 +66339 101508452 524 +66340 101508976 524 +66341 101509500 524 +66342 101510024 524 +66343 101510548 524 +66344 101511072 524 +66345 101511596 524 +66346 101512120 524 +66347 101512644 254 +66348 101512898 3632 +66349 101516530 254 +66350 101516784 3632 +66351 101520416 254 +66352 101520670 3632 +66353 101524302 254 +66354 101524556 3632 +66355 101528188 254 +66356 101528442 3632 +66357 101532074 254 +66358 101532328 3632 +66359 101535960 254 +66360 101536214 3632 +66361 101539846 254 +66362 101540100 3632 +66363 101543732 254 +66364 101543986 3632 +66365 101547618 254 +66366 101547872 3632 +66367 101551504 2474 +66368 101553978 2474 +66369 101556452 7712 +66370 101564164 6116 +66371 101570280 6932 +66372 101577212 524 +66373 101577736 524 +66374 101578260 524 +66375 101578784 524 +66376 101579308 524 +66377 101579832 524 +66378 101580356 524 +66379 101580880 524 +66380 101581404 524 +66381 101581928 524 +66382 101582452 254 +66383 101582706 3632 +66384 101586338 254 +66385 101586592 3632 +66386 101590224 254 +66387 101590478 3632 +66388 101594110 254 +66389 101594364 3632 +66390 101597996 254 +66391 101598250 3632 +66392 101601882 254 +66393 101602136 3632 +66394 101605768 254 +66395 101606022 3632 +66396 101609654 254 +66397 101609908 3632 +66398 101613540 254 +66399 101613794 3632 +66400 101617426 254 +66401 101617680 3632 +66402 101621312 2474 +66403 101623786 2474 +66404 101626260 7712 +66405 101633972 6116 +66406 101640088 6932 +66407 101647020 524 +66408 101647544 524 +66409 101648068 524 +66410 101648592 524 +66411 101649116 524 +66412 101649640 524 +66413 101650164 524 +66414 101650688 524 +66415 101651212 524 +66416 101651736 524 +66417 101652260 254 +66418 101652514 3632 +66419 101656146 254 +66420 101656400 3632 +66421 101660032 254 +66422 101660286 3632 +66423 101663918 254 +66424 101664172 3632 +66425 101667804 254 +66426 101668058 3632 +66427 101671690 254 +66428 101671944 3632 +66429 101675576 254 +66430 101675830 3632 +66431 101679462 254 +66432 101679716 3632 +66433 101683348 254 +66434 101683602 3632 +66435 101687234 254 +66436 101687488 3632 +66437 101691120 2474 +66438 101693594 2474 +66439 101696068 7712 +66440 101703780 6116 +66441 101709896 6932 +66442 101716828 524 +66443 101717352 524 +66444 101717876 524 +66445 101718400 524 +66446 101718924 524 +66447 101719448 524 +66448 101719972 524 +66449 101720496 524 +66450 101721020 524 +66451 101721544 524 +66452 101722068 254 +66453 101722322 3632 +66454 101725954 254 +66455 101726208 3632 +66456 101729840 254 +66457 101730094 3632 +66458 101733726 254 +66459 101733980 3632 +66460 101737612 254 +66461 101737866 3632 +66462 101741498 254 +66463 101741752 3632 +66464 101745384 254 +66465 101745638 3632 +66466 101749270 254 +66467 101749524 3632 +66468 101753156 254 +66469 101753410 3632 +66470 101757042 254 +66471 101757296 3632 +66472 101760928 2474 +66473 101763402 2474 +66474 101765876 7712 +66475 101773588 6116 +66476 101779704 6932 +66477 101786636 524 +66478 101787160 524 +66479 101787684 524 +66480 101788208 524 +66481 101788732 524 +66482 101789256 524 +66483 101789780 524 +66484 101790304 524 +66485 101790828 524 +66486 101791352 524 +66487 101791876 254 +66488 101792130 3632 +66489 101795762 254 +66490 101796016 3632 +66491 101799648 254 +66492 101799902 3632 +66493 101803534 254 +66494 101803788 3632 +66495 101807420 254 +66496 101807674 3632 +66497 101811306 254 +66498 101811560 3632 +66499 101815192 254 +66500 101815446 3632 +66501 101819078 254 +66502 101819332 3632 +66503 101822964 254 +66504 101823218 3632 +66505 101826850 254 +66506 101827104 3632 +66507 101830736 2474 +66508 101833210 2474 +66509 101835684 7712 +66510 101843396 6116 +66511 101849512 6932 +66512 101856444 524 +66513 101856968 524 +66514 101857492 524 +66515 101858016 524 +66516 101858540 524 +66517 101859064 524 +66518 101859588 524 +66519 101860112 524 +66520 101860636 524 +66521 101861160 524 +66522 101861684 254 +66523 101861938 3632 +66524 101865570 254 +66525 101865824 3632 +66526 101869456 254 +66527 101869710 3632 +66528 101873342 254 +66529 101873596 3632 +66530 101877228 254 +66531 101877482 3632 +66532 101881114 254 +66533 101881368 3632 +66534 101885000 254 +66535 101885254 3632 +66536 101888886 254 +66537 101889140 3632 +66538 101892772 254 +66539 101893026 3632 +66540 101896658 254 +66541 101896912 3632 +66542 101900544 2474 +66543 101903018 2474 +66544 101905492 7712 +66545 101913204 6116 +66546 101919320 6932 +66547 101926252 524 +66548 101926776 524 +66549 101927300 524 +66550 101927824 524 +66551 101928348 524 +66552 101928872 524 +66553 101929396 524 +66554 101929920 524 +66555 101930444 524 +66556 101930968 524 +66557 101931492 254 +66558 101931746 3632 +66559 101935378 254 +66560 101935632 3632 +66561 101939264 254 +66562 101939518 3632 +66563 101943150 254 +66564 101943404 3632 +66565 101947036 254 +66566 101947290 3632 +66567 101950922 254 +66568 101951176 3632 +66569 101954808 254 +66570 101955062 3632 +66571 101958694 254 +66572 101958948 3632 +66573 101962580 254 +66574 101962834 3632 +66575 101966466 254 +66576 101966720 3632 +66577 101970352 2474 +66578 101972826 2474 +66579 101975300 7712 +66580 101983012 6116 +66581 101989128 6932 +66582 101996060 524 +66583 101996584 524 +66584 101997108 524 +66585 101997632 524 +66586 101998156 524 +66587 101998680 524 +66588 101999204 524 +66589 101999728 524 +66590 102000252 524 +66591 102000776 524 +66592 102001300 254 +66593 102001554 3632 +66594 102005186 254 +66595 102005440 3632 +66596 102009072 254 +66597 102009326 3632 +66598 102012958 254 +66599 102013212 3632 +66600 102016844 254 +66601 102017098 3632 +66602 102020730 254 +66603 102020984 3632 +66604 102024616 254 +66605 102024870 3632 +66606 102028502 254 +66607 102028756 3632 +66608 102032388 254 +66609 102032642 3632 +66610 102036274 254 +66611 102036528 3632 +66612 102040160 2474 +66613 102042634 2474 +66614 102045108 7712 +66615 102052820 6116 +66616 102058936 6932 +66617 102065868 524 +66618 102066392 524 +66619 102066916 524 +66620 102067440 524 +66621 102067964 524 +66622 102068488 524 +66623 102069012 524 +66624 102069536 524 +66625 102070060 524 +66626 102070584 524 +66627 102071108 254 +66628 102071362 3632 +66629 102074994 254 +66630 102075248 3632 +66631 102078880 254 +66632 102079134 3632 +66633 102082766 254 +66634 102083020 3632 +66635 102086652 254 +66636 102086906 3632 +66637 102090538 254 +66638 102090792 3632 +66639 102094424 254 +66640 102094678 3632 +66641 102098310 254 +66642 102098564 3632 +66643 102102196 254 +66644 102102450 3632 +66645 102106082 254 +66646 102106336 3632 +66647 102109968 2474 +66648 102112442 2474 +66649 102114916 7712 +66650 102122628 6116 +66651 102128744 6932 +66652 102135676 524 +66653 102136200 524 +66654 102136724 524 +66655 102137248 524 +66656 102137772 524 +66657 102138296 524 +66658 102138820 524 +66659 102139344 524 +66660 102139868 524 +66661 102140392 524 +66662 102140916 254 +66663 102141170 3632 +66664 102144802 254 +66665 102145056 3632 +66666 102148688 254 +66667 102148942 3632 +66668 102152574 254 +66669 102152828 3632 +66670 102156460 254 +66671 102156714 3632 +66672 102160346 254 +66673 102160600 3632 +66674 102164232 254 +66675 102164486 3632 +66676 102168118 254 +66677 102168372 3632 +66678 102172004 254 +66679 102172258 3632 +66680 102175890 254 +66681 102176144 3632 +66682 102179776 2474 +66683 102182250 2474 +66684 102184724 7712 +66685 102192436 6116 +66686 102198552 6932 +66687 102205484 524 +66688 102206008 524 +66689 102206532 524 +66690 102207056 524 +66691 102207580 524 +66692 102208104 524 +66693 102208628 524 +66694 102209152 524 +66695 102209676 524 +66696 102210200 524 +66697 102210724 254 +66698 102210978 3632 +66699 102214610 254 +66700 102214864 3632 +66701 102218496 254 +66702 102218750 3632 +66703 102222382 254 +66704 102222636 3632 +66705 102226268 254 +66706 102226522 3632 +66707 102230154 254 +66708 102230408 3632 +66709 102234040 254 +66710 102234294 3632 +66711 102237926 254 +66712 102238180 3632 +66713 102241812 254 +66714 102242066 3632 +66715 102245698 254 +66716 102245952 3632 +66717 102249584 2474 +66718 102252058 2474 +66719 102254532 7712 +66720 102262244 6116 +66721 102268360 6932 +66722 102275292 524 +66723 102275816 524 +66724 102276340 524 +66725 102276864 524 +66726 102277388 524 +66727 102277912 524 +66728 102278436 524 +66729 102278960 524 +66730 102279484 524 +66731 102280008 524 +66732 102280532 254 +66733 102280786 3632 +66734 102284418 254 +66735 102284672 3632 +66736 102288304 254 +66737 102288558 3632 +66738 102292190 254 +66739 102292444 3632 +66740 102296076 254 +66741 102296330 3632 +66742 102299962 254 +66743 102300216 3632 +66744 102303848 254 +66745 102304102 3632 +66746 102307734 254 +66747 102307988 3632 +66748 102311620 254 +66749 102311874 3632 +66750 102315506 254 +66751 102315760 3632 +66752 102319392 2474 +66753 102321866 2474 +66754 102324340 7712 +66755 102332052 6116 +66756 102338168 6932 +66757 102345100 524 +66758 102345624 524 +66759 102346148 524 +66760 102346672 524 +66761 102347196 524 +66762 102347720 524 +66763 102348244 524 +66764 102348768 524 +66765 102349292 524 +66766 102349816 524 +66767 102350340 254 +66768 102350594 3632 +66769 102354226 254 +66770 102354480 3632 +66771 102358112 254 +66772 102358366 3632 +66773 102361998 254 +66774 102362252 3632 +66775 102365884 254 +66776 102366138 3632 +66777 102369770 254 +66778 102370024 3632 +66779 102373656 254 +66780 102373910 3632 +66781 102377542 254 +66782 102377796 3632 +66783 102381428 254 +66784 102381682 3632 +66785 102385314 254 +66786 102385568 3632 +66787 102389200 2474 +66788 102391674 2474 +66789 102394148 7712 +66790 102401860 6116 +66791 102407976 6932 +66792 102414908 524 +66793 102415432 524 +66794 102415956 524 +66795 102416480 524 +66796 102417004 524 +66797 102417528 524 +66798 102418052 524 +66799 102418576 524 +66800 102419100 524 +66801 102419624 524 +66802 102420148 254 +66803 102420402 3632 +66804 102424034 254 +66805 102424288 3632 +66806 102427920 254 +66807 102428174 3632 +66808 102431806 254 +66809 102432060 3632 +66810 102435692 254 +66811 102435946 3632 +66812 102439578 254 +66813 102439832 3632 +66814 102443464 254 +66815 102443718 3632 +66816 102447350 254 +66817 102447604 3632 +66818 102451236 254 +66819 102451490 3632 +66820 102455122 254 +66821 102455376 3632 +66822 102459008 2474 +66823 102461482 2474 +66824 102463956 7712 +66825 102471668 6116 +66826 102477784 6932 +66827 102484716 524 +66828 102485240 524 +66829 102485764 524 +66830 102486288 524 +66831 102486812 524 +66832 102487336 524 +66833 102487860 524 +66834 102488384 524 +66835 102488908 524 +66836 102489432 524 +66837 102489956 254 +66838 102490210 3632 +66839 102493842 254 +66840 102494096 3632 +66841 102497728 254 +66842 102497982 3632 +66843 102501614 254 +66844 102501868 3632 +66845 102505500 254 +66846 102505754 3632 +66847 102509386 254 +66848 102509640 3632 +66849 102513272 254 +66850 102513526 3632 +66851 102517158 254 +66852 102517412 3632 +66853 102521044 254 +66854 102521298 3632 +66855 102524930 254 +66856 102525184 3632 +66857 102528816 2474 +66858 102531290 2474 +66859 102533764 7712 +66860 102541476 6116 +66861 102547592 6932 +66862 102554524 524 +66863 102555048 524 +66864 102555572 524 +66865 102556096 524 +66866 102556620 524 +66867 102557144 524 +66868 102557668 524 +66869 102558192 524 +66870 102558716 524 +66871 102559240 524 +66872 102559764 254 +66873 102560018 3632 +66874 102563650 254 +66875 102563904 3632 +66876 102567536 254 +66877 102567790 3632 +66878 102571422 254 +66879 102571676 3632 +66880 102575308 254 +66881 102575562 3632 +66882 102579194 254 +66883 102579448 3632 +66884 102583080 254 +66885 102583334 3632 +66886 102586966 254 +66887 102587220 3632 +66888 102590852 254 +66889 102591106 3632 +66890 102594738 254 +66891 102594992 3632 +66892 102598624 2474 +66893 102601098 2474 +66894 102603572 7712 +66895 102611284 6116 +66896 102617400 6932 +66897 102624332 524 +66898 102624856 524 +66899 102625380 524 +66900 102625904 524 +66901 102626428 524 +66902 102626952 524 +66903 102627476 524 +66904 102628000 524 +66905 102628524 524 +66906 102629048 524 +66907 102629572 254 +66908 102629826 3632 +66909 102633458 254 +66910 102633712 3632 +66911 102637344 254 +66912 102637598 3632 +66913 102641230 254 +66914 102641484 3632 +66915 102645116 254 +66916 102645370 3632 +66917 102649002 254 +66918 102649256 3632 +66919 102652888 254 +66920 102653142 3632 +66921 102656774 254 +66922 102657028 3632 +66923 102660660 254 +66924 102660914 3632 +66925 102664546 254 +66926 102664800 3632 +66927 102668432 2474 +66928 102670906 2474 +66929 102673380 7712 +66930 102681092 6116 +66931 102687208 6932 +66932 102694140 524 +66933 102694664 524 +66934 102695188 524 +66935 102695712 524 +66936 102696236 524 +66937 102696760 524 +66938 102697284 524 +66939 102697808 524 +66940 102698332 524 +66941 102698856 524 +66942 102699380 254 +66943 102699634 3632 +66944 102703266 254 +66945 102703520 3632 +66946 102707152 254 +66947 102707406 3632 +66948 102711038 254 +66949 102711292 3632 +66950 102714924 254 +66951 102715178 3632 +66952 102718810 254 +66953 102719064 3632 +66954 102722696 254 +66955 102722950 3632 +66956 102726582 254 +66957 102726836 3632 +66958 102730468 254 +66959 102730722 3632 +66960 102734354 254 +66961 102734608 3632 +66962 102738240 2474 +66963 102740714 2474 +66964 102743188 7712 +66965 102750900 6116 +66966 102757016 6932 +66967 102763948 524 +66968 102764472 524 +66969 102764996 524 +66970 102765520 524 +66971 102766044 524 +66972 102766568 524 +66973 102767092 524 +66974 102767616 524 +66975 102768140 524 +66976 102768664 524 +66977 102769188 254 +66978 102769442 3632 +66979 102773074 254 +66980 102773328 3632 +66981 102776960 254 +66982 102777214 3632 +66983 102780846 254 +66984 102781100 3632 +66985 102784732 254 +66986 102784986 3632 +66987 102788618 254 +66988 102788872 3632 +66989 102792504 254 +66990 102792758 3632 +66991 102796390 254 +66992 102796644 3632 +66993 102800276 254 +66994 102800530 3632 +66995 102804162 254 +66996 102804416 3632 +66997 102808048 2474 +66998 102810522 2474 +66999 102812996 7712 +67000 102820708 6116 +67001 102826824 6932 +67002 102833756 524 +67003 102834280 524 +67004 102834804 524 +67005 102835328 524 +67006 102835852 524 +67007 102836376 524 +67008 102836900 524 +67009 102837424 524 +67010 102837948 524 +67011 102838472 524 +67012 102838996 254 +67013 102839250 3632 +67014 102842882 254 +67015 102843136 3632 +67016 102846768 254 +67017 102847022 3632 +67018 102850654 254 +67019 102850908 3632 +67020 102854540 254 +67021 102854794 3632 +67022 102858426 254 +67023 102858680 3632 +67024 102862312 254 +67025 102862566 3632 +67026 102866198 254 +67027 102866452 3632 +67028 102870084 254 +67029 102870338 3632 +67030 102873970 254 +67031 102874224 3632 +67032 102877856 2474 +67033 102880330 2474 +67034 102882804 7712 +67035 102890516 6116 +67036 102896632 6932 +67037 102903564 524 +67038 102904088 524 +67039 102904612 524 +67040 102905136 524 +67041 102905660 524 +67042 102906184 524 +67043 102906708 524 +67044 102907232 524 +67045 102907756 524 +67046 102908280 524 +67047 102908804 254 +67048 102909058 3632 +67049 102912690 254 +67050 102912944 3632 +67051 102916576 254 +67052 102916830 3632 +67053 102920462 254 +67054 102920716 3632 +67055 102924348 254 +67056 102924602 3632 +67057 102928234 254 +67058 102928488 3632 +67059 102932120 254 +67060 102932374 3632 +67061 102936006 254 +67062 102936260 3632 +67063 102939892 254 +67064 102940146 3632 +67065 102943778 254 +67066 102944032 3632 +67067 102947664 2474 +67068 102950138 2474 +67069 102952612 7712 +67070 102960324 6116 +67071 102966440 6932 +67072 102973372 524 +67073 102973896 524 +67074 102974420 524 +67075 102974944 524 +67076 102975468 524 +67077 102975992 524 +67078 102976516 524 +67079 102977040 524 +67080 102977564 524 +67081 102978088 524 +67082 102978612 254 +67083 102978866 3632 +67084 102982498 254 +67085 102982752 3632 +67086 102986384 254 +67087 102986638 3632 +67088 102990270 254 +67089 102990524 3632 +67090 102994156 254 +67091 102994410 3632 +67092 102998042 254 +67093 102998296 3632 +67094 103001928 254 +67095 103002182 3632 +67096 103005814 254 +67097 103006068 3632 +67098 103009700 254 +67099 103009954 3632 +67100 103013586 254 +67101 103013840 3632 +67102 103017472 2474 +67103 103019946 2474 +67104 103022420 7712 +67105 103030132 6116 +67106 103036248 6932 +67107 103043180 524 +67108 103043704 524 +67109 103044228 524 +67110 103044752 524 +67111 103045276 524 +67112 103045800 524 +67113 103046324 524 +67114 103046848 524 +67115 103047372 524 +67116 103047896 524 +67117 103048420 254 +67118 103048674 3632 +67119 103052306 254 +67120 103052560 3632 +67121 103056192 254 +67122 103056446 3632 +67123 103060078 254 +67124 103060332 3632 +67125 103063964 254 +67126 103064218 3632 +67127 103067850 254 +67128 103068104 3632 +67129 103071736 254 +67130 103071990 3632 +67131 103075622 254 +67132 103075876 3632 +67133 103079508 254 +67134 103079762 3632 +67135 103083394 254 +67136 103083648 3632 +67137 103087280 2474 +67138 103089754 2474 +67139 103092228 7712 +67140 103099940 6116 +67141 103106056 6932 +67142 103112988 524 +67143 103113512 524 +67144 103114036 524 +67145 103114560 524 +67146 103115084 524 +67147 103115608 524 +67148 103116132 524 +67149 103116656 524 +67150 103117180 524 +67151 103117704 524 +67152 103118228 254 +67153 103118482 3632 +67154 103122114 254 +67155 103122368 3632 +67156 103126000 254 +67157 103126254 3632 +67158 103129886 254 +67159 103130140 3632 +67160 103133772 254 +67161 103134026 3632 +67162 103137658 254 +67163 103137912 3632 +67164 103141544 254 +67165 103141798 3632 +67166 103145430 254 +67167 103145684 3632 +67168 103149316 254 +67169 103149570 3632 +67170 103153202 254 +67171 103153456 3632 +67172 103157088 2474 +67173 103159562 2474 +67174 103162036 7712 +67175 103169748 6116 +67176 103175864 6932 +67177 103182796 524 +67178 103183320 524 +67179 103183844 524 +67180 103184368 524 +67181 103184892 524 +67182 103185416 524 +67183 103185940 524 +67184 103186464 524 +67185 103186988 524 +67186 103187512 524 +67187 103188036 254 +67188 103188290 3632 +67189 103191922 254 +67190 103192176 3632 +67191 103195808 254 +67192 103196062 3632 +67193 103199694 254 +67194 103199948 3632 +67195 103203580 254 +67196 103203834 3632 +67197 103207466 254 +67198 103207720 3632 +67199 103211352 254 +67200 103211606 3632 +67201 103215238 254 +67202 103215492 3632 +67203 103219124 254 +67204 103219378 3632 +67205 103223010 254 +67206 103223264 3632 +67207 103226896 2474 +67208 103229370 2474 +67209 103231844 7712 +67210 103239556 6116 +67211 103245672 6932 +67212 103252604 524 +67213 103253128 524 +67214 103253652 524 +67215 103254176 524 +67216 103254700 524 +67217 103255224 524 +67218 103255748 524 +67219 103256272 524 +67220 103256796 524 +67221 103257320 524 +67222 103257844 254 +67223 103258098 3632 +67224 103261730 254 +67225 103261984 3632 +67226 103265616 254 +67227 103265870 3632 +67228 103269502 254 +67229 103269756 3632 +67230 103273388 254 +67231 103273642 3632 +67232 103277274 254 +67233 103277528 3632 +67234 103281160 254 +67235 103281414 3632 +67236 103285046 254 +67237 103285300 3632 +67238 103288932 254 +67239 103289186 3632 +67240 103292818 254 +67241 103293072 3632 +67242 103296704 2474 +67243 103299178 2474 +67244 103301652 7712 +67245 103309364 6116 +67246 103315480 6932 +67247 103322412 524 +67248 103322936 524 +67249 103323460 524 +67250 103323984 524 +67251 103324508 524 +67252 103325032 524 +67253 103325556 524 +67254 103326080 524 +67255 103326604 524 +67256 103327128 524 +67257 103327652 254 +67258 103327906 3632 +67259 103331538 254 +67260 103331792 3632 +67261 103335424 254 +67262 103335678 3632 +67263 103339310 254 +67264 103339564 3632 +67265 103343196 254 +67266 103343450 3632 +67267 103347082 254 +67268 103347336 3632 +67269 103350968 254 +67270 103351222 3632 +67271 103354854 254 +67272 103355108 3632 +67273 103358740 254 +67274 103358994 3632 +67275 103362626 254 +67276 103362880 3632 +67277 103366512 2474 +67278 103368986 2474 +67279 103371460 7712 +67280 103379172 6116 +67281 103385288 6932 +67282 103392220 524 +67283 103392744 524 +67284 103393268 524 +67285 103393792 524 +67286 103394316 524 +67287 103394840 524 +67288 103395364 524 +67289 103395888 524 +67290 103396412 524 +67291 103396936 524 +67292 103397460 254 +67293 103397714 3632 +67294 103401346 254 +67295 103401600 3632 +67296 103405232 254 +67297 103405486 3632 +67298 103409118 254 +67299 103409372 3632 +67300 103413004 254 +67301 103413258 3632 +67302 103416890 254 +67303 103417144 3632 +67304 103420776 254 +67305 103421030 3632 +67306 103424662 254 +67307 103424916 3632 +67308 103428548 254 +67309 103428802 3632 +67310 103432434 254 +67311 103432688 3632 +67312 103436320 2474 +67313 103438794 2474 +67314 103441268 7712 +67315 103448980 6116 +67316 103455096 6932 +67317 103462028 524 +67318 103462552 524 +67319 103463076 524 +67320 103463600 524 +67321 103464124 524 +67322 103464648 524 +67323 103465172 524 +67324 103465696 524 +67325 103466220 524 +67326 103466744 524 +67327 103467268 254 +67328 103467522 3632 +67329 103471154 254 +67330 103471408 3632 +67331 103475040 254 +67332 103475294 3632 +67333 103478926 254 +67334 103479180 3632 +67335 103482812 254 +67336 103483066 3632 +67337 103486698 254 +67338 103486952 3632 +67339 103490584 254 +67340 103490838 3632 +67341 103494470 254 +67342 103494724 3632 +67343 103498356 254 +67344 103498610 3632 +67345 103502242 254 +67346 103502496 3632 +67347 103506128 2474 +67348 103508602 2474 +67349 103511076 7712 +67350 103518788 6116 +67351 103524904 6932 +67352 103531836 524 +67353 103532360 524 +67354 103532884 524 +67355 103533408 524 +67356 103533932 524 +67357 103534456 524 +67358 103534980 524 +67359 103535504 524 +67360 103536028 524 +67361 103536552 524 +67362 103537076 254 +67363 103537330 3632 +67364 103540962 254 +67365 103541216 3632 +67366 103544848 254 +67367 103545102 3632 +67368 103548734 254 +67369 103548988 3632 +67370 103552620 254 +67371 103552874 3632 +67372 103556506 254 +67373 103556760 3632 +67374 103560392 254 +67375 103560646 3632 +67376 103564278 254 +67377 103564532 3632 +67378 103568164 254 +67379 103568418 3632 +67380 103572050 254 +67381 103572304 3632 +67382 103575936 2474 +67383 103578410 2474 +67384 103580884 7712 +67385 103588596 6116 +67386 103594712 6932 +67387 103601644 524 +67388 103602168 524 +67389 103602692 524 +67390 103603216 524 +67391 103603740 524 +67392 103604264 524 +67393 103604788 524 +67394 103605312 524 +67395 103605836 524 +67396 103606360 524 +67397 103606884 254 +67398 103607138 3632 +67399 103610770 254 +67400 103611024 3632 +67401 103614656 254 +67402 103614910 3632 +67403 103618542 254 +67404 103618796 3632 +67405 103622428 254 +67406 103622682 3632 +67407 103626314 254 +67408 103626568 3632 +67409 103630200 254 +67410 103630454 3632 +67411 103634086 254 +67412 103634340 3632 +67413 103637972 254 +67414 103638226 3632 +67415 103641858 254 +67416 103642112 3632 +67417 103645744 2474 +67418 103648218 2474 +67419 103650692 7712 +67420 103658404 6116 +67421 103664520 6932 +67422 103671452 524 +67423 103671976 524 +67424 103672500 524 +67425 103673024 524 +67426 103673548 524 +67427 103674072 524 +67428 103674596 524 +67429 103675120 524 +67430 103675644 524 +67431 103676168 524 +67432 103676692 254 +67433 103676946 3632 +67434 103680578 254 +67435 103680832 3632 +67436 103684464 254 +67437 103684718 3632 +67438 103688350 254 +67439 103688604 3632 +67440 103692236 254 +67441 103692490 3632 +67442 103696122 254 +67443 103696376 3632 +67444 103700008 254 +67445 103700262 3632 +67446 103703894 254 +67447 103704148 3632 +67448 103707780 254 +67449 103708034 3632 +67450 103711666 254 +67451 103711920 3632 +67452 103715552 2474 +67453 103718026 2474 +67454 103720500 7712 +67455 103728212 6116 +67456 103734328 6932 +67457 103741260 524 +67458 103741784 524 +67459 103742308 524 +67460 103742832 524 +67461 103743356 524 +67462 103743880 524 +67463 103744404 524 +67464 103744928 524 +67465 103745452 524 +67466 103745976 524 +67467 103746500 254 +67468 103746754 3632 +67469 103750386 254 +67470 103750640 3632 +67471 103754272 254 +67472 103754526 3632 +67473 103758158 254 +67474 103758412 3632 +67475 103762044 254 +67476 103762298 3632 +67477 103765930 254 +67478 103766184 3632 +67479 103769816 254 +67480 103770070 3632 +67481 103773702 254 +67482 103773956 3632 +67483 103777588 254 +67484 103777842 3632 +67485 103781474 254 +67486 103781728 3632 +67487 103785360 2474 +67488 103787834 2474 +67489 103790308 7712 +67490 103798020 6116 +67491 103804136 6932 +67492 103811068 524 +67493 103811592 524 +67494 103812116 524 +67495 103812640 524 +67496 103813164 524 +67497 103813688 524 +67498 103814212 524 +67499 103814736 524 +67500 103815260 524 +67501 103815784 524 +67502 103816308 254 +67503 103816562 3632 +67504 103820194 254 +67505 103820448 3632 +67506 103824080 254 +67507 103824334 3632 +67508 103827966 254 +67509 103828220 3632 +67510 103831852 254 +67511 103832106 3632 +67512 103835738 254 +67513 103835992 3632 +67514 103839624 254 +67515 103839878 3632 +67516 103843510 254 +67517 103843764 3632 +67518 103847396 254 +67519 103847650 3632 +67520 103851282 254 +67521 103851536 3632 +67522 103855168 2474 +67523 103857642 2474 +67524 103860116 7712 +67525 103867828 6116 +67526 103873944 6932 +67527 103880876 524 +67528 103881400 524 +67529 103881924 524 +67530 103882448 524 +67531 103882972 524 +67532 103883496 524 +67533 103884020 524 +67534 103884544 524 +67535 103885068 524 +67536 103885592 524 +67537 103886116 254 +67538 103886370 3632 +67539 103890002 254 +67540 103890256 3632 +67541 103893888 254 +67542 103894142 3632 +67543 103897774 254 +67544 103898028 3632 +67545 103901660 254 +67546 103901914 3632 +67547 103905546 254 +67548 103905800 3632 +67549 103909432 254 +67550 103909686 3632 +67551 103913318 254 +67552 103913572 3632 +67553 103917204 254 +67554 103917458 3632 +67555 103921090 254 +67556 103921344 3632 +67557 103924976 2474 +67558 103927450 2474 +67559 103929924 7712 +67560 103937636 6116 +67561 103943752 6932 +67562 103950684 524 +67563 103951208 524 +67564 103951732 524 +67565 103952256 524 +67566 103952780 524 +67567 103953304 524 +67568 103953828 524 +67569 103954352 524 +67570 103954876 524 +67571 103955400 524 +67572 103955924 254 +67573 103956178 3632 +67574 103959810 254 +67575 103960064 3632 +67576 103963696 254 +67577 103963950 3632 +67578 103967582 254 +67579 103967836 3632 +67580 103971468 254 +67581 103971722 3632 +67582 103975354 254 +67583 103975608 3632 +67584 103979240 254 +67585 103979494 3632 +67586 103983126 254 +67587 103983380 3632 +67588 103987012 254 +67589 103987266 3632 +67590 103990898 254 +67591 103991152 3632 +67592 103994784 2474 +67593 103997258 2474 +67594 103999732 7712 +67595 104007444 6116 +67596 104013560 6932 +67597 104020492 524 +67598 104021016 524 +67599 104021540 524 +67600 104022064 524 +67601 104022588 524 +67602 104023112 524 +67603 104023636 524 +67604 104024160 524 +67605 104024684 524 +67606 104025208 524 +67607 104025732 254 +67608 104025986 3632 +67609 104029618 254 +67610 104029872 3632 +67611 104033504 254 +67612 104033758 3632 +67613 104037390 254 +67614 104037644 3632 +67615 104041276 254 +67616 104041530 3632 +67617 104045162 254 +67618 104045416 3632 +67619 104049048 254 +67620 104049302 3632 +67621 104052934 254 +67622 104053188 3632 +67623 104056820 254 +67624 104057074 3632 +67625 104060706 254 +67626 104060960 3632 +67627 104064592 2474 +67628 104067066 2474 +67629 104069540 7712 +67630 104077252 6116 +67631 104083368 6932 +67632 104090300 524 +67633 104090824 524 +67634 104091348 524 +67635 104091872 524 +67636 104092396 524 +67637 104092920 524 +67638 104093444 524 +67639 104093968 524 +67640 104094492 524 +67641 104095016 524 +67642 104095540 254 +67643 104095794 3632 +67644 104099426 254 +67645 104099680 3632 +67646 104103312 254 +67647 104103566 3632 +67648 104107198 254 +67649 104107452 3632 +67650 104111084 254 +67651 104111338 3632 +67652 104114970 254 +67653 104115224 3632 +67654 104118856 254 +67655 104119110 3632 +67656 104122742 254 +67657 104122996 3632 +67658 104126628 254 +67659 104126882 3632 +67660 104130514 254 +67661 104130768 3632 +67662 104134400 2474 +67663 104136874 2474 +67664 104139348 7712 +67665 104147060 6116 +67666 104153176 6932 +67667 104160108 524 +67668 104160632 524 +67669 104161156 524 +67670 104161680 524 +67671 104162204 524 +67672 104162728 524 +67673 104163252 524 +67674 104163776 524 +67675 104164300 524 +67676 104164824 524 +67677 104165348 254 +67678 104165602 3632 +67679 104169234 254 +67680 104169488 3632 +67681 104173120 254 +67682 104173374 3632 +67683 104177006 254 +67684 104177260 3632 +67685 104180892 254 +67686 104181146 3632 +67687 104184778 254 +67688 104185032 3632 +67689 104188664 254 +67690 104188918 3632 +67691 104192550 254 +67692 104192804 3632 +67693 104196436 254 +67694 104196690 3632 +67695 104200322 254 +67696 104200576 3632 +67697 104204208 2474 +67698 104206682 2474 +67699 104209156 7712 +67700 104216868 6116 +67701 104222984 6932 +67702 104229916 524 +67703 104230440 524 +67704 104230964 524 +67705 104231488 524 +67706 104232012 524 +67707 104232536 524 +67708 104233060 524 +67709 104233584 524 +67710 104234108 524 +67711 104234632 524 +67712 104235156 254 +67713 104235410 3632 +67714 104239042 254 +67715 104239296 3632 +67716 104242928 254 +67717 104243182 3632 +67718 104246814 254 +67719 104247068 3632 +67720 104250700 254 +67721 104250954 3632 +67722 104254586 254 +67723 104254840 3632 +67724 104258472 254 +67725 104258726 3632 +67726 104262358 254 +67727 104262612 3632 +67728 104266244 254 +67729 104266498 3632 +67730 104270130 254 +67731 104270384 3632 +67732 104274016 2474 +67733 104276490 2474 +67734 104278964 7712 +67735 104286676 6116 +67736 104292792 6932 +67737 104299724 524 +67738 104300248 524 +67739 104300772 524 +67740 104301296 524 +67741 104301820 524 +67742 104302344 524 +67743 104302868 524 +67744 104303392 524 +67745 104303916 524 +67746 104304440 524 +67747 104304964 254 +67748 104305218 3632 +67749 104308850 254 +67750 104309104 3632 +67751 104312736 254 +67752 104312990 3632 +67753 104316622 254 +67754 104316876 3632 +67755 104320508 254 +67756 104320762 3632 +67757 104324394 254 +67758 104324648 3632 +67759 104328280 254 +67760 104328534 3632 +67761 104332166 254 +67762 104332420 3632 +67763 104336052 254 +67764 104336306 3632 +67765 104339938 254 +67766 104340192 3632 +67767 104343824 2474 +67768 104346298 2474 +67769 104348772 7712 +67770 104356484 6116 +67771 104362600 6932 +67772 104369532 524 +67773 104370056 524 +67774 104370580 524 +67775 104371104 524 +67776 104371628 524 +67777 104372152 524 +67778 104372676 524 +67779 104373200 524 +67780 104373724 524 +67781 104374248 524 +67782 104374772 254 +67783 104375026 3632 +67784 104378658 254 +67785 104378912 3632 +67786 104382544 254 +67787 104382798 3632 +67788 104386430 254 +67789 104386684 3632 +67790 104390316 254 +67791 104390570 3632 +67792 104394202 254 +67793 104394456 3632 +67794 104398088 254 +67795 104398342 3632 +67796 104401974 254 +67797 104402228 3632 +67798 104405860 254 +67799 104406114 3632 +67800 104409746 254 +67801 104410000 3632 +67802 104413632 2474 +67803 104416106 2474 +67804 104418580 7712 +67805 104426292 6116 +67806 104432408 6932 +67807 104439340 524 +67808 104439864 524 +67809 104440388 524 +67810 104440912 524 +67811 104441436 524 +67812 104441960 524 +67813 104442484 524 +67814 104443008 524 +67815 104443532 524 +67816 104444056 524 +67817 104444580 254 +67818 104444834 3632 +67819 104448466 254 +67820 104448720 3632 +67821 104452352 254 +67822 104452606 3632 +67823 104456238 254 +67824 104456492 3632 +67825 104460124 254 +67826 104460378 3632 +67827 104464010 254 +67828 104464264 3632 +67829 104467896 254 +67830 104468150 3632 +67831 104471782 254 +67832 104472036 3632 +67833 104475668 254 +67834 104475922 3632 +67835 104479554 254 +67836 104479808 3632 +67837 104483440 2474 +67838 104485914 2474 +67839 104488388 7712 +67840 104496100 6116 +67841 104502216 6932 +67842 104509148 524 +67843 104509672 524 +67844 104510196 524 +67845 104510720 524 +67846 104511244 524 +67847 104511768 524 +67848 104512292 524 +67849 104512816 524 +67850 104513340 524 +67851 104513864 524 +67852 104514388 254 +67853 104514642 3632 +67854 104518274 254 +67855 104518528 3632 +67856 104522160 254 +67857 104522414 3632 +67858 104526046 254 +67859 104526300 3632 +67860 104529932 254 +67861 104530186 3632 +67862 104533818 254 +67863 104534072 3632 +67864 104537704 254 +67865 104537958 3632 +67866 104541590 254 +67867 104541844 3632 +67868 104545476 254 +67869 104545730 3632 +67870 104549362 254 +67871 104549616 3632 +67872 104553248 2474 +67873 104555722 2474 +67874 104558196 7712 +67875 104565908 6116 +67876 104572024 6932 +67877 104578956 524 +67878 104579480 524 +67879 104580004 524 +67880 104580528 524 +67881 104581052 524 +67882 104581576 524 +67883 104582100 524 +67884 104582624 524 +67885 104583148 524 +67886 104583672 524 +67887 104584196 254 +67888 104584450 3632 +67889 104588082 254 +67890 104588336 3632 +67891 104591968 254 +67892 104592222 3632 +67893 104595854 254 +67894 104596108 3632 +67895 104599740 254 +67896 104599994 3632 +67897 104603626 254 +67898 104603880 3632 +67899 104607512 254 +67900 104607766 3632 +67901 104611398 254 +67902 104611652 3632 +67903 104615284 254 +67904 104615538 3632 +67905 104619170 254 +67906 104619424 3632 +67907 104623056 2474 +67908 104625530 2474 +67909 104628004 7712 +67910 104635716 6116 +67911 104641832 6932 +67912 104648764 524 +67913 104649288 524 +67914 104649812 524 +67915 104650336 524 +67916 104650860 524 +67917 104651384 524 +67918 104651908 524 +67919 104652432 524 +67920 104652956 524 +67921 104653480 524 +67922 104654004 254 +67923 104654258 3632 +67924 104657890 254 +67925 104658144 3632 +67926 104661776 254 +67927 104662030 3632 +67928 104665662 254 +67929 104665916 3632 +67930 104669548 254 +67931 104669802 3632 +67932 104673434 254 +67933 104673688 3632 +67934 104677320 254 +67935 104677574 3632 +67936 104681206 254 +67937 104681460 3632 +67938 104685092 254 +67939 104685346 3632 +67940 104688978 254 +67941 104689232 3632 +67942 104692864 2474 +67943 104695338 2474 +67944 104697812 7712 +67945 104705524 6116 +67946 104711640 6932 +67947 104718572 524 +67948 104719096 524 +67949 104719620 524 +67950 104720144 524 +67951 104720668 524 +67952 104721192 524 +67953 104721716 524 +67954 104722240 524 +67955 104722764 524 +67956 104723288 524 +67957 104723812 254 +67958 104724066 3632 +67959 104727698 254 +67960 104727952 3632 +67961 104731584 254 +67962 104731838 3632 +67963 104735470 254 +67964 104735724 3632 +67965 104739356 254 +67966 104739610 3632 +67967 104743242 254 +67968 104743496 3632 +67969 104747128 254 +67970 104747382 3632 +67971 104751014 254 +67972 104751268 3632 +67973 104754900 254 +67974 104755154 3632 +67975 104758786 254 +67976 104759040 3632 +67977 104762672 2474 +67978 104765146 2474 +67979 104767620 7712 +67980 104775332 6116 +67981 104781448 6932 +67982 104788380 662 +67983 104789042 728 +67984 104789770 1472 +67985 104791242 272 +67986 104791514 1472 +67987 104792986 272 +67988 104793258 632 +67989 104793890 632 +67990 104794522 794 +67991 104795316 680 +67992 104795996 614 +67993 104796610 1814 +67994 104798424 1802 +67995 104800226 1676 +67996 104801902 1676 +67997 104803578 518 +67998 104804096 518 +67999 104804614 4004 +68000 104808618 4040 +68001 104812658 800 +68002 104813458 746 +68003 104814204 1562 +68004 104815766 1562 +68005 104817328 2042 +68006 104819370 242 +68007 104819612 3488 +68008 104823100 2558 +68009 104825658 2612 +68010 104828270 2540 +68011 104830810 2576 +68012 104833386 2228 +68013 104835614 2228 +68014 104837842 2330 +68015 104840172 2330 +68016 104842502 2330 +68017 104844832 2330 +68018 104847162 2330 +68019 104849492 2330 +68020 104851822 2330 +68021 104854152 2330 +68022 104856482 506 +68023 104856988 506 +68024 104857494 2054 +68025 104859548 2342 +68026 104861890 2342 +68027 104864232 2342 +68028 104866574 2342 +68029 104868916 2342 +68030 104871258 2342 +68031 104873600 2342 +68032 104875942 2342 +68033 104878284 2120 +68034 104880404 344 +68035 104880748 1160 +68036 104881908 1160 +68037 104883068 1160 +68038 104884228 3866 +68039 104888094 3200 +68040 104891294 3188 +68041 104894482 710 +68042 104895192 1598 +68043 104896790 1856 +68044 104898646 1184 +68045 104899830 2372 +68046 104902202 2354 +68047 104904556 2354 +68048 104906910 2378 +68049 104909288 512 +68050 104909800 422 +68051 104910222 272 +68052 104910494 422 +68053 104910916 272 +68054 104911188 422 +68055 104911610 272 +68056 104911882 422 +68057 104912304 272 +68058 104912576 422 +68059 104912998 272 +68060 104913270 422 +68061 104913692 272 +68062 104913964 422 +68063 104914386 272 +68064 104914658 740 +68065 104915398 1304 +68066 104916702 1286 +68067 104917988 1316 +68068 104919304 1580 +68069 104920884 1388 +68070 104922272 1124 +68071 104923396 1238 +68072 104924634 1088 +68073 104925722 914 +68074 104926636 902 +68075 104927538 818 +68076 104928356 500 +68077 104928856 782 +68078 104929638 854 +68079 104930492 752 +68080 104931244 500 +68081 104931744 290 +68082 104932034 1076 +68083 104933110 1958 +68084 104935068 338 +68085 104935406 1358 +68086 104936764 1142 +68087 104937906 578 +68088 104938484 746 +68089 104939230 728 +68090 104939958 842 +68091 104940800 842 +68092 104941642 872 +68093 104942514 614 +68094 104943128 422 +68095 104943550 374 +68096 104943924 362 +68097 104944286 1892 +68098 104946178 5161 +68099 104951339 3181 +68100 104954520 1934 +68101 104956454 350 +68102 104956804 1934 +68103 104958738 1706 +68104 104960444 1388 +68105 104961832 1388 +68106 104963220 2744 +68107 104965964 566 +68108 104966530 1106 +68109 104967636 584 +68110 104968220 1106 +68111 104969326 2378 +68112 104971704 1826 +68113 104973530 1622 +68114 104975152 2354 +68115 104977506 722 +68116 104978228 806 +68117 104979034 2336 +68118 104981370 2288 +68119 104983658 2354 +68120 104986012 2360 +68121 104988372 1448 +68122 104989820 932 +68123 104990752 920 +68124 104991672 2048 +68125 104993720 1718 +68126 104995438 1844 +68127 104997282 1844 +68128 104999126 4208 +68129 105003334 1388 +68130 105004722 1388 +68131 105006110 4472 +68132 105010582 4088 +68133 105014670 494 +68134 105015164 506 +68135 105015670 506 +68136 105016176 3128 +68137 105019304 3116 +68138 105022420 800 +68139 105023220 2192 +68140 105025412 884 +68141 105026296 884 +68142 105027180 884 +68143 105028064 884 +68144 105028948 692 +68145 105029640 122 +68146 105029762 2126 +68147 105031888 968 +68148 105032856 956 +68149 105033812 908 +68150 105034720 908 +68151 105035628 2786 +68152 105038414 2924 diff --git a/shared/package-files/ea/ea0205faaaf9dfb946e1517fcda50df1e5fab752668a5007a53c122b67ad83f4/isfinite_compositeimplicitautograd_dispatch.h b/shared/package-files/ea/ea0205faaaf9dfb946e1517fcda50df1e5fab752668a5007a53c122b67ad83f4/isfinite_compositeimplicitautograd_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..def73445aa606f253e255ab9ef8d1208835d20af --- /dev/null +++ b/shared/package-files/ea/ea0205faaaf9dfb946e1517fcda50df1e5fab752668a5007a53c122b67ad83f4/isfinite_compositeimplicitautograd_dispatch.h @@ -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/_VF.py b/shared/package-files/ea/ea059e6e212fc86e4616235370cba2814ed400f11eb1826658a4132ffd464eb3/_VF.py new file mode 100644 index 0000000000000000000000000000000000000000..c6b63c511959616aeb787f4303015241057201de --- /dev/null +++ b/shared/package-files/ea/ea059e6e212fc86e4616235370cba2814ed400f11eb1826658a4132ffd464eb3/_VF.py @@ -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/ea12f472ad51b9fa900fe07f6d5de77b5ae1bb683e878ac3385350b126faaa9b/_orc.pxd b/shared/package-files/ea/ea12f472ad51b9fa900fe07f6d5de77b5ae1bb683e878ac3385350b126faaa9b/_orc.pxd new file mode 100644 index 0000000000000000000000000000000000000000..aecbba317aecd1b331261ca600058e30e0c4f184 --- /dev/null +++ b/shared/package-files/ea/ea12f472ad51b9fa900fe07f6d5de77b5ae1bb683e878ac3385350b126faaa9b/_orc.pxd @@ -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/round_ops.h b/shared/package-files/ea/ea1301fa89f8622b76d2cf650d1287acdc58e8184ab0fd985aebfa12c8243966/round_ops.h new file mode 100644 index 0000000000000000000000000000000000000000..9bbeaafa3c77e61db5aa07001e76226a7840e2c1 --- /dev/null +++ b/shared/package-files/ea/ea1301fa89f8622b76d2cf650d1287acdc58e8184ab0fd985aebfa12c8243966/round_ops.h @@ -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/ea13db0f3cf80ae4a095cc85b29146c9608d556d002b281f3173d30f42ca23c4/getopt.pyi b/shared/package-files/ea/ea13db0f3cf80ae4a095cc85b29146c9608d556d002b281f3173d30f42ca23c4/getopt.pyi new file mode 100644 index 0000000000000000000000000000000000000000..370d4d5c1cba638ddc38108a7c8df2077c02c921 --- /dev/null +++ b/shared/package-files/ea/ea13db0f3cf80ae4a095cc85b29146c9608d556d002b281f3173d30f42ca23c4/getopt.pyi @@ -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/test_controlflow.py b/shared/package-files/ea/ea143b55d2b05f64605df24bc40e5535a376fee11dd4d637c5cf575f06022739/test_controlflow.py new file mode 100644 index 0000000000000000000000000000000000000000..53a89ddaa57bd0afe30fe1af56939429fefee058 --- /dev/null +++ b/shared/package-files/ea/ea143b55d2b05f64605df24bc40e5535a376fee11dd4d637c5cf575f06022739/test_controlflow.py @@ -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/guru-76-w b/shared/package-files/ea/ea1450334722ee1bb01cfb99adcd4bbdd72630551b894bf436ab266ec6fa70b9/guru-76-w new file mode 100644 index 0000000000000000000000000000000000000000..2fa3606c81d5205e1954e8b22856c1d9e728e0b2 Binary files /dev/null and b/shared/package-files/ea/ea1450334722ee1bb01cfb99adcd4bbdd72630551b894bf436ab266ec6fa70b9/guru-76-w differ diff --git a/shared/package-files/ea/ea1510c6cb68acd19da369969c20c7bd469ff57c23983c1bd753641e20753e63/ncr260intan b/shared/package-files/ea/ea1510c6cb68acd19da369969c20c7bd469ff57c23983c1bd753641e20753e63/ncr260intan new file mode 100644 index 0000000000000000000000000000000000000000..2def18a5df6ba0740a83c400b131d56a291b989f Binary files /dev/null and b/shared/package-files/ea/ea1510c6cb68acd19da369969c20c7bd469ff57c23983c1bd753641e20753e63/ncr260intan differ diff --git a/shared/package-files/ea/ea170436ee937b69253c489349e2c12113e51fb3c00e527014a6f1f31a673a18/test_hp.py b/shared/package-files/ea/ea170436ee937b69253c489349e2c12113e51fb3c00e527014a6f1f31a673a18/test_hp.py new file mode 100644 index 0000000000000000000000000000000000000000..9eba0af798f64ac3f8d464e2d3bf231567a48c9b --- /dev/null +++ b/shared/package-files/ea/ea170436ee937b69253c489349e2c12113e51fb3c00e527014a6f1f31a673a18/test_hp.py @@ -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/structures.py b/shared/package-files/ea/ea1888477778cf1cb7e588b0f7ad6bf6c62b365f93e564bcff46ae4a6a5d881d/structures.py new file mode 100644 index 0000000000000000000000000000000000000000..92ade55f7c015f4c8740cf6176e80f51f8f771ab --- /dev/null +++ b/shared/package-files/ea/ea1888477778cf1cb7e588b0f7ad6bf6c62b365f93e564bcff46ae4a6a5d881d/structures.py @@ -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/ea1d73c04d1228ffae927cae1393e2e57f6f4d2e0be5906db3f8926ece9c48bf/test_clip.py b/shared/package-files/ea/ea1d73c04d1228ffae927cae1393e2e57f6f4d2e0be5906db3f8926ece9c48bf/test_clip.py new file mode 100644 index 0000000000000000000000000000000000000000..f783a388d75179e9b68e373da65218dfffb04b55 --- /dev/null +++ b/shared/package-files/ea/ea1d73c04d1228ffae927cae1393e2e57f6f4d2e0be5906db3f8926ece9c48bf/test_clip.py @@ -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/__init__.py b/shared/package-files/ea/ea1e062d70a21f50a491af04e34131edec1c0ea372507afd78b203e42f99962a/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..7b8dc7bdcd8c7b5b2138aba164ceb3da721ffeda --- /dev/null +++ b/shared/package-files/ea/ea1e062d70a21f50a491af04e34131edec1c0ea372507afd78b203e42f99962a/__init__.py @@ -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/METADATA b/shared/package-files/ea/ea20610d35ead2b6f51690aa69b57f7b920ad8ce4dd255191d2aad207923192a/METADATA new file mode 100644 index 0000000000000000000000000000000000000000..d8b780346f6d577a7d023a2f2d5bd55e1387c7ea --- /dev/null +++ b/shared/package-files/ea/ea20610d35ead2b6f51690aa69b57f7b920ad8ce4dd255191d2aad207923192a/METADATA @@ -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/ibmpc3 b/shared/package-files/ea/ea215b2de0db90217ad9b85c22380c731c00078eaad30027523432bb71496513/ibmpc3 new file mode 100644 index 0000000000000000000000000000000000000000..98594f3c45c89fbb3e0055d6a9ca797b0efb965d Binary files /dev/null and b/shared/package-files/ea/ea215b2de0db90217ad9b85c22380c731c00078eaad30027523432bb71496513/ibmpc3 differ diff --git a/shared/package-files/ea/ea215b2de0db90217ad9b85c22380c731c00078eaad30027523432bb71496513/pc3-bold b/shared/package-files/ea/ea215b2de0db90217ad9b85c22380c731c00078eaad30027523432bb71496513/pc3-bold new file mode 100644 index 0000000000000000000000000000000000000000..98594f3c45c89fbb3e0055d6a9ca797b0efb965d Binary files /dev/null and b/shared/package-files/ea/ea215b2de0db90217ad9b85c22380c731c00078eaad30027523432bb71496513/pc3-bold differ diff --git a/shared/package-files/ea/ea22fe787310686debc674b912072fac2a84966f5a28bd3b0a3af51592525e5b/pyinstaller-smoke.py b/shared/package-files/ea/ea22fe787310686debc674b912072fac2a84966f5a28bd3b0a3af51592525e5b/pyinstaller-smoke.py new file mode 100644 index 0000000000000000000000000000000000000000..eb28070e38baf80223fe0178ac0a7c0f5732a2c8 --- /dev/null +++ b/shared/package-files/ea/ea22fe787310686debc674b912072fac2a84966f5a28bd3b0a3af51592525e5b/pyinstaller-smoke.py @@ -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/symbol.pyi b/shared/package-files/ea/ea23aa05c6a26b97fd519717c59683cbda810380687b7e54cb85b142684559c8/symbol.pyi new file mode 100644 index 0000000000000000000000000000000000000000..6fbe306fabe97f7c262376bdb79ee8ad3ad204b3 --- /dev/null +++ b/shared/package-files/ea/ea23aa05c6a26b97fd519717c59683cbda810380687b7e54cb85b142684559c8/symbol.pyi @@ -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/design_info.py b/shared/package-files/ea/ea2528c1ed6195a263ce2584840397e913ab207469c76b5a9d1307669d40b501/design_info.py new file mode 100644 index 0000000000000000000000000000000000000000..d94b97a8b790a4d7daa36c508a2c2139aecf11c2 --- /dev/null +++ b/shared/package-files/ea/ea2528c1ed6195a263ce2584840397e913ab207469c76b5a9d1307669d40b501/design_info.py @@ -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/_cast_Short.h b/shared/package-files/ea/ea286b287ac71dff35abf9e11331bfab40b8b1a969196d56f4dc8875501cee29/_cast_Short.h new file mode 100644 index 0000000000000000000000000000000000000000..f338095b878c1d118d1b7fb8b363ad366922f3cf --- /dev/null +++ b/shared/package-files/ea/ea286b287ac71dff35abf9e11331bfab40b8b1a969196d56f4dc8875501cee29/_cast_Short.h @@ -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/__init__.pyi b/shared/package-files/ea/ea2a47c1b794dc4eb54a4e194c0bdf1ae5bb82bd7bafacc366520d3437f6ff89/__init__.pyi new file mode 100644 index 0000000000000000000000000000000000000000..5f34153f2b4c7bb58186684dffd636a54c37fb07 --- /dev/null +++ b/shared/package-files/ea/ea2a47c1b794dc4eb54a4e194c0bdf1ae5bb82bd7bafacc366520d3437f6ff89/__init__.pyi @@ -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/netrc.pyi b/shared/package-files/ea/ea2a64af593ea793ef7bbcbe3d3b421f4b19a9e155d7d030df74a441d74c266d/netrc.pyi new file mode 100644 index 0000000000000000000000000000000000000000..50fe3c0e0e6c5944450f70fadb228efea031e3d3 --- /dev/null +++ b/shared/package-files/ea/ea2a64af593ea793ef7bbcbe3d3b421f4b19a9e155d7d030df74a441d74c266d/netrc.pyi @@ -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/__main__.py b/shared/package-files/ea/ea2da3547d9f3eb895d5aa1c4d8fdd505bd62b5f2a6bece3a6721203e3a9177c/__main__.py new file mode 100644 index 0000000000000000000000000000000000000000..936a753a2796896667aa782277be41b40af061d3 --- /dev/null +++ b/shared/package-files/ea/ea2da3547d9f3eb895d5aa1c4d8fdd505bd62b5f2a6bece3a6721203e3a9177c/__main__.py @@ -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/__init__.py b/shared/package-files/ea/ea2fa97599dc56188244bfc284acab4cb3619f5e1a0dbb18c36e37f8f7c09c94/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..26a872a90e4934c929d168228125f2e43936c774 --- /dev/null +++ b/shared/package-files/ea/ea2fa97599dc56188244bfc284acab4cb3619f5e1a0dbb18c36e37f8f7c09c94/__init__.py @@ -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/avg_pool3d_backward_cuda_dispatch.h b/shared/package-files/ea/ea30721bc5a63ae1e71fc26df559b15df25f59556a099ebc783e930062b75a9d/avg_pool3d_backward_cuda_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..d89ba00489a28a93d4528b4bfedcc2b1f480c929 --- /dev/null +++ b/shared/package-files/ea/ea30721bc5a63ae1e71fc26df559b15df25f59556a099ebc783e930062b75a9d/avg_pool3d_backward_cuda_dispatch.h @@ -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/StorageImpl.h b/shared/package-files/ea/ea30c7ad18890cc3511ec626aa44ab3a35a6658d55150f22a8c7a9b62fd948e7/StorageImpl.h new file mode 100644 index 0000000000000000000000000000000000000000..4b7d837ae8b47afbc25d137fd90d7e7adbb2f930 --- /dev/null +++ b/shared/package-files/ea/ea30c7ad18890cc3511ec626aa44ab3a35a6658d55150f22a8c7a9b62fd948e7/StorageImpl.h @@ -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/gen_lazy_tensor.py b/shared/package-files/ea/ea34918e89715b70a6ea60973d17d863568dccf354d496c5bee729a3565d43e3/gen_lazy_tensor.py new file mode 100644 index 0000000000000000000000000000000000000000..48a9af25535f09ea89744c4c2957a0bb843c995c --- /dev/null +++ b/shared/package-files/ea/ea34918e89715b70a6ea60973d17d863568dccf354d496c5bee729a3565d43e3/gen_lazy_tensor.py @@ -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/telnetlib.py b/shared/package-files/ea/ea39572ed5af144022e46767c959d01d1bcb3a596b62dcfd9db6adc77cedd924/telnetlib.py new file mode 100644 index 0000000000000000000000000000000000000000..8ce053e881a3095c87885a8fc682f25ab3cb14ab --- /dev/null +++ b/shared/package-files/ea/ea39572ed5af144022e46767c959d01d1bcb3a596b62dcfd9db6adc77cedd924/telnetlib.py @@ -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/auto_match.py b/shared/package-files/ea/ea396eef1acea1f51749c71be80d9ef2af98f258b61b27e246c1af80bb944058/auto_match.py new file mode 100644 index 0000000000000000000000000000000000000000..6c2b1ef70c9051304efa42ba7af348c7299e5534 --- /dev/null +++ b/shared/package-files/ea/ea396eef1acea1f51749c71be80d9ef2af98f258b61b27e246c1af80bb944058/auto_match.py @@ -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/pooling.h b/shared/package-files/ea/ea3a6429c4170c33fb7ce551b9074e8bea8cbb34397ebd9c624a06f3b1a2288a/pooling.h new file mode 100644 index 0000000000000000000000000000000000000000..8cfa30ca2ce9cefc4845db3e819738f730d08c91 --- /dev/null +++ b/shared/package-files/ea/ea3a6429c4170c33fb7ce551b9074e8bea8cbb34397ebd9c624a06f3b1a2288a/pooling.h @@ -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/linear.py b/shared/package-files/ea/ea3b354776becf80ddd5ccd372bb93a2631470d645c0be201e9816f63724e538/linear.py new file mode 100644 index 0000000000000000000000000000000000000000..99d43ed3f6c22dbf08c50d6cd30195e2f482172e --- /dev/null +++ b/shared/package-files/ea/ea3b354776becf80ddd5ccd372bb93a2631470d645c0be201e9816f63724e538/linear.py @@ -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/ADInplaceOrViewType.cpp b/shared/package-files/ea/ea3b9711d3096b1852d67bfa6ea526c7e7092d63f273861bded780793c84046e/ADInplaceOrViewType.cpp new file mode 100644 index 0000000000000000000000000000000000000000..e8276697eee065a36d1b16e583a5f011f92541c2 --- /dev/null +++ b/shared/package-files/ea/ea3b9711d3096b1852d67bfa6ea526c7e7092d63f273861bded780793c84046e/ADInplaceOrViewType.cpp @@ -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/ea3ce8b8f110ed486d8fcffe5b9c9323aca6369da72e099d1f3c5d77be2356e3/test_recfunctions.py b/shared/package-files/ea/ea3ce8b8f110ed486d8fcffe5b9c9323aca6369da72e099d1f3c5d77be2356e3/test_recfunctions.py new file mode 100644 index 0000000000000000000000000000000000000000..98860dfdab77665518f22041f2c176b0f27077ea --- /dev/null +++ b/shared/package-files/ea/ea3ce8b8f110ed486d8fcffe5b9c9323aca6369da72e099d1f3c5d77be2356e3/test_recfunctions.py @@ -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/mps_convolution_transpose_backward_compositeexplicitautograd_dispatch.h b/shared/package-files/ea/ea40329aec9126d43ac9a8b60984ffaf6b9d8762d26acf4c4edd1dff95ab8725/mps_convolution_transpose_backward_compositeexplicitautograd_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..eb0ea998728cff73afd785f8cdcdfcff5d835d53 --- /dev/null +++ b/shared/package-files/ea/ea40329aec9126d43ac9a8b60984ffaf6b9d8762d26acf4c4edd1dff95ab8725/mps_convolution_transpose_backward_compositeexplicitautograd_dispatch.h @@ -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/generate_lasso.py b/shared/package-files/ea/ea434201b8c6ea7e1baf887599b1bcf2c2646940879322084eb384b1f79982a7/generate_lasso.py new file mode 100644 index 0000000000000000000000000000000000000000..c458b0bb996c932f10eeeb8f60fb0b1e1d13a3f4 --- /dev/null +++ b/shared/package-files/ea/ea434201b8c6ea7e1baf887599b1bcf2c2646940879322084eb384b1f79982a7/generate_lasso.py @@ -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/H_V_A_R_.py b/shared/package-files/ea/ea43cb0d4193f04bacb00df2f602abfe6ae06393cdbfb61a2b557491e3170fdc/H_V_A_R_.py new file mode 100644 index 0000000000000000000000000000000000000000..48e7fd67cf0f89e5dc6057e5cbae7f07324a0402 --- /dev/null +++ b/shared/package-files/ea/ea43cb0d4193f04bacb00df2f602abfe6ae06393cdbfb61a2b557491e3170fdc/H_V_A_R_.py @@ -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/Descriptors.h b/shared/package-files/ea/ea44b9937ca3d25a204aa5bb8ca00966109bddadb3ecaf17abe9a4559404718a/Descriptors.h new file mode 100644 index 0000000000000000000000000000000000000000..79a2fe58ad007f0c8892d4923d97be3131c4c74e --- /dev/null +++ b/shared/package-files/ea/ea44b9937ca3d25a204aa5bb8ca00966109bddadb3ecaf17abe9a4559404718a/Descriptors.h @@ -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/unbind_native.h b/shared/package-files/ea/ea47f7dfcd51d5f471999243c2a438123a16bcf7c1d14454c589825669a11787/unbind_native.h new file mode 100644 index 0000000000000000000000000000000000000000..e8df8b56215729c8c08fb798eb5d8ec0a36d1e72 --- /dev/null +++ b/shared/package-files/ea/ea47f7dfcd51d5f471999243c2a438123a16bcf7c1d14454c589825669a11787/unbind_native.h @@ -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/related.pyi b/shared/package-files/ea/ea481ce0b034bea73825583443d1919070ee2abffa21f1f0c55028605972dbe2/related.pyi new file mode 100644 index 0000000000000000000000000000000000000000..ae03ea71fc1eeffd2717b7ae9dca92077ae4229f --- /dev/null +++ b/shared/package-files/ea/ea481ce0b034bea73825583443d1919070ee2abffa21f1f0c55028605972dbe2/related.pyi @@ -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/application.py b/shared/package-files/ea/ea4a3f895c1c67e3620823f7a0e77679044adc375828047c65220bb90037afc4/application.py new file mode 100644 index 0000000000000000000000000000000000000000..66f56f721e2af1d242fb33db1ad306c412f574e7 --- /dev/null +++ b/shared/package-files/ea/ea4a3f895c1c67e3620823f7a0e77679044adc375828047c65220bb90037afc4/application.py @@ -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/affine_grid_generator_ops.h b/shared/package-files/ea/ea4d1f1eabd325a0261f9d7795431c6ea6ddcb71e7cb4f4165979d3f443541c5/affine_grid_generator_ops.h new file mode 100644 index 0000000000000000000000000000000000000000..a08ca6217cf5350103697dfe05fc07552ec38752 --- /dev/null +++ b/shared/package-files/ea/ea4d1f1eabd325a0261f9d7795431c6ea6ddcb71e7cb4f4165979d3f443541c5/affine_grid_generator_ops.h @@ -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/ea52ba3d46efb0f8cdbd068c3fa28fe8f377eb796d318b11051d8c479f5f81cf/_autocast_to_full_precision_ops.h b/shared/package-files/ea/ea52ba3d46efb0f8cdbd068c3fa28fe8f377eb796d318b11051d8c479f5f81cf/_autocast_to_full_precision_ops.h new file mode 100644 index 0000000000000000000000000000000000000000..880e75b76c9eebf2108e74f757e824dc88989b5e --- /dev/null +++ b/shared/package-files/ea/ea52ba3d46efb0f8cdbd068c3fa28fe8f377eb796d318b11051d8c479f5f81cf/_autocast_to_full_precision_ops.h @@ -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/affine_grid_generator_backward.h b/shared/package-files/ea/ea5344b7da63c4ebbd967b99f8e5bae04d5e24be6cdf913188f437267cbc6bd8/affine_grid_generator_backward.h new file mode 100644 index 0000000000000000000000000000000000000000..e2280786dd6a6351113c8ed71d80fa76063a34b4 --- /dev/null +++ b/shared/package-files/ea/ea5344b7da63c4ebbd967b99f8e5bae04d5e24be6cdf913188f437267cbc6bd8/affine_grid_generator_backward.h @@ -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/test_extmath.py b/shared/package-files/ea/ea5434de057ef020f4fb4dad254ede573e0e44d822d3459fc43b870e18f60f54/test_extmath.py new file mode 100644 index 0000000000000000000000000000000000000000..907de11702af286650d9c1894df140f096fda799 --- /dev/null +++ b/shared/package-files/ea/ea5434de057ef020f4fb4dad254ede573e0e44d822d3459fc43b870e18f60f54/test_extmath.py @@ -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/test_division.py b/shared/package-files/ea/ea551e65f99a056befb3376a9562cc1e05cf8d5b31bd6d56669778fa31560a95/test_division.py new file mode 100644 index 0000000000000000000000000000000000000000..c704cadeb953793ac0a887aa09c4278cf68a2824 --- /dev/null +++ b/shared/package-files/ea/ea551e65f99a056befb3376a9562cc1e05cf8d5b31bd6d56669778fa31560a95/test_division.py @@ -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/libverto.so b/shared/package-files/ea/ea56eb3271dac2dc9197e2c323f6c6f137af340c5c91669911d8f863aeccc6fe/libverto.so new file mode 100644 index 0000000000000000000000000000000000000000..6be8eac0e3759ed96a628290c38fe7a926269c2e Binary files /dev/null and b/shared/package-files/ea/ea56eb3271dac2dc9197e2c323f6c6f137af340c5c91669911d8f863aeccc6fe/libverto.so differ diff --git a/shared/package-files/ea/ea56eb3271dac2dc9197e2c323f6c6f137af340c5c91669911d8f863aeccc6fe/libverto.so.0 b/shared/package-files/ea/ea56eb3271dac2dc9197e2c323f6c6f137af340c5c91669911d8f863aeccc6fe/libverto.so.0 new file mode 100644 index 0000000000000000000000000000000000000000..6be8eac0e3759ed96a628290c38fe7a926269c2e Binary files /dev/null and b/shared/package-files/ea/ea56eb3271dac2dc9197e2c323f6c6f137af340c5c91669911d8f863aeccc6fe/libverto.so.0 differ diff --git a/shared/package-files/ea/ea56eb3271dac2dc9197e2c323f6c6f137af340c5c91669911d8f863aeccc6fe/libverto.so.0.0 b/shared/package-files/ea/ea56eb3271dac2dc9197e2c323f6c6f137af340c5c91669911d8f863aeccc6fe/libverto.so.0.0 new file mode 100644 index 0000000000000000000000000000000000000000..6be8eac0e3759ed96a628290c38fe7a926269c2e Binary files /dev/null and b/shared/package-files/ea/ea56eb3271dac2dc9197e2c323f6c6f137af340c5c91669911d8f863aeccc6fe/libverto.so.0.0 differ diff --git a/shared/package-files/ea/ea59181cda533e9daaabca8a04d88af55fb136a2e0d0c61ca22fe4b0a68d05c8/densearith.py b/shared/package-files/ea/ea59181cda533e9daaabca8a04d88af55fb136a2e0d0c61ca22fe4b0a68d05c8/densearith.py new file mode 100644 index 0000000000000000000000000000000000000000..a3d9bdb9dd708d59afb2932ff587bfbb8c4a8129 --- /dev/null +++ b/shared/package-files/ea/ea59181cda533e9daaabca8a04d88af55fb136a2e0d0c61ca22fe4b0a68d05c8/densearith.py @@ -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/codec.py b/shared/package-files/ea/ea5cb9a1d29faabcad293f7fed4ae51a49479dfd4348adabf42e9c48ce2c6b6f/codec.py new file mode 100644 index 0000000000000000000000000000000000000000..1ca9ba62c208527b796b49306f4b8c95eb868a51 --- /dev/null +++ b/shared/package-files/ea/ea5cb9a1d29faabcad293f7fed4ae51a49479dfd4348adabf42e9c48ce2c6b6f/codec.py @@ -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/ea5f6a4db82151745a053fab5d0d3634ac15d8cbd8b175d91a6c704e6b994822/build.sh b/shared/package-files/ea/ea5f6a4db82151745a053fab5d0d3634ac15d8cbd8b175d91a6c704e6b994822/build.sh new file mode 100644 index 0000000000000000000000000000000000000000..3b1103f4e1a095bde4fefdab730d8b99f7562412 --- /dev/null +++ b/shared/package-files/ea/ea5f6a4db82151745a053fab5d0d3634ac15d8cbd8b175d91a6c704e6b994822/build.sh @@ -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/ea658b1afa873fc2612d18418c6a1fe149e0c7e4836acaaef86d0cda95f439ec/_enum.py b/shared/package-files/ea/ea658b1afa873fc2612d18418c6a1fe149e0c7e4836acaaef86d0cda95f439ec/_enum.py new file mode 100644 index 0000000000000000000000000000000000000000..ed20dd066aabb6edc0c0a7c1d16736a59d2056fc --- /dev/null +++ b/shared/package-files/ea/ea658b1afa873fc2612d18418c6a1fe149e0c7e4836acaaef86d0cda95f439ec/_enum.py @@ -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/test_concat.py b/shared/package-files/ea/ea6a9112a25674d10f2c84748df9222e738577a2ab7015fb7c9ec8389cdf4322/test_concat.py new file mode 100644 index 0000000000000000000000000000000000000000..320d700b2b6c340d1cb52e708aa8defcad7e60bb --- /dev/null +++ b/shared/package-files/ea/ea6a9112a25674d10f2c84748df9222e738577a2ab7015fb7c9ec8389cdf4322/test_concat.py @@ -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/scatter_reduce_compositeexplicitautogradnonfunctional_dispatch.h b/shared/package-files/ea/ea6a94152cf601947a7b9e92ff9580d23f128a700883532688e8baa68e28329d/scatter_reduce_compositeexplicitautogradnonfunctional_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..f627e136ab0516b19e9c91539577766acc686380 --- /dev/null +++ b/shared/package-files/ea/ea6a94152cf601947a7b9e92ff9580d23f128a700883532688e8baa68e28329d/scatter_reduce_compositeexplicitautogradnonfunctional_dispatch.h @@ -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/grid_sampler_3d.h b/shared/package-files/ea/ea71e58b975d4e6e55375d63a9d0fbb03b67bd5b650967431920b881046072d7/grid_sampler_3d.h new file mode 100644 index 0000000000000000000000000000000000000000..31d89dd3f7094c1034a255b643f80f36a363ca5a --- /dev/null +++ b/shared/package-files/ea/ea71e58b975d4e6e55375d63a9d0fbb03b67bd5b650967431920b881046072d7/grid_sampler_3d.h @@ -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/tek4107 b/shared/package-files/ea/ea72a2f5d844d07e3110755206c2d74958ad9022238d90760f52ac2b976fb0b2/tek4107 new file mode 100644 index 0000000000000000000000000000000000000000..79ccaab756dea70c29ac40c9d1b981fe30942146 Binary files /dev/null and b/shared/package-files/ea/ea72a2f5d844d07e3110755206c2d74958ad9022238d90760f52ac2b976fb0b2/tek4107 differ diff --git a/shared/package-files/ea/ea72a2f5d844d07e3110755206c2d74958ad9022238d90760f52ac2b976fb0b2/tek4109 b/shared/package-files/ea/ea72a2f5d844d07e3110755206c2d74958ad9022238d90760f52ac2b976fb0b2/tek4109 new file mode 100644 index 0000000000000000000000000000000000000000..79ccaab756dea70c29ac40c9d1b981fe30942146 Binary files /dev/null and b/shared/package-files/ea/ea72a2f5d844d07e3110755206c2d74958ad9022238d90760f52ac2b976fb0b2/tek4109 differ diff --git a/shared/package-files/ea/ea74b2fcbf92aeef4dae100d1ff20c80ce4d3a40ba083874aa1efc586b4c9855/conj_ops.h b/shared/package-files/ea/ea74b2fcbf92aeef4dae100d1ff20c80ce4d3a40ba083874aa1efc586b4c9855/conj_ops.h new file mode 100644 index 0000000000000000000000000000000000000000..e82fa6f8a1e55202fd6e364a439ac50a580e5f44 --- /dev/null +++ b/shared/package-files/ea/ea74b2fcbf92aeef4dae100d1ff20c80ce4d3a40ba083874aa1efc586b4c9855/conj_ops.h @@ -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/t3800 b/shared/package-files/ea/ea76e9f22ef2c76988a5633d162a89de337b8b472908d4d69f755eeb61afa2dc/t3800 new file mode 100644 index 0000000000000000000000000000000000000000..75bff1e52f0a0f78e0cf52be311104f35aec4dc1 Binary files /dev/null and b/shared/package-files/ea/ea76e9f22ef2c76988a5633d162a89de337b8b472908d4d69f755eeb61afa2dc/t3800 differ diff --git a/shared/package-files/ea/ea7cb0f1939f7934f6f689c6eb3cf1838746b1648394880abad86c164c341c0d/_foreach_norm_native.h b/shared/package-files/ea/ea7cb0f1939f7934f6f689c6eb3cf1838746b1648394880abad86c164c341c0d/_foreach_norm_native.h new file mode 100644 index 0000000000000000000000000000000000000000..197f2618686331f84e882ec4eb55d63c1c4885ab --- /dev/null +++ b/shared/package-files/ea/ea7cb0f1939f7934f6f689c6eb3cf1838746b1648394880abad86c164c341c0d/_foreach_norm_native.h @@ -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/iTerm2.app b/shared/package-files/ea/ea7f8afcd5b0f02292d8ba1f841e927dbb80b71f5e5d2a7435be1d97ddf621bf/iTerm2.app new file mode 100644 index 0000000000000000000000000000000000000000..683de7a63aebd1d5a5b4f5e3fa39debcd3d21a36 Binary files /dev/null and b/shared/package-files/ea/ea7f8afcd5b0f02292d8ba1f841e927dbb80b71f5e5d2a7435be1d97ddf621bf/iTerm2.app differ diff --git a/shared/package-files/ea/ea7f8afcd5b0f02292d8ba1f841e927dbb80b71f5e5d2a7435be1d97ddf621bf/iterm2 b/shared/package-files/ea/ea7f8afcd5b0f02292d8ba1f841e927dbb80b71f5e5d2a7435be1d97ddf621bf/iterm2 new file mode 100644 index 0000000000000000000000000000000000000000..683de7a63aebd1d5a5b4f5e3fa39debcd3d21a36 Binary files /dev/null and b/shared/package-files/ea/ea7f8afcd5b0f02292d8ba1f841e927dbb80b71f5e5d2a7435be1d97ddf621bf/iterm2 differ diff --git a/shared/package-files/ea/ea8003688db5bd62d23e01d5a9c9282e23c55acac65f0ef57de97b1c7c49c997/common.py b/shared/package-files/ea/ea8003688db5bd62d23e01d5a9c9282e23c55acac65f0ef57de97b1c7c49c997/common.py new file mode 100644 index 0000000000000000000000000000000000000000..69120160699c24cc86670522f84ec6c7014c20ee --- /dev/null +++ b/shared/package-files/ea/ea8003688db5bd62d23e01d5a9c9282e23c55acac65f0ef57de97b1c7c49c997/common.py @@ -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/rbf.py b/shared/package-files/ea/ea8071769b0a63c6c7dfa9d09d13622c1f42d5b36b8bc6f63c7cfd22c508afec/rbf.py new file mode 100644 index 0000000000000000000000000000000000000000..772752ef536f4a3b47fb6f9b5d250c5d7f198d85 --- /dev/null +++ b/shared/package-files/ea/ea8071769b0a63c6c7dfa9d09d13622c1f42d5b36b8bc6f63c7cfd22c508afec/rbf.py @@ -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/elu_backward_cpu_dispatch.h b/shared/package-files/ea/ea81d663559ddf0085ed0c7eb895858a2d0f048e6382a46f549d268e0890c274/elu_backward_cpu_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..1f8822c072f1f7a7f31a06157ab3a09712ae494e --- /dev/null +++ b/shared/package-files/ea/ea81d663559ddf0085ed0c7eb895858a2d0f048e6382a46f549d268e0890c274/elu_backward_cpu_dispatch.h @@ -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/T_S_I_S_.py b/shared/package-files/ea/ea82d52789edd4b2944c6d65beb2951e9f260d211d98a578005b3a64aa92a3fb/T_S_I_S_.py new file mode 100644 index 0000000000000000000000000000000000000000..f0ddd8e2d40a2e9fea6d61fc10ea69b12e9b03b7 --- /dev/null +++ b/shared/package-files/ea/ea82d52789edd4b2944c6d65beb2951e9f260d211d98a578005b3a64aa92a3fb/T_S_I_S_.py @@ -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/ea8841a03587c242309491d7d2444e25fb586f442d2a177694a72930aef7d970/_foreach_cosh.h b/shared/package-files/ea/ea8841a03587c242309491d7d2444e25fb586f442d2a177694a72930aef7d970/_foreach_cosh.h new file mode 100644 index 0000000000000000000000000000000000000000..19c73a6a933f9b307b97f8342c1d0c7be627ff6f --- /dev/null +++ b/shared/package-files/ea/ea8841a03587c242309491d7d2444e25fb586f442d2a177694a72930aef7d970/_foreach_cosh.h @@ -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/sub_compositeexplicitautograd_dispatch.h b/shared/package-files/ea/ea89336b1ee1469deeedee83cd483e6681bf8c452f0763fde0229d7e4696d148/sub_compositeexplicitautograd_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..ff484b19f1bf1e3cea32192a2e4cad37162776ed --- /dev/null +++ b/shared/package-files/ea/ea89336b1ee1469deeedee83cd483e6681bf8c452f0763fde0229d7e4696d148/sub_compositeexplicitautograd_dispatch.h @@ -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/base_value.py b/shared/package-files/ea/ea8d24b0aed8a9288c344ade848ad284032c970382aadb25620fea66959584ba/base_value.py new file mode 100644 index 0000000000000000000000000000000000000000..31b72937714058aa9c33310ab800daab956f6a25 --- /dev/null +++ b/shared/package-files/ea/ea8d24b0aed8a9288c344ade848ad284032c970382aadb25620fea66959584ba/base_value.py @@ -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/lattice.py b/shared/package-files/ea/ea8dbb35b8660d2d18190358cee3e5a847e1663b72fa6f5828a765385e53534c/lattice.py new file mode 100644 index 0000000000000000000000000000000000000000..38c4edf1e3969b6644036a8176fee081cf4ddae2 --- /dev/null +++ b/shared/package-files/ea/ea8dbb35b8660d2d18190358cee3e5a847e1663b72fa6f5828a765385e53534c/lattice.py @@ -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/test_unique.py b/shared/package-files/ea/ea932e6bf1668d0dd47bcf7b21aa91e3fc4506fe74cda91c3e18805ab3df15a6/test_unique.py new file mode 100644 index 0000000000000000000000000000000000000000..1add56b47b36399960f16724fa8ff14e7bfd4f0e --- /dev/null +++ b/shared/package-files/ea/ea932e6bf1668d0dd47bcf7b21aa91e3fc4506fe74cda91c3e18805ab3df15a6/test_unique.py @@ -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/candidate.py b/shared/package-files/ea/ea970006c691ec27c81e56c96ebdbf90c9152452ffcab6234f1e9255652708f4/candidate.py new file mode 100644 index 0000000000000000000000000000000000000000..a4963aec6388c27c3beb064f0a730af200380aee --- /dev/null +++ b/shared/package-files/ea/ea970006c691ec27c81e56c96ebdbf90c9152452ffcab6234f1e9255652708f4/candidate.py @@ -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/log.py b/shared/package-files/ea/ea989dac98bff54de97498695424d06f8a99f0b44c44b94b5013c81c4a6e4945/log.py new file mode 100644 index 0000000000000000000000000000000000000000..adb5172afd93b42340185d23201db6a258544a2b --- /dev/null +++ b/shared/package-files/ea/ea989dac98bff54de97498695424d06f8a99f0b44c44b94b5013c81c4a6e4945/log.py @@ -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/task_util.h b/shared/package-files/ea/ea9a882ee61f715c2df47a958517d7155268382f90fddb64f264394b18e0c1b6/task_util.h new file mode 100644 index 0000000000000000000000000000000000000000..fbd4af699d12795bd92bd385f23a036d63adde38 --- /dev/null +++ b/shared/package-files/ea/ea9a882ee61f715c2df47a958517d7155268382f90fddb64f264394b18e0c1b6/task_util.h @@ -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/test_subsets.py b/shared/package-files/ea/ea9ca12d85791ee5efc7adebfa01951ebf0b4ab1915dca43b9d8459fd7c1a97f/test_subsets.py new file mode 100644 index 0000000000000000000000000000000000000000..1d50076da1c685294c2d2561dcc2a6af629eaf83 --- /dev/null +++ b/shared/package-files/ea/ea9ca12d85791ee5efc7adebfa01951ebf0b4ab1915dca43b9d8459fd7c1a97f/test_subsets.py @@ -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/junkdrawer.py b/shared/package-files/ea/ea9d959216bd4672b8eac83ef0d3cd28caadea0e26bdf9065924969822b9e5f9/junkdrawer.py new file mode 100644 index 0000000000000000000000000000000000000000..61f9f37e5116a05e8e224110b95f8c515ef59105 --- /dev/null +++ b/shared/package-files/ea/ea9d959216bd4672b8eac83ef0d3cd28caadea0e26bdf9065924969822b9e5f9/junkdrawer.py @@ -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/eaa1523ea19f21c45b55f3d2ae3f5a0d46b0a26fbc0210f90997fc2d3737f60b/DistributionTemplates.h b/shared/package-files/ea/eaa1523ea19f21c45b55f3d2ae3f5a0d46b0a26fbc0210f90997fc2d3737f60b/DistributionTemplates.h new file mode 100644 index 0000000000000000000000000000000000000000..04a278d83f7632145ced78f040c59d3288f45dc3 --- /dev/null +++ b/shared/package-files/ea/eaa1523ea19f21c45b55f3d2ae3f5a0d46b0a26fbc0210f90997fc2d3737f60b/DistributionTemplates.h @@ -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/base.py b/shared/package-files/ea/eaa2faa860e68db572cdb1fcc5b7ad81fa4990a2156706480512401d0193b992/base.py new file mode 100644 index 0000000000000000000000000000000000000000..3219e2edcebaa434f608739a7aae9377fae6a566 --- /dev/null +++ b/shared/package-files/ea/eaa2faa860e68db572cdb1fcc5b7ad81fa4990a2156706480512401d0193b992/base.py @@ -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/extract.py b/shared/package-files/ea/eaa4f63cd3a296c1210d697a3219a0a6f788b90af8402b372c04f022b06ba0e4/extract.py new file mode 100644 index 0000000000000000000000000000000000000000..be5e161b6f99e57e2b2a6b3d4f1ef6427c07658d --- /dev/null +++ b/shared/package-files/ea/eaa4f63cd3a296c1210d697a3219a0a6f788b90af8402b372c04f022b06ba0e4/extract.py @@ -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/old_fractionfield.py b/shared/package-files/ea/eaa55be19cdfabc02bc43ca0857c16e55bf0e126adb5d22dd07531e167270fc5/old_fractionfield.py new file mode 100644 index 0000000000000000000000000000000000000000..f3551091803829cdf653ea3249bf96bcf313b70d --- /dev/null +++ b/shared/package-files/ea/eaa55be19cdfabc02bc43ca0857c16e55bf0e126adb5d22dd07531e167270fc5/old_fractionfield.py @@ -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/py312compat.py b/shared/package-files/ea/eaa7d12f9eefd8358105076abfec3f4fbd0ac4ad22a3066208b5611127e3dfa6/py312compat.py new file mode 100644 index 0000000000000000000000000000000000000000..28175b1f750445011d74e14027745a4b23556a29 --- /dev/null +++ b/shared/package-files/ea/eaa7d12f9eefd8358105076abfec3f4fbd0ac4ad22a3066208b5611127e3dfa6/py312compat.py @@ -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/distance_measures.py b/shared/package-files/ea/eaae89dd546ac4092aaa1fdde75f6622dca37e17604ea4bcc5e3c7a380f76562/distance_measures.py new file mode 100644 index 0000000000000000000000000000000000000000..c5666b21999ac916c6b0c902ee900d4bbac32410 --- /dev/null +++ b/shared/package-files/ea/eaae89dd546ac4092aaa1fdde75f6622dca37e17604ea4bcc5e3c7a380f76562/distance_measures.py @@ -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/numba_sysinfo.py b/shared/package-files/ea/eab0a5768631717c4d8d463c2379b677959924d14fd59f3904dd349e2352a306/numba_sysinfo.py new file mode 100644 index 0000000000000000000000000000000000000000..7160e174bdfc441b12c11d8771d4b9284146ef0d --- /dev/null +++ b/shared/package-files/ea/eab0a5768631717c4d8d463c2379b677959924d14fd59f3904dd349e2352a306/numba_sysinfo.py @@ -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/vec256_qint32_vsx.h b/shared/package-files/ea/eab24e688a1357edefd6f90e0c786ab5a8b7f6c43bc58a755a7874c8a541f4fd/vec256_qint32_vsx.h new file mode 100644 index 0000000000000000000000000000000000000000..746a5e27a5c105186727ff97af4d7ba50ab8c0bf --- /dev/null +++ b/shared/package-files/ea/eab24e688a1357edefd6f90e0c786ab5a8b7f6c43bc58a755a7874c8a541f4fd/vec256_qint32_vsx.h @@ -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/parser.py b/shared/package-files/ea/eab481ca55902fae679fa2f794c8a81f913723d5029a79d9eb806d4b0c6b6b49/parser.py new file mode 100644 index 0000000000000000000000000000000000000000..7db4da1ff081c1c66c1f0224d7543e68aa3b89a5 --- /dev/null +++ b/shared/package-files/ea/eab481ca55902fae679fa2f794c8a81f913723d5029a79d9eb806d4b0c6b6b49/parser.py @@ -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/glm.py b/shared/package-files/ea/eab88595bd9e2b08ef41463fa3faf86fc6ba5792c21cc32aa4d23030003bcb76/glm.py new file mode 100644 index 0000000000000000000000000000000000000000..8ba24878b95b2dedbbc7bee89be5616fb5928359 --- /dev/null +++ b/shared/package-files/ea/eab88595bd9e2b08ef41463fa3faf86fc6ba5792c21cc32aa4d23030003bcb76/glm.py @@ -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/test_traverse.py b/shared/package-files/ea/eab8a432765d6a64b3c30d6c4a233e690c2a6b8950ae933e0e9394f5709b88e4/test_traverse.py new file mode 100644 index 0000000000000000000000000000000000000000..e051928210981223004de28b8c617d0438e11ac6 --- /dev/null +++ b/shared/package-files/ea/eab8a432765d6a64b3c30d6c4a233e690c2a6b8950ae933e0e9394f5709b88e4/test_traverse.py @@ -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/threshold.py b/shared/package-files/ea/eab8db02a97d187d2e5687cf1d2c10076210b17742218585438ffae2c912f2e1/threshold.py new file mode 100644 index 0000000000000000000000000000000000000000..0d37c9065192b35eb733ea4a982f22efc3ff655b --- /dev/null +++ b/shared/package-files/ea/eab8db02a97d187d2e5687cf1d2c10076210b17742218585438ffae2c912f2e1/threshold.py @@ -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/slow_conv_transpose2d_compositeexplicitautogradnonfunctional_dispatch.h b/shared/package-files/ea/eabcd76d108eb5a16f649e340f7906a733f9213a06258be275a2ce7dc889b207/slow_conv_transpose2d_compositeexplicitautogradnonfunctional_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..f0c6dbfd8cbc135f9041bb9045d846602ce79418 --- /dev/null +++ b/shared/package-files/ea/eabcd76d108eb5a16f649e340f7906a733f9213a06258be275a2ce7dc889b207/slow_conv_transpose2d_compositeexplicitautogradnonfunctional_dispatch.h @@ -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/langhungarianmodel.pyi b/shared/package-files/ea/eac31a05bb428a98c8f73c1bde92b6a239c9d55e74b9e3bb70b777383b81915a/langhungarianmodel.pyi new file mode 100644 index 0000000000000000000000000000000000000000..01e4a44380c29e4887ae5b43190adfdc8e4c0506 --- /dev/null +++ b/shared/package-files/ea/eac31a05bb428a98c8f73c1bde92b6a239c9d55e74b9e3bb70b777383b81915a/langhungarianmodel.pyi @@ -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/test_rationaltools.py b/shared/package-files/ea/eac34e9246663af0803d3c17add53a85e8431657976326a485e5f62906941d66/test_rationaltools.py new file mode 100644 index 0000000000000000000000000000000000000000..522fc77998610532fa86e0c4be454d6965c4e906 --- /dev/null +++ b/shared/package-files/ea/eac34e9246663af0803d3c17add53a85e8431657976326a485e5f62906941d66/test_rationaltools.py @@ -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/_supervised.py b/shared/package-files/ea/eac7617ef5811a6473e8a20d7790e7af7c4ad900cf44398d71cd8f30b0a6a37e/_supervised.py new file mode 100644 index 0000000000000000000000000000000000000000..ccc11d752adbacd4960592e154a2c886276bc3f9 --- /dev/null +++ b/shared/package-files/ea/eac7617ef5811a6473e8a20d7790e7af7c4ad900cf44398d71cd8f30b0a6a37e/_supervised.py @@ -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/mlterm3 b/shared/package-files/ea/eac8ebad6f44c69435c21bc3e80cd5fd751abbf1f89e824a6051bedff5c4ba2d/mlterm3 new file mode 100644 index 0000000000000000000000000000000000000000..ecaf2c6c0a5c586947b8a74652144400ad3d8fe3 Binary files /dev/null and b/shared/package-files/ea/eac8ebad6f44c69435c21bc3e80cd5fd751abbf1f89e824a6051bedff5c4ba2d/mlterm3 differ diff --git a/shared/package-files/ea/eacc765f7708540f018163a0f28771172fbf95b5831444d4f072387d4e119aac/utils.py b/shared/package-files/ea/eacc765f7708540f018163a0f28771172fbf95b5831444d4f072387d4e119aac/utils.py new file mode 100644 index 0000000000000000000000000000000000000000..a367417f8eb5926d0778eb50dc68ba68f977a31f --- /dev/null +++ b/shared/package-files/ea/eacc765f7708540f018163a0f28771172fbf95b5831444d4f072387d4e119aac/utils.py @@ -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/osx_launcher_x86_64 b/shared/package-files/ea/eacd37a429aef8104f425748fb5878727d6b6d7536c74e987b34069d1bd60da5/osx_launcher_x86_64 new file mode 100644 index 0000000000000000000000000000000000000000..ca03454c6b271aa12dd8c46f352f9e90900159b3 Binary files /dev/null and b/shared/package-files/ea/eacd37a429aef8104f425748fb5878727d6b6d7536c74e987b34069d1bd60da5/osx_launcher_x86_64 differ diff --git a/shared/package-files/ea/eacf8fbafb37692597bed34ddb7b7e7f1673173def916cc0968aa7dc765fb541/hardsigmoid.h b/shared/package-files/ea/eacf8fbafb37692597bed34ddb7b7e7f1673173def916cc0968aa7dc765fb541/hardsigmoid.h new file mode 100644 index 0000000000000000000000000000000000000000..bb544437c01b683d36ad28aa7c8a96bb76934495 --- /dev/null +++ b/shared/package-files/ea/eacf8fbafb37692597bed34ddb7b7e7f1673173def916cc0968aa7dc765fb541/hardsigmoid.h @@ -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/Eirunepe b/shared/package-files/ea/ead298691a676c14a65e2c17cbbfe6e165bfadb55f9f92d479cd24782dc9ec8c/Eirunepe new file mode 100644 index 0000000000000000000000000000000000000000..7da4b98fe3c70a1aecae8e0f4264324eaf9e1fb6 Binary files /dev/null and b/shared/package-files/ea/ead298691a676c14a65e2c17cbbfe6e165bfadb55f9f92d479cd24782dc9ec8c/Eirunepe differ diff --git a/shared/package-files/ea/ead2fc892fb6feb8de8ecff22f54389cb4aad4ff97100dd300a7597d29c2898f/_foreach_sin_native.h b/shared/package-files/ea/ead2fc892fb6feb8de8ecff22f54389cb4aad4ff97100dd300a7597d29c2898f/_foreach_sin_native.h new file mode 100644 index 0000000000000000000000000000000000000000..25df4730467f389893021fce0eca5519ddc1203a --- /dev/null +++ b/shared/package-files/ea/ead2fc892fb6feb8de8ecff22f54389cb4aad4ff97100dd300a7597d29c2898f/_foreach_sin_native.h @@ -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/test_chebyshev.py b/shared/package-files/ea/ead32c14fd61ecaf197fbda634eb5ae93bf9dbf7d54e55e49ec7ae7df8f4f347/test_chebyshev.py new file mode 100644 index 0000000000000000000000000000000000000000..2f54bebfdb27d54f436378e4ab6d6c8f2426dd90 --- /dev/null +++ b/shared/package-files/ea/ead32c14fd61ecaf197fbda634eb5ae93bf9dbf7d54e55e49ec7ae7df8f4f347/test_chebyshev.py @@ -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/test_index_new.py b/shared/package-files/ea/ead3b5d952060a818a377ba4d5294f74f5e7e6f41a389f6d1026b7a15c960bc7/test_index_new.py new file mode 100644 index 0000000000000000000000000000000000000000..6042e5b9cc6793018ccf26f37aec236dfa353393 --- /dev/null +++ b/shared/package-files/ea/ead3b5d952060a818a377ba4d5294f74f5e7e6f41a389f6d1026b7a15c960bc7/test_index_new.py @@ -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/cpu_asimdfhm.c b/shared/package-files/ea/ead5c8355129980fa561149b2fa0ab06ed9e8cd16677d58e3451a083e2455d91/cpu_asimdfhm.c new file mode 100644 index 0000000000000000000000000000000000000000..54e328098d17b57445024c9859cd4992492c348a --- /dev/null +++ b/shared/package-files/ea/ead5c8355129980fa561149b2fa0ab06ed9e8cd16677d58e3451a083e2455d91/cpu_asimdfhm.c @@ -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/R_cpunish.s b/shared/package-files/ea/ead842ca06b7efbb1c0ce5aff0dd287410b4e9271e4a57d73c13e5c62bd0f710/R_cpunish.s new file mode 100644 index 0000000000000000000000000000000000000000..077bd7d061070400d568c95e944863b7e1ba144c --- /dev/null +++ b/shared/package-files/ea/ead842ca06b7efbb1c0ce5aff0dd287410b4e9271e4a57d73c13e5c62bd0f710/R_cpunish.s @@ -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/T_S_I_D_.py b/shared/package-files/ea/eadaee289e209b9ad15203c7b7d8eef13a0420b762fc60bf4c2dd12ace7b1543/T_S_I_D_.py new file mode 100644 index 0000000000000000000000000000000000000000..3905aeaecde2c86dc3c466ae43c707c29bdc2779 --- /dev/null +++ b/shared/package-files/ea/eadaee289e209b9ad15203c7b7d8eef13a0420b762fc60bf4c2dd12ace7b1543/T_S_I_D_.py @@ -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/richclub.py b/shared/package-files/ea/eadc2fdb5a9ce379b63798fdccfc0b396661ec1783c0237c5d376dc7f3e1e4a6/richclub.py new file mode 100644 index 0000000000000000000000000000000000000000..599d89972ef085b5d7399dc55f89592d5d52a8af --- /dev/null +++ b/shared/package-files/ea/eadc2fdb5a9ce379b63798fdccfc0b396661ec1783c0237c5d376dc7f3e1e4a6/richclub.py @@ -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/slow_conv3d_forward_cpu_dispatch.h b/shared/package-files/ea/eade70adfc100b485e6dd7dcc1bf8bc3a5d5f720b6384de139e49addd7005821/slow_conv3d_forward_cpu_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..675d333f23d5f1fb7d213119eecea4f3dbc8859e --- /dev/null +++ b/shared/package-files/ea/eade70adfc100b485e6dd7dcc1bf8bc3a5d5f720b6384de139e49addd7005821/slow_conv3d_forward_cpu_dispatch.h @@ -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/cp1006.py b/shared/package-files/ea/eaded38b427841bdf280e878f1e26da506e743eaa9429075332af60cce429473/cp1006.py new file mode 100644 index 0000000000000000000000000000000000000000..a1221c3ef1ce52c3e45c556e148f2484b5c5f761 --- /dev/null +++ b/shared/package-files/ea/eaded38b427841bdf280e878f1e26da506e743eaa9429075332af60cce429473/cp1006.py @@ -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/register_ops_common_utils.h b/shared/package-files/ea/eadf603eed3dcd6457a0c34850259d16f52a5ae4a666c2da8ec344c0ba122351/register_ops_common_utils.h new file mode 100644 index 0000000000000000000000000000000000000000..b0ecaf055f5ee3270df9f44e12ebe4d43ce70162 --- /dev/null +++ b/shared/package-files/ea/eadf603eed3dcd6457a0c34850259d16f52a5ae4a666c2da8ec344c0ba122351/register_ops_common_utils.h @@ -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/ImageCms.py b/shared/package-files/ea/eae2750d7c4962cb4349c91c8057adcc02834309060a3ad0f2e2f2e62cfbbe75/ImageCms.py new file mode 100644 index 0000000000000000000000000000000000000000..643fce830bac60cf919012d82b10aba4f30662d1 --- /dev/null +++ b/shared/package-files/ea/eae2750d7c4962cb4349c91c8057adcc02834309060a3ad0f2e2f2e62cfbbe75/ImageCms.py @@ -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/lti_conversion.py b/shared/package-files/ea/eae435a9a4fb5c8ef90e8166b51a914bde079299be42fcbae8244d86643e2dbc/lti_conversion.py new file mode 100644 index 0000000000000000000000000000000000000000..7080990afc9e23e51e8a45aaa146b64c58dda3cf --- /dev/null +++ b/shared/package-files/ea/eae435a9a4fb5c8ef90e8166b51a914bde079299be42fcbae8244d86643e2dbc/lti_conversion.py @@ -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/NSEC.py b/shared/package-files/ea/eae467d52c4db8b44dba67a873be8192910217ccedbaac9a62f88b8c57bb1644/NSEC.py new file mode 100644 index 0000000000000000000000000000000000000000..340525a6ebd2ac5075887c8c8f5fd2b5f3b69be6 --- /dev/null +++ b/shared/package-files/ea/eae467d52c4db8b44dba67a873be8192910217ccedbaac9a62f88b8c57bb1644/NSEC.py @@ -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/_resize_output_native.h b/shared/package-files/ea/eae6a266f1ebbd2a337280a1cf66ef5e96c899cac4217817df6a8f7d9d9aeca6/_resize_output_native.h new file mode 100644 index 0000000000000000000000000000000000000000..f1a9f079296e82ec09ea9f56a77a4209e1c437fc --- /dev/null +++ b/shared/package-files/ea/eae6a266f1ebbd2a337280a1cf66ef5e96c899cac4217817df6a8f7d9d9aeca6/_resize_output_native.h @@ -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/test_datetimelike.py b/shared/package-files/ea/eae7bbe25053a7c12ce8f6681357bfe45a3a9378fb1eafc79292e7063018b291/test_datetimelike.py new file mode 100644 index 0000000000000000000000000000000000000000..21a686e8bc05b09729c6fe54e67c96405ee36bca --- /dev/null +++ b/shared/package-files/ea/eae7bbe25053a7c12ce8f6681357bfe45a3a9378fb1eafc79292e7063018b291/test_datetimelike.py @@ -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/test_ndarray_backed.py b/shared/package-files/ea/eae9c5b85f52ea11b91432438e2a9b2a0deb2fc22dcc9407c18f6f31d8eee3ed/test_ndarray_backed.py new file mode 100644 index 0000000000000000000000000000000000000000..1fe7cc9b03e8a6cef04558958ed949a0239a96cc --- /dev/null +++ b/shared/package-files/ea/eae9c5b85f52ea11b91432438e2a9b2a0deb2fc22dcc9407c18f6f31d8eee3ed/test_ndarray_backed.py @@ -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/cudnn_grid_sampler_backward_cuda_dispatch.h b/shared/package-files/ea/eaebc5b7c520d76c5fdf727d00dc5a691c3aefeaa624cc125dd498ebd417239d/cudnn_grid_sampler_backward_cuda_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..2c708e6f0338385bcb35228673040f53e34fb87d --- /dev/null +++ b/shared/package-files/ea/eaebc5b7c520d76c5fdf727d00dc5a691c3aefeaa624cc125dd498ebd417239d/cudnn_grid_sampler_backward_cuda_dispatch.h @@ -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/_quadrature.py b/shared/package-files/ea/eaedede21521e3fdc2b5d1e669702d2b1076f880553cd3b7ec27848d9c92eeb3/_quadrature.py new file mode 100644 index 0000000000000000000000000000000000000000..44cf10b32335014cd7cb26459c8dc89ac8f851ff --- /dev/null +++ b/shared/package-files/ea/eaedede21521e3fdc2b5d1e669702d2b1076f880553cd3b7ec27848d9c92eeb3/_quadrature.py @@ -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/eaf2bb73335207f2ab5b1dab649cc9d69c8e73bdd0d3b84081f2c1e48b540a75/_version.py b/shared/package-files/ea/eaf2bb73335207f2ab5b1dab649cc9d69c8e73bdd0d3b84081f2c1e48b540a75/_version.py new file mode 100644 index 0000000000000000000000000000000000000000..bfac5f814501767bd311084af41edddaf1db7b71 --- /dev/null +++ b/shared/package-files/ea/eaf2bb73335207f2ab5b1dab649cc9d69c8e73bdd0d3b84081f2c1e48b540a75/_version.py @@ -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/test_direct.py b/shared/package-files/ea/eaf2e90b278a9c05851197a2ee5d988a154b434ad27b03b5849056b7b0397f24/test_direct.py new file mode 100644 index 0000000000000000000000000000000000000000..fa2ae866beeb7c36a585eaf9eb04df31a2f2a6c3 --- /dev/null +++ b/shared/package-files/ea/eaf2e90b278a9c05851197a2ee5d988a154b434ad27b03b5849056b7b0397f24/test_direct.py @@ -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/adaptive_avg_pool3d_backward_native.h b/shared/package-files/ea/eaf50e80965d4ef58d80b3b8b3301c3b9e06473e1c3399ad26e972c9e5beb236/adaptive_avg_pool3d_backward_native.h new file mode 100644 index 0000000000000000000000000000000000000000..0eaf1492a857399a66187db290fa8863223fc5fe --- /dev/null +++ b/shared/package-files/ea/eaf50e80965d4ef58d80b3b8b3301c3b9e06473e1c3399ad26e972c9e5beb236/adaptive_avg_pool3d_backward_native.h @@ -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/isin_meta.h b/shared/package-files/ea/eaf9c403e9ad4ad474fad8fcd25d07f4f92b2188e9fb8ddc61303e897c5fdd8b/isin_meta.h new file mode 100644 index 0000000000000000000000000000000000000000..a5cb4b2722ce246adcf5849897fdc53a303bf5d8 --- /dev/null +++ b/shared/package-files/ea/eaf9c403e9ad4ad474fad8fcd25d07f4f92b2188e9fb8ddc61303e897c5fdd8b/isin_meta.h @@ -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/test_infer_datetimelike.py b/shared/package-files/ea/eafa2bfdea846cc29c04b1247dac97cd5cf0c1fe4165c0af421159baa86fc8a5/test_infer_datetimelike.py new file mode 100644 index 0000000000000000000000000000000000000000..3c3844e69586d2f49377e77910627ee42fef9bb2 --- /dev/null +++ b/shared/package-files/ea/eafa2bfdea846cc29c04b1247dac97cd5cf0c1fe4165c0af421159baa86fc8a5/test_infer_datetimelike.py @@ -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/results_mpg_bs.py b/shared/package-files/ea/eafa7e838e48e84a686bd5deee42705036083fe57fc28bfe8bae7295551b495d/results_mpg_bs.py new file mode 100644 index 0000000000000000000000000000000000000000..fc2c36d313bbc6b2654749ede93e29ec552b73bd --- /dev/null +++ b/shared/package-files/ea/eafa7e838e48e84a686bd5deee42705036083fe57fc28bfe8bae7295551b495d/results_mpg_bs.py @@ -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/rnn_tanh_native.h b/shared/package-files/ea/eafc53489e44a74dbbe719a554e407fa2245d778602065d13a0f779325ae7f6b/rnn_tanh_native.h new file mode 100644 index 0000000000000000000000000000000000000000..03747d0a2c35195fa52942673371890d10566a94 --- /dev/null +++ b/shared/package-files/ea/eafc53489e44a74dbbe719a554e407fa2245d778602065d13a0f779325ae7f6b/rnn_tanh_native.h @@ -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/pc-venix b/shared/package-files/ea/eafce3a207a062d1a68e8e4ddb9118d03c2ce9e2ba01a6f24340038ff4e53b90/pc-venix new file mode 100644 index 0000000000000000000000000000000000000000..32a7ec05eeaa5938c238b39519911e132250b0b1 Binary files /dev/null and b/shared/package-files/ea/eafce3a207a062d1a68e8e4ddb9118d03c2ce9e2ba01a6f24340038ff4e53b90/pc-venix differ diff --git a/shared/package-files/ea/eafce3a207a062d1a68e8e4ddb9118d03c2ce9e2ba01a6f24340038ff4e53b90/venix b/shared/package-files/ea/eafce3a207a062d1a68e8e4ddb9118d03c2ce9e2ba01a6f24340038ff4e53b90/venix new file mode 100644 index 0000000000000000000000000000000000000000..32a7ec05eeaa5938c238b39519911e132250b0b1 Binary files /dev/null and b/shared/package-files/ea/eafce3a207a062d1a68e8e4ddb9118d03c2ce9e2ba01a6f24340038ff4e53b90/venix differ diff --git a/shared/package-files/f2/f209b5441c841725b417bb24af50edfd428fdb9bab142b01f72418db9f0cb4c0/cm.py b/shared/package-files/f2/f209b5441c841725b417bb24af50edfd428fdb9bab142b01f72418db9f0cb4c0/cm.py new file mode 100644 index 0000000000000000000000000000000000000000..df7ce61997882d7d7f734052292438e4234a5cc7 --- /dev/null +++ b/shared/package-files/f2/f209b5441c841725b417bb24af50edfd428fdb9bab142b01f72418db9f0cb4c0/cm.py @@ -0,0 +1,1586 @@ +from matplotlib import colors +from seaborn._compat import register_colormap + + +_rocket_lut = [ + [ 0.01060815, 0.01808215, 0.10018654], + [ 0.01428972, 0.02048237, 0.10374486], + [ 0.01831941, 0.0229766 , 0.10738511], + [ 0.02275049, 0.02554464, 0.11108639], + [ 0.02759119, 0.02818316, 0.11483751], + [ 0.03285175, 0.03088792, 0.11863035], + [ 0.03853466, 0.03365771, 0.12245873], + [ 0.04447016, 0.03648425, 0.12631831], + [ 0.05032105, 0.03936808, 0.13020508], + [ 0.05611171, 0.04224835, 0.13411624], + [ 0.0618531 , 0.04504866, 0.13804929], + [ 0.06755457, 0.04778179, 0.14200206], + [ 0.0732236 , 0.05045047, 0.14597263], + [ 0.0788708 , 0.05305461, 0.14995981], + [ 0.08450105, 0.05559631, 0.15396203], + [ 0.09011319, 0.05808059, 0.15797687], + [ 0.09572396, 0.06050127, 0.16200507], + [ 0.10132312, 0.06286782, 0.16604287], + [ 0.10692823, 0.06517224, 0.17009175], + [ 0.1125315 , 0.06742194, 0.17414848], + [ 0.11813947, 0.06961499, 0.17821272], + [ 0.12375803, 0.07174938, 0.18228425], + [ 0.12938228, 0.07383015, 0.18636053], + [ 0.13501631, 0.07585609, 0.19044109], + [ 0.14066867, 0.0778224 , 0.19452676], + [ 0.14633406, 0.07973393, 0.1986151 ], + [ 0.15201338, 0.08159108, 0.20270523], + [ 0.15770877, 0.08339312, 0.20679668], + [ 0.16342174, 0.0851396 , 0.21088893], + [ 0.16915387, 0.08682996, 0.21498104], + [ 0.17489524, 0.08848235, 0.2190294 ], + [ 0.18065495, 0.09009031, 0.22303512], + [ 0.18643324, 0.09165431, 0.22699705], + [ 0.19223028, 0.09317479, 0.23091409], + [ 0.19804623, 0.09465217, 0.23478512], + [ 0.20388117, 0.09608689, 0.23860907], + [ 0.20973515, 0.09747934, 0.24238489], + [ 0.21560818, 0.09882993, 0.24611154], + [ 0.22150014, 0.10013944, 0.2497868 ], + [ 0.22741085, 0.10140876, 0.25340813], + [ 0.23334047, 0.10263737, 0.25697736], + [ 0.23928891, 0.10382562, 0.2604936 ], + [ 0.24525608, 0.10497384, 0.26395596], + [ 0.25124182, 0.10608236, 0.26736359], + [ 0.25724602, 0.10715148, 0.27071569], + [ 0.26326851, 0.1081815 , 0.27401148], + [ 0.26930915, 0.1091727 , 0.2772502 ], + [ 0.27536766, 0.11012568, 0.28043021], + [ 0.28144375, 0.11104133, 0.2835489 ], + [ 0.2875374 , 0.11191896, 0.28660853], + [ 0.29364846, 0.11275876, 0.2896085 ], + [ 0.29977678, 0.11356089, 0.29254823], + [ 0.30592213, 0.11432553, 0.29542718], + [ 0.31208435, 0.11505284, 0.29824485], + [ 0.31826327, 0.1157429 , 0.30100076], + [ 0.32445869, 0.11639585, 0.30369448], + [ 0.33067031, 0.11701189, 0.30632563], + [ 0.33689808, 0.11759095, 0.3088938 ], + [ 0.34314168, 0.11813362, 0.31139721], + [ 0.34940101, 0.11863987, 0.3138355 ], + [ 0.355676 , 0.11910909, 0.31620996], + [ 0.36196644, 0.1195413 , 0.31852037], + [ 0.36827206, 0.11993653, 0.32076656], + [ 0.37459292, 0.12029443, 0.32294825], + [ 0.38092887, 0.12061482, 0.32506528], + [ 0.38727975, 0.12089756, 0.3271175 ], + [ 0.39364518, 0.12114272, 0.32910494], + [ 0.40002537, 0.12134964, 0.33102734], + [ 0.40642019, 0.12151801, 0.33288464], + [ 0.41282936, 0.12164769, 0.33467689], + [ 0.41925278, 0.12173833, 0.33640407], + [ 0.42569057, 0.12178916, 0.33806605], + [ 0.43214263, 0.12179973, 0.33966284], + [ 0.43860848, 0.12177004, 0.34119475], + [ 0.44508855, 0.12169883, 0.34266151], + [ 0.45158266, 0.12158557, 0.34406324], + [ 0.45809049, 0.12142996, 0.34540024], + [ 0.46461238, 0.12123063, 0.34667231], + [ 0.47114798, 0.12098721, 0.34787978], + [ 0.47769736, 0.12069864, 0.34902273], + [ 0.48426077, 0.12036349, 0.35010104], + [ 0.49083761, 0.11998161, 0.35111537], + [ 0.49742847, 0.11955087, 0.35206533], + [ 0.50403286, 0.11907081, 0.35295152], + [ 0.51065109, 0.11853959, 0.35377385], + [ 0.51728314, 0.1179558 , 0.35453252], + [ 0.52392883, 0.11731817, 0.35522789], + [ 0.53058853, 0.11662445, 0.35585982], + [ 0.53726173, 0.11587369, 0.35642903], + [ 0.54394898, 0.11506307, 0.35693521], + [ 0.5506426 , 0.11420757, 0.35737863], + [ 0.55734473, 0.11330456, 0.35775059], + [ 0.56405586, 0.11235265, 0.35804813], + [ 0.57077365, 0.11135597, 0.35827146], + [ 0.5774991 , 0.11031233, 0.35841679], + [ 0.58422945, 0.10922707, 0.35848469], + [ 0.59096382, 0.10810205, 0.35847347], + [ 0.59770215, 0.10693774, 0.35838029], + [ 0.60444226, 0.10573912, 0.35820487], + [ 0.61118304, 0.10450943, 0.35794557], + [ 0.61792306, 0.10325288, 0.35760108], + [ 0.62466162, 0.10197244, 0.35716891], + [ 0.63139686, 0.10067417, 0.35664819], + [ 0.63812122, 0.09938212, 0.35603757], + [ 0.64483795, 0.0980891 , 0.35533555], + [ 0.65154562, 0.09680192, 0.35454107], + [ 0.65824241, 0.09552918, 0.3536529 ], + [ 0.66492652, 0.09428017, 0.3526697 ], + [ 0.67159578, 0.09306598, 0.35159077], + [ 0.67824099, 0.09192342, 0.3504148 ], + [ 0.684863 , 0.09085633, 0.34914061], + [ 0.69146268, 0.0898675 , 0.34776864], + [ 0.69803757, 0.08897226, 0.3462986 ], + [ 0.70457834, 0.0882129 , 0.34473046], + [ 0.71108138, 0.08761223, 0.3430635 ], + [ 0.7175507 , 0.08716212, 0.34129974], + [ 0.72398193, 0.08688725, 0.33943958], + [ 0.73035829, 0.0868623 , 0.33748452], + [ 0.73669146, 0.08704683, 0.33543669], + [ 0.74297501, 0.08747196, 0.33329799], + [ 0.74919318, 0.08820542, 0.33107204], + [ 0.75535825, 0.08919792, 0.32876184], + [ 0.76145589, 0.09050716, 0.32637117], + [ 0.76748424, 0.09213602, 0.32390525], + [ 0.77344838, 0.09405684, 0.32136808], + [ 0.77932641, 0.09634794, 0.31876642], + [ 0.78513609, 0.09892473, 0.31610488], + [ 0.79085854, 0.10184672, 0.313391 ], + [ 0.7965014 , 0.10506637, 0.31063031], + [ 0.80205987, 0.10858333, 0.30783 ], + [ 0.80752799, 0.11239964, 0.30499738], + [ 0.81291606, 0.11645784, 0.30213802], + [ 0.81820481, 0.12080606, 0.29926105], + [ 0.82341472, 0.12535343, 0.2963705 ], + [ 0.82852822, 0.13014118, 0.29347474], + [ 0.83355779, 0.13511035, 0.29057852], + [ 0.83850183, 0.14025098, 0.2876878 ], + [ 0.84335441, 0.14556683, 0.28480819], + [ 0.84813096, 0.15099892, 0.281943 ], + [ 0.85281737, 0.15657772, 0.27909826], + [ 0.85742602, 0.1622583 , 0.27627462], + [ 0.86196552, 0.16801239, 0.27346473], + [ 0.86641628, 0.17387796, 0.27070818], + [ 0.87079129, 0.17982114, 0.26797378], + [ 0.87507281, 0.18587368, 0.26529697], + [ 0.87925878, 0.19203259, 0.26268136], + [ 0.8833417 , 0.19830556, 0.26014181], + [ 0.88731387, 0.20469941, 0.25769539], + [ 0.89116859, 0.21121788, 0.2553592 ], + [ 0.89490337, 0.21785614, 0.25314362], + [ 0.8985026 , 0.22463251, 0.25108745], + [ 0.90197527, 0.23152063, 0.24918223], + [ 0.90530097, 0.23854541, 0.24748098], + [ 0.90848638, 0.24568473, 0.24598324], + [ 0.911533 , 0.25292623, 0.24470258], + [ 0.9144225 , 0.26028902, 0.24369359], + [ 0.91717106, 0.26773821, 0.24294137], + [ 0.91978131, 0.27526191, 0.24245973], + [ 0.92223947, 0.28287251, 0.24229568], + [ 0.92456587, 0.29053388, 0.24242622], + [ 0.92676657, 0.29823282, 0.24285536], + [ 0.92882964, 0.30598085, 0.24362274], + [ 0.93078135, 0.31373977, 0.24468803], + [ 0.93262051, 0.3215093 , 0.24606461], + [ 0.93435067, 0.32928362, 0.24775328], + [ 0.93599076, 0.33703942, 0.24972157], + [ 0.93752831, 0.34479177, 0.25199928], + [ 0.93899289, 0.35250734, 0.25452808], + [ 0.94036561, 0.36020899, 0.25734661], + [ 0.94167588, 0.36786594, 0.2603949 ], + [ 0.94291042, 0.37549479, 0.26369821], + [ 0.94408513, 0.3830811 , 0.26722004], + [ 0.94520419, 0.39062329, 0.27094924], + [ 0.94625977, 0.39813168, 0.27489742], + [ 0.94727016, 0.4055909 , 0.27902322], + [ 0.94823505, 0.41300424, 0.28332283], + [ 0.94914549, 0.42038251, 0.28780969], + [ 0.95001704, 0.42771398, 0.29244728], + [ 0.95085121, 0.43500005, 0.29722817], + [ 0.95165009, 0.44224144, 0.30214494], + [ 0.9524044 , 0.44944853, 0.3072105 ], + [ 0.95312556, 0.45661389, 0.31239776], + [ 0.95381595, 0.46373781, 0.31769923], + [ 0.95447591, 0.47082238, 0.32310953], + [ 0.95510255, 0.47787236, 0.32862553], + [ 0.95569679, 0.48489115, 0.33421404], + [ 0.95626788, 0.49187351, 0.33985601], + [ 0.95681685, 0.49882008, 0.34555431], + [ 0.9573439 , 0.50573243, 0.35130912], + [ 0.95784842, 0.51261283, 0.35711942], + [ 0.95833051, 0.51946267, 0.36298589], + [ 0.95879054, 0.52628305, 0.36890904], + [ 0.95922872, 0.53307513, 0.3748895 ], + [ 0.95964538, 0.53983991, 0.38092784], + [ 0.96004345, 0.54657593, 0.3870292 ], + [ 0.96042097, 0.55328624, 0.39319057], + [ 0.96077819, 0.55997184, 0.39941173], + [ 0.9611152 , 0.5666337 , 0.40569343], + [ 0.96143273, 0.57327231, 0.41203603], + [ 0.96173392, 0.57988594, 0.41844491], + [ 0.96201757, 0.58647675, 0.42491751], + [ 0.96228344, 0.59304598, 0.43145271], + [ 0.96253168, 0.5995944 , 0.43805131], + [ 0.96276513, 0.60612062, 0.44471698], + [ 0.96298491, 0.6126247 , 0.45145074], + [ 0.96318967, 0.61910879, 0.45824902], + [ 0.96337949, 0.6255736 , 0.46511271], + [ 0.96355923, 0.63201624, 0.47204746], + [ 0.96372785, 0.63843852, 0.47905028], + [ 0.96388426, 0.64484214, 0.4861196 ], + [ 0.96403203, 0.65122535, 0.4932578 ], + [ 0.96417332, 0.65758729, 0.50046894], + [ 0.9643063 , 0.66393045, 0.5077467 ], + [ 0.96443322, 0.67025402, 0.51509334], + [ 0.96455845, 0.67655564, 0.52251447], + [ 0.96467922, 0.68283846, 0.53000231], + [ 0.96479861, 0.68910113, 0.53756026], + [ 0.96492035, 0.69534192, 0.5451917 ], + [ 0.96504223, 0.7015636 , 0.5528892 ], + [ 0.96516917, 0.70776351, 0.5606593 ], + [ 0.96530224, 0.71394212, 0.56849894], + [ 0.96544032, 0.72010124, 0.57640375], + [ 0.96559206, 0.72623592, 0.58438387], + [ 0.96575293, 0.73235058, 0.59242739], + [ 0.96592829, 0.73844258, 0.60053991], + [ 0.96612013, 0.74451182, 0.60871954], + [ 0.96632832, 0.75055966, 0.61696136], + [ 0.96656022, 0.75658231, 0.62527295], + [ 0.96681185, 0.76258381, 0.63364277], + [ 0.96709183, 0.76855969, 0.64207921], + [ 0.96739773, 0.77451297, 0.65057302], + [ 0.96773482, 0.78044149, 0.65912731], + [ 0.96810471, 0.78634563, 0.66773889], + [ 0.96850919, 0.79222565, 0.6764046 ], + [ 0.96893132, 0.79809112, 0.68512266], + [ 0.96935926, 0.80395415, 0.69383201], + [ 0.9698028 , 0.80981139, 0.70252255], + [ 0.97025511, 0.81566605, 0.71120296], + [ 0.97071849, 0.82151775, 0.71987163], + [ 0.97120159, 0.82736371, 0.72851999], + [ 0.97169389, 0.83320847, 0.73716071], + [ 0.97220061, 0.83905052, 0.74578903], + [ 0.97272597, 0.84488881, 0.75440141], + [ 0.97327085, 0.85072354, 0.76299805], + [ 0.97383206, 0.85655639, 0.77158353], + [ 0.97441222, 0.86238689, 0.78015619], + [ 0.97501782, 0.86821321, 0.78871034], + [ 0.97564391, 0.87403763, 0.79725261], + [ 0.97628674, 0.87986189, 0.8057883 ], + [ 0.97696114, 0.88568129, 0.81430324], + [ 0.97765722, 0.89149971, 0.82280948], + [ 0.97837585, 0.89731727, 0.83130786], + [ 0.97912374, 0.90313207, 0.83979337], + [ 0.979891 , 0.90894778, 0.84827858], + [ 0.98067764, 0.91476465, 0.85676611], + [ 0.98137749, 0.92061729, 0.86536915] +] + + +_mako_lut = [ + [ 0.04503935, 0.01482344, 0.02092227], + [ 0.04933018, 0.01709292, 0.02535719], + [ 0.05356262, 0.01950702, 0.03018802], + [ 0.05774337, 0.02205989, 0.03545515], + [ 0.06188095, 0.02474764, 0.04115287], + [ 0.06598247, 0.0275665 , 0.04691409], + [ 0.07005374, 0.03051278, 0.05264306], + [ 0.07409947, 0.03358324, 0.05834631], + [ 0.07812339, 0.03677446, 0.06403249], + [ 0.08212852, 0.0400833 , 0.06970862], + [ 0.08611731, 0.04339148, 0.07538208], + [ 0.09009161, 0.04664706, 0.08105568], + [ 0.09405308, 0.04985685, 0.08673591], + [ 0.09800301, 0.05302279, 0.09242646], + [ 0.10194255, 0.05614641, 0.09813162], + [ 0.10587261, 0.05922941, 0.103854 ], + [ 0.1097942 , 0.06227277, 0.10959847], + [ 0.11370826, 0.06527747, 0.11536893], + [ 0.11761516, 0.06824548, 0.12116393], + [ 0.12151575, 0.07117741, 0.12698763], + [ 0.12541095, 0.07407363, 0.1328442 ], + [ 0.12930083, 0.07693611, 0.13873064], + [ 0.13317849, 0.07976988, 0.14465095], + [ 0.13701138, 0.08259683, 0.15060265], + [ 0.14079223, 0.08542126, 0.15659379], + [ 0.14452486, 0.08824175, 0.16262484], + [ 0.14820351, 0.09106304, 0.16869476], + [ 0.15183185, 0.09388372, 0.17480366], + [ 0.15540398, 0.09670855, 0.18094993], + [ 0.15892417, 0.09953561, 0.18713384], + [ 0.16238588, 0.10236998, 0.19335329], + [ 0.16579435, 0.10520905, 0.19960847], + [ 0.16914226, 0.10805832, 0.20589698], + [ 0.17243586, 0.11091443, 0.21221911], + [ 0.17566717, 0.11378321, 0.21857219], + [ 0.17884322, 0.11666074, 0.2249565 ], + [ 0.18195582, 0.11955283, 0.23136943], + [ 0.18501213, 0.12245547, 0.23781116], + [ 0.18800459, 0.12537395, 0.24427914], + [ 0.19093944, 0.1283047 , 0.25077369], + [ 0.19381092, 0.13125179, 0.25729255], + [ 0.19662307, 0.13421303, 0.26383543], + [ 0.19937337, 0.13719028, 0.27040111], + [ 0.20206187, 0.14018372, 0.27698891], + [ 0.20469116, 0.14319196, 0.28359861], + [ 0.20725547, 0.14621882, 0.29022775], + [ 0.20976258, 0.14925954, 0.29687795], + [ 0.21220409, 0.15231929, 0.30354703], + [ 0.21458611, 0.15539445, 0.31023563], + [ 0.21690827, 0.15848519, 0.31694355], + [ 0.21916481, 0.16159489, 0.32366939], + [ 0.2213631 , 0.16471913, 0.33041431], + [ 0.22349947, 0.1678599 , 0.33717781], + [ 0.2255714 , 0.1710185 , 0.34395925], + [ 0.22758415, 0.17419169, 0.35075983], + [ 0.22953569, 0.17738041, 0.35757941], + [ 0.23142077, 0.18058733, 0.3644173 ], + [ 0.2332454 , 0.18380872, 0.37127514], + [ 0.2350092 , 0.18704459, 0.3781528 ], + [ 0.23670785, 0.190297 , 0.38504973], + [ 0.23834119, 0.19356547, 0.39196711], + [ 0.23991189, 0.19684817, 0.39890581], + [ 0.24141903, 0.20014508, 0.4058667 ], + [ 0.24286214, 0.20345642, 0.4128484 ], + [ 0.24423453, 0.20678459, 0.41985299], + [ 0.24554109, 0.21012669, 0.42688124], + [ 0.2467815 , 0.21348266, 0.43393244], + [ 0.24795393, 0.21685249, 0.4410088 ], + [ 0.24905614, 0.22023618, 0.448113 ], + [ 0.25007383, 0.22365053, 0.45519562], + [ 0.25098926, 0.22710664, 0.46223892], + [ 0.25179696, 0.23060342, 0.46925447], + [ 0.25249346, 0.23414353, 0.47623196], + [ 0.25307401, 0.23772973, 0.48316271], + [ 0.25353152, 0.24136961, 0.49001976], + [ 0.25386167, 0.24506548, 0.49679407], + [ 0.25406082, 0.2488164 , 0.50348932], + [ 0.25412435, 0.25262843, 0.51007843], + [ 0.25404842, 0.25650743, 0.51653282], + [ 0.25383134, 0.26044852, 0.52286845], + [ 0.2534705 , 0.26446165, 0.52903422], + [ 0.25296722, 0.2685428 , 0.53503572], + [ 0.2523226 , 0.27269346, 0.54085315], + [ 0.25153974, 0.27691629, 0.54645752], + [ 0.25062402, 0.28120467, 0.55185939], + [ 0.24958205, 0.28556371, 0.55701246], + [ 0.24842386, 0.28998148, 0.56194601], + [ 0.24715928, 0.29446327, 0.56660884], + [ 0.24580099, 0.29899398, 0.57104399], + [ 0.24436202, 0.30357852, 0.57519929], + [ 0.24285591, 0.30819938, 0.57913247], + [ 0.24129828, 0.31286235, 0.58278615], + [ 0.23970131, 0.3175495 , 0.5862272 ], + [ 0.23807973, 0.32226344, 0.58941872], + [ 0.23644557, 0.32699241, 0.59240198], + [ 0.2348113 , 0.33173196, 0.59518282], + [ 0.23318874, 0.33648036, 0.59775543], + [ 0.2315855 , 0.34122763, 0.60016456], + [ 0.23001121, 0.34597357, 0.60240251], + [ 0.2284748 , 0.35071512, 0.6044784 ], + [ 0.22698081, 0.35544612, 0.60642528], + [ 0.22553305, 0.36016515, 0.60825252], + [ 0.22413977, 0.36487341, 0.60994938], + [ 0.22280246, 0.36956728, 0.61154118], + [ 0.22152555, 0.37424409, 0.61304472], + [ 0.22030752, 0.37890437, 0.61446646], + [ 0.2191538 , 0.38354668, 0.61581561], + [ 0.21806257, 0.38817169, 0.61709794], + [ 0.21703799, 0.39277882, 0.61831922], + [ 0.21607792, 0.39736958, 0.61948028], + [ 0.21518463, 0.40194196, 0.62059763], + [ 0.21435467, 0.40649717, 0.62167507], + [ 0.21358663, 0.41103579, 0.62271724], + [ 0.21288172, 0.41555771, 0.62373011], + [ 0.21223835, 0.42006355, 0.62471794], + [ 0.21165312, 0.42455441, 0.62568371], + [ 0.21112526, 0.42903064, 0.6266318 ], + [ 0.21065161, 0.43349321, 0.62756504], + [ 0.21023306, 0.43794288, 0.62848279], + [ 0.20985996, 0.44238227, 0.62938329], + [ 0.20951045, 0.44680966, 0.63030696], + [ 0.20916709, 0.45122981, 0.63124483], + [ 0.20882976, 0.45564335, 0.63219599], + [ 0.20849798, 0.46005094, 0.63315928], + [ 0.20817199, 0.46445309, 0.63413391], + [ 0.20785149, 0.46885041, 0.63511876], + [ 0.20753716, 0.47324327, 0.63611321], + [ 0.20722876, 0.47763224, 0.63711608], + [ 0.20692679, 0.48201774, 0.63812656], + [ 0.20663156, 0.48640018, 0.63914367], + [ 0.20634336, 0.49078002, 0.64016638], + [ 0.20606303, 0.49515755, 0.6411939 ], + [ 0.20578999, 0.49953341, 0.64222457], + [ 0.20552612, 0.50390766, 0.64325811], + [ 0.20527189, 0.50828072, 0.64429331], + [ 0.20502868, 0.51265277, 0.64532947], + [ 0.20479718, 0.51702417, 0.64636539], + [ 0.20457804, 0.52139527, 0.64739979], + [ 0.20437304, 0.52576622, 0.64843198], + [ 0.20418396, 0.53013715, 0.64946117], + [ 0.20401238, 0.53450825, 0.65048638], + [ 0.20385896, 0.53887991, 0.65150606], + [ 0.20372653, 0.54325208, 0.65251978], + [ 0.20361709, 0.5476249 , 0.6535266 ], + [ 0.20353258, 0.55199854, 0.65452542], + [ 0.20347472, 0.55637318, 0.655515 ], + [ 0.20344718, 0.56074869, 0.65649508], + [ 0.20345161, 0.56512531, 0.65746419], + [ 0.20349089, 0.56950304, 0.65842151], + [ 0.20356842, 0.57388184, 0.65936642], + [ 0.20368663, 0.57826181, 0.66029768], + [ 0.20384884, 0.58264293, 0.6612145 ], + [ 0.20405904, 0.58702506, 0.66211645], + [ 0.20431921, 0.59140842, 0.66300179], + [ 0.20463464, 0.59579264, 0.66387079], + [ 0.20500731, 0.60017798, 0.66472159], + [ 0.20544449, 0.60456387, 0.66555409], + [ 0.20596097, 0.60894927, 0.66636568], + [ 0.20654832, 0.61333521, 0.66715744], + [ 0.20721003, 0.61772167, 0.66792838], + [ 0.20795035, 0.62210845, 0.66867802], + [ 0.20877302, 0.62649546, 0.66940555], + [ 0.20968223, 0.63088252, 0.6701105 ], + [ 0.21068163, 0.63526951, 0.67079211], + [ 0.21177544, 0.63965621, 0.67145005], + [ 0.21298582, 0.64404072, 0.67208182], + [ 0.21430361, 0.64842404, 0.67268861], + [ 0.21572716, 0.65280655, 0.67326978], + [ 0.21726052, 0.65718791, 0.6738255 ], + [ 0.21890636, 0.66156803, 0.67435491], + [ 0.220668 , 0.66594665, 0.67485792], + [ 0.22255447, 0.67032297, 0.67533374], + [ 0.22458372, 0.67469531, 0.67578061], + [ 0.22673713, 0.67906542, 0.67620044], + [ 0.22901625, 0.6834332 , 0.67659251], + [ 0.23142316, 0.68779836, 0.67695703], + [ 0.23395924, 0.69216072, 0.67729378], + [ 0.23663857, 0.69651881, 0.67760151], + [ 0.23946645, 0.70087194, 0.67788018], + [ 0.24242624, 0.70522162, 0.67813088], + [ 0.24549008, 0.70957083, 0.67835215], + [ 0.24863372, 0.71392166, 0.67854868], + [ 0.25187832, 0.71827158, 0.67872193], + [ 0.25524083, 0.72261873, 0.67887024], + [ 0.25870947, 0.72696469, 0.67898912], + [ 0.26229238, 0.73130855, 0.67907645], + [ 0.26604085, 0.73564353, 0.67914062], + [ 0.26993099, 0.73997282, 0.67917264], + [ 0.27397488, 0.74429484, 0.67917096], + [ 0.27822463, 0.74860229, 0.67914468], + [ 0.28264201, 0.75290034, 0.67907959], + [ 0.2873016 , 0.75717817, 0.67899164], + [ 0.29215894, 0.76144162, 0.67886578], + [ 0.29729823, 0.76567816, 0.67871894], + [ 0.30268199, 0.76989232, 0.67853896], + [ 0.30835665, 0.77407636, 0.67833512], + [ 0.31435139, 0.77822478, 0.67811118], + [ 0.3206671 , 0.78233575, 0.67786729], + [ 0.32733158, 0.78640315, 0.67761027], + [ 0.33437168, 0.79042043, 0.67734882], + [ 0.34182112, 0.79437948, 0.67709394], + [ 0.34968889, 0.79827511, 0.67685638], + [ 0.35799244, 0.80210037, 0.67664969], + [ 0.36675371, 0.80584651, 0.67649539], + [ 0.3759816 , 0.80950627, 0.67641393], + [ 0.38566792, 0.81307432, 0.67642947], + [ 0.39579804, 0.81654592, 0.67656899], + [ 0.40634556, 0.81991799, 0.67686215], + [ 0.41730243, 0.82318339, 0.67735255], + [ 0.4285828 , 0.82635051, 0.6780564 ], + [ 0.44012728, 0.82942353, 0.67900049], + [ 0.45189421, 0.83240398, 0.68021733], + [ 0.46378379, 0.83530763, 0.6817062 ], + [ 0.47573199, 0.83814472, 0.68347352], + [ 0.48769865, 0.84092197, 0.68552698], + [ 0.49962354, 0.84365379, 0.68783929], + [ 0.5114027 , 0.8463718 , 0.69029789], + [ 0.52301693, 0.84908401, 0.69288545], + [ 0.53447549, 0.85179048, 0.69561066], + [ 0.54578602, 0.8544913 , 0.69848331], + [ 0.55695565, 0.85718723, 0.70150427], + [ 0.56798832, 0.85987893, 0.70468261], + [ 0.57888639, 0.86256715, 0.70802931], + [ 0.5896541 , 0.8652532 , 0.71154204], + [ 0.60028928, 0.86793835, 0.71523675], + [ 0.61079441, 0.87062438, 0.71910895], + [ 0.62116633, 0.87331311, 0.72317003], + [ 0.63140509, 0.87600675, 0.72741689], + [ 0.64150735, 0.87870746, 0.73185717], + [ 0.65147219, 0.8814179 , 0.73648495], + [ 0.66129632, 0.8841403 , 0.74130658], + [ 0.67097934, 0.88687758, 0.74631123], + [ 0.68051833, 0.88963189, 0.75150483], + [ 0.68991419, 0.89240612, 0.75687187], + [ 0.69916533, 0.89520211, 0.76241714], + [ 0.70827373, 0.89802257, 0.76812286], + [ 0.71723995, 0.90086891, 0.77399039], + [ 0.72606665, 0.90374337, 0.7800041 ], + [ 0.73475675, 0.90664718, 0.78615802], + [ 0.74331358, 0.90958151, 0.79244474], + [ 0.75174143, 0.91254787, 0.79884925], + [ 0.76004473, 0.91554656, 0.80536823], + [ 0.76827704, 0.91856549, 0.81196513], + [ 0.77647029, 0.921603 , 0.81855729], + [ 0.78462009, 0.92466151, 0.82514119], + [ 0.79273542, 0.92773848, 0.83172131], + [ 0.8008109 , 0.93083672, 0.83829355], + [ 0.80885107, 0.93395528, 0.84485982], + [ 0.81685878, 0.9370938 , 0.85142101], + [ 0.82483206, 0.94025378, 0.8579751 ], + [ 0.83277661, 0.94343371, 0.86452477], + [ 0.84069127, 0.94663473, 0.87106853], + [ 0.84857662, 0.9498573 , 0.8776059 ], + [ 0.8564431 , 0.95309792, 0.88414253], + [ 0.86429066, 0.95635719, 0.89067759], + [ 0.87218969, 0.95960708, 0.89725384] +] + + +_vlag_lut = [ + [ 0.13850039, 0.41331206, 0.74052025], + [ 0.15077609, 0.41762684, 0.73970427], + [ 0.16235219, 0.4219191 , 0.7389667 ], + [ 0.1733322 , 0.42619024, 0.73832537], + [ 0.18382538, 0.43044226, 0.73776764], + [ 0.19394034, 0.4346772 , 0.73725867], + [ 0.20367115, 0.43889576, 0.73685314], + [ 0.21313625, 0.44310003, 0.73648045], + [ 0.22231173, 0.44729079, 0.73619681], + [ 0.23125148, 0.45146945, 0.73597803], + [ 0.23998101, 0.45563715, 0.7358223 ], + [ 0.24853358, 0.45979489, 0.73571524], + [ 0.25691416, 0.4639437 , 0.73566943], + [ 0.26513894, 0.46808455, 0.73568319], + [ 0.27322194, 0.47221835, 0.73575497], + [ 0.28117543, 0.47634598, 0.73588332], + [ 0.28901021, 0.48046826, 0.73606686], + [ 0.2967358 , 0.48458597, 0.73630433], + [ 0.30436071, 0.48869986, 0.73659451], + [ 0.3118955 , 0.49281055, 0.73693255], + [ 0.31935389, 0.49691847, 0.73730851], + [ 0.32672701, 0.5010247 , 0.73774013], + [ 0.33402607, 0.50512971, 0.73821941], + [ 0.34125337, 0.50923419, 0.73874905], + [ 0.34840921, 0.51333892, 0.73933402], + [ 0.35551826, 0.51744353, 0.73994642], + [ 0.3625676 , 0.52154929, 0.74060763], + [ 0.36956356, 0.52565656, 0.74131327], + [ 0.37649902, 0.52976642, 0.74207698], + [ 0.38340273, 0.53387791, 0.74286286], + [ 0.39025859, 0.53799253, 0.7436962 ], + [ 0.39706821, 0.54211081, 0.744578 ], + [ 0.40384046, 0.54623277, 0.74549872], + [ 0.41058241, 0.55035849, 0.74645094], + [ 0.41728385, 0.55448919, 0.74745174], + [ 0.42395178, 0.55862494, 0.74849357], + [ 0.4305964 , 0.56276546, 0.74956387], + [ 0.4372044 , 0.56691228, 0.75068412], + [ 0.4437909 , 0.57106468, 0.75183427], + [ 0.45035117, 0.5752235 , 0.75302312], + [ 0.45687824, 0.57938983, 0.75426297], + [ 0.46339713, 0.58356191, 0.75551816], + [ 0.46988778, 0.58774195, 0.75682037], + [ 0.47635605, 0.59192986, 0.75816245], + [ 0.48281101, 0.5961252 , 0.75953212], + [ 0.4892374 , 0.60032986, 0.76095418], + [ 0.49566225, 0.60454154, 0.76238852], + [ 0.50206137, 0.60876307, 0.76387371], + [ 0.50845128, 0.61299312, 0.76538551], + [ 0.5148258 , 0.61723272, 0.76693475], + [ 0.52118385, 0.62148236, 0.76852436], + [ 0.52753571, 0.62574126, 0.77013939], + [ 0.53386831, 0.63001125, 0.77180152], + [ 0.54020159, 0.63429038, 0.7734803 ], + [ 0.54651272, 0.63858165, 0.77521306], + [ 0.55282975, 0.64288207, 0.77695608], + [ 0.55912585, 0.64719519, 0.77875327], + [ 0.56542599, 0.65151828, 0.78056551], + [ 0.57170924, 0.65585426, 0.78242747], + [ 0.57799572, 0.6602009 , 0.78430751], + [ 0.58426817, 0.66456073, 0.78623458], + [ 0.590544 , 0.66893178, 0.78818117], + [ 0.59680758, 0.67331643, 0.79017369], + [ 0.60307553, 0.67771273, 0.79218572], + [ 0.60934065, 0.68212194, 0.79422987], + [ 0.61559495, 0.68654548, 0.7963202 ], + [ 0.62185554, 0.69098125, 0.79842918], + [ 0.62810662, 0.69543176, 0.80058381], + [ 0.63436425, 0.69989499, 0.80275812], + [ 0.64061445, 0.70437326, 0.80497621], + [ 0.6468706 , 0.70886488, 0.80721641], + [ 0.65312213, 0.7133717 , 0.80949719], + [ 0.65937818, 0.71789261, 0.81180392], + [ 0.66563334, 0.72242871, 0.81414642], + [ 0.67189155, 0.72697967, 0.81651872], + [ 0.67815314, 0.73154569, 0.81892097], + [ 0.68441395, 0.73612771, 0.82136094], + [ 0.69068321, 0.74072452, 0.82382353], + [ 0.69694776, 0.7453385 , 0.82633199], + [ 0.70322431, 0.74996721, 0.8288583 ], + [ 0.70949595, 0.75461368, 0.83143221], + [ 0.7157774 , 0.75927574, 0.83402904], + [ 0.72206299, 0.76395461, 0.83665922], + [ 0.72835227, 0.76865061, 0.8393242 ], + [ 0.73465238, 0.7733628 , 0.84201224], + [ 0.74094862, 0.77809393, 0.84474951], + [ 0.74725683, 0.78284158, 0.84750915], + [ 0.75357103, 0.78760701, 0.85030217], + [ 0.75988961, 0.79239077, 0.85313207], + [ 0.76621987, 0.79719185, 0.85598668], + [ 0.77255045, 0.8020125 , 0.85888658], + [ 0.77889241, 0.80685102, 0.86181298], + [ 0.78524572, 0.81170768, 0.86476656], + [ 0.79159841, 0.81658489, 0.86776906], + [ 0.79796459, 0.82148036, 0.8707962 ], + [ 0.80434168, 0.82639479, 0.87385315], + [ 0.8107221 , 0.83132983, 0.87695392], + [ 0.81711301, 0.8362844 , 0.88008641], + [ 0.82351479, 0.84125863, 0.88325045], + [ 0.82992772, 0.84625263, 0.88644594], + [ 0.83634359, 0.85126806, 0.8896878 ], + [ 0.84277295, 0.85630293, 0.89295721], + [ 0.84921192, 0.86135782, 0.89626076], + [ 0.85566206, 0.866432 , 0.89959467], + [ 0.86211514, 0.87152627, 0.90297183], + [ 0.86857483, 0.87663856, 0.90638248], + [ 0.87504231, 0.88176648, 0.90981938], + [ 0.88151194, 0.88690782, 0.91328493], + [ 0.88797938, 0.89205857, 0.91677544], + [ 0.89443865, 0.89721298, 0.9202854 ], + [ 0.90088204, 0.90236294, 0.92380601], + [ 0.90729768, 0.90749778, 0.92732797], + [ 0.91367037, 0.91260329, 0.93083814], + [ 0.91998105, 0.91766106, 0.93431861], + [ 0.92620596, 0.92264789, 0.93774647], + [ 0.93231683, 0.9275351 , 0.94109192], + [ 0.93827772, 0.9322888 , 0.94432312], + [ 0.94404755, 0.93686925, 0.94740137], + [ 0.94958284, 0.94123072, 0.95027696], + [ 0.95482682, 0.9453245 , 0.95291103], + [ 0.9597248 , 0.94909728, 0.95525103], + [ 0.96422552, 0.95249273, 0.95723271], + [ 0.96826161, 0.95545812, 0.95882188], + [ 0.97178458, 0.95793984, 0.95995705], + [ 0.97474105, 0.95989142, 0.96059997], + [ 0.97708604, 0.96127366, 0.96071853], + [ 0.97877855, 0.96205832, 0.96030095], + [ 0.97978484, 0.96222949, 0.95935496], + [ 0.9805997 , 0.96155216, 0.95813083], + [ 0.98152619, 0.95993719, 0.95639322], + [ 0.9819726 , 0.95766608, 0.95399269], + [ 0.98191855, 0.9547873 , 0.95098107], + [ 0.98138514, 0.95134771, 0.94740644], + [ 0.98040845, 0.94739906, 0.94332125], + [ 0.97902107, 0.94300131, 0.93878672], + [ 0.97729348, 0.93820409, 0.93385135], + [ 0.9752533 , 0.933073 , 0.92858252], + [ 0.97297834, 0.92765261, 0.92302309], + [ 0.97049104, 0.92200317, 0.91723505], + [ 0.96784372, 0.91616744, 0.91126063], + [ 0.96507281, 0.91018664, 0.90514124], + [ 0.96222034, 0.90409203, 0.89890756], + [ 0.9593079 , 0.89791478, 0.89259122], + [ 0.95635626, 0.89167908, 0.88621654], + [ 0.95338303, 0.88540373, 0.87980238], + [ 0.95040174, 0.87910333, 0.87336339], + [ 0.94742246, 0.87278899, 0.86691076], + [ 0.94445249, 0.86646893, 0.86045277], + [ 0.94150476, 0.86014606, 0.85399191], + [ 0.93857394, 0.85382798, 0.84753642], + [ 0.93566206, 0.84751766, 0.84108935], + [ 0.93277194, 0.8412164 , 0.83465197], + [ 0.92990106, 0.83492672, 0.82822708], + [ 0.92704736, 0.82865028, 0.82181656], + [ 0.92422703, 0.82238092, 0.81541333], + [ 0.92142581, 0.81612448, 0.80902415], + [ 0.91864501, 0.80988032, 0.80264838], + [ 0.91587578, 0.80365187, 0.79629001], + [ 0.9131367 , 0.79743115, 0.78994 ], + [ 0.91041602, 0.79122265, 0.78360361], + [ 0.90771071, 0.78502727, 0.77728196], + [ 0.90501581, 0.77884674, 0.7709771 ], + [ 0.90235365, 0.77267117, 0.76467793], + [ 0.8997019 , 0.76650962, 0.75839484], + [ 0.89705346, 0.76036481, 0.752131 ], + [ 0.89444021, 0.75422253, 0.74587047], + [ 0.89183355, 0.74809474, 0.73962689], + [ 0.88923216, 0.74198168, 0.73340061], + [ 0.88665892, 0.73587283, 0.72717995], + [ 0.88408839, 0.72977904, 0.72097718], + [ 0.88153537, 0.72369332, 0.71478461], + [ 0.87899389, 0.7176179 , 0.70860487], + [ 0.87645157, 0.71155805, 0.7024439 ], + [ 0.8739399 , 0.70549893, 0.6962854 ], + [ 0.87142626, 0.6994551 , 0.69014561], + [ 0.8689268 , 0.69341868, 0.68401597], + [ 0.86643562, 0.687392 , 0.67789917], + [ 0.86394434, 0.68137863, 0.67179927], + [ 0.86147586, 0.67536728, 0.665704 ], + [ 0.85899928, 0.66937226, 0.6596292 ], + [ 0.85654668, 0.66337773, 0.6535577 ], + [ 0.85408818, 0.65739772, 0.64750494], + [ 0.85164413, 0.65142189, 0.64145983], + [ 0.84920091, 0.6454565 , 0.63542932], + [ 0.84676427, 0.63949827, 0.62941 ], + [ 0.84433231, 0.63354773, 0.62340261], + [ 0.84190106, 0.62760645, 0.61740899], + [ 0.83947935, 0.62166951, 0.61142404], + [ 0.8370538 , 0.61574332, 0.60545478], + [ 0.83463975, 0.60981951, 0.59949247], + [ 0.83221877, 0.60390724, 0.593547 ], + [ 0.82980985, 0.59799607, 0.58760751], + [ 0.82740268, 0.59209095, 0.58167944], + [ 0.82498638, 0.5861973 , 0.57576866], + [ 0.82258181, 0.5803034 , 0.56986307], + [ 0.82016611, 0.57442123, 0.56397539], + [ 0.81776305, 0.56853725, 0.55809173], + [ 0.81534551, 0.56266602, 0.55222741], + [ 0.81294293, 0.55679056, 0.5463651 ], + [ 0.81052113, 0.55092973, 0.54052443], + [ 0.80811509, 0.54506305, 0.53468464], + [ 0.80568952, 0.53921036, 0.52886622], + [ 0.80327506, 0.53335335, 0.52305077], + [ 0.80084727, 0.52750583, 0.51725256], + [ 0.79842217, 0.5216578 , 0.51146173], + [ 0.79599382, 0.51581223, 0.50568155], + [ 0.79355781, 0.50997127, 0.49991444], + [ 0.79112596, 0.50412707, 0.49415289], + [ 0.78867442, 0.49829386, 0.48841129], + [ 0.7862306 , 0.49245398, 0.48267247], + [ 0.7837687 , 0.48662309, 0.47695216], + [ 0.78130809, 0.4807883 , 0.47123805], + [ 0.77884467, 0.47495151, 0.46553236], + [ 0.77636283, 0.46912235, 0.45984473], + [ 0.77388383, 0.46328617, 0.45416141], + [ 0.77138912, 0.45745466, 0.44849398], + [ 0.76888874, 0.45162042, 0.44283573], + [ 0.76638802, 0.44577901, 0.43718292], + [ 0.76386116, 0.43994762, 0.43155211], + [ 0.76133542, 0.43410655, 0.42592523], + [ 0.75880631, 0.42825801, 0.42030488], + [ 0.75624913, 0.42241905, 0.41470727], + [ 0.7536919 , 0.41656866, 0.40911347], + [ 0.75112748, 0.41071104, 0.40352792], + [ 0.74854331, 0.40485474, 0.3979589 ], + [ 0.74594723, 0.39899309, 0.39240088], + [ 0.74334332, 0.39312199, 0.38685075], + [ 0.74073277, 0.38723941, 0.3813074 ], + [ 0.73809409, 0.38136133, 0.37578553], + [ 0.73544692, 0.37547129, 0.37027123], + [ 0.73278943, 0.36956954, 0.36476549], + [ 0.73011829, 0.36365761, 0.35927038], + [ 0.72743485, 0.35773314, 0.35378465], + [ 0.72472722, 0.35180504, 0.34831662], + [ 0.72200473, 0.34586421, 0.34285937], + [ 0.71927052, 0.33990649, 0.33741033], + [ 0.71652049, 0.33393396, 0.33197219], + [ 0.71375362, 0.32794602, 0.32654545], + [ 0.71096951, 0.32194148, 0.32113016], + [ 0.70816772, 0.31591904, 0.31572637], + [ 0.70534784, 0.30987734, 0.31033414], + [ 0.70250944, 0.30381489, 0.30495353], + [ 0.69965211, 0.2977301 , 0.2995846 ], + [ 0.6967754 , 0.29162126, 0.29422741], + [ 0.69388446, 0.28548074, 0.28887769], + [ 0.69097561, 0.2793096 , 0.28353795], + [ 0.68803513, 0.27311993, 0.27821876], + [ 0.6850794 , 0.26689144, 0.27290694], + [ 0.682108 , 0.26062114, 0.26760246], + [ 0.67911013, 0.2543177 , 0.26231367], + [ 0.67609393, 0.24796818, 0.25703372], + [ 0.67305921, 0.24156846, 0.25176238], + [ 0.67000176, 0.23511902, 0.24650278], + [ 0.66693423, 0.22859879, 0.24124404], + [ 0.6638441 , 0.22201742, 0.2359961 ], + [ 0.66080672, 0.21526712, 0.23069468] +] + + +_icefire_lut = [ + [ 0.73936227, 0.90443867, 0.85757238], + [ 0.72888063, 0.89639109, 0.85488394], + [ 0.71834255, 0.88842162, 0.8521605 ], + [ 0.70773866, 0.88052939, 0.849422 ], + [ 0.69706215, 0.87271313, 0.84668315], + [ 0.68629021, 0.86497329, 0.84398721], + [ 0.67543654, 0.85730617, 0.84130969], + [ 0.66448539, 0.84971123, 0.83868005], + [ 0.65342679, 0.84218728, 0.83611512], + [ 0.64231804, 0.83471867, 0.83358584], + [ 0.63117745, 0.827294 , 0.83113431], + [ 0.62000484, 0.81991069, 0.82876741], + [ 0.60879435, 0.81256797, 0.82648905], + [ 0.59754118, 0.80526458, 0.82430414], + [ 0.58624247, 0.79799884, 0.82221573], + [ 0.57489525, 0.7907688 , 0.82022901], + [ 0.56349779, 0.78357215, 0.81834861], + [ 0.55204294, 0.77640827, 0.81657563], + [ 0.54052516, 0.76927562, 0.81491462], + [ 0.52894085, 0.76217215, 0.81336913], + [ 0.51728854, 0.75509528, 0.81194156], + [ 0.50555676, 0.74804469, 0.81063503], + [ 0.49373871, 0.7410187 , 0.80945242], + [ 0.48183174, 0.73401449, 0.80839675], + [ 0.46982587, 0.72703075, 0.80747097], + [ 0.45770893, 0.72006648, 0.80667756], + [ 0.44547249, 0.71311941, 0.80601991], + [ 0.43318643, 0.70617126, 0.80549278], + [ 0.42110294, 0.69916972, 0.80506683], + [ 0.40925101, 0.69211059, 0.80473246], + [ 0.3976693 , 0.68498786, 0.80448272], + [ 0.38632002, 0.67781125, 0.80431024], + [ 0.37523981, 0.67057537, 0.80420832], + [ 0.36442578, 0.66328229, 0.80417474], + [ 0.35385939, 0.65593699, 0.80420591], + [ 0.34358916, 0.64853177, 0.8043 ], + [ 0.33355526, 0.64107876, 0.80445484], + [ 0.32383062, 0.63356578, 0.80467091], + [ 0.31434372, 0.62600624, 0.8049475 ], + [ 0.30516161, 0.618389 , 0.80528692], + [ 0.29623491, 0.61072284, 0.80569021], + [ 0.28759072, 0.60300319, 0.80616055], + [ 0.27923924, 0.59522877, 0.80669803], + [ 0.27114651, 0.5874047 , 0.80730545], + [ 0.26337153, 0.57952055, 0.80799113], + [ 0.25588696, 0.57157984, 0.80875922], + [ 0.248686 , 0.56358255, 0.80961366], + [ 0.24180668, 0.55552289, 0.81055123], + [ 0.23526251, 0.54739477, 0.8115939 ], + [ 0.22921445, 0.53918506, 0.81267292], + [ 0.22397687, 0.53086094, 0.8137141 ], + [ 0.21977058, 0.52241482, 0.81457651], + [ 0.21658989, 0.51384321, 0.81528511], + [ 0.21452772, 0.50514155, 0.81577278], + [ 0.21372783, 0.49630865, 0.81589566], + [ 0.21409503, 0.48734861, 0.81566163], + [ 0.2157176 , 0.47827123, 0.81487615], + [ 0.21842857, 0.46909168, 0.81351614], + [ 0.22211705, 0.45983212, 0.81146983], + [ 0.22665681, 0.45052233, 0.80860217], + [ 0.23176013, 0.44119137, 0.80494325], + [ 0.23727775, 0.43187704, 0.80038017], + [ 0.24298285, 0.42261123, 0.79493267], + [ 0.24865068, 0.41341842, 0.78869164], + [ 0.25423116, 0.40433127, 0.78155831], + [ 0.25950239, 0.39535521, 0.77376848], + [ 0.2644736 , 0.38651212, 0.76524809], + [ 0.26901584, 0.37779582, 0.75621942], + [ 0.27318141, 0.36922056, 0.746605 ], + [ 0.27690355, 0.3607736 , 0.73659374], + [ 0.28023585, 0.35244234, 0.72622103], + [ 0.28306009, 0.34438449, 0.71500731], + [ 0.28535896, 0.33660243, 0.70303975], + [ 0.28708711, 0.32912157, 0.69034504], + [ 0.28816354, 0.32200604, 0.67684067], + [ 0.28862749, 0.31519824, 0.66278813], + [ 0.28847904, 0.30869064, 0.6482815 ], + [ 0.28770912, 0.30250126, 0.63331265], + [ 0.28640325, 0.29655509, 0.61811374], + [ 0.28458943, 0.29082155, 0.60280913], + [ 0.28233561, 0.28527482, 0.58742866], + [ 0.27967038, 0.2798938 , 0.57204225], + [ 0.27665361, 0.27465357, 0.55667809], + [ 0.27332564, 0.2695165 , 0.54145387], + [ 0.26973851, 0.26447054, 0.52634916], + [ 0.2659204 , 0.25949691, 0.511417 ], + [ 0.26190145, 0.25458123, 0.49668768], + [ 0.2577151 , 0.24971691, 0.48214874], + [ 0.25337618, 0.24490494, 0.46778758], + [ 0.24890842, 0.24013332, 0.45363816], + [ 0.24433654, 0.23539226, 0.4397245 ], + [ 0.23967922, 0.23067729, 0.4260591 ], + [ 0.23495608, 0.22598894, 0.41262952], + [ 0.23018113, 0.22132414, 0.39945577], + [ 0.22534609, 0.21670847, 0.38645794], + [ 0.22048761, 0.21211723, 0.37372555], + [ 0.2156198 , 0.20755389, 0.36125301], + [ 0.21074637, 0.20302717, 0.34903192], + [ 0.20586893, 0.19855368, 0.33701661], + [ 0.20101757, 0.19411573, 0.32529173], + [ 0.19619947, 0.18972425, 0.31383846], + [ 0.19140726, 0.18540157, 0.30260777], + [ 0.1866769 , 0.1811332 , 0.29166583], + [ 0.18201285, 0.17694992, 0.28088776], + [ 0.17745228, 0.17282141, 0.27044211], + [ 0.17300684, 0.16876921, 0.26024893], + [ 0.16868273, 0.16479861, 0.25034479], + [ 0.16448691, 0.16091728, 0.24075373], + [ 0.16043195, 0.15714351, 0.23141745], + [ 0.15652427, 0.15348248, 0.22238175], + [ 0.15277065, 0.14994111, 0.21368395], + [ 0.14918274, 0.14653431, 0.20529486], + [ 0.14577095, 0.14327403, 0.19720829], + [ 0.14254381, 0.14016944, 0.18944326], + [ 0.13951035, 0.13723063, 0.18201072], + [ 0.13667798, 0.13446606, 0.17493774], + [ 0.13405762, 0.13188822, 0.16820842], + [ 0.13165767, 0.12950667, 0.16183275], + [ 0.12948748, 0.12733187, 0.15580631], + [ 0.12755435, 0.1253723 , 0.15014098], + [ 0.12586516, 0.12363617, 0.1448459 ], + [ 0.12442647, 0.12213143, 0.13992571], + [ 0.12324241, 0.12086419, 0.13539995], + [ 0.12232067, 0.11984278, 0.13124644], + [ 0.12166209, 0.11907077, 0.12749671], + [ 0.12126982, 0.11855309, 0.12415079], + [ 0.12114244, 0.11829179, 0.1212385 ], + [ 0.12127766, 0.11828837, 0.11878534], + [ 0.12284806, 0.1179729 , 0.11772022], + [ 0.12619498, 0.11721796, 0.11770203], + [ 0.129968 , 0.11663788, 0.11792377], + [ 0.13410011, 0.11625146, 0.11839138], + [ 0.13855459, 0.11606618, 0.11910584], + [ 0.14333775, 0.11607038, 0.1200606 ], + [ 0.148417 , 0.11626929, 0.12125453], + [ 0.15377389, 0.11666192, 0.12268364], + [ 0.15941427, 0.11723486, 0.12433911], + [ 0.16533376, 0.11797856, 0.12621303], + [ 0.17152547, 0.11888403, 0.12829735], + [ 0.17797765, 0.11994436, 0.13058435], + [ 0.18468769, 0.12114722, 0.13306426], + [ 0.19165663, 0.12247737, 0.13572616], + [ 0.19884415, 0.12394381, 0.1385669 ], + [ 0.20627181, 0.12551883, 0.14157124], + [ 0.21394877, 0.12718055, 0.14472604], + [ 0.22184572, 0.12893119, 0.14802579], + [ 0.22994394, 0.13076731, 0.15146314], + [ 0.23823937, 0.13267611, 0.15502793], + [ 0.24676041, 0.13462172, 0.15870321], + [ 0.25546457, 0.13661751, 0.16248722], + [ 0.26433628, 0.13865956, 0.16637301], + [ 0.27341345, 0.14070412, 0.17034221], + [ 0.28264773, 0.14277192, 0.1743957 ], + [ 0.29202272, 0.14486161, 0.17852793], + [ 0.30159648, 0.14691224, 0.1827169 ], + [ 0.31129002, 0.14897583, 0.18695213], + [ 0.32111555, 0.15103351, 0.19119629], + [ 0.33107961, 0.1530674 , 0.19543758], + [ 0.34119892, 0.15504762, 0.1996803 ], + [ 0.35142388, 0.15701131, 0.20389086], + [ 0.36178937, 0.1589124 , 0.20807639], + [ 0.37229381, 0.16073993, 0.21223189], + [ 0.38288348, 0.16254006, 0.2163249 ], + [ 0.39359592, 0.16426336, 0.22036577], + [ 0.40444332, 0.16588767, 0.22434027], + [ 0.41537995, 0.16745325, 0.2282297 ], + [ 0.42640867, 0.16894939, 0.23202755], + [ 0.43754706, 0.17034847, 0.23572899], + [ 0.44878564, 0.1716535 , 0.23932344], + [ 0.4601126 , 0.17287365, 0.24278607], + [ 0.47151732, 0.17401641, 0.24610337], + [ 0.48300689, 0.17506676, 0.2492737 ], + [ 0.49458302, 0.17601892, 0.25227688], + [ 0.50623876, 0.17687777, 0.255096 ], + [ 0.5179623 , 0.17765528, 0.2577162 ], + [ 0.52975234, 0.17835232, 0.2601134 ], + [ 0.54159776, 0.17898292, 0.26226847], + [ 0.55348804, 0.17956232, 0.26416003], + [ 0.56541729, 0.18010175, 0.26575971], + [ 0.57736669, 0.180631 , 0.26704888], + [ 0.58932081, 0.18117827, 0.26800409], + [ 0.60127582, 0.18175888, 0.26858488], + [ 0.61319563, 0.1824336 , 0.2687872 ], + [ 0.62506376, 0.18324015, 0.26858301], + [ 0.63681202, 0.18430173, 0.26795276], + [ 0.64842603, 0.18565472, 0.26689463], + [ 0.65988195, 0.18734638, 0.26543435], + [ 0.67111966, 0.18948885, 0.26357955], + [ 0.68209194, 0.19216636, 0.26137175], + [ 0.69281185, 0.19535326, 0.25887063], + [ 0.70335022, 0.19891271, 0.25617971], + [ 0.71375229, 0.20276438, 0.25331365], + [ 0.72401436, 0.20691287, 0.25027366], + [ 0.73407638, 0.21145051, 0.24710661], + [ 0.74396983, 0.21631913, 0.24380715], + [ 0.75361506, 0.22163653, 0.24043996], + [ 0.7630579 , 0.22731637, 0.23700095], + [ 0.77222228, 0.23346231, 0.23356628], + [ 0.78115441, 0.23998404, 0.23013825], + [ 0.78979746, 0.24694858, 0.22678822], + [ 0.79819286, 0.25427223, 0.22352658], + [ 0.80630444, 0.26198807, 0.22040877], + [ 0.81417437, 0.27001406, 0.21744645], + [ 0.82177364, 0.27837336, 0.21468316], + [ 0.82915955, 0.28696963, 0.21210766], + [ 0.83628628, 0.2958499 , 0.20977813], + [ 0.84322168, 0.30491136, 0.20766435], + [ 0.84995458, 0.31415945, 0.2057863 ], + [ 0.85648867, 0.32358058, 0.20415327], + [ 0.86286243, 0.33312058, 0.20274969], + [ 0.86908321, 0.34276705, 0.20157271], + [ 0.87512876, 0.3525416 , 0.20064949], + [ 0.88100349, 0.36243385, 0.19999078], + [ 0.8866469 , 0.37249496, 0.1997976 ], + [ 0.89203964, 0.38273475, 0.20013431], + [ 0.89713496, 0.39318156, 0.20121514], + [ 0.90195099, 0.40380687, 0.20301555], + [ 0.90648379, 0.41460191, 0.20558847], + [ 0.9106967 , 0.42557857, 0.20918529], + [ 0.91463791, 0.43668557, 0.21367954], + [ 0.91830723, 0.44790913, 0.21916352], + [ 0.92171507, 0.45922856, 0.22568002], + [ 0.92491786, 0.4705936 , 0.23308207], + [ 0.92790792, 0.48200153, 0.24145932], + [ 0.93073701, 0.49341219, 0.25065486], + [ 0.93343918, 0.5048017 , 0.26056148], + [ 0.93602064, 0.51616486, 0.27118485], + [ 0.93850535, 0.52748892, 0.28242464], + [ 0.94092933, 0.53875462, 0.29416042], + [ 0.94330011, 0.5499628 , 0.30634189], + [ 0.94563159, 0.56110987, 0.31891624], + [ 0.94792955, 0.57219822, 0.33184256], + [ 0.95020929, 0.5832232 , 0.34508419], + [ 0.95247324, 0.59419035, 0.35859866], + [ 0.95471709, 0.60510869, 0.37236035], + [ 0.95698411, 0.61595766, 0.38629631], + [ 0.95923863, 0.62676473, 0.40043317], + [ 0.9615041 , 0.6375203 , 0.41474106], + [ 0.96371553, 0.64826619, 0.42928335], + [ 0.96591497, 0.65899621, 0.44380444], + [ 0.96809871, 0.66971662, 0.45830232], + [ 0.9702495 , 0.6804394 , 0.47280492], + [ 0.9723881 , 0.69115622, 0.48729272], + [ 0.97450723, 0.70187358, 0.50178034], + [ 0.9766108 , 0.712592 , 0.51626837], + [ 0.97871716, 0.72330511, 0.53074053], + [ 0.98082222, 0.73401769, 0.54520694], + [ 0.9829001 , 0.74474445, 0.5597019 ], + [ 0.98497466, 0.75547635, 0.57420239], + [ 0.98705581, 0.76621129, 0.58870185], + [ 0.98913325, 0.77695637, 0.60321626], + [ 0.99119918, 0.78771716, 0.61775821], + [ 0.9932672 , 0.79848979, 0.63231691], + [ 0.99535958, 0.80926704, 0.64687278], + [ 0.99740544, 0.82008078, 0.66150571], + [ 0.9992197 , 0.83100723, 0.6764127 ] +] + + +_flare_lut = [ + [0.92907237, 0.68878959, 0.50411509], + [0.92891402, 0.68494686, 0.50173994], + [0.92864754, 0.68116207, 0.4993754], + [0.92836112, 0.67738527, 0.49701572], + [0.9280599, 0.67361354, 0.49466044], + [0.92775569, 0.66983999, 0.49230866], + [0.9274375, 0.66607098, 0.48996097], + [0.927111, 0.66230315, 0.48761688], + [0.92677996, 0.6585342, 0.485276], + [0.92644317, 0.65476476, 0.48293832], + [0.92609759, 0.65099658, 0.48060392], + [0.925747, 0.64722729, 0.47827244], + [0.92539502, 0.64345456, 0.47594352], + [0.92503106, 0.6396848, 0.47361782], + [0.92466877, 0.6359095, 0.47129427], + [0.92429828, 0.63213463, 0.46897349], + [0.92392172, 0.62835879, 0.46665526], + [0.92354597, 0.62457749, 0.46433898], + [0.9231622, 0.6207962, 0.46202524], + [0.92277222, 0.61701365, 0.45971384], + [0.92237978, 0.61322733, 0.45740444], + [0.92198615, 0.60943622, 0.45509686], + [0.92158735, 0.60564276, 0.45279137], + [0.92118373, 0.60184659, 0.45048789], + [0.92077582, 0.59804722, 0.44818634], + [0.92036413, 0.59424414, 0.44588663], + [0.91994924, 0.5904368, 0.44358868], + [0.91952943, 0.58662619, 0.4412926], + [0.91910675, 0.58281075, 0.43899817], + [0.91868096, 0.57899046, 0.4367054], + [0.91825103, 0.57516584, 0.43441436], + [0.91781857, 0.57133556, 0.43212486], + [0.9173814, 0.56750099, 0.4298371], + [0.91694139, 0.56366058, 0.42755089], + [0.91649756, 0.55981483, 0.42526631], + [0.91604942, 0.55596387, 0.42298339], + [0.9155979, 0.55210684, 0.42070204], + [0.9151409, 0.54824485, 0.4184247], + [0.91466138, 0.54438817, 0.41617858], + [0.91416896, 0.54052962, 0.41396347], + [0.91366559, 0.53666778, 0.41177769], + [0.91315173, 0.53280208, 0.40962196], + [0.91262605, 0.52893336, 0.40749715], + [0.91208866, 0.52506133, 0.40540404], + [0.91153952, 0.52118582, 0.40334346], + [0.91097732, 0.51730767, 0.4013163], + [0.910403, 0.51342591, 0.39932342], + [0.90981494, 0.50954168, 0.39736571], + [0.90921368, 0.5056543, 0.39544411], + [0.90859797, 0.50176463, 0.39355952], + [0.90796841, 0.49787195, 0.39171297], + [0.90732341, 0.4939774, 0.38990532], + [0.90666382, 0.49008006, 0.38813773], + [0.90598815, 0.486181, 0.38641107], + [0.90529624, 0.48228017, 0.38472641], + [0.90458808, 0.47837738, 0.38308489], + [0.90386248, 0.47447348, 0.38148746], + [0.90311921, 0.4705685, 0.37993524], + [0.90235809, 0.46666239, 0.37842943], + [0.90157824, 0.46275577, 0.37697105], + [0.90077904, 0.45884905, 0.37556121], + [0.89995995, 0.45494253, 0.37420106], + [0.89912041, 0.4510366, 0.37289175], + [0.8982602, 0.44713126, 0.37163458], + [0.89737819, 0.44322747, 0.37043052], + [0.89647387, 0.43932557, 0.36928078], + [0.89554477, 0.43542759, 0.36818855], + [0.89458871, 0.4315354, 0.36715654], + [0.89360794, 0.42764714, 0.36618273], + [0.89260152, 0.42376366, 0.36526813], + [0.8915687, 0.41988565, 0.36441384], + [0.89050882, 0.41601371, 0.36362102], + [0.8894159, 0.41215334, 0.36289639], + [0.888292, 0.40830288, 0.36223756], + [0.88713784, 0.40446193, 0.36164328], + [0.88595253, 0.40063149, 0.36111438], + [0.88473115, 0.39681635, 0.3606566], + [0.88347246, 0.39301805, 0.36027074], + [0.88217931, 0.38923439, 0.35995244], + [0.880851, 0.38546632, 0.35970244], + [0.87947728, 0.38172422, 0.35953127], + [0.87806542, 0.37800172, 0.35942941], + [0.87661509, 0.37429964, 0.35939659], + [0.87511668, 0.37062819, 0.35944178], + [0.87357554, 0.36698279, 0.35955811], + [0.87199254, 0.3633634, 0.35974223], + [0.87035691, 0.35978174, 0.36000516], + [0.86867647, 0.35623087, 0.36033559], + [0.86694949, 0.35271349, 0.36073358], + [0.86516775, 0.34923921, 0.36120624], + [0.86333996, 0.34580008, 0.36174113], + [0.86145909, 0.3424046, 0.36234402], + [0.85952586, 0.33905327, 0.36301129], + [0.85754536, 0.33574168, 0.36373567], + [0.855514, 0.33247568, 0.36451271], + [0.85344392, 0.32924217, 0.36533344], + [0.8513284, 0.32604977, 0.36620106], + [0.84916723, 0.32289973, 0.36711424], + [0.84696243, 0.31979068, 0.36806976], + [0.84470627, 0.31673295, 0.36907066], + [0.84240761, 0.31371695, 0.37010969], + [0.84005337, 0.31075974, 0.37119284], + [0.83765537, 0.30784814, 0.3723105], + [0.83520234, 0.30499724, 0.37346726], + [0.83270291, 0.30219766, 0.37465552], + [0.83014895, 0.29946081, 0.37587769], + [0.82754694, 0.29677989, 0.37712733], + [0.82489111, 0.29416352, 0.37840532], + [0.82218644, 0.29160665, 0.37970606], + [0.81942908, 0.28911553, 0.38102921], + [0.81662276, 0.28668665, 0.38236999], + [0.81376555, 0.28432371, 0.383727], + [0.81085964, 0.28202508, 0.38509649], + [0.8079055, 0.27979128, 0.38647583], + [0.80490309, 0.27762348, 0.3878626], + [0.80185613, 0.2755178, 0.38925253], + [0.79876118, 0.27347974, 0.39064559], + [0.79562644, 0.27149928, 0.39203532], + [0.79244362, 0.2695883, 0.39342447], + [0.78922456, 0.26773176, 0.3948046], + [0.78596161, 0.26594053, 0.39617873], + [0.7826624, 0.26420493, 0.39754146], + [0.77932717, 0.26252522, 0.39889102], + [0.77595363, 0.2609049, 0.4002279], + [0.77254999, 0.25933319, 0.40154704], + [0.76911107, 0.25781758, 0.40284959], + [0.76564158, 0.25635173, 0.40413341], + [0.76214598, 0.25492998, 0.40539471], + [0.75861834, 0.25356035, 0.40663694], + [0.75506533, 0.25223402, 0.40785559], + [0.75148963, 0.2509473, 0.40904966], + [0.74788835, 0.24970413, 0.41022028], + [0.74426345, 0.24850191, 0.41136599], + [0.74061927, 0.24733457, 0.41248516], + [0.73695678, 0.24620072, 0.41357737], + [0.73327278, 0.24510469, 0.41464364], + [0.72957096, 0.24404127, 0.4156828], + [0.72585394, 0.24300672, 0.41669383], + [0.7221226, 0.24199971, 0.41767651], + [0.71837612, 0.24102046, 0.41863486], + [0.71463236, 0.24004289, 0.41956983], + [0.7108932, 0.23906316, 0.42048681], + [0.70715842, 0.23808142, 0.42138647], + [0.70342811, 0.2370976, 0.42226844], + [0.69970218, 0.23611179, 0.42313282], + [0.69598055, 0.2351247, 0.42397678], + [0.69226314, 0.23413578, 0.42480327], + [0.68854988, 0.23314511, 0.42561234], + [0.68484064, 0.23215279, 0.42640419], + [0.68113541, 0.23115942, 0.42717615], + [0.67743412, 0.23016472, 0.42792989], + [0.67373662, 0.22916861, 0.42866642], + [0.67004287, 0.22817117, 0.42938576], + [0.66635279, 0.22717328, 0.43008427], + [0.66266621, 0.22617435, 0.43076552], + [0.65898313, 0.22517434, 0.43142956], + [0.65530349, 0.22417381, 0.43207427], + [0.65162696, 0.22317307, 0.4327001], + [0.64795375, 0.22217149, 0.43330852], + [0.64428351, 0.22116972, 0.43389854], + [0.64061624, 0.22016818, 0.43446845], + [0.63695183, 0.21916625, 0.43502123], + [0.63329016, 0.21816454, 0.43555493], + [0.62963102, 0.2171635, 0.43606881], + [0.62597451, 0.21616235, 0.43656529], + [0.62232019, 0.21516239, 0.43704153], + [0.61866821, 0.21416307, 0.43749868], + [0.61501835, 0.21316435, 0.43793808], + [0.61137029, 0.21216761, 0.4383556], + [0.60772426, 0.2111715, 0.43875552], + [0.60407977, 0.21017746, 0.43913439], + [0.60043678, 0.20918503, 0.43949412], + [0.59679524, 0.20819447, 0.43983393], + [0.59315487, 0.20720639, 0.44015254], + [0.58951566, 0.20622027, 0.44045213], + [0.58587715, 0.20523751, 0.44072926], + [0.5822395, 0.20425693, 0.44098758], + [0.57860222, 0.20328034, 0.44122241], + [0.57496549, 0.20230637, 0.44143805], + [0.57132875, 0.20133689, 0.4416298], + [0.56769215, 0.20037071, 0.44180142], + [0.5640552, 0.19940936, 0.44194923], + [0.56041794, 0.19845221, 0.44207535], + [0.55678004, 0.1975, 0.44217824], + [0.55314129, 0.19655316, 0.44225723], + [0.54950166, 0.19561118, 0.44231412], + [0.54585987, 0.19467771, 0.44234111], + [0.54221157, 0.19375869, 0.44233698], + [0.5385549, 0.19285696, 0.44229959], + [0.5348913, 0.19197036, 0.44222958], + [0.53122177, 0.1910974, 0.44212735], + [0.52754464, 0.19024042, 0.44199159], + [0.52386353, 0.18939409, 0.44182449], + [0.52017476, 0.18856368, 0.44162345], + [0.51648277, 0.18774266, 0.44139128], + [0.51278481, 0.18693492, 0.44112605], + [0.50908361, 0.18613639, 0.4408295], + [0.50537784, 0.18534893, 0.44050064], + [0.50166912, 0.18457008, 0.44014054], + [0.49795686, 0.18380056, 0.43974881], + [0.49424218, 0.18303865, 0.43932623], + [0.49052472, 0.18228477, 0.43887255], + [0.48680565, 0.1815371, 0.43838867], + [0.48308419, 0.18079663, 0.43787408], + [0.47936222, 0.18006056, 0.43733022], + [0.47563799, 0.17933127, 0.43675585], + [0.47191466, 0.17860416, 0.43615337], + [0.46818879, 0.17788392, 0.43552047], + [0.46446454, 0.17716458, 0.43486036], + [0.46073893, 0.17645017, 0.43417097], + [0.45701462, 0.17573691, 0.43345429], + [0.45329097, 0.17502549, 0.43271025], + [0.44956744, 0.17431649, 0.4319386], + [0.44584668, 0.17360625, 0.43114133], + [0.44212538, 0.17289906, 0.43031642], + [0.43840678, 0.17219041, 0.42946642], + [0.43469046, 0.17148074, 0.42859124], + [0.4309749, 0.17077192, 0.42769008], + [0.42726297, 0.17006003, 0.42676519], + [0.42355299, 0.16934709, 0.42581586], + [0.41984535, 0.16863258, 0.42484219], + [0.41614149, 0.16791429, 0.42384614], + [0.41244029, 0.16719372, 0.42282661], + [0.40874177, 0.16647061, 0.42178429], + [0.40504765, 0.16574261, 0.42072062], + [0.401357, 0.16501079, 0.41963528], + [0.397669, 0.16427607, 0.418528], + [0.39398585, 0.16353554, 0.41740053], + [0.39030735, 0.16278924, 0.41625344], + [0.3866314, 0.16203977, 0.41508517], + [0.38295904, 0.16128519, 0.41389849], + [0.37928736, 0.16052483, 0.41270599], + [0.37562649, 0.15974704, 0.41151182], + [0.37197803, 0.15895049, 0.41031532], + [0.36833779, 0.15813871, 0.40911916], + [0.36470944, 0.15730861, 0.40792149], + [0.36109117, 0.15646169, 0.40672362], + [0.35748213, 0.15559861, 0.40552633], + [0.353885, 0.15471714, 0.40432831], + [0.35029682, 0.15381967, 0.4031316], + [0.34671861, 0.1529053, 0.40193587], + [0.34315191, 0.15197275, 0.40074049], + [0.33959331, 0.15102466, 0.3995478], + [0.33604378, 0.15006017, 0.39835754], + [0.33250529, 0.14907766, 0.39716879], + [0.32897621, 0.14807831, 0.39598285], + [0.3254559, 0.14706248, 0.39480044], + [0.32194567, 0.14602909, 0.39362106], + [0.31844477, 0.14497857, 0.39244549], + [0.31494974, 0.14391333, 0.39127626], + [0.31146605, 0.14282918, 0.39011024], + [0.30798857, 0.1417297, 0.38895105], + [0.30451661, 0.14061515, 0.38779953], + [0.30105136, 0.13948445, 0.38665531], + [0.2975886, 0.1383403, 0.38552159], + [0.29408557, 0.13721193, 0.38442775] +] + + +_crest_lut = [ + [0.6468274, 0.80289262, 0.56592265], + [0.64233318, 0.80081141, 0.56639461], + [0.63791969, 0.7987162, 0.56674976], + [0.6335316, 0.79661833, 0.56706128], + [0.62915226, 0.7945212, 0.56735066], + [0.62477862, 0.79242543, 0.56762143], + [0.62042003, 0.79032918, 0.56786129], + [0.61606327, 0.78823508, 0.56808666], + [0.61171322, 0.78614216, 0.56829092], + [0.60736933, 0.78405055, 0.56847436], + [0.60302658, 0.78196121, 0.56864272], + [0.59868708, 0.77987374, 0.56879289], + [0.59435366, 0.77778758, 0.56892099], + [0.59001953, 0.77570403, 0.56903477], + [0.58568753, 0.77362254, 0.56913028], + [0.58135593, 0.77154342, 0.56920908], + [0.57702623, 0.76946638, 0.56926895], + [0.57269165, 0.76739266, 0.5693172], + [0.56835934, 0.76532092, 0.56934507], + [0.56402533, 0.76325185, 0.56935664], + [0.55968429, 0.76118643, 0.56935732], + [0.55534159, 0.75912361, 0.56934052], + [0.55099572, 0.75706366, 0.56930743], + [0.54664626, 0.75500662, 0.56925799], + [0.54228969, 0.75295306, 0.56919546], + [0.53792417, 0.75090328, 0.56912118], + [0.53355172, 0.74885687, 0.5690324], + [0.52917169, 0.74681387, 0.56892926], + [0.52478243, 0.74477453, 0.56881287], + [0.52038338, 0.74273888, 0.56868323], + [0.5159739, 0.74070697, 0.56854039], + [0.51155269, 0.73867895, 0.56838507], + [0.50711872, 0.73665492, 0.56821764], + [0.50267118, 0.73463494, 0.56803826], + [0.49822926, 0.73261388, 0.56785146], + [0.49381422, 0.73058524, 0.56767484], + [0.48942421, 0.72854938, 0.56751036], + [0.48505993, 0.72650623, 0.56735752], + [0.48072207, 0.72445575, 0.56721583], + [0.4764113, 0.72239788, 0.56708475], + [0.47212827, 0.72033258, 0.56696376], + [0.46787361, 0.71825983, 0.56685231], + [0.46364792, 0.71617961, 0.56674986], + [0.45945271, 0.71409167, 0.56665625], + [0.45528878, 0.71199595, 0.56657103], + [0.45115557, 0.70989276, 0.5664931], + [0.44705356, 0.70778212, 0.56642189], + [0.44298321, 0.70566406, 0.56635683], + [0.43894492, 0.70353863, 0.56629734], + [0.43493911, 0.70140588, 0.56624286], + [0.43096612, 0.69926587, 0.5661928], + [0.42702625, 0.69711868, 0.56614659], + [0.42311977, 0.69496438, 0.56610368], + [0.41924689, 0.69280308, 0.56606355], + [0.41540778, 0.69063486, 0.56602564], + [0.41160259, 0.68845984, 0.56598944], + [0.40783143, 0.68627814, 0.56595436], + [0.40409434, 0.68408988, 0.56591994], + [0.40039134, 0.68189518, 0.56588564], + [0.39672238, 0.6796942, 0.56585103], + [0.39308781, 0.67748696, 0.56581581], + [0.38949137, 0.67527276, 0.56578084], + [0.38592889, 0.67305266, 0.56574422], + [0.38240013, 0.67082685, 0.56570561], + [0.37890483, 0.66859548, 0.56566462], + [0.37544276, 0.66635871, 0.56562081], + [0.37201365, 0.66411673, 0.56557372], + [0.36861709, 0.6618697, 0.5655231], + [0.36525264, 0.65961782, 0.56546873], + [0.36191986, 0.65736125, 0.56541032], + [0.35861935, 0.65509998, 0.56534768], + [0.35535621, 0.65283302, 0.56528211], + [0.35212361, 0.65056188, 0.56521171], + [0.34892097, 0.64828676, 0.56513633], + [0.34574785, 0.64600783, 0.56505539], + [0.34260357, 0.64372528, 0.5649689], + [0.33948744, 0.64143931, 0.56487679], + [0.33639887, 0.6391501, 0.56477869], + [0.33334501, 0.63685626, 0.56467661], + [0.33031952, 0.63455911, 0.564569], + [0.3273199, 0.63225924, 0.56445488], + [0.32434526, 0.62995682, 0.56433457], + [0.32139487, 0.62765201, 0.56420795], + [0.31846807, 0.62534504, 0.56407446], + [0.3155731, 0.62303426, 0.56393695], + [0.31270304, 0.62072111, 0.56379321], + [0.30985436, 0.61840624, 0.56364307], + [0.30702635, 0.61608984, 0.56348606], + [0.30421803, 0.61377205, 0.56332267], + [0.30143611, 0.61145167, 0.56315419], + [0.29867863, 0.60912907, 0.56298054], + [0.29593872, 0.60680554, 0.56280022], + [0.29321538, 0.60448121, 0.56261376], + [0.2905079, 0.60215628, 0.56242036], + [0.28782827, 0.5998285, 0.56222366], + [0.28516521, 0.59749996, 0.56202093], + [0.28251558, 0.59517119, 0.56181204], + [0.27987847, 0.59284232, 0.56159709], + [0.27726216, 0.59051189, 0.56137785], + [0.27466434, 0.58818027, 0.56115433], + [0.2720767, 0.58584893, 0.56092486], + [0.26949829, 0.58351797, 0.56068983], + [0.26693801, 0.58118582, 0.56045121], + [0.26439366, 0.57885288, 0.56020858], + [0.26185616, 0.57652063, 0.55996077], + [0.25932459, 0.57418919, 0.55970795], + [0.25681303, 0.57185614, 0.55945297], + [0.25431024, 0.56952337, 0.55919385], + [0.25180492, 0.56719255, 0.5589305], + [0.24929311, 0.56486397, 0.5586654], + [0.24678356, 0.56253666, 0.55839491], + [0.24426587, 0.56021153, 0.55812473], + [0.24174022, 0.55788852, 0.55785448], + [0.23921167, 0.55556705, 0.55758211], + [0.23668315, 0.55324675, 0.55730676], + [0.23414742, 0.55092825, 0.55703167], + [0.23160473, 0.54861143, 0.5567573], + [0.22905996, 0.54629572, 0.55648168], + [0.22651648, 0.54398082, 0.5562029], + [0.22396709, 0.54166721, 0.55592542], + [0.22141221, 0.53935481, 0.55564885], + [0.21885269, 0.53704347, 0.55537294], + [0.21629986, 0.53473208, 0.55509319], + [0.21374297, 0.53242154, 0.5548144], + [0.21118255, 0.53011166, 0.55453708], + [0.2086192, 0.52780237, 0.55426067], + [0.20605624, 0.52549322, 0.55398479], + [0.20350004, 0.5231837, 0.55370601], + [0.20094292, 0.52087429, 0.55342884], + [0.19838567, 0.51856489, 0.55315283], + [0.19582911, 0.51625531, 0.55287818], + [0.19327413, 0.51394542, 0.55260469], + [0.19072933, 0.51163448, 0.5523289], + [0.18819045, 0.50932268, 0.55205372], + [0.18565609, 0.50701014, 0.55177937], + [0.18312739, 0.50469666, 0.55150597], + [0.18060561, 0.50238204, 0.55123374], + [0.178092, 0.50006616, 0.55096224], + [0.17558808, 0.49774882, 0.55069118], + [0.17310341, 0.49542924, 0.5504176], + [0.17063111, 0.49310789, 0.55014445], + [0.1681728, 0.49078458, 0.54987159], + [0.1657302, 0.48845913, 0.54959882], + [0.16330517, 0.48613135, 0.54932605], + [0.16089963, 0.48380104, 0.54905306], + [0.15851561, 0.48146803, 0.54877953], + [0.15615526, 0.47913212, 0.54850526], + [0.15382083, 0.47679313, 0.54822991], + [0.15151471, 0.47445087, 0.54795318], + [0.14924112, 0.47210502, 0.54767411], + [0.1470032, 0.46975537, 0.54739226], + [0.14480101, 0.46740187, 0.54710832], + [0.14263736, 0.46504434, 0.54682188], + [0.14051521, 0.46268258, 0.54653253], + [0.13843761, 0.46031639, 0.54623985], + [0.13640774, 0.45794558, 0.5459434], + [0.13442887, 0.45556994, 0.54564272], + [0.1325044, 0.45318928, 0.54533736], + [0.13063777, 0.4508034, 0.54502674], + [0.12883252, 0.44841211, 0.5447104], + [0.12709242, 0.44601517, 0.54438795], + [0.1254209, 0.44361244, 0.54405855], + [0.12382162, 0.44120373, 0.54372156], + [0.12229818, 0.43878887, 0.54337634], + [0.12085453, 0.4363676, 0.54302253], + [0.11949938, 0.43393955, 0.54265715], + [0.11823166, 0.43150478, 0.54228104], + [0.11705496, 0.42906306, 0.54189388], + [0.115972, 0.42661431, 0.54149449], + [0.11498598, 0.42415835, 0.54108222], + [0.11409965, 0.42169502, 0.54065622], + [0.11331533, 0.41922424, 0.5402155], + [0.11263542, 0.41674582, 0.53975931], + [0.1120615, 0.4142597, 0.53928656], + [0.11159738, 0.41176567, 0.53879549], + [0.11125248, 0.40926325, 0.53828203], + [0.11101698, 0.40675289, 0.53774864], + [0.11089152, 0.40423445, 0.53719455], + [0.11085121, 0.4017095, 0.53662425], + [0.11087217, 0.39917938, 0.53604354], + [0.11095515, 0.39664394, 0.53545166], + [0.11110676, 0.39410282, 0.53484509], + [0.11131735, 0.39155635, 0.53422678], + [0.11158595, 0.38900446, 0.53359634], + [0.11191139, 0.38644711, 0.5329534], + [0.11229224, 0.38388426, 0.53229748], + [0.11273683, 0.38131546, 0.53162393], + [0.11323438, 0.37874109, 0.53093619], + [0.11378271, 0.37616112, 0.53023413], + [0.11437992, 0.37357557, 0.52951727], + [0.11502681, 0.37098429, 0.52878396], + [0.11572661, 0.36838709, 0.52803124], + [0.11646936, 0.36578429, 0.52726234], + [0.11725299, 0.3631759, 0.52647685], + [0.1180755, 0.36056193, 0.52567436], + [0.1189438, 0.35794203, 0.5248497], + [0.11984752, 0.35531657, 0.52400649], + [0.1207833, 0.35268564, 0.52314492], + [0.12174895, 0.35004927, 0.52226461], + [0.12274959, 0.34740723, 0.52136104], + [0.12377809, 0.34475975, 0.52043639], + [0.12482961, 0.34210702, 0.51949179], + [0.125902, 0.33944908, 0.51852688], + [0.12699998, 0.33678574, 0.51753708], + [0.12811691, 0.33411727, 0.51652464], + [0.12924811, 0.33144384, 0.51549084], + [0.13039157, 0.32876552, 0.51443538], + [0.13155228, 0.32608217, 0.51335321], + [0.13272282, 0.32339407, 0.51224759], + [0.13389954, 0.32070138, 0.51111946], + [0.13508064, 0.31800419, 0.50996862], + [0.13627149, 0.31530238, 0.50878942], + [0.13746376, 0.31259627, 0.50758645], + [0.13865499, 0.30988598, 0.50636017], + [0.13984364, 0.30717161, 0.50511042], + [0.14103515, 0.30445309, 0.50383119], + [0.14222093, 0.30173071, 0.50252813], + [0.14339946, 0.2990046, 0.50120127], + [0.14456941, 0.29627483, 0.49985054], + [0.14573579, 0.29354139, 0.49847009], + [0.14689091, 0.29080452, 0.49706566], + [0.1480336, 0.28806432, 0.49563732], + [0.1491628, 0.28532086, 0.49418508], + [0.15028228, 0.28257418, 0.49270402], + [0.15138673, 0.27982444, 0.49119848], + [0.15247457, 0.27707172, 0.48966925], + [0.15354487, 0.2743161, 0.48811641], + [0.15459955, 0.27155765, 0.4865371], + [0.15563716, 0.26879642, 0.4849321], + [0.1566572, 0.26603191, 0.48330429], + [0.15765823, 0.26326032, 0.48167456], + [0.15862147, 0.26048295, 0.48005785], + [0.15954301, 0.25770084, 0.47845341], + [0.16043267, 0.25491144, 0.4768626], + [0.16129262, 0.25211406, 0.4752857], + [0.1621119, 0.24931169, 0.47372076], + [0.16290577, 0.24649998, 0.47217025], + [0.16366819, 0.24368054, 0.47063302], + [0.1644021, 0.24085237, 0.46910949], + [0.16510882, 0.2380149, 0.46759982], + [0.16579015, 0.23516739, 0.46610429], + [0.1664433, 0.2323105, 0.46462219], + [0.16707586, 0.22944155, 0.46315508], + [0.16768475, 0.22656122, 0.46170223], + [0.16826815, 0.22366984, 0.46026308], + [0.16883174, 0.22076514, 0.45883891], + [0.16937589, 0.21784655, 0.45742976], + [0.16990129, 0.21491339, 0.45603578], + [0.1704074, 0.21196535, 0.45465677], + [0.17089473, 0.20900176, 0.4532928], + [0.17136819, 0.20602012, 0.45194524], + [0.17182683, 0.20302012, 0.45061386], + [0.17227059, 0.20000106, 0.44929865], + [0.17270583, 0.19695949, 0.44800165], + [0.17313804, 0.19389201, 0.44672488], + [0.17363177, 0.19076859, 0.44549087] +] + + +_lut_dict = dict( + rocket=_rocket_lut, + mako=_mako_lut, + icefire=_icefire_lut, + vlag=_vlag_lut, + flare=_flare_lut, + crest=_crest_lut, + +) + +for _name, _lut in _lut_dict.items(): + + _cmap = colors.ListedColormap(_lut, _name) + locals()[_name] = _cmap + + _cmap_r = colors.ListedColormap(_lut[::-1], _name + "_r") + locals()[_name + "_r"] = _cmap_r + + register_colormap(_name, _cmap) + register_colormap(_name + "_r", _cmap_r) + +del colors, register_colormap diff --git a/shared/package-files/f2/f20ae0ea6bebb63d3729fc3c6f46a28e8d1fd0cf28d2286adb5de126d49cc0bf/upsample_nearest3d_native.h b/shared/package-files/f2/f20ae0ea6bebb63d3729fc3c6f46a28e8d1fd0cf28d2286adb5de126d49cc0bf/upsample_nearest3d_native.h new file mode 100644 index 0000000000000000000000000000000000000000..a01f5a07bb326120c958362cecbc3ffb52080312 --- /dev/null +++ b/shared/package-files/f2/f20ae0ea6bebb63d3729fc3c6f46a28e8d1fd0cf28d2286adb5de126d49cc0bf/upsample_nearest3d_native.h @@ -0,0 +1,28 @@ +#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 { +TORCH_API at::Tensor upsample_nearest3d(const at::Tensor & input, at::OptionalIntArrayRef output_size, c10::optional> scale_factors); +struct TORCH_API structured_upsample_nearest3d_out_cpu : public at::meta::structured_upsample_nearest3d { +void impl(const at::Tensor & self, at::ArrayRef output_size, c10::optional scales_d, c10::optional scales_h, c10::optional scales_w, const at::Tensor & out); +}; +struct TORCH_API structured_upsample_nearest3d_out_cuda : public at::meta::structured_upsample_nearest3d { +void impl(const at::Tensor & self, at::ArrayRef output_size, c10::optional scales_d, c10::optional scales_h, c10::optional scales_w, const at::Tensor & out); +}; +TORCH_API at::Tensor upsample_nearest3d_quantized_cpu(const at::Tensor & self, at::IntArrayRef output_size, c10::optional scales_d=c10::nullopt, c10::optional scales_h=c10::nullopt, c10::optional scales_w=c10::nullopt); +} // namespace native +} // namespace at diff --git a/shared/package-files/f2/f20b217d4bc4f917ff834e2ae1f718abcfdf41f8c9cd4268bb345112f004616f/composable_quantizer.py b/shared/package-files/f2/f20b217d4bc4f917ff834e2ae1f718abcfdf41f8c9cd4268bb345112f004616f/composable_quantizer.py new file mode 100644 index 0000000000000000000000000000000000000000..75f7d1ad5f1e9f15890970222d54a2ee492acc17 --- /dev/null +++ b/shared/package-files/f2/f20b217d4bc4f917ff834e2ae1f718abcfdf41f8c9cd4268bb345112f004616f/composable_quantizer.py @@ -0,0 +1,78 @@ +from __future__ import annotations + +from typing import Dict, List + +import torch + +from torch.fx import Node + +from .quantizer import QuantizationAnnotation, Quantizer + +__all__ = [ + "ComposableQuantizer", +] + + +class ComposableQuantizer(Quantizer): + """ + ComposableQuantizer allows users to combine more than one quantizer into a single quantizer. + This allows users to quantize a model with multiple quantizers. E.g., embedding quantization + maybe supported by one quantizer while linear layers and other ops might be supported by another + quantizer. + + ComposableQuantizer is initialized with a list of `Quantizer` instances. + The order of the composition matters since that is the order in which the quantizers will be + applies. + Example: + ``` + embedding_quantizer = EmbeddingQuantizer() + linear_quantizer = MyLinearQuantizer() + xnnpack_quantizer = XNNPackQuantizer() # to handle ops not quantized by previous two quantizers + composed_quantizer = ComposableQuantizer([embedding_quantizer, linear_quantizer, xnnpack_quantizer]) + prepared_m = prepare_pt2e(model, composed_quantizer) + ``` + """ + + def __init__(self, quantizers: List[Quantizer]): + super().__init__() + self.quantizers = quantizers + self._graph_annotations: Dict[Node, QuantizationAnnotation] = {} + + def _record_and_validate_annotations( + self, gm: torch.fx.GraphModule, quantizer: Quantizer + ) -> None: + for n in gm.graph.nodes: + if "quantization_annotation" in n.meta: + # check if the annotation has been changed by + # comparing QuantizationAnnotation object id + if n in self._graph_annotations and ( + id(self._graph_annotations[n]) + != id(n.meta["quantization_annotation"]) + ): + raise RuntimeError( + f"Quantizer {quantizer.__class__.__name__} has changed annotations on node {n}" + ) + else: + self._graph_annotations[n] = n.meta["quantization_annotation"] + else: + if n in self._graph_annotations: + raise RuntimeError( + f"Quantizer {quantizer.__class__.__name__} has removed annotations on node {n}" + ) + + def annotate(self, model: torch.fx.GraphModule) -> torch.fx.GraphModule: + """just handling global spec for now""" + for quantizer in self.quantizers: + quantizer.annotate(model) + self._record_and_validate_annotations(model, quantizer) + return model + + def transform_for_annotation( + self, model: torch.fx.GraphModule + ) -> torch.fx.GraphModule: + for quantizer in self.quantizers: + model = quantizer.transform_for_annotation(model) + return model + + def validate(self, model: torch.fx.GraphModule) -> None: + pass diff --git a/shared/package-files/f2/f211ebc378cd74859d45d6ad713349c8511e05dbb531d90d517e3c36942d55a5/Libssh2Config-noconfig.cmake b/shared/package-files/f2/f211ebc378cd74859d45d6ad713349c8511e05dbb531d90d517e3c36942d55a5/Libssh2Config-noconfig.cmake new file mode 100644 index 0000000000000000000000000000000000000000..4d078dd3a6477603a2e0ba3fc216b2dba4cbc3b8 --- /dev/null +++ b/shared/package-files/f2/f211ebc378cd74859d45d6ad713349c8511e05dbb531d90d517e3c36942d55a5/Libssh2Config-noconfig.cmake @@ -0,0 +1,20 @@ +#---------------------------------------------------------------- +# Generated CMake target import file. +#---------------------------------------------------------------- + +# Commands may need to know the format version. +set(CMAKE_IMPORT_FILE_VERSION 1) + +# Import target "Libssh2::libssh2" for configuration "" +set_property(TARGET Libssh2::libssh2 APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG) +set_target_properties(Libssh2::libssh2 PROPERTIES + IMPORTED_LINK_INTERFACE_LIBRARIES_NOCONFIG "" + IMPORTED_LOCATION_NOCONFIG "${_IMPORT_PREFIX}/lib/libssh2.so.1.0.1" + IMPORTED_SONAME_NOCONFIG "libssh2.so.1" + ) + +list(APPEND _cmake_import_check_targets Libssh2::libssh2 ) +list(APPEND _cmake_import_check_files_for_Libssh2::libssh2 "${_IMPORT_PREFIX}/lib/libssh2.so.1.0.1" ) + +# Commands beyond this point should not need to know the version. +set(CMAKE_IMPORT_FILE_VERSION) diff --git a/shared/package-files/f2/f21931b542e1368b61e264327023826cc85978cba7812c54ec0ceae66118b040/test_contraction.py b/shared/package-files/f2/f21931b542e1368b61e264327023826cc85978cba7812c54ec0ceae66118b040/test_contraction.py new file mode 100644 index 0000000000000000000000000000000000000000..9a0e59f79256b22fa362ea4b5bf0f8809326783e --- /dev/null +++ b/shared/package-files/f2/f21931b542e1368b61e264327023826cc85978cba7812c54ec0ceae66118b040/test_contraction.py @@ -0,0 +1,422 @@ +"""Unit tests for the :mod:`networkx.algorithms.minors.contraction` module.""" +import pytest + +import networkx as nx +from networkx.utils import arbitrary_element, edges_equal, nodes_equal + + +class TestQuotient: + """Unit tests for computing quotient graphs.""" + + def test_quotient_graph_complete_multipartite(self): + """Tests that the quotient graph of the complete *n*-partite graph + under the "same neighbors" node relation is the complete graph on *n* + nodes. + + """ + G = nx.complete_multipartite_graph(2, 3, 4) + # Two nodes are equivalent if they are not adjacent but have the same + # neighbor set. + + def same_neighbors(u, v): + return u not in G[v] and v not in G[u] and G[u] == G[v] + + expected = nx.complete_graph(3) + actual = nx.quotient_graph(G, same_neighbors) + # It won't take too long to run a graph isomorphism algorithm on such + # small graphs. + assert nx.is_isomorphic(expected, actual) + + def test_quotient_graph_complete_bipartite(self): + """Tests that the quotient graph of the complete bipartite graph under + the "same neighbors" node relation is `K_2`. + + """ + G = nx.complete_bipartite_graph(2, 3) + # Two nodes are equivalent if they are not adjacent but have the same + # neighbor set. + + def same_neighbors(u, v): + return u not in G[v] and v not in G[u] and G[u] == G[v] + + expected = nx.complete_graph(2) + actual = nx.quotient_graph(G, same_neighbors) + # It won't take too long to run a graph isomorphism algorithm on such + # small graphs. + assert nx.is_isomorphic(expected, actual) + + def test_quotient_graph_edge_relation(self): + """Tests for specifying an alternate edge relation for the quotient + graph. + + """ + G = nx.path_graph(5) + + def identity(u, v): + return u == v + + def same_parity(b, c): + return arbitrary_element(b) % 2 == arbitrary_element(c) % 2 + + actual = nx.quotient_graph(G, identity, same_parity) + expected = nx.Graph() + expected.add_edges_from([(0, 2), (0, 4), (2, 4)]) + expected.add_edge(1, 3) + assert nx.is_isomorphic(actual, expected) + + def test_condensation_as_quotient(self): + """This tests that the condensation of a graph can be viewed as the + quotient graph under the "in the same connected component" equivalence + relation. + + """ + # This example graph comes from the file `test_strongly_connected.py`. + G = nx.DiGraph() + G.add_edges_from( + [ + (1, 2), + (2, 3), + (2, 11), + (2, 12), + (3, 4), + (4, 3), + (4, 5), + (5, 6), + (6, 5), + (6, 7), + (7, 8), + (7, 9), + (7, 10), + (8, 9), + (9, 7), + (10, 6), + (11, 2), + (11, 4), + (11, 6), + (12, 6), + (12, 11), + ] + ) + scc = list(nx.strongly_connected_components(G)) + C = nx.condensation(G, scc) + component_of = C.graph["mapping"] + # Two nodes are equivalent if they are in the same connected component. + + def same_component(u, v): + return component_of[u] == component_of[v] + + Q = nx.quotient_graph(G, same_component) + assert nx.is_isomorphic(C, Q) + + def test_path(self): + G = nx.path_graph(6) + partition = [{0, 1}, {2, 3}, {4, 5}] + M = nx.quotient_graph(G, partition, relabel=True) + assert nodes_equal(M, [0, 1, 2]) + assert edges_equal(M.edges(), [(0, 1), (1, 2)]) + for n in M: + assert M.nodes[n]["nedges"] == 1 + assert M.nodes[n]["nnodes"] == 2 + assert M.nodes[n]["density"] == 1 + + def test_path__partition_provided_as_dict_of_lists(self): + G = nx.path_graph(6) + partition = {0: [0, 1], 2: [2, 3], 4: [4, 5]} + M = nx.quotient_graph(G, partition, relabel=True) + assert nodes_equal(M, [0, 1, 2]) + assert edges_equal(M.edges(), [(0, 1), (1, 2)]) + for n in M: + assert M.nodes[n]["nedges"] == 1 + assert M.nodes[n]["nnodes"] == 2 + assert M.nodes[n]["density"] == 1 + + def test_path__partition_provided_as_dict_of_tuples(self): + G = nx.path_graph(6) + partition = {0: (0, 1), 2: (2, 3), 4: (4, 5)} + M = nx.quotient_graph(G, partition, relabel=True) + assert nodes_equal(M, [0, 1, 2]) + assert edges_equal(M.edges(), [(0, 1), (1, 2)]) + for n in M: + assert M.nodes[n]["nedges"] == 1 + assert M.nodes[n]["nnodes"] == 2 + assert M.nodes[n]["density"] == 1 + + def test_path__partition_provided_as_dict_of_sets(self): + G = nx.path_graph(6) + partition = {0: {0, 1}, 2: {2, 3}, 4: {4, 5}} + M = nx.quotient_graph(G, partition, relabel=True) + assert nodes_equal(M, [0, 1, 2]) + assert edges_equal(M.edges(), [(0, 1), (1, 2)]) + for n in M: + assert M.nodes[n]["nedges"] == 1 + assert M.nodes[n]["nnodes"] == 2 + assert M.nodes[n]["density"] == 1 + + def test_multigraph_path(self): + G = nx.MultiGraph(nx.path_graph(6)) + partition = [{0, 1}, {2, 3}, {4, 5}] + M = nx.quotient_graph(G, partition, relabel=True) + assert nodes_equal(M, [0, 1, 2]) + assert edges_equal(M.edges(), [(0, 1), (1, 2)]) + for n in M: + assert M.nodes[n]["nedges"] == 1 + assert M.nodes[n]["nnodes"] == 2 + assert M.nodes[n]["density"] == 1 + + def test_directed_path(self): + G = nx.DiGraph() + nx.add_path(G, range(6)) + partition = [{0, 1}, {2, 3}, {4, 5}] + M = nx.quotient_graph(G, partition, relabel=True) + assert nodes_equal(M, [0, 1, 2]) + assert edges_equal(M.edges(), [(0, 1), (1, 2)]) + for n in M: + assert M.nodes[n]["nedges"] == 1 + assert M.nodes[n]["nnodes"] == 2 + assert M.nodes[n]["density"] == 0.5 + + def test_directed_multigraph_path(self): + G = nx.MultiDiGraph() + nx.add_path(G, range(6)) + partition = [{0, 1}, {2, 3}, {4, 5}] + M = nx.quotient_graph(G, partition, relabel=True) + assert nodes_equal(M, [0, 1, 2]) + assert edges_equal(M.edges(), [(0, 1), (1, 2)]) + for n in M: + assert M.nodes[n]["nedges"] == 1 + assert M.nodes[n]["nnodes"] == 2 + assert M.nodes[n]["density"] == 0.5 + + def test_overlapping_blocks(self): + with pytest.raises(nx.NetworkXException): + G = nx.path_graph(6) + partition = [{0, 1, 2}, {2, 3}, {4, 5}] + nx.quotient_graph(G, partition) + + def test_weighted_path(self): + G = nx.path_graph(6) + for i in range(5): + G[i][i + 1]["weight"] = i + 1 + partition = [{0, 1}, {2, 3}, {4, 5}] + M = nx.quotient_graph(G, partition, relabel=True) + assert nodes_equal(M, [0, 1, 2]) + assert edges_equal(M.edges(), [(0, 1), (1, 2)]) + assert M[0][1]["weight"] == 2 + assert M[1][2]["weight"] == 4 + for n in M: + assert M.nodes[n]["nedges"] == 1 + assert M.nodes[n]["nnodes"] == 2 + assert M.nodes[n]["density"] == 1 + + def test_barbell(self): + G = nx.barbell_graph(3, 0) + partition = [{0, 1, 2}, {3, 4, 5}] + M = nx.quotient_graph(G, partition, relabel=True) + assert nodes_equal(M, [0, 1]) + assert edges_equal(M.edges(), [(0, 1)]) + for n in M: + assert M.nodes[n]["nedges"] == 3 + assert M.nodes[n]["nnodes"] == 3 + assert M.nodes[n]["density"] == 1 + + def test_barbell_plus(self): + G = nx.barbell_graph(3, 0) + # Add an extra edge joining the bells. + G.add_edge(0, 5) + partition = [{0, 1, 2}, {3, 4, 5}] + M = nx.quotient_graph(G, partition, relabel=True) + assert nodes_equal(M, [0, 1]) + assert edges_equal(M.edges(), [(0, 1)]) + assert M[0][1]["weight"] == 2 + for n in M: + assert M.nodes[n]["nedges"] == 3 + assert M.nodes[n]["nnodes"] == 3 + assert M.nodes[n]["density"] == 1 + + def test_blockmodel(self): + G = nx.path_graph(6) + partition = [[0, 1], [2, 3], [4, 5]] + M = nx.quotient_graph(G, partition, relabel=True) + assert nodes_equal(M.nodes(), [0, 1, 2]) + assert edges_equal(M.edges(), [(0, 1), (1, 2)]) + for n in M.nodes(): + assert M.nodes[n]["nedges"] == 1 + assert M.nodes[n]["nnodes"] == 2 + assert M.nodes[n]["density"] == 1.0 + + def test_multigraph_blockmodel(self): + G = nx.MultiGraph(nx.path_graph(6)) + partition = [[0, 1], [2, 3], [4, 5]] + M = nx.quotient_graph(G, partition, create_using=nx.MultiGraph(), relabel=True) + assert nodes_equal(M.nodes(), [0, 1, 2]) + assert edges_equal(M.edges(), [(0, 1), (1, 2)]) + for n in M.nodes(): + assert M.nodes[n]["nedges"] == 1 + assert M.nodes[n]["nnodes"] == 2 + assert M.nodes[n]["density"] == 1.0 + + def test_quotient_graph_incomplete_partition(self): + G = nx.path_graph(6) + partition = [] + H = nx.quotient_graph(G, partition, relabel=True) + assert nodes_equal(H.nodes(), []) + assert edges_equal(H.edges(), []) + + partition = [[0, 1], [2, 3], [5]] + H = nx.quotient_graph(G, partition, relabel=True) + assert nodes_equal(H.nodes(), [0, 1, 2]) + assert edges_equal(H.edges(), [(0, 1)]) + + +class TestContraction: + """Unit tests for node and edge contraction functions.""" + + def test_undirected_node_contraction(self): + """Tests for node contraction in an undirected graph.""" + G = nx.cycle_graph(4) + actual = nx.contracted_nodes(G, 0, 1) + expected = nx.cycle_graph(3) + expected.add_edge(0, 0) + assert nx.is_isomorphic(actual, expected) + + def test_directed_node_contraction(self): + """Tests for node contraction in a directed graph.""" + G = nx.DiGraph(nx.cycle_graph(4)) + actual = nx.contracted_nodes(G, 0, 1) + expected = nx.DiGraph(nx.cycle_graph(3)) + expected.add_edge(0, 0) + expected.add_edge(0, 0) + assert nx.is_isomorphic(actual, expected) + + def test_undirected_node_contraction_no_copy(self): + """Tests for node contraction in an undirected graph + by making changes in place.""" + G = nx.cycle_graph(4) + actual = nx.contracted_nodes(G, 0, 1, copy=False) + expected = nx.cycle_graph(3) + expected.add_edge(0, 0) + assert nx.is_isomorphic(actual, G) + assert nx.is_isomorphic(actual, expected) + + def test_directed_node_contraction_no_copy(self): + """Tests for node contraction in a directed graph + by making changes in place.""" + G = nx.DiGraph(nx.cycle_graph(4)) + actual = nx.contracted_nodes(G, 0, 1, copy=False) + expected = nx.DiGraph(nx.cycle_graph(3)) + expected.add_edge(0, 0) + expected.add_edge(0, 0) + assert nx.is_isomorphic(actual, G) + assert nx.is_isomorphic(actual, expected) + + def test_create_multigraph(self): + """Tests that using a MultiGraph creates multiple edges.""" + G = nx.path_graph(3, create_using=nx.MultiGraph()) + G.add_edge(0, 1) + G.add_edge(0, 0) + G.add_edge(0, 2) + actual = nx.contracted_nodes(G, 0, 2) + expected = nx.MultiGraph() + expected.add_edge(0, 1) + expected.add_edge(0, 1) + expected.add_edge(0, 1) + expected.add_edge(0, 0) + expected.add_edge(0, 0) + assert edges_equal(actual.edges, expected.edges) + + def test_multigraph_keys(self): + """Tests that multiedge keys are reset in new graph.""" + G = nx.path_graph(3, create_using=nx.MultiGraph()) + G.add_edge(0, 1, 5) + G.add_edge(0, 0, 0) + G.add_edge(0, 2, 5) + actual = nx.contracted_nodes(G, 0, 2) + expected = nx.MultiGraph() + expected.add_edge(0, 1, 0) + expected.add_edge(0, 1, 5) + expected.add_edge(0, 1, 2) # keyed as 2 b/c 2 edges already in G + expected.add_edge(0, 0, 0) + expected.add_edge(0, 0, 1) # this comes from (0, 2, 5) + assert edges_equal(actual.edges, expected.edges) + + def test_node_attributes(self): + """Tests that node contraction preserves node attributes.""" + G = nx.cycle_graph(4) + # Add some data to the two nodes being contracted. + G.nodes[0]["foo"] = "bar" + G.nodes[1]["baz"] = "xyzzy" + actual = nx.contracted_nodes(G, 0, 1) + # We expect that contracting the nodes 0 and 1 in C_4 yields K_3, but + # with nodes labeled 0, 2, and 3, and with a self-loop on 0. + expected = nx.complete_graph(3) + expected = nx.relabel_nodes(expected, {1: 2, 2: 3}) + expected.add_edge(0, 0) + cdict = {1: {"baz": "xyzzy"}} + expected.nodes[0].update({"foo": "bar", "contraction": cdict}) + assert nx.is_isomorphic(actual, expected) + assert actual.nodes == expected.nodes + + def test_edge_attributes(self): + """Tests that node contraction preserves edge attributes.""" + # Shape: src1 --> dest <-- src2 + G = nx.DiGraph([("src1", "dest"), ("src2", "dest")]) + G["src1"]["dest"]["value"] = "src1-->dest" + G["src2"]["dest"]["value"] = "src2-->dest" + H = nx.MultiDiGraph(G) + + G = nx.contracted_nodes(G, "src1", "src2") # New Shape: src1 --> dest + assert G.edges[("src1", "dest")]["value"] == "src1-->dest" + assert ( + G.edges[("src1", "dest")]["contraction"][("src2", "dest")]["value"] + == "src2-->dest" + ) + + H = nx.contracted_nodes(H, "src1", "src2") # New Shape: src1 -(x2)-> dest + assert len(H.edges(("src1", "dest"))) == 2 + + def test_without_self_loops(self): + """Tests for node contraction without preserving self-loops.""" + G = nx.cycle_graph(4) + actual = nx.contracted_nodes(G, 0, 1, self_loops=False) + expected = nx.complete_graph(3) + assert nx.is_isomorphic(actual, expected) + + def test_contract_selfloop_graph(self): + """Tests for node contraction when nodes have selfloops.""" + G = nx.cycle_graph(4) + G.add_edge(0, 0) + actual = nx.contracted_nodes(G, 0, 1) + expected = nx.complete_graph([0, 2, 3]) + expected.add_edge(0, 0) + expected.add_edge(0, 0) + assert edges_equal(actual.edges, expected.edges) + actual = nx.contracted_nodes(G, 1, 0) + expected = nx.complete_graph([1, 2, 3]) + expected.add_edge(1, 1) + expected.add_edge(1, 1) + assert edges_equal(actual.edges, expected.edges) + + def test_undirected_edge_contraction(self): + """Tests for edge contraction in an undirected graph.""" + G = nx.cycle_graph(4) + actual = nx.contracted_edge(G, (0, 1)) + expected = nx.complete_graph(3) + expected.add_edge(0, 0) + assert nx.is_isomorphic(actual, expected) + + def test_multigraph_edge_contraction(self): + """Tests for edge contraction in a multigraph""" + G = nx.cycle_graph(4) + actual = nx.contracted_edge(G, (0, 1, 0)) + expected = nx.complete_graph(3) + expected.add_edge(0, 0) + assert nx.is_isomorphic(actual, expected) + + def test_nonexistent_edge(self): + """Tests that attempting to contract a non-existent edge raises an + exception. + + """ + with pytest.raises(ValueError): + G = nx.cycle_graph(4) + nx.contracted_edge(G, (0, 2)) diff --git a/shared/package-files/f2/f21d7b5b3cac798c70c8c6d1d4b23078fff217a09792821811b2c9058b68f53f/test_kernel_pca.py b/shared/package-files/f2/f21d7b5b3cac798c70c8c6d1d4b23078fff217a09792821811b2c9058b68f53f/test_kernel_pca.py new file mode 100644 index 0000000000000000000000000000000000000000..57ae75c184622679b1db7350eab8b1ff9f94296e --- /dev/null +++ b/shared/package-files/f2/f21d7b5b3cac798c70c8c6d1d4b23078fff217a09792821811b2c9058b68f53f/test_kernel_pca.py @@ -0,0 +1,566 @@ +import warnings + +import numpy as np +import pytest + +import sklearn +from sklearn.datasets import load_iris, make_blobs, make_circles +from sklearn.decomposition import PCA, KernelPCA +from sklearn.exceptions import NotFittedError +from sklearn.linear_model import Perceptron +from sklearn.metrics.pairwise import rbf_kernel +from sklearn.model_selection import GridSearchCV +from sklearn.pipeline import Pipeline +from sklearn.preprocessing import StandardScaler +from sklearn.utils._testing import ( + assert_allclose, + assert_array_almost_equal, + assert_array_equal, +) +from sklearn.utils.fixes import CSR_CONTAINERS +from sklearn.utils.validation import _check_psd_eigenvalues + + +def test_kernel_pca(global_random_seed): + """Nominal test for all solvers and all known kernels + a custom one + + It tests + - that fit_transform is equivalent to fit+transform + - that the shapes of transforms and inverse transforms are correct + """ + rng = np.random.RandomState(global_random_seed) + X_fit = rng.random_sample((5, 4)) + X_pred = rng.random_sample((2, 4)) + + def histogram(x, y, **kwargs): + # Histogram kernel implemented as a callable. + assert kwargs == {} # no kernel_params that we didn't ask for + return np.minimum(x, y).sum() + + for eigen_solver in ("auto", "dense", "arpack", "randomized"): + for kernel in ("linear", "rbf", "poly", histogram): + # histogram kernel produces singular matrix inside linalg.solve + # XXX use a least-squares approximation? + inv = not callable(kernel) + + # transform fit data + kpca = KernelPCA( + 4, kernel=kernel, eigen_solver=eigen_solver, fit_inverse_transform=inv + ) + X_fit_transformed = kpca.fit_transform(X_fit) + X_fit_transformed2 = kpca.fit(X_fit).transform(X_fit) + assert_array_almost_equal( + np.abs(X_fit_transformed), np.abs(X_fit_transformed2) + ) + + # non-regression test: previously, gamma would be 0 by default, + # forcing all eigenvalues to 0 under the poly kernel + assert X_fit_transformed.size != 0 + + # transform new data + X_pred_transformed = kpca.transform(X_pred) + assert X_pred_transformed.shape[1] == X_fit_transformed.shape[1] + + # inverse transform + if inv: + X_pred2 = kpca.inverse_transform(X_pred_transformed) + assert X_pred2.shape == X_pred.shape + + +def test_kernel_pca_invalid_parameters(): + """Check that kPCA raises an error if the parameters are invalid + + Tests fitting inverse transform with a precomputed kernel raises a + ValueError. + """ + estimator = KernelPCA( + n_components=10, fit_inverse_transform=True, kernel="precomputed" + ) + err_ms = "Cannot fit_inverse_transform with a precomputed kernel" + with pytest.raises(ValueError, match=err_ms): + estimator.fit(np.random.randn(10, 10)) + + +def test_kernel_pca_consistent_transform(global_random_seed): + """Check robustness to mutations in the original training array + + Test that after fitting a kPCA model, it stays independent of any + mutation of the values of the original data object by relying on an + internal copy. + """ + # X_fit_ needs to retain the old, unmodified copy of X + state = np.random.RandomState(global_random_seed) + X = state.rand(10, 10) + kpca = KernelPCA(random_state=state).fit(X) + transformed1 = kpca.transform(X) + + X_copy = X.copy() + X[:, 0] = 666 + transformed2 = kpca.transform(X_copy) + assert_array_almost_equal(transformed1, transformed2) + + +def test_kernel_pca_deterministic_output(global_random_seed): + """Test that Kernel PCA produces deterministic output + + Tests that the same inputs and random state produce the same output. + """ + rng = np.random.RandomState(global_random_seed) + X = rng.rand(10, 10) + eigen_solver = ("arpack", "dense") + + for solver in eigen_solver: + transformed_X = np.zeros((20, 2)) + for i in range(20): + kpca = KernelPCA(n_components=2, eigen_solver=solver, random_state=rng) + transformed_X[i, :] = kpca.fit_transform(X)[0] + assert_allclose(transformed_X, np.tile(transformed_X[0, :], 20).reshape(20, 2)) + + +@pytest.mark.parametrize("csr_container", CSR_CONTAINERS) +def test_kernel_pca_sparse(csr_container, global_random_seed): + """Test that kPCA works on a sparse data input. + + Same test as ``test_kernel_pca except inverse_transform`` since it's not + implemented for sparse matrices. + """ + rng = np.random.RandomState(global_random_seed) + X_fit = csr_container(rng.random_sample((5, 4))) + X_pred = csr_container(rng.random_sample((2, 4))) + + for eigen_solver in ("auto", "arpack", "randomized"): + for kernel in ("linear", "rbf", "poly"): + # transform fit data + kpca = KernelPCA( + 4, + kernel=kernel, + eigen_solver=eigen_solver, + fit_inverse_transform=False, + random_state=0, + ) + X_fit_transformed = kpca.fit_transform(X_fit) + X_fit_transformed2 = kpca.fit(X_fit).transform(X_fit) + assert_array_almost_equal( + np.abs(X_fit_transformed), np.abs(X_fit_transformed2) + ) + + # transform new data + X_pred_transformed = kpca.transform(X_pred) + assert X_pred_transformed.shape[1] == X_fit_transformed.shape[1] + + # inverse transform: not available for sparse matrices + # XXX: should we raise another exception type here? For instance: + # NotImplementedError. + with pytest.raises(NotFittedError): + kpca.inverse_transform(X_pred_transformed) + + +@pytest.mark.parametrize("solver", ["auto", "dense", "arpack", "randomized"]) +@pytest.mark.parametrize("n_features", [4, 10]) +def test_kernel_pca_linear_kernel(solver, n_features, global_random_seed): + """Test that kPCA with linear kernel is equivalent to PCA for all solvers. + + KernelPCA with linear kernel should produce the same output as PCA. + """ + rng = np.random.RandomState(global_random_seed) + X_fit = rng.random_sample((5, n_features)) + X_pred = rng.random_sample((2, n_features)) + + # for a linear kernel, kernel PCA should find the same projection as PCA + # modulo the sign (direction) + # fit only the first four components: fifth is near zero eigenvalue, so + # can be trimmed due to roundoff error + n_comps = 3 if solver == "arpack" else 4 + assert_array_almost_equal( + np.abs(KernelPCA(n_comps, eigen_solver=solver).fit(X_fit).transform(X_pred)), + np.abs( + PCA(n_comps, svd_solver=solver if solver != "dense" else "full") + .fit(X_fit) + .transform(X_pred) + ), + ) + + +def test_kernel_pca_n_components(): + """Test that `n_components` is correctly taken into account for projections + + For all solvers this tests that the output has the correct shape depending + on the selected number of components. + """ + rng = np.random.RandomState(0) + X_fit = rng.random_sample((5, 4)) + X_pred = rng.random_sample((2, 4)) + + for eigen_solver in ("dense", "arpack", "randomized"): + for c in [1, 2, 4]: + kpca = KernelPCA(n_components=c, eigen_solver=eigen_solver) + shape = kpca.fit(X_fit).transform(X_pred).shape + + assert shape == (2, c) + + +def test_remove_zero_eig(): + """Check that the ``remove_zero_eig`` parameter works correctly. + + Tests that the null-space (Zero) eigenvalues are removed when + remove_zero_eig=True, whereas they are not by default. + """ + X = np.array([[1 - 1e-30, 1], [1, 1], [1, 1 - 1e-20]]) + + # n_components=None (default) => remove_zero_eig is True + kpca = KernelPCA() + Xt = kpca.fit_transform(X) + assert Xt.shape == (3, 0) + + kpca = KernelPCA(n_components=2) + Xt = kpca.fit_transform(X) + assert Xt.shape == (3, 2) + + kpca = KernelPCA(n_components=2, remove_zero_eig=True) + Xt = kpca.fit_transform(X) + assert Xt.shape == (3, 0) + + +def test_leave_zero_eig(): + """Non-regression test for issue #12141 (PR #12143) + + This test checks that fit().transform() returns the same result as + fit_transform() in case of non-removed zero eigenvalue. + """ + X_fit = np.array([[1, 1], [0, 0]]) + + # Assert that even with all np warnings on, there is no div by zero warning + with warnings.catch_warnings(): + # There might be warnings about the kernel being badly conditioned, + # but there should not be warnings about division by zero. + # (Numpy division by zero warning can have many message variants, but + # at least we know that it is a RuntimeWarning so lets check only this) + warnings.simplefilter("error", RuntimeWarning) + with np.errstate(all="warn"): + k = KernelPCA(n_components=2, remove_zero_eig=False, eigen_solver="dense") + # Fit, then transform + A = k.fit(X_fit).transform(X_fit) + # Do both at once + B = k.fit_transform(X_fit) + # Compare + assert_array_almost_equal(np.abs(A), np.abs(B)) + + +def test_kernel_pca_precomputed(global_random_seed): + """Test that kPCA works with a precomputed kernel, for all solvers""" + rng = np.random.RandomState(global_random_seed) + X_fit = rng.random_sample((5, 4)) + X_pred = rng.random_sample((2, 4)) + + for eigen_solver in ("dense", "arpack", "randomized"): + X_kpca = ( + KernelPCA(4, eigen_solver=eigen_solver, random_state=0) + .fit(X_fit) + .transform(X_pred) + ) + + X_kpca2 = ( + KernelPCA( + 4, eigen_solver=eigen_solver, kernel="precomputed", random_state=0 + ) + .fit(np.dot(X_fit, X_fit.T)) + .transform(np.dot(X_pred, X_fit.T)) + ) + + X_kpca_train = KernelPCA( + 4, eigen_solver=eigen_solver, kernel="precomputed", random_state=0 + ).fit_transform(np.dot(X_fit, X_fit.T)) + + X_kpca_train2 = ( + KernelPCA( + 4, eigen_solver=eigen_solver, kernel="precomputed", random_state=0 + ) + .fit(np.dot(X_fit, X_fit.T)) + .transform(np.dot(X_fit, X_fit.T)) + ) + + assert_array_almost_equal(np.abs(X_kpca), np.abs(X_kpca2)) + + assert_array_almost_equal(np.abs(X_kpca_train), np.abs(X_kpca_train2)) + + +@pytest.mark.parametrize("solver", ["auto", "dense", "arpack", "randomized"]) +def test_kernel_pca_precomputed_non_symmetric(solver): + """Check that the kernel centerer works. + + Tests that a non symmetric precomputed kernel is actually accepted + because the kernel centerer does its job correctly. + """ + + # a non symmetric gram matrix + K = [[1, 2], [3, 40]] + kpca = KernelPCA( + kernel="precomputed", eigen_solver=solver, n_components=1, random_state=0 + ) + kpca.fit(K) # no error + + # same test with centered kernel + Kc = [[9, -9], [-9, 9]] + kpca_c = KernelPCA( + kernel="precomputed", eigen_solver=solver, n_components=1, random_state=0 + ) + kpca_c.fit(Kc) + + # comparison between the non-centered and centered versions + assert_array_equal(kpca.eigenvectors_, kpca_c.eigenvectors_) + assert_array_equal(kpca.eigenvalues_, kpca_c.eigenvalues_) + + +def test_gridsearch_pipeline(): + """Check that kPCA works as expected in a grid search pipeline + + Test if we can do a grid-search to find parameters to separate + circles with a perceptron model. + """ + X, y = make_circles(n_samples=400, factor=0.3, noise=0.05, random_state=0) + kpca = KernelPCA(kernel="rbf", n_components=2) + pipeline = Pipeline([("kernel_pca", kpca), ("Perceptron", Perceptron(max_iter=5))]) + param_grid = dict(kernel_pca__gamma=2.0 ** np.arange(-2, 2)) + grid_search = GridSearchCV(pipeline, cv=3, param_grid=param_grid) + grid_search.fit(X, y) + assert grid_search.best_score_ == 1 + + +def test_gridsearch_pipeline_precomputed(): + """Check that kPCA works as expected in a grid search pipeline (2) + + Test if we can do a grid-search to find parameters to separate + circles with a perceptron model. This test uses a precomputed kernel. + """ + X, y = make_circles(n_samples=400, factor=0.3, noise=0.05, random_state=0) + kpca = KernelPCA(kernel="precomputed", n_components=2) + pipeline = Pipeline([("kernel_pca", kpca), ("Perceptron", Perceptron(max_iter=5))]) + param_grid = dict(Perceptron__max_iter=np.arange(1, 5)) + grid_search = GridSearchCV(pipeline, cv=3, param_grid=param_grid) + X_kernel = rbf_kernel(X, gamma=2.0) + grid_search.fit(X_kernel, y) + assert grid_search.best_score_ == 1 + + +def test_nested_circles(): + """Check that kPCA projects in a space where nested circles are separable + + Tests that 2D nested circles become separable with a perceptron when + projected in the first 2 kPCA using an RBF kernel, while raw samples + are not directly separable in the original space. + """ + X, y = make_circles(n_samples=400, factor=0.3, noise=0.05, random_state=0) + + # 2D nested circles are not linearly separable + train_score = Perceptron(max_iter=5).fit(X, y).score(X, y) + assert train_score < 0.8 + + # Project the circles data into the first 2 components of a RBF Kernel + # PCA model. + # Note that the gamma value is data dependent. If this test breaks + # and the gamma value has to be updated, the Kernel PCA example will + # have to be updated too. + kpca = KernelPCA( + kernel="rbf", n_components=2, fit_inverse_transform=True, gamma=2.0 + ) + X_kpca = kpca.fit_transform(X) + + # The data is perfectly linearly separable in that space + train_score = Perceptron(max_iter=5).fit(X_kpca, y).score(X_kpca, y) + assert train_score == 1.0 + + +def test_kernel_conditioning(): + """Check that ``_check_psd_eigenvalues`` is correctly called in kPCA + + Non-regression test for issue #12140 (PR #12145). + """ + + # create a pathological X leading to small non-zero eigenvalue + X = [[5, 1], [5 + 1e-8, 1e-8], [5 + 1e-8, 0]] + kpca = KernelPCA(kernel="linear", n_components=2, fit_inverse_transform=True) + kpca.fit(X) + + # check that the small non-zero eigenvalue was correctly set to zero + assert kpca.eigenvalues_.min() == 0 + assert np.all(kpca.eigenvalues_ == _check_psd_eigenvalues(kpca.eigenvalues_)) + + +@pytest.mark.parametrize("solver", ["auto", "dense", "arpack", "randomized"]) +def test_precomputed_kernel_not_psd(solver): + """Check how KernelPCA works with non-PSD kernels depending on n_components + + Tests for all methods what happens with a non PSD gram matrix (this + can happen in an isomap scenario, or with custom kernel functions, or + maybe with ill-posed datasets). + + When ``n_component`` is large enough to capture a negative eigenvalue, an + error should be raised. Otherwise, KernelPCA should run without error + since the negative eigenvalues are not selected. + """ + + # a non PSD kernel with large eigenvalues, already centered + # it was captured from an isomap call and multiplied by 100 for compacity + K = [ + [4.48, -1.0, 8.07, 2.33, 2.33, 2.33, -5.76, -12.78], + [-1.0, -6.48, 4.5, -1.24, -1.24, -1.24, -0.81, 7.49], + [8.07, 4.5, 15.48, 2.09, 2.09, 2.09, -11.1, -23.23], + [2.33, -1.24, 2.09, 4.0, -3.65, -3.65, 1.02, -0.9], + [2.33, -1.24, 2.09, -3.65, 4.0, -3.65, 1.02, -0.9], + [2.33, -1.24, 2.09, -3.65, -3.65, 4.0, 1.02, -0.9], + [-5.76, -0.81, -11.1, 1.02, 1.02, 1.02, 4.86, 9.75], + [-12.78, 7.49, -23.23, -0.9, -0.9, -0.9, 9.75, 21.46], + ] + # this gram matrix has 5 positive eigenvalues and 3 negative ones + # [ 52.72, 7.65, 7.65, 5.02, 0. , -0. , -6.13, -15.11] + + # 1. ask for enough components to get a significant negative one + kpca = KernelPCA(kernel="precomputed", eigen_solver=solver, n_components=7) + # make sure that the appropriate error is raised + with pytest.raises(ValueError, match="There are significant negative eigenvalues"): + kpca.fit(K) + + # 2. ask for a small enough n_components to get only positive ones + kpca = KernelPCA(kernel="precomputed", eigen_solver=solver, n_components=2) + if solver == "randomized": + # the randomized method is still inconsistent with the others on this + # since it selects the eigenvalues based on the largest 2 modules, not + # on the largest 2 values. + # + # At least we can ensure that we return an error instead of returning + # the wrong eigenvalues + with pytest.raises( + ValueError, match="There are significant negative eigenvalues" + ): + kpca.fit(K) + else: + # general case: make sure that it works + kpca.fit(K) + + +@pytest.mark.parametrize("n_components", [4, 10, 20]) +def test_kernel_pca_solvers_equivalence(n_components): + """Check that 'dense' 'arpack' & 'randomized' solvers give similar results""" + + # Generate random data + n_train, n_test = 1_000, 100 + X, _ = make_circles( + n_samples=(n_train + n_test), factor=0.3, noise=0.05, random_state=0 + ) + X_fit, X_pred = X[:n_train, :], X[n_train:, :] + + # reference (full) + ref_pred = ( + KernelPCA(n_components, eigen_solver="dense", random_state=0) + .fit(X_fit) + .transform(X_pred) + ) + + # arpack + a_pred = ( + KernelPCA(n_components, eigen_solver="arpack", random_state=0) + .fit(X_fit) + .transform(X_pred) + ) + # check that the result is still correct despite the approx + assert_array_almost_equal(np.abs(a_pred), np.abs(ref_pred)) + + # randomized + r_pred = ( + KernelPCA(n_components, eigen_solver="randomized", random_state=0) + .fit(X_fit) + .transform(X_pred) + ) + # check that the result is still correct despite the approximation + assert_array_almost_equal(np.abs(r_pred), np.abs(ref_pred)) + + +def test_kernel_pca_inverse_transform_reconstruction(): + """Test if the reconstruction is a good approximation. + + Note that in general it is not possible to get an arbitrarily good + reconstruction because of kernel centering that does not + preserve all the information of the original data. + """ + X, *_ = make_blobs(n_samples=100, n_features=4, random_state=0) + + kpca = KernelPCA( + n_components=20, kernel="rbf", fit_inverse_transform=True, alpha=1e-3 + ) + X_trans = kpca.fit_transform(X) + X_reconst = kpca.inverse_transform(X_trans) + assert np.linalg.norm(X - X_reconst) / np.linalg.norm(X) < 1e-1 + + +def test_kernel_pca_raise_not_fitted_error(): + X = np.random.randn(15).reshape(5, 3) + kpca = KernelPCA() + kpca.fit(X) + with pytest.raises(NotFittedError): + kpca.inverse_transform(X) + + +def test_32_64_decomposition_shape(): + """Test that the decomposition is similar for 32 and 64 bits data + + Non regression test for + https://github.com/scikit-learn/scikit-learn/issues/18146 + """ + X, y = make_blobs( + n_samples=30, centers=[[0, 0, 0], [1, 1, 1]], random_state=0, cluster_std=0.1 + ) + X = StandardScaler().fit_transform(X) + X -= X.min() + + # Compare the shapes (corresponds to the number of non-zero eigenvalues) + kpca = KernelPCA() + assert kpca.fit_transform(X).shape == kpca.fit_transform(X.astype(np.float32)).shape + + +def test_kernel_pca_feature_names_out(): + """Check feature names out for KernelPCA.""" + X, *_ = make_blobs(n_samples=100, n_features=4, random_state=0) + kpca = KernelPCA(n_components=2).fit(X) + + names = kpca.get_feature_names_out() + assert_array_equal([f"kernelpca{i}" for i in range(2)], names) + + +def test_kernel_pca_inverse_correct_gamma(global_random_seed): + """Check that gamma is set correctly when not provided. + + Non-regression test for #26280 + """ + rng = np.random.RandomState(global_random_seed) + X = rng.random_sample((5, 4)) + + kwargs = { + "n_components": 2, + "random_state": rng, + "fit_inverse_transform": True, + "kernel": "rbf", + } + + expected_gamma = 1 / X.shape[1] + kpca1 = KernelPCA(gamma=None, **kwargs).fit(X) + kpca2 = KernelPCA(gamma=expected_gamma, **kwargs).fit(X) + + assert kpca1.gamma_ == expected_gamma + assert kpca2.gamma_ == expected_gamma + + X1_recon = kpca1.inverse_transform(kpca1.transform(X)) + X2_recon = kpca2.inverse_transform(kpca1.transform(X)) + + assert_allclose(X1_recon, X2_recon) + + +def test_kernel_pca_pandas_output(): + """Check that KernelPCA works with pandas output when the solver is arpack. + + Non-regression test for: + https://github.com/scikit-learn/scikit-learn/issues/27579 + """ + pytest.importorskip("pandas") + X, _ = load_iris(as_frame=True, return_X_y=True) + with sklearn.config_context(transform_output="pandas"): + KernelPCA(n_components=2, eigen_solver="arpack").fit_transform(X) diff --git a/shared/package-files/f2/f21ddd3fdbc196e8c08af0662e3ab8ab4de5b7b2bf731608aa0cac3201a334b0/cdist_ops.h b/shared/package-files/f2/f21ddd3fdbc196e8c08af0662e3ab8ab4de5b7b2bf731608aa0cac3201a334b0/cdist_ops.h new file mode 100644 index 0000000000000000000000000000000000000000..9ed688fee794747e93e232b5c32d59d20c9acf20 --- /dev/null +++ b/shared/package-files/f2/f21ddd3fdbc196e8c08af0662e3ab8ab4de5b7b2bf731608aa0cac3201a334b0/cdist_ops.h @@ -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 cdist { + using schema = at::Tensor (const at::Tensor &, const at::Tensor &, double, c10::optional); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::cdist") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "cdist(Tensor x1, Tensor x2, float p=2, int? compute_mode=None) -> Tensor") + static at::Tensor call(const at::Tensor & x1, const at::Tensor & x2, double p, c10::optional compute_mode); + static at::Tensor redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & x1, const at::Tensor & x2, double p, c10::optional compute_mode); +}; + +}} // namespace at::_ops diff --git a/shared/package-files/f2/f21e47afea96ce7979f0497581cb9a12625bda285527c703e9f3fc78a87830ec/normal_cpu_dispatch.h b/shared/package-files/f2/f21e47afea96ce7979f0497581cb9a12625bda285527c703e9f3fc78a87830ec/normal_cpu_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..cdc0aa4b1cb3afa0e32d0e4660961d2885a89dcb --- /dev/null +++ b/shared/package-files/f2/f21e47afea96ce7979f0497581cb9a12625bda285527c703e9f3fc78a87830ec/normal_cpu_dispatch.h @@ -0,0 +1,32 @@ +#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 & normal_(at::Tensor & self, double mean=0, double std=1, c10::optional generator=c10::nullopt); +TORCH_API at::Tensor normal(const at::Tensor & mean, double std=1, c10::optional generator=c10::nullopt); +TORCH_API at::Tensor & normal_out(at::Tensor & out, const at::Tensor & mean, double std=1, c10::optional generator=c10::nullopt); +TORCH_API at::Tensor & normal_outf(const at::Tensor & mean, double std, c10::optional generator, at::Tensor & out); +TORCH_API at::Tensor normal(double mean, const at::Tensor & std, c10::optional generator=c10::nullopt); +TORCH_API at::Tensor & normal_out(at::Tensor & out, double mean, const at::Tensor & std, c10::optional generator=c10::nullopt); +TORCH_API at::Tensor & normal_outf(double mean, const at::Tensor & std, c10::optional generator, at::Tensor & out); +TORCH_API at::Tensor normal(const at::Tensor & mean, const at::Tensor & std, c10::optional generator=c10::nullopt); +TORCH_API at::Tensor & normal_out(at::Tensor & out, const at::Tensor & mean, const at::Tensor & std, c10::optional generator=c10::nullopt); +TORCH_API at::Tensor & normal_outf(const at::Tensor & mean, const at::Tensor & std, c10::optional generator, at::Tensor & out); + +} // namespace cpu +} // namespace at diff --git a/shared/package-files/f2/f226fc9368170855017091e3c0b2daacd086954f4f713ff5077fd03b65514cfe/_adaptive_avg_pool3d_cpu_dispatch.h b/shared/package-files/f2/f226fc9368170855017091e3c0b2daacd086954f4f713ff5077fd03b65514cfe/_adaptive_avg_pool3d_cpu_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..2e1380282531122ab0d813d32e5dd5bd8ec1fc01 --- /dev/null +++ b/shared/package-files/f2/f226fc9368170855017091e3c0b2daacd086954f4f713ff5077fd03b65514cfe/_adaptive_avg_pool3d_cpu_dispatch.h @@ -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 at::Tensor _adaptive_avg_pool3d(const at::Tensor & self, at::IntArrayRef output_size); +TORCH_API at::Tensor _adaptive_avg_pool3d_symint(const at::Tensor & self, c10::SymIntArrayRef output_size); + +} // namespace cpu +} // namespace at diff --git a/shared/package-files/f2/f2281be59cebab177dacd0288d7a63839d89d289e109dfabce8c5790041e5e8b/hp2645 b/shared/package-files/f2/f2281be59cebab177dacd0288d7a63839d89d289e109dfabce8c5790041e5e8b/hp2645 new file mode 100644 index 0000000000000000000000000000000000000000..9cff16b981cb80afc710ca1eee53166579e0093d Binary files /dev/null and b/shared/package-files/f2/f2281be59cebab177dacd0288d7a63839d89d289e109dfabce8c5790041e5e8b/hp2645 differ diff --git a/shared/package-files/f2/f2281be59cebab177dacd0288d7a63839d89d289e109dfabce8c5790041e5e8b/hp45 b/shared/package-files/f2/f2281be59cebab177dacd0288d7a63839d89d289e109dfabce8c5790041e5e8b/hp45 new file mode 100644 index 0000000000000000000000000000000000000000..9cff16b981cb80afc710ca1eee53166579e0093d Binary files /dev/null and b/shared/package-files/f2/f2281be59cebab177dacd0288d7a63839d89d289e109dfabce8c5790041e5e8b/hp45 differ diff --git a/shared/package-files/f2/f230e439ac1eaac32dc34c7113e4cc7ea29517e10e8596043779236acc3f7fdc/cached_db.pyi b/shared/package-files/f2/f230e439ac1eaac32dc34c7113e4cc7ea29517e10e8596043779236acc3f7fdc/cached_db.pyi new file mode 100644 index 0000000000000000000000000000000000000000..b49ef90670a2e2ece8cd694eed3a40b34f18f7df --- /dev/null +++ b/shared/package-files/f2/f230e439ac1eaac32dc34c7113e4cc7ea29517e10e8596043779236acc3f7fdc/cached_db.pyi @@ -0,0 +1,11 @@ +from typing import Any, Optional + +from django.contrib.sessions.backends.db import SessionStore as DBStore + +KEY_PREFIX: str + +class SessionStore(DBStore): + cache_key_prefix: Any = ... + def __init__(self, session_key: Optional[str] = ...) -> None: ... + @property + def cache_key(self) -> str: ... diff --git a/shared/package-files/f2/f237a4f4725bdbe644b5877c637d32b99633922b24a73b03ebaef66277e4d30c/version.py b/shared/package-files/f2/f237a4f4725bdbe644b5877c637d32b99633922b24a73b03ebaef66277e4d30c/version.py new file mode 100644 index 0000000000000000000000000000000000000000..7eb57d32ce3e811d4460b1b9a93513a986347e25 --- /dev/null +++ b/shared/package-files/f2/f237a4f4725bdbe644b5877c637d32b99633922b24a73b03ebaef66277e4d30c/version.py @@ -0,0 +1,461 @@ +"""Extract reference documentation from the pypa/packaging source tree. + +In the process of copying, some unused methods / classes were removed. +These include: + +- parse() +- anything involving LegacyVersion + +This software is made available under the terms of *either* of the licenses +found in LICENSE.APACHE or LICENSE.BSD. Contributions to this software is made +under the terms of *both* these licenses. + +Vendored from: +- https://github.com/pypa/packaging/ +- commit ba07d8287b4554754ac7178d177033ea3f75d489 (09/09/2021) +""" + + +# 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. + + +import collections +import itertools +import re +from typing import Callable, Optional, SupportsInt, Tuple, Union + +__all__ = ["Version", "InvalidVersion", "VERSION_PATTERN"] + + +# Vendored from https://github.com/pypa/packaging/blob/main/packaging/_structures.py + +class InfinityType: + def __repr__(self) -> str: + return "Infinity" + + def __hash__(self) -> int: + return hash(repr(self)) + + def __lt__(self, other: object) -> bool: + return False + + def __le__(self, other: object) -> bool: + return False + + def __eq__(self, other: object) -> bool: + return isinstance(other, self.__class__) + + def __ne__(self, other: object) -> bool: + return not isinstance(other, self.__class__) + + def __gt__(self, other: object) -> bool: + return True + + def __ge__(self, other: object) -> bool: + return True + + def __neg__(self: object) -> "NegativeInfinityType": + return NegativeInfinity + + +Infinity = InfinityType() + + +class NegativeInfinityType: + def __repr__(self) -> str: + return "-Infinity" + + def __hash__(self) -> int: + return hash(repr(self)) + + def __lt__(self, other: object) -> bool: + return True + + def __le__(self, other: object) -> bool: + return True + + def __eq__(self, other: object) -> bool: + return isinstance(other, self.__class__) + + def __ne__(self, other: object) -> bool: + return not isinstance(other, self.__class__) + + def __gt__(self, other: object) -> bool: + return False + + def __ge__(self, other: object) -> bool: + return False + + def __neg__(self: object) -> InfinityType: + return Infinity + + +NegativeInfinity = NegativeInfinityType() + + +# Vendored from https://github.com/pypa/packaging/blob/main/packaging/version.py + +InfiniteTypes = Union[InfinityType, NegativeInfinityType] +PrePostDevType = Union[InfiniteTypes, Tuple[str, int]] +SubLocalType = Union[InfiniteTypes, int, str] +LocalType = Union[ + NegativeInfinityType, + Tuple[ + Union[ + SubLocalType, + Tuple[SubLocalType, str], + Tuple[NegativeInfinityType, SubLocalType], + ], + ..., + ], +] +CmpKey = Tuple[ + int, Tuple[int, ...], PrePostDevType, PrePostDevType, PrePostDevType, LocalType +] +LegacyCmpKey = Tuple[int, Tuple[str, ...]] +VersionComparisonMethod = Callable[ + [Union[CmpKey, LegacyCmpKey], Union[CmpKey, LegacyCmpKey]], bool +] + +_Version = collections.namedtuple( + "_Version", ["epoch", "release", "dev", "pre", "post", "local"] +) + + + +class InvalidVersion(ValueError): + """ + An invalid version was found, users should refer to PEP 440. + """ + + +class _BaseVersion: + _key: Union[CmpKey, LegacyCmpKey] + + def __hash__(self) -> int: + return hash(self._key) + + # Please keep the duplicated `isinstance` check + # in the six comparisons hereunder + # unless you find a way to avoid adding overhead function calls. + def __lt__(self, other: "_BaseVersion") -> bool: + if not isinstance(other, _BaseVersion): + return NotImplemented + + return self._key < other._key + + def __le__(self, other: "_BaseVersion") -> bool: + if not isinstance(other, _BaseVersion): + return NotImplemented + + return self._key <= other._key + + def __eq__(self, other: object) -> bool: + if not isinstance(other, _BaseVersion): + return NotImplemented + + return self._key == other._key + + def __ge__(self, other: "_BaseVersion") -> bool: + if not isinstance(other, _BaseVersion): + return NotImplemented + + return self._key >= other._key + + def __gt__(self, other: "_BaseVersion") -> bool: + if not isinstance(other, _BaseVersion): + return NotImplemented + + return self._key > other._key + + def __ne__(self, other: object) -> bool: + if not isinstance(other, _BaseVersion): + return NotImplemented + + return self._key != other._key + + +# Deliberately not anchored to the start and end of the string, to make it +# easier for 3rd party code to reuse +VERSION_PATTERN = r""" + v? + (?: + (?:(?P[0-9]+)!)? # epoch + (?P[0-9]+(?:\.[0-9]+)*) # release segment + (?P
                                          # pre-release
+            [-_\.]?
+            (?P(a|b|c|rc|alpha|beta|pre|preview))
+            [-_\.]?
+            (?P[0-9]+)?
+        )?
+        (?P                                         # post release
+            (?:-(?P[0-9]+))
+            |
+            (?:
+                [-_\.]?
+                (?Ppost|rev|r)
+                [-_\.]?
+                (?P[0-9]+)?
+            )
+        )?
+        (?P                                          # dev release
+            [-_\.]?
+            (?Pdev)
+            [-_\.]?
+            (?P[0-9]+)?
+        )?
+    )
+    (?:\+(?P[a-z0-9]+(?:[-_\.][a-z0-9]+)*))?       # local version
+"""
+
+
+class Version(_BaseVersion):
+
+    _regex = re.compile(r"^\s*" + VERSION_PATTERN + r"\s*$", re.VERBOSE | re.IGNORECASE)
+
+    def __init__(self, version: str) -> None:
+
+        # Validate the version and parse it into pieces
+        match = self._regex.search(version)
+        if not match:
+            raise InvalidVersion(f"Invalid version: '{version}'")
+
+        # Store the parsed out pieces of the version
+        self._version = _Version(
+            epoch=int(match.group("epoch")) if match.group("epoch") else 0,
+            release=tuple(int(i) for i in match.group("release").split(".")),
+            pre=_parse_letter_version(match.group("pre_l"), match.group("pre_n")),
+            post=_parse_letter_version(
+                match.group("post_l"), match.group("post_n1") or match.group("post_n2")
+            ),
+            dev=_parse_letter_version(match.group("dev_l"), match.group("dev_n")),
+            local=_parse_local_version(match.group("local")),
+        )
+
+        # Generate a key which will be used for sorting
+        self._key = _cmpkey(
+            self._version.epoch,
+            self._version.release,
+            self._version.pre,
+            self._version.post,
+            self._version.dev,
+            self._version.local,
+        )
+
+    def __repr__(self) -> str:
+        return f""
+
+    def __str__(self) -> str:
+        parts = []
+
+        # Epoch
+        if self.epoch != 0:
+            parts.append(f"{self.epoch}!")
+
+        # Release segment
+        parts.append(".".join(str(x) for x in self.release))
+
+        # Pre-release
+        if self.pre is not None:
+            parts.append("".join(str(x) for x in self.pre))
+
+        # Post-release
+        if self.post is not None:
+            parts.append(f".post{self.post}")
+
+        # Development release
+        if self.dev is not None:
+            parts.append(f".dev{self.dev}")
+
+        # Local version segment
+        if self.local is not None:
+            parts.append(f"+{self.local}")
+
+        return "".join(parts)
+
+    @property
+    def epoch(self) -> int:
+        _epoch: int = self._version.epoch
+        return _epoch
+
+    @property
+    def release(self) -> Tuple[int, ...]:
+        _release: Tuple[int, ...] = self._version.release
+        return _release
+
+    @property
+    def pre(self) -> Optional[Tuple[str, int]]:
+        _pre: Optional[Tuple[str, int]] = self._version.pre
+        return _pre
+
+    @property
+    def post(self) -> Optional[int]:
+        return self._version.post[1] if self._version.post else None
+
+    @property
+    def dev(self) -> Optional[int]:
+        return self._version.dev[1] if self._version.dev else None
+
+    @property
+    def local(self) -> Optional[str]:
+        if self._version.local:
+            return ".".join(str(x) for x in self._version.local)
+        else:
+            return None
+
+    @property
+    def public(self) -> str:
+        return str(self).split("+", 1)[0]
+
+    @property
+    def base_version(self) -> str:
+        parts = []
+
+        # Epoch
+        if self.epoch != 0:
+            parts.append(f"{self.epoch}!")
+
+        # Release segment
+        parts.append(".".join(str(x) for x in self.release))
+
+        return "".join(parts)
+
+    @property
+    def is_prerelease(self) -> bool:
+        return self.dev is not None or self.pre is not None
+
+    @property
+    def is_postrelease(self) -> bool:
+        return self.post is not None
+
+    @property
+    def is_devrelease(self) -> bool:
+        return self.dev is not None
+
+    @property
+    def major(self) -> int:
+        return self.release[0] if len(self.release) >= 1 else 0
+
+    @property
+    def minor(self) -> int:
+        return self.release[1] if len(self.release) >= 2 else 0
+
+    @property
+    def micro(self) -> int:
+        return self.release[2] if len(self.release) >= 3 else 0
+
+
+def _parse_letter_version(
+    letter: str, number: Union[str, bytes, SupportsInt]
+) -> Optional[Tuple[str, int]]:
+
+    if letter:
+        # We consider there to be an implicit 0 in a pre-release if there is
+        # not a numeral associated with it.
+        if number is None:
+            number = 0
+
+        # We normalize any letters to their lower case form
+        letter = letter.lower()
+
+        # We consider some words to be alternate spellings of other words and
+        # in those cases we want to normalize the spellings to our preferred
+        # spelling.
+        if letter == "alpha":
+            letter = "a"
+        elif letter == "beta":
+            letter = "b"
+        elif letter in ["c", "pre", "preview"]:
+            letter = "rc"
+        elif letter in ["rev", "r"]:
+            letter = "post"
+
+        return letter, int(number)
+    if not letter and number:
+        # We assume if we are given a number, but we are not given a letter
+        # then this is using the implicit post release syntax (e.g. 1.0-1)
+        letter = "post"
+
+        return letter, int(number)
+
+    return None
+
+
+_local_version_separators = re.compile(r"[\._-]")
+
+
+def _parse_local_version(local: str) -> Optional[LocalType]:
+    """
+    Takes a string like abc.1.twelve and turns it into ("abc", 1, "twelve").
+    """
+    if local is not None:
+        return tuple(
+            part.lower() if not part.isdigit() else int(part)
+            for part in _local_version_separators.split(local)
+        )
+    return None
+
+
+def _cmpkey(
+    epoch: int,
+    release: Tuple[int, ...],
+    pre: Optional[Tuple[str, int]],
+    post: Optional[Tuple[str, int]],
+    dev: Optional[Tuple[str, int]],
+    local: Optional[Tuple[SubLocalType]],
+) -> CmpKey:
+
+    # When we compare a release version, we want to compare it with all of the
+    # trailing zeros removed. So we'll use a reverse the list, drop all the now
+    # leading zeros until we come to something non zero, then take the rest
+    # re-reverse it back into the correct order and make it a tuple and use
+    # that for our sorting key.
+    _release = tuple(
+        reversed(list(itertools.dropwhile(lambda x: x == 0, reversed(release))))
+    )
+
+    # We need to "trick" the sorting algorithm to put 1.0.dev0 before 1.0a0.
+    # We'll do this by abusing the pre segment, but we _only_ want to do this
+    # if there is not a pre or a post segment. If we have one of those then
+    # the normal sorting rules will handle this case correctly.
+    if pre is None and post is None and dev is not None:
+        _pre: PrePostDevType = NegativeInfinity
+    # Versions without a pre-release (except as noted above) should sort after
+    # those with one.
+    elif pre is None:
+        _pre = Infinity
+    else:
+        _pre = pre
+
+    # Versions without a post segment should sort before those with one.
+    if post is None:
+        _post: PrePostDevType = NegativeInfinity
+
+    else:
+        _post = post
+
+    # Versions without a development segment should sort after those with one.
+    if dev is None:
+        _dev: PrePostDevType = Infinity
+
+    else:
+        _dev = dev
+
+    if local is None:
+        # Versions without a local segment should sort before those with one.
+        _local: LocalType = NegativeInfinity
+    else:
+        # Versions with a local segment need that segment parsed to implement
+        # the sorting rules in PEP440.
+        # - Alpha numeric segments sort before numeric segments
+        # - Alpha numeric segments sort lexicographically
+        # - Numeric segments sort numerically
+        # - Shorter versions sort before longer versions when the prefixes
+        #   match exactly
+        _local = tuple(
+            (i, "") if isinstance(i, int) else (NegativeInfinity, i) for i in local
+        )
+
+    return epoch, _release, _pre, _post, _dev, _local
diff --git a/shared/package-files/f2/f2382bd03653c7167b0a1f4fcb041a6fec53acfbc4feab4635779d2a05efa375/avg_pool2d_backward_cuda_dispatch.h b/shared/package-files/f2/f2382bd03653c7167b0a1f4fcb041a6fec53acfbc4feab4635779d2a05efa375/avg_pool2d_backward_cuda_dispatch.h
new file mode 100644
index 0000000000000000000000000000000000000000..297c0c1338524fc091bb303869cf52fc4b776a61
--- /dev/null
+++ b/shared/package-files/f2/f2382bd03653c7167b0a1f4fcb041a6fec53acfbc4feab4635779d2a05efa375/avg_pool2d_backward_cuda_dispatch.h
@@ -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_pool2d_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_pool2d_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_pool2d_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/f2/f23a9541f2eb13900abe7ee228c5fb2f919b7bb7b8aefe8873c327369ecd00b2/test_hist_box_by.py b/shared/package-files/f2/f23a9541f2eb13900abe7ee228c5fb2f919b7bb7b8aefe8873c327369ecd00b2/test_hist_box_by.py
new file mode 100644
index 0000000000000000000000000000000000000000..a9250fa8347cc04fa34c28b016e1fb27d837284f
--- /dev/null
+++ b/shared/package-files/f2/f23a9541f2eb13900abe7ee228c5fb2f919b7bb7b8aefe8873c327369ecd00b2/test_hist_box_by.py
@@ -0,0 +1,342 @@
+import re
+
+import numpy as np
+import pytest
+
+from pandas import DataFrame
+import pandas._testing as tm
+from pandas.tests.plotting.common import (
+    _check_axes_shape,
+    _check_plot_works,
+    get_x_axis,
+    get_y_axis,
+)
+
+pytest.importorskip("matplotlib")
+
+
+@pytest.fixture
+def hist_df():
+    df = DataFrame(
+        np.random.default_rng(2).standard_normal((30, 2)), columns=["A", "B"]
+    )
+    df["C"] = np.random.default_rng(2).choice(["a", "b", "c"], 30)
+    df["D"] = np.random.default_rng(2).choice(["a", "b", "c"], 30)
+    return df
+
+
+class TestHistWithBy:
+    @pytest.mark.slow
+    @pytest.mark.parametrize(
+        "by, column, titles, legends",
+        [
+            ("C", "A", ["a", "b", "c"], [["A"]] * 3),
+            ("C", ["A", "B"], ["a", "b", "c"], [["A", "B"]] * 3),
+            ("C", None, ["a", "b", "c"], [["A", "B"]] * 3),
+            (
+                ["C", "D"],
+                "A",
+                [
+                    "(a, a)",
+                    "(b, b)",
+                    "(c, c)",
+                ],
+                [["A"]] * 3,
+            ),
+            (
+                ["C", "D"],
+                ["A", "B"],
+                [
+                    "(a, a)",
+                    "(b, b)",
+                    "(c, c)",
+                ],
+                [["A", "B"]] * 3,
+            ),
+            (
+                ["C", "D"],
+                None,
+                [
+                    "(a, a)",
+                    "(b, b)",
+                    "(c, c)",
+                ],
+                [["A", "B"]] * 3,
+            ),
+        ],
+    )
+    def test_hist_plot_by_argument(self, by, column, titles, legends, hist_df):
+        # GH 15079
+        axes = _check_plot_works(
+            hist_df.plot.hist, column=column, by=by, default_axes=True
+        )
+        result_titles = [ax.get_title() for ax in axes]
+        result_legends = [
+            [legend.get_text() for legend in ax.get_legend().texts] for ax in axes
+        ]
+
+        assert result_legends == legends
+        assert result_titles == titles
+
+    @pytest.mark.parametrize(
+        "by, column, titles, legends",
+        [
+            (0, "A", ["a", "b", "c"], [["A"]] * 3),
+            (0, None, ["a", "b", "c"], [["A", "B"]] * 3),
+            (
+                [0, "D"],
+                "A",
+                [
+                    "(a, a)",
+                    "(b, b)",
+                    "(c, c)",
+                ],
+                [["A"]] * 3,
+            ),
+        ],
+    )
+    def test_hist_plot_by_0(self, by, column, titles, legends, hist_df):
+        # GH 15079
+        df = hist_df.copy()
+        df = df.rename(columns={"C": 0})
+
+        axes = _check_plot_works(df.plot.hist, default_axes=True, column=column, by=by)
+        result_titles = [ax.get_title() for ax in axes]
+        result_legends = [
+            [legend.get_text() for legend in ax.get_legend().texts] for ax in axes
+        ]
+
+        assert result_legends == legends
+        assert result_titles == titles
+
+    @pytest.mark.parametrize(
+        "by, column",
+        [
+            ([], ["A"]),
+            ([], ["A", "B"]),
+            ((), None),
+            ((), ["A", "B"]),
+        ],
+    )
+    def test_hist_plot_empty_list_string_tuple_by(self, by, column, hist_df):
+        # GH 15079
+        msg = "No group keys passed"
+        with pytest.raises(ValueError, match=msg):
+            _check_plot_works(
+                hist_df.plot.hist, default_axes=True, column=column, by=by
+            )
+
+    @pytest.mark.slow
+    @pytest.mark.parametrize(
+        "by, column, layout, axes_num",
+        [
+            (["C"], "A", (2, 2), 3),
+            ("C", "A", (2, 2), 3),
+            (["C"], ["A"], (1, 3), 3),
+            ("C", None, (3, 1), 3),
+            ("C", ["A", "B"], (3, 1), 3),
+            (["C", "D"], "A", (9, 1), 3),
+            (["C", "D"], "A", (3, 3), 3),
+            (["C", "D"], ["A"], (5, 2), 3),
+            (["C", "D"], ["A", "B"], (9, 1), 3),
+            (["C", "D"], None, (9, 1), 3),
+            (["C", "D"], ["A", "B"], (5, 2), 3),
+        ],
+    )
+    def test_hist_plot_layout_with_by(self, by, column, layout, axes_num, hist_df):
+        # GH 15079
+        # _check_plot_works adds an ax so catch warning. see GH #13188
+        with tm.assert_produces_warning(UserWarning, check_stacklevel=False):
+            axes = _check_plot_works(
+                hist_df.plot.hist, column=column, by=by, layout=layout
+            )
+        _check_axes_shape(axes, axes_num=axes_num, layout=layout)
+
+    @pytest.mark.parametrize(
+        "msg, by, layout",
+        [
+            ("larger than required size", ["C", "D"], (1, 1)),
+            (re.escape("Layout must be a tuple of (rows, columns)"), "C", (1,)),
+            ("At least one dimension of layout must be positive", "C", (-1, -1)),
+        ],
+    )
+    def test_hist_plot_invalid_layout_with_by_raises(self, msg, by, layout, hist_df):
+        # GH 15079, test if error is raised when invalid layout is given
+
+        with pytest.raises(ValueError, match=msg):
+            hist_df.plot.hist(column=["A", "B"], by=by, layout=layout)
+
+    @pytest.mark.slow
+    def test_axis_share_x_with_by(self, hist_df):
+        # GH 15079
+        ax1, ax2, ax3 = hist_df.plot.hist(column="A", by="C", sharex=True)
+
+        # share x
+        assert get_x_axis(ax1).joined(ax1, ax2)
+        assert get_x_axis(ax2).joined(ax1, ax2)
+        assert get_x_axis(ax3).joined(ax1, ax3)
+        assert get_x_axis(ax3).joined(ax2, ax3)
+
+        # don't share y
+        assert not get_y_axis(ax1).joined(ax1, ax2)
+        assert not get_y_axis(ax2).joined(ax1, ax2)
+        assert not get_y_axis(ax3).joined(ax1, ax3)
+        assert not get_y_axis(ax3).joined(ax2, ax3)
+
+    @pytest.mark.slow
+    def test_axis_share_y_with_by(self, hist_df):
+        # GH 15079
+        ax1, ax2, ax3 = hist_df.plot.hist(column="A", by="C", sharey=True)
+
+        # share y
+        assert get_y_axis(ax1).joined(ax1, ax2)
+        assert get_y_axis(ax2).joined(ax1, ax2)
+        assert get_y_axis(ax3).joined(ax1, ax3)
+        assert get_y_axis(ax3).joined(ax2, ax3)
+
+        # don't share x
+        assert not get_x_axis(ax1).joined(ax1, ax2)
+        assert not get_x_axis(ax2).joined(ax1, ax2)
+        assert not get_x_axis(ax3).joined(ax1, ax3)
+        assert not get_x_axis(ax3).joined(ax2, ax3)
+
+    @pytest.mark.parametrize("figsize", [(12, 8), (20, 10)])
+    def test_figure_shape_hist_with_by(self, figsize, hist_df):
+        # GH 15079
+        axes = hist_df.plot.hist(column="A", by="C", figsize=figsize)
+        _check_axes_shape(axes, axes_num=3, figsize=figsize)
+
+
+class TestBoxWithBy:
+    @pytest.mark.parametrize(
+        "by, column, titles, xticklabels",
+        [
+            ("C", "A", ["A"], [["a", "b", "c"]]),
+            (
+                ["C", "D"],
+                "A",
+                ["A"],
+                [
+                    [
+                        "(a, a)",
+                        "(b, b)",
+                        "(c, c)",
+                    ]
+                ],
+            ),
+            ("C", ["A", "B"], ["A", "B"], [["a", "b", "c"]] * 2),
+            (
+                ["C", "D"],
+                ["A", "B"],
+                ["A", "B"],
+                [
+                    [
+                        "(a, a)",
+                        "(b, b)",
+                        "(c, c)",
+                    ]
+                ]
+                * 2,
+            ),
+            (["C"], None, ["A", "B"], [["a", "b", "c"]] * 2),
+        ],
+    )
+    def test_box_plot_by_argument(self, by, column, titles, xticklabels, hist_df):
+        # GH 15079
+        axes = _check_plot_works(
+            hist_df.plot.box, default_axes=True, column=column, by=by
+        )
+        result_titles = [ax.get_title() for ax in axes]
+        result_xticklabels = [
+            [label.get_text() for label in ax.get_xticklabels()] for ax in axes
+        ]
+
+        assert result_xticklabels == xticklabels
+        assert result_titles == titles
+
+    @pytest.mark.parametrize(
+        "by, column, titles, xticklabels",
+        [
+            (0, "A", ["A"], [["a", "b", "c"]]),
+            (
+                [0, "D"],
+                "A",
+                ["A"],
+                [
+                    [
+                        "(a, a)",
+                        "(b, b)",
+                        "(c, c)",
+                    ]
+                ],
+            ),
+            (0, None, ["A", "B"], [["a", "b", "c"]] * 2),
+        ],
+    )
+    def test_box_plot_by_0(self, by, column, titles, xticklabels, hist_df):
+        # GH 15079
+        df = hist_df.copy()
+        df = df.rename(columns={"C": 0})
+
+        axes = _check_plot_works(df.plot.box, default_axes=True, column=column, by=by)
+        result_titles = [ax.get_title() for ax in axes]
+        result_xticklabels = [
+            [label.get_text() for label in ax.get_xticklabels()] for ax in axes
+        ]
+
+        assert result_xticklabels == xticklabels
+        assert result_titles == titles
+
+    @pytest.mark.parametrize(
+        "by, column",
+        [
+            ([], ["A"]),
+            ((), "A"),
+            ([], None),
+            ((), ["A", "B"]),
+        ],
+    )
+    def test_box_plot_with_none_empty_list_by(self, by, column, hist_df):
+        # GH 15079
+        msg = "No group keys passed"
+        with pytest.raises(ValueError, match=msg):
+            _check_plot_works(hist_df.plot.box, default_axes=True, column=column, by=by)
+
+    @pytest.mark.slow
+    @pytest.mark.parametrize(
+        "by, column, layout, axes_num",
+        [
+            (["C"], "A", (1, 1), 1),
+            ("C", "A", (1, 1), 1),
+            ("C", None, (2, 1), 2),
+            ("C", ["A", "B"], (1, 2), 2),
+            (["C", "D"], "A", (1, 1), 1),
+            (["C", "D"], None, (1, 2), 2),
+        ],
+    )
+    def test_box_plot_layout_with_by(self, by, column, layout, axes_num, hist_df):
+        # GH 15079
+        axes = _check_plot_works(
+            hist_df.plot.box, default_axes=True, column=column, by=by, layout=layout
+        )
+        _check_axes_shape(axes, axes_num=axes_num, layout=layout)
+
+    @pytest.mark.parametrize(
+        "msg, by, layout",
+        [
+            ("larger than required size", ["C", "D"], (1, 1)),
+            (re.escape("Layout must be a tuple of (rows, columns)"), "C", (1,)),
+            ("At least one dimension of layout must be positive", "C", (-1, -1)),
+        ],
+    )
+    def test_box_plot_invalid_layout_with_by_raises(self, msg, by, layout, hist_df):
+        # GH 15079, test if error is raised when invalid layout is given
+
+        with pytest.raises(ValueError, match=msg):
+            hist_df.plot.box(column=["A", "B"], by=by, layout=layout)
+
+    @pytest.mark.parametrize("figsize", [(12, 8), (20, 10)])
+    def test_figure_shape_hist_with_by(self, figsize, hist_df):
+        # GH 15079
+        axes = hist_df.plot.box(column="A", by="C", figsize=figsize)
+        _check_axes_shape(axes, axes_num=1, figsize=figsize)
diff --git a/shared/package-files/f2/f23a99323cc909d2c856c06f930ff67a59bb81a802ffcd06a16d529e16e63acd/transaction.pyi b/shared/package-files/f2/f23a99323cc909d2c856c06f930ff67a59bb81a802ffcd06a16d529e16e63acd/transaction.pyi
new file mode 100644
index 0000000000000000000000000000000000000000..959479b5b1f4062b218e83b6fa1e1f9099f7521a
--- /dev/null
+++ b/shared/package-files/f2/f23a99323cc909d2c856c06f930ff67a59bb81a802ffcd06a16d529e16e63acd/transaction.pyi
@@ -0,0 +1,49 @@
+from contextlib import contextmanager
+from typing import Any, Callable, Optional, overload, TypeVar, Iterator
+
+from django.db import ProgrammingError
+
+class TransactionManagementError(ProgrammingError): ...
+
+def get_connection(using: Optional[str] = ...) -> Any: ...
+def get_autocommit(using: Optional[str] = ...) -> bool: ...
+def set_autocommit(autocommit: bool, using: Optional[str] = ...) -> Any: ...
+def commit(using: Optional[str] = ...) -> Any: ...
+def rollback(using: Optional[str] = ...) -> Any: ...
+def savepoint(using: Optional[str] = ...) -> str: ...
+def savepoint_rollback(sid: str, using: Optional[str] = ...) -> None: ...
+def savepoint_commit(sid: Any, using: Optional[Any] = ...) -> None: ...
+def clean_savepoints(using: Optional[Any] = ...) -> None: ...
+def get_rollback(using: Optional[str] = ...) -> bool: ...
+def set_rollback(rollback: bool, using: Optional[str] = ...) -> None: ...
+@contextmanager
+def mark_for_rollback_on_error(using: Optional[str] = ...) -> Iterator[None]: ...
+def on_commit(func: Callable, using: Optional[str] = ...) -> None: ...
+
+_C = TypeVar("_C", bound=Callable)  # Any callable
+
+# Don't inherit from ContextDecorator, so we can provide a more specific signature for __call__
+class Atomic:
+    using: Optional[str] = ...
+    savepoint: bool = ...
+    def __init__(self, using: Optional[str], savepoint: bool) -> None: ...
+    # When decorating, return the decorated function as-is, rather than clobbering it as ContextDecorator does.
+    def __call__(self, func: _C) -> _C: ...
+    def __enter__(self) -> None: ...
+    def __exit__(self, exc_type: None, exc_value: None, traceback: None) -> None: ...
+
+# Bare decorator
+@overload
+def atomic(using: _C) -> _C: ...
+
+# Decorator or context-manager with parameters
+@overload
+def atomic(using: Optional[str] = ..., savepoint: bool = ...) -> Atomic: ...
+
+# Bare decorator
+@overload
+def non_atomic_requests(using: _C) -> _C: ...
+
+# Decorator with arguments
+@overload
+def non_atomic_requests(using: Optional[str] = ...) -> Callable[[_C], _C]: ...
diff --git a/shared/package-files/f2/f23d4ba657ff0e34f21e6752047088544cac0734e7509d8f3ca50ec0ad5125c6/slice_inverse_native.h b/shared/package-files/f2/f23d4ba657ff0e34f21e6752047088544cac0734e7509d8f3ca50ec0ad5125c6/slice_inverse_native.h
new file mode 100644
index 0000000000000000000000000000000000000000..9ef58c72d95a8d2fdb44399ddf974947d43e2b5b
--- /dev/null
+++ b/shared/package-files/f2/f23d4ba657ff0e34f21e6752047088544cac0734e7509d8f3ca50ec0ad5125c6/slice_inverse_native.h
@@ -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 slice_inverse_symint(const at::Tensor & self, const at::Tensor & src, int64_t dim=0, c10::optional start=c10::nullopt, c10::optional end=c10::nullopt, c10::SymInt step=1);
+} // namespace native
+} // namespace at
diff --git a/shared/package-files/f2/f2404fe75b9ef9c294c3047c7993677ba57d1fab4eee420e840d29574a9a01c3/annotated_fn_args.py b/shared/package-files/f2/f2404fe75b9ef9c294c3047c7993677ba57d1fab4eee420e840d29574a9a01c3/annotated_fn_args.py
new file mode 100644
index 0000000000000000000000000000000000000000..c44e9d09129c7e0ae037369a36f85705941fe086
--- /dev/null
+++ b/shared/package-files/f2/f2404fe75b9ef9c294c3047c7993677ba57d1fab4eee420e840d29574a9a01c3/annotated_fn_args.py
@@ -0,0 +1,2849 @@
+"""
+This file is needed for generating procedural tests required for
+testing __torch_function__. See tests/test_overrides.py.
+"""
+
+# flake8: noqa
+import torch
+
+annotated_args = {
+    torch._C._VariableFunctions._cast_Byte: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._cast_Char: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._cast_Double: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._cast_Float: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._cast_Int: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._cast_Long: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._cast_Short: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._cast_Half: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._make_dual: [{'is_kwarg_only': 'False', 'name': 'primal', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'tangent', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'level', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions._unpack_dual: [{'is_kwarg_only': 'False', 'name': 'dual', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'level', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.align_tensors: [{'is_kwarg_only': 'False', 'name': 'tensors', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._assert_async: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._assert_async: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'assert_msg', 'simple_type': 'c10::string_view'}],
+    torch._C._VariableFunctions._assert_scalar: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'assert_msg', 'simple_type': 'c10::string_view'}],
+    torch._C._VariableFunctions._functional_assert_scalar: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'assert_msg', 'simple_type': 'c10::string_view'}, {'is_kwarg_only': 'False', 'name': 'dep_token', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._functional_assert_async: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'assert_msg', 'simple_type': 'c10::string_view'}, {'is_kwarg_only': 'False', 'name': 'dep_token', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._assert_tensor_metadata: [{'is_kwarg_only': 'False', 'name': 'a', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._print: [{'is_kwarg_only': 'False', 'name': 's', 'simple_type': 'c10::string_view'}],
+    torch._C._VariableFunctions.sym_constrain_range: [{'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.sym_constrain_range_for_size: [{'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions._functional_sym_constrain_range: [{'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'min', 'simple_type': 'int64_t?'}, {'is_kwarg_only': 'False', 'name': 'max', 'simple_type': 'int64_t?'}, {'is_kwarg_only': 'False', 'name': 'dep_token', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._functional_sym_constrain_range_for_size: [{'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'min', 'simple_type': 'int64_t?'}, {'is_kwarg_only': 'False', 'name': 'max', 'simple_type': 'int64_t?'}, {'is_kwarg_only': 'False', 'name': 'dep_token', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._make_dep_token: [],
+    torch._C._VariableFunctions._use_cudnn_ctc_loss: [{'is_kwarg_only': 'False', 'name': 'log_probs', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'targets', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'input_lengths', 'simple_type': 'IntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'target_lengths', 'simple_type': 'IntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'blank', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions._use_cudnn_ctc_loss: [{'is_kwarg_only': 'False', 'name': 'log_probs', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'targets', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'input_lengths', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'target_lengths', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'blank', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions._cudnn_ctc_loss: [{'is_kwarg_only': 'False', 'name': 'log_probs', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'targets', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'input_lengths', 'simple_type': 'IntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'target_lengths', 'simple_type': 'IntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'blank', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'deterministic', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'zero_infinity', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions._cudnn_ctc_loss: [{'is_kwarg_only': 'False', 'name': 'log_probs', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'targets', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'input_lengths', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'target_lengths', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'blank', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'deterministic', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'zero_infinity', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions._use_cudnn_rnn_flatten_weight: [],
+    torch._C._VariableFunctions._cudnn_rnn_flatten_weight: [{'is_kwarg_only': 'False', 'name': 'weight_arr', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'weight_stride0', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'input_size', 'simple_type': 'SymInt'}, {'is_kwarg_only': 'False', 'name': 'mode', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'hidden_size', 'simple_type': 'SymInt'}, {'is_kwarg_only': 'False', 'name': 'proj_size', 'simple_type': 'SymInt'}, {'is_kwarg_only': 'False', 'name': 'num_layers', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'batch_first', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'bidirectional', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions._cudnn_rnn: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'weight_stride0', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'weight_buf', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'hx', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'cx', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'mode', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'hidden_size', 'simple_type': 'SymInt'}, {'is_kwarg_only': 'False', 'name': 'proj_size', 'simple_type': 'SymInt'}, {'is_kwarg_only': 'False', 'name': 'num_layers', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'batch_first', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'dropout', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'train', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'bidirectional', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'batch_sizes', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'dropout_state', 'simple_type': 'Tensor?'}],
+    torch._C._VariableFunctions._cudnn_init_dropout_state: [{'is_kwarg_only': 'False', 'name': 'dropout', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'train', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'dropout_seed', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions._debug_has_internal_overlap: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._fused_dropout: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'p', 'simple_type': 'double'}],
+    torch._C._VariableFunctions._masked_scale: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mask', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'scale', 'simple_type': 'double'}],
+    torch._C._VariableFunctions.native_dropout: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'p', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'train', 'simple_type': 'bool?'}],
+    torch._C._VariableFunctions._sobol_engine_draw: [{'is_kwarg_only': 'False', 'name': 'quasi', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'sobolstate', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dimension', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'num_generated', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'dtype', 'simple_type': 'ScalarType?'}],
+    torch._C._VariableFunctions._sobol_engine_ff_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'sobolstate', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dimension', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'num_generated', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions._sobol_engine_scramble_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'ltm', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dimension', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions._sobol_engine_initialize_state_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dimension', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions._reshape_from_tensor: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'shape', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._shape_as_tensor: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.dropout: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'p', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'train', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions.dropout_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'p', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'train', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions.feature_dropout: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'p', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'train', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions.feature_dropout_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'p', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'train', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions.alpha_dropout: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'p', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'train', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions.alpha_dropout_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'p', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'train', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions.feature_alpha_dropout: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'p', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'train', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions.feature_alpha_dropout_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'p', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'train', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions.abs: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.abs: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.abs_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.absolute: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.absolute: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.angle: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.angle: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.view_as_real: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.view_as_complex: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.sgn: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.sgn: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.real: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.imag: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._conj: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.conj: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._conj_physical: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.conj_physical: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.conj_physical: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.conj_physical_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.resolve_conj: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.resolve_neg: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._neg_view: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.acos: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.acos: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.acos_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.arccos: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.arccos: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.arccos_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.avg_pool1d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'kernel_size', 'simple_type': 'IntArrayRef', 'size': 1}],
+    torch._C._VariableFunctions.adaptive_avg_pool1d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'IntArrayRef', 'size': 1}],
+    torch._C._VariableFunctions.adaptive_max_pool1d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'IntArrayRef', 'size': 1}],
+    torch._C._VariableFunctions.add: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.add: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._add_relu: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._add_relu: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._add_relu: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions._add_relu_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._add_relu_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.addmv: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mat', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'vec', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.addmv: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mat', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'vec', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.addmv_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mat', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'vec', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.addr: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'vec1', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'vec2', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.addr: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'vec1', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'vec2', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.affine_grid_generator: [{'is_kwarg_only': 'False', 'name': 'theta', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'align_corners', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions._is_all_true: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._is_any_true: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._test_check_tensor: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._test_functorch_fallback: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.all: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.all: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.all: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.all: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.all: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch._C._VariableFunctions.all: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch._C._VariableFunctions.all: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.all: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.allclose: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.any: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.any: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.any: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.any: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.any: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch._C._VariableFunctions.any: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch._C._VariableFunctions.any: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.any: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.arange: [{'is_kwarg_only': 'False', 'name': 'end', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.arange: [{'is_kwarg_only': 'False', 'name': 'start', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'end', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.arange: [{'is_kwarg_only': 'False', 'name': 'start', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'end', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.arange: [{'is_kwarg_only': 'False', 'name': 'end', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.arange: [{'is_kwarg_only': 'False', 'name': 'start', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'end', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions._dim_arange: [{'is_kwarg_only': 'False', 'name': 'like', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.argmax: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.argmax: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.argmin: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.argmin: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.acosh: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.acosh: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.acosh_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.arccosh: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.arccosh: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.arccosh_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.asinh: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.asinh: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.asinh_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.arcsinh: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.arcsinh: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.arcsinh_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.atanh: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.atanh: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.atanh_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.arctanh: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.arctanh: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.arctanh_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.as_strided: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'stride', 'simple_type': 'SymIntArrayRef'}],
+    torch._C._VariableFunctions.as_strided_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'stride', 'simple_type': 'SymIntArrayRef'}],
+    torch._C._VariableFunctions.asin: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.asin: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.asin_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.arcsin: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.arcsin: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.arcsin_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.atan: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.atan: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.atan_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.arctan: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.arctan: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.arctan_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.atleast_1d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.atleast_1d: [{'is_kwarg_only': 'False', 'name': 'tensors', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions.atleast_2d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.atleast_2d: [{'is_kwarg_only': 'False', 'name': 'tensors', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions.atleast_3d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.atleast_3d: [{'is_kwarg_only': 'False', 'name': 'tensors', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions.baddbmm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'batch1', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'batch2', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.baddbmm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'batch1', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'batch2', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.bartlett_window: [{'is_kwarg_only': 'False', 'name': 'window_length', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.bartlett_window: [{'is_kwarg_only': 'False', 'name': 'window_length', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'periodic', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions.batch_norm: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'bias', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'running_mean', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'running_var', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'training', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'momentum', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'eps', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'cudnn_enabled', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions.quantized_batch_norm: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'bias', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'mean', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'var', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'eps', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'output_scale', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'output_zero_point', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions._batch_norm_impl_index: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'bias', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'running_mean', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'running_var', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'training', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'momentum', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'eps', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'cudnn_enabled', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions.bernoulli: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.bernoulli: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.bernoulli: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'p', 'simple_type': 'double'}],
+    torch._C._VariableFunctions.bilinear: [{'is_kwarg_only': 'False', 'name': 'input1', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'input2', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.binary_cross_entropy_with_logits: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'target', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.bincount: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.bitwise_not: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.bitwise_not: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.copysign: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.copysign: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.copysign: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.copysign: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions._lazy_clone: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.logical_not: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.logical_not: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.logical_xor: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.logical_xor: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.logical_and: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.logical_and: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.logical_or: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.logical_or: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.blackman_window: [{'is_kwarg_only': 'False', 'name': 'window_length', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.blackman_window: [{'is_kwarg_only': 'False', 'name': 'window_length', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'periodic', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions.bmm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mat2', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.bmm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mat2', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.broadcast_tensors: [{'is_kwarg_only': 'False', 'name': 'tensors', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions.broadcast_to: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}],
+    torch._C._VariableFunctions._sparse_broadcast_to: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'IntArrayRef'}],
+    torch._C._VariableFunctions.cat: [{'is_kwarg_only': 'False', 'name': 'tensors', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions.cat: [{'is_kwarg_only': 'False', 'name': 'tensors', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions.cat: [{'is_kwarg_only': 'False', 'name': 'tensors', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch._C._VariableFunctions.cat: [{'is_kwarg_only': 'False', 'name': 'tensors', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch._C._VariableFunctions.concat: [{'is_kwarg_only': 'False', 'name': 'tensors', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions.concat: [{'is_kwarg_only': 'False', 'name': 'tensors', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions.concat: [{'is_kwarg_only': 'False', 'name': 'tensors', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch._C._VariableFunctions.concat: [{'is_kwarg_only': 'False', 'name': 'tensors', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch._C._VariableFunctions.concatenate: [{'is_kwarg_only': 'False', 'name': 'tensors', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions.concatenate: [{'is_kwarg_only': 'False', 'name': 'tensors', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions.concatenate: [{'is_kwarg_only': 'False', 'name': 'tensors', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch._C._VariableFunctions.concatenate: [{'is_kwarg_only': 'False', 'name': 'tensors', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch._C._VariableFunctions.block_diag: [{'is_kwarg_only': 'False', 'name': 'tensors', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions.ceil: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.ceil: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.ceil_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.chain_matmul: [{'is_kwarg_only': 'False', 'name': 'matrices', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions.chain_matmul: [{'is_kwarg_only': 'False', 'name': 'matrices', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions.unsafe_chunk: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'chunks', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.chunk: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'chunks', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.tensor_split: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'sections', 'simple_type': 'SymInt'}],
+    torch._C._VariableFunctions.tensor_split: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'indices', 'simple_type': 'SymIntArrayRef'}],
+    torch._C._VariableFunctions.tensor_split: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'tensor_indices_or_sections', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.clamp: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.clamp: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.clamp: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.clamp: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.clamp_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.clamp_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.clamp_max: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'max', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.clamp_max: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'max', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.clamp_max: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'max', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.clamp_max: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'max', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.clamp_max_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'max', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.clamp_max_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'max', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.clamp_min: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'min', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.clamp_min: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'min', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.clamp_min: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'min', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.clamp_min: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'min', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.clamp_min_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'min', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.clamp_min_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'min', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.clip: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.clip: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.clip: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.clip: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.clip_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.clip_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.cudnn_is_acceptable: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.complex: [{'is_kwarg_only': 'False', 'name': 'real', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'imag', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.complex: [{'is_kwarg_only': 'False', 'name': 'real', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'imag', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.polar: [{'is_kwarg_only': 'False', 'name': 'abs', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'angle', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.polar: [{'is_kwarg_only': 'False', 'name': 'abs', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'angle', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.constant_pad_nd: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'pad', 'simple_type': 'SymIntArrayRef'}],
+    torch._C._VariableFunctions.convolution: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'bias', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'stride', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'padding', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'dilation', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'transposed', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'output_padding', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'groups', 'simple_type': 'SymInt'}],
+    torch._C._VariableFunctions._convolution: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'bias', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'stride', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'padding', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'dilation', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'transposed', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'output_padding', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'groups', 'simple_type': 'SymInt'}, {'is_kwarg_only': 'False', 'name': 'benchmark', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'deterministic', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'cudnn_enabled', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'allow_tf32', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions._convolution: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'bias', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'stride', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'padding', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'dilation', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'transposed', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'output_padding', 'simple_type': 'IntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'groups', 'simple_type': 'SymInt'}, {'is_kwarg_only': 'False', 'name': 'benchmark', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'deterministic', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'cudnn_enabled', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions._convolution_mode: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'bias', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'stride', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'padding', 'simple_type': 'c10::string_view'}, {'is_kwarg_only': 'False', 'name': 'dilation', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'groups', 'simple_type': 'SymInt'}],
+    torch._C._VariableFunctions.conv1d: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.conv1d: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.conv2d: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.conv2d: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.conv3d: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.conv3d: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.conv_tbc: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'bias', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.conv_transpose1d: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.conv_transpose2d: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.conv_transpose3d: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._copy_from: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dst', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._copy_from_and_resize: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dst', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.cos: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.cos: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.cos_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.cosh: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.cosh: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.cosh_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.cosine_embedding_loss: [{'is_kwarg_only': 'False', 'name': 'input1', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'input2', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'target', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.count_nonzero: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'IntArrayRef'}],
+    torch._C._VariableFunctions.count_nonzero: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.cov: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.corrcoef: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.cudnn_affine_grid_generator: [{'is_kwarg_only': 'False', 'name': 'theta', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'N', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'C', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'H', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'W', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.cudnn_batch_norm: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'bias', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'running_mean', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'running_var', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'training', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'exponential_average_factor', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'epsilon', 'simple_type': 'double'}],
+    torch._C._VariableFunctions.cudnn_convolution: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'padding', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'stride', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'dilation', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'groups', 'simple_type': 'SymInt'}, {'is_kwarg_only': 'False', 'name': 'benchmark', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'deterministic', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'allow_tf32', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions.cudnn_convolution: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'padding', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'stride', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'dilation', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'groups', 'simple_type': 'SymInt'}, {'is_kwarg_only': 'False', 'name': 'benchmark', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'deterministic', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'allow_tf32', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions.cudnn_convolution_transpose: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'padding', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'output_padding', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'stride', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'dilation', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'groups', 'simple_type': 'SymInt'}, {'is_kwarg_only': 'False', 'name': 'benchmark', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'deterministic', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'allow_tf32', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions._mps_convolution_transpose: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'padding', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'output_padding', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'stride', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'dilation', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'groups', 'simple_type': 'SymInt'}],
+    torch._C._VariableFunctions.cudnn_convolution_relu: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'bias', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'stride', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'padding', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'dilation', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'groups', 'simple_type': 'SymInt'}],
+    torch._C._VariableFunctions.cudnn_convolution_add_relu: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'z', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'alpha', 'simple_type': 'Scalar?'}, {'is_kwarg_only': 'False', 'name': 'bias', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'stride', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'padding', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'dilation', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'groups', 'simple_type': 'SymInt'}],
+    torch._C._VariableFunctions.cudnn_grid_sampler: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'grid', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.cummax: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.cummax: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.cummax: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch._C._VariableFunctions.cummax: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch._C._VariableFunctions._cummax_helper: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'values', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'indices', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.cummin: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.cummin: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.cummin: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch._C._VariableFunctions.cummin: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch._C._VariableFunctions._cummin_helper: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'values', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'indices', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.cumprod: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.cumprod: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.cumprod: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch._C._VariableFunctions.cumprod: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch._C._VariableFunctions.cumsum: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.cumsum: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.cumsum: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch._C._VariableFunctions.cumsum: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch._C._VariableFunctions.cumulative_trapezoid: [{'is_kwarg_only': 'False', 'name': 'y', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.cumulative_trapezoid: [{'is_kwarg_only': 'False', 'name': 'y', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.ctc_loss: [{'is_kwarg_only': 'False', 'name': 'log_probs', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'targets', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'input_lengths', 'simple_type': 'IntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'target_lengths', 'simple_type': 'IntArrayRef'}],
+    torch._C._VariableFunctions.ctc_loss: [{'is_kwarg_only': 'False', 'name': 'log_probs', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'targets', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'input_lengths', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'target_lengths', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._ctc_loss: [{'is_kwarg_only': 'False', 'name': 'log_probs', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'targets', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'input_lengths', 'simple_type': 'IntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'target_lengths', 'simple_type': 'IntArrayRef'}],
+    torch._C._VariableFunctions._ctc_loss: [{'is_kwarg_only': 'False', 'name': 'log_probs', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'targets', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'input_lengths', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'target_lengths', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.diag_embed: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.diagflat: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.diagonal: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.diagonal: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.diff: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.diff: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.gradient: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.gradient: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'True', 'name': 'spacing', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'True', 'name': 'dim', 'simple_type': 'IntArrayRef'}],
+    torch._C._VariableFunctions.gradient: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'True', 'name': 'dim', 'simple_type': 'IntArrayRef'}],
+    torch._C._VariableFunctions.gradient: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'True', 'name': 'spacing', 'simple_type': 'ScalarList'}],
+    torch._C._VariableFunctions.gradient: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'True', 'name': 'spacing', 'simple_type': 'ScalarList'}, {'is_kwarg_only': 'True', 'name': 'dim', 'simple_type': 'IntArrayRef'}],
+    torch._C._VariableFunctions.gradient: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'True', 'name': 'spacing', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions.gradient: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'True', 'name': 'spacing', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'True', 'name': 'dim', 'simple_type': 'IntArrayRef'}],
+    torch._C._VariableFunctions.div: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.div: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.div: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'True', 'name': 'rounding_mode', 'simple_type': 'c10::string_view?'}],
+    torch._C._VariableFunctions.div: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'True', 'name': 'rounding_mode', 'simple_type': 'c10::string_view?'}],
+    torch._C._VariableFunctions.div: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'True', 'name': 'rounding_mode', 'simple_type': 'c10::string_view?'}],
+    torch._C._VariableFunctions.divide: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.divide: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.divide: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.divide: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'True', 'name': 'rounding_mode', 'simple_type': 'c10::string_view?'}],
+    torch._C._VariableFunctions.divide: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'True', 'name': 'rounding_mode', 'simple_type': 'c10::string_view?'}],
+    torch._C._VariableFunctions.divide: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'True', 'name': 'rounding_mode', 'simple_type': 'c10::string_view?'}],
+    torch._C._VariableFunctions.true_divide: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.true_divide: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.true_divide: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.dot: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'tensor', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.dot: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'tensor', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.vdot: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.vdot: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.einsum: [{'is_kwarg_only': 'False', 'name': 'equation', 'simple_type': 'c10::string_view'}, {'is_kwarg_only': 'False', 'name': 'tensors', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions.embedding: [{'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'indices', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.embedding_renorm_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'indices', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'max_norm', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'norm_type', 'simple_type': 'double'}],
+    torch._C._VariableFunctions._embedding_bag_forward_only: [{'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'indices', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'offsets', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._rowwise_prune: [{'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mask', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'compressed_indices_dtype', 'simple_type': 'ScalarType'}],
+    torch._C._VariableFunctions.row_stack: [{'is_kwarg_only': 'False', 'name': 'tensors', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions.row_stack: [{'is_kwarg_only': 'False', 'name': 'tensors', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions.embedding_bag: [{'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'indices', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'offsets', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.embedding_bag: [{'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'indices', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'offsets', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'scale_grad_by_freq', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'mode', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'sparse', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'per_sample_weights', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'include_last_offset', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'padding_idx', 'simple_type': 'int64_t?'}],
+    torch._C._VariableFunctions._embedding_bag: [{'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'indices', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'offsets', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.empty: [{'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'IntArrayRef'}, {'is_kwarg_only': 'True', 'name': 'names', 'simple_type': 'DimnameList?'}],
+    torch._C._VariableFunctions.empty: [{'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}],
+    torch._C._VariableFunctions.empty: [{'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}],
+    torch._C._VariableFunctions.empty_permuted: [{'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'physical_layout', 'simple_type': 'IntArrayRef'}],
+    torch._C._VariableFunctions._empty_affine_quantized: [{'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}],
+    torch._C._VariableFunctions._empty_per_channel_affine_quantized: [{'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'True', 'name': 'scales', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'True', 'name': 'zero_points', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'True', 'name': 'axis', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions._resize_output_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'device', 'simple_type': 'Device'}],
+    torch._C._VariableFunctions.empty_quantized: [{'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'IntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'qtensor', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.empty_like: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.empty_strided: [{'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'stride', 'simple_type': 'SymIntArrayRef'}],
+    torch._C._VariableFunctions.erf: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.erf: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.erf_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.erfc: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.erfc: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.erfc_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.exp: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.exp: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.exp_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.exp2: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.exp2: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.exp2_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.expm1: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.expm1: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.expm1_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.eye: [{'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'SymInt'}],
+    torch._C._VariableFunctions.eye: [{'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'SymInt'}, {'is_kwarg_only': 'False', 'name': 'm', 'simple_type': 'SymInt'}],
+    torch._C._VariableFunctions.eye: [{'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'SymInt'}],
+    torch._C._VariableFunctions.eye: [{'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'SymInt'}, {'is_kwarg_only': 'False', 'name': 'm', 'simple_type': 'SymInt'}],
+    torch._C._VariableFunctions.flatten: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.flatten: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'start_dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'end_dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'out_dim', 'simple_type': 'Dimname'}],
+    torch._C._VariableFunctions.flatten: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'start_dim', 'simple_type': 'Dimname'}, {'is_kwarg_only': 'False', 'name': 'end_dim', 'simple_type': 'Dimname'}, {'is_kwarg_only': 'False', 'name': 'out_dim', 'simple_type': 'Dimname'}],
+    torch._C._VariableFunctions.flatten: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dims', 'simple_type': 'DimnameList'}, {'is_kwarg_only': 'False', 'name': 'out_dim', 'simple_type': 'Dimname'}],
+    torch._C._VariableFunctions.unflatten: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'sizes', 'simple_type': 'SymIntArrayRef'}],
+    torch._C._VariableFunctions.unflatten: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}, {'is_kwarg_only': 'False', 'name': 'sizes', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'names', 'simple_type': 'DimnameList'}],
+    torch._C._VariableFunctions.fill: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'value', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.fill: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'value', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.fill_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'value', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.fill_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'value', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.floor: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.floor: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.floor_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.floor_divide: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.floor_divide: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.floor_divide: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.frac: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.frac: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.frac_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.full: [{'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'IntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'fill_value', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'True', 'name': 'names', 'simple_type': 'DimnameList?'}],
+    torch._C._VariableFunctions.full: [{'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'fill_value', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.full: [{'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'fill_value', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.full_like: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'fill_value', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.from_file: [{'is_kwarg_only': 'False', 'name': 'filename', 'simple_type': 'c10::string_view'}],
+    torch._C._VariableFunctions.gcd: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.gcd: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.gcd_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.lcm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.lcm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.lcm_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.grid_sampler: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'grid', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'interpolation_mode', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'padding_mode', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'align_corners', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions.grid_sampler_2d: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'grid', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'interpolation_mode', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'padding_mode', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'align_corners', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions._grid_sampler_2d_cpu_fallback: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'grid', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'interpolation_mode', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'padding_mode', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'align_corners', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions.grid_sampler_3d: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'grid', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'interpolation_mode', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'padding_mode', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'align_corners', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions.hann_window: [{'is_kwarg_only': 'False', 'name': 'window_length', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.hann_window: [{'is_kwarg_only': 'False', 'name': 'window_length', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'periodic', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions.hamming_window: [{'is_kwarg_only': 'False', 'name': 'window_length', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.hamming_window: [{'is_kwarg_only': 'False', 'name': 'window_length', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'periodic', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions.hamming_window: [{'is_kwarg_only': 'False', 'name': 'window_length', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'periodic', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'alpha', 'simple_type': 'double'}],
+    torch._C._VariableFunctions.hamming_window: [{'is_kwarg_only': 'False', 'name': 'window_length', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'periodic', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'alpha', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'beta', 'simple_type': 'double'}],
+    torch._C._VariableFunctions.kaiser_window: [{'is_kwarg_only': 'False', 'name': 'window_length', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.kaiser_window: [{'is_kwarg_only': 'False', 'name': 'window_length', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'periodic', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions.kaiser_window: [{'is_kwarg_only': 'False', 'name': 'window_length', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'periodic', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'beta', 'simple_type': 'double'}],
+    torch._C._VariableFunctions.hinge_embedding_loss: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'target', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.group_norm: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'num_groups', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.native_group_norm: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'bias', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'N', 'simple_type': 'SymInt'}, {'is_kwarg_only': 'False', 'name': 'C', 'simple_type': 'SymInt'}, {'is_kwarg_only': 'False', 'name': 'HxW', 'simple_type': 'SymInt'}, {'is_kwarg_only': 'False', 'name': 'group', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'eps', 'simple_type': 'double'}],
+    torch._C._VariableFunctions._fft_r2c: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'IntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'normalization', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'onesided', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions._fft_r2c: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'IntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'normalization', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'onesided', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions._fft_c2r: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'IntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'normalization', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'last_dim_size', 'simple_type': 'SymInt'}],
+    torch._C._VariableFunctions._fft_c2r: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'IntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'normalization', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'last_dim_size', 'simple_type': 'SymInt'}],
+    torch._C._VariableFunctions._fft_c2c: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'normalization', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'forward', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions._fft_c2c: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'normalization', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'forward', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions._validate_compressed_sparse_indices: [{'is_kwarg_only': 'False', 'name': 'is_crow', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'compressed_idx', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'plain_idx', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'cdim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'nnz', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions._cufft_get_plan_cache_size: [{'is_kwarg_only': 'False', 'name': 'device_index', 'simple_type': 'DeviceIndex'}],
+    torch._C._VariableFunctions._cufft_get_plan_cache_max_size: [{'is_kwarg_only': 'False', 'name': 'device_index', 'simple_type': 'DeviceIndex'}],
+    torch._C._VariableFunctions._cufft_set_plan_cache_max_size: [{'is_kwarg_only': 'False', 'name': 'device_index', 'simple_type': 'DeviceIndex'}, {'is_kwarg_only': 'False', 'name': 'max_size', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions._cufft_clear_plan_cache: [{'is_kwarg_only': 'False', 'name': 'device_index', 'simple_type': 'DeviceIndex'}],
+    torch._C._VariableFunctions._unsafe_index: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'indices', 'simple_type': 'c10::List>'}],
+    torch._C._VariableFunctions.index_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'source', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.index_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'source', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.index_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'source', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.index_put_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'indices', 'simple_type': 'c10::List>'}, {'is_kwarg_only': 'False', 'name': 'values', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.index_put: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'indices', 'simple_type': 'c10::List>'}, {'is_kwarg_only': 'False', 'name': 'values', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._unsafe_index_put: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'indices', 'simple_type': 'c10::List>'}, {'is_kwarg_only': 'False', 'name': 'values', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._index_put_impl_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'indices', 'simple_type': 'c10::List>'}, {'is_kwarg_only': 'False', 'name': 'values', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.instance_norm: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'bias', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'running_mean', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'running_var', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'use_input_stats', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'momentum', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'eps', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'cudnn_enabled', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions.isclose: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.isin: [{'is_kwarg_only': 'False', 'name': 'elements', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'test_elements', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.isin: [{'is_kwarg_only': 'False', 'name': 'elements', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'test_elements', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.isin: [{'is_kwarg_only': 'False', 'name': 'elements', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'test_element', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.isin: [{'is_kwarg_only': 'False', 'name': 'elements', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'test_element', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.isin: [{'is_kwarg_only': 'False', 'name': 'element', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'test_elements', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.isin: [{'is_kwarg_only': 'False', 'name': 'element', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'test_elements', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.isnan: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.is_distributed: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.is_floating_point: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.is_complex: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.is_conj: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._is_zerotensor: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.is_neg: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.isreal: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.is_nonzero: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.is_same_size: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.is_signed: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.is_inference: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.kl_div: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'target', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.kron: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.kron: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.kthvalue: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'k', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.kthvalue: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'k', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.kthvalue: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'k', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch._C._VariableFunctions.kthvalue: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'k', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch._C._VariableFunctions.layer_norm: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'normalized_shape', 'simple_type': 'SymIntArrayRef'}],
+    torch._C._VariableFunctions.native_layer_norm: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'normalized_shape', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'bias', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'eps', 'simple_type': 'double'}],
+    torch._C._VariableFunctions.nan_to_num: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.nan_to_num: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.nan_to_num_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.mkldnn_linear_backward_weights: [{'is_kwarg_only': 'False', 'name': 'grad_output', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'bias_defined', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions._cslt_compress: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._cslt_sparse_mm: [{'is_kwarg_only': 'False', 'name': 'compressed_A', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dense_B', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._cslt_sparse_mm_search: [{'is_kwarg_only': 'False', 'name': 'compressed_A', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dense_B', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._sparse_semi_structured_linear: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'meta', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._mixed_dtypes_linear: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'scale', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.fbgemm_linear_int8_weight_fp32_activation: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'packed', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'col_offsets', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight_scale', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'weight_zero_point', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'bias', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.fbgemm_linear_int8_weight: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'packed', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'col_offsets', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight_scale', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'weight_zero_point', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'bias', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.fbgemm_linear_quantize_weight: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.fbgemm_pack_gemm_matrix_fp16: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.fbgemm_linear_fp16_weight_fp32_activation: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'packed_weight', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'bias', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.fbgemm_linear_fp16_weight: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'packed_weight', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'bias', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.fbgemm_pack_quantized_matrix: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.fbgemm_pack_quantized_matrix: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'K', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'N', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.ldexp: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.ldexp: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.ldexp_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.linspace: [{'is_kwarg_only': 'False', 'name': 'start', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'end', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'steps', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.linspace: [{'is_kwarg_only': 'False', 'name': 'start', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'end', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'steps', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.linspace: [{'is_kwarg_only': 'False', 'name': 'start', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'end', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'steps', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.linspace: [{'is_kwarg_only': 'False', 'name': 'start', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'end', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'steps', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.linspace: [{'is_kwarg_only': 'False', 'name': 'start', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'end', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'steps', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.linspace: [{'is_kwarg_only': 'False', 'name': 'start', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'end', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'steps', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.linspace: [{'is_kwarg_only': 'False', 'name': 'start', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'end', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'steps', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.linspace: [{'is_kwarg_only': 'False', 'name': 'start', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'end', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'steps', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.log: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.log: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.log_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.log10: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.log10: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.log10_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.log1p: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.log1p: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.log1p_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.log2: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.log2: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.log2_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.logaddexp: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.logaddexp: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.logaddexp2: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.logaddexp2: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.xlogy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.xlogy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.xlogy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.xlogy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.xlogy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.xlogy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.xlogy_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.xlogy_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.logspace: [{'is_kwarg_only': 'False', 'name': 'start', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'end', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'steps', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.logspace: [{'is_kwarg_only': 'False', 'name': 'start', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'end', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'steps', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.logspace: [{'is_kwarg_only': 'False', 'name': 'start', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'end', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'steps', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.logspace: [{'is_kwarg_only': 'False', 'name': 'start', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'end', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'steps', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.logspace: [{'is_kwarg_only': 'False', 'name': 'start', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'end', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'steps', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.logspace: [{'is_kwarg_only': 'False', 'name': 'start', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'end', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'steps', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.logspace: [{'is_kwarg_only': 'False', 'name': 'start', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'end', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'steps', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.logspace: [{'is_kwarg_only': 'False', 'name': 'start', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'end', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'steps', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.log_softmax: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.log_softmax: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.log_softmax: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch._C._VariableFunctions._log_softmax: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'half_to_float', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions._log_softmax: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'half_to_float', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions._log_softmax_backward_data: [{'is_kwarg_only': 'False', 'name': 'grad_output', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'input_dtype', 'simple_type': 'ScalarType'}],
+    torch._C._VariableFunctions._log_softmax_backward_data: [{'is_kwarg_only': 'False', 'name': 'grad_output', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'input_dtype', 'simple_type': 'ScalarType'}],
+    torch._C._VariableFunctions._logcumsumexp: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions._logcumsumexp: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.logcumsumexp: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.logcumsumexp: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.logcumsumexp: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch._C._VariableFunctions.logcumsumexp: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch._C._VariableFunctions.logsumexp: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'IntArrayRef', 'size': 1}],
+    torch._C._VariableFunctions.logsumexp: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'IntArrayRef', 'size': 1}],
+    torch._C._VariableFunctions.logsumexp: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'DimnameList', 'size': 1}],
+    torch._C._VariableFunctions.logsumexp: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'DimnameList', 'size': 1}],
+    torch._C._VariableFunctions.margin_ranking_loss: [{'is_kwarg_only': 'False', 'name': 'input1', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'input2', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'target', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.matmul: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.matmul: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.matrix_power: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.matrix_power: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.matrix_exp: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._aminmax: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._aminmax: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.aminmax: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.aminmax: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._compute_linear_combination: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'coefficients', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._compute_linear_combination: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'coefficients', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.max: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.max: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.max: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch._C._VariableFunctions.max: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch._C._VariableFunctions.max: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.max: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.max: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.max: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.amax: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.amax: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.max_pool1d_with_indices: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'kernel_size', 'simple_type': 'IntArrayRef', 'size': 1}],
+    torch._C._VariableFunctions.max_pool1d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'kernel_size', 'simple_type': 'IntArrayRef', 'size': 1}],
+    torch._C._VariableFunctions.max_pool2d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'kernel_size', 'simple_type': 'IntArrayRef', 'size': 2}],
+    torch._C._VariableFunctions.mkldnn_max_pool2d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'kernel_size', 'simple_type': 'IntArrayRef', 'size': 2}],
+    torch._C._VariableFunctions.mkldnn_max_pool3d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'kernel_size', 'simple_type': 'IntArrayRef', 'size': 3}],
+    torch._C._VariableFunctions.quantized_max_pool1d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'kernel_size', 'simple_type': 'IntArrayRef', 'size': 1}],
+    torch._C._VariableFunctions.quantized_max_pool2d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'kernel_size', 'simple_type': 'IntArrayRef', 'size': 2}],
+    torch._C._VariableFunctions.quantized_max_pool3d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'kernel_size', 'simple_type': 'IntArrayRef', 'size': 3}],
+    torch._C._VariableFunctions.max_pool3d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'kernel_size', 'simple_type': 'IntArrayRef', 'size': 3}],
+    torch._C._VariableFunctions.mean: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.mean: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'IntArrayRef?', 'size': 1}],
+    torch._C._VariableFunctions.mean: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'IntArrayRef?', 'size': 1}],
+    torch._C._VariableFunctions.mean: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'DimnameList', 'size': 1}],
+    torch._C._VariableFunctions.mean: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'DimnameList', 'size': 1}],
+    torch._C._VariableFunctions.nanmean: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.nanmean: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.median: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.median: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.median: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.median: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch._C._VariableFunctions.median: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch._C._VariableFunctions.nanmedian: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.nanmedian: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.nanmedian: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.nanmedian: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch._C._VariableFunctions.nanmedian: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch._C._VariableFunctions.min: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.min: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.min: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch._C._VariableFunctions.min: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch._C._VariableFunctions.min: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.min: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.min: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.min: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.amin: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.amin: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._mps_convolution: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'bias', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'padding', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'stride', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'dilation', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'groups', 'simple_type': 'SymInt'}],
+    torch._C._VariableFunctions.mkldnn_convolution: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'bias', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'padding', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'stride', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'dilation', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'groups', 'simple_type': 'SymInt'}],
+    torch._C._VariableFunctions.mkldnn_rnn_layer: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight0', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight1', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight2', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight3', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'hx_', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'cx_', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'reverse', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'batch_sizes', 'simple_type': 'IntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'mode', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'hidden_size', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'num_layers', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'has_biases', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'bidirectional', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'batch_first', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'train', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions.miopen_batch_norm: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'bias', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'running_mean', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'running_var', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'training', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'exponential_average_factor', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'epsilon', 'simple_type': 'double'}],
+    torch._C._VariableFunctions.miopen_convolution: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'bias', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'padding', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'stride', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'dilation', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'groups', 'simple_type': 'SymInt'}, {'is_kwarg_only': 'False', 'name': 'benchmark', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'deterministic', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions.miopen_convolution_transpose: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'bias', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'padding', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'output_padding', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'stride', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'dilation', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'groups', 'simple_type': 'SymInt'}, {'is_kwarg_only': 'False', 'name': 'benchmark', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'deterministic', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions.miopen_depthwise_convolution: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'bias', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'padding', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'stride', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'dilation', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'groups', 'simple_type': 'SymInt'}, {'is_kwarg_only': 'False', 'name': 'benchmark', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'deterministic', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions.miopen_convolution_relu: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'bias', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'stride', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'padding', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'dilation', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'groups', 'simple_type': 'SymInt'}],
+    torch._C._VariableFunctions.miopen_convolution_add_relu: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'z', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'alpha', 'simple_type': 'Scalar?'}, {'is_kwarg_only': 'False', 'name': 'bias', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'stride', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'padding', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'dilation', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'groups', 'simple_type': 'SymInt'}],
+    torch._C._VariableFunctions.miopen_rnn: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'weight_stride0', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'hx', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'cx', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'mode', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'hidden_size', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'num_layers', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'batch_first', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'dropout', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'train', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'bidirectional', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'batch_sizes', 'simple_type': 'IntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'dropout_state', 'simple_type': 'Tensor?'}],
+    torch._C._VariableFunctions.mm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mat2', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.mm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mat2', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._int_mm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mat2', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._int_mm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mat2', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._convert_weight_to_int4pack: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'innerKTiles', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions._weight_int4pack_mm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mat2', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'qGroupSize', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'qScaleAndZeros', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._weight_int8pack_mm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mat2', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'scales', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._sparse_sparse_matmul: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.mode: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.mode: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.mode: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch._C._VariableFunctions.mode: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch._C._VariableFunctions.mul: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.mul: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.multiply: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.multiply: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.multiply: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.mv: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'vec', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.mv: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'vec', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.mvlgamma: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'p', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.mvlgamma: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'p', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.narrow_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'start', 'simple_type': 'SymInt'}, {'is_kwarg_only': 'False', 'name': 'length', 'simple_type': 'SymInt'}],
+    torch._C._VariableFunctions.narrow_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'start', 'simple_type': 'SymInt'}, {'is_kwarg_only': 'False', 'name': 'length', 'simple_type': 'SymInt'}],
+    torch._C._VariableFunctions.narrow: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'start', 'simple_type': 'SymInt'}, {'is_kwarg_only': 'False', 'name': 'length', 'simple_type': 'SymInt'}],
+    torch._C._VariableFunctions.narrow: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'start', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'length', 'simple_type': 'SymInt'}],
+    torch._C._VariableFunctions.native_batch_norm: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'bias', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'running_mean', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'running_var', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'training', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'momentum', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'eps', 'simple_type': 'double'}],
+    torch._C._VariableFunctions.native_batch_norm: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'bias', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'running_mean', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'running_var', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'training', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'momentum', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'eps', 'simple_type': 'double'}],
+    torch._C._VariableFunctions._native_batch_norm_legit: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'bias', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'running_mean', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'running_var', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'training', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'momentum', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'eps', 'simple_type': 'double'}],
+    torch._C._VariableFunctions._native_batch_norm_legit: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'bias', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'running_mean', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'running_var', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'training', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'momentum', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'eps', 'simple_type': 'double'}],
+    torch._C._VariableFunctions._native_batch_norm_legit: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'bias', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'training', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'momentum', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'eps', 'simple_type': 'double'}],
+    torch._C._VariableFunctions._native_batch_norm_legit: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'bias', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'training', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'momentum', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'eps', 'simple_type': 'double'}],
+    torch._C._VariableFunctions._native_batch_norm_legit_no_training: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'bias', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'running_mean', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'running_var', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'momentum', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'eps', 'simple_type': 'double'}],
+    torch._C._VariableFunctions.batch_norm_stats: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'eps', 'simple_type': 'double'}],
+    torch._C._VariableFunctions.batch_norm_elemt: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'bias', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'mean', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'invstd', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'eps', 'simple_type': 'double'}],
+    torch._C._VariableFunctions.batch_norm_elemt: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'bias', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'mean', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'invstd', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'eps', 'simple_type': 'double'}],
+    torch._C._VariableFunctions.batch_norm_gather_stats: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mean', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'invstd', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'running_mean', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'running_var', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'momentum', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'eps', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'count', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.batch_norm_gather_stats_with_counts: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mean', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'invstd', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'running_mean', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'running_var', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'momentum', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'eps', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'counts', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.batch_norm_backward_reduce: [{'is_kwarg_only': 'False', 'name': 'grad_out', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mean', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'invstd', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'input_g', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'weight_g', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'bias_g', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions.batch_norm_backward_elemt: [{'is_kwarg_only': 'False', 'name': 'grad_out', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mean', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'invstd', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'sum_dy', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'sum_dy_xmu', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'count', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.batch_norm_update_stats: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'running_mean', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'running_var', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'momentum', 'simple_type': 'double'}],
+    torch._C._VariableFunctions.is_vulkan_available: [],
+    torch._C._VariableFunctions._nnpack_available: [],
+    torch._C._VariableFunctions._nnpack_spatial_convolution: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'bias', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'padding', 'simple_type': 'SymIntArrayRef', 'size': 2}],
+    torch._C._VariableFunctions.ones: [{'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'IntArrayRef'}, {'is_kwarg_only': 'True', 'name': 'names', 'simple_type': 'DimnameList?'}],
+    torch._C._VariableFunctions.ones: [{'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}],
+    torch._C._VariableFunctions.ones: [{'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}],
+    torch._C._VariableFunctions.ones_like: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.pairwise_distance: [{'is_kwarg_only': 'False', 'name': 'x1', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'x2', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.cdist: [{'is_kwarg_only': 'False', 'name': 'x1', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'x2', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._euclidean_dist: [{'is_kwarg_only': 'False', 'name': 'x1', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'x2', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.pdist: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.cosine_similarity: [{'is_kwarg_only': 'False', 'name': 'x1', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'x2', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.permute: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dims', 'simple_type': 'IntArrayRef'}],
+    torch._C._VariableFunctions.movedim: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'source', 'simple_type': 'IntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'destination', 'simple_type': 'IntArrayRef'}],
+    torch._C._VariableFunctions.movedim: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'source', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'destination', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.moveaxis: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'source', 'simple_type': 'IntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'destination', 'simple_type': 'IntArrayRef'}],
+    torch._C._VariableFunctions.moveaxis: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'source', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'destination', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.adjoint: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.pixel_shuffle: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'upscale_factor', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.pixel_unshuffle: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'downscale_factor', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.channel_shuffle: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'groups', 'simple_type': 'SymInt'}],
+    torch._C._VariableFunctions.native_channel_shuffle: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'groups', 'simple_type': 'SymInt'}],
+    torch._C._VariableFunctions._pin_memory: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.pinverse: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.poisson_nll_loss: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'target', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'log_input', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'full', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'eps', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'reduction', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.rad2deg: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.rad2deg: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.rad2deg_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.deg2rad: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.deg2rad: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.deg2rad_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.scalar_tensor: [{'is_kwarg_only': 'False', 'name': 's', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.rand: [{'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'True', 'name': 'names', 'simple_type': 'DimnameList?'}],
+    torch._C._VariableFunctions.rand: [{'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'True', 'name': 'generator', 'simple_type': 'Generator?'}, {'is_kwarg_only': 'True', 'name': 'names', 'simple_type': 'DimnameList?'}],
+    torch._C._VariableFunctions.rand: [{'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}],
+    torch._C._VariableFunctions.rand: [{'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'True', 'name': 'generator', 'simple_type': 'Generator?'}],
+    torch._C._VariableFunctions.rand: [{'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}],
+    torch._C._VariableFunctions.rand: [{'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'True', 'name': 'generator', 'simple_type': 'Generator?'}],
+    torch._C._VariableFunctions.rand_like: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.randint: [{'is_kwarg_only': 'False', 'name': 'high', 'simple_type': 'SymInt'}, {'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}],
+    torch._C._VariableFunctions.randint: [{'is_kwarg_only': 'False', 'name': 'high', 'simple_type': 'SymInt'}, {'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'True', 'name': 'generator', 'simple_type': 'Generator?'}],
+    torch._C._VariableFunctions.randint: [{'is_kwarg_only': 'False', 'name': 'low', 'simple_type': 'SymInt'}, {'is_kwarg_only': 'False', 'name': 'high', 'simple_type': 'SymInt'}, {'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}],
+    torch._C._VariableFunctions.randint: [{'is_kwarg_only': 'False', 'name': 'low', 'simple_type': 'SymInt'}, {'is_kwarg_only': 'False', 'name': 'high', 'simple_type': 'SymInt'}, {'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'True', 'name': 'generator', 'simple_type': 'Generator?'}],
+    torch._C._VariableFunctions.randint: [{'is_kwarg_only': 'False', 'name': 'high', 'simple_type': 'SymInt'}, {'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}],
+    torch._C._VariableFunctions.randint: [{'is_kwarg_only': 'False', 'name': 'high', 'simple_type': 'SymInt'}, {'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'True', 'name': 'generator', 'simple_type': 'Generator?'}],
+    torch._C._VariableFunctions.randint: [{'is_kwarg_only': 'False', 'name': 'low', 'simple_type': 'SymInt'}, {'is_kwarg_only': 'False', 'name': 'high', 'simple_type': 'SymInt'}, {'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}],
+    torch._C._VariableFunctions.randint: [{'is_kwarg_only': 'False', 'name': 'low', 'simple_type': 'SymInt'}, {'is_kwarg_only': 'False', 'name': 'high', 'simple_type': 'SymInt'}, {'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'True', 'name': 'generator', 'simple_type': 'Generator?'}],
+    torch._C._VariableFunctions.randint_like: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'high', 'simple_type': 'SymInt'}],
+    torch._C._VariableFunctions.randint_like: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'low', 'simple_type': 'SymInt'}, {'is_kwarg_only': 'False', 'name': 'high', 'simple_type': 'SymInt'}],
+    torch._C._VariableFunctions.randn: [{'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}],
+    torch._C._VariableFunctions.randn: [{'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'True', 'name': 'generator', 'simple_type': 'Generator?'}],
+    torch._C._VariableFunctions.randn: [{'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'True', 'name': 'names', 'simple_type': 'DimnameList?'}],
+    torch._C._VariableFunctions.randn: [{'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'True', 'name': 'generator', 'simple_type': 'Generator?'}, {'is_kwarg_only': 'True', 'name': 'names', 'simple_type': 'DimnameList?'}],
+    torch._C._VariableFunctions.randn: [{'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}],
+    torch._C._VariableFunctions.randn: [{'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'True', 'name': 'generator', 'simple_type': 'Generator?'}],
+    torch._C._VariableFunctions.randn_like: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.randperm: [{'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'SymInt'}],
+    torch._C._VariableFunctions.randperm: [{'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'SymInt'}, {'is_kwarg_only': 'True', 'name': 'generator', 'simple_type': 'Generator?'}],
+    torch._C._VariableFunctions.randperm: [{'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'SymInt'}],
+    torch._C._VariableFunctions.randperm: [{'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'SymInt'}, {'is_kwarg_only': 'True', 'name': 'generator', 'simple_type': 'Generator?'}],
+    torch._C._VariableFunctions.ravel: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.reciprocal: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.reciprocal: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.reciprocal_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.neg: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.neg: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.neg_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.negative: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.negative: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.negative_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.repeat_interleave: [{'is_kwarg_only': 'False', 'name': 'repeats', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.repeat_interleave: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'repeats', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.repeat_interleave: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'repeats', 'simple_type': 'SymInt'}],
+    torch._C._VariableFunctions.reshape: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'shape', 'simple_type': 'SymIntArrayRef'}],
+    torch._C._VariableFunctions._mkldnn_reshape: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'shape', 'simple_type': 'IntArrayRef'}],
+    torch._C._VariableFunctions.round: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.round: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.round: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.round: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.round_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.round_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.rrelu: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.rrelu_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.relu: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.relu_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.prelu: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._prelu_kernel: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.hardshrink: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.hardshrink: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.rsqrt: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.rsqrt: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.rsqrt_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.select: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.select: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'SymInt'}],
+    torch._C._VariableFunctions.selu: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.selu_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.celu: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.celu_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.sigmoid: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.sigmoid: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.sigmoid_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.logit: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.logit: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.logit_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.sin: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.sin: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.sin_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.sinc: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.sinc: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.sinc_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.sinh: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.sinh: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.sinh_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.detach: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.detach_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.slice_inverse: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'src', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.slice_scatter: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'src', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.slice_scatter: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'src', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.select_scatter: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'src', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'SymInt'}],
+    torch._C._VariableFunctions.diagonal_scatter: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'src', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.as_strided_scatter: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'src', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'stride', 'simple_type': 'SymIntArrayRef'}],
+    torch._C._VariableFunctions.smm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mat2', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.softmax: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.softmax: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.softmax: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch._C._VariableFunctions._softmax: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'half_to_float', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions._softmax: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'half_to_float', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions._softmax_backward_data: [{'is_kwarg_only': 'False', 'name': 'grad_output', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'input_dtype', 'simple_type': 'ScalarType'}],
+    torch._C._VariableFunctions._softmax_backward_data: [{'is_kwarg_only': 'False', 'name': 'grad_output', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'input_dtype', 'simple_type': 'ScalarType'}],
+    torch._C._VariableFunctions.unsafe_split: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'split_size', 'simple_type': 'SymInt'}],
+    torch._C._VariableFunctions.split: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'split_size', 'simple_type': 'SymInt'}],
+    torch._C._VariableFunctions.split: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'split_size', 'simple_type': 'SymIntArrayRef'}],
+    torch._C._VariableFunctions.unsafe_split_with_sizes: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'split_sizes', 'simple_type': 'SymIntArrayRef'}],
+    torch._C._VariableFunctions.split_with_sizes: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'split_sizes', 'simple_type': 'SymIntArrayRef'}],
+    torch._C._VariableFunctions.hsplit: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'sections', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.hsplit: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'indices', 'simple_type': 'IntArrayRef'}],
+    torch._C._VariableFunctions.vsplit: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'sections', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.vsplit: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'indices', 'simple_type': 'IntArrayRef'}],
+    torch._C._VariableFunctions.dsplit: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'sections', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.dsplit: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'indices', 'simple_type': 'IntArrayRef'}],
+    torch._C._VariableFunctions.squeeze: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.squeeze: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.squeeze: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch._C._VariableFunctions.squeeze: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'IntArrayRef'}],
+    torch._C._VariableFunctions.sspaddmm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mat1', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mat2', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.sspaddmm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mat1', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mat2', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._chunk_cat: [{'is_kwarg_only': 'False', 'name': 'tensors', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'num_chunks', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions._chunk_cat: [{'is_kwarg_only': 'False', 'name': 'tensors', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'num_chunks', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.stack: [{'is_kwarg_only': 'False', 'name': 'tensors', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions.stack: [{'is_kwarg_only': 'False', 'name': 'tensors', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._stack: [{'is_kwarg_only': 'False', 'name': 'tensors', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._stack: [{'is_kwarg_only': 'False', 'name': 'tensors', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions.hstack: [{'is_kwarg_only': 'False', 'name': 'tensors', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions.hstack: [{'is_kwarg_only': 'False', 'name': 'tensors', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions.vstack: [{'is_kwarg_only': 'False', 'name': 'tensors', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions.vstack: [{'is_kwarg_only': 'False', 'name': 'tensors', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions.dstack: [{'is_kwarg_only': 'False', 'name': 'tensors', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions.dstack: [{'is_kwarg_only': 'False', 'name': 'tensors', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions.stft: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n_fft', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.stft: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n_fft', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.istft: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n_fft', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.sum: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.sum: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'IntArrayRef?', 'size': 1}],
+    torch._C._VariableFunctions.sum: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'DimnameList', 'size': 1}],
+    torch._C._VariableFunctions.sum: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'IntArrayRef?', 'size': 1}],
+    torch._C._VariableFunctions.sum: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'DimnameList', 'size': 1}],
+    torch._C._VariableFunctions.nansum: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.nansum: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.sqrt: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.sqrt: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.sqrt_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.square: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.square: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.square_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.std: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.std: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'IntArrayRef?', 'size': 1}],
+    torch._C._VariableFunctions.std: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.std: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'IntArrayRef?', 'size': 1}],
+    torch._C._VariableFunctions.std: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.std: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'DimnameList', 'size': 1}],
+    torch._C._VariableFunctions.std: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'DimnameList', 'size': 1}],
+    torch._C._VariableFunctions.std: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'DimnameList', 'size': 1}],
+    torch._C._VariableFunctions.std: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'DimnameList', 'size': 1}],
+    torch._C._VariableFunctions.std_mean: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.std_mean: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'IntArrayRef?', 'size': 1}],
+    torch._C._VariableFunctions.std_mean: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.std_mean: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'DimnameList', 'size': 1}],
+    torch._C._VariableFunctions.std_mean: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'DimnameList', 'size': 1}],
+    torch._C._VariableFunctions.prod: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.prod: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.prod: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.prod: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch._C._VariableFunctions.prod: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch._C._VariableFunctions.t: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.tan: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.tan: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.tan_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.tanh: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.tanh: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.tanh_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.tensordot: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dims_self', 'simple_type': 'IntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'dims_other', 'simple_type': 'IntArrayRef'}],
+    torch._C._VariableFunctions.tensordot: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dims_self', 'simple_type': 'IntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'dims_other', 'simple_type': 'IntArrayRef'}],
+    torch._C._VariableFunctions.threshold: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'threshold', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'value', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.threshold: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'threshold', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'value', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.threshold_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'threshold', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'value', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.tile: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dims', 'simple_type': 'SymIntArrayRef'}],
+    torch._C._VariableFunctions.transpose: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim0', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'dim1', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.transpose: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim0', 'simple_type': 'Dimname'}, {'is_kwarg_only': 'False', 'name': 'dim1', 'simple_type': 'Dimname'}],
+    torch._C._VariableFunctions._mkldnn_transpose: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim0', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'dim1', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions._mkldnn_transpose_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim0', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'dim1', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.flip: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dims', 'simple_type': 'IntArrayRef'}],
+    torch._C._VariableFunctions.fliplr: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.flipud: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.roll: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'shifts', 'simple_type': 'SymIntArrayRef', 'size': 1}],
+    torch._C._VariableFunctions.rot90: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.trapezoid: [{'is_kwarg_only': 'False', 'name': 'y', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.trapezoid: [{'is_kwarg_only': 'False', 'name': 'y', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.trapz: [{'is_kwarg_only': 'False', 'name': 'y', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.trapz: [{'is_kwarg_only': 'False', 'name': 'y', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._transform_bias_rescale_qkv: [{'is_kwarg_only': 'False', 'name': 'qkv', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'qkv_bias', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'num_heads', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions._nested_tensor_from_mask: [{'is_kwarg_only': 'False', 'name': 't', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mask', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._nested_tensor_from_mask_left_aligned: [{'is_kwarg_only': 'False', 'name': 't', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mask', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._nested_from_padded: [{'is_kwarg_only': 'False', 'name': 'padded', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'cpu_nested_shape_example', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._nested_from_padded_and_nested_example: [{'is_kwarg_only': 'False', 'name': 'padded', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'nt_example', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._nested_view_from_buffer: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'nested_size', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'nested_strides', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'offsets', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._nested_view_from_buffer_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'nested_size', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'nested_strides', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'offsets', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._nested_view_from_buffer_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'nested_size', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'nested_strides', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'offsets', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._nested_view_from_jagged: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'offsets', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dummy', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._nested_view_from_jagged_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'offsets', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dummy', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._nested_view_from_jagged_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'offsets', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dummy', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._nested_get_values: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._nested_get_values_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._nested_get_values_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._nested_get_offsets: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._nested_get_lengths: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._nested_get_ragged_idx: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._nested_get_jagged_dummy: [{'is_kwarg_only': 'False', 'name': 'any', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._trilinear: [{'is_kwarg_only': 'False', 'name': 'i1', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'i2', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'i3', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'expand1', 'simple_type': 'IntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'expand2', 'simple_type': 'IntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'expand3', 'simple_type': 'IntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'sumdim', 'simple_type': 'IntArrayRef'}],
+    torch._C._VariableFunctions.triplet_margin_loss: [{'is_kwarg_only': 'False', 'name': 'anchor', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'positive', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'negative', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.trunc: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.trunc: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.trunc_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.fix: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.fix: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.fix_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._has_compatible_shallow_copy_type: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'from', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._unique: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.unique_dim: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.unique_consecutive: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._unique2: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.unsqueeze: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.vander: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.var: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.var: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'IntArrayRef?', 'size': 1}],
+    torch._C._VariableFunctions.var: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.var: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'IntArrayRef?', 'size': 1}],
+    torch._C._VariableFunctions.var: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.var: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'DimnameList', 'size': 1}],
+    torch._C._VariableFunctions.var: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'DimnameList', 'size': 1}],
+    torch._C._VariableFunctions.var: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'DimnameList', 'size': 1}],
+    torch._C._VariableFunctions.var: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'DimnameList', 'size': 1}],
+    torch._C._VariableFunctions.var_mean: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.var_mean: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'IntArrayRef?', 'size': 1}],
+    torch._C._VariableFunctions.var_mean: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.var_mean: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'DimnameList', 'size': 1}],
+    torch._C._VariableFunctions.var_mean: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'DimnameList', 'size': 1}],
+    torch._C._VariableFunctions.where: [{'is_kwarg_only': 'False', 'name': 'condition', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.where: [{'is_kwarg_only': 'False', 'name': 'condition', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.where: [{'is_kwarg_only': 'False', 'name': 'condition', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.where: [{'is_kwarg_only': 'False', 'name': 'condition', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.where: [{'is_kwarg_only': 'False', 'name': 'condition', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.where: [{'is_kwarg_only': 'False', 'name': 'condition', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.norm_except_dim: [{'is_kwarg_only': 'False', 'name': 'v', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._weight_norm: [{'is_kwarg_only': 'False', 'name': 'v', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'g', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._weight_norm_interface: [{'is_kwarg_only': 'False', 'name': 'v', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'g', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.zeros: [{'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'IntArrayRef'}, {'is_kwarg_only': 'True', 'name': 'names', 'simple_type': 'DimnameList?'}],
+    torch._C._VariableFunctions.zeros: [{'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}],
+    torch._C._VariableFunctions.zeros: [{'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}],
+    torch._C._VariableFunctions._efficientzerotensor: [{'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}],
+    torch._C._VariableFunctions.zeros_like: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._standard_gamma_grad: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._standard_gamma: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._dirichlet_grad: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'alpha', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'total', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._sample_dirichlet: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.poisson: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.binomial: [{'is_kwarg_only': 'False', 'name': 'count', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'prob', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.native_norm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.native_norm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'p', 'simple_type': 'Scalar?'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'IntArrayRef', 'size': 1}, {'is_kwarg_only': 'False', 'name': 'keepdim', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'dtype', 'simple_type': 'ScalarType?'}],
+    torch._C._VariableFunctions._sparse_sum: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._sparse_sum: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'True', 'name': 'dtype', 'simple_type': 'ScalarType'}],
+    torch._C._VariableFunctions._sparse_sum: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'IntArrayRef', 'size': 1}],
+    torch._C._VariableFunctions._sparse_sum: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'IntArrayRef', 'size': 1}, {'is_kwarg_only': 'True', 'name': 'dtype', 'simple_type': 'ScalarType'}],
+    torch._C._VariableFunctions._sparse_csr_sum: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'IntArrayRef', 'size': 1}],
+    torch._C._VariableFunctions._sparse_csr_prod: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'IntArrayRef', 'size': 1}],
+    torch._C._VariableFunctions._sparse_softmax_backward_data: [{'is_kwarg_only': 'False', 'name': 'grad_output', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._sparse_log_softmax_backward_data: [{'is_kwarg_only': 'False', 'name': 'grad_output', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.norm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'p', 'simple_type': 'Scalar?'}, {'is_kwarg_only': 'True', 'name': 'dtype', 'simple_type': 'ScalarType'}],
+    torch._C._VariableFunctions.norm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.norm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'p', 'simple_type': 'Scalar?'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'IntArrayRef', 'size': 1}, {'is_kwarg_only': 'False', 'name': 'keepdim', 'simple_type': 'bool'}, {'is_kwarg_only': 'True', 'name': 'dtype', 'simple_type': 'ScalarType'}],
+    torch._C._VariableFunctions.norm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'p', 'simple_type': 'Scalar?'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'IntArrayRef', 'size': 1}],
+    torch._C._VariableFunctions.norm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'p', 'simple_type': 'Scalar?'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'IntArrayRef', 'size': 1}, {'is_kwarg_only': 'False', 'name': 'keepdim', 'simple_type': 'bool'}, {'is_kwarg_only': 'True', 'name': 'dtype', 'simple_type': 'ScalarType'}],
+    torch._C._VariableFunctions.norm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'p', 'simple_type': 'Scalar?'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'IntArrayRef', 'size': 1}],
+    torch._C._VariableFunctions.norm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'p', 'simple_type': 'Scalar?'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'DimnameList', 'size': 1}, {'is_kwarg_only': 'False', 'name': 'keepdim', 'simple_type': 'bool'}, {'is_kwarg_only': 'True', 'name': 'dtype', 'simple_type': 'ScalarType'}],
+    torch._C._VariableFunctions.norm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'p', 'simple_type': 'Scalar?'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'DimnameList', 'size': 1}],
+    torch._C._VariableFunctions.norm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'p', 'simple_type': 'Scalar?'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'DimnameList', 'size': 1}, {'is_kwarg_only': 'False', 'name': 'keepdim', 'simple_type': 'bool'}, {'is_kwarg_only': 'True', 'name': 'dtype', 'simple_type': 'ScalarType'}],
+    torch._C._VariableFunctions.norm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'p', 'simple_type': 'Scalar?'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'DimnameList', 'size': 1}],
+    torch._C._VariableFunctions.frexp: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.frexp: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.frobenius_norm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'IntArrayRef', 'size': 1}],
+    torch._C._VariableFunctions.frobenius_norm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'IntArrayRef', 'size': 1}],
+    torch._C._VariableFunctions.nuclear_norm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.nuclear_norm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.nuclear_norm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'IntArrayRef', 'size': 2}],
+    torch._C._VariableFunctions.nuclear_norm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'IntArrayRef', 'size': 2}],
+    torch._C._VariableFunctions.clone: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.positive: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.resize_as_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'the_template', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.resize_as_sparse_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'the_template', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.zero_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.sub: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.sub: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.subtract: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.subtract: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.subtract: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.rsub: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.rsub: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.heaviside: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'values', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.heaviside: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'values', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.addmm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mat1', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mat2', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.addmm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mat1', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mat2', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._addmm_activation: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mat1', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mat2', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._addmm_activation: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mat1', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mat2', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._scaled_mm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mat2', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._scaled_mm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mat2', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._validate_sparse_coo_tensor_args: [{'is_kwarg_only': 'False', 'name': 'indices', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'values', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'IntArrayRef'}],
+    torch._C._VariableFunctions._validate_sparse_compressed_tensor_args: [{'is_kwarg_only': 'False', 'name': 'compressed_indices', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'plain_indices', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'values', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'IntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'layout', 'simple_type': 'Layout'}],
+    torch._C._VariableFunctions._validate_sparse_csr_tensor_args: [{'is_kwarg_only': 'False', 'name': 'crow_indices', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'col_indices', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'values', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'IntArrayRef'}],
+    torch._C._VariableFunctions._validate_sparse_csc_tensor_args: [{'is_kwarg_only': 'False', 'name': 'ccol_indices', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'row_indices', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'values', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'IntArrayRef'}],
+    torch._C._VariableFunctions._validate_sparse_bsr_tensor_args: [{'is_kwarg_only': 'False', 'name': 'crow_indices', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'col_indices', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'values', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'IntArrayRef'}],
+    torch._C._VariableFunctions._validate_sparse_bsc_tensor_args: [{'is_kwarg_only': 'False', 'name': 'ccol_indices', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'row_indices', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'values', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'IntArrayRef'}],
+    torch._C._VariableFunctions._to_cpu: [{'is_kwarg_only': 'False', 'name': 'tensors', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._coalesce: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.hspmm: [{'is_kwarg_only': 'False', 'name': 'mat1', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mat2', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.hspmm: [{'is_kwarg_only': 'False', 'name': 'mat1', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mat2', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.unbind: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.unbind: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch._C._VariableFunctions._to_sparse_semi_structured: [{'is_kwarg_only': 'False', 'name': 'dense', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.quantize_per_tensor_dynamic: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dtype', 'simple_type': 'ScalarType'}, {'is_kwarg_only': 'False', 'name': 'reduce_range', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions.quantize_per_tensor: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'scale', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'zero_point', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'dtype', 'simple_type': 'ScalarType'}],
+    torch._C._VariableFunctions.quantize_per_tensor: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'scale', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'zero_point', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dtype', 'simple_type': 'ScalarType'}],
+    torch._C._VariableFunctions.quantize_per_tensor: [{'is_kwarg_only': 'False', 'name': 'tensors', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'scales', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'zero_points', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dtype', 'simple_type': 'ScalarType'}],
+    torch._C._VariableFunctions.quantize_per_channel: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'scales', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'zero_points', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'axis', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'dtype', 'simple_type': 'ScalarType'}],
+    torch._C._VariableFunctions.dequantize: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.dequantize: [{'is_kwarg_only': 'False', 'name': 'tensors', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions.q_scale: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.q_zero_point: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.q_per_channel_scales: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.q_per_channel_zero_points: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.q_per_channel_axis: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.int_repr: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._make_per_tensor_quantized_tensor: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'scale', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'zero_point', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions._make_per_channel_quantized_tensor: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'scale', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'zero_point', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'axis', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.fake_quantize_per_tensor_affine: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'scale', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'zero_point', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'quant_min', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'quant_max', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.fake_quantize_per_tensor_affine: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'scale', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'zero_point', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'quant_min', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'quant_max', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions._fake_quantize_per_tensor_affine_cachemask_tensor_qparams: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'scale', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'zero_point', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'fake_quant_enabled', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'quant_min', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'quant_max', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions._fake_quantize_learnable_per_tensor_affine: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'scale', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'zero_point', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'quant_min', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'quant_max', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.fake_quantize_per_channel_affine: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'scale', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'zero_point', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'axis', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'quant_min', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'quant_max', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions._fake_quantize_learnable_per_channel_affine: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'scale', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'zero_point', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'axis', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'quant_min', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'quant_max', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.fused_moving_avg_obs_fake_quant: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'observer_on', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'fake_quant_on', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'running_min', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'running_max', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'scale', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'zero_point', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'averaging_const', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'quant_min', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'quant_max', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'ch_axis', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions._fused_moving_avg_obs_fq_helper: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'observer_on', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'fake_quant_on', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'running_min', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'running_max', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'scale', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'zero_point', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'averaging_const', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'quant_min', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'quant_max', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'ch_axis', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions._choose_qparams_per_tensor: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._saturate_weight_to_fp16: [{'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.choose_qparams_optimized: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'numel', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'n_bins', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'ratio', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'bit_width', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.meshgrid: [{'is_kwarg_only': 'False', 'name': 'tensors', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions.meshgrid: [{'is_kwarg_only': 'False', 'name': 'tensors', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'True', 'name': 'indexing', 'simple_type': 'c10::string_view'}],
+    torch._C._VariableFunctions.cartesian_prod: [{'is_kwarg_only': 'False', 'name': 'tensors', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions.combinations: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.result_type: [{'is_kwarg_only': 'False', 'name': 'tensor', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.result_type: [{'is_kwarg_only': 'False', 'name': 'tensor', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.result_type: [{'is_kwarg_only': 'False', 'name': 'scalar', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'tensor', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.result_type: [{'is_kwarg_only': 'False', 'name': 'scalar1', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'scalar2', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.can_cast: [{'is_kwarg_only': 'False', 'name': 'from', 'simple_type': 'ScalarType'}, {'is_kwarg_only': 'False', 'name': 'to', 'simple_type': 'ScalarType'}],
+    torch._C._VariableFunctions.promote_types: [{'is_kwarg_only': 'False', 'name': 'type1', 'simple_type': 'ScalarType'}, {'is_kwarg_only': 'False', 'name': 'type2', 'simple_type': 'ScalarType'}],
+    torch._C._VariableFunctions._lstm_mps: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'hx', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'params', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'has_biases', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'num_layers', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'dropout', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'train', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'bidirectional', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'batch_first', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions.lstm: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'hx', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'params', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'has_biases', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'num_layers', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'dropout', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'train', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'bidirectional', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'batch_first', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions.lstm: [{'is_kwarg_only': 'False', 'name': 'data', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'batch_sizes', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'hx', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'params', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'has_biases', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'num_layers', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'dropout', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'train', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'bidirectional', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions.gru: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'hx', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'params', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'has_biases', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'num_layers', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'dropout', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'train', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'bidirectional', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'batch_first', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions.gru: [{'is_kwarg_only': 'False', 'name': 'data', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'batch_sizes', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'hx', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'params', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'has_biases', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'num_layers', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'dropout', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'train', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'bidirectional', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions.rnn_tanh: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'hx', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'params', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'has_biases', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'num_layers', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'dropout', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'train', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'bidirectional', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'batch_first', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions.rnn_tanh: [{'is_kwarg_only': 'False', 'name': 'data', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'batch_sizes', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'hx', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'params', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'has_biases', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'num_layers', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'dropout', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'train', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'bidirectional', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions.rnn_relu: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'hx', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'params', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'has_biases', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'num_layers', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'dropout', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'train', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'bidirectional', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'batch_first', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions.rnn_relu: [{'is_kwarg_only': 'False', 'name': 'data', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'batch_sizes', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'hx', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'params', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'has_biases', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'num_layers', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'dropout', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'train', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'bidirectional', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions.lstm_cell: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'hx', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'w_ih', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'w_hh', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.gru_cell: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'hx', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'w_ih', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'w_hh', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.rnn_tanh_cell: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'hx', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'w_ih', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'w_hh', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.rnn_relu_cell: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'hx', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'w_ih', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'w_hh', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.quantized_lstm_cell: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'hx', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'w_ih', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'w_hh', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'b_ih', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'b_hh', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'packed_ih', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'packed_hh', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'col_offsets_ih', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'col_offsets_hh', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'scale_ih', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'scale_hh', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'zero_point_ih', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'zero_point_hh', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.quantized_gru_cell: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'hx', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'w_ih', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'w_hh', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'b_ih', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'b_hh', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'packed_ih', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'packed_hh', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'col_offsets_ih', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'col_offsets_hh', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'scale_ih', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'scale_hh', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'zero_point_ih', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'zero_point_hh', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.quantized_rnn_relu_cell: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'hx', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'w_ih', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'w_hh', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'b_ih', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'b_hh', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'packed_ih', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'packed_hh', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'col_offsets_ih', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'col_offsets_hh', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'scale_ih', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'scale_hh', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'zero_point_ih', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'zero_point_hh', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.quantized_rnn_tanh_cell: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'hx', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'w_ih', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'w_hh', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'b_ih', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'b_hh', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'packed_ih', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'packed_hh', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'col_offsets_ih', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'col_offsets_hh', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'scale_ih', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'scale_hh', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'zero_point_ih', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'zero_point_hh', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions._pack_padded_sequence: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'lengths', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'batch_first', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions._pad_packed_sequence: [{'is_kwarg_only': 'False', 'name': 'data', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'batch_sizes', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'batch_first', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'padding_value', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'total_length', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.masked_fill: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mask', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'value', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.masked_fill: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mask', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'value', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.masked_scatter: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mask', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'source', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._masked_softmax: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mask', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.put: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'source', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.index_add: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'source', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.index_add: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'source', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.index_add: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'source', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.index_reduce: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'source', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'reduce', 'simple_type': 'c10::string_view'}],
+    torch._C._VariableFunctions.index_reduce: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'source', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'reduce', 'simple_type': 'c10::string_view'}],
+    torch._C._VariableFunctions.index_fill: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'value', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.index_fill: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'value', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.index_fill: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'value', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.index_fill: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'value', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.scatter: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'src', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.scatter: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'src', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.scatter: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'value', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.scatter: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'value', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.scatter: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'src', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'True', 'name': 'reduce', 'simple_type': 'c10::string_view'}],
+    torch._C._VariableFunctions.scatter: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'src', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'True', 'name': 'reduce', 'simple_type': 'c10::string_view'}],
+    torch._C._VariableFunctions.scatter: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'value', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'True', 'name': 'reduce', 'simple_type': 'c10::string_view'}],
+    torch._C._VariableFunctions.scatter: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'value', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'True', 'name': 'reduce', 'simple_type': 'c10::string_view'}],
+    torch._C._VariableFunctions.scatter: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'src', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.scatter: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'value', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.scatter_add: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'src', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.scatter_add: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'src', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.scatter_add: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'src', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.scatter_reduce: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'src', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'reduce', 'simple_type': 'c10::string_view'}],
+    torch._C._VariableFunctions.scatter_reduce: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'src', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'reduce', 'simple_type': 'c10::string_view'}],
+    torch._C._VariableFunctions.bitwise_and: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.bitwise_and: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.bitwise_and: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.bitwise_and: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.bitwise_and: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.__and__: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.__and__: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.bitwise_or: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.bitwise_or: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.bitwise_or: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.bitwise_or: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.bitwise_or: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.__or__: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.__or__: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.bitwise_xor: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.bitwise_xor: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.bitwise_xor: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.bitwise_xor: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.bitwise_xor: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.__xor__: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.__xor__: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.__lshift__: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.__lshift__: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.bitwise_left_shift: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.bitwise_left_shift: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.bitwise_left_shift: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.bitwise_left_shift: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.bitwise_left_shift: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.__rshift__: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.__rshift__: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.bitwise_right_shift: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.bitwise_right_shift: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.bitwise_right_shift: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.bitwise_right_shift: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.bitwise_right_shift: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.addbmm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'batch1', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'batch2', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.addbmm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'batch1', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'batch2', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.diag: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.diag: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.cross: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.cross: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.triu: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.triu: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.tril: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.tril: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.tril_indices: [{'is_kwarg_only': 'False', 'name': 'row', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'col', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.triu_indices: [{'is_kwarg_only': 'False', 'name': 'row', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'col', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.trace: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.ne: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.ne: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.ne: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.ne: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.not_equal: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.not_equal: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.not_equal: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.not_equal: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.eq: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.eq: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.eq: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.eq: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.ge: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.ge: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.ge: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.ge: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.greater_equal: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.greater_equal: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.greater_equal: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.greater_equal: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.le: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.le: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.le: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.le: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.less_equal: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.less_equal: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.less_equal: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.less_equal: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.gt: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.gt: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.gt: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.gt: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.greater: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.greater: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.greater: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.greater: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.lt: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.lt: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.lt: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.lt: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.less: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.less: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.less: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.less: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.take: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.take: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.take_along_dim: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'indices', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.take_along_dim: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'indices', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.index_select: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.index_select: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.index_select: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.index_select: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.masked_select: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mask', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.masked_select: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mask', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.nonzero_static: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'True', 'name': 'size', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.nonzero_static: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'True', 'name': 'size', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.argwhere: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.gather: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.gather: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.gather: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.gather: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.addcmul: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'tensor1', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'tensor2', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.addcmul: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'tensor1', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'tensor2', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.addcdiv: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'tensor1', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'tensor2', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.addcdiv: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'tensor1', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'tensor2', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.triangular_solve: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'A', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.triangular_solve: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'A', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._linalg_check_errors: [{'is_kwarg_only': 'False', 'name': 'info', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'api_name', 'simple_type': 'c10::string_view'}, {'is_kwarg_only': 'True', 'name': 'is_matrix', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions.svd: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.svd: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.swapaxes: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'axis0', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'axis1', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.swapdims: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim0', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'dim1', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.cholesky: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.cholesky: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.cholesky_solve: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'input2', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.cholesky_solve: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'input2', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.cholesky_inverse: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.cholesky_inverse: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.qr: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.qr: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.geqrf: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.geqrf: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.orgqr: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'input2', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.orgqr: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'input2', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.ormqr: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'input2', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'input3', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.ormqr: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'input2', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'input3', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._lu_with_info: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.lu_solve: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'LU_data', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'LU_pivots', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.lu_solve: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'LU_data', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'LU_pivots', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.lu_unpack: [{'is_kwarg_only': 'False', 'name': 'LU_data', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'LU_pivots', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.lu_unpack: [{'is_kwarg_only': 'False', 'name': 'LU_data', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'LU_pivots', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.multinomial: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'num_samples', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.multinomial: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'num_samples', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.lgamma: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.lgamma: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.digamma: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.digamma: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.polygamma: [{'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.polygamma: [{'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.erfinv: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.erfinv: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.i0: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.i0: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.i0_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.sign: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.sign: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.signbit: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.signbit: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.dist: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.atan2: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.atan2: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.arctan2: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.arctan2: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.lerp: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'end', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.lerp: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'end', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.lerp: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'end', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.lerp: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'end', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.histc: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.histc: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.histogram: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'bins', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.histogram: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'bins', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.histogram: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.histogram: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._histogramdd_bin_edges: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'bins', 'simple_type': 'IntArrayRef'}],
+    torch._C._VariableFunctions._histogramdd_from_bin_cts: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'bins', 'simple_type': 'IntArrayRef'}],
+    torch._C._VariableFunctions._histogramdd_from_bin_tensors: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'bins', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions.histogramdd: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'bins', 'simple_type': 'IntArrayRef'}],
+    torch._C._VariableFunctions.histogramdd: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'bins', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.histogramdd: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'bins', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions.fmod: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.fmod: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.fmod: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.fmod: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.hypot: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.hypot: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.igamma: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.igamma: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.igammac: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.igammac: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.nextafter: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.nextafter: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.remainder: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.remainder: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.remainder: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.remainder: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.remainder: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.fmin: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.fmin: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.fmax: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.fmax: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.maximum: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.maximum: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.minimum: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.minimum: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.quantile: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'q', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.quantile: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'q', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.quantile: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'q', 'simple_type': 'double'}],
+    torch._C._VariableFunctions.quantile: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'q', 'simple_type': 'double'}],
+    torch._C._VariableFunctions.nanquantile: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'q', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.nanquantile: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'q', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.nanquantile: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'q', 'simple_type': 'double'}],
+    torch._C._VariableFunctions.nanquantile: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'q', 'simple_type': 'double'}],
+    torch._C._VariableFunctions.sort: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.sort: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'True', 'name': 'stable', 'simple_type': 'bool?'}],
+    torch._C._VariableFunctions.sort: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.sort: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'True', 'name': 'stable', 'simple_type': 'bool?'}],
+    torch._C._VariableFunctions.sort: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch._C._VariableFunctions.sort: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'True', 'name': 'stable', 'simple_type': 'bool?'}, {'is_kwarg_only': 'True', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch._C._VariableFunctions.sort: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch._C._VariableFunctions.sort: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'True', 'name': 'stable', 'simple_type': 'bool?'}, {'is_kwarg_only': 'True', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch._C._VariableFunctions.msort: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.msort: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.argsort: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.argsort: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'True', 'name': 'stable', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions.argsort: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch._C._VariableFunctions.topk: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'k', 'simple_type': 'SymInt'}],
+    torch._C._VariableFunctions.topk: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'k', 'simple_type': 'SymInt'}],
+    torch._C._VariableFunctions.renorm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'p', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'maxnorm', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.renorm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'p', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'maxnorm', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.equal: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.pow: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'exponent', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.pow: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'exponent', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.pow: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'exponent', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.pow: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'exponent', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.pow: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'exponent', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.pow: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'exponent', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.float_power: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'exponent', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.float_power: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'exponent', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.float_power: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'exponent', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.float_power: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'exponent', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.float_power: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'exponent', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.float_power: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'exponent', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.normal: [{'is_kwarg_only': 'False', 'name': 'mean', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.normal: [{'is_kwarg_only': 'False', 'name': 'mean', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.normal: [{'is_kwarg_only': 'False', 'name': 'mean', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'std', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.normal: [{'is_kwarg_only': 'False', 'name': 'mean', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'std', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.normal: [{'is_kwarg_only': 'False', 'name': 'mean', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'std', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.normal: [{'is_kwarg_only': 'False', 'name': 'mean', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'std', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.normal: [{'is_kwarg_only': 'False', 'name': 'mean', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'std', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}],
+    torch._C._VariableFunctions.normal: [{'is_kwarg_only': 'False', 'name': 'mean', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'std', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}],
+    torch._C._VariableFunctions._amp_foreach_non_finite_check_and_unscale_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'found_inf', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'inv_scale', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._amp_update_scale_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'growth_tracker', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'found_inf', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'scale_growth_factor', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'scale_backoff_factor', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'growth_interval', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions._foreach_add: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'scalar', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions._foreach_add: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_add: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'scalars', 'simple_type': 'ScalarList'}],
+    torch._C._VariableFunctions._foreach_add: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._foreach_add_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'scalar', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions._foreach_add_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_add_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'scalars', 'simple_type': 'ScalarList'}],
+    torch._C._VariableFunctions._foreach_add_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._foreach_sub: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'scalar', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions._foreach_sub: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_sub: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'scalars', 'simple_type': 'ScalarList'}],
+    torch._C._VariableFunctions._foreach_sub_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'scalar', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions._foreach_sub_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_sub_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'scalars', 'simple_type': 'ScalarList'}],
+    torch._C._VariableFunctions._foreach_mul: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'scalar', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions._foreach_mul: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_mul: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'scalars', 'simple_type': 'ScalarList'}],
+    torch._C._VariableFunctions._foreach_mul: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._foreach_mul_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'scalar', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions._foreach_mul_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_mul_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'scalars', 'simple_type': 'ScalarList'}],
+    torch._C._VariableFunctions._foreach_mul_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._foreach_div: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'scalar', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions._foreach_div: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_div: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'scalars', 'simple_type': 'ScalarList'}],
+    torch._C._VariableFunctions._foreach_div: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._foreach_div_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'scalar', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions._foreach_div_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_div_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'scalars', 'simple_type': 'ScalarList'}],
+    torch._C._VariableFunctions._foreach_div_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._foreach_clamp_max: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'scalar', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions._foreach_clamp_max: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_clamp_max: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'scalars', 'simple_type': 'ScalarList'}],
+    torch._C._VariableFunctions._foreach_clamp_max_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'scalar', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions._foreach_clamp_max_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_clamp_max_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'scalars', 'simple_type': 'ScalarList'}],
+    torch._C._VariableFunctions._foreach_clamp_min: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'scalar', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions._foreach_clamp_min: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_clamp_min: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'scalars', 'simple_type': 'ScalarList'}],
+    torch._C._VariableFunctions._foreach_clamp_min_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'scalar', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions._foreach_clamp_min_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_clamp_min_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'scalars', 'simple_type': 'ScalarList'}],
+    torch._C._VariableFunctions._foreach_maximum: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'scalar', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions._foreach_maximum: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_maximum: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'scalars', 'simple_type': 'ScalarList'}],
+    torch._C._VariableFunctions._foreach_maximum_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'scalar', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions._foreach_maximum_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_maximum_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'scalars', 'simple_type': 'ScalarList'}],
+    torch._C._VariableFunctions._foreach_minimum: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'scalar', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions._foreach_minimum: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_minimum: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'scalars', 'simple_type': 'ScalarList'}],
+    torch._C._VariableFunctions._foreach_minimum_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'scalar', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions._foreach_minimum_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_minimum_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'scalars', 'simple_type': 'ScalarList'}],
+    torch._C._VariableFunctions._foreach_addcdiv: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'tensor1', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'tensor2', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_addcdiv: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'tensor1', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'tensor2', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'scalars', 'simple_type': 'ScalarList'}],
+    torch._C._VariableFunctions._foreach_addcdiv: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'tensor1', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'tensor2', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'scalars', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._foreach_addcdiv_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'tensor1', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'tensor2', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_addcdiv_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'tensor1', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'tensor2', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'scalars', 'simple_type': 'ScalarList'}],
+    torch._C._VariableFunctions._foreach_addcdiv_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'tensor1', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'tensor2', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'scalars', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._foreach_addcmul: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'tensor1', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'tensor2', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_addcmul: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'tensor1', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'tensor2', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'scalars', 'simple_type': 'ScalarList'}],
+    torch._C._VariableFunctions._foreach_addcmul: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'tensor1', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'tensor2', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'scalars', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._foreach_addcmul_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'tensor1', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'tensor2', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_addcmul_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'tensor1', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'tensor2', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'scalars', 'simple_type': 'ScalarList'}],
+    torch._C._VariableFunctions._foreach_addcmul_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'tensor1', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'tensor2', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'scalars', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._foreach_abs: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_abs_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_acos: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_acos_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_asin: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_asin_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_atan: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_atan_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_ceil: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_ceil_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_cos: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_cos_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_cosh: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_cosh_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_erf: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_erf_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_erfc: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_erfc_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_exp: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_exp_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_expm1: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_expm1_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_floor: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_floor_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_frac: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_frac_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_lerp: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'tensors1', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'weights', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_lerp: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'tensors1', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions._foreach_lerp_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'tensors1', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'weights', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_lerp_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'tensors1', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions._foreach_lgamma: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_lgamma_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_log: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_log_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_log10: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_log10_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_log1p: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_log1p_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_log2: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_log2_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_neg: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_neg_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_norm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_pow: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'exponent', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_pow: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'exponent', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions._foreach_pow: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'exponent', 'simple_type': 'ScalarList'}],
+    torch._C._VariableFunctions._foreach_pow: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'exponent', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_pow_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'exponent', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_pow_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'exponent', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions._foreach_pow_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'exponent', 'simple_type': 'ScalarList'}],
+    torch._C._VariableFunctions._foreach_reciprocal: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_reciprocal_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_round: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_round_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_sigmoid: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_sigmoid_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_sign: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_sign_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_sin: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_sin_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_sinh: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_sinh_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_sqrt: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_sqrt_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_tan: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_tan_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_tanh: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_tanh_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_trunc: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_trunc_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_zero_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._foreach_copy_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'src', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions.bucketize: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'boundaries', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.bucketize: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'boundaries', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.bucketize: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'boundaries', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.searchsorted: [{'is_kwarg_only': 'False', 'name': 'sorted_sequence', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.searchsorted: [{'is_kwarg_only': 'False', 'name': 'sorted_sequence', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.searchsorted: [{'is_kwarg_only': 'False', 'name': 'sorted_sequence', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions.searchsorted: [{'is_kwarg_only': 'False', 'name': 'sorted_sequence', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Scalar'}],
+    torch._C._VariableFunctions._convert_indices_from_coo_to_csr: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions._convert_indices_from_coo_to_csr: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions._convert_indices_from_csr_to_coo: [{'is_kwarg_only': 'False', 'name': 'crow_indices', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'col_indices', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._convert_indices_from_csr_to_coo: [{'is_kwarg_only': 'False', 'name': 'crow_indices', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'col_indices', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.mkldnn_adaptive_avg_pool2d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'IntArrayRef', 'size': 2}],
+    torch._C._VariableFunctions.mkldnn_adaptive_avg_pool2d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'IntArrayRef', 'size': 2}],
+    torch._C._VariableFunctions._adaptive_avg_pool2d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'SymIntArrayRef', 'size': 2}],
+    torch._C._VariableFunctions._adaptive_avg_pool3d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'SymIntArrayRef', 'size': 3}],
+    torch._C._VariableFunctions.column_stack: [{'is_kwarg_only': 'False', 'name': 'tensors', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions.column_stack: [{'is_kwarg_only': 'False', 'name': 'tensors', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions.isfinite: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.isinf: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.isposinf: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.isposinf: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.isneginf: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.isneginf: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._add_batch_dim: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'batch_dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'level', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions._remove_batch_dim: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'level', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'batch_size', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'out_dim', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions._linalg_det: [{'is_kwarg_only': 'False', 'name': 'A', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._linalg_det: [{'is_kwarg_only': 'False', 'name': 'A', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.det: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._linalg_slogdet: [{'is_kwarg_only': 'False', 'name': 'A', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._linalg_slogdet: [{'is_kwarg_only': 'False', 'name': 'A', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.slogdet: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.slogdet: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.logdet: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._linalg_eigh: [{'is_kwarg_only': 'False', 'name': 'A', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._linalg_eigh: [{'is_kwarg_only': 'False', 'name': 'A', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.inverse: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.inverse: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.inner: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.inner: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.outer: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'vec2', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.outer: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'vec2', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.ger: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'vec2', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.ger: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'vec2', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._linalg_svd: [{'is_kwarg_only': 'False', 'name': 'A', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._linalg_svd: [{'is_kwarg_only': 'False', 'name': 'A', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._linalg_solve_ex: [{'is_kwarg_only': 'False', 'name': 'A', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'B', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._linalg_solve_ex: [{'is_kwarg_only': 'False', 'name': 'A', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'B', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._test_serialization_subcmul: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._test_parallel_materialize: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'num_parallel', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions._test_autograd_multiple_dispatch: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._test_autograd_multiple_dispatch: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'b', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions._test_autograd_multiple_dispatch_view: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._test_autograd_multiple_dispatch_view_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._test_autograd_multiple_dispatch_view_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.segment_reduce: [{'is_kwarg_only': 'False', 'name': 'data', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'reduce', 'simple_type': 'c10::string_view'}],
+    torch._C._VariableFunctions._nested_tensor_from_tensor_list: [{'is_kwarg_only': 'False', 'name': 'list', 'simple_type': 'TensorList'}],
+    torch._C._VariableFunctions._fw_primal_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'level', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions._fw_primal_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'level', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions._make_dual_copy: [{'is_kwarg_only': 'False', 'name': 'primal', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'tangent', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'level', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions._make_dual_copy: [{'is_kwarg_only': 'False', 'name': 'primal', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'tangent', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'level', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.view_as_real_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.view_as_real_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.view_as_complex_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.view_as_complex_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._conj_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._conj_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._neg_view_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._neg_view_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.as_strided_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'stride', 'simple_type': 'SymIntArrayRef'}],
+    torch._C._VariableFunctions.as_strided_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'stride', 'simple_type': 'SymIntArrayRef'}],
+    torch._C._VariableFunctions._sparse_broadcast_to_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'IntArrayRef'}],
+    torch._C._VariableFunctions._sparse_broadcast_to_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'IntArrayRef'}],
+    torch._C._VariableFunctions.diagonal_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.diagonal_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.expand_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}],
+    torch._C._VariableFunctions.expand_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}],
+    torch._C._VariableFunctions.permute_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dims', 'simple_type': 'IntArrayRef'}],
+    torch._C._VariableFunctions.permute_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dims', 'simple_type': 'IntArrayRef'}],
+    torch._C._VariableFunctions._reshape_alias_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'stride', 'simple_type': 'SymIntArrayRef'}],
+    torch._C._VariableFunctions._reshape_alias_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'stride', 'simple_type': 'SymIntArrayRef'}],
+    torch._C._VariableFunctions.select_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'SymInt'}],
+    torch._C._VariableFunctions.select_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'SymInt'}],
+    torch._C._VariableFunctions.detach_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.detach_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.slice_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.slice_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.split_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'split_size', 'simple_type': 'SymInt'}],
+    torch._C._VariableFunctions.split_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'split_size', 'simple_type': 'SymInt'}],
+    torch._C._VariableFunctions.split_with_sizes_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'split_sizes', 'simple_type': 'SymIntArrayRef'}],
+    torch._C._VariableFunctions.split_with_sizes_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'split_sizes', 'simple_type': 'SymIntArrayRef'}],
+    torch._C._VariableFunctions.squeeze_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.squeeze_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.squeeze_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'IntArrayRef'}],
+    torch._C._VariableFunctions.squeeze_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.squeeze_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.squeeze_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'IntArrayRef'}],
+    torch._C._VariableFunctions.t_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.t_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.transpose_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim0', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'dim1', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.transpose_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim0', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'dim1', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.unsqueeze_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.unsqueeze_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions._indices_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._indices_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._values_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._values_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.indices_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.indices_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.values_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.values_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.crow_indices_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.crow_indices_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.col_indices_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.col_indices_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.ccol_indices_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.ccol_indices_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.row_indices_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.row_indices_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.unbind_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.unbind_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.view_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}],
+    torch._C._VariableFunctions.view_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dtype', 'simple_type': 'ScalarType'}],
+    torch._C._VariableFunctions.view_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}],
+    torch._C._VariableFunctions.view_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dtype', 'simple_type': 'ScalarType'}],
+    torch._C._VariableFunctions.unfold_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dimension', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'step', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.unfold_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dimension', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'step', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions.alias_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions.alias_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._nested_tensor_softmax_with_shape: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'query', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._transformer_encoder_layer_fwd: [{'is_kwarg_only': 'False', 'name': 'src', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'embed_dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'num_heads', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'qkv_weight', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'qkv_bias', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'proj_weight', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'proj_bias', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'use_gelu', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'norm_first', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'eps', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'norm_weight_1', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'norm_bias_1', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'norm_weight_2', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'norm_bias_2', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'ffn_weight_1', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'ffn_bias_1', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'ffn_weight_2', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'ffn_bias_2', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._native_multi_head_attention: [{'is_kwarg_only': 'False', 'name': 'query', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'key', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'value', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'embed_dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'num_head', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'qkv_weight', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'qkv_bias', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'proj_weight', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'proj_bias', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._fused_sdp_choice: [{'is_kwarg_only': 'False', 'name': 'query', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'key', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'value', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._scaled_dot_product_attention_math: [{'is_kwarg_only': 'False', 'name': 'query', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'key', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'value', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._scaled_dot_product_flash_attention: [{'is_kwarg_only': 'False', 'name': 'query', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'key', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'value', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._scaled_dot_product_flash_attention_for_cpu: [{'is_kwarg_only': 'False', 'name': 'query', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'key', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'value', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._scaled_dot_product_efficient_attention: [{'is_kwarg_only': 'False', 'name': 'query', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'key', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'value', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'attn_bias', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'compute_log_sumexp', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions._scaled_dot_product_cudnn_attention: [{'is_kwarg_only': 'False', 'name': 'query', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'key', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'value', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._triton_scaled_dot_attention: [{'is_kwarg_only': 'False', 'name': 'q', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'k', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'v', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._fill_mem_eff_dropout_mask_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dropout_p', 'simple_type': 'double'}, {'is_kwarg_only': 'False', 'name': 'seed', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'offset', 'simple_type': 'int64_t'}],
+    torch._C._VariableFunctions._triton_multi_head_attention: [{'is_kwarg_only': 'False', 'name': 'query', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'key', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'value', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'embed_dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'num_head', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'qkv_weight', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'qkv_bias', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'proj_weight', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'proj_bias', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._foobar: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._VariableFunctions._fused_adam_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'grads', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'exp_avgs', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'exp_avg_sqs', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'max_exp_avg_sqs', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'state_steps', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'True', 'name': 'lr', 'simple_type': 'double'}, {'is_kwarg_only': 'True', 'name': 'beta1', 'simple_type': 'double'}, {'is_kwarg_only': 'True', 'name': 'beta2', 'simple_type': 'double'}, {'is_kwarg_only': 'True', 'name': 'weight_decay', 'simple_type': 'double'}, {'is_kwarg_only': 'True', 'name': 'eps', 'simple_type': 'double'}, {'is_kwarg_only': 'True', 'name': 'amsgrad', 'simple_type': 'bool'}, {'is_kwarg_only': 'True', 'name': 'maximize', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions._fused_adam_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'grads', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'exp_avgs', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'exp_avg_sqs', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'max_exp_avg_sqs', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'state_steps', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'True', 'name': 'lr', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'True', 'name': 'beta1', 'simple_type': 'double'}, {'is_kwarg_only': 'True', 'name': 'beta2', 'simple_type': 'double'}, {'is_kwarg_only': 'True', 'name': 'weight_decay', 'simple_type': 'double'}, {'is_kwarg_only': 'True', 'name': 'eps', 'simple_type': 'double'}, {'is_kwarg_only': 'True', 'name': 'amsgrad', 'simple_type': 'bool'}, {'is_kwarg_only': 'True', 'name': 'maximize', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions._fused_adamw_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'grads', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'exp_avgs', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'exp_avg_sqs', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'max_exp_avg_sqs', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'state_steps', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'True', 'name': 'lr', 'simple_type': 'double'}, {'is_kwarg_only': 'True', 'name': 'beta1', 'simple_type': 'double'}, {'is_kwarg_only': 'True', 'name': 'beta2', 'simple_type': 'double'}, {'is_kwarg_only': 'True', 'name': 'weight_decay', 'simple_type': 'double'}, {'is_kwarg_only': 'True', 'name': 'eps', 'simple_type': 'double'}, {'is_kwarg_only': 'True', 'name': 'amsgrad', 'simple_type': 'bool'}, {'is_kwarg_only': 'True', 'name': 'maximize', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions._fused_adamw_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'grads', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'exp_avgs', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'exp_avg_sqs', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'max_exp_avg_sqs', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'state_steps', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'True', 'name': 'lr', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'True', 'name': 'beta1', 'simple_type': 'double'}, {'is_kwarg_only': 'True', 'name': 'beta2', 'simple_type': 'double'}, {'is_kwarg_only': 'True', 'name': 'weight_decay', 'simple_type': 'double'}, {'is_kwarg_only': 'True', 'name': 'eps', 'simple_type': 'double'}, {'is_kwarg_only': 'True', 'name': 'amsgrad', 'simple_type': 'bool'}, {'is_kwarg_only': 'True', 'name': 'maximize', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions._fused_sgd_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'grads', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'momentum_buffer_list', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'True', 'name': 'weight_decay', 'simple_type': 'double'}, {'is_kwarg_only': 'True', 'name': 'momentum', 'simple_type': 'double'}, {'is_kwarg_only': 'True', 'name': 'lr', 'simple_type': 'double'}, {'is_kwarg_only': 'True', 'name': 'dampening', 'simple_type': 'double'}, {'is_kwarg_only': 'True', 'name': 'nesterov', 'simple_type': 'bool'}, {'is_kwarg_only': 'True', 'name': 'maximize', 'simple_type': 'bool'}, {'is_kwarg_only': 'True', 'name': 'is_first_step', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions._fused_sgd_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'grads', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'False', 'name': 'momentum_buffer_list', 'simple_type': 'TensorList'}, {'is_kwarg_only': 'True', 'name': 'weight_decay', 'simple_type': 'double'}, {'is_kwarg_only': 'True', 'name': 'momentum', 'simple_type': 'double'}, {'is_kwarg_only': 'True', 'name': 'lr', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'True', 'name': 'dampening', 'simple_type': 'double'}, {'is_kwarg_only': 'True', 'name': 'nesterov', 'simple_type': 'bool'}, {'is_kwarg_only': 'True', 'name': 'maximize', 'simple_type': 'bool'}, {'is_kwarg_only': 'True', 'name': 'is_first_step', 'simple_type': 'bool'}],
+    torch._C._VariableFunctions._propagate_xla_data: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output', 'simple_type': 'Tensor'}],
+    torch._C._nn.binary_cross_entropy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'target', 'simple_type': 'Tensor'}],
+    torch._C._nn.binary_cross_entropy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'target', 'simple_type': 'Tensor'}],
+    torch._C._nn.linear: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}],
+    torch._C._nn.linear: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}],
+    torch._C._nn.mkldnn_linear: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}],
+    torch._C._nn.relu6: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._nn.relu6_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._nn.gelu: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._nn.gelu: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._nn.gelu_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._nn.silu: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._nn.silu: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._nn.silu_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._nn.mish: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._nn.mish: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._nn.mish_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._nn.one_hot: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._nn.mkldnn_reorder_conv2d_weight: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._nn.mkldnn_reorder_conv3d_weight: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._nn.cross_entropy_loss: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'target', 'simple_type': 'Tensor'}],
+    torch._C._nn.mse_loss: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'target', 'simple_type': 'Tensor'}],
+    torch._C._nn.mse_loss: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'target', 'simple_type': 'Tensor'}],
+    torch._C._nn.l1_loss: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'target', 'simple_type': 'Tensor'}],
+    torch._C._nn.multi_margin_loss: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'target', 'simple_type': 'Tensor'}],
+    torch._C._nn.multi_margin_loss: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'target', 'simple_type': 'Tensor'}],
+    torch._C._nn.multilabel_margin_loss: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'target', 'simple_type': 'Tensor'}],
+    torch._C._nn.multilabel_margin_loss: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'target', 'simple_type': 'Tensor'}],
+    torch._C._nn.nll_loss: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'target', 'simple_type': 'Tensor'}],
+    torch._C._nn.nll_loss: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'target', 'simple_type': 'Tensor'}],
+    torch._C._nn.nll_loss_nd: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'target', 'simple_type': 'Tensor'}],
+    torch._C._nn.nll_loss2d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'target', 'simple_type': 'Tensor'}],
+    torch._C._nn.nll_loss2d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'target', 'simple_type': 'Tensor'}],
+    torch._C._nn.smooth_l1_loss: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'target', 'simple_type': 'Tensor'}],
+    torch._C._nn.smooth_l1_loss: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'target', 'simple_type': 'Tensor'}],
+    torch._C._nn.huber_loss: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'target', 'simple_type': 'Tensor'}],
+    torch._C._nn.huber_loss: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'target', 'simple_type': 'Tensor'}],
+    torch._C._nn.soft_margin_loss: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'target', 'simple_type': 'Tensor'}],
+    torch._C._nn.soft_margin_loss: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'target', 'simple_type': 'Tensor'}],
+    torch._C._nn.elu: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._nn.elu: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._nn.elu_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._nn.glu: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._nn.glu: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._nn.hardsigmoid: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._nn.hardsigmoid: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._nn.hardsigmoid_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._nn.hardtanh: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._nn.hardtanh: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._nn.hardtanh_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._nn.hardswish: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._nn.hardswish: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._nn.hardswish_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._nn.leaky_relu: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._nn.leaky_relu: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._nn.leaky_relu_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._nn.log_sigmoid: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._nn.log_sigmoid: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._nn.rrelu_with_noise: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'noise', 'simple_type': 'Tensor'}],
+    torch._C._nn.rrelu_with_noise: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'noise', 'simple_type': 'Tensor'}],
+    torch._C._nn.rrelu_with_noise_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'noise', 'simple_type': 'Tensor'}],
+    torch._C._nn.softplus: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._nn.softplus: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._nn.softshrink: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._nn.softshrink: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._nn.adaptive_avg_pool2d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'SymIntArrayRef', 'size': 2}],
+    torch._C._nn.adaptive_avg_pool2d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'SymIntArrayRef', 'size': 2}],
+    torch._C._nn.adaptive_avg_pool3d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'SymIntArrayRef', 'size': 3}],
+    torch._C._nn.adaptive_avg_pool3d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'SymIntArrayRef', 'size': 3}],
+    torch._C._nn.adaptive_max_pool2d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'IntArrayRef', 'size': 2}],
+    torch._C._nn.adaptive_max_pool2d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'IntArrayRef', 'size': 2}],
+    torch._C._nn.adaptive_max_pool3d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'IntArrayRef', 'size': 3}],
+    torch._C._nn.adaptive_max_pool3d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'IntArrayRef', 'size': 3}],
+    torch._C._nn.avg_pool2d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'kernel_size', 'simple_type': 'IntArrayRef', 'size': 2}],
+    torch._C._nn.avg_pool2d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'kernel_size', 'simple_type': 'IntArrayRef', 'size': 2}],
+    torch._C._nn.avg_pool3d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'kernel_size', 'simple_type': 'IntArrayRef', 'size': 3}],
+    torch._C._nn.avg_pool3d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'kernel_size', 'simple_type': 'IntArrayRef', 'size': 3}],
+    torch._C._nn.fractional_max_pool2d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'kernel_size', 'simple_type': 'IntArrayRef', 'size': 2}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'IntArrayRef', 'size': 2}, {'is_kwarg_only': 'False', 'name': 'random_samples', 'simple_type': 'Tensor'}],
+    torch._C._nn.fractional_max_pool2d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'kernel_size', 'simple_type': 'IntArrayRef', 'size': 2}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'IntArrayRef', 'size': 2}, {'is_kwarg_only': 'False', 'name': 'random_samples', 'simple_type': 'Tensor'}],
+    torch._C._nn.fractional_max_pool3d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'kernel_size', 'simple_type': 'IntArrayRef', 'size': 3}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'IntArrayRef', 'size': 3}, {'is_kwarg_only': 'False', 'name': 'random_samples', 'simple_type': 'Tensor'}],
+    torch._C._nn.fractional_max_pool3d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'kernel_size', 'simple_type': 'IntArrayRef', 'size': 3}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'IntArrayRef', 'size': 3}, {'is_kwarg_only': 'False', 'name': 'random_samples', 'simple_type': 'Tensor'}],
+    torch._C._nn.max_pool2d_with_indices: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'kernel_size', 'simple_type': 'IntArrayRef', 'size': 2}],
+    torch._C._nn.max_pool2d_with_indices: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'kernel_size', 'simple_type': 'IntArrayRef', 'size': 2}],
+    torch._C._nn.max_pool3d_with_indices: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'kernel_size', 'simple_type': 'IntArrayRef', 'size': 3}],
+    torch._C._nn.max_pool3d_with_indices: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'kernel_size', 'simple_type': 'IntArrayRef', 'size': 3}],
+    torch._C._nn.max_unpool2d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'indices', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'SymIntArrayRef', 'size': 2}],
+    torch._C._nn.max_unpool2d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'indices', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'SymIntArrayRef', 'size': 2}],
+    torch._C._nn.max_unpool3d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'indices', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'SymIntArrayRef', 'size': 3}, {'is_kwarg_only': 'False', 'name': 'stride', 'simple_type': 'IntArrayRef', 'size': 3}, {'is_kwarg_only': 'False', 'name': 'padding', 'simple_type': 'IntArrayRef', 'size': 3}],
+    torch._C._nn.max_unpool3d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'indices', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'SymIntArrayRef', 'size': 3}, {'is_kwarg_only': 'False', 'name': 'stride', 'simple_type': 'IntArrayRef', 'size': 3}, {'is_kwarg_only': 'False', 'name': 'padding', 'simple_type': 'IntArrayRef', 'size': 3}],
+    torch._C._nn.reflection_pad1d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'padding', 'simple_type': 'SymIntArrayRef', 'size': 2}],
+    torch._C._nn.reflection_pad1d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'padding', 'simple_type': 'SymIntArrayRef', 'size': 2}],
+    torch._C._nn.reflection_pad2d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'padding', 'simple_type': 'SymIntArrayRef', 'size': 4}],
+    torch._C._nn.reflection_pad2d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'padding', 'simple_type': 'SymIntArrayRef', 'size': 4}],
+    torch._C._nn.reflection_pad3d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'padding', 'simple_type': 'SymIntArrayRef', 'size': 6}],
+    torch._C._nn.reflection_pad3d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'padding', 'simple_type': 'SymIntArrayRef', 'size': 6}],
+    torch._C._nn.replication_pad1d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'padding', 'simple_type': 'SymIntArrayRef', 'size': 2}],
+    torch._C._nn.replication_pad1d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'padding', 'simple_type': 'SymIntArrayRef', 'size': 2}],
+    torch._C._nn.replication_pad2d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'padding', 'simple_type': 'SymIntArrayRef', 'size': 4}],
+    torch._C._nn.replication_pad2d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'padding', 'simple_type': 'SymIntArrayRef', 'size': 4}],
+    torch._C._nn.replication_pad3d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'padding', 'simple_type': 'SymIntArrayRef', 'size': 6}],
+    torch._C._nn.replication_pad3d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'padding', 'simple_type': 'SymIntArrayRef', 'size': 6}],
+    torch._C._nn._pad_circular: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'pad', 'simple_type': 'SymIntArrayRef'}],
+    torch._C._nn._pad_enum: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'pad', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'mode', 'simple_type': 'int64_t'}],
+    torch._C._nn.pad: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'pad', 'simple_type': 'SymIntArrayRef'}],
+    torch._C._nn.upsample_linear1d: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'SymIntArrayRef?'}, {'is_kwarg_only': 'False', 'name': 'align_corners', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'scale_factors', 'simple_type': 'ArrayRef?'}],
+    torch._C._nn.upsample_linear1d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'SymIntArrayRef', 'size': 1}, {'is_kwarg_only': 'False', 'name': 'align_corners', 'simple_type': 'bool'}],
+    torch._C._nn.upsample_linear1d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'SymIntArrayRef', 'size': 1}, {'is_kwarg_only': 'False', 'name': 'align_corners', 'simple_type': 'bool'}],
+    torch._C._nn.upsample_bilinear2d: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'SymIntArrayRef?'}, {'is_kwarg_only': 'False', 'name': 'align_corners', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'scale_factors', 'simple_type': 'ArrayRef?'}],
+    torch._C._nn.upsample_bilinear2d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'SymIntArrayRef', 'size': 2}, {'is_kwarg_only': 'False', 'name': 'align_corners', 'simple_type': 'bool'}],
+    torch._C._nn.upsample_bilinear2d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'SymIntArrayRef', 'size': 2}, {'is_kwarg_only': 'False', 'name': 'align_corners', 'simple_type': 'bool'}],
+    torch._C._nn._upsample_bilinear2d_aa: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'SymIntArrayRef?'}, {'is_kwarg_only': 'False', 'name': 'align_corners', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'scale_factors', 'simple_type': 'ArrayRef?'}],
+    torch._C._nn._upsample_bilinear2d_aa: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'SymIntArrayRef', 'size': 2}, {'is_kwarg_only': 'False', 'name': 'align_corners', 'simple_type': 'bool'}],
+    torch._C._nn._upsample_bilinear2d_aa: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'SymIntArrayRef', 'size': 2}, {'is_kwarg_only': 'False', 'name': 'align_corners', 'simple_type': 'bool'}],
+    torch._C._nn.upsample_trilinear3d: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'SymIntArrayRef?'}, {'is_kwarg_only': 'False', 'name': 'align_corners', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'scale_factors', 'simple_type': 'ArrayRef?'}],
+    torch._C._nn.upsample_trilinear3d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'SymIntArrayRef', 'size': 3}, {'is_kwarg_only': 'False', 'name': 'align_corners', 'simple_type': 'bool'}],
+    torch._C._nn.upsample_trilinear3d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'SymIntArrayRef', 'size': 3}, {'is_kwarg_only': 'False', 'name': 'align_corners', 'simple_type': 'bool'}],
+    torch._C._nn.upsample_bicubic2d: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'SymIntArrayRef?'}, {'is_kwarg_only': 'False', 'name': 'align_corners', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'scale_factors', 'simple_type': 'ArrayRef?'}],
+    torch._C._nn.upsample_bicubic2d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'SymIntArrayRef', 'size': 2}, {'is_kwarg_only': 'False', 'name': 'align_corners', 'simple_type': 'bool'}],
+    torch._C._nn.upsample_bicubic2d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'SymIntArrayRef', 'size': 2}, {'is_kwarg_only': 'False', 'name': 'align_corners', 'simple_type': 'bool'}],
+    torch._C._nn._upsample_bicubic2d_aa: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'SymIntArrayRef?'}, {'is_kwarg_only': 'False', 'name': 'align_corners', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'scale_factors', 'simple_type': 'ArrayRef?'}],
+    torch._C._nn._upsample_bicubic2d_aa: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'SymIntArrayRef', 'size': 2}, {'is_kwarg_only': 'False', 'name': 'align_corners', 'simple_type': 'bool'}],
+    torch._C._nn._upsample_bicubic2d_aa: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'SymIntArrayRef', 'size': 2}, {'is_kwarg_only': 'False', 'name': 'align_corners', 'simple_type': 'bool'}],
+    torch._C._nn.upsample_nearest1d: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'SymIntArrayRef?'}, {'is_kwarg_only': 'False', 'name': 'scale_factors', 'simple_type': 'ArrayRef?'}],
+    torch._C._nn.upsample_nearest1d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'SymIntArrayRef', 'size': 1}],
+    torch._C._nn.upsample_nearest1d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'SymIntArrayRef', 'size': 1}],
+    torch._C._nn._upsample_nearest_exact1d: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'SymIntArrayRef?'}, {'is_kwarg_only': 'False', 'name': 'scale_factors', 'simple_type': 'ArrayRef?'}],
+    torch._C._nn._upsample_nearest_exact1d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'SymIntArrayRef', 'size': 1}],
+    torch._C._nn._upsample_nearest_exact1d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'SymIntArrayRef', 'size': 1}],
+    torch._C._nn.upsample_nearest2d: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'SymIntArrayRef?'}, {'is_kwarg_only': 'False', 'name': 'scale_factors', 'simple_type': 'ArrayRef?'}],
+    torch._C._nn.upsample_nearest2d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'SymIntArrayRef', 'size': 2}],
+    torch._C._nn.upsample_nearest2d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'SymIntArrayRef', 'size': 2}],
+    torch._C._nn._upsample_nearest_exact2d: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'SymIntArrayRef?'}, {'is_kwarg_only': 'False', 'name': 'scale_factors', 'simple_type': 'ArrayRef?'}],
+    torch._C._nn._upsample_nearest_exact2d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'SymIntArrayRef', 'size': 2}],
+    torch._C._nn._upsample_nearest_exact2d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'SymIntArrayRef', 'size': 2}],
+    torch._C._nn.upsample_nearest3d: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'SymIntArrayRef?'}, {'is_kwarg_only': 'False', 'name': 'scale_factors', 'simple_type': 'ArrayRef?'}],
+    torch._C._nn.upsample_nearest3d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'SymIntArrayRef', 'size': 3}],
+    torch._C._nn.upsample_nearest3d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'SymIntArrayRef', 'size': 3}],
+    torch._C._nn._upsample_nearest_exact3d: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'SymIntArrayRef?'}, {'is_kwarg_only': 'False', 'name': 'scale_factors', 'simple_type': 'ArrayRef?'}],
+    torch._C._nn._upsample_nearest_exact3d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'SymIntArrayRef', 'size': 3}],
+    torch._C._nn._upsample_nearest_exact3d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'SymIntArrayRef', 'size': 3}],
+    torch._C._nn.slow_conv_transpose2d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'kernel_size', 'simple_type': 'SymIntArrayRef', 'size': 2}],
+    torch._C._nn.slow_conv_transpose2d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'kernel_size', 'simple_type': 'SymIntArrayRef', 'size': 2}],
+    torch._C._nn.slow_conv_transpose3d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'kernel_size', 'simple_type': 'SymIntArrayRef', 'size': 3}],
+    torch._C._nn.slow_conv_transpose3d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'kernel_size', 'simple_type': 'SymIntArrayRef', 'size': 3}],
+    torch._C._nn.thnn_conv2d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'kernel_size', 'simple_type': 'SymIntArrayRef', 'size': 2}],
+    torch._C._nn.thnn_conv2d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'kernel_size', 'simple_type': 'SymIntArrayRef', 'size': 2}],
+    torch._C._nn._conv_depthwise2d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'kernel_size', 'simple_type': 'SymIntArrayRef', 'size': 2}, {'is_kwarg_only': 'False', 'name': 'bias', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'stride', 'simple_type': 'SymIntArrayRef', 'size': 2}, {'is_kwarg_only': 'False', 'name': 'padding', 'simple_type': 'SymIntArrayRef', 'size': 2}, {'is_kwarg_only': 'False', 'name': 'dilation', 'simple_type': 'SymIntArrayRef', 'size': 2}],
+    torch._C._nn._conv_depthwise2d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'kernel_size', 'simple_type': 'SymIntArrayRef', 'size': 2}, {'is_kwarg_only': 'False', 'name': 'bias', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'stride', 'simple_type': 'SymIntArrayRef', 'size': 2}, {'is_kwarg_only': 'False', 'name': 'padding', 'simple_type': 'SymIntArrayRef', 'size': 2}, {'is_kwarg_only': 'False', 'name': 'dilation', 'simple_type': 'SymIntArrayRef', 'size': 2}],
+    torch._C._nn.conv_depthwise3d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'kernel_size', 'simple_type': 'SymIntArrayRef', 'size': 3}, {'is_kwarg_only': 'False', 'name': 'bias', 'simple_type': 'Tensor?'}, {'is_kwarg_only': 'False', 'name': 'stride', 'simple_type': 'SymIntArrayRef', 'size': 3}, {'is_kwarg_only': 'False', 'name': 'padding', 'simple_type': 'SymIntArrayRef', 'size': 3}, {'is_kwarg_only': 'False', 'name': 'dilation', 'simple_type': 'SymIntArrayRef', 'size': 3}],
+    torch._C._nn.slow_conv3d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'kernel_size', 'simple_type': 'SymIntArrayRef', 'size': 3}],
+    torch._C._nn.slow_conv3d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'kernel_size', 'simple_type': 'SymIntArrayRef', 'size': 3}],
+    torch._C._nn.slow_conv_dilated2d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'kernel_size', 'simple_type': 'SymIntArrayRef', 'size': 2}],
+    torch._C._nn.slow_conv_dilated3d: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'kernel_size', 'simple_type': 'SymIntArrayRef', 'size': 3}],
+    torch._C._nn.col2im: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'SymIntArrayRef', 'size': 2}, {'is_kwarg_only': 'False', 'name': 'kernel_size', 'simple_type': 'IntArrayRef', 'size': 2}, {'is_kwarg_only': 'False', 'name': 'dilation', 'simple_type': 'IntArrayRef', 'size': 2}, {'is_kwarg_only': 'False', 'name': 'padding', 'simple_type': 'IntArrayRef', 'size': 2}, {'is_kwarg_only': 'False', 'name': 'stride', 'simple_type': 'IntArrayRef', 'size': 2}],
+    torch._C._nn.col2im: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'output_size', 'simple_type': 'SymIntArrayRef', 'size': 2}, {'is_kwarg_only': 'False', 'name': 'kernel_size', 'simple_type': 'IntArrayRef', 'size': 2}, {'is_kwarg_only': 'False', 'name': 'dilation', 'simple_type': 'IntArrayRef', 'size': 2}, {'is_kwarg_only': 'False', 'name': 'padding', 'simple_type': 'IntArrayRef', 'size': 2}, {'is_kwarg_only': 'False', 'name': 'stride', 'simple_type': 'IntArrayRef', 'size': 2}],
+    torch._C._nn.im2col: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'kernel_size', 'simple_type': 'IntArrayRef', 'size': 2}, {'is_kwarg_only': 'False', 'name': 'dilation', 'simple_type': 'IntArrayRef', 'size': 2}, {'is_kwarg_only': 'False', 'name': 'padding', 'simple_type': 'IntArrayRef', 'size': 2}, {'is_kwarg_only': 'False', 'name': 'stride', 'simple_type': 'IntArrayRef', 'size': 2}],
+    torch._C._nn.im2col: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'kernel_size', 'simple_type': 'IntArrayRef', 'size': 2}, {'is_kwarg_only': 'False', 'name': 'dilation', 'simple_type': 'IntArrayRef', 'size': 2}, {'is_kwarg_only': 'False', 'name': 'padding', 'simple_type': 'IntArrayRef', 'size': 2}, {'is_kwarg_only': 'False', 'name': 'stride', 'simple_type': 'IntArrayRef', 'size': 2}],
+    torch._C._nn._test_optional_intlist: [{'is_kwarg_only': 'False', 'name': 'values', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'addends', 'simple_type': 'IntArrayRef?'}],
+    torch._C._nn._test_optional_filled_intlist: [{'is_kwarg_only': 'False', 'name': 'values', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'addends', 'simple_type': 'IntArrayRef?', 'size': 2}],
+    torch._C._nn._test_optional_floatlist: [{'is_kwarg_only': 'False', 'name': 'values', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'addends', 'simple_type': 'ArrayRef?'}],
+    torch._C._nn._test_string_default: [{'is_kwarg_only': 'False', 'name': 'dummy', 'simple_type': 'Tensor'}],
+    torch._C._nn._test_ambiguous_defaults: [{'is_kwarg_only': 'False', 'name': 'dummy', 'simple_type': 'Tensor'}],
+    torch._C._nn._test_ambiguous_defaults: [{'is_kwarg_only': 'False', 'name': 'dummy', 'simple_type': 'Tensor'}],
+    torch._C._nn._test_warn_in_autograd: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._nn.pad_sequence: [{'is_kwarg_only': 'False', 'name': 'sequences', 'simple_type': 'TensorList'}],
+    torch._C._nn.flatten_dense_tensors: [{'is_kwarg_only': 'False', 'name': 'tensors', 'simple_type': 'TensorList'}],
+    torch._C._nn.unflatten_dense_tensors: [{'is_kwarg_only': 'False', 'name': 'flat', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'tensors', 'simple_type': 'TensorList'}],
+    torch._C._nn.scaled_dot_product_attention: [{'is_kwarg_only': 'False', 'name': 'query', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'key', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'value', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_diagonal: [{'is_kwarg_only': 'False', 'name': 'A', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_solve_triangular: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'B', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'True', 'name': 'upper', 'simple_type': 'bool'}],
+    torch._C._linalg.linalg_solve_triangular: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'B', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'True', 'name': 'upper', 'simple_type': 'bool'}],
+    torch._C._linalg.linalg_vander: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_cholesky_ex: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_cholesky_ex: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_cholesky: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_cholesky: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_cross: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_cross: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_lu_factor: [{'is_kwarg_only': 'False', 'name': 'A', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_lu_factor: [{'is_kwarg_only': 'False', 'name': 'A', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_lu_factor_ex: [{'is_kwarg_only': 'False', 'name': 'A', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_lu_factor_ex: [{'is_kwarg_only': 'False', 'name': 'A', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_lu: [{'is_kwarg_only': 'False', 'name': 'A', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_lu: [{'is_kwarg_only': 'False', 'name': 'A', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_lu_solve: [{'is_kwarg_only': 'False', 'name': 'LU', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'pivots', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'B', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_lu_solve: [{'is_kwarg_only': 'False', 'name': 'LU', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'pivots', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'B', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_det: [{'is_kwarg_only': 'False', 'name': 'A', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_det: [{'is_kwarg_only': 'False', 'name': 'A', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_ldl_factor_ex: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_ldl_factor_ex: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_ldl_factor: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_ldl_factor: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_ldl_solve: [{'is_kwarg_only': 'False', 'name': 'LD', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'pivots', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'B', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_ldl_solve: [{'is_kwarg_only': 'False', 'name': 'LD', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'pivots', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'B', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_lstsq: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'b', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_lstsq: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'b', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_matmul: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_matmul: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_vecdot: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'y', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_vecdot: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'y', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_matrix_exp: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_slogdet: [{'is_kwarg_only': 'False', 'name': 'A', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_slogdet: [{'is_kwarg_only': 'False', 'name': 'A', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_eig: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_eig: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._linalg._linalg_eigvals: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_eigvals: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_eigvals: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_eigh: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_eigh: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_eigvalsh: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_eigvalsh: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_householder_product: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'tau', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_householder_product: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'tau', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_inv_ex: [{'is_kwarg_only': 'False', 'name': 'A', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_inv_ex: [{'is_kwarg_only': 'False', 'name': 'A', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_inv: [{'is_kwarg_only': 'False', 'name': 'A', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_inv: [{'is_kwarg_only': 'False', 'name': 'A', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_norm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_norm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'ord', 'simple_type': 'c10::string_view'}],
+    torch._C._linalg.linalg_norm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_norm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'ord', 'simple_type': 'c10::string_view'}],
+    torch._C._linalg.linalg_vector_norm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_vector_norm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_matrix_norm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'ord', 'simple_type': 'Scalar'}],
+    torch._C._linalg.linalg_matrix_norm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'ord', 'simple_type': 'Scalar'}],
+    torch._C._linalg.linalg_matrix_norm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_matrix_norm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_svd: [{'is_kwarg_only': 'False', 'name': 'A', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_svd: [{'is_kwarg_only': 'False', 'name': 'A', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_svdvals: [{'is_kwarg_only': 'False', 'name': 'A', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_svdvals: [{'is_kwarg_only': 'False', 'name': 'A', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_cond: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_cond: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_cond: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'p', 'simple_type': 'c10::string_view'}],
+    torch._C._linalg.linalg_cond: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'p', 'simple_type': 'c10::string_view'}],
+    torch._C._linalg.linalg_pinv: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_pinv: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_pinv: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_pinv: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_pinv: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'rcond', 'simple_type': 'double'}],
+    torch._C._linalg.linalg_pinv: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'rcond', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_pinv: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'rcond', 'simple_type': 'double'}],
+    torch._C._linalg.linalg_pinv: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'rcond', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_solve_ex: [{'is_kwarg_only': 'False', 'name': 'A', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'B', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_solve_ex: [{'is_kwarg_only': 'False', 'name': 'A', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'B', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_solve: [{'is_kwarg_only': 'False', 'name': 'A', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'B', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_solve: [{'is_kwarg_only': 'False', 'name': 'A', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'B', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_tensorinv: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_tensorinv: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_tensorsolve: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_tensorsolve: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_qr: [{'is_kwarg_only': 'False', 'name': 'A', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_qr: [{'is_kwarg_only': 'False', 'name': 'A', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_matrix_power: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'int64_t'}],
+    torch._C._linalg.linalg_matrix_power: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'int64_t'}],
+    torch._C._linalg.linalg_matrix_rank: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_matrix_rank: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_matrix_rank: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_matrix_rank: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_matrix_rank: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'tol', 'simple_type': 'double'}],
+    torch._C._linalg.linalg_matrix_rank: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'tol', 'simple_type': 'double'}],
+    torch._C._linalg.linalg_matrix_rank: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'tol', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_matrix_rank: [{'is_kwarg_only': 'False', 'name': 'input', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'tol', 'simple_type': 'Tensor'}],
+    torch._C._linalg.linalg_multi_dot: [{'is_kwarg_only': 'False', 'name': 'tensors', 'simple_type': 'TensorList'}],
+    torch._C._linalg.linalg_multi_dot: [{'is_kwarg_only': 'False', 'name': 'tensors', 'simple_type': 'TensorList'}],
+    torch._C._special.special_entr: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_entr: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_ndtri: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_ndtri: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_log_ndtr: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_log_ndtr: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_expm1: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_expm1: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_exp2: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_exp2: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_psi: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_psi: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_digamma: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_digamma: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_gammaln: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_gammaln: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_erf: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_erf: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_erfc: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_erfc: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_erfcx: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_erfcx: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_erfinv: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_erfinv: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_ndtr: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_ndtr: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_xlog1py: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._special.special_xlog1py: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._special.special_xlog1py: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._special.special_xlog1py: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._special.special_xlog1py: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._special.special_xlog1py: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._special.special_xlogy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._special.special_xlogy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._special.special_xlogy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._special.special_xlogy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._special.special_xlogy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._special.special_xlogy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._special.special_zeta: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._special.special_zeta: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._special.special_zeta: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._special.special_zeta: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._special.special_zeta: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._special.special_zeta: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch._C._special.special_i0: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_i0: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_i0e: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_i0e: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_i1: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_i1: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_i1e: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_i1e: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_logit: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_logit: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_polygamma: [{'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_polygamma: [{'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_logsumexp: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'IntArrayRef', 'size': 1}],
+    torch._C._special.special_logsumexp: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'IntArrayRef', 'size': 1}],
+    torch._C._special.special_expit: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_expit: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_sinc: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_sinc: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_round: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_round: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_log1p: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_log1p: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_log_softmax: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch._C._special.special_gammainc: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._special.special_gammainc: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._special.special_gammaincc: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._special.special_gammaincc: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch._C._special.special_multigammaln: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'p', 'simple_type': 'int64_t'}],
+    torch._C._special.special_multigammaln: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'p', 'simple_type': 'int64_t'}],
+    torch._C._special.special_softmax: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch._C._special.special_airy_ai: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}],
+    torch._C._special.special_airy_ai: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}],
+    torch._C._special.special_bessel_j0: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_bessel_j0: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_bessel_j1: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_bessel_j1: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_bessel_y0: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_bessel_y0: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_bessel_y1: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_bessel_y1: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_chebyshev_polynomial_t: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Tensor'}],
+    torch._C._special.special_chebyshev_polynomial_t: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Tensor'}],
+    torch._C._special.special_chebyshev_polynomial_t: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Scalar'}],
+    torch._C._special.special_chebyshev_polynomial_t: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Tensor'}],
+    torch._C._special.special_chebyshev_polynomial_t: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Tensor'}],
+    torch._C._special.special_chebyshev_polynomial_t: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Scalar'}],
+    torch._C._special.special_chebyshev_polynomial_u: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Tensor'}],
+    torch._C._special.special_chebyshev_polynomial_u: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Tensor'}],
+    torch._C._special.special_chebyshev_polynomial_u: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Scalar'}],
+    torch._C._special.special_chebyshev_polynomial_u: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Tensor'}],
+    torch._C._special.special_chebyshev_polynomial_u: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Tensor'}],
+    torch._C._special.special_chebyshev_polynomial_u: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Scalar'}],
+    torch._C._special.special_chebyshev_polynomial_v: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Tensor'}],
+    torch._C._special.special_chebyshev_polynomial_v: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Tensor'}],
+    torch._C._special.special_chebyshev_polynomial_v: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Scalar'}],
+    torch._C._special.special_chebyshev_polynomial_v: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Tensor'}],
+    torch._C._special.special_chebyshev_polynomial_v: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Tensor'}],
+    torch._C._special.special_chebyshev_polynomial_v: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Scalar'}],
+    torch._C._special.special_chebyshev_polynomial_w: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Tensor'}],
+    torch._C._special.special_chebyshev_polynomial_w: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Tensor'}],
+    torch._C._special.special_chebyshev_polynomial_w: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Scalar'}],
+    torch._C._special.special_chebyshev_polynomial_w: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Tensor'}],
+    torch._C._special.special_chebyshev_polynomial_w: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Tensor'}],
+    torch._C._special.special_chebyshev_polynomial_w: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Scalar'}],
+    torch._C._special.special_hermite_polynomial_h: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Tensor'}],
+    torch._C._special.special_hermite_polynomial_h: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Tensor'}],
+    torch._C._special.special_hermite_polynomial_h: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Scalar'}],
+    torch._C._special.special_hermite_polynomial_h: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Tensor'}],
+    torch._C._special.special_hermite_polynomial_h: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Tensor'}],
+    torch._C._special.special_hermite_polynomial_h: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Scalar'}],
+    torch._C._special.special_hermite_polynomial_he: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Tensor'}],
+    torch._C._special.special_hermite_polynomial_he: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Tensor'}],
+    torch._C._special.special_hermite_polynomial_he: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Scalar'}],
+    torch._C._special.special_hermite_polynomial_he: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Tensor'}],
+    torch._C._special.special_hermite_polynomial_he: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Tensor'}],
+    torch._C._special.special_hermite_polynomial_he: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Scalar'}],
+    torch._C._special.special_laguerre_polynomial_l: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Tensor'}],
+    torch._C._special.special_laguerre_polynomial_l: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Tensor'}],
+    torch._C._special.special_laguerre_polynomial_l: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Scalar'}],
+    torch._C._special.special_laguerre_polynomial_l: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Tensor'}],
+    torch._C._special.special_laguerre_polynomial_l: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Tensor'}],
+    torch._C._special.special_laguerre_polynomial_l: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Scalar'}],
+    torch._C._special.special_legendre_polynomial_p: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Tensor'}],
+    torch._C._special.special_legendre_polynomial_p: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Tensor'}],
+    torch._C._special.special_legendre_polynomial_p: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Scalar'}],
+    torch._C._special.special_legendre_polynomial_p: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Tensor'}],
+    torch._C._special.special_legendre_polynomial_p: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Tensor'}],
+    torch._C._special.special_legendre_polynomial_p: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Scalar'}],
+    torch._C._special.special_modified_bessel_i0: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_modified_bessel_i0: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_modified_bessel_i1: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_modified_bessel_i1: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_modified_bessel_k0: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_modified_bessel_k0: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_modified_bessel_k1: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_modified_bessel_k1: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._special.special_scaled_modified_bessel_k0: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}],
+    torch._C._special.special_scaled_modified_bessel_k0: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}],
+    torch._C._special.special_scaled_modified_bessel_k1: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}],
+    torch._C._special.special_scaled_modified_bessel_k1: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}],
+    torch._C._special.special_shifted_chebyshev_polynomial_t: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Tensor'}],
+    torch._C._special.special_shifted_chebyshev_polynomial_t: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Tensor'}],
+    torch._C._special.special_shifted_chebyshev_polynomial_t: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Scalar'}],
+    torch._C._special.special_shifted_chebyshev_polynomial_t: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Tensor'}],
+    torch._C._special.special_shifted_chebyshev_polynomial_t: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Tensor'}],
+    torch._C._special.special_shifted_chebyshev_polynomial_t: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Scalar'}],
+    torch._C._special.special_shifted_chebyshev_polynomial_u: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Tensor'}],
+    torch._C._special.special_shifted_chebyshev_polynomial_u: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Tensor'}],
+    torch._C._special.special_shifted_chebyshev_polynomial_u: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Scalar'}],
+    torch._C._special.special_shifted_chebyshev_polynomial_u: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Tensor'}],
+    torch._C._special.special_shifted_chebyshev_polynomial_u: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Tensor'}],
+    torch._C._special.special_shifted_chebyshev_polynomial_u: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Scalar'}],
+    torch._C._special.special_shifted_chebyshev_polynomial_v: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Tensor'}],
+    torch._C._special.special_shifted_chebyshev_polynomial_v: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Tensor'}],
+    torch._C._special.special_shifted_chebyshev_polynomial_v: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Scalar'}],
+    torch._C._special.special_shifted_chebyshev_polynomial_v: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Tensor'}],
+    torch._C._special.special_shifted_chebyshev_polynomial_v: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Tensor'}],
+    torch._C._special.special_shifted_chebyshev_polynomial_v: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Scalar'}],
+    torch._C._special.special_shifted_chebyshev_polynomial_w: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Tensor'}],
+    torch._C._special.special_shifted_chebyshev_polynomial_w: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Tensor'}],
+    torch._C._special.special_shifted_chebyshev_polynomial_w: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Scalar'}],
+    torch._C._special.special_shifted_chebyshev_polynomial_w: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Tensor'}],
+    torch._C._special.special_shifted_chebyshev_polynomial_w: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Tensor'}],
+    torch._C._special.special_shifted_chebyshev_polynomial_w: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'Scalar'}],
+    torch._C._special.special_spherical_bessel_j0: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}],
+    torch._C._special.special_spherical_bessel_j0: [{'is_kwarg_only': 'False', 'name': 'x', 'simple_type': 'Tensor'}],
+    torch._C._fft.fft_fft: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._fft.fft_fft: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._fft.fft_ifft: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._fft.fft_ifft: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._fft.fft_rfft: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._fft.fft_rfft: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._fft.fft_irfft: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._fft.fft_irfft: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._fft.fft_hfft: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._fft.fft_hfft: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._fft.fft_ihfft: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._fft.fft_ihfft: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._fft.fft_fft2: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._fft.fft_fft2: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._fft.fft_ifft2: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._fft.fft_ifft2: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._fft.fft_rfft2: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._fft.fft_rfft2: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._fft.fft_irfft2: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._fft.fft_irfft2: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._fft.fft_hfft2: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._fft.fft_hfft2: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._fft.fft_ihfft2: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._fft.fft_ihfft2: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._fft.fft_fftn: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._fft.fft_fftn: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._fft.fft_ifftn: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._fft.fft_ifftn: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._fft.fft_rfftn: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._fft.fft_rfftn: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._fft.fft_irfftn: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._fft.fft_irfftn: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._fft.fft_hfftn: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._fft.fft_hfftn: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._fft.fft_ihfftn: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._fft.fft_ihfftn: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._fft.fft_fftfreq: [{'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'int64_t'}],
+    torch._C._fft.fft_fftfreq: [{'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'int64_t'}],
+    torch._C._fft.fft_rfftfreq: [{'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'int64_t'}],
+    torch._C._fft.fft_rfftfreq: [{'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'int64_t'}],
+    torch._C._fft.fft_fftshift: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch._C._fft.fft_ifftshift: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.retain_grad: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.rename_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'names', 'simple_type': 'DimnameList?'}],
+    torch.Tensor.rename: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'names', 'simple_type': 'DimnameList?'}],
+    torch.Tensor.align_to: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'names', 'simple_type': 'DimnameList'}],
+    torch.Tensor.align_to: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'order', 'simple_type': 'DimnameList'}, {'is_kwarg_only': 'False', 'name': 'ellipsis_idx', 'simple_type': 'int64_t'}],
+    torch.Tensor.align_as: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.refine_names: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'names', 'simple_type': 'DimnameList'}],
+    torch.Tensor.abs: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.abs_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.absolute: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.absolute_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.angle: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.sgn: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.sgn_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.chalf: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor._conj: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.conj: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor._conj_physical: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.conj_physical: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.conj_physical_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.resolve_conj: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.resolve_neg: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor._neg_view: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.acos: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.acos_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.arccos: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.arccos_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.add: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.add_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.addmv: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mat', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'vec', 'simple_type': 'Tensor'}],
+    torch.Tensor.addmv_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mat', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'vec', 'simple_type': 'Tensor'}],
+    torch.Tensor.addr: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'vec1', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'vec2', 'simple_type': 'Tensor'}],
+    torch.Tensor.addr_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'vec1', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'vec2', 'simple_type': 'Tensor'}],
+    torch.Tensor._is_all_true: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor._is_any_true: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.all: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch.Tensor.all: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.all: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch.Tensor.all: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.allclose: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.any: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch.Tensor.any: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.any: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch.Tensor.any: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.argmax: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.argmin: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.acosh: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.acosh_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.arccosh: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.arccosh_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.asinh: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.asinh_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.arcsinh: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.arcsinh_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.atanh: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.atanh_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.arctanh: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.arctanh_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.as_strided: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'stride', 'simple_type': 'SymIntArrayRef'}],
+    torch.Tensor.as_strided_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'stride', 'simple_type': 'SymIntArrayRef'}],
+    torch.Tensor.asin: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.asin_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.arcsin: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.arcsin_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.atan: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.atan_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.arctan: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.arctan_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.baddbmm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'batch1', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'batch2', 'simple_type': 'Tensor'}],
+    torch.Tensor.baddbmm_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'batch1', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'batch2', 'simple_type': 'Tensor'}],
+    torch.Tensor.bernoulli: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.bernoulli: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'p', 'simple_type': 'double'}],
+    torch.Tensor.bernoulli_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'p', 'simple_type': 'Tensor'}],
+    torch.Tensor.bernoulli_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.bincount: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.bitwise_not: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.bitwise_not_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.copysign: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.copysign: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.copysign_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.copysign_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor._lazy_clone: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.logical_not: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.logical_not_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.logical_xor: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.logical_xor_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.logical_and: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.logical_and_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.logical_or: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.logical_or_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.bmm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mat2', 'simple_type': 'Tensor'}],
+    torch.Tensor.broadcast_to: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}],
+    torch.Tensor.ceil: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.ceil_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.unsafe_chunk: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'chunks', 'simple_type': 'int64_t'}],
+    torch.Tensor.chunk: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'chunks', 'simple_type': 'int64_t'}],
+    torch.Tensor.tensor_split: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'sections', 'simple_type': 'SymInt'}],
+    torch.Tensor.tensor_split: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'indices', 'simple_type': 'SymIntArrayRef'}],
+    torch.Tensor.tensor_split: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'tensor_indices_or_sections', 'simple_type': 'Tensor'}],
+    torch.Tensor.clamp: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.clamp: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.clamp_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.clamp_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.clamp_max: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'max', 'simple_type': 'Scalar'}],
+    torch.Tensor.clamp_max: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'max', 'simple_type': 'Tensor'}],
+    torch.Tensor.clamp_max_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'max', 'simple_type': 'Scalar'}],
+    torch.Tensor.clamp_max_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'max', 'simple_type': 'Tensor'}],
+    torch.Tensor.clamp_min: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'min', 'simple_type': 'Scalar'}],
+    torch.Tensor.clamp_min: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'min', 'simple_type': 'Tensor'}],
+    torch.Tensor.clamp_min_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'min', 'simple_type': 'Scalar'}],
+    torch.Tensor.clamp_min_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'min', 'simple_type': 'Tensor'}],
+    torch.Tensor.clip: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.clip: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.clip_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.clip_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.cos: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.cos_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.cosh: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.cosh_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.count_nonzero: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'IntArrayRef'}],
+    torch.Tensor.count_nonzero: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.cov: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.corrcoef: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.cummax: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch.Tensor.cummax: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch.Tensor.cummin: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch.Tensor.cummin: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch.Tensor.cumprod: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch.Tensor.cumprod: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch.Tensor.cumprod_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch.Tensor.cumprod_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch.Tensor.cumsum: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch.Tensor.cumsum: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch.Tensor.cumsum_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch.Tensor.cumsum_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch.Tensor.diag_embed: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.diagflat: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.diagonal: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.diagonal: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.fill_diagonal_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'fill_value', 'simple_type': 'Scalar'}],
+    torch.Tensor.diff: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.div: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.div: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'True', 'name': 'rounding_mode', 'simple_type': 'c10::string_view?'}],
+    torch.Tensor.div: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'True', 'name': 'rounding_mode', 'simple_type': 'c10::string_view?'}],
+    torch.Tensor.div_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.div_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'True', 'name': 'rounding_mode', 'simple_type': 'c10::string_view?'}],
+    torch.Tensor.div_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'True', 'name': 'rounding_mode', 'simple_type': 'c10::string_view?'}],
+    torch.Tensor.divide: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.divide: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.divide: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'True', 'name': 'rounding_mode', 'simple_type': 'c10::string_view?'}],
+    torch.Tensor.divide: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'True', 'name': 'rounding_mode', 'simple_type': 'c10::string_view?'}],
+    torch.Tensor.divide_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.divide_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.divide_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'True', 'name': 'rounding_mode', 'simple_type': 'c10::string_view?'}],
+    torch.Tensor.divide_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'True', 'name': 'rounding_mode', 'simple_type': 'c10::string_view?'}],
+    torch.Tensor.true_divide: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.true_divide: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.true_divide_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.true_divide_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.dot: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'tensor', 'simple_type': 'Tensor'}],
+    torch.Tensor.vdot: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.new_empty: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}],
+    torch.Tensor.new_empty_strided: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'stride', 'simple_type': 'SymIntArrayRef'}],
+    torch.Tensor.new_full: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'fill_value', 'simple_type': 'Scalar'}],
+    torch.Tensor.new_zeros: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}],
+    torch.Tensor.new_ones: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}],
+    torch.Tensor.resize_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}],
+    torch.Tensor.erf: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.erf_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.erfc: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.erfc_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.exp: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.exp_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.exp2: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.exp2_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.expm1: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.expm1_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.expand: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}],
+    torch.Tensor.expand_as: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.flatten: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.flatten: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'start_dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'end_dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'out_dim', 'simple_type': 'Dimname'}],
+    torch.Tensor.flatten: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'start_dim', 'simple_type': 'Dimname'}, {'is_kwarg_only': 'False', 'name': 'end_dim', 'simple_type': 'Dimname'}, {'is_kwarg_only': 'False', 'name': 'out_dim', 'simple_type': 'Dimname'}],
+    torch.Tensor.flatten: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dims', 'simple_type': 'DimnameList'}, {'is_kwarg_only': 'False', 'name': 'out_dim', 'simple_type': 'Dimname'}],
+    torch.Tensor.unflatten: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'sizes', 'simple_type': 'SymIntArrayRef'}],
+    torch.Tensor.unflatten: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}, {'is_kwarg_only': 'False', 'name': 'sizes', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'names', 'simple_type': 'DimnameList'}],
+    torch.Tensor.fill_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'value', 'simple_type': 'Scalar'}],
+    torch.Tensor.fill_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'value', 'simple_type': 'Tensor'}],
+    torch.Tensor.floor: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.floor_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.floor_divide: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.floor_divide: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.floor_divide_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.floor_divide_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.frac: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.frac_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.gcd: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.gcd_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.lcm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.lcm_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.index_copy_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'source', 'simple_type': 'Tensor'}],
+    torch.Tensor.index_copy_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'source', 'simple_type': 'Tensor'}],
+    torch.Tensor.index_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'source', 'simple_type': 'Tensor'}],
+    torch.Tensor.index_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'source', 'simple_type': 'Tensor'}],
+    torch.Tensor.index_put_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'indices', 'simple_type': 'c10::List>'}, {'is_kwarg_only': 'False', 'name': 'values', 'simple_type': 'Tensor'}],
+    torch.Tensor.index_put: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'indices', 'simple_type': 'c10::List>'}, {'is_kwarg_only': 'False', 'name': 'values', 'simple_type': 'Tensor'}],
+    torch.Tensor.isclose: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.isnan: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.is_distributed: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.is_floating_point: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.is_complex: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.is_conj: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor._is_zerotensor: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.is_neg: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.isreal: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.is_nonzero: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.is_same_size: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.is_signed: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.is_inference: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.kron: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.kthvalue: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'k', 'simple_type': 'int64_t'}],
+    torch.Tensor.kthvalue: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'k', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch.Tensor.nan_to_num: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.nan_to_num_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.ldexp: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.ldexp_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.log: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.log_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.log10: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.log10_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.log1p: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.log1p_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.log2: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.log2_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.logaddexp: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.logaddexp2: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.xlogy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.xlogy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.xlogy_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.xlogy_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.log_softmax: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch.Tensor.log_softmax: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch.Tensor.logcumsumexp: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch.Tensor.logcumsumexp: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch.Tensor.logsumexp: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'IntArrayRef', 'size': 1}],
+    torch.Tensor.logsumexp: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'DimnameList', 'size': 1}],
+    torch.Tensor.matmul: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.matrix_power: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'int64_t'}],
+    torch.Tensor.matrix_exp: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.aminmax: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.max: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch.Tensor.max: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch.Tensor.max: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.max: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.amax: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.mean: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.mean: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'IntArrayRef?', 'size': 1}],
+    torch.Tensor.mean: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'DimnameList', 'size': 1}],
+    torch.Tensor.nanmean: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.median: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.median: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch.Tensor.median: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch.Tensor.nanmedian: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.nanmedian: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch.Tensor.nanmedian: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch.Tensor.min: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch.Tensor.min: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch.Tensor.min: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.min: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.amin: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.mm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mat2', 'simple_type': 'Tensor'}],
+    torch.Tensor.mode: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.mode: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch.Tensor.mul: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.mul_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.multiply: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.multiply: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.multiply_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.multiply_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.mv: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'vec', 'simple_type': 'Tensor'}],
+    torch.Tensor.mvlgamma: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'p', 'simple_type': 'int64_t'}],
+    torch.Tensor.mvlgamma_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'p', 'simple_type': 'int64_t'}],
+    torch.Tensor.narrow_copy: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'start', 'simple_type': 'SymInt'}, {'is_kwarg_only': 'False', 'name': 'length', 'simple_type': 'SymInt'}],
+    torch.Tensor.narrow: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'start', 'simple_type': 'SymInt'}, {'is_kwarg_only': 'False', 'name': 'length', 'simple_type': 'SymInt'}],
+    torch.Tensor.narrow: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'start', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'length', 'simple_type': 'SymInt'}],
+    torch.Tensor.permute: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dims', 'simple_type': 'IntArrayRef'}],
+    torch.Tensor.movedim: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'source', 'simple_type': 'IntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'destination', 'simple_type': 'IntArrayRef'}],
+    torch.Tensor.movedim: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'source', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'destination', 'simple_type': 'int64_t'}],
+    torch.Tensor.moveaxis: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'source', 'simple_type': 'IntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'destination', 'simple_type': 'IntArrayRef'}],
+    torch.Tensor.moveaxis: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'source', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'destination', 'simple_type': 'int64_t'}],
+    torch.Tensor.adjoint: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.is_pinned: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.pin_memory: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.pinverse: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.rad2deg: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.rad2deg_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.deg2rad: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.deg2rad_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.ravel: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.reciprocal: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.reciprocal_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.neg: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.neg_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.negative: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.negative_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.repeat: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'repeats', 'simple_type': 'SymIntArrayRef'}],
+    torch.Tensor.repeat_interleave: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'repeats', 'simple_type': 'Tensor'}],
+    torch.Tensor.repeat_interleave: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'repeats', 'simple_type': 'SymInt'}],
+    torch.Tensor.reshape: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'shape', 'simple_type': 'SymIntArrayRef'}],
+    torch.Tensor.reshape_as: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.round: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.round: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.round_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.round_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.relu: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.relu_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.prelu: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}],
+    torch.Tensor.hardshrink: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.rsqrt: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.rsqrt_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.select: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'int64_t'}],
+    torch.Tensor.select: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'SymInt'}],
+    torch.Tensor.sigmoid: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.sigmoid_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.logit: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.logit_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.sin: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.sin_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.sinc: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.sinc_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.sinh: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.sinh_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.detach: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.detach_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.slice_inverse: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'src', 'simple_type': 'Tensor'}],
+    torch.Tensor.slice_scatter: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'src', 'simple_type': 'Tensor'}],
+    torch.Tensor.select_scatter: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'src', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'SymInt'}],
+    torch.Tensor.diagonal_scatter: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'src', 'simple_type': 'Tensor'}],
+    torch.Tensor.as_strided_scatter: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'src', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'stride', 'simple_type': 'SymIntArrayRef'}],
+    torch.Tensor.smm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mat2', 'simple_type': 'Tensor'}],
+    torch.Tensor.softmax: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch.Tensor.softmax: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch.Tensor.unsafe_split: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'split_size', 'simple_type': 'SymInt'}],
+    torch.Tensor.split: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'split_size', 'simple_type': 'SymInt'}],
+    torch.Tensor.split: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'split_size', 'simple_type': 'SymIntArrayRef'}],
+    torch.Tensor.unsafe_split_with_sizes: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'split_sizes', 'simple_type': 'SymIntArrayRef'}],
+    torch.Tensor.split_with_sizes: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'split_sizes', 'simple_type': 'SymIntArrayRef'}],
+    torch.Tensor.hsplit: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'sections', 'simple_type': 'int64_t'}],
+    torch.Tensor.hsplit: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'indices', 'simple_type': 'IntArrayRef'}],
+    torch.Tensor.vsplit: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'sections', 'simple_type': 'int64_t'}],
+    torch.Tensor.vsplit: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'indices', 'simple_type': 'IntArrayRef'}],
+    torch.Tensor.dsplit: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'sections', 'simple_type': 'int64_t'}],
+    torch.Tensor.dsplit: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'indices', 'simple_type': 'IntArrayRef'}],
+    torch.Tensor.squeeze: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.squeeze: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch.Tensor.squeeze: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch.Tensor.squeeze: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'IntArrayRef'}],
+    torch.Tensor.squeeze_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.squeeze_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch.Tensor.squeeze_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'IntArrayRef'}],
+    torch.Tensor.squeeze_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch.Tensor.sspaddmm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mat1', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mat2', 'simple_type': 'Tensor'}],
+    torch.Tensor.stft: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n_fft', 'simple_type': 'int64_t'}],
+    torch.Tensor.stft: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n_fft', 'simple_type': 'int64_t'}],
+    torch.Tensor.istft: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n_fft', 'simple_type': 'int64_t'}],
+    torch.Tensor.sum: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.sum: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'IntArrayRef?', 'size': 1}],
+    torch.Tensor.sum: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'DimnameList', 'size': 1}],
+    torch.Tensor.nansum: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.sum_to_size: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}],
+    torch.Tensor.sqrt: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.sqrt_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.square: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.square_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.std: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.std: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'IntArrayRef?', 'size': 1}],
+    torch.Tensor.std: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.std: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'DimnameList', 'size': 1}],
+    torch.Tensor.std: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'DimnameList', 'size': 1}],
+    torch.Tensor.prod: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.prod: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch.Tensor.prod: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch.Tensor.t: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.t_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.tan: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.tan_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.tanh: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.tanh_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.tile: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dims', 'simple_type': 'SymIntArrayRef'}],
+    torch.Tensor.transpose: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim0', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'dim1', 'simple_type': 'int64_t'}],
+    torch.Tensor.transpose: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim0', 'simple_type': 'Dimname'}, {'is_kwarg_only': 'False', 'name': 'dim1', 'simple_type': 'Dimname'}],
+    torch.Tensor.transpose_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim0', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'dim1', 'simple_type': 'int64_t'}],
+    torch.Tensor.flip: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dims', 'simple_type': 'IntArrayRef'}],
+    torch.Tensor.fliplr: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.flipud: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.roll: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'shifts', 'simple_type': 'SymIntArrayRef', 'size': 1}],
+    torch.Tensor.rot90: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor._nested_tensor_size: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor._nested_tensor_strides: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor._nested_tensor_storage_offsets: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.trunc: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.trunc_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.fix: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.fix_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.type_as: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.unsqueeze: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch.Tensor.unsqueeze_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}],
+    torch.Tensor.var: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.var: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'IntArrayRef?', 'size': 1}],
+    torch.Tensor.var: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.var: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'DimnameList', 'size': 1}],
+    torch.Tensor.var: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'DimnameList', 'size': 1}],
+    torch.Tensor.view_as: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.where: [{'is_kwarg_only': 'False', 'name': 'condition', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.where: [{'is_kwarg_only': 'False', 'name': 'condition', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.norm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'p', 'simple_type': 'Scalar?'}, {'is_kwarg_only': 'True', 'name': 'dtype', 'simple_type': 'ScalarType'}],
+    torch.Tensor.norm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.norm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'p', 'simple_type': 'Scalar?'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'IntArrayRef', 'size': 1}, {'is_kwarg_only': 'False', 'name': 'keepdim', 'simple_type': 'bool'}, {'is_kwarg_only': 'True', 'name': 'dtype', 'simple_type': 'ScalarType'}],
+    torch.Tensor.norm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'p', 'simple_type': 'Scalar?'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'IntArrayRef', 'size': 1}],
+    torch.Tensor.norm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'p', 'simple_type': 'Scalar?'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'DimnameList', 'size': 1}, {'is_kwarg_only': 'False', 'name': 'keepdim', 'simple_type': 'bool'}, {'is_kwarg_only': 'True', 'name': 'dtype', 'simple_type': 'ScalarType'}],
+    torch.Tensor.norm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'p', 'simple_type': 'Scalar?'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'DimnameList', 'size': 1}],
+    torch.Tensor.frexp: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.clone: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.positive: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.resize_as_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'the_template', 'simple_type': 'Tensor'}],
+    torch.Tensor.resize_as_sparse_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'the_template', 'simple_type': 'Tensor'}],
+    torch.Tensor.zero_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.sub: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.sub_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.subtract: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.subtract: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.subtract_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.subtract_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.heaviside: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'values', 'simple_type': 'Tensor'}],
+    torch.Tensor.heaviside_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'values', 'simple_type': 'Tensor'}],
+    torch.Tensor.addmm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mat1', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mat2', 'simple_type': 'Tensor'}],
+    torch.Tensor.addmm_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mat1', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mat2', 'simple_type': 'Tensor'}],
+    torch.Tensor._addmm_activation: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mat1', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mat2', 'simple_type': 'Tensor'}],
+    torch.Tensor.sparse_resize_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'IntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'sparse_dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'dense_dim', 'simple_type': 'int64_t'}],
+    torch.Tensor.sparse_resize_and_clear_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'IntArrayRef'}, {'is_kwarg_only': 'False', 'name': 'sparse_dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'dense_dim', 'simple_type': 'int64_t'}],
+    torch.Tensor.sparse_mask: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mask', 'simple_type': 'Tensor'}],
+    torch.Tensor._sparse_mask_projection: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mask', 'simple_type': 'Tensor'}],
+    torch.Tensor.to_dense: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor._to_dense: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.sparse_dim: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor._dimI: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.dense_dim: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor._dimV: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor._nnz: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.coalesce: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.is_coalesced: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor._indices: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor._values: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor._coalesced_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'coalesced', 'simple_type': 'bool'}],
+    torch.Tensor.indices: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.values: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.crow_indices: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.col_indices: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.ccol_indices: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.row_indices: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.unbind: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.unbind: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch.Tensor.to_sparse: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'sparse_dim', 'simple_type': 'int64_t'}],
+    torch.Tensor.to_sparse: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor._to_sparse: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'sparse_dim', 'simple_type': 'int64_t'}],
+    torch.Tensor._to_sparse: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.to_sparse_csr: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor._to_sparse_csr: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.to_sparse_csc: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor._to_sparse_csc: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.to_sparse_bsr: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'blocksize', 'simple_type': 'IntArrayRef', 'size': 2}],
+    torch.Tensor._to_sparse_bsr: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'blocksize', 'simple_type': 'IntArrayRef', 'size': 2}],
+    torch.Tensor.to_sparse_bsc: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'blocksize', 'simple_type': 'IntArrayRef', 'size': 2}],
+    torch.Tensor._to_sparse_bsc: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'blocksize', 'simple_type': 'IntArrayRef', 'size': 2}],
+    torch.Tensor.to_mkldnn: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.dequantize: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.q_scale: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.q_zero_point: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.q_per_channel_scales: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.q_per_channel_zero_points: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.q_per_channel_axis: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.int_repr: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.qscheme: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor._autocast_to_reduced_precision: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'cuda_enabled', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'cpu_enabled', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'cuda_dtype', 'simple_type': 'ScalarType'}, {'is_kwarg_only': 'False', 'name': 'cpu_dtype', 'simple_type': 'ScalarType'}],
+    torch.Tensor._autocast_to_full_precision: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'cuda_enabled', 'simple_type': 'bool'}, {'is_kwarg_only': 'False', 'name': 'cpu_enabled', 'simple_type': 'bool'}],
+    torch.Tensor.is_set_to: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'tensor', 'simple_type': 'Tensor'}],
+    torch.Tensor.masked_fill_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mask', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'value', 'simple_type': 'Scalar'}],
+    torch.Tensor.masked_fill_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mask', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'value', 'simple_type': 'Tensor'}],
+    torch.Tensor.masked_fill: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mask', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'value', 'simple_type': 'Scalar'}],
+    torch.Tensor.masked_fill: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mask', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'value', 'simple_type': 'Tensor'}],
+    torch.Tensor.masked_scatter_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mask', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'source', 'simple_type': 'Tensor'}],
+    torch.Tensor.masked_scatter: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mask', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'source', 'simple_type': 'Tensor'}],
+    torch.Tensor.view: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'SymIntArrayRef'}],
+    torch.Tensor.view: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dtype', 'simple_type': 'ScalarType'}],
+    torch.Tensor.put_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'source', 'simple_type': 'Tensor'}],
+    torch.Tensor.put: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'source', 'simple_type': 'Tensor'}],
+    torch.Tensor.index_add_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'source', 'simple_type': 'Tensor'}],
+    torch.Tensor.index_add: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'source', 'simple_type': 'Tensor'}],
+    torch.Tensor.index_add: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'source', 'simple_type': 'Tensor'}],
+    torch.Tensor.index_reduce_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'source', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'reduce', 'simple_type': 'c10::string_view'}],
+    torch.Tensor.index_reduce: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'source', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'reduce', 'simple_type': 'c10::string_view'}],
+    torch.Tensor.index_fill_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'value', 'simple_type': 'Scalar'}],
+    torch.Tensor.index_fill_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'value', 'simple_type': 'Tensor'}],
+    torch.Tensor.index_fill_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'value', 'simple_type': 'Scalar'}],
+    torch.Tensor.index_fill_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'value', 'simple_type': 'Tensor'}],
+    torch.Tensor.index_fill: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'value', 'simple_type': 'Scalar'}],
+    torch.Tensor.index_fill: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'value', 'simple_type': 'Tensor'}],
+    torch.Tensor.index_fill: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'value', 'simple_type': 'Scalar'}],
+    torch.Tensor.index_fill: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'value', 'simple_type': 'Tensor'}],
+    torch.Tensor.scatter: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'src', 'simple_type': 'Tensor'}],
+    torch.Tensor.scatter: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'value', 'simple_type': 'Scalar'}],
+    torch.Tensor.scatter: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'src', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'True', 'name': 'reduce', 'simple_type': 'c10::string_view'}],
+    torch.Tensor.scatter: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'value', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'True', 'name': 'reduce', 'simple_type': 'c10::string_view'}],
+    torch.Tensor.scatter: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'src', 'simple_type': 'Tensor'}],
+    torch.Tensor.scatter: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'value', 'simple_type': 'Scalar'}],
+    torch.Tensor.scatter_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'src', 'simple_type': 'Tensor'}],
+    torch.Tensor.scatter_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'value', 'simple_type': 'Scalar'}],
+    torch.Tensor.scatter_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'src', 'simple_type': 'Tensor'}],
+    torch.Tensor.scatter_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'value', 'simple_type': 'Scalar'}],
+    torch.Tensor.scatter_add: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'src', 'simple_type': 'Tensor'}],
+    torch.Tensor.scatter_add: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'src', 'simple_type': 'Tensor'}],
+    torch.Tensor.scatter_add_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'src', 'simple_type': 'Tensor'}],
+    torch.Tensor.scatter_reduce: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'src', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'reduce', 'simple_type': 'c10::string_view'}],
+    torch.Tensor.scatter_reduce_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'src', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'reduce', 'simple_type': 'c10::string_view'}],
+    torch.Tensor.eq_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.eq_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.bitwise_and: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.bitwise_and: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.bitwise_and_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.bitwise_and_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.__and__: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.__and__: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.__iand__: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.__iand__: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.bitwise_or: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.bitwise_or: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.bitwise_or_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.bitwise_or_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.__or__: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.__or__: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.__ior__: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.__ior__: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.bitwise_xor: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.bitwise_xor: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.bitwise_xor_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.bitwise_xor_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.__xor__: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.__xor__: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.__ixor__: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.__ixor__: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.__lshift__: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.__lshift__: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.__ilshift__: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.__ilshift__: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.bitwise_left_shift: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.bitwise_left_shift: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.bitwise_left_shift_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.bitwise_left_shift_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.__rshift__: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.__rshift__: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.__irshift__: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.__irshift__: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.bitwise_right_shift: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.bitwise_right_shift: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.bitwise_right_shift_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.bitwise_right_shift_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.tril_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.triu_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.digamma_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.lerp_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'end', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Scalar'}],
+    torch.Tensor.lerp_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'end', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}],
+    torch.Tensor.addbmm_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'batch1', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'batch2', 'simple_type': 'Tensor'}],
+    torch.Tensor.addbmm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'batch1', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'batch2', 'simple_type': 'Tensor'}],
+    torch.Tensor.random_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'from', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'to', 'simple_type': 'int64_t?'}],
+    torch.Tensor.random_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'to', 'simple_type': 'int64_t'}],
+    torch.Tensor.random_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.uniform_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.cauchy_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.log_normal_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.exponential_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.geometric_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'p', 'simple_type': 'double'}],
+    torch.Tensor.diag: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.cross: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.triu: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.tril: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.trace: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.ne: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.ne: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.ne_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.ne_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.not_equal: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.not_equal: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.not_equal_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.not_equal_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.eq: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.eq: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.ge: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.ge: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.ge_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.ge_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.greater_equal: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.greater_equal: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.greater_equal_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.greater_equal_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.le: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.le: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.le_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.le_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.less_equal: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.less_equal: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.less_equal_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.less_equal_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.gt: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.gt: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.gt_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.gt_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.greater: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.greater: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.greater_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.greater_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.lt: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.lt: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.lt_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.lt_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.less: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.less: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.less_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.less_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.take: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}],
+    torch.Tensor.take_along_dim: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'indices', 'simple_type': 'Tensor'}],
+    torch.Tensor.index_select: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}],
+    torch.Tensor.index_select: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}],
+    torch.Tensor.masked_select: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'mask', 'simple_type': 'Tensor'}],
+    torch.Tensor.nonzero_static: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'True', 'name': 'size', 'simple_type': 'int64_t'}],
+    torch.Tensor.argwhere: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.gather: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}],
+    torch.Tensor.gather: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}, {'is_kwarg_only': 'False', 'name': 'index', 'simple_type': 'Tensor'}],
+    torch.Tensor.addcmul: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'tensor1', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'tensor2', 'simple_type': 'Tensor'}],
+    torch.Tensor.addcmul_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'tensor1', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'tensor2', 'simple_type': 'Tensor'}],
+    torch.Tensor.addcdiv: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'tensor1', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'tensor2', 'simple_type': 'Tensor'}],
+    torch.Tensor.addcdiv_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'tensor1', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'tensor2', 'simple_type': 'Tensor'}],
+    torch.Tensor.triangular_solve: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'A', 'simple_type': 'Tensor'}],
+    torch.Tensor.svd: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.swapaxes: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'axis0', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'axis1', 'simple_type': 'int64_t'}],
+    torch.Tensor.swapaxes_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'axis0', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'axis1', 'simple_type': 'int64_t'}],
+    torch.Tensor.swapdims: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim0', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'dim1', 'simple_type': 'int64_t'}],
+    torch.Tensor.swapdims_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim0', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'dim1', 'simple_type': 'int64_t'}],
+    torch.Tensor.cholesky: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.cholesky_solve: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'input2', 'simple_type': 'Tensor'}],
+    torch.Tensor.cholesky_inverse: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.qr: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.geqrf: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.orgqr: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'input2', 'simple_type': 'Tensor'}],
+    torch.Tensor.ormqr: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'input2', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'input3', 'simple_type': 'Tensor'}],
+    torch.Tensor.lu_solve: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'LU_data', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'LU_pivots', 'simple_type': 'Tensor'}],
+    torch.Tensor.multinomial: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'num_samples', 'simple_type': 'int64_t'}],
+    torch.Tensor.lgamma_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.lgamma: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.digamma: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.polygamma: [{'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.polygamma_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'n', 'simple_type': 'int64_t'}],
+    torch.Tensor.erfinv: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.erfinv_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.i0: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.i0_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.sign: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.sign_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.signbit: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.dist: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.atan2_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.atan2: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.arctan2: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.arctan2_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.lerp: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'end', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Scalar'}],
+    torch.Tensor.lerp: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'end', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'weight', 'simple_type': 'Tensor'}],
+    torch.Tensor.histc: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.histogram: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'bins', 'simple_type': 'Tensor'}],
+    torch.Tensor.histogram: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.fmod: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.fmod: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.fmod_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.fmod_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.hypot: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.hypot_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.igamma: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.igamma_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.igammac: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.igammac_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.nextafter: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.nextafter_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.remainder: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.remainder: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.remainder_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Scalar'}],
+    torch.Tensor.remainder_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.fmin: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.fmax: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.maximum: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.minimum: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.quantile: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'q', 'simple_type': 'Tensor'}],
+    torch.Tensor.quantile: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'q', 'simple_type': 'double'}],
+    torch.Tensor.nanquantile: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'q', 'simple_type': 'Tensor'}],
+    torch.Tensor.nanquantile: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'q', 'simple_type': 'double'}],
+    torch.Tensor.sort: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.sort: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'True', 'name': 'stable', 'simple_type': 'bool?'}],
+    torch.Tensor.sort: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch.Tensor.sort: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'True', 'name': 'stable', 'simple_type': 'bool?'}, {'is_kwarg_only': 'True', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch.Tensor.msort: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.argsort: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.argsort: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'True', 'name': 'stable', 'simple_type': 'bool'}],
+    torch.Tensor.argsort: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'Dimname'}],
+    torch.Tensor.topk: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'k', 'simple_type': 'SymInt'}],
+    torch.Tensor.renorm: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'p', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'maxnorm', 'simple_type': 'Scalar'}],
+    torch.Tensor.renorm_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'p', 'simple_type': 'Scalar'}, {'is_kwarg_only': 'False', 'name': 'dim', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'maxnorm', 'simple_type': 'Scalar'}],
+    torch.Tensor.unfold: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'dimension', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'size', 'simple_type': 'int64_t'}, {'is_kwarg_only': 'False', 'name': 'step', 'simple_type': 'int64_t'}],
+    torch.Tensor.equal: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.pow: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'exponent', 'simple_type': 'Tensor'}],
+    torch.Tensor.pow: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'exponent', 'simple_type': 'Scalar'}],
+    torch.Tensor.pow_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'exponent', 'simple_type': 'Scalar'}],
+    torch.Tensor.pow_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'exponent', 'simple_type': 'Tensor'}],
+    torch.Tensor.float_power: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'exponent', 'simple_type': 'Tensor'}],
+    torch.Tensor.float_power: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'exponent', 'simple_type': 'Scalar'}],
+    torch.Tensor.float_power_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'exponent', 'simple_type': 'Scalar'}],
+    torch.Tensor.float_power_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'exponent', 'simple_type': 'Tensor'}],
+    torch.Tensor.normal_: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.isfinite: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.isinf: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.record_stream: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 's', 'simple_type': 'Stream'}],
+    torch.Tensor.isposinf: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.isneginf: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.det: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.slogdet: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.logdet: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.inverse: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}],
+    torch.Tensor.inner: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'other', 'simple_type': 'Tensor'}],
+    torch.Tensor.outer: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'vec2', 'simple_type': 'Tensor'}],
+    torch.Tensor.ger: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'vec2', 'simple_type': 'Tensor'}],
+    torch.Tensor.to_padded_tensor: [{'is_kwarg_only': 'False', 'name': 'self', 'simple_type': 'Tensor'}, {'is_kwarg_only': 'False', 'name': 'padding', 'simple_type': 'double'}],
+}
diff --git a/shared/package-files/f2/f24099bf5cf752dcc1b8fbe89a90145231d3a0bb5ae1f7ef3a35552d26912de4/interpolative.py b/shared/package-files/f2/f24099bf5cf752dcc1b8fbe89a90145231d3a0bb5ae1f7ef3a35552d26912de4/interpolative.py
new file mode 100644
index 0000000000000000000000000000000000000000..38070863aa515266b0b130dbbdbd3d645da4aa0c
--- /dev/null
+++ b/shared/package-files/f2/f24099bf5cf752dcc1b8fbe89a90145231d3a0bb5ae1f7ef3a35552d26912de4/interpolative.py
@@ -0,0 +1,989 @@
+#  ******************************************************************************
+#   Copyright (C) 2013 Kenneth L. Ho
+#
+#   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.
+#
+#   None of the names of the copyright holders 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 HOLDER 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.
+#  ******************************************************************************
+
+r"""
+======================================================================
+Interpolative matrix decomposition (:mod:`scipy.linalg.interpolative`)
+======================================================================
+
+.. versionadded:: 0.13
+
+.. versionchanged:: 1.15.0
+    The underlying algorithms have been ported to Python from the original Fortran77
+    code. See references below for more details.
+
+.. currentmodule:: scipy.linalg.interpolative
+
+An interpolative decomposition (ID) of a matrix :math:`A \in
+\mathbb{C}^{m \times n}` of rank :math:`k \leq \min \{ m, n \}` is a
+factorization
+
+.. math::
+  A \Pi =
+  \begin{bmatrix}
+   A \Pi_{1} & A \Pi_{2}
+  \end{bmatrix} =
+  A \Pi_{1}
+  \begin{bmatrix}
+   I & T
+  \end{bmatrix},
+
+where :math:`\Pi = [\Pi_{1}, \Pi_{2}]` is a permutation matrix with
+:math:`\Pi_{1} \in \{ 0, 1 \}^{n \times k}`, i.e., :math:`A \Pi_{2} =
+A \Pi_{1} T`. This can equivalently be written as :math:`A = BP`,
+where :math:`B = A \Pi_{1}` and :math:`P = [I, T] \Pi^{\mathsf{T}}`
+are the *skeleton* and *interpolation matrices*, respectively.
+
+If :math:`A` does not have exact rank :math:`k`, then there exists an
+approximation in the form of an ID such that :math:`A = BP + E`, where
+:math:`\| E \| \sim \sigma_{k + 1}` is on the order of the :math:`(k +
+1)`-th largest singular value of :math:`A`. Note that :math:`\sigma_{k
++ 1}` is the best possible error for a rank-:math:`k` approximation
+and, in fact, is achieved by the singular value decomposition (SVD)
+:math:`A \approx U S V^{*}`, where :math:`U \in \mathbb{C}^{m \times
+k}` and :math:`V \in \mathbb{C}^{n \times k}` have orthonormal columns
+and :math:`S = \mathop{\mathrm{diag}} (\sigma_{i}) \in \mathbb{C}^{k
+\times k}` is diagonal with nonnegative entries. The principal
+advantages of using an ID over an SVD are that:
+
+- it is cheaper to construct;
+- it preserves the structure of :math:`A`; and
+- it is more efficient to compute with in light of the identity submatrix of :math:`P`.
+
+Routines
+========
+
+Main functionality:
+
+.. autosummary::
+   :toctree: generated/
+
+   interp_decomp
+   reconstruct_matrix_from_id
+   reconstruct_interp_matrix
+   reconstruct_skel_matrix
+   id_to_svd
+   svd
+   estimate_spectral_norm
+   estimate_spectral_norm_diff
+   estimate_rank
+
+Following support functions are deprecated and will be removed in SciPy 1.17.0:
+
+.. autosummary::
+   :toctree: generated/
+
+   seed
+   rand
+
+
+References
+==========
+
+This module uses the algorithms found in ID software package [1]_ by Martinsson,
+Rokhlin, Shkolnisky, and Tygert, which is a Fortran library for computing IDs using
+various algorithms, including the rank-revealing QR approach of [2]_ and the more
+recent randomized methods described in [3]_, [4]_, and [5]_.
+
+We advise the user to consult also the documentation for the `ID package
+`_.
+
+.. [1] P.G. Martinsson, V. Rokhlin, Y. Shkolnisky, M. Tygert. "ID: a
+    software package for low-rank approximation of matrices via interpolative
+    decompositions, version 0.2." http://tygert.com/id_doc.4.pdf.
+
+.. [2] H. Cheng, Z. Gimbutas, P.G. Martinsson, V. Rokhlin. "On the
+    compression of low rank matrices." *SIAM J. Sci. Comput.* 26 (4): 1389--1404,
+    2005. :doi:`10.1137/030602678`.
+
+.. [3] E. Liberty, F. Woolfe, P.G. Martinsson, V. Rokhlin, M.
+    Tygert. "Randomized algorithms for the low-rank approximation of matrices."
+    *Proc. Natl. Acad. Sci. U.S.A.* 104 (51): 20167--20172, 2007.
+    :doi:`10.1073/pnas.0709640104`.
+
+.. [4] P.G. Martinsson, V. Rokhlin, M. Tygert. "A randomized
+    algorithm for the decomposition of matrices." *Appl. Comput. Harmon. Anal.* 30
+    (1): 47--68,  2011. :doi:`10.1016/j.acha.2010.02.003`.
+
+.. [5] F. Woolfe, E. Liberty, V. Rokhlin, M. Tygert. "A fast
+    randomized algorithm for the approximation of matrices." *Appl. Comput.
+    Harmon. Anal.* 25 (3): 335--366, 2008. :doi:`10.1016/j.acha.2007.12.002`.
+
+
+Tutorial
+========
+
+Initializing
+------------
+
+The first step is to import :mod:`scipy.linalg.interpolative` by issuing the
+command:
+
+>>> import scipy.linalg.interpolative as sli
+
+Now let's build a matrix. For this, we consider a Hilbert matrix, which is well
+know to have low rank:
+
+>>> from scipy.linalg import hilbert
+>>> n = 1000
+>>> A = hilbert(n)
+
+We can also do this explicitly via:
+
+>>> import numpy as np
+>>> n = 1000
+>>> A = np.empty((n, n), order='F')
+>>> for j in range(n):
+...     for i in range(n):
+...         A[i,j] = 1. / (i + j + 1)
+
+Note the use of the flag ``order='F'`` in :func:`numpy.empty`. This
+instantiates the matrix in Fortran-contiguous order and is important for
+avoiding data copying when passing to the backend.
+
+We then define multiplication routines for the matrix by regarding it as a
+:class:`scipy.sparse.linalg.LinearOperator`:
+
+>>> from scipy.sparse.linalg import aslinearoperator
+>>> L = aslinearoperator(A)
+
+This automatically sets up methods describing the action of the matrix and its
+adjoint on a vector.
+
+Computing an ID
+---------------
+
+We have several choices of algorithm to compute an ID. These fall largely
+according to two dichotomies:
+
+1. how the matrix is represented, i.e., via its entries or via its action on a
+   vector; and
+2. whether to approximate it to a fixed relative precision or to a fixed rank.
+
+We step through each choice in turn below.
+
+In all cases, the ID is represented by three parameters:
+
+1. a rank ``k``;
+2. an index array ``idx``; and
+3. interpolation coefficients ``proj``.
+
+The ID is specified by the relation
+``np.dot(A[:,idx[:k]], proj) == A[:,idx[k:]]``.
+
+From matrix entries
+...................
+
+We first consider a matrix given in terms of its entries.
+
+To compute an ID to a fixed precision, type:
+
+>>> eps = 1e-3
+>>> k, idx, proj = sli.interp_decomp(A, eps)
+
+where ``eps < 1`` is the desired precision.
+
+To compute an ID to a fixed rank, use:
+
+>>> idx, proj = sli.interp_decomp(A, k)
+
+where ``k >= 1`` is the desired rank.
+
+Both algorithms use random sampling and are usually faster than the
+corresponding older, deterministic algorithms, which can be accessed via the
+commands:
+
+>>> k, idx, proj = sli.interp_decomp(A, eps, rand=False)
+
+and:
+
+>>> idx, proj = sli.interp_decomp(A, k, rand=False)
+
+respectively.
+
+From matrix action
+..................
+
+Now consider a matrix given in terms of its action on a vector as a
+:class:`scipy.sparse.linalg.LinearOperator`.
+
+To compute an ID to a fixed precision, type:
+
+>>> k, idx, proj = sli.interp_decomp(L, eps)
+
+To compute an ID to a fixed rank, use:
+
+>>> idx, proj = sli.interp_decomp(L, k)
+
+These algorithms are randomized.
+
+Reconstructing an ID
+--------------------
+
+The ID routines above do not output the skeleton and interpolation matrices
+explicitly but instead return the relevant information in a more compact (and
+sometimes more useful) form. To build these matrices, write:
+
+>>> B = sli.reconstruct_skel_matrix(A, k, idx)
+
+for the skeleton matrix and:
+
+>>> P = sli.reconstruct_interp_matrix(idx, proj)
+
+for the interpolation matrix. The ID approximation can then be computed as:
+
+>>> C = np.dot(B, P)
+
+This can also be constructed directly using:
+
+>>> C = sli.reconstruct_matrix_from_id(B, idx, proj)
+
+without having to first compute ``P``.
+
+Alternatively, this can be done explicitly as well using:
+
+>>> B = A[:,idx[:k]]
+>>> P = np.hstack([np.eye(k), proj])[:,np.argsort(idx)]
+>>> C = np.dot(B, P)
+
+Computing an SVD
+----------------
+
+An ID can be converted to an SVD via the command:
+
+>>> U, S, V = sli.id_to_svd(B, idx, proj)
+
+The SVD approximation is then:
+
+>>> approx = U @ np.diag(S) @ V.conj().T
+
+The SVD can also be computed "fresh" by combining both the ID and conversion
+steps into one command. Following the various ID algorithms above, there are
+correspondingly various SVD algorithms that one can employ.
+
+From matrix entries
+...................
+
+We consider first SVD algorithms for a matrix given in terms of its entries.
+
+To compute an SVD to a fixed precision, type:
+
+>>> U, S, V = sli.svd(A, eps)
+
+To compute an SVD to a fixed rank, use:
+
+>>> U, S, V = sli.svd(A, k)
+
+Both algorithms use random sampling; for the deterministic versions, issue the
+keyword ``rand=False`` as above.
+
+From matrix action
+..................
+
+Now consider a matrix given in terms of its action on a vector.
+
+To compute an SVD to a fixed precision, type:
+
+>>> U, S, V = sli.svd(L, eps)
+
+To compute an SVD to a fixed rank, use:
+
+>>> U, S, V = sli.svd(L, k)
+
+Utility routines
+----------------
+
+Several utility routines are also available.
+
+To estimate the spectral norm of a matrix, use:
+
+>>> snorm = sli.estimate_spectral_norm(A)
+
+This algorithm is based on the randomized power method and thus requires only
+matrix-vector products. The number of iterations to take can be set using the
+keyword ``its`` (default: ``its=20``). The matrix is interpreted as a
+:class:`scipy.sparse.linalg.LinearOperator`, but it is also valid to supply it
+as a :class:`numpy.ndarray`, in which case it is trivially converted using
+:func:`scipy.sparse.linalg.aslinearoperator`.
+
+The same algorithm can also estimate the spectral norm of the difference of two
+matrices ``A1`` and ``A2`` as follows:
+
+>>> A1, A2 = A**2, A
+>>> diff = sli.estimate_spectral_norm_diff(A1, A2)
+
+This is often useful for checking the accuracy of a matrix approximation.
+
+Some routines in :mod:`scipy.linalg.interpolative` require estimating the rank
+of a matrix as well. This can be done with either:
+
+>>> k = sli.estimate_rank(A, eps)
+
+or:
+
+>>> k = sli.estimate_rank(L, eps)
+
+depending on the representation. The parameter ``eps`` controls the definition
+of the numerical rank.
+
+Finally, the random number generation required for all randomized routines can
+be controlled via providing NumPy pseudo-random generators with a fixed seed. See
+:class:`numpy.random.Generator` and :func:`numpy.random.default_rng` for more details.
+
+Remarks
+-------
+
+The above functions all automatically detect the appropriate interface and work
+with both real and complex data types, passing input arguments to the proper
+backend routine.
+
+"""
+
+import scipy.linalg._decomp_interpolative as _backend
+import numpy as np
+import warnings
+
+__all__ = [
+    'estimate_rank',
+    'estimate_spectral_norm',
+    'estimate_spectral_norm_diff',
+    'id_to_svd',
+    'interp_decomp',
+    'rand',
+    'reconstruct_interp_matrix',
+    'reconstruct_matrix_from_id',
+    'reconstruct_skel_matrix',
+    'seed',
+    'svd',
+]
+
+_DTYPE_ERROR = ValueError("invalid input dtype (input must be float64 or complex128)")
+_TYPE_ERROR = TypeError("invalid input type (must be array or LinearOperator)")
+
+
+def _C_contiguous_copy(A):
+    """
+    Same as np.ascontiguousarray, but ensure a copy
+    """
+    A = np.asarray(A)
+    if A.flags.c_contiguous:
+        A = A.copy()
+    else:
+        A = np.ascontiguousarray(A)
+    return A
+
+
+def _is_real(A):
+    try:
+        if A.dtype == np.complex128:
+            return False
+        elif A.dtype == np.float64:
+            return True
+        else:
+            raise _DTYPE_ERROR
+    except AttributeError as e:
+        raise _TYPE_ERROR from e
+
+
+def seed(seed=None):
+    """
+    This function, historically, used to set the seed of the randomization algorithms
+    used in the `scipy.linalg.interpolative` functions written in Fortran77.
+
+    The library has been ported to Python and now the functions use the native NumPy
+    generators and this function has no content and returns None. Thus this function
+    should not be used and will be removed in SciPy version 1.17.0.
+    """
+    warnings.warn("`scipy.linalg.interpolative.seed` is deprecated and will be "
+                  "removed in SciPy 1.17.0.", DeprecationWarning, stacklevel=3)
+
+
+def rand(*shape):
+    """
+    This function, historically, used to generate uniformly distributed random number
+    for the randomization algorithms used in the `scipy.linalg.interpolative` functions
+    written in Fortran77.
+
+    The library has been ported to Python and now the functions use the native NumPy
+    generators. Thus this function should not be used and will be removed in the
+    SciPy version 1.17.0.
+
+    If pseudo-random numbers are needed, NumPy pseudo-random generators should be used
+    instead.
+
+    Parameters
+    ----------
+    *shape
+        Shape of output array
+
+    """
+    warnings.warn("`scipy.linalg.interpolative.rand` is deprecated and will be "
+                  "removed in SciPy 1.17.0.", DeprecationWarning, stacklevel=3)
+    rng = np.random.default_rng()
+    return rng.uniform(low=0., high=1.0, size=shape)
+
+
+def interp_decomp(A, eps_or_k, rand=True, rng=None):
+    """
+    Compute ID of a matrix.
+
+    An ID of a matrix `A` is a factorization defined by a rank `k`, a column
+    index array `idx`, and interpolation coefficients `proj` such that::
+
+        numpy.dot(A[:,idx[:k]], proj) = A[:,idx[k:]]
+
+    The original matrix can then be reconstructed as::
+
+        numpy.hstack([A[:,idx[:k]],
+                                    numpy.dot(A[:,idx[:k]], proj)]
+                                )[:,numpy.argsort(idx)]
+
+    or via the routine :func:`reconstruct_matrix_from_id`. This can
+    equivalently be written as::
+
+        numpy.dot(A[:,idx[:k]],
+                            numpy.hstack([numpy.eye(k), proj])
+                          )[:,np.argsort(idx)]
+
+    in terms of the skeleton and interpolation matrices::
+
+        B = A[:,idx[:k]]
+
+    and::
+
+        P = numpy.hstack([numpy.eye(k), proj])[:,np.argsort(idx)]
+
+    respectively. See also :func:`reconstruct_interp_matrix` and
+    :func:`reconstruct_skel_matrix`.
+
+    The ID can be computed to any relative precision or rank (depending on the
+    value of `eps_or_k`). If a precision is specified (`eps_or_k < 1`), then
+    this function has the output signature::
+
+        k, idx, proj = interp_decomp(A, eps_or_k)
+
+    Otherwise, if a rank is specified (`eps_or_k >= 1`), then the output
+    signature is::
+
+        idx, proj = interp_decomp(A, eps_or_k)
+
+    ..  This function automatically detects the form of the input parameters
+        and passes them to the appropriate backend. For details, see
+        :func:`_backend.iddp_id`, :func:`_backend.iddp_aid`,
+        :func:`_backend.iddp_rid`, :func:`_backend.iddr_id`,
+        :func:`_backend.iddr_aid`, :func:`_backend.iddr_rid`,
+        :func:`_backend.idzp_id`, :func:`_backend.idzp_aid`,
+        :func:`_backend.idzp_rid`, :func:`_backend.idzr_id`,
+        :func:`_backend.idzr_aid`, and :func:`_backend.idzr_rid`.
+
+    Parameters
+    ----------
+    A : :class:`numpy.ndarray` or :class:`scipy.sparse.linalg.LinearOperator` with `rmatvec`
+        Matrix to be factored
+    eps_or_k : float or int
+        Relative error (if ``eps_or_k < 1``) or rank (if ``eps_or_k >= 1``) of
+        approximation.
+    rand : bool, optional
+        Whether to use random sampling if `A` is of type :class:`numpy.ndarray`
+        (randomized algorithms are always used if `A` is of type
+        :class:`scipy.sparse.linalg.LinearOperator`).
+    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``.
+        If `rand` is ``False``, the argument is ignored.
+
+    Returns
+    -------
+    k : int
+        Rank required to achieve specified relative precision if
+        ``eps_or_k < 1``.
+    idx : :class:`numpy.ndarray`
+        Column index array.
+    proj : :class:`numpy.ndarray`
+        Interpolation coefficients.
+    """  # numpy/numpydoc#87  # noqa: E501
+    from scipy.sparse.linalg import LinearOperator
+    rng = np.random.default_rng(rng)
+    real = _is_real(A)
+
+    if isinstance(A, np.ndarray):
+        A = _C_contiguous_copy(A)
+        if eps_or_k < 1:
+            eps = eps_or_k
+            if rand:
+                if real:
+                    k, idx, proj = _backend.iddp_aid(A, eps, rng=rng)
+                else:
+                    k, idx, proj = _backend.idzp_aid(A, eps, rng=rng)
+            else:
+                if real:
+                    k, idx, proj = _backend.iddp_id(A, eps)
+                else:
+                    k, idx, proj = _backend.idzp_id(A, eps)
+            return k, idx, proj
+        else:
+            k = int(eps_or_k)
+            if rand:
+                if real:
+                    idx, proj = _backend.iddr_aid(A, k, rng=rng)
+                else:
+                    idx, proj = _backend.idzr_aid(A, k, rng=rng)
+            else:
+                if real:
+                    idx, proj = _backend.iddr_id(A, k)
+                else:
+                    idx, proj = _backend.idzr_id(A, k)
+            return idx, proj
+    elif isinstance(A, LinearOperator):
+
+        if eps_or_k < 1:
+            eps = eps_or_k
+            if real:
+                k, idx, proj = _backend.iddp_rid(A, eps, rng=rng)
+            else:
+                k, idx, proj = _backend.idzp_rid(A, eps, rng=rng)
+            return k, idx, proj
+        else:
+            k = int(eps_or_k)
+            if real:
+                idx, proj = _backend.iddr_rid(A, k, rng=rng)
+            else:
+                idx, proj = _backend.idzr_rid(A, k, rng=rng)
+            return idx, proj
+    else:
+        raise _TYPE_ERROR
+
+
+def reconstruct_matrix_from_id(B, idx, proj):
+    """
+    Reconstruct matrix from its ID.
+
+    A matrix `A` with skeleton matrix `B` and ID indices and coefficients `idx`
+    and `proj`, respectively, can be reconstructed as::
+
+        numpy.hstack([B, numpy.dot(B, proj)])[:,numpy.argsort(idx)]
+
+    See also :func:`reconstruct_interp_matrix` and
+    :func:`reconstruct_skel_matrix`.
+
+    ..  This function automatically detects the matrix data type and calls the
+        appropriate backend. For details, see :func:`_backend.idd_reconid` and
+        :func:`_backend.idz_reconid`.
+
+    Parameters
+    ----------
+    B : :class:`numpy.ndarray`
+        Skeleton matrix.
+    idx : :class:`numpy.ndarray`
+        Column index array.
+    proj : :class:`numpy.ndarray`
+        Interpolation coefficients.
+
+    Returns
+    -------
+    :class:`numpy.ndarray`
+        Reconstructed matrix.
+    """
+    if _is_real(B):
+        return _backend.idd_reconid(B, idx, proj)
+    else:
+        return _backend.idz_reconid(B, idx, proj)
+
+
+def reconstruct_interp_matrix(idx, proj):
+    """
+    Reconstruct interpolation matrix from ID.
+
+    The interpolation matrix can be reconstructed from the ID indices and
+    coefficients `idx` and `proj`, respectively, as::
+
+        P = numpy.hstack([numpy.eye(proj.shape[0]), proj])[:,numpy.argsort(idx)]
+
+    The original matrix can then be reconstructed from its skeleton matrix ``B``
+    via ``A = B @ P``
+
+    See also :func:`reconstruct_matrix_from_id` and
+    :func:`reconstruct_skel_matrix`.
+
+    ..  This function automatically detects the matrix data type and calls the
+        appropriate backend. For details, see :func:`_backend.idd_reconint` and
+        :func:`_backend.idz_reconint`.
+
+    Parameters
+    ----------
+    idx : :class:`numpy.ndarray`
+        1D column index array.
+    proj : :class:`numpy.ndarray`
+        Interpolation coefficients.
+
+    Returns
+    -------
+    :class:`numpy.ndarray`
+        Interpolation matrix.
+    """
+    n, krank = len(idx), proj.shape[0]
+    if _is_real(proj):
+        p = np.zeros([krank, n], dtype=np.float64)
+    else:
+        p = np.zeros([krank, n], dtype=np.complex128)
+
+    for ci in range(krank):
+        p[ci, idx[ci]] = 1.0
+    p[:, idx[krank:]] = proj[:, :]
+
+    return p
+
+
+def reconstruct_skel_matrix(A, k, idx):
+    """
+    Reconstruct skeleton matrix from ID.
+
+    The skeleton matrix can be reconstructed from the original matrix `A` and its
+    ID rank and indices `k` and `idx`, respectively, as::
+
+        B = A[:,idx[:k]]
+
+    The original matrix can then be reconstructed via::
+
+        numpy.hstack([B, numpy.dot(B, proj)])[:,numpy.argsort(idx)]
+
+    See also :func:`reconstruct_matrix_from_id` and
+    :func:`reconstruct_interp_matrix`.
+
+    ..  This function automatically detects the matrix data type and calls the
+        appropriate backend. For details, see :func:`_backend.idd_copycols` and
+        :func:`_backend.idz_copycols`.
+
+    Parameters
+    ----------
+    A : :class:`numpy.ndarray`
+        Original matrix.
+    k : int
+        Rank of ID.
+    idx : :class:`numpy.ndarray`
+        Column index array.
+
+    Returns
+    -------
+    :class:`numpy.ndarray`
+        Skeleton matrix.
+    """
+    return A[:, idx[:k]]
+
+
+def id_to_svd(B, idx, proj):
+    """
+    Convert ID to SVD.
+
+    The SVD reconstruction of a matrix with skeleton matrix `B` and ID indices and
+    coefficients `idx` and `proj`, respectively, is::
+
+        U, S, V = id_to_svd(B, idx, proj)
+        A = numpy.dot(U, numpy.dot(numpy.diag(S), V.conj().T))
+
+    See also :func:`svd`.
+
+    ..  This function automatically detects the matrix data type and calls the
+        appropriate backend. For details, see :func:`_backend.idd_id2svd` and
+        :func:`_backend.idz_id2svd`.
+
+    Parameters
+    ----------
+    B : :class:`numpy.ndarray`
+        Skeleton matrix.
+    idx : :class:`numpy.ndarray`
+        1D column index array.
+    proj : :class:`numpy.ndarray`
+        Interpolation coefficients.
+
+    Returns
+    -------
+    U : :class:`numpy.ndarray`
+        Left singular vectors.
+    S : :class:`numpy.ndarray`
+        Singular values.
+    V : :class:`numpy.ndarray`
+        Right singular vectors.
+    """
+    B = _C_contiguous_copy(B)
+    if _is_real(B):
+        U, S, V = _backend.idd_id2svd(B, idx, proj)
+    else:
+        U, S, V = _backend.idz_id2svd(B, idx, proj)
+
+    return U, S, V
+
+
+def estimate_spectral_norm(A, its=20, rng=None):
+    """
+    Estimate spectral norm of a matrix by the randomized power method.
+
+    ..  This function automatically detects the matrix data type and calls the
+        appropriate backend. For details, see :func:`_backend.idd_snorm` and
+        :func:`_backend.idz_snorm`.
+
+    Parameters
+    ----------
+    A : :class:`scipy.sparse.linalg.LinearOperator`
+        Matrix given as a :class:`scipy.sparse.linalg.LinearOperator` with the
+        `matvec` and `rmatvec` methods (to apply the matrix and its adjoint).
+    its : int, optional
+        Number of power method iterations.
+    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``.
+        If `rand` is ``False``, the argument is ignored.
+
+    Returns
+    -------
+    float
+        Spectral norm estimate.
+    """
+    from scipy.sparse.linalg import aslinearoperator
+    rng = np.random.default_rng(rng)
+    A = aslinearoperator(A)
+
+    if _is_real(A):
+        return _backend.idd_snorm(A, its=its, rng=rng)
+    else:
+        return _backend.idz_snorm(A, its=its, rng=rng)
+
+
+def estimate_spectral_norm_diff(A, B, its=20, rng=None):
+    """
+    Estimate spectral norm of the difference of two matrices by the randomized
+    power method.
+
+    ..  This function automatically detects the matrix data type and calls the
+        appropriate backend. For details, see :func:`_backend.idd_diffsnorm` and
+        :func:`_backend.idz_diffsnorm`.
+
+    Parameters
+    ----------
+    A : :class:`scipy.sparse.linalg.LinearOperator`
+        First matrix given as a :class:`scipy.sparse.linalg.LinearOperator` with the
+        `matvec` and `rmatvec` methods (to apply the matrix and its adjoint).
+    B : :class:`scipy.sparse.linalg.LinearOperator`
+        Second matrix given as a :class:`scipy.sparse.linalg.LinearOperator` with
+        the `matvec` and `rmatvec` methods (to apply the matrix and its adjoint).
+    its : int, optional
+        Number of power method iterations.
+    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``.
+        If `rand` is ``False``, the argument is ignored.
+
+    Returns
+    -------
+    float
+        Spectral norm estimate of matrix difference.
+    """
+    from scipy.sparse.linalg import aslinearoperator
+    rng = np.random.default_rng(rng)
+    A = aslinearoperator(A)
+    B = aslinearoperator(B)
+
+    if _is_real(A):
+        return _backend.idd_diffsnorm(A, B, its=its, rng=rng)
+    else:
+        return _backend.idz_diffsnorm(A, B, its=its, rng=rng)
+
+
+def svd(A, eps_or_k, rand=True, rng=None):
+    """
+    Compute SVD of a matrix via an ID.
+
+    An SVD of a matrix `A` is a factorization::
+
+        A = U @ np.diag(S) @ V.conj().T
+
+    where `U` and `V` have orthonormal columns and `S` is nonnegative.
+
+    The SVD can be computed to any relative precision or rank (depending on the
+    value of `eps_or_k`).
+
+    See also :func:`interp_decomp` and :func:`id_to_svd`.
+
+    ..  This function automatically detects the form of the input parameters and
+        passes them to the appropriate backend. For details, see
+        :func:`_backend.iddp_svd`, :func:`_backend.iddp_asvd`,
+        :func:`_backend.iddp_rsvd`, :func:`_backend.iddr_svd`,
+        :func:`_backend.iddr_asvd`, :func:`_backend.iddr_rsvd`,
+        :func:`_backend.idzp_svd`, :func:`_backend.idzp_asvd`,
+        :func:`_backend.idzp_rsvd`, :func:`_backend.idzr_svd`,
+        :func:`_backend.idzr_asvd`, and :func:`_backend.idzr_rsvd`.
+
+    Parameters
+    ----------
+    A : :class:`numpy.ndarray` or :class:`scipy.sparse.linalg.LinearOperator`
+        Matrix to be factored, given as either a :class:`numpy.ndarray` or a
+        :class:`scipy.sparse.linalg.LinearOperator` with the `matvec` and
+        `rmatvec` methods (to apply the matrix and its adjoint).
+    eps_or_k : float or int
+        Relative error (if ``eps_or_k < 1``) or rank (if ``eps_or_k >= 1``) of
+        approximation.
+    rand : bool, optional
+        Whether to use random sampling if `A` is of type :class:`numpy.ndarray`
+        (randomized algorithms are always used if `A` is of type
+        :class:`scipy.sparse.linalg.LinearOperator`).
+    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``.
+        If `rand` is ``False``, the argument is ignored.
+
+    Returns
+    -------
+    U : :class:`numpy.ndarray`
+        2D array of left singular vectors.
+    S : :class:`numpy.ndarray`
+        1D array of singular values.
+    V : :class:`numpy.ndarray`
+        2D array right singular vectors.
+    """
+    from scipy.sparse.linalg import LinearOperator
+    rng = np.random.default_rng(rng)
+
+    real = _is_real(A)
+
+    if isinstance(A, np.ndarray):
+        A = _C_contiguous_copy(A)
+        if eps_or_k < 1:
+            eps = eps_or_k
+            if rand:
+                if real:
+                    U, S, V = _backend.iddp_asvd(A, eps, rng=rng)
+                else:
+                    U, S, V = _backend.idzp_asvd(A, eps, rng=rng)
+            else:
+                if real:
+                    U, S, V = _backend.iddp_svd(A, eps)
+                    V = V.T.conj()
+                else:
+                    U, S, V = _backend.idzp_svd(A, eps)
+                    V = V.T.conj()
+        else:
+            k = int(eps_or_k)
+            if k > min(A.shape):
+                raise ValueError(f"Approximation rank {k} exceeds min(A.shape) = "
+                                 f" {min(A.shape)} ")
+            if rand:
+                if real:
+                    U, S, V = _backend.iddr_asvd(A, k, rng=rng)
+                else:
+                    U, S, V = _backend.idzr_asvd(A, k, rng=rng)
+            else:
+                if real:
+                    U, S, V = _backend.iddr_svd(A, k)
+                    V = V.T.conj()
+                else:
+                    U, S, V = _backend.idzr_svd(A, k)
+                    V = V.T.conj()
+    elif isinstance(A, LinearOperator):
+        if eps_or_k < 1:
+            eps = eps_or_k
+            if real:
+                U, S, V = _backend.iddp_rsvd(A, eps, rng=rng)
+            else:
+                U, S, V = _backend.idzp_rsvd(A, eps, rng=rng)
+        else:
+            k = int(eps_or_k)
+            if real:
+                U, S, V = _backend.iddr_rsvd(A, k, rng=rng)
+            else:
+                U, S, V = _backend.idzr_rsvd(A, k, rng=rng)
+    else:
+        raise _TYPE_ERROR
+    return U, S, V
+
+
+def estimate_rank(A, eps, rng=None):
+    """
+    Estimate matrix rank to a specified relative precision using randomized
+    methods.
+
+    The matrix `A` can be given as either a :class:`numpy.ndarray` or a
+    :class:`scipy.sparse.linalg.LinearOperator`, with different algorithms used
+    for each case. If `A` is of type :class:`numpy.ndarray`, then the output
+    rank is typically about 8 higher than the actual numerical rank.
+
+    ..  This function automatically detects the form of the input parameters and
+        passes them to the appropriate backend. For details,
+        see :func:`_backend.idd_estrank`, :func:`_backend.idd_findrank`,
+        :func:`_backend.idz_estrank`, and :func:`_backend.idz_findrank`.
+
+    Parameters
+    ----------
+    A : :class:`numpy.ndarray` or :class:`scipy.sparse.linalg.LinearOperator`
+        Matrix whose rank is to be estimated, given as either a
+        :class:`numpy.ndarray` or a :class:`scipy.sparse.linalg.LinearOperator`
+        with the `rmatvec` method (to apply the matrix adjoint).
+    eps : float
+        Relative error for numerical rank definition.
+    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``.
+        If `rand` is ``False``, the argument is ignored.
+
+    Returns
+    -------
+    int
+        Estimated matrix rank.
+    """
+    from scipy.sparse.linalg import LinearOperator
+
+    rng = np.random.default_rng(rng)
+    real = _is_real(A)
+
+    if isinstance(A, np.ndarray):
+        A = _C_contiguous_copy(A)
+        if real:
+            rank, _ = _backend.idd_estrank(A, eps, rng=rng)
+        else:
+            rank, _ = _backend.idz_estrank(A, eps, rng=rng)
+        if rank == 0:
+            # special return value for nearly full rank
+            rank = min(A.shape)
+        return rank
+    elif isinstance(A, LinearOperator):
+        if real:
+            return _backend.idd_findrank(A, eps, rng=rng)[0]
+        else:
+            return _backend.idz_findrank(A, eps, rng=rng)[0]
+    else:
+        raise _TYPE_ERROR
diff --git a/shared/package-files/f2/f2454775dc5f156038e05483e26069982fb8b82ca7427928cfff5a3496f6dbb6/entry_points.txt b/shared/package-files/f2/f2454775dc5f156038e05483e26069982fb8b82ca7427928cfff5a3496f6dbb6/entry_points.txt
new file mode 100644
index 0000000000000000000000000000000000000000..87ae781f169a63f0cf672a9050474035bfa5add4
--- /dev/null
+++ b/shared/package-files/f2/f2454775dc5f156038e05483e26069982fb8b82ca7427928cfff5a3496f6dbb6/entry_points.txt
@@ -0,0 +1,5 @@
+[console_scripts]
+fonttools = fontTools.__main__:main
+pyftmerge = fontTools.merge:main
+pyftsubset = fontTools.subset:main
+ttx = fontTools.ttx:main
diff --git a/shared/package-files/f2/f247698276a6076cd8a0ff27fd36b0777cebce36a1836c3b22f6bd4053a01157/storemagic.py b/shared/package-files/f2/f247698276a6076cd8a0ff27fd36b0777cebce36a1836c3b22f6bd4053a01157/storemagic.py
new file mode 100644
index 0000000000000000000000000000000000000000..d9d00f14b9ade1423a592053f2cbd1a9d46728a1
--- /dev/null
+++ b/shared/package-files/f2/f247698276a6076cd8a0ff27fd36b0777cebce36a1836c3b22f6bd4053a01157/storemagic.py
@@ -0,0 +1,236 @@
+# -*- coding: utf-8 -*-
+"""
+%store magic for lightweight persistence.
+
+Stores variables, aliases and macros in IPython's database.
+
+To automatically restore stored variables at startup, add this to your
+:file:`ipython_config.py` file::
+
+  c.StoreMagics.autorestore = True
+"""
+
+# Copyright (c) IPython Development Team.
+# Distributed under the terms of the Modified BSD License.
+
+import inspect, os, sys, textwrap
+
+from IPython.core.error import UsageError
+from IPython.core.magic import Magics, magics_class, line_magic
+from IPython.testing.skipdoctest import skip_doctest
+from traitlets import Bool
+
+
+def restore_aliases(ip, alias=None):
+    staliases = ip.db.get('stored_aliases', {})
+    if alias is None:
+        for k,v in staliases.items():
+            #print "restore alias",k,v # dbg
+            #self.alias_table[k] = v
+            ip.alias_manager.define_alias(k,v)
+    else:
+        ip.alias_manager.define_alias(alias, staliases[alias])
+
+
+def refresh_variables(ip):
+    db = ip.db
+    for key in db.keys('autorestore/*'):
+        # strip autorestore
+        justkey = os.path.basename(key)
+        try:
+            obj = db[key]
+        except KeyError:
+            print("Unable to restore variable '%s', ignoring (use %%store -d to forget!)" % justkey)
+            print("The error was:", sys.exc_info()[0])
+        else:
+            #print "restored",justkey,"=",obj #dbg
+            ip.user_ns[justkey] = obj
+
+
+def restore_dhist(ip):
+    ip.user_ns['_dh'] = ip.db.get('dhist',[])
+
+
+def restore_data(ip):
+    refresh_variables(ip)
+    restore_aliases(ip)
+    restore_dhist(ip)
+
+
+@magics_class
+class StoreMagics(Magics):
+    """Lightweight persistence for python variables.
+
+    Provides the %store magic."""
+
+    autorestore = Bool(False, help=
+        """If True, any %store-d variables will be automatically restored
+        when IPython starts.
+        """
+    ).tag(config=True)
+
+    def __init__(self, shell):
+        super(StoreMagics, self).__init__(shell=shell)
+        self.shell.configurables.append(self)
+        if self.autorestore:
+            restore_data(self.shell)
+
+    @skip_doctest
+    @line_magic
+    def store(self, parameter_s=''):
+        """Lightweight persistence for python variables.
+
+        Example::
+
+          In [1]: l = ['hello',10,'world']
+          In [2]: %store l
+          Stored 'l' (list)
+          In [3]: exit
+
+          (IPython session is closed and started again...)
+
+          ville@badger:~$ ipython
+          In [1]: l
+          NameError: name 'l' is not defined
+          In [2]: %store -r
+          In [3]: l
+          Out[3]: ['hello', 10, 'world']
+
+        Usage:
+
+        * ``%store``          - Show list of all variables and their current
+                                values
+        * ``%store spam bar`` - Store the *current* value of the variables spam
+                                and bar to disk
+        * ``%store -d spam``  - Remove the variable and its value from storage
+        * ``%store -z``       - Remove all variables from storage
+        * ``%store -r``       - Refresh all variables, aliases and directory history
+                                from store (overwrite current vals)
+        * ``%store -r spam bar`` - Refresh specified variables and aliases from store
+                                   (delete current val)
+        * ``%store foo >a.txt``  - Store value of foo to new file a.txt
+        * ``%store foo >>a.txt`` - Append value of foo to file a.txt
+
+        It should be noted that if you change the value of a variable, you
+        need to %store it again if you want to persist the new value.
+
+        Note also that the variables will need to be pickleable; most basic
+        python types can be safely %store'd.
+
+        Also aliases can be %store'd across sessions.
+        To remove an alias from the storage, use the %unalias magic.
+        """
+
+        opts,argsl = self.parse_options(parameter_s,'drz',mode='string')
+        args = argsl.split()
+        ip = self.shell
+        db = ip.db
+        # delete
+        if 'd' in opts:
+            try:
+                todel = args[0]
+            except IndexError as e:
+                raise UsageError('You must provide the variable to forget') from e
+            else:
+                try:
+                    del db['autorestore/' + todel]
+                except BaseException as e:
+                    raise UsageError("Can't delete variable '%s'" % todel) from e
+        # reset
+        elif 'z' in opts:
+            for k in db.keys('autorestore/*'):
+                del db[k]
+
+        elif 'r' in opts:
+            if args:
+                for arg in args:
+                    try:
+                        obj = db['autorestore/' + arg]
+                    except KeyError:
+                        try:
+                            restore_aliases(ip, alias=arg)
+                        except KeyError:
+                            print("no stored variable or alias %s" % arg)
+                    else:
+                        ip.user_ns[arg] = obj
+            else:
+                restore_data(ip)
+
+        # run without arguments -> list variables & values
+        elif not args:
+            vars = db.keys('autorestore/*')
+            vars.sort()
+            if vars:
+                size = max(map(len, vars))
+            else:
+                size = 0
+
+            print('Stored variables and their in-db values:')
+            fmt = '%-'+str(size)+'s -> %s'
+            get = db.get
+            for var in vars:
+                justkey = os.path.basename(var)
+                # print 30 first characters from every var
+                print(fmt % (justkey, repr(get(var, ''))[:50]))
+
+        # default action - store the variable
+        else:
+            # %store foo >file.txt or >>file.txt
+            if len(args) > 1 and args[1].startswith(">"):
+                fnam = os.path.expanduser(args[1].lstrip(">").lstrip())
+                if args[1].startswith(">>"):
+                    fil = open(fnam, "a", encoding="utf-8")
+                else:
+                    fil = open(fnam, "w", encoding="utf-8")
+                with fil:
+                    obj = ip.ev(args[0])
+                    print("Writing '%s' (%s) to file '%s'." % (args[0],
+                        obj.__class__.__name__, fnam))
+
+                    if not isinstance (obj, str):
+                        from pprint import pprint
+                        pprint(obj, fil)
+                    else:
+                        fil.write(obj)
+                        if not obj.endswith('\n'):
+                            fil.write('\n')
+
+                return
+
+            # %store foo
+            for arg in args:
+                try:
+                    obj = ip.user_ns[arg]
+                except KeyError:
+                    # it might be an alias
+                    name = arg
+                    try:
+                        cmd = ip.alias_manager.retrieve_alias(name)
+                    except ValueError as e:
+                        raise UsageError("Unknown variable '%s'" % name) from e
+
+                    staliases = db.get('stored_aliases',{})
+                    staliases[name] = cmd
+                    db['stored_aliases'] = staliases
+                    print("Alias stored: %s (%s)" % (name, cmd))
+                    return
+
+                else:
+                    modname = getattr(inspect.getmodule(obj), '__name__', '')
+                    if modname == '__main__':
+                        print(textwrap.dedent("""\
+                        Warning:%s is %s
+                        Proper storage of interactively declared classes (or instances
+                        of those classes) is not possible! Only instances
+                        of classes in real modules on file system can be %%store'd.
+                        """ % (arg, obj) ))
+                        return
+                    #pickled = pickle.dumps(obj)
+                    db[ 'autorestore/' + arg ] = obj
+                    print("Stored '%s' (%s)" % (arg, obj.__class__.__name__))
+
+
+def load_ipython_extension(ip):
+    """Load the extension in IPython."""
+    ip.register_magics(StoreMagics)
+
diff --git a/shared/package-files/f2/f24808f99651d25840192b9093433492dddc62b611c76f5bc21220f444af2dbb/fnmatch.pyi b/shared/package-files/f2/f24808f99651d25840192b9093433492dddc62b611c76f5bc21220f444af2dbb/fnmatch.pyi
new file mode 100644
index 0000000000000000000000000000000000000000..e933b7b2cb6239e577aec88c9f8ec79afdce9fb4
--- /dev/null
+++ b/shared/package-files/f2/f24808f99651d25840192b9093433492dddc62b611c76f5bc21220f444af2dbb/fnmatch.pyi
@@ -0,0 +1,8 @@
+from typing import AnyStr, Iterable, List, Union
+
+_EitherStr = Union[str, unicode]
+
+def fnmatch(filename: _EitherStr, pattern: _EitherStr) -> bool: ...
+def fnmatchcase(filename: _EitherStr, pattern: _EitherStr) -> bool: ...
+def filter(names: Iterable[AnyStr], pattern: _EitherStr) -> List[AnyStr]: ...
+def translate(pattern: AnyStr) -> AnyStr: ...
diff --git a/shared/package-files/f2/f249dd1698ed1687e13654c04d08b829193027a2fecc24222ec854b59350466a/fo.msg b/shared/package-files/f2/f249dd1698ed1687e13654c04d08b829193027a2fecc24222ec854b59350466a/fo.msg
new file mode 100644
index 0000000000000000000000000000000000000000..4696e6289ab332d32690d2c5d5d5bafff094ae1a
--- /dev/null
+++ b/shared/package-files/f2/f249dd1698ed1687e13654c04d08b829193027a2fecc24222ec854b59350466a/fo.msg
@@ -0,0 +1,47 @@
+# created by tools/loadICU.tcl -- do not edit
+namespace eval ::tcl::clock {
+    ::msgcat::mcset fo DAYS_OF_WEEK_ABBREV [list \
+        "sun"\
+        "m\u00e1n"\
+        "t\u00fds"\
+        "mik"\
+        "h\u00f3s"\
+        "fr\u00ed"\
+        "ley"]
+    ::msgcat::mcset fo DAYS_OF_WEEK_FULL [list \
+        "sunnudagur"\
+        "m\u00e1nadagur"\
+        "t\u00fdsdagur"\
+        "mikudagur"\
+        "h\u00f3sdagur"\
+        "fr\u00edggjadagur"\
+        "leygardagur"]
+    ::msgcat::mcset fo MONTHS_ABBREV [list \
+        "jan"\
+        "feb"\
+        "mar"\
+        "apr"\
+        "mai"\
+        "jun"\
+        "jul"\
+        "aug"\
+        "sep"\
+        "okt"\
+        "nov"\
+        "des"\
+        ""]
+    ::msgcat::mcset fo MONTHS_FULL [list \
+        "januar"\
+        "februar"\
+        "mars"\
+        "apr\u00edl"\
+        "mai"\
+        "juni"\
+        "juli"\
+        "august"\
+        "september"\
+        "oktober"\
+        "november"\
+        "desember"\
+        ""]
+}
diff --git a/shared/package-files/f2/f25119dd9ad67352a63866b754852098cf90ecd43f8da83b11e8f94b011eb704/ntconsole-50 b/shared/package-files/f2/f25119dd9ad67352a63866b754852098cf90ecd43f8da83b11e8f94b011eb704/ntconsole-50
new file mode 100644
index 0000000000000000000000000000000000000000..696833c5475351c52ed848c0c668a7f219d56ed6
Binary files /dev/null and b/shared/package-files/f2/f25119dd9ad67352a63866b754852098cf90ecd43f8da83b11e8f94b011eb704/ntconsole-50 differ
diff --git a/shared/package-files/f2/f25119dd9ad67352a63866b754852098cf90ecd43f8da83b11e8f94b011eb704/opennt-50 b/shared/package-files/f2/f25119dd9ad67352a63866b754852098cf90ecd43f8da83b11e8f94b011eb704/opennt-50
new file mode 100644
index 0000000000000000000000000000000000000000..696833c5475351c52ed848c0c668a7f219d56ed6
Binary files /dev/null and b/shared/package-files/f2/f25119dd9ad67352a63866b754852098cf90ecd43f8da83b11e8f94b011eb704/opennt-50 differ
diff --git a/shared/package-files/f2/f252b30ac3fa5bb33aa19ebdae6ecec855ddd1b79df5955fa8dfb9e12000a7af/scatter_meta.h b/shared/package-files/f2/f252b30ac3fa5bb33aa19ebdae6ecec855ddd1b79df5955fa8dfb9e12000a7af/scatter_meta.h
new file mode 100644
index 0000000000000000000000000000000000000000..0e0a113ca0c2f346a3830d451a8a52bdc8d0c3cf
--- /dev/null
+++ b/shared/package-files/f2/f252b30ac3fa5bb33aa19ebdae6ecec855ddd1b79df5955fa8dfb9e12000a7af/scatter_meta.h
@@ -0,0 +1,42 @@
+#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_scatter_src : public at::impl::MetaBase {
+    
+    
+    void meta(const at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Tensor & src);
+};
+struct TORCH_API structured_scatter_value : public at::impl::MetaBase {
+    
+    
+    void meta(const at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Scalar & value);
+};
+struct TORCH_API structured_scatter_reduce : public at::impl::MetaBase {
+    
+    
+    void meta(const at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Tensor & src, c10::string_view reduce);
+};
+struct TORCH_API structured_scatter_value_reduce : public at::impl::MetaBase {
+    
+    
+    void meta(const at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Scalar & value, c10::string_view reduce);
+};
+
+} // namespace native
+} // namespace at
diff --git a/shared/package-files/f2/f258b2288d0224ed06f85cf923ef908c80308749b8868b1fc803b0bd556cd2c5/config.h b/shared/package-files/f2/f258b2288d0224ed06f85cf923ef908c80308749b8868b1fc803b0bd556cd2c5/config.h
new file mode 100644
index 0000000000000000000000000000000000000000..617d6c268b55ea344a3fe7f96141ff0f7e4d3f88
--- /dev/null
+++ b/shared/package-files/f2/f258b2288d0224ed06f85cf923ef908c80308749b8868b1fc803b0bd556cd2c5/config.h
@@ -0,0 +1,98 @@
+// 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/status.h"
+#include "arrow/util/config.h"  // IWYU pragma: export
+#include "arrow/util/visibility.h"
+
+namespace arrow {
+
+struct BuildInfo {
+  /// The packed version number, e.g. 1002003 (decimal) for Arrow 1.2.3
+  int version;
+  /// The "major" version number, e.g. 1 for Arrow 1.2.3
+  int version_major;
+  /// The "minor" version number, e.g. 2 for Arrow 1.2.3
+  int version_minor;
+  /// The "patch" version number, e.g. 3 for Arrow 1.2.3
+  int version_patch;
+  /// The version string, e.g. "1.2.3"
+  std::string version_string;
+  std::string so_version;
+  std::string full_so_version;
+
+  /// The CMake compiler identifier, e.g. "GNU"
+  std::string compiler_id;
+  std::string compiler_version;
+  std::string compiler_flags;
+
+  /// The git changeset id, if available
+  std::string git_id;
+  /// The git changeset description, if available
+  std::string git_description;
+  std::string package_kind;
+
+  /// The uppercase build type, e.g. "DEBUG" or "RELEASE"
+  std::string build_type;
+};
+
+struct RuntimeInfo {
+  /// The enabled SIMD level
+  ///
+  /// This can be less than `detected_simd_level` if the ARROW_USER_SIMD_LEVEL
+  /// environment variable is set to another value.
+  std::string simd_level;
+
+  /// The SIMD level available on the OS and CPU
+  std::string detected_simd_level;
+
+  /// Whether using the OS-based timezone database
+  /// This is set at compile-time.
+  bool using_os_timezone_db;
+
+  /// The path to the timezone database; by default None.
+  std::optional timezone_db_path;
+};
+
+/// \brief Get runtime build info.
+///
+/// The returned values correspond to exact loaded version of the Arrow library,
+/// rather than the values frozen at application compile-time through the `ARROW_*`
+/// preprocessor definitions.
+ARROW_EXPORT
+const BuildInfo& GetBuildInfo();
+
+/// \brief Get runtime info.
+///
+ARROW_EXPORT
+RuntimeInfo GetRuntimeInfo();
+
+struct GlobalOptions {
+  /// Path to text timezone database. This is only configurable on Windows,
+  /// which does not have a compatible OS timezone database.
+  std::optional timezone_db_path;
+};
+
+ARROW_EXPORT
+Status Initialize(const GlobalOptions& options) noexcept;
+
+}  // namespace arrow
diff --git a/shared/package-files/f2/f2597ab9081647ed47fc0acaa847c50eaab954d756bfcc580f19eb40713b0528/att4415-w-nl b/shared/package-files/f2/f2597ab9081647ed47fc0acaa847c50eaab954d756bfcc580f19eb40713b0528/att4415-w-nl
new file mode 100644
index 0000000000000000000000000000000000000000..e045ecac150ab718798bb6c6424feb4dcc12765e
Binary files /dev/null and b/shared/package-files/f2/f2597ab9081647ed47fc0acaa847c50eaab954d756bfcc580f19eb40713b0528/att4415-w-nl differ
diff --git a/shared/package-files/f2/f2597ab9081647ed47fc0acaa847c50eaab954d756bfcc580f19eb40713b0528/att5420-w-nl b/shared/package-files/f2/f2597ab9081647ed47fc0acaa847c50eaab954d756bfcc580f19eb40713b0528/att5420-w-nl
new file mode 100644
index 0000000000000000000000000000000000000000..e045ecac150ab718798bb6c6424feb4dcc12765e
Binary files /dev/null and b/shared/package-files/f2/f2597ab9081647ed47fc0acaa847c50eaab954d756bfcc580f19eb40713b0528/att5420-w-nl differ
diff --git a/shared/package-files/f2/f2597ab9081647ed47fc0acaa847c50eaab954d756bfcc580f19eb40713b0528/tty5420-w-nl b/shared/package-files/f2/f2597ab9081647ed47fc0acaa847c50eaab954d756bfcc580f19eb40713b0528/tty5420-w-nl
new file mode 100644
index 0000000000000000000000000000000000000000..e045ecac150ab718798bb6c6424feb4dcc12765e
Binary files /dev/null and b/shared/package-files/f2/f2597ab9081647ed47fc0acaa847c50eaab954d756bfcc580f19eb40713b0528/tty5420-w-nl differ
diff --git a/shared/package-files/f2/f25f21d624e5d924cc82ebda1e027a2ce6d655337ebe2ee392aec5ee0ae58ae6/ast27.pyi b/shared/package-files/f2/f25f21d624e5d924cc82ebda1e027a2ce6d655337ebe2ee392aec5ee0ae58ae6/ast27.pyi
new file mode 100644
index 0000000000000000000000000000000000000000..139e58aac246e19330ef8f623312438eca685329
--- /dev/null
+++ b/shared/package-files/f2/f25f21d624e5d924cc82ebda1e027a2ce6d655337ebe2ee392aec5ee0ae58ae6/ast27.pyi
@@ -0,0 +1,335 @@
+import typing
+from typing import Any, Iterator, Optional, Union
+
+class NodeVisitor:
+    def visit(self, node: AST) -> Any: ...
+    def generic_visit(self, node: AST) -> None: ...
+
+class NodeTransformer(NodeVisitor):
+    def generic_visit(self, node: AST) -> None: ...
+
+def parse(source: Union[str, bytes], filename: Union[str, bytes] = ..., mode: str = ...) -> AST: ...
+def copy_location(new_node: AST, old_node: AST) -> AST: ...
+def dump(node: AST, annotate_fields: bool = ..., include_attributes: bool = ...) -> str: ...
+def fix_missing_locations(node: AST) -> AST: ...
+def get_docstring(node: AST, clean: bool = ...) -> Optional[bytes]: ...
+def increment_lineno(node: AST, n: int = ...) -> AST: ...
+def iter_child_nodes(node: AST) -> Iterator[AST]: ...
+def iter_fields(node: AST) -> Iterator[typing.Tuple[str, Any]]: ...
+def literal_eval(node_or_string: Union[str, AST]) -> Any: ...
+def walk(node: AST) -> Iterator[AST]: ...
+
+PyCF_ONLY_AST: int
+
+# ast classes
+
+identifier = str
+
+class AST:
+    _attributes: typing.Tuple[str, ...]
+    _fields: typing.Tuple[str, ...]
+    def __init__(self, *args: Any, **kwargs: Any) -> None: ...
+
+class mod(AST): ...
+
+class Module(mod):
+    body: typing.List[stmt]
+    type_ignores: typing.List[TypeIgnore]
+
+class Interactive(mod):
+    body: typing.List[stmt]
+
+class Expression(mod):
+    body: expr
+
+class FunctionType(mod):
+    argtypes: typing.List[expr]
+    returns: expr
+
+class Suite(mod):
+    body: typing.List[stmt]
+
+class stmt(AST):
+    lineno: int
+    col_offset: int
+
+class FunctionDef(stmt):
+    name: identifier
+    args: arguments
+    body: typing.List[stmt]
+    decorator_list: typing.List[expr]
+    type_comment: Optional[str]
+
+class ClassDef(stmt):
+    name: identifier
+    bases: typing.List[expr]
+    body: typing.List[stmt]
+    decorator_list: typing.List[expr]
+
+class Return(stmt):
+    value: Optional[expr]
+
+class Delete(stmt):
+    targets: typing.List[expr]
+
+class Assign(stmt):
+    targets: typing.List[expr]
+    value: expr
+    type_comment: Optional[str]
+
+class AugAssign(stmt):
+    target: expr
+    op: operator
+    value: expr
+
+class Print(stmt):
+    dest: Optional[expr]
+    values: typing.List[expr]
+    nl: bool
+
+class For(stmt):
+    target: expr
+    iter: expr
+    body: typing.List[stmt]
+    orelse: typing.List[stmt]
+    type_comment: Optional[str]
+
+class While(stmt):
+    test: expr
+    body: typing.List[stmt]
+    orelse: typing.List[stmt]
+
+class If(stmt):
+    test: expr
+    body: typing.List[stmt]
+    orelse: typing.List[stmt]
+
+class With(stmt):
+    context_expr: expr
+    optional_vars: Optional[expr]
+    body: typing.List[stmt]
+    type_comment: Optional[str]
+
+class Raise(stmt):
+    type: Optional[expr]
+    inst: Optional[expr]
+    tback: Optional[expr]
+
+class TryExcept(stmt):
+    body: typing.List[stmt]
+    handlers: typing.List[ExceptHandler]
+    orelse: typing.List[stmt]
+
+class TryFinally(stmt):
+    body: typing.List[stmt]
+    finalbody: typing.List[stmt]
+
+class Assert(stmt):
+    test: expr
+    msg: Optional[expr]
+
+class Import(stmt):
+    names: typing.List[alias]
+
+class ImportFrom(stmt):
+    module: Optional[identifier]
+    names: typing.List[alias]
+    level: Optional[int]
+
+class Exec(stmt):
+    body: expr
+    globals: Optional[expr]
+    locals: Optional[expr]
+
+class Global(stmt):
+    names: typing.List[identifier]
+
+class Expr(stmt):
+    value: expr
+
+class Pass(stmt): ...
+class Break(stmt): ...
+class Continue(stmt): ...
+class slice(AST): ...
+
+_slice = slice  # this lets us type the variable named 'slice' below
+
+class Slice(slice):
+    lower: Optional[expr]
+    upper: Optional[expr]
+    step: Optional[expr]
+
+class ExtSlice(slice):
+    dims: typing.List[slice]
+
+class Index(slice):
+    value: expr
+
+class Ellipsis(slice): ...
+
+class expr(AST):
+    lineno: int
+    col_offset: int
+
+class BoolOp(expr):
+    op: boolop
+    values: typing.List[expr]
+
+class BinOp(expr):
+    left: expr
+    op: operator
+    right: expr
+
+class UnaryOp(expr):
+    op: unaryop
+    operand: expr
+
+class Lambda(expr):
+    args: arguments
+    body: expr
+
+class IfExp(expr):
+    test: expr
+    body: expr
+    orelse: expr
+
+class Dict(expr):
+    keys: typing.List[expr]
+    values: typing.List[expr]
+
+class Set(expr):
+    elts: typing.List[expr]
+
+class ListComp(expr):
+    elt: expr
+    generators: typing.List[comprehension]
+
+class SetComp(expr):
+    elt: expr
+    generators: typing.List[comprehension]
+
+class DictComp(expr):
+    key: expr
+    value: expr
+    generators: typing.List[comprehension]
+
+class GeneratorExp(expr):
+    elt: expr
+    generators: typing.List[comprehension]
+
+class Yield(expr):
+    value: Optional[expr]
+
+class Compare(expr):
+    left: expr
+    ops: typing.List[cmpop]
+    comparators: typing.List[expr]
+
+class Call(expr):
+    func: expr
+    args: typing.List[expr]
+    keywords: typing.List[keyword]
+    starargs: Optional[expr]
+    kwargs: Optional[expr]
+
+class Repr(expr):
+    value: expr
+
+class Num(expr):
+    n: Union[int, float, complex]
+
+class Str(expr):
+    s: Union[str, bytes]
+    kind: str
+
+class Attribute(expr):
+    value: expr
+    attr: identifier
+    ctx: expr_context
+
+class Subscript(expr):
+    value: expr
+    slice: _slice
+    ctx: expr_context
+
+class Name(expr):
+    id: identifier
+    ctx: expr_context
+
+class List(expr):
+    elts: typing.List[expr]
+    ctx: expr_context
+
+class Tuple(expr):
+    elts: typing.List[expr]
+    ctx: expr_context
+
+class expr_context(AST): ...
+class AugLoad(expr_context): ...
+class AugStore(expr_context): ...
+class Del(expr_context): ...
+class Load(expr_context): ...
+class Param(expr_context): ...
+class Store(expr_context): ...
+class boolop(AST): ...
+class And(boolop): ...
+class Or(boolop): ...
+class operator(AST): ...
+class Add(operator): ...
+class BitAnd(operator): ...
+class BitOr(operator): ...
+class BitXor(operator): ...
+class Div(operator): ...
+class FloorDiv(operator): ...
+class LShift(operator): ...
+class Mod(operator): ...
+class Mult(operator): ...
+class Pow(operator): ...
+class RShift(operator): ...
+class Sub(operator): ...
+class unaryop(AST): ...
+class Invert(unaryop): ...
+class Not(unaryop): ...
+class UAdd(unaryop): ...
+class USub(unaryop): ...
+class cmpop(AST): ...
+class Eq(cmpop): ...
+class Gt(cmpop): ...
+class GtE(cmpop): ...
+class In(cmpop): ...
+class Is(cmpop): ...
+class IsNot(cmpop): ...
+class Lt(cmpop): ...
+class LtE(cmpop): ...
+class NotEq(cmpop): ...
+class NotIn(cmpop): ...
+
+class comprehension(AST):
+    target: expr
+    iter: expr
+    ifs: typing.List[expr]
+
+class ExceptHandler(AST):
+    type: Optional[expr]
+    name: Optional[expr]
+    body: typing.List[stmt]
+    lineno: int
+    col_offset: int
+
+class arguments(AST):
+    args: typing.List[expr]
+    vararg: Optional[identifier]
+    kwarg: Optional[identifier]
+    defaults: typing.List[expr]
+    type_comments: typing.List[Optional[str]]
+
+class keyword(AST):
+    arg: identifier
+    value: expr
+
+class alias(AST):
+    name: identifier
+    asname: Optional[identifier]
+
+class TypeIgnore(AST):
+    lineno: int
diff --git a/shared/package-files/f2/f26204393f88e1a6d56f8bbfd73850df608013f667e3acc9b956f7ee29b684b3/_classical.pxd b/shared/package-files/f2/f26204393f88e1a6d56f8bbfd73850df608013f667e3acc9b956f7ee29b684b3/_classical.pxd
new file mode 100644
index 0000000000000000000000000000000000000000..bf88940f6d91f558657d5aea45d4a38e531add33
--- /dev/null
+++ b/shared/package-files/f2/f26204393f88e1a6d56f8bbfd73850df608013f667e3acc9b956f7ee29b684b3/_classical.pxd
@@ -0,0 +1,51 @@
+#cython: boundscheck=False
+#cython: wraparound=False
+#cython: cdivision=False
+"""
+State Space Models - Conventional Kalman Filter declarations
+
+Author: Chad Fulton 
+License: Simplified-BSD
+"""
+
+cimport numpy as np
+
+from statsmodels.tsa.statespace._kalman_filter cimport (
+    cKalmanFilter,
+    dKalmanFilter,
+    sKalmanFilter,
+    zKalmanFilter,
+)
+from statsmodels.tsa.statespace._kalman_smoother cimport (
+    cKalmanSmoother,
+    dKalmanSmoother,
+    sKalmanSmoother,
+    zKalmanSmoother,
+)
+from statsmodels.tsa.statespace._representation cimport (
+    cStatespace,
+    dStatespace,
+    sStatespace,
+    zStatespace,
+)
+
+
+# Single precision
+cdef int ssmoothed_estimators_measurement_classical(sKalmanSmoother smoother, sKalmanFilter kfilter, sStatespace model) except *
+cdef int ssmoothed_estimators_time_classical(sKalmanSmoother smoother, sKalmanFilter kfilter, sStatespace model)
+cdef int ssmoothed_state_classical(sKalmanSmoother smoother, sKalmanFilter kfilter, sStatespace model)
+
+# Double precision
+cdef int dsmoothed_estimators_measurement_classical(dKalmanSmoother smoother, dKalmanFilter kfilter, dStatespace model) except *
+cdef int dsmoothed_estimators_time_classical(dKalmanSmoother smoother, dKalmanFilter kfilter, dStatespace model)
+cdef int dsmoothed_state_classical(dKalmanSmoother smoother, dKalmanFilter kfilter, dStatespace model)
+
+# Single precision complex
+cdef int csmoothed_estimators_measurement_classical(cKalmanSmoother smoother, cKalmanFilter kfilter, cStatespace model) except *
+cdef int csmoothed_estimators_time_classical(cKalmanSmoother smoother, cKalmanFilter kfilter, cStatespace model)
+cdef int csmoothed_state_classical(cKalmanSmoother smoother, cKalmanFilter kfilter, cStatespace model)
+
+# Double precision complex
+cdef int zsmoothed_estimators_measurement_classical(zKalmanSmoother smoother, zKalmanFilter kfilter, zStatespace model) except *
+cdef int zsmoothed_estimators_time_classical(zKalmanSmoother smoother, zKalmanFilter kfilter, zStatespace model)
+cdef int zsmoothed_state_classical(zKalmanSmoother smoother, zKalmanFilter kfilter, zStatespace model)
diff --git a/shared/package-files/f2/f26edb4e77e684b2f2719a04dc06a9cb2cf82733bf1bc23f7b72f5e856404d63/log.pyi b/shared/package-files/f2/f26edb4e77e684b2f2719a04dc06a9cb2cf82733bf1bc23f7b72f5e856404d63/log.pyi
new file mode 100644
index 0000000000000000000000000000000000000000..9dd4ee46ae45fde9fe5a277ae3262115ff0ffa21
--- /dev/null
+++ b/shared/package-files/f2/f26edb4e77e684b2f2719a04dc06a9cb2cf82733bf1bc23f7b72f5e856404d63/log.pyi
@@ -0,0 +1,16 @@
+from typing import Any, Optional
+
+from django import template
+from django.template.base import Parser, Token
+from django.template.context import Context
+
+register: Any
+
+class AdminLogNode(template.Node):
+    limit: str
+    user: str
+    varname: str
+    def __init__(self, limit: str, varname: str, user: Optional[str]) -> None: ...
+    def render(self, context: Context) -> str: ...
+
+def get_admin_log(parser: Parser, token: Token) -> AdminLogNode: ...
diff --git a/shared/package-files/f2/f26f5da24e738a0a7d22a307c7bdc4b429f67f9c10fcfc38596a1d362abdd254/test_stl.py b/shared/package-files/f2/f26f5da24e738a0a7d22a307c7bdc4b429f67f9c10fcfc38596a1d362abdd254/test_stl.py
new file mode 100644
index 0000000000000000000000000000000000000000..051589bb68be4d311384269800a539c5224aebc2
--- /dev/null
+++ b/shared/package-files/f2/f26f5da24e738a0a7d22a307c7bdc4b429f67f9c10fcfc38596a1d362abdd254/test_stl.py
@@ -0,0 +1,340 @@
+from statsmodels.compat.pandas import MONTH_END
+
+from pathlib import Path
+import pickle
+
+import numpy as np
+from numpy.testing import assert_allclose
+import pandas as pd
+import pytest
+
+from statsmodels.datasets import co2
+from statsmodels.tsa.seasonal import STL, DecomposeResult
+
+cur_dir = Path(__file__).resolve().parent
+file_path = Path(cur_dir).joinpath("results", "stl_test_results.csv")
+results = pd.read_csv(file_path)
+results.columns = [c.strip() for c in results.columns]
+results.scenario = results.scenario.apply(str.strip)
+results = results.set_index(["scenario", "idx"])
+
+
+@pytest.fixture(scope="module", params=[True, False])
+def robust(request):
+    return request.param
+
+
+def default_kwargs_base():
+    file_path = Path(cur_dir).joinpath("results", "stl_co2.csv")
+    co2 = np.asarray(pd.read_csv(file_path, header=None).iloc[:, 0])
+    y = co2
+    nobs = y.shape[0]
+    nperiod = 12
+    work = np.zeros((nobs + 2 * nperiod, 7))
+    rw = np.ones(nobs)
+    trend = np.zeros(nobs)
+    season = np.zeros(nobs)
+    return dict(
+        y=y,
+        n=y.shape[0],
+        np=nperiod,
+        ns=35,
+        nt=19,
+        nl=13,
+        no=2,
+        ni=1,
+        nsjump=4,
+        ntjump=2,
+        nljump=2,
+        isdeg=1,
+        itdeg=1,
+        ildeg=1,
+        rw=rw,
+        trend=trend,
+        season=season,
+        work=work,
+    )
+
+
+@pytest.fixture
+def default_kwargs():
+    return default_kwargs_base()
+
+
+@pytest.fixture
+def default_kwargs_short():
+    kwargs = default_kwargs_base()
+    y = kwargs["y"][:-1]
+    nobs = y.shape[0]
+    work = np.zeros((nobs + 2 * kwargs["np"], 7))
+    rw = np.ones(nobs)
+    trend = np.zeros(nobs)
+    season = np.zeros(nobs)
+    kwargs.update(dict(y=y, n=nobs, rw=rw, trend=trend, season=season, work=work))
+    return kwargs
+
+
+def _to_class_kwargs(kwargs, robust=False):
+    endog = kwargs["y"]
+    np = kwargs["np"]
+    ns = kwargs["ns"]
+    nt = kwargs["nt"]
+    nl = kwargs["nl"]
+    isdeg = kwargs["isdeg"]
+    itdeg = kwargs["itdeg"]
+    ildeg = kwargs["ildeg"]
+    nsjump = kwargs["nsjump"]
+    ntjump = kwargs["ntjump"]
+    nljump = kwargs["nljump"]
+    outer_iter = kwargs["no"]
+    inner_iter = kwargs["ni"]
+    class_kwargs = dict(
+        endog=endog,
+        period=np,
+        seasonal=ns,
+        trend=nt,
+        low_pass=nl,
+        seasonal_deg=isdeg,
+        trend_deg=itdeg,
+        low_pass_deg=ildeg,
+        robust=robust,
+        seasonal_jump=nsjump,
+        trend_jump=ntjump,
+        low_pass_jump=nljump,
+    )
+    return class_kwargs, outer_iter, inner_iter
+
+
+def test_baseline_class(default_kwargs):
+    class_kwargs, outer, inner = _to_class_kwargs(default_kwargs)
+    mod = STL(**class_kwargs)
+    res = mod.fit(outer_iter=outer, inner_iter=inner)
+
+    expected = results.loc["baseline"].sort_index()
+    assert_allclose(res.trend, expected.trend)
+    assert_allclose(res.seasonal, expected.season)
+    assert_allclose(res.weights, expected.rw)
+    resid = class_kwargs["endog"] - expected.trend - expected.season
+    assert_allclose(res.resid, resid)
+
+
+def test_short_class(default_kwargs_short):
+    class_kwargs, outer, inner = _to_class_kwargs(default_kwargs_short)
+    mod = STL(**class_kwargs)
+    res = mod.fit(outer_iter=outer, inner_iter=inner)
+
+    expected = results.loc["short"].sort_index()
+    assert_allclose(res.seasonal, expected.season)
+    assert_allclose(res.trend, expected.trend)
+    assert_allclose(res.weights, expected.rw)
+
+
+def test_nljump_1_class(default_kwargs):
+    default_kwargs["nljump"] = 1
+    class_kwargs, outer, inner = _to_class_kwargs(default_kwargs)
+    mod = STL(**class_kwargs)
+    res = mod.fit(outer_iter=outer, inner_iter=inner)
+
+    expected = results.loc["nljump-1"].sort_index()
+    assert_allclose(res.seasonal, expected.season)
+    assert_allclose(res.trend, expected.trend)
+    assert_allclose(res.weights, expected.rw)
+
+
+def test_ntjump_1_class(default_kwargs):
+    default_kwargs["ntjump"] = 1
+    class_kwargs, outer, inner = _to_class_kwargs(default_kwargs)
+    mod = STL(**class_kwargs)
+    res = mod.fit(outer_iter=outer, inner_iter=inner)
+
+    expected = results.loc["ntjump-1"].sort_index()
+    assert_allclose(res.seasonal, expected.season)
+    assert_allclose(res.trend, expected.trend)
+    assert_allclose(res.weights, expected.rw)
+
+
+def test_nljump_1_ntjump_1_class(default_kwargs):
+    default_kwargs["nljump"] = 1
+    default_kwargs["ntjump"] = 1
+    class_kwargs, outer, inner = _to_class_kwargs(default_kwargs)
+    mod = STL(**class_kwargs)
+    res = mod.fit(outer_iter=outer, inner_iter=inner)
+
+    expected = results.loc["nljump-1-ntjump-1"].sort_index()
+    assert_allclose(res.seasonal, expected.season)
+    assert_allclose(res.trend, expected.trend)
+    assert_allclose(res.weights, expected.rw)
+
+
+def test_parameter_checks_period(default_kwargs):
+    class_kwargs, _, _ = _to_class_kwargs(default_kwargs)
+    endog = class_kwargs["endog"]
+    endog2 = np.hstack((endog[:, None], endog[:, None]))
+    period = class_kwargs["period"]
+    with pytest.raises(ValueError, match="endog is required to have ndim 1"):
+        STL(endog=endog2, period=period)
+    match = "period must be a positive integer >= 2"
+    with pytest.raises(ValueError, match=match):
+        STL(endog=endog, period=1)
+    with pytest.raises(ValueError, match=match):
+        STL(endog=endog, period=-12)
+    with pytest.raises(ValueError, match=match):
+        STL(endog=endog, period=4.0)
+
+
+def test_parameter_checks_seasonal(default_kwargs):
+    class_kwargs, _, _ = _to_class_kwargs(default_kwargs)
+    endog = class_kwargs["endog"]
+    period = class_kwargs["period"]
+    match = "seasonal must be an odd positive integer >= 3"
+    with pytest.raises(ValueError, match=match):
+        STL(endog=endog, period=period, seasonal=2)
+    with pytest.raises(ValueError, match=match):
+        STL(endog=endog, period=period, seasonal=-7)
+    with pytest.raises(ValueError, match=match):
+        STL(endog=endog, period=period, seasonal=13.0)
+
+
+def test_parameter_checks_trend(default_kwargs):
+    class_kwargs, _, _ = _to_class_kwargs(default_kwargs)
+    endog = class_kwargs["endog"]
+    period = class_kwargs["period"]
+    match = "trend must be an odd positive integer >= 3 where trend > period"
+    with pytest.raises(ValueError, match=match):
+        STL(endog=endog, period=period, trend=14)
+    with pytest.raises(ValueError, match=match):
+        STL(endog=endog, period=period, trend=11)
+    with pytest.raises(ValueError, match=match):
+        STL(endog=endog, period=period, trend=-19)
+    with pytest.raises(ValueError, match=match):
+        STL(endog=endog, period=period, trend=19.0)
+
+
+def test_parameter_checks_low_pass(default_kwargs):
+    class_kwargs, _, _ = _to_class_kwargs(default_kwargs)
+    endog = class_kwargs["endog"]
+    period = class_kwargs["period"]
+
+    match = "low_pass must be an odd positive integer >= 3 where low_pass > period"
+    with pytest.raises(ValueError, match=match):
+        STL(endog=endog, period=period, low_pass=14)
+    with pytest.raises(ValueError, match=match):
+        STL(endog=endog, period=period, low_pass=7)
+    with pytest.raises(ValueError, match=match):
+        STL(endog=endog, period=period, low_pass=-19)
+    with pytest.raises(ValueError, match=match):
+        STL(endog=endog, period=period, low_pass=19.0)
+
+
+def test_jump_errors(default_kwargs):
+    class_kwargs, _, _ = _to_class_kwargs(default_kwargs)
+    endog = class_kwargs["endog"]
+    period = class_kwargs["period"]
+    with pytest.raises(ValueError, match="low_pass_jump must be a positive"):
+        STL(endog=endog, period=period, low_pass_jump=0)
+    with pytest.raises(ValueError, match="low_pass_jump must be a positive"):
+        STL(endog=endog, period=period, low_pass_jump=1.0)
+    with pytest.raises(ValueError, match="seasonal_jump must be a positive"):
+        STL(endog=endog, period=period, seasonal_jump=0)
+    with pytest.raises(ValueError, match="seasonal_jump must be a positive"):
+        STL(endog=endog, period=period, seasonal_jump=1.0)
+    with pytest.raises(ValueError, match="trend_jump must be a positive"):
+        STL(endog=endog, period=period, trend_jump=0)
+    with pytest.raises(ValueError, match="trend_jump must be a positive"):
+        STL(endog=endog, period=period, trend_jump=1.0)
+
+
+def test_defaults_smoke(default_kwargs, robust):
+    class_kwargs, _, _ = _to_class_kwargs(default_kwargs, robust)
+    endog = class_kwargs["endog"]
+    period = class_kwargs["period"]
+    mod = STL(endog=endog, period=period)
+    mod.fit()
+
+
+def test_pandas(default_kwargs, robust):
+    class_kwargs, _, _ = _to_class_kwargs(default_kwargs, robust)
+    endog = pd.Series(class_kwargs["endog"], name="y")
+    period = class_kwargs["period"]
+    mod = STL(endog=endog, period=period)
+    res = mod.fit()
+    assert isinstance(res.trend, pd.Series)
+    assert isinstance(res.seasonal, pd.Series)
+    assert isinstance(res.resid, pd.Series)
+    assert isinstance(res.weights, pd.Series)
+
+
+def test_period_detection(default_kwargs):
+    class_kwargs, _, _ = _to_class_kwargs(default_kwargs)
+    mod = STL(**class_kwargs)
+    res = mod.fit()
+
+    del class_kwargs["period"]
+    endog = class_kwargs["endog"]
+    index = pd.date_range("1-1-1959", periods=348, freq=MONTH_END)
+    class_kwargs["endog"] = pd.Series(endog, index=index)
+    mod = STL(**class_kwargs)
+
+    res_implicit_period = mod.fit()
+    assert_allclose(res.seasonal, res_implicit_period.seasonal)
+
+
+def test_no_period(default_kwargs):
+    class_kwargs, _, _ = _to_class_kwargs(default_kwargs)
+    del class_kwargs["period"]
+    class_kwargs["endog"] = pd.Series(class_kwargs["endog"])
+    with pytest.raises(ValueError, match="Unable to determine period from"):
+        STL(**class_kwargs)
+
+
+@pytest.mark.thread_unsafe(reason="Uses matplotlib")
+@pytest.mark.matplotlib
+def test_plot(default_kwargs, close_figures):
+    class_kwargs, outer, inner = _to_class_kwargs(default_kwargs)
+    res = STL(**class_kwargs).fit(outer_iter=outer, inner_iter=inner)
+    res.plot()
+
+    class_kwargs["endog"] = pd.Series(class_kwargs["endog"], name="CO2")
+    res = STL(**class_kwargs).fit()
+    res.plot()
+
+
+def test_default_trend(default_kwargs):
+    # GH 6686
+    class_kwargs, _, _ = _to_class_kwargs(default_kwargs)
+    class_kwargs["seasonal"] = 17
+    class_kwargs["trend"] = None
+    mod = STL(**class_kwargs)
+    period = class_kwargs["period"]
+    seasonal = class_kwargs["seasonal"]
+    expected = int(np.ceil(1.5 * period / (1 - 1.5 / seasonal)))
+    expected += 1 if expected % 2 == 0 else 0
+    assert mod.config["trend"] == expected
+
+    class_kwargs["seasonal"] = 7
+    mod = STL(**class_kwargs)
+    period = class_kwargs["period"]
+    seasonal = class_kwargs["seasonal"]
+    expected = int(np.ceil(1.5 * period / (1 - 1.5 / seasonal)))
+    expected += 1 if expected % 2 == 0 else 0
+    assert mod.config["trend"] == expected
+
+
+def test_pickle(default_kwargs):
+    class_kwargs, outer, inner = _to_class_kwargs(default_kwargs)
+    mod = STL(**class_kwargs)
+    res = mod.fit()
+    pkl = pickle.dumps(mod)
+    reloaded = pickle.loads(pkl)
+    res2 = reloaded.fit()
+    assert_allclose(res.trend, res2.trend)
+    assert_allclose(res.seasonal, res2.seasonal)
+    assert mod.config == reloaded.config
+
+
+def test_squezable_to_1d():
+    data = co2.load().data
+    data = data.resample(MONTH_END).mean().ffill()
+    res = STL(data).fit()
+    assert isinstance(res, DecomposeResult)
+    assert res.nobs == data.shape[0]
diff --git a/shared/package-files/f2/f27767cf222c8c5e003aeffd93a62a6a9ff55d40d36e21a7bfba2725dad90560/test_piab.py b/shared/package-files/f2/f27767cf222c8c5e003aeffd93a62a6a9ff55d40d36e21a7bfba2725dad90560/test_piab.py
new file mode 100644
index 0000000000000000000000000000000000000000..3a4c2540b3269593c74bdbae93bf72d131a94ed9
--- /dev/null
+++ b/shared/package-files/f2/f27767cf222c8c5e003aeffd93a62a6a9ff55d40d36e21a7bfba2725dad90560/test_piab.py
@@ -0,0 +1,29 @@
+"""Tests for piab.py"""
+
+from sympy.core.numbers import pi
+from sympy.core.singleton import S
+from sympy.core.symbol import symbols
+from sympy.functions.elementary.miscellaneous import sqrt
+from sympy.functions.elementary.trigonometric import sin
+from sympy.sets.sets import Interval
+from sympy.functions.special.tensor_functions import KroneckerDelta
+from sympy.physics.quantum import L2, qapply, hbar, represent
+from sympy.physics.quantum.piab import PIABHamiltonian, PIABKet, PIABBra, m, L
+
+i, j, n, x = symbols('i j n x')
+
+
+def test_H():
+    assert PIABHamiltonian('H').hilbert_space == \
+        L2(Interval(S.NegativeInfinity, S.Infinity))
+    assert qapply(PIABHamiltonian('H')*PIABKet(n)) == \
+        (n**2*pi**2*hbar**2)/(2*m*L**2)*PIABKet(n)
+
+
+def test_states():
+    assert PIABKet(n).dual_class() == PIABBra
+    assert PIABKet(n).hilbert_space == \
+        L2(Interval(S.NegativeInfinity, S.Infinity))
+    assert represent(PIABKet(n)) == sqrt(2/L)*sin(n*pi*x/L)
+    assert (PIABBra(i)*PIABKet(j)).doit() == KroneckerDelta(i, j)
+    assert PIABBra(n).dual_class() == PIABKet
diff --git a/shared/package-files/f2/f2798bbd5bbd903456ac02183efd3e99a094afa6f7fc74bccdc038085e22fb02/_empirical_covariance.py b/shared/package-files/f2/f2798bbd5bbd903456ac02183efd3e99a094afa6f7fc74bccdc038085e22fb02/_empirical_covariance.py
new file mode 100644
index 0000000000000000000000000000000000000000..c8ee198cc477275da749de0c212c4c874937f51b
--- /dev/null
+++ b/shared/package-files/f2/f2798bbd5bbd903456ac02183efd3e99a094afa6f7fc74bccdc038085e22fb02/_empirical_covariance.py
@@ -0,0 +1,370 @@
+"""
+Maximum likelihood covariance estimator.
+
+"""
+
+# Authors: The scikit-learn developers
+# SPDX-License-Identifier: BSD-3-Clause
+
+# avoid division truncation
+import warnings
+
+import numpy as np
+from scipy import linalg
+
+from sklearn.utils import metadata_routing
+
+from .. import config_context
+from ..base import BaseEstimator, _fit_context
+from ..metrics.pairwise import pairwise_distances
+from ..utils import check_array
+from ..utils._param_validation import validate_params
+from ..utils.extmath import fast_logdet
+from ..utils.validation import validate_data
+
+
+@validate_params(
+    {
+        "emp_cov": [np.ndarray],
+        "precision": [np.ndarray],
+    },
+    prefer_skip_nested_validation=True,
+)
+def log_likelihood(emp_cov, precision):
+    """Compute the sample mean of the log_likelihood under a covariance model.
+
+    Computes the empirical expected log-likelihood, allowing for universal
+    comparison (beyond this software package), and accounts for normalization
+    terms and scaling.
+
+    Parameters
+    ----------
+    emp_cov : ndarray of shape (n_features, n_features)
+        Maximum Likelihood Estimator of covariance.
+
+    precision : ndarray of shape (n_features, n_features)
+        The precision matrix of the covariance model to be tested.
+
+    Returns
+    -------
+    log_likelihood_ : float
+        Sample mean of the log-likelihood.
+    """
+    p = precision.shape[0]
+    log_likelihood_ = -np.sum(emp_cov * precision) + fast_logdet(precision)
+    log_likelihood_ -= p * np.log(2 * np.pi)
+    log_likelihood_ /= 2.0
+    return log_likelihood_
+
+
+@validate_params(
+    {
+        "X": ["array-like"],
+        "assume_centered": ["boolean"],
+    },
+    prefer_skip_nested_validation=True,
+)
+def empirical_covariance(X, *, assume_centered=False):
+    """Compute the Maximum likelihood covariance estimator.
+
+    Parameters
+    ----------
+    X : ndarray of shape (n_samples, n_features)
+        Data from which to compute the covariance estimate.
+
+    assume_centered : bool, default=False
+        If `True`, data will not be centered before computation.
+        Useful when working with data whose mean is almost, but not exactly
+        zero.
+        If `False`, data will be centered before computation.
+
+    Returns
+    -------
+    covariance : ndarray of shape (n_features, n_features)
+        Empirical covariance (Maximum Likelihood Estimator).
+
+    Examples
+    --------
+    >>> from sklearn.covariance import empirical_covariance
+    >>> X = [[1,1,1],[1,1,1],[1,1,1],
+    ...      [0,0,0],[0,0,0],[0,0,0]]
+    >>> empirical_covariance(X)
+    array([[0.25, 0.25, 0.25],
+           [0.25, 0.25, 0.25],
+           [0.25, 0.25, 0.25]])
+    """
+    X = check_array(X, ensure_2d=False, ensure_all_finite=False)
+
+    if X.ndim == 1:
+        X = np.reshape(X, (1, -1))
+
+    if X.shape[0] == 1:
+        warnings.warn(
+            "Only one sample available. You may want to reshape your data array"
+        )
+
+    if assume_centered:
+        covariance = np.dot(X.T, X) / X.shape[0]
+    else:
+        covariance = np.cov(X.T, bias=1)
+
+    if covariance.ndim == 0:
+        covariance = np.array([[covariance]])
+    return covariance
+
+
+class EmpiricalCovariance(BaseEstimator):
+    """Maximum likelihood covariance estimator.
+
+    Read more in the :ref:`User Guide `.
+
+    Parameters
+    ----------
+    store_precision : bool, default=True
+        Specifies if the estimated precision is stored.
+
+    assume_centered : bool, default=False
+        If True, data are not centered before computation.
+        Useful when working with data whose mean is almost, but not exactly
+        zero.
+        If False (default), data are centered before computation.
+
+    Attributes
+    ----------
+    location_ : ndarray of shape (n_features,)
+        Estimated location, i.e. the estimated mean.
+
+    covariance_ : ndarray of shape (n_features, n_features)
+        Estimated covariance matrix.
+
+    precision_ : ndarray of shape (n_features, n_features)
+        Estimated pseudo-inverse matrix.
+        (stored only if store_precision is True)
+
+    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
+    --------
+    EllipticEnvelope : An object for detecting outliers in
+        a Gaussian distributed dataset.
+    GraphicalLasso : Sparse inverse covariance estimation
+        with an l1-penalized estimator.
+    LedoitWolf : LedoitWolf Estimator.
+    MinCovDet : Minimum Covariance Determinant
+        (robust estimator of covariance).
+    OAS : Oracle Approximating Shrinkage Estimator.
+    ShrunkCovariance : Covariance estimator with shrinkage.
+
+    Examples
+    --------
+    >>> import numpy as np
+    >>> from sklearn.covariance import EmpiricalCovariance
+    >>> from sklearn.datasets import make_gaussian_quantiles
+    >>> real_cov = np.array([[.8, .3],
+    ...                      [.3, .4]])
+    >>> rng = np.random.RandomState(0)
+    >>> X = rng.multivariate_normal(mean=[0, 0],
+    ...                             cov=real_cov,
+    ...                             size=500)
+    >>> cov = EmpiricalCovariance().fit(X)
+    >>> cov.covariance_
+    array([[0.7569, 0.2818],
+           [0.2818, 0.3928]])
+    >>> cov.location_
+    array([0.0622, 0.0193])
+    """
+
+    # X_test should have been called X
+    __metadata_request__score = {"X_test": metadata_routing.UNUSED}
+
+    _parameter_constraints: dict = {
+        "store_precision": ["boolean"],
+        "assume_centered": ["boolean"],
+    }
+
+    def __init__(self, *, store_precision=True, assume_centered=False):
+        self.store_precision = store_precision
+        self.assume_centered = assume_centered
+
+    def _set_covariance(self, covariance):
+        """Saves the covariance and precision estimates
+
+        Storage is done accordingly to `self.store_precision`.
+        Precision stored only if invertible.
+
+        Parameters
+        ----------
+        covariance : array-like of shape (n_features, n_features)
+            Estimated covariance matrix to be stored, and from which precision
+            is computed.
+        """
+        covariance = check_array(covariance)
+        # set covariance
+        self.covariance_ = covariance
+        # set precision
+        if self.store_precision:
+            self.precision_ = linalg.pinvh(covariance, check_finite=False)
+        else:
+            self.precision_ = None
+
+    def get_precision(self):
+        """Getter for the precision matrix.
+
+        Returns
+        -------
+        precision_ : array-like of shape (n_features, n_features)
+            The precision matrix associated to the current covariance object.
+        """
+        if self.store_precision:
+            precision = self.precision_
+        else:
+            precision = linalg.pinvh(self.covariance_, check_finite=False)
+        return precision
+
+    @_fit_context(prefer_skip_nested_validation=True)
+    def fit(self, X, y=None):
+        """Fit the maximum likelihood covariance estimator to X.
+
+        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.
+
+        Returns
+        -------
+        self : object
+            Returns the instance itself.
+        """
+        X = validate_data(self, X)
+        if self.assume_centered:
+            self.location_ = np.zeros(X.shape[1])
+        else:
+            self.location_ = X.mean(0)
+        covariance = empirical_covariance(X, assume_centered=self.assume_centered)
+        self._set_covariance(covariance)
+
+        return self
+
+    def score(self, X_test, y=None):
+        """Compute the log-likelihood of `X_test` under the estimated Gaussian model.
+
+        The Gaussian model is defined by its mean and covariance matrix which are
+        represented respectively by `self.location_` and `self.covariance_`.
+
+        Parameters
+        ----------
+        X_test : array-like of shape (n_samples, n_features)
+            Test data of which we compute the likelihood, where `n_samples` is
+            the number of samples and `n_features` is the number of features.
+            `X_test` is assumed to be drawn from the same distribution than
+            the data used in fit (including centering).
+
+        y : Ignored
+            Not used, present for API consistency by convention.
+
+        Returns
+        -------
+        res : float
+            The log-likelihood of `X_test` with `self.location_` and `self.covariance_`
+            as estimators of the Gaussian model mean and covariance matrix respectively.
+        """
+        X_test = validate_data(self, X_test, reset=False)
+        # compute empirical covariance of the test set
+        test_cov = empirical_covariance(X_test - self.location_, assume_centered=True)
+        # compute log likelihood
+        res = log_likelihood(test_cov, self.get_precision())
+
+        return res
+
+    def error_norm(self, comp_cov, norm="frobenius", scaling=True, squared=True):
+        """Compute the Mean Squared Error between two covariance estimators.
+
+        Parameters
+        ----------
+        comp_cov : array-like of shape (n_features, n_features)
+            The covariance to compare with.
+
+        norm : {"frobenius", "spectral"}, default="frobenius"
+            The type of norm used to compute the error. Available error types:
+            - 'frobenius' (default): sqrt(tr(A^t.A))
+            - 'spectral': sqrt(max(eigenvalues(A^t.A))
+            where A is the error ``(comp_cov - self.covariance_)``.
+
+        scaling : bool, default=True
+            If True (default), the squared error norm is divided by n_features.
+            If False, the squared error norm is not rescaled.
+
+        squared : bool, default=True
+            Whether to compute the squared error norm or the error norm.
+            If True (default), the squared error norm is returned.
+            If False, the error norm is returned.
+
+        Returns
+        -------
+        result : float
+            The Mean Squared Error (in the sense of the Frobenius norm) between
+            `self` and `comp_cov` covariance estimators.
+        """
+        # compute the error
+        error = comp_cov - self.covariance_
+        # compute the error norm
+        if norm == "frobenius":
+            squared_norm = np.sum(error**2)
+        elif norm == "spectral":
+            squared_norm = np.amax(linalg.svdvals(np.dot(error.T, error)))
+        else:
+            raise NotImplementedError(
+                "Only spectral and frobenius norms are implemented"
+            )
+        # optionally scale the error norm
+        if scaling:
+            squared_norm = squared_norm / error.shape[0]
+        # finally get either the squared norm or the norm
+        if squared:
+            result = squared_norm
+        else:
+            result = np.sqrt(squared_norm)
+
+        return result
+
+    def mahalanobis(self, X):
+        """Compute the squared Mahalanobis distances of given observations.
+
+        For a detailed example of how outliers affects the Mahalanobis distance,
+        see :ref:`sphx_glr_auto_examples_covariance_plot_mahalanobis_distances.py`.
+
+        Parameters
+        ----------
+        X : array-like of shape (n_samples, n_features)
+            The observations, the Mahalanobis distances of the which we
+            compute. Observations are assumed to be drawn from the same
+            distribution than the data used in fit.
+
+        Returns
+        -------
+        dist : ndarray of shape (n_samples,)
+            Squared Mahalanobis distances of the observations.
+        """
+        X = validate_data(self, X, reset=False)
+
+        precision = self.get_precision()
+        with config_context(assume_finite=True):
+            # compute mahalanobis distances
+            dist = pairwise_distances(
+                X, self.location_[np.newaxis, :], metric="mahalanobis", VI=precision
+            )
+
+        return np.reshape(dist, (len(X),)) ** 2
diff --git a/shared/package-files/f2/f27ac6b08e055c83f1dc3ac6a2a84bcff5348d982980a7d6d45036a15da22780/xcode.py b/shared/package-files/f2/f27ac6b08e055c83f1dc3ac6a2a84bcff5348d982980a7d6d45036a15da22780/xcode.py
new file mode 100644
index 0000000000000000000000000000000000000000..86cab45fbedacc75a5667d1899aacdbd6c395da7
--- /dev/null
+++ b/shared/package-files/f2/f27ac6b08e055c83f1dc3ac6a2a84bcff5348d982980a7d6d45036a15da22780/xcode.py
@@ -0,0 +1,48 @@
+"""
+    pygments.styles.xcode
+    ~~~~~~~~~~~~~~~~~~~~~
+
+    Style similar to the `Xcode` default theme.
+
+    :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
+    :license: BSD, see LICENSE for details.
+"""
+
+from pygments.style import Style
+from pygments.token import Keyword, Name, Comment, String, Error, \
+     Number, Operator, Literal
+
+
+class XcodeStyle(Style):
+    """
+    Style similar to the Xcode default colouring theme.
+    """
+
+    styles = {
+        Comment:                '#177500',
+        Comment.Preproc:        '#633820',
+
+        String:                 '#C41A16',
+        String.Char:            '#2300CE',
+
+        Operator:               '#000000',
+
+        Keyword:                '#A90D91',
+
+        Name:                   '#000000',
+        Name.Attribute:         '#836C28',
+        Name.Class:             '#3F6E75',
+        Name.Function:          '#000000',
+        Name.Builtin:           '#A90D91',
+        # In Obj-C code this token is used to colour Cocoa types
+        Name.Builtin.Pseudo:    '#5B269A',
+        Name.Variable:          '#000000',
+        Name.Tag:               '#000000',
+        Name.Decorator:         '#000000',
+        # Workaround for a BUG here: lexer treats multiline method signatres as labels
+        Name.Label:             '#000000',
+
+        Literal:                '#1C01CE',
+        Number:                 '#1C01CE',
+        Error:                  '#000000',
+    }
diff --git a/shared/package-files/f2/f27c8451838d5187b7d7d26981ebca11f8ebfc5c42803354f203b27ee6772f77/ssdlite.py b/shared/package-files/f2/f27c8451838d5187b7d7d26981ebca11f8ebfc5c42803354f203b27ee6772f77/ssdlite.py
new file mode 100644
index 0000000000000000000000000000000000000000..eda21bf941ef0d4a9051312ebdba6911c6760e8d
--- /dev/null
+++ b/shared/package-files/f2/f27c8451838d5187b7d7d26981ebca11f8ebfc5c42803354f203b27ee6772f77/ssdlite.py
@@ -0,0 +1,331 @@
+import warnings
+from collections import OrderedDict
+from functools import partial
+from typing import Any, Callable, Dict, List, Optional, Union
+
+import torch
+from torch import nn, Tensor
+
+from ...ops.misc import Conv2dNormActivation
+from ...transforms._presets import ObjectDetection
+from ...utils import _log_api_usage_once
+from .. import mobilenet
+from .._api import register_model, Weights, WeightsEnum
+from .._meta import _COCO_CATEGORIES
+from .._utils import _ovewrite_value_param, handle_legacy_interface
+from ..mobilenetv3 import mobilenet_v3_large, MobileNet_V3_Large_Weights
+from . import _utils as det_utils
+from .anchor_utils import DefaultBoxGenerator
+from .backbone_utils import _validate_trainable_layers
+from .ssd import SSD, SSDScoringHead
+
+
+__all__ = [
+    "SSDLite320_MobileNet_V3_Large_Weights",
+    "ssdlite320_mobilenet_v3_large",
+]
+
+
+# Building blocks of SSDlite as described in section 6.2 of MobileNetV2 paper
+def _prediction_block(
+    in_channels: int, out_channels: int, kernel_size: int, norm_layer: Callable[..., nn.Module]
+) -> nn.Sequential:
+    return nn.Sequential(
+        # 3x3 depthwise with stride 1 and padding 1
+        Conv2dNormActivation(
+            in_channels,
+            in_channels,
+            kernel_size=kernel_size,
+            groups=in_channels,
+            norm_layer=norm_layer,
+            activation_layer=nn.ReLU6,
+        ),
+        # 1x1 projetion to output channels
+        nn.Conv2d(in_channels, out_channels, 1),
+    )
+
+
+def _extra_block(in_channels: int, out_channels: int, norm_layer: Callable[..., nn.Module]) -> nn.Sequential:
+    activation = nn.ReLU6
+    intermediate_channels = out_channels // 2
+    return nn.Sequential(
+        # 1x1 projection to half output channels
+        Conv2dNormActivation(
+            in_channels, intermediate_channels, kernel_size=1, norm_layer=norm_layer, activation_layer=activation
+        ),
+        # 3x3 depthwise with stride 2 and padding 1
+        Conv2dNormActivation(
+            intermediate_channels,
+            intermediate_channels,
+            kernel_size=3,
+            stride=2,
+            groups=intermediate_channels,
+            norm_layer=norm_layer,
+            activation_layer=activation,
+        ),
+        # 1x1 projetion to output channels
+        Conv2dNormActivation(
+            intermediate_channels, out_channels, kernel_size=1, norm_layer=norm_layer, activation_layer=activation
+        ),
+    )
+
+
+def _normal_init(conv: nn.Module):
+    for layer in conv.modules():
+        if isinstance(layer, nn.Conv2d):
+            torch.nn.init.normal_(layer.weight, mean=0.0, std=0.03)
+            if layer.bias is not None:
+                torch.nn.init.constant_(layer.bias, 0.0)
+
+
+class SSDLiteHead(nn.Module):
+    def __init__(
+        self, in_channels: List[int], num_anchors: List[int], num_classes: int, norm_layer: Callable[..., nn.Module]
+    ):
+        super().__init__()
+        self.classification_head = SSDLiteClassificationHead(in_channels, num_anchors, num_classes, norm_layer)
+        self.regression_head = SSDLiteRegressionHead(in_channels, num_anchors, norm_layer)
+
+    def forward(self, x: List[Tensor]) -> Dict[str, Tensor]:
+        return {
+            "bbox_regression": self.regression_head(x),
+            "cls_logits": self.classification_head(x),
+        }
+
+
+class SSDLiteClassificationHead(SSDScoringHead):
+    def __init__(
+        self, in_channels: List[int], num_anchors: List[int], num_classes: int, norm_layer: Callable[..., nn.Module]
+    ):
+        cls_logits = nn.ModuleList()
+        for channels, anchors in zip(in_channels, num_anchors):
+            cls_logits.append(_prediction_block(channels, num_classes * anchors, 3, norm_layer))
+        _normal_init(cls_logits)
+        super().__init__(cls_logits, num_classes)
+
+
+class SSDLiteRegressionHead(SSDScoringHead):
+    def __init__(self, in_channels: List[int], num_anchors: List[int], norm_layer: Callable[..., nn.Module]):
+        bbox_reg = nn.ModuleList()
+        for channels, anchors in zip(in_channels, num_anchors):
+            bbox_reg.append(_prediction_block(channels, 4 * anchors, 3, norm_layer))
+        _normal_init(bbox_reg)
+        super().__init__(bbox_reg, 4)
+
+
+class SSDLiteFeatureExtractorMobileNet(nn.Module):
+    def __init__(
+        self,
+        backbone: nn.Module,
+        c4_pos: int,
+        norm_layer: Callable[..., nn.Module],
+        width_mult: float = 1.0,
+        min_depth: int = 16,
+    ):
+        super().__init__()
+        _log_api_usage_once(self)
+
+        if backbone[c4_pos].use_res_connect:
+            raise ValueError("backbone[c4_pos].use_res_connect should be False")
+
+        self.features = nn.Sequential(
+            # As described in section 6.3 of MobileNetV3 paper
+            nn.Sequential(*backbone[:c4_pos], backbone[c4_pos].block[0]),  # from start until C4 expansion layer
+            nn.Sequential(backbone[c4_pos].block[1:], *backbone[c4_pos + 1 :]),  # from C4 depthwise until end
+        )
+
+        get_depth = lambda d: max(min_depth, int(d * width_mult))  # noqa: E731
+        extra = nn.ModuleList(
+            [
+                _extra_block(backbone[-1].out_channels, get_depth(512), norm_layer),
+                _extra_block(get_depth(512), get_depth(256), norm_layer),
+                _extra_block(get_depth(256), get_depth(256), norm_layer),
+                _extra_block(get_depth(256), get_depth(128), norm_layer),
+            ]
+        )
+        _normal_init(extra)
+
+        self.extra = extra
+
+    def forward(self, x: Tensor) -> Dict[str, Tensor]:
+        # Get feature maps from backbone and extra. Can't be refactored due to JIT limitations.
+        output = []
+        for block in self.features:
+            x = block(x)
+            output.append(x)
+
+        for block in self.extra:
+            x = block(x)
+            output.append(x)
+
+        return OrderedDict([(str(i), v) for i, v in enumerate(output)])
+
+
+def _mobilenet_extractor(
+    backbone: Union[mobilenet.MobileNetV2, mobilenet.MobileNetV3],
+    trainable_layers: int,
+    norm_layer: Callable[..., nn.Module],
+):
+    backbone = backbone.features
+    # Gather the indices of blocks which are strided. These are the locations of C1, ..., Cn-1 blocks.
+    # The first and last blocks are always included because they are the C0 (conv1) and Cn.
+    stage_indices = [0] + [i for i, b in enumerate(backbone) if getattr(b, "_is_cn", False)] + [len(backbone) - 1]
+    num_stages = len(stage_indices)
+
+    # find the index of the layer from which we won't freeze
+    if not 0 <= trainable_layers <= num_stages:
+        raise ValueError("trainable_layers should be in the range [0, {num_stages}], instead got {trainable_layers}")
+    freeze_before = len(backbone) if trainable_layers == 0 else stage_indices[num_stages - trainable_layers]
+
+    for b in backbone[:freeze_before]:
+        for parameter in b.parameters():
+            parameter.requires_grad_(False)
+
+    return SSDLiteFeatureExtractorMobileNet(backbone, stage_indices[-2], norm_layer)
+
+
+class SSDLite320_MobileNet_V3_Large_Weights(WeightsEnum):
+    COCO_V1 = Weights(
+        url="https://download.pytorch.org/models/ssdlite320_mobilenet_v3_large_coco-a79551df.pth",
+        transforms=ObjectDetection,
+        meta={
+            "num_params": 3440060,
+            "categories": _COCO_CATEGORIES,
+            "min_size": (1, 1),
+            "recipe": "https://github.com/pytorch/vision/tree/main/references/detection#ssdlite320-mobilenetv3-large",
+            "_metrics": {
+                "COCO-val2017": {
+                    "box_map": 21.3,
+                }
+            },
+            "_ops": 0.583,
+            "_file_size": 13.418,
+            "_docs": """These weights were produced by following a similar training recipe as on the paper.""",
+        },
+    )
+    DEFAULT = COCO_V1
+
+
+@register_model()
+@handle_legacy_interface(
+    weights=("pretrained", SSDLite320_MobileNet_V3_Large_Weights.COCO_V1),
+    weights_backbone=("pretrained_backbone", MobileNet_V3_Large_Weights.IMAGENET1K_V1),
+)
+def ssdlite320_mobilenet_v3_large(
+    *,
+    weights: Optional[SSDLite320_MobileNet_V3_Large_Weights] = None,
+    progress: bool = True,
+    num_classes: Optional[int] = None,
+    weights_backbone: Optional[MobileNet_V3_Large_Weights] = MobileNet_V3_Large_Weights.IMAGENET1K_V1,
+    trainable_backbone_layers: Optional[int] = None,
+    norm_layer: Optional[Callable[..., nn.Module]] = None,
+    **kwargs: Any,
+) -> SSD:
+    """SSDlite model architecture with input size 320x320 and a MobileNetV3 Large backbone, as
+    described at `Searching for MobileNetV3 `__ and
+    `MobileNetV2: Inverted Residuals and Linear Bottlenecks `__.
+
+    .. betastatus:: detection module
+
+    See :func:`~torchvision.models.detection.ssd300_vgg16` for more details.
+
+    Example:
+
+        >>> model = torchvision.models.detection.ssdlite320_mobilenet_v3_large(weights=SSDLite320_MobileNet_V3_Large_Weights.DEFAULT)
+        >>> model.eval()
+        >>> x = [torch.rand(3, 320, 320), torch.rand(3, 500, 400)]
+        >>> predictions = model(x)
+
+    Args:
+        weights (:class:`~torchvision.models.detection.SSDLite320_MobileNet_V3_Large_Weights`, optional): The
+            pretrained weights to use. See
+            :class:`~torchvision.models.detection.SSDLite320_MobileNet_V3_Large_Weights` below for
+            more details, and possible values. By default, no pre-trained
+            weights are used.
+        progress (bool, optional): If True, displays a progress bar of the
+            download to stderr. Default is True.
+        num_classes (int, optional): number of output classes of the model
+            (including the background).
+        weights_backbone (:class:`~torchvision.models.MobileNet_V3_Large_Weights`, optional): The pretrained
+            weights for the backbone.
+        trainable_backbone_layers (int, optional): number of trainable (not frozen) layers
+            starting from final block. Valid values are between 0 and 6, with 6 meaning all
+            backbone layers are trainable. If ``None`` is passed (the default) this value is
+            set to 6.
+        norm_layer (callable, optional): Module specifying the normalization layer to use.
+        **kwargs: parameters passed to the ``torchvision.models.detection.ssd.SSD``
+            base class. Please refer to the `source code
+            `_
+            for more details about this class.
+
+    .. autoclass:: torchvision.models.detection.SSDLite320_MobileNet_V3_Large_Weights
+        :members:
+    """
+
+    weights = SSDLite320_MobileNet_V3_Large_Weights.verify(weights)
+    weights_backbone = MobileNet_V3_Large_Weights.verify(weights_backbone)
+
+    if "size" in kwargs:
+        warnings.warn("The size of the model is already fixed; ignoring the parameter.")
+
+    if weights is not None:
+        weights_backbone = None
+        num_classes = _ovewrite_value_param("num_classes", num_classes, len(weights.meta["categories"]))
+    elif num_classes is None:
+        num_classes = 91
+
+    trainable_backbone_layers = _validate_trainable_layers(
+        weights is not None or weights_backbone is not None, trainable_backbone_layers, 6, 6
+    )
+
+    # Enable reduced tail if no pretrained backbone is selected. See Table 6 of MobileNetV3 paper.
+    reduce_tail = weights_backbone is None
+
+    if norm_layer is None:
+        norm_layer = partial(nn.BatchNorm2d, eps=0.001, momentum=0.03)
+
+    backbone = mobilenet_v3_large(
+        weights=weights_backbone, progress=progress, norm_layer=norm_layer, reduced_tail=reduce_tail, **kwargs
+    )
+    if weights_backbone is None:
+        # Change the default initialization scheme if not pretrained
+        _normal_init(backbone)
+    backbone = _mobilenet_extractor(
+        backbone,
+        trainable_backbone_layers,
+        norm_layer,
+    )
+
+    size = (320, 320)
+    anchor_generator = DefaultBoxGenerator([[2, 3] for _ in range(6)], min_ratio=0.2, max_ratio=0.95)
+    out_channels = det_utils.retrieve_out_channels(backbone, size)
+    num_anchors = anchor_generator.num_anchors_per_location()
+    if len(out_channels) != len(anchor_generator.aspect_ratios):
+        raise ValueError(
+            f"The length of the output channels from the backbone {len(out_channels)} do not match the length of the anchor generator aspect ratios {len(anchor_generator.aspect_ratios)}"
+        )
+
+    defaults = {
+        "score_thresh": 0.001,
+        "nms_thresh": 0.55,
+        "detections_per_img": 300,
+        "topk_candidates": 300,
+        # Rescale the input in a way compatible to the backbone:
+        # The following mean/std rescale the data from [0, 1] to [-1, 1]
+        "image_mean": [0.5, 0.5, 0.5],
+        "image_std": [0.5, 0.5, 0.5],
+    }
+    kwargs: Any = {**defaults, **kwargs}
+    model = SSD(
+        backbone,
+        anchor_generator,
+        size,
+        num_classes,
+        head=SSDLiteHead(out_channels, num_anchors, num_classes, norm_layer),
+        **kwargs,
+    )
+
+    if weights is not None:
+        model.load_state_dict(weights.get_state_dict(progress=progress, check_hash=True))
+
+    return model
diff --git a/shared/package-files/f2/f28110a7123299d0a899ef5466e0499fe7f001bb0b4dac41b3b93295f78c940a/special_chebyshev_polynomial_u.h b/shared/package-files/f2/f28110a7123299d0a899ef5466e0499fe7f001bb0b4dac41b3b93295f78c940a/special_chebyshev_polynomial_u.h
new file mode 100644
index 0000000000000000000000000000000000000000..f94f163864fbb7e5f487735084a1fb984dfbd1d0
--- /dev/null
+++ b/shared/package-files/f2/f28110a7123299d0a899ef5466e0499fe7f001bb0b4dac41b3b93295f78c940a/special_chebyshev_polynomial_u.h
@@ -0,0 +1,67 @@
+#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_chebyshev_polynomial_u(Tensor x, Tensor n) -> Tensor
+inline at::Tensor special_chebyshev_polynomial_u(const at::Tensor & x, const at::Tensor & n) {
+    return at::_ops::special_chebyshev_polynomial_u::call(x, n);
+}
+
+// aten::special_chebyshev_polynomial_u.x_scalar(Scalar x, Tensor n) -> Tensor
+inline at::Tensor special_chebyshev_polynomial_u(const at::Scalar & x, const at::Tensor & n) {
+    return at::_ops::special_chebyshev_polynomial_u_x_scalar::call(x, n);
+}
+
+// aten::special_chebyshev_polynomial_u.n_scalar(Tensor x, Scalar n) -> Tensor
+inline at::Tensor special_chebyshev_polynomial_u(const at::Tensor & x, const at::Scalar & n) {
+    return at::_ops::special_chebyshev_polynomial_u_n_scalar::call(x, n);
+}
+
+// aten::special_chebyshev_polynomial_u.out(Tensor x, Tensor n, *, Tensor(a!) out) -> Tensor(a!)
+inline at::Tensor & special_chebyshev_polynomial_u_out(at::Tensor & out, const at::Tensor & x, const at::Tensor & n) {
+    return at::_ops::special_chebyshev_polynomial_u_out::call(x, n, out);
+}
+// aten::special_chebyshev_polynomial_u.out(Tensor x, Tensor n, *, Tensor(a!) out) -> Tensor(a!)
+inline at::Tensor & special_chebyshev_polynomial_u_outf(const at::Tensor & x, const at::Tensor & n, at::Tensor & out) {
+    return at::_ops::special_chebyshev_polynomial_u_out::call(x, n, out);
+}
+
+// aten::special_chebyshev_polynomial_u.x_scalar_out(Scalar x, Tensor n, *, Tensor(a!) out) -> Tensor(a!)
+inline at::Tensor & special_chebyshev_polynomial_u_out(at::Tensor & out, const at::Scalar & x, const at::Tensor & n) {
+    return at::_ops::special_chebyshev_polynomial_u_x_scalar_out::call(x, n, out);
+}
+// aten::special_chebyshev_polynomial_u.x_scalar_out(Scalar x, Tensor n, *, Tensor(a!) out) -> Tensor(a!)
+inline at::Tensor & special_chebyshev_polynomial_u_outf(const at::Scalar & x, const at::Tensor & n, at::Tensor & out) {
+    return at::_ops::special_chebyshev_polynomial_u_x_scalar_out::call(x, n, out);
+}
+
+// aten::special_chebyshev_polynomial_u.n_scalar_out(Tensor x, Scalar n, *, Tensor(a!) out) -> Tensor(a!)
+inline at::Tensor & special_chebyshev_polynomial_u_out(at::Tensor & out, const at::Tensor & x, const at::Scalar & n) {
+    return at::_ops::special_chebyshev_polynomial_u_n_scalar_out::call(x, n, out);
+}
+// aten::special_chebyshev_polynomial_u.n_scalar_out(Tensor x, Scalar n, *, Tensor(a!) out) -> Tensor(a!)
+inline at::Tensor & special_chebyshev_polynomial_u_outf(const at::Tensor & x, const at::Scalar & n, at::Tensor & out) {
+    return at::_ops::special_chebyshev_polynomial_u_n_scalar_out::call(x, n, out);
+}
+
+}
diff --git a/shared/package-files/f2/f2816c7fc215353070271560e2ecd8475396fcddc40353763ad687e5cc55b4c0/hardshrink_meta.h b/shared/package-files/f2/f2816c7fc215353070271560e2ecd8475396fcddc40353763ad687e5cc55b4c0/hardshrink_meta.h
new file mode 100644
index 0000000000000000000000000000000000000000..34819b9c9b3b79bc52463c381a563e722046dca8
--- /dev/null
+++ b/shared/package-files/f2/f2816c7fc215353070271560e2ecd8475396fcddc40353763ad687e5cc55b4c0/hardshrink_meta.h
@@ -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_hardshrink : public TensorIteratorBase {
+    
+    
+    void meta(const at::Tensor & self, const at::Scalar & lambd);
+};
+
+} // namespace native
+} // namespace at
diff --git a/shared/package-files/f2/f282113a1cf32993b56fc32f126011071e0b8267c3346fb6651a0da58b0adf25/text.pyi b/shared/package-files/f2/f282113a1cf32993b56fc32f126011071e0b8267c3346fb6651a0da58b0adf25/text.pyi
new file mode 100644
index 0000000000000000000000000000000000000000..fc120a48e0a075c747a746654453f7cd6c2e0a49
--- /dev/null
+++ b/shared/package-files/f2/f282113a1cf32993b56fc32f126011071e0b8267c3346fb6651a0da58b0adf25/text.pyi
@@ -0,0 +1,65 @@
+from typing import Any, List, Optional, Tuple, Union
+
+from django.db.backends.sqlite3.base import DatabaseWrapper
+from django.db.models.expressions import Combinable, Expression, Value
+from django.db.models.sql.compiler import SQLCompiler
+
+from django.db.models import Func, Transform
+
+class BytesToCharFieldConversionMixin: ...
+class Chr(Transform): ...
+
+class ConcatPair(Func):
+    def coalesce(self) -> ConcatPair: ...
+
+class Concat(Func): ...
+
+class Left(Func):
+    def __init__(self, expression: str, length: Union[Value, int], **extra: Any) -> None: ...
+    def get_substr(self) -> Substr: ...
+    def use_substr(
+        self, compiler: SQLCompiler, connection: DatabaseWrapper, **extra_context: Any
+    ) -> Tuple[str, List[int]]: ...
+
+class Length(Transform): ...
+class Lower(Transform): ...
+
+class LPad(BytesToCharFieldConversionMixin, Func):
+    def __init__(
+        self, expression: str, length: Optional[Union[Length, int]], fill_text: Value = ..., **extra: Any
+    ) -> None: ...
+
+class LTrim(Transform): ...
+class Ord(Transform): ...
+
+class Repeat(BytesToCharFieldConversionMixin, Func):
+    def __init__(self, expression: Union[Value, str], number: Optional[Union[Length, int]], **extra: Any) -> None: ...
+
+class Replace(Func):
+    def __init__(self, expression: Combinable, text: Value, replacement: Value = ..., **extra: Any) -> None: ...
+
+class Right(Left): ...
+class RPad(LPad): ...
+class RTrim(Transform): ...
+class StrIndex(Func): ...
+
+class Substr(Func):
+    def __init__(
+        self,
+        expression: Union[Expression, str],
+        pos: Union[Expression, int],
+        length: Optional[Union[Value, int]] = ...,
+        **extra: Any
+    ) -> None: ...
+
+class Trim(Transform): ...
+class Upper(Transform): ...
+class Reverse(Transform): ...
+class MySQLSHA2Mixin: ...
+class OracleHashMixin: ...
+class PostgreSQLSHAMixin: ...
+class SHA1(OracleHashMixin, PostgreSQLSHAMixin, Transform): ...
+class SHA224(MySQLSHA2Mixin, PostgreSQLSHAMixin, Transform): ...
+class SHA256(MySQLSHA2Mixin, OracleHashMixin, PostgreSQLSHAMixin, Transform): ...
+class SHA384(MySQLSHA2Mixin, OracleHashMixin, PostgreSQLSHAMixin, Transform): ...
+class SHA512(MySQLSHA2Mixin, OracleHashMixin, PostgreSQLSHAMixin, Transform): ...
diff --git a/shared/package-files/f2/f288da2d15ee8a60d020275bd718732fcdfc8c7c287c1dc29b674a154caec955/typed_passes.py b/shared/package-files/f2/f288da2d15ee8a60d020275bd718732fcdfc8c7c287c1dc29b674a154caec955/typed_passes.py
new file mode 100644
index 0000000000000000000000000000000000000000..340f89d1ece7667df80affe96b12adcdacf38f35
--- /dev/null
+++ b/shared/package-files/f2/f288da2d15ee8a60d020275bd718732fcdfc8c7c287c1dc29b674a154caec955/typed_passes.py
@@ -0,0 +1,1044 @@
+import abc
+from contextlib import contextmanager
+from collections import defaultdict, namedtuple
+from functools import partial
+from copy import copy
+import warnings
+
+from numba.core import (errors, types, typing, ir, funcdesc, rewrites,
+                        typeinfer, config, lowering)
+
+from numba.parfors.parfor import PreParforPass as _parfor_PreParforPass
+from numba.parfors.parfor import ParforPass as _parfor_ParforPass
+from numba.parfors.parfor import ParforFusionPass as _parfor_ParforFusionPass
+from numba.parfors.parfor import ParforPreLoweringPass as \
+    _parfor_ParforPreLoweringPass
+from numba.parfors.parfor import Parfor
+from numba.parfors.parfor_lowering import ParforLower
+
+from numba.core.compiler_machinery import (FunctionPass, LoweringPass,
+                                           AnalysisPass, register_pass)
+from numba.core.annotations import type_annotations
+from numba.core.ir_utils import (raise_on_unsupported_feature, warn_deprecated,
+                                 check_and_legalize_ir, guard,
+                                 dead_code_elimination, simplify_CFG,
+                                 get_definition,
+                                 build_definitions, compute_cfg_from_blocks,
+                                 is_operator_or_getitem,
+                                 replace_vars)
+from numba.core import postproc
+from llvmlite import binding as llvm
+
+
+# Outputs of type inference pass
+_TypingResults = namedtuple("_TypingResults", [
+    "typemap",
+    "return_type",
+    "calltypes",
+    "typing_errors",
+])
+
+
+@contextmanager
+def fallback_context(state, msg):
+    """
+    Wraps code that would signal a fallback to object mode
+    """
+    try:
+        yield
+    except Exception as e:
+        if not state.status.can_fallback:
+            raise
+        else:
+            # Clear all references attached to the traceback
+            e = e.with_traceback(None)
+            # this emits a warning containing the error message body in the
+            # case of fallback from npm to objmode
+            loop_lift = '' if state.flags.enable_looplift else 'OUT'
+            msg_rewrite = ("\nCompilation is falling back to object mode "
+                           "WITH%s looplifting enabled because %s"
+                           % (loop_lift, msg))
+            warnings.warn_explicit('%s due to: %s' % (msg_rewrite, e),
+                                   errors.NumbaWarning,
+                                   state.func_id.filename,
+                                   state.func_id.firstlineno)
+            raise
+
+
+def type_inference_stage(typingctx, targetctx, interp, args, return_type,
+                         locals=None, raise_errors=True):
+    if locals is None:
+        locals = {}
+    if len(args) != interp.arg_count:
+        raise TypeError("Mismatch number of argument types")
+    warnings = errors.WarningsFixer(errors.NumbaWarning)
+
+    infer = typeinfer.TypeInferer(typingctx, interp, warnings)
+    callstack_ctx = typingctx.callstack.register(targetctx.target, infer,
+                                                 interp.func_id, args)
+    # Setup two contexts: 1) callstack setup/teardown 2) flush warnings
+    with callstack_ctx, warnings:
+        # Seed argument types
+        for index, (name, ty) in enumerate(zip(interp.arg_names, args)):
+            infer.seed_argument(name, index, ty)
+
+        # Seed return type
+        if return_type is not None:
+            infer.seed_return(return_type)
+
+        # Seed local types
+        for k, v in locals.items():
+            infer.seed_type(k, v)
+
+        infer.build_constraint()
+        # return errors in case of partial typing
+        errs = infer.propagate(raise_errors=raise_errors)
+        typemap, restype, calltypes = infer.unify(raise_errors=raise_errors)
+
+    return _TypingResults(typemap, restype, calltypes, errs)
+
+
+class BaseTypeInference(FunctionPass):
+    _raise_errors = True
+
+    def __init__(self):
+        FunctionPass.__init__(self)
+
+    def run_pass(self, state):
+        """
+        Type inference and legalization
+        """
+        with fallback_context(state, 'Function "%s" failed type inference'
+                              % (state.func_id.func_name,)):
+            # Type inference
+            typemap, return_type, calltypes, errs = type_inference_stage(
+                state.typingctx,
+                state.targetctx,
+                state.func_ir,
+                state.args,
+                state.return_type,
+                state.locals,
+                raise_errors=self._raise_errors)
+            state.typemap = typemap
+            # save errors in case of partial typing
+            state.typing_errors = errs
+            if self._raise_errors:
+                state.return_type = return_type
+            state.calltypes = calltypes
+
+        def legalize_return_type(return_type, interp, targetctx):
+            """
+            Only accept array return type iff it is passed into the function.
+            Reject function object return types if in nopython mode.
+            """
+            if (not targetctx.enable_nrt and
+                    isinstance(return_type, types.Array)):
+                # Walk IR to discover all arguments and all return statements
+                retstmts = []
+                caststmts = {}
+                argvars = set()
+                for bid, blk in interp.blocks.items():
+                    for inst in blk.body:
+                        if isinstance(inst, ir.Return):
+                            retstmts.append(inst.value.name)
+                        elif isinstance(inst, ir.Assign):
+                            if (isinstance(inst.value, ir.Expr)
+                                    and inst.value.op == 'cast'):
+                                caststmts[inst.target.name] = inst.value
+                            elif isinstance(inst.value, ir.Arg):
+                                argvars.add(inst.target.name)
+
+                assert retstmts, "No return statements?"
+
+                for var in retstmts:
+                    cast = caststmts.get(var)
+                    if cast is None or cast.value.name not in argvars:
+                        if self._raise_errors:
+                            msg = ("Only accept returning of array passed into "
+                                   "the function as argument")
+                            raise errors.NumbaTypeError(msg)
+
+            elif (isinstance(return_type, types.Function) or
+                    isinstance(return_type, types.Phantom)):
+                if self._raise_errors:
+                    msg = "Can't return function object ({}) in nopython mode"
+                    raise errors.NumbaTypeError(msg.format(return_type))
+
+        with fallback_context(state, 'Function "%s" has invalid return type'
+                              % (state.func_id.func_name,)):
+            legalize_return_type(state.return_type, state.func_ir,
+                                 state.targetctx)
+        return True
+
+
+@register_pass(mutates_CFG=True, analysis_only=False)
+class NopythonTypeInference(BaseTypeInference):
+    _name = "nopython_type_inference"
+
+
+@register_pass(mutates_CFG=True, analysis_only=False)
+class PartialTypeInference(BaseTypeInference):
+    _name = "partial_type_inference"
+    _raise_errors = False
+
+
+@register_pass(mutates_CFG=False, analysis_only=False)
+class AnnotateTypes(AnalysisPass):
+    _name = "annotate_types"
+
+    def __init__(self):
+        AnalysisPass.__init__(self)
+
+    def get_analysis_usage(self, AU):
+        AU.add_required(IRLegalization)
+
+    def run_pass(self, state):
+        """
+        Create type annotation after type inference
+        """
+        func_ir = state.func_ir.copy()
+        state.type_annotation = type_annotations.TypeAnnotation(
+            func_ir=func_ir,
+            typemap=state.typemap,
+            calltypes=state.calltypes,
+            lifted=state.lifted,
+            lifted_from=state.lifted_from,
+            args=state.args,
+            return_type=state.return_type,
+            html_output=config.HTML)
+
+        if config.ANNOTATE:
+            print("ANNOTATION".center(80, '-'))
+            print(state.type_annotation)
+            print('=' * 80)
+        if config.HTML:
+            with open(config.HTML, 'w') as fout:
+                state.type_annotation.html_annotate(fout)
+
+        return False
+
+
+@register_pass(mutates_CFG=True, analysis_only=False)
+class NopythonRewrites(FunctionPass):
+    _name = "nopython_rewrites"
+
+    def __init__(self):
+        FunctionPass.__init__(self)
+
+    def run_pass(self, state):
+        """
+        Perform any intermediate representation rewrites after type
+        inference.
+        """
+        # a bunch of these passes are either making assumptions or rely on some
+        # very picky and slightly bizarre state particularly in relation to
+        # ir.Del presence. To accommodate, ir.Dels are added ahead of running
+        # this pass and stripped at the end.
+
+        # Ensure we have an IR and type information.
+        assert state.func_ir
+        assert isinstance(getattr(state, 'typemap', None), dict)
+        assert isinstance(getattr(state, 'calltypes', None), dict)
+        msg = ('Internal error in post-inference rewriting '
+               'pass encountered during compilation of '
+               'function "%s"' % (state.func_id.func_name,))
+
+        pp = postproc.PostProcessor(state.func_ir)
+        pp.run(True)
+        with fallback_context(state, msg):
+            rewrites.rewrite_registry.apply('after-inference', state)
+        pp.remove_dels()
+        return True
+
+
+@register_pass(mutates_CFG=True, analysis_only=False)
+class PreParforPass(FunctionPass):
+
+    _name = "pre_parfor_pass"
+
+    def __init__(self):
+        FunctionPass.__init__(self)
+
+    def run_pass(self, state):
+        """
+        Preprocessing for data-parallel computations.
+        """
+        # Ensure we have an IR and type information.
+        assert state.func_ir
+        preparfor_pass = _parfor_PreParforPass(
+            state.func_ir,
+            state.typemap,
+            state.calltypes,
+            state.typingctx,
+            state.targetctx,
+            state.flags.auto_parallel,
+            state.parfor_diagnostics.replaced_fns
+        )
+
+        preparfor_pass.run()
+        return True
+
+
+# this is here so it pickles and for no other reason
+def _reload_parfors():
+    """Reloader for cached parfors
+    """
+    # Re-initialize the parallel backend when load from cache.
+    from numba.np.ufunc.parallel import _launch_threads
+    _launch_threads()
+
+
+@register_pass(mutates_CFG=True, analysis_only=False)
+class ParforPass(FunctionPass):
+
+    _name = "parfor_pass"
+
+    def __init__(self):
+        FunctionPass.__init__(self)
+
+    def run_pass(self, state):
+        """
+        Convert data-parallel computations into Parfor nodes
+        """
+        # Ensure we have an IR and type information.
+        assert state.func_ir
+        parfor_pass = _parfor_ParforPass(state.func_ir,
+                                         state.typemap,
+                                         state.calltypes,
+                                         state.return_type,
+                                         state.typingctx,
+                                         state.targetctx,
+                                         state.flags.auto_parallel,
+                                         state.flags,
+                                         state.metadata,
+                                         state.parfor_diagnostics)
+        parfor_pass.run()
+
+        # check the parfor pass worked and warn if it didn't
+        has_parfor = False
+        for blk in state.func_ir.blocks.values():
+            for stmnt in blk.body:
+                if isinstance(stmnt, Parfor):
+                    has_parfor = True
+                    break
+            else:
+                continue
+            break
+
+        if not has_parfor:
+            # parfor calls the compiler chain again with a string
+            if not (config.DISABLE_PERFORMANCE_WARNINGS or
+                    state.func_ir.loc.filename == ''):
+                url = ("https://numba.readthedocs.io/en/stable/user/"
+                       "parallel.html#diagnostics")
+                msg = ("\nThe keyword argument 'parallel=True' was specified "
+                       "but no transformation for parallel execution was "
+                       "possible.\n\nTo find out why, try turning on parallel "
+                       "diagnostics, see %s for help." % url)
+                warnings.warn(errors.NumbaPerformanceWarning(msg,
+                                                             state.func_ir.loc))
+
+        # Add reload function to initialize the parallel backend.
+        state.reload_init.append(_reload_parfors)
+        return True
+
+
+@register_pass(mutates_CFG=True, analysis_only=False)
+class ParforFusionPass(FunctionPass):
+
+    _name = "parfor_fusion_pass"
+
+    def __init__(self):
+        FunctionPass.__init__(self)
+
+    def run_pass(self, state):
+        """
+        Do fusion of parfor nodes.
+        """
+        # Ensure we have an IR and type information.
+        assert state.func_ir
+        parfor_pass = _parfor_ParforFusionPass(state.func_ir,
+                                               state.typemap,
+                                               state.calltypes,
+                                               state.return_type,
+                                               state.typingctx,
+                                               state.targetctx,
+                                               state.flags.auto_parallel,
+                                               state.flags,
+                                               state.metadata,
+                                               state.parfor_diagnostics)
+        parfor_pass.run()
+
+        return True
+
+
+@register_pass(mutates_CFG=True, analysis_only=False)
+class ParforPreLoweringPass(FunctionPass):
+
+    _name = "parfor_prelowering_pass"
+
+    def __init__(self):
+        FunctionPass.__init__(self)
+
+    def run_pass(self, state):
+        """
+        Prepare parfors for lowering.
+        """
+        # Ensure we have an IR and type information.
+        assert state.func_ir
+        parfor_pass = _parfor_ParforPreLoweringPass(state.func_ir,
+                                                    state.typemap,
+                                                    state.calltypes,
+                                                    state.return_type,
+                                                    state.typingctx,
+                                                    state.targetctx,
+                                                    state.flags.auto_parallel,
+                                                    state.flags,
+                                                    state.metadata,
+                                                    state.parfor_diagnostics)
+        parfor_pass.run()
+
+        return True
+
+
+@register_pass(mutates_CFG=False, analysis_only=True)
+class DumpParforDiagnostics(AnalysisPass):
+
+    _name = "dump_parfor_diagnostics"
+
+    def __init__(self):
+        AnalysisPass.__init__(self)
+
+    def run_pass(self, state):
+        if state.flags.auto_parallel.enabled:
+            if config.PARALLEL_DIAGNOSTICS:
+                if state.parfor_diagnostics is not None:
+                    state.parfor_diagnostics.dump(config.PARALLEL_DIAGNOSTICS)
+                else:
+                    raise RuntimeError("Diagnostics failed.")
+        return True
+
+
+class BaseNativeLowering(abc.ABC, LoweringPass):
+    """The base class for a lowering pass. The lowering functionality must be
+    specified in inheriting classes by providing an appropriate lowering class
+    implementation in the overridden `lowering_class` property."""
+
+    _name = None
+
+    def __init__(self):
+        LoweringPass.__init__(self)
+
+    @property
+    @abc.abstractmethod
+    def lowering_class(self):
+        """Returns the class that performs the lowering of the IR describing the
+        function that is the target of the current compilation."""
+        pass
+
+    def run_pass(self, state):
+        if state.library is None:
+            codegen = state.targetctx.codegen()
+            state.library = codegen.create_library(state.func_id.func_qualname)
+            # Enable object caching upfront, so that the library can
+            # be later serialized.
+            state.library.enable_object_caching()
+
+        library = state.library
+        targetctx = state.targetctx
+        interp = state.func_ir  # why is it called this?!
+        typemap = state.typemap
+        restype = state.return_type
+        calltypes = state.calltypes
+        flags = state.flags
+        metadata = state.metadata
+        pre_stats = llvm.newpassmanagers.dump_refprune_stats()
+        # Add reload functions to library
+        library._reload_init.update(state.reload_init)
+
+        msg = ("Function %s failed at nopython "
+               "mode lowering" % (state.func_id.func_name,))
+        with fallback_context(state, msg):
+            # Lowering
+            fndesc = \
+                funcdesc.PythonFunctionDescriptor.from_specialized_function(
+                    interp, typemap, restype, calltypes,
+                    mangler=targetctx.mangler, inline=flags.forceinline,
+                    noalias=flags.noalias, abi_tags=[flags.get_mangle_string()])
+
+            with targetctx.push_code_library(library):
+                lower = self.lowering_class(targetctx, library, fndesc, interp,
+                                            metadata=metadata)
+                lower.lower()
+                if not flags.no_cpython_wrapper:
+                    lower.create_cpython_wrapper(flags.release_gil)
+
+                if not flags.no_cfunc_wrapper:
+                    # skip cfunc wrapper generation if unsupported
+                    # argument or return types are used
+                    for t in state.args:
+                        if isinstance(t, (types.Omitted, types.Generator)):
+                            break
+                    else:
+                        if isinstance(restype,
+                                      (types.Optional, types.Generator)):
+                            pass
+                        else:
+                            lower.create_cfunc_wrapper()
+
+                env = lower.env
+                call_helper = lower.call_helper
+                del lower
+
+            from numba.core.compiler import _LowerResult  # TODO: move this
+            if flags.no_compile:
+                state['cr'] = _LowerResult(fndesc, call_helper,
+                                           cfunc=None, env=env)
+            else:
+                # Prepare for execution
+                # Insert native function for use by other jitted-functions.
+                # We also register its library to allow for inlining.
+                cfunc = targetctx.get_executable(library, fndesc, env)
+                targetctx.insert_user_function(cfunc, fndesc, [library])
+                state.reload_init.extend(library._reload_init)
+                state['cr'] = _LowerResult(fndesc, call_helper,
+                                           cfunc=cfunc, env=env)
+
+            # capture pruning stats
+            post_stats = llvm.newpassmanagers.dump_refprune_stats()
+            metadata['prune_stats'] = post_stats - pre_stats
+
+            # Save the LLVM pass timings
+            metadata['llvm_pass_timings'] = library.recorded_timings
+        return True
+
+
+@register_pass(mutates_CFG=True, analysis_only=False)
+class NativeLowering(BaseNativeLowering):
+    """Lowering pass for a native function IR described solely in terms of
+     Numba's standard `numba.core.ir` nodes."""
+    _name = "native_lowering"
+
+    @property
+    def lowering_class(self):
+        return lowering.Lower
+
+
+@register_pass(mutates_CFG=True, analysis_only=False)
+class NativeParforLowering(BaseNativeLowering):
+    """Lowering pass for a native function IR described using Numba's standard
+    `numba.core.ir` nodes and also parfor.Parfor nodes."""
+    _name = "native_parfor_lowering"
+
+    @property
+    def lowering_class(self):
+        return ParforLower
+
+
+@register_pass(mutates_CFG=False, analysis_only=True)
+class NoPythonSupportedFeatureValidation(AnalysisPass):
+    """NoPython Mode check: Validates the IR to ensure that features in use are
+    in a form that is supported"""
+
+    _name = "nopython_supported_feature_validation"
+
+    def __init__(self):
+        AnalysisPass.__init__(self)
+
+    def run_pass(self, state):
+        raise_on_unsupported_feature(state.func_ir, state.typemap)
+        warn_deprecated(state.func_ir, state.typemap)
+        return False
+
+
+@register_pass(mutates_CFG=False, analysis_only=True)
+class IRLegalization(AnalysisPass):
+
+    _name = "ir_legalization"
+
+    def __init__(self):
+        AnalysisPass.__init__(self)
+
+    def run_pass(self, state):
+        # NOTE: this function call must go last, it checks and fixes invalid IR!
+        check_and_legalize_ir(state.func_ir, flags=state.flags)
+        return True
+
+
+@register_pass(mutates_CFG=True, analysis_only=False)
+class NoPythonBackend(LoweringPass):
+
+    _name = "nopython_backend"
+
+    def __init__(self):
+        LoweringPass.__init__(self)
+
+    def run_pass(self, state):
+        """
+        Back-end: Generate LLVM IR from Numba IR, compile to machine code
+        """
+        lowered = state['cr']
+        signature = typing.signature(state.return_type, *state.args)
+
+        from numba.core.compiler import compile_result
+        state.cr = compile_result(
+            typing_context=state.typingctx,
+            target_context=state.targetctx,
+            entry_point=lowered.cfunc,
+            typing_error=state.status.fail_reason,
+            type_annotation=state.type_annotation,
+            library=state.library,
+            call_helper=lowered.call_helper,
+            signature=signature,
+            objectmode=False,
+            lifted=state.lifted,
+            fndesc=lowered.fndesc,
+            environment=lowered.env,
+            metadata=state.metadata,
+            reload_init=state.reload_init,
+        )
+        return True
+
+
+@register_pass(mutates_CFG=True, analysis_only=False)
+class InlineOverloads(FunctionPass):
+    """
+    This pass will inline a function wrapped by the numba.extending.overload
+    decorator directly into the site of its call depending on the value set in
+    the 'inline' kwarg to the decorator.
+
+    This is a typed pass. CFG simplification and DCE are performed on
+    completion.
+    """
+
+    _name = "inline_overloads"
+
+    def __init__(self):
+        FunctionPass.__init__(self)
+
+    _DEBUG = False
+
+    def run_pass(self, state):
+        """Run inlining of overloads
+        """
+        if self._DEBUG:
+            print('before overload inline'.center(80, '-'))
+            print(state.func_id.unique_name)
+            print(state.func_ir.dump())
+            print(''.center(80, '-'))
+        from numba.core.inline_closurecall import (InlineWorker,
+                                                   callee_ir_validator)
+        inline_worker = InlineWorker(state.typingctx,
+                                     state.targetctx,
+                                     state.locals,
+                                     state.pipeline,
+                                     state.flags,
+                                     callee_ir_validator,
+                                     state.typemap,
+                                     state.calltypes,
+                                     )
+        modified = False
+        work_list = list(state.func_ir.blocks.items())
+        # use a work list, look for call sites via `ir.Expr.op == call` and
+        # then pass these to `self._do_work` to make decisions about inlining.
+        while work_list:
+            label, block = work_list.pop()
+            for i, instr in enumerate(block.body):
+                # TO-DO: other statements (setitem)
+                if isinstance(instr, ir.Assign):
+                    expr = instr.value
+                    if isinstance(expr, ir.Expr):
+                        workfn = self._do_work_expr
+
+                        if guard(workfn, state, work_list, block, i, expr,
+                                 inline_worker):
+                            modified = True
+                            break  # because block structure changed
+
+        if self._DEBUG:
+            print('after overload inline'.center(80, '-'))
+            print(state.func_id.unique_name)
+            print(state.func_ir.dump())
+            print(''.center(80, '-'))
+
+        if modified:
+            # Remove dead blocks, this is safe as it relies on the CFG only.
+            cfg = compute_cfg_from_blocks(state.func_ir.blocks)
+            for dead in cfg.dead_nodes():
+                del state.func_ir.blocks[dead]
+            # clean up blocks
+            dead_code_elimination(state.func_ir,
+                                  typemap=state.typemap)
+            # clean up unconditional branches that appear due to inlined
+            # functions introducing blocks
+            state.func_ir.blocks = simplify_CFG(state.func_ir.blocks)
+
+        if self._DEBUG:
+            print('after overload inline DCE'.center(80, '-'))
+            print(state.func_id.unique_name)
+            print(state.func_ir.dump())
+            print(''.center(80, '-'))
+        return True
+
+    def _get_attr_info(self, state, expr):
+        recv_type = state.typemap[expr.value.name]
+        recv_type = types.unliteral(recv_type)
+        matched = state.typingctx.find_matching_getattr_template(
+            recv_type, expr.attr,
+        )
+        if not matched:
+            return None
+
+        template = matched['template']
+        if getattr(template, 'is_method', False):
+            # The attribute template is representing a method.
+            # Don't inline the getattr.
+            return None
+
+        templates = [template]
+        sig = typing.signature(matched['return_type'], recv_type)
+        arg_typs = sig.args
+        is_method = False
+
+        return templates, sig, arg_typs, is_method
+
+    def _get_callable_info(self, state, expr):
+
+        def get_func_type(state, expr):
+            func_ty = None
+            if expr.op == 'call':
+                # check this is a known and typed function
+                try:
+                    func_ty = state.typemap[expr.func.name]
+                except KeyError:
+                    # e.g. Calls to CUDA Intrinsic have no mapped type
+                    # so KeyError
+                    return None
+                if not hasattr(func_ty, 'get_call_type'):
+                    return None
+
+            elif is_operator_or_getitem(expr):
+                func_ty = state.typingctx.resolve_value_type(expr.fn)
+            else:
+                return None
+
+            return func_ty
+
+        if expr.op == 'call':
+            # try and get a definition for the call, this isn't always
+            # possible as it might be a eval(str)/part generated
+            # awaiting update etc. (parfors)
+            to_inline = None
+            try:
+                to_inline = state.func_ir.get_definition(expr.func)
+            except Exception:
+                return None
+
+            # do not handle closure inlining here, another pass deals with that
+            if getattr(to_inline, 'op', False) == 'make_function':
+                return None
+
+        func_ty = get_func_type(state, expr)
+        if func_ty is None:
+            return None
+
+        sig = state.calltypes[expr]
+        if not sig:
+            return None
+
+        templates, arg_typs, is_method = None, None, False
+        if getattr(func_ty, 'template', None) is not None:
+            # @overload_method
+            is_method = True
+            templates = [func_ty.template]
+            arg_typs = (func_ty.template.this,) + sig.args
+        else:
+            # @overload case
+            templates = getattr(func_ty, 'templates', None)
+            arg_typs = sig.args
+
+        return templates, sig, arg_typs, is_method
+
+    def _do_work_expr(self, state, work_list, block, i, expr, inline_worker):
+
+        def select_template(templates, args):
+            if templates is None:
+                return None
+
+            impl = None
+            for template in templates:
+                inline_type = getattr(template, '_inline', None)
+                if inline_type is None:
+                    # inline not defined
+                    continue
+                if args not in template._inline_overloads:
+                    # skip overloads not matching signature
+                    continue
+                if not inline_type.is_never_inline:
+                    try:
+                        impl = template._overload_func(*args)
+                        if impl is None:
+                            raise Exception  # abort for this template
+                        break
+                    except Exception:
+                        continue
+            else:
+                return None
+
+            return template, inline_type, impl
+
+        inlinee_info = None
+        if expr.op == 'getattr':
+            inlinee_info = self._get_attr_info(state, expr)
+        else:
+            inlinee_info = self._get_callable_info(state, expr)
+
+        if not inlinee_info:
+            return False
+
+        templates, sig, arg_typs, is_method = inlinee_info
+        inlinee = select_template(templates, arg_typs)
+        if inlinee is None:
+            return False
+        template, inlinee_type, impl = inlinee
+
+        return self._run_inliner(
+            state, inlinee_type, sig, template, arg_typs, expr, i, impl, block,
+            work_list, is_method, inline_worker,
+        )
+
+    def _run_inliner(
+        self, state, inline_type, sig, template, arg_typs, expr, i, impl, block,
+        work_list, is_method, inline_worker,
+    ):
+
+        do_inline = True
+        if not inline_type.is_always_inline:
+            from numba.core.typing.templates import _inline_info
+            caller_inline_info = _inline_info(state.func_ir,
+                                              state.typemap,
+                                              state.calltypes,
+                                              sig)
+
+            # must be a cost-model function, run the function
+            iinfo = template._inline_overloads[arg_typs]['iinfo']
+            if inline_type.has_cost_model:
+                do_inline = inline_type.value(expr, caller_inline_info, iinfo)
+            else:
+                assert 'unreachable'
+
+        if do_inline:
+            if is_method:
+                if not self._add_method_self_arg(state, expr):
+                    return False
+            arg_typs = template._inline_overloads[arg_typs]['folded_args']
+            iinfo = template._inline_overloads[arg_typs]['iinfo']
+            freevars = iinfo.func_ir.func_id.func.__code__.co_freevars
+            _, _, _, new_blocks = inline_worker.inline_ir(state.func_ir,
+                                                          block,
+                                                          i,
+                                                          iinfo.func_ir,
+                                                          freevars,
+                                                          arg_typs=arg_typs)
+            if work_list is not None:
+                for blk in new_blocks:
+                    work_list.append(blk)
+            return True
+        else:
+            return False
+
+    def _add_method_self_arg(self, state, expr):
+        func_def = guard(get_definition, state.func_ir, expr.func)
+        if func_def is None:
+            return False
+        expr.args.insert(0, func_def.value)
+        return True
+
+
+@register_pass(mutates_CFG=False, analysis_only=False)
+class DeadCodeElimination(FunctionPass):
+    """
+    Does dead code elimination
+    """
+
+    _name = "dead_code_elimination"
+
+    def __init__(self):
+        FunctionPass.__init__(self)
+
+    def run_pass(self, state):
+        dead_code_elimination(state.func_ir, state.typemap)
+        return True
+
+
+@register_pass(mutates_CFG=False, analysis_only=False)
+class PreLowerStripPhis(FunctionPass):
+    """Remove phi nodes (ir.Expr.phi) introduced by SSA.
+
+    This is needed before Lowering because the phi nodes in Numba IR do not
+    match the semantics of phi nodes in LLVM IR. In Numba IR, phi nodes may
+    expand into multiple LLVM instructions.
+    """
+
+    _name = "strip_phis"
+
+    def __init__(self):
+        FunctionPass.__init__(self)
+
+    def run_pass(self, state):
+        state.func_ir = self._strip_phi_nodes(state.func_ir)
+        state.func_ir._definitions = build_definitions(state.func_ir.blocks)
+        if "flags" in state and state.flags.auto_parallel.enabled:
+            self._simplify_conditionally_defined_variable(state.func_ir)
+            state.func_ir._definitions = build_definitions(state.func_ir.blocks)
+
+        # Rerun postprocessor to update metadata
+        post_proc = postproc.PostProcessor(state.func_ir)
+        post_proc.run(emit_dels=False)
+
+        # Ensure we are not in objectmode generator
+        if (state.func_ir.generator_info is not None
+                and state.typemap is not None):
+            # Rebuild generator type
+            # TODO: move this into PostProcessor
+            gentype = state.return_type
+            state_vars = state.func_ir.generator_info.state_vars
+            state_types = [state.typemap[k] for k in state_vars]
+            state.return_type = types.Generator(
+                gen_func=gentype.gen_func,
+                yield_type=gentype.yield_type,
+                arg_types=gentype.arg_types,
+                state_types=state_types,
+                has_finalizer=gentype.has_finalizer,
+            )
+        return True
+
+    def _strip_phi_nodes(self, func_ir):
+        """Strip Phi nodes from ``func_ir``
+
+        For each phi node, put incoming value to their respective incoming
+        basic-block at possibly the latest position (i.e. after the latest
+        assignment to the corresponding variable).
+        """
+        exporters = defaultdict(list)
+        phis = set()
+        # Find all variables that needs to be exported
+        for label, block in func_ir.blocks.items():
+            for assign in block.find_insts(ir.Assign):
+                if isinstance(assign.value, ir.Expr):
+                    if assign.value.op == 'phi':
+                        phis.add(assign)
+                        phi = assign.value
+                        for ib, iv in zip(phi.incoming_blocks,
+                                          phi.incoming_values):
+                            exporters[ib].append((assign.target, iv))
+
+        # Rewrite the blocks with the new exporting assignments
+        newblocks = {}
+        for label, block in func_ir.blocks.items():
+            newblk = copy(block)
+            newblocks[label] = newblk
+
+            # strip phis
+            newblk.body = [stmt for stmt in block.body if stmt not in phis]
+
+            # insert exporters
+            for target, rhs in exporters[label]:
+                # If RHS is undefined
+                if rhs is ir.UNDEFINED:
+                    # Put in a NULL initializer, set the location to be in what
+                    # will eventually materialize as the prologue.
+                    rhs = ir.Expr.null(loc=func_ir.loc)
+
+                assign = ir.Assign(
+                    target=target,
+                    value=rhs,
+                    loc=rhs.loc
+                )
+                # Insert at the earliest possible location; i.e. after the
+                # last assignment to rhs
+                assignments = [stmt for stmt in newblk.find_insts(ir.Assign)
+                               if stmt.target == rhs]
+                if assignments:
+                    last_assignment = assignments[-1]
+                    newblk.insert_after(assign, last_assignment)
+                else:
+                    newblk.prepend(assign)
+
+        func_ir.blocks = newblocks
+        return func_ir
+
+    def _simplify_conditionally_defined_variable(self, func_ir):
+        """
+        Rewrite assignments like:
+
+            ver1 = null()
+            ...
+            ver1 = ver
+            ...
+            uses(ver1)
+
+        into:
+            # delete all assignments to ver1
+            uses(ver)
+
+        This is only needed for parfors because the SSA pass will create extra
+        variable assignments that the parfor code does not expect.
+        This pass helps avoid problems by reverting the effect of SSA.
+        """
+        any_block = next(iter(func_ir.blocks.values()))
+        scope = any_block.scope
+        defs = func_ir._definitions
+
+        def unver_or_undef(unver, defn):
+            # Is the definition undefined or pointing to the unversioned name?
+            if isinstance(defn, ir.Var):
+                if defn.unversioned_name == unver:
+                    return True
+            elif isinstance(defn, ir.Expr):
+                if defn.op == "null":
+                    return True
+            return False
+
+        def legalize_all_versioned_names(var):
+            # Are all versioned names undefined or defined to the same
+            # variable chain?
+            if not var.versioned_names:
+                return False
+            for versioned in var.versioned_names:
+                vs = defs.get(versioned, ())
+                if not all(map(partial(unver_or_undef, k), vs)):
+                    return False
+            return True
+
+        # Find unversioned variables that met the conditions
+        suspects = set()
+        for k in defs:
+            try:
+                # This may fail?
+                var = scope.get_exact(k)
+            except errors.NotDefinedError:
+                continue
+            # is the var name unversioned?
+            if var.unversioned_name == k:
+                if legalize_all_versioned_names(var):
+                    suspects.add(var)
+
+        delete_set = set()
+        replace_map = {}
+        for var in suspects:
+            # rewrite Var uses to the unversioned name
+            for versioned in var.versioned_names:
+                ver_var = scope.get_exact(versioned)
+                # delete assignment to the versioned name
+                delete_set.add(ver_var)
+                # replace references to versioned name with the unversioned
+                replace_map[versioned] = var
+
+        # remove assignments to the versioned names
+        for _label, blk in func_ir.blocks.items():
+            for assign in blk.find_insts(ir.Assign):
+                if assign.target in delete_set:
+                    blk.remove(assign)
+        # do variable replacement
+        replace_vars(func_ir.blocks, replace_map)
diff --git a/shared/package-files/f2/f28a650aed1f72ddd08a94f4241d3edbdd8403668e9bccd694c90f79d7deea26/test_edgebfs.py b/shared/package-files/f2/f28a650aed1f72ddd08a94f4241d3edbdd8403668e9bccd694c90f79d7deea26/test_edgebfs.py
new file mode 100644
index 0000000000000000000000000000000000000000..1bf3fae0bd067dd548281e3382a6125f6e50ee22
--- /dev/null
+++ b/shared/package-files/f2/f28a650aed1f72ddd08a94f4241d3edbdd8403668e9bccd694c90f79d7deea26/test_edgebfs.py
@@ -0,0 +1,147 @@
+import pytest
+
+import networkx as nx
+from networkx.algorithms.traversal.edgedfs import FORWARD, REVERSE
+
+
+class TestEdgeBFS:
+    @classmethod
+    def setup_class(cls):
+        cls.nodes = [0, 1, 2, 3]
+        cls.edges = [(0, 1), (1, 0), (1, 0), (2, 0), (2, 1), (3, 1)]
+
+    def test_empty(self):
+        G = nx.Graph()
+        edges = list(nx.edge_bfs(G))
+        assert edges == []
+
+    def test_graph_single_source(self):
+        G = nx.Graph(self.edges)
+        G.add_edge(4, 5)
+        x = list(nx.edge_bfs(G, [0]))
+        x_ = [(0, 1), (0, 2), (1, 2), (1, 3)]
+        assert x == x_
+
+    def test_graph(self):
+        G = nx.Graph(self.edges)
+        x = list(nx.edge_bfs(G, self.nodes))
+        x_ = [(0, 1), (0, 2), (1, 2), (1, 3)]
+        assert x == x_
+
+    def test_digraph(self):
+        G = nx.DiGraph(self.edges)
+        x = list(nx.edge_bfs(G, self.nodes))
+        x_ = [(0, 1), (1, 0), (2, 0), (2, 1), (3, 1)]
+        assert x == x_
+
+    def test_digraph_orientation_invalid(self):
+        G = nx.DiGraph(self.edges)
+        edge_iterator = nx.edge_bfs(G, self.nodes, orientation="hello")
+        pytest.raises(nx.NetworkXError, list, edge_iterator)
+
+    def test_digraph_orientation_none(self):
+        G = nx.DiGraph(self.edges)
+        x = list(nx.edge_bfs(G, self.nodes, orientation=None))
+        x_ = [(0, 1), (1, 0), (2, 0), (2, 1), (3, 1)]
+        assert x == x_
+
+    def test_digraph_orientation_original(self):
+        G = nx.DiGraph(self.edges)
+        x = list(nx.edge_bfs(G, self.nodes, orientation="original"))
+        x_ = [
+            (0, 1, FORWARD),
+            (1, 0, FORWARD),
+            (2, 0, FORWARD),
+            (2, 1, FORWARD),
+            (3, 1, FORWARD),
+        ]
+        assert x == x_
+
+    def test_digraph2(self):
+        G = nx.DiGraph()
+        nx.add_path(G, range(4))
+        x = list(nx.edge_bfs(G, [0]))
+        x_ = [(0, 1), (1, 2), (2, 3)]
+        assert x == x_
+
+    def test_digraph_rev(self):
+        G = nx.DiGraph(self.edges)
+        x = list(nx.edge_bfs(G, self.nodes, orientation="reverse"))
+        x_ = [
+            (1, 0, REVERSE),
+            (2, 0, REVERSE),
+            (0, 1, REVERSE),
+            (2, 1, REVERSE),
+            (3, 1, REVERSE),
+        ]
+        assert x == x_
+
+    def test_digraph_rev2(self):
+        G = nx.DiGraph()
+        nx.add_path(G, range(4))
+        x = list(nx.edge_bfs(G, [3], orientation="reverse"))
+        x_ = [(2, 3, REVERSE), (1, 2, REVERSE), (0, 1, REVERSE)]
+        assert x == x_
+
+    def test_multigraph(self):
+        G = nx.MultiGraph(self.edges)
+        x = list(nx.edge_bfs(G, self.nodes))
+        x_ = [(0, 1, 0), (0, 1, 1), (0, 1, 2), (0, 2, 0), (1, 2, 0), (1, 3, 0)]
+        # This is an example of where hash randomization can break.
+        # There are 3! * 2 alternative outputs, such as:
+        #    [(0, 1, 1), (1, 0, 0), (0, 1, 2), (1, 3, 0), (1, 2, 0)]
+        # But note, the edges (1,2,0) and (1,3,0) always follow the (0,1,k)
+        # edges. So the algorithm only guarantees a partial order. A total
+        # order is guaranteed only if the graph data structures are ordered.
+        assert x == x_
+
+    def test_multidigraph(self):
+        G = nx.MultiDiGraph(self.edges)
+        x = list(nx.edge_bfs(G, self.nodes))
+        x_ = [(0, 1, 0), (1, 0, 0), (1, 0, 1), (2, 0, 0), (2, 1, 0), (3, 1, 0)]
+        assert x == x_
+
+    def test_multidigraph_rev(self):
+        G = nx.MultiDiGraph(self.edges)
+        x = list(nx.edge_bfs(G, self.nodes, orientation="reverse"))
+        x_ = [
+            (1, 0, 0, REVERSE),
+            (1, 0, 1, REVERSE),
+            (2, 0, 0, REVERSE),
+            (0, 1, 0, REVERSE),
+            (2, 1, 0, REVERSE),
+            (3, 1, 0, REVERSE),
+        ]
+        assert x == x_
+
+    def test_digraph_ignore(self):
+        G = nx.DiGraph(self.edges)
+        x = list(nx.edge_bfs(G, self.nodes, orientation="ignore"))
+        x_ = [
+            (0, 1, FORWARD),
+            (1, 0, REVERSE),
+            (2, 0, REVERSE),
+            (2, 1, REVERSE),
+            (3, 1, REVERSE),
+        ]
+        assert x == x_
+
+    def test_digraph_ignore2(self):
+        G = nx.DiGraph()
+        nx.add_path(G, range(4))
+        x = list(nx.edge_bfs(G, [0], orientation="ignore"))
+        x_ = [(0, 1, FORWARD), (1, 2, FORWARD), (2, 3, FORWARD)]
+        assert x == x_
+
+    def test_multidigraph_ignore(self):
+        G = nx.MultiDiGraph(self.edges)
+        x = list(nx.edge_bfs(G, self.nodes, orientation="ignore"))
+        x_ = [
+            (0, 1, 0, FORWARD),
+            (1, 0, 0, REVERSE),
+            (1, 0, 1, REVERSE),
+            (2, 0, 0, REVERSE),
+            (2, 1, 0, REVERSE),
+            (3, 1, 0, REVERSE),
+        ]
+        assert x == x_
diff --git a/shared/package-files/f2/f291bb6ade95b566ffba345e237f6a4c1ef4bd616001f0a64db5a60e64c99ad5/_statistics.py b/shared/package-files/f2/f291bb6ade95b566ffba345e237f6a4c1ef4bd616001f0a64db5a60e64c99ad5/_statistics.py
new file mode 100644
index 0000000000000000000000000000000000000000..40346b02697d2fe58887ac8d00048a16b5b5c6e3
--- /dev/null
+++ b/shared/package-files/f2/f291bb6ade95b566ffba345e237f6a4c1ef4bd616001f0a64db5a60e64c99ad5/_statistics.py
@@ -0,0 +1,698 @@
+"""Statistical transformations for visualization.
+
+This module is currently private, but is being written to eventually form part
+of the public API.
+
+The classes should behave roughly in the style of scikit-learn.
+
+- All data-independent parameters should be passed to the class constructor.
+- Each class should implement a default transformation that is exposed through
+  __call__. These are currently written for vector arguments, but I think
+  consuming a whole `plot_data` DataFrame and return it with transformed
+  variables would make more sense.
+- Some class have data-dependent preprocessing that should be cached and used
+  multiple times (think defining histogram bins off all data and then counting
+  observations within each bin multiple times per data subsets). These currently
+  have unique names, but it would be good to have a common name. Not quite
+  `fit`, but something similar.
+- Alternatively, the transform interface could take some information about grouping
+  variables and do a groupby internally.
+- Some classes should define alternate transforms that might make the most sense
+  with a different function. For example, KDE usually evaluates the distribution
+  on a regular grid, but it would be useful for it to transform at the actual
+  datapoints. Then again, this could be controlled by a parameter at  the time of
+  class instantiation.
+
+"""
+from numbers import Number
+from statistics import NormalDist
+import numpy as np
+import pandas as pd
+try:
+    from scipy.stats import gaussian_kde
+    _no_scipy = False
+except ImportError:
+    from .external.kde import gaussian_kde
+    _no_scipy = True
+
+from .algorithms import bootstrap
+from .utils import _check_argument
+
+
+class KDE:
+    """Univariate and bivariate kernel density estimator."""
+    def __init__(
+        self, *,
+        bw_method=None,
+        bw_adjust=1,
+        gridsize=200,
+        cut=3,
+        clip=None,
+        cumulative=False,
+    ):
+        """Initialize the estimator with its parameters.
+
+        Parameters
+        ----------
+        bw_method : string, scalar, or callable, optional
+            Method for determining the smoothing bandwidth to use; passed to
+            :class:`scipy.stats.gaussian_kde`.
+        bw_adjust : number, optional
+            Factor that multiplicatively scales the value chosen using
+            ``bw_method``. Increasing will make the curve smoother. See Notes.
+        gridsize : int, optional
+            Number of points on each dimension of the evaluation grid.
+        cut : number, optional
+            Factor, multiplied by the smoothing bandwidth, that determines how
+            far the evaluation grid extends past the extreme datapoints. When
+            set to 0, truncate the curve at the data limits.
+        clip : pair of numbers or None, or a pair of such pairs
+            Do not evaluate the density outside of these limits.
+        cumulative : bool, optional
+            If True, estimate a cumulative distribution function. Requires scipy.
+
+        """
+        if clip is None:
+            clip = None, None
+
+        self.bw_method = bw_method
+        self.bw_adjust = bw_adjust
+        self.gridsize = gridsize
+        self.cut = cut
+        self.clip = clip
+        self.cumulative = cumulative
+
+        if cumulative and _no_scipy:
+            raise RuntimeError("Cumulative KDE evaluation requires scipy")
+
+        self.support = None
+
+    def _define_support_grid(self, x, bw, cut, clip, gridsize):
+        """Create the grid of evaluation points depending for vector x."""
+        clip_lo = -np.inf if clip[0] is None else clip[0]
+        clip_hi = +np.inf if clip[1] is None else clip[1]
+        gridmin = max(x.min() - bw * cut, clip_lo)
+        gridmax = min(x.max() + bw * cut, clip_hi)
+        return np.linspace(gridmin, gridmax, gridsize)
+
+    def _define_support_univariate(self, x, weights):
+        """Create a 1D grid of evaluation points."""
+        kde = self._fit(x, weights)
+        bw = np.sqrt(kde.covariance.squeeze())
+        grid = self._define_support_grid(
+            x, bw, self.cut, self.clip, self.gridsize
+        )
+        return grid
+
+    def _define_support_bivariate(self, x1, x2, weights):
+        """Create a 2D grid of evaluation points."""
+        clip = self.clip
+        if clip[0] is None or np.isscalar(clip[0]):
+            clip = (clip, clip)
+
+        kde = self._fit([x1, x2], weights)
+        bw = np.sqrt(np.diag(kde.covariance).squeeze())
+
+        grid1 = self._define_support_grid(
+            x1, bw[0], self.cut, clip[0], self.gridsize
+        )
+        grid2 = self._define_support_grid(
+            x2, bw[1], self.cut, clip[1], self.gridsize
+        )
+
+        return grid1, grid2
+
+    def define_support(self, x1, x2=None, weights=None, cache=True):
+        """Create the evaluation grid for a given data set."""
+        if x2 is None:
+            support = self._define_support_univariate(x1, weights)
+        else:
+            support = self._define_support_bivariate(x1, x2, weights)
+
+        if cache:
+            self.support = support
+
+        return support
+
+    def _fit(self, fit_data, weights=None):
+        """Fit the scipy kde while adding bw_adjust logic and version check."""
+        fit_kws = {"bw_method": self.bw_method}
+        if weights is not None:
+            fit_kws["weights"] = weights
+
+        kde = gaussian_kde(fit_data, **fit_kws)
+        kde.set_bandwidth(kde.factor * self.bw_adjust)
+
+        return kde
+
+    def _eval_univariate(self, x, weights=None):
+        """Fit and evaluate a univariate on univariate data."""
+        support = self.support
+        if support is None:
+            support = self.define_support(x, cache=False)
+
+        kde = self._fit(x, weights)
+
+        if self.cumulative:
+            s_0 = support[0]
+            density = np.array([
+                kde.integrate_box_1d(s_0, s_i) for s_i in support
+            ])
+        else:
+            density = kde(support)
+
+        return density, support
+
+    def _eval_bivariate(self, x1, x2, weights=None):
+        """Fit and evaluate a univariate on bivariate data."""
+        support = self.support
+        if support is None:
+            support = self.define_support(x1, x2, cache=False)
+
+        kde = self._fit([x1, x2], weights)
+
+        if self.cumulative:
+
+            grid1, grid2 = support
+            density = np.zeros((grid1.size, grid2.size))
+            p0 = grid1.min(), grid2.min()
+            for i, xi in enumerate(grid1):
+                for j, xj in enumerate(grid2):
+                    density[i, j] = kde.integrate_box(p0, (xi, xj))
+
+        else:
+
+            xx1, xx2 = np.meshgrid(*support)
+            density = kde([xx1.ravel(), xx2.ravel()]).reshape(xx1.shape)
+
+        return density, support
+
+    def __call__(self, x1, x2=None, weights=None):
+        """Fit and evaluate on univariate or bivariate data."""
+        if x2 is None:
+            return self._eval_univariate(x1, weights)
+        else:
+            return self._eval_bivariate(x1, x2, weights)
+
+
+# Note: we no longer use this for univariate histograms in histplot,
+# preferring _stats.Hist. We'll deprecate this once we have a bivariate Stat class.
+class Histogram:
+    """Univariate and bivariate histogram estimator."""
+    def __init__(
+        self,
+        stat="count",
+        bins="auto",
+        binwidth=None,
+        binrange=None,
+        discrete=False,
+        cumulative=False,
+    ):
+        """Initialize the estimator with its parameters.
+
+        Parameters
+        ----------
+        stat : str
+            Aggregate statistic to compute in each bin.
+
+            - `count`: show the number of observations in each bin
+            - `frequency`: show the number of observations divided by the bin width
+            - `probability` or `proportion`: normalize such that bar heights sum to 1
+            - `percent`: normalize such that bar heights sum to 100
+            - `density`: normalize such that the total area of the histogram equals 1
+
+        bins : str, number, vector, or a pair of such values
+            Generic bin parameter that can be the name of a reference rule,
+            the number of bins, or the breaks of the bins.
+            Passed to :func:`numpy.histogram_bin_edges`.
+        binwidth : number or pair of numbers
+            Width of each bin, overrides ``bins`` but can be used with
+            ``binrange``.
+        binrange : pair of numbers or a pair of pairs
+            Lowest and highest value for bin edges; can be used either
+            with ``bins`` or ``binwidth``. Defaults to data extremes.
+        discrete : bool or pair of bools
+            If True, set ``binwidth`` and ``binrange`` such that bin
+            edges cover integer values in the dataset.
+        cumulative : bool
+            If True, return the cumulative statistic.
+
+        """
+        stat_choices = [
+            "count", "frequency", "density", "probability", "proportion", "percent",
+        ]
+        _check_argument("stat", stat_choices, stat)
+
+        self.stat = stat
+        self.bins = bins
+        self.binwidth = binwidth
+        self.binrange = binrange
+        self.discrete = discrete
+        self.cumulative = cumulative
+
+        self.bin_kws = None
+
+    def _define_bin_edges(self, x, weights, bins, binwidth, binrange, discrete):
+        """Inner function that takes bin parameters as arguments."""
+        if binrange is None:
+            start, stop = x.min(), x.max()
+        else:
+            start, stop = binrange
+
+        if discrete:
+            bin_edges = np.arange(start - .5, stop + 1.5)
+        elif binwidth is not None:
+            step = binwidth
+            bin_edges = np.arange(start, stop + step, step)
+            # Handle roundoff error (maybe there is a less clumsy way?)
+            if bin_edges.max() < stop or len(bin_edges) < 2:
+                bin_edges = np.append(bin_edges, bin_edges.max() + step)
+        else:
+            bin_edges = np.histogram_bin_edges(
+                x, bins, binrange, weights,
+            )
+        return bin_edges
+
+    def define_bin_params(self, x1, x2=None, weights=None, cache=True):
+        """Given data, return numpy.histogram parameters to define bins."""
+        if x2 is None:
+
+            bin_edges = self._define_bin_edges(
+                x1, weights, self.bins, self.binwidth, self.binrange, self.discrete,
+            )
+
+            if isinstance(self.bins, (str, Number)):
+                n_bins = len(bin_edges) - 1
+                bin_range = bin_edges.min(), bin_edges.max()
+                bin_kws = dict(bins=n_bins, range=bin_range)
+            else:
+                bin_kws = dict(bins=bin_edges)
+
+        else:
+
+            bin_edges = []
+            for i, x in enumerate([x1, x2]):
+
+                # Resolve out whether bin parameters are shared
+                # or specific to each variable
+
+                bins = self.bins
+                if not bins or isinstance(bins, (str, Number)):
+                    pass
+                elif isinstance(bins[i], str):
+                    bins = bins[i]
+                elif len(bins) == 2:
+                    bins = bins[i]
+
+                binwidth = self.binwidth
+                if binwidth is None:
+                    pass
+                elif not isinstance(binwidth, Number):
+                    binwidth = binwidth[i]
+
+                binrange = self.binrange
+                if binrange is None:
+                    pass
+                elif not isinstance(binrange[0], Number):
+                    binrange = binrange[i]
+
+                discrete = self.discrete
+                if not isinstance(discrete, bool):
+                    discrete = discrete[i]
+
+                # Define the bins for this variable
+
+                bin_edges.append(self._define_bin_edges(
+                    x, weights, bins, binwidth, binrange, discrete,
+                ))
+
+            bin_kws = dict(bins=tuple(bin_edges))
+
+        if cache:
+            self.bin_kws = bin_kws
+
+        return bin_kws
+
+    def _eval_bivariate(self, x1, x2, weights):
+        """Inner function for histogram of two variables."""
+        bin_kws = self.bin_kws
+        if bin_kws is None:
+            bin_kws = self.define_bin_params(x1, x2, cache=False)
+
+        density = self.stat == "density"
+
+        hist, *bin_edges = np.histogram2d(
+            x1, x2, **bin_kws, weights=weights, density=density
+        )
+
+        area = np.outer(
+            np.diff(bin_edges[0]),
+            np.diff(bin_edges[1]),
+        )
+
+        if self.stat == "probability" or self.stat == "proportion":
+            hist = hist.astype(float) / hist.sum()
+        elif self.stat == "percent":
+            hist = hist.astype(float) / hist.sum() * 100
+        elif self.stat == "frequency":
+            hist = hist.astype(float) / area
+
+        if self.cumulative:
+            if self.stat in ["density", "frequency"]:
+                hist = (hist * area).cumsum(axis=0).cumsum(axis=1)
+            else:
+                hist = hist.cumsum(axis=0).cumsum(axis=1)
+
+        return hist, bin_edges
+
+    def _eval_univariate(self, x, weights):
+        """Inner function for histogram of one variable."""
+        bin_kws = self.bin_kws
+        if bin_kws is None:
+            bin_kws = self.define_bin_params(x, weights=weights, cache=False)
+
+        density = self.stat == "density"
+        hist, bin_edges = np.histogram(
+            x, **bin_kws, weights=weights, density=density,
+        )
+
+        if self.stat == "probability" or self.stat == "proportion":
+            hist = hist.astype(float) / hist.sum()
+        elif self.stat == "percent":
+            hist = hist.astype(float) / hist.sum() * 100
+        elif self.stat == "frequency":
+            hist = hist.astype(float) / np.diff(bin_edges)
+
+        if self.cumulative:
+            if self.stat in ["density", "frequency"]:
+                hist = (hist * np.diff(bin_edges)).cumsum()
+            else:
+                hist = hist.cumsum()
+
+        return hist, bin_edges
+
+    def __call__(self, x1, x2=None, weights=None):
+        """Count the occurrences in each bin, maybe normalize."""
+        if x2 is None:
+            return self._eval_univariate(x1, weights)
+        else:
+            return self._eval_bivariate(x1, x2, weights)
+
+
+class ECDF:
+    """Univariate empirical cumulative distribution estimator."""
+    def __init__(self, stat="proportion", complementary=False):
+        """Initialize the class with its parameters
+
+        Parameters
+        ----------
+        stat : {{"proportion", "percent", "count"}}
+            Distribution statistic to compute.
+        complementary : bool
+            If True, use the complementary CDF (1 - CDF)
+
+        """
+        _check_argument("stat", ["count", "percent", "proportion"], stat)
+        self.stat = stat
+        self.complementary = complementary
+
+    def _eval_bivariate(self, x1, x2, weights):
+        """Inner function for ECDF of two variables."""
+        raise NotImplementedError("Bivariate ECDF is not implemented")
+
+    def _eval_univariate(self, x, weights):
+        """Inner function for ECDF of one variable."""
+        sorter = x.argsort()
+        x = x[sorter]
+        weights = weights[sorter]
+        y = weights.cumsum()
+
+        if self.stat in ["percent", "proportion"]:
+            y = y / y.max()
+        if self.stat == "percent":
+            y = y * 100
+
+        x = np.r_[-np.inf, x]
+        y = np.r_[0, y]
+
+        if self.complementary:
+            y = y.max() - y
+
+        return y, x
+
+    def __call__(self, x1, x2=None, weights=None):
+        """Return proportion or count of observations below each sorted datapoint."""
+        x1 = np.asarray(x1)
+        if weights is None:
+            weights = np.ones_like(x1)
+        else:
+            weights = np.asarray(weights)
+
+        if x2 is None:
+            return self._eval_univariate(x1, weights)
+        else:
+            return self._eval_bivariate(x1, x2, weights)
+
+
+class EstimateAggregator:
+
+    def __init__(self, estimator, errorbar=None, **boot_kws):
+        """
+        Data aggregator that produces an estimate and error bar interval.
+
+        Parameters
+        ----------
+        estimator : callable or string
+            Function (or method name) that maps a vector to a scalar.
+        errorbar : string, (string, number) tuple, or callable
+            Name of errorbar method (either "ci", "pi", "se", or "sd"), or a tuple
+            with a method name and a level parameter, or a function that maps from a
+            vector to a (min, max) interval, or None to hide errorbar. See the
+            :doc:`errorbar tutorial ` for more information.
+        boot_kws
+            Additional keywords are passed to bootstrap when error_method is "ci".
+
+        """
+        self.estimator = estimator
+
+        method, level = _validate_errorbar_arg(errorbar)
+        self.error_method = method
+        self.error_level = level
+
+        self.boot_kws = boot_kws
+
+    def __call__(self, data, var):
+        """Aggregate over `var` column of `data` with estimate and error interval."""
+        vals = data[var]
+        if callable(self.estimator):
+            # You would think we could pass to vals.agg, and yet:
+            # https://github.com/mwaskom/seaborn/issues/2943
+            estimate = self.estimator(vals)
+        else:
+            estimate = vals.agg(self.estimator)
+
+        # Options that produce no error bars
+        if self.error_method is None:
+            err_min = err_max = np.nan
+        elif len(data) <= 1:
+            err_min = err_max = np.nan
+
+        # Generic errorbars from user-supplied function
+        elif callable(self.error_method):
+            err_min, err_max = self.error_method(vals)
+
+        # Parametric options
+        elif self.error_method == "sd":
+            half_interval = vals.std() * self.error_level
+            err_min, err_max = estimate - half_interval, estimate + half_interval
+        elif self.error_method == "se":
+            half_interval = vals.sem() * self.error_level
+            err_min, err_max = estimate - half_interval, estimate + half_interval
+
+        # Nonparametric options
+        elif self.error_method == "pi":
+            err_min, err_max = _percentile_interval(vals, self.error_level)
+        elif self.error_method == "ci":
+            units = data.get("units", None)
+            boots = bootstrap(vals, units=units, func=self.estimator, **self.boot_kws)
+            err_min, err_max = _percentile_interval(boots, self.error_level)
+
+        return pd.Series({var: estimate, f"{var}min": err_min, f"{var}max": err_max})
+
+
+class WeightedAggregator:
+
+    def __init__(self, estimator, errorbar=None, **boot_kws):
+        """
+        Data aggregator that produces a weighted estimate and error bar interval.
+
+        Parameters
+        ----------
+        estimator : string
+            Function (or method name) that maps a vector to a scalar. Currently
+            supports only "mean".
+        errorbar : string or (string, number) tuple
+            Name of errorbar method or a tuple with a method name and a level parameter.
+            Currently the only supported method is "ci".
+        boot_kws
+            Additional keywords are passed to bootstrap when error_method is "ci".
+
+        """
+        if estimator != "mean":
+            # Note that, while other weighted estimators may make sense (e.g. median),
+            # I'm not aware of an implementation in our dependencies. We can add one
+            # in seaborn later, if there is sufficient interest. For now, limit to mean.
+            raise ValueError(f"Weighted estimator must be 'mean', not {estimator!r}.")
+        self.estimator = estimator
+
+        method, level = _validate_errorbar_arg(errorbar)
+        if method is not None and method != "ci":
+            # As with the estimator, weighted 'sd' or 'pi' error bars may make sense.
+            # But we'll keep things simple for now and limit to (bootstrap) CI.
+            raise ValueError(f"Error bar method must be 'ci', not {method!r}.")
+        self.error_method = method
+        self.error_level = level
+
+        self.boot_kws = boot_kws
+
+    def __call__(self, data, var):
+        """Aggregate over `var` column of `data` with estimate and error interval."""
+        vals = data[var]
+        weights = data["weight"]
+
+        estimate = np.average(vals, weights=weights)
+
+        if self.error_method == "ci" and len(data) > 1:
+
+            def error_func(x, w):
+                return np.average(x, weights=w)
+
+            boots = bootstrap(vals, weights, func=error_func, **self.boot_kws)
+            err_min, err_max = _percentile_interval(boots, self.error_level)
+
+        else:
+            err_min = err_max = np.nan
+
+        return pd.Series({var: estimate, f"{var}min": err_min, f"{var}max": err_max})
+
+
+class LetterValues:
+
+    def __init__(self, k_depth, outlier_prop, trust_alpha):
+        """
+        Compute percentiles of a distribution using various tail stopping rules.
+
+        Parameters
+        ----------
+        k_depth: "tukey", "proportion", "trustworthy", or "full"
+            Stopping rule for choosing tail percentiled to show:
+
+            - tukey: Show a similar number of outliers as in a conventional boxplot.
+            - proportion: Show approximately `outlier_prop` outliers.
+            - trust_alpha: Use `trust_alpha` level for most extreme tail percentile.
+
+        outlier_prop: float
+            Parameter for `k_depth="proportion"` setting the expected outlier rate.
+        trust_alpha: float
+            Parameter for `k_depth="trustworthy"` setting the confidence threshold.
+
+        Notes
+        -----
+        Based on the proposal in this paper:
+        https://vita.had.co.nz/papers/letter-value-plot.pdf
+
+        """
+        k_options = ["tukey", "proportion", "trustworthy", "full"]
+        if isinstance(k_depth, str):
+            _check_argument("k_depth", k_options, k_depth)
+        elif not isinstance(k_depth, int):
+            err = (
+                "The `k_depth` parameter must be either an integer or string "
+                f"(one of {k_options}), not {k_depth!r}."
+            )
+            raise TypeError(err)
+
+        self.k_depth = k_depth
+        self.outlier_prop = outlier_prop
+        self.trust_alpha = trust_alpha
+
+    def _compute_k(self, n):
+
+        # Select the depth, i.e. number of boxes to draw, based on the method
+        if self.k_depth == "full":
+            # extend boxes to 100% of the data
+            k = int(np.log2(n)) + 1
+        elif self.k_depth == "tukey":
+            # This results with 5-8 points in each tail
+            k = int(np.log2(n)) - 3
+        elif self.k_depth == "proportion":
+            k = int(np.log2(n)) - int(np.log2(n * self.outlier_prop)) + 1
+        elif self.k_depth == "trustworthy":
+            normal_quantile_func = np.vectorize(NormalDist().inv_cdf)
+            point_conf = 2 * normal_quantile_func(1 - self.trust_alpha / 2) ** 2
+            k = int(np.log2(n / point_conf)) + 1
+        else:
+            # Allow having k directly specified as input
+            k = int(self.k_depth)
+
+        return max(k, 1)
+
+    def __call__(self, x):
+        """Evaluate the letter values."""
+        k = self._compute_k(len(x))
+        exp = np.arange(k + 1, 1, -1), np.arange(2, k + 2)
+        levels = k + 1 - np.concatenate([exp[0], exp[1][1:]])
+        percentiles = 100 * np.concatenate([0.5 ** exp[0], 1 - 0.5 ** exp[1]])
+        if self.k_depth == "full":
+            percentiles[0] = 0
+            percentiles[-1] = 100
+        values = np.percentile(x, percentiles)
+        fliers = np.asarray(x[(x < values.min()) | (x > values.max())])
+        median = np.percentile(x, 50)
+
+        return {
+            "k": k,
+            "levels": levels,
+            "percs": percentiles,
+            "values": values,
+            "fliers": fliers,
+            "median": median,
+        }
+
+
+def _percentile_interval(data, width):
+    """Return a percentile interval from data of a given width."""
+    edge = (100 - width) / 2
+    percentiles = edge, 100 - edge
+    return np.nanpercentile(data, percentiles)
+
+
+def _validate_errorbar_arg(arg):
+    """Check type and value of errorbar argument and assign default level."""
+    DEFAULT_LEVELS = {
+        "ci": 95,
+        "pi": 95,
+        "se": 1,
+        "sd": 1,
+    }
+
+    usage = "`errorbar` must be a callable, string, or (string, number) tuple"
+
+    if arg is None:
+        return None, None
+    elif callable(arg):
+        return arg, None
+    elif isinstance(arg, str):
+        method = arg
+        level = DEFAULT_LEVELS.get(method, None)
+    else:
+        try:
+            method, level = arg
+        except (ValueError, TypeError) as err:
+            raise err.__class__(usage) from err
+
+    _check_argument("errorbar", list(DEFAULT_LEVELS), method)
+    if level is not None and not isinstance(level, Number):
+        raise TypeError(usage)
+
+    return method, level
diff --git a/shared/package-files/f2/f2943db887c15422a0404e36ae0015f0e73544052247b73c936cf8c3ae3356ca/charset.pyi b/shared/package-files/f2/f2943db887c15422a0404e36ae0015f0e73544052247b73c936cf8c3ae3356ca/charset.pyi
new file mode 100644
index 0000000000000000000000000000000000000000..c47679a78b2bcf30d64cab636418da0e04d3c007
--- /dev/null
+++ b/shared/package-files/f2/f2943db887c15422a0404e36ae0015f0e73544052247b73c936cf8c3ae3356ca/charset.pyi
@@ -0,0 +1,16 @@
+from typing import Any
+
+MBLENGTH: Any
+
+class Charset:
+    is_default: Any
+    def __init__(self, id, name, collation, is_default): ...
+
+class Charsets:
+    def __init__(self): ...
+    def add(self, c): ...
+    def by_id(self, id): ...
+    def by_name(self, name): ...
+
+def charset_by_name(name): ...
+def charset_by_id(id): ...
diff --git a/shared/package-files/f2/f2a51a621f101ce265cfb30dbe4b8937261d08e0a2bee5b4a5b99fff638f66ed/armccompiler.py b/shared/package-files/f2/f2a51a621f101ce265cfb30dbe4b8937261d08e0a2bee5b4a5b99fff638f66ed/armccompiler.py
new file mode 100644
index 0000000000000000000000000000000000000000..afba7eb3b3529835e59a52b42f7b143225faf465
--- /dev/null
+++ b/shared/package-files/f2/f2a51a621f101ce265cfb30dbe4b8937261d08e0a2bee5b4a5b99fff638f66ed/armccompiler.py
@@ -0,0 +1,26 @@
+from distutils.unixccompiler import UnixCCompiler                              
+
+class ArmCCompiler(UnixCCompiler):
+
+    """
+    Arm compiler.
+    """
+
+    compiler_type = 'arm'
+    cc_exe = 'armclang'
+    cxx_exe = 'armclang++'
+
+    def __init__(self, verbose=0, dry_run=0, force=0):
+        UnixCCompiler.__init__(self, verbose, dry_run, force)
+        cc_compiler = self.cc_exe
+        cxx_compiler = self.cxx_exe
+        self.set_executables(compiler=cc_compiler +
+                                      ' -O3 -fPIC',
+                             compiler_so=cc_compiler +
+                                         ' -O3 -fPIC',
+                             compiler_cxx=cxx_compiler +
+                                          ' -O3 -fPIC',
+                             linker_exe=cc_compiler +
+                                        ' -lamath',
+                             linker_so=cc_compiler +
+                                       ' -lamath -shared')
diff --git a/shared/package-files/f2/f2a59086a8fbaf6beb6e3e29a2d41d73cc7218a842ce0094a9b6be0de35cc82f/special_laguerre_polynomial_l_cpu_dispatch.h b/shared/package-files/f2/f2a59086a8fbaf6beb6e3e29a2d41d73cc7218a842ce0094a9b6be0de35cc82f/special_laguerre_polynomial_l_cpu_dispatch.h
new file mode 100644
index 0000000000000000000000000000000000000000..efcfe502b8cbaf3c5ac37dc26ad23694656ad573
--- /dev/null
+++ b/shared/package-files/f2/f2a59086a8fbaf6beb6e3e29a2d41d73cc7218a842ce0094a9b6be0de35cc82f/special_laguerre_polynomial_l_cpu_dispatch.h
@@ -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_laguerre_polynomial_l(const at::Tensor & x, const at::Tensor & n);
+TORCH_API at::Tensor & special_laguerre_polynomial_l_out(at::Tensor & out, const at::Tensor & x, const at::Tensor & n);
+TORCH_API at::Tensor & special_laguerre_polynomial_l_outf(const at::Tensor & x, const at::Tensor & n, at::Tensor & out);
+
+} // namespace cpu
+} // namespace at
diff --git a/shared/package-files/f2/f2a6e7efaadff71bb8ecd61575f1af8e791fd8a67134de49f1e905897533dc04/Dushanbe b/shared/package-files/f2/f2a6e7efaadff71bb8ecd61575f1af8e791fd8a67134de49f1e905897533dc04/Dushanbe
new file mode 100644
index 0000000000000000000000000000000000000000..d83fb076a256817ca0a3ec4e43c7768e6680dc84
Binary files /dev/null and b/shared/package-files/f2/f2a6e7efaadff71bb8ecd61575f1af8e791fd8a67134de49f1e905897533dc04/Dushanbe differ
diff --git a/shared/package-files/f2/f2accf6c2430aa63512761989355f4daa36f985dd3020271cd41bfc74734ee8e/test__dual_annealing.py b/shared/package-files/f2/f2accf6c2430aa63512761989355f4daa36f985dd3020271cd41bfc74734ee8e/test__dual_annealing.py
new file mode 100644
index 0000000000000000000000000000000000000000..3465be508491aae411e113167b8fdd84f6d2d70b
--- /dev/null
+++ b/shared/package-files/f2/f2accf6c2430aa63512761989355f4daa36f985dd3020271cd41bfc74734ee8e/test__dual_annealing.py
@@ -0,0 +1,416 @@
+# Dual annealing unit tests implementation.
+# Copyright (c) 2018 Sylvain Gubian ,
+# Yang Xiang 
+# Author: Sylvain Gubian, PMP S.A.
+"""
+Unit tests for the dual annealing global optimizer
+"""
+from scipy.optimize import dual_annealing, Bounds
+
+from scipy.optimize._dual_annealing import EnergyState
+from scipy.optimize._dual_annealing import LocalSearchWrapper
+from scipy.optimize._dual_annealing import ObjectiveFunWrapper
+from scipy.optimize._dual_annealing import StrategyChain
+from scipy.optimize._dual_annealing import VisitingDistribution
+from scipy.optimize import rosen, rosen_der
+import pytest
+import numpy as np
+from numpy.testing import assert_equal, assert_allclose, assert_array_less
+from pytest import raises as assert_raises
+from scipy._lib._util import check_random_state
+
+import threading
+
+
+class TestDualAnnealing:
+
+    def setup_method(self):
+        # A function that returns always infinity for initialization tests
+        self.weirdfunc = lambda x: np.inf
+        # 2-D bounds for testing function
+        self.ld_bounds = [(-5.12, 5.12)] * 2
+        # 4-D bounds for testing function
+        self.hd_bounds = self.ld_bounds * 4
+        # Number of values to be generated for testing visit function
+        self.nbtestvalues = 5000
+        self.high_temperature = 5230
+        self.low_temperature = 0.1
+        self.qv = 2.62
+        self.seed = 1234
+        self.rng = check_random_state(self.seed)
+        self.nb_fun_call = threading.local()
+        self.ngev = threading.local()
+
+    def callback(self, x, f, context):
+        # For testing callback mechanism. Should stop for e <= 1 as
+        # the callback function returns True
+        if f <= 1.0:
+            return True
+
+    def func(self, x, args=()):
+        # Using Rastrigin function for performing tests
+        if args:
+            shift = args
+        else:
+            shift = 0
+        y = np.sum((x - shift) ** 2 - 10 * np.cos(2 * np.pi * (
+            x - shift))) + 10 * np.size(x) + shift
+        if not hasattr(self.nb_fun_call, 'c'):
+            self.nb_fun_call.c = 0
+        self.nb_fun_call.c += 1
+        return y
+
+    def rosen_der_wrapper(self, x, args=()):
+        if not hasattr(self.ngev, 'c'):
+            self.ngev.c = 0
+        self.ngev.c += 1
+        return rosen_der(x, *args)
+
+    # FIXME: there are some discontinuities in behaviour as a function of `qv`,
+    #        this needs investigating - see gh-12384
+    @pytest.mark.parametrize('qv', [1.1, 1.41, 2, 2.62, 2.9])
+    def test_visiting_stepping(self, qv):
+        lu = list(zip(*self.ld_bounds))
+        lower = np.array(lu[0])
+        upper = np.array(lu[1])
+        dim = lower.size
+        vd = VisitingDistribution(lower, upper, qv, self.rng)
+        values = np.zeros(dim)
+        x_step_low = vd.visiting(values, 0, self.high_temperature)
+        # Make sure that only the first component is changed
+        assert_equal(np.not_equal(x_step_low, 0), True)
+        values = np.zeros(dim)
+        x_step_high = vd.visiting(values, dim, self.high_temperature)
+        # Make sure that component other than at dim has changed
+        assert_equal(np.not_equal(x_step_high[0], 0), True)
+
+    @pytest.mark.parametrize('qv', [2.25, 2.62, 2.9])
+    def test_visiting_dist_high_temperature(self, qv):
+        lu = list(zip(*self.ld_bounds))
+        lower = np.array(lu[0])
+        upper = np.array(lu[1])
+        vd = VisitingDistribution(lower, upper, qv, self.rng)
+        # values = np.zeros(self.nbtestvalues)
+        # for i in np.arange(self.nbtestvalues):
+        #     values[i] = vd.visit_fn(self.high_temperature)
+        values = vd.visit_fn(self.high_temperature, self.nbtestvalues)
+
+        # Visiting distribution is a distorted version of Cauchy-Lorentz
+        # distribution, and as no 1st and higher moments (no mean defined,
+        # no variance defined).
+        # Check that big tails values are generated
+        assert_array_less(np.min(values), 1e-10)
+        assert_array_less(1e+10, np.max(values))
+
+    def test_reset(self):
+        owf = ObjectiveFunWrapper(self.weirdfunc)
+        lu = list(zip(*self.ld_bounds))
+        lower = np.array(lu[0])
+        upper = np.array(lu[1])
+        es = EnergyState(lower, upper)
+        assert_raises(ValueError, es.reset, owf, check_random_state(None))
+
+    def test_low_dim(self):
+        ret = dual_annealing(
+            self.func, self.ld_bounds, rng=self.seed)
+        assert_allclose(ret.fun, 0., atol=1e-12)
+        assert ret.success
+
+    @pytest.mark.fail_slow(10)
+    def test_high_dim(self):
+        ret = dual_annealing(self.func, self.hd_bounds, rng=self.seed)
+        assert_allclose(ret.fun, 0., atol=1e-12)
+        assert ret.success
+
+    def test_low_dim_no_ls(self):
+        ret = dual_annealing(self.func, self.ld_bounds,
+                             no_local_search=True, seed=self.seed)
+        assert_allclose(ret.fun, 0., atol=1e-4)
+
+    @pytest.mark.fail_slow(10)
+    def test_high_dim_no_ls(self):
+        ret = dual_annealing(self.func, self.hd_bounds,
+                             no_local_search=True, rng=self.seed)
+        assert_allclose(ret.fun, 0., atol=1.2e-4)
+
+    def test_nb_fun_call(self):
+        self.nb_fun_call.c = 0
+        ret = dual_annealing(self.func, self.ld_bounds, rng=self.seed)
+        assert_equal(self.nb_fun_call.c, ret.nfev)
+
+    def test_nb_fun_call_no_ls(self):
+        self.nb_fun_call.c = 0
+        ret = dual_annealing(self.func, self.ld_bounds,
+                             no_local_search=True, rng=self.seed)
+        assert_equal(self.nb_fun_call.c, ret.nfev)
+
+    def test_max_reinit(self):
+        assert_raises(ValueError, dual_annealing, self.weirdfunc,
+                      self.ld_bounds)
+
+    @pytest.mark.fail_slow(10)
+    def test_reproduce(self):
+        res1 = dual_annealing(self.func, self.ld_bounds, rng=self.seed)
+        res2 = dual_annealing(self.func, self.ld_bounds, rng=self.seed)
+        res3 = dual_annealing(self.func, self.ld_bounds, rng=self.seed)
+        # If we have reproducible results, x components found has to
+        # be exactly the same, which is not the case with no seeding
+        assert_equal(res1.x, res2.x)
+        assert_equal(res1.x, res3.x)
+
+    def test_rand_gen(self):
+        # check that np.random.Generator can be used (numpy >= 1.17)
+        # obtain a np.random.Generator object
+        rng = np.random.default_rng(1)
+
+        res1 = dual_annealing(self.func, self.ld_bounds, rng=rng)
+        # seed again
+        rng = np.random.default_rng(1)
+        res2 = dual_annealing(self.func, self.ld_bounds, rng=rng)
+        # If we have reproducible results, x components found has to
+        # be exactly the same, which is not the case with no seeding
+        assert_equal(res1.x, res2.x)
+
+    def test_bounds_integrity(self):
+        wrong_bounds = [(-5.12, 5.12), (1, 0), (5.12, 5.12)]
+        assert_raises(ValueError, dual_annealing, self.func,
+                      wrong_bounds)
+
+    def test_bound_validity(self):
+        invalid_bounds = [(-5, 5), (-np.inf, 0), (-5, 5)]
+        assert_raises(ValueError, dual_annealing, self.func,
+                      invalid_bounds)
+        invalid_bounds = [(-5, 5), (0, np.inf), (-5, 5)]
+        assert_raises(ValueError, dual_annealing, self.func,
+                      invalid_bounds)
+        invalid_bounds = [(-5, 5), (0, np.nan), (-5, 5)]
+        assert_raises(ValueError, dual_annealing, self.func,
+                      invalid_bounds)
+
+    @pytest.mark.thread_unsafe
+    def test_deprecated_local_search_options_bounds(self):
+        def func(x):
+            return np.sum((x - 5) * (x - 1))
+        bounds = list(zip([-6, -5], [6, 5]))
+        # Test bounds can be passed (see gh-10831)
+
+        with pytest.warns(RuntimeWarning, match=r"Method CG cannot handle "):
+            dual_annealing(
+                func,
+                bounds=bounds,
+                minimizer_kwargs={"method": "CG", "bounds": bounds})
+
+    @pytest.mark.thread_unsafe
+    def test_minimizer_kwargs_bounds(self):
+        def func(x):
+            return np.sum((x - 5) * (x - 1))
+        bounds = list(zip([-6, -5], [6, 5]))
+        # Test bounds can be passed (see gh-10831)
+        dual_annealing(
+            func,
+            bounds=bounds,
+            minimizer_kwargs={"method": "SLSQP", "bounds": bounds})
+
+        with pytest.warns(RuntimeWarning, match=r"Method CG cannot handle "):
+            dual_annealing(
+                func,
+                bounds=bounds,
+                minimizer_kwargs={"method": "CG", "bounds": bounds})
+
+    def test_max_fun_ls(self):
+        ret = dual_annealing(self.func, self.ld_bounds, maxfun=100,
+                             rng=self.seed)
+
+        ls_max_iter = min(max(
+            len(self.ld_bounds) * LocalSearchWrapper.LS_MAXITER_RATIO,
+            LocalSearchWrapper.LS_MAXITER_MIN),
+            LocalSearchWrapper.LS_MAXITER_MAX)
+        assert ret.nfev <= 100 + ls_max_iter
+        assert not ret.success
+
+    def test_max_fun_no_ls(self):
+        ret = dual_annealing(self.func, self.ld_bounds,
+                             no_local_search=True, maxfun=500, rng=self.seed)
+        assert ret.nfev <= 500
+        assert not ret.success
+
+    def test_maxiter(self):
+        ret = dual_annealing(self.func, self.ld_bounds, maxiter=700,
+                             rng=self.seed)
+        assert ret.nit <= 700
+
+    # Testing that args are passed correctly for dual_annealing
+    def test_fun_args_ls(self):
+        ret = dual_annealing(self.func, self.ld_bounds,
+                             args=((3.14159,)), rng=self.seed)
+        assert_allclose(ret.fun, 3.14159, atol=1e-6)
+
+    # Testing that args are passed correctly for pure simulated annealing
+    def test_fun_args_no_ls(self):
+        ret = dual_annealing(self.func, self.ld_bounds,
+                             args=((3.14159, )), no_local_search=True,
+                             rng=self.seed)
+        assert_allclose(ret.fun, 3.14159, atol=1e-4)
+
+    def test_callback_stop(self):
+        # Testing that callback make the algorithm stop for
+        # fun value <= 1.0 (see callback method)
+        ret = dual_annealing(self.func, self.ld_bounds,
+                             callback=self.callback, rng=self.seed)
+        assert ret.fun <= 1.0
+        assert 'stop early' in ret.message[0]
+        assert not ret.success
+
+    @pytest.mark.parametrize('method, atol', [
+        ('Nelder-Mead', 2e-5),
+        ('COBYLA', 1e-5),
+        ('COBYQA', 1e-8),
+        ('Powell', 1e-8),
+        ('CG', 1e-8),
+        ('BFGS', 1e-8),
+        ('TNC', 1e-8),
+        ('SLSQP', 2e-7),
+    ])
+    def test_multi_ls_minimizer(self, method, atol):
+        ret = dual_annealing(self.func, self.ld_bounds,
+                             minimizer_kwargs=dict(method=method),
+                             rng=self.seed)
+        assert_allclose(ret.fun, 0., atol=atol)
+
+    def test_wrong_restart_temp(self):
+        assert_raises(ValueError, dual_annealing, self.func,
+                      self.ld_bounds, restart_temp_ratio=1)
+        assert_raises(ValueError, dual_annealing, self.func,
+                      self.ld_bounds, restart_temp_ratio=0)
+
+    def test_gradient_gnev(self):
+        minimizer_opts = {
+            'jac': self.rosen_der_wrapper,
+        }
+        ret = dual_annealing(rosen, self.ld_bounds,
+                             minimizer_kwargs=minimizer_opts,
+                             rng=self.seed)
+        assert ret.njev == self.ngev.c
+
+    @pytest.mark.fail_slow(10)
+    def test_from_docstring(self):
+        def func(x):
+            return np.sum(x * x - 10 * np.cos(2 * np.pi * x)) + 10 * np.size(x)
+        lw = [-5.12] * 10
+        up = [5.12] * 10
+        ret = dual_annealing(func, bounds=list(zip(lw, up)), rng=1234)
+        assert_allclose(ret.x,
+                        [-4.26437714e-09, -3.91699361e-09, -1.86149218e-09,
+                         -3.97165720e-09, -6.29151648e-09, -6.53145322e-09,
+                         -3.93616815e-09, -6.55623025e-09, -6.05775280e-09,
+                         -5.00668935e-09], atol=4e-8)
+        assert_allclose(ret.fun, 0.000000, atol=5e-13)
+
+    @pytest.mark.parametrize('new_e, temp_step, accepted, accept_rate', [
+        (0, 100, 1000, 1.0097587941791923),
+        (0, 2, 1000, 1.2599210498948732),
+        (10, 100, 878, 0.8786035869128718),
+        (10, 60, 695, 0.6812920690579612),
+        (2, 100, 990, 0.9897404249173424),
+    ])
+    def test_accept_reject_probabilistic(
+            self, new_e, temp_step, accepted, accept_rate):
+        # Test accepts unconditionally with e < current_energy and
+        # probabilistically with e > current_energy
+
+        rs = check_random_state(123)
+
+        count_accepted = 0
+        iterations = 1000
+
+        accept_param = -5
+        current_energy = 1
+        for _ in range(iterations):
+            energy_state = EnergyState(lower=None, upper=None)
+            # Set energy state with current_energy, any location.
+            energy_state.update_current(current_energy, [0])
+
+            chain = StrategyChain(
+                accept_param, None, None, None, rs, energy_state)
+            # Normally this is set in run()
+            chain.temperature_step = temp_step
+
+            # Check if update is accepted.
+            chain.accept_reject(j=1, e=new_e, x_visit=[2])
+            if energy_state.current_energy == new_e:
+                count_accepted += 1
+
+        assert count_accepted == accepted
+
+        # Check accept rate
+        pqv = 1 - (1 - accept_param) * (new_e - current_energy) / temp_step
+        rate = 0 if pqv <= 0 else np.exp(np.log(pqv) / (1 - accept_param))
+
+        assert_allclose(rate, accept_rate)
+
+    @pytest.mark.fail_slow(10)
+    def test_bounds_class(self):
+        # test that result does not depend on the bounds type
+        def func(x):
+            f = np.sum(x * x - 10 * np.cos(2 * np.pi * x)) + 10 * np.size(x)
+            return f
+        lw = [-5.12] * 5
+        up = [5.12] * 5
+
+        # Unbounded global minimum is all zeros. Most bounds below will force
+        # a DV away from unbounded minimum and be active at solution.
+        up[0] = -2.0
+        up[1] = -1.0
+        lw[3] = 1.0
+        lw[4] = 2.0
+
+        # run optimizations
+        bounds = Bounds(lw, up)
+        ret_bounds_class = dual_annealing(func, bounds=bounds, rng=1234)
+
+        bounds_old = list(zip(lw, up))
+        ret_bounds_list = dual_annealing(func, bounds=bounds_old, rng=1234)
+
+        # test that found minima, function evaluations and iterations match
+        assert_allclose(ret_bounds_class.x, ret_bounds_list.x, atol=1e-8)
+        assert_allclose(ret_bounds_class.x, np.arange(-2, 3), atol=1e-7)
+        assert_allclose(ret_bounds_list.fun, ret_bounds_class.fun, atol=1e-9)
+        assert ret_bounds_list.nfev == ret_bounds_class.nfev
+
+    @pytest.mark.fail_slow(10)
+    def test_callable_jac_hess_with_args_gh11052(self):
+        # dual_annealing used to fail when `jac` was callable and `args` were
+        # used; check that this is resolved. Example is from gh-11052.
+
+        # extended to hess as part of closing gh20614
+        rng = np.random.default_rng(94253637693657847462)
+        def f(x, power):
+            return np.sum(np.exp(x ** power))
+
+        def jac(x, power):
+            return np.exp(x ** power) * power * x ** (power - 1)
+
+        def hess(x, power):
+            # calculated using WolframAlpha as d^2/dx^2 e^(x^p)
+            return np.diag(
+                power * np.exp(x ** power) * x ** (power - 2) *
+                (power * x ** power + power - 1)
+            )
+
+        def hessp(x, p, power):
+            return hess(x, power) @ p
+
+        res1 = dual_annealing(f, args=(2, ), bounds=[[0, 1], [0, 1]], rng=rng,
+                              minimizer_kwargs=dict(method='L-BFGS-B'))
+        res2 = dual_annealing(f, args=(2, ), bounds=[[0, 1], [0, 1]], rng=rng,
+                              minimizer_kwargs=dict(method='L-BFGS-B',
+                                                    jac=jac))
+        res3 = dual_annealing(f, args=(2, ), bounds=[[0, 1], [0, 1]], rng=rng,
+                              minimizer_kwargs=dict(method='newton-cg',
+                                                    jac=jac, hess=hess))
+        res4 = dual_annealing(f, args=(2, ), bounds=[[0, 1], [0, 1]], rng=rng,
+                              minimizer_kwargs=dict(method='newton-cg',
+                                                    jac=jac, hessp=hessp))
+        assert_allclose(res1.fun, res2.fun, rtol=1e-6)
+        assert_allclose(res3.fun, res2.fun, rtol=1e-6)
+        assert_allclose(res4.fun, res2.fun, rtol=1e-6)
diff --git a/shared/package-files/f2/f2b2ba7497fd02d13abcfc2a98099283a94b09e8b4f2c1c822ecacde3bec3eae/architecture.rst b/shared/package-files/f2/f2b2ba7497fd02d13abcfc2a98099283a94b09e8b4f2c1c822ecacde3bec3eae/architecture.rst
new file mode 100644
index 0000000000000000000000000000000000000000..fcd10bde1325bbf44251c8323941eed2f73865b9
--- /dev/null
+++ b/shared/package-files/f2/f2b2ba7497fd02d13abcfc2a98099283a94b09e8b4f2c1c822ecacde3bec3eae/architecture.rst
@@ -0,0 +1,216 @@
+:mod:`email` Package Architecture
+=================================
+
+Overview
+--------
+
+The email package consists of three major components:
+
+    Model
+        An object structure that represents an email message, and provides an
+        API for creating, querying, and modifying a message.
+
+    Parser
+        Takes a sequence of characters or bytes and produces a model of the
+        email message represented by those characters or bytes.
+
+    Generator
+        Takes a model and turns it into a sequence of characters or bytes.  The
+        sequence can either be intended for human consumption (a printable
+        unicode string) or bytes suitable for transmission over the wire.  In
+        the latter case all data is properly encoded using the content transfer
+        encodings specified by the relevant RFCs.
+
+Conceptually the package is organized around the model.  The model provides both
+"external" APIs intended for use by application programs using the library,
+and "internal" APIs intended for use by the Parser and Generator components.
+This division is intentionally a bit fuzzy; the API described by this
+documentation is all a public, stable API.  This allows for an application
+with special needs to implement its own parser and/or generator.
+
+In addition to the three major functional components, there is a third key
+component to the architecture:
+
+    Policy
+        An object that specifies various behavioral settings and carries
+        implementations of various behavior-controlling methods.
+
+The Policy framework provides a simple and convenient way to control the
+behavior of the library, making it possible for the library to be used in a
+very flexible fashion while leveraging the common code required to parse,
+represent, and generate message-like objects.  For example, in addition to the
+default :rfc:`5322` email message policy, we also have a policy that manages
+HTTP headers in a fashion compliant with :rfc:`2616`.  Individual policy
+controls, such as the maximum line length produced by the generator, can also
+be controlled individually to meet specialized application requirements.
+
+
+The Model
+---------
+
+The message model is implemented by the :class:`~email.message.Message` class.
+The model divides a message into the two fundamental parts discussed by the
+RFC: the header section and the body.  The `Message` object acts as a
+pseudo-dictionary of named headers.  Its dictionary interface provides
+convenient access to individual headers by name.  However, all headers are kept
+internally in an ordered list, so that the information about the order of the
+headers in the original message is preserved.
+
+The `Message` object also has a `payload` that holds the body.  A `payload` can
+be one of two things: data, or a list of `Message` objects.  The latter is used
+to represent a multipart MIME message.  Lists can be nested arbitrarily deeply
+in order to represent the message, with all terminal leaves having non-list
+data payloads.
+
+
+Message Lifecycle
+-----------------
+
+The general lifecycle of a message is:
+
+    Creation
+        A `Message` object can be created by a Parser, or it can be
+        instantiated as an empty message by an application.
+
+    Manipulation
+        The application may examine one or more headers, and/or the
+        payload, and it may modify one or more headers and/or
+        the payload.  This may be done on the top level `Message`
+        object, or on any sub-object.
+
+    Finalization
+        The Model is converted into a unicode or binary stream,
+        or the model is discarded.
+
+
+
+Header Policy Control During Lifecycle
+--------------------------------------
+
+One of the major controls exerted by the Policy is the management of headers
+during the `Message` lifecycle.  Most applications don't need to be aware of
+this.
+
+A header enters the model in one of two ways: via a Parser, or by being set to
+a specific value by an application program after the Model already exists.
+Similarly, a header exits the model in one of two ways: by being serialized by
+a Generator, or by being retrieved from a Model by an application program.  The
+Policy object provides hooks for all four of these pathways.
+
+The model storage for headers is a list of (name, value) tuples.
+
+The Parser identifies headers during parsing, and passes them to the
+:meth:`~email.policy.Policy.header_source_parse` method of the Policy.  The
+result of that method is the (name, value) tuple to be stored in the model.
+
+When an application program supplies a header value (for example, through the
+`Message` object `__setitem__` interface), the name and the value are passed to
+the :meth:`~email.policy.Policy.header_store_parse` method of the Policy, which
+returns the (name, value) tuple to be stored in the model.
+
+When an application program retrieves a header (through any of the dict or list
+interfaces of `Message`), the name and value are passed to the
+:meth:`~email.policy.Policy.header_fetch_parse` method of the Policy to
+obtain the value returned to the application.
+
+When a Generator requests a header during serialization, the name and value are
+passed to the :meth:`~email.policy.Policy.fold` method of the Policy, which
+returns a string containing line breaks in the appropriate places.  The
+:meth:`~email.policy.Policy.cte_type` Policy control determines whether or
+not Content Transfer Encoding is performed on the data in the header.  There is
+also a :meth:`~email.policy.Policy.binary_fold` method for use by generators
+that produce binary output, which returns the folded header as binary data,
+possibly folded at different places than the corresponding string would be.
+
+
+Handling Binary Data
+--------------------
+
+In an ideal world all message data would conform to the RFCs, meaning that the
+parser could decode the message into the idealized unicode message that the
+sender originally wrote.  In the real world, the email package must also be
+able to deal with badly formatted messages, including messages containing
+non-ASCII characters that either have no indicated character set or are not
+valid characters in the indicated character set.
+
+Since email messages are *primarily* text data, and operations on message data
+are primarily text operations (except for binary payloads of course), the model
+stores all text data as unicode strings.  Un-decodable binary inside text
+data is handled by using the `surrogateescape` error handler of the ASCII
+codec.  As with the binary filenames the error handler was introduced to
+handle, this allows the email package to "carry" the binary data received
+during parsing along until the output stage, at which time it is regenerated
+in its original form.
+
+This carried binary data is almost entirely an implementation detail.  The one
+place where it is visible in the API is in the "internal" API.  A Parser must
+do the `surrogateescape` encoding of binary input data, and pass that data to
+the appropriate Policy method.  The "internal" interface used by the Generator
+to access header values preserves the `surrogateescaped` bytes.  All other
+interfaces convert the binary data either back into bytes or into a safe form
+(losing information in some cases).
+
+
+Backward Compatibility
+----------------------
+
+The :class:`~email.policy.Policy.Compat32` Policy provides backward
+compatibility with version 5.1 of the email package.  It does this via the
+following implementation of the four+1 Policy methods described above:
+
+header_source_parse
+    Splits the first line on the colon to obtain the name, discards any spaces
+    after the colon, and joins the remainder of the line with all of the
+    remaining lines, preserving the linesep characters to obtain the value.
+    Trailing carriage return and/or linefeed characters are stripped from the
+    resulting value string.
+
+header_store_parse
+    Returns the name and value exactly as received from the application.
+
+header_fetch_parse
+    If the value contains any `surrogateescaped` binary data, return the value
+    as a :class:`~email.header.Header` object, using the character set
+    `unknown-8bit`.  Otherwise just returns the value.
+
+fold
+    Uses :class:`~email.header.Header`'s folding to fold headers in the
+    same way the email5.1 generator did.
+
+binary_fold
+    Same as fold, but encodes to 'ascii'.
+
+
+New Algorithm
+-------------
+
+header_source_parse
+    Same as legacy behavior.
+
+header_store_parse
+    Same as legacy behavior.
+
+header_fetch_parse
+    If the value is already a header object, returns it.  Otherwise, parses the
+    value using the new parser, and returns the resulting object as the value.
+    `surrogateescaped` bytes get turned into unicode unknown character code
+    points.
+
+fold
+    Uses the new header folding algorithm, respecting the policy settings.
+    surrogateescaped bytes are encoded using the ``unknown-8bit`` charset for
+    ``cte_type=7bit`` or ``8bit``.  Returns a string.
+
+    At some point there will also be a ``cte_type=unicode``, and for that
+    policy fold will serialize the idealized unicode message with RFC-like
+    folding, converting any surrogateescaped bytes into the unicode
+    unknown character glyph.
+
+binary_fold
+    Uses the new header folding algorithm, respecting the policy settings.
+    surrogateescaped bytes are encoded using the `unknown-8bit` charset for
+    ``cte_type=7bit``, and get turned back into bytes for ``cte_type=8bit``.
+    Returns bytes.
+
+    At some point there will also be a ``cte_type=unicode``, and for that
+    policy binary_fold will serialize the message according to :rfc:``5335``.
diff --git a/shared/package-files/f2/f2b5867f96ea63bff699c779c398136203245d578f94b2fca93ee587c900a67d/testcomplex_7.4_GLNX86.mat b/shared/package-files/f2/f2b5867f96ea63bff699c779c398136203245d578f94b2fca93ee587c900a67d/testcomplex_7.4_GLNX86.mat
new file mode 100644
index 0000000000000000000000000000000000000000..6a187edb1828256362617d3fe24d26cf58e7ca3b
Binary files /dev/null and b/shared/package-files/f2/f2b5867f96ea63bff699c779c398136203245d578f94b2fca93ee587c900a67d/testcomplex_7.4_GLNX86.mat differ
diff --git a/shared/package-files/f2/f2b631bdcbe6f6198fadb8444b51c796438000c16e973caceebc434bbd50ef14/bq300-pc-rv b/shared/package-files/f2/f2b631bdcbe6f6198fadb8444b51c796438000c16e973caceebc434bbd50ef14/bq300-pc-rv
new file mode 100644
index 0000000000000000000000000000000000000000..9842defe454b4fbfa8c6929304967cd55932c677
Binary files /dev/null and b/shared/package-files/f2/f2b631bdcbe6f6198fadb8444b51c796438000c16e973caceebc434bbd50ef14/bq300-pc-rv differ
diff --git a/shared/package-files/f2/f2be87876140e6a4f36329fccb88df686e3515731fa90c8ae9237cc757486da1/_helper.py b/shared/package-files/f2/f2be87876140e6a4f36329fccb88df686e3515731fa90c8ae9237cc757486da1/_helper.py
new file mode 100644
index 0000000000000000000000000000000000000000..7892543732906dcd86b4c1aa9c1f249af701c137
--- /dev/null
+++ b/shared/package-files/f2/f2be87876140e6a4f36329fccb88df686e3515731fa90c8ae9237cc757486da1/_helper.py
@@ -0,0 +1,115 @@
+import operator
+
+import numpy as np
+from numpy.fft import fftshift, ifftshift, fftfreq
+
+import scipy.fft._pocketfft.helper as _helper
+
+__all__ = ['fftshift', 'ifftshift', 'fftfreq', 'rfftfreq', 'next_fast_len']
+
+
+def rfftfreq(n, d=1.0):
+    """DFT sample frequencies (for usage with rfft, irfft).
+
+    The returned float array contains the frequency bins in
+    cycles/unit (with zero at the start) given a window length `n` and a
+    sample spacing `d`::
+
+      f = [0,1,1,2,2,...,n/2-1,n/2-1,n/2]/(d*n)   if n is even
+      f = [0,1,1,2,2,...,n/2-1,n/2-1,n/2,n/2]/(d*n)   if n is odd
+
+    Parameters
+    ----------
+    n : int
+        Window length.
+    d : scalar, optional
+        Sample spacing. Default is 1.
+
+    Returns
+    -------
+    out : ndarray
+        The array of length `n`, containing the sample frequencies.
+
+    Examples
+    --------
+    >>> import numpy as np
+    >>> from scipy import fftpack
+    >>> sig = np.array([-2, 8, 6, 4, 1, 0, 3, 5], dtype=float)
+    >>> sig_fft = fftpack.rfft(sig)
+    >>> n = sig_fft.size
+    >>> timestep = 0.1
+    >>> freq = fftpack.rfftfreq(n, d=timestep)
+    >>> freq
+    array([ 0.  ,  1.25,  1.25,  2.5 ,  2.5 ,  3.75,  3.75,  5.  ])
+
+    """
+    n = operator.index(n)
+    if n < 0:
+        raise ValueError(f"n = {n} is not valid. "
+                         "n must be a nonnegative integer.")
+
+    return (np.arange(1, n + 1, dtype=int) // 2) / float(n * d)
+
+
+def next_fast_len(target):
+    """
+    Find the next fast size of input data to `fft`, for zero-padding, etc.
+
+    SciPy's FFTPACK has efficient functions for radix {2, 3, 4, 5}, so this
+    returns the next composite of the prime factors 2, 3, and 5 which is
+    greater than or equal to `target`. (These are also known as 5-smooth
+    numbers, regular numbers, or Hamming numbers.)
+
+    Parameters
+    ----------
+    target : int
+        Length to start searching from. Must be a positive integer.
+
+    Returns
+    -------
+    out : int
+        The first 5-smooth number greater than or equal to `target`.
+
+    Notes
+    -----
+    .. versionadded:: 0.18.0
+
+    Examples
+    --------
+    On a particular machine, an FFT of prime length takes 133 ms:
+
+    >>> from scipy import fftpack
+    >>> import numpy as np
+    >>> rng = np.random.default_rng()
+    >>> min_len = 10007  # prime length is worst case for speed
+    >>> a = rng.standard_normal(min_len)
+    >>> b = fftpack.fft(a)
+
+    Zero-padding to the next 5-smooth length reduces computation time to
+    211 us, a speedup of 630 times:
+
+    >>> fftpack.next_fast_len(min_len)
+    10125
+    >>> b = fftpack.fft(a, 10125)
+
+    Rounding up to the next power of 2 is not optimal, taking 367 us to
+    compute, 1.7 times as long as the 5-smooth size:
+
+    >>> b = fftpack.fft(a, 16384)
+
+    """
+    # Real transforms use regular sizes so this is backwards compatible
+    return _helper.good_size(target, True)
+
+
+def _good_shape(x, shape, axes):
+    """Ensure that shape argument is valid for scipy.fftpack
+
+    scipy.fftpack does not support len(shape) < x.ndim when axes is not given.
+    """
+    if shape is not None and axes is None:
+        shape = _helper._iterable_of_int(shape, 'shape')
+        if len(shape) != np.ndim(x):
+            raise ValueError("when given, axes and shape arguments"
+                             " have to be of the same length")
+    return shape
diff --git a/shared/package-files/f2/f2c20eaebb4703b21872f21823794995682202823dfdcc56ac291075757df055/sym_constrain_range_for_size_ops.h b/shared/package-files/f2/f2c20eaebb4703b21872f21823794995682202823dfdcc56ac291075757df055/sym_constrain_range_for_size_ops.h
new file mode 100644
index 0000000000000000000000000000000000000000..9be6584303dc243d3b8be4ccc1acb654e587fae9
--- /dev/null
+++ b/shared/package-files/f2/f2c20eaebb4703b21872f21823794995682202823dfdcc56ac291075757df055/sym_constrain_range_for_size_ops.h
@@ -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 sym_constrain_range_for_size {
+  using schema = void (const at::Scalar &, 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::sym_constrain_range_for_size")
+  STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "")
+  STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "sym_constrain_range_for_size(Scalar size, *, int? min=None, int? max=None) -> ()")
+  static void call(const at::Scalar & size, c10::optional min, c10::optional max);
+  static void redispatch(c10::DispatchKeySet dispatchKeySet, const at::Scalar & size, c10::optional min, c10::optional max);
+};
+
+}} // namespace at::_ops
diff --git a/shared/package-files/f2/f2c579443c1591f815c914b0a17e813f17370d5bdcf808bcf18580a36843a7ec/test_support.py b/shared/package-files/f2/f2c579443c1591f815c914b0a17e813f17370d5bdcf808bcf18580a36843a7ec/test_support.py
new file mode 100644
index 0000000000000000000000000000000000000000..79290986c494d500af1a86d8ad57efbd1b7cbb2b
--- /dev/null
+++ b/shared/package-files/f2/f2c579443c1591f815c914b0a17e813f17370d5bdcf808bcf18580a36843a7ec/test_support.py
@@ -0,0 +1,713 @@
+import errno
+import importlib
+import io
+import os
+import shutil
+import socket
+import stat
+import subprocess
+import sys
+import tempfile
+import textwrap
+import time
+import unittest
+import warnings
+
+from test import support
+from test.support import import_helper
+from test.support import os_helper
+from test.support import script_helper
+from test.support import socket_helper
+from test.support import warnings_helper
+
+TESTFN = os_helper.TESTFN
+
+
+class TestSupport(unittest.TestCase):
+    @classmethod
+    def setUpClass(cls):
+        orig_filter_len = len(warnings.filters)
+        cls._warnings_helper_token = support.ignore_deprecations_from(
+            "test.support.warnings_helper", like=".*used in test_support.*"
+        )
+        cls._test_support_token = support.ignore_deprecations_from(
+            "test.test_support", like=".*You should NOT be seeing this.*"
+        )
+        assert len(warnings.filters) == orig_filter_len + 2
+
+    @classmethod
+    def tearDownClass(cls):
+        orig_filter_len = len(warnings.filters)
+        support.clear_ignored_deprecations(
+            cls._warnings_helper_token,
+            cls._test_support_token,
+        )
+        assert len(warnings.filters) == orig_filter_len - 2
+
+    def test_ignored_deprecations_are_silent(self):
+        """Test support.ignore_deprecations_from() silences warnings"""
+        with warnings.catch_warnings(record=True) as warning_objs:
+            warnings_helper._warn_about_deprecation()
+            warnings.warn("You should NOT be seeing this.", DeprecationWarning)
+            messages = [str(w.message) for w in warning_objs]
+        self.assertEqual(len(messages), 0, messages)
+
+    def test_import_module(self):
+        import_helper.import_module("ftplib")
+        self.assertRaises(unittest.SkipTest,
+                          import_helper.import_module, "foo")
+
+    def test_import_fresh_module(self):
+        import_helper.import_fresh_module("ftplib")
+
+    def test_get_attribute(self):
+        self.assertEqual(support.get_attribute(self, "test_get_attribute"),
+                        self.test_get_attribute)
+        self.assertRaises(unittest.SkipTest, support.get_attribute, self, "foo")
+
+    @unittest.skip("failing buildbots")
+    def test_get_original_stdout(self):
+        self.assertEqual(support.get_original_stdout(), sys.stdout)
+
+    def test_unload(self):
+        import sched
+        self.assertIn("sched", sys.modules)
+        import_helper.unload("sched")
+        self.assertNotIn("sched", sys.modules)
+
+    def test_unlink(self):
+        with open(TESTFN, "w", encoding="utf-8") as f:
+            pass
+        os_helper.unlink(TESTFN)
+        self.assertFalse(os.path.exists(TESTFN))
+        os_helper.unlink(TESTFN)
+
+    def test_rmtree(self):
+        dirpath = os_helper.TESTFN + 'd'
+        subdirpath = os.path.join(dirpath, 'subdir')
+        os.mkdir(dirpath)
+        os.mkdir(subdirpath)
+        os_helper.rmtree(dirpath)
+        self.assertFalse(os.path.exists(dirpath))
+        with support.swap_attr(support, 'verbose', 0):
+            os_helper.rmtree(dirpath)
+
+        os.mkdir(dirpath)
+        os.mkdir(subdirpath)
+        os.chmod(dirpath, stat.S_IRUSR|stat.S_IXUSR)
+        with support.swap_attr(support, 'verbose', 0):
+            os_helper.rmtree(dirpath)
+        self.assertFalse(os.path.exists(dirpath))
+
+        os.mkdir(dirpath)
+        os.mkdir(subdirpath)
+        os.chmod(dirpath, 0)
+        with support.swap_attr(support, 'verbose', 0):
+            os_helper.rmtree(dirpath)
+        self.assertFalse(os.path.exists(dirpath))
+
+    def test_forget(self):
+        mod_filename = TESTFN + '.py'
+        with open(mod_filename, 'w', encoding="utf-8") as f:
+            print('foo = 1', file=f)
+        sys.path.insert(0, os.curdir)
+        importlib.invalidate_caches()
+        try:
+            mod = __import__(TESTFN)
+            self.assertIn(TESTFN, sys.modules)
+
+            import_helper.forget(TESTFN)
+            self.assertNotIn(TESTFN, sys.modules)
+        finally:
+            del sys.path[0]
+            os_helper.unlink(mod_filename)
+            os_helper.rmtree('__pycache__')
+
+    def test_HOST(self):
+        s = socket.create_server((socket_helper.HOST, 0))
+        s.close()
+
+    def test_find_unused_port(self):
+        port = socket_helper.find_unused_port()
+        s = socket.create_server((socket_helper.HOST, port))
+        s.close()
+
+    def test_bind_port(self):
+        s = socket.socket()
+        socket_helper.bind_port(s)
+        s.listen()
+        s.close()
+
+    # Tests for temp_dir()
+
+    def test_temp_dir(self):
+        """Test that temp_dir() creates and destroys its directory."""
+        parent_dir = tempfile.mkdtemp()
+        parent_dir = os.path.realpath(parent_dir)
+
+        try:
+            path = os.path.join(parent_dir, 'temp')
+            self.assertFalse(os.path.isdir(path))
+            with os_helper.temp_dir(path) as temp_path:
+                self.assertEqual(temp_path, path)
+                self.assertTrue(os.path.isdir(path))
+            self.assertFalse(os.path.isdir(path))
+        finally:
+            os_helper.rmtree(parent_dir)
+
+    def test_temp_dir__path_none(self):
+        """Test passing no path."""
+        with os_helper.temp_dir() as temp_path:
+            self.assertTrue(os.path.isdir(temp_path))
+        self.assertFalse(os.path.isdir(temp_path))
+
+    def test_temp_dir__existing_dir__quiet_default(self):
+        """Test passing a directory that already exists."""
+        def call_temp_dir(path):
+            with os_helper.temp_dir(path) as temp_path:
+                raise Exception("should not get here")
+
+        path = tempfile.mkdtemp()
+        path = os.path.realpath(path)
+        try:
+            self.assertTrue(os.path.isdir(path))
+            self.assertRaises(FileExistsError, call_temp_dir, path)
+            # Make sure temp_dir did not delete the original directory.
+            self.assertTrue(os.path.isdir(path))
+        finally:
+            shutil.rmtree(path)
+
+    def test_temp_dir__existing_dir__quiet_true(self):
+        """Test passing a directory that already exists with quiet=True."""
+        path = tempfile.mkdtemp()
+        path = os.path.realpath(path)
+
+        try:
+            with warnings_helper.check_warnings() as recorder:
+                with os_helper.temp_dir(path, quiet=True) as temp_path:
+                    self.assertEqual(path, temp_path)
+                warnings = [str(w.message) for w in recorder.warnings]
+            # Make sure temp_dir did not delete the original directory.
+            self.assertTrue(os.path.isdir(path))
+        finally:
+            shutil.rmtree(path)
+
+        self.assertEqual(len(warnings), 1, warnings)
+        warn = warnings[0]
+        self.assertTrue(warn.startswith(f'tests may fail, unable to create '
+                                        f'temporary directory {path!r}: '),
+                        warn)
+
+    @unittest.skipUnless(hasattr(os, "fork"), "test requires os.fork")
+    def test_temp_dir__forked_child(self):
+        """Test that a forked child process does not remove the directory."""
+        # See bpo-30028 for details.
+        # Run the test as an external script, because it uses fork.
+        script_helper.assert_python_ok("-c", textwrap.dedent("""
+            import os
+            from test import support
+            from test.support import os_helper
+            with os_helper.temp_cwd() as temp_path:
+                pid = os.fork()
+                if pid != 0:
+                    # parent process
+
+                    # wait for the child to terminate
+                    support.wait_process(pid, exitcode=0)
+
+                    # Make sure that temp_path is still present. When the child
+                    # process leaves the 'temp_cwd'-context, the __exit__()-
+                    # method of the context must not remove the temporary
+                    # directory.
+                    if not os.path.isdir(temp_path):
+                        raise AssertionError("Child removed temp_path.")
+        """))
+
+    # Tests for change_cwd()
+
+    def test_change_cwd(self):
+        original_cwd = os.getcwd()
+
+        with os_helper.temp_dir() as temp_path:
+            with os_helper.change_cwd(temp_path) as new_cwd:
+                self.assertEqual(new_cwd, temp_path)
+                self.assertEqual(os.getcwd(), new_cwd)
+
+        self.assertEqual(os.getcwd(), original_cwd)
+
+    def test_change_cwd__non_existent_dir(self):
+        """Test passing a non-existent directory."""
+        original_cwd = os.getcwd()
+
+        def call_change_cwd(path):
+            with os_helper.change_cwd(path) as new_cwd:
+                raise Exception("should not get here")
+
+        with os_helper.temp_dir() as parent_dir:
+            non_existent_dir = os.path.join(parent_dir, 'does_not_exist')
+            self.assertRaises(FileNotFoundError, call_change_cwd,
+                              non_existent_dir)
+
+        self.assertEqual(os.getcwd(), original_cwd)
+
+    def test_change_cwd__non_existent_dir__quiet_true(self):
+        """Test passing a non-existent directory with quiet=True."""
+        original_cwd = os.getcwd()
+
+        with os_helper.temp_dir() as parent_dir:
+            bad_dir = os.path.join(parent_dir, 'does_not_exist')
+            with warnings_helper.check_warnings() as recorder:
+                with os_helper.change_cwd(bad_dir, quiet=True) as new_cwd:
+                    self.assertEqual(new_cwd, original_cwd)
+                    self.assertEqual(os.getcwd(), new_cwd)
+                warnings = [str(w.message) for w in recorder.warnings]
+
+        self.assertEqual(len(warnings), 1, warnings)
+        warn = warnings[0]
+        self.assertTrue(warn.startswith(f'tests may fail, unable to change '
+                                        f'the current working directory '
+                                        f'to {bad_dir!r}: '),
+                        warn)
+
+    # Tests for change_cwd()
+
+    def test_change_cwd__chdir_warning(self):
+        """Check the warning message when os.chdir() fails."""
+        path = TESTFN + '_does_not_exist'
+        with warnings_helper.check_warnings() as recorder:
+            with os_helper.change_cwd(path=path, quiet=True):
+                pass
+            messages = [str(w.message) for w in recorder.warnings]
+
+        self.assertEqual(len(messages), 1, messages)
+        msg = messages[0]
+        self.assertTrue(msg.startswith(f'tests may fail, unable to change '
+                                       f'the current working directory '
+                                       f'to {path!r}: '),
+                        msg)
+
+    # Tests for temp_cwd()
+
+    def test_temp_cwd(self):
+        here = os.getcwd()
+        with os_helper.temp_cwd(name=TESTFN):
+            self.assertEqual(os.path.basename(os.getcwd()), TESTFN)
+        self.assertFalse(os.path.exists(TESTFN))
+        self.assertEqual(os.getcwd(), here)
+
+
+    def test_temp_cwd__name_none(self):
+        """Test passing None to temp_cwd()."""
+        original_cwd = os.getcwd()
+        with os_helper.temp_cwd(name=None) as new_cwd:
+            self.assertNotEqual(new_cwd, original_cwd)
+            self.assertTrue(os.path.isdir(new_cwd))
+            self.assertEqual(os.getcwd(), new_cwd)
+        self.assertEqual(os.getcwd(), original_cwd)
+
+    def test_sortdict(self):
+        self.assertEqual(support.sortdict({3:3, 2:2, 1:1}), "{1: 1, 2: 2, 3: 3}")
+
+    def test_make_bad_fd(self):
+        fd = os_helper.make_bad_fd()
+        with self.assertRaises(OSError) as cm:
+            os.write(fd, b"foo")
+        self.assertEqual(cm.exception.errno, errno.EBADF)
+
+    def test_check_syntax_error(self):
+        support.check_syntax_error(self, "def class", lineno=1, offset=5)
+        with self.assertRaises(AssertionError):
+            support.check_syntax_error(self, "x=1")
+
+    def test_CleanImport(self):
+        import importlib
+        with import_helper.CleanImport("pprint"):
+            importlib.import_module("pprint")
+
+    def test_DirsOnSysPath(self):
+        with import_helper.DirsOnSysPath('foo', 'bar'):
+            self.assertIn("foo", sys.path)
+            self.assertIn("bar", sys.path)
+        self.assertNotIn("foo", sys.path)
+        self.assertNotIn("bar", sys.path)
+
+    def test_captured_stdout(self):
+        with support.captured_stdout() as stdout:
+            print("hello")
+        self.assertEqual(stdout.getvalue(), "hello\n")
+
+    def test_captured_stderr(self):
+        with support.captured_stderr() as stderr:
+            print("hello", file=sys.stderr)
+        self.assertEqual(stderr.getvalue(), "hello\n")
+
+    def test_captured_stdin(self):
+        with support.captured_stdin() as stdin:
+            stdin.write('hello\n')
+            stdin.seek(0)
+            # call test code that consumes from sys.stdin
+            captured = input()
+        self.assertEqual(captured, "hello")
+
+    def test_gc_collect(self):
+        support.gc_collect()
+
+    def test_python_is_optimized(self):
+        self.assertIsInstance(support.python_is_optimized(), bool)
+
+    def test_swap_attr(self):
+        class Obj:
+            pass
+        obj = Obj()
+        obj.x = 1
+        with support.swap_attr(obj, "x", 5) as x:
+            self.assertEqual(obj.x, 5)
+            self.assertEqual(x, 1)
+        self.assertEqual(obj.x, 1)
+        with support.swap_attr(obj, "y", 5) as y:
+            self.assertEqual(obj.y, 5)
+            self.assertIsNone(y)
+        self.assertFalse(hasattr(obj, 'y'))
+        with support.swap_attr(obj, "y", 5):
+            del obj.y
+        self.assertFalse(hasattr(obj, 'y'))
+
+    def test_swap_item(self):
+        D = {"x":1}
+        with support.swap_item(D, "x", 5) as x:
+            self.assertEqual(D["x"], 5)
+            self.assertEqual(x, 1)
+        self.assertEqual(D["x"], 1)
+        with support.swap_item(D, "y", 5) as y:
+            self.assertEqual(D["y"], 5)
+            self.assertIsNone(y)
+        self.assertNotIn("y", D)
+        with support.swap_item(D, "y", 5):
+            del D["y"]
+        self.assertNotIn("y", D)
+
+    class RefClass:
+        attribute1 = None
+        attribute2 = None
+        _hidden_attribute1 = None
+        __magic_1__ = None
+
+    class OtherClass:
+        attribute2 = None
+        attribute3 = None
+        __magic_1__ = None
+        __magic_2__ = None
+
+    def test_detect_api_mismatch(self):
+        missing_items = support.detect_api_mismatch(self.RefClass,
+                                                    self.OtherClass)
+        self.assertEqual({'attribute1'}, missing_items)
+
+        missing_items = support.detect_api_mismatch(self.OtherClass,
+                                                    self.RefClass)
+        self.assertEqual({'attribute3', '__magic_2__'}, missing_items)
+
+    def test_detect_api_mismatch__ignore(self):
+        ignore = ['attribute1', 'attribute3', '__magic_2__', 'not_in_either']
+
+        missing_items = support.detect_api_mismatch(
+                self.RefClass, self.OtherClass, ignore=ignore)
+        self.assertEqual(set(), missing_items)
+
+        missing_items = support.detect_api_mismatch(
+                self.OtherClass, self.RefClass, ignore=ignore)
+        self.assertEqual(set(), missing_items)
+
+    def test_check__all__(self):
+        extra = {'tempdir'}
+        not_exported = {'template'}
+        support.check__all__(self,
+                             tempfile,
+                             extra=extra,
+                             not_exported=not_exported)
+
+        extra = {'TextTestResult', 'installHandler'}
+        not_exported = {'load_tests', "TestProgram", "BaseTestSuite"}
+
+        support.check__all__(self,
+                             unittest,
+                             ("unittest.result", "unittest.case",
+                              "unittest.suite", "unittest.loader",
+                              "unittest.main", "unittest.runner",
+                              "unittest.signals", "unittest.async_case"),
+                             extra=extra,
+                             not_exported=not_exported)
+
+        self.assertRaises(AssertionError, support.check__all__, self, unittest)
+
+    @unittest.skipUnless(hasattr(os, 'waitpid') and hasattr(os, 'WNOHANG'),
+                         'need os.waitpid() and os.WNOHANG')
+    def test_reap_children(self):
+        # Make sure that there is no other pending child process
+        support.reap_children()
+
+        # Create a child process
+        pid = os.fork()
+        if pid == 0:
+            # child process: do nothing, just exit
+            os._exit(0)
+
+        t0 = time.monotonic()
+        deadline = time.monotonic() + support.SHORT_TIMEOUT
+
+        was_altered = support.environment_altered
+        try:
+            support.environment_altered = False
+            stderr = io.StringIO()
+
+            while True:
+                if time.monotonic() > deadline:
+                    self.fail("timeout")
+
+                old_stderr = sys.__stderr__
+                try:
+                    sys.__stderr__ = stderr
+                    support.reap_children()
+                finally:
+                    sys.__stderr__ = old_stderr
+
+                # Use environment_altered to check if reap_children() found
+                # the child process
+                if support.environment_altered:
+                    break
+
+                # loop until the child process completed
+                time.sleep(0.100)
+
+            msg = "Warning -- reap_children() reaped child process %s" % pid
+            self.assertIn(msg, stderr.getvalue())
+            self.assertTrue(support.environment_altered)
+        finally:
+            support.environment_altered = was_altered
+
+        # Just in case, check again that there is no other
+        # pending child process
+        support.reap_children()
+
+    def check_options(self, args, func, expected=None):
+        code = f'from test.support import {func}; print(repr({func}()))'
+        cmd = [sys.executable, *args, '-c', code]
+        env = {key: value for key, value in os.environ.items()
+               if not key.startswith('PYTHON')}
+        proc = subprocess.run(cmd,
+                              stdout=subprocess.PIPE,
+                              stderr=subprocess.DEVNULL,
+                              universal_newlines=True,
+                              env=env)
+        if expected is None:
+            expected = args
+        self.assertEqual(proc.stdout.rstrip(), repr(expected))
+        self.assertEqual(proc.returncode, 0)
+
+    def test_args_from_interpreter_flags(self):
+        # Test test.support.args_from_interpreter_flags()
+        for opts in (
+            # no option
+            [],
+            # single option
+            ['-B'],
+            ['-s'],
+            ['-S'],
+            ['-E'],
+            ['-v'],
+            ['-b'],
+            ['-q'],
+            ['-I'],
+            # same option multiple times
+            ['-bb'],
+            ['-vvv'],
+            # -W options
+            ['-Wignore'],
+            # -X options
+            ['-X', 'dev'],
+            ['-Wignore', '-X', 'dev'],
+            ['-X', 'faulthandler'],
+            ['-X', 'importtime'],
+            ['-X', 'showrefcount'],
+            ['-X', 'tracemalloc'],
+            ['-X', 'tracemalloc=3'],
+        ):
+            with self.subTest(opts=opts):
+                self.check_options(opts, 'args_from_interpreter_flags')
+
+        self.check_options(['-I', '-E', '-s'], 'args_from_interpreter_flags',
+                           ['-I'])
+
+    def test_optim_args_from_interpreter_flags(self):
+        # Test test.support.optim_args_from_interpreter_flags()
+        for opts in (
+            # no option
+            [],
+            ['-O'],
+            ['-OO'],
+            ['-OOOO'],
+        ):
+            with self.subTest(opts=opts):
+                self.check_options(opts, 'optim_args_from_interpreter_flags')
+
+    def test_match_test(self):
+        class Test:
+            def __init__(self, test_id):
+                self.test_id = test_id
+
+            def id(self):
+                return self.test_id
+
+        test_access = Test('test.test_os.FileTests.test_access')
+        test_chdir = Test('test.test_os.Win32ErrorTests.test_chdir')
+
+        # Test acceptance
+        with support.swap_attr(support, '_match_test_func', None):
+            # match all
+            support.set_match_tests([])
+            self.assertTrue(support.match_test(test_access))
+            self.assertTrue(support.match_test(test_chdir))
+
+            # match all using None
+            support.set_match_tests(None, None)
+            self.assertTrue(support.match_test(test_access))
+            self.assertTrue(support.match_test(test_chdir))
+
+            # match the full test identifier
+            support.set_match_tests([test_access.id()], None)
+            self.assertTrue(support.match_test(test_access))
+            self.assertFalse(support.match_test(test_chdir))
+
+            # match the module name
+            support.set_match_tests(['test_os'], None)
+            self.assertTrue(support.match_test(test_access))
+            self.assertTrue(support.match_test(test_chdir))
+
+            # Test '*' pattern
+            support.set_match_tests(['test_*'], None)
+            self.assertTrue(support.match_test(test_access))
+            self.assertTrue(support.match_test(test_chdir))
+
+            # Test case sensitivity
+            support.set_match_tests(['filetests'], None)
+            self.assertFalse(support.match_test(test_access))
+            support.set_match_tests(['FileTests'], None)
+            self.assertTrue(support.match_test(test_access))
+
+            # Test pattern containing '.' and a '*' metacharacter
+            support.set_match_tests(['*test_os.*.test_*'], None)
+            self.assertTrue(support.match_test(test_access))
+            self.assertTrue(support.match_test(test_chdir))
+
+            # Multiple patterns
+            support.set_match_tests([test_access.id(), test_chdir.id()], None)
+            self.assertTrue(support.match_test(test_access))
+            self.assertTrue(support.match_test(test_chdir))
+
+            support.set_match_tests(['test_access', 'DONTMATCH'], None)
+            self.assertTrue(support.match_test(test_access))
+            self.assertFalse(support.match_test(test_chdir))
+
+        # Test rejection
+        with support.swap_attr(support, '_match_test_func', None):
+            # match all
+            support.set_match_tests(ignore_patterns=[])
+            self.assertTrue(support.match_test(test_access))
+            self.assertTrue(support.match_test(test_chdir))
+
+            # match all using None
+            support.set_match_tests(None, None)
+            self.assertTrue(support.match_test(test_access))
+            self.assertTrue(support.match_test(test_chdir))
+
+            # match the full test identifier
+            support.set_match_tests(None, [test_access.id()])
+            self.assertFalse(support.match_test(test_access))
+            self.assertTrue(support.match_test(test_chdir))
+
+            # match the module name
+            support.set_match_tests(None, ['test_os'])
+            self.assertFalse(support.match_test(test_access))
+            self.assertFalse(support.match_test(test_chdir))
+
+            # Test '*' pattern
+            support.set_match_tests(None, ['test_*'])
+            self.assertFalse(support.match_test(test_access))
+            self.assertFalse(support.match_test(test_chdir))
+
+            # Test case sensitivity
+            support.set_match_tests(None, ['filetests'])
+            self.assertTrue(support.match_test(test_access))
+            support.set_match_tests(None, ['FileTests'])
+            self.assertFalse(support.match_test(test_access))
+
+            # Test pattern containing '.' and a '*' metacharacter
+            support.set_match_tests(None, ['*test_os.*.test_*'])
+            self.assertFalse(support.match_test(test_access))
+            self.assertFalse(support.match_test(test_chdir))
+
+            # Multiple patterns
+            support.set_match_tests(None, [test_access.id(), test_chdir.id()])
+            self.assertFalse(support.match_test(test_access))
+            self.assertFalse(support.match_test(test_chdir))
+
+            support.set_match_tests(None, ['test_access', 'DONTMATCH'])
+            self.assertFalse(support.match_test(test_access))
+            self.assertTrue(support.match_test(test_chdir))
+
+    def test_fd_count(self):
+        # We cannot test the absolute value of fd_count(): on old Linux
+        # kernel or glibc versions, os.urandom() keeps a FD open on
+        # /dev/urandom device and Python has 4 FD opens instead of 3.
+        start = os_helper.fd_count()
+        fd = os.open(__file__, os.O_RDONLY)
+        try:
+            more = os_helper.fd_count()
+        finally:
+            os.close(fd)
+        self.assertEqual(more - start, 1)
+
+    def check_print_warning(self, msg, expected):
+        stderr = io.StringIO()
+
+        old_stderr = sys.__stderr__
+        try:
+            sys.__stderr__ = stderr
+            support.print_warning(msg)
+        finally:
+            sys.__stderr__ = old_stderr
+
+        self.assertEqual(stderr.getvalue(), expected)
+
+    def test_print_warning(self):
+        self.check_print_warning("msg",
+                                 "Warning -- msg\n")
+        self.check_print_warning("a\nb",
+                                 'Warning -- a\nWarning -- b\n')
+
+    # XXX -follows a list of untested API
+    # make_legacy_pyc
+    # is_resource_enabled
+    # requires
+    # fcmp
+    # umaks
+    # findfile
+    # check_warnings
+    # EnvironmentVarGuard
+    # transient_internet
+    # run_with_locale
+    # set_memlimit
+    # bigmemtest
+    # precisionbigmemtest
+    # bigaddrspacetest
+    # requires_resource
+    # run_doctest
+    # threading_cleanup
+    # reap_threads
+    # can_symlink
+    # skip_unless_symlink
+    # SuppressCrashReport
+
+
+if __name__ == '__main__':
+    unittest.main()
diff --git a/shared/package-files/f2/f2c8fc0293306431da6e76a4b0be12f961d2d55fa4f9d8af53b0c63c958fec0c/lfw.rst b/shared/package-files/f2/f2c8fc0293306431da6e76a4b0be12f961d2d55fa4f9d8af53b0c63c958fec0c/lfw.rst
new file mode 100644
index 0000000000000000000000000000000000000000..bf1da3f4432e6d2bf30060e9847ce4247be90a88
--- /dev/null
+++ b/shared/package-files/f2/f2c8fc0293306431da6e76a4b0be12f961d2d55fa4f9d8af53b0c63c958fec0c/lfw.rst
@@ -0,0 +1,124 @@
+.. _labeled_faces_in_the_wild_dataset:
+
+The Labeled Faces in the Wild face recognition dataset
+------------------------------------------------------
+
+This dataset is a collection of JPEG pictures of famous people collected
+over the internet, and the details are available on the Kaggle website:
+
+https://www.kaggle.com/datasets/jessicali9530/lfw-dataset
+
+Each picture is centered on a single face. The typical task is called
+Face Verification: given a pair of two pictures, a binary classifier
+must predict whether the two images are from the same person.
+
+An alternative task, Face Recognition or Face Identification is:
+given the picture of the face of an unknown person, identify the name
+of the person by referring to a gallery of previously seen pictures of
+identified persons.
+
+Both Face Verification and Face Recognition are tasks that are typically
+performed on the output of a model trained to perform Face Detection. The
+most popular model for Face Detection is called Viola-Jones and is
+implemented in the OpenCV library. The LFW faces were extracted by this
+face detector from various online websites.
+
+**Data Set Characteristics:**
+
+=================   =======================
+Classes                                5749
+Samples total                         13233
+Dimensionality                         5828
+Features            real, between 0 and 255
+=================   =======================
+
+.. dropdown:: Usage
+
+  ``scikit-learn`` provides two loaders that will automatically download,
+  cache, parse the metadata files, decode the jpeg and convert the
+  interesting slices into memmapped numpy arrays. This dataset size is more
+  than 200 MB. The first load typically takes more than a couple of minutes
+  to fully decode the relevant part of the JPEG files into numpy arrays. If
+  the dataset has  been loaded once, the following times the loading times
+  less than 200ms by using a memmapped version memoized on the disk in the
+  ``~/scikit_learn_data/lfw_home/`` folder using ``joblib``.
+
+  The first loader is used for the Face Identification task: a multi-class
+  classification task (hence supervised learning)::
+
+    >>> from sklearn.datasets import fetch_lfw_people
+    >>> lfw_people = fetch_lfw_people(min_faces_per_person=70, resize=0.4)
+
+    >>> for name in lfw_people.target_names:
+    ...     print(name)
+    ...
+    Ariel Sharon
+    Colin Powell
+    Donald Rumsfeld
+    George W Bush
+    Gerhard Schroeder
+    Hugo Chavez
+    Tony Blair
+
+  The default slice is a rectangular shape around the face, removing
+  most of the background::
+
+    >>> lfw_people.data.dtype
+    dtype('float32')
+
+    >>> lfw_people.data.shape
+    (1288, 1850)
+
+    >>> lfw_people.images.shape
+    (1288, 50, 37)
+
+  Each of the ``1140`` faces is assigned to a single person id in the ``target``
+  array::
+
+    >>> lfw_people.target.shape
+    (1288,)
+
+    >>> list(lfw_people.target[:10])
+    [5, 6, 3, 1, 0, 1, 3, 4, 3, 0]
+
+  The second loader is typically used for the face verification task: each sample
+  is a pair of two picture belonging or not to the same person::
+
+    >>> from sklearn.datasets import fetch_lfw_pairs
+    >>> lfw_pairs_train = fetch_lfw_pairs(subset='train')
+
+    >>> list(lfw_pairs_train.target_names)
+    ['Different persons', 'Same person']
+
+    >>> lfw_pairs_train.pairs.shape
+    (2200, 2, 62, 47)
+
+    >>> lfw_pairs_train.data.shape
+    (2200, 5828)
+
+    >>> lfw_pairs_train.target.shape
+    (2200,)
+
+  Both for the :func:`sklearn.datasets.fetch_lfw_people` and
+  :func:`sklearn.datasets.fetch_lfw_pairs` function it is
+  possible to get an additional dimension with the RGB color channels by
+  passing ``color=True``, in that case the shape will be
+  ``(2200, 2, 62, 47, 3)``.
+
+  The :func:`sklearn.datasets.fetch_lfw_pairs` datasets is subdivided into
+  3 subsets: the development ``train`` set, the development ``test`` set and
+  an evaluation ``10_folds`` set meant to compute performance metrics using a
+  10-folds cross validation scheme.
+
+.. rubric:: References
+
+* `Labeled Faces in the Wild: A Database for Studying Face Recognition
+  in Unconstrained Environments.
+  `_
+  Gary B. Huang, Manu Ramesh, Tamara Berg, and Erik Learned-Miller.
+  University of Massachusetts, Amherst, Technical Report 07-49, October, 2007.
+
+
+.. rubric:: Examples
+
+* :ref:`sphx_glr_auto_examples_applications_plot_face_recognition.py`
diff --git a/shared/package-files/f2/f2cacf0e8c48ddf0a79a3dab75ee03c990ef4f603bda3be3c62c2d4cf705ba80/_sobol_engine_draw_ops.h b/shared/package-files/f2/f2cacf0e8c48ddf0a79a3dab75ee03c990ef4f603bda3be3c62c2d4cf705ba80/_sobol_engine_draw_ops.h
new file mode 100644
index 0000000000000000000000000000000000000000..cf852df3d33d500d764caed98957dc8d8d275bde
--- /dev/null
+++ b/shared/package-files/f2/f2cacf0e8c48ddf0a79a3dab75ee03c990ef4f603bda3be3c62c2d4cf705ba80/_sobol_engine_draw_ops.h
@@ -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 _sobol_engine_draw {
+  using schema = ::std::tuple (const at::Tensor &, int64_t, const at::Tensor &, int64_t, 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::_sobol_engine_draw")
+  STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "")
+  STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "_sobol_engine_draw(Tensor quasi, int n, Tensor sobolstate, int dimension, int num_generated, ScalarType? dtype) -> (Tensor, Tensor)")
+  static ::std::tuple call(const at::Tensor & quasi, int64_t n, const at::Tensor & sobolstate, int64_t dimension, int64_t num_generated, c10::optional dtype);
+  static ::std::tuple redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & quasi, int64_t n, const at::Tensor & sobolstate, int64_t dimension, int64_t num_generated, c10::optional dtype);
+};
+
+}} // namespace at::_ops
diff --git a/shared/package-files/f2/f2cb1183be5330dbc60b91539624ac6d3e1b9a0aabe8302034f4bf864b57aef0/expm1_meta_dispatch.h b/shared/package-files/f2/f2cb1183be5330dbc60b91539624ac6d3e1b9a0aabe8302034f4bf864b57aef0/expm1_meta_dispatch.h
new file mode 100644
index 0000000000000000000000000000000000000000..d4755b1a20f34e35b0efff99d5878c735fb4030f
--- /dev/null
+++ b/shared/package-files/f2/f2cb1183be5330dbc60b91539624ac6d3e1b9a0aabe8302034f4bf864b57aef0/expm1_meta_dispatch.h
@@ -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 expm1(const at::Tensor & self);
+TORCH_API at::Tensor & expm1_out(at::Tensor & out, const at::Tensor & self);
+TORCH_API at::Tensor & expm1_outf(const at::Tensor & self, at::Tensor & out);
+TORCH_API at::Tensor & expm1_(at::Tensor & self);
+
+} // namespace meta
+} // namespace at
diff --git a/shared/package-files/f2/f2ce8b2ece0f1b5bb29089d1d455b4f04cb7d8440ff38be0838ac37cf70b985e/device_set.h b/shared/package-files/f2/f2ce8b2ece0f1b5bb29089d1d455b4f04cb7d8440ff38be0838ac37cf70b985e/device_set.h
new file mode 100644
index 0000000000000000000000000000000000000000..c533dae3baad36a42e0f97f55b9eb7a747191dc3
--- /dev/null
+++ b/shared/package-files/f2/f2ce8b2ece0f1b5bb29089d1d455b4f04cb7d8440ff38be0838ac37cf70b985e/device_set.h
@@ -0,0 +1,11 @@
+#pragma once
+
+#include 
+#include 
+#include 
+
+namespace torch {
+
+using device_set = std::bitset;
+
+} // namespace torch
diff --git a/shared/package-files/f2/f2d81bc09fa2af4c22382b20205080bb8b83f1289e611acba0bcc47da7b96106/ruletest8.py b/shared/package-files/f2/f2d81bc09fa2af4c22382b20205080bb8b83f1289e611acba0bcc47da7b96106/ruletest8.py
new file mode 100644
index 0000000000000000000000000000000000000000..6809c47138e40027c700536e807ca7cfa5f468d7
--- /dev/null
+++ b/shared/package-files/f2/f2d81bc09fa2af4c22382b20205080bb8b83f1289e611acba0bcc47da7b96106/ruletest8.py
@@ -0,0 +1,49 @@
+import sympy.physics.mechanics as _me
+import sympy as _sm
+import math as m
+import numpy as _np
+
+frame_a = _me.ReferenceFrame('a')
+c1, c2, c3 = _sm.symbols('c1 c2 c3', real=True)
+a = _me.inertia(frame_a, 1, 1, 1)
+particle_p1 = _me.Particle('p1', _me.Point('p1_pt'), _sm.Symbol('m'))
+particle_p2 = _me.Particle('p2', _me.Point('p2_pt'), _sm.Symbol('m'))
+body_r_cm = _me.Point('r_cm')
+body_r_f = _me.ReferenceFrame('r_f')
+body_r = _me.RigidBody('r', body_r_cm, body_r_f, _sm.symbols('m'), (_me.outer(body_r_f.x,body_r_f.x),body_r_cm))
+frame_a.orient(body_r_f, 'DCM', _sm.Matrix([1,1,1,1,1,0,0,0,1]).reshape(3, 3))
+point_o = _me.Point('o')
+m1 = _sm.symbols('m1')
+particle_p1.mass = m1
+m2 = _sm.symbols('m2')
+particle_p2.mass = m2
+mr = _sm.symbols('mr')
+body_r.mass = mr
+i1 = _sm.symbols('i1')
+i2 = _sm.symbols('i2')
+i3 = _sm.symbols('i3')
+body_r.inertia = (_me.inertia(body_r_f, i1, i2, i3, 0, 0, 0), body_r_cm)
+point_o.set_pos(particle_p1.point, c1*frame_a.x)
+point_o.set_pos(particle_p2.point, c2*frame_a.y)
+point_o.set_pos(body_r_cm, c3*frame_a.z)
+a = _me.inertia_of_point_mass(particle_p1.mass, particle_p1.point.pos_from(point_o), frame_a)
+a = _me.inertia_of_point_mass(particle_p2.mass, particle_p2.point.pos_from(point_o), frame_a)
+a = body_r.inertia[0] + _me.inertia_of_point_mass(body_r.mass, body_r.masscenter.pos_from(point_o), frame_a)
+a = _me.inertia_of_point_mass(particle_p1.mass, particle_p1.point.pos_from(point_o), frame_a) + _me.inertia_of_point_mass(particle_p2.mass, particle_p2.point.pos_from(point_o), frame_a) + body_r.inertia[0] + _me.inertia_of_point_mass(body_r.mass, body_r.masscenter.pos_from(point_o), frame_a)
+a = _me.inertia_of_point_mass(particle_p1.mass, particle_p1.point.pos_from(point_o), frame_a) + body_r.inertia[0] + _me.inertia_of_point_mass(body_r.mass, body_r.masscenter.pos_from(point_o), frame_a)
+a = body_r.inertia[0] + _me.inertia_of_point_mass(body_r.mass, body_r.masscenter.pos_from(point_o), frame_a)
+a = body_r.inertia[0]
+particle_p2.point.set_pos(particle_p1.point, c1*frame_a.x+c2*frame_a.y)
+body_r_cm.set_pos(particle_p1.point, c3*frame_a.x)
+body_r_cm.set_pos(particle_p2.point, c3*frame_a.y)
+b = _me.functions.center_of_mass(point_o,particle_p1, particle_p2, body_r)
+b = _me.functions.center_of_mass(point_o,particle_p1, body_r)
+b = _me.functions.center_of_mass(particle_p1.point,particle_p1, particle_p2, body_r)
+u1, u2, u3 = _me.dynamicsymbols('u1 u2 u3')
+v = u1*frame_a.x+u2*frame_a.y+u3*frame_a.z
+u = (v+c1*frame_a.x).normalize()
+particle_p1.point.set_vel(frame_a, u1*frame_a.x)
+a = particle_p1.point.partial_velocity(frame_a, u1)
+m = particle_p1.mass+body_r.mass
+m = particle_p2.mass
+m = particle_p1.mass+particle_p2.mass+body_r.mass
diff --git a/shared/package-files/f2/f2d914b6ea316eee36599d8b58cac7036696fc8b81dccd08a9ef4567456b25b2/test_logit.py b/shared/package-files/f2/f2d914b6ea316eee36599d8b58cac7036696fc8b81dccd08a9ef4567456b25b2/test_logit.py
new file mode 100644
index 0000000000000000000000000000000000000000..050e8db5cb408c5c576c6cd292175d2df7c8f756
--- /dev/null
+++ b/shared/package-files/f2/f2d914b6ea316eee36599d8b58cac7036696fc8b81dccd08a9ef4567456b25b2/test_logit.py
@@ -0,0 +1,162 @@
+import numpy as np
+from numpy.testing import (assert_equal, assert_almost_equal,
+                           assert_allclose)
+from scipy.special import logit, expit, log_expit
+
+
+class TestLogit:
+
+    def check_logit_out(self, a, expected):
+        actual = logit(a)
+        assert_equal(actual.dtype, a.dtype)
+        rtol = 16*np.finfo(a.dtype).eps
+        assert_allclose(actual, expected, rtol=rtol)
+
+    def test_float32(self):
+        a = np.concatenate((np.linspace(0, 1, 10, dtype=np.float32),
+                            [np.float32(0.0001), np.float32(0.49999),
+                             np.float32(0.50001)]))
+        # Expected values computed with mpmath from float32 inputs, e.g.
+        #   from mpmath import mp
+        #   mp.dps = 200
+        #   a = np.float32(1/9)
+        #   print(np.float32(mp.log(a) - mp.log1p(-a)))
+        # prints `-2.0794415`.
+        expected = np.array([-np.inf, -2.0794415, -1.2527629, -6.9314712e-01,
+                             -2.2314353e-01,  2.2314365e-01,  6.9314724e-01,
+                             1.2527630, 2.0794415, np.inf,
+                             -9.2102404, -4.0054321e-05, 4.0054321e-05],
+                            dtype=np.float32)
+        self.check_logit_out(a, expected)
+
+    def test_float64(self):
+        a = np.concatenate((np.linspace(0, 1, 10, dtype=np.float64),
+                            [1e-8, 0.4999999999999, 0.50000000001]))
+        # Expected values computed with mpmath.
+        expected = np.array([-np.inf,
+                             -2.079441541679836,
+                             -1.252762968495368,
+                             -0.6931471805599454,
+                             -0.22314355131420985,
+                             0.22314355131420985,
+                             0.6931471805599452,
+                             1.2527629684953674,
+                             2.0794415416798353,
+                             np.inf,
+                             -18.420680733952366,
+                             -3.999023334699814e-13,
+                             4.000000330961484e-11])
+        self.check_logit_out(a, expected)
+
+    def test_nan(self):
+        expected = np.array([np.nan]*4)
+        with np.errstate(invalid='ignore'):
+            actual = logit(np.array([-3., -2., 2., 3.]))
+
+        assert_equal(expected, actual)
+
+
+class TestExpit:
+    def check_expit_out(self, dtype, expected):
+        a = np.linspace(-4, 4, 10)
+        a = np.array(a, dtype=dtype)
+        actual = expit(a)
+        assert_almost_equal(actual, expected)
+        assert_equal(actual.dtype, np.dtype(dtype))
+
+    def test_float32(self):
+        expected = np.array([0.01798621, 0.04265125,
+                            0.09777259, 0.20860852,
+                            0.39068246, 0.60931754,
+                            0.79139149, 0.9022274,
+                            0.95734876, 0.98201376], dtype=np.float32)
+        self.check_expit_out('f4', expected)
+
+    def test_float64(self):
+        expected = np.array([0.01798621, 0.04265125,
+                            0.0977726, 0.20860853,
+                            0.39068246, 0.60931754,
+                            0.79139147, 0.9022274,
+                            0.95734875, 0.98201379])
+        self.check_expit_out('f8', expected)
+
+    def test_large(self):
+        for dtype in (np.float32, np.float64, np.longdouble):
+            for n in (88, 89, 709, 710, 11356, 11357):
+                n = np.array(n, dtype=dtype)
+                assert_allclose(expit(n), 1.0, atol=1e-20)
+                assert_allclose(expit(-n), 0.0, atol=1e-20)
+                assert_equal(expit(n).dtype, dtype)
+                assert_equal(expit(-n).dtype, dtype)
+
+
+class TestLogExpit:
+
+    def test_large_negative(self):
+        x = np.array([-10000.0, -750.0, -500.0, -35.0])
+        y = log_expit(x)
+        assert_equal(y, x)
+
+    def test_large_positive(self):
+        x = np.array([750.0, 1000.0, 10000.0])
+        y = log_expit(x)
+        # y will contain -0.0, and -0.0 is used in the expected value,
+        # but assert_equal does not check the sign of zeros, and I don't
+        # think the sign is an essential part of the test (i.e. it would
+        # probably be OK if log_expit(1000) returned 0.0 instead of -0.0).
+        assert_equal(y, np.array([-0.0, -0.0, -0.0]))
+
+    def test_basic_float64(self):
+        x = np.array([-32, -20, -10, -3, -1, -0.1, -1e-9,
+                      0, 1e-9, 0.1, 1, 10, 100, 500, 710, 725, 735])
+        y = log_expit(x)
+        #
+        # Expected values were computed with mpmath:
+        #
+        #   import mpmath
+        #
+        #   mpmath.mp.dps = 100
+        #
+        #   def mp_log_expit(x):
+        #       return -mpmath.log1p(mpmath.exp(-x))
+        #
+        #   expected = [float(mp_log_expit(t)) for t in x]
+        #
+        expected = [-32.000000000000014, -20.000000002061153,
+                    -10.000045398899218, -3.048587351573742,
+                    -1.3132616875182228, -0.7443966600735709,
+                    -0.6931471810599453, -0.6931471805599453,
+                    -0.6931471800599454, -0.6443966600735709,
+                    -0.3132616875182228, -4.539889921686465e-05,
+                    -3.720075976020836e-44, -7.124576406741286e-218,
+                    -4.47628622567513e-309, -1.36930634e-315,
+                    -6.217e-320]
+
+        # When tested locally, only one value in y was not exactly equal to
+        # expected.  That was for x=1, and the y value differed from the
+        # expected by 1 ULP.  For this test, however, I'll use rtol=1e-15.
+        assert_allclose(y, expected, rtol=1e-15)
+
+    def test_basic_float32(self):
+        x = np.array([-32, -20, -10, -3, -1, -0.1, -1e-9,
+                      0, 1e-9, 0.1, 1, 10, 100], dtype=np.float32)
+        y = log_expit(x)
+        #
+        # Expected values were computed with mpmath:
+        #
+        #   import mpmath
+        #
+        #   mpmath.mp.dps = 100
+        #
+        #   def mp_log_expit(x):
+        #       return -mpmath.log1p(mpmath.exp(-x))
+        #
+        #   expected = [np.float32(mp_log_expit(t)) for t in x]
+        #
+        expected = np.array([-32.0, -20.0, -10.000046, -3.0485873,
+                             -1.3132616, -0.7443967, -0.6931472,
+                             -0.6931472, -0.6931472, -0.64439666,
+                             -0.3132617, -4.5398898e-05, -3.8e-44],
+                            dtype=np.float32)
+
+        assert_allclose(y, expected, rtol=5e-7)
diff --git a/shared/package-files/f2/f2ddaddaf3727eb3aaca88a55b740c5bf3605fdf25c8b40e5367e184a1ba2a17/reduce_on_plateau_scheduler.h b/shared/package-files/f2/f2ddaddaf3727eb3aaca88a55b740c5bf3605fdf25c8b40e5367e184a1ba2a17/reduce_on_plateau_scheduler.h
new file mode 100644
index 0000000000000000000000000000000000000000..8214070104988d35d975cf39b2816e70de5985ec
--- /dev/null
+++ b/shared/package-files/f2/f2ddaddaf3727eb3aaca88a55b740c5bf3605fdf25c8b40e5367e184a1ba2a17/reduce_on_plateau_scheduler.h
@@ -0,0 +1,63 @@
+#pragma once
+
+#include 
+
+#include 
+
+#include 
+
+#include 
+
+#include 
+
+namespace torch {
+namespace optim {
+
+class TORCH_API ReduceLROnPlateauScheduler {
+ public:
+  enum SchedulerMode { min, max };
+  enum ThresholdMode { rel, abs };
+  ReduceLROnPlateauScheduler(
+      Optimizer& optimizer,
+      SchedulerMode mode = min,
+      float factor = 0.1,
+      int patience = 10,
+      double threshold = 1e-4,
+      ThresholdMode threshold_mode = rel,
+      int cooldown = 0,
+      const std::vector& min_lr = std::vector(),
+      double eps = 1e-8,
+      bool verbose = false);
+
+  virtual ~ReduceLROnPlateauScheduler() = default;
+
+  void step(float metric);
+
+ private:
+  void reset();
+  void reduce_lr(int epoch);
+  bool in_cooldown();
+  bool is_better(float a);
+  void init_is_better(
+      SchedulerMode mode,
+      double threshold,
+      ThresholdMode threshold_mode);
+
+  Optimizer& optimizer;
+  SchedulerMode mode;
+  float mode_worse;
+  float factor;
+  int patience;
+  double threshold;
+  ThresholdMode threshold_mode;
+  int cooldown;
+  int cooldown_counter;
+  std::vector min_lrs;
+  double eps;
+  float best;
+  bool verbose;
+  int last_epoch;
+  int num_bad_epochs;
+};
+} // namespace optim
+} // namespace torch
diff --git a/shared/package-files/f2/f2e5ef5d4e7fd3ab62cef3861dcc0fd6103a6c6a3a32939056cbb2ffa475e88d/vecm_e6_jmulti_cos_inst_causality_r_dp.txt b/shared/package-files/f2/f2e5ef5d4e7fd3ab62cef3861dcc0fd6103a6c6a3a32939056cbb2ffa475e88d/vecm_e6_jmulti_cos_inst_causality_r_dp.txt
new file mode 100644
index 0000000000000000000000000000000000000000..c3e8ae168a80d1bfdc34ba7c6e375a3a08c0fee4
--- /dev/null
+++ b/shared/package-files/f2/f2e5ef5d4e7fd3ab62cef3861dcc0fd6103a6c6a3a32939056cbb2ffa475e88d/vecm_e6_jmulti_cos_inst_causality_r_dp.txt
@@ -0,0 +1,13 @@
+*** Fri, 26 Aug 2016 11:42:26 ***
+TEST FOR GRANGER-CAUSALITY:
+H0: "R" do not Granger-cause "Dp"
+
+Test statistic l = 4.2498
+pval-F( l; 3, 182) = 0.0063 
+
+TEST FOR INSTANTANEOUS CAUSALITY:
+H0: No instantaneous causality between "R" and "Dp"
+
+Test statistic: c = 0.6068
+pval-Chi( c; 1) = 0.4360 
+
diff --git a/shared/package-files/f2/f2e9e7927b94d9cb8f3542a114ed7763384fb1a3977b05624c2b16f1ff5cc374/kex_group16.pyi b/shared/package-files/f2/f2e9e7927b94d9cb8f3542a114ed7763384fb1a3977b05624c2b16f1ff5cc374/kex_group16.pyi
new file mode 100644
index 0000000000000000000000000000000000000000..b495410c9c7070a7ea9f5013236b78e21bc26df7
--- /dev/null
+++ b/shared/package-files/f2/f2e9e7927b94d9cb8f3542a114ed7763384fb1a3977b05624c2b16f1ff5cc374/kex_group16.pyi
@@ -0,0 +1,16 @@
+import sys
+from _typeshed import ReadableBuffer
+from typing import Callable
+
+from paramiko.kex_group1 import KexGroup1 as KexGroup1
+
+if sys.version_info < (3, 0):
+    from hashlib import _hash as _Hash
+else:
+    from hashlib import _Hash
+
+class KexGroup16SHA512(KexGroup1):
+    name: str
+    P: int
+    G: int
+    hash_algo: Callable[[ReadableBuffer], _Hash]
diff --git a/shared/package-files/f2/f2edd11fa07e96db34e0d006025b9b66200f67ebe016c1e011dd23ec173dec5b/frame.py b/shared/package-files/f2/f2edd11fa07e96db34e0d006025b9b66200f67ebe016c1e011dd23ec173dec5b/frame.py
new file mode 100644
index 0000000000000000000000000000000000000000..cc260770cbd78ffc0bf46d7d004cde56409df300
--- /dev/null
+++ b/shared/package-files/f2/f2edd11fa07e96db34e0d006025b9b66200f67ebe016c1e011dd23ec173dec5b/frame.py
@@ -0,0 +1,12724 @@
+"""
+DataFrame
+---------
+An efficient 2D container for potentially mixed-type time series or other
+labeled data series.
+
+Similar to its R counterpart, data.frame, except providing automatic data
+alignment and a host of useful data manipulation methods having to do with the
+labeling information
+"""
+from __future__ import annotations
+
+import collections
+from collections import abc
+from collections.abc import (
+    Hashable,
+    Iterable,
+    Iterator,
+    Mapping,
+    Sequence,
+)
+import functools
+from inspect import signature
+from io import StringIO
+import itertools
+import operator
+import sys
+from textwrap import dedent
+from typing import (
+    TYPE_CHECKING,
+    Any,
+    Callable,
+    Literal,
+    cast,
+    overload,
+)
+import warnings
+
+import numpy as np
+from numpy import ma
+
+from pandas._config import (
+    get_option,
+    using_copy_on_write,
+    warn_copy_on_write,
+)
+from pandas._config.config import _get_option
+
+from pandas._libs import (
+    algos as libalgos,
+    lib,
+    properties,
+)
+from pandas._libs.hashtable import duplicated
+from pandas._libs.lib import is_range_indexer
+from pandas.compat import PYPY
+from pandas.compat._constants import (
+    REF_COUNT,
+    WARNING_CHECK_DISABLED,
+)
+from pandas.compat._optional import import_optional_dependency
+from pandas.compat.numpy import function as nv
+from pandas.errors import (
+    ChainedAssignmentError,
+    InvalidIndexError,
+    _chained_assignment_method_msg,
+    _chained_assignment_msg,
+    _chained_assignment_warning_method_msg,
+    _chained_assignment_warning_msg,
+)
+from pandas.util._decorators import (
+    Appender,
+    Substitution,
+    deprecate_nonkeyword_arguments,
+    doc,
+)
+from pandas.util._exceptions import (
+    find_stack_level,
+    rewrite_warning,
+)
+from pandas.util._validators import (
+    validate_ascending,
+    validate_bool_kwarg,
+    validate_percentile,
+)
+
+from pandas.core.dtypes.cast import (
+    LossySetitemError,
+    can_hold_element,
+    construct_1d_arraylike_from_scalar,
+    construct_2d_arraylike_from_scalar,
+    find_common_type,
+    infer_dtype_from_scalar,
+    invalidate_string_dtypes,
+    maybe_box_native,
+    maybe_downcast_to_dtype,
+)
+from pandas.core.dtypes.common import (
+    infer_dtype_from_object,
+    is_1d_only_ea_dtype,
+    is_array_like,
+    is_bool_dtype,
+    is_dataclass,
+    is_dict_like,
+    is_float,
+    is_float_dtype,
+    is_hashable,
+    is_integer,
+    is_integer_dtype,
+    is_iterator,
+    is_list_like,
+    is_scalar,
+    is_sequence,
+    needs_i8_conversion,
+    pandas_dtype,
+)
+from pandas.core.dtypes.concat import concat_compat
+from pandas.core.dtypes.dtypes import (
+    ArrowDtype,
+    BaseMaskedDtype,
+    ExtensionDtype,
+)
+from pandas.core.dtypes.missing import (
+    isna,
+    notna,
+)
+
+from pandas.core import (
+    algorithms,
+    common as com,
+    nanops,
+    ops,
+    roperator,
+)
+from pandas.core.accessor import CachedAccessor
+from pandas.core.apply import reconstruct_and_relabel_result
+from pandas.core.array_algos.take import take_2d_multi
+from pandas.core.arraylike import OpsMixin
+from pandas.core.arrays import (
+    BaseMaskedArray,
+    DatetimeArray,
+    ExtensionArray,
+    PeriodArray,
+    TimedeltaArray,
+)
+from pandas.core.arrays.sparse import SparseFrameAccessor
+from pandas.core.arrays.string_ import StringDtype
+from pandas.core.construction import (
+    ensure_wrapped_if_datetimelike,
+    sanitize_array,
+    sanitize_masked_array,
+)
+from pandas.core.generic import (
+    NDFrame,
+    make_doc,
+)
+from pandas.core.indexers import check_key_length
+from pandas.core.indexes.api import (
+    DatetimeIndex,
+    Index,
+    PeriodIndex,
+    default_index,
+    ensure_index,
+    ensure_index_from_sequences,
+)
+from pandas.core.indexes.multi import (
+    MultiIndex,
+    maybe_droplevels,
+)
+from pandas.core.indexing import (
+    check_bool_indexer,
+    check_dict_or_set_indexers,
+)
+from pandas.core.internals import (
+    ArrayManager,
+    BlockManager,
+)
+from pandas.core.internals.construction import (
+    arrays_to_mgr,
+    dataclasses_to_dicts,
+    dict_to_mgr,
+    mgr_to_mgr,
+    ndarray_to_mgr,
+    nested_data_to_arrays,
+    rec_array_to_mgr,
+    reorder_arrays,
+    to_arrays,
+    treat_as_nested,
+)
+from pandas.core.methods import selectn
+from pandas.core.reshape.melt import melt
+from pandas.core.series import Series
+from pandas.core.shared_docs import _shared_docs
+from pandas.core.sorting import (
+    get_group_index,
+    lexsort_indexer,
+    nargsort,
+)
+
+from pandas.io.common import get_handle
+from pandas.io.formats import (
+    console,
+    format as fmt,
+)
+from pandas.io.formats.info import (
+    INFO_DOCSTRING,
+    DataFrameInfo,
+    frame_sub_kwargs,
+)
+import pandas.plotting
+
+if TYPE_CHECKING:
+    import datetime
+
+    from pandas._libs.internals import BlockValuesRefs
+    from pandas._typing import (
+        AggFuncType,
+        AnyAll,
+        AnyArrayLike,
+        ArrayLike,
+        Axes,
+        Axis,
+        AxisInt,
+        ColspaceArgType,
+        CompressionOptions,
+        CorrelationMethod,
+        DropKeep,
+        Dtype,
+        DtypeObj,
+        FilePath,
+        FloatFormatType,
+        FormattersType,
+        Frequency,
+        FromDictOrient,
+        IgnoreRaise,
+        IndexKeyFunc,
+        IndexLabel,
+        JoinValidate,
+        Level,
+        MergeHow,
+        MergeValidate,
+        MutableMappingT,
+        NaAction,
+        NaPosition,
+        NsmallestNlargestKeep,
+        PythonFuncType,
+        QuantileInterpolation,
+        ReadBuffer,
+        ReindexMethod,
+        Renamer,
+        Scalar,
+        Self,
+        SequenceNotStr,
+        SortKind,
+        StorageOptions,
+        Suffixes,
+        ToGbqIfexist,
+        ToStataByteorder,
+        ToTimestampHow,
+        UpdateJoin,
+        ValueKeyFunc,
+        WriteBuffer,
+        XMLParsers,
+        npt,
+    )
+
+    from pandas.core.groupby.generic import DataFrameGroupBy
+    from pandas.core.interchange.dataframe_protocol import DataFrame as DataFrameXchg
+    from pandas.core.internals import SingleDataManager
+
+    from pandas.io.formats.style import Styler
+
+# ---------------------------------------------------------------------
+# Docstring templates
+
+_shared_doc_kwargs = {
+    "axes": "index, columns",
+    "klass": "DataFrame",
+    "axes_single_arg": "{0 or 'index', 1 or 'columns'}",
+    "axis": """axis : {0 or 'index', 1 or 'columns'}, default 0
+        If 0 or 'index': apply function to each column.
+        If 1 or 'columns': apply function to each row.""",
+    "inplace": """
+    inplace : bool, default False
+        Whether to modify the DataFrame rather than creating a new one.""",
+    "optional_by": """
+by : str or list of str
+    Name or list of names to sort by.
+
+    - if `axis` is 0 or `'index'` then `by` may contain index
+      levels and/or column labels.
+    - if `axis` is 1 or `'columns'` then `by` may contain column
+      levels and/or index labels.""",
+    "optional_reindex": """
+labels : array-like, optional
+    New labels / index to conform the axis specified by 'axis' to.
+index : array-like, optional
+    New labels for the index. Preferably an Index object to avoid
+    duplicating data.
+columns : array-like, optional
+    New labels for the columns. Preferably an Index object to avoid
+    duplicating data.
+axis : int or str, optional
+    Axis to target. Can be either the axis name ('index', 'columns')
+    or number (0, 1).""",
+}
+
+_merge_doc = """
+Merge DataFrame or named Series objects with a database-style join.
+
+A named Series object is treated as a DataFrame with a single named column.
+
+The join is done on columns or indexes. If joining columns on
+columns, the DataFrame indexes *will be ignored*. Otherwise if joining indexes
+on indexes or indexes on a column or columns, the index will be passed on.
+When performing a cross merge, no column specifications to merge on are
+allowed.
+
+.. warning::
+
+    If both key columns contain rows where the key is a null value, those
+    rows will be matched against each other. This is different from usual SQL
+    join behaviour and can lead to unexpected results.
+
+Parameters
+----------%s
+right : DataFrame or named Series
+    Object to merge with.
+how : {'left', 'right', 'outer', 'inner', 'cross'}, default 'inner'
+    Type of merge to be performed.
+
+    * left: use only keys from left frame, similar to a SQL left outer join;
+      preserve key order.
+    * right: use only keys from right frame, similar to a SQL right outer join;
+      preserve key order.
+    * outer: use union of keys from both frames, similar to a SQL full outer
+      join; sort keys lexicographically.
+    * inner: use intersection of keys from both frames, similar to a SQL inner
+      join; preserve the order of the left keys.
+    * cross: creates the cartesian product from both frames, preserves the order
+      of the left keys.
+on : label or list
+    Column or index level names to join on. These must be found in both
+    DataFrames. If `on` is None and not merging on indexes then this defaults
+    to the intersection of the columns in both DataFrames.
+left_on : label or list, or array-like
+    Column or index level names to join on in the left DataFrame. Can also
+    be an array or list of arrays of the length of the left DataFrame.
+    These arrays are treated as if they are columns.
+right_on : label or list, or array-like
+    Column or index level names to join on in the right DataFrame. Can also
+    be an array or list of arrays of the length of the right DataFrame.
+    These arrays are treated as if they are columns.
+left_index : bool, default False
+    Use the index from the left DataFrame as the join key(s). If it is a
+    MultiIndex, the number of keys in the other DataFrame (either the index
+    or a number of columns) must match the number of levels.
+right_index : bool, default False
+    Use the index from the right DataFrame as the join key. Same caveats as
+    left_index.
+sort : bool, default False
+    Sort the join keys lexicographically in the result DataFrame. If False,
+    the order of the join keys depends on the join type (how keyword).
+suffixes : list-like, default is ("_x", "_y")
+    A length-2 sequence where each element is optionally a string
+    indicating the suffix to add to overlapping column names in
+    `left` and `right` respectively. Pass a value of `None` instead
+    of a string to indicate that the column name from `left` or
+    `right` should be left as-is, with no suffix. At least one of the
+    values must not be None.
+copy : bool, default True
+    If False, avoid copy if possible.
+
+    .. note::
+        The `copy` keyword will change behavior in pandas 3.0.
+        `Copy-on-Write
+        `__
+        will be enabled by default, which means that all methods with a
+        `copy` keyword will use a lazy copy mechanism to defer the copy and
+        ignore the `copy` keyword. The `copy` keyword will be removed in a
+        future version of pandas.
+
+        You can already get the future behavior and improvements through
+        enabling copy on write ``pd.options.mode.copy_on_write = True``
+indicator : bool or str, default False
+    If True, adds a column to the output DataFrame called "_merge" with
+    information on the source of each row. The column can be given a different
+    name by providing a string argument. The column will have a Categorical
+    type with the value of "left_only" for observations whose merge key only
+    appears in the left DataFrame, "right_only" for observations
+    whose merge key only appears in the right DataFrame, and "both"
+    if the observation's merge key is found in both DataFrames.
+
+validate : str, optional
+    If specified, checks if merge is of specified type.
+
+    * "one_to_one" or "1:1": check if merge keys are unique in both
+      left and right datasets.
+    * "one_to_many" or "1:m": check if merge keys are unique in left
+      dataset.
+    * "many_to_one" or "m:1": check if merge keys are unique in right
+      dataset.
+    * "many_to_many" or "m:m": allowed, but does not result in checks.
+
+Returns
+-------
+DataFrame
+    A DataFrame of the two merged objects.
+
+See Also
+--------
+merge_ordered : Merge with optional filling/interpolation.
+merge_asof : Merge on nearest keys.
+DataFrame.join : Similar method using indices.
+
+Examples
+--------
+>>> df1 = pd.DataFrame({'lkey': ['foo', 'bar', 'baz', 'foo'],
+...                     'value': [1, 2, 3, 5]})
+>>> df2 = pd.DataFrame({'rkey': ['foo', 'bar', 'baz', 'foo'],
+...                     'value': [5, 6, 7, 8]})
+>>> df1
+    lkey value
+0   foo      1
+1   bar      2
+2   baz      3
+3   foo      5
+>>> df2
+    rkey value
+0   foo      5
+1   bar      6
+2   baz      7
+3   foo      8
+
+Merge df1 and df2 on the lkey and rkey columns. The value columns have
+the default suffixes, _x and _y, appended.
+
+>>> df1.merge(df2, left_on='lkey', right_on='rkey')
+  lkey  value_x rkey  value_y
+0  foo        1  foo        5
+1  foo        1  foo        8
+2  bar        2  bar        6
+3  baz        3  baz        7
+4  foo        5  foo        5
+5  foo        5  foo        8
+
+Merge DataFrames df1 and df2 with specified left and right suffixes
+appended to any overlapping columns.
+
+>>> df1.merge(df2, left_on='lkey', right_on='rkey',
+...           suffixes=('_left', '_right'))
+  lkey  value_left rkey  value_right
+0  foo           1  foo            5
+1  foo           1  foo            8
+2  bar           2  bar            6
+3  baz           3  baz            7
+4  foo           5  foo            5
+5  foo           5  foo            8
+
+Merge DataFrames df1 and df2, but raise an exception if the DataFrames have
+any overlapping columns.
+
+>>> df1.merge(df2, left_on='lkey', right_on='rkey', suffixes=(False, False))
+Traceback (most recent call last):
+...
+ValueError: columns overlap but no suffix specified:
+    Index(['value'], dtype='object')
+
+>>> df1 = pd.DataFrame({'a': ['foo', 'bar'], 'b': [1, 2]})
+>>> df2 = pd.DataFrame({'a': ['foo', 'baz'], 'c': [3, 4]})
+>>> df1
+      a  b
+0   foo  1
+1   bar  2
+>>> df2
+      a  c
+0   foo  3
+1   baz  4
+
+>>> df1.merge(df2, how='inner', on='a')
+      a  b  c
+0   foo  1  3
+
+>>> df1.merge(df2, how='left', on='a')
+      a  b  c
+0   foo  1  3.0
+1   bar  2  NaN
+
+>>> df1 = pd.DataFrame({'left': ['foo', 'bar']})
+>>> df2 = pd.DataFrame({'right': [7, 8]})
+>>> df1
+    left
+0   foo
+1   bar
+>>> df2
+    right
+0   7
+1   8
+
+>>> df1.merge(df2, how='cross')
+   left  right
+0   foo      7
+1   foo      8
+2   bar      7
+3   bar      8
+"""
+
+
+# -----------------------------------------------------------------------
+# DataFrame class
+
+
+class DataFrame(NDFrame, OpsMixin):
+    """
+    Two-dimensional, size-mutable, potentially heterogeneous tabular data.
+
+    Data structure also contains labeled axes (rows and columns).
+    Arithmetic operations align on both row and column labels. Can be
+    thought of as a dict-like container for Series objects. The primary
+    pandas data structure.
+
+    Parameters
+    ----------
+    data : ndarray (structured or homogeneous), Iterable, dict, or DataFrame
+        Dict can contain Series, arrays, constants, dataclass or list-like objects. If
+        data is a dict, column order follows insertion-order. If a dict contains Series
+        which have an index defined, it is aligned by its index. This alignment also
+        occurs if data is a Series or a DataFrame itself. Alignment is done on
+        Series/DataFrame inputs.
+
+        If data is a list of dicts, column order follows insertion-order.
+
+    index : Index or array-like
+        Index to use for resulting frame. Will default to RangeIndex if
+        no indexing information part of input data and no index provided.
+    columns : Index or array-like
+        Column labels to use for resulting frame when data does not have them,
+        defaulting to RangeIndex(0, 1, 2, ..., n). If data contains column labels,
+        will perform column selection instead.
+    dtype : dtype, default None
+        Data type to force. Only a single dtype is allowed. If None, infer.
+    copy : bool or None, default None
+        Copy data from inputs.
+        For dict data, the default of None behaves like ``copy=True``.  For DataFrame
+        or 2d ndarray input, the default of None behaves like ``copy=False``.
+        If data is a dict containing one or more Series (possibly of different dtypes),
+        ``copy=False`` will ensure that these inputs are not copied.
+
+        .. versionchanged:: 1.3.0
+
+    See Also
+    --------
+    DataFrame.from_records : Constructor from tuples, also record arrays.
+    DataFrame.from_dict : From dicts of Series, arrays, or dicts.
+    read_csv : Read a comma-separated values (csv) file into DataFrame.
+    read_table : Read general delimited file into DataFrame.
+    read_clipboard : Read text from clipboard into DataFrame.
+
+    Notes
+    -----
+    Please reference the :ref:`User Guide ` for more information.
+
+    Examples
+    --------
+    Constructing DataFrame from a dictionary.
+
+    >>> d = {'col1': [1, 2], 'col2': [3, 4]}
+    >>> df = pd.DataFrame(data=d)
+    >>> df
+       col1  col2
+    0     1     3
+    1     2     4
+
+    Notice that the inferred dtype is int64.
+
+    >>> df.dtypes
+    col1    int64
+    col2    int64
+    dtype: object
+
+    To enforce a single dtype:
+
+    >>> df = pd.DataFrame(data=d, dtype=np.int8)
+    >>> df.dtypes
+    col1    int8
+    col2    int8
+    dtype: object
+
+    Constructing DataFrame from a dictionary including Series:
+
+    >>> d = {'col1': [0, 1, 2, 3], 'col2': pd.Series([2, 3], index=[2, 3])}
+    >>> pd.DataFrame(data=d, index=[0, 1, 2, 3])
+       col1  col2
+    0     0   NaN
+    1     1   NaN
+    2     2   2.0
+    3     3   3.0
+
+    Constructing DataFrame from numpy ndarray:
+
+    >>> df2 = pd.DataFrame(np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]]),
+    ...                    columns=['a', 'b', 'c'])
+    >>> df2
+       a  b  c
+    0  1  2  3
+    1  4  5  6
+    2  7  8  9
+
+    Constructing DataFrame from a numpy ndarray that has labeled columns:
+
+    >>> data = np.array([(1, 2, 3), (4, 5, 6), (7, 8, 9)],
+    ...                 dtype=[("a", "i4"), ("b", "i4"), ("c", "i4")])
+    >>> df3 = pd.DataFrame(data, columns=['c', 'a'])
+    ...
+    >>> df3
+       c  a
+    0  3  1
+    1  6  4
+    2  9  7
+
+    Constructing DataFrame from dataclass:
+
+    >>> from dataclasses import make_dataclass
+    >>> Point = make_dataclass("Point", [("x", int), ("y", int)])
+    >>> pd.DataFrame([Point(0, 0), Point(0, 3), Point(2, 3)])
+       x  y
+    0  0  0
+    1  0  3
+    2  2  3
+
+    Constructing DataFrame from Series/DataFrame:
+
+    >>> ser = pd.Series([1, 2, 3], index=["a", "b", "c"])
+    >>> df = pd.DataFrame(data=ser, index=["a", "c"])
+    >>> df
+       0
+    a  1
+    c  3
+
+    >>> df1 = pd.DataFrame([1, 2, 3], index=["a", "b", "c"], columns=["x"])
+    >>> df2 = pd.DataFrame(data=df1, index=["a", "c"])
+    >>> df2
+       x
+    a  1
+    c  3
+    """
+
+    _internal_names_set = {"columns", "index"} | NDFrame._internal_names_set
+    _typ = "dataframe"
+    _HANDLED_TYPES = (Series, Index, ExtensionArray, np.ndarray)
+    _accessors: set[str] = {"sparse"}
+    _hidden_attrs: frozenset[str] = NDFrame._hidden_attrs | frozenset([])
+    _mgr: BlockManager | ArrayManager
+
+    # similar to __array_priority__, positions DataFrame before Series, Index,
+    #  and ExtensionArray.  Should NOT be overridden by subclasses.
+    __pandas_priority__ = 4000
+
+    @property
+    def _constructor(self) -> Callable[..., DataFrame]:
+        return DataFrame
+
+    def _constructor_from_mgr(self, mgr, axes) -> DataFrame:
+        df = DataFrame._from_mgr(mgr, axes=axes)
+
+        if type(self) is DataFrame:
+            # This would also work `if self._constructor is DataFrame`, but
+            #  this check is slightly faster, benefiting the most-common case.
+            return df
+
+        elif type(self).__name__ == "GeoDataFrame":
+            # Shim until geopandas can override their _constructor_from_mgr
+            #  bc they have different behavior for Managers than for DataFrames
+            return self._constructor(mgr)
+
+        # We assume that the subclass __init__ knows how to handle a
+        #  pd.DataFrame object.
+        return self._constructor(df)
+
+    _constructor_sliced: Callable[..., Series] = Series
+
+    def _constructor_sliced_from_mgr(self, mgr, axes) -> Series:
+        ser = Series._from_mgr(mgr, axes)
+        ser._name = None  # caller is responsible for setting real name
+
+        if type(self) is DataFrame:
+            # This would also work `if self._constructor_sliced is Series`, but
+            #  this check is slightly faster, benefiting the most-common case.
+            return ser
+
+        # We assume that the subclass __init__ knows how to handle a
+        #  pd.Series object.
+        return self._constructor_sliced(ser)
+
+    # ----------------------------------------------------------------------
+    # Constructors
+
+    def __init__(
+        self,
+        data=None,
+        index: Axes | None = None,
+        columns: Axes | None = None,
+        dtype: Dtype | None = None,
+        copy: bool | None = None,
+    ) -> None:
+        allow_mgr = False
+        if dtype is not None:
+            dtype = self._validate_dtype(dtype)
+
+        if isinstance(data, DataFrame):
+            data = data._mgr
+            allow_mgr = True
+            if not copy:
+                # if not copying data, ensure to still return a shallow copy
+                # to avoid the result sharing the same Manager
+                data = data.copy(deep=False)
+
+        if isinstance(data, (BlockManager, ArrayManager)):
+            if not allow_mgr:
+                # GH#52419
+                warnings.warn(
+                    f"Passing a {type(data).__name__} to {type(self).__name__} "
+                    "is deprecated and will raise in a future version. "
+                    "Use public APIs instead.",
+                    DeprecationWarning,
+                    stacklevel=1,  # bump to 2 once pyarrow 15.0 is released with fix
+                )
+
+            if using_copy_on_write():
+                data = data.copy(deep=False)
+            # first check if a Manager is passed without any other arguments
+            # -> use fastpath (without checking Manager type)
+            if index is None and columns is None and dtype is None and not copy:
+                # GH#33357 fastpath
+                NDFrame.__init__(self, data)
+                return
+
+        manager = _get_option("mode.data_manager", silent=True)
+
+        is_pandas_object = isinstance(data, (Series, Index, ExtensionArray))
+        data_dtype = getattr(data, "dtype", None)
+        original_dtype = dtype
+
+        # GH47215
+        if isinstance(index, set):
+            raise ValueError("index cannot be a set")
+        if isinstance(columns, set):
+            raise ValueError("columns cannot be a set")
+
+        if copy is None:
+            if isinstance(data, dict):
+                # retain pre-GH#38939 default behavior
+                copy = True
+            elif (
+                manager == "array"
+                and isinstance(data, (np.ndarray, ExtensionArray))
+                and data.ndim == 2
+            ):
+                # INFO(ArrayManager) by default copy the 2D input array to get
+                # contiguous 1D arrays
+                copy = True
+            elif using_copy_on_write() and not isinstance(
+                data, (Index, DataFrame, Series)
+            ):
+                copy = True
+            else:
+                copy = False
+
+        if data is None:
+            index = index if index is not None else default_index(0)
+            columns = columns if columns is not None else default_index(0)
+            dtype = dtype if dtype is not None else pandas_dtype(object)
+            data = []
+
+        if isinstance(data, (BlockManager, ArrayManager)):
+            mgr = self._init_mgr(
+                data, axes={"index": index, "columns": columns}, dtype=dtype, copy=copy
+            )
+
+        elif isinstance(data, dict):
+            # GH#38939 de facto copy defaults to False only in non-dict cases
+            mgr = dict_to_mgr(data, index, columns, dtype=dtype, copy=copy, typ=manager)
+        elif isinstance(data, ma.MaskedArray):
+            from numpy.ma import mrecords
+
+            # masked recarray
+            if isinstance(data, mrecords.MaskedRecords):
+                raise TypeError(
+                    "MaskedRecords are not supported. Pass "
+                    "{name: data[name] for name in data.dtype.names} "
+                    "instead"
+                )
+
+            # a masked array
+            data = sanitize_masked_array(data)
+            mgr = ndarray_to_mgr(
+                data,
+                index,
+                columns,
+                dtype=dtype,
+                copy=copy,
+                typ=manager,
+            )
+
+        elif isinstance(data, (np.ndarray, Series, Index, ExtensionArray)):
+            if data.dtype.names:
+                # i.e. numpy structured array
+                data = cast(np.ndarray, data)
+                mgr = rec_array_to_mgr(
+                    data,
+                    index,
+                    columns,
+                    dtype,
+                    copy,
+                    typ=manager,
+                )
+            elif getattr(data, "name", None) is not None:
+                # i.e. Series/Index with non-None name
+                _copy = copy if using_copy_on_write() else True
+                mgr = dict_to_mgr(
+                    # error: Item "ndarray" of "Union[ndarray, Series, Index]" has no
+                    # attribute "name"
+                    {data.name: data},  # type: ignore[union-attr]
+                    index,
+                    columns,
+                    dtype=dtype,
+                    typ=manager,
+                    copy=_copy,
+                )
+            else:
+                mgr = ndarray_to_mgr(
+                    data,
+                    index,
+                    columns,
+                    dtype=dtype,
+                    copy=copy,
+                    typ=manager,
+                )
+
+        # For data is list-like, or Iterable (will consume into list)
+        elif is_list_like(data):
+            if not isinstance(data, abc.Sequence):
+                if hasattr(data, "__array__"):
+                    # GH#44616 big perf improvement for e.g. pytorch tensor
+                    data = np.asarray(data)
+                else:
+                    data = list(data)
+            if len(data) > 0:
+                if is_dataclass(data[0]):
+                    data = dataclasses_to_dicts(data)
+                if not isinstance(data, np.ndarray) and treat_as_nested(data):
+                    # exclude ndarray as we may have cast it a few lines above
+                    if columns is not None:
+                        columns = ensure_index(columns)
+                    arrays, columns, index = nested_data_to_arrays(
+                        # error: Argument 3 to "nested_data_to_arrays" has incompatible
+                        # type "Optional[Collection[Any]]"; expected "Optional[Index]"
+                        data,
+                        columns,
+                        index,  # type: ignore[arg-type]
+                        dtype,
+                    )
+                    mgr = arrays_to_mgr(
+                        arrays,
+                        columns,
+                        index,
+                        dtype=dtype,
+                        typ=manager,
+                    )
+                else:
+                    mgr = ndarray_to_mgr(
+                        data,
+                        index,
+                        columns,
+                        dtype=dtype,
+                        copy=copy,
+                        typ=manager,
+                    )
+            else:
+                mgr = dict_to_mgr(
+                    {},
+                    index,
+                    columns if columns is not None else default_index(0),
+                    dtype=dtype,
+                    typ=manager,
+                )
+        # For data is scalar
+        else:
+            if index is None or columns is None:
+                raise ValueError("DataFrame constructor not properly called!")
+
+            index = ensure_index(index)
+            columns = ensure_index(columns)
+
+            if not dtype:
+                dtype, _ = infer_dtype_from_scalar(data)
+
+            # For data is a scalar extension dtype
+            if isinstance(dtype, ExtensionDtype):
+                # TODO(EA2D): special case not needed with 2D EAs
+
+                values = [
+                    construct_1d_arraylike_from_scalar(data, len(index), dtype)
+                    for _ in range(len(columns))
+                ]
+                mgr = arrays_to_mgr(values, columns, index, dtype=None, typ=manager)
+            else:
+                arr2d = construct_2d_arraylike_from_scalar(
+                    data,
+                    len(index),
+                    len(columns),
+                    dtype,
+                    copy,
+                )
+
+                mgr = ndarray_to_mgr(
+                    arr2d,
+                    index,
+                    columns,
+                    dtype=arr2d.dtype,
+                    copy=False,
+                    typ=manager,
+                )
+
+        # ensure correct Manager type according to settings
+        mgr = mgr_to_mgr(mgr, typ=manager)
+
+        NDFrame.__init__(self, mgr)
+
+        if original_dtype is None and is_pandas_object and data_dtype == np.object_:
+            if self.dtypes.iloc[0] != data_dtype:
+                warnings.warn(
+                    "Dtype inference on a pandas object "
+                    "(Series, Index, ExtensionArray) is deprecated. The DataFrame "
+                    "constructor will keep the original dtype in the future. "
+                    "Call `infer_objects` on the result to get the old "
+                    "behavior.",
+                    FutureWarning,
+                    stacklevel=2,
+                )
+
+    # ----------------------------------------------------------------------
+
+    def __dataframe__(
+        self, nan_as_null: bool = False, allow_copy: bool = True
+    ) -> DataFrameXchg:
+        """
+        Return the dataframe interchange object implementing the interchange protocol.
+
+        Parameters
+        ----------
+        nan_as_null : bool, default False
+            `nan_as_null` is DEPRECATED and has no effect. Please avoid using
+            it; it will be removed in a future release.
+        allow_copy : bool, default True
+            Whether to allow memory copying when exporting. If set to False
+            it would cause non-zero-copy exports to fail.
+
+        Returns
+        -------
+        DataFrame interchange object
+            The object which consuming library can use to ingress the dataframe.
+
+        Notes
+        -----
+        Details on the interchange protocol:
+        https://data-apis.org/dataframe-protocol/latest/index.html
+
+        Examples
+        --------
+        >>> df_not_necessarily_pandas = pd.DataFrame({'A': [1, 2], 'B': [3, 4]})
+        >>> interchange_object = df_not_necessarily_pandas.__dataframe__()
+        >>> interchange_object.column_names()
+        Index(['A', 'B'], dtype='object')
+        >>> df_pandas = (pd.api.interchange.from_dataframe
+        ...              (interchange_object.select_columns_by_name(['A'])))
+        >>> df_pandas
+             A
+        0    1
+        1    2
+
+        These methods (``column_names``, ``select_columns_by_name``) should work
+        for any dataframe library which implements the interchange protocol.
+        """
+
+        from pandas.core.interchange.dataframe import PandasDataFrameXchg
+
+        return PandasDataFrameXchg(self, allow_copy=allow_copy)
+
+    def __dataframe_consortium_standard__(
+        self, *, api_version: str | None = None
+    ) -> Any:
+        """
+        Provide entry point to the Consortium DataFrame Standard API.
+
+        This is developed and maintained outside of pandas.
+        Please report any issues to https://github.com/data-apis/dataframe-api-compat.
+        """
+        dataframe_api_compat = import_optional_dependency("dataframe_api_compat")
+        convert_to_standard_compliant_dataframe = (
+            dataframe_api_compat.pandas_standard.convert_to_standard_compliant_dataframe
+        )
+        return convert_to_standard_compliant_dataframe(self, api_version=api_version)
+
+    def __arrow_c_stream__(self, requested_schema=None):
+        """
+        Export the pandas DataFrame as an Arrow C stream PyCapsule.
+
+        This relies on pyarrow to convert the pandas DataFrame to the Arrow
+        format (and follows the default behaviour of ``pyarrow.Table.from_pandas``
+        in its handling of the index, i.e. store the index as a column except
+        for RangeIndex).
+        This conversion is not necessarily zero-copy.
+
+        Parameters
+        ----------
+        requested_schema : PyCapsule, default None
+            The schema to which the dataframe should be casted, passed as a
+            PyCapsule containing a C ArrowSchema representation of the
+            requested schema.
+
+        Returns
+        -------
+        PyCapsule
+        """
+        pa = import_optional_dependency("pyarrow", min_version="14.0.0")
+        if requested_schema is not None:
+            requested_schema = pa.Schema._import_from_c_capsule(requested_schema)
+        table = pa.Table.from_pandas(self, schema=requested_schema)
+        return table.__arrow_c_stream__()
+
+    # ----------------------------------------------------------------------
+
+    @property
+    def axes(self) -> list[Index]:
+        """
+        Return a list representing the axes of the DataFrame.
+
+        It has the row axis labels and column axis labels as the only members.
+        They are returned in that order.
+
+        Examples
+        --------
+        >>> df = pd.DataFrame({'col1': [1, 2], 'col2': [3, 4]})
+        >>> df.axes
+        [RangeIndex(start=0, stop=2, step=1), Index(['col1', 'col2'],
+        dtype='object')]
+        """
+        return [self.index, self.columns]
+
+    @property
+    def shape(self) -> tuple[int, int]:
+        """
+        Return a tuple representing the dimensionality of the DataFrame.
+
+        See Also
+        --------
+        ndarray.shape : Tuple of array dimensions.
+
+        Examples
+        --------
+        >>> df = pd.DataFrame({'col1': [1, 2], 'col2': [3, 4]})
+        >>> df.shape
+        (2, 2)
+
+        >>> df = pd.DataFrame({'col1': [1, 2], 'col2': [3, 4],
+        ...                    'col3': [5, 6]})
+        >>> df.shape
+        (2, 3)
+        """
+        return len(self.index), len(self.columns)
+
+    @property
+    def _is_homogeneous_type(self) -> bool:
+        """
+        Whether all the columns in a DataFrame have the same type.
+
+        Returns
+        -------
+        bool
+
+        Examples
+        --------
+        >>> DataFrame({"A": [1, 2], "B": [3, 4]})._is_homogeneous_type
+        True
+        >>> DataFrame({"A": [1, 2], "B": [3.0, 4.0]})._is_homogeneous_type
+        False
+
+        Items with the same type but different sizes are considered
+        different types.
+
+        >>> DataFrame({
+        ...    "A": np.array([1, 2], dtype=np.int32),
+        ...    "B": np.array([1, 2], dtype=np.int64)})._is_homogeneous_type
+        False
+        """
+        # The "<" part of "<=" here is for empty DataFrame cases
+        return len({arr.dtype for arr in self._mgr.arrays}) <= 1
+
+    @property
+    def _can_fast_transpose(self) -> bool:
+        """
+        Can we transpose this DataFrame without creating any new array objects.
+        """
+        if isinstance(self._mgr, ArrayManager):
+            return False
+        blocks = self._mgr.blocks
+        if len(blocks) != 1:
+            return False
+
+        dtype = blocks[0].dtype
+        # TODO(EA2D) special case would be unnecessary with 2D EAs
+        return not is_1d_only_ea_dtype(dtype)
+
+    @property
+    def _values(self) -> np.ndarray | DatetimeArray | TimedeltaArray | PeriodArray:
+        """
+        Analogue to ._values that may return a 2D ExtensionArray.
+        """
+        mgr = self._mgr
+
+        if isinstance(mgr, ArrayManager):
+            if len(mgr.arrays) == 1 and not is_1d_only_ea_dtype(mgr.arrays[0].dtype):
+                # error: Item "ExtensionArray" of "Union[ndarray, ExtensionArray]"
+                # has no attribute "reshape"
+                return mgr.arrays[0].reshape(-1, 1)  # type: ignore[union-attr]
+            return ensure_wrapped_if_datetimelike(self.values)
+
+        blocks = mgr.blocks
+        if len(blocks) != 1:
+            return ensure_wrapped_if_datetimelike(self.values)
+
+        arr = blocks[0].values
+        if arr.ndim == 1:
+            # non-2D ExtensionArray
+            return self.values
+
+        # more generally, whatever we allow in NDArrayBackedExtensionBlock
+        arr = cast("np.ndarray | DatetimeArray | TimedeltaArray | PeriodArray", arr)
+        return arr.T
+
+    # ----------------------------------------------------------------------
+    # Rendering Methods
+
+    def _repr_fits_vertical_(self) -> bool:
+        """
+        Check length against max_rows.
+        """
+        max_rows = get_option("display.max_rows")
+        return len(self) <= max_rows
+
+    def _repr_fits_horizontal_(self) -> bool:
+        """
+        Check if full repr fits in horizontal boundaries imposed by the display
+        options width and max_columns.
+        """
+        width, height = console.get_console_size()
+        max_columns = get_option("display.max_columns")
+        nb_columns = len(self.columns)
+
+        # exceed max columns
+        if (max_columns and nb_columns > max_columns) or (
+            width and nb_columns > (width // 2)
+        ):
+            return False
+
+        # used by repr_html under IPython notebook or scripts ignore terminal
+        # dims
+        if width is None or not console.in_interactive_session():
+            return True
+
+        if get_option("display.width") is not None or console.in_ipython_frontend():
+            # check at least the column row for excessive width
+            max_rows = 1
+        else:
+            max_rows = get_option("display.max_rows")
+
+        # when auto-detecting, so width=None and not in ipython front end
+        # check whether repr fits horizontal by actually checking
+        # the width of the rendered repr
+        buf = StringIO()
+
+        # only care about the stuff we'll actually print out
+        # and to_string on entire frame may be expensive
+        d = self
+
+        if max_rows is not None:  # unlimited rows
+            # min of two, where one may be None
+            d = d.iloc[: min(max_rows, len(d))]
+        else:
+            return True
+
+        d.to_string(buf=buf)
+        value = buf.getvalue()
+        repr_width = max(len(line) for line in value.split("\n"))
+
+        return repr_width < width
+
+    def _info_repr(self) -> bool:
+        """
+        True if the repr should show the info view.
+        """
+        info_repr_option = get_option("display.large_repr") == "info"
+        return info_repr_option and not (
+            self._repr_fits_horizontal_() and self._repr_fits_vertical_()
+        )
+
+    def __repr__(self) -> str:
+        """
+        Return a string representation for a particular DataFrame.
+        """
+        if self._info_repr():
+            buf = StringIO()
+            self.info(buf=buf)
+            return buf.getvalue()
+
+        repr_params = fmt.get_dataframe_repr_params()
+        return self.to_string(**repr_params)
+
+    def _repr_html_(self) -> str | None:
+        """
+        Return a html representation for a particular DataFrame.
+
+        Mainly for IPython notebook.
+        """
+        if self._info_repr():
+            buf = StringIO()
+            self.info(buf=buf)
+            # need to escape the , should be the first line.
+            val = buf.getvalue().replace("<", r"<", 1)
+            val = val.replace(">", r">", 1)
+            return f"
{val}
" + + if get_option("display.notebook_repr_html"): + max_rows = get_option("display.max_rows") + min_rows = get_option("display.min_rows") + max_cols = get_option("display.max_columns") + show_dimensions = get_option("display.show_dimensions") + + formatter = fmt.DataFrameFormatter( + self, + columns=None, + col_space=None, + na_rep="NaN", + formatters=None, + float_format=None, + sparsify=None, + justify=None, + index_names=True, + header=True, + index=True, + bold_rows=True, + escape=True, + max_rows=max_rows, + min_rows=min_rows, + max_cols=max_cols, + show_dimensions=show_dimensions, + decimal=".", + ) + return fmt.DataFrameRenderer(formatter).to_html(notebook=True) + else: + return None + + @overload + def to_string( + self, + buf: None = ..., + columns: Axes | None = ..., + col_space: int | list[int] | dict[Hashable, int] | None = ..., + header: bool | SequenceNotStr[str] = ..., + index: bool = ..., + na_rep: str = ..., + formatters: fmt.FormattersType | None = ..., + float_format: fmt.FloatFormatType | None = ..., + sparsify: bool | None = ..., + index_names: bool = ..., + justify: str | None = ..., + max_rows: int | None = ..., + max_cols: int | None = ..., + show_dimensions: bool = ..., + decimal: str = ..., + line_width: int | None = ..., + min_rows: int | None = ..., + max_colwidth: int | None = ..., + encoding: str | None = ..., + ) -> str: + ... + + @overload + def to_string( + self, + buf: FilePath | WriteBuffer[str], + columns: Axes | None = ..., + col_space: int | list[int] | dict[Hashable, int] | None = ..., + header: bool | SequenceNotStr[str] = ..., + index: bool = ..., + na_rep: str = ..., + formatters: fmt.FormattersType | None = ..., + float_format: fmt.FloatFormatType | None = ..., + sparsify: bool | None = ..., + index_names: bool = ..., + justify: str | None = ..., + max_rows: int | None = ..., + max_cols: int | None = ..., + show_dimensions: bool = ..., + decimal: str = ..., + line_width: int | None = ..., + min_rows: int | None = ..., + max_colwidth: int | None = ..., + encoding: str | None = ..., + ) -> None: + ... + + @deprecate_nonkeyword_arguments( + version="3.0", allowed_args=["self", "buf"], name="to_string" + ) + @Substitution( + header_type="bool or list of str", + header="Write out the column names. If a list of columns " + "is given, it is assumed to be aliases for the " + "column names", + col_space_type="int, list or dict of int", + col_space="The minimum width of each column. If a list of ints is given " + "every integers corresponds with one column. If a dict is given, the key " + "references the column, while the value defines the space to use.", + ) + @Substitution(shared_params=fmt.common_docstring, returns=fmt.return_docstring) + def to_string( + self, + buf: FilePath | WriteBuffer[str] | None = None, + columns: Axes | None = None, + col_space: int | list[int] | dict[Hashable, int] | None = None, + header: bool | SequenceNotStr[str] = True, + index: bool = True, + na_rep: str = "NaN", + formatters: fmt.FormattersType | None = None, + float_format: fmt.FloatFormatType | None = None, + sparsify: bool | None = None, + index_names: bool = True, + justify: str | None = None, + max_rows: int | None = None, + max_cols: int | None = None, + show_dimensions: bool = False, + decimal: str = ".", + line_width: int | None = None, + min_rows: int | None = None, + max_colwidth: int | None = None, + encoding: str | None = None, + ) -> str | None: + """ + Render a DataFrame to a console-friendly tabular output. + %(shared_params)s + line_width : int, optional + Width to wrap a line in characters. + min_rows : int, optional + The number of rows to display in the console in a truncated repr + (when number of rows is above `max_rows`). + max_colwidth : int, optional + Max width to truncate each column in characters. By default, no limit. + encoding : str, default "utf-8" + Set character encoding. + %(returns)s + See Also + -------- + to_html : Convert DataFrame to HTML. + + Examples + -------- + >>> d = {'col1': [1, 2, 3], 'col2': [4, 5, 6]} + >>> df = pd.DataFrame(d) + >>> print(df.to_string()) + col1 col2 + 0 1 4 + 1 2 5 + 2 3 6 + """ + from pandas import option_context + + with option_context("display.max_colwidth", max_colwidth): + formatter = fmt.DataFrameFormatter( + self, + columns=columns, + col_space=col_space, + na_rep=na_rep, + formatters=formatters, + float_format=float_format, + sparsify=sparsify, + justify=justify, + index_names=index_names, + header=header, + index=index, + min_rows=min_rows, + max_rows=max_rows, + max_cols=max_cols, + show_dimensions=show_dimensions, + decimal=decimal, + ) + return fmt.DataFrameRenderer(formatter).to_string( + buf=buf, + encoding=encoding, + line_width=line_width, + ) + + def _get_values_for_csv( + self, + *, + float_format: FloatFormatType | None, + date_format: str | None, + decimal: str, + na_rep: str, + quoting, # int csv.QUOTE_FOO from stdlib + ) -> Self: + # helper used by to_csv + mgr = self._mgr.get_values_for_csv( + float_format=float_format, + date_format=date_format, + decimal=decimal, + na_rep=na_rep, + quoting=quoting, + ) + # error: Incompatible return value type (got "DataFrame", expected "Self") + return self._constructor_from_mgr(mgr, axes=mgr.axes) # type: ignore[return-value] + + # ---------------------------------------------------------------------- + + @property + def style(self) -> Styler: + """ + Returns a Styler object. + + Contains methods for building a styled HTML representation of the DataFrame. + + See Also + -------- + io.formats.style.Styler : Helps style a DataFrame or Series according to the + data with HTML and CSS. + + Examples + -------- + >>> df = pd.DataFrame({'A': [1, 2, 3]}) + >>> df.style # doctest: +SKIP + + Please see + `Table Visualization <../../user_guide/style.ipynb>`_ for more examples. + """ + # Raise AttributeError so that inspect works even if jinja2 is not installed. + has_jinja2 = import_optional_dependency("jinja2", errors="ignore") + if not has_jinja2: + raise AttributeError("The '.style' accessor requires jinja2") + + from pandas.io.formats.style import Styler + + return Styler(self) + + _shared_docs[ + "items" + ] = r""" + Iterate over (column name, Series) pairs. + + Iterates over the DataFrame columns, returning a tuple with + the column name and the content as a Series. + + Yields + ------ + label : object + The column names for the DataFrame being iterated over. + content : Series + The column entries belonging to each label, as a Series. + + See Also + -------- + DataFrame.iterrows : Iterate over DataFrame rows as + (index, Series) pairs. + DataFrame.itertuples : Iterate over DataFrame rows as namedtuples + of the values. + + Examples + -------- + >>> df = pd.DataFrame({'species': ['bear', 'bear', 'marsupial'], + ... 'population': [1864, 22000, 80000]}, + ... index=['panda', 'polar', 'koala']) + >>> df + species population + panda bear 1864 + polar bear 22000 + koala marsupial 80000 + >>> for label, content in df.items(): + ... print(f'label: {label}') + ... print(f'content: {content}', sep='\n') + ... + label: species + content: + panda bear + polar bear + koala marsupial + Name: species, dtype: object + label: population + content: + panda 1864 + polar 22000 + koala 80000 + Name: population, dtype: int64 + """ + + @Appender(_shared_docs["items"]) + def items(self) -> Iterable[tuple[Hashable, Series]]: + if self.columns.is_unique and hasattr(self, "_item_cache"): + for k in self.columns: + yield k, self._get_item_cache(k) + else: + for i, k in enumerate(self.columns): + yield k, self._ixs(i, axis=1) + + def iterrows(self) -> Iterable[tuple[Hashable, Series]]: + """ + Iterate over DataFrame rows as (index, Series) pairs. + + Yields + ------ + index : label or tuple of label + The index of the row. A tuple for a `MultiIndex`. + data : Series + The data of the row as a Series. + + See Also + -------- + DataFrame.itertuples : Iterate over DataFrame rows as namedtuples of the values. + DataFrame.items : Iterate over (column name, Series) pairs. + + Notes + ----- + 1. Because ``iterrows`` returns a Series for each row, + it does **not** preserve dtypes across the rows (dtypes are + preserved across columns for DataFrames). + + To preserve dtypes while iterating over the rows, it is better + to use :meth:`itertuples` which returns namedtuples of the values + and which is generally faster than ``iterrows``. + + 2. You should **never modify** something you are iterating over. + This is not guaranteed to work in all cases. Depending on the + data types, the iterator returns a copy and not a view, and writing + to it will have no effect. + + Examples + -------- + + >>> df = pd.DataFrame([[1, 1.5]], columns=['int', 'float']) + >>> row = next(df.iterrows())[1] + >>> row + int 1.0 + float 1.5 + Name: 0, dtype: float64 + >>> print(row['int'].dtype) + float64 + >>> print(df['int'].dtype) + int64 + """ + columns = self.columns + klass = self._constructor_sliced + using_cow = using_copy_on_write() + for k, v in zip(self.index, self.values): + s = klass(v, index=columns, name=k).__finalize__(self) + if using_cow and self._mgr.is_single_block: + s._mgr.add_references(self._mgr) # type: ignore[arg-type] + yield k, s + + def itertuples( + self, index: bool = True, name: str | None = "Pandas" + ) -> Iterable[tuple[Any, ...]]: + """ + Iterate over DataFrame rows as namedtuples. + + Parameters + ---------- + index : bool, default True + If True, return the index as the first element of the tuple. + name : str or None, default "Pandas" + The name of the returned namedtuples or None to return regular + tuples. + + Returns + ------- + iterator + An object to iterate over namedtuples for each row in the + DataFrame with the first field possibly being the index and + following fields being the column values. + + See Also + -------- + DataFrame.iterrows : Iterate over DataFrame rows as (index, Series) + pairs. + DataFrame.items : Iterate over (column name, Series) pairs. + + Notes + ----- + The column names will be renamed to positional names if they are + invalid Python identifiers, repeated, or start with an underscore. + + Examples + -------- + >>> df = pd.DataFrame({'num_legs': [4, 2], 'num_wings': [0, 2]}, + ... index=['dog', 'hawk']) + >>> df + num_legs num_wings + dog 4 0 + hawk 2 2 + >>> for row in df.itertuples(): + ... print(row) + ... + Pandas(Index='dog', num_legs=4, num_wings=0) + Pandas(Index='hawk', num_legs=2, num_wings=2) + + By setting the `index` parameter to False we can remove the index + as the first element of the tuple: + + >>> for row in df.itertuples(index=False): + ... print(row) + ... + Pandas(num_legs=4, num_wings=0) + Pandas(num_legs=2, num_wings=2) + + With the `name` parameter set we set a custom name for the yielded + namedtuples: + + >>> for row in df.itertuples(name='Animal'): + ... print(row) + ... + Animal(Index='dog', num_legs=4, num_wings=0) + Animal(Index='hawk', num_legs=2, num_wings=2) + """ + arrays = [] + fields = list(self.columns) + if index: + arrays.append(self.index) + fields.insert(0, "Index") + + # use integer indexing because of possible duplicate column names + arrays.extend(self.iloc[:, k] for k in range(len(self.columns))) + + if name is not None: + # https://github.com/python/mypy/issues/9046 + # error: namedtuple() expects a string literal as the first argument + itertuple = collections.namedtuple( # type: ignore[misc] + name, fields, rename=True + ) + return map(itertuple._make, zip(*arrays)) + + # fallback to regular tuples + return zip(*arrays) + + def __len__(self) -> int: + """ + Returns length of info axis, but here we use the index. + """ + return len(self.index) + + @overload + def dot(self, other: Series) -> Series: + ... + + @overload + def dot(self, other: DataFrame | Index | ArrayLike) -> DataFrame: + ... + + def dot(self, other: AnyArrayLike | DataFrame) -> DataFrame | Series: + """ + Compute the matrix multiplication between the DataFrame and other. + + This method computes the matrix product between the DataFrame and the + values of an other Series, DataFrame or a numpy array. + + It can also be called using ``self @ other``. + + Parameters + ---------- + other : Series, DataFrame or array-like + The other object to compute the matrix product with. + + Returns + ------- + Series or DataFrame + If other is a Series, return the matrix product between self and + other as a Series. If other is a DataFrame or a numpy.array, return + the matrix product of self and other in a DataFrame of a np.array. + + See Also + -------- + Series.dot: Similar method for Series. + + Notes + ----- + The dimensions of DataFrame and other must be compatible in order to + compute the matrix multiplication. In addition, the column names of + DataFrame and the index of other must contain the same values, as they + will be aligned prior to the multiplication. + + The dot method for Series computes the inner product, instead of the + matrix product here. + + Examples + -------- + Here we multiply a DataFrame with a Series. + + >>> df = pd.DataFrame([[0, 1, -2, -1], [1, 1, 1, 1]]) + >>> s = pd.Series([1, 1, 2, 1]) + >>> df.dot(s) + 0 -4 + 1 5 + dtype: int64 + + Here we multiply a DataFrame with another DataFrame. + + >>> other = pd.DataFrame([[0, 1], [1, 2], [-1, -1], [2, 0]]) + >>> df.dot(other) + 0 1 + 0 1 4 + 1 2 2 + + Note that the dot method give the same result as @ + + >>> df @ other + 0 1 + 0 1 4 + 1 2 2 + + The dot method works also if other is an np.array. + + >>> arr = np.array([[0, 1], [1, 2], [-1, -1], [2, 0]]) + >>> df.dot(arr) + 0 1 + 0 1 4 + 1 2 2 + + Note how shuffling of the objects does not change the result. + + >>> s2 = s.reindex([1, 0, 2, 3]) + >>> df.dot(s2) + 0 -4 + 1 5 + dtype: int64 + """ + if isinstance(other, (Series, DataFrame)): + common = self.columns.union(other.index) + if len(common) > len(self.columns) or len(common) > len(other.index): + raise ValueError("matrices are not aligned") + + left = self.reindex(columns=common, copy=False) + right = other.reindex(index=common, copy=False) + lvals = left.values + rvals = right._values + else: + left = self + lvals = self.values + rvals = np.asarray(other) + if lvals.shape[1] != rvals.shape[0]: + raise ValueError( + f"Dot product shape mismatch, {lvals.shape} vs {rvals.shape}" + ) + + if isinstance(other, DataFrame): + common_type = find_common_type(list(self.dtypes) + list(other.dtypes)) + return self._constructor( + np.dot(lvals, rvals), + index=left.index, + columns=other.columns, + copy=False, + dtype=common_type, + ) + elif isinstance(other, Series): + common_type = find_common_type(list(self.dtypes) + [other.dtypes]) + return self._constructor_sliced( + np.dot(lvals, rvals), index=left.index, copy=False, dtype=common_type + ) + elif isinstance(rvals, (np.ndarray, Index)): + result = np.dot(lvals, rvals) + if result.ndim == 2: + return self._constructor(result, index=left.index, copy=False) + else: + return self._constructor_sliced(result, index=left.index, copy=False) + else: # pragma: no cover + raise TypeError(f"unsupported type: {type(other)}") + + @overload + def __matmul__(self, other: Series) -> Series: + ... + + @overload + def __matmul__(self, other: AnyArrayLike | DataFrame) -> DataFrame | Series: + ... + + def __matmul__(self, other: AnyArrayLike | DataFrame) -> DataFrame | Series: + """ + Matrix multiplication using binary `@` operator. + """ + return self.dot(other) + + def __rmatmul__(self, other) -> DataFrame: + """ + Matrix multiplication using binary `@` operator. + """ + try: + return self.T.dot(np.transpose(other)).T + except ValueError as err: + if "shape mismatch" not in str(err): + raise + # GH#21581 give exception message for original shapes + msg = f"shapes {np.shape(other)} and {self.shape} not aligned" + raise ValueError(msg) from err + + # ---------------------------------------------------------------------- + # IO methods (to / from other formats) + + @classmethod + def from_dict( + cls, + data: dict, + orient: FromDictOrient = "columns", + dtype: Dtype | None = None, + columns: Axes | None = None, + ) -> DataFrame: + """ + Construct DataFrame from dict of array-like or dicts. + + Creates DataFrame object from dictionary by columns or by index + allowing dtype specification. + + Parameters + ---------- + data : dict + Of the form {field : array-like} or {field : dict}. + orient : {'columns', 'index', 'tight'}, default 'columns' + The "orientation" of the data. If the keys of the passed dict + should be the columns of the resulting DataFrame, pass 'columns' + (default). Otherwise if the keys should be rows, pass 'index'. + If 'tight', assume a dict with keys ['index', 'columns', 'data', + 'index_names', 'column_names']. + + .. versionadded:: 1.4.0 + 'tight' as an allowed value for the ``orient`` argument + + dtype : dtype, default None + Data type to force after DataFrame construction, otherwise infer. + columns : list, default None + Column labels to use when ``orient='index'``. Raises a ValueError + if used with ``orient='columns'`` or ``orient='tight'``. + + Returns + ------- + DataFrame + + See Also + -------- + DataFrame.from_records : DataFrame from structured ndarray, sequence + of tuples or dicts, or DataFrame. + DataFrame : DataFrame object creation using constructor. + DataFrame.to_dict : Convert the DataFrame to a dictionary. + + Examples + -------- + By default the keys of the dict become the DataFrame columns: + + >>> data = {'col_1': [3, 2, 1, 0], 'col_2': ['a', 'b', 'c', 'd']} + >>> pd.DataFrame.from_dict(data) + col_1 col_2 + 0 3 a + 1 2 b + 2 1 c + 3 0 d + + Specify ``orient='index'`` to create the DataFrame using dictionary + keys as rows: + + >>> data = {'row_1': [3, 2, 1, 0], 'row_2': ['a', 'b', 'c', 'd']} + >>> pd.DataFrame.from_dict(data, orient='index') + 0 1 2 3 + row_1 3 2 1 0 + row_2 a b c d + + When using the 'index' orientation, the column names can be + specified manually: + + >>> pd.DataFrame.from_dict(data, orient='index', + ... columns=['A', 'B', 'C', 'D']) + A B C D + row_1 3 2 1 0 + row_2 a b c d + + Specify ``orient='tight'`` to create the DataFrame using a 'tight' + format: + + >>> data = {'index': [('a', 'b'), ('a', 'c')], + ... 'columns': [('x', 1), ('y', 2)], + ... 'data': [[1, 3], [2, 4]], + ... 'index_names': ['n1', 'n2'], + ... 'column_names': ['z1', 'z2']} + >>> pd.DataFrame.from_dict(data, orient='tight') + z1 x y + z2 1 2 + n1 n2 + a b 1 3 + c 2 4 + """ + index = None + orient = orient.lower() # type: ignore[assignment] + if orient == "index": + if len(data) > 0: + # TODO speed up Series case + if isinstance(next(iter(data.values())), (Series, dict)): + data = _from_nested_dict(data) + else: + index = list(data.keys()) + # error: Incompatible types in assignment (expression has type + # "List[Any]", variable has type "Dict[Any, Any]") + data = list(data.values()) # type: ignore[assignment] + elif orient in ("columns", "tight"): + if columns is not None: + raise ValueError(f"cannot use columns parameter with orient='{orient}'") + else: # pragma: no cover + raise ValueError( + f"Expected 'index', 'columns' or 'tight' for orient parameter. " + f"Got '{orient}' instead" + ) + + if orient != "tight": + return cls(data, index=index, columns=columns, dtype=dtype) + else: + realdata = data["data"] + + def create_index(indexlist, namelist): + index: Index + if len(namelist) > 1: + index = MultiIndex.from_tuples(indexlist, names=namelist) + else: + index = Index(indexlist, name=namelist[0]) + return index + + index = create_index(data["index"], data["index_names"]) + columns = create_index(data["columns"], data["column_names"]) + return cls(realdata, index=index, columns=columns, dtype=dtype) + + def to_numpy( + self, + dtype: npt.DTypeLike | None = None, + copy: bool = False, + na_value: object = lib.no_default, + ) -> np.ndarray: + """ + Convert the DataFrame to a NumPy array. + + By default, the dtype of the returned array will be the common NumPy + dtype of all types in the DataFrame. For example, if the dtypes are + ``float16`` and ``float32``, the results dtype will be ``float32``. + This may require copying data and coercing values, which may be + expensive. + + Parameters + ---------- + dtype : str or numpy.dtype, optional + The dtype to pass to :meth:`numpy.asarray`. + copy : bool, default False + Whether to ensure that the returned value is not a view on + another array. Note that ``copy=False`` does not *ensure* that + ``to_numpy()`` is no-copy. Rather, ``copy=True`` ensure that + a copy is made, even if not strictly necessary. + na_value : Any, optional + The value to use for missing values. The default value depends + on `dtype` and the dtypes of the DataFrame columns. + + Returns + ------- + numpy.ndarray + + See Also + -------- + Series.to_numpy : Similar method for Series. + + Examples + -------- + >>> pd.DataFrame({"A": [1, 2], "B": [3, 4]}).to_numpy() + array([[1, 3], + [2, 4]]) + + With heterogeneous data, the lowest common type will have to + be used. + + >>> df = pd.DataFrame({"A": [1, 2], "B": [3.0, 4.5]}) + >>> df.to_numpy() + array([[1. , 3. ], + [2. , 4.5]]) + + For a mix of numeric and non-numeric types, the output array will + have object dtype. + + >>> df['C'] = pd.date_range('2000', periods=2) + >>> df.to_numpy() + array([[1, 3.0, Timestamp('2000-01-01 00:00:00')], + [2, 4.5, Timestamp('2000-01-02 00:00:00')]], dtype=object) + """ + if dtype is not None: + dtype = np.dtype(dtype) + result = self._mgr.as_array(dtype=dtype, copy=copy, na_value=na_value) + if result.dtype is not dtype: + result = np.asarray(result, dtype=dtype) + + return result + + def _create_data_for_split_and_tight_to_dict( + self, are_all_object_dtype_cols: bool, object_dtype_indices: list[int] + ) -> list: + """ + Simple helper method to create data for to ``to_dict(orient="split")`` and + ``to_dict(orient="tight")`` to create the main output data + """ + if are_all_object_dtype_cols: + data = [ + list(map(maybe_box_native, t)) + for t in self.itertuples(index=False, name=None) + ] + else: + data = [list(t) for t in self.itertuples(index=False, name=None)] + if object_dtype_indices: + # If we have object_dtype_cols, apply maybe_box_naive after list + # comprehension for perf + for row in data: + for i in object_dtype_indices: + row[i] = maybe_box_native(row[i]) + return data + + @overload + def to_dict( + self, + orient: Literal["dict", "list", "series", "split", "tight", "index"] = ..., + *, + into: type[MutableMappingT] | MutableMappingT, + index: bool = ..., + ) -> MutableMappingT: + ... + + @overload + def to_dict( + self, + orient: Literal["records"], + *, + into: type[MutableMappingT] | MutableMappingT, + index: bool = ..., + ) -> list[MutableMappingT]: + ... + + @overload + def to_dict( + self, + orient: Literal["dict", "list", "series", "split", "tight", "index"] = ..., + *, + into: type[dict] = ..., + index: bool = ..., + ) -> dict: + ... + + @overload + def to_dict( + self, + orient: Literal["records"], + *, + into: type[dict] = ..., + index: bool = ..., + ) -> list[dict]: + ... + + # error: Incompatible default for argument "into" (default has type "type + # [dict[Any, Any]]", argument has type "type[MutableMappingT] | MutableMappingT") + @deprecate_nonkeyword_arguments( + version="3.0", allowed_args=["self", "orient"], name="to_dict" + ) + def to_dict( + self, + orient: Literal[ + "dict", "list", "series", "split", "tight", "records", "index" + ] = "dict", + into: type[MutableMappingT] + | MutableMappingT = dict, # type: ignore[assignment] + index: bool = True, + ) -> MutableMappingT | list[MutableMappingT]: + """ + Convert the DataFrame to a dictionary. + + The type of the key-value pairs can be customized with the parameters + (see below). + + Parameters + ---------- + orient : str {'dict', 'list', 'series', 'split', 'tight', 'records', 'index'} + Determines the type of the values of the dictionary. + + - 'dict' (default) : dict like {column -> {index -> value}} + - 'list' : dict like {column -> [values]} + - 'series' : dict like {column -> Series(values)} + - 'split' : dict like + {'index' -> [index], 'columns' -> [columns], 'data' -> [values]} + - 'tight' : dict like + {'index' -> [index], 'columns' -> [columns], 'data' -> [values], + 'index_names' -> [index.names], 'column_names' -> [column.names]} + - 'records' : list like + [{column -> value}, ... , {column -> value}] + - 'index' : dict like {index -> {column -> value}} + + .. versionadded:: 1.4.0 + 'tight' as an allowed value for the ``orient`` argument + + into : class, default dict + The collections.abc.MutableMapping subclass used for all Mappings + in the return value. Can be the actual class or an empty + instance of the mapping type you want. If you want a + collections.defaultdict, you must pass it initialized. + + index : bool, default True + Whether to include the index item (and index_names item if `orient` + is 'tight') in the returned dictionary. Can only be ``False`` + when `orient` is 'split' or 'tight'. + + .. versionadded:: 2.0.0 + + Returns + ------- + dict, list or collections.abc.MutableMapping + Return a collections.abc.MutableMapping object representing the + DataFrame. The resulting transformation depends on the `orient` + parameter. + + See Also + -------- + DataFrame.from_dict: Create a DataFrame from a dictionary. + DataFrame.to_json: Convert a DataFrame to JSON format. + + Examples + -------- + >>> df = pd.DataFrame({'col1': [1, 2], + ... 'col2': [0.5, 0.75]}, + ... index=['row1', 'row2']) + >>> df + col1 col2 + row1 1 0.50 + row2 2 0.75 + >>> df.to_dict() + {'col1': {'row1': 1, 'row2': 2}, 'col2': {'row1': 0.5, 'row2': 0.75}} + + You can specify the return orientation. + + >>> df.to_dict('series') + {'col1': row1 1 + row2 2 + Name: col1, dtype: int64, + 'col2': row1 0.50 + row2 0.75 + Name: col2, dtype: float64} + + >>> df.to_dict('split') + {'index': ['row1', 'row2'], 'columns': ['col1', 'col2'], + 'data': [[1, 0.5], [2, 0.75]]} + + >>> df.to_dict('records') + [{'col1': 1, 'col2': 0.5}, {'col1': 2, 'col2': 0.75}] + + >>> df.to_dict('index') + {'row1': {'col1': 1, 'col2': 0.5}, 'row2': {'col1': 2, 'col2': 0.75}} + + >>> df.to_dict('tight') + {'index': ['row1', 'row2'], 'columns': ['col1', 'col2'], + 'data': [[1, 0.5], [2, 0.75]], 'index_names': [None], 'column_names': [None]} + + You can also specify the mapping type. + + >>> from collections import OrderedDict, defaultdict + >>> df.to_dict(into=OrderedDict) + OrderedDict([('col1', OrderedDict([('row1', 1), ('row2', 2)])), + ('col2', OrderedDict([('row1', 0.5), ('row2', 0.75)]))]) + + If you want a `defaultdict`, you need to initialize it: + + >>> dd = defaultdict(list) + >>> df.to_dict('records', into=dd) + [defaultdict(, {'col1': 1, 'col2': 0.5}), + defaultdict(, {'col1': 2, 'col2': 0.75})] + """ + from pandas.core.methods.to_dict import to_dict + + return to_dict(self, orient, into=into, index=index) + + @deprecate_nonkeyword_arguments( + version="3.0", allowed_args=["self", "destination_table"], name="to_gbq" + ) + def to_gbq( + self, + destination_table: str, + project_id: str | None = None, + chunksize: int | None = None, + reauth: bool = False, + if_exists: ToGbqIfexist = "fail", + auth_local_webserver: bool = True, + table_schema: list[dict[str, str]] | None = None, + location: str | None = None, + progress_bar: bool = True, + credentials=None, + ) -> None: + """ + Write a DataFrame to a Google BigQuery table. + + .. deprecated:: 2.2.0 + + Please use ``pandas_gbq.to_gbq`` instead. + + This function requires the `pandas-gbq package + `__. + + See the `How to authenticate with Google BigQuery + `__ + guide for authentication instructions. + + Parameters + ---------- + destination_table : str + Name of table to be written, in the form ``dataset.tablename``. + project_id : str, optional + Google BigQuery Account project ID. Optional when available from + the environment. + chunksize : int, optional + Number of rows to be inserted in each chunk from the dataframe. + Set to ``None`` to load the whole dataframe at once. + reauth : bool, default False + Force Google BigQuery to re-authenticate the user. This is useful + if multiple accounts are used. + if_exists : str, default 'fail' + Behavior when the destination table exists. Value can be one of: + + ``'fail'`` + If table exists raise pandas_gbq.gbq.TableCreationError. + ``'replace'`` + If table exists, drop it, recreate it, and insert data. + ``'append'`` + If table exists, insert data. Create if does not exist. + auth_local_webserver : bool, default True + Use the `local webserver flow`_ instead of the `console flow`_ + when getting user credentials. + + .. _local webserver flow: + https://google-auth-oauthlib.readthedocs.io/en/latest/reference/google_auth_oauthlib.flow.html#google_auth_oauthlib.flow.InstalledAppFlow.run_local_server + .. _console flow: + https://google-auth-oauthlib.readthedocs.io/en/latest/reference/google_auth_oauthlib.flow.html#google_auth_oauthlib.flow.InstalledAppFlow.run_console + + *New in version 0.2.0 of pandas-gbq*. + + .. versionchanged:: 1.5.0 + Default value is changed to ``True``. Google has deprecated the + ``auth_local_webserver = False`` `"out of band" (copy-paste) + flow + `_. + table_schema : list of dicts, optional + List of BigQuery table fields to which according DataFrame + columns conform to, e.g. ``[{'name': 'col1', 'type': + 'STRING'},...]``. If schema is not provided, it will be + generated according to dtypes of DataFrame columns. See + BigQuery API documentation on available names of a field. + + *New in version 0.3.1 of pandas-gbq*. + location : str, optional + Location where the load job should run. See the `BigQuery locations + documentation + `__ for a + list of available locations. The location must match that of the + target dataset. + + *New in version 0.5.0 of pandas-gbq*. + progress_bar : bool, default True + Use the library `tqdm` to show the progress bar for the upload, + chunk by chunk. + + *New in version 0.5.0 of pandas-gbq*. + credentials : google.auth.credentials.Credentials, optional + Credentials for accessing Google APIs. Use this parameter to + override default credentials, such as to use Compute Engine + :class:`google.auth.compute_engine.Credentials` or Service + Account :class:`google.oauth2.service_account.Credentials` + directly. + + *New in version 0.8.0 of pandas-gbq*. + + See Also + -------- + pandas_gbq.to_gbq : This function in the pandas-gbq library. + read_gbq : Read a DataFrame from Google BigQuery. + + Examples + -------- + Example taken from `Google BigQuery documentation + `_ + + >>> project_id = "my-project" + >>> table_id = 'my_dataset.my_table' + >>> df = pd.DataFrame({ + ... "my_string": ["a", "b", "c"], + ... "my_int64": [1, 2, 3], + ... "my_float64": [4.0, 5.0, 6.0], + ... "my_bool1": [True, False, True], + ... "my_bool2": [False, True, False], + ... "my_dates": pd.date_range("now", periods=3), + ... } + ... ) + + >>> df.to_gbq(table_id, project_id=project_id) # doctest: +SKIP + """ + from pandas.io import gbq + + gbq.to_gbq( + self, + destination_table, + project_id=project_id, + chunksize=chunksize, + reauth=reauth, + if_exists=if_exists, + auth_local_webserver=auth_local_webserver, + table_schema=table_schema, + location=location, + progress_bar=progress_bar, + credentials=credentials, + ) + + @classmethod + def from_records( + cls, + data, + index=None, + exclude=None, + columns=None, + coerce_float: bool = False, + nrows: int | None = None, + ) -> DataFrame: + """ + Convert structured or record ndarray to DataFrame. + + Creates a DataFrame object from a structured ndarray, sequence of + tuples or dicts, or DataFrame. + + Parameters + ---------- + data : structured ndarray, sequence of tuples or dicts, or DataFrame + Structured input data. + + .. deprecated:: 2.1.0 + Passing a DataFrame is deprecated. + index : str, list of fields, array-like + Field of array to use as the index, alternately a specific set of + input labels to use. + exclude : sequence, default None + Columns or fields to exclude. + columns : sequence, default None + Column names to use. If the passed data do not have names + associated with them, this argument provides names for the + columns. Otherwise this argument indicates the order of the columns + in the result (any names not found in the data will become all-NA + columns). + coerce_float : bool, default False + Attempt to convert values of non-string, non-numeric objects (like + decimal.Decimal) to floating point, useful for SQL result sets. + nrows : int, default None + Number of rows to read if data is an iterator. + + Returns + ------- + DataFrame + + See Also + -------- + DataFrame.from_dict : DataFrame from dict of array-like or dicts. + DataFrame : DataFrame object creation using constructor. + + Examples + -------- + Data can be provided as a structured ndarray: + + >>> data = np.array([(3, 'a'), (2, 'b'), (1, 'c'), (0, 'd')], + ... dtype=[('col_1', 'i4'), ('col_2', 'U1')]) + >>> pd.DataFrame.from_records(data) + col_1 col_2 + 0 3 a + 1 2 b + 2 1 c + 3 0 d + + Data can be provided as a list of dicts: + + >>> data = [{'col_1': 3, 'col_2': 'a'}, + ... {'col_1': 2, 'col_2': 'b'}, + ... {'col_1': 1, 'col_2': 'c'}, + ... {'col_1': 0, 'col_2': 'd'}] + >>> pd.DataFrame.from_records(data) + col_1 col_2 + 0 3 a + 1 2 b + 2 1 c + 3 0 d + + Data can be provided as a list of tuples with corresponding columns: + + >>> data = [(3, 'a'), (2, 'b'), (1, 'c'), (0, 'd')] + >>> pd.DataFrame.from_records(data, columns=['col_1', 'col_2']) + col_1 col_2 + 0 3 a + 1 2 b + 2 1 c + 3 0 d + """ + if isinstance(data, DataFrame): + warnings.warn( + "Passing a DataFrame to DataFrame.from_records is deprecated. Use " + "set_index and/or drop to modify the DataFrame instead.", + FutureWarning, + stacklevel=find_stack_level(), + ) + if columns is not None: + if is_scalar(columns): + columns = [columns] + data = data[columns] + if index is not None: + data = data.set_index(index) + if exclude is not None: + data = data.drop(columns=exclude) + return data.copy(deep=False) + + result_index = None + + # Make a copy of the input columns so we can modify it + if columns is not None: + columns = ensure_index(columns) + + def maybe_reorder( + arrays: list[ArrayLike], arr_columns: Index, columns: Index, index + ) -> tuple[list[ArrayLike], Index, Index | None]: + """ + If our desired 'columns' do not match the data's pre-existing 'arr_columns', + we re-order our arrays. This is like a pre-emptive (cheap) reindex. + """ + if len(arrays): + length = len(arrays[0]) + else: + length = 0 + + result_index = None + if len(arrays) == 0 and index is None and length == 0: + result_index = default_index(0) + + arrays, arr_columns = reorder_arrays(arrays, arr_columns, columns, length) + return arrays, arr_columns, result_index + + if is_iterator(data): + if nrows == 0: + return cls() + + try: + first_row = next(data) + except StopIteration: + return cls(index=index, columns=columns) + + dtype = None + if hasattr(first_row, "dtype") and first_row.dtype.names: + dtype = first_row.dtype + + values = [first_row] + + if nrows is None: + values += data + else: + values.extend(itertools.islice(data, nrows - 1)) + + if dtype is not None: + data = np.array(values, dtype=dtype) + else: + data = values + + if isinstance(data, dict): + if columns is None: + columns = arr_columns = ensure_index(sorted(data)) + arrays = [data[k] for k in columns] + else: + arrays = [] + arr_columns_list = [] + for k, v in data.items(): + if k in columns: + arr_columns_list.append(k) + arrays.append(v) + + arr_columns = Index(arr_columns_list) + arrays, arr_columns, result_index = maybe_reorder( + arrays, arr_columns, columns, index + ) + + elif isinstance(data, np.ndarray): + arrays, columns = to_arrays(data, columns) + arr_columns = columns + else: + arrays, arr_columns = to_arrays(data, columns) + if coerce_float: + for i, arr in enumerate(arrays): + if arr.dtype == object: + # error: Argument 1 to "maybe_convert_objects" has + # incompatible type "Union[ExtensionArray, ndarray]"; + # expected "ndarray" + arrays[i] = lib.maybe_convert_objects( + arr, # type: ignore[arg-type] + try_float=True, + ) + + arr_columns = ensure_index(arr_columns) + if columns is None: + columns = arr_columns + else: + arrays, arr_columns, result_index = maybe_reorder( + arrays, arr_columns, columns, index + ) + + if exclude is None: + exclude = set() + else: + exclude = set(exclude) + + if index is not None: + if isinstance(index, str) or not hasattr(index, "__iter__"): + i = columns.get_loc(index) + exclude.add(index) + if len(arrays) > 0: + result_index = Index(arrays[i], name=index) + else: + result_index = Index([], name=index) + else: + try: + index_data = [arrays[arr_columns.get_loc(field)] for field in index] + except (KeyError, TypeError): + # raised by get_loc, see GH#29258 + result_index = index + else: + result_index = ensure_index_from_sequences(index_data, names=index) + exclude.update(index) + + if any(exclude): + arr_exclude = [x for x in exclude if x in arr_columns] + to_remove = [arr_columns.get_loc(col) for col in arr_exclude] + arrays = [v for i, v in enumerate(arrays) if i not in to_remove] + + columns = columns.drop(exclude) + + manager = _get_option("mode.data_manager", silent=True) + mgr = arrays_to_mgr(arrays, columns, result_index, typ=manager) + df = DataFrame._from_mgr(mgr, axes=mgr.axes) + if cls is not DataFrame: + return cls(df, copy=False) + return df + + def to_records( + self, index: bool = True, column_dtypes=None, index_dtypes=None + ) -> np.rec.recarray: + """ + Convert DataFrame to a NumPy record array. + + Index will be included as the first field of the record array if + requested. + + Parameters + ---------- + index : bool, default True + Include index in resulting record array, stored in 'index' + field or using the index label, if set. + column_dtypes : str, type, dict, default None + If a string or type, the data type to store all columns. If + a dictionary, a mapping of column names and indices (zero-indexed) + to specific data types. + index_dtypes : str, type, dict, default None + If a string or type, the data type to store all index levels. If + a dictionary, a mapping of index level names and indices + (zero-indexed) to specific data types. + + This mapping is applied only if `index=True`. + + Returns + ------- + numpy.rec.recarray + NumPy ndarray with the DataFrame labels as fields and each row + of the DataFrame as entries. + + See Also + -------- + DataFrame.from_records: Convert structured or record ndarray + to DataFrame. + numpy.rec.recarray: An ndarray that allows field access using + attributes, analogous to typed columns in a + spreadsheet. + + Examples + -------- + >>> df = pd.DataFrame({'A': [1, 2], 'B': [0.5, 0.75]}, + ... index=['a', 'b']) + >>> df + A B + a 1 0.50 + b 2 0.75 + >>> df.to_records() + rec.array([('a', 1, 0.5 ), ('b', 2, 0.75)], + dtype=[('index', 'O'), ('A', '>> df.index = df.index.rename("I") + >>> df.to_records() + rec.array([('a', 1, 0.5 ), ('b', 2, 0.75)], + dtype=[('I', 'O'), ('A', '>> df.to_records(index=False) + rec.array([(1, 0.5 ), (2, 0.75)], + dtype=[('A', '>> df.to_records(column_dtypes={"A": "int32"}) + rec.array([('a', 1, 0.5 ), ('b', 2, 0.75)], + dtype=[('I', 'O'), ('A', '>> df.to_records(index_dtypes=">> index_dtypes = f">> df.to_records(index_dtypes=index_dtypes) + rec.array([(b'a', 1, 0.5 ), (b'b', 2, 0.75)], + dtype=[('I', 'S1'), ('A', ' Self: + """ + Create DataFrame from a list of arrays corresponding to the columns. + + Parameters + ---------- + arrays : list-like of arrays + Each array in the list corresponds to one column, in order. + columns : list-like, Index + The column names for the resulting DataFrame. + index : list-like, Index + The rows labels for the resulting DataFrame. + dtype : dtype, optional + Optional dtype to enforce for all arrays. + verify_integrity : bool, default True + Validate and homogenize all input. If set to False, it is assumed + that all elements of `arrays` are actual arrays how they will be + stored in a block (numpy ndarray or ExtensionArray), have the same + length as and are aligned with the index, and that `columns` and + `index` are ensured to be an Index object. + + Returns + ------- + DataFrame + """ + if dtype is not None: + dtype = pandas_dtype(dtype) + + manager = _get_option("mode.data_manager", silent=True) + columns = ensure_index(columns) + if len(columns) != len(arrays): + raise ValueError("len(columns) must match len(arrays)") + mgr = arrays_to_mgr( + arrays, + columns, + index, + dtype=dtype, + verify_integrity=verify_integrity, + typ=manager, + ) + return cls._from_mgr(mgr, axes=mgr.axes) + + @doc( + storage_options=_shared_docs["storage_options"], + compression_options=_shared_docs["compression_options"] % "path", + ) + def to_stata( + self, + path: FilePath | WriteBuffer[bytes], + *, + convert_dates: dict[Hashable, str] | None = None, + write_index: bool = True, + byteorder: ToStataByteorder | None = None, + time_stamp: datetime.datetime | None = None, + data_label: str | None = None, + variable_labels: dict[Hashable, str] | None = None, + version: int | None = 114, + convert_strl: Sequence[Hashable] | None = None, + compression: CompressionOptions = "infer", + storage_options: StorageOptions | None = None, + value_labels: dict[Hashable, dict[float, str]] | None = None, + ) -> None: + """ + Export DataFrame object to Stata dta format. + + Writes the DataFrame to a Stata dataset file. + "dta" files contain a Stata dataset. + + Parameters + ---------- + path : str, path object, or buffer + String, path object (implementing ``os.PathLike[str]``), or file-like + object implementing a binary ``write()`` function. + + convert_dates : dict + Dictionary mapping columns containing datetime types to stata + internal format to use when writing the dates. Options are 'tc', + 'td', 'tm', 'tw', 'th', 'tq', 'ty'. Column can be either an integer + or a name. Datetime columns that do not have a conversion type + specified will be converted to 'tc'. Raises NotImplementedError if + a datetime column has timezone information. + write_index : bool + Write the index to Stata dataset. + byteorder : str + Can be ">", "<", "little", or "big". default is `sys.byteorder`. + time_stamp : datetime + A datetime to use as file creation date. Default is the current + time. + data_label : str, optional + A label for the data set. Must be 80 characters or smaller. + variable_labels : dict + Dictionary containing columns as keys and variable labels as + values. Each label must be 80 characters or smaller. + version : {{114, 117, 118, 119, None}}, default 114 + Version to use in the output dta file. Set to None to let pandas + decide between 118 or 119 formats depending on the number of + columns in the frame. Version 114 can be read by Stata 10 and + later. Version 117 can be read by Stata 13 or later. Version 118 + is supported in Stata 14 and later. Version 119 is supported in + Stata 15 and later. Version 114 limits string variables to 244 + characters or fewer while versions 117 and later allow strings + with lengths up to 2,000,000 characters. Versions 118 and 119 + support Unicode characters, and version 119 supports more than + 32,767 variables. + + Version 119 should usually only be used when the number of + variables exceeds the capacity of dta format 118. Exporting + smaller datasets in format 119 may have unintended consequences, + and, as of November 2020, Stata SE cannot read version 119 files. + + convert_strl : list, optional + List of column names to convert to string columns to Stata StrL + format. Only available if version is 117. Storing strings in the + StrL format can produce smaller dta files if strings have more than + 8 characters and values are repeated. + {compression_options} + + .. versionchanged:: 1.4.0 Zstandard support. + + {storage_options} + + value_labels : dict of dicts + Dictionary containing columns as keys and dictionaries of column value + to labels as values. Labels for a single variable must be 32,000 + characters or smaller. + + .. versionadded:: 1.4.0 + + Raises + ------ + NotImplementedError + * If datetimes contain timezone information + * Column dtype is not representable in Stata + ValueError + * Columns listed in convert_dates are neither datetime64[ns] + or datetime.datetime + * Column listed in convert_dates is not in DataFrame + * Categorical label contains more than 32,000 characters + + See Also + -------- + read_stata : Import Stata data files. + io.stata.StataWriter : Low-level writer for Stata data files. + io.stata.StataWriter117 : Low-level writer for version 117 files. + + Examples + -------- + >>> df = pd.DataFrame({{'animal': ['falcon', 'parrot', 'falcon', + ... 'parrot'], + ... 'speed': [350, 18, 361, 15]}}) + >>> df.to_stata('animals.dta') # doctest: +SKIP + """ + if version not in (114, 117, 118, 119, None): + raise ValueError("Only formats 114, 117, 118 and 119 are supported.") + if version == 114: + if convert_strl is not None: + raise ValueError("strl is not supported in format 114") + from pandas.io.stata import StataWriter as statawriter + elif version == 117: + # Incompatible import of "statawriter" (imported name has type + # "Type[StataWriter117]", local name has type "Type[StataWriter]") + from pandas.io.stata import ( # type: ignore[assignment] + StataWriter117 as statawriter, + ) + else: # versions 118 and 119 + # Incompatible import of "statawriter" (imported name has type + # "Type[StataWriter117]", local name has type "Type[StataWriter]") + from pandas.io.stata import ( # type: ignore[assignment] + StataWriterUTF8 as statawriter, + ) + + kwargs: dict[str, Any] = {} + if version is None or version >= 117: + # strl conversion is only supported >= 117 + kwargs["convert_strl"] = convert_strl + if version is None or version >= 118: + # Specifying the version is only supported for UTF8 (118 or 119) + kwargs["version"] = version + + writer = statawriter( + path, + self, + convert_dates=convert_dates, + byteorder=byteorder, + time_stamp=time_stamp, + data_label=data_label, + write_index=write_index, + variable_labels=variable_labels, + compression=compression, + storage_options=storage_options, + value_labels=value_labels, + **kwargs, + ) + writer.write_file() + + def to_feather(self, path: FilePath | WriteBuffer[bytes], **kwargs) -> None: + """ + Write a DataFrame to the binary Feather format. + + Parameters + ---------- + path : str, path object, file-like object + String, path object (implementing ``os.PathLike[str]``), or file-like + object implementing a binary ``write()`` function. If a string or a path, + it will be used as Root Directory path when writing a partitioned dataset. + **kwargs : + Additional keywords passed to :func:`pyarrow.feather.write_feather`. + This includes the `compression`, `compression_level`, `chunksize` + and `version` keywords. + + Notes + ----- + This function writes the dataframe as a `feather file + `_. Requires a default + index. For saving the DataFrame with your custom index use a method that + supports custom indices e.g. `to_parquet`. + + Examples + -------- + >>> df = pd.DataFrame([[1, 2, 3], [4, 5, 6]]) + >>> df.to_feather("file.feather") # doctest: +SKIP + """ + from pandas.io.feather_format import to_feather + + to_feather(self, path, **kwargs) + + @deprecate_nonkeyword_arguments( + version="3.0", allowed_args=["self", "buf"], name="to_markdown" + ) + @doc( + Series.to_markdown, + klass=_shared_doc_kwargs["klass"], + storage_options=_shared_docs["storage_options"], + examples="""Examples + -------- + >>> df = pd.DataFrame( + ... data={"animal_1": ["elk", "pig"], "animal_2": ["dog", "quetzal"]} + ... ) + >>> print(df.to_markdown()) + | | animal_1 | animal_2 | + |---:|:-----------|:-----------| + | 0 | elk | dog | + | 1 | pig | quetzal | + + Output markdown with a tabulate option. + + >>> print(df.to_markdown(tablefmt="grid")) + +----+------------+------------+ + | | animal_1 | animal_2 | + +====+============+============+ + | 0 | elk | dog | + +----+------------+------------+ + | 1 | pig | quetzal | + +----+------------+------------+""", + ) + def to_markdown( + self, + buf: FilePath | WriteBuffer[str] | None = None, + mode: str = "wt", + index: bool = True, + storage_options: StorageOptions | None = None, + **kwargs, + ) -> str | None: + if "showindex" in kwargs: + raise ValueError("Pass 'index' instead of 'showindex") + + kwargs.setdefault("headers", "keys") + kwargs.setdefault("tablefmt", "pipe") + kwargs.setdefault("showindex", index) + tabulate = import_optional_dependency("tabulate") + result = tabulate.tabulate(self, **kwargs) + if buf is None: + return result + + with get_handle(buf, mode, storage_options=storage_options) as handles: + handles.handle.write(result) + return None + + @overload + def to_parquet( + self, + path: None = ..., + engine: Literal["auto", "pyarrow", "fastparquet"] = ..., + compression: str | None = ..., + index: bool | None = ..., + partition_cols: list[str] | None = ..., + storage_options: StorageOptions = ..., + **kwargs, + ) -> bytes: + ... + + @overload + def to_parquet( + self, + path: FilePath | WriteBuffer[bytes], + engine: Literal["auto", "pyarrow", "fastparquet"] = ..., + compression: str | None = ..., + index: bool | None = ..., + partition_cols: list[str] | None = ..., + storage_options: StorageOptions = ..., + **kwargs, + ) -> None: + ... + + @deprecate_nonkeyword_arguments( + version="3.0", allowed_args=["self", "path"], name="to_parquet" + ) + @doc(storage_options=_shared_docs["storage_options"]) + def to_parquet( + self, + path: FilePath | WriteBuffer[bytes] | None = None, + engine: Literal["auto", "pyarrow", "fastparquet"] = "auto", + compression: str | None = "snappy", + index: bool | None = None, + partition_cols: list[str] | None = None, + storage_options: StorageOptions | None = None, + **kwargs, + ) -> bytes | None: + """ + Write a DataFrame to the binary parquet format. + + This function writes the dataframe as a `parquet file + `_. You can choose different parquet + backends, and have the option of compression. See + :ref:`the user guide ` for more details. + + Parameters + ---------- + path : str, path object, file-like object, or None, default None + String, path object (implementing ``os.PathLike[str]``), or file-like + object implementing a binary ``write()`` function. If None, the result is + returned as bytes. If a string or path, it will be used as Root Directory + path when writing a partitioned dataset. + engine : {{'auto', 'pyarrow', 'fastparquet'}}, default 'auto' + Parquet library to use. If 'auto', then the option + ``io.parquet.engine`` is used. The default ``io.parquet.engine`` + behavior is to try 'pyarrow', falling back to 'fastparquet' if + 'pyarrow' is unavailable. + compression : str or None, default 'snappy' + Name of the compression to use. Use ``None`` for no compression. + Supported options: 'snappy', 'gzip', 'brotli', 'lz4', 'zstd'. + index : bool, default None + If ``True``, include the dataframe's index(es) in the file output. + If ``False``, they will not be written to the file. + If ``None``, similar to ``True`` the dataframe's index(es) + will be saved. However, instead of being saved as values, + the RangeIndex will be stored as a range in the metadata so it + doesn't require much space and is faster. Other indexes will + be included as columns in the file output. + partition_cols : list, optional, default None + Column names by which to partition the dataset. + Columns are partitioned in the order they are given. + Must be None if path is not a string. + {storage_options} + + **kwargs + Additional arguments passed to the parquet library. See + :ref:`pandas io ` for more details. + + Returns + ------- + bytes if no path argument is provided else None + + See Also + -------- + read_parquet : Read a parquet file. + DataFrame.to_orc : Write an orc file. + DataFrame.to_csv : Write a csv file. + DataFrame.to_sql : Write to a sql table. + DataFrame.to_hdf : Write to hdf. + + Notes + ----- + This function requires either the `fastparquet + `_ or `pyarrow + `_ library. + + Examples + -------- + >>> df = pd.DataFrame(data={{'col1': [1, 2], 'col2': [3, 4]}}) + >>> df.to_parquet('df.parquet.gzip', + ... compression='gzip') # doctest: +SKIP + >>> pd.read_parquet('df.parquet.gzip') # doctest: +SKIP + col1 col2 + 0 1 3 + 1 2 4 + + If you want to get a buffer to the parquet content you can use a io.BytesIO + object, as long as you don't use partition_cols, which creates multiple files. + + >>> import io + >>> f = io.BytesIO() + >>> df.to_parquet(f) + >>> f.seek(0) + 0 + >>> content = f.read() + """ + from pandas.io.parquet import to_parquet + + return to_parquet( + self, + path, + engine, + compression=compression, + index=index, + partition_cols=partition_cols, + storage_options=storage_options, + **kwargs, + ) + + def to_orc( + self, + path: FilePath | WriteBuffer[bytes] | None = None, + *, + engine: Literal["pyarrow"] = "pyarrow", + index: bool | None = None, + engine_kwargs: dict[str, Any] | None = None, + ) -> bytes | None: + """ + Write a DataFrame to the ORC format. + + .. versionadded:: 1.5.0 + + Parameters + ---------- + path : str, file-like object or None, default None + If a string, it will be used as Root Directory path + when writing a partitioned dataset. By file-like object, + we refer to objects with a write() method, such as a file handle + (e.g. via builtin open function). If path is None, + a bytes object is returned. + engine : {'pyarrow'}, default 'pyarrow' + ORC library to use. + index : bool, optional + If ``True``, include the dataframe's index(es) in the file output. + If ``False``, they will not be written to the file. + If ``None``, similar to ``infer`` the dataframe's index(es) + will be saved. However, instead of being saved as values, + the RangeIndex will be stored as a range in the metadata so it + doesn't require much space and is faster. Other indexes will + be included as columns in the file output. + engine_kwargs : dict[str, Any] or None, default None + Additional keyword arguments passed to :func:`pyarrow.orc.write_table`. + + Returns + ------- + bytes if no path argument is provided else None + + Raises + ------ + NotImplementedError + Dtype of one or more columns is category, unsigned integers, interval, + period or sparse. + ValueError + engine is not pyarrow. + + See Also + -------- + read_orc : Read a ORC file. + DataFrame.to_parquet : Write a parquet file. + DataFrame.to_csv : Write a csv file. + DataFrame.to_sql : Write to a sql table. + DataFrame.to_hdf : Write to hdf. + + Notes + ----- + * Before using this function you should read the :ref:`user guide about + ORC ` and :ref:`install optional dependencies `. + * This function requires `pyarrow `_ + library. + * For supported dtypes please refer to `supported ORC features in Arrow + `__. + * Currently timezones in datetime columns are not preserved when a + dataframe is converted into ORC files. + + Examples + -------- + >>> df = pd.DataFrame(data={'col1': [1, 2], 'col2': [4, 3]}) + >>> df.to_orc('df.orc') # doctest: +SKIP + >>> pd.read_orc('df.orc') # doctest: +SKIP + col1 col2 + 0 1 4 + 1 2 3 + + If you want to get a buffer to the orc content you can write it to io.BytesIO + + >>> import io + >>> b = io.BytesIO(df.to_orc()) # doctest: +SKIP + >>> b.seek(0) # doctest: +SKIP + 0 + >>> content = b.read() # doctest: +SKIP + """ + from pandas.io.orc import to_orc + + return to_orc( + self, path, engine=engine, index=index, engine_kwargs=engine_kwargs + ) + + @overload + def to_html( + self, + buf: FilePath | WriteBuffer[str], + columns: Axes | None = ..., + col_space: ColspaceArgType | None = ..., + header: bool = ..., + index: bool = ..., + na_rep: str = ..., + formatters: FormattersType | None = ..., + float_format: FloatFormatType | None = ..., + sparsify: bool | None = ..., + index_names: bool = ..., + justify: str | None = ..., + max_rows: int | None = ..., + max_cols: int | None = ..., + show_dimensions: bool | str = ..., + decimal: str = ..., + bold_rows: bool = ..., + classes: str | list | tuple | None = ..., + escape: bool = ..., + notebook: bool = ..., + border: int | bool | None = ..., + table_id: str | None = ..., + render_links: bool = ..., + encoding: str | None = ..., + ) -> None: + ... + + @overload + def to_html( + self, + buf: None = ..., + columns: Axes | None = ..., + col_space: ColspaceArgType | None = ..., + header: bool = ..., + index: bool = ..., + na_rep: str = ..., + formatters: FormattersType | None = ..., + float_format: FloatFormatType | None = ..., + sparsify: bool | None = ..., + index_names: bool = ..., + justify: str | None = ..., + max_rows: int | None = ..., + max_cols: int | None = ..., + show_dimensions: bool | str = ..., + decimal: str = ..., + bold_rows: bool = ..., + classes: str | list | tuple | None = ..., + escape: bool = ..., + notebook: bool = ..., + border: int | bool | None = ..., + table_id: str | None = ..., + render_links: bool = ..., + encoding: str | None = ..., + ) -> str: + ... + + @deprecate_nonkeyword_arguments( + version="3.0", allowed_args=["self", "buf"], name="to_html" + ) + @Substitution( + header_type="bool", + header="Whether to print column labels, default True", + col_space_type="str or int, list or dict of int or str", + col_space="The minimum width of each column in CSS length " + "units. An int is assumed to be px units.", + ) + @Substitution(shared_params=fmt.common_docstring, returns=fmt.return_docstring) + def to_html( + self, + buf: FilePath | WriteBuffer[str] | None = None, + columns: Axes | None = None, + col_space: ColspaceArgType | None = None, + header: bool = True, + index: bool = True, + na_rep: str = "NaN", + formatters: FormattersType | None = None, + float_format: FloatFormatType | None = None, + sparsify: bool | None = None, + index_names: bool = True, + justify: str | None = None, + max_rows: int | None = None, + max_cols: int | None = None, + show_dimensions: bool | str = False, + decimal: str = ".", + bold_rows: bool = True, + classes: str | list | tuple | None = None, + escape: bool = True, + notebook: bool = False, + border: int | bool | None = None, + table_id: str | None = None, + render_links: bool = False, + encoding: str | None = None, + ) -> str | None: + """ + Render a DataFrame as an HTML table. + %(shared_params)s + bold_rows : bool, default True + Make the row labels bold in the output. + classes : str or list or tuple, default None + CSS class(es) to apply to the resulting html table. + escape : bool, default True + Convert the characters <, >, and & to HTML-safe sequences. + notebook : {True, False}, default False + Whether the generated HTML is for IPython Notebook. + border : int + A ``border=border`` attribute is included in the opening + `

` tag. Default ``pd.options.display.html.border``. + table_id : str, optional + A css id is included in the opening `
` tag if specified. + render_links : bool, default False + Convert URLs to HTML links. + encoding : str, default "utf-8" + Set character encoding. + %(returns)s + See Also + -------- + to_string : Convert DataFrame to a string. + + Examples + -------- + >>> df = pd.DataFrame(data={'col1': [1, 2], 'col2': [4, 3]}) + >>> html_string = '''
+ ... + ... + ... + ... + ... + ... + ... + ... + ... + ... + ... + ... + ... + ... + ... + ... + ... + ... + ... + ...
col1col2
014
123
''' + >>> assert html_string == df.to_html() + """ + if justify is not None and justify not in fmt.VALID_JUSTIFY_PARAMETERS: + raise ValueError("Invalid value for justify parameter") + + formatter = fmt.DataFrameFormatter( + self, + columns=columns, + col_space=col_space, + na_rep=na_rep, + header=header, + index=index, + formatters=formatters, + float_format=float_format, + bold_rows=bold_rows, + sparsify=sparsify, + justify=justify, + index_names=index_names, + escape=escape, + decimal=decimal, + max_rows=max_rows, + max_cols=max_cols, + show_dimensions=show_dimensions, + ) + # TODO: a generic formatter wld b in DataFrameFormatter + return fmt.DataFrameRenderer(formatter).to_html( + buf=buf, + classes=classes, + notebook=notebook, + border=border, + encoding=encoding, + table_id=table_id, + render_links=render_links, + ) + + @overload + def to_xml( + self, + path_or_buffer: None = ..., + *, + index: bool = ..., + root_name: str | None = ..., + row_name: str | None = ..., + na_rep: str | None = ..., + attr_cols: list[str] | None = ..., + elem_cols: list[str] | None = ..., + namespaces: dict[str | None, str] | None = ..., + prefix: str | None = ..., + encoding: str = ..., + xml_declaration: bool | None = ..., + pretty_print: bool | None = ..., + parser: XMLParsers | None = ..., + stylesheet: FilePath | ReadBuffer[str] | ReadBuffer[bytes] | None = ..., + compression: CompressionOptions = ..., + storage_options: StorageOptions | None = ..., + ) -> str: + ... + + @overload + def to_xml( + self, + path_or_buffer: FilePath | WriteBuffer[bytes] | WriteBuffer[str], + *, + index: bool = ..., + root_name: str | None = ..., + row_name: str | None = ..., + na_rep: str | None = ..., + attr_cols: list[str] | None = ..., + elem_cols: list[str] | None = ..., + namespaces: dict[str | None, str] | None = ..., + prefix: str | None = ..., + encoding: str = ..., + xml_declaration: bool | None = ..., + pretty_print: bool | None = ..., + parser: XMLParsers | None = ..., + stylesheet: FilePath | ReadBuffer[str] | ReadBuffer[bytes] | None = ..., + compression: CompressionOptions = ..., + storage_options: StorageOptions | None = ..., + ) -> None: + ... + + @deprecate_nonkeyword_arguments( + version="3.0", allowed_args=["self", "path_or_buffer"], name="to_xml" + ) + @doc( + storage_options=_shared_docs["storage_options"], + compression_options=_shared_docs["compression_options"] % "path_or_buffer", + ) + def to_xml( + self, + path_or_buffer: FilePath | WriteBuffer[bytes] | WriteBuffer[str] | None = None, + index: bool = True, + root_name: str | None = "data", + row_name: str | None = "row", + na_rep: str | None = None, + attr_cols: list[str] | None = None, + elem_cols: list[str] | None = None, + namespaces: dict[str | None, str] | None = None, + prefix: str | None = None, + encoding: str = "utf-8", + xml_declaration: bool | None = True, + pretty_print: bool | None = True, + parser: XMLParsers | None = "lxml", + stylesheet: FilePath | ReadBuffer[str] | ReadBuffer[bytes] | None = None, + compression: CompressionOptions = "infer", + storage_options: StorageOptions | None = None, + ) -> str | None: + """ + Render a DataFrame to an XML document. + + .. versionadded:: 1.3.0 + + Parameters + ---------- + path_or_buffer : str, path object, file-like object, or None, default None + String, path object (implementing ``os.PathLike[str]``), or file-like + object implementing a ``write()`` function. If None, the result is returned + as a string. + index : bool, default True + Whether to include index in XML document. + root_name : str, default 'data' + The name of root element in XML document. + row_name : str, default 'row' + The name of row element in XML document. + na_rep : str, optional + Missing data representation. + attr_cols : list-like, optional + List of columns to write as attributes in row element. + Hierarchical columns will be flattened with underscore + delimiting the different levels. + elem_cols : list-like, optional + List of columns to write as children in row element. By default, + all columns output as children of row element. Hierarchical + columns will be flattened with underscore delimiting the + different levels. + namespaces : dict, optional + All namespaces to be defined in root element. Keys of dict + should be prefix names and values of dict corresponding URIs. + Default namespaces should be given empty string key. For + example, :: + + namespaces = {{"": "https://example.com"}} + + prefix : str, optional + Namespace prefix to be used for every element and/or attribute + in document. This should be one of the keys in ``namespaces`` + dict. + encoding : str, default 'utf-8' + Encoding of the resulting document. + xml_declaration : bool, default True + Whether to include the XML declaration at start of document. + pretty_print : bool, default True + Whether output should be pretty printed with indentation and + line breaks. + parser : {{'lxml','etree'}}, default 'lxml' + Parser module to use for building of tree. Only 'lxml' and + 'etree' are supported. With 'lxml', the ability to use XSLT + stylesheet is supported. + stylesheet : str, path object or file-like object, optional + A URL, file-like object, or a raw string containing an XSLT + script used to transform the raw XML output. Script should use + layout of elements and attributes from original output. This + argument requires ``lxml`` to be installed. Only XSLT 1.0 + scripts and not later versions is currently supported. + {compression_options} + + .. versionchanged:: 1.4.0 Zstandard support. + + {storage_options} + + Returns + ------- + None or str + If ``io`` is None, returns the resulting XML format as a + string. Otherwise returns None. + + See Also + -------- + to_json : Convert the pandas object to a JSON string. + to_html : Convert DataFrame to a html. + + Examples + -------- + >>> df = pd.DataFrame({{'shape': ['square', 'circle', 'triangle'], + ... 'degrees': [360, 360, 180], + ... 'sides': [4, np.nan, 3]}}) + + >>> df.to_xml() # doctest: +SKIP + + + + 0 + square + 360 + 4.0 + + + 1 + circle + 360 + + + + 2 + triangle + 180 + 3.0 + + + + >>> df.to_xml(attr_cols=[ + ... 'index', 'shape', 'degrees', 'sides' + ... ]) # doctest: +SKIP + + + + + + + + >>> df.to_xml(namespaces={{"doc": "https://example.com"}}, + ... prefix="doc") # doctest: +SKIP + + + + 0 + square + 360 + 4.0 + + + 1 + circle + 360 + + + + 2 + triangle + 180 + 3.0 + + + """ + + from pandas.io.formats.xml import ( + EtreeXMLFormatter, + LxmlXMLFormatter, + ) + + lxml = import_optional_dependency("lxml.etree", errors="ignore") + + TreeBuilder: type[EtreeXMLFormatter | LxmlXMLFormatter] + + if parser == "lxml": + if lxml is not None: + TreeBuilder = LxmlXMLFormatter + else: + raise ImportError( + "lxml not found, please install or use the etree parser." + ) + + elif parser == "etree": + TreeBuilder = EtreeXMLFormatter + + else: + raise ValueError("Values for parser can only be lxml or etree.") + + xml_formatter = TreeBuilder( + self, + path_or_buffer=path_or_buffer, + index=index, + root_name=root_name, + row_name=row_name, + na_rep=na_rep, + attr_cols=attr_cols, + elem_cols=elem_cols, + namespaces=namespaces, + prefix=prefix, + encoding=encoding, + xml_declaration=xml_declaration, + pretty_print=pretty_print, + stylesheet=stylesheet, + compression=compression, + storage_options=storage_options, + ) + + return xml_formatter.write_output() + + # ---------------------------------------------------------------------- + @doc(INFO_DOCSTRING, **frame_sub_kwargs) + def info( + self, + verbose: bool | None = None, + buf: WriteBuffer[str] | None = None, + max_cols: int | None = None, + memory_usage: bool | str | None = None, + show_counts: bool | None = None, + ) -> None: + info = DataFrameInfo( + data=self, + memory_usage=memory_usage, + ) + info.render( + buf=buf, + max_cols=max_cols, + verbose=verbose, + show_counts=show_counts, + ) + + def memory_usage(self, index: bool = True, deep: bool = False) -> Series: + """ + Return the memory usage of each column in bytes. + + The memory usage can optionally include the contribution of + the index and elements of `object` dtype. + + This value is displayed in `DataFrame.info` by default. This can be + suppressed by setting ``pandas.options.display.memory_usage`` to False. + + Parameters + ---------- + index : bool, default True + Specifies whether to include the memory usage of the DataFrame's + index in returned Series. If ``index=True``, the memory usage of + the index is the first item in the output. + deep : bool, default False + If True, introspect the data deeply by interrogating + `object` dtypes for system-level memory consumption, and include + it in the returned values. + + Returns + ------- + Series + A Series whose index is the original column names and whose values + is the memory usage of each column in bytes. + + See Also + -------- + numpy.ndarray.nbytes : Total bytes consumed by the elements of an + ndarray. + Series.memory_usage : Bytes consumed by a Series. + Categorical : Memory-efficient array for string values with + many repeated values. + DataFrame.info : Concise summary of a DataFrame. + + Notes + ----- + See the :ref:`Frequently Asked Questions ` for more + details. + + Examples + -------- + >>> dtypes = ['int64', 'float64', 'complex128', 'object', 'bool'] + >>> data = dict([(t, np.ones(shape=5000, dtype=int).astype(t)) + ... for t in dtypes]) + >>> df = pd.DataFrame(data) + >>> df.head() + int64 float64 complex128 object bool + 0 1 1.0 1.0+0.0j 1 True + 1 1 1.0 1.0+0.0j 1 True + 2 1 1.0 1.0+0.0j 1 True + 3 1 1.0 1.0+0.0j 1 True + 4 1 1.0 1.0+0.0j 1 True + + >>> df.memory_usage() + Index 128 + int64 40000 + float64 40000 + complex128 80000 + object 40000 + bool 5000 + dtype: int64 + + >>> df.memory_usage(index=False) + int64 40000 + float64 40000 + complex128 80000 + object 40000 + bool 5000 + dtype: int64 + + The memory footprint of `object` dtype columns is ignored by default: + + >>> df.memory_usage(deep=True) + Index 128 + int64 40000 + float64 40000 + complex128 80000 + object 180000 + bool 5000 + dtype: int64 + + Use a Categorical for efficient storage of an object-dtype column with + many repeated values. + + >>> df['object'].astype('category').memory_usage(deep=True) + 5244 + """ + result = self._constructor_sliced( + [c.memory_usage(index=False, deep=deep) for col, c in self.items()], + index=self.columns, + dtype=np.intp, + ) + if index: + index_memory_usage = self._constructor_sliced( + self.index.memory_usage(deep=deep), index=["Index"] + ) + result = index_memory_usage._append(result) + return result + + def transpose(self, *args, copy: bool = False) -> DataFrame: + """ + Transpose index and columns. + + Reflect the DataFrame over its main diagonal by writing rows as columns + and vice-versa. The property :attr:`.T` is an accessor to the method + :meth:`transpose`. + + Parameters + ---------- + *args : tuple, optional + Accepted for compatibility with NumPy. + copy : bool, default False + Whether to copy the data after transposing, even for DataFrames + with a single dtype. + + Note that a copy is always required for mixed dtype DataFrames, + or for DataFrames with any extension types. + + .. note:: + The `copy` keyword will change behavior in pandas 3.0. + `Copy-on-Write + `__ + will be enabled by default, which means that all methods with a + `copy` keyword will use a lazy copy mechanism to defer the copy and + ignore the `copy` keyword. The `copy` keyword will be removed in a + future version of pandas. + + You can already get the future behavior and improvements through + enabling copy on write ``pd.options.mode.copy_on_write = True`` + + Returns + ------- + DataFrame + The transposed DataFrame. + + See Also + -------- + numpy.transpose : Permute the dimensions of a given array. + + Notes + ----- + Transposing a DataFrame with mixed dtypes will result in a homogeneous + DataFrame with the `object` dtype. In such a case, a copy of the data + is always made. + + Examples + -------- + **Square DataFrame with homogeneous dtype** + + >>> d1 = {'col1': [1, 2], 'col2': [3, 4]} + >>> df1 = pd.DataFrame(data=d1) + >>> df1 + col1 col2 + 0 1 3 + 1 2 4 + + >>> df1_transposed = df1.T # or df1.transpose() + >>> df1_transposed + 0 1 + col1 1 2 + col2 3 4 + + When the dtype is homogeneous in the original DataFrame, we get a + transposed DataFrame with the same dtype: + + >>> df1.dtypes + col1 int64 + col2 int64 + dtype: object + >>> df1_transposed.dtypes + 0 int64 + 1 int64 + dtype: object + + **Non-square DataFrame with mixed dtypes** + + >>> d2 = {'name': ['Alice', 'Bob'], + ... 'score': [9.5, 8], + ... 'employed': [False, True], + ... 'kids': [0, 0]} + >>> df2 = pd.DataFrame(data=d2) + >>> df2 + name score employed kids + 0 Alice 9.5 False 0 + 1 Bob 8.0 True 0 + + >>> df2_transposed = df2.T # or df2.transpose() + >>> df2_transposed + 0 1 + name Alice Bob + score 9.5 8.0 + employed False True + kids 0 0 + + When the DataFrame has mixed dtypes, we get a transposed DataFrame with + the `object` dtype: + + >>> df2.dtypes + name object + score float64 + employed bool + kids int64 + dtype: object + >>> df2_transposed.dtypes + 0 object + 1 object + dtype: object + """ + nv.validate_transpose(args, {}) + # construct the args + + dtypes = list(self.dtypes) + + if self._can_fast_transpose: + # Note: tests pass without this, but this improves perf quite a bit. + new_vals = self._values.T + if copy and not using_copy_on_write(): + new_vals = new_vals.copy() + + result = self._constructor( + new_vals, + index=self.columns, + columns=self.index, + copy=False, + dtype=new_vals.dtype, + ) + if using_copy_on_write() and len(self) > 0: + result._mgr.add_references(self._mgr) # type: ignore[arg-type] + + elif ( + self._is_homogeneous_type + and dtypes + and isinstance(dtypes[0], ExtensionDtype) + ): + new_values: list + if isinstance(dtypes[0], BaseMaskedDtype): + # We have masked arrays with the same dtype. We can transpose faster. + from pandas.core.arrays.masked import ( + transpose_homogeneous_masked_arrays, + ) + + new_values = transpose_homogeneous_masked_arrays( + cast(Sequence[BaseMaskedArray], self._iter_column_arrays()) + ) + elif isinstance(dtypes[0], ArrowDtype): + # We have arrow EAs with the same dtype. We can transpose faster. + from pandas.core.arrays.arrow.array import ( + ArrowExtensionArray, + transpose_homogeneous_pyarrow, + ) + + new_values = transpose_homogeneous_pyarrow( + cast(Sequence[ArrowExtensionArray], self._iter_column_arrays()) + ) + else: + # We have other EAs with the same dtype. We preserve dtype in transpose. + dtyp = dtypes[0] + arr_typ = dtyp.construct_array_type() + values = self.values + new_values = [arr_typ._from_sequence(row, dtype=dtyp) for row in values] + + result = type(self)._from_arrays( + new_values, + index=self.columns, + columns=self.index, + verify_integrity=False, + ) + + else: + new_arr = self.values.T + if copy and not using_copy_on_write(): + new_arr = new_arr.copy() + result = self._constructor( + new_arr, + index=self.columns, + columns=self.index, + dtype=new_arr.dtype, + # We already made a copy (more than one block) + copy=False, + ) + + return result.__finalize__(self, method="transpose") + + @property + def T(self) -> DataFrame: + """ + The transpose of the DataFrame. + + Returns + ------- + DataFrame + The transposed DataFrame. + + See Also + -------- + DataFrame.transpose : Transpose index and columns. + + Examples + -------- + >>> df = pd.DataFrame({'col1': [1, 2], 'col2': [3, 4]}) + >>> df + col1 col2 + 0 1 3 + 1 2 4 + + >>> df.T + 0 1 + col1 1 2 + col2 3 4 + """ + return self.transpose() + + # ---------------------------------------------------------------------- + # Indexing Methods + + def _ixs(self, i: int, axis: AxisInt = 0) -> Series: + """ + Parameters + ---------- + i : int + axis : int + + Returns + ------- + Series + """ + # irow + if axis == 0: + new_mgr = self._mgr.fast_xs(i) + + # if we are a copy, mark as such + copy = isinstance(new_mgr.array, np.ndarray) and new_mgr.array.base is None + result = self._constructor_sliced_from_mgr(new_mgr, axes=new_mgr.axes) + result._name = self.index[i] + result = result.__finalize__(self) + result._set_is_copy(self, copy=copy) + return result + + # icol + else: + label = self.columns[i] + + col_mgr = self._mgr.iget(i) + result = self._box_col_values(col_mgr, i) + + # this is a cached value, mark it so + result._set_as_cached(label, self) + return result + + def _get_column_array(self, i: int) -> ArrayLike: + """ + Get the values of the i'th column (ndarray or ExtensionArray, as stored + in the Block) + + Warning! The returned array is a view but doesn't handle Copy-on-Write, + so this should be used with caution (for read-only purposes). + """ + return self._mgr.iget_values(i) + + def _iter_column_arrays(self) -> Iterator[ArrayLike]: + """ + Iterate over the arrays of all columns in order. + This returns the values as stored in the Block (ndarray or ExtensionArray). + + Warning! The returned array is a view but doesn't handle Copy-on-Write, + so this should be used with caution (for read-only purposes). + """ + if isinstance(self._mgr, ArrayManager): + yield from self._mgr.arrays + else: + for i in range(len(self.columns)): + yield self._get_column_array(i) + + def _getitem_nocopy(self, key: list): + """ + Behaves like __getitem__, but returns a view in cases where __getitem__ + would make a copy. + """ + # TODO(CoW): can be removed if/when we are always Copy-on-Write + indexer = self.columns._get_indexer_strict(key, "columns")[1] + new_axis = self.columns[indexer] + + new_mgr = self._mgr.reindex_indexer( + new_axis, + indexer, + axis=0, + allow_dups=True, + copy=False, + only_slice=True, + ) + result = self._constructor_from_mgr(new_mgr, axes=new_mgr.axes) + result = result.__finalize__(self) + return result + + def __getitem__(self, key): + check_dict_or_set_indexers(key) + key = lib.item_from_zerodim(key) + key = com.apply_if_callable(key, self) + + if is_hashable(key) and not is_iterator(key): + # is_iterator to exclude generator e.g. test_getitem_listlike + # shortcut if the key is in columns + is_mi = isinstance(self.columns, MultiIndex) + # GH#45316 Return view if key is not duplicated + # Only use drop_duplicates with duplicates for performance + if not is_mi and ( + self.columns.is_unique + and key in self.columns + or key in self.columns.drop_duplicates(keep=False) + ): + return self._get_item_cache(key) + + elif is_mi and self.columns.is_unique and key in self.columns: + return self._getitem_multilevel(key) + + # Do we have a slicer (on rows)? + if isinstance(key, slice): + return self._getitem_slice(key) + + # Do we have a (boolean) DataFrame? + if isinstance(key, DataFrame): + return self.where(key) + + # Do we have a (boolean) 1d indexer? + if com.is_bool_indexer(key): + return self._getitem_bool_array(key) + + # We are left with two options: a single key, and a collection of keys, + # We interpret tuples as collections only for non-MultiIndex + is_single_key = isinstance(key, tuple) or not is_list_like(key) + + if is_single_key: + if self.columns.nlevels > 1: + return self._getitem_multilevel(key) + indexer = self.columns.get_loc(key) + if is_integer(indexer): + indexer = [indexer] + else: + if is_iterator(key): + key = list(key) + indexer = self.columns._get_indexer_strict(key, "columns")[1] + + # take() does not accept boolean indexers + if getattr(indexer, "dtype", None) == bool: + indexer = np.where(indexer)[0] + + if isinstance(indexer, slice): + return self._slice(indexer, axis=1) + + data = self._take_with_is_copy(indexer, axis=1) + + if is_single_key: + # What does looking for a single key in a non-unique index return? + # The behavior is inconsistent. It returns a Series, except when + # - the key itself is repeated (test on data.shape, #9519), or + # - we have a MultiIndex on columns (test on self.columns, #21309) + if data.shape[1] == 1 and not isinstance(self.columns, MultiIndex): + # GH#26490 using data[key] can cause RecursionError + return data._get_item_cache(key) + + return data + + def _getitem_bool_array(self, key): + # also raises Exception if object array with NA values + # warning here just in case -- previously __setitem__ was + # reindexing but __getitem__ was not; it seems more reasonable to + # go with the __setitem__ behavior since that is more consistent + # with all other indexing behavior + if isinstance(key, Series) and not key.index.equals(self.index): + warnings.warn( + "Boolean Series key will be reindexed to match DataFrame index.", + UserWarning, + stacklevel=find_stack_level(), + ) + elif len(key) != len(self.index): + raise ValueError( + f"Item wrong length {len(key)} instead of {len(self.index)}." + ) + + # check_bool_indexer will throw exception if Series key cannot + # be reindexed to match DataFrame rows + key = check_bool_indexer(self.index, key) + + if key.all(): + return self.copy(deep=None) + + indexer = key.nonzero()[0] + return self._take_with_is_copy(indexer, axis=0) + + def _getitem_multilevel(self, key): + # self.columns is a MultiIndex + loc = self.columns.get_loc(key) + if isinstance(loc, (slice, np.ndarray)): + new_columns = self.columns[loc] + result_columns = maybe_droplevels(new_columns, key) + result = self.iloc[:, loc] + result.columns = result_columns + + # If there is only one column being returned, and its name is + # either an empty string, or a tuple with an empty string as its + # first element, then treat the empty string as a placeholder + # and return the column as if the user had provided that empty + # string in the key. If the result is a Series, exclude the + # implied empty string from its name. + if len(result.columns) == 1: + # e.g. test_frame_getitem_multicolumn_empty_level, + # test_frame_mixed_depth_get, test_loc_setitem_single_column_slice + top = result.columns[0] + if isinstance(top, tuple): + top = top[0] + if top == "": + result = result[""] + if isinstance(result, Series): + result = self._constructor_sliced( + result, index=self.index, name=key + ) + + result._set_is_copy(self) + return result + else: + # loc is neither a slice nor ndarray, so must be an int + return self._ixs(loc, axis=1) + + def _get_value(self, index, col, takeable: bool = False) -> Scalar: + """ + Quickly retrieve single value at passed column and index. + + Parameters + ---------- + index : row label + col : column label + takeable : interpret the index/col as indexers, default False + + Returns + ------- + scalar + + Notes + ----- + Assumes that both `self.index._index_as_unique` and + `self.columns._index_as_unique`; Caller is responsible for checking. + """ + if takeable: + series = self._ixs(col, axis=1) + return series._values[index] + + series = self._get_item_cache(col) + engine = self.index._engine + + if not isinstance(self.index, MultiIndex): + # CategoricalIndex: Trying to use the engine fastpath may give incorrect + # results if our categories are integers that dont match our codes + # IntervalIndex: IntervalTree has no get_loc + row = self.index.get_loc(index) + return series._values[row] + + # For MultiIndex going through engine effectively restricts us to + # same-length tuples; see test_get_set_value_no_partial_indexing + loc = engine.get_loc(index) + return series._values[loc] + + def isetitem(self, loc, value) -> None: + """ + Set the given value in the column with position `loc`. + + This is a positional analogue to ``__setitem__``. + + Parameters + ---------- + loc : int or sequence of ints + Index position for the column. + value : scalar or arraylike + Value(s) for the column. + + Notes + ----- + ``frame.isetitem(loc, value)`` is an in-place method as it will + modify the DataFrame in place (not returning a new object). In contrast to + ``frame.iloc[:, i] = value`` which will try to update the existing values in + place, ``frame.isetitem(loc, value)`` will not update the values of the column + itself in place, it will instead insert a new array. + + In cases where ``frame.columns`` is unique, this is equivalent to + ``frame[frame.columns[i]] = value``. + """ + if isinstance(value, DataFrame): + if is_integer(loc): + loc = [loc] + + if len(loc) != len(value.columns): + raise ValueError( + f"Got {len(loc)} positions but value has {len(value.columns)} " + f"columns." + ) + + for i, idx in enumerate(loc): + arraylike, refs = self._sanitize_column(value.iloc[:, i]) + self._iset_item_mgr(idx, arraylike, inplace=False, refs=refs) + return + + arraylike, refs = self._sanitize_column(value) + self._iset_item_mgr(loc, arraylike, inplace=False, refs=refs) + + def __setitem__(self, key, value) -> None: + if not PYPY and not WARNING_CHECK_DISABLED and using_copy_on_write(): + if sys.getrefcount(self) <= 3: + warnings.warn( + _chained_assignment_msg, ChainedAssignmentError, stacklevel=2 + ) + elif not PYPY and not WARNING_CHECK_DISABLED and not using_copy_on_write(): + if sys.getrefcount(self) <= 3 and ( + warn_copy_on_write() + or ( + not warn_copy_on_write() + and any(b.refs.has_reference() for b in self._mgr.blocks) # type: ignore[union-attr] + ) + ): + warnings.warn( + _chained_assignment_warning_msg, FutureWarning, stacklevel=2 + ) + + key = com.apply_if_callable(key, self) + + # see if we can slice the rows + if isinstance(key, slice): + slc = self.index._convert_slice_indexer(key, kind="getitem") + return self._setitem_slice(slc, value) + + if isinstance(key, DataFrame) or getattr(key, "ndim", None) == 2: + self._setitem_frame(key, value) + elif isinstance(key, (Series, np.ndarray, list, Index)): + self._setitem_array(key, value) + elif isinstance(value, DataFrame): + self._set_item_frame_value(key, value) + elif ( + is_list_like(value) + and not self.columns.is_unique + and 1 < len(self.columns.get_indexer_for([key])) == len(value) + ): + # Column to set is duplicated + self._setitem_array([key], value) + else: + # set column + self._set_item(key, value) + + def _setitem_slice(self, key: slice, value) -> None: + # NB: we can't just use self.loc[key] = value because that + # operates on labels and we need to operate positional for + # backwards-compat, xref GH#31469 + self._check_setitem_copy() + self.iloc[key] = value + + def _setitem_array(self, key, value): + # also raises Exception if object array with NA values + if com.is_bool_indexer(key): + # bool indexer is indexing along rows + if len(key) != len(self.index): + raise ValueError( + f"Item wrong length {len(key)} instead of {len(self.index)}!" + ) + key = check_bool_indexer(self.index, key) + indexer = key.nonzero()[0] + self._check_setitem_copy() + if isinstance(value, DataFrame): + # GH#39931 reindex since iloc does not align + value = value.reindex(self.index.take(indexer)) + self.iloc[indexer] = value + + else: + # Note: unlike self.iloc[:, indexer] = value, this will + # never try to overwrite values inplace + + if isinstance(value, DataFrame): + check_key_length(self.columns, key, value) + for k1, k2 in zip(key, value.columns): + self[k1] = value[k2] + + elif not is_list_like(value): + for col in key: + self[col] = value + + elif isinstance(value, np.ndarray) and value.ndim == 2: + self._iset_not_inplace(key, value) + + elif np.ndim(value) > 1: + # list of lists + value = DataFrame(value).values + return self._setitem_array(key, value) + + else: + self._iset_not_inplace(key, value) + + def _iset_not_inplace(self, key, value): + # GH#39510 when setting with df[key] = obj with a list-like key and + # list-like value, we iterate over those listlikes and set columns + # one at a time. This is different from dispatching to + # `self.loc[:, key]= value` because loc.__setitem__ may overwrite + # data inplace, whereas this will insert new arrays. + + def igetitem(obj, i: int): + # Note: we catch DataFrame obj before getting here, but + # hypothetically would return obj.iloc[:, i] + if isinstance(obj, np.ndarray): + return obj[..., i] + else: + return obj[i] + + if self.columns.is_unique: + if np.shape(value)[-1] != len(key): + raise ValueError("Columns must be same length as key") + + for i, col in enumerate(key): + self[col] = igetitem(value, i) + + else: + ilocs = self.columns.get_indexer_non_unique(key)[0] + if (ilocs < 0).any(): + # key entries not in self.columns + raise NotImplementedError + + if np.shape(value)[-1] != len(ilocs): + raise ValueError("Columns must be same length as key") + + assert np.ndim(value) <= 2 + + orig_columns = self.columns + + # Using self.iloc[:, i] = ... may set values inplace, which + # by convention we do not do in __setitem__ + try: + self.columns = Index(range(len(self.columns))) + for i, iloc in enumerate(ilocs): + self[iloc] = igetitem(value, i) + finally: + self.columns = orig_columns + + def _setitem_frame(self, key, value): + # support boolean setting with DataFrame input, e.g. + # df[df > df2] = 0 + if isinstance(key, np.ndarray): + if key.shape != self.shape: + raise ValueError("Array conditional must be same shape as self") + key = self._constructor(key, **self._construct_axes_dict(), copy=False) + + if key.size and not all(is_bool_dtype(dtype) for dtype in key.dtypes): + raise TypeError( + "Must pass DataFrame or 2-d ndarray with boolean values only" + ) + + self._check_setitem_copy() + self._where(-key, value, inplace=True) + + def _set_item_frame_value(self, key, value: DataFrame) -> None: + self._ensure_valid_index(value) + + # align columns + if key in self.columns: + loc = self.columns.get_loc(key) + cols = self.columns[loc] + len_cols = 1 if is_scalar(cols) or isinstance(cols, tuple) else len(cols) + if len_cols != len(value.columns): + raise ValueError("Columns must be same length as key") + + # align right-hand-side columns if self.columns + # is multi-index and self[key] is a sub-frame + if isinstance(self.columns, MultiIndex) and isinstance( + loc, (slice, Series, np.ndarray, Index) + ): + cols_droplevel = maybe_droplevels(cols, key) + if len(cols_droplevel) and not cols_droplevel.equals(value.columns): + value = value.reindex(cols_droplevel, axis=1) + + for col, col_droplevel in zip(cols, cols_droplevel): + self[col] = value[col_droplevel] + return + + if is_scalar(cols): + self[cols] = value[value.columns[0]] + return + + locs: np.ndarray | list + if isinstance(loc, slice): + locs = np.arange(loc.start, loc.stop, loc.step) + elif is_scalar(loc): + locs = [loc] + else: + locs = loc.nonzero()[0] + + return self.isetitem(locs, value) + + if len(value.columns) > 1: + raise ValueError( + "Cannot set a DataFrame with multiple columns to the single " + f"column {key}" + ) + elif len(value.columns) == 0: + raise ValueError( + f"Cannot set a DataFrame without columns to the column {key}" + ) + + self[key] = value[value.columns[0]] + + def _iset_item_mgr( + self, + loc: int | slice | np.ndarray, + value, + inplace: bool = False, + refs: BlockValuesRefs | None = None, + ) -> None: + # when called from _set_item_mgr loc can be anything returned from get_loc + self._mgr.iset(loc, value, inplace=inplace, refs=refs) + self._clear_item_cache() + + def _set_item_mgr( + self, key, value: ArrayLike, refs: BlockValuesRefs | None = None + ) -> None: + try: + loc = self._info_axis.get_loc(key) + except KeyError: + # This item wasn't present, just insert at end + self._mgr.insert(len(self._info_axis), key, value, refs) + else: + self._iset_item_mgr(loc, value, refs=refs) + + # check if we are modifying a copy + # try to set first as we want an invalid + # value exception to occur first + if len(self): + self._check_setitem_copy() + + def _iset_item(self, loc: int, value: Series, inplace: bool = True) -> None: + # We are only called from _replace_columnwise which guarantees that + # no reindex is necessary + if using_copy_on_write(): + self._iset_item_mgr( + loc, value._values, inplace=inplace, refs=value._references + ) + else: + self._iset_item_mgr(loc, value._values.copy(), inplace=True) + + # check if we are modifying a copy + # try to set first as we want an invalid + # value exception to occur first + if len(self): + self._check_setitem_copy() + + def _set_item(self, key, value) -> None: + """ + Add series to DataFrame in specified column. + + If series is a numpy-array (not a Series/TimeSeries), it must be the + same length as the DataFrames index or an error will be thrown. + + Series/TimeSeries will be conformed to the DataFrames index to + ensure homogeneity. + """ + value, refs = self._sanitize_column(value) + + if ( + key in self.columns + and value.ndim == 1 + and not isinstance(value.dtype, ExtensionDtype) + ): + # broadcast across multiple columns if necessary + if not self.columns.is_unique or isinstance(self.columns, MultiIndex): + existing_piece = self[key] + if isinstance(existing_piece, DataFrame): + value = np.tile(value, (len(existing_piece.columns), 1)).T + refs = None + + self._set_item_mgr(key, value, refs) + + def _set_value( + self, index: IndexLabel, col, value: Scalar, takeable: bool = False + ) -> None: + """ + Put single value at passed column and index. + + Parameters + ---------- + index : Label + row label + col : Label + column label + value : scalar + takeable : bool, default False + Sets whether or not index/col interpreted as indexers + """ + try: + if takeable: + icol = col + iindex = cast(int, index) + else: + icol = self.columns.get_loc(col) + iindex = self.index.get_loc(index) + self._mgr.column_setitem(icol, iindex, value, inplace_only=True) + self._clear_item_cache() + + except (KeyError, TypeError, ValueError, LossySetitemError): + # get_loc might raise a KeyError for missing labels (falling back + # to (i)loc will do expansion of the index) + # column_setitem will do validation that may raise TypeError, + # ValueError, or LossySetitemError + # set using a non-recursive method & reset the cache + if takeable: + self.iloc[index, col] = value + else: + self.loc[index, col] = value + self._item_cache.pop(col, None) + + except InvalidIndexError as ii_err: + # GH48729: Seems like you are trying to assign a value to a + # row when only scalar options are permitted + raise InvalidIndexError( + f"You can only assign a scalar value not a {type(value)}" + ) from ii_err + + def _ensure_valid_index(self, value) -> None: + """ + Ensure that if we don't have an index, that we can create one from the + passed value. + """ + # GH5632, make sure that we are a Series convertible + if not len(self.index) and is_list_like(value) and len(value): + if not isinstance(value, DataFrame): + try: + value = Series(value) + except (ValueError, NotImplementedError, TypeError) as err: + raise ValueError( + "Cannot set a frame with no defined index " + "and a value that cannot be converted to a Series" + ) from err + + # GH31368 preserve name of index + index_copy = value.index.copy() + if self.index.name is not None: + index_copy.name = self.index.name + + self._mgr = self._mgr.reindex_axis(index_copy, axis=1, fill_value=np.nan) + + def _box_col_values(self, values: SingleDataManager, loc: int) -> Series: + """ + Provide boxed values for a column. + """ + # Lookup in columns so that if e.g. a str datetime was passed + # we attach the Timestamp object as the name. + name = self.columns[loc] + # We get index=self.index bc values is a SingleDataManager + obj = self._constructor_sliced_from_mgr(values, axes=values.axes) + obj._name = name + return obj.__finalize__(self) + + # ---------------------------------------------------------------------- + # Lookup Caching + + def _clear_item_cache(self) -> None: + self._item_cache.clear() + + def _get_item_cache(self, item: Hashable) -> Series: + """Return the cached item, item represents a label indexer.""" + if using_copy_on_write() or warn_copy_on_write(): + loc = self.columns.get_loc(item) + return self._ixs(loc, axis=1) + + cache = self._item_cache + res = cache.get(item) + if res is None: + # All places that call _get_item_cache have unique columns, + # pending resolution of GH#33047 + + loc = self.columns.get_loc(item) + res = self._ixs(loc, axis=1) + + cache[item] = res + + # for a chain + res._is_copy = self._is_copy + return res + + def _reset_cacher(self) -> None: + # no-op for DataFrame + pass + + def _maybe_cache_changed(self, item, value: Series, inplace: bool) -> None: + """ + The object has called back to us saying maybe it has changed. + """ + loc = self._info_axis.get_loc(item) + arraylike = value._values + + old = self._ixs(loc, axis=1) + if old._values is value._values and inplace: + # GH#46149 avoid making unnecessary copies/block-splitting + return + + self._mgr.iset(loc, arraylike, inplace=inplace) + + # ---------------------------------------------------------------------- + # Unsorted + + @overload + def query(self, expr: str, *, inplace: Literal[False] = ..., **kwargs) -> DataFrame: + ... + + @overload + def query(self, expr: str, *, inplace: Literal[True], **kwargs) -> None: + ... + + @overload + def query(self, expr: str, *, inplace: bool = ..., **kwargs) -> DataFrame | None: + ... + + def query(self, expr: str, *, inplace: bool = False, **kwargs) -> DataFrame | None: + """ + Query the columns of a DataFrame with a boolean expression. + + Parameters + ---------- + expr : str + The query string to evaluate. + + You can refer to variables + in the environment by prefixing them with an '@' character like + ``@a + b``. + + You can refer to column names that are not valid Python variable names + by surrounding them in backticks. Thus, column names containing spaces + or punctuations (besides underscores) or starting with digits must be + surrounded by backticks. (For example, a column named "Area (cm^2)" would + be referenced as ```Area (cm^2)```). Column names which are Python keywords + (like "list", "for", "import", etc) cannot be used. + + For example, if one of your columns is called ``a a`` and you want + to sum it with ``b``, your query should be ```a a` + b``. + + inplace : bool + Whether to modify the DataFrame rather than creating a new one. + **kwargs + See the documentation for :func:`eval` for complete details + on the keyword arguments accepted by :meth:`DataFrame.query`. + + Returns + ------- + DataFrame or None + DataFrame resulting from the provided query expression or + None if ``inplace=True``. + + See Also + -------- + eval : Evaluate a string describing operations on + DataFrame columns. + DataFrame.eval : Evaluate a string describing operations on + DataFrame columns. + + Notes + ----- + The result of the evaluation of this expression is first passed to + :attr:`DataFrame.loc` and if that fails because of a + multidimensional key (e.g., a DataFrame) then the result will be passed + to :meth:`DataFrame.__getitem__`. + + This method uses the top-level :func:`eval` function to + evaluate the passed query. + + The :meth:`~pandas.DataFrame.query` method uses a slightly + modified Python syntax by default. For example, the ``&`` and ``|`` + (bitwise) operators have the precedence of their boolean cousins, + :keyword:`and` and :keyword:`or`. This *is* syntactically valid Python, + however the semantics are different. + + You can change the semantics of the expression by passing the keyword + argument ``parser='python'``. This enforces the same semantics as + evaluation in Python space. Likewise, you can pass ``engine='python'`` + to evaluate an expression using Python itself as a backend. This is not + recommended as it is inefficient compared to using ``numexpr`` as the + engine. + + The :attr:`DataFrame.index` and + :attr:`DataFrame.columns` attributes of the + :class:`~pandas.DataFrame` instance are placed in the query namespace + by default, which allows you to treat both the index and columns of the + frame as a column in the frame. + The identifier ``index`` is used for the frame index; you can also + use the name of the index to identify it in a query. Please note that + Python keywords may not be used as identifiers. + + For further details and examples see the ``query`` documentation in + :ref:`indexing `. + + *Backtick quoted variables* + + Backtick quoted variables are parsed as literal Python code and + are converted internally to a Python valid identifier. + This can lead to the following problems. + + During parsing a number of disallowed characters inside the backtick + quoted string are replaced by strings that are allowed as a Python identifier. + These characters include all operators in Python, the space character, the + question mark, the exclamation mark, the dollar sign, and the euro sign. + For other characters that fall outside the ASCII range (U+0001..U+007F) + and those that are not further specified in PEP 3131, + the query parser will raise an error. + This excludes whitespace different than the space character, + but also the hashtag (as it is used for comments) and the backtick + itself (backtick can also not be escaped). + + In a special case, quotes that make a pair around a backtick can + confuse the parser. + For example, ```it's` > `that's``` will raise an error, + as it forms a quoted string (``'s > `that'``) with a backtick inside. + + See also the Python documentation about lexical analysis + (https://docs.python.org/3/reference/lexical_analysis.html) + in combination with the source code in :mod:`pandas.core.computation.parsing`. + + Examples + -------- + >>> df = pd.DataFrame({'A': range(1, 6), + ... 'B': range(10, 0, -2), + ... 'C C': range(10, 5, -1)}) + >>> df + A B C C + 0 1 10 10 + 1 2 8 9 + 2 3 6 8 + 3 4 4 7 + 4 5 2 6 + >>> df.query('A > B') + A B C C + 4 5 2 6 + + The previous expression is equivalent to + + >>> df[df.A > df.B] + A B C C + 4 5 2 6 + + For columns with spaces in their name, you can use backtick quoting. + + >>> df.query('B == `C C`') + A B C C + 0 1 10 10 + + The previous expression is equivalent to + + >>> df[df.B == df['C C']] + A B C C + 0 1 10 10 + """ + inplace = validate_bool_kwarg(inplace, "inplace") + if not isinstance(expr, str): + msg = f"expr must be a string to be evaluated, {type(expr)} given" + raise ValueError(msg) + kwargs["level"] = kwargs.pop("level", 0) + 1 + kwargs["target"] = None + res = self.eval(expr, **kwargs) + + try: + result = self.loc[res] + except ValueError: + # when res is multi-dimensional loc raises, but this is sometimes a + # valid query + result = self[res] + + if inplace: + self._update_inplace(result) + return None + else: + return result + + @overload + def eval(self, expr: str, *, inplace: Literal[False] = ..., **kwargs) -> Any: + ... + + @overload + def eval(self, expr: str, *, inplace: Literal[True], **kwargs) -> None: + ... + + def eval(self, expr: str, *, inplace: bool = False, **kwargs) -> Any | None: + """ + Evaluate a string describing operations on DataFrame columns. + + Operates on columns only, not specific rows or elements. This allows + `eval` to run arbitrary code, which can make you vulnerable to code + injection if you pass user input to this function. + + Parameters + ---------- + expr : str + The expression string to evaluate. + inplace : bool, default False + If the expression contains an assignment, whether to perform the + operation inplace and mutate the existing DataFrame. Otherwise, + a new DataFrame is returned. + **kwargs + See the documentation for :func:`eval` for complete details + on the keyword arguments accepted by + :meth:`~pandas.DataFrame.query`. + + Returns + ------- + ndarray, scalar, pandas object, or None + The result of the evaluation or None if ``inplace=True``. + + See Also + -------- + DataFrame.query : Evaluates a boolean expression to query the columns + of a frame. + DataFrame.assign : Can evaluate an expression or function to create new + values for a column. + eval : Evaluate a Python expression as a string using various + backends. + + Notes + ----- + For more details see the API documentation for :func:`~eval`. + For detailed examples see :ref:`enhancing performance with eval + `. + + Examples + -------- + >>> df = pd.DataFrame({'A': range(1, 6), 'B': range(10, 0, -2)}) + >>> df + A B + 0 1 10 + 1 2 8 + 2 3 6 + 3 4 4 + 4 5 2 + >>> df.eval('A + B') + 0 11 + 1 10 + 2 9 + 3 8 + 4 7 + dtype: int64 + + Assignment is allowed though by default the original DataFrame is not + modified. + + >>> df.eval('C = A + B') + A B C + 0 1 10 11 + 1 2 8 10 + 2 3 6 9 + 3 4 4 8 + 4 5 2 7 + >>> df + A B + 0 1 10 + 1 2 8 + 2 3 6 + 3 4 4 + 4 5 2 + + Multiple columns can be assigned to using multi-line expressions: + + >>> df.eval( + ... ''' + ... C = A + B + ... D = A - B + ... ''' + ... ) + A B C D + 0 1 10 11 -9 + 1 2 8 10 -6 + 2 3 6 9 -3 + 3 4 4 8 0 + 4 5 2 7 3 + """ + from pandas.core.computation.eval import eval as _eval + + inplace = validate_bool_kwarg(inplace, "inplace") + kwargs["level"] = kwargs.pop("level", 0) + 1 + index_resolvers = self._get_index_resolvers() + column_resolvers = self._get_cleaned_column_resolvers() + resolvers = column_resolvers, index_resolvers + if "target" not in kwargs: + kwargs["target"] = self + kwargs["resolvers"] = tuple(kwargs.get("resolvers", ())) + resolvers + + return _eval(expr, inplace=inplace, **kwargs) + + def select_dtypes(self, include=None, exclude=None) -> Self: + """ + Return a subset of the DataFrame's columns based on the column dtypes. + + Parameters + ---------- + include, exclude : scalar or list-like + A selection of dtypes or strings to be included/excluded. At least + one of these parameters must be supplied. + + Returns + ------- + DataFrame + The subset of the frame including the dtypes in ``include`` and + excluding the dtypes in ``exclude``. + + Raises + ------ + ValueError + * If both of ``include`` and ``exclude`` are empty + * If ``include`` and ``exclude`` have overlapping elements + * If any kind of string dtype is passed in. + + See Also + -------- + DataFrame.dtypes: Return Series with the data type of each column. + + Notes + ----- + * To select all *numeric* types, use ``np.number`` or ``'number'`` + * To select strings you must use the ``object`` dtype, but note that + this will return *all* object dtype columns. With + ``pd.options.future.infer_string`` enabled, using ``"str"`` will + work to select all string columns. + * See the `numpy dtype hierarchy + `__ + * To select datetimes, use ``np.datetime64``, ``'datetime'`` or + ``'datetime64'`` + * To select timedeltas, use ``np.timedelta64``, ``'timedelta'`` or + ``'timedelta64'`` + * To select Pandas categorical dtypes, use ``'category'`` + * To select Pandas datetimetz dtypes, use ``'datetimetz'`` + or ``'datetime64[ns, tz]'`` + + Examples + -------- + >>> df = pd.DataFrame({'a': [1, 2] * 3, + ... 'b': [True, False] * 3, + ... 'c': [1.0, 2.0] * 3}) + >>> df + a b c + 0 1 True 1.0 + 1 2 False 2.0 + 2 1 True 1.0 + 3 2 False 2.0 + 4 1 True 1.0 + 5 2 False 2.0 + + >>> df.select_dtypes(include='bool') + b + 0 True + 1 False + 2 True + 3 False + 4 True + 5 False + + >>> df.select_dtypes(include=['float64']) + c + 0 1.0 + 1 2.0 + 2 1.0 + 3 2.0 + 4 1.0 + 5 2.0 + + >>> df.select_dtypes(exclude=['int64']) + b c + 0 True 1.0 + 1 False 2.0 + 2 True 1.0 + 3 False 2.0 + 4 True 1.0 + 5 False 2.0 + """ + if not is_list_like(include): + include = (include,) if include is not None else () + if not is_list_like(exclude): + exclude = (exclude,) if exclude is not None else () + + selection = (frozenset(include), frozenset(exclude)) + + if not any(selection): + raise ValueError("at least one of include or exclude must be nonempty") + + # convert the myriad valid dtypes object to a single representation + def check_int_infer_dtype(dtypes): + converted_dtypes: list[type] = [] + for dtype in dtypes: + # Numpy maps int to different types (int32, in64) on Windows and Linux + # see https://github.com/numpy/numpy/issues/9464 + if (isinstance(dtype, str) and dtype == "int") or (dtype is int): + converted_dtypes.append(np.int32) + converted_dtypes.append(np.int64) + elif dtype == "float" or dtype is float: + # GH#42452 : np.dtype("float") coerces to np.float64 from Numpy 1.20 + converted_dtypes.extend([np.float64, np.float32]) + else: + converted_dtypes.append(infer_dtype_from_object(dtype)) + return frozenset(converted_dtypes) + + include = check_int_infer_dtype(include) + exclude = check_int_infer_dtype(exclude) + + for dtypes in (include, exclude): + invalidate_string_dtypes(dtypes) + + # can't both include AND exclude! + if not include.isdisjoint(exclude): + raise ValueError(f"include and exclude overlap on {(include & exclude)}") + + def dtype_predicate(dtype: DtypeObj, dtypes_set) -> bool: + # GH 46870: BooleanDtype._is_numeric == True but should be excluded + dtype = dtype if not isinstance(dtype, ArrowDtype) else dtype.numpy_dtype + return ( + issubclass(dtype.type, tuple(dtypes_set)) + or ( + np.number in dtypes_set + and getattr(dtype, "_is_numeric", False) + and not is_bool_dtype(dtype) + ) + # backwards compat for the default `str` dtype being selected by object + or ( + isinstance(dtype, StringDtype) + and dtype.na_value is np.nan + and np.object_ in dtypes_set + ) + ) + + def predicate(arr: ArrayLike) -> bool: + dtype = arr.dtype + if include: + if not dtype_predicate(dtype, include): + return False + + if exclude: + if dtype_predicate(dtype, exclude): + return False + + return True + + mgr = self._mgr._get_data_subset(predicate).copy(deep=None) + # error: Incompatible return value type (got "DataFrame", expected "Self") + return self._constructor_from_mgr(mgr, axes=mgr.axes).__finalize__(self) # type: ignore[return-value] + + def insert( + self, + loc: int, + column: Hashable, + value: Scalar | AnyArrayLike, + allow_duplicates: bool | lib.NoDefault = lib.no_default, + ) -> None: + """ + Insert column into DataFrame at specified location. + + Raises a ValueError if `column` is already contained in the DataFrame, + unless `allow_duplicates` is set to True. + + Parameters + ---------- + loc : int + Insertion index. Must verify 0 <= loc <= len(columns). + column : str, number, or hashable object + Label of the inserted column. + value : Scalar, Series, or array-like + Content of the inserted column. + allow_duplicates : bool, optional, default lib.no_default + Allow duplicate column labels to be created. + + See Also + -------- + Index.insert : Insert new item by index. + + Examples + -------- + >>> df = pd.DataFrame({'col1': [1, 2], 'col2': [3, 4]}) + >>> df + col1 col2 + 0 1 3 + 1 2 4 + >>> df.insert(1, "newcol", [99, 99]) + >>> df + col1 newcol col2 + 0 1 99 3 + 1 2 99 4 + >>> df.insert(0, "col1", [100, 100], allow_duplicates=True) + >>> df + col1 col1 newcol col2 + 0 100 1 99 3 + 1 100 2 99 4 + + Notice that pandas uses index alignment in case of `value` from type `Series`: + + >>> df.insert(0, "col0", pd.Series([5, 6], index=[1, 2])) + >>> df + col0 col1 col1 newcol col2 + 0 NaN 100 1 99 3 + 1 5.0 100 2 99 4 + """ + if allow_duplicates is lib.no_default: + allow_duplicates = False + if allow_duplicates and not self.flags.allows_duplicate_labels: + raise ValueError( + "Cannot specify 'allow_duplicates=True' when " + "'self.flags.allows_duplicate_labels' is False." + ) + if not allow_duplicates and column in self.columns: + # Should this be a different kind of error?? + raise ValueError(f"cannot insert {column}, already exists") + if not is_integer(loc): + raise TypeError("loc must be int") + # convert non stdlib ints to satisfy typing checks + loc = int(loc) + if isinstance(value, DataFrame) and len(value.columns) > 1: + raise ValueError( + f"Expected a one-dimensional object, got a DataFrame with " + f"{len(value.columns)} columns instead." + ) + elif isinstance(value, DataFrame): + value = value.iloc[:, 0] + + value, refs = self._sanitize_column(value) + self._mgr.insert(loc, column, value, refs=refs) + + def assign(self, **kwargs) -> DataFrame: + r""" + Assign new columns to a DataFrame. + + Returns a new object with all original columns in addition to new ones. + Existing columns that are re-assigned will be overwritten. + + Parameters + ---------- + **kwargs : dict of {str: callable or Series} + The column names are keywords. If the values are + callable, they are computed on the DataFrame and + assigned to the new columns. The callable must not + change input DataFrame (though pandas doesn't check it). + If the values are not callable, (e.g. a Series, scalar, or array), + they are simply assigned. + + Returns + ------- + DataFrame + A new DataFrame with the new columns in addition to + all the existing columns. + + Notes + ----- + Assigning multiple columns within the same ``assign`` is possible. + Later items in '\*\*kwargs' may refer to newly created or modified + columns in 'df'; items are computed and assigned into 'df' in order. + + Examples + -------- + >>> df = pd.DataFrame({'temp_c': [17.0, 25.0]}, + ... index=['Portland', 'Berkeley']) + >>> df + temp_c + Portland 17.0 + Berkeley 25.0 + + Where the value is a callable, evaluated on `df`: + + >>> df.assign(temp_f=lambda x: x.temp_c * 9 / 5 + 32) + temp_c temp_f + Portland 17.0 62.6 + Berkeley 25.0 77.0 + + Alternatively, the same behavior can be achieved by directly + referencing an existing Series or sequence: + + >>> df.assign(temp_f=df['temp_c'] * 9 / 5 + 32) + temp_c temp_f + Portland 17.0 62.6 + Berkeley 25.0 77.0 + + You can create multiple columns within the same assign where one + of the columns depends on another one defined within the same assign: + + >>> df.assign(temp_f=lambda x: x['temp_c'] * 9 / 5 + 32, + ... temp_k=lambda x: (x['temp_f'] + 459.67) * 5 / 9) + temp_c temp_f temp_k + Portland 17.0 62.6 290.15 + Berkeley 25.0 77.0 298.15 + """ + data = self.copy(deep=None) + + for k, v in kwargs.items(): + data[k] = com.apply_if_callable(v, data) + return data + + def _sanitize_column(self, value) -> tuple[ArrayLike, BlockValuesRefs | None]: + """ + Ensures new columns (which go into the BlockManager as new blocks) are + always copied (or a reference is being tracked to them under CoW) + and converted into an array. + + Parameters + ---------- + value : scalar, Series, or array-like + + Returns + ------- + tuple of numpy.ndarray or ExtensionArray and optional BlockValuesRefs + """ + self._ensure_valid_index(value) + + # Using a DataFrame would mean coercing values to one dtype + assert not isinstance(value, DataFrame) + if is_dict_like(value): + if not isinstance(value, Series): + value = Series(value) + return _reindex_for_setitem(value, self.index) + + if is_list_like(value): + com.require_length_match(value, self.index) + arr = sanitize_array(value, self.index, copy=True, allow_2d=True) + if ( + isinstance(value, Index) + and value.dtype == "object" + and arr.dtype != value.dtype + ): # + # TODO: Remove kludge in sanitize_array for string mode when enforcing + # this deprecation + warnings.warn( + "Setting an Index with object dtype into a DataFrame will stop " + "inferring another dtype in a future version. Cast the Index " + "explicitly before setting it into the DataFrame.", + FutureWarning, + stacklevel=find_stack_level(), + ) + return arr, None + + @property + def _series(self): + return {item: self._ixs(idx, axis=1) for idx, item in enumerate(self.columns)} + + # ---------------------------------------------------------------------- + # Reindexing and alignment + + def _reindex_multi( + self, axes: dict[str, Index], copy: bool, fill_value + ) -> DataFrame: + """ + We are guaranteed non-Nones in the axes. + """ + + new_index, row_indexer = self.index.reindex(axes["index"]) + new_columns, col_indexer = self.columns.reindex(axes["columns"]) + + if row_indexer is not None and col_indexer is not None: + # Fastpath. By doing two 'take's at once we avoid making an + # unnecessary copy. + # We only get here with `self._can_fast_transpose`, which (almost) + # ensures that self.values is cheap. It may be worth making this + # condition more specific. + indexer = row_indexer, col_indexer + new_values = take_2d_multi(self.values, indexer, fill_value=fill_value) + return self._constructor( + new_values, index=new_index, columns=new_columns, copy=False + ) + else: + return self._reindex_with_indexers( + {0: [new_index, row_indexer], 1: [new_columns, col_indexer]}, + copy=copy, + fill_value=fill_value, + ) + + @Appender( + """ + Examples + -------- + >>> df = pd.DataFrame({"A": [1, 2, 3], "B": [4, 5, 6]}) + + Change the row labels. + + >>> df.set_axis(['a', 'b', 'c'], axis='index') + A B + a 1 4 + b 2 5 + c 3 6 + + Change the column labels. + + >>> df.set_axis(['I', 'II'], axis='columns') + I II + 0 1 4 + 1 2 5 + 2 3 6 + """ + ) + @Substitution( + klass=_shared_doc_kwargs["klass"], + axes_single_arg=_shared_doc_kwargs["axes_single_arg"], + extended_summary_sub=" column or", + axis_description_sub=", and 1 identifies the columns", + see_also_sub=" or columns", + ) + @Appender(NDFrame.set_axis.__doc__) + def set_axis( + self, + labels, + *, + axis: Axis = 0, + copy: bool | None = None, + ) -> DataFrame: + return super().set_axis(labels, axis=axis, copy=copy) + + @doc( + NDFrame.reindex, + klass=_shared_doc_kwargs["klass"], + optional_reindex=_shared_doc_kwargs["optional_reindex"], + ) + def reindex( + self, + labels=None, + *, + index=None, + columns=None, + axis: Axis | None = None, + method: ReindexMethod | None = None, + copy: bool | None = None, + level: Level | None = None, + fill_value: Scalar | None = np.nan, + limit: int | None = None, + tolerance=None, + ) -> DataFrame: + return super().reindex( + labels=labels, + index=index, + columns=columns, + axis=axis, + method=method, + copy=copy, + level=level, + fill_value=fill_value, + limit=limit, + tolerance=tolerance, + ) + + @overload + def drop( + self, + labels: IndexLabel = ..., + *, + axis: Axis = ..., + index: IndexLabel = ..., + columns: IndexLabel = ..., + level: Level = ..., + inplace: Literal[True], + errors: IgnoreRaise = ..., + ) -> None: + ... + + @overload + def drop( + self, + labels: IndexLabel = ..., + *, + axis: Axis = ..., + index: IndexLabel = ..., + columns: IndexLabel = ..., + level: Level = ..., + inplace: Literal[False] = ..., + errors: IgnoreRaise = ..., + ) -> DataFrame: + ... + + @overload + def drop( + self, + labels: IndexLabel = ..., + *, + axis: Axis = ..., + index: IndexLabel = ..., + columns: IndexLabel = ..., + level: Level = ..., + inplace: bool = ..., + errors: IgnoreRaise = ..., + ) -> DataFrame | None: + ... + + def drop( + self, + labels: IndexLabel | None = None, + *, + axis: Axis = 0, + index: IndexLabel | None = None, + columns: IndexLabel | None = None, + level: Level | None = None, + inplace: bool = False, + errors: IgnoreRaise = "raise", + ) -> DataFrame | None: + """ + Drop specified labels from rows or columns. + + Remove rows or columns by specifying label names and corresponding + axis, or by directly specifying index or column names. When using a + multi-index, labels on different levels can be removed by specifying + the level. See the :ref:`user guide ` + for more information about the now unused levels. + + Parameters + ---------- + labels : single label or list-like + Index or column labels to drop. A tuple will be used as a single + label and not treated as a list-like. + axis : {0 or 'index', 1 or 'columns'}, default 0 + Whether to drop labels from the index (0 or 'index') or + columns (1 or 'columns'). + index : single label or list-like + Alternative to specifying axis (``labels, axis=0`` + is equivalent to ``index=labels``). + columns : single label or list-like + Alternative to specifying axis (``labels, axis=1`` + is equivalent to ``columns=labels``). + level : int or level name, optional + For MultiIndex, level from which the labels will be removed. + inplace : bool, default False + If False, return a copy. Otherwise, do operation + in place and return None. + errors : {'ignore', 'raise'}, default 'raise' + If 'ignore', suppress error and only existing labels are + dropped. + + Returns + ------- + DataFrame or None + Returns DataFrame or None DataFrame with the specified + index or column labels removed or None if inplace=True. + + Raises + ------ + KeyError + If any of the labels is not found in the selected axis. + + See Also + -------- + DataFrame.loc : Label-location based indexer for selection by label. + DataFrame.dropna : Return DataFrame with labels on given axis omitted + where (all or any) data are missing. + DataFrame.drop_duplicates : Return DataFrame with duplicate rows + removed, optionally only considering certain columns. + Series.drop : Return Series with specified index labels removed. + + Examples + -------- + >>> df = pd.DataFrame(np.arange(12).reshape(3, 4), + ... columns=['A', 'B', 'C', 'D']) + >>> df + A B C D + 0 0 1 2 3 + 1 4 5 6 7 + 2 8 9 10 11 + + Drop columns + + >>> df.drop(['B', 'C'], axis=1) + A D + 0 0 3 + 1 4 7 + 2 8 11 + + >>> df.drop(columns=['B', 'C']) + A D + 0 0 3 + 1 4 7 + 2 8 11 + + Drop a row by index + + >>> df.drop([0, 1]) + A B C D + 2 8 9 10 11 + + Drop columns and/or rows of MultiIndex DataFrame + + >>> midx = pd.MultiIndex(levels=[['llama', 'cow', 'falcon'], + ... ['speed', 'weight', 'length']], + ... codes=[[0, 0, 0, 1, 1, 1, 2, 2, 2], + ... [0, 1, 2, 0, 1, 2, 0, 1, 2]]) + >>> df = pd.DataFrame(index=midx, columns=['big', 'small'], + ... data=[[45, 30], [200, 100], [1.5, 1], [30, 20], + ... [250, 150], [1.5, 0.8], [320, 250], + ... [1, 0.8], [0.3, 0.2]]) + >>> df + big small + llama speed 45.0 30.0 + weight 200.0 100.0 + length 1.5 1.0 + cow speed 30.0 20.0 + weight 250.0 150.0 + length 1.5 0.8 + falcon speed 320.0 250.0 + weight 1.0 0.8 + length 0.3 0.2 + + Drop a specific index combination from the MultiIndex + DataFrame, i.e., drop the combination ``'falcon'`` and + ``'weight'``, which deletes only the corresponding row + + >>> df.drop(index=('falcon', 'weight')) + big small + llama speed 45.0 30.0 + weight 200.0 100.0 + length 1.5 1.0 + cow speed 30.0 20.0 + weight 250.0 150.0 + length 1.5 0.8 + falcon speed 320.0 250.0 + length 0.3 0.2 + + >>> df.drop(index='cow', columns='small') + big + llama speed 45.0 + weight 200.0 + length 1.5 + falcon speed 320.0 + weight 1.0 + length 0.3 + + >>> df.drop(index='length', level=1) + big small + llama speed 45.0 30.0 + weight 200.0 100.0 + cow speed 30.0 20.0 + weight 250.0 150.0 + falcon speed 320.0 250.0 + weight 1.0 0.8 + """ + return super().drop( + labels=labels, + axis=axis, + index=index, + columns=columns, + level=level, + inplace=inplace, + errors=errors, + ) + + @overload + def rename( + self, + mapper: Renamer | None = ..., + *, + index: Renamer | None = ..., + columns: Renamer | None = ..., + axis: Axis | None = ..., + copy: bool | None = ..., + inplace: Literal[True], + level: Level = ..., + errors: IgnoreRaise = ..., + ) -> None: + ... + + @overload + def rename( + self, + mapper: Renamer | None = ..., + *, + index: Renamer | None = ..., + columns: Renamer | None = ..., + axis: Axis | None = ..., + copy: bool | None = ..., + inplace: Literal[False] = ..., + level: Level = ..., + errors: IgnoreRaise = ..., + ) -> DataFrame: + ... + + @overload + def rename( + self, + mapper: Renamer | None = ..., + *, + index: Renamer | None = ..., + columns: Renamer | None = ..., + axis: Axis | None = ..., + copy: bool | None = ..., + inplace: bool = ..., + level: Level = ..., + errors: IgnoreRaise = ..., + ) -> DataFrame | None: + ... + + def rename( + self, + mapper: Renamer | None = None, + *, + index: Renamer | None = None, + columns: Renamer | None = None, + axis: Axis | None = None, + copy: bool | None = None, + inplace: bool = False, + level: Level | None = None, + errors: IgnoreRaise = "ignore", + ) -> DataFrame | None: + """ + Rename columns or index labels. + + Function / dict values must be unique (1-to-1). Labels not contained in + a dict / Series will be left as-is. Extra labels listed don't throw an + error. + + See the :ref:`user guide ` for more. + + Parameters + ---------- + mapper : dict-like or function + Dict-like or function transformations to apply to + that axis' values. Use either ``mapper`` and ``axis`` to + specify the axis to target with ``mapper``, or ``index`` and + ``columns``. + index : dict-like or function + Alternative to specifying axis (``mapper, axis=0`` + is equivalent to ``index=mapper``). + columns : dict-like or function + Alternative to specifying axis (``mapper, axis=1`` + is equivalent to ``columns=mapper``). + axis : {0 or 'index', 1 or 'columns'}, default 0 + Axis to target with ``mapper``. Can be either the axis name + ('index', 'columns') or number (0, 1). The default is 'index'. + copy : bool, default True + Also copy underlying data. + + .. note:: + The `copy` keyword will change behavior in pandas 3.0. + `Copy-on-Write + `__ + will be enabled by default, which means that all methods with a + `copy` keyword will use a lazy copy mechanism to defer the copy and + ignore the `copy` keyword. The `copy` keyword will be removed in a + future version of pandas. + + You can already get the future behavior and improvements through + enabling copy on write ``pd.options.mode.copy_on_write = True`` + inplace : bool, default False + Whether to modify the DataFrame rather than creating a new one. + If True then value of copy is ignored. + level : int or level name, default None + In case of a MultiIndex, only rename labels in the specified + level. + errors : {'ignore', 'raise'}, default 'ignore' + If 'raise', raise a `KeyError` when a dict-like `mapper`, `index`, + or `columns` contains labels that are not present in the Index + being transformed. + If 'ignore', existing keys will be renamed and extra keys will be + ignored. + + Returns + ------- + DataFrame or None + DataFrame with the renamed axis labels or None if ``inplace=True``. + + Raises + ------ + KeyError + If any of the labels is not found in the selected axis and + "errors='raise'". + + See Also + -------- + DataFrame.rename_axis : Set the name of the axis. + + Examples + -------- + ``DataFrame.rename`` supports two calling conventions + + * ``(index=index_mapper, columns=columns_mapper, ...)`` + * ``(mapper, axis={'index', 'columns'}, ...)`` + + We *highly* recommend using keyword arguments to clarify your + intent. + + Rename columns using a mapping: + + >>> df = pd.DataFrame({"A": [1, 2, 3], "B": [4, 5, 6]}) + >>> df.rename(columns={"A": "a", "B": "c"}) + a c + 0 1 4 + 1 2 5 + 2 3 6 + + Rename index using a mapping: + + >>> df.rename(index={0: "x", 1: "y", 2: "z"}) + A B + x 1 4 + y 2 5 + z 3 6 + + Cast index labels to a different type: + + >>> df.index + RangeIndex(start=0, stop=3, step=1) + >>> df.rename(index=str).index + Index(['0', '1', '2'], dtype='object') + + >>> df.rename(columns={"A": "a", "B": "b", "C": "c"}, errors="raise") + Traceback (most recent call last): + KeyError: ['C'] not found in axis + + Using axis-style parameters: + + >>> df.rename(str.lower, axis='columns') + a b + 0 1 4 + 1 2 5 + 2 3 6 + + >>> df.rename({1: 2, 2: 4}, axis='index') + A B + 0 1 4 + 2 2 5 + 4 3 6 + """ + return super()._rename( + mapper=mapper, + index=index, + columns=columns, + axis=axis, + copy=copy, + inplace=inplace, + level=level, + errors=errors, + ) + + def pop(self, item: Hashable) -> Series: + """ + Return item and drop from frame. Raise KeyError if not found. + + Parameters + ---------- + item : label + Label of column to be popped. + + Returns + ------- + Series + + Examples + -------- + >>> df = pd.DataFrame([('falcon', 'bird', 389.0), + ... ('parrot', 'bird', 24.0), + ... ('lion', 'mammal', 80.5), + ... ('monkey', 'mammal', np.nan)], + ... columns=('name', 'class', 'max_speed')) + >>> df + name class max_speed + 0 falcon bird 389.0 + 1 parrot bird 24.0 + 2 lion mammal 80.5 + 3 monkey mammal NaN + + >>> df.pop('class') + 0 bird + 1 bird + 2 mammal + 3 mammal + Name: class, dtype: object + + >>> df + name max_speed + 0 falcon 389.0 + 1 parrot 24.0 + 2 lion 80.5 + 3 monkey NaN + """ + return super().pop(item=item) + + def _replace_columnwise( + self, mapping: dict[Hashable, tuple[Any, Any]], inplace: bool, regex + ): + """ + Dispatch to Series.replace column-wise. + + Parameters + ---------- + mapping : dict + of the form {col: (target, value)} + inplace : bool + regex : bool or same types as `to_replace` in DataFrame.replace + + Returns + ------- + DataFrame or None + """ + # Operate column-wise + res = self if inplace else self.copy(deep=None) + ax = self.columns + + for i, ax_value in enumerate(ax): + if ax_value in mapping: + ser = self.iloc[:, i] + + target, value = mapping[ax_value] + newobj = ser.replace(target, value, regex=regex) + + res._iset_item(i, newobj, inplace=inplace) + + if inplace: + return + return res.__finalize__(self) + + @doc(NDFrame.shift, klass=_shared_doc_kwargs["klass"]) + def shift( + self, + periods: int | Sequence[int] = 1, + freq: Frequency | None = None, + axis: Axis = 0, + fill_value: Hashable = lib.no_default, + suffix: str | None = None, + ) -> DataFrame: + if freq is not None and fill_value is not lib.no_default: + # GH#53832 + warnings.warn( + "Passing a 'freq' together with a 'fill_value' silently ignores " + "the fill_value and is deprecated. This will raise in a future " + "version.", + FutureWarning, + stacklevel=find_stack_level(), + ) + fill_value = lib.no_default + + if self.empty: + return self.copy() + + axis = self._get_axis_number(axis) + + if is_list_like(periods): + periods = cast(Sequence, periods) + if axis == 1: + raise ValueError( + "If `periods` contains multiple shifts, `axis` cannot be 1." + ) + if len(periods) == 0: + raise ValueError("If `periods` is an iterable, it cannot be empty.") + from pandas.core.reshape.concat import concat + + shifted_dataframes = [] + for period in periods: + if not is_integer(period): + raise TypeError( + f"Periods must be integer, but {period} is {type(period)}." + ) + period = cast(int, period) + shifted_dataframes.append( + super() + .shift(periods=period, freq=freq, axis=axis, fill_value=fill_value) + .add_suffix(f"{suffix}_{period}" if suffix else f"_{period}") + ) + return concat(shifted_dataframes, axis=1) + elif suffix: + raise ValueError("Cannot specify `suffix` if `periods` is an int.") + periods = cast(int, periods) + + ncols = len(self.columns) + arrays = self._mgr.arrays + if axis == 1 and periods != 0 and ncols > 0 and freq is None: + if fill_value is lib.no_default: + # We will infer fill_value to match the closest column + + # Use a column that we know is valid for our column's dtype GH#38434 + label = self.columns[0] + + if periods > 0: + result = self.iloc[:, :-periods] + for col in range(min(ncols, abs(periods))): + # TODO(EA2D): doing this in a loop unnecessary with 2D EAs + # Define filler inside loop so we get a copy + filler = self.iloc[:, 0].shift(len(self)) + result.insert(0, label, filler, allow_duplicates=True) + else: + result = self.iloc[:, -periods:] + for col in range(min(ncols, abs(periods))): + # Define filler inside loop so we get a copy + filler = self.iloc[:, -1].shift(len(self)) + result.insert( + len(result.columns), label, filler, allow_duplicates=True + ) + + result.columns = self.columns.copy() + return result + elif len(arrays) > 1 or ( + # If we only have one block and we know that we can't + # keep the same dtype (i.e. the _can_hold_element check) + # then we can go through the reindex_indexer path + # (and avoid casting logic in the Block method). + not can_hold_element(arrays[0], fill_value) + ): + # GH#35488 we need to watch out for multi-block cases + # We only get here with fill_value not-lib.no_default + nper = abs(periods) + nper = min(nper, ncols) + if periods > 0: + indexer = np.array( + [-1] * nper + list(range(ncols - periods)), dtype=np.intp + ) + else: + indexer = np.array( + list(range(nper, ncols)) + [-1] * nper, dtype=np.intp + ) + mgr = self._mgr.reindex_indexer( + self.columns, + indexer, + axis=0, + fill_value=fill_value, + allow_dups=True, + ) + res_df = self._constructor_from_mgr(mgr, axes=mgr.axes) + return res_df.__finalize__(self, method="shift") + else: + return self.T.shift(periods=periods, fill_value=fill_value).T + + return super().shift( + periods=periods, freq=freq, axis=axis, fill_value=fill_value + ) + + @overload + def set_index( + self, + keys, + *, + drop: bool = ..., + append: bool = ..., + inplace: Literal[False] = ..., + verify_integrity: bool = ..., + ) -> DataFrame: + ... + + @overload + def set_index( + self, + keys, + *, + drop: bool = ..., + append: bool = ..., + inplace: Literal[True], + verify_integrity: bool = ..., + ) -> None: + ... + + def set_index( + self, + keys, + *, + drop: bool = True, + append: bool = False, + inplace: bool = False, + verify_integrity: bool = False, + ) -> DataFrame | None: + """ + Set the DataFrame index using existing columns. + + Set the DataFrame index (row labels) using one or more existing + columns or arrays (of the correct length). The index can replace the + existing index or expand on it. + + Parameters + ---------- + keys : label or array-like or list of labels/arrays + This parameter can be either a single column key, a single array of + the same length as the calling DataFrame, or a list containing an + arbitrary combination of column keys and arrays. Here, "array" + encompasses :class:`Series`, :class:`Index`, ``np.ndarray``, and + instances of :class:`~collections.abc.Iterator`. + drop : bool, default True + Delete columns to be used as the new index. + append : bool, default False + Whether to append columns to existing index. + inplace : bool, default False + Whether to modify the DataFrame rather than creating a new one. + verify_integrity : bool, default False + Check the new index for duplicates. Otherwise defer the check until + necessary. Setting to False will improve the performance of this + method. + + Returns + ------- + DataFrame or None + Changed row labels or None if ``inplace=True``. + + See Also + -------- + DataFrame.reset_index : Opposite of set_index. + DataFrame.reindex : Change to new indices or expand indices. + DataFrame.reindex_like : Change to same indices as other DataFrame. + + Examples + -------- + >>> df = pd.DataFrame({'month': [1, 4, 7, 10], + ... 'year': [2012, 2014, 2013, 2014], + ... 'sale': [55, 40, 84, 31]}) + >>> df + month year sale + 0 1 2012 55 + 1 4 2014 40 + 2 7 2013 84 + 3 10 2014 31 + + Set the index to become the 'month' column: + + >>> df.set_index('month') + year sale + month + 1 2012 55 + 4 2014 40 + 7 2013 84 + 10 2014 31 + + Create a MultiIndex using columns 'year' and 'month': + + >>> df.set_index(['year', 'month']) + sale + year month + 2012 1 55 + 2014 4 40 + 2013 7 84 + 2014 10 31 + + Create a MultiIndex using an Index and a column: + + >>> df.set_index([pd.Index([1, 2, 3, 4]), 'year']) + month sale + year + 1 2012 1 55 + 2 2014 4 40 + 3 2013 7 84 + 4 2014 10 31 + + Create a MultiIndex using two Series: + + >>> s = pd.Series([1, 2, 3, 4]) + >>> df.set_index([s, s**2]) + month year sale + 1 1 1 2012 55 + 2 4 4 2014 40 + 3 9 7 2013 84 + 4 16 10 2014 31 + """ + inplace = validate_bool_kwarg(inplace, "inplace") + self._check_inplace_and_allows_duplicate_labels(inplace) + if not isinstance(keys, list): + keys = [keys] + + err_msg = ( + 'The parameter "keys" may be a column key, one-dimensional ' + "array, or a list containing only valid column keys and " + "one-dimensional arrays." + ) + + missing: list[Hashable] = [] + for col in keys: + if isinstance(col, (Index, Series, np.ndarray, list, abc.Iterator)): + # arrays are fine as long as they are one-dimensional + # iterators get converted to list below + if getattr(col, "ndim", 1) != 1: + raise ValueError(err_msg) + else: + # everything else gets tried as a key; see GH 24969 + try: + found = col in self.columns + except TypeError as err: + raise TypeError( + f"{err_msg}. Received column of type {type(col)}" + ) from err + else: + if not found: + missing.append(col) + + if missing: + raise KeyError(f"None of {missing} are in the columns") + + if inplace: + frame = self + else: + # GH 49473 Use "lazy copy" with Copy-on-Write + frame = self.copy(deep=None) + + arrays: list[Index] = [] + names: list[Hashable] = [] + if append: + names = list(self.index.names) + if isinstance(self.index, MultiIndex): + arrays.extend( + self.index._get_level_values(i) for i in range(self.index.nlevels) + ) + else: + arrays.append(self.index) + + to_remove: list[Hashable] = [] + for col in keys: + if isinstance(col, MultiIndex): + arrays.extend(col._get_level_values(n) for n in range(col.nlevels)) + names.extend(col.names) + elif isinstance(col, (Index, Series)): + # if Index then not MultiIndex (treated above) + + # error: Argument 1 to "append" of "list" has incompatible type + # "Union[Index, Series]"; expected "Index" + arrays.append(col) # type: ignore[arg-type] + names.append(col.name) + elif isinstance(col, (list, np.ndarray)): + # error: Argument 1 to "append" of "list" has incompatible type + # "Union[List[Any], ndarray]"; expected "Index" + arrays.append(col) # type: ignore[arg-type] + names.append(None) + elif isinstance(col, abc.Iterator): + # error: Argument 1 to "append" of "list" has incompatible type + # "List[Any]"; expected "Index" + arrays.append(list(col)) # type: ignore[arg-type] + names.append(None) + # from here, col can only be a column label + else: + arrays.append(frame[col]) + names.append(col) + if drop: + to_remove.append(col) + + if len(arrays[-1]) != len(self): + # check newest element against length of calling frame, since + # ensure_index_from_sequences would not raise for append=False. + raise ValueError( + f"Length mismatch: Expected {len(self)} rows, " + f"received array of length {len(arrays[-1])}" + ) + + index = ensure_index_from_sequences(arrays, names) + + if verify_integrity and not index.is_unique: + duplicates = index[index.duplicated()].unique() + raise ValueError(f"Index has duplicate keys: {duplicates}") + + # use set to handle duplicate column names gracefully in case of drop + for c in set(to_remove): + del frame[c] + + # clear up memory usage + index._cleanup() + + frame.index = index + + if not inplace: + return frame + return None + + @overload + def reset_index( + self, + level: IndexLabel = ..., + *, + drop: bool = ..., + inplace: Literal[False] = ..., + col_level: Hashable = ..., + col_fill: Hashable = ..., + allow_duplicates: bool | lib.NoDefault = ..., + names: Hashable | Sequence[Hashable] | None = None, + ) -> DataFrame: + ... + + @overload + def reset_index( + self, + level: IndexLabel = ..., + *, + drop: bool = ..., + inplace: Literal[True], + col_level: Hashable = ..., + col_fill: Hashable = ..., + allow_duplicates: bool | lib.NoDefault = ..., + names: Hashable | Sequence[Hashable] | None = None, + ) -> None: + ... + + @overload + def reset_index( + self, + level: IndexLabel = ..., + *, + drop: bool = ..., + inplace: bool = ..., + col_level: Hashable = ..., + col_fill: Hashable = ..., + allow_duplicates: bool | lib.NoDefault = ..., + names: Hashable | Sequence[Hashable] | None = None, + ) -> DataFrame | None: + ... + + def reset_index( + self, + level: IndexLabel | None = None, + *, + drop: bool = False, + inplace: bool = False, + col_level: Hashable = 0, + col_fill: Hashable = "", + allow_duplicates: bool | lib.NoDefault = lib.no_default, + names: Hashable | Sequence[Hashable] | None = None, + ) -> DataFrame | None: + """ + Reset the index, or a level of it. + + Reset the index of the DataFrame, and use the default one instead. + If the DataFrame has a MultiIndex, this method can remove one or more + levels. + + Parameters + ---------- + level : int, str, tuple, or list, default None + Only remove the given levels from the index. Removes all levels by + default. + drop : bool, default False + Do not try to insert index into dataframe columns. This resets + the index to the default integer index. + inplace : bool, default False + Whether to modify the DataFrame rather than creating a new one. + col_level : int or str, default 0 + If the columns have multiple levels, determines which level the + labels are inserted into. By default it is inserted into the first + level. + col_fill : object, default '' + If the columns have multiple levels, determines how the other + levels are named. If None then the index name is repeated. + allow_duplicates : bool, optional, default lib.no_default + Allow duplicate column labels to be created. + + .. versionadded:: 1.5.0 + + names : int, str or 1-dimensional list, default None + Using the given string, rename the DataFrame column which contains the + index data. If the DataFrame has a MultiIndex, this has to be a list or + tuple with length equal to the number of levels. + + .. versionadded:: 1.5.0 + + Returns + ------- + DataFrame or None + DataFrame with the new index or None if ``inplace=True``. + + See Also + -------- + DataFrame.set_index : Opposite of reset_index. + DataFrame.reindex : Change to new indices or expand indices. + DataFrame.reindex_like : Change to same indices as other DataFrame. + + Examples + -------- + >>> df = pd.DataFrame([('bird', 389.0), + ... ('bird', 24.0), + ... ('mammal', 80.5), + ... ('mammal', np.nan)], + ... index=['falcon', 'parrot', 'lion', 'monkey'], + ... columns=('class', 'max_speed')) + >>> df + class max_speed + falcon bird 389.0 + parrot bird 24.0 + lion mammal 80.5 + monkey mammal NaN + + When we reset the index, the old index is added as a column, and a + new sequential index is used: + + >>> df.reset_index() + index class max_speed + 0 falcon bird 389.0 + 1 parrot bird 24.0 + 2 lion mammal 80.5 + 3 monkey mammal NaN + + We can use the `drop` parameter to avoid the old index being added as + a column: + + >>> df.reset_index(drop=True) + class max_speed + 0 bird 389.0 + 1 bird 24.0 + 2 mammal 80.5 + 3 mammal NaN + + You can also use `reset_index` with `MultiIndex`. + + >>> index = pd.MultiIndex.from_tuples([('bird', 'falcon'), + ... ('bird', 'parrot'), + ... ('mammal', 'lion'), + ... ('mammal', 'monkey')], + ... names=['class', 'name']) + >>> columns = pd.MultiIndex.from_tuples([('speed', 'max'), + ... ('species', 'type')]) + >>> df = pd.DataFrame([(389.0, 'fly'), + ... (24.0, 'fly'), + ... (80.5, 'run'), + ... (np.nan, 'jump')], + ... index=index, + ... columns=columns) + >>> df + speed species + max type + class name + bird falcon 389.0 fly + parrot 24.0 fly + mammal lion 80.5 run + monkey NaN jump + + Using the `names` parameter, choose a name for the index column: + + >>> df.reset_index(names=['classes', 'names']) + classes names speed species + max type + 0 bird falcon 389.0 fly + 1 bird parrot 24.0 fly + 2 mammal lion 80.5 run + 3 mammal monkey NaN jump + + If the index has multiple levels, we can reset a subset of them: + + >>> df.reset_index(level='class') + class speed species + max type + name + falcon bird 389.0 fly + parrot bird 24.0 fly + lion mammal 80.5 run + monkey mammal NaN jump + + If we are not dropping the index, by default, it is placed in the top + level. We can place it in another level: + + >>> df.reset_index(level='class', col_level=1) + speed species + class max type + name + falcon bird 389.0 fly + parrot bird 24.0 fly + lion mammal 80.5 run + monkey mammal NaN jump + + When the index is inserted under another level, we can specify under + which one with the parameter `col_fill`: + + >>> df.reset_index(level='class', col_level=1, col_fill='species') + species speed species + class max type + name + falcon bird 389.0 fly + parrot bird 24.0 fly + lion mammal 80.5 run + monkey mammal NaN jump + + If we specify a nonexistent level for `col_fill`, it is created: + + >>> df.reset_index(level='class', col_level=1, col_fill='genus') + genus speed species + class max type + name + falcon bird 389.0 fly + parrot bird 24.0 fly + lion mammal 80.5 run + monkey mammal NaN jump + """ + inplace = validate_bool_kwarg(inplace, "inplace") + self._check_inplace_and_allows_duplicate_labels(inplace) + if inplace: + new_obj = self + else: + new_obj = self.copy(deep=None) + if allow_duplicates is not lib.no_default: + allow_duplicates = validate_bool_kwarg(allow_duplicates, "allow_duplicates") + + new_index = default_index(len(new_obj)) + if level is not None: + if not isinstance(level, (tuple, list)): + level = [level] + level = [self.index._get_level_number(lev) for lev in level] + if len(level) < self.index.nlevels: + new_index = self.index.droplevel(level) + + if not drop: + to_insert: Iterable[tuple[Any, Any | None]] + + default = "index" if "index" not in self else "level_0" + names = self.index._get_default_index_names(names, default) + + if isinstance(self.index, MultiIndex): + to_insert = zip(self.index.levels, self.index.codes) + else: + to_insert = ((self.index, None),) + + multi_col = isinstance(self.columns, MultiIndex) + for i, (lev, lab) in reversed(list(enumerate(to_insert))): + if level is not None and i not in level: + continue + name = names[i] + if multi_col: + col_name = list(name) if isinstance(name, tuple) else [name] + if col_fill is None: + if len(col_name) not in (1, self.columns.nlevels): + raise ValueError( + "col_fill=None is incompatible " + f"with incomplete column name {name}" + ) + col_fill = col_name[0] + + lev_num = self.columns._get_level_number(col_level) + name_lst = [col_fill] * lev_num + col_name + missing = self.columns.nlevels - len(name_lst) + name_lst += [col_fill] * missing + name = tuple(name_lst) + + # to ndarray and maybe infer different dtype + level_values = lev._values + if level_values.dtype == np.object_: + level_values = lib.maybe_convert_objects(level_values) + + if lab is not None: + # if we have the codes, extract the values with a mask + level_values = algorithms.take( + level_values, lab, allow_fill=True, fill_value=lev._na_value + ) + + new_obj.insert( + 0, + name, + level_values, + allow_duplicates=allow_duplicates, + ) + + new_obj.index = new_index + if not inplace: + return new_obj + + return None + + # ---------------------------------------------------------------------- + # Reindex-based selection methods + + @doc(NDFrame.isna, klass=_shared_doc_kwargs["klass"]) + def isna(self) -> DataFrame: + res_mgr = self._mgr.isna(func=isna) + result = self._constructor_from_mgr(res_mgr, axes=res_mgr.axes) + return result.__finalize__(self, method="isna") + + @doc(NDFrame.isna, klass=_shared_doc_kwargs["klass"]) + def isnull(self) -> DataFrame: + """ + DataFrame.isnull is an alias for DataFrame.isna. + """ + return self.isna() + + @doc(NDFrame.notna, klass=_shared_doc_kwargs["klass"]) + def notna(self) -> DataFrame: + return ~self.isna() + + @doc(NDFrame.notna, klass=_shared_doc_kwargs["klass"]) + def notnull(self) -> DataFrame: + """ + DataFrame.notnull is an alias for DataFrame.notna. + """ + return ~self.isna() + + @overload + def dropna( + self, + *, + axis: Axis = ..., + how: AnyAll | lib.NoDefault = ..., + thresh: int | lib.NoDefault = ..., + subset: IndexLabel = ..., + inplace: Literal[False] = ..., + ignore_index: bool = ..., + ) -> DataFrame: + ... + + @overload + def dropna( + self, + *, + axis: Axis = ..., + how: AnyAll | lib.NoDefault = ..., + thresh: int | lib.NoDefault = ..., + subset: IndexLabel = ..., + inplace: Literal[True], + ignore_index: bool = ..., + ) -> None: + ... + + def dropna( + self, + *, + axis: Axis = 0, + how: AnyAll | lib.NoDefault = lib.no_default, + thresh: int | lib.NoDefault = lib.no_default, + subset: IndexLabel | None = None, + inplace: bool = False, + ignore_index: bool = False, + ) -> DataFrame | None: + """ + Remove missing values. + + See the :ref:`User Guide ` for more on which values are + considered missing, and how to work with missing data. + + Parameters + ---------- + axis : {0 or 'index', 1 or 'columns'}, default 0 + Determine if rows or columns which contain missing values are + removed. + + * 0, or 'index' : Drop rows which contain missing values. + * 1, or 'columns' : Drop columns which contain missing value. + + Only a single axis is allowed. + + how : {'any', 'all'}, default 'any' + Determine if row or column is removed from DataFrame, when we have + at least one NA or all NA. + + * 'any' : If any NA values are present, drop that row or column. + * 'all' : If all values are NA, drop that row or column. + + thresh : int, optional + Require that many non-NA values. Cannot be combined with how. + subset : column label or sequence of labels, optional + Labels along other axis to consider, e.g. if you are dropping rows + these would be a list of columns to include. + inplace : bool, default False + Whether to modify the DataFrame rather than creating a new one. + ignore_index : bool, default ``False`` + If ``True``, the resulting axis will be labeled 0, 1, …, n - 1. + + .. versionadded:: 2.0.0 + + Returns + ------- + DataFrame or None + DataFrame with NA entries dropped from it or None if ``inplace=True``. + + See Also + -------- + DataFrame.isna: Indicate missing values. + DataFrame.notna : Indicate existing (non-missing) values. + DataFrame.fillna : Replace missing values. + Series.dropna : Drop missing values. + Index.dropna : Drop missing indices. + + Examples + -------- + >>> df = pd.DataFrame({"name": ['Alfred', 'Batman', 'Catwoman'], + ... "toy": [np.nan, 'Batmobile', 'Bullwhip'], + ... "born": [pd.NaT, pd.Timestamp("1940-04-25"), + ... pd.NaT]}) + >>> df + name toy born + 0 Alfred NaN NaT + 1 Batman Batmobile 1940-04-25 + 2 Catwoman Bullwhip NaT + + Drop the rows where at least one element is missing. + + >>> df.dropna() + name toy born + 1 Batman Batmobile 1940-04-25 + + Drop the columns where at least one element is missing. + + >>> df.dropna(axis='columns') + name + 0 Alfred + 1 Batman + 2 Catwoman + + Drop the rows where all elements are missing. + + >>> df.dropna(how='all') + name toy born + 0 Alfred NaN NaT + 1 Batman Batmobile 1940-04-25 + 2 Catwoman Bullwhip NaT + + Keep only the rows with at least 2 non-NA values. + + >>> df.dropna(thresh=2) + name toy born + 1 Batman Batmobile 1940-04-25 + 2 Catwoman Bullwhip NaT + + Define in which columns to look for missing values. + + >>> df.dropna(subset=['name', 'toy']) + name toy born + 1 Batman Batmobile 1940-04-25 + 2 Catwoman Bullwhip NaT + """ + if (how is not lib.no_default) and (thresh is not lib.no_default): + raise TypeError( + "You cannot set both the how and thresh arguments at the same time." + ) + + if how is lib.no_default: + how = "any" + + inplace = validate_bool_kwarg(inplace, "inplace") + if isinstance(axis, (tuple, list)): + # GH20987 + raise TypeError("supplying multiple axes to axis is no longer supported.") + + axis = self._get_axis_number(axis) + agg_axis = 1 - axis + + agg_obj = self + if subset is not None: + # subset needs to be list + if not is_list_like(subset): + subset = [subset] + ax = self._get_axis(agg_axis) + indices = ax.get_indexer_for(subset) + check = indices == -1 + if check.any(): + raise KeyError(np.array(subset)[check].tolist()) + agg_obj = self.take(indices, axis=agg_axis) + + if thresh is not lib.no_default: + count = agg_obj.count(axis=agg_axis) + mask = count >= thresh + elif how == "any": + # faster equivalent to 'agg_obj.count(agg_axis) == self.shape[agg_axis]' + mask = notna(agg_obj).all(axis=agg_axis, bool_only=False) + elif how == "all": + # faster equivalent to 'agg_obj.count(agg_axis) > 0' + mask = notna(agg_obj).any(axis=agg_axis, bool_only=False) + else: + raise ValueError(f"invalid how option: {how}") + + if np.all(mask): + result = self.copy(deep=None) + else: + result = self.loc(axis=axis)[mask] + + if ignore_index: + result.index = default_index(len(result)) + + if not inplace: + return result + self._update_inplace(result) + return None + + @overload + def drop_duplicates( + self, + subset: Hashable | Sequence[Hashable] | None = ..., + *, + keep: DropKeep = ..., + inplace: Literal[True], + ignore_index: bool = ..., + ) -> None: + ... + + @overload + def drop_duplicates( + self, + subset: Hashable | Sequence[Hashable] | None = ..., + *, + keep: DropKeep = ..., + inplace: Literal[False] = ..., + ignore_index: bool = ..., + ) -> DataFrame: + ... + + @overload + def drop_duplicates( + self, + subset: Hashable | Sequence[Hashable] | None = ..., + *, + keep: DropKeep = ..., + inplace: bool = ..., + ignore_index: bool = ..., + ) -> DataFrame | None: + ... + + def drop_duplicates( + self, + subset: Hashable | Sequence[Hashable] | None = None, + *, + keep: DropKeep = "first", + inplace: bool = False, + ignore_index: bool = False, + ) -> DataFrame | None: + """ + Return DataFrame with duplicate rows removed. + + Considering certain columns is optional. Indexes, including time indexes + are ignored. + + Parameters + ---------- + subset : column label or sequence of labels, optional + Only consider certain columns for identifying duplicates, by + default use all of the columns. + keep : {'first', 'last', ``False``}, default 'first' + Determines which duplicates (if any) to keep. + + - 'first' : Drop duplicates except for the first occurrence. + - 'last' : Drop duplicates except for the last occurrence. + - ``False`` : Drop all duplicates. + + inplace : bool, default ``False`` + Whether to modify the DataFrame rather than creating a new one. + ignore_index : bool, default ``False`` + If ``True``, the resulting axis will be labeled 0, 1, …, n - 1. + + Returns + ------- + DataFrame or None + DataFrame with duplicates removed or None if ``inplace=True``. + + See Also + -------- + DataFrame.value_counts: Count unique combinations of columns. + + Examples + -------- + Consider dataset containing ramen rating. + + >>> df = pd.DataFrame({ + ... 'brand': ['Yum Yum', 'Yum Yum', 'Indomie', 'Indomie', 'Indomie'], + ... 'style': ['cup', 'cup', 'cup', 'pack', 'pack'], + ... 'rating': [4, 4, 3.5, 15, 5] + ... }) + >>> df + brand style rating + 0 Yum Yum cup 4.0 + 1 Yum Yum cup 4.0 + 2 Indomie cup 3.5 + 3 Indomie pack 15.0 + 4 Indomie pack 5.0 + + By default, it removes duplicate rows based on all columns. + + >>> df.drop_duplicates() + brand style rating + 0 Yum Yum cup 4.0 + 2 Indomie cup 3.5 + 3 Indomie pack 15.0 + 4 Indomie pack 5.0 + + To remove duplicates on specific column(s), use ``subset``. + + >>> df.drop_duplicates(subset=['brand']) + brand style rating + 0 Yum Yum cup 4.0 + 2 Indomie cup 3.5 + + To remove duplicates and keep last occurrences, use ``keep``. + + >>> df.drop_duplicates(subset=['brand', 'style'], keep='last') + brand style rating + 1 Yum Yum cup 4.0 + 2 Indomie cup 3.5 + 4 Indomie pack 5.0 + """ + if self.empty: + return self.copy(deep=None) + + inplace = validate_bool_kwarg(inplace, "inplace") + ignore_index = validate_bool_kwarg(ignore_index, "ignore_index") + + result = self[-self.duplicated(subset, keep=keep)] + if ignore_index: + result.index = default_index(len(result)) + + if inplace: + self._update_inplace(result) + return None + else: + return result + + def duplicated( + self, + subset: Hashable | Sequence[Hashable] | None = None, + keep: DropKeep = "first", + ) -> Series: + """ + Return boolean Series denoting duplicate rows. + + Considering certain columns is optional. + + Parameters + ---------- + subset : column label or sequence of labels, optional + Only consider certain columns for identifying duplicates, by + default use all of the columns. + keep : {'first', 'last', False}, default 'first' + Determines which duplicates (if any) to mark. + + - ``first`` : Mark duplicates as ``True`` except for the first occurrence. + - ``last`` : Mark duplicates as ``True`` except for the last occurrence. + - False : Mark all duplicates as ``True``. + + Returns + ------- + Series + Boolean series for each duplicated rows. + + See Also + -------- + Index.duplicated : Equivalent method on index. + Series.duplicated : Equivalent method on Series. + Series.drop_duplicates : Remove duplicate values from Series. + DataFrame.drop_duplicates : Remove duplicate values from DataFrame. + + Examples + -------- + Consider dataset containing ramen rating. + + >>> df = pd.DataFrame({ + ... 'brand': ['Yum Yum', 'Yum Yum', 'Indomie', 'Indomie', 'Indomie'], + ... 'style': ['cup', 'cup', 'cup', 'pack', 'pack'], + ... 'rating': [4, 4, 3.5, 15, 5] + ... }) + >>> df + brand style rating + 0 Yum Yum cup 4.0 + 1 Yum Yum cup 4.0 + 2 Indomie cup 3.5 + 3 Indomie pack 15.0 + 4 Indomie pack 5.0 + + By default, for each set of duplicated values, the first occurrence + is set on False and all others on True. + + >>> df.duplicated() + 0 False + 1 True + 2 False + 3 False + 4 False + dtype: bool + + By using 'last', the last occurrence of each set of duplicated values + is set on False and all others on True. + + >>> df.duplicated(keep='last') + 0 True + 1 False + 2 False + 3 False + 4 False + dtype: bool + + By setting ``keep`` on False, all duplicates are True. + + >>> df.duplicated(keep=False) + 0 True + 1 True + 2 False + 3 False + 4 False + dtype: bool + + To find duplicates on specific column(s), use ``subset``. + + >>> df.duplicated(subset=['brand']) + 0 False + 1 True + 2 False + 3 True + 4 True + dtype: bool + """ + + if self.empty: + return self._constructor_sliced(dtype=bool) + + def f(vals) -> tuple[np.ndarray, int]: + labels, shape = algorithms.factorize(vals, size_hint=len(self)) + return labels.astype("i8", copy=False), len(shape) + + if subset is None: + # https://github.com/pandas-dev/pandas/issues/28770 + # Incompatible types in assignment (expression has type "Index", variable + # has type "Sequence[Any]") + subset = self.columns # type: ignore[assignment] + elif ( + not np.iterable(subset) + or isinstance(subset, str) + or isinstance(subset, tuple) + and subset in self.columns + ): + subset = (subset,) + + # needed for mypy since can't narrow types using np.iterable + subset = cast(Sequence, subset) + + # Verify all columns in subset exist in the queried dataframe + # Otherwise, raise a KeyError, same as if you try to __getitem__ with a + # key that doesn't exist. + diff = set(subset) - set(self.columns) + if diff: + raise KeyError(Index(diff)) + + if len(subset) == 1 and self.columns.is_unique: + # GH#45236 This is faster than get_group_index below + result = self[subset[0]].duplicated(keep) + result.name = None + else: + vals = (col.values for name, col in self.items() if name in subset) + labels, shape = map(list, zip(*map(f, vals))) + + ids = get_group_index(labels, tuple(shape), sort=False, xnull=False) + result = self._constructor_sliced(duplicated(ids, keep), index=self.index) + return result.__finalize__(self, method="duplicated") + + # ---------------------------------------------------------------------- + # Sorting + # error: Signature of "sort_values" incompatible with supertype "NDFrame" + @overload # type: ignore[override] + def sort_values( + self, + by: IndexLabel, + *, + axis: Axis = ..., + ascending=..., + inplace: Literal[False] = ..., + kind: SortKind = ..., + na_position: NaPosition = ..., + ignore_index: bool = ..., + key: ValueKeyFunc = ..., + ) -> DataFrame: + ... + + @overload + def sort_values( + self, + by: IndexLabel, + *, + axis: Axis = ..., + ascending=..., + inplace: Literal[True], + kind: SortKind = ..., + na_position: str = ..., + ignore_index: bool = ..., + key: ValueKeyFunc = ..., + ) -> None: + ... + + def sort_values( + self, + by: IndexLabel, + *, + axis: Axis = 0, + ascending: bool | list[bool] | tuple[bool, ...] = True, + inplace: bool = False, + kind: SortKind = "quicksort", + na_position: str = "last", + ignore_index: bool = False, + key: ValueKeyFunc | None = None, + ) -> DataFrame | None: + """ + Sort by the values along either axis. + + Parameters + ---------- + by : str or list of str + Name or list of names to sort by. + + - if `axis` is 0 or `'index'` then `by` may contain index + levels and/or column labels. + - if `axis` is 1 or `'columns'` then `by` may contain column + levels and/or index labels. + axis : "{0 or 'index', 1 or 'columns'}", default 0 + Axis to be sorted. + ascending : bool or list of bool, default True + Sort ascending vs. descending. Specify list for multiple sort + orders. If this is a list of bools, must match the length of + the by. + inplace : bool, default False + If True, perform operation in-place. + kind : {'quicksort', 'mergesort', 'heapsort', 'stable'}, default 'quicksort' + Choice of sorting algorithm. See also :func:`numpy.sort` for more + information. `mergesort` and `stable` are the only stable algorithms. For + DataFrames, this option is only applied when sorting on a single + column or label. + na_position : {'first', 'last'}, default 'last' + Puts NaNs at the beginning if `first`; `last` puts NaNs at the + end. + ignore_index : bool, default False + If True, the resulting axis will be labeled 0, 1, …, n - 1. + key : callable, optional + Apply the key function to the values + before sorting. This is similar to the `key` argument in the + builtin :meth:`sorted` function, with the notable difference that + this `key` function should be *vectorized*. It should expect a + ``Series`` and return a Series with the same shape as the input. + It will be applied to each column in `by` independently. + + Returns + ------- + DataFrame or None + DataFrame with sorted values or None if ``inplace=True``. + + See Also + -------- + DataFrame.sort_index : Sort a DataFrame by the index. + Series.sort_values : Similar method for a Series. + + Examples + -------- + >>> df = pd.DataFrame({ + ... 'col1': ['A', 'A', 'B', np.nan, 'D', 'C'], + ... 'col2': [2, 1, 9, 8, 7, 4], + ... 'col3': [0, 1, 9, 4, 2, 3], + ... 'col4': ['a', 'B', 'c', 'D', 'e', 'F'] + ... }) + >>> df + col1 col2 col3 col4 + 0 A 2 0 a + 1 A 1 1 B + 2 B 9 9 c + 3 NaN 8 4 D + 4 D 7 2 e + 5 C 4 3 F + + Sort by col1 + + >>> df.sort_values(by=['col1']) + col1 col2 col3 col4 + 0 A 2 0 a + 1 A 1 1 B + 2 B 9 9 c + 5 C 4 3 F + 4 D 7 2 e + 3 NaN 8 4 D + + Sort by multiple columns + + >>> df.sort_values(by=['col1', 'col2']) + col1 col2 col3 col4 + 1 A 1 1 B + 0 A 2 0 a + 2 B 9 9 c + 5 C 4 3 F + 4 D 7 2 e + 3 NaN 8 4 D + + Sort Descending + + >>> df.sort_values(by='col1', ascending=False) + col1 col2 col3 col4 + 4 D 7 2 e + 5 C 4 3 F + 2 B 9 9 c + 0 A 2 0 a + 1 A 1 1 B + 3 NaN 8 4 D + + Putting NAs first + + >>> df.sort_values(by='col1', ascending=False, na_position='first') + col1 col2 col3 col4 + 3 NaN 8 4 D + 4 D 7 2 e + 5 C 4 3 F + 2 B 9 9 c + 0 A 2 0 a + 1 A 1 1 B + + Sorting with a key function + + >>> df.sort_values(by='col4', key=lambda col: col.str.lower()) + col1 col2 col3 col4 + 0 A 2 0 a + 1 A 1 1 B + 2 B 9 9 c + 3 NaN 8 4 D + 4 D 7 2 e + 5 C 4 3 F + + Natural sort with the key argument, + using the `natsort ` package. + + >>> df = pd.DataFrame({ + ... "time": ['0hr', '128hr', '72hr', '48hr', '96hr'], + ... "value": [10, 20, 30, 40, 50] + ... }) + >>> df + time value + 0 0hr 10 + 1 128hr 20 + 2 72hr 30 + 3 48hr 40 + 4 96hr 50 + >>> from natsort import index_natsorted + >>> df.sort_values( + ... by="time", + ... key=lambda x: np.argsort(index_natsorted(df["time"])) + ... ) + time value + 0 0hr 10 + 3 48hr 40 + 2 72hr 30 + 4 96hr 50 + 1 128hr 20 + """ + inplace = validate_bool_kwarg(inplace, "inplace") + axis = self._get_axis_number(axis) + ascending = validate_ascending(ascending) + if not isinstance(by, list): + by = [by] + # error: Argument 1 to "len" has incompatible type "Union[bool, List[bool]]"; + # expected "Sized" + if is_sequence(ascending) and ( + len(by) != len(ascending) # type: ignore[arg-type] + ): + # error: Argument 1 to "len" has incompatible type "Union[bool, + # List[bool]]"; expected "Sized" + raise ValueError( + f"Length of ascending ({len(ascending)})" # type: ignore[arg-type] + f" != length of by ({len(by)})" + ) + if len(by) > 1: + keys = [self._get_label_or_level_values(x, axis=axis) for x in by] + + # need to rewrap columns in Series to apply key function + if key is not None: + # error: List comprehension has incompatible type List[Series]; + # expected List[ndarray] + keys = [ + Series(k, name=name) # type: ignore[misc] + for (k, name) in zip(keys, by) + ] + + indexer = lexsort_indexer( + keys, orders=ascending, na_position=na_position, key=key + ) + elif len(by): + # len(by) == 1 + + k = self._get_label_or_level_values(by[0], axis=axis) + + # need to rewrap column in Series to apply key function + if key is not None: + # error: Incompatible types in assignment (expression has type + # "Series", variable has type "ndarray") + k = Series(k, name=by[0]) # type: ignore[assignment] + + if isinstance(ascending, (tuple, list)): + ascending = ascending[0] + + indexer = nargsort( + k, kind=kind, ascending=ascending, na_position=na_position, key=key + ) + else: + if inplace: + return self._update_inplace(self) + else: + return self.copy(deep=None) + + if is_range_indexer(indexer, len(indexer)): + result = self.copy(deep=(not inplace and not using_copy_on_write())) + if ignore_index: + result.index = default_index(len(result)) + + if inplace: + return self._update_inplace(result) + else: + return result + + new_data = self._mgr.take( + indexer, axis=self._get_block_manager_axis(axis), verify=False + ) + + if ignore_index: + new_data.set_axis( + self._get_block_manager_axis(axis), default_index(len(indexer)) + ) + + result = self._constructor_from_mgr(new_data, axes=new_data.axes) + if inplace: + return self._update_inplace(result) + else: + return result.__finalize__(self, method="sort_values") + + @overload + def sort_index( + self, + *, + axis: Axis = ..., + level: IndexLabel = ..., + ascending: bool | Sequence[bool] = ..., + inplace: Literal[True], + kind: SortKind = ..., + na_position: NaPosition = ..., + sort_remaining: bool = ..., + ignore_index: bool = ..., + key: IndexKeyFunc = ..., + ) -> None: + ... + + @overload + def sort_index( + self, + *, + axis: Axis = ..., + level: IndexLabel = ..., + ascending: bool | Sequence[bool] = ..., + inplace: Literal[False] = ..., + kind: SortKind = ..., + na_position: NaPosition = ..., + sort_remaining: bool = ..., + ignore_index: bool = ..., + key: IndexKeyFunc = ..., + ) -> DataFrame: + ... + + @overload + def sort_index( + self, + *, + axis: Axis = ..., + level: IndexLabel = ..., + ascending: bool | Sequence[bool] = ..., + inplace: bool = ..., + kind: SortKind = ..., + na_position: NaPosition = ..., + sort_remaining: bool = ..., + ignore_index: bool = ..., + key: IndexKeyFunc = ..., + ) -> DataFrame | None: + ... + + def sort_index( + self, + *, + axis: Axis = 0, + level: IndexLabel | None = None, + ascending: bool | Sequence[bool] = True, + inplace: bool = False, + kind: SortKind = "quicksort", + na_position: NaPosition = "last", + sort_remaining: bool = True, + ignore_index: bool = False, + key: IndexKeyFunc | None = None, + ) -> DataFrame | None: + """ + Sort object by labels (along an axis). + + Returns a new DataFrame sorted by label if `inplace` argument is + ``False``, otherwise updates the original DataFrame and returns None. + + Parameters + ---------- + axis : {0 or 'index', 1 or 'columns'}, default 0 + The axis along which to sort. The value 0 identifies the rows, + and 1 identifies the columns. + level : int or level name or list of ints or list of level names + If not None, sort on values in specified index level(s). + ascending : bool or list-like of bools, default True + Sort ascending vs. descending. When the index is a MultiIndex the + sort direction can be controlled for each level individually. + inplace : bool, default False + Whether to modify the DataFrame rather than creating a new one. + kind : {'quicksort', 'mergesort', 'heapsort', 'stable'}, default 'quicksort' + Choice of sorting algorithm. See also :func:`numpy.sort` for more + information. `mergesort` and `stable` are the only stable algorithms. For + DataFrames, this option is only applied when sorting on a single + column or label. + na_position : {'first', 'last'}, default 'last' + Puts NaNs at the beginning if `first`; `last` puts NaNs at the end. + Not implemented for MultiIndex. + sort_remaining : bool, default True + If True and sorting by level and index is multilevel, sort by other + levels too (in order) after sorting by specified level. + ignore_index : bool, default False + If True, the resulting axis will be labeled 0, 1, …, n - 1. + key : callable, optional + If not None, apply the key function to the index values + before sorting. This is similar to the `key` argument in the + builtin :meth:`sorted` function, with the notable difference that + this `key` function should be *vectorized*. It should expect an + ``Index`` and return an ``Index`` of the same shape. For MultiIndex + inputs, the key is applied *per level*. + + Returns + ------- + DataFrame or None + The original DataFrame sorted by the labels or None if ``inplace=True``. + + See Also + -------- + Series.sort_index : Sort Series by the index. + DataFrame.sort_values : Sort DataFrame by the value. + Series.sort_values : Sort Series by the value. + + Examples + -------- + >>> df = pd.DataFrame([1, 2, 3, 4, 5], index=[100, 29, 234, 1, 150], + ... columns=['A']) + >>> df.sort_index() + A + 1 4 + 29 2 + 100 1 + 150 5 + 234 3 + + By default, it sorts in ascending order, to sort in descending order, + use ``ascending=False`` + + >>> df.sort_index(ascending=False) + A + 234 3 + 150 5 + 100 1 + 29 2 + 1 4 + + A key function can be specified which is applied to the index before + sorting. For a ``MultiIndex`` this is applied to each level separately. + + >>> df = pd.DataFrame({"a": [1, 2, 3, 4]}, index=['A', 'b', 'C', 'd']) + >>> df.sort_index(key=lambda x: x.str.lower()) + a + A 1 + b 2 + C 3 + d 4 + """ + return super().sort_index( + axis=axis, + level=level, + ascending=ascending, + inplace=inplace, + kind=kind, + na_position=na_position, + sort_remaining=sort_remaining, + ignore_index=ignore_index, + key=key, + ) + + def value_counts( + self, + subset: IndexLabel | None = None, + normalize: bool = False, + sort: bool = True, + ascending: bool = False, + dropna: bool = True, + ) -> Series: + """ + Return a Series containing the frequency of each distinct row in the Dataframe. + + Parameters + ---------- + subset : label or list of labels, optional + Columns to use when counting unique combinations. + normalize : bool, default False + Return proportions rather than frequencies. + sort : bool, default True + Sort by frequencies when True. Sort by DataFrame column values when False. + ascending : bool, default False + Sort in ascending order. + dropna : bool, default True + Don't include counts of rows that contain NA values. + + .. versionadded:: 1.3.0 + + Returns + ------- + Series + + See Also + -------- + Series.value_counts: Equivalent method on Series. + + Notes + ----- + The returned Series will have a MultiIndex with one level per input + column but an Index (non-multi) for a single label. By default, rows + that contain any NA values are omitted from the result. By default, + the resulting Series will be in descending order so that the first + element is the most frequently-occurring row. + + Examples + -------- + >>> df = pd.DataFrame({'num_legs': [2, 4, 4, 6], + ... 'num_wings': [2, 0, 0, 0]}, + ... index=['falcon', 'dog', 'cat', 'ant']) + >>> df + num_legs num_wings + falcon 2 2 + dog 4 0 + cat 4 0 + ant 6 0 + + >>> df.value_counts() + num_legs num_wings + 4 0 2 + 2 2 1 + 6 0 1 + Name: count, dtype: int64 + + >>> df.value_counts(sort=False) + num_legs num_wings + 2 2 1 + 4 0 2 + 6 0 1 + Name: count, dtype: int64 + + >>> df.value_counts(ascending=True) + num_legs num_wings + 2 2 1 + 6 0 1 + 4 0 2 + Name: count, dtype: int64 + + >>> df.value_counts(normalize=True) + num_legs num_wings + 4 0 0.50 + 2 2 0.25 + 6 0 0.25 + Name: proportion, dtype: float64 + + With `dropna` set to `False` we can also count rows with NA values. + + >>> df = pd.DataFrame({'first_name': ['John', 'Anne', 'John', 'Beth'], + ... 'middle_name': ['Smith', pd.NA, pd.NA, 'Louise']}) + >>> df + first_name middle_name + 0 John Smith + 1 Anne + 2 John + 3 Beth Louise + + >>> df.value_counts() + first_name middle_name + Beth Louise 1 + John Smith 1 + Name: count, dtype: int64 + + >>> df.value_counts(dropna=False) + first_name middle_name + Anne NaN 1 + Beth Louise 1 + John Smith 1 + NaN 1 + Name: count, dtype: int64 + + >>> df.value_counts("first_name") + first_name + John 2 + Anne 1 + Beth 1 + Name: count, dtype: int64 + """ + if subset is None: + subset = self.columns.tolist() + + name = "proportion" if normalize else "count" + counts = self.groupby(subset, dropna=dropna, observed=False)._grouper.size() + counts.name = name + + if sort: + counts = counts.sort_values(ascending=ascending) + if normalize: + counts /= counts.sum() + + # Force MultiIndex for a list_like subset with a single column + if is_list_like(subset) and len(subset) == 1: # type: ignore[arg-type] + counts.index = MultiIndex.from_arrays( + [counts.index], names=[counts.index.name] + ) + + return counts + + def nlargest( + self, n: int, columns: IndexLabel, keep: NsmallestNlargestKeep = "first" + ) -> DataFrame: + """ + Return the first `n` rows ordered by `columns` in descending order. + + Return the first `n` rows with the largest values in `columns`, in + descending order. The columns that are not specified are returned as + well, but not used for ordering. + + This method is equivalent to + ``df.sort_values(columns, ascending=False).head(n)``, but more + performant. + + Parameters + ---------- + n : int + Number of rows to return. + columns : label or list of labels + Column label(s) to order by. + keep : {'first', 'last', 'all'}, default 'first' + Where there are duplicate values: + + - ``first`` : prioritize the first occurrence(s) + - ``last`` : prioritize the last occurrence(s) + - ``all`` : keep all the ties of the smallest item even if it means + selecting more than ``n`` items. + + Returns + ------- + DataFrame + The first `n` rows ordered by the given columns in descending + order. + + See Also + -------- + DataFrame.nsmallest : Return the first `n` rows ordered by `columns` in + ascending order. + DataFrame.sort_values : Sort DataFrame by the values. + DataFrame.head : Return the first `n` rows without re-ordering. + + Notes + ----- + This function cannot be used with all column types. For example, when + specifying columns with `object` or `category` dtypes, ``TypeError`` is + raised. + + Examples + -------- + >>> df = pd.DataFrame({'population': [59000000, 65000000, 434000, + ... 434000, 434000, 337000, 11300, + ... 11300, 11300], + ... 'GDP': [1937894, 2583560 , 12011, 4520, 12128, + ... 17036, 182, 38, 311], + ... 'alpha-2': ["IT", "FR", "MT", "MV", "BN", + ... "IS", "NR", "TV", "AI"]}, + ... index=["Italy", "France", "Malta", + ... "Maldives", "Brunei", "Iceland", + ... "Nauru", "Tuvalu", "Anguilla"]) + >>> df + population GDP alpha-2 + Italy 59000000 1937894 IT + France 65000000 2583560 FR + Malta 434000 12011 MT + Maldives 434000 4520 MV + Brunei 434000 12128 BN + Iceland 337000 17036 IS + Nauru 11300 182 NR + Tuvalu 11300 38 TV + Anguilla 11300 311 AI + + In the following example, we will use ``nlargest`` to select the three + rows having the largest values in column "population". + + >>> df.nlargest(3, 'population') + population GDP alpha-2 + France 65000000 2583560 FR + Italy 59000000 1937894 IT + Malta 434000 12011 MT + + When using ``keep='last'``, ties are resolved in reverse order: + + >>> df.nlargest(3, 'population', keep='last') + population GDP alpha-2 + France 65000000 2583560 FR + Italy 59000000 1937894 IT + Brunei 434000 12128 BN + + When using ``keep='all'``, the number of element kept can go beyond ``n`` + if there are duplicate values for the smallest element, all the + ties are kept: + + >>> df.nlargest(3, 'population', keep='all') + population GDP alpha-2 + France 65000000 2583560 FR + Italy 59000000 1937894 IT + Malta 434000 12011 MT + Maldives 434000 4520 MV + Brunei 434000 12128 BN + + However, ``nlargest`` does not keep ``n`` distinct largest elements: + + >>> df.nlargest(5, 'population', keep='all') + population GDP alpha-2 + France 65000000 2583560 FR + Italy 59000000 1937894 IT + Malta 434000 12011 MT + Maldives 434000 4520 MV + Brunei 434000 12128 BN + + To order by the largest values in column "population" and then "GDP", + we can specify multiple columns like in the next example. + + >>> df.nlargest(3, ['population', 'GDP']) + population GDP alpha-2 + France 65000000 2583560 FR + Italy 59000000 1937894 IT + Brunei 434000 12128 BN + """ + return selectn.SelectNFrame(self, n=n, keep=keep, columns=columns).nlargest() + + def nsmallest( + self, n: int, columns: IndexLabel, keep: NsmallestNlargestKeep = "first" + ) -> DataFrame: + """ + Return the first `n` rows ordered by `columns` in ascending order. + + Return the first `n` rows with the smallest values in `columns`, in + ascending order. The columns that are not specified are returned as + well, but not used for ordering. + + This method is equivalent to + ``df.sort_values(columns, ascending=True).head(n)``, but more + performant. + + Parameters + ---------- + n : int + Number of items to retrieve. + columns : list or str + Column name or names to order by. + keep : {'first', 'last', 'all'}, default 'first' + Where there are duplicate values: + + - ``first`` : take the first occurrence. + - ``last`` : take the last occurrence. + - ``all`` : keep all the ties of the largest item even if it means + selecting more than ``n`` items. + + Returns + ------- + DataFrame + + See Also + -------- + DataFrame.nlargest : Return the first `n` rows ordered by `columns` in + descending order. + DataFrame.sort_values : Sort DataFrame by the values. + DataFrame.head : Return the first `n` rows without re-ordering. + + Examples + -------- + >>> df = pd.DataFrame({'population': [59000000, 65000000, 434000, + ... 434000, 434000, 337000, 337000, + ... 11300, 11300], + ... 'GDP': [1937894, 2583560 , 12011, 4520, 12128, + ... 17036, 182, 38, 311], + ... 'alpha-2': ["IT", "FR", "MT", "MV", "BN", + ... "IS", "NR", "TV", "AI"]}, + ... index=["Italy", "France", "Malta", + ... "Maldives", "Brunei", "Iceland", + ... "Nauru", "Tuvalu", "Anguilla"]) + >>> df + population GDP alpha-2 + Italy 59000000 1937894 IT + France 65000000 2583560 FR + Malta 434000 12011 MT + Maldives 434000 4520 MV + Brunei 434000 12128 BN + Iceland 337000 17036 IS + Nauru 337000 182 NR + Tuvalu 11300 38 TV + Anguilla 11300 311 AI + + In the following example, we will use ``nsmallest`` to select the + three rows having the smallest values in column "population". + + >>> df.nsmallest(3, 'population') + population GDP alpha-2 + Tuvalu 11300 38 TV + Anguilla 11300 311 AI + Iceland 337000 17036 IS + + When using ``keep='last'``, ties are resolved in reverse order: + + >>> df.nsmallest(3, 'population', keep='last') + population GDP alpha-2 + Anguilla 11300 311 AI + Tuvalu 11300 38 TV + Nauru 337000 182 NR + + When using ``keep='all'``, the number of element kept can go beyond ``n`` + if there are duplicate values for the largest element, all the + ties are kept. + + >>> df.nsmallest(3, 'population', keep='all') + population GDP alpha-2 + Tuvalu 11300 38 TV + Anguilla 11300 311 AI + Iceland 337000 17036 IS + Nauru 337000 182 NR + + However, ``nsmallest`` does not keep ``n`` distinct + smallest elements: + + >>> df.nsmallest(4, 'population', keep='all') + population GDP alpha-2 + Tuvalu 11300 38 TV + Anguilla 11300 311 AI + Iceland 337000 17036 IS + Nauru 337000 182 NR + + To order by the smallest values in column "population" and then "GDP", we can + specify multiple columns like in the next example. + + >>> df.nsmallest(3, ['population', 'GDP']) + population GDP alpha-2 + Tuvalu 11300 38 TV + Anguilla 11300 311 AI + Nauru 337000 182 NR + """ + return selectn.SelectNFrame(self, n=n, keep=keep, columns=columns).nsmallest() + + @doc( + Series.swaplevel, + klass=_shared_doc_kwargs["klass"], + extra_params=dedent( + """axis : {0 or 'index', 1 or 'columns'}, default 0 + The axis to swap levels on. 0 or 'index' for row-wise, 1 or + 'columns' for column-wise.""" + ), + examples=dedent( + """\ + Examples + -------- + >>> df = pd.DataFrame( + ... {"Grade": ["A", "B", "A", "C"]}, + ... index=[ + ... ["Final exam", "Final exam", "Coursework", "Coursework"], + ... ["History", "Geography", "History", "Geography"], + ... ["January", "February", "March", "April"], + ... ], + ... ) + >>> df + Grade + Final exam History January A + Geography February B + Coursework History March A + Geography April C + + In the following example, we will swap the levels of the indices. + Here, we will swap the levels column-wise, but levels can be swapped row-wise + in a similar manner. Note that column-wise is the default behaviour. + By not supplying any arguments for i and j, we swap the last and second to + last indices. + + >>> df.swaplevel() + Grade + Final exam January History A + February Geography B + Coursework March History A + April Geography C + + By supplying one argument, we can choose which index to swap the last + index with. We can for example swap the first index with the last one as + follows. + + >>> df.swaplevel(0) + Grade + January History Final exam A + February Geography Final exam B + March History Coursework A + April Geography Coursework C + + We can also define explicitly which indices we want to swap by supplying values + for both i and j. Here, we for example swap the first and second indices. + + >>> df.swaplevel(0, 1) + Grade + History Final exam January A + Geography Final exam February B + History Coursework March A + Geography Coursework April C""" + ), + ) + def swaplevel(self, i: Axis = -2, j: Axis = -1, axis: Axis = 0) -> DataFrame: + result = self.copy(deep=None) + + axis = self._get_axis_number(axis) + + if not isinstance(result._get_axis(axis), MultiIndex): # pragma: no cover + raise TypeError("Can only swap levels on a hierarchical axis.") + + if axis == 0: + assert isinstance(result.index, MultiIndex) + result.index = result.index.swaplevel(i, j) + else: + assert isinstance(result.columns, MultiIndex) + result.columns = result.columns.swaplevel(i, j) + return result + + def reorder_levels(self, order: Sequence[int | str], axis: Axis = 0) -> DataFrame: + """ + Rearrange index levels using input order. May not drop or duplicate levels. + + Parameters + ---------- + order : list of int or list of str + List representing new level order. Reference level by number + (position) or by key (label). + axis : {0 or 'index', 1 or 'columns'}, default 0 + Where to reorder levels. + + Returns + ------- + DataFrame + + Examples + -------- + >>> data = { + ... "class": ["Mammals", "Mammals", "Reptiles"], + ... "diet": ["Omnivore", "Carnivore", "Carnivore"], + ... "species": ["Humans", "Dogs", "Snakes"], + ... } + >>> df = pd.DataFrame(data, columns=["class", "diet", "species"]) + >>> df = df.set_index(["class", "diet"]) + >>> df + species + class diet + Mammals Omnivore Humans + Carnivore Dogs + Reptiles Carnivore Snakes + + Let's reorder the levels of the index: + + >>> df.reorder_levels(["diet", "class"]) + species + diet class + Omnivore Mammals Humans + Carnivore Mammals Dogs + Reptiles Snakes + """ + axis = self._get_axis_number(axis) + if not isinstance(self._get_axis(axis), MultiIndex): # pragma: no cover + raise TypeError("Can only reorder levels on a hierarchical axis.") + + result = self.copy(deep=None) + + if axis == 0: + assert isinstance(result.index, MultiIndex) + result.index = result.index.reorder_levels(order) + else: + assert isinstance(result.columns, MultiIndex) + result.columns = result.columns.reorder_levels(order) + return result + + # ---------------------------------------------------------------------- + # Arithmetic Methods + + def _cmp_method(self, other, op): + axis: Literal[1] = 1 # only relevant for Series other case + + self, other = self._align_for_op(other, axis, flex=False, level=None) + + # See GH#4537 for discussion of scalar op behavior + new_data = self._dispatch_frame_op(other, op, axis=axis) + return self._construct_result(new_data) + + def _arith_method(self, other, op): + if self._should_reindex_frame_op(other, op, 1, None, None): + return self._arith_method_with_reindex(other, op) + + axis: Literal[1] = 1 # only relevant for Series other case + other = ops.maybe_prepare_scalar_for_op(other, (self.shape[axis],)) + + self, other = self._align_for_op(other, axis, flex=True, level=None) + + with np.errstate(all="ignore"): + new_data = self._dispatch_frame_op(other, op, axis=axis) + return self._construct_result(new_data) + + _logical_method = _arith_method + + def _dispatch_frame_op( + self, right, func: Callable, axis: AxisInt | None = None + ) -> DataFrame: + """ + Evaluate the frame operation func(left, right) by evaluating + column-by-column, dispatching to the Series implementation. + + Parameters + ---------- + right : scalar, Series, or DataFrame + func : arithmetic or comparison operator + axis : {None, 0, 1} + + Returns + ------- + DataFrame + + Notes + ----- + Caller is responsible for setting np.errstate where relevant. + """ + # Get the appropriate array-op to apply to each column/block's values. + array_op = ops.get_array_op(func) + + right = lib.item_from_zerodim(right) + if not is_list_like(right): + # i.e. scalar, faster than checking np.ndim(right) == 0 + bm = self._mgr.apply(array_op, right=right) + return self._constructor_from_mgr(bm, axes=bm.axes) + + elif isinstance(right, DataFrame): + assert self.index.equals(right.index) + assert self.columns.equals(right.columns) + # TODO: The previous assertion `assert right._indexed_same(self)` + # fails in cases with empty columns reached via + # _frame_arith_method_with_reindex + + # TODO operate_blockwise expects a manager of the same type + bm = self._mgr.operate_blockwise( + # error: Argument 1 to "operate_blockwise" of "ArrayManager" has + # incompatible type "Union[ArrayManager, BlockManager]"; expected + # "ArrayManager" + # error: Argument 1 to "operate_blockwise" of "BlockManager" has + # incompatible type "Union[ArrayManager, BlockManager]"; expected + # "BlockManager" + right._mgr, # type: ignore[arg-type] + array_op, + ) + return self._constructor_from_mgr(bm, axes=bm.axes) + + elif isinstance(right, Series) and axis == 1: + # axis=1 means we want to operate row-by-row + assert right.index.equals(self.columns) + + right = right._values + # maybe_align_as_frame ensures we do not have an ndarray here + assert not isinstance(right, np.ndarray) + + arrays = [ + array_op(_left, _right) + for _left, _right in zip(self._iter_column_arrays(), right) + ] + + elif isinstance(right, Series): + assert right.index.equals(self.index) + right = right._values + + arrays = [array_op(left, right) for left in self._iter_column_arrays()] + + else: + raise NotImplementedError(right) + + return type(self)._from_arrays( + arrays, self.columns, self.index, verify_integrity=False + ) + + def _combine_frame(self, other: DataFrame, func, fill_value=None): + # at this point we have `self._indexed_same(other)` + + if fill_value is None: + # since _arith_op may be called in a loop, avoid function call + # overhead if possible by doing this check once + _arith_op = func + + else: + + def _arith_op(left, right): + # for the mixed_type case where we iterate over columns, + # _arith_op(left, right) is equivalent to + # left._binop(right, func, fill_value=fill_value) + left, right = ops.fill_binop(left, right, fill_value) + return func(left, right) + + new_data = self._dispatch_frame_op(other, _arith_op) + return new_data + + def _arith_method_with_reindex(self, right: DataFrame, op) -> DataFrame: + """ + For DataFrame-with-DataFrame operations that require reindexing, + operate only on shared columns, then reindex. + + Parameters + ---------- + right : DataFrame + op : binary operator + + Returns + ------- + DataFrame + """ + left = self + + # GH#31623, only operate on shared columns + cols, lcols, rcols = left.columns.join( + right.columns, how="inner", level=None, return_indexers=True + ) + + new_left = left.iloc[:, lcols] + new_right = right.iloc[:, rcols] + result = op(new_left, new_right) + + # Do the join on the columns instead of using left._align_for_op + # to avoid constructing two potentially large/sparse DataFrames + join_columns, _, _ = left.columns.join( + right.columns, how="outer", level=None, return_indexers=True + ) + + if result.columns.has_duplicates: + # Avoid reindexing with a duplicate axis. + # https://github.com/pandas-dev/pandas/issues/35194 + indexer, _ = result.columns.get_indexer_non_unique(join_columns) + indexer = algorithms.unique1d(indexer) + result = result._reindex_with_indexers( + {1: [join_columns, indexer]}, allow_dups=True + ) + else: + result = result.reindex(join_columns, axis=1) + + return result + + def _should_reindex_frame_op(self, right, op, axis: int, fill_value, level) -> bool: + """ + Check if this is an operation between DataFrames that will need to reindex. + """ + if op is operator.pow or op is roperator.rpow: + # GH#32685 pow has special semantics for operating with null values + return False + + if not isinstance(right, DataFrame): + return False + + if fill_value is None and level is None and axis == 1: + # TODO: any other cases we should handle here? + + # Intersection is always unique so we have to check the unique columns + left_uniques = self.columns.unique() + right_uniques = right.columns.unique() + cols = left_uniques.intersection(right_uniques) + if len(cols) and not ( + len(cols) == len(left_uniques) and len(cols) == len(right_uniques) + ): + # TODO: is there a shortcut available when len(cols) == 0? + return True + + return False + + def _align_for_op( + self, + other, + axis: AxisInt, + flex: bool | None = False, + level: Level | None = None, + ): + """ + Convert rhs to meet lhs dims if input is list, tuple or np.ndarray. + + Parameters + ---------- + left : DataFrame + right : Any + axis : int + flex : bool or None, default False + Whether this is a flex op, in which case we reindex. + None indicates not to check for alignment. + level : int or level name, default None + + Returns + ------- + left : DataFrame + right : Any + """ + left, right = self, other + + def to_series(right): + msg = ( + "Unable to coerce to Series, " + "length must be {req_len}: given {given_len}" + ) + + # pass dtype to avoid doing inference, which would break consistency + # with Index/Series ops + dtype = None + if getattr(right, "dtype", None) == object: + # can't pass right.dtype unconditionally as that would break on e.g. + # datetime64[h] ndarray + dtype = object + + if axis == 0: + if len(left.index) != len(right): + raise ValueError( + msg.format(req_len=len(left.index), given_len=len(right)) + ) + right = left._constructor_sliced(right, index=left.index, dtype=dtype) + else: + if len(left.columns) != len(right): + raise ValueError( + msg.format(req_len=len(left.columns), given_len=len(right)) + ) + right = left._constructor_sliced(right, index=left.columns, dtype=dtype) + return right + + if isinstance(right, np.ndarray): + if right.ndim == 1: + right = to_series(right) + + elif right.ndim == 2: + # We need to pass dtype=right.dtype to retain object dtype + # otherwise we lose consistency with Index and array ops + dtype = None + if right.dtype == object: + # can't pass right.dtype unconditionally as that would break on e.g. + # datetime64[h] ndarray + dtype = object + + if right.shape == left.shape: + right = left._constructor( + right, index=left.index, columns=left.columns, dtype=dtype + ) + + elif right.shape[0] == left.shape[0] and right.shape[1] == 1: + # Broadcast across columns + right = np.broadcast_to(right, left.shape) + right = left._constructor( + right, index=left.index, columns=left.columns, dtype=dtype + ) + + elif right.shape[1] == left.shape[1] and right.shape[0] == 1: + # Broadcast along rows + right = to_series(right[0, :]) + + else: + raise ValueError( + "Unable to coerce to DataFrame, shape " + f"must be {left.shape}: given {right.shape}" + ) + + elif right.ndim > 2: + raise ValueError( + "Unable to coerce to Series/DataFrame, " + f"dimension must be <= 2: {right.shape}" + ) + + elif is_list_like(right) and not isinstance(right, (Series, DataFrame)): + # GH#36702. Raise when attempting arithmetic with list of array-like. + if any(is_array_like(el) for el in right): + raise ValueError( + f"Unable to coerce list of {type(right[0])} to Series/DataFrame" + ) + # GH#17901 + right = to_series(right) + + if flex is not None and isinstance(right, DataFrame): + if not left._indexed_same(right): + if flex: + left, right = left.align( + right, join="outer", level=level, copy=False + ) + else: + raise ValueError( + "Can only compare identically-labeled (both index and columns) " + "DataFrame objects" + ) + elif isinstance(right, Series): + # axis=1 is default for DataFrame-with-Series op + axis = axis if axis is not None else 1 + if not flex: + if not left.axes[axis].equals(right.index): + raise ValueError( + "Operands are not aligned. Do " + "`left, right = left.align(right, axis=1, copy=False)` " + "before operating." + ) + + left, right = left.align( + right, + join="outer", + axis=axis, + level=level, + copy=False, + ) + right = left._maybe_align_series_as_frame(right, axis) + + return left, right + + def _maybe_align_series_as_frame(self, series: Series, axis: AxisInt): + """ + If the Series operand is not EA-dtype, we can broadcast to 2D and operate + blockwise. + """ + rvalues = series._values + if not isinstance(rvalues, np.ndarray): + # TODO(EA2D): no need to special-case with 2D EAs + if rvalues.dtype in ("datetime64[ns]", "timedelta64[ns]"): + # We can losslessly+cheaply cast to ndarray + rvalues = np.asarray(rvalues) + else: + return series + + if axis == 0: + rvalues = rvalues.reshape(-1, 1) + else: + rvalues = rvalues.reshape(1, -1) + + rvalues = np.broadcast_to(rvalues, self.shape) + # pass dtype to avoid doing inference + return self._constructor( + rvalues, + index=self.index, + columns=self.columns, + dtype=rvalues.dtype, + ) + + def _flex_arith_method( + self, other, op, *, axis: Axis = "columns", level=None, fill_value=None + ): + axis = self._get_axis_number(axis) if axis is not None else 1 + + if self._should_reindex_frame_op(other, op, axis, fill_value, level): + return self._arith_method_with_reindex(other, op) + + if isinstance(other, Series) and fill_value is not None: + # TODO: We could allow this in cases where we end up going + # through the DataFrame path + raise NotImplementedError(f"fill_value {fill_value} not supported.") + + other = ops.maybe_prepare_scalar_for_op(other, self.shape) + self, other = self._align_for_op(other, axis, flex=True, level=level) + + with np.errstate(all="ignore"): + if isinstance(other, DataFrame): + # Another DataFrame + new_data = self._combine_frame(other, op, fill_value) + + elif isinstance(other, Series): + new_data = self._dispatch_frame_op(other, op, axis=axis) + else: + # in this case we always have `np.ndim(other) == 0` + if fill_value is not None: + self = self.fillna(fill_value) + + new_data = self._dispatch_frame_op(other, op) + + return self._construct_result(new_data) + + def _construct_result(self, result) -> DataFrame: + """ + Wrap the result of an arithmetic, comparison, or logical operation. + + Parameters + ---------- + result : DataFrame + + Returns + ------- + DataFrame + """ + out = self._constructor(result, copy=False).__finalize__(self) + # Pin columns instead of passing to constructor for compat with + # non-unique columns case + out.columns = self.columns + out.index = self.index + return out + + def __divmod__(self, other) -> tuple[DataFrame, DataFrame]: + # Naive implementation, room for optimization + div = self // other + mod = self - div * other + return div, mod + + def __rdivmod__(self, other) -> tuple[DataFrame, DataFrame]: + # Naive implementation, room for optimization + div = other // self + mod = other - div * self + return div, mod + + def _flex_cmp_method(self, other, op, *, axis: Axis = "columns", level=None): + axis = self._get_axis_number(axis) if axis is not None else 1 + + self, other = self._align_for_op(other, axis, flex=True, level=level) + + new_data = self._dispatch_frame_op(other, op, axis=axis) + return self._construct_result(new_data) + + @Appender(ops.make_flex_doc("eq", "dataframe")) + def eq(self, other, axis: Axis = "columns", level=None) -> DataFrame: + return self._flex_cmp_method(other, operator.eq, axis=axis, level=level) + + @Appender(ops.make_flex_doc("ne", "dataframe")) + def ne(self, other, axis: Axis = "columns", level=None) -> DataFrame: + return self._flex_cmp_method(other, operator.ne, axis=axis, level=level) + + @Appender(ops.make_flex_doc("le", "dataframe")) + def le(self, other, axis: Axis = "columns", level=None) -> DataFrame: + return self._flex_cmp_method(other, operator.le, axis=axis, level=level) + + @Appender(ops.make_flex_doc("lt", "dataframe")) + def lt(self, other, axis: Axis = "columns", level=None) -> DataFrame: + return self._flex_cmp_method(other, operator.lt, axis=axis, level=level) + + @Appender(ops.make_flex_doc("ge", "dataframe")) + def ge(self, other, axis: Axis = "columns", level=None) -> DataFrame: + return self._flex_cmp_method(other, operator.ge, axis=axis, level=level) + + @Appender(ops.make_flex_doc("gt", "dataframe")) + def gt(self, other, axis: Axis = "columns", level=None) -> DataFrame: + return self._flex_cmp_method(other, operator.gt, axis=axis, level=level) + + @Appender(ops.make_flex_doc("add", "dataframe")) + def add( + self, other, axis: Axis = "columns", level=None, fill_value=None + ) -> DataFrame: + return self._flex_arith_method( + other, operator.add, level=level, fill_value=fill_value, axis=axis + ) + + @Appender(ops.make_flex_doc("radd", "dataframe")) + def radd( + self, other, axis: Axis = "columns", level=None, fill_value=None + ) -> DataFrame: + return self._flex_arith_method( + other, roperator.radd, level=level, fill_value=fill_value, axis=axis + ) + + @Appender(ops.make_flex_doc("sub", "dataframe")) + def sub( + self, other, axis: Axis = "columns", level=None, fill_value=None + ) -> DataFrame: + return self._flex_arith_method( + other, operator.sub, level=level, fill_value=fill_value, axis=axis + ) + + subtract = sub + + @Appender(ops.make_flex_doc("rsub", "dataframe")) + def rsub( + self, other, axis: Axis = "columns", level=None, fill_value=None + ) -> DataFrame: + return self._flex_arith_method( + other, roperator.rsub, level=level, fill_value=fill_value, axis=axis + ) + + @Appender(ops.make_flex_doc("mul", "dataframe")) + def mul( + self, other, axis: Axis = "columns", level=None, fill_value=None + ) -> DataFrame: + return self._flex_arith_method( + other, operator.mul, level=level, fill_value=fill_value, axis=axis + ) + + multiply = mul + + @Appender(ops.make_flex_doc("rmul", "dataframe")) + def rmul( + self, other, axis: Axis = "columns", level=None, fill_value=None + ) -> DataFrame: + return self._flex_arith_method( + other, roperator.rmul, level=level, fill_value=fill_value, axis=axis + ) + + @Appender(ops.make_flex_doc("truediv", "dataframe")) + def truediv( + self, other, axis: Axis = "columns", level=None, fill_value=None + ) -> DataFrame: + return self._flex_arith_method( + other, operator.truediv, level=level, fill_value=fill_value, axis=axis + ) + + div = truediv + divide = truediv + + @Appender(ops.make_flex_doc("rtruediv", "dataframe")) + def rtruediv( + self, other, axis: Axis = "columns", level=None, fill_value=None + ) -> DataFrame: + return self._flex_arith_method( + other, roperator.rtruediv, level=level, fill_value=fill_value, axis=axis + ) + + rdiv = rtruediv + + @Appender(ops.make_flex_doc("floordiv", "dataframe")) + def floordiv( + self, other, axis: Axis = "columns", level=None, fill_value=None + ) -> DataFrame: + return self._flex_arith_method( + other, operator.floordiv, level=level, fill_value=fill_value, axis=axis + ) + + @Appender(ops.make_flex_doc("rfloordiv", "dataframe")) + def rfloordiv( + self, other, axis: Axis = "columns", level=None, fill_value=None + ) -> DataFrame: + return self._flex_arith_method( + other, roperator.rfloordiv, level=level, fill_value=fill_value, axis=axis + ) + + @Appender(ops.make_flex_doc("mod", "dataframe")) + def mod( + self, other, axis: Axis = "columns", level=None, fill_value=None + ) -> DataFrame: + return self._flex_arith_method( + other, operator.mod, level=level, fill_value=fill_value, axis=axis + ) + + @Appender(ops.make_flex_doc("rmod", "dataframe")) + def rmod( + self, other, axis: Axis = "columns", level=None, fill_value=None + ) -> DataFrame: + return self._flex_arith_method( + other, roperator.rmod, level=level, fill_value=fill_value, axis=axis + ) + + @Appender(ops.make_flex_doc("pow", "dataframe")) + def pow( + self, other, axis: Axis = "columns", level=None, fill_value=None + ) -> DataFrame: + return self._flex_arith_method( + other, operator.pow, level=level, fill_value=fill_value, axis=axis + ) + + @Appender(ops.make_flex_doc("rpow", "dataframe")) + def rpow( + self, other, axis: Axis = "columns", level=None, fill_value=None + ) -> DataFrame: + return self._flex_arith_method( + other, roperator.rpow, level=level, fill_value=fill_value, axis=axis + ) + + # ---------------------------------------------------------------------- + # Combination-Related + + @doc( + _shared_docs["compare"], + dedent( + """ + Returns + ------- + DataFrame + DataFrame that shows the differences stacked side by side. + + The resulting index will be a MultiIndex with 'self' and 'other' + stacked alternately at the inner level. + + Raises + ------ + ValueError + When the two DataFrames don't have identical labels or shape. + + See Also + -------- + Series.compare : Compare with another Series and show differences. + DataFrame.equals : Test whether two objects contain the same elements. + + Notes + ----- + Matching NaNs will not appear as a difference. + + Can only compare identically-labeled + (i.e. same shape, identical row and column labels) DataFrames + + Examples + -------- + >>> df = pd.DataFrame( + ... {{ + ... "col1": ["a", "a", "b", "b", "a"], + ... "col2": [1.0, 2.0, 3.0, np.nan, 5.0], + ... "col3": [1.0, 2.0, 3.0, 4.0, 5.0] + ... }}, + ... columns=["col1", "col2", "col3"], + ... ) + >>> df + col1 col2 col3 + 0 a 1.0 1.0 + 1 a 2.0 2.0 + 2 b 3.0 3.0 + 3 b NaN 4.0 + 4 a 5.0 5.0 + + >>> df2 = df.copy() + >>> df2.loc[0, 'col1'] = 'c' + >>> df2.loc[2, 'col3'] = 4.0 + >>> df2 + col1 col2 col3 + 0 c 1.0 1.0 + 1 a 2.0 2.0 + 2 b 3.0 4.0 + 3 b NaN 4.0 + 4 a 5.0 5.0 + + Align the differences on columns + + >>> df.compare(df2) + col1 col3 + self other self other + 0 a c NaN NaN + 2 NaN NaN 3.0 4.0 + + Assign result_names + + >>> df.compare(df2, result_names=("left", "right")) + col1 col3 + left right left right + 0 a c NaN NaN + 2 NaN NaN 3.0 4.0 + + Stack the differences on rows + + >>> df.compare(df2, align_axis=0) + col1 col3 + 0 self a NaN + other c NaN + 2 self NaN 3.0 + other NaN 4.0 + + Keep the equal values + + >>> df.compare(df2, keep_equal=True) + col1 col3 + self other self other + 0 a c 1.0 1.0 + 2 b b 3.0 4.0 + + Keep all original rows and columns + + >>> df.compare(df2, keep_shape=True) + col1 col2 col3 + self other self other self other + 0 a c NaN NaN NaN NaN + 1 NaN NaN NaN NaN NaN NaN + 2 NaN NaN NaN NaN 3.0 4.0 + 3 NaN NaN NaN NaN NaN NaN + 4 NaN NaN NaN NaN NaN NaN + + Keep all original rows and columns and also all original values + + >>> df.compare(df2, keep_shape=True, keep_equal=True) + col1 col2 col3 + self other self other self other + 0 a c 1.0 1.0 1.0 1.0 + 1 a a 2.0 2.0 2.0 2.0 + 2 b b 3.0 3.0 3.0 4.0 + 3 b b NaN NaN 4.0 4.0 + 4 a a 5.0 5.0 5.0 5.0 + """ + ), + klass=_shared_doc_kwargs["klass"], + ) + def compare( + self, + other: DataFrame, + align_axis: Axis = 1, + keep_shape: bool = False, + keep_equal: bool = False, + result_names: Suffixes = ("self", "other"), + ) -> DataFrame: + return super().compare( + other=other, + align_axis=align_axis, + keep_shape=keep_shape, + keep_equal=keep_equal, + result_names=result_names, + ) + + def combine( + self, + other: DataFrame, + func: Callable[[Series, Series], Series | Hashable], + fill_value=None, + overwrite: bool = True, + ) -> DataFrame: + """ + Perform column-wise combine with another DataFrame. + + Combines a DataFrame with `other` DataFrame using `func` + to element-wise combine columns. The row and column indexes of the + resulting DataFrame will be the union of the two. + + Parameters + ---------- + other : DataFrame + The DataFrame to merge column-wise. + func : function + Function that takes two series as inputs and return a Series or a + scalar. Used to merge the two dataframes column by columns. + fill_value : scalar value, default None + The value to fill NaNs with prior to passing any column to the + merge func. + overwrite : bool, default True + If True, columns in `self` that do not exist in `other` will be + overwritten with NaNs. + + Returns + ------- + DataFrame + Combination of the provided DataFrames. + + See Also + -------- + DataFrame.combine_first : Combine two DataFrame objects and default to + non-null values in frame calling the method. + + Examples + -------- + Combine using a simple function that chooses the smaller column. + + >>> df1 = pd.DataFrame({'A': [0, 0], 'B': [4, 4]}) + >>> df2 = pd.DataFrame({'A': [1, 1], 'B': [3, 3]}) + >>> take_smaller = lambda s1, s2: s1 if s1.sum() < s2.sum() else s2 + >>> df1.combine(df2, take_smaller) + A B + 0 0 3 + 1 0 3 + + Example using a true element-wise combine function. + + >>> df1 = pd.DataFrame({'A': [5, 0], 'B': [2, 4]}) + >>> df2 = pd.DataFrame({'A': [1, 1], 'B': [3, 3]}) + >>> df1.combine(df2, np.minimum) + A B + 0 1 2 + 1 0 3 + + Using `fill_value` fills Nones prior to passing the column to the + merge function. + + >>> df1 = pd.DataFrame({'A': [0, 0], 'B': [None, 4]}) + >>> df2 = pd.DataFrame({'A': [1, 1], 'B': [3, 3]}) + >>> df1.combine(df2, take_smaller, fill_value=-5) + A B + 0 0 -5.0 + 1 0 4.0 + + However, if the same element in both dataframes is None, that None + is preserved + + >>> df1 = pd.DataFrame({'A': [0, 0], 'B': [None, 4]}) + >>> df2 = pd.DataFrame({'A': [1, 1], 'B': [None, 3]}) + >>> df1.combine(df2, take_smaller, fill_value=-5) + A B + 0 0 -5.0 + 1 0 3.0 + + Example that demonstrates the use of `overwrite` and behavior when + the axis differ between the dataframes. + + >>> df1 = pd.DataFrame({'A': [0, 0], 'B': [4, 4]}) + >>> df2 = pd.DataFrame({'B': [3, 3], 'C': [-10, 1], }, index=[1, 2]) + >>> df1.combine(df2, take_smaller) + A B C + 0 NaN NaN NaN + 1 NaN 3.0 -10.0 + 2 NaN 3.0 1.0 + + >>> df1.combine(df2, take_smaller, overwrite=False) + A B C + 0 0.0 NaN NaN + 1 0.0 3.0 -10.0 + 2 NaN 3.0 1.0 + + Demonstrating the preference of the passed in dataframe. + + >>> df2 = pd.DataFrame({'B': [3, 3], 'C': [1, 1], }, index=[1, 2]) + >>> df2.combine(df1, take_smaller) + A B C + 0 0.0 NaN NaN + 1 0.0 3.0 NaN + 2 NaN 3.0 NaN + + >>> df2.combine(df1, take_smaller, overwrite=False) + A B C + 0 0.0 NaN NaN + 1 0.0 3.0 1.0 + 2 NaN 3.0 1.0 + """ + other_idxlen = len(other.index) # save for compare + + this, other = self.align(other, copy=False) + new_index = this.index + + if other.empty and len(new_index) == len(self.index): + return self.copy() + + if self.empty and len(other) == other_idxlen: + return other.copy() + + # sorts if possible; otherwise align above ensures that these are set-equal + new_columns = this.columns.union(other.columns) + do_fill = fill_value is not None + result = {} + for col in new_columns: + series = this[col] + other_series = other[col] + + this_dtype = series.dtype + other_dtype = other_series.dtype + + this_mask = isna(series) + other_mask = isna(other_series) + + # don't overwrite columns unnecessarily + # DO propagate if this column is not in the intersection + if not overwrite and other_mask.all(): + result[col] = this[col].copy() + continue + + if do_fill: + series = series.copy() + other_series = other_series.copy() + series[this_mask] = fill_value + other_series[other_mask] = fill_value + + if col not in self.columns: + # If self DataFrame does not have col in other DataFrame, + # try to promote series, which is all NaN, as other_dtype. + new_dtype = other_dtype + try: + series = series.astype(new_dtype, copy=False) + except ValueError: + # e.g. new_dtype is integer types + pass + else: + # if we have different dtypes, possibly promote + new_dtype = find_common_type([this_dtype, other_dtype]) + series = series.astype(new_dtype, copy=False) + other_series = other_series.astype(new_dtype, copy=False) + + arr = func(series, other_series) + if isinstance(new_dtype, np.dtype): + # if new_dtype is an EA Dtype, then `func` is expected to return + # the correct dtype without any additional casting + # error: No overload variant of "maybe_downcast_to_dtype" matches + # argument types "Union[Series, Hashable]", "dtype[Any]" + arr = maybe_downcast_to_dtype( # type: ignore[call-overload] + arr, new_dtype + ) + + result[col] = arr + + # convert_objects just in case + frame_result = self._constructor(result, index=new_index, columns=new_columns) + return frame_result.__finalize__(self, method="combine") + + def combine_first(self, other: DataFrame) -> DataFrame: + """ + Update null elements with value in the same location in `other`. + + Combine two DataFrame objects by filling null values in one DataFrame + with non-null values from other DataFrame. The row and column indexes + of the resulting DataFrame will be the union of the two. The resulting + dataframe contains the 'first' dataframe values and overrides the + second one values where both first.loc[index, col] and + second.loc[index, col] are not missing values, upon calling + first.combine_first(second). + + Parameters + ---------- + other : DataFrame + Provided DataFrame to use to fill null values. + + Returns + ------- + DataFrame + The result of combining the provided DataFrame with the other object. + + See Also + -------- + DataFrame.combine : Perform series-wise operation on two DataFrames + using a given function. + + Examples + -------- + >>> df1 = pd.DataFrame({'A': [None, 0], 'B': [None, 4]}) + >>> df2 = pd.DataFrame({'A': [1, 1], 'B': [3, 3]}) + >>> df1.combine_first(df2) + A B + 0 1.0 3.0 + 1 0.0 4.0 + + Null values still persist if the location of that null value + does not exist in `other` + + >>> df1 = pd.DataFrame({'A': [None, 0], 'B': [4, None]}) + >>> df2 = pd.DataFrame({'B': [3, 3], 'C': [1, 1]}, index=[1, 2]) + >>> df1.combine_first(df2) + A B C + 0 NaN 4.0 NaN + 1 0.0 3.0 1.0 + 2 NaN 3.0 1.0 + """ + from pandas.core.computation import expressions + + def combiner(x: Series, y: Series): + mask = x.isna()._values + + x_values = x._values + y_values = y._values + + # If the column y in other DataFrame is not in first DataFrame, + # just return y_values. + if y.name not in self.columns: + return y_values + + return expressions.where(mask, y_values, x_values) + + if len(other) == 0: + combined = self.reindex( + self.columns.append(other.columns.difference(self.columns)), axis=1 + ) + combined = combined.astype(other.dtypes) + else: + combined = self.combine(other, combiner, overwrite=False) + + dtypes = { + col: find_common_type([self.dtypes[col], other.dtypes[col]]) + for col in self.columns.intersection(other.columns) + if combined.dtypes[col] != self.dtypes[col] + } + + if dtypes: + combined = combined.astype(dtypes) + + return combined.__finalize__(self, method="combine_first") + + def update( + self, + other, + join: UpdateJoin = "left", + overwrite: bool = True, + filter_func=None, + errors: IgnoreRaise = "ignore", + ) -> None: + """ + Modify in place using non-NA values from another DataFrame. + + Aligns on indices. There is no return value. + + Parameters + ---------- + other : DataFrame, or object coercible into a DataFrame + Should have at least one matching index/column label + with the original DataFrame. If a Series is passed, + its name attribute must be set, and that will be + used as the column name to align with the original DataFrame. + join : {'left'}, default 'left' + Only left join is implemented, keeping the index and columns of the + original object. + overwrite : bool, default True + How to handle non-NA values for overlapping keys: + + * True: overwrite original DataFrame's values + with values from `other`. + * False: only update values that are NA in + the original DataFrame. + + filter_func : callable(1d-array) -> bool 1d-array, optional + Can choose to replace values other than NA. Return True for values + that should be updated. + errors : {'raise', 'ignore'}, default 'ignore' + If 'raise', will raise a ValueError if the DataFrame and `other` + both contain non-NA data in the same place. + + Returns + ------- + None + This method directly changes calling object. + + Raises + ------ + ValueError + * When `errors='raise'` and there's overlapping non-NA data. + * When `errors` is not either `'ignore'` or `'raise'` + NotImplementedError + * If `join != 'left'` + + See Also + -------- + dict.update : Similar method for dictionaries. + DataFrame.merge : For column(s)-on-column(s) operations. + + Examples + -------- + >>> df = pd.DataFrame({'A': [1, 2, 3], + ... 'B': [400, 500, 600]}) + >>> new_df = pd.DataFrame({'B': [4, 5, 6], + ... 'C': [7, 8, 9]}) + >>> df.update(new_df) + >>> df + A B + 0 1 4 + 1 2 5 + 2 3 6 + + The DataFrame's length does not increase as a result of the update, + only values at matching index/column labels are updated. + + >>> df = pd.DataFrame({'A': ['a', 'b', 'c'], + ... 'B': ['x', 'y', 'z']}) + >>> new_df = pd.DataFrame({'B': ['d', 'e', 'f', 'g', 'h', 'i']}) + >>> df.update(new_df) + >>> df + A B + 0 a d + 1 b e + 2 c f + + >>> df = pd.DataFrame({'A': ['a', 'b', 'c'], + ... 'B': ['x', 'y', 'z']}) + >>> new_df = pd.DataFrame({'B': ['d', 'f']}, index=[0, 2]) + >>> df.update(new_df) + >>> df + A B + 0 a d + 1 b y + 2 c f + + For Series, its name attribute must be set. + + >>> df = pd.DataFrame({'A': ['a', 'b', 'c'], + ... 'B': ['x', 'y', 'z']}) + >>> new_column = pd.Series(['d', 'e', 'f'], name='B') + >>> df.update(new_column) + >>> df + A B + 0 a d + 1 b e + 2 c f + + If `other` contains NaNs the corresponding values are not updated + in the original dataframe. + + >>> df = pd.DataFrame({'A': [1, 2, 3], + ... 'B': [400., 500., 600.]}) + >>> new_df = pd.DataFrame({'B': [4, np.nan, 6]}) + >>> df.update(new_df) + >>> df + A B + 0 1 4.0 + 1 2 500.0 + 2 3 6.0 + """ + + if not PYPY and not WARNING_CHECK_DISABLED and using_copy_on_write(): + if sys.getrefcount(self) <= REF_COUNT: + warnings.warn( + _chained_assignment_method_msg, + ChainedAssignmentError, + stacklevel=2, + ) + elif ( + not PYPY + and not WARNING_CHECK_DISABLED + and not using_copy_on_write() + and self._is_view_after_cow_rules() + ): + if sys.getrefcount(self) <= REF_COUNT: + warnings.warn( + _chained_assignment_warning_method_msg, + FutureWarning, + stacklevel=2, + ) + + # TODO: Support other joins + if join != "left": # pragma: no cover + raise NotImplementedError("Only left join is supported") + if errors not in ["ignore", "raise"]: + raise ValueError("The parameter errors must be either 'ignore' or 'raise'") + + if not isinstance(other, DataFrame): + other = DataFrame(other) + + other = other.reindex(self.index) + + for col in self.columns.intersection(other.columns): + this = self[col]._values + that = other[col]._values + + if filter_func is not None: + mask = ~filter_func(this) | isna(that) + else: + if errors == "raise": + mask_this = notna(that) + mask_that = notna(this) + if any(mask_this & mask_that): + raise ValueError("Data overlaps.") + + if overwrite: + mask = isna(that) + else: + mask = notna(this) + + # don't overwrite columns unnecessarily + if mask.all(): + continue + + with warnings.catch_warnings(): + warnings.filterwarnings( + "ignore", + message="Downcasting behavior", + category=FutureWarning, + ) + # GH#57124 - `that` might get upcasted because of NA values, and then + # downcasted in where because of the mask. Ignoring the warning + # is a stopgap, will replace with a new implementation of update + # in 3.0. + self.loc[:, col] = self[col].where(mask, that) + + # ---------------------------------------------------------------------- + # Data reshaping + @Appender( + dedent( + """ + Examples + -------- + >>> df = pd.DataFrame({'Animal': ['Falcon', 'Falcon', + ... 'Parrot', 'Parrot'], + ... 'Max Speed': [380., 370., 24., 26.]}) + >>> df + Animal Max Speed + 0 Falcon 380.0 + 1 Falcon 370.0 + 2 Parrot 24.0 + 3 Parrot 26.0 + >>> df.groupby(['Animal']).mean() + Max Speed + Animal + Falcon 375.0 + Parrot 25.0 + + **Hierarchical Indexes** + + We can groupby different levels of a hierarchical index + using the `level` parameter: + + >>> arrays = [['Falcon', 'Falcon', 'Parrot', 'Parrot'], + ... ['Captive', 'Wild', 'Captive', 'Wild']] + >>> index = pd.MultiIndex.from_arrays(arrays, names=('Animal', 'Type')) + >>> df = pd.DataFrame({'Max Speed': [390., 350., 30., 20.]}, + ... index=index) + >>> df + Max Speed + Animal Type + Falcon Captive 390.0 + Wild 350.0 + Parrot Captive 30.0 + Wild 20.0 + >>> df.groupby(level=0).mean() + Max Speed + Animal + Falcon 370.0 + Parrot 25.0 + >>> df.groupby(level="Type").mean() + Max Speed + Type + Captive 210.0 + Wild 185.0 + + We can also choose to include NA in group keys or not by setting + `dropna` parameter, the default setting is `True`. + + >>> l = [[1, 2, 3], [1, None, 4], [2, 1, 3], [1, 2, 2]] + >>> df = pd.DataFrame(l, columns=["a", "b", "c"]) + + >>> df.groupby(by=["b"]).sum() + a c + b + 1.0 2 3 + 2.0 2 5 + + >>> df.groupby(by=["b"], dropna=False).sum() + a c + b + 1.0 2 3 + 2.0 2 5 + NaN 1 4 + + >>> l = [["a", 12, 12], [None, 12.3, 33.], ["b", 12.3, 123], ["a", 1, 1]] + >>> df = pd.DataFrame(l, columns=["a", "b", "c"]) + + >>> df.groupby(by="a").sum() + b c + a + a 13.0 13.0 + b 12.3 123.0 + + >>> df.groupby(by="a", dropna=False).sum() + b c + a + a 13.0 13.0 + b 12.3 123.0 + NaN 12.3 33.0 + + When using ``.apply()``, use ``group_keys`` to include or exclude the + group keys. The ``group_keys`` argument defaults to ``True`` (include). + + >>> df = pd.DataFrame({'Animal': ['Falcon', 'Falcon', + ... 'Parrot', 'Parrot'], + ... 'Max Speed': [380., 370., 24., 26.]}) + >>> df.groupby("Animal", group_keys=True)[['Max Speed']].apply(lambda x: x) + Max Speed + Animal + Falcon 0 380.0 + 1 370.0 + Parrot 2 24.0 + 3 26.0 + + >>> df.groupby("Animal", group_keys=False)[['Max Speed']].apply(lambda x: x) + Max Speed + 0 380.0 + 1 370.0 + 2 24.0 + 3 26.0 + """ + ) + ) + @Appender(_shared_docs["groupby"] % _shared_doc_kwargs) + def groupby( + self, + by=None, + axis: Axis | lib.NoDefault = lib.no_default, + level: IndexLabel | None = None, + as_index: bool = True, + sort: bool = True, + group_keys: bool = True, + observed: bool | lib.NoDefault = lib.no_default, + dropna: bool = True, + ) -> DataFrameGroupBy: + if axis is not lib.no_default: + axis = self._get_axis_number(axis) + if axis == 1: + warnings.warn( + "DataFrame.groupby with axis=1 is deprecated. Do " + "`frame.T.groupby(...)` without axis instead.", + FutureWarning, + stacklevel=find_stack_level(), + ) + else: + warnings.warn( + "The 'axis' keyword in DataFrame.groupby is deprecated and " + "will be removed in a future version.", + FutureWarning, + stacklevel=find_stack_level(), + ) + else: + axis = 0 + + from pandas.core.groupby.generic import DataFrameGroupBy + + if level is None and by is None: + raise TypeError("You have to supply one of 'by' and 'level'") + + return DataFrameGroupBy( + obj=self, + keys=by, + axis=axis, + level=level, + as_index=as_index, + sort=sort, + group_keys=group_keys, + observed=observed, + dropna=dropna, + ) + + _shared_docs[ + "pivot" + ] = """ + Return reshaped DataFrame organized by given index / column values. + + Reshape data (produce a "pivot" table) based on column values. Uses + unique values from specified `index` / `columns` to form axes of the + resulting DataFrame. This function does not support data + aggregation, multiple values will result in a MultiIndex in the + columns. See the :ref:`User Guide ` for more on reshaping. + + Parameters + ----------%s + columns : str or object or a list of str + Column to use to make new frame's columns. + index : str or object or a list of str, optional + Column to use to make new frame's index. If not given, uses existing index. + values : str, object or a list of the previous, optional + Column(s) to use for populating new frame's values. If not + specified, all remaining columns will be used and the result will + have hierarchically indexed columns. + + Returns + ------- + DataFrame + Returns reshaped DataFrame. + + Raises + ------ + ValueError: + When there are any `index`, `columns` combinations with multiple + values. `DataFrame.pivot_table` when you need to aggregate. + + See Also + -------- + DataFrame.pivot_table : Generalization of pivot that can handle + duplicate values for one index/column pair. + DataFrame.unstack : Pivot based on the index values instead of a + column. + wide_to_long : Wide panel to long format. Less flexible but more + user-friendly than melt. + + Notes + ----- + For finer-tuned control, see hierarchical indexing documentation along + with the related stack/unstack methods. + + Reference :ref:`the user guide ` for more examples. + + Examples + -------- + >>> df = pd.DataFrame({'foo': ['one', 'one', 'one', 'two', 'two', + ... 'two'], + ... 'bar': ['A', 'B', 'C', 'A', 'B', 'C'], + ... 'baz': [1, 2, 3, 4, 5, 6], + ... 'zoo': ['x', 'y', 'z', 'q', 'w', 't']}) + >>> df + foo bar baz zoo + 0 one A 1 x + 1 one B 2 y + 2 one C 3 z + 3 two A 4 q + 4 two B 5 w + 5 two C 6 t + + >>> df.pivot(index='foo', columns='bar', values='baz') + bar A B C + foo + one 1 2 3 + two 4 5 6 + + >>> df.pivot(index='foo', columns='bar')['baz'] + bar A B C + foo + one 1 2 3 + two 4 5 6 + + >>> df.pivot(index='foo', columns='bar', values=['baz', 'zoo']) + baz zoo + bar A B C A B C + foo + one 1 2 3 x y z + two 4 5 6 q w t + + You could also assign a list of column names or a list of index names. + + >>> df = pd.DataFrame({ + ... "lev1": [1, 1, 1, 2, 2, 2], + ... "lev2": [1, 1, 2, 1, 1, 2], + ... "lev3": [1, 2, 1, 2, 1, 2], + ... "lev4": [1, 2, 3, 4, 5, 6], + ... "values": [0, 1, 2, 3, 4, 5]}) + >>> df + lev1 lev2 lev3 lev4 values + 0 1 1 1 1 0 + 1 1 1 2 2 1 + 2 1 2 1 3 2 + 3 2 1 2 4 3 + 4 2 1 1 5 4 + 5 2 2 2 6 5 + + >>> df.pivot(index="lev1", columns=["lev2", "lev3"], values="values") + lev2 1 2 + lev3 1 2 1 2 + lev1 + 1 0.0 1.0 2.0 NaN + 2 4.0 3.0 NaN 5.0 + + >>> df.pivot(index=["lev1", "lev2"], columns=["lev3"], values="values") + lev3 1 2 + lev1 lev2 + 1 1 0.0 1.0 + 2 2.0 NaN + 2 1 4.0 3.0 + 2 NaN 5.0 + + A ValueError is raised if there are any duplicates. + + >>> df = pd.DataFrame({"foo": ['one', 'one', 'two', 'two'], + ... "bar": ['A', 'A', 'B', 'C'], + ... "baz": [1, 2, 3, 4]}) + >>> df + foo bar baz + 0 one A 1 + 1 one A 2 + 2 two B 3 + 3 two C 4 + + Notice that the first two rows are the same for our `index` + and `columns` arguments. + + >>> df.pivot(index='foo', columns='bar', values='baz') + Traceback (most recent call last): + ... + ValueError: Index contains duplicate entries, cannot reshape + """ + + @Substitution("") + @Appender(_shared_docs["pivot"]) + def pivot( + self, *, columns, index=lib.no_default, values=lib.no_default + ) -> DataFrame: + from pandas.core.reshape.pivot import pivot + + return pivot(self, index=index, columns=columns, values=values) + + _shared_docs[ + "pivot_table" + ] = """ + Create a spreadsheet-style pivot table as a DataFrame. + + The levels in the pivot table will be stored in MultiIndex objects + (hierarchical indexes) on the index and columns of the result DataFrame. + + Parameters + ----------%s + values : list-like or scalar, optional + Column or columns to aggregate. + index : column, Grouper, array, or list of the previous + Keys to group by on the pivot table index. If a list is passed, + it can contain any of the other types (except list). If an array is + passed, it must be the same length as the data and will be used in + the same manner as column values. + columns : column, Grouper, array, or list of the previous + Keys to group by on the pivot table column. If a list is passed, + it can contain any of the other types (except list). If an array is + passed, it must be the same length as the data and will be used in + the same manner as column values. + aggfunc : function, list of functions, dict, default "mean" + If a list of functions is passed, the resulting pivot table will have + hierarchical columns whose top level are the function names + (inferred from the function objects themselves). + If a dict is passed, the key is column to aggregate and the value is + function or list of functions. If ``margin=True``, aggfunc will be + used to calculate the partial aggregates. + fill_value : scalar, default None + Value to replace missing values with (in the resulting pivot table, + after aggregation). + margins : bool, default False + If ``margins=True``, special ``All`` columns and rows + will be added with partial group aggregates across the categories + on the rows and columns. + dropna : bool, default True + Do not include columns whose entries are all NaN. If True, + rows with a NaN value in any column will be omitted before + computing margins. + margins_name : str, default 'All' + Name of the row / column that will contain the totals + when margins is True. + observed : bool, default False + This only applies if any of the groupers are Categoricals. + If True: only show observed values for categorical groupers. + If False: show all values for categorical groupers. + + .. deprecated:: 2.2.0 + + The default value of ``False`` is deprecated and will change to + ``True`` in a future version of pandas. + + sort : bool, default True + Specifies if the result should be sorted. + + .. versionadded:: 1.3.0 + + Returns + ------- + DataFrame + An Excel style pivot table. + + See Also + -------- + DataFrame.pivot : Pivot without aggregation that can handle + non-numeric data. + DataFrame.melt: Unpivot a DataFrame from wide to long format, + optionally leaving identifiers set. + wide_to_long : Wide panel to long format. Less flexible but more + user-friendly than melt. + + Notes + ----- + Reference :ref:`the user guide ` for more examples. + + Examples + -------- + >>> df = pd.DataFrame({"A": ["foo", "foo", "foo", "foo", "foo", + ... "bar", "bar", "bar", "bar"], + ... "B": ["one", "one", "one", "two", "two", + ... "one", "one", "two", "two"], + ... "C": ["small", "large", "large", "small", + ... "small", "large", "small", "small", + ... "large"], + ... "D": [1, 2, 2, 3, 3, 4, 5, 6, 7], + ... "E": [2, 4, 5, 5, 6, 6, 8, 9, 9]}) + >>> df + A B C D E + 0 foo one small 1 2 + 1 foo one large 2 4 + 2 foo one large 2 5 + 3 foo two small 3 5 + 4 foo two small 3 6 + 5 bar one large 4 6 + 6 bar one small 5 8 + 7 bar two small 6 9 + 8 bar two large 7 9 + + This first example aggregates values by taking the sum. + + >>> table = pd.pivot_table(df, values='D', index=['A', 'B'], + ... columns=['C'], aggfunc="sum") + >>> table + C large small + A B + bar one 4.0 5.0 + two 7.0 6.0 + foo one 4.0 1.0 + two NaN 6.0 + + We can also fill missing values using the `fill_value` parameter. + + >>> table = pd.pivot_table(df, values='D', index=['A', 'B'], + ... columns=['C'], aggfunc="sum", fill_value=0) + >>> table + C large small + A B + bar one 4 5 + two 7 6 + foo one 4 1 + two 0 6 + + The next example aggregates by taking the mean across multiple columns. + + >>> table = pd.pivot_table(df, values=['D', 'E'], index=['A', 'C'], + ... aggfunc={'D': "mean", 'E': "mean"}) + >>> table + D E + A C + bar large 5.500000 7.500000 + small 5.500000 8.500000 + foo large 2.000000 4.500000 + small 2.333333 4.333333 + + We can also calculate multiple types of aggregations for any given + value column. + + >>> table = pd.pivot_table(df, values=['D', 'E'], index=['A', 'C'], + ... aggfunc={'D': "mean", + ... 'E': ["min", "max", "mean"]}) + >>> table + D E + mean max mean min + A C + bar large 5.500000 9 7.500000 6 + small 5.500000 9 8.500000 8 + foo large 2.000000 5 4.500000 4 + small 2.333333 6 4.333333 2 + """ + + @Substitution("") + @Appender(_shared_docs["pivot_table"]) + def pivot_table( + self, + values=None, + index=None, + columns=None, + aggfunc: AggFuncType = "mean", + fill_value=None, + margins: bool = False, + dropna: bool = True, + margins_name: Level = "All", + observed: bool | lib.NoDefault = lib.no_default, + sort: bool = True, + ) -> DataFrame: + from pandas.core.reshape.pivot import pivot_table + + return pivot_table( + self, + values=values, + index=index, + columns=columns, + aggfunc=aggfunc, + fill_value=fill_value, + margins=margins, + dropna=dropna, + margins_name=margins_name, + observed=observed, + sort=sort, + ) + + def stack( + self, + level: IndexLabel = -1, + dropna: bool | lib.NoDefault = lib.no_default, + sort: bool | lib.NoDefault = lib.no_default, + future_stack: bool = False, + ): + """ + Stack the prescribed level(s) from columns to index. + + Return a reshaped DataFrame or Series having a multi-level + index with one or more new inner-most levels compared to the current + DataFrame. The new inner-most levels are created by pivoting the + columns of the current dataframe: + + - if the columns have a single level, the output is a Series; + - if the columns have multiple levels, the new index + level(s) is (are) taken from the prescribed level(s) and + the output is a DataFrame. + + Parameters + ---------- + level : int, str, list, default -1 + Level(s) to stack from the column axis onto the index + axis, defined as one index or label, or a list of indices + or labels. + dropna : bool, default True + Whether to drop rows in the resulting Frame/Series with + missing values. Stacking a column level onto the index + axis can create combinations of index and column values + that are missing from the original dataframe. See Examples + section. + sort : bool, default True + Whether to sort the levels of the resulting MultiIndex. + future_stack : bool, default False + Whether to use the new implementation that will replace the current + implementation in pandas 3.0. When True, dropna and sort have no impact + on the result and must remain unspecified. See :ref:`pandas 2.1.0 Release + notes ` for more details. + + Returns + ------- + DataFrame or Series + Stacked dataframe or series. + + See Also + -------- + DataFrame.unstack : Unstack prescribed level(s) from index axis + onto column axis. + DataFrame.pivot : Reshape dataframe from long format to wide + format. + DataFrame.pivot_table : Create a spreadsheet-style pivot table + as a DataFrame. + + Notes + ----- + The function is named by analogy with a collection of books + being reorganized from being side by side on a horizontal + position (the columns of the dataframe) to being stacked + vertically on top of each other (in the index of the + dataframe). + + Reference :ref:`the user guide ` for more examples. + + Examples + -------- + **Single level columns** + + >>> df_single_level_cols = pd.DataFrame([[0, 1], [2, 3]], + ... index=['cat', 'dog'], + ... columns=['weight', 'height']) + + Stacking a dataframe with a single level column axis returns a Series: + + >>> df_single_level_cols + weight height + cat 0 1 + dog 2 3 + >>> df_single_level_cols.stack(future_stack=True) + cat weight 0 + height 1 + dog weight 2 + height 3 + dtype: int64 + + **Multi level columns: simple case** + + >>> multicol1 = pd.MultiIndex.from_tuples([('weight', 'kg'), + ... ('weight', 'pounds')]) + >>> df_multi_level_cols1 = pd.DataFrame([[1, 2], [2, 4]], + ... index=['cat', 'dog'], + ... columns=multicol1) + + Stacking a dataframe with a multi-level column axis: + + >>> df_multi_level_cols1 + weight + kg pounds + cat 1 2 + dog 2 4 + >>> df_multi_level_cols1.stack(future_stack=True) + weight + cat kg 1 + pounds 2 + dog kg 2 + pounds 4 + + **Missing values** + + >>> multicol2 = pd.MultiIndex.from_tuples([('weight', 'kg'), + ... ('height', 'm')]) + >>> df_multi_level_cols2 = pd.DataFrame([[1.0, 2.0], [3.0, 4.0]], + ... index=['cat', 'dog'], + ... columns=multicol2) + + It is common to have missing values when stacking a dataframe + with multi-level columns, as the stacked dataframe typically + has more values than the original dataframe. Missing values + are filled with NaNs: + + >>> df_multi_level_cols2 + weight height + kg m + cat 1.0 2.0 + dog 3.0 4.0 + >>> df_multi_level_cols2.stack(future_stack=True) + weight height + cat kg 1.0 NaN + m NaN 2.0 + dog kg 3.0 NaN + m NaN 4.0 + + **Prescribing the level(s) to be stacked** + + The first parameter controls which level or levels are stacked: + + >>> df_multi_level_cols2.stack(0, future_stack=True) + kg m + cat weight 1.0 NaN + height NaN 2.0 + dog weight 3.0 NaN + height NaN 4.0 + >>> df_multi_level_cols2.stack([0, 1], future_stack=True) + cat weight kg 1.0 + height m 2.0 + dog weight kg 3.0 + height m 4.0 + dtype: float64 + """ + if not future_stack: + from pandas.core.reshape.reshape import ( + stack, + stack_multiple, + ) + + if ( + dropna is not lib.no_default + or sort is not lib.no_default + or self.columns.nlevels > 1 + ): + warnings.warn( + "The previous implementation of stack is deprecated and will be " + "removed in a future version of pandas. See the What's New notes " + "for pandas 2.1.0 for details. Specify future_stack=True to adopt " + "the new implementation and silence this warning.", + FutureWarning, + stacklevel=find_stack_level(), + ) + + if dropna is lib.no_default: + dropna = True + if sort is lib.no_default: + sort = True + + if isinstance(level, (tuple, list)): + result = stack_multiple(self, level, dropna=dropna, sort=sort) + else: + result = stack(self, level, dropna=dropna, sort=sort) + else: + from pandas.core.reshape.reshape import stack_v3 + + if dropna is not lib.no_default: + raise ValueError( + "dropna must be unspecified with future_stack=True as the new " + "implementation does not introduce rows of NA values. This " + "argument will be removed in a future version of pandas." + ) + + if sort is not lib.no_default: + raise ValueError( + "Cannot specify sort with future_stack=True, this argument will be " + "removed in a future version of pandas. Sort the result using " + ".sort_index instead." + ) + + if ( + isinstance(level, (tuple, list)) + and not all(lev in self.columns.names for lev in level) + and not all(isinstance(lev, int) for lev in level) + ): + raise ValueError( + "level should contain all level names or all level " + "numbers, not a mixture of the two." + ) + + if not isinstance(level, (tuple, list)): + level = [level] + level = [self.columns._get_level_number(lev) for lev in level] + result = stack_v3(self, level) + + return result.__finalize__(self, method="stack") + + def explode( + self, + column: IndexLabel, + ignore_index: bool = False, + ) -> DataFrame: + """ + Transform each element of a list-like to a row, replicating index values. + + Parameters + ---------- + column : IndexLabel + Column(s) to explode. + For multiple columns, specify a non-empty list with each element + be str or tuple, and all specified columns their list-like data + on same row of the frame must have matching length. + + .. versionadded:: 1.3.0 + Multi-column explode + + ignore_index : bool, default False + If True, the resulting index will be labeled 0, 1, …, n - 1. + + Returns + ------- + DataFrame + Exploded lists to rows of the subset columns; + index will be duplicated for these rows. + + Raises + ------ + ValueError : + * If columns of the frame are not unique. + * If specified columns to explode is empty list. + * If specified columns to explode have not matching count of + elements rowwise in the frame. + + See Also + -------- + DataFrame.unstack : Pivot a level of the (necessarily hierarchical) + index labels. + DataFrame.melt : Unpivot a DataFrame from wide format to long format. + Series.explode : Explode a DataFrame from list-like columns to long format. + + Notes + ----- + This routine will explode list-likes including lists, tuples, sets, + Series, and np.ndarray. The result dtype of the subset rows will + be object. Scalars will be returned unchanged, and empty list-likes will + result in a np.nan for that row. In addition, the ordering of rows in the + output will be non-deterministic when exploding sets. + + Reference :ref:`the user guide ` for more examples. + + Examples + -------- + >>> df = pd.DataFrame({'A': [[0, 1, 2], 'foo', [], [3, 4]], + ... 'B': 1, + ... 'C': [['a', 'b', 'c'], np.nan, [], ['d', 'e']]}) + >>> df + A B C + 0 [0, 1, 2] 1 [a, b, c] + 1 foo 1 NaN + 2 [] 1 [] + 3 [3, 4] 1 [d, e] + + Single-column explode. + + >>> df.explode('A') + A B C + 0 0 1 [a, b, c] + 0 1 1 [a, b, c] + 0 2 1 [a, b, c] + 1 foo 1 NaN + 2 NaN 1 [] + 3 3 1 [d, e] + 3 4 1 [d, e] + + Multi-column explode. + + >>> df.explode(list('AC')) + A B C + 0 0 1 a + 0 1 1 b + 0 2 1 c + 1 foo 1 NaN + 2 NaN 1 NaN + 3 3 1 d + 3 4 1 e + """ + if not self.columns.is_unique: + duplicate_cols = self.columns[self.columns.duplicated()].tolist() + raise ValueError( + f"DataFrame columns must be unique. Duplicate columns: {duplicate_cols}" + ) + + columns: list[Hashable] + if is_scalar(column) or isinstance(column, tuple): + columns = [column] + elif isinstance(column, list) and all( + is_scalar(c) or isinstance(c, tuple) for c in column + ): + if not column: + raise ValueError("column must be nonempty") + if len(column) > len(set(column)): + raise ValueError("column must be unique") + columns = column + else: + raise ValueError("column must be a scalar, tuple, or list thereof") + + df = self.reset_index(drop=True) + if len(columns) == 1: + result = df[columns[0]].explode() + else: + mylen = lambda x: len(x) if (is_list_like(x) and len(x) > 0) else 1 + counts0 = self[columns[0]].apply(mylen) + for c in columns[1:]: + if not all(counts0 == self[c].apply(mylen)): + raise ValueError("columns must have matching element counts") + result = DataFrame({c: df[c].explode() for c in columns}) + result = df.drop(columns, axis=1).join(result) + if ignore_index: + result.index = default_index(len(result)) + else: + result.index = self.index.take(result.index) + result = result.reindex(columns=self.columns, copy=False) + + return result.__finalize__(self, method="explode") + + def unstack(self, level: IndexLabel = -1, fill_value=None, sort: bool = True): + """ + Pivot a level of the (necessarily hierarchical) index labels. + + Returns a DataFrame having a new level of column labels whose inner-most level + consists of the pivoted index labels. + + If the index is not a MultiIndex, the output will be a Series + (the analogue of stack when the columns are not a MultiIndex). + + Parameters + ---------- + level : int, str, or list of these, default -1 (last level) + Level(s) of index to unstack, can pass level name. + fill_value : int, str or dict + Replace NaN with this value if the unstack produces missing values. + sort : bool, default True + Sort the level(s) in the resulting MultiIndex columns. + + Returns + ------- + Series or DataFrame + + See Also + -------- + DataFrame.pivot : Pivot a table based on column values. + DataFrame.stack : Pivot a level of the column labels (inverse operation + from `unstack`). + + Notes + ----- + Reference :ref:`the user guide ` for more examples. + + Examples + -------- + >>> index = pd.MultiIndex.from_tuples([('one', 'a'), ('one', 'b'), + ... ('two', 'a'), ('two', 'b')]) + >>> s = pd.Series(np.arange(1.0, 5.0), index=index) + >>> s + one a 1.0 + b 2.0 + two a 3.0 + b 4.0 + dtype: float64 + + >>> s.unstack(level=-1) + a b + one 1.0 2.0 + two 3.0 4.0 + + >>> s.unstack(level=0) + one two + a 1.0 3.0 + b 2.0 4.0 + + >>> df = s.unstack(level=0) + >>> df.unstack() + one a 1.0 + b 2.0 + two a 3.0 + b 4.0 + dtype: float64 + """ + from pandas.core.reshape.reshape import unstack + + result = unstack(self, level, fill_value, sort) + + return result.__finalize__(self, method="unstack") + + @Appender(_shared_docs["melt"] % {"caller": "df.melt(", "other": "melt"}) + def melt( + self, + id_vars=None, + value_vars=None, + var_name=None, + value_name: Hashable = "value", + col_level: Level | None = None, + ignore_index: bool = True, + ) -> DataFrame: + return melt( + self, + id_vars=id_vars, + value_vars=value_vars, + var_name=var_name, + value_name=value_name, + col_level=col_level, + ignore_index=ignore_index, + ).__finalize__(self, method="melt") + + # ---------------------------------------------------------------------- + # Time series-related + + @doc( + Series.diff, + klass="DataFrame", + extra_params="axis : {0 or 'index', 1 or 'columns'}, default 0\n " + "Take difference over rows (0) or columns (1).\n", + other_klass="Series", + examples=dedent( + """ + Difference with previous row + + >>> df = pd.DataFrame({'a': [1, 2, 3, 4, 5, 6], + ... 'b': [1, 1, 2, 3, 5, 8], + ... 'c': [1, 4, 9, 16, 25, 36]}) + >>> df + a b c + 0 1 1 1 + 1 2 1 4 + 2 3 2 9 + 3 4 3 16 + 4 5 5 25 + 5 6 8 36 + + >>> df.diff() + a b c + 0 NaN NaN NaN + 1 1.0 0.0 3.0 + 2 1.0 1.0 5.0 + 3 1.0 1.0 7.0 + 4 1.0 2.0 9.0 + 5 1.0 3.0 11.0 + + Difference with previous column + + >>> df.diff(axis=1) + a b c + 0 NaN 0 0 + 1 NaN -1 3 + 2 NaN -1 7 + 3 NaN -1 13 + 4 NaN 0 20 + 5 NaN 2 28 + + Difference with 3rd previous row + + >>> df.diff(periods=3) + a b c + 0 NaN NaN NaN + 1 NaN NaN NaN + 2 NaN NaN NaN + 3 3.0 2.0 15.0 + 4 3.0 4.0 21.0 + 5 3.0 6.0 27.0 + + Difference with following row + + >>> df.diff(periods=-1) + a b c + 0 -1.0 0.0 -3.0 + 1 -1.0 -1.0 -5.0 + 2 -1.0 -1.0 -7.0 + 3 -1.0 -2.0 -9.0 + 4 -1.0 -3.0 -11.0 + 5 NaN NaN NaN + + Overflow in input dtype + + >>> df = pd.DataFrame({'a': [1, 0]}, dtype=np.uint8) + >>> df.diff() + a + 0 NaN + 1 255.0""" + ), + ) + def diff(self, periods: int = 1, axis: Axis = 0) -> DataFrame: + if not lib.is_integer(periods): + if not (is_float(periods) and periods.is_integer()): + raise ValueError("periods must be an integer") + periods = int(periods) + + axis = self._get_axis_number(axis) + if axis == 1: + if periods != 0: + # in the periods == 0 case, this is equivalent diff of 0 periods + # along axis=0, and the Manager method may be somewhat more + # performant, so we dispatch in that case. + return self - self.shift(periods, axis=axis) + # With periods=0 this is equivalent to a diff with axis=0 + axis = 0 + + new_data = self._mgr.diff(n=periods) + res_df = self._constructor_from_mgr(new_data, axes=new_data.axes) + return res_df.__finalize__(self, "diff") + + # ---------------------------------------------------------------------- + # Function application + + def _gotitem( + self, + key: IndexLabel, + ndim: int, + subset: DataFrame | Series | None = None, + ) -> DataFrame | Series: + """ + Sub-classes to define. Return a sliced object. + + Parameters + ---------- + key : string / list of selections + ndim : {1, 2} + requested ndim of result + subset : object, default None + subset to act on + """ + if subset is None: + subset = self + elif subset.ndim == 1: # is Series + return subset + + # TODO: _shallow_copy(subset)? + return subset[key] + + _agg_see_also_doc = dedent( + """ + See Also + -------- + DataFrame.apply : Perform any type of operations. + DataFrame.transform : Perform transformation type operations. + pandas.DataFrame.groupby : Perform operations over groups. + pandas.DataFrame.resample : Perform operations over resampled bins. + pandas.DataFrame.rolling : Perform operations over rolling window. + pandas.DataFrame.expanding : Perform operations over expanding window. + pandas.core.window.ewm.ExponentialMovingWindow : Perform operation over exponential + weighted window. + """ + ) + + _agg_examples_doc = dedent( + """ + Examples + -------- + >>> df = pd.DataFrame([[1, 2, 3], + ... [4, 5, 6], + ... [7, 8, 9], + ... [np.nan, np.nan, np.nan]], + ... columns=['A', 'B', 'C']) + + Aggregate these functions over the rows. + + >>> df.agg(['sum', 'min']) + A B C + sum 12.0 15.0 18.0 + min 1.0 2.0 3.0 + + Different aggregations per column. + + >>> df.agg({'A' : ['sum', 'min'], 'B' : ['min', 'max']}) + A B + sum 12.0 NaN + min 1.0 2.0 + max NaN 8.0 + + Aggregate different functions over the columns and rename the index of the resulting + DataFrame. + + >>> df.agg(x=('A', 'max'), y=('B', 'min'), z=('C', 'mean')) + A B C + x 7.0 NaN NaN + y NaN 2.0 NaN + z NaN NaN 6.0 + + Aggregate over the columns. + + >>> df.agg("mean", axis="columns") + 0 2.0 + 1 5.0 + 2 8.0 + 3 NaN + dtype: float64 + """ + ) + + @doc( + _shared_docs["aggregate"], + klass=_shared_doc_kwargs["klass"], + axis=_shared_doc_kwargs["axis"], + see_also=_agg_see_also_doc, + examples=_agg_examples_doc, + ) + def aggregate(self, func=None, axis: Axis = 0, *args, **kwargs): + from pandas.core.apply import frame_apply + + axis = self._get_axis_number(axis) + + op = frame_apply(self, func=func, axis=axis, args=args, kwargs=kwargs) + result = op.agg() + result = reconstruct_and_relabel_result(result, func, **kwargs) + return result + + agg = aggregate + + @doc( + _shared_docs["transform"], + klass=_shared_doc_kwargs["klass"], + axis=_shared_doc_kwargs["axis"], + ) + def transform( + self, func: AggFuncType, axis: Axis = 0, *args, **kwargs + ) -> DataFrame: + from pandas.core.apply import frame_apply + + op = frame_apply(self, func=func, axis=axis, args=args, kwargs=kwargs) + result = op.transform() + assert isinstance(result, DataFrame) + return result + + def apply( + self, + func: AggFuncType, + axis: Axis = 0, + raw: bool = False, + result_type: Literal["expand", "reduce", "broadcast"] | None = None, + args=(), + by_row: Literal[False, "compat"] = "compat", + engine: Literal["python", "numba"] = "python", + engine_kwargs: dict[str, bool] | None = None, + **kwargs, + ): + """ + Apply a function along an axis of the DataFrame. + + Objects passed to the function are Series objects whose index is + either the DataFrame's index (``axis=0``) or the DataFrame's columns + (``axis=1``). By default (``result_type=None``), the final return type + is inferred from the return type of the applied function. Otherwise, + it depends on the `result_type` argument. + + Parameters + ---------- + func : function + Function to apply to each column or row. + axis : {0 or 'index', 1 or 'columns'}, default 0 + Axis along which the function is applied: + + * 0 or 'index': apply function to each column. + * 1 or 'columns': apply function to each row. + + raw : bool, default False + Determines if row or column is passed as a Series or ndarray object: + + * ``False`` : passes each row or column as a Series to the + function. + * ``True`` : the passed function will receive ndarray objects + instead. + If you are just applying a NumPy reduction function this will + achieve much better performance. + + result_type : {'expand', 'reduce', 'broadcast', None}, default None + These only act when ``axis=1`` (columns): + + * 'expand' : list-like results will be turned into columns. + * 'reduce' : returns a Series if possible rather than expanding + list-like results. This is the opposite of 'expand'. + * 'broadcast' : results will be broadcast to the original shape + of the DataFrame, the original index and columns will be + retained. + + The default behaviour (None) depends on the return value of the + applied function: list-like results will be returned as a Series + of those. However if the apply function returns a Series these + are expanded to columns. + args : tuple + Positional arguments to pass to `func` in addition to the + array/series. + by_row : False or "compat", default "compat" + Only has an effect when ``func`` is a listlike or dictlike of funcs + and the func isn't a string. + If "compat", will if possible first translate the func into pandas + methods (e.g. ``Series().apply(np.sum)`` will be translated to + ``Series().sum()``). If that doesn't work, will try call to apply again with + ``by_row=True`` and if that fails, will call apply again with + ``by_row=False`` (backward compatible). + If False, the funcs will be passed the whole Series at once. + + .. versionadded:: 2.1.0 + + engine : {'python', 'numba'}, default 'python' + Choose between the python (default) engine or the numba engine in apply. + + The numba engine will attempt to JIT compile the passed function, + which may result in speedups for large DataFrames. + It also supports the following engine_kwargs : + + - nopython (compile the function in nopython mode) + - nogil (release the GIL inside the JIT compiled function) + - parallel (try to apply the function in parallel over the DataFrame) + + Note: Due to limitations within numba/how pandas interfaces with numba, + you should only use this if raw=True + + Note: The numba compiler only supports a subset of + valid Python/numpy operations. + + Please read more about the `supported python features + `_ + and `supported numpy features + `_ + in numba to learn what you can or cannot use in the passed function. + + .. versionadded:: 2.2.0 + + engine_kwargs : dict + Pass keyword arguments to the engine. + This is currently only used by the numba engine, + see the documentation for the engine argument for more information. + **kwargs + Additional keyword arguments to pass as keywords arguments to + `func`. + + Returns + ------- + Series or DataFrame + Result of applying ``func`` along the given axis of the + DataFrame. + + See Also + -------- + DataFrame.map: For elementwise operations. + DataFrame.aggregate: Only perform aggregating type operations. + DataFrame.transform: Only perform transforming type operations. + + Notes + ----- + Functions that mutate the passed object can produce unexpected + behavior or errors and are not supported. See :ref:`gotchas.udf-mutation` + for more details. + + Examples + -------- + >>> df = pd.DataFrame([[4, 9]] * 3, columns=['A', 'B']) + >>> df + A B + 0 4 9 + 1 4 9 + 2 4 9 + + Using a numpy universal function (in this case the same as + ``np.sqrt(df)``): + + >>> df.apply(np.sqrt) + A B + 0 2.0 3.0 + 1 2.0 3.0 + 2 2.0 3.0 + + Using a reducing function on either axis + + >>> df.apply(np.sum, axis=0) + A 12 + B 27 + dtype: int64 + + >>> df.apply(np.sum, axis=1) + 0 13 + 1 13 + 2 13 + dtype: int64 + + Returning a list-like will result in a Series + + >>> df.apply(lambda x: [1, 2], axis=1) + 0 [1, 2] + 1 [1, 2] + 2 [1, 2] + dtype: object + + Passing ``result_type='expand'`` will expand list-like results + to columns of a Dataframe + + >>> df.apply(lambda x: [1, 2], axis=1, result_type='expand') + 0 1 + 0 1 2 + 1 1 2 + 2 1 2 + + Returning a Series inside the function is similar to passing + ``result_type='expand'``. The resulting column names + will be the Series index. + + >>> df.apply(lambda x: pd.Series([1, 2], index=['foo', 'bar']), axis=1) + foo bar + 0 1 2 + 1 1 2 + 2 1 2 + + Passing ``result_type='broadcast'`` will ensure the same shape + result, whether list-like or scalar is returned by the function, + and broadcast it along the axis. The resulting column names will + be the originals. + + >>> df.apply(lambda x: [1, 2], axis=1, result_type='broadcast') + A B + 0 1 2 + 1 1 2 + 2 1 2 + """ + from pandas.core.apply import frame_apply + + op = frame_apply( + self, + func=func, + axis=axis, + raw=raw, + result_type=result_type, + by_row=by_row, + engine=engine, + engine_kwargs=engine_kwargs, + args=args, + kwargs=kwargs, + ) + return op.apply().__finalize__(self, method="apply") + + def map( + self, func: PythonFuncType, na_action: str | None = None, **kwargs + ) -> DataFrame: + """ + Apply a function to a Dataframe elementwise. + + .. versionadded:: 2.1.0 + + DataFrame.applymap was deprecated and renamed to DataFrame.map. + + This method applies a function that accepts and returns a scalar + to every element of a DataFrame. + + Parameters + ---------- + func : callable + Python function, returns a single value from a single value. + na_action : {None, 'ignore'}, default None + If 'ignore', propagate NaN values, without passing them to func. + **kwargs + Additional keyword arguments to pass as keywords arguments to + `func`. + + Returns + ------- + DataFrame + Transformed DataFrame. + + See Also + -------- + DataFrame.apply : Apply a function along input axis of DataFrame. + DataFrame.replace: Replace values given in `to_replace` with `value`. + Series.map : Apply a function elementwise on a Series. + + Examples + -------- + >>> df = pd.DataFrame([[1, 2.12], [3.356, 4.567]]) + >>> df + 0 1 + 0 1.000 2.120 + 1 3.356 4.567 + + >>> df.map(lambda x: len(str(x))) + 0 1 + 0 3 4 + 1 5 5 + + Like Series.map, NA values can be ignored: + + >>> df_copy = df.copy() + >>> df_copy.iloc[0, 0] = pd.NA + >>> df_copy.map(lambda x: len(str(x)), na_action='ignore') + 0 1 + 0 NaN 4 + 1 5.0 5 + + It is also possible to use `map` with functions that are not + `lambda` functions: + + >>> df.map(round, ndigits=1) + 0 1 + 0 1.0 2.1 + 1 3.4 4.6 + + Note that a vectorized version of `func` often exists, which will + be much faster. You could square each number elementwise. + + >>> df.map(lambda x: x**2) + 0 1 + 0 1.000000 4.494400 + 1 11.262736 20.857489 + + But it's better to avoid map in that case. + + >>> df ** 2 + 0 1 + 0 1.000000 4.494400 + 1 11.262736 20.857489 + """ + if na_action not in {"ignore", None}: + raise ValueError( + f"na_action must be 'ignore' or None. Got {repr(na_action)}" + ) + + if self.empty: + return self.copy() + + func = functools.partial(func, **kwargs) + + def infer(x): + return x._map_values(func, na_action=na_action) + + return self.apply(infer).__finalize__(self, "map") + + def applymap( + self, func: PythonFuncType, na_action: NaAction | None = None, **kwargs + ) -> DataFrame: + """ + Apply a function to a Dataframe elementwise. + + .. deprecated:: 2.1.0 + + DataFrame.applymap has been deprecated. Use DataFrame.map instead. + + This method applies a function that accepts and returns a scalar + to every element of a DataFrame. + + Parameters + ---------- + func : callable + Python function, returns a single value from a single value. + na_action : {None, 'ignore'}, default None + If 'ignore', propagate NaN values, without passing them to func. + **kwargs + Additional keyword arguments to pass as keywords arguments to + `func`. + + Returns + ------- + DataFrame + Transformed DataFrame. + + See Also + -------- + DataFrame.apply : Apply a function along input axis of DataFrame. + DataFrame.map : Apply a function along input axis of DataFrame. + DataFrame.replace: Replace values given in `to_replace` with `value`. + + Examples + -------- + >>> df = pd.DataFrame([[1, 2.12], [3.356, 4.567]]) + >>> df + 0 1 + 0 1.000 2.120 + 1 3.356 4.567 + + >>> df.map(lambda x: len(str(x))) + 0 1 + 0 3 4 + 1 5 5 + """ + warnings.warn( + "DataFrame.applymap has been deprecated. Use DataFrame.map instead.", + FutureWarning, + stacklevel=find_stack_level(), + ) + return self.map(func, na_action=na_action, **kwargs) + + # ---------------------------------------------------------------------- + # Merging / joining methods + + def _append( + self, + other, + ignore_index: bool = False, + verify_integrity: bool = False, + sort: bool = False, + ) -> DataFrame: + if isinstance(other, (Series, dict)): + if isinstance(other, dict): + if not ignore_index: + raise TypeError("Can only append a dict if ignore_index=True") + other = Series(other) + if other.name is None and not ignore_index: + raise TypeError( + "Can only append a Series if ignore_index=True " + "or if the Series has a name" + ) + + index = Index( + [other.name], + name=self.index.names + if isinstance(self.index, MultiIndex) + else self.index.name, + ) + row_df = other.to_frame().T + # infer_objects is needed for + # test_append_empty_frame_to_series_with_dateutil_tz + other = row_df.infer_objects(copy=False).rename_axis( + index.names, copy=False + ) + elif isinstance(other, list): + if not other: + pass + elif not isinstance(other[0], DataFrame): + other = DataFrame(other) + if self.index.name is not None and not ignore_index: + other.index.name = self.index.name + + from pandas.core.reshape.concat import concat + + if isinstance(other, (list, tuple)): + to_concat = [self, *other] + else: + to_concat = [self, other] + + result = concat( + to_concat, + ignore_index=ignore_index, + verify_integrity=verify_integrity, + sort=sort, + ) + return result.__finalize__(self, method="append") + + def join( + self, + other: DataFrame | Series | Iterable[DataFrame | Series], + on: IndexLabel | None = None, + how: MergeHow = "left", + lsuffix: str = "", + rsuffix: str = "", + sort: bool = False, + validate: JoinValidate | None = None, + ) -> DataFrame: + """ + Join columns of another DataFrame. + + Join columns with `other` DataFrame either on index or on a key + column. Efficiently join multiple DataFrame objects by index at once by + passing a list. + + Parameters + ---------- + other : DataFrame, Series, or a list containing any combination of them + Index should be similar to one of the columns in this one. If a + Series is passed, its name attribute must be set, and that will be + used as the column name in the resulting joined DataFrame. + on : str, list of str, or array-like, optional + Column or index level name(s) in the caller to join on the index + in `other`, otherwise joins index-on-index. If multiple + values given, the `other` DataFrame must have a MultiIndex. Can + pass an array as the join key if it is not already contained in + the calling DataFrame. Like an Excel VLOOKUP operation. + how : {'left', 'right', 'outer', 'inner', 'cross'}, default 'left' + How to handle the operation of the two objects. + + * left: use calling frame's index (or column if on is specified) + * right: use `other`'s index. + * outer: form union of calling frame's index (or column if on is + specified) with `other`'s index, and sort it lexicographically. + * inner: form intersection of calling frame's index (or column if + on is specified) with `other`'s index, preserving the order + of the calling's one. + * cross: creates the cartesian product from both frames, preserves the order + of the left keys. + lsuffix : str, default '' + Suffix to use from left frame's overlapping columns. + rsuffix : str, default '' + Suffix to use from right frame's overlapping columns. + sort : bool, default False + Order result DataFrame lexicographically by the join key. If False, + the order of the join key depends on the join type (how keyword). + validate : str, optional + If specified, checks if join is of specified type. + + * "one_to_one" or "1:1": check if join keys are unique in both left + and right datasets. + * "one_to_many" or "1:m": check if join keys are unique in left dataset. + * "many_to_one" or "m:1": check if join keys are unique in right dataset. + * "many_to_many" or "m:m": allowed, but does not result in checks. + + .. versionadded:: 1.5.0 + + Returns + ------- + DataFrame + A dataframe containing columns from both the caller and `other`. + + See Also + -------- + DataFrame.merge : For column(s)-on-column(s) operations. + + Notes + ----- + Parameters `on`, `lsuffix`, and `rsuffix` are not supported when + passing a list of `DataFrame` objects. + + Examples + -------- + >>> df = pd.DataFrame({'key': ['K0', 'K1', 'K2', 'K3', 'K4', 'K5'], + ... 'A': ['A0', 'A1', 'A2', 'A3', 'A4', 'A5']}) + + >>> df + key A + 0 K0 A0 + 1 K1 A1 + 2 K2 A2 + 3 K3 A3 + 4 K4 A4 + 5 K5 A5 + + >>> other = pd.DataFrame({'key': ['K0', 'K1', 'K2'], + ... 'B': ['B0', 'B1', 'B2']}) + + >>> other + key B + 0 K0 B0 + 1 K1 B1 + 2 K2 B2 + + Join DataFrames using their indexes. + + >>> df.join(other, lsuffix='_caller', rsuffix='_other') + key_caller A key_other B + 0 K0 A0 K0 B0 + 1 K1 A1 K1 B1 + 2 K2 A2 K2 B2 + 3 K3 A3 NaN NaN + 4 K4 A4 NaN NaN + 5 K5 A5 NaN NaN + + If we want to join using the key columns, we need to set key to be + the index in both `df` and `other`. The joined DataFrame will have + key as its index. + + >>> df.set_index('key').join(other.set_index('key')) + A B + key + K0 A0 B0 + K1 A1 B1 + K2 A2 B2 + K3 A3 NaN + K4 A4 NaN + K5 A5 NaN + + Another option to join using the key columns is to use the `on` + parameter. DataFrame.join always uses `other`'s index but we can use + any column in `df`. This method preserves the original DataFrame's + index in the result. + + >>> df.join(other.set_index('key'), on='key') + key A B + 0 K0 A0 B0 + 1 K1 A1 B1 + 2 K2 A2 B2 + 3 K3 A3 NaN + 4 K4 A4 NaN + 5 K5 A5 NaN + + Using non-unique key values shows how they are matched. + + >>> df = pd.DataFrame({'key': ['K0', 'K1', 'K1', 'K3', 'K0', 'K1'], + ... 'A': ['A0', 'A1', 'A2', 'A3', 'A4', 'A5']}) + + >>> df + key A + 0 K0 A0 + 1 K1 A1 + 2 K1 A2 + 3 K3 A3 + 4 K0 A4 + 5 K1 A5 + + >>> df.join(other.set_index('key'), on='key', validate='m:1') + key A B + 0 K0 A0 B0 + 1 K1 A1 B1 + 2 K1 A2 B1 + 3 K3 A3 NaN + 4 K0 A4 B0 + 5 K1 A5 B1 + """ + from pandas.core.reshape.concat import concat + from pandas.core.reshape.merge import merge + + if isinstance(other, Series): + if other.name is None: + raise ValueError("Other Series must have a name") + other = DataFrame({other.name: other}) + + if isinstance(other, DataFrame): + if how == "cross": + return merge( + self, + other, + how=how, + on=on, + suffixes=(lsuffix, rsuffix), + sort=sort, + validate=validate, + ) + return merge( + self, + other, + left_on=on, + how=how, + left_index=on is None, + right_index=True, + suffixes=(lsuffix, rsuffix), + sort=sort, + validate=validate, + ) + else: + if on is not None: + raise ValueError( + "Joining multiple DataFrames only supported for joining on index" + ) + + if rsuffix or lsuffix: + raise ValueError( + "Suffixes not supported when joining multiple DataFrames" + ) + + # Mypy thinks the RHS is a + # "Union[DataFrame, Series, Iterable[Union[DataFrame, Series]]]" whereas + # the LHS is an "Iterable[DataFrame]", but in reality both types are + # "Iterable[Union[DataFrame, Series]]" due to the if statements + frames = [cast("DataFrame | Series", self)] + list(other) + + can_concat = all(df.index.is_unique for df in frames) + + # join indexes only using concat + if can_concat: + if how == "left": + res = concat( + frames, axis=1, join="outer", verify_integrity=True, sort=sort + ) + return res.reindex(self.index, copy=False) + else: + return concat( + frames, axis=1, join=how, verify_integrity=True, sort=sort + ) + + joined = frames[0] + + for frame in frames[1:]: + joined = merge( + joined, + frame, + how=how, + left_index=True, + right_index=True, + validate=validate, + ) + + return joined + + @Substitution("") + @Appender(_merge_doc, indents=2) + def merge( + self, + right: DataFrame | Series, + how: MergeHow = "inner", + on: IndexLabel | AnyArrayLike | None = None, + left_on: IndexLabel | AnyArrayLike | None = None, + right_on: IndexLabel | AnyArrayLike | None = None, + left_index: bool = False, + right_index: bool = False, + sort: bool = False, + suffixes: Suffixes = ("_x", "_y"), + copy: bool | None = None, + indicator: str | bool = False, + validate: MergeValidate | None = None, + ) -> DataFrame: + from pandas.core.reshape.merge import merge + + return merge( + self, + right, + how=how, + on=on, + left_on=left_on, + right_on=right_on, + left_index=left_index, + right_index=right_index, + sort=sort, + suffixes=suffixes, + copy=copy, + indicator=indicator, + validate=validate, + ) + + def round( + self, decimals: int | dict[IndexLabel, int] | Series = 0, *args, **kwargs + ) -> DataFrame: + """ + Round a DataFrame to a variable number of decimal places. + + Parameters + ---------- + decimals : int, dict, Series + Number of decimal places to round each column to. If an int is + given, round each column to the same number of places. + Otherwise dict and Series round to variable numbers of places. + Column names should be in the keys if `decimals` is a + dict-like, or in the index if `decimals` is a Series. Any + columns not included in `decimals` will be left as is. Elements + of `decimals` which are not columns of the input will be + ignored. + *args + Additional keywords have no effect but might be accepted for + compatibility with numpy. + **kwargs + Additional keywords have no effect but might be accepted for + compatibility with numpy. + + Returns + ------- + DataFrame + A DataFrame with the affected columns rounded to the specified + number of decimal places. + + See Also + -------- + numpy.around : Round a numpy array to the given number of decimals. + Series.round : Round a Series to the given number of decimals. + + Examples + -------- + >>> df = pd.DataFrame([(.21, .32), (.01, .67), (.66, .03), (.21, .18)], + ... columns=['dogs', 'cats']) + >>> df + dogs cats + 0 0.21 0.32 + 1 0.01 0.67 + 2 0.66 0.03 + 3 0.21 0.18 + + By providing an integer each column is rounded to the same number + of decimal places + + >>> df.round(1) + dogs cats + 0 0.2 0.3 + 1 0.0 0.7 + 2 0.7 0.0 + 3 0.2 0.2 + + With a dict, the number of places for specific columns can be + specified with the column names as key and the number of decimal + places as value + + >>> df.round({'dogs': 1, 'cats': 0}) + dogs cats + 0 0.2 0.0 + 1 0.0 1.0 + 2 0.7 0.0 + 3 0.2 0.0 + + Using a Series, the number of places for specific columns can be + specified with the column names as index and the number of + decimal places as value + + >>> decimals = pd.Series([0, 1], index=['cats', 'dogs']) + >>> df.round(decimals) + dogs cats + 0 0.2 0.0 + 1 0.0 1.0 + 2 0.7 0.0 + 3 0.2 0.0 + """ + from pandas.core.reshape.concat import concat + + def _dict_round(df: DataFrame, decimals): + for col, vals in df.items(): + try: + yield _series_round(vals, decimals[col]) + except KeyError: + yield vals + + def _series_round(ser: Series, decimals: int) -> Series: + if is_integer_dtype(ser.dtype) or is_float_dtype(ser.dtype): + return ser.round(decimals) + return ser + + nv.validate_round(args, kwargs) + + if isinstance(decimals, (dict, Series)): + if isinstance(decimals, Series) and not decimals.index.is_unique: + raise ValueError("Index of decimals must be unique") + if is_dict_like(decimals) and not all( + is_integer(value) for _, value in decimals.items() + ): + raise TypeError("Values in decimals must be integers") + new_cols = list(_dict_round(self, decimals)) + elif is_integer(decimals): + # Dispatch to Block.round + # Argument "decimals" to "round" of "BaseBlockManager" has incompatible + # type "Union[int, integer[Any]]"; expected "int" + new_mgr = self._mgr.round( + decimals=decimals, # type: ignore[arg-type] + using_cow=using_copy_on_write(), + ) + return self._constructor_from_mgr(new_mgr, axes=new_mgr.axes).__finalize__( + self, method="round" + ) + else: + raise TypeError("decimals must be an integer, a dict-like or a Series") + + if new_cols is not None and len(new_cols) > 0: + return self._constructor( + concat(new_cols, axis=1), index=self.index, columns=self.columns + ).__finalize__(self, method="round") + else: + return self.copy(deep=False) + + # ---------------------------------------------------------------------- + # Statistical methods, etc. + + def corr( + self, + method: CorrelationMethod = "pearson", + min_periods: int = 1, + numeric_only: bool = False, + ) -> DataFrame: + """ + Compute pairwise correlation of columns, excluding NA/null values. + + Parameters + ---------- + method : {'pearson', 'kendall', 'spearman'} or callable + Method of correlation: + + * pearson : standard correlation coefficient + * kendall : Kendall Tau correlation coefficient + * spearman : Spearman rank correlation + * callable: callable with input two 1d ndarrays + and returning a float. Note that the returned matrix from corr + will have 1 along the diagonals and will be symmetric + regardless of the callable's behavior. + min_periods : int, optional + Minimum number of observations required per pair of columns + to have a valid result. Currently only available for Pearson + and Spearman correlation. + numeric_only : bool, default False + Include only `float`, `int` or `boolean` data. + + .. versionadded:: 1.5.0 + + .. versionchanged:: 2.0.0 + The default value of ``numeric_only`` is now ``False``. + + Returns + ------- + DataFrame + Correlation matrix. + + See Also + -------- + DataFrame.corrwith : Compute pairwise correlation with another + DataFrame or Series. + Series.corr : Compute the correlation between two Series. + + Notes + ----- + Pearson, Kendall and Spearman correlation are currently computed using pairwise complete observations. + + * `Pearson correlation coefficient `_ + * `Kendall rank correlation coefficient `_ + * `Spearman's rank correlation coefficient `_ + + Examples + -------- + >>> def histogram_intersection(a, b): + ... v = np.minimum(a, b).sum().round(decimals=1) + ... return v + >>> df = pd.DataFrame([(.2, .3), (.0, .6), (.6, .0), (.2, .1)], + ... columns=['dogs', 'cats']) + >>> df.corr(method=histogram_intersection) + dogs cats + dogs 1.0 0.3 + cats 0.3 1.0 + + >>> df = pd.DataFrame([(1, 1), (2, np.nan), (np.nan, 3), (4, 4)], + ... columns=['dogs', 'cats']) + >>> df.corr(min_periods=3) + dogs cats + dogs 1.0 NaN + cats NaN 1.0 + """ # noqa: E501 + data = self._get_numeric_data() if numeric_only else self + cols = data.columns + idx = cols.copy() + mat = data.to_numpy(dtype=float, na_value=np.nan, copy=False) + + if method == "pearson": + correl = libalgos.nancorr(mat, minp=min_periods) + elif method == "spearman": + correl = libalgos.nancorr_spearman(mat, minp=min_periods) + elif method == "kendall" or callable(method): + if min_periods is None: + min_periods = 1 + mat = mat.T + corrf = nanops.get_corr_func(method) + K = len(cols) + correl = np.empty((K, K), dtype=float) + mask = np.isfinite(mat) + for i, ac in enumerate(mat): + for j, bc in enumerate(mat): + if i > j: + continue + + valid = mask[i] & mask[j] + if valid.sum() < min_periods: + c = np.nan + elif i == j: + c = 1.0 + elif not valid.all(): + c = corrf(ac[valid], bc[valid]) + else: + c = corrf(ac, bc) + correl[i, j] = c + correl[j, i] = c + else: + raise ValueError( + "method must be either 'pearson', " + "'spearman', 'kendall', or a callable, " + f"'{method}' was supplied" + ) + + result = self._constructor(correl, index=idx, columns=cols, copy=False) + return result.__finalize__(self, method="corr") + + def cov( + self, + min_periods: int | None = None, + ddof: int | None = 1, + numeric_only: bool = False, + ) -> DataFrame: + """ + Compute pairwise covariance of columns, excluding NA/null values. + + Compute the pairwise covariance among the series of a DataFrame. + The returned data frame is the `covariance matrix + `__ of the columns + of the DataFrame. + + Both NA and null values are automatically excluded from the + calculation. (See the note below about bias from missing values.) + A threshold can be set for the minimum number of + observations for each value created. Comparisons with observations + below this threshold will be returned as ``NaN``. + + This method is generally used for the analysis of time series data to + understand the relationship between different measures + across time. + + Parameters + ---------- + min_periods : int, optional + Minimum number of observations required per pair of columns + to have a valid result. + + ddof : int, default 1 + Delta degrees of freedom. The divisor used in calculations + is ``N - ddof``, where ``N`` represents the number of elements. + This argument is applicable only when no ``nan`` is in the dataframe. + + numeric_only : bool, default False + Include only `float`, `int` or `boolean` data. + + .. versionadded:: 1.5.0 + + .. versionchanged:: 2.0.0 + The default value of ``numeric_only`` is now ``False``. + + Returns + ------- + DataFrame + The covariance matrix of the series of the DataFrame. + + See Also + -------- + Series.cov : Compute covariance with another Series. + core.window.ewm.ExponentialMovingWindow.cov : Exponential weighted sample + covariance. + core.window.expanding.Expanding.cov : Expanding sample covariance. + core.window.rolling.Rolling.cov : Rolling sample covariance. + + Notes + ----- + Returns the covariance matrix of the DataFrame's time series. + The covariance is normalized by N-ddof. + + For DataFrames that have Series that are missing data (assuming that + data is `missing at random + `__) + the returned covariance matrix will be an unbiased estimate + of the variance and covariance between the member Series. + + However, for many applications this estimate may not be acceptable + because the estimate covariance matrix is not guaranteed to be positive + semi-definite. This could lead to estimate correlations having + absolute values which are greater than one, and/or a non-invertible + covariance matrix. See `Estimation of covariance matrices + `__ for more details. + + Examples + -------- + >>> df = pd.DataFrame([(1, 2), (0, 3), (2, 0), (1, 1)], + ... columns=['dogs', 'cats']) + >>> df.cov() + dogs cats + dogs 0.666667 -1.000000 + cats -1.000000 1.666667 + + >>> np.random.seed(42) + >>> df = pd.DataFrame(np.random.randn(1000, 5), + ... columns=['a', 'b', 'c', 'd', 'e']) + >>> df.cov() + a b c d e + a 0.998438 -0.020161 0.059277 -0.008943 0.014144 + b -0.020161 1.059352 -0.008543 -0.024738 0.009826 + c 0.059277 -0.008543 1.010670 -0.001486 -0.000271 + d -0.008943 -0.024738 -0.001486 0.921297 -0.013692 + e 0.014144 0.009826 -0.000271 -0.013692 0.977795 + + **Minimum number of periods** + + This method also supports an optional ``min_periods`` keyword + that specifies the required minimum number of non-NA observations for + each column pair in order to have a valid result: + + >>> np.random.seed(42) + >>> df = pd.DataFrame(np.random.randn(20, 3), + ... columns=['a', 'b', 'c']) + >>> df.loc[df.index[:5], 'a'] = np.nan + >>> df.loc[df.index[5:10], 'b'] = np.nan + >>> df.cov(min_periods=12) + a b c + a 0.316741 NaN -0.150812 + b NaN 1.248003 0.191417 + c -0.150812 0.191417 0.895202 + """ + data = self._get_numeric_data() if numeric_only else self + cols = data.columns + idx = cols.copy() + mat = data.to_numpy(dtype=float, na_value=np.nan, copy=False) + + if notna(mat).all(): + if min_periods is not None and min_periods > len(mat): + base_cov = np.empty((mat.shape[1], mat.shape[1])) + base_cov.fill(np.nan) + else: + base_cov = np.cov(mat.T, ddof=ddof) + base_cov = base_cov.reshape((len(cols), len(cols))) + else: + base_cov = libalgos.nancorr(mat, cov=True, minp=min_periods) + + result = self._constructor(base_cov, index=idx, columns=cols, copy=False) + return result.__finalize__(self, method="cov") + + def corrwith( + self, + other: DataFrame | Series, + axis: Axis = 0, + drop: bool = False, + method: CorrelationMethod = "pearson", + numeric_only: bool = False, + ) -> Series: + """ + Compute pairwise correlation. + + Pairwise correlation is computed between rows or columns of + DataFrame with rows or columns of Series or DataFrame. DataFrames + are first aligned along both axes before computing the + correlations. + + Parameters + ---------- + other : DataFrame, Series + Object with which to compute correlations. + axis : {0 or 'index', 1 or 'columns'}, default 0 + The axis to use. 0 or 'index' to compute row-wise, 1 or 'columns' for + column-wise. + drop : bool, default False + Drop missing indices from result. + method : {'pearson', 'kendall', 'spearman'} or callable + Method of correlation: + + * pearson : standard correlation coefficient + * kendall : Kendall Tau correlation coefficient + * spearman : Spearman rank correlation + * callable: callable with input two 1d ndarrays + and returning a float. + + numeric_only : bool, default False + Include only `float`, `int` or `boolean` data. + + .. versionadded:: 1.5.0 + + .. versionchanged:: 2.0.0 + The default value of ``numeric_only`` is now ``False``. + + Returns + ------- + Series + Pairwise correlations. + + See Also + -------- + DataFrame.corr : Compute pairwise correlation of columns. + + Examples + -------- + >>> index = ["a", "b", "c", "d", "e"] + >>> columns = ["one", "two", "three", "four"] + >>> df1 = pd.DataFrame(np.arange(20).reshape(5, 4), index=index, columns=columns) + >>> df2 = pd.DataFrame(np.arange(16).reshape(4, 4), index=index[:4], columns=columns) + >>> df1.corrwith(df2) + one 1.0 + two 1.0 + three 1.0 + four 1.0 + dtype: float64 + + >>> df2.corrwith(df1, axis=1) + a 1.0 + b 1.0 + c 1.0 + d 1.0 + e NaN + dtype: float64 + """ # noqa: E501 + axis = self._get_axis_number(axis) + this = self._get_numeric_data() if numeric_only else self + + if isinstance(other, Series): + return this.apply(lambda x: other.corr(x, method=method), axis=axis) + + if numeric_only: + other = other._get_numeric_data() + left, right = this.align(other, join="inner", copy=False) + + if axis == 1: + left = left.T + right = right.T + + if method == "pearson": + # mask missing values + left = left + right * 0 + right = right + left * 0 + + # demeaned data + ldem = left - left.mean(numeric_only=numeric_only) + rdem = right - right.mean(numeric_only=numeric_only) + + num = (ldem * rdem).sum() + dom = ( + (left.count() - 1) + * left.std(numeric_only=numeric_only) + * right.std(numeric_only=numeric_only) + ) + + correl = num / dom + + elif method in ["kendall", "spearman"] or callable(method): + + def c(x): + return nanops.nancorr(x[0], x[1], method=method) + + correl = self._constructor_sliced( + map(c, zip(left.values.T, right.values.T)), + index=left.columns, + copy=False, + ) + + else: + raise ValueError( + f"Invalid method {method} was passed, " + "valid methods are: 'pearson', 'kendall', " + "'spearman', or callable" + ) + + if not drop: + # Find non-matching labels along the given axis + # and append missing correlations (GH 22375) + raxis: AxisInt = 1 if axis == 0 else 0 + result_index = this._get_axis(raxis).union(other._get_axis(raxis)) + idx_diff = result_index.difference(correl.index) + + if len(idx_diff) > 0: + correl = correl._append( + Series([np.nan] * len(idx_diff), index=idx_diff) + ) + + return correl + + # ---------------------------------------------------------------------- + # ndarray-like stats methods + + def count(self, axis: Axis = 0, numeric_only: bool = False): + """ + Count non-NA cells for each column or row. + + The values `None`, `NaN`, `NaT`, ``pandas.NA`` are considered NA. + + Parameters + ---------- + axis : {0 or 'index', 1 or 'columns'}, default 0 + If 0 or 'index' counts are generated for each column. + If 1 or 'columns' counts are generated for each row. + numeric_only : bool, default False + Include only `float`, `int` or `boolean` data. + + Returns + ------- + Series + For each column/row the number of non-NA/null entries. + + See Also + -------- + Series.count: Number of non-NA elements in a Series. + DataFrame.value_counts: Count unique combinations of columns. + DataFrame.shape: Number of DataFrame rows and columns (including NA + elements). + DataFrame.isna: Boolean same-sized DataFrame showing places of NA + elements. + + Examples + -------- + Constructing DataFrame from a dictionary: + + >>> df = pd.DataFrame({"Person": + ... ["John", "Myla", "Lewis", "John", "Myla"], + ... "Age": [24., np.nan, 21., 33, 26], + ... "Single": [False, True, True, True, False]}) + >>> df + Person Age Single + 0 John 24.0 False + 1 Myla NaN True + 2 Lewis 21.0 True + 3 John 33.0 True + 4 Myla 26.0 False + + Notice the uncounted NA values: + + >>> df.count() + Person 5 + Age 4 + Single 5 + dtype: int64 + + Counts for each **row**: + + >>> df.count(axis='columns') + 0 3 + 1 2 + 2 3 + 3 3 + 4 3 + dtype: int64 + """ + axis = self._get_axis_number(axis) + + if numeric_only: + frame = self._get_numeric_data() + else: + frame = self + + # GH #423 + if len(frame._get_axis(axis)) == 0: + result = self._constructor_sliced(0, index=frame._get_agg_axis(axis)) + else: + result = notna(frame).sum(axis=axis) + + return result.astype("int64", copy=False).__finalize__(self, method="count") + + def _reduce( + self, + op, + name: str, + *, + axis: Axis = 0, + skipna: bool = True, + numeric_only: bool = False, + filter_type=None, + **kwds, + ): + assert filter_type is None or filter_type == "bool", filter_type + out_dtype = "bool" if filter_type == "bool" else None + + if axis is not None: + axis = self._get_axis_number(axis) + + def func(values: np.ndarray): + # We only use this in the case that operates on self.values + return op(values, axis=axis, skipna=skipna, **kwds) + + dtype_has_keepdims: dict[ExtensionDtype, bool] = {} + + def blk_func(values, axis: Axis = 1): + if isinstance(values, ExtensionArray): + if not is_1d_only_ea_dtype(values.dtype) and not isinstance( + self._mgr, ArrayManager + ): + return values._reduce(name, axis=1, skipna=skipna, **kwds) + has_keepdims = dtype_has_keepdims.get(values.dtype) + if has_keepdims is None: + sign = signature(values._reduce) + has_keepdims = "keepdims" in sign.parameters + dtype_has_keepdims[values.dtype] = has_keepdims + if has_keepdims: + return values._reduce(name, skipna=skipna, keepdims=True, **kwds) + else: + warnings.warn( + f"{type(values)}._reduce will require a `keepdims` parameter " + "in the future", + FutureWarning, + stacklevel=find_stack_level(), + ) + result = values._reduce(name, skipna=skipna, **kwds) + return np.array([result]) + else: + return op(values, axis=axis, skipna=skipna, **kwds) + + def _get_data() -> DataFrame: + if filter_type is None: + data = self._get_numeric_data() + else: + # GH#25101, GH#24434 + assert filter_type == "bool" + data = self._get_bool_data() + return data + + # Case with EAs see GH#35881 + df = self + if numeric_only: + df = _get_data() + if axis is None: + dtype = find_common_type([arr.dtype for arr in df._mgr.arrays]) + if isinstance(dtype, ExtensionDtype): + df = df.astype(dtype, copy=False) + arr = concat_compat(list(df._iter_column_arrays())) + return arr._reduce(name, skipna=skipna, keepdims=False, **kwds) + return func(df.values) + elif axis == 1: + if len(df.index) == 0: + # Taking a transpose would result in no columns, losing the dtype. + # In the empty case, reducing along axis 0 or 1 gives the same + # result dtype, so reduce with axis=0 and ignore values + result = df._reduce( + op, + name, + axis=0, + skipna=skipna, + numeric_only=False, + filter_type=filter_type, + **kwds, + ).iloc[:0] + result.index = df.index + return result + + # kurtosis excluded since groupby does not implement it + if df.shape[1] and name != "kurt": + dtype = find_common_type([arr.dtype for arr in df._mgr.arrays]) + if isinstance(dtype, ExtensionDtype): + # GH 54341: fastpath for EA-backed axis=1 reductions + # This flattens the frame into a single 1D array while keeping + # track of the row and column indices of the original frame. Once + # flattened, grouping by the row indices and aggregating should + # be equivalent to transposing the original frame and aggregating + # with axis=0. + name = {"argmax": "idxmax", "argmin": "idxmin"}.get(name, name) + df = df.astype(dtype, copy=False) + arr = concat_compat(list(df._iter_column_arrays())) + nrows, ncols = df.shape + row_index = np.tile(np.arange(nrows), ncols) + col_index = np.repeat(np.arange(ncols), nrows) + ser = Series(arr, index=col_index, copy=False) + # GroupBy will raise a warning with SeriesGroupBy as the object, + # likely confusing users + with rewrite_warning( + target_message=( + f"The behavior of SeriesGroupBy.{name} with all-NA values" + ), + target_category=FutureWarning, + new_message=( + f"The behavior of {type(self).__name__}.{name} with all-NA " + "values, or any-NA and skipna=False, is deprecated. In " + "a future version this will raise ValueError" + ), + ): + result = ser.groupby(row_index).agg(name, **kwds) + result.index = df.index + if not skipna and name not in ("any", "all"): + mask = df.isna().to_numpy(dtype=np.bool_).any(axis=1) + other = -1 if name in ("idxmax", "idxmin") else lib.no_default + result = result.mask(mask, other) + return result + + df = df.T + + # After possibly _get_data and transposing, we are now in the + # simple case where we can use BlockManager.reduce + res = df._mgr.reduce(blk_func) + out = df._constructor_from_mgr(res, axes=res.axes).iloc[0] + if out_dtype is not None and out.dtype != "boolean": + out = out.astype(out_dtype) + elif (df._mgr.get_dtypes() == object).any() and name not in ["any", "all"]: + out = out.astype(object) + elif len(self) == 0 and out.dtype == object and name in ("sum", "prod"): + # Even if we are object dtype, follow numpy and return + # float64, see test_apply_funcs_over_empty + out = out.astype(np.float64) + + return out + + def _reduce_axis1(self, name: str, func, skipna: bool) -> Series: + """ + Special case for _reduce to try to avoid a potentially-expensive transpose. + + Apply the reduction block-wise along axis=1 and then reduce the resulting + 1D arrays. + """ + if name == "all": + result = np.ones(len(self), dtype=bool) + ufunc = np.logical_and + elif name == "any": + result = np.zeros(len(self), dtype=bool) + # error: Incompatible types in assignment + # (expression has type "_UFunc_Nin2_Nout1[Literal['logical_or'], + # Literal[20], Literal[False]]", variable has type + # "_UFunc_Nin2_Nout1[Literal['logical_and'], Literal[20], + # Literal[True]]") + ufunc = np.logical_or # type: ignore[assignment] + else: + raise NotImplementedError(name) + + for arr in self._mgr.arrays: + middle = func(arr, axis=0, skipna=skipna) + result = ufunc(result, middle) + + res_ser = self._constructor_sliced(result, index=self.index, copy=False) + return res_ser + + @doc(make_doc("any", ndim=2)) + # error: Signature of "any" incompatible with supertype "NDFrame" + def any( # type: ignore[override] + self, + *, + axis: Axis | None = 0, + bool_only: bool = False, + skipna: bool = True, + **kwargs, + ) -> Series | bool: + result = self._logical_func( + "any", nanops.nanany, axis, bool_only, skipna, **kwargs + ) + if isinstance(result, Series): + result = result.__finalize__(self, method="any") + return result + + @doc(make_doc("all", ndim=2)) + def all( + self, + axis: Axis | None = 0, + bool_only: bool = False, + skipna: bool = True, + **kwargs, + ) -> Series | bool: + result = self._logical_func( + "all", nanops.nanall, axis, bool_only, skipna, **kwargs + ) + if isinstance(result, Series): + result = result.__finalize__(self, method="all") + return result + + @doc(make_doc("min", ndim=2)) + def min( + self, + axis: Axis | None = 0, + skipna: bool = True, + numeric_only: bool = False, + **kwargs, + ): + result = super().min(axis, skipna, numeric_only, **kwargs) + if isinstance(result, Series): + result = result.__finalize__(self, method="min") + return result + + @doc(make_doc("max", ndim=2)) + def max( + self, + axis: Axis | None = 0, + skipna: bool = True, + numeric_only: bool = False, + **kwargs, + ): + result = super().max(axis, skipna, numeric_only, **kwargs) + if isinstance(result, Series): + result = result.__finalize__(self, method="max") + return result + + @doc(make_doc("sum", ndim=2)) + def sum( + self, + axis: Axis | None = 0, + skipna: bool = True, + numeric_only: bool = False, + min_count: int = 0, + **kwargs, + ): + result = super().sum(axis, skipna, numeric_only, min_count, **kwargs) + return result.__finalize__(self, method="sum") + + @doc(make_doc("prod", ndim=2)) + def prod( + self, + axis: Axis | None = 0, + skipna: bool = True, + numeric_only: bool = False, + min_count: int = 0, + **kwargs, + ): + result = super().prod(axis, skipna, numeric_only, min_count, **kwargs) + return result.__finalize__(self, method="prod") + + @doc(make_doc("mean", ndim=2)) + def mean( + self, + axis: Axis | None = 0, + skipna: bool = True, + numeric_only: bool = False, + **kwargs, + ): + result = super().mean(axis, skipna, numeric_only, **kwargs) + if isinstance(result, Series): + result = result.__finalize__(self, method="mean") + return result + + @doc(make_doc("median", ndim=2)) + def median( + self, + axis: Axis | None = 0, + skipna: bool = True, + numeric_only: bool = False, + **kwargs, + ): + result = super().median(axis, skipna, numeric_only, **kwargs) + if isinstance(result, Series): + result = result.__finalize__(self, method="median") + return result + + @doc(make_doc("sem", ndim=2)) + def sem( + self, + axis: Axis | None = 0, + skipna: bool = True, + ddof: int = 1, + numeric_only: bool = False, + **kwargs, + ): + result = super().sem(axis, skipna, ddof, numeric_only, **kwargs) + if isinstance(result, Series): + result = result.__finalize__(self, method="sem") + return result + + @doc(make_doc("var", ndim=2)) + def var( + self, + axis: Axis | None = 0, + skipna: bool = True, + ddof: int = 1, + numeric_only: bool = False, + **kwargs, + ): + result = super().var(axis, skipna, ddof, numeric_only, **kwargs) + if isinstance(result, Series): + result = result.__finalize__(self, method="var") + return result + + @doc(make_doc("std", ndim=2)) + def std( + self, + axis: Axis | None = 0, + skipna: bool = True, + ddof: int = 1, + numeric_only: bool = False, + **kwargs, + ): + result = super().std(axis, skipna, ddof, numeric_only, **kwargs) + if isinstance(result, Series): + result = result.__finalize__(self, method="std") + return result + + @doc(make_doc("skew", ndim=2)) + def skew( + self, + axis: Axis | None = 0, + skipna: bool = True, + numeric_only: bool = False, + **kwargs, + ): + result = super().skew(axis, skipna, numeric_only, **kwargs) + if isinstance(result, Series): + result = result.__finalize__(self, method="skew") + return result + + @doc(make_doc("kurt", ndim=2)) + def kurt( + self, + axis: Axis | None = 0, + skipna: bool = True, + numeric_only: bool = False, + **kwargs, + ): + result = super().kurt(axis, skipna, numeric_only, **kwargs) + if isinstance(result, Series): + result = result.__finalize__(self, method="kurt") + return result + + kurtosis = kurt + product = prod + + @doc(make_doc("cummin", ndim=2)) + def cummin(self, axis: Axis | None = None, skipna: bool = True, *args, **kwargs): + return NDFrame.cummin(self, axis, skipna, *args, **kwargs) + + @doc(make_doc("cummax", ndim=2)) + def cummax(self, axis: Axis | None = None, skipna: bool = True, *args, **kwargs): + return NDFrame.cummax(self, axis, skipna, *args, **kwargs) + + @doc(make_doc("cumsum", ndim=2)) + def cumsum(self, axis: Axis | None = None, skipna: bool = True, *args, **kwargs): + return NDFrame.cumsum(self, axis, skipna, *args, **kwargs) + + @doc(make_doc("cumprod", 2)) + def cumprod(self, axis: Axis | None = None, skipna: bool = True, *args, **kwargs): + return NDFrame.cumprod(self, axis, skipna, *args, **kwargs) + + def nunique(self, axis: Axis = 0, dropna: bool = True) -> Series: + """ + Count number of distinct elements in specified axis. + + Return Series with number of distinct elements. Can ignore NaN + values. + + Parameters + ---------- + axis : {0 or 'index', 1 or 'columns'}, default 0 + The axis to use. 0 or 'index' for row-wise, 1 or 'columns' for + column-wise. + dropna : bool, default True + Don't include NaN in the counts. + + Returns + ------- + Series + + See Also + -------- + Series.nunique: Method nunique for Series. + DataFrame.count: Count non-NA cells for each column or row. + + Examples + -------- + >>> df = pd.DataFrame({'A': [4, 5, 6], 'B': [4, 1, 1]}) + >>> df.nunique() + A 3 + B 2 + dtype: int64 + + >>> df.nunique(axis=1) + 0 1 + 1 2 + 2 2 + dtype: int64 + """ + return self.apply(Series.nunique, axis=axis, dropna=dropna) + + @doc(_shared_docs["idxmin"], numeric_only_default="False") + def idxmin( + self, axis: Axis = 0, skipna: bool = True, numeric_only: bool = False + ) -> Series: + axis = self._get_axis_number(axis) + + if self.empty and len(self.axes[axis]): + axis_dtype = self.axes[axis].dtype + return self._constructor_sliced(dtype=axis_dtype) + + if numeric_only: + data = self._get_numeric_data() + else: + data = self + + res = data._reduce( + nanops.nanargmin, "argmin", axis=axis, skipna=skipna, numeric_only=False + ) + indices = res._values + # indices will always be np.ndarray since axis is not N + + if (indices == -1).any(): + warnings.warn( + f"The behavior of {type(self).__name__}.idxmin with all-NA " + "values, or any-NA and skipna=False, is deprecated. In a future " + "version this will raise ValueError", + FutureWarning, + stacklevel=find_stack_level(), + ) + + index = data._get_axis(axis) + result = algorithms.take( + index._values, indices, allow_fill=True, fill_value=index._na_value + ) + final_result = data._constructor_sliced(result, index=data._get_agg_axis(axis)) + return final_result.__finalize__(self, method="idxmin") + + @doc(_shared_docs["idxmax"], numeric_only_default="False") + def idxmax( + self, axis: Axis = 0, skipna: bool = True, numeric_only: bool = False + ) -> Series: + axis = self._get_axis_number(axis) + + if self.empty and len(self.axes[axis]): + axis_dtype = self.axes[axis].dtype + return self._constructor_sliced(dtype=axis_dtype) + + if numeric_only: + data = self._get_numeric_data() + else: + data = self + + res = data._reduce( + nanops.nanargmax, "argmax", axis=axis, skipna=skipna, numeric_only=False + ) + indices = res._values + # indices will always be 1d array since axis is not None + + if (indices == -1).any(): + warnings.warn( + f"The behavior of {type(self).__name__}.idxmax with all-NA " + "values, or any-NA and skipna=False, is deprecated. In a future " + "version this will raise ValueError", + FutureWarning, + stacklevel=find_stack_level(), + ) + + index = data._get_axis(axis) + result = algorithms.take( + index._values, indices, allow_fill=True, fill_value=index._na_value + ) + final_result = data._constructor_sliced(result, index=data._get_agg_axis(axis)) + return final_result.__finalize__(self, method="idxmax") + + def _get_agg_axis(self, axis_num: int) -> Index: + """ + Let's be explicit about this. + """ + if axis_num == 0: + return self.columns + elif axis_num == 1: + return self.index + else: + raise ValueError(f"Axis must be 0 or 1 (got {repr(axis_num)})") + + def mode( + self, axis: Axis = 0, numeric_only: bool = False, dropna: bool = True + ) -> DataFrame: + """ + Get the mode(s) of each element along the selected axis. + + The mode of a set of values is the value that appears most often. + It can be multiple values. + + Parameters + ---------- + axis : {0 or 'index', 1 or 'columns'}, default 0 + The axis to iterate over while searching for the mode: + + * 0 or 'index' : get mode of each column + * 1 or 'columns' : get mode of each row. + + numeric_only : bool, default False + If True, only apply to numeric columns. + dropna : bool, default True + Don't consider counts of NaN/NaT. + + Returns + ------- + DataFrame + The modes of each column or row. + + See Also + -------- + Series.mode : Return the highest frequency value in a Series. + Series.value_counts : Return the counts of values in a Series. + + Examples + -------- + >>> df = pd.DataFrame([('bird', 2, 2), + ... ('mammal', 4, np.nan), + ... ('arthropod', 8, 0), + ... ('bird', 2, np.nan)], + ... index=('falcon', 'horse', 'spider', 'ostrich'), + ... columns=('species', 'legs', 'wings')) + >>> df + species legs wings + falcon bird 2 2.0 + horse mammal 4 NaN + spider arthropod 8 0.0 + ostrich bird 2 NaN + + By default, missing values are not considered, and the mode of wings + are both 0 and 2. Because the resulting DataFrame has two rows, + the second row of ``species`` and ``legs`` contains ``NaN``. + + >>> df.mode() + species legs wings + 0 bird 2.0 0.0 + 1 NaN NaN 2.0 + + Setting ``dropna=False`` ``NaN`` values are considered and they can be + the mode (like for wings). + + >>> df.mode(dropna=False) + species legs wings + 0 bird 2 NaN + + Setting ``numeric_only=True``, only the mode of numeric columns is + computed, and columns of other types are ignored. + + >>> df.mode(numeric_only=True) + legs wings + 0 2.0 0.0 + 1 NaN 2.0 + + To compute the mode over columns and not rows, use the axis parameter: + + >>> df.mode(axis='columns', numeric_only=True) + 0 1 + falcon 2.0 NaN + horse 4.0 NaN + spider 0.0 8.0 + ostrich 2.0 NaN + """ + data = self if not numeric_only else self._get_numeric_data() + + def f(s): + return s.mode(dropna=dropna) + + data = data.apply(f, axis=axis) + # Ensure index is type stable (should always use int index) + if data.empty: + data.index = default_index(0) + + return data + + @overload + def quantile( + self, + q: float = ..., + axis: Axis = ..., + numeric_only: bool = ..., + interpolation: QuantileInterpolation = ..., + method: Literal["single", "table"] = ..., + ) -> Series: + ... + + @overload + def quantile( + self, + q: AnyArrayLike | Sequence[float], + axis: Axis = ..., + numeric_only: bool = ..., + interpolation: QuantileInterpolation = ..., + method: Literal["single", "table"] = ..., + ) -> Series | DataFrame: + ... + + @overload + def quantile( + self, + q: float | AnyArrayLike | Sequence[float] = ..., + axis: Axis = ..., + numeric_only: bool = ..., + interpolation: QuantileInterpolation = ..., + method: Literal["single", "table"] = ..., + ) -> Series | DataFrame: + ... + + def quantile( + self, + q: float | AnyArrayLike | Sequence[float] = 0.5, + axis: Axis = 0, + numeric_only: bool = False, + interpolation: QuantileInterpolation = "linear", + method: Literal["single", "table"] = "single", + ) -> Series | DataFrame: + """ + Return values at the given quantile over requested axis. + + Parameters + ---------- + q : float or array-like, default 0.5 (50% quantile) + Value between 0 <= q <= 1, the quantile(s) to compute. + axis : {0 or 'index', 1 or 'columns'}, default 0 + Equals 0 or 'index' for row-wise, 1 or 'columns' for column-wise. + numeric_only : bool, default False + Include only `float`, `int` or `boolean` data. + + .. versionchanged:: 2.0.0 + The default value of ``numeric_only`` is now ``False``. + + interpolation : {'linear', 'lower', 'higher', 'midpoint', 'nearest'} + This optional parameter specifies the interpolation method to use, + when the desired quantile lies between two data points `i` and `j`: + + * linear: `i + (j - i) * fraction`, where `fraction` is the + fractional part of the index surrounded by `i` and `j`. + * lower: `i`. + * higher: `j`. + * nearest: `i` or `j` whichever is nearest. + * midpoint: (`i` + `j`) / 2. + method : {'single', 'table'}, default 'single' + Whether to compute quantiles per-column ('single') or over all columns + ('table'). When 'table', the only allowed interpolation methods are + 'nearest', 'lower', and 'higher'. + + Returns + ------- + Series or DataFrame + + If ``q`` is an array, a DataFrame will be returned where the + index is ``q``, the columns are the columns of self, and the + values are the quantiles. + If ``q`` is a float, a Series will be returned where the + index is the columns of self and the values are the quantiles. + + See Also + -------- + core.window.rolling.Rolling.quantile: Rolling quantile. + numpy.percentile: Numpy function to compute the percentile. + + Examples + -------- + >>> df = pd.DataFrame(np.array([[1, 1], [2, 10], [3, 100], [4, 100]]), + ... columns=['a', 'b']) + >>> df.quantile(.1) + a 1.3 + b 3.7 + Name: 0.1, dtype: float64 + >>> df.quantile([.1, .5]) + a b + 0.1 1.3 3.7 + 0.5 2.5 55.0 + + Specifying `method='table'` will compute the quantile over all columns. + + >>> df.quantile(.1, method="table", interpolation="nearest") + a 1 + b 1 + Name: 0.1, dtype: int64 + >>> df.quantile([.1, .5], method="table", interpolation="nearest") + a b + 0.1 1 1 + 0.5 3 100 + + Specifying `numeric_only=False` will also compute the quantile of + datetime and timedelta data. + + >>> df = pd.DataFrame({'A': [1, 2], + ... 'B': [pd.Timestamp('2010'), + ... pd.Timestamp('2011')], + ... 'C': [pd.Timedelta('1 days'), + ... pd.Timedelta('2 days')]}) + >>> df.quantile(0.5, numeric_only=False) + A 1.5 + B 2010-07-02 12:00:00 + C 1 days 12:00:00 + Name: 0.5, dtype: object + """ + validate_percentile(q) + axis = self._get_axis_number(axis) + + if not is_list_like(q): + # BlockManager.quantile expects listlike, so we wrap and unwrap here + # error: List item 0 has incompatible type "float | ExtensionArray | + # ndarray[Any, Any] | Index | Series | Sequence[float]"; expected "float" + res_df = self.quantile( + [q], # type: ignore[list-item] + axis=axis, + numeric_only=numeric_only, + interpolation=interpolation, + method=method, + ) + if method == "single": + res = res_df.iloc[0] + else: + # cannot directly iloc over sparse arrays + res = res_df.T.iloc[:, 0] + if axis == 1 and len(self) == 0: + # GH#41544 try to get an appropriate dtype + dtype = find_common_type(list(self.dtypes)) + if needs_i8_conversion(dtype): + return res.astype(dtype) + return res + + q = Index(q, dtype=np.float64) + data = self._get_numeric_data() if numeric_only else self + + if axis == 1: + data = data.T + + if len(data.columns) == 0: + # GH#23925 _get_numeric_data may have dropped all columns + cols = Index([], name=self.columns.name) + + dtype = np.float64 + if axis == 1: + # GH#41544 try to get an appropriate dtype + cdtype = find_common_type(list(self.dtypes)) + if needs_i8_conversion(cdtype): + dtype = cdtype + + res = self._constructor([], index=q, columns=cols, dtype=dtype) + return res.__finalize__(self, method="quantile") + + valid_method = {"single", "table"} + if method not in valid_method: + raise ValueError( + f"Invalid method: {method}. Method must be in {valid_method}." + ) + if method == "single": + res = data._mgr.quantile(qs=q, interpolation=interpolation) + elif method == "table": + valid_interpolation = {"nearest", "lower", "higher"} + if interpolation not in valid_interpolation: + raise ValueError( + f"Invalid interpolation: {interpolation}. " + f"Interpolation must be in {valid_interpolation}" + ) + # handle degenerate case + if len(data) == 0: + if data.ndim == 2: + dtype = find_common_type(list(self.dtypes)) + else: + dtype = self.dtype + return self._constructor([], index=q, columns=data.columns, dtype=dtype) + + q_idx = np.quantile(np.arange(len(data)), q, method=interpolation) + + by = data.columns + if len(by) > 1: + keys = [data._get_label_or_level_values(x) for x in by] + indexer = lexsort_indexer(keys) + else: + k = data._get_label_or_level_values(by[0]) + indexer = nargsort(k) + + res = data._mgr.take(indexer[q_idx], verify=False) + res.axes[1] = q + + result = self._constructor_from_mgr(res, axes=res.axes) + return result.__finalize__(self, method="quantile") + + def to_timestamp( + self, + freq: Frequency | None = None, + how: ToTimestampHow = "start", + axis: Axis = 0, + copy: bool | None = None, + ) -> DataFrame: + """ + Cast to DatetimeIndex of timestamps, at *beginning* of period. + + Parameters + ---------- + freq : str, default frequency of PeriodIndex + Desired frequency. + how : {'s', 'e', 'start', 'end'} + Convention for converting period to timestamp; start of period + vs. end. + axis : {0 or 'index', 1 or 'columns'}, default 0 + The axis to convert (the index by default). + copy : bool, default True + If False then underlying input data is not copied. + + .. note:: + The `copy` keyword will change behavior in pandas 3.0. + `Copy-on-Write + `__ + will be enabled by default, which means that all methods with a + `copy` keyword will use a lazy copy mechanism to defer the copy and + ignore the `copy` keyword. The `copy` keyword will be removed in a + future version of pandas. + + You can already get the future behavior and improvements through + enabling copy on write ``pd.options.mode.copy_on_write = True`` + + Returns + ------- + DataFrame + The DataFrame has a DatetimeIndex. + + Examples + -------- + >>> idx = pd.PeriodIndex(['2023', '2024'], freq='Y') + >>> d = {'col1': [1, 2], 'col2': [3, 4]} + >>> df1 = pd.DataFrame(data=d, index=idx) + >>> df1 + col1 col2 + 2023 1 3 + 2024 2 4 + + The resulting timestamps will be at the beginning of the year in this case + + >>> df1 = df1.to_timestamp() + >>> df1 + col1 col2 + 2023-01-01 1 3 + 2024-01-01 2 4 + >>> df1.index + DatetimeIndex(['2023-01-01', '2024-01-01'], dtype='datetime64[ns]', freq=None) + + Using `freq` which is the offset that the Timestamps will have + + >>> df2 = pd.DataFrame(data=d, index=idx) + >>> df2 = df2.to_timestamp(freq='M') + >>> df2 + col1 col2 + 2023-01-31 1 3 + 2024-01-31 2 4 + >>> df2.index + DatetimeIndex(['2023-01-31', '2024-01-31'], dtype='datetime64[ns]', freq=None) + """ + new_obj = self.copy(deep=copy and not using_copy_on_write()) + + axis_name = self._get_axis_name(axis) + old_ax = getattr(self, axis_name) + if not isinstance(old_ax, PeriodIndex): + raise TypeError(f"unsupported Type {type(old_ax).__name__}") + + new_ax = old_ax.to_timestamp(freq=freq, how=how) + + setattr(new_obj, axis_name, new_ax) + return new_obj + + def to_period( + self, freq: Frequency | None = None, axis: Axis = 0, copy: bool | None = None + ) -> DataFrame: + """ + Convert DataFrame from DatetimeIndex to PeriodIndex. + + Convert DataFrame from DatetimeIndex to PeriodIndex with desired + frequency (inferred from index if not passed). + + Parameters + ---------- + freq : str, default + Frequency of the PeriodIndex. + axis : {0 or 'index', 1 or 'columns'}, default 0 + The axis to convert (the index by default). + copy : bool, default True + If False then underlying input data is not copied. + + .. note:: + The `copy` keyword will change behavior in pandas 3.0. + `Copy-on-Write + `__ + will be enabled by default, which means that all methods with a + `copy` keyword will use a lazy copy mechanism to defer the copy and + ignore the `copy` keyword. The `copy` keyword will be removed in a + future version of pandas. + + You can already get the future behavior and improvements through + enabling copy on write ``pd.options.mode.copy_on_write = True`` + + Returns + ------- + DataFrame + The DataFrame has a PeriodIndex. + + Examples + -------- + >>> idx = pd.to_datetime( + ... [ + ... "2001-03-31 00:00:00", + ... "2002-05-31 00:00:00", + ... "2003-08-31 00:00:00", + ... ] + ... ) + + >>> idx + DatetimeIndex(['2001-03-31', '2002-05-31', '2003-08-31'], + dtype='datetime64[ns]', freq=None) + + >>> idx.to_period("M") + PeriodIndex(['2001-03', '2002-05', '2003-08'], dtype='period[M]') + + For the yearly frequency + + >>> idx.to_period("Y") + PeriodIndex(['2001', '2002', '2003'], dtype='period[Y-DEC]') + """ + new_obj = self.copy(deep=copy and not using_copy_on_write()) + + axis_name = self._get_axis_name(axis) + old_ax = getattr(self, axis_name) + if not isinstance(old_ax, DatetimeIndex): + raise TypeError(f"unsupported Type {type(old_ax).__name__}") + + new_ax = old_ax.to_period(freq=freq) + + setattr(new_obj, axis_name, new_ax) + return new_obj + + def isin(self, values: Series | DataFrame | Sequence | Mapping) -> DataFrame: + """ + Whether each element in the DataFrame is contained in values. + + Parameters + ---------- + values : iterable, Series, DataFrame or dict + The result will only be true at a location if all the + labels match. If `values` is a Series, that's the index. If + `values` is a dict, the keys must be the column names, + which must match. If `values` is a DataFrame, + then both the index and column labels must match. + + Returns + ------- + DataFrame + DataFrame of booleans showing whether each element in the DataFrame + is contained in values. + + See Also + -------- + DataFrame.eq: Equality test for DataFrame. + Series.isin: Equivalent method on Series. + Series.str.contains: Test if pattern or regex is contained within a + string of a Series or Index. + + Examples + -------- + >>> df = pd.DataFrame({'num_legs': [2, 4], 'num_wings': [2, 0]}, + ... index=['falcon', 'dog']) + >>> df + num_legs num_wings + falcon 2 2 + dog 4 0 + + When ``values`` is a list check whether every value in the DataFrame + is present in the list (which animals have 0 or 2 legs or wings) + + >>> df.isin([0, 2]) + num_legs num_wings + falcon True True + dog False True + + To check if ``values`` is *not* in the DataFrame, use the ``~`` operator: + + >>> ~df.isin([0, 2]) + num_legs num_wings + falcon False False + dog True False + + When ``values`` is a dict, we can pass values to check for each + column separately: + + >>> df.isin({'num_wings': [0, 3]}) + num_legs num_wings + falcon False False + dog False True + + When ``values`` is a Series or DataFrame the index and column must + match. Note that 'falcon' does not match based on the number of legs + in other. + + >>> other = pd.DataFrame({'num_legs': [8, 3], 'num_wings': [0, 2]}, + ... index=['spider', 'falcon']) + >>> df.isin(other) + num_legs num_wings + falcon False True + dog False False + """ + if isinstance(values, dict): + from pandas.core.reshape.concat import concat + + values = collections.defaultdict(list, values) + result = concat( + ( + self.iloc[:, [i]].isin(values[col]) + for i, col in enumerate(self.columns) + ), + axis=1, + ) + elif isinstance(values, Series): + if not values.index.is_unique: + raise ValueError("cannot compute isin with a duplicate axis.") + result = self.eq(values.reindex_like(self), axis="index") + elif isinstance(values, DataFrame): + if not (values.columns.is_unique and values.index.is_unique): + raise ValueError("cannot compute isin with a duplicate axis.") + result = self.eq(values.reindex_like(self)) + else: + if not is_list_like(values): + raise TypeError( + "only list-like or dict-like objects are allowed " + "to be passed to DataFrame.isin(), " + f"you passed a '{type(values).__name__}'" + ) + + def isin_(x): + # error: Argument 2 to "isin" has incompatible type "Union[Series, + # DataFrame, Sequence[Any], Mapping[Any, Any]]"; expected + # "Union[Union[Union[ExtensionArray, ndarray[Any, Any]], Index, + # Series], List[Any], range]" + result = algorithms.isin( + x.ravel(), + values, # type: ignore[arg-type] + ) + return result.reshape(x.shape) + + res_mgr = self._mgr.apply(isin_) + result = self._constructor_from_mgr( + res_mgr, + axes=res_mgr.axes, + ) + return result.__finalize__(self, method="isin") + + # ---------------------------------------------------------------------- + # Add index and columns + _AXIS_ORDERS: list[Literal["index", "columns"]] = ["index", "columns"] + _AXIS_TO_AXIS_NUMBER: dict[Axis, int] = { + **NDFrame._AXIS_TO_AXIS_NUMBER, + 1: 1, + "columns": 1, + } + _AXIS_LEN = len(_AXIS_ORDERS) + _info_axis_number: Literal[1] = 1 + _info_axis_name: Literal["columns"] = "columns" + + index = properties.AxisProperty( + axis=1, + doc=""" + The index (row labels) of the DataFrame. + + The index of a DataFrame is a series of labels that identify each row. + The labels can be integers, strings, or any other hashable type. The index + is used for label-based access and alignment, and can be accessed or + modified using this attribute. + + Returns + ------- + pandas.Index + The index labels of the DataFrame. + + See Also + -------- + DataFrame.columns : The column labels of the DataFrame. + DataFrame.to_numpy : Convert the DataFrame to a NumPy array. + + Examples + -------- + >>> df = pd.DataFrame({'Name': ['Alice', 'Bob', 'Aritra'], + ... 'Age': [25, 30, 35], + ... 'Location': ['Seattle', 'New York', 'Kona']}, + ... index=([10, 20, 30])) + >>> df.index + Index([10, 20, 30], dtype='int64') + + In this example, we create a DataFrame with 3 rows and 3 columns, + including Name, Age, and Location information. We set the index labels to + be the integers 10, 20, and 30. We then access the `index` attribute of the + DataFrame, which returns an `Index` object containing the index labels. + + >>> df.index = [100, 200, 300] + >>> df + Name Age Location + 100 Alice 25 Seattle + 200 Bob 30 New York + 300 Aritra 35 Kona + + In this example, we modify the index labels of the DataFrame by assigning + a new list of labels to the `index` attribute. The DataFrame is then + updated with the new labels, and the output shows the modified DataFrame. + """, + ) + columns = properties.AxisProperty( + axis=0, + doc=dedent( + """ + The column labels of the DataFrame. + + Examples + -------- + >>> df = pd.DataFrame({'A': [1, 2], 'B': [3, 4]}) + >>> df + A B + 0 1 3 + 1 2 4 + >>> df.columns + Index(['A', 'B'], dtype='object') + """ + ), + ) + + # ---------------------------------------------------------------------- + # Add plotting methods to DataFrame + plot = CachedAccessor("plot", pandas.plotting.PlotAccessor) + hist = pandas.plotting.hist_frame + boxplot = pandas.plotting.boxplot_frame + sparse = CachedAccessor("sparse", SparseFrameAccessor) + + # ---------------------------------------------------------------------- + # Internal Interface Methods + + def _to_dict_of_blocks(self): + """ + Return a dict of dtype -> Constructor Types that + each is a homogeneous dtype. + + Internal ONLY - only works for BlockManager + """ + mgr = self._mgr + # convert to BlockManager if needed -> this way support ArrayManager as well + mgr = cast(BlockManager, mgr_to_mgr(mgr, "block")) + return { + k: self._constructor_from_mgr(v, axes=v.axes).__finalize__(self) + for k, v, in mgr.to_dict().items() + } + + @property + def values(self) -> np.ndarray: + """ + Return a Numpy representation of the DataFrame. + + .. warning:: + + We recommend using :meth:`DataFrame.to_numpy` instead. + + Only the values in the DataFrame will be returned, the axes labels + will be removed. + + Returns + ------- + numpy.ndarray + The values of the DataFrame. + + See Also + -------- + DataFrame.to_numpy : Recommended alternative to this method. + DataFrame.index : Retrieve the index labels. + DataFrame.columns : Retrieving the column names. + + Notes + ----- + The dtype will be a lower-common-denominator dtype (implicit + upcasting); that is to say if the dtypes (even of numeric types) + are mixed, the one that accommodates all will be chosen. Use this + with care if you are not dealing with the blocks. + + e.g. If the dtypes are float16 and float32, dtype will be upcast to + float32. If dtypes are int32 and uint8, dtype will be upcast to + int32. By :func:`numpy.find_common_type` convention, mixing int64 + and uint64 will result in a float64 dtype. + + Examples + -------- + A DataFrame where all columns are the same type (e.g., int64) results + in an array of the same type. + + >>> df = pd.DataFrame({'age': [ 3, 29], + ... 'height': [94, 170], + ... 'weight': [31, 115]}) + >>> df + age height weight + 0 3 94 31 + 1 29 170 115 + >>> df.dtypes + age int64 + height int64 + weight int64 + dtype: object + >>> df.values + array([[ 3, 94, 31], + [ 29, 170, 115]]) + + A DataFrame with mixed type columns(e.g., str/object, int64, float32) + results in an ndarray of the broadest type that accommodates these + mixed types (e.g., object). + + >>> df2 = pd.DataFrame([('parrot', 24.0, 'second'), + ... ('lion', 80.5, 1), + ... ('monkey', np.nan, None)], + ... columns=('name', 'max_speed', 'rank')) + >>> df2.dtypes + name object + max_speed float64 + rank object + dtype: object + >>> df2.values + array([['parrot', 24.0, 'second'], + ['lion', 80.5, 1], + ['monkey', nan, None]], dtype=object) + """ + return self._mgr.as_array() + + +def _from_nested_dict(data) -> collections.defaultdict: + new_data: collections.defaultdict = collections.defaultdict(dict) + for index, s in data.items(): + for col, v in s.items(): + new_data[col][index] = v + return new_data + + +def _reindex_for_setitem( + value: DataFrame | Series, index: Index +) -> tuple[ArrayLike, BlockValuesRefs | None]: + # reindex if necessary + + if value.index.equals(index) or not len(index): + if using_copy_on_write() and isinstance(value, Series): + return value._values, value._references + return value._values.copy(), None + + # GH#4107 + try: + reindexed_value = value.reindex(index)._values + except ValueError as err: + # raised in MultiIndex.from_tuples, see test_insert_error_msmgs + if not value.index.is_unique: + # duplicate axis + raise err + + raise TypeError( + "incompatible index of inserted column with frame index" + ) from err + return reindexed_value, None diff --git a/shared/package-files/f2/f2f0247c7a789dae9a9f62fd717341e399353ce03db0b124bf94190dc0b77876/FbcodeMaps.h b/shared/package-files/f2/f2f0247c7a789dae9a9f62fd717341e399353ce03db0b124bf94190dc0b77876/FbcodeMaps.h new file mode 100644 index 0000000000000000000000000000000000000000..9832cf36d5c52b33eae355c1fc1d3e8772aa2e01 --- /dev/null +++ b/shared/package-files/f2/f2f0247c7a789dae9a9f62fd717341e399353ce03db0b124bf94190dc0b77876/FbcodeMaps.h @@ -0,0 +1,29 @@ +#ifndef C10_UTIL_FBCODEMAPS_H_ +#define C10_UTIL_FBCODEMAPS_H_ + +// Map typedefs so that we can use folly's F14 maps in fbcode without +// taking a folly dependency. + +#ifdef FBCODE_CAFFE2 +#include +#include +#else +#include +#include +#endif + +namespace c10 { +#ifdef FBCODE_CAFFE2 +template +using FastMap = folly::F14FastMap; +template +using FastSet = folly::F14FastSet; +#else +template +using FastMap = std::unordered_map; +template +using FastSet = std::unordered_set; +#endif +} // namespace c10 + +#endif // C10_UTIL_FBCODEMAPS_H_ diff --git a/shared/package-files/f2/f2f58b3e6dd26850d8e690306b0cdbda9685dbd866241b9c55dc70a861337009/lll.py b/shared/package-files/f2/f2f58b3e6dd26850d8e690306b0cdbda9685dbd866241b9c55dc70a861337009/lll.py new file mode 100644 index 0000000000000000000000000000000000000000..aeb0106b9fdd928b2c1f0eb0e80ef52967392435 --- /dev/null +++ b/shared/package-files/f2/f2f58b3e6dd26850d8e690306b0cdbda9685dbd866241b9c55dc70a861337009/lll.py @@ -0,0 +1,94 @@ +from __future__ import annotations + +from math import floor as mfloor + +from sympy.polys.domains import ZZ, QQ +from sympy.polys.matrices.exceptions import DMRankError, DMShapeError, DMValueError, DMDomainError + + +def _ddm_lll(x, delta=QQ(3, 4), return_transform=False): + if QQ(1, 4) >= delta or delta >= QQ(1, 1): + raise DMValueError("delta must lie in range (0.25, 1)") + if x.shape[0] > x.shape[1]: + raise DMShapeError("input matrix must have shape (m, n) with m <= n") + if x.domain != ZZ: + raise DMDomainError("input matrix domain must be ZZ") + m = x.shape[0] + n = x.shape[1] + k = 1 + y = x.copy() + y_star = x.zeros((m, n), QQ) + mu = x.zeros((m, m), QQ) + g_star = [QQ(0, 1) for _ in range(m)] + half = QQ(1, 2) + T = x.eye(m, ZZ) if return_transform else None + linear_dependent_error = "input matrix contains linearly dependent rows" + + def closest_integer(x): + return ZZ(mfloor(x + half)) + + def lovasz_condition(k: int) -> bool: + return g_star[k] >= ((delta - mu[k][k - 1] ** 2) * g_star[k - 1]) + + def mu_small(k: int, j: int) -> bool: + return abs(mu[k][j]) <= half + + def dot_rows(x, y, rows: tuple[int, int]): + return sum([x[rows[0]][z] * y[rows[1]][z] for z in range(x.shape[1])]) + + def reduce_row(T, mu, y, rows: tuple[int, int]): + r = closest_integer(mu[rows[0]][rows[1]]) + y[rows[0]] = [y[rows[0]][z] - r * y[rows[1]][z] for z in range(n)] + mu[rows[0]][:rows[1]] = [mu[rows[0]][z] - r * mu[rows[1]][z] for z in range(rows[1])] + mu[rows[0]][rows[1]] -= r + if return_transform: + T[rows[0]] = [T[rows[0]][z] - r * T[rows[1]][z] for z in range(m)] + + for i in range(m): + y_star[i] = [QQ.convert_from(z, ZZ) for z in y[i]] + for j in range(i): + row_dot = dot_rows(y, y_star, (i, j)) + try: + mu[i][j] = row_dot / g_star[j] + except ZeroDivisionError: + raise DMRankError(linear_dependent_error) + y_star[i] = [y_star[i][z] - mu[i][j] * y_star[j][z] for z in range(n)] + g_star[i] = dot_rows(y_star, y_star, (i, i)) + while k < m: + if not mu_small(k, k - 1): + reduce_row(T, mu, y, (k, k - 1)) + if lovasz_condition(k): + for l in range(k - 2, -1, -1): + if not mu_small(k, l): + reduce_row(T, mu, y, (k, l)) + k += 1 + else: + nu = mu[k][k - 1] + alpha = g_star[k] + nu ** 2 * g_star[k - 1] + try: + beta = g_star[k - 1] / alpha + except ZeroDivisionError: + raise DMRankError(linear_dependent_error) + mu[k][k - 1] = nu * beta + g_star[k] = g_star[k] * beta + g_star[k - 1] = alpha + y[k], y[k - 1] = y[k - 1], y[k] + mu[k][:k - 1], mu[k - 1][:k - 1] = mu[k - 1][:k - 1], mu[k][:k - 1] + for i in range(k + 1, m): + xi = mu[i][k] + mu[i][k] = mu[i][k - 1] - nu * xi + mu[i][k - 1] = mu[k][k - 1] * mu[i][k] + xi + if return_transform: + T[k], T[k - 1] = T[k - 1], T[k] + k = max(k - 1, 1) + assert all([lovasz_condition(i) for i in range(1, m)]) + assert all([mu_small(i, j) for i in range(m) for j in range(i)]) + return y, T + + +def ddm_lll(x, delta=QQ(3, 4)): + return _ddm_lll(x, delta=delta, return_transform=False)[0] + + +def ddm_lll_transform(x, delta=QQ(3, 4)): + return _ddm_lll(x, delta=delta, return_transform=True) diff --git a/shared/package-files/f2/f2f7d8e32c61f8bda729a3cd0aa0be996d30962582d6be224213f59fe2dd6486/ncr260wy350wpp b/shared/package-files/f2/f2f7d8e32c61f8bda729a3cd0aa0be996d30962582d6be224213f59fe2dd6486/ncr260wy350wpp new file mode 100644 index 0000000000000000000000000000000000000000..c264c8eb11223b92fa593a5cb92348a3cf5c858c Binary files /dev/null and b/shared/package-files/f2/f2f7d8e32c61f8bda729a3cd0aa0be996d30962582d6be224213f59fe2dd6486/ncr260wy350wpp differ diff --git a/shared/package-files/f2/f2f906f7215cae1a851441b17c42ae98fb6cfd2f484f059efd0ff7396f97e080/_pack_padded_sequence_backward.h b/shared/package-files/f2/f2f906f7215cae1a851441b17c42ae98fb6cfd2f484f059efd0ff7396f97e080/_pack_padded_sequence_backward.h new file mode 100644 index 0000000000000000000000000000000000000000..12904560be71b313e4e7193d2e75015eeb914098 --- /dev/null +++ b/shared/package-files/f2/f2f906f7215cae1a851441b17c42ae98fb6cfd2f484f059efd0ff7396f97e080/_pack_padded_sequence_backward.h @@ -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::_pack_padded_sequence_backward(Tensor grad, SymInt[] input_size, Tensor batch_sizes, bool batch_first) -> Tensor +inline at::Tensor _pack_padded_sequence_backward(const at::Tensor & grad, at::IntArrayRef input_size, const at::Tensor & batch_sizes, bool batch_first) { + return at::_ops::_pack_padded_sequence_backward::call(grad, c10::fromIntArrayRefSlow(input_size), batch_sizes, batch_first); +} +namespace symint { + template ::value>> + at::Tensor _pack_padded_sequence_backward(const at::Tensor & grad, at::IntArrayRef input_size, const at::Tensor & batch_sizes, bool batch_first) { + return at::_ops::_pack_padded_sequence_backward::call(grad, c10::fromIntArrayRefSlow(input_size), batch_sizes, batch_first); + } +} + +// aten::_pack_padded_sequence_backward(Tensor grad, SymInt[] input_size, Tensor batch_sizes, bool batch_first) -> Tensor +inline at::Tensor _pack_padded_sequence_backward_symint(const at::Tensor & grad, c10::SymIntArrayRef input_size, const at::Tensor & batch_sizes, bool batch_first) { + return at::_ops::_pack_padded_sequence_backward::call(grad, input_size, batch_sizes, batch_first); +} +namespace symint { + template ::value>> + at::Tensor _pack_padded_sequence_backward(const at::Tensor & grad, c10::SymIntArrayRef input_size, const at::Tensor & batch_sizes, bool batch_first) { + return at::_ops::_pack_padded_sequence_backward::call(grad, input_size, batch_sizes, batch_first); + } +} + +} diff --git a/shared/package-files/f2/f2f946cdcd2fdc90ba3296a1a58153572e036b1d9e80fede78cc6eee001cb87c/log1p_meta_dispatch.h b/shared/package-files/f2/f2f946cdcd2fdc90ba3296a1a58153572e036b1d9e80fede78cc6eee001cb87c/log1p_meta_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..8f89b0a6447d9db4dda2150924abe066f5d073dd --- /dev/null +++ b/shared/package-files/f2/f2f946cdcd2fdc90ba3296a1a58153572e036b1d9e80fede78cc6eee001cb87c/log1p_meta_dispatch.h @@ -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 log1p(const at::Tensor & self); +TORCH_API at::Tensor & log1p_out(at::Tensor & out, const at::Tensor & self); +TORCH_API at::Tensor & log1p_outf(const at::Tensor & self, at::Tensor & out); +TORCH_API at::Tensor & log1p_(at::Tensor & self); + +} // namespace meta +} // namespace at diff --git a/shared/package-files/f2/f2fb0e36d504cafd7e3b247f6d211a952ff660b9403706e86eb7149ff257b859/_use_cudnn_rnn_flatten_weight_ops.h b/shared/package-files/f2/f2fb0e36d504cafd7e3b247f6d211a952ff660b9403706e86eb7149ff257b859/_use_cudnn_rnn_flatten_weight_ops.h new file mode 100644 index 0000000000000000000000000000000000000000..8ca201683d21473e427140bec55bbe62eddcded4 --- /dev/null +++ b/shared/package-files/f2/f2fb0e36d504cafd7e3b247f6d211a952ff660b9403706e86eb7149ff257b859/_use_cudnn_rnn_flatten_weight_ops.h @@ -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 _use_cudnn_rnn_flatten_weight { + using schema = bool (); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::_use_cudnn_rnn_flatten_weight") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "_use_cudnn_rnn_flatten_weight() -> bool") + static bool call(); + static bool redispatch(c10::DispatchKeySet dispatchKeySet); +}; + +}} // namespace at::_ops diff --git a/shared/package-files/f2/f2fb9cc4045d94be0726fc9151700f70ca7fd0263fa224dbd636a3db4498a9f9/sinc_native.h b/shared/package-files/f2/f2fb9cc4045d94be0726fc9151700f70ca7fd0263fa224dbd636a3db4498a9f9/sinc_native.h new file mode 100644 index 0000000000000000000000000000000000000000..6875effe199e73df53c80ddc5ef6b5596ee88e39 --- /dev/null +++ b/shared/package-files/f2/f2fb9cc4045d94be0726fc9151700f70ca7fd0263fa224dbd636a3db4498a9f9/sinc_native.h @@ -0,0 +1,23 @@ +#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_sinc_out : public at::meta::structured_sinc { +void impl(const at::Tensor & self, const at::Tensor & out); +}; +} // namespace native +} // namespace at